@mimi-ng/cli 0.2.0 → 0.3.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/README.md +15 -1
- package/dist/registry.json +274 -14
- package/dist/templates/components/calendar/calendar-texts.ts +72 -0
- package/dist/templates/components/calendar/calendar.ts +588 -0
- package/dist/templates/components/calendar/dates.ts +181 -0
- package/dist/templates/components/calendar/index.ts +3 -0
- package/dist/templates/components/chip/chip-texts.ts +40 -0
- package/dist/templates/components/chip/chip.ts +116 -0
- package/dist/templates/components/chip/index.ts +2 -0
- package/dist/templates/components/color-picker/color-picker-texts.ts +57 -0
- package/dist/templates/components/color-picker/color-picker.ts +718 -0
- package/dist/templates/components/color-picker/color.ts +157 -0
- package/dist/templates/components/color-picker/index.ts +3 -0
- package/dist/templates/components/combobox/combobox-texts.ts +70 -0
- package/dist/templates/components/combobox/combobox.ts +798 -0
- package/dist/templates/components/combobox/index.ts +2 -0
- package/dist/templates/components/date-picker/date-picker.ts +240 -0
- package/dist/templates/components/date-picker/index.ts +3 -0
- package/dist/templates/components/date-range/date-range.ts +308 -0
- package/dist/templates/components/date-range/index.ts +1 -0
- package/dist/templates/components/file-upload/file-upload-texts.ts +77 -0
- package/dist/templates/components/file-upload/file-upload.ts +698 -0
- package/dist/templates/components/file-upload/index.ts +2 -0
- package/dist/templates/components/input-mask/index.ts +1 -0
- package/dist/templates/components/input-mask/input-mask.ts +319 -0
- package/dist/templates/components/input-otp/index.ts +1 -0
- package/dist/templates/components/input-otp/input-otp.ts +212 -0
- package/dist/templates/components/number-input/index.ts +2 -0
- package/dist/templates/components/number-input/number-input-texts.ts +46 -0
- package/dist/templates/components/number-input/number-input.ts +450 -0
- package/dist/templates/components/option-list/index.ts +11 -0
- package/dist/templates/components/option-list/option-list.ts +518 -0
- package/dist/templates/components/password/index.ts +2 -0
- package/dist/templates/components/password/password-texts.ts +68 -0
- package/dist/templates/components/password/password.ts +363 -0
- package/dist/templates/components/popover/popover.ts +12 -4
- package/dist/templates/components/progress/index.ts +1 -0
- package/dist/templates/components/progress/progress.ts +217 -0
- package/dist/templates/components/select/select.ts +3 -2
- package/dist/templates/components/slider/index.ts +2 -0
- package/dist/templates/components/slider/slider-texts.ts +26 -0
- package/dist/templates/components/slider/slider.ts +425 -0
- package/dist/templates/components/tags-input/index.ts +2 -0
- package/dist/templates/components/tags-input/tags-input-texts.ts +44 -0
- package/dist/templates/components/tags-input/tags-input.ts +303 -0
- package/dist/templates/components/toggle-group/index.ts +1 -0
- package/dist/templates/components/toggle-group/toggle-group.ts +406 -0
- package/dist/templates/theme/provider.ts +13 -0
- package/dist/templates/theme/theme-base.css +103 -0
- package/dist/templates/theme/types.ts +216 -0
- package/dist/templates/utils/overlay.ts +17 -4
- package/dist/ui/index.js +105 -1
- package/dist/ui/schema.json +56 -0
- package/dist/utils/write-files.js +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ ng g mimi # menú para elegir (terminal interactiva)
|
|
|
46
46
|
ng g @mimi-ng/cli:ui button # forma larga (si Mimi no está en schematicCollections)
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Cada componente se copia a `src/app/components/ui/<nombre>`, con lo que necesite, y se instalan las dependencias que falten. Algunos usan por dentro `@angular/cdk` y `@angular/aria`, paquetes oficiales del equipo de Angular: `ng g mimi` los instala cuando hacen falta (aria en la versión exacta de tu cdk) y agrega los estilos del CDK a tu CSS global. Más en [Fundamentos](https://ng.mimiworks.dev/docs/foundations).
|
|
49
|
+
Cada componente se copia a `src/app/components/ui/<nombre>`, con lo que necesite, y se instalan las dependencias que falten. Algunos usan por dentro `@angular/cdk` y `@angular/aria`, paquetes oficiales del equipo de Angular: `ng g mimi` los instala cuando hacen falta (aria en la versión exacta de tu cdk) y agrega los estilos del CDK a tu CSS global. Mimi necesita `@angular/cdk` y `@angular/aria` 22.2.4 o posterior (con 22.2.3, Combobox y Select pueden fallar al destruirse): si ya los tienes en una versión anterior, `ng g mimi` te avisa (no los cambia por ti); actualízalos con `ng update @angular/cdk @angular/aria`. Más en [Fundamentos](https://ng.mimiworks.dev/docs/foundations).
|
|
50
50
|
|
|
51
51
|
Después lo importas como cualquier otro:
|
|
52
52
|
|
|
@@ -67,22 +67,36 @@ export class App {}
|
|
|
67
67
|
- **Badge**: `ng g mimi badge` · [documentación](https://ng.mimiworks.dev/docs/components/badge)
|
|
68
68
|
- **Button**: `ng g mimi button` · [documentación](https://ng.mimiworks.dev/docs/components/button)
|
|
69
69
|
- **Card**: `ng g mimi card` · [documentación](https://ng.mimiworks.dev/docs/components/card)
|
|
70
|
+
- **Calendar**: `ng g mimi calendar` · [documentación](https://ng.mimiworks.dev/docs/components/date-picker)
|
|
70
71
|
- **Checkbox**: `ng g mimi checkbox` · [documentación](https://ng.mimiworks.dev/docs/components/switch)
|
|
72
|
+
- **Color Picker**: `ng g mimi color-picker` · [documentación](https://ng.mimiworks.dev/docs/components/color-picker)
|
|
73
|
+
- **Combobox**: `ng g mimi combobox` · [documentación](https://ng.mimiworks.dev/docs/components/combobox)
|
|
71
74
|
- **Confirm**: `ng g mimi confirm` · [documentación](https://ng.mimiworks.dev/docs/components/confirm)
|
|
72
75
|
- **Context Menu**: `ng g mimi context-menu` · [documentación](https://ng.mimiworks.dev/docs/components/context-menu)
|
|
76
|
+
- **Date Picker**: `ng g mimi date-picker` · [documentación](https://ng.mimiworks.dev/docs/components/date-picker)
|
|
77
|
+
- **Date Range**: `ng g mimi date-range` · [documentación](https://ng.mimiworks.dev/docs/components/date-range)
|
|
73
78
|
- **Dialog**: `ng g mimi dialog` · [documentación](https://ng.mimiworks.dev/docs/components/dialog)
|
|
74
79
|
- **Dropdown Menu**: `ng g mimi dropdown-menu` · [documentación](https://ng.mimiworks.dev/docs/components/dropdown-menu)
|
|
80
|
+
- **File Upload**: `ng g mimi file-upload` · [documentación](https://ng.mimiworks.dev/docs/components/file-upload)
|
|
75
81
|
- **FormField**: `ng g mimi form-field` · [documentación](https://ng.mimiworks.dev/docs/components/form-field)
|
|
76
82
|
- **Input**: `ng g mimi input` · [documentación](https://ng.mimiworks.dev/docs/components/input)
|
|
83
|
+
- **Input Mask**: `ng g mimi input-mask` · [documentación](https://ng.mimiworks.dev/docs/components/input-mask)
|
|
84
|
+
- **Input OTP**: `ng g mimi input-otp` · [documentación](https://ng.mimiworks.dev/docs/components/input-otp)
|
|
85
|
+
- **Number Input**: `ng g mimi number-input` · [documentación](https://ng.mimiworks.dev/docs/components/number-input)
|
|
77
86
|
- **Pagination**: `ng g mimi pagination` · [documentación](https://ng.mimiworks.dev/docs/components/pagination)
|
|
87
|
+
- **Password**: `ng g mimi password` · [documentación](https://ng.mimiworks.dev/docs/components/password)
|
|
78
88
|
- **Popover**: `ng g mimi popover` · [documentación](https://ng.mimiworks.dev/docs/components/popover)
|
|
89
|
+
- **Progress**: `ng g mimi progress` · [documentación](https://ng.mimiworks.dev/docs/components/progress)
|
|
79
90
|
- **Select**: `ng g mimi select` · [documentación](https://ng.mimiworks.dev/docs/components/select)
|
|
80
91
|
- **Separator**: `ng g mimi separator` · [documentación](https://ng.mimiworks.dev/docs/components/separator)
|
|
81
92
|
- **Skeleton**: `ng g mimi skeleton` · [documentación](https://ng.mimiworks.dev/docs/components/skeleton)
|
|
93
|
+
- **Slider**: `ng g mimi slider` · [documentación](https://ng.mimiworks.dev/docs/components/slider)
|
|
82
94
|
- **Switch**: `ng g mimi switch` · [documentación](https://ng.mimiworks.dev/docs/components/switch)
|
|
83
95
|
- **Tabs**: `ng g mimi tabs` · [documentación](https://ng.mimiworks.dev/docs/components/tabs)
|
|
84
96
|
- **Textarea**: `ng g mimi textarea` · [documentación](https://ng.mimiworks.dev/docs/components/input)
|
|
97
|
+
- **Tags Input**: `ng g mimi tags-input` · [documentación](https://ng.mimiworks.dev/docs/components/tags-input)
|
|
85
98
|
- **Toast**: `ng g mimi toast` · [documentación](https://ng.mimiworks.dev/docs/components/toast)
|
|
99
|
+
- **Toggle Group**: `ng g mimi toggle-group` · [documentación](https://ng.mimiworks.dev/docs/components/toggle-group)
|
|
86
100
|
- **Toolbar**: `ng g mimi toolbar` · [documentación](https://ng.mimiworks.dev/docs/components/toolbar)
|
|
87
101
|
- **Tooltip**: `ng g mimi tooltip` · [documentación](https://ng.mimiworks.dev/docs/components/tooltip)
|
|
88
102
|
|
package/dist/registry.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.3.0",
|
|
3
3
|
"suggestedDependencies": {
|
|
4
4
|
"@lucide/angular": "^1.47.0"
|
|
5
5
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"utils/overlay.ts"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@angular/cdk": "^22.2.
|
|
38
|
+
"@angular/cdk": "^22.2.4"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"menu": {
|
|
@@ -45,13 +45,41 @@
|
|
|
45
45
|
"components/menu/index.ts"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@angular/aria": "^22.2.
|
|
48
|
+
"@angular/aria": "^22.2.4"
|
|
49
49
|
},
|
|
50
50
|
"registryDependencies": [
|
|
51
51
|
"utils/cn",
|
|
52
52
|
"utils/overlay"
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
|
+
"chip": {
|
|
56
|
+
"type": "util",
|
|
57
|
+
"files": [
|
|
58
|
+
"components/chip/chip.ts",
|
|
59
|
+
"components/chip/chip-texts.ts",
|
|
60
|
+
"components/chip/index.ts"
|
|
61
|
+
],
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@angular/cdk": "^22.2.4"
|
|
64
|
+
},
|
|
65
|
+
"registryDependencies": [
|
|
66
|
+
"utils/cn",
|
|
67
|
+
"utils/control-styles"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"option-list": {
|
|
71
|
+
"type": "util",
|
|
72
|
+
"files": [
|
|
73
|
+
"components/option-list/option-list.ts",
|
|
74
|
+
"components/option-list/index.ts"
|
|
75
|
+
],
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@angular/aria": "^22.2.4"
|
|
78
|
+
},
|
|
79
|
+
"registryDependencies": [
|
|
80
|
+
"utils/cn"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
55
83
|
"theme": {
|
|
56
84
|
"type": "theme",
|
|
57
85
|
"files": [
|
|
@@ -149,7 +177,7 @@
|
|
|
149
177
|
"components/context-menu/index.ts"
|
|
150
178
|
],
|
|
151
179
|
"peerDependencies": {
|
|
152
|
-
"@angular/cdk": "^22.2.
|
|
180
|
+
"@angular/cdk": "^22.2.4"
|
|
153
181
|
},
|
|
154
182
|
"cssImports": [
|
|
155
183
|
"@angular/cdk/overlay-prebuilt.css"
|
|
@@ -167,7 +195,7 @@
|
|
|
167
195
|
"components/dialog/index.ts"
|
|
168
196
|
],
|
|
169
197
|
"peerDependencies": {
|
|
170
|
-
"@angular/cdk": "^22.2.
|
|
198
|
+
"@angular/cdk": "^22.2.4"
|
|
171
199
|
},
|
|
172
200
|
"cssImports": [
|
|
173
201
|
"@angular/cdk/overlay-prebuilt.css"
|
|
@@ -188,7 +216,7 @@
|
|
|
188
216
|
"class-variance-authority": "^0.7.1"
|
|
189
217
|
},
|
|
190
218
|
"peerDependencies": {
|
|
191
|
-
"@angular/aria": "^22.2.
|
|
219
|
+
"@angular/aria": "^22.2.4"
|
|
192
220
|
},
|
|
193
221
|
"registryDependencies": [
|
|
194
222
|
"utils/cn",
|
|
@@ -207,7 +235,7 @@
|
|
|
207
235
|
"class-variance-authority": "^0.7.1"
|
|
208
236
|
},
|
|
209
237
|
"peerDependencies": {
|
|
210
|
-
"@angular/cdk": "^22.2.
|
|
238
|
+
"@angular/cdk": "^22.2.4"
|
|
211
239
|
},
|
|
212
240
|
"registryDependencies": [
|
|
213
241
|
"button",
|
|
@@ -228,7 +256,7 @@
|
|
|
228
256
|
"class-variance-authority": "^0.7.1"
|
|
229
257
|
},
|
|
230
258
|
"peerDependencies": {
|
|
231
|
-
"@angular/cdk": "^22.2.
|
|
259
|
+
"@angular/cdk": "^22.2.4"
|
|
232
260
|
},
|
|
233
261
|
"registryDependencies": [
|
|
234
262
|
"button",
|
|
@@ -237,6 +265,238 @@
|
|
|
237
265
|
"utils/cn"
|
|
238
266
|
]
|
|
239
267
|
},
|
|
268
|
+
"input-mask": {
|
|
269
|
+
"type": "component",
|
|
270
|
+
"files": [
|
|
271
|
+
"components/input-mask/input-mask.ts",
|
|
272
|
+
"components/input-mask/index.ts"
|
|
273
|
+
],
|
|
274
|
+
"peerDependencies": {
|
|
275
|
+
"@angular/forms": "^22.0.0"
|
|
276
|
+
},
|
|
277
|
+
"registryDependencies": [
|
|
278
|
+
"utils/cn",
|
|
279
|
+
"utils/field-state"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"input-otp": {
|
|
283
|
+
"type": "component",
|
|
284
|
+
"files": [
|
|
285
|
+
"components/input-otp/input-otp.ts",
|
|
286
|
+
"components/input-otp/index.ts"
|
|
287
|
+
],
|
|
288
|
+
"peerDependencies": {
|
|
289
|
+
"@angular/forms": "^22.0.0"
|
|
290
|
+
},
|
|
291
|
+
"registryDependencies": [
|
|
292
|
+
"utils/cn",
|
|
293
|
+
"utils/field-state"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"number-input": {
|
|
297
|
+
"type": "component",
|
|
298
|
+
"files": [
|
|
299
|
+
"components/number-input/number-input.ts",
|
|
300
|
+
"components/number-input/number-input-texts.ts",
|
|
301
|
+
"components/number-input/index.ts"
|
|
302
|
+
],
|
|
303
|
+
"peerDependencies": {
|
|
304
|
+
"@angular/forms": "^22.0.0"
|
|
305
|
+
},
|
|
306
|
+
"registryDependencies": [
|
|
307
|
+
"utils/cn",
|
|
308
|
+
"utils/field-state"
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
"password": {
|
|
312
|
+
"type": "component",
|
|
313
|
+
"files": [
|
|
314
|
+
"components/password/password.ts",
|
|
315
|
+
"components/password/password-texts.ts",
|
|
316
|
+
"components/password/index.ts"
|
|
317
|
+
],
|
|
318
|
+
"peerDependencies": {
|
|
319
|
+
"@angular/cdk": "^22.2.4"
|
|
320
|
+
},
|
|
321
|
+
"registryDependencies": [
|
|
322
|
+
"input",
|
|
323
|
+
"utils/cn",
|
|
324
|
+
"utils/control-styles"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"progress": {
|
|
328
|
+
"type": "component",
|
|
329
|
+
"files": [
|
|
330
|
+
"components/progress/progress.ts",
|
|
331
|
+
"components/progress/index.ts"
|
|
332
|
+
],
|
|
333
|
+
"registryDependencies": [
|
|
334
|
+
"utils/cn"
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"slider": {
|
|
338
|
+
"type": "component",
|
|
339
|
+
"files": [
|
|
340
|
+
"components/slider/slider.ts",
|
|
341
|
+
"components/slider/slider-texts.ts",
|
|
342
|
+
"components/slider/index.ts"
|
|
343
|
+
],
|
|
344
|
+
"peerDependencies": {
|
|
345
|
+
"@angular/cdk": "^22.2.4",
|
|
346
|
+
"@angular/forms": "^22.0.0"
|
|
347
|
+
},
|
|
348
|
+
"registryDependencies": [
|
|
349
|
+
"utils/cn",
|
|
350
|
+
"utils/control-styles",
|
|
351
|
+
"utils/field-state"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"combobox": {
|
|
355
|
+
"type": "component",
|
|
356
|
+
"files": [
|
|
357
|
+
"components/combobox/combobox.ts",
|
|
358
|
+
"components/combobox/combobox-texts.ts",
|
|
359
|
+
"components/combobox/index.ts"
|
|
360
|
+
],
|
|
361
|
+
"peerDependencies": {
|
|
362
|
+
"@angular/aria": "^22.2.4",
|
|
363
|
+
"@angular/cdk": "^22.2.4",
|
|
364
|
+
"@angular/forms": "^22.0.0"
|
|
365
|
+
},
|
|
366
|
+
"cssImports": [
|
|
367
|
+
"@angular/cdk/overlay-prebuilt.css"
|
|
368
|
+
],
|
|
369
|
+
"registryDependencies": [
|
|
370
|
+
"chip",
|
|
371
|
+
"option-list",
|
|
372
|
+
"utils/cn",
|
|
373
|
+
"utils/field-state",
|
|
374
|
+
"utils/overlay"
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"calendar": {
|
|
378
|
+
"type": "component",
|
|
379
|
+
"files": [
|
|
380
|
+
"components/calendar/calendar.ts",
|
|
381
|
+
"components/calendar/calendar-texts.ts",
|
|
382
|
+
"components/calendar/dates.ts",
|
|
383
|
+
"components/calendar/index.ts"
|
|
384
|
+
],
|
|
385
|
+
"peerDependencies": {
|
|
386
|
+
"@angular/cdk": "^22.2.4"
|
|
387
|
+
},
|
|
388
|
+
"registryDependencies": [
|
|
389
|
+
"utils/cn",
|
|
390
|
+
"utils/control-styles"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"date-picker": {
|
|
394
|
+
"type": "component",
|
|
395
|
+
"files": [
|
|
396
|
+
"components/date-picker/date-picker.ts",
|
|
397
|
+
"components/date-picker/index.ts"
|
|
398
|
+
],
|
|
399
|
+
"peerDependencies": {
|
|
400
|
+
"@angular/forms": "^22.0.0"
|
|
401
|
+
},
|
|
402
|
+
"registryDependencies": [
|
|
403
|
+
"calendar",
|
|
404
|
+
"popover",
|
|
405
|
+
"utils/cn",
|
|
406
|
+
"utils/control-styles",
|
|
407
|
+
"utils/field-state"
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
"date-range": {
|
|
411
|
+
"type": "component",
|
|
412
|
+
"files": [
|
|
413
|
+
"components/date-range/date-range.ts",
|
|
414
|
+
"components/date-range/index.ts"
|
|
415
|
+
],
|
|
416
|
+
"peerDependencies": {
|
|
417
|
+
"@angular/forms": "^22.0.0"
|
|
418
|
+
},
|
|
419
|
+
"registryDependencies": [
|
|
420
|
+
"calendar",
|
|
421
|
+
"date-picker",
|
|
422
|
+
"popover",
|
|
423
|
+
"utils/cn",
|
|
424
|
+
"utils/control-styles",
|
|
425
|
+
"utils/field-state"
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"file-upload": {
|
|
429
|
+
"type": "component",
|
|
430
|
+
"files": [
|
|
431
|
+
"components/file-upload/file-upload.ts",
|
|
432
|
+
"components/file-upload/file-upload-texts.ts",
|
|
433
|
+
"components/file-upload/index.ts"
|
|
434
|
+
],
|
|
435
|
+
"peerDependencies": {
|
|
436
|
+
"@angular/cdk": "^22.2.4",
|
|
437
|
+
"@angular/forms": "^22.0.0"
|
|
438
|
+
},
|
|
439
|
+
"registryDependencies": [
|
|
440
|
+
"button",
|
|
441
|
+
"progress",
|
|
442
|
+
"utils/cn",
|
|
443
|
+
"utils/control-styles",
|
|
444
|
+
"utils/field-state"
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
"color-picker": {
|
|
448
|
+
"type": "component",
|
|
449
|
+
"files": [
|
|
450
|
+
"components/color-picker/color-picker.ts",
|
|
451
|
+
"components/color-picker/color-picker-texts.ts",
|
|
452
|
+
"components/color-picker/color.ts",
|
|
453
|
+
"components/color-picker/index.ts"
|
|
454
|
+
],
|
|
455
|
+
"peerDependencies": {
|
|
456
|
+
"@angular/forms": "^22.0.0"
|
|
457
|
+
},
|
|
458
|
+
"registryDependencies": [
|
|
459
|
+
"input",
|
|
460
|
+
"popover",
|
|
461
|
+
"utils/cn",
|
|
462
|
+
"utils/control-styles",
|
|
463
|
+
"utils/field-state"
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
"tags-input": {
|
|
467
|
+
"type": "component",
|
|
468
|
+
"files": [
|
|
469
|
+
"components/tags-input/tags-input.ts",
|
|
470
|
+
"components/tags-input/tags-input-texts.ts",
|
|
471
|
+
"components/tags-input/index.ts"
|
|
472
|
+
],
|
|
473
|
+
"peerDependencies": {
|
|
474
|
+
"@angular/forms": "^22.0.0"
|
|
475
|
+
},
|
|
476
|
+
"registryDependencies": [
|
|
477
|
+
"chip",
|
|
478
|
+
"utils/cn",
|
|
479
|
+
"utils/field-state"
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
"toggle-group": {
|
|
483
|
+
"type": "component",
|
|
484
|
+
"files": [
|
|
485
|
+
"components/toggle-group/toggle-group.ts",
|
|
486
|
+
"components/toggle-group/index.ts"
|
|
487
|
+
],
|
|
488
|
+
"dependencies": {
|
|
489
|
+
"class-variance-authority": "^0.7.1"
|
|
490
|
+
},
|
|
491
|
+
"peerDependencies": {
|
|
492
|
+
"@angular/cdk": "^22.2.4",
|
|
493
|
+
"@angular/forms": "^22.0.0"
|
|
494
|
+
},
|
|
495
|
+
"registryDependencies": [
|
|
496
|
+
"utils/cn",
|
|
497
|
+
"utils/control-styles"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
240
500
|
"toolbar": {
|
|
241
501
|
"type": "component",
|
|
242
502
|
"files": [
|
|
@@ -247,7 +507,7 @@
|
|
|
247
507
|
"class-variance-authority": "^0.7.1"
|
|
248
508
|
},
|
|
249
509
|
"peerDependencies": {
|
|
250
|
-
"@angular/cdk": "^22.2.
|
|
510
|
+
"@angular/cdk": "^22.2.4"
|
|
251
511
|
},
|
|
252
512
|
"registryDependencies": [
|
|
253
513
|
"utils/cn",
|
|
@@ -261,7 +521,7 @@
|
|
|
261
521
|
"components/dropdown-menu/index.ts"
|
|
262
522
|
],
|
|
263
523
|
"peerDependencies": {
|
|
264
|
-
"@angular/cdk": "^22.2.
|
|
524
|
+
"@angular/cdk": "^22.2.4"
|
|
265
525
|
},
|
|
266
526
|
"cssImports": [
|
|
267
527
|
"@angular/cdk/overlay-prebuilt.css"
|
|
@@ -307,7 +567,7 @@
|
|
|
307
567
|
"components/popover/index.ts"
|
|
308
568
|
],
|
|
309
569
|
"peerDependencies": {
|
|
310
|
-
"@angular/cdk": "^22.2.
|
|
570
|
+
"@angular/cdk": "^22.2.4"
|
|
311
571
|
},
|
|
312
572
|
"cssImports": [
|
|
313
573
|
"@angular/cdk/overlay-prebuilt.css"
|
|
@@ -325,8 +585,8 @@
|
|
|
325
585
|
"components/select/index.ts"
|
|
326
586
|
],
|
|
327
587
|
"peerDependencies": {
|
|
328
|
-
"@angular/aria": "^22.2.
|
|
329
|
-
"@angular/cdk": "^22.2.
|
|
588
|
+
"@angular/aria": "^22.2.4",
|
|
589
|
+
"@angular/cdk": "^22.2.4",
|
|
330
590
|
"@angular/forms": "^22.0.0"
|
|
331
591
|
},
|
|
332
592
|
"cssImports": [
|
|
@@ -385,7 +645,7 @@
|
|
|
385
645
|
"components/tooltip/index.ts"
|
|
386
646
|
],
|
|
387
647
|
"peerDependencies": {
|
|
388
|
-
"@angular/cdk": "^22.2.
|
|
648
|
+
"@angular/cdk": "^22.2.4"
|
|
389
649
|
},
|
|
390
650
|
"cssImports": [
|
|
391
651
|
"@angular/cdk/overlay-prebuilt.css"
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Textos del calendario, del Date Picker y del Date Range, en archivo propio: así se pueden
|
|
5
|
+
* proveer en `app.config.ts` sin llevar los componentes al chunk inicial. Los nombres de meses y
|
|
6
|
+
* días no van aquí: salen de `Intl.DateTimeFormat` con el idioma.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface MimiDatePickerText {
|
|
10
|
+
/** Nombre del panel del Date Picker. */
|
|
11
|
+
pickDate: string;
|
|
12
|
+
/** Nombre del panel del Date Range. */
|
|
13
|
+
pickRange: string;
|
|
14
|
+
/** Botones de mes (o año, o página de años) anterior y siguiente. */
|
|
15
|
+
previous: string;
|
|
16
|
+
next: string;
|
|
17
|
+
/** Botón del título, que cambia la vista (días → meses → años). */
|
|
18
|
+
changeView: string;
|
|
19
|
+
/** Leyenda del punto de hoy. */
|
|
20
|
+
today: string;
|
|
21
|
+
/** Botón que lleva al mes de hoy. */
|
|
22
|
+
goToday: string;
|
|
23
|
+
/** Se agrega al nombre de un día que no se puede elegir. */
|
|
24
|
+
unavailable: string;
|
|
25
|
+
/** Ayuda del rango con el inicio elegido. */
|
|
26
|
+
pickEnd: string;
|
|
27
|
+
/** Ayuda del rango sin elegir o con el periodo completo. */
|
|
28
|
+
pickStart: string;
|
|
29
|
+
/** Cuenta de días del rango: «7 días». */
|
|
30
|
+
days: (count: number) => string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Textos predeterminados (inglés). */
|
|
34
|
+
export const MIMI_DATE_PICKER_TEXT_EN: MimiDatePickerText = {
|
|
35
|
+
pickDate: 'Choose date',
|
|
36
|
+
pickRange: 'Choose period',
|
|
37
|
+
previous: 'Previous',
|
|
38
|
+
next: 'Next',
|
|
39
|
+
changeView: 'Change view',
|
|
40
|
+
today: 'Today',
|
|
41
|
+
goToday: 'Go to today',
|
|
42
|
+
unavailable: 'unavailable',
|
|
43
|
+
pickEnd: 'Choose the end date.',
|
|
44
|
+
pickStart: 'Click a day to start a new period.',
|
|
45
|
+
days: (count) => `${count} ${count === 1 ? 'day' : 'days'}`,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** Textos en español: `provideMimiDatePickerText(MIMI_DATE_PICKER_TEXT_ES)`. */
|
|
49
|
+
export const MIMI_DATE_PICKER_TEXT_ES: MimiDatePickerText = {
|
|
50
|
+
pickDate: 'Elegir fecha',
|
|
51
|
+
pickRange: 'Elegir periodo',
|
|
52
|
+
previous: 'Anterior',
|
|
53
|
+
next: 'Siguiente',
|
|
54
|
+
changeView: 'Cambiar vista',
|
|
55
|
+
today: 'Hoy',
|
|
56
|
+
goToday: 'Ir a hoy',
|
|
57
|
+
unavailable: 'no disponible',
|
|
58
|
+
pickEnd: 'Elige el día final.',
|
|
59
|
+
pickStart: 'Haz clic en un día para empezar un periodo nuevo.',
|
|
60
|
+
days: (count) => `${count} ${count === 1 ? 'día' : 'días'}`,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** Textos activos. Sin `provideMimiDatePickerText`, los predeterminados en inglés. */
|
|
64
|
+
export const MIMI_DATE_PICKER_TEXT = new InjectionToken<MimiDatePickerText>(
|
|
65
|
+
'MIMI_DATE_PICKER_TEXT',
|
|
66
|
+
{ providedIn: 'root', factory: () => MIMI_DATE_PICKER_TEXT_EN },
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
/** Cambia los textos del calendario, el Date Picker y el Date Range. Lo que no definas sigue en inglés. */
|
|
70
|
+
export function provideMimiDatePickerText(text: Partial<MimiDatePickerText>): Provider {
|
|
71
|
+
return { provide: MIMI_DATE_PICKER_TEXT, useValue: { ...MIMI_DATE_PICKER_TEXT_EN, ...text } };
|
|
72
|
+
}
|