@ds-autonomie/web-components 1.22.2 → 1.23.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 +24 -0
- package/dist/chunks/{chunk.BPEI35FP.js → chunk.2JIPPL3I.js} +1 -1
- package/dist/chunks/{chunk.5X4QTZAP.js → chunk.2LWUWDHO.js} +5 -2
- package/dist/chunks/{chunk.KCJKFLMI.js → chunk.2TQJGNLG.js} +1 -1
- package/dist/chunks/{chunk.4CA7E26P.js → chunk.33HY22NK.js} +77 -189
- package/dist/chunks/{chunk.7KYHO6CO.js → chunk.35CKPBLE.js} +1 -1
- package/dist/chunks/{chunk.BUDRSMFF.js → chunk.3EZTOQNV.js} +2 -2
- package/dist/chunks/{chunk.FPXW7ZMC.js → chunk.3KY7QTZE.js} +13 -5
- package/dist/chunks/{chunk.YXVKJQFH.js → chunk.3PHQ4BLH.js} +4 -1
- package/dist/chunks/{chunk.PQR2GAOE.js → chunk.3XIJ443Y.js} +1 -1
- package/dist/chunks/{chunk.YQX6XBXO.js → chunk.43G4V4JA.js} +7 -6
- package/dist/chunks/{chunk.DMX6VF2L.js → chunk.47JHZBMB.js} +1 -1
- package/dist/chunks/{chunk.GAC47LAL.js → chunk.4P45LB2J.js} +6 -4
- package/dist/chunks/{chunk.5MBTOZ4X.js → chunk.4ZYXTXB5.js} +6 -2
- package/dist/chunks/{chunk.GBFSCUF6.js → chunk.52QZ25CM.js} +5 -5
- package/dist/chunks/{chunk.M3FN3PFT.js → chunk.5OBDCB7I.js} +1 -1
- package/dist/chunks/{chunk.5DJID6VS.js → chunk.5RR67NIN.js} +1 -1
- package/dist/chunks/{chunk.TOWCNBTG.js → chunk.5SPPXRRA.js} +1 -1
- package/dist/chunks/{chunk.HRKZRSEX.js → chunk.5W2ADPTV.js} +1 -1
- package/dist/chunks/{chunk.GUSO7ZX7.js → chunk.66WACVGP.js} +1 -1
- package/dist/chunks/{chunk.FCXJCZEG.js → chunk.6AMOVQMF.js} +3 -3
- package/dist/chunks/{chunk.FUDAY7X2.js → chunk.6QHJJ6HQ.js} +1 -1
- package/dist/chunks/{chunk.EEKMHAZ5.js → chunk.7CXSHK4V.js} +6 -2
- package/dist/chunks/{chunk.NZSU3FNO.js → chunk.7NKRGNGW.js} +22 -6
- package/dist/chunks/{chunk.6YV75XW5.js → chunk.AF3ZNLUV.js} +3 -2
- package/dist/chunks/{chunk.F4QJBOMR.js → chunk.AYYW4GA7.js} +88 -197
- package/dist/chunks/{chunk.YGFOBU5R.js → chunk.BLOOH4O7.js} +2 -2
- package/dist/chunks/{chunk.QUB3Z4YN.js → chunk.BSUMGQ4B.js} +1 -1
- package/dist/chunks/{chunk.RC7QZSCE.js → chunk.CABS34UZ.js} +3 -3
- package/dist/chunks/{chunk.A5FZ3ZP6.js → chunk.COCN62Q7.js} +116 -231
- package/dist/chunks/{chunk.ZBZTILB6.js → chunk.CQHOJJEI.js} +1 -1
- package/dist/chunks/{chunk.4MDEHTR2.js → chunk.DC7PUODY.js} +2 -2
- package/dist/chunks/{chunk.2YCECXQ4.js → chunk.DDBVITXE.js} +2 -2
- package/dist/chunks/{chunk.XOAAGTHU.js → chunk.DE4CISVH.js} +1 -1
- package/dist/chunks/{chunk.75JDBBOQ.js → chunk.DKPTGNVN.js} +4 -3
- package/dist/chunks/{chunk.OOD25N36.js → chunk.E7D46GR5.js} +3 -2
- package/dist/chunks/{chunk.BTIJON33.js → chunk.EEGNWUXW.js} +4 -3
- package/dist/chunks/{chunk.DKATFHVQ.js → chunk.EG62SZ5F.js} +2 -1
- package/dist/chunks/{chunk.46QRHHLQ.js → chunk.ELSWDQF7.js} +124 -246
- package/dist/chunks/{chunk.YTRQPTZ3.js → chunk.EP7LLKJN.js} +1 -1
- package/dist/chunks/{chunk.PIL5B5ND.js → chunk.FAWAATV6.js} +2 -2
- package/dist/chunks/chunk.FJI3P5RX.js +158 -0
- package/dist/chunks/{chunk.42I2CPKY.js → chunk.FQMS24GI.js} +1 -1
- package/dist/chunks/{chunk.QBK6A3R2.js → chunk.GDOUDNZH.js} +1 -1
- package/dist/chunks/{chunk.5NEMV7VX.js → chunk.GN5K7Y37.js} +22 -5
- package/dist/chunks/{chunk.LKXJNHSQ.js → chunk.GNPJFQU2.js} +1 -1
- package/dist/chunks/{chunk.YAXCH4J7.js → chunk.HBUDYFQQ.js} +2 -2
- package/dist/chunks/{chunk.BETV66IR.js → chunk.HKVZJ7FV.js} +5 -5
- package/dist/chunks/{chunk.4JK743ZT.js → chunk.IPPHRX7W.js} +3 -1
- package/dist/chunks/{chunk.GM4DVAZJ.js → chunk.IPUOJRFA.js} +1 -1
- package/dist/chunks/{chunk.HR3WCXZI.js → chunk.IXDXQH27.js} +3 -1
- package/dist/chunks/{chunk.E3B2D5KE.js → chunk.IZBHR7GP.js} +0 -1
- package/dist/chunks/{chunk.4QQ5B4IL.js → chunk.JLVXPL5R.js} +1 -1
- package/dist/chunks/{chunk.AO6LCWR7.js → chunk.JUFWKPKA.js} +1 -1
- package/dist/chunks/{chunk.HOATJHQQ.js → chunk.KADIEJEA.js} +17 -1
- package/dist/chunks/{chunk.PGUC3I5F.js → chunk.KDQ7QGKG.js} +50 -168
- package/dist/chunks/{chunk.SMB4Q2LK.js → chunk.L64R3324.js} +1 -1
- package/dist/chunks/{chunk.GL4GU5DO.js → chunk.MJ3ZLDHO.js} +1 -1
- package/dist/chunks/{chunk.SDJYJZWB.js → chunk.MOXUFEWV.js} +80 -201
- package/dist/chunks/{chunk.KSSPTHJA.js → chunk.NILDQYHY.js} +2 -2
- package/dist/chunks/{chunk.W45NKAQM.js → chunk.NVCV74RN.js} +154 -275
- package/dist/chunks/{chunk.MKM7ZZA3.js → chunk.O52CMQXZ.js} +10 -23
- package/dist/chunks/{chunk.Q62BRBYD.js → chunk.PVNTVHSM.js} +4 -1
- package/dist/chunks/{chunk.EOWQAIDU.js → chunk.QDKQMUIQ.js} +4 -11
- package/dist/chunks/{chunk.XJU66OLS.js → chunk.QDMCHM32.js} +2 -2
- package/dist/chunks/{chunk.75SMDXL6.js → chunk.QPVOW5Y7.js} +1 -1
- package/dist/chunks/chunk.QTUCYPM5.js +61 -0
- package/dist/chunks/{chunk.WUZDHRQQ.js → chunk.QZ743FPY.js} +2 -2
- package/dist/chunks/{chunk.D6LJAMJM.js → chunk.RJQHPU3G.js} +10 -4
- package/dist/chunks/{chunk.BYTDEMP3.js → chunk.RPQWUBXM.js} +5 -3
- package/dist/chunks/{chunk.YKMMYGAJ.js → chunk.RS4JPM7N.js} +1 -1
- package/dist/chunks/{chunk.RKHCGLX6.js → chunk.RS7HNQVM.js} +3 -1
- package/dist/chunks/{chunk.SYXHGIMC.js → chunk.RWGL6D5U.js} +1 -1
- package/dist/chunks/{chunk.36WWRNIP.js → chunk.SHETMEY4.js} +3 -2
- package/dist/chunks/{chunk.HQKKL7C7.js → chunk.SJBAMGV4.js} +8 -2
- package/dist/chunks/chunk.SPSOTQ3Q.js +268 -0
- package/dist/chunks/{chunk.UPDUFREI.js → chunk.SX2NHC2D.js} +2 -1
- package/dist/chunks/{chunk.PSAB4UIG.js → chunk.SXCNBPZV.js} +5 -1
- package/dist/chunks/{chunk.5KFYZRQZ.js → chunk.TB3WT3D4.js} +2 -39
- package/dist/chunks/{chunk.LE6KR6YZ.js → chunk.TRPN2KWP.js} +28 -4
- package/dist/chunks/{chunk.O2PIWM25.js → chunk.UCR5H4HY.js} +3 -3
- package/dist/chunks/chunk.UTM2OEQ6.js +40 -0
- package/dist/chunks/{chunk.MAFEZZTX.js → chunk.UZEXRPNC.js} +2 -1
- package/dist/chunks/{chunk.L4BDK6WG.js → chunk.VBCRFPTQ.js} +6 -2
- package/dist/chunks/{chunk.LWJY5VKB.js → chunk.VMJ6DIIE.js} +6 -2
- package/dist/chunks/{chunk.KCKFUT7W.js → chunk.VNFFOE7Z.js} +2 -1
- package/dist/chunks/{chunk.KVWD6T4L.js → chunk.VOOE2BQV.js} +1 -1
- package/dist/chunks/{chunk.OMS37ACU.js → chunk.VT3IWNRD.js} +1 -1
- package/dist/chunks/{chunk.SG6IR57O.js → chunk.W635ZS25.js} +1 -1
- package/dist/chunks/{chunk.3KCZS7CR.js → chunk.WFXH625U.js} +1 -1
- package/dist/chunks/chunk.WOZTYBTC.js +38 -0
- package/dist/chunks/{chunk.CPXD6UYZ.js → chunk.WQQM4ALY.js} +5 -1
- package/dist/chunks/{chunk.5DAITYVK.js → chunk.XCRMRJG6.js} +3 -2
- package/dist/chunks/{chunk.OEYZ3CTB.js → chunk.XTFOV6IO.js} +10 -4
- package/dist/chunks/{chunk.7YZDEXJY.js → chunk.Y4AZARNM.js} +13 -5
- package/dist/chunks/{chunk.FN3YT4DB.js → chunk.Y7CSNRKE.js} +1 -1
- package/dist/chunks/{chunk.DA6UU6UL.js → chunk.YIY5RM53.js} +0 -17
- package/dist/chunks/{chunk.IE34DJRP.js → chunk.YPDQVYQD.js} +1 -1
- package/dist/chunks/{chunk.POBERW54.js → chunk.ZJSZJA26.js} +2 -1
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.d.ts +5 -0
- package/dist/components/button/button.js +9 -9
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/callout/callout.js +5 -5
- package/dist/components/card/card.js +2 -2
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.d.ts +4 -34
- package/dist/components/checkbox-button/checkbox-button.js +7 -8
- package/dist/components/checkbox-group/checkbox-group.js +6 -6
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.d.ts +3 -36
- package/dist/components/combobox/combobox.js +15 -14
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/dialog/dialog.js +8 -8
- package/dist/components/download-card/download-card.d.ts +2 -0
- package/dist/components/download-card/download-card.js +5 -5
- package/dist/components/download-link/download-link.d.ts +2 -0
- package/dist/components/download-link/download-link.js +5 -5
- package/dist/components/drawer/drawer.js +8 -8
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +3 -3
- package/dist/components/error-text/error-text.js +1 -1
- package/dist/components/error-text/error-text.utils.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +3 -1
- package/dist/components/file-upload/file-upload.js +6 -6
- package/dist/components/file-upload/file-upload.styles.js +2 -2
- package/dist/components/file-upload-item/file-upload-item.js +3 -3
- package/dist/components/filter/filter-base/filter-base.js +3 -3
- package/dist/components/filter/filter-button/filter-button.js +8 -8
- package/dist/components/filter/filter-counter/filter-counter.js +4 -4
- package/dist/components/filter/filter-date/filter-date.js +12 -12
- package/dist/components/filter/filter-range/filter-range.js +21 -20
- package/dist/components/filter/filter-select/filter-select.js +19 -18
- package/dist/components/footer/footer.js +3 -3
- package/dist/components/footer-content-block/footer-content-block.js +2 -2
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -2
- package/dist/components/footer-sitemap/footer-sitemap.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.js +4 -4
- package/dist/components/header-search/header-search.js +2 -2
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.d.ts +5 -0
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/input/input.d.ts +4 -35
- package/dist/components/input/input.js +16 -15
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/input-date/input-date.d.ts +3 -36
- package/dist/components/input-date/input-date.js +15 -14
- package/dist/components/input-date/input-date.styles.js +3 -3
- package/dist/components/input-mask/input-mask.d.ts +3 -37
- package/dist/components/input-mask/input-mask.js +8 -7
- package/dist/components/input-mask/input-mask.styles.js +2 -2
- package/dist/components/input-phone/input-phone.d.ts +3 -33
- package/dist/components/input-phone/input-phone.js +22 -21
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/menu-accordion/menu-accordion.js +6 -6
- package/dist/components/menu-item/menu-item.js +6 -6
- package/dist/components/navbar/navbar-link/navbar-link.js +4 -4
- package/dist/components/navbar/navbar-menu/navbar-menu.js +7 -7
- package/dist/components/option/option.js +6 -6
- package/dist/components/pagination/pagination.js +20 -19
- package/dist/components/pagination-button/pagination-button.js +4 -4
- package/dist/components/pagination-button/pagination-button.styles.js +2 -2
- package/dist/components/profile-button/profile-button.js +9 -9
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/quote/quote.js +5 -5
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.d.ts +4 -32
- package/dist/components/radio-button/radio-button.js +17 -9
- package/dist/components/radio-group/radio-group.js +6 -6
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.d.ts +3 -35
- package/dist/components/select/select.js +14 -13
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/skip-links/skip-links.js +2 -2
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/split-panel/split-panel.js +6 -6
- package/dist/components/step/step.d.ts +1 -0
- package/dist/components/step/step.js +7 -7
- package/dist/components/tab/tab.d.ts +0 -6
- package/dist/components/tab/tab.js +3 -4
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/table/table-action/table-action.js +2 -2
- package/dist/components/table/table-caption/table-caption.js +3 -3
- package/dist/components/table/table-header-cell/table-header-cell.js +2 -2
- package/dist/components/table/table-header-row/table-header-row.js +3 -3
- package/dist/components/table/table-row/table-row.js +2 -2
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-of-contents/table-of-contents.js +1 -1
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.d.ts +6 -37
- package/dist/components/textarea/textarea.js +7 -6
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +14 -14
- package/dist/components/tree-item/tree-item.js +13 -13
- package/dist/custom-elements.json +259 -2206
- package/dist/design-system.js +145 -145
- package/dist/internal/components/form-control/form-control-layout.d.ts +41 -0
- package/dist/internal/components/form-control/form-control-layout.js +166 -0
- package/dist/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +86 -0
- package/dist/internal/components/form-toggle-button/form-toggle-button-stories.js +62 -0
- package/dist/internal/components/form-toggle-button/form-toggle-button.d.ts +32 -0
- package/dist/internal/components/form-toggle-button/form-toggle-button.js +129 -0
- package/dist/{chunks/chunk.LP7HSAS3.js → internal/components/form-toggle-button/form-toggle-button.styles.js} +30 -24
- package/dist/styles/form-control.styles.js +4 -11
- package/dist/themes/dsa-wc-theme.css +8 -4
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +8 -4
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +43 -537
- package/dist/web-types.json +212 -1578
- package/package.json +1 -1
- package/dist/chunks/chunk.EJ4VOCOO.js +0 -150
- package/dist/chunks/chunk.M4JDLOFR.js +0 -167
- package/dist/chunks/chunk.PCO6EOKB.js +0 -156
- package/dist/chunks/chunk.RB6TMBWW.js +0 -127
- package/dist/components/checkbox-button/checkbox-button.styles.js +0 -9
- package/dist/components/radio-button/radio-button.styles.d.ts +0 -2
- package/dist/components/radio-button/radio-button.styles.js +0 -9
- /package/dist/{components/checkbox-button/checkbox-button.styles.d.ts → internal/components/form-toggle-button/form-toggle-button.styles.d.ts} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
radio_group_styles_default
|
|
3
|
+
} from "./chunk.3XIJ443Y.js";
|
|
1
4
|
import {
|
|
2
5
|
wrapIndex
|
|
3
6
|
} from "./chunk.HV63L5BF.js";
|
|
4
|
-
import {
|
|
5
|
-
radio_group_styles_default
|
|
6
|
-
} from "./chunk.PQR2GAOE.js";
|
|
7
7
|
import {
|
|
8
8
|
renderFormElementErrors
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.IZBHR7GP.js";
|
|
10
10
|
import {
|
|
11
11
|
FormControlController,
|
|
12
12
|
customErrorValidityState,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.KIFBWPW5.js";
|
|
16
16
|
import {
|
|
17
17
|
HasSlotController
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.YIY5RM53.js";
|
|
19
19
|
import {
|
|
20
20
|
watch
|
|
21
21
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkbox_group_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VOOE2BQV.js";
|
|
4
4
|
import {
|
|
5
5
|
renderFormElementErrors
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.IZBHR7GP.js";
|
|
7
7
|
import {
|
|
8
8
|
FormControlController,
|
|
9
9
|
customErrorValidityState,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.KIFBWPW5.js";
|
|
13
13
|
import {
|
|
14
14
|
HasSlotController
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.YIY5RM53.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
18
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.IX2S32IE.js";
|
|
4
4
|
import {
|
|
5
5
|
FilterBase
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.BLOOH4O7.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -225,7 +225,11 @@ var DSAFilterRange = class extends FilterBase {
|
|
|
225
225
|
@click=${this.handleReset}
|
|
226
226
|
?disabled=${this.currentStartValue === this.defaultStart && this.currentEndValue === this.defaultEnd}
|
|
227
227
|
>
|
|
228
|
-
<dsa-icon
|
|
228
|
+
<dsa-icon
|
|
229
|
+
name="restart_alt"
|
|
230
|
+
slot="prefix"
|
|
231
|
+
library="system"
|
|
232
|
+
></dsa-icon>
|
|
229
233
|
${this.localize.term("filterReset")}
|
|
230
234
|
</dsa-button>
|
|
231
235
|
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk.BJAMGNY4.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.YIY5RM53.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.4ZYXTXB5.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -195,7 +195,11 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
195
195
|
class="pagination__navigation__button--mobile previous-button"
|
|
196
196
|
@click=${this.handlePageButtonClick}
|
|
197
197
|
>
|
|
198
|
-
<dsa-icon
|
|
198
|
+
<dsa-icon
|
|
199
|
+
name="chevron_left"
|
|
200
|
+
slot="prefix"
|
|
201
|
+
library="system"
|
|
202
|
+
></dsa-icon>
|
|
199
203
|
${this.localize.term("previousPage")}
|
|
200
204
|
</dsa-pagination-button>
|
|
201
205
|
<div class="pagination__navigation__page-input">
|
|
@@ -222,7 +226,11 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
222
226
|
@click=${this.handlePageButtonClick}
|
|
223
227
|
>
|
|
224
228
|
${this.localize.term("nextPage")}
|
|
225
|
-
<dsa-icon
|
|
229
|
+
<dsa-icon
|
|
230
|
+
name="chevron_right"
|
|
231
|
+
slot="suffix"
|
|
232
|
+
library="system"
|
|
233
|
+
></dsa-icon>
|
|
226
234
|
</dsa-pagination-button>
|
|
227
235
|
` : html`
|
|
228
236
|
<ul class="button-list">
|
|
@@ -235,7 +243,11 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
235
243
|
class="first-button previous-button"
|
|
236
244
|
@click=${this.handlePageButtonClick}
|
|
237
245
|
>
|
|
238
|
-
<dsa-icon
|
|
246
|
+
<dsa-icon
|
|
247
|
+
name="chevron_left"
|
|
248
|
+
slot="prefix"
|
|
249
|
+
library="system"
|
|
250
|
+
></dsa-icon>
|
|
239
251
|
${this.compact ? html`
|
|
240
252
|
<dsa-visually-hidden
|
|
241
253
|
>${this.localize.term(
|
|
@@ -259,7 +271,11 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
259
271
|
"nextPage"
|
|
260
272
|
)}</dsa-visually-hidden
|
|
261
273
|
>` : this.localize.term("nextPage")}
|
|
262
|
-
<dsa-icon
|
|
274
|
+
<dsa-icon
|
|
275
|
+
name="chevron_right"
|
|
276
|
+
slot="suffix"
|
|
277
|
+
library="system"
|
|
278
|
+
></dsa-icon>
|
|
263
279
|
</dsa-pagination-button>
|
|
264
280
|
</ul>
|
|
265
281
|
`}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.R426GAXO.js";
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.YIY5RM53.js";
|
|
14
14
|
import {
|
|
15
15
|
waitForEvent
|
|
16
16
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk.V7RJROLH.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.4ZYXTXB5.js";
|
|
28
28
|
import {
|
|
29
29
|
watch
|
|
30
30
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -251,6 +251,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
251
251
|
name="close"
|
|
252
252
|
label=${this.localize.term("close")}
|
|
253
253
|
@click="${() => this.requestClose("close-button")}"
|
|
254
|
+
library="system"
|
|
254
255
|
></dsa-icon-button>
|
|
255
256
|
</div>
|
|
256
257
|
</header>
|
|
@@ -1,43 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSASelect
|
|
3
|
-
} from "./chunk.
|
|
4
|
-
import {
|
|
5
|
-
maskedValueToRawValue,
|
|
6
|
-
rawValueToMaskedValue,
|
|
7
|
-
stripSpecialChars
|
|
8
|
-
} from "./chunk.7OLEA3GQ.js";
|
|
3
|
+
} from "./chunk.ELSWDQF7.js";
|
|
9
4
|
import {
|
|
10
5
|
getPhoneConfig
|
|
11
6
|
} from "./chunk.65HTBW2L.js";
|
|
12
7
|
import {
|
|
13
8
|
input_phone_styles_default
|
|
14
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.TB3WT3D4.js";
|
|
15
10
|
import {
|
|
16
11
|
frenchFlagOption,
|
|
17
12
|
frenchNumberPrefix,
|
|
18
13
|
phonePrefixOptions
|
|
19
14
|
} from "./chunk.ESYJVRG3.js";
|
|
15
|
+
import {
|
|
16
|
+
maskedValueToRawValue,
|
|
17
|
+
rawValueToMaskedValue,
|
|
18
|
+
stripSpecialChars
|
|
19
|
+
} from "./chunk.7OLEA3GQ.js";
|
|
20
|
+
import {
|
|
21
|
+
FormControlLayout
|
|
22
|
+
} from "./chunk.FJI3P5RX.js";
|
|
20
23
|
import {
|
|
21
24
|
defaultValue
|
|
22
25
|
} from "./chunk.CMJ2SRTL.js";
|
|
23
|
-
import {
|
|
24
|
-
renderFormElementErrors
|
|
25
|
-
} from "./chunk.E3B2D5KE.js";
|
|
26
26
|
import {
|
|
27
27
|
FormControlController
|
|
28
28
|
} from "./chunk.KIFBWPW5.js";
|
|
29
|
-
import {
|
|
30
|
-
HasSlotController
|
|
31
|
-
} from "./chunk.DA6UU6UL.js";
|
|
32
29
|
import {
|
|
33
30
|
watch
|
|
34
31
|
} from "./chunk.6IH66JBY.js";
|
|
35
32
|
import {
|
|
36
33
|
ifDefinedAndNotEmpty
|
|
37
34
|
} from "./chunk.ZQJVCRB2.js";
|
|
38
|
-
import {
|
|
39
|
-
ShoelaceElement
|
|
40
|
-
} from "./chunk.YCXTCVAZ.js";
|
|
41
35
|
import {
|
|
42
36
|
__decorateClass
|
|
43
37
|
} from "./chunk.6M63UXML.js";
|
|
@@ -49,41 +43,24 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
49
43
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
50
44
|
import { live } from "lit/directives/live.js";
|
|
51
45
|
import { LocalizeController } from "@shoelace-style/localize";
|
|
52
|
-
var DSAInputPhone = class extends
|
|
46
|
+
var DSAInputPhone = class extends FormControlLayout {
|
|
53
47
|
constructor() {
|
|
54
48
|
super(...arguments);
|
|
55
49
|
this.formControlController = new FormControlController(this, {
|
|
56
50
|
assumeInteractionOn: ["dsa-blur", "dsa-input"]
|
|
57
51
|
});
|
|
58
|
-
this.hasSlotController = new HasSlotController(
|
|
59
|
-
this,
|
|
60
|
-
"help-text",
|
|
61
|
-
"label"
|
|
62
|
-
);
|
|
63
52
|
this.localize = new LocalizeController(this);
|
|
64
53
|
this.hasFocus = false;
|
|
65
54
|
this.maskedNumber = "";
|
|
66
55
|
this.phoneConfig = getPhoneConfig("+33");
|
|
67
56
|
this.placeholder = this.phoneConfig.placeholder;
|
|
68
57
|
this.pattern = this.phoneConfig.pattern;
|
|
69
|
-
this.title = "";
|
|
70
|
-
this.name = "";
|
|
71
58
|
this.value = "";
|
|
72
59
|
this.phonePrefix = "+33";
|
|
73
60
|
this.phoneNumber = "";
|
|
74
61
|
this.defaultValue = "";
|
|
75
|
-
this.size = "medium";
|
|
76
|
-
this.variant = "base";
|
|
77
|
-
this.label = "";
|
|
78
|
-
this.helpText = "";
|
|
79
62
|
this.clearable = false;
|
|
80
|
-
this.disabled = false;
|
|
81
63
|
this.inputPrefix = "";
|
|
82
|
-
this.readonly = false;
|
|
83
|
-
this.error = false;
|
|
84
|
-
this.errorMessage = "";
|
|
85
|
-
this.form = "";
|
|
86
|
-
this.required = false;
|
|
87
64
|
this.placement = "bottom-start";
|
|
88
65
|
}
|
|
89
66
|
/** Gets the validity state object */
|
|
@@ -134,6 +111,7 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
134
111
|
this.phoneNumber = newValue;
|
|
135
112
|
this.maskedNumber = maskedValue;
|
|
136
113
|
this.inputEl.value = maskedValue;
|
|
114
|
+
this.updateValue();
|
|
137
115
|
this.formControlController.updateValidity();
|
|
138
116
|
this.emit("dsa-input");
|
|
139
117
|
}
|
|
@@ -300,75 +278,48 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
300
278
|
this.inputEl.setCustomValidity(message);
|
|
301
279
|
this.formControlController.updateValidity();
|
|
302
280
|
}
|
|
303
|
-
|
|
281
|
+
renderInput() {
|
|
304
282
|
var _a;
|
|
305
283
|
const hasLabelSlot = this.hasSlotController.test("label");
|
|
306
|
-
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
307
284
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
308
|
-
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
309
285
|
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.phoneNumber === "number" || ((_a = this.phoneNumber) == null ? void 0 : _a.length) > 0);
|
|
310
286
|
const placeholder = this.placeholder.substring(
|
|
311
287
|
this.maskedNumber.length || 0
|
|
312
288
|
);
|
|
313
289
|
return html`
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"form-control--readonly": this.readonly,
|
|
320
|
-
"form-control--disabled": this.disabled,
|
|
321
|
-
"form-control--small": this.size === "small",
|
|
322
|
-
"form-control--medium": this.size === "medium",
|
|
323
|
-
"form-control--large": this.size === "large",
|
|
324
|
-
"form-control--has-label": hasLabel,
|
|
325
|
-
"form-control--has-help-text": hasHelpText
|
|
326
|
-
})}
|
|
327
|
-
>
|
|
328
|
-
<label
|
|
329
|
-
part="form-control-label"
|
|
330
|
-
class='form-control__label'
|
|
331
|
-
for="input-phone"
|
|
332
|
-
aria-hidden=${hasLabel ? "false" : "true"}
|
|
333
|
-
>
|
|
334
|
-
${this.required ? html`<span class="form-control__label-required">*</span>` : ""}
|
|
335
|
-
<slot name="label">${this.label}</slot>
|
|
336
|
-
</label>
|
|
337
|
-
<slot name="tooltip" class="form-control__tooltip"></slot>
|
|
338
|
-
|
|
339
|
-
<div part="base" class="input-phone__input form-control__field" >
|
|
340
|
-
|
|
341
|
-
<dsa-select
|
|
342
|
-
id="prefix"
|
|
343
|
-
part="select"
|
|
344
|
-
class=${classMap({
|
|
290
|
+
<div part="base" class="input-phone__input form-control__field">
|
|
291
|
+
<dsa-select
|
|
292
|
+
id="prefix"
|
|
293
|
+
part="select"
|
|
294
|
+
class=${classMap({
|
|
345
295
|
"input-phone__select": true,
|
|
346
296
|
"input-phone__select-error": this.error
|
|
347
297
|
})}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
298
|
+
.variant=${live(this.variant)}
|
|
299
|
+
.value=${this.phonePrefix}
|
|
300
|
+
?disabled=${this.disabled}
|
|
301
|
+
?readonly=${this.readonly}
|
|
302
|
+
title=${this.localize.term("countryCallingCode")}
|
|
303
|
+
.placement=${this.placement}
|
|
304
|
+
hoist
|
|
305
|
+
.size=${this.size}
|
|
306
|
+
@dsa-change=${this.handlePhonePrefixChange}
|
|
307
|
+
enterkeyhint="enter"
|
|
308
|
+
display-value
|
|
309
|
+
no-sync-width
|
|
310
|
+
>
|
|
311
|
+
${phonePrefixOptions.map((option, index) => {
|
|
361
312
|
return html`
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
313
|
+
<dsa-option value=${option.value} .size=${this.size}>
|
|
314
|
+
${frenchFlagOption(`option_${index}`)}
|
|
315
|
+
${this.localize.term(option.label)} (${option.value})
|
|
316
|
+
</dsa-option>
|
|
317
|
+
`;
|
|
367
318
|
})}
|
|
368
|
-
|
|
319
|
+
</dsa-select>
|
|
369
320
|
|
|
370
|
-
|
|
371
|
-
|
|
321
|
+
<div
|
|
322
|
+
class=${classMap({
|
|
372
323
|
"input-phone": true,
|
|
373
324
|
// States
|
|
374
325
|
"input-phone--error": this.error,
|
|
@@ -379,83 +330,71 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
379
330
|
"input-phone--focused": this.hasFocus,
|
|
380
331
|
"input-phone--empty": this.phoneNumber === ""
|
|
381
332
|
})}
|
|
382
|
-
|
|
383
|
-
|
|
333
|
+
>
|
|
334
|
+
<span>${this.inputPrefix}</span>
|
|
384
335
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
336
|
+
<div class="input-phone__mask">
|
|
337
|
+
<div
|
|
338
|
+
class=${classMap({
|
|
388
339
|
"input-phone__placeholder": true
|
|
389
|
-
})}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
340
|
+
})}
|
|
341
|
+
aria-placeholder=${placeholder}
|
|
342
|
+
aria-hidden="true"
|
|
343
|
+
>
|
|
344
|
+
<span class="input-phone__value" aria-hidden="true">
|
|
345
|
+
${this.maskedNumber}</span
|
|
346
|
+
>
|
|
347
|
+
${placeholder}
|
|
348
|
+
</div>
|
|
397
349
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
350
|
+
<input
|
|
351
|
+
part="input"
|
|
352
|
+
id="input"
|
|
353
|
+
class=${classMap({
|
|
402
354
|
"input-phone__control": true
|
|
403
355
|
})}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
356
|
+
type="text"
|
|
357
|
+
title=${ifDefinedAndNotEmpty(this.title)}
|
|
358
|
+
name=${ifDefinedAndNotEmpty(this.name)}
|
|
359
|
+
?disabled=${this.disabled}
|
|
360
|
+
?readonly=${this.readonly}
|
|
361
|
+
?required=${this.required}
|
|
362
|
+
minlength=${ifDefined(this.placeholder.length)}
|
|
363
|
+
maxlength=${ifDefined(this.placeholder.length)}
|
|
364
|
+
size=${ifDefined(this.placeholder.length)}
|
|
365
|
+
placeholder=${ifDefined(this.placeholder)}
|
|
366
|
+
.value=${live(this.maskedNumber)}
|
|
367
|
+
autocomplete="tel-national"
|
|
368
|
+
?autofocus=${this.autofocus}
|
|
369
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
370
|
+
inputmode="tel"
|
|
371
|
+
aria-label=${ifDefinedAndNotEmpty(
|
|
420
372
|
hasLabel ? void 0 : this.title
|
|
421
373
|
)}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
${hasClearIcon ? html`
|
|
374
|
+
aria-describedby=${this.error ? "input-phone error-text help-text" : "input-phone help-text"}
|
|
375
|
+
aria-invalid=${ifDefined(this.error ? "true" : void 0)}
|
|
376
|
+
@change=${this.handleChange}
|
|
377
|
+
@keyup=${this.handleDocumentKeyUp}
|
|
378
|
+
@keydown=${this.handleKeyDown}
|
|
379
|
+
@focus=${this.handleFocus}
|
|
380
|
+
@blur=${this.handleBlur}
|
|
381
|
+
@invalid=${this.handleInvalid}
|
|
382
|
+
/>
|
|
383
|
+
</div>
|
|
384
|
+
${hasClearIcon ? html`
|
|
434
385
|
<dsa-icon-button
|
|
435
386
|
part="clear-button"
|
|
436
387
|
class="input-phone__clear"
|
|
437
388
|
label=${this.localize.term("clearEntry")}
|
|
438
389
|
@click=${this.handleClearIconClick}
|
|
439
390
|
name="close"
|
|
391
|
+
library="system"
|
|
440
392
|
>
|
|
441
393
|
</dsa-icon-button>
|
|
442
394
|
` : ""}
|
|
395
|
+
</div>
|
|
443
396
|
</div>
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
<slot
|
|
447
|
-
name="help-text"
|
|
448
|
-
part="form-control-help-text"
|
|
449
|
-
id="help-text"
|
|
450
|
-
class="form-control__help-text"
|
|
451
|
-
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
452
|
-
>
|
|
453
|
-
${this.helpText}
|
|
454
|
-
</slot>
|
|
455
|
-
|
|
456
|
-
${this.error && !this.disabled && this.errorMessage !== "" ? renderFormElementErrors(this.errorMessage) : ""}
|
|
457
|
-
</div>
|
|
458
|
-
</div>`;
|
|
397
|
+
`;
|
|
459
398
|
}
|
|
460
399
|
};
|
|
461
400
|
DSAInputPhone.styles = input_phone_styles_default;
|
|
@@ -480,12 +419,6 @@ __decorateClass([
|
|
|
480
419
|
__decorateClass([
|
|
481
420
|
state()
|
|
482
421
|
], DSAInputPhone.prototype, "pattern", 2);
|
|
483
|
-
__decorateClass([
|
|
484
|
-
property()
|
|
485
|
-
], DSAInputPhone.prototype, "title", 2);
|
|
486
|
-
__decorateClass([
|
|
487
|
-
property()
|
|
488
|
-
], DSAInputPhone.prototype, "name", 2);
|
|
489
422
|
__decorateClass([
|
|
490
423
|
property()
|
|
491
424
|
], DSAInputPhone.prototype, "value", 2);
|
|
@@ -498,54 +431,12 @@ __decorateClass([
|
|
|
498
431
|
__decorateClass([
|
|
499
432
|
defaultValue()
|
|
500
433
|
], DSAInputPhone.prototype, "defaultValue", 2);
|
|
501
|
-
__decorateClass([
|
|
502
|
-
property({ reflect: true })
|
|
503
|
-
], DSAInputPhone.prototype, "size", 2);
|
|
504
|
-
__decorateClass([
|
|
505
|
-
property({ reflect: true })
|
|
506
|
-
], DSAInputPhone.prototype, "variant", 2);
|
|
507
|
-
__decorateClass([
|
|
508
|
-
property()
|
|
509
|
-
], DSAInputPhone.prototype, "label", 2);
|
|
510
|
-
__decorateClass([
|
|
511
|
-
property({ attribute: "help-text" })
|
|
512
|
-
], DSAInputPhone.prototype, "helpText", 2);
|
|
513
434
|
__decorateClass([
|
|
514
435
|
property({ type: Boolean })
|
|
515
436
|
], DSAInputPhone.prototype, "clearable", 2);
|
|
516
|
-
__decorateClass([
|
|
517
|
-
property({ type: Boolean, reflect: true })
|
|
518
|
-
], DSAInputPhone.prototype, "disabled", 2);
|
|
519
437
|
__decorateClass([
|
|
520
438
|
property({ attribute: "input-prefix" })
|
|
521
439
|
], DSAInputPhone.prototype, "inputPrefix", 2);
|
|
522
|
-
__decorateClass([
|
|
523
|
-
property({ type: Boolean, reflect: true })
|
|
524
|
-
], DSAInputPhone.prototype, "readonly", 2);
|
|
525
|
-
__decorateClass([
|
|
526
|
-
property({ type: Boolean })
|
|
527
|
-
], DSAInputPhone.prototype, "error", 2);
|
|
528
|
-
__decorateClass([
|
|
529
|
-
property({
|
|
530
|
-
attribute: "error-message",
|
|
531
|
-
converter: {
|
|
532
|
-
fromAttribute: (value) => value ? value.split("|") : "",
|
|
533
|
-
toAttribute: (value) => {
|
|
534
|
-
if (typeof value === "string") {
|
|
535
|
-
return value;
|
|
536
|
-
} else {
|
|
537
|
-
return value.join("|");
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
})
|
|
542
|
-
], DSAInputPhone.prototype, "errorMessage", 2);
|
|
543
|
-
__decorateClass([
|
|
544
|
-
property({ reflect: true })
|
|
545
|
-
], DSAInputPhone.prototype, "form", 2);
|
|
546
|
-
__decorateClass([
|
|
547
|
-
property({ type: Boolean, reflect: true })
|
|
548
|
-
], DSAInputPhone.prototype, "required", 2);
|
|
549
440
|
__decorateClass([
|
|
550
441
|
property({ type: Boolean })
|
|
551
442
|
], DSAInputPhone.prototype, "autofocus", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderFormElementErrors
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IZBHR7GP.js";
|
|
4
4
|
import {
|
|
5
5
|
waitForEvent
|
|
6
6
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.V7RJROLH.js";
|
|
16
16
|
import {
|
|
17
17
|
LocalizeController
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.4ZYXTXB5.js";
|
|
19
19
|
import {
|
|
20
20
|
watch
|
|
21
21
|
} from "./chunk.6IH66JBY.js";
|