@universal-material/web 3.0.78 → 3.0.80

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.
@@ -583,6 +583,255 @@
583
583
  }
584
584
  ]
585
585
  },
586
+ {
587
+ "kind": "javascript-module",
588
+ "path": "src/card/card-content.styles.ts",
589
+ "declarations": [
590
+ {
591
+ "kind": "variable",
592
+ "name": "styles",
593
+ "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`"
594
+ }
595
+ ],
596
+ "exports": [
597
+ {
598
+ "kind": "js",
599
+ "name": "styles",
600
+ "declaration": {
601
+ "name": "styles",
602
+ "module": "src/card/card-content.styles.ts"
603
+ }
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ "kind": "javascript-module",
609
+ "path": "src/card/card-content.ts",
610
+ "declarations": [
611
+ {
612
+ "kind": "class",
613
+ "description": "",
614
+ "name": "UmCardContent",
615
+ "members": [
616
+ {
617
+ "kind": "field",
618
+ "name": "hasContent",
619
+ "type": {
620
+ "text": "boolean"
621
+ },
622
+ "default": "false",
623
+ "attribute": "has-content",
624
+ "reflects": true
625
+ },
626
+ {
627
+ "kind": "method",
628
+ "name": "handleSlotChange",
629
+ "privacy": "private",
630
+ "parameters": [
631
+ {
632
+ "name": "e",
633
+ "type": {
634
+ "text": "Event"
635
+ }
636
+ }
637
+ ]
638
+ }
639
+ ],
640
+ "attributes": [
641
+ {
642
+ "name": "has-content",
643
+ "type": {
644
+ "text": "boolean"
645
+ },
646
+ "default": "false",
647
+ "fieldName": "hasContent"
648
+ }
649
+ ],
650
+ "superclass": {
651
+ "name": "LitElement",
652
+ "package": "lit"
653
+ },
654
+ "tagName": "u-card-content",
655
+ "customElement": true
656
+ }
657
+ ],
658
+ "exports": [
659
+ {
660
+ "kind": "js",
661
+ "name": "UmCardContent",
662
+ "declaration": {
663
+ "name": "UmCardContent",
664
+ "module": "src/card/card-content.ts"
665
+ }
666
+ },
667
+ {
668
+ "kind": "custom-element-definition",
669
+ "name": "u-card-content",
670
+ "declaration": {
671
+ "name": "UmCardContent",
672
+ "module": "src/card/card-content.ts"
673
+ }
674
+ }
675
+ ]
676
+ },
677
+ {
678
+ "kind": "javascript-module",
679
+ "path": "src/card/card-media.styles.ts",
680
+ "declarations": [
681
+ {
682
+ "kind": "variable",
683
+ "name": "styles",
684
+ "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`"
685
+ }
686
+ ],
687
+ "exports": [
688
+ {
689
+ "kind": "js",
690
+ "name": "styles",
691
+ "declaration": {
692
+ "name": "styles",
693
+ "module": "src/card/card-media.styles.ts"
694
+ }
695
+ }
696
+ ]
697
+ },
698
+ {
699
+ "kind": "javascript-module",
700
+ "path": "src/card/card-media.ts",
701
+ "declarations": [
702
+ {
703
+ "kind": "class",
704
+ "description": "",
705
+ "name": "UmCardMedia",
706
+ "members": [
707
+ {
708
+ "kind": "field",
709
+ "name": "wide",
710
+ "type": {
711
+ "text": "boolean"
712
+ },
713
+ "default": "false",
714
+ "attribute": "wide",
715
+ "reflects": true
716
+ }
717
+ ],
718
+ "attributes": [
719
+ {
720
+ "name": "wide",
721
+ "type": {
722
+ "text": "boolean"
723
+ },
724
+ "default": "false",
725
+ "fieldName": "wide"
726
+ }
727
+ ],
728
+ "superclass": {
729
+ "name": "LitElement",
730
+ "package": "lit"
731
+ },
732
+ "tagName": "u-card-media",
733
+ "customElement": true
734
+ }
735
+ ],
736
+ "exports": [
737
+ {
738
+ "kind": "js",
739
+ "name": "UmCardMedia",
740
+ "declaration": {
741
+ "name": "UmCardMedia",
742
+ "module": "src/card/card-media.ts"
743
+ }
744
+ },
745
+ {
746
+ "kind": "custom-element-definition",
747
+ "name": "u-card-media",
748
+ "declaration": {
749
+ "name": "UmCardMedia",
750
+ "module": "src/card/card-media.ts"
751
+ }
752
+ }
753
+ ]
754
+ },
755
+ {
756
+ "kind": "javascript-module",
757
+ "path": "src/card/card.styles.ts",
758
+ "declarations": [
759
+ {
760
+ "kind": "variable",
761
+ "name": "styles",
762
+ "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(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`"
763
+ }
764
+ ],
765
+ "exports": [
766
+ {
767
+ "kind": "js",
768
+ "name": "styles",
769
+ "declaration": {
770
+ "name": "styles",
771
+ "module": "src/card/card.styles.ts"
772
+ }
773
+ }
774
+ ]
775
+ },
776
+ {
777
+ "kind": "javascript-module",
778
+ "path": "src/card/card.ts",
779
+ "declarations": [
780
+ {
781
+ "kind": "class",
782
+ "description": "",
783
+ "name": "UmCard",
784
+ "members": [
785
+ {
786
+ "kind": "field",
787
+ "name": "variant",
788
+ "type": {
789
+ "text": "UmCardVariant"
790
+ },
791
+ "default": "'filled'",
792
+ "description": "The Card variant to render.",
793
+ "attribute": "variant",
794
+ "reflects": true
795
+ }
796
+ ],
797
+ "attributes": [
798
+ {
799
+ "name": "variant",
800
+ "type": {
801
+ "text": "UmCardVariant"
802
+ },
803
+ "default": "'filled'",
804
+ "description": "The Card variant to render.",
805
+ "fieldName": "variant"
806
+ }
807
+ ],
808
+ "superclass": {
809
+ "name": "LitElement",
810
+ "package": "lit"
811
+ },
812
+ "tagName": "u-card",
813
+ "customElement": true
814
+ }
815
+ ],
816
+ "exports": [
817
+ {
818
+ "kind": "js",
819
+ "name": "UmCard",
820
+ "declaration": {
821
+ "name": "UmCard",
822
+ "module": "src/card/card.ts"
823
+ }
824
+ },
825
+ {
826
+ "kind": "custom-element-definition",
827
+ "name": "u-card",
828
+ "declaration": {
829
+ "name": "UmCard",
830
+ "module": "src/card/card.ts"
831
+ }
832
+ }
833
+ ]
834
+ },
586
835
  {
587
836
  "kind": "javascript-module",
588
837
  "path": "src/button/button-base.styles.ts",
@@ -2588,320 +2837,71 @@
2588
2837
  },
2589
2838
  "default": "false",
2590
2839
  "description": "Whether the button is disabled or not.",
2591
- "fieldName": "disabled",
2592
- "inheritedFrom": {
2593
- "name": "UmButtonWrapper",
2594
- "module": "src/shared/button-wrapper.ts"
2595
- }
2596
- },
2597
- {
2598
- "name": "href",
2599
- "type": {
2600
- "text": "string | undefined"
2601
- },
2602
- "description": "The URL that the link button points to.",
2603
- "fieldName": "href",
2604
- "inheritedFrom": {
2605
- "name": "UmButtonWrapper",
2606
- "module": "src/shared/button-wrapper.ts"
2607
- }
2608
- },
2609
- {
2610
- "name": "target",
2611
- "type": {
2612
- "text": "string | undefined"
2613
- },
2614
- "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
2615
- "fieldName": "target",
2616
- "inheritedFrom": {
2617
- "name": "UmButtonWrapper",
2618
- "module": "src/shared/button-wrapper.ts"
2619
- }
2620
- },
2621
- {
2622
- "name": "name",
2623
- "type": {
2624
- "text": "string | undefined"
2625
- },
2626
- "fieldName": "name",
2627
- "inheritedFrom": {
2628
- "name": "UmButtonWrapper",
2629
- "module": "src/shared/button-wrapper.ts"
2630
- }
2631
- }
2632
- ],
2633
- "superclass": {
2634
- "name": "UmButtonBase",
2635
- "module": "/src/button/button-base.js"
2636
- },
2637
- "tagName": "u-icon-button",
2638
- "customElement": true
2639
- }
2640
- ],
2641
- "exports": [
2642
- {
2643
- "kind": "js",
2644
- "name": "UmIconButton",
2645
- "declaration": {
2646
- "name": "UmIconButton",
2647
- "module": "src/button/icon-button.ts"
2648
- }
2649
- },
2650
- {
2651
- "kind": "custom-element-definition",
2652
- "name": "u-icon-button",
2653
- "declaration": {
2654
- "name": "UmIconButton",
2655
- "module": "src/button/icon-button.ts"
2656
- }
2657
- }
2658
- ]
2659
- },
2660
- {
2661
- "kind": "javascript-module",
2662
- "path": "src/card/card-content.styles.ts",
2663
- "declarations": [
2664
- {
2665
- "kind": "variable",
2666
- "name": "styles",
2667
- "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`"
2668
- }
2669
- ],
2670
- "exports": [
2671
- {
2672
- "kind": "js",
2673
- "name": "styles",
2674
- "declaration": {
2675
- "name": "styles",
2676
- "module": "src/card/card-content.styles.ts"
2677
- }
2678
- }
2679
- ]
2680
- },
2681
- {
2682
- "kind": "javascript-module",
2683
- "path": "src/card/card-content.ts",
2684
- "declarations": [
2685
- {
2686
- "kind": "class",
2687
- "description": "",
2688
- "name": "UmCardContent",
2689
- "members": [
2690
- {
2691
- "kind": "field",
2692
- "name": "hasContent",
2693
- "type": {
2694
- "text": "boolean"
2695
- },
2696
- "default": "false",
2697
- "attribute": "has-content",
2698
- "reflects": true
2699
- },
2700
- {
2701
- "kind": "method",
2702
- "name": "handleSlotChange",
2703
- "privacy": "private",
2704
- "parameters": [
2705
- {
2706
- "name": "e",
2707
- "type": {
2708
- "text": "Event"
2709
- }
2710
- }
2711
- ]
2712
- }
2713
- ],
2714
- "attributes": [
2715
- {
2716
- "name": "has-content",
2717
- "type": {
2718
- "text": "boolean"
2719
- },
2720
- "default": "false",
2721
- "fieldName": "hasContent"
2722
- }
2723
- ],
2724
- "superclass": {
2725
- "name": "LitElement",
2726
- "package": "lit"
2727
- },
2728
- "tagName": "u-card-content",
2729
- "customElement": true
2730
- }
2731
- ],
2732
- "exports": [
2733
- {
2734
- "kind": "js",
2735
- "name": "UmCardContent",
2736
- "declaration": {
2737
- "name": "UmCardContent",
2738
- "module": "src/card/card-content.ts"
2739
- }
2740
- },
2741
- {
2742
- "kind": "custom-element-definition",
2743
- "name": "u-card-content",
2744
- "declaration": {
2745
- "name": "UmCardContent",
2746
- "module": "src/card/card-content.ts"
2747
- }
2748
- }
2749
- ]
2750
- },
2751
- {
2752
- "kind": "javascript-module",
2753
- "path": "src/card/card-media.styles.ts",
2754
- "declarations": [
2755
- {
2756
- "kind": "variable",
2757
- "name": "styles",
2758
- "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`"
2759
- }
2760
- ],
2761
- "exports": [
2762
- {
2763
- "kind": "js",
2764
- "name": "styles",
2765
- "declaration": {
2766
- "name": "styles",
2767
- "module": "src/card/card-media.styles.ts"
2768
- }
2769
- }
2770
- ]
2771
- },
2772
- {
2773
- "kind": "javascript-module",
2774
- "path": "src/card/card-media.ts",
2775
- "declarations": [
2776
- {
2777
- "kind": "class",
2778
- "description": "",
2779
- "name": "UmCardMedia",
2780
- "members": [
2781
- {
2782
- "kind": "field",
2783
- "name": "wide",
2784
- "type": {
2785
- "text": "boolean"
2786
- },
2787
- "default": "false",
2788
- "attribute": "wide",
2789
- "reflects": true
2790
- }
2791
- ],
2792
- "attributes": [
2840
+ "fieldName": "disabled",
2841
+ "inheritedFrom": {
2842
+ "name": "UmButtonWrapper",
2843
+ "module": "src/shared/button-wrapper.ts"
2844
+ }
2845
+ },
2793
2846
  {
2794
- "name": "wide",
2847
+ "name": "href",
2795
2848
  "type": {
2796
- "text": "boolean"
2849
+ "text": "string | undefined"
2797
2850
  },
2798
- "default": "false",
2799
- "fieldName": "wide"
2800
- }
2801
- ],
2802
- "superclass": {
2803
- "name": "LitElement",
2804
- "package": "lit"
2805
- },
2806
- "tagName": "u-card-media",
2807
- "customElement": true
2808
- }
2809
- ],
2810
- "exports": [
2811
- {
2812
- "kind": "js",
2813
- "name": "UmCardMedia",
2814
- "declaration": {
2815
- "name": "UmCardMedia",
2816
- "module": "src/card/card-media.ts"
2817
- }
2818
- },
2819
- {
2820
- "kind": "custom-element-definition",
2821
- "name": "u-card-media",
2822
- "declaration": {
2823
- "name": "UmCardMedia",
2824
- "module": "src/card/card-media.ts"
2825
- }
2826
- }
2827
- ]
2828
- },
2829
- {
2830
- "kind": "javascript-module",
2831
- "path": "src/card/card.styles.ts",
2832
- "declarations": [
2833
- {
2834
- "kind": "variable",
2835
- "name": "styles",
2836
- "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(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`"
2837
- }
2838
- ],
2839
- "exports": [
2840
- {
2841
- "kind": "js",
2842
- "name": "styles",
2843
- "declaration": {
2844
- "name": "styles",
2845
- "module": "src/card/card.styles.ts"
2846
- }
2847
- }
2848
- ]
2849
- },
2850
- {
2851
- "kind": "javascript-module",
2852
- "path": "src/card/card.ts",
2853
- "declarations": [
2854
- {
2855
- "kind": "class",
2856
- "description": "",
2857
- "name": "UmCard",
2858
- "members": [
2851
+ "description": "The URL that the link button points to.",
2852
+ "fieldName": "href",
2853
+ "inheritedFrom": {
2854
+ "name": "UmButtonWrapper",
2855
+ "module": "src/shared/button-wrapper.ts"
2856
+ }
2857
+ },
2859
2858
  {
2860
- "kind": "field",
2861
- "name": "variant",
2859
+ "name": "target",
2862
2860
  "type": {
2863
- "text": "UmCardVariant"
2861
+ "text": "string | undefined"
2864
2862
  },
2865
- "default": "'filled'",
2866
- "description": "The Card variant to render.",
2867
- "attribute": "variant",
2868
- "reflects": true
2869
- }
2870
- ],
2871
- "attributes": [
2863
+ "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
2864
+ "fieldName": "target",
2865
+ "inheritedFrom": {
2866
+ "name": "UmButtonWrapper",
2867
+ "module": "src/shared/button-wrapper.ts"
2868
+ }
2869
+ },
2872
2870
  {
2873
- "name": "variant",
2871
+ "name": "name",
2874
2872
  "type": {
2875
- "text": "UmCardVariant"
2873
+ "text": "string | undefined"
2876
2874
  },
2877
- "default": "'filled'",
2878
- "description": "The Card variant to render.",
2879
- "fieldName": "variant"
2875
+ "fieldName": "name",
2876
+ "inheritedFrom": {
2877
+ "name": "UmButtonWrapper",
2878
+ "module": "src/shared/button-wrapper.ts"
2879
+ }
2880
2880
  }
2881
2881
  ],
2882
2882
  "superclass": {
2883
- "name": "LitElement",
2884
- "package": "lit"
2883
+ "name": "UmButtonBase",
2884
+ "module": "/src/button/button-base.js"
2885
2885
  },
2886
- "tagName": "u-card",
2886
+ "tagName": "u-icon-button",
2887
2887
  "customElement": true
2888
2888
  }
2889
2889
  ],
2890
2890
  "exports": [
2891
2891
  {
2892
2892
  "kind": "js",
2893
- "name": "UmCard",
2893
+ "name": "UmIconButton",
2894
2894
  "declaration": {
2895
- "name": "UmCard",
2896
- "module": "src/card/card.ts"
2895
+ "name": "UmIconButton",
2896
+ "module": "src/button/icon-button.ts"
2897
2897
  }
2898
2898
  },
2899
2899
  {
2900
2900
  "kind": "custom-element-definition",
2901
- "name": "u-card",
2901
+ "name": "u-icon-button",
2902
2902
  "declaration": {
2903
- "name": "UmCard",
2904
- "module": "src/card/card.ts"
2903
+ "name": "UmIconButton",
2904
+ "module": "src/button/icon-button.ts"
2905
2905
  }
2906
2906
  }
2907
2907
  ]
@@ -5126,63 +5126,6 @@
5126
5126
  }
5127
5127
  ]
5128
5128
  },
5129
- {
5130
- "kind": "javascript-module",
5131
- "path": "src/elevation/elevation.styles.ts",
5132
- "declarations": [
5133
- {
5134
- "kind": "variable",
5135
- "name": "styles",
5136
- "default": "css `\n :host {\n --_level: var(--u-elevation-level, 0);\n --_shadow-color: var(--u-color-shadow, rgb(0, 0, 0));\n -webkit-tap-highlight-color: transparent;\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n }\n :host::before, :host::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n transition: box-shadow 150ms ease-in-out;\n }\n :host::before {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))) calc(1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))) 0 var(--_shadow-color);\n opacity: 0.3;\n }\n :host::after {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);\n opacity: 0.15;\n }\n`"
5137
- }
5138
- ],
5139
- "exports": [
5140
- {
5141
- "kind": "js",
5142
- "name": "styles",
5143
- "declaration": {
5144
- "name": "styles",
5145
- "module": "src/elevation/elevation.styles.ts"
5146
- }
5147
- }
5148
- ]
5149
- },
5150
- {
5151
- "kind": "javascript-module",
5152
- "path": "src/elevation/elevation.ts",
5153
- "declarations": [
5154
- {
5155
- "kind": "class",
5156
- "description": "",
5157
- "name": "UmElevation",
5158
- "members": [],
5159
- "superclass": {
5160
- "name": "LitElement",
5161
- "package": "lit"
5162
- },
5163
- "tagName": "u-elevation",
5164
- "customElement": true
5165
- }
5166
- ],
5167
- "exports": [
5168
- {
5169
- "kind": "js",
5170
- "name": "UmElevation",
5171
- "declaration": {
5172
- "name": "UmElevation",
5173
- "module": "src/elevation/elevation.ts"
5174
- }
5175
- },
5176
- {
5177
- "kind": "custom-element-definition",
5178
- "name": "u-elevation",
5179
- "declaration": {
5180
- "name": "UmElevation",
5181
- "module": "src/elevation/elevation.ts"
5182
- }
5183
- }
5184
- ]
5185
- },
5186
5129
  {
5187
5130
  "kind": "javascript-module",
5188
5131
  "path": "src/dialog/confirm-dialog-builder.ts",
@@ -6055,6 +5998,63 @@
6055
5998
  }
6056
5999
  ]
6057
6000
  },
6001
+ {
6002
+ "kind": "javascript-module",
6003
+ "path": "src/elevation/elevation.styles.ts",
6004
+ "declarations": [
6005
+ {
6006
+ "kind": "variable",
6007
+ "name": "styles",
6008
+ "default": "css `\n :host {\n --_level: var(--u-elevation-level, 0);\n --_shadow-color: var(--u-color-shadow, rgb(0, 0, 0));\n -webkit-tap-highlight-color: transparent;\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n }\n :host::before, :host::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n transition: box-shadow 150ms ease-in-out;\n }\n :host::before {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))) calc(1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))) 0 var(--_shadow-color);\n opacity: 0.3;\n }\n :host::after {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);\n opacity: 0.15;\n }\n`"
6009
+ }
6010
+ ],
6011
+ "exports": [
6012
+ {
6013
+ "kind": "js",
6014
+ "name": "styles",
6015
+ "declaration": {
6016
+ "name": "styles",
6017
+ "module": "src/elevation/elevation.styles.ts"
6018
+ }
6019
+ }
6020
+ ]
6021
+ },
6022
+ {
6023
+ "kind": "javascript-module",
6024
+ "path": "src/elevation/elevation.ts",
6025
+ "declarations": [
6026
+ {
6027
+ "kind": "class",
6028
+ "description": "",
6029
+ "name": "UmElevation",
6030
+ "members": [],
6031
+ "superclass": {
6032
+ "name": "LitElement",
6033
+ "package": "lit"
6034
+ },
6035
+ "tagName": "u-elevation",
6036
+ "customElement": true
6037
+ }
6038
+ ],
6039
+ "exports": [
6040
+ {
6041
+ "kind": "js",
6042
+ "name": "UmElevation",
6043
+ "declaration": {
6044
+ "name": "UmElevation",
6045
+ "module": "src/elevation/elevation.ts"
6046
+ }
6047
+ },
6048
+ {
6049
+ "kind": "custom-element-definition",
6050
+ "name": "u-elevation",
6051
+ "declaration": {
6052
+ "name": "UmElevation",
6053
+ "module": "src/elevation/elevation.ts"
6054
+ }
6055
+ }
6056
+ ]
6057
+ },
6058
6058
  {
6059
6059
  "kind": "javascript-module",
6060
6060
  "path": "src/field/field-base.styles.ts",
@@ -7190,7 +7190,7 @@
7190
7190
  {
7191
7191
  "kind": "variable",
7192
7192
  "name": "styles",
7193
- "default": "css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n font-size: var(--_menu-item-icon-size);\n line-height: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`"
7193
+ "default": "css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--_menu-item-icon-size);\n height: var(--_menu-item-icon-size);\n font-size: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`"
7194
7194
  }
7195
7195
  ],
7196
7196
  "exports": [
@@ -13614,6 +13614,15 @@
13614
13614
  "name": "value",
13615
13615
  "attribute": "value"
13616
13616
  },
13617
+ {
13618
+ "kind": "field",
13619
+ "name": "type",
13620
+ "type": {
13621
+ "text": "string"
13622
+ },
13623
+ "default": "'text'",
13624
+ "attribute": "type"
13625
+ },
13617
13626
  {
13618
13627
  "kind": "field",
13619
13628
  "name": "prefixText",
@@ -14088,6 +14097,14 @@
14088
14097
  "name": "value",
14089
14098
  "fieldName": "value"
14090
14099
  },
14100
+ {
14101
+ "name": "type",
14102
+ "type": {
14103
+ "text": "string"
14104
+ },
14105
+ "default": "'text'",
14106
+ "fieldName": "type"
14107
+ },
14091
14108
  {
14092
14109
  "name": "prefix-text",
14093
14110
  "type": {
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.styles.d.ts","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA+ClB,CAAC"}
1
+ {"version":3,"file":"menu-item.styles.d.ts","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAmDlB,CAAC"}
@@ -24,8 +24,12 @@ export const styles = css `
24
24
  }
25
25
 
26
26
  .icon {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ width: var(--_menu-item-icon-size);
31
+ height: var(--_menu-item-icon-size);
27
32
  font-size: var(--_menu-item-icon-size);
28
- line-height: var(--_menu-item-icon-size);
29
33
  color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));
30
34
  }
31
35
 
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.styles.js","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n font-size: var(--_menu-item-icon-size);\n line-height: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`;\n"]}
1
+ {"version":3,"file":"menu-item.styles.js","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--_menu-item-icon-size);\n height: var(--_menu-item-icon-size);\n font-size: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universal-material/web",
3
- "version": "3.0.78",
3
+ "version": "3.0.80",
4
4
  "description": "Material web components",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -6,6 +6,7 @@ export declare class UmTextField extends UmTextFieldBase {
6
6
  static styles: CSSResultGroup;
7
7
  get value(): string;
8
8
  set value(value: string);
9
+ type: string;
9
10
  prefixText: string | undefined;
10
11
  suffixText: string | undefined;
11
12
  autocomplete: 'on' | 'off' | string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/text-field/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAQ,kBAAkB,EAAW,MAAM,KAAK,CAAC;AAMxD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,qBACa,WAAY,SAAQ,eAAe;;IAE9C,OAAgB,MAAM,EAAE,cAAc,CAGpC;IAIF,IACI,KAAK,IAGQ,MAAM,CADtB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAItB;IAEqC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,YAAY,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,cAAc,EAAG,MAAM,CAAC;IAE5C,KAAK,EAAG,gBAAgB,CAAC;IAEhC,KAAK;cAIK,aAAa,IAAI,kBAAkB;CA6BvD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/text-field/text-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAQ,kBAAkB,EAAW,MAAM,KAAK,CAAC;AAMxD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,qBACa,WAAY,SAAQ,eAAe;;IAE9C,OAAgB,MAAM,EAAE,cAAc,CAGpC;IAIF,IACI,KAAK,IAGQ,MAAM,CADtB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAItB;IAEW,IAAI,EAAE,MAAM,CAAU;IACI,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,YAAY,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,cAAc,EAAG,MAAM,CAAC;IAE5C,KAAK,EAAG,gBAAgB,CAAC;IAEhC,KAAK;cAIK,aAAa,IAAI,kBAAkB;CA8BvD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
@@ -10,11 +10,16 @@ import { live } from 'lit/directives/live.js';
10
10
  import { styles } from './text-field.styles.js';
11
11
  import { UmTextFieldBase } from '../shared/text-field-base/text-field-base.js';
12
12
  let UmTextField = class UmTextField extends UmTextFieldBase {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.#value = '';
16
+ this.type = 'text';
17
+ }
13
18
  static { this.styles = [
14
19
  UmTextFieldBase.styles,
15
20
  styles
16
21
  ]; }
17
- #value = '';
22
+ #value;
18
23
  get value() {
19
24
  return this.#value;
20
25
  }
@@ -33,6 +38,7 @@ let UmTextField = class UmTextField extends UmTextFieldBase {
33
38
  </slot>
34
39
  <div class="input">
35
40
  <input
41
+ type=${this.type}
36
42
  part="input"
37
43
  id=${this.id || nothing}
38
44
  aria-labelledby="label"
@@ -57,6 +63,9 @@ let UmTextField = class UmTextField extends UmTextFieldBase {
57
63
  __decorate([
58
64
  property()
59
65
  ], UmTextField.prototype, "value", null);
66
+ __decorate([
67
+ property()
68
+ ], UmTextField.prototype, "type", void 0);
60
69
  __decorate([
61
70
  property({ attribute: 'prefix-text' })
62
71
  ], UmTextField.prototype, "prefixText", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../src/text-field/text-field.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,IAAI,EAAsB,OAAO,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGxE,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,eAAe;aAE9B,WAAM,GAAmB;QACvC,eAAe,CAAC,MAAM;QACtB,MAAM;KACP,AAHqB,CAGpB;IAEF,MAAM,GAAW,EAAE,CAAC;IAGpB,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,CAAC,KAAa;QACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;QACpB,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IASQ,KAAK;QACZ,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEkB,aAAa;QAE9B,OAAO,IAAI,CAAA;;gBAEC,IAAI,CAAC,UAAU;;;;;eAKhB,IAAI,CAAC,EAAE,IAAI,OAAO;;;sBAGX,IAAI,CAAC,QAAQ;wBACX,IAAI,CAAC,WAAW,IAAI,OAAO;uBAC5B,IAAI,CAAC,UAAU;yBACb,IAAI,CAAC,YAAY;2BACf,IAAI,CAAC,cAAc;iBAC7B,IAAI,CAAC,IAAI;mBACP,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;mBACjB,IAAI,CAAC,YAAY;;;gBAGpB,IAAI,CAAC,UAAU;cACjB,CAAC;IACb,CAAC;IAED,YAAY;QACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAChC,CAAC;;AAhDD;IADC,QAAQ,EAAE;wCAGV;AAOqC;IAArC,QAAQ,CAAC,EAAC,SAAS,EAAE,aAAa,EAAC,CAAC;+CAAgC;AAC/B;IAArC,QAAQ,CAAC,EAAC,SAAS,EAAE,aAAa,EAAC,CAAC;+CAAgC;AAC1C;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;iDAAiD;AACvC;IAAnC,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;mDAAkC;AAE5C;IAAf,KAAK,CAAC,OAAO,CAAC;0CAA0B;AAxB9B,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CA2DvB","sourcesContent":["import { CSSResultGroup } from '@lit/reactive-element/css-tag';\nimport { html, HTMLTemplateResult, nothing } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { live } from 'lit/directives/live.js';\n\nimport { styles } from './text-field.styles.js';\n\nimport { UmTextFieldBase } from '../shared/text-field-base/text-field-base.js';\n\n@customElement('u-text-field')\nexport class UmTextField extends UmTextFieldBase {\n\n static override styles: CSSResultGroup = [\n UmTextFieldBase.styles,\n styles\n ];\n\n #value: string = '';\n\n @property()\n get value() {\n return this.#value;\n }\n set value(value: string) {\n this.#value = value;\n this.empty = !value;\n this.elementInternals.setFormValue(value);\n }\n\n @property({attribute: 'prefix-text'}) prefixText: string | undefined;\n @property({attribute: 'suffix-text'}) suffixText: string | undefined;\n @property({reflect: true}) autocomplete: 'on' | 'off' | string | undefined;\n @property({reflect: true}) override autocapitalize!: string;\n\n @query('input') input!: HTMLInputElement;\n\n override focus() {\n this.input.focus();\n }\n\n protected override renderControl(): HTMLTemplateResult {\n\n return html`\n <slot class=\"prefix\" name=\"prefix\">\n <span>${this.prefixText}</span>\n </slot>\n <div class=\"input\">\n <input\n part=\"input\"\n id=${this.id || nothing}\n aria-labelledby=\"label\"\n aria-describedBy=\"supporting-text\"\n ?disabled=${this.disabled}\n placeholder=${this.placeholder || nothing}\n spellcheck=${this.spellcheck}\n autocomplete=${this.autocomplete}\n autocapitalize=${this.autocapitalize}\n role=${this.role}\n .value=${live(this.#value)}\n @input=${this.#handleInput} />\n </div>\n <slot class=\"suffix\" name=\"suffix\">\n <span>${this.suffixText}</span>\n </slot>`;\n }\n\n #handleInput() {\n this.value = this.input.value;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-text-field': UmTextField;\n }\n}\n"]}
1
+ {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../src/text-field/text-field.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,IAAI,EAAsB,OAAO,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGxE,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,eAAe;IAAzC;;QAOL,WAAM,GAAW,EAAE,CAAC;QAYR,SAAI,GAAW,MAAM,CAAC;IA0CpC,CAAC;aA3DiB,WAAM,GAAmB;QACvC,eAAe,CAAC,MAAM;QACtB,MAAM;KACP,AAHqB,CAGpB;IAEF,MAAM,CAAc;IAGpB,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,CAAC,KAAa;QACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;QACpB,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAUQ,KAAK;QACZ,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEkB,aAAa;QAE9B,OAAO,IAAI,CAAA;;gBAEC,IAAI,CAAC,UAAU;;;;iBAId,IAAI,CAAC,IAAI;;eAEX,IAAI,CAAC,EAAE,IAAI,OAAO;;;sBAGX,IAAI,CAAC,QAAQ;wBACX,IAAI,CAAC,WAAW,IAAI,OAAO;uBAC5B,IAAI,CAAC,UAAU;yBACb,IAAI,CAAC,YAAY;2BACf,IAAI,CAAC,cAAc;iBAC7B,IAAI,CAAC,IAAI;mBACP,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;mBACjB,IAAI,CAAC,YAAY;;;gBAGpB,IAAI,CAAC,UAAU;cACjB,CAAC;IACb,CAAC;IAED,YAAY;QACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAChC,CAAC;;AAlDD;IADC,QAAQ,EAAE;wCAGV;AAOW;IAAX,QAAQ,EAAE;yCAAuB;AACI;IAArC,QAAQ,CAAC,EAAC,SAAS,EAAE,aAAa,EAAC,CAAC;+CAAgC;AAC/B;IAArC,QAAQ,CAAC,EAAC,SAAS,EAAE,aAAa,EAAC,CAAC;+CAAgC;AAC1C;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;iDAAiD;AACvC;IAAnC,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;mDAAkC;AAE5C;IAAf,KAAK,CAAC,OAAO,CAAC;0CAA0B;AAzB9B,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CA6DvB","sourcesContent":["import { CSSResultGroup } from '@lit/reactive-element/css-tag';\nimport { html, HTMLTemplateResult, nothing } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { live } from 'lit/directives/live.js';\n\nimport { styles } from './text-field.styles.js';\n\nimport { UmTextFieldBase } from '../shared/text-field-base/text-field-base.js';\n\n@customElement('u-text-field')\nexport class UmTextField extends UmTextFieldBase {\n\n static override styles: CSSResultGroup = [\n UmTextFieldBase.styles,\n styles\n ];\n\n #value: string = '';\n\n @property()\n get value() {\n return this.#value;\n }\n set value(value: string) {\n this.#value = value;\n this.empty = !value;\n this.elementInternals.setFormValue(value);\n }\n\n @property() type: string = 'text';\n @property({attribute: 'prefix-text'}) prefixText: string | undefined;\n @property({attribute: 'suffix-text'}) suffixText: string | undefined;\n @property({reflect: true}) autocomplete: 'on' | 'off' | string | undefined;\n @property({reflect: true}) override autocapitalize!: string;\n\n @query('input') input!: HTMLInputElement;\n\n override focus() {\n this.input.focus();\n }\n\n protected override renderControl(): HTMLTemplateResult {\n\n return html`\n <slot class=\"prefix\" name=\"prefix\">\n <span>${this.prefixText}</span>\n </slot>\n <div class=\"input\">\n <input\n type=${this.type}\n part=\"input\"\n id=${this.id || nothing}\n aria-labelledby=\"label\"\n aria-describedBy=\"supporting-text\"\n ?disabled=${this.disabled}\n placeholder=${this.placeholder || nothing}\n spellcheck=${this.spellcheck}\n autocomplete=${this.autocomplete}\n autocapitalize=${this.autocapitalize}\n role=${this.role}\n .value=${live(this.#value)}\n @input=${this.#handleInput} />\n </div>\n <slot class=\"suffix\" name=\"suffix\">\n <span>${this.suffixText}</span>\n </slot>`;\n }\n\n #handleInput() {\n this.value = this.input.value;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-text-field': UmTextField;\n }\n}\n"]}