Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(atomic): add atomic-result-html component #2014

Merged
merged 8 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"packages": [
"packages/*",
"packages/samples/**",
"packages/atomic-angular/*",
"packages/atomic-angular/projects/*"
],
"command": {
Expand Down
917 changes: 563 additions & 354 deletions packages/atomic-angular/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/atomic-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@angular/platform-browser": "~13.3.0",
"@angular/platform-browser-dynamic": "~13.3.0",
"@angular/router": "~13.3.0",
"@coveo/atomic": "1.59.0",
"@coveo/atomic": "^1.62.0",
"rxjs": "7.5.5"
},
"devDependencies": {
Expand Down
1,200 changes: 611 additions & 589 deletions packages/atomic-angular/projects/atomic-angular/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ AtomicFormatCurrency,
AtomicFormatNumber,
AtomicFormatUnit,
AtomicFrequentlyBoughtTogether,
AtomicHtml,
AtomicIcon,
AtomicLayoutSection,
AtomicLoadMoreChildrenResults,
Expand All @@ -41,6 +42,7 @@ AtomicResultChildren,
AtomicResultChildrenTemplate,
AtomicResultDate,
AtomicResultFieldsList,
AtomicResultHtml,
AtomicResultIcon,
AtomicResultImage,
AtomicResultLink,
Expand Down Expand Up @@ -98,6 +100,7 @@ AtomicFormatCurrency,
AtomicFormatNumber,
AtomicFormatUnit,
AtomicFrequentlyBoughtTogether,
AtomicHtml,
AtomicIcon,
AtomicLayoutSection,
AtomicLoadMoreChildrenResults,
Expand All @@ -119,6 +122,7 @@ AtomicResultChildren,
AtomicResultChildrenTemplate,
AtomicResultDate,
AtomicResultFieldsList,
AtomicResultHtml,
AtomicResultIcon,
AtomicResultImage,
AtomicResultLink,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,27 @@ export class AtomicFrequentlyBoughtTogether {
}


export declare interface AtomicHtml extends Components.AtomicHtml {}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['sanitize', 'value']
})
@Component({
selector: 'atomic-html',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['sanitize', 'value']
})
export class AtomicHtml {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface AtomicIcon extends Components.AtomicIcon {}

@ProxyCmp({
Expand Down Expand Up @@ -757,6 +778,27 @@ export class AtomicResultFieldsList {
}


export declare interface AtomicResultHtml extends Components.AtomicResultHtml {}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['field', 'sanitize']
})
@Component({
selector: 'atomic-result-html',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['field', 'sanitize']
})
export class AtomicResultHtml {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface AtomicResultIcon extends Components.AtomicResultIcon {}

@ProxyCmp({
Expand Down
Loading