@ds-autonomie/web-components 2.0.1 → 2.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/CHANGELOG.md +36 -0
- package/cdn/chunks/{chunk.ZDLDKWEM.js → chunk.2APAO2OW.js} +1 -1
- package/cdn/chunks/{chunk.QPY2AEFG.js → chunk.2DJERWBI.js} +14 -10
- package/cdn/chunks/{chunk.QCSRN6TI.js → chunk.3JMBGIZN.js} +1 -1
- package/cdn/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
- package/cdn/chunks/{chunk.2SEDRBTZ.js → chunk.4NC4QO64.js} +4 -1
- package/cdn/chunks/{chunk.ZC2YWJX5.js → chunk.5BF76EO7.js} +1 -1
- package/cdn/chunks/{chunk.HRSNXHEG.js → chunk.5BL6KECM.js} +31 -5
- package/cdn/chunks/{chunk.OZEY33RC.js → chunk.5LXQ3RKQ.js} +2 -22
- package/cdn/chunks/{chunk.GDKBZ2H6.js → chunk.6CF6SXDF.js} +1 -2
- package/cdn/chunks/{chunk.SRCH73UW.js → chunk.6QTMZJGH.js} +25 -2
- package/cdn/chunks/{chunk.Z326Q4YW.js → chunk.6V2FRFCB.js} +1 -1
- package/cdn/chunks/{chunk.KQ5BQRHA.js → chunk.77CWRZEL.js} +6 -0
- package/cdn/chunks/{chunk.6E6G25TQ.js → chunk.A33BZOMA.js} +1 -1
- package/cdn/chunks/{chunk.GLQFV66F.js → chunk.ATHAYO6A.js} +177 -12
- package/cdn/chunks/{chunk.VIT6ZMSL.js → chunk.BCLU5KXE.js} +4 -5
- package/cdn/chunks/{chunk.5UR3I4O7.js → chunk.BE7PKTJW.js} +1 -1
- package/cdn/chunks/chunk.BNPGOQZ2.js +223 -0
- package/cdn/chunks/{chunk.PS3BQQBO.js → chunk.C62MMBV4.js} +17 -3
- package/cdn/chunks/{chunk.VR6U4JFG.js → chunk.CUCCBQJX.js} +11 -2
- package/cdn/chunks/{chunk.Q2IGBG6C.js → chunk.CVV4WLBC.js} +16 -8
- package/cdn/chunks/{chunk.5AFQZ4HE.js → chunk.CYMM2ZAV.js} +6 -0
- package/cdn/chunks/{chunk.2GCON4UO.js → chunk.DSKRAAOI.js} +3 -4
- package/cdn/chunks/{chunk.454LK2SB.js → chunk.E6VF2I6I.js} +9 -4
- package/cdn/chunks/{chunk.JYYFSSR2.js → chunk.EARU4CHS.js} +1 -1
- package/cdn/chunks/chunk.F7NUIVDV.js +10 -0
- package/cdn/chunks/{chunk.OVD3Q2LV.js → chunk.FHOCNAJ4.js} +5 -2
- package/cdn/chunks/{chunk.PLPMNDIZ.js → chunk.HYTYRM6S.js} +1 -1
- package/cdn/chunks/{chunk.DTZ62PPT.js → chunk.IGA57P5N.js} +13 -22
- package/cdn/chunks/{chunk.YTHFESMA.js → chunk.J73YJOU4.js} +6 -2
- package/cdn/chunks/chunk.KELDA33H.js +198 -0
- package/cdn/chunks/{chunk.3NTS3AEA.js → chunk.LFCUNNYV.js} +34 -30
- package/cdn/chunks/{chunk.R6BGXKHX.js → chunk.LNBAAP45.js} +1 -1
- package/cdn/chunks/{chunk.MEYHIAQ5.js → chunk.M7QHADJH.js} +5 -1
- package/cdn/chunks/chunk.MJLKYERJ.js +348 -0
- package/cdn/chunks/{chunk.3E6XVTWL.js → chunk.P45DWAWT.js} +1 -1
- package/cdn/chunks/chunk.PWL7QCVG.js +9 -0
- package/cdn/chunks/chunk.RJXLIOW7.js +28 -0
- package/cdn/chunks/{chunk.Y5CXRULD.js → chunk.UAQ7MMLI.js} +1 -1
- package/cdn/chunks/{chunk.PAGENBUA.js → chunk.UR6UOSYK.js} +10 -12
- package/cdn/chunks/{chunk.JY6ROHQN.js → chunk.WOONNSQ2.js} +14 -20
- package/cdn/chunks/{chunk.F2LQ5OCB.js → chunk.XD7G7WIJ.js} +6 -2
- package/cdn/chunks/chunk.XIX7XP2G.js +91 -0
- package/cdn/chunks/{chunk.CSDIRQFE.js → chunk.XLX7QTXT.js} +9 -1
- package/cdn/chunks/{chunk.BTTFPDXL.js → chunk.XPL6N3OJ.js} +3 -2
- package/cdn/chunks/{chunk.PMMQ5QVY.js → chunk.XQAKSW3W.js} +12 -1
- package/cdn/chunks/{chunk.NW4AAKGG.js → chunk.YQQNMFZF.js} +42 -93
- package/cdn/chunks/{chunk.E4GNTJPS.js → chunk.YS6XV3LD.js} +1 -1
- package/cdn/chunks/{chunk.FGSGBIL3.js → chunk.ZKPOAPR2.js} +0 -4
- package/cdn/components/accordion/accordion.js +3 -3
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/avatar/avatar.js +4 -4
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/button/button.d.ts +4 -1
- package/cdn/components/button/button.js +4 -4
- package/cdn/components/callout/callout.d.ts +3 -1
- package/cdn/components/callout/callout.js +4 -4
- package/cdn/components/checkbox/checkbox.d.ts +5 -1
- package/cdn/components/checkbox/checkbox.js +9 -4
- package/cdn/components/checkbox-button/checkbox-button.d.ts +1 -0
- package/cdn/components/checkbox-button/checkbox-button.js +4 -4
- package/cdn/components/checkbox-group/checkbox-group.d.ts +9 -8
- package/cdn/components/checkbox-group/checkbox-group.js +8 -8
- package/cdn/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/cdn/components/combobox/combobox.d.ts +3 -2
- package/cdn/components/combobox/combobox.js +6 -5
- package/cdn/components/dialog/dialog.d.ts +5 -1
- package/cdn/components/dialog/dialog.js +5 -5
- package/cdn/components/dialog/dialog.styles.js +1 -1
- package/cdn/components/download-card/download-card.js +5 -5
- package/cdn/components/download-card/download-card.styles.js +1 -1
- package/cdn/components/download-link/download-link.js +5 -5
- package/cdn/components/download-link/download-link.styles.js +1 -1
- package/cdn/components/drawer/drawer.js +3 -3
- package/cdn/components/error-text/error-text.js +3 -3
- package/cdn/components/file-upload/file-upload.d.ts +3 -2
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/file-upload-item/file-upload-item.js +3 -3
- package/cdn/components/filter-base/filter-base-stories.js +1 -1
- package/cdn/components/filter-base/filter-base.js +3 -3
- package/cdn/components/filter-button/filter-button.js +3 -3
- package/cdn/components/filter-counter/filter-counter.js +9 -8
- package/cdn/components/filter-date/filter-date.js +4 -4
- package/cdn/components/filter-range/filter-range.js +10 -9
- package/cdn/components/filter-select/filter-select.d.ts +6 -3
- package/cdn/components/filter-select/filter-select.js +14 -13
- package/cdn/components/header/header.d.ts +5 -1
- package/cdn/components/header/header.js +2 -2
- package/cdn/components/header/header.styles.js +1 -1
- package/cdn/components/header-search/header-search.d.ts +6 -0
- package/cdn/components/header-search/header-search.js +11 -5
- package/cdn/components/header-search/header-search.styles.js +1 -1
- package/cdn/components/icon/icon.js +3 -3
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/icon/library.system.js +1 -1
- package/cdn/components/icon-button/icon-button.js +3 -3
- package/cdn/components/input/input.js +8 -7
- package/cdn/components/input-date/input-date.js +7 -6
- package/cdn/components/input-mask/input-mask.js +6 -5
- package/cdn/components/input-otp/input-otp.d.ts +90 -0
- package/cdn/components/input-otp/input-otp.js +38 -0
- package/cdn/components/input-otp/input-otp.styles.d.ts +2 -0
- package/cdn/components/input-otp/input-otp.styles.js +11 -0
- package/cdn/components/input-otp/input-otp.utils.d.ts +3 -0
- package/cdn/components/input-otp/input-otp.utils.js +11 -0
- package/cdn/components/input-phone/input-phone.d.ts +3 -3
- package/cdn/components/input-phone/input-phone.js +14 -19
- package/cdn/components/input-phone/input-phone.styles.js +1 -1
- package/cdn/components/input-phone/input-phone.utils.d.ts +0 -2
- package/cdn/components/input-phone/input-phone.utils.js +1 -7
- package/cdn/components/menu-accordion/menu-accordion.js +3 -3
- package/cdn/components/menu-item/menu-item.js +3 -3
- package/cdn/components/menu-navigation/menu-navigation.js +1 -1
- package/cdn/components/navbar-link/navbar-link.js +5 -5
- package/cdn/components/navbar-menu/navbar-menu.js +4 -4
- package/cdn/components/option/option.js +5 -5
- package/cdn/components/option/option.styles.js +1 -1
- package/cdn/components/pagination/pagination.js +11 -10
- package/cdn/components/profile-button/profile-button.js +4 -4
- package/cdn/components/quote/quote.js +3 -3
- package/cdn/components/radio/radio.js +3 -3
- package/cdn/components/radio-button/radio-button.js +9 -7
- package/cdn/components/radio-group/radio-group.d.ts +7 -2
- package/cdn/components/radio-group/radio-group.js +8 -6
- package/cdn/components/range-slider/range-slider.d.ts +0 -2
- package/cdn/components/range-slider/range-slider.js +1 -1
- package/cdn/components/select/select.d.ts +4 -2
- package/cdn/components/select/select.js +6 -5
- package/cdn/components/split-panel/split-panel.js +3 -3
- package/cdn/components/step/step.js +5 -4
- package/cdn/components/tab/tab.d.ts +2 -0
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-group/tab-group.js +3 -3
- package/cdn/components/table-body/table-body.js +2 -2
- package/cdn/components/table-header-cell/table-header-cell.js +3 -3
- package/cdn/components/table-header-row/table-header-row.js +12 -9
- package/cdn/components/table-row/table-row.js +10 -5
- package/cdn/components/tag/tag.js +3 -3
- package/cdn/components/textarea/textarea.js +6 -5
- package/cdn/components/tree/tree.js +11 -6
- package/cdn/components/tree-item/tree-item.js +9 -4
- package/cdn/custom-elements.json +815 -184
- package/cdn/design-system.d.ts +2 -0
- package/cdn/design-system.js +129 -116
- package/cdn/events/events.d.ts +7 -7
- package/cdn/internal/a11y-warning.d.ts +2 -0
- package/cdn/internal/a11y-warning.js +4 -0
- package/cdn/internal/components/date-field/date-field.js +6 -1
- package/cdn/internal/components/form-control/form-control-layout.js +6 -1
- package/cdn/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
- package/cdn/themes/dsa-wc-theme.css +19 -0
- package/cdn/themes/dsa-wc-theme.min.css +1 -1
- package/cdn/themes/dsa-wc-theme.styles.js +19 -0
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/utilities/storybook.d.ts +1 -0
- package/cdn/utilities/storybook.js +3 -1
- package/cdn/vscode.html-custom-data.json +140 -18
- package/cdn/web-types.json +472 -69
- package/dist/chunks/{chunk.N5DO55QO.js → chunk.2EDNCADP.js} +9 -1
- package/dist/chunks/{chunk.YDXAC3AX.js → chunk.2VH3OZ2T.js} +1 -1
- package/dist/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
- package/dist/chunks/{chunk.VC2F6FEI.js → chunk.4WSA3PVB.js} +1 -1
- package/dist/chunks/chunk.5P2EEOC5.js +196 -0
- package/dist/chunks/{chunk.VOOE2BQV.js → chunk.6HR34L7E.js} +2 -22
- package/dist/chunks/{chunk.Y72CHU6D.js → chunk.6JHM36KH.js} +5 -1
- package/dist/chunks/{chunk.TB3WT3D4.js → chunk.6QAB5TYJ.js} +6 -0
- package/dist/chunks/{chunk.LKCPAJMF.js → chunk.B6LMEZTV.js} +5 -2
- package/dist/chunks/{chunk.JUPNFWMF.js → chunk.DDDHV2NU.js} +14 -10
- package/dist/chunks/{chunk.P4HRQ2D7.js → chunk.DHDRABMZ.js} +1 -1
- package/dist/chunks/{chunk.X6V74J4Y.js → chunk.DUTPVTUZ.js} +4 -5
- package/dist/chunks/{chunk.JDG6WH3B.js → chunk.EQZ4YFRU.js} +94 -54
- package/dist/chunks/chunk.F7NUIVDV.js +10 -0
- package/dist/chunks/{chunk.CWVZX3HL.js → chunk.FKXOTDTY.js} +1 -1
- package/dist/chunks/{chunk.D3SHMAJT.js → chunk.H3FSR35C.js} +1 -1
- package/dist/chunks/chunk.HRIAHWFV.js +89 -0
- package/dist/chunks/{chunk.T4BUHP4L.js → chunk.I5HR7JYK.js} +10 -1
- package/dist/chunks/{chunk.4FP4K3F5.js → chunk.JDIBYGPL.js} +11 -2
- package/dist/chunks/{chunk.QEFQHCEK.js → chunk.KFRR2I2P.js} +3 -4
- package/dist/chunks/{chunk.RPZWIHKX.js → chunk.KN6RQWYN.js} +1 -1
- package/dist/chunks/{chunk.2DJFK3E6.js → chunk.KUYI27GJ.js} +204 -34
- package/dist/chunks/{chunk.ZGQUBAEK.js → chunk.L3LZ4MKX.js} +1 -1
- package/dist/chunks/{chunk.5LBJAKDG.js → chunk.LB54GRRB.js} +31 -5
- package/dist/chunks/{chunk.CQG7MKTO.js → chunk.LDXGSIJP.js} +6 -2
- package/dist/chunks/{chunk.BXOGG3JO.js → chunk.LTCZARVI.js} +1 -1
- package/dist/chunks/{chunk.ARYKCY32.js → chunk.MBRRLF6D.js} +34 -30
- package/dist/chunks/{chunk.R426GAXO.js → chunk.MJKJSMQX.js} +3 -2
- package/dist/chunks/{chunk.IAL72I44.js → chunk.MYSJOWY5.js} +6 -2
- package/dist/chunks/{chunk.3E6XVTWL.js → chunk.P45DWAWT.js} +1 -1
- package/dist/chunks/chunk.PWL7QCVG.js +9 -0
- package/dist/chunks/{chunk.7NPJ25LI.js → chunk.PZXD4VTO.js} +14 -20
- package/dist/chunks/chunk.RJXLIOW7.js +28 -0
- package/dist/chunks/{chunk.35URRZJ2.js → chunk.SYVX56PU.js} +1 -2
- package/dist/chunks/chunk.UDJJFUZ3.js +335 -0
- package/dist/chunks/{chunk.YXXLXJPE.js → chunk.UEWG3G4R.js} +6 -0
- package/dist/chunks/{chunk.K6FDIYMY.js → chunk.UVN7RIEO.js} +0 -4
- package/dist/chunks/{chunk.WWANVBI5.js → chunk.UWGAOHHQ.js} +1 -1
- package/dist/chunks/{chunk.6RJLT24F.js → chunk.VBW5RZBM.js} +4 -1
- package/dist/chunks/{chunk.LWFWCZIX.js → chunk.WQYBYKZ2.js} +9 -4
- package/dist/chunks/{chunk.XWFZLRHU.js → chunk.WRPRKCVY.js} +25 -2
- package/dist/chunks/{chunk.35M6DDPF.js → chunk.WUOMKASN.js} +17 -3
- package/dist/chunks/{chunk.GBRTFFMV.js → chunk.XJMGXWLM.js} +42 -93
- package/dist/chunks/{chunk.GOMVXZ72.js → chunk.XRZGSSHY.js} +1 -1
- package/dist/chunks/{chunk.Z2SRVRIK.js → chunk.XXN6UBL4.js} +10 -12
- package/dist/chunks/{chunk.6GN2WDDT.js → chunk.Y52TCF24.js} +1 -1
- package/dist/chunks/{chunk.DY2W3WPP.js → chunk.Z7DBDDCZ.js} +16 -8
- package/dist/chunks/{chunk.WI3DWLXW.js → chunk.ZTGPYOYG.js} +13 -22
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/button/button.js +4 -4
- package/dist/components/callout/callout.d.ts +3 -1
- package/dist/components/callout/callout.js +4 -4
- package/dist/components/checkbox/checkbox.d.ts +5 -1
- package/dist/components/checkbox/checkbox.js +9 -4
- package/dist/components/checkbox-button/checkbox-button.d.ts +1 -0
- package/dist/components/checkbox-button/checkbox-button.js +4 -4
- package/dist/components/checkbox-group/checkbox-group.d.ts +9 -8
- package/dist/components/checkbox-group/checkbox-group.js +8 -7
- package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/combobox/combobox.d.ts +3 -2
- package/dist/components/combobox/combobox.js +6 -5
- package/dist/components/dialog/dialog.d.ts +5 -1
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/download-card/download-card.js +5 -5
- package/dist/components/download-card/download-card.styles.js +1 -1
- package/dist/components/download-link/download-link.js +5 -5
- package/dist/components/download-link/download-link.styles.js +1 -1
- package/dist/components/drawer/drawer.js +3 -3
- package/dist/components/error-text/error-text.js +3 -3
- package/dist/components/file-upload/file-upload.d.ts +3 -2
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/file-upload-item/file-upload-item.js +3 -3
- package/dist/components/filter-base/filter-base-stories.js +1 -1
- package/dist/components/filter-base/filter-base.js +3 -3
- package/dist/components/filter-button/filter-button.js +3 -3
- package/dist/components/filter-counter/filter-counter.js +9 -8
- package/dist/components/filter-date/filter-date.js +4 -4
- package/dist/components/filter-range/filter-range.js +10 -9
- package/dist/components/filter-select/filter-select.d.ts +6 -3
- package/dist/components/filter-select/filter-select.js +14 -13
- package/dist/components/header/header.d.ts +5 -1
- package/dist/components/header/header.js +2 -2
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-search/header-search.d.ts +6 -0
- package/dist/components/header-search/header-search.js +11 -5
- package/dist/components/header-search/header-search.styles.js +1 -1
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.js +3 -3
- package/dist/components/input/input.js +8 -7
- package/dist/components/input-date/input-date.js +7 -6
- package/dist/components/input-mask/input-mask.js +6 -5
- package/dist/components/input-otp/input-otp.d.ts +90 -0
- package/dist/components/input-otp/input-otp.js +31 -0
- package/dist/components/input-otp/input-otp.styles.d.ts +2 -0
- package/dist/components/input-otp/input-otp.styles.js +9 -0
- package/dist/components/input-otp/input-otp.utils.d.ts +3 -0
- package/dist/components/input-otp/input-otp.utils.js +11 -0
- package/dist/components/input-phone/input-phone.d.ts +3 -3
- package/dist/components/input-phone/input-phone.js +14 -19
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- package/dist/components/input-phone/input-phone.utils.d.ts +0 -2
- package/dist/components/input-phone/input-phone.utils.js +1 -5
- package/dist/components/menu-accordion/menu-accordion.js +3 -3
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/menu-navigation/menu-navigation.js +1 -1
- package/dist/components/navbar-link/navbar-link.js +5 -5
- package/dist/components/navbar-menu/navbar-menu.js +4 -4
- package/dist/components/option/option.js +5 -5
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/pagination/pagination.js +11 -10
- package/dist/components/profile-button/profile-button.js +4 -4
- package/dist/components/quote/quote.js +3 -3
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-button/radio-button.js +9 -7
- package/dist/components/radio-group/radio-group.d.ts +7 -2
- package/dist/components/radio-group/radio-group.js +8 -6
- package/dist/components/range-slider/range-slider.d.ts +0 -2
- package/dist/components/range-slider/range-slider.js +1 -1
- package/dist/components/select/select.d.ts +4 -2
- package/dist/components/select/select.js +6 -5
- package/dist/components/split-panel/split-panel.js +3 -3
- package/dist/components/step/step.js +5 -4
- package/dist/components/tab/tab.d.ts +2 -0
- package/dist/components/tab/tab.js +4 -4
- package/dist/components/tab-group/tab-group.js +3 -3
- package/dist/components/table-body/table-body.js +2 -2
- package/dist/components/table-header-cell/table-header-cell.js +3 -3
- package/dist/components/table-header-row/table-header-row.js +11 -8
- package/dist/components/table-row/table-row.js +10 -5
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/textarea/textarea.js +6 -5
- package/dist/components/tree/tree.js +11 -6
- package/dist/components/tree-item/tree-item.js +9 -4
- package/dist/custom-elements.json +815 -184
- package/dist/design-system.d.ts +2 -0
- package/dist/design-system.js +129 -116
- package/dist/events/events.d.ts +7 -7
- package/dist/internal/a11y-warning.d.ts +2 -0
- package/dist/internal/a11y-warning.js +4 -0
- package/dist/internal/components/date-field/date-field.js +6 -1
- package/dist/internal/components/form-control/form-control-layout.js +6 -1
- package/dist/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
- package/dist/themes/dsa-wc-theme.css +19 -0
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +19 -0
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/storybook.d.ts +1 -0
- package/dist/utilities/storybook.js +3 -1
- package/dist/vscode.html-custom-data.json +140 -18
- package/dist/web-types.json +472 -69
- package/package.json +3 -1
- package/cdn/chunks/chunk.CCL2RZON.js +0 -132
- package/cdn/chunks/chunk.DIF52FDQ.js +0 -183
- package/cdn/chunks/chunk.GVVML3JJ.js +0 -272
- package/cdn/chunks/chunk.PS4PM6DJ.js +0 -164
- package/dist/chunks/chunk.2T66U3QC.js +0 -270
- package/dist/chunks/chunk.AYDVF4T3.js +0 -157
- package/dist/chunks/chunk.ESYJVRG3.js +0 -129
- package/cdn/chunks/{chunk.COR7P3QG.js → chunk.NSE76EM5.js} +3 -3
- package/cdn/chunks/{chunk.P33HFS7T.js → chunk.V2UYRTUC.js} +3 -3
- package/dist/chunks/{chunk.WOV5QN3O.js → chunk.3OHVWJYG.js} +3 -3
- package/dist/chunks/{chunk.7BFH35RV.js → chunk.63MNXWSY.js} +3 -3
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ifDefinedAndNotEmpty
|
|
3
|
-
} from "./chunk.B6GVVW66.js";
|
|
4
|
-
import {
|
|
5
|
-
e as e2
|
|
6
|
-
} from "./chunk.IKHG7XGO.js";
|
|
7
|
-
import {
|
|
8
|
-
ShoelaceElement,
|
|
9
|
-
e,
|
|
10
|
-
n,
|
|
11
|
-
r,
|
|
12
|
-
t
|
|
13
|
-
} from "./chunk.DZB6XUZ7.js";
|
|
14
|
-
import {
|
|
15
|
-
component_styles_default
|
|
16
|
-
} from "./chunk.PSQJDSB2.js";
|
|
17
|
-
import {
|
|
18
|
-
i
|
|
19
|
-
} from "./chunk.4KHZQZ3M.js";
|
|
20
|
-
import {
|
|
21
|
-
x
|
|
22
|
-
} from "./chunk.7HUC6BF3.js";
|
|
23
|
-
import {
|
|
24
|
-
__decorateClass
|
|
25
|
-
} from "./chunk.4ZGVANML.js";
|
|
26
|
-
|
|
27
|
-
// src/internal/components/button-group/button-group.styles.ts
|
|
28
|
-
var button_group_styles_default = i`
|
|
29
|
-
${component_styles_default}
|
|
30
|
-
|
|
31
|
-
:host {
|
|
32
|
-
display: inline-block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.button-group {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-wrap: wrap;
|
|
38
|
-
gap: var(--dsa-spacing-8);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.button-group--squeezed {
|
|
42
|
-
gap: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.button-group--vertical {
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
min-width: 120px;
|
|
48
|
-
max-width: 400px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.button-group--horizontal {
|
|
52
|
-
flex-direction: row;
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
|
|
56
|
-
// src/internal/components/button-group/button-group.ts
|
|
57
|
-
var DSAInternalButtonGroup = class extends ShoelaceElement {
|
|
58
|
-
constructor() {
|
|
59
|
-
super(...arguments);
|
|
60
|
-
this.disableRole = false;
|
|
61
|
-
this.label = "";
|
|
62
|
-
this.squeezed = false;
|
|
63
|
-
this.horizontal = false;
|
|
64
|
-
}
|
|
65
|
-
handleFocus(event) {
|
|
66
|
-
const button = findButton(event.target);
|
|
67
|
-
button == null ? void 0 : button.classList.add("dsa-button-group__button--focus");
|
|
68
|
-
}
|
|
69
|
-
handleBlur(event) {
|
|
70
|
-
const button = findButton(event.target);
|
|
71
|
-
button == null ? void 0 : button.classList.remove("dsa-button-group__button--focus");
|
|
72
|
-
}
|
|
73
|
-
handleMouseOver(event) {
|
|
74
|
-
const button = findButton(event.target);
|
|
75
|
-
button == null ? void 0 : button.classList.add("dsa-button-group__button--hover");
|
|
76
|
-
}
|
|
77
|
-
handleMouseOut(event) {
|
|
78
|
-
const button = findButton(event.target);
|
|
79
|
-
button == null ? void 0 : button.classList.remove("dsa-button-group__button--hover");
|
|
80
|
-
}
|
|
81
|
-
handleSlotChange() {
|
|
82
|
-
const slottedElements = [
|
|
83
|
-
...this.defaultSlot.assignedElements({ flatten: true })
|
|
84
|
-
];
|
|
85
|
-
slottedElements.forEach((el) => {
|
|
86
|
-
const index = slottedElements.indexOf(el);
|
|
87
|
-
const button = findButton(el);
|
|
88
|
-
if (button !== null) {
|
|
89
|
-
button.classList.add("dsa-button-group__button");
|
|
90
|
-
if (this.squeezed) {
|
|
91
|
-
button.classList.toggle(
|
|
92
|
-
"dsa-button-group__button--first",
|
|
93
|
-
index === 0
|
|
94
|
-
);
|
|
95
|
-
button.classList.toggle(
|
|
96
|
-
"dsa-button-group__button--inner",
|
|
97
|
-
index > 0 && index < slottedElements.length - 1
|
|
98
|
-
);
|
|
99
|
-
button.classList.toggle(
|
|
100
|
-
"dsa-button-group__button--last",
|
|
101
|
-
index === slottedElements.length - 1
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
button.classList.toggle(
|
|
105
|
-
"dsa-button-group__button--radio",
|
|
106
|
-
button.tagName.toLowerCase() === "dsa-radio-button"
|
|
107
|
-
);
|
|
108
|
-
button.classList.toggle(
|
|
109
|
-
"dsa-button-group__button--checkbox",
|
|
110
|
-
button.tagName.toLowerCase() === "dsa-checkbox-button"
|
|
111
|
-
);
|
|
112
|
-
button.classList.toggle(
|
|
113
|
-
"dsa-button-group__button--vertical",
|
|
114
|
-
!this.horizontal
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
return x`
|
|
121
|
-
<div
|
|
122
|
-
part="base"
|
|
123
|
-
class=${e2({
|
|
124
|
-
"button-group": true,
|
|
125
|
-
"button-group--squeezed": this.squeezed,
|
|
126
|
-
"button-group--vertical": !this.horizontal,
|
|
127
|
-
"button-group--horizontal": this.horizontal
|
|
128
|
-
})}
|
|
129
|
-
role="${this.disableRole ? "presentation" : "group"}"
|
|
130
|
-
aria-label=${ifDefinedAndNotEmpty(this.label)}
|
|
131
|
-
@focusout=${this.handleBlur}
|
|
132
|
-
@focusin=${this.handleFocus}
|
|
133
|
-
@mouseover=${this.handleMouseOver}
|
|
134
|
-
@mouseout=${this.handleMouseOut}
|
|
135
|
-
>
|
|
136
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
137
|
-
</div>
|
|
138
|
-
`;
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
DSAInternalButtonGroup.styles = button_group_styles_default;
|
|
142
|
-
__decorateClass([
|
|
143
|
-
e("slot")
|
|
144
|
-
], DSAInternalButtonGroup.prototype, "defaultSlot", 2);
|
|
145
|
-
__decorateClass([
|
|
146
|
-
r()
|
|
147
|
-
], DSAInternalButtonGroup.prototype, "disableRole", 2);
|
|
148
|
-
__decorateClass([
|
|
149
|
-
n()
|
|
150
|
-
], DSAInternalButtonGroup.prototype, "label", 2);
|
|
151
|
-
__decorateClass([
|
|
152
|
-
n({ type: Boolean })
|
|
153
|
-
], DSAInternalButtonGroup.prototype, "squeezed", 2);
|
|
154
|
-
__decorateClass([
|
|
155
|
-
n({ type: Boolean })
|
|
156
|
-
], DSAInternalButtonGroup.prototype, "horizontal", 2);
|
|
157
|
-
DSAInternalButtonGroup = __decorateClass([
|
|
158
|
-
t("dsa-internal-button-group")
|
|
159
|
-
], DSAInternalButtonGroup);
|
|
160
|
-
function findButton(el) {
|
|
161
|
-
var _a;
|
|
162
|
-
const selector = "dsa-button, dsa-radio-button, dsa-checkbox-button, dsa-pagination-button";
|
|
163
|
-
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
164
|
-
}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
component_styles_default
|
|
3
|
-
} from "./chunk.TUVJKY7S.js";
|
|
4
|
-
|
|
5
|
-
// src/components/header-search/header-search.styles.ts
|
|
6
|
-
import { css } from "lit";
|
|
7
|
-
var header_search_styles_default = css`
|
|
8
|
-
${component_styles_default}
|
|
9
|
-
|
|
10
|
-
:host {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: flex-end;
|
|
14
|
-
gap: var(--dsa-spacing-8);
|
|
15
|
-
flex: 1;
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.mobile {
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
.desktop {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* Input */
|
|
27
|
-
.input {
|
|
28
|
-
position: relative;
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
flex-direction: row;
|
|
31
|
-
align-items: center;
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
width: 100%;
|
|
34
|
-
min-width: 0;
|
|
35
|
-
font: var(--dsa-wc-input-text-field-font);
|
|
36
|
-
border-bottom: 1px solid var(--dsa-wc-header-search-input-color);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.input--focused {
|
|
40
|
-
outline: var(--dsa-wc-focus-ring);
|
|
41
|
-
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.input__control {
|
|
45
|
-
display: inline-flex;
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
flex: 1 1 auto;
|
|
48
|
-
font-family: inherit;
|
|
49
|
-
font-weight: inherit;
|
|
50
|
-
min-width: 0;
|
|
51
|
-
height: 100%;
|
|
52
|
-
border: none;
|
|
53
|
-
background: none;
|
|
54
|
-
box-shadow: none;
|
|
55
|
-
margin: 0;
|
|
56
|
-
cursor: inherit;
|
|
57
|
-
-webkit-appearance: none;
|
|
58
|
-
color: var(--dsa-wc-header-search-input-color);
|
|
59
|
-
|
|
60
|
-
font-size: 14px;
|
|
61
|
-
padding: 8px 0 8px 8px;
|
|
62
|
-
height: 34px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.input__control::placeholder {
|
|
66
|
-
color: var(--dsa-wc-input-on-layer-text-field-placeholder-color);
|
|
67
|
-
opacity: 1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.input__control::-webkit-search-decoration,
|
|
71
|
-
.input__control::-webkit-search-cancel-button,
|
|
72
|
-
.input__control::-webkit-search-results-button,
|
|
73
|
-
.input__control::-webkit-search-results-decoration {
|
|
74
|
-
-webkit-appearance: none;
|
|
75
|
-
}
|
|
76
|
-
.input__control:focus {
|
|
77
|
-
outline: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Buttons */
|
|
81
|
-
.button {
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
border-style: solid;
|
|
86
|
-
border-width: var(--dsa-wc-button-border-width);
|
|
87
|
-
border-radius: var(--dsa-wc-button-border-radius);
|
|
88
|
-
text-decoration: none;
|
|
89
|
-
user-select: none;
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
vertical-align: middle;
|
|
92
|
-
padding: 0 var(--dsa-wc-button-padding-horizontal);
|
|
93
|
-
transition: var(--dsa-wc-transition-x-fast) background-color,
|
|
94
|
-
var(--dsa-wc-transition-x-fast) color,
|
|
95
|
-
var(--dsa-wc-transition-x-fast) border,
|
|
96
|
-
var(--dsa-wc-transition-x-fast) box-shadow;
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
}
|
|
99
|
-
.button::-moz-focus-inner {
|
|
100
|
-
border: 0;
|
|
101
|
-
}
|
|
102
|
-
.button:focus {
|
|
103
|
-
outline: none;
|
|
104
|
-
}
|
|
105
|
-
.button:focus-visible {
|
|
106
|
-
outline: var(--dsa-wc-focus-ring);
|
|
107
|
-
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.button--tertiary {
|
|
111
|
-
padding: 0;
|
|
112
|
-
}
|
|
113
|
-
.button--tertiary {
|
|
114
|
-
background-color: var(--dsa-wc-button-tertiary-on-base-color);
|
|
115
|
-
border: none;
|
|
116
|
-
color: var(--dsa-wc-button-tertiary-on-base-font-color);
|
|
117
|
-
}
|
|
118
|
-
.button--tertiary:hover {
|
|
119
|
-
background-color: var(--dsa-wc-button-tertiary-on-base-hover-color);
|
|
120
|
-
color: var(--dsa-wc-button-tertiary-on-base-hover-font-color);
|
|
121
|
-
}
|
|
122
|
-
.button--tertiary:active {
|
|
123
|
-
background-color: var(--dsa-wc-button-tertiary-on-base-active-color);
|
|
124
|
-
color: var(--dsa-wc-button-tertiary-on-base-active-font-color);
|
|
125
|
-
}
|
|
126
|
-
.button--navigation {
|
|
127
|
-
padding: 0;
|
|
128
|
-
}
|
|
129
|
-
.button--navigation {
|
|
130
|
-
background-color: var(--dsa-wc-button-navigation-on-base-color);
|
|
131
|
-
border-color: transparent;
|
|
132
|
-
color: var(--dsa-wc-button-navigation-on-base-font-color);
|
|
133
|
-
}
|
|
134
|
-
.button--navigation:hover {
|
|
135
|
-
background-color: var(--dsa-wc-button-navigation-on-base-hover-color);
|
|
136
|
-
border-color: transparent;
|
|
137
|
-
color: var(--dsa-wc-button-navigation-on-base-hover-font-color);
|
|
138
|
-
}
|
|
139
|
-
.button--navigation:active {
|
|
140
|
-
background-color: var(--dsa-wc-button-navigation-on-base-active-color);
|
|
141
|
-
border-color: transparent;
|
|
142
|
-
color: var(--dsa-wc-button-navigation-on-base-active-font-color);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.icon-button {
|
|
146
|
-
flex: 0 0 auto;
|
|
147
|
-
display: flex;
|
|
148
|
-
align-items: center;
|
|
149
|
-
border: none;
|
|
150
|
-
border-radius: var(--dsa-wc-icon-button-border-radius);
|
|
151
|
-
font-size: inherit;
|
|
152
|
-
padding: var(
|
|
153
|
-
--dsa-wc-internal-icon-button-padding,
|
|
154
|
-
var(--dsa-wc-icon-button-padding)
|
|
155
|
-
);
|
|
156
|
-
cursor: pointer;
|
|
157
|
-
transition: var(--dsa-wc-transition-x-fast) color;
|
|
158
|
-
-webkit-appearance: none;
|
|
159
|
-
}
|
|
160
|
-
.icon-button:focus {
|
|
161
|
-
outline: none;
|
|
162
|
-
}
|
|
163
|
-
.icon-button:focus-visible {
|
|
164
|
-
outline: var(--dsa-wc-focus-ring);
|
|
165
|
-
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
166
|
-
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.icon-button--primary {
|
|
170
|
-
background-color: var(--dsa-wc-button-primary-on-base-color);
|
|
171
|
-
border-color: var(--dsa-wc-button-primary-on-base-color);
|
|
172
|
-
color: var(--dsa-wc-button-primary-on-base-font-color);
|
|
173
|
-
}
|
|
174
|
-
.icon-button--primary:hover:not(.icon-button--disabled) {
|
|
175
|
-
background-color: var(--dsa-wc-button-primary-on-base-hover-color);
|
|
176
|
-
border-color: var(--dsa-wc-button-primary-on-base-hover-color);
|
|
177
|
-
color: var(--dsa-wc-button-primary-on-base-hover-font-color);
|
|
178
|
-
}
|
|
179
|
-
.icon-button--primary:active:not(.icon-button--disabled) {
|
|
180
|
-
background-color: var(--dsa-wc-button-primary-on-base-active-color);
|
|
181
|
-
border-color: var(--dsa-wc-button-primary-on-base-active-color);
|
|
182
|
-
color: var(--dsa-wc-button-primary-on-base-active-font-color);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
#expand-button {
|
|
186
|
-
font: var(--dsa-wc-button-font);
|
|
187
|
-
height: var(--dsa-wc-form-input-height);
|
|
188
|
-
line-height: calc(
|
|
189
|
-
var(--dsa-wc-form-input-height) - var(--dsa-wc-button-border-width) * 2
|
|
190
|
-
);
|
|
191
|
-
padding: var(
|
|
192
|
-
--dsa-wc-internal-icon-button-padding,
|
|
193
|
-
var(--dsa-wc-icon-button-padding)
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
#expand-button dsa-icon {
|
|
197
|
-
width: 20px;
|
|
198
|
-
height: 20px;
|
|
199
|
-
pointer-events: none;
|
|
200
|
-
}
|
|
201
|
-
.expand-button__label {
|
|
202
|
-
display: none;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
#submit-button dsa-icon {
|
|
206
|
-
width: 20px;
|
|
207
|
-
height: 20px;
|
|
208
|
-
pointer-events: none;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
#cancel-button {
|
|
212
|
-
font: var(--dsa-wc-button-font-small);
|
|
213
|
-
height: var(--dsa-wc-form-input-height-small);
|
|
214
|
-
line-height: calc(
|
|
215
|
-
var(--dsa-wc-form-input-height-small) - var(--dsa-wc-button-border-width) *
|
|
216
|
-
2
|
|
217
|
-
);
|
|
218
|
-
border-radius: var(--dsa-wc-button-border-radius);
|
|
219
|
-
margin-inline-start: var(--dsa-spacing-8);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
@media screen and (min-width: 720px) {
|
|
223
|
-
:host {
|
|
224
|
-
gap: var(--dsa-spacing-16);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.mobile {
|
|
228
|
-
display: none;
|
|
229
|
-
}
|
|
230
|
-
.desktop {
|
|
231
|
-
display: block;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.input__control {
|
|
235
|
-
font: var(--dsa-wc-header-search-input-font);
|
|
236
|
-
height: 40px;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
#expand-button {
|
|
240
|
-
padding: unset;
|
|
241
|
-
}
|
|
242
|
-
#expand-button dsa-icon {
|
|
243
|
-
width: 1em;
|
|
244
|
-
height: 1em;
|
|
245
|
-
margin-inline-end: var(--dsa-wc-button-icon-spacing);
|
|
246
|
-
}
|
|
247
|
-
.expand-button__label {
|
|
248
|
-
display: unset;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
#submit-button dsa-icon {
|
|
252
|
-
width: 24px;
|
|
253
|
-
height: 24px;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
#cancel-button {
|
|
257
|
-
font: var(--dsa-wc-button-font);
|
|
258
|
-
height: var(--dsa-wc-form-input-height);
|
|
259
|
-
line-height: calc(
|
|
260
|
-
var(--dsa-wc-form-input-height) - var(--dsa-wc-button-border-width) * 2
|
|
261
|
-
);
|
|
262
|
-
border-radius: var(--dsa-wc-button-border-radius);
|
|
263
|
-
margin-inline-start: 0;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
`;
|
|
267
|
-
|
|
268
|
-
export {
|
|
269
|
-
header_search_styles_default
|
|
270
|
-
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ifDefinedAndNotEmpty
|
|
3
|
-
} from "./chunk.ZQJVCRB2.js";
|
|
4
|
-
import {
|
|
5
|
-
ShoelaceElement
|
|
6
|
-
} from "./chunk.XZ5FE34T.js";
|
|
7
|
-
import {
|
|
8
|
-
component_styles_default
|
|
9
|
-
} from "./chunk.TUVJKY7S.js";
|
|
10
|
-
import {
|
|
11
|
-
__decorateClass
|
|
12
|
-
} from "./chunk.S3NI7NKU.js";
|
|
13
|
-
|
|
14
|
-
// src/internal/components/button-group/button-group.ts
|
|
15
|
-
import { html } from "lit";
|
|
16
|
-
import { customElement, property, query, state } from "lit/decorators.js";
|
|
17
|
-
import { classMap } from "lit/directives/class-map.js";
|
|
18
|
-
|
|
19
|
-
// src/internal/components/button-group/button-group.styles.ts
|
|
20
|
-
import { css } from "lit";
|
|
21
|
-
var button_group_styles_default = css`
|
|
22
|
-
${component_styles_default}
|
|
23
|
-
|
|
24
|
-
:host {
|
|
25
|
-
display: inline-block;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.button-group {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-wrap: wrap;
|
|
31
|
-
gap: var(--dsa-spacing-8);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.button-group--squeezed {
|
|
35
|
-
gap: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.button-group--vertical {
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
min-width: 120px;
|
|
41
|
-
max-width: 400px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.button-group--horizontal {
|
|
45
|
-
flex-direction: row;
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
// src/internal/components/button-group/button-group.ts
|
|
50
|
-
var DSAInternalButtonGroup = class extends ShoelaceElement {
|
|
51
|
-
constructor() {
|
|
52
|
-
super(...arguments);
|
|
53
|
-
this.disableRole = false;
|
|
54
|
-
this.label = "";
|
|
55
|
-
this.squeezed = false;
|
|
56
|
-
this.horizontal = false;
|
|
57
|
-
}
|
|
58
|
-
handleFocus(event) {
|
|
59
|
-
const button = findButton(event.target);
|
|
60
|
-
button == null ? void 0 : button.classList.add("dsa-button-group__button--focus");
|
|
61
|
-
}
|
|
62
|
-
handleBlur(event) {
|
|
63
|
-
const button = findButton(event.target);
|
|
64
|
-
button == null ? void 0 : button.classList.remove("dsa-button-group__button--focus");
|
|
65
|
-
}
|
|
66
|
-
handleMouseOver(event) {
|
|
67
|
-
const button = findButton(event.target);
|
|
68
|
-
button == null ? void 0 : button.classList.add("dsa-button-group__button--hover");
|
|
69
|
-
}
|
|
70
|
-
handleMouseOut(event) {
|
|
71
|
-
const button = findButton(event.target);
|
|
72
|
-
button == null ? void 0 : button.classList.remove("dsa-button-group__button--hover");
|
|
73
|
-
}
|
|
74
|
-
handleSlotChange() {
|
|
75
|
-
const slottedElements = [
|
|
76
|
-
...this.defaultSlot.assignedElements({ flatten: true })
|
|
77
|
-
];
|
|
78
|
-
slottedElements.forEach((el) => {
|
|
79
|
-
const index = slottedElements.indexOf(el);
|
|
80
|
-
const button = findButton(el);
|
|
81
|
-
if (button !== null) {
|
|
82
|
-
button.classList.add("dsa-button-group__button");
|
|
83
|
-
if (this.squeezed) {
|
|
84
|
-
button.classList.toggle(
|
|
85
|
-
"dsa-button-group__button--first",
|
|
86
|
-
index === 0
|
|
87
|
-
);
|
|
88
|
-
button.classList.toggle(
|
|
89
|
-
"dsa-button-group__button--inner",
|
|
90
|
-
index > 0 && index < slottedElements.length - 1
|
|
91
|
-
);
|
|
92
|
-
button.classList.toggle(
|
|
93
|
-
"dsa-button-group__button--last",
|
|
94
|
-
index === slottedElements.length - 1
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
button.classList.toggle(
|
|
98
|
-
"dsa-button-group__button--radio",
|
|
99
|
-
button.tagName.toLowerCase() === "dsa-radio-button"
|
|
100
|
-
);
|
|
101
|
-
button.classList.toggle(
|
|
102
|
-
"dsa-button-group__button--checkbox",
|
|
103
|
-
button.tagName.toLowerCase() === "dsa-checkbox-button"
|
|
104
|
-
);
|
|
105
|
-
button.classList.toggle(
|
|
106
|
-
"dsa-button-group__button--vertical",
|
|
107
|
-
!this.horizontal
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
return html`
|
|
114
|
-
<div
|
|
115
|
-
part="base"
|
|
116
|
-
class=${classMap({
|
|
117
|
-
"button-group": true,
|
|
118
|
-
"button-group--squeezed": this.squeezed,
|
|
119
|
-
"button-group--vertical": !this.horizontal,
|
|
120
|
-
"button-group--horizontal": this.horizontal
|
|
121
|
-
})}
|
|
122
|
-
role="${this.disableRole ? "presentation" : "group"}"
|
|
123
|
-
aria-label=${ifDefinedAndNotEmpty(this.label)}
|
|
124
|
-
@focusout=${this.handleBlur}
|
|
125
|
-
@focusin=${this.handleFocus}
|
|
126
|
-
@mouseover=${this.handleMouseOver}
|
|
127
|
-
@mouseout=${this.handleMouseOut}
|
|
128
|
-
>
|
|
129
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
130
|
-
</div>
|
|
131
|
-
`;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
DSAInternalButtonGroup.styles = button_group_styles_default;
|
|
135
|
-
__decorateClass([
|
|
136
|
-
query("slot")
|
|
137
|
-
], DSAInternalButtonGroup.prototype, "defaultSlot", 2);
|
|
138
|
-
__decorateClass([
|
|
139
|
-
state()
|
|
140
|
-
], DSAInternalButtonGroup.prototype, "disableRole", 2);
|
|
141
|
-
__decorateClass([
|
|
142
|
-
property()
|
|
143
|
-
], DSAInternalButtonGroup.prototype, "label", 2);
|
|
144
|
-
__decorateClass([
|
|
145
|
-
property({ type: Boolean })
|
|
146
|
-
], DSAInternalButtonGroup.prototype, "squeezed", 2);
|
|
147
|
-
__decorateClass([
|
|
148
|
-
property({ type: Boolean })
|
|
149
|
-
], DSAInternalButtonGroup.prototype, "horizontal", 2);
|
|
150
|
-
DSAInternalButtonGroup = __decorateClass([
|
|
151
|
-
customElement("dsa-internal-button-group")
|
|
152
|
-
], DSAInternalButtonGroup);
|
|
153
|
-
function findButton(el) {
|
|
154
|
-
var _a;
|
|
155
|
-
const selector = "dsa-button, dsa-radio-button, dsa-checkbox-button, dsa-pagination-button";
|
|
156
|
-
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
157
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
// src/components/input-phone/input-phone.utils.ts
|
|
2
|
-
import { html } from "lit";
|
|
3
|
-
var frenchNumberPrefix = [
|
|
4
|
-
"+33",
|
|
5
|
-
"+262",
|
|
6
|
-
"+508",
|
|
7
|
-
"+590",
|
|
8
|
-
"+594",
|
|
9
|
-
"+596",
|
|
10
|
-
"+681",
|
|
11
|
-
"+687",
|
|
12
|
-
"+689"
|
|
13
|
-
];
|
|
14
|
-
var phonePrefixOptions = [
|
|
15
|
-
{ value: "+33", label: "fr_FR" },
|
|
16
|
-
{ value: "+590", label: "fr_GP" },
|
|
17
|
-
{ value: "+594", label: "fr_GF" },
|
|
18
|
-
{ value: "+596", label: "fr_MQ" },
|
|
19
|
-
{ value: "+687", label: "fr_NC" },
|
|
20
|
-
{ value: "+689", label: "fr_PF" },
|
|
21
|
-
{ value: "+508", label: "fr_PM" },
|
|
22
|
-
{ value: "+262", label: "fr_RE" },
|
|
23
|
-
{ value: "+681", label: "fr_WF" }
|
|
24
|
-
];
|
|
25
|
-
var frenchFlagSelect = html`<svg
|
|
26
|
-
slot="prefix"
|
|
27
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
-
width="28"
|
|
29
|
-
height="20"
|
|
30
|
-
fill="none"
|
|
31
|
-
aria-hidden="true"
|
|
32
|
-
>
|
|
33
|
-
<rect
|
|
34
|
-
width="27.5"
|
|
35
|
-
height="19.5"
|
|
36
|
-
x=".25"
|
|
37
|
-
y=".25"
|
|
38
|
-
fill="#fff"
|
|
39
|
-
stroke="#F5F5F5"
|
|
40
|
-
stroke-width=".5"
|
|
41
|
-
rx="1.75"
|
|
42
|
-
/>
|
|
43
|
-
<mask
|
|
44
|
-
id="mask0_16382_21057"
|
|
45
|
-
width="28"
|
|
46
|
-
height="20"
|
|
47
|
-
x="0"
|
|
48
|
-
y="0"
|
|
49
|
-
maskUnits="userSpaceOnUse"
|
|
50
|
-
style="mask-type:luminance"
|
|
51
|
-
>
|
|
52
|
-
<rect
|
|
53
|
-
width="27.5"
|
|
54
|
-
height="19.5"
|
|
55
|
-
x=".25"
|
|
56
|
-
y=".25"
|
|
57
|
-
fill="#fff"
|
|
58
|
-
stroke="#fff"
|
|
59
|
-
stroke-width=".5"
|
|
60
|
-
rx="1.75"
|
|
61
|
-
/>
|
|
62
|
-
</mask>
|
|
63
|
-
<g mask="url(#mask0_16382_21057)">
|
|
64
|
-
<path fill="#F44653" d="M18.666 0h9.333v20h-9.333z" />
|
|
65
|
-
<path
|
|
66
|
-
fill="#1035BB"
|
|
67
|
-
fill-rule="evenodd"
|
|
68
|
-
d="M0 20h9.333V0H0v20Z"
|
|
69
|
-
clip-rule="evenodd"
|
|
70
|
-
/>
|
|
71
|
-
</g>
|
|
72
|
-
</svg>`;
|
|
73
|
-
var frenchFlagOption = (id) => html`<svg
|
|
74
|
-
slot="prefix"
|
|
75
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
76
|
-
width="14"
|
|
77
|
-
height="15"
|
|
78
|
-
fill="none"
|
|
79
|
-
aria-hidden="true"
|
|
80
|
-
>
|
|
81
|
-
<g clip-path=${`url(#clip${id})`}>
|
|
82
|
-
<rect
|
|
83
|
-
width="13.5"
|
|
84
|
-
height="13.5"
|
|
85
|
-
x=".25"
|
|
86
|
-
y=".75"
|
|
87
|
-
fill="#fff"
|
|
88
|
-
stroke="#F5F5F5"
|
|
89
|
-
stroke-width=".5"
|
|
90
|
-
rx="1.75"
|
|
91
|
-
/>
|
|
92
|
-
<mask
|
|
93
|
-
id=${`mask${id}`}
|
|
94
|
-
width="14"
|
|
95
|
-
height="15"
|
|
96
|
-
x="0"
|
|
97
|
-
y="0"
|
|
98
|
-
maskUnits="userSpaceOnUse"
|
|
99
|
-
style="mask-type:luminance"
|
|
100
|
-
>
|
|
101
|
-
<rect
|
|
102
|
-
width="13.5"
|
|
103
|
-
height="13.5"
|
|
104
|
-
x=".25"
|
|
105
|
-
y=".75"
|
|
106
|
-
fill="#fff"
|
|
107
|
-
stroke="#fff"
|
|
108
|
-
stroke-width=".5"
|
|
109
|
-
rx="1.75"
|
|
110
|
-
/>
|
|
111
|
-
</mask>
|
|
112
|
-
<g mask=${`url(#mask${id})`}>
|
|
113
|
-
<path fill="#F44653" d="M9.334.5h4.667v14H9.334z" />
|
|
114
|
-
<path
|
|
115
|
-
fill="#1035BB"
|
|
116
|
-
fill-rule="evenodd"
|
|
117
|
-
d="M0 14.5h4.667V.5H0v14Z"
|
|
118
|
-
clip-rule="evenodd"
|
|
119
|
-
/>
|
|
120
|
-
</g>
|
|
121
|
-
</g>
|
|
122
|
-
</svg>`;
|
|
123
|
-
|
|
124
|
-
export {
|
|
125
|
-
frenchNumberPrefix,
|
|
126
|
-
phonePrefixOptions,
|
|
127
|
-
frenchFlagSelect,
|
|
128
|
-
frenchFlagOption
|
|
129
|
-
};
|