@nova-ui/dashboards 15.0.8 → 15.0.10
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/esm2020/lib/components/kpi-widget/kpi.component.mjs +12 -5
- package/esm2020/lib/components/proportional-widget/proportional-widget.component.mjs +8 -3
- package/esm2020/lib/components/table-widget/addons/paginator-feature-addon.service.mjs +85 -0
- package/esm2020/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.mjs +5 -2
- package/esm2020/lib/components/table-widget/table-widget.component.mjs +77 -28
- package/esm2020/lib/components/table-widget/types.mjs +7 -2
- package/esm2020/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.mjs +7 -3
- package/esm2020/lib/configurator/components/widgets/configurator-items/background-color-rules-configuration/background-color-rules-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/data-source-configuration/data-source-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/data-source-configuration-v2/data-source-configuration-v2.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/embedded-content-configuration/embedded-content-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/kpi-description-configuration/kpi-description-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/refresher-configuration/refresher-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/risk-score-tile-description-configuration/risk-score-tile-description-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/thresholds-configuration/thresholds-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/timeseries-metadata-configuration/timeseries-metadata-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/configurator-items/title-and-description-configuration/title-and-description-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/drilldown/entity-formatting-configuration/entity-formatting-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/drilldown/grouping-configuration/grouping-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/proportional/chart-options-editor/proportional-chart-options-editor.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/proportional/chart-options-editor-v2/proportional-chart-options-editor-v2.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/proportional/donut-content-configuration/donut-content-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/description-configuration/description-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/presentation-configuration.component.mjs +2 -2
- package/esm2020/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/description-configuration/description-configuration-v2.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/table/columns-editor-v2/column-configuration/presentation-configuration/presentation-configuration-v2.component.mjs +2 -2
- package/esm2020/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.mjs +2 -2
- package/esm2020/lib/configurator/components/widgets/table/public-api.mjs +2 -1
- package/esm2020/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.mjs +197 -0
- package/esm2020/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.mjs +39 -0
- package/esm2020/lib/configurator/components/widgets/timeseries/timeseries-tile-description-configuration/timeseries-tile-description-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/components/widgets/timeseries/timeseries-tile-indicator-data-configuration/timeseries-tile-indicator-data-configuration.component.mjs +1 -1
- package/esm2020/lib/configurator/configurator.module.mjs +8 -1
- package/esm2020/lib/configurator/services/converters/table/table-filters-converter.service.mjs +3 -5
- package/esm2020/lib/configurator/services/converters/table/table-scroll-type-converter.service.mjs +68 -0
- package/esm2020/lib/dashboards.module.mjs +7 -4
- package/esm2020/lib/services/provider-registry.service.mjs +8 -2
- package/esm2020/lib/services/types.mjs +4 -2
- package/esm2020/lib/widget-types/table/table-configurator.mjs +15 -4
- package/fesm2015/nova-ui-dashboards.mjs +485 -60
- package/fesm2015/nova-ui-dashboards.mjs.map +1 -1
- package/fesm2020/nova-ui-dashboards.mjs +475 -61
- package/fesm2020/nova-ui-dashboards.mjs.map +1 -1
- package/lib/components/kpi-widget/kpi.component.d.ts +1 -1
- package/lib/components/proportional-widget/proportional-widget.component.d.ts +1 -0
- package/lib/components/table-widget/addons/paginator-feature-addon.service.d.ts +14 -0
- package/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.d.ts +1 -1
- package/lib/components/table-widget/table-widget.component.d.ts +15 -6
- package/lib/components/table-widget/types.d.ts +51 -1
- package/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.d.ts +3 -2
- package/lib/configurator/components/widgets/table/public-api.d.ts +1 -0
- package/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.d.ts +50 -0
- package/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.d.ts +12 -0
- package/lib/configurator/configurator.module.d.ts +63 -62
- package/lib/configurator/services/converters/table/table-scroll-type-converter.service.d.ts +15 -0
- package/lib/dashboards.module.d.ts +1 -1
- package/lib/services/types.d.ts +3 -1
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.d.ts +1 -1
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.js +10 -3
- package/sdk/atoms/src/lib/components/kpi-widget/kpi.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-widget.component.d.ts +1 -0
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-widget.component.js +5 -0
- package/sdk/atoms/src/lib/components/proportional-widget/proportional-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.d.ts +11 -0
- package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.js +88 -0
- package/sdk/atoms/src/lib/components/table-widget/addons/paginator-feature-addon.service.js.map +1 -0
- package/sdk/atoms/src/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.d.ts +1 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.js +4 -1
- package/sdk/atoms/src/lib/components/table-widget/addons/virtual-scroll-feature-addon.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.d.ts +14 -5
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js +62 -13
- package/sdk/atoms/src/lib/components/table-widget/table-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/table-widget/types.d.ts +51 -1
- package/sdk/atoms/src/lib/components/table-widget/types.js +7 -0
- package/sdk/atoms/src/lib/components/table-widget/types.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.d.ts +2 -1
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.js +6 -0
- package/sdk/atoms/src/lib/configurator/components/widget-editor-accordion/widget-editor-accordion.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/filters-editor/table-filters-editor.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/public-api.d.ts +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/public-api.js +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/public-api.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.d.ts +47 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.js +208 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.component.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.d.ts +9 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.js +42 -0
- package/sdk/atoms/src/lib/configurator/components/widgets/table/scrollType-editor/scroll-type-editor.service.js.map +1 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js +4 -0
- package/sdk/atoms/src/lib/configurator/configurator.module.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-filters-converter.service.js +2 -4
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-filters-converter.service.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-scroll-type-converter.service.d.ts +12 -0
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-scroll-type-converter.service.js +69 -0
- package/sdk/atoms/src/lib/configurator/services/converters/table/table-scroll-type-converter.service.js.map +1 -0
- package/sdk/atoms/src/lib/dashboards.module.js +1 -0
- package/sdk/atoms/src/lib/dashboards.module.js.map +1 -1
- package/sdk/atoms/src/lib/services/provider-registry.service.js +6 -0
- package/sdk/atoms/src/lib/services/provider-registry.service.js.map +1 -1
- package/sdk/atoms/src/lib/services/types.d.ts +3 -1
- package/sdk/atoms/src/lib/services/types.js +4 -2
- package/sdk/atoms/src/lib/services/types.js.map +1 -1
- package/sdk/atoms/src/lib/widget-types/table/table-configurator.js +13 -2
- package/sdk/atoms/src/lib/widget-types/table/table-configurator.js.map +1 -1
- package/sdk/locale/messages.en.xlf +127 -24
|
@@ -3,8 +3,8 @@ import { CommonModule, DecimalPipe, DOCUMENT } from '@angular/common';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Component, Input, HostBinding, Pipe, NgModule, InjectionToken, Directive, Host, Self, Injectable, Inject, Injector, Optional, NgZone, EventEmitter, SimpleChange, Output, ViewEncapsulation, ViewChild, ViewChildren, SecurityContext, ChangeDetectionStrategy, HostListener, ElementRef, forwardRef, ViewContainerRef, ContentChildren } from '@angular/core';
|
|
5
5
|
import * as i2 from '@nova-ui/bits';
|
|
6
|
-
import { UnitBase, NuiImageModule, EventDefinition, immutableSet, EventBus, VirtualViewportManager, uuid, TimeframeService, LoggerService, ResizeObserverDirective, nameof, SorterDirection, DEFAULT_INTERACTIVE_ELEMENTS, TableRowComponent, HistoryStorage, OverlayUtilitiesService, getOverlayPositions, NuiFormFieldControl, SelectV2Component, OVERLAY_CONTAINER, SpinnerSize, removeErrors, NuiBusyModule, NuiIconModule, NuiMenuModule, NuiPopupModule, NuiDialogModule, NuiSpinnerModule, NuiTextboxModule, NuiFormFieldModule, NuiButtonModule, NuiOverlayAdditionsModule, NuiSelectV2Module, NuiRadioModule, NuiCheckboxModule, NuiValidationMessageModule, NuiExpanderModule, NuiPanelModule, NuiDividerModule, NuiSwitchModule, NuiMessageModule, NuiWizardModule, NuiSorterModule, NuiSearchModule, NuiRepeatModule, NuiProgressModule, NuiTableModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTooltipModule, NuiCommonModule, NuiRiskScoreModule, NuiSelectModule, NuiPopoverModule } from '@nova-ui/bits';
|
|
7
|
-
import * as
|
|
6
|
+
import { UnitBase, NuiImageModule, EventDefinition, immutableSet, EventBus, VirtualViewportManager, uuid, TimeframeService, LoggerService, ResizeObserverDirective, nameof, TableSelectionMode, SorterDirection, DEFAULT_INTERACTIVE_ELEMENTS, TableRowComponent, HistoryStorage, OverlayUtilitiesService, getOverlayPositions, NuiFormFieldControl, SelectV2Component, OVERLAY_CONTAINER, SpinnerSize, removeErrors, NuiBusyModule, NuiIconModule, NuiMenuModule, NuiPopupModule, NuiDialogModule, NuiSpinnerModule, NuiTextboxModule, NuiFormFieldModule, NuiButtonModule, NuiOverlayAdditionsModule, NuiSelectV2Module, NuiRadioModule, NuiCheckboxModule, NuiValidationMessageModule, NuiExpanderModule, NuiPanelModule, NuiDividerModule, NuiSwitchModule, NuiMessageModule, NuiWizardModule, NuiSorterModule, NuiSearchModule, NuiRepeatModule, NuiProgressModule, NuiTableModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTooltipModule, NuiCommonModule, NuiRiskScoreModule, NuiSelectModule, NuiPopoverModule, NuiPaginatorModule } from '@nova-ui/bits';
|
|
7
|
+
import * as i11 from '@angular/cdk/scrolling';
|
|
8
8
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
9
9
|
import * as i1$2 from '@angular/forms';
|
|
10
10
|
import { Validators, NG_VALUE_ACCESSOR, ControlContainer, FormGroupDirective, FormGroup, FormArray, NG_VALIDATORS, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -200,6 +200,7 @@ const PREVIEW_EVENT = new EventDefinition("PREVIEW_EVENT");
|
|
|
200
200
|
const DATA_SOURCE_BUSY = new EventDefinition("DATA_SOURCE_BUSY");
|
|
201
201
|
const DASHBOARD_EDIT_MODE = new EventDefinition("DASHBOARD_EDIT_MODE", () => new ReplaySubject(1));
|
|
202
202
|
const INTERACTION = new EventDefinition("INTERACTION");
|
|
203
|
+
const SELECTION = new EventDefinition("SELECTION");
|
|
203
204
|
const DATA_SOURCE_INVOKED = new EventDefinition("DATA_SOURCE_INVOKED");
|
|
204
205
|
const DRILLDOWN = new EventDefinition("DRILLDOWN");
|
|
205
206
|
const NOVA_DATASOURCE_INTERVAL_REFRESHER = "NOVA_DATASOURCE_INTERVAL_REFRESHER";
|
|
@@ -216,6 +217,7 @@ const NOVA_TIMESERIES_SERIES_CONVERTER = "NOVA_TIMESERIES_SERIES_CONVERTER";
|
|
|
216
217
|
const NOVA_DASHBOARD_EVENT_PROXY = "NOVA_DASHBOARD_EVENT_PROXY";
|
|
217
218
|
const NOVA_TABLE_COLUMNS_CONVERTER = "NOVA_TABLE_COLUMNS_CONVERTER";
|
|
218
219
|
const NOVA_TABLE_FILTERS_CONVERTER = "NOVA_TABLE_FILTERS_CONVERTER";
|
|
220
|
+
const NOVA_TABLE_SCROLL_TYPE_CONVERTER = "NOVA_TABLE_SCROLL_TYPE_CONVERTER";
|
|
219
221
|
const NOVA_TABLE_DATASOURCE_ADAPTER = "NOVA_TABLE_DATASOURCE_ADAPTER";
|
|
220
222
|
const NOVA_GENERIC_CONVERTER = "NOVA_GENERIC_CONVERTER";
|
|
221
223
|
const NOVA_GENERIC_ARRAY_CONVERTER = "NOVA_GENERIC_ARRAY_CONVERTER";
|
|
@@ -2733,11 +2735,9 @@ class TableFiltersConverterService extends BaseConverter {
|
|
|
2733
2735
|
this.updateFormPizzagna(formPizzagna);
|
|
2734
2736
|
}
|
|
2735
2737
|
toPreview(form) {
|
|
2736
|
-
form.valueChanges
|
|
2737
|
-
.pipe(takeUntil(this.destroy$))
|
|
2738
|
-
.subscribe((filters) => {
|
|
2738
|
+
form.valueChanges.pipe(takeUntil(this.destroy$)).subscribe((form) => {
|
|
2739
2739
|
let preview = this.getPreview();
|
|
2740
|
-
preview = immutableSet(preview, "table.properties.configuration.sorterConfiguration",
|
|
2740
|
+
preview = immutableSet(preview, "table.properties.configuration.sorterConfiguration", form.sorterConfiguration);
|
|
2741
2741
|
this.updatePreview(preview);
|
|
2742
2742
|
// we need to update form with columns that are available
|
|
2743
2743
|
this.buildForm();
|
|
@@ -2755,6 +2755,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
2755
2755
|
}] }, { type: PreviewService }, { type: PizzagnaService }];
|
|
2756
2756
|
} });
|
|
2757
2757
|
|
|
2758
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2759
|
+
class TableScrollTypeConverterService extends BaseConverter {
|
|
2760
|
+
constructor(eventBus, previewService, pizzagnaService) {
|
|
2761
|
+
super(eventBus, previewService, pizzagnaService);
|
|
2762
|
+
}
|
|
2763
|
+
ngAfterViewInit() {
|
|
2764
|
+
super.ngAfterViewInit();
|
|
2765
|
+
}
|
|
2766
|
+
buildForm() {
|
|
2767
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2768
|
+
let formPizzagna = this.pizzagnaService.pizzagna;
|
|
2769
|
+
const table = (_a = this.getPreview()) === null || _a === void 0 ? void 0 : _a.table;
|
|
2770
|
+
const paginatorConfiguration = (_c = (_b = table === null || table === void 0 ? void 0 : table.properties) === null || _b === void 0 ? void 0 : _b.configuration) === null || _c === void 0 ? void 0 : _c.paginatorConfiguration;
|
|
2771
|
+
const hasVirtualScroll = (_e = (_d = table === null || table === void 0 ? void 0 : table.properties) === null || _d === void 0 ? void 0 : _d.configuration) === null || _e === void 0 ? void 0 : _e.hasVirtualScroll;
|
|
2772
|
+
const scrollType = (_g = (_f = table === null || table === void 0 ? void 0 : table.properties) === null || _f === void 0 ? void 0 : _f.configuration) === null || _g === void 0 ? void 0 : _g.scrollType;
|
|
2773
|
+
formPizzagna = immutableSet(formPizzagna, `${PizzagnaLayer.Data}.scrollType.properties.paginatorConfiguration`, paginatorConfiguration);
|
|
2774
|
+
formPizzagna = immutableSet(formPizzagna, `${PizzagnaLayer.Data}.scrollType.properties.hasVirtualScroll`, hasVirtualScroll);
|
|
2775
|
+
formPizzagna = immutableSet(formPizzagna, `${PizzagnaLayer.Data}.scrollType.properties.scrollType`, scrollType);
|
|
2776
|
+
this.updateFormPizzagna(formPizzagna);
|
|
2777
|
+
}
|
|
2778
|
+
toPreview(form) {
|
|
2779
|
+
form.valueChanges.pipe(takeUntil(this.destroy$)).subscribe((form) => {
|
|
2780
|
+
let preview = this.getPreview();
|
|
2781
|
+
preview = immutableSet(preview, "table.properties.configuration.hasVirtualScroll", false);
|
|
2782
|
+
preview = immutableSet(preview, "table.properties.configuration.scrollType", form.paginatorConfiguration.scrollType);
|
|
2783
|
+
preview = immutableSet(preview, "table.properties.configuration.paginatorConfiguration.pageSizeSet", form.paginatorConfiguration.pageSizeSet);
|
|
2784
|
+
preview = immutableSet(preview, "table.properties.configuration.paginatorConfiguration.pageSize", form.paginatorConfiguration.pageSize);
|
|
2785
|
+
this.updatePreview(preview);
|
|
2786
|
+
});
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
/** @nocollapse */ TableScrollTypeConverterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeConverterService, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: PreviewService }, { token: PizzagnaService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2790
|
+
/** @nocollapse */ TableScrollTypeConverterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeConverterService });
|
|
2791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeConverterService, decorators: [{
|
|
2792
|
+
type: Injectable
|
|
2793
|
+
}], ctorParameters: function () {
|
|
2794
|
+
return [{ type: i2.EventBus, decorators: [{
|
|
2795
|
+
type: Inject,
|
|
2796
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
2797
|
+
}] }, { type: PreviewService }, { type: PizzagnaService }];
|
|
2798
|
+
} });
|
|
2799
|
+
|
|
2758
2800
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2759
2801
|
class TimeseriesMetadataConverterService extends BaseConverter {
|
|
2760
2802
|
constructor(eventBus, previewService, pizzagnaService, timeframeService) {
|
|
@@ -3412,6 +3454,11 @@ class ProviderRegistryService {
|
|
|
3412
3454
|
useClass: TableFiltersConverterService,
|
|
3413
3455
|
deps: [PIZZAGNA_EVENT_BUS, PreviewService, PizzagnaService],
|
|
3414
3456
|
},
|
|
3457
|
+
[NOVA_TABLE_SCROLL_TYPE_CONVERTER]: {
|
|
3458
|
+
provide: CONFIGURATOR_CONVERTER,
|
|
3459
|
+
useClass: TableScrollTypeConverterService,
|
|
3460
|
+
deps: [PIZZAGNA_EVENT_BUS, PreviewService, PizzagnaService],
|
|
3461
|
+
},
|
|
3415
3462
|
[NOVA_LOADING_ADAPTER]: {
|
|
3416
3463
|
provide: LoadingAdapter,
|
|
3417
3464
|
deps: [PIZZAGNA_EVENT_BUS, PizzagnaService],
|
|
@@ -4327,9 +4374,16 @@ class KpiComponent {
|
|
|
4327
4374
|
}
|
|
4328
4375
|
}
|
|
4329
4376
|
}
|
|
4330
|
-
get
|
|
4331
|
-
var _a;
|
|
4332
|
-
|
|
4377
|
+
get showEmpty() {
|
|
4378
|
+
var _a, _b, _c, _d, _e;
|
|
4379
|
+
if (typeof ((_a = this.widgetData) === null || _a === void 0 ? void 0 : _a.value) === "boolean") {
|
|
4380
|
+
return false;
|
|
4381
|
+
}
|
|
4382
|
+
if (Array.isArray((_b = this.widgetData) === null || _b === void 0 ? void 0 : _b.value) &&
|
|
4383
|
+
((_c = this.widgetData) === null || _c === void 0 ? void 0 : _c.value.length) === 0) {
|
|
4384
|
+
return true;
|
|
4385
|
+
}
|
|
4386
|
+
return !((_d = this.widgetData) === null || _d === void 0 ? void 0 : _d.value) && ((_e = this.widgetData) === null || _e === void 0 ? void 0 : _e.value) !== 0;
|
|
4333
4387
|
}
|
|
4334
4388
|
/**
|
|
4335
4389
|
* Iterates over formatters and maps their properties from the data
|
|
@@ -4353,10 +4407,10 @@ class KpiComponent {
|
|
|
4353
4407
|
}
|
|
4354
4408
|
KpiComponent.lateLoadKey = "KpiComponent";
|
|
4355
4409
|
/** @nocollapse */ KpiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: KpiComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component });
|
|
4356
|
-
/** @nocollapse */ KpiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: KpiComponent, selector: "nui-kpi", inputs: { widgetData: "widgetData", backgroundColor: "backgroundColor", syncValuesBroker: "syncValuesBroker", configuration: "configuration", busy: "busy" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"busy\">\n <ng-container *ngIf=\"widgetData?.link\">\n <a class=\"nui-kpi-indicator\" [href]=\"widgetData.link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!widgetData?.link\">\n <div class=\"nui-kpi-indicator\" (click)=\"onInteraction()\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #kpiContent>\n <div\n class=\"nui-kpi-indicator__background\"\n [class.nui-kpi-indicator--interactive]=\"interactive\"\n [ngStyle]=\"{\n 'background-color': backgroundColor || widgetData?.backgroundColor\n }\"\n
|
|
4410
|
+
/** @nocollapse */ KpiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: KpiComponent, selector: "nui-kpi", inputs: { widgetData: "widgetData", backgroundColor: "backgroundColor", syncValuesBroker: "syncValuesBroker", configuration: "configuration", busy: "busy" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"busy\">\n <ng-container *ngIf=\"widgetData?.link\">\n <a class=\"nui-kpi-indicator\" [href]=\"widgetData.link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!widgetData?.link\">\n <div class=\"nui-kpi-indicator\" (click)=\"onInteraction()\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #kpiContent>\n <div\n class=\"nui-kpi-indicator__background\"\n [class.nui-kpi-indicator--interactive]=\"interactive\"\n [ngStyle]=\"{\n 'background-color': backgroundColor || widgetData?.backgroundColor\n }\"\n ></div>\n <div\n class=\"nui-kpi-indicator__text\"\n [ngStyle]=\"{\n color:\n widgetData?.textColor ||\n backgroundColor ||\n widgetData?.backgroundColor ||\n defaultColor\n }\"\n >\n <div class=\"nui-kpi-indicator__zoom-container\">\n <div\n class=\"nui-kpi-indicator__description\"\n [title]=\"widgetData?.label\"\n >\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [minScale]=\"0.5\"\n [scaleIN$]=\"getScaleBroker('label')?.out$\"\n [scaleOUT$]=\"getScaleBroker('label')?.in$\"\n >{{ widgetData?.label }}</span\n >\n </div>\n\n <ng-container\n *ngIf=\"configuration?.formatters?.Value; else kpiValueRaw\"\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n componentId=\"KpiValueFormatter\"\n [componentType]=\"\n configuration?.formatters?.Value?.formatter?.componentType\n \"\n [properties]=\"formattersProperties.Value\"\n >\n <div class=\"nui-kpi-indicator__value\">\n <span\n nuiZoomContent\n [ngClass]=\"\n configuration?.formatters?.Value?.formatter\n ?.componentType === 'IconFormatterComponent'\n ? 'without-filter'\n : ''\n \"\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </span>\n </div>\n </ng-container>\n\n <div class=\"nui-kpi-indicator__units\" [title]=\"widgetData?.units\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('units')?.out$\"\n [scaleOUT$]=\"getScaleBroker('units')?.in$\"\n [minScale]=\"0.5\"\n >{{ widgetData?.units }}</span\n >\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #kpiValueRaw>\n <div\n class=\"nui-kpi-indicator__value\"\n [style.font-size]=\"widgetData?.fontSize\"\n [title]=\"widgetData?.value\"\n >\n <div *ngIf=\"showEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\"\n >\n {{ showEmpty ? \"\" : widgetData?.value }}</span\n >\n </div>\n</ng-template>\n", styles: [".nui-kpi-indicator{position:relative;display:block;height:100%;width:100%}.nui-kpi-indicator__background{height:100%;width:100%;background-color:var(--nui-color-bg-secondary,#fafafa);color:var(--nui-color-text-default,#111)}.nui-kpi-indicator__text{position:absolute;width:100%;height:100%;top:0;pointer-events:none}.nui-kpi-indicator__text *>span{filter:invert(1) grayscale(1) contrast(100)}.nui-kpi-indicator__value{font-size:54px;font-weight:600;margin:auto 0;min-width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:center;height:100%;min-height:5px;max-height:200px}.nui-kpi-indicator__value>span.without-filter{filter:unset}.nui-kpi-indicator__units{font-size:16px;font-weight:600;min-width:0;margin-bottom:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-kpi-indicator__units>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__description{font-size:16px;font-weight:600;min-width:0;margin-top:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-kpi-indicator__description>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__zoom-container{display:grid;grid-template-columns:1fr;grid-template-rows:30% 40% 30%;width:100%;height:100%}.nui-kpi-indicator--interactive{cursor:pointer}.nui-kpi-indicator--interactive:hover{filter:brightness(90%)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.BusyComponent, selector: "[nui-busy]", inputs: ["busy", "disableTabNavigation"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4357
4411
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: KpiComponent, decorators: [{
|
|
4358
4412
|
type: Component,
|
|
4359
|
-
args: [{ selector: "nui-kpi", encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"busy\">\n <ng-container *ngIf=\"widgetData?.link\">\n <a class=\"nui-kpi-indicator\" [href]=\"widgetData.link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!widgetData?.link\">\n <div class=\"nui-kpi-indicator\" (click)=\"onInteraction()\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #kpiContent>\n <div\n class=\"nui-kpi-indicator__background\"\n [class.nui-kpi-indicator--interactive]=\"interactive\"\n [ngStyle]=\"{\n 'background-color': backgroundColor || widgetData?.backgroundColor\n }\"\n
|
|
4413
|
+
args: [{ selector: "nui-kpi", encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"w-100 h-100\" nui-busy [busy]=\"busy\">\n <ng-container *ngIf=\"widgetData?.link\">\n <a class=\"nui-kpi-indicator\" [href]=\"widgetData.link\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </a>\n </ng-container>\n\n <ng-container *ngIf=\"!widgetData?.link\">\n <div class=\"nui-kpi-indicator\" (click)=\"onInteraction()\">\n <ng-container [ngTemplateOutlet]=\"kpiContent\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #kpiContent>\n <div\n class=\"nui-kpi-indicator__background\"\n [class.nui-kpi-indicator--interactive]=\"interactive\"\n [ngStyle]=\"{\n 'background-color': backgroundColor || widgetData?.backgroundColor\n }\"\n ></div>\n <div\n class=\"nui-kpi-indicator__text\"\n [ngStyle]=\"{\n color:\n widgetData?.textColor ||\n backgroundColor ||\n widgetData?.backgroundColor ||\n defaultColor\n }\"\n >\n <div class=\"nui-kpi-indicator__zoom-container\">\n <div\n class=\"nui-kpi-indicator__description\"\n [title]=\"widgetData?.label\"\n >\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [minScale]=\"0.5\"\n [scaleIN$]=\"getScaleBroker('label')?.out$\"\n [scaleOUT$]=\"getScaleBroker('label')?.in$\"\n >{{ widgetData?.label }}</span\n >\n </div>\n\n <ng-container\n *ngIf=\"configuration?.formatters?.Value; else kpiValueRaw\"\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n componentId=\"KpiValueFormatter\"\n [componentType]=\"\n configuration?.formatters?.Value?.formatter?.componentType\n \"\n [properties]=\"formattersProperties.Value\"\n >\n <div class=\"nui-kpi-indicator__value\">\n <span\n nuiZoomContent\n [ngClass]=\"\n configuration?.formatters?.Value?.formatter\n ?.componentType === 'IconFormatterComponent'\n ? 'without-filter'\n : ''\n \"\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </span>\n </div>\n </ng-container>\n\n <div class=\"nui-kpi-indicator__units\" [title]=\"widgetData?.units\">\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('units')?.out$\"\n [scaleOUT$]=\"getScaleBroker('units')?.in$\"\n [minScale]=\"0.5\"\n >{{ widgetData?.units }}</span\n >\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #kpiValueRaw>\n <div\n class=\"nui-kpi-indicator__value\"\n [style.font-size]=\"widgetData?.fontSize\"\n [title]=\"widgetData?.value\"\n >\n <div *ngIf=\"showEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n <span\n nuiZoomContent\n [useZoom]=\"false\"\n [scaleIN$]=\"getScaleBroker('value')?.out$\"\n [scaleOUT$]=\"getScaleBroker('value')?.in$\"\n >\n {{ showEmpty ? \"\" : widgetData?.value }}</span\n >\n </div>\n</ng-template>\n", styles: [".nui-kpi-indicator{position:relative;display:block;height:100%;width:100%}.nui-kpi-indicator__background{height:100%;width:100%;background-color:var(--nui-color-bg-secondary,#fafafa);color:var(--nui-color-text-default,#111)}.nui-kpi-indicator__text{position:absolute;width:100%;height:100%;top:0;pointer-events:none}.nui-kpi-indicator__text *>span{filter:invert(1) grayscale(1) contrast(100)}.nui-kpi-indicator__value{font-size:54px;font-weight:600;margin:auto 0;min-width:100%;white-space:nowrap;display:flex;align-items:center;justify-content:center;height:100%;min-height:5px;max-height:200px}.nui-kpi-indicator__value>span.without-filter{filter:unset}.nui-kpi-indicator__units{font-size:16px;font-weight:600;min-width:0;margin-bottom:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-kpi-indicator__units>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__description{font-size:16px;font-weight:600;min-width:0;margin-top:auto;display:flex;align-items:center;justify-content:center;height:100%;min-height:10px;max-height:45px}.nui-kpi-indicator__description>span{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-kpi-indicator__zoom-container{display:grid;grid-template-columns:1fr;grid-template-rows:30% 40% 30%;width:100%;height:100%}.nui-kpi-indicator--interactive{cursor:pointer}.nui-kpi-indicator--interactive:hover{filter:brightness(90%)}.is-empty{display:grid;place-content:center;height:100%}\n"] }]
|
|
4360
4414
|
}], ctorParameters: function () {
|
|
4361
4415
|
return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4362
4416
|
type: Optional
|
|
@@ -5315,16 +5369,21 @@ class ProportionalWidgetComponent {
|
|
|
5315
5369
|
}
|
|
5316
5370
|
return colorProvider;
|
|
5317
5371
|
}
|
|
5372
|
+
get isEmpty() {
|
|
5373
|
+
return (!this.widgetData ||
|
|
5374
|
+
this.widgetData.length === 0 ||
|
|
5375
|
+
!this.chartAssist);
|
|
5376
|
+
}
|
|
5318
5377
|
}
|
|
5319
5378
|
ProportionalWidgetComponent.lateLoadKey = "ProportionalWidgetComponent";
|
|
5320
5379
|
ProportionalWidgetComponent.NO_SWITCH_LAYOUT_INTERVAL_SIZE = 20;
|
|
5321
5380
|
ProportionalWidgetComponent.MAX_ROW_LAYOUT_SIZE = 360;
|
|
5322
5381
|
ProportionalWidgetComponent.TICK_LABEL_MAX_WIDTH = 75;
|
|
5323
5382
|
/** @nocollapse */ ProportionalWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.KeyValueDiffers }, { token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE }, { token: i2.LoggerService }, { token: i2.UnitConversionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5324
|
-
/** @nocollapse */ ProportionalWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ProportionalWidgetComponent, selector: "nui-proportional-widget", inputs: { widgetData: "widgetData", configuration: "configuration", elementClass: "elementClass", seriesToIconMap: "seriesToIconMap" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div\n class=\"d-flex chart has-overlay\"\n *ngIf=\"widgetData && widgetData.length > 0 && chartAssist\"\n >\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div\n *ngIf=\"!widgetData || widgetData.length === 0 || !chartAssist\"\n class=\"is-empty\"\n >\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#0079aa)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "component", type: i4.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: ProportionalDonutContentComponent, selector: "nui-proportional-donut-content", inputs: ["widgetData", "donutConfig", "chartAssist"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] });
|
|
5383
|
+
/** @nocollapse */ ProportionalWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ProportionalWidgetComponent, selector: "nui-proportional-widget", inputs: { widgetData: "widgetData", configuration: "configuration", elementClass: "elementClass", seriesToIconMap: "seriesToIconMap" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#0079aa)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "component", type: i4.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: ProportionalDonutContentComponent, selector: "nui-proportional-donut-content", inputs: ["widgetData", "donutConfig", "chartAssist"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] });
|
|
5325
5384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalWidgetComponent, decorators: [{
|
|
5326
5385
|
type: Component,
|
|
5327
|
-
args: [{ selector: "nui-proportional-widget", encapsulation: ViewEncapsulation.Emulated, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div
|
|
5386
|
+
args: [{ selector: "nui-proportional-widget", encapsulation: ViewEncapsulation.Emulated, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#0079aa)}.is-empty{display:grid;place-content:center;height:100%}\n"] }]
|
|
5328
5387
|
}], ctorParameters: function () {
|
|
5329
5388
|
return [{ type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.KeyValueDiffers }, { type: i2.EventBus, decorators: [{
|
|
5330
5389
|
type: Inject,
|
|
@@ -5582,7 +5641,10 @@ class VirtualScrollFeatureAddonService {
|
|
|
5582
5641
|
initWidget(widget) {
|
|
5583
5642
|
this.widget = widget;
|
|
5584
5643
|
}
|
|
5585
|
-
initVirtualScroll() {
|
|
5644
|
+
initVirtualScroll(widget) {
|
|
5645
|
+
if (!this.widget) {
|
|
5646
|
+
this.initWidget(widget);
|
|
5647
|
+
}
|
|
5586
5648
|
if (this.widget.hasVirtualScroll) {
|
|
5587
5649
|
this.registerVirtualScroll();
|
|
5588
5650
|
}
|
|
@@ -5653,6 +5715,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
5653
5715
|
type: Injectable
|
|
5654
5716
|
}] });
|
|
5655
5717
|
|
|
5718
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5719
|
+
//
|
|
5720
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5721
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5722
|
+
// deal in the Software without restriction, including without limitation the
|
|
5723
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
5724
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
5725
|
+
// furnished to do so, subject to the following conditions:
|
|
5726
|
+
//
|
|
5727
|
+
// The above copyright notice and this permission notice shall be included in
|
|
5728
|
+
// all copies or substantial portions of the Software.
|
|
5729
|
+
//
|
|
5730
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
5731
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
5732
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
5733
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
5734
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
5735
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
5736
|
+
// THE SOFTWARE.
|
|
5737
|
+
var ScrollType;
|
|
5738
|
+
(function (ScrollType) {
|
|
5739
|
+
ScrollType["virtual"] = "virtual";
|
|
5740
|
+
ScrollType["paginator"] = "paginator";
|
|
5741
|
+
ScrollType["default"] = "default";
|
|
5742
|
+
})(ScrollType || (ScrollType = {}));
|
|
5743
|
+
|
|
5744
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5745
|
+
class PaginatorFeatureAddonService {
|
|
5746
|
+
constructor() {
|
|
5747
|
+
this.defaultPaginatorState = {
|
|
5748
|
+
page: 1,
|
|
5749
|
+
pageSize: 10,
|
|
5750
|
+
pageSizeSet: [10, 20, 50],
|
|
5751
|
+
total: 0,
|
|
5752
|
+
};
|
|
5753
|
+
this.paginatorState = this.defaultPaginatorState;
|
|
5754
|
+
}
|
|
5755
|
+
initPaginator(widget) {
|
|
5756
|
+
this.widget = widget;
|
|
5757
|
+
this.setPaginatorState();
|
|
5758
|
+
}
|
|
5759
|
+
applyFilters() {
|
|
5760
|
+
this.widget.dataSource.applyFilters();
|
|
5761
|
+
}
|
|
5762
|
+
registerPaginator() {
|
|
5763
|
+
if (this.widget.dataSource) {
|
|
5764
|
+
this.widget.dataSource.registerComponent({
|
|
5765
|
+
paginator: {
|
|
5766
|
+
componentInstance: this.widget.paginator,
|
|
5767
|
+
},
|
|
5768
|
+
});
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
deregisterPaginator() {
|
|
5772
|
+
var _a, _b;
|
|
5773
|
+
if (this.widget.dataSource) {
|
|
5774
|
+
(_b = (_a = this.widget.dataSource).deregisterComponent) === null || _b === void 0 ? void 0 : _b.call(_a, "paginator");
|
|
5775
|
+
}
|
|
5776
|
+
}
|
|
5777
|
+
setPaginatorState() {
|
|
5778
|
+
var _a, _b, _c;
|
|
5779
|
+
const paginatorConfiguration = (_a = this.widget.configuration) === null || _a === void 0 ? void 0 : _a.paginatorConfiguration;
|
|
5780
|
+
if (this.widget.hasPaginator) {
|
|
5781
|
+
this.paginatorState.pageSize =
|
|
5782
|
+
(_b = paginatorConfiguration === null || paginatorConfiguration === void 0 ? void 0 : paginatorConfiguration.pageSize) !== null && _b !== void 0 ? _b : this.defaultPaginatorState.pageSize;
|
|
5783
|
+
this.paginatorState.pageSizeSet =
|
|
5784
|
+
(_c = paginatorConfiguration === null || paginatorConfiguration === void 0 ? void 0 : paginatorConfiguration.pageSizeSet) !== null && _c !== void 0 ? _c : this.defaultPaginatorState.pageSizeSet;
|
|
5785
|
+
this.widget.dataSource.outputsSubject.subscribe((data) => {
|
|
5786
|
+
var _a, _b;
|
|
5787
|
+
this.paginatorState.total = (_b = (_a = data.paginator) === null || _a === void 0 ? void 0 : _a.total) !== null && _b !== void 0 ? _b : 0;
|
|
5788
|
+
});
|
|
5789
|
+
// When changing page size from configurator, this will force preview update
|
|
5790
|
+
if (this.widget.paginator) {
|
|
5791
|
+
const pageSize = {
|
|
5792
|
+
oldValue: 0,
|
|
5793
|
+
newValue: this.paginatorState.pageSize,
|
|
5794
|
+
};
|
|
5795
|
+
this.widget.paginator.setItemsPerPage(pageSize);
|
|
5796
|
+
}
|
|
5797
|
+
this.registerPaginator();
|
|
5798
|
+
}
|
|
5799
|
+
else {
|
|
5800
|
+
this.deregisterPaginator();
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5803
|
+
}
|
|
5804
|
+
/** @nocollapse */ PaginatorFeatureAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaginatorFeatureAddonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5805
|
+
/** @nocollapse */ PaginatorFeatureAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaginatorFeatureAddonService });
|
|
5806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaginatorFeatureAddonService, decorators: [{
|
|
5807
|
+
type: Injectable
|
|
5808
|
+
}] });
|
|
5809
|
+
|
|
5656
5810
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5657
5811
|
/**
|
|
5658
5812
|
* @ignore
|
|
@@ -5679,7 +5833,14 @@ class TableWidgetComponent {
|
|
|
5679
5833
|
var _a, _b, _c, _d, _e, _f;
|
|
5680
5834
|
return ((_f = (_b = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.interactive) !== null && _b !== void 0 ? _b : (_e = (_d = (_c = this.dataSource) === null || _c === void 0 ? void 0 : _c.features) === null || _d === void 0 ? void 0 : _d.getFeatureConfig(WellKnownDataSourceFeatures.Interactivity)) === null || _e === void 0 ? void 0 : _e.enabled) !== null && _f !== void 0 ? _f : false);
|
|
5681
5835
|
}
|
|
5682
|
-
|
|
5836
|
+
get clickableRow() {
|
|
5837
|
+
var _a;
|
|
5838
|
+
const configuration = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.selectionConfiguration;
|
|
5839
|
+
return (!!(configuration === null || configuration === void 0 ? void 0 : configuration.enabled) &&
|
|
5840
|
+
(configuration.clickableRow ||
|
|
5841
|
+
configuration.selectionMode === TableSelectionMode.Single));
|
|
5842
|
+
}
|
|
5843
|
+
constructor(eventBus, dataSource, widgetConfigurationService, changeDetector, pizzagnaService, viewportManager, zone, el, logger, searchAddon, paginatorAddon, virtualScrollAddon, formattersRegistryService) {
|
|
5683
5844
|
this.eventBus = eventBus;
|
|
5684
5845
|
this.dataSource = dataSource;
|
|
5685
5846
|
this.widgetConfigurationService = widgetConfigurationService;
|
|
@@ -5690,6 +5851,7 @@ class TableWidgetComponent {
|
|
|
5690
5851
|
this.el = el;
|
|
5691
5852
|
this.logger = logger;
|
|
5692
5853
|
this.searchAddon = searchAddon;
|
|
5854
|
+
this.paginatorAddon = paginatorAddon;
|
|
5693
5855
|
this.virtualScrollAddon = virtualScrollAddon;
|
|
5694
5856
|
this.formattersRegistryService = formattersRegistryService;
|
|
5695
5857
|
// 70 px stands for widget header and margins
|
|
@@ -5699,7 +5861,7 @@ class TableWidgetComponent {
|
|
|
5699
5861
|
this.tableData = [];
|
|
5700
5862
|
this.columns = [];
|
|
5701
5863
|
this.columnsWidthMap = new Map();
|
|
5702
|
-
this.
|
|
5864
|
+
this.scrollType = ScrollType.virtual;
|
|
5703
5865
|
this.isSearchEnabled = false;
|
|
5704
5866
|
this.searchTerm$ = new Subject();
|
|
5705
5867
|
this.onDestroy$ = new Subject();
|
|
@@ -5743,22 +5905,28 @@ class TableWidgetComponent {
|
|
|
5743
5905
|
};
|
|
5744
5906
|
this.onSortOrderChanged(sortedColumn);
|
|
5745
5907
|
}
|
|
5746
|
-
|
|
5747
|
-
if (this.hasVirtualScroll !== newHasVirtualScroll) {
|
|
5748
|
-
this.hasVirtualScroll = newHasVirtualScroll;
|
|
5749
|
-
this.virtualScrollAddon.initVirtualScroll();
|
|
5750
|
-
}
|
|
5908
|
+
this.resolveScrollType(changes);
|
|
5751
5909
|
}
|
|
5752
5910
|
if (changes.totalItems) {
|
|
5753
5911
|
this.totalPages = Math.floor(((_d = this.totalItems) !== null && _d !== void 0 ? _d : 0) / this.range);
|
|
5754
5912
|
}
|
|
5755
5913
|
}
|
|
5914
|
+
resolveScrollType(changes) {
|
|
5915
|
+
// Since removing "hasVirtualScroll" from configuration would cause breaking changes, it is used as primary source of truth
|
|
5916
|
+
const newHasVirtualScroll = get(changes, "configuration.currentValue.hasVirtualScroll", true);
|
|
5917
|
+
const scrollType = get(changes, "configuration.currentValue.scrollType", ScrollType.virtual);
|
|
5918
|
+
this.scrollType = newHasVirtualScroll ? ScrollType.virtual : scrollType;
|
|
5919
|
+
this.virtualScrollAddon.initVirtualScroll(this);
|
|
5920
|
+
this.paginatorAddon.initPaginator(this);
|
|
5921
|
+
if (this.scrollTypeChanged(changes.configuration)) {
|
|
5922
|
+
this.dataSource.applyFilters();
|
|
5923
|
+
}
|
|
5924
|
+
}
|
|
5756
5925
|
ngOnInit() {
|
|
5757
5926
|
if (this.dataSource) {
|
|
5758
5927
|
// Since the sortFilter is not initialized, we have to retrieve and set the correct filter value from the configuration before registering it
|
|
5759
5928
|
this.setSortFilter();
|
|
5760
5929
|
this.registerSorter();
|
|
5761
|
-
this.virtualScrollAddon.initWidget(this);
|
|
5762
5930
|
}
|
|
5763
5931
|
}
|
|
5764
5932
|
ngAfterViewInit() {
|
|
@@ -5769,8 +5937,9 @@ class TableWidgetComponent {
|
|
|
5769
5937
|
(_a = this.dataSource.busy) === null || _a === void 0 ? void 0 : _a.pipe(
|
|
5770
5938
|
// eslint-disable-next-line import/no-deprecated
|
|
5771
5939
|
tap((isBusy) => (this.isBusy = isBusy)), takeUntil(this.onDestroy$)).subscribe();
|
|
5772
|
-
this.virtualScrollAddon.initVirtualScroll();
|
|
5940
|
+
this.virtualScrollAddon.initVirtualScroll(this);
|
|
5773
5941
|
this.searchAddon.initWidget(this);
|
|
5942
|
+
this.paginatorAddon.initPaginator(this);
|
|
5774
5943
|
const tableHeightChanged$ = this.eventBus
|
|
5775
5944
|
.getStream(WIDGET_RESIZE)
|
|
5776
5945
|
.pipe(filter((event) => {
|
|
@@ -5829,8 +5998,13 @@ class TableWidgetComponent {
|
|
|
5829
5998
|
? columnsCondition
|
|
5830
5999
|
: columnsCondition && dataCondition;
|
|
5831
6000
|
}
|
|
5832
|
-
dataTrackBy(
|
|
5833
|
-
|
|
6001
|
+
dataTrackBy() {
|
|
6002
|
+
var _a;
|
|
6003
|
+
const configuration = (_a = this === null || this === void 0 ? void 0 : this.configuration) === null || _a === void 0 ? void 0 : _a.selectionConfiguration;
|
|
6004
|
+
const trackByProperty = ((configuration === null || configuration === void 0 ? void 0 : configuration.enabled) && configuration.trackByProperty) || "id";
|
|
6005
|
+
// we are returning a function here because the scope of "this" changes once it's passed
|
|
6006
|
+
// to the table component and are therefore unable to access the configuration in its body
|
|
6007
|
+
return (index, item) => item ? item[trackByProperty] : index;
|
|
5834
6008
|
}
|
|
5835
6009
|
columnTrackBy(index, item) {
|
|
5836
6010
|
return item.id;
|
|
@@ -5932,8 +6106,15 @@ class TableWidgetComponent {
|
|
|
5932
6106
|
this.flushTableData();
|
|
5933
6107
|
this.eventBus.getStream(REFRESH).next({});
|
|
5934
6108
|
}
|
|
6109
|
+
onSelectionChange(event) {
|
|
6110
|
+
this.eventBus.getStream(SELECTION).next({ payload: event });
|
|
6111
|
+
}
|
|
5935
6112
|
onInteraction(row, event) {
|
|
5936
|
-
|
|
6113
|
+
var _a;
|
|
6114
|
+
if (!this.interactive ||
|
|
6115
|
+
((_a = this.configuration.selectionConfiguration) === null || _a === void 0 ? void 0 : _a.enabled)) {
|
|
6116
|
+
// allowing interactive and selection at the same time would trigger both
|
|
6117
|
+
// events when clicking on a row (not checkbox/radio)
|
|
5937
6118
|
return;
|
|
5938
6119
|
}
|
|
5939
6120
|
const ignoredSelectors = this.configuration.interactionIgnoredSelectors ||
|
|
@@ -5971,6 +6152,12 @@ class TableWidgetComponent {
|
|
|
5971
6152
|
return (((_c = this.formatters.items[column.formatter.componentType]) === null || _c === void 0 ? void 0 : _c.alignment) ||
|
|
5972
6153
|
this.defaultColumnAlignment);
|
|
5973
6154
|
}
|
|
6155
|
+
get hasVirtualScroll() {
|
|
6156
|
+
return this.scrollType === ScrollType.virtual;
|
|
6157
|
+
}
|
|
6158
|
+
get hasPaginator() {
|
|
6159
|
+
return this.scrollType === ScrollType.paginator;
|
|
6160
|
+
}
|
|
5974
6161
|
setSortFilter() {
|
|
5975
6162
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
5976
6163
|
if (this.configuration) {
|
|
@@ -6040,6 +6227,11 @@ class TableWidgetComponent {
|
|
|
6040
6227
|
this.idle = true;
|
|
6041
6228
|
this.tableData = [];
|
|
6042
6229
|
}
|
|
6230
|
+
scrollTypeChanged(configurationChange) {
|
|
6231
|
+
return (!!configurationChange.previousValue &&
|
|
6232
|
+
configurationChange.previousValue.scrollType !==
|
|
6233
|
+
configurationChange.currentValue.scrollType);
|
|
6234
|
+
}
|
|
6043
6235
|
getTableScrollRange() {
|
|
6044
6236
|
var _a;
|
|
6045
6237
|
// Note: To work properly virtual viewport should be scrollable
|
|
@@ -6060,15 +6252,23 @@ class TableWidgetComponent {
|
|
|
6060
6252
|
}
|
|
6061
6253
|
}
|
|
6062
6254
|
TableWidgetComponent.lateLoadKey = "TableWidgetComponent";
|
|
6063
|
-
/** @nocollapse */ TableWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableWidgetComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: WidgetConfigurationService, optional: true }, { token: i0.ChangeDetectorRef }, { token: PizzagnaService }, { token: i2.VirtualViewportManager }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i2.LoggerService }, { token: SearchFeatureAddonService }, { token: VirtualScrollFeatureAddonService }, { token: TableFormatterRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6064
|
-
/** @nocollapse */ TableWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableWidgetComponent, selector: "nui-table-widget", inputs: { widgetData: "widgetData", componentId: "componentId", configuration: "configuration", dataFields: "dataFields", totalItems: "totalItems", indentFromTop: "indentFromTop", sortable: "sortable", delayedMousePresenceDetectionEnabled: "delayedMousePresenceDetectionEnabled", range: "range", elementClass: "elementClass" }, host: { properties: { "class.table-widget-fullwidth": "true", "class": "this.elementClass" } }, providers: [SearchFeatureAddonService, VirtualScrollFeatureAddonService], viewQueries: [{ propertyName: "table", first: true, predicate: ["widgetTable"], descendants: true }, { propertyName: "vscrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "tableRows", predicate: TableRowComponent, descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"h-100 d-flex justify-content-center align-items-center\"\n *ngIf=\"!shouldDisplayTable()\"\n>\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n<!-- h-100 gets added only when there's data to show to prevent an extra scrollbar when the table is empty -->\n<!-- Using invisible class instead of *ngIf as an non-virtual-scroll breakable way to hide the content. -->\n<div\n class=\"nui-table-widget d-flex flex-column\"\n [ngClass]=\"shouldDisplayTable() ? 'h-100' : 'invisible'\"\n>\n <div class=\"mr-2 mb-2 flex-row\" *ngIf=\"isSearchEnabled\">\n <nui-search\n class=\"unlimited-width d-flex justify-content-end flex-grow-1\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearchInputChanged($event)\"\n >\n </nui-search>\n </div>\n <div\n class=\"flex-row h-100 nui-table-widget-container\"\n [nuiDelayedMousePresenceDetection]=\"\n delayedMousePresenceDetectionEnabled\n \"\n [delay]=\"configuration.scrollActivationDelayMs\"\n [mousePresentSubject]=\"mousePresent$\"\n >\n <!-- Note: Using inline style to let tableStickyHeader pick the actual height and update it with header height when it is detached -->\n <cdk-virtual-scroll-viewport\n class=\"calc-height\"\n style=\"height: calc(100% - 2px)\"\n tableStickyHeader\n [itemSize]=\"rowHeight\"\n [ngClass]=\"{\n 'virtual-scroll-disabled':\n (mousePresent$ | async) === false &&\n delayedMousePresenceDetectionEnabled\n }\"\n >\n <table\n class=\"nui-table-widget__main\"\n nui-table\n [reorderable]=\"configuration?.reorderable\"\n [sortable]=\"sortable\"\n [totalItems]=\"totalItems\"\n [dataSource]=\"virtualScrollAddon.visibleItems\"\n [sortedColumn]=\"sortedColumn\"\n (sortOrderChanged)=\"onSortOrderChanged($event)\"\n [trackBy]=\"dataTrackBy\"\n #widgetTable\n >\n <ng-container\n nuiColumnDef=\"{{ column.id }}\"\n *ngFor=\"let column of columns; trackBy: columnTrackBy\"\n >\n <th\n nui-header-cell\n [isColumnSortingDisabled]=\"!column.sortable\"\n *nuiHeaderCellDef\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"columnsWidthMap.get(column.id)\"\n [style.min-width.px]=\"columnsWidthMap.get(column.id)\"\n [title]=\"column.label\"\n [tooltipText]=\"\n headerTooltipsEnabled ? column.label : undefined\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n {{ column.label }}\n </th>\n <ng-container>\n <td\n nui-cell\n *nuiCellDef=\"let element\"\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [style.min-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"formatter\"\n *ngIf=\"element[column.id] && column.formatter\"\n [componentType]=\"\n column.formatter?.componentType\n \"\n [properties]=\"element[column.id]\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"\n componentPortal.attached($event)\n \"\n ></ng-template>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n <tr nui-header-row *nuiHeaderRowDef=\"headers\"></tr>\n <ng-template\n nuiRowDef\n cdkVirtualFor\n let-row\n [nuiRowDefColumns]=\"headers\"\n [cdkVirtualForOf]=\"tableData\"\n [cdkVirtualForTrackBy]=\"dataTrackBy\"\n >\n <tr\n nui-row\n (click)=\"onInteraction(row, $event)\"\n [attr.role]=\"interactive ? 'button' : ''\"\n density=\"tiny\"\n ></tr>\n </ng-template>\n </table>\n </cdk-virtual-scroll-viewport>\n </div>\n</div>\n", styles: [".nui-table-widget{overflow:auto;width:100%}.nui-table-widget .display-contents{display:contents}.nui-table-widget__main{flex:1 1 auto}.nui-table-widget__paginator{margin-top:10px}.nui-table-widget__overflow{overflow-y:auto}.nui-table-widget .nui-table-widget-container .virtual-scroll-disabled.cdk-virtual-scroll-viewport{overflow:hidden!important}:host-context(.mobile) .calc-height{min-height:200px}:host.table-widget-fullwidth{width:calc(100% - 10px)}.invisible{height:0}@-moz-document url-prefix(){.nui-table-widget-container{margin-right:10px}}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.TableComponent, selector: "nui-table, table[nui-table]", inputs: ["reorderable", "sortable", "resizable", "selectable", "totalItems", "dataSource", "selection", "sortedColumn"], outputs: ["columnsOrderChange", "sortOrderChanged", "selectionChange"], exportAs: ["nuiTable"] }, { kind: "directive", type: i2.TableHeaderRowDefDirective, selector: "[nuiHeaderRowDef]", inputs: ["nuiHeaderRowDef", "nuiHeaderRowDefSticky"] }, { kind: "directive", type: i2.TableCellDefDirective, selector: "[nuiCellDef]" }, { kind: "directive", type: i2.TableRowDefDirective, selector: "[nuiRowDef]", inputs: ["nuiRowDefColumns", "nuiRowDefWhen"] }, { kind: "component", type: i2.TableHeaderRowComponent, selector: "nui-header-row, tr[nui-header-row]", inputs: ["density"], exportAs: ["nuiHeaderRow"] }, { kind: "component", type: i2.TableRowComponent, selector: "nui-row, tr[nui-row]", inputs: ["density", "rowObject", "clickableRow", "clickableRowConfig"], exportAs: ["nuiRow"] }, { kind: "directive", type: i2.TableHeaderCellDefDirective, selector: "[nuiHeaderCellDef]" }, { kind: "component", type: i2.TableHeaderCellComponent, selector: "nui-header-cell, th[nui-header-cell]", inputs: ["alignment", "tooltipText", "isColumnSortingDisabled"] }, { kind: "directive", type: i2.TableCellDirective, selector: "nui-cell, td[nui-cell]", inputs: ["tooltipText", "alignment"] }, { kind: "directive", type: i2.TableColumnDefDirective, selector: "[nuiColumnDef]", inputs: ["nuiColumnDef", "type", "columnWidth"] }, { kind: "directive", type: i2.TableStickyHeaderDirective, selector: "cdk-virtual-scroll-viewport[tableStickyHeader]", inputs: ["tableStickyHeader"] }, { kind: "directive", type: i10.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i10.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i10.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: i2.SearchComponent, selector: "nui-search", inputs: ["captureFocus", "name", "isInErrorState", "placeholder", "value"], outputs: ["cancel", "focusChange", "inputChange", "search"] }, { kind: "directive", type: DelayedMousePresenceDetectionDirective, selector: "[nuiDelayedMousePresenceDetection]", inputs: ["nuiDelayedMousePresenceDetection", "mousePresentSubject", "delay"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6255
|
+
/** @nocollapse */ TableWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableWidgetComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: WidgetConfigurationService, optional: true }, { token: i0.ChangeDetectorRef }, { token: PizzagnaService }, { token: i2.VirtualViewportManager }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i2.LoggerService }, { token: SearchFeatureAddonService }, { token: PaginatorFeatureAddonService }, { token: VirtualScrollFeatureAddonService }, { token: TableFormatterRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6256
|
+
/** @nocollapse */ TableWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableWidgetComponent, selector: "nui-table-widget", inputs: { widgetData: "widgetData", componentId: "componentId", configuration: "configuration", dataFields: "dataFields", totalItems: "totalItems", indentFromTop: "indentFromTop", sortable: "sortable", delayedMousePresenceDetectionEnabled: "delayedMousePresenceDetectionEnabled", range: "range", elementClass: "elementClass" }, host: { properties: { "class.table-widget-fullwidth": "true", "class": "this.elementClass" } }, providers: [
|
|
6257
|
+
SearchFeatureAddonService,
|
|
6258
|
+
VirtualScrollFeatureAddonService,
|
|
6259
|
+
PaginatorFeatureAddonService,
|
|
6260
|
+
], viewQueries: [{ propertyName: "table", first: true, predicate: ["widgetTable"], descendants: true }, { propertyName: "paginator", first: true, predicate: ["paginator"], descendants: true }, { propertyName: "vscrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "tableRows", predicate: TableRowComponent, descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"h-100 d-flex justify-content-center align-items-center\"\n *ngIf=\"!shouldDisplayTable()\"\n>\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n<!-- h-100 gets added only when there's data to show to prevent an extra scrollbar when the table is empty -->\n<!-- Using invisible class instead of *ngIf as an non-virtual-scroll breakable way to hide the content. -->\n<div\n class=\"nui-table-widget d-flex flex-column\"\n [ngClass]=\"shouldDisplayTable() ? 'h-100' : 'invisible'\"\n>\n <div class=\"mr-2 mb-2 flex-row\" *ngIf=\"isSearchEnabled\">\n <nui-search\n class=\"unlimited-width d-flex justify-content-end flex-grow-1\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearchInputChanged($event)\"\n >\n </nui-search>\n </div>\n <div\n class=\"flex-row h-100 nui-table-widget-container\"\n [nuiDelayedMousePresenceDetection]=\"\n delayedMousePresenceDetectionEnabled\n \"\n [delay]=\"configuration.scrollActivationDelayMs\"\n [mousePresentSubject]=\"mousePresent$\"\n >\n <!-- Note: Using inline style to let tableStickyHeader pick the actual height and update it with header height when it is detached -->\n <cdk-virtual-scroll-viewport\n class=\"calc-height\"\n style=\"height: calc(100% - 2px)\"\n tableStickyHeader\n [itemSize]=\"rowHeight\"\n [ngClass]=\"{\n 'virtual-scroll-disabled':\n (mousePresent$ | async) === false &&\n delayedMousePresenceDetectionEnabled\n }\"\n >\n <table\n class=\"nui-table-widget__main\"\n nui-table\n [reorderable]=\"configuration?.reorderable\"\n [sortable]=\"sortable\"\n [selectionConfig]=\"configuration?.selectionConfiguration\"\n [totalItems]=\"totalItems\"\n [dataSource]=\"virtualScrollAddon.visibleItems\"\n [sortedColumn]=\"sortedColumn\"\n (sortOrderChanged)=\"onSortOrderChanged($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n [trackBy]=\"dataTrackBy()\"\n #widgetTable\n >\n <ng-container\n nuiColumnDef=\"{{ column.id }}\"\n *ngFor=\"let column of columns; trackBy: columnTrackBy\"\n >\n <th\n nui-header-cell\n [isColumnSortingDisabled]=\"!column.sortable\"\n *nuiHeaderCellDef\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"columnsWidthMap.get(column.id)\"\n [style.min-width.px]=\"columnsWidthMap.get(column.id)\"\n [title]=\"column.label\"\n [tooltipText]=\"\n headerTooltipsEnabled ? column.label : undefined\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n {{ column.label }}\n </th>\n <ng-container>\n <td\n nui-cell\n *nuiCellDef=\"let element\"\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [style.min-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"formatter\"\n *ngIf=\"element[column.id] && column.formatter\"\n [componentType]=\"\n column.formatter?.componentType\n \"\n [properties]=\"element[column.id]\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"\n componentPortal.attached($event)\n \"\n ></ng-template>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n <tr nui-header-row *nuiHeaderRowDef=\"headers\"></tr>\n <ng-template\n nuiRowDef\n cdkVirtualFor\n let-row\n [nuiRowDefColumns]=\"headers\"\n [cdkVirtualForOf]=\"tableData\"\n [cdkVirtualForTrackBy]=\"dataTrackBy\"\n >\n <tr\n nui-row\n (click)=\"onInteraction(row, $event)\"\n [attr.role]=\"interactive ? 'button' : ''\"\n density=\"tiny\"\n [rowObject]=\"row.__record\"\n [clickableRow]=\"clickableRow\"\n ></tr>\n </ng-template>\n </table>\n </cdk-virtual-scroll-viewport>\n </div>\n <div [hidden]=\"!hasPaginator\" class=\"mt-2\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</div>\n\n<ng-template #footer>\n <footer>\n <nui-paginator\n #paginator\n id=\"nui-table-widget-paginator\"\n [page]=\"paginatorAddon.paginatorState.page\"\n [pageSize]=\"paginatorAddon.paginatorState.pageSize\"\n [pageSizeSet]=\"paginatorAddon.paginatorState.pageSizeSet\"\n [total]=\"paginatorAddon.paginatorState.total\"\n (pagerAction)=\"paginatorAddon.applyFilters()\"\n >\n </nui-paginator>\n </footer>\n</ng-template>\n", styles: [".nui-table-widget{overflow:auto;width:100%}.nui-table-widget .display-contents{display:contents}.nui-table-widget__main{flex:1 1 auto}.nui-table-widget__paginator{margin-top:10px}.nui-table-widget__overflow{overflow-y:auto}.nui-table-widget .nui-table-widget-container .virtual-scroll-disabled.cdk-virtual-scroll-viewport{overflow:hidden!important}:host-context(.mobile) .calc-height{min-height:200px}:host.table-widget-fullwidth{width:calc(100% - 10px)}.invisible{height:0}@-moz-document url-prefix(){.nui-table-widget-container{margin-right:10px}}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.TableComponent, selector: "nui-table, table[nui-table]", inputs: ["reorderable", "sortable", "resizable", "selectable", "selectionConfig", "totalItems", "dataSource", "selection", "sortedColumn"], outputs: ["columnsOrderChange", "sortOrderChanged", "selectionChange"], exportAs: ["nuiTable"] }, { kind: "directive", type: i2.TableHeaderRowDefDirective, selector: "[nuiHeaderRowDef]", inputs: ["nuiHeaderRowDef", "nuiHeaderRowDefSticky"] }, { kind: "directive", type: i2.TableCellDefDirective, selector: "[nuiCellDef]" }, { kind: "directive", type: i2.TableRowDefDirective, selector: "[nuiRowDef]", inputs: ["nuiRowDefColumns", "nuiRowDefWhen"] }, { kind: "component", type: i2.TableHeaderRowComponent, selector: "nui-header-row, tr[nui-header-row]", inputs: ["density"], exportAs: ["nuiHeaderRow"] }, { kind: "component", type: i2.TableRowComponent, selector: "nui-row, tr[nui-row]", inputs: ["density", "rowObject", "clickableRow", "clickableRowConfig"], exportAs: ["nuiRow"] }, { kind: "directive", type: i2.TableHeaderCellDefDirective, selector: "[nuiHeaderCellDef]" }, { kind: "component", type: i2.TableHeaderCellComponent, selector: "nui-header-cell, th[nui-header-cell]", inputs: ["alignment", "tooltipText", "isColumnSortingDisabled"] }, { kind: "directive", type: i2.TableCellDirective, selector: "nui-cell, td[nui-cell]", inputs: ["tooltipText", "alignment"] }, { kind: "directive", type: i2.TableColumnDefDirective, selector: "[nuiColumnDef]", inputs: ["nuiColumnDef", "type", "columnWidth"] }, { kind: "directive", type: i2.TableStickyHeaderDirective, selector: "cdk-virtual-scroll-viewport[tableStickyHeader]", inputs: ["tableStickyHeader"] }, { kind: "directive", type: i11.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i11.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i11.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: i2.SearchComponent, selector: "nui-search", inputs: ["captureFocus", "name", "isInErrorState", "placeholder", "value"], outputs: ["cancel", "focusChange", "inputChange", "search"] }, { kind: "component", type: i2.PaginatorComponent, selector: "nui-paginator", inputs: ["itemsList", "page", "pageSize", "pageSizeSet", "total", "dots", "hideIfEmpty", "hide", "activeClass", "disabledClass", "adjacent", "maxElements", "showPrevNext", "popupDirectionTop", "popupBaseElementSelector", "appendToBody"], outputs: ["pagerAction", "pageChange"] }, { kind: "directive", type: DelayedMousePresenceDetectionDirective, selector: "[nuiDelayedMousePresenceDetection]", inputs: ["nuiDelayedMousePresenceDetection", "mousePresentSubject", "delay"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6065
6261
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableWidgetComponent, decorators: [{
|
|
6066
6262
|
type: Component,
|
|
6067
|
-
args: [{ selector: "nui-table-widget", changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
6263
|
+
args: [{ selector: "nui-table-widget", changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
6264
|
+
SearchFeatureAddonService,
|
|
6265
|
+
VirtualScrollFeatureAddonService,
|
|
6266
|
+
PaginatorFeatureAddonService,
|
|
6267
|
+
], host: {
|
|
6068
6268
|
// Note: Moved here from configuration to ensure that consumers will not override it.
|
|
6069
6269
|
// Used to prevent table overflowing preview container in the edit/configuration mode.
|
|
6070
6270
|
"[class.table-widget-fullwidth]": "true",
|
|
6071
|
-
}, template: "<div\n class=\"h-100 d-flex justify-content-center align-items-center\"\n *ngIf=\"!shouldDisplayTable()\"\n>\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n<!-- h-100 gets added only when there's data to show to prevent an extra scrollbar when the table is empty -->\n<!-- Using invisible class instead of *ngIf as an non-virtual-scroll breakable way to hide the content. -->\n<div\n class=\"nui-table-widget d-flex flex-column\"\n [ngClass]=\"shouldDisplayTable() ? 'h-100' : 'invisible'\"\n>\n <div class=\"mr-2 mb-2 flex-row\" *ngIf=\"isSearchEnabled\">\n <nui-search\n class=\"unlimited-width d-flex justify-content-end flex-grow-1\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearchInputChanged($event)\"\n >\n </nui-search>\n </div>\n <div\n class=\"flex-row h-100 nui-table-widget-container\"\n [nuiDelayedMousePresenceDetection]=\"\n delayedMousePresenceDetectionEnabled\n \"\n [delay]=\"configuration.scrollActivationDelayMs\"\n [mousePresentSubject]=\"mousePresent$\"\n >\n <!-- Note: Using inline style to let tableStickyHeader pick the actual height and update it with header height when it is detached -->\n <cdk-virtual-scroll-viewport\n class=\"calc-height\"\n style=\"height: calc(100% - 2px)\"\n tableStickyHeader\n [itemSize]=\"rowHeight\"\n [ngClass]=\"{\n 'virtual-scroll-disabled':\n (mousePresent$ | async) === false &&\n delayedMousePresenceDetectionEnabled\n }\"\n >\n <table\n class=\"nui-table-widget__main\"\n nui-table\n [reorderable]=\"configuration?.reorderable\"\n [sortable]=\"sortable\"\n [totalItems]=\"totalItems\"\n [dataSource]=\"virtualScrollAddon.visibleItems\"\n [sortedColumn]=\"sortedColumn\"\n (sortOrderChanged)=\"onSortOrderChanged($event)\"\n [trackBy]=\"dataTrackBy\"\n #widgetTable\n >\n <ng-container\n nuiColumnDef=\"{{ column.id }}\"\n *ngFor=\"let column of columns; trackBy: columnTrackBy\"\n >\n <th\n nui-header-cell\n [isColumnSortingDisabled]=\"!column.sortable\"\n *nuiHeaderCellDef\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"columnsWidthMap.get(column.id)\"\n [style.min-width.px]=\"columnsWidthMap.get(column.id)\"\n [title]=\"column.label\"\n [tooltipText]=\"\n headerTooltipsEnabled ? column.label : undefined\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n {{ column.label }}\n </th>\n <ng-container>\n <td\n nui-cell\n *nuiCellDef=\"let element\"\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [style.min-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"formatter\"\n *ngIf=\"element[column.id] && column.formatter\"\n [componentType]=\"\n column.formatter?.componentType\n \"\n [properties]=\"element[column.id]\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"\n componentPortal.attached($event)\n \"\n ></ng-template>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n <tr nui-header-row *nuiHeaderRowDef=\"headers\"></tr>\n <ng-template\n nuiRowDef\n cdkVirtualFor\n let-row\n [nuiRowDefColumns]=\"headers\"\n [cdkVirtualForOf]=\"tableData\"\n [cdkVirtualForTrackBy]=\"dataTrackBy\"\n >\n <tr\n nui-row\n (click)=\"onInteraction(row, $event)\"\n [attr.role]=\"interactive ? 'button' : ''\"\n density=\"tiny\"\n ></tr>\n </ng-template>\n </table>\n </cdk-virtual-scroll-viewport>\n </div>\n</div>\n", styles: [".nui-table-widget{overflow:auto;width:100%}.nui-table-widget .display-contents{display:contents}.nui-table-widget__main{flex:1 1 auto}.nui-table-widget__paginator{margin-top:10px}.nui-table-widget__overflow{overflow-y:auto}.nui-table-widget .nui-table-widget-container .virtual-scroll-disabled.cdk-virtual-scroll-viewport{overflow:hidden!important}:host-context(.mobile) .calc-height{min-height:200px}:host.table-widget-fullwidth{width:calc(100% - 10px)}.invisible{height:0}@-moz-document url-prefix(){.nui-table-widget-container{margin-right:10px}}\n"] }]
|
|
6271
|
+
}, template: "<div\n class=\"h-100 d-flex justify-content-center align-items-center\"\n *ngIf=\"!shouldDisplayTable()\"\n>\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n<!-- h-100 gets added only when there's data to show to prevent an extra scrollbar when the table is empty -->\n<!-- Using invisible class instead of *ngIf as an non-virtual-scroll breakable way to hide the content. -->\n<div\n class=\"nui-table-widget d-flex flex-column\"\n [ngClass]=\"shouldDisplayTable() ? 'h-100' : 'invisible'\"\n>\n <div class=\"mr-2 mb-2 flex-row\" *ngIf=\"isSearchEnabled\">\n <nui-search\n class=\"unlimited-width d-flex justify-content-end flex-grow-1\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearchInputChanged($event)\"\n >\n </nui-search>\n </div>\n <div\n class=\"flex-row h-100 nui-table-widget-container\"\n [nuiDelayedMousePresenceDetection]=\"\n delayedMousePresenceDetectionEnabled\n \"\n [delay]=\"configuration.scrollActivationDelayMs\"\n [mousePresentSubject]=\"mousePresent$\"\n >\n <!-- Note: Using inline style to let tableStickyHeader pick the actual height and update it with header height when it is detached -->\n <cdk-virtual-scroll-viewport\n class=\"calc-height\"\n style=\"height: calc(100% - 2px)\"\n tableStickyHeader\n [itemSize]=\"rowHeight\"\n [ngClass]=\"{\n 'virtual-scroll-disabled':\n (mousePresent$ | async) === false &&\n delayedMousePresenceDetectionEnabled\n }\"\n >\n <table\n class=\"nui-table-widget__main\"\n nui-table\n [reorderable]=\"configuration?.reorderable\"\n [sortable]=\"sortable\"\n [selectionConfig]=\"configuration?.selectionConfiguration\"\n [totalItems]=\"totalItems\"\n [dataSource]=\"virtualScrollAddon.visibleItems\"\n [sortedColumn]=\"sortedColumn\"\n (sortOrderChanged)=\"onSortOrderChanged($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n [trackBy]=\"dataTrackBy()\"\n #widgetTable\n >\n <ng-container\n nuiColumnDef=\"{{ column.id }}\"\n *ngFor=\"let column of columns; trackBy: columnTrackBy\"\n >\n <th\n nui-header-cell\n [isColumnSortingDisabled]=\"!column.sortable\"\n *nuiHeaderCellDef\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"columnsWidthMap.get(column.id)\"\n [style.min-width.px]=\"columnsWidthMap.get(column.id)\"\n [title]=\"column.label\"\n [tooltipText]=\"\n headerTooltipsEnabled ? column.label : undefined\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n {{ column.label }}\n </th>\n <ng-container>\n <td\n nui-cell\n *nuiCellDef=\"let element\"\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [style.min-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"formatter\"\n *ngIf=\"element[column.id] && column.formatter\"\n [componentType]=\"\n column.formatter?.componentType\n \"\n [properties]=\"element[column.id]\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"\n componentPortal.attached($event)\n \"\n ></ng-template>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n <tr nui-header-row *nuiHeaderRowDef=\"headers\"></tr>\n <ng-template\n nuiRowDef\n cdkVirtualFor\n let-row\n [nuiRowDefColumns]=\"headers\"\n [cdkVirtualForOf]=\"tableData\"\n [cdkVirtualForTrackBy]=\"dataTrackBy\"\n >\n <tr\n nui-row\n (click)=\"onInteraction(row, $event)\"\n [attr.role]=\"interactive ? 'button' : ''\"\n density=\"tiny\"\n [rowObject]=\"row.__record\"\n [clickableRow]=\"clickableRow\"\n ></tr>\n </ng-template>\n </table>\n </cdk-virtual-scroll-viewport>\n </div>\n <div [hidden]=\"!hasPaginator\" class=\"mt-2\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</div>\n\n<ng-template #footer>\n <footer>\n <nui-paginator\n #paginator\n id=\"nui-table-widget-paginator\"\n [page]=\"paginatorAddon.paginatorState.page\"\n [pageSize]=\"paginatorAddon.paginatorState.pageSize\"\n [pageSizeSet]=\"paginatorAddon.paginatorState.pageSizeSet\"\n [total]=\"paginatorAddon.paginatorState.total\"\n (pagerAction)=\"paginatorAddon.applyFilters()\"\n >\n </nui-paginator>\n </footer>\n</ng-template>\n", styles: [".nui-table-widget{overflow:auto;width:100%}.nui-table-widget .display-contents{display:contents}.nui-table-widget__main{flex:1 1 auto}.nui-table-widget__paginator{margin-top:10px}.nui-table-widget__overflow{overflow-y:auto}.nui-table-widget .nui-table-widget-container .virtual-scroll-disabled.cdk-virtual-scroll-viewport{overflow:hidden!important}:host-context(.mobile) .calc-height{min-height:200px}:host.table-widget-fullwidth{width:calc(100% - 10px)}.invisible{height:0}@-moz-document url-prefix(){.nui-table-widget-container{margin-right:10px}}\n"] }]
|
|
6072
6272
|
}], ctorParameters: function () {
|
|
6073
6273
|
return [{ type: i2.EventBus, decorators: [{
|
|
6074
6274
|
type: Inject,
|
|
@@ -6080,7 +6280,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
6080
6280
|
args: [DATA_SOURCE]
|
|
6081
6281
|
}] }, { type: WidgetConfigurationService, decorators: [{
|
|
6082
6282
|
type: Optional
|
|
6083
|
-
}] }, { type: i0.ChangeDetectorRef }, { type: PizzagnaService }, { type: i2.VirtualViewportManager }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i2.LoggerService }, { type: SearchFeatureAddonService }, { type: VirtualScrollFeatureAddonService }, { type: TableFormatterRegistryService }];
|
|
6283
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: PizzagnaService }, { type: i2.VirtualViewportManager }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i2.LoggerService }, { type: SearchFeatureAddonService }, { type: PaginatorFeatureAddonService }, { type: VirtualScrollFeatureAddonService }, { type: TableFormatterRegistryService }];
|
|
6084
6284
|
}, propDecorators: { widgetData: [{
|
|
6085
6285
|
type: Input
|
|
6086
6286
|
}], componentId: [{
|
|
@@ -6107,6 +6307,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
6107
6307
|
}], table: [{
|
|
6108
6308
|
type: ViewChild,
|
|
6109
6309
|
args: ["widgetTable"]
|
|
6310
|
+
}], paginator: [{
|
|
6311
|
+
type: ViewChild,
|
|
6312
|
+
args: ["paginator"]
|
|
6110
6313
|
}], vscrollViewport: [{
|
|
6111
6314
|
type: ViewChild,
|
|
6112
6315
|
args: [CdkVirtualScrollViewport]
|
|
@@ -10058,7 +10261,7 @@ class DashwizStepComponent {
|
|
|
10058
10261
|
}
|
|
10059
10262
|
}
|
|
10060
10263
|
/** @nocollapse */ DashwizStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DashwizStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10061
|
-
/** @nocollapse */ DashwizStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DashwizStepComponent, selector: "nui-dashwiz-step", inputs: { stepTemplate: "stepTemplate", stepControl: "stepControl", title: "title", nextText: "nextText", hidden: "hidden", disabled: "disabled", spinnerSize: "spinnerSize" }, outputs: { enter: "enter", valid: "valid", exit: "exit", next: "next" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto nui-scroll-shadows configurator-scrollable\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"], dependencies: [{ kind: "directive", type:
|
|
10264
|
+
/** @nocollapse */ DashwizStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DashwizStepComponent, selector: "nui-dashwiz-step", inputs: { stepTemplate: "stepTemplate", stepControl: "stepControl", title: "title", nextText: "nextText", hidden: "hidden", disabled: "disabled", spinnerSize: "spinnerSize" }, outputs: { enter: "enter", valid: "valid", exit: "exit", next: "next" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto nui-scroll-shadows configurator-scrollable\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"], dependencies: [{ kind: "directive", type: i11.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.BusyComponent, selector: "[nui-busy]", inputs: ["busy", "disableTabNavigation"] }, { kind: "component", type: i2.SpinnerComponent, selector: "nui-spinner", inputs: ["percent", "show", "delay", "allowCancel", "message", "helpText", "ariaLabel", "size"], outputs: ["cancel"] }] });
|
|
10062
10265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DashwizStepComponent, decorators: [{
|
|
10063
10266
|
type: Component,
|
|
10064
10267
|
args: [{ selector: "nui-dashwiz-step", template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto nui-scroll-shadows configurator-scrollable\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"] }]
|
|
@@ -10794,6 +10997,7 @@ class WidgetEditorAccordionComponent {
|
|
|
10794
10997
|
this.cd = cd;
|
|
10795
10998
|
this.showOpenStateIcon = true;
|
|
10796
10999
|
this.state = AccordionState.DEFAULT;
|
|
11000
|
+
this.openToggle = new EventEmitter();
|
|
10797
11001
|
this.open = false;
|
|
10798
11002
|
this.openSubject = new Subject();
|
|
10799
11003
|
this.destroySubject = new Subject();
|
|
@@ -10802,6 +11006,7 @@ class WidgetEditorAccordionComponent {
|
|
|
10802
11006
|
this.accordionCoordinator.registerAccordion(this);
|
|
10803
11007
|
}
|
|
10804
11008
|
openChange(isOpened) {
|
|
11009
|
+
this.openToggle.emit(isOpened);
|
|
10805
11010
|
if (isOpened) {
|
|
10806
11011
|
this.openSubject.next();
|
|
10807
11012
|
}
|
|
@@ -10819,7 +11024,7 @@ class WidgetEditorAccordionComponent {
|
|
|
10819
11024
|
}
|
|
10820
11025
|
}
|
|
10821
11026
|
/** @nocollapse */ WidgetEditorAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: WidgetEditorAccordionComponent, deps: [{ token: WidgetConfiguratorSectionCoordinatorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10822
|
-
/** @nocollapse */ WidgetEditorAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: { showOpenStateIcon: "showOpenStateIcon", state: "state" }, ngImport: i0, template: "<div class=\"nui-widget-editor-accordion\">\n <nui-expander [open]=\"open\" (openChange)=\"openChange($event)\">\n <div\n nuiExpanderHeader\n class=\"d-flex align-items-start\"\n [class.error-state]=\"state === 'critical'\"\n [class.warning-state]=\"state === 'warning'\"\n >\n <ng-content\n select=\"[accordionHeader], nui-widget-editor-accordion-header\"\n ></ng-content>\n <nui-icon\n *ngIf=\"showOpenStateIcon\"\n class=\"nui-widget-editor-accordion__edit-icon\"\n [icon]=\"open ? 'triangle-down' : 'triangle-left'\"\n ></nui-icon>\n </div>\n <ng-content></ng-content>\n </nui-expander>\n</div>\n", styles: [".nui-widget-editor-accordion nui-form-field:last-child .nui-form-field{margin-bottom:0}.nui-widget-editor-accordion__edit-icon{padding:10px;margin-left:auto;margin-right:5px}.nui-widget-editor-accordion .nui-expander--expanded{padding-bottom:0}.nui-widget-editor-accordion .nui-expander__header-icon{display:none}.nui-widget-editor-accordion .nui-expander__header .error-state{background-color:var(--nui-color-semantic-critical-bg,#fceae6)}.nui-widget-editor-accordion .nui-expander__header .warning-state{background-color:var(--nui-color-semantic-warning-bg,#fff9e6)}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader]{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);min-height:50px}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]{overflow:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div{overflow-x:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div .nui-text-secondary,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div .nui-text-secondary{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget-editor-accordion .nui-expander__body{margin:0;padding:0;border-left:none}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ExpanderComponent, selector: "nui-expander", inputs: ["disabled", "icon", "header", "hideLeftBorder", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11027
|
+
/** @nocollapse */ WidgetEditorAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: { showOpenStateIcon: "showOpenStateIcon", state: "state" }, outputs: { openToggle: "openToggle" }, ngImport: i0, template: "<div class=\"nui-widget-editor-accordion\">\n <nui-expander [open]=\"open\" (openChange)=\"openChange($event)\">\n <div\n nuiExpanderHeader\n class=\"d-flex align-items-start\"\n [class.error-state]=\"state === 'critical'\"\n [class.warning-state]=\"state === 'warning'\"\n >\n <ng-content\n select=\"[accordionHeader], nui-widget-editor-accordion-header\"\n ></ng-content>\n <nui-icon\n *ngIf=\"showOpenStateIcon\"\n class=\"nui-widget-editor-accordion__edit-icon\"\n [icon]=\"open ? 'triangle-down' : 'triangle-left'\"\n ></nui-icon>\n </div>\n <ng-content></ng-content>\n </nui-expander>\n</div>\n", styles: [".nui-widget-editor-accordion nui-form-field:last-child .nui-form-field{margin-bottom:0}.nui-widget-editor-accordion__edit-icon{padding:10px;margin-left:auto;margin-right:5px}.nui-widget-editor-accordion .nui-expander--expanded{padding-bottom:0}.nui-widget-editor-accordion .nui-expander__header-icon{display:none}.nui-widget-editor-accordion .nui-expander__header .error-state{background-color:var(--nui-color-semantic-critical-bg,#fceae6)}.nui-widget-editor-accordion .nui-expander__header .warning-state{background-color:var(--nui-color-semantic-warning-bg,#fff9e6)}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader]{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);min-height:50px}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]{overflow:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div{overflow-x:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div .nui-text-secondary,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div .nui-text-secondary{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget-editor-accordion .nui-expander__body{margin:0;padding:0;border-left:none}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ExpanderComponent, selector: "nui-expander", inputs: ["disabled", "icon", "header", "hideLeftBorder", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
10823
11028
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: WidgetEditorAccordionComponent, decorators: [{
|
|
10824
11029
|
type: Component,
|
|
10825
11030
|
args: [{ selector: "nui-widget-editor-accordion", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"nui-widget-editor-accordion\">\n <nui-expander [open]=\"open\" (openChange)=\"openChange($event)\">\n <div\n nuiExpanderHeader\n class=\"d-flex align-items-start\"\n [class.error-state]=\"state === 'critical'\"\n [class.warning-state]=\"state === 'warning'\"\n >\n <ng-content\n select=\"[accordionHeader], nui-widget-editor-accordion-header\"\n ></ng-content>\n <nui-icon\n *ngIf=\"showOpenStateIcon\"\n class=\"nui-widget-editor-accordion__edit-icon\"\n [icon]=\"open ? 'triangle-down' : 'triangle-left'\"\n ></nui-icon>\n </div>\n <ng-content></ng-content>\n </nui-expander>\n</div>\n", styles: [".nui-widget-editor-accordion nui-form-field:last-child .nui-form-field{margin-bottom:0}.nui-widget-editor-accordion__edit-icon{padding:10px;margin-left:auto;margin-right:5px}.nui-widget-editor-accordion .nui-expander--expanded{padding-bottom:0}.nui-widget-editor-accordion .nui-expander__header-icon{display:none}.nui-widget-editor-accordion .nui-expander__header .error-state{background-color:var(--nui-color-semantic-critical-bg,#fceae6)}.nui-widget-editor-accordion .nui-expander__header .warning-state{background-color:var(--nui-color-semantic-warning-bg,#fff9e6)}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader]{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);min-height:50px}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]{overflow:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div{overflow-x:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div .nui-text-secondary,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div .nui-text-secondary{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget-editor-accordion .nui-expander__body{margin:0;padding:0;border-left:none}\n"] }]
|
|
@@ -10827,6 +11032,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
10827
11032
|
type: Input
|
|
10828
11033
|
}], state: [{
|
|
10829
11034
|
type: Input
|
|
11035
|
+
}], openToggle: [{
|
|
11036
|
+
type: Output
|
|
10830
11037
|
}] } });
|
|
10831
11038
|
|
|
10832
11039
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -11174,7 +11381,7 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
11174
11381
|
}
|
|
11175
11382
|
BackgroundColorRulesConfigurationComponent.lateLoadKey = "BackgroundColorRulesConfigurationComponent";
|
|
11176
11383
|
/** @nocollapse */ BackgroundColorRulesConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: KpiColorComparatorsRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11177
|
-
/** @nocollapse */ BackgroundColorRulesConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: BackgroundColorRulesConfigurationComponent, selector: "nui-background-color-rules-configuration", inputs: { rules: "rules", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\"\n />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngFor=\"\n let rule of formLocal.get('rules')?.value.controls;\n index as i\n \"\n >\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n >\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\"\n >\n <nui-icon\n icon=\"drag\"\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n ></nui-icon>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\"\n >\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\"\n >\n <nui-textbox\n formControlName=\"value\"\n ></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\"\n >\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"\n ></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"\n ></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n </div>\n </ng-container>\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n\n >\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move}.kpi-color-rule__control{min-width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["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: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "component", type: ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11384
|
+
/** @nocollapse */ BackgroundColorRulesConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: BackgroundColorRulesConfigurationComponent, selector: "nui-background-color-rules-configuration", inputs: { rules: "rules", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\"\n />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngFor=\"\n let rule of formLocal.get('rules')?.value.controls;\n index as i\n \"\n >\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n >\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\"\n >\n <nui-icon\n icon=\"drag\"\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n ></nui-icon>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\"\n >\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\"\n >\n <nui-textbox\n formControlName=\"value\"\n ></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\"\n >\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"\n ></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"\n ></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n </div>\n </ng-container>\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n\n >\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move}.kpi-color-rule__control{min-width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["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: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { 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: 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: "component", type: ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11178
11385
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, decorators: [{
|
|
11179
11386
|
type: Component,
|
|
11180
11387
|
args: [{ selector: "nui-background-color-rules-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\"\n />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngFor=\"\n let rule of formLocal.get('rules')?.value.controls;\n index as i\n \"\n >\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n >\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\"\n >\n <nui-icon\n icon=\"drag\"\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n ></nui-icon>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\"\n >\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\"\n >\n <nui-textbox\n formControlName=\"value\"\n ></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\"\n >\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"\n ></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"\n ></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n </div>\n </ng-container>\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n\n >\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move}.kpi-color-rule__control{min-width:30px;height:30px}\n"] }]
|
|
@@ -11375,7 +11582,7 @@ class DataSourceConfigurationV2Component {
|
|
|
11375
11582
|
}
|
|
11376
11583
|
DataSourceConfigurationV2Component.lateLoadKey = "DataSourceConfigurationV2Component";
|
|
11377
11584
|
/** @nocollapse */ DataSourceConfigurationV2Component.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataSourceConfigurationV2Component, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: ProviderRegistryService }, { token: PIZZAGNA_EVENT_BUS }, { token: i0.Injector }, { token: i2.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11378
|
-
/** @nocollapse */ DataSourceConfigurationV2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DataSourceConfigurationV2Component, selector: "nui-data-source-configuration", inputs: { dataSourceProviders: "dataSourceProviders", properties: "properties", providerId: "providerId", errorComponent: "errorComponent" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'database' | async\"\n [subtitle]=\"form.get('dataSource')?.value?.label\"\n headerTitle=\"Data Source\"\n />\n <div class=\"datasource-configuration__accordion-content\">\n <nui-form-field [control]=\"form.get('dataSource')\">\n <nui-select-v2\n placeholder=\"Select data source\"\n i18n-placeholder\n [title]=\"form.get('dataSource')?.value?.label\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"dataSource\"\n (valueSelected)=\"onDataSourceSelected($event)\"\n class=\"datasource-configuration__accordion-content__datasource-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let dataSourceProvider of dataSourceProviders\"\n [title]=\"dataSourceProvider?.label\"\n [value]=\"dataSourceProvider\"\n >\n {{ dataSourceProvider.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <ng-container\n nuiComponentPortal\n [componentId]=\"errorComponent\"\n [componentType]=\"errorComponent\"\n [outputs]=\"['errorState']\"\n [properties]=\"{ dataSource: dataSource }\"\n (output)=\"onErrorState($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".datasource-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11585
|
+
/** @nocollapse */ DataSourceConfigurationV2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DataSourceConfigurationV2Component, selector: "nui-data-source-configuration", inputs: { dataSourceProviders: "dataSourceProviders", properties: "properties", providerId: "providerId", errorComponent: "errorComponent" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'database' | async\"\n [subtitle]=\"form.get('dataSource')?.value?.label\"\n headerTitle=\"Data Source\"\n />\n <div class=\"datasource-configuration__accordion-content\">\n <nui-form-field [control]=\"form.get('dataSource')\">\n <nui-select-v2\n placeholder=\"Select data source\"\n i18n-placeholder\n [title]=\"form.get('dataSource')?.value?.label\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"dataSource\"\n (valueSelected)=\"onDataSourceSelected($event)\"\n class=\"datasource-configuration__accordion-content__datasource-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let dataSourceProvider of dataSourceProviders\"\n [title]=\"dataSourceProvider?.label\"\n [value]=\"dataSourceProvider\"\n >\n {{ dataSourceProvider.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <ng-container\n nuiComponentPortal\n [componentId]=\"errorComponent\"\n [componentType]=\"errorComponent\"\n [outputs]=\"['errorState']\"\n [properties]=\"{ dataSource: dataSource }\"\n (output)=\"onErrorState($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".datasource-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11379
11586
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataSourceConfigurationV2Component, decorators: [{
|
|
11380
11587
|
type: Component,
|
|
11381
11588
|
args: [{ selector: "nui-data-source-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'database' | async\"\n [subtitle]=\"form.get('dataSource')?.value?.label\"\n headerTitle=\"Data Source\"\n />\n <div class=\"datasource-configuration__accordion-content\">\n <nui-form-field [control]=\"form.get('dataSource')\">\n <nui-select-v2\n placeholder=\"Select data source\"\n i18n-placeholder\n [title]=\"form.get('dataSource')?.value?.label\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"dataSource\"\n (valueSelected)=\"onDataSourceSelected($event)\"\n class=\"datasource-configuration__accordion-content__datasource-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let dataSourceProvider of dataSourceProviders\"\n [title]=\"dataSourceProvider?.label\"\n [value]=\"dataSourceProvider\"\n >\n {{ dataSourceProvider.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <ng-container\n nuiComponentPortal\n [componentId]=\"errorComponent\"\n [componentType]=\"errorComponent\"\n [outputs]=\"['errorState']\"\n [properties]=\"{ dataSource: dataSource }\"\n (output)=\"onErrorState($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".datasource-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -11491,7 +11698,7 @@ class DataSourceConfigurationComponent {
|
|
|
11491
11698
|
}
|
|
11492
11699
|
DataSourceConfigurationComponent.lateLoadKey = "DataSourceConfigurationComponent";
|
|
11493
11700
|
/** @nocollapse */ DataSourceConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataSourceConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: ProviderRegistryService }, { token: PIZZAGNA_EVENT_BUS }, { token: i0.Injector }, { token: i2.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11494
|
-
/** @nocollapse */ DataSourceConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DataSourceConfigurationComponent, selector: "nui-data-source-configuration", inputs: { dataSourceProviders: "dataSourceProviders", errorComponent: "errorComponent", properties: "properties", providerId: "providerId" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'database' | async\"\n [subtitle]=\"form.get('providerId')?.value\"\n headerTitle=\"Data Source\"\n />\n <div class=\"datasource-configuration__accordion-content\">\n <nui-form-field\n caption=\"Select Data Source\"\n i18n-caption\n [control]=\"form.get('providerId')\"\n >\n <nui-select-v2\n placeholder=\"Data Sources\"\n i18n-placeholder\n [title]=\"form.get('providerId')?.value\"\n formControlName=\"providerId\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n (valueSelected)=\"onDataSourceChange($event)\"\n class=\"datasource-configuration__accordion-content__datasource-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let dataSourceProvider of dataSourceProviders\"\n [title]=\"dataSourceProvider\"\n [value]=\"dataSourceProvider\"\n >\n {{ dataSourceProvider }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <ng-container\n nuiComponentPortal\n [componentId]=\"errorComponent\"\n [componentType]=\"errorComponent\"\n [outputs]=\"['errorState']\"\n [properties]=\"{ dataSource: dataSource }\"\n (output)=\"onErrorState($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".datasource-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11701
|
+
/** @nocollapse */ DataSourceConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DataSourceConfigurationComponent, selector: "nui-data-source-configuration", inputs: { dataSourceProviders: "dataSourceProviders", errorComponent: "errorComponent", properties: "properties", providerId: "providerId" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'database' | async\"\n [subtitle]=\"form.get('providerId')?.value\"\n headerTitle=\"Data Source\"\n />\n <div class=\"datasource-configuration__accordion-content\">\n <nui-form-field\n caption=\"Select Data Source\"\n i18n-caption\n [control]=\"form.get('providerId')\"\n >\n <nui-select-v2\n placeholder=\"Data Sources\"\n i18n-placeholder\n [title]=\"form.get('providerId')?.value\"\n formControlName=\"providerId\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n (valueSelected)=\"onDataSourceChange($event)\"\n class=\"datasource-configuration__accordion-content__datasource-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let dataSourceProvider of dataSourceProviders\"\n [title]=\"dataSourceProvider\"\n [value]=\"dataSourceProvider\"\n >\n {{ dataSourceProvider }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <ng-container\n nuiComponentPortal\n [componentId]=\"errorComponent\"\n [componentType]=\"errorComponent\"\n [outputs]=\"['errorState']\"\n [properties]=\"{ dataSource: dataSource }\"\n (output)=\"onErrorState($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".datasource-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11495
11702
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataSourceConfigurationComponent, decorators: [{
|
|
11496
11703
|
type: Component,
|
|
11497
11704
|
args: [{ selector: "nui-data-source-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'database' | async\"\n [subtitle]=\"form.get('providerId')?.value\"\n headerTitle=\"Data Source\"\n />\n <div class=\"datasource-configuration__accordion-content\">\n <nui-form-field\n caption=\"Select Data Source\"\n i18n-caption\n [control]=\"form.get('providerId')\"\n >\n <nui-select-v2\n placeholder=\"Data Sources\"\n i18n-placeholder\n [title]=\"form.get('providerId')?.value\"\n formControlName=\"providerId\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n (valueSelected)=\"onDataSourceChange($event)\"\n class=\"datasource-configuration__accordion-content__datasource-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let dataSourceProvider of dataSourceProviders\"\n [title]=\"dataSourceProvider\"\n [value]=\"dataSourceProvider\"\n >\n {{ dataSourceProvider }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <ng-container\n nuiComponentPortal\n [componentId]=\"errorComponent\"\n [componentType]=\"errorComponent\"\n [outputs]=\"['errorState']\"\n [properties]=\"{ dataSource: dataSource }\"\n (output)=\"onErrorState($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".datasource-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -11616,7 +11823,7 @@ class EmbeddedContentConfigurationComponent {
|
|
|
11616
11823
|
}
|
|
11617
11824
|
EmbeddedContentConfigurationComponent.lateLoadKey = "EmbeddedContentConfigurationComponent";
|
|
11618
11825
|
/** @nocollapse */ EmbeddedContentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmbeddedContentConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
11619
|
-
/** @nocollapse */ EmbeddedContentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: EmbeddedContentConfigurationComponent, selector: "nui-embedded-content-configuration", inputs: { mode: "mode", messageComponent: "messageComponent", customEmbeddedContent: "customEmbeddedContent" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required\n >\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\"\n >\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11826
|
+
/** @nocollapse */ EmbeddedContentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: EmbeddedContentConfigurationComponent, selector: "nui-embedded-content-configuration", inputs: { mode: "mode", messageComponent: "messageComponent", customEmbeddedContent: "customEmbeddedContent" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required\n >\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\"\n >\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11620
11827
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmbeddedContentConfigurationComponent, decorators: [{
|
|
11621
11828
|
type: Component,
|
|
11622
11829
|
args: [{ selector: "nui-embedded-content-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required\n >\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\"\n >\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -11707,7 +11914,7 @@ class KpiDescriptionConfigurationComponent {
|
|
|
11707
11914
|
}
|
|
11708
11915
|
KpiDescriptionConfigurationComponent.lateLoadKey = "KpiDescriptionConfigurationComponent";
|
|
11709
11916
|
/** @nocollapse */ KpiDescriptionConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: KpiDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
11710
|
-
/** @nocollapse */ KpiDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: KpiDescriptionConfigurationComponent, selector: "nui-kpi-description-configuration", inputs: { componentId: "componentId", configurableUnits: "configurableUnits", label: "label", backgroundColor: "backgroundColor", units: "units", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"kpi-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\"\n >\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\"\n >\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ 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: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "component", type: ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11917
|
+
/** @nocollapse */ KpiDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: KpiDescriptionConfigurationComponent, selector: "nui-kpi-description-configuration", inputs: { componentId: "componentId", configurableUnits: "configurableUnits", label: "label", backgroundColor: "backgroundColor", units: "units", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"kpi-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\"\n >\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\"\n >\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ 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: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11711
11918
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: KpiDescriptionConfigurationComponent, decorators: [{
|
|
11712
11919
|
type: Component,
|
|
11713
11920
|
args: [{ selector: "nui-kpi-description-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"kpi-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\"\n >\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\"\n >\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"] }]
|
|
@@ -12095,7 +12302,7 @@ class RefresherConfigurationComponent {
|
|
|
12095
12302
|
}
|
|
12096
12303
|
RefresherConfigurationComponent.lateLoadKey = "RefresherConfigurationComponent";
|
|
12097
12304
|
/** @nocollapse */ RefresherConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RefresherConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }, { token: RefresherSettingsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12098
|
-
/** @nocollapse */ RefresherConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RefresherConfigurationComponent, selector: "nui-refresher-configuration", inputs: { enabled: "enabled", interval: "interval", minSeconds: "minSeconds", maxSeconds: "maxSeconds", overrideDefaultSettingsCaption: "overrideDefaultSettingsCaption", overrideDefaultSettings: "overrideDefaultSettings" }, outputs: { formReady: "formReady" }, viewQueries: [{ propertyName: "refreshRateComp", first: true, predicate: RefreshRateConfiguratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\"\n >\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n\n >Refresh widget periodically</nui-switch\n >\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\"\n >{{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n\n >\n By default, the widget will refresh every\n {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds\n )\n }}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\"\n >\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"\n ></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "component", type: RefreshRateConfiguratorComponent, selector: "nui-refresh-rate-configurator", inputs: ["minSeconds", "maxSeconds"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] });
|
|
12305
|
+
/** @nocollapse */ RefresherConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RefresherConfigurationComponent, selector: "nui-refresher-configuration", inputs: { enabled: "enabled", interval: "interval", minSeconds: "minSeconds", maxSeconds: "maxSeconds", overrideDefaultSettingsCaption: "overrideDefaultSettingsCaption", overrideDefaultSettings: "overrideDefaultSettings" }, outputs: { formReady: "formReady" }, viewQueries: [{ propertyName: "refreshRateComp", first: true, predicate: RefreshRateConfiguratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\"\n >\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n\n >Refresh widget periodically</nui-switch\n >\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\"\n >{{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n\n >\n By default, the widget will refresh every\n {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds\n )\n }}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\"\n >\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"\n ></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: RefreshRateConfiguratorComponent, selector: "nui-refresh-rate-configurator", inputs: ["minSeconds", "maxSeconds"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] });
|
|
12099
12306
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RefresherConfigurationComponent, decorators: [{
|
|
12100
12307
|
type: Component,
|
|
12101
12308
|
args: [{ selector: "nui-refresher-configuration", template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\"\n >\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n\n >Refresh widget periodically</nui-switch\n >\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\"\n >{{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n\n >\n By default, the widget will refresh every\n {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds\n )\n }}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\"\n >\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"\n ></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -12176,7 +12383,7 @@ class RiskScoreTileDescriptionConfigurationComponent {
|
|
|
12176
12383
|
}
|
|
12177
12384
|
RiskScoreTileDescriptionConfigurationComponent.lateLoadKey = "RiskScoreTileDescriptionConfigurationComponent";
|
|
12178
12385
|
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
12179
|
-
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RiskScoreTileDescriptionConfigurationComponent, selector: "nui-risk-score-tile-description-configuration", inputs: { componentId: "componentId", label: "label", minValue: "minValue", maxValue: "maxValue", description: "description", useStaticLabel: "useStaticLabel", staticLabel: "staticLabel" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"risk-score-tile-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Min Value\"\n i18n-caption\n [control]=\"form.get('minValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Max Value\"\n i18n-caption\n [control]=\"form.get('maxValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n [control]=\"form.get('useStaticLabel')\"\n class=\"form-group\"\n >\n <nui-switch formControlName=\"useStaticLabel\" i18n\n >Use Float Label</nui-switch\n >\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\" [class.hidden]=\"!form.get('useStaticLabel')?.value\">\n <nui-form-field\n caption=\"Float Label\"\n i18n-caption\n [control]=\"form.get('staticLabel')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Description\"\n i18n-caption\n [control]=\"form.get('description')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"maxlength\" i18n>\n Description cannot be longer than\n {{ MAX_DESCRIPTION_LENGTH }} characters.\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".risk-score-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}.risk-score-tile-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ 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: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12386
|
+
/** @nocollapse */ RiskScoreTileDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: RiskScoreTileDescriptionConfigurationComponent, selector: "nui-risk-score-tile-description-configuration", inputs: { componentId: "componentId", label: "label", minValue: "minValue", maxValue: "maxValue", description: "description", useStaticLabel: "useStaticLabel", staticLabel: "staticLabel" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"risk-score-tile-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Min Value\"\n i18n-caption\n [control]=\"form.get('minValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Max Value\"\n i18n-caption\n [control]=\"form.get('maxValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n [control]=\"form.get('useStaticLabel')\"\n class=\"form-group\"\n >\n <nui-switch formControlName=\"useStaticLabel\" i18n\n >Use Float Label</nui-switch\n >\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\" [class.hidden]=\"!form.get('useStaticLabel')?.value\">\n <nui-form-field\n caption=\"Float Label\"\n i18n-caption\n [control]=\"form.get('staticLabel')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Description\"\n i18n-caption\n [control]=\"form.get('description')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"maxlength\" i18n>\n Description cannot be longer than\n {{ MAX_DESCRIPTION_LENGTH }} characters.\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".risk-score-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}.risk-score-tile-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ 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: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12180
12387
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, decorators: [{
|
|
12181
12388
|
type: Component,
|
|
12182
12389
|
args: [{ selector: "nui-risk-score-tile-description-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"risk-score-tile-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Min Value\"\n i18n-caption\n [control]=\"form.get('minValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Max Value\"\n i18n-caption\n [control]=\"form.get('maxValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n [control]=\"form.get('useStaticLabel')\"\n class=\"form-group\"\n >\n <nui-switch formControlName=\"useStaticLabel\" i18n\n >Use Float Label</nui-switch\n >\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\" [class.hidden]=\"!form.get('useStaticLabel')?.value\">\n <nui-form-field\n caption=\"Float Label\"\n i18n-caption\n [control]=\"form.get('staticLabel')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Description\"\n i18n-caption\n [control]=\"form.get('description')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"maxlength\" i18n>\n Description cannot be longer than\n {{ MAX_DESCRIPTION_LENGTH }} characters.\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".risk-score-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}.risk-score-tile-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"] }]
|
|
@@ -12326,7 +12533,7 @@ class ThresholdsConfigurationComponent {
|
|
|
12326
12533
|
}
|
|
12327
12534
|
ThresholdsConfigurationComponent.lateLoadKey = "ThresholdsConfigurationComponent";
|
|
12328
12535
|
/** @nocollapse */ ThresholdsConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ThresholdsConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12329
|
-
/** @nocollapse */ ThresholdsConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ThresholdsConfigurationComponent, selector: "nui-thresholds-configuration", inputs: { criticalThresholdValue: "criticalThresholdValue", warningThresholdValue: "warningThresholdValue", showThresholds: "showThresholds", reversedThresholds: "reversedThresholds" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'thresholds' | async\"\n [subtitle]=\"getThresholdsSubtitle(form.get('showThresholds')?.value)\"\n headerTitle=\"Thresholds\"\n />\n <div class=\"kpi-thresholds-configuration__accordion-content\">\n <nui-form-field\n [control]=\"form.get('showThresholds')\"\n caption=\"How do you want to set warning/critical thresholds?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"showThresholds\"\n [value]=\"radioButtonGroupValue\"\n name=\"showThresholds\"\n required\n >\n <nui-radio\n *ngFor=\"let thresholdOption of thresholdOptions\"\n [value]=\"thresholdOption.value\"\n >\n {{ thresholdOption.displayValue }}\n </nui-radio>\n </nui-radio-group>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"form.get('showThresholds')?.value\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Warning value\"\n i18n-caption\n [control]=\"form.get('warningThresholdValue')\"\n >\n <nui-textbox-number\n formControlName=\"warningThresholdValue\"\n placeholder=\"Never show the warning state\"\n i18n-placeholder\n ></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Warning threshold should be greater than critical\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Warning threshold should be lower than critical\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Critical value\"\n i18n-caption\n [control]=\"form.get('criticalThresholdValue')\"\n >\n <nui-textbox-number\n formControlName=\"criticalThresholdValue\"\n placeholder=\"Set critical value\"\n i18n-placeholder\n ></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Critical threshold should be greater than warning\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Critical threshold should be lower than warning\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n [control]=\"form.get('reversedThresholds')\"\n [showOptionalText]=\"false\"\n >\n <nui-checkbox formControlName=\"reversedThresholds\" required>\n <span class=\"nui-text-label\" i18n\n >Warning and critical when below threshold\n values</span\n >\n </nui-checkbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-thresholds-configuration__accordion-content{padding:15px 15px 15px 46px}\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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12536
|
+
/** @nocollapse */ ThresholdsConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ThresholdsConfigurationComponent, selector: "nui-thresholds-configuration", inputs: { criticalThresholdValue: "criticalThresholdValue", warningThresholdValue: "warningThresholdValue", showThresholds: "showThresholds", reversedThresholds: "reversedThresholds" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'thresholds' | async\"\n [subtitle]=\"getThresholdsSubtitle(form.get('showThresholds')?.value)\"\n headerTitle=\"Thresholds\"\n />\n <div class=\"kpi-thresholds-configuration__accordion-content\">\n <nui-form-field\n [control]=\"form.get('showThresholds')\"\n caption=\"How do you want to set warning/critical thresholds?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"showThresholds\"\n [value]=\"radioButtonGroupValue\"\n name=\"showThresholds\"\n required\n >\n <nui-radio\n *ngFor=\"let thresholdOption of thresholdOptions\"\n [value]=\"thresholdOption.value\"\n >\n {{ thresholdOption.displayValue }}\n </nui-radio>\n </nui-radio-group>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"form.get('showThresholds')?.value\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Warning value\"\n i18n-caption\n [control]=\"form.get('warningThresholdValue')\"\n >\n <nui-textbox-number\n formControlName=\"warningThresholdValue\"\n placeholder=\"Never show the warning state\"\n i18n-placeholder\n ></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Warning threshold should be greater than critical\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Warning threshold should be lower than critical\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Critical value\"\n i18n-caption\n [control]=\"form.get('criticalThresholdValue')\"\n >\n <nui-textbox-number\n formControlName=\"criticalThresholdValue\"\n placeholder=\"Set critical value\"\n i18n-placeholder\n ></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Critical threshold should be greater than warning\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Critical threshold should be lower than warning\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n [control]=\"form.get('reversedThresholds')\"\n [showOptionalText]=\"false\"\n >\n <nui-checkbox formControlName=\"reversedThresholds\" required>\n <span class=\"nui-text-label\" i18n\n >Warning and critical when below threshold\n values</span\n >\n </nui-checkbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-thresholds-configuration__accordion-content{padding:15px 15px 15px 46px}\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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12330
12537
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ThresholdsConfigurationComponent, decorators: [{
|
|
12331
12538
|
type: Component,
|
|
12332
12539
|
args: [{ selector: "nui-thresholds-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'thresholds' | async\"\n [subtitle]=\"getThresholdsSubtitle(form.get('showThresholds')?.value)\"\n headerTitle=\"Thresholds\"\n />\n <div class=\"kpi-thresholds-configuration__accordion-content\">\n <nui-form-field\n [control]=\"form.get('showThresholds')\"\n caption=\"How do you want to set warning/critical thresholds?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"showThresholds\"\n [value]=\"radioButtonGroupValue\"\n name=\"showThresholds\"\n required\n >\n <nui-radio\n *ngFor=\"let thresholdOption of thresholdOptions\"\n [value]=\"thresholdOption.value\"\n >\n {{ thresholdOption.displayValue }}\n </nui-radio>\n </nui-radio-group>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"form.get('showThresholds')?.value\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Warning value\"\n i18n-caption\n [control]=\"form.get('warningThresholdValue')\"\n >\n <nui-textbox-number\n formControlName=\"warningThresholdValue\"\n placeholder=\"Never show the warning state\"\n i18n-placeholder\n ></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Warning threshold should be greater than critical\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Warning threshold should be lower than critical\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Critical value\"\n i18n-caption\n [control]=\"form.get('criticalThresholdValue')\"\n >\n <nui-textbox-number\n formControlName=\"criticalThresholdValue\"\n placeholder=\"Set critical value\"\n i18n-placeholder\n ></nui-textbox-number>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n <nui-validation-message for=\"min\" i18n>\n Critical threshold should be greater than warning\n threshold\n </nui-validation-message>\n <nui-validation-message for=\"max\" i18n>\n Critical threshold should be lower than warning\n threshold\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n [control]=\"form.get('reversedThresholds')\"\n [showOptionalText]=\"false\"\n >\n <nui-checkbox formControlName=\"reversedThresholds\" required>\n <span class=\"nui-text-label\" i18n\n >Warning and critical when below threshold\n values</span\n >\n </nui-checkbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-thresholds-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -12428,7 +12635,7 @@ class TimeseriesMetadataConfigurationComponent {
|
|
|
12428
12635
|
}
|
|
12429
12636
|
TimeseriesMetadataConfigurationComponent.lateLoadKey = "TimeseriesMetadataConfigurationComponent";
|
|
12430
12637
|
/** @nocollapse */ TimeseriesMetadataConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesMetadataConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component });
|
|
12431
|
-
/** @nocollapse */ TimeseriesMetadataConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeseriesMetadataConfigurationComponent, selector: "nui-timeseries-metadata-configuration", inputs: { legendPlacements: "legendPlacements", timeSpans: "timeSpans", startingTimespan: "startingTimespan", legendPlacement: "legendPlacement", leftAxisLabel: "leftAxisLabel", preset: "preset", availableChartTypes: "availableChartTypes" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'edit' | async\"\n [iconColor]=\"form | nuiFormHeaderIconPipe : 'gray' : '' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Timeseries metadata\"\n />\n <div class=\"timeseries-metadata-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Starting timespan\"\n i18n-caption\n [control]=\"form.controls['startingTimespan']\"\n >\n <nui-select-v2\n placeholder=\"Starting Timespan\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"startingTimespan\"\n >\n <nui-select-v2-option\n *ngFor=\"let timeSpan of timeSpans\"\n [value]=\"timeSpan\"\n >\n {{ timeSpan.name }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart legend\"\n i18n-caption\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n placeholder=\"Select Legend Orientation\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"legendPlacement\"\n >\n <nui-select-v2-option\n *ngFor=\"let legendPlacement of legendPlacements\"\n [value]=\"legendPlacement.id\"\n >\n {{ legendPlacement.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart y-axis label\"\n i18n-caption\n [control]=\"form.controls['leftAxisLabel']\"\n >\n <nui-textbox\n formControlName=\"leftAxisLabel\"\n placeholder=\"Set chart y-axis label\"\n i18n-placeholder\n ></nui-textbox>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Chart type\"\n i18n-caption\n [control]=\"form.controls['preset']\"\n >\n <nui-select-v2\n placeholder=\"Chart type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"preset\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of availableChartTypes\"\n [value]=\"option.value\"\n >{{ option.label }}</nui-select-v2-option\n >\n </nui-select-v2>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".timeseries-metadata-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { 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"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] });
|
|
12638
|
+
/** @nocollapse */ TimeseriesMetadataConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeseriesMetadataConfigurationComponent, selector: "nui-timeseries-metadata-configuration", inputs: { legendPlacements: "legendPlacements", timeSpans: "timeSpans", startingTimespan: "startingTimespan", legendPlacement: "legendPlacement", leftAxisLabel: "leftAxisLabel", preset: "preset", availableChartTypes: "availableChartTypes" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'edit' | async\"\n [iconColor]=\"form | nuiFormHeaderIconPipe : 'gray' : '' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Timeseries metadata\"\n />\n <div class=\"timeseries-metadata-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Starting timespan\"\n i18n-caption\n [control]=\"form.controls['startingTimespan']\"\n >\n <nui-select-v2\n placeholder=\"Starting Timespan\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"startingTimespan\"\n >\n <nui-select-v2-option\n *ngFor=\"let timeSpan of timeSpans\"\n [value]=\"timeSpan\"\n >\n {{ timeSpan.name }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart legend\"\n i18n-caption\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n placeholder=\"Select Legend Orientation\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"legendPlacement\"\n >\n <nui-select-v2-option\n *ngFor=\"let legendPlacement of legendPlacements\"\n [value]=\"legendPlacement.id\"\n >\n {{ legendPlacement.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart y-axis label\"\n i18n-caption\n [control]=\"form.controls['leftAxisLabel']\"\n >\n <nui-textbox\n formControlName=\"leftAxisLabel\"\n placeholder=\"Set chart y-axis label\"\n i18n-placeholder\n ></nui-textbox>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Chart type\"\n i18n-caption\n [control]=\"form.controls['preset']\"\n >\n <nui-select-v2\n placeholder=\"Chart type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"preset\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of availableChartTypes\"\n [value]=\"option.value\"\n >{{ option.label }}</nui-select-v2-option\n >\n </nui-select-v2>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".timeseries-metadata-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] });
|
|
12432
12639
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesMetadataConfigurationComponent, decorators: [{
|
|
12433
12640
|
type: Component,
|
|
12434
12641
|
args: [{ selector: "nui-timeseries-metadata-configuration", template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'edit' | async\"\n [iconColor]=\"form | nuiFormHeaderIconPipe : 'gray' : '' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Timeseries metadata\"\n />\n <div class=\"timeseries-metadata-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Starting timespan\"\n i18n-caption\n [control]=\"form.controls['startingTimespan']\"\n >\n <nui-select-v2\n placeholder=\"Starting Timespan\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"startingTimespan\"\n >\n <nui-select-v2-option\n *ngFor=\"let timeSpan of timeSpans\"\n [value]=\"timeSpan\"\n >\n {{ timeSpan.name }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart legend\"\n i18n-caption\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n placeholder=\"Select Legend Orientation\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"legendPlacement\"\n >\n <nui-select-v2-option\n *ngFor=\"let legendPlacement of legendPlacements\"\n [value]=\"legendPlacement.id\"\n >\n {{ legendPlacement.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart y-axis label\"\n i18n-caption\n [control]=\"form.controls['leftAxisLabel']\"\n >\n <nui-textbox\n formControlName=\"leftAxisLabel\"\n placeholder=\"Set chart y-axis label\"\n i18n-placeholder\n ></nui-textbox>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Chart type\"\n i18n-caption\n [control]=\"form.controls['preset']\"\n >\n <nui-select-v2\n placeholder=\"Chart type\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"preset\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of availableChartTypes\"\n [value]=\"option.value\"\n >{{ option.label }}</nui-select-v2-option\n >\n </nui-select-v2>\n\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".timeseries-metadata-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -12500,7 +12707,7 @@ class TitleAndDescriptionConfigurationComponent {
|
|
|
12500
12707
|
}
|
|
12501
12708
|
TitleAndDescriptionConfigurationComponent.lateLoadKey = "TitleAndDescriptionConfigurationComponent";
|
|
12502
12709
|
/** @nocollapse */ TitleAndDescriptionConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TitleAndDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12503
|
-
/** @nocollapse */ TitleAndDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TitleAndDescriptionConfigurationComponent, selector: "nui-title-and-description-configuration", inputs: { title: "title", url: "url", subtitle: "subtitle", description: "description", collapsible: "collapsible" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Title and Description\"\n />\n <div class=\"title-and-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget title\"\n i18n-caption\n [control]=\"form.get('title')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-title\"\n formControlName=\"title\"\n placeholder=\"Set widget title\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget subtitle\"\n i18n-caption\n [control]=\"form.get('subtitle')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <nui-textbox\n id=\"kpi-widget-subtitle\"\n formControlName=\"subtitle\"\n placeholder=\"Do not show a subtitle\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget link URL\"\n i18n-caption\n [control]=\"form.get('url')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-url\"\n formControlName=\"url\"\n placeholder=\"Do not link to another page\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget description\"\n i18n-caption\n [control]=\"form.get('description')\"\n hint=\"This won't be shown on the widget, but can be helpful for\n other users who want to re-use this widget on their own dashboards\"\n i18n-hint\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"No description\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"Hide widget header\"\n [showOptionalText]=\"false\"\n i18n-caption\n [control]=\"form.get('collapsible')\"\n >\n <nui-checkbox formControlName=\"collapsible\" i18n\n >Collapsible</nui-checkbox\n >\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".title-and-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12710
|
+
/** @nocollapse */ TitleAndDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TitleAndDescriptionConfigurationComponent, selector: "nui-title-and-description-configuration", inputs: { title: "title", url: "url", subtitle: "subtitle", description: "description", collapsible: "collapsible" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Title and Description\"\n />\n <div class=\"title-and-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget title\"\n i18n-caption\n [control]=\"form.get('title')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-title\"\n formControlName=\"title\"\n placeholder=\"Set widget title\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget subtitle\"\n i18n-caption\n [control]=\"form.get('subtitle')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <nui-textbox\n id=\"kpi-widget-subtitle\"\n formControlName=\"subtitle\"\n placeholder=\"Do not show a subtitle\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget link URL\"\n i18n-caption\n [control]=\"form.get('url')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-url\"\n formControlName=\"url\"\n placeholder=\"Do not link to another page\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget description\"\n i18n-caption\n [control]=\"form.get('description')\"\n hint=\"This won't be shown on the widget, but can be helpful for\n other users who want to re-use this widget on their own dashboards\"\n i18n-hint\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"No description\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"Hide widget header\"\n [showOptionalText]=\"false\"\n i18n-caption\n [control]=\"form.get('collapsible')\"\n >\n <nui-checkbox formControlName=\"collapsible\" i18n\n >Collapsible</nui-checkbox\n >\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".title-and-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12504
12711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TitleAndDescriptionConfigurationComponent, decorators: [{
|
|
12505
12712
|
type: Component,
|
|
12506
12713
|
args: [{ selector: "nui-title-and-description-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"getSecondaryText()\"\n headerTitle=\"Title and Description\"\n />\n <div class=\"title-and-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget title\"\n i18n-caption\n [control]=\"form.get('title')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-title\"\n formControlName=\"title\"\n placeholder=\"Set widget title\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget subtitle\"\n i18n-caption\n [control]=\"form.get('subtitle')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <nui-textbox\n id=\"kpi-widget-subtitle\"\n formControlName=\"subtitle\"\n placeholder=\"Do not show a subtitle\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget link URL\"\n i18n-caption\n [control]=\"form.get('url')\"\n >\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833-->\n <nui-textbox\n id=\"kpi-widget-url\"\n formControlName=\"url\"\n placeholder=\"Do not link to another page\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Widget description\"\n i18n-caption\n [control]=\"form.get('description')\"\n hint=\"This won't be shown on the widget, but can be helpful for\n other users who want to re-use this widget on their own dashboards\"\n i18n-hint\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"No description\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field\n caption=\"Hide widget header\"\n [showOptionalText]=\"false\"\n i18n-caption\n [control]=\"form.get('collapsible')\"\n >\n <nui-checkbox formControlName=\"collapsible\" i18n\n >Collapsible</nui-checkbox\n >\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".title-and-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -12548,7 +12755,7 @@ class EntityFormattingConfigurationComponent {
|
|
|
12548
12755
|
}
|
|
12549
12756
|
EntityFormattingConfigurationComponent.lateLoadKey = "EntityFormattingComponent";
|
|
12550
12757
|
/** @nocollapse */ EntityFormattingConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EntityFormattingConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
12551
|
-
/** @nocollapse */ EntityFormattingConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: EntityFormattingConfigurationComponent, selector: "nui-entity-formatting-configuration", inputs: { mappingKeys: "mappingKeys", dataFieldIds: "dataFieldIds" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"'tag'\"\n iconColor=\"gray\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Entity formatting</span>\n <div class=\"nui-text-secondary\" title=\"Show status icon\">\n Show status icon\n </div>\n </div>\n </div>\n <div\n class=\"entity-formatting__accordion-content\"\n formGroupName=\"dataFieldIds\"\n >\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Icon</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('icon')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"icon\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Status</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('status')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"status\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Details URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('detailedUrl')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"detailedUrl\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('label')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"label\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('url')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"url\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".entity-formatting__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }] });
|
|
12758
|
+
/** @nocollapse */ EntityFormattingConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: EntityFormattingConfigurationComponent, selector: "nui-entity-formatting-configuration", inputs: { mappingKeys: "mappingKeys", dataFieldIds: "dataFieldIds" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"'tag'\"\n iconColor=\"gray\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Entity formatting</span>\n <div class=\"nui-text-secondary\" title=\"Show status icon\">\n Show status icon\n </div>\n </div>\n </div>\n <div\n class=\"entity-formatting__accordion-content\"\n formGroupName=\"dataFieldIds\"\n >\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Icon</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('icon')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"icon\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Status</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('status')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"status\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Details URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('detailedUrl')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"detailedUrl\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('label')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"label\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('url')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"url\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".entity-formatting__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }] });
|
|
12552
12759
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EntityFormattingConfigurationComponent, decorators: [{
|
|
12553
12760
|
type: Component,
|
|
12554
12761
|
args: [{ selector: "nui-entity-formatting-configuration", template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"'tag'\"\n iconColor=\"gray\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Entity formatting</span>\n <div class=\"nui-text-secondary\" title=\"Show status icon\">\n Show status icon\n </div>\n </div>\n </div>\n <div\n class=\"entity-formatting__accordion-content\"\n formGroupName=\"dataFieldIds\"\n >\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Icon</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('icon')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"icon\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Status</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('status')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"status\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Details URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('detailedUrl')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"detailedUrl\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('label')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"label\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('url')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"url\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".entity-formatting__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -12667,7 +12874,7 @@ class GroupingConfigurationComponent {
|
|
|
12667
12874
|
}
|
|
12668
12875
|
GroupingConfigurationComponent.lateLoadKey = "DrilldownConfiguratorComponent";
|
|
12669
12876
|
/** @nocollapse */ GroupingConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GroupingConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component });
|
|
12670
|
-
/** @nocollapse */ GroupingConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GroupingConfigurationComponent, selector: "nui-grouping-configuration", inputs: { groups: "groups", groupBy: "groupBy" }, 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 [headerIcon]=\"'tag'\"\n [subtitle]=\"getSubtitle()\"\n headerTitle=\"Grouping\"\n />\n <div\n class=\"grouping-configuration__accordion-content\"\n formArrayName=\"groupBy\"\n >\n <ng-container\n *ngFor=\"let group of getGroupByControl.controls; index as i\"\n >\n <label *ngIf=\"i !== 0\" class=\"d-flex nui-text-secondary mb-1\" i18n\n >Then</label\n >\n <label *ngIf=\"i === 0\" class=\"d-flex nui-text-panel mb-2\" i18n\n >Group by</label\n >\n <div class=\"d-flex flex-row flex-grow-1 mb-4\">\n <nui-form-field [control]=\"group\" class=\"d-flex flex-grow-1\">\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n [formControlName]=\"i\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of selectData[i]\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <div class=\"justify-content-center\">\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"removeRule(i)\"\n ></button>\n </div>\n </div>\n </ng-container>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n i18n\n *ngIf=\"!this.isAddRestricted()\"\n (click)=\"addGrouping()\"\n >\n Add another level\n </button>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".grouping-configuration__accordion-content{padding:15px 15px 15px 46px}\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.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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 });
|
|
12877
|
+
/** @nocollapse */ GroupingConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GroupingConfigurationComponent, selector: "nui-grouping-configuration", inputs: { groups: "groups", groupBy: "groupBy" }, 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 [headerIcon]=\"'tag'\"\n [subtitle]=\"getSubtitle()\"\n headerTitle=\"Grouping\"\n />\n <div\n class=\"grouping-configuration__accordion-content\"\n formArrayName=\"groupBy\"\n >\n <ng-container\n *ngFor=\"let group of getGroupByControl.controls; index as i\"\n >\n <label *ngIf=\"i !== 0\" class=\"d-flex nui-text-secondary mb-1\" i18n\n >Then</label\n >\n <label *ngIf=\"i === 0\" class=\"d-flex nui-text-panel mb-2\" i18n\n >Group by</label\n >\n <div class=\"d-flex flex-row flex-grow-1 mb-4\">\n <nui-form-field [control]=\"group\" class=\"d-flex flex-grow-1\">\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n [formControlName]=\"i\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of selectData[i]\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <div class=\"justify-content-center\">\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"removeRule(i)\"\n ></button>\n </div>\n </div>\n </ng-container>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n i18n\n *ngIf=\"!this.isAddRestricted()\"\n (click)=\"addGrouping()\"\n >\n Add another level\n </button>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".grouping-configuration__accordion-content{padding:15px 15px 15px 46px}\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.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { 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: 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 });
|
|
12671
12878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GroupingConfigurationComponent, decorators: [{
|
|
12672
12879
|
type: Component,
|
|
12673
12880
|
args: [{ selector: "nui-grouping-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"'tag'\"\n [subtitle]=\"getSubtitle()\"\n headerTitle=\"Grouping\"\n />\n <div\n class=\"grouping-configuration__accordion-content\"\n formArrayName=\"groupBy\"\n >\n <ng-container\n *ngFor=\"let group of getGroupByControl.controls; index as i\"\n >\n <label *ngIf=\"i !== 0\" class=\"d-flex nui-text-secondary mb-1\" i18n\n >Then</label\n >\n <label *ngIf=\"i === 0\" class=\"d-flex nui-text-panel mb-2\" i18n\n >Group by</label\n >\n <div class=\"d-flex flex-row flex-grow-1 mb-4\">\n <nui-form-field [control]=\"group\" class=\"d-flex flex-grow-1\">\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n [formControlName]=\"i\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of selectData[i]\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <div class=\"justify-content-center\">\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"removeRule(i)\"\n ></button>\n </div>\n </div>\n </ng-container>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n i18n\n *ngIf=\"!this.isAddRestricted()\"\n (click)=\"addGrouping()\"\n >\n Add another level\n </button>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".grouping-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -12908,7 +13115,7 @@ class ProportionalChartOptionsEditorV2Component {
|
|
|
12908
13115
|
}
|
|
12909
13116
|
ProportionalChartOptionsEditorV2Component.lateLoadKey = "ProportionalChartOptionsEditorV2Component";
|
|
12910
13117
|
/** @nocollapse */ ProportionalChartOptionsEditorV2Component.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalChartOptionsEditorV2Component, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: ProportionalLegendFormattersRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12911
|
-
/** @nocollapse */ ProportionalChartOptionsEditorV2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ProportionalChartOptionsEditorV2Component, selector: "nui-proportional-chart-options-editor-v2-component", inputs: { type: "type", legendPlacement: "legendPlacement", legendFormatter: "legendFormatter", chartTypes: "chartTypes", legendPlacementOptions: "legendPlacementOptions" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_pie-chart' | async\"\n [subtitle]=\"chartTitle\"\n headerTitle=\"Chart Options\"\n />\n <div\n class=\"proportional-widget-chart-options-configuration__accordion-content\"\n >\n <!-- chart type -->\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart Type\"\n i18n-caption\n [control]=\"form.controls['type']\"\n >\n <nui-select-v2\n placeholder=\"Select chart type\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"type\"\n i18n-placeholder\n >\n <nui-select-v2-option\n *ngFor=\"let chartType of chartTypes\"\n [displayValueContext]=\"chartType.label\"\n [value]=\"chartType.id\"\n >\n {{ chartType.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- legend placement -->\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Legend\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n formControlName=\"legendPlacement\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of legendPlacementOptions\"\n [value]=\"option.id\"\n >\n {{ option.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- legend formatter -->\n <div class=\"mb-4\">\n <ng-container formGroupName=\"legendFormatter\">\n <nui-form-field\n caption=\"Legend format\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"legendFormatterControl\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n >\n <nui-select-v2-option\n *ngFor=\"let legendFormatter of legendFormatters\"\n [value]=\"legendFormatter.componentType\"\n >\n {{ legendFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </ng-container>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".proportional-widget-chart-options-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.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"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13118
|
+
/** @nocollapse */ ProportionalChartOptionsEditorV2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ProportionalChartOptionsEditorV2Component, selector: "nui-proportional-chart-options-editor-v2-component", inputs: { type: "type", legendPlacement: "legendPlacement", legendFormatter: "legendFormatter", chartTypes: "chartTypes", legendPlacementOptions: "legendPlacementOptions" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_pie-chart' | async\"\n [subtitle]=\"chartTitle\"\n headerTitle=\"Chart Options\"\n />\n <div\n class=\"proportional-widget-chart-options-configuration__accordion-content\"\n >\n <!-- chart type -->\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart Type\"\n i18n-caption\n [control]=\"form.controls['type']\"\n >\n <nui-select-v2\n placeholder=\"Select chart type\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"type\"\n i18n-placeholder\n >\n <nui-select-v2-option\n *ngFor=\"let chartType of chartTypes\"\n [displayValueContext]=\"chartType.label\"\n [value]=\"chartType.id\"\n >\n {{ chartType.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- legend placement -->\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Legend\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n formControlName=\"legendPlacement\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of legendPlacementOptions\"\n [value]=\"option.id\"\n >\n {{ option.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- legend formatter -->\n <div class=\"mb-4\">\n <ng-container formGroupName=\"legendFormatter\">\n <nui-form-field\n caption=\"Legend format\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"legendFormatterControl\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n >\n <nui-select-v2-option\n *ngFor=\"let legendFormatter of legendFormatters\"\n [value]=\"legendFormatter.componentType\"\n >\n {{ legendFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </ng-container>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".proportional-widget-chart-options-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12912
13119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalChartOptionsEditorV2Component, decorators: [{
|
|
12913
13120
|
type: Component,
|
|
12914
13121
|
args: [{ selector: "nui-proportional-chart-options-editor-v2-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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_pie-chart' | async\"\n [subtitle]=\"chartTitle\"\n headerTitle=\"Chart Options\"\n />\n <div\n class=\"proportional-widget-chart-options-configuration__accordion-content\"\n >\n <!-- chart type -->\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart Type\"\n i18n-caption\n [control]=\"form.controls['type']\"\n >\n <nui-select-v2\n placeholder=\"Select chart type\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"type\"\n i18n-placeholder\n >\n <nui-select-v2-option\n *ngFor=\"let chartType of chartTypes\"\n [displayValueContext]=\"chartType.label\"\n [value]=\"chartType.id\"\n >\n {{ chartType.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- legend placement -->\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Legend\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n formControlName=\"legendPlacement\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"let option of legendPlacementOptions\"\n [value]=\"option.id\"\n >\n {{ option.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- legend formatter -->\n <div class=\"mb-4\">\n <ng-container formGroupName=\"legendFormatter\">\n <nui-form-field\n caption=\"Legend format\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"legendFormatterControl\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n >\n <nui-select-v2-option\n *ngFor=\"let legendFormatter of legendFormatters\"\n [value]=\"legendFormatter.componentType\"\n >\n {{ legendFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </ng-container>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".proportional-widget-chart-options-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -13037,7 +13244,7 @@ class ProportionalChartOptionsEditorComponent {
|
|
|
13037
13244
|
}
|
|
13038
13245
|
ProportionalChartOptionsEditorComponent.lateLoadKey = "ProportionalChartOptionsEditorComponent";
|
|
13039
13246
|
/** @nocollapse */ ProportionalChartOptionsEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalChartOptionsEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
13040
|
-
/** @nocollapse */ ProportionalChartOptionsEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ProportionalChartOptionsEditorComponent, selector: "nui-proportional-chart-options-editor-component", inputs: { chartOptions: "chartOptions", chartType: "chartType", legendPlacement: "legendPlacement", legendFormatterComponentType: "legendFormatterComponentType", contentFormatterComponentType: "contentFormatterComponentType", contentFormatterProperties: "contentFormatterProperties", dsOutput: "dsOutput" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_pie-chart' | async\"\n [subtitle]=\"chartTitle\"\n headerTitle=\"Chart options\"\n />\n <div\n class=\"proportional-widget-chart-options-configuration__accordion-content\"\n >\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart Type\"\n i18n-caption\n [control]=\"form.controls['type']\"\n >\n <nui-select-v2\n formControlName=\"type\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n placeholder=\"Select chart type\"\n i18n-placeholder\n >\n <nui-select-v2-option\n *ngFor=\"\n let chartTypeSelectViewModel of chartTypeSelectViewModels\n \"\n [value]=\"chartTypeSelectViewModel.value\"\n >\n {{ chartTypeSelectViewModel.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- Donut chart content formatter -->\n <div class=\"mb-4\">\n <ng-container\n formGroupName=\"contentFormatter\"\n *ngIf=\"form.get('type')?.value === 'DonutChart'\"\n >\n <nui-form-field\n caption=\"Content format\"\n i18n-caption\n class=\"mb-4\"\n [showOptionalText]=\"false\"\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n >\n <nui-select-v2-option\n *ngFor=\"let contentFormatter of contentFormatters\"\n [value]=\"contentFormatter.componentType\"\n >\n {{ contentFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <!-- Donut formatter configurator's portal goes here. Make form working in scope of NUI-5014 -->\n <ng-container\n *ngIf=\"!!this.getConfigurationComponent()\"\n nuiComponentPortal\n [componentId]=\"this.getConfigurationComponent()\"\n [componentType]=\"this.getConfigurationComponent()\"\n [properties]=\"configurationComponentProperties\"\n #componentPortal=\"nuiComponentPortal\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Legend\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n formControlName=\"legendPlacement\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let option of chartOptions.legendPlacementOptions\n \"\n [value]=\"option.id\"\n >\n {{ option.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <ng-container formGroupName=\"legendFormatter\">\n <nui-form-field\n caption=\"Legend format\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"let legendFormatter of legendFormatters\"\n [value]=\"legendFormatter.componentType\"\n >\n {{ legendFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".proportional-widget-chart-options-configuration__accordion-content{padding:15px 15px 15px 46px}\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: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13247
|
+
/** @nocollapse */ ProportionalChartOptionsEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: ProportionalChartOptionsEditorComponent, selector: "nui-proportional-chart-options-editor-component", inputs: { chartOptions: "chartOptions", chartType: "chartType", legendPlacement: "legendPlacement", legendFormatterComponentType: "legendFormatterComponentType", contentFormatterComponentType: "contentFormatterComponentType", contentFormatterProperties: "contentFormatterProperties", dsOutput: "dsOutput" }, 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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_pie-chart' | async\"\n [subtitle]=\"chartTitle\"\n headerTitle=\"Chart options\"\n />\n <div\n class=\"proportional-widget-chart-options-configuration__accordion-content\"\n >\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart Type\"\n i18n-caption\n [control]=\"form.controls['type']\"\n >\n <nui-select-v2\n formControlName=\"type\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n placeholder=\"Select chart type\"\n i18n-placeholder\n >\n <nui-select-v2-option\n *ngFor=\"\n let chartTypeSelectViewModel of chartTypeSelectViewModels\n \"\n [value]=\"chartTypeSelectViewModel.value\"\n >\n {{ chartTypeSelectViewModel.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- Donut chart content formatter -->\n <div class=\"mb-4\">\n <ng-container\n formGroupName=\"contentFormatter\"\n *ngIf=\"form.get('type')?.value === 'DonutChart'\"\n >\n <nui-form-field\n caption=\"Content format\"\n i18n-caption\n class=\"mb-4\"\n [showOptionalText]=\"false\"\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n >\n <nui-select-v2-option\n *ngFor=\"let contentFormatter of contentFormatters\"\n [value]=\"contentFormatter.componentType\"\n >\n {{ contentFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <!-- Donut formatter configurator's portal goes here. Make form working in scope of NUI-5014 -->\n <ng-container\n *ngIf=\"!!this.getConfigurationComponent()\"\n nuiComponentPortal\n [componentId]=\"this.getConfigurationComponent()\"\n [componentType]=\"this.getConfigurationComponent()\"\n [properties]=\"configurationComponentProperties\"\n #componentPortal=\"nuiComponentPortal\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Legend\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n formControlName=\"legendPlacement\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let option of chartOptions.legendPlacementOptions\n \"\n [value]=\"option.id\"\n >\n {{ option.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <ng-container formGroupName=\"legendFormatter\">\n <nui-form-field\n caption=\"Legend format\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"let legendFormatter of legendFormatters\"\n [value]=\"legendFormatter.componentType\"\n >\n {{ legendFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".proportional-widget-chart-options-configuration__accordion-content{padding:15px 15px 15px 46px}\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: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13041
13248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalChartOptionsEditorComponent, decorators: [{
|
|
13042
13249
|
type: Component,
|
|
13043
13250
|
args: [{ selector: "nui-proportional-chart-options-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 [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_pie-chart' | async\"\n [subtitle]=\"chartTitle\"\n headerTitle=\"Chart options\"\n />\n <div\n class=\"proportional-widget-chart-options-configuration__accordion-content\"\n >\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Chart Type\"\n i18n-caption\n [control]=\"form.controls['type']\"\n >\n <nui-select-v2\n formControlName=\"type\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n placeholder=\"Select chart type\"\n i18n-placeholder\n >\n <nui-select-v2-option\n *ngFor=\"\n let chartTypeSelectViewModel of chartTypeSelectViewModels\n \"\n [value]=\"chartTypeSelectViewModel.value\"\n >\n {{ chartTypeSelectViewModel.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <!-- Donut chart content formatter -->\n <div class=\"mb-4\">\n <ng-container\n formGroupName=\"contentFormatter\"\n *ngIf=\"form.get('type')?.value === 'DonutChart'\"\n >\n <nui-form-field\n caption=\"Content format\"\n i18n-caption\n class=\"mb-4\"\n [showOptionalText]=\"false\"\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n >\n <nui-select-v2-option\n *ngFor=\"let contentFormatter of contentFormatters\"\n [value]=\"contentFormatter.componentType\"\n >\n {{ contentFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n\n <!-- Donut formatter configurator's portal goes here. Make form working in scope of NUI-5014 -->\n <ng-container\n *ngIf=\"!!this.getConfigurationComponent()\"\n nuiComponentPortal\n [componentId]=\"this.getConfigurationComponent()\"\n [componentType]=\"this.getConfigurationComponent()\"\n [properties]=\"configurationComponentProperties\"\n #componentPortal=\"nuiComponentPortal\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Legend\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['legendPlacement']\"\n >\n <nui-select-v2\n formControlName=\"legendPlacement\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let option of chartOptions.legendPlacementOptions\n \"\n [value]=\"option.id\"\n >\n {{ option.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <ng-container formGroupName=\"legendFormatter\">\n <nui-form-field\n caption=\"Legend format\"\n i18n-caption\n [showOptionalText]=\"false\"\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n formControlName=\"componentType\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n >\n <nui-select-v2-option\n *ngFor=\"let legendFormatter of legendFormatters\"\n [value]=\"legendFormatter.componentType\"\n >\n {{ legendFormatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </ng-container>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".proportional-widget-chart-options-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -13160,7 +13367,7 @@ class DonutContentConfigurationComponent {
|
|
|
13160
13367
|
}
|
|
13161
13368
|
DonutContentConfigurationComponent.lateLoadKey = "DonutContentConfigurationComponent";
|
|
13162
13369
|
/** @nocollapse */ DonutContentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DonutContentConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }, { token: ProportionalDonutContentFormattersRegistryService }, { token: ProportionalContentAggregatorsRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13163
|
-
/** @nocollapse */ DonutContentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DonutContentConfigurationComponent, selector: "nui-donut-content-configuration", inputs: { chartType: "chartType", formatter: "formatter", aggregator: "aggregator" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"shown\" [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n\n >Donut Content Configuration</span\n >\n <div class=\"nui-text-secondary\" [title]=\"subtitleText\">\n {{ subtitleText }}\n </div>\n </div>\n </div>\n\n <div class=\"donut-content-configuration__accordion-content\">\n <!-- aggregator -->\n <div class=\"mb-4\" formGroupName=\"aggregator\">\n <nui-form-field\n caption=\"Aggregate\"\n i18n-caption\n [control]=\"form.get('aggregator.aggregatorType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"aggregatorType\"\n >\n <nui-select-v2-option\n *ngFor=\"let aggregator of aggregators\"\n [displayValueContext]=\"aggregator.label\"\n [value]=\"aggregator.aggregatorType\"\n >\n {{ aggregator.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- formatter -->\n <div class=\"mb-4\" formGroupName=\"formatter\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.get('formatter.componentType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- aggregator configuration component -->\n <ng-container\n *ngIf=\"currentAggregatorDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentAggregatorDefinition?.configurationComponent\n \"\n [properties]=\"aggregatorConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('aggregator', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n\n <!-- formatter configuration component -->\n <ng-container\n *ngIf=\"currentFormatterDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentFormatterDefinition?.configurationComponent\n \"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('formatter', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".donut-content-configuration__accordion-content{padding:15px 15px 15px 46px}\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: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13370
|
+
/** @nocollapse */ DonutContentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DonutContentConfigurationComponent, selector: "nui-donut-content-configuration", inputs: { chartType: "chartType", formatter: "formatter", aggregator: "aggregator" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"shown\" [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n\n >Donut Content Configuration</span\n >\n <div class=\"nui-text-secondary\" [title]=\"subtitleText\">\n {{ subtitleText }}\n </div>\n </div>\n </div>\n\n <div class=\"donut-content-configuration__accordion-content\">\n <!-- aggregator -->\n <div class=\"mb-4\" formGroupName=\"aggregator\">\n <nui-form-field\n caption=\"Aggregate\"\n i18n-caption\n [control]=\"form.get('aggregator.aggregatorType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"aggregatorType\"\n >\n <nui-select-v2-option\n *ngFor=\"let aggregator of aggregators\"\n [displayValueContext]=\"aggregator.label\"\n [value]=\"aggregator.aggregatorType\"\n >\n {{ aggregator.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- formatter -->\n <div class=\"mb-4\" formGroupName=\"formatter\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.get('formatter.componentType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- aggregator configuration component -->\n <ng-container\n *ngIf=\"currentAggregatorDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentAggregatorDefinition?.configurationComponent\n \"\n [properties]=\"aggregatorConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('aggregator', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n\n <!-- formatter configuration component -->\n <ng-container\n *ngIf=\"currentFormatterDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentFormatterDefinition?.configurationComponent\n \"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('formatter', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".donut-content-configuration__accordion-content{padding:15px 15px 15px 46px}\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: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13164
13371
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DonutContentConfigurationComponent, decorators: [{
|
|
13165
13372
|
type: Component,
|
|
13166
13373
|
args: [{ selector: "nui-donut-content-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"shown\" [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n\n >Donut Content Configuration</span\n >\n <div class=\"nui-text-secondary\" [title]=\"subtitleText\">\n {{ subtitleText }}\n </div>\n </div>\n </div>\n\n <div class=\"donut-content-configuration__accordion-content\">\n <!-- aggregator -->\n <div class=\"mb-4\" formGroupName=\"aggregator\">\n <nui-form-field\n caption=\"Aggregate\"\n i18n-caption\n [control]=\"form.get('aggregator.aggregatorType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"aggregatorType\"\n >\n <nui-select-v2-option\n *ngFor=\"let aggregator of aggregators\"\n [displayValueContext]=\"aggregator.label\"\n [value]=\"aggregator.aggregatorType\"\n >\n {{ aggregator.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- formatter -->\n <div class=\"mb-4\" formGroupName=\"formatter\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.get('formatter.componentType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- aggregator configuration component -->\n <ng-container\n *ngIf=\"currentAggregatorDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentAggregatorDefinition?.configurationComponent\n \"\n [properties]=\"aggregatorConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('aggregator', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n\n <!-- formatter configuration component -->\n <ng-container\n *ngIf=\"currentFormatterDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentFormatterDefinition?.configurationComponent\n \"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('formatter', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".donut-content-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -13349,7 +13556,7 @@ DescriptionConfigurationV2Component.lateLoadKey = "DescriptionConfigurationV2Com
|
|
|
13349
13556
|
useExisting: forwardRef((() => DescriptionConfigurationV2Component)),
|
|
13350
13557
|
multi: true,
|
|
13351
13558
|
},
|
|
13352
|
-
], ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\"\n />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\"\n >\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayedForThisColumn()\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\"\n >\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"\n ></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n\n >\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <div\n *ngIf=\"isWidthMessageDisplayedForThisColumn()\"\n class=\"mt-4\"\n >\n <nui-message type=\"info\" [allowDismiss]=\"false\" i18n>\n <b>All columns cannot have fixed width.</b>\n </nui-message>\n </div>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13559
|
+
], ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\"\n />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\"\n >\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayedForThisColumn()\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\"\n >\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"\n ></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n\n >\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <div\n *ngIf=\"isWidthMessageDisplayedForThisColumn()\"\n class=\"mt-4\"\n >\n <nui-message type=\"info\" [allowDismiss]=\"false\" i18n>\n <b>All columns cannot have fixed width.</b>\n </nui-message>\n </div>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13353
13560
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DescriptionConfigurationV2Component, decorators: [{
|
|
13354
13561
|
type: Component,
|
|
13355
13562
|
args: [{ selector: "nui-description-configuration-v2", changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -13638,7 +13845,7 @@ PresentationConfigurationV2Component.lateLoadKey = "PresentationConfigurationV2C
|
|
|
13638
13845
|
useExisting: forwardRef((() => PresentationConfigurationV2Component)),
|
|
13639
13846
|
multi: true,
|
|
13640
13847
|
},
|
|
13641
|
-
], usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n [subtitle]=\"subtitleText\"\n headerTitle=\"Property and formatting\"\n />\n <div class=\"presentation-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <ng-container\n *ngIf=\"formatterConfigurator\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"formatterConfigurator\"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".presentation-configuration__accordion-content{padding:15px 15px 15px 46px}\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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], viewProviders: [
|
|
13848
|
+
], usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n [subtitle]=\"subtitleText\"\n headerTitle=\"Property and formatting\"\n />\n <div class=\"presentation-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.controls['componentType']\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <ng-container\n *ngIf=\"formatterConfigurator\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"formatterConfigurator\"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".presentation-configuration__accordion-content{padding:15px 15px 15px 46px}\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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], viewProviders: [
|
|
13642
13849
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
13643
13850
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13644
13851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PresentationConfigurationV2Component, decorators: [{
|
|
@@ -14024,7 +14231,7 @@ class DescriptionConfigurationComponent {
|
|
|
14024
14231
|
}
|
|
14025
14232
|
DescriptionConfigurationComponent.lateLoadKey = "DescriptionConfigurationComponent";
|
|
14026
14233
|
/** @nocollapse */ DescriptionConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DescriptionConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
14027
|
-
/** @nocollapse */ DescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DescriptionConfigurationComponent, selector: "nui-table-column-description-configuration", inputs: { label: "label", isActive: "isActive", width: "width", isWidthMessageDisplayed: "isWidthMessageDisplayed" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\"\n />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\"\n >\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayed\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\"\n >\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"\n ></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n\n >\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <nui-message\n *ngIf=\"isWidthMessageDisplayed\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n\n >\n <b>All columns can not have fixed width.</b>\n </nui-message>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14234
|
+
/** @nocollapse */ DescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DescriptionConfigurationComponent, selector: "nui-table-column-description-configuration", inputs: { label: "label", isActive: "isActive", width: "width", isWidthMessageDisplayed: "isWidthMessageDisplayed" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\"\n />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\"\n >\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayed\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\"\n >\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"\n ></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n\n >\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <nui-message\n *ngIf=\"isWidthMessageDisplayed\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n\n >\n <b>All columns can not have fixed width.</b>\n </nui-message>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14028
14235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DescriptionConfigurationComponent, decorators: [{
|
|
14029
14236
|
type: Component,
|
|
14030
14237
|
args: [{ selector: "nui-table-column-description-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n [subtitle]=\"form.controls['label'].value\"\n headerTitle=\"Description\"\n />\n <div class=\"description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['label']\"\n >\n <nui-textbox formControlName=\"label\"></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n\n <nui-form-field [control]=\"form.controls['isActive']\">\n <nui-checkbox formControlName=\"isActive\" i18n\n >Show this column</nui-checkbox\n >\n </nui-form-field>\n\n <ng-container *ngIf=\"form.get('isActive')?.value\">\n <ng-container *ngIf=\"!isWidthMessageDisplayed\">\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Column width (px)\"\n i18n-caption\n class=\"mb-3\"\n [control]=\"form.controls['width']\"\n >\n <!-- TODO: Remove this valueChange stub after NUI-3442 is finished-->\n <nui-textbox-number\n class=\"description-configuration__accordion-content__width-input\"\n (valueChange)=\"stub()\"\n placeholder=\"Auto width\"\n i18n-placeholder\n formControlName=\"width\"\n ></nui-textbox-number>\n <nui-validation-message\n [show]=\"form.controls['width'].invalid\"\n for=\"min\"\n i18n\n >\n Minimum width of the column is 62px\n </nui-validation-message>\n </nui-form-field>\n </div>\n </ng-container>\n <nui-message\n *ngIf=\"isWidthMessageDisplayed\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n\n >\n <b>All columns can not have fixed width.</b>\n </nui-message>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -14375,7 +14582,7 @@ class PresentationConfigurationComponent {
|
|
|
14375
14582
|
}
|
|
14376
14583
|
PresentationConfigurationComponent.lateLoadKey = "PresentationConfigurationComponent";
|
|
14377
14584
|
/** @nocollapse */ PresentationConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PresentationConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: FORMATTERS_REGISTRY, optional: true }, { token: TableFormatterRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14378
|
-
/** @nocollapse */ PresentationConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: PresentationConfigurationComponent, selector: "nui-table-column-presentation-configuration", inputs: { formatter: "formatter", formatters: "formatters", dataFieldIds: "dataFieldIds", dataFields: "dataFields" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"formatterForm\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n [subtitle]=\"subtitleText\"\n headerTitle=\"Property and formatting\"\n />\n <div class=\"presentation-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"formatterForm.controls['componentType']\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <ng-container\n *ngIf=\"formatterConfigurator\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"formatterConfigurator\"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".presentation-configuration__accordion-content{padding:15px 15px 15px 46px}\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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], viewProviders: [
|
|
14585
|
+
/** @nocollapse */ PresentationConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: PresentationConfigurationComponent, selector: "nui-table-column-presentation-configuration", inputs: { formatter: "formatter", formatters: "formatters", dataFieldIds: "dataFieldIds", dataFields: "dataFields" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"formatterForm\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n [subtitle]=\"subtitleText\"\n headerTitle=\"Property and formatting\"\n />\n <div class=\"presentation-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"formatterForm.controls['componentType']\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n [popupViewportMargin]=\"\n configuratorHeading.height$ | async\n \"\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n <ng-container\n *ngIf=\"formatterConfigurator\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"formatterConfigurator\"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady($event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".presentation-configuration__accordion-content{padding:15px 15px 15px 46px}\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: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { 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: 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], viewProviders: [
|
|
14379
14586
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
14380
14587
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14381
14588
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PresentationConfigurationComponent, decorators: [{
|
|
@@ -14715,7 +14922,7 @@ class TableFiltersEditorComponent {
|
|
|
14715
14922
|
}
|
|
14716
14923
|
TableFiltersEditorComponent.lateLoadKey = "TableFiltersEditorComponent";
|
|
14717
14924
|
/** @nocollapse */ TableFiltersEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableFiltersEditorComponent, deps: [{ token: i1$2.FormBuilder }, { token: ConfiguratorHeadingService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
14718
|
-
/** @nocollapse */ TableFiltersEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableFiltersEditorComponent, selector: "nui-table-filters-editor-component", inputs: { sorterConfiguration: "sorterConfiguration", columns: "columns" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion [formGroup]=\"form\">\n <nui-widget-editor-accordion-header\n headerIcon=\"widget_pie-chart\"\n [subtitle]=\"selectedSortByValue + selectedSortOrderValue\"\n headerTitle=\"Sorting\"\n />\n <div class=\"table-filters-configuration__accordion-content\">\n <div formGroupName=\"sorterConfiguration\" class=\"d-flex align-items-end\">\n <nui-form-field\n caption=\"Sort by\"\n i18n-caption\n [control]=\"form.controls['sortBy']\"\n class=\"w-50\"\n >\n <nui-select-v2\n placeholder=\"Select column\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"sortBy\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let column of sortableColumns\"\n [value]=\"column.id\"\n >\n {{ column.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <div class=\"ml-2\">\n <nui-form-field [control]=\"form.controls['descendantSorting']\">\n <nui-checkbox formControlName=\"descendantSorting\" i18n>\n Descending\n </nui-checkbox>\n </nui-form-field>\n </div>\n </div>\n </div>\n <div class=\"p-5\">\n <nui-message\n *ngIf=\"!sortableColumns.length\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n\n >\n <b>No columns are sortable.</b>\n </nui-message>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}\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.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.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14925
|
+
/** @nocollapse */ TableFiltersEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TableFiltersEditorComponent, selector: "nui-table-filters-editor-component", inputs: { sorterConfiguration: "sorterConfiguration", columns: "columns" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion [formGroup]=\"form\">\n <nui-widget-editor-accordion-header\n headerIcon=\"widget_pie-chart\"\n [subtitle]=\"selectedSortByValue + selectedSortOrderValue\"\n headerTitle=\"Sorting\"\n />\n <div class=\"table-filters-configuration__accordion-content\">\n <div formGroupName=\"sorterConfiguration\" class=\"d-flex align-items-end\">\n <nui-form-field\n caption=\"Sort by\"\n i18n-caption\n [control]=\"form.controls['sortBy']\"\n class=\"w-50\"\n >\n <nui-select-v2\n placeholder=\"Select column\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"sortBy\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let column of sortableColumns\"\n [value]=\"column.id\"\n >\n {{ column.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <div class=\"ml-2\">\n <nui-form-field [control]=\"form.controls['descendantSorting']\">\n <nui-checkbox formControlName=\"descendantSorting\" i18n>\n Descending\n </nui-checkbox>\n </nui-form-field>\n </div>\n </div>\n </div>\n <div class=\"p-5\">\n <nui-message\n *ngIf=\"!sortableColumns.length\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n\n >\n <b>No columns are sortable.</b>\n </nui-message>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}\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.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.CheckboxComponent, selector: "nui-checkbox", inputs: ["ariaLabel", "ariaLabelledby", "ariaDescribedby", "name", "title", "value", "hovered", "checked", "required", "hint", "disabled", "indeterminate"], outputs: ["valueChange"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14719
14926
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableFiltersEditorComponent, decorators: [{
|
|
14720
14927
|
type: Component,
|
|
14721
14928
|
args: [{ selector: "nui-table-filters-editor-component", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion [formGroup]=\"form\">\n <nui-widget-editor-accordion-header\n headerIcon=\"widget_pie-chart\"\n [subtitle]=\"selectedSortByValue + selectedSortOrderValue\"\n headerTitle=\"Sorting\"\n />\n <div class=\"table-filters-configuration__accordion-content\">\n <div formGroupName=\"sorterConfiguration\" class=\"d-flex align-items-end\">\n <nui-form-field\n caption=\"Sort by\"\n i18n-caption\n [control]=\"form.controls['sortBy']\"\n class=\"w-50\"\n >\n <nui-select-v2\n placeholder=\"Select column\"\n i18n-placeholder\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n formControlName=\"sortBy\"\n class=\"table-filters-configuration__accordion-content__sort-by-input\"\n >\n <nui-select-v2-option\n *ngFor=\"let column of sortableColumns\"\n [value]=\"column.id\"\n >\n {{ column.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n <div class=\"ml-2\">\n <nui-form-field [control]=\"form.controls['descendantSorting']\">\n <nui-checkbox formControlName=\"descendantSorting\" i18n>\n Descending\n </nui-checkbox>\n </nui-form-field>\n </div>\n </div>\n </div>\n <div class=\"p-5\">\n <nui-message\n *ngIf=\"!sortableColumns.length\"\n type=\"info\"\n [allowDismiss]=\"false\"\n i18n\n >\n <b>No columns are sortable.</b>\n </nui-message>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".table-filters-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -14839,7 +15046,7 @@ class TimeseriesTileDescriptionConfigurationComponent {
|
|
|
14839
15046
|
}
|
|
14840
15047
|
TimeseriesTileDescriptionConfigurationComponent.lateLoadKey = "TimeseriesTileDescriptionConfigurationComponent";
|
|
14841
15048
|
/** @nocollapse */ TimeseriesTileDescriptionConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesTileDescriptionConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
14842
|
-
/** @nocollapse */ TimeseriesTileDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeseriesTileDescriptionConfigurationComponent, selector: "nui-table-column-description-configuration", inputs: { label: "label" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('label') | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'edit' | async\n \"\n [iconColor]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'gray' : '' | async\n \"\n [subtitle]=\"form.get('label')?.value\"\n headerTitle=\"Description\"\n />\n <div\n class=\"timeseries-tile-description-configuration__accordion-content\"\n >\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15049
|
+
/** @nocollapse */ TimeseriesTileDescriptionConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeseriesTileDescriptionConfigurationComponent, selector: "nui-table-column-description-configuration", inputs: { label: "label" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('label') | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'edit' | async\n \"\n [iconColor]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'gray' : '' | async\n \"\n [subtitle]=\"form.get('label')?.value\"\n headerTitle=\"Description\"\n />\n <div\n class=\"timeseries-tile-description-configuration__accordion-content\"\n >\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ 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: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { 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" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14843
15050
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesTileDescriptionConfigurationComponent, decorators: [{
|
|
14844
15051
|
type: Component,
|
|
14845
15052
|
args: [{ selector: "nui-table-column-description-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('label') | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'edit' | async\n \"\n [iconColor]=\"\n form.get('label') | nuiFormHeaderIconPipe : 'gray' : '' | async\n \"\n [subtitle]=\"form.get('label')?.value\"\n headerTitle=\"Description\"\n />\n <div\n class=\"timeseries-tile-description-configuration__accordion-content\"\n >\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -14905,7 +15112,7 @@ class TimeseriesTileIndicatorDataConfigurationComponent {
|
|
|
14905
15112
|
}
|
|
14906
15113
|
TimeseriesTileIndicatorDataConfigurationComponent.lateLoadKey = "TimeseriesTileIndicatorDataConfigurationComponent";
|
|
14907
15114
|
/** @nocollapse */ TimeseriesTileIndicatorDataConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesTileIndicatorDataConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: PizzagnaService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14908
|
-
/** @nocollapse */ TimeseriesTileIndicatorDataConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeseriesTileIndicatorDataConfigurationComponent, selector: "nui-timeseries-tile-indicator-data-configuration", inputs: { componentId: "componentId", selectedSeriesId: "selectedSeriesId", allSeries: "allSeries", availableSeries: "availableSeries" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('id') | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('id') | nuiFormHeaderIconPipe : 'database' | async\n \"\n [subtitle]=\"selectedSeries?.description\"\n headerTitle=\"Indicator data\"\n />\n <div class=\"timeseries-tile-data-configuration__accordion-content\">\n <nui-form-field\n caption=\"Series data\"\n i18n-caption\n [control]=\"form.get('id')\"\n >\n <nui-select-v2\n placeholder=\"Series data\"\n i18n-placeholder\n [value]=\"selectedSeries\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n (valueSelected)=\"onSelect($event)\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let series of availableSeries\n | nuiAddData : selectedSeries\n \"\n [value]=\"series\"\n >\n {{ series.description }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-data-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "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"] }, { 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: AddDataPipe, name: "nuiAddData" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15115
|
+
/** @nocollapse */ TimeseriesTileIndicatorDataConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeseriesTileIndicatorDataConfigurationComponent, selector: "nui-timeseries-tile-indicator-data-configuration", inputs: { componentId: "componentId", selectedSeriesId: "selectedSeriesId", allSeries: "allSeries", availableSeries: "availableSeries" }, outputs: { formReady: "formReady", formDestroy: "formDestroy" }, usesOnChanges: true, ngImport: i0, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('id') | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('id') | nuiFormHeaderIconPipe : 'database' | async\n \"\n [subtitle]=\"selectedSeries?.description\"\n headerTitle=\"Indicator data\"\n />\n <div class=\"timeseries-tile-data-configuration__accordion-content\">\n <nui-form-field\n caption=\"Series data\"\n i18n-caption\n [control]=\"form.get('id')\"\n >\n <nui-select-v2\n placeholder=\"Series data\"\n i18n-placeholder\n [value]=\"selectedSeries\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n (valueSelected)=\"onSelect($event)\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let series of availableSeries\n | nuiAddData : selectedSeries\n \"\n [value]=\"series\"\n >\n {{ series.description }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-data-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "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: AddDataPipe, name: "nuiAddData" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14909
15116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesTileIndicatorDataConfigurationComponent, decorators: [{
|
|
14910
15117
|
type: Component,
|
|
14911
15118
|
args: [{ selector: "nui-timeseries-tile-indicator-data-configuration", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form.get('id') | nuiWidgetEditorAccordionFormState | async\"\n >\n <nui-widget-editor-accordion-header\n [headerIcon]=\"\n form.get('id') | nuiFormHeaderIconPipe : 'database' | async\n \"\n [subtitle]=\"selectedSeries?.description\"\n headerTitle=\"Indicator data\"\n />\n <div class=\"timeseries-tile-data-configuration__accordion-content\">\n <nui-form-field\n caption=\"Series data\"\n i18n-caption\n [control]=\"form.get('id')\"\n >\n <nui-select-v2\n placeholder=\"Series data\"\n i18n-placeholder\n [value]=\"selectedSeries\"\n [popupViewportMargin]=\"configuratorHeading.height$ | async\"\n (valueSelected)=\"onSelect($event)\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let series of availableSeries\n | nuiAddData : selectedSeries\n \"\n [value]=\"series\"\n >\n {{ series.description }}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".timeseries-tile-data-configuration__accordion-content{padding:15px 15px 15px 46px}\n"] }]
|
|
@@ -15119,6 +15326,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
15119
15326
|
|
|
15120
15327
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
15121
15328
|
|
|
15329
|
+
class ScrollTypeEditorService {
|
|
15330
|
+
constructor() {
|
|
15331
|
+
this.loadStrategies = [
|
|
15332
|
+
{
|
|
15333
|
+
id: ScrollType.virtual,
|
|
15334
|
+
title: $localize `Virtual scroll`,
|
|
15335
|
+
},
|
|
15336
|
+
{
|
|
15337
|
+
id: ScrollType.paginator,
|
|
15338
|
+
title: $localize `Paginator`,
|
|
15339
|
+
},
|
|
15340
|
+
{
|
|
15341
|
+
id: ScrollType.default,
|
|
15342
|
+
title: $localize `Default scroll`,
|
|
15343
|
+
},
|
|
15344
|
+
];
|
|
15345
|
+
}
|
|
15346
|
+
setAccordionSubtitleValues(hasVirtualScroll, scrollType) {
|
|
15347
|
+
const prefix = $localize `Scroll Type: `;
|
|
15348
|
+
const result = hasVirtualScroll
|
|
15349
|
+
? `${prefix} ${this.getScrollTypeTitle(ScrollType.virtual)}`
|
|
15350
|
+
: `${prefix} ${this.getScrollTypeTitle(scrollType)}`;
|
|
15351
|
+
return result;
|
|
15352
|
+
}
|
|
15353
|
+
getScrollTypeTitle(scrollType) {
|
|
15354
|
+
var _a;
|
|
15355
|
+
const result = ((_a = this.loadStrategies.find((ls) => ls.id === scrollType)) === null || _a === void 0 ? void 0 : _a.title) ||
|
|
15356
|
+
$localize `Unknown`;
|
|
15357
|
+
return result;
|
|
15358
|
+
}
|
|
15359
|
+
}
|
|
15360
|
+
/** @nocollapse */ ScrollTypeEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ScrollTypeEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15361
|
+
/** @nocollapse */ ScrollTypeEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ScrollTypeEditorService });
|
|
15362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ScrollTypeEditorService, decorators: [{
|
|
15363
|
+
type: Injectable
|
|
15364
|
+
}] });
|
|
15365
|
+
|
|
15366
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
15367
|
+
class TableScrollTypeEditorComponent {
|
|
15368
|
+
constructor(formBuilder, configuratorHeading, changeDetector, scrollTypeEditorService) {
|
|
15369
|
+
this.formBuilder = formBuilder;
|
|
15370
|
+
this.configuratorHeading = configuratorHeading;
|
|
15371
|
+
this.changeDetector = changeDetector;
|
|
15372
|
+
this.scrollTypeEditorService = scrollTypeEditorService;
|
|
15373
|
+
this.scrollType = ScrollType.virtual;
|
|
15374
|
+
this.formReady = new EventEmitter();
|
|
15375
|
+
this.onDestroy$ = new Subject();
|
|
15376
|
+
this.pageSizeSetAll = [
|
|
15377
|
+
5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100,
|
|
15378
|
+
];
|
|
15379
|
+
this.pageSizeSetOptions = [];
|
|
15380
|
+
this.pageSizeOptions = [];
|
|
15381
|
+
this.subtitle = "";
|
|
15382
|
+
this.isExpanderOpen = false;
|
|
15383
|
+
this.displayPageSizeSetErrorMessage = false;
|
|
15384
|
+
this.displayPageSizeErrorMessage = false;
|
|
15385
|
+
this.updatePaginatorSelectOptions(this.pageSizeSetAll, false);
|
|
15386
|
+
}
|
|
15387
|
+
ngOnChanges(changes) {
|
|
15388
|
+
var _a, _b, _c;
|
|
15389
|
+
if (changes.scrollType) {
|
|
15390
|
+
(_a = this.scrollTypeFormControl) === null || _a === void 0 ? void 0 : _a.setValue(this.scrollType, {
|
|
15391
|
+
emitEvent: false,
|
|
15392
|
+
});
|
|
15393
|
+
this.changeExpanderState(false);
|
|
15394
|
+
this.updateSubtitle();
|
|
15395
|
+
this.updateValidators();
|
|
15396
|
+
}
|
|
15397
|
+
if (changes.paginatorConfiguration) {
|
|
15398
|
+
this.updatePaginatorSelectOptions(this.paginatorConfiguration.pageSizeSet || [], true);
|
|
15399
|
+
this.updateDefaultPageSizeOptions(this.paginatorConfiguration.pageSizeSet || []);
|
|
15400
|
+
(_b = this.pageSizeSetFormControl) === null || _b === void 0 ? void 0 : _b.setValue(this.paginatorConfiguration.pageSizeSet, {
|
|
15401
|
+
emitEvent: false,
|
|
15402
|
+
});
|
|
15403
|
+
(_c = this.pageSizeFormControl) === null || _c === void 0 ? void 0 : _c.setValue(this.paginatorConfiguration.pageSize, {
|
|
15404
|
+
emitEvent: true,
|
|
15405
|
+
});
|
|
15406
|
+
}
|
|
15407
|
+
this.changeDetector.detectChanges();
|
|
15408
|
+
}
|
|
15409
|
+
ngOnInit() {
|
|
15410
|
+
var _a, _b, _c, _d;
|
|
15411
|
+
this.form = this.formBuilder.group({
|
|
15412
|
+
paginatorConfiguration: this.formBuilder.group({
|
|
15413
|
+
scrollType: get(this.scrollType, "", ScrollType.virtual),
|
|
15414
|
+
pageSize: get(this.paginatorConfiguration, "pageSize", 10),
|
|
15415
|
+
pageSizeSet: new FormControl(get(this.paginatorConfiguration, "pageSizeSet", [10, 20, 50])),
|
|
15416
|
+
}),
|
|
15417
|
+
});
|
|
15418
|
+
this.scrollTypeFormControl = (_a = this.form
|
|
15419
|
+
.get("paginatorConfiguration")) === null || _a === void 0 ? void 0 : _a.get("scrollType");
|
|
15420
|
+
this.pageSizeSetFormControl = (_b = this.form
|
|
15421
|
+
.get("paginatorConfiguration")) === null || _b === void 0 ? void 0 : _b.get("pageSizeSet");
|
|
15422
|
+
this.pageSizeFormControl = (_c = this.form
|
|
15423
|
+
.get("paginatorConfiguration")) === null || _c === void 0 ? void 0 : _c.get("pageSize");
|
|
15424
|
+
this.form.valueChanges
|
|
15425
|
+
.pipe(takeUntil(this.onDestroy$))
|
|
15426
|
+
.subscribe((val) => {
|
|
15427
|
+
this.displayPageSizeErrorMessage =
|
|
15428
|
+
!val.paginatorConfiguration.pageSize;
|
|
15429
|
+
});
|
|
15430
|
+
this.updateSubtitle();
|
|
15431
|
+
(_d = this.scrollTypeFormControl) === null || _d === void 0 ? void 0 : _d.valueChanges.pipe(takeUntil(this.onDestroy$)).subscribe((val) => {
|
|
15432
|
+
this.updateSubtitle();
|
|
15433
|
+
this.updateValidators();
|
|
15434
|
+
});
|
|
15435
|
+
this.formReady.emit(this.form);
|
|
15436
|
+
}
|
|
15437
|
+
onPageSizeSetChange(item) {
|
|
15438
|
+
const option = this.pageSizeSetOptions.find((n) => n.value === item.value);
|
|
15439
|
+
if (option) {
|
|
15440
|
+
option.checked = !item.checked;
|
|
15441
|
+
}
|
|
15442
|
+
this.displayPageSizeSetErrorMessage =
|
|
15443
|
+
this.pageSizeSetOptions.filter((o) => o.checked).length === 0;
|
|
15444
|
+
this.emitUpdatedSelectedOptions();
|
|
15445
|
+
}
|
|
15446
|
+
get hasPaginator() {
|
|
15447
|
+
var _a;
|
|
15448
|
+
return ((_a = this.scrollTypeFormControl) === null || _a === void 0 ? void 0 : _a.value) === ScrollType.paginator;
|
|
15449
|
+
}
|
|
15450
|
+
accordionToggle(isOpened) {
|
|
15451
|
+
this.changeExpanderState(false);
|
|
15452
|
+
}
|
|
15453
|
+
changeExpanderState(isOpen) {
|
|
15454
|
+
this.isExpanderOpen = isOpen;
|
|
15455
|
+
}
|
|
15456
|
+
updateSubtitle() {
|
|
15457
|
+
var _a;
|
|
15458
|
+
this.subtitle = this.scrollTypeEditorService.setAccordionSubtitleValues(this.hasVirtualScroll, (_a = this.scrollTypeFormControl) === null || _a === void 0 ? void 0 : _a.value);
|
|
15459
|
+
}
|
|
15460
|
+
updateValidators() {
|
|
15461
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15462
|
+
if (this.hasPaginator) {
|
|
15463
|
+
(_a = this.pageSizeFormControl) === null || _a === void 0 ? void 0 : _a.addValidators(Validators.required);
|
|
15464
|
+
(_b = this.pageSizeSetFormControl) === null || _b === void 0 ? void 0 : _b.addValidators(Validators.required);
|
|
15465
|
+
}
|
|
15466
|
+
else {
|
|
15467
|
+
(_c = this.pageSizeFormControl) === null || _c === void 0 ? void 0 : _c.clearValidators();
|
|
15468
|
+
(_d = this.pageSizeSetFormControl) === null || _d === void 0 ? void 0 : _d.clearValidators();
|
|
15469
|
+
}
|
|
15470
|
+
this.updatePaginatorSelectOptions((_e = this.pageSizeSetFormControl) === null || _e === void 0 ? void 0 : _e.value, true);
|
|
15471
|
+
this.updateDefaultPageSizeOptions((_f = this.pageSizeSetFormControl) === null || _f === void 0 ? void 0 : _f.value);
|
|
15472
|
+
(_g = this.pageSizeFormControl) === null || _g === void 0 ? void 0 : _g.updateValueAndValidity();
|
|
15473
|
+
(_h = this.pageSizeSetFormControl) === null || _h === void 0 ? void 0 : _h.updateValueAndValidity();
|
|
15474
|
+
}
|
|
15475
|
+
emitUpdatedSelectedOptions() {
|
|
15476
|
+
var _a;
|
|
15477
|
+
let filteredPageSizeSet = this.pageSizeSetOptions
|
|
15478
|
+
.filter((o) => o.checked)
|
|
15479
|
+
.map((o) => o.value);
|
|
15480
|
+
this.updateDefaultPageSizeOptions(filteredPageSizeSet);
|
|
15481
|
+
(_a = this.pageSizeSetFormControl) === null || _a === void 0 ? void 0 : _a.setValue(filteredPageSizeSet, {
|
|
15482
|
+
emitEvent: false,
|
|
15483
|
+
});
|
|
15484
|
+
}
|
|
15485
|
+
updateDefaultPageSizeOptions(options) {
|
|
15486
|
+
this.pageSizeOptions = options;
|
|
15487
|
+
}
|
|
15488
|
+
updatePaginatorSelectOptions(options, isChecked) {
|
|
15489
|
+
this.clearPageSizeSetOptions();
|
|
15490
|
+
options.forEach((o) => {
|
|
15491
|
+
const option = this.pageSizeSetOptions.find((po) => po.value === o);
|
|
15492
|
+
if (option) {
|
|
15493
|
+
option.checked = isChecked;
|
|
15494
|
+
}
|
|
15495
|
+
else {
|
|
15496
|
+
this.pageSizeSetOptions.push({
|
|
15497
|
+
value: o,
|
|
15498
|
+
checked: isChecked,
|
|
15499
|
+
});
|
|
15500
|
+
}
|
|
15501
|
+
});
|
|
15502
|
+
}
|
|
15503
|
+
clearPageSizeSetOptions() {
|
|
15504
|
+
this.pageSizeSetOptions.forEach((option) => {
|
|
15505
|
+
option.checked = false;
|
|
15506
|
+
});
|
|
15507
|
+
}
|
|
15508
|
+
ngOnDestroy() {
|
|
15509
|
+
this.onDestroy$.next();
|
|
15510
|
+
this.onDestroy$.complete();
|
|
15511
|
+
}
|
|
15512
|
+
}
|
|
15513
|
+
TableScrollTypeEditorComponent.lateLoadKey = "TableScrollTypeEditorComponent";
|
|
15514
|
+
/** @nocollapse */ TableScrollTypeEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeEditorComponent, deps: [{ token: i1$2.FormBuilder }, { token: ConfiguratorHeadingService }, { token: i0.ChangeDetectorRef }, { token: ScrollTypeEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
15515
|
+
/** @nocollapse */ TableScrollTypeEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", 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 (openToggle)=\"accordionToggle($event)\"\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 caption=\"Scroll Type\"\n i18n-caption\n [control]=\"form.controls['scrollType']\"\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 <nui-expander\n i18n-header\n header=\"Advanced Options\"\n (openChange)=\"changeExpanderState($event)\"\n [open]=\"isExpanderOpen\"\n >\n <div class=\"expander-content\">\n <div class=\"page-size-set-menu\">\n <nui-menu\n title=\"Page size options set\"\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 }}</nui-menu-option\n >\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 </div>\n\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 </nui-expander>\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{margin-bottom:10px}.table-filters-configuration__accordion-content .expander-content{display:flex}.table-filters-configuration__accordion-content .expander-content .page-size-set-menu{margin-top:26px;margin-right: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: i2.ExpanderComponent, selector: "nui-expander", inputs: ["disabled", "icon", "header", "hideLeftBorder", "open"], outputs: ["openChange"] }, { 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 });
|
|
15516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeEditorComponent, decorators: [{
|
|
15517
|
+
type: Component,
|
|
15518
|
+
args: [{ selector: "nui-scroll-type-editor-component", changeDetection: ChangeDetectionStrategy.OnPush, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n (openToggle)=\"accordionToggle($event)\"\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 caption=\"Scroll Type\"\n i18n-caption\n [control]=\"form.controls['scrollType']\"\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 <nui-expander\n i18n-header\n header=\"Advanced Options\"\n (openChange)=\"changeExpanderState($event)\"\n [open]=\"isExpanderOpen\"\n >\n <div class=\"expander-content\">\n <div class=\"page-size-set-menu\">\n <nui-menu\n title=\"Page size options set\"\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 }}</nui-menu-option\n >\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 </div>\n\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 </nui-expander>\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{margin-bottom:10px}.table-filters-configuration__accordion-content .expander-content{display:flex}.table-filters-configuration__accordion-content .expander-content .page-size-set-menu{margin-top:26px;margin-right:10px}\n"] }]
|
|
15519
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: ConfiguratorHeadingService }, { type: i0.ChangeDetectorRef }, { type: ScrollTypeEditorService }]; }, propDecorators: { paginatorConfiguration: [{
|
|
15520
|
+
type: Input
|
|
15521
|
+
}], hasVirtualScroll: [{
|
|
15522
|
+
type: Input
|
|
15523
|
+
}], scrollType: [{
|
|
15524
|
+
type: Input
|
|
15525
|
+
}], formReady: [{
|
|
15526
|
+
type: Output
|
|
15527
|
+
}] } });
|
|
15528
|
+
|
|
15122
15529
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
15123
15530
|
/* eslint-enable max-len */
|
|
15124
15531
|
const entryComponents$1 = [
|
|
@@ -15135,6 +15542,7 @@ const entryComponents$1 = [
|
|
|
15135
15542
|
ProportionalChartOptionsEditorComponent,
|
|
15136
15543
|
ProportionalChartOptionsEditorV2Component,
|
|
15137
15544
|
TableFiltersEditorComponent,
|
|
15545
|
+
TableScrollTypeEditorComponent,
|
|
15138
15546
|
TimeseriesMetadataConfigurationComponent,
|
|
15139
15547
|
TimeseriesSeriesCollectionConfigurationComponent,
|
|
15140
15548
|
TableColumnsConfigurationComponent,
|
|
@@ -15213,6 +15621,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15213
15621
|
ProportionalChartOptionsEditorComponent,
|
|
15214
15622
|
ProportionalChartOptionsEditorV2Component,
|
|
15215
15623
|
TableFiltersEditorComponent,
|
|
15624
|
+
TableScrollTypeEditorComponent,
|
|
15216
15625
|
TimeseriesMetadataConfigurationComponent,
|
|
15217
15626
|
TimeseriesSeriesCollectionConfigurationComponent,
|
|
15218
15627
|
TableColumnsConfigurationComponent,
|
|
@@ -15307,6 +15716,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15307
15716
|
ProportionalChartOptionsEditorComponent,
|
|
15308
15717
|
ProportionalChartOptionsEditorV2Component,
|
|
15309
15718
|
TableFiltersEditorComponent,
|
|
15719
|
+
TableScrollTypeEditorComponent,
|
|
15310
15720
|
TimeseriesMetadataConfigurationComponent,
|
|
15311
15721
|
TimeseriesSeriesCollectionConfigurationComponent,
|
|
15312
15722
|
TableColumnsConfigurationComponent,
|
|
@@ -15368,6 +15778,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15368
15778
|
KpiWidgetColorService,
|
|
15369
15779
|
TimeseriesChartPresetService,
|
|
15370
15780
|
TimeseriesScalesService,
|
|
15781
|
+
ScrollTypeEditorService,
|
|
15371
15782
|
], imports: [ScrollingModule,
|
|
15372
15783
|
NuiDashboardsCommonModule,
|
|
15373
15784
|
ReactiveFormsModule,
|
|
@@ -15445,6 +15856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
15445
15856
|
KpiWidgetColorService,
|
|
15446
15857
|
TimeseriesChartPresetService,
|
|
15447
15858
|
TimeseriesScalesService,
|
|
15859
|
+
ScrollTypeEditorService,
|
|
15448
15860
|
],
|
|
15449
15861
|
exports: exportedDeclarations,
|
|
15450
15862
|
}]
|
|
@@ -17126,7 +17538,7 @@ const tableConfigurator = {
|
|
|
17126
17538
|
properties: {
|
|
17127
17539
|
headerText: $localize `Presentation`,
|
|
17128
17540
|
// references to other components laid out in this form
|
|
17129
|
-
nodes: ["titleAndDescription", "filters"],
|
|
17541
|
+
nodes: ["titleAndDescription", "filters", "scrollType"],
|
|
17130
17542
|
},
|
|
17131
17543
|
},
|
|
17132
17544
|
// /presentation/titleAndDescription
|
|
@@ -17139,7 +17551,7 @@ const tableConfigurator = {
|
|
|
17139
17551
|
},
|
|
17140
17552
|
},
|
|
17141
17553
|
},
|
|
17142
|
-
// /presentation/filters - configuration of built-in
|
|
17554
|
+
// /presentation/filters - !WARNING! configuration of built-in sorting, naming is obsolete
|
|
17143
17555
|
filters: {
|
|
17144
17556
|
id: "filters",
|
|
17145
17557
|
componentType: TableFiltersEditorComponent.lateLoadKey,
|
|
@@ -17149,6 +17561,16 @@ const tableConfigurator = {
|
|
|
17149
17561
|
},
|
|
17150
17562
|
},
|
|
17151
17563
|
},
|
|
17564
|
+
// /presentation/scrollType - configuration of built-in pagination
|
|
17565
|
+
scrollType: {
|
|
17566
|
+
id: "scrollType",
|
|
17567
|
+
componentType: TableScrollTypeEditorComponent.lateLoadKey,
|
|
17568
|
+
providers: {
|
|
17569
|
+
[WellKnownProviders.Converter]: {
|
|
17570
|
+
providerId: NOVA_TABLE_SCROLL_TYPE_CONVERTER,
|
|
17571
|
+
},
|
|
17572
|
+
},
|
|
17573
|
+
},
|
|
17152
17574
|
refresher: REFRESHER_CONFIGURATOR,
|
|
17153
17575
|
// /dataAndCalculations
|
|
17154
17576
|
dataAndCalculations: {
|
|
@@ -17721,7 +18143,8 @@ class NuiDashboardsModule {
|
|
|
17721
18143
|
NuiRepeatModule,
|
|
17722
18144
|
NuiRiskScoreModule,
|
|
17723
18145
|
NuiSelectModule,
|
|
17724
|
-
NuiPopoverModule
|
|
18146
|
+
NuiPopoverModule,
|
|
18147
|
+
NuiPaginatorModule], exports: [DashboardComponent,
|
|
17725
18148
|
EmbeddedContentComponent,
|
|
17726
18149
|
GridsterItemWidgetIdDirective,
|
|
17727
18150
|
KpiComponent,
|
|
@@ -17781,7 +18204,8 @@ class NuiDashboardsModule {
|
|
|
17781
18204
|
NuiRepeatModule,
|
|
17782
18205
|
NuiRiskScoreModule,
|
|
17783
18206
|
NuiSelectModule,
|
|
17784
|
-
NuiPopoverModule
|
|
18207
|
+
NuiPopoverModule,
|
|
18208
|
+
NuiPaginatorModule] });
|
|
17785
18209
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NuiDashboardsModule, decorators: [{
|
|
17786
18210
|
type: NgModule,
|
|
17787
18211
|
args: [{
|
|
@@ -17811,6 +18235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
17811
18235
|
NuiRiskScoreModule,
|
|
17812
18236
|
NuiSelectModule,
|
|
17813
18237
|
NuiPopoverModule,
|
|
18238
|
+
NuiPaginatorModule,
|
|
17814
18239
|
],
|
|
17815
18240
|
declarations: dashboardComponents,
|
|
17816
18241
|
providers: [
|
|
@@ -18120,5 +18545,5 @@ const DONUT_CONTENT_CONFIGURATION_SLICE = {
|
|
|
18120
18545
|
* Generated bundle index. Do not edit.
|
|
18121
18546
|
*/
|
|
18122
18547
|
|
|
18123
|
-
export { AccordionState, AddDataPipe, AggregatorMetricSelectorConfigurationComponent, BackgroundColorRulesConfigurationComponent, BaseLayout, CHART_METRIC_REMOVE, CHART_PALETTE_CS3_ALTERNATIVE_NAMES, CHART_PALETTE_CS_S_EXTENDED_ALTERNATIVE_NAMES, CONFIGURATOR_CONVERTER, ColorPickerComponent, ComponentPortalDirective, ComponentPortalService, ComponentRegistryService, ConfiguratorComponent, ConfiguratorHeadingComponent, ConfiguratorHeadingService, ConfiguratorService, DASHBOARD_EDIT_MODE, DASHBOARD_EVENT_BUS, DATA_SOURCE, DATA_SOURCE_BUSY, DATA_SOURCE_CHANGE, DATA_SOURCE_CREATED, DATA_SOURCE_DESTROYED, DATA_SOURCE_INVOKED, DATA_SOURCE_OUTPUT, DEFAULT_COMPARATORS, DEFAULT_KPI_BACKGROUND_COLORS, DEFAULT_KPI_FORMATTERS, DEFAULT_KPI_TILE_COLOR, DEFAULT_LEGEND_FORMATTERS, DEFAULT_PIZZAGNA_ROOT, DEFAULT_PROPORTIONAL_CONTENT_AGGREGATORS, DEFAULT_PROPORTIONAL_CONTENT_FORMATTERS, DEFAULT_REFRESH_INTERVAL, DEFAULT_UNIT_CONVERSION_THRESHOLD, DONUT_CONTENT_CONFIGURATION_SLICE, DRILLDOWN, DashboardComponent, DashboardUnitConversionPipe, DashwizButtonsComponent, DashwizComponent, DashwizStepComponent, DataSourceAdapter, DataSourceConfigurationComponent, DataSourceConfigurationV2Component, DataSourceErrorComponent, DelayedMousePresenceDetectionDirective, DescriptionConfigurationComponent, DescriptionConfigurationV2Component, DonutChartFormatterConfiguratorComponent, DonutContentConfigurationComponent, DonutContentPercentageConfigurationComponent, DonutContentPercentageFormatterComponent, DonutContentRawFormatterComponent, DonutContentSumFormatterComponent, DropAreaComponent, DynamicComponentCreator, ERROR_FALLBACK_MAP, ERROR_NODES, EVENT_PROXY, EmbeddedContentComponent, EmbeddedContentConfigurationComponent, EmbeddedContentMode, EntityFormattingConfigurationComponent, ErrorNodeKey, EventRegistryService, FORMATTERS_REGISTRY, FieldMapperAggregatorConfiguratorComponent, FormHeaderIconPipePipe, FormStackComponent, FormatterConfiguratorComponent, FormatterRegistryService, GridsterItemWidgetIdDirective, GroupingConfigurationComponent, HEADER_LINK_PROVIDER, HttpStatusCode, INTERACTION, IconFormatterComponent, InfoMessageConfigurationComponent, InteractionHandler, ItemsDynamicComponent, KpiColorComparatorsRegistryService, KpiComponent, KpiDescriptionConfigurationComponent, KpiFormatterTypes, KpiFormattersRegistryService, KpiTilesConfigurationComponent, KpiTilesConverterService, KpiWidgetColorService, KpiWidgetFontSizes, KpiWidgetThresholdColors, LegendPlacement, LineChartComponent, LinkConfiguratorComponent, LinkFormatterComponent, ListGroupItemComponent, ListLeafItemComponent, ListNavigationBarComponent, ListWidgetComponent, LoadingComponent, NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER, NOVA_DASHBOARD_EVENT_PROXY, NOVA_DATASOURCE_ADAPTER, NOVA_DATASOURCE_INTERVAL_REFRESHER, NOVA_DRILLDOWN_DATASOURCE_ADAPTER, NOVA_EVENT_BUS_DEBUGGER, NOVA_GENERIC_ARRAY_CONVERTER, NOVA_GENERIC_CONVERTER, NOVA_KPI_COLOR_PRIORITIZER, NOVA_KPI_DATASOURCE_ADAPTER, NOVA_KPI_FORMATTERS_REGISTRY, NOVA_KPI_SCALE_SYNC_BROKER, NOVA_KPI_SECTION_CONVERTER, NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_KPI_TILES_CONVERTER, NOVA_LOADING_ADAPTER, NOVA_PIZZAGNA_BROADCASTER, NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY, NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER, NOVA_RISK_SCORE_FORMATTERS_REGISTRY, NOVA_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_TABLE_COLUMNS_CONVERTER, NOVA_TABLE_DATASOURCE_ADAPTER, NOVA_TABLE_FILTERS_CONVERTER, NOVA_TABLE_FORMATTERS_REGISTRY, NOVA_TEST_REGISTRY, NOVA_TIMESERIES_DATASOURCE_ADAPTER, NOVA_TIMESERIES_METADATA_CONVERTER, NOVA_TIMESERIES_SERIES_CONVERTER, NOVA_TIMESERIES_TILE_INDICATOR_DATA_CONVERTER, NOVA_TITLE_AND_DESCRIPTION_CONVERTER, NOVA_URL_INTERACTION_HANDLER, NOVA_VIRTUAL_VIEWPORT_MANAGER, NuiDashboardConfiguratorModule, NuiDashboardsCommonModule, NuiDashboardsModule, NuiPizzagnaModule, PIZZAGNA_EVENT_BUS, PREVIEW_EVENT, PercentageFormatterComponent, PizzagnaComponent, PizzagnaLayer, PizzagnaRootPipe, PizzagnaService, PresentationConfigurationComponent, PresentationConfigurationV2Component, PreviewOverlayComponent, PreviewPlaceholderComponent, PreviewService, ProportionalChartOptionsEditorComponent, ProportionalChartOptionsEditorV2Component, ProportionalContentAggregatorsRegistryService, ProportionalDonutContentComponent, ProportionalDonutContentFormattersRegistryService, ProportionalLegendFormattersRegistryService, ProportionalWidgetChartOptionsConverterService, ProportionalWidgetChartTypes, ProportionalWidgetComponent, ProviderRegistryService, REFRESH, REFRESHER_CONFIGURATOR, RawFormatterComponent, RefreshRateConfiguratorComponent, Refresher, RefresherConfigurationComponent, RefresherSettingsService, RiskScoreFormatterTypes, RiskScoreFormattersRegistryService, RiskScoreTileComponent, RiskScoreTileDescriptionConfigurationComponent, RiskScoreTilesConfigurationComponent, SCROLL_NEXT_PAGE, SET_PROPERTY_VALUE, SET_TIMEFRAME, SUMMARY_LEGEND_BCG_COLOR, SUMMARY_LEGEND_COLOR, SiUnitsFormatterComponent, StackComponent, StackedAreaChartComponent, StackedBarChartComponent, StackedPercentageAreaChartComponent, StatusBarChartComponent, StatusWithIconFormatterComponent, TEST_REGISTRY, TIMESERIES_INSPECTION_MENU_CLEAR, TIMESERIES_INSPECTION_MENU_CLOSE, TIMESERIES_INSPECTION_MENU_EXPLORE, TIMESERIES_INSPECTION_MENU_SYNCHRONIZE, TIMESERIES_INSPECTION_MENU_ZOOM_IN, TIMESERIES_INSPECTION_MENU_ZOOM_OUT, TableColumnConfigurationComponent, TableColumnsConfigurationComponent, TableColumnsConfigurationV2Component, TableDataSourceAdapter, TableDataSourceErrorComponent, TableFiltersEditorComponent, TableFormatterRegistryService, TableWidgetComponent, TemplateLoadErrorComponent, ThresholdsConfigurationComponent, TilesComponent, TimeframeSelectionComponent, TimeframeSerializationService, TimeseriesChartPreset, TimeseriesChartPresetService, TimeseriesChartTypes, TimeseriesDataSourceAdapter, TimeseriesInspectionMenuComponent, TimeseriesInteractionType, TimeseriesMetadataConfigurationComponent, TimeseriesScaleType, TimeseriesSeriesCollectionConfigurationComponent, TimeseriesSeriesConverterService, TimeseriesTileDescriptionConfigurationComponent, TimeseriesTileIndicatorDataConfigurationComponent, TimeseriesTransformer, TimeseriesWidgetComponent, TimeseriesWidgetProjectType, TitleAndDescriptionConfigurationComponent, TitleAndDescriptionConverterService, UrlInteractionHandler, UrlInteractionService, ValueSelectorComponent, WIDGET_BODY, WIDGET_CREATE, WIDGET_EDIT, WIDGET_HEADER, WIDGET_LOADING, WIDGET_POSITION_CHANGE, WIDGET_READY, WIDGET_REMOVE, WIDGET_RESIZE, WIDGET_SEARCH, WellKnownDataSourceFeatures, WellKnownPathKey, WellKnownProviders, WidgetBodyComponent, WidgetBodyContentComponent, WidgetClonerComponent, WidgetClonerService, WidgetComponent, WidgetConfigurationService, WidgetConfiguratorSectionComponent, WidgetConfiguratorSectionHeaderPipe, WidgetEditorAccordionComponent, WidgetEditorAccordionFormStatePipe, WidgetEditorAccordionHeaderComponent, WidgetEditorComponent, WidgetEditorDirective, WidgetEditorService, WidgetErrorComponent, WidgetHeaderComponent, WidgetSearchComponent, WidgetToDashboardEventProxyService, WidgetTypesService, WindowObject, XYChartComponent, applyStatusEndpoints, chartPaletteColorMap, fieldMapper, getPizzagnaPropertyPath, hasControlInErrorState, hasTimeseriesWidgetSummaryLegend, mapDataToFormatterProperties, mergeChanges, metricsSeriesMeasurementsMinMax, percentageAggregator, refresher, sumAggregator, timeSeriesDatetimeFormatter, transformChangePoint, transformDifference, transformFloatingAverage, transformLinReg, transformLoessSmoothing, transformLoessStandardize, transformNormalize, transformPercentileStd, transformStandardize, widgetBodyContentNodes };
|
|
18548
|
+
export { AccordionState, AddDataPipe, AggregatorMetricSelectorConfigurationComponent, BackgroundColorRulesConfigurationComponent, BaseLayout, CHART_METRIC_REMOVE, CHART_PALETTE_CS3_ALTERNATIVE_NAMES, CHART_PALETTE_CS_S_EXTENDED_ALTERNATIVE_NAMES, CONFIGURATOR_CONVERTER, ColorPickerComponent, ComponentPortalDirective, ComponentPortalService, ComponentRegistryService, ConfiguratorComponent, ConfiguratorHeadingComponent, ConfiguratorHeadingService, ConfiguratorService, DASHBOARD_EDIT_MODE, DASHBOARD_EVENT_BUS, DATA_SOURCE, DATA_SOURCE_BUSY, DATA_SOURCE_CHANGE, DATA_SOURCE_CREATED, DATA_SOURCE_DESTROYED, DATA_SOURCE_INVOKED, DATA_SOURCE_OUTPUT, DEFAULT_COMPARATORS, DEFAULT_KPI_BACKGROUND_COLORS, DEFAULT_KPI_FORMATTERS, DEFAULT_KPI_TILE_COLOR, DEFAULT_LEGEND_FORMATTERS, DEFAULT_PIZZAGNA_ROOT, DEFAULT_PROPORTIONAL_CONTENT_AGGREGATORS, DEFAULT_PROPORTIONAL_CONTENT_FORMATTERS, DEFAULT_REFRESH_INTERVAL, DEFAULT_UNIT_CONVERSION_THRESHOLD, DONUT_CONTENT_CONFIGURATION_SLICE, DRILLDOWN, DashboardComponent, DashboardUnitConversionPipe, DashwizButtonsComponent, DashwizComponent, DashwizStepComponent, DataSourceAdapter, DataSourceConfigurationComponent, DataSourceConfigurationV2Component, DataSourceErrorComponent, DelayedMousePresenceDetectionDirective, DescriptionConfigurationComponent, DescriptionConfigurationV2Component, DonutChartFormatterConfiguratorComponent, DonutContentConfigurationComponent, DonutContentPercentageConfigurationComponent, DonutContentPercentageFormatterComponent, DonutContentRawFormatterComponent, DonutContentSumFormatterComponent, DropAreaComponent, DynamicComponentCreator, ERROR_FALLBACK_MAP, ERROR_NODES, EVENT_PROXY, EmbeddedContentComponent, EmbeddedContentConfigurationComponent, EmbeddedContentMode, EntityFormattingConfigurationComponent, ErrorNodeKey, EventRegistryService, FORMATTERS_REGISTRY, FieldMapperAggregatorConfiguratorComponent, FormHeaderIconPipePipe, FormStackComponent, FormatterConfiguratorComponent, FormatterRegistryService, GridsterItemWidgetIdDirective, GroupingConfigurationComponent, HEADER_LINK_PROVIDER, HttpStatusCode, INTERACTION, IconFormatterComponent, InfoMessageConfigurationComponent, InteractionHandler, ItemsDynamicComponent, KpiColorComparatorsRegistryService, KpiComponent, KpiDescriptionConfigurationComponent, KpiFormatterTypes, KpiFormattersRegistryService, KpiTilesConfigurationComponent, KpiTilesConverterService, KpiWidgetColorService, KpiWidgetFontSizes, KpiWidgetThresholdColors, LegendPlacement, LineChartComponent, LinkConfiguratorComponent, LinkFormatterComponent, ListGroupItemComponent, ListLeafItemComponent, ListNavigationBarComponent, ListWidgetComponent, LoadingComponent, NOVA_CONFIGURATOR_DATA_SOURCE_MANAGER, NOVA_DASHBOARD_EVENT_PROXY, NOVA_DATASOURCE_ADAPTER, NOVA_DATASOURCE_INTERVAL_REFRESHER, NOVA_DRILLDOWN_DATASOURCE_ADAPTER, NOVA_EVENT_BUS_DEBUGGER, NOVA_GENERIC_ARRAY_CONVERTER, NOVA_GENERIC_CONVERTER, NOVA_KPI_COLOR_PRIORITIZER, NOVA_KPI_DATASOURCE_ADAPTER, NOVA_KPI_FORMATTERS_REGISTRY, NOVA_KPI_SCALE_SYNC_BROKER, NOVA_KPI_SECTION_CONVERTER, NOVA_KPI_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_KPI_TILES_CONVERTER, NOVA_LOADING_ADAPTER, NOVA_PIZZAGNA_BROADCASTER, NOVA_PROPORTIONAL_CONTENT_FORMATTERS_REGISTRY, NOVA_PROPORTIONAL_WIDGET_CHART_OPTIONS_CONVERTER, NOVA_RISK_SCORE_FORMATTERS_REGISTRY, NOVA_STATUS_CONTENT_FALLBACK_ADAPTER, NOVA_TABLE_COLUMNS_CONVERTER, NOVA_TABLE_DATASOURCE_ADAPTER, NOVA_TABLE_FILTERS_CONVERTER, NOVA_TABLE_FORMATTERS_REGISTRY, NOVA_TABLE_SCROLL_TYPE_CONVERTER, NOVA_TEST_REGISTRY, NOVA_TIMESERIES_DATASOURCE_ADAPTER, NOVA_TIMESERIES_METADATA_CONVERTER, NOVA_TIMESERIES_SERIES_CONVERTER, NOVA_TIMESERIES_TILE_INDICATOR_DATA_CONVERTER, NOVA_TITLE_AND_DESCRIPTION_CONVERTER, NOVA_URL_INTERACTION_HANDLER, NOVA_VIRTUAL_VIEWPORT_MANAGER, NuiDashboardConfiguratorModule, NuiDashboardsCommonModule, NuiDashboardsModule, NuiPizzagnaModule, PIZZAGNA_EVENT_BUS, PREVIEW_EVENT, PercentageFormatterComponent, PizzagnaComponent, PizzagnaLayer, PizzagnaRootPipe, PizzagnaService, PresentationConfigurationComponent, PresentationConfigurationV2Component, PreviewOverlayComponent, PreviewPlaceholderComponent, PreviewService, ProportionalChartOptionsEditorComponent, ProportionalChartOptionsEditorV2Component, ProportionalContentAggregatorsRegistryService, ProportionalDonutContentComponent, ProportionalDonutContentFormattersRegistryService, ProportionalLegendFormattersRegistryService, ProportionalWidgetChartOptionsConverterService, ProportionalWidgetChartTypes, ProportionalWidgetComponent, ProviderRegistryService, REFRESH, REFRESHER_CONFIGURATOR, RawFormatterComponent, RefreshRateConfiguratorComponent, Refresher, RefresherConfigurationComponent, RefresherSettingsService, RiskScoreFormatterTypes, RiskScoreFormattersRegistryService, RiskScoreTileComponent, RiskScoreTileDescriptionConfigurationComponent, RiskScoreTilesConfigurationComponent, SCROLL_NEXT_PAGE, SELECTION, SET_PROPERTY_VALUE, SET_TIMEFRAME, SUMMARY_LEGEND_BCG_COLOR, SUMMARY_LEGEND_COLOR, ScrollType, SiUnitsFormatterComponent, StackComponent, StackedAreaChartComponent, StackedBarChartComponent, StackedPercentageAreaChartComponent, StatusBarChartComponent, StatusWithIconFormatterComponent, TEST_REGISTRY, TIMESERIES_INSPECTION_MENU_CLEAR, TIMESERIES_INSPECTION_MENU_CLOSE, TIMESERIES_INSPECTION_MENU_EXPLORE, TIMESERIES_INSPECTION_MENU_SYNCHRONIZE, TIMESERIES_INSPECTION_MENU_ZOOM_IN, TIMESERIES_INSPECTION_MENU_ZOOM_OUT, TableColumnConfigurationComponent, TableColumnsConfigurationComponent, TableColumnsConfigurationV2Component, TableDataSourceAdapter, TableDataSourceErrorComponent, TableFiltersEditorComponent, TableFormatterRegistryService, TableScrollTypeEditorComponent, TableWidgetComponent, TemplateLoadErrorComponent, ThresholdsConfigurationComponent, TilesComponent, TimeframeSelectionComponent, TimeframeSerializationService, TimeseriesChartPreset, TimeseriesChartPresetService, TimeseriesChartTypes, TimeseriesDataSourceAdapter, TimeseriesInspectionMenuComponent, TimeseriesInteractionType, TimeseriesMetadataConfigurationComponent, TimeseriesScaleType, TimeseriesSeriesCollectionConfigurationComponent, TimeseriesSeriesConverterService, TimeseriesTileDescriptionConfigurationComponent, TimeseriesTileIndicatorDataConfigurationComponent, TimeseriesTransformer, TimeseriesWidgetComponent, TimeseriesWidgetProjectType, TitleAndDescriptionConfigurationComponent, TitleAndDescriptionConverterService, UrlInteractionHandler, UrlInteractionService, ValueSelectorComponent, WIDGET_BODY, WIDGET_CREATE, WIDGET_EDIT, WIDGET_HEADER, WIDGET_LOADING, WIDGET_POSITION_CHANGE, WIDGET_READY, WIDGET_REMOVE, WIDGET_RESIZE, WIDGET_SEARCH, WellKnownDataSourceFeatures, WellKnownPathKey, WellKnownProviders, WidgetBodyComponent, WidgetBodyContentComponent, WidgetClonerComponent, WidgetClonerService, WidgetComponent, WidgetConfigurationService, WidgetConfiguratorSectionComponent, WidgetConfiguratorSectionHeaderPipe, WidgetEditorAccordionComponent, WidgetEditorAccordionFormStatePipe, WidgetEditorAccordionHeaderComponent, WidgetEditorComponent, WidgetEditorDirective, WidgetEditorService, WidgetErrorComponent, WidgetHeaderComponent, WidgetSearchComponent, WidgetToDashboardEventProxyService, WidgetTypesService, WindowObject, XYChartComponent, applyStatusEndpoints, chartPaletteColorMap, fieldMapper, getPizzagnaPropertyPath, hasControlInErrorState, hasTimeseriesWidgetSummaryLegend, mapDataToFormatterProperties, mergeChanges, metricsSeriesMeasurementsMinMax, percentageAggregator, refresher, sumAggregator, timeSeriesDatetimeFormatter, transformChangePoint, transformDifference, transformFloatingAverage, transformLinReg, transformLoessSmoothing, transformLoessStandardize, transformNormalize, transformPercentileStd, transformStandardize, widgetBodyContentNodes };
|
|
18124
18549
|
//# sourceMappingURL=nova-ui-dashboards.mjs.map
|