@ds-autonomie/web-components 1.10.0 → 1.11.1
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 +24 -0
- package/dist/chunks/{chunk.KUC4IPNW.js → chunk.2EF2XM6Z.js} +29 -7
- package/dist/chunks/{chunk.FQXQIC6N.js → chunk.3LVYSAA2.js} +0 -9
- package/dist/chunks/{chunk.4BPTV7TY.js → chunk.4EFJ2NV3.js} +8 -1
- package/dist/chunks/{chunk.S625WSQN.js → chunk.4GRAI2MY.js} +4 -4
- package/dist/chunks/{chunk.WNODOQAI.js → chunk.4KIYFTCP.js} +1 -1
- package/dist/chunks/{chunk.2O7XBCK3.js → chunk.4V4L6Q7P.js} +4 -2
- package/dist/chunks/{chunk.RZ3LYIA4.js → chunk.5TGJF2VX.js} +1 -1
- package/dist/chunks/{chunk.UVCXXEVO.js → chunk.5WCKK7SH.js} +1 -1
- package/dist/chunks/{chunk.N27XTH35.js → chunk.6FSQE5WT.js} +14 -6
- package/dist/chunks/{chunk.3EDVQPST.js → chunk.6SKEHIZQ.js} +1 -1
- package/dist/chunks/{chunk.DDTC2S6X.js → chunk.A6HP3LGA.js} +2 -2
- package/dist/chunks/{chunk.UXXDCLQD.js → chunk.AYZJ2B54.js} +1 -1
- package/dist/chunks/chunk.B5C2ON33.js +638 -0
- package/dist/chunks/{chunk.O3CX2C5Y.js → chunk.C5PYRA4I.js} +6 -2
- package/dist/chunks/{chunk.DAQJDIFW.js → chunk.CE47KGOK.js} +29 -10
- package/dist/chunks/{chunk.2DGAEK66.js → chunk.CZFGLE3Y.js} +78 -3
- package/dist/chunks/{chunk.TWRM2VNQ.js → chunk.DKP2QEJ3.js} +7 -9
- package/dist/chunks/{chunk.TPFNNLIZ.js → chunk.E2BNQCEK.js} +4 -4
- package/dist/chunks/{chunk.RFLSIZXC.js → chunk.F52TTDDR.js} +1 -1
- package/dist/chunks/{chunk.ICD5HBUY.js → chunk.FACQFV6Q.js} +3 -2
- package/dist/chunks/{chunk.RCI25EBE.js → chunk.FB2PD4IM.js} +1 -1
- package/dist/chunks/{chunk.6LX2WW5F.js → chunk.FILHBVIG.js} +1 -1
- package/dist/chunks/{chunk.RTNJV3ZL.js → chunk.G4ODEI4O.js} +9 -9
- package/dist/chunks/{chunk.JLGAZ7Q6.js → chunk.GNSP6ZEB.js} +4 -4
- package/dist/chunks/{chunk.TTAJYLMN.js → chunk.GXLDZOAA.js} +6 -7
- package/dist/chunks/{chunk.EKECBGKK.js → chunk.HGAVDYFY.js} +4 -4
- package/dist/chunks/{chunk.UKEZHGD5.js → chunk.I2JI6QAT.js} +3 -3
- package/dist/chunks/{chunk.IVY7MTJ5.js → chunk.IDKMZUCW.js} +4 -4
- package/dist/chunks/{chunk.UXKJPQ6X.js → chunk.J4ETRYMZ.js} +8 -3
- package/dist/chunks/{chunk.HW4HC4GP.js → chunk.JSNVYESF.js} +2 -0
- package/dist/chunks/{chunk.7NRLP2GK.js → chunk.KFIKO7PX.js} +1 -1
- package/dist/chunks/{chunk.DEOM4Y53.js → chunk.KPZLA5TO.js} +4 -4
- package/dist/chunks/{chunk.7H7XQTS6.js → chunk.KUKYDHBC.js} +16 -1
- package/dist/chunks/chunk.LYROXSMI.js +119 -0
- package/dist/chunks/{chunk.R63T3XPH.js → chunk.N2YZOT45.js} +4 -4
- package/dist/chunks/{chunk.27JQOQHL.js → chunk.NES7WFNV.js} +22 -22
- package/dist/chunks/{chunk.3BOLT7UM.js → chunk.NY2KBI3T.js} +6 -1
- package/dist/chunks/{chunk.DFG6FESK.js → chunk.O3CACOEB.js} +6 -2
- package/dist/chunks/{chunk.7XGLQBTT.js → chunk.OHTG36CL.js} +10 -7
- package/dist/chunks/{chunk.7PEABCEV.js → chunk.OSEMZFB2.js} +1 -1
- package/dist/chunks/{chunk.6M3PE7F4.js → chunk.PEALNHNZ.js} +1 -1
- package/dist/chunks/{chunk.CURRLKGD.js → chunk.PW4OS4X2.js} +1 -1
- package/dist/chunks/{chunk.TUWCKMLU.js → chunk.QPEXO5QL.js} +2 -2
- package/dist/chunks/{chunk.HAJSA7VP.js → chunk.RJYCDLIQ.js} +0 -4
- package/dist/chunks/chunk.ROBVS56I.js +69 -0
- package/dist/chunks/{chunk.DWASAPA2.js → chunk.ROH4BM4I.js} +9 -2
- package/dist/chunks/{chunk.POJ5NHBX.js → chunk.SORNKBIH.js} +1 -1
- package/dist/chunks/{chunk.AFFFEIW7.js → chunk.SZ2VCGC3.js} +4 -1
- package/dist/chunks/{chunk.PZWK6P5R.js → chunk.U3FAMWMW.js} +5 -5
- package/dist/chunks/{chunk.MHEF6WDT.js → chunk.V54N3RKQ.js} +1 -1
- package/dist/chunks/chunk.VEPUGCDQ.js +62 -0
- package/dist/chunks/{chunk.R3Y3IVO2.js → chunk.VFENRJLL.js} +2 -6
- package/dist/chunks/{chunk.IFRX2VEM.js → chunk.VTFUDEYX.js} +5 -5
- package/dist/chunks/{chunk.2TCYCYJQ.js → chunk.WBFM2SOT.js} +22 -18
- package/dist/chunks/{chunk.S7OQV6LL.js → chunk.WCNSHUFU.js} +1 -1
- package/dist/chunks/{chunk.UGLLQNQE.js → chunk.WF3O66VR.js} +2 -0
- package/dist/chunks/{chunk.SMUQF6W4.js → chunk.WVY7IVWY.js} +2 -2
- package/dist/chunks/{chunk.RO44FY3M.js → chunk.XZXTQFSR.js} +2 -1
- package/dist/chunks/{chunk.7ZBFOFLF.js → chunk.Z3IUTCVZ.js} +1 -1
- package/dist/chunks/{chunk.XT7C6ZDU.js → chunk.ZKVSZQWJ.js} +5 -5
- package/dist/chunks/{chunk.NNNXN334.js → chunk.ZVIBE4XH.js} +9 -9
- package/dist/components/accordion/accordion.js +4 -5
- package/dist/components/alert/alert.js +5 -6
- package/dist/components/anchor-tag/anchor-tag.js +2 -2
- package/dist/components/animation/animation.js +2 -2
- package/dist/components/avatar/avatar.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +3 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -3
- package/dist/components/button/button.js +5 -6
- package/dist/components/checkbox/checkbox.js +3 -3
- package/dist/components/checkbox-button/checkbox-button.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.js +2 -1
- package/dist/components/combobox/combobox.d.ts +6 -7
- package/dist/components/combobox/combobox.js +6 -7
- package/dist/components/dialog/dialog.js +4 -5
- package/dist/components/download-card/download-card.js +1 -1
- package/dist/components/download-link/download-link.js +1 -1
- package/dist/components/drawer/drawer.js +4 -5
- package/dist/components/dropdown/dropdown.js +2 -3
- package/dist/components/error-message-panel/error-message-panel.js +2 -3
- package/dist/components/file-upload/file-upload.js +2 -2
- package/dist/components/filter/filter-button/filter-button.d.ts +3 -7
- package/dist/components/filter/filter-button/filter-button.js +3 -3
- package/dist/components/filter/filter-button/filter-button.styles.js +1 -1
- package/dist/components/filter/filter-select/filter-select.d.ts +127 -0
- package/dist/components/filter/filter-select/filter-select.js +30 -0
- package/dist/components/filter/filter-select/filter-select.styles.js +9 -0
- package/dist/components/footer/footer.assets.d.ts +1 -1
- package/dist/components/footer/footer.assets.js +1 -1
- package/dist/components/footer/footer.d.ts +1 -0
- package/dist/components/footer/footer.js +3 -2
- package/dist/components/{footer-inline-divider/footer-inline-divider.d.ts → footer-mandatory-mentions/footer-mandatory-mentions.d.ts} +2 -2
- package/dist/components/{footer-inline-divider/footer-inline-divider.js → footer-mandatory-mentions/footer-mandatory-mentions.js} +4 -4
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.styles.d.ts +2 -0
- package/dist/components/footer-mandatory-mentions/footer-mandatory-mentions.styles.js +8 -0
- package/dist/components/footer-sitemap/footer-sitemap.d.ts +0 -1
- package/dist/components/footer-sitemap/footer-sitemap.js +1 -1
- package/dist/components/format-bytes/format-bytes.js +2 -3
- package/dist/components/format-date/format-date.js +2 -3
- package/dist/components/format-number/format-number.js +2 -3
- package/dist/components/header/header.assets.js +1 -1
- package/dist/components/header/header.js +4 -5
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/header-search/header-search.d.ts +1 -0
- package/dist/components/header-search/header-search.js +2 -3
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/input/input.js +4 -5
- package/dist/components/input-mask/input-mask.js +3 -4
- package/dist/components/input-phone/input-phone.js +11 -12
- package/dist/components/menu-item/menu-item.js +1 -1
- package/dist/components/option/option.d.ts +4 -0
- package/dist/components/option/option.js +4 -5
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/pagination/pagination.d.ts +2 -0
- package/dist/components/pagination/pagination.js +7 -8
- package/dist/components/pagination-button/pagination-button.d.ts +3 -0
- package/dist/components/pagination-button/pagination-button.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +2 -3
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-group/radio-group.js +3 -2
- package/dist/components/relative-time/relative-time.js +2 -3
- package/dist/components/select/select.d.ts +5 -5
- package/dist/components/select/select.js +6 -7
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/spinner/spinner.js +2 -3
- package/dist/components/step/step.js +3 -4
- package/dist/components/tab/tab.js +2 -3
- package/dist/components/tab-group/tab-group.js +2 -3
- package/dist/components/table/table-action/table-action.js +3 -4
- package/dist/components/table/table-action/table-action.styles.js +1 -1
- package/dist/components/table/table-caption/table-caption.js +2 -3
- package/dist/components/table/table-header-cell/table-header-cell.d.ts +0 -1
- package/dist/components/table/table-header-cell/table-header-cell.js +2 -3
- package/dist/components/table/table-header-row/table-header-row.d.ts +3 -1
- package/dist/components/table/table-header-row/table-header-row.js +4 -5
- package/dist/components/table/table-header-row/table-header-row.styles.js +1 -1
- package/dist/components/table/table-row/table-row.d.ts +3 -2
- package/dist/components/table/table-row/table-row.js +2 -3
- package/dist/components/table/table-toolbar/table-toolbar.d.ts +1 -0
- package/dist/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/components/table/table-toolbar/table-toolbar.styles.js +1 -1
- package/dist/components/table-container/table-container.js +2 -2
- package/dist/components/table-container/table-container.styles.js +1 -1
- package/dist/components/tag/tag.js +4 -5
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/components/tooltip/tooltip.js +2 -3
- package/dist/components/tree/tree.js +7 -8
- package/dist/components/tree-item/tree-item.js +6 -7
- package/dist/custom-elements.json +854 -152
- package/dist/design-system.d.ts +2 -1
- package/dist/design-system.js +92 -87
- package/dist/internal/components/button-group/button-group.js +2 -1
- package/dist/themes/dsa-wc-theme.css +16 -5
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +18 -5
- package/dist/translations/en-gb.js +1 -2
- package/dist/translations/en.js +1 -2
- package/dist/translations/fr.js +1 -2
- package/dist/utilities/localize.d.ts +11 -3
- package/dist/utilities/localize.js +1 -2
- package/dist/vscode.html-custom-data.json +80 -8
- package/dist/web-types.json +509 -79
- package/package.json +1 -1
- package/dist/chunks/chunk.2B2NWNWC.js +0 -96
- package/dist/chunks/chunk.2RNPEMKK.js +0 -26
- package/dist/components/footer-inline-divider/footer-inline-divider.styles.js +0 -8
- package/dist/chunks/{chunk.MU4OZP4G.js → chunk.5QYMKLPJ.js} +3 -3
- package/dist/chunks/{chunk.N6P5LTWQ.js → chunk.CW4YJC4U.js} +3 -3
- package/dist/chunks/{chunk.CS2X5IKX.js → chunk.H7OOLAC7.js} +3 -3
- package/dist/chunks/{chunk.2R6P5TGQ.js → chunk.PEAFJZ6C.js} +3 -3
- package/dist/chunks/{chunk.GTNLFUMY.js → chunk.RCSAV4XJ.js} +3 -3
- /package/dist/components/{footer-inline-divider/footer-inline-divider.styles.d.ts → filter/filter-select/filter-select.styles.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3aad88c: `error-message-panel`: cacher les svg pour les technologies d'assistance
|
|
8
|
+
- 2ef7590: `footer-mandatory-mentions` : rename `footer-inline-divider` to `footer-mandatory-mentions`
|
|
9
|
+
- 96485a2: `pagination` : amélioration de l'accessibilité
|
|
10
|
+
- 9cdf80c: `input` : la ligne d'erreur n'est pas affichée si le message d'erreur est vide
|
|
11
|
+
- 6381772: `combobox`, `menu`, `radio-group`: définition d'un aria-label sur les info-bulles des exemples storybook manquants
|
|
12
|
+
- 4d28d75: `skip-links`: résolution des retours d'accessibilités sur le composant skip-links
|
|
13
|
+
- ba7e576: `footer-sitemap`, `footer`: résolutions des retours d'accessibilités sur les composants footer et footer-sitemap
|
|
14
|
+
- d7481cc: `radio`, `checkbox`: résolution des retours d'accessibilité
|
|
15
|
+
- bb896cb: `card`: résolution des retours d'accessibilité sur le composant card
|
|
16
|
+
- 0c61642: `select` : affichage du focus ring du bouton clear
|
|
17
|
+
- c11e005: `header`, `table`, `input-phone` : résolution des retours d'accessibilités
|
|
18
|
+
|
|
19
|
+
## 1.11.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 05ef1ae: `filter-select` : ajout du filtre à sélection unique
|
|
24
|
+
- d2850e7: `option` : modification de l'apparence quand plusieurs options peuvent être sélectionnées; `filter-select` : possibilité de sélectionner plusieurs options
|
|
25
|
+
- e506100: `table-toolbar` : ajout d'un slot pour le filtre des colonnes
|
|
26
|
+
|
|
3
27
|
## 1.10.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.YIY5RM53.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.NES7WFNV.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -30,6 +30,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
30
30
|
this.currentPage = 1;
|
|
31
31
|
this.totalItems = 1;
|
|
32
32
|
this.itemsPerPage = 10;
|
|
33
|
+
this.navigationType = "button";
|
|
33
34
|
}
|
|
34
35
|
handlePageButtonClick(event) {
|
|
35
36
|
if (event.target.value !== -1 && !event.target.selected) {
|
|
@@ -47,6 +48,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
47
48
|
return Array.from({ length: end - start + 1 }, (_, i) => {
|
|
48
49
|
const pageNumber = start + i;
|
|
49
50
|
return html`<dsa-pagination-button
|
|
51
|
+
navigation-type=${this.navigationType}
|
|
50
52
|
value=${pageNumber}
|
|
51
53
|
?selected=${this.currentPage === pageNumber}
|
|
52
54
|
></dsa-pagination-button>`;
|
|
@@ -58,16 +60,29 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
58
60
|
} else if (this.currentPage < 4 || this.currentPage > this.totalPages - 3) {
|
|
59
61
|
return html`
|
|
60
62
|
${this.renderButtonsRange(1, 3)}
|
|
61
|
-
<dsa-pagination-button
|
|
63
|
+
<dsa-pagination-button
|
|
64
|
+
navigation-type=${this.navigationType}
|
|
65
|
+
value="-1"
|
|
66
|
+
></dsa-pagination-button>
|
|
62
67
|
${this.renderButtonsRange(this.totalPages - 2, this.totalPages)}
|
|
63
68
|
`;
|
|
64
69
|
} else {
|
|
65
70
|
return html`
|
|
66
|
-
<dsa-pagination-button
|
|
67
|
-
|
|
71
|
+
<dsa-pagination-button
|
|
72
|
+
navigation-type=${this.navigationType}
|
|
73
|
+
value="1"
|
|
74
|
+
></dsa-pagination-button>
|
|
75
|
+
<dsa-pagination-button
|
|
76
|
+
navigation-type=${this.navigationType}
|
|
77
|
+
value="-1"
|
|
78
|
+
></dsa-pagination-button>
|
|
68
79
|
${this.renderButtonsRange(this.currentPage - 1, this.currentPage + 1)}
|
|
69
|
-
<dsa-pagination-button value="-1"></dsa-pagination-button>
|
|
70
80
|
<dsa-pagination-button
|
|
81
|
+
navigation-type=${this.navigationType}
|
|
82
|
+
value="-1"
|
|
83
|
+
></dsa-pagination-button>
|
|
84
|
+
<dsa-pagination-button
|
|
85
|
+
navigation-type=${this.navigationType}
|
|
71
86
|
value="${this.totalPages}"
|
|
72
87
|
></dsa-pagination-button>
|
|
73
88
|
`;
|
|
@@ -107,9 +122,10 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
107
122
|
<!-- Mobile Navigation -->
|
|
108
123
|
<nav
|
|
109
124
|
class="pagination__navigation--mobile"
|
|
110
|
-
|
|
125
|
+
aria-label=${this.localize.term("pagination")}
|
|
111
126
|
>
|
|
112
127
|
<dsa-pagination-button
|
|
128
|
+
navigation-type=${this.navigationType}
|
|
113
129
|
value="${this.currentPage - 1}"
|
|
114
130
|
?disabled=${this.currentPage < 2}
|
|
115
131
|
class="pagination__navigation__button--mobile"
|
|
@@ -134,6 +150,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
134
150
|
<p>${this.localize.term("ofTotal", this.totalPages)}</p>
|
|
135
151
|
</div>
|
|
136
152
|
<dsa-pagination-button
|
|
153
|
+
navigation-type=${this.navigationType}
|
|
137
154
|
value="${this.currentPage + 1}"
|
|
138
155
|
?disabled=${this.currentPage > this.totalPages - 1}
|
|
139
156
|
class="pagination__navigation__button--mobile"
|
|
@@ -171,7 +188,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
171
188
|
<!-- Desktop Navigation -->
|
|
172
189
|
<nav
|
|
173
190
|
class="pagination__navigation--desktop"
|
|
174
|
-
|
|
191
|
+
aria-label=${this.localize.term("pagination")}
|
|
175
192
|
>
|
|
176
193
|
<dsa-internal-button-group
|
|
177
194
|
squeezed
|
|
@@ -179,6 +196,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
179
196
|
@click=${this.handlePageButtonClick}
|
|
180
197
|
>
|
|
181
198
|
<dsa-pagination-button
|
|
199
|
+
navigation-type=${this.navigationType}
|
|
182
200
|
value="${this.currentPage - 1}"
|
|
183
201
|
?disabled=${this.currentPage < 2}
|
|
184
202
|
>
|
|
@@ -187,6 +205,7 @@ var DSAPagination = class extends LoadingStateElement {
|
|
|
187
205
|
>
|
|
188
206
|
${this.getPageButtons()}
|
|
189
207
|
<dsa-pagination-button
|
|
208
|
+
navigation-type=${this.navigationType}
|
|
190
209
|
value="${this.currentPage + 1}"
|
|
191
210
|
?disabled=${this.currentPage > this.totalPages - 1}
|
|
192
211
|
>${this.localize.term("nextPage")}
|
|
@@ -217,6 +236,9 @@ __decorateClass([
|
|
|
217
236
|
__decorateClass([
|
|
218
237
|
property({ type: Number, attribute: "items-per-page" })
|
|
219
238
|
], DSAPagination.prototype, "itemsPerPage", 2);
|
|
239
|
+
__decorateClass([
|
|
240
|
+
property({ attribute: "navigation-type" })
|
|
241
|
+
], DSAPagination.prototype, "navigationType", 2);
|
|
220
242
|
__decorateClass([
|
|
221
243
|
watch(["totalItems", "itemsPerPage"])
|
|
222
244
|
], DSAPagination.prototype, "updateTotalPages", 1);
|
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DSATableCell
|
|
6
6
|
} from "./chunk.V5O2GRVM.js";
|
|
7
|
-
import {
|
|
8
|
-
LocalizeController
|
|
9
|
-
} from "./chunk.27JQOQHL.js";
|
|
10
7
|
import {
|
|
11
8
|
TABLE_SORT_CYCLE
|
|
12
9
|
} from "./chunk.HB7A2UQ7.js";
|
|
@@ -24,7 +21,6 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
24
21
|
var DSATableHeaderCell = class extends DSATableCell {
|
|
25
22
|
constructor() {
|
|
26
23
|
super(...arguments);
|
|
27
|
-
this.localize = new LocalizeController(this);
|
|
28
24
|
this.nextSortDirection = this.getNextSortDirection();
|
|
29
25
|
this.isHovered = false;
|
|
30
26
|
this.textContent = "";
|
|
@@ -100,11 +96,6 @@ var DSATableHeaderCell = class extends DSATableCell {
|
|
|
100
96
|
<button
|
|
101
97
|
type="button"
|
|
102
98
|
part="sort-button"
|
|
103
|
-
aria-label=${this.localize.term(
|
|
104
|
-
"nextSortDirection",
|
|
105
|
-
this.nextSortDirection,
|
|
106
|
-
this.innerText
|
|
107
|
-
)}
|
|
108
99
|
class=${classMap({
|
|
109
100
|
"sort-button--align-right": this.alignment === "right",
|
|
110
101
|
"sort-button--align-left": this.alignment === "left"
|
|
@@ -14,7 +14,6 @@ var table_container_styles_default = css`
|
|
|
14
14
|
'bar bar'
|
|
15
15
|
'table table'
|
|
16
16
|
'pagination pagination';
|
|
17
|
-
grid-gap: var(--dsa-spacing-12);
|
|
18
17
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
19
18
|
}
|
|
20
19
|
|
|
@@ -24,10 +23,12 @@ var table_container_styles_default = css`
|
|
|
24
23
|
|
|
25
24
|
[part~='export']::slotted(*) {
|
|
26
25
|
grid-area: export;
|
|
26
|
+
margin-top: var(--dsa-spacing-12);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
[part~='table']::slotted(*) {
|
|
30
30
|
grid-area: table;
|
|
31
|
+
margin-top: var(--dsa-spacing-12);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
[part~='bar-container'] {
|
|
@@ -35,6 +36,11 @@ var table_container_styles_default = css`
|
|
|
35
36
|
position: relative;
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
.bar-container--has-toolbar,
|
|
40
|
+
.bar-container--has-action {
|
|
41
|
+
margin-top: var(--dsa-spacing-12);
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
.bar-container--has-toolbar [part~='action']::slotted(*) {
|
|
39
45
|
position: absolute;
|
|
40
46
|
top: 0px;
|
|
@@ -45,6 +51,7 @@ var table_container_styles_default = css`
|
|
|
45
51
|
grid-area: pagination;
|
|
46
52
|
display: block;
|
|
47
53
|
padding: var(--dsa-spacing-12) var(--dsa-spacing-8);
|
|
54
|
+
margin-top: var(--dsa-spacing-12);
|
|
48
55
|
}
|
|
49
56
|
`;
|
|
50
57
|
|
|
@@ -11,9 +11,6 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
HasSlotController
|
|
13
13
|
} from "./chunk.YIY5RM53.js";
|
|
14
|
-
import {
|
|
15
|
-
ifDefinedAndNotEmpty
|
|
16
|
-
} from "./chunk.ZQJVCRB2.js";
|
|
17
14
|
import {
|
|
18
15
|
waitForEvent
|
|
19
16
|
} from "./chunk.B4BZKR24.js";
|
|
@@ -27,10 +24,13 @@ import {
|
|
|
27
24
|
} from "./chunk.V7RJROLH.js";
|
|
28
25
|
import {
|
|
29
26
|
LocalizeController
|
|
30
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.NES7WFNV.js";
|
|
31
28
|
import {
|
|
32
29
|
watch
|
|
33
30
|
} from "./chunk.6IH66JBY.js";
|
|
31
|
+
import {
|
|
32
|
+
ifDefinedAndNotEmpty
|
|
33
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
34
34
|
import {
|
|
35
35
|
ShoelaceElement
|
|
36
36
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
table_container_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4EFJ2NV3.js";
|
|
4
4
|
import {
|
|
5
5
|
LoadingStateElement
|
|
6
6
|
} from "./chunk.PFGVYROJ.js";
|
|
@@ -113,13 +113,15 @@ var DSATableContainer = class extends LoadingStateElement {
|
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
115
|
const hasToolbar = this.hasSlotController.test("toolbar");
|
|
116
|
+
const hasAction = this.hasSlotController.test("action");
|
|
116
117
|
return html`
|
|
117
118
|
<slot part="caption" name="caption"></slot>
|
|
118
119
|
<slot part="export" name="export"></slot>
|
|
119
120
|
<div
|
|
120
121
|
part="bar-container"
|
|
121
122
|
class=${classMap({
|
|
122
|
-
"bar-container--has-toolbar": hasToolbar
|
|
123
|
+
"bar-container--has-toolbar": hasToolbar,
|
|
124
|
+
"bar-container--has-action": hasAction
|
|
123
125
|
})}
|
|
124
126
|
>
|
|
125
127
|
<slot part="toolbar" name="toolbar"></slot>
|
|
@@ -29,10 +29,13 @@ import {
|
|
|
29
29
|
} from "./chunk.V7RJROLH.js";
|
|
30
30
|
import {
|
|
31
31
|
LocalizeController
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.NES7WFNV.js";
|
|
33
33
|
import {
|
|
34
34
|
watch
|
|
35
35
|
} from "./chunk.6IH66JBY.js";
|
|
36
|
+
import {
|
|
37
|
+
ifDefinedAndNotEmpty
|
|
38
|
+
} from "./chunk.ZQJVCRB2.js";
|
|
36
39
|
import {
|
|
37
40
|
ShoelaceElement
|
|
38
41
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -258,6 +261,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
258
261
|
const allOptions = [];
|
|
259
262
|
optionsNodeList.forEach((option) => {
|
|
260
263
|
const clonedOption = option.cloneNode(true);
|
|
264
|
+
clonedOption.multiple = this.multiple;
|
|
261
265
|
allOptions.push(clonedOption);
|
|
262
266
|
});
|
|
263
267
|
return allOptions;
|
|
@@ -657,19 +661,23 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
657
661
|
class="select__display-input"
|
|
658
662
|
type="text"
|
|
659
663
|
.value=${this.displayLabel}
|
|
660
|
-
placeholder=${this.placeholder}
|
|
664
|
+
placeholder=${ifDefinedAndNotEmpty(this.placeholder)}
|
|
661
665
|
.disabled=${this.disabled}
|
|
662
666
|
size=${selectInputWidth}
|
|
663
667
|
autocomplete="off"
|
|
664
668
|
spellcheck="false"
|
|
665
669
|
autocapitalize="off"
|
|
666
|
-
title=${this.title}
|
|
670
|
+
title=${ifDefinedAndNotEmpty(this.title)}
|
|
667
671
|
aria-controls="listbox"
|
|
668
672
|
aria-autocomplete="list"
|
|
669
673
|
aria-expanded=${this.open ? "true" : "false"}
|
|
670
674
|
aria-haspopup="listbox"
|
|
671
|
-
aria-labelledby=${
|
|
672
|
-
|
|
675
|
+
aria-labelledby=${ifDefinedAndNotEmpty(
|
|
676
|
+
hasLabel ? "label" : void 0
|
|
677
|
+
)}
|
|
678
|
+
aria-label=${ifDefinedAndNotEmpty(
|
|
679
|
+
hasLabel ? void 0 : this.title
|
|
680
|
+
)}
|
|
673
681
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
674
682
|
aria-describedby="help-text"
|
|
675
683
|
aria-activedescendant=${(_b = (_a = this.currentOption) == null ? void 0 : _a.id) != null ? _b : ""}
|
|
@@ -712,7 +720,7 @@ var DSACombobox = class extends ShoelaceElement {
|
|
|
712
720
|
|
|
713
721
|
<dsa-icon
|
|
714
722
|
class="select__expand-icon"
|
|
715
|
-
name="
|
|
723
|
+
name="expand_more"
|
|
716
724
|
></dsa-icon>
|
|
717
725
|
</div>
|
|
718
726
|
<ul
|