@ds-autonomie/web-components 1.16.0 → 1.16.2
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 +26 -0
- package/dist/chunks/{chunk.AWHBPZCA.js → chunk.2UZSRWJ7.js} +16 -17
- package/dist/chunks/{chunk.MYXTAE6O.js → chunk.43EIYNTL.js} +1 -3
- package/dist/chunks/{chunk.IJAP6FX7.js → chunk.4DRKFRDB.js} +1 -1
- package/dist/chunks/{chunk.PXRMLBOK.js → chunk.6FM2GGDB.js} +0 -1
- package/dist/chunks/{chunk.PBFXNZVS.js → chunk.6L4HRCFK.js} +1 -1
- package/dist/chunks/{chunk.QE5KX6GC.js → chunk.6TASDLIO.js} +17 -6
- package/dist/chunks/{chunk.WFCZZ5Y7.js → chunk.7DHGAM7P.js} +1 -1
- package/dist/chunks/{chunk.5JYA7W3U.js → chunk.AMIXGL74.js} +49 -43
- package/dist/chunks/{chunk.YCOCNU2O.js → chunk.BAU3732X.js} +4 -2
- package/dist/chunks/{chunk.WLBRYFBW.js → chunk.BPPQ62GH.js} +1 -1
- package/dist/chunks/{chunk.W6M6II3I.js → chunk.BQ7R6MC6.js} +12 -16
- package/dist/chunks/{chunk.M6LJDR7Y.js → chunk.CKBRIIGV.js} +20 -18
- package/dist/chunks/{chunk.4D4BPJPS.js → chunk.CWHNW2T5.js} +68 -34
- package/dist/chunks/{chunk.EXL2RATE.js → chunk.EAP74BQL.js} +3 -12
- package/dist/chunks/{chunk.VFWCJMJG.js → chunk.IDAQJSVV.js} +31 -26
- package/dist/chunks/{chunk.EOOFG4A2.js → chunk.JHPIOVRD.js} +7 -5
- package/dist/chunks/{chunk.IT6MNAIC.js → chunk.KKAOTWJY.js} +2 -3
- package/dist/chunks/{chunk.XXY24EZH.js → chunk.KZ65ORAL.js} +2 -5
- package/dist/chunks/{chunk.ZVIBE4XH.js → chunk.MJ3ZLDHO.js} +12 -1
- package/dist/chunks/{chunk.3BQTEMB3.js → chunk.MWQ3CXZP.js} +1 -1
- package/dist/chunks/{chunk.UDXQ2LSX.js → chunk.MXDA7QXL.js} +0 -5
- package/dist/chunks/{chunk.XGAVBPJO.js → chunk.MZF7MK5G.js} +1 -1
- package/dist/chunks/{chunk.I7SW3V2A.js → chunk.NXQ42SSB.js} +1 -1
- package/dist/chunks/{chunk.SEDCBZRC.js → chunk.PNTPO2DN.js} +8 -13
- package/dist/chunks/{chunk.352FP4B2.js → chunk.QDXCYEAZ.js} +2 -11
- package/dist/chunks/{chunk.ZPNMHACP.js → chunk.QEVAFNHA.js} +26 -0
- package/dist/chunks/{chunk.T3EUQIE2.js → chunk.RG342A22.js} +2 -0
- package/dist/chunks/{chunk.7IFC3ZIP.js → chunk.RYD4BVIA.js} +43 -35
- package/dist/chunks/{chunk.WSGEHNIF.js → chunk.SIPW72IF.js} +8 -1
- package/dist/chunks/{chunk.QAAZG5XN.js → chunk.TRKYAEYS.js} +5 -11
- package/dist/chunks/{chunk.APYW2WVZ.js → chunk.VC3XT47N.js} +1 -1
- package/dist/chunks/{chunk.FYTGBKGY.js → chunk.VDOVUA55.js} +5 -7
- package/dist/chunks/{chunk.J7ZUHC5Q.js → chunk.VLSSVYAB.js} +3 -11
- package/dist/chunks/{chunk.XPZYBQF2.js → chunk.WHTNMZZS.js} +1 -1
- package/dist/chunks/{chunk.XM5ZLNIT.js → chunk.XFOOYYIV.js} +1 -1
- package/dist/chunks/{chunk.PZ74GMZS.js → chunk.Z5LJXDHJ.js} +6 -1
- package/dist/chunks/{chunk.ULHEP5Y6.js → chunk.ZWVWEQGL.js} +20 -22
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.d.ts +2 -0
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/card/card.d.ts +0 -2
- package/dist/components/card/card.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox-button/checkbox-button.js +3 -3
- package/dist/components/checkbox-button/checkbox-button.styles.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/combobox/combobox.js +2 -2
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/filter/filter-date/filter-date.js +2 -2
- package/dist/components/filter/filter-range/filter-range.js +2 -2
- package/dist/components/filter/filter-select/filter-select.js +2 -2
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.d.ts +1 -0
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.js +2 -1
- package/dist/components/input/input.d.ts +0 -1
- package/dist/components/input/input.js +2 -2
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/input-mask/input-mask.d.ts +0 -1
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-mask/input-mask.styles.js +1 -1
- package/dist/components/input-phone/input-phone.d.ts +0 -1
- package/dist/components/input-phone/input-phone.js +7 -7
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- package/dist/components/navbar/navbar/navbar.js +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/pagination/pagination.d.ts +2 -0
- package/dist/components/pagination/pagination.js +6 -6
- package/dist/components/pagination-button/pagination-button.js +3 -3
- package/dist/components/pagination-button/pagination-button.styles.js +2 -2
- package/dist/components/radio-button/radio-button.js +11 -3
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/select/select.js +2 -2
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/skip-links/skip-links.js +1 -1
- package/dist/components/step/step.js +1 -1
- package/dist/components/table-of-contents/table-of-contents.d.ts +3 -3
- 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/textarea/textarea.d.ts +0 -1
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tree/tree.js +1 -1
- package/dist/components/tree-item/tree-item.js +1 -1
- package/dist/custom-elements.json +173 -152
- package/dist/design-system.js +37 -37
- package/dist/themes/dsa-wc-theme.css +15 -38
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +15 -38
- package/dist/vscode.html-custom-data.json +18 -17
- package/dist/web-types.json +101 -88
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.16.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7172de3: `textarea` : application du style readonly
|
|
8
|
+
- b1cd757: `select`, `combobox`, `filter-select` : améliorations a11y
|
|
9
|
+
- c16da8c: `pagination` : possibilité de personnaliser le aria-label de l'élément `<nav>`
|
|
10
|
+
- 97c7af4: `footer` : affichage du séparateur des mentions obligatoires seulement si les 2 slots ont du contenu
|
|
11
|
+
- 7883203: `accordion`: changement de l'apparence au survol et focus
|
|
12
|
+
- 16213d8: `alert` : restitution des alertes apparaissant suite à action utilisateur
|
|
13
|
+
- 7b49078: `dialog` : prise en compte de l'attribut `no-header`
|
|
14
|
+
|
|
15
|
+
## 1.16.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- d06ec5a: `radio-group`, `radio-button` : mis à jour du tabindex des boutons lorsque l'un d'entre eux est désactivé dynamiquement
|
|
20
|
+
- f6cffa4: `select`, `combobox` : suppression de la boucle sur les éléments de la liste
|
|
21
|
+
- e6db13e: `checkbox`: ajout d'un attribut `for` sur le label
|
|
22
|
+
- c0da8f9: `step` : suppression de l'imagevide pour les étapes avec un état par défaut
|
|
23
|
+
- 1128755: `combobox`: effacement du champ lorsque la valeur est supprimée
|
|
24
|
+
- cc201ca: `checkbox-group` : ajout des checkbox dans une liste non ordonnée
|
|
25
|
+
- e990316: `table-of-contents`: possibilité d'utiliser des données dynamiques
|
|
26
|
+
- b08a940: `input`, `input-mask`, `input-phone`, `textarea` : changement de l'emplacement de `aria-invalid`
|
|
27
|
+
- 5b1d9eb: `card`, `navbar`, `table-of-contents`: amélioration a11y, suppression de l'attribut `aria-label` de l'élément `card`
|
|
28
|
+
|
|
3
29
|
## 1.16.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -54,7 +54,7 @@ var combobox_styles_default = css`
|
|
|
54
54
|
var(--dsa-wc-transition-fast) box-shadow,
|
|
55
55
|
var(--dsa-wc-transition-fast) background-color;
|
|
56
56
|
border-radius: var(--dsa-wc-input-border-radius);
|
|
57
|
-
padding: var(--dsa-wc-
|
|
57
|
+
padding: var(--dsa-wc-select-padding);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.select__display-input {
|
|
@@ -71,6 +71,10 @@ var combobox_styles_default = css`
|
|
|
71
71
|
-webkit-appearance: none;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
.select__display-input::placeholder {
|
|
75
|
+
color: var(--dsa-wc-input-on-base-text-field-placeholder-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
74
78
|
.select__display-input:focus {
|
|
75
79
|
outline: none;
|
|
76
80
|
}
|
|
@@ -107,8 +111,9 @@ var combobox_styles_default = css`
|
|
|
107
111
|
display: flex;
|
|
108
112
|
align-items: center;
|
|
109
113
|
flex-wrap: wrap;
|
|
110
|
-
margin-inline-start: var(--dsa-wc-
|
|
114
|
+
margin-inline-start: var(--dsa-wc-multiselect-tag-margin-inline-start);
|
|
111
115
|
min-width: 0;
|
|
116
|
+
order: -1;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
.select__tags dsa-tag {
|
|
@@ -117,21 +122,11 @@ var combobox_styles_default = css`
|
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
.select__tags dsa-tag::part(base) {
|
|
120
|
-
background: var(--dsa-wc-
|
|
121
|
-
color: var(--dsa-wc-
|
|
122
|
-
border: solid 1px var(--dsa-wc-
|
|
123
|
-
border-radius: var(--dsa-wc-
|
|
124
|
-
padding: 0 var(--dsa-wc-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.select--error .select__tags dsa-tag::part(base) {
|
|
128
|
-
background: var(--dsa-wc-combobox-tag-error-background) !important;
|
|
129
|
-
color: var(--dsa-wc-combobox-tag-error-color) !important;
|
|
130
|
-
border: solid 1px var(--dsa-wc-combobox-tag-error-border-color);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.select--error .select__tags dsa-tag::part(remove-button) {
|
|
134
|
-
color: var(--dsa-wc-combobox-tag-error-color) !important;
|
|
125
|
+
background: var(--dsa-wc-multiselect-tag-background) !important;
|
|
126
|
+
color: var(--dsa-wc-multiselect-tag-color) !important;
|
|
127
|
+
border: solid 1px var(--dsa-wc-multiselect-tag-border-color);
|
|
128
|
+
border-radius: var(--dsa-wc-multiselect-tag-border-radius);
|
|
129
|
+
padding: 0 var(--dsa-wc-multiselect-tag-padding-inline);
|
|
135
130
|
}
|
|
136
131
|
|
|
137
132
|
.select--disabled .select__tags,
|
|
@@ -260,6 +255,7 @@ var combobox_styles_default = css`
|
|
|
260
255
|
/* Sizes */
|
|
261
256
|
.select--small .select__combobox {
|
|
262
257
|
font: var(--dsa-wc-combobox-input-font-small);
|
|
258
|
+
min-height: var(--dsa-wc-form-input-height-small);
|
|
263
259
|
}
|
|
264
260
|
|
|
265
261
|
.select--small.select--multiple:not(.select--placeholder-visible)
|
|
@@ -274,6 +270,7 @@ var combobox_styles_default = css`
|
|
|
274
270
|
|
|
275
271
|
.select--medium .select__combobox {
|
|
276
272
|
font: var(--dsa-wc-combobox-input-font);
|
|
273
|
+
min-height: var(--dsa-wc-form-input-height);
|
|
277
274
|
}
|
|
278
275
|
|
|
279
276
|
.select--medium.select--multiple:not(.select--placeholder-visible)
|
|
@@ -286,7 +283,9 @@ var combobox_styles_default = css`
|
|
|
286
283
|
gap: 3px;
|
|
287
284
|
}
|
|
288
285
|
.select--large .select__combobox {
|
|
286
|
+
padding-block: 3px;
|
|
289
287
|
font: var(--dsa-wc-combobox-input-font-large);
|
|
288
|
+
min-height: var(--dsa-wc-form-input-height-large);
|
|
290
289
|
}
|
|
291
290
|
.select--large.select--multiple:not(.select--placeholder-visible)
|
|
292
291
|
.select__combobox {
|
|
@@ -37,9 +37,7 @@ var input_phone_styles_default = css`
|
|
|
37
37
|
height: auto;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.input-phone--focused:not(.input-phone--disabled)
|
|
41
|
-
.input-phone--readonly
|
|
42
|
-
) {
|
|
40
|
+
.input-phone--focused:not(.input-phone--disabled) {
|
|
43
41
|
outline: var(--dsa-wc-focus-ring);
|
|
44
42
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
45
43
|
}
|
|
@@ -43,7 +43,7 @@ var input_mask_styles_default = css`
|
|
|
43
43
|
color: transparent;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.input-mask--focused:not(.input-mask--disabled)
|
|
46
|
+
.input-mask--focused:not(.input-mask--disabled) {
|
|
47
47
|
outline: var(--dsa-wc-focus-ring);
|
|
48
48
|
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
49
49
|
}
|
|
@@ -35,10 +35,11 @@ var textarea_styles_default = css`
|
|
|
35
35
|
var(--dsa-wc-input-on-layer-border-color);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.textarea--on-layer:hover:not(.textarea--disabled) {
|
|
38
|
+
.textarea--on-layer:hover:not(.textarea--disabled):not(.textarea--readonly) {
|
|
39
39
|
border-color: var(--dsa-wc-input-on-layer-border-color-hover);
|
|
40
40
|
}
|
|
41
|
-
.textarea--on-layer:not(.textarea--disabled)
|
|
41
|
+
.textarea--on-layer:not(.textarea--disabled):not(.textarea--readonly)
|
|
42
|
+
.textarea__control {
|
|
42
43
|
color: var(--dsa-wc-input-on-layer-text-field-input-color);
|
|
43
44
|
}
|
|
44
45
|
.textarea--on-layer .textarea__control::placeholder {
|
|
@@ -67,7 +68,9 @@ var textarea_styles_default = css`
|
|
|
67
68
|
background-color: var(--dsa-wc-input-on-layer-background-color-error);
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
.textarea--on-layer.textarea--error:hover:not(.textarea--disabled)
|
|
71
|
+
.textarea--on-layer.textarea--error:hover:not(.textarea--disabled):not(
|
|
72
|
+
.textarea--readonly
|
|
73
|
+
) {
|
|
71
74
|
border-color: var(--dsa-wc-input-on-layer-border-color-error-hover);
|
|
72
75
|
}
|
|
73
76
|
/* On Base textareas */
|
|
@@ -78,7 +81,7 @@ var textarea_styles_default = css`
|
|
|
78
81
|
color: var(--dsa-wc-input-on-base-text-field-input-color);
|
|
79
82
|
}
|
|
80
83
|
|
|
81
|
-
.textarea--on-base:hover:not(.textarea--disabled) {
|
|
84
|
+
.textarea--on-base:hover:not(.textarea--disabled):not(.textarea--readonly) {
|
|
82
85
|
border-color: var(--dsa-wc-input-on-base-border-color-hover);
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -88,7 +91,13 @@ var textarea_styles_default = css`
|
|
|
88
91
|
cursor: not-allowed;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
.textarea--on-base
|
|
94
|
+
.textarea--on-base.textarea--readonly {
|
|
95
|
+
background-color: var(--dsa-wc-input-on-base-read-only-background-color);
|
|
96
|
+
border-color: var(--dsa-wc-input-on-base-read-only-border-color);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.textarea--on-base:not(.textarea--disabled):not(.textarea--readonly)
|
|
100
|
+
.textarea__control {
|
|
92
101
|
color: var(--dsa-wc-input-on-base-text-field-input-color);
|
|
93
102
|
}
|
|
94
103
|
.textarea--on-base .textarea__control::placeholder {
|
|
@@ -101,7 +110,9 @@ var textarea_styles_default = css`
|
|
|
101
110
|
background-color: var(--dsa-wc-input-on-base-background-color-error);
|
|
102
111
|
}
|
|
103
112
|
|
|
104
|
-
.textarea--on-base.textarea--error:hover:not(.textarea--disabled)
|
|
113
|
+
.textarea--on-base.textarea--error:hover:not(.textarea--disabled):not(
|
|
114
|
+
.textarea--readonly
|
|
115
|
+
) {
|
|
105
116
|
border-color: var(--dsa-wc-input-on-base-border-color-error-hover);
|
|
106
117
|
}
|
|
107
118
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
combobox_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2UZSRWJ7.js";
|
|
4
4
|
import {
|
|
5
5
|
scrollIntoView
|
|
6
6
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -388,6 +388,11 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
handleEnterKey(event) {
|
|
391
|
+
const target = event.target;
|
|
392
|
+
const isTag = target.closest("dsa-tag") !== null;
|
|
393
|
+
if (isTag) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
391
396
|
event.preventDefault();
|
|
392
397
|
event.stopImmediatePropagation();
|
|
393
398
|
if (this.open && this.currentOption !== void 0 && !this.currentOption.disabled) {
|
|
@@ -420,13 +425,15 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
420
425
|
}
|
|
421
426
|
switch (event.key) {
|
|
422
427
|
case "ArrowDown":
|
|
423
|
-
|
|
428
|
+
if (currentIndex < this.allOptions.length - 1) {
|
|
429
|
+
newIndex = currentIndex + 1;
|
|
430
|
+
}
|
|
424
431
|
break;
|
|
425
432
|
case "ArrowUp":
|
|
426
433
|
if (currentIndex === -1) {
|
|
427
|
-
newIndex =
|
|
428
|
-
} else {
|
|
429
|
-
newIndex =
|
|
434
|
+
newIndex = 1;
|
|
435
|
+
} else if (currentIndex > 0) {
|
|
436
|
+
newIndex = currentIndex - 1;
|
|
430
437
|
}
|
|
431
438
|
break;
|
|
432
439
|
case "Home":
|
|
@@ -465,7 +472,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
465
472
|
this.setSelectedOptions(
|
|
466
473
|
this.allOptions.filter((el) => value.includes(el.value))
|
|
467
474
|
);
|
|
468
|
-
if (!this.multiple
|
|
475
|
+
if (!this.multiple) {
|
|
469
476
|
this.syncOnSelection();
|
|
470
477
|
}
|
|
471
478
|
}
|
|
@@ -639,6 +646,41 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
639
646
|
"input-container": true
|
|
640
647
|
})}
|
|
641
648
|
>
|
|
649
|
+
<input
|
|
650
|
+
id="input"
|
|
651
|
+
part="display-input"
|
|
652
|
+
class="select__display-input"
|
|
653
|
+
type="text"
|
|
654
|
+
.value=${this.displayLabel}
|
|
655
|
+
placeholder=${ifDefinedAndNotEmpty(this.placeholder)}
|
|
656
|
+
.disabled=${this.disabled}
|
|
657
|
+
size=${selectInputWidth}
|
|
658
|
+
autocomplete="off"
|
|
659
|
+
spellcheck="false"
|
|
660
|
+
autocapitalize="off"
|
|
661
|
+
title=${ifDefinedAndNotEmpty(this.title)}
|
|
662
|
+
aria-controls="listbox"
|
|
663
|
+
aria-autocomplete="list"
|
|
664
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
665
|
+
aria-haspopup="listbox"
|
|
666
|
+
aria-labelledby=${ifDefinedAndNotEmpty(
|
|
667
|
+
hasLabel ? "label" : void 0
|
|
668
|
+
)}
|
|
669
|
+
aria-label=${ifDefinedAndNotEmpty(
|
|
670
|
+
hasLabel ? void 0 : this.title
|
|
671
|
+
)}
|
|
672
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
673
|
+
aria-describedby=${this.error ? "error-text help-text" : "help-text"}
|
|
674
|
+
aria-activedescendant=${(_b = (_a = this.currentOption) == null ? void 0 : _a.id) != null ? _b : ""}
|
|
675
|
+
role="combobox"
|
|
676
|
+
tabindex="0"
|
|
677
|
+
@change=${this.handleChange}
|
|
678
|
+
@input=${this.handleInput}
|
|
679
|
+
@focus=${this.handleFocus}
|
|
680
|
+
@blur=${this.handleBlur}
|
|
681
|
+
@invalid=${this.handleInvalid}
|
|
682
|
+
/>
|
|
683
|
+
|
|
642
684
|
${this.multiple && this.value.length > 0 ? html`
|
|
643
685
|
<div part="tags" class="select__tags">
|
|
644
686
|
${this.selectedOptions.map((option, index) => {
|
|
@@ -654,7 +696,6 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
654
696
|
"
|
|
655
697
|
size=${this.size}
|
|
656
698
|
removable
|
|
657
|
-
disable-removable-focus
|
|
658
699
|
@dsa-remove=${(event) => this.handleTagRemove(event, option)}
|
|
659
700
|
label=${option.getTextLabel()}
|
|
660
701
|
>
|
|
@@ -663,7 +704,6 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
663
704
|
} else if (index === this.maxOptionsVisible) {
|
|
664
705
|
return html`
|
|
665
706
|
<dsa-tag
|
|
666
|
-
disable-removable-focus
|
|
667
707
|
size=${this.size}
|
|
668
708
|
label="+${this.selectedOptions.length - index}"
|
|
669
709
|
>
|
|
@@ -675,41 +715,6 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
675
715
|
})}
|
|
676
716
|
</div>
|
|
677
717
|
` : ""}
|
|
678
|
-
|
|
679
|
-
<input
|
|
680
|
-
id="input"
|
|
681
|
-
part="display-input"
|
|
682
|
-
class="select__display-input"
|
|
683
|
-
type="text"
|
|
684
|
-
.value=${this.displayLabel}
|
|
685
|
-
placeholder=${ifDefinedAndNotEmpty(this.placeholder)}
|
|
686
|
-
.disabled=${this.disabled}
|
|
687
|
-
size=${selectInputWidth}
|
|
688
|
-
autocomplete="off"
|
|
689
|
-
spellcheck="false"
|
|
690
|
-
autocapitalize="off"
|
|
691
|
-
title=${ifDefinedAndNotEmpty(this.title)}
|
|
692
|
-
aria-controls="listbox"
|
|
693
|
-
aria-autocomplete="list"
|
|
694
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
695
|
-
aria-haspopup="listbox"
|
|
696
|
-
aria-labelledby=${ifDefinedAndNotEmpty(
|
|
697
|
-
hasLabel ? "label" : void 0
|
|
698
|
-
)}
|
|
699
|
-
aria-label=${ifDefinedAndNotEmpty(
|
|
700
|
-
hasLabel ? void 0 : this.title
|
|
701
|
-
)}
|
|
702
|
-
aria-disabled=${this.disabled ? "true" : "false"}
|
|
703
|
-
aria-describedby="help-text"
|
|
704
|
-
aria-activedescendant=${(_b = (_a = this.currentOption) == null ? void 0 : _a.id) != null ? _b : ""}
|
|
705
|
-
role="combobox"
|
|
706
|
-
tabindex="0"
|
|
707
|
-
@change=${this.handleChange}
|
|
708
|
-
@input=${this.handleInput}
|
|
709
|
-
@focus=${this.handleFocus}
|
|
710
|
-
@blur=${this.handleBlur}
|
|
711
|
-
@invalid=${this.handleInvalid}
|
|
712
|
-
/>
|
|
713
718
|
</div>
|
|
714
719
|
|
|
715
720
|
<input
|
|
@@ -794,6 +799,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
794
799
|
</slot>
|
|
795
800
|
|
|
796
801
|
${this.error && !this.disabled ? html`<dsa-error-text
|
|
802
|
+
id="error-text"
|
|
797
803
|
part="form-control-error-text"
|
|
798
804
|
class="form-control__error-text"
|
|
799
805
|
>${this.errorMessage}</dsa-error-text
|
|
@@ -136,8 +136,10 @@ var DSAOption = class extends ShoelaceElement {
|
|
|
136
136
|
class="option__label"
|
|
137
137
|
@slotchange=${this.handleDefaultSlotChange}
|
|
138
138
|
></slot>
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
${this.amount ? html`
|
|
140
|
+
<dsa-visually-hidden>:</dsa-visually-hidden>
|
|
141
|
+
<span class="option__amount">${this.amount}</span>
|
|
142
|
+
` : ""}
|
|
141
143
|
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
142
144
|
</div>
|
|
143
145
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KZ65ORAL.js";
|
|
4
4
|
|
|
5
5
|
// src/components/checkbox-button/checkbox-button.styles.ts
|
|
6
6
|
import { css } from "lit";
|
|
@@ -8,8 +8,7 @@ var checkbox_button_styles_default = css`
|
|
|
8
8
|
${button_styles_default}
|
|
9
9
|
|
|
10
10
|
.button__prefix,
|
|
11
|
-
.button__suffix,
|
|
12
|
-
.button__label {
|
|
11
|
+
.button__suffix, {
|
|
13
12
|
display: inline-flex;
|
|
14
13
|
position: relative;
|
|
15
14
|
align-items: center;
|
|
@@ -116,21 +115,18 @@ var checkbox_button_styles_default = css`
|
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
/* Add padding to keep check icon space if in vertical checkbox-group */
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
:
|
|
125
|
-
.button--medium:not(.button--checked)
|
|
126
|
-
.button__label {
|
|
127
|
-
padding-right: 18px;
|
|
128
|
-
}
|
|
129
|
-
:host(.dsa-button-group__button--vertical)
|
|
130
|
-
.button--large:not(.button--checked)
|
|
131
|
-
.button__label {
|
|
118
|
+
|
|
119
|
+
.button--small:not(.button--checked) .button__label {
|
|
120
|
+
padding-right: 22px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.button--medium:not(.button--checked) .button__label {
|
|
132
124
|
padding-right: 20px;
|
|
133
125
|
}
|
|
126
|
+
|
|
127
|
+
.button--large:not(.button--checked) .button__label {
|
|
128
|
+
padding-right: 24px;
|
|
129
|
+
}
|
|
134
130
|
`;
|
|
135
131
|
|
|
136
132
|
export {
|
|
@@ -233,24 +233,26 @@ var DSADialog = class extends ShoelaceElement {
|
|
|
233
233
|
aria-labelledby=${ifDefined(!this.noHeader ? "title" : void 0)}
|
|
234
234
|
tabindex="0"
|
|
235
235
|
>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
236
|
+
${!this.noHeader ? html`
|
|
237
|
+
<header part="header" class="dialog__header">
|
|
238
|
+
<h1 part="title" class="dialog__title" id="title">
|
|
239
|
+
<slot name="label">
|
|
240
|
+
${this.label.length > 0 ? this.label : String.fromCharCode(65279)}
|
|
241
|
+
</slot>
|
|
242
|
+
</h1>
|
|
243
|
+
<div part="header-actions" class="dialog__header-actions">
|
|
244
|
+
<slot name="header-actions"></slot>
|
|
245
|
+
<dsa-icon-button
|
|
246
|
+
part="close-button"
|
|
247
|
+
exportparts="base:close-button__base"
|
|
248
|
+
class="dialog__close"
|
|
249
|
+
name="close"
|
|
250
|
+
label=${this.localize.term("close")}
|
|
251
|
+
@click="${() => this.requestClose("close-button")}"
|
|
252
|
+
></dsa-icon-button>
|
|
253
|
+
</div>
|
|
254
|
+
</header>
|
|
255
|
+
` : ""}
|
|
254
256
|
<div class="dialog__body-container" tabindex="0">
|
|
255
257
|
<slot part="body" class="dialog__body"></slot>
|
|
256
258
|
</div>
|