@aaamb/ngx-design-system 1.7.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/aaamb-ngx-design-system.mjs +5638 -930
- package/fesm2022/aaamb-ngx-design-system.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/compiled.css +1 -1
- package/styles/datepicker.css +247 -106
- package/styles/fonts/Poppins-Bold.ttf +0 -0
- package/styles/selectors.css +239 -68
- package/styles/theme.css +397 -36
- package/types/aaamb-ngx-design-system.d.ts +2118 -216
|
@@ -1,99 +1,337 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { ElementRef, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
|
+
import { ElementRef, OnDestroy, TemplateRef, EventEmitter, QueryList } from '@angular/core';
|
|
4
4
|
import * as _angular_forms from '@angular/forms';
|
|
5
5
|
import { ControlValueAccessor, FormGroup, FormBuilder, FormArray } from '@angular/forms';
|
|
6
|
+
import * as _aaamb_ngx_design_system from '@aaamb/ngx-design-system';
|
|
6
7
|
import { NzFilterOptionType } from 'ng-zorro-antd/select';
|
|
7
8
|
import { Table, Row } from '@tanstack/angular-table';
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
/** Figma → Buttons → Button `Type`. */
|
|
11
|
+
type AdsButtonFigmaVariant = 'primary' | 'secondary' | 'outline' | 'text' | 'danger' | 'danger-text';
|
|
12
|
+
/**
|
|
13
|
+
* `textButton` is deprecated (removed in 3.0.0): use `text`.
|
|
14
|
+
*/
|
|
15
|
+
type AdsButtonVariant = AdsButtonFigmaVariant | 'textButton';
|
|
16
|
+
/** Figma → Buttons → Button `Size`: 32, 36, 44 and 48 px high. */
|
|
17
|
+
type AdsButtonSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `variant` with a Figma type. Removed in 3.0.0.
|
|
20
|
+
*/
|
|
10
21
|
type AdsButtonColor = 'green' | 'white' | 'text';
|
|
11
22
|
type AdsButtonType = 'button' | 'submit' | 'reset';
|
|
12
|
-
|
|
23
|
+
/** Figma → Buttons → Split Button `Type`. */
|
|
24
|
+
type AdsSplitButtonVariant = 'primary' | 'secondary' | 'outline';
|
|
25
|
+
/** Figma → Inputs & Dropdowns → Input Field `Type` (Date and Select live in the pickers and dropdowns). */
|
|
26
|
+
type AdsInputFigmaType = 'text' | 'search' | 'password' | 'currency' | 'link' | 'phone' | 'card';
|
|
27
|
+
/**
|
|
28
|
+
* `number` has no Figma type yet. `cellphone`, `rate`, `payment_card` and
|
|
29
|
+
* `text_area` are deprecated (removed in 3.0.0): use `phone`, `currency`,
|
|
30
|
+
* `card` and `ads-textarea`.
|
|
31
|
+
*/
|
|
32
|
+
type AdsInputType = AdsInputFigmaType | 'number' | 'text_area' | 'cellphone' | 'rate' | 'payment_card';
|
|
33
|
+
/** Figma → Input Field `Size`: 32, 36, 44 and 48 px high. */
|
|
34
|
+
type AdsFieldSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
35
|
+
/** Figma Badge and Counter `Tone`. */
|
|
36
|
+
type AdsBadgeTone = 'neutral' | 'brand' | 'info' | 'success' | 'warning' | 'error';
|
|
37
|
+
/** Figma Badge and Counter `Emphasis`. */
|
|
38
|
+
type AdsBadgeEmphasis = 'subtle' | 'strong';
|
|
39
|
+
/** Figma `Size` of Badge, Counter, Trend Badge and Tag. */
|
|
40
|
+
type AdsBadgeSize = 'sm' | 'md';
|
|
41
|
+
/** Figma Trend Badge `Direction`. */
|
|
42
|
+
type AdsTrendDirection = 'up' | 'down' | 'flat';
|
|
43
|
+
/**
|
|
44
|
+
* Icon names from Figma (Assets → Icons): Icon/<Category>/<name>.
|
|
45
|
+
*/
|
|
46
|
+
declare const FIGMA_ICONS: {
|
|
47
|
+
readonly bookmark: "bookmark";
|
|
48
|
+
readonly check: "check";
|
|
49
|
+
readonly close: "close";
|
|
50
|
+
readonly copy: "copy";
|
|
51
|
+
readonly 'delete-filled': "delete-filled";
|
|
52
|
+
readonly 'delete-multiple': "delete-multiple";
|
|
53
|
+
readonly 'document-edit': "document-edit";
|
|
54
|
+
readonly 'document-upload': "document-upload";
|
|
55
|
+
readonly download: "download";
|
|
56
|
+
readonly edit: "edit";
|
|
57
|
+
readonly 'file-upload': "file-upload";
|
|
58
|
+
readonly filter: "filter";
|
|
59
|
+
readonly history: "history";
|
|
60
|
+
readonly minus: "minus";
|
|
61
|
+
readonly 'move-down': "move-down";
|
|
62
|
+
readonly plus: "plus";
|
|
63
|
+
readonly 'plus-square-filled': "plus-square-filled";
|
|
64
|
+
readonly scan: "scan";
|
|
65
|
+
readonly search: "search";
|
|
66
|
+
readonly 'settings-reset': "settings-reset";
|
|
67
|
+
readonly sort: "sort";
|
|
68
|
+
readonly upload: "upload";
|
|
69
|
+
readonly visibility: "visibility";
|
|
70
|
+
readonly 'visibility-off': "visibility-off";
|
|
71
|
+
readonly feedback: "feedback";
|
|
72
|
+
readonly 'arrow-down': "arrow-down";
|
|
73
|
+
readonly 'arrow-up': "arrow-up";
|
|
74
|
+
readonly 'chevron-down': "chevron-down";
|
|
75
|
+
readonly 'chevron-left': "chevron-left";
|
|
76
|
+
readonly 'chevron-right': "chevron-right";
|
|
77
|
+
readonly 'chevron-right-bold': "chevron-right-bold";
|
|
78
|
+
readonly 'chevron-up': "chevron-up";
|
|
79
|
+
readonly 'home-filled': "home-filled";
|
|
80
|
+
readonly 'home-outline': "home-outline";
|
|
81
|
+
readonly menu: "menu";
|
|
82
|
+
readonly 'open-external': "open-external";
|
|
83
|
+
readonly book: "book";
|
|
84
|
+
readonly 'chart-bar': "chart-bar";
|
|
85
|
+
readonly 'chart-flow': "chart-flow";
|
|
86
|
+
readonly checklist: "checklist";
|
|
87
|
+
readonly document: "document";
|
|
88
|
+
readonly 'folder-settings': "folder-settings";
|
|
89
|
+
readonly hash: "hash";
|
|
90
|
+
readonly network: "network";
|
|
91
|
+
readonly receipt: "receipt";
|
|
92
|
+
readonly 'report-chart': "report-chart";
|
|
93
|
+
readonly 'report-chart-alt': "report-chart-alt";
|
|
94
|
+
readonly 'credit-card': "credit-card";
|
|
95
|
+
readonly 'calendar-check': "calendar-check";
|
|
96
|
+
readonly 'calendar-edit': "calendar-edit";
|
|
97
|
+
readonly 'calendar-filled': "calendar-filled";
|
|
98
|
+
readonly 'user-add-filled': "user-add-filled";
|
|
99
|
+
readonly 'user-key': "user-key";
|
|
100
|
+
readonly 'user-outline': "user-outline";
|
|
101
|
+
readonly 'user-settings-filled': "user-settings-filled";
|
|
102
|
+
readonly 'users-filled': "users-filled";
|
|
103
|
+
readonly 'users-group-outline': "users-group-outline";
|
|
104
|
+
readonly alert: "alert";
|
|
105
|
+
readonly info: "info";
|
|
106
|
+
readonly notification: "notification";
|
|
107
|
+
readonly building: "building";
|
|
108
|
+
readonly 'building-add': "building-add";
|
|
109
|
+
readonly 'blood-type': "blood-type";
|
|
110
|
+
readonly 'heart-monitor': "heart-monitor";
|
|
111
|
+
readonly psychology: "psychology";
|
|
112
|
+
readonly 'computer-add': "computer-add";
|
|
113
|
+
readonly 'computer-queue': "computer-queue";
|
|
114
|
+
readonly microphone: "microphone";
|
|
115
|
+
readonly replay: "replay";
|
|
116
|
+
readonly 'stop-circle': "stop-circle";
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* 1.x icon names and the Figma icon they now render. Deprecated: removed in 3.0.0.
|
|
120
|
+
*/
|
|
121
|
+
declare const DEPRECATED_ICON_ALIASES: {
|
|
122
|
+
readonly add_square: "plus-square-filled";
|
|
123
|
+
readonly administrator_solid: "user-settings-filled";
|
|
124
|
+
readonly arrow_right: "chevron-right";
|
|
125
|
+
readonly blood_type: "blood-type";
|
|
126
|
+
readonly branchs: "network";
|
|
127
|
+
readonly calendar: "calendar-filled";
|
|
128
|
+
readonly calendar_check: "calendar-check";
|
|
129
|
+
readonly chart_bars: "chart-bar";
|
|
130
|
+
readonly chart_grid: "report-chart";
|
|
131
|
+
readonly chat: "feedback";
|
|
132
|
+
readonly check_list: "checklist";
|
|
133
|
+
readonly delete: "delete-filled";
|
|
134
|
+
readonly delete_trash: "delete-multiple";
|
|
135
|
+
readonly device_add: "computer-add";
|
|
136
|
+
readonly document_upload: "document-upload";
|
|
137
|
+
readonly download_rounded: "download";
|
|
138
|
+
readonly edit_calendar: "calendar-edit";
|
|
139
|
+
readonly error: "close";
|
|
140
|
+
readonly eye: "visibility";
|
|
141
|
+
readonly folder_management: "folder-settings";
|
|
142
|
+
readonly group: "users-group-outline";
|
|
143
|
+
readonly hamburger: "menu";
|
|
144
|
+
readonly hide: "visibility-off";
|
|
145
|
+
readonly history_rounded: "history";
|
|
146
|
+
readonly home: "home-outline";
|
|
147
|
+
readonly home_solid: "home-filled";
|
|
148
|
+
readonly icon_card: "credit-card";
|
|
149
|
+
readonly lightbulb: "psychology";
|
|
150
|
+
readonly medical_user: "user-add-filled";
|
|
151
|
+
readonly move_down: "move-down";
|
|
152
|
+
readonly open: "open-external";
|
|
153
|
+
readonly paper_edit: "document-edit";
|
|
154
|
+
readonly people: "users-filled";
|
|
155
|
+
readonly queue_play: "computer-queue";
|
|
156
|
+
readonly reset_settings: "settings-reset";
|
|
157
|
+
readonly scanner: "scan";
|
|
158
|
+
readonly settings: "user-settings-filled";
|
|
159
|
+
readonly sharp: "hash";
|
|
160
|
+
readonly sorting: "sort";
|
|
161
|
+
readonly stop: "stop-circle";
|
|
162
|
+
readonly table: "building-add";
|
|
163
|
+
readonly tune: "filter";
|
|
164
|
+
readonly upload_file: "file-upload";
|
|
165
|
+
readonly upload_rounded: "upload";
|
|
166
|
+
readonly user: "user-outline";
|
|
167
|
+
readonly user_key: "user-key";
|
|
168
|
+
readonly users: "users-filled";
|
|
169
|
+
readonly vital_sign: "heart-monitor";
|
|
170
|
+
readonly warning: "alert";
|
|
171
|
+
};
|
|
172
|
+
/** 1.x icons with no Figma equivalent yet, kept until design decides. */
|
|
173
|
+
declare const LEGACY_ICONS: {
|
|
174
|
+
readonly more_vert: "more_vert";
|
|
175
|
+
readonly camera: "camera";
|
|
176
|
+
readonly ambulance: "ambulance";
|
|
177
|
+
readonly clipboard: "clipboard";
|
|
178
|
+
readonly controller_frame: "controller_frame";
|
|
179
|
+
readonly folder: "folder";
|
|
180
|
+
readonly ia_agent: "ia_agent";
|
|
181
|
+
readonly mail: "mail";
|
|
182
|
+
readonly menu_list: "menu_list";
|
|
183
|
+
readonly pause: "pause";
|
|
184
|
+
readonly phone: "phone";
|
|
185
|
+
readonly play: "play";
|
|
186
|
+
readonly play_filled: "play_filled";
|
|
187
|
+
readonly dolar_sign: "dollar_sign";
|
|
188
|
+
readonly mastercard: "mastercard";
|
|
189
|
+
readonly visa: "visa";
|
|
190
|
+
readonly amex: "amex";
|
|
191
|
+
readonly discover: "discover";
|
|
192
|
+
readonly toggle_active: "toggle_active";
|
|
193
|
+
readonly toggle_inactive: "toggle_inactive";
|
|
194
|
+
};
|
|
13
195
|
declare const ICONS: {
|
|
14
|
-
add_square:
|
|
15
|
-
administrator_solid:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
196
|
+
readonly add_square: "plus-square-filled";
|
|
197
|
+
readonly administrator_solid: "user-settings-filled";
|
|
198
|
+
readonly arrow_right: "chevron-right";
|
|
199
|
+
readonly blood_type: "blood-type";
|
|
200
|
+
readonly branchs: "network";
|
|
201
|
+
readonly calendar: "calendar-filled";
|
|
202
|
+
readonly calendar_check: "calendar-check";
|
|
203
|
+
readonly chart_bars: "chart-bar";
|
|
204
|
+
readonly chart_grid: "report-chart";
|
|
205
|
+
readonly chat: "feedback";
|
|
206
|
+
readonly check_list: "checklist";
|
|
207
|
+
readonly delete: "delete-filled";
|
|
208
|
+
readonly delete_trash: "delete-multiple";
|
|
209
|
+
readonly device_add: "computer-add";
|
|
210
|
+
readonly document_upload: "document-upload";
|
|
211
|
+
readonly download_rounded: "download";
|
|
212
|
+
readonly edit_calendar: "calendar-edit";
|
|
213
|
+
readonly error: "close";
|
|
214
|
+
readonly eye: "visibility";
|
|
215
|
+
readonly folder_management: "folder-settings";
|
|
216
|
+
readonly group: "users-group-outline";
|
|
217
|
+
readonly hamburger: "menu";
|
|
218
|
+
readonly hide: "visibility-off";
|
|
219
|
+
readonly history_rounded: "history";
|
|
220
|
+
readonly home: "home-outline";
|
|
221
|
+
readonly home_solid: "home-filled";
|
|
222
|
+
readonly icon_card: "credit-card";
|
|
223
|
+
readonly lightbulb: "psychology";
|
|
224
|
+
readonly medical_user: "user-add-filled";
|
|
225
|
+
readonly move_down: "move-down";
|
|
226
|
+
readonly open: "open-external";
|
|
227
|
+
readonly paper_edit: "document-edit";
|
|
228
|
+
readonly people: "users-filled";
|
|
229
|
+
readonly queue_play: "computer-queue";
|
|
230
|
+
readonly reset_settings: "settings-reset";
|
|
231
|
+
readonly scanner: "scan";
|
|
232
|
+
readonly settings: "user-settings-filled";
|
|
233
|
+
readonly sharp: "hash";
|
|
234
|
+
readonly sorting: "sort";
|
|
235
|
+
readonly stop: "stop-circle";
|
|
236
|
+
readonly table: "building-add";
|
|
237
|
+
readonly tune: "filter";
|
|
238
|
+
readonly upload_file: "file-upload";
|
|
239
|
+
readonly upload_rounded: "upload";
|
|
240
|
+
readonly user: "user-outline";
|
|
241
|
+
readonly user_key: "user-key";
|
|
242
|
+
readonly users: "users-filled";
|
|
243
|
+
readonly vital_sign: "heart-monitor";
|
|
244
|
+
readonly warning: "alert";
|
|
245
|
+
readonly more_vert: "more_vert";
|
|
246
|
+
readonly camera: "camera";
|
|
247
|
+
readonly ambulance: "ambulance";
|
|
248
|
+
readonly clipboard: "clipboard";
|
|
249
|
+
readonly controller_frame: "controller_frame";
|
|
250
|
+
readonly folder: "folder";
|
|
251
|
+
readonly ia_agent: "ia_agent";
|
|
252
|
+
readonly mail: "mail";
|
|
253
|
+
readonly menu_list: "menu_list";
|
|
254
|
+
readonly pause: "pause";
|
|
255
|
+
readonly phone: "phone";
|
|
256
|
+
readonly play: "play";
|
|
257
|
+
readonly play_filled: "play_filled";
|
|
258
|
+
readonly dolar_sign: "dollar_sign";
|
|
259
|
+
readonly mastercard: "mastercard";
|
|
260
|
+
readonly visa: "visa";
|
|
261
|
+
readonly amex: "amex";
|
|
262
|
+
readonly discover: "discover";
|
|
263
|
+
readonly toggle_active: "toggle_active";
|
|
264
|
+
readonly toggle_inactive: "toggle_inactive";
|
|
265
|
+
readonly bookmark: "bookmark";
|
|
266
|
+
readonly check: "check";
|
|
267
|
+
readonly close: "close";
|
|
268
|
+
readonly copy: "copy";
|
|
269
|
+
readonly 'delete-filled': "delete-filled";
|
|
270
|
+
readonly 'delete-multiple': "delete-multiple";
|
|
271
|
+
readonly 'document-edit': "document-edit";
|
|
272
|
+
readonly 'document-upload': "document-upload";
|
|
273
|
+
readonly download: "download";
|
|
274
|
+
readonly edit: "edit";
|
|
275
|
+
readonly 'file-upload': "file-upload";
|
|
276
|
+
readonly filter: "filter";
|
|
277
|
+
readonly history: "history";
|
|
278
|
+
readonly minus: "minus";
|
|
279
|
+
readonly 'move-down': "move-down";
|
|
280
|
+
readonly plus: "plus";
|
|
281
|
+
readonly 'plus-square-filled': "plus-square-filled";
|
|
282
|
+
readonly scan: "scan";
|
|
283
|
+
readonly search: "search";
|
|
284
|
+
readonly 'settings-reset': "settings-reset";
|
|
285
|
+
readonly sort: "sort";
|
|
286
|
+
readonly upload: "upload";
|
|
287
|
+
readonly visibility: "visibility";
|
|
288
|
+
readonly 'visibility-off': "visibility-off";
|
|
289
|
+
readonly feedback: "feedback";
|
|
290
|
+
readonly 'arrow-down': "arrow-down";
|
|
291
|
+
readonly 'arrow-up': "arrow-up";
|
|
292
|
+
readonly 'chevron-down': "chevron-down";
|
|
293
|
+
readonly 'chevron-left': "chevron-left";
|
|
294
|
+
readonly 'chevron-right': "chevron-right";
|
|
295
|
+
readonly 'chevron-right-bold': "chevron-right-bold";
|
|
296
|
+
readonly 'chevron-up': "chevron-up";
|
|
297
|
+
readonly 'home-filled': "home-filled";
|
|
298
|
+
readonly 'home-outline': "home-outline";
|
|
299
|
+
readonly menu: "menu";
|
|
300
|
+
readonly 'open-external': "open-external";
|
|
301
|
+
readonly book: "book";
|
|
302
|
+
readonly 'chart-bar': "chart-bar";
|
|
303
|
+
readonly 'chart-flow': "chart-flow";
|
|
304
|
+
readonly checklist: "checklist";
|
|
305
|
+
readonly document: "document";
|
|
306
|
+
readonly 'folder-settings': "folder-settings";
|
|
307
|
+
readonly hash: "hash";
|
|
308
|
+
readonly network: "network";
|
|
309
|
+
readonly receipt: "receipt";
|
|
310
|
+
readonly 'report-chart': "report-chart";
|
|
311
|
+
readonly 'report-chart-alt': "report-chart-alt";
|
|
312
|
+
readonly 'credit-card': "credit-card";
|
|
313
|
+
readonly 'calendar-check': "calendar-check";
|
|
314
|
+
readonly 'calendar-edit': "calendar-edit";
|
|
315
|
+
readonly 'calendar-filled': "calendar-filled";
|
|
316
|
+
readonly 'user-add-filled': "user-add-filled";
|
|
317
|
+
readonly 'user-key': "user-key";
|
|
318
|
+
readonly 'user-outline': "user-outline";
|
|
319
|
+
readonly 'user-settings-filled': "user-settings-filled";
|
|
320
|
+
readonly 'users-filled': "users-filled";
|
|
321
|
+
readonly 'users-group-outline': "users-group-outline";
|
|
322
|
+
readonly alert: "alert";
|
|
323
|
+
readonly info: "info";
|
|
324
|
+
readonly notification: "notification";
|
|
325
|
+
readonly building: "building";
|
|
326
|
+
readonly 'building-add': "building-add";
|
|
327
|
+
readonly 'blood-type': "blood-type";
|
|
328
|
+
readonly 'heart-monitor': "heart-monitor";
|
|
329
|
+
readonly psychology: "psychology";
|
|
330
|
+
readonly 'computer-add': "computer-add";
|
|
331
|
+
readonly 'computer-queue': "computer-queue";
|
|
332
|
+
readonly microphone: "microphone";
|
|
333
|
+
readonly replay: "replay";
|
|
334
|
+
readonly 'stop-circle': "stop-circle";
|
|
97
335
|
};
|
|
98
336
|
type AdsIconName = keyof typeof ICONS;
|
|
99
337
|
declare enum containerShapes {
|
|
@@ -182,7 +420,32 @@ declare enum stateTextColors {
|
|
|
182
420
|
TEXT_PURPLE2 = "text-purple-2",
|
|
183
421
|
TEXT_PURPLE3 = "text-purple-3"
|
|
184
422
|
}
|
|
185
|
-
|
|
423
|
+
/** Figma Alert `Tone`. */
|
|
424
|
+
type AdsAlertTone = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
425
|
+
/** Figma Toast `Tone`. */
|
|
426
|
+
type AdsToastTone = 'success' | 'info' | 'warning' | 'error';
|
|
427
|
+
/** Options of `ToasterComponent.show()`. */
|
|
428
|
+
type AdsToastOptions = {
|
|
429
|
+
/** Label of the action button, such as `Undo`. No button when empty. */
|
|
430
|
+
actionLabel?: string;
|
|
431
|
+
/** Called when the action button is clicked; the toast then closes. */
|
|
432
|
+
onAction?: () => void;
|
|
433
|
+
/** Milliseconds before it closes by itself. Default 7000; `0` stays open. */
|
|
434
|
+
durationMs?: number;
|
|
435
|
+
};
|
|
436
|
+
/** A toast in the stack of `ads-toaster`. */
|
|
437
|
+
type AdsToastItem = {
|
|
438
|
+
id: number;
|
|
439
|
+
tone: AdsToastTone;
|
|
440
|
+
message: string;
|
|
441
|
+
actionLabel: string;
|
|
442
|
+
onAction?: () => void;
|
|
443
|
+
/** Time left before it closes; `Infinity` when it stays open. */
|
|
444
|
+
remainingMs: number;
|
|
445
|
+
};
|
|
446
|
+
/** @deprecated Use `AdsToastTone`. Removed in 3.0.0. */
|
|
447
|
+
type SnackbarAlertType = AdsToastTone;
|
|
448
|
+
/** @deprecated Use `AdsToastItem`. Removed in 3.0.0. */
|
|
186
449
|
type SnackbarAlert = {
|
|
187
450
|
id: number;
|
|
188
451
|
type: SnackbarAlertType;
|
|
@@ -190,31 +453,104 @@ type SnackbarAlert = {
|
|
|
190
453
|
icon?: AdsIconName;
|
|
191
454
|
remainingMs: number;
|
|
192
455
|
};
|
|
193
|
-
|
|
456
|
+
/** Figma Modal `Size`: 400, 560 or 720 px wide. */
|
|
457
|
+
type AdsModalSize = 'sm' | 'md' | 'lg';
|
|
458
|
+
/** Figma Confirmation Modal `Tone`. */
|
|
459
|
+
type AdsConfirmationTone = 'brand' | 'warning' | 'danger';
|
|
460
|
+
/** Figma Alert Modal and Notification `Tone`. */
|
|
461
|
+
type AdsStatusTone = 'info' | 'success' | 'warning' | 'error';
|
|
462
|
+
/** Figma Review Modal `Size`: 560 (md) or 720 px (lg) wide. */
|
|
463
|
+
type AdsReviewModalSize = 'md' | 'lg';
|
|
464
|
+
/** A row of the Review Modal summary. */
|
|
465
|
+
type AdsReviewItem = {
|
|
466
|
+
label: string;
|
|
467
|
+
value: string;
|
|
468
|
+
};
|
|
469
|
+
/** A button in the footer of `ads-modal`. */
|
|
470
|
+
type AdsModalAction = {
|
|
194
471
|
id?: string;
|
|
195
472
|
text: string;
|
|
196
473
|
variant?: AdsButtonVariant;
|
|
474
|
+
size?: AdsButtonSize;
|
|
475
|
+
/** @deprecated Use `variant` with a Figma type. Removed in 3.0.0. */
|
|
197
476
|
color?: AdsButtonColor;
|
|
198
477
|
buttonType?: AdsButtonType;
|
|
199
478
|
disabled?: boolean;
|
|
200
479
|
callback?: () => void;
|
|
201
480
|
};
|
|
202
|
-
|
|
481
|
+
/**
|
|
482
|
+
* Where the footer buttons go. `between` (default, Figma): the first button
|
|
483
|
+
* at the start and the last one at the end; a single button goes at the end.
|
|
484
|
+
*/
|
|
485
|
+
type AdsModalActionsAlign = 'start' | 'center' | 'end' | 'between';
|
|
486
|
+
/** @deprecated Use `AdsModalAction`. Removed in 3.0.0. */
|
|
487
|
+
type AdsMainModalAction = AdsModalAction;
|
|
488
|
+
/** @deprecated Use `AdsModalActionsAlign`. Removed in 3.0.0. */
|
|
489
|
+
type AdsMainModalActionsAlign = AdsModalActionsAlign;
|
|
203
490
|
type AdsCheckboxAppearance = 'square' | 'toggle' | 'radio';
|
|
204
491
|
type AdsCheckboxLabelPosition = 'left' | 'right';
|
|
205
492
|
type AdsCheckboxLabelColor = 'green' | 'white';
|
|
206
493
|
type AdsCheckboxControlColor = 'green' | 'white';
|
|
494
|
+
/** Figma → Controls `Size`: sm 16 px, md 20 px. */
|
|
495
|
+
type AdsControlSize = 'sm' | 'md';
|
|
496
|
+
/** Figma Progress Bar `Tone`. */
|
|
497
|
+
type AdsProgressTone = 'brand' | 'success' | 'warning' | 'error';
|
|
498
|
+
/** One option of `ads-radio-group`. */
|
|
499
|
+
type AdsRadioOption<T = unknown> = {
|
|
500
|
+
value: T;
|
|
501
|
+
label: string;
|
|
502
|
+
/** Helper text under the label (default variant). */
|
|
503
|
+
helper?: string;
|
|
504
|
+
/** Description under the title (card variant). */
|
|
505
|
+
description?: string;
|
|
506
|
+
/** 16 px icon before the title (card variant). */
|
|
507
|
+
icon?: AdsIconName;
|
|
508
|
+
/** Tag after the title (card variant). */
|
|
509
|
+
tag?: string;
|
|
510
|
+
disabled?: boolean;
|
|
511
|
+
};
|
|
512
|
+
/** One segment of `ads-segmented-control`. */
|
|
513
|
+
type AdsSegmentOption<T = unknown> = {
|
|
514
|
+
value: T;
|
|
515
|
+
label: string;
|
|
516
|
+
disabled?: boolean;
|
|
517
|
+
};
|
|
518
|
+
/** One chip of `ads-filter-chip-group`. */
|
|
519
|
+
type AdsFilterChipOption<T = unknown> = {
|
|
520
|
+
value: T;
|
|
521
|
+
label: string;
|
|
522
|
+
/** Figma `Count`. Leave it out to hide the counter (Figma `Show count` off). */
|
|
523
|
+
count?: number | string | null;
|
|
524
|
+
disabled?: boolean;
|
|
525
|
+
};
|
|
526
|
+
/** One applied filter of `ads-active-filters`. */
|
|
527
|
+
type AdsActiveFilter = {
|
|
528
|
+
/** Identifies the filter in `removed`. */
|
|
529
|
+
id: string;
|
|
530
|
+
/** Text of the tag, such as “Payer: Aetna”. */
|
|
531
|
+
label: string;
|
|
532
|
+
};
|
|
533
|
+
/** Figma → Controls → Radio Group `Direction`. */
|
|
534
|
+
type AdsRadioGroupDirection = 'horizontal' | 'vertical';
|
|
207
535
|
type PaymentCardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'icon_card';
|
|
208
536
|
type PickerMode = 'annually' | 'monthly' | 'weekly' | 'quarterly' | 'daily';
|
|
209
|
-
|
|
537
|
+
/** What the Period Select pill says: `period` (“Monthly: May 2026”), `option` or `selection`. */
|
|
538
|
+
type DatepickerSelectorButtonLabelMode = 'period' | 'option' | 'selection';
|
|
539
|
+
/** Figma Period Select `Size`. */
|
|
540
|
+
type AdsPeriodSelectSize = 'sm' | 'md';
|
|
210
541
|
type PickerOption = {
|
|
211
542
|
mode: PickerMode;
|
|
212
543
|
label: string;
|
|
213
544
|
};
|
|
214
545
|
type FeedbackPayload = {
|
|
546
|
+
/** Value of the Type segmented control, such as `bug`. */
|
|
547
|
+
type: string;
|
|
215
548
|
subject: string;
|
|
549
|
+
/** Value of the selector (Figma: Product). Empty when there are no options. */
|
|
216
550
|
category: string;
|
|
217
551
|
description: string;
|
|
552
|
+
/** The optional screenshot. */
|
|
553
|
+
screenshot: File | null;
|
|
218
554
|
};
|
|
219
555
|
type FeedbackResponseType = 'success' | 'error';
|
|
220
556
|
type AdsSingleSelectorValue = string | number | boolean | null;
|
|
@@ -259,11 +595,25 @@ type AdsSideNavOption = {
|
|
|
259
595
|
children?: AdsSideNavChildOption[];
|
|
260
596
|
/** Counter shown next to the option (a dot when the nav is collapsed). */
|
|
261
597
|
badge?: number | string;
|
|
598
|
+
/** Figma nav_button State=disabled: shown but cannot be chosen. */
|
|
599
|
+
disabled?: boolean;
|
|
262
600
|
};
|
|
263
601
|
type AdsSideNavSection = {
|
|
264
602
|
title?: string;
|
|
265
603
|
options: AdsSideNavOption[];
|
|
266
604
|
};
|
|
605
|
+
/** Figma Metrics_card `Property 1`: Default, Variant4 (stacked) or mobile. */
|
|
606
|
+
type AdsMetricsCardVariant = 'default' | 'stacked' | 'mobile';
|
|
607
|
+
/** Figma High_risk_metric `Property 1`: Default or Performande. */
|
|
608
|
+
type AdsHighRiskMetricVariant = 'default' | 'performance';
|
|
609
|
+
/** Figma Report_cards `Property 1`: Saved or Template. */
|
|
610
|
+
type AdsReportCardVariant = 'saved' | 'template';
|
|
611
|
+
type AdsNavigationBarMenuItem = {
|
|
612
|
+
id: string;
|
|
613
|
+
label: string;
|
|
614
|
+
/** Shown in red, as Figma's Log Out. */
|
|
615
|
+
danger?: boolean;
|
|
616
|
+
};
|
|
267
617
|
type AdsSideNavVariant = 'default' | 'compact';
|
|
268
618
|
type AdsFilterButtonValueType = 'text' | 'number' | 'date' | 'boolean' | 'status' | 'codes' | 'custom';
|
|
269
619
|
type AdsFilterButtonOption = AdsSingleSelectorOption & {
|
|
@@ -272,19 +622,36 @@ type AdsFilterButtonOption = AdsSingleSelectorOption & {
|
|
|
272
622
|
};
|
|
273
623
|
type AdsFilterButtonRow = {
|
|
274
624
|
column: AdsSingleSelectorValue | null;
|
|
625
|
+
/** Value of the chosen operator, such as `is` (the default) or `gt`. */
|
|
626
|
+
operator: AdsSingleSelectorValue;
|
|
275
627
|
value: string;
|
|
276
628
|
valueType: AdsFilterButtonValueType;
|
|
277
629
|
};
|
|
630
|
+
/**
|
|
631
|
+
* Operators the Filter Panel offers for each value type. A type that is not
|
|
632
|
+
* listed offers only “is”.
|
|
633
|
+
*/
|
|
634
|
+
type AdsFilterOperators = Partial<Record<AdsFilterButtonValueType, AdsSingleSelectorOption[]>>;
|
|
278
635
|
type AdsFilterButtonSortDirection = 'ASC' | 'DESC';
|
|
279
636
|
type AdsFilterButtonSortRow = {
|
|
280
637
|
column: AdsSingleSelectorValue | null;
|
|
281
638
|
direction: AdsFilterButtonSortDirection;
|
|
282
639
|
};
|
|
640
|
+
/** One tab of `ads-tab-bar`. */
|
|
283
641
|
interface Tab {
|
|
284
642
|
id: string;
|
|
643
|
+
/** Figma `Label`. */
|
|
285
644
|
name: string;
|
|
286
645
|
description?: string;
|
|
646
|
+
/** Figma `Show icon`: a 16 px icon before the label. */
|
|
647
|
+
icon?: AdsIconName;
|
|
648
|
+
/** Figma `Show count`: a number after the label, such as the rows of that view. */
|
|
649
|
+
count?: number | string;
|
|
650
|
+
/** Figma `State=Disabled`. */
|
|
651
|
+
disabled?: boolean;
|
|
287
652
|
}
|
|
653
|
+
/** Figma Tab `Type`: `contained` for table views, `underline` for page sections and status filters. */
|
|
654
|
+
type AdsTabType = 'contained' | 'underline';
|
|
288
655
|
type TableDragDropEvent = {
|
|
289
656
|
previousIndex: number;
|
|
290
657
|
currentIndex: number;
|
|
@@ -297,6 +664,26 @@ type TableActionButton<T = any> = {
|
|
|
297
664
|
disabled?: (row: T) => boolean;
|
|
298
665
|
type?: 'icon' | 'image';
|
|
299
666
|
imagePath?: string;
|
|
667
|
+
/** Figma Table Cell Actions: shows the button as Danger Text (red), for destructive actions. */
|
|
668
|
+
danger?: boolean;
|
|
669
|
+
};
|
|
670
|
+
/** Figma Table `Size`: rows of 36 px (sm) or 44 px (md). */
|
|
671
|
+
type AdsTableSize = 'sm' | 'md';
|
|
672
|
+
/** Figma Pagination `Layout`. */
|
|
673
|
+
type AdsTablePaginationLayout = 'full' | 'compact';
|
|
674
|
+
/** Figma Table Cell `Type` that `ads-table` draws from `columnDef.meta.cellType`. */
|
|
675
|
+
type AdsTableCellType = 'text' | 'subtext' | 'link' | 'badge';
|
|
676
|
+
/** What `ads-table` reads from a TanStack `columnDef.meta`. */
|
|
677
|
+
type AdsTableColumnMeta = {
|
|
678
|
+
/** Field of the row that the column shows; sort events use it. */
|
|
679
|
+
originalProperty?: string;
|
|
680
|
+
isSortable?: boolean;
|
|
681
|
+
/** `number`, `currency` and `date` align right; `boolean` and `status` center. */
|
|
682
|
+
propertyType?: TablePropertyType;
|
|
683
|
+
/** Figma Table Cell Type. Default `text` (the column's `cell` renderer). */
|
|
684
|
+
cellType?: AdsTableCellType;
|
|
685
|
+
/** `subtext`: the secondary line under the value. */
|
|
686
|
+
subtext?: (row: any) => string;
|
|
300
687
|
};
|
|
301
688
|
type TableSortDirection = 'ASC' | 'DESC';
|
|
302
689
|
type TableSortCriterion = {
|
|
@@ -330,6 +717,8 @@ type StoryTableColumn = {
|
|
|
330
717
|
originalProperty: string;
|
|
331
718
|
isSortable: boolean;
|
|
332
719
|
propertyType: TablePropertyType;
|
|
720
|
+
cellType?: AdsTableCellType;
|
|
721
|
+
subtext?: (row: any) => string;
|
|
333
722
|
};
|
|
334
723
|
};
|
|
335
724
|
type StoryTableCellContext = {
|
|
@@ -373,43 +762,94 @@ type StoryTable = {
|
|
|
373
762
|
};
|
|
374
763
|
};
|
|
375
764
|
|
|
765
|
+
/**
|
|
766
|
+
* Figma → Buttons → Button. Put it on a native `<button>`:
|
|
767
|
+
* `<button ads-button variant="outline" size="md">Save</button>`.
|
|
768
|
+
*/
|
|
376
769
|
declare class ButtonComponent {
|
|
770
|
+
/** Figma `Type`: primary, secondary, outline, text, danger or danger-text. */
|
|
377
771
|
variant: _angular_core.InputSignal<AdsButtonVariant>;
|
|
772
|
+
/** Figma `Size`: sm 32 px, md 36 px, lg 44 px, xl 48 px. Defaults to md. */
|
|
773
|
+
size: _angular_core.InputSignal<AdsButtonSize>;
|
|
774
|
+
/**
|
|
775
|
+
* @deprecated 1.x color. When set, `variant` is read as a 1.x variant
|
|
776
|
+
* (primary or secondary) and the pair maps to a Figma type. Removed in 3.0.0.
|
|
777
|
+
*/
|
|
378
778
|
color: _angular_core.InputSignal<AdsButtonColor>;
|
|
779
|
+
/** @deprecated Has no effect; set the native `type` attribute. */
|
|
379
780
|
buttonType: _angular_core.InputSignal<AdsButtonType>;
|
|
380
781
|
disabled: _angular_core.InputSignal<boolean>;
|
|
782
|
+
/** Stretches the button to the width of its container. */
|
|
381
783
|
fullWidth: _angular_core.InputSignal<boolean>;
|
|
784
|
+
/** @deprecated Has no effect: the icon gap is always 8 px. Removed in 3.0.0. */
|
|
382
785
|
iconButton: _angular_core.InputSignal<string>;
|
|
786
|
+
/** @deprecated Use `<button ads-icon-button>`. Removed in 3.0.0. */
|
|
383
787
|
onlyIconButton: _angular_core.InputSignal<boolean>;
|
|
788
|
+
/** @deprecated Icon color for `onlyIconButton`. Removed in 3.0.0. */
|
|
384
789
|
iconColor: _angular_core.InputSignal<string>;
|
|
790
|
+
/** Emits on click while the button is enabled. */
|
|
385
791
|
clicked: _angular_core.OutputEmitterRef<void>;
|
|
792
|
+
/** Figma type and size after resolving 1.x names. */
|
|
793
|
+
readonly resolved: _angular_core.Signal<{
|
|
794
|
+
type: AdsButtonFigmaVariant | "textButton";
|
|
795
|
+
size: AdsButtonSize;
|
|
796
|
+
}>;
|
|
386
797
|
resolvedIconColor: _angular_core.Signal<string>;
|
|
387
798
|
hostClasses: _angular_core.Signal<string>;
|
|
388
799
|
handleClick(): void;
|
|
389
800
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
390
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "button[ads-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "buttonType": { "alias": "buttonType"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "iconButton": { "alias": "iconButton"; "required": false; "isSignal": true; }; "onlyIconButton": { "alias": "onlyIconButton"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
801
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "button[ads-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "buttonType": { "alias": "buttonType"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "iconButton": { "alias": "iconButton"; "required": false; "isSignal": true; }; "onlyIconButton": { "alias": "onlyIconButton"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
391
802
|
}
|
|
392
803
|
|
|
804
|
+
/**
|
|
805
|
+
* Renders an icon from the Figma icon set (Assets → Icons). The icon takes
|
|
806
|
+
* the current text color unless `color` is set.
|
|
807
|
+
*/
|
|
393
808
|
declare class IconComponent {
|
|
394
|
-
|
|
395
|
-
|
|
809
|
+
/** Icon to render: a Figma icon name such as `visibility`. 1.x names such as `eye` still work but are deprecated. */
|
|
810
|
+
iconName: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
811
|
+
/** Size in px: 16 (Figma xs), 24 (md) or 32 (lg). `30` is deprecated; use 32. */
|
|
812
|
+
size: _angular_core.InputSignal<16 | 24 | 32 | 30>;
|
|
813
|
+
/** Accessible name. When empty, the icon is decorative and hidden from screen readers. */
|
|
396
814
|
title: _angular_core.InputSignal<string>;
|
|
815
|
+
/** Icon color, such as `var(--color-icon-primary)`. Defaults to the current text color. */
|
|
397
816
|
color: _angular_core.InputSignal<string>;
|
|
817
|
+
protected resolvedName: _angular_core.Signal<string>;
|
|
398
818
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
399
819
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "ads-icon", never, { "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
400
820
|
}
|
|
401
821
|
|
|
822
|
+
/**
|
|
823
|
+
* Figma → Controls → Checkbox, Radio, Toggle and their Control Label.
|
|
824
|
+
* For a list of radios use `ads-radio-group`.
|
|
825
|
+
*/
|
|
402
826
|
declare class CheckboxComponent implements ControlValueAccessor {
|
|
827
|
+
/** `square` is the Figma Checkbox, `radio` the Figma Radio, `toggle` the Figma Toggle. */
|
|
403
828
|
appearance: _angular_core.InputSignal<AdsCheckboxAppearance>;
|
|
829
|
+
/** Figma `Size`: sm (16 px box, 12 px label) or md (20 px box, 14 px label). */
|
|
830
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
831
|
+
/** Control Label text. */
|
|
404
832
|
label: _angular_core.InputSignal<string>;
|
|
833
|
+
/** Helper text under the label (Control Label `Show helper`). */
|
|
834
|
+
helper: _angular_core.InputSignal<string>;
|
|
405
835
|
/** Names the control and makes the label clickable. */
|
|
406
836
|
readonly controlId: string;
|
|
837
|
+
/** Side of the label. Figma places it on the right. */
|
|
407
838
|
labelPosition: _angular_core.InputSignal<AdsCheckboxLabelPosition>;
|
|
839
|
+
/** `white` for dark backgrounds. Not in Figma. */
|
|
408
840
|
labelColor: _angular_core.InputSignal<AdsCheckboxLabelColor>;
|
|
841
|
+
/** `white` for dark backgrounds, such as the table header. Not in Figma. */
|
|
409
842
|
controlColor: _angular_core.InputSignal<AdsCheckboxControlColor>;
|
|
843
|
+
/** Figma `Value=Checked`. Ignored with reactive forms. */
|
|
410
844
|
checked: _angular_core.InputSignal<boolean>;
|
|
845
|
+
/** Figma `Value=Indeterminate`: some, not all, children are checked. */
|
|
411
846
|
indeterminate: _angular_core.InputSignal<boolean>;
|
|
412
847
|
disabled: _angular_core.InputSignal<boolean>;
|
|
848
|
+
/** Tab index of the control. Set by `ads-radio-group` to move focus with the arrow keys. */
|
|
849
|
+
controlTabindex: _angular_core.InputSignal<number>;
|
|
850
|
+
/** Accessible name when there is no visible `label`. */
|
|
851
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
852
|
+
/** Emits the new value when the user toggles the control. */
|
|
413
853
|
checkedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
414
854
|
private cvaMode;
|
|
415
855
|
private cvaDisabled;
|
|
@@ -420,6 +860,7 @@ declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
420
860
|
isDisabled(): boolean;
|
|
421
861
|
wrapperClasses(): string;
|
|
422
862
|
labelClasses(): string;
|
|
863
|
+
helperClasses(): string;
|
|
423
864
|
controlClasses(): string;
|
|
424
865
|
toggleThumbClasses(): string;
|
|
425
866
|
radioDotClasses(): string;
|
|
@@ -430,28 +871,50 @@ declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
430
871
|
registerOnTouched(fn: () => void): void;
|
|
431
872
|
setDisabledState(isDisabled: boolean): void;
|
|
432
873
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
433
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ads-checkbox", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelColor": { "alias": "labelColor"; "required": false; "isSignal": true; }; "controlColor": { "alias": "controlColor"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
874
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckboxComponent, "ads-checkbox", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "labelColor": { "alias": "labelColor"; "required": false; "isSignal": true; }; "controlColor": { "alias": "controlColor"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "controlTabindex": { "alias": "controlTabindex"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
434
875
|
}
|
|
435
876
|
|
|
877
|
+
type AdsFieldState = 'default' | 'error' | 'disabled';
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Figma → Inputs & Dropdowns → Input Field: a label, a field and a helper
|
|
881
|
+
* text. Works with `[(ngModel)]` and reactive forms.
|
|
882
|
+
*/
|
|
436
883
|
declare class InputComponent implements ControlValueAccessor {
|
|
884
|
+
/** Label above the field (Figma `Show Label`, `Label`). */
|
|
437
885
|
label: _angular_core.InputSignal<string>;
|
|
438
886
|
/** Links the visible label to the field for assistive technology. */
|
|
439
887
|
readonly inputId: string;
|
|
440
888
|
placeholder: _angular_core.InputSignal<string>;
|
|
889
|
+
/**
|
|
890
|
+
* Figma `Type`: text, search, password, currency, link, phone or card.
|
|
891
|
+
* `number` has no Figma type. 1.x names still work (see Deprecated names).
|
|
892
|
+
*/
|
|
441
893
|
inputType: _angular_core.InputSignal<AdsInputType>;
|
|
894
|
+
/** Figma `Size`: sm 32 px, md 36 px (default), lg 44 px, xl 48 px. */
|
|
895
|
+
size: _angular_core.InputSignal<AdsFieldSize>;
|
|
896
|
+
/** Helper text under the field (Figma `Show helper`). */
|
|
897
|
+
helper: _angular_core.InputSignal<string>;
|
|
898
|
+
/** Text before the value, with a divider (Figma `Prefix`). Defaults to `$`, `https://` or `+1` for currency, link and phone; `''` hides it. */
|
|
899
|
+
prefix: _angular_core.InputSignal<string>;
|
|
900
|
+
/** Extra 16 px icon at the start (Figma `Leading icon`). */
|
|
901
|
+
leadingIcon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
902
|
+
/** Extra 16 px icon at the end (Figma `Trailing icon`). */
|
|
903
|
+
trailingIcon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
904
|
+
/** @deprecated Rows of the 1.x `text_area` type. Use `ads-textarea`. */
|
|
442
905
|
textAreaRows: _angular_core.InputSignal<number>;
|
|
906
|
+
/** Value when not used with forms. */
|
|
443
907
|
value: _angular_core.InputSignal<string>;
|
|
908
|
+
/** Figma `State=Error`: red border and `errorMessage` instead of the helper. */
|
|
444
909
|
hasError: _angular_core.InputSignal<boolean>;
|
|
445
910
|
disabled: _angular_core.InputSignal<boolean>;
|
|
911
|
+
/** Helper text shown in the error state. */
|
|
446
912
|
errorMessage: _angular_core.InputSignal<string>;
|
|
447
913
|
showPassword: _angular_core.WritableSignal<boolean>;
|
|
448
|
-
|
|
449
|
-
show: AdsIconName;
|
|
450
|
-
hide: AdsIconName;
|
|
451
|
-
};
|
|
452
|
-
moneyIconName: AdsIconName;
|
|
453
|
-
basicClass: string;
|
|
914
|
+
/** Emits the value (digits only for phone and card) on every change. */
|
|
454
915
|
valueChange: _angular_core.OutputEmitterRef<string>;
|
|
916
|
+
/** Figma type after resolving 1.x names. */
|
|
917
|
+
readonly type: _angular_core.Signal<AdsInputType>;
|
|
455
918
|
private cvaMode;
|
|
456
919
|
private cvaDisabled;
|
|
457
920
|
currentValue: _angular_core.WritableSignal<string>;
|
|
@@ -460,13 +923,16 @@ declare class InputComponent implements ControlValueAccessor {
|
|
|
460
923
|
private onTouched;
|
|
461
924
|
constructor();
|
|
462
925
|
isDisabled(): boolean;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
926
|
+
state(): AdsFieldState;
|
|
927
|
+
boxClasses(): string;
|
|
928
|
+
readonly controlClasses = "min-w-0 flex-1 self-stretch border-0 bg-transparent p-0 font-[inherit] text-[length:inherit] leading-[inherit] text-body outline-none placeholder:text-tertiary disabled:cursor-not-allowed disabled:text-disabled disabled:placeholder:text-disabled";
|
|
929
|
+
iconClasses(): string;
|
|
930
|
+
helperText(): string;
|
|
931
|
+
helperClasses(): string;
|
|
932
|
+
resolvedPrefix(): string;
|
|
468
933
|
resolvedPlaceholder(): string;
|
|
469
934
|
maskPattern(): string | null;
|
|
935
|
+
resolvedLeadingIcon(): AdsIconName | null;
|
|
470
936
|
onInputValue(value: string): void;
|
|
471
937
|
onInputBlur(): void;
|
|
472
938
|
onTextAreaInput(value: string, textArea: HTMLTextAreaElement): void;
|
|
@@ -483,9 +949,13 @@ declare class InputComponent implements ControlValueAccessor {
|
|
|
483
949
|
detectPaymentCardBrand(value?: string): PaymentCardBrand;
|
|
484
950
|
paymentCardIconName(): AdsIconName;
|
|
485
951
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
486
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputComponent, "ads-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inputType": { "alias": "inputType"; "required": false; "isSignal": true; }; "textAreaRows": { "alias": "textAreaRows"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
952
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputComponent, "ads-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inputType": { "alias": "inputType"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; "isSignal": true; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; "isSignal": true; }; "textAreaRows": { "alias": "textAreaRows"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
487
953
|
}
|
|
488
954
|
|
|
955
|
+
/**
|
|
956
|
+
* @deprecated Use `ads-badge` (Figma → Badges → Badge), which takes a Figma
|
|
957
|
+
* `tone` and `emphasis` instead of color classes. Removed in 3.0.0.
|
|
958
|
+
*/
|
|
489
959
|
declare class StateComponent {
|
|
490
960
|
SHAPES: typeof containerShapes;
|
|
491
961
|
boldText: _angular_core.InputSignal<boolean>;
|
|
@@ -501,51 +971,148 @@ declare class StateComponent {
|
|
|
501
971
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StateComponent, "ads-state", never, { "boldText": { "alias": "boldText"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "borderColor": { "alias": "borderColor"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; "containerShapes": { "alias": "containerShapes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
502
972
|
}
|
|
503
973
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
974
|
+
/**
|
|
975
|
+
* Figma → Badges → Alert: a message inside the page about something that
|
|
976
|
+
* happened or needs attention, with an optional title, action and close
|
|
977
|
+
* button. It stays until the user closes it or the page changes.
|
|
978
|
+
*/
|
|
979
|
+
declare class AlertComponent {
|
|
980
|
+
/** Figma `Tone`: the meaning of the message. Warning and error are announced at once. */
|
|
981
|
+
tone: _angular_core.InputSignal<AdsAlertTone>;
|
|
982
|
+
/** Figma `Title` (Body Base / SemiBold). Empty hides it (Figma `Show title` off). */
|
|
983
|
+
title: _angular_core.InputSignal<string>;
|
|
984
|
+
/** Figma `Description` (Body Base / Regular). Content inside the tag is shown after it. */
|
|
985
|
+
description: _angular_core.InputSignal<string>;
|
|
986
|
+
/** Figma `Show action`: label of a Text button, such as `View`. Empty hides it. */
|
|
987
|
+
actionLabel: _angular_core.InputSignal<string>;
|
|
988
|
+
/** Figma `Show close`: a close button that emits `closed`. */
|
|
989
|
+
closable: _angular_core.InputSignal<boolean>;
|
|
990
|
+
/** Emits when the action button is clicked. */
|
|
991
|
+
action: _angular_core.OutputEmitterRef<void>;
|
|
992
|
+
/** Emits when the close button is clicked. The parent removes the alert. */
|
|
993
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
994
|
+
readonly style: _angular_core.Signal<{
|
|
995
|
+
icon: AdsIconName;
|
|
996
|
+
box: string;
|
|
997
|
+
title: string;
|
|
998
|
+
icon_: string;
|
|
999
|
+
}>;
|
|
1000
|
+
readonly role: _angular_core.Signal<"alert" | "status">;
|
|
1001
|
+
readonly classes: _angular_core.Signal<string>;
|
|
1002
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
1003
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "ads-alert", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "action": "action"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Figma → Badges → Toast: a short confirmation that floats over the page
|
|
1008
|
+
* after an action, such as “Claim assigned successfully”. Show it with
|
|
1009
|
+
* `ads-toaster`, which stacks toasts and closes them after a few seconds.
|
|
1010
|
+
*/
|
|
1011
|
+
declare class ToastComponent {
|
|
1012
|
+
/** Figma `Tone`: the color and icon of the circle. Warning and error are announced at once. */
|
|
1013
|
+
tone: _angular_core.InputSignal<AdsToastTone>;
|
|
1014
|
+
/** Figma `Message` (Body Base / Medium). Content inside the tag is shown after it. */
|
|
1015
|
+
message: _angular_core.InputSignal<string>;
|
|
1016
|
+
/** Figma `Show action`: label of a Text button, such as `Undo`. Empty hides it. */
|
|
1017
|
+
actionLabel: _angular_core.InputSignal<string>;
|
|
1018
|
+
/** Figma `Show close`: a close button that emits `closed`. */
|
|
1019
|
+
closable: _angular_core.InputSignal<boolean>;
|
|
1020
|
+
/** Emits when the action button is clicked. */
|
|
1021
|
+
action: _angular_core.OutputEmitterRef<void>;
|
|
1022
|
+
/** Emits when the close button is clicked. */
|
|
1023
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
1024
|
+
readonly style: _angular_core.Signal<{
|
|
1025
|
+
icon: AdsIconName;
|
|
1026
|
+
box: string;
|
|
1027
|
+
icon_: string;
|
|
1028
|
+
}>;
|
|
1029
|
+
readonly role: _angular_core.Signal<"alert" | "status">;
|
|
1030
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
1031
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "ads-toast", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "action": "action"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* The stack where `ads-toast`s appear, at the bottom center of the window.
|
|
1036
|
+
* Put one in the app shell and call `show()`. Toasts close by themselves
|
|
1037
|
+
* after `durationMs`, one at a time from the oldest; the timer pauses while
|
|
1038
|
+
* the pointer is over the stack.
|
|
1039
|
+
*
|
|
1040
|
+
* `ads-snackbar` is the deprecated 1.x name; removed in 3.0.0.
|
|
1041
|
+
*/
|
|
1042
|
+
declare class ToasterComponent implements OnDestroy {
|
|
1043
|
+
/** Open toasts, oldest first. */
|
|
1044
|
+
readonly toasts: _angular_core.WritableSignal<AdsToastItem[]>;
|
|
1045
|
+
/** @deprecated Use `toasts`. Read only. Removed in 3.0.0. */
|
|
1046
|
+
readonly alerts: _angular_core.Signal<SnackbarAlert[]>;
|
|
1047
|
+
/** @internal */
|
|
1048
|
+
paused: boolean;
|
|
507
1049
|
private nextId;
|
|
508
|
-
private paused;
|
|
509
1050
|
private tickStartedAt;
|
|
510
1051
|
private intervalId;
|
|
511
|
-
|
|
512
|
-
|
|
1052
|
+
/** Shows a toast and returns its id, for `close()`. */
|
|
1053
|
+
show(tone: AdsToastTone, message: string, options?: AdsToastOptions): number;
|
|
1054
|
+
/** Closes a toast. */
|
|
1055
|
+
close(id: number): void;
|
|
1056
|
+
/**
|
|
1057
|
+
* @deprecated Use `show(tone, message, { durationMs })`. Removed in 3.0.0.
|
|
1058
|
+
*/
|
|
1059
|
+
addAlert(type: AdsToastTone, message: string, remainingMs?: number): void;
|
|
1060
|
+
/** @deprecated Use `close(id)`. Removed in 3.0.0. */
|
|
513
1061
|
closeAlert(id: number): void;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
1062
|
+
/** @internal Newest on top. */
|
|
1063
|
+
visibleToasts(): AdsToastItem[];
|
|
1064
|
+
/** @internal */
|
|
1065
|
+
runAction(toast: AdsToastItem): void;
|
|
1066
|
+
/** @internal */
|
|
1067
|
+
resume(): void;
|
|
518
1068
|
ngOnDestroy(): void;
|
|
519
1069
|
private ensureTicker;
|
|
520
1070
|
private tick;
|
|
521
1071
|
private stopTickerIfEmpty;
|
|
522
1072
|
private clearTicker;
|
|
523
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
524
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1073
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToasterComponent, never>;
|
|
1074
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToasterComponent, "ads-toaster, ads-snackbar", never, {}, {}, never, never, true, never>;
|
|
525
1075
|
}
|
|
1076
|
+
/** @deprecated Use `ToasterComponent` (`<ads-toaster>`). Removed in 3.0.0. */
|
|
1077
|
+
declare const SnackbarComponent: typeof ToasterComponent;
|
|
1078
|
+
/** @deprecated Use `ToasterComponent`. Removed in 3.0.0. */
|
|
1079
|
+
type SnackbarComponent = ToasterComponent;
|
|
526
1080
|
|
|
527
1081
|
declare class InputDatepickerComponent implements ControlValueAccessor {
|
|
528
1082
|
private elementRef;
|
|
1083
|
+
/** Disables the field and the calendar. */
|
|
529
1084
|
isPickerDisabled: _angular_core.InputSignal<boolean>;
|
|
1085
|
+
/** Placeholder of the field. */
|
|
530
1086
|
datePickerPlaceholder: _angular_core.InputSignal<string>;
|
|
1087
|
+
/** Figma `State=Error`: red border and `errorMessage` instead of the helper. */
|
|
531
1088
|
hasError: _angular_core.InputSignal<boolean>;
|
|
1089
|
+
/** Message shown in the error state, and when the typed date is not valid. */
|
|
532
1090
|
errorMessage: _angular_core.InputSignal<string>;
|
|
533
1091
|
isDatePickerOpen: boolean;
|
|
534
1092
|
selectedDate: _angular_core.WritableSignal<string>;
|
|
535
1093
|
selectedDateObj: _angular_core.WritableSignal<Date>;
|
|
536
1094
|
invalidInput: _angular_core.WritableSignal<boolean>;
|
|
1095
|
+
/** Allows dates after today. */
|
|
537
1096
|
futureDatesAllowed: _angular_core.InputSignal<boolean>;
|
|
1097
|
+
/** Label above the field. */
|
|
538
1098
|
label: _angular_core.InputSignal<string>;
|
|
1099
|
+
/** Picks a month (`MM/YYYY`) instead of a day. */
|
|
539
1100
|
monthlyPicker: _angular_core.InputSignal<boolean>;
|
|
540
1101
|
datePickerRef: any;
|
|
541
1102
|
private cvaDisabled;
|
|
542
1103
|
private onChange;
|
|
543
1104
|
private onTouched;
|
|
544
|
-
basicClass: string;
|
|
545
1105
|
isDisabled(): boolean;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
1106
|
+
/** Figma `Size`: field height 32 / 36 / 44 / 48 px. */
|
|
1107
|
+
size: _angular_core.InputSignal<AdsFieldSize>;
|
|
1108
|
+
/** Helper text under the field; the error message replaces it. */
|
|
1109
|
+
helper: _angular_core.InputSignal<string>;
|
|
1110
|
+
readonly inputId: string;
|
|
1111
|
+
readonly controlClasses = "min-w-0 flex-1 self-stretch border-0 bg-transparent p-0 font-[inherit] text-[length:inherit] leading-[inherit] text-body outline-none placeholder:text-tertiary disabled:cursor-not-allowed disabled:text-disabled disabled:placeholder:text-disabled";
|
|
1112
|
+
boxClasses(): string;
|
|
1113
|
+
iconClasses(): string;
|
|
1114
|
+
helperText(): string;
|
|
1115
|
+
helperClasses(): string;
|
|
549
1116
|
onInputValue(value: any): void;
|
|
550
1117
|
onInputTextChange(text: string): void;
|
|
551
1118
|
private normalizeToUsDateFormat;
|
|
@@ -567,16 +1134,22 @@ declare class InputDatepickerComponent implements ControlValueAccessor {
|
|
|
567
1134
|
private isFutureDate;
|
|
568
1135
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
569
1136
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputDatepickerComponent, never>;
|
|
570
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputDatepickerComponent, "ads-input-datepicker", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "datePickerPlaceholder": { "alias": "datePickerPlaceholder"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "futureDatesAllowed": { "alias": "futureDatesAllowed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "monthlyPicker": { "alias": "monthlyPicker"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1137
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputDatepickerComponent, "ads-input-datepicker", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "datePickerPlaceholder": { "alias": "datePickerPlaceholder"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "futureDatesAllowed": { "alias": "futureDatesAllowed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "monthlyPicker": { "alias": "monthlyPicker"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
571
1138
|
}
|
|
572
1139
|
|
|
573
1140
|
declare class InputRangepickerComponent implements ControlValueAccessor {
|
|
574
1141
|
private elementRef;
|
|
1142
|
+
/** Disables the field and the calendar. */
|
|
575
1143
|
isPickerDisabled: _angular_core.InputSignal<boolean>;
|
|
1144
|
+
/** Placeholder of the field. */
|
|
576
1145
|
rangePickerPlaceholder: _angular_core.InputSignal<string>;
|
|
1146
|
+
/** Figma `State=Error`: red border and `errorMessage` instead of the helper. */
|
|
577
1147
|
hasError: _angular_core.InputSignal<boolean>;
|
|
1148
|
+
/** Message shown in the error state, and when the typed date is not valid. */
|
|
578
1149
|
errorMessage: _angular_core.InputSignal<string>;
|
|
1150
|
+
/** Label above the field. */
|
|
579
1151
|
label: _angular_core.InputSignal<string>;
|
|
1152
|
+
/** Allows dates after today. */
|
|
580
1153
|
allowFutureDates: _angular_core.InputSignal<boolean>;
|
|
581
1154
|
isDatePickerOpen: boolean;
|
|
582
1155
|
selectedRange: _angular_core.WritableSignal<string>;
|
|
@@ -585,12 +1158,18 @@ declare class InputRangepickerComponent implements ControlValueAccessor {
|
|
|
585
1158
|
private cvaDisabled;
|
|
586
1159
|
private onChange;
|
|
587
1160
|
private onTouched;
|
|
588
|
-
basicClass: string;
|
|
589
1161
|
constructor(elementRef: ElementRef);
|
|
590
1162
|
isDisabled(): boolean;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
1163
|
+
/** Figma `Size`: field height 32 / 36 / 44 / 48 px. */
|
|
1164
|
+
size: _angular_core.InputSignal<AdsFieldSize>;
|
|
1165
|
+
/** Helper text under the field; the error message replaces it. */
|
|
1166
|
+
helper: _angular_core.InputSignal<string>;
|
|
1167
|
+
readonly inputId: string;
|
|
1168
|
+
readonly controlClasses = "min-w-0 flex-1 self-stretch border-0 bg-transparent p-0 font-[inherit] text-[length:inherit] leading-[inherit] text-body outline-none placeholder:text-tertiary disabled:cursor-not-allowed disabled:text-disabled disabled:placeholder:text-disabled";
|
|
1169
|
+
boxClasses(): string;
|
|
1170
|
+
iconClasses(): string;
|
|
1171
|
+
helperText(): string;
|
|
1172
|
+
helperClasses(): string;
|
|
594
1173
|
openDatePicker(): void;
|
|
595
1174
|
onOpenChange(isOpen: boolean): void;
|
|
596
1175
|
onInputBlur(): void;
|
|
@@ -613,30 +1192,42 @@ declare class InputRangepickerComponent implements ControlValueAccessor {
|
|
|
613
1192
|
private isFutureDate;
|
|
614
1193
|
private hasFutureDateInRange;
|
|
615
1194
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputRangepickerComponent, never>;
|
|
616
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputRangepickerComponent, "ads-input-rangepicker", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "rangePickerPlaceholder": { "alias": "rangePickerPlaceholder"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "allowFutureDates": { "alias": "allowFutureDates"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1195
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputRangepickerComponent, "ads-input-rangepicker", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "rangePickerPlaceholder": { "alias": "rangePickerPlaceholder"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "allowFutureDates": { "alias": "allowFutureDates"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
617
1196
|
}
|
|
618
1197
|
|
|
619
1198
|
declare class InputWeekpickerComponent implements ControlValueAccessor {
|
|
620
1199
|
private elementRef;
|
|
1200
|
+
/** Disables the field and the calendar. */
|
|
621
1201
|
isPickerDisabled: _angular_core.InputSignal<boolean>;
|
|
1202
|
+
/** Placeholder of the field. */
|
|
622
1203
|
weekPickerPlaceholder: _angular_core.InputSignal<string>;
|
|
1204
|
+
/** Figma `State=Error`: red border and `errorMessage` instead of the helper. */
|
|
623
1205
|
hasError: _angular_core.InputSignal<boolean>;
|
|
1206
|
+
/** Message shown in the error state, and when the typed date is not valid. */
|
|
624
1207
|
errorMessage: _angular_core.InputSignal<string>;
|
|
625
1208
|
isDatePickerOpen: boolean;
|
|
626
1209
|
selectedWeek: _angular_core.WritableSignal<string>;
|
|
627
1210
|
selectedWeekRange: _angular_core.WritableSignal<[Date, Date]>;
|
|
628
1211
|
invalidInput: _angular_core.WritableSignal<boolean>;
|
|
1212
|
+
/** Allows dates after today. */
|
|
629
1213
|
futureDatesAllowed: _angular_core.InputSignal<boolean>;
|
|
1214
|
+
/** Label above the field. */
|
|
630
1215
|
label: _angular_core.InputSignal<string>;
|
|
631
1216
|
datePickerRef: any;
|
|
632
1217
|
private cvaDisabled;
|
|
633
1218
|
private onChange;
|
|
634
1219
|
private onTouched;
|
|
635
|
-
basicClass: string;
|
|
636
1220
|
isDisabled(): boolean;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
1221
|
+
/** Figma `Size`: field height 32 / 36 / 44 / 48 px. */
|
|
1222
|
+
size: _angular_core.InputSignal<AdsFieldSize>;
|
|
1223
|
+
/** Helper text under the field; the error message replaces it. */
|
|
1224
|
+
helper: _angular_core.InputSignal<string>;
|
|
1225
|
+
readonly inputId: string;
|
|
1226
|
+
readonly controlClasses = "min-w-0 flex-1 self-stretch border-0 bg-transparent p-0 font-[inherit] text-[length:inherit] leading-[inherit] text-body outline-none placeholder:text-tertiary disabled:cursor-not-allowed disabled:text-disabled disabled:placeholder:text-disabled";
|
|
1227
|
+
boxClasses(): string;
|
|
1228
|
+
iconClasses(): string;
|
|
1229
|
+
helperText(): string;
|
|
1230
|
+
helperClasses(): string;
|
|
640
1231
|
onInputValue(value: any): void;
|
|
641
1232
|
onInputTextChange(text: string): void;
|
|
642
1233
|
private normalizeToUsRangeFormat;
|
|
@@ -666,17 +1257,35 @@ declare class InputWeekpickerComponent implements ControlValueAccessor {
|
|
|
666
1257
|
private hasFutureDateInRange;
|
|
667
1258
|
constructor(elementRef: ElementRef);
|
|
668
1259
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputWeekpickerComponent, never>;
|
|
669
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputWeekpickerComponent, "ads-input-weekpicker", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "weekPickerPlaceholder": { "alias": "weekPickerPlaceholder"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "futureDatesAllowed": { "alias": "futureDatesAllowed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1260
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputWeekpickerComponent, "ads-input-weekpicker", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "weekPickerPlaceholder": { "alias": "weekPickerPlaceholder"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "futureDatesAllowed": { "alias": "futureDatesAllowed"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
670
1261
|
}
|
|
671
1262
|
|
|
672
|
-
|
|
1263
|
+
/**
|
|
1264
|
+
* Figma → Filters → Period Select (the pill) and Period Picker (the panel it
|
|
1265
|
+
* opens: a list of periods next to a Calendar). The value is a `Date`: the
|
|
1266
|
+
* day, the first day of the week, or any day in the month, quarter or year.
|
|
1267
|
+
*
|
|
1268
|
+
* `ads-datepicker-selector` is the deprecated 1.x selector; removed in 3.0.0.
|
|
1269
|
+
*/
|
|
1270
|
+
declare class PeriodSelectComponent implements ControlValueAccessor {
|
|
673
1271
|
private elementRef;
|
|
1272
|
+
/** Disables the pill. */
|
|
674
1273
|
isPickerDisabled: _angular_core.InputSignal<boolean>;
|
|
1274
|
+
/** Figma `Size`: 32 px (sm) or 36 px (md) high. */
|
|
1275
|
+
size: _angular_core.InputSignal<AdsPeriodSelectSize>;
|
|
1276
|
+
/**
|
|
1277
|
+
* What the pill says: `period` the period and the value (“Monthly: May
|
|
1278
|
+
* 2026”, Figma), `option` the period only, `selection` the value only.
|
|
1279
|
+
*/
|
|
1280
|
+
buttonLabelMode: _angular_core.InputSignal<DatepickerSelectorButtonLabelMode>;
|
|
1281
|
+
/** Shows only the icon, as a round button. */
|
|
1282
|
+
buttonOnlyIconButton: _angular_core.InputSignal<boolean>;
|
|
1283
|
+
/** Icon after the text. */
|
|
1284
|
+
buttonIcon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
1285
|
+
/** @deprecated The pill follows Figma Period Select; it has no variants. Removed in 3.0.0. */
|
|
675
1286
|
buttonVariant: _angular_core.InputSignal<AdsButtonVariant>;
|
|
1287
|
+
/** @deprecated The pill follows Figma Period Select; it has no colors. Removed in 3.0.0. */
|
|
676
1288
|
buttonColor: _angular_core.InputSignal<AdsButtonColor>;
|
|
677
|
-
buttonOnlyIconButton: _angular_core.InputSignal<boolean>;
|
|
678
|
-
buttonIcon: _angular_core.InputSignal<"search" | "add_square" | "administrator_solid" | "ambulance" | "arrow_right" | "blood_type" | "chart_bars" | "chart_grid" | "book" | "bookmark" | "branchs" | "building" | "calendar" | "calendar_check" | "chat" | "error" | "check" | "check_list" | "clipboard" | "controller_frame" | "copy" | "delete" | "delete_trash" | "device_add" | "document" | "document_upload" | "download_rounded" | "edit" | "edit_calendar" | "eye" | "folder" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "ia_agent" | "info" | "lightbulb" | "mail" | "medical_user" | "menu_list" | "microphone" | "minus" | "move_down" | "open" | "paper_edit" | "pause" | "people" | "phone" | "play" | "play_filled" | "plus" | "queue_play" | "receipt" | "replay" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "warning" | "icon_card" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "more_vert" | "camera" | "dolar_sign">;
|
|
679
|
-
buttonLabelMode: _angular_core.InputSignal<DatepickerSelectorButtonLabelMode>;
|
|
680
1289
|
selectorTriggerRef?: ElementRef<HTMLButtonElement>;
|
|
681
1290
|
readonly dateOptions: {
|
|
682
1291
|
readonly annually: "annually";
|
|
@@ -685,15 +1294,27 @@ declare class DatepickerSelectorComponent implements ControlValueAccessor {
|
|
|
685
1294
|
readonly quarterly: "quarterly";
|
|
686
1295
|
readonly daily: "daily";
|
|
687
1296
|
};
|
|
1297
|
+
/** In the order of Figma Period Picker. */
|
|
688
1298
|
readonly pickerOptions: PickerOption[];
|
|
689
|
-
|
|
1299
|
+
/** Figma `Period`: the selected period. Two-way: `[(period)]` reports the one the user picks. */
|
|
1300
|
+
period: _angular_core.ModelSignal<PickerMode>;
|
|
1301
|
+
/** The selected period; same as `period`. */
|
|
1302
|
+
readonly selectedTimeFrame: _angular_core.ModelSignal<PickerMode>;
|
|
690
1303
|
readonly hoveredTimeFrame: _angular_core.WritableSignal<PickerMode>;
|
|
1304
|
+
/** Period clicked in the list; its calendar stays until a date is picked. */
|
|
1305
|
+
readonly viewedTimeFrame: _angular_core.WritableSignal<PickerMode>;
|
|
691
1306
|
readonly isSelectorOpen: _angular_core.WritableSignal<boolean>;
|
|
692
1307
|
readonly openToLeft: _angular_core.WritableSignal<boolean>;
|
|
693
1308
|
readonly selectedDate: _angular_core.WritableSignal<Date>;
|
|
694
1309
|
readonly currentTimeFrameLabel: _angular_core.Signal<string>;
|
|
1310
|
+
/** The value part of the pill: the formatted date. */
|
|
1311
|
+
readonly selectionLabel: _angular_core.Signal<string>;
|
|
1312
|
+
/** The accessible text of the pill: the period and the value. */
|
|
695
1313
|
readonly buttonLabel: _angular_core.Signal<string>;
|
|
1314
|
+
/** Calendar shown next to the list: hovered, else clicked, else the selected period. */
|
|
696
1315
|
readonly activePreviewTimeFrame: _angular_core.Signal<PickerMode>;
|
|
1316
|
+
/** Pill classes per Figma `State` and `Size`. */
|
|
1317
|
+
readonly triggerClasses: _angular_core.Signal<string>;
|
|
697
1318
|
date: Date | null;
|
|
698
1319
|
private cvaDisabled;
|
|
699
1320
|
private hasReceivedInitialWrite;
|
|
@@ -703,6 +1324,7 @@ declare class DatepickerSelectorComponent implements ControlValueAccessor {
|
|
|
703
1324
|
isDisabled(): boolean;
|
|
704
1325
|
toggleSelector(): void;
|
|
705
1326
|
previewTimeFrame(mode: PickerMode): void;
|
|
1327
|
+
viewTimeFrame(mode: PickerMode): void;
|
|
706
1328
|
clearPreview(): void;
|
|
707
1329
|
onDateChange(mode: PickerMode, value: Date | null): void;
|
|
708
1330
|
private formatSelectionLabel;
|
|
@@ -720,45 +1342,258 @@ declare class DatepickerSelectorComponent implements ControlValueAccessor {
|
|
|
720
1342
|
registerOnTouched(fn: () => void): void;
|
|
721
1343
|
setDisabledState(isDisabled: boolean): void;
|
|
722
1344
|
onDocumentClick(event: MouseEvent): void;
|
|
723
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
724
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1345
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PeriodSelectComponent, never>;
|
|
1346
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PeriodSelectComponent, "ads-period-select, ads-datepicker-selector", never, { "isPickerDisabled": { "alias": "isPickerDisabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "buttonLabelMode": { "alias": "buttonLabelMode"; "required": false; "isSignal": true; }; "buttonOnlyIconButton": { "alias": "buttonOnlyIconButton"; "required": false; "isSignal": true; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; "isSignal": true; }; "buttonVariant": { "alias": "buttonVariant"; "required": false; "isSignal": true; }; "buttonColor": { "alias": "buttonColor"; "required": false; "isSignal": true; }; "period": { "alias": "period"; "required": false; "isSignal": true; }; }, { "period": "periodChange"; }, never, never, true, never>;
|
|
1347
|
+
}
|
|
1348
|
+
/** @deprecated Use `PeriodSelectComponent` (`<ads-period-select>`). Removed in 3.0.0. */
|
|
1349
|
+
declare const DatepickerSelectorComponent: typeof PeriodSelectComponent;
|
|
1350
|
+
/** @deprecated Use `PeriodSelectComponent`. Removed in 3.0.0. */
|
|
1351
|
+
type DatepickerSelectorComponent = PeriodSelectComponent;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Figma → Badges → Badge: a short status label in a pill, with an optional
|
|
1355
|
+
* dot or icon. Read only; use Tag for something the user can click.
|
|
1356
|
+
*/
|
|
1357
|
+
declare class BadgeComponent {
|
|
1358
|
+
/** Text of the badge. Content inside the tag is shown after it. */
|
|
1359
|
+
label: _angular_core.InputSignal<string>;
|
|
1360
|
+
/** Figma `Tone`: the meaning of the status. */
|
|
1361
|
+
tone: _angular_core.InputSignal<AdsBadgeTone>;
|
|
1362
|
+
/** Figma `Emphasis`: `subtle` tinted, `strong` filled. */
|
|
1363
|
+
emphasis: _angular_core.InputSignal<AdsBadgeEmphasis>;
|
|
1364
|
+
/** Figma `Size`: 20 px (sm) or 24 px (md) high. */
|
|
1365
|
+
size: _angular_core.InputSignal<AdsBadgeSize>;
|
|
1366
|
+
/** Figma `Show dot`: a 6 px dot before the label. */
|
|
1367
|
+
dot: _angular_core.InputSignal<boolean>;
|
|
1368
|
+
/** Figma `Show icon`: a 16 px icon before the label. */
|
|
1369
|
+
icon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
1370
|
+
readonly classes: _angular_core.Signal<string>;
|
|
1371
|
+
readonly dotClasses: _angular_core.Signal<string>;
|
|
1372
|
+
readonly iconClasses: _angular_core.Signal<string>;
|
|
1373
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
1374
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ads-badge", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
725
1375
|
}
|
|
726
1376
|
|
|
1377
|
+
/**
|
|
1378
|
+
* Figma → Badges → Counter: a number in a circle, such as unread items next
|
|
1379
|
+
* to a tab or a menu option. Same tones as Badge.
|
|
1380
|
+
*/
|
|
1381
|
+
declare class CounterComponent {
|
|
1382
|
+
/** The number to show. */
|
|
1383
|
+
count: _angular_core.InputSignal<string | number>;
|
|
1384
|
+
/** Numbers above `max` show as `max+`, such as `99+`. `0` turns it off. */
|
|
1385
|
+
max: _angular_core.InputSignal<number>;
|
|
1386
|
+
/** Figma `Tone`. */
|
|
1387
|
+
tone: _angular_core.InputSignal<AdsBadgeTone>;
|
|
1388
|
+
/** Figma `Emphasis`: `subtle` tinted, `strong` filled. */
|
|
1389
|
+
emphasis: _angular_core.InputSignal<AdsBadgeEmphasis>;
|
|
1390
|
+
/** Figma `Size`: 16 px (sm) or 20 px (md) high. */
|
|
1391
|
+
size: _angular_core.InputSignal<AdsBadgeSize>;
|
|
1392
|
+
/** Accessible text, such as “12 unread messages”. Defaults to the number. */
|
|
1393
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
1394
|
+
readonly text: _angular_core.Signal<string>;
|
|
1395
|
+
readonly classes: _angular_core.Signal<string>;
|
|
1396
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CounterComponent, never>;
|
|
1397
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CounterComponent, "ads-counter", never, { "count": { "alias": "count"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Figma → Badges → Trend Badge: how a metric changed, with an arrow and a
|
|
1402
|
+
* value such as `+12%`. Replaces the deprecated Metric_behavior.
|
|
1403
|
+
*/
|
|
1404
|
+
declare class TrendBadgeComponent {
|
|
1405
|
+
/** The change, such as `+12%`. */
|
|
1406
|
+
value: _angular_core.InputSignal<string>;
|
|
1407
|
+
/** Figma `Direction`: `up` green, `down` red, `flat` grey. */
|
|
1408
|
+
direction: _angular_core.InputSignal<AdsTrendDirection>;
|
|
1409
|
+
/** Figma `Size`: 20 px (sm) or 24 px (md) high. */
|
|
1410
|
+
size: _angular_core.InputSignal<AdsBadgeSize>;
|
|
1411
|
+
readonly style: _angular_core.Signal<{
|
|
1412
|
+
icon: AdsIconName;
|
|
1413
|
+
classes: string;
|
|
1414
|
+
iconClasses: string;
|
|
1415
|
+
label: string;
|
|
1416
|
+
}>;
|
|
1417
|
+
readonly classes: _angular_core.Signal<string>;
|
|
1418
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TrendBadgeComponent, never>;
|
|
1419
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TrendBadgeComponent, "ads-trend-badge", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Figma → Badges → Tag: a label the user can select or remove, such as a
|
|
1424
|
+
* keyword or a chosen filter value.
|
|
1425
|
+
*/
|
|
1426
|
+
declare class TagComponent {
|
|
1427
|
+
/** Text of the tag. */
|
|
1428
|
+
label: _angular_core.InputSignal<string>;
|
|
1429
|
+
/** Figma `Type=Selected`. Two-way: `[(selected)]`. */
|
|
1430
|
+
selected: _angular_core.ModelSignal<boolean>;
|
|
1431
|
+
/** Clicking the tag toggles `selected`. Turn off for a tag that is only removable. */
|
|
1432
|
+
toggleable: _angular_core.InputSignal<boolean>;
|
|
1433
|
+
/** Figma `Removable`: a close button that emits `removed`. */
|
|
1434
|
+
removable: _angular_core.InputSignal<boolean>;
|
|
1435
|
+
/** Figma `Show icon`: a 16 px icon before the label. */
|
|
1436
|
+
icon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
1437
|
+
/** Figma `State=Disabled`. */
|
|
1438
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
1439
|
+
/** Figma `Size`: 24 px (sm) or 32 px (md) high. */
|
|
1440
|
+
size: _angular_core.InputSignal<AdsBadgeSize>;
|
|
1441
|
+
/** Emits when the close button is clicked. */
|
|
1442
|
+
removed: _angular_core.OutputEmitterRef<void>;
|
|
1443
|
+
toggle(): void;
|
|
1444
|
+
readonly classes: _angular_core.Signal<string>;
|
|
1445
|
+
readonly iconClasses: _angular_core.Signal<string>;
|
|
1446
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TagComponent, never>;
|
|
1447
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TagComponent, "ads-tag", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "toggleable": { "alias": "toggleable"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "removed": "removed"; }, never, never, true, never>;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Figma → Filters → Filter Button: shows how many filters are applied and
|
|
1452
|
+
* opens the Filter Panel under it. The panel's inputs and outputs are
|
|
1453
|
+
* available on the button.
|
|
1454
|
+
*/
|
|
727
1455
|
declare class FilterButtonComponent {
|
|
728
1456
|
private readonly el;
|
|
729
|
-
|
|
730
|
-
private readonly codesValueOptions;
|
|
731
|
-
private readonly booleanValueOptions;
|
|
732
|
-
private readonly statusValueOptions;
|
|
1457
|
+
/** Figma `Label`. */
|
|
733
1458
|
buttonLabel: _angular_core.InputSignal<string>;
|
|
734
|
-
|
|
1459
|
+
/** Icon before the label. */
|
|
1460
|
+
buttonIcon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
1461
|
+
/** Shows the icon. */
|
|
735
1462
|
showButtonIcon: _angular_core.InputSignal<boolean>;
|
|
1463
|
+
/** Figma `Size`: 32 px (sm) or 36 px (md, Toolbar and Filter Bar). */
|
|
1464
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Number of applied filters (Figma `Active=Yes` and its count). Leave it
|
|
1467
|
+
* `null` to count the rows of the last Apply.
|
|
1468
|
+
*/
|
|
1469
|
+
count: _angular_core.InputSignal<number>;
|
|
1470
|
+
/** Figma `State=Disabled`. */
|
|
1471
|
+
buttonDisabled: _angular_core.InputSignal<boolean>;
|
|
1472
|
+
/** @deprecated The Figma Filter Button has one look. Ignored; removed in 3.0.0. */
|
|
736
1473
|
buttonVariant: _angular_core.InputSignal<AdsButtonVariant>;
|
|
1474
|
+
/** @deprecated The Figma Filter Button has one look. Ignored; removed in 3.0.0. */
|
|
737
1475
|
buttonColor: _angular_core.InputSignal<AdsButtonColor>;
|
|
1476
|
+
/** @deprecated The open button uses the Figma `Pressed` look. Ignored; removed in 3.0.0. */
|
|
738
1477
|
buttonOpenVariant: _angular_core.InputSignal<AdsButtonVariant>;
|
|
1478
|
+
/** @deprecated The open button uses the Figma `Pressed` look. Ignored; removed in 3.0.0. */
|
|
739
1479
|
buttonOpenColor: _angular_core.InputSignal<AdsButtonColor>;
|
|
740
|
-
|
|
1480
|
+
/** Title of the Filter Panel. */
|
|
741
1481
|
panelTitle: _angular_core.InputSignal<string>;
|
|
1482
|
+
/** Label of the panel's Add filter button. */
|
|
742
1483
|
addFilterLabel: _angular_core.InputSignal<string>;
|
|
1484
|
+
/** Label of the panel's Reset button. */
|
|
743
1485
|
resetLabel: _angular_core.InputSignal<string>;
|
|
1486
|
+
/** Label of the panel's Apply button. */
|
|
744
1487
|
applyLabel: _angular_core.InputSignal<string>;
|
|
1488
|
+
/** Fields the user can filter by. */
|
|
745
1489
|
columnOptions: _angular_core.InputSignal<AdsFilterButtonOption[]>;
|
|
1490
|
+
/** Operators per value type. A type that is not listed offers only “is”. */
|
|
1491
|
+
operators: _angular_core.InputSignal<Partial<Record<_aaamb_ngx_design_system.AdsFilterButtonValueType, _aaamb_ngx_design_system.AdsSingleSelectorOption[]>>>;
|
|
1492
|
+
/** Placeholder of the field selector. */
|
|
746
1493
|
columnPlaceholder: _angular_core.InputSignal<string>;
|
|
1494
|
+
/** Placeholder of a text value. */
|
|
747
1495
|
valuePlaceholder: _angular_core.InputSignal<string>;
|
|
1496
|
+
/** Text shown when the panel has no rows. */
|
|
748
1497
|
noFiltersText: _angular_core.InputSignal<string>;
|
|
1498
|
+
/** Fields the user can sort by. Empty hides the Sort section. */
|
|
749
1499
|
sortableColumnOptions: _angular_core.InputSignal<AdsFilterButtonOption[]>;
|
|
1500
|
+
/** Text shown when there are no sort rows. */
|
|
750
1501
|
noSortText: _angular_core.InputSignal<string>;
|
|
1502
|
+
/** Emits when a filter row is added. */
|
|
751
1503
|
addFilter: _angular_core.OutputEmitterRef<void>;
|
|
1504
|
+
/** Emits on Reset. */
|
|
752
1505
|
resetFilters: _angular_core.OutputEmitterRef<void>;
|
|
1506
|
+
/** Emits the filter rows on Apply; the panel then closes. */
|
|
753
1507
|
applyFilters: _angular_core.OutputEmitterRef<AdsFilterButtonRow[]>;
|
|
1508
|
+
/** Emits when a sort row is added. */
|
|
754
1509
|
addSort: _angular_core.OutputEmitterRef<void>;
|
|
1510
|
+
/** Emits on Reset. */
|
|
755
1511
|
resetSorts: _angular_core.OutputEmitterRef<void>;
|
|
1512
|
+
/** Emits the sort rows on Apply. */
|
|
756
1513
|
applySorts: _angular_core.OutputEmitterRef<AdsFilterButtonSortRow[]>;
|
|
1514
|
+
/** Emits when the panel opens or closes. */
|
|
757
1515
|
openChange: _angular_core.OutputEmitterRef<boolean>;
|
|
758
|
-
|
|
759
|
-
|
|
1516
|
+
/** Whether the panel is open. */
|
|
1517
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
1518
|
+
private readonly appliedCount;
|
|
1519
|
+
/** @internal */
|
|
1520
|
+
readonly activeCount: _angular_core.Signal<number>;
|
|
1521
|
+
/** @internal */
|
|
1522
|
+
readonly active: _angular_core.Signal<boolean>;
|
|
1523
|
+
/** @internal */
|
|
1524
|
+
readonly buttonClasses: _angular_core.Signal<string>;
|
|
1525
|
+
/** Opens or closes the panel. */
|
|
1526
|
+
togglePanel(): void;
|
|
1527
|
+
/** Closes the panel. */
|
|
1528
|
+
closePanel(): void;
|
|
1529
|
+
/** @internal */
|
|
1530
|
+
onApply(rows: AdsFilterButtonRow[]): void;
|
|
1531
|
+
/** @internal */
|
|
1532
|
+
onReset(): void;
|
|
1533
|
+
onDocumentClick(event: Event): void;
|
|
1534
|
+
onEscape(): void;
|
|
1535
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterButtonComponent, never>;
|
|
1536
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterButtonComponent, "ads-filter-button", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; "isSignal": true; }; "showButtonIcon": { "alias": "showButtonIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "buttonDisabled": { "alias": "buttonDisabled"; "required": false; "isSignal": true; }; "buttonVariant": { "alias": "buttonVariant"; "required": false; "isSignal": true; }; "buttonColor": { "alias": "buttonColor"; "required": false; "isSignal": true; }; "buttonOpenVariant": { "alias": "buttonOpenVariant"; "required": false; "isSignal": true; }; "buttonOpenColor": { "alias": "buttonOpenColor"; "required": false; "isSignal": true; }; "panelTitle": { "alias": "panelTitle"; "required": false; "isSignal": true; }; "addFilterLabel": { "alias": "addFilterLabel"; "required": false; "isSignal": true; }; "resetLabel": { "alias": "resetLabel"; "required": false; "isSignal": true; }; "applyLabel": { "alias": "applyLabel"; "required": false; "isSignal": true; }; "columnOptions": { "alias": "columnOptions"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "columnPlaceholder": { "alias": "columnPlaceholder"; "required": false; "isSignal": true; }; "valuePlaceholder": { "alias": "valuePlaceholder"; "required": false; "isSignal": true; }; "noFiltersText": { "alias": "noFiltersText"; "required": false; "isSignal": true; }; "sortableColumnOptions": { "alias": "sortableColumnOptions"; "required": false; "isSignal": true; }; "noSortText": { "alias": "noSortText"; "required": false; "isSignal": true; }; }, { "addFilter": "addFilter"; "resetFilters": "resetFilters"; "applyFilters": "applyFilters"; "addSort": "addSort"; "resetSorts": "resetSorts"; "applySorts": "applySorts"; "openChange": "openChange"; }, never, ["[filter-button-extra]"], true, never>;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Figma → Filters → Filter Panel: the filters the user builds, one row per
|
|
1541
|
+
* filter (field, operator, value, remove), with Add filter, Reset and Apply.
|
|
1542
|
+
* `ads-filter-button` opens it; you can also place it yourself.
|
|
1543
|
+
*/
|
|
1544
|
+
declare class FilterPanelComponent {
|
|
1545
|
+
private readonly fb;
|
|
1546
|
+
private readonly codesValueOptions;
|
|
1547
|
+
private readonly booleanValueOptions;
|
|
1548
|
+
private readonly statusValueOptions;
|
|
760
1549
|
private readonly sortDirectionOptions;
|
|
761
|
-
|
|
1550
|
+
/** Figma `Title` of the header. */
|
|
1551
|
+
panelTitle: _angular_core.InputSignal<string>;
|
|
1552
|
+
/** Shows the close button in the header; it emits `closed`. */
|
|
1553
|
+
showCloseButton: _angular_core.InputSignal<boolean>;
|
|
1554
|
+
/** Label of the Text button that adds a row. */
|
|
1555
|
+
addFilterLabel: _angular_core.InputSignal<string>;
|
|
1556
|
+
/** Label of the Secondary button that removes every row. */
|
|
1557
|
+
resetLabel: _angular_core.InputSignal<string>;
|
|
1558
|
+
/** Label of the Primary button that emits the rows. */
|
|
1559
|
+
applyLabel: _angular_core.InputSignal<string>;
|
|
1560
|
+
/** Fields the user can filter by. Each field is used once. */
|
|
1561
|
+
columnOptions: _angular_core.InputSignal<AdsFilterButtonOption[]>;
|
|
1562
|
+
/** Operators per value type. A type that is not listed offers only “is”. */
|
|
1563
|
+
operators: _angular_core.InputSignal<Partial<Record<AdsFilterButtonValueType, AdsSingleSelectorOption[]>>>;
|
|
1564
|
+
/** Placeholder of the field selector. */
|
|
1565
|
+
columnPlaceholder: _angular_core.InputSignal<string>;
|
|
1566
|
+
/** Placeholder of a text value. */
|
|
1567
|
+
valuePlaceholder: _angular_core.InputSignal<string>;
|
|
1568
|
+
/** Text shown when there are no rows. */
|
|
1569
|
+
noFiltersText: _angular_core.InputSignal<string>;
|
|
1570
|
+
/** Fields the user can sort by. Empty hides the Sort section (not in Figma). */
|
|
1571
|
+
sortableColumnOptions: _angular_core.InputSignal<AdsFilterButtonOption[]>;
|
|
1572
|
+
/** Text shown when there are no sort rows. */
|
|
1573
|
+
noSortText: _angular_core.InputSignal<string>;
|
|
1574
|
+
/** Emits when a filter row is added. */
|
|
1575
|
+
addFilter: _angular_core.OutputEmitterRef<void>;
|
|
1576
|
+
/** Emits on Reset. */
|
|
1577
|
+
resetFilters: _angular_core.OutputEmitterRef<void>;
|
|
1578
|
+
/** Emits the filter rows on Apply. */
|
|
1579
|
+
applyFilters: _angular_core.OutputEmitterRef<AdsFilterButtonRow[]>;
|
|
1580
|
+
/** Emits when a sort row is added. */
|
|
1581
|
+
addSort: _angular_core.OutputEmitterRef<void>;
|
|
1582
|
+
/** Emits on Reset. */
|
|
1583
|
+
resetSorts: _angular_core.OutputEmitterRef<void>;
|
|
1584
|
+
/** Emits the sort rows on Apply. */
|
|
1585
|
+
applySorts: _angular_core.OutputEmitterRef<AdsFilterButtonSortRow[]>;
|
|
1586
|
+
/** Emits on the close button. */
|
|
1587
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
filterForm: FormGroup;
|
|
1590
|
+
constructor(fb: FormBuilder);
|
|
1591
|
+
/** @internal Operators offered for a value type. */
|
|
1592
|
+
operatorOptionsFor(valueType: AdsFilterButtonValueType): AdsSingleSelectorOption[];
|
|
1593
|
+
/** @internal */
|
|
1594
|
+
operatorOptionsForRow(index: number): AdsSingleSelectorOption[];
|
|
1595
|
+
/** @internal Number of filter rows. */
|
|
1596
|
+
filterCount(): number;
|
|
762
1597
|
get filtersArray(): FormArray;
|
|
763
1598
|
get sortsArray(): FormArray;
|
|
764
1599
|
rowValueType(index: number): AdsFilterButtonValueType;
|
|
@@ -769,11 +1604,6 @@ declare class FilterButtonComponent {
|
|
|
769
1604
|
canAddFilter(): boolean;
|
|
770
1605
|
canAddSort(): boolean;
|
|
771
1606
|
columnOptionsForRow(index: number): AdsFilterButtonOption[];
|
|
772
|
-
togglePanel(): void;
|
|
773
|
-
resolvedButtonVariant(): AdsButtonVariant;
|
|
774
|
-
resolvedButtonColor(): AdsButtonColor;
|
|
775
|
-
resolvedIconGapValue(): string;
|
|
776
|
-
closePanel(): void;
|
|
777
1607
|
onAddFilterClick(): void;
|
|
778
1608
|
onAddSortClick(): void;
|
|
779
1609
|
onRemoveFilterClick(index: number): void;
|
|
@@ -794,19 +1624,324 @@ declare class FilterButtonComponent {
|
|
|
794
1624
|
private findSortColumnOption;
|
|
795
1625
|
private isValidDateValue;
|
|
796
1626
|
hasDateError(index: number): boolean;
|
|
797
|
-
|
|
798
|
-
static
|
|
799
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterButtonComponent, "ads-filter-button", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; "isSignal": true; }; "showButtonIcon": { "alias": "showButtonIcon"; "required": false; "isSignal": true; }; "buttonVariant": { "alias": "buttonVariant"; "required": false; "isSignal": true; }; "buttonColor": { "alias": "buttonColor"; "required": false; "isSignal": true; }; "buttonOpenVariant": { "alias": "buttonOpenVariant"; "required": false; "isSignal": true; }; "buttonOpenColor": { "alias": "buttonOpenColor"; "required": false; "isSignal": true; }; "buttonDisabled": { "alias": "buttonDisabled"; "required": false; "isSignal": true; }; "panelTitle": { "alias": "panelTitle"; "required": false; "isSignal": true; }; "addFilterLabel": { "alias": "addFilterLabel"; "required": false; "isSignal": true; }; "resetLabel": { "alias": "resetLabel"; "required": false; "isSignal": true; }; "applyLabel": { "alias": "applyLabel"; "required": false; "isSignal": true; }; "columnOptions": { "alias": "columnOptions"; "required": false; "isSignal": true; }; "columnPlaceholder": { "alias": "columnPlaceholder"; "required": false; "isSignal": true; }; "valuePlaceholder": { "alias": "valuePlaceholder"; "required": false; "isSignal": true; }; "noFiltersText": { "alias": "noFiltersText"; "required": false; "isSignal": true; }; "sortableColumnOptions": { "alias": "sortableColumnOptions"; "required": false; "isSignal": true; }; "noSortText": { "alias": "noSortText"; "required": false; "isSignal": true; }; }, { "addFilter": "addFilter"; "resetFilters": "resetFilters"; "applyFilters": "applyFilters"; "addSort": "addSort"; "resetSorts": "resetSorts"; "applySorts": "applySorts"; "openChange": "openChange"; }, never, ["[filter-button-extra]"], true, never>;
|
|
1627
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterPanelComponent, never>;
|
|
1628
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterPanelComponent, "ads-filter-panel", never, { "panelTitle": { "alias": "panelTitle"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "addFilterLabel": { "alias": "addFilterLabel"; "required": false; "isSignal": true; }; "resetLabel": { "alias": "resetLabel"; "required": false; "isSignal": true; }; "applyLabel": { "alias": "applyLabel"; "required": false; "isSignal": true; }; "columnOptions": { "alias": "columnOptions"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "columnPlaceholder": { "alias": "columnPlaceholder"; "required": false; "isSignal": true; }; "valuePlaceholder": { "alias": "valuePlaceholder"; "required": false; "isSignal": true; }; "noFiltersText": { "alias": "noFiltersText"; "required": false; "isSignal": true; }; "sortableColumnOptions": { "alias": "sortableColumnOptions"; "required": false; "isSignal": true; }; "noSortText": { "alias": "noSortText"; "required": false; "isSignal": true; }; }, { "addFilter": "addFilter"; "resetFilters": "resetFilters"; "applyFilters": "applyFilters"; "addSort": "addSort"; "resetSorts": "resetSorts"; "applySorts": "applySorts"; "closed": "closed"; }, never, never, true, never>;
|
|
800
1629
|
}
|
|
801
1630
|
|
|
802
|
-
|
|
1631
|
+
/**
|
|
1632
|
+
* Figma → Filters → Filter Bar: 2 to 4 fixed filters above a report or list,
|
|
1633
|
+
* with Reset and Apply filters. Put the fields (selectors, inputs or date
|
|
1634
|
+
* pickers with a label, size md) inside the tag; they share the width.
|
|
1635
|
+
*/
|
|
1636
|
+
declare class FilterBarComponent {
|
|
1637
|
+
/** Figma `Show more filters`: a Text button with the filter icon before Reset. */
|
|
1638
|
+
showMoreFilters: _angular_core.InputSignal<boolean>;
|
|
1639
|
+
/** Label of the More filters button. */
|
|
1640
|
+
moreFiltersLabel: _angular_core.InputSignal<string>;
|
|
1641
|
+
/** Label of the Secondary button. */
|
|
1642
|
+
resetLabel: _angular_core.InputSignal<string>;
|
|
1643
|
+
/** Label of the Primary button. */
|
|
1644
|
+
applyLabel: _angular_core.InputSignal<string>;
|
|
1645
|
+
/** Disables Apply, such as while nothing changed. */
|
|
1646
|
+
applyDisabled: _angular_core.InputSignal<boolean>;
|
|
1647
|
+
/** Accessible name of the bar, such as “Report filters”. */
|
|
1648
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
1649
|
+
/** Emits on More filters. */
|
|
1650
|
+
moreFilters: _angular_core.OutputEmitterRef<void>;
|
|
1651
|
+
/** Emits on Reset. */
|
|
1652
|
+
reset: _angular_core.OutputEmitterRef<void>;
|
|
1653
|
+
/** Emits on Apply filters. */
|
|
1654
|
+
apply: _angular_core.OutputEmitterRef<void>;
|
|
1655
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterBarComponent, never>;
|
|
1656
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterBarComponent, "ads-filter-bar", never, { "showMoreFilters": { "alias": "showMoreFilters"; "required": false; "isSignal": true; }; "moreFiltersLabel": { "alias": "moreFiltersLabel"; "required": false; "isSignal": true; }; "resetLabel": { "alias": "resetLabel"; "required": false; "isSignal": true; }; "applyLabel": { "alias": "applyLabel"; "required": false; "isSignal": true; }; "applyDisabled": { "alias": "applyDisabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "moreFilters": "moreFilters"; "reset": "reset"; "apply": "apply"; }, never, ["*"], true, never>;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Figma → Filters → Toolbar: the bar above a list. Quick filters or views go
|
|
1661
|
+
* at the start (`[ads-toolbar-start]`); search, Period Select and the Filter
|
|
1662
|
+
* Button at the end (`[ads-toolbar-end]`). Use md (36 px) elements.
|
|
1663
|
+
*/
|
|
1664
|
+
declare class ToolbarComponent {
|
|
1665
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
1666
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToolbarComponent, "ads-toolbar", never, {}, {}, never, ["[ads-toolbar-start]", "[ads-toolbar-end]"], true, never>;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* Figma → Filters → Filter Chip: a status with its count, such as “Ready 12”,
|
|
1671
|
+
* that filters a list. Usually inside an `ads-filter-chip-group`, which keeps
|
|
1672
|
+
* one chip selected. On its own, a click toggles `selected`.
|
|
1673
|
+
*/
|
|
1674
|
+
declare class FilterChipComponent {
|
|
1675
|
+
/** Figma `Label`. */
|
|
1676
|
+
label: _angular_core.InputSignal<string>;
|
|
1677
|
+
/** Figma `Count`. Empty or `null` hides the counter (Figma `Show count` off). */
|
|
1678
|
+
count: _angular_core.InputSignal<string | number>;
|
|
1679
|
+
/** Figma `State=Selected`. Two-way: `[(selected)]`. */
|
|
1680
|
+
selected: _angular_core.ModelSignal<boolean>;
|
|
1681
|
+
/** Figma `State=Disabled`. */
|
|
1682
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
1683
|
+
/** Figma `Size`: 32 px (sm) or 36 px (md) high. */
|
|
1684
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
1685
|
+
/** @internal Set by `ads-filter-chip-group`: the chip is a radio and the group selects it. */
|
|
1686
|
+
radio: _angular_core.InputSignal<boolean>;
|
|
1687
|
+
/** @internal Set by `ads-filter-chip-group` for arrow-key navigation. */
|
|
1688
|
+
chipTabindex: _angular_core.InputSignal<number>;
|
|
1689
|
+
/** @internal */
|
|
1690
|
+
readonly focusVisible: _angular_core.WritableSignal<boolean>;
|
|
1691
|
+
/** @internal */
|
|
1692
|
+
readonly classes: _angular_core.Signal<string>;
|
|
1693
|
+
/** @internal Figma: Neutral, Brand subtle on focus, Brand strong when selected. */
|
|
1694
|
+
readonly counterTone: _angular_core.Signal<AdsBadgeTone>;
|
|
1695
|
+
/** @internal */
|
|
1696
|
+
readonly counterEmphasis: _angular_core.Signal<AdsBadgeEmphasis>;
|
|
1697
|
+
/** @internal */
|
|
1698
|
+
onClick(): void;
|
|
1699
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterChipComponent, never>;
|
|
1700
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterChipComponent, "ads-filter-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "radio": { "alias": "radio"; "required": false; "isSignal": true; }; "chipTabindex": { "alias": "chipTabindex"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; }, never, never, true, never>;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Figma → Filters → Filter Chip Group: quick filters of a list, such as
|
|
1705
|
+
* “All 12 · Ready 4 · Needs review 3”. One chip is always selected. Works
|
|
1706
|
+
* with `[(value)]`, `[(ngModel)]` and reactive forms.
|
|
1707
|
+
*/
|
|
1708
|
+
declare class FilterChipGroupComponent<T = unknown> implements ControlValueAccessor {
|
|
1709
|
+
private host;
|
|
1710
|
+
/** The chips (Figma `Chips` 2–6); `value` of each one is compared with `===`. */
|
|
1711
|
+
options: _angular_core.InputSignal<AdsFilterChipOption<T>[]>;
|
|
1712
|
+
/** Selected value. Two-way bindable with `[(value)]`. */
|
|
1713
|
+
value: _angular_core.ModelSignal<T>;
|
|
1714
|
+
/** Figma `Size`: 32 px (sm) or 36 px (md) high. */
|
|
1715
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
1716
|
+
/** Accessible name of the group, such as “Filter by status”. */
|
|
1717
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
1718
|
+
/** Disables every chip. */
|
|
1719
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
1720
|
+
private cvaDisabled;
|
|
1721
|
+
private onChange;
|
|
1722
|
+
/** @internal */
|
|
1723
|
+
onTouched: () => void;
|
|
1724
|
+
private isDisabled;
|
|
1725
|
+
/** @internal */
|
|
1726
|
+
isOptionDisabled(option: AdsFilterChipOption<T>): boolean;
|
|
1727
|
+
/** @internal Only the selected chip (or the first enabled one) is in the tab order. */
|
|
1728
|
+
tabindexFor(index: number): number;
|
|
1729
|
+
/** @internal Selecting the selected chip again does nothing: one chip stays selected. */
|
|
1730
|
+
select(option: AdsFilterChipOption<T>): void;
|
|
1731
|
+
/** @internal Arrow keys move to the previous or next enabled chip and select it. */
|
|
1732
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1733
|
+
writeValue(value: T | null): void;
|
|
1734
|
+
registerOnChange(fn: (value: T | null) => void): void;
|
|
1735
|
+
registerOnTouched(fn: () => void): void;
|
|
1736
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1737
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterChipGroupComponent<any>, never>;
|
|
1738
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterChipGroupComponent<any>, "ads-filter-chip-group", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Figma → Filters → Active Filters: the filters applied to a list, as
|
|
1743
|
+
* removable Tags, with “Clear all”. Show it under the Toolbar or the Filter
|
|
1744
|
+
* Bar. It shows nothing when there are no filters.
|
|
1745
|
+
*/
|
|
1746
|
+
declare class ActiveFiltersComponent {
|
|
1747
|
+
/** The applied filters (Figma `Items`), one Tag each. */
|
|
1748
|
+
filters: _angular_core.InputSignal<AdsActiveFilter[]>;
|
|
1749
|
+
/** Text before the tags. Empty hides it. */
|
|
1750
|
+
label: _angular_core.InputSignal<string>;
|
|
1751
|
+
/** Label of the button that removes every filter. Empty hides it. */
|
|
1752
|
+
clearLabel: _angular_core.InputSignal<string>;
|
|
1753
|
+
/** Emits the filter whose Tag was removed. */
|
|
1754
|
+
removed: _angular_core.OutputEmitterRef<AdsActiveFilter>;
|
|
1755
|
+
/** Emits on “Clear all”. */
|
|
1756
|
+
cleared: _angular_core.OutputEmitterRef<void>;
|
|
1757
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActiveFiltersComponent, never>;
|
|
1758
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActiveFiltersComponent, "ads-active-filters", never, { "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; }, { "removed": "removed"; "cleared": "cleared"; }, never, never, true, never>;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Figma → Filters → Tab Bar: a row of Tabs that switch between views of a
|
|
1763
|
+
* table (`contained`) or sections of a page and status filters
|
|
1764
|
+
* (`underline`). One tab is selected; show its content yourself.
|
|
1765
|
+
*
|
|
1766
|
+
* `ads-tabs` is the deprecated 1.x name; removed in 3.0.0.
|
|
1767
|
+
*/
|
|
1768
|
+
declare class TabBarComponent {
|
|
1769
|
+
private readonly host;
|
|
1770
|
+
/** The tabs (Figma `Tabs` 2–6): label, optional icon, count and disabled. */
|
|
803
1771
|
tabs: _angular_core.InputSignal<Tab[]>;
|
|
804
|
-
|
|
1772
|
+
/** Id of the selected tab. Two-way: `[(selectedTabId)]`. */
|
|
1773
|
+
selectedTabId: _angular_core.ModelSignal<string>;
|
|
1774
|
+
/** Figma `Type`: `contained` for table views, `underline` for page sections and status filters. */
|
|
1775
|
+
type: _angular_core.InputSignal<AdsTabType>;
|
|
1776
|
+
/** Figma `Size`: contained 36 or 44 px, underline 32 or 36 px high. */
|
|
1777
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
1778
|
+
/** Accessible name of the tab list, such as “Claim views”. */
|
|
1779
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
1780
|
+
/** @deprecated Use `type`. Both 1.x variants now render as `contained`. Removed in 3.0.0. */
|
|
805
1781
|
variant: _angular_core.InputSignal<"primary" | "secondary">;
|
|
1782
|
+
/** Emits the id of the tab the user selects. */
|
|
806
1783
|
tabChanged: _angular_core.OutputEmitterRef<string>;
|
|
1784
|
+
/** @internal */
|
|
1785
|
+
readonly barClasses: _angular_core.Signal<string>;
|
|
1786
|
+
/** @internal */
|
|
1787
|
+
tabClasses(tab: Tab): string;
|
|
1788
|
+
/** @internal Figma: white on the selected contained tab, gray elsewhere. */
|
|
1789
|
+
countClasses(tab: Tab): string;
|
|
1790
|
+
/** @internal Only the selected tab (or the first enabled one) is in the tab order. */
|
|
1791
|
+
tabindexFor(index: number): number;
|
|
1792
|
+
/** Selects a tab and emits `tabChanged`. */
|
|
807
1793
|
selectTab(tabId: string): void;
|
|
808
|
-
|
|
809
|
-
|
|
1794
|
+
/** @internal Arrow keys, Home and End move to an enabled tab and select it. */
|
|
1795
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1796
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabBarComponent, never>;
|
|
1797
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabBarComponent, "ads-tab-bar, ads-tabs", never, { "tabs": { "alias": "tabs"; "required": true; "isSignal": true; }; "selectedTabId": { "alias": "selectedTabId"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "selectedTabId": "selectedTabIdChange"; "tabChanged": "tabChanged"; }, never, never, true, never>;
|
|
1798
|
+
}
|
|
1799
|
+
/** @deprecated Use `TabBarComponent` (`<ads-tab-bar>`). Removed in 3.0.0. */
|
|
1800
|
+
declare const TabsComponent: typeof TabBarComponent;
|
|
1801
|
+
/** @deprecated Use `TabBarComponent`. Removed in 3.0.0. */
|
|
1802
|
+
type TabsComponent = TabBarComponent;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Top bar of a page (Figma → Navigation → navigation_bar, Property 1=primary
|
|
1806
|
+
* and Opened): menu button, page or practice title with a subtitle, optional
|
|
1807
|
+
* projected content, and the user's profile with its menu.
|
|
1808
|
+
*/
|
|
1809
|
+
declare class NavigationBarComponent {
|
|
1810
|
+
private readonly host;
|
|
1811
|
+
/** Main text, such as the practice or page name (Heading / H1). */
|
|
1812
|
+
title: _angular_core.InputSignal<string>;
|
|
1813
|
+
/** Text under the title, such as the user's role (Body / Large, tertiary). */
|
|
1814
|
+
subtitle: _angular_core.InputSignal<string>;
|
|
1815
|
+
/** Shows the menu button that opens or collapses the side menu. */
|
|
1816
|
+
showMenuButton: _angular_core.InputSignal<boolean>;
|
|
1817
|
+
/** Accessible name of the menu button. */
|
|
1818
|
+
menuButtonLabel: _angular_core.InputSignal<string>;
|
|
1819
|
+
/** User shown in the profile menu. The profile is hidden without a name or avatar. */
|
|
1820
|
+
userName: _angular_core.InputSignal<string>;
|
|
1821
|
+
/** Role shown under the user name in the profile menu. */
|
|
1822
|
+
userRole: _angular_core.InputSignal<string>;
|
|
1823
|
+
/** Email shown in the profile menu. */
|
|
1824
|
+
userEmail: _angular_core.InputSignal<string>;
|
|
1825
|
+
/** Avatar image. Without it the avatar shows a user icon. */
|
|
1826
|
+
avatarSrc: _angular_core.InputSignal<string>;
|
|
1827
|
+
/** Actions of the profile menu, such as Change password and Log out (`danger`). */
|
|
1828
|
+
profileMenuItems: _angular_core.InputSignal<AdsNavigationBarMenuItem[]>;
|
|
1829
|
+
/** Whether the profile menu is open. Two-way: `[(profileMenuOpen)]`. */
|
|
1830
|
+
profileMenuOpen: _angular_core.ModelSignal<boolean>;
|
|
1831
|
+
/** Emits when the menu button is clicked. */
|
|
1832
|
+
menuClick: _angular_core.OutputEmitterRef<void>;
|
|
1833
|
+
/** Emits the `id` of the chosen profile menu item; the menu then closes. */
|
|
1834
|
+
profileMenuItemSelected: _angular_core.OutputEmitterRef<string>;
|
|
1835
|
+
/** @internal */
|
|
1836
|
+
profileButtonLabel(): string;
|
|
1837
|
+
/** @internal */
|
|
1838
|
+
selectItem(id: string): void;
|
|
1839
|
+
/** @internal Closes the profile menu on a click outside the component. */
|
|
1840
|
+
onDocumentClick(event: MouseEvent): void;
|
|
1841
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationBarComponent, never>;
|
|
1842
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavigationBarComponent, "ads-navigation-bar", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "showMenuButton": { "alias": "showMenuButton"; "required": false; "isSignal": true; }; "menuButtonLabel": { "alias": "menuButtonLabel"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "userRole": { "alias": "userRole"; "required": false; "isSignal": true; }; "userEmail": { "alias": "userEmail"; "required": false; "isSignal": true; }; "avatarSrc": { "alias": "avatarSrc"; "required": false; "isSignal": true; }; "profileMenuItems": { "alias": "profileMenuItems"; "required": false; "isSignal": true; }; "profileMenuOpen": { "alias": "profileMenuOpen"; "required": false; "isSignal": true; }; }, { "profileMenuOpen": "profileMenuOpenChange"; "menuClick": "menuClick"; "profileMenuItemSelected": "profileMenuItemSelected"; }, never, ["*"], true, never>;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Figma → Cards → Metrics_card: one KPI with its label, value and, optionally,
|
|
1847
|
+
* how it changed (Trend Badge) and an info tooltip.
|
|
1848
|
+
*/
|
|
1849
|
+
declare class MetricsCardComponent {
|
|
1850
|
+
/** What the number measures, such as "Open Claims" (Body / Large). */
|
|
1851
|
+
label: _angular_core.InputSignal<string>;
|
|
1852
|
+
/** The number, already formatted, such as "1,230". */
|
|
1853
|
+
value: _angular_core.InputSignal<string | number>;
|
|
1854
|
+
/** The change shown in a Trend Badge, such as "+235". Hidden when empty or `stacked`. */
|
|
1855
|
+
trend: _angular_core.InputSignal<string>;
|
|
1856
|
+
/** Direction of the change: `up` green, `down` red, `flat` grey. */
|
|
1857
|
+
trendDirection: _angular_core.InputSignal<AdsTrendDirection>;
|
|
1858
|
+
/** Explanation shown in a tooltip on the info icon. The icon is hidden when empty. */
|
|
1859
|
+
info: _angular_core.InputSignal<string>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Figma `Property 1`: `default` (value and trend in a row, Heading / H4),
|
|
1862
|
+
* `stacked` (Variant4: value only) or `mobile` (value Heading / H1, no info icon).
|
|
1863
|
+
*/
|
|
1864
|
+
variant: _angular_core.InputSignal<AdsMetricsCardVariant>;
|
|
1865
|
+
/** @internal */
|
|
1866
|
+
readonly valueRowClasses: _angular_core.Signal<"flex flex-col" | "flex flex-wrap items-center gap-3">;
|
|
1867
|
+
/** @internal */
|
|
1868
|
+
readonly valueClasses: _angular_core.Signal<string>;
|
|
1869
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetricsCardComponent, never>;
|
|
1870
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MetricsCardComponent, "ads-metrics-card", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "trend": { "alias": "trend"; "required": false; "isSignal": true; }; "trendDirection": { "alias": "trendDirection"; "required": false; "isSignal": true; }; "info": { "alias": "info"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Figma → Cards → High_risk_metric: a follow-up metric with its value in a
|
|
1875
|
+
* highlighted box. `default` shows one value and its trend with a button that
|
|
1876
|
+
* opens the detail; `performance` shows a person, a badge and several results.
|
|
1877
|
+
*/
|
|
1878
|
+
declare class HighRiskMetricComponent {
|
|
1879
|
+
/** Figma `Property 1`: `default` (one value) or `performance` (a person's results). */
|
|
1880
|
+
variant: _angular_core.InputSignal<AdsHighRiskMetricVariant>;
|
|
1881
|
+
/** Title: the metric ("Claims Over 90 Days") or, in `performance`, the person. */
|
|
1882
|
+
label: _angular_core.InputSignal<string>;
|
|
1883
|
+
/** `default`: the value in the highlighted box. */
|
|
1884
|
+
value: _angular_core.InputSignal<string | number>;
|
|
1885
|
+
/** `default`: the change shown in a Trend Badge. Hidden when empty. */
|
|
1886
|
+
trend: _angular_core.InputSignal<string>;
|
|
1887
|
+
/** `default`: direction of the change. */
|
|
1888
|
+
trendDirection: _angular_core.InputSignal<AdsTrendDirection>;
|
|
1889
|
+
/** `default`: shows the open button that emits `opened`. */
|
|
1890
|
+
showOpen: _angular_core.InputSignal<boolean>;
|
|
1891
|
+
/** `default`: accessible name of the open button. */
|
|
1892
|
+
openLabel: _angular_core.InputSignal<string>;
|
|
1893
|
+
/** `performance`: Badge next to the name, such as "Top performer". */
|
|
1894
|
+
badge: _angular_core.InputSignal<string>;
|
|
1895
|
+
/** `performance`: tone of the Badge. */
|
|
1896
|
+
badgeTone: _angular_core.InputSignal<AdsBadgeTone>;
|
|
1897
|
+
/** `performance`: results in the highlighted box, one per line. */
|
|
1898
|
+
details: _angular_core.InputSignal<string[]>;
|
|
1899
|
+
/** `performance`: explanation in a tooltip on the info icon. Hidden when empty. */
|
|
1900
|
+
info: _angular_core.InputSignal<string>;
|
|
1901
|
+
/** Emits when the open button is clicked (`default`). */
|
|
1902
|
+
opened: _angular_core.OutputEmitterRef<void>;
|
|
1903
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HighRiskMetricComponent, never>;
|
|
1904
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HighRiskMetricComponent, "ads-high-risk-metric", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "trend": { "alias": "trend"; "required": false; "isSignal": true; }; "trendDirection": { "alias": "trendDirection"; "required": false; "isSignal": true; }; "showOpen": { "alias": "showOpen"; "required": false; "isSignal": true; }; "openLabel": { "alias": "openLabel"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeTone": { "alias": "badgeTone"; "required": false; "isSignal": true; }; "details": { "alias": "details"; "required": false; "isSignal": true; }; "info": { "alias": "info"; "required": false; "isSignal": true; }; }, { "opened": "opened"; }, never, never, true, never>;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Figma → Cards → Report_cards: a saved report (with its status, last run and
|
|
1909
|
+
* export and edit actions) or a report template (with its category and a
|
|
1910
|
+
* "Use Template" button).
|
|
1911
|
+
*/
|
|
1912
|
+
declare class ReportCardComponent {
|
|
1913
|
+
/** Figma `Property 1`: `saved` (a report of the user) or `template`. */
|
|
1914
|
+
variant: _angular_core.InputSignal<AdsReportCardVariant>;
|
|
1915
|
+
/** Report name (Body / Large medium). */
|
|
1916
|
+
title: _angular_core.InputSignal<string>;
|
|
1917
|
+
/** One line about what the report shows. */
|
|
1918
|
+
description: _angular_core.InputSignal<string>;
|
|
1919
|
+
/** `saved`: status Badge, such as "Active". Hidden when empty. */
|
|
1920
|
+
status: _angular_core.InputSignal<string>;
|
|
1921
|
+
/** `saved`: tone of the status Badge. */
|
|
1922
|
+
statusTone: _angular_core.InputSignal<AdsBadgeTone>;
|
|
1923
|
+
/** `saved`: date of the last run, already formatted. */
|
|
1924
|
+
lastRun: _angular_core.InputSignal<string>;
|
|
1925
|
+
/** How often it runs, such as "Weekly". */
|
|
1926
|
+
frequency: _angular_core.InputSignal<string>;
|
|
1927
|
+
/** File format, such as "PDF". */
|
|
1928
|
+
format: _angular_core.InputSignal<string>;
|
|
1929
|
+
/** `template`: category Badge, such as "Performance". */
|
|
1930
|
+
category: _angular_core.InputSignal<string>;
|
|
1931
|
+
/** `saved`: accessible name of the export button. */
|
|
1932
|
+
exportLabel: _angular_core.InputSignal<string>;
|
|
1933
|
+
/** `saved`: accessible name of the edit button. */
|
|
1934
|
+
editLabel: _angular_core.InputSignal<string>;
|
|
1935
|
+
/** `template`: label of the button. */
|
|
1936
|
+
useTemplateLabel: _angular_core.InputSignal<string>;
|
|
1937
|
+
/** `saved`: the export button was clicked. */
|
|
1938
|
+
exported: _angular_core.OutputEmitterRef<void>;
|
|
1939
|
+
/** `saved`: the edit button was clicked. */
|
|
1940
|
+
edited: _angular_core.OutputEmitterRef<void>;
|
|
1941
|
+
/** `template`: the "Use Template" button was clicked. */
|
|
1942
|
+
templateUsed: _angular_core.OutputEmitterRef<void>;
|
|
1943
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReportCardComponent, never>;
|
|
1944
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReportCardComponent, "ads-report-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusTone": { "alias": "statusTone"; "required": false; "isSignal": true; }; "lastRun": { "alias": "lastRun"; "required": false; "isSignal": true; }; "frequency": { "alias": "frequency"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "category": { "alias": "category"; "required": false; "isSignal": true; }; "exportLabel": { "alias": "exportLabel"; "required": false; "isSignal": true; }; "editLabel": { "alias": "editLabel"; "required": false; "isSignal": true; }; "useTemplateLabel": { "alias": "useTemplateLabel"; "required": false; "isSignal": true; }; }, { "exported": "exported"; "edited": "edited"; "templateUsed": "templateUsed"; }, never, never, true, never>;
|
|
810
1945
|
}
|
|
811
1946
|
|
|
812
1947
|
declare class SideNavComponent {
|
|
@@ -836,12 +1971,14 @@ declare class SideNavComponent {
|
|
|
836
1971
|
options: AdsSideNavOption[];
|
|
837
1972
|
}[]>;
|
|
838
1973
|
readonly navClasses: _angular_core.Signal<string>;
|
|
839
|
-
readonly footerContainerClasses: _angular_core.Signal<"h-10 px-3" | "h-
|
|
840
|
-
readonly footerButtonClasses: _angular_core.Signal<
|
|
1974
|
+
readonly footerContainerClasses: _angular_core.Signal<"h-10 px-3" | "h-11 px-4 mb-4">;
|
|
1975
|
+
readonly footerButtonClasses: _angular_core.Signal<string>;
|
|
841
1976
|
onOptionClick(option: AdsSideNavOption): void;
|
|
842
1977
|
onChildClick(childUrl: string): void;
|
|
843
1978
|
toggleMenu(menuName: string): void;
|
|
844
1979
|
isOptionActive(option: AdsSideNavOption): boolean;
|
|
1980
|
+
/** @internal Figma nav_button icon: primary when selected, disabled, else inverse. */
|
|
1981
|
+
iconColor(option: AdsSideNavOption): string;
|
|
845
1982
|
childListClasses(): string;
|
|
846
1983
|
isPathActive(path: string): boolean;
|
|
847
1984
|
hasBadge(option: AdsSideNavOption): boolean;
|
|
@@ -854,6 +1991,11 @@ declare class SideNavComponent {
|
|
|
854
1991
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SideNavComponent, "ads-side-nav", never, { "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "activePath": { "alias": "activePath"; "required": false; "isSignal": true; }; "logoSrc": { "alias": "logoSrc"; "required": false; "isSignal": true; }; "footerLogoSrc": { "alias": "footerLogoSrc"; "required": false; "isSignal": true; }; "collapsedLogoSrc": { "alias": "collapsedLogoSrc"; "required": false; "isSignal": true; }; "footerButton": { "alias": "footerButton"; "required": false; "isSignal": true; }; "footerButtons": { "alias": "footerButtons"; "required": false; "isSignal": true; }; "logoAlt": { "alias": "logoAlt"; "required": false; "isSignal": true; }; "sections": { "alias": "sections"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "copyrightText": { "alias": "copyrightText"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; "childSelected": "childSelected"; "activePathChange": "activePathChange"; }, never, never, true, never>;
|
|
855
1992
|
}
|
|
856
1993
|
|
|
1994
|
+
/**
|
|
1995
|
+
* Figma → Inputs & Dropdowns → Dropdown Menu, Type=Single. The closed
|
|
1996
|
+
* field is Input Field Type=Select; the open panel lists Menu Items of type
|
|
1997
|
+
* Option. Styles live in `styles/selectors.css`.
|
|
1998
|
+
*/
|
|
857
1999
|
declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
858
2000
|
label: _angular_core.InputSignal<string>;
|
|
859
2001
|
placeholder: _angular_core.InputSignal<string>;
|
|
@@ -865,7 +2007,12 @@ declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
|
865
2007
|
asyncOptions: _angular_core.InputSignal<AdsSingleSelectorAsyncOptions>;
|
|
866
2008
|
value: _angular_core.InputSignal<AdsSingleSelectorValue>;
|
|
867
2009
|
errorMessage: _angular_core.InputSignal<string>;
|
|
868
|
-
labelIconName: _angular_core.InputSignal<"search" | "
|
|
2010
|
+
labelIconName: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
2011
|
+
/** Figma `Size`: field height 32 / 36 / 44 / 48 px. sm uses sm menu items, the rest md. */
|
|
2012
|
+
size: _angular_core.InputSignal<AdsFieldSize>;
|
|
2013
|
+
/** Helper text under the field; `errorMessage` replaces it in the error state. */
|
|
2014
|
+
helper: _angular_core.InputSignal<string>;
|
|
2015
|
+
readonly selectId: string;
|
|
869
2016
|
onLabelButtonClick: _angular_core.OutputEmitterRef<void>;
|
|
870
2017
|
searchChange: _angular_core.OutputEmitterRef<string>;
|
|
871
2018
|
valueChange: _angular_core.OutputEmitterRef<AdsSingleSelectorValue>;
|
|
@@ -881,6 +2028,9 @@ declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
|
881
2028
|
readonly filterOption: NzFilterOptionType;
|
|
882
2029
|
constructor();
|
|
883
2030
|
ngOnDestroy(): void;
|
|
2031
|
+
readonly selectClass: _angular_core.Signal<string>;
|
|
2032
|
+
/** ng-zorro adds these to the overlay pane; it takes an array, not a spaced string. */
|
|
2033
|
+
readonly dropdownClass: _angular_core.Signal<string[]>;
|
|
884
2034
|
isDisabled(): boolean;
|
|
885
2035
|
onSelectionChange(value: AdsSingleSelectorValue | null): void;
|
|
886
2036
|
onSearch(value: string): void;
|
|
@@ -901,9 +2051,14 @@ declare class SingleSelectorComponent implements ControlValueAccessor {
|
|
|
901
2051
|
children: AdsSingleSelectorOption[];
|
|
902
2052
|
};
|
|
903
2053
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SingleSelectorComponent, never>;
|
|
904
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SingleSelectorComponent, "ads-single-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "serverSearch": { "alias": "serverSearch"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "labelIconName": { "alias": "labelIconName"; "required": false; "isSignal": true; }; }, { "onLabelButtonClick": "onLabelButtonClick"; "searchChange": "searchChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
2054
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SingleSelectorComponent, "ads-single-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "serverSearch": { "alias": "serverSearch"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "labelIconName": { "alias": "labelIconName"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; }, { "onLabelButtonClick": "onLabelButtonClick"; "searchChange": "searchChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
905
2055
|
}
|
|
906
2056
|
|
|
2057
|
+
/**
|
|
2058
|
+
* Figma → Inputs & Dropdowns → Dropdown Menu, Type=Multiple. The closed
|
|
2059
|
+
* field is Input Field Type=Select; the open panel lists Menu Items of type
|
|
2060
|
+
* Checkbox. Styles live in `styles/selectors.css`.
|
|
2061
|
+
*/
|
|
907
2062
|
declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestroy {
|
|
908
2063
|
label: _angular_core.InputSignal<string>;
|
|
909
2064
|
placeholder: _angular_core.InputSignal<string>;
|
|
@@ -916,7 +2071,12 @@ declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestr
|
|
|
916
2071
|
itemName: _angular_core.InputSignal<string>;
|
|
917
2072
|
pluralItemName: _angular_core.InputSignal<string>;
|
|
918
2073
|
errorMessage: _angular_core.InputSignal<string>;
|
|
919
|
-
labelIconName: _angular_core.InputSignal<"search" | "
|
|
2074
|
+
labelIconName: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
2075
|
+
/** Figma `Size`: field height 32 / 36 / 44 / 48 px. sm uses sm menu items, the rest md. */
|
|
2076
|
+
size: _angular_core.InputSignal<AdsFieldSize>;
|
|
2077
|
+
/** Helper text under the field; `errorMessage` replaces it in the error state. */
|
|
2078
|
+
helper: _angular_core.InputSignal<string>;
|
|
2079
|
+
readonly selectId: string;
|
|
920
2080
|
onLabelButtonClick: _angular_core.OutputEmitterRef<void>;
|
|
921
2081
|
valueChange: _angular_core.OutputEmitterRef<AdsMultipleSelectorValue[]>;
|
|
922
2082
|
private cvaMode;
|
|
@@ -932,6 +2092,9 @@ declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestr
|
|
|
932
2092
|
readonly filterOption: NzFilterOptionType;
|
|
933
2093
|
constructor();
|
|
934
2094
|
ngOnDestroy(): void;
|
|
2095
|
+
readonly selectClass: _angular_core.Signal<string>;
|
|
2096
|
+
/** ng-zorro adds these to the overlay pane; it takes an array, not a spaced string. */
|
|
2097
|
+
readonly dropdownClass: _angular_core.Signal<string[]>;
|
|
935
2098
|
isDisabled(): boolean;
|
|
936
2099
|
isLoading(): boolean;
|
|
937
2100
|
onSelectionChange(values: AdsMultipleSelectorValue[]): void;
|
|
@@ -954,146 +2117,457 @@ declare class MultipleSelectorComponent implements ControlValueAccessor, OnDestr
|
|
|
954
2117
|
children: AdsMultipleSelectorOption[];
|
|
955
2118
|
};
|
|
956
2119
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultipleSelectorComponent, never>;
|
|
957
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultipleSelectorComponent, "ads-multiple-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "itemName": { "alias": "itemName"; "required": false; "isSignal": true; }; "pluralItemName": { "alias": "pluralItemName"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "labelIconName": { "alias": "labelIconName"; "required": false; "isSignal": true; }; }, { "onLabelButtonClick": "onLabelButtonClick"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
2120
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultipleSelectorComponent, "ads-multiple-selector", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "asyncOptions": { "alias": "asyncOptions"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "itemName": { "alias": "itemName"; "required": false; "isSignal": true; }; "pluralItemName": { "alias": "pluralItemName"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "labelIconName": { "alias": "labelIconName"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; }, { "onLabelButtonClick": "onLabelButtonClick"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Figma → Modals → Overlay: the dark layer behind a modal. It fills the
|
|
2125
|
+
* window, centers its content and closes on Escape or on a click outside the
|
|
2126
|
+
* content. The modals of the library already use it; use it directly only to
|
|
2127
|
+
* build a new kind of modal.
|
|
2128
|
+
*/
|
|
2129
|
+
declare class OverlayComponent {
|
|
2130
|
+
/** Shows the overlay and its content. */
|
|
2131
|
+
open: _angular_core.InputSignal<boolean>;
|
|
2132
|
+
/** A click outside the content emits `closed`. */
|
|
2133
|
+
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
2134
|
+
/** Escape emits `closed`. */
|
|
2135
|
+
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
2136
|
+
/** Emits when the user asks to close: Escape or a click outside. The parent sets `open` to false. */
|
|
2137
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
2138
|
+
onEscapeKey(): void;
|
|
2139
|
+
/** @internal */
|
|
2140
|
+
onBackdropClick(event: MouseEvent): void;
|
|
2141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OverlayComponent, never>;
|
|
2142
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OverlayComponent, "ads-overlay", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
958
2143
|
}
|
|
959
2144
|
|
|
960
|
-
|
|
2145
|
+
/**
|
|
2146
|
+
* Figma → Modals → Modal: a window over the page, on the Overlay, with a
|
|
2147
|
+
* header (title, description, optional icon, close button), your content and
|
|
2148
|
+
* a footer with actions. Put the content inside the tag.
|
|
2149
|
+
*
|
|
2150
|
+
* `ads-main-modal` is the deprecated 1.x name; removed in 3.0.0.
|
|
2151
|
+
*/
|
|
2152
|
+
declare class ModalComponent {
|
|
2153
|
+
/** Shows the modal. The parent sets it to false on `closed`. */
|
|
961
2154
|
open: _angular_core.InputSignal<boolean>;
|
|
2155
|
+
/** Figma `Size`: 400 px (sm), 560 px (md) or 720 px (lg) wide. */
|
|
2156
|
+
size: _angular_core.InputSignal<AdsModalSize>;
|
|
2157
|
+
/** Figma `Title` (Heading / H3). */
|
|
962
2158
|
title: _angular_core.InputSignal<string>;
|
|
963
|
-
/**
|
|
2159
|
+
/** Figma `Description` (Body Base / Regular). Empty hides it (Figma `Show description` off). */
|
|
2160
|
+
description: _angular_core.InputSignal<string>;
|
|
2161
|
+
/** Figma `Header=With icon`: a 24 px icon in a 40 px tile before the title. */
|
|
2162
|
+
icon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
2163
|
+
/** Footer buttons. Figma: a Secondary action first and a Primary action last. */
|
|
2164
|
+
actions: _angular_core.InputSignal<AdsModalAction[]>;
|
|
2165
|
+
/** Where the footer buttons go. `between` (Figma) puts the last one at the end. */
|
|
2166
|
+
actionsAlign: _angular_core.InputSignal<AdsModalActionsAlign>;
|
|
2167
|
+
/** Footer buttons fill the width, side by side. */
|
|
2168
|
+
buttonsFullWidth: _angular_core.InputSignal<boolean>;
|
|
2169
|
+
/** Accessible name when there is no `title`. */
|
|
964
2170
|
ariaLabel: _angular_core.InputSignal<string>;
|
|
2171
|
+
/** Accessible name of the close button. */
|
|
965
2172
|
closeButtonLabel: _angular_core.InputSignal<string>;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
2173
|
+
/** Shows the close button in the header. */
|
|
2174
|
+
showCloseButton: _angular_core.InputSignal<boolean>;
|
|
2175
|
+
/** A click on the Overlay emits `closed`. */
|
|
969
2176
|
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
2177
|
+
/** Escape emits `closed`. */
|
|
970
2178
|
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
2179
|
+
/** @deprecated Use `description`. Removed in 3.0.0. */
|
|
2180
|
+
subtitle: _angular_core.InputSignal<string>;
|
|
2181
|
+
/** @deprecated Use `size`. When set, it is the maximum width instead. Removed in 3.0.0. */
|
|
2182
|
+
width: _angular_core.InputSignal<string>;
|
|
2183
|
+
/** Emits on the close button, Escape or a click on the Overlay. */
|
|
974
2184
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
2185
|
+
/** @internal */
|
|
2186
|
+
readonly titleId: string;
|
|
2187
|
+
/** @internal */
|
|
2188
|
+
readonly descriptionText: _angular_core.Signal<string>;
|
|
2189
|
+
/** @internal */
|
|
2190
|
+
readonly boxClasses: _angular_core.Signal<string>;
|
|
2191
|
+
/** @internal */
|
|
2192
|
+
readonly actionsClasses: _angular_core.Signal<string>;
|
|
2193
|
+
/** @internal */
|
|
2194
|
+
onActionClick(action: AdsModalAction): void;
|
|
2195
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
2196
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ads-modal, ads-main-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "actionsAlign": { "alias": "actionsAlign"; "required": false; "isSignal": true; }; "buttonsFullWidth": { "alias": "buttonsFullWidth"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["[ads-main-modal-header-extra]", "*", "[ads-modal-footer], [ads-main-modal-footer]"], true, never>;
|
|
984
2197
|
}
|
|
2198
|
+
/** @deprecated Use `ModalComponent` (`<ads-modal>`). Removed in 3.0.0. */
|
|
2199
|
+
declare const MainModalComponent: typeof ModalComponent;
|
|
2200
|
+
/** @deprecated Use `ModalComponent`. Removed in 3.0.0. */
|
|
2201
|
+
type MainModalComponent = ModalComponent;
|
|
985
2202
|
|
|
986
|
-
|
|
2203
|
+
/** Icon tile: background, icon color and icon of each tone. */
|
|
2204
|
+
type ModalTone = {
|
|
2205
|
+
tile: string;
|
|
2206
|
+
icon: string;
|
|
2207
|
+
iconName: AdsIconName;
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* Figma → Modals → Confirmation Modal: asks the user to confirm an action
|
|
2212
|
+
* before it happens, such as deleting a record. It has a tone, a title, a
|
|
2213
|
+
* message and two buttons: Cancel and the action.
|
|
2214
|
+
*
|
|
2215
|
+
* `ads-delicate-confirmation-modal` is the deprecated 1.x name; removed in 3.0.0.
|
|
2216
|
+
*/
|
|
2217
|
+
declare class ConfirmationModalComponent {
|
|
2218
|
+
/** Shows the modal. The parent sets it to false on `closed`, `cancel` or `confirm`. */
|
|
987
2219
|
open: _angular_core.InputSignal<boolean>;
|
|
988
|
-
|
|
2220
|
+
/** Figma `Tone`: `brand`, `warning`, or `danger` for actions that destroy data. */
|
|
2221
|
+
tone: _angular_core.InputSignal<AdsConfirmationTone>;
|
|
2222
|
+
/** Figma `Title` (Heading / H3): the question. */
|
|
989
2223
|
title: _angular_core.InputSignal<string>;
|
|
990
|
-
|
|
991
|
-
|
|
2224
|
+
/** Figma `Message` (Body Large / Regular): what will happen and whether it can be undone. */
|
|
2225
|
+
message: _angular_core.InputSignal<string>;
|
|
2226
|
+
/** Label of the Secondary button. */
|
|
992
2227
|
cancelText: _angular_core.InputSignal<string>;
|
|
2228
|
+
/** Label of the action button: Primary, or Danger in the `danger` tone. */
|
|
993
2229
|
confirmText: _angular_core.InputSignal<string>;
|
|
2230
|
+
/** Both buttons fill the width, side by side. */
|
|
2231
|
+
buttonsFullWidth: _angular_core.InputSignal<boolean>;
|
|
2232
|
+
/** A click on the Overlay emits `closed`. */
|
|
994
2233
|
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
2234
|
+
/** Escape emits `closed`. */
|
|
995
2235
|
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
2236
|
+
/** @deprecated Use `message`. Removed in 3.0.0. */
|
|
2237
|
+
description: _angular_core.InputSignal<string>;
|
|
2238
|
+
/** @deprecated The tone sets the icon. When set, it replaces it. Removed in 3.0.0. */
|
|
2239
|
+
iconName: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
2240
|
+
/** Emits on the close button, Escape or a click on the Overlay. */
|
|
996
2241
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
2242
|
+
/** Emits when Cancel is clicked. */
|
|
997
2243
|
cancel: _angular_core.OutputEmitterRef<void>;
|
|
2244
|
+
/** Emits when the action button is clicked. */
|
|
998
2245
|
confirm: _angular_core.OutputEmitterRef<void>;
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
2246
|
+
/** @internal */
|
|
2247
|
+
readonly titleId: string;
|
|
2248
|
+
/** @internal */
|
|
2249
|
+
readonly messageId: string;
|
|
2250
|
+
/** @internal */
|
|
2251
|
+
readonly boxClasses: string;
|
|
2252
|
+
/** @internal */
|
|
2253
|
+
readonly style: _angular_core.Signal<ModalTone>;
|
|
2254
|
+
/** @internal */
|
|
2255
|
+
readonly messageText: _angular_core.Signal<string>;
|
|
2256
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmationModalComponent, never>;
|
|
2257
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmationModalComponent, "ads-confirmation-modal, ads-delicate-confirmation-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "cancelText": { "alias": "cancelText"; "required": false; "isSignal": true; }; "confirmText": { "alias": "confirmText"; "required": false; "isSignal": true; }; "buttonsFullWidth": { "alias": "buttonsFullWidth"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "cancel": "cancel"; "confirm": "confirm"; }, never, ["*"], true, never>;
|
|
1002
2258
|
}
|
|
2259
|
+
/** @deprecated Use `ConfirmationModalComponent` (`<ads-confirmation-modal>`). Removed in 3.0.0. */
|
|
2260
|
+
declare const DelicateConfirmationModalComponent: typeof ConfirmationModalComponent;
|
|
2261
|
+
/** @deprecated Use `ConfirmationModalComponent`. Removed in 3.0.0. */
|
|
2262
|
+
type DelicateConfirmationModalComponent = ConfirmationModalComponent;
|
|
1003
2263
|
|
|
1004
|
-
|
|
2264
|
+
/**
|
|
2265
|
+
* Figma → Modals → Alert Modal: tells the user something important that
|
|
2266
|
+
* happened, such as a document that was accepted or a payment that failed,
|
|
2267
|
+
* and waits for them to acknowledge it with one button.
|
|
2268
|
+
*
|
|
2269
|
+
* `ads-information-modal` is the deprecated 1.x name; removed in 3.0.0.
|
|
2270
|
+
*/
|
|
2271
|
+
declare class AlertModalComponent {
|
|
2272
|
+
/** Shows the modal. The parent sets it to false on `continue` or `closed`. */
|
|
1005
2273
|
open: _angular_core.InputSignal<boolean>;
|
|
1006
|
-
|
|
1007
|
-
|
|
2274
|
+
/** Figma `Tone`: the icon and its tile. */
|
|
2275
|
+
tone: _angular_core.InputSignal<AdsStatusTone>;
|
|
2276
|
+
/** Figma `Title` (Heading / H3). */
|
|
1008
2277
|
title: _angular_core.InputSignal<string>;
|
|
1009
|
-
|
|
1010
|
-
|
|
2278
|
+
/** Figma `Message` (Body Base / Regular): one or two sentences. */
|
|
2279
|
+
message: _angular_core.InputSignal<string>;
|
|
2280
|
+
/** Label of the Primary button. */
|
|
2281
|
+
actionLabel: _angular_core.InputSignal<string>;
|
|
2282
|
+
/** A click on the Overlay emits `closed`. */
|
|
1011
2283
|
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
2284
|
+
/** Escape emits `closed`. */
|
|
1012
2285
|
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
1013
|
-
|
|
2286
|
+
/** @deprecated Use `message`. Removed in 3.0.0. */
|
|
2287
|
+
description: _angular_core.InputSignal<string>;
|
|
2288
|
+
/** @deprecated Use `actionLabel`. Removed in 3.0.0. */
|
|
2289
|
+
continueText: _angular_core.InputSignal<string>;
|
|
2290
|
+
/** @deprecated The button always fills the width (Figma). Removed in 3.0.0. */
|
|
2291
|
+
buttonsFullWidth: _angular_core.InputSignal<boolean>;
|
|
2292
|
+
/** @deprecated The button always fills the width (Figma). Removed in 3.0.0. */
|
|
2293
|
+
actionsAlign: _angular_core.InputSignal<AdsModalActionsAlign>;
|
|
2294
|
+
/** Emits when the button is clicked. */
|
|
1014
2295
|
continue: _angular_core.OutputEmitterRef<void>;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
2296
|
+
/** Emits on Escape or a click on the Overlay. */
|
|
2297
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
2298
|
+
/** @internal */
|
|
2299
|
+
readonly titleId: string;
|
|
2300
|
+
/** @internal */
|
|
2301
|
+
readonly messageId: string;
|
|
2302
|
+
/** @internal */
|
|
2303
|
+
readonly boxClasses: string;
|
|
2304
|
+
/** @internal */
|
|
2305
|
+
readonly style: _angular_core.Signal<ModalTone>;
|
|
2306
|
+
/** @internal */
|
|
2307
|
+
readonly messageText: _angular_core.Signal<string>;
|
|
2308
|
+
/** @internal */
|
|
2309
|
+
readonly actionText: _angular_core.Signal<string>;
|
|
2310
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertModalComponent, never>;
|
|
2311
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertModalComponent, "ads-alert-modal, ads-information-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "continueText": { "alias": "continueText"; "required": false; "isSignal": true; }; "buttonsFullWidth": { "alias": "buttonsFullWidth"; "required": false; "isSignal": true; }; "actionsAlign": { "alias": "actionsAlign"; "required": false; "isSignal": true; }; }, { "continue": "continue"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
2312
|
+
}
|
|
2313
|
+
/** @deprecated Use `AlertModalComponent` (`<ads-alert-modal>`). Removed in 3.0.0. */
|
|
2314
|
+
declare const InformationModalComponent: typeof AlertModalComponent;
|
|
2315
|
+
/** @deprecated Use `AlertModalComponent`. Removed in 3.0.0. */
|
|
2316
|
+
type InformationModalComponent = AlertModalComponent;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Figma → Modals → Notification: a card about an event for the user, such as
|
|
2320
|
+
* documents that need an update, with when it happened and an optional
|
|
2321
|
+
* action. Unread notifications have a tinted background and a dot. Show them
|
|
2322
|
+
* in a list, such as a notifications panel.
|
|
2323
|
+
*/
|
|
2324
|
+
declare class NotificationComponent {
|
|
2325
|
+
/** Figma `Tone`: the icon and its color. */
|
|
2326
|
+
tone: _angular_core.InputSignal<AdsStatusTone>;
|
|
2327
|
+
/** Figma `State=Unread`: tinted background and a dot after the title. */
|
|
2328
|
+
unread: _angular_core.InputSignal<boolean>;
|
|
2329
|
+
/** Figma `Title` (Body Large / SemiBold). */
|
|
2330
|
+
title: _angular_core.InputSignal<string>;
|
|
2331
|
+
/** Figma `Message` (Body Base / Regular). Content inside the tag is shown after it. */
|
|
2332
|
+
message: _angular_core.InputSignal<string>;
|
|
2333
|
+
/** Figma `Time` (Caption / Regular), such as “2 hours ago”. Empty hides it (Figma `Show time` off). */
|
|
2334
|
+
time: _angular_core.InputSignal<string>;
|
|
2335
|
+
/** Figma `Show action`: label of a Primary sm button. Empty hides it. */
|
|
2336
|
+
actionLabel: _angular_core.InputSignal<string>;
|
|
2337
|
+
/** Shows the close button. */
|
|
2338
|
+
closable: _angular_core.InputSignal<boolean>;
|
|
2339
|
+
/** Emits when the action button is clicked. */
|
|
2340
|
+
action: _angular_core.OutputEmitterRef<void>;
|
|
2341
|
+
/** Emits when the close button is clicked. */
|
|
2342
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
2343
|
+
/** @internal */
|
|
2344
|
+
readonly style: _angular_core.Signal<{
|
|
2345
|
+
iconName: AdsIconName;
|
|
2346
|
+
icon: string;
|
|
2347
|
+
}>;
|
|
2348
|
+
/** @internal */
|
|
2349
|
+
readonly classes: _angular_core.Signal<string>;
|
|
2350
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
2351
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationComponent, "ads-notification", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "unread": { "alias": "unread"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "time": { "alias": "time"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; }, { "action": "action"; "closed": "closed"; }, never, ["*"], true, never>;
|
|
1018
2352
|
}
|
|
1019
2353
|
|
|
2354
|
+
/**
|
|
2355
|
+
* @deprecated Show an `ads-notification` (Figma → Modals → Notification) in
|
|
2356
|
+
* a list or a panel, or use `ads-alert-modal` for a message that must be
|
|
2357
|
+
* acknowledged. This 1.x modal now shows an `ads-notification` on the
|
|
2358
|
+
* Overlay. Removed in 3.0.0.
|
|
2359
|
+
*/
|
|
1020
2360
|
declare class NotificationModalComponent {
|
|
1021
2361
|
open: _angular_core.InputSignal<boolean>;
|
|
1022
|
-
buttonsFullWidth: _angular_core.InputSignal<boolean>;
|
|
1023
|
-
actionsAlign: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
1024
2362
|
title: _angular_core.InputSignal<string>;
|
|
1025
2363
|
description: _angular_core.InputSignal<string>;
|
|
1026
2364
|
continueText: _angular_core.InputSignal<string>;
|
|
1027
2365
|
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
1028
2366
|
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
2367
|
+
/** @deprecated No effect. */
|
|
2368
|
+
buttonsFullWidth: _angular_core.InputSignal<boolean>;
|
|
2369
|
+
/** @deprecated No effect. */
|
|
2370
|
+
actionsAlign: _angular_core.InputSignal<AdsModalActionsAlign>;
|
|
1029
2371
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
1030
2372
|
continue: _angular_core.OutputEmitterRef<void>;
|
|
1031
|
-
actions: _angular_core.Signal<AdsMainModalAction[]>;
|
|
1032
2373
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationModalComponent, never>;
|
|
1033
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationModalComponent, "ads-notification-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "
|
|
2374
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationModalComponent, "ads-notification-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "continueText": { "alias": "continueText"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; "buttonsFullWidth": { "alias": "buttonsFullWidth"; "required": false; "isSignal": true; }; "actionsAlign": { "alias": "actionsAlign"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "continue": "continue"; }, never, never, true, never>;
|
|
1034
2375
|
}
|
|
1035
2376
|
|
|
2377
|
+
/**
|
|
2378
|
+
* Figma → Modals → Review Modal: the last step before sending something. It
|
|
2379
|
+
* shows a summary of the key data and a checkbox the user ticks to confirm
|
|
2380
|
+
* it, then Back or Submit. Built on `ads-modal`.
|
|
2381
|
+
*/
|
|
2382
|
+
declare class ReviewModalComponent {
|
|
2383
|
+
/** Shows the modal. It opens with the checkbox unticked. */
|
|
2384
|
+
open: _angular_core.InputSignal<boolean>;
|
|
2385
|
+
/** Figma `Size`: 560 px (md) or 720 px (lg) wide. */
|
|
2386
|
+
size: _angular_core.InputSignal<AdsReviewModalSize>;
|
|
2387
|
+
/** Figma `Title` (Heading / H3). */
|
|
2388
|
+
title: _angular_core.InputSignal<string>;
|
|
2389
|
+
/** Figma `Description` (Body Base / Regular). Empty hides it. */
|
|
2390
|
+
description: _angular_core.InputSignal<string>;
|
|
2391
|
+
/** Overline of the summary. Empty hides it. */
|
|
2392
|
+
summaryTitle: _angular_core.InputSignal<string>;
|
|
2393
|
+
/** Rows of the summary: a label and its value. */
|
|
2394
|
+
items: _angular_core.InputSignal<AdsReviewItem[]>;
|
|
2395
|
+
/** Label of the confirmation checkbox. */
|
|
2396
|
+
confirmLabel: _angular_core.InputSignal<string>;
|
|
2397
|
+
/** Helper text under the checkbox (Figma `Show helper`). Empty hides it. */
|
|
2398
|
+
confirmHelper: _angular_core.InputSignal<string>;
|
|
2399
|
+
/** Submit stays disabled until the checkbox is ticked. */
|
|
2400
|
+
requireConfirmation: _angular_core.InputSignal<boolean>;
|
|
2401
|
+
/** Label of the Secondary button. Empty hides it. */
|
|
2402
|
+
backText: _angular_core.InputSignal<string>;
|
|
2403
|
+
/** Label of the Primary button. */
|
|
2404
|
+
submitText: _angular_core.InputSignal<string>;
|
|
2405
|
+
/** A click on the Overlay emits `closed`. */
|
|
2406
|
+
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
2407
|
+
/** Escape emits `closed`. */
|
|
2408
|
+
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
2409
|
+
/** Emits on the close button, Escape or a click on the Overlay. */
|
|
2410
|
+
closed: _angular_core.OutputEmitterRef<void>;
|
|
2411
|
+
/** Emits on Back. */
|
|
2412
|
+
back: _angular_core.OutputEmitterRef<void>;
|
|
2413
|
+
/** Emits on Submit. */
|
|
2414
|
+
submitted: _angular_core.OutputEmitterRef<void>;
|
|
2415
|
+
/** Emits when the checkbox changes. */
|
|
2416
|
+
confirmedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
2417
|
+
/** @internal */
|
|
2418
|
+
readonly confirmed: _angular_core.WritableSignal<boolean>;
|
|
2419
|
+
/** @internal */
|
|
2420
|
+
readonly actions: _angular_core.Signal<AdsModalAction[]>;
|
|
2421
|
+
constructor();
|
|
2422
|
+
/** @internal */
|
|
2423
|
+
onConfirmChange(value: boolean): void;
|
|
2424
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReviewModalComponent, never>;
|
|
2425
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReviewModalComponent, "ads-review-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "summaryTitle": { "alias": "summaryTitle"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "confirmHelper": { "alias": "confirmHelper"; "required": false; "isSignal": true; }; "requireConfirmation": { "alias": "requireConfirmation"; "required": false; "isSignal": true; }; "backText": { "alias": "backText"; "required": false; "isSignal": true; }; "submitText": { "alias": "submitText"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "back": "back"; "submitted": "submitted"; "confirmedChange": "confirmedChange"; }, never, ["*"], true, never>;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
/**
|
|
2429
|
+
* A modal with a message and an “I understand” checkbox. It has no Figma
|
|
2430
|
+
* counterpart (see the inventory's open decisions); it uses `ads-modal`.
|
|
2431
|
+
*/
|
|
1036
2432
|
declare class HelpModalComponent {
|
|
2433
|
+
/** Shows the modal. The parent sets it to false on `closed` or `continue`. */
|
|
1037
2434
|
open: _angular_core.InputSignal<boolean>;
|
|
2435
|
+
/** The button fills the width. */
|
|
1038
2436
|
buttonsFullWidth: _angular_core.InputSignal<boolean>;
|
|
1039
|
-
|
|
2437
|
+
/** Where the button goes. */
|
|
2438
|
+
actionsAlign: _angular_core.InputSignal<AdsModalActionsAlign>;
|
|
2439
|
+
/** Label of the Primary button. */
|
|
1040
2440
|
continueText: _angular_core.InputSignal<string>;
|
|
2441
|
+
/** Title of the modal. */
|
|
1041
2442
|
title: _angular_core.InputSignal<string>;
|
|
2443
|
+
/** Message of the modal. */
|
|
1042
2444
|
description: _angular_core.InputSignal<string>;
|
|
2445
|
+
/** Label of the checkbox. */
|
|
1043
2446
|
checkboxLabel: _angular_core.InputSignal<string>;
|
|
2447
|
+
/** Initial state of the checkbox. */
|
|
1044
2448
|
checkboxChecked: _angular_core.InputSignal<boolean>;
|
|
2449
|
+
/** A click on the Overlay emits `closed`. */
|
|
1045
2450
|
closeOnBackdrop: _angular_core.InputSignal<boolean>;
|
|
2451
|
+
/** Escape emits `closed`. */
|
|
1046
2452
|
closeOnEsc: _angular_core.InputSignal<boolean>;
|
|
2453
|
+
/** Emits on the close button, Escape or a click on the Overlay. */
|
|
1047
2454
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
2455
|
+
/** Emits when the checkbox changes. */
|
|
1048
2456
|
checkedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
2457
|
+
/** Emits the checkbox state when the button is clicked. */
|
|
1049
2458
|
continue: _angular_core.OutputEmitterRef<boolean>;
|
|
2459
|
+
/** @internal */
|
|
1050
2460
|
checkedState: _angular_core.WritableSignal<boolean>;
|
|
1051
|
-
|
|
2461
|
+
/** @internal */
|
|
2462
|
+
actions: _angular_core.Signal<AdsModalAction[]>;
|
|
1052
2463
|
constructor();
|
|
2464
|
+
/** @internal */
|
|
1053
2465
|
onCheckboxChange(value: boolean): void;
|
|
1054
2466
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HelpModalComponent, never>;
|
|
1055
2467
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HelpModalComponent, "ads-help-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "buttonsFullWidth": { "alias": "buttonsFullWidth"; "required": false; "isSignal": true; }; "actionsAlign": { "alias": "actionsAlign"; "required": false; "isSignal": true; }; "continueText": { "alias": "continueText"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "checkboxLabel": { "alias": "checkboxLabel"; "required": false; "isSignal": true; }; "checkboxChecked": { "alias": "checkboxChecked"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "checkedChange": "checkedChange"; "continue": "continue"; }, never, never, true, never>;
|
|
1056
2468
|
}
|
|
1057
2469
|
|
|
2470
|
+
/**
|
|
2471
|
+
* Figma → Modals → Feedback Modal: a form to report a bug, share an idea or
|
|
2472
|
+
* ask a question (Type, Subject, Product, Description and an optional
|
|
2473
|
+
* screenshot), and the Success state shown after sending. It floats next to
|
|
2474
|
+
* the button that opens it; place it with `top`, `right`, `bottom`, `left`.
|
|
2475
|
+
*/
|
|
1058
2476
|
declare class FeedbackModalComponent {
|
|
1059
2477
|
private readonly fb;
|
|
2478
|
+
/** Shows the modal. The parent sets it to false on `closed`. */
|
|
1060
2479
|
open: _angular_core.InputSignal<boolean>;
|
|
2480
|
+
/** Maximum width. Figma: 560 px. */
|
|
1061
2481
|
width: _angular_core.InputSignal<string>;
|
|
2482
|
+
/** Distance from the top of the window. */
|
|
1062
2483
|
top: _angular_core.InputSignal<string>;
|
|
2484
|
+
/** Distance from the right of the window. */
|
|
1063
2485
|
right: _angular_core.InputSignal<string>;
|
|
2486
|
+
/** Distance from the bottom of the window. */
|
|
1064
2487
|
bottom: _angular_core.InputSignal<string>;
|
|
2488
|
+
/** Distance from the left of the window. */
|
|
1065
2489
|
left: _angular_core.InputSignal<string>;
|
|
2490
|
+
/** Title of the header (Heading / H3). */
|
|
1066
2491
|
title: _angular_core.InputSignal<string>;
|
|
2492
|
+
/** Description under the title. */
|
|
1067
2493
|
subtitle: _angular_core.InputSignal<string>;
|
|
2494
|
+
/** Options of the Type segmented control. The first one is selected. */
|
|
2495
|
+
typeOptions: _angular_core.InputSignal<AdsSegmentOption<string>[]>;
|
|
2496
|
+
/** Label of the selector. Figma: Product. */
|
|
2497
|
+
categoryLabel: _angular_core.InputSignal<string>;
|
|
2498
|
+
/** Options of the selector. Empty hides it. */
|
|
1068
2499
|
categoryOptions: _angular_core.InputSignal<AdsSingleSelectorOption[]>;
|
|
2500
|
+
/** Shows the response (Figma `State=Success`) instead of the form. */
|
|
1069
2501
|
responseOpen: _angular_core.InputSignal<boolean>;
|
|
2502
|
+
/** `success` (Figma) or `error`: the icon and its tile. */
|
|
1070
2503
|
responseType: _angular_core.InputSignal<FeedbackResponseType>;
|
|
2504
|
+
/** Title of the response. */
|
|
1071
2505
|
responseTitle: _angular_core.InputSignal<string>;
|
|
2506
|
+
/** Message of the response. */
|
|
1072
2507
|
responseDescription: _angular_core.InputSignal<string>;
|
|
2508
|
+
/** Label of the response button. */
|
|
1073
2509
|
responseButtonText: _angular_core.InputSignal<string>;
|
|
2510
|
+
/** Emits on the close button, Cancel or a click outside. */
|
|
1074
2511
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
2512
|
+
/** Emits the form when Send feedback is clicked and the form is valid. */
|
|
1075
2513
|
submitted: _angular_core.OutputEmitterRef<FeedbackPayload>;
|
|
2514
|
+
/** Emits when the response button is clicked. */
|
|
1076
2515
|
responseAction: _angular_core.OutputEmitterRef<void>;
|
|
2516
|
+
/** @internal */
|
|
2517
|
+
readonly descriptionMax = 500;
|
|
2518
|
+
/** @internal */
|
|
2519
|
+
readonly titleId: string;
|
|
2520
|
+
/** @internal */
|
|
2521
|
+
readonly boxClasses = "flex max-h-[calc(100vh-2rem)] w-full flex-col overflow-hidden rounded-lg bg-surface font-poppins text-body shadow-overlay absolute";
|
|
2522
|
+
/** @internal */
|
|
1077
2523
|
form: _angular_forms.FormGroup<{
|
|
2524
|
+
type: _angular_forms.FormControl<string>;
|
|
1078
2525
|
subject: _angular_forms.FormControl<string>;
|
|
1079
2526
|
category: _angular_forms.FormControl<string>;
|
|
1080
2527
|
description: _angular_forms.FormControl<string>;
|
|
2528
|
+
screenshot: _angular_forms.FormControl<File[]>;
|
|
1081
2529
|
}>;
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
responseIconStyles: _angular_core.Signal<{
|
|
1085
|
-
containerClass: string;
|
|
1086
|
-
iconName: AdsIconName;
|
|
1087
|
-
}>;
|
|
2530
|
+
/** @internal */
|
|
2531
|
+
readonly responseTone: _angular_core.Signal<ModalTone>;
|
|
1088
2532
|
constructor();
|
|
2533
|
+
/** @internal */
|
|
1089
2534
|
closeModal(): void;
|
|
2535
|
+
/** @internal */
|
|
1090
2536
|
onBackdropClick(event: MouseEvent): void;
|
|
2537
|
+
/** @internal */
|
|
1091
2538
|
submitFeedback(): void;
|
|
2539
|
+
/** @internal */
|
|
1092
2540
|
onResponseButtonClick(): void;
|
|
2541
|
+
/** @internal */
|
|
1093
2542
|
subjectError(): string;
|
|
2543
|
+
/** @internal */
|
|
1094
2544
|
descriptionError(): string;
|
|
1095
2545
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeedbackModalComponent, never>;
|
|
1096
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeedbackModalComponent, "ads-feedback-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "top": { "alias": "top"; "required": false; "isSignal": true; }; "right": { "alias": "right"; "required": false; "isSignal": true; }; "bottom": { "alias": "bottom"; "required": false; "isSignal": true; }; "left": { "alias": "left"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "categoryOptions": { "alias": "categoryOptions"; "required": false; "isSignal": true; }; "responseOpen": { "alias": "responseOpen"; "required": false; "isSignal": true; }; "responseType": { "alias": "responseType"; "required": false; "isSignal": true; }; "responseTitle": { "alias": "responseTitle"; "required": false; "isSignal": true; }; "responseDescription": { "alias": "responseDescription"; "required": false; "isSignal": true; }; "responseButtonText": { "alias": "responseButtonText"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "submitted": "submitted"; "responseAction": "responseAction"; }, never, never, true, never>;
|
|
2546
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeedbackModalComponent, "ads-feedback-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "top": { "alias": "top"; "required": false; "isSignal": true; }; "right": { "alias": "right"; "required": false; "isSignal": true; }; "bottom": { "alias": "bottom"; "required": false; "isSignal": true; }; "left": { "alias": "left"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "typeOptions": { "alias": "typeOptions"; "required": false; "isSignal": true; }; "categoryLabel": { "alias": "categoryLabel"; "required": false; "isSignal": true; }; "categoryOptions": { "alias": "categoryOptions"; "required": false; "isSignal": true; }; "responseOpen": { "alias": "responseOpen"; "required": false; "isSignal": true; }; "responseType": { "alias": "responseType"; "required": false; "isSignal": true; }; "responseTitle": { "alias": "responseTitle"; "required": false; "isSignal": true; }; "responseDescription": { "alias": "responseDescription"; "required": false; "isSignal": true; }; "responseButtonText": { "alias": "responseButtonText"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "submitted": "submitted"; "responseAction": "responseAction"; }, never, never, true, never>;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/** Context of an `adsTableCell` template. */
|
|
2550
|
+
type AdsTableCellContext<T = any> = {
|
|
2551
|
+
/** The row data (`row.original`). */
|
|
2552
|
+
$implicit: T;
|
|
2553
|
+
/** The cell value. */
|
|
2554
|
+
value: unknown;
|
|
2555
|
+
/** Whether the row is disabled (`isRowDisabled`). */
|
|
2556
|
+
disabled: boolean;
|
|
2557
|
+
};
|
|
2558
|
+
/**
|
|
2559
|
+
* Renders the cells of one column of `ads-table` with your own template, for
|
|
2560
|
+
* Figma Table Cell types that hold components, such as Input:
|
|
2561
|
+
* `<ng-template adsTableCell="amount" let-row let-disabled="disabled">…</ng-template>`.
|
|
2562
|
+
*/
|
|
2563
|
+
declare class TableCellDirective {
|
|
2564
|
+
/** Column id whose cells this template renders. */
|
|
2565
|
+
columnId: _angular_core.InputSignal<string>;
|
|
2566
|
+
/** @internal */
|
|
2567
|
+
readonly template: TemplateRef<AdsTableCellContext<any>>;
|
|
2568
|
+
static ngTemplateContextGuard(_dir: TableCellDirective, ctx: unknown): ctx is AdsTableCellContext;
|
|
2569
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableCellDirective, never>;
|
|
2570
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableCellDirective, "ng-template[adsTableCell]", never, { "columnId": { "alias": "adsTableCell"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1097
2571
|
}
|
|
1098
2572
|
|
|
1099
2573
|
declare class TableComponent {
|
|
@@ -1110,6 +2584,13 @@ declare class TableComponent {
|
|
|
1110
2584
|
pageSizeChange: EventEmitter<number>;
|
|
1111
2585
|
multiSortEvent: EventEmitter<any>;
|
|
1112
2586
|
selectionChange: EventEmitter<any[]>;
|
|
2587
|
+
/** Emits the row and column id when a `link` cell is clicked. */
|
|
2588
|
+
cellLinkClick: EventEmitter<{
|
|
2589
|
+
row: any;
|
|
2590
|
+
columnId: string;
|
|
2591
|
+
}>;
|
|
2592
|
+
/** Templates for the cells of a column (`<ng-template adsTableCell="id">`). */
|
|
2593
|
+
cellTemplates?: QueryList<TableCellDirective>;
|
|
1113
2594
|
table: Table<any> | null;
|
|
1114
2595
|
isLoading: boolean;
|
|
1115
2596
|
selectedSortingHeader: string;
|
|
@@ -1128,8 +2609,20 @@ declare class TableComponent {
|
|
|
1128
2609
|
direction: string;
|
|
1129
2610
|
}>;
|
|
1130
2611
|
actionButtons: TableActionButton[];
|
|
2612
|
+
/** @deprecated Use `statusTones`. When set, status cells keep the 1.x ads-state look. Removed in 3.0.0. */
|
|
1131
2613
|
statusStateStyles: TableStateStylesMap;
|
|
2614
|
+
/** @deprecated When set, active cells keep the 1.x ads-state look. Removed in 3.0.0. */
|
|
1132
2615
|
activeStateStyles: TableStateStylesMap;
|
|
2616
|
+
/** Badge tone of each status value in status cells; `default` covers the rest. */
|
|
2617
|
+
statusTones: Record<string, AdsBadgeTone>;
|
|
2618
|
+
/** Figma Table `Size`: rows and header of 36 px (`sm`) or 44 px (`md`). */
|
|
2619
|
+
size: AdsTableSize;
|
|
2620
|
+
/** Figma Pagination `Layout`: rows per page, range and pages (`full`), or "Page X of Y" (`compact`). */
|
|
2621
|
+
paginationLayout: AdsTablePaginationLayout;
|
|
2622
|
+
/** Options of the rows per page selector. */
|
|
2623
|
+
pageSizeOptions: number[];
|
|
2624
|
+
/** Figma Table Row State=Disabled: the row is greyed out and its checkbox and actions are disabled. */
|
|
2625
|
+
isRowDisabled: ((row: any) => boolean) | null;
|
|
1133
2626
|
selectable: boolean;
|
|
1134
2627
|
/** Keeps the actions column pinned to the right edge, above the other columns, while scrolling horizontally. */
|
|
1135
2628
|
stickyActions: boolean;
|
|
@@ -1190,10 +2683,40 @@ declare class TableComponent {
|
|
|
1190
2683
|
toggleRowSelection(row: Row<any>): void;
|
|
1191
2684
|
toggleSelectAll(): void;
|
|
1192
2685
|
private emitSelection;
|
|
2686
|
+
/** @internal Row height per Figma Size. */
|
|
2687
|
+
get rowHeightClass(): string;
|
|
2688
|
+
/** @internal */
|
|
2689
|
+
rowDisabled(row: Row<any>): boolean;
|
|
2690
|
+
/** @internal Figma Table Cell background and text per row state. */
|
|
2691
|
+
cellStateClass(row: Row<any>): string;
|
|
2692
|
+
/** @internal */
|
|
2693
|
+
cellTemplate(cell: any): _angular_core.TemplateRef<_aaamb_ngx_design_system.AdsTableCellContext<any>>;
|
|
2694
|
+
/** @internal */
|
|
2695
|
+
cellType(cell: any): string;
|
|
2696
|
+
/** @internal */
|
|
2697
|
+
cellSubtext(cell: any, row: Row<any>): string;
|
|
2698
|
+
/** @internal 1.x ads-state look, kept while a consumer passes its own style maps. */
|
|
2699
|
+
get usesLegacyStateStyles(): boolean;
|
|
2700
|
+
/** @internal */
|
|
2701
|
+
stateTone(cell: any): AdsBadgeTone;
|
|
2702
|
+
/** @internal Sort icon of a sortable header: Figma Sort None, Ascending or Descending. */
|
|
2703
|
+
sortIcon(column: any): 'sort' | 'arrow-up' | 'arrow-down';
|
|
2704
|
+
/** @internal */
|
|
2705
|
+
ariaSort(column: any): string | null;
|
|
2706
|
+
/** @internal Figma Pagination range, such as "1–25 of 128". */
|
|
2707
|
+
get rangeText(): string;
|
|
2708
|
+
/** @internal Figma Page Item classes. */
|
|
2709
|
+
pageItemClass(selected: boolean): string;
|
|
2710
|
+
/** @internal */
|
|
2711
|
+
onLinkClick(row: Row<any>, cell: any): void;
|
|
1193
2712
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent, [{ attribute: "data-testid"; }]>;
|
|
1194
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "ads-table", never, { "table": { "alias": "table"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "selectedSortingHeader": { "alias": "selectedSortingHeader"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "allContentLeft": { "alias": "allContentLeft"; "required": false; }; "totalRegisters": { "alias": "totalRegisters"; "required": false; }; "minH": { "alias": "min-h"; "required": false; }; "areColumnsDraggable": { "alias": "areColumnsDraggable"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "enableMultiSort": { "alias": "enableMultiSort"; "required": false; }; "multiSortCriteria": { "alias": "multiSortCriteria"; "required": false; }; "actionButtons": { "alias": "actionButtons"; "required": false; }; "statusStateStyles": { "alias": "statusStateStyles"; "required": false; }; "activeStateStyles": { "alias": "activeStateStyles"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "stickyActions": { "alias": "stickyActions"; "required": false; }; }, { "sortEvent": "sortEvent"; "columnOrderChange": "columnOrderChange"; "pageChange": "pageChange"; "columnSizingChange": "columnSizingChange"; "pageSizeChange": "pageSizeChange"; "multiSortEvent": "multiSortEvent"; "selectionChange": "selectionChange"; },
|
|
2713
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "ads-table", never, { "table": { "alias": "table"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "selectedSortingHeader": { "alias": "selectedSortingHeader"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "allContentLeft": { "alias": "allContentLeft"; "required": false; }; "totalRegisters": { "alias": "totalRegisters"; "required": false; }; "minH": { "alias": "min-h"; "required": false; }; "areColumnsDraggable": { "alias": "areColumnsDraggable"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "enableMultiSort": { "alias": "enableMultiSort"; "required": false; }; "multiSortCriteria": { "alias": "multiSortCriteria"; "required": false; }; "actionButtons": { "alias": "actionButtons"; "required": false; }; "statusStateStyles": { "alias": "statusStateStyles"; "required": false; }; "activeStateStyles": { "alias": "activeStateStyles"; "required": false; }; "statusTones": { "alias": "statusTones"; "required": false; }; "size": { "alias": "size"; "required": false; }; "paginationLayout": { "alias": "paginationLayout"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "isRowDisabled": { "alias": "isRowDisabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "stickyActions": { "alias": "stickyActions"; "required": false; }; }, { "sortEvent": "sortEvent"; "columnOrderChange": "columnOrderChange"; "pageChange": "pageChange"; "columnSizingChange": "columnSizingChange"; "pageSizeChange": "pageSizeChange"; "multiSortEvent": "multiSortEvent"; "selectionChange": "selectionChange"; "cellLinkClick": "cellLinkClick"; }, ["cellTemplates"], never, true, never>;
|
|
1195
2714
|
}
|
|
1196
2715
|
|
|
2716
|
+
/**
|
|
2717
|
+
* Error text under a form field (Figma Input Field → Helper in the Error
|
|
2718
|
+
* state): Caption / Regular in `text/error`.
|
|
2719
|
+
*/
|
|
1197
2720
|
declare class ErrorMessageComponent {
|
|
1198
2721
|
hasError: _angular_core.InputSignal<boolean>;
|
|
1199
2722
|
errorMessage: _angular_core.InputSignal<string>;
|
|
@@ -1201,5 +2724,384 @@ declare class ErrorMessageComponent {
|
|
|
1201
2724
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ErrorMessageComponent, "ads-error-message", never, { "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1202
2725
|
}
|
|
1203
2726
|
|
|
1204
|
-
|
|
1205
|
-
|
|
2727
|
+
/**
|
|
2728
|
+
* Figma → Buttons → Icon Button. A square button with one 16 px icon and no
|
|
2729
|
+
* label. Give it an accessible name with `aria-label`:
|
|
2730
|
+
* `<button ads-icon-button aria-label="Delete"><ads-icon iconName="trash" [size]="16" /></button>`.
|
|
2731
|
+
*/
|
|
2732
|
+
declare class IconButtonComponent {
|
|
2733
|
+
/** Figma `Type`: primary, secondary, outline, text, danger or danger-text. */
|
|
2734
|
+
variant: _angular_core.InputSignal<AdsButtonFigmaVariant>;
|
|
2735
|
+
/** Figma `Size`: sm 32 px, md 36 px, lg 44 px, xl 48 px. */
|
|
2736
|
+
size: _angular_core.InputSignal<AdsButtonSize>;
|
|
2737
|
+
hostClasses: _angular_core.Signal<string>;
|
|
2738
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
2739
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconButtonComponent, "button[ads-icon-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* Figma → Buttons → Split Button. A main action and a chevron that opens a
|
|
2744
|
+
* menu of related actions. The component emits `menuClicked`; open your menu
|
|
2745
|
+
* from it and pass its state in `expanded`.
|
|
2746
|
+
*/
|
|
2747
|
+
declare class SplitButtonComponent {
|
|
2748
|
+
/** Text of the main action. */
|
|
2749
|
+
label: _angular_core.InputSignal<string>;
|
|
2750
|
+
/** Figma `Type`: primary, secondary or outline. */
|
|
2751
|
+
variant: _angular_core.InputSignal<AdsSplitButtonVariant>;
|
|
2752
|
+
/** Figma `Size`: sm 32 px, md 36 px, lg 44 px, xl 48 px. */
|
|
2753
|
+
size: _angular_core.InputSignal<AdsButtonSize>;
|
|
2754
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2755
|
+
/** Accessible name of the chevron. */
|
|
2756
|
+
menuLabel: _angular_core.InputSignal<string>;
|
|
2757
|
+
/** Whether the menu is open. Sets `aria-expanded` on the chevron. */
|
|
2758
|
+
expanded: _angular_core.InputSignal<boolean>;
|
|
2759
|
+
/** Emits when the main action is clicked. */
|
|
2760
|
+
clicked: _angular_core.OutputEmitterRef<void>;
|
|
2761
|
+
/** Emits when the chevron is clicked. */
|
|
2762
|
+
menuClicked: _angular_core.OutputEmitterRef<void>;
|
|
2763
|
+
protected sizeClasses: _angular_core.Signal<{
|
|
2764
|
+
container: string;
|
|
2765
|
+
label: string;
|
|
2766
|
+
menu: string;
|
|
2767
|
+
}>;
|
|
2768
|
+
protected divider: _angular_core.Signal<string>;
|
|
2769
|
+
protected containerClasses: _angular_core.Signal<string>;
|
|
2770
|
+
protected partClasses: _angular_core.Signal<string>;
|
|
2771
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
2772
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonComponent, "ads-split-button", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "menuLabel": { "alias": "menuLabel"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "menuClicked": "menuClicked"; }, never, never, true, never>;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
/**
|
|
2776
|
+
* Figma → Buttons → Floating Button. A 56 px round button with one 24 px icon
|
|
2777
|
+
* that floats over the page for its main action. Give it an accessible name
|
|
2778
|
+
* with `aria-label`.
|
|
2779
|
+
*/
|
|
2780
|
+
declare class FloatingButtonComponent {
|
|
2781
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FloatingButtonComponent, never>;
|
|
2782
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FloatingButtonComponent, "button[ads-floating-button]", never, {}, {}, never, ["*"], true, never>;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* Figma → Controls → Bulk Select. A small checkbox that selects or clears
|
|
2787
|
+
* every item, and a chevron that opens a menu of selection options (this
|
|
2788
|
+
* page, all results, none). The component emits `menuClicked`; open your
|
|
2789
|
+
* menu from it and pass its state in `expanded`.
|
|
2790
|
+
*/
|
|
2791
|
+
declare class BulkSelectComponent {
|
|
2792
|
+
/** Figma `Value=Checked`: every item is selected. */
|
|
2793
|
+
checked: _angular_core.InputSignal<boolean>;
|
|
2794
|
+
/** Figma `Value=Indeterminate`: some items are selected. */
|
|
2795
|
+
indeterminate: _angular_core.InputSignal<boolean>;
|
|
2796
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2797
|
+
/** Accessible name of the checkbox. */
|
|
2798
|
+
label: _angular_core.InputSignal<string>;
|
|
2799
|
+
/** Accessible name of the chevron. */
|
|
2800
|
+
menuLabel: _angular_core.InputSignal<string>;
|
|
2801
|
+
/** Whether the menu is open. Sets `aria-expanded` on the chevron. */
|
|
2802
|
+
expanded: _angular_core.InputSignal<boolean>;
|
|
2803
|
+
/** Emits the new value when the checkbox is toggled. */
|
|
2804
|
+
checkedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
2805
|
+
/** Emits when the chevron is clicked. */
|
|
2806
|
+
menuClicked: _angular_core.OutputEmitterRef<void>;
|
|
2807
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BulkSelectComponent, never>;
|
|
2808
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BulkSelectComponent, "ads-bulk-select", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "menuLabel": { "alias": "menuLabel"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "menuClicked": "menuClicked"; }, never, never, true, never>;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* Figma → Controls → Radio Group. A titled list of radios where only one
|
|
2813
|
+
* option can be chosen. Works with `[(value)]`, `[(ngModel)]` and reactive
|
|
2814
|
+
* forms. `variant="card"` renders each option as a Figma Radio Card.
|
|
2815
|
+
*/
|
|
2816
|
+
declare class RadioGroupComponent<T = unknown> implements ControlValueAccessor {
|
|
2817
|
+
readonly id: string;
|
|
2818
|
+
private host;
|
|
2819
|
+
/** The options; `value` of each one is compared with `===`. */
|
|
2820
|
+
options: _angular_core.InputSignal<AdsRadioOption<T>[]>;
|
|
2821
|
+
/** Selected value. Two-way bindable with `[(value)]`. */
|
|
2822
|
+
value: _angular_core.ModelSignal<T>;
|
|
2823
|
+
/** Figma `Title`. Names the group for screen readers. */
|
|
2824
|
+
groupTitle: _angular_core.InputSignal<string>;
|
|
2825
|
+
/** Accessible name when there is no `groupTitle`. */
|
|
2826
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
2827
|
+
/** Figma `Direction`. */
|
|
2828
|
+
direction: _angular_core.InputSignal<AdsRadioGroupDirection>;
|
|
2829
|
+
/** Radio and label size. Figma's group uses `sm`. */
|
|
2830
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
2831
|
+
/** `card` renders each option as a Radio Card. */
|
|
2832
|
+
variant: _angular_core.InputSignal<"card" | "default">;
|
|
2833
|
+
/** Figma `State=Disabled`: disables every option. */
|
|
2834
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2835
|
+
private cvaDisabled;
|
|
2836
|
+
private onChange;
|
|
2837
|
+
onTouched: () => void;
|
|
2838
|
+
protected isDisabled: _angular_core.Signal<boolean>;
|
|
2839
|
+
protected layoutClasses: _angular_core.Signal<"grid auto-cols-fr grid-flow-col gap-3" | "flex flex-col gap-3" | "flex flex-wrap items-start gap-4" | "flex flex-col items-start gap-2">;
|
|
2840
|
+
protected isOptionDisabled(option: AdsRadioOption<T>): boolean;
|
|
2841
|
+
/** Only the selected option (or the first enabled one) is in the tab order. */
|
|
2842
|
+
protected tabindexFor(index: number): number;
|
|
2843
|
+
protected select(option: AdsRadioOption<T>): void;
|
|
2844
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
2845
|
+
writeValue(value: T | null): void;
|
|
2846
|
+
registerOnChange(fn: (value: T | null) => void): void;
|
|
2847
|
+
registerOnTouched(fn: () => void): void;
|
|
2848
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2849
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioGroupComponent<any>, never>;
|
|
2850
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioGroupComponent<any>, "ads-radio-group", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "groupTitle": { "alias": "groupTitle"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* Figma → Controls → Radio Card. A selectable card with a radio, a title, a
|
|
2855
|
+
* description, and an optional icon and tag. Use it inside
|
|
2856
|
+
* `<ads-radio-group variant="card">`, which handles the value and the
|
|
2857
|
+
* arrow keys.
|
|
2858
|
+
*/
|
|
2859
|
+
declare class RadioCardComponent {
|
|
2860
|
+
readonly id: string;
|
|
2861
|
+
/** Card title; it is the accessible name of the radio. */
|
|
2862
|
+
title: _angular_core.InputSignal<string>;
|
|
2863
|
+
/** Short description under the title. */
|
|
2864
|
+
description: _angular_core.InputSignal<string>;
|
|
2865
|
+
/** 16 px icon before the title. */
|
|
2866
|
+
icon: _angular_core.InputSignal<"search" | "phone" | "info" | "warning" | "error" | "bookmark" | "check" | "close" | "copy" | "delete-filled" | "delete-multiple" | "document-edit" | "document-upload" | "download" | "edit" | "file-upload" | "filter" | "history" | "minus" | "move-down" | "plus" | "plus-square-filled" | "scan" | "settings-reset" | "sort" | "upload" | "visibility" | "visibility-off" | "feedback" | "arrow-down" | "arrow-up" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-right-bold" | "chevron-up" | "home-filled" | "home-outline" | "menu" | "open-external" | "book" | "chart-bar" | "chart-flow" | "checklist" | "document" | "folder-settings" | "hash" | "network" | "receipt" | "report-chart" | "report-chart-alt" | "credit-card" | "calendar-check" | "calendar-edit" | "calendar-filled" | "user-add-filled" | "user-key" | "user-outline" | "user-settings-filled" | "users-filled" | "users-group-outline" | "alert" | "notification" | "building" | "building-add" | "blood-type" | "heart-monitor" | "psychology" | "computer-add" | "computer-queue" | "microphone" | "replay" | "stop-circle" | "more_vert" | "camera" | "ambulance" | "clipboard" | "controller_frame" | "folder" | "ia_agent" | "mail" | "menu_list" | "pause" | "play" | "play_filled" | "mastercard" | "visa" | "amex" | "discover" | "toggle_active" | "toggle_inactive" | "add_square" | "administrator_solid" | "arrow_right" | "blood_type" | "branchs" | "calendar" | "calendar_check" | "chart_bars" | "chart_grid" | "chat" | "check_list" | "delete" | "delete_trash" | "device_add" | "document_upload" | "download_rounded" | "edit_calendar" | "eye" | "folder_management" | "group" | "hamburger" | "hide" | "history_rounded" | "home" | "home_solid" | "icon_card" | "lightbulb" | "medical_user" | "move_down" | "open" | "paper_edit" | "people" | "queue_play" | "reset_settings" | "scanner" | "settings" | "sharp" | "sorting" | "stop" | "table" | "tune" | "upload_file" | "upload_rounded" | "user" | "user_key" | "users" | "vital_sign" | "dolar_sign">;
|
|
2867
|
+
/** Short tag after the title, such as “Recommended”. */
|
|
2868
|
+
tag: _angular_core.InputSignal<string>;
|
|
2869
|
+
/** Figma `Value=Selected`. */
|
|
2870
|
+
checked: _angular_core.InputSignal<boolean>;
|
|
2871
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2872
|
+
/** Tab index of the card. Set by `ads-radio-group`. */
|
|
2873
|
+
controlTabindex: _angular_core.InputSignal<number>;
|
|
2874
|
+
/** Emits when the card is clicked or activated with the keyboard. */
|
|
2875
|
+
selected: _angular_core.OutputEmitterRef<void>;
|
|
2876
|
+
protected cardClasses: _angular_core.Signal<string>;
|
|
2877
|
+
protected radioClasses: _angular_core.Signal<"flex size-5 shrink-0 items-center justify-center rounded-full border-[1.5px] border-solid border-disabled bg-disabled" | "flex size-5 shrink-0 items-center justify-center rounded-full border-[1.5px] border-solid border-brand-strong bg-surface group-hover:bg-brand-subtle group-focus-visible:bg-brand-muted">;
|
|
2878
|
+
protected dotClasses: _angular_core.Signal<"size-2.5 rounded-full bg-black-300" | "size-2.5 rounded-full bg-action-primary group-hover:bg-action-primary-hover group-focus-visible:bg-aqua-800">;
|
|
2879
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadioCardComponent, never>;
|
|
2880
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RadioCardComponent, "ads-radio-card", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "controlTabindex": { "alias": "controlTabindex"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, never, true, never>;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
/**
|
|
2884
|
+
* Figma → Controls → Segmented Control. A row of 2 to 4 segments where one
|
|
2885
|
+
* is selected, to switch between views or modes of the same content. Works
|
|
2886
|
+
* with `[(value)]`, `[(ngModel)]` and reactive forms.
|
|
2887
|
+
*/
|
|
2888
|
+
declare class SegmentedControlComponent<T = unknown> implements ControlValueAccessor {
|
|
2889
|
+
private host;
|
|
2890
|
+
/** The segments (Figma `Options` 2–4); `value` of each one is compared with `===`. */
|
|
2891
|
+
options: _angular_core.InputSignal<AdsSegmentOption<T>[]>;
|
|
2892
|
+
/** Selected value. Two-way bindable with `[(value)]`. */
|
|
2893
|
+
value: _angular_core.ModelSignal<T>;
|
|
2894
|
+
/** Figma `Size`: sm 32 px, md 36 px high. */
|
|
2895
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
2896
|
+
/** Accessible name of the group. */
|
|
2897
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
2898
|
+
/** Disables every segment. */
|
|
2899
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2900
|
+
private cvaDisabled;
|
|
2901
|
+
private onChange;
|
|
2902
|
+
onTouched: () => void;
|
|
2903
|
+
private isDisabled;
|
|
2904
|
+
protected isOptionDisabled(option: AdsSegmentOption<T>): boolean;
|
|
2905
|
+
protected segmentClasses(option: AdsSegmentOption<T>): string;
|
|
2906
|
+
/** Only the selected segment (or the first enabled one) is in the tab order. */
|
|
2907
|
+
protected tabindexFor(index: number): number;
|
|
2908
|
+
protected select(option: AdsSegmentOption<T>): void;
|
|
2909
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
2910
|
+
writeValue(value: T | null): void;
|
|
2911
|
+
registerOnChange(fn: (value: T | null) => void): void;
|
|
2912
|
+
registerOnTouched(fn: () => void): void;
|
|
2913
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2914
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlComponent<any>, never>;
|
|
2915
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent<any>, "ads-segmented-control", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* Figma → Controls → Slider. Sets a value from 0 to 100, such as a
|
|
2920
|
+
* percentage weight, and stretches to the width of its container. Works with
|
|
2921
|
+
* `[(value)]`, `[(ngModel)]` and reactive forms.
|
|
2922
|
+
*/
|
|
2923
|
+
declare class SliderComponent implements ControlValueAccessor {
|
|
2924
|
+
/** Figma `Value`: 0 to 100. Two-way bindable with `[(value)]`. */
|
|
2925
|
+
value: _angular_core.ModelSignal<number>;
|
|
2926
|
+
/** Amount the value changes per arrow key or drag step. */
|
|
2927
|
+
step: _angular_core.InputSignal<number>;
|
|
2928
|
+
/** Figma `State=Disabled`. */
|
|
2929
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2930
|
+
/** Accessible name when there is no visible label. */
|
|
2931
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
2932
|
+
/** Id of the element that names the slider, such as a visible label. */
|
|
2933
|
+
ariaLabelledby: _angular_core.InputSignal<string>;
|
|
2934
|
+
/** Id of the element that describes the slider. */
|
|
2935
|
+
ariaDescribedby: _angular_core.InputSignal<string>;
|
|
2936
|
+
private cvaDisabled;
|
|
2937
|
+
private onChange;
|
|
2938
|
+
onTouched: () => void;
|
|
2939
|
+
protected isDisabled: _angular_core.Signal<boolean>;
|
|
2940
|
+
protected ratio: _angular_core.Signal<number>;
|
|
2941
|
+
protected onInput(event: Event): void;
|
|
2942
|
+
writeValue(value: number | null): void;
|
|
2943
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
2944
|
+
registerOnTouched(fn: () => void): void;
|
|
2945
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2946
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
2947
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "ads-slider", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* Figma → Controls → Slider Field. A label and description, a Slider and an
|
|
2952
|
+
* editable percentage box in one row, as in HAR Claim Prioritization. Works
|
|
2953
|
+
* with `[(value)]`, `[(ngModel)]` and reactive forms.
|
|
2954
|
+
*/
|
|
2955
|
+
declare class SliderFieldComponent implements ControlValueAccessor {
|
|
2956
|
+
/** Figma `Label`. */
|
|
2957
|
+
label: _angular_core.InputSignal<string>;
|
|
2958
|
+
/** Figma `Description`: one line under the label. */
|
|
2959
|
+
description: _angular_core.InputSignal<string>;
|
|
2960
|
+
/** Figma `Show description`. */
|
|
2961
|
+
showDescription: _angular_core.InputSignal<boolean>;
|
|
2962
|
+
/** Figma `Value`: 0 to 100, shown on the slider and in the box. Two-way bindable with `[(value)]`. */
|
|
2963
|
+
value: _angular_core.ModelSignal<number>;
|
|
2964
|
+
/** Amount the slider changes per arrow key or drag step. */
|
|
2965
|
+
step: _angular_core.InputSignal<number>;
|
|
2966
|
+
/** Figma `State=Disabled`. */
|
|
2967
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
2968
|
+
protected readonly labelId: string;
|
|
2969
|
+
protected readonly descriptionId: string;
|
|
2970
|
+
protected readonly unitId: string;
|
|
2971
|
+
/** Figma `State=Focus`: any part of the field has focus. */
|
|
2972
|
+
protected focused: _angular_core.WritableSignal<boolean>;
|
|
2973
|
+
private cvaDisabled;
|
|
2974
|
+
private onChange;
|
|
2975
|
+
private onTouched;
|
|
2976
|
+
protected isDisabled: _angular_core.Signal<boolean>;
|
|
2977
|
+
protected boxClasses: _angular_core.Signal<"flex h-9 w-24 shrink-0 items-center gap-1 rounded-md border pr-3 border-strong bg-disabled" | "flex h-9 w-24 shrink-0 items-center gap-1 rounded-md border pr-3 border-focus bg-surface inset-ring inset-ring-(--border-color-focus)" | "flex h-9 w-24 shrink-0 items-center gap-1 rounded-md border pr-3 border-strong bg-surface">;
|
|
2978
|
+
protected setValue(value: number): void;
|
|
2979
|
+
/** Typing a number moves the slider at once; it is rounded to `step` and clamped to 0–100. */
|
|
2980
|
+
protected onBoxInput(event: Event): void;
|
|
2981
|
+
/** Leaving the box shows the field's value again, replacing empty or invalid text. */
|
|
2982
|
+
protected onBoxBlur(event: Event): void;
|
|
2983
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
2984
|
+
writeValue(value: number | null): void;
|
|
2985
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
2986
|
+
registerOnTouched(fn: () => void): void;
|
|
2987
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2988
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderFieldComponent, never>;
|
|
2989
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderFieldComponent, "ads-slider-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "showDescription": { "alias": "showDescription"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* Figma → Controls → Progress Bar. Shows progress or a percentage, read-only,
|
|
2994
|
+
* and stretches to the width of its container. To let the user set the value,
|
|
2995
|
+
* use `ads-slider`.
|
|
2996
|
+
*/
|
|
2997
|
+
declare class ProgressBarComponent {
|
|
2998
|
+
/** Progress from 0 to 100; values outside the range are clamped. */
|
|
2999
|
+
value: _angular_core.InputSignal<number>;
|
|
3000
|
+
/** Figma `Tone`: color of the fill. */
|
|
3001
|
+
tone: _angular_core.InputSignal<AdsProgressTone>;
|
|
3002
|
+
/** Figma `Size`: sm 4 px, md 8 px high. */
|
|
3003
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
3004
|
+
/** Accessible name, such as "Weights total". */
|
|
3005
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
3006
|
+
protected clampedValue: _angular_core.Signal<number>;
|
|
3007
|
+
protected fillClass: _angular_core.Signal<string>;
|
|
3008
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
3009
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "ads-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
/**
|
|
3013
|
+
* Figma → Inputs & Dropdowns → Textarea: a multi-line field with a label,
|
|
3014
|
+
* helper text and an optional character counter. Works with `[(ngModel)]`
|
|
3015
|
+
* and reactive forms.
|
|
3016
|
+
*/
|
|
3017
|
+
declare class TextareaComponent implements ControlValueAccessor {
|
|
3018
|
+
readonly id: string;
|
|
3019
|
+
/** Label above the field (Figma `Show label`). */
|
|
3020
|
+
label: _angular_core.InputSignal<string>;
|
|
3021
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
3022
|
+
/** Figma `Size`: sm (12 px text) or md (14 px text, default). */
|
|
3023
|
+
size: _angular_core.InputSignal<AdsControlSize>;
|
|
3024
|
+
/** Visible rows. Figma uses 4 (sm) and 5 (md) rows of text. */
|
|
3025
|
+
rows: _angular_core.InputSignal<number>;
|
|
3026
|
+
/** Helper text under the field (Figma `Show helper`). */
|
|
3027
|
+
helper: _angular_core.InputSignal<string>;
|
|
3028
|
+
/** Maximum characters. Shows the counter (Figma `Show counter`). */
|
|
3029
|
+
maxLength: _angular_core.InputSignal<number>;
|
|
3030
|
+
/** Value when not used with forms. */
|
|
3031
|
+
value: _angular_core.InputSignal<string>;
|
|
3032
|
+
/** Figma `State=Error`: red border and `errorMessage` instead of the helper. */
|
|
3033
|
+
hasError: _angular_core.InputSignal<boolean>;
|
|
3034
|
+
errorMessage: _angular_core.InputSignal<string>;
|
|
3035
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
3036
|
+
/** Emits the value on every change. */
|
|
3037
|
+
valueChange: _angular_core.OutputEmitterRef<string>;
|
|
3038
|
+
protected currentValue: _angular_core.WritableSignal<string>;
|
|
3039
|
+
private cvaMode;
|
|
3040
|
+
private cvaDisabled;
|
|
3041
|
+
private onChange;
|
|
3042
|
+
protected onTouched: () => void;
|
|
3043
|
+
protected readonly controlClasses = "min-w-0 flex-1 self-stretch border-0 bg-transparent p-0 font-[inherit] text-[length:inherit] leading-[inherit] text-body outline-none placeholder:text-tertiary disabled:cursor-not-allowed disabled:text-disabled disabled:placeholder:text-disabled resize-y";
|
|
3044
|
+
protected isDisabled: _angular_core.Signal<boolean>;
|
|
3045
|
+
private state;
|
|
3046
|
+
protected boxClasses: _angular_core.Signal<string>;
|
|
3047
|
+
protected helperText: _angular_core.Signal<string>;
|
|
3048
|
+
protected helperClasses: _angular_core.Signal<string>;
|
|
3049
|
+
constructor();
|
|
3050
|
+
protected onInput(value: string): void;
|
|
3051
|
+
writeValue(value: unknown): void;
|
|
3052
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
3053
|
+
registerOnTouched(fn: () => void): void;
|
|
3054
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3055
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
3056
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaComponent, "ads-textarea", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Figma → Inputs & Dropdowns → File Input: a drop area to pick or drop
|
|
3061
|
+
* files, which then shows the selected files. The value is a `File[]`; it
|
|
3062
|
+
* works with `[(ngModel)]` and reactive forms. Uploading is up to the page.
|
|
3063
|
+
*/
|
|
3064
|
+
declare class FileInputComponent implements ControlValueAccessor {
|
|
3065
|
+
readonly id: string;
|
|
3066
|
+
/** Label above the drop area. */
|
|
3067
|
+
label: _angular_core.InputSignal<string>;
|
|
3068
|
+
/** Text in the empty drop area. */
|
|
3069
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
3070
|
+
/** Text of the button that opens the file picker. */
|
|
3071
|
+
buttonLabel: _angular_core.InputSignal<string>;
|
|
3072
|
+
/** Accepted types, as in the native `accept` attribute, such as `.zip,.pdf`. */
|
|
3073
|
+
accept: _angular_core.InputSignal<string>;
|
|
3074
|
+
/** Allows several files. */
|
|
3075
|
+
multiple: _angular_core.InputSignal<boolean>;
|
|
3076
|
+
/** Helper text, such as the accepted formats. */
|
|
3077
|
+
helper: _angular_core.InputSignal<string>;
|
|
3078
|
+
/** Figma `State=Error`: red border and `errorMessage` instead of the helper. */
|
|
3079
|
+
hasError: _angular_core.InputSignal<boolean>;
|
|
3080
|
+
errorMessage: _angular_core.InputSignal<string>;
|
|
3081
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
3082
|
+
/** Emits the selected files after every change. */
|
|
3083
|
+
filesChange: _angular_core.OutputEmitterRef<File[]>;
|
|
3084
|
+
protected files: _angular_core.WritableSignal<File[]>;
|
|
3085
|
+
protected dragging: _angular_core.WritableSignal<boolean>;
|
|
3086
|
+
private cvaDisabled;
|
|
3087
|
+
private onChange;
|
|
3088
|
+
protected onTouched: () => void;
|
|
3089
|
+
protected isDisabled: _angular_core.Signal<boolean>;
|
|
3090
|
+
protected helperText: _angular_core.Signal<string>;
|
|
3091
|
+
protected helperClasses: _angular_core.Signal<string>;
|
|
3092
|
+
protected areaClasses: _angular_core.Signal<"flex min-h-23 flex-col items-start justify-center gap-3 rounded-md border border-solid p-4 transition-colors border-disabled bg-disabled" | "flex min-h-23 flex-col items-start justify-center gap-3 rounded-md border border-solid p-4 transition-colors border-error bg-surface" | "flex min-h-23 flex-col items-start justify-center gap-3 rounded-md border border-solid p-4 transition-colors border-default bg-surface" | "flex min-h-23 flex-col items-start justify-center gap-3 rounded-md border border-solid p-4 transition-colors border-brand-strong bg-brand-muted" | "flex min-h-23 flex-col items-start justify-center gap-3 rounded-md border border-solid p-4 transition-colors border-brand bg-brand-subtle hover:border-brand-strong hover:bg-brand-muted">;
|
|
3093
|
+
protected onPicked(native: HTMLInputElement): void;
|
|
3094
|
+
protected onDragOver(event: DragEvent): void;
|
|
3095
|
+
protected onDrop(event: DragEvent): void;
|
|
3096
|
+
protected remove(index: number): void;
|
|
3097
|
+
private set;
|
|
3098
|
+
writeValue(value: unknown): void;
|
|
3099
|
+
registerOnChange(fn: (files: File[]) => void): void;
|
|
3100
|
+
registerOnTouched(fn: () => void): void;
|
|
3101
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3102
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputComponent, never>;
|
|
3103
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileInputComponent, "ads-file-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "helper": { "alias": "helper"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "filesChange": "filesChange"; }, never, never, true, never>;
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
export { ActiveFiltersComponent, AlertComponent, AlertModalComponent, BadgeComponent, BulkSelectComponent, ButtonComponent, CheckboxComponent, ConfirmationModalComponent, CounterComponent, DEPRECATED_ICON_ALIASES, DatepickerSelectorComponent, DelicateConfirmationModalComponent, ErrorMessageComponent, FIGMA_ICONS, FeedbackModalComponent, FileInputComponent, FilterBarComponent, FilterButtonComponent, FilterChipComponent, FilterChipGroupComponent, FilterPanelComponent, FloatingButtonComponent, HelpModalComponent, HighRiskMetricComponent, ICONS, IconButtonComponent, IconComponent, InformationModalComponent, InputComponent, InputDatepickerComponent, InputRangepickerComponent, InputWeekpickerComponent, LEGACY_ICONS, MainModalComponent, MetricsCardComponent, ModalComponent, MultipleSelectorComponent, NavigationBarComponent, NotificationComponent, NotificationModalComponent, OverlayComponent, PeriodSelectComponent, ProgressBarComponent, RadioCardComponent, RadioGroupComponent, ReportCardComponent, ReviewModalComponent, SegmentedControlComponent, SideNavComponent, SingleSelectorComponent, SliderComponent, SliderFieldComponent, SnackbarComponent, SplitButtonComponent, StateComponent, TabBarComponent, TableCellDirective, TableComponent, TabsComponent, TagComponent, TextareaComponent, ToastComponent, ToasterComponent, ToolbarComponent, TrendBadgeComponent, containerShapes, stateBackgroundColors, stateBorderColors, stateTextColors };
|
|
3107
|
+
export type { AdsActiveFilter, AdsAlertTone, AdsBadgeEmphasis, AdsBadgeSize, AdsBadgeTone, AdsButtonColor, AdsButtonFigmaVariant, AdsButtonSize, AdsButtonType, AdsButtonVariant, AdsCheckboxAppearance, AdsCheckboxControlColor, AdsCheckboxLabelColor, AdsCheckboxLabelPosition, AdsConfirmationTone, AdsControlSize, AdsFieldSize, AdsFilterButtonOption, AdsFilterButtonRow, AdsFilterButtonSortDirection, AdsFilterButtonSortRow, AdsFilterButtonValueType, AdsFilterChipOption, AdsFilterOperators, AdsHighRiskMetricVariant, AdsIconName, AdsInputFigmaType, AdsInputType, AdsMainModalAction, AdsMainModalActionsAlign, AdsMetricsCardVariant, AdsModalAction, AdsModalActionsAlign, AdsModalSize, AdsMultipleSelectorAsyncOptions, AdsMultipleSelectorOption, AdsMultipleSelectorOptionGroup, AdsMultipleSelectorOptionOrGroup, AdsMultipleSelectorValue, AdsNavigationBarMenuItem, AdsPeriodSelectSize, AdsProgressTone, AdsRadioGroupDirection, AdsRadioOption, AdsReportCardVariant, AdsReviewItem, AdsReviewModalSize, AdsSegmentOption, AdsSideNavChildOption, AdsSideNavFooterButton, AdsSideNavOption, AdsSideNavRoute, AdsSideNavSection, AdsSideNavVariant, AdsSingleSelectorAsyncOptions, AdsSingleSelectorOption, AdsSingleSelectorOptionGroup, AdsSingleSelectorOptionOrGroup, AdsSingleSelectorValue, AdsSplitButtonVariant, AdsStatusTone, AdsTabType, AdsTableCellContext, AdsTableCellType, AdsTableColumnMeta, AdsTablePaginationLayout, AdsTableSize, AdsToastItem, AdsToastOptions, AdsToastTone, AdsTrendDirection, DatepickerSelectorButtonLabelMode, FeedbackPayload, FeedbackResponseType, PaymentCardBrand, PickerMode, PickerOption, SnackbarAlert, SnackbarAlertType, StoryTable, StoryTableCell, StoryTableCellContext, StoryTableColumn, StoryTableHeader, StoryTableRow, StoryTableRowData, Tab, TableActionButton, TableDragDropEvent, TablePropertyType, TableSortCriterion, TableSortDirection, TableStateStyle, TableStateStylesMap };
|