@solid-design-system/components 4.1.3 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.SHG24SQN.js → chunk.23IKXZVG.js} +1 -1
- package/cdn/chunks/{chunk.BMK7S33Z.js → chunk.2BWXU745.js} +1 -1
- package/cdn/chunks/{chunk.GZX2TQ72.js → chunk.2PA3FZXS.js} +1 -1
- package/cdn/chunks/chunk.4IFORLFN.js +11 -0
- package/cdn/chunks/{chunk.6XHUCAAC.js → chunk.6AT7QBRE.js} +1 -1
- package/cdn/chunks/{chunk.U5N3R2IH.js → chunk.6ZV2UB2R.js} +1 -1
- package/cdn/chunks/{chunk.JIQYEO5H.js → chunk.7CKFXHTE.js} +1 -1
- package/cdn/chunks/{chunk.HOPUF2NO.js → chunk.7SQQCKX5.js} +1 -1
- package/cdn/chunks/{chunk.WADGCWRK.js → chunk.7UYAPC2H.js} +1 -1
- package/cdn/chunks/{chunk.SLG7HZIX.js → chunk.AURWAJH2.js} +1 -1
- package/cdn/chunks/{chunk.6T7GTYS5.js → chunk.AXTP2V5W.js} +1 -1
- package/cdn/chunks/chunk.AZ5UMKBM.js +1 -0
- package/cdn/chunks/{chunk.YUUAUQGB.js → chunk.B4OSWTH3.js} +1 -1
- package/cdn/chunks/{chunk.FKSOUA55.js → chunk.CAWYHBD5.js} +1 -1
- package/cdn/chunks/{chunk.NKZYONVL.js → chunk.CBUVQPJ2.js} +1 -1
- package/cdn/chunks/{chunk.HUSKVVWH.js → chunk.CJNJKNFE.js} +1 -1
- package/cdn/chunks/{chunk.HKKRMPWF.js → chunk.CSTIFOAP.js} +1 -1
- package/cdn/chunks/chunk.CYH3PCNG.js +1 -0
- package/cdn/chunks/{chunk.6DTJTQ5Z.js → chunk.D6M4QQEX.js} +1 -1
- package/cdn/chunks/chunk.FG4AYCVI.js +1 -0
- package/cdn/chunks/{chunk.VYV6SKST.js → chunk.FKNSLPX6.js} +1 -1
- package/cdn/chunks/{chunk.IEKWHYZC.js → chunk.GS3QL2OV.js} +1 -1
- package/cdn/chunks/{chunk.SJ2JO4KS.js → chunk.IEPFDM4R.js} +1 -1
- package/cdn/chunks/{chunk.G7CN4YKD.js → chunk.IHS6YCNW.js} +1 -1
- package/cdn/chunks/{chunk.MBU5RGYE.js → chunk.KME2AZKV.js} +1 -1
- package/cdn/chunks/chunk.LRCDXHQL.js +10 -0
- package/cdn/chunks/chunk.LS53PDIU.js +11 -0
- package/cdn/chunks/{chunk.PHRAQBQ7.js → chunk.M37NO2OL.js} +1 -1
- package/cdn/chunks/{chunk.UBO6O4CS.js → chunk.M56AX2NQ.js} +1 -1
- package/cdn/chunks/{chunk.WHVHHDB5.js → chunk.NMHMV2IL.js} +1 -1
- package/cdn/chunks/chunk.PGNO6HV2.js +1 -0
- package/cdn/chunks/{chunk.YFWVU3XM.js → chunk.Q5XVXRF6.js} +1 -1
- package/cdn/chunks/{chunk.3EINSGT6.js → chunk.QB6ZZCNC.js} +1 -1
- package/cdn/chunks/{chunk.ZYWB4GHH.js → chunk.QC2KZSKL.js} +1 -1
- package/cdn/chunks/{chunk.24UCPBFE.js → chunk.QQCSHGCT.js} +1 -1
- package/cdn/chunks/{chunk.EJKLI2Q4.js → chunk.SLT75PJ7.js} +1 -1
- package/cdn/chunks/chunk.SRHKA7HE.js +1 -0
- package/cdn/chunks/{chunk.PMI5K2Z2.js → chunk.SZMORTHB.js} +1 -1
- package/cdn/chunks/{chunk.QWPCVRMH.js → chunk.TW2X7LLC.js} +1 -1
- package/cdn/chunks/{chunk.KW5L4FQ6.js → chunk.UI7L6PX5.js} +1 -1
- package/cdn/chunks/{chunk.ZYKWHR4L.js → chunk.UNKFWGH5.js} +1 -1
- package/cdn/chunks/chunk.UXYQTHQP.js +1 -0
- package/cdn/chunks/chunk.VOS6ZTYL.js +1 -0
- package/cdn/chunks/{chunk.GQU4LYQ6.js → chunk.VVV2SCQ6.js} +1 -1
- package/cdn/chunks/{chunk.BU5EDIFK.js → chunk.W72MLMOE.js} +1 -1
- package/cdn/chunks/{chunk.SWUGEKNC.js → chunk.X77YGX4O.js} +1 -1
- package/cdn/chunks/{chunk.GQIUJUD4.js → chunk.XL3BUCUU.js} +1 -1
- package/cdn/chunks/chunk.YEIAYEJG.js +11 -0
- package/cdn/chunks/{chunk.RC2E2NPK.js → chunk.ZIQIZBTD.js} +1 -1
- package/cdn/chunks/{chunk.SNCCOKIM.js → chunk.ZZFQQH27.js} +1 -1
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/animation/animation.js +1 -1
- package/cdn/components/audio/audio.js +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/components/brandshape/brandshape.js +1 -1
- package/cdn/components/button/button.d.ts +1 -0
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/button-group/button-group.js +1 -1
- package/cdn/components/carousel/carousel.js +1 -1
- package/cdn/components/carousel-item/carousel-item.js +1 -1
- package/cdn/components/checkbox/checkbox.d.ts +1 -0
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/checkbox-group/checkbox-group.d.ts +1 -0
- package/cdn/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn/components/combobox/combobox.d.ts +1 -0
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/divider/divider.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/expandable/expandable.js +1 -1
- package/cdn/components/flipcard/flipcard.js +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/components/icon/icon.js +1 -1
- package/cdn/components/include/include.js +1 -1
- package/cdn/components/input/input.d.ts +1 -0
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/link/link.d.ts +2 -0
- package/cdn/components/link/link.js +1 -1
- package/cdn/components/map-marker/map-marker.js +1 -1
- package/cdn/components/navigation-item/navigation-item.js +1 -1
- package/cdn/components/notification/notification.js +1 -1
- package/cdn/components/optgroup/optgroup.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/quickfact/quickfact.js +1 -1
- package/cdn/components/radio/radio.d.ts +1 -0
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-button/radio-button.d.ts +1 -0
- package/cdn/components/radio-button/radio-button.js +1 -1
- package/cdn/components/radio-group/radio-group.d.ts +1 -0
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/scrollable/scrollable.js +1 -1
- package/cdn/components/select/select.d.ts +1 -0
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/spinner/spinner.js +1 -1
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/step-group/step-group.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab-group/tab-group.js +1 -1
- package/cdn/components/tab-panel/tab-panel.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/teaser/teaser.js +1 -1
- package/cdn/components/teaser-media/teaser-media.js +1 -1
- package/cdn/components/textarea/textarea.d.ts +1 -0
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/components/video/video.js +1 -1
- package/cdn/custom-elements.json +226 -1
- package/cdn/solid-components.bundle.js +24 -40
- package/cdn/solid-components.iife.js +24 -40
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/autocomplete-config.js +1 -1
- package/cdn/vscode.html-custom-data.json +57 -2
- package/cdn/web-types.json +121 -3
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/{chunk.SHG24SQN.js → chunk.23IKXZVG.js} +1 -1
- package/cdn-versioned/chunks/{chunk.BMK7S33Z.js → chunk.2BWXU745.js} +1 -1
- package/cdn-versioned/chunks/{chunk.GZX2TQ72.js → chunk.2PA3FZXS.js} +1 -1
- package/cdn-versioned/chunks/chunk.4IFORLFN.js +11 -0
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/{chunk.6XHUCAAC.js → chunk.6AT7QBRE.js} +1 -1
- package/cdn-versioned/chunks/{chunk.U5N3R2IH.js → chunk.6ZV2UB2R.js} +1 -1
- package/cdn-versioned/chunks/{chunk.JIQYEO5H.js → chunk.7CKFXHTE.js} +4 -4
- package/cdn-versioned/chunks/{chunk.HOPUF2NO.js → chunk.7SQQCKX5.js} +1 -1
- package/cdn-versioned/chunks/{chunk.WADGCWRK.js → chunk.7UYAPC2H.js} +1 -1
- package/cdn-versioned/chunks/{chunk.SLG7HZIX.js → chunk.AURWAJH2.js} +1 -1
- package/cdn-versioned/chunks/{chunk.6T7GTYS5.js → chunk.AXTP2V5W.js} +1 -1
- package/cdn-versioned/chunks/chunk.AZ5UMKBM.js +1 -0
- package/cdn-versioned/chunks/{chunk.YUUAUQGB.js → chunk.B4OSWTH3.js} +1 -1
- package/cdn-versioned/chunks/{chunk.FKSOUA55.js → chunk.CAWYHBD5.js} +1 -1
- package/cdn-versioned/chunks/{chunk.NKZYONVL.js → chunk.CBUVQPJ2.js} +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/{chunk.HUSKVVWH.js → chunk.CJNJKNFE.js} +1 -1
- package/cdn-versioned/chunks/{chunk.HKKRMPWF.js → chunk.CSTIFOAP.js} +1 -1
- package/cdn-versioned/chunks/chunk.CYH3PCNG.js +1 -0
- package/cdn-versioned/chunks/{chunk.6DTJTQ5Z.js → chunk.D6M4QQEX.js} +1 -1
- package/cdn-versioned/chunks/chunk.FG4AYCVI.js +1 -0
- package/cdn-versioned/chunks/{chunk.VYV6SKST.js → chunk.FKNSLPX6.js} +1 -1
- package/cdn-versioned/chunks/{chunk.IEKWHYZC.js → chunk.GS3QL2OV.js} +1 -1
- package/cdn-versioned/chunks/{chunk.SJ2JO4KS.js → chunk.IEPFDM4R.js} +1 -1
- package/cdn-versioned/chunks/{chunk.G7CN4YKD.js → chunk.IHS6YCNW.js} +1 -1
- package/cdn-versioned/chunks/{chunk.MBU5RGYE.js → chunk.KME2AZKV.js} +1 -1
- package/cdn-versioned/chunks/chunk.LRCDXHQL.js +10 -0
- package/cdn-versioned/chunks/chunk.LS53PDIU.js +11 -0
- package/cdn-versioned/chunks/{chunk.PHRAQBQ7.js → chunk.M37NO2OL.js} +1 -1
- package/cdn-versioned/chunks/{chunk.UBO6O4CS.js → chunk.M56AX2NQ.js} +1 -1
- package/cdn-versioned/chunks/{chunk.WHVHHDB5.js → chunk.NMHMV2IL.js} +2 -2
- package/cdn-versioned/chunks/chunk.PGNO6HV2.js +1 -0
- package/cdn-versioned/chunks/{chunk.YFWVU3XM.js → chunk.Q5XVXRF6.js} +1 -1
- package/cdn-versioned/chunks/{chunk.3EINSGT6.js → chunk.QB6ZZCNC.js} +1 -1
- package/cdn-versioned/chunks/{chunk.ZYWB4GHH.js → chunk.QC2KZSKL.js} +1 -1
- package/cdn-versioned/chunks/{chunk.24UCPBFE.js → chunk.QQCSHGCT.js} +2 -2
- package/cdn-versioned/chunks/{chunk.EJKLI2Q4.js → chunk.SLT75PJ7.js} +1 -1
- package/cdn-versioned/chunks/chunk.SRHKA7HE.js +1 -0
- package/cdn-versioned/chunks/{chunk.PMI5K2Z2.js → chunk.SZMORTHB.js} +1 -1
- package/cdn-versioned/chunks/{chunk.QWPCVRMH.js → chunk.TW2X7LLC.js} +1 -1
- package/cdn-versioned/chunks/{chunk.KW5L4FQ6.js → chunk.UI7L6PX5.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZYKWHR4L.js → chunk.UNKFWGH5.js} +1 -1
- package/cdn-versioned/chunks/chunk.UXYQTHQP.js +1 -0
- package/cdn-versioned/chunks/chunk.VOS6ZTYL.js +1 -0
- package/cdn-versioned/chunks/chunk.VVV2SCQ6.js +73 -0
- package/cdn-versioned/chunks/{chunk.BU5EDIFK.js → chunk.W72MLMOE.js} +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/{chunk.SWUGEKNC.js → chunk.X77YGX4O.js} +1 -1
- package/cdn-versioned/chunks/{chunk.GQIUJUD4.js → chunk.XL3BUCUU.js} +1 -1
- package/cdn-versioned/chunks/chunk.YEIAYEJG.js +11 -0
- package/cdn-versioned/chunks/{chunk.RC2E2NPK.js → chunk.ZIQIZBTD.js} +1 -1
- package/cdn-versioned/chunks/{chunk.SNCCOKIM.js → chunk.ZZFQQH27.js} +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion/accordion.js +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.js +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.js +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.js +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.js +1 -1
- package/cdn-versioned/components/button/button.d.ts +2 -1
- package/cdn-versioned/components/button/button.js +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.js +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.js +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +2 -1
- package/cdn-versioned/components/checkbox/checkbox.js +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +2 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +5 -4
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.js +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.js +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.js +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.js +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/flipcard/flipcard.js +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/header/header.js +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.js +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/include/include.js +1 -1
- package/cdn-versioned/components/input/input.d.ts +2 -1
- package/cdn-versioned/components/input/input.js +1 -1
- package/cdn-versioned/components/link/link.d.ts +3 -1
- package/cdn-versioned/components/link/link.js +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.js +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.js +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/optgroup/optgroup.js +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/option/option.js +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.js +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.js +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +2 -1
- package/cdn-versioned/components/radio/radio.js +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +2 -1
- package/cdn-versioned/components/radio-button/radio-button.js +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +3 -2
- package/cdn-versioned/components/radio-group/radio-group.js +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.js +1 -1
- package/cdn-versioned/components/select/select.d.ts +5 -4
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.js +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step/step.js +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.js +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.js +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.js +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.js +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.js +1 -1
- package/cdn-versioned/components/teaser/teaser.js +1 -1
- package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +2 -1
- package/cdn-versioned/components/textarea/textarea.js +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.js +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/components/video/video.js +1 -1
- package/cdn-versioned/custom-elements.json +427 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +26 -42
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +26 -42
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/autocomplete-config.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +135 -80
- package/cdn-versioned/web-types.json +255 -137
- package/dist/chunks/{chunk.UZKLVMCI.js → chunk.33QCSKQD.js} +1 -1
- package/dist/chunks/{chunk.ACST636J.js → chunk.5U42A4N2.js} +1 -1
- package/dist/chunks/{chunk.CCQCEONR.js → chunk.632H2QDY.js} +1 -1
- package/dist/chunks/{chunk.H5ARRBLT.js → chunk.65GBG62N.js} +1 -1
- package/dist/chunks/{chunk.4SBQOWLU.js → chunk.6Q2FPQCD.js} +9 -3
- package/{dist-versioned/chunks/chunk.RSPK767T.js → dist/chunks/chunk.AEYAUOW5.js} +16 -7
- package/dist/chunks/{chunk.7E7C4YEQ.js → chunk.AQOV7CSX.js} +2 -2
- package/dist/chunks/{chunk.DPY2TYIS.js → chunk.DKDBS6OJ.js} +1 -1
- package/dist/chunks/{chunk.F63YFNZS.js → chunk.DQPMDZDZ.js} +1 -1
- package/dist/chunks/{chunk.YG3WOAEO.js → chunk.F27JSEQZ.js} +1 -1
- package/dist/chunks/{chunk.BTJACUD5.js → chunk.F2TZ6DNQ.js} +20 -15
- package/dist/chunks/{chunk.SNCHAQYL.js → chunk.FG4KLSVA.js} +16 -25
- package/dist/chunks/{chunk.EH2FHVPN.js → chunk.GEIIXN6O.js} +1 -1
- package/dist/chunks/{chunk.PRXP5CUW.js → chunk.GXOBJN4Z.js} +2 -2
- package/dist/chunks/{chunk.AKF4KQEW.js → chunk.I44BFH6N.js} +1 -1
- package/dist/chunks/{chunk.5PTDC66T.js → chunk.I6LLIF3A.js} +1 -1
- package/dist/chunks/{chunk.4Q7KKH5Z.js → chunk.IHJUIKE5.js} +1 -1
- package/dist/chunks/{chunk.OR7JTZLE.js → chunk.IHKHCZDI.js} +12 -6
- package/dist/chunks/{chunk.QUYKT56M.js → chunk.JCZYHLLG.js} +1 -1
- package/dist/chunks/{chunk.I5ZJV32M.js → chunk.LM7G2MP2.js} +1 -1
- package/dist/chunks/{chunk.FTXUZOXH.js → chunk.LT6DJYQW.js} +1 -1
- package/dist/chunks/{chunk.XKJR2XUZ.js → chunk.LTMUP2IF.js} +1 -1
- package/dist/chunks/{chunk.HFHUY7YD.js → chunk.M4CPDAKC.js} +1 -1
- package/dist/chunks/{chunk.AQZSZKBJ.js → chunk.MM7UZ56N.js} +1 -1
- package/dist/chunks/{chunk.FFKZQXJ2.js → chunk.MPC4NJ7T.js} +1 -1
- package/dist/chunks/{chunk.DU3O42BH.js → chunk.MUTJR3Y5.js} +1 -1
- package/dist/chunks/{chunk.OMBVLHXJ.js → chunk.NKQ5TMZU.js} +1 -1
- package/dist/chunks/{chunk.5FOKRIWL.js → chunk.NVGI6WK4.js} +19 -9
- package/dist/chunks/{chunk.D3I3AZEX.js → chunk.NXMLWQ4F.js} +13 -7
- package/dist/chunks/{chunk.XOL74PNU.js → chunk.OED6NJWG.js} +34 -16
- package/dist/chunks/{chunk.JZB2D4IZ.js → chunk.OVXTOIRH.js} +1 -1
- package/dist/chunks/{chunk.2FXKQI26.js → chunk.PHOL2FZ7.js} +1 -1
- package/dist/chunks/{chunk.VTUCPGYW.js → chunk.PY2NXO6G.js} +1 -1
- package/dist/chunks/{chunk.KH4M6HPE.js → chunk.Q2OO67VT.js} +1 -1
- package/dist/chunks/{chunk.274HT4QS.js → chunk.QINFB4CI.js} +1 -1
- package/dist/chunks/{chunk.D26WCHLT.js → chunk.SL7UXNEP.js} +2 -2
- package/dist/chunks/{chunk.AJ7V76EG.js → chunk.SUVILVZH.js} +1 -1
- package/dist/chunks/{chunk.674S2Z6M.js → chunk.TA2OGXIC.js} +1 -1
- package/dist/chunks/{chunk.NUIZDE7R.js → chunk.THT3CJM5.js} +1 -1
- package/dist/chunks/{chunk.TGJ2SBPH.js → chunk.TLTEUGRS.js} +1 -1
- package/dist/chunks/{chunk.A625ONY2.js → chunk.UEKILTQF.js} +13 -9
- package/dist/chunks/{chunk.JIWTAZZS.js → chunk.UGILZRQF.js} +1 -1
- package/dist/chunks/{chunk.A5S7GZJI.js → chunk.UWKWJ6WX.js} +22 -12
- package/dist/chunks/{chunk.OBWOMZNU.js → chunk.V27Y42MG.js} +17 -5
- package/dist/chunks/{chunk.OZU372TI.js → chunk.VAA7NUXP.js} +1 -1
- package/dist/chunks/{chunk.QTFIZJGB.js → chunk.VYPTEJCW.js} +1 -1
- package/dist/chunks/{chunk.H5BDO4H5.js → chunk.WZK6B3UV.js} +1 -1
- package/dist/chunks/{chunk.PT7MDSWH.js → chunk.X27M4U7I.js} +1 -1
- package/dist/chunks/{chunk.XL2PSGM5.js → chunk.XS43N4DL.js} +1 -1
- package/dist/chunks/{chunk.LZA2QYUU.js → chunk.YHVAW367.js} +1 -1
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/accordion-group/accordion-group.js +4 -4
- package/dist/components/animation/animation.js +2 -2
- package/dist/components/audio/audio.js +2 -2
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/brandshape/brandshape.js +2 -2
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/button.js +3 -3
- package/dist/components/button-group/button-group.js +2 -2
- package/dist/components/carousel/carousel.js +4 -4
- package/dist/components/carousel-item/carousel-item.js +2 -2
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/checkbox.js +3 -3
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -0
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/divider/divider.js +2 -2
- package/dist/components/drawer/drawer.js +5 -5
- package/dist/components/dropdown/dropdown.js +3 -3
- package/dist/components/expandable/expandable.js +2 -2
- package/dist/components/flipcard/flipcard.js +5 -5
- package/dist/components/header/header.js +2 -2
- package/dist/components/icon/icon.js +2 -2
- package/dist/components/include/include.js +2 -2
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input.js +3 -3
- package/dist/components/link/link.d.ts +2 -0
- package/dist/components/link/link.js +2 -2
- package/dist/components/map-marker/map-marker.js +2 -2
- package/dist/components/navigation-item/navigation-item.js +2 -2
- package/dist/components/notification/notification.js +2 -2
- package/dist/components/optgroup/optgroup.js +3 -3
- package/dist/components/option/option.js +3 -3
- package/dist/components/popup/popup.js +2 -2
- package/dist/components/quickfact/quickfact.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-button/radio-button.d.ts +1 -0
- package/dist/components/radio-button/radio-button.js +2 -2
- package/dist/components/radio-group/radio-group.d.ts +1 -0
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/scrollable/scrollable.js +2 -2
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +5 -5
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/step/step.js +2 -2
- package/dist/components/step-group/step-group.js +2 -2
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/tab/tab.js +2 -2
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +2 -2
- package/dist/components/tag/tag.js +2 -2
- package/dist/components/teaser/teaser.js +2 -2
- package/dist/components/teaser-media/teaser-media.js +2 -2
- package/dist/components/textarea/textarea.d.ts +1 -0
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/components/video/video.js +2 -2
- package/dist/custom-elements.json +226 -1
- package/dist/solid-components.js +50 -50
- package/dist/utilities/autocomplete-config.js +2 -2
- package/dist/vscode.html-custom-data.json +57 -2
- package/dist/web-types.json +121 -3
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/{chunk.UZKLVMCI.js → chunk.33QCSKQD.js} +2 -2
- package/dist-versioned/chunks/{chunk.ACST636J.js → chunk.5U42A4N2.js} +2 -2
- package/dist-versioned/chunks/{chunk.CCQCEONR.js → chunk.632H2QDY.js} +3 -3
- package/dist-versioned/chunks/{chunk.H5ARRBLT.js → chunk.65GBG62N.js} +3 -3
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/{chunk.4SBQOWLU.js → chunk.6Q2FPQCD.js} +14 -8
- package/{dist/chunks/chunk.RSPK767T.js → dist-versioned/chunks/chunk.AEYAUOW5.js} +16 -7
- package/dist-versioned/chunks/{chunk.7E7C4YEQ.js → chunk.AQOV7CSX.js} +5 -5
- package/dist-versioned/chunks/{chunk.DPY2TYIS.js → chunk.DKDBS6OJ.js} +10 -10
- package/dist-versioned/chunks/{chunk.F63YFNZS.js → chunk.DQPMDZDZ.js} +6 -6
- package/dist-versioned/chunks/{chunk.YG3WOAEO.js → chunk.F27JSEQZ.js} +6 -6
- package/dist-versioned/chunks/{chunk.BTJACUD5.js → chunk.F2TZ6DNQ.js} +48 -43
- package/dist-versioned/chunks/{chunk.SNCHAQYL.js → chunk.FG4KLSVA.js} +20 -29
- package/dist-versioned/chunks/{chunk.EH2FHVPN.js → chunk.GEIIXN6O.js} +4 -4
- package/dist-versioned/chunks/{chunk.PRXP5CUW.js → chunk.GXOBJN4Z.js} +7 -7
- package/dist-versioned/chunks/{chunk.AKF4KQEW.js → chunk.I44BFH6N.js} +3 -3
- package/dist-versioned/chunks/{chunk.5PTDC66T.js → chunk.I6LLIF3A.js} +6 -6
- package/dist-versioned/chunks/{chunk.4Q7KKH5Z.js → chunk.IHJUIKE5.js} +3 -3
- package/dist-versioned/chunks/{chunk.OR7JTZLE.js → chunk.IHKHCZDI.js} +14 -8
- package/dist-versioned/chunks/{chunk.QUYKT56M.js → chunk.JCZYHLLG.js} +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/{chunk.I5ZJV32M.js → chunk.LM7G2MP2.js} +2 -2
- package/dist-versioned/chunks/{chunk.FTXUZOXH.js → chunk.LT6DJYQW.js} +3 -3
- package/dist-versioned/chunks/{chunk.XKJR2XUZ.js → chunk.LTMUP2IF.js} +2 -2
- package/dist-versioned/chunks/chunk.M4CPDAKC.js +65 -0
- package/dist-versioned/chunks/{chunk.AQZSZKBJ.js → chunk.MM7UZ56N.js} +14 -14
- package/dist-versioned/chunks/{chunk.FFKZQXJ2.js → chunk.MPC4NJ7T.js} +3 -3
- package/dist-versioned/chunks/{chunk.DU3O42BH.js → chunk.MUTJR3Y5.js} +3 -3
- package/dist-versioned/chunks/{chunk.OMBVLHXJ.js → chunk.NKQ5TMZU.js} +2 -2
- package/dist-versioned/chunks/{chunk.5FOKRIWL.js → chunk.NVGI6WK4.js} +20 -10
- package/dist-versioned/chunks/{chunk.D3I3AZEX.js → chunk.NXMLWQ4F.js} +25 -19
- package/dist-versioned/chunks/{chunk.XOL74PNU.js → chunk.OED6NJWG.js} +59 -41
- package/dist-versioned/chunks/{chunk.JZB2D4IZ.js → chunk.OVXTOIRH.js} +2 -2
- package/dist-versioned/chunks/{chunk.2FXKQI26.js → chunk.PHOL2FZ7.js} +3 -3
- package/dist-versioned/chunks/{chunk.VTUCPGYW.js → chunk.PY2NXO6G.js} +2 -2
- package/dist-versioned/chunks/{chunk.KH4M6HPE.js → chunk.Q2OO67VT.js} +3 -3
- package/dist-versioned/chunks/{chunk.274HT4QS.js → chunk.QINFB4CI.js} +4 -4
- package/dist-versioned/chunks/{chunk.D26WCHLT.js → chunk.SL7UXNEP.js} +8 -8
- package/dist-versioned/chunks/{chunk.AJ7V76EG.js → chunk.SUVILVZH.js} +2 -2
- package/dist-versioned/chunks/{chunk.674S2Z6M.js → chunk.TA2OGXIC.js} +2 -2
- package/dist-versioned/chunks/{chunk.NUIZDE7R.js → chunk.THT3CJM5.js} +2 -2
- package/dist-versioned/chunks/{chunk.TGJ2SBPH.js → chunk.TLTEUGRS.js} +7 -7
- package/dist-versioned/chunks/{chunk.A625ONY2.js → chunk.UEKILTQF.js} +15 -11
- package/dist-versioned/chunks/{chunk.JIWTAZZS.js → chunk.UGILZRQF.js} +6 -6
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/{chunk.A5S7GZJI.js → chunk.UWKWJ6WX.js} +25 -15
- package/dist-versioned/chunks/{chunk.OBWOMZNU.js → chunk.V27Y42MG.js} +19 -7
- package/dist-versioned/chunks/{chunk.OZU372TI.js → chunk.VAA7NUXP.js} +3 -3
- package/dist-versioned/chunks/{chunk.QTFIZJGB.js → chunk.VYPTEJCW.js} +3 -3
- package/dist-versioned/chunks/{chunk.H5BDO4H5.js → chunk.WZK6B3UV.js} +12 -12
- package/dist-versioned/chunks/{chunk.PT7MDSWH.js → chunk.X27M4U7I.js} +2 -2
- package/dist-versioned/chunks/{chunk.XL2PSGM5.js → chunk.XS43N4DL.js} +3 -3
- package/dist-versioned/chunks/{chunk.LZA2QYUU.js → chunk.YHVAW367.js} +2 -2
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion/accordion.js +3 -3
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/animation/animation.js +2 -2
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/audio/audio.js +2 -2
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/badge/badge.js +2 -2
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.js +2 -2
- package/dist-versioned/components/button/button.d.ts +2 -1
- package/dist-versioned/components/button/button.js +3 -3
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.js +2 -2
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.js +4 -4
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
- package/dist-versioned/components/checkbox/checkbox.d.ts +2 -1
- package/dist-versioned/components/checkbox/checkbox.js +3 -3
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +2 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
- package/dist-versioned/components/combobox/combobox.d.ts +5 -4
- package/dist-versioned/components/combobox/combobox.js +5 -5
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.js +5 -5
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/divider/divider.js +2 -2
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.js +5 -5
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.js +3 -3
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.js +2 -2
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.js +5 -5
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/header/header.js +2 -2
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/icon/icon.js +2 -2
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/include/include.js +2 -2
- package/dist-versioned/components/input/input.d.ts +2 -1
- package/dist-versioned/components/input/input.js +3 -3
- package/dist-versioned/components/link/link.d.ts +3 -1
- package/dist-versioned/components/link/link.js +2 -2
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.js +2 -2
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.js +2 -2
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/notification/notification.js +2 -2
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/optgroup/optgroup.js +3 -3
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/option/option.js +3 -3
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/popup/popup.js +2 -2
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.js +4 -4
- package/dist-versioned/components/radio/radio.d.ts +2 -1
- package/dist-versioned/components/radio/radio.js +3 -3
- package/dist-versioned/components/radio-button/radio-button.d.ts +2 -1
- package/dist-versioned/components/radio-button/radio-button.js +2 -2
- package/dist-versioned/components/radio-group/radio-group.d.ts +3 -2
- package/dist-versioned/components/radio-group/radio-group.js +5 -5
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.js +2 -2
- package/dist-versioned/components/select/select.d.ts +5 -4
- package/dist-versioned/components/select/select.js +5 -5
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.js +2 -2
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step/step.js +2 -2
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.js +2 -2
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/switch/switch.js +2 -2
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab/tab.js +2 -2
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.js +2 -2
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/tag/tag.js +2 -2
- package/dist-versioned/components/teaser/teaser.js +2 -2
- package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
- package/dist-versioned/components/textarea/textarea.d.ts +2 -1
- package/dist-versioned/components/textarea/textarea.js +2 -2
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.js +3 -3
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/components/video/video.js +2 -2
- package/dist-versioned/custom-elements.json +427 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +50 -50
- package/dist-versioned/utilities/autocomplete-config.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +135 -80
- package/dist-versioned/web-types.json +255 -137
- package/package.json +3 -3
- package/cdn/chunks/chunk.2BINANVD.js +0 -11
- package/cdn/chunks/chunk.2POHB7E4.js +0 -1
- package/cdn/chunks/chunk.DW5QL76L.js +0 -3
- package/cdn/chunks/chunk.HQYSQRUN.js +0 -1
- package/cdn/chunks/chunk.HTMZNSES.js +0 -11
- package/cdn/chunks/chunk.OPMM2RN5.js +0 -1
- package/cdn/chunks/chunk.OY3MT73P.js +0 -25
- package/cdn/chunks/chunk.SIC7OWQL.js +0 -1
- package/cdn/chunks/chunk.SXH5LQRL.js +0 -1
- package/cdn/chunks/chunk.V3PPGMIL.js +0 -10
- package/cdn/chunks/chunk.YN6CIEPP.js +0 -1
- package/cdn-versioned/chunks/chunk.2BINANVD.js +0 -11
- package/cdn-versioned/chunks/chunk.2POHB7E4.js +0 -1
- package/cdn-versioned/chunks/chunk.DW5QL76L.js +0 -3
- package/cdn-versioned/chunks/chunk.GQU4LYQ6.js +0 -73
- package/cdn-versioned/chunks/chunk.HQYSQRUN.js +0 -1
- package/cdn-versioned/chunks/chunk.HTMZNSES.js +0 -11
- package/cdn-versioned/chunks/chunk.OPMM2RN5.js +0 -1
- package/cdn-versioned/chunks/chunk.OY3MT73P.js +0 -25
- package/cdn-versioned/chunks/chunk.SIC7OWQL.js +0 -1
- package/cdn-versioned/chunks/chunk.SXH5LQRL.js +0 -1
- package/cdn-versioned/chunks/chunk.V3PPGMIL.js +0 -10
- package/cdn-versioned/chunks/chunk.YN6CIEPP.js +0 -1
- package/dist-versioned/chunks/chunk.HFHUY7YD.js +0 -65
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
SolidElement,
|
|
18
18
|
customElement
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.M4CPDAKC.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass,
|
|
22
22
|
__spreadValues
|
|
@@ -138,6 +138,7 @@ var SdInput = class extends SolidElement {
|
|
|
138
138
|
this.helpText = "";
|
|
139
139
|
this.clearable = false;
|
|
140
140
|
this.disabled = false;
|
|
141
|
+
this.visuallyDisabled = false;
|
|
141
142
|
this.readonly = false;
|
|
142
143
|
this.passwordToggle = false;
|
|
143
144
|
this.passwordVisible = false;
|
|
@@ -199,6 +200,10 @@ var SdInput = class extends SolidElement {
|
|
|
199
200
|
this.emit("sd-focus");
|
|
200
201
|
}
|
|
201
202
|
handleInput() {
|
|
203
|
+
if (this.visuallyDisabled) {
|
|
204
|
+
this.input.value = this.value;
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
202
207
|
this.value = this.input.value;
|
|
203
208
|
this.formControlController.updateValidity();
|
|
204
209
|
this.emit("sd-input");
|
|
@@ -335,10 +340,11 @@ var SdInput = class extends SolidElement {
|
|
|
335
340
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
|
336
341
|
const hasClearIcon = this.clearable && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
337
342
|
const hasTooltip = !!slots["tooltip"];
|
|
338
|
-
const inputState = this.disabled ? "disabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
343
|
+
const inputState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
339
344
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
|
340
345
|
const borderColor = {
|
|
341
346
|
disabled: "border-neutral-500",
|
|
347
|
+
visuallyDisabled: "border-neutral-500",
|
|
342
348
|
readonly: "border-neutral-800",
|
|
343
349
|
activeInvalid: "border-error border-2",
|
|
344
350
|
activeValid: "border-success border-2",
|
|
@@ -347,26 +353,27 @@ var SdInput = class extends SolidElement {
|
|
|
347
353
|
valid: "border-success",
|
|
348
354
|
default: "border-neutral-800"
|
|
349
355
|
}[inputState];
|
|
350
|
-
const iconColor = this.disabled ? "text-neutral-500" : "text-primary";
|
|
356
|
+
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary";
|
|
351
357
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
352
358
|
const iconSize = {
|
|
353
359
|
sm: "text-base",
|
|
354
360
|
md: "text-lg",
|
|
355
361
|
lg: "text-xl"
|
|
356
362
|
}[this.size];
|
|
357
|
-
return html`<div part="form-control" class="${cx(this.disabled && "pointer-events-none")}">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx(hasLabel ? "inline-block" : "hidden", textSize)}" for="input" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="relative w-full"><div part="border" class="${cx("absolute w-full h-full pointer-events-none border rounded-default", borderColor)}"></div><div part="base" class="${cx(
|
|
363
|
+
return html`<div part="form-control" class="${cx(this.disabled && "pointer-events-none", this.visuallyDisabled && "cursor-not-allowed")}">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx(hasLabel ? "inline-block" : "hidden", textSize)}" for="input" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx("relative w-full", this.visuallyDisabled && "cursor-not-allowed")}"><div part="border" class="${cx("absolute w-full h-full pointer-events-none border rounded-default", borderColor)}"></div><div part="base" class="${cx(
|
|
358
364
|
"px-4 flex flex-row items-center rounded-default transition-all",
|
|
359
365
|
// Vertical Padding
|
|
360
366
|
this.size === "lg" ? "py-2" : "py-1",
|
|
361
367
|
// States
|
|
362
|
-
!this.disabled && !this.readonly ? "hover:bg-neutral-200" : "",
|
|
368
|
+
!this.disabled && !this.readonly && !this.visuallyDisabled ? "hover:bg-neutral-200" : "",
|
|
363
369
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
|
364
|
-
inputState === "disabled" ? "text-neutral-500" : "text-black"
|
|
370
|
+
inputState === "disabled" || inputState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
365
371
|
)}">${slots["left"] ? html`<slot name="left" part="left" class="${cx("inline-flex", this.size === "sm" ? "mr-1" : "mr-2", iconColor, iconSize)}"></slot>` : ""} <input part="input" id="input" class="${cx(
|
|
366
372
|
"min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
|
|
367
373
|
this.size === "sm" ? "h-6" : "h-8",
|
|
368
|
-
textSize
|
|
369
|
-
|
|
374
|
+
textSize,
|
|
375
|
+
this.visuallyDisabled && "cursor-not-allowed"
|
|
376
|
+
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-2-0-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-2-0-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-4-2-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-4-2-0-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-2-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-4-2-0-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-2-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-2-0-icon>` : ""} ${this.type === "time" ? html`<sd-4-2-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-2-0-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-4-2-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-4-2-0-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-2-0-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-2-0-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-2-0-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-2-0-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-2-0-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-2-0-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-4-2-0-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-2-0-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
370
377
|
}
|
|
371
378
|
};
|
|
372
379
|
/**
|
|
@@ -374,7 +381,7 @@ var SdInput = class extends SolidElement {
|
|
|
374
381
|
*/
|
|
375
382
|
SdInput.styles = [
|
|
376
383
|
...SolidElement.styles,
|
|
377
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-
|
|
384
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-2-0-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
378
385
|
];
|
|
379
386
|
__decorateClass([
|
|
380
387
|
query("#input")
|
|
@@ -421,6 +428,9 @@ __decorateClass([
|
|
|
421
428
|
__decorateClass([
|
|
422
429
|
property({ type: Boolean, reflect: true })
|
|
423
430
|
], SdInput.prototype, "disabled", 2);
|
|
431
|
+
__decorateClass([
|
|
432
|
+
property({ type: Boolean, reflect: true, attribute: "visually-disabled" })
|
|
433
|
+
], SdInput.prototype, "visuallyDisabled", 2);
|
|
424
434
|
__decorateClass([
|
|
425
435
|
property({ type: Boolean, reflect: true })
|
|
426
436
|
], SdInput.prototype, "readonly", 2);
|
|
@@ -501,7 +511,7 @@ __decorateClass([
|
|
|
501
511
|
watch("value", { waitUntilFirstUpdate: true })
|
|
502
512
|
], SdInput.prototype, "handleValueChange", 1);
|
|
503
513
|
SdInput = __decorateClass([
|
|
504
|
-
customElement("sd-4-
|
|
514
|
+
customElement("sd-4-2-0-input")
|
|
505
515
|
], SdInput);
|
|
506
516
|
|
|
507
517
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SdRadio
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UEKILTQF.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlController,
|
|
6
6
|
customErrorValidityState,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.KVKRZJS7.js";
|
|
10
10
|
import {
|
|
11
11
|
SdButtonGroup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.WZK6B3UV.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.X2OQMWGY.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
SolidElement,
|
|
21
21
|
customElement
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.M4CPDAKC.js";
|
|
23
23
|
import {
|
|
24
24
|
__decorateClass
|
|
25
25
|
} from "./chunk.S3NI7NKU.js";
|
|
@@ -41,6 +41,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
41
41
|
this.required = false;
|
|
42
42
|
this.orientation = "vertical";
|
|
43
43
|
this.label = "";
|
|
44
|
+
this.helpText = "";
|
|
44
45
|
this.boldLabel = false;
|
|
45
46
|
this.name = "option";
|
|
46
47
|
this.value = "";
|
|
@@ -76,10 +77,10 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
76
77
|
this.formControlController.updateValidity();
|
|
77
78
|
}
|
|
78
79
|
getAllRadios() {
|
|
79
|
-
return [...this.querySelectorAll("sd-4-
|
|
80
|
+
return [...this.querySelectorAll("sd-4-2-0-radio, sd-4-2-0-radio-button")];
|
|
80
81
|
}
|
|
81
82
|
handleRadioClick(event) {
|
|
82
|
-
const target = event.target.closest("sd-4-
|
|
83
|
+
const target = event.target.closest("sd-4-2-0-radio, sd-4-2-0-radio-button");
|
|
83
84
|
const radios = this.getAllRadios();
|
|
84
85
|
const oldValue = this.value;
|
|
85
86
|
if (target.disabled) {
|
|
@@ -156,7 +157,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
156
157
|
}
|
|
157
158
|
})
|
|
158
159
|
);
|
|
159
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-
|
|
160
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-2-0-radio-button");
|
|
160
161
|
if (!radios.some((radio) => radio.checked)) {
|
|
161
162
|
if (this.hasButtonGroup) {
|
|
162
163
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -168,26 +169,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
171
|
if (this.hasButtonGroup) {
|
|
171
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-
|
|
172
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-2-0-button-group");
|
|
172
173
|
if (buttonGroup) {
|
|
173
174
|
buttonGroup.disableRole = true;
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
syncRadios() {
|
|
178
|
-
if (customElements.get("sd-4-
|
|
179
|
+
if (customElements.get("sd-4-2-0-radio") && customElements.get("sd-4-2-0-radio-button")) {
|
|
179
180
|
this.syncRadioElements();
|
|
180
181
|
return;
|
|
181
182
|
}
|
|
182
|
-
if (customElements.get("sd-4-
|
|
183
|
+
if (customElements.get("sd-4-2-0-radio")) {
|
|
183
184
|
this.syncRadioElements();
|
|
184
185
|
} else {
|
|
185
|
-
customElements.whenDefined("sd-4-
|
|
186
|
+
customElements.whenDefined("sd-4-2-0-radio").then(() => this.syncRadios());
|
|
186
187
|
}
|
|
187
|
-
if (customElements.get("sd-4-
|
|
188
|
+
if (customElements.get("sd-4-2-0-radio-button")) {
|
|
188
189
|
this.syncRadioElements();
|
|
189
190
|
} else {
|
|
190
|
-
customElements.whenDefined("sd-4-
|
|
191
|
+
customElements.whenDefined("sd-4-2-0-radio-button").then(() => this.syncRadios());
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
updateCheckedRadio() {
|
|
@@ -243,7 +244,9 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
243
244
|
}
|
|
244
245
|
render() {
|
|
245
246
|
const hasLabelSlot = this.hasSlotController.test("label");
|
|
246
|
-
const hasLabel = this.label ? true :
|
|
247
|
+
const hasLabel = this.label ? true : hasLabelSlot;
|
|
248
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
249
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
247
250
|
const hasTooltipSlot = this.hasSlotController.test("tooltip");
|
|
248
251
|
const defaultSlot = html`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;
|
|
249
252
|
return html`<fieldset part="form-control" class="${cx(
|
|
@@ -254,9 +257,9 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
254
257
|
md: "text-base",
|
|
255
258
|
lg: "text-base"
|
|
256
259
|
}[this.size]
|
|
257
|
-
)}" role="radiogroup" aria-describedby="invalid-message">${
|
|
260
|
+
)}" role="radiogroup" aria-describedby="invalid-message">${hasLabel || hasTooltipSlot ? html`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${cx(
|
|
258
261
|
"p-0 leading-normal text-black text-left",
|
|
259
|
-
|
|
262
|
+
hasLabel ? "flex" : "hidden",
|
|
260
263
|
this.boldLabel && "font-bold"
|
|
261
264
|
)}" @click="${this.focus}" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></legend>${hasTooltipSlot ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx(
|
|
262
265
|
"flex",
|
|
@@ -264,16 +267,16 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
264
267
|
vertical: "flex-col",
|
|
265
268
|
horizontal: "flex-row"
|
|
266
269
|
}[this.orientation]
|
|
267
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-
|
|
270
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-2-0-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-4-2-0-button-group>` : defaultSlot}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`;
|
|
268
271
|
}
|
|
269
272
|
};
|
|
270
|
-
SdRadioGroup.dependencies = { "sd-4-
|
|
273
|
+
SdRadioGroup.dependencies = { "sd-4-2-0-button-group": SdButtonGroup };
|
|
271
274
|
/**
|
|
272
275
|
* Inherits Tailwind classes and includes additional styling.
|
|
273
276
|
*/
|
|
274
277
|
SdRadioGroup.styles = [
|
|
275
278
|
...SolidElement.styles,
|
|
276
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-
|
|
279
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-2-0-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-2-0-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-2-0-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-2-0-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-2-0-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-2-0-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`
|
|
277
280
|
];
|
|
278
281
|
__decorateClass([
|
|
279
282
|
query("slot:not([name])")
|
|
@@ -305,6 +308,9 @@ __decorateClass([
|
|
|
305
308
|
__decorateClass([
|
|
306
309
|
property()
|
|
307
310
|
], SdRadioGroup.prototype, "label", 2);
|
|
311
|
+
__decorateClass([
|
|
312
|
+
property({ attribute: "help-text" })
|
|
313
|
+
], SdRadioGroup.prototype, "helpText", 2);
|
|
308
314
|
__decorateClass([
|
|
309
315
|
property({ type: Boolean, reflect: true })
|
|
310
316
|
], SdRadioGroup.prototype, "boldLabel", 2);
|
|
@@ -327,7 +333,7 @@ __decorateClass([
|
|
|
327
333
|
watch("value")
|
|
328
334
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
329
335
|
SdRadioGroup = __decorateClass([
|
|
330
|
-
customElement("sd-4-
|
|
336
|
+
customElement("sd-4-2-0-radio-group")
|
|
331
337
|
], SdRadioGroup);
|
|
332
338
|
|
|
333
339
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SdTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Q2OO67VT.js";
|
|
4
4
|
import {
|
|
5
5
|
SdPopup
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.PY2NXO6G.js";
|
|
7
7
|
import {
|
|
8
8
|
defaultValue
|
|
9
9
|
} from "./chunk.GI7VDIWX.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk.N4LHE3QK.js";
|
|
29
29
|
import {
|
|
30
30
|
SdIcon
|
|
31
|
-
} from "./chunk.
|
|
31
|
+
} from "./chunk.33QCSKQD.js";
|
|
32
32
|
import {
|
|
33
33
|
animateTo,
|
|
34
34
|
stopAnimations
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
SolidElement,
|
|
50
50
|
customElement
|
|
51
|
-
} from "./chunk.
|
|
51
|
+
} from "./chunk.M4CPDAKC.js";
|
|
52
52
|
import {
|
|
53
53
|
__decorateClass
|
|
54
54
|
} from "./chunk.S3NI7NKU.js";
|
|
@@ -62,7 +62,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
62
62
|
constructor() {
|
|
63
63
|
super(...arguments);
|
|
64
64
|
this.formControlController = new FormControlController(this, {
|
|
65
|
-
assumeInteractionOn: ["sd-blur", "sd-4-
|
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-2-0-input"]
|
|
66
66
|
});
|
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
68
68
|
this.localize = new LocalizeController(this);
|
|
@@ -82,6 +82,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
82
82
|
this.placeholder = "";
|
|
83
83
|
this.maxOptionsTagLabel = "";
|
|
84
84
|
this.disabled = false;
|
|
85
|
+
this.visuallyDisabled = false;
|
|
85
86
|
this.clearable = false;
|
|
86
87
|
this.open = false;
|
|
87
88
|
this.hoist = false;
|
|
@@ -103,11 +104,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
103
104
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
104
105
|
};
|
|
105
106
|
this.getTag = (option) => {
|
|
106
|
-
return html`<sd-4-
|
|
107
|
+
return html`<sd-4-2-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
107
108
|
base:tag__base,
|
|
108
109
|
content:tag__content,
|
|
109
110
|
removable-indicator:tag__removable-indicator,
|
|
110
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-
|
|
111
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-2-0-tag>`;
|
|
111
112
|
};
|
|
112
113
|
this.handleDocumentFocusIn = (event) => {
|
|
113
114
|
const path = event.composedPath();
|
|
@@ -116,6 +117,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
116
117
|
}
|
|
117
118
|
};
|
|
118
119
|
this.handleDocumentKeyDown = (event) => {
|
|
120
|
+
if (this.visuallyDisabled) {
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
event.stopPropagation();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
119
125
|
const target = event.target;
|
|
120
126
|
const isClearButton = target.closest(".combobox__clear") !== null;
|
|
121
127
|
if (isClearButton) {
|
|
@@ -229,9 +235,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
229
235
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
230
236
|
};
|
|
231
237
|
return this.filteredOptions.map((item) => {
|
|
232
|
-
if (item.tagName.toLowerCase() === "sd-4-
|
|
238
|
+
if (item.tagName.toLowerCase() === "sd-4-2-0-optgroup") {
|
|
233
239
|
Array.from(item.children).forEach((option) => {
|
|
234
|
-
if (option.tagName.toLowerCase() === "sd-4-
|
|
240
|
+
if (option.tagName.toLowerCase() === "sd-4-2-0-option") {
|
|
235
241
|
renderOption(option);
|
|
236
242
|
}
|
|
237
243
|
});
|
|
@@ -251,11 +257,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
251
257
|
});
|
|
252
258
|
} else {
|
|
253
259
|
return [
|
|
254
|
-
html`<sd-4-
|
|
260
|
+
html`<sd-4-2-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
255
261
|
base:tag__base,
|
|
256
262
|
content:tag__content,
|
|
257
263
|
removable-indicator:tag__removable-indicator,
|
|
258
|
-
" 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-4-
|
|
264
|
+
" 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-4-2-0-tag>`
|
|
259
265
|
];
|
|
260
266
|
}
|
|
261
267
|
}
|
|
@@ -298,6 +304,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
298
304
|
}
|
|
299
305
|
}
|
|
300
306
|
handleLabelClick() {
|
|
307
|
+
if (this.visuallyDisabled) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
301
310
|
this.displayInput.focus();
|
|
302
311
|
}
|
|
303
312
|
handleTagRemove(event, option) {
|
|
@@ -316,6 +325,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
316
325
|
}
|
|
317
326
|
}
|
|
318
327
|
handleComboboxMouseDown(event) {
|
|
328
|
+
if (this.visuallyDisabled) {
|
|
329
|
+
event.preventDefault();
|
|
330
|
+
event.stopPropagation();
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
319
333
|
const path = event.composedPath();
|
|
320
334
|
const isRemovableIndicator = path.some((el) => el instanceof HTMLSlotElement && el.name === "removable-indicator");
|
|
321
335
|
if (this.disabled || isRemovableIndicator) {
|
|
@@ -364,7 +378,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
364
378
|
}
|
|
365
379
|
handleOptionClick(event) {
|
|
366
380
|
const target = event.target;
|
|
367
|
-
const option = target.closest("sd-4-
|
|
381
|
+
const option = target.closest("sd-4-2-0-option");
|
|
368
382
|
const oldValue = this.value;
|
|
369
383
|
if (option && !option.disabled) {
|
|
370
384
|
if (this.multiple) {
|
|
@@ -416,7 +430,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
416
430
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
417
431
|
}
|
|
418
432
|
getAllFilteredOptions() {
|
|
419
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-
|
|
433
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-2-0-option")];
|
|
420
434
|
}
|
|
421
435
|
getCurrentOption() {
|
|
422
436
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -542,7 +556,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
542
556
|
clonedOption.selected = option.selected;
|
|
543
557
|
clonedOption.checkbox = option.checkbox;
|
|
544
558
|
clonedOption.size = option.size;
|
|
545
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-
|
|
559
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-2-0-optgroup";
|
|
546
560
|
if (!hasOptgroup) {
|
|
547
561
|
return clonedOption;
|
|
548
562
|
}
|
|
@@ -572,7 +586,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
572
586
|
handleMouseLeave() {
|
|
573
587
|
this.hasHover = false;
|
|
574
588
|
}
|
|
575
|
-
/** Receives incoming event detail from sd-4-
|
|
589
|
+
/** Receives incoming event detail from sd-4-2-0-popup and updates local state for conditional styling. */
|
|
576
590
|
handleCurrentPlacement(e) {
|
|
577
591
|
const incomingPlacement = e.detail;
|
|
578
592
|
if (incomingPlacement) {
|
|
@@ -584,7 +598,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
584
598
|
}
|
|
585
599
|
handleUseTagsChange() {
|
|
586
600
|
const allOptions = this.getAllFilteredOptions();
|
|
587
|
-
if (customElements.get("sd-4-
|
|
601
|
+
if (customElements.get("sd-4-2-0-option")) {
|
|
588
602
|
allOptions.forEach((option) => {
|
|
589
603
|
option.checkbox = this.multiple;
|
|
590
604
|
});
|
|
@@ -597,7 +611,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
597
611
|
}
|
|
598
612
|
handleDisabledChange() {
|
|
599
613
|
this.formControlController.setValidity(this.disabled);
|
|
600
|
-
if (this.disabled) {
|
|
614
|
+
if (this.disabled || this.visuallyDisabled) {
|
|
601
615
|
this.open = false;
|
|
602
616
|
this.handleOpenChange();
|
|
603
617
|
}
|
|
@@ -614,7 +628,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
614
628
|
this.createComboboxOptionsFromQuery(this.displayInputValue);
|
|
615
629
|
}
|
|
616
630
|
async handleOpenChange() {
|
|
617
|
-
if (this.open && !this.disabled) {
|
|
631
|
+
if (this.open && (!this.disabled || !this.visuallyDisabled)) {
|
|
618
632
|
this.emit("sd-show");
|
|
619
633
|
this.addOpenListeners();
|
|
620
634
|
await stopAnimations(this);
|
|
@@ -640,7 +654,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
640
654
|
this.emit("sd-after-hide");
|
|
641
655
|
}
|
|
642
656
|
async show() {
|
|
643
|
-
if (this.open || this.disabled) {
|
|
657
|
+
if (this.open || this.disabled || this.visuallyDisabled) {
|
|
644
658
|
this.open = false;
|
|
645
659
|
return void 0;
|
|
646
660
|
}
|
|
@@ -710,8 +724,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
710
724
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
711
725
|
}
|
|
712
726
|
async handleDefaultSlotChange() {
|
|
713
|
-
if (!customElements.get("sd-4-
|
|
714
|
-
customElements.whenDefined("sd-4-
|
|
727
|
+
if (!customElements.get("sd-4-2-0-option")) {
|
|
728
|
+
customElements.whenDefined("sd-4-2-0-option").then(() => this.handleDefaultSlotChange());
|
|
715
729
|
return;
|
|
716
730
|
}
|
|
717
731
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -723,10 +737,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
723
737
|
if (this.multiple) {
|
|
724
738
|
option.checkbox = true;
|
|
725
739
|
}
|
|
726
|
-
option.id = option.id || `sd-4-
|
|
740
|
+
option.id = option.id || `sd-4-2-0-combobox-option-${index}`;
|
|
727
741
|
});
|
|
728
742
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
729
|
-
optgroup.id = optgroup.id || `sd-4-
|
|
743
|
+
optgroup.id = optgroup.id || `sd-4-2-0-combobox-optgroup-${index}`;
|
|
730
744
|
});
|
|
731
745
|
await this.syncSelectedOptionsAndValue();
|
|
732
746
|
if (this.multiple) {
|
|
@@ -744,10 +758,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
744
758
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
745
759
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
746
760
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
747
|
-
const hasClearIcon = this.clearable && !this.disabled;
|
|
748
|
-
const selectState = this.disabled ? "disabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
749
|
-
const cursorStyles = this.disabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
750
|
-
const iconColor = this.disabled ? "text-neutral-500" : "text-primary";
|
|
761
|
+
const hasClearIcon = this.clearable && !this.disabled && !this.visuallyDisabled;
|
|
762
|
+
const selectState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
763
|
+
const cursorStyles = this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
764
|
+
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary";
|
|
751
765
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
752
766
|
const iconMarginRight = { sm: "mr-1", md: "mr-2", lg: "mr-2" }[this.size];
|
|
753
767
|
const iconSize = {
|
|
@@ -762,9 +776,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
762
776
|
this.open && "z-50"
|
|
763
777
|
)}"><label id="label" part="form-control-label" class="${hasLabel && "inline-block mb-2"}" aria-hidden="${!hasLabel}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${cx(
|
|
764
778
|
"absolute top-0 w-full h-full pointer-events-none border rounded-default",
|
|
765
|
-
this.hasHover && "bg-neutral-200",
|
|
779
|
+
this.hasHover && !this.disabled && !this.visuallyDisabled && "bg-neutral-200",
|
|
766
780
|
{
|
|
767
781
|
disabled: "border-neutral-500",
|
|
782
|
+
visuallyDisabled: "border-neutral-500",
|
|
768
783
|
readonly: "border-neutral-800",
|
|
769
784
|
activeInvalid: "border-error border-2",
|
|
770
785
|
activeValid: "border-success border-2",
|
|
@@ -774,7 +789,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
774
789
|
default: "border-neutral-800"
|
|
775
790
|
}[selectState],
|
|
776
791
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
777
|
-
)}"></div><sd-4-
|
|
792
|
+
)}"></div><sd-4-2-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
778
793
|
"inline-flex relative w-full",
|
|
779
794
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
780
795
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -791,32 +806,32 @@ var SdCombobox = class extends SolidElement {
|
|
|
791
806
|
"appearance-none outline-none bg-transparent flex-auto min-w-0",
|
|
792
807
|
cursorStyles,
|
|
793
808
|
this.selectedTextLabel && !this.multiple ? "placeholder-black" : "placeholder-neutral-700"
|
|
794
|
-
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder || this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx(
|
|
809
|
+
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder || this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled || this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx(
|
|
795
810
|
"flex justify-center",
|
|
796
811
|
iconMarginLeft,
|
|
797
812
|
this.value.length > 0 ? "visible" : "invisible"
|
|
798
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-
|
|
813
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-2-0-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-2-0-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-2-0-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-2-0-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-2-0-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-2-0-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
799
814
|
"inline-flex ml-2 leading-[0]",
|
|
800
|
-
this.disabled ? "text-neutral-500" : "text-primary",
|
|
815
|
+
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
801
816
|
iconSize
|
|
802
|
-
)}"><sd-4-
|
|
817
|
+
)}"><sd-4-2-0-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-2-0-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
803
818
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
804
819
|
this.open && "shadow",
|
|
805
820
|
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"
|
|
806
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-
|
|
821
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-2-0-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
807
822
|
}
|
|
808
823
|
};
|
|
809
824
|
SdCombobox.dependencies = {
|
|
810
|
-
"sd-4-
|
|
811
|
-
"sd-4-
|
|
812
|
-
"sd-4-
|
|
825
|
+
"sd-4-2-0-icon": SdIcon,
|
|
826
|
+
"sd-4-2-0-popup": SdPopup,
|
|
827
|
+
"sd-4-2-0-tag": SdTag
|
|
813
828
|
};
|
|
814
829
|
SdCombobox.styles = [
|
|
815
830
|
...SolidElement.styles,
|
|
816
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-
|
|
831
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-2-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-2-0-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-4-2-0-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-2-0-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-2-0-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))}[part=filtered-listbox] sd-4-2-0-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
817
832
|
];
|
|
818
833
|
__decorateClass([
|
|
819
|
-
query("sd-4-
|
|
834
|
+
query("sd-4-2-0-popup")
|
|
820
835
|
], SdCombobox.prototype, "popup", 2);
|
|
821
836
|
__decorateClass([
|
|
822
837
|
query('[part="combobox"]')
|
|
@@ -898,6 +913,9 @@ __decorateClass([
|
|
|
898
913
|
__decorateClass([
|
|
899
914
|
property({ reflect: true, type: Boolean })
|
|
900
915
|
], SdCombobox.prototype, "disabled", 2);
|
|
916
|
+
__decorateClass([
|
|
917
|
+
property({ reflect: true, type: Boolean, attribute: "visually-disabled" })
|
|
918
|
+
], SdCombobox.prototype, "visuallyDisabled", 2);
|
|
901
919
|
__decorateClass([
|
|
902
920
|
property({ type: Boolean })
|
|
903
921
|
], SdCombobox.prototype, "clearable", 2);
|
|
@@ -956,7 +974,7 @@ __decorateClass([
|
|
|
956
974
|
watch("size", { waitUntilFirstUpdate: true })
|
|
957
975
|
], SdCombobox.prototype, "applySizeToOptions", 1);
|
|
958
976
|
__decorateClass([
|
|
959
|
-
watch("disabled", { waitUntilFirstUpdate: true })
|
|
977
|
+
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
960
978
|
], SdCombobox.prototype, "handleDisabledChange", 1);
|
|
961
979
|
__decorateClass([
|
|
962
980
|
watch("value", { waitUntilFirstUpdate: true })
|
|
@@ -968,7 +986,7 @@ __decorateClass([
|
|
|
968
986
|
watch("open", { waitUntilFirstUpdate: true })
|
|
969
987
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
970
988
|
SdCombobox = __decorateClass([
|
|
971
|
-
customElement("sd-4-
|
|
989
|
+
customElement("sd-4-2-0-combobox")
|
|
972
990
|
], SdCombobox);
|
|
973
991
|
setDefaultAnimation("combobox.show", {
|
|
974
992
|
keyframes: [
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
SolidElement,
|
|
9
9
|
customElement
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.M4CPDAKC.js";
|
|
11
11
|
import {
|
|
12
12
|
__decorateClass
|
|
13
13
|
} from "./chunk.S3NI7NKU.js";
|
|
@@ -68,7 +68,7 @@ __decorateClass([
|
|
|
68
68
|
watch("src")
|
|
69
69
|
], SdInclude.prototype, "handleSrcChange", 1);
|
|
70
70
|
SdInclude = __decorateClass([
|
|
71
|
-
customElement("sd-4-
|
|
71
|
+
customElement("sd-4-2-0-include")
|
|
72
72
|
], SdInclude);
|
|
73
73
|
|
|
74
74
|
export {
|