@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,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
input_styles_default
|
|
3
|
+
} from "./chunk.26R2GJ3D.js";
|
|
4
|
+
|
|
5
|
+
// src/components/input-date/input-date.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var input_date_styles_default = css`
|
|
8
|
+
${input_styles_default}
|
|
9
|
+
|
|
10
|
+
.input-date__value-input {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
z-index: -1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.input--date {
|
|
23
|
+
overflow: visible;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.icon-button--date {
|
|
27
|
+
--padding: var(--dsa-spacing-4);
|
|
28
|
+
margin-right: var(--dsa-wc-input-padding-x);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.date-popup::part(popup) {
|
|
32
|
+
z-index: var(--dsa-wc-z-index-dropdown);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.date--panel {
|
|
36
|
+
border: 1px solid var(--dsa-wc-filter-date-panel-border-color);
|
|
37
|
+
padding: var(--dsa-wc-filter-date-panel-padding);
|
|
38
|
+
border-radius: var(--dsa-wc-filter-date-panel-border-radius);
|
|
39
|
+
background: var(--dsa-color-background-base);
|
|
40
|
+
box-shadow: var(--dsa-wc-shadow-small);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.date-anchor {
|
|
44
|
+
width: 100%;
|
|
45
|
+
flex: 1;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
input_date_styles_default
|
|
55
|
+
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk.EMIT7S33.js";
|
|
8
8
|
import {
|
|
9
9
|
dialog_styles_default
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.JH5GMUO7.js";
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
13
|
} from "./chunk.YIY5RM53.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";
|
|
@@ -48,6 +48,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
48
48
|
super(...arguments);
|
|
49
49
|
this.hasSlotController = new HasSlotController(this, "footer");
|
|
50
50
|
this.localize = new LocalizeController(this);
|
|
51
|
+
this.modal = new Modal(this);
|
|
51
52
|
this.open = false;
|
|
52
53
|
this.label = "";
|
|
53
54
|
this.noHeader = false;
|
|
@@ -68,6 +69,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
68
69
|
}
|
|
69
70
|
disconnectedCallback() {
|
|
70
71
|
super.disconnectedCallback();
|
|
72
|
+
this.modal.deactivate();
|
|
71
73
|
unlockBodyScrolling(this);
|
|
72
74
|
}
|
|
73
75
|
requestClose(source) {
|
|
@@ -91,7 +93,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
91
93
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
92
94
|
}
|
|
93
95
|
handleDocumentKeyDown(event) {
|
|
94
|
-
if (this.open && event.key === "Escape") {
|
|
96
|
+
if (this.open && this.modal.isActive() && event.key === "Escape") {
|
|
95
97
|
event.stopPropagation();
|
|
96
98
|
this.requestClose("keyboard");
|
|
97
99
|
}
|
|
@@ -231,7 +233,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
231
233
|
this.noHeader ? this.label : void 0
|
|
232
234
|
)}
|
|
233
235
|
aria-labelledby=${ifDefined(!this.noHeader ? "title" : void 0)}
|
|
234
|
-
tabindex="
|
|
236
|
+
tabindex="-1"
|
|
235
237
|
>
|
|
236
238
|
${!this.noHeader ? html`
|
|
237
239
|
<header part="header" class="dialog__header">
|
|
@@ -253,7 +255,7 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
253
255
|
</div>
|
|
254
256
|
</header>
|
|
255
257
|
` : ""}
|
|
256
|
-
<div class="dialog__body-container" tabindex="
|
|
258
|
+
<div class="dialog__body-container" tabindex="-1">
|
|
257
259
|
<slot part="body" class="dialog__body"></slot>
|
|
258
260
|
</div>
|
|
259
261
|
<footer part="footer" class="dialog__footer">
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/internal/math.ts
|
|
2
|
+
function clamp(value, min, max) {
|
|
3
|
+
const noNegativeZero = (n) => Object.is(n, -0) ? 0 : n;
|
|
4
|
+
if (value < min) {
|
|
5
|
+
return noNegativeZero(min);
|
|
6
|
+
}
|
|
7
|
+
if (value > max) {
|
|
8
|
+
return noNegativeZero(max);
|
|
9
|
+
}
|
|
10
|
+
return noNegativeZero(value);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
clamp
|
|
15
|
+
};
|
|
@@ -213,6 +213,7 @@ var input_phone_styles_default = css`
|
|
|
213
213
|
|
|
214
214
|
/* Select */
|
|
215
215
|
.input-phone__select {
|
|
216
|
+
flex-shrink: 0;
|
|
216
217
|
min-width: var(--input-phone__select__min-width);
|
|
217
218
|
}
|
|
218
219
|
|
|
@@ -221,12 +222,17 @@ var input_phone_styles_default = css`
|
|
|
221
222
|
border-right: none;
|
|
222
223
|
height: auto;
|
|
223
224
|
font-size: inherit;
|
|
225
|
+
padding: 4px 4px 4px 8px;
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
.input-phone__select::part(popup) {
|
|
227
229
|
display: unset;
|
|
228
230
|
}
|
|
229
231
|
|
|
232
|
+
.input-phone__select::part(display-input) {
|
|
233
|
+
text-align: center;
|
|
234
|
+
}
|
|
235
|
+
|
|
230
236
|
:not(.form-control--readonly):not(form-control--disabled)
|
|
231
237
|
> dsa-select:not(.input-phone__select-error) {
|
|
232
238
|
--dsa-wc-internal-select-on-base-active-background-color: var(
|
|
@@ -304,7 +310,7 @@ var input_phone_styles_default = css`
|
|
|
304
310
|
* Size modifiers
|
|
305
311
|
*/
|
|
306
312
|
.form-control--small {
|
|
307
|
-
--input-phone__select__min-width:
|
|
313
|
+
--input-phone__select__min-width: 54px;
|
|
308
314
|
}
|
|
309
315
|
.form-control--small .input-phone__input,
|
|
310
316
|
.form-control--small dsa-select::part(combobox) {
|
|
@@ -319,7 +325,7 @@ var input_phone_styles_default = css`
|
|
|
319
325
|
}
|
|
320
326
|
|
|
321
327
|
.form-control--medium {
|
|
322
|
-
--input-phone__select__min-width:
|
|
328
|
+
--input-phone__select__min-width: 68px;
|
|
323
329
|
}
|
|
324
330
|
.form-control--medium dsa-select::part(combobox) {
|
|
325
331
|
height: var(--dsa-wc-input-phone-height);
|
|
@@ -331,7 +337,7 @@ var input_phone_styles_default = css`
|
|
|
331
337
|
}
|
|
332
338
|
|
|
333
339
|
.form-control--large {
|
|
334
|
-
--input-phone__select__min-width:
|
|
340
|
+
--input-phone__select__min-width: 68px;
|
|
335
341
|
}
|
|
336
342
|
.form-control--large
|
|
337
343
|
.input-phone___input.form-control--large
|
|
@@ -30,6 +30,7 @@ var dialog_styles_default = css`
|
|
|
30
30
|
.dialog__panel {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
|
+
overflow: auto;
|
|
33
34
|
z-index: 2;
|
|
34
35
|
width: var(--dsa-wc-dialog-size);
|
|
35
36
|
max-width: calc(100% - var(--dsa-wc-dialog-panel-gutter));
|
|
@@ -56,13 +57,15 @@ var dialog_styles_default = css`
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
.dialog--open .dialog__panel {
|
|
59
|
-
display: flex;
|
|
60
60
|
opacity: 1;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.dialog__header {
|
|
64
|
+
position: sticky;
|
|
65
|
+
top: 0;
|
|
64
66
|
flex: 0 0 auto;
|
|
65
67
|
display: flex;
|
|
68
|
+
background-color: var(--dsa-wc-dialog-panel-color);
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
.dialog__title {
|
|
@@ -94,7 +97,6 @@ var dialog_styles_default = css`
|
|
|
94
97
|
flex: 1 1 auto;
|
|
95
98
|
display: block;
|
|
96
99
|
padding: var(--body-spacing);
|
|
97
|
-
overflow: auto;
|
|
98
100
|
-webkit-overflow-scrolling: touch;
|
|
99
101
|
}
|
|
100
102
|
|
|
@@ -102,15 +104,11 @@ var dialog_styles_default = css`
|
|
|
102
104
|
.dialog__body-container {
|
|
103
105
|
margin: 4px;
|
|
104
106
|
display: block;
|
|
105
|
-
overflow: auto;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.dialog__body-container:focus-visible {
|
|
109
|
-
outline: var(--dsa-wc-focus-ring);
|
|
110
|
-
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
111
107
|
}
|
|
112
108
|
|
|
113
109
|
.dialog__footer {
|
|
110
|
+
position: sticky;
|
|
111
|
+
bottom: 0;
|
|
114
112
|
display: flex;
|
|
115
113
|
gap: 16px;
|
|
116
114
|
flex-direction: row;
|
|
@@ -118,6 +116,7 @@ var dialog_styles_default = css`
|
|
|
118
116
|
text-align: right;
|
|
119
117
|
padding: var(--footer-spacing);
|
|
120
118
|
border-top: var(--dsa-wc-dialog-footer-border);
|
|
119
|
+
background-color: var(--dsa-wc-dialog-panel-color);
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
.dialog__footer ::slotted(dsa-button:not(:first-of-type)) {
|
|
@@ -38,12 +38,17 @@ var table_container_styles_default = css`
|
|
|
38
38
|
|
|
39
39
|
.bar-container--has-toolbar,
|
|
40
40
|
.bar-container--has-action {
|
|
41
|
-
|
|
41
|
+
position: sticky;
|
|
42
|
+
top: 0;
|
|
43
|
+
background-color: var(--dsa-color-surface-base);
|
|
44
|
+
padding-top: var(--dsa-spacing-12);
|
|
45
|
+
padding-bottom: var(--dsa-spacing-12);
|
|
46
|
+
z-index: 10;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
.bar-container--has-toolbar [part~='action']::slotted(*) {
|
|
45
50
|
position: absolute;
|
|
46
|
-
top:
|
|
51
|
+
top: var(--dsa-spacing-12);
|
|
47
52
|
left: 0px;
|
|
48
53
|
}
|
|
49
54
|
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.U7V5J6UX.js";
|
|
4
4
|
import {
|
|
5
5
|
calendar_styles_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.L5DEEGJU.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
|
|
20
20
|
// src/components/calendar/calendar.ts
|
|
21
21
|
import { html } from "lit";
|
|
22
|
-
import { customElement, property, query
|
|
22
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
23
23
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
24
24
|
|
|
25
25
|
// src/internal/components/calendar/calendar.ts
|
|
@@ -34,8 +34,8 @@ var DSACalendar = class extends ShoelaceElement {
|
|
|
34
34
|
constructor() {
|
|
35
35
|
super(...arguments);
|
|
36
36
|
this.localize = new LocalizeController(this);
|
|
37
|
-
this.startDate = getISOFormattedDate(new Date());
|
|
38
37
|
this.value = "";
|
|
38
|
+
this.startDate = getISOFormattedDate(new Date());
|
|
39
39
|
this.range = false;
|
|
40
40
|
}
|
|
41
41
|
firstUpdated() {
|
|
@@ -49,10 +49,10 @@ var DSACalendar = class extends ShoelaceElement {
|
|
|
49
49
|
this.calendar.value = dates.length > 1 ? dates : dates[0];
|
|
50
50
|
}
|
|
51
51
|
get parsedDateValue() {
|
|
52
|
-
if (this.value ===
|
|
52
|
+
if (this.value === "") {
|
|
53
53
|
return [];
|
|
54
54
|
}
|
|
55
|
-
return this.value.split(",").map((dateString) => new Date(dateString));
|
|
55
|
+
return this.value.split(",").filter((dateString) => dateString !== "").map((dateString) => new Date(dateString));
|
|
56
56
|
}
|
|
57
57
|
handleDateSelection(event) {
|
|
58
58
|
const { detail } = event;
|
|
@@ -87,11 +87,9 @@ var DSACalendar = class extends ShoelaceElement {
|
|
|
87
87
|
handleValueChange() {
|
|
88
88
|
if (this.value === "") {
|
|
89
89
|
this.calendar.value = void 0;
|
|
90
|
-
this.startDate = getISOFormattedDate(new Date());
|
|
91
90
|
return;
|
|
92
91
|
}
|
|
93
92
|
this.updateCalendarValue();
|
|
94
|
-
this.startDate = getISOFormattedDate(this.parsedDateValue[0]);
|
|
95
93
|
}
|
|
96
94
|
render() {
|
|
97
95
|
return html`
|
|
@@ -100,7 +98,7 @@ var DSACalendar = class extends ShoelaceElement {
|
|
|
100
98
|
?range=${ifDefined(this.range)}
|
|
101
99
|
@selectDate=${this.handleDateSelection}
|
|
102
100
|
@changeMonth=${this.handleMonthSelection}
|
|
103
|
-
start-date=${this.startDate}
|
|
101
|
+
start-date=${this.value === "" ? this.startDate : getISOFormattedDate(this.parsedDateValue[0])}
|
|
104
102
|
locale=${this.localize.lang()}
|
|
105
103
|
.labels=${this.getLabels()}
|
|
106
104
|
first-day-of-week=${CALENDAR_MONDAY_INDEX}
|
|
@@ -109,15 +107,15 @@ var DSACalendar = class extends ShoelaceElement {
|
|
|
109
107
|
}
|
|
110
108
|
};
|
|
111
109
|
DSACalendar.styles = calendar_styles_default;
|
|
112
|
-
__decorateClass([
|
|
113
|
-
state()
|
|
114
|
-
], DSACalendar.prototype, "startDate", 2);
|
|
115
110
|
__decorateClass([
|
|
116
111
|
query(".calendar")
|
|
117
112
|
], DSACalendar.prototype, "calendar", 2);
|
|
118
113
|
__decorateClass([
|
|
119
114
|
property()
|
|
120
115
|
], DSACalendar.prototype, "value", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
property({ attribute: "start-date" })
|
|
118
|
+
], DSACalendar.prototype, "startDate", 2);
|
|
121
119
|
__decorateClass([
|
|
122
120
|
property({ type: Boolean, reflect: true })
|
|
123
121
|
], DSACalendar.prototype, "range", 2);
|
|
@@ -189,10 +189,19 @@ var calendar_styles_default = css`
|
|
|
189
189
|
border-radius: var(--dsa-wc-calendar-radius);
|
|
190
190
|
border: 1px solid var(--dsa-wc-calendar-cell-border-color);
|
|
191
191
|
}
|
|
192
|
+
@media (forced-colors: active) {
|
|
193
|
+
.wc-datepicker__date--today > * {
|
|
194
|
+
border-style: dotted;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
192
197
|
|
|
193
198
|
.wc-datepicker__date--in-range > * {
|
|
194
199
|
background-color: var(--dsa-wc-calendar-cell-hover-color);
|
|
195
200
|
}
|
|
201
|
+
.wc-datepicker__date--in-range:not(.wc-datepicker__date--today) > * {
|
|
202
|
+
border-top: 1px solid transparent;
|
|
203
|
+
border-bottom: 1px solid transparent;
|
|
204
|
+
}
|
|
196
205
|
|
|
197
206
|
.wc-datepicker__date--in-range:not(.wc-datepicker__date--end):not(
|
|
198
207
|
.wc-datepicker__date--selected
|
|
@@ -216,7 +225,7 @@ var calendar_styles_default = css`
|
|
|
216
225
|
background-color: var(--dsa-color-primitive-colors-identity-purple-800);
|
|
217
226
|
}
|
|
218
227
|
|
|
219
|
-
.wc-datepicker__date--start > * {
|
|
228
|
+
.wc-datepicker__date--start:not(.wc-datepicker__date--end) > * {
|
|
220
229
|
border-radius: 4px 0px 0px 4px;
|
|
221
230
|
border: 1px solid var(--dsa-wc-calendar-cell-border-color);
|
|
222
231
|
}
|
|
@@ -22,7 +22,6 @@ var card_styles_default = css`
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.card.link {
|
|
25
|
-
text-decoration: none;
|
|
26
25
|
transition: var(--dsa-wc-transition-x-fast) background-color,
|
|
27
26
|
var(--dsa-wc-transition-x-fast) border,
|
|
28
27
|
var(--dsa-wc-transition-x-fast) box-shadow;
|
|
@@ -31,11 +30,30 @@ var card_styles_default = css`
|
|
|
31
30
|
.card.link:active {
|
|
32
31
|
background-color: var(--dsa-wc-card-link-background-active);
|
|
33
32
|
}
|
|
34
|
-
.card.link:focus-
|
|
33
|
+
.card.link:focus-within {
|
|
35
34
|
outline: var(--dsa-wc-focus-ring);
|
|
36
35
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
37
36
|
}
|
|
38
37
|
|
|
38
|
+
.card.link a {
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
color: inherit;
|
|
41
|
+
}
|
|
42
|
+
.card.link a::after{
|
|
43
|
+
position: absolute;
|
|
44
|
+
left: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
top: 0;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
content: '';
|
|
49
|
+
}
|
|
50
|
+
.card.link a:hover::after {
|
|
51
|
+
bottom: -3px;
|
|
52
|
+
}
|
|
53
|
+
.card.link a:focus {
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
39
57
|
.card.link:hover {
|
|
40
58
|
border-color: var(--dsa-wc-card-link-border-color-hover);
|
|
41
59
|
box-shadow: var(--dsa-wc-card-link-box-shadow-hover);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
header_styles_default
|
|
3
|
+
} from "./chunk.LDRVRUQG.js";
|
|
1
4
|
import {
|
|
2
5
|
cnsaLogoSvg,
|
|
3
6
|
dsaLogoSvg
|
|
4
7
|
} from "./chunk.JSNVYESF.js";
|
|
5
|
-
import {
|
|
6
|
-
header_styles_default
|
|
7
|
-
} from "./chunk.D433F3FV.js";
|
|
8
8
|
import {
|
|
9
9
|
HasSlotController
|
|
10
10
|
} from "./chunk.YIY5RM53.js";
|
|
11
11
|
import {
|
|
12
12
|
LocalizeController
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.G3MRVMJ4.js";
|
|
14
14
|
import {
|
|
15
15
|
watch
|
|
16
16
|
} from "./chunk.6IH66JBY.js";
|