@ds-autonomie/web-components 1.16.2 → 1.17.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 +25 -0
- package/dist/chunks/{chunk.VJRDVQTS.js → chunk.2AZX4GK4.js} +1 -1
- package/dist/chunks/{chunk.BHQ3BNQA.js → chunk.2DYZ4544.js} +3 -3
- package/dist/chunks/{chunk.RG342A22.js → chunk.2GIZK5OL.js} +5 -5
- package/dist/chunks/{chunk.A2AK34DU.js → chunk.2MXY6CAL.js} +1 -1
- package/dist/chunks/{chunk.BROIFXIH.js → chunk.3355NB7L.js} +1 -1
- package/dist/chunks/{chunk.MXDA7QXL.js → chunk.33YIN2OK.js} +12 -9
- package/dist/chunks/{chunk.CZFGLE3Y.js → chunk.4FP4K3F5.js} +20 -0
- 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.JHPIOVRD.js → chunk.5ATFMWVP.js} +4 -4
- package/dist/chunks/{chunk.Z5LJXDHJ.js → chunk.5IKJNP4W.js} +23 -12
- package/dist/chunks/{chunk.PNTPO2DN.js → chunk.6QGIFSKH.js} +21 -11
- package/dist/chunks/{chunk.JXWCUSV3.js → chunk.6SIIMZ3D.js} +1 -1
- package/dist/chunks/{chunk.AMIXGL74.js → chunk.A4O4JY6G.js} +20 -3
- package/dist/chunks/{chunk.RBXTMFL6.js → chunk.A5S4PSDJ.js} +1 -1
- package/dist/chunks/{chunk.R6572W75.js → chunk.AFGTS4PG.js} +10 -7
- package/dist/chunks/{chunk.EAP74BQL.js → chunk.AISSZCX4.js} +29 -32
- 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.N43R5DJN.js → chunk.B64MRSFM.js} +1 -1
- package/dist/chunks/{chunk.7KF6Z37I.js → chunk.BBGXYE4Z.js} +1 -1
- package/dist/chunks/{chunk.ZYY6O4PU.js → chunk.BGU7HA72.js} +4 -4
- package/dist/chunks/{chunk.ZLGBX4RI.js → chunk.BUFBFNGF.js} +1 -1
- package/dist/chunks/{chunk.7DHGAM7P.js → chunk.CBBSK53B.js} +2 -2
- package/dist/chunks/{chunk.V5J2RAQ5.js → chunk.CFISAFUN.js} +90 -1
- package/dist/chunks/{chunk.YG7TOAY3.js → chunk.CJ35H7EE.js} +4 -4
- package/dist/chunks/{chunk.NXQ42SSB.js → chunk.CLHGGIBQ.js} +2 -2
- package/dist/chunks/{chunk.WHTNMZZS.js → chunk.DLMZ2MN2.js} +4 -4
- package/dist/chunks/{chunk.6L6CZSQX.js → chunk.DZLCCB5R.js} +0 -14
- package/dist/chunks/chunk.FWFLQD5T.js +49 -0
- package/dist/chunks/{chunk.SIPW72IF.js → chunk.FZBZ5HAZ.js} +3 -3
- package/dist/chunks/{chunk.GE2PTQVM.js → chunk.GJM5KJMB.js} +1 -1
- package/dist/chunks/{chunk.43EIYNTL.js → chunk.HSLR5GY4.js} +9 -3
- package/dist/chunks/{chunk.N2H4K44W.js → chunk.I3SEN2LI.js} +1 -1
- package/dist/chunks/{chunk.5MB36CJO.js → chunk.IMRGO6QP.js} +1 -1
- package/dist/chunks/{chunk.E475BLMD.js → chunk.JDR7WF3R.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.D433F3FV.js → chunk.LDRVRUQG.js} +1 -0
- package/dist/chunks/{chunk.3UNYRJRK.js → chunk.LRHTRZGS.js} +1 -1
- package/dist/chunks/{chunk.VXQMFXV5.js → chunk.M7QP6END.js} +20 -2
- package/dist/chunks/{chunk.O2OMAMMI.js → chunk.MDU7KHHW.js} +1 -1
- package/dist/chunks/{chunk.2P44D5YL.js → chunk.MMD7BOR4.js} +3 -1
- package/dist/chunks/{chunk.H2JSXKGD.js → chunk.MPZ56XQK.js} +4 -0
- package/dist/chunks/{chunk.ZWVWEQGL.js → chunk.NDQ5XCHJ.js} +5 -0
- package/dist/chunks/{chunk.A3RCXT25.js → chunk.O6S5WFZL.js} +1 -1
- package/dist/chunks/{chunk.3YSH35MM.js → chunk.O7DWCXXH.js} +1 -1
- package/dist/chunks/{chunk.7J3HDP6J.js → chunk.PKEKVGMQ.js} +1 -1
- package/dist/chunks/{chunk.6L4HRCFK.js → chunk.PTXGBZ6Y.js} +1 -1
- package/dist/chunks/{chunk.JR77AUQ7.js → chunk.PYB3JSR5.js} +1 -1
- package/dist/chunks/{chunk.CWHNW2T5.js → chunk.QGNUX2KV.js} +38 -28
- package/dist/chunks/{chunk.GZMFP7UN.js → chunk.QMCNUEAU.js} +1 -1
- package/dist/chunks/{chunk.45B5UA3U.js → chunk.QVJA3YFE.js} +1 -1
- package/dist/chunks/{chunk.QR4Z7SWH.js → chunk.RBF7AXDI.js} +1 -1
- package/dist/chunks/{chunk.VO6MIHUM.js → chunk.RFQ2Y5SK.js} +2 -0
- package/dist/chunks/{chunk.Z74FEBJS.js → chunk.RIBDMYAF.js} +1 -1
- package/dist/chunks/{chunk.CKBRIIGV.js → chunk.RJUC427U.js} +1 -1
- package/dist/chunks/{chunk.BQ7R6MC6.js → chunk.RSX6EFCX.js} +23 -1
- package/dist/chunks/{chunk.5BCAEDG4.js → chunk.RXNIW3V5.js} +1 -1
- package/dist/chunks/{chunk.QDXCYEAZ.js → chunk.SESHYW6E.js} +1 -1
- package/dist/chunks/{chunk.IDAQJSVV.js → chunk.SS2TFJEH.js} +16 -2
- package/dist/chunks/{chunk.MUGCPHYQ.js → chunk.TZZHA2CW.js} +4 -4
- package/dist/chunks/{chunk.GYJZ3E7K.js → chunk.USOUTPCT.js} +1 -1
- package/dist/chunks/{chunk.EMJZLQCL.js → chunk.UVGAHM33.js} +2 -1
- package/dist/chunks/{chunk.BAU3732X.js → chunk.V3EGD3LC.js} +2 -2
- package/dist/chunks/{chunk.PAF4S7OV.js → chunk.VSC54K2L.js} +17 -1
- package/dist/chunks/{chunk.WPYZYOD5.js → chunk.VZBGTAM3.js} +3 -3
- package/dist/chunks/{chunk.TRKYAEYS.js → chunk.WNP6VKYR.js} +4 -4
- package/dist/chunks/{chunk.KOW5OFDN.js → chunk.WRC4UPSL.js} +1 -1
- package/dist/chunks/{chunk.XD5JM6WF.js → chunk.WYUQG5BJ.js} +20 -0
- package/dist/chunks/{chunk.IQTKA4UT.js → chunk.XNOXIU7B.js} +1 -1
- 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.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.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.js +5 -5
- 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.js +5 -5
- 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-button/filter-button.js +5 -5
- package/dist/components/filter/filter-counter/filter-counter.js +4 -4
- package/dist/components/filter/filter-date/filter-date.js +11 -11
- package/dist/components/filter/filter-range/filter-range.d.ts +2 -0
- package/dist/components/filter/filter-range/filter-range.js +12 -12
- package/dist/components/filter/filter-select/filter-select.js +9 -9
- 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.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.js +8 -8
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-phone/input-phone.d.ts +2 -1
- package/dist/components/input-phone/input-phone.js +16 -16
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- 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.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 +10 -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.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/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 +4 -4
- package/dist/components/table/table-row/table-row.js +2 -2
- 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 +9 -9
- package/dist/components/tree-item/tree-item.js +7 -7
- package/dist/custom-elements.json +738 -554
- package/dist/design-system.js +149 -149
- package/dist/themes/dsa-wc-theme.css +37 -12
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +37 -14
- 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/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +0 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +162 -121
- package/dist/web-types.json +420 -313
- package/package.json +3 -3
- package/dist/chunks/{chunk.O2PIWM25.js → chunk.D34QDO4H.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4d2e82a: `alert` : possibilité d'ajouter un entête (balise <h>).
|
|
8
|
+
- 7c07696: `callout` : ajout du composant
|
|
9
|
+
- 46a1090: `card` : le nom accessible de la carte lien provient maintenant de son en-tête
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- bda3c83: `calendar`, `select`, `combobox`, `option` : améliorations a11y
|
|
14
|
+
- d4b8d6c: `tooltip` : possibilité de survoler jusqu'au tooltip sans qu'il se ferme + fermeture à l'appui sur echap
|
|
15
|
+
- 90a4bfc: Amélioration du contraste du contour de focus (focus-ring)
|
|
16
|
+
- f4f3623: `select`, `combobox` : restition des options multiples sélectionnées
|
|
17
|
+
- 511c9fa: `filter-range` : prise en compte des changements de valeurs dynamiques
|
|
18
|
+
- 19482e6: `checkbox-group` : correction du problème de mise à jour d'un checkbox-group suite à la mise à jour des propriétés des checkbox enfants
|
|
19
|
+
- 33c8233: `calendar` : mise à jour de la dépendance wc-calendar
|
|
20
|
+
- dc51df6: `radio-button`, `checkbox-group` : les libéllés trop longs passent maintenant à la ligne; `input-phone` : amélioration pour les petits écrans
|
|
21
|
+
- af72cc8: `input-phone` : correction de la mise à jour de la valeur
|
|
22
|
+
- 9e79832: `input-phone` : suppression du drapeau
|
|
23
|
+
- 5c504f1: `option` : ajout d'une bordure à l'état hover/focus
|
|
24
|
+
- b578686: `pagination` : correction des évènements de changement de page
|
|
25
|
+
- Updated dependencies [9754673]
|
|
26
|
+
- @ds-autonomie/assets@1.4.2
|
|
27
|
+
|
|
3
28
|
## 1.16.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -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.MMD7BOR4.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.DZLCCB5R.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -49,7 +49,7 @@ 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
55
|
return this.value.split(",").map((dateString) => new Date(dateString));
|
|
@@ -243,10 +243,10 @@ __decorateClass([
|
|
|
243
243
|
property()
|
|
244
244
|
], DSACheckbox.prototype, "title", 2);
|
|
245
245
|
__decorateClass([
|
|
246
|
-
property()
|
|
246
|
+
property({ reflect: true })
|
|
247
247
|
], DSACheckbox.prototype, "name", 2);
|
|
248
248
|
__decorateClass([
|
|
249
|
-
property()
|
|
249
|
+
property({ reflect: true })
|
|
250
250
|
], DSACheckbox.prototype, "value", 2);
|
|
251
251
|
__decorateClass([
|
|
252
252
|
property({ reflect: true })
|
|
@@ -267,10 +267,10 @@ __decorateClass([
|
|
|
267
267
|
property({ type: Boolean, reflect: true })
|
|
268
268
|
], DSACheckbox.prototype, "readonly", 2);
|
|
269
269
|
__decorateClass([
|
|
270
|
-
property({ type: Boolean })
|
|
270
|
+
property({ type: Boolean, reflect: true })
|
|
271
271
|
], DSACheckbox.prototype, "error", 2);
|
|
272
272
|
__decorateClass([
|
|
273
|
-
property({ attribute: "error-message" })
|
|
273
|
+
property({ attribute: "error-message", reflect: true })
|
|
274
274
|
], DSACheckbox.prototype, "errorMessage", 2);
|
|
275
275
|
__decorateClass([
|
|
276
276
|
property({ reflect: true })
|
|
@@ -279,7 +279,7 @@ __decorateClass([
|
|
|
279
279
|
property({ type: Boolean, reflect: true })
|
|
280
280
|
], DSACheckbox.prototype, "required", 2);
|
|
281
281
|
__decorateClass([
|
|
282
|
-
property({ attribute: "aria-label" })
|
|
282
|
+
property({ attribute: "aria-label", reflect: true })
|
|
283
283
|
], DSACheckbox.prototype, "ariaLabel", 2);
|
|
284
284
|
__decorateClass([
|
|
285
285
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
card_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.M7QP6END.js";
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.YIY5RM53.js";
|
|
@@ -35,7 +35,7 @@ var DSACard = class extends ShoelaceElement {
|
|
|
35
35
|
const isLink = this.isLink();
|
|
36
36
|
const tag = isLink ? literal`a` : literal`div`;
|
|
37
37
|
return html`
|
|
38
|
-
|
|
38
|
+
<div
|
|
39
39
|
part="base"
|
|
40
40
|
class=${classMap({
|
|
41
41
|
card: true,
|
|
@@ -44,16 +44,19 @@ var DSACard = class extends ShoelaceElement {
|
|
|
44
44
|
"card--has-image": this.hasSlotController.test("image"),
|
|
45
45
|
"card--has-header": this.hasSlotController.test("header")
|
|
46
46
|
})}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
>
|
|
48
|
+
<${tag}
|
|
49
|
+
href=${ifDefined(isLink ? this.href : void 0)}
|
|
50
|
+
target=${ifDefined(isLink ? this.target : void 0)}
|
|
51
|
+
download=${ifDefined(isLink ? this.download : void 0)}
|
|
52
|
+
rel=${ifDefined(isLink ? this.rel : void 0)}
|
|
53
|
+
>
|
|
54
|
+
<slot name="header" part="header" class="card__header"></slot>
|
|
55
|
+
</${tag}>
|
|
53
56
|
<slot name="image" part="image" class="card__image"></slot>
|
|
54
57
|
<slot part="body" class="card__body"></slot>
|
|
55
58
|
<slot name="footer" part="footer" class="card__footer"></slot>
|
|
56
|
-
|
|
59
|
+
</div>
|
|
57
60
|
`;
|
|
58
61
|
}
|
|
59
62
|
};
|
|
@@ -30,6 +30,12 @@ var option_styles_default = css`
|
|
|
30
30
|
font: var(--dsa-wc-option-small-font);
|
|
31
31
|
padding: var(--dsa-wc-option-small-padding);
|
|
32
32
|
}
|
|
33
|
+
.option--small.option--hover:not(.option--selected):not(.option--disabled),
|
|
34
|
+
.option--small.option--current {
|
|
35
|
+
padding-block: calc(var(--dsa-wc-option-small-padding-y) - 1px);
|
|
36
|
+
padding-left: calc(var(--dsa-wc-option-padding-left) - 1px);
|
|
37
|
+
padding-right: calc(var(--dsa-wc-option-padding-right) - 1px);
|
|
38
|
+
}
|
|
33
39
|
|
|
34
40
|
.option--small dsa-icon,
|
|
35
41
|
.option--small ::slotted(dsa-icon) {
|
|
@@ -41,6 +47,12 @@ var option_styles_default = css`
|
|
|
41
47
|
font: var(--dsa-wc-option-font);
|
|
42
48
|
padding: var(--dsa-wc-option-padding);
|
|
43
49
|
}
|
|
50
|
+
.option--medium.option--hover:not(.option--selected):not(.option--disabled),
|
|
51
|
+
.option--medium.option--current {
|
|
52
|
+
padding-block: calc(var(--dsa-wc-option-medium-padding-y) - 1px);
|
|
53
|
+
padding-left: calc(var(--dsa-wc-option-padding-left) - 1px);
|
|
54
|
+
padding-right: calc(var(--dsa-wc-option-padding-right) - 1px);
|
|
55
|
+
}
|
|
44
56
|
|
|
45
57
|
.option--medium dsa-icon,
|
|
46
58
|
.option--medium ::slotted(dsa-icon) {
|
|
@@ -52,6 +64,12 @@ var option_styles_default = css`
|
|
|
52
64
|
font: var(--dsa-wc-option-large-font);
|
|
53
65
|
padding: var(--dsa-wc-option-large-padding);
|
|
54
66
|
}
|
|
67
|
+
.option--large.option--hover:not(.option--selected):not(.option--disabled),
|
|
68
|
+
.option--large.option--current {
|
|
69
|
+
padding-block: calc(var(--dsa-wc-option-large-padding-y) - 1px);
|
|
70
|
+
padding-left: calc(var(--dsa-wc-option-padding-left) - 1px);
|
|
71
|
+
padding-right: calc(var(--dsa-wc-option-padding-right) - 1px);
|
|
72
|
+
}
|
|
55
73
|
|
|
56
74
|
.option--large dsa-icon,
|
|
57
75
|
.option--large ::slotted(dsa-icon) {
|
|
@@ -60,6 +78,7 @@ var option_styles_default = css`
|
|
|
60
78
|
|
|
61
79
|
.option--hover:not(.option--selected):not(.option--disabled) {
|
|
62
80
|
background-color: var(--dsa-wc-option-hover-color);
|
|
81
|
+
border: 1px solid var(--dsa-wc-option-hover-border-color);
|
|
63
82
|
}
|
|
64
83
|
|
|
65
84
|
.option--error {
|
|
@@ -68,6 +87,7 @@ var option_styles_default = css`
|
|
|
68
87
|
.option--current,
|
|
69
88
|
.option--current.option--disabled {
|
|
70
89
|
background-color: var(--dsa-wc-option-hover-color);
|
|
90
|
+
border: 1px solid var(--dsa-wc-option-hover-border-color);
|
|
71
91
|
}
|
|
72
92
|
|
|
73
93
|
.option--selected.option--current:not(.option--multiple),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getIconLibrary,
|
|
3
|
+
unwatchIcon,
|
|
4
|
+
watchIcon
|
|
5
|
+
} from "./chunk.D34QDO4H.js";
|
|
1
6
|
import {
|
|
2
7
|
requestIcon
|
|
3
8
|
} from "./chunk.23TOS4ZE.js";
|
|
4
9
|
import {
|
|
5
10
|
icon_styles_default
|
|
6
11
|
} from "./chunk.LMJPQPQT.js";
|
|
7
|
-
import {
|
|
8
|
-
getIconLibrary,
|
|
9
|
-
unwatchIcon,
|
|
10
|
-
watchIcon
|
|
11
|
-
} from "./chunk.O2PIWM25.js";
|
|
12
12
|
import {
|
|
13
13
|
watch
|
|
14
14
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -73,6 +73,7 @@ var combobox_styles_default = css`
|
|
|
73
73
|
|
|
74
74
|
.select__display-input::placeholder {
|
|
75
75
|
color: var(--dsa-wc-input-on-base-text-field-placeholder-color);
|
|
76
|
+
opacity: 1;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
.select__display-input:focus {
|
|
@@ -409,6 +410,10 @@ var combobox_styles_default = css`
|
|
|
409
410
|
.select__loading_text > p {
|
|
410
411
|
padding-left: var(--dsa-spacing-8);
|
|
411
412
|
}
|
|
413
|
+
|
|
414
|
+
.hidden-tag-label {
|
|
415
|
+
display: none;
|
|
416
|
+
}
|
|
412
417
|
`;
|
|
413
418
|
|
|
414
419
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getStepIcon
|
|
3
|
-
} from "./chunk.CCTWXABH.js";
|
|
4
1
|
import {
|
|
5
2
|
step_styles_default
|
|
6
3
|
} from "./chunk.MNCPUPHX.js";
|
|
4
|
+
import {
|
|
5
|
+
getStepIcon
|
|
6
|
+
} from "./chunk.CCTWXABH.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.YIY5RM53.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.DZLCCB5R.js";
|
|
13
13
|
import {
|
|
14
14
|
ShoelaceElement
|
|
15
15
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.YIY5RM53.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.DZLCCB5R.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -36,9 +36,11 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
36
36
|
this.mobile = false;
|
|
37
37
|
}
|
|
38
38
|
handlePageButtonClick(event) {
|
|
39
|
-
if (event.
|
|
39
|
+
if (event.currentTarget.value !== -1 && !event.currentTarget.selected) {
|
|
40
40
|
this.emit("dsa-page-change", {
|
|
41
|
-
detail: {
|
|
41
|
+
detail: {
|
|
42
|
+
page: `${event.currentTarget.value}`
|
|
43
|
+
}
|
|
42
44
|
});
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -69,6 +71,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
69
71
|
?compact=${this.compact}
|
|
70
72
|
value=${pageNumber}
|
|
71
73
|
?selected=${this.currentPage === pageNumber}
|
|
74
|
+
@click=${this.handlePageButtonClick}
|
|
72
75
|
></dsa-pagination-button>
|
|
73
76
|
`;
|
|
74
77
|
});
|
|
@@ -110,7 +113,10 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
110
113
|
renderItemsDisplayedItemsPerPage() {
|
|
111
114
|
var _a;
|
|
112
115
|
const fromItem = 1 + (this.currentPage - 1) * this.itemsPerPage;
|
|
113
|
-
const toItem =
|
|
116
|
+
const toItem = Math.min(
|
|
117
|
+
this.currentPage * this.itemsPerPage,
|
|
118
|
+
this.totalItems
|
|
119
|
+
);
|
|
114
120
|
return html`
|
|
115
121
|
<div class="pagination__items">
|
|
116
122
|
<p
|
|
@@ -186,10 +192,11 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
186
192
|
navigation-type=${this.navigationType}
|
|
187
193
|
value="${this.currentPage - 1}"
|
|
188
194
|
?disabled=${this.currentPage < 2}
|
|
189
|
-
class="pagination__navigation__button--mobile"
|
|
195
|
+
class="pagination__navigation__button--mobile previous-button"
|
|
196
|
+
@click=${this.handlePageButtonClick}
|
|
190
197
|
>
|
|
191
|
-
<dsa-icon name="chevron_left" slot="prefix"></dsa-icon
|
|
192
|
-
|
|
198
|
+
<dsa-icon name="chevron_left" slot="prefix"></dsa-icon>
|
|
199
|
+
${this.localize.term("previousPage")}
|
|
193
200
|
</dsa-pagination-button>
|
|
194
201
|
<div class="pagination__navigation__page-input">
|
|
195
202
|
<dsa-input
|
|
@@ -211,19 +218,22 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
211
218
|
navigation-type=${this.navigationType}
|
|
212
219
|
value="${this.currentPage + 1}"
|
|
213
220
|
?disabled=${this.currentPage > this.totalPages - 1}
|
|
214
|
-
class="pagination__navigation__button--mobile"
|
|
215
|
-
|
|
221
|
+
class="pagination__navigation__button--mobile next-button"
|
|
222
|
+
@click=${this.handlePageButtonClick}
|
|
223
|
+
>
|
|
224
|
+
${this.localize.term("nextPage")}
|
|
216
225
|
<dsa-icon name="chevron_right" slot="suffix"></dsa-icon>
|
|
217
226
|
</dsa-pagination-button>
|
|
218
227
|
` : html`
|
|
219
|
-
<ul class="button-list"
|
|
228
|
+
<ul class="button-list">
|
|
220
229
|
<dsa-pagination-button
|
|
221
230
|
role="listitem"
|
|
222
231
|
navigation-type=${this.navigationType}
|
|
223
232
|
?compact=${this.compact}
|
|
224
233
|
value="${this.currentPage - 1}"
|
|
225
234
|
?disabled=${this.currentPage < 2}
|
|
226
|
-
class="first-button"
|
|
235
|
+
class="first-button previous-button"
|
|
236
|
+
@click=${this.handlePageButtonClick}
|
|
227
237
|
>
|
|
228
238
|
<dsa-icon name="chevron_left" slot="prefix"></dsa-icon>
|
|
229
239
|
${this.compact ? html`
|
|
@@ -241,7 +251,8 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
241
251
|
?compact=${this.compact}
|
|
242
252
|
value="${this.currentPage + 1}"
|
|
243
253
|
?disabled=${this.currentPage > this.totalPages - 1}
|
|
244
|
-
class="last-button"
|
|
254
|
+
class="last-button next-button"
|
|
255
|
+
@click=${this.handlePageButtonClick}
|
|
245
256
|
>
|
|
246
257
|
${this.compact ? html`<dsa-visually-hidden
|
|
247
258
|
>${this.localize.term(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
select_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NDQ5XCHJ.js";
|
|
4
4
|
import {
|
|
5
5
|
scrollIntoView
|
|
6
6
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk.V7RJROLH.js";
|
|
27
27
|
import {
|
|
28
28
|
LocalizeController
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.DZLCCB5R.js";
|
|
30
30
|
import {
|
|
31
31
|
watch
|
|
32
32
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -296,6 +296,7 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
296
296
|
handleTagRemove(event, option) {
|
|
297
297
|
event.stopPropagation();
|
|
298
298
|
if (!this.disabled) {
|
|
299
|
+
this.focusNextTagOrInput(option);
|
|
299
300
|
this.toggleOptionSelection(option, false);
|
|
300
301
|
this.updateComplete.then(() => {
|
|
301
302
|
this.emit("dsa-input");
|
|
@@ -303,6 +304,15 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
303
304
|
});
|
|
304
305
|
}
|
|
305
306
|
}
|
|
307
|
+
focusNextTagOrInput(option) {
|
|
308
|
+
const optionIndex = this.selectedOptions.findIndex((el) => el === option);
|
|
309
|
+
const nextOption = this.selectedOptions[optionIndex + 1];
|
|
310
|
+
if (nextOption) {
|
|
311
|
+
nextOption.focus();
|
|
312
|
+
} else {
|
|
313
|
+
this.displayInput.focus({ preventScroll: true });
|
|
314
|
+
}
|
|
315
|
+
}
|
|
306
316
|
// Gets an array of all <dsa-option> elements
|
|
307
317
|
getAllOptions() {
|
|
308
318
|
return [...this.querySelectorAll("dsa-option")];
|
|
@@ -352,14 +362,7 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
352
362
|
this.selectedOptions = this.getAllOptions().filter((el) => el.selected);
|
|
353
363
|
if (this.multiple) {
|
|
354
364
|
this.value = this.selectedOptions.map((el) => el.value);
|
|
355
|
-
|
|
356
|
-
this.displayLabel = "";
|
|
357
|
-
} else {
|
|
358
|
-
this.displayLabel = this.localize.term(
|
|
359
|
-
"numOptionsSelected",
|
|
360
|
-
this.selectedOptions.length
|
|
361
|
-
);
|
|
362
|
-
}
|
|
365
|
+
this.displayLabel = "";
|
|
363
366
|
} else {
|
|
364
367
|
this.value = (_b = (_a = this.selectedOptions[0]) == null ? void 0 : _a.value) != null ? _b : "";
|
|
365
368
|
this.displayLabel = (_d = (_c = this.selectedOptions[0]) == null ? void 0 : _c.getTextLabel()) != null ? _d : "";
|
|
@@ -476,6 +479,7 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
476
479
|
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
|
477
480
|
const selectInputWidth = this.displayValue ? isValueDefined ? this.value.length : 1 : void 0;
|
|
478
481
|
const isDisabledOrReadonly = this.disabled || this.readonly;
|
|
482
|
+
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`;
|
|
479
483
|
return html`
|
|
480
484
|
<div
|
|
481
485
|
part="form-control"
|
|
@@ -572,7 +576,7 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
572
576
|
hasLabel ? void 0 : this.title
|
|
573
577
|
)}
|
|
574
578
|
aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
|
|
575
|
-
aria-describedby=${
|
|
579
|
+
aria-describedby=${ariaDescribedBy}
|
|
576
580
|
role="combobox"
|
|
577
581
|
tabindex="0"
|
|
578
582
|
@focus=${this.handleFocus}
|
|
@@ -598,10 +602,16 @@ var DSASelect = class extends ShoelaceElement {
|
|
|
598
602
|
label=${option.getTextLabel()}
|
|
599
603
|
>
|
|
600
604
|
</dsa-tag>
|
|
605
|
+
<span
|
|
606
|
+
id=${`tag-${option.value}`}
|
|
607
|
+
class="hidden-tag-label"
|
|
608
|
+
>${option.getTextLabel()},</span
|
|
609
|
+
>
|
|
601
610
|
`;
|
|
602
611
|
} else if (index === this.maxOptionsVisible) {
|
|
603
612
|
return html`
|
|
604
613
|
<dsa-tag
|
|
614
|
+
id="tag-remaining"
|
|
605
615
|
size=${this.size}
|
|
606
616
|
label="+${this.selectedOptions.length - index}"
|
|
607
617
|
>
|
|
@@ -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.DZLCCB5R.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
|
>
|
|
@@ -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.DZLCCB5R.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
|
|