@arsedizioni/ars-utils 22.6.86 → 22.6.88

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 (79) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
  6. package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
  8. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
  9. package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
  10. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  11. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
  12. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
  14. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
  18. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
  20. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
  22. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
  24. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
  25. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
  26. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
  27. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
  28. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
  29. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
  30. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
  32. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
  34. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
  36. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
  38. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
  40. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
  42. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
  44. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  45. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
  46. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
  47. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
  48. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
  49. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
  50. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
  51. package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
  52. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  53. package/package.json +1 -1
  54. package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
  55. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
  56. package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
  57. package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
  58. package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
  59. package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
  60. package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
  61. package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
  62. package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
  63. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
  64. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
  65. package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
  66. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
  67. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
  68. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
  69. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
  70. package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
  71. package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
  72. package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
  73. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
  74. package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
  75. package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
  76. package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
  77. package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
  78. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
  79. package/types/arsedizioni-ars-utils.d.ts +1 -3
@@ -1,281 +1,443 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnDestroy } from '@angular/core';
3
- import { ControlValueAccessor, NgControl } from '@angular/forms';
4
- import { NameValueItem } from '@arsedizioni/ars-utils/core';
5
- import * as _angular_forms_signals from '@angular/forms/signals';
6
-
7
- declare class ButtonSelectorComponent implements OnDestroy, ControlValueAccessor {
8
- ngControl: NgControl;
9
- /** Emitted whenever the selected value changes (including programmatic resets). */
10
- readonly changed: _angular_core.OutputEmitterRef<NameValueItem<any>>;
11
- /** Emitted when the user explicitly picks an item from the menu. */
12
- readonly selected: _angular_core.OutputEmitterRef<NameValueItem<any>>;
13
- private readonly stateChanges;
14
- private focused;
15
- private _value;
16
- set value(value: NameValueItem<any> | undefined);
17
- /**
18
- * Updates the internal state. Form propagation is skipped for model->view
19
- * writes (writeValue) to avoid the CVA echo loop, and performed for
20
- * user/programmatic changes via the `value` setter.
21
- * @param value - The new value to store and display.
22
- * @param propagate - When `true`, notifies the registered onChange callback.
23
- */
24
- private setValue;
25
- /** The current value as the selected item. */
26
- get value(): NameValueItem<any> | undefined;
27
- private _disabled;
28
- get disabled(): boolean;
29
- set disabled(value: boolean);
30
- private propagateChange;
31
- private propagateTouched;
32
- id: string;
33
- describedBy: string;
34
- private readonly renderer;
35
- /** Currently selected item, kept in sync with the form control value. */
36
- protected readonly current: _angular_core.WritableSignal<NameValueItem<any>>;
37
- /** Width of the trigger button in pixels. Use `-1` for 100 %, `0` for `auto`. */
38
- readonly width: _angular_core.InputSignal<number>;
39
- /** Border thickness override. Use `-1` to inherit. */
40
- readonly border: _angular_core.InputSignal<number>;
41
- /** CSS border-radius of the trigger button. Defaults to a pill shape. */
42
- readonly borderRadius: _angular_core.InputSignal<string>;
43
- /** Placeholder label shown when nothing is selected. */
44
- readonly label: _angular_core.InputSignal<string>;
45
- /** Label shown above the selected value (replaces `label` when an item is selected). */
46
- readonly labelSelected: _angular_core.InputSignal<string>;
47
- /** List of selectable options. */
48
- readonly options: _angular_core.InputSignal<NameValueItem<any>[]>;
49
- /** When `true`, the first available option is pre-selected on init. */
50
- readonly autoSelect: _angular_core.InputSignal<boolean>;
51
- constructor(ngControl: NgControl);
52
- ngOnDestroy(): void;
53
- /**
54
- * Writes a new value to the component (called by the form layer).
55
- * @param value - The new value to display.
56
- */
57
- writeValue(value: any): void;
58
- /**
59
- * Registers the on-change callback (called by the form layer).
60
- * @param fn - Callback to invoke whenever the value changes.
61
- */
62
- registerOnChange(fn: (_: any) => void): void;
63
- /**
64
- * Registers the on-touched callback (called by the form layer).
65
- * @param fn - Callback to invoke when the control is touched.
66
- */
67
- registerOnTouched(fn: () => void): void;
68
- /**
69
- * Sets the ARIA described-by IDs for accessibility.
70
- * @param ids - The list of element IDs to associate with this control.
71
- */
72
- setDescribedByIds(ids: string[]): void;
73
- /**
74
- * Updates the disabled state when the Angular form layer changes it.
75
- * @param isDisabled - Whether the control should be disabled.
76
- */
77
- setDisabledState(isDisabled: boolean): void;
78
- /**
79
- * Handles a click on the container element, focusing it and marking it as touched.
80
- */
81
- onContainerClick(): void;
82
- /**
83
- * Selects an option and optionally emits the `selected` output event.
84
- * @param item - The item to select.
85
- * @param notify - When `true` (default), emits the `selected` event.
86
- */
87
- select(item: NameValueItem<any>, notify?: boolean): void;
88
- /** Clears the current selection and resets the control to an empty state. */
89
- reset(): void;
90
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonSelectorComponent, [{ optional: true; self: true; }]>;
91
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonSelectorComponent, "button-selector", never, { "disabled": { "alias": "disabled"; "required": false; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelSelected": { "alias": "labelSelected"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "autoSelect": { "alias": "autoSelect"; "required": false; "isSignal": true; }; }, { "changed": "changed"; "selected": "selected"; }, never, never, true, never>;
1
+ import * as i0 from "@angular/core";
2
+ import { OnDestroy } from "@angular/core";
3
+ import { ControlValueAccessor, NgControl } from "@angular/forms";
4
+ import { NameValueItem } from "@arsedizioni/ars-utils/core";
5
+ export declare class ButtonSelectorComponent implements OnDestroy, ControlValueAccessor {
6
+ ngControl: NgControl;
7
+ /** Emitted whenever the selected value changes (including programmatic resets). */
8
+ readonly changed: import("@angular/core").OutputEmitterRef<NameValueItem<any>>;
9
+ /** Emitted when the user explicitly picks an item from the menu. */
10
+ readonly selected: import("@angular/core").OutputEmitterRef<NameValueItem<any>>;
11
+ private readonly stateChanges;
12
+ private focused;
13
+ private _value;
14
+ set value(value: NameValueItem<any> | undefined);
15
+ /**
16
+ * Updates the internal state. Form propagation is skipped for model->view
17
+ * writes (writeValue) to avoid the CVA echo loop, and performed for
18
+ * user/programmatic changes via the `value` setter.
19
+ * @param value - The new value to store and display.
20
+ * @param propagate - When `true`, notifies the registered onChange callback.
21
+ */
22
+ private setValue;
23
+ /** The current value as the selected item. */
24
+ get value(): NameValueItem<any> | undefined;
25
+ private _disabled;
26
+ get disabled(): boolean;
27
+ set disabled(value: boolean);
28
+ private propagateChange;
29
+ private propagateTouched;
30
+ id: string;
31
+ describedBy: string;
32
+ private readonly renderer;
33
+ /** Currently selected item, kept in sync with the form control value. */
34
+ protected readonly current: import("@angular/core").WritableSignal<NameValueItem<any>>;
35
+ /** Width of the trigger button in pixels. Use `-1` for 100 %, `0` for `auto`. */
36
+ readonly width: import("@angular/core").InputSignal<number>;
37
+ /** Border thickness override. Use `-1` to inherit. */
38
+ readonly border: import("@angular/core").InputSignal<number>;
39
+ /** CSS border-radius of the trigger button. Defaults to a pill shape. */
40
+ readonly borderRadius: import("@angular/core").InputSignal<string>;
41
+ /** Placeholder label shown when nothing is selected. */
42
+ readonly label: import("@angular/core").InputSignal<string>;
43
+ /** Label shown above the selected value (replaces `label` when an item is selected). */
44
+ readonly labelSelected: import("@angular/core").InputSignal<string>;
45
+ /** List of selectable options. */
46
+ readonly options: import("@angular/core").InputSignal<NameValueItem<any>[]>;
47
+ /** When `true`, the first available option is pre-selected on init. */
48
+ readonly autoSelect: import("@angular/core").InputSignal<boolean>;
49
+ constructor(ngControl: NgControl);
50
+ ngOnDestroy(): void;
51
+ /**
52
+ * Writes a new value to the component (called by the form layer).
53
+ * @param value - The new value to display.
54
+ */
55
+ writeValue(value: any): void;
56
+ /**
57
+ * Registers the on-change callback (called by the form layer).
58
+ * @param fn - Callback to invoke whenever the value changes.
59
+ */
60
+ registerOnChange(fn: (_: any) => void): void;
61
+ /**
62
+ * Registers the on-touched callback (called by the form layer).
63
+ * @param fn - Callback to invoke when the control is touched.
64
+ */
65
+ registerOnTouched(fn: () => void): void;
66
+ /**
67
+ * Sets the ARIA described-by IDs for accessibility.
68
+ * @param ids - The list of element IDs to associate with this control.
69
+ */
70
+ setDescribedByIds(ids: string[]): void;
71
+ /**
72
+ * Updates the disabled state when the Angular form layer changes it.
73
+ * @param isDisabled - Whether the control should be disabled.
74
+ */
75
+ setDisabledState(isDisabled: boolean): void;
76
+ /**
77
+ * Handles a click on the container element, focusing it and marking it as touched.
78
+ */
79
+ onContainerClick(): void;
80
+ /**
81
+ * Selects an option and optionally emits the `selected` output event.
82
+ * @param item - The item to select.
83
+ * @param notify - When `true` (default), emits the `selected` event.
84
+ */
85
+ select(item: NameValueItem<any>, notify?: boolean): void;
86
+ /** Clears the current selection and resets the control to an empty state. */
87
+ reset(): void;
88
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonSelectorComponent, [{
89
+ optional: true;
90
+ self: true;
91
+ }]>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonSelectorComponent, "button-selector", never, {
93
+ "disabled": {
94
+ "alias": "disabled";
95
+ "required": false;
96
+ };
97
+ "width": {
98
+ "alias": "width";
99
+ "required": false;
100
+ "isSignal": true;
101
+ };
102
+ "border": {
103
+ "alias": "border";
104
+ "required": false;
105
+ "isSignal": true;
106
+ };
107
+ "borderRadius": {
108
+ "alias": "borderRadius";
109
+ "required": false;
110
+ "isSignal": true;
111
+ };
112
+ "label": {
113
+ "alias": "label";
114
+ "required": false;
115
+ "isSignal": true;
116
+ };
117
+ "labelSelected": {
118
+ "alias": "labelSelected";
119
+ "required": false;
120
+ "isSignal": true;
121
+ };
122
+ "options": {
123
+ "alias": "options";
124
+ "required": false;
125
+ "isSignal": true;
126
+ };
127
+ "autoSelect": {
128
+ "alias": "autoSelect";
129
+ "required": false;
130
+ "isSignal": true;
131
+ };
132
+ }, {
133
+ "changed": "changed";
134
+ "selected": "selected";
135
+ }, never, never, true, never>;
92
136
  }
93
-
94
- interface ButtonToggleInfo {
95
- value: boolean;
96
- toggled: boolean;
137
+ export interface ButtonToggleInfo {
138
+ value: boolean;
139
+ toggled: boolean;
97
140
  }
98
- declare class ButtonToggleComponent {
99
- /** Emitted each time the button is clicked. Carries the current `value` and the new `toggled` state. */
100
- readonly changed: _angular_core.OutputEmitterRef<ButtonToggleInfo>;
101
- /** Current value bound from the parent. Drives label and icon selection. */
102
- readonly value: _angular_core.InputSignal<boolean>;
103
- /** Width of the button in pixels. Use `-1` for automatic sizing. */
104
- readonly width: _angular_core.InputSignal<number>;
105
- /** Border thickness override in pixels. Use `-1` to inherit. */
106
- readonly border: _angular_core.InputSignal<number>;
107
- /** Label shown when `value` is `true`. */
108
- readonly labelOn: _angular_core.InputSignal<string>;
109
- /** Label shown when `value` is `false`. */
110
- readonly labelOff: _angular_core.InputSignal<string>;
111
- /** Material icon name shown when `value` is `true`. */
112
- readonly iconOn: _angular_core.InputSignal<string>;
113
- /** Material icon name shown when `value` is `false`. */
114
- readonly iconOff: _angular_core.InputSignal<string>;
115
- /** CSS class applied to the button at all breakpoints. */
116
- readonly cssClass: _angular_core.InputSignal<string>;
117
- /** CSS class applied to the button on `xs` screens. */
118
- readonly cssClassSmall: _angular_core.InputSignal<string>;
119
- /** Resolves the appropriate label for the current value state. */
120
- protected readonly label: _angular_core.Signal<string>;
121
- /** Resolves the appropriate icon name for the current value state. */
122
- protected readonly icon: _angular_core.Signal<string>;
123
- /**
124
- * Toggles the button state and emits the `changed` event.
125
- * The emitted `toggled` value is the logical inverse of the current `value`.
126
- */
127
- toggle(): void;
128
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonToggleComponent, never>;
129
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonToggleComponent, "button-toggle", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "labelOn": { "alias": "labelOn"; "required": false; "isSignal": true; }; "labelOff": { "alias": "labelOff"; "required": false; "isSignal": true; }; "iconOn": { "alias": "iconOn"; "required": false; "isSignal": true; }; "iconOff": { "alias": "iconOff"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "cssClassSmall": { "alias": "cssClassSmall"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
141
+ export declare class ButtonToggleComponent {
142
+ /** Emitted each time the button is clicked. Carries the current `value` and the new `toggled` state. */
143
+ readonly changed: import("@angular/core").OutputEmitterRef<ButtonToggleInfo>;
144
+ /** Current value bound from the parent. Drives label and icon selection. */
145
+ readonly value: import("@angular/core").InputSignal<boolean>;
146
+ /** Width of the button in pixels. Use `-1` for automatic sizing. */
147
+ readonly width: import("@angular/core").InputSignal<number>;
148
+ /** Border thickness override in pixels. Use `-1` to inherit. */
149
+ readonly border: import("@angular/core").InputSignal<number>;
150
+ /** Label shown when `value` is `true`. */
151
+ readonly labelOn: import("@angular/core").InputSignal<string>;
152
+ /** Label shown when `value` is `false`. */
153
+ readonly labelOff: import("@angular/core").InputSignal<string>;
154
+ /** Material icon name shown when `value` is `true`. */
155
+ readonly iconOn: import("@angular/core").InputSignal<string>;
156
+ /** Material icon name shown when `value` is `false`. */
157
+ readonly iconOff: import("@angular/core").InputSignal<string>;
158
+ /** CSS class applied to the button at all breakpoints. */
159
+ readonly cssClass: import("@angular/core").InputSignal<string>;
160
+ /** CSS class applied to the button on `xs` screens. */
161
+ readonly cssClassSmall: import("@angular/core").InputSignal<string>;
162
+ /** Resolves the appropriate label for the current value state. */
163
+ protected readonly label: import("@angular/core").Signal<string>;
164
+ /** Resolves the appropriate icon name for the current value state. */
165
+ protected readonly icon: import("@angular/core").Signal<string>;
166
+ /**
167
+ * Toggles the button state and emits the `changed` event.
168
+ * The emitted `toggled` value is the logical inverse of the current `value`.
169
+ */
170
+ toggle(): void;
171
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonToggleComponent, never>;
172
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonToggleComponent, "button-toggle", never, {
173
+ "value": {
174
+ "alias": "value";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
178
+ "width": {
179
+ "alias": "width";
180
+ "required": false;
181
+ "isSignal": true;
182
+ };
183
+ "border": {
184
+ "alias": "border";
185
+ "required": false;
186
+ "isSignal": true;
187
+ };
188
+ "labelOn": {
189
+ "alias": "labelOn";
190
+ "required": false;
191
+ "isSignal": true;
192
+ };
193
+ "labelOff": {
194
+ "alias": "labelOff";
195
+ "required": false;
196
+ "isSignal": true;
197
+ };
198
+ "iconOn": {
199
+ "alias": "iconOn";
200
+ "required": false;
201
+ "isSignal": true;
202
+ };
203
+ "iconOff": {
204
+ "alias": "iconOff";
205
+ "required": false;
206
+ "isSignal": true;
207
+ };
208
+ "cssClass": {
209
+ "alias": "cssClass";
210
+ "required": false;
211
+ "isSignal": true;
212
+ };
213
+ "cssClassSmall": {
214
+ "alias": "cssClassSmall";
215
+ "required": false;
216
+ "isSignal": true;
217
+ };
218
+ }, {
219
+ "changed": "changed";
220
+ }, never, never, true, never>;
130
221
  }
131
-
132
- declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor {
133
- ngControl: NgControl;
134
- /** Emitted when the selection changes. Carries the new array of selected items, or `undefined` when cleared. */
135
- readonly changed: _angular_core.OutputEmitterRef<NameValueItem<any>[]>;
136
- protected readonly containerId: string;
137
- protected readonly containerWidth: _angular_core.WritableSignal<number>;
138
- private focused;
139
- private readonly stateChanges;
140
- private readonly destroyRef;
141
- private changesEnabled;
142
- private destroyed;
143
- private widthRetries;
144
- /** Observer that tracks size changes of the container element. */
145
- private resizeObserver?;
146
- /** Debounce bridge for `ResizeObserver` notifications. */
147
- private readonly resize$;
148
- /** List of available options to display as chips. */
149
- readonly options: _angular_core.InputSignal<NameValueItem<any>[]>;
150
- /** Minimum width in pixels when collapsed. Use `-1` for automatic. */
151
- readonly collapsedWidth: _angular_core.InputSignal<number>;
152
- /** Display mode used when the selector is in collapsed state. */
153
- readonly collapsedDisplayMode: _angular_core.InputSignal<"dropdown" | "button">;
154
- /** Pixel threshold below which the selector collapses. Use `-1` to disable. */
155
- readonly collapseAt: _angular_core.InputSignal<number>;
156
- /** When `true`, `collapseAt` is compared against the container width rather than the window width. */
157
- readonly collapseAtContainer: _angular_core.InputSignal<boolean>;
158
- protected readonly collapsed: _angular_core.Signal<boolean>;
159
- /** Label shown in the dropdown / above the chip list. */
160
- readonly label: _angular_core.InputSignal<string>;
161
- /** When `true`, multiple chips can be selected simultaneously. */
162
- readonly multiple: _angular_core.InputSignal<boolean>;
163
- /** When `true`, at least one item must remain selected. */
164
- readonly mustSelect: _angular_core.InputSignal<boolean>;
165
- /** Layout mode: `'collapsed'` forces dropdown mode, `'dynamic'` collapses based on `collapseAt`. */
166
- readonly mode: _angular_core.InputSignal<"collapsed" | "dynamic">;
167
- /** When `true`, chips are stacked vertically instead of wrapping horizontally. */
168
- readonly stacked: _angular_core.InputSignal<boolean>;
169
- /** Chips below this index receive extra padding to align with other UI elements. */
170
- readonly padAt: _angular_core.InputSignal<number>;
171
- /** When `true`, the control is required. */
172
- readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
173
- /** Placeholder text shown when no value is selected. */
174
- readonly placeholder: _angular_core.InputSignal<string>;
175
- private _disabled;
176
- get disabled(): boolean;
177
- set disabled(value: boolean);
178
- id: string;
179
- describedBy: string;
180
- /** True when the label should float above the field (focused or has a value). */
181
- get shouldLabelFloat(): boolean;
182
- private _value?;
183
- set value(value: NameValueItem<any>[] | undefined);
184
- /**
185
- * Updates the internal state and selection mirrors.
186
- * @param value - The new selection array.
187
- * @param propagate - When `true`, notifies the registered onChange callback.
188
- */
189
- private setValue;
190
- /** The current value as an array of selected items. */
191
- get value(): NameValueItem<any>[] | undefined;
192
- /** True when no item is selected. */
193
- get empty(): boolean;
194
- /** True when the control has validation errors and has been touched. */
195
- get errorState(): boolean;
196
- private propagateChange;
197
- private propagateTouched;
198
- private readonly renderer;
199
- private readonly cdr;
200
- /**
201
- * Currently selected items. Kept loosely typed on purpose: in multi-select mode the
202
- * bound controls write an array, while in single-select mode mat-select / the chip
203
- * listbox write a single item; `getSelection()` normalizes both shapes.
204
- */
205
- protected readonly selection: _angular_core.WritableSignal<any>;
206
- /** The single selected item — used in `button` collapsed-display mode. */
207
- protected readonly singleSelection: _angular_core.WritableSignal<NameValueItem<any>>;
208
- /** Root signal form bound to the internal mat-select / chip listbox. */
209
- protected readonly selectionForm: _angular_forms_signals.FieldTree<any, string | number, "writable">;
210
- /** Root signal form bound to the internal button-selector in `button` collapsed mode. */
211
- protected readonly singleForm: _angular_forms_signals.FieldTree<NameValueItem<any>, string | number, "writable">;
212
- constructor(ngControl: NgControl);
213
- ngOnDestroy(): void;
214
- /**
215
- * Measures the container (or window) width and updates the `containerWidth` signal,
216
- * retrying after 100 ms if the element is not yet laid out.
217
- */
218
- private updateContainerWidth;
219
- /**
220
- * Resolves the effective selection array for the current display mode.
221
- * In single-select collapsed button mode the `singleSelection` item is wrapped in an array.
222
- * @returns The array of currently selected items.
223
- */
224
- private getSelection;
225
- /**
226
- * Schedules a value update after a short delay, coalescing rapid selection changes
227
- * before the value is propagated to the outer form.
228
- */
229
- updateValue(): void;
230
- /**
231
- * Returns `true` when the given item can be selected in the current mode.
232
- * In single-select mode an already-selected item is not re-selectable.
233
- * @param item - The item to check.
234
- * @returns True when the item is selectable.
235
- */
236
- isSelectable(item: NameValueItem<any>): boolean;
237
- /**
238
- * Writes a new value to the component (called by the form layer).
239
- * @param value - The new selection to display.
240
- */
241
- writeValue(value: any): void;
242
- /**
243
- * Registers the on-change callback (called by the form layer).
244
- * @param fn - Callback to invoke whenever the value changes.
245
- */
246
- registerOnChange(fn: (_: any) => void): void;
247
- /**
248
- * Registers the on-touched callback (called by the form layer).
249
- * @param fn - Callback to invoke when the control is touched.
250
- */
251
- registerOnTouched(fn: () => void): void;
252
- /**
253
- * Sets the ARIA described-by IDs for accessibility.
254
- * @param ids - The list of element IDs to associate with this control.
255
- */
256
- setDescribedByIds(ids: string[]): void;
257
- /**
258
- * Updates the disabled state when the Angular form layer changes it.
259
- * @param isDisabled - Whether the control should be disabled.
260
- */
261
- setDisabledState(isDisabled: boolean): void;
262
- /**
263
- * Handles a click on the container element, focusing it and marking it as touched.
264
- */
265
- onContainerClick(): void;
266
- /**
267
- * Clears the current selection and stops the event from bubbling.
268
- * @param e - The originating click event.
269
- */
270
- clear(e: Event): void;
271
- /**
272
- * Selects a single item, replacing any existing selection.
273
- * @param item - The item to select. Does nothing when `undefined`.
274
- */
275
- select(item?: NameValueItem<any>): void;
276
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChipsSelectorComponent, [{ optional: true; self: true; }]>;
277
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChipsSelectorComponent, "chips-selector", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "collapsedWidth": { "alias": "collapsedWidth"; "required": false; "isSignal": true; }; "collapsedDisplayMode": { "alias": "collapsedDisplayMode"; "required": false; "isSignal": true; }; "collapseAt": { "alias": "collapseAt"; "required": false; "isSignal": true; }; "collapseAtContainer": { "alias": "collapseAtContainer"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "mustSelect": { "alias": "mustSelect"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "padAt": { "alias": "padAt"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "changed": "changed"; }, never, never, true, never>;
278
- }
279
-
280
- export { ButtonSelectorComponent, ButtonToggleComponent, ChipsSelectorComponent };
281
- export type { ButtonToggleInfo };
222
+ export declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor {
223
+ ngControl: NgControl;
224
+ /** Emitted when the selection changes. Carries the new array of selected items, or `undefined` when cleared. */
225
+ readonly changed: import("@angular/core").OutputEmitterRef<NameValueItem<any>[]>;
226
+ protected readonly containerId: string;
227
+ protected readonly containerWidth: import("@angular/core").WritableSignal<number>;
228
+ private focused;
229
+ private readonly stateChanges;
230
+ private readonly destroyRef;
231
+ private changesEnabled;
232
+ private destroyed;
233
+ private widthRetries;
234
+ /** Observer that tracks size changes of the container element. */
235
+ private resizeObserver?;
236
+ /** Debounce bridge for `ResizeObserver` notifications. */
237
+ private readonly resize$;
238
+ /** List of available options to display as chips. */
239
+ readonly options: import("@angular/core").InputSignal<NameValueItem<any>[]>;
240
+ /** Minimum width in pixels when collapsed. Use `-1` for automatic. */
241
+ readonly collapsedWidth: import("@angular/core").InputSignal<number>;
242
+ /** Display mode used when the selector is in collapsed state. */
243
+ readonly collapsedDisplayMode: import("@angular/core").InputSignal<"dropdown" | "button">;
244
+ /** Pixel threshold below which the selector collapses. Use `-1` to disable. */
245
+ readonly collapseAt: import("@angular/core").InputSignal<number>;
246
+ /** When `true`, `collapseAt` is compared against the container width rather than the window width. */
247
+ readonly collapseAtContainer: import("@angular/core").InputSignal<boolean>;
248
+ protected readonly collapsed: import("@angular/core").Signal<boolean>;
249
+ /** Label shown in the dropdown / above the chip list. */
250
+ readonly label: import("@angular/core").InputSignal<string>;
251
+ /** When `true`, multiple chips can be selected simultaneously. */
252
+ readonly multiple: import("@angular/core").InputSignal<boolean>;
253
+ /** When `true`, at least one item must remain selected. */
254
+ readonly mustSelect: import("@angular/core").InputSignal<boolean>;
255
+ /** Layout mode: `'collapsed'` forces dropdown mode, `'dynamic'` collapses based on `collapseAt`. */
256
+ readonly mode: import("@angular/core").InputSignal<"dynamic" | "collapsed">;
257
+ /** When `true`, chips are stacked vertically instead of wrapping horizontally. */
258
+ readonly stacked: import("@angular/core").InputSignal<boolean>;
259
+ /** Chips below this index receive extra padding to align with other UI elements. */
260
+ readonly padAt: import("@angular/core").InputSignal<number>;
261
+ /** When `true`, the control is required. */
262
+ readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
263
+ /** Placeholder text shown when no value is selected. */
264
+ readonly placeholder: import("@angular/core").InputSignal<string>;
265
+ private _disabled;
266
+ get disabled(): boolean;
267
+ set disabled(value: boolean);
268
+ id: string;
269
+ describedBy: string;
270
+ /** True when the label should float above the field (focused or has a value). */
271
+ get shouldLabelFloat(): boolean;
272
+ private _value?;
273
+ set value(value: NameValueItem<any>[] | undefined);
274
+ /**
275
+ * Updates the internal state and selection mirrors.
276
+ * @param value - The new selection array.
277
+ * @param propagate - When `true`, notifies the registered onChange callback.
278
+ */
279
+ private setValue;
280
+ /** The current value as an array of selected items. */
281
+ get value(): NameValueItem<any>[] | undefined;
282
+ /** True when no item is selected. */
283
+ get empty(): boolean;
284
+ /** True when the control has validation errors and has been touched. */
285
+ get errorState(): boolean;
286
+ private propagateChange;
287
+ private propagateTouched;
288
+ private readonly renderer;
289
+ private readonly cdr;
290
+ /**
291
+ * Currently selected items. Kept loosely typed on purpose: in multi-select mode the
292
+ * bound controls write an array, while in single-select mode mat-select / the chip
293
+ * listbox write a single item; `getSelection()` normalizes both shapes.
294
+ */
295
+ protected readonly selection: import("@angular/core").WritableSignal<any>;
296
+ /** The single selected item — used in `button` collapsed-display mode. */
297
+ protected readonly singleSelection: import("@angular/core").WritableSignal<NameValueItem<any>>;
298
+ /** Root signal form bound to the internal mat-select / chip listbox. */
299
+ protected readonly selectionForm: import("@angular/forms/signals").FieldTree<any, string | number, "writable">;
300
+ /** Root signal form bound to the internal button-selector in `button` collapsed mode. */
301
+ protected readonly singleForm: import("@angular/forms/signals").FieldTree<NameValueItem<any>, string | number, "writable">;
302
+ constructor(ngControl: NgControl);
303
+ ngOnDestroy(): void;
304
+ /**
305
+ * Measures the container (or window) width and updates the `containerWidth` signal,
306
+ * retrying after 100 ms if the element is not yet laid out.
307
+ */
308
+ private updateContainerWidth;
309
+ /**
310
+ * Resolves the effective selection array for the current display mode.
311
+ * In single-select collapsed button mode the `singleSelection` item is wrapped in an array.
312
+ * @returns The array of currently selected items.
313
+ */
314
+ private getSelection;
315
+ /**
316
+ * Schedules a value update after a short delay, coalescing rapid selection changes
317
+ * before the value is propagated to the outer form.
318
+ */
319
+ updateValue(): void;
320
+ /**
321
+ * Returns `true` when the given item can be selected in the current mode.
322
+ * In single-select mode an already-selected item is not re-selectable.
323
+ * @param item - The item to check.
324
+ * @returns True when the item is selectable.
325
+ */
326
+ isSelectable(item: NameValueItem<any>): boolean;
327
+ /**
328
+ * Writes a new value to the component (called by the form layer).
329
+ * @param value - The new selection to display.
330
+ */
331
+ writeValue(value: any): void;
332
+ /**
333
+ * Registers the on-change callback (called by the form layer).
334
+ * @param fn - Callback to invoke whenever the value changes.
335
+ */
336
+ registerOnChange(fn: (_: any) => void): void;
337
+ /**
338
+ * Registers the on-touched callback (called by the form layer).
339
+ * @param fn - Callback to invoke when the control is touched.
340
+ */
341
+ registerOnTouched(fn: () => void): void;
342
+ /**
343
+ * Sets the ARIA described-by IDs for accessibility.
344
+ * @param ids - The list of element IDs to associate with this control.
345
+ */
346
+ setDescribedByIds(ids: string[]): void;
347
+ /**
348
+ * Updates the disabled state when the Angular form layer changes it.
349
+ * @param isDisabled - Whether the control should be disabled.
350
+ */
351
+ setDisabledState(isDisabled: boolean): void;
352
+ /**
353
+ * Handles a click on the container element, focusing it and marking it as touched.
354
+ */
355
+ onContainerClick(): void;
356
+ /**
357
+ * Clears the current selection and stops the event from bubbling.
358
+ * @param e - The originating click event.
359
+ */
360
+ clear(e: Event): void;
361
+ /**
362
+ * Selects a single item, replacing any existing selection.
363
+ * @param item - The item to select. Does nothing when `undefined`.
364
+ */
365
+ select(item?: NameValueItem<any>): void;
366
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipsSelectorComponent, [{
367
+ optional: true;
368
+ self: true;
369
+ }]>;
370
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipsSelectorComponent, "chips-selector", never, {
371
+ "options": {
372
+ "alias": "options";
373
+ "required": false;
374
+ "isSignal": true;
375
+ };
376
+ "collapsedWidth": {
377
+ "alias": "collapsedWidth";
378
+ "required": false;
379
+ "isSignal": true;
380
+ };
381
+ "collapsedDisplayMode": {
382
+ "alias": "collapsedDisplayMode";
383
+ "required": false;
384
+ "isSignal": true;
385
+ };
386
+ "collapseAt": {
387
+ "alias": "collapseAt";
388
+ "required": false;
389
+ "isSignal": true;
390
+ };
391
+ "collapseAtContainer": {
392
+ "alias": "collapseAtContainer";
393
+ "required": false;
394
+ "isSignal": true;
395
+ };
396
+ "label": {
397
+ "alias": "label";
398
+ "required": false;
399
+ "isSignal": true;
400
+ };
401
+ "multiple": {
402
+ "alias": "multiple";
403
+ "required": false;
404
+ "isSignal": true;
405
+ };
406
+ "mustSelect": {
407
+ "alias": "mustSelect";
408
+ "required": false;
409
+ "isSignal": true;
410
+ };
411
+ "mode": {
412
+ "alias": "mode";
413
+ "required": false;
414
+ "isSignal": true;
415
+ };
416
+ "stacked": {
417
+ "alias": "stacked";
418
+ "required": false;
419
+ "isSignal": true;
420
+ };
421
+ "padAt": {
422
+ "alias": "padAt";
423
+ "required": false;
424
+ "isSignal": true;
425
+ };
426
+ "required": {
427
+ "alias": "required";
428
+ "required": false;
429
+ "isSignal": true;
430
+ };
431
+ "placeholder": {
432
+ "alias": "placeholder";
433
+ "required": false;
434
+ "isSignal": true;
435
+ };
436
+ "disabled": {
437
+ "alias": "disabled";
438
+ "required": false;
439
+ };
440
+ }, {
441
+ "changed": "changed";
442
+ }, never, never, true, never>;
443
+ }