@solid-design-system/components 5.13.4 → 5.13.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/cdn/chunks/chunk.2HJAPXID.js +1 -0
- package/cdn/components/expandable/expandable.js +1 -1
- package/cdn/custom-elements.json +186 -186
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2AESCEHJ.js +1 -1
- package/cdn-versioned/chunks/chunk.2HJAPXID.js +1 -0
- package/cdn-versioned/chunks/chunk.2IXCDCBI.js +1 -1
- package/cdn-versioned/chunks/chunk.2KNDUWBP.js +1 -1
- package/cdn-versioned/chunks/chunk.3ED5FZPY.js +1 -1
- package/cdn-versioned/chunks/chunk.3O5CSFK6.js +1 -1
- package/cdn-versioned/chunks/chunk.54FIHRIN.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6XXF5G5C.js +1 -1
- package/cdn-versioned/chunks/chunk.6YBQX3MQ.js +1 -1
- package/cdn-versioned/chunks/chunk.7HYHC4VH.js +1 -1
- package/cdn-versioned/chunks/chunk.7IH2NLBX.js +1 -1
- package/cdn-versioned/chunks/chunk.7INMWOUZ.js +1 -1
- package/cdn-versioned/chunks/chunk.7JI2ZUD5.js +1 -1
- package/cdn-versioned/chunks/chunk.7WMTV6I4.js +1 -1
- package/cdn-versioned/chunks/chunk.A25LJOFY.js +1 -1
- package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
- package/cdn-versioned/chunks/chunk.BUD2EAST.js +1 -1
- package/cdn-versioned/chunks/chunk.C5W6LZD4.js +1 -1
- package/cdn-versioned/chunks/chunk.C6JGWWSD.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CQ4QBZ5J.js +4 -4
- package/cdn-versioned/chunks/chunk.CQYFUSYG.js +1 -1
- package/cdn-versioned/chunks/chunk.CSSD2EF7.js +1 -1
- package/cdn-versioned/chunks/chunk.CZIBZYQR.js +1 -1
- package/cdn-versioned/chunks/chunk.DX3YFLMK.js +1 -1
- package/cdn-versioned/chunks/chunk.EAYWBCE7.js +1 -1
- package/cdn-versioned/chunks/chunk.EIYIMNPT.js +1 -1
- package/cdn-versioned/chunks/chunk.ENZOPZGC.js +1 -1
- package/cdn-versioned/chunks/chunk.F6VUPTBP.js +1 -1
- package/cdn-versioned/chunks/chunk.FZHHVY6Y.js +1 -1
- package/cdn-versioned/chunks/chunk.HAL2ARMM.js +1 -1
- package/cdn-versioned/chunks/chunk.HLGRDYA3.js +1 -1
- package/cdn-versioned/chunks/chunk.IP26UT3O.js +1 -1
- package/cdn-versioned/chunks/chunk.ITMQUAG2.js +1 -1
- package/cdn-versioned/chunks/chunk.IUTS4ODJ.js +1 -1
- package/cdn-versioned/chunks/chunk.IXHLVTCE.js +1 -1
- package/cdn-versioned/chunks/chunk.JEBG27AS.js +1 -1
- package/cdn-versioned/chunks/chunk.JECBERJ6.js +1 -1
- package/cdn-versioned/chunks/chunk.LD75GZVE.js +1 -1
- package/cdn-versioned/chunks/chunk.LOVOZACS.js +1 -1
- package/cdn-versioned/chunks/chunk.NHN2NTOB.js +1 -1
- package/cdn-versioned/chunks/chunk.NS75T6AP.js +1 -1
- package/cdn-versioned/chunks/chunk.OAVL5PS2.js +1 -1
- package/cdn-versioned/chunks/chunk.OQTFQZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.OTZWFXC6.js +1 -1
- package/cdn-versioned/chunks/chunk.PEJM3PLJ.js +1 -1
- package/cdn-versioned/chunks/chunk.PJZCF7M2.js +1 -1
- package/cdn-versioned/chunks/chunk.RRVZNEFJ.js +1 -1
- package/cdn-versioned/chunks/chunk.RU2MXVG3.js +1 -1
- package/cdn-versioned/chunks/chunk.SM5KISBS.js +1 -1
- package/cdn-versioned/chunks/chunk.STQUP635.js +1 -1
- package/cdn-versioned/chunks/chunk.UBO3W67S.js +1 -1
- package/cdn-versioned/chunks/chunk.VMPJQLWX.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WQU7XRRP.js +1 -1
- package/cdn-versioned/chunks/chunk.XGXHVRYA.js +1 -1
- package/cdn-versioned/chunks/chunk.Y77KMBSV.js +4 -4
- package/cdn-versioned/chunks/chunk.YGTSBRUS.js +1 -1
- package/cdn-versioned/chunks/chunk.YI3Y536X.js +1 -1
- package/cdn-versioned/chunks/chunk.ZWO2DZQK.js +2 -2
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.js +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +420 -420
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +13 -13
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +13 -13
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +91 -91
- package/cdn-versioned/web-types.json +154 -154
- package/dist/chunks/{chunk.3SBJ5LD6.js → chunk.VPU4YXCW.js} +1 -1
- package/dist/components/expandable/expandable.js +1 -1
- package/dist/custom-elements.json +186 -186
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.22XVLL4U.js +1 -1
- package/dist-versioned/chunks/chunk.2CWYTGUF.js +26 -26
- package/dist-versioned/chunks/chunk.2USKLT7E.js +6 -6
- package/dist-versioned/chunks/chunk.33JOPIXE.js +24 -24
- package/dist-versioned/chunks/chunk.3H34BS4K.js +1 -1
- package/dist-versioned/chunks/chunk.3HHT2OQH.js +12 -12
- package/dist-versioned/chunks/chunk.3IWFEPZF.js +4 -4
- package/dist-versioned/chunks/chunk.3P4CWN6B.js +3 -3
- package/dist-versioned/chunks/chunk.4GOBDXSS.js +1 -1
- package/dist-versioned/chunks/chunk.4JS6YQGE.js +3 -3
- package/dist-versioned/chunks/chunk.5DBXOC2V.js +1 -1
- package/dist-versioned/chunks/chunk.5PBRPBRT.js +5 -5
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6P3RKSUO.js +1 -1
- package/dist-versioned/chunks/chunk.7AKLVTJJ.js +3 -3
- package/dist-versioned/chunks/chunk.7L25CLNU.js +2 -2
- package/dist-versioned/chunks/chunk.A5Z4VKXC.js +2 -2
- package/dist-versioned/chunks/chunk.COXPSVWJ.js +3 -3
- package/dist-versioned/chunks/chunk.CURD6RBZ.js +6 -6
- package/dist-versioned/chunks/chunk.CZOZQ3VO.js +1 -1
- package/dist-versioned/chunks/chunk.CZXEOVSI.js +4 -4
- package/dist-versioned/chunks/chunk.D4DTFLNK.js +1 -1
- package/dist-versioned/chunks/chunk.DG2EQDME.js +2 -2
- package/dist-versioned/chunks/chunk.E3JOKBV7.js +2 -2
- package/dist-versioned/chunks/chunk.EQ6ES4D4.js +2 -2
- package/dist-versioned/chunks/chunk.HDOXCV5R.js +2 -2
- package/dist-versioned/chunks/chunk.I34ENUW2.js +2 -2
- package/dist-versioned/chunks/chunk.I55X5D52.js +2 -2
- package/dist-versioned/chunks/chunk.K2A6FAQM.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KGO6SGAI.js +2 -2
- package/dist-versioned/chunks/chunk.KTW4YKIN.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L3CJJWQH.js +5 -5
- package/dist-versioned/chunks/chunk.LJGEETGS.js +2 -2
- package/dist-versioned/chunks/chunk.LVKMRGF7.js +2 -2
- package/dist-versioned/chunks/chunk.NIOP54NF.js +1 -1
- package/dist-versioned/chunks/chunk.NIVOUKTJ.js +5 -5
- package/dist-versioned/chunks/chunk.OKJADCUF.js +3 -3
- package/dist-versioned/chunks/chunk.PMP3SJSG.js +4 -4
- package/dist-versioned/chunks/chunk.R6QYQOQJ.js +1 -1
- package/dist-versioned/chunks/chunk.R7SUBHGP.js +1 -1
- package/dist-versioned/chunks/chunk.S4BMH7I6.js +3 -3
- package/dist-versioned/chunks/chunk.S4W23ZFB.js +2 -2
- package/dist-versioned/chunks/chunk.SGY6Q5FM.js +1 -1
- package/dist-versioned/chunks/chunk.SLDPP5NU.js +14 -14
- package/dist-versioned/chunks/chunk.SVC3IWAA.js +2 -2
- package/dist-versioned/chunks/chunk.TB76LMSK.js +11 -11
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UMJTGYQ7.js +3 -3
- package/dist-versioned/chunks/chunk.VEBQYO6P.js +1 -1
- package/dist-versioned/chunks/chunk.VISHTUP5.js +1 -1
- package/dist-versioned/chunks/chunk.VNGVFWX6.js +1 -1
- package/dist-versioned/chunks/chunk.VPTCQBGB.js +5 -5
- package/dist-versioned/chunks/{chunk.3SBJ5LD6.js → chunk.VPU4YXCW.js} +3 -3
- package/dist-versioned/chunks/chunk.W2L2LAQR.js +12 -12
- package/dist-versioned/chunks/chunk.WMLESPZB.js +8 -8
- package/dist-versioned/chunks/chunk.XHOP5USY.js +1 -1
- package/dist-versioned/chunks/chunk.YGJNZUTI.js +3 -3
- package/dist-versioned/chunks/chunk.YTLWADMX.js +1 -1
- package/dist-versioned/chunks/chunk.ZSG33GER.js +6 -6
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.js +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +420 -420
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +91 -91
- package/dist-versioned/web-types.json +154 -154
- package/package.json +2 -2
- package/cdn/chunks/chunk.4Y2JE5PV.js +0 -1
- package/cdn-versioned/chunks/chunk.4Y2JE5PV.js +0 -1
|
@@ -113,7 +113,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
113
113
|
};
|
|
114
114
|
SdExpandable.styles = [
|
|
115
115
|
...SolidElement.styles,
|
|
116
|
-
css`:host{--
|
|
116
|
+
css`:host{--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start,hsla(0,0%,100%,0)) 0%,var(--gradient-color-end,#fff) 80%,var(--gradient-color-end,#fff) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);position:absolute;transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}:host([inverted]){--color-primary-rgb:0,53,142;--gradient-color-start:rgba(var(--color-primary-rgb),0);--gradient-color-end:rgba(var(--color-primary-rgb),1)}:host([inverted]) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,var(--gradient)))}:host(:not([open])) .content:after{opacity:var(--sd-opacity-100,1)}`
|
|
117
117
|
];
|
|
118
118
|
__decorateClass([
|
|
119
119
|
query(".content-preview")
|
|
@@ -3003,6 +3003,191 @@
|
|
|
3003
3003
|
}
|
|
3004
3004
|
]
|
|
3005
3005
|
},
|
|
3006
|
+
{
|
|
3007
|
+
"kind": "javascript-module",
|
|
3008
|
+
"path": "components/button-group/button-group.js",
|
|
3009
|
+
"declarations": [
|
|
3010
|
+
{
|
|
3011
|
+
"kind": "class",
|
|
3012
|
+
"description": "",
|
|
3013
|
+
"name": "SdButtonGroup",
|
|
3014
|
+
"cssParts": [
|
|
3015
|
+
{
|
|
3016
|
+
"description": "The component's base wrapper.",
|
|
3017
|
+
"name": "base"
|
|
3018
|
+
}
|
|
3019
|
+
],
|
|
3020
|
+
"slots": [
|
|
3021
|
+
{
|
|
3022
|
+
"description": "One or more `<sd-button>` elements to display in the button group.",
|
|
3023
|
+
"name": ""
|
|
3024
|
+
}
|
|
3025
|
+
],
|
|
3026
|
+
"members": [
|
|
3027
|
+
{
|
|
3028
|
+
"kind": "field",
|
|
3029
|
+
"name": "disableRole",
|
|
3030
|
+
"type": {
|
|
3031
|
+
"text": "boolean"
|
|
3032
|
+
},
|
|
3033
|
+
"default": "false"
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
"kind": "field",
|
|
3037
|
+
"name": "label",
|
|
3038
|
+
"type": {
|
|
3039
|
+
"text": "string"
|
|
3040
|
+
},
|
|
3041
|
+
"default": "''",
|
|
3042
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
3043
|
+
"attribute": "label",
|
|
3044
|
+
"reflects": true
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
"kind": "field",
|
|
3048
|
+
"name": "dir",
|
|
3049
|
+
"type": {
|
|
3050
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
3051
|
+
},
|
|
3052
|
+
"description": "The element's directionality.",
|
|
3053
|
+
"attribute": "dir",
|
|
3054
|
+
"inheritedFrom": {
|
|
3055
|
+
"name": "SolidElement",
|
|
3056
|
+
"module": "internal/solid-element.js"
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"kind": "field",
|
|
3061
|
+
"name": "lang",
|
|
3062
|
+
"type": {
|
|
3063
|
+
"text": "string"
|
|
3064
|
+
},
|
|
3065
|
+
"description": "The element's language.",
|
|
3066
|
+
"attribute": "lang",
|
|
3067
|
+
"inheritedFrom": {
|
|
3068
|
+
"name": "SolidElement",
|
|
3069
|
+
"module": "internal/solid-element.js"
|
|
3070
|
+
}
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
"kind": "method",
|
|
3074
|
+
"name": "emit",
|
|
3075
|
+
"parameters": [
|
|
3076
|
+
{
|
|
3077
|
+
"name": "name",
|
|
3078
|
+
"type": {
|
|
3079
|
+
"text": "string"
|
|
3080
|
+
}
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"name": "options",
|
|
3084
|
+
"optional": true,
|
|
3085
|
+
"type": {
|
|
3086
|
+
"text": "CustomEventInit"
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
],
|
|
3090
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
3091
|
+
"inheritedFrom": {
|
|
3092
|
+
"name": "SolidElement",
|
|
3093
|
+
"module": "internal/solid-element.js"
|
|
3094
|
+
}
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
"kind": "method",
|
|
3098
|
+
"name": "token",
|
|
3099
|
+
"return": {
|
|
3100
|
+
"type": {
|
|
3101
|
+
"text": "T"
|
|
3102
|
+
}
|
|
3103
|
+
},
|
|
3104
|
+
"parameters": [
|
|
3105
|
+
{
|
|
3106
|
+
"name": "name",
|
|
3107
|
+
"type": {
|
|
3108
|
+
"text": "string"
|
|
3109
|
+
}
|
|
3110
|
+
},
|
|
3111
|
+
{
|
|
3112
|
+
"name": "fallback",
|
|
3113
|
+
"type": {
|
|
3114
|
+
"text": "T"
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
],
|
|
3118
|
+
"description": "Retrieves the value of a css variable token.",
|
|
3119
|
+
"inheritedFrom": {
|
|
3120
|
+
"name": "SolidElement",
|
|
3121
|
+
"module": "internal/solid-element.js"
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
],
|
|
3125
|
+
"attributes": [
|
|
3126
|
+
{
|
|
3127
|
+
"name": "label",
|
|
3128
|
+
"type": {
|
|
3129
|
+
"text": "string"
|
|
3130
|
+
},
|
|
3131
|
+
"default": "''",
|
|
3132
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
3133
|
+
"fieldName": "label"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
"name": "dir",
|
|
3137
|
+
"type": {
|
|
3138
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
3139
|
+
},
|
|
3140
|
+
"description": "The element's directionality.",
|
|
3141
|
+
"fieldName": "dir",
|
|
3142
|
+
"inheritedFrom": {
|
|
3143
|
+
"name": "SolidElement",
|
|
3144
|
+
"module": "src/internal/solid-element.ts"
|
|
3145
|
+
}
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
"name": "lang",
|
|
3149
|
+
"type": {
|
|
3150
|
+
"text": "string"
|
|
3151
|
+
},
|
|
3152
|
+
"description": "The element's language.",
|
|
3153
|
+
"fieldName": "lang",
|
|
3154
|
+
"inheritedFrom": {
|
|
3155
|
+
"name": "SolidElement",
|
|
3156
|
+
"module": "src/internal/solid-element.ts"
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
],
|
|
3160
|
+
"superclass": {
|
|
3161
|
+
"name": "SolidElement",
|
|
3162
|
+
"module": "/src/internal/solid-element"
|
|
3163
|
+
},
|
|
3164
|
+
"summary": "Button groups can be used to group related buttons into sections.",
|
|
3165
|
+
"documentation": "https://solid.union-investment.com/[storybook-link]/button-group",
|
|
3166
|
+
"status": "stable",
|
|
3167
|
+
"since": "1.0",
|
|
3168
|
+
"tagName": "sd-button-group",
|
|
3169
|
+
"customElement": true
|
|
3170
|
+
}
|
|
3171
|
+
],
|
|
3172
|
+
"exports": [
|
|
3173
|
+
{
|
|
3174
|
+
"kind": "js",
|
|
3175
|
+
"name": "default",
|
|
3176
|
+
"declaration": {
|
|
3177
|
+
"name": "SdButtonGroup",
|
|
3178
|
+
"module": "components/button-group/button-group.js"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
"kind": "custom-element-definition",
|
|
3183
|
+
"name": "sd-button-group",
|
|
3184
|
+
"declaration": {
|
|
3185
|
+
"name": "SdButtonGroup",
|
|
3186
|
+
"module": "components/button-group/button-group.js"
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
]
|
|
3190
|
+
},
|
|
3006
3191
|
{
|
|
3007
3192
|
"kind": "javascript-module",
|
|
3008
3193
|
"path": "components/carousel/autoplay-controller.js",
|
|
@@ -11625,191 +11810,6 @@
|
|
|
11625
11810
|
}
|
|
11626
11811
|
]
|
|
11627
11812
|
},
|
|
11628
|
-
{
|
|
11629
|
-
"kind": "javascript-module",
|
|
11630
|
-
"path": "components/button-group/button-group.js",
|
|
11631
|
-
"declarations": [
|
|
11632
|
-
{
|
|
11633
|
-
"kind": "class",
|
|
11634
|
-
"description": "",
|
|
11635
|
-
"name": "SdButtonGroup",
|
|
11636
|
-
"cssParts": [
|
|
11637
|
-
{
|
|
11638
|
-
"description": "The component's base wrapper.",
|
|
11639
|
-
"name": "base"
|
|
11640
|
-
}
|
|
11641
|
-
],
|
|
11642
|
-
"slots": [
|
|
11643
|
-
{
|
|
11644
|
-
"description": "One or more `<sd-button>` elements to display in the button group.",
|
|
11645
|
-
"name": ""
|
|
11646
|
-
}
|
|
11647
|
-
],
|
|
11648
|
-
"members": [
|
|
11649
|
-
{
|
|
11650
|
-
"kind": "field",
|
|
11651
|
-
"name": "disableRole",
|
|
11652
|
-
"type": {
|
|
11653
|
-
"text": "boolean"
|
|
11654
|
-
},
|
|
11655
|
-
"default": "false"
|
|
11656
|
-
},
|
|
11657
|
-
{
|
|
11658
|
-
"kind": "field",
|
|
11659
|
-
"name": "label",
|
|
11660
|
-
"type": {
|
|
11661
|
-
"text": "string"
|
|
11662
|
-
},
|
|
11663
|
-
"default": "''",
|
|
11664
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
11665
|
-
"attribute": "label",
|
|
11666
|
-
"reflects": true
|
|
11667
|
-
},
|
|
11668
|
-
{
|
|
11669
|
-
"kind": "field",
|
|
11670
|
-
"name": "dir",
|
|
11671
|
-
"type": {
|
|
11672
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
11673
|
-
},
|
|
11674
|
-
"description": "The element's directionality.",
|
|
11675
|
-
"attribute": "dir",
|
|
11676
|
-
"inheritedFrom": {
|
|
11677
|
-
"name": "SolidElement",
|
|
11678
|
-
"module": "internal/solid-element.js"
|
|
11679
|
-
}
|
|
11680
|
-
},
|
|
11681
|
-
{
|
|
11682
|
-
"kind": "field",
|
|
11683
|
-
"name": "lang",
|
|
11684
|
-
"type": {
|
|
11685
|
-
"text": "string"
|
|
11686
|
-
},
|
|
11687
|
-
"description": "The element's language.",
|
|
11688
|
-
"attribute": "lang",
|
|
11689
|
-
"inheritedFrom": {
|
|
11690
|
-
"name": "SolidElement",
|
|
11691
|
-
"module": "internal/solid-element.js"
|
|
11692
|
-
}
|
|
11693
|
-
},
|
|
11694
|
-
{
|
|
11695
|
-
"kind": "method",
|
|
11696
|
-
"name": "emit",
|
|
11697
|
-
"parameters": [
|
|
11698
|
-
{
|
|
11699
|
-
"name": "name",
|
|
11700
|
-
"type": {
|
|
11701
|
-
"text": "string"
|
|
11702
|
-
}
|
|
11703
|
-
},
|
|
11704
|
-
{
|
|
11705
|
-
"name": "options",
|
|
11706
|
-
"optional": true,
|
|
11707
|
-
"type": {
|
|
11708
|
-
"text": "CustomEventInit"
|
|
11709
|
-
}
|
|
11710
|
-
}
|
|
11711
|
-
],
|
|
11712
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
11713
|
-
"inheritedFrom": {
|
|
11714
|
-
"name": "SolidElement",
|
|
11715
|
-
"module": "internal/solid-element.js"
|
|
11716
|
-
}
|
|
11717
|
-
},
|
|
11718
|
-
{
|
|
11719
|
-
"kind": "method",
|
|
11720
|
-
"name": "token",
|
|
11721
|
-
"return": {
|
|
11722
|
-
"type": {
|
|
11723
|
-
"text": "T"
|
|
11724
|
-
}
|
|
11725
|
-
},
|
|
11726
|
-
"parameters": [
|
|
11727
|
-
{
|
|
11728
|
-
"name": "name",
|
|
11729
|
-
"type": {
|
|
11730
|
-
"text": "string"
|
|
11731
|
-
}
|
|
11732
|
-
},
|
|
11733
|
-
{
|
|
11734
|
-
"name": "fallback",
|
|
11735
|
-
"type": {
|
|
11736
|
-
"text": "T"
|
|
11737
|
-
}
|
|
11738
|
-
}
|
|
11739
|
-
],
|
|
11740
|
-
"description": "Retrieves the value of a css variable token.",
|
|
11741
|
-
"inheritedFrom": {
|
|
11742
|
-
"name": "SolidElement",
|
|
11743
|
-
"module": "internal/solid-element.js"
|
|
11744
|
-
}
|
|
11745
|
-
}
|
|
11746
|
-
],
|
|
11747
|
-
"attributes": [
|
|
11748
|
-
{
|
|
11749
|
-
"name": "label",
|
|
11750
|
-
"type": {
|
|
11751
|
-
"text": "string"
|
|
11752
|
-
},
|
|
11753
|
-
"default": "''",
|
|
11754
|
-
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
11755
|
-
"fieldName": "label"
|
|
11756
|
-
},
|
|
11757
|
-
{
|
|
11758
|
-
"name": "dir",
|
|
11759
|
-
"type": {
|
|
11760
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
11761
|
-
},
|
|
11762
|
-
"description": "The element's directionality.",
|
|
11763
|
-
"fieldName": "dir",
|
|
11764
|
-
"inheritedFrom": {
|
|
11765
|
-
"name": "SolidElement",
|
|
11766
|
-
"module": "src/internal/solid-element.ts"
|
|
11767
|
-
}
|
|
11768
|
-
},
|
|
11769
|
-
{
|
|
11770
|
-
"name": "lang",
|
|
11771
|
-
"type": {
|
|
11772
|
-
"text": "string"
|
|
11773
|
-
},
|
|
11774
|
-
"description": "The element's language.",
|
|
11775
|
-
"fieldName": "lang",
|
|
11776
|
-
"inheritedFrom": {
|
|
11777
|
-
"name": "SolidElement",
|
|
11778
|
-
"module": "src/internal/solid-element.ts"
|
|
11779
|
-
}
|
|
11780
|
-
}
|
|
11781
|
-
],
|
|
11782
|
-
"superclass": {
|
|
11783
|
-
"name": "SolidElement",
|
|
11784
|
-
"module": "/src/internal/solid-element"
|
|
11785
|
-
},
|
|
11786
|
-
"summary": "Button groups can be used to group related buttons into sections.",
|
|
11787
|
-
"documentation": "https://solid.union-investment.com/[storybook-link]/button-group",
|
|
11788
|
-
"status": "stable",
|
|
11789
|
-
"since": "1.0",
|
|
11790
|
-
"tagName": "sd-button-group",
|
|
11791
|
-
"customElement": true
|
|
11792
|
-
}
|
|
11793
|
-
],
|
|
11794
|
-
"exports": [
|
|
11795
|
-
{
|
|
11796
|
-
"kind": "js",
|
|
11797
|
-
"name": "default",
|
|
11798
|
-
"declaration": {
|
|
11799
|
-
"name": "SdButtonGroup",
|
|
11800
|
-
"module": "components/button-group/button-group.js"
|
|
11801
|
-
}
|
|
11802
|
-
},
|
|
11803
|
-
{
|
|
11804
|
-
"kind": "custom-element-definition",
|
|
11805
|
-
"name": "sd-button-group",
|
|
11806
|
-
"declaration": {
|
|
11807
|
-
"name": "SdButtonGroup",
|
|
11808
|
-
"module": "components/button-group/button-group.js"
|
|
11809
|
-
}
|
|
11810
|
-
}
|
|
11811
|
-
]
|
|
11812
|
-
},
|
|
11813
11813
|
{
|
|
11814
11814
|
"kind": "javascript-module",
|
|
11815
11815
|
"path": "components/optgroup/optgroup.js",
|
|
@@ -20577,7 +20577,7 @@
|
|
|
20577
20577
|
"package": {
|
|
20578
20578
|
"name": "@solid-design-system/components",
|
|
20579
20579
|
"description": "Solid Design System: Components",
|
|
20580
|
-
"version": "5.13.
|
|
20580
|
+
"version": "5.13.5",
|
|
20581
20581
|
"author": "Union Investment",
|
|
20582
20582
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
20583
20583
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -44,7 +44,7 @@ var SdSelect = class extends SolidElement {
|
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments);
|
|
46
46
|
this.formControlController = new FormControlController(this, {
|
|
47
|
-
assumeInteractionOn: ["sd-blur", "sd-5-13-
|
|
47
|
+
assumeInteractionOn: ["sd-blur", "sd-5-13-5-input"]
|
|
48
48
|
});
|
|
49
49
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
50
50
|
this.localize = new LocalizeController(this);
|
|
@@ -77,11 +77,11 @@ var SdSelect = class extends SolidElement {
|
|
|
77
77
|
this.styleOnValid = false;
|
|
78
78
|
this.hoist = false;
|
|
79
79
|
this.getTag = (option) => {
|
|
80
|
-
return html`<sd-5-13-
|
|
80
|
+
return html`<sd-5-13-5-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
81
81
|
base:tag__base,
|
|
82
82
|
content:tag__content,
|
|
83
83
|
removable-indicator:tag__removable-indicator,
|
|
84
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-13-
|
|
84
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-13-5-tag>`;
|
|
85
85
|
};
|
|
86
86
|
this.handleDocumentFocusIn = (event) => {
|
|
87
87
|
const path = event.composedPath();
|
|
@@ -92,7 +92,7 @@ var SdSelect = class extends SolidElement {
|
|
|
92
92
|
this.handleDocumentKeyDown = (event) => {
|
|
93
93
|
const target = event.target;
|
|
94
94
|
const isClearButton = target.closest(".select__clear") !== null;
|
|
95
|
-
const isIconButton = target.closest("sd-5-13-
|
|
95
|
+
const isIconButton = target.closest("sd-5-13-5-icon-button") !== null;
|
|
96
96
|
if (isClearButton || isIconButton) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -227,8 +227,8 @@ var SdSelect = class extends SolidElement {
|
|
|
227
227
|
event.preventDefault();
|
|
228
228
|
event.stopPropagation();
|
|
229
229
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
|
230
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-5-13-
|
|
231
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-5-13-
|
|
230
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-5-13-5-tag");
|
|
231
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-5-13-5-tag");
|
|
232
232
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
|
233
233
|
this.updateComplete.then(() => {
|
|
234
234
|
if (nextTag) {
|
|
@@ -248,7 +248,7 @@ var SdSelect = class extends SolidElement {
|
|
|
248
248
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
|
249
249
|
this.updateComplete.then(() => {
|
|
250
250
|
var _a;
|
|
251
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-5-13-
|
|
251
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-5-13-5-tag");
|
|
252
252
|
if (tags && tags.length > 0) {
|
|
253
253
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
|
254
254
|
} else {
|
|
@@ -294,7 +294,7 @@ var SdSelect = class extends SolidElement {
|
|
|
294
294
|
}
|
|
295
295
|
handleOptionClick(event) {
|
|
296
296
|
const target = event.target;
|
|
297
|
-
const option = target.closest("sd-5-13-
|
|
297
|
+
const option = target.closest("sd-5-13-5-option");
|
|
298
298
|
const oldValue = this.value;
|
|
299
299
|
if (option && !option.disabled) {
|
|
300
300
|
if (this.multiple) {
|
|
@@ -319,7 +319,7 @@ var SdSelect = class extends SolidElement {
|
|
|
319
319
|
const allOptions = this.getAllOptions();
|
|
320
320
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
321
321
|
const values = [];
|
|
322
|
-
if (customElements.get("sd-5-13-
|
|
322
|
+
if (customElements.get("sd-5-13-5-option")) {
|
|
323
323
|
allOptions.forEach((option) => {
|
|
324
324
|
if (this.multiple) {
|
|
325
325
|
option.checkbox = true;
|
|
@@ -328,7 +328,7 @@ var SdSelect = class extends SolidElement {
|
|
|
328
328
|
});
|
|
329
329
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
|
330
330
|
} else {
|
|
331
|
-
customElements.whenDefined("sd-5-13-
|
|
331
|
+
customElements.whenDefined("sd-5-13-5-option").then(() => this.handleDefaultSlotChange());
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
handleTagRemove(event, option) {
|
|
@@ -345,13 +345,13 @@ var SdSelect = class extends SolidElement {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
// Gets an array of all <sd-5-13-
|
|
348
|
+
// Gets an array of all <sd-5-13-5-option> elements
|
|
349
349
|
getAllOptions() {
|
|
350
|
-
return [...this.querySelectorAll("sd-5-13-
|
|
350
|
+
return [...this.querySelectorAll("sd-5-13-5-option")];
|
|
351
351
|
}
|
|
352
|
-
// Gets the first <sd-5-13-
|
|
352
|
+
// Gets the first <sd-5-13-5-option> element
|
|
353
353
|
getFirstOption() {
|
|
354
|
-
return this.querySelector("sd-5-13-
|
|
354
|
+
return this.querySelector("sd-5-13-5-option");
|
|
355
355
|
}
|
|
356
356
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
357
357
|
// option may be "current" at a time.
|
|
@@ -440,11 +440,11 @@ var SdSelect = class extends SolidElement {
|
|
|
440
440
|
});
|
|
441
441
|
} else {
|
|
442
442
|
return [
|
|
443
|
-
html`<sd-5-13-
|
|
443
|
+
html`<sd-5-13-5-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
444
444
|
base:tag__base,
|
|
445
445
|
content:tag__content,
|
|
446
446
|
removable-indicator:tag__removable-indicator,
|
|
447
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-13-
|
|
447
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-13-5-tag>`
|
|
448
448
|
];
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -453,7 +453,7 @@ var SdSelect = class extends SolidElement {
|
|
|
453
453
|
this.formControlController.emitInvalidEvent(event);
|
|
454
454
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
455
455
|
}
|
|
456
|
-
/** Receives incoming event detail from sd-5-13-
|
|
456
|
+
/** Receives incoming event detail from sd-5-13-5-popup and updates local state for conditional styling. */
|
|
457
457
|
handleCurrentPlacement(e) {
|
|
458
458
|
const incomingPlacement = e.detail;
|
|
459
459
|
if (incomingPlacement) {
|
|
@@ -462,7 +462,7 @@ var SdSelect = class extends SolidElement {
|
|
|
462
462
|
}
|
|
463
463
|
handleUseTagsChange() {
|
|
464
464
|
const allOptions = this.getAllOptions();
|
|
465
|
-
if (customElements.get("sd-5-13-
|
|
465
|
+
if (customElements.get("sd-5-13-5-option")) {
|
|
466
466
|
allOptions.forEach((option) => {
|
|
467
467
|
option.checkbox = this.multiple;
|
|
468
468
|
});
|
|
@@ -598,7 +598,7 @@ var SdSelect = class extends SolidElement {
|
|
|
598
598
|
default: "border-neutral-800"
|
|
599
599
|
}[selectState],
|
|
600
600
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
601
|
-
)}"></div><sd-5-13-
|
|
601
|
+
)}"></div><sd-5-13-5-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
602
602
|
"inline-flex relative w-full",
|
|
603
603
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
604
604
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -621,12 +621,12 @@ var SdSelect = class extends SolidElement {
|
|
|
621
621
|
"select__clear flex justify-center",
|
|
622
622
|
iconMarginLeft,
|
|
623
623
|
this.value.length > 0 ? "visible" : "invisible"
|
|
624
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-
|
|
624
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-5-icon class="${cx("text-neutral-700 z-10", iconSize)}" library="_internal" name="closing-round"></sd-5-13-5-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-13-5-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-5-13-5-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-13-5-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="status-check"></sd-5-13-5-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
|
625
625
|
"inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",
|
|
626
626
|
this.open ? "rotate-180" : "rotate-0",
|
|
627
627
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
628
628
|
iconSize
|
|
629
|
-
)}"><sd-5-13-
|
|
629
|
+
)}"><sd-5-13-5-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-5-13-5-icon></slot></div><button part="combobox" class="${cx(
|
|
630
630
|
"relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",
|
|
631
631
|
cursorStyles,
|
|
632
632
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
@@ -639,7 +639,7 @@ var SdSelect = class extends SolidElement {
|
|
|
639
639
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
640
640
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
641
641
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
642
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-5-13-
|
|
642
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-5-13-5-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
/**
|
|
@@ -647,13 +647,13 @@ var SdSelect = class extends SolidElement {
|
|
|
647
647
|
*/
|
|
648
648
|
SdSelect.styles = [
|
|
649
649
|
...SolidElement.styles,
|
|
650
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-5-13-
|
|
650
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-5-13-5-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-13-5-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-5-13-5-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-13-5-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-13-5-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`
|
|
651
651
|
];
|
|
652
652
|
__decorateClass([
|
|
653
|
-
queryAssignedElements({ selector: "sd-5-13-
|
|
653
|
+
queryAssignedElements({ selector: "sd-5-13-5-option" })
|
|
654
654
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
|
655
655
|
__decorateClass([
|
|
656
|
-
query("sd-5-13-
|
|
656
|
+
query("sd-5-13-5-popup")
|
|
657
657
|
], SdSelect.prototype, "popup", 2);
|
|
658
658
|
__decorateClass([
|
|
659
659
|
query('[part="combobox"]')
|
|
@@ -778,7 +778,7 @@ __decorateClass([
|
|
|
778
778
|
watch("value", { waitUntilFirstUpdate: true })
|
|
779
779
|
], SdSelect.prototype, "handleValueChange", 1);
|
|
780
780
|
SdSelect = __decorateClass([
|
|
781
|
-
customElement("sd-5-13-
|
|
781
|
+
customElement("sd-5-13-5-select")
|
|
782
782
|
], SdSelect);
|
|
783
783
|
setDefaultAnimation("select.show", {
|
|
784
784
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|