@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, Optional, NgZone, Injector, 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";
|
|
@@ -2600,11 +2602,9 @@ class TableFiltersConverterService extends BaseConverter {
|
|
|
2600
2602
|
this.updateFormPizzagna(formPizzagna);
|
|
2601
2603
|
}
|
|
2602
2604
|
toPreview(form) {
|
|
2603
|
-
form.valueChanges
|
|
2604
|
-
.pipe(takeUntil(this.destroy$))
|
|
2605
|
-
.subscribe((filters) => {
|
|
2605
|
+
form.valueChanges.pipe(takeUntil(this.destroy$)).subscribe((form) => {
|
|
2606
2606
|
let preview = this.getPreview();
|
|
2607
|
-
preview = immutableSet(preview, "table.properties.configuration.sorterConfiguration",
|
|
2607
|
+
preview = immutableSet(preview, "table.properties.configuration.sorterConfiguration", form.sorterConfiguration);
|
|
2608
2608
|
this.updatePreview(preview);
|
|
2609
2609
|
// we need to update form with columns that are available
|
|
2610
2610
|
this.buildForm();
|
|
@@ -2620,6 +2620,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
2620
2620
|
args: [PIZZAGNA_EVENT_BUS]
|
|
2621
2621
|
}] }, { type: PreviewService }, { type: PizzagnaService }]; } });
|
|
2622
2622
|
|
|
2623
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2624
|
+
class TableScrollTypeConverterService extends BaseConverter {
|
|
2625
|
+
constructor(eventBus, previewService, pizzagnaService) {
|
|
2626
|
+
super(eventBus, previewService, pizzagnaService);
|
|
2627
|
+
}
|
|
2628
|
+
ngAfterViewInit() {
|
|
2629
|
+
super.ngAfterViewInit();
|
|
2630
|
+
}
|
|
2631
|
+
buildForm() {
|
|
2632
|
+
let formPizzagna = this.pizzagnaService.pizzagna;
|
|
2633
|
+
const table = this.getPreview()?.table;
|
|
2634
|
+
const paginatorConfiguration = table?.properties?.configuration?.paginatorConfiguration;
|
|
2635
|
+
const hasVirtualScroll = table?.properties?.configuration?.hasVirtualScroll;
|
|
2636
|
+
const scrollType = table?.properties?.configuration?.scrollType;
|
|
2637
|
+
formPizzagna = immutableSet(formPizzagna, `${PizzagnaLayer.Data}.scrollType.properties.paginatorConfiguration`, paginatorConfiguration);
|
|
2638
|
+
formPizzagna = immutableSet(formPizzagna, `${PizzagnaLayer.Data}.scrollType.properties.hasVirtualScroll`, hasVirtualScroll);
|
|
2639
|
+
formPizzagna = immutableSet(formPizzagna, `${PizzagnaLayer.Data}.scrollType.properties.scrollType`, scrollType);
|
|
2640
|
+
this.updateFormPizzagna(formPizzagna);
|
|
2641
|
+
}
|
|
2642
|
+
toPreview(form) {
|
|
2643
|
+
form.valueChanges.pipe(takeUntil(this.destroy$)).subscribe((form) => {
|
|
2644
|
+
let preview = this.getPreview();
|
|
2645
|
+
preview = immutableSet(preview, "table.properties.configuration.hasVirtualScroll", false);
|
|
2646
|
+
preview = immutableSet(preview, "table.properties.configuration.scrollType", form.paginatorConfiguration.scrollType);
|
|
2647
|
+
preview = immutableSet(preview, "table.properties.configuration.paginatorConfiguration.pageSizeSet", form.paginatorConfiguration.pageSizeSet);
|
|
2648
|
+
preview = immutableSet(preview, "table.properties.configuration.paginatorConfiguration.pageSize", form.paginatorConfiguration.pageSize);
|
|
2649
|
+
this.updatePreview(preview);
|
|
2650
|
+
});
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
/** @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 });
|
|
2654
|
+
/** @nocollapse */ TableScrollTypeConverterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeConverterService });
|
|
2655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeConverterService, decorators: [{
|
|
2656
|
+
type: Injectable
|
|
2657
|
+
}], ctorParameters: function () { return [{ type: i2.EventBus, decorators: [{
|
|
2658
|
+
type: Inject,
|
|
2659
|
+
args: [PIZZAGNA_EVENT_BUS]
|
|
2660
|
+
}] }, { type: PreviewService }, { type: PizzagnaService }]; } });
|
|
2661
|
+
|
|
2623
2662
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2624
2663
|
class TimeseriesMetadataConverterService extends BaseConverter {
|
|
2625
2664
|
constructor(eventBus, previewService, pizzagnaService, timeframeService) {
|
|
@@ -3274,6 +3313,11 @@ class ProviderRegistryService {
|
|
|
3274
3313
|
useClass: TableFiltersConverterService,
|
|
3275
3314
|
deps: [PIZZAGNA_EVENT_BUS, PreviewService, PizzagnaService],
|
|
3276
3315
|
},
|
|
3316
|
+
[NOVA_TABLE_SCROLL_TYPE_CONVERTER]: {
|
|
3317
|
+
provide: CONFIGURATOR_CONVERTER,
|
|
3318
|
+
useClass: TableScrollTypeConverterService,
|
|
3319
|
+
deps: [PIZZAGNA_EVENT_BUS, PreviewService, PizzagnaService],
|
|
3320
|
+
},
|
|
3277
3321
|
[NOVA_LOADING_ADAPTER]: {
|
|
3278
3322
|
provide: LoadingAdapter,
|
|
3279
3323
|
deps: [PIZZAGNA_EVENT_BUS, PizzagnaService],
|
|
@@ -4276,8 +4320,15 @@ class KpiComponent {
|
|
|
4276
4320
|
}
|
|
4277
4321
|
}
|
|
4278
4322
|
}
|
|
4279
|
-
get
|
|
4280
|
-
|
|
4323
|
+
get showEmpty() {
|
|
4324
|
+
if (typeof this.widgetData?.value === "boolean") {
|
|
4325
|
+
return false;
|
|
4326
|
+
}
|
|
4327
|
+
if (Array.isArray(this.widgetData?.value) &&
|
|
4328
|
+
this.widgetData?.value.length === 0) {
|
|
4329
|
+
return true;
|
|
4330
|
+
}
|
|
4331
|
+
return !this.widgetData?.value && this.widgetData?.value !== 0;
|
|
4281
4332
|
}
|
|
4282
4333
|
/**
|
|
4283
4334
|
* Iterates over formatters and maps their properties from the data
|
|
@@ -4300,10 +4351,10 @@ class KpiComponent {
|
|
|
4300
4351
|
}
|
|
4301
4352
|
KpiComponent.lateLoadKey = "KpiComponent";
|
|
4302
4353
|
/** @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 });
|
|
4303
|
-
/** @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
|
|
4354
|
+
/** @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 });
|
|
4304
4355
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: KpiComponent, decorators: [{
|
|
4305
4356
|
type: Component,
|
|
4306
|
-
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
|
|
4357
|
+
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"] }]
|
|
4307
4358
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4308
4359
|
type: Optional
|
|
4309
4360
|
}, {
|
|
@@ -5257,16 +5308,21 @@ class ProportionalWidgetComponent {
|
|
|
5257
5308
|
}
|
|
5258
5309
|
return colorProvider;
|
|
5259
5310
|
}
|
|
5311
|
+
get isEmpty() {
|
|
5312
|
+
return (!this.widgetData ||
|
|
5313
|
+
this.widgetData.length === 0 ||
|
|
5314
|
+
!this.chartAssist);
|
|
5315
|
+
}
|
|
5260
5316
|
}
|
|
5261
5317
|
ProportionalWidgetComponent.lateLoadKey = "ProportionalWidgetComponent";
|
|
5262
5318
|
ProportionalWidgetComponent.NO_SWITCH_LAYOUT_INTERVAL_SIZE = 20;
|
|
5263
5319
|
ProportionalWidgetComponent.MAX_ROW_LAYOUT_SIZE = 360;
|
|
5264
5320
|
ProportionalWidgetComponent.TICK_LABEL_MAX_WIDTH = 75;
|
|
5265
5321
|
/** @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 });
|
|
5266
|
-
/** @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" }] });
|
|
5322
|
+
/** @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" }] });
|
|
5267
5323
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalWidgetComponent, decorators: [{
|
|
5268
5324
|
type: Component,
|
|
5269
|
-
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
|
|
5325
|
+
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"] }]
|
|
5270
5326
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.KeyValueDiffers }, { type: i2.EventBus, decorators: [{
|
|
5271
5327
|
type: Inject,
|
|
5272
5328
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -5514,7 +5570,10 @@ class VirtualScrollFeatureAddonService {
|
|
|
5514
5570
|
initWidget(widget) {
|
|
5515
5571
|
this.widget = widget;
|
|
5516
5572
|
}
|
|
5517
|
-
initVirtualScroll() {
|
|
5573
|
+
initVirtualScroll(widget) {
|
|
5574
|
+
if (!this.widget) {
|
|
5575
|
+
this.initWidget(widget);
|
|
5576
|
+
}
|
|
5518
5577
|
if (this.widget.hasVirtualScroll) {
|
|
5519
5578
|
this.registerVirtualScroll();
|
|
5520
5579
|
}
|
|
@@ -5581,6 +5640,97 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
5581
5640
|
type: Injectable
|
|
5582
5641
|
}] });
|
|
5583
5642
|
|
|
5643
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5644
|
+
//
|
|
5645
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5646
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5647
|
+
// deal in the Software without restriction, including without limitation the
|
|
5648
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
5649
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
5650
|
+
// furnished to do so, subject to the following conditions:
|
|
5651
|
+
//
|
|
5652
|
+
// The above copyright notice and this permission notice shall be included in
|
|
5653
|
+
// all copies or substantial portions of the Software.
|
|
5654
|
+
//
|
|
5655
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
5656
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
5657
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
5658
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
5659
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
5660
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
5661
|
+
// THE SOFTWARE.
|
|
5662
|
+
var ScrollType;
|
|
5663
|
+
(function (ScrollType) {
|
|
5664
|
+
ScrollType["virtual"] = "virtual";
|
|
5665
|
+
ScrollType["paginator"] = "paginator";
|
|
5666
|
+
ScrollType["default"] = "default";
|
|
5667
|
+
})(ScrollType || (ScrollType = {}));
|
|
5668
|
+
|
|
5669
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5670
|
+
class PaginatorFeatureAddonService {
|
|
5671
|
+
constructor() {
|
|
5672
|
+
this.defaultPaginatorState = {
|
|
5673
|
+
page: 1,
|
|
5674
|
+
pageSize: 10,
|
|
5675
|
+
pageSizeSet: [10, 20, 50],
|
|
5676
|
+
total: 0,
|
|
5677
|
+
};
|
|
5678
|
+
this.paginatorState = this.defaultPaginatorState;
|
|
5679
|
+
}
|
|
5680
|
+
initPaginator(widget) {
|
|
5681
|
+
this.widget = widget;
|
|
5682
|
+
this.setPaginatorState();
|
|
5683
|
+
}
|
|
5684
|
+
applyFilters() {
|
|
5685
|
+
this.widget.dataSource.applyFilters();
|
|
5686
|
+
}
|
|
5687
|
+
registerPaginator() {
|
|
5688
|
+
if (this.widget.dataSource) {
|
|
5689
|
+
this.widget.dataSource.registerComponent({
|
|
5690
|
+
paginator: {
|
|
5691
|
+
componentInstance: this.widget.paginator,
|
|
5692
|
+
},
|
|
5693
|
+
});
|
|
5694
|
+
}
|
|
5695
|
+
}
|
|
5696
|
+
deregisterPaginator() {
|
|
5697
|
+
if (this.widget.dataSource) {
|
|
5698
|
+
this.widget.dataSource.deregisterComponent?.("paginator");
|
|
5699
|
+
}
|
|
5700
|
+
}
|
|
5701
|
+
setPaginatorState() {
|
|
5702
|
+
const paginatorConfiguration = this.widget.configuration?.paginatorConfiguration;
|
|
5703
|
+
if (this.widget.hasPaginator) {
|
|
5704
|
+
this.paginatorState.pageSize =
|
|
5705
|
+
paginatorConfiguration?.pageSize ??
|
|
5706
|
+
this.defaultPaginatorState.pageSize;
|
|
5707
|
+
this.paginatorState.pageSizeSet =
|
|
5708
|
+
paginatorConfiguration?.pageSizeSet ??
|
|
5709
|
+
this.defaultPaginatorState.pageSizeSet;
|
|
5710
|
+
this.widget.dataSource.outputsSubject.subscribe((data) => {
|
|
5711
|
+
this.paginatorState.total = data.paginator?.total ?? 0;
|
|
5712
|
+
});
|
|
5713
|
+
// When changing page size from configurator, this will force preview update
|
|
5714
|
+
if (this.widget.paginator) {
|
|
5715
|
+
const pageSize = {
|
|
5716
|
+
oldValue: 0,
|
|
5717
|
+
newValue: this.paginatorState.pageSize,
|
|
5718
|
+
};
|
|
5719
|
+
this.widget.paginator.setItemsPerPage(pageSize);
|
|
5720
|
+
}
|
|
5721
|
+
this.registerPaginator();
|
|
5722
|
+
}
|
|
5723
|
+
else {
|
|
5724
|
+
this.deregisterPaginator();
|
|
5725
|
+
}
|
|
5726
|
+
}
|
|
5727
|
+
}
|
|
5728
|
+
/** @nocollapse */ PaginatorFeatureAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaginatorFeatureAddonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5729
|
+
/** @nocollapse */ PaginatorFeatureAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaginatorFeatureAddonService });
|
|
5730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PaginatorFeatureAddonService, decorators: [{
|
|
5731
|
+
type: Injectable
|
|
5732
|
+
}] });
|
|
5733
|
+
|
|
5584
5734
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
5585
5735
|
/**
|
|
5586
5736
|
* @ignore
|
|
@@ -5607,7 +5757,13 @@ class TableWidgetComponent {
|
|
|
5607
5757
|
this.dataSource?.features?.getFeatureConfig(WellKnownDataSourceFeatures.Interactivity)?.enabled ??
|
|
5608
5758
|
false);
|
|
5609
5759
|
}
|
|
5610
|
-
|
|
5760
|
+
get clickableRow() {
|
|
5761
|
+
const configuration = this.configuration?.selectionConfiguration;
|
|
5762
|
+
return (!!configuration?.enabled &&
|
|
5763
|
+
(configuration.clickableRow ||
|
|
5764
|
+
configuration.selectionMode === TableSelectionMode.Single));
|
|
5765
|
+
}
|
|
5766
|
+
constructor(eventBus, dataSource, widgetConfigurationService, changeDetector, pizzagnaService, viewportManager, zone, el, logger, searchAddon, paginatorAddon, virtualScrollAddon, formattersRegistryService) {
|
|
5611
5767
|
this.eventBus = eventBus;
|
|
5612
5768
|
this.dataSource = dataSource;
|
|
5613
5769
|
this.widgetConfigurationService = widgetConfigurationService;
|
|
@@ -5618,6 +5774,7 @@ class TableWidgetComponent {
|
|
|
5618
5774
|
this.el = el;
|
|
5619
5775
|
this.logger = logger;
|
|
5620
5776
|
this.searchAddon = searchAddon;
|
|
5777
|
+
this.paginatorAddon = paginatorAddon;
|
|
5621
5778
|
this.virtualScrollAddon = virtualScrollAddon;
|
|
5622
5779
|
this.formattersRegistryService = formattersRegistryService;
|
|
5623
5780
|
// 70 px stands for widget header and margins
|
|
@@ -5627,7 +5784,7 @@ class TableWidgetComponent {
|
|
|
5627
5784
|
this.tableData = [];
|
|
5628
5785
|
this.columns = [];
|
|
5629
5786
|
this.columnsWidthMap = new Map();
|
|
5630
|
-
this.
|
|
5787
|
+
this.scrollType = ScrollType.virtual;
|
|
5631
5788
|
this.isSearchEnabled = false;
|
|
5632
5789
|
this.searchTerm$ = new Subject();
|
|
5633
5790
|
this.onDestroy$ = new Subject();
|
|
@@ -5670,22 +5827,28 @@ class TableWidgetComponent {
|
|
|
5670
5827
|
};
|
|
5671
5828
|
this.onSortOrderChanged(sortedColumn);
|
|
5672
5829
|
}
|
|
5673
|
-
|
|
5674
|
-
if (this.hasVirtualScroll !== newHasVirtualScroll) {
|
|
5675
|
-
this.hasVirtualScroll = newHasVirtualScroll;
|
|
5676
|
-
this.virtualScrollAddon.initVirtualScroll();
|
|
5677
|
-
}
|
|
5830
|
+
this.resolveScrollType(changes);
|
|
5678
5831
|
}
|
|
5679
5832
|
if (changes.totalItems) {
|
|
5680
5833
|
this.totalPages = Math.floor((this.totalItems ?? 0) / this.range);
|
|
5681
5834
|
}
|
|
5682
5835
|
}
|
|
5836
|
+
resolveScrollType(changes) {
|
|
5837
|
+
// Since removing "hasVirtualScroll" from configuration would cause breaking changes, it is used as primary source of truth
|
|
5838
|
+
const newHasVirtualScroll = get(changes, "configuration.currentValue.hasVirtualScroll", true);
|
|
5839
|
+
const scrollType = get(changes, "configuration.currentValue.scrollType", ScrollType.virtual);
|
|
5840
|
+
this.scrollType = newHasVirtualScroll ? ScrollType.virtual : scrollType;
|
|
5841
|
+
this.virtualScrollAddon.initVirtualScroll(this);
|
|
5842
|
+
this.paginatorAddon.initPaginator(this);
|
|
5843
|
+
if (this.scrollTypeChanged(changes.configuration)) {
|
|
5844
|
+
this.dataSource.applyFilters();
|
|
5845
|
+
}
|
|
5846
|
+
}
|
|
5683
5847
|
ngOnInit() {
|
|
5684
5848
|
if (this.dataSource) {
|
|
5685
5849
|
// Since the sortFilter is not initialized, we have to retrieve and set the correct filter value from the configuration before registering it
|
|
5686
5850
|
this.setSortFilter();
|
|
5687
5851
|
this.registerSorter();
|
|
5688
|
-
this.virtualScrollAddon.initWidget(this);
|
|
5689
5852
|
}
|
|
5690
5853
|
}
|
|
5691
5854
|
ngAfterViewInit() {
|
|
@@ -5697,8 +5860,9 @@ class TableWidgetComponent {
|
|
|
5697
5860
|
// eslint-disable-next-line import/no-deprecated
|
|
5698
5861
|
tap((isBusy) => (this.isBusy = isBusy)), takeUntil(this.onDestroy$))
|
|
5699
5862
|
.subscribe();
|
|
5700
|
-
this.virtualScrollAddon.initVirtualScroll();
|
|
5863
|
+
this.virtualScrollAddon.initVirtualScroll(this);
|
|
5701
5864
|
this.searchAddon.initWidget(this);
|
|
5865
|
+
this.paginatorAddon.initPaginator(this);
|
|
5702
5866
|
const tableHeightChanged$ = this.eventBus
|
|
5703
5867
|
.getStream(WIDGET_RESIZE)
|
|
5704
5868
|
.pipe(filter((event) => event.payload?.widgetId?.toString() ===
|
|
@@ -5751,8 +5915,12 @@ class TableWidgetComponent {
|
|
|
5751
5915
|
? columnsCondition
|
|
5752
5916
|
: columnsCondition && dataCondition;
|
|
5753
5917
|
}
|
|
5754
|
-
dataTrackBy(
|
|
5755
|
-
|
|
5918
|
+
dataTrackBy() {
|
|
5919
|
+
const configuration = this?.configuration?.selectionConfiguration;
|
|
5920
|
+
const trackByProperty = (configuration?.enabled && configuration.trackByProperty) || "id";
|
|
5921
|
+
// we are returning a function here because the scope of "this" changes once it's passed
|
|
5922
|
+
// to the table component and are therefore unable to access the configuration in its body
|
|
5923
|
+
return (index, item) => item ? item[trackByProperty] : index;
|
|
5756
5924
|
}
|
|
5757
5925
|
columnTrackBy(index, item) {
|
|
5758
5926
|
return item.id;
|
|
@@ -5857,8 +6025,14 @@ class TableWidgetComponent {
|
|
|
5857
6025
|
this.flushTableData();
|
|
5858
6026
|
this.eventBus.getStream(REFRESH).next({});
|
|
5859
6027
|
}
|
|
6028
|
+
onSelectionChange(event) {
|
|
6029
|
+
this.eventBus.getStream(SELECTION).next({ payload: event });
|
|
6030
|
+
}
|
|
5860
6031
|
onInteraction(row, event) {
|
|
5861
|
-
if (!this.interactive
|
|
6032
|
+
if (!this.interactive ||
|
|
6033
|
+
this.configuration.selectionConfiguration?.enabled) {
|
|
6034
|
+
// allowing interactive and selection at the same time would trigger both
|
|
6035
|
+
// events when clicking on a row (not checkbox/radio)
|
|
5862
6036
|
return;
|
|
5863
6037
|
}
|
|
5864
6038
|
const ignoredSelectors = this.configuration.interactionIgnoredSelectors ||
|
|
@@ -5898,6 +6072,12 @@ class TableWidgetComponent {
|
|
|
5898
6072
|
return (this.formatters.items[column.formatter.componentType]?.alignment ||
|
|
5899
6073
|
this.defaultColumnAlignment);
|
|
5900
6074
|
}
|
|
6075
|
+
get hasVirtualScroll() {
|
|
6076
|
+
return this.scrollType === ScrollType.virtual;
|
|
6077
|
+
}
|
|
6078
|
+
get hasPaginator() {
|
|
6079
|
+
return this.scrollType === ScrollType.paginator;
|
|
6080
|
+
}
|
|
5901
6081
|
setSortFilter() {
|
|
5902
6082
|
if (this.configuration) {
|
|
5903
6083
|
const sortBy = this.configuration.sorterConfiguration?.sortBy;
|
|
@@ -5965,6 +6145,11 @@ class TableWidgetComponent {
|
|
|
5965
6145
|
this.idle = true;
|
|
5966
6146
|
this.tableData = [];
|
|
5967
6147
|
}
|
|
6148
|
+
scrollTypeChanged(configurationChange) {
|
|
6149
|
+
return (!!configurationChange.previousValue &&
|
|
6150
|
+
configurationChange.previousValue.scrollType !==
|
|
6151
|
+
configurationChange.currentValue.scrollType);
|
|
6152
|
+
}
|
|
5968
6153
|
getTableScrollRange() {
|
|
5969
6154
|
// Note: To work properly virtual viewport should be scrollable
|
|
5970
6155
|
// to ensure that container will be scrollable we're adding 50% more items
|
|
@@ -5984,15 +6169,23 @@ class TableWidgetComponent {
|
|
|
5984
6169
|
}
|
|
5985
6170
|
}
|
|
5986
6171
|
TableWidgetComponent.lateLoadKey = "TableWidgetComponent";
|
|
5987
|
-
/** @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 });
|
|
5988
|
-
/** @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 });
|
|
6172
|
+
/** @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 });
|
|
6173
|
+
/** @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: [
|
|
6174
|
+
SearchFeatureAddonService,
|
|
6175
|
+
VirtualScrollFeatureAddonService,
|
|
6176
|
+
PaginatorFeatureAddonService,
|
|
6177
|
+
], 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 });
|
|
5989
6178
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableWidgetComponent, decorators: [{
|
|
5990
6179
|
type: Component,
|
|
5991
|
-
args: [{ selector: "nui-table-widget", changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
6180
|
+
args: [{ selector: "nui-table-widget", changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
6181
|
+
SearchFeatureAddonService,
|
|
6182
|
+
VirtualScrollFeatureAddonService,
|
|
6183
|
+
PaginatorFeatureAddonService,
|
|
6184
|
+
], host: {
|
|
5992
6185
|
// Note: Moved here from configuration to ensure that consumers will not override it.
|
|
5993
6186
|
// Used to prevent table overflowing preview container in the edit/configuration mode.
|
|
5994
6187
|
"[class.table-widget-fullwidth]": "true",
|
|
5995
|
-
}, 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"] }]
|
|
6188
|
+
}, 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"] }]
|
|
5996
6189
|
}], ctorParameters: function () { return [{ type: i2.EventBus, decorators: [{
|
|
5997
6190
|
type: Inject,
|
|
5998
6191
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -6003,7 +6196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
6003
6196
|
args: [DATA_SOURCE]
|
|
6004
6197
|
}] }, { type: WidgetConfigurationService, decorators: [{
|
|
6005
6198
|
type: Optional
|
|
6006
|
-
}] }, { type: i0.ChangeDetectorRef }, { type: PizzagnaService }, { type: i2.VirtualViewportManager }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i2.LoggerService }, { type: SearchFeatureAddonService }, { type: VirtualScrollFeatureAddonService }, { type: TableFormatterRegistryService }]; }, propDecorators: { widgetData: [{
|
|
6199
|
+
}] }, { 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 }]; }, propDecorators: { widgetData: [{
|
|
6007
6200
|
type: Input
|
|
6008
6201
|
}], componentId: [{
|
|
6009
6202
|
type: Input
|
|
@@ -6029,6 +6222,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
6029
6222
|
}], table: [{
|
|
6030
6223
|
type: ViewChild,
|
|
6031
6224
|
args: ["widgetTable"]
|
|
6225
|
+
}], paginator: [{
|
|
6226
|
+
type: ViewChild,
|
|
6227
|
+
args: ["paginator"]
|
|
6032
6228
|
}], vscrollViewport: [{
|
|
6033
6229
|
type: ViewChild,
|
|
6034
6230
|
args: [CdkVirtualScrollViewport]
|
|
@@ -9941,7 +10137,7 @@ class DashwizStepComponent {
|
|
|
9941
10137
|
}
|
|
9942
10138
|
}
|
|
9943
10139
|
/** @nocollapse */ DashwizStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DashwizStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9944
|
-
/** @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:
|
|
10140
|
+
/** @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"] }] });
|
|
9945
10141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DashwizStepComponent, decorators: [{
|
|
9946
10142
|
type: Component,
|
|
9947
10143
|
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"] }]
|
|
@@ -10681,6 +10877,7 @@ class WidgetEditorAccordionComponent {
|
|
|
10681
10877
|
this.cd = cd;
|
|
10682
10878
|
this.showOpenStateIcon = true;
|
|
10683
10879
|
this.state = AccordionState.DEFAULT;
|
|
10880
|
+
this.openToggle = new EventEmitter();
|
|
10684
10881
|
this.open = false;
|
|
10685
10882
|
this.openSubject = new Subject();
|
|
10686
10883
|
this.destroySubject = new Subject();
|
|
@@ -10689,6 +10886,7 @@ class WidgetEditorAccordionComponent {
|
|
|
10689
10886
|
this.accordionCoordinator.registerAccordion(this);
|
|
10690
10887
|
}
|
|
10691
10888
|
openChange(isOpened) {
|
|
10889
|
+
this.openToggle.emit(isOpened);
|
|
10692
10890
|
if (isOpened) {
|
|
10693
10891
|
this.openSubject.next();
|
|
10694
10892
|
}
|
|
@@ -10706,7 +10904,7 @@ class WidgetEditorAccordionComponent {
|
|
|
10706
10904
|
}
|
|
10707
10905
|
}
|
|
10708
10906
|
/** @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 });
|
|
10709
|
-
/** @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 });
|
|
10907
|
+
/** @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 });
|
|
10710
10908
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: WidgetEditorAccordionComponent, decorators: [{
|
|
10711
10909
|
type: Component,
|
|
10712
10910
|
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"] }]
|
|
@@ -10714,6 +10912,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
10714
10912
|
type: Input
|
|
10715
10913
|
}], state: [{
|
|
10716
10914
|
type: Input
|
|
10915
|
+
}], openToggle: [{
|
|
10916
|
+
type: Output
|
|
10717
10917
|
}] } });
|
|
10718
10918
|
|
|
10719
10919
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
@@ -11062,7 +11262,7 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
11062
11262
|
}
|
|
11063
11263
|
BackgroundColorRulesConfigurationComponent.lateLoadKey = "BackgroundColorRulesConfigurationComponent";
|
|
11064
11264
|
/** @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 });
|
|
11065
|
-
/** @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 });
|
|
11265
|
+
/** @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 });
|
|
11066
11266
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, decorators: [{
|
|
11067
11267
|
type: Component,
|
|
11068
11268
|
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"] }]
|
|
@@ -11261,7 +11461,7 @@ class DataSourceConfigurationV2Component {
|
|
|
11261
11461
|
}
|
|
11262
11462
|
DataSourceConfigurationV2Component.lateLoadKey = "DataSourceConfigurationV2Component";
|
|
11263
11463
|
/** @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 });
|
|
11264
|
-
/** @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 });
|
|
11464
|
+
/** @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 });
|
|
11265
11465
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataSourceConfigurationV2Component, decorators: [{
|
|
11266
11466
|
type: Component,
|
|
11267
11467
|
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"] }]
|
|
@@ -11374,7 +11574,7 @@ class DataSourceConfigurationComponent {
|
|
|
11374
11574
|
}
|
|
11375
11575
|
DataSourceConfigurationComponent.lateLoadKey = "DataSourceConfigurationComponent";
|
|
11376
11576
|
/** @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 });
|
|
11377
|
-
/** @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 });
|
|
11577
|
+
/** @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 });
|
|
11378
11578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataSourceConfigurationComponent, decorators: [{
|
|
11379
11579
|
type: Component,
|
|
11380
11580
|
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"] }]
|
|
@@ -11498,7 +11698,7 @@ class EmbeddedContentConfigurationComponent {
|
|
|
11498
11698
|
}
|
|
11499
11699
|
EmbeddedContentConfigurationComponent.lateLoadKey = "EmbeddedContentConfigurationComponent";
|
|
11500
11700
|
/** @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 });
|
|
11501
|
-
/** @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 });
|
|
11701
|
+
/** @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 });
|
|
11502
11702
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmbeddedContentConfigurationComponent, decorators: [{
|
|
11503
11703
|
type: Component,
|
|
11504
11704
|
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"] }]
|
|
@@ -11588,7 +11788,7 @@ class KpiDescriptionConfigurationComponent {
|
|
|
11588
11788
|
}
|
|
11589
11789
|
KpiDescriptionConfigurationComponent.lateLoadKey = "KpiDescriptionConfigurationComponent";
|
|
11590
11790
|
/** @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 });
|
|
11591
|
-
/** @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 });
|
|
11791
|
+
/** @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 });
|
|
11592
11792
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: KpiDescriptionConfigurationComponent, decorators: [{
|
|
11593
11793
|
type: Component,
|
|
11594
11794
|
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"] }]
|
|
@@ -11973,7 +12173,7 @@ class RefresherConfigurationComponent {
|
|
|
11973
12173
|
}
|
|
11974
12174
|
RefresherConfigurationComponent.lateLoadKey = "RefresherConfigurationComponent";
|
|
11975
12175
|
/** @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 });
|
|
11976
|
-
/** @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" }] });
|
|
12176
|
+
/** @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" }] });
|
|
11977
12177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RefresherConfigurationComponent, decorators: [{
|
|
11978
12178
|
type: Component,
|
|
11979
12179
|
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"] }]
|
|
@@ -12053,7 +12253,7 @@ class RiskScoreTileDescriptionConfigurationComponent {
|
|
|
12053
12253
|
}
|
|
12054
12254
|
RiskScoreTileDescriptionConfigurationComponent.lateLoadKey = "RiskScoreTileDescriptionConfigurationComponent";
|
|
12055
12255
|
/** @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 });
|
|
12056
|
-
/** @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 });
|
|
12256
|
+
/** @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 });
|
|
12057
12257
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, decorators: [{
|
|
12058
12258
|
type: Component,
|
|
12059
12259
|
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"] }]
|
|
@@ -12201,7 +12401,7 @@ class ThresholdsConfigurationComponent {
|
|
|
12201
12401
|
}
|
|
12202
12402
|
ThresholdsConfigurationComponent.lateLoadKey = "ThresholdsConfigurationComponent";
|
|
12203
12403
|
/** @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 });
|
|
12204
|
-
/** @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 });
|
|
12404
|
+
/** @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 });
|
|
12205
12405
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ThresholdsConfigurationComponent, decorators: [{
|
|
12206
12406
|
type: Component,
|
|
12207
12407
|
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"] }]
|
|
@@ -12306,7 +12506,7 @@ class TimeseriesMetadataConfigurationComponent {
|
|
|
12306
12506
|
}
|
|
12307
12507
|
TimeseriesMetadataConfigurationComponent.lateLoadKey = "TimeseriesMetadataConfigurationComponent";
|
|
12308
12508
|
/** @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 });
|
|
12309
|
-
/** @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" }] });
|
|
12509
|
+
/** @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" }] });
|
|
12310
12510
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesMetadataConfigurationComponent, decorators: [{
|
|
12311
12511
|
type: Component,
|
|
12312
12512
|
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"] }]
|
|
@@ -12375,7 +12575,7 @@ class TitleAndDescriptionConfigurationComponent {
|
|
|
12375
12575
|
}
|
|
12376
12576
|
TitleAndDescriptionConfigurationComponent.lateLoadKey = "TitleAndDescriptionConfigurationComponent";
|
|
12377
12577
|
/** @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 });
|
|
12378
|
-
/** @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 });
|
|
12578
|
+
/** @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 });
|
|
12379
12579
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TitleAndDescriptionConfigurationComponent, decorators: [{
|
|
12380
12580
|
type: Component,
|
|
12381
12581
|
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"] }]
|
|
@@ -12423,7 +12623,7 @@ class EntityFormattingConfigurationComponent {
|
|
|
12423
12623
|
}
|
|
12424
12624
|
EntityFormattingConfigurationComponent.lateLoadKey = "EntityFormattingComponent";
|
|
12425
12625
|
/** @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 });
|
|
12426
|
-
/** @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" }] });
|
|
12626
|
+
/** @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" }] });
|
|
12427
12627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EntityFormattingConfigurationComponent, decorators: [{
|
|
12428
12628
|
type: Component,
|
|
12429
12629
|
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"] }]
|
|
@@ -12541,7 +12741,7 @@ class GroupingConfigurationComponent {
|
|
|
12541
12741
|
}
|
|
12542
12742
|
GroupingConfigurationComponent.lateLoadKey = "DrilldownConfiguratorComponent";
|
|
12543
12743
|
/** @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 });
|
|
12544
|
-
/** @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 });
|
|
12744
|
+
/** @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 });
|
|
12545
12745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GroupingConfigurationComponent, decorators: [{
|
|
12546
12746
|
type: Component,
|
|
12547
12747
|
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"] }]
|
|
@@ -12776,7 +12976,7 @@ class ProportionalChartOptionsEditorV2Component {
|
|
|
12776
12976
|
}
|
|
12777
12977
|
ProportionalChartOptionsEditorV2Component.lateLoadKey = "ProportionalChartOptionsEditorV2Component";
|
|
12778
12978
|
/** @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 });
|
|
12779
|
-
/** @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 });
|
|
12979
|
+
/** @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 });
|
|
12780
12980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalChartOptionsEditorV2Component, decorators: [{
|
|
12781
12981
|
type: Component,
|
|
12782
12982
|
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"] }]
|
|
@@ -12904,7 +13104,7 @@ class ProportionalChartOptionsEditorComponent {
|
|
|
12904
13104
|
}
|
|
12905
13105
|
ProportionalChartOptionsEditorComponent.lateLoadKey = "ProportionalChartOptionsEditorComponent";
|
|
12906
13106
|
/** @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 });
|
|
12907
|
-
/** @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 });
|
|
13107
|
+
/** @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 });
|
|
12908
13108
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ProportionalChartOptionsEditorComponent, decorators: [{
|
|
12909
13109
|
type: Component,
|
|
12910
13110
|
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"] }]
|
|
@@ -13037,7 +13237,7 @@ class DonutContentConfigurationComponent {
|
|
|
13037
13237
|
}
|
|
13038
13238
|
DonutContentConfigurationComponent.lateLoadKey = "DonutContentConfigurationComponent";
|
|
13039
13239
|
/** @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 });
|
|
13040
|
-
/** @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 });
|
|
13240
|
+
/** @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 });
|
|
13041
13241
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DonutContentConfigurationComponent, decorators: [{
|
|
13042
13242
|
type: Component,
|
|
13043
13243
|
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"] }]
|
|
@@ -13221,7 +13421,7 @@ DescriptionConfigurationV2Component.lateLoadKey = "DescriptionConfigurationV2Com
|
|
|
13221
13421
|
useExisting: forwardRef((() => DescriptionConfigurationV2Component)),
|
|
13222
13422
|
multi: true,
|
|
13223
13423
|
},
|
|
13224
|
-
], 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 });
|
|
13424
|
+
], 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 });
|
|
13225
13425
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DescriptionConfigurationV2Component, decorators: [{
|
|
13226
13426
|
type: Component,
|
|
13227
13427
|
args: [{ selector: "nui-description-configuration-v2", changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
@@ -13502,7 +13702,7 @@ PresentationConfigurationV2Component.lateLoadKey = "PresentationConfigurationV2C
|
|
|
13502
13702
|
useExisting: forwardRef((() => PresentationConfigurationV2Component)),
|
|
13503
13703
|
multi: true,
|
|
13504
13704
|
},
|
|
13505
|
-
], 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: [
|
|
13705
|
+
], 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: [
|
|
13506
13706
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
13507
13707
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13508
13708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PresentationConfigurationV2Component, decorators: [{
|
|
@@ -13879,7 +14079,7 @@ class DescriptionConfigurationComponent {
|
|
|
13879
14079
|
}
|
|
13880
14080
|
DescriptionConfigurationComponent.lateLoadKey = "DescriptionConfigurationComponent";
|
|
13881
14081
|
/** @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 });
|
|
13882
|
-
/** @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 });
|
|
14082
|
+
/** @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 });
|
|
13883
14083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DescriptionConfigurationComponent, decorators: [{
|
|
13884
14084
|
type: Component,
|
|
13885
14085
|
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"] }]
|
|
@@ -14222,7 +14422,7 @@ class PresentationConfigurationComponent {
|
|
|
14222
14422
|
}
|
|
14223
14423
|
PresentationConfigurationComponent.lateLoadKey = "PresentationConfigurationComponent";
|
|
14224
14424
|
/** @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 });
|
|
14225
|
-
/** @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: [
|
|
14425
|
+
/** @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: [
|
|
14226
14426
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
14227
14427
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14228
14428
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PresentationConfigurationComponent, decorators: [{
|
|
@@ -14556,7 +14756,7 @@ class TableFiltersEditorComponent {
|
|
|
14556
14756
|
}
|
|
14557
14757
|
TableFiltersEditorComponent.lateLoadKey = "TableFiltersEditorComponent";
|
|
14558
14758
|
/** @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 });
|
|
14559
|
-
/** @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 });
|
|
14759
|
+
/** @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 });
|
|
14560
14760
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableFiltersEditorComponent, decorators: [{
|
|
14561
14761
|
type: Component,
|
|
14562
14762
|
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"] }]
|
|
@@ -14678,7 +14878,7 @@ class TimeseriesTileDescriptionConfigurationComponent {
|
|
|
14678
14878
|
}
|
|
14679
14879
|
TimeseriesTileDescriptionConfigurationComponent.lateLoadKey = "TimeseriesTileDescriptionConfigurationComponent";
|
|
14680
14880
|
/** @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 });
|
|
14681
|
-
/** @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 });
|
|
14881
|
+
/** @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 });
|
|
14682
14882
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesTileDescriptionConfigurationComponent, decorators: [{
|
|
14683
14883
|
type: Component,
|
|
14684
14884
|
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"] }]
|
|
@@ -14744,7 +14944,7 @@ class TimeseriesTileIndicatorDataConfigurationComponent {
|
|
|
14744
14944
|
}
|
|
14745
14945
|
TimeseriesTileIndicatorDataConfigurationComponent.lateLoadKey = "TimeseriesTileIndicatorDataConfigurationComponent";
|
|
14746
14946
|
/** @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 });
|
|
14747
|
-
/** @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 });
|
|
14947
|
+
/** @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 });
|
|
14748
14948
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeseriesTileIndicatorDataConfigurationComponent, decorators: [{
|
|
14749
14949
|
type: Component,
|
|
14750
14950
|
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"] }]
|
|
@@ -14962,6 +15162,204 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
14962
15162
|
|
|
14963
15163
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14964
15164
|
|
|
15165
|
+
class ScrollTypeEditorService {
|
|
15166
|
+
constructor() {
|
|
15167
|
+
this.loadStrategies = [
|
|
15168
|
+
{
|
|
15169
|
+
id: ScrollType.virtual,
|
|
15170
|
+
title: $localize `Virtual scroll`,
|
|
15171
|
+
},
|
|
15172
|
+
{
|
|
15173
|
+
id: ScrollType.paginator,
|
|
15174
|
+
title: $localize `Paginator`,
|
|
15175
|
+
},
|
|
15176
|
+
{
|
|
15177
|
+
id: ScrollType.default,
|
|
15178
|
+
title: $localize `Default scroll`,
|
|
15179
|
+
},
|
|
15180
|
+
];
|
|
15181
|
+
}
|
|
15182
|
+
setAccordionSubtitleValues(hasVirtualScroll, scrollType) {
|
|
15183
|
+
const prefix = $localize `Scroll Type: `;
|
|
15184
|
+
const result = hasVirtualScroll
|
|
15185
|
+
? `${prefix} ${this.getScrollTypeTitle(ScrollType.virtual)}`
|
|
15186
|
+
: `${prefix} ${this.getScrollTypeTitle(scrollType)}`;
|
|
15187
|
+
return result;
|
|
15188
|
+
}
|
|
15189
|
+
getScrollTypeTitle(scrollType) {
|
|
15190
|
+
const result = this.loadStrategies.find((ls) => ls.id === scrollType)?.title ||
|
|
15191
|
+
$localize `Unknown`;
|
|
15192
|
+
return result;
|
|
15193
|
+
}
|
|
15194
|
+
}
|
|
15195
|
+
/** @nocollapse */ ScrollTypeEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ScrollTypeEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15196
|
+
/** @nocollapse */ ScrollTypeEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ScrollTypeEditorService });
|
|
15197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ScrollTypeEditorService, decorators: [{
|
|
15198
|
+
type: Injectable
|
|
15199
|
+
}] });
|
|
15200
|
+
|
|
15201
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
15202
|
+
class TableScrollTypeEditorComponent {
|
|
15203
|
+
constructor(formBuilder, configuratorHeading, changeDetector, scrollTypeEditorService) {
|
|
15204
|
+
this.formBuilder = formBuilder;
|
|
15205
|
+
this.configuratorHeading = configuratorHeading;
|
|
15206
|
+
this.changeDetector = changeDetector;
|
|
15207
|
+
this.scrollTypeEditorService = scrollTypeEditorService;
|
|
15208
|
+
this.scrollType = ScrollType.virtual;
|
|
15209
|
+
this.formReady = new EventEmitter();
|
|
15210
|
+
this.onDestroy$ = new Subject();
|
|
15211
|
+
this.pageSizeSetAll = [
|
|
15212
|
+
5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100,
|
|
15213
|
+
];
|
|
15214
|
+
this.pageSizeSetOptions = [];
|
|
15215
|
+
this.pageSizeOptions = [];
|
|
15216
|
+
this.subtitle = "";
|
|
15217
|
+
this.isExpanderOpen = false;
|
|
15218
|
+
this.displayPageSizeSetErrorMessage = false;
|
|
15219
|
+
this.displayPageSizeErrorMessage = false;
|
|
15220
|
+
this.updatePaginatorSelectOptions(this.pageSizeSetAll, false);
|
|
15221
|
+
}
|
|
15222
|
+
ngOnChanges(changes) {
|
|
15223
|
+
if (changes.scrollType) {
|
|
15224
|
+
this.scrollTypeFormControl?.setValue(this.scrollType, {
|
|
15225
|
+
emitEvent: false,
|
|
15226
|
+
});
|
|
15227
|
+
this.changeExpanderState(false);
|
|
15228
|
+
this.updateSubtitle();
|
|
15229
|
+
this.updateValidators();
|
|
15230
|
+
}
|
|
15231
|
+
if (changes.paginatorConfiguration) {
|
|
15232
|
+
this.updatePaginatorSelectOptions(this.paginatorConfiguration.pageSizeSet || [], true);
|
|
15233
|
+
this.updateDefaultPageSizeOptions(this.paginatorConfiguration.pageSizeSet || []);
|
|
15234
|
+
this.pageSizeSetFormControl?.setValue(this.paginatorConfiguration.pageSizeSet, {
|
|
15235
|
+
emitEvent: false,
|
|
15236
|
+
});
|
|
15237
|
+
this.pageSizeFormControl?.setValue(this.paginatorConfiguration.pageSize, {
|
|
15238
|
+
emitEvent: true,
|
|
15239
|
+
});
|
|
15240
|
+
}
|
|
15241
|
+
this.changeDetector.detectChanges();
|
|
15242
|
+
}
|
|
15243
|
+
ngOnInit() {
|
|
15244
|
+
this.form = this.formBuilder.group({
|
|
15245
|
+
paginatorConfiguration: this.formBuilder.group({
|
|
15246
|
+
scrollType: get(this.scrollType, "", ScrollType.virtual),
|
|
15247
|
+
pageSize: get(this.paginatorConfiguration, "pageSize", 10),
|
|
15248
|
+
pageSizeSet: new FormControl(get(this.paginatorConfiguration, "pageSizeSet", [10, 20, 50])),
|
|
15249
|
+
}),
|
|
15250
|
+
});
|
|
15251
|
+
this.scrollTypeFormControl = this.form
|
|
15252
|
+
.get("paginatorConfiguration")
|
|
15253
|
+
?.get("scrollType");
|
|
15254
|
+
this.pageSizeSetFormControl = this.form
|
|
15255
|
+
.get("paginatorConfiguration")
|
|
15256
|
+
?.get("pageSizeSet");
|
|
15257
|
+
this.pageSizeFormControl = this.form
|
|
15258
|
+
.get("paginatorConfiguration")
|
|
15259
|
+
?.get("pageSize");
|
|
15260
|
+
this.form.valueChanges
|
|
15261
|
+
.pipe(takeUntil(this.onDestroy$))
|
|
15262
|
+
.subscribe((val) => {
|
|
15263
|
+
this.displayPageSizeErrorMessage =
|
|
15264
|
+
!val.paginatorConfiguration.pageSize;
|
|
15265
|
+
});
|
|
15266
|
+
this.updateSubtitle();
|
|
15267
|
+
this.scrollTypeFormControl?.valueChanges
|
|
15268
|
+
.pipe(takeUntil(this.onDestroy$))
|
|
15269
|
+
.subscribe((val) => {
|
|
15270
|
+
this.updateSubtitle();
|
|
15271
|
+
this.updateValidators();
|
|
15272
|
+
});
|
|
15273
|
+
this.formReady.emit(this.form);
|
|
15274
|
+
}
|
|
15275
|
+
onPageSizeSetChange(item) {
|
|
15276
|
+
const option = this.pageSizeSetOptions.find((n) => n.value === item.value);
|
|
15277
|
+
if (option) {
|
|
15278
|
+
option.checked = !item.checked;
|
|
15279
|
+
}
|
|
15280
|
+
this.displayPageSizeSetErrorMessage =
|
|
15281
|
+
this.pageSizeSetOptions.filter((o) => o.checked).length === 0;
|
|
15282
|
+
this.emitUpdatedSelectedOptions();
|
|
15283
|
+
}
|
|
15284
|
+
get hasPaginator() {
|
|
15285
|
+
return this.scrollTypeFormControl?.value === ScrollType.paginator;
|
|
15286
|
+
}
|
|
15287
|
+
accordionToggle(isOpened) {
|
|
15288
|
+
this.changeExpanderState(false);
|
|
15289
|
+
}
|
|
15290
|
+
changeExpanderState(isOpen) {
|
|
15291
|
+
this.isExpanderOpen = isOpen;
|
|
15292
|
+
}
|
|
15293
|
+
updateSubtitle() {
|
|
15294
|
+
this.subtitle = this.scrollTypeEditorService.setAccordionSubtitleValues(this.hasVirtualScroll, this.scrollTypeFormControl?.value);
|
|
15295
|
+
}
|
|
15296
|
+
updateValidators() {
|
|
15297
|
+
if (this.hasPaginator) {
|
|
15298
|
+
this.pageSizeFormControl?.addValidators(Validators.required);
|
|
15299
|
+
this.pageSizeSetFormControl?.addValidators(Validators.required);
|
|
15300
|
+
}
|
|
15301
|
+
else {
|
|
15302
|
+
this.pageSizeFormControl?.clearValidators();
|
|
15303
|
+
this.pageSizeSetFormControl?.clearValidators();
|
|
15304
|
+
}
|
|
15305
|
+
this.updatePaginatorSelectOptions(this.pageSizeSetFormControl?.value, true);
|
|
15306
|
+
this.updateDefaultPageSizeOptions(this.pageSizeSetFormControl?.value);
|
|
15307
|
+
this.pageSizeFormControl?.updateValueAndValidity();
|
|
15308
|
+
this.pageSizeSetFormControl?.updateValueAndValidity();
|
|
15309
|
+
}
|
|
15310
|
+
emitUpdatedSelectedOptions() {
|
|
15311
|
+
let filteredPageSizeSet = this.pageSizeSetOptions
|
|
15312
|
+
.filter((o) => o.checked)
|
|
15313
|
+
.map((o) => o.value);
|
|
15314
|
+
this.updateDefaultPageSizeOptions(filteredPageSizeSet);
|
|
15315
|
+
this.pageSizeSetFormControl?.setValue(filteredPageSizeSet, {
|
|
15316
|
+
emitEvent: false,
|
|
15317
|
+
});
|
|
15318
|
+
}
|
|
15319
|
+
updateDefaultPageSizeOptions(options) {
|
|
15320
|
+
this.pageSizeOptions = options;
|
|
15321
|
+
}
|
|
15322
|
+
updatePaginatorSelectOptions(options, isChecked) {
|
|
15323
|
+
this.clearPageSizeSetOptions();
|
|
15324
|
+
options.forEach((o) => {
|
|
15325
|
+
const option = this.pageSizeSetOptions.find((po) => po.value === o);
|
|
15326
|
+
if (option) {
|
|
15327
|
+
option.checked = isChecked;
|
|
15328
|
+
}
|
|
15329
|
+
else {
|
|
15330
|
+
this.pageSizeSetOptions.push({
|
|
15331
|
+
value: o,
|
|
15332
|
+
checked: isChecked,
|
|
15333
|
+
});
|
|
15334
|
+
}
|
|
15335
|
+
});
|
|
15336
|
+
}
|
|
15337
|
+
clearPageSizeSetOptions() {
|
|
15338
|
+
this.pageSizeSetOptions.forEach((option) => {
|
|
15339
|
+
option.checked = false;
|
|
15340
|
+
});
|
|
15341
|
+
}
|
|
15342
|
+
ngOnDestroy() {
|
|
15343
|
+
this.onDestroy$.next();
|
|
15344
|
+
this.onDestroy$.complete();
|
|
15345
|
+
}
|
|
15346
|
+
}
|
|
15347
|
+
TableScrollTypeEditorComponent.lateLoadKey = "TableScrollTypeEditorComponent";
|
|
15348
|
+
/** @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 });
|
|
15349
|
+
/** @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 });
|
|
15350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TableScrollTypeEditorComponent, decorators: [{
|
|
15351
|
+
type: Component,
|
|
15352
|
+
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"] }]
|
|
15353
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: ConfiguratorHeadingService }, { type: i0.ChangeDetectorRef }, { type: ScrollTypeEditorService }]; }, propDecorators: { paginatorConfiguration: [{
|
|
15354
|
+
type: Input
|
|
15355
|
+
}], hasVirtualScroll: [{
|
|
15356
|
+
type: Input
|
|
15357
|
+
}], scrollType: [{
|
|
15358
|
+
type: Input
|
|
15359
|
+
}], formReady: [{
|
|
15360
|
+
type: Output
|
|
15361
|
+
}] } });
|
|
15362
|
+
|
|
14965
15363
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
14966
15364
|
/* eslint-enable max-len */
|
|
14967
15365
|
const entryComponents$1 = [
|
|
@@ -14978,6 +15376,7 @@ const entryComponents$1 = [
|
|
|
14978
15376
|
ProportionalChartOptionsEditorComponent,
|
|
14979
15377
|
ProportionalChartOptionsEditorV2Component,
|
|
14980
15378
|
TableFiltersEditorComponent,
|
|
15379
|
+
TableScrollTypeEditorComponent,
|
|
14981
15380
|
TimeseriesMetadataConfigurationComponent,
|
|
14982
15381
|
TimeseriesSeriesCollectionConfigurationComponent,
|
|
14983
15382
|
TableColumnsConfigurationComponent,
|
|
@@ -15056,6 +15455,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15056
15455
|
ProportionalChartOptionsEditorComponent,
|
|
15057
15456
|
ProportionalChartOptionsEditorV2Component,
|
|
15058
15457
|
TableFiltersEditorComponent,
|
|
15458
|
+
TableScrollTypeEditorComponent,
|
|
15059
15459
|
TimeseriesMetadataConfigurationComponent,
|
|
15060
15460
|
TimeseriesSeriesCollectionConfigurationComponent,
|
|
15061
15461
|
TableColumnsConfigurationComponent,
|
|
@@ -15150,6 +15550,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15150
15550
|
ProportionalChartOptionsEditorComponent,
|
|
15151
15551
|
ProportionalChartOptionsEditorV2Component,
|
|
15152
15552
|
TableFiltersEditorComponent,
|
|
15553
|
+
TableScrollTypeEditorComponent,
|
|
15153
15554
|
TimeseriesMetadataConfigurationComponent,
|
|
15154
15555
|
TimeseriesSeriesCollectionConfigurationComponent,
|
|
15155
15556
|
TableColumnsConfigurationComponent,
|
|
@@ -15211,6 +15612,7 @@ class NuiDashboardConfiguratorModule {
|
|
|
15211
15612
|
KpiWidgetColorService,
|
|
15212
15613
|
TimeseriesChartPresetService,
|
|
15213
15614
|
TimeseriesScalesService,
|
|
15615
|
+
ScrollTypeEditorService,
|
|
15214
15616
|
], imports: [ScrollingModule,
|
|
15215
15617
|
NuiDashboardsCommonModule,
|
|
15216
15618
|
ReactiveFormsModule,
|
|
@@ -15288,6 +15690,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
15288
15690
|
KpiWidgetColorService,
|
|
15289
15691
|
TimeseriesChartPresetService,
|
|
15290
15692
|
TimeseriesScalesService,
|
|
15693
|
+
ScrollTypeEditorService,
|
|
15291
15694
|
],
|
|
15292
15695
|
exports: exportedDeclarations,
|
|
15293
15696
|
}]
|
|
@@ -17033,7 +17436,7 @@ const tableConfigurator = {
|
|
|
17033
17436
|
properties: {
|
|
17034
17437
|
headerText: $localize `Presentation`,
|
|
17035
17438
|
// references to other components laid out in this form
|
|
17036
|
-
nodes: ["titleAndDescription", "filters"],
|
|
17439
|
+
nodes: ["titleAndDescription", "filters", "scrollType"],
|
|
17037
17440
|
},
|
|
17038
17441
|
},
|
|
17039
17442
|
// /presentation/titleAndDescription
|
|
@@ -17046,7 +17449,7 @@ const tableConfigurator = {
|
|
|
17046
17449
|
},
|
|
17047
17450
|
},
|
|
17048
17451
|
},
|
|
17049
|
-
// /presentation/filters - configuration of built-in
|
|
17452
|
+
// /presentation/filters - !WARNING! configuration of built-in sorting, naming is obsolete
|
|
17050
17453
|
filters: {
|
|
17051
17454
|
id: "filters",
|
|
17052
17455
|
componentType: TableFiltersEditorComponent.lateLoadKey,
|
|
@@ -17056,6 +17459,16 @@ const tableConfigurator = {
|
|
|
17056
17459
|
},
|
|
17057
17460
|
},
|
|
17058
17461
|
},
|
|
17462
|
+
// /presentation/scrollType - configuration of built-in pagination
|
|
17463
|
+
scrollType: {
|
|
17464
|
+
id: "scrollType",
|
|
17465
|
+
componentType: TableScrollTypeEditorComponent.lateLoadKey,
|
|
17466
|
+
providers: {
|
|
17467
|
+
[WellKnownProviders.Converter]: {
|
|
17468
|
+
providerId: NOVA_TABLE_SCROLL_TYPE_CONVERTER,
|
|
17469
|
+
},
|
|
17470
|
+
},
|
|
17471
|
+
},
|
|
17059
17472
|
refresher: REFRESHER_CONFIGURATOR,
|
|
17060
17473
|
// /dataAndCalculations
|
|
17061
17474
|
dataAndCalculations: {
|
|
@@ -17649,7 +18062,8 @@ class NuiDashboardsModule {
|
|
|
17649
18062
|
NuiRepeatModule,
|
|
17650
18063
|
NuiRiskScoreModule,
|
|
17651
18064
|
NuiSelectModule,
|
|
17652
|
-
NuiPopoverModule
|
|
18065
|
+
NuiPopoverModule,
|
|
18066
|
+
NuiPaginatorModule], exports: [DashboardComponent,
|
|
17653
18067
|
EmbeddedContentComponent,
|
|
17654
18068
|
GridsterItemWidgetIdDirective,
|
|
17655
18069
|
KpiComponent,
|
|
@@ -17709,7 +18123,8 @@ class NuiDashboardsModule {
|
|
|
17709
18123
|
NuiRepeatModule,
|
|
17710
18124
|
NuiRiskScoreModule,
|
|
17711
18125
|
NuiSelectModule,
|
|
17712
|
-
NuiPopoverModule
|
|
18126
|
+
NuiPopoverModule,
|
|
18127
|
+
NuiPaginatorModule] });
|
|
17713
18128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NuiDashboardsModule, decorators: [{
|
|
17714
18129
|
type: NgModule,
|
|
17715
18130
|
args: [{
|
|
@@ -17739,6 +18154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
17739
18154
|
NuiRiskScoreModule,
|
|
17740
18155
|
NuiSelectModule,
|
|
17741
18156
|
NuiPopoverModule,
|
|
18157
|
+
NuiPaginatorModule,
|
|
17742
18158
|
],
|
|
17743
18159
|
declarations: dashboardComponents,
|
|
17744
18160
|
providers: [
|
|
@@ -17957,8 +18373,6 @@ function applyStatusEndpoints(timeframeFilter, filteredSeriesData, originalSerie
|
|
|
17957
18373
|
|
|
17958
18374
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17959
18375
|
|
|
17960
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17961
|
-
|
|
17962
18376
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
17963
18377
|
const DONUT_CONTENT_CONFIGURATION_SLICE = {
|
|
17964
18378
|
presentation: {
|
|
@@ -18078,5 +18492,5 @@ const DONUT_CONTENT_CONFIGURATION_SLICE = {
|
|
|
18078
18492
|
* Generated bundle index. Do not edit.
|
|
18079
18493
|
*/
|
|
18080
18494
|
|
|
18081
|
-
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 };
|
|
18495
|
+
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 };
|
|
18082
18496
|
//# sourceMappingURL=nova-ui-dashboards.mjs.map
|