@ds-autonomie/web-components 1.16.2 → 1.18.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 +40 -0
- package/dist/chunks/{chunk.VC3XT47N.js → chunk.26R2GJ3D.js} +24 -46
- package/dist/chunks/{chunk.RG342A22.js → chunk.2GIZK5OL.js} +5 -5
- package/dist/chunks/{chunk.MXDA7QXL.js → chunk.33YIN2OK.js} +12 -9
- package/dist/chunks/{chunk.GYJZ3E7K.js → chunk.3RD6XYCZ.js} +1 -1
- package/dist/chunks/{chunk.JHPIOVRD.js → chunk.3RQ3AMTB.js} +4 -4
- package/dist/chunks/{chunk.VJRDVQTS.js → chunk.4EOWX2QT.js} +1 -1
- package/dist/chunks/{chunk.CZFGLE3Y.js → chunk.4FP4K3F5.js} +20 -0
- package/dist/chunks/chunk.4IGA5VLC.js +308 -0
- package/dist/chunks/{chunk.3UNYRJRK.js → chunk.4IXJVHZ5.js} +1 -1
- package/dist/chunks/{chunk.V7MYOBN4.js → chunk.4L7EJLR4.js} +5 -5
- package/dist/chunks/{chunk.2UZSRWJ7.js → chunk.4QUJBAX3.js} +5 -0
- package/dist/chunks/{chunk.5MXBL3PY.js → chunk.4WWQYBFA.js} +1 -1
- package/dist/chunks/{chunk.E475BLMD.js → chunk.63LGJMTZ.js} +1 -1
- package/dist/chunks/{chunk.45B5UA3U.js → chunk.64JQY57B.js} +1 -1
- package/dist/chunks/{chunk.NXQ42SSB.js → chunk.67S77FO4.js} +145 -313
- package/dist/chunks/{chunk.IDAQJSVV.js → chunk.6GVM3YU4.js} +16 -2
- package/dist/chunks/chunk.6K3AQESH.js +31 -0
- package/dist/chunks/{chunk.Z5LJXDHJ.js → chunk.7PFNOFBI.js} +23 -12
- package/dist/chunks/{chunk.MZF7MK5G.js → chunk.7UPFI4HE.js} +1 -0
- package/dist/chunks/{chunk.7J3HDP6J.js → chunk.AC3HBDLB.js} +1 -1
- package/dist/chunks/{chunk.ORNTGXRO.js → chunk.ARYKCY32.js} +1 -0
- package/dist/chunks/{chunk.KKAOTWJY.js → chunk.ATFH7NZ3.js} +23 -1
- package/dist/chunks/{chunk.7KF6Z37I.js → chunk.ATHRVCEP.js} +1 -1
- package/dist/chunks/{chunk.A2AK34DU.js → chunk.B5XEZJD7.js} +1 -1
- package/dist/chunks/{chunk.KOW5OFDN.js → chunk.BAASBQN5.js} +85 -27
- package/dist/chunks/{chunk.BROIFXIH.js → chunk.BCJMEP6L.js} +1 -1
- package/dist/chunks/chunk.BFVPPAWG.js +277 -0
- package/dist/chunks/{chunk.4DRKFRDB.js → chunk.BNPEW3RO.js} +4 -10
- package/dist/chunks/{chunk.V5J2RAQ5.js → chunk.CFISAFUN.js} +90 -1
- package/dist/chunks/chunk.CFUNT7FK.js +96 -0
- package/dist/chunks/{chunk.OXM5EF3F.js → chunk.CZIWWDCG.js} +7 -18
- package/dist/chunks/{chunk.WHTNMZZS.js → chunk.DLMZ2MN2.js} +4 -4
- package/dist/chunks/{chunk.N2H4K44W.js → chunk.ENMMYFHE.js} +1 -1
- package/dist/chunks/chunk.EWT3XVAN.js +319 -0
- package/dist/chunks/{chunk.6L4HRCFK.js → chunk.EWVN3OFD.js} +1 -1
- package/dist/chunks/{chunk.PNTPO2DN.js → chunk.EY6DBOBY.js} +21 -11
- package/dist/chunks/chunk.FWFLQD5T.js +49 -0
- package/dist/chunks/chunk.FXAGFSAU.js +68 -0
- package/dist/chunks/{chunk.SIPW72IF.js → chunk.FZBZ5HAZ.js} +3 -3
- package/dist/chunks/{chunk.ZYY6O4PU.js → chunk.G2ETLWQZ.js} +5 -16
- package/dist/chunks/{chunk.BAU3732X.js → chunk.G2PBKGYI.js} +3 -2
- package/dist/chunks/{chunk.6L6CZSQX.js → chunk.G3MRVMJ4.js} +2 -16
- package/dist/chunks/chunk.GBE3NP7T.js +36 -0
- package/dist/chunks/{chunk.IQTKA4UT.js → chunk.GCPXZXYD.js} +1 -1
- package/dist/chunks/chunk.H3OIUOL7.js +55 -0
- package/dist/chunks/{chunk.CKBRIIGV.js → chunk.HF2BKQ7K.js} +7 -5
- package/dist/chunks/chunk.HF7GESMZ.js +15 -0
- package/dist/chunks/{chunk.43EIYNTL.js → chunk.HSLR5GY4.js} +9 -3
- package/dist/chunks/{chunk.5MB36CJO.js → chunk.IMRGO6QP.js} +1 -1
- package/dist/chunks/{chunk.JXWCUSV3.js → chunk.ISIFJ4EB.js} +1 -1
- package/dist/chunks/{chunk.O2OMAMMI.js → chunk.IWQVNYM3.js} +1 -1
- package/dist/chunks/{chunk.LFYUJOPU.js → chunk.JH5GMUO7.js} +7 -8
- package/dist/chunks/{chunk.A3RCXT25.js → chunk.JKSDPLU3.js} +1 -1
- package/dist/chunks/{chunk.2PA4QKLT.js → chunk.KKJF6BYU.js} +1 -0
- package/dist/chunks/{chunk.VDOVUA55.js → chunk.KOTPR264.js} +1 -0
- package/dist/chunks/{chunk.4EFJ2NV3.js → chunk.KSF45YRN.js} +7 -2
- package/dist/chunks/{chunk.BHQ3BNQA.js → chunk.L2L37MWZ.js} +10 -12
- package/dist/chunks/{chunk.2P44D5YL.js → chunk.L5DEEGJU.js} +10 -1
- package/dist/chunks/{chunk.Z74FEBJS.js → chunk.L6I3R7R4.js} +1 -1
- package/dist/chunks/{chunk.D433F3FV.js → chunk.LDRVRUQG.js} +1 -0
- package/dist/chunks/{chunk.ZLGBX4RI.js → chunk.LQ42ZLXI.js} +1 -1
- package/dist/chunks/{chunk.VXQMFXV5.js → chunk.M7QP6END.js} +20 -2
- package/dist/chunks/{chunk.WPYZYOD5.js → chunk.MFWGK7WB.js} +1 -1
- package/dist/chunks/{chunk.RBXTMFL6.js → chunk.MNWP6APB.js} +1 -1
- package/dist/chunks/{chunk.H2JSXKGD.js → chunk.MPZ56XQK.js} +4 -0
- package/dist/chunks/{chunk.MUGCPHYQ.js → chunk.MSCG6J3T.js} +4 -4
- package/dist/chunks/chunk.MVFQ3IXQ.js +179 -0
- package/dist/chunks/{chunk.ZWVWEQGL.js → chunk.NDQ5XCHJ.js} +5 -0
- package/dist/chunks/{chunk.GZMFP7UN.js → chunk.O5STCK5X.js} +8 -4
- package/dist/chunks/{chunk.3YSH35MM.js → chunk.O7DWCXXH.js} +1 -1
- package/dist/chunks/{chunk.7DHGAM7P.js → chunk.PC2VIFJW.js} +2 -2
- package/dist/chunks/{chunk.RYD4BVIA.js → chunk.PSAB4UIG.js} +1 -1
- package/dist/chunks/{chunk.GE2PTQVM.js → chunk.PT4W6K27.js} +8 -3
- package/dist/chunks/{chunk.CWHNW2T5.js → chunk.QGNUX2KV.js} +38 -28
- package/dist/chunks/{chunk.EAP74BQL.js → chunk.QVJYJURQ.js} +32 -35
- package/dist/chunks/{chunk.VO6MIHUM.js → chunk.RFQ2Y5SK.js} +2 -0
- package/dist/chunks/{chunk.QR4Z7SWH.js → chunk.RJCFCZY3.js} +1 -1
- package/dist/chunks/{chunk.BQ7R6MC6.js → chunk.RSX6EFCX.js} +23 -1
- package/dist/chunks/{chunk.JR77AUQ7.js → chunk.SH26MYV3.js} +1 -1
- package/dist/chunks/{chunk.TRKYAEYS.js → chunk.SRYBWTPD.js} +143 -240
- package/dist/chunks/{chunk.4V4L6Q7P.js → chunk.TEHCPESC.js} +1 -1
- package/dist/chunks/{chunk.AMIXGL74.js → chunk.TOZLN2DN.js} +20 -3
- package/dist/chunks/chunk.TSW2ZSHN.js +63 -0
- package/dist/chunks/{chunk.IJMNSKEV.js → chunk.TVVACMGN.js} +1 -6
- package/dist/chunks/{chunk.EMJZLQCL.js → chunk.UVGAHM33.js} +2 -1
- package/dist/chunks/{chunk.YG7TOAY3.js → chunk.V5E77HVI.js} +4 -4
- package/dist/chunks/{chunk.SUCVNPSQ.js → chunk.VNMJ2D4A.js} +31 -4
- package/dist/chunks/{chunk.R6572W75.js → chunk.WMZ6HMZN.js} +10 -7
- package/dist/chunks/{chunk.RTEOTFLP.js → chunk.WQVKSBYD.js} +11 -0
- package/dist/chunks/{chunk.QDXCYEAZ.js → chunk.WSP5BYQP.js} +7 -7
- package/dist/chunks/{chunk.XD5JM6WF.js → chunk.WYUQG5BJ.js} +20 -0
- package/dist/chunks/{chunk.N43R5DJN.js → chunk.YU57HFSC.js} +1 -1
- package/dist/chunks/chunk.YVJBJSTS.js +595 -0
- package/dist/chunks/{chunk.WAROYP2H.js → chunk.YXVKJQFH.js} +1 -1
- package/dist/chunks/{chunk.RCSAV4XJ.js → chunk.ZV7TVP6P.js} +1 -1
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.d.ts +2 -0
- package/dist/components/alert/alert.js +5 -5
- package/dist/components/anchor-tag/anchor-tag.js +2 -2
- package/dist/components/anchor-tag/anchor-tag.styles.js +1 -1
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +6 -6
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/calendar.js +3 -3
- package/dist/components/calendar/calendar.styles.js +1 -1
- package/dist/components/callout/callout.d.ts +23 -0
- package/dist/components/callout/callout.js +75 -0
- package/dist/components/callout/callout.styles.d.ts +2 -0
- package/dist/components/callout/callout.styles.js +8 -0
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.js +2 -2
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/checkbox-button/checkbox-button.d.ts +2 -0
- package/dist/components/checkbox-button/checkbox-button.js +5 -5
- package/dist/components/checkbox-button/checkbox-button.styles.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +3 -1
- package/dist/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/combobox/combobox.js +10 -10
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -1
- package/dist/components/dialog/dialog.js +6 -6
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/download-card/download-card.js +3 -3
- 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.d.ts +4 -0
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/filter/filter-base/filter-base.d.ts +49 -0
- package/dist/components/filter/filter-base/filter-base.js +13 -0
- package/dist/components/filter/filter-base/filter-base.styles.d.ts +2 -0
- package/dist/components/filter/filter-base/filter-base.styles.js +8 -0
- package/dist/components/filter/filter-button/filter-button.d.ts +1 -0
- package/dist/components/filter/filter-button/filter-button.js +6 -6
- package/dist/components/filter/filter-button/filter-button.styles.js +1 -1
- package/dist/components/filter/filter-counter/filter-counter.d.ts +5 -42
- package/dist/components/filter/filter-counter/filter-counter.js +7 -5
- package/dist/components/filter/filter-counter/filter-counter.styles.js +2 -1
- package/dist/components/filter/filter-date/filter-date.d.ts +7 -0
- package/dist/components/filter/filter-date/filter-date.js +15 -12
- package/dist/components/filter/filter-date/filter-date.styles.js +1 -1
- package/dist/components/filter/filter-range/filter-range.d.ts +7 -39
- package/dist/components/filter/filter-range/filter-range.js +19 -14
- package/dist/components/filter/filter-range/filter-range.styles.js +2 -1
- package/dist/components/filter/filter-select/filter-select.d.ts +7 -40
- package/dist/components/filter/filter-select/filter-select.js +26 -10
- package/dist/components/filter/filter-select/filter-select.styles.js +2 -2
- package/dist/components/footer/footer.js +3 -3
- package/dist/components/footer-sitemap-item/footer-sitemap-item.js +2 -2
- package/dist/components/footer-sitemap-item/footer-sitemap-item.styles.js +1 -1
- 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 +3 -3
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-search/header-search.d.ts +2 -0
- package/dist/components/header-search/header-search.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon-button/icon-button.js +3 -3
- package/dist/components/input/input.d.ts +8 -18
- package/dist/components/input/input.js +11 -8
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input-date/input-date.d.ts +157 -0
- package/dist/components/input-date/input-date.js +35 -0
- package/dist/components/input-date/input-date.styles.d.ts +2 -0
- package/dist/components/input-date/input-date.styles.js +10 -0
- package/dist/components/input-mask/input-mask.d.ts +2 -0
- package/dist/components/input-mask/input-mask.js +3 -3
- package/dist/components/input-mask/input-mask.styles.js +1 -1
- package/dist/components/input-phone/input-phone.d.ts +4 -2
- package/dist/components/input-phone/input-phone.js +17 -17
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- package/dist/components/menu-accordion/menu-accordion.d.ts +2 -0
- package/dist/components/menu-accordion/menu-accordion.js +5 -5
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/navbar/navbar-link/navbar-link.js +3 -3
- package/dist/components/navbar/navbar-menu/navbar-menu.d.ts +2 -0
- package/dist/components/navbar/navbar-menu/navbar-menu.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/pagination/pagination.js +13 -10
- package/dist/components/popup/popup.d.ts +8 -0
- package/dist/components/popup/popup.js +2 -2
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-button/radio-button.d.ts +2 -0
- package/dist/components/radio-button/radio-button.js +2 -2
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/range-slider/range-slider.js +2 -2
- package/dist/components/range-slider/range-slider.styles.js +1 -1
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +9 -9
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/split-panel/split-panel.d.ts +66 -0
- package/dist/components/split-panel/split-panel.js +21 -0
- package/dist/components/split-panel/split-panel.styles.d.ts +2 -0
- package/dist/components/split-panel/split-panel.styles.js +7 -0
- package/dist/components/step/step.js +6 -6
- package/dist/components/tab/tab.js +2 -2
- 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 +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-container/table-container.styles.js +1 -1
- package/dist/components/table-of-contents/table-of-contents.d.ts +2 -0
- package/dist/components/table-of-contents/table-of-contents.js +2 -2
- package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/tree/tree.js +10 -9
- package/dist/components/tree-item/tree-item.js +7 -7
- package/dist/custom-elements.json +8830 -6464
- package/dist/design-system.d.ts +1 -0
- package/dist/design-system.js +170 -159
- package/dist/internal/test.d.ts +11 -0
- package/dist/internal/test.js +19 -0
- package/dist/themes/dsa-wc-theme.css +52 -13
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +52 -15
- 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/date.d.ts +2 -0
- package/dist/utilities/date.js +9 -0
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -2
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.d.ts +3 -2
- package/dist/utilities/storybook.js +62 -21
- package/dist/vscode.html-custom-data.json +302 -67
- package/dist/web-types.json +1783 -574
- package/package.json +4 -3
- package/dist/chunks/chunk.5BCAEDG4.js +0 -382
- package/dist/chunks/chunk.FZODQJBF.js +0 -99
- package/dist/chunks/chunk.PAF4S7OV.js +0 -484
- package/dist/chunks/chunk.YOLAIUYX.js +0 -95
- package/dist/chunks/{chunk.O2PIWM25.js → chunk.D34QDO4H.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7eddd2f: `input-date`, `filter-date` : utilisation d'un input type texte, possibilité de changer le format de date, prise en compte de différents retours
|
|
8
|
+
- ee7c9eb: `split-panel` : ajout du composant
|
|
9
|
+
- 149e928: "`input`, `input-mask` : ajout d'un champ suffix pour l'affichage d'une icône"
|
|
10
|
+
- 10c08e1: `filters` : utilisation dans un tiroir
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- a6595aa: `table-of-content` : amélioration a11y
|
|
15
|
+
- f3cb140: `dialog` : suppression du tabindex 0 sur le corps du dialog
|
|
16
|
+
- e71a74d: `table-container` : la toolbar est maintenant sticky
|
|
17
|
+
|
|
18
|
+
## 1.17.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 4d2e82a: `alert` : possibilité d'ajouter un entête (balise <h>).
|
|
23
|
+
- 7c07696: `callout` : ajout du composant
|
|
24
|
+
- 46a1090: `card` : le nom accessible de la carte lien provient maintenant de son en-tête
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- bda3c83: `calendar`, `select`, `combobox`, `option` : améliorations a11y
|
|
29
|
+
- d4b8d6c: `tooltip` : possibilité de survoler jusqu'au tooltip sans qu'il se ferme + fermeture à l'appui sur echap
|
|
30
|
+
- 90a4bfc: Amélioration du contraste du contour de focus (focus-ring)
|
|
31
|
+
- f4f3623: `select`, `combobox` : restition des options multiples sélectionnées
|
|
32
|
+
- 511c9fa: `filter-range` : prise en compte des changements de valeurs dynamiques
|
|
33
|
+
- 19482e6: `checkbox-group` : correction du problème de mise à jour d'un checkbox-group suite à la mise à jour des propriétés des checkbox enfants
|
|
34
|
+
- 33c8233: `calendar` : mise à jour de la dépendance wc-calendar
|
|
35
|
+
- dc51df6: `radio-button`, `checkbox-group` : les libéllés trop longs passent maintenant à la ligne; `input-phone` : amélioration pour les petits écrans
|
|
36
|
+
- af72cc8: `input-phone` : correction de la mise à jour de la valeur
|
|
37
|
+
- 9e79832: `input-phone` : suppression du drapeau
|
|
38
|
+
- 5c504f1: `option` : ajout d'une bordure à l'état hover/focus
|
|
39
|
+
- b578686: `pagination` : correction des évènements de changement de page
|
|
40
|
+
- Updated dependencies [9754673]
|
|
41
|
+
- @ds-autonomie/assets@1.4.2
|
|
42
|
+
|
|
3
43
|
## 1.16.2
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -31,21 +31,6 @@ var input_styles_default = css`
|
|
|
31
31
|
border-radius: var(--dsa-wc-input-border-radius);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.input--date {
|
|
35
|
-
overflow: visible;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.input__control--date::-webkit-calendar-picker-indicator {
|
|
39
|
-
display: none;
|
|
40
|
-
-webkit-appearance: none;
|
|
41
|
-
-moz-appearance: none;
|
|
42
|
-
appearance: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.input__control--date::-webkit-input-placeholder {
|
|
46
|
-
visibility: hidden !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
34
|
.input--focused:not(.input--disabled) {
|
|
50
35
|
outline: var(--dsa-wc-focus-ring);
|
|
51
36
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
@@ -197,18 +182,36 @@ var input_styles_default = css`
|
|
|
197
182
|
height: var(--dsa-wc-form-input-height-small);
|
|
198
183
|
}
|
|
199
184
|
|
|
200
|
-
.
|
|
185
|
+
.icon-button,
|
|
186
|
+
.input__suffix {
|
|
187
|
+
flex: 0 0 auto;
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
border: none;
|
|
191
|
+
border-radius: var(--dsa-wc-icon-button-border-radius);
|
|
192
|
+
font-size: inherit;
|
|
193
|
+
padding: var(--padding);
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
transition: var(--dsa-wc-transition-x-fast) color;
|
|
196
|
+
-webkit-appearance: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.input > .input__action-button,
|
|
200
|
+
.input > .input__suffix {
|
|
201
201
|
--padding: var(--dsa-spacing-4);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.input > .input__action-button + .input__action-button {
|
|
205
205
|
margin-right: var(--dsa-wc-input-action-buttons-spacing);
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
|
|
208
|
+
.input > .input__action-button:last-of-type,
|
|
209
|
+
.input > .input__suffix:last-child {
|
|
208
210
|
margin-right: var(--dsa-wc-input-padding-x);
|
|
209
211
|
}
|
|
210
212
|
|
|
211
|
-
.input > .input__control + .input__action-button
|
|
213
|
+
.input > .input__control + .input__action-button,
|
|
214
|
+
.input > .input__control + .input__suffix {
|
|
212
215
|
margin-left: auto;
|
|
213
216
|
z-index: 1;
|
|
214
217
|
}
|
|
@@ -265,21 +268,16 @@ var input_styles_default = css`
|
|
|
265
268
|
fill: var(--dsa-wc-input-icon-color-hover);
|
|
266
269
|
}
|
|
267
270
|
|
|
268
|
-
.icon-button--date {
|
|
269
|
-
--padding: var(--dsa-spacing-4);
|
|
270
|
-
margin-right: var(--dsa-wc-input-padding-x);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
271
|
/*
|
|
274
|
-
* Custom styling for
|
|
272
|
+
* Custom styling for Time type
|
|
275
273
|
*/
|
|
276
274
|
|
|
277
275
|
input[type='time']::-webkit-calendar-picker-indicator {
|
|
278
276
|
display: none;
|
|
279
277
|
}
|
|
280
278
|
|
|
281
|
-
.input__prefix
|
|
282
|
-
.
|
|
279
|
+
.input__prefix,
|
|
280
|
+
.input__suffix {
|
|
283
281
|
color: var(--dsa-wc-input-icon-color);
|
|
284
282
|
pointer-events: none;
|
|
285
283
|
}
|
|
@@ -295,26 +293,6 @@ var input_styles_default = css`
|
|
|
295
293
|
visibility: hidden;
|
|
296
294
|
}
|
|
297
295
|
|
|
298
|
-
.date-popup::part(popup) {
|
|
299
|
-
z-index: var(--dsa-wc-z-index-dropdown);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.date--panel {
|
|
303
|
-
border: 1px solid var(--dsa-wc-filter-date-panel-border-color);
|
|
304
|
-
padding: var(--dsa-wc-filter-date-panel-padding);
|
|
305
|
-
border-radius: var(--dsa-wc-filter-date-panel-border-radius);
|
|
306
|
-
background: var(--dsa-color-background-base);
|
|
307
|
-
box-shadow: var(--dsa-wc-shadow-small);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.date-anchor {
|
|
311
|
-
flex: 1;
|
|
312
|
-
display: flex;
|
|
313
|
-
flex-direction: row;
|
|
314
|
-
align-items: center;
|
|
315
|
-
justify-content: space-between;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
296
|
/* Don't show the browser's password toggle in Edge */
|
|
319
297
|
::-ms-reveal {
|
|
320
298
|
display: none;
|
|
@@ -243,10 +243,10 @@ __decorateClass([
|
|
|
243
243
|
property()
|
|
244
244
|
], DSACheckbox.prototype, "title", 2);
|
|
245
245
|
__decorateClass([
|
|
246
|
-
property()
|
|
246
|
+
property({ reflect: true })
|
|
247
247
|
], DSACheckbox.prototype, "name", 2);
|
|
248
248
|
__decorateClass([
|
|
249
|
-
property()
|
|
249
|
+
property({ reflect: true })
|
|
250
250
|
], DSACheckbox.prototype, "value", 2);
|
|
251
251
|
__decorateClass([
|
|
252
252
|
property({ reflect: true })
|
|
@@ -267,10 +267,10 @@ __decorateClass([
|
|
|
267
267
|
property({ type: Boolean, reflect: true })
|
|
268
268
|
], DSACheckbox.prototype, "readonly", 2);
|
|
269
269
|
__decorateClass([
|
|
270
|
-
property({ type: Boolean })
|
|
270
|
+
property({ type: Boolean, reflect: true })
|
|
271
271
|
], DSACheckbox.prototype, "error", 2);
|
|
272
272
|
__decorateClass([
|
|
273
|
-
property({ attribute: "error-message" })
|
|
273
|
+
property({ attribute: "error-message", reflect: true })
|
|
274
274
|
], DSACheckbox.prototype, "errorMessage", 2);
|
|
275
275
|
__decorateClass([
|
|
276
276
|
property({ reflect: true })
|
|
@@ -279,7 +279,7 @@ __decorateClass([
|
|
|
279
279
|
property({ type: Boolean, reflect: true })
|
|
280
280
|
], DSACheckbox.prototype, "required", 2);
|
|
281
281
|
__decorateClass([
|
|
282
|
-
property({ attribute: "aria-label" })
|
|
282
|
+
property({ attribute: "aria-label", reflect: true })
|
|
283
283
|
], DSACheckbox.prototype, "ariaLabel", 2);
|
|
284
284
|
__decorateClass([
|
|
285
285
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
card_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.M7QP6END.js";
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.YIY5RM53.js";
|
|
@@ -35,7 +35,7 @@ var DSACard = class extends ShoelaceElement {
|
|
|
35
35
|
const isLink = this.isLink();
|
|
36
36
|
const tag = isLink ? literal`a` : literal`div`;
|
|
37
37
|
return html`
|
|
38
|
-
|
|
38
|
+
<div
|
|
39
39
|
part="base"
|
|
40
40
|
class=${classMap({
|
|
41
41
|
card: true,
|
|
@@ -44,16 +44,19 @@ var DSACard = class extends ShoelaceElement {
|
|
|
44
44
|
"card--has-image": this.hasSlotController.test("image"),
|
|
45
45
|
"card--has-header": this.hasSlotController.test("header")
|
|
46
46
|
})}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
>
|
|
48
|
+
<${tag}
|
|
49
|
+
href=${ifDefined(isLink ? this.href : void 0)}
|
|
50
|
+
target=${ifDefined(isLink ? this.target : void 0)}
|
|
51
|
+
download=${ifDefined(isLink ? this.download : void 0)}
|
|
52
|
+
rel=${ifDefined(isLink ? this.rel : void 0)}
|
|
53
|
+
>
|
|
54
|
+
<slot name="header" part="header" class="card__header"></slot>
|
|
55
|
+
</${tag}>
|
|
53
56
|
<slot name="image" part="image" class="card__image"></slot>
|
|
54
57
|
<slot part="body" class="card__body"></slot>
|
|
55
58
|
<slot name="footer" part="footer" class="card__footer"></slot>
|
|
56
|
-
|
|
59
|
+
</div>
|
|
57
60
|
`;
|
|
58
61
|
}
|
|
59
62
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getStepIcon
|
|
3
|
-
} from "./chunk.CCTWXABH.js";
|
|
4
1
|
import {
|
|
5
2
|
step_styles_default
|
|
6
3
|
} from "./chunk.MNCPUPHX.js";
|
|
4
|
+
import {
|
|
5
|
+
getStepIcon
|
|
6
|
+
} from "./chunk.CCTWXABH.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.YIY5RM53.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
13
13
|
import {
|
|
14
14
|
ShoelaceElement
|
|
15
15
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -30,6 +30,12 @@ var option_styles_default = css`
|
|
|
30
30
|
font: var(--dsa-wc-option-small-font);
|
|
31
31
|
padding: var(--dsa-wc-option-small-padding);
|
|
32
32
|
}
|
|
33
|
+
.option--small.option--hover:not(.option--selected):not(.option--disabled),
|
|
34
|
+
.option--small.option--current {
|
|
35
|
+
padding-block: calc(var(--dsa-wc-option-small-padding-y) - 1px);
|
|
36
|
+
padding-left: calc(var(--dsa-wc-option-padding-left) - 1px);
|
|
37
|
+
padding-right: calc(var(--dsa-wc-option-padding-right) - 1px);
|
|
38
|
+
}
|
|
33
39
|
|
|
34
40
|
.option--small dsa-icon,
|
|
35
41
|
.option--small ::slotted(dsa-icon) {
|
|
@@ -41,6 +47,12 @@ var option_styles_default = css`
|
|
|
41
47
|
font: var(--dsa-wc-option-font);
|
|
42
48
|
padding: var(--dsa-wc-option-padding);
|
|
43
49
|
}
|
|
50
|
+
.option--medium.option--hover:not(.option--selected):not(.option--disabled),
|
|
51
|
+
.option--medium.option--current {
|
|
52
|
+
padding-block: calc(var(--dsa-wc-option-medium-padding-y) - 1px);
|
|
53
|
+
padding-left: calc(var(--dsa-wc-option-padding-left) - 1px);
|
|
54
|
+
padding-right: calc(var(--dsa-wc-option-padding-right) - 1px);
|
|
55
|
+
}
|
|
44
56
|
|
|
45
57
|
.option--medium dsa-icon,
|
|
46
58
|
.option--medium ::slotted(dsa-icon) {
|
|
@@ -52,6 +64,12 @@ var option_styles_default = css`
|
|
|
52
64
|
font: var(--dsa-wc-option-large-font);
|
|
53
65
|
padding: var(--dsa-wc-option-large-padding);
|
|
54
66
|
}
|
|
67
|
+
.option--large.option--hover:not(.option--selected):not(.option--disabled),
|
|
68
|
+
.option--large.option--current {
|
|
69
|
+
padding-block: calc(var(--dsa-wc-option-large-padding-y) - 1px);
|
|
70
|
+
padding-left: calc(var(--dsa-wc-option-padding-left) - 1px);
|
|
71
|
+
padding-right: calc(var(--dsa-wc-option-padding-right) - 1px);
|
|
72
|
+
}
|
|
55
73
|
|
|
56
74
|
.option--large dsa-icon,
|
|
57
75
|
.option--large ::slotted(dsa-icon) {
|
|
@@ -60,6 +78,7 @@ var option_styles_default = css`
|
|
|
60
78
|
|
|
61
79
|
.option--hover:not(.option--selected):not(.option--disabled) {
|
|
62
80
|
background-color: var(--dsa-wc-option-hover-color);
|
|
81
|
+
border: 1px solid var(--dsa-wc-option-hover-border-color);
|
|
63
82
|
}
|
|
64
83
|
|
|
65
84
|
.option--error {
|
|
@@ -68,6 +87,7 @@ var option_styles_default = css`
|
|
|
68
87
|
.option--current,
|
|
69
88
|
.option--current.option--disabled {
|
|
70
89
|
background-color: var(--dsa-wc-option-hover-color);
|
|
90
|
+
border: 1px solid var(--dsa-wc-option-hover-border-color);
|
|
71
91
|
}
|
|
72
92
|
|
|
73
93
|
.option--selected.option--current:not(.option--multiple),
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import {
|
|
2
|
+
filter_range_styles_default
|
|
3
|
+
} from "./chunk.FXAGFSAU.js";
|
|
4
|
+
import {
|
|
5
|
+
FilterBase
|
|
6
|
+
} from "./chunk.EWT3XVAN.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.6IH66JBY.js";
|
|
10
|
+
import {
|
|
11
|
+
ifDefinedAndNotEmpty
|
|
12
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
13
|
+
import {
|
|
14
|
+
__decorateClass
|
|
15
|
+
} from "./chunk.6M63UXML.js";
|
|
16
|
+
|
|
17
|
+
// src/components/filter/filter-range/filter-range.ts
|
|
18
|
+
import { html } from "lit";
|
|
19
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
20
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
21
|
+
|
|
22
|
+
// src/internal/debounce.ts
|
|
23
|
+
var TIMER_ID_KEY = Symbol();
|
|
24
|
+
function debounce(delay) {
|
|
25
|
+
return (_target, _propertyKey, descriptor) => {
|
|
26
|
+
const fn = descriptor.value;
|
|
27
|
+
descriptor.value = function valueFn(...args) {
|
|
28
|
+
clearTimeout(this[TIMER_ID_KEY]);
|
|
29
|
+
this[TIMER_ID_KEY] = window.setTimeout(() => {
|
|
30
|
+
fn.apply(this, args);
|
|
31
|
+
}, delay);
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// src/components/filter/filter-range/filter-range.ts
|
|
37
|
+
var RANGE_SLIDER_DEBOUNCE_DELAY = 100;
|
|
38
|
+
var DSAFilterRange = class extends FilterBase {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
this.currentStartValue = "";
|
|
42
|
+
this.currentEndValue = "";
|
|
43
|
+
this.start = "";
|
|
44
|
+
this.end = "";
|
|
45
|
+
this.defaultStart = "";
|
|
46
|
+
this.defaultEnd = "";
|
|
47
|
+
this.slider = false;
|
|
48
|
+
}
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
super.connectedCallback();
|
|
51
|
+
this.handleSliderFromValueChange = this.handleSliderFromValueChange.bind(this);
|
|
52
|
+
this.handleSliderToValueChange = this.handleSliderToValueChange.bind(this);
|
|
53
|
+
this.addEventListener(
|
|
54
|
+
"dsa-slider-from-value-change",
|
|
55
|
+
this.handleSliderFromValueChange
|
|
56
|
+
);
|
|
57
|
+
this.addEventListener(
|
|
58
|
+
"dsa-slider-to-value-change",
|
|
59
|
+
this.handleSliderToValueChange
|
|
60
|
+
);
|
|
61
|
+
this.start = this.start === "" ? this.defaultStart : this.start;
|
|
62
|
+
this.currentStartValue = this.start;
|
|
63
|
+
this.end = this.end === "" ? this.defaultEnd : this.end;
|
|
64
|
+
this.currentEndValue = this.end;
|
|
65
|
+
this.value = this.getRangeValue();
|
|
66
|
+
}
|
|
67
|
+
disconnectedCallback() {
|
|
68
|
+
super.disconnectedCallback();
|
|
69
|
+
this.removeEventListener(
|
|
70
|
+
"dsa-slider-from-value-change",
|
|
71
|
+
this.handleSliderFromValueChange
|
|
72
|
+
);
|
|
73
|
+
this.removeEventListener(
|
|
74
|
+
"dsa-slider-to-value-change",
|
|
75
|
+
this.handleSliderToValueChange
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
handleSliderFromValueChange(event) {
|
|
79
|
+
const value = event.detail.value;
|
|
80
|
+
this.currentStartValue = value;
|
|
81
|
+
}
|
|
82
|
+
handleSliderToValueChange(event) {
|
|
83
|
+
const value = event.detail.value;
|
|
84
|
+
this.currentEndValue = value;
|
|
85
|
+
}
|
|
86
|
+
handleReset() {
|
|
87
|
+
var _a;
|
|
88
|
+
this.currentStartValue = this.defaultStart;
|
|
89
|
+
this.currentEndValue = this.defaultEnd;
|
|
90
|
+
(_a = this.startValueInput) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
91
|
+
}
|
|
92
|
+
handleSubmit() {
|
|
93
|
+
this.start = this.currentStartValue;
|
|
94
|
+
this.end = this.currentEndValue;
|
|
95
|
+
this.value = this.getRangeValue();
|
|
96
|
+
this.emit("dsa-submit");
|
|
97
|
+
this.hide();
|
|
98
|
+
this.filterTrigger.focus({ preventScroll: true });
|
|
99
|
+
}
|
|
100
|
+
handleStartInput(event) {
|
|
101
|
+
const nextStartValue = event.target.value;
|
|
102
|
+
this.currentStartValue = nextStartValue;
|
|
103
|
+
this.emit("dsa-input");
|
|
104
|
+
}
|
|
105
|
+
handleEndInput(event) {
|
|
106
|
+
const nextEndValue = event.target.value;
|
|
107
|
+
this.currentEndValue = nextEndValue;
|
|
108
|
+
this.emit("dsa-input");
|
|
109
|
+
}
|
|
110
|
+
handleStartChange(event) {
|
|
111
|
+
const nextStartValue = event.target.value;
|
|
112
|
+
const currentEndValue = parseFloat(this.currentEndValue);
|
|
113
|
+
if (parseFloat(nextStartValue) <= this.min) {
|
|
114
|
+
this.currentStartValue = `${this.min}`;
|
|
115
|
+
} else if (parseFloat(nextStartValue) <= currentEndValue) {
|
|
116
|
+
this.currentStartValue = nextStartValue;
|
|
117
|
+
} else if (parseFloat(nextStartValue) > currentEndValue) {
|
|
118
|
+
this.currentStartValue = this.currentEndValue;
|
|
119
|
+
}
|
|
120
|
+
this.emit("dsa-change");
|
|
121
|
+
}
|
|
122
|
+
handleEndChange(event) {
|
|
123
|
+
const nextEndValue = event.target.value;
|
|
124
|
+
const currentStartValue = parseFloat(this.currentStartValue);
|
|
125
|
+
if (parseFloat(nextEndValue) >= this.max) {
|
|
126
|
+
this.currentEndValue = `${this.max}`;
|
|
127
|
+
} else if (parseFloat(nextEndValue) >= currentStartValue) {
|
|
128
|
+
this.currentEndValue = nextEndValue;
|
|
129
|
+
} else if (parseFloat(nextEndValue) < currentStartValue) {
|
|
130
|
+
this.currentEndValue = this.currentStartValue;
|
|
131
|
+
}
|
|
132
|
+
this.emit("dsa-change");
|
|
133
|
+
}
|
|
134
|
+
getRangeValue() {
|
|
135
|
+
if (this.start === "" && this.end === "") {
|
|
136
|
+
return "";
|
|
137
|
+
}
|
|
138
|
+
if (this.start === "") {
|
|
139
|
+
return `${this.localize.term("lessThan")} ${this.end}`;
|
|
140
|
+
}
|
|
141
|
+
if (this.end === "") {
|
|
142
|
+
return `${this.localize.term("moreThan")} ${this.start}`;
|
|
143
|
+
}
|
|
144
|
+
return `${this.start} - ${this.end}`;
|
|
145
|
+
}
|
|
146
|
+
handleFilterRangeOpenChange() {
|
|
147
|
+
if (!this.open) {
|
|
148
|
+
this.currentStartValue = this.start === "" ? this.defaultStart : this.start;
|
|
149
|
+
this.currentEndValue = this.end === "" ? this.defaultEnd : this.end;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
handleStartPropChange() {
|
|
153
|
+
if (this.currentStartValue !== this.start) {
|
|
154
|
+
this.currentStartValue = this.start;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
handleEndPropChange() {
|
|
158
|
+
if (this.currentEndValue !== this.end) {
|
|
159
|
+
this.currentEndValue = this.end;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
handleCurrentValuesChange() {
|
|
163
|
+
if (this.drawer) {
|
|
164
|
+
this.start = this.currentStartValue;
|
|
165
|
+
this.end = this.currentEndValue;
|
|
166
|
+
this.value = this.getRangeValue();
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
renderPanelContent() {
|
|
170
|
+
return html`
|
|
171
|
+
<div class="filter__content">
|
|
172
|
+
${this.slider ? html`
|
|
173
|
+
<div class="filter__slider">
|
|
174
|
+
<dsa-range-slider
|
|
175
|
+
from=${ifDefinedAndNotEmpty(
|
|
176
|
+
this.currentStartValue !== "" ? this.currentStartValue : `${this.min}`
|
|
177
|
+
)}
|
|
178
|
+
to=${ifDefinedAndNotEmpty(
|
|
179
|
+
this.currentEndValue !== "" ? this.currentEndValue : `${this.max}`
|
|
180
|
+
)}
|
|
181
|
+
min=${ifDefined(this.min)}
|
|
182
|
+
max=${ifDefined(this.max)}
|
|
183
|
+
label-from=${this.localize.term("min")}
|
|
184
|
+
label-to=${this.localize.term("max")}
|
|
185
|
+
></dsa-range-slider>
|
|
186
|
+
</div>
|
|
187
|
+
` : html``}
|
|
188
|
+
|
|
189
|
+
<div class="filter__content--inputs">
|
|
190
|
+
<dsa-input
|
|
191
|
+
class="start-range__input"
|
|
192
|
+
label=${this.localize.term("min")}
|
|
193
|
+
.value=${this.currentStartValue}
|
|
194
|
+
placeholder=${ifDefinedAndNotEmpty(`${this.min}`)}
|
|
195
|
+
min=${ifDefined(this.min)}
|
|
196
|
+
max=${ifDefined(this.max)}
|
|
197
|
+
type="number"
|
|
198
|
+
variant=${this.drawer ? "layer" : "base"}
|
|
199
|
+
@dsa-input=${this.handleStartInput}
|
|
200
|
+
@dsa-change=${this.handleStartChange}
|
|
201
|
+
></dsa-input>
|
|
202
|
+
<dsa-divider></dsa-divider>
|
|
203
|
+
<dsa-input
|
|
204
|
+
class="end-range__input"
|
|
205
|
+
label=${this.localize.term("max")}
|
|
206
|
+
placeholder=${ifDefinedAndNotEmpty(`${this.max}`)}
|
|
207
|
+
.value=${this.currentEndValue}
|
|
208
|
+
min=${ifDefined(this.min)}
|
|
209
|
+
max=${ifDefined(this.max)}
|
|
210
|
+
type="number"
|
|
211
|
+
variant=${this.drawer ? "layer" : "base"}
|
|
212
|
+
@dsa-input=${this.handleEndInput}
|
|
213
|
+
@dsa-change=${this.handleEndChange}
|
|
214
|
+
></dsa-input>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<div class="filter__footer">
|
|
219
|
+
<dsa-button
|
|
220
|
+
variant="tertiary"
|
|
221
|
+
size="small"
|
|
222
|
+
class="reset__button"
|
|
223
|
+
@click=${this.handleReset}
|
|
224
|
+
?disabled=${this.currentStartValue === this.defaultStart && this.currentEndValue === this.defaultEnd}
|
|
225
|
+
>
|
|
226
|
+
<dsa-icon name="restart_alt" slot="prefix"></dsa-icon>
|
|
227
|
+
${this.localize.term("filterReset")}
|
|
228
|
+
</dsa-button>
|
|
229
|
+
|
|
230
|
+
${!this.drawer ? html`
|
|
231
|
+
<dsa-button
|
|
232
|
+
variant="primary"
|
|
233
|
+
size="small"
|
|
234
|
+
class="submit__button"
|
|
235
|
+
@click=${this.handleSubmit}
|
|
236
|
+
>
|
|
237
|
+
${this.localize.term("filterSubmit")}
|
|
238
|
+
</dsa-button>
|
|
239
|
+
` : ""}
|
|
240
|
+
</div>
|
|
241
|
+
`;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
DSAFilterRange.styles = filter_range_styles_default;
|
|
245
|
+
__decorateClass([
|
|
246
|
+
state()
|
|
247
|
+
], DSAFilterRange.prototype, "currentStartValue", 2);
|
|
248
|
+
__decorateClass([
|
|
249
|
+
state()
|
|
250
|
+
], DSAFilterRange.prototype, "currentEndValue", 2);
|
|
251
|
+
__decorateClass([
|
|
252
|
+
query(".start-range__input")
|
|
253
|
+
], DSAFilterRange.prototype, "startValueInput", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
query(".end-range__input")
|
|
256
|
+
], DSAFilterRange.prototype, "endValueInput", 2);
|
|
257
|
+
__decorateClass([
|
|
258
|
+
query(".reset__button")
|
|
259
|
+
], DSAFilterRange.prototype, "resetButton", 2);
|
|
260
|
+
__decorateClass([
|
|
261
|
+
query(".submit__button")
|
|
262
|
+
], DSAFilterRange.prototype, "submitButton", 2);
|
|
263
|
+
__decorateClass([
|
|
264
|
+
property({ attribute: "start" })
|
|
265
|
+
], DSAFilterRange.prototype, "start", 2);
|
|
266
|
+
__decorateClass([
|
|
267
|
+
property({ attribute: "end" })
|
|
268
|
+
], DSAFilterRange.prototype, "end", 2);
|
|
269
|
+
__decorateClass([
|
|
270
|
+
property({ attribute: "default-start" })
|
|
271
|
+
], DSAFilterRange.prototype, "defaultStart", 2);
|
|
272
|
+
__decorateClass([
|
|
273
|
+
property({ attribute: "default-end" })
|
|
274
|
+
], DSAFilterRange.prototype, "defaultEnd", 2);
|
|
275
|
+
__decorateClass([
|
|
276
|
+
property({ type: Boolean })
|
|
277
|
+
], DSAFilterRange.prototype, "slider", 2);
|
|
278
|
+
__decorateClass([
|
|
279
|
+
property()
|
|
280
|
+
], DSAFilterRange.prototype, "min", 2);
|
|
281
|
+
__decorateClass([
|
|
282
|
+
property()
|
|
283
|
+
], DSAFilterRange.prototype, "max", 2);
|
|
284
|
+
__decorateClass([
|
|
285
|
+
debounce(RANGE_SLIDER_DEBOUNCE_DELAY)
|
|
286
|
+
], DSAFilterRange.prototype, "handleSliderFromValueChange", 1);
|
|
287
|
+
__decorateClass([
|
|
288
|
+
debounce(RANGE_SLIDER_DEBOUNCE_DELAY)
|
|
289
|
+
], DSAFilterRange.prototype, "handleSliderToValueChange", 1);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
292
|
+
], DSAFilterRange.prototype, "handleFilterRangeOpenChange", 1);
|
|
293
|
+
__decorateClass([
|
|
294
|
+
watch("start", { waitUntilFirstUpdate: true })
|
|
295
|
+
], DSAFilterRange.prototype, "handleStartPropChange", 1);
|
|
296
|
+
__decorateClass([
|
|
297
|
+
watch("end", { waitUntilFirstUpdate: true })
|
|
298
|
+
], DSAFilterRange.prototype, "handleEndPropChange", 1);
|
|
299
|
+
__decorateClass([
|
|
300
|
+
watch(["currentStartValue", "currentEndValue"])
|
|
301
|
+
], DSAFilterRange.prototype, "handleCurrentValuesChange", 1);
|
|
302
|
+
DSAFilterRange = __decorateClass([
|
|
303
|
+
customElement("dsa-filter-range")
|
|
304
|
+
], DSAFilterRange);
|
|
305
|
+
|
|
306
|
+
export {
|
|
307
|
+
DSAFilterRange
|
|
308
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getIconLibrary,
|
|
3
|
+
unwatchIcon,
|
|
4
|
+
watchIcon
|
|
5
|
+
} from "./chunk.D34QDO4H.js";
|
|
1
6
|
import {
|
|
2
7
|
requestIcon
|
|
3
8
|
} from "./chunk.23TOS4ZE.js";
|
|
4
9
|
import {
|
|
5
10
|
icon_styles_default
|
|
6
11
|
} from "./chunk.LMJPQPQT.js";
|
|
7
|
-
import {
|
|
8
|
-
getIconLibrary,
|
|
9
|
-
unwatchIcon,
|
|
10
|
-
watchIcon
|
|
11
|
-
} from "./chunk.O2PIWM25.js";
|
|
12
12
|
import {
|
|
13
13
|
watch
|
|
14
14
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -73,6 +73,7 @@ var combobox_styles_default = css`
|
|
|
73
73
|
|
|
74
74
|
.select__display-input::placeholder {
|
|
75
75
|
color: var(--dsa-wc-input-on-base-text-field-placeholder-color);
|
|
76
|
+
opacity: 1;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
.select__display-input:focus {
|
|
@@ -409,6 +410,10 @@ var combobox_styles_default = css`
|
|
|
409
410
|
.select__loading_text > p {
|
|
410
411
|
padding-left: var(--dsa-spacing-8);
|
|
411
412
|
}
|
|
413
|
+
|
|
414
|
+
.hidden-tag-label {
|
|
415
|
+
display: none;
|
|
416
|
+
}
|
|
412
417
|
`;
|
|
413
418
|
|
|
414
419
|
export {
|