@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
combobox_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4QUJBAX3.js";
|
|
4
4
|
import {
|
|
5
5
|
scrollIntoView
|
|
6
6
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk.V7RJROLH.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -244,6 +244,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
244
244
|
handleTagRemove(event, option) {
|
|
245
245
|
event.stopPropagation();
|
|
246
246
|
if (!this.disabled) {
|
|
247
|
+
this.focusNextTagOrInput(option);
|
|
247
248
|
this.toggleOptionSelection(option, false);
|
|
248
249
|
this.updateComplete.then(() => {
|
|
249
250
|
this.emit("dsa-input");
|
|
@@ -251,6 +252,15 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
251
252
|
});
|
|
252
253
|
}
|
|
253
254
|
}
|
|
255
|
+
focusNextTagOrInput(option) {
|
|
256
|
+
const optionIndex = this.selectedOptions.findIndex((el) => el === option);
|
|
257
|
+
const nextOption = this.selectedOptions[optionIndex + 1];
|
|
258
|
+
if (nextOption) {
|
|
259
|
+
nextOption.focus();
|
|
260
|
+
} else {
|
|
261
|
+
this.displayInput.focus({ preventScroll: true });
|
|
262
|
+
}
|
|
263
|
+
}
|
|
254
264
|
// Gets an array of all <dsa-option> elements
|
|
255
265
|
getAllOptions() {
|
|
256
266
|
if (this.items !== void 0) {
|
|
@@ -571,6 +581,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
571
581
|
const hasClearIcon = this.clearable && !this.disabled && isValueDefined;
|
|
572
582
|
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
|
573
583
|
const selectInputWidth = this.value ? isValueDefined ? this.value.length : 1 : void 0;
|
|
584
|
+
const ariaDescribedBy = `${this.multiple && this.maxOptionsVisible > 0 ? this.selectedOptions.slice(0, this.maxOptionsVisible).map((option) => `tag-${option.value}`).join(" ") : ""} ${this.multiple && this.selectedOptions.length > this.maxOptionsVisible ? "tag-remaining" : ""} ${this.error ? "error-text" : ""} help-text`;
|
|
574
585
|
return html`
|
|
575
586
|
<div
|
|
576
587
|
part="form-control"
|
|
@@ -670,7 +681,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
670
681
|
hasLabel ? void 0 : this.title
|
|
671
682
|
)}
|
|
672
683
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
673
|
-
aria-describedby=${
|
|
684
|
+
aria-describedby=${ariaDescribedBy}
|
|
674
685
|
aria-activedescendant=${(_b = (_a = this.currentOption) == null ? void 0 : _a.id) != null ? _b : ""}
|
|
675
686
|
role="combobox"
|
|
676
687
|
tabindex="0"
|
|
@@ -700,10 +711,16 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
700
711
|
label=${option.getTextLabel()}
|
|
701
712
|
>
|
|
702
713
|
</dsa-tag>
|
|
714
|
+
<span
|
|
715
|
+
id=${`tag-${option.value}`}
|
|
716
|
+
class="hidden-tag-label"
|
|
717
|
+
>${option.getTextLabel()},</span
|
|
718
|
+
>
|
|
703
719
|
`;
|
|
704
720
|
} else if (index === this.maxOptionsVisible) {
|
|
705
721
|
return html`
|
|
706
722
|
<dsa-tag
|
|
723
|
+
id="tag-remaining"
|
|
707
724
|
size=${this.size}
|
|
708
725
|
label="+${this.selectedOptions.length - index}"
|
|
709
726
|
>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
filter_base_styles_default
|
|
3
|
+
} from "./chunk.CZIWWDCG.js";
|
|
4
|
+
|
|
5
|
+
// src/components/filter/filter-select/filter-select.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var filter_select_styles_default = css`
|
|
8
|
+
${filter_base_styles_default}
|
|
9
|
+
|
|
10
|
+
/* Panel */
|
|
11
|
+
.filter__panel {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
min-width: var(--dsa-filter-panel-min-width);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.filter__multiselect-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
padding: var(--dsa-spacing-12) var(--dsa-spacing-8);
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
border-bottom: solid var(--dsa-wc-select-listbox-border-width)
|
|
23
|
+
var(--dsa-wc-select-listbox-border-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.filter__panel dsa-input {
|
|
27
|
+
margin: var(--dsa-spacing-8);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.filter__listbox {
|
|
31
|
+
overflow: auto;
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0;
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.filter__options {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.filter__see-all-button {
|
|
42
|
+
align-self: flex-start;
|
|
43
|
+
margin-inline-start: var(--dsa-spacing-4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.filter__empty_text {
|
|
47
|
+
font: var(--dsa-wc-combobox-empty-label-font);
|
|
48
|
+
color: var(--dsa-wc-combobox-empty-label-color);
|
|
49
|
+
padding-inline: var(--dsa-wc-combobox-listbox-padding-inline);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.filter-select__footer {
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
}
|
|
56
|
+
.filter__multiselect-header__deselect-all {
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
filter_select_styles_default
|
|
63
|
+
};
|
|
@@ -59,9 +59,9 @@ var filter_date_styles_default = css`
|
|
|
59
59
|
margin: 0;
|
|
60
60
|
margin-left: var(--dsa-spacing-8);
|
|
61
61
|
color: var(--dsa-wc-filter-date-input-placeholder-color);
|
|
62
|
+
width: 5rem;
|
|
62
63
|
background: none;
|
|
63
64
|
outline: none;
|
|
64
|
-
text-align: center;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.filter-button--date-active .filter-input {
|
|
@@ -75,10 +75,6 @@ var filter_date_styles_default = css`
|
|
|
75
75
|
appearance: none;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.filter-input::-webkit-input-placeholder {
|
|
79
|
-
visibility: hidden !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
78
|
.filter-input::-webkit-datetime-edit-month-field,
|
|
83
79
|
.filter-input::-webkit-datetime-edit-day-field,
|
|
84
80
|
.filter-input::-webkit-datetime-edit-year-field {
|
|
@@ -94,7 +90,6 @@ var filter_date_styles_default = css`
|
|
|
94
90
|
|
|
95
91
|
.filter-separator {
|
|
96
92
|
color: var(--dsa-color-primitive-colors-neutral-600);
|
|
97
|
-
margin-left: var(--dsa-spacing-8);
|
|
98
93
|
}
|
|
99
94
|
|
|
100
95
|
.datepicker-button::part(base) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
footer_styles_default
|
|
3
|
-
} from "./chunk.QDZIXDQB.js";
|
|
4
1
|
import {
|
|
5
2
|
footerLogoSvg
|
|
6
3
|
} from "./chunk.6EHBM4N7.js";
|
|
4
|
+
import {
|
|
5
|
+
footer_styles_default
|
|
6
|
+
} from "./chunk.QDZIXDQB.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";
|
|
@@ -7,7 +7,7 @@ import { css } from "lit";
|
|
|
7
7
|
var filter_button_styles_default = css`
|
|
8
8
|
${component_styles_default}
|
|
9
9
|
|
|
10
|
-
:host(:focus) {
|
|
10
|
+
:host(:focus-visible):host(:not([drawer])) {
|
|
11
11
|
outline: var(--dsa-wc-focus-ring);
|
|
12
12
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
13
13
|
border-radius: var(--dsa-wc-input-border-radius);
|
|
@@ -35,6 +35,33 @@ var filter_button_styles_default = css`
|
|
|
35
35
|
border: var(--dsa-wc-filter-button-border);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
:host([drawer]) {
|
|
39
|
+
display: flex;
|
|
40
|
+
width: 100%;
|
|
41
|
+
background-color: var(--dsa-wc-drawer-background-color);
|
|
42
|
+
border: unset;
|
|
43
|
+
border-bottom: 1px solid var(--dsa-color-border-default);
|
|
44
|
+
border-radius: 0;
|
|
45
|
+
min-height: var(--dsa-wc-filter-button-drawer-min-height);
|
|
46
|
+
padding: var(--dsa-wc-filter-button-drawer-padding);
|
|
47
|
+
}
|
|
48
|
+
:host([drawer]):host(:focus-visible) {
|
|
49
|
+
outline-offset: -1px;
|
|
50
|
+
}
|
|
51
|
+
:host(:hover) {
|
|
52
|
+
background-color: var(--dsa-wc-filter-button-hover-background-color);
|
|
53
|
+
}
|
|
54
|
+
:host([drawer]) .label {
|
|
55
|
+
color: var(--dsa-color-drawer-on-background);
|
|
56
|
+
}
|
|
57
|
+
:host([drawer]) .expand-icon {
|
|
58
|
+
order: -1;
|
|
59
|
+
}
|
|
60
|
+
:host([drawer]) .value,
|
|
61
|
+
:host([drawer]) .results-badge {
|
|
62
|
+
margin-left: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
38
65
|
:host([disabled]) {
|
|
39
66
|
background-color: var(--dsa-wc-filter-button-disabled-background-color);
|
|
40
67
|
border-color: var(--dsa-wc-filter-button-disabled-border-color);
|
|
@@ -57,9 +84,9 @@ var filter_button_styles_default = css`
|
|
|
57
84
|
font: var(--dsa-wc-filter-button-value-font);
|
|
58
85
|
}
|
|
59
86
|
|
|
60
|
-
:host(:hover),
|
|
61
|
-
:host([aria-expanded='true']),
|
|
62
|
-
:host(:not([selection-count='0'])) {
|
|
87
|
+
:host(:hover):host(:not([drawer])),
|
|
88
|
+
:host([aria-expanded='true']):host(:not([drawer])),
|
|
89
|
+
:host(:not([selection-count='0'])):host(:not([drawer])) {
|
|
63
90
|
border: var(--dsa-wc-filter-button-border-active);
|
|
64
91
|
}
|
|
65
92
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tooltip_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.UVGAHM33.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";
|
|
@@ -48,14 +48,13 @@ var DSATooltip = class extends ShoelaceElement {
|
|
|
48
48
|
this.handleBlur = this.handleBlur.bind(this);
|
|
49
49
|
this.handleClick = this.handleClick.bind(this);
|
|
50
50
|
this.handleFocus = this.handleFocus.bind(this);
|
|
51
|
-
this.
|
|
51
|
+
this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
|
|
52
52
|
this.handleMouseOver = this.handleMouseOver.bind(this);
|
|
53
53
|
this.handleMouseOut = this.handleMouseOut.bind(this);
|
|
54
54
|
this.updateComplete.then(() => {
|
|
55
55
|
this.addEventListener("blur", this.handleBlur, true);
|
|
56
56
|
this.addEventListener("focus", this.handleFocus, true);
|
|
57
57
|
this.addEventListener("click", this.handleClick);
|
|
58
|
-
this.addEventListener("keydown", this.handleKeyDown);
|
|
59
58
|
this.addEventListener("mouseover", this.handleMouseOver);
|
|
60
59
|
this.addEventListener("mouseout", this.handleMouseOut);
|
|
61
60
|
});
|
|
@@ -72,7 +71,7 @@ var DSATooltip = class extends ShoelaceElement {
|
|
|
72
71
|
this.removeEventListener("blur", this.handleBlur, true);
|
|
73
72
|
this.removeEventListener("focus", this.handleFocus, true);
|
|
74
73
|
this.removeEventListener("click", this.handleClick);
|
|
75
|
-
this.removeEventListener("keydown", this.
|
|
74
|
+
this.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
76
75
|
this.removeEventListener("mouseover", this.handleMouseOver);
|
|
77
76
|
this.removeEventListener("mouseout", this.handleMouseOut);
|
|
78
77
|
}
|
|
@@ -95,8 +94,8 @@ var DSATooltip = class extends ShoelaceElement {
|
|
|
95
94
|
this.show();
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
|
-
|
|
99
|
-
if (
|
|
97
|
+
handleDocumentKeyDown(event) {
|
|
98
|
+
if (event.key === "Escape") {
|
|
100
99
|
event.stopPropagation();
|
|
101
100
|
this.hide();
|
|
102
101
|
}
|
|
@@ -129,6 +128,7 @@ var DSATooltip = class extends ShoelaceElement {
|
|
|
129
128
|
return;
|
|
130
129
|
}
|
|
131
130
|
this.emit("dsa-show");
|
|
131
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
132
132
|
await stopAnimations(this.body);
|
|
133
133
|
this.body.hidden = false;
|
|
134
134
|
this.popup.active = true;
|
|
@@ -136,9 +136,11 @@ var DSATooltip = class extends ShoelaceElement {
|
|
|
136
136
|
dir: this.localize.dir()
|
|
137
137
|
});
|
|
138
138
|
await animateTo(this.popup.popup, keyframes, options);
|
|
139
|
+
this.popup.reposition();
|
|
139
140
|
this.emit("dsa-after-show");
|
|
140
141
|
} else {
|
|
141
142
|
this.emit("dsa-hide");
|
|
143
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
142
144
|
await stopAnimations(this.body);
|
|
143
145
|
const { keyframes, options } = getAnimation(this, "tooltip.hide", {
|
|
144
146
|
dir: this.localize.dir()
|
|
@@ -195,6 +197,7 @@ var DSATooltip = class extends ShoelaceElement {
|
|
|
195
197
|
flip
|
|
196
198
|
shift
|
|
197
199
|
arrow
|
|
200
|
+
hover-bridge
|
|
198
201
|
>
|
|
199
202
|
<slot slot="anchor" aria-describedby="tooltip"></slot>
|
|
200
203
|
|
|
@@ -36,6 +36,12 @@ var drawer_styles_default = css`
|
|
|
36
36
|
z-index: var(--dsa-wc-z-index-drawer);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.drawer--filters {
|
|
40
|
+
--header-spacing: var(--dsa-wc-drawer-filters-spacing);
|
|
41
|
+
--body-spacing: 0;
|
|
42
|
+
--footer-spacing: var(--dsa-wc-drawer-filters-spacing);
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
.drawer__panel {
|
|
40
46
|
position: absolute;
|
|
41
47
|
display: flex;
|
|
@@ -90,6 +96,11 @@ var drawer_styles_default = css`
|
|
|
90
96
|
|
|
91
97
|
.drawer__header {
|
|
92
98
|
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
.drawer--filters .drawer__header {
|
|
102
|
+
border-bottom: 1px solid var(--dsa-color-border-default);
|
|
103
|
+
min-height: var(--dsa-wc-drawer-filters-header-min-height);
|
|
93
104
|
}
|
|
94
105
|
|
|
95
106
|
.drawer__title {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
input_mask_styles_default
|
|
3
|
-
} from "./chunk.4DRKFRDB.js";
|
|
4
1
|
import {
|
|
5
2
|
maskedValueToRawValue,
|
|
6
3
|
rawValueToMaskedValue,
|
|
7
4
|
stripSpecialChars
|
|
8
5
|
} from "./chunk.7OLEA3GQ.js";
|
|
6
|
+
import {
|
|
7
|
+
input_mask_styles_default
|
|
8
|
+
} from "./chunk.BNPEW3RO.js";
|
|
9
9
|
import {
|
|
10
10
|
defaultValue
|
|
11
11
|
} from "./chunk.CMJ2SRTL.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk.YIY5RM53.js";
|
|
18
18
|
import {
|
|
19
19
|
LocalizeController
|
|
20
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
21
21
|
import {
|
|
22
22
|
watch
|
|
23
23
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -215,6 +215,7 @@ var DSAInputMask = class extends ShoelaceElement {
|
|
|
215
215
|
const hasLabelSlot = this.hasSlotController.test("label");
|
|
216
216
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
217
217
|
const hasPrefixIcon = this.hasSlotController.test("prefix");
|
|
218
|
+
const hasSuffixIcon = this.hasSlotController.test("suffix");
|
|
218
219
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
219
220
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
220
221
|
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
@@ -271,8 +272,7 @@ var DSAInputMask = class extends ShoelaceElement {
|
|
|
271
272
|
})} aria-placeholder=${placeholder} aria-hidden="true"
|
|
272
273
|
>
|
|
273
274
|
<span class="input-mask__value" aria-hidden="true">${this.maskedValue}</span>
|
|
274
|
-
${placeholder}</div
|
|
275
|
-
>
|
|
275
|
+
${placeholder}</div>
|
|
276
276
|
|
|
277
277
|
<input
|
|
278
278
|
part="input"
|
|
@@ -311,7 +311,7 @@ var DSAInputMask = class extends ShoelaceElement {
|
|
|
311
311
|
@blur=${this.handleBlur}
|
|
312
312
|
/>
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
${hasSuffixIcon ? html`<slot name="suffix" class="input-mask__suffix"></slot>` : ""}
|
|
315
315
|
|
|
316
316
|
${hasClearIcon ? html`
|
|
317
317
|
<button
|
|
@@ -48,6 +48,26 @@ var popup_styles_default = css`
|
|
|
48
48
|
background: var(--arrow-color);
|
|
49
49
|
z-index: -1;
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
/* Hover bridge */
|
|
53
|
+
.popup-hover-bridge:not(.popup-hover-bridge--visible) {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
.popup-hover-bridge {
|
|
57
|
+
position: fixed;
|
|
58
|
+
z-index: calc(var(--dsa-wc-z-index-dropdown) - 1);
|
|
59
|
+
top: 0;
|
|
60
|
+
right: 0;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
left: 0;
|
|
63
|
+
clip-path: polygon(
|
|
64
|
+
var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
|
|
65
|
+
var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
|
|
66
|
+
var(--hover-bridge-bottom-right-x, 0)
|
|
67
|
+
var(--hover-bridge-bottom-right-y, 0),
|
|
68
|
+
var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
51
71
|
`;
|
|
52
72
|
|
|
53
73
|
export {
|