@nova-ui/dashboards 16.0.0 → 16.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.mjs +3 -2
- package/esm2022/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.mjs +3 -2
- package/esm2022/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.mjs +3 -2
- package/esm2022/lib/configurator/components/formatters/link-formatter/link-formatter.component.mjs +1 -1
- package/esm2022/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.mjs +4 -3
- package/esm2022/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.mjs +4 -3
- package/esm2022/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.mjs +3 -2
- package/esm2022/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.mjs +3 -3
- package/esm2022/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.mjs +5 -12
- package/esm2022/lib/pizzagna/directives/component-portal/component-portal.directive.mjs +3 -2
- package/fesm2022/nova-ui-dashboards.mjs +22 -22
- package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
- package/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.d.ts +1 -1
- package/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.d.ts +1 -1
- package/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.d.ts +1 -1
- package/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.d.ts +1 -1
- package/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.d.ts +1 -1
- package/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.d.ts +1 -1
- package/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.d.ts +1 -1
- package/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.d.ts +0 -2
- package/lib/pizzagna/directives/component-portal/component-portal.directive.d.ts +1 -0
- package/package.json +3 -3
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js +2 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js +2 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.d.ts +0 -2
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.js +5 -12
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.js.map +1 -1
- package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.d.ts +1 -0
- package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js +3 -1
- package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js.map +1 -1
- package/sdk/locale/messages.en.xlf +17 -17
|
@@ -4662,6 +4662,7 @@ class ComponentPortalDirective {
|
|
|
4662
4662
|
ngOnDestroy() {
|
|
4663
4663
|
this.logger.debug("Portal destroyed:", this.componentId);
|
|
4664
4664
|
this.destroyProviders();
|
|
4665
|
+
this.listenerUnsubscriber?.();
|
|
4665
4666
|
this.destroy$.next();
|
|
4666
4667
|
this.destroy$.complete();
|
|
4667
4668
|
}
|
|
@@ -4669,7 +4670,7 @@ class ComponentPortalDirective {
|
|
|
4669
4670
|
this.component = componentRef.instance;
|
|
4670
4671
|
// ctrl+shift+click on a pizzagna to get a dump of its properties
|
|
4671
4672
|
// this will propagate through the parent components, so it should dump the parent pizzagnas as well
|
|
4672
|
-
this.renderer.listen(componentRef.location.nativeElement, "click", (event) => {
|
|
4673
|
+
this.listenerUnsubscriber = this.renderer.listen(componentRef.location.nativeElement, "click", (event) => {
|
|
4673
4674
|
// event.metaKey is a CMD key for Mac
|
|
4674
4675
|
if ((event.ctrlKey || event.metaKey) &&
|
|
4675
4676
|
event.shiftKey &&
|
|
@@ -11636,7 +11637,7 @@ class DonutContentRawFormatterComponent {
|
|
|
11636
11637
|
this.convertedValue = this.unitConversionPipe.transform(this.sum);
|
|
11637
11638
|
}
|
|
11638
11639
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentRawFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2.UnitConversionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11639
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentRawFormatterComponent, selector: "
|
|
11640
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentRawFormatterComponent, selector: "nui-donut-content-raw-formatter", inputs: { data: "data", config: "config" }, usesOnChanges: true, ngImport: i0, template: `<ng-container>
|
|
11640
11641
|
<nui-icon
|
|
11641
11642
|
*ngIf="config?.chartDonutContentIcon"
|
|
11642
11643
|
[icon]="config?.chartDonutContentIcon"
|
|
@@ -11659,6 +11660,7 @@ class DonutContentRawFormatterComponent {
|
|
|
11659
11660
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentRawFormatterComponent, decorators: [{
|
|
11660
11661
|
type: Component,
|
|
11661
11662
|
args: [{
|
|
11663
|
+
selector: "nui-donut-content-raw-formatter",
|
|
11662
11664
|
template: `<ng-container>
|
|
11663
11665
|
<nui-icon
|
|
11664
11666
|
*ngIf="config?.chartDonutContentIcon"
|
|
@@ -11713,13 +11715,14 @@ class DonutContentSumFormatterComponent {
|
|
|
11713
11715
|
this.sum = sumBy(this.data, (s) => s.data[0]);
|
|
11714
11716
|
}
|
|
11715
11717
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentSumFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11716
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentSumFormatterComponent, selector: "
|
|
11718
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentSumFormatterComponent, selector: "nui-dashboards-donut-content-sum-formatter", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `<ng-container
|
|
11717
11719
|
><div class="nui-text-page">{{ this.sum }}</div></ng-container
|
|
11718
11720
|
>`, isInline: true }); }
|
|
11719
11721
|
}
|
|
11720
11722
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentSumFormatterComponent, decorators: [{
|
|
11721
11723
|
type: Component,
|
|
11722
11724
|
args: [{
|
|
11725
|
+
selector: "nui-dashboards-donut-content-sum-formatter",
|
|
11723
11726
|
template: `<ng-container
|
|
11724
11727
|
><div class="nui-text-page">{{ this.sum }}</div></ng-container
|
|
11725
11728
|
>`,
|
|
@@ -11760,7 +11763,7 @@ class IconFormatterComponent {
|
|
|
11760
11763
|
this.iconFound = !!this.iconService.getIconData(this.data?.value);
|
|
11761
11764
|
}
|
|
11762
11765
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2.IconService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11763
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconFormatterComponent, selector: "
|
|
11766
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconFormatterComponent, selector: "nui-dashboards-icon-formatter", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `
|
|
11764
11767
|
<div
|
|
11765
11768
|
*ngIf="isValid"
|
|
11766
11769
|
class="d-flex align-items-center justify-content-center"
|
|
@@ -11783,6 +11786,7 @@ class IconFormatterComponent {
|
|
|
11783
11786
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconFormatterComponent, decorators: [{
|
|
11784
11787
|
type: Component,
|
|
11785
11788
|
args: [{
|
|
11789
|
+
selector: "nui-dashboards-icon-formatter",
|
|
11786
11790
|
template: `
|
|
11787
11791
|
<div
|
|
11788
11792
|
*ngIf="isValid"
|
|
@@ -11890,12 +11894,13 @@ class RawFormatterComponent {
|
|
|
11890
11894
|
this.changeDetector = changeDetector;
|
|
11891
11895
|
}
|
|
11892
11896
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RawFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11893
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RawFormatterComponent, selector: "
|
|
11897
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RawFormatterComponent, selector: "nui-dashboards-raw-formatter", inputs: { data: "data", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, ngImport: i0, template: `<ng-container>{{ data?.value }}</ng-container>`, isInline: true }); }
|
|
11894
11898
|
}
|
|
11895
11899
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RawFormatterComponent, decorators: [{
|
|
11896
11900
|
type: Component,
|
|
11897
11901
|
args: [{
|
|
11898
|
-
|
|
11902
|
+
selector: "nui-dashboards-raw-formatter",
|
|
11903
|
+
template: `<ng-container>{{ data?.value }}</ng-container>`,
|
|
11899
11904
|
}]
|
|
11900
11905
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
11901
11906
|
type: Input
|
|
@@ -11928,12 +11933,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11928
11933
|
class PercentageFormatterComponent extends RawFormatterComponent {
|
|
11929
11934
|
static { this.lateLoadKey = "PercentageFormatterComponent"; }
|
|
11930
11935
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PercentageFormatterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
11931
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PercentageFormatterComponent, selector: "
|
|
11936
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PercentageFormatterComponent, selector: "nui-dashboards-percentage-formatter", usesInheritance: true, ngImport: i0, template: `<ng-container> {{ data?.value }}% </ng-container>`, isInline: true }); }
|
|
11932
11937
|
}
|
|
11933
11938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PercentageFormatterComponent, decorators: [{
|
|
11934
11939
|
type: Component,
|
|
11935
11940
|
args: [{
|
|
11936
|
-
|
|
11941
|
+
selector: "nui-dashboards-percentage-formatter",
|
|
11942
|
+
template: `<ng-container> {{ data?.value }}% </ng-container>`,
|
|
11937
11943
|
}]
|
|
11938
11944
|
}] });
|
|
11939
11945
|
|
|
@@ -12125,7 +12131,7 @@ class SiUnitsFormatterComponent {
|
|
|
12125
12131
|
}
|
|
12126
12132
|
}
|
|
12127
12133
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SiUnitsFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12128
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SiUnitsFormatterComponent, selector: "
|
|
12134
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SiUnitsFormatterComponent, selector: "nui-dashboards-si-units-formatter", inputs: { data: "data", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
12129
12135
|
<ng-container>
|
|
12130
12136
|
<div class="d-flex flex-nowrap">
|
|
12131
12137
|
<span>{{ value }}</span>
|
|
@@ -12137,6 +12143,7 @@ class SiUnitsFormatterComponent {
|
|
|
12137
12143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SiUnitsFormatterComponent, decorators: [{
|
|
12138
12144
|
type: Component,
|
|
12139
12145
|
args: [{
|
|
12146
|
+
selector: "nui-dashboards-si-units-formatter",
|
|
12140
12147
|
template: `
|
|
12141
12148
|
<ng-container>
|
|
12142
12149
|
<div class="d-flex flex-nowrap">
|
|
@@ -12197,7 +12204,7 @@ class StatusWithIconFormatterComponent {
|
|
|
12197
12204
|
this.data.data);
|
|
12198
12205
|
}
|
|
12199
12206
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatusWithIconFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12200
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StatusWithIconFormatterComponent, selector: "
|
|
12207
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StatusWithIconFormatterComponent, selector: "nui-dashboards-status-icon-formatter", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `
|
|
12201
12208
|
<ng-container *ngIf="isValid">
|
|
12202
12209
|
<div
|
|
12203
12210
|
class="nui-text-label align-items-center status-icon-formatter"
|
|
@@ -12231,7 +12238,7 @@ class StatusWithIconFormatterComponent {
|
|
|
12231
12238
|
}
|
|
12232
12239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatusWithIconFormatterComponent, decorators: [{
|
|
12233
12240
|
type: Component,
|
|
12234
|
-
args: [{ template: `
|
|
12241
|
+
args: [{ selector: "nui-dashboards-status-icon-formatter", template: `
|
|
12235
12242
|
<ng-container *ngIf="isValid">
|
|
12236
12243
|
<div
|
|
12237
12244
|
class="nui-text-label align-items-center status-icon-formatter"
|
|
@@ -18768,10 +18775,9 @@ class TableScrollTypeEditorComponent {
|
|
|
18768
18775
|
}
|
|
18769
18776
|
ngOnChanges(changes) {
|
|
18770
18777
|
if (changes.scrollType) {
|
|
18771
|
-
this.scrollTypeFormControl?.setValue(this.scrollType, {
|
|
18778
|
+
this.scrollTypeFormControl?.setValue(this.scrollType ?? ScrollType.virtual, {
|
|
18772
18779
|
emitEvent: false,
|
|
18773
18780
|
});
|
|
18774
|
-
this.changeExpanderState(false);
|
|
18775
18781
|
this.updateSubtitle();
|
|
18776
18782
|
this.updateValidators();
|
|
18777
18783
|
}
|
|
@@ -18831,12 +18837,6 @@ class TableScrollTypeEditorComponent {
|
|
|
18831
18837
|
get hasPaginator() {
|
|
18832
18838
|
return this.scrollTypeFormControl?.value === ScrollType.paginator;
|
|
18833
18839
|
}
|
|
18834
|
-
accordionToggle(isOpened) {
|
|
18835
|
-
this.changeExpanderState(false);
|
|
18836
|
-
}
|
|
18837
|
-
changeExpanderState(isOpen) {
|
|
18838
|
-
this.isExpanderOpen = isOpen;
|
|
18839
|
-
}
|
|
18840
18840
|
updateSubtitle() {
|
|
18841
18841
|
this.subtitle = this.scrollTypeEditorService.setAccordionSubtitleValues(this.hasVirtualScroll, this.scrollTypeFormControl?.value);
|
|
18842
18842
|
}
|
|
@@ -18860,7 +18860,7 @@ class TableScrollTypeEditorComponent {
|
|
|
18860
18860
|
.map((o) => o.value);
|
|
18861
18861
|
this.updateDefaultPageSizeOptions(filteredPageSizeSet);
|
|
18862
18862
|
this.pageSizeSetFormControl?.setValue(filteredPageSizeSet, {
|
|
18863
|
-
emitEvent:
|
|
18863
|
+
emitEvent: true,
|
|
18864
18864
|
});
|
|
18865
18865
|
}
|
|
18866
18866
|
updateDefaultPageSizeOptions(options) {
|
|
@@ -18891,11 +18891,11 @@ class TableScrollTypeEditorComponent {
|
|
|
18891
18891
|
this.onDestroy$.complete();
|
|
18892
18892
|
}
|
|
18893
18893
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableScrollTypeEditorComponent, deps: [{ token: i1$2.FormBuilder }, { token: ConfiguratorHeadingService }, { token: i0.ChangeDetectorRef }, { token: ScrollTypeEditorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18894
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TableScrollTypeEditorComponent, selector: "nui-scroll-type-editor-component", inputs: { paginatorConfiguration: "paginatorConfiguration", hasVirtualScroll: "hasVirtualScroll", scrollType: "scrollType" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n
|
|
18894
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TableScrollTypeEditorComponent, selector: "nui-scroll-type-editor-component", inputs: { paginatorConfiguration: "paginatorConfiguration", hasVirtualScroll: "hasVirtualScroll", scrollType: "scrollType" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [subtitle]=\"subtitle\"\n headerIcon=\"application\"\n headerTitle=\"Scroll type\"\n />\n <div\n class=\"table-filters-configuration__accordion-content\"\n formGroupName=\"paginatorConfiguration\"\n >\n <div class=\"scroll-type-field d-flex align-items-end\">\n <nui-form-field\n [showOptionalText]=\"false\"\n caption=\"Scroll Type\"\n i18n-caption\n >\n <nui-select-v2\n placeholder=\"Select scroll type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"scrollType\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let column of scrollTypeEditorService.loadStrategies\n \"\n [value]=\"column.id\"\n >\n {{ column.title }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <div *ngIf=\"hasPaginator\">\n <div class=\"page-size-set-menu\">\n <nui-form-field\n class=\"\"\n caption=\"Page size options set\"\n i18n-caption\n [showOptionalText]=\"false\"\n >\n <nui-menu\n title=\"Select size options\"\n [appendToBody]=\"true\"\n i18n-title\n >\n <nui-menu-group header=\"Item Types\" i18n-header>\n <nui-menu-option\n *ngFor=\"let option of pageSizeSetOptions\"\n (actionDone)=\"onPageSizeSetChange(option)\"\n [checked]=\"option.checked\"\n i18n\n >{{ option.value }}\n </nui-menu-option>\n </nui-menu-group>\n </nui-menu>\n <nui-validation-message\n [show]=\"displayPageSizeSetErrorMessage\"\n i18n\n >\n Page size set is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div\n *ngIf=\"pageSizeOptions.length > 0\"\n class=\"d-flex align-items-end\"\n >\n <nui-form-field\n caption=\"Default page size\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['pageSize']\"\n >\n <nui-select-v2\n placeholder=\"Select page size\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"pageSize\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of pageSizeOptions\"\n [value]=\"option\"\n >\n {{ option }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message\n [show]=\"displayPageSizeErrorMessage\"\n i18n\n >\n Page size is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}.table-filters-configuration__accordion-content .scroll-type-field,.table-filters-configuration__accordion-content .page-size-set-menu{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "component", type: i2.MenuOptionComponent, selector: "nui-menu-option", inputs: ["name", "value", "checked"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18895
18895
|
}
|
|
18896
18896
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableScrollTypeEditorComponent, decorators: [{
|
|
18897
18897
|
type: Component,
|
|
18898
|
-
args: [{ selector: "nui-scroll-type-editor-component", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n
|
|
18898
|
+
args: [{ selector: "nui-scroll-type-editor-component", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [subtitle]=\"subtitle\"\n headerIcon=\"application\"\n headerTitle=\"Scroll type\"\n />\n <div\n class=\"table-filters-configuration__accordion-content\"\n formGroupName=\"paginatorConfiguration\"\n >\n <div class=\"scroll-type-field d-flex align-items-end\">\n <nui-form-field\n [showOptionalText]=\"false\"\n caption=\"Scroll Type\"\n i18n-caption\n >\n <nui-select-v2\n placeholder=\"Select scroll type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"scrollType\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let column of scrollTypeEditorService.loadStrategies\n \"\n [value]=\"column.id\"\n >\n {{ column.title }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <div *ngIf=\"hasPaginator\">\n <div class=\"page-size-set-menu\">\n <nui-form-field\n class=\"\"\n caption=\"Page size options set\"\n i18n-caption\n [showOptionalText]=\"false\"\n >\n <nui-menu\n title=\"Select size options\"\n [appendToBody]=\"true\"\n i18n-title\n >\n <nui-menu-group header=\"Item Types\" i18n-header>\n <nui-menu-option\n *ngFor=\"let option of pageSizeSetOptions\"\n (actionDone)=\"onPageSizeSetChange(option)\"\n [checked]=\"option.checked\"\n i18n\n >{{ option.value }}\n </nui-menu-option>\n </nui-menu-group>\n </nui-menu>\n <nui-validation-message\n [show]=\"displayPageSizeSetErrorMessage\"\n i18n\n >\n Page size set is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div\n *ngIf=\"pageSizeOptions.length > 0\"\n class=\"d-flex align-items-end\"\n >\n <nui-form-field\n caption=\"Default page size\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['pageSize']\"\n >\n <nui-select-v2\n placeholder=\"Select page size\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"pageSize\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of pageSizeOptions\"\n [value]=\"option\"\n >\n {{ option }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message\n [show]=\"displayPageSizeErrorMessage\"\n i18n\n >\n Page size is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}.table-filters-configuration__accordion-content .scroll-type-field,.table-filters-configuration__accordion-content .page-size-set-menu{margin-bottom:10px}\n"] }]
|
|
18899
18899
|
}], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: ConfiguratorHeadingService }, { type: i0.ChangeDetectorRef }, { type: ScrollTypeEditorService }]; }, propDecorators: { paginatorConfiguration: [{
|
|
18900
18900
|
type: Input
|
|
18901
18901
|
}], hasVirtualScroll: [{
|