@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,35 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filter_select_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TSW2ZSHN.js";
|
|
4
|
+
import {
|
|
5
|
+
FilterBase
|
|
6
|
+
} from "./chunk.EWT3XVAN.js";
|
|
4
7
|
import {
|
|
5
8
|
DSAOption
|
|
6
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.G2PBKGYI.js";
|
|
10
|
+
import {
|
|
11
|
+
DSAInput
|
|
12
|
+
} from "./chunk.YVJBJSTS.js";
|
|
7
13
|
import {
|
|
8
14
|
scrollIntoView
|
|
9
15
|
} from "./chunk.EMIT7S33.js";
|
|
10
16
|
import {
|
|
11
17
|
normalizeStr
|
|
12
18
|
} from "./chunk.U7V5J6UX.js";
|
|
13
|
-
import {
|
|
14
|
-
waitForEvent
|
|
15
|
-
} from "./chunk.B4BZKR24.js";
|
|
16
|
-
import {
|
|
17
|
-
animateTo,
|
|
18
|
-
stopAnimations
|
|
19
|
-
} from "./chunk.2FK6USFR.js";
|
|
20
|
-
import {
|
|
21
|
-
getAnimation,
|
|
22
|
-
setDefaultAnimation
|
|
23
|
-
} from "./chunk.V7RJROLH.js";
|
|
24
|
-
import {
|
|
25
|
-
LocalizeController
|
|
26
|
-
} from "./chunk.6L6CZSQX.js";
|
|
27
19
|
import {
|
|
28
20
|
watch
|
|
29
21
|
} from "./chunk.6IH66JBY.js";
|
|
30
|
-
import {
|
|
31
|
-
ShoelaceElement
|
|
32
|
-
} from "./chunk.YCXTCVAZ.js";
|
|
33
22
|
import {
|
|
34
23
|
__decorateClass
|
|
35
24
|
} from "./chunk.6M63UXML.js";
|
|
@@ -37,11 +26,11 @@ import {
|
|
|
37
26
|
// src/components/filter/filter-select/filter-select.ts
|
|
38
27
|
import { html } from "lit";
|
|
39
28
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
29
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
40
30
|
var OPTION_TAG = "dsa-option";
|
|
41
|
-
var DSAFilterSelect = class extends
|
|
31
|
+
var DSAFilterSelect = class extends FilterBase {
|
|
42
32
|
constructor() {
|
|
43
33
|
super(...arguments);
|
|
44
|
-
this.localize = new LocalizeController(this);
|
|
45
34
|
this.displayLabel = "";
|
|
46
35
|
this.allOptions = [];
|
|
47
36
|
this.selectedOptions = [];
|
|
@@ -54,101 +43,40 @@ var DSAFilterSelect = class extends ShoelaceElement {
|
|
|
54
43
|
this.multiple = false;
|
|
55
44
|
this.maxVisibleListLength = 5;
|
|
56
45
|
this.searchable = false;
|
|
57
|
-
this.open = false;
|
|
58
|
-
this.hoist = false;
|
|
59
|
-
this.label = "";
|
|
60
|
-
this.filterLabel = "";
|
|
61
46
|
this.debounceTimeout = 300;
|
|
62
47
|
this.optionGender = "masculine";
|
|
63
48
|
this.columnsFilter = false;
|
|
64
|
-
this.disabled = false;
|
|
65
|
-
this.readonly = false;
|
|
66
49
|
}
|
|
67
50
|
connectedCallback() {
|
|
68
51
|
super.connectedCallback();
|
|
69
|
-
this.handleDocumentFocusIn = this.handleDocumentFocusIn.bind(this);
|
|
70
|
-
this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this);
|
|
71
52
|
this.allOptions = this.getAllOptions();
|
|
72
53
|
this.nbOptions = this.allOptions.length;
|
|
73
54
|
this.filterOptions();
|
|
74
55
|
}
|
|
75
|
-
addOpenListeners() {
|
|
76
|
-
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
77
|
-
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
78
|
-
}
|
|
79
|
-
removeOpenListeners() {
|
|
80
|
-
document.removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
81
|
-
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
82
|
-
}
|
|
83
|
-
handleFocus() {
|
|
84
|
-
this.emit("dsa-focus");
|
|
85
|
-
}
|
|
86
|
-
handleBlur() {
|
|
87
|
-
this.emit("dsa-blur");
|
|
88
|
-
}
|
|
89
|
-
handleDocumentFocusIn(event) {
|
|
90
|
-
const path = event.composedPath();
|
|
91
|
-
if (this && !path.includes(this)) {
|
|
92
|
-
this.hide();
|
|
93
|
-
this.filterTrigger.focus({ preventScroll: true });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
56
|
handleKeyDown(event) {
|
|
97
|
-
|
|
98
|
-
event.stopPropagation();
|
|
99
|
-
event.preventDefault();
|
|
100
|
-
this.hide();
|
|
101
|
-
this.filterTrigger.focus({ preventScroll: true });
|
|
102
|
-
}
|
|
103
|
-
if (this.open && event.key === "Tab") {
|
|
104
|
-
setTimeout(() => {
|
|
105
|
-
var _a, _b;
|
|
106
|
-
const activeElement = (this == null ? void 0 : this.getRootNode()) instanceof ShadowRoot ? (_b = (_a = document.activeElement) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.activeElement : document.activeElement;
|
|
107
|
-
if (!this || (activeElement == null ? void 0 : activeElement.closest(this.tagName.toLowerCase())) !== this) {
|
|
108
|
-
this.hide();
|
|
109
|
-
this.filterTrigger.focus({ preventScroll: true });
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}
|
|
57
|
+
super.handleKeyDown(event);
|
|
113
58
|
const path = event.composedPath();
|
|
114
|
-
const isFilterTrigger = path.some((el) => el === this.filterTrigger);
|
|
115
59
|
const isOption = path.some((el) => el instanceof DSAOption);
|
|
116
|
-
|
|
60
|
+
const isSearchInput = path.some((el) => el instanceof DSAInput);
|
|
61
|
+
if ((event.key === "Enter" || event.key === " ") && isOption && this.currentOption && !this.currentOption.disabled) {
|
|
117
62
|
event.preventDefault();
|
|
118
|
-
if (
|
|
119
|
-
this.
|
|
120
|
-
|
|
63
|
+
if (this.multiple || this.value.includes(this.currentOption.value)) {
|
|
64
|
+
this.toggleOptionSelection(this.currentOption);
|
|
65
|
+
} else {
|
|
66
|
+
this.setSelectedOptions(this.currentOption);
|
|
121
67
|
}
|
|
122
|
-
|
|
68
|
+
this.updateComplete.then(() => {
|
|
69
|
+
this.emit("dsa-change");
|
|
70
|
+
});
|
|
71
|
+
if (!this.multiple && !this.drawer) {
|
|
123
72
|
this.hide();
|
|
124
|
-
|
|
125
|
-
if (isOption && this.currentOption && !this.currentOption.disabled) {
|
|
126
|
-
if (this.multiple || this.value.includes(this.currentOption.value)) {
|
|
127
|
-
this.toggleOptionSelection(this.currentOption);
|
|
128
|
-
} else {
|
|
129
|
-
this.setSelectedOptions(this.currentOption);
|
|
130
|
-
}
|
|
131
|
-
this.updateComplete.then(() => {
|
|
132
|
-
this.emit("dsa-change");
|
|
133
|
-
});
|
|
134
|
-
if (!this.multiple) {
|
|
135
|
-
this.hide();
|
|
136
|
-
this.filterTrigger.focus({ preventScroll: true });
|
|
137
|
-
}
|
|
73
|
+
this.filterTrigger.focus({ preventScroll: true });
|
|
138
74
|
}
|
|
139
75
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
const path = event.composedPath();
|
|
143
|
-
if (this && !path.includes(this)) {
|
|
144
|
-
this.hide();
|
|
76
|
+
if (isSearchInput) {
|
|
77
|
+
event.stopPropagation();
|
|
145
78
|
}
|
|
146
79
|
}
|
|
147
|
-
handleFilterTriggerMouseDown(event) {
|
|
148
|
-
event.preventDefault();
|
|
149
|
-
this.filterTrigger.focus({ preventScroll: true });
|
|
150
|
-
this.open = !this.open;
|
|
151
|
-
}
|
|
152
80
|
handleSearchInput(event) {
|
|
153
81
|
event.stopPropagation();
|
|
154
82
|
this.searchValue = this.searchInput.value;
|
|
@@ -181,7 +109,7 @@ var DSAFilterSelect = class extends ShoelaceElement {
|
|
|
181
109
|
this.emit("dsa-change");
|
|
182
110
|
});
|
|
183
111
|
}
|
|
184
|
-
if (!this.multiple) {
|
|
112
|
+
if (!this.multiple && !this.drawer) {
|
|
185
113
|
this.updateComplete.then(
|
|
186
114
|
() => this.filterTrigger.focus({ preventScroll: true })
|
|
187
115
|
);
|
|
@@ -243,6 +171,7 @@ var DSAFilterSelect = class extends ShoelaceElement {
|
|
|
243
171
|
const optionsNodeList = this.querySelectorAll(OPTION_TAG);
|
|
244
172
|
const allOptions = [];
|
|
245
173
|
optionsNodeList.forEach((option) => {
|
|
174
|
+
option.role = this.multiple ? "checkbox" : "radio";
|
|
246
175
|
const clonedOption = option.cloneNode(true);
|
|
247
176
|
clonedOption.selected = option.selected;
|
|
248
177
|
clonedOption.multiple = this.multiple;
|
|
@@ -337,20 +266,6 @@ var DSAFilterSelect = class extends ShoelaceElement {
|
|
|
337
266
|
this.allOptions.filter((el) => value.includes(el.value))
|
|
338
267
|
);
|
|
339
268
|
}
|
|
340
|
-
async handleDisabledChange() {
|
|
341
|
-
if (this.disabled || this.readonly) {
|
|
342
|
-
this.open = false;
|
|
343
|
-
this.emit("dsa-hide");
|
|
344
|
-
this.removeOpenListeners();
|
|
345
|
-
await stopAnimations(this);
|
|
346
|
-
this.popup.active = false;
|
|
347
|
-
const { keyframes, options } = getAnimation(this, "filter.hide", {
|
|
348
|
-
dir: this.localize.dir()
|
|
349
|
-
});
|
|
350
|
-
await animateTo(this.popup.popup, keyframes, options);
|
|
351
|
-
this.emit("dsa-after-hide");
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
269
|
async handleOpenChange() {
|
|
355
270
|
if (this.open) {
|
|
356
271
|
if (this.selectedOptions.length > 0) {
|
|
@@ -358,33 +273,15 @@ var DSAFilterSelect = class extends ShoelaceElement {
|
|
|
358
273
|
}
|
|
359
274
|
this.filterOptions();
|
|
360
275
|
this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption());
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
this.listbox.hidden = false;
|
|
365
|
-
this.popup.active = true;
|
|
276
|
+
}
|
|
277
|
+
await super.handleOpenChange();
|
|
278
|
+
if (this.open) {
|
|
366
279
|
requestAnimationFrame(() => {
|
|
367
280
|
this.setCurrentOption(this.currentOption);
|
|
368
281
|
});
|
|
369
|
-
const { keyframes, options } = getAnimation(this, "filter.show", {
|
|
370
|
-
dir: this.localize.dir()
|
|
371
|
-
});
|
|
372
|
-
await animateTo(this.popup.popup, keyframes, options);
|
|
373
282
|
if (this.currentOption) {
|
|
374
283
|
scrollIntoView(this.currentOption, this.listbox, "vertical", "auto");
|
|
375
284
|
}
|
|
376
|
-
this.emit("dsa-after-show");
|
|
377
|
-
} else {
|
|
378
|
-
this.emit("dsa-hide");
|
|
379
|
-
this.removeOpenListeners();
|
|
380
|
-
await stopAnimations(this);
|
|
381
|
-
const { keyframes, options } = getAnimation(this, "filter.hide", {
|
|
382
|
-
dir: this.localize.dir()
|
|
383
|
-
});
|
|
384
|
-
await animateTo(this.popup.popup, keyframes, options);
|
|
385
|
-
this.listbox.hidden = true;
|
|
386
|
-
this.popup.active = false;
|
|
387
|
-
this.emit("dsa-after-hide");
|
|
388
285
|
}
|
|
389
286
|
}
|
|
390
287
|
handleSeeAllChange() {
|
|
@@ -394,171 +291,144 @@ var DSAFilterSelect = class extends ShoelaceElement {
|
|
|
394
291
|
);
|
|
395
292
|
}
|
|
396
293
|
}
|
|
397
|
-
/** Shows the listbox. */
|
|
398
|
-
async show() {
|
|
399
|
-
if (this.open) {
|
|
400
|
-
this.open = false;
|
|
401
|
-
return void 0;
|
|
402
|
-
}
|
|
403
|
-
this.open = true;
|
|
404
|
-
return await waitForEvent(this, "dsa-after-show");
|
|
405
|
-
}
|
|
406
294
|
/** Hides the listbox. */
|
|
407
295
|
async hide() {
|
|
408
|
-
|
|
409
|
-
this.open = false;
|
|
410
|
-
return void 0;
|
|
411
|
-
}
|
|
412
|
-
this.open = false;
|
|
296
|
+
await super.hide();
|
|
413
297
|
this.searchValue = "";
|
|
414
|
-
return await waitForEvent(this, "dsa-after-hide");
|
|
415
|
-
}
|
|
416
|
-
/** Sets focus on the control. */
|
|
417
|
-
focus(options) {
|
|
418
|
-
this.filterTrigger.focus(options);
|
|
419
298
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
299
|
+
renderTrigger() {
|
|
300
|
+
if (this.columnsFilter) {
|
|
301
|
+
return html`
|
|
302
|
+
<dsa-button
|
|
303
|
+
slot="anchor"
|
|
304
|
+
class="filter__trigger"
|
|
305
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
306
|
+
aria-controls="filter__panel"
|
|
307
|
+
?disabled=${this.disabled}
|
|
308
|
+
@focus=${this.handleFocus}
|
|
309
|
+
@blur=${this.handleBlur}
|
|
310
|
+
@mousedown=${this.handleFilterTriggerMouseDown}
|
|
311
|
+
variant="tertiary"
|
|
312
|
+
caret
|
|
313
|
+
>
|
|
314
|
+
<dsa-icon name="view_column" slot="prefix"></dsa-icon>
|
|
315
|
+
${this.label !== "" ? this.label : this.localize.term("columns")}
|
|
316
|
+
</dsa-button>
|
|
317
|
+
`;
|
|
318
|
+
} else {
|
|
319
|
+
const selectionCount = this.selectedOptions.length;
|
|
320
|
+
return html`
|
|
321
|
+
<dsa-filter-button
|
|
322
|
+
slot="anchor"
|
|
323
|
+
class="filter__trigger"
|
|
324
|
+
label=${this.label}
|
|
325
|
+
selected-option=${selectionCount === 1 ? this.displayLabel : ""}
|
|
326
|
+
selection-count=${selectionCount}
|
|
327
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
328
|
+
aria-controls="filter__panel"
|
|
329
|
+
?disabled=${this.disabled}
|
|
330
|
+
?readonly=${this.readonly}
|
|
331
|
+
?drawer=${this.drawer}
|
|
332
|
+
@focus=${this.handleFocus}
|
|
333
|
+
@blur=${this.handleBlur}
|
|
334
|
+
@mousedown=${this.handleFilterTriggerMouseDown}
|
|
335
|
+
></dsa-filter-button>
|
|
336
|
+
`;
|
|
337
|
+
}
|
|
423
338
|
}
|
|
424
|
-
|
|
339
|
+
renderDeSelectAll() {
|
|
425
340
|
const selectionCount = this.selectedOptions.length;
|
|
426
|
-
const buttonLabel = this.label !== "" ? this.label : this.filterLabel;
|
|
427
341
|
return html`
|
|
428
|
-
<dsa-
|
|
429
|
-
class="
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
distance="4"
|
|
434
|
-
flip
|
|
435
|
-
shift
|
|
436
|
-
auto-size="vertical"
|
|
437
|
-
auto-size-padding="10"
|
|
438
|
-
@keydown=${this.handleKeyDown}
|
|
342
|
+
<dsa-button
|
|
343
|
+
class="filter__multiselect-header__deselect-all"
|
|
344
|
+
variant="tertiary"
|
|
345
|
+
size="small"
|
|
346
|
+
@click=${this.handleMultipleHeaderButtonClick}
|
|
439
347
|
>
|
|
440
|
-
${this.
|
|
441
|
-
<dsa-
|
|
442
|
-
|
|
443
|
-
class="filter__trigger"
|
|
444
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
445
|
-
aria-controls="filter__panel"
|
|
446
|
-
?disabled=${this.disabled}
|
|
447
|
-
@focus=${this.handleFocus}
|
|
448
|
-
@blur=${this.handleBlur}
|
|
449
|
-
@mousedown=${this.handleFilterTriggerMouseDown}
|
|
450
|
-
variant="tertiary"
|
|
451
|
-
caret
|
|
452
|
-
>
|
|
453
|
-
<dsa-icon name="view_column" slot="prefix"></dsa-icon>
|
|
454
|
-
${buttonLabel !== "" ? buttonLabel : this.localize.term("columns")}
|
|
455
|
-
</dsa-button>
|
|
456
|
-
` : html`
|
|
457
|
-
<dsa-filter-button
|
|
458
|
-
slot="anchor"
|
|
459
|
-
class="filter__trigger"
|
|
460
|
-
label=${buttonLabel}
|
|
461
|
-
selected-option=${selectionCount === 1 ? this.displayLabel : ""}
|
|
462
|
-
selection-count=${selectionCount}
|
|
463
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
464
|
-
aria-controls="filter__panel"
|
|
465
|
-
?disabled=${this.disabled}
|
|
466
|
-
?readonly=${this.readonly}
|
|
467
|
-
@focus=${this.handleFocus}
|
|
468
|
-
@blur=${this.handleBlur}
|
|
469
|
-
@mousedown=${this.handleFilterTriggerMouseDown}
|
|
470
|
-
></dsa-filter-button>
|
|
348
|
+
${selectionCount === 0 ? html` ${this.localize.term("selectAll")} ` : html`
|
|
349
|
+
<dsa-icon name="restart_alt" slot="prefix"></dsa-icon>
|
|
350
|
+
${this.localize.term("deselectAll")}
|
|
471
351
|
`}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
352
|
+
</dsa-button>
|
|
353
|
+
`;
|
|
354
|
+
}
|
|
355
|
+
renderPanelContent() {
|
|
356
|
+
const selectionCount = this.selectedOptions.length;
|
|
357
|
+
return html`
|
|
358
|
+
${this.multiple && !this.drawer ? html`
|
|
359
|
+
<div class="filter__multiselect-header">
|
|
360
|
+
<span role="status"
|
|
361
|
+
>${this.localize.term(
|
|
478
362
|
"numberSelected",
|
|
479
363
|
selectionCount,
|
|
480
364
|
this.optionGender
|
|
481
365
|
)}</span
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
clearable
|
|
505
|
-
@dsa-clear=${this.handleSearchClear}
|
|
506
|
-
></dsa-input>
|
|
507
|
-
<dsa-visually-hidden>
|
|
508
|
-
<span
|
|
509
|
-
role="status"
|
|
510
|
-
aria-live="polite"
|
|
511
|
-
aria-relevant="all"
|
|
512
|
-
.live=${this.searchValue}
|
|
513
|
-
>${this.searchValue.length > 0 ? `${this.displayedOptions.length} ${this.localize.term(
|
|
366
|
+
>
|
|
367
|
+
${this.renderDeSelectAll()}
|
|
368
|
+
</div>
|
|
369
|
+
` : ""}
|
|
370
|
+
${this.searchable ? html`
|
|
371
|
+
<dsa-input
|
|
372
|
+
type="search"
|
|
373
|
+
title=${this.localize.term("search")}
|
|
374
|
+
placeholder=${this.localize.term("search")}
|
|
375
|
+
variant="layer"
|
|
376
|
+
.value=${this.searchValue}
|
|
377
|
+
@input=${this.handleSearchInput}
|
|
378
|
+
clearable
|
|
379
|
+
@dsa-clear=${this.handleSearchClear}
|
|
380
|
+
></dsa-input>
|
|
381
|
+
<dsa-visually-hidden>
|
|
382
|
+
<span
|
|
383
|
+
role="status"
|
|
384
|
+
aria-live="polite"
|
|
385
|
+
aria-relevant="all"
|
|
386
|
+
.live=${this.searchValue}
|
|
387
|
+
>${this.searchValue.length > 0 ? `${this.displayedOptions.length} ${this.localize.term(
|
|
514
388
|
"optionsAvailable"
|
|
515
389
|
)}` : ""}</span
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
390
|
+
>
|
|
391
|
+
</dsa-visually-hidden>
|
|
392
|
+
` : ""}
|
|
519
393
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
394
|
+
<div
|
|
395
|
+
id="listbox"
|
|
396
|
+
role=${this.multiple ? "group" : "radiogroup"}
|
|
397
|
+
aria-multiselectable=${ifDefined(this.multiple ? "true" : void 0)}
|
|
398
|
+
aria-label=${this.localize.term("selectValue", this.multiple)}
|
|
399
|
+
part="listbox"
|
|
400
|
+
class="filter__listbox"
|
|
401
|
+
@mouseup=${this.handleOptionClick}
|
|
402
|
+
>
|
|
403
|
+
${this.displayedOptions.length > 0 ? this.getDisplayedOptionsList() : html`<div class="filter__empty_text">
|
|
404
|
+
<p>${this.localize.term("noMatchFound")}</p>
|
|
405
|
+
</div>`}
|
|
406
|
+
</div>
|
|
533
407
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
408
|
+
<slot
|
|
409
|
+
class="filter__options"
|
|
410
|
+
tabindex="-1"
|
|
411
|
+
role=${this.multiple ? "group" : "radiogroup"}
|
|
412
|
+
@slotchange=${this.handleDefaultSlotChange}
|
|
413
|
+
></slot>
|
|
539
414
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
415
|
+
<div class="filter-select__footer">
|
|
416
|
+
${this.maxVisibleListLength > 0 && this.nbOptions > this.maxVisibleListLength && !this.seeAll ? html`
|
|
417
|
+
<dsa-button
|
|
418
|
+
variant="tertiary"
|
|
419
|
+
size="small"
|
|
420
|
+
class="filter__see-all-button"
|
|
421
|
+
@click=${this.handleSeeAllClick}
|
|
422
|
+
>
|
|
423
|
+
${this.localize.term("seeAll", this.nbOptions)}
|
|
424
|
+
</dsa-button>
|
|
425
|
+
` : ""}
|
|
426
|
+
${this.drawer && this.multiple ? this.renderDeSelectAll() : ""}
|
|
427
|
+
</div>
|
|
552
428
|
`;
|
|
553
429
|
}
|
|
554
430
|
};
|
|
555
431
|
DSAFilterSelect.styles = filter_select_styles_default;
|
|
556
|
-
__decorateClass([
|
|
557
|
-
query(".filter")
|
|
558
|
-
], DSAFilterSelect.prototype, "popup", 2);
|
|
559
|
-
__decorateClass([
|
|
560
|
-
query(".filter__trigger")
|
|
561
|
-
], DSAFilterSelect.prototype, "filterTrigger", 2);
|
|
562
432
|
__decorateClass([
|
|
563
433
|
query(".filter__multiselect-header__deselect-all")
|
|
564
434
|
], DSAFilterSelect.prototype, "deselectAllButton", 2);
|
|
@@ -621,18 +491,6 @@ __decorateClass([
|
|
|
621
491
|
__decorateClass([
|
|
622
492
|
property({ type: Boolean })
|
|
623
493
|
], DSAFilterSelect.prototype, "searchable", 2);
|
|
624
|
-
__decorateClass([
|
|
625
|
-
property({ type: Boolean, reflect: true })
|
|
626
|
-
], DSAFilterSelect.prototype, "open", 2);
|
|
627
|
-
__decorateClass([
|
|
628
|
-
property({ type: Boolean })
|
|
629
|
-
], DSAFilterSelect.prototype, "hoist", 2);
|
|
630
|
-
__decorateClass([
|
|
631
|
-
property({ attribute: "label", reflect: true })
|
|
632
|
-
], DSAFilterSelect.prototype, "label", 2);
|
|
633
|
-
__decorateClass([
|
|
634
|
-
property({ attribute: "filter-label", reflect: true })
|
|
635
|
-
], DSAFilterSelect.prototype, "filterLabel", 2);
|
|
636
494
|
__decorateClass([
|
|
637
495
|
property({ type: Number, attribute: "debounce-timeout" })
|
|
638
496
|
], DSAFilterSelect.prototype, "debounceTimeout", 2);
|
|
@@ -642,44 +500,18 @@ __decorateClass([
|
|
|
642
500
|
__decorateClass([
|
|
643
501
|
property({ type: Boolean, attribute: "columns-filter" })
|
|
644
502
|
], DSAFilterSelect.prototype, "columnsFilter", 2);
|
|
645
|
-
__decorateClass([
|
|
646
|
-
property({ type: Boolean, reflect: true })
|
|
647
|
-
], DSAFilterSelect.prototype, "disabled", 2);
|
|
648
|
-
__decorateClass([
|
|
649
|
-
property({ type: Boolean, reflect: true })
|
|
650
|
-
], DSAFilterSelect.prototype, "readonly", 2);
|
|
651
503
|
__decorateClass([
|
|
652
504
|
watch("searchValue", { waitUntilFirstUpdate: true })
|
|
653
505
|
], DSAFilterSelect.prototype, "handleSearchValueChange", 1);
|
|
654
506
|
__decorateClass([
|
|
655
507
|
watch("value", { waitUntilFirstUpdate: true })
|
|
656
508
|
], DSAFilterSelect.prototype, "handleValueChange", 1);
|
|
657
|
-
__decorateClass([
|
|
658
|
-
watch(["disabled", "readonly"], { waitUntilFirstUpdate: true })
|
|
659
|
-
], DSAFilterSelect.prototype, "handleDisabledChange", 1);
|
|
660
|
-
__decorateClass([
|
|
661
|
-
watch("open", { waitUntilFirstUpdate: true })
|
|
662
|
-
], DSAFilterSelect.prototype, "handleOpenChange", 1);
|
|
663
509
|
__decorateClass([
|
|
664
510
|
watch("seeAll")
|
|
665
511
|
], DSAFilterSelect.prototype, "handleSeeAllChange", 1);
|
|
666
512
|
DSAFilterSelect = __decorateClass([
|
|
667
513
|
customElement("dsa-filter-select")
|
|
668
514
|
], DSAFilterSelect);
|
|
669
|
-
setDefaultAnimation("filter.show", {
|
|
670
|
-
keyframes: [
|
|
671
|
-
{ opacity: 0, scale: 0.9 },
|
|
672
|
-
{ opacity: 1, scale: 1 }
|
|
673
|
-
],
|
|
674
|
-
options: { duration: 100, easing: "ease" }
|
|
675
|
-
});
|
|
676
|
-
setDefaultAnimation("filter.hide", {
|
|
677
|
-
keyframes: [
|
|
678
|
-
{ opacity: 1, scale: 1 },
|
|
679
|
-
{ opacity: 0, scale: 0.9 }
|
|
680
|
-
],
|
|
681
|
-
options: { duration: 100, easing: "ease" }
|
|
682
|
-
});
|
|
683
515
|
|
|
684
516
|
export {
|
|
685
517
|
DSAFilterSelect
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk.V7RJROLH.js";
|
|
12
12
|
import {
|
|
13
13
|
LocalizeController
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
15
15
|
import {
|
|
16
16
|
watch
|
|
17
17
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
import { html } from "lit";
|
|
30
30
|
import { customElement, property, query } from "lit/decorators.js";
|
|
31
31
|
import { classMap } from "lit/directives/class-map.js";
|
|
32
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
32
33
|
var toastStack = Object.assign(document.createElement("div"), {
|
|
33
34
|
className: "dsa-toast-stack"
|
|
34
35
|
});
|
|
@@ -169,7 +170,17 @@ var DSAAlert = class extends ShoelaceElement {
|
|
|
169
170
|
name=${this.getPrefixIconName()}
|
|
170
171
|
></dsa-icon>
|
|
171
172
|
<div class="alert__text">
|
|
172
|
-
|
|
173
|
+
${this.title !== "" ? html`
|
|
174
|
+
<div
|
|
175
|
+
part="header"
|
|
176
|
+
id="header"
|
|
177
|
+
aria-level=${ifDefined(this.headerLevel)}
|
|
178
|
+
role=${ifDefined(this.headerLevel ? "heading" : void 0)}
|
|
179
|
+
class="alert__title"
|
|
180
|
+
>
|
|
181
|
+
${this.title}
|
|
182
|
+
</div>
|
|
183
|
+
` : ""}
|
|
173
184
|
<slot part="message" class="alert__message"></slot>
|
|
174
185
|
</div>
|
|
175
186
|
|
|
@@ -203,6 +214,9 @@ __decorateClass([
|
|
|
203
214
|
__decorateClass([
|
|
204
215
|
property({ type: Boolean, reflect: true })
|
|
205
216
|
], DSAAlert.prototype, "closable", 2);
|
|
217
|
+
__decorateClass([
|
|
218
|
+
property({ attribute: "header-level", reflect: true })
|
|
219
|
+
], DSAAlert.prototype, "headerLevel", 2);
|
|
206
220
|
__decorateClass([
|
|
207
221
|
property({ reflect: true })
|
|
208
222
|
], DSAAlert.prototype, "variant", 2);
|