ngx-t-forms 2.0.22 → 2.0.24

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.
Files changed (67) hide show
  1. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_64f1LO.mjs → ngx-t-forms-calculated-field-rules.component-BUKzXsXn.mjs} +16 -16
  2. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_64f1LO.mjs.map → ngx-t-forms-calculated-field-rules.component-BUKzXsXn.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Bt3aFR_M.mjs → ngx-t-forms-chip-options-creator-editor.component-C00n6tFs.mjs} +7 -7
  4. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Bt3aFR_M.mjs.map → ngx-t-forms-chip-options-creator-editor.component-C00n6tFs.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D9ViNgwt.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DtfUKZL-.mjs} +10 -10
  6. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D9ViNgwt.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-DtfUKZL-.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-data-source-picker.component-Dxwhl2-a.mjs → ngx-t-forms-data-source-picker.component-BBEQuzn2.mjs} +12 -12
  8. package/fesm2022/{ngx-t-forms-data-source-picker.component-Dxwhl2-a.mjs.map → ngx-t-forms-data-source-picker.component-BBEQuzn2.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-GB_9b-4L.mjs → ngx-t-forms-document-list-label-config-editor.component-D6kwe89h.mjs} +10 -10
  10. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-GB_9b-4L.mjs.map → ngx-t-forms-document-list-label-config-editor.component-D6kwe89h.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-form-input-selector.component-C5Amatf0.mjs → ngx-t-forms-form-input-selector.component-CniLZN1h.mjs} +8 -8
  12. package/fesm2022/{ngx-t-forms-form-input-selector.component-C5Amatf0.mjs.map → ngx-t-forms-form-input-selector.component-CniLZN1h.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-form-json-view.component-CQg4E5ba.mjs → ngx-t-forms-form-json-view.component-bnjkxqgV.mjs} +5 -5
  14. package/fesm2022/{ngx-t-forms-form-json-view.component-CQg4E5ba.mjs.map → ngx-t-forms-form-json-view.component-bnjkxqgV.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-form-section-stepper.component-C0kP-AiW.mjs → ngx-t-forms-form-section-stepper.component-DFbYNeAi.mjs} +11 -11
  16. package/fesm2022/{ngx-t-forms-form-section-stepper.component-C0kP-AiW.mjs.map → ngx-t-forms-form-section-stepper.component-DFbYNeAi.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CbaZ8wSc.mjs → ngx-t-forms-forms-builder-menu.component-DBEgmcSi.mjs} +19 -19
  18. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CbaZ8wSc.mjs.map → ngx-t-forms-forms-builder-menu.component-DBEgmcSi.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-input-editor.component-DyVAn2Pd.mjs → ngx-t-forms-input-editor.component-BBP90B_e.mjs} +16 -16
  20. package/fesm2022/{ngx-t-forms-input-editor.component-DyVAn2Pd.mjs.map → ngx-t-forms-input-editor.component-BBP90B_e.mjs.map} +1 -1
  21. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CQ76110I.mjs +103 -0
  22. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CQ76110I.mjs.map +1 -0
  23. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CW5hzpi3.mjs → ngx-t-forms-mat-slider-editor.component-CIiYyxkb.mjs} +5 -5
  24. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CW5hzpi3.mjs.map → ngx-t-forms-mat-slider-editor.component-CIiYyxkb.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-uh7fK-kw.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DDR2JurF.mjs} +5 -5
  26. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-uh7fK-kw.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-DDR2JurF.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-missing-form-configs.component-CYN9mVz9.mjs +28 -0
  28. package/fesm2022/{ngx-t-forms-missing-form-configs.component-DXauybu2.mjs.map → ngx-t-forms-missing-form-configs.component-CYN9mVz9.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cat-o3zD.mjs → ngx-t-forms-mscoa-segment-config.component-C9zKzzzX.mjs} +13 -13
  30. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-Cat-o3zD.mjs.map → ngx-t-forms-mscoa-segment-config.component-C9zKzzzX.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-ngx-t-forms-CHdFFTXs.mjs → ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs} +998 -269
  32. package/fesm2022/ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-pipeline-generator.component-bqBbOv1s.mjs → ngx-t-forms-pipeline-generator.component-CGKxfvvC.mjs} +26 -26
  34. package/fesm2022/{ngx-t-forms-pipeline-generator.component-bqBbOv1s.mjs.map → ngx-t-forms-pipeline-generator.component-CGKxfvvC.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-required-inputs.component-pBuYge0L.mjs → ngx-t-forms-required-inputs.component-Bktx1QGr.mjs} +14 -14
  36. package/fesm2022/{ngx-t-forms-required-inputs.component-pBuYge0L.mjs.map → ngx-t-forms-required-inputs.component-Bktx1QGr.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-o2RDNMBk.mjs → ngx-t-forms-rest-api-call-setup.component-BcItch1n.mjs} +12 -12
  38. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-o2RDNMBk.mjs.map → ngx-t-forms-rest-api-call-setup.component-BcItch1n.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-section-report.component-5c0zmsRd.mjs → ngx-t-forms-section-report.component-Cn_oWXBX.mjs} +8 -8
  40. package/fesm2022/{ngx-t-forms-section-report.component-5c0zmsRd.mjs.map → ngx-t-forms-section-report.component-Cn_oWXBX.mjs.map} +1 -1
  41. package/fesm2022/ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs +187 -0
  42. package/fesm2022/ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs.map +1 -0
  43. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CezFgp2z.mjs +171 -0
  44. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CezFgp2z.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-validators-config.component-OIfd1D8o.mjs → ngx-t-forms-validators-config.component-4Iy5uJj3.mjs} +14 -14
  46. package/fesm2022/{ngx-t-forms-validators-config.component-OIfd1D8o.mjs.map → ngx-t-forms-validators-config.component-4Iy5uJj3.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms.mjs +1 -1
  48. package/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.d.ts +3 -0
  49. package/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.d.ts +40 -9
  50. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.d.ts +9 -0
  51. package/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.d.ts +9 -3
  52. package/lib/components/t-form-input/elements/workflow-adjudication/elements/point-assignment/elements/point-assignment-dialog/point-assignment-dialog.component.d.ts +41 -0
  53. package/lib/components/t-form-input/elements/workflow-adjudication/elements/point-assignment/point-assignment.component.d.ts +44 -0
  54. package/lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/elements/submission-review-dialog/submission-review-dialog.component.d.ts +27 -0
  55. package/lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/submission-review.component.d.ts +5 -10
  56. package/lib/components/t-form-input/elements/workflow-adjudication/elements/supplier-selection/supplier-selection.component.d.ts +33 -0
  57. package/lib/components/user-form-stepper/user-form-stepper.component.d.ts +6 -1
  58. package/lib/services/core/tour/tour-manager.service.d.ts +9 -1
  59. package/package.json +2 -2
  60. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bl1xoQAO.mjs +0 -95
  61. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bl1xoQAO.mjs.map +0 -1
  62. package/fesm2022/ngx-t-forms-missing-form-configs.component-DXauybu2.mjs +0 -28
  63. package/fesm2022/ngx-t-forms-ngx-t-forms-CHdFFTXs.mjs.map +0 -1
  64. package/fesm2022/ngx-t-forms-selection-options-editor.component-B0mVpnCm.mjs +0 -145
  65. package/fesm2022/ngx-t-forms-selection-options-editor.component-B0mVpnCm.mjs.map +0 -1
  66. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CxUoYxE3.mjs +0 -171
  67. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CxUoYxE3.mjs.map +0 -1
@@ -0,0 +1,187 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, HostBinding, Optional, Self, Component } from '@angular/core';
3
+ import * as i2$1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@angular/forms';
6
+ import { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
7
+ import { v4 } from 'uuid';
8
+ import _ from 'lodash';
9
+ import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs';
10
+ import { MatFormFieldControl } from '@angular/material/form-field';
11
+ import { Subject } from 'rxjs';
12
+ import * as i2 from '@angular/material/button';
13
+ import * as i3 from '@angular/material/card';
14
+ import * as i5 from '@angular/material/chips';
15
+ import * as i3$1 from '@angular/material/icon';
16
+ import * as i3$2 from '@angular/material/select';
17
+ import * as i8 from '@angular/material/toolbar';
18
+ import * as i8$1 from '@angular/material/tooltip';
19
+ import * as i8$2 from '@angular/material/input';
20
+
21
+ class SelectionOptionsEditorComponent {
22
+ static { this.nextId = 0; }
23
+ constructor(ngControl, _elementRef) {
24
+ this.ngControl = ngControl;
25
+ this._elementRef = _elementRef;
26
+ this.stateChanges = new Subject();
27
+ this.errors = [];
28
+ this.id = `app-selection-options-editor-${SelectionOptionsEditorComponent.nextId++}`;
29
+ this.placeholder = '';
30
+ this.focused = false;
31
+ this.required = false;
32
+ this.disabled = false;
33
+ this.touched = false;
34
+ this.onTouched = () => { };
35
+ // --- Component Logic ---
36
+ this._options = [];
37
+ this.valueChanged = new EventEmitter();
38
+ this.inEdit = null; // Can be an existing option or a new object {}
39
+ this.isAutoCamelCase = true; // Feature toggle for auto camelCase
40
+ }
41
+ get empty() {
42
+ return !this.value;
43
+ }
44
+ get shouldLabelFloat() {
45
+ return this.focused || !this.empty;
46
+ }
47
+ get errorState() {
48
+ const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched;
49
+ return !this.value && !!this.required || hasError;
50
+ }
51
+ setDescribedByIds(ids) {
52
+ // Ensure the component view is initialized
53
+ if (this._elementRef && this._elementRef.nativeElement) {
54
+ const controlElement = this._elementRef.nativeElement.querySelector('.app-selection-options-editor');
55
+ // Check if the controlElement exists before attempting to set its attribute
56
+ if (controlElement) {
57
+ controlElement.setAttribute('aria-describedby', ids.join(' '));
58
+ }
59
+ }
60
+ }
61
+ onContainerClick(event) {
62
+ this.markAsTouched();
63
+ this.stateChanges.next();
64
+ }
65
+ markAsTouched() {
66
+ console.log('markAsTouched');
67
+ if (!this.touched) {
68
+ this.onTouched();
69
+ this.touched = true;
70
+ }
71
+ }
72
+ get options() {
73
+ return this._options || [];
74
+ }
75
+ set options(val) {
76
+ if (Array.isArray(val)) {
77
+ this._options = val;
78
+ }
79
+ }
80
+ /**
81
+ * Prepares the form to add a new option.
82
+ */
83
+ add() {
84
+ this.inEdit = {}; // A new option is represented by an empty object
85
+ this.createForm(this.inEdit);
86
+ }
87
+ /**
88
+ * Prepares the form to edit an existing option.
89
+ * @param option The option to be edited.
90
+ */
91
+ startEdit(option) {
92
+ // Consistently set the form for editing without toggling
93
+ this.inEdit = { ...option }; // Use a copy to avoid mutating the original object until save
94
+ this.createForm(this.inEdit);
95
+ }
96
+ /**
97
+ * Closes the editor form without saving changes.
98
+ */
99
+ closeEdit() {
100
+ this.inEdit = null;
101
+ }
102
+ /**
103
+ * Removes an option from the list after user confirmation.
104
+ * @param option The option to be removed.
105
+ */
106
+ remove(option) {
107
+ // ✨ IMPROVEMENT: Add confirmation before a destructive action
108
+ if (confirm(`Are you sure you want to delete the option "${option.label}"?`)) {
109
+ this.options = _.reject(this.options, { id: option.id });
110
+ this.valueChanged.emit(this.options);
111
+ // If the deleted option was being edited, close the form
112
+ if (this.inEdit && this.inEdit.id === option.id) {
113
+ this.closeEdit();
114
+ }
115
+ }
116
+ }
117
+ /**
118
+ * Saves the new or edited option and updates the list.
119
+ */
120
+ save() {
121
+ if (this.form.invalid)
122
+ return;
123
+ const formValue = this.form.value;
124
+ // If inEdit has an ID, we are updating an existing option
125
+ if (this.inEdit?.id) {
126
+ const updatedOption = { ...this.inEdit, ...formValue };
127
+ const index = _.findIndex(this.options, { id: updatedOption.id });
128
+ if (index !== -1) {
129
+ this.options[index] = updatedOption;
130
+ }
131
+ }
132
+ else {
133
+ // Otherwise, we are adding a new option with a unique ID
134
+ const newOption = { ...formValue, id: v4() };
135
+ this.options.push(newOption);
136
+ }
137
+ this.valueChanged.emit(this.options);
138
+ this.closeEdit();
139
+ }
140
+ /**
141
+ * ✨ NEW: Automatically populates the 'value' field by converting
142
+ * the 'label' to camelCase when the value is empty.
143
+ */
144
+ autoFillValueFromLabel() {
145
+ if (this.isAutoCamelCase && this.form) {
146
+ const labelValue = this.form.get('label')?.value;
147
+ const valueControl = this.form.get('value');
148
+ // Only fill if a label exists and the value is currently empty
149
+ if (labelValue && !valueControl?.value) {
150
+ valueControl?.setValue(_.camelCase(labelValue));
151
+ }
152
+ }
153
+ }
154
+ /**
155
+ * Initializes the reactive form for adding or editing.
156
+ * @param data The option data to populate the form with.
157
+ */
158
+ createForm(data) {
159
+ this.form = new FormGroup({
160
+ label: new FormControl(data.label || '', Validators.required),
161
+ value: new FormControl(data.value || '', Validators.required),
162
+ });
163
+ }
164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectionOptionsEditorComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
165
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: SelectionOptionsEditorComponent, isStandalone: true, selector: "app-selection-options-editor", inputs: { errors: "errors", disabled: "disabled", options: "options" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: SelectionOptionsEditorComponent }], ngImport: i0, template: "<mat-chip-listbox style=\"overflow-x: scroll;\" aria-label=\"Option selection\" [disabled]=\"disabled\">\r\n @for (option of options; track option.id) {\r\n <mat-chip-option \r\n style=\"min-width: fit-content;\"\r\n (click)=\"startEdit(option)\"\r\n color=\"accent\" \r\n [value]=\"option.value\"\r\n [selected]=\"inEdit?.id === option.id\">\r\n \r\n {{ option.label }}\r\n <button matChipRemove (click)=\"$event.stopPropagation(); remove(option)\" [attr.aria-label]=\"'Remove ' + option.label\">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n\r\n<mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n</mat-toolbar>\r\n\r\n<mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-subtitle>{{ inEdit.id ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px;\">\r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field\r\n style=\"margin-bottom: 16px;\"\r\n subscriptSizing=\"dynamic\"\r\n floatLabel=\"always\"\r\n appearance=\"outline\">\r\n <mat-label>Display Text</mat-label>\r\n <input\r\n type=\"text\"\r\n matInput\r\n formControlName=\"label\"\r\n placeholder=\"Enter option text\"\r\n (blur)=\"autoFillValueFromLabel()\" />\r\n <mat-hint>The text users will see and select from the list.</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\r\n <mat-label>Stored Value</mat-label>\r\n <input\r\n type=\"text\"\r\n matInput\r\n formControlName=\"value\"\r\n placeholder=\"Enter data value\"\r\n />\r\n <button matTooltip=\"Toggle auto-creation of value from display text\" \r\n [color]=\"isAutoCamelCase ? 'primary' : ''\" \r\n (click)=\"isAutoCamelCase = !isAutoCamelCase\" \r\n matSuffix\r\n mat-icon-button>\r\n <mat-icon>{{ isAutoCamelCase ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\r\n </button>\r\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\r\n </mat-form-field>\r\n </form>\r\n </mat-card-content>\r\n\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\r\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\r\n {{ inEdit.id ? 'Save Changes' : 'Add Option' }}\r\n </button>\r\n </mat-card-actions>\r\n</mat-card>", styles: ["mat-form-field{width:100%!important;background:azure}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: i5.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i5.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i5.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i8$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i8$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
166
+ }
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: SelectionOptionsEditorComponent, decorators: [{
168
+ type: Component,
169
+ args: [{ selector: 'app-selection-options-editor', standalone: true, imports: [MatModulesModule, ReactiveFormsModule, CommonModule], providers: [{ provide: MatFormFieldControl, useExisting: SelectionOptionsEditorComponent }], template: "<mat-chip-listbox style=\"overflow-x: scroll;\" aria-label=\"Option selection\" [disabled]=\"disabled\">\r\n @for (option of options; track option.id) {\r\n <mat-chip-option \r\n style=\"min-width: fit-content;\"\r\n (click)=\"startEdit(option)\"\r\n color=\"accent\" \r\n [value]=\"option.value\"\r\n [selected]=\"inEdit?.id === option.id\">\r\n \r\n {{ option.label }}\r\n <button matChipRemove (click)=\"$event.stopPropagation(); remove(option)\" [attr.aria-label]=\"'Remove ' + option.label\">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n\r\n<mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n</mat-toolbar>\r\n\r\n<mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-subtitle>{{ inEdit.id ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px;\">\r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field\r\n style=\"margin-bottom: 16px;\"\r\n subscriptSizing=\"dynamic\"\r\n floatLabel=\"always\"\r\n appearance=\"outline\">\r\n <mat-label>Display Text</mat-label>\r\n <input\r\n type=\"text\"\r\n matInput\r\n formControlName=\"label\"\r\n placeholder=\"Enter option text\"\r\n (blur)=\"autoFillValueFromLabel()\" />\r\n <mat-hint>The text users will see and select from the list.</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\r\n <mat-label>Stored Value</mat-label>\r\n <input\r\n type=\"text\"\r\n matInput\r\n formControlName=\"value\"\r\n placeholder=\"Enter data value\"\r\n />\r\n <button matTooltip=\"Toggle auto-creation of value from display text\" \r\n [color]=\"isAutoCamelCase ? 'primary' : ''\" \r\n (click)=\"isAutoCamelCase = !isAutoCamelCase\" \r\n matSuffix\r\n mat-icon-button>\r\n <mat-icon>{{ isAutoCamelCase ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\r\n </button>\r\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\r\n </mat-form-field>\r\n </form>\r\n </mat-card-content>\r\n\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\r\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\r\n {{ inEdit.id ? 'Save Changes' : 'Add Option' }}\r\n </button>\r\n </mat-card-actions>\r\n</mat-card>", styles: ["mat-form-field{width:100%!important;background:azure}\n"] }]
170
+ }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
171
+ type: Optional
172
+ }, {
173
+ type: Self
174
+ }] }, { type: i0.ElementRef }], propDecorators: { errors: [{
175
+ type: Input
176
+ }], id: [{
177
+ type: HostBinding
178
+ }], disabled: [{
179
+ type: Input
180
+ }], options: [{
181
+ type: Input
182
+ }], valueChanged: [{
183
+ type: Output
184
+ }] } });
185
+
186
+ export { SelectionOptionsEditorComponent };
187
+ //# sourceMappingURL=ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormControl, FormGroup, NgControl, ReactiveFormsModule, Validators } from '@angular/forms';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport _ from 'lodash';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n// Defined an interface for type safety and clarity\r\ninterface Option {\r\n id: string;\r\n label: string;\r\n value: string;\r\n}\r\n\r\n@Component({\r\n selector: 'app-selection-options-editor',\r\n standalone: true,\r\n imports: [MatModulesModule, ReactiveFormsModule, CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting:SelectionOptionsEditorComponent }],\r\n templateUrl: './selection-options-editor.component.html',\r\n styleUrl: './selection-options-editor.component.scss'\r\n})\r\nexport class SelectionOptionsEditorComponent implements MatFormFieldControl<any> {\r\n value: any;\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @HostBinding() id = `app-selection-options-editor-${SelectionOptionsEditorComponent.nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\n @Input() disabled: boolean = false;\r\nget errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.app-selection-options-editor');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n\r\n // --- Component Logic ---\r\n private _options: Option[] = [];\r\n @Input()\r\n get options(): Option[] {\r\n return this._options || [];\r\n }\r\n set options(val: Option[]) {\r\n if (Array.isArray(val)) {\r\n this._options = val;\r\n }\r\n }\r\n\r\n @Output() valueChanged = new EventEmitter<Option[]>();\r\n\r\n inEdit: any | null = null; // Can be an existing option or a new object {}\r\n form!: FormGroup;\r\n isAutoCamelCase: boolean = true; // Feature toggle for auto camelCase\r\n\r\n /**\r\n * Prepares the form to add a new option.\r\n */\r\n add(): void {\r\n this.inEdit = {}; // A new option is represented by an empty object\r\n this.createForm(this.inEdit);\r\n }\r\n\r\n /**\r\n * Prepares the form to edit an existing option.\r\n * @param option The option to be edited.\r\n */\r\n startEdit(option: Option): void {\r\n // Consistently set the form for editing without toggling\r\n this.inEdit = { ...option }; // Use a copy to avoid mutating the original object until save\r\n this.createForm(this.inEdit);\r\n }\r\n\r\n /**\r\n * Closes the editor form without saving changes.\r\n */\r\n closeEdit(): void {\r\n this.inEdit = null;\r\n }\r\n\r\n /**\r\n * Removes an option from the list after user confirmation.\r\n * @param option The option to be removed.\r\n */\r\n remove(option: Option): void {\r\n // ✨ IMPROVEMENT: Add confirmation before a destructive action\r\n if (confirm(`Are you sure you want to delete the option \"${option.label}\"?`)) {\r\n this.options = _.reject(this.options, { id: option.id });\r\n this.valueChanged.emit(this.options);\r\n // If the deleted option was being edited, close the form\r\n if (this.inEdit && this.inEdit.id === option.id) {\r\n this.closeEdit();\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Saves the new or edited option and updates the list.\r\n */\r\n save(): void {\r\n if (this.form.invalid) return;\r\n\r\n const formValue = this.form.value;\r\n // If inEdit has an ID, we are updating an existing option\r\n if (this.inEdit?.id) {\r\n const updatedOption = { ...this.inEdit, ...formValue };\r\n const index = _.findIndex(this.options, { id: updatedOption.id });\r\n if (index !== -1) {\r\n this.options[index] = updatedOption;\r\n }\r\n } else {\r\n // Otherwise, we are adding a new option with a unique ID\r\n const newOption = { ...formValue, id: uuidv4() };\r\n this.options.push(newOption);\r\n }\r\n \r\n this.valueChanged.emit(this.options);\r\n this.closeEdit();\r\n }\r\n \r\n /**\r\n * ✨ NEW: Automatically populates the 'value' field by converting \r\n * the 'label' to camelCase when the value is empty.\r\n */\r\n autoFillValueFromLabel(): void {\r\n if (this.isAutoCamelCase && this.form) {\r\n const labelValue = this.form.get('label')?.value;\r\n const valueControl = this.form.get('value');\r\n\r\n // Only fill if a label exists and the value is currently empty\r\n if (labelValue && !valueControl?.value) {\r\n valueControl?.setValue(_.camelCase(labelValue));\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Initializes the reactive form for adding or editing.\r\n * @param data The option data to populate the form with.\r\n */\r\n private createForm(data: any): void {\r\n this.form = new FormGroup({\r\n label: new FormControl(data.label || '', Validators.required),\r\n value: new FormControl(data.value || '', Validators.required),\r\n });\r\n }\r\n}","<mat-chip-listbox style=\"overflow-x: scroll;\" aria-label=\"Option selection\" [disabled]=\"disabled\">\r\n @for (option of options; track option.id) {\r\n <mat-chip-option \r\n style=\"min-width: fit-content;\"\r\n (click)=\"startEdit(option)\"\r\n color=\"accent\" \r\n [value]=\"option.value\"\r\n [selected]=\"inEdit?.id === option.id\">\r\n \r\n {{ option.label }}\r\n <button matChipRemove (click)=\"$event.stopPropagation(); remove(option)\" [attr.aria-label]=\"'Remove ' + option.label\">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n\r\n<mat-toolbar *ngIf=\"!inEdit\">\r\n <button style=\"width:100%\" mat-stroked-button (click)=\"add()\">\r\n Add an option <mat-icon>add</mat-icon>\r\n </button>\r\n</mat-toolbar>\r\n\r\n<mat-card *ngIf=\"!!inEdit\">\r\n <mat-card-header>\r\n <mat-card-subtitle>{{ inEdit.id ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\r\n </mat-card-header>\r\n\r\n <mat-card-content style=\"padding-top:16px;\">\r\n <form *ngIf=\"!!form\" [formGroup]=\"form\">\r\n <mat-form-field\r\n style=\"margin-bottom: 16px;\"\r\n subscriptSizing=\"dynamic\"\r\n floatLabel=\"always\"\r\n appearance=\"outline\">\r\n <mat-label>Display Text</mat-label>\r\n <input\r\n type=\"text\"\r\n matInput\r\n formControlName=\"label\"\r\n placeholder=\"Enter option text\"\r\n (blur)=\"autoFillValueFromLabel()\" />\r\n <mat-hint>The text users will see and select from the list.</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\r\n <mat-label>Stored Value</mat-label>\r\n <input\r\n type=\"text\"\r\n matInput\r\n formControlName=\"value\"\r\n placeholder=\"Enter data value\"\r\n />\r\n <button matTooltip=\"Toggle auto-creation of value from display text\" \r\n [color]=\"isAutoCamelCase ? 'primary' : ''\" \r\n (click)=\"isAutoCamelCase = !isAutoCamelCase\" \r\n matSuffix\r\n mat-icon-button>\r\n <mat-icon>{{ isAutoCamelCase ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\r\n </button>\r\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\r\n </mat-form-field>\r\n </form>\r\n </mat-card-content>\r\n\r\n <mat-card-actions>\r\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\r\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\r\n {{ inEdit.id ? 'Save Changes' : 'Add Option' }}\r\n </button>\r\n </mat-card-actions>\r\n</mat-card>"],"names":["uuidv4","i4","i5","i6","i7","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;MAyBa,+BAA+B,CAAA;aAEnC,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,CAAA,SAAoB,EAAU,WAAoC,EAAA;QAAlE,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AALhF,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ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171 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Output, Input, HostBinding, Optional, Self, Component } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs';
6
+ import { MatFormFieldControl } from '@angular/material/form-field';
7
+ import { Subject, take, tap } from 'rxjs';
8
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
9
+ import * as i1 from '@angular/forms';
10
+ import * as i2$1 from '@angular/material/button';
11
+ import * as i3 from '@angular/material/card';
12
+ import * as i5 from '@angular/material/chips';
13
+ import * as i4 from '@angular/material/divider';
14
+ import * as i3$1 from '@angular/material/icon';
15
+ import * as i6 from '@angular/material/list';
16
+ import * as i7 from '@angular/material/progress-spinner';
17
+ import * as i8 from '@angular/material/toolbar';
18
+
19
+ class TWorkflowPickerComponent {
20
+ static { this.nextId = 0; }
21
+ get required() {
22
+ return this._required;
23
+ }
24
+ set required(value) {
25
+ this._required = coerceBooleanProperty(value);
26
+ this.stateChanges.next();
27
+ }
28
+ get value() {
29
+ return this._value;
30
+ }
31
+ set value(val) {
32
+ this._value = val;
33
+ this.onChange(val);
34
+ this.stateChanges.next();
35
+ }
36
+ get placeholder() {
37
+ return this._placeholder;
38
+ }
39
+ set placeholder(value) {
40
+ this._placeholder = value;
41
+ this.stateChanges.next();
42
+ }
43
+ get shouldLabelFloat() {
44
+ return this.focused || !this.empty;
45
+ }
46
+ get empty() {
47
+ return !this.value || this.value.length === 0;
48
+ }
49
+ get errorState() {
50
+ return !this.value && this.required && this.touched || !!this.ngControl?.errors || (this.errors || []).length > 0;
51
+ }
52
+ constructor(ngControl, _elementRef) {
53
+ this.ngControl = ngControl;
54
+ this._elementRef = _elementRef;
55
+ this.stateChanges = new Subject();
56
+ this.focused = false;
57
+ this.touched = false;
58
+ this.disabled = false;
59
+ this.controlType = 'lib-t-workflow-picker';
60
+ this.autofilled = false;
61
+ this.errors = [];
62
+ this.valueChange = new EventEmitter();
63
+ this._required = false;
64
+ this._value = undefined;
65
+ this._placeholder = '';
66
+ this.id = `lib-t-workflow-picker-${TWorkflowPickerComponent.nextId++}`;
67
+ this.describedBy = '';
68
+ // ControlValueAccessor methods
69
+ this.onChange = (_) => { };
70
+ this.onTouched = () => { };
71
+ this.valueChanged = new EventEmitter();
72
+ this.error = undefined;
73
+ this.loading = false;
74
+ if (this.ngControl != null) {
75
+ this.ngControl.valueAccessor = this;
76
+ }
77
+ }
78
+ writeValue(value) {
79
+ this._value = value;
80
+ this.stateChanges.next();
81
+ }
82
+ registerOnChange(fn) {
83
+ this.onChange = fn;
84
+ }
85
+ registerOnTouched(fn) {
86
+ this.onTouched = fn;
87
+ }
88
+ setDisabledState(isDisabled) {
89
+ this.disabled = isDisabled;
90
+ this.stateChanges.next();
91
+ }
92
+ // MatFormFieldControl methods
93
+ setDescribedByIds(ids) {
94
+ const element = this._elementRef?.nativeElement;
95
+ if (element) {
96
+ element.setAttribute('aria-describedby', ids.join(' '));
97
+ }
98
+ }
99
+ onContainerClick(event) {
100
+ if (!this.focused) {
101
+ this.focused = true;
102
+ this.stateChanges.next();
103
+ }
104
+ }
105
+ markAsTouched() {
106
+ if (!this.touched) {
107
+ this.touched = true;
108
+ this.onTouched();
109
+ this.stateChanges.next();
110
+ }
111
+ }
112
+ set getWorkflowOptions(value) {
113
+ if (this._workflowOptions === undefined && !!value) {
114
+ this.loading = true;
115
+ value.pipe(take(1), tap(workflows => {
116
+ this._workflowOptions = workflows;
117
+ this.loading = false;
118
+ })).subscribe();
119
+ }
120
+ }
121
+ get workflowOptions() {
122
+ return this._workflowOptions || [];
123
+ }
124
+ unbindInput() {
125
+ this.value = undefined;
126
+ this.valueChanged.emit(this.value);
127
+ }
128
+ bindInput(workflow) {
129
+ this.valueChanged.emit(workflow.id);
130
+ }
131
+ get selectedWorkflow() {
132
+ return this._workflowOptions?.find((workflow) => workflow.id === this.value);
133
+ }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TWorkflowPickerComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
135
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: TWorkflowPickerComponent, isStandalone: true, selector: "lib-t-workflow-picker", inputs: { disabled: "disabled", errors: "errors", required: "required", value: "value", placeholder: "placeholder", getWorkflowOptions: "getWorkflowOptions" }, outputs: { valueChange: "valueChange", valueChanged: "valueChanged" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [{ provide: MatFormFieldControl, useExisting: TWorkflowPickerComponent, }], ngImport: i0, template: "@if (error) {\r\n<mat-toolbar>\r\n <span>\r\n Failed to load workflow list\r\n </span>\r\n <span class=\"spacer\"></span>\r\n <button color=\"primary\" mat-raised-button>\r\n Retry\r\n\r\n </button>\r\n</mat-toolbar>\r\n}\r\n@if(loading){\r\n<div class=\"loadingContainer\">\r\n <mat-spinner></mat-spinner>\r\n</div>\r\n}\r\n@if(!loading&& !error){\r\n<mat-card>\r\n <mat-nav-list style=\"padding: 0px;\">\r\n @if(!value){\r\n @for (option of workflowOptions; track option.id) {\r\n <mat-list-item (click)=\"bindInput(option)\">\r\n\r\n <mat-chip class=\"docType\" \r\n \r\n [style.background]=\"!option.isCheckInCheckOut && option['isDocument'] ? 'lightskyblue' :option.isCheckInCheckOut?'antiquewhite':'' \"\r\n \r\n matListItemIcon>\r\n <span style=\"font-size: 10px;\">\r\n @if (option.isCheckInCheckOut) {\r\n IN/OUT\r\n }@else {\r\n {{ option[\"isDocument\"] ? \"DOC\" : \"FLOW\" }}\r\n }\r\n\r\n </span>\r\n </mat-chip>\r\n\r\n\r\n <div matListItemTitle>\r\n <div>\r\n {{ option.name }}\r\n </div>\r\n\r\n <div style=\"font-size: 13px; opacity: 0.6;line-height:normal\">\r\n {{ option[\"createdAt\"] | date: \"medium\" }} &nbsp;\r\n {{ option.numberOfSteps }}\r\n </div>\r\n </div>\r\n <button matListItemMeta mat-icon-button>\r\n <mat-icon>\r\n radio_button_unchecked\r\n </mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n @if(value){\r\n <mat-list-item (click)=\" unbindInput() \">\r\n\r\n <mat-chip class=\"docType\" \r\n \r\n [style.background]=\"!selectedWorkflow?.isCheckInCheckOut && selectedWorkflow?.['isDocument'] ? 'lightskyblue' :selectedWorkflow?.isCheckInCheckOut?'antiquewhite':'' \"\r\n matListItemIcon>\r\n <span style=\"font-size: 10px;\">\r\n @if (selectedWorkflow?.isCheckInCheckOut) {\r\n IN/OUT\r\n }@else {\r\n {{ selectedWorkflow?.[\"isDocument\"] ? \"DOC\" : \"FLOW\" }}\r\n }\r\n </span>\r\n </mat-chip>\r\n\r\n\r\n <div matListItemTitle>\r\n <div>\r\n {{ selectedWorkflow?.name }}\r\n </div>\r\n\r\n <div style=\"font-size: 13px; opacity: 0.6;line-height:normal\">\r\n {{selectedWorkflow?.[\"createdAt\"] | date: \"medium\" }} &nbsp;\r\n {{ selectedWorkflow?.numberOfSteps }}\r\n </div>\r\n </div>\r\n <button matListItemMeta mat-icon-button>\r\n <mat-icon color=\"primary\">\r\n check_circle\r\n </mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n }\r\n\r\n\r\n </mat-nav-list>\r\n</mat-card>\r\n\r\n}", styles: [".suggestion-container{display:flex;width:100%;gap:14px}.docType{width:min-content;margin-top:auto!important;margin-bottom:auto!important}mat-card{margin-bottom:8px;background:var(--mat-sys-surface-container, var(--mat-app-surface))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i5.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i6.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] }); }
136
+ }
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TWorkflowPickerComponent, decorators: [{
138
+ type: Component,
139
+ args: [{ selector: 'lib-t-workflow-picker', standalone: true, imports: [CommonModule, MatModulesModule], providers: [{ provide: MatFormFieldControl, useExisting: TWorkflowPickerComponent, }], template: "@if (error) {\r\n<mat-toolbar>\r\n <span>\r\n Failed to load workflow list\r\n </span>\r\n <span class=\"spacer\"></span>\r\n <button color=\"primary\" mat-raised-button>\r\n Retry\r\n\r\n </button>\r\n</mat-toolbar>\r\n}\r\n@if(loading){\r\n<div class=\"loadingContainer\">\r\n <mat-spinner></mat-spinner>\r\n</div>\r\n}\r\n@if(!loading&& !error){\r\n<mat-card>\r\n <mat-nav-list style=\"padding: 0px;\">\r\n @if(!value){\r\n @for (option of workflowOptions; track option.id) {\r\n <mat-list-item (click)=\"bindInput(option)\">\r\n\r\n <mat-chip class=\"docType\" \r\n \r\n [style.background]=\"!option.isCheckInCheckOut && option['isDocument'] ? 'lightskyblue' :option.isCheckInCheckOut?'antiquewhite':'' \"\r\n \r\n matListItemIcon>\r\n <span style=\"font-size: 10px;\">\r\n @if (option.isCheckInCheckOut) {\r\n IN/OUT\r\n }@else {\r\n {{ option[\"isDocument\"] ? \"DOC\" : \"FLOW\" }}\r\n }\r\n\r\n </span>\r\n </mat-chip>\r\n\r\n\r\n <div matListItemTitle>\r\n <div>\r\n {{ option.name }}\r\n </div>\r\n\r\n <div style=\"font-size: 13px; opacity: 0.6;line-height:normal\">\r\n {{ option[\"createdAt\"] | date: \"medium\" }} &nbsp;\r\n {{ option.numberOfSteps }}\r\n </div>\r\n </div>\r\n <button matListItemMeta mat-icon-button>\r\n <mat-icon>\r\n radio_button_unchecked\r\n </mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n @if(value){\r\n <mat-list-item (click)=\" unbindInput() \">\r\n\r\n <mat-chip class=\"docType\" \r\n \r\n [style.background]=\"!selectedWorkflow?.isCheckInCheckOut && selectedWorkflow?.['isDocument'] ? 'lightskyblue' :selectedWorkflow?.isCheckInCheckOut?'antiquewhite':'' \"\r\n matListItemIcon>\r\n <span style=\"font-size: 10px;\">\r\n @if (selectedWorkflow?.isCheckInCheckOut) {\r\n IN/OUT\r\n }@else {\r\n {{ selectedWorkflow?.[\"isDocument\"] ? \"DOC\" : \"FLOW\" }}\r\n }\r\n </span>\r\n </mat-chip>\r\n\r\n\r\n <div matListItemTitle>\r\n <div>\r\n {{ selectedWorkflow?.name }}\r\n </div>\r\n\r\n <div style=\"font-size: 13px; opacity: 0.6;line-height:normal\">\r\n {{selectedWorkflow?.[\"createdAt\"] | date: \"medium\" }} &nbsp;\r\n {{ selectedWorkflow?.numberOfSteps }}\r\n </div>\r\n </div>\r\n <button matListItemMeta mat-icon-button>\r\n <mat-icon color=\"primary\">\r\n check_circle\r\n </mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n }\r\n\r\n\r\n </mat-nav-list>\r\n</mat-card>\r\n\r\n}", styles: [".suggestion-container{display:flex;width:100%;gap:14px}.docType{width:min-content;margin-top:auto!important;margin-bottom:auto!important}mat-card{margin-bottom:8px;background:var(--mat-sys-surface-container, var(--mat-app-surface))}\n"] }]
140
+ }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
141
+ type: Optional
142
+ }, {
143
+ type: Self
144
+ }] }, { type: i0.ElementRef }], propDecorators: { disabled: [{
145
+ type: Input
146
+ }], errors: [{
147
+ type: Input
148
+ }], valueChange: [{
149
+ type: Output
150
+ }], required: [{
151
+ type: Input
152
+ }], value: [{
153
+ type: Input
154
+ }], placeholder: [{
155
+ type: Input
156
+ }], id: [{
157
+ type: HostBinding
158
+ }], describedBy: [{
159
+ type: HostBinding,
160
+ args: ['attr.aria-describedby']
161
+ }], shouldLabelFloat: [{
162
+ type: HostBinding,
163
+ args: ['class.floating']
164
+ }], getWorkflowOptions: [{
165
+ type: Input
166
+ }], valueChanged: [{
167
+ type: Output
168
+ }] } });
169
+
170
+ export { TWorkflowPickerComponent };
171
+ //# sourceMappingURL=ngx-t-forms-t-workflow-picker.component-CezFgp2z.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-t-workflow-picker.component-CezFgp2z.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/t-workflow-picker/t-workflow-picker.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/t-workflow-picker/t-workflow-picker.component.html"],"sourcesContent":["\r\nimport { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\n\r\nimport { IWorkflowOption } from 'ngx-t-forms-types';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { Observable, Subject, take, tap } from 'rxjs';\r\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport { NgControl } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'lib-t-workflow-picker',\r\n standalone: true,\r\n imports: [CommonModule, MatModulesModule],\r\n templateUrl: './t-workflow-picker.component.html',\r\n styleUrl: './t-workflow-picker.component.css',\r\n providers: [{ provide: MatFormFieldControl, useExisting: TWorkflowPickerComponent,}],\r\n})\r\nexport class TWorkflowPickerComponent implements MatFormFieldControl< string| undefined> {\r\nstatic nextId = 0;\r\n stateChanges = new Subject<void>();\r\n focused = false;\r\n touched = false;\r\n @Input() disabled = false;\r\n controlType = 'lib-t-workflow-picker';\r\n autofilled = false;\r\n\r\n\r\n @Input() errors:IConfigElementError[] | undefined = [];\r\n @Output() valueChange = new EventEmitter<string[]|undefined>();\r\n\r\n private _required = false;\r\n @Input()\r\n get required(): boolean {\r\n return this._required;\r\n }\r\n set required(value: boolean) {\r\n this._required = coerceBooleanProperty(value);\r\n this.stateChanges.next();\r\n }\r\n\r\n private _value: string | undefined = undefined;\r\n @Input()\r\n get value(): string | undefined {\r\n return this._value;\r\n }\r\n set value(val: string | undefined ) {\r\n this._value = val;\r\n this.onChange(val);\r\n this.stateChanges.next();\r\n }\r\n\r\n @Input()\r\n get placeholder(): string {\r\n return this._placeholder;\r\n }\r\n set placeholder(value: string) {\r\n this._placeholder = value;\r\n this.stateChanges.next();\r\n }\r\n private _placeholder: string = '';\r\n\r\n @HostBinding() id = `lib-t-workflow-picker-${TWorkflowPickerComponent.nextId++}`;\r\n @HostBinding('attr.aria-describedby') describedBy = '';\r\n @HostBinding('class.floating') get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get empty(): boolean {\r\n return !this.value || this.value.length === 0;\r\n }\r\n\r\n get errorState(): boolean {\r\n return !this.value && this.required && this.touched || !!this.ngControl?.errors || (this.errors||[]).length >0;\r\n }\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl != null) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n // ControlValueAccessor methods\r\n onChange = (_: any) => {};\r\n onTouched = () => {};\r\n\r\n writeValue(value: string|undefined): void {\r\n this._value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n this.stateChanges.next();\r\n }\r\n\r\n // MatFormFieldControl methods\r\n setDescribedByIds(ids: string[]): void {\r\n const element = this._elementRef?.nativeElement;\r\n if (element) {\r\n element.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n\r\n onContainerClick(event: MouseEvent): void {\r\n if (!this.focused) {\r\n this.focused = true;\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.touched = true;\r\n this.onTouched();\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n\r\n\r\n private _workflowOptions: IWorkflowOption[] | undefined \r\n @Input() set getWorkflowOptions(value: Observable<IWorkflowOption[] | undefined> | undefined) {\r\n if(this._workflowOptions === undefined &&!!value) {\r\n this.loading = true\r\n value.pipe(\r\n take(1),\r\n tap(workflows=>{\r\n this._workflowOptions = workflows;\r\n this.loading = false;\r\n }\r\n )).subscribe()\r\n }\r\n \r\n }\r\n\r\n @Output() valueChanged = new EventEmitter<string | undefined>()\r\n \r\n error: any = undefined\r\n loading: boolean = false\r\n \r\n get workflowOptions(): IWorkflowOption[] {\r\n return this._workflowOptions || []\r\n }\r\n\r\n unbindInput() {\r\n this.value = undefined;\r\n this.valueChanged.emit(this.value);\r\n }\r\n bindInput(workflow: IWorkflowOption) {\r\n this.valueChanged.emit(workflow.id);\r\n }\r\n get selectedWorkflow(): IWorkflowOption | undefined {\r\n return this._workflowOptions?.find((workflow) => workflow.id === this.value)\r\n }\r\n}\r\n","@if (error) {\r\n<mat-toolbar>\r\n <span>\r\n Failed to load workflow list\r\n </span>\r\n <span class=\"spacer\"></span>\r\n <button color=\"primary\" mat-raised-button>\r\n Retry\r\n\r\n </button>\r\n</mat-toolbar>\r\n}\r\n@if(loading){\r\n<div class=\"loadingContainer\">\r\n <mat-spinner></mat-spinner>\r\n</div>\r\n}\r\n@if(!loading&& !error){\r\n<mat-card>\r\n <mat-nav-list style=\"padding: 0px;\">\r\n @if(!value){\r\n @for (option of workflowOptions; track option.id) {\r\n <mat-list-item (click)=\"bindInput(option)\">\r\n\r\n <mat-chip class=\"docType\" \r\n \r\n [style.background]=\"!option.isCheckInCheckOut && option['isDocument'] ? 'lightskyblue' :option.isCheckInCheckOut?'antiquewhite':'' \"\r\n \r\n matListItemIcon>\r\n <span style=\"font-size: 10px;\">\r\n @if (option.isCheckInCheckOut) {\r\n IN/OUT\r\n }@else {\r\n {{ option[\"isDocument\"] ? \"DOC\" : \"FLOW\" }}\r\n }\r\n\r\n </span>\r\n </mat-chip>\r\n\r\n\r\n <div matListItemTitle>\r\n <div>\r\n {{ option.name }}\r\n </div>\r\n\r\n <div style=\"font-size: 13px; opacity: 0.6;line-height:normal\">\r\n {{ option[\"createdAt\"] | date: \"medium\" }} &nbsp;\r\n {{ option.numberOfSteps }}\r\n </div>\r\n </div>\r\n <button matListItemMeta mat-icon-button>\r\n <mat-icon>\r\n radio_button_unchecked\r\n </mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n <mat-divider></mat-divider>\r\n }\r\n }\r\n @if(value){\r\n <mat-list-item (click)=\" unbindInput() \">\r\n\r\n <mat-chip class=\"docType\" \r\n \r\n [style.background]=\"!selectedWorkflow?.isCheckInCheckOut && selectedWorkflow?.['isDocument'] ? 'lightskyblue' :selectedWorkflow?.isCheckInCheckOut?'antiquewhite':'' \"\r\n matListItemIcon>\r\n <span style=\"font-size: 10px;\">\r\n @if (selectedWorkflow?.isCheckInCheckOut) {\r\n IN/OUT\r\n }@else {\r\n {{ selectedWorkflow?.[\"isDocument\"] ? \"DOC\" : \"FLOW\" }}\r\n }\r\n </span>\r\n </mat-chip>\r\n\r\n\r\n <div matListItemTitle>\r\n <div>\r\n {{ selectedWorkflow?.name }}\r\n </div>\r\n\r\n <div style=\"font-size: 13px; opacity: 0.6;line-height:normal\">\r\n {{selectedWorkflow?.[\"createdAt\"] | date: \"medium\" }} &nbsp;\r\n {{ selectedWorkflow?.numberOfSteps }}\r\n </div>\r\n </div>\r\n <button matListItemMeta mat-icon-button>\r\n <mat-icon color=\"primary\">\r\n check_circle\r\n </mat-icon>\r\n </button>\r\n\r\n </mat-list-item>\r\n }\r\n\r\n\r\n </mat-nav-list>\r\n</mat-card>\r\n\r\n}"],"names":["i3","i4","i6","i7","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;MAoBa,wBAAwB,CAAA;aAC9B,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;AAahB,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS;;IAEvB,IAAI,QAAQ,CAAC,KAAc,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC;AAC7C,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;;AAI1B,IAAA,IACI,KAAK,GAAA;QACP,OAAO,IAAI,CAAC,MAAM;;IAEpB,IAAI,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Optional, Self, Component } from '@angular/core';
3
3
  import { v4 } from 'uuid';
4
4
  import { ElementTypes } from 'ngx-t-forms-types';
5
- import { f as getInputIllustration, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-CHdFFTXs.mjs';
5
+ import { f as getInputIllustration, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs';
6
6
  import * as i2$1 from '@angular/common';
7
7
  import { CommonModule } from '@angular/common';
8
- import { FormInputSelectorComponent } from './ngx-t-forms-form-input-selector.component-C5Amatf0.mjs';
8
+ import { FormInputSelectorComponent } from './ngx-t-forms-form-input-selector.component-CniLZN1h.mjs';
9
9
  import * as i1 from '@angular/forms';
10
10
  import { FormsModule } from '@angular/forms';
11
11
  import { MatFormFieldControl } from '@angular/material/form-field';
12
12
  import { Subject } from 'rxjs';
13
13
  import * as i2 from '@angular/material/button';
14
- import * as i4 from '@angular/material/card';
15
- import * as i4$1 from '@angular/material/chips';
16
- import * as i4$2 from '@angular/material/divider';
17
- import * as i5 from '@angular/material/icon';
14
+ import * as i3 from '@angular/material/card';
15
+ import * as i5 from '@angular/material/chips';
16
+ import * as i4 from '@angular/material/divider';
17
+ import * as i3$1 from '@angular/material/icon';
18
18
  import * as i6 from '@angular/material/list';
19
- import * as i3 from '@angular/material/select';
19
+ import * as i3$2 from '@angular/material/select';
20
20
  import * as i9 from '@angular/material/slide-toggle';
21
- import * as i9$1 from '@angular/material/toolbar';
22
- import * as i6$1 from '@angular/material/tooltip';
23
- import * as i8 from '@angular/material/input';
21
+ import * as i8 from '@angular/material/toolbar';
22
+ import * as i8$1 from '@angular/material/tooltip';
23
+ import * as i8$2 from '@angular/material/input';
24
24
 
25
25
  class ValidatorsConfigComponent {
26
26
  static { this.nextId = 0; }
@@ -182,10 +182,10 @@ class ValidatorsConfigComponent {
182
182
  }
183
183
  return validator.message;
184
184
  }
185
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ValidatorsConfigComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
186
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ValidatorsConfigComponent, isStandalone: true, selector: "app-validators-config", inputs: { disabled: "disabled", errors: "errors", mapToData: "mapToData", value: "value", formInputs: "formInputs" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }], ngImport: i0, template: "<div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n Custom validators are functions that take a form control as an argument and return an object of errors if the\r\n validation fails.\r\n </span>\r\n</div>\r\n\r\n<mat-list>\r\n<h5>\r\n Custom Validators\r\n</h5>\r\n <mat-chip-listbox [disabled]=\"disabled\" aria-label=\"Chip select options\">\r\n @for (validator of value; track $index) {\r\n <mat-chip-option\r\n style=\"height: fit-content;padding: 8px;\"\r\n [selected]=\"edit?.id === validator.id\"\r\n (click)=\"editV(validator)\"> \r\n <span style=\"white-space: normal;\">\r\n {{isFormControlCustomValidator(validator) | titlecase}}\r\n </span>\r\n \r\n <button *ngIf=\"this.edit?.id !== validator.id\" (click)=\"remove(validator)\" matChipRemove \r\n [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n <mat-icon *ngIf=\"this.edit?.id === validator.id\" matChipTrailingIcon>\r\n check_circle\r\n </mat-icon>\r\n \r\n \r\n </mat-chip-option>\r\n }\r\n <mat-chip-option\r\n matTooltip=\"Add a new custom validator\"\r\n selectable=\"false\"\r\n style=\"cursor: pointer !important;\"\r\n highlighted=\"true\" color=\"accent\" (click)=\"addValidator()\" *ngIf=\"!edit\">\r\n <span >\r\n\r\n </span>\r\n Add validator\r\n <mat-icon matChipTrailingIcon >add</mat-icon>\r\n\r\n \r\n </mat-chip-option>\r\n </mat-chip-listbox>\r\n\r\n \r\n \r\n\r\n\r\n</mat-list>\r\n<mat-card style=\"padding: 8px;background:var(--mat-sys-surface-container, var(--mat-app-surface))\"\r\n *ngIf=\"edit\">\r\n <ng-container *ngIf=\"edit && !showVariables; then validatorEditor\"></ng-container>\r\n <mat-toolbar *ngIf=\"!showVariables\" >\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"edit=undefined\" mat-button>\r\n close\r\n </button>\r\n <button mat-raised-button [disabled]=\"!edit.expression ||!edit.message\"\r\n (click)=\"saveVariable($event)\" color=\"accent\">\r\n Save Validation\r\n </button>\r\n </mat-toolbar>\r\n <ng-container *ngIf=\"edit && !!showVariables; then variables\"></ng-container>\r\n</mat-card>\r\n\r\n\r\n\r\n\r\n<ng-template #validatorEditor>\r\n <div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n The expression is checked on value change. The message shows if it fails.\r\n <br>\r\n You can observe inputs for changes to re-evaluate the expression.\r\n </span>\r\n </div>\r\n <mat-list *ngIf=\"edit\">\r\n\r\n <mat-form-field style=\"margin-bottom: 16px;\" (click)=\"$event.stopPropagation();\" appearance=\"outline\" subscriptSizing=\"dynamic\" >\r\n <mat-label >Validation Message</mat-label>\r\n <textarea matInput #textarea [value]=\"edit.message\"\r\n (input)=\"onTextChange($event,'message')\"\r\n placeholder=\"\r\n Enter message\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The message to display when the validation fails\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n\r\n\r\n\r\n\r\n <mat-form-field (click)=\"$event.stopPropagation();\" appearance=\"outline\" subscriptSizing=\"dynamic\" >\r\n <mat-label >Expression</mat-label>\r\n <textarea matInput #textarea \r\n (input)=\"onTextChange($event,'expression')\"\r\n [value]=\"edit.expression\" placeholder=\"\r\n enter expression\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The expression to evaluate the validation\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n <mat-toolbar>\r\n <mat-slide-toggle (click)=\"$event.stopPropagation();\" name=\"CanOveride\" ngDefaultControl\r\n (change)=\"edit.canOverride = $event.checked\" [checked]=\"edit.canOverride\">\r\n <span style=\"margin-left: 5px;\"> Users can override this validation</span>\r\n\r\n </mat-slide-toggle>\r\n </mat-toolbar>\r\n <label >\r\n Observe inputs for changes\r\n </label>\r\n <mat-chip-listbox aria-label=\"Chip select options\">\r\n @for(input of edit.inputsObservedForChanges;track input){\r\n <mat-chip>input\r\n <button (click)=\"removeObserved($event,input)\" matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip>\r\n }\r\n <mat-chip (click)=\"addVariable($event)\" color=\"primary\">\r\n Variable\r\n <mat-icon matChipTrailingIcon>\r\n add\r\n </mat-icon>\r\n </mat-chip>\r\n </mat-chip-listbox>\r\n\r\n <br>\r\n <mat-divider></mat-divider>\r\n\r\n\r\n </mat-list>\r\n</ng-template>\r\n\r\n<ng-template #variables>\r\n\r\n <section style=\"max-height: 360px; overflow-y: auto\">\r\n <lib-form-input-selector (change)=\"selectInput($event)\" [formInputs]=\"formInputs\">\r\n\r\n </lib-form-input-selector>\r\n\r\n <div class=\"contentBackground\" *ngIf=\"formInputs.length === 0\">\r\n <span style=\"\r\n display: block;\r\n text-align: center;\r\n font-style: italic;\r\n padding: 16px;\r\n \">No form inputs</span>\r\n </div>\r\n </section>\r\n <mat-toolbar>\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"showVariables = !showVariables\" mat-flat-button>\r\n Close\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n</ng-template>\r\n", styles: [".mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:500px!important}mat-form-field{width:100%;background:azure}.tree-instructions{display:flex;align-items:center;gap:8px;padding:12px;background:azure;border-radius:4px;margin-bottom:16px}.info-icon{min-width:38px}mat-chip{cursor:pointer!important}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i4.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i4$1.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i4$1.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4$1.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4$1.MatChipRemove, selector: "[matChipRemove]" }, { kind: "directive", type: i4$1.MatChipTrailingIcon, selector: "mat-chip-trailing-icon, [matChipTrailingIcon]" }, { kind: "component", type: i4$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: i9$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$1.TitleCasePipe, name: "titlecase" }, { kind: "component", type: FormInputSelectorComponent, selector: "lib-form-input-selector", inputs: ["errors", "value", "formInputs", "disabled"], outputs: ["change"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }] }); }
185
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ValidatorsConfigComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
186
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: ValidatorsConfigComponent, isStandalone: true, selector: "app-validators-config", inputs: { disabled: "disabled", errors: "errors", mapToData: "mapToData", value: "value", formInputs: "formInputs" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }], ngImport: i0, template: "<div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n Custom validators are functions that take a form control as an argument and return an object of errors if the\r\n validation fails.\r\n </span>\r\n</div>\r\n\r\n<mat-list>\r\n<h5>\r\n Custom Validators\r\n</h5>\r\n <mat-chip-listbox [disabled]=\"disabled\" aria-label=\"Chip select options\">\r\n @for (validator of value; track $index) {\r\n <mat-chip-option\r\n style=\"height: fit-content;padding: 8px;\"\r\n [selected]=\"edit?.id === validator.id\"\r\n (click)=\"editV(validator)\"> \r\n <span style=\"white-space: normal;\">\r\n {{isFormControlCustomValidator(validator) | titlecase}}\r\n </span>\r\n \r\n <button *ngIf=\"this.edit?.id !== validator.id\" (click)=\"remove(validator)\" matChipRemove \r\n [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n <mat-icon *ngIf=\"this.edit?.id === validator.id\" matChipTrailingIcon>\r\n check_circle\r\n </mat-icon>\r\n \r\n \r\n </mat-chip-option>\r\n }\r\n <mat-chip-option\r\n matTooltip=\"Add a new custom validator\"\r\n selectable=\"false\"\r\n style=\"cursor: pointer !important;\"\r\n highlighted=\"true\" color=\"accent\" (click)=\"addValidator()\" *ngIf=\"!edit\">\r\n <span >\r\n\r\n </span>\r\n Add validator\r\n <mat-icon matChipTrailingIcon >add</mat-icon>\r\n\r\n \r\n </mat-chip-option>\r\n </mat-chip-listbox>\r\n\r\n \r\n \r\n\r\n\r\n</mat-list>\r\n<mat-card style=\"padding: 8px;background:var(--mat-sys-surface-container, var(--mat-app-surface))\"\r\n *ngIf=\"edit\">\r\n <ng-container *ngIf=\"edit && !showVariables; then validatorEditor\"></ng-container>\r\n <mat-toolbar *ngIf=\"!showVariables\" >\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"edit=undefined\" mat-button>\r\n close\r\n </button>\r\n <button mat-raised-button [disabled]=\"!edit.expression ||!edit.message\"\r\n (click)=\"saveVariable($event)\" color=\"accent\">\r\n Save Validation\r\n </button>\r\n </mat-toolbar>\r\n <ng-container *ngIf=\"edit && !!showVariables; then variables\"></ng-container>\r\n</mat-card>\r\n\r\n\r\n\r\n\r\n<ng-template #validatorEditor>\r\n <div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n The expression is checked on value change. The message shows if it fails.\r\n <br>\r\n You can observe inputs for changes to re-evaluate the expression.\r\n </span>\r\n </div>\r\n <mat-list *ngIf=\"edit\">\r\n\r\n <mat-form-field style=\"margin-bottom: 16px;\" (click)=\"$event.stopPropagation();\" appearance=\"outline\" subscriptSizing=\"dynamic\" >\r\n <mat-label >Validation Message</mat-label>\r\n <textarea matInput #textarea [value]=\"edit.message\"\r\n (input)=\"onTextChange($event,'message')\"\r\n placeholder=\"\r\n Enter message\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The message to display when the validation fails\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n\r\n\r\n\r\n\r\n <mat-form-field (click)=\"$event.stopPropagation();\" appearance=\"outline\" subscriptSizing=\"dynamic\" >\r\n <mat-label >Expression</mat-label>\r\n <textarea matInput #textarea \r\n (input)=\"onTextChange($event,'expression')\"\r\n [value]=\"edit.expression\" placeholder=\"\r\n enter expression\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The expression to evaluate the validation\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n <mat-toolbar>\r\n <mat-slide-toggle (click)=\"$event.stopPropagation();\" name=\"CanOveride\" ngDefaultControl\r\n (change)=\"edit.canOverride = $event.checked\" [checked]=\"edit.canOverride\">\r\n <span style=\"margin-left: 5px;\"> Users can override this validation</span>\r\n\r\n </mat-slide-toggle>\r\n </mat-toolbar>\r\n <label >\r\n Observe inputs for changes\r\n </label>\r\n <mat-chip-listbox aria-label=\"Chip select options\">\r\n @for(input of edit.inputsObservedForChanges;track input){\r\n <mat-chip>input\r\n <button (click)=\"removeObserved($event,input)\" matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip>\r\n }\r\n <mat-chip (click)=\"addVariable($event)\" color=\"primary\">\r\n Variable\r\n <mat-icon matChipTrailingIcon>\r\n add\r\n </mat-icon>\r\n </mat-chip>\r\n </mat-chip-listbox>\r\n\r\n <br>\r\n <mat-divider></mat-divider>\r\n\r\n\r\n </mat-list>\r\n</ng-template>\r\n\r\n<ng-template #variables>\r\n\r\n <section style=\"max-height: 360px; overflow-y: auto\">\r\n <lib-form-input-selector (change)=\"selectInput($event)\" [formInputs]=\"formInputs\">\r\n\r\n </lib-form-input-selector>\r\n\r\n <div class=\"contentBackground\" *ngIf=\"formInputs.length === 0\">\r\n <span style=\"\r\n display: block;\r\n text-align: center;\r\n font-style: italic;\r\n padding: 16px;\r\n \">No form inputs</span>\r\n </div>\r\n </section>\r\n <mat-toolbar>\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"showVariables = !showVariables\" mat-flat-button>\r\n Close\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n</ng-template>\r\n", styles: [".mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:500px!important}mat-form-field{width:100%;background:azure}.tree-instructions{display:flex;align-items:center;gap:8px;padding:12px;background:azure;border-radius:4px;margin-bottom:16px}.info-icon{min-width:38px}mat-chip{cursor:pointer!important}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i5.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i5.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i5.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i5.MatChipRemove, selector: "[matChipRemove]" }, { kind: "directive", type: i5.MatChipTrailingIcon, selector: "mat-chip-trailing-icon, [matChipTrailingIcon]" }, { kind: "component", type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i3$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i8$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i8$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$1.TitleCasePipe, name: "titlecase" }, { kind: "component", type: FormInputSelectorComponent, selector: "lib-form-input-selector", inputs: ["errors", "value", "formInputs", "disabled"], outputs: ["change"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }] }); }
187
187
  }
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ValidatorsConfigComponent, decorators: [{
188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ValidatorsConfigComponent, decorators: [{
189
189
  type: Component,
190
190
  args: [{ selector: 'app-validators-config', standalone: true, imports: [
191
191
  MatModulesModule,
@@ -214,4 +214,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
214
214
  }] } });
215
215
 
216
216
  export { ValidatorsConfigComponent };
217
- //# sourceMappingURL=ngx-t-forms-validators-config.component-OIfd1D8o.mjs.map
217
+ //# sourceMappingURL=ngx-t-forms-validators-config.component-4Iy5uJj3.mjs.map