@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
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FilterBase
|
|
3
|
+
} from "./chunk.EWT3XVAN.js";
|
|
4
|
+
import {
|
|
5
|
+
filter_counter_styles_default
|
|
6
|
+
} from "./chunk.GBE3NP7T.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.6IH66JBY.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk.6M63UXML.js";
|
|
13
|
+
|
|
14
|
+
// src/components/filter/filter-counter/filter-counter.ts
|
|
15
|
+
import { html } from "lit";
|
|
16
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
17
|
+
var DSAFilterCounter = class extends FilterBase {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.value = "";
|
|
21
|
+
this.defaultValue = "";
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback();
|
|
25
|
+
this.tempValue = this.value === "" ? this.defaultValue : this.value;
|
|
26
|
+
}
|
|
27
|
+
handleInput(event) {
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
this.tempValue = this.filterInput.value;
|
|
30
|
+
}
|
|
31
|
+
handleDecrease() {
|
|
32
|
+
if (this.tempValue === "") {
|
|
33
|
+
this.tempValue = this.defaultValue !== "" ? this.defaultValue : "0";
|
|
34
|
+
} else if (!this.min || parseFloat(this.tempValue) > this.min) {
|
|
35
|
+
this.tempValue = `${parseFloat(this.tempValue) - 1}`;
|
|
36
|
+
this.emit("dsa-input");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
handleIncrease() {
|
|
40
|
+
if (this.tempValue === "") {
|
|
41
|
+
this.tempValue = this.defaultValue !== "" ? this.defaultValue : "0";
|
|
42
|
+
} else if (!this.max || parseFloat(this.tempValue) < this.max) {
|
|
43
|
+
this.tempValue = `${parseFloat(this.tempValue) + 1}`;
|
|
44
|
+
this.emit("dsa-input");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
handleReset() {
|
|
48
|
+
this.tempValue = this.defaultValue;
|
|
49
|
+
this.emit("dsa-input");
|
|
50
|
+
this.filterInput.focus({ preventScroll: true });
|
|
51
|
+
}
|
|
52
|
+
handleSubmit() {
|
|
53
|
+
this.value = this.tempValue;
|
|
54
|
+
this.emit("dsa-submit");
|
|
55
|
+
this.hide();
|
|
56
|
+
this.filterTrigger.focus({ preventScroll: true });
|
|
57
|
+
}
|
|
58
|
+
handleValueChange() {
|
|
59
|
+
if (this.value !== "") {
|
|
60
|
+
this.tempValue = this.value === "" ? this.defaultValue : this.value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
handleTempValueChange() {
|
|
64
|
+
if (this.drawer) {
|
|
65
|
+
this.value = this.tempValue;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
handleFilterCounterOpenChange() {
|
|
69
|
+
if (!this.open) {
|
|
70
|
+
this.tempValue = this.value === "" ? this.defaultValue : this.value;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
renderPanelContent() {
|
|
74
|
+
return html`
|
|
75
|
+
<div class="filter__content">
|
|
76
|
+
<dsa-icon-button
|
|
77
|
+
name="remove"
|
|
78
|
+
variant="secondary"
|
|
79
|
+
size="xlarge"
|
|
80
|
+
label=${this.localize.term("decrease")}
|
|
81
|
+
@click=${this.handleDecrease}
|
|
82
|
+
?disabled=${this.min && parseFloat(this.tempValue) <= this.min}
|
|
83
|
+
class="filter__decrease"
|
|
84
|
+
></dsa-icon-button>
|
|
85
|
+
<dsa-input
|
|
86
|
+
type="number"
|
|
87
|
+
.value=${this.tempValue}
|
|
88
|
+
@input=${this.handleInput}
|
|
89
|
+
min=${this.min}
|
|
90
|
+
max=${this.max}
|
|
91
|
+
variant=${this.drawer ? "layer" : "base"}
|
|
92
|
+
title=${this.label}
|
|
93
|
+
aria-label=${this.label}
|
|
94
|
+
></dsa-input>
|
|
95
|
+
<dsa-icon-button
|
|
96
|
+
name="add"
|
|
97
|
+
variant="secondary"
|
|
98
|
+
size="xlarge"
|
|
99
|
+
label=${this.localize.term("increase")}
|
|
100
|
+
@click=${this.handleIncrease}
|
|
101
|
+
?disabled=${this.max && parseFloat(this.tempValue) >= this.max}
|
|
102
|
+
class="filter__increase"
|
|
103
|
+
></dsa-icon-button>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="filter__footer">
|
|
107
|
+
<dsa-button
|
|
108
|
+
variant="tertiary"
|
|
109
|
+
size="small"
|
|
110
|
+
@click=${this.handleReset}
|
|
111
|
+
class="filter__reset"
|
|
112
|
+
?disabled=${this.tempValue === this.defaultValue}
|
|
113
|
+
>
|
|
114
|
+
<dsa-icon name="restart_alt" slot="prefix"></dsa-icon>
|
|
115
|
+
${this.localize.term("reinitialize")}
|
|
116
|
+
</dsa-button>
|
|
117
|
+
|
|
118
|
+
${!this.drawer ? html`
|
|
119
|
+
<dsa-button
|
|
120
|
+
variant="primary"
|
|
121
|
+
size="small"
|
|
122
|
+
@click=${this.handleSubmit}
|
|
123
|
+
class="filter__submit"
|
|
124
|
+
?disabled=${this.min && parseFloat(this.tempValue) < this.min || this.max && parseFloat(this.tempValue) > this.max}
|
|
125
|
+
>
|
|
126
|
+
${this.localize.term("validate")}
|
|
127
|
+
</dsa-button>
|
|
128
|
+
` : ""}
|
|
129
|
+
</div>
|
|
130
|
+
`;
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
DSAFilterCounter.styles = filter_counter_styles_default;
|
|
134
|
+
__decorateClass([
|
|
135
|
+
query("dsa-input")
|
|
136
|
+
], DSAFilterCounter.prototype, "filterInput", 2);
|
|
137
|
+
__decorateClass([
|
|
138
|
+
query(".filter__decrease")
|
|
139
|
+
], DSAFilterCounter.prototype, "decreaseButton", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
query(".filter__increase")
|
|
142
|
+
], DSAFilterCounter.prototype, "increaseButton", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
query(".filter__reset")
|
|
145
|
+
], DSAFilterCounter.prototype, "resetButton", 2);
|
|
146
|
+
__decorateClass([
|
|
147
|
+
query(".filter__submit")
|
|
148
|
+
], DSAFilterCounter.prototype, "submitButton", 2);
|
|
149
|
+
__decorateClass([
|
|
150
|
+
state()
|
|
151
|
+
], DSAFilterCounter.prototype, "tempValue", 2);
|
|
152
|
+
__decorateClass([
|
|
153
|
+
property({ reflect: true })
|
|
154
|
+
], DSAFilterCounter.prototype, "value", 2);
|
|
155
|
+
__decorateClass([
|
|
156
|
+
property({ attribute: "default-value" })
|
|
157
|
+
], DSAFilterCounter.prototype, "defaultValue", 2);
|
|
158
|
+
__decorateClass([
|
|
159
|
+
property()
|
|
160
|
+
], DSAFilterCounter.prototype, "min", 2);
|
|
161
|
+
__decorateClass([
|
|
162
|
+
property()
|
|
163
|
+
], DSAFilterCounter.prototype, "max", 2);
|
|
164
|
+
__decorateClass([
|
|
165
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
166
|
+
], DSAFilterCounter.prototype, "handleValueChange", 1);
|
|
167
|
+
__decorateClass([
|
|
168
|
+
watch("tempValue", { waitUntilFirstUpdate: true })
|
|
169
|
+
], DSAFilterCounter.prototype, "handleTempValueChange", 1);
|
|
170
|
+
__decorateClass([
|
|
171
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
172
|
+
], DSAFilterCounter.prototype, "handleFilterCounterOpenChange", 1);
|
|
173
|
+
DSAFilterCounter = __decorateClass([
|
|
174
|
+
customElement("dsa-filter-counter")
|
|
175
|
+
], DSAFilterCounter);
|
|
176
|
+
|
|
177
|
+
export {
|
|
178
|
+
DSAFilterCounter
|
|
179
|
+
};
|
|
@@ -73,6 +73,7 @@ var select_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 {
|
|
@@ -393,6 +394,10 @@ var select_styles_default = css`
|
|
|
393
394
|
font-size: var(--dsa-wc-input-text-field-font-small);
|
|
394
395
|
padding-inline: var(--dsa-wc-select-listbox-padding-inline);
|
|
395
396
|
}
|
|
397
|
+
|
|
398
|
+
.hidden-tag-label {
|
|
399
|
+
display: none;
|
|
400
|
+
}
|
|
396
401
|
`;
|
|
397
402
|
|
|
398
403
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filter_button_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VNMJ2D4A.js";
|
|
4
4
|
import {
|
|
5
5
|
LocalizeController
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -27,6 +27,7 @@ var DSAFilterButton = class extends ShoelaceElement {
|
|
|
27
27
|
this.tabindex = 0;
|
|
28
28
|
this.disabled = false;
|
|
29
29
|
this.readonly = false;
|
|
30
|
+
this.drawer = false;
|
|
30
31
|
}
|
|
31
32
|
connectedCallback() {
|
|
32
33
|
super.connectedCallback();
|
|
@@ -45,7 +46,7 @@ var DSAFilterButton = class extends ShoelaceElement {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
handleDisabledChange() {
|
|
48
|
-
this.tabindex = this.disabled
|
|
49
|
+
this.tabindex = this.disabled ? -1 : 0;
|
|
49
50
|
this.setAttribute(
|
|
50
51
|
"aria-disabled",
|
|
51
52
|
this.disabled || this.readonly ? "true" : "false"
|
|
@@ -54,7 +55,7 @@ var DSAFilterButton = class extends ShoelaceElement {
|
|
|
54
55
|
render() {
|
|
55
56
|
return html`
|
|
56
57
|
<span class="label"
|
|
57
|
-
>${`${this.label}${this.selectionCount > 0 ? " : " : ""}`}</span
|
|
58
|
+
>${`${this.label}${this.selectionCount > 0 && !this.drawer ? " : " : ""}`}</span
|
|
58
59
|
>
|
|
59
60
|
|
|
60
61
|
${this.selectionCount > 1 ? html` <span class="results-badge"> ${this.selectionCount} </span> ` : html` <span class="value"> ${this.selectedOption} </span> `}
|
|
@@ -82,6 +83,9 @@ __decorateClass([
|
|
|
82
83
|
__decorateClass([
|
|
83
84
|
property({ type: Boolean, reflect: true })
|
|
84
85
|
], DSAFilterButton.prototype, "readonly", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
property({ type: Boolean, reflect: true })
|
|
88
|
+
], DSAFilterButton.prototype, "drawer", 2);
|
|
85
89
|
__decorateClass([
|
|
86
90
|
watch("selectionCount", { waitUntilFirstUpdate: true })
|
|
87
91
|
], DSAFilterButton.prototype, "handleSelectionCountChange", 1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KOTPR264.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.G3MRVMJ4.js";
|
|
19
19
|
import {
|
|
20
20
|
watch
|
|
21
21
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
drawer_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WQVKSBYD.js";
|
|
4
4
|
import {
|
|
5
5
|
Modal
|
|
6
6
|
} from "./chunk.ISAFRNR2.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk.V7RJROLH.js";
|
|
25
25
|
import {
|
|
26
26
|
LocalizeController
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
28
28
|
import {
|
|
29
29
|
watch
|
|
30
30
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -60,6 +60,7 @@ var DSADrawer = class extends ShoelaceElement {
|
|
|
60
60
|
this.placement = "end";
|
|
61
61
|
this.contained = false;
|
|
62
62
|
this.noHeader = false;
|
|
63
|
+
this.filters = false;
|
|
63
64
|
}
|
|
64
65
|
connectedCallback() {
|
|
65
66
|
super.connectedCallback();
|
|
@@ -247,7 +248,8 @@ var DSADrawer = class extends ShoelaceElement {
|
|
|
247
248
|
"drawer--contained": this.contained,
|
|
248
249
|
"drawer--fixed": !this.contained,
|
|
249
250
|
"drawer--rtl": this.localize.dir() === "rtl",
|
|
250
|
-
"drawer--has-footer": this.hasSlotController.test("footer")
|
|
251
|
+
"drawer--has-footer": this.hasSlotController.test("footer"),
|
|
252
|
+
"drawer--filters": this.filters
|
|
251
253
|
})}
|
|
252
254
|
>
|
|
253
255
|
<div
|
|
@@ -326,6 +328,9 @@ __decorateClass([
|
|
|
326
328
|
__decorateClass([
|
|
327
329
|
property({ attribute: "no-header", type: Boolean, reflect: true })
|
|
328
330
|
], DSADrawer.prototype, "noHeader", 2);
|
|
331
|
+
__decorateClass([
|
|
332
|
+
property({ type: Boolean, reflect: true })
|
|
333
|
+
], DSADrawer.prototype, "filters", 2);
|
|
329
334
|
__decorateClass([
|
|
330
335
|
watch("open", { waitUntilFirstUpdate: true })
|
|
331
336
|
], DSADrawer.prototype, "handleOpenChange", 1);
|
|
@@ -78,20 +78,27 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
78
78
|
firstUpdated() {
|
|
79
79
|
this.formControlController.updateValidity();
|
|
80
80
|
this.allCheckboxes = this.getAllCheckboxes();
|
|
81
|
-
this.
|
|
81
|
+
this.observeSlottedElements();
|
|
82
82
|
}
|
|
83
83
|
// A change of attributes on the slotted elements does not trigger the "slotchange" event, so we add an observer
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
observeSlottedElements() {
|
|
85
|
+
this.slottedElementsObserver = new MutationObserver((mutationsList) => {
|
|
86
|
+
let needsUpdate = false;
|
|
86
87
|
mutationsList.forEach((mutation) => {
|
|
87
|
-
if (mutation.type === "attributes") {
|
|
88
|
-
|
|
88
|
+
if (mutation.type === "attributes" || mutation.type === "childList") {
|
|
89
|
+
needsUpdate = true;
|
|
89
90
|
}
|
|
90
91
|
});
|
|
92
|
+
if (needsUpdate) {
|
|
93
|
+
this.handleSlottedElementChange();
|
|
94
|
+
}
|
|
91
95
|
});
|
|
92
96
|
[...this.defaultSlot.assignedElements({ flatten: true })].forEach(
|
|
93
97
|
(element) => {
|
|
94
|
-
|
|
98
|
+
this.slottedElementsObserver.observe(element, {
|
|
99
|
+
attributes: true,
|
|
100
|
+
childList: true
|
|
101
|
+
});
|
|
95
102
|
}
|
|
96
103
|
);
|
|
97
104
|
}
|
|
@@ -165,31 +172,34 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
165
172
|
checkboxToFocus.focus();
|
|
166
173
|
}
|
|
167
174
|
}
|
|
168
|
-
|
|
175
|
+
handleSlottedElementChange() {
|
|
169
176
|
var _a;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
this.
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
this.allCheckboxes = this.getAllCheckboxes();
|
|
178
|
+
this.allCheckboxes.forEach((checkbox) => {
|
|
179
|
+
if (this.disabled) {
|
|
180
|
+
checkbox.disabled = true;
|
|
181
|
+
}
|
|
182
|
+
if (this.readonly) {
|
|
183
|
+
checkbox.readonly = true;
|
|
184
|
+
}
|
|
185
|
+
checkbox.checked = this.value.includes(checkbox.value);
|
|
186
|
+
});
|
|
187
|
+
this.hasCheckboxButtons = this.allCheckboxes.some(
|
|
188
|
+
(checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-button"
|
|
189
|
+
);
|
|
190
|
+
if (this.hasCheckboxButtons) {
|
|
191
|
+
const buttonGroup = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
192
|
+
"dsa-internal-button-group"
|
|
183
193
|
);
|
|
184
|
-
if (
|
|
185
|
-
|
|
186
|
-
"dsa-internal-button-group"
|
|
187
|
-
);
|
|
188
|
-
if (buttonGroup) {
|
|
189
|
-
buttonGroup.disableRole = true;
|
|
190
|
-
}
|
|
194
|
+
if (buttonGroup) {
|
|
195
|
+
buttonGroup.disableRole = true;
|
|
191
196
|
}
|
|
192
|
-
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
handleSlotChange() {
|
|
200
|
+
if (customElements.get("dsa-checkbox") || customElements.get("dsa-checkbox-button")) {
|
|
201
|
+
this.handleSlottedElementChange();
|
|
202
|
+
this.observeSlottedElements();
|
|
193
203
|
} else {
|
|
194
204
|
customElements.whenDefined("dsa-checkbox").then(() => this.handleSlotChange());
|
|
195
205
|
customElements.whenDefined("dsa-checkbox-button").then(() => this.handleSlotChange());
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSASelect
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EY6DBOBY.js";
|
|
4
|
+
import {
|
|
5
|
+
getPhoneConfig
|
|
6
|
+
} from "./chunk.65HTBW2L.js";
|
|
7
|
+
import {
|
|
8
|
+
input_phone_styles_default
|
|
9
|
+
} from "./chunk.HSLR5GY4.js";
|
|
4
10
|
import {
|
|
5
11
|
frenchFlagOption,
|
|
6
|
-
frenchFlagSelect,
|
|
7
12
|
frenchNumberPrefix,
|
|
8
13
|
phonePrefixOptions
|
|
9
14
|
} from "./chunk.ESYJVRG3.js";
|
|
@@ -12,12 +17,6 @@ import {
|
|
|
12
17
|
rawValueToMaskedValue,
|
|
13
18
|
stripSpecialChars
|
|
14
19
|
} from "./chunk.7OLEA3GQ.js";
|
|
15
|
-
import {
|
|
16
|
-
getPhoneConfig
|
|
17
|
-
} from "./chunk.65HTBW2L.js";
|
|
18
|
-
import {
|
|
19
|
-
input_phone_styles_default
|
|
20
|
-
} from "./chunk.43EIYNTL.js";
|
|
21
20
|
import {
|
|
22
21
|
defaultValue
|
|
23
22
|
} from "./chunk.CMJ2SRTL.js";
|
|
@@ -136,22 +135,8 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
136
135
|
this.emit("dsa-input");
|
|
137
136
|
}
|
|
138
137
|
willUpdate(changedProperties) {
|
|
139
|
-
if (changedProperties.has("phonePrefix")
|
|
140
|
-
|
|
141
|
-
this.phonePrefix = changedProperties.get("phonePrefix");
|
|
142
|
-
}
|
|
143
|
-
if (this.phoneNumber.length === 0) {
|
|
144
|
-
this.value = "";
|
|
145
|
-
} else {
|
|
146
|
-
const placeholderLength = stripSpecialChars(this.placeholder).length;
|
|
147
|
-
this.value = `${this.phonePrefix}${this.phoneNumber.substring(
|
|
148
|
-
0,
|
|
149
|
-
placeholderLength
|
|
150
|
-
)}`;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
if (changedProperties.has("value")) {
|
|
154
|
-
this.setPhoneFromValue(this.value);
|
|
138
|
+
if (changedProperties.has("phonePrefix") && !frenchNumberPrefix.includes(this.phonePrefix)) {
|
|
139
|
+
this.phonePrefix = changedProperties.get("phonePrefix");
|
|
155
140
|
}
|
|
156
141
|
}
|
|
157
142
|
setPhoneFromValue(value) {
|
|
@@ -164,22 +149,28 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
164
149
|
const number = value.replace(prefix, "").substring(0, placeholderLength);
|
|
165
150
|
this.phonePrefix = prefix;
|
|
166
151
|
this.phoneNumber = number;
|
|
167
|
-
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
updateValue() {
|
|
155
|
+
if (this.phoneNumber.length === 0) {
|
|
156
|
+
this.value = "";
|
|
157
|
+
} else {
|
|
158
|
+
const placeholderLength = stripSpecialChars(this.placeholder).length;
|
|
159
|
+
this.value = `${this.phonePrefix}${this.phoneNumber.substring(
|
|
160
|
+
0,
|
|
161
|
+
placeholderLength
|
|
162
|
+
)}`;
|
|
168
163
|
}
|
|
169
164
|
}
|
|
170
165
|
// Select handlers
|
|
171
166
|
handlePhonePrefixChange(event) {
|
|
167
|
+
event.stopPropagation();
|
|
172
168
|
const { target } = event;
|
|
173
169
|
if (target instanceof DSASelect) {
|
|
174
170
|
this.phonePrefix = target.value;
|
|
171
|
+
this.updateValue();
|
|
172
|
+
this.emit("dsa-change");
|
|
175
173
|
}
|
|
176
|
-
this.emit("dsa-change");
|
|
177
|
-
}
|
|
178
|
-
handlePhonePrefixKeydown(event) {
|
|
179
|
-
if (event.key === "Tab") {
|
|
180
|
-
this.phonePrefixEl.hide();
|
|
181
|
-
}
|
|
182
|
-
this.emit("dsa-change");
|
|
183
174
|
}
|
|
184
175
|
// Input Mask handlers
|
|
185
176
|
handleChange(event) {
|
|
@@ -187,8 +178,9 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
187
178
|
if (target instanceof HTMLInputElement) {
|
|
188
179
|
const strippedValue = stripSpecialChars(target.value);
|
|
189
180
|
this.phoneNumber = strippedValue;
|
|
181
|
+
this.updateValue();
|
|
182
|
+
this.emit("dsa-change");
|
|
190
183
|
}
|
|
191
|
-
this.emit("dsa-change");
|
|
192
184
|
}
|
|
193
185
|
handleKeyDown(event) {
|
|
194
186
|
const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
@@ -244,6 +236,9 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
244
236
|
await this.updateComplete;
|
|
245
237
|
this.formControlController.updateValidity();
|
|
246
238
|
}
|
|
239
|
+
handlePhoneChange() {
|
|
240
|
+
this.updateValue();
|
|
241
|
+
}
|
|
247
242
|
/** Sets focus on the input. */
|
|
248
243
|
focus(options) {
|
|
249
244
|
this.inputEl.focus(options);
|
|
@@ -355,12 +350,10 @@ var DSAInputPhone = class extends ShoelaceElement {
|
|
|
355
350
|
hoist
|
|
356
351
|
.size=${this.size}
|
|
357
352
|
@dsa-change=${this.handlePhonePrefixChange}
|
|
358
|
-
@keydown=${this.handlePhonePrefixKeydown}
|
|
359
353
|
enterkeyhint="enter"
|
|
360
354
|
display-value
|
|
361
355
|
no-sync-width
|
|
362
356
|
>
|
|
363
|
-
${frenchFlagSelect}
|
|
364
357
|
${phonePrefixOptions.map((option, index) => {
|
|
365
358
|
return html`
|
|
366
359
|
<dsa-option value=${option.value} .size=${this.size}>
|
|
@@ -558,6 +551,10 @@ __decorateClass([
|
|
|
558
551
|
__decorateClass([
|
|
559
552
|
watch("value", { waitUntilFirstUpdate: true })
|
|
560
553
|
], DSAInputPhone.prototype, "handleValueChange", 1);
|
|
554
|
+
__decorateClass([
|
|
555
|
+
watch("phonePrefix"),
|
|
556
|
+
watch("phoneNumber")
|
|
557
|
+
], DSAInputPhone.prototype, "handlePhoneChange", 1);
|
|
561
558
|
DSAInputPhone = __decorateClass([
|
|
562
559
|
customElement("dsa-input-phone")
|
|
563
560
|
], DSAInputPhone);
|
|
@@ -64,11 +64,13 @@ var range_slider_styles_default = css`
|
|
|
64
64
|
.from-range-slider--focused::-webkit-slider-thumb,
|
|
65
65
|
.to-range-slider--focused::-webkit-slider-thumb {
|
|
66
66
|
outline: var(--dsa-wc-focus-ring);
|
|
67
|
+
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
.from-range-slider--focused::-moz-range-thumb,
|
|
70
71
|
.to-range-slider--focused::-moz-range-thumb {
|
|
71
72
|
outline: var(--dsa-wc-focus-ring);
|
|
73
|
+
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
.from-range-slider--disabled::-webkit-slider-thumb,
|
|
@@ -22,8 +22,30 @@ var checkbox_button_styles_default = css`
|
|
|
22
22
|
border-color: var(--dsa-wc-toggle-button-border-color);
|
|
23
23
|
color: var(--dsa-wc-toggle-button-color);
|
|
24
24
|
border-width: 1px;
|
|
25
|
-
|
|
25
|
+
border-style: solid;
|
|
26
26
|
font-weight: 400;
|
|
27
|
+
height: auto;
|
|
28
|
+
white-space: normal;
|
|
29
|
+
text-align: left;
|
|
30
|
+
line-height: 130%;
|
|
31
|
+
}
|
|
32
|
+
.button--toggle.button--small {
|
|
33
|
+
min-height: var(--dsa-wc-form-input-height-small);
|
|
34
|
+
}
|
|
35
|
+
.button--toggle.button--medium {
|
|
36
|
+
min-height: var(--dsa-wc-form-input-height);
|
|
37
|
+
}
|
|
38
|
+
.button--toggle.button--large {
|
|
39
|
+
min-height: var(--dsa-wc-form-input-height-large);
|
|
40
|
+
}
|
|
41
|
+
.button--toggle.button--small .button__label {
|
|
42
|
+
padding-block: 4px;
|
|
43
|
+
}
|
|
44
|
+
.button--toggle.button--medium .button__label {
|
|
45
|
+
padding-block: 8px;
|
|
46
|
+
}
|
|
47
|
+
.button--toggle.button--large .button__label {
|
|
48
|
+
padding-block: 10px;
|
|
27
49
|
}
|
|
28
50
|
|
|
29
51
|
.button--toggle:hover {
|