@lesterarte/sefin-ui 0.0.10-dev.0 → 0.0.11
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.
|
@@ -1,1324 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Injector, AfterViewInit, OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy, ChangeDetectorRef, NgZone } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Color design tokens as TypeScript constants
|
|
7
|
-
* Based on Secretaría de Finanzas brand guidelines
|
|
8
|
-
* These values are the source of truth for all color tokens
|
|
9
|
-
*/
|
|
10
|
-
declare const COLOR_TOKENS: {
|
|
11
|
-
readonly primary: {
|
|
12
|
-
readonly 50: "#e6f7fb";
|
|
13
|
-
readonly 100: "#b3e5f0";
|
|
14
|
-
readonly 200: "#80d3e5";
|
|
15
|
-
readonly 300: "#4dc1da";
|
|
16
|
-
readonly 400: "#2ab0cf";
|
|
17
|
-
readonly 500: "#55C3D8";
|
|
18
|
-
readonly 600: "#4aafc4";
|
|
19
|
-
readonly 700: "#3f9bb0";
|
|
20
|
-
readonly 800: "#34879c";
|
|
21
|
-
readonly 900: "#297388";
|
|
22
|
-
};
|
|
23
|
-
readonly secondary: {
|
|
24
|
-
readonly 50: "#f5f5f5";
|
|
25
|
-
readonly 100: "#e8e8e8";
|
|
26
|
-
readonly 200: "#cecece";
|
|
27
|
-
readonly 300: "#b5b5b5";
|
|
28
|
-
readonly 400: "#9b9b9b";
|
|
29
|
-
readonly 500: "#828282";
|
|
30
|
-
readonly 600: "#686868";
|
|
31
|
-
readonly 700: "#4f4f4f";
|
|
32
|
-
readonly 800: "#383838";
|
|
33
|
-
readonly 900: "#2a2a2a";
|
|
34
|
-
};
|
|
35
|
-
readonly neutral: {
|
|
36
|
-
readonly 50: "#ffffff";
|
|
37
|
-
readonly 100: "#f5f5f5";
|
|
38
|
-
readonly 200: "#cecece";
|
|
39
|
-
readonly 300: "#b5b5b5";
|
|
40
|
-
readonly 400: "#9b9b9b";
|
|
41
|
-
readonly 500: "#828282";
|
|
42
|
-
readonly 600: "#686868";
|
|
43
|
-
readonly 700: "#4f4f4f";
|
|
44
|
-
readonly 800: "#383838";
|
|
45
|
-
readonly 900: "#2a2a2a";
|
|
46
|
-
};
|
|
47
|
-
readonly success: {
|
|
48
|
-
readonly 50: "#e8f5e9";
|
|
49
|
-
readonly 100: "#c8e6c9";
|
|
50
|
-
readonly 200: "#a5d6a7";
|
|
51
|
-
readonly 300: "#81c784";
|
|
52
|
-
readonly 400: "#66bb6a";
|
|
53
|
-
readonly 500: "#4caf50";
|
|
54
|
-
readonly 600: "#43a047";
|
|
55
|
-
readonly 700: "#388e3c";
|
|
56
|
-
readonly 800: "#2e7d32";
|
|
57
|
-
readonly 900: "#1b5e20";
|
|
58
|
-
};
|
|
59
|
-
readonly warning: {
|
|
60
|
-
readonly 50: "#fff3e0";
|
|
61
|
-
readonly 100: "#ffe0b2";
|
|
62
|
-
readonly 200: "#ffcc80";
|
|
63
|
-
readonly 300: "#ffb74d";
|
|
64
|
-
readonly 400: "#ffa726";
|
|
65
|
-
readonly 500: "#ff9800";
|
|
66
|
-
readonly 600: "#fb8c00";
|
|
67
|
-
readonly 700: "#f57c00";
|
|
68
|
-
readonly 800: "#ef6c00";
|
|
69
|
-
readonly 900: "#e65100";
|
|
70
|
-
};
|
|
71
|
-
readonly error: {
|
|
72
|
-
readonly 50: "#ffebee";
|
|
73
|
-
readonly 100: "#ffcdd2";
|
|
74
|
-
readonly 200: "#ef9a9a";
|
|
75
|
-
readonly 300: "#e57373";
|
|
76
|
-
readonly 400: "#ef5350";
|
|
77
|
-
readonly 500: "#f44336";
|
|
78
|
-
readonly 600: "#e53935";
|
|
79
|
-
readonly 700: "#d32f2f";
|
|
80
|
-
readonly 800: "#c62828";
|
|
81
|
-
readonly 900: "#b71c1c";
|
|
82
|
-
};
|
|
83
|
-
readonly info: {
|
|
84
|
-
readonly 50: "#e0f2f1";
|
|
85
|
-
readonly 100: "#b2dfdb";
|
|
86
|
-
readonly 200: "#80cbc4";
|
|
87
|
-
readonly 300: "#4db6ac";
|
|
88
|
-
readonly 400: "#26a69a";
|
|
89
|
-
readonly 500: "#009688";
|
|
90
|
-
readonly 600: "#00897b";
|
|
91
|
-
readonly 700: "#00796b";
|
|
92
|
-
readonly 800: "#00695c";
|
|
93
|
-
readonly 900: "#004d40";
|
|
94
|
-
};
|
|
95
|
-
readonly brand: {
|
|
96
|
-
readonly darkGray: "#383838";
|
|
97
|
-
readonly lightGray: "#cecece";
|
|
98
|
-
readonly lightBlue: "#55C3D8";
|
|
99
|
-
readonly white: "#ffffff";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Color token names for CSS variable generation
|
|
104
|
-
*/
|
|
105
|
-
type ColorTokenName = 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error' | 'info' | 'brand';
|
|
106
|
-
type ColorShade = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Spacing design tokens
|
|
110
|
-
* Based on 8px grid system
|
|
111
|
-
*/
|
|
112
|
-
declare const SPACING_TOKENS: {
|
|
113
|
-
readonly xs: "4px";
|
|
114
|
-
readonly sm: "8px";
|
|
115
|
-
readonly md: "16px";
|
|
116
|
-
readonly lg: "24px";
|
|
117
|
-
readonly xl: "32px";
|
|
118
|
-
readonly '2xl': "48px";
|
|
119
|
-
readonly '3xl': "64px";
|
|
120
|
-
readonly '4xl': "96px";
|
|
121
|
-
readonly '5xl': "128px";
|
|
122
|
-
};
|
|
123
|
-
type SpacingToken = keyof typeof SPACING_TOKENS;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Typography design tokens
|
|
127
|
-
* Based on Secretaría de Finanzas brand guidelines - Pluto typeface
|
|
128
|
-
*/
|
|
129
|
-
declare const TYPOGRAPHY_TOKENS: {
|
|
130
|
-
readonly fontFamily: {
|
|
131
|
-
readonly base: "'Pluto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
132
|
-
readonly mono: "'Fira Code', 'Courier New', monospace";
|
|
133
|
-
};
|
|
134
|
-
readonly fontSize: {
|
|
135
|
-
readonly xs: "0.75rem";
|
|
136
|
-
readonly sm: "0.875rem";
|
|
137
|
-
readonly base: "1rem";
|
|
138
|
-
readonly lg: "1.125rem";
|
|
139
|
-
readonly xl: "1.25rem";
|
|
140
|
-
readonly '2xl': "1.5rem";
|
|
141
|
-
readonly '3xl': "1.875rem";
|
|
142
|
-
readonly '4xl': "2.25rem";
|
|
143
|
-
readonly '5xl': "3rem";
|
|
144
|
-
};
|
|
145
|
-
readonly fontWeight: {
|
|
146
|
-
readonly light: 300;
|
|
147
|
-
readonly normal: 400;
|
|
148
|
-
readonly medium: 500;
|
|
149
|
-
readonly semibold: 600;
|
|
150
|
-
readonly bold: 700;
|
|
151
|
-
};
|
|
152
|
-
readonly lineHeight: {
|
|
153
|
-
readonly tight: 1.25;
|
|
154
|
-
readonly normal: 1.5;
|
|
155
|
-
readonly relaxed: 1.75;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
type TypographyToken = keyof typeof TYPOGRAPHY_TOKENS;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Border radius design tokens
|
|
162
|
-
*/
|
|
163
|
-
declare const BORDER_RADIUS_TOKENS: {
|
|
164
|
-
readonly none: "0";
|
|
165
|
-
readonly sm: "4px";
|
|
166
|
-
readonly md: "8px";
|
|
167
|
-
readonly lg: "12px";
|
|
168
|
-
readonly xl: "16px";
|
|
169
|
-
readonly '2xl': "24px";
|
|
170
|
-
readonly full: "9999px";
|
|
171
|
-
};
|
|
172
|
-
type BorderRadiusToken = keyof typeof BORDER_RADIUS_TOKENS;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Shadow design tokens
|
|
176
|
-
*/
|
|
177
|
-
declare const SHADOW_TOKENS: {
|
|
178
|
-
readonly none: "none";
|
|
179
|
-
readonly sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
180
|
-
readonly md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)";
|
|
181
|
-
readonly lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)";
|
|
182
|
-
readonly xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)";
|
|
183
|
-
readonly '2xl': "0 25px 50px -12px rgba(0, 0, 0, 0.25)";
|
|
184
|
-
};
|
|
185
|
-
type ShadowToken = keyof typeof SHADOW_TOKENS;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Design tokens index
|
|
189
|
-
* Central export for all design tokens
|
|
190
|
-
*/
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* All design tokens combined
|
|
194
|
-
*/
|
|
195
|
-
declare const DESIGN_TOKENS: {
|
|
196
|
-
colors: () => Promise<{
|
|
197
|
-
readonly primary: {
|
|
198
|
-
readonly 50: "#e6f7fb";
|
|
199
|
-
readonly 100: "#b3e5f0";
|
|
200
|
-
readonly 200: "#80d3e5";
|
|
201
|
-
readonly 300: "#4dc1da";
|
|
202
|
-
readonly 400: "#2ab0cf";
|
|
203
|
-
readonly 500: "#55C3D8";
|
|
204
|
-
readonly 600: "#4aafc4";
|
|
205
|
-
readonly 700: "#3f9bb0";
|
|
206
|
-
readonly 800: "#34879c";
|
|
207
|
-
readonly 900: "#297388";
|
|
208
|
-
};
|
|
209
|
-
readonly secondary: {
|
|
210
|
-
readonly 50: "#f5f5f5";
|
|
211
|
-
readonly 100: "#e8e8e8";
|
|
212
|
-
readonly 200: "#cecece";
|
|
213
|
-
readonly 300: "#b5b5b5";
|
|
214
|
-
readonly 400: "#9b9b9b";
|
|
215
|
-
readonly 500: "#828282";
|
|
216
|
-
readonly 600: "#686868";
|
|
217
|
-
readonly 700: "#4f4f4f";
|
|
218
|
-
readonly 800: "#383838";
|
|
219
|
-
readonly 900: "#2a2a2a";
|
|
220
|
-
};
|
|
221
|
-
readonly neutral: {
|
|
222
|
-
readonly 50: "#ffffff";
|
|
223
|
-
readonly 100: "#f5f5f5";
|
|
224
|
-
readonly 200: "#cecece";
|
|
225
|
-
readonly 300: "#b5b5b5";
|
|
226
|
-
readonly 400: "#9b9b9b";
|
|
227
|
-
readonly 500: "#828282";
|
|
228
|
-
readonly 600: "#686868";
|
|
229
|
-
readonly 700: "#4f4f4f";
|
|
230
|
-
readonly 800: "#383838";
|
|
231
|
-
readonly 900: "#2a2a2a";
|
|
232
|
-
};
|
|
233
|
-
readonly success: {
|
|
234
|
-
readonly 50: "#e8f5e9";
|
|
235
|
-
readonly 100: "#c8e6c9";
|
|
236
|
-
readonly 200: "#a5d6a7";
|
|
237
|
-
readonly 300: "#81c784";
|
|
238
|
-
readonly 400: "#66bb6a";
|
|
239
|
-
readonly 500: "#4caf50";
|
|
240
|
-
readonly 600: "#43a047";
|
|
241
|
-
readonly 700: "#388e3c";
|
|
242
|
-
readonly 800: "#2e7d32";
|
|
243
|
-
readonly 900: "#1b5e20";
|
|
244
|
-
};
|
|
245
|
-
readonly warning: {
|
|
246
|
-
readonly 50: "#fff3e0";
|
|
247
|
-
readonly 100: "#ffe0b2";
|
|
248
|
-
readonly 200: "#ffcc80";
|
|
249
|
-
readonly 300: "#ffb74d";
|
|
250
|
-
readonly 400: "#ffa726";
|
|
251
|
-
readonly 500: "#ff9800";
|
|
252
|
-
readonly 600: "#fb8c00";
|
|
253
|
-
readonly 700: "#f57c00";
|
|
254
|
-
readonly 800: "#ef6c00";
|
|
255
|
-
readonly 900: "#e65100";
|
|
256
|
-
};
|
|
257
|
-
readonly error: {
|
|
258
|
-
readonly 50: "#ffebee";
|
|
259
|
-
readonly 100: "#ffcdd2";
|
|
260
|
-
readonly 200: "#ef9a9a";
|
|
261
|
-
readonly 300: "#e57373";
|
|
262
|
-
readonly 400: "#ef5350";
|
|
263
|
-
readonly 500: "#f44336";
|
|
264
|
-
readonly 600: "#e53935";
|
|
265
|
-
readonly 700: "#d32f2f";
|
|
266
|
-
readonly 800: "#c62828";
|
|
267
|
-
readonly 900: "#b71c1c";
|
|
268
|
-
};
|
|
269
|
-
readonly info: {
|
|
270
|
-
readonly 50: "#e0f2f1";
|
|
271
|
-
readonly 100: "#b2dfdb";
|
|
272
|
-
readonly 200: "#80cbc4";
|
|
273
|
-
readonly 300: "#4db6ac";
|
|
274
|
-
readonly 400: "#26a69a";
|
|
275
|
-
readonly 500: "#009688";
|
|
276
|
-
readonly 600: "#00897b";
|
|
277
|
-
readonly 700: "#00796b";
|
|
278
|
-
readonly 800: "#00695c";
|
|
279
|
-
readonly 900: "#004d40";
|
|
280
|
-
};
|
|
281
|
-
readonly brand: {
|
|
282
|
-
readonly darkGray: "#383838";
|
|
283
|
-
readonly lightGray: "#cecece";
|
|
284
|
-
readonly lightBlue: "#55C3D8";
|
|
285
|
-
readonly white: "#ffffff";
|
|
286
|
-
};
|
|
287
|
-
}>;
|
|
288
|
-
spacing: () => Promise<{
|
|
289
|
-
readonly xs: "4px";
|
|
290
|
-
readonly sm: "8px";
|
|
291
|
-
readonly md: "16px";
|
|
292
|
-
readonly lg: "24px";
|
|
293
|
-
readonly xl: "32px";
|
|
294
|
-
readonly '2xl': "48px";
|
|
295
|
-
readonly '3xl': "64px";
|
|
296
|
-
readonly '4xl': "96px";
|
|
297
|
-
readonly '5xl': "128px";
|
|
298
|
-
}>;
|
|
299
|
-
typography: () => Promise<{
|
|
300
|
-
readonly fontFamily: {
|
|
301
|
-
readonly base: "'Pluto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
|
|
302
|
-
readonly mono: "'Fira Code', 'Courier New', monospace";
|
|
303
|
-
};
|
|
304
|
-
readonly fontSize: {
|
|
305
|
-
readonly xs: "0.75rem";
|
|
306
|
-
readonly sm: "0.875rem";
|
|
307
|
-
readonly base: "1rem";
|
|
308
|
-
readonly lg: "1.125rem";
|
|
309
|
-
readonly xl: "1.25rem";
|
|
310
|
-
readonly '2xl': "1.5rem";
|
|
311
|
-
readonly '3xl': "1.875rem";
|
|
312
|
-
readonly '4xl': "2.25rem";
|
|
313
|
-
readonly '5xl': "3rem";
|
|
314
|
-
};
|
|
315
|
-
readonly fontWeight: {
|
|
316
|
-
readonly light: 300;
|
|
317
|
-
readonly normal: 400;
|
|
318
|
-
readonly medium: 500;
|
|
319
|
-
readonly semibold: 600;
|
|
320
|
-
readonly bold: 700;
|
|
321
|
-
};
|
|
322
|
-
readonly lineHeight: {
|
|
323
|
-
readonly tight: 1.25;
|
|
324
|
-
readonly normal: 1.5;
|
|
325
|
-
readonly relaxed: 1.75;
|
|
326
|
-
};
|
|
327
|
-
}>;
|
|
328
|
-
borderRadius: () => Promise<{
|
|
329
|
-
readonly none: "0";
|
|
330
|
-
readonly sm: "4px";
|
|
331
|
-
readonly md: "8px";
|
|
332
|
-
readonly lg: "12px";
|
|
333
|
-
readonly xl: "16px";
|
|
334
|
-
readonly '2xl': "24px";
|
|
335
|
-
readonly full: "9999px";
|
|
336
|
-
}>;
|
|
337
|
-
shadow: () => Promise<{
|
|
338
|
-
readonly none: "none";
|
|
339
|
-
readonly sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
|
|
340
|
-
readonly md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)";
|
|
341
|
-
readonly lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)";
|
|
342
|
-
readonly xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)";
|
|
343
|
-
readonly '2xl': "0 25px 50px -12px rgba(0, 0, 0, 0.25)";
|
|
344
|
-
}>;
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Light theme configuration
|
|
349
|
-
* Based on Secretaría de Finanzas brand colors
|
|
350
|
-
*/
|
|
351
|
-
declare const LIGHT_THEME: {
|
|
352
|
-
readonly name: "light";
|
|
353
|
-
readonly colors: {
|
|
354
|
-
readonly primary: "#55C3D8";
|
|
355
|
-
readonly 'primary-dark': "#3f9bb0";
|
|
356
|
-
readonly 'primary-light': "#4dc1da";
|
|
357
|
-
readonly secondary: "#383838";
|
|
358
|
-
readonly 'secondary-dark': "#2a2a2a";
|
|
359
|
-
readonly 'secondary-light': "#686868";
|
|
360
|
-
readonly background: "#ffffff";
|
|
361
|
-
readonly 'background-elevated': "#ffffff";
|
|
362
|
-
readonly surface: "#ffffff";
|
|
363
|
-
readonly 'surface-hover': "#cecece";
|
|
364
|
-
readonly text: "#383838";
|
|
365
|
-
readonly 'text-secondary': "#686868";
|
|
366
|
-
readonly 'text-disabled': "#9b9b9b";
|
|
367
|
-
readonly border: "#cecece";
|
|
368
|
-
readonly 'border-focus': "#55C3D8";
|
|
369
|
-
readonly success: "#4caf50";
|
|
370
|
-
readonly warning: "#ff9800";
|
|
371
|
-
readonly error: "#f44336";
|
|
372
|
-
readonly info: "#009688";
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Dark theme configuration
|
|
378
|
-
* Based on Secretaría de Finanzas brand colors (inverted)
|
|
379
|
-
*/
|
|
380
|
-
declare const DARK_THEME: {
|
|
381
|
-
readonly name: "dark";
|
|
382
|
-
readonly colors: {
|
|
383
|
-
readonly primary: "#55C3D8";
|
|
384
|
-
readonly 'primary-dark': "#4dc1da";
|
|
385
|
-
readonly 'primary-light': "#3f9bb0";
|
|
386
|
-
readonly secondary: "#cecece";
|
|
387
|
-
readonly 'secondary-dark': "#9b9b9b";
|
|
388
|
-
readonly 'secondary-light': "#cecece";
|
|
389
|
-
readonly background: "#383838";
|
|
390
|
-
readonly 'background-elevated': "#4f4f4f";
|
|
391
|
-
readonly surface: "#4f4f4f";
|
|
392
|
-
readonly 'surface-hover': "#686868";
|
|
393
|
-
readonly text: "#ffffff";
|
|
394
|
-
readonly 'text-secondary': "#cecece";
|
|
395
|
-
readonly 'text-disabled': "#828282";
|
|
396
|
-
readonly border: "#686868";
|
|
397
|
-
readonly 'border-focus': "#55C3D8";
|
|
398
|
-
readonly success: "#66bb6a";
|
|
399
|
-
readonly warning: "#ffa726";
|
|
400
|
-
readonly error: "#ef5350";
|
|
401
|
-
readonly info: "#26a69a";
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Brand theme configuration
|
|
407
|
-
* Exact colors from Secretaría de Finanzas brand guidelines
|
|
408
|
-
*/
|
|
409
|
-
declare const BRAND_THEME: {
|
|
410
|
-
readonly name: "brand";
|
|
411
|
-
readonly colors: {
|
|
412
|
-
readonly primary: "#55C3D8";
|
|
413
|
-
readonly 'primary-dark': "#3f9bb0";
|
|
414
|
-
readonly 'primary-light': "#4dc1da";
|
|
415
|
-
readonly secondary: "#383838";
|
|
416
|
-
readonly 'secondary-dark': "#2a2a2a";
|
|
417
|
-
readonly 'secondary-light': "#686868";
|
|
418
|
-
readonly background: "#ffffff";
|
|
419
|
-
readonly 'background-elevated': "#ffffff";
|
|
420
|
-
readonly surface: "#ffffff";
|
|
421
|
-
readonly 'surface-hover': "#cecece";
|
|
422
|
-
readonly text: "#383838";
|
|
423
|
-
readonly 'text-secondary': "#686868";
|
|
424
|
-
readonly 'text-disabled': "#9b9b9b";
|
|
425
|
-
readonly border: "#cecece";
|
|
426
|
-
readonly 'border-focus': "#55C3D8";
|
|
427
|
-
readonly success: "#4caf50";
|
|
428
|
-
readonly warning: "#ff9800";
|
|
429
|
-
readonly error: "#f44336";
|
|
430
|
-
readonly info: "#009688";
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Themes index
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
type Theme = 'light' | 'dark' | 'brand';
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Shared types and interfaces
|
|
442
|
-
*/
|
|
443
|
-
type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
|
|
444
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
445
|
-
type InputSize = 'sm' | 'md' | 'lg';
|
|
446
|
-
type CardVariant = 'default' | 'elevated' | 'outlined';
|
|
447
|
-
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
448
|
-
type TypographySize = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
449
|
-
type TypographyWeight = 'light' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
450
|
-
type TypographyColor = 'text' | 'text-secondary' | 'text-disabled' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
451
|
-
type TypographyLineHeight = 'tight' | 'normal' | 'relaxed';
|
|
452
|
-
interface BaseComponent {
|
|
453
|
-
disabled?: boolean;
|
|
454
|
-
class?: string;
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* Theme color configuration
|
|
458
|
-
*/
|
|
459
|
-
interface ThemeColors {
|
|
460
|
-
primary: string;
|
|
461
|
-
'primary-dark'?: string;
|
|
462
|
-
'primary-light'?: string;
|
|
463
|
-
secondary: string;
|
|
464
|
-
'secondary-dark'?: string;
|
|
465
|
-
'secondary-light'?: string;
|
|
466
|
-
background: string;
|
|
467
|
-
'background-elevated'?: string;
|
|
468
|
-
surface: string;
|
|
469
|
-
'surface-hover'?: string;
|
|
470
|
-
text: string;
|
|
471
|
-
'text-secondary'?: string;
|
|
472
|
-
'text-disabled'?: string;
|
|
473
|
-
border: string;
|
|
474
|
-
'border-focus'?: string;
|
|
475
|
-
success?: string;
|
|
476
|
-
warning?: string;
|
|
477
|
-
error?: string;
|
|
478
|
-
info?: string;
|
|
479
|
-
[key: string]: string | undefined;
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* Custom theme configuration interface
|
|
483
|
-
* Allows users to create their own themes with custom colors, typography, spacing, etc.
|
|
484
|
-
* Supports both single theme and light/dark variants.
|
|
485
|
-
*/
|
|
486
|
-
interface CustomTheme {
|
|
487
|
-
name: string;
|
|
488
|
-
colors: ThemeColors;
|
|
489
|
-
/**
|
|
490
|
-
* Optional light and dark variants for the theme
|
|
491
|
-
* If provided, allows switching between light and dark modes
|
|
492
|
-
*/
|
|
493
|
-
variants?: {
|
|
494
|
-
light?: ThemeColors;
|
|
495
|
-
dark?: ThemeColors;
|
|
496
|
-
};
|
|
497
|
-
typography?: {
|
|
498
|
-
fontFamily?: {
|
|
499
|
-
base?: string;
|
|
500
|
-
mono?: string;
|
|
501
|
-
[key: string]: string | undefined;
|
|
502
|
-
};
|
|
503
|
-
fontSize?: {
|
|
504
|
-
xs?: string;
|
|
505
|
-
sm?: string;
|
|
506
|
-
base?: string;
|
|
507
|
-
lg?: string;
|
|
508
|
-
xl?: string;
|
|
509
|
-
'2xl'?: string;
|
|
510
|
-
'3xl'?: string;
|
|
511
|
-
'4xl'?: string;
|
|
512
|
-
'5xl'?: string;
|
|
513
|
-
[key: string]: string | undefined;
|
|
514
|
-
};
|
|
515
|
-
fontWeight?: {
|
|
516
|
-
light?: number;
|
|
517
|
-
normal?: number;
|
|
518
|
-
medium?: number;
|
|
519
|
-
semibold?: number;
|
|
520
|
-
bold?: number;
|
|
521
|
-
[key: string]: number | undefined;
|
|
522
|
-
};
|
|
523
|
-
lineHeight?: {
|
|
524
|
-
tight?: number;
|
|
525
|
-
normal?: number;
|
|
526
|
-
relaxed?: number;
|
|
527
|
-
[key: string]: number | undefined;
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
spacing?: {
|
|
531
|
-
xs?: string;
|
|
532
|
-
sm?: string;
|
|
533
|
-
md?: string;
|
|
534
|
-
lg?: string;
|
|
535
|
-
xl?: string;
|
|
536
|
-
'2xl'?: string;
|
|
537
|
-
'3xl'?: string;
|
|
538
|
-
'4xl'?: string;
|
|
539
|
-
'5xl'?: string;
|
|
540
|
-
[key: string]: string | undefined;
|
|
541
|
-
};
|
|
542
|
-
borderRadius?: {
|
|
543
|
-
none?: string;
|
|
544
|
-
sm?: string;
|
|
545
|
-
md?: string;
|
|
546
|
-
lg?: string;
|
|
547
|
-
xl?: string;
|
|
548
|
-
'2xl'?: string;
|
|
549
|
-
full?: string;
|
|
550
|
-
[key: string]: string | undefined;
|
|
551
|
-
};
|
|
552
|
-
shadow?: {
|
|
553
|
-
none?: string;
|
|
554
|
-
sm?: string;
|
|
555
|
-
md?: string;
|
|
556
|
-
lg?: string;
|
|
557
|
-
xl?: string;
|
|
558
|
-
'2xl'?: string;
|
|
559
|
-
[key: string]: string | undefined;
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* Theme loader utility
|
|
565
|
-
* Generates CSS variables from design tokens
|
|
566
|
-
*/
|
|
567
|
-
declare class ThemeLoader {
|
|
568
|
-
/**
|
|
569
|
-
* Load a theme and apply it to the document root
|
|
570
|
-
* @param themeName - Predefined theme name ('light', 'dark', 'brand') or a CustomTheme object
|
|
571
|
-
* @param variant - Optional variant ('light' or 'dark') for CustomTheme with variants support
|
|
572
|
-
*/
|
|
573
|
-
static loadTheme(themeName?: Theme | CustomTheme, variant?: 'light' | 'dark'): void;
|
|
574
|
-
/**
|
|
575
|
-
* Load a custom theme variant (light or dark)
|
|
576
|
-
* @param customTheme - CustomTheme object with variants support
|
|
577
|
-
* @param variant - Variant to load ('light' or 'dark')
|
|
578
|
-
*/
|
|
579
|
-
static loadThemeVariant(customTheme: CustomTheme, variant: 'light' | 'dark'): void;
|
|
580
|
-
/**
|
|
581
|
-
* Get theme configuration by name
|
|
582
|
-
*/
|
|
583
|
-
private static getTheme;
|
|
584
|
-
/**
|
|
585
|
-
* Get all CSS variables as a string (useful for SSR or static generation)
|
|
586
|
-
* @param themeName - Predefined theme name ('light', 'dark', 'brand') or a CustomTheme object
|
|
587
|
-
* @param variant - Optional variant ('light' or 'dark') for CustomTheme with variants support
|
|
588
|
-
*/
|
|
589
|
-
static getThemeCSS(themeName?: Theme | CustomTheme, variant?: 'light' | 'dark'): string;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
593
|
-
declare class AvatarComponent {
|
|
594
|
-
/** Avatar size. Options: 'xs' | 'sm' | 'md' | 'lg' | 'xl' */
|
|
595
|
-
size: AvatarSize;
|
|
596
|
-
/** Image source URL */
|
|
597
|
-
src?: string;
|
|
598
|
-
/** Alt text for the image */
|
|
599
|
-
alt: string;
|
|
600
|
-
/** Initials to display when no image is provided */
|
|
601
|
-
initials?: string;
|
|
602
|
-
/** Whether to show a border/ring around the avatar */
|
|
603
|
-
bordered: boolean;
|
|
604
|
-
/** Additional CSS classes */
|
|
605
|
-
class: string;
|
|
606
|
-
get avatarClasses(): string;
|
|
607
|
-
get displayInitials(): string;
|
|
608
|
-
onImageError(event: Event): void;
|
|
609
|
-
get iconSize(): 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
610
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
611
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sefin-avatar", never, { "size": { "alias": "size"; "required": false; }; "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
type BadgeVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
615
|
-
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
616
|
-
declare class BadgeComponent {
|
|
617
|
-
/** Badge variant style. Options: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' */
|
|
618
|
-
variant: BadgeVariant;
|
|
619
|
-
/** Badge size. Options: 'sm' | 'md' | 'lg' */
|
|
620
|
-
size: BadgeSize;
|
|
621
|
-
/** Whether the badge should be displayed as a dot (no text) */
|
|
622
|
-
dot: boolean;
|
|
623
|
-
/** Maximum number to show before displaying as "+N" */
|
|
624
|
-
max?: number;
|
|
625
|
-
/** Badge value (number or text) */
|
|
626
|
-
value?: number | string;
|
|
627
|
-
/** Additional CSS classes */
|
|
628
|
-
class: string;
|
|
629
|
-
get badgeClasses(): string;
|
|
630
|
-
get displayValue(): string;
|
|
631
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
632
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "sefin-badge", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
declare class ButtonComponent {
|
|
636
|
-
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
637
|
-
variant: ButtonVariant;
|
|
638
|
-
/** Button size. Options: 'sm' | 'md' | 'lg' */
|
|
639
|
-
size: ButtonSize;
|
|
640
|
-
/** Whether the button is disabled */
|
|
641
|
-
disabled: boolean;
|
|
642
|
-
/** Button type. Options: 'button' | 'submit' | 'reset' */
|
|
643
|
-
type: 'button' | 'submit' | 'reset';
|
|
644
|
-
/** Additional CSS classes */
|
|
645
|
-
class: string;
|
|
646
|
-
clicked: EventEmitter<MouseEvent>;
|
|
647
|
-
onClick(event: MouseEvent): void;
|
|
648
|
-
get buttonClasses(): string;
|
|
649
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
650
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "sefin-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
654
|
-
declare class IconComponent {
|
|
655
|
-
private injector;
|
|
656
|
-
private sanitizer;
|
|
657
|
-
constructor(injector: Injector);
|
|
658
|
-
/** Icon name from Lucide Angular (e.g., 'home', 'search', 'user') */
|
|
659
|
-
name?: string;
|
|
660
|
-
/** Icon size. Options: 'xs' | 'sm' | 'md' | 'lg' | 'xl' */
|
|
661
|
-
size: IconSize;
|
|
662
|
-
/** Custom color for the icon */
|
|
663
|
-
color?: string;
|
|
664
|
-
/** Whether the icon should be rotated 180 degrees */
|
|
665
|
-
rotate: boolean;
|
|
666
|
-
/** Whether the icon should be flipped horizontally */
|
|
667
|
-
flipH: boolean;
|
|
668
|
-
/** Whether the icon should be flipped vertically */
|
|
669
|
-
flipV: boolean;
|
|
670
|
-
/** Additional CSS classes */
|
|
671
|
-
class: string;
|
|
672
|
-
get iconClasses(): string;
|
|
673
|
-
get sizeValue(): number;
|
|
674
|
-
get lucideIconName(): string | undefined;
|
|
675
|
-
get iconSvgHtml(): any;
|
|
676
|
-
private escapeHtml;
|
|
677
|
-
private getTransform;
|
|
678
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
679
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sefin-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "flipH": { "alias": "flipH"; "required": false; }; "flipV": { "alias": "flipV"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
declare class IconButtonComponent {
|
|
683
|
-
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
684
|
-
variant: ButtonVariant;
|
|
685
|
-
/** Button size. Options: 'sm' | 'md' | 'lg' */
|
|
686
|
-
size: ButtonSize;
|
|
687
|
-
/** Whether the button is disabled */
|
|
688
|
-
disabled: boolean;
|
|
689
|
-
/** Button type. Options: 'button' | 'submit' | 'reset' */
|
|
690
|
-
type: 'button' | 'submit' | 'reset';
|
|
691
|
-
/** Additional CSS classes */
|
|
692
|
-
class: string;
|
|
693
|
-
/** Accessibility label for the button */
|
|
694
|
-
ariaLabel: string;
|
|
695
|
-
/** Whether the button should be rounded (circular) */
|
|
696
|
-
rounded: boolean;
|
|
697
|
-
clicked: EventEmitter<MouseEvent>;
|
|
698
|
-
onClick(event: MouseEvent): void;
|
|
699
|
-
get buttonClasses(): string;
|
|
700
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
701
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "sefin-icon-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
type FabSize = 'sm' | 'md' | 'lg';
|
|
705
|
-
declare class FabButtonComponent {
|
|
706
|
-
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
707
|
-
variant: ButtonVariant;
|
|
708
|
-
/** FAB size. Options: 'sm' | 'md' | 'lg' */
|
|
709
|
-
size: FabSize;
|
|
710
|
-
/** Whether the button is disabled */
|
|
711
|
-
disabled: boolean;
|
|
712
|
-
/** Button type. Options: 'button' | 'submit' | 'reset' */
|
|
713
|
-
type: 'button' | 'submit' | 'reset';
|
|
714
|
-
/** Additional CSS classes */
|
|
715
|
-
class: string;
|
|
716
|
-
/** Accessibility label for the button */
|
|
717
|
-
ariaLabel: string;
|
|
718
|
-
clicked: EventEmitter<MouseEvent>;
|
|
719
|
-
onClick(event: MouseEvent): void;
|
|
720
|
-
get buttonClasses(): string;
|
|
721
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FabButtonComponent, never>;
|
|
722
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FabButtonComponent, "sefin-fab-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
type ChipVariant = 'default' | 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
726
|
-
type ChipSize = 'sm' | 'md' | 'lg';
|
|
727
|
-
declare class ChipComponent {
|
|
728
|
-
/** Chip variant style. Options: 'default' | 'primary' | 'secondary' | 'outline' | 'ghost' */
|
|
729
|
-
variant: ChipVariant;
|
|
730
|
-
/** Chip size. Options: 'sm' | 'md' | 'lg' */
|
|
731
|
-
size: ChipSize;
|
|
732
|
-
/** Whether the chip is disabled */
|
|
733
|
-
disabled: boolean;
|
|
734
|
-
/** Whether the chip can be removed (shows remove button) */
|
|
735
|
-
removable: boolean;
|
|
736
|
-
/** Whether the chip is selected (for selectable chips) */
|
|
737
|
-
selected: boolean;
|
|
738
|
-
/** Additional CSS classes */
|
|
739
|
-
class: string;
|
|
740
|
-
removed: EventEmitter<MouseEvent>;
|
|
741
|
-
clicked: EventEmitter<MouseEvent>;
|
|
742
|
-
onRemove(event: MouseEvent): void;
|
|
743
|
-
onClick(event: MouseEvent): void;
|
|
744
|
-
get chipClasses(): string;
|
|
745
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
746
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "sefin-chip", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "removed": "removed"; "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
type TagVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
750
|
-
type TagSize = 'sm' | 'md' | 'lg';
|
|
751
|
-
declare class TagComponent {
|
|
752
|
-
/** Tag variant style. Options: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' */
|
|
753
|
-
variant: TagVariant;
|
|
754
|
-
/** Tag size. Options: 'sm' | 'md' | 'lg' */
|
|
755
|
-
size: TagSize;
|
|
756
|
-
/** Icon name to display before the tag content */
|
|
757
|
-
icon?: string;
|
|
758
|
-
/** Whether the tag can be removed (shows remove button) */
|
|
759
|
-
removable: boolean;
|
|
760
|
-
/** Whether the tag is disabled */
|
|
761
|
-
disabled: boolean;
|
|
762
|
-
/** Additional CSS classes */
|
|
763
|
-
class: string;
|
|
764
|
-
/** Event emitted when the tag is removed */
|
|
765
|
-
removed: EventEmitter<MouseEvent>;
|
|
766
|
-
onRemove(event: MouseEvent): void;
|
|
767
|
-
get tagClasses(): string;
|
|
768
|
-
get iconSize(): 'xs' | 'sm' | 'md';
|
|
769
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
|
|
770
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "sefin-tag", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "removed": "removed"; }, never, ["*"], true, never>;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
type LinkVariant = 'default' | 'primary' | 'secondary' | 'underline';
|
|
774
|
-
type LinkSize = 'sm' | 'md' | 'lg';
|
|
775
|
-
declare class LinkComponent {
|
|
776
|
-
/** Link variant style. Options: 'default' | 'primary' | 'secondary' | 'underline' */
|
|
777
|
-
variant: LinkVariant;
|
|
778
|
-
/** Link size. Options: 'sm' | 'md' | 'lg' */
|
|
779
|
-
size: LinkSize;
|
|
780
|
-
/** Whether the link is disabled */
|
|
781
|
-
disabled: boolean;
|
|
782
|
-
/** Link URL */
|
|
783
|
-
href?: string;
|
|
784
|
-
/** Link target attribute (e.g., '_blank') */
|
|
785
|
-
target?: string;
|
|
786
|
-
/** Link rel attribute */
|
|
787
|
-
rel?: string;
|
|
788
|
-
/** Additional CSS classes */
|
|
789
|
-
class: string;
|
|
790
|
-
/** Whether to show underline */
|
|
791
|
-
underline: boolean;
|
|
792
|
-
get linkClasses(): string;
|
|
793
|
-
onClick(event: Event): void;
|
|
794
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
795
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "sefin-link", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "class": { "alias": "class"; "required": false; }; "underline": { "alias": "underline"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
declare class StackComponent {
|
|
799
|
-
direction: 'row' | 'column';
|
|
800
|
-
spacing: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
801
|
-
align: 'start' | 'center' | 'end' | 'stretch';
|
|
802
|
-
justify: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
803
|
-
wrap: boolean;
|
|
804
|
-
class: string;
|
|
805
|
-
get stackClasses(): string;
|
|
806
|
-
get spacingValue(): string;
|
|
807
|
-
get stackStyles(): {
|
|
808
|
-
[key: string]: string;
|
|
809
|
-
};
|
|
810
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StackComponent, never>;
|
|
811
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StackComponent, "sefin-stack", never, { "direction": { "alias": "direction"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
type ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
815
|
-
type ContainerVariant = 'default' | 'fluid' | 'fixed';
|
|
816
|
-
declare class ContainerComponent {
|
|
817
|
-
/** Container size. Options: 'sm' | 'md' | 'lg' | 'xl' | 'full' */
|
|
818
|
-
size: ContainerSize;
|
|
819
|
-
/** Container variant. Options: 'default' | 'fluid' | 'fixed' */
|
|
820
|
-
variant: ContainerVariant;
|
|
821
|
-
/** Whether the container has padding */
|
|
822
|
-
padding: boolean;
|
|
823
|
-
/** Additional CSS classes */
|
|
824
|
-
class: string;
|
|
825
|
-
get containerClasses(): string;
|
|
826
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerComponent, never>;
|
|
827
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContainerComponent, "sefin-container", never, { "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
declare class CheckboxComponent implements ControlValueAccessor, AfterViewInit, OnChanges {
|
|
831
|
-
checkboxInput?: ElementRef<HTMLInputElement>;
|
|
832
|
-
size: InputSize;
|
|
833
|
-
disabled: boolean;
|
|
834
|
-
indeterminate: boolean;
|
|
835
|
-
class: string;
|
|
836
|
-
label: string;
|
|
837
|
-
name: string;
|
|
838
|
-
value: boolean;
|
|
839
|
-
valueChange: EventEmitter<boolean>;
|
|
840
|
-
checkedChange: EventEmitter<boolean>;
|
|
841
|
-
private onChange;
|
|
842
|
-
private onTouched;
|
|
843
|
-
ngAfterViewInit(): void;
|
|
844
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
845
|
-
onCheckboxChange(event: Event): void;
|
|
846
|
-
writeValue(value: boolean): void;
|
|
847
|
-
registerOnChange(fn: (value: boolean) => void): void;
|
|
848
|
-
registerOnTouched(fn: () => void): void;
|
|
849
|
-
setDisabledState(isDisabled: boolean): void;
|
|
850
|
-
get wrapperClasses(): string;
|
|
851
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
852
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "sefin-checkbox", never, { "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "class": { "alias": "class"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
declare class RadioComponent implements ControlValueAccessor {
|
|
856
|
-
radioInput?: ElementRef<HTMLInputElement>;
|
|
857
|
-
size: InputSize;
|
|
858
|
-
disabled: boolean;
|
|
859
|
-
class: string;
|
|
860
|
-
label: string;
|
|
861
|
-
name: string;
|
|
862
|
-
value: string | number;
|
|
863
|
-
checked: boolean;
|
|
864
|
-
valueChange: EventEmitter<string | number>;
|
|
865
|
-
checkedChange: EventEmitter<boolean>;
|
|
866
|
-
private onChange;
|
|
867
|
-
private onTouched;
|
|
868
|
-
onRadioChange(event: Event): void;
|
|
869
|
-
writeValue(value: string | number): void;
|
|
870
|
-
registerOnChange(fn: (value: string | number) => void): void;
|
|
871
|
-
registerOnTouched(fn: () => void): void;
|
|
872
|
-
setDisabledState(isDisabled: boolean): void;
|
|
873
|
-
get wrapperClasses(): string;
|
|
874
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
|
875
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "sefin-radio", never, { "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "valueChange": "valueChange"; "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
interface SelectOption {
|
|
879
|
-
value: string | number;
|
|
880
|
-
label: string;
|
|
881
|
-
disabled?: boolean;
|
|
882
|
-
}
|
|
883
|
-
declare class SelectComponent implements ControlValueAccessor, OnInit, OnDestroy, OnChanges {
|
|
884
|
-
containerRef?: ElementRef<HTMLDivElement>;
|
|
885
|
-
dropdownRef?: ElementRef<HTMLDivElement>;
|
|
886
|
-
buttonRef?: ElementRef<HTMLButtonElement>;
|
|
887
|
-
options: SelectOption[];
|
|
888
|
-
placeholder: string;
|
|
889
|
-
disabled: boolean;
|
|
890
|
-
size: InputSize;
|
|
891
|
-
class: string;
|
|
892
|
-
value: string | number | null;
|
|
893
|
-
valueChange: EventEmitter<string | number>;
|
|
894
|
-
optionSelected: EventEmitter<SelectOption>;
|
|
895
|
-
isOpen: boolean;
|
|
896
|
-
selectedIndex: number;
|
|
897
|
-
private onChange;
|
|
898
|
-
private onTouched;
|
|
899
|
-
ngOnInit(): void;
|
|
900
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
901
|
-
ngOnDestroy(): void;
|
|
902
|
-
onClickOutside(event: MouseEvent): void;
|
|
903
|
-
onEscapeKey(event: Event): void;
|
|
904
|
-
toggleDropdown(): void;
|
|
905
|
-
openDropdown(): void;
|
|
906
|
-
closeDropdown(): void;
|
|
907
|
-
selectOption(option: SelectOption): void;
|
|
908
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
909
|
-
private updateSelectedIndex;
|
|
910
|
-
private scrollToSelected;
|
|
911
|
-
getSelectedLabel(): string;
|
|
912
|
-
writeValue(value: string | number | null): void;
|
|
913
|
-
registerOnChange(fn: (value: string | number | null) => void): void;
|
|
914
|
-
registerOnTouched(fn: () => void): void;
|
|
915
|
-
setDisabledState(isDisabled: boolean): void;
|
|
916
|
-
get buttonClasses(): string;
|
|
917
|
-
get containerClasses(): string;
|
|
918
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
919
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "sefin-select", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
declare class SwitchComponent implements ControlValueAccessor {
|
|
923
|
-
size: InputSize;
|
|
924
|
-
disabled: boolean;
|
|
925
|
-
class: string;
|
|
926
|
-
label: string;
|
|
927
|
-
name: string;
|
|
928
|
-
value: boolean;
|
|
929
|
-
valueChange: EventEmitter<boolean>;
|
|
930
|
-
checkedChange: EventEmitter<boolean>;
|
|
931
|
-
private onChange;
|
|
932
|
-
private onTouched;
|
|
933
|
-
onSwitchChange(event: Event): void;
|
|
934
|
-
writeValue(value: boolean): void;
|
|
935
|
-
registerOnChange(fn: (value: boolean) => void): void;
|
|
936
|
-
registerOnTouched(fn: () => void): void;
|
|
937
|
-
setDisabledState(isDisabled: boolean): void;
|
|
938
|
-
get wrapperClasses(): string;
|
|
939
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
940
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "sefin-switch", never, { "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
declare class TypographyComponent {
|
|
944
|
-
variant: TypographyVariant;
|
|
945
|
-
size?: TypographySize;
|
|
946
|
-
weight?: TypographyWeight;
|
|
947
|
-
color: TypographyColor;
|
|
948
|
-
lineHeight?: TypographyLineHeight;
|
|
949
|
-
class: string;
|
|
950
|
-
text?: string;
|
|
951
|
-
get typographyClasses(): string;
|
|
952
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyComponent, never>;
|
|
953
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypographyComponent, "sefin-typography", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "lineHeight": { "alias": "lineHeight"; "required": false; }; "class": { "alias": "class"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*", "*", "*", "*", "*", "*", "*", "*"], true, never>;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
type DividerOrientation = 'horizontal' | 'vertical';
|
|
957
|
-
type DividerVariant = 'solid' | 'dashed' | 'dotted';
|
|
958
|
-
declare class DividerComponent {
|
|
959
|
-
/** Divider orientation. Options: 'horizontal' | 'vertical' */
|
|
960
|
-
orientation: DividerOrientation;
|
|
961
|
-
/** Divider variant style. Options: 'solid' | 'dashed' | 'dotted' */
|
|
962
|
-
variant: DividerVariant;
|
|
963
|
-
/** Spacing around the divider (margin) */
|
|
964
|
-
spacing: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
965
|
-
/** Thickness of the divider */
|
|
966
|
-
thickness: 'thin' | 'medium' | 'thick';
|
|
967
|
-
/** Additional CSS classes */
|
|
968
|
-
class: string;
|
|
969
|
-
get dividerClasses(): string;
|
|
970
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
971
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "sefin-divider", never, { "orientation": { "alias": "orientation"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "thickness": { "alias": "thickness"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
975
|
-
type SpinnerVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'default';
|
|
976
|
-
declare class SpinnerComponent {
|
|
977
|
-
/** Spinner size. Options: 'sm' | 'md' | 'lg' */
|
|
978
|
-
size: SpinnerSize;
|
|
979
|
-
/** Spinner variant color. Options: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'default' */
|
|
980
|
-
variant: SpinnerVariant;
|
|
981
|
-
/** Whether the spinner should be displayed inline (smaller margins) */
|
|
982
|
-
inline: boolean;
|
|
983
|
-
/** Additional CSS classes */
|
|
984
|
-
class: string;
|
|
985
|
-
get spinnerClasses(): string;
|
|
986
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
987
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "sefin-spinner", never, { "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
type ProgressBarVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
991
|
-
type ProgressBarSize = 'sm' | 'md' | 'lg';
|
|
992
|
-
declare class ProgressBarComponent {
|
|
993
|
-
/** Progress value (0-100) */
|
|
994
|
-
value: number;
|
|
995
|
-
/** Progress bar variant color. Options: 'primary' | 'secondary' | 'success' | 'warning' | 'error' */
|
|
996
|
-
variant: ProgressBarVariant;
|
|
997
|
-
/** Progress bar size. Options: 'sm' | 'md' | 'lg' */
|
|
998
|
-
size: ProgressBarSize;
|
|
999
|
-
/** Whether to show the progress percentage label */
|
|
1000
|
-
showLabel: boolean;
|
|
1001
|
-
/** Whether the progress bar is in indeterminate state (animated) */
|
|
1002
|
-
indeterminate: boolean;
|
|
1003
|
-
/** Additional CSS classes */
|
|
1004
|
-
class: string;
|
|
1005
|
-
get progressBarClasses(): string;
|
|
1006
|
-
get clampedValue(): number;
|
|
1007
|
-
get percentageText(): string;
|
|
1008
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
1009
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "sefin-progress-bar", never, { "value": { "alias": "value"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
1013
|
-
type TooltipTrigger = 'hover' | 'click' | 'focus';
|
|
1014
|
-
declare class TooltipComponent implements AfterViewInit, OnDestroy {
|
|
1015
|
-
private cdr;
|
|
1016
|
-
/** Tooltip text content */
|
|
1017
|
-
text: string;
|
|
1018
|
-
/** Tooltip position. Options: 'top' | 'bottom' | 'left' | 'right' */
|
|
1019
|
-
position: TooltipPosition;
|
|
1020
|
-
/** Trigger event. Options: 'hover' | 'click' | 'focus' */
|
|
1021
|
-
trigger: TooltipTrigger;
|
|
1022
|
-
/** Delay before showing tooltip (in milliseconds) */
|
|
1023
|
-
delay: number;
|
|
1024
|
-
/** Whether the tooltip is disabled */
|
|
1025
|
-
disabled: boolean;
|
|
1026
|
-
/** Additional CSS classes */
|
|
1027
|
-
class: string;
|
|
1028
|
-
tooltipContent: ElementRef<HTMLDivElement>;
|
|
1029
|
-
tooltipTrigger: ElementRef<HTMLDivElement>;
|
|
1030
|
-
isVisible: boolean;
|
|
1031
|
-
private showTimeout?;
|
|
1032
|
-
private hideTimeout?;
|
|
1033
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1034
|
-
ngAfterViewInit(): void;
|
|
1035
|
-
ngOnDestroy(): void;
|
|
1036
|
-
onMouseEnter(event: Event): void;
|
|
1037
|
-
onMouseLeave(event: Event): void;
|
|
1038
|
-
onClick(event: Event): void;
|
|
1039
|
-
onFocus(event: Event): void;
|
|
1040
|
-
onBlur(event: Event): void;
|
|
1041
|
-
show(): void;
|
|
1042
|
-
hide(): void;
|
|
1043
|
-
toggle(): void;
|
|
1044
|
-
private clearTimeouts;
|
|
1045
|
-
private handleOutsideClick;
|
|
1046
|
-
get tooltipClasses(): string;
|
|
1047
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
1048
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "sefin-tooltip", never, { "text": { "alias": "text"; "required": false; }; "position": { "alias": "position"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
type AlertVariant = 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
1052
|
-
type AlertSize = 'sm' | 'md' | 'lg';
|
|
1053
|
-
declare class AlertComponent {
|
|
1054
|
-
/** Alert variant style. Options: 'success' | 'warning' | 'error' | 'info' | 'default' */
|
|
1055
|
-
variant: AlertVariant;
|
|
1056
|
-
/** Alert size. Options: 'sm' | 'md' | 'lg' */
|
|
1057
|
-
size: AlertSize;
|
|
1058
|
-
/** Alert title (optional) */
|
|
1059
|
-
title?: string;
|
|
1060
|
-
/** Whether the alert can be dismissed (shows close button) */
|
|
1061
|
-
dismissible: boolean;
|
|
1062
|
-
/** Whether to show an icon */
|
|
1063
|
-
showIcon: boolean;
|
|
1064
|
-
/** Whether the alert is visible */
|
|
1065
|
-
visible: boolean;
|
|
1066
|
-
/** Additional CSS classes */
|
|
1067
|
-
class: string;
|
|
1068
|
-
/** Event emitted when the alert is dismissed */
|
|
1069
|
-
dismissed: EventEmitter<void>;
|
|
1070
|
-
onDismiss(): void;
|
|
1071
|
-
get alertClasses(): string;
|
|
1072
|
-
get iconName(): string;
|
|
1073
|
-
get iconSize(): 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1074
|
-
get iconColor(): string;
|
|
1075
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
1076
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "sefin-alert", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "title": { "alias": "title"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "dismissed": "dismissed"; }, never, ["*"], true, never>;
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
type ToastVariant = 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
1080
|
-
type ToastPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
1081
|
-
declare class ToastComponent implements OnInit, OnDestroy {
|
|
1082
|
-
private cdr;
|
|
1083
|
-
/** Toast variant style. Options: 'success' | 'warning' | 'error' | 'info' | 'default' */
|
|
1084
|
-
variant: ToastVariant;
|
|
1085
|
-
/** Toast position. Options: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center' */
|
|
1086
|
-
position: ToastPosition;
|
|
1087
|
-
/** Toast title (optional) */
|
|
1088
|
-
title?: string;
|
|
1089
|
-
/** Toast message */
|
|
1090
|
-
message: string;
|
|
1091
|
-
/** Duration in milliseconds before auto-dismiss (0 = no auto-dismiss) */
|
|
1092
|
-
duration: number;
|
|
1093
|
-
/** Whether to show an icon */
|
|
1094
|
-
showIcon: boolean;
|
|
1095
|
-
/** Whether the toast can be dismissed manually */
|
|
1096
|
-
dismissible: boolean;
|
|
1097
|
-
/** Additional CSS classes */
|
|
1098
|
-
class: string;
|
|
1099
|
-
/** Event emitted when the toast is dismissed */
|
|
1100
|
-
dismissed: EventEmitter<void>;
|
|
1101
|
-
isVisible: boolean;
|
|
1102
|
-
isExiting: boolean;
|
|
1103
|
-
isPaused: boolean;
|
|
1104
|
-
private dismissTimeout?;
|
|
1105
|
-
private remainingTime;
|
|
1106
|
-
private startTime;
|
|
1107
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1108
|
-
ngOnInit(): void;
|
|
1109
|
-
ngOnDestroy(): void;
|
|
1110
|
-
private startTimer;
|
|
1111
|
-
private clearTimer;
|
|
1112
|
-
pauseTimer(): void;
|
|
1113
|
-
resumeTimer(): void;
|
|
1114
|
-
dismiss(): void;
|
|
1115
|
-
get toastClasses(): string;
|
|
1116
|
-
get iconName(): string;
|
|
1117
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
1118
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "sefin-toast", never, { "variant": { "alias": "variant"; "required": false; }; "position": { "alias": "position"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "dismissed": "dismissed"; }, never, ["*"], true, never>;
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
type TextFieldVariant = 'outlined' | 'filled' | 'standard';
|
|
1122
|
-
type TextFieldSize = 'sm' | 'md' | 'lg';
|
|
1123
|
-
type TextFieldType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
1124
|
-
declare class TextFieldComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy {
|
|
1125
|
-
inputRef?: ElementRef<HTMLInputElement>;
|
|
1126
|
-
/** TextField variant style. Options: 'outlined' | 'filled' | 'standard' */
|
|
1127
|
-
variant: TextFieldVariant;
|
|
1128
|
-
/** TextField size. Options: 'sm' | 'md' | 'lg' */
|
|
1129
|
-
size: TextFieldSize;
|
|
1130
|
-
/** Input type. Options: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' */
|
|
1131
|
-
type: TextFieldType;
|
|
1132
|
-
/** Placeholder text */
|
|
1133
|
-
placeholder: string;
|
|
1134
|
-
/** Helper text shown below the input */
|
|
1135
|
-
hint: string;
|
|
1136
|
-
/** Error message to display */
|
|
1137
|
-
errorMessage: string;
|
|
1138
|
-
/** Whether the field is required */
|
|
1139
|
-
required: boolean;
|
|
1140
|
-
/** Whether the field is disabled */
|
|
1141
|
-
disabled: boolean;
|
|
1142
|
-
/** Whether the field is readonly */
|
|
1143
|
-
readonly: boolean;
|
|
1144
|
-
/** Maximum length of the input */
|
|
1145
|
-
maxLength?: number;
|
|
1146
|
-
/** Minimum length of the input */
|
|
1147
|
-
minLength?: number;
|
|
1148
|
-
/** Pattern for validation (regex string) */
|
|
1149
|
-
pattern?: string;
|
|
1150
|
-
/** Leading icon name */
|
|
1151
|
-
leadingIcon?: string;
|
|
1152
|
-
/** Trailing icon name */
|
|
1153
|
-
trailingIcon?: string;
|
|
1154
|
-
/** Whether to show character counter */
|
|
1155
|
-
showCounter: boolean;
|
|
1156
|
-
/** Autocomplete attribute */
|
|
1157
|
-
autocomplete?: string;
|
|
1158
|
-
/** Input name attribute */
|
|
1159
|
-
name: string;
|
|
1160
|
-
/** Input id attribute */
|
|
1161
|
-
id: string;
|
|
1162
|
-
/** Additional CSS classes */
|
|
1163
|
-
class: string;
|
|
1164
|
-
/** Custom validation function */
|
|
1165
|
-
customValidator?: (value: string) => string | null;
|
|
1166
|
-
/** Event emitted when the value changes */
|
|
1167
|
-
valueChange: EventEmitter<string>;
|
|
1168
|
-
/** Event emitted when the input is focused */
|
|
1169
|
-
focused: EventEmitter<FocusEvent>;
|
|
1170
|
-
/** Event emitted when the input is blurred */
|
|
1171
|
-
blurred: EventEmitter<FocusEvent>;
|
|
1172
|
-
/** Event emitted when trailing icon is clicked */
|
|
1173
|
-
trailingIconClick: EventEmitter<MouseEvent>;
|
|
1174
|
-
value: string;
|
|
1175
|
-
isFocused: boolean;
|
|
1176
|
-
hasError: boolean;
|
|
1177
|
-
internalErrorMessage: string;
|
|
1178
|
-
private onChange;
|
|
1179
|
-
private onTouched;
|
|
1180
|
-
private destroy$;
|
|
1181
|
-
private control?;
|
|
1182
|
-
ngOnInit(): void;
|
|
1183
|
-
ngAfterViewInit(): void;
|
|
1184
|
-
ngOnDestroy(): void;
|
|
1185
|
-
private generateIdIfNeeded;
|
|
1186
|
-
onInput(event: Event): void;
|
|
1187
|
-
onFocus(event: FocusEvent): void;
|
|
1188
|
-
onBlur(event: FocusEvent): void;
|
|
1189
|
-
onTrailingIconClick(event: MouseEvent): void;
|
|
1190
|
-
private validateField;
|
|
1191
|
-
get displayError(): boolean;
|
|
1192
|
-
get displayErrorMessage(): string;
|
|
1193
|
-
get characterCount(): number;
|
|
1194
|
-
get textFieldClasses(): string;
|
|
1195
|
-
writeValue(value: string): void;
|
|
1196
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
1197
|
-
registerOnTouched(fn: () => void): void;
|
|
1198
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1199
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
1200
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldComponent, never>;
|
|
1201
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldComponent, "sefin-textfield", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "class": { "alias": "class"; "required": false; }; "customValidator": { "alias": "customValidator"; "required": false; }; }, { "valueChange": "valueChange"; "focused": "focused"; "blurred": "blurred"; "trailingIconClick": "trailingIconClick"; }, never, never, true, never>;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
interface AutocompleteOption {
|
|
1205
|
-
value: string | number;
|
|
1206
|
-
label: string;
|
|
1207
|
-
disabled?: boolean;
|
|
1208
|
-
}
|
|
1209
|
-
declare class AutocompleteComponent implements OnInit, OnDestroy, OnChanges {
|
|
1210
|
-
inputRef?: ElementRef<HTMLInputElement>;
|
|
1211
|
-
dropdownRef?: ElementRef<HTMLDivElement>;
|
|
1212
|
-
containerRef?: ElementRef<HTMLDivElement>;
|
|
1213
|
-
options: AutocompleteOption[];
|
|
1214
|
-
placeholder: string;
|
|
1215
|
-
disabled: boolean;
|
|
1216
|
-
size: InputSize;
|
|
1217
|
-
class: string;
|
|
1218
|
-
value: string | number | null;
|
|
1219
|
-
minChars: number;
|
|
1220
|
-
maxResults: number;
|
|
1221
|
-
valueChange: EventEmitter<string | number>;
|
|
1222
|
-
optionSelected: EventEmitter<AutocompleteOption>;
|
|
1223
|
-
inputChange: EventEmitter<string>;
|
|
1224
|
-
searchText: string;
|
|
1225
|
-
filteredOptions: AutocompleteOption[];
|
|
1226
|
-
isOpen: boolean;
|
|
1227
|
-
selectedIndex: number;
|
|
1228
|
-
ngOnInit(): void;
|
|
1229
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1230
|
-
ngOnDestroy(): void;
|
|
1231
|
-
onClickOutside(event: MouseEvent): void;
|
|
1232
|
-
onInputChange(value: string): void;
|
|
1233
|
-
filterOptions(): void;
|
|
1234
|
-
selectOption(option: AutocompleteOption): void;
|
|
1235
|
-
onInputFocus(): void;
|
|
1236
|
-
onInputBlur(): void;
|
|
1237
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
1238
|
-
private scrollToSelected;
|
|
1239
|
-
clearValue(): void;
|
|
1240
|
-
get inputClasses(): string;
|
|
1241
|
-
get containerClasses(): string;
|
|
1242
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
1243
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "sefin-autocomplete", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minChars": { "alias": "minChars"; "required": false; }; "maxResults": { "alias": "maxResults"; "required": false; }; }, { "valueChange": "valueChange"; "optionSelected": "optionSelected"; "inputChange": "inputChange"; }, never, never, true, never>;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
type DateFormat = 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'YYYY-MM-DD' | 'DD-MM-YYYY';
|
|
1247
|
-
type DatePickerMode = 'single' | 'range';
|
|
1248
|
-
interface DateRange {
|
|
1249
|
-
start: Date | null;
|
|
1250
|
-
end: Date | null;
|
|
1251
|
-
}
|
|
1252
|
-
declare class DatepickerComponent implements OnInit, OnDestroy, OnChanges {
|
|
1253
|
-
private cdr;
|
|
1254
|
-
private ngZone;
|
|
1255
|
-
containerRef?: ElementRef<HTMLDivElement>;
|
|
1256
|
-
calendarRef?: ElementRef<HTMLDivElement>;
|
|
1257
|
-
textfieldRef?: TextFieldComponent;
|
|
1258
|
-
value: Date | DateRange | null;
|
|
1259
|
-
placeholder: string;
|
|
1260
|
-
disabled: boolean;
|
|
1261
|
-
size: InputSize;
|
|
1262
|
-
class: string;
|
|
1263
|
-
format: DateFormat;
|
|
1264
|
-
mode: DatePickerMode;
|
|
1265
|
-
minDate?: Date;
|
|
1266
|
-
maxDate?: Date;
|
|
1267
|
-
showTodayButton: boolean;
|
|
1268
|
-
showClearButton: boolean;
|
|
1269
|
-
locale: string;
|
|
1270
|
-
firstDayOfWeek: 0 | 1;
|
|
1271
|
-
valueChange: EventEmitter<DateRange | Date>;
|
|
1272
|
-
dateSelected: EventEmitter<DateRange | Date>;
|
|
1273
|
-
isOpen: boolean;
|
|
1274
|
-
currentMonth: Date;
|
|
1275
|
-
selectedDate: Date | null;
|
|
1276
|
-
rangeStart: Date | null;
|
|
1277
|
-
rangeEnd: Date | null;
|
|
1278
|
-
displayValue: string;
|
|
1279
|
-
hoveredDate: Date | null;
|
|
1280
|
-
private monthsES;
|
|
1281
|
-
private daysES;
|
|
1282
|
-
private daysESFull;
|
|
1283
|
-
constructor(cdr: ChangeDetectorRef, ngZone: NgZone);
|
|
1284
|
-
ngOnInit(): void;
|
|
1285
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1286
|
-
ngOnDestroy(): void;
|
|
1287
|
-
onClickOutside(event: MouseEvent): void;
|
|
1288
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
1289
|
-
private initializeDates;
|
|
1290
|
-
toggleCalendar(): void;
|
|
1291
|
-
closeCalendar(): void;
|
|
1292
|
-
onInputClick(): void;
|
|
1293
|
-
onInputFocus(): void;
|
|
1294
|
-
getDaysInMonth(date: Date): number;
|
|
1295
|
-
getFirstDayOfMonth(date: Date): number;
|
|
1296
|
-
getCalendarDays(): (Date | null)[];
|
|
1297
|
-
isToday(date: Date): boolean;
|
|
1298
|
-
isSelected(date: Date): boolean;
|
|
1299
|
-
isInRange(date: Date): boolean;
|
|
1300
|
-
isDisabled(date: Date): boolean;
|
|
1301
|
-
onDayClick(date: Date | null, event: MouseEvent): void;
|
|
1302
|
-
selectDate(date: Date): void;
|
|
1303
|
-
private updateTextField;
|
|
1304
|
-
onDateHover(date: Date): void;
|
|
1305
|
-
previousMonth(): void;
|
|
1306
|
-
nextMonth(): void;
|
|
1307
|
-
goToToday(): void;
|
|
1308
|
-
clearValue(): void;
|
|
1309
|
-
formatDate(date: Date | null): string;
|
|
1310
|
-
private updateDisplayValue;
|
|
1311
|
-
getMonthName(): string;
|
|
1312
|
-
getYear(): number;
|
|
1313
|
-
getDayNames(): string[];
|
|
1314
|
-
get containerClasses(): string;
|
|
1315
|
-
get todayDate(): Date;
|
|
1316
|
-
isTodayDisabled(): boolean;
|
|
1317
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
1318
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "sefin-datepicker", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; "format": { "alias": "format"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; }, { "valueChange": "valueChange"; "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
declare const STYLES_PATH = "./styles/index.scss";
|
|
1322
|
-
|
|
1323
|
-
export { AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, IconButtonComponent, IconComponent, LIGHT_THEME, LinkComponent, ProgressBarComponent, RadioComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TagComponent, TextFieldComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
|
|
1324
|
-
export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, IconSize, InputSize, LinkSize, LinkVariant, ProgressBarSize, ProgressBarVariant, SelectOption, ShadowToken, SpacingToken, SpinnerSize, SpinnerVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|