@molecule/app-ui-angular 1.0.3 → 1.0.5
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 +170 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-11-08T06:24:50.819Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-angular
|
|
@@ -89,14 +89,17 @@ interface BaseProps {
|
|
|
89
89
|
* Additional CSS class name(s).
|
|
90
90
|
*/
|
|
91
91
|
className?: string
|
|
92
|
+
|
|
92
93
|
/**
|
|
93
94
|
* Inline styles.
|
|
94
95
|
*/
|
|
95
96
|
style?: CSSProperties
|
|
97
|
+
|
|
96
98
|
/**
|
|
97
99
|
* Test ID for automated testing.
|
|
98
100
|
*/
|
|
99
101
|
testId?: string
|
|
102
|
+
|
|
100
103
|
/**
|
|
101
104
|
* Automation ID for AI agents and E2E tests. Maps to the `data-mol-id`
|
|
102
105
|
* HTML attribute. Use `molId()` from `./automation.js` to generate
|
|
@@ -104,6 +107,7 @@ interface BaseProps {
|
|
|
104
107
|
* attributes; accessible names come from labels/`aria-*`.)
|
|
105
108
|
*/
|
|
106
109
|
automationId?: string
|
|
110
|
+
|
|
107
111
|
/**
|
|
108
112
|
* Whether the component is disabled.
|
|
109
113
|
*/
|
|
@@ -252,34 +256,42 @@ interface ButtonProps extends ButtonElementProps {
|
|
|
252
256
|
* Button content.
|
|
253
257
|
*/
|
|
254
258
|
children?: Children
|
|
259
|
+
|
|
255
260
|
/**
|
|
256
261
|
* Visual variant.
|
|
257
262
|
*/
|
|
258
263
|
variant?: ButtonVariant
|
|
264
|
+
|
|
259
265
|
/**
|
|
260
266
|
* Color scheme.
|
|
261
267
|
*/
|
|
262
268
|
color?: ColorVariant
|
|
269
|
+
|
|
263
270
|
/**
|
|
264
271
|
* Button size.
|
|
265
272
|
*/
|
|
266
273
|
size?: ButtonSize
|
|
274
|
+
|
|
267
275
|
/**
|
|
268
276
|
* Whether the button is in a loading state.
|
|
269
277
|
*/
|
|
270
278
|
loading?: boolean
|
|
279
|
+
|
|
271
280
|
/**
|
|
272
281
|
* Loading text to display.
|
|
273
282
|
*/
|
|
274
283
|
loadingText?: string
|
|
284
|
+
|
|
275
285
|
/**
|
|
276
286
|
* Whether the button takes full width.
|
|
277
287
|
*/
|
|
278
288
|
fullWidth?: boolean
|
|
289
|
+
|
|
279
290
|
/**
|
|
280
291
|
* Icon to display before the label.
|
|
281
292
|
*/
|
|
282
293
|
leftIcon?: Children
|
|
294
|
+
|
|
283
295
|
/**
|
|
284
296
|
* Icon to display after the label.
|
|
285
297
|
*/
|
|
@@ -297,43 +309,53 @@ interface InputProps extends InputElementProps {
|
|
|
297
309
|
* Input type.
|
|
298
310
|
*/
|
|
299
311
|
type?: InputType
|
|
312
|
+
|
|
300
313
|
/**
|
|
301
314
|
* Input size.
|
|
302
315
|
*/
|
|
303
316
|
size?: Size
|
|
317
|
+
|
|
304
318
|
/**
|
|
305
319
|
* Horizontal text alignment inside the input (see
|
|
306
320
|
* {@link InputClassOptions.align}). Defaults to the bond's own style.
|
|
307
321
|
*/
|
|
308
322
|
align?: 'left' | 'center'
|
|
323
|
+
|
|
309
324
|
/**
|
|
310
325
|
* Label text.
|
|
311
326
|
*/
|
|
312
327
|
label?: string
|
|
328
|
+
|
|
313
329
|
/**
|
|
314
330
|
* Error message.
|
|
315
331
|
*/
|
|
316
332
|
error?: string
|
|
333
|
+
|
|
317
334
|
/**
|
|
318
335
|
* Hint/help text.
|
|
319
336
|
*/
|
|
320
337
|
hint?: string
|
|
338
|
+
|
|
321
339
|
/**
|
|
322
340
|
* Element to display on the left.
|
|
323
341
|
*/
|
|
324
342
|
leftElement?: Children
|
|
343
|
+
|
|
325
344
|
/**
|
|
326
345
|
* Element to display on the right.
|
|
327
346
|
*/
|
|
328
347
|
rightElement?: Children
|
|
348
|
+
|
|
329
349
|
/**
|
|
330
350
|
* Whether to show a clear button.
|
|
331
351
|
*/
|
|
332
352
|
clearable?: boolean
|
|
353
|
+
|
|
333
354
|
/**
|
|
334
355
|
* Called when the clear button is clicked.
|
|
335
356
|
*/
|
|
336
357
|
onClear?: () => void
|
|
358
|
+
|
|
337
359
|
/**
|
|
338
360
|
* Accessible label for the clear button.
|
|
339
361
|
* @default 'Clear'
|
|
@@ -353,26 +375,32 @@ interface TextareaProps extends TextareaElementProps {
|
|
|
353
375
|
* `size` as a neighboring Input for identical font sizes.
|
|
354
376
|
*/
|
|
355
377
|
size?: Size
|
|
378
|
+
|
|
356
379
|
/**
|
|
357
380
|
* Label text.
|
|
358
381
|
*/
|
|
359
382
|
label?: string
|
|
383
|
+
|
|
360
384
|
/**
|
|
361
385
|
* Error message.
|
|
362
386
|
*/
|
|
363
387
|
error?: string
|
|
388
|
+
|
|
364
389
|
/**
|
|
365
390
|
* Hint/help text.
|
|
366
391
|
*/
|
|
367
392
|
hint?: string
|
|
393
|
+
|
|
368
394
|
/**
|
|
369
395
|
* Whether the textarea auto-resizes.
|
|
370
396
|
*/
|
|
371
397
|
autoResize?: boolean
|
|
398
|
+
|
|
372
399
|
/**
|
|
373
400
|
* Minimum number of rows.
|
|
374
401
|
*/
|
|
375
402
|
minRows?: number
|
|
403
|
+
|
|
376
404
|
/**
|
|
377
405
|
* Maximum number of rows.
|
|
378
406
|
*/
|
|
@@ -390,14 +418,17 @@ interface SelectOption<T = string> {
|
|
|
390
418
|
* Option value.
|
|
391
419
|
*/
|
|
392
420
|
value: T
|
|
421
|
+
|
|
393
422
|
/**
|
|
394
423
|
* Display label.
|
|
395
424
|
*/
|
|
396
425
|
label: string
|
|
426
|
+
|
|
397
427
|
/**
|
|
398
428
|
* Whether the option is disabled.
|
|
399
429
|
*/
|
|
400
430
|
disabled?: boolean
|
|
431
|
+
|
|
401
432
|
/**
|
|
402
433
|
* Option group (for grouped selects).
|
|
403
434
|
*/
|
|
@@ -415,34 +446,42 @@ interface SelectProps<T = string> extends SelectElementProps {
|
|
|
415
446
|
* Select options.
|
|
416
447
|
*/
|
|
417
448
|
options: SelectOption<T>[]
|
|
449
|
+
|
|
418
450
|
/**
|
|
419
451
|
* Current value.
|
|
420
452
|
*/
|
|
421
453
|
value?: T
|
|
454
|
+
|
|
422
455
|
/**
|
|
423
456
|
* Change handler (with typed value).
|
|
424
457
|
*/
|
|
425
458
|
onValueChange?: (value: T) => void
|
|
459
|
+
|
|
426
460
|
/**
|
|
427
461
|
* Select size.
|
|
428
462
|
*/
|
|
429
463
|
size?: Size
|
|
464
|
+
|
|
430
465
|
/**
|
|
431
466
|
* Label text.
|
|
432
467
|
*/
|
|
433
468
|
label?: string
|
|
469
|
+
|
|
434
470
|
/**
|
|
435
471
|
* Placeholder text.
|
|
436
472
|
*/
|
|
437
473
|
placeholder?: string
|
|
474
|
+
|
|
438
475
|
/**
|
|
439
476
|
* Error message.
|
|
440
477
|
*/
|
|
441
478
|
error?: string
|
|
479
|
+
|
|
442
480
|
/**
|
|
443
481
|
* Hint/help text.
|
|
444
482
|
*/
|
|
445
483
|
hint?: string
|
|
484
|
+
|
|
446
485
|
/**
|
|
447
486
|
* Whether to allow clearing the selection.
|
|
448
487
|
*/
|
|
@@ -460,18 +499,22 @@ interface CheckboxProps extends InputElementProps {
|
|
|
460
499
|
* Checkbox label.
|
|
461
500
|
*/
|
|
462
501
|
label?: Children
|
|
502
|
+
|
|
463
503
|
/**
|
|
464
504
|
* Whether the checkbox is checked.
|
|
465
505
|
*/
|
|
466
506
|
checked?: boolean
|
|
507
|
+
|
|
467
508
|
/**
|
|
468
509
|
* Whether the checkbox is in an indeterminate state.
|
|
469
510
|
*/
|
|
470
511
|
indeterminate?: boolean
|
|
512
|
+
|
|
471
513
|
/**
|
|
472
514
|
* Checkbox size.
|
|
473
515
|
*/
|
|
474
516
|
size?: Size
|
|
517
|
+
|
|
475
518
|
/**
|
|
476
519
|
* Error message.
|
|
477
520
|
*/
|
|
@@ -489,10 +532,12 @@ interface RadioOption<T = string> {
|
|
|
489
532
|
* Option value.
|
|
490
533
|
*/
|
|
491
534
|
value: T
|
|
535
|
+
|
|
492
536
|
/**
|
|
493
537
|
* Display label.
|
|
494
538
|
*/
|
|
495
539
|
label: Children
|
|
540
|
+
|
|
496
541
|
/**
|
|
497
542
|
* Whether the option is disabled.
|
|
498
543
|
*/
|
|
@@ -510,22 +555,27 @@ interface RadioGroupProps<T = string> extends BaseProps {
|
|
|
510
555
|
* Radio options.
|
|
511
556
|
*/
|
|
512
557
|
options: RadioOption<T>[]
|
|
558
|
+
|
|
513
559
|
/**
|
|
514
560
|
* Current value.
|
|
515
561
|
*/
|
|
516
562
|
value?: T
|
|
563
|
+
|
|
517
564
|
/**
|
|
518
565
|
* Change handler.
|
|
519
566
|
*/
|
|
520
567
|
onChange?: (value: T) => void
|
|
568
|
+
|
|
521
569
|
/**
|
|
522
570
|
* Radio size.
|
|
523
571
|
*/
|
|
524
572
|
size?: Size
|
|
573
|
+
|
|
525
574
|
/**
|
|
526
575
|
* Group label.
|
|
527
576
|
*/
|
|
528
577
|
label?: string
|
|
578
|
+
|
|
529
579
|
/**
|
|
530
580
|
* Shared `name` attribute for the group's radio inputs (used for native
|
|
531
581
|
* form submission). When omitted, a unique per-instance name is generated
|
|
@@ -535,10 +585,12 @@ interface RadioGroupProps<T = string> extends BaseProps {
|
|
|
535
585
|
* deselect each other.
|
|
536
586
|
*/
|
|
537
587
|
name?: string
|
|
588
|
+
|
|
538
589
|
/**
|
|
539
590
|
* Layout direction.
|
|
540
591
|
*/
|
|
541
592
|
direction?: 'horizontal' | 'vertical'
|
|
593
|
+
|
|
542
594
|
/**
|
|
543
595
|
* Error message.
|
|
544
596
|
*/
|
|
@@ -556,14 +608,17 @@ interface SwitchProps extends InputElementProps {
|
|
|
556
608
|
* Switch label.
|
|
557
609
|
*/
|
|
558
610
|
label?: Children
|
|
611
|
+
|
|
559
612
|
/**
|
|
560
613
|
* Whether the switch is on.
|
|
561
614
|
*/
|
|
562
615
|
checked?: boolean
|
|
616
|
+
|
|
563
617
|
/**
|
|
564
618
|
* Switch size.
|
|
565
619
|
*/
|
|
566
620
|
size?: Size
|
|
621
|
+
|
|
567
622
|
/**
|
|
568
623
|
* Color when on.
|
|
569
624
|
*/
|
|
@@ -581,46 +636,57 @@ interface ModalProps extends HTMLElementProps {
|
|
|
581
636
|
* Whether the modal is open.
|
|
582
637
|
*/
|
|
583
638
|
open: boolean
|
|
639
|
+
|
|
584
640
|
/**
|
|
585
641
|
* Called when the modal should close.
|
|
586
642
|
*/
|
|
587
643
|
onClose: () => void
|
|
644
|
+
|
|
588
645
|
/**
|
|
589
646
|
* Modal title.
|
|
590
647
|
*/
|
|
591
648
|
title?: string
|
|
649
|
+
|
|
592
650
|
/**
|
|
593
651
|
* Modal content.
|
|
594
652
|
*/
|
|
595
653
|
children?: Children
|
|
654
|
+
|
|
596
655
|
/**
|
|
597
656
|
* Modal size.
|
|
598
657
|
*/
|
|
599
658
|
size?: ModalSize
|
|
659
|
+
|
|
600
660
|
/**
|
|
601
661
|
* Whether to show a close button.
|
|
602
662
|
*/
|
|
603
663
|
showCloseButton?: boolean
|
|
664
|
+
|
|
604
665
|
/**
|
|
605
666
|
* Whether clicking the overlay closes the modal.
|
|
606
667
|
*/
|
|
607
668
|
closeOnOverlayClick?: boolean
|
|
669
|
+
|
|
608
670
|
/**
|
|
609
671
|
* Whether pressing Escape closes the modal.
|
|
610
672
|
*/
|
|
611
673
|
closeOnEscape?: boolean
|
|
674
|
+
|
|
612
675
|
/**
|
|
613
676
|
* Footer content (typically action buttons).
|
|
614
677
|
*/
|
|
615
678
|
footer?: Children
|
|
679
|
+
|
|
616
680
|
/**
|
|
617
681
|
* Whether the modal is centered vertically.
|
|
618
682
|
*/
|
|
619
683
|
centered?: boolean
|
|
684
|
+
|
|
620
685
|
/**
|
|
621
686
|
* Whether to prevent body scroll when open.
|
|
622
687
|
*/
|
|
623
688
|
preventScroll?: boolean
|
|
689
|
+
|
|
624
690
|
/**
|
|
625
691
|
* Accessible label for the close button.
|
|
626
692
|
* @default 'Close'
|
|
@@ -639,14 +705,17 @@ interface SpinnerProps extends BaseProps {
|
|
|
639
705
|
* Spinner size.
|
|
640
706
|
*/
|
|
641
707
|
size?: Size
|
|
708
|
+
|
|
642
709
|
/**
|
|
643
710
|
* Spinner color.
|
|
644
711
|
*/
|
|
645
712
|
color?: ColorVariant | string
|
|
713
|
+
|
|
646
714
|
/**
|
|
647
715
|
* Loading label (for accessibility).
|
|
648
716
|
*/
|
|
649
717
|
label?: string
|
|
718
|
+
|
|
650
719
|
/**
|
|
651
720
|
* Spinner thickness.
|
|
652
721
|
*/
|
|
@@ -664,22 +733,27 @@ interface AvatarProps extends HTMLElementProps {
|
|
|
664
733
|
* Image source URL.
|
|
665
734
|
*/
|
|
666
735
|
src?: string
|
|
736
|
+
|
|
667
737
|
/**
|
|
668
738
|
* Alt text for the image.
|
|
669
739
|
*/
|
|
670
740
|
alt?: string
|
|
741
|
+
|
|
671
742
|
/**
|
|
672
743
|
* Name for fallback initials.
|
|
673
744
|
*/
|
|
674
745
|
name?: string
|
|
746
|
+
|
|
675
747
|
/**
|
|
676
748
|
* Avatar size.
|
|
677
749
|
*/
|
|
678
750
|
size?: Size | number
|
|
751
|
+
|
|
679
752
|
/**
|
|
680
753
|
* Whether the avatar is rounded.
|
|
681
754
|
*/
|
|
682
755
|
rounded?: boolean
|
|
756
|
+
|
|
683
757
|
/**
|
|
684
758
|
* Fallback element when no image.
|
|
685
759
|
*/
|
|
@@ -697,18 +771,22 @@ interface BadgeProps extends HTMLElementProps {
|
|
|
697
771
|
* Badge content.
|
|
698
772
|
*/
|
|
699
773
|
children?: Children
|
|
774
|
+
|
|
700
775
|
/**
|
|
701
776
|
* Badge color.
|
|
702
777
|
*/
|
|
703
778
|
color?: ColorVariant
|
|
779
|
+
|
|
704
780
|
/**
|
|
705
781
|
* Badge variant.
|
|
706
782
|
*/
|
|
707
783
|
variant?: 'solid' | 'outline' | 'subtle'
|
|
784
|
+
|
|
708
785
|
/**
|
|
709
786
|
* Badge size.
|
|
710
787
|
*/
|
|
711
788
|
size?: Size
|
|
789
|
+
|
|
712
790
|
/**
|
|
713
791
|
* Whether the badge is rounded.
|
|
714
792
|
*/
|
|
@@ -726,18 +804,22 @@ interface TooltipProps extends HTMLElementProps {
|
|
|
726
804
|
* Tooltip content.
|
|
727
805
|
*/
|
|
728
806
|
content: Children
|
|
807
|
+
|
|
729
808
|
/**
|
|
730
809
|
* Element that triggers the tooltip.
|
|
731
810
|
*/
|
|
732
811
|
children: Children
|
|
812
|
+
|
|
733
813
|
/**
|
|
734
814
|
* Tooltip placement.
|
|
735
815
|
*/
|
|
736
816
|
placement?: TooltipPlacement
|
|
817
|
+
|
|
737
818
|
/**
|
|
738
819
|
* Delay before showing (ms).
|
|
739
820
|
*/
|
|
740
821
|
delay?: number
|
|
822
|
+
|
|
741
823
|
/**
|
|
742
824
|
* Whether the tooltip has an arrow.
|
|
743
825
|
*/
|
|
@@ -755,14 +837,17 @@ interface CardProps extends HTMLElementProps {
|
|
|
755
837
|
* Card content.
|
|
756
838
|
*/
|
|
757
839
|
children?: Children
|
|
840
|
+
|
|
758
841
|
/**
|
|
759
842
|
* Card variant.
|
|
760
843
|
*/
|
|
761
844
|
variant?: 'elevated' | 'outlined' | 'filled'
|
|
845
|
+
|
|
762
846
|
/**
|
|
763
847
|
* Whether the card is interactive (clickable).
|
|
764
848
|
*/
|
|
765
849
|
interactive?: boolean
|
|
850
|
+
|
|
766
851
|
/**
|
|
767
852
|
* Padding size.
|
|
768
853
|
*/
|
|
@@ -780,14 +865,17 @@ interface ContainerProps extends HTMLElementProps {
|
|
|
780
865
|
* Container content.
|
|
781
866
|
*/
|
|
782
867
|
children?: Children
|
|
868
|
+
|
|
783
869
|
/**
|
|
784
870
|
* Maximum width.
|
|
785
871
|
*/
|
|
786
872
|
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | string
|
|
873
|
+
|
|
787
874
|
/**
|
|
788
875
|
* Whether to center the container.
|
|
789
876
|
*/
|
|
790
877
|
centered?: boolean
|
|
878
|
+
|
|
791
879
|
/**
|
|
792
880
|
* Horizontal padding.
|
|
793
881
|
*/
|
|
@@ -805,22 +893,27 @@ interface FlexProps extends HTMLElementProps {
|
|
|
805
893
|
* Flex content.
|
|
806
894
|
*/
|
|
807
895
|
children?: Children
|
|
896
|
+
|
|
808
897
|
/**
|
|
809
898
|
* Flex direction.
|
|
810
899
|
*/
|
|
811
900
|
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'
|
|
901
|
+
|
|
812
902
|
/**
|
|
813
903
|
* Justify content.
|
|
814
904
|
*/
|
|
815
905
|
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'
|
|
906
|
+
|
|
816
907
|
/**
|
|
817
908
|
* Align items.
|
|
818
909
|
*/
|
|
819
910
|
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch'
|
|
911
|
+
|
|
820
912
|
/**
|
|
821
913
|
* Flex wrap.
|
|
822
914
|
*/
|
|
823
915
|
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse'
|
|
916
|
+
|
|
824
917
|
/**
|
|
825
918
|
* Gap between items.
|
|
826
919
|
*/
|
|
@@ -838,22 +931,27 @@ interface GridProps extends HTMLElementProps {
|
|
|
838
931
|
* Grid content.
|
|
839
932
|
*/
|
|
840
933
|
children?: Children
|
|
934
|
+
|
|
841
935
|
/**
|
|
842
936
|
* Number of columns.
|
|
843
937
|
*/
|
|
844
938
|
columns?: number | string
|
|
939
|
+
|
|
845
940
|
/**
|
|
846
941
|
* Number of rows.
|
|
847
942
|
*/
|
|
848
943
|
rows?: number | string
|
|
944
|
+
|
|
849
945
|
/**
|
|
850
946
|
* Gap between items.
|
|
851
947
|
*/
|
|
852
948
|
gap?: Size | string | number
|
|
949
|
+
|
|
853
950
|
/**
|
|
854
951
|
* Column gap.
|
|
855
952
|
*/
|
|
856
953
|
columnGap?: Size | string | number
|
|
954
|
+
|
|
857
955
|
/**
|
|
858
956
|
* Row gap.
|
|
859
957
|
*/
|
|
@@ -871,6 +969,7 @@ interface SpacerProps extends BaseProps {
|
|
|
871
969
|
* Space size.
|
|
872
970
|
*/
|
|
873
971
|
size?: Size | string | number
|
|
972
|
+
|
|
874
973
|
/**
|
|
875
974
|
* Whether the spacer is horizontal.
|
|
876
975
|
*/
|
|
@@ -888,10 +987,12 @@ interface FormProps extends FormElementProps {
|
|
|
888
987
|
* Form content.
|
|
889
988
|
*/
|
|
890
989
|
children?: Children
|
|
990
|
+
|
|
891
991
|
/**
|
|
892
992
|
* Submit handler with form data.
|
|
893
993
|
*/
|
|
894
994
|
onFormSubmit?: (data: Record<string, unknown>) => void | Promise<void>
|
|
995
|
+
|
|
895
996
|
/**
|
|
896
997
|
* Whether the form is submitting.
|
|
897
998
|
*/
|
|
@@ -909,22 +1010,27 @@ interface FormFieldProps extends HTMLElementProps {
|
|
|
909
1010
|
* Field content.
|
|
910
1011
|
*/
|
|
911
1012
|
children?: Children
|
|
1013
|
+
|
|
912
1014
|
/**
|
|
913
1015
|
* Field label.
|
|
914
1016
|
*/
|
|
915
1017
|
label?: string
|
|
1018
|
+
|
|
916
1019
|
/**
|
|
917
1020
|
* Field name.
|
|
918
1021
|
*/
|
|
919
1022
|
name?: string
|
|
1023
|
+
|
|
920
1024
|
/**
|
|
921
1025
|
* Error message.
|
|
922
1026
|
*/
|
|
923
1027
|
error?: string
|
|
1028
|
+
|
|
924
1029
|
/**
|
|
925
1030
|
* Hint/help text.
|
|
926
1031
|
*/
|
|
927
1032
|
hint?: string
|
|
1033
|
+
|
|
928
1034
|
/**
|
|
929
1035
|
* Whether the field is required.
|
|
930
1036
|
*/
|
|
@@ -942,30 +1048,37 @@ interface AlertProps extends HTMLElementProps {
|
|
|
942
1048
|
* Alert content.
|
|
943
1049
|
*/
|
|
944
1050
|
children?: Children
|
|
1051
|
+
|
|
945
1052
|
/**
|
|
946
1053
|
* Alert title.
|
|
947
1054
|
*/
|
|
948
1055
|
title?: string
|
|
1056
|
+
|
|
949
1057
|
/**
|
|
950
1058
|
* Alert status/type.
|
|
951
1059
|
*/
|
|
952
1060
|
status?: ColorVariant
|
|
1061
|
+
|
|
953
1062
|
/**
|
|
954
1063
|
* Alert variant.
|
|
955
1064
|
*/
|
|
956
1065
|
variant?: 'solid' | 'subtle' | 'outline' | 'left-accent'
|
|
1066
|
+
|
|
957
1067
|
/**
|
|
958
1068
|
* Whether the alert is dismissible.
|
|
959
1069
|
*/
|
|
960
1070
|
dismissible?: boolean
|
|
1071
|
+
|
|
961
1072
|
/**
|
|
962
1073
|
* Called when dismissed.
|
|
963
1074
|
*/
|
|
964
1075
|
onDismiss?: () => void
|
|
1076
|
+
|
|
965
1077
|
/**
|
|
966
1078
|
* Icon to display.
|
|
967
1079
|
*/
|
|
968
1080
|
icon?: Children
|
|
1081
|
+
|
|
969
1082
|
/**
|
|
970
1083
|
* Accessible label for the dismiss button.
|
|
971
1084
|
* @default 'Dismiss'
|
|
@@ -984,34 +1097,42 @@ interface ToastProps extends HTMLElementProps {
|
|
|
984
1097
|
* Toast content.
|
|
985
1098
|
*/
|
|
986
1099
|
children?: Children
|
|
1100
|
+
|
|
987
1101
|
/**
|
|
988
1102
|
* Toast title.
|
|
989
1103
|
*/
|
|
990
1104
|
title?: string
|
|
1105
|
+
|
|
991
1106
|
/**
|
|
992
1107
|
* Toast description.
|
|
993
1108
|
*/
|
|
994
1109
|
description?: string
|
|
1110
|
+
|
|
995
1111
|
/**
|
|
996
1112
|
* Toast status/type.
|
|
997
1113
|
*/
|
|
998
1114
|
status?: ColorVariant
|
|
1115
|
+
|
|
999
1116
|
/**
|
|
1000
1117
|
* Duration in milliseconds (0 for persistent).
|
|
1001
1118
|
*/
|
|
1002
1119
|
duration?: number
|
|
1120
|
+
|
|
1003
1121
|
/**
|
|
1004
1122
|
* Whether the toast is dismissible.
|
|
1005
1123
|
*/
|
|
1006
1124
|
dismissible?: boolean
|
|
1125
|
+
|
|
1007
1126
|
/**
|
|
1008
1127
|
* Called when dismissed.
|
|
1009
1128
|
*/
|
|
1010
1129
|
onDismiss?: () => void
|
|
1130
|
+
|
|
1011
1131
|
/**
|
|
1012
1132
|
* Toast position.
|
|
1013
1133
|
*/
|
|
1014
1134
|
position?: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left'
|
|
1135
|
+
|
|
1015
1136
|
/**
|
|
1016
1137
|
* Accessible label for the close button.
|
|
1017
1138
|
* @default 'Close'
|
|
@@ -1030,18 +1151,22 @@ interface TabItem<T = string> {
|
|
|
1030
1151
|
* Tab value/id.
|
|
1031
1152
|
*/
|
|
1032
1153
|
value: T
|
|
1154
|
+
|
|
1033
1155
|
/**
|
|
1034
1156
|
* Tab label.
|
|
1035
1157
|
*/
|
|
1036
1158
|
label: Children
|
|
1159
|
+
|
|
1037
1160
|
/**
|
|
1038
1161
|
* Tab content.
|
|
1039
1162
|
*/
|
|
1040
1163
|
content?: Children
|
|
1164
|
+
|
|
1041
1165
|
/**
|
|
1042
1166
|
* Whether the tab is disabled.
|
|
1043
1167
|
*/
|
|
1044
1168
|
disabled?: boolean
|
|
1169
|
+
|
|
1045
1170
|
/**
|
|
1046
1171
|
* Icon to display.
|
|
1047
1172
|
*/
|
|
@@ -1059,26 +1184,32 @@ interface TabsProps<T = string> extends BaseProps {
|
|
|
1059
1184
|
* Tab items.
|
|
1060
1185
|
*/
|
|
1061
1186
|
items: TabItem<T>[]
|
|
1187
|
+
|
|
1062
1188
|
/**
|
|
1063
1189
|
* Current active tab.
|
|
1064
1190
|
*/
|
|
1065
1191
|
value?: T
|
|
1192
|
+
|
|
1066
1193
|
/**
|
|
1067
1194
|
* Default active tab.
|
|
1068
1195
|
*/
|
|
1069
1196
|
defaultValue?: T
|
|
1197
|
+
|
|
1070
1198
|
/**
|
|
1071
1199
|
* Change handler.
|
|
1072
1200
|
*/
|
|
1073
1201
|
onChange?: (value: T) => void
|
|
1202
|
+
|
|
1074
1203
|
/**
|
|
1075
1204
|
* Tab variant.
|
|
1076
1205
|
*/
|
|
1077
1206
|
variant?: 'line' | 'enclosed' | 'soft-rounded' | 'solid-rounded'
|
|
1207
|
+
|
|
1078
1208
|
/**
|
|
1079
1209
|
* Tab size.
|
|
1080
1210
|
*/
|
|
1081
1211
|
size?: Size
|
|
1212
|
+
|
|
1082
1213
|
/**
|
|
1083
1214
|
* Whether tabs are fitted (take full width).
|
|
1084
1215
|
*/
|
|
@@ -1096,14 +1227,17 @@ interface AccordionItem<T = string> {
|
|
|
1096
1227
|
* Item value/id.
|
|
1097
1228
|
*/
|
|
1098
1229
|
value: T
|
|
1230
|
+
|
|
1099
1231
|
/**
|
|
1100
1232
|
* Item header/trigger.
|
|
1101
1233
|
*/
|
|
1102
1234
|
header: Children
|
|
1235
|
+
|
|
1103
1236
|
/**
|
|
1104
1237
|
* Item content.
|
|
1105
1238
|
*/
|
|
1106
1239
|
content: Children
|
|
1240
|
+
|
|
1107
1241
|
/**
|
|
1108
1242
|
* Whether the item is disabled.
|
|
1109
1243
|
*/
|
|
@@ -1121,22 +1255,27 @@ interface AccordionProps<T = string> extends BaseProps {
|
|
|
1121
1255
|
* Accordion items.
|
|
1122
1256
|
*/
|
|
1123
1257
|
items: AccordionItem<T>[]
|
|
1258
|
+
|
|
1124
1259
|
/**
|
|
1125
1260
|
* Expanded item(s).
|
|
1126
1261
|
*/
|
|
1127
1262
|
value?: T | T[]
|
|
1263
|
+
|
|
1128
1264
|
/**
|
|
1129
1265
|
* Default expanded item(s).
|
|
1130
1266
|
*/
|
|
1131
1267
|
defaultValue?: T | T[]
|
|
1268
|
+
|
|
1132
1269
|
/**
|
|
1133
1270
|
* Change handler.
|
|
1134
1271
|
*/
|
|
1135
1272
|
onChange?: (value: T | T[]) => void
|
|
1273
|
+
|
|
1136
1274
|
/**
|
|
1137
1275
|
* Whether multiple items can be expanded.
|
|
1138
1276
|
*/
|
|
1139
1277
|
multiple?: boolean
|
|
1278
|
+
|
|
1140
1279
|
/**
|
|
1141
1280
|
* Whether items can be collapsed.
|
|
1142
1281
|
*/
|
|
@@ -1154,22 +1293,27 @@ interface TableColumn<T> {
|
|
|
1154
1293
|
* Column key (data property).
|
|
1155
1294
|
*/
|
|
1156
1295
|
key: keyof T | string
|
|
1296
|
+
|
|
1157
1297
|
/**
|
|
1158
1298
|
* Column header.
|
|
1159
1299
|
*/
|
|
1160
1300
|
header: Children
|
|
1301
|
+
|
|
1161
1302
|
/**
|
|
1162
1303
|
* Custom cell renderer.
|
|
1163
1304
|
*/
|
|
1164
1305
|
render?: (value: unknown, row: T, index: number) => Children
|
|
1306
|
+
|
|
1165
1307
|
/**
|
|
1166
1308
|
* Column width.
|
|
1167
1309
|
*/
|
|
1168
1310
|
width?: string | number
|
|
1311
|
+
|
|
1169
1312
|
/**
|
|
1170
1313
|
* Whether the column is sortable.
|
|
1171
1314
|
*/
|
|
1172
1315
|
sortable?: boolean
|
|
1316
|
+
|
|
1173
1317
|
/**
|
|
1174
1318
|
* Text alignment.
|
|
1175
1319
|
*/
|
|
@@ -1187,49 +1331,57 @@ interface TableProps<T> extends HTMLElementProps {
|
|
|
1187
1331
|
* Table data.
|
|
1188
1332
|
*/
|
|
1189
1333
|
data: T[]
|
|
1334
|
+
|
|
1190
1335
|
/**
|
|
1191
1336
|
* Column definitions.
|
|
1192
1337
|
*/
|
|
1193
1338
|
columns: TableColumn<T>[]
|
|
1339
|
+
|
|
1194
1340
|
/**
|
|
1195
1341
|
* Row key extractor.
|
|
1196
1342
|
*/
|
|
1197
1343
|
rowKey?: keyof T | ((row: T) => string | number)
|
|
1344
|
+
|
|
1198
1345
|
/**
|
|
1199
1346
|
* Whether to show borders.
|
|
1200
1347
|
*/
|
|
1201
1348
|
bordered?: boolean
|
|
1349
|
+
|
|
1202
1350
|
/**
|
|
1203
1351
|
* Whether rows are striped.
|
|
1204
1352
|
*/
|
|
1205
1353
|
striped?: boolean
|
|
1354
|
+
|
|
1206
1355
|
/**
|
|
1207
1356
|
* Whether rows are hoverable.
|
|
1208
1357
|
*/
|
|
1209
1358
|
hoverable?: boolean
|
|
1359
|
+
|
|
1210
1360
|
/**
|
|
1211
1361
|
* Table size.
|
|
1212
1362
|
*/
|
|
1213
1363
|
size?: Size
|
|
1364
|
+
|
|
1214
1365
|
/**
|
|
1215
1366
|
* Empty state content.
|
|
1216
1367
|
*/
|
|
1217
1368
|
emptyContent?: Children
|
|
1369
|
+
|
|
1218
1370
|
/**
|
|
1219
1371
|
* Loading state.
|
|
1220
1372
|
*/
|
|
1221
1373
|
loading?: boolean
|
|
1374
|
+
|
|
1222
1375
|
/**
|
|
1223
1376
|
* Sort configuration.
|
|
1224
1377
|
*/
|
|
1225
|
-
sort?: {
|
|
1226
|
-
|
|
1227
|
-
direction: 'asc' | 'desc'
|
|
1228
|
-
}
|
|
1378
|
+
sort?: { key: string; direction: 'asc' | 'desc' }
|
|
1379
|
+
|
|
1229
1380
|
/**
|
|
1230
1381
|
* Sort change handler.
|
|
1231
1382
|
*/
|
|
1232
1383
|
onSort?: (key: string, direction: 'asc' | 'desc') => void
|
|
1384
|
+
|
|
1233
1385
|
/**
|
|
1234
1386
|
* Row click handler.
|
|
1235
1387
|
*/
|
|
@@ -1247,34 +1399,42 @@ interface PaginationProps extends BaseProps {
|
|
|
1247
1399
|
* Current page (1-indexed).
|
|
1248
1400
|
*/
|
|
1249
1401
|
page: number
|
|
1402
|
+
|
|
1250
1403
|
/**
|
|
1251
1404
|
* Total number of pages.
|
|
1252
1405
|
*/
|
|
1253
1406
|
totalPages: number
|
|
1407
|
+
|
|
1254
1408
|
/**
|
|
1255
1409
|
* Page change handler.
|
|
1256
1410
|
*/
|
|
1257
1411
|
onChange: (page: number) => void
|
|
1412
|
+
|
|
1258
1413
|
/**
|
|
1259
1414
|
* Number of sibling pages to show.
|
|
1260
1415
|
*/
|
|
1261
1416
|
siblings?: number
|
|
1417
|
+
|
|
1262
1418
|
/**
|
|
1263
1419
|
* Number of boundary pages to show.
|
|
1264
1420
|
*/
|
|
1265
1421
|
boundaries?: number
|
|
1422
|
+
|
|
1266
1423
|
/**
|
|
1267
1424
|
* Pagination size.
|
|
1268
1425
|
*/
|
|
1269
1426
|
size?: Size
|
|
1427
|
+
|
|
1270
1428
|
/**
|
|
1271
1429
|
* Whether to show first/last buttons.
|
|
1272
1430
|
*/
|
|
1273
1431
|
showFirstLast?: boolean
|
|
1432
|
+
|
|
1274
1433
|
/**
|
|
1275
1434
|
* Whether to show previous/next buttons.
|
|
1276
1435
|
*/
|
|
1277
1436
|
showPrevNext?: boolean
|
|
1437
|
+
|
|
1278
1438
|
/**
|
|
1279
1439
|
* Accessible labels for pagination controls.
|
|
1280
1440
|
*/
|
|
@@ -1299,18 +1459,22 @@ interface SkeletonProps extends BaseProps {
|
|
|
1299
1459
|
* Skeleton width.
|
|
1300
1460
|
*/
|
|
1301
1461
|
width?: string | number
|
|
1462
|
+
|
|
1302
1463
|
/**
|
|
1303
1464
|
* Skeleton height.
|
|
1304
1465
|
*/
|
|
1305
1466
|
height?: string | number
|
|
1467
|
+
|
|
1306
1468
|
/**
|
|
1307
1469
|
* Whether the skeleton is circular.
|
|
1308
1470
|
*/
|
|
1309
1471
|
circle?: boolean
|
|
1472
|
+
|
|
1310
1473
|
/**
|
|
1311
1474
|
* Border radius.
|
|
1312
1475
|
*/
|
|
1313
1476
|
borderRadius?: string | number
|
|
1477
|
+
|
|
1314
1478
|
/**
|
|
1315
1479
|
* Animation type.
|
|
1316
1480
|
*/
|
|
@@ -3106,7 +3270,7 @@ function getIconSvg(name: IconName, className: string): string
|
|
|
3106
3270
|
Merge class names, filtering out falsy values.
|
|
3107
3271
|
|
|
3108
3272
|
```typescript
|
|
3109
|
-
function cn(inputs
|
|
3273
|
+
function cn(...inputs: (string | undefined | null | false)[]): string
|
|
3110
3274
|
```
|
|
3111
3275
|
|
|
3112
3276
|
- `inputs` — The inputs.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Angular UI components for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/compiler-cli": "22.2.3",
|
|
39
39
|
"@angular/core": "22.2.3",
|
|
40
40
|
"@angular/platform-browser": "22.2.3",
|
|
41
|
-
"@molecule/app-i18n": "1.
|
|
41
|
+
"@molecule/app-i18n": "1.1.2",
|
|
42
42
|
"@molecule/app-icons": "1.0.3",
|
|
43
43
|
"@types/node": "26.6.5",
|
|
44
44
|
"rxjs": "7.8.2",
|