@valtimo/components 12.11.0 → 12.12.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.
@@ -519,6 +519,8 @@ var CurrentCarbonTheme;
519
519
  (function (CurrentCarbonTheme) {
520
520
  CurrentCarbonTheme["G10"] = "g10";
521
521
  CurrentCarbonTheme["G90"] = "g90";
522
+ CurrentCarbonTheme["G100"] = "g100";
523
+ CurrentCarbonTheme["WHITE"] = "white";
522
524
  })(CurrentCarbonTheme || (CurrentCarbonTheme = {}));
523
525
 
524
526
  /*
@@ -1744,6 +1746,9 @@ class CdsThemeService {
1744
1746
  get currentTheme$() {
1745
1747
  return this._currentTheme$.pipe(filter(theme => !!theme));
1746
1748
  }
1749
+ get toggletipTheme$() {
1750
+ return this.currentTheme$.pipe(map$1(currentTheme => currentTheme === CurrentCarbonTheme.G10 ? CurrentCarbonTheme.G90 : CurrentCarbonTheme.WHITE));
1751
+ }
1747
1752
  constructor() {
1748
1753
  this._preferredTheme$ = new BehaviorSubject(SelectableCarbonTheme.G10);
1749
1754
  this._currentTheme$ = new BehaviorSubject(null);
@@ -14506,6 +14511,154 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
14506
14511
  }]
14507
14512
  }] });
14508
14513
 
14514
+ /*
14515
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
14516
+ *
14517
+ * Licensed under EUPL, Version 1.2 (the "License");
14518
+ * you may not use this file except in compliance with the License.
14519
+ * You may obtain a copy of the License at
14520
+ *
14521
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
14522
+ *
14523
+ * Unless required by applicable law or agreed to in writing, software
14524
+ * distributed under the License is distributed on an "AS IS" basis,
14525
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14526
+ * See the License for the specific language governing permissions and
14527
+ * limitations under the License.
14528
+ */
14529
+ class StatusSelectorComponent {
14530
+ set statuses(value) {
14531
+ this._statuses$.next((value || []).map(status => ({
14532
+ ...status,
14533
+ tagType: InternalCaseStatusUtils.getTagTypeFromInternalCaseStatusColor(status.color),
14534
+ })));
14535
+ }
14536
+ set selectedStatuses(value) {
14537
+ this._selectedStatuses$.next(value);
14538
+ }
14539
+ constructor(translateService) {
14540
+ this.translateService = translateService;
14541
+ this.carbonTheme = CARBON_THEME.WHITE;
14542
+ this.selectedStatusesChangeEvent = new EventEmitter();
14543
+ this._statuses$ = new BehaviorSubject([]);
14544
+ this._selectedStatuses$ = new BehaviorSubject([]);
14545
+ this.CASES_WITHOUT_STATUS_KEY = CASES_WITHOUT_STATUS_KEY;
14546
+ this.listItems$ = combineLatest([
14547
+ this._statuses$,
14548
+ this._selectedStatuses$,
14549
+ this.translateService.stream('key'),
14550
+ ]).pipe(filter(([statuses, selectedStatuses]) => !!statuses && !!selectedStatuses), map(([statuses, selectedStatuses]) => statuses.map(status => ({
14551
+ content: status.key === this.CASES_WITHOUT_STATUS_KEY
14552
+ ? this.translateService.instant('dossierManagement.statuses.withoutStatus')
14553
+ : status.title,
14554
+ selected: !!selectedStatuses.find(selectedStatus => selectedStatus.key === status.key),
14555
+ key: status.key,
14556
+ tagType: status.tagType,
14557
+ }))), distinctUntilChanged((previous, current) => isEqual(previous, current)));
14558
+ }
14559
+ itemSelected(event) {
14560
+ const newSelectedItems = event?.filter(item => item?.selected) || [];
14561
+ this._statuses$.pipe(take(1)).subscribe(statuses => {
14562
+ const newSelectedStatuses = newSelectedItems
14563
+ .map(item => statuses.find(status => status.key === item.key))
14564
+ .filter(status => !!status);
14565
+ this.selectedStatusesChangeEvent.emit(newSelectedStatuses);
14566
+ });
14567
+ }
14568
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusSelectorComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
14569
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: StatusSelectorComponent, isStandalone: true, selector: "valtimo-status-selector", inputs: { statuses: "statuses", selectedStatuses: "selectedStatuses", carbonTheme: "carbonTheme", disabled: "disabled" }, outputs: { selectedStatusesChangeEvent: "selectedStatusesChangeEvent" }, 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<cds-label class=\"status-selector\" *ngIf=\"listItems$ | async as listItems\">\n {{ 'dossierManagement.statuses.searchFieldTitle' | translate }}\n\n <cds-dropdown\n [appendInline]=\"false\"\n type=\"multi\"\n [disabled]=\"disabled\"\n selectionFeedback=\"fixed\"\n (selected)=\"itemSelected($event)\"\n >\n <cds-dropdown-list\n [items]=\"listItems\"\n [listTpl]=\"colorDropdownItemTemplate\"\n ></cds-dropdown-list>\n </cds-dropdown>\n</cds-label>\n\n<ng-template #colorDropdownItemTemplate let-item=\"item\">\n <div class=\"status-selector-dropdown-template\">\n <cds-checkbox [checked]=\"item.selected\"></cds-checkbox>\n\n <span *ngIf=\"item.key === CASES_WITHOUT_STATUS_KEY\" class=\"generic-span\">{{\n item?.content\n }}</span>\n\n <cds-tag\n *ngIf=\"item.key !== CASES_WITHOUT_STATUS_KEY\"\n class=\"cds-tag--no-margin\"\n [type]=\"item?.tagType\"\n [title]=\"item?.content\"\n >\n {{ item?.content }}\n </cds-tag>\n </div>\n</ng-template>\n", styles: ["::ng-deep .status-selector .cds--label{width:100%;margin-bottom:0!important}::ng-deep .status-selector .cds--multiselect{margin-top:8px}::ng-deep .status-selector-dropdown-template{display:flex;margin-top:-4px}::ng-deep .status-selector-dropdown-template .cds--tag{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:24px;max-width:100%}::ng-deep .status-selector-dropdown-template .generic-span{display:flex;align-items: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: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i3.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: i3.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3.Checkbox, selector: "cds-checkbox, ibm-checkbox", inputs: ["disabled", "skeleton", "hideLabel", "name", "id", "required", "value", "ariaLabel", "ariaLabelledby", "indeterminate", "checked"], outputs: ["click", "checkedChange", "indeterminateChange"] }, { kind: "ngmodule", type: InputModule$1 }, { kind: "component", type: i3.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "cds-tag, ibm-tag", inputs: ["type", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14570
+ }
14571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusSelectorComponent, decorators: [{
14572
+ type: Component,
14573
+ args: [{ selector: 'valtimo-status-selector', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, DropdownModule, CheckboxModule, InputModule$1, TranslateModule, TagModule], 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<cds-label class=\"status-selector\" *ngIf=\"listItems$ | async as listItems\">\n {{ 'dossierManagement.statuses.searchFieldTitle' | translate }}\n\n <cds-dropdown\n [appendInline]=\"false\"\n type=\"multi\"\n [disabled]=\"disabled\"\n selectionFeedback=\"fixed\"\n (selected)=\"itemSelected($event)\"\n >\n <cds-dropdown-list\n [items]=\"listItems\"\n [listTpl]=\"colorDropdownItemTemplate\"\n ></cds-dropdown-list>\n </cds-dropdown>\n</cds-label>\n\n<ng-template #colorDropdownItemTemplate let-item=\"item\">\n <div class=\"status-selector-dropdown-template\">\n <cds-checkbox [checked]=\"item.selected\"></cds-checkbox>\n\n <span *ngIf=\"item.key === CASES_WITHOUT_STATUS_KEY\" class=\"generic-span\">{{\n item?.content\n }}</span>\n\n <cds-tag\n *ngIf=\"item.key !== CASES_WITHOUT_STATUS_KEY\"\n class=\"cds-tag--no-margin\"\n [type]=\"item?.tagType\"\n [title]=\"item?.content\"\n >\n {{ item?.content }}\n </cds-tag>\n </div>\n</ng-template>\n", styles: ["::ng-deep .status-selector .cds--label{width:100%;margin-bottom:0!important}::ng-deep .status-selector .cds--multiselect{margin-top:8px}::ng-deep .status-selector-dropdown-template{display:flex;margin-top:-4px}::ng-deep .status-selector-dropdown-template .cds--tag{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:24px;max-width:100%}::ng-deep .status-selector-dropdown-template .generic-span{display:flex;align-items: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"] }]
14574
+ }], ctorParameters: () => [{ type: i1.TranslateService }], propDecorators: { statuses: [{
14575
+ type: Input
14576
+ }], selectedStatuses: [{
14577
+ type: Input
14578
+ }], carbonTheme: [{
14579
+ type: Input
14580
+ }], disabled: [{
14581
+ type: Input
14582
+ }], selectedStatusesChangeEvent: [{
14583
+ type: Output
14584
+ }] } });
14585
+
14586
+ /*
14587
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
14588
+ *
14589
+ * Licensed under EUPL, Version 1.2 (the "License");
14590
+ * you may not use this file except in compliance with the License.
14591
+ * You may obtain a copy of the License at
14592
+ *
14593
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
14594
+ *
14595
+ * Unless required by applicable law or agreed to in writing, software
14596
+ * distributed under the License is distributed on an "AS IS" basis,
14597
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14598
+ * See the License for the specific language governing permissions and
14599
+ * limitations under the License.
14600
+ */
14601
+ const formioValueResolverSelectorEditForm = () => ({
14602
+ components: [{ key: 'type', type: 'hidden' }],
14603
+ });
14604
+
14605
+ /*
14606
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
14607
+ *
14608
+ * Licensed under EUPL, Version 1.2 (the "License");
14609
+ * you may not use this file except in compliance with the License.
14610
+ * You may obtain a copy of the License at
14611
+ *
14612
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
14613
+ *
14614
+ * Unless required by applicable law or agreed to in writing, software
14615
+ * distributed under the License is distributed on an "AS IS" basis,
14616
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14617
+ * See the License for the specific language governing permissions and
14618
+ * limitations under the License.
14619
+ */
14620
+ const COMPONENT_OPTIONS$1 = {
14621
+ type: 'valtimo-value-resolver-selector',
14622
+ selector: 'valtimo-value-resolver-selector',
14623
+ title: 'Valtimo value resolver selector',
14624
+ group: 'none',
14625
+ icon: 'user',
14626
+ editForm: formioValueResolverSelectorEditForm,
14627
+ schema: {
14628
+ label: 'Valtimo value resolver selector',
14629
+ tableView: true,
14630
+ },
14631
+ };
14632
+ function registerFormioValueResolverSelectorComponent(injector) {
14633
+ // @ts-ignore
14634
+ registerCustomFormioComponent(COMPONENT_OPTIONS$1, FormioValueResolverSelectorComponent, injector);
14635
+ setTimeout(() => {
14636
+ let valtimoWindow = window;
14637
+ valtimoWindow.flags = {
14638
+ ...valtimoWindow.flags,
14639
+ formioValueResolverSelectorComponentRegistered: true,
14640
+ };
14641
+ });
14642
+ }
14643
+
14644
+ const COMPONENT_OPTIONS = {
14645
+ type: 'dummy',
14646
+ selector: 'valtimo-dummy',
14647
+ title: 'Dummy',
14648
+ group: 'none',
14649
+ icon: 'bank',
14650
+ schema: {
14651
+ hidden: true,
14652
+ label: 'Dummy component',
14653
+ key: 'dummy',
14654
+ hideLabel: false,
14655
+ tableView: true,
14656
+ },
14657
+ };
14658
+ function enableCustomFormioComponents(injector) {
14659
+ registerCustomFormioComponent(COMPONENT_OPTIONS, FormioDummyComponent, injector);
14660
+ }
14661
+
14509
14662
  /*
14510
14663
  * Copyright 2015-2024 Ritense BV, the Netherlands.
14511
14664
  *
@@ -16023,154 +16176,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
16023
16176
  }]
16024
16177
  }] });
16025
16178
 
16026
- /*
16027
- * Copyright 2015-2024 Ritense BV, the Netherlands.
16028
- *
16029
- * Licensed under EUPL, Version 1.2 (the "License");
16030
- * you may not use this file except in compliance with the License.
16031
- * You may obtain a copy of the License at
16032
- *
16033
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
16034
- *
16035
- * Unless required by applicable law or agreed to in writing, software
16036
- * distributed under the License is distributed on an "AS IS" basis,
16037
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16038
- * See the License for the specific language governing permissions and
16039
- * limitations under the License.
16040
- */
16041
- class StatusSelectorComponent {
16042
- set statuses(value) {
16043
- this._statuses$.next((value || []).map(status => ({
16044
- ...status,
16045
- tagType: InternalCaseStatusUtils.getTagTypeFromInternalCaseStatusColor(status.color),
16046
- })));
16179
+ class RemoveClassnamesDirective {
16180
+ constructor(el, cdr) {
16181
+ this.el = el;
16182
+ this.cdr = cdr;
16183
+ this.removeClassnames = [];
16047
16184
  }
16048
- set selectedStatuses(value) {
16049
- this._selectedStatuses$.next(value);
16185
+ ngAfterViewInit() {
16186
+ this.removeClasses();
16187
+ setTimeout(() => this.removeClasses());
16188
+ this._observer = new MutationObserver(() => {
16189
+ this.removeClasses();
16190
+ this.cdr.detectChanges();
16191
+ });
16192
+ this._observer.observe(this.el.nativeElement, {
16193
+ childList: true,
16194
+ subtree: true,
16195
+ attributes: true,
16196
+ });
16050
16197
  }
16051
- constructor(translateService) {
16052
- this.translateService = translateService;
16053
- this.carbonTheme = CARBON_THEME.WHITE;
16054
- this.selectedStatusesChangeEvent = new EventEmitter();
16055
- this._statuses$ = new BehaviorSubject([]);
16056
- this._selectedStatuses$ = new BehaviorSubject([]);
16057
- this.CASES_WITHOUT_STATUS_KEY = CASES_WITHOUT_STATUS_KEY;
16058
- this.listItems$ = combineLatest([
16059
- this._statuses$,
16060
- this._selectedStatuses$,
16061
- this.translateService.stream('key'),
16062
- ]).pipe(filter(([statuses, selectedStatuses]) => !!statuses && !!selectedStatuses), map(([statuses, selectedStatuses]) => statuses.map(status => ({
16063
- content: status.key === this.CASES_WITHOUT_STATUS_KEY
16064
- ? this.translateService.instant('dossierManagement.statuses.withoutStatus')
16065
- : status.title,
16066
- selected: !!selectedStatuses.find(selectedStatus => selectedStatus.key === status.key),
16067
- key: status.key,
16068
- tagType: status.tagType,
16069
- }))), distinctUntilChanged((previous, current) => isEqual(previous, current)));
16198
+ ngDoCheck() {
16199
+ this.removeClasses();
16070
16200
  }
16071
- itemSelected(event) {
16072
- const newSelectedItems = event?.filter(item => item?.selected) || [];
16073
- this._statuses$.pipe(take(1)).subscribe(statuses => {
16074
- const newSelectedStatuses = newSelectedItems
16075
- .map(item => statuses.find(status => status.key === item.key))
16076
- .filter(status => !!status);
16077
- this.selectedStatusesChangeEvent.emit(newSelectedStatuses);
16201
+ ngOnDestroy() {
16202
+ this._observer?.disconnect();
16203
+ }
16204
+ removeClasses() {
16205
+ const hostElement = this.el.nativeElement;
16206
+ this.removeClassnames.forEach(className => {
16207
+ if (hostElement.classList.contains(className)) {
16208
+ hostElement.classList.remove(className);
16209
+ }
16210
+ const childElements = this.el.nativeElement.querySelectorAll(`.${className}`);
16211
+ childElements.forEach((element) => {
16212
+ element.classList.remove(className);
16213
+ });
16078
16214
  });
16215
+ this.cdr.markForCheck();
16079
16216
  }
16080
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusSelectorComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
16081
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: StatusSelectorComponent, isStandalone: true, selector: "valtimo-status-selector", inputs: { statuses: "statuses", selectedStatuses: "selectedStatuses", carbonTheme: "carbonTheme", disabled: "disabled" }, outputs: { selectedStatusesChangeEvent: "selectedStatusesChangeEvent" }, 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<cds-label class=\"status-selector\" *ngIf=\"listItems$ | async as listItems\">\n {{ 'dossierManagement.statuses.searchFieldTitle' | translate }}\n\n <cds-dropdown\n [appendInline]=\"false\"\n type=\"multi\"\n [disabled]=\"disabled\"\n selectionFeedback=\"fixed\"\n (selected)=\"itemSelected($event)\"\n >\n <cds-dropdown-list\n [items]=\"listItems\"\n [listTpl]=\"colorDropdownItemTemplate\"\n ></cds-dropdown-list>\n </cds-dropdown>\n</cds-label>\n\n<ng-template #colorDropdownItemTemplate let-item=\"item\">\n <div class=\"status-selector-dropdown-template\">\n <cds-checkbox [checked]=\"item.selected\"></cds-checkbox>\n\n <span *ngIf=\"item.key === CASES_WITHOUT_STATUS_KEY\" class=\"generic-span\">{{\n item?.content\n }}</span>\n\n <cds-tag\n *ngIf=\"item.key !== CASES_WITHOUT_STATUS_KEY\"\n class=\"cds-tag--no-margin\"\n [type]=\"item?.tagType\"\n [title]=\"item?.content\"\n >\n {{ item?.content }}\n </cds-tag>\n </div>\n</ng-template>\n", styles: ["::ng-deep .status-selector .cds--label{width:100%;margin-bottom:0!important}::ng-deep .status-selector .cds--multiselect{margin-top:8px}::ng-deep .status-selector-dropdown-template{display:flex;margin-top:-4px}::ng-deep .status-selector-dropdown-template .cds--tag{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:24px;max-width:100%}::ng-deep .status-selector-dropdown-template .generic-span{display:flex;align-items: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: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i3.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: i3.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3.Checkbox, selector: "cds-checkbox, ibm-checkbox", inputs: ["disabled", "skeleton", "hideLabel", "name", "id", "required", "value", "ariaLabel", "ariaLabelledby", "indeterminate", "checked"], outputs: ["click", "checkedChange", "indeterminateChange"] }, { kind: "ngmodule", type: InputModule$1 }, { kind: "component", type: i3.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: TagModule }, { kind: "component", type: i3.Tag, selector: "cds-tag, ibm-tag", inputs: ["type", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16217
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RemoveClassnamesDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
16218
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.12", type: RemoveClassnamesDirective, isStandalone: true, selector: "[removeClassnames]", inputs: { removeClassnames: "removeClassnames" }, ngImport: i0 }); }
16082
16219
  }
16083
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StatusSelectorComponent, decorators: [{
16084
- type: Component,
16085
- args: [{ selector: 'valtimo-status-selector', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, DropdownModule, CheckboxModule, InputModule$1, TranslateModule, TagModule], 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<cds-label class=\"status-selector\" *ngIf=\"listItems$ | async as listItems\">\n {{ 'dossierManagement.statuses.searchFieldTitle' | translate }}\n\n <cds-dropdown\n [appendInline]=\"false\"\n type=\"multi\"\n [disabled]=\"disabled\"\n selectionFeedback=\"fixed\"\n (selected)=\"itemSelected($event)\"\n >\n <cds-dropdown-list\n [items]=\"listItems\"\n [listTpl]=\"colorDropdownItemTemplate\"\n ></cds-dropdown-list>\n </cds-dropdown>\n</cds-label>\n\n<ng-template #colorDropdownItemTemplate let-item=\"item\">\n <div class=\"status-selector-dropdown-template\">\n <cds-checkbox [checked]=\"item.selected\"></cds-checkbox>\n\n <span *ngIf=\"item.key === CASES_WITHOUT_STATUS_KEY\" class=\"generic-span\">{{\n item?.content\n }}</span>\n\n <cds-tag\n *ngIf=\"item.key !== CASES_WITHOUT_STATUS_KEY\"\n class=\"cds-tag--no-margin\"\n [type]=\"item?.tagType\"\n [title]=\"item?.content\"\n >\n {{ item?.content }}\n </cds-tag>\n </div>\n</ng-template>\n", styles: ["::ng-deep .status-selector .cds--label{width:100%;margin-bottom:0!important}::ng-deep .status-selector .cds--multiselect{margin-top:8px}::ng-deep .status-selector-dropdown-template{display:flex;margin-top:-4px}::ng-deep .status-selector-dropdown-template .cds--tag{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:24px;max-width:100%}::ng-deep .status-selector-dropdown-template .generic-span{display:flex;align-items: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"] }]
16086
- }], ctorParameters: () => [{ type: i1.TranslateService }], propDecorators: { statuses: [{
16087
- type: Input
16088
- }], selectedStatuses: [{
16089
- type: Input
16090
- }], carbonTheme: [{
16091
- type: Input
16092
- }], disabled: [{
16220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RemoveClassnamesDirective, decorators: [{
16221
+ type: Directive,
16222
+ args: [{
16223
+ selector: '[removeClassnames]',
16224
+ standalone: true,
16225
+ }]
16226
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { removeClassnames: [{
16093
16227
  type: Input
16094
- }], selectedStatusesChangeEvent: [{
16095
- type: Output
16096
16228
  }] } });
16097
16229
 
16098
- /*
16099
- * Copyright 2015-2024 Ritense BV, the Netherlands.
16100
- *
16101
- * Licensed under EUPL, Version 1.2 (the "License");
16102
- * you may not use this file except in compliance with the License.
16103
- * You may obtain a copy of the License at
16104
- *
16105
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
16106
- *
16107
- * Unless required by applicable law or agreed to in writing, software
16108
- * distributed under the License is distributed on an "AS IS" basis,
16109
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16110
- * See the License for the specific language governing permissions and
16111
- * limitations under the License.
16112
- */
16113
- const formioValueResolverSelectorEditForm = () => ({
16114
- components: [{ key: 'type', type: 'hidden' }],
16115
- });
16116
-
16117
- /*
16118
- * Copyright 2015-2024 Ritense BV, the Netherlands.
16119
- *
16120
- * Licensed under EUPL, Version 1.2 (the "License");
16121
- * you may not use this file except in compliance with the License.
16122
- * You may obtain a copy of the License at
16123
- *
16124
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
16125
- *
16126
- * Unless required by applicable law or agreed to in writing, software
16127
- * distributed under the License is distributed on an "AS IS" basis,
16128
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16129
- * See the License for the specific language governing permissions and
16130
- * limitations under the License.
16131
- */
16132
- const COMPONENT_OPTIONS$1 = {
16133
- type: 'valtimo-value-resolver-selector',
16134
- selector: 'valtimo-value-resolver-selector',
16135
- title: 'Valtimo value resolver selector',
16136
- group: 'none',
16137
- icon: 'user',
16138
- editForm: formioValueResolverSelectorEditForm,
16139
- schema: {
16140
- label: 'Valtimo value resolver selector',
16141
- tableView: true,
16142
- },
16143
- };
16144
- function registerFormioValueResolverSelectorComponent(injector) {
16145
- // @ts-ignore
16146
- registerCustomFormioComponent(COMPONENT_OPTIONS$1, FormioValueResolverSelectorComponent, injector);
16147
- setTimeout(() => {
16148
- let valtimoWindow = window;
16149
- valtimoWindow.flags = {
16150
- ...valtimoWindow.flags,
16151
- formioValueResolverSelectorComponentRegistered: true,
16152
- };
16153
- });
16154
- }
16155
-
16156
- const COMPONENT_OPTIONS = {
16157
- type: 'dummy',
16158
- selector: 'valtimo-dummy',
16159
- title: 'Dummy',
16160
- group: 'none',
16161
- icon: 'bank',
16162
- schema: {
16163
- hidden: true,
16164
- label: 'Dummy component',
16165
- key: 'dummy',
16166
- hideLabel: false,
16167
- tableView: true,
16168
- },
16169
- };
16170
- function enableCustomFormioComponents(injector) {
16171
- registerCustomFormioComponent(COMPONENT_OPTIONS, FormioDummyComponent, injector);
16172
- }
16173
-
16174
16230
  /*
16175
16231
  * Copyright 2015-2024 Ritense BV, the Netherlands.
16176
16232
  *
@@ -16261,5 +16317,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
16261
16317
  * Generated bundle index. Do not edit.
16262
16318
  */
16263
16319
 
16264
- export { Alert, AlertComponent, AlertModule, AlertService, AlertType, AlertsOptionsImpl, BOOLEAN_CONVERTER_VALUES, BpmnJsDiagramComponent, BpmnJsDiagramModule, BreadcrumbNavigationComponent, BreadcrumbNavigationModule, BreadcrumbService, ButtonComponent, ButtonModule, CARBON_CONSTANTS, CARBON_THEME, CASES_WITHOUT_STATUS_KEY, CamundaFormComponent, CamundaFormModule, CarbonListComponent, CarbonListFilterPipe, CarbonListModule, CarbonMultiInputComponent, CarbonMultiInputModule, CarbonNoResultsComponent, CardComponent, CardModule, CaseCountPipe, CaseTagsSelectorComponent, CdsThemeService, ChoiceFieldService, CommandClickDirectiveModule, ComponentsPipesModule, ConfirmationModalComponent, ConfirmationModalModule, CtrlClickDirective, CurrentCarbonTheme, CustomTagsService, DEFAULT_LIST_TRANSLATIONS, DEFAULT_PAGINATION, DEFAULT_PAGINATOR_CONFIG, DataListComponent, DataListModule, DatePickerComponent, DatePickerModule, DigitOnlyDirective, DropzoneComponent, DropzoneModule, EditorComponent, EditorModule, EllipsisPipe, ExpansionPanelComponent, ExpansionPanelModule, FieldAutoFocusDirective, FieldAutoFocusModule, FileSizeModule, FileSizePipe, FilterSidebarComponent, FilterSidebarModule, FitPageDirective, FitPageDirectiveModule, FormComponent, FormIoCurrencyComponent, FormIoCurrentUserComponent, FormIoDomService, FormIoIbanComponent, FormIoModule, FormIoStateService, FormIoUploaderComponent, FormModule, FormioBuilderComponent, FormioComponent, FormioDummyComponent, FormioOptionsImpl, FormioValueResolverSelectorComponent, InputComponent, InputLabelComponent, InputLabelModule, InputModule, IsArrayPipe, KeyGeneratorService, LeftSidebarComponent, LeftSidebarModule, ListComponent, ListFilterPipe, ListModule, MenuItemTextComponent, MenuItemTranslationPipe, MenuModule, MenuRoutingModule, MenuService, ModalComponent, ModalModule, ModalService, MonacoTheme, MoveRowDirection, MultiInputFormComponent, MultiInputFormModule, MultiselectDropdownComponent, MultiselectDropdownModule, PageContainerComponent, PageContentComponent, PageHeaderActionsComponent, PageHeaderComponent, PageHeaderIntroductionComponent, PageHeaderModule, PageHeaderService, PageModule, PageSubtitleService, PageTitleComponent, PageTitleModule, PageTitleService, ParagraphComponent, ParagraphModule, PendingChangesComponent, PendingChangesService, ProgressBarComponent, ProgressBarModule, PromptComponent, PromptModule, PromptService, RadioComponent, RadioModule, RenderInPageHeaderDirective, RenderInPageHeaderDirectiveModule, RenderPageHeaderDirective, RenderPageHeaderDirectiveModule, RightSidebarComponent, RightSidebarModule, SearchFieldsComponent, SearchFieldsModule, SearchableDropdownComponent, SearchableDropdownModule, SearchableDropdownSelectComponent, SearchableDropdownSelectModule, SelectComponent, SelectModule, SelectableCarbonTheme, ShellService, SpinnerComponent, SpinnerModule, StatusSelectorComponent, StepperContainerComponent, StepperContentComponent, StepperFooterComponent, StepperFooterStepComponent, StepperHeaderComponent, StepperModule, StepperService, StepperStepComponent, TAG_ELLIPSIS_LIMIT, TableComponent, TableModule, TimelineComponent, TimelineItemImpl, TimelineModule, TitleComponent, TitleModule, TooltipComponent, TooltipDirective, TooltipIconComponent, TooltipIconModule, TooltipModule, TopbarComponent, TopbarModule, UploaderComponent, UploaderDragDropDirective, UploaderModule, UserInterfaceService, VCardComponent, VCardModule, VModalComponent, VModalModule, VPageHeaderComponent, ValtimoCdsModalDirective, ValtimoCdsModalDirectiveModule, ValtimoCdsOverflowButtonDirective, ValtimoCdsOverflowButtonDirectiveModule, ValtimoModalService, ValuePathSelectorComponent, ValuePathSelectorInputMode, ValuePathSelectorPrefix, ValuePathSelectorService, ValuePathType, ViewContentService, ViewType, WebcamComponent, WebcamModule, WidgetComponent, WidgetModule, createCustomFormioComponent, customUploaderType, enableCustomFormioComponents, menuInitializer, pendingChangesGuard, registerCustomFormioComponent, registerCustomFormioComponentWithClass, registerCustomTag, registerCustomTags, registerFormioCurrencyComponent, registerFormioCurrentUserComponent, registerFormioFileSelectorComponent, registerFormioIbanComponent, registerFormioUploadComponent, registerFormioValueResolverSelectorComponent };
16320
+ export { Alert, AlertComponent, AlertModule, AlertService, AlertType, AlertsOptionsImpl, BOOLEAN_CONVERTER_VALUES, BpmnJsDiagramComponent, BpmnJsDiagramModule, BreadcrumbNavigationComponent, BreadcrumbNavigationModule, BreadcrumbService, ButtonComponent, ButtonModule, CARBON_CONSTANTS, CARBON_THEME, CASES_WITHOUT_STATUS_KEY, CamundaFormComponent, CamundaFormModule, CarbonListComponent, CarbonListFilterPipe, CarbonListModule, CarbonMultiInputComponent, CarbonMultiInputModule, CarbonNoResultsComponent, CardComponent, CardModule, CaseCountPipe, CaseTagsSelectorComponent, CdsThemeService, ChoiceFieldService, CommandClickDirectiveModule, ComponentsPipesModule, ConfirmationModalComponent, ConfirmationModalModule, CtrlClickDirective, CurrentCarbonTheme, CustomTagsService, DEFAULT_LIST_TRANSLATIONS, DEFAULT_PAGINATION, DEFAULT_PAGINATOR_CONFIG, DataListComponent, DataListModule, DatePickerComponent, DatePickerModule, DigitOnlyDirective, DropzoneComponent, DropzoneModule, EditorComponent, EditorModule, EllipsisPipe, ExpansionPanelComponent, ExpansionPanelModule, FieldAutoFocusDirective, FieldAutoFocusModule, FileSizeModule, FileSizePipe, FilterSidebarComponent, FilterSidebarModule, FitPageDirective, FitPageDirectiveModule, FormComponent, FormIoCurrencyComponent, FormIoCurrentUserComponent, FormIoDomService, FormIoIbanComponent, FormIoModule, FormIoStateService, FormIoUploaderComponent, FormModule, FormioBuilderComponent, FormioComponent, FormioDummyComponent, FormioOptionsImpl, FormioValueResolverSelectorComponent, InputComponent, InputLabelComponent, InputLabelModule, InputModule, IsArrayPipe, KeyGeneratorService, LeftSidebarComponent, LeftSidebarModule, ListComponent, ListFilterPipe, ListModule, MenuItemTextComponent, MenuItemTranslationPipe, MenuModule, MenuRoutingModule, MenuService, ModalComponent, ModalModule, ModalService, MonacoTheme, MoveRowDirection, MultiInputFormComponent, MultiInputFormModule, MultiselectDropdownComponent, MultiselectDropdownModule, PageContainerComponent, PageContentComponent, PageHeaderActionsComponent, PageHeaderComponent, PageHeaderIntroductionComponent, PageHeaderModule, PageHeaderService, PageModule, PageSubtitleService, PageTitleComponent, PageTitleModule, PageTitleService, ParagraphComponent, ParagraphModule, PendingChangesComponent, PendingChangesService, ProgressBarComponent, ProgressBarModule, PromptComponent, PromptModule, PromptService, RadioComponent, RadioModule, RemoveClassnamesDirective, RenderInPageHeaderDirective, RenderInPageHeaderDirectiveModule, RenderPageHeaderDirective, RenderPageHeaderDirectiveModule, RightSidebarComponent, RightSidebarModule, SearchFieldsComponent, SearchFieldsModule, SearchableDropdownComponent, SearchableDropdownModule, SearchableDropdownSelectComponent, SearchableDropdownSelectModule, SelectComponent, SelectModule, SelectableCarbonTheme, ShellService, SpinnerComponent, SpinnerModule, StatusSelectorComponent, StepperContainerComponent, StepperContentComponent, StepperFooterComponent, StepperFooterStepComponent, StepperHeaderComponent, StepperModule, StepperService, StepperStepComponent, TAG_ELLIPSIS_LIMIT, TableComponent, TableModule, TimelineComponent, TimelineItemImpl, TimelineModule, TitleComponent, TitleModule, TooltipComponent, TooltipDirective, TooltipIconComponent, TooltipIconModule, TooltipModule, TopbarComponent, TopbarModule, UploaderComponent, UploaderDragDropDirective, UploaderModule, UserInterfaceService, VCardComponent, VCardModule, VModalComponent, VModalModule, VPageHeaderComponent, ValtimoCdsModalDirective, ValtimoCdsModalDirectiveModule, ValtimoCdsOverflowButtonDirective, ValtimoCdsOverflowButtonDirectiveModule, ValtimoModalService, ValuePathSelectorComponent, ValuePathSelectorInputMode, ValuePathSelectorPrefix, ValuePathSelectorService, ValuePathType, ViewContentService, ViewType, WebcamComponent, WebcamModule, WidgetComponent, WidgetModule, createCustomFormioComponent, customUploaderType, enableCustomFormioComponents, menuInitializer, pendingChangesGuard, registerCustomFormioComponent, registerCustomFormioComponentWithClass, registerCustomTag, registerCustomTags, registerFormioCurrencyComponent, registerFormioCurrentUserComponent, registerFormioFileSelectorComponent, registerFormioIbanComponent, registerFormioUploadComponent, registerFormioValueResolverSelectorComponent };
16265
16321
  //# sourceMappingURL=valtimo-components.mjs.map