@universal-material/web 3.0.113 → 3.0.115
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/css/universal-material.css +2 -7
- package/css/universal-material.min.css +2 -2
- package/custom-elements.json +253 -253
- package/package.json +1 -1
- package/scss/_global.scss +1 -2
- package/shared/selection-control/selection-control-list-item.d.ts.map +1 -1
- package/shared/selection-control/selection-control-list-item.js +16 -9
- package/shared/selection-control/selection-control-list-item.js.map +1 -1
package/custom-elements.json
CHANGED
|
@@ -644,6 +644,255 @@
|
|
|
644
644
|
}
|
|
645
645
|
]
|
|
646
646
|
},
|
|
647
|
+
{
|
|
648
|
+
"kind": "javascript-module",
|
|
649
|
+
"path": "src/card/card-content.styles.ts",
|
|
650
|
+
"declarations": [
|
|
651
|
+
{
|
|
652
|
+
"kind": "variable",
|
|
653
|
+
"name": "styles",
|
|
654
|
+
"default": "css `\n :host {\n display: block;\n }\n\n :host(:has(slot > *)) {\n display: none;\n }\n\n :host([has-content]) {\n padding: var(--u-card-padding, 16px);\n }\n\n slot {\n border-radius: inherit;\n }\n`"
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"exports": [
|
|
658
|
+
{
|
|
659
|
+
"kind": "js",
|
|
660
|
+
"name": "styles",
|
|
661
|
+
"declaration": {
|
|
662
|
+
"name": "styles",
|
|
663
|
+
"module": "src/card/card-content.styles.ts"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"kind": "javascript-module",
|
|
670
|
+
"path": "src/card/card-content.ts",
|
|
671
|
+
"declarations": [
|
|
672
|
+
{
|
|
673
|
+
"kind": "class",
|
|
674
|
+
"description": "",
|
|
675
|
+
"name": "UmCardContent",
|
|
676
|
+
"members": [
|
|
677
|
+
{
|
|
678
|
+
"kind": "field",
|
|
679
|
+
"name": "hasContent",
|
|
680
|
+
"type": {
|
|
681
|
+
"text": "boolean"
|
|
682
|
+
},
|
|
683
|
+
"default": "false",
|
|
684
|
+
"attribute": "has-content",
|
|
685
|
+
"reflects": true
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"kind": "method",
|
|
689
|
+
"name": "handleSlotChange",
|
|
690
|
+
"privacy": "private",
|
|
691
|
+
"parameters": [
|
|
692
|
+
{
|
|
693
|
+
"name": "e",
|
|
694
|
+
"type": {
|
|
695
|
+
"text": "Event"
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
]
|
|
699
|
+
}
|
|
700
|
+
],
|
|
701
|
+
"attributes": [
|
|
702
|
+
{
|
|
703
|
+
"name": "has-content",
|
|
704
|
+
"type": {
|
|
705
|
+
"text": "boolean"
|
|
706
|
+
},
|
|
707
|
+
"default": "false",
|
|
708
|
+
"fieldName": "hasContent"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"superclass": {
|
|
712
|
+
"name": "LitElement",
|
|
713
|
+
"package": "lit"
|
|
714
|
+
},
|
|
715
|
+
"tagName": "u-card-content",
|
|
716
|
+
"customElement": true
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"exports": [
|
|
720
|
+
{
|
|
721
|
+
"kind": "js",
|
|
722
|
+
"name": "UmCardContent",
|
|
723
|
+
"declaration": {
|
|
724
|
+
"name": "UmCardContent",
|
|
725
|
+
"module": "src/card/card-content.ts"
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"kind": "custom-element-definition",
|
|
730
|
+
"name": "u-card-content",
|
|
731
|
+
"declaration": {
|
|
732
|
+
"name": "UmCardContent",
|
|
733
|
+
"module": "src/card/card-content.ts"
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "javascript-module",
|
|
740
|
+
"path": "src/card/card-media.styles.ts",
|
|
741
|
+
"declarations": [
|
|
742
|
+
{
|
|
743
|
+
"kind": "variable",
|
|
744
|
+
"name": "styles",
|
|
745
|
+
"default": "css `\n :host {\n display: block;\n aspect-ratio: 1;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([wide]) {\n aspect-ratio: 16/9;\n }\n`"
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
"exports": [
|
|
749
|
+
{
|
|
750
|
+
"kind": "js",
|
|
751
|
+
"name": "styles",
|
|
752
|
+
"declaration": {
|
|
753
|
+
"name": "styles",
|
|
754
|
+
"module": "src/card/card-media.styles.ts"
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
]
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"kind": "javascript-module",
|
|
761
|
+
"path": "src/card/card-media.ts",
|
|
762
|
+
"declarations": [
|
|
763
|
+
{
|
|
764
|
+
"kind": "class",
|
|
765
|
+
"description": "",
|
|
766
|
+
"name": "UmCardMedia",
|
|
767
|
+
"members": [
|
|
768
|
+
{
|
|
769
|
+
"kind": "field",
|
|
770
|
+
"name": "wide",
|
|
771
|
+
"type": {
|
|
772
|
+
"text": "boolean"
|
|
773
|
+
},
|
|
774
|
+
"default": "false",
|
|
775
|
+
"attribute": "wide",
|
|
776
|
+
"reflects": true
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
"attributes": [
|
|
780
|
+
{
|
|
781
|
+
"name": "wide",
|
|
782
|
+
"type": {
|
|
783
|
+
"text": "boolean"
|
|
784
|
+
},
|
|
785
|
+
"default": "false",
|
|
786
|
+
"fieldName": "wide"
|
|
787
|
+
}
|
|
788
|
+
],
|
|
789
|
+
"superclass": {
|
|
790
|
+
"name": "LitElement",
|
|
791
|
+
"package": "lit"
|
|
792
|
+
},
|
|
793
|
+
"tagName": "u-card-media",
|
|
794
|
+
"customElement": true
|
|
795
|
+
}
|
|
796
|
+
],
|
|
797
|
+
"exports": [
|
|
798
|
+
{
|
|
799
|
+
"kind": "js",
|
|
800
|
+
"name": "UmCardMedia",
|
|
801
|
+
"declaration": {
|
|
802
|
+
"name": "UmCardMedia",
|
|
803
|
+
"module": "src/card/card-media.ts"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"kind": "custom-element-definition",
|
|
808
|
+
"name": "u-card-media",
|
|
809
|
+
"declaration": {
|
|
810
|
+
"name": "UmCardMedia",
|
|
811
|
+
"module": "src/card/card-media.ts"
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
]
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"kind": "javascript-module",
|
|
818
|
+
"path": "src/card/card.styles.ts",
|
|
819
|
+
"declarations": [
|
|
820
|
+
{
|
|
821
|
+
"kind": "variable",
|
|
822
|
+
"name": "styles",
|
|
823
|
+
"default": "css `\n :host {\n display: block;\n position: relative;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([variant=elevated]) {\n --u-current-bg-color: var(--u-card-elevated-bg-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));\n background-color: var(--u-current-bg-color);\n }\n :host([variant=elevated]) u-elevation {\n --u-elevation-level: var(--u-elevated-card-elevation-level, 1);\n }\n\n :host([variant=filled]) {\n --u-current-bg-color: var(--u-card-filled-bg-color, var(--u-color-surface-container-highest, rgb(230, 224, 233)));\n background-color: var(--u-current-bg-color);\n }\n\n :host([variant=outlined]) {\n border: var(--u-outlined-card-outline-width, 1px) solid var(--u-outlined-card-outline-color, var(--u-color-outline-variant, rgb(202, 196, 208)));\n }\n\n u-card-content,\n slot {\n border-radius: inherit;\n }\n`"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"exports": [
|
|
827
|
+
{
|
|
828
|
+
"kind": "js",
|
|
829
|
+
"name": "styles",
|
|
830
|
+
"declaration": {
|
|
831
|
+
"name": "styles",
|
|
832
|
+
"module": "src/card/card.styles.ts"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"kind": "javascript-module",
|
|
839
|
+
"path": "src/card/card.ts",
|
|
840
|
+
"declarations": [
|
|
841
|
+
{
|
|
842
|
+
"kind": "class",
|
|
843
|
+
"description": "",
|
|
844
|
+
"name": "UmCard",
|
|
845
|
+
"members": [
|
|
846
|
+
{
|
|
847
|
+
"kind": "field",
|
|
848
|
+
"name": "variant",
|
|
849
|
+
"type": {
|
|
850
|
+
"text": "UmCardVariant"
|
|
851
|
+
},
|
|
852
|
+
"default": "'filled'",
|
|
853
|
+
"description": "The Card variant to render.",
|
|
854
|
+
"attribute": "variant",
|
|
855
|
+
"reflects": true
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"attributes": [
|
|
859
|
+
{
|
|
860
|
+
"name": "variant",
|
|
861
|
+
"type": {
|
|
862
|
+
"text": "UmCardVariant"
|
|
863
|
+
},
|
|
864
|
+
"default": "'filled'",
|
|
865
|
+
"description": "The Card variant to render.",
|
|
866
|
+
"fieldName": "variant"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"superclass": {
|
|
870
|
+
"name": "LitElement",
|
|
871
|
+
"package": "lit"
|
|
872
|
+
},
|
|
873
|
+
"tagName": "u-card",
|
|
874
|
+
"customElement": true
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
"exports": [
|
|
878
|
+
{
|
|
879
|
+
"kind": "js",
|
|
880
|
+
"name": "UmCard",
|
|
881
|
+
"declaration": {
|
|
882
|
+
"name": "UmCard",
|
|
883
|
+
"module": "src/card/card.ts"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"kind": "custom-element-definition",
|
|
888
|
+
"name": "u-card",
|
|
889
|
+
"declaration": {
|
|
890
|
+
"name": "UmCard",
|
|
891
|
+
"module": "src/card/card.ts"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
},
|
|
647
896
|
{
|
|
648
897
|
"kind": "javascript-module",
|
|
649
898
|
"path": "src/button/button-base.styles.ts",
|
|
@@ -2746,7 +2995,7 @@
|
|
|
2746
2995
|
"text": "array"
|
|
2747
2996
|
},
|
|
2748
2997
|
"static": true,
|
|
2749
|
-
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css
|
|
2998
|
+
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css`\n :host {\n --u-list-item-block-padding: 0;\n display: block;\n }\n\n :host(:not([disabled])) {\n cursor: pointer;\n }\n `,\n ]",
|
|
2750
2999
|
"inheritedFrom": {
|
|
2751
3000
|
"name": "mixinSelectionControlListItem",
|
|
2752
3001
|
"module": "src/shared/selection-control/selection-control-list-item.ts"
|
|
@@ -3461,255 +3710,6 @@
|
|
|
3461
3710
|
}
|
|
3462
3711
|
]
|
|
3463
3712
|
},
|
|
3464
|
-
{
|
|
3465
|
-
"kind": "javascript-module",
|
|
3466
|
-
"path": "src/card/card-content.styles.ts",
|
|
3467
|
-
"declarations": [
|
|
3468
|
-
{
|
|
3469
|
-
"kind": "variable",
|
|
3470
|
-
"name": "styles",
|
|
3471
|
-
"default": "css `\n :host {\n display: block;\n }\n\n :host(:has(slot > *)) {\n display: none;\n }\n\n :host([has-content]) {\n padding: var(--u-card-padding, 16px);\n }\n\n slot {\n border-radius: inherit;\n }\n`"
|
|
3472
|
-
}
|
|
3473
|
-
],
|
|
3474
|
-
"exports": [
|
|
3475
|
-
{
|
|
3476
|
-
"kind": "js",
|
|
3477
|
-
"name": "styles",
|
|
3478
|
-
"declaration": {
|
|
3479
|
-
"name": "styles",
|
|
3480
|
-
"module": "src/card/card-content.styles.ts"
|
|
3481
|
-
}
|
|
3482
|
-
}
|
|
3483
|
-
]
|
|
3484
|
-
},
|
|
3485
|
-
{
|
|
3486
|
-
"kind": "javascript-module",
|
|
3487
|
-
"path": "src/card/card-content.ts",
|
|
3488
|
-
"declarations": [
|
|
3489
|
-
{
|
|
3490
|
-
"kind": "class",
|
|
3491
|
-
"description": "",
|
|
3492
|
-
"name": "UmCardContent",
|
|
3493
|
-
"members": [
|
|
3494
|
-
{
|
|
3495
|
-
"kind": "field",
|
|
3496
|
-
"name": "hasContent",
|
|
3497
|
-
"type": {
|
|
3498
|
-
"text": "boolean"
|
|
3499
|
-
},
|
|
3500
|
-
"default": "false",
|
|
3501
|
-
"attribute": "has-content",
|
|
3502
|
-
"reflects": true
|
|
3503
|
-
},
|
|
3504
|
-
{
|
|
3505
|
-
"kind": "method",
|
|
3506
|
-
"name": "handleSlotChange",
|
|
3507
|
-
"privacy": "private",
|
|
3508
|
-
"parameters": [
|
|
3509
|
-
{
|
|
3510
|
-
"name": "e",
|
|
3511
|
-
"type": {
|
|
3512
|
-
"text": "Event"
|
|
3513
|
-
}
|
|
3514
|
-
}
|
|
3515
|
-
]
|
|
3516
|
-
}
|
|
3517
|
-
],
|
|
3518
|
-
"attributes": [
|
|
3519
|
-
{
|
|
3520
|
-
"name": "has-content",
|
|
3521
|
-
"type": {
|
|
3522
|
-
"text": "boolean"
|
|
3523
|
-
},
|
|
3524
|
-
"default": "false",
|
|
3525
|
-
"fieldName": "hasContent"
|
|
3526
|
-
}
|
|
3527
|
-
],
|
|
3528
|
-
"superclass": {
|
|
3529
|
-
"name": "LitElement",
|
|
3530
|
-
"package": "lit"
|
|
3531
|
-
},
|
|
3532
|
-
"tagName": "u-card-content",
|
|
3533
|
-
"customElement": true
|
|
3534
|
-
}
|
|
3535
|
-
],
|
|
3536
|
-
"exports": [
|
|
3537
|
-
{
|
|
3538
|
-
"kind": "js",
|
|
3539
|
-
"name": "UmCardContent",
|
|
3540
|
-
"declaration": {
|
|
3541
|
-
"name": "UmCardContent",
|
|
3542
|
-
"module": "src/card/card-content.ts"
|
|
3543
|
-
}
|
|
3544
|
-
},
|
|
3545
|
-
{
|
|
3546
|
-
"kind": "custom-element-definition",
|
|
3547
|
-
"name": "u-card-content",
|
|
3548
|
-
"declaration": {
|
|
3549
|
-
"name": "UmCardContent",
|
|
3550
|
-
"module": "src/card/card-content.ts"
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
]
|
|
3554
|
-
},
|
|
3555
|
-
{
|
|
3556
|
-
"kind": "javascript-module",
|
|
3557
|
-
"path": "src/card/card-media.styles.ts",
|
|
3558
|
-
"declarations": [
|
|
3559
|
-
{
|
|
3560
|
-
"kind": "variable",
|
|
3561
|
-
"name": "styles",
|
|
3562
|
-
"default": "css `\n :host {\n display: block;\n aspect-ratio: 1;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([wide]) {\n aspect-ratio: 16/9;\n }\n`"
|
|
3563
|
-
}
|
|
3564
|
-
],
|
|
3565
|
-
"exports": [
|
|
3566
|
-
{
|
|
3567
|
-
"kind": "js",
|
|
3568
|
-
"name": "styles",
|
|
3569
|
-
"declaration": {
|
|
3570
|
-
"name": "styles",
|
|
3571
|
-
"module": "src/card/card-media.styles.ts"
|
|
3572
|
-
}
|
|
3573
|
-
}
|
|
3574
|
-
]
|
|
3575
|
-
},
|
|
3576
|
-
{
|
|
3577
|
-
"kind": "javascript-module",
|
|
3578
|
-
"path": "src/card/card-media.ts",
|
|
3579
|
-
"declarations": [
|
|
3580
|
-
{
|
|
3581
|
-
"kind": "class",
|
|
3582
|
-
"description": "",
|
|
3583
|
-
"name": "UmCardMedia",
|
|
3584
|
-
"members": [
|
|
3585
|
-
{
|
|
3586
|
-
"kind": "field",
|
|
3587
|
-
"name": "wide",
|
|
3588
|
-
"type": {
|
|
3589
|
-
"text": "boolean"
|
|
3590
|
-
},
|
|
3591
|
-
"default": "false",
|
|
3592
|
-
"attribute": "wide",
|
|
3593
|
-
"reflects": true
|
|
3594
|
-
}
|
|
3595
|
-
],
|
|
3596
|
-
"attributes": [
|
|
3597
|
-
{
|
|
3598
|
-
"name": "wide",
|
|
3599
|
-
"type": {
|
|
3600
|
-
"text": "boolean"
|
|
3601
|
-
},
|
|
3602
|
-
"default": "false",
|
|
3603
|
-
"fieldName": "wide"
|
|
3604
|
-
}
|
|
3605
|
-
],
|
|
3606
|
-
"superclass": {
|
|
3607
|
-
"name": "LitElement",
|
|
3608
|
-
"package": "lit"
|
|
3609
|
-
},
|
|
3610
|
-
"tagName": "u-card-media",
|
|
3611
|
-
"customElement": true
|
|
3612
|
-
}
|
|
3613
|
-
],
|
|
3614
|
-
"exports": [
|
|
3615
|
-
{
|
|
3616
|
-
"kind": "js",
|
|
3617
|
-
"name": "UmCardMedia",
|
|
3618
|
-
"declaration": {
|
|
3619
|
-
"name": "UmCardMedia",
|
|
3620
|
-
"module": "src/card/card-media.ts"
|
|
3621
|
-
}
|
|
3622
|
-
},
|
|
3623
|
-
{
|
|
3624
|
-
"kind": "custom-element-definition",
|
|
3625
|
-
"name": "u-card-media",
|
|
3626
|
-
"declaration": {
|
|
3627
|
-
"name": "UmCardMedia",
|
|
3628
|
-
"module": "src/card/card-media.ts"
|
|
3629
|
-
}
|
|
3630
|
-
}
|
|
3631
|
-
]
|
|
3632
|
-
},
|
|
3633
|
-
{
|
|
3634
|
-
"kind": "javascript-module",
|
|
3635
|
-
"path": "src/card/card.styles.ts",
|
|
3636
|
-
"declarations": [
|
|
3637
|
-
{
|
|
3638
|
-
"kind": "variable",
|
|
3639
|
-
"name": "styles",
|
|
3640
|
-
"default": "css `\n :host {\n display: block;\n position: relative;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([variant=elevated]) {\n --u-current-bg-color: var(--u-card-elevated-bg-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));\n background-color: var(--u-current-bg-color);\n }\n :host([variant=elevated]) u-elevation {\n --u-elevation-level: var(--u-elevated-card-elevation-level, 1);\n }\n\n :host([variant=filled]) {\n --u-current-bg-color: var(--u-card-filled-bg-color, var(--u-color-surface-container-highest, rgb(230, 224, 233)));\n background-color: var(--u-current-bg-color);\n }\n\n :host([variant=outlined]) {\n border: var(--u-outlined-card-outline-width, 1px) solid var(--u-outlined-card-outline-color, var(--u-color-outline-variant, rgb(202, 196, 208)));\n }\n\n u-card-content,\n slot {\n border-radius: inherit;\n }\n`"
|
|
3641
|
-
}
|
|
3642
|
-
],
|
|
3643
|
-
"exports": [
|
|
3644
|
-
{
|
|
3645
|
-
"kind": "js",
|
|
3646
|
-
"name": "styles",
|
|
3647
|
-
"declaration": {
|
|
3648
|
-
"name": "styles",
|
|
3649
|
-
"module": "src/card/card.styles.ts"
|
|
3650
|
-
}
|
|
3651
|
-
}
|
|
3652
|
-
]
|
|
3653
|
-
},
|
|
3654
|
-
{
|
|
3655
|
-
"kind": "javascript-module",
|
|
3656
|
-
"path": "src/card/card.ts",
|
|
3657
|
-
"declarations": [
|
|
3658
|
-
{
|
|
3659
|
-
"kind": "class",
|
|
3660
|
-
"description": "",
|
|
3661
|
-
"name": "UmCard",
|
|
3662
|
-
"members": [
|
|
3663
|
-
{
|
|
3664
|
-
"kind": "field",
|
|
3665
|
-
"name": "variant",
|
|
3666
|
-
"type": {
|
|
3667
|
-
"text": "UmCardVariant"
|
|
3668
|
-
},
|
|
3669
|
-
"default": "'filled'",
|
|
3670
|
-
"description": "The Card variant to render.",
|
|
3671
|
-
"attribute": "variant",
|
|
3672
|
-
"reflects": true
|
|
3673
|
-
}
|
|
3674
|
-
],
|
|
3675
|
-
"attributes": [
|
|
3676
|
-
{
|
|
3677
|
-
"name": "variant",
|
|
3678
|
-
"type": {
|
|
3679
|
-
"text": "UmCardVariant"
|
|
3680
|
-
},
|
|
3681
|
-
"default": "'filled'",
|
|
3682
|
-
"description": "The Card variant to render.",
|
|
3683
|
-
"fieldName": "variant"
|
|
3684
|
-
}
|
|
3685
|
-
],
|
|
3686
|
-
"superclass": {
|
|
3687
|
-
"name": "LitElement",
|
|
3688
|
-
"package": "lit"
|
|
3689
|
-
},
|
|
3690
|
-
"tagName": "u-card",
|
|
3691
|
-
"customElement": true
|
|
3692
|
-
}
|
|
3693
|
-
],
|
|
3694
|
-
"exports": [
|
|
3695
|
-
{
|
|
3696
|
-
"kind": "js",
|
|
3697
|
-
"name": "UmCard",
|
|
3698
|
-
"declaration": {
|
|
3699
|
-
"name": "UmCard",
|
|
3700
|
-
"module": "src/card/card.ts"
|
|
3701
|
-
}
|
|
3702
|
-
},
|
|
3703
|
-
{
|
|
3704
|
-
"kind": "custom-element-definition",
|
|
3705
|
-
"name": "u-card",
|
|
3706
|
-
"declaration": {
|
|
3707
|
-
"name": "UmCard",
|
|
3708
|
-
"module": "src/card/card.ts"
|
|
3709
|
-
}
|
|
3710
|
-
}
|
|
3711
|
-
]
|
|
3712
|
-
},
|
|
3713
3713
|
{
|
|
3714
3714
|
"kind": "javascript-module",
|
|
3715
3715
|
"path": "src/chip/chip-set.styles.ts",
|
|
@@ -9265,7 +9265,7 @@
|
|
|
9265
9265
|
"text": "array"
|
|
9266
9266
|
},
|
|
9267
9267
|
"static": true,
|
|
9268
|
-
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css
|
|
9268
|
+
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css`\n :host {\n --u-list-item-block-padding: 0;\n display: block;\n }\n\n :host(:not([disabled])) {\n cursor: pointer;\n }\n `,\n ]",
|
|
9269
9269
|
"inheritedFrom": {
|
|
9270
9270
|
"name": "mixinSelectionControlListItem",
|
|
9271
9271
|
"module": "src/shared/selection-control/selection-control-list-item.ts"
|
|
@@ -12705,7 +12705,7 @@
|
|
|
12705
12705
|
"text": "array"
|
|
12706
12706
|
},
|
|
12707
12707
|
"static": true,
|
|
12708
|
-
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css
|
|
12708
|
+
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css`\n :host {\n --u-list-item-block-padding: 0;\n display: block;\n }\n\n :host(:not([disabled])) {\n cursor: pointer;\n }\n `,\n ]",
|
|
12709
12709
|
"inheritedFrom": {
|
|
12710
12710
|
"name": "mixinSelectionControlListItem",
|
|
12711
12711
|
"module": "src/shared/selection-control/selection-control-list-item.ts"
|
|
@@ -17770,7 +17770,7 @@
|
|
|
17770
17770
|
"text": "array"
|
|
17771
17771
|
},
|
|
17772
17772
|
"static": true,
|
|
17773
|
-
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css
|
|
17773
|
+
"default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css`\n :host {\n --u-list-item-block-padding: 0;\n display: block;\n }\n\n :host(:not([disabled])) {\n cursor: pointer;\n }\n `,\n ]"
|
|
17774
17774
|
},
|
|
17775
17775
|
{
|
|
17776
17776
|
"kind": "method",
|
package/package.json
CHANGED
package/scss/_global.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-control-list-item.d.ts","sourceRoot":"","sources":["../../../src/shared/selection-control/selection-control-list-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,eAAO,MAAM,6BAA6B,kDAAmD,CAAC,KAAG,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"selection-control-list-item.d.ts","sourceRoot":"","sources":["../../../src/shared/selection-control/selection-control-list-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,eAAO,MAAM,6BAA6B,kDAAmD,CAAC,KAAG,YAAY,CAAC,CA6B7G,CAAC"}
|
|
@@ -5,18 +5,25 @@ export const mixinSelectionControlListItem = (base) => {
|
|
|
5
5
|
class SelectionControlListItem extends base {
|
|
6
6
|
static { this.styles = [
|
|
7
7
|
base.styles ?? [],
|
|
8
|
-
css
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
css `
|
|
9
|
+
:host {
|
|
10
|
+
--u-list-item-block-padding: 0;
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host(:not([disabled])) {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
`,
|
|
12
18
|
]; }
|
|
13
19
|
render() {
|
|
14
20
|
return html `
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
<u-list-item ?selectable=${!this.disabled}>
|
|
22
|
+
<div slot="trailing">${super.render()}</div>
|
|
23
|
+
<label for="input"><slot></slot></label>
|
|
24
|
+
<slot name="supporting-text" slot="supporting-text"></slot>
|
|
25
|
+
</u-list-item>
|
|
26
|
+
`;
|
|
20
27
|
}
|
|
21
28
|
}
|
|
22
29
|
return SelectionControlListItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-control-list-item.js","sourceRoot":"","sources":["../../../src/shared/selection-control/selection-control-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAKhE,aAAa;AACb,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAA0C,IAAO,EAAkB,EAAE;IAChH,aAAa;IACb,MAAe,wBAAyB,SAAQ,IAAI;iBAC3C,WAAM,GAAG;YACb,IAAqC,CAAC,MAAM,IAAI,EAAE;YACnD,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"selection-control-list-item.js","sourceRoot":"","sources":["../../../src/shared/selection-control/selection-control-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAKhE,aAAa;AACb,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAA0C,IAAO,EAAkB,EAAE;IAChH,aAAa;IACb,MAAe,wBAAyB,SAAQ,IAAI;iBAC3C,WAAM,GAAG;YACb,IAAqC,CAAC,MAAM,IAAI,EAAE;YACnD,GAAG,CAAA;;;;;;;;;OASF;SACF,CAAC;QAEO,MAAM;YACb,OAAO,IAAI,CAAA;mCACkB,CAAC,IAAI,CAAC,QAAQ;iCAChB,KAAK,CAAC,MAAM,EAAE;;;;OAIxC,CAAC;QACJ,CAAC;;IAGH,OAAO,wBAAwB,CAAC;AAClC,CAAC,CAAC","sourcesContent":["import { css, html, HTMLTemplateResult, LitElement } from 'lit';\n\nimport { MixinBase, MixinReturn } from '../mixin.js';\nimport { UmSelectionControl } from './selection-control.js';\n\n// @ts-ignore\nexport const mixinSelectionControlListItem = <T extends MixinBase<UmSelectionControl>>(base: T): MixinReturn<T> => {\n // @ts-ignore\n abstract class SelectionControlListItem extends base {\n static styles = [\n (base as unknown as typeof LitElement).styles ?? [],\n css`\n :host {\n --u-list-item-block-padding: 0;\n display: block;\n }\n\n :host(:not([disabled])) {\n cursor: pointer;\n }\n `,\n ];\n\n override render(): HTMLTemplateResult {\n return html`\n <u-list-item ?selectable=${!this.disabled}>\n <div slot=\"trailing\">${super.render()}</div>\n <label for=\"input\"><slot></slot></label>\n <slot name=\"supporting-text\" slot=\"supporting-text\"></slot>\n </u-list-item>\n `;\n }\n }\n\n return SelectionControlListItem;\n};\n"]}
|