@masterteam/components 0.0.244 → 0.0.246

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 (32) hide show
  1. package/assets/common.css +1 -1
  2. package/assets/ds-components/button.css +24 -6
  3. package/assets/ds-components/content-switcher.css +8 -8
  4. package/assets/ds-components/tabs.css +147 -16
  5. package/assets/i18n/ar.json +3 -0
  6. package/assets/i18n/en.json +3 -0
  7. package/fesm2022/masterteam-components-business-fields.mjs +29 -8
  8. package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
  9. package/fesm2022/masterteam-components-date-field.mjs +9 -3
  10. package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
  11. package/fesm2022/masterteam-components-entities.mjs +89 -13
  12. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  13. package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-property-filter-builder.mjs +1 -1
  16. package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-table.mjs +20 -3
  18. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  19. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  20. package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
  21. package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
  22. package/fesm2022/masterteam-components-user-search-field.mjs +20 -4
  23. package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
  24. package/fesm2022/masterteam-components.mjs +11 -1
  25. package/fesm2022/masterteam-components.mjs.map +1 -1
  26. package/package.json +17 -17
  27. package/types/masterteam-components-business-fields.d.ts +13 -0
  28. package/types/masterteam-components-date-field.d.ts +7 -1
  29. package/types/masterteam-components-entities.d.ts +68 -5
  30. package/types/masterteam-components-table.d.ts +8 -3
  31. package/types/masterteam-components-user-search-field.d.ts +5 -1
  32. package/types/masterteam-components.d.ts +12 -1
@@ -17,15 +17,18 @@
17
17
  ========================================================================== */
18
18
 
19
19
  html.mt-ds .p-button {
20
- height: 32px;
21
- padding: 0 8px;
20
+ /* Sized from the field tokens, not its own literals, so a button and a field
21
+ on the same row can never drift apart. The DS default button size is `lg`,
22
+ which is the same 40px the default field uses. */
23
+ height: var(--ds-field-height);
24
+ padding: 0 var(--ds-field-pad-x);
22
25
  gap: 4px;
23
26
  border-width: 1px;
24
27
  border-style: solid;
25
28
  border-radius: 4px;
26
29
  font-family: var(--ds-font-sans);
27
- font-size: 14px;
28
- line-height: 20px;
30
+ font-size: var(--ds-field-font);
31
+ line-height: var(--ds-field-line);
29
32
  font-weight: 500;
30
33
  white-space: nowrap;
31
34
  flex-shrink: 0;
@@ -37,13 +40,28 @@ html.mt-ds .p-button {
37
40
  color var(--ds-transition-fast);
38
41
  }
39
42
 
43
+ /* The DS scale is 24 / 32 / 40. With the default sitting on 40 (DS large),
44
+ `size="small"` maps to DS *medium* rather than DS small — dropping two steps
45
+ to 24px reads as broken next to a 40px default. DS small remains reachable
46
+ via `.mt-ds-button-xs` for genuinely dense surfaces. */
40
47
  html.mt-ds .p-button-sm {
48
+ height: 32px;
49
+ padding: 0 8px;
50
+ font-size: 14px;
51
+ line-height: 20px;
52
+ }
53
+
54
+ html.mt-ds .p-button.mt-ds-button-xs {
41
55
  height: 24px;
42
56
  padding: 0 8px;
43
57
  font-size: 12px;
44
58
  line-height: 18px;
45
59
  }
46
60
 
61
+ html.mt-ds .p-button.p-button-icon-only.mt-ds-button-xs {
62
+ width: 24px;
63
+ }
64
+
47
65
  html.mt-ds .p-button-lg {
48
66
  height: 40px;
49
67
  padding: 0 12px;
@@ -78,14 +96,14 @@ html.mt-ds .p-button-lg :is(.p-icon, .p-button-icon, mt-icon, svg) {
78
96
  next to the icon, and the 4px inter-child gap then pushes the icon off
79
97
  centre by half of it. */
80
98
  html.mt-ds .p-button.p-button-icon-only {
81
- width: 32px;
99
+ width: var(--ds-field-height);
82
100
  padding: 0;
83
101
  gap: 0;
84
102
  aspect-ratio: 1;
85
103
  }
86
104
 
87
105
  html.mt-ds .p-button.p-button-icon-only.p-button-sm {
88
- width: 24px;
106
+ width: 32px;
89
107
  }
90
108
 
91
109
  html.mt-ds .p-button.p-button-icon-only.p-button-lg {
@@ -33,7 +33,7 @@ html.mt-ds .p-selectbutton {
33
33
  }
34
34
 
35
35
  html.mt-ds .p-selectbutton .p-togglebutton {
36
- height: 40px;
36
+ height: 32px;
37
37
  min-width: 76px;
38
38
  padding: 0;
39
39
  border: none;
@@ -50,13 +50,13 @@ html.mt-ds .p-selectbutton .p-togglebutton {
50
50
  html.mt-ds .p-selectbutton .p-togglebutton .p-togglebutton-content {
51
51
  width: 100%;
52
52
  height: 100%;
53
- padding: 0 12px;
53
+ padding: 0 8px;
54
54
  background: transparent;
55
55
  border-radius: 0;
56
56
  box-shadow: none;
57
57
  color: inherit;
58
- font-size: 18px;
59
- line-height: 28px;
58
+ font-size: 14px;
59
+ line-height: 20px;
60
60
  font-weight: inherit;
61
61
  }
62
62
 
@@ -114,11 +114,11 @@ html.mt-ds .p-selectbutton .p-togglebutton-sm .p-togglebutton-content {
114
114
  }
115
115
 
116
116
  html.mt-ds .p-selectbutton .p-togglebutton-lg {
117
- height: 48px;
117
+ height: 40px;
118
118
  }
119
119
 
120
120
  html.mt-ds .p-selectbutton .p-togglebutton-lg .p-togglebutton-content {
121
- padding: 0 16px;
122
- font-size: 20px;
123
- line-height: 30px;
121
+ padding: 0 12px;
122
+ font-size: 16px;
123
+ line-height: 24px;
124
124
  }
@@ -1,7 +1,9 @@
1
1
  /* ==========================================================================
2
2
  Tabs — transcribed from DS `Tabs/Tabs.module.css` (Figma node 4747:83313)
3
3
  --------------------------------------------------------------------------
4
- Horizontal (medium): 44px tall · 12px/16px padding · 3px bottom bar #1849A9
4
+ Horizontal (small): 36px tall · 8px/12px padding [DS Medium is 44/12/16;
5
+ small is used as the default - this product is denser
6
+ than the DS reference layouts] · 3px bottom bar #1849A9
5
7
  list divider 3px #D2D6DB · text always 14px
6
8
  weight 500 unselected → 700 selected · colour #000B36
7
9
  hover bg #E5E7EB · pressed #D2D6DB · disabled #6C7C96
@@ -15,6 +17,14 @@
15
17
  ========================================================================== */
16
18
 
17
19
  /* ══ mt-tabs — underline (horizontal) mode ══════════════════════════════ */
20
+ /* Transcribed from the real .htab rules, not the summary at the top of the DS
21
+ module - that comment claims 36/44/52 per size, but every .htabSmall /
22
+ Medium / Large block is identical: 52px tall, 16px padding, 14/20 text.
23
+
24
+ The active indicator is NOT a bottom border. It is a 3px pill inset 16px
25
+ from each inline edge, so it sits under the label rather than spanning the
26
+ full tab - which is why a border-bottom never looked right. Hover paints
27
+ the same bar in #1F2A37. */
18
28
 
19
29
  html.mt-ds mt-tabs [role="tablist"][aria-orientation="horizontal"] > div {
20
30
  border-bottom: 3px solid #d2d6db;
@@ -25,19 +35,33 @@ html.mt-ds
25
35
  mt-tabs
26
36
  [role="tablist"][aria-orientation="horizontal"]
27
37
  [role="tab"] {
28
- height: 44px;
29
- padding: 12px 16px;
30
- margin-bottom: -3px;
31
- border-bottom: 3px solid transparent;
32
- border-radius: 0;
38
+ position: relative;
39
+ height: 52px;
40
+ padding: 16px;
41
+ gap: 8px;
42
+ margin-bottom: 0;
43
+ border: none;
44
+ border-radius: 4px;
33
45
  font-family: var(--ds-font-sans);
34
46
  font-size: 14px;
35
47
  font-weight: 500;
36
48
  line-height: 20px;
37
49
  color: #000b36;
38
- transition:
39
- background-color var(--ds-transition-fast),
40
- border-color var(--ds-transition-fast);
50
+ transition: background-color var(--ds-transition-fast);
51
+ }
52
+
53
+ html.mt-ds
54
+ mt-tabs
55
+ [role="tablist"][aria-orientation="horizontal"]
56
+ [role="tab"]::after {
57
+ content: "";
58
+ position: absolute;
59
+ bottom: 0;
60
+ inset-inline: 16px;
61
+ height: 3px;
62
+ border-radius: 9999px;
63
+ background: transparent;
64
+ transition: background-color var(--ds-transition-fast);
41
65
  }
42
66
 
43
67
  html.mt-ds
@@ -48,6 +72,13 @@ html.mt-ds
48
72
  color: #000b36;
49
73
  }
50
74
 
75
+ html.mt-ds
76
+ mt-tabs
77
+ [role="tablist"][aria-orientation="horizontal"]
78
+ [role="tab"]:not([aria-selected="true"], :disabled):hover::after {
79
+ background: #1f2a37;
80
+ }
81
+
51
82
  html.mt-ds
52
83
  mt-tabs
53
84
  [role="tablist"][aria-orientation="horizontal"]
@@ -59,10 +90,16 @@ html.mt-ds
59
90
  mt-tabs
60
91
  [role="tablist"][aria-orientation="horizontal"]
61
92
  [role="tab"][aria-selected="true"] {
62
- border-bottom-color: #1849a9;
93
+ background: transparent;
63
94
  color: #000b36;
64
95
  font-weight: 700;
65
- background: transparent;
96
+ }
97
+
98
+ html.mt-ds
99
+ mt-tabs
100
+ [role="tablist"][aria-orientation="horizontal"]
101
+ [role="tab"][aria-selected="true"]::after {
102
+ background: #1849a9;
66
103
  }
67
104
 
68
105
  html.mt-ds
@@ -77,8 +114,8 @@ html.mt-ds
77
114
  html.mt-ds
78
115
  mt-tabs
79
116
  [role="tablist"][aria-orientation="horizontal"]
80
- [role="tab"][aria-selected="true"]:disabled {
81
- border-bottom-color: #6c7c96;
117
+ [role="tab"][aria-selected="true"]:disabled::after {
118
+ background: #6c7c96;
82
119
  }
83
120
 
84
121
  /* ══ mt-tabs — vertical mode ════════════════════════════════════════════ */
@@ -94,8 +131,8 @@ html.mt-ds mt-tabs [role="tablist"][aria-orientation="vertical"] {
94
131
 
95
132
  html.mt-ds mt-tabs [role="tablist"][aria-orientation="vertical"] [role="tab"] {
96
133
  position: relative;
97
- height: 44px;
98
- padding: 12px;
134
+ height: 36px;
135
+ padding: 8px 12px;
99
136
  border-radius: 0;
100
137
  font-family: var(--ds-font-sans);
101
138
  font-size: 14px;
@@ -158,7 +195,7 @@ html.mt-ds
158
195
  /* ── Shared: focus ring ────────────────────────────────────────────────── */
159
196
 
160
197
  html.mt-ds mt-tabs [role="tab"]:focus-visible {
161
- outline: 2px solid #1849a9;
198
+ outline: 3px solid #1849a9;
162
199
  outline-offset: 2px;
163
200
  box-shadow: none;
164
201
  }
@@ -198,3 +235,97 @@ html.mt-ds .p-tablist-active-bar {
198
235
  bottom: -3px;
199
236
  background: #1849a9;
200
237
  }
238
+
239
+ /* ══ mt-tabs default mode — render as DS Tabs, not a content switcher ═══ */
240
+ /* mt-tabs with no mode set renders a p-selectbutton, so it was picking up the
241
+ content-switcher look: a grey track with one solid blue filled segment. But
242
+ callers use it as a tab strip, and a DS tab is an underline rather than a
243
+ segmented control — so it read as the wrong component entirely, whatever its
244
+ dimensions.
245
+
246
+ Scoped to mt-tabs, so a bare p-selectbutton used as a genuine view toggle
247
+ keeps the content-switcher treatment from content-switcher.css. */
248
+
249
+ html.mt-ds mt-tabs .p-selectbutton {
250
+ gap: 0;
251
+ padding: 0;
252
+ border: none;
253
+ border-bottom: 3px solid #d2d6db;
254
+ border-radius: 0;
255
+ background: transparent;
256
+ overflow: visible;
257
+ }
258
+
259
+ html.mt-ds mt-tabs .p-selectbutton .p-togglebutton {
260
+ position: relative;
261
+ height: 52px;
262
+ min-width: 0;
263
+ border: none;
264
+ border-radius: 4px;
265
+ background: transparent;
266
+ color: #000b36;
267
+ font-weight: 500;
268
+ }
269
+
270
+ /* No inter-item dividers on a tab strip - those belong to the switcher. */
271
+ html.mt-ds mt-tabs .p-selectbutton .p-togglebutton + .p-togglebutton {
272
+ border-inline-start: none;
273
+ }
274
+
275
+ html.mt-ds mt-tabs .p-selectbutton .p-togglebutton .p-togglebutton-content {
276
+ gap: 8px;
277
+ padding: 16px;
278
+ background: transparent;
279
+ color: inherit;
280
+ font-size: 14px;
281
+ font-weight: inherit;
282
+ line-height: 20px;
283
+ }
284
+
285
+ html.mt-ds mt-tabs .p-selectbutton .p-togglebutton::after {
286
+ content: "";
287
+ position: absolute;
288
+ bottom: 0;
289
+ inset-inline: 16px;
290
+ height: 3px;
291
+ border-radius: 9999px;
292
+ background: transparent;
293
+ transition: background-color var(--ds-transition-fast);
294
+ }
295
+
296
+ html.mt-ds
297
+ mt-tabs
298
+ .p-selectbutton
299
+ .p-togglebutton:not(.p-togglebutton-checked, .p-disabled):hover {
300
+ background: #e5e7eb;
301
+ color: #000b36;
302
+ }
303
+
304
+ html.mt-ds
305
+ mt-tabs
306
+ .p-selectbutton
307
+ .p-togglebutton:not(.p-togglebutton-checked, .p-disabled):hover::after {
308
+ background: #1f2a37;
309
+ }
310
+
311
+ html.mt-ds mt-tabs .p-selectbutton .p-togglebutton.p-togglebutton-checked {
312
+ background: transparent;
313
+ color: #000b36;
314
+ font-weight: 700;
315
+ }
316
+
317
+ html.mt-ds
318
+ mt-tabs
319
+ .p-selectbutton
320
+ .p-togglebutton.p-togglebutton-checked
321
+ .p-togglebutton-content {
322
+ background: transparent;
323
+ color: #000b36;
324
+ }
325
+
326
+ html.mt-ds
327
+ mt-tabs
328
+ .p-selectbutton
329
+ .p-togglebutton.p-togglebutton-checked::after {
330
+ background: #1849a9;
331
+ }
@@ -56,6 +56,9 @@
56
56
  "you": "أنا"
57
57
  },
58
58
  "selectPlaceholder": "اختر...",
59
+ "schemaConnection": {
60
+ "hint": "حقل ارتباط"
61
+ },
59
62
  "drawer": {
60
63
  "expandFullWidth": "توسيع لعرض كامل",
61
64
  "restoreSize": "استعادة الحجم"
@@ -56,6 +56,9 @@
56
56
  "you": "Me"
57
57
  },
58
58
  "selectPlaceholder": "Select...",
59
+ "schemaConnection": {
60
+ "hint": "Connection Field"
61
+ },
59
62
  "drawer": {
60
63
  "expandFullWidth": "Expand to full width",
61
64
  "restoreSize": "Restore size"
@@ -5,7 +5,7 @@ import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
5
5
  import * as i1 from '@angular/forms';
6
6
  import { ControlContainer, NgControl, FormsModule, Validators } from '@angular/forms';
7
7
  import * as i2 from '@jsverse/transloco';
8
- import { TranslocoService, TranslocoPipe, TranslocoModule } from '@jsverse/transloco';
8
+ import { TranslocoService, TranslocoModule, TranslocoPipe } from '@jsverse/transloco';
9
9
  import { startWith, finalize, catchError, of, take, expand, EMPTY, reduce, map } from 'rxjs';
10
10
  import { Tooltip } from '@masterteam/components/tooltip';
11
11
  import { Icon } from '@masterteam/icons';
@@ -229,6 +229,26 @@ class SchemaConnectionField {
229
229
  sourceLevels = computed(() => {
230
230
  return this.configuration()?.sourceLevels ?? [];
231
231
  }, ...(ngDevMode ? [{ debugName: "sourceLevels" }] : /* istanbul ignore next */ []));
232
+ /**
233
+ * Tooltip for the marker rendered next to every source label — it is what
234
+ * tells the user these dropdowns belong to a connection, now that the
235
+ * connection's own label no longer occupies a row above them. Reads
236
+ * {@link activeLang} so the text re-translates on language switch.
237
+ */
238
+ connectionHint = computed(() => {
239
+ this.activeLang();
240
+ return this.transloco.translate('components.schemaConnection.hint');
241
+ }, ...(ngDevMode ? [{ debugName: "connectionHint" }] : /* istanbul ignore next */ []));
242
+ /**
243
+ * Placeholder for a source dropdown: its own source name, matching the label
244
+ * above it. Falls back to the field-level placeholder only when the source
245
+ * has no resolvable name.
246
+ */
247
+ sourcePlaceholder(source) {
248
+ return (this.resolveSourceName(source) ||
249
+ this.placeholder() ||
250
+ this.transloco.translate('components.selectPlaceholder'));
251
+ }
232
252
  /**
233
253
  * Percentage width for each dropdown, evenly divided.
234
254
  */
@@ -415,7 +435,7 @@ class SchemaConnectionField {
415
435
  this.disabled.set(disabled);
416
436
  }
417
437
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SchemaConnectionField, deps: [], target: i0.ɵɵFactoryTarget.Component });
418
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SchemaConnectionField, isStandalone: true, selector: "mt-schema-connection-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: true, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "grid gap-1" }, ngImport: i0, template: "@if (label()) {\r\n <label [class.required]=\"required()\" [for]=\"ngControl?.name || label()\">\r\n {{ label() }}\r\n </label>\r\n}\r\n\r\n<div class=\"flex gap-4 w-full\">\r\n @for (state of sourceLevelStates(); track getSourceId(state.source)) {\r\n <div [style.width]=\"dropdownWidth()\" class=\"min-w-0\">\r\n @if (sourceLevelStates().length > 0) {\r\n <span class=\"text-sm text-muted-color mb-1 block truncate\">\r\n {{ resolveSourceName(state.source) }}\r\n </span>\r\n }\r\n\r\n @if (state.source.allowManyToMany) {\r\n <mt-multi-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"\r\n placeholder() ||\r\n resolveSourceName(state.source) ||\r\n ('components.selectPlaceholder' | transloco)\r\n \"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [showClear]=\"true\"\r\n display=\"chip\"\r\n />\r\n } @else {\r\n <mt-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"\r\n placeholder() ||\r\n resolveSourceName(state.source) ||\r\n ('components.selectPlaceholder' | transloco)\r\n \"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [loading]=\"state.loading\"\r\n [showClear]=\"true\"\r\n />\r\n }\r\n </div>\r\n }\r\n</div>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }, { kind: "component", type: MultiSelectField, selector: "mt-multi-select-field", inputs: ["field", "label", "placeholder", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "display", "required", "maxSelectedLabels", "group", "virtualScroll", "virtualScrollItemSize", "optionGroupLabel", "optionGroupChildren", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape"], outputs: ["onChange"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched"] }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
438
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SchemaConnectionField, isStandalone: true, selector: "mt-schema-connection-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: true, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "grid gap-1" }, ngImport: i0, template: "<div class=\"flex gap-4 w-full\">\r\n @for (state of sourceLevelStates(); track getSourceId(state.source)) {\r\n <!--\r\n `grid gap-1 grid-cols-[minmax(0,1fr)]` matches the label\u2192control spacing\r\n every other mt-* field gets from its host class; the explicit column\r\n keeps the implicit max-content track from letting long values overflow.\r\n -->\r\n <div\r\n [style.width]=\"dropdownWidth()\"\r\n class=\"grid gap-1 grid-cols-[minmax(0,1fr)] min-w-0\"\r\n >\r\n <div class=\"flex items-center gap-1\">\r\n <label class=\"truncate\" [class.required]=\"required()\">\r\n {{ resolveSourceName(state.source) }}\r\n </label>\r\n <span\r\n class=\"inline-flex shrink-0 text-surface-400\"\r\n [mtTooltip]=\"connectionHint()\"\r\n tooltipPosition=\"top\"\r\n >\r\n <mt-icon icon=\"general.link-01\" />\r\n </span>\r\n </div>\r\n\r\n @if (state.source.allowManyToMany) {\r\n <mt-multi-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"sourcePlaceholder(state.source)\"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [showClear]=\"true\"\r\n display=\"chip\"\r\n />\r\n } @else {\r\n <mt-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"sourcePlaceholder(state.source)\"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [loading]=\"state.loading\"\r\n [showClear]=\"true\"\r\n />\r\n }\r\n </div>\r\n }\r\n</div>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }, { kind: "component", type: MultiSelectField, selector: "mt-multi-select-field", inputs: ["field", "label", "placeholder", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "display", "required", "maxSelectedLabels", "group", "virtualScroll", "virtualScrollItemSize", "optionGroupLabel", "optionGroupChildren", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape"], outputs: ["onChange"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched"] }, { kind: "directive", type: Tooltip, selector: "[mtTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
419
439
  }
420
440
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SchemaConnectionField, decorators: [{
421
441
  type: Component,
@@ -424,10 +444,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
424
444
  SelectField,
425
445
  MultiSelectField,
426
446
  FieldValidation,
427
- TranslocoPipe,
447
+ Tooltip,
448
+ Icon,
428
449
  ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
429
450
  class: 'grid gap-1',
430
- }, template: "@if (label()) {\r\n <label [class.required]=\"required()\" [for]=\"ngControl?.name || label()\">\r\n {{ label() }}\r\n </label>\r\n}\r\n\r\n<div class=\"flex gap-4 w-full\">\r\n @for (state of sourceLevelStates(); track getSourceId(state.source)) {\r\n <div [style.width]=\"dropdownWidth()\" class=\"min-w-0\">\r\n @if (sourceLevelStates().length > 0) {\r\n <span class=\"text-sm text-muted-color mb-1 block truncate\">\r\n {{ resolveSourceName(state.source) }}\r\n </span>\r\n }\r\n\r\n @if (state.source.allowManyToMany) {\r\n <mt-multi-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"\r\n placeholder() ||\r\n resolveSourceName(state.source) ||\r\n ('components.selectPlaceholder' | transloco)\r\n \"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [showClear]=\"true\"\r\n display=\"chip\"\r\n />\r\n } @else {\r\n <mt-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"\r\n placeholder() ||\r\n resolveSourceName(state.source) ||\r\n ('components.selectPlaceholder' | transloco)\r\n \"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [loading]=\"state.loading\"\r\n [showClear]=\"true\"\r\n />\r\n }\r\n </div>\r\n }\r\n</div>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n" }]
451
+ }, template: "<div class=\"flex gap-4 w-full\">\r\n @for (state of sourceLevelStates(); track getSourceId(state.source)) {\r\n <!--\r\n `grid gap-1 grid-cols-[minmax(0,1fr)]` matches the label\u2192control spacing\r\n every other mt-* field gets from its host class; the explicit column\r\n keeps the implicit max-content track from letting long values overflow.\r\n -->\r\n <div\r\n [style.width]=\"dropdownWidth()\"\r\n class=\"grid gap-1 grid-cols-[minmax(0,1fr)] min-w-0\"\r\n >\r\n <div class=\"flex items-center gap-1\">\r\n <label class=\"truncate\" [class.required]=\"required()\">\r\n {{ resolveSourceName(state.source) }}\r\n </label>\r\n <span\r\n class=\"inline-flex shrink-0 text-surface-400\"\r\n [mtTooltip]=\"connectionHint()\"\r\n tooltipPosition=\"top\"\r\n >\r\n <mt-icon icon=\"general.link-01\" />\r\n </span>\r\n </div>\r\n\r\n @if (state.source.allowManyToMany) {\r\n <mt-multi-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"sourcePlaceholder(state.source)\"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [showClear]=\"true\"\r\n display=\"chip\"\r\n />\r\n } @else {\r\n <mt-select-field\r\n [field]=\"false\"\r\n [(ngModel)]=\"selections[getSourceId(state.source)]\"\r\n (ngModelChange)=\"syncValue()\"\r\n [options]=\"state.options\"\r\n optionLabel=\"name\"\r\n optionValue=\"id\"\r\n [placeholder]=\"sourcePlaceholder(state.source)\"\r\n [readonly]=\"disabled() || readonly()\"\r\n [filter]=\"filter()\"\r\n [loading]=\"state.loading\"\r\n [showClear]=\"true\"\r\n />\r\n }\r\n </div>\r\n }\r\n</div>\r\n\r\n<mt-field-validation [control]=\"ngControl?.control\"></mt-field-validation>\r\n" }]
431
452
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: true }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }] } });
432
453
 
433
454
  const PREDECESSOR_TYPE_BY_TOKEN = {
@@ -1612,13 +1633,13 @@ class ScheduleItemSelectorField {
1612
1633
  return ids;
1613
1634
  }
1614
1635
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ScheduleItemSelectorField, deps: [], target: i0.ɵɵFactoryTarget.Component });
1615
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ScheduleItemSelectorField, isStandalone: true, selector: "mt-schedule-item-selector-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, propertyKey: { classPropertyName: "propertyKey", publicName: "propertyKey", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, runtimeContext: { classPropertyName: "runtimeContext", publicName: "runtimeContext", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, ngImport: i0, template: "@if (isMultiple()) {\n <mt-multi-select-field\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [options]=\"options()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [filter]=\"options().length > 10\"\n [showClear]=\"!required()\"\n [required]=\"required()\"\n [readonly]=\"readonly() || disabled()\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"onMultiChange($event)\"\n />\n} @else {\n <mt-select-field\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [options]=\"options()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [filter]=\"options().length > 10\"\n [showClear]=\"!required()\"\n [loading]=\"loading()\"\n [required]=\"required()\"\n [readonly]=\"readonly() || disabled()\"\n [ngModel]=\"singleValue()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"onSingleChange($event)\"\n />\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MultiSelectField, selector: "mt-multi-select-field", inputs: ["field", "label", "placeholder", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "display", "required", "maxSelectedLabels", "group", "virtualScroll", "virtualScrollItemSize", "optionGroupLabel", "optionGroupChildren", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape"], outputs: ["onChange"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1636
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ScheduleItemSelectorField, isStandalone: true, selector: "mt-schedule-item-selector-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, propertyKey: { classPropertyName: "propertyKey", publicName: "propertyKey", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, runtimeContext: { classPropertyName: "runtimeContext", publicName: "runtimeContext", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, ngImport: i0, template: "@if (isMultiple()) {\r\n <mt-multi-select-field\r\n [label]=\"label()\"\r\n [placeholder]=\"placeholder()\"\r\n [options]=\"options()\"\r\n [optionLabel]=\"'label'\"\r\n [optionValue]=\"'value'\"\r\n [filter]=\"options().length > 10\"\r\n [showClear]=\"!required()\"\r\n [required]=\"required()\"\r\n [readonly]=\"readonly() || disabled()\"\r\n [ngModel]=\"value()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"onMultiChange($event)\"\r\n />\r\n} @else {\r\n <mt-select-field\r\n [label]=\"label()\"\r\n [placeholder]=\"placeholder()\"\r\n [options]=\"options()\"\r\n [optionLabel]=\"'label'\"\r\n [optionValue]=\"'value'\"\r\n [filter]=\"options().length > 10\"\r\n [showClear]=\"!required()\"\r\n [loading]=\"loading()\"\r\n [required]=\"required()\"\r\n [readonly]=\"readonly() || disabled()\"\r\n [ngModel]=\"singleValue()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"onSingleChange($event)\"\r\n />\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MultiSelectField, selector: "mt-multi-select-field", inputs: ["field", "label", "placeholder", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "display", "required", "maxSelectedLabels", "group", "virtualScroll", "virtualScrollItemSize", "optionGroupLabel", "optionGroupChildren", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape"], outputs: ["onChange"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1616
1637
  }
1617
1638
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ScheduleItemSelectorField, decorators: [{
1618
1639
  type: Component,
1619
1640
  args: [{ selector: 'mt-schedule-item-selector-field', standalone: true, imports: [FormsModule, MultiSelectField, SelectField], changeDetection: ChangeDetectionStrategy.OnPush, host: {
1620
1641
  class: 'block',
1621
- }, template: "@if (isMultiple()) {\n <mt-multi-select-field\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [options]=\"options()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [filter]=\"options().length > 10\"\n [showClear]=\"!required()\"\n [required]=\"required()\"\n [readonly]=\"readonly() || disabled()\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"onMultiChange($event)\"\n />\n} @else {\n <mt-select-field\n [label]=\"label()\"\n [placeholder]=\"placeholder()\"\n [options]=\"options()\"\n [optionLabel]=\"'label'\"\n [optionValue]=\"'value'\"\n [filter]=\"options().length > 10\"\n [showClear]=\"!required()\"\n [loading]=\"loading()\"\n [required]=\"required()\"\n [readonly]=\"readonly() || disabled()\"\n [ngModel]=\"singleValue()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"onSingleChange($event)\"\n />\n}\n" }]
1642
+ }, template: "@if (isMultiple()) {\r\n <mt-multi-select-field\r\n [label]=\"label()\"\r\n [placeholder]=\"placeholder()\"\r\n [options]=\"options()\"\r\n [optionLabel]=\"'label'\"\r\n [optionValue]=\"'value'\"\r\n [filter]=\"options().length > 10\"\r\n [showClear]=\"!required()\"\r\n [required]=\"required()\"\r\n [readonly]=\"readonly() || disabled()\"\r\n [ngModel]=\"value()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"onMultiChange($event)\"\r\n />\r\n} @else {\r\n <mt-select-field\r\n [label]=\"label()\"\r\n [placeholder]=\"placeholder()\"\r\n [options]=\"options()\"\r\n [optionLabel]=\"'label'\"\r\n [optionValue]=\"'value'\"\r\n [filter]=\"options().length > 10\"\r\n [showClear]=\"!required()\"\r\n [loading]=\"loading()\"\r\n [required]=\"required()\"\r\n [readonly]=\"readonly() || disabled()\"\r\n [ngModel]=\"singleValue()\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"onSingleChange($event)\"\r\n />\r\n}\r\n" }]
1622
1643
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], propertyKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyKey", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], runtimeContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "runtimeContext", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }] } });
1623
1644
 
1624
1645
  /**
@@ -1855,7 +1876,7 @@ class LookupModuleCheckListField {
1855
1876
  return [];
1856
1877
  }
1857
1878
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: LookupModuleCheckListField, deps: [], target: i0.ɵɵFactoryTarget.Component });
1858
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: LookupModuleCheckListField, isStandalone: true, selector: "mt-lookup-module-check-list-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, lookupOptions: { classPropertyName: "lookupOptions", publicName: "lookupOptions", isSignal: true, isRequired: false, transformFunction: null }, lookups: { classPropertyName: "lookups", publicName: "lookups", isSignal: true, isRequired: false, transformFunction: null }, propertyFields: { classPropertyName: "propertyFields", publicName: "propertyFields", isSignal: true, isRequired: false, transformFunction: null }, scopeId: { classPropertyName: "scopeId", publicName: "scopeId", isSignal: true, isRequired: false, transformFunction: null }, propertyKeys: { classPropertyName: "propertyKeys", publicName: "propertyKeys", isSignal: true, isRequired: false, transformFunction: null }, runtimeContext: { classPropertyName: "runtimeContext", publicName: "runtimeContext", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "grid gap-2" }, ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\n @if (label()) {\n <label class=\"font-medium text-color\">\n {{ label() }}\n @if (required()) {\n <span class=\"text-red-500\">*</span>\n }\n </label>\n }\n\n @if (useRichForm()) {\n <ng-container\n [ngComponentOutlet]=\"formComponent!\"\n [ngComponentOutletInputs]=\"formInputs()\"\n />\n } @else if (sections().length) {\n <!-- Fallback: plain text inputs per property (no rich form registered) -->\n <div class=\"flex flex-col gap-2\">\n @for (section of sections(); track section.lookupKey) {\n <div class=\"overflow-hidden rounded-lg border border-surface-200\">\n <button\n type=\"button\"\n class=\"flex w-full cursor-pointer items-center justify-between gap-2 bg-surface-50 px-3 py-2 text-start hover:bg-surface-100\"\n [attr.aria-expanded]=\"isExpanded(section.lookupKey)\"\n (click)=\"toggle(section.lookupKey)\"\n >\n <span class=\"flex min-w-0 items-center gap-2\">\n <mt-icon\n [icon]=\"\n isExpanded(section.lookupKey)\n ? 'arrow.chevron-down'\n : 'arrow.chevron-right'\n \"\n size=\"sm\"\n class=\"shrink-0 text-muted-color rtl:-scale-x-100\"\n />\n <span class=\"truncate text-sm font-medium text-color\">\n {{ section.label }}\n </span>\n </span>\n @if (hasValues(section.lookupKey)) {\n <span\n class=\"shrink-0 rounded-full bg-primary-50 px-2 py-0.5 text-xs font-semibold text-primary-700\"\n >\n {{ \"components.lookupModuleCheckListField.filled\" | transloco }}\n </span>\n }\n </button>\n\n @if (isExpanded(section.lookupKey) && propertyFields().length) {\n <div class=\"border-t border-surface-200 p-3\">\n <div class=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n @for (field of propertyFields(); track field.key) {\n <label class=\"flex min-w-0 flex-col gap-1\">\n <span class=\"truncate text-xs text-muted-color\">\n {{ field.label }}\n </span>\n @if (isReadonly()) {\n <span class=\"truncate text-sm text-color\">\n {{ fieldValue(section.lookupKey, field.key) || \"_\" }}\n </span>\n } @else {\n <input\n pInputText\n class=\"w-full\"\n [ngModel]=\"fieldValue(section.lookupKey, field.key)\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"\n setFieldValue(section.lookupKey, field.key, $event)\n \"\n />\n }\n </label>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <div\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ \"components.lookupModuleCheckListField.empty\" | transloco }}\n </div>\n }\n\n @if (ngControl?.control) {\n <mt-field-validation\n [control]=\"ngControl?.control!\"\n [touched]=\"ngControl?.touched ?? false\"\n />\n }\n</div>\n", dependencies: [{ 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]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$1.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched"] }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1879
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: LookupModuleCheckListField, isStandalone: true, selector: "mt-lookup-module-check-list-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, lookupOptions: { classPropertyName: "lookupOptions", publicName: "lookupOptions", isSignal: true, isRequired: false, transformFunction: null }, lookups: { classPropertyName: "lookups", publicName: "lookups", isSignal: true, isRequired: false, transformFunction: null }, propertyFields: { classPropertyName: "propertyFields", publicName: "propertyFields", isSignal: true, isRequired: false, transformFunction: null }, scopeId: { classPropertyName: "scopeId", publicName: "scopeId", isSignal: true, isRequired: false, transformFunction: null }, propertyKeys: { classPropertyName: "propertyKeys", publicName: "propertyKeys", isSignal: true, isRequired: false, transformFunction: null }, runtimeContext: { classPropertyName: "runtimeContext", publicName: "runtimeContext", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "grid gap-2" }, ngImport: i0, template: "<div class=\"flex flex-col gap-2\">\r\n @if (label()) {\r\n <label class=\"font-medium text-color\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"text-red-500\">*</span>\r\n }\r\n </label>\r\n }\r\n\r\n @if (useRichForm()) {\r\n <ng-container\r\n [ngComponentOutlet]=\"formComponent!\"\r\n [ngComponentOutletInputs]=\"formInputs()\"\r\n />\r\n } @else if (sections().length) {\r\n <!-- Fallback: plain text inputs per property (no rich form registered) -->\r\n <div class=\"flex flex-col gap-2\">\r\n @for (section of sections(); track section.lookupKey) {\r\n <div class=\"overflow-hidden rounded-lg border border-surface-200\">\r\n <button\r\n type=\"button\"\r\n class=\"flex w-full cursor-pointer items-center justify-between gap-2 bg-surface-50 px-3 py-2 text-start hover:bg-surface-100\"\r\n [attr.aria-expanded]=\"isExpanded(section.lookupKey)\"\r\n (click)=\"toggle(section.lookupKey)\"\r\n >\r\n <span class=\"flex min-w-0 items-center gap-2\">\r\n <mt-icon\r\n [icon]=\"\r\n isExpanded(section.lookupKey)\r\n ? 'arrow.chevron-down'\r\n : 'arrow.chevron-right'\r\n \"\r\n size=\"sm\"\r\n class=\"shrink-0 text-muted-color rtl:-scale-x-100\"\r\n />\r\n <span class=\"truncate text-sm font-medium text-color\">\r\n {{ section.label }}\r\n </span>\r\n </span>\r\n @if (hasValues(section.lookupKey)) {\r\n <span\r\n class=\"shrink-0 rounded-full bg-primary-50 px-2 py-0.5 text-xs font-semibold text-primary-700\"\r\n >\r\n {{ \"components.lookupModuleCheckListField.filled\" | transloco }}\r\n </span>\r\n }\r\n </button>\r\n\r\n @if (isExpanded(section.lookupKey) && propertyFields().length) {\r\n <div class=\"border-t border-surface-200 p-3\">\r\n <div class=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\r\n @for (field of propertyFields(); track field.key) {\r\n <label class=\"flex min-w-0 flex-col gap-1\">\r\n <span class=\"truncate text-xs text-muted-color\">\r\n {{ field.label }}\r\n </span>\r\n @if (isReadonly()) {\r\n <span class=\"truncate text-sm text-color\">\r\n {{ fieldValue(section.lookupKey, field.key) || \"_\" }}\r\n </span>\r\n } @else {\r\n <input\r\n pInputText\r\n class=\"w-full\"\r\n [ngModel]=\"fieldValue(section.lookupKey, field.key)\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"\r\n setFieldValue(section.lookupKey, field.key, $event)\r\n \"\r\n />\r\n }\r\n </label>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.lookupModuleCheckListField.empty\" | transloco }}\r\n </div>\r\n }\r\n\r\n @if (ngControl?.control) {\r\n <mt-field-validation\r\n [control]=\"ngControl?.control!\"\r\n [touched]=\"ngControl?.touched ?? false\"\r\n />\r\n }\r\n</div>\r\n", dependencies: [{ 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]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$1.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched"] }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1859
1880
  }
1860
1881
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: LookupModuleCheckListField, decorators: [{
1861
1882
  type: Component,
@@ -1866,7 +1887,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
1866
1887
  Icon,
1867
1888
  FieldValidation,
1868
1889
  TranslocoPipe,
1869
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'grid gap-2' }, template: "<div class=\"flex flex-col gap-2\">\n @if (label()) {\n <label class=\"font-medium text-color\">\n {{ label() }}\n @if (required()) {\n <span class=\"text-red-500\">*</span>\n }\n </label>\n }\n\n @if (useRichForm()) {\n <ng-container\n [ngComponentOutlet]=\"formComponent!\"\n [ngComponentOutletInputs]=\"formInputs()\"\n />\n } @else if (sections().length) {\n <!-- Fallback: plain text inputs per property (no rich form registered) -->\n <div class=\"flex flex-col gap-2\">\n @for (section of sections(); track section.lookupKey) {\n <div class=\"overflow-hidden rounded-lg border border-surface-200\">\n <button\n type=\"button\"\n class=\"flex w-full cursor-pointer items-center justify-between gap-2 bg-surface-50 px-3 py-2 text-start hover:bg-surface-100\"\n [attr.aria-expanded]=\"isExpanded(section.lookupKey)\"\n (click)=\"toggle(section.lookupKey)\"\n >\n <span class=\"flex min-w-0 items-center gap-2\">\n <mt-icon\n [icon]=\"\n isExpanded(section.lookupKey)\n ? 'arrow.chevron-down'\n : 'arrow.chevron-right'\n \"\n size=\"sm\"\n class=\"shrink-0 text-muted-color rtl:-scale-x-100\"\n />\n <span class=\"truncate text-sm font-medium text-color\">\n {{ section.label }}\n </span>\n </span>\n @if (hasValues(section.lookupKey)) {\n <span\n class=\"shrink-0 rounded-full bg-primary-50 px-2 py-0.5 text-xs font-semibold text-primary-700\"\n >\n {{ \"components.lookupModuleCheckListField.filled\" | transloco }}\n </span>\n }\n </button>\n\n @if (isExpanded(section.lookupKey) && propertyFields().length) {\n <div class=\"border-t border-surface-200 p-3\">\n <div class=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\n @for (field of propertyFields(); track field.key) {\n <label class=\"flex min-w-0 flex-col gap-1\">\n <span class=\"truncate text-xs text-muted-color\">\n {{ field.label }}\n </span>\n @if (isReadonly()) {\n <span class=\"truncate text-sm text-color\">\n {{ fieldValue(section.lookupKey, field.key) || \"_\" }}\n </span>\n } @else {\n <input\n pInputText\n class=\"w-full\"\n [ngModel]=\"fieldValue(section.lookupKey, field.key)\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"\n setFieldValue(section.lookupKey, field.key, $event)\n \"\n />\n }\n </label>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n } @else {\n <div\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\n >\n {{ \"components.lookupModuleCheckListField.empty\" | transloco }}\n </div>\n }\n\n @if (ngControl?.control) {\n <mt-field-validation\n [control]=\"ngControl?.control!\"\n [touched]=\"ngControl?.touched ?? false\"\n />\n }\n</div>\n" }]
1890
+ ], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'grid gap-2' }, template: "<div class=\"flex flex-col gap-2\">\r\n @if (label()) {\r\n <label class=\"font-medium text-color\">\r\n {{ label() }}\r\n @if (required()) {\r\n <span class=\"text-red-500\">*</span>\r\n }\r\n </label>\r\n }\r\n\r\n @if (useRichForm()) {\r\n <ng-container\r\n [ngComponentOutlet]=\"formComponent!\"\r\n [ngComponentOutletInputs]=\"formInputs()\"\r\n />\r\n } @else if (sections().length) {\r\n <!-- Fallback: plain text inputs per property (no rich form registered) -->\r\n <div class=\"flex flex-col gap-2\">\r\n @for (section of sections(); track section.lookupKey) {\r\n <div class=\"overflow-hidden rounded-lg border border-surface-200\">\r\n <button\r\n type=\"button\"\r\n class=\"flex w-full cursor-pointer items-center justify-between gap-2 bg-surface-50 px-3 py-2 text-start hover:bg-surface-100\"\r\n [attr.aria-expanded]=\"isExpanded(section.lookupKey)\"\r\n (click)=\"toggle(section.lookupKey)\"\r\n >\r\n <span class=\"flex min-w-0 items-center gap-2\">\r\n <mt-icon\r\n [icon]=\"\r\n isExpanded(section.lookupKey)\r\n ? 'arrow.chevron-down'\r\n : 'arrow.chevron-right'\r\n \"\r\n size=\"sm\"\r\n class=\"shrink-0 text-muted-color rtl:-scale-x-100\"\r\n />\r\n <span class=\"truncate text-sm font-medium text-color\">\r\n {{ section.label }}\r\n </span>\r\n </span>\r\n @if (hasValues(section.lookupKey)) {\r\n <span\r\n class=\"shrink-0 rounded-full bg-primary-50 px-2 py-0.5 text-xs font-semibold text-primary-700\"\r\n >\r\n {{ \"components.lookupModuleCheckListField.filled\" | transloco }}\r\n </span>\r\n }\r\n </button>\r\n\r\n @if (isExpanded(section.lookupKey) && propertyFields().length) {\r\n <div class=\"border-t border-surface-200 p-3\">\r\n <div class=\"grid grid-cols-1 gap-3 sm:grid-cols-2\">\r\n @for (field of propertyFields(); track field.key) {\r\n <label class=\"flex min-w-0 flex-col gap-1\">\r\n <span class=\"truncate text-xs text-muted-color\">\r\n {{ field.label }}\r\n </span>\r\n @if (isReadonly()) {\r\n <span class=\"truncate text-sm text-color\">\r\n {{ fieldValue(section.lookupKey, field.key) || \"_\" }}\r\n </span>\r\n } @else {\r\n <input\r\n pInputText\r\n class=\"w-full\"\r\n [ngModel]=\"fieldValue(section.lookupKey, field.key)\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"\r\n setFieldValue(section.lookupKey, field.key, $event)\r\n \"\r\n />\r\n }\r\n </label>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div\r\n class=\"rounded border border-dashed border-surface-300 bg-surface-50 p-3 text-sm text-muted-color\"\r\n >\r\n {{ \"components.lookupModuleCheckListField.empty\" | transloco }}\r\n </div>\r\n }\r\n\r\n @if (ngControl?.control) {\r\n <mt-field-validation\r\n [control]=\"ngControl?.control!\"\r\n [touched]=\"ngControl?.touched ?? false\"\r\n />\r\n }\r\n</div>\r\n" }]
1870
1891
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], lookupOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "lookupOptions", required: false }] }], lookups: [{ type: i0.Input, args: [{ isSignal: true, alias: "lookups", required: false }] }], propertyFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyFields", required: false }] }], scopeId: [{ type: i0.Input, args: [{ isSignal: true, alias: "scopeId", required: false }] }], propertyKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyKeys", required: false }] }], runtimeContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "runtimeContext", required: false }] }] } });
1871
1892
 
1872
1893
  /**