@valtimo/dashboard 12.5.1 → 12.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/widget-dashboard-content/widget-dashboard-content.component.mjs +18 -10
- package/esm2022/lib/dashboard.module.mjs +7 -3
- package/esm2022/lib/data-sources/case-count/case-count.specification.mjs +5 -4
- package/esm2022/lib/data-sources/case-count/components/case-count-configuration/case-count-configuration.component.mjs +8 -6
- package/esm2022/lib/data-sources/case-counts/case-counts.specification.mjs +5 -4
- package/esm2022/lib/data-sources/case-counts/components/case-counts-configuration/case-counts-configuration.component.mjs +12 -8
- package/esm2022/lib/data-sources/case-group-by/case-group-by.module.mjs +7 -4
- package/esm2022/lib/data-sources/case-group-by/case-group-by.specification.mjs +5 -4
- package/esm2022/lib/data-sources/case-group-by/components/case-group-by-configuration/case-group-by-configuration.component.mjs +11 -8
- package/esm2022/lib/data-sources/data-sources.module.mjs +29 -0
- package/esm2022/lib/data-sources/index.mjs +2 -1
- package/esm2022/lib/data-sources/shared/conditions.mjs +22 -0
- package/esm2022/lib/data-sources/shared/index.mjs +17 -0
- package/esm2022/lib/data-sources/task-count/components/index.mjs +17 -0
- package/esm2022/lib/data-sources/task-count/components/task-count-configuration/index.mjs +17 -0
- package/esm2022/lib/data-sources/task-count/components/task-count-configuration/task-count-configuration.component.mjs +122 -0
- package/esm2022/lib/data-sources/task-count/index.mjs +20 -0
- package/esm2022/lib/data-sources/task-count/models/index.mjs +17 -0
- package/esm2022/lib/data-sources/task-count/models/task-count.model.mjs +17 -0
- package/esm2022/lib/data-sources/task-count/task-count.module.mjs +57 -0
- package/esm2022/lib/data-sources/task-count/task-count.specification.mjs +69 -0
- package/esm2022/lib/models/dashboard.model.mjs +1 -1
- package/esm2022/public_api.mjs +2 -1
- package/fesm2022/valtimo-dashboard.mjs +555 -171
- package/fesm2022/valtimo-dashboard.mjs.map +1 -1
- package/lib/components/widget-dashboard-content/widget-dashboard-content.component.d.ts +4 -1
- package/lib/components/widget-dashboard-content/widget-dashboard-content.component.d.ts.map +1 -1
- package/lib/dashboard.module.d.ts +2 -1
- package/lib/dashboard.module.d.ts.map +1 -1
- package/lib/data-sources/case-count/case-count.specification.d.ts.map +1 -1
- package/lib/data-sources/case-count/components/case-count-configuration/case-count-configuration.component.d.ts +3 -2
- package/lib/data-sources/case-count/components/case-count-configuration/case-count-configuration.component.d.ts.map +1 -1
- package/lib/data-sources/case-counts/case-counts.specification.d.ts.map +1 -1
- package/lib/data-sources/case-counts/components/case-counts-configuration/case-counts-configuration.component.d.ts +4 -3
- package/lib/data-sources/case-counts/components/case-counts-configuration/case-counts-configuration.component.d.ts.map +1 -1
- package/lib/data-sources/case-group-by/case-group-by.module.d.ts +1 -1
- package/lib/data-sources/case-group-by/case-group-by.module.d.ts.map +1 -1
- package/lib/data-sources/case-group-by/case-group-by.specification.d.ts.map +1 -1
- package/lib/data-sources/case-group-by/components/case-group-by-configuration/case-group-by-configuration.component.d.ts +4 -3
- package/lib/data-sources/case-group-by/components/case-group-by-configuration/case-group-by-configuration.component.d.ts.map +1 -1
- package/lib/data-sources/data-sources.module.d.ts +11 -0
- package/lib/data-sources/data-sources.module.d.ts.map +1 -0
- package/lib/data-sources/index.d.ts +1 -0
- package/lib/data-sources/index.d.ts.map +1 -1
- package/lib/data-sources/shared/conditions.d.ts +7 -0
- package/lib/data-sources/shared/conditions.d.ts.map +1 -0
- package/lib/data-sources/shared/index.d.ts +2 -0
- package/lib/data-sources/shared/index.d.ts.map +1 -0
- package/lib/data-sources/task-count/components/index.d.ts +2 -0
- package/lib/data-sources/task-count/components/index.d.ts.map +1 -0
- package/lib/data-sources/task-count/components/task-count-configuration/index.d.ts +2 -0
- package/lib/data-sources/task-count/components/task-count-configuration/index.d.ts.map +1 -0
- package/lib/data-sources/task-count/components/task-count-configuration/task-count-configuration.component.d.ts +36 -0
- package/lib/data-sources/task-count/components/task-count-configuration/task-count-configuration.component.d.ts.map +1 -0
- package/lib/data-sources/task-count/index.d.ts +5 -0
- package/lib/data-sources/task-count/index.d.ts.map +1 -0
- package/lib/data-sources/task-count/models/index.d.ts +2 -0
- package/lib/data-sources/task-count/models/index.d.ts.map +1 -0
- package/lib/data-sources/task-count/models/task-count.model.d.ts +6 -0
- package/lib/data-sources/task-count/models/task-count.model.d.ts.map +1 -0
- package/lib/data-sources/task-count/task-count.module.d.ts +13 -0
- package/lib/data-sources/task-count/task-count.module.d.ts.map +1 -0
- package/lib/data-sources/task-count/task-count.specification.d.ts +3 -0
- package/lib/data-sources/task-count/task-count.specification.d.ts.map +1 -0
- package/lib/models/dashboard.model.d.ts +1 -0
- package/lib/models/dashboard.model.d.ts.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -1
|
@@ -10,7 +10,7 @@ import { RouterModule } from '@angular/router';
|
|
|
10
10
|
import * as i3 from '@angular/common';
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
import * as i1$1 from '@valtimo/components';
|
|
13
|
-
import { CarbonListModule,
|
|
13
|
+
import { CarbonListModule, ValuePathSelectorPrefix, CarbonMultiInputModule, InputModule as InputModule$1, ValuePathSelectorComponent, WidgetModule, ListModule, BpmnJsDiagramModule, AlertModule, SpinnerModule } from '@valtimo/components';
|
|
14
14
|
import * as i3$1 from '@ngx-translate/core';
|
|
15
15
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
16
16
|
import Muuri from 'muuri';
|
|
@@ -19,17 +19,17 @@ import { HttpClient } from '@angular/common/http';
|
|
|
19
19
|
import * as i2$1 from '@valtimo/config';
|
|
20
20
|
import { ROLE_USER } from '@valtimo/config';
|
|
21
21
|
import * as i5 from 'carbon-components-angular';
|
|
22
|
-
import { InputModule, CheckboxModule,
|
|
22
|
+
import { InputModule, CheckboxModule, DropdownModule, ButtonModule, TilesModule, LayerModule, IconModule, TabsModule, ThemeModule, LoadingModule } from 'carbon-components-angular';
|
|
23
23
|
import * as i1$3 from '@angular/forms';
|
|
24
24
|
import { Validators, ReactiveFormsModule } from '@angular/forms';
|
|
25
25
|
import { ScaleTypes } from '@carbon/charts';
|
|
26
26
|
import * as i3$2 from '@carbon/charts-angular';
|
|
27
27
|
import { ChartsModule } from '@carbon/charts-angular';
|
|
28
|
-
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
29
|
-
import { AuthGuardService } from '@valtimo/security';
|
|
30
28
|
import * as i2$2 from '@valtimo/document';
|
|
31
29
|
import { isEqual } from 'lodash';
|
|
32
30
|
import { Add16, TrashCan16 } from '@carbon/icons';
|
|
31
|
+
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
32
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
33
33
|
|
|
34
34
|
/*
|
|
35
35
|
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
@@ -431,10 +431,11 @@ class WidgetDashboardContentComponent {
|
|
|
431
431
|
get _muuriInitialized$() {
|
|
432
432
|
return this._muuri$.pipe(map$1(muuri => !!muuri));
|
|
433
433
|
}
|
|
434
|
-
constructor(layoutService, widgetService, renderer) {
|
|
434
|
+
constructor(layoutService, widgetService, renderer, router) {
|
|
435
435
|
this.layoutService = layoutService;
|
|
436
436
|
this.widgetService = widgetService;
|
|
437
437
|
this.renderer = renderer;
|
|
438
|
+
this.router = router;
|
|
438
439
|
this._isLoading$ = new BehaviorSubject(true);
|
|
439
440
|
this._widgetData$ = new BehaviorSubject([]);
|
|
440
441
|
this.widgetConfigurations$ = new BehaviorSubject(null);
|
|
@@ -460,6 +461,12 @@ class WidgetDashboardContentComponent {
|
|
|
460
461
|
this._observer?.disconnect();
|
|
461
462
|
this._subscriptions?.unsubscribe();
|
|
462
463
|
}
|
|
464
|
+
navigateToRoute(widgetConfiguration, event) {
|
|
465
|
+
if (widgetConfiguration.url) {
|
|
466
|
+
event.preventDefault();
|
|
467
|
+
this.router.navigateByUrl(widgetConfiguration.url);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
463
470
|
setWidgetConfigurations(dashboard) {
|
|
464
471
|
this.widgetService.supportedDisplayTypes$.pipe(take(1)).subscribe(supportedDisplayTypes => {
|
|
465
472
|
const supportedWidgetConfigurations = dashboard.widgets?.filter(widgetConfiguration => supportedDisplayTypes.find(type => type.displayTypeKey === widgetConfiguration.displayType)) || [];
|
|
@@ -536,13 +543,13 @@ class WidgetDashboardContentComponent {
|
|
|
536
543
|
}));
|
|
537
544
|
this._creatingMuuri = false;
|
|
538
545
|
}
|
|
539
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WidgetDashboardContentComponent, deps: [{ token: WidgetLayoutService }, { token: WidgetService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
540
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: WidgetDashboardContentComponent, selector: "valtimo-widget-dashboard-content", inputs: { widgetData: "widgetData", dashboard: "dashboard" }, providers: [WidgetLayoutService], viewQueries: [{ propertyName: "_widgetContainerRef", first: true, predicate: ["widgetContainer"], descendants: true }, { propertyName: "_widgetConfigurationRefs", predicate: ["widgetConfiguration"], descendants: true }, { propertyName: "_widgetConfigurationContentVcRefs", predicate: ["widgetConfigurationContent"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"{loaded: loaded$ | async} as obs\">\n <div *ngIf=\"!obs.loaded\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-container>\n\n<div\n #widgetContainer\n class=\"widget-container\"\n [ngClass]=\"{'widget-container__visible': loaded$ | async}\"\n>\n <ng-container *ngIf=\"widgetConfigurations$ | async as widgetConfigurations\">\n <ng-container *ngFor=\"let config of widgetConfigurations\">\n <div #widgetConfiguration [id]=\"config.key\" class=\"widget-configuration\">\n <div class=\"widget-configuration-content\">\n <ng-container #widgetConfigurationContent></ng-container>\n </div>\n </div>\n </ng-container>\n\n <valtimo-no-results\n *ngIf=\"!widgetConfigurations.length\"\n [title]=\"'dashboard.noWidgets' | translate\"\n [description]=\"'dashboard.noWidgetsDescription' | translate\"\n illustration=\"valtimo-layout/img/no-widgets.svg\"\n ></valtimo-no-results>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.widget-container{margin-top:16px;width:calc(100% + 16px);margin-left:-8px;position:relative;visibility:hidden}.widget-container__visible{visibility:visible}.widget-configuration{position:absolute;display:flex;justify-content:center;align-items:center}.widget-configuration-content{width:calc(100% - 16px);height:calc(100% - 16px);background-color:#fff}.loading-container{padding-top:32px;position:absolute;top:0;display:flex;width:100%;justify-content:center}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\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: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i1$1.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title", "smallPadding", "collapseVertically", "alwaysRenderVertically"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
546
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WidgetDashboardContentComponent, deps: [{ token: WidgetLayoutService }, { token: WidgetService }, { token: i0.Renderer2 }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
547
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: WidgetDashboardContentComponent, selector: "valtimo-widget-dashboard-content", inputs: { widgetData: "widgetData", dashboard: "dashboard" }, providers: [WidgetLayoutService], viewQueries: [{ propertyName: "_widgetContainerRef", first: true, predicate: ["widgetContainer"], descendants: true }, { propertyName: "_widgetConfigurationRefs", predicate: ["widgetConfiguration"], descendants: true }, { propertyName: "_widgetConfigurationContentVcRefs", predicate: ["widgetConfigurationContent"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"{loaded: loaded$ | async} as obs\">\n <div *ngIf=\"!obs.loaded\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-container>\n\n<div\n #widgetContainer\n class=\"widget-container\"\n [ngClass]=\"{'widget-container__visible': loaded$ | async}\"\n>\n <ng-container *ngIf=\"widgetConfigurations$ | async as widgetConfigurations\">\n <ng-container *ngFor=\"let config of widgetConfigurations\">\n <div #widgetConfiguration [id]=\"config.key\" class=\"widget-configuration\">\n <div\n (click)=\"navigateToRoute(config, $event)\"\n [ngClass]=\"{\n 'widget-configuration-content-clickable': config.url,\n }\"\n class=\"widget-configuration-content\"\n >\n <ng-container #widgetConfigurationContent></ng-container>\n </div>\n </div>\n </ng-container>\n\n <valtimo-no-results\n *ngIf=\"!widgetConfigurations.length\"\n [title]=\"'dashboard.noWidgets' | translate\"\n [description]=\"'dashboard.noWidgetsDescription' | translate\"\n illustration=\"valtimo-layout/img/no-widgets.svg\"\n ></valtimo-no-results>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.widget-container{margin-top:16px;width:calc(100% + 16px);margin-left:-8px;position:relative;visibility:hidden}.widget-container__visible{visibility:visible}.widget-configuration{position:absolute;display:flex;justify-content:center;align-items:center}.widget-configuration-content{width:calc(100% - 16px);height:calc(100% - 16px);background-color:#fff}.widget-configuration-content-clickable{cursor:pointer}.loading-container{padding-top:32px;position:absolute;top:0;display:flex;width:100%;justify-content:center}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\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: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i1$1.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title", "smallPadding", "collapseVertically", "alwaysRenderVertically"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] }); }
|
|
541
548
|
}
|
|
542
549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: WidgetDashboardContentComponent, decorators: [{
|
|
543
550
|
type: Component,
|
|
544
|
-
args: [{ selector: 'valtimo-widget-dashboard-content', providers: [WidgetLayoutService], template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"{loaded: loaded$ | async} as obs\">\n <div *ngIf=\"!obs.loaded\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-container>\n\n<div\n #widgetContainer\n class=\"widget-container\"\n [ngClass]=\"{'widget-container__visible': loaded$ | async}\"\n>\n <ng-container *ngIf=\"widgetConfigurations$ | async as widgetConfigurations\">\n <ng-container *ngFor=\"let config of widgetConfigurations\">\n <div #widgetConfiguration [id]=\"config.key\" class=\"widget-configuration\">\n <div class=\"widget-configuration-content\">\n <ng-container #widgetConfigurationContent></ng-container>\n </div>\n </div>\n </ng-container>\n\n <valtimo-no-results\n *ngIf=\"!widgetConfigurations.length\"\n [title]=\"'dashboard.noWidgets' | translate\"\n [description]=\"'dashboard.noWidgetsDescription' | translate\"\n illustration=\"valtimo-layout/img/no-widgets.svg\"\n ></valtimo-no-results>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.widget-container{margin-top:16px;width:calc(100% + 16px);margin-left:-8px;position:relative;visibility:hidden}.widget-container__visible{visibility:visible}.widget-configuration{position:absolute;display:flex;justify-content:center;align-items:center}.widget-configuration-content{width:calc(100% - 16px);height:calc(100% - 16px);background-color:#fff}.loading-container{padding-top:32px;position:absolute;top:0;display:flex;width:100%;justify-content:center}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
545
|
-
}], ctorParameters: () => [{ type: WidgetLayoutService }, { type: WidgetService }, { type: i0.Renderer2 }], propDecorators: { _widgetConfigurationRefs: [{
|
|
551
|
+
args: [{ selector: 'valtimo-widget-dashboard-content', providers: [WidgetLayoutService], template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"{loaded: loaded$ | async} as obs\">\n <div *ngIf=\"!obs.loaded\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-container>\n\n<div\n #widgetContainer\n class=\"widget-container\"\n [ngClass]=\"{'widget-container__visible': loaded$ | async}\"\n>\n <ng-container *ngIf=\"widgetConfigurations$ | async as widgetConfigurations\">\n <ng-container *ngFor=\"let config of widgetConfigurations\">\n <div #widgetConfiguration [id]=\"config.key\" class=\"widget-configuration\">\n <div\n (click)=\"navigateToRoute(config, $event)\"\n [ngClass]=\"{\n 'widget-configuration-content-clickable': config.url,\n }\"\n class=\"widget-configuration-content\"\n >\n <ng-container #widgetConfigurationContent></ng-container>\n </div>\n </div>\n </ng-container>\n\n <valtimo-no-results\n *ngIf=\"!widgetConfigurations.length\"\n [title]=\"'dashboard.noWidgets' | translate\"\n [description]=\"'dashboard.noWidgetsDescription' | translate\"\n illustration=\"valtimo-layout/img/no-widgets.svg\"\n ></valtimo-no-results>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.widget-container{margin-top:16px;width:calc(100% + 16px);margin-left:-8px;position:relative;visibility:hidden}.widget-container__visible{visibility:visible}.widget-configuration{position:absolute;display:flex;justify-content:center;align-items:center}.widget-configuration-content{width:calc(100% - 16px);height:calc(100% - 16px);background-color:#fff}.widget-configuration-content-clickable{cursor:pointer}.loading-container{padding-top:32px;position:absolute;top:0;display:flex;width:100%;justify-content:center}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
552
|
+
}], ctorParameters: () => [{ type: WidgetLayoutService }, { type: WidgetService }, { type: i0.Renderer2 }, { type: i2.Router }], propDecorators: { _widgetConfigurationRefs: [{
|
|
546
553
|
type: ViewChildren,
|
|
547
554
|
args: ['widgetConfiguration']
|
|
548
555
|
}], _widgetConfigurationContentVcRefs: [{
|
|
@@ -2653,137 +2660,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
2653
2660
|
}]
|
|
2654
2661
|
}] });
|
|
2655
2662
|
|
|
2656
|
-
/*
|
|
2657
|
-
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2658
|
-
*
|
|
2659
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2660
|
-
* you may not use this file except in compliance with the License.
|
|
2661
|
-
* You may obtain a copy of the License at
|
|
2662
|
-
*
|
|
2663
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2664
|
-
*
|
|
2665
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2666
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
2667
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2668
|
-
* See the License for the specific language governing permissions and
|
|
2669
|
-
* limitations under the License.
|
|
2670
|
-
*/
|
|
2671
|
-
const routes = [
|
|
2672
|
-
{
|
|
2673
|
-
path: '',
|
|
2674
|
-
component: WidgetDashboardComponent,
|
|
2675
|
-
canActivate: [AuthGuardService],
|
|
2676
|
-
data: { title: 'Dashboard', roles: [ROLE_USER], hidePageTitle: true },
|
|
2677
|
-
},
|
|
2678
|
-
];
|
|
2679
|
-
class DashboardRoutingModule {
|
|
2680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2681
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, imports: [CommonModule, i2.RouterModule], exports: [RouterModule] }); }
|
|
2682
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
|
|
2683
|
-
}
|
|
2684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, decorators: [{
|
|
2685
|
-
type: NgModule,
|
|
2686
|
-
args: [{
|
|
2687
|
-
declarations: [],
|
|
2688
|
-
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
2689
|
-
exports: [RouterModule],
|
|
2690
|
-
}]
|
|
2691
|
-
}] });
|
|
2692
|
-
|
|
2693
|
-
/*
|
|
2694
|
-
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2695
|
-
*
|
|
2696
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2697
|
-
* you may not use this file except in compliance with the License.
|
|
2698
|
-
* You may obtain a copy of the License at
|
|
2699
|
-
*
|
|
2700
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2701
|
-
*
|
|
2702
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2703
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
2704
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2705
|
-
* See the License for the specific language governing permissions and
|
|
2706
|
-
* limitations under the License.
|
|
2707
|
-
*/
|
|
2708
|
-
// AoT requires an exported function for factories
|
|
2709
|
-
function HttpLoaderFactory(httpClient) {
|
|
2710
|
-
return new TranslateHttpLoader(httpClient);
|
|
2711
|
-
}
|
|
2712
|
-
class DashboardModule {
|
|
2713
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2714
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, declarations: [DashboardComponent, WidgetDashboardComponent, WidgetDashboardContentComponent], imports: [CommonModule,
|
|
2715
|
-
DashboardRoutingModule,
|
|
2716
|
-
WidgetModule,
|
|
2717
|
-
ListModule,
|
|
2718
|
-
BpmnJsDiagramModule, i3$1.TranslateModule, AlertModule,
|
|
2719
|
-
TaskModule,
|
|
2720
|
-
SpinnerModule,
|
|
2721
|
-
TabsModule,
|
|
2722
|
-
ThemeModule,
|
|
2723
|
-
WidgetTranslatePipeModule,
|
|
2724
|
-
LoadingModule,
|
|
2725
|
-
CarbonListModule,
|
|
2726
|
-
DisplayWidgetTypesModule], exports: [DashboardComponent, WidgetDashboardComponent] }); }
|
|
2727
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, providers: [
|
|
2728
|
-
{ provide: DISPLAY_TYPE_TOKEN, useValue: null, multi: true },
|
|
2729
|
-
{ provide: DATA_SOURCE_TOKEN, useValue: null, multi: true },
|
|
2730
|
-
], imports: [CommonModule,
|
|
2731
|
-
DashboardRoutingModule,
|
|
2732
|
-
WidgetModule,
|
|
2733
|
-
ListModule,
|
|
2734
|
-
BpmnJsDiagramModule,
|
|
2735
|
-
TranslateModule.forRoot({
|
|
2736
|
-
loader: {
|
|
2737
|
-
provide: TranslateLoader,
|
|
2738
|
-
useFactory: HttpLoaderFactory,
|
|
2739
|
-
deps: [HttpClient],
|
|
2740
|
-
},
|
|
2741
|
-
}),
|
|
2742
|
-
AlertModule,
|
|
2743
|
-
TaskModule,
|
|
2744
|
-
SpinnerModule,
|
|
2745
|
-
TabsModule,
|
|
2746
|
-
ThemeModule,
|
|
2747
|
-
WidgetTranslatePipeModule,
|
|
2748
|
-
LoadingModule,
|
|
2749
|
-
CarbonListModule,
|
|
2750
|
-
DisplayWidgetTypesModule] }); }
|
|
2751
|
-
}
|
|
2752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, decorators: [{
|
|
2753
|
-
type: NgModule,
|
|
2754
|
-
args: [{
|
|
2755
|
-
declarations: [DashboardComponent, WidgetDashboardComponent, WidgetDashboardContentComponent],
|
|
2756
|
-
imports: [
|
|
2757
|
-
CommonModule,
|
|
2758
|
-
DashboardRoutingModule,
|
|
2759
|
-
WidgetModule,
|
|
2760
|
-
ListModule,
|
|
2761
|
-
BpmnJsDiagramModule,
|
|
2762
|
-
TranslateModule.forRoot({
|
|
2763
|
-
loader: {
|
|
2764
|
-
provide: TranslateLoader,
|
|
2765
|
-
useFactory: HttpLoaderFactory,
|
|
2766
|
-
deps: [HttpClient],
|
|
2767
|
-
},
|
|
2768
|
-
}),
|
|
2769
|
-
AlertModule,
|
|
2770
|
-
TaskModule,
|
|
2771
|
-
SpinnerModule,
|
|
2772
|
-
TabsModule,
|
|
2773
|
-
ThemeModule,
|
|
2774
|
-
WidgetTranslatePipeModule,
|
|
2775
|
-
LoadingModule,
|
|
2776
|
-
CarbonListModule,
|
|
2777
|
-
DisplayWidgetTypesModule,
|
|
2778
|
-
],
|
|
2779
|
-
exports: [DashboardComponent, WidgetDashboardComponent],
|
|
2780
|
-
providers: [
|
|
2781
|
-
{ provide: DISPLAY_TYPE_TOKEN, useValue: null, multi: true },
|
|
2782
|
-
{ provide: DATA_SOURCE_TOKEN, useValue: null, multi: true },
|
|
2783
|
-
],
|
|
2784
|
-
}]
|
|
2785
|
-
}] });
|
|
2786
|
-
|
|
2787
2663
|
/*
|
|
2788
2664
|
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2789
2665
|
*
|
|
@@ -2837,10 +2713,10 @@ class CaseCountConfigurationComponent {
|
|
|
2837
2713
|
documentDefinition: this.fb.control(null, [Validators.required]),
|
|
2838
2714
|
queryConditions: this.fb.control(null),
|
|
2839
2715
|
});
|
|
2840
|
-
this.
|
|
2716
|
+
this.selectedDocumentDefinition$ = new BehaviorSubject('');
|
|
2841
2717
|
this.documentItems$ = combineLatest([
|
|
2842
2718
|
this.documentService.getAllDefinitions(),
|
|
2843
|
-
this.
|
|
2719
|
+
this.selectedDocumentDefinition$,
|
|
2844
2720
|
]).pipe(map(([documentDefinitions, selectedDocumentDefintion]) => documentDefinitions.content.map(definition => ({
|
|
2845
2721
|
content: definition.id.name,
|
|
2846
2722
|
selected: definition.id.name === selectedDocumentDefintion,
|
|
@@ -2863,6 +2739,7 @@ class CaseCountConfigurationComponent {
|
|
|
2863
2739
|
this.defaultConditionValues$ = new BehaviorSubject(null);
|
|
2864
2740
|
this.allConditionsValid$ = new BehaviorSubject(true);
|
|
2865
2741
|
this.configurationEvent = new EventEmitter();
|
|
2742
|
+
this.ValuePathSelectorPrefix = ValuePathSelectorPrefix;
|
|
2866
2743
|
this._subscriptions = new Subscription();
|
|
2867
2744
|
}
|
|
2868
2745
|
ngOnInit() {
|
|
@@ -2875,7 +2752,7 @@ class CaseCountConfigurationComponent {
|
|
|
2875
2752
|
if (!documentDefinitionItem) {
|
|
2876
2753
|
return;
|
|
2877
2754
|
}
|
|
2878
|
-
this.
|
|
2755
|
+
this.selectedDocumentDefinition$.next(documentDefinitionItem?.item?.content);
|
|
2879
2756
|
this.documentDefinition.setValue(documentDefinitionItem?.item?.content);
|
|
2880
2757
|
}
|
|
2881
2758
|
conditionsValueChange(values) {
|
|
@@ -2905,11 +2782,11 @@ class CaseCountConfigurationComponent {
|
|
|
2905
2782
|
}));
|
|
2906
2783
|
}
|
|
2907
2784
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseCountConfigurationComponent, deps: [{ token: i1$3.FormBuilder }, { token: i2$2.DocumentService }, { token: i3$1.TranslateService }, { token: WidgetTranslationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2908
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CaseCountConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{documentItems: documentItems$ | async, operatorItems: operatorItems$} as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"defaultConditionValues$ | async\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n
|
|
2785
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CaseCountConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{documentItems: documentItems$ | async, operatorItems: operatorItems$} as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n type=\"valuePathSelectorDropdownValue\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"defaultConditionValues$ | async\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n (allValuesValidEvent)=\"onAllConditionsValid($event)\"\n (valueChange)=\"conditionsValueChange($event)\"\n valuePathSelectorNotation=\"dots\"\n [valuePathSelectorPrefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [valuePathSelectorShowDocumentDefinitionSelector]=\"false\"\n [valuePathSelectorDocumentDefinitionName]=\"selectedDocumentDefinition$ | async\"\n [keyColumnFlex]=\"2\"\n [dropdownColumnFlex]=\"1\"\n [valueColumnFlex]=\"1\"\n ></valtimo-carbon-multi-input>\n </div>\n</form>\n", styles: ["::ng-deep .case-count-configuration-form .conditions-label{margin-bottom:16px}::ng-deep .case-count-configuration-form .conditions-multi-input .cds--form__helper-text{font-style:italic}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "component", type: i5.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "hideLabel", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i5.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i1$1.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorDocumentDefinitionName", "valuePathSelectorPrefixes", "valuePathSelectorShowDocumentDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetTranslatePipe, name: "widgetTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2909
2786
|
}
|
|
2910
2787
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseCountConfigurationComponent, decorators: [{
|
|
2911
2788
|
type: Component,
|
|
2912
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{documentItems: documentItems$ | async, operatorItems: operatorItems$} as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"defaultConditionValues$ | async\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n
|
|
2789
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{documentItems: documentItems$ | async, operatorItems: operatorItems$} as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n type=\"valuePathSelectorDropdownValue\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"defaultConditionValues$ | async\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n (allValuesValidEvent)=\"onAllConditionsValid($event)\"\n (valueChange)=\"conditionsValueChange($event)\"\n valuePathSelectorNotation=\"dots\"\n [valuePathSelectorPrefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [valuePathSelectorShowDocumentDefinitionSelector]=\"false\"\n [valuePathSelectorDocumentDefinitionName]=\"selectedDocumentDefinition$ | async\"\n [keyColumnFlex]=\"2\"\n [dropdownColumnFlex]=\"1\"\n [valueColumnFlex]=\"1\"\n ></valtimo-carbon-multi-input>\n </div>\n</form>\n", styles: ["::ng-deep .case-count-configuration-form .conditions-label{margin-bottom:16px}::ng-deep .case-count-configuration-form .conditions-multi-input .cds--form__helper-text{font-style:italic}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
2913
2790
|
}], ctorParameters: () => [{ type: i1$3.FormBuilder }, { type: i2$2.DocumentService }, { type: i3$1.TranslateService }, { type: WidgetTranslationService }], propDecorators: { dataSourceKey: [{
|
|
2914
2791
|
type: Input
|
|
2915
2792
|
}], disabled: [{
|
|
@@ -2968,6 +2845,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
2968
2845
|
* limitations under the License.
|
|
2969
2846
|
*/
|
|
2970
2847
|
|
|
2848
|
+
/*
|
|
2849
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2850
|
+
*
|
|
2851
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2852
|
+
* you may not use this file except in compliance with the License.
|
|
2853
|
+
* You may obtain a copy of the License at
|
|
2854
|
+
*
|
|
2855
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2856
|
+
*
|
|
2857
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2858
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2859
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2860
|
+
* See the License for the specific language governing permissions and
|
|
2861
|
+
* limitations under the License.
|
|
2862
|
+
*/
|
|
2863
|
+
|
|
2864
|
+
/*
|
|
2865
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2866
|
+
*
|
|
2867
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2868
|
+
* you may not use this file except in compliance with the License.
|
|
2869
|
+
* You may obtain a copy of the License at
|
|
2870
|
+
*
|
|
2871
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2872
|
+
*
|
|
2873
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2874
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2875
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2876
|
+
* See the License for the specific language governing permissions and
|
|
2877
|
+
* limitations under the License.
|
|
2878
|
+
*/
|
|
2879
|
+
const CONDITIONS_HELPER_TEXTS = {
|
|
2880
|
+
DE: (example = 'case:createdBy') => `Zum Beispiel: ‘${example}’, ‘Not equal to’, ‘test@test.com’. Um mit leeren Werten zu vergleichen, kann ‘\${null}’ als Wert verwendet werden. Um mit dem aktuellen Datum zu vergleichen, kann ‘\${localDateTimeNow}’ als Wert verwendet werden. Zusätzlich wird Logik wie ‘\${localDateTimeNow.minusWeeks(2)}’ unterstützt. Die Platzhalter ‘\${currentUserId}’, ‘\${currentUserEmail}’ und ‘\${currentUserIdentifier}’ ermöglichen die Anzeige personalisierter Informationen für den aktuellen Dashboard-Benutzer.`,
|
|
2881
|
+
NL: (example = 'case:createdBy') => `Bijvoorbeeld: ‘${example}’, ‘Not equal to’, ‘test@test.com’. Om te vergelijken met lege waarden, kun je ‘\${null}’ gebruiken als waarde. Om te vergelijken met de huidige datum, gebruik je ‘\${localDateTimeNow}’ als waarde. Hier wordt logica zoals ‘\${localDateTimeNow.minusWeeks(2)}’ ondersteund. De placeholders ‘\${currentUserId}’, ‘\${currentUserEmail}’ en ‘\${currentUserIdentifier}’ maken het mogelijk om gepersonaliseerde informatie weer te geven voor de huidige dashboardgebruiker.`,
|
|
2882
|
+
EN: (example = 'case:createdBy') => `For example: '${example}', 'Not equal to', 'test@test.com'. To compare against empty values, you can use '\${null}' as a value. To compare with the current date, use '\${localDateTimeNow}' as a value. Additionally, logic such as '\${localDateTimeNow.minusWeeks(2)}' is supported. The placeholders '\${currentUserId}', '\${currentUserEmail}', and '\${currentUserIdentifier}' enable the display of personalized information for the current dashboard user.`,
|
|
2883
|
+
};
|
|
2884
|
+
|
|
2971
2885
|
/*
|
|
2972
2886
|
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2973
2887
|
*
|
|
@@ -3017,7 +2931,7 @@ const caseCountDataSourceSpecification = {
|
|
|
3017
2931
|
operator: 'Operator',
|
|
3018
2932
|
value: 'Wert',
|
|
3019
2933
|
conditions: 'Bedingungen',
|
|
3020
|
-
conditionsHelperText:
|
|
2934
|
+
conditionsHelperText: `Geben Sie optionale Bedingungen zum Abrufen der Anzahl der Fälle für den ausgewählten Falltyp an. ${CONDITIONS_HELPER_TEXTS.DE()}`,
|
|
3021
2935
|
addCondition: 'Bedingung hinzufügen',
|
|
3022
2936
|
},
|
|
3023
2937
|
en: {
|
|
@@ -3034,7 +2948,7 @@ const caseCountDataSourceSpecification = {
|
|
|
3034
2948
|
operator: 'Operator',
|
|
3035
2949
|
value: 'Value',
|
|
3036
2950
|
conditions: 'Conditions',
|
|
3037
|
-
conditionsHelperText:
|
|
2951
|
+
conditionsHelperText: `Specify optional conditions for retrieving the number of cases for the selected case type. ${CONDITIONS_HELPER_TEXTS.EN()}`,
|
|
3038
2952
|
addCondition: 'Add condition',
|
|
3039
2953
|
},
|
|
3040
2954
|
nl: {
|
|
@@ -3051,7 +2965,7 @@ const caseCountDataSourceSpecification = {
|
|
|
3051
2965
|
operator: 'Operator',
|
|
3052
2966
|
value: 'Waarde',
|
|
3053
2967
|
conditions: 'Condities',
|
|
3054
|
-
conditionsHelperText:
|
|
2968
|
+
conditionsHelperText: `Geef optionele condities op voor het ophalen van het aantal zaken voor het geselecteerde dossiertype. ${CONDITIONS_HELPER_TEXTS.NL()}}`,
|
|
3055
2969
|
addCondition: 'Conditie toevoegen',
|
|
3056
2970
|
},
|
|
3057
2971
|
},
|
|
@@ -3189,10 +3103,10 @@ class CaseCountsConfigurationComponent {
|
|
|
3189
3103
|
queryItems: this.fb.control([this._EMPTY_QUERY_ITEM_VALUE, this._EMPTY_QUERY_ITEM_VALUE], [this.queryItemsValidator()]),
|
|
3190
3104
|
});
|
|
3191
3105
|
this.configurationEvent = new EventEmitter();
|
|
3192
|
-
this.
|
|
3106
|
+
this.selectedDocumentDefinition$ = new BehaviorSubject('');
|
|
3193
3107
|
this.documentItems$ = combineLatest([
|
|
3194
3108
|
this.documentService.getAllDefinitions(),
|
|
3195
|
-
this.
|
|
3109
|
+
this.selectedDocumentDefinition$,
|
|
3196
3110
|
]).pipe(map(([documentDefinitions, selectedDocumentDefintion]) => documentDefinitions.content.map(definition => ({
|
|
3197
3111
|
content: definition.id.name,
|
|
3198
3112
|
selected: definition.id.name === selectedDocumentDefintion,
|
|
@@ -3212,6 +3126,7 @@ class CaseCountsConfigurationComponent {
|
|
|
3212
3126
|
content: this.widgetTranslationService.instant(operator, this.dataSourceKey),
|
|
3213
3127
|
selected: false,
|
|
3214
3128
|
}))));
|
|
3129
|
+
this.ValuePathSelectorPrefix = ValuePathSelectorPrefix;
|
|
3215
3130
|
this._subscriptions = new Subscription();
|
|
3216
3131
|
this.iconService.registerAll([Add16, TrashCan16]);
|
|
3217
3132
|
}
|
|
@@ -3222,10 +3137,12 @@ class CaseCountsConfigurationComponent {
|
|
|
3222
3137
|
this._subscriptions.unsubscribe();
|
|
3223
3138
|
}
|
|
3224
3139
|
documentDefinitionSelected(documentDefinitionItem) {
|
|
3225
|
-
|
|
3140
|
+
const documentDefinitionName = documentDefinitionItem?.item?.content;
|
|
3141
|
+
if (!documentDefinitionName) {
|
|
3226
3142
|
return;
|
|
3227
3143
|
}
|
|
3228
|
-
this.
|
|
3144
|
+
this.selectedDocumentDefinition$.next(documentDefinitionName);
|
|
3145
|
+
this.documentDefinition.setValue(documentDefinitionName);
|
|
3229
3146
|
}
|
|
3230
3147
|
conditionsValueChange(index, values) {
|
|
3231
3148
|
const currentQueryItemsValues = this.queryItems.value;
|
|
@@ -3252,7 +3169,7 @@ class CaseCountsConfigurationComponent {
|
|
|
3252
3169
|
this.configurationEvent.emit({
|
|
3253
3170
|
valid: this.form.valid,
|
|
3254
3171
|
data: {
|
|
3255
|
-
documentDefinition: formValue?.documentDefinition
|
|
3172
|
+
documentDefinition: formValue?.documentDefinition,
|
|
3256
3173
|
queryItems: this.multiInputValuesToQueryItems(formValue.queryItems),
|
|
3257
3174
|
},
|
|
3258
3175
|
});
|
|
@@ -3296,11 +3213,11 @@ class CaseCountsConfigurationComponent {
|
|
|
3296
3213
|
};
|
|
3297
3214
|
}
|
|
3298
3215
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseCountsConfigurationComponent, deps: [{ token: i1$3.FormBuilder }, { token: i2$2.DocumentService }, { token: i3$1.TranslateService }, { token: WidgetTranslationService }, { token: i5.IconService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3299
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: CaseCountsConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-counts-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n queryItemsValue: queryItemsValue$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <cds-label class=\"conditions__label\">{{\n 'counts' | widgetTranslate: dataSourceKey | async\n }}</cds-label>\n\n <p class=\"conditions__helper-text cds--form__helper-text\">\n {{ 'countsHelperText' | widgetTranslate: dataSourceKey | async }}\n </p>\n\n @for (_ of queryItemsList$ | async; track $index; let i = $index) {\n <cds-tile class=\"count-tile\" cdsLayer=\"1\">\n <div class=\"count-tile__input\">\n <v-input\n [title]=\"'countTitle' | widgetTranslate: dataSourceKey | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.queryItemsValue[i]?.label\"\n [disabled]=\"formDisabled\"\n [required]=\"true\"\n [fullWidth]=\"true\"\n (valueChange)=\"labelValueChange(i, $event)\"\n >\n </v-input>\n\n <valtimo-carbon-multi-input\n [disabled]=\"formDisabled\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.queryItemsValue[i]?.queryConditions\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"1\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"1\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n
|
|
3216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: CaseCountsConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-counts-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n queryItemsValue: queryItemsValue$ | async,\n selectedDocumentDefinition: selectedDocumentDefinition$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <cds-label class=\"conditions__label\">{{\n 'counts' | widgetTranslate: dataSourceKey | async\n }}</cds-label>\n\n <p class=\"conditions__helper-text cds--form__helper-text\">\n {{ 'countsHelperText' | widgetTranslate: dataSourceKey | async }}\n </p>\n\n @for (_ of queryItemsList$ | async; track $index; let i = $index) {\n <cds-tile class=\"count-tile\" [cdsLayer]=\"1\">\n <div class=\"count-tile__input\" [cdsLayer]=\"0\">\n <v-input\n [title]=\"'countTitle' | widgetTranslate: dataSourceKey | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.queryItemsValue[i]?.label\"\n [disabled]=\"formDisabled\"\n [required]=\"true\"\n [fullWidth]=\"true\"\n (valueChange)=\"labelValueChange(i, $event)\"\n >\n </v-input>\n\n <valtimo-carbon-multi-input\n type=\"valuePathSelectorDropdownValue\"\n [disabled]=\"formDisabled\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.queryItemsValue[i]?.queryConditions\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"1\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"1\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n valuePathSelectorNotation=\"dots\"\n [valuePathSelectorPrefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [valuePathSelectorShowDocumentDefinitionSelector]=\"false\"\n [valuePathSelectorDocumentDefinitionName]=\"obs.selectedDocumentDefinition\"\n [keyColumnFlex]=\"2\"\n [dropdownColumnFlex]=\"1\"\n [valueColumnFlex]=\"1\"\n (valueChange)=\"conditionsValueChange(i, $event)\"\n ></valtimo-carbon-multi-input>\n </div>\n\n <div class=\"count-tile__delete-button\">\n <cds-icon-button\n [disabled]=\"formDisabled || i < 2\"\n (click)=\"deleteCount(i)\"\n kind=\"danger\"\n size=\"sm\"\n >\n <svg class=\"cds--btn__icon\" cdsIcon=\"trash-can\" size=\"16\"></svg>\n </cds-icon-button>\n </div>\n </cds-tile>\n }\n\n <button\n class=\"add-count-button\"\n cdsButton=\"primary\"\n [disabled]=\"formDisabled\"\n (click)=\"addQueryItem()\"\n >\n {{ 'Aantal toevoegen' }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</form>\n", styles: ["::ng-deep .case-counts-configuration-form .conditions__label{display:flex;margin-bottom:8px}::ng-deep .case-counts-configuration-form .conditions__helper-text{font-style:italic;display:flex;margin-bottom:16px}::ng-deep .case-counts-configuration-form .count-tile{display:flex;flex-direction:row;gap:32px;justify-content:space-between;margin-bottom:16px}::ng-deep .case-counts-configuration-form .count-tile__input{width:100%}::ng-deep .case-counts-configuration-form .add-count-button{margin-bottom:16px}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i1$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "smallMargin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox", "smallLabel", "rows", "clear$", "carbonTheme", "placeholder", "dataTestId", "trim"], outputs: ["valueChange"] }, { kind: "component", type: i5.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "hideLabel", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i5.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i1$1.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorDocumentDefinitionName", "valuePathSelectorPrefixes", "valuePathSelectorShowDocumentDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i5.IconButton, selector: "cds-icon-button, ibm-icon-button", inputs: ["buttonNgClass", "buttonAttributes", "buttonId", "kind", "size", "type", "isExpressive", "disabled", "description"], outputs: ["click", "focus", "blur", "tooltipClick"] }, { kind: "component", type: i5.Tile, selector: "cds-tile, ibm-tile", inputs: ["theme"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "directive", type: i5.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetTranslatePipe, name: "widgetTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3300
3217
|
}
|
|
3301
3218
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseCountsConfigurationComponent, decorators: [{
|
|
3302
3219
|
type: Component,
|
|
3303
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-counts-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n queryItemsValue: queryItemsValue$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <cds-label class=\"conditions__label\">{{\n 'counts' | widgetTranslate: dataSourceKey | async\n }}</cds-label>\n\n <p class=\"conditions__helper-text cds--form__helper-text\">\n {{ 'countsHelperText' | widgetTranslate: dataSourceKey | async }}\n </p>\n\n @for (_ of queryItemsList$ | async; track $index; let i = $index) {\n <cds-tile class=\"count-tile\" cdsLayer=\"1\">\n <div class=\"count-tile__input\">\n <v-input\n [title]=\"'countTitle' | widgetTranslate: dataSourceKey | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.queryItemsValue[i]?.label\"\n [disabled]=\"formDisabled\"\n [required]=\"true\"\n [fullWidth]=\"true\"\n (valueChange)=\"labelValueChange(i, $event)\"\n >\n </v-input>\n\n <valtimo-carbon-multi-input\n [disabled]=\"formDisabled\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.queryItemsValue[i]?.queryConditions\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"1\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"1\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n
|
|
3220
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-counts-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n queryItemsValue: queryItemsValue$ | async,\n selectedDocumentDefinition: selectedDocumentDefinition$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <cds-label class=\"conditions__label\">{{\n 'counts' | widgetTranslate: dataSourceKey | async\n }}</cds-label>\n\n <p class=\"conditions__helper-text cds--form__helper-text\">\n {{ 'countsHelperText' | widgetTranslate: dataSourceKey | async }}\n </p>\n\n @for (_ of queryItemsList$ | async; track $index; let i = $index) {\n <cds-tile class=\"count-tile\" [cdsLayer]=\"1\">\n <div class=\"count-tile__input\" [cdsLayer]=\"0\">\n <v-input\n [title]=\"'countTitle' | widgetTranslate: dataSourceKey | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.queryItemsValue[i]?.label\"\n [disabled]=\"formDisabled\"\n [required]=\"true\"\n [fullWidth]=\"true\"\n (valueChange)=\"labelValueChange(i, $event)\"\n >\n </v-input>\n\n <valtimo-carbon-multi-input\n type=\"valuePathSelectorDropdownValue\"\n [disabled]=\"formDisabled\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.queryItemsValue[i]?.queryConditions\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"1\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"1\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n valuePathSelectorNotation=\"dots\"\n [valuePathSelectorPrefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [valuePathSelectorShowDocumentDefinitionSelector]=\"false\"\n [valuePathSelectorDocumentDefinitionName]=\"obs.selectedDocumentDefinition\"\n [keyColumnFlex]=\"2\"\n [dropdownColumnFlex]=\"1\"\n [valueColumnFlex]=\"1\"\n (valueChange)=\"conditionsValueChange(i, $event)\"\n ></valtimo-carbon-multi-input>\n </div>\n\n <div class=\"count-tile__delete-button\">\n <cds-icon-button\n [disabled]=\"formDisabled || i < 2\"\n (click)=\"deleteCount(i)\"\n kind=\"danger\"\n size=\"sm\"\n >\n <svg class=\"cds--btn__icon\" cdsIcon=\"trash-can\" size=\"16\"></svg>\n </cds-icon-button>\n </div>\n </cds-tile>\n }\n\n <button\n class=\"add-count-button\"\n cdsButton=\"primary\"\n [disabled]=\"formDisabled\"\n (click)=\"addQueryItem()\"\n >\n {{ 'Aantal toevoegen' }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</form>\n", styles: ["::ng-deep .case-counts-configuration-form .conditions__label{display:flex;margin-bottom:8px}::ng-deep .case-counts-configuration-form .conditions__helper-text{font-style:italic;display:flex;margin-bottom:16px}::ng-deep .case-counts-configuration-form .count-tile{display:flex;flex-direction:row;gap:32px;justify-content:space-between;margin-bottom:16px}::ng-deep .case-counts-configuration-form .count-tile__input{width:100%}::ng-deep .case-counts-configuration-form .add-count-button{margin-bottom:16px}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
3304
3221
|
}], ctorParameters: () => [{ type: i1$3.FormBuilder }, { type: i2$2.DocumentService }, { type: i3$1.TranslateService }, { type: WidgetTranslationService }, { type: i5.IconService }], propDecorators: { dataSourceKey: [{
|
|
3305
3222
|
type: Input
|
|
3306
3223
|
}], disabled: [{
|
|
@@ -3408,7 +3325,7 @@ const caseCountsDataSourceSpecification = {
|
|
|
3408
3325
|
operator: 'Operator',
|
|
3409
3326
|
value: 'Wert',
|
|
3410
3327
|
counts: 'Anzahllen',
|
|
3411
|
-
countsHelperText:
|
|
3328
|
+
countsHelperText: `Geben Sie eine oder mehrere Bedingungen für jede anzuzeigende Zählung an. Konfigurieren Sie mindestens zwei Zählungen und mindestens eine Bedingung pro Zählung. ${CONDITIONS_HELPER_TEXTS.DE()}`,
|
|
3412
3329
|
addCondition: 'Bedingung hinzufügen',
|
|
3413
3330
|
countTitle: 'Anzahltitel',
|
|
3414
3331
|
},
|
|
@@ -3426,7 +3343,7 @@ const caseCountsDataSourceSpecification = {
|
|
|
3426
3343
|
operator: 'Operator',
|
|
3427
3344
|
value: 'Value',
|
|
3428
3345
|
counts: 'Counts',
|
|
3429
|
-
countsHelperText:
|
|
3346
|
+
countsHelperText: `Specify one or more conditions for each count that should be displayed. Configure at least two counts and at least one condition per count. ${CONDITIONS_HELPER_TEXTS.EN()}`,
|
|
3430
3347
|
addCondition: 'Add condition',
|
|
3431
3348
|
countTitle: 'Count title',
|
|
3432
3349
|
},
|
|
@@ -3444,7 +3361,7 @@ const caseCountsDataSourceSpecification = {
|
|
|
3444
3361
|
operator: 'Operator',
|
|
3445
3362
|
value: 'Waarde',
|
|
3446
3363
|
counts: 'Aantallen',
|
|
3447
|
-
countsHelperText:
|
|
3364
|
+
countsHelperText: `Geef een of meer condities op voor elk aantal dat moet worden weergegeven. Configureer minimaal twee aantallen en minimaal één conditie per aantal. ${CONDITIONS_HELPER_TEXTS.NL()}`,
|
|
3448
3365
|
addCondition: 'Conditie toevoegen',
|
|
3449
3366
|
countTitle: 'Aantaltitel',
|
|
3450
3367
|
},
|
|
@@ -3598,10 +3515,10 @@ class CaseGroupByConfigurationComponent {
|
|
|
3598
3515
|
queryConditions: this.fb.control([], [this.queryConditionsValidator()]),
|
|
3599
3516
|
enum: this.fb.control([], [this.enumValidator()]),
|
|
3600
3517
|
});
|
|
3601
|
-
this.
|
|
3518
|
+
this.selectedDocumentDefinition$ = new BehaviorSubject('');
|
|
3602
3519
|
this.documentItems$ = combineLatest([
|
|
3603
3520
|
this.documentService.getAllDefinitions(),
|
|
3604
|
-
this.
|
|
3521
|
+
this.selectedDocumentDefinition$,
|
|
3605
3522
|
]).pipe(map(([documentDefinitions, selectedDocumentDefintion]) => documentDefinitions.content.map(definition => ({
|
|
3606
3523
|
content: definition.id.name,
|
|
3607
3524
|
selected: definition.id.name === selectedDocumentDefintion,
|
|
@@ -3622,6 +3539,7 @@ class CaseGroupByConfigurationComponent {
|
|
|
3622
3539
|
selected: false,
|
|
3623
3540
|
}))));
|
|
3624
3541
|
this.configurationEvent = new EventEmitter();
|
|
3542
|
+
this.ValuePathSelectorPrefix = ValuePathSelectorPrefix;
|
|
3625
3543
|
this._subscriptions = new Subscription();
|
|
3626
3544
|
}
|
|
3627
3545
|
ngOnInit() {
|
|
@@ -3631,11 +3549,12 @@ class CaseGroupByConfigurationComponent {
|
|
|
3631
3549
|
this._subscriptions.unsubscribe();
|
|
3632
3550
|
}
|
|
3633
3551
|
documentDefinitionSelected(documentDefinitionItem) {
|
|
3634
|
-
|
|
3552
|
+
const documentDefinitionName = documentDefinitionItem?.item?.content;
|
|
3553
|
+
if (!documentDefinitionName) {
|
|
3635
3554
|
return;
|
|
3636
3555
|
}
|
|
3637
|
-
this.
|
|
3638
|
-
this.documentDefinition.setValue(
|
|
3556
|
+
this.selectedDocumentDefinition$.next(documentDefinitionName);
|
|
3557
|
+
this.documentDefinition.setValue(documentDefinitionName);
|
|
3639
3558
|
}
|
|
3640
3559
|
conditionsValueChange(values) {
|
|
3641
3560
|
if (!values)
|
|
@@ -3710,11 +3629,11 @@ class CaseGroupByConfigurationComponent {
|
|
|
3710
3629
|
}));
|
|
3711
3630
|
}
|
|
3712
3631
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseGroupByConfigurationComponent, deps: [{ token: i1$3.FormBuilder }, { token: i2$2.DocumentService }, { token: i3$1.TranslateService }, { token: WidgetTranslationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3713
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CaseGroupByConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n formValue: formValue$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element\">\n <cds-label\n [helperText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n
|
|
3632
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CaseGroupByConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n selectedDocumentDefinition: selectedDocumentDefinition$ | async,\n formValue: formValue$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element\">\n <cds-label\n [helperText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"full-width\"\n >\n {{ 'path' | widgetTranslate: dataSourceKey | async }}\n\n <valtimo-value-path-selector\n formControlName=\"path\"\n [documentDefinitionName]=\"obs.selectedDocumentDefinition\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n ></valtimo-value-path-selector>\n </cds-label>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n type=\"valuePathSelectorDropdownValue\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.formValue?.queryConditions\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n valuePathSelectorNotation=\"dots\"\n [valuePathSelectorPrefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [valuePathSelectorShowDocumentDefinitionSelector]=\"false\"\n [valuePathSelectorDocumentDefinitionName]=\"obs.selectedDocumentDefinition\"\n [keyColumnFlex]=\"2\"\n [dropdownColumnFlex]=\"1\"\n [valueColumnFlex]=\"1\"\n (valueChange)=\"conditionsValueChange($event)\"\n ></valtimo-carbon-multi-input>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'enumHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'enum' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n [addRowText]=\"'addDisplay' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.formValue?.enum\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'displayValue' | widgetTranslate: dataSourceKey | async\"\n type=\"keyValue\"\n (valueChange)=\"enumValueChange($event)\"\n ></valtimo-carbon-multi-input>\n </div>\n</form>\n", styles: ["::ng-deep .case-count-configuration-form .conditions-label{margin-bottom:16px}::ng-deep .case-count-configuration-form .conditions-multi-input .cds--form__helper-text{font-style:italic}::ng-deep .case-count-configuration-form .full-width,::ng-deep .case-count-configuration-form .full-width .cds--label{width:100%}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "component", type: i5.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "hideLabel", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i5.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i1$1.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorDocumentDefinitionName", "valuePathSelectorPrefixes", "valuePathSelectorShowDocumentDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "component", type: i1$1.ValuePathSelectorComponent, selector: "valtimo-value-path-selector", inputs: ["name", "appendInline", "margin", "marginLg", "marginXl", "disabled", "documentDefinitionName", "version", "prefixes", "label", "tooltip", "required", "showDocumentDefinitionSelector", "notation", "defaultValue"], outputs: ["valueChangeEvent"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetTranslatePipe, name: "widgetTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3714
3633
|
}
|
|
3715
3634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseGroupByConfigurationComponent, decorators: [{
|
|
3716
3635
|
type: Component,
|
|
3717
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n formValue: formValue$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element\">\n <cds-label\n [helperText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n
|
|
3636
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n documentItems: documentItems$ | async,\n operatorItems: operatorItems$,\n selectedDocumentDefinition: selectedDocumentDefinition$ | async,\n formValue: formValue$ | async,\n } as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element\">\n <cds-dropdown\n [appendInline]=\"true\"\n formControlName=\"documentDefinition\"\n [helperText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'documentDefinitionHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalid]=\"documentDefinition.dirty && documentDefinition.invalid\"\n [label]=\"'documentDefinition' | widgetTranslate: dataSourceKey | async\"\n (selected)=\"documentDefinitionSelected($event)\"\n >\n <cds-dropdown-list [items]=\"obs?.documentItems || []\" type=\"multi\"></cds-dropdown-list>\n </cds-dropdown>\n </div>\n\n <div class=\"form__element\">\n <cds-label\n [helperText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n [invalidText]=\"'pathHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"full-width\"\n >\n {{ 'path' | widgetTranslate: dataSourceKey | async }}\n\n <valtimo-value-path-selector\n formControlName=\"path\"\n [documentDefinitionName]=\"obs.selectedDocumentDefinition\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n ></valtimo-value-path-selector>\n </cds-label>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n type=\"valuePathSelectorDropdownValue\"\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.formValue?.queryConditions\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n valuePathSelectorNotation=\"dots\"\n [valuePathSelectorPrefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [valuePathSelectorShowDocumentDefinitionSelector]=\"false\"\n [valuePathSelectorDocumentDefinitionName]=\"obs.selectedDocumentDefinition\"\n [keyColumnFlex]=\"2\"\n [dropdownColumnFlex]=\"1\"\n [valueColumnFlex]=\"1\"\n (valueChange)=\"conditionsValueChange($event)\"\n ></valtimo-carbon-multi-input>\n </div>\n\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'enumHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'enum' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n [addRowText]=\"'addDisplay' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"obs.formValue?.enum\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'displayValue' | widgetTranslate: dataSourceKey | async\"\n type=\"keyValue\"\n (valueChange)=\"enumValueChange($event)\"\n ></valtimo-carbon-multi-input>\n </div>\n</form>\n", styles: ["::ng-deep .case-count-configuration-form .conditions-label{margin-bottom:16px}::ng-deep .case-count-configuration-form .conditions-multi-input .cds--form__helper-text{font-style:italic}::ng-deep .case-count-configuration-form .full-width,::ng-deep .case-count-configuration-form .full-width .cds--label{width:100%}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
3718
3637
|
}], ctorParameters: () => [{ type: i1$3.FormBuilder }, { type: i2$2.DocumentService }, { type: i3$1.TranslateService }, { type: WidgetTranslationService }], propDecorators: { dataSourceKey: [{
|
|
3719
3638
|
type: Input
|
|
3720
3639
|
}], disabled: [{
|
|
@@ -3823,7 +3742,7 @@ const caseGroupByDataSourceSpecification = {
|
|
|
3823
3742
|
operator: 'Operator',
|
|
3824
3743
|
value: 'Wert',
|
|
3825
3744
|
conditions: 'Bedingungen',
|
|
3826
|
-
conditionsHelperText:
|
|
3745
|
+
conditionsHelperText: `Geben Sie optionale Bedingungen an, um die Gruppierung für den ausgewählten Falltyp abzurufen. ${CONDITIONS_HELPER_TEXTS.DE()}`,
|
|
3827
3746
|
addCondition: 'Bedingung hinzufügen',
|
|
3828
3747
|
enum: 'Anzeige der Werte',
|
|
3829
3748
|
enumHelperText: "Einige Werte aus der Datenbank sind für den Endbenutzer nicht lesbar. Geben Sie hier an, wie die Werte angezeigt werden sollen. Beispiel: Wert: 'anfrage-gesendet', Anzeige: 'Anfrage gesendet'.",
|
|
@@ -3845,7 +3764,7 @@ const caseGroupByDataSourceSpecification = {
|
|
|
3845
3764
|
operator: 'Operator',
|
|
3846
3765
|
value: 'Value',
|
|
3847
3766
|
conditions: 'Conditions',
|
|
3848
|
-
conditionsHelperText:
|
|
3767
|
+
conditionsHelperText: `Specify optional conditions for retrieving the grouping for the selected case type. ${CONDITIONS_HELPER_TEXTS.EN()}`,
|
|
3849
3768
|
addCondition: 'Add condition',
|
|
3850
3769
|
enum: 'Display of values',
|
|
3851
3770
|
enumHelperText: "Some values from the database will not be readable by the end user. Specify here how the values should be displayed. For example: Value: 'request-sent', Display: 'Request sent'.",
|
|
@@ -3867,7 +3786,7 @@ const caseGroupByDataSourceSpecification = {
|
|
|
3867
3786
|
operator: 'Operator',
|
|
3868
3787
|
value: 'Waarde',
|
|
3869
3788
|
conditions: 'Condities',
|
|
3870
|
-
conditionsHelperText:
|
|
3789
|
+
conditionsHelperText: `Geef optionele condities op voor het ophalen van de groepering voor het geselecteerde dossiertype. ${CONDITIONS_HELPER_TEXTS.NL()}`,
|
|
3871
3790
|
addCondition: 'Conditie toevoegen',
|
|
3872
3791
|
enum: 'Weergave van waardes',
|
|
3873
3792
|
enumHelperText: "Sommige waardes uit de database zullen niet leesbaar zijn voor de eindgebruiker. Geef hier op hoe de waardes weergegeven moeten worden. Bijvoorbeeld: Waarde: 'aanvraag-verzonden', Weergave: 'Aanvraag verzonden'.",
|
|
@@ -3899,7 +3818,8 @@ class CaseGroupByDataSourceModule {
|
|
|
3899
3818
|
WidgetTranslatePipeModule,
|
|
3900
3819
|
InputModule,
|
|
3901
3820
|
DropdownModule,
|
|
3902
|
-
CarbonMultiInputModule
|
|
3821
|
+
CarbonMultiInputModule,
|
|
3822
|
+
ValuePathSelectorComponent], exports: [CaseGroupByConfigurationComponent] }); }
|
|
3903
3823
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseGroupByDataSourceModule, providers: [
|
|
3904
3824
|
{ provide: DATA_SOURCE_TOKEN, useValue: caseGroupByDataSourceSpecification, multi: true },
|
|
3905
3825
|
], imports: [CommonModule,
|
|
@@ -3907,7 +3827,8 @@ class CaseGroupByDataSourceModule {
|
|
|
3907
3827
|
WidgetTranslatePipeModule,
|
|
3908
3828
|
InputModule,
|
|
3909
3829
|
DropdownModule,
|
|
3910
|
-
CarbonMultiInputModule
|
|
3830
|
+
CarbonMultiInputModule,
|
|
3831
|
+
ValuePathSelectorComponent] }); }
|
|
3911
3832
|
}
|
|
3912
3833
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseGroupByDataSourceModule, decorators: [{
|
|
3913
3834
|
type: NgModule,
|
|
@@ -3920,6 +3841,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3920
3841
|
InputModule,
|
|
3921
3842
|
DropdownModule,
|
|
3922
3843
|
CarbonMultiInputModule,
|
|
3844
|
+
ValuePathSelectorComponent,
|
|
3923
3845
|
],
|
|
3924
3846
|
exports: [CaseGroupByConfigurationComponent],
|
|
3925
3847
|
providers: [
|
|
@@ -3944,6 +3866,468 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3944
3866
|
* limitations under the License.
|
|
3945
3867
|
*/
|
|
3946
3868
|
|
|
3869
|
+
/*
|
|
3870
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3871
|
+
*
|
|
3872
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3873
|
+
* you may not use this file except in compliance with the License.
|
|
3874
|
+
* You may obtain a copy of the License at
|
|
3875
|
+
*
|
|
3876
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
3877
|
+
*
|
|
3878
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3879
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
3880
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3881
|
+
* See the License for the specific language governing permissions and
|
|
3882
|
+
* limitations under the License.
|
|
3883
|
+
*/
|
|
3884
|
+
class TaskCountConfigurationComponent {
|
|
3885
|
+
set disabled(disabledValue) {
|
|
3886
|
+
if (disabledValue) {
|
|
3887
|
+
this.form.disable();
|
|
3888
|
+
}
|
|
3889
|
+
else {
|
|
3890
|
+
this.form.enable();
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
get queryConditions() {
|
|
3894
|
+
return this.form.get('queryConditions');
|
|
3895
|
+
}
|
|
3896
|
+
set prefillConfiguration(configurationValue) {
|
|
3897
|
+
if (configurationValue) {
|
|
3898
|
+
this.defaultConditionValues$.next(configurationValue.queryConditions.map(condition => ({
|
|
3899
|
+
key: condition.queryPath,
|
|
3900
|
+
dropdown: condition.queryOperator,
|
|
3901
|
+
value: condition.queryValue,
|
|
3902
|
+
})));
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
constructor(fb, translateService, widgetTranslationService) {
|
|
3906
|
+
this.fb = fb;
|
|
3907
|
+
this.translateService = translateService;
|
|
3908
|
+
this.widgetTranslationService = widgetTranslationService;
|
|
3909
|
+
this.form = this.fb.group({
|
|
3910
|
+
queryConditions: this.fb.control(null),
|
|
3911
|
+
});
|
|
3912
|
+
this._OPERATORS = [
|
|
3913
|
+
Operator.NOT_EQUAL_TO,
|
|
3914
|
+
Operator.EQUAL_TO,
|
|
3915
|
+
Operator.GREATER_THAN,
|
|
3916
|
+
Operator.GREATER_THAN_OR_EQUAL_TO,
|
|
3917
|
+
Operator.LESS_THAN,
|
|
3918
|
+
Operator.LESS_THAN_OR_EQUAL_TO,
|
|
3919
|
+
];
|
|
3920
|
+
this.operatorItems$ = this.translateService
|
|
3921
|
+
.stream('key')
|
|
3922
|
+
.pipe(map(() => this._OPERATORS.map(operator => ({
|
|
3923
|
+
id: operator,
|
|
3924
|
+
content: this.widgetTranslationService.instant(operator, this.dataSourceKey),
|
|
3925
|
+
selected: false,
|
|
3926
|
+
}))));
|
|
3927
|
+
this.defaultConditionValues$ = new BehaviorSubject(null);
|
|
3928
|
+
this.allConditionsValid$ = new BehaviorSubject(true);
|
|
3929
|
+
this.configurationEvent = new EventEmitter();
|
|
3930
|
+
this._subscriptions = new Subscription();
|
|
3931
|
+
}
|
|
3932
|
+
ngOnInit() {
|
|
3933
|
+
this.openFormSubscription();
|
|
3934
|
+
}
|
|
3935
|
+
ngOnDestroy() {
|
|
3936
|
+
this._subscriptions.unsubscribe();
|
|
3937
|
+
}
|
|
3938
|
+
conditionsValueChange(values) {
|
|
3939
|
+
if (values.length === 0) {
|
|
3940
|
+
this.queryConditions.setValue(null);
|
|
3941
|
+
}
|
|
3942
|
+
else {
|
|
3943
|
+
this.queryConditions.setValue(values.map(value => ({
|
|
3944
|
+
queryPath: value.key,
|
|
3945
|
+
queryOperator: value.dropdown,
|
|
3946
|
+
queryValue: value.value,
|
|
3947
|
+
})));
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
onAllConditionsValid(allConditionsValid) {
|
|
3951
|
+
this.allConditionsValid$.next(allConditionsValid);
|
|
3952
|
+
}
|
|
3953
|
+
openFormSubscription() {
|
|
3954
|
+
this._subscriptions.add(combineLatest([
|
|
3955
|
+
this.form.valueChanges.pipe(startWith(this.form.value)),
|
|
3956
|
+
this.allConditionsValid$,
|
|
3957
|
+
]).subscribe(([formValue, allConditionsValid]) => {
|
|
3958
|
+
this.configurationEvent.emit({
|
|
3959
|
+
valid: this.form.valid && allConditionsValid,
|
|
3960
|
+
data: formValue,
|
|
3961
|
+
});
|
|
3962
|
+
}));
|
|
3963
|
+
}
|
|
3964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TaskCountConfigurationComponent, deps: [{ token: i1$3.FormBuilder }, { token: i3$1.TranslateService }, { token: WidgetTranslationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3965
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TaskCountConfigurationComponent, selector: "ng-component", inputs: { dataSourceKey: "dataSourceKey", disabled: "disabled", prefillConfiguration: "prefillConfiguration" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"task-count-configuration-form\"\n *ngIf=\"{operatorItems: operatorItems$} as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"defaultConditionValues$ | async\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n type=\"keyDropdownValue\"\n (allValuesValidEvent)=\"onAllConditionsValid($event)\"\n (valueChange)=\"conditionsValueChange($event)\"\n ></valtimo-carbon-multi-input>\n </div>\n</form>\n", styles: ["::ng-deep .task-count-configuration-form .conditions-label{margin-bottom:16px}::ng-deep .task-count-configuration-form .conditions-multi-input .cds--form__helper-text{font-style:italic}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "component", type: i1$1.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorDocumentDefinitionName", "valuePathSelectorPrefixes", "valuePathSelectorShowDocumentDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetTranslatePipe, name: "widgetTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3966
|
+
}
|
|
3967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TaskCountConfigurationComponent, decorators: [{
|
|
3968
|
+
type: Component,
|
|
3969
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<form\n class=\"task-count-configuration-form\"\n *ngIf=\"{operatorItems: operatorItems$} as obs\"\n [formGroup]=\"form\"\n>\n <div class=\"form__element conditions-multi-input\">\n <cds-label\n [helperText]=\"'conditionsHelperText' | widgetTranslate: dataSourceKey | async\"\n class=\"conditions-label\"\n >{{ 'conditions' | widgetTranslate: dataSourceKey | async }}</cds-label\n >\n <valtimo-carbon-multi-input\n [addRowText]=\"'addCondition' | widgetTranslate: dataSourceKey | async\"\n [defaultValues]=\"defaultConditionValues$ | async\"\n [dropdownColumnTitle]=\"'operator' | widgetTranslate: dataSourceKey | async\"\n [dropdownItems]=\"operatorItems$ | async\"\n [fullWidth]=\"true\"\n [initialAmountOfRows]=\"0\"\n [keyColumnTitle]=\"'path' | widgetTranslate: dataSourceKey | async\"\n [minimumAmountOfRows]=\"0\"\n [valueColumnTitle]=\"'value' | widgetTranslate: dataSourceKey | async\"\n type=\"keyDropdownValue\"\n (allValuesValidEvent)=\"onAllConditionsValid($event)\"\n (valueChange)=\"conditionsValueChange($event)\"\n ></valtimo-carbon-multi-input>\n </div>\n</form>\n", styles: ["::ng-deep .task-count-configuration-form .conditions-label{margin-bottom:16px}::ng-deep .task-count-configuration-form .conditions-multi-input .cds--form__helper-text{font-style:italic}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
3970
|
+
}], ctorParameters: () => [{ type: i1$3.FormBuilder }, { type: i3$1.TranslateService }, { type: WidgetTranslationService }], propDecorators: { dataSourceKey: [{
|
|
3971
|
+
type: Input
|
|
3972
|
+
}], disabled: [{
|
|
3973
|
+
type: Input
|
|
3974
|
+
}], prefillConfiguration: [{
|
|
3975
|
+
type: Input
|
|
3976
|
+
}], configurationEvent: [{
|
|
3977
|
+
type: Output
|
|
3978
|
+
}] } });
|
|
3979
|
+
|
|
3980
|
+
/*
|
|
3981
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3982
|
+
*
|
|
3983
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3984
|
+
* you may not use this file except in compliance with the License.
|
|
3985
|
+
* You may obtain a copy of the License at
|
|
3986
|
+
*
|
|
3987
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
3988
|
+
*
|
|
3989
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3990
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
3991
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3992
|
+
* See the License for the specific language governing permissions and
|
|
3993
|
+
* limitations under the License.
|
|
3994
|
+
*/
|
|
3995
|
+
|
|
3996
|
+
/*
|
|
3997
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3998
|
+
*
|
|
3999
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4000
|
+
* you may not use this file except in compliance with the License.
|
|
4001
|
+
* You may obtain a copy of the License at
|
|
4002
|
+
*
|
|
4003
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4004
|
+
*
|
|
4005
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4006
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4007
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4008
|
+
* See the License for the specific language governing permissions and
|
|
4009
|
+
* limitations under the License.
|
|
4010
|
+
*/
|
|
4011
|
+
|
|
4012
|
+
/*
|
|
4013
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4014
|
+
*
|
|
4015
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4016
|
+
* you may not use this file except in compliance with the License.
|
|
4017
|
+
* You may obtain a copy of the License at
|
|
4018
|
+
*
|
|
4019
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4020
|
+
*
|
|
4021
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4022
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4023
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4024
|
+
* See the License for the specific language governing permissions and
|
|
4025
|
+
* limitations under the License.
|
|
4026
|
+
*/
|
|
4027
|
+
|
|
4028
|
+
/*
|
|
4029
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4030
|
+
*
|
|
4031
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4032
|
+
* you may not use this file except in compliance with the License.
|
|
4033
|
+
* You may obtain a copy of the License at
|
|
4034
|
+
*
|
|
4035
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4036
|
+
*
|
|
4037
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4038
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4039
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4040
|
+
* See the License for the specific language governing permissions and
|
|
4041
|
+
* limitations under the License.
|
|
4042
|
+
*/
|
|
4043
|
+
|
|
4044
|
+
/*
|
|
4045
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4046
|
+
*
|
|
4047
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4048
|
+
* you may not use this file except in compliance with the License.
|
|
4049
|
+
* You may obtain a copy of the License at
|
|
4050
|
+
*
|
|
4051
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4052
|
+
*
|
|
4053
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4054
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4055
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4056
|
+
* See the License for the specific language governing permissions and
|
|
4057
|
+
* limitations under the License.
|
|
4058
|
+
*/
|
|
4059
|
+
const taskCountSpecification = {
|
|
4060
|
+
dataSourceKey: 'task-count',
|
|
4061
|
+
configurationComponent: TaskCountConfigurationComponent,
|
|
4062
|
+
translations: {
|
|
4063
|
+
de: {
|
|
4064
|
+
title: 'Aufgabenanzahl',
|
|
4065
|
+
'!=': 'Nicht gleichzusetzen mit',
|
|
4066
|
+
'==': 'Gleich',
|
|
4067
|
+
'>': 'Größer als',
|
|
4068
|
+
'>=': 'Größer als oder gleich wie',
|
|
4069
|
+
'<': 'Weniger als',
|
|
4070
|
+
'<=': 'Gleich oder kleiner als',
|
|
4071
|
+
path: 'Pfad',
|
|
4072
|
+
operator: 'Operator',
|
|
4073
|
+
value: 'Wert',
|
|
4074
|
+
conditions: 'Bedingungen',
|
|
4075
|
+
conditionsHelperText: `Geben Sie optionale Bedingungen zum Abrufen der Anzahl der Aufgaben. ${CONDITIONS_HELPER_TEXTS.DE('task:assignee')}`,
|
|
4076
|
+
addCondition: 'Bedingung hinzufügen',
|
|
4077
|
+
},
|
|
4078
|
+
en: {
|
|
4079
|
+
title: 'Task count',
|
|
4080
|
+
'!=': 'Not equal to',
|
|
4081
|
+
'==': 'Equal to',
|
|
4082
|
+
'>': 'Greater than',
|
|
4083
|
+
'>=': 'Greater than or equal to',
|
|
4084
|
+
'<': 'Less than',
|
|
4085
|
+
'<=': 'Less than or equal to',
|
|
4086
|
+
path: 'Path (required)',
|
|
4087
|
+
operator: 'Operator',
|
|
4088
|
+
value: 'Value',
|
|
4089
|
+
conditions: 'Conditions',
|
|
4090
|
+
conditionsHelperText: `Specify optional conditions for retrieving the number of tasks. ${CONDITIONS_HELPER_TEXTS.EN('task:assignee')}`,
|
|
4091
|
+
addCondition: 'Add condition',
|
|
4092
|
+
},
|
|
4093
|
+
nl: {
|
|
4094
|
+
title: 'Aantal taken',
|
|
4095
|
+
'!=': 'Niet gelijk aan',
|
|
4096
|
+
'==': 'Gelijk aan',
|
|
4097
|
+
'>': 'Groter dan',
|
|
4098
|
+
'>=': 'Groter dan of gelijk aan',
|
|
4099
|
+
'<': 'Minder dan',
|
|
4100
|
+
'<=': 'Minder dan of gelijk aan',
|
|
4101
|
+
path: 'Pad',
|
|
4102
|
+
operator: 'Operator',
|
|
4103
|
+
value: 'Waarde',
|
|
4104
|
+
conditions: 'Condities',
|
|
4105
|
+
conditionsHelperText: `Geef optionele condities op voor het ophalen van het aantal taken. ${CONDITIONS_HELPER_TEXTS.NL('task:assignee')}}`,
|
|
4106
|
+
addCondition: 'Conditie toevoegen',
|
|
4107
|
+
},
|
|
4108
|
+
},
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
/*
|
|
4112
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4113
|
+
*
|
|
4114
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4115
|
+
* you may not use this file except in compliance with the License.
|
|
4116
|
+
* You may obtain a copy of the License at
|
|
4117
|
+
*
|
|
4118
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4119
|
+
*
|
|
4120
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4121
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4122
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4123
|
+
* See the License for the specific language governing permissions and
|
|
4124
|
+
* limitations under the License.
|
|
4125
|
+
*/
|
|
4126
|
+
class TaskCountDataSourceModule {
|
|
4127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TaskCountDataSourceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4128
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: TaskCountDataSourceModule, declarations: [TaskCountConfigurationComponent], imports: [CommonModule,
|
|
4129
|
+
ReactiveFormsModule,
|
|
4130
|
+
WidgetTranslatePipeModule,
|
|
4131
|
+
InputModule,
|
|
4132
|
+
DropdownModule,
|
|
4133
|
+
CarbonMultiInputModule], exports: [TaskCountConfigurationComponent] }); }
|
|
4134
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TaskCountDataSourceModule, providers: [{ provide: DATA_SOURCE_TOKEN, useValue: taskCountSpecification, multi: true }], imports: [CommonModule,
|
|
4135
|
+
ReactiveFormsModule,
|
|
4136
|
+
WidgetTranslatePipeModule,
|
|
4137
|
+
InputModule,
|
|
4138
|
+
DropdownModule,
|
|
4139
|
+
CarbonMultiInputModule] }); }
|
|
4140
|
+
}
|
|
4141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TaskCountDataSourceModule, decorators: [{
|
|
4142
|
+
type: NgModule,
|
|
4143
|
+
args: [{
|
|
4144
|
+
declarations: [TaskCountConfigurationComponent],
|
|
4145
|
+
imports: [
|
|
4146
|
+
CommonModule,
|
|
4147
|
+
ReactiveFormsModule,
|
|
4148
|
+
WidgetTranslatePipeModule,
|
|
4149
|
+
InputModule,
|
|
4150
|
+
DropdownModule,
|
|
4151
|
+
CarbonMultiInputModule,
|
|
4152
|
+
],
|
|
4153
|
+
exports: [TaskCountConfigurationComponent],
|
|
4154
|
+
providers: [{ provide: DATA_SOURCE_TOKEN, useValue: taskCountSpecification, multi: true }],
|
|
4155
|
+
}]
|
|
4156
|
+
}] });
|
|
4157
|
+
|
|
4158
|
+
/*
|
|
4159
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4160
|
+
*
|
|
4161
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4162
|
+
* you may not use this file except in compliance with the License.
|
|
4163
|
+
* You may obtain a copy of the License at
|
|
4164
|
+
*
|
|
4165
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4166
|
+
*
|
|
4167
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4168
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4169
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4170
|
+
* See the License for the specific language governing permissions and
|
|
4171
|
+
* limitations under the License.
|
|
4172
|
+
*/
|
|
4173
|
+
|
|
4174
|
+
class DataSourcesModule {
|
|
4175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DataSourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4176
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: DataSourcesModule, imports: [CaseCountDataSourceModule,
|
|
4177
|
+
CaseCountsDataSourceModule,
|
|
4178
|
+
CaseGroupByDataSourceModule,
|
|
4179
|
+
TaskCountDataSourceModule] }); }
|
|
4180
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DataSourcesModule, imports: [CaseCountDataSourceModule,
|
|
4181
|
+
CaseCountsDataSourceModule,
|
|
4182
|
+
CaseGroupByDataSourceModule,
|
|
4183
|
+
TaskCountDataSourceModule] }); }
|
|
4184
|
+
}
|
|
4185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DataSourcesModule, decorators: [{
|
|
4186
|
+
type: NgModule,
|
|
4187
|
+
args: [{
|
|
4188
|
+
imports: [
|
|
4189
|
+
CaseCountDataSourceModule,
|
|
4190
|
+
CaseCountsDataSourceModule,
|
|
4191
|
+
CaseGroupByDataSourceModule,
|
|
4192
|
+
TaskCountDataSourceModule,
|
|
4193
|
+
],
|
|
4194
|
+
}]
|
|
4195
|
+
}] });
|
|
4196
|
+
|
|
4197
|
+
/*
|
|
4198
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4199
|
+
*
|
|
4200
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4201
|
+
* you may not use this file except in compliance with the License.
|
|
4202
|
+
* You may obtain a copy of the License at
|
|
4203
|
+
*
|
|
4204
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4205
|
+
*
|
|
4206
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4207
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4208
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4209
|
+
* See the License for the specific language governing permissions and
|
|
4210
|
+
* limitations under the License.
|
|
4211
|
+
*/
|
|
4212
|
+
const routes = [
|
|
4213
|
+
{
|
|
4214
|
+
path: '',
|
|
4215
|
+
component: WidgetDashboardComponent,
|
|
4216
|
+
canActivate: [AuthGuardService],
|
|
4217
|
+
data: { title: 'Dashboard', roles: [ROLE_USER], hidePageTitle: true },
|
|
4218
|
+
},
|
|
4219
|
+
];
|
|
4220
|
+
class DashboardRoutingModule {
|
|
4221
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4222
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, imports: [CommonModule, i2.RouterModule], exports: [RouterModule] }); }
|
|
4223
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
|
|
4224
|
+
}
|
|
4225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardRoutingModule, decorators: [{
|
|
4226
|
+
type: NgModule,
|
|
4227
|
+
args: [{
|
|
4228
|
+
declarations: [],
|
|
4229
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
4230
|
+
exports: [RouterModule],
|
|
4231
|
+
}]
|
|
4232
|
+
}] });
|
|
4233
|
+
|
|
4234
|
+
/*
|
|
4235
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4236
|
+
*
|
|
4237
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4238
|
+
* you may not use this file except in compliance with the License.
|
|
4239
|
+
* You may obtain a copy of the License at
|
|
4240
|
+
*
|
|
4241
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
4242
|
+
*
|
|
4243
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4244
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
4245
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4246
|
+
* See the License for the specific language governing permissions and
|
|
4247
|
+
* limitations under the License.
|
|
4248
|
+
*/
|
|
4249
|
+
// AoT requires an exported function for factories
|
|
4250
|
+
function HttpLoaderFactory(httpClient) {
|
|
4251
|
+
return new TranslateHttpLoader(httpClient);
|
|
4252
|
+
}
|
|
4253
|
+
class DashboardModule {
|
|
4254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4255
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, declarations: [DashboardComponent, WidgetDashboardComponent, WidgetDashboardContentComponent], imports: [CommonModule,
|
|
4256
|
+
DashboardRoutingModule,
|
|
4257
|
+
WidgetModule,
|
|
4258
|
+
ListModule,
|
|
4259
|
+
BpmnJsDiagramModule, i3$1.TranslateModule, AlertModule,
|
|
4260
|
+
TaskModule,
|
|
4261
|
+
SpinnerModule,
|
|
4262
|
+
TabsModule,
|
|
4263
|
+
ThemeModule,
|
|
4264
|
+
WidgetTranslatePipeModule,
|
|
4265
|
+
LoadingModule,
|
|
4266
|
+
CarbonListModule,
|
|
4267
|
+
DisplayWidgetTypesModule,
|
|
4268
|
+
DataSourcesModule], exports: [DashboardComponent, WidgetDashboardComponent] }); }
|
|
4269
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, providers: [
|
|
4270
|
+
{ provide: DISPLAY_TYPE_TOKEN, useValue: null, multi: true },
|
|
4271
|
+
{ provide: DATA_SOURCE_TOKEN, useValue: null, multi: true },
|
|
4272
|
+
], imports: [CommonModule,
|
|
4273
|
+
DashboardRoutingModule,
|
|
4274
|
+
WidgetModule,
|
|
4275
|
+
ListModule,
|
|
4276
|
+
BpmnJsDiagramModule,
|
|
4277
|
+
TranslateModule.forRoot({
|
|
4278
|
+
loader: {
|
|
4279
|
+
provide: TranslateLoader,
|
|
4280
|
+
useFactory: HttpLoaderFactory,
|
|
4281
|
+
deps: [HttpClient],
|
|
4282
|
+
},
|
|
4283
|
+
}),
|
|
4284
|
+
AlertModule,
|
|
4285
|
+
TaskModule,
|
|
4286
|
+
SpinnerModule,
|
|
4287
|
+
TabsModule,
|
|
4288
|
+
ThemeModule,
|
|
4289
|
+
WidgetTranslatePipeModule,
|
|
4290
|
+
LoadingModule,
|
|
4291
|
+
CarbonListModule,
|
|
4292
|
+
DisplayWidgetTypesModule,
|
|
4293
|
+
DataSourcesModule] }); }
|
|
4294
|
+
}
|
|
4295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: DashboardModule, decorators: [{
|
|
4296
|
+
type: NgModule,
|
|
4297
|
+
args: [{
|
|
4298
|
+
declarations: [DashboardComponent, WidgetDashboardComponent, WidgetDashboardContentComponent],
|
|
4299
|
+
imports: [
|
|
4300
|
+
CommonModule,
|
|
4301
|
+
DashboardRoutingModule,
|
|
4302
|
+
WidgetModule,
|
|
4303
|
+
ListModule,
|
|
4304
|
+
BpmnJsDiagramModule,
|
|
4305
|
+
TranslateModule.forRoot({
|
|
4306
|
+
loader: {
|
|
4307
|
+
provide: TranslateLoader,
|
|
4308
|
+
useFactory: HttpLoaderFactory,
|
|
4309
|
+
deps: [HttpClient],
|
|
4310
|
+
},
|
|
4311
|
+
}),
|
|
4312
|
+
AlertModule,
|
|
4313
|
+
TaskModule,
|
|
4314
|
+
SpinnerModule,
|
|
4315
|
+
TabsModule,
|
|
4316
|
+
ThemeModule,
|
|
4317
|
+
WidgetTranslatePipeModule,
|
|
4318
|
+
LoadingModule,
|
|
4319
|
+
CarbonListModule,
|
|
4320
|
+
DisplayWidgetTypesModule,
|
|
4321
|
+
DataSourcesModule,
|
|
4322
|
+
],
|
|
4323
|
+
exports: [DashboardComponent, WidgetDashboardComponent],
|
|
4324
|
+
providers: [
|
|
4325
|
+
{ provide: DISPLAY_TYPE_TOKEN, useValue: null, multi: true },
|
|
4326
|
+
{ provide: DATA_SOURCE_TOKEN, useValue: null, multi: true },
|
|
4327
|
+
],
|
|
4328
|
+
}]
|
|
4329
|
+
}] });
|
|
4330
|
+
|
|
3947
4331
|
/*
|
|
3948
4332
|
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3949
4333
|
*
|
|
@@ -3999,5 +4383,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3999
4383
|
* Generated bundle index. Do not edit.
|
|
4000
4384
|
*/
|
|
4001
4385
|
|
|
4002
|
-
export { BigNumberConfigurationComponent, BigNumberDisplayComponent, BigNumberModule, CaseCountConfigurationComponent, CaseCountDataSourceModule, CaseCountsConfigurationComponent, CaseCountsDataSourceModule, CaseGroupByConfigurationComponent, CaseGroupByDataSourceModule, DATA_FEATURES, DATA_SOURCE_TOKEN, DISPLAY_TYPE_TOKEN, DashboardComponent, DashboardModule, DashboardService, DisplayWidgetTypesModule, DonutConfigurationComponent, DonutDisplayComponent, DonutModule, GaugeConfigurationComponent, GaugeDisplayComponent, GaugeModule, HttpLoaderFactory, MeterConfigurationComponent, MeterDisplayComponent, MeterModule, Operator, WIDGET_1X_HEIGHT, WIDGET_1X_MIN_WIDTH, WidgetDashboardComponent, WidgetDashboardContentComponent, WidgetService, WidgetSeverity, WidgetTranslatePipe, WidgetTranslatePipeModule, WidgetTranslationService, bigNumberSpecification, caseCountDataSourceSpecification, caseCountsDataSourceSpecification, caseGroupByDataSourceSpecification, donutSpecification, gaugeSpecification, meterSpecification };
|
|
4386
|
+
export { BigNumberConfigurationComponent, BigNumberDisplayComponent, BigNumberModule, CaseCountConfigurationComponent, CaseCountDataSourceModule, CaseCountsConfigurationComponent, CaseCountsDataSourceModule, CaseGroupByConfigurationComponent, CaseGroupByDataSourceModule, DATA_FEATURES, DATA_SOURCE_TOKEN, DISPLAY_TYPE_TOKEN, DashboardComponent, DashboardModule, DashboardService, DataSourcesModule, DisplayWidgetTypesModule, DonutConfigurationComponent, DonutDisplayComponent, DonutModule, GaugeConfigurationComponent, GaugeDisplayComponent, GaugeModule, HttpLoaderFactory, MeterConfigurationComponent, MeterDisplayComponent, MeterModule, Operator, TaskCountConfigurationComponent, TaskCountDataSourceModule, WIDGET_1X_HEIGHT, WIDGET_1X_MIN_WIDTH, WidgetDashboardComponent, WidgetDashboardContentComponent, WidgetService, WidgetSeverity, WidgetTranslatePipe, WidgetTranslatePipeModule, WidgetTranslationService, bigNumberSpecification, caseCountDataSourceSpecification, caseCountsDataSourceSpecification, caseGroupByDataSourceSpecification, donutSpecification, gaugeSpecification, meterSpecification, taskCountSpecification };
|
|
4003
4387
|
//# sourceMappingURL=valtimo-dashboard.mjs.map
|