@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,29 +1,8 @@
|
|
|
1
1
|
// src/components/download-link/download-link.styles.ts
|
|
2
2
|
import { css } from "lit";
|
|
3
3
|
var download_link_styles_default = css`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
--icon-size: var(--dsa-spacing-24);
|
|
7
|
-
}
|
|
8
|
-
.document-link--x-large {
|
|
9
|
-
font: var(--dsa-wc-link-font-x-large);
|
|
10
|
-
--icon-size: var(--dsa-spacing-32);
|
|
11
|
-
}
|
|
12
|
-
.document-link--large {
|
|
13
|
-
font: var(--dsa-wc-link-font-large);
|
|
14
|
-
--icon-size: 28px;
|
|
15
|
-
}
|
|
16
|
-
.document-link--small {
|
|
17
|
-
font: var(--dsa-wc-link-font-small);
|
|
18
|
-
--icon-size: 20px;
|
|
19
|
-
}
|
|
20
|
-
.document-link--x-small {
|
|
21
|
-
font: var(--dsa-wc-link-font-x-small);
|
|
22
|
-
--icon-size: var(--dsa-spacing-16);
|
|
23
|
-
}
|
|
24
|
-
.document-link--2x-small {
|
|
25
|
-
font: var(--dsa-wc-link-font-2x-small);
|
|
26
|
-
--icon-size: 14px;
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-block;
|
|
27
6
|
}
|
|
28
7
|
|
|
29
8
|
.link {
|
|
@@ -93,6 +72,38 @@ var download_link_styles_default = css`
|
|
|
93
72
|
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
94
73
|
}
|
|
95
74
|
|
|
75
|
+
.document-link {
|
|
76
|
+
font: var(--dsa-wc-link-font);
|
|
77
|
+
--icon-size: var(--dsa-spacing-24);
|
|
78
|
+
}
|
|
79
|
+
.document-link--x-large {
|
|
80
|
+
font: var(--dsa-wc-link-font-x-large);
|
|
81
|
+
--icon-size: var(--dsa-spacing-32);
|
|
82
|
+
}
|
|
83
|
+
.document-link--large {
|
|
84
|
+
font: var(--dsa-wc-link-font-large);
|
|
85
|
+
--icon-size: 28px;
|
|
86
|
+
}
|
|
87
|
+
.document-link--small {
|
|
88
|
+
font: var(--dsa-wc-link-font-small);
|
|
89
|
+
--icon-size: 20px;
|
|
90
|
+
}
|
|
91
|
+
.document-link--x-small {
|
|
92
|
+
font: var(--dsa-wc-link-font-x-small);
|
|
93
|
+
--icon-size: var(--dsa-spacing-16);
|
|
94
|
+
}
|
|
95
|
+
.document-link--2x-small {
|
|
96
|
+
font: var(--dsa-wc-link-font-2x-small);
|
|
97
|
+
--icon-size: 14px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
dsa-icon {
|
|
101
|
+
width: var(--icon-size);
|
|
102
|
+
height: var(--icon-size);
|
|
103
|
+
margin-inline-start: var(--dsa-spacing-8);
|
|
104
|
+
vertical-align: bottom;
|
|
105
|
+
}
|
|
106
|
+
|
|
96
107
|
.document-info {
|
|
97
108
|
color: var(--dsa-wc-link-document-info-on-base-color);
|
|
98
109
|
margin-top: var(--dsa-spacing-8);
|
|
@@ -108,13 +119,6 @@ var download_link_styles_default = css`
|
|
|
108
119
|
.document-info--floating-menu {
|
|
109
120
|
color: var(--dsa-wc-link-document-info-floating-menu-color);
|
|
110
121
|
}
|
|
111
|
-
|
|
112
|
-
dsa-icon {
|
|
113
|
-
width: var(--icon-size);
|
|
114
|
-
height: var(--icon-size);
|
|
115
|
-
margin-inline-start: var(--dsa-spacing-8);
|
|
116
|
-
vertical-align: bottom;
|
|
117
|
-
}
|
|
118
122
|
`;
|
|
119
123
|
|
|
120
124
|
export {
|
|
@@ -67,12 +67,14 @@ var dialog_styles_default = css`
|
|
|
67
67
|
display: flex;
|
|
68
68
|
background-color: var(--dsa-wc-dialog-panel-color);
|
|
69
69
|
z-index: 10;
|
|
70
|
+
justify-content: end;
|
|
71
|
+
align-items: center;
|
|
72
|
+
padding: var(--header-spacing);
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
.dialog__title {
|
|
73
76
|
flex: 1 1 auto;
|
|
74
77
|
font: var(--dsa-wc-dialog-header-title-font);
|
|
75
|
-
padding: var(--header-spacing);
|
|
76
78
|
margin: 0;
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -83,7 +85,6 @@ var dialog_styles_default = css`
|
|
|
83
85
|
justify-content: end;
|
|
84
86
|
font: var(--dsa-wc-dialog-header-title-font);
|
|
85
87
|
gap: var(--dsa-wc-dialog-header-actions-gap);
|
|
86
|
-
padding: 0 var(--header-spacing);
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
.dialog__header-actions dsa-icon-button,
|
|
@@ -20,7 +20,7 @@ var errorArgTypes = {
|
|
|
20
20
|
};
|
|
21
21
|
var errorMessageArgTypes = {
|
|
22
22
|
name: "error-message",
|
|
23
|
-
description: '
|
|
23
|
+
description: 'The error message or messages that are shown when \u201Cerror\u201D is set to \u201Ctrue\u201D. To display several messages, they must be separated by a pipe character, e.g. "Error 1|Error 2|Error 3\u201D',
|
|
24
24
|
table: {
|
|
25
25
|
defaultValue: { summary: "''" },
|
|
26
26
|
type: {
|
|
@@ -126,6 +126,9 @@ var filtersDrawerDecorator = (story) => {
|
|
|
126
126
|
</dsa-drawer>
|
|
127
127
|
`;
|
|
128
128
|
};
|
|
129
|
+
var fullScreenDecorator = (story) => {
|
|
130
|
+
return html` <div style="height: 100vh">${story()}</div>`;
|
|
131
|
+
};
|
|
129
132
|
|
|
130
133
|
export {
|
|
131
134
|
updateCompleteArgTypes,
|
|
@@ -136,5 +139,6 @@ export {
|
|
|
136
139
|
withOnLayerOnBaseDecorator,
|
|
137
140
|
withOnFloatingMenuOnBaseDecorator,
|
|
138
141
|
withBackgroundDecorator,
|
|
139
|
-
filtersDrawerDecorator
|
|
142
|
+
filtersDrawerDecorator,
|
|
143
|
+
fullScreenDecorator
|
|
140
144
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
download_link_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.MBRRLF6D.js";
|
|
4
4
|
import {
|
|
5
5
|
ShoelaceElement
|
|
6
6
|
} from "./chunk.XZ5FE34T.js";
|
|
@@ -26,32 +26,26 @@ var DSADownloadLink = class extends ShoelaceElement {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
return html`
|
|
29
|
-
<
|
|
30
|
-
part="
|
|
29
|
+
<a
|
|
30
|
+
part="link"
|
|
31
31
|
class=${classMap({
|
|
32
|
+
link: true,
|
|
33
|
+
"link--on-layer": this.variant === "layer",
|
|
34
|
+
"link--on-contrasted": this.variant === "contrasted",
|
|
35
|
+
"link--floating-menu": this.variant === "floating",
|
|
32
36
|
"document-link--x-large": this.size === "xlarge",
|
|
33
37
|
"document-link--large": this.size === "large",
|
|
34
38
|
"document-link--small": this.size === "small",
|
|
35
39
|
"document-link--x-small": this.size === "xsmall",
|
|
36
40
|
"document-link--2x-small": this.size === "2xsmall"
|
|
37
41
|
})}
|
|
42
|
+
download=${this.filename}
|
|
43
|
+
href=${this.href}
|
|
44
|
+
@focus=${this.handleFocus}
|
|
45
|
+
@blur=${this.handleBlur}
|
|
38
46
|
>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
class=${classMap({
|
|
42
|
-
link: true,
|
|
43
|
-
"link--on-layer": this.variant === "layer",
|
|
44
|
-
"link--on-contrasted": this.variant === "contrasted",
|
|
45
|
-
"link--floating-menu": this.variant === "floating"
|
|
46
|
-
})}
|
|
47
|
-
download=${this.filename}
|
|
48
|
-
href=${this.href}
|
|
49
|
-
@focus=${this.handleFocus}
|
|
50
|
-
@blur=${this.handleBlur}
|
|
51
|
-
>
|
|
52
|
-
<slot></slot>
|
|
53
|
-
<dsa-icon name="download" library="system"></dsa-icon>
|
|
54
|
-
</a>
|
|
47
|
+
<slot></slot>
|
|
48
|
+
<dsa-icon name="download" library="system"></dsa-icon>
|
|
55
49
|
<p
|
|
56
50
|
id="document-info"
|
|
57
51
|
class=${classMap({
|
|
@@ -63,7 +57,7 @@ var DSADownloadLink = class extends ShoelaceElement {
|
|
|
63
57
|
>
|
|
64
58
|
${this.format}${this.format && this.documentSize ? " - " : ""}${this.documentSize}
|
|
65
59
|
</p>
|
|
66
|
-
</
|
|
60
|
+
</a>
|
|
67
61
|
`;
|
|
68
62
|
}
|
|
69
63
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/components/input-phone/input-phone.utils.ts
|
|
2
|
+
var frenchNumberPrefix = [
|
|
3
|
+
"+33",
|
|
4
|
+
"+262",
|
|
5
|
+
"+508",
|
|
6
|
+
"+590",
|
|
7
|
+
"+594",
|
|
8
|
+
"+596",
|
|
9
|
+
"+681",
|
|
10
|
+
"+687",
|
|
11
|
+
"+689"
|
|
12
|
+
];
|
|
13
|
+
var phonePrefixOptions = [
|
|
14
|
+
{ value: "+33", label: "fr_FR" },
|
|
15
|
+
{ value: "+590", label: "fr_GP" },
|
|
16
|
+
{ value: "+594", label: "fr_GF" },
|
|
17
|
+
{ value: "+596", label: "fr_MQ" },
|
|
18
|
+
{ value: "+687", label: "fr_NC" },
|
|
19
|
+
{ value: "+689", label: "fr_PF" },
|
|
20
|
+
{ value: "+508", label: "fr_PM" },
|
|
21
|
+
{ value: "+262", label: "fr_RE" },
|
|
22
|
+
{ value: "+681", label: "fr_WF" }
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
frenchNumberPrefix,
|
|
27
|
+
phonePrefixOptions
|
|
28
|
+
};
|
|
@@ -64,8 +64,7 @@ var DSATableRow = class extends ShoelaceElement {
|
|
|
64
64
|
class="checkbox"
|
|
65
65
|
size="small"
|
|
66
66
|
name=${this.selectionName}
|
|
67
|
-
|
|
68
|
-
aria-label=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
|
|
67
|
+
accessible-name=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
|
|
69
68
|
value=${this.selectionValue}
|
|
70
69
|
?checked=${this.selected}
|
|
71
70
|
@click=${(e) => e.stopPropagation()}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input_otp_styles_default
|
|
3
|
+
} from "./chunk.5P2EEOC5.js";
|
|
4
|
+
import {
|
|
5
|
+
FormControlLayout
|
|
6
|
+
} from "./chunk.I5HR7JYK.js";
|
|
7
|
+
import {
|
|
8
|
+
defaultValue
|
|
9
|
+
} from "./chunk.CMJ2SRTL.js";
|
|
10
|
+
import {
|
|
11
|
+
FormControlController
|
|
12
|
+
} from "./chunk.JA7YFGLI.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.NOMN6DGD.js";
|
|
16
|
+
import {
|
|
17
|
+
ifDefinedAndNotEmpty
|
|
18
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
19
|
+
import {
|
|
20
|
+
__decorateClass
|
|
21
|
+
} from "./chunk.S3NI7NKU.js";
|
|
22
|
+
|
|
23
|
+
// src/components/input-otp/input-otp.ts
|
|
24
|
+
import { html } from "lit";
|
|
25
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
26
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
27
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
28
|
+
import { live } from "lit/directives/live.js";
|
|
29
|
+
var DSAInputOTP = class extends FormControlLayout {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.formControlController = new FormControlController(this, {
|
|
33
|
+
assumeInteractionOn: ["dsa-blur", "dsa-input"]
|
|
34
|
+
});
|
|
35
|
+
this.hasFocus = false;
|
|
36
|
+
this.currentIndex = 0;
|
|
37
|
+
this.value = "";
|
|
38
|
+
this.defaultValue = "";
|
|
39
|
+
this.length = 6;
|
|
40
|
+
}
|
|
41
|
+
/** Gets the validity state object */
|
|
42
|
+
get validity() {
|
|
43
|
+
return this.input.validity;
|
|
44
|
+
}
|
|
45
|
+
/** Gets the validation message */
|
|
46
|
+
get validationMessage() {
|
|
47
|
+
return this.input.validationMessage;
|
|
48
|
+
}
|
|
49
|
+
async firstUpdated() {
|
|
50
|
+
await this.updateComplete;
|
|
51
|
+
this.formControlController.updateValidity();
|
|
52
|
+
}
|
|
53
|
+
handleBlur() {
|
|
54
|
+
this.hasFocus = false;
|
|
55
|
+
this.emit("dsa-blur");
|
|
56
|
+
}
|
|
57
|
+
handleChange() {
|
|
58
|
+
this.value = this.input.value;
|
|
59
|
+
this.emit("dsa-change");
|
|
60
|
+
}
|
|
61
|
+
handleFocus() {
|
|
62
|
+
this.currentIndex = this.value ? -1 : 0;
|
|
63
|
+
this.hasFocus = true;
|
|
64
|
+
this.emit("dsa-focus");
|
|
65
|
+
}
|
|
66
|
+
handleInput(event) {
|
|
67
|
+
var _a;
|
|
68
|
+
if (this.patternRegexp && !this.patternRegexp.test(this.input.value)) {
|
|
69
|
+
this.input.value = this.value;
|
|
70
|
+
this.handleCurrentIndexChange();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (this.input.value.length > this.length) {
|
|
74
|
+
this.input.value = this.input.value.slice(0, this.length);
|
|
75
|
+
} else {
|
|
76
|
+
this.value = this.input.value;
|
|
77
|
+
if (!event.data) {
|
|
78
|
+
if (this.currentIndex === 0) {
|
|
79
|
+
this.handleCurrentIndexChange();
|
|
80
|
+
} else if (this.currentIndex === -1) {
|
|
81
|
+
this.currentIndex = 0;
|
|
82
|
+
} else {
|
|
83
|
+
this.currentIndex -= 1;
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
if (((_a = event.data) == null ? void 0 : _a.length) === 1) {
|
|
87
|
+
this.currentIndex = this.currentIndex < this.length ? this.currentIndex + 1 : this.length - 1;
|
|
88
|
+
} else {
|
|
89
|
+
this.currentIndex = this.getLastIndex();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
this.formControlController.updateValidity();
|
|
93
|
+
this.emit("dsa-input");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleSelect() {
|
|
97
|
+
if (this.input.value.length > 1 && this.input.selectionStart === 0 && this.input.selectionEnd === this.input.value.length) {
|
|
98
|
+
this.currentIndex = -1;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
handleInvalid(event) {
|
|
102
|
+
this.formControlController.setValidity(false);
|
|
103
|
+
this.formControlController.emitInvalidEvent(event);
|
|
104
|
+
}
|
|
105
|
+
handleKeyDown(event) {
|
|
106
|
+
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
107
|
+
if (event.key === "Enter" && !hasModifier) {
|
|
108
|
+
setTimeout(() => {
|
|
109
|
+
if (!event.defaultPrevented && !event.isComposing) {
|
|
110
|
+
this.formControlController.submit();
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(event.key)) {
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
switch (event.key) {
|
|
117
|
+
case "ArrowLeft":
|
|
118
|
+
this.currentIndex = this.currentIndex > 0 ? this.currentIndex - 1 : 0;
|
|
119
|
+
break;
|
|
120
|
+
case "ArrowRight":
|
|
121
|
+
if (this.currentIndex === -1) {
|
|
122
|
+
this.currentIndex = this.getLastIndex();
|
|
123
|
+
} else if (this.currentIndex < this.value.length && this.currentIndex < this.length - 1) {
|
|
124
|
+
this.currentIndex += 1;
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
case "ArrowUp":
|
|
128
|
+
this.currentIndex = 0;
|
|
129
|
+
break;
|
|
130
|
+
case "ArrowDown":
|
|
131
|
+
this.currentIndex = this.getLastIndex();
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
handleSingleFieldClick(event) {
|
|
137
|
+
this.focus();
|
|
138
|
+
if (event.currentTarget instanceof HTMLElement) {
|
|
139
|
+
const clickedIndex = Number(event.currentTarget.dataset.fieldIndex);
|
|
140
|
+
this.currentIndex = clickedIndex < this.value.length ? clickedIndex : this.getLastIndex();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
getLastIndex() {
|
|
144
|
+
return this.value.length > 0 ? Math.min(this.value.length, this.length - 1) : 0;
|
|
145
|
+
}
|
|
146
|
+
getDescriptionIds() {
|
|
147
|
+
const ids = [...this.error ? ["error-text"] : [], "help-text"];
|
|
148
|
+
return ids.join(" ");
|
|
149
|
+
}
|
|
150
|
+
handleCurrentIndexChange() {
|
|
151
|
+
if (this.currentIndex === -1) {
|
|
152
|
+
this.input.setSelectionRange(0, this.input.value.length);
|
|
153
|
+
} else {
|
|
154
|
+
this.input.setSelectionRange(this.currentIndex, this.currentIndex + 1);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
handleDisabledChange() {
|
|
158
|
+
this.formControlController.setValidity(this.disabled);
|
|
159
|
+
}
|
|
160
|
+
async handleValueChange() {
|
|
161
|
+
await this.updateComplete;
|
|
162
|
+
this.formControlController.updateValidity();
|
|
163
|
+
}
|
|
164
|
+
handlePatterChange() {
|
|
165
|
+
this.patternRegexp = new RegExp(this.pattern);
|
|
166
|
+
}
|
|
167
|
+
/** Removes focus from the input. */
|
|
168
|
+
blur() {
|
|
169
|
+
this.input.blur();
|
|
170
|
+
}
|
|
171
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
172
|
+
checkValidity() {
|
|
173
|
+
return this.input.checkValidity();
|
|
174
|
+
}
|
|
175
|
+
/** Sets focus on the input. */
|
|
176
|
+
focus(options) {
|
|
177
|
+
this.input.focus(options);
|
|
178
|
+
}
|
|
179
|
+
/** Gets the associated form, if one exists. */
|
|
180
|
+
getForm() {
|
|
181
|
+
return this.formControlController.getForm();
|
|
182
|
+
}
|
|
183
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
184
|
+
reportValidity() {
|
|
185
|
+
return this.input.reportValidity();
|
|
186
|
+
}
|
|
187
|
+
/** Selects all the text in the input. */
|
|
188
|
+
select() {
|
|
189
|
+
if (this.input instanceof HTMLInputElement) {
|
|
190
|
+
this.input.select();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
194
|
+
setCustomValidity(message) {
|
|
195
|
+
this.input.setCustomValidity(message);
|
|
196
|
+
this.formControlController.updateValidity();
|
|
197
|
+
}
|
|
198
|
+
async getUpdateComplete() {
|
|
199
|
+
const result = await super.getUpdateComplete();
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
202
|
+
renderSingleField(index) {
|
|
203
|
+
const charValue = this.value.split("")[index];
|
|
204
|
+
const isCurrentField = this.currentIndex === index || this.currentIndex === -1 && charValue;
|
|
205
|
+
const inputClasses = classMap({
|
|
206
|
+
"single-field": true,
|
|
207
|
+
"single-field--active": this.hasFocus && isCurrentField
|
|
208
|
+
});
|
|
209
|
+
return html`
|
|
210
|
+
<div
|
|
211
|
+
class=${inputClasses}
|
|
212
|
+
data-field-index=${index}
|
|
213
|
+
aria-hidden="true"
|
|
214
|
+
@click=${this.handleSingleFieldClick}
|
|
215
|
+
>
|
|
216
|
+
${charValue || this.hasFocus && isCurrentField ? html`<span class="single-field__value">${charValue}</span>` : html`
|
|
217
|
+
<span class="single-field__placeholder"
|
|
218
|
+
>${this.placeholder.charAt(0)}</span
|
|
219
|
+
>
|
|
220
|
+
`}
|
|
221
|
+
${this.hasFocus && isCurrentField && !charValue ? html` <div class="fake-caret"></div> ` : ""}
|
|
222
|
+
</div>
|
|
223
|
+
`;
|
|
224
|
+
}
|
|
225
|
+
renderInput() {
|
|
226
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
227
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
228
|
+
return html`
|
|
229
|
+
<div part="base" class="input__wrapper">
|
|
230
|
+
<div
|
|
231
|
+
class=${classMap({
|
|
232
|
+
"visible-input": true,
|
|
233
|
+
"input--focused": this.hasFocus,
|
|
234
|
+
// Sizes
|
|
235
|
+
"input--small": this.size === "small",
|
|
236
|
+
"input--medium": this.size === "medium",
|
|
237
|
+
"input--large": this.size === "large",
|
|
238
|
+
// States
|
|
239
|
+
"input--error": this.error,
|
|
240
|
+
"input--on-layer": this.variant === "layer",
|
|
241
|
+
"input--on-base": this.variant === "base",
|
|
242
|
+
"input--disabled": this.disabled
|
|
243
|
+
})}
|
|
244
|
+
>
|
|
245
|
+
${Array.from(Array(this.length)).map(
|
|
246
|
+
(_, index) => this.renderSingleField(index)
|
|
247
|
+
)}
|
|
248
|
+
</div>
|
|
249
|
+
<input
|
|
250
|
+
part="input"
|
|
251
|
+
id="input"
|
|
252
|
+
class="hidden-input"
|
|
253
|
+
type="text"
|
|
254
|
+
name=${ifDefinedAndNotEmpty(this.name)}
|
|
255
|
+
?disabled=${this.disabled}
|
|
256
|
+
?required=${this.required}
|
|
257
|
+
minlength=${this.length}
|
|
258
|
+
maxlength=${this.length}
|
|
259
|
+
.value=${live(this.value)}
|
|
260
|
+
autocomplete="one-time-code"
|
|
261
|
+
?autofocus=${this.autofocus}
|
|
262
|
+
pattern=${ifDefined(this.pattern)}
|
|
263
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
264
|
+
inputmode=${ifDefined(this.inputmode)}
|
|
265
|
+
aria-label=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
|
|
266
|
+
aria-describedby=${this.getDescriptionIds()}
|
|
267
|
+
aria-invalid=${ifDefined(this.error ? "true" : void 0)}
|
|
268
|
+
@change=${this.handleChange}
|
|
269
|
+
@input=${this.handleInput}
|
|
270
|
+
@invalid=${this.handleInvalid}
|
|
271
|
+
@keydown=${this.handleKeyDown}
|
|
272
|
+
@focus=${this.handleFocus}
|
|
273
|
+
@blur=${this.handleBlur}
|
|
274
|
+
@select=${this.handleSelect}
|
|
275
|
+
/>
|
|
276
|
+
</div>
|
|
277
|
+
`;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
DSAInputOTP.styles = input_otp_styles_default;
|
|
281
|
+
__decorateClass([
|
|
282
|
+
query("input")
|
|
283
|
+
], DSAInputOTP.prototype, "input", 2);
|
|
284
|
+
__decorateClass([
|
|
285
|
+
state()
|
|
286
|
+
], DSAInputOTP.prototype, "hasFocus", 2);
|
|
287
|
+
__decorateClass([
|
|
288
|
+
state()
|
|
289
|
+
], DSAInputOTP.prototype, "currentIndex", 2);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
state()
|
|
292
|
+
], DSAInputOTP.prototype, "patternRegexp", 2);
|
|
293
|
+
__decorateClass([
|
|
294
|
+
property()
|
|
295
|
+
], DSAInputOTP.prototype, "value", 2);
|
|
296
|
+
__decorateClass([
|
|
297
|
+
defaultValue()
|
|
298
|
+
], DSAInputOTP.prototype, "defaultValue", 2);
|
|
299
|
+
__decorateClass([
|
|
300
|
+
property()
|
|
301
|
+
], DSAInputOTP.prototype, "pattern", 2);
|
|
302
|
+
__decorateClass([
|
|
303
|
+
property({ type: Number })
|
|
304
|
+
], DSAInputOTP.prototype, "length", 2);
|
|
305
|
+
__decorateClass([
|
|
306
|
+
property()
|
|
307
|
+
], DSAInputOTP.prototype, "autocapitalize", 2);
|
|
308
|
+
__decorateClass([
|
|
309
|
+
property({ type: Boolean })
|
|
310
|
+
], DSAInputOTP.prototype, "autofocus", 2);
|
|
311
|
+
__decorateClass([
|
|
312
|
+
property()
|
|
313
|
+
], DSAInputOTP.prototype, "enterkeyhint", 2);
|
|
314
|
+
__decorateClass([
|
|
315
|
+
property()
|
|
316
|
+
], DSAInputOTP.prototype, "inputmode", 2);
|
|
317
|
+
__decorateClass([
|
|
318
|
+
watch("currentIndex", { waitUntilFirstUpdate: true })
|
|
319
|
+
], DSAInputOTP.prototype, "handleCurrentIndexChange", 1);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
322
|
+
], DSAInputOTP.prototype, "handleDisabledChange", 1);
|
|
323
|
+
__decorateClass([
|
|
324
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
325
|
+
], DSAInputOTP.prototype, "handleValueChange", 1);
|
|
326
|
+
__decorateClass([
|
|
327
|
+
watch("pattern")
|
|
328
|
+
], DSAInputOTP.prototype, "handlePatterChange", 1);
|
|
329
|
+
DSAInputOTP = __decorateClass([
|
|
330
|
+
customElement("dsa-input-otp")
|
|
331
|
+
], DSAInputOTP);
|
|
332
|
+
|
|
333
|
+
export {
|
|
334
|
+
DSAInputOTP
|
|
335
|
+
};
|
|
@@ -15,6 +15,12 @@ var DSACheckboxButton = class extends FormToggleButton {
|
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this.type = "checkbox";
|
|
17
17
|
}
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
super.connectedCallback();
|
|
20
|
+
if (!this.hasAttribute("role")) {
|
|
21
|
+
this.setAttribute("role", "listitem");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
18
24
|
handleClick() {
|
|
19
25
|
this.checked = !this.checked;
|
|
20
26
|
}
|
|
@@ -24,7 +24,6 @@ var DSARangeSlider = class extends ShoelaceElement {
|
|
|
24
24
|
super(...arguments);
|
|
25
25
|
this.hasFromSliderFocus = false;
|
|
26
26
|
this.hasToSliderFocus = false;
|
|
27
|
-
this.title = "";
|
|
28
27
|
this.labelFrom = "";
|
|
29
28
|
this.labelTo = "";
|
|
30
29
|
this.fromValue = "";
|
|
@@ -183,9 +182,6 @@ __decorateClass([
|
|
|
183
182
|
__decorateClass([
|
|
184
183
|
state()
|
|
185
184
|
], DSARangeSlider.prototype, "hasToSliderFocus", 2);
|
|
186
|
-
__decorateClass([
|
|
187
|
-
property()
|
|
188
|
-
], DSARangeSlider.prototype, "title", 2);
|
|
189
185
|
__decorateClass([
|
|
190
186
|
property({ attribute: "label-from" })
|
|
191
187
|
], DSARangeSlider.prototype, "labelFrom", 2);
|
|
@@ -81,7 +81,7 @@ var DSATab = class extends ShoelaceElement {
|
|
|
81
81
|
part="close-button"
|
|
82
82
|
exportparts="base:close-button__base"
|
|
83
83
|
name="close"
|
|
84
|
-
label=${this.localize.term("close")}
|
|
84
|
+
label=${this.closeButtonLabel && this.closeButtonLabel !== "" ? this.closeButtonLabel : this.localize.term("close")}
|
|
85
85
|
class="tab__close-button"
|
|
86
86
|
@click=${this.handleCloseClick}
|
|
87
87
|
library="system"
|
|
@@ -110,6 +110,9 @@ __decorateClass([
|
|
|
110
110
|
__decorateClass([
|
|
111
111
|
property({ type: Boolean })
|
|
112
112
|
], DSATab.prototype, "closable", 2);
|
|
113
|
+
__decorateClass([
|
|
114
|
+
property({ attribute: "close-button-label" })
|
|
115
|
+
], DSATab.prototype, "closeButtonLabel", 2);
|
|
113
116
|
__decorateClass([
|
|
114
117
|
property({ type: Boolean, reflect: true })
|
|
115
118
|
], DSATab.prototype, "disabled", 2);
|
|
@@ -68,6 +68,7 @@ var DSAButton = class extends ShoelaceElement {
|
|
|
68
68
|
this.href = "";
|
|
69
69
|
this.rel = "noreferrer noopener";
|
|
70
70
|
this.ariaLabel = "";
|
|
71
|
+
this.accessibleName = "";
|
|
71
72
|
this.description = "";
|
|
72
73
|
}
|
|
73
74
|
/** Gets the validity state object */
|
|
@@ -225,14 +226,15 @@ var DSAButton = class extends ShoelaceElement {
|
|
|
225
226
|
target=${ifDefined(isLink ? this.target : void 0)}
|
|
226
227
|
download=${ifDefined(isLink ? this.download : void 0)}
|
|
227
228
|
rel=${ifDefined(isLink ? this.rel : void 0)}
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
aria-label=${ifDefinedAndNotEmpty(
|
|
230
|
+
this.accessibleName || this.ariaLabel
|
|
231
|
+
)}
|
|
230
232
|
aria-describedby=${ifDefined(
|
|
231
233
|
this.description !== "" ? "description" : void 0
|
|
232
234
|
)}
|
|
233
|
-
aria-disabled=${this.disabled ? "true" :
|
|
235
|
+
aria-disabled=${ifDefined(this.disabled ? "true" : void 0)}
|
|
234
236
|
aria-pressed=${ifDefined(this.toggle ? this.pressed : void 0)}
|
|
235
|
-
tabindex=${this.disabled ? "-1" :
|
|
237
|
+
tabindex=${ifDefined(this.disabled ? "-1" : void 0)}
|
|
236
238
|
@blur=${this.handleBlur}
|
|
237
239
|
@focus=${this.handleFocus}
|
|
238
240
|
@invalid=${this.isButton() ? this.handleInvalid : null}
|
|
@@ -349,6 +351,9 @@ __decorateClass([
|
|
|
349
351
|
__decorateClass([
|
|
350
352
|
property({ attribute: "aria-label" })
|
|
351
353
|
], DSAButton.prototype, "ariaLabel", 2);
|
|
354
|
+
__decorateClass([
|
|
355
|
+
property({ attribute: "accessible-name" })
|
|
356
|
+
], DSAButton.prototype, "accessibleName", 2);
|
|
352
357
|
__decorateClass([
|
|
353
358
|
property({ attribute: "description" })
|
|
354
359
|
], DSAButton.prototype, "description", 2);
|