@ds-autonomie/web-components 1.6.0 → 1.8.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 +26 -0
- package/dist/chunks/{chunk.NMOENRSD.js → chunk.22WSILHD.js} +1 -1
- package/dist/chunks/{chunk.AQC66RY2.js → chunk.2AEUQXKH.js} +18 -1
- package/dist/chunks/chunk.2AHY5V6G.js +25 -0
- package/dist/chunks/chunk.2PA4QKLT.js +43 -0
- package/dist/chunks/{chunk.FFFHQKNB.js → chunk.43PVVN7Q.js} +1 -1
- package/dist/chunks/chunk.5L7UO75X.js +17 -0
- package/dist/chunks/{chunk.2SUJL5O6.js → chunk.5MXBL3PY.js} +1 -1
- package/dist/chunks/chunk.65JZEQ4F.js +33 -0
- package/dist/chunks/chunk.672XI6OQ.js +108 -0
- package/dist/chunks/{chunk.DUJFQEVS.js → chunk.6A2LWKQY.js} +22 -1
- package/dist/chunks/{chunk.7WQVFO44.js → chunk.6HEEXQ6Q.js} +11 -5
- package/dist/chunks/chunk.6OP6GCU4.js +89 -0
- package/dist/chunks/{chunk.HXH4JLAN.js → chunk.6RX5APL3.js} +1 -1
- package/dist/chunks/{chunk.VFYKLPN2.js → chunk.7KYHO6CO.js} +13 -2
- package/dist/chunks/{chunk.RV652CSU.js → chunk.7UXBTLEE.js} +2 -2
- package/dist/chunks/{chunk.RJBMUBMI.js → chunk.7XNMTM6N.js} +1 -1
- package/dist/chunks/{chunk.TMG7TJJO.js → chunk.A5II52AY.js} +20 -6
- package/dist/chunks/{chunk.WLJH2IWB.js → chunk.ADG7SYDH.js} +2 -2
- package/dist/chunks/chunk.AFFFEIW7.js +154 -0
- package/dist/chunks/chunk.AHPXKIVU.js +24 -0
- package/dist/chunks/{chunk.5YABZV2L.js → chunk.AXJZDS4O.js} +6 -1
- package/dist/chunks/{chunk.OUVQZNJQ.js → chunk.B3VBH7AS.js} +48 -179
- package/dist/chunks/{chunk.K2ICEURU.js → chunk.B5DEC3ZW.js} +15 -2
- package/dist/chunks/{chunk.YDCBGMSA.js → chunk.BEGWFCAR.js} +28 -0
- package/dist/chunks/chunk.C33YMWL6.js +33 -0
- package/dist/chunks/{chunk.CICCL52W.js → chunk.C7BQI7NH.js} +1 -1
- package/dist/chunks/chunk.CHKVYEHB.js +53 -0
- package/dist/chunks/chunk.CW4YJC4U.js +256 -0
- package/dist/chunks/{chunk.HPK6C7NJ.js → chunk.D2VOYAK5.js} +15 -4
- package/dist/chunks/chunk.D3IQERM5.js +92 -0
- package/dist/chunks/{chunk.WK3IHF2A.js → chunk.DFH66YHJ.js} +1 -1
- package/dist/chunks/{chunk.R4PCVUXB.js → chunk.DIC5NUF5.js} +32 -10
- package/dist/chunks/{chunk.B6CXFMFM.js → chunk.DJDCH3MP.js} +1 -1
- package/dist/chunks/{chunk.6Y5VNWAK.js → chunk.DMP5NRB3.js} +2 -2
- package/dist/chunks/{chunk.HDSA2CY2.js → chunk.DNSF5O4C.js} +1 -1
- package/dist/chunks/chunk.DWASAPA2.js +29 -0
- package/dist/chunks/chunk.DY7O23OC.js +49 -0
- package/dist/chunks/{chunk.7F5X7SQN.js → chunk.F4KJFS2T.js} +1 -1
- package/dist/chunks/{chunk.KGPFHLUW.js → chunk.F6EDQPCA.js} +2 -2
- package/dist/chunks/chunk.FWOMF5BY.js +23 -0
- package/dist/chunks/{chunk.PZTXAAW2.js → chunk.H7OOLAC7.js} +1 -1
- package/dist/chunks/chunk.HB7A2UQ7.js +16 -0
- package/dist/chunks/chunk.HL632DKM.js +86 -0
- package/dist/chunks/{chunk.M7UZ33WG.js → chunk.HWR5JOYI.js} +1 -1
- package/dist/chunks/chunk.HXWTBL6A.js +227 -0
- package/dist/chunks/{chunk.Z2QW2HUR.js → chunk.ICD5HBUY.js} +5 -2
- package/dist/chunks/{chunk.LSECPSSR.js → chunk.IDMVVAVX.js} +1 -1
- package/dist/chunks/{chunk.Z6TBD2AC.js → chunk.INLQD4SQ.js} +1 -2
- package/dist/chunks/{chunk.NQSQUH4H.js → chunk.JGWZGEQY.js} +1 -1
- package/dist/chunks/chunk.JOIYVWUG.js +32 -0
- package/dist/chunks/chunk.K55HKFUM.js +55 -0
- package/dist/chunks/{chunk.YS2LUMKB.js → chunk.KY6SFO3D.js} +1 -1
- package/dist/chunks/{chunk.CKDL37GT.js → chunk.KZIAHLAV.js} +52 -0
- package/dist/chunks/{chunk.B5NS5VQR.js → chunk.L5YSEAAK.js} +1 -1
- package/dist/chunks/chunk.M2SPGS54.js +31 -0
- package/dist/chunks/{chunk.KFZV2L7L.js → chunk.MIO6K4QD.js} +1 -1
- package/dist/chunks/{chunk.ZR7AGQFC.js → chunk.MUBB5GXY.js} +1 -1
- package/dist/chunks/chunk.MVKY65HC.js +33 -0
- package/dist/chunks/{chunk.Z7QPOCQO.js → chunk.MZMKGGW2.js} +1 -1
- package/dist/chunks/chunk.N6EX6BDJ.js +128 -0
- package/dist/chunks/chunk.NEIICCKM.js +211 -0
- package/dist/chunks/{chunk.RNLKSRKQ.js → chunk.NNL36YA6.js} +17 -7
- package/dist/chunks/chunk.NNNXN334.js +32 -0
- package/dist/chunks/chunk.O3CX2C5Y.js +62 -0
- package/dist/chunks/{chunk.AXG2LFB3.js → chunk.O3TGEE3I.js} +2 -1
- package/dist/chunks/chunk.OBTE6PY7.js +41 -0
- package/dist/chunks/chunk.OIWFTO2A.js +156 -0
- package/dist/chunks/{chunk.YZ66DKLU.js → chunk.OQ2AY2BC.js} +1 -1
- package/dist/chunks/chunk.OSR4H2UW.js +17 -0
- package/dist/chunks/chunk.PO3AZ63O.js +18 -0
- package/dist/chunks/{chunk.XRHDURFE.js → chunk.Q255SJAB.js} +1 -1
- package/dist/chunks/chunk.R3Y3IVO2.js +56 -0
- package/dist/chunks/chunk.RB5YRDTE.js +77 -0
- package/dist/chunks/chunk.RTNJV3ZL.js +52 -0
- package/dist/chunks/{chunk.6DSM44NV.js → chunk.SEH7BBNZ.js} +1 -1
- package/dist/chunks/{chunk.2FVPNPAG.js → chunk.SN4AILXB.js} +27 -6
- package/dist/chunks/chunk.SUFR3KIW.js +41 -0
- package/dist/chunks/chunk.TB6DCJYX.js +57 -0
- package/dist/chunks/{chunk.HCI6BR7B.js → chunk.TFXRULTL.js} +2 -2
- package/dist/chunks/{chunk.CSQ2UP6E.js → chunk.TRMEXXU2.js} +2 -2
- package/dist/chunks/{chunk.3QQPH6YB.js → chunk.UENLYHK4.js} +8 -1
- package/dist/chunks/{chunk.VLRL3RJT.js → chunk.VN7U4QIC.js} +1 -1
- package/dist/chunks/{chunk.6SWOU4CL.js → chunk.VZIVZSLP.js} +29 -2
- package/dist/chunks/{chunk.XQZX6LVO.js → chunk.WMEXYRBL.js} +1 -1
- package/dist/chunks/{chunk.CBFLGIED.js → chunk.WTGBJNXJ.js} +1 -1
- package/dist/chunks/{chunk.DDLGH65N.js → chunk.XEZX466O.js} +1 -1
- package/dist/chunks/{chunk.ATDDIVPX.js → chunk.YF45VJOV.js} +1 -1
- package/dist/chunks/chunk.YTZRADK4.js +31 -0
- package/dist/chunks/chunk.Z4V2DJQS.js +44 -0
- package/dist/chunks/chunk.ZBTNUV7V.js +26 -0
- package/dist/chunks/{chunk.2PVIV5ZH.js → chunk.ZCNXAXKX.js} +9 -4
- package/dist/chunks/chunk.ZOKFJBTV.js +150 -0
- package/dist/components/accordion/accordion.js +5 -4
- package/dist/components/alert/alert.d.ts +9 -0
- package/dist/components/alert/alert.js +8 -7
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/avatar/avatar.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +5 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -2
- package/dist/components/button/button.d.ts +2 -0
- package/dist/components/button/button.js +6 -5
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.d.ts +3 -0
- package/dist/components/checkbox-button/checkbox-button.js +4 -4
- package/dist/components/checkbox-button/checkbox-button.styles.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.js +11 -10
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/dialog/dialog.js +7 -6
- package/dist/components/download-card/download-card.js +2 -2
- package/dist/components/download-link/download-link.js +2 -2
- package/dist/components/drawer/drawer.js +7 -6
- package/dist/components/dropdown/dropdown.js +3 -2
- package/dist/components/error-message-panel/error-message-panel.js +3 -2
- package/dist/components/file-upload/file-upload.d.ts +65 -0
- package/dist/components/file-upload/file-upload.js +16 -0
- package/dist/components/file-upload/file-upload.styles.d.ts +2 -0
- package/dist/components/file-upload/file-upload.styles.js +9 -0
- package/dist/components/file-upload-item/file-upload-item.d.ts +33 -0
- package/dist/components/file-upload-item/file-upload-item.js +12 -0
- package/dist/components/file-upload-item/file-upload-item.styles.d.ts +2 -0
- package/dist/components/file-upload-item/file-upload-item.styles.js +8 -0
- package/dist/components/footer/footer.assets.d.ts +1 -0
- package/dist/components/footer/footer.assets.js +7 -0
- package/dist/components/footer/footer.d.ts +13 -0
- package/dist/components/footer/footer.js +14 -0
- package/dist/components/footer/footer.styles.d.ts +2 -0
- package/dist/components/footer/footer.styles.js +8 -0
- package/dist/components/footer-content-block/footer-content-block.d.ts +20 -0
- package/dist/components/footer-content-block/footer-content-block.js +12 -0
- package/dist/components/footer-content-block/footer-content-block.styles.d.ts +2 -0
- package/dist/components/footer-content-block/footer-content-block.styles.js +8 -0
- package/dist/components/footer-inline-divider/footer-inline-divider.d.ts +22 -0
- package/dist/components/footer-inline-divider/footer-inline-divider.js +12 -0
- package/dist/components/footer-inline-divider/footer-inline-divider.styles.d.ts +2 -0
- package/dist/components/footer-inline-divider/footer-inline-divider.styles.js +8 -0
- package/dist/components/footer-sitemap/footer-sitemap.d.ts +23 -0
- package/dist/components/footer-sitemap/footer-sitemap.js +11 -0
- package/dist/components/footer-sitemap/footer-sitemap.styles.d.ts +2 -0
- package/dist/components/footer-sitemap/footer-sitemap.styles.js +8 -0
- package/dist/components/footer-sitemap-item/footer-sitemap-item.d.ts +20 -0
- package/dist/components/footer-sitemap-item/footer-sitemap-item.js +12 -0
- package/dist/components/footer-sitemap-item/footer-sitemap-item.styles.d.ts +2 -0
- package/dist/components/footer-sitemap-item/footer-sitemap-item.styles.js +8 -0
- package/dist/components/format-bytes/format-bytes.js +3 -2
- package/dist/components/format-date/format-date.js +3 -2
- package/dist/components/format-number/format-number.js +3 -2
- package/dist/components/icon/icon.js +2 -2
- package/dist/components/icon-button/icon-button.d.ts +2 -0
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.js +7 -6
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/input-mask/input-mask.js +5 -4
- package/dist/components/input-mask/input-mask.styles.js +2 -2
- package/dist/components/input-phone/input-phone.js +15 -14
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/menu-item/menu-item.js +2 -2
- package/dist/components/option/option.js +5 -4
- package/dist/components/pagination/pagination.d.ts +33 -0
- package/dist/components/pagination/pagination.js +37 -0
- package/dist/components/pagination/pagination.styles.d.ts +2 -0
- package/dist/components/pagination/pagination.styles.js +8 -0
- package/dist/components/pagination-button/pagination-button.d.ts +27 -0
- package/dist/components/pagination-button/pagination-button.js +12 -0
- package/dist/components/pagination-button/pagination-button.styles.d.ts +2 -0
- package/dist/components/pagination-button/pagination-button.styles.js +9 -0
- package/dist/components/progress-bar/progress-bar.js +3 -2
- package/dist/components/radio/radio.d.ts +2 -0
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.d.ts +4 -2
- package/dist/components/radio-button/radio-button.js +2 -2
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +4 -0
- package/dist/components/radio-group/radio-group.js +4 -3
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/relative-time/relative-time.js +3 -2
- package/dist/components/select/select.js +10 -9
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/spinner/spinner.js +3 -2
- package/dist/components/step/step.js +5 -4
- package/dist/components/tab/tab.js +3 -2
- package/dist/components/tab-group/tab-group.js +3 -2
- package/dist/components/table/defs.d.ts +6 -0
- package/dist/components/table/defs.js +9 -0
- package/dist/components/table/table-body/table-body.d.ts +19 -0
- package/dist/components/table/table-body/table-body.js +10 -0
- package/dist/components/table/table-body/table-body.styles.d.ts +2 -0
- package/dist/components/table/table-body/table-body.styles.js +8 -0
- package/dist/components/table/table-caption/table-caption.d.ts +21 -0
- package/dist/components/table/table-caption/table-caption.js +13 -0
- package/dist/components/table/table-caption/table-caption.styles.d.ts +2 -0
- package/dist/components/table/table-caption/table-caption.styles.js +8 -0
- package/dist/components/table/table-cell/table-cell.d.ts +19 -0
- package/dist/components/table/table-cell/table-cell.js +10 -0
- package/dist/components/table/table-cell/table-cell.styles.d.ts +2 -0
- package/dist/components/table/table-cell/table-cell.styles.js +8 -0
- package/dist/components/table/table-head/table-head.d.ts +19 -0
- package/dist/components/table/table-head/table-head.js +10 -0
- package/dist/components/table/table-head/table-head.styles.d.ts +2 -0
- package/dist/components/table/table-head/table-head.styles.js +8 -0
- package/dist/components/table/table-header-cell/table-header-cell.d.ts +44 -0
- package/dist/components/table/table-header-cell/table-header-cell.js +15 -0
- package/dist/components/table/table-header-cell/table-header-cell.styles.d.ts +2 -0
- package/dist/components/table/table-header-cell/table-header-cell.styles.js +8 -0
- package/dist/components/table/table-header-row/table-header-row.d.ts +17 -0
- package/dist/components/table/table-header-row/table-header-row.js +12 -0
- package/dist/components/table/table-header-row/table-header-row.styles.d.ts +2 -0
- package/dist/components/table/table-header-row/table-header-row.styles.js +8 -0
- package/dist/components/table/table-row/table-row.d.ts +23 -0
- package/dist/components/table/table-row/table-row.js +10 -0
- package/dist/components/table/table-row/table-row.styles.d.ts +2 -0
- package/dist/components/table/table-row/table-row.styles.js +8 -0
- package/dist/components/table/table.d.ts +30 -0
- package/dist/components/table/table.js +11 -0
- package/dist/components/table/table.styles.d.ts +2 -0
- package/dist/components/table/table.styles.js +8 -0
- package/dist/components/table/types.d.ts +5 -0
- package/dist/components/table/types.js +12 -0
- package/dist/components/table-container/table-container.d.ts +17 -0
- package/dist/components/table-container/table-container.js +10 -0
- package/dist/components/table-container/table-container.styles.d.ts +2 -0
- package/dist/components/table-container/table-container.styles.js +8 -0
- package/dist/components/tag/tag.d.ts +2 -0
- package/dist/components/tag/tag.js +7 -6
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tooltip/tooltip.js +3 -2
- package/dist/components/tree/tree.js +10 -9
- package/dist/components/tree-item/tree-item.js +9 -8
- package/dist/custom-elements.json +5780 -3438
- package/dist/design-system.d.ts +18 -0
- package/dist/design-system.js +190 -97
- package/dist/events/dsa-file-upload.d.ts +9 -0
- package/dist/events/dsa-file-upload.js +1 -0
- package/dist/events/dsa-page-change.d.ts +9 -0
- package/dist/events/dsa-page-change.js +1 -0
- package/dist/events/dsa-table-header-cell-sort.d.ts +11 -0
- package/dist/events/dsa-table-header-cell-sort.js +1 -0
- package/dist/events/events.d.ts +3 -0
- package/dist/internal/components/button-group/button-group.js +1 -1
- package/dist/styles/form-control.styles.js +2 -1
- package/dist/themes/dsa-wc-theme.css +156 -1
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +165 -1
- package/dist/translations/en-gb.js +2 -1
- package/dist/translations/en.js +2 -1
- package/dist/translations/fr.js +2 -1
- package/dist/utilities/localize.d.ts +14 -0
- package/dist/utilities/localize.js +2 -1
- package/dist/vscode.html-custom-data.json +371 -1
- package/dist/web-types.json +1451 -283
- package/package.json +1 -1
- package/dist/chunks/{chunk.M3FN3PFT.js → chunk.V7MYOBN4.js} +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 1.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 528b8e9: `button`: ajout de l'attribut `aria-label` au composant button
|
|
8
|
+
- 30065d7: `table-caption`: implémentation du composant titre d'un tableau
|
|
9
|
+
- 72bf5d4: `icon-button` : ajout d'un attribut `size`
|
|
10
|
+
- 964b78a: `radio`, `checkbox`, `radio-group`, `checkbox-group` : ajout d'un attribut readonly
|
|
11
|
+
- 2e3fbdb: `table`, `table-header-cell`: ajout de la fonctionnalité de tri sur les composants `table` et `table-header-cell`
|
|
12
|
+
- d60a66a: `pagination` : ajout du composant pagination
|
|
13
|
+
- f2db84c: `table-container`: implémentation du composant table-container
|
|
14
|
+
- 5ceccb1: `table`, `table-row`, `table-cell`, `table-head`, `table-body`, `table-header-cell`, `table-header-row`: implémentation du composant `table` et de ses sous-composants
|
|
15
|
+
|
|
16
|
+
## 1.7.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- d0ddca3: `footer`, `footer-sitemap`, `footer-sitemap-item`, `footer-inline-divider`, `footer-content-block`: implémentation du composant `footer` et de ses sous-composants.
|
|
21
|
+
- e7669d9: `file-upload`, `file-upload-item`: implémentation des composants file-upload et file-upload-item
|
|
22
|
+
- 4b8f839: `alert` : ajout d'un attribut `duration`
|
|
23
|
+
- e53ca70: `radio-button`, `checkbox-button` : ajout d'un état d'erreur
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 62e792a: `radio-button`, `checkbox-button` : correction du bug sur l'attribut `readonly` et ajustement des styles
|
|
28
|
+
|
|
3
29
|
## 1.6.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
form_control_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.O3TGEE3I.js";
|
|
4
4
|
import {
|
|
5
5
|
component_styles_default
|
|
6
6
|
} from "./chunk.TUVJKY7S.js";
|
|
@@ -275,6 +275,23 @@ var input_styles_default = css`
|
|
|
275
275
|
::-ms-reveal {
|
|
276
276
|
display: none;
|
|
277
277
|
}
|
|
278
|
+
|
|
279
|
+
/* Pagination page number input */
|
|
280
|
+
:host(.pagination__input) input {
|
|
281
|
+
padding-inline: var(--dsa-spacing-4);
|
|
282
|
+
text-align: center;
|
|
283
|
+
}
|
|
284
|
+
/* Hide the browser's up and down arrow in input number for the pagination on mobile */
|
|
285
|
+
@media screen and (max-width: 420px) {
|
|
286
|
+
:host(.pagination__input) input::-webkit-outer-spin-button,
|
|
287
|
+
input::-webkit-inner-spin-button {
|
|
288
|
+
-webkit-appearance: none;
|
|
289
|
+
margin: 0;
|
|
290
|
+
}
|
|
291
|
+
input[type='number'] {
|
|
292
|
+
-moz-appearance: textfield;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
278
295
|
`;
|
|
279
296
|
|
|
280
297
|
export {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/table/table-header-row/table-header-row.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var table_header_row_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: table-row;
|
|
12
|
+
outline: none;
|
|
13
|
+
font: var(--dsa-wc-table-header-row-font);
|
|
14
|
+
background: var(--dsa-wc-table-header-row-background);
|
|
15
|
+
color: var(--dsa-wc-table-header-row-color);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::slotted(dsa-table-header-cell) {
|
|
19
|
+
block-size: var(--dsa-wc-table-header-row-height);
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
table_header_row_styles_default
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/footer-sitemap-item/footer-sitemap-item.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var footer_sitemap_item_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host ::slotted(*) {
|
|
15
|
+
font: inherit;
|
|
16
|
+
font-size: inherit;
|
|
17
|
+
color: var(--dsa-color-text-on-layer-primary);
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::slotted(*:hover) {
|
|
22
|
+
border-bottom-style: solid;
|
|
23
|
+
border-bottom-width: var(--dsa-wc-link-underline-thickness);
|
|
24
|
+
color: var(--dsa-color-text-on-layer-primary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
::slotted(*:visited) {
|
|
28
|
+
color: var(--dsa-wc-link-visited-on-base-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
::slotted(*:active) {
|
|
32
|
+
color: var(--dsa-wc-link-active-on-base-color);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
::slotted(*:focus-visible) {
|
|
36
|
+
outline: var(--dsa-wc-focus-ring);
|
|
37
|
+
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
38
|
+
})
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
footer_sitemap_item_styles_default
|
|
43
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/table/table-head/table-head.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var table_head_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: table-header-group;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
table_head_styles_default
|
|
17
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
table_head_styles_default
|
|
3
|
+
} from "./chunk.5L7UO75X.js";
|
|
4
|
+
import {
|
|
5
|
+
ShoelaceElement
|
|
6
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/components/table/table-head/table-head.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property } from "lit/decorators.js";
|
|
14
|
+
var DSATableHead = class extends ShoelaceElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.role = "rowgroup";
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return html` <slot></slot> `;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
DSATableHead.styles = table_head_styles_default;
|
|
24
|
+
__decorateClass([
|
|
25
|
+
property({ reflect: true })
|
|
26
|
+
], DSATableHead.prototype, "role", 2);
|
|
27
|
+
DSATableHead = __decorateClass([
|
|
28
|
+
customElement("dsa-table-head")
|
|
29
|
+
], DSATableHead);
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
DSATableHead
|
|
33
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
file_upload_item_styles_default
|
|
3
|
+
} from "./chunk.ZOKFJBTV.js";
|
|
4
|
+
import {
|
|
5
|
+
ShoelaceElement
|
|
6
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/components/file-upload-item/file-upload-item.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property } from "lit/decorators.js";
|
|
14
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
15
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
16
|
+
import { LocalizeController } from "@shoelace-style/localize";
|
|
17
|
+
var DSAFileUploadItem = class extends ShoelaceElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.localize = new LocalizeController(this);
|
|
21
|
+
this.size = "medium";
|
|
22
|
+
this.error = false;
|
|
23
|
+
this.errorMessage = "";
|
|
24
|
+
}
|
|
25
|
+
handleRemoveClick(event) {
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
this.emit("dsa-clear");
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
var _a;
|
|
31
|
+
const isUploadCompleted = (this.uploadProgress === void 0 || this.uploadProgress === 100) && !this.error;
|
|
32
|
+
return html`
|
|
33
|
+
<div
|
|
34
|
+
part="base"
|
|
35
|
+
class=${classMap({
|
|
36
|
+
"file-item-container": true,
|
|
37
|
+
"file-item-container--error": this.error,
|
|
38
|
+
"file-item-container--small": this.size === "small",
|
|
39
|
+
"file-item-container--medium": this.size === "medium",
|
|
40
|
+
"file-item-container--large": this.size === "large"
|
|
41
|
+
})}
|
|
42
|
+
>
|
|
43
|
+
<article part="file-item" aria-describedby="error-text">
|
|
44
|
+
<slot part="label"></slot>
|
|
45
|
+
<slot
|
|
46
|
+
part="upload-indicator"
|
|
47
|
+
name="upload-indicator"
|
|
48
|
+
class=${classMap({
|
|
49
|
+
"upload-indicator": true,
|
|
50
|
+
"upload-indicator--show": this.uploadProgress !== void 0 && !isUploadCompleted
|
|
51
|
+
})}
|
|
52
|
+
>${this.uploadProgress}%</slot
|
|
53
|
+
>
|
|
54
|
+
<button
|
|
55
|
+
part="clear-button"
|
|
56
|
+
type="button"
|
|
57
|
+
@click=${this.handleRemoveClick}
|
|
58
|
+
aria-label=${this.localize.term("clearFile")}
|
|
59
|
+
>
|
|
60
|
+
${isUploadCompleted ? html`<dsa-icon name="delete"></dsa-icon>` : html`<dsa-icon name="close"></dsa-icon>`}
|
|
61
|
+
</button>
|
|
62
|
+
<div
|
|
63
|
+
part="progress-bar"
|
|
64
|
+
role="progressbar"
|
|
65
|
+
title=${this.localize.term("uploadFileProgressBar")}
|
|
66
|
+
class=${classMap({
|
|
67
|
+
"progress-bar": this.uploadProgress !== void 0 && !isUploadCompleted
|
|
68
|
+
})}
|
|
69
|
+
aria-label=${this.localize.term("uploadFileProgressBar")}
|
|
70
|
+
aria-valuemin="0"
|
|
71
|
+
aria-valuemax="100"
|
|
72
|
+
aria-valuenow=${this.uploadProgress === void 0 ? 0 : this.uploadProgress}
|
|
73
|
+
>
|
|
74
|
+
<div
|
|
75
|
+
part="progress-bar-indicator"
|
|
76
|
+
style=${styleMap({ width: `${(_a = this.uploadProgress) != null ? _a : 0}%` })}
|
|
77
|
+
></div>
|
|
78
|
+
</div>
|
|
79
|
+
</article>
|
|
80
|
+
${this.error ? html`
|
|
81
|
+
<dsa-error-text id="error-text" part="error-text"
|
|
82
|
+
>${this.errorMessage}</dsa-error-text
|
|
83
|
+
>
|
|
84
|
+
` : html``}
|
|
85
|
+
</div>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
DSAFileUploadItem.styles = file_upload_item_styles_default;
|
|
90
|
+
__decorateClass([
|
|
91
|
+
property({ reflect: true })
|
|
92
|
+
], DSAFileUploadItem.prototype, "size", 2);
|
|
93
|
+
__decorateClass([
|
|
94
|
+
property({ type: Number, attribute: "upload-progress" })
|
|
95
|
+
], DSAFileUploadItem.prototype, "uploadProgress", 2);
|
|
96
|
+
__decorateClass([
|
|
97
|
+
property({ type: Boolean })
|
|
98
|
+
], DSAFileUploadItem.prototype, "error", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
property({ attribute: "error-message" })
|
|
101
|
+
], DSAFileUploadItem.prototype, "errorMessage", 2);
|
|
102
|
+
DSAFileUploadItem = __decorateClass([
|
|
103
|
+
customElement("dsa-file-upload-item")
|
|
104
|
+
], DSAFileUploadItem);
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
DSAFileUploadItem
|
|
108
|
+
};
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.WFHOSUOX.js";
|
|
4
4
|
import {
|
|
5
5
|
LocalizeController
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.KZIAHLAV.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.6IH66JBY.js";
|
|
7
10
|
import {
|
|
8
11
|
ifDefinedAndNotEmpty
|
|
9
12
|
} from "./chunk.ZQJVCRB2.js";
|
|
@@ -22,6 +25,7 @@ var DSATag = class extends ShoelaceElement {
|
|
|
22
25
|
constructor() {
|
|
23
26
|
super(...arguments);
|
|
24
27
|
this.localize = new LocalizeController(this);
|
|
28
|
+
this.iconButtonSize = "small";
|
|
25
29
|
this.disableRemovableFocus = false;
|
|
26
30
|
this.variant = "purple-100";
|
|
27
31
|
this.size = "medium";
|
|
@@ -31,6 +35,19 @@ var DSATag = class extends ShoelaceElement {
|
|
|
31
35
|
handleRemoveClick() {
|
|
32
36
|
this.emit("dsa-remove");
|
|
33
37
|
}
|
|
38
|
+
updateIconButtonSize() {
|
|
39
|
+
switch (this.size) {
|
|
40
|
+
case "small":
|
|
41
|
+
this.iconButtonSize = "xsmall";
|
|
42
|
+
break;
|
|
43
|
+
case "medium":
|
|
44
|
+
this.iconButtonSize = "small";
|
|
45
|
+
break;
|
|
46
|
+
case "large":
|
|
47
|
+
this.iconButtonSize = "medium";
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
34
51
|
render() {
|
|
35
52
|
return html`
|
|
36
53
|
<span
|
|
@@ -61,6 +78,7 @@ var DSATag = class extends ShoelaceElement {
|
|
|
61
78
|
name="close"
|
|
62
79
|
label=${`${this.localize.term("remove")} ${this.label}`}
|
|
63
80
|
class="tag__remove"
|
|
81
|
+
size=${this.iconButtonSize}
|
|
64
82
|
@click=${this.handleRemoveClick}
|
|
65
83
|
?disable-tab-index=${this.disableRemovableFocus}
|
|
66
84
|
></dsa-icon-button>
|
|
@@ -85,6 +103,9 @@ __decorateClass([
|
|
|
85
103
|
__decorateClass([
|
|
86
104
|
property()
|
|
87
105
|
], DSATag.prototype, "label", 2);
|
|
106
|
+
__decorateClass([
|
|
107
|
+
watch("size")
|
|
108
|
+
], DSATag.prototype, "updateIconButtonSize", 1);
|
|
88
109
|
DSATag = __decorateClass([
|
|
89
110
|
customElement("dsa-tag")
|
|
90
111
|
], DSATag);
|
|
@@ -22,9 +22,9 @@ var checkbox_button_styles_default = css`
|
|
|
22
22
|
background-color: var(--dsa-wc-toggle-button-background-color);
|
|
23
23
|
border-color: var(--dsa-wc-toggle-button-border-color);
|
|
24
24
|
color: var(--dsa-wc-toggle-button-color);
|
|
25
|
-
|
|
26
25
|
border-width: 1px;
|
|
27
26
|
boder-style: solid;
|
|
27
|
+
font-weight: 400;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.button--toggle:hover {
|
|
@@ -60,21 +60,21 @@ var checkbox_button_styles_default = css`
|
|
|
60
60
|
color: var(--dsa-wc-toggle-button-checked-active-color);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.button--toggle.button--readonly
|
|
63
|
+
.button--toggle.button--readonly {
|
|
64
64
|
background-color: var(--dsa-wc-toggle-button-read-only-background-color);
|
|
65
65
|
border-color: var(--dsa-wc-toggle-button-read-only-border-color);
|
|
66
66
|
color: var(--dsa-wc-toggle-button-read-only-color);
|
|
67
67
|
padding-left: var(--dsa-wc-toggle-button-icon-padding-x);
|
|
68
|
+
cursor: not-allowed;
|
|
68
69
|
}
|
|
69
|
-
.button--toggle.button--checked.button--readonly
|
|
70
|
+
.button--toggle.button--checked.button--readonly {
|
|
70
71
|
background-color: var(
|
|
71
72
|
--dsa-wc-toggle-button-read-only-checked-background-color
|
|
72
73
|
);
|
|
73
74
|
border-color: var(--dsa-wc-toggle-button-read-only-checked-border-color);
|
|
74
75
|
color: var(--dsa-wc-toggle-button-read-only-checked-color);
|
|
75
76
|
}
|
|
76
|
-
.button--toggle.button--checked.button--
|
|
77
|
-
.button__icon-check {
|
|
77
|
+
.button--toggle.button--checked.button--readonly .button__icon-check {
|
|
78
78
|
color: var(--dsa-wc-toggle-button-read-only-checked-icon-color);
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -95,6 +95,12 @@ var checkbox_button_styles_default = css`
|
|
|
95
95
|
flex-shrink: 0;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.button--error {
|
|
99
|
+
background-color: var(--dsa-wc-toggle-button-error-background-color);
|
|
100
|
+
border-color: var(--dsa-wc-toggle-button-error-border-color);
|
|
101
|
+
color: var(--dsa-wc-toggle-button-error-color);
|
|
102
|
+
}
|
|
103
|
+
|
|
98
104
|
/* We use a hidden input so constraint validation errors work, since they don't appear to show when used with buttons.
|
|
99
105
|
We can't actually hide it, though, otherwise the messages will be suppressed by the browser. */
|
|
100
106
|
.hidden-input {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/table/table-header-cell/table-header-cell.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var table_header_cell_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: table-cell;
|
|
12
|
+
padding: var(--dsa-wc-table-header-cell-padding-y)
|
|
13
|
+
var(--dsa-wc-table-header-cell-padding-x);
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
text-align: start;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host(:hover) {
|
|
19
|
+
background: var(--dsa-wc-table-header-cell-background-hover);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([sortable]) {
|
|
23
|
+
padding: 0px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([alignment='left']) {
|
|
27
|
+
text-align: start;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([alignment='right']) {
|
|
31
|
+
text-align: end;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[part~='sort-button'] {
|
|
35
|
+
appearance: none;
|
|
36
|
+
padding: var(--dsa-wc-table-header-cell-padding-y)
|
|
37
|
+
var(--dsa-wc-table-header-cell-padding-x);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
background: inherit;
|
|
40
|
+
font: inherit;
|
|
41
|
+
border: none;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--dsa-spacing-8);
|
|
45
|
+
min-block-size: 100%;
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[part~='sort-button']:active {
|
|
50
|
+
background: var(--dsa-wc-table-header-cell-background-active);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[part~='sort-button']:focus-visible {
|
|
54
|
+
outline: var(--dsa-wc-focus-ring);
|
|
55
|
+
outline-offset: var(--dsa-wc-table-header-cell-sort-button-outline-offset);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sort-button--align-right {
|
|
59
|
+
flex-direction: row-reverse;
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sort-button--align-left {
|
|
64
|
+
justify-content: flex-start;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sort-button-icon {
|
|
68
|
+
height: var(--dsa-wc-table-header-cell-sort-icon-size);
|
|
69
|
+
width: var(--dsa-wc-table-header-cell-sort-icon-size);
|
|
70
|
+
color: transparent;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sort-button--icon--ascending,
|
|
74
|
+
.sort-button--icon--descending {
|
|
75
|
+
color: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sort-button--icon--ascending {
|
|
79
|
+
transform: rotate(0);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sort-button--icon--descending {
|
|
83
|
+
transform: rotate(-180deg);
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
table_header_cell_styles_default
|
|
89
|
+
};
|
|
@@ -85,8 +85,10 @@ var radio_styles_default = css`
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/* Hover */
|
|
88
|
-
.radio:not(.radio--checked):not(.radio--disabled)
|
|
89
|
-
|
|
88
|
+
.radio:not(.radio--checked):not(.radio--disabled):not(.radio--readonly)
|
|
89
|
+
.radio__control:hover,
|
|
90
|
+
.radio:hover:not(.radio--checked):not(.radio--disabled):not(.radio--readonly)
|
|
91
|
+
.radio__control {
|
|
90
92
|
border-color: var(--dsa-wc-radio-color-hover);
|
|
91
93
|
}
|
|
92
94
|
|
|
@@ -137,6 +139,15 @@ var radio_styles_default = css`
|
|
|
137
139
|
.radio__label.radio__label--error {
|
|
138
140
|
color: var(--dsa-wc-input-label-color-error) !important;
|
|
139
141
|
}
|
|
142
|
+
|
|
143
|
+
/* Readonly */
|
|
144
|
+
.radio--readonly {
|
|
145
|
+
cursor: not-allowed;
|
|
146
|
+
}
|
|
147
|
+
.radio--readonly .radio__control {
|
|
148
|
+
border-color: var(--dsa-wc-radio-border-color-readonly);
|
|
149
|
+
color: var(--dsa-wc-radio-color-readonly);
|
|
150
|
+
}
|
|
140
151
|
`;
|
|
141
152
|
|
|
142
153
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSATreeItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.SEH7BBNZ.js";
|
|
4
4
|
import {
|
|
5
5
|
tree_styles_default
|
|
6
6
|
} from "./chunk.73T7TU6S.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.KZIAHLAV.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkbox_group_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6RX5APL3.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlController,
|
|
6
6
|
customErrorValidityState,
|
|
@@ -42,6 +42,8 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
42
42
|
this.value = [];
|
|
43
43
|
this.form = "";
|
|
44
44
|
this.required = false;
|
|
45
|
+
this.disabled = false;
|
|
46
|
+
this.readonly = false;
|
|
45
47
|
this.horizontal = false;
|
|
46
48
|
this.error = false;
|
|
47
49
|
this.errorMessage = "";
|
|
@@ -89,7 +91,7 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
89
91
|
if (!target) {
|
|
90
92
|
return;
|
|
91
93
|
}
|
|
92
|
-
if (target.disabled) {
|
|
94
|
+
if (target.disabled || target.readonly) {
|
|
93
95
|
return;
|
|
94
96
|
}
|
|
95
97
|
const oldValue = this.value;
|
|
@@ -111,7 +113,7 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
111
113
|
const target = event.target;
|
|
112
114
|
if (event.key === " ") {
|
|
113
115
|
event.preventDefault();
|
|
114
|
-
if (target.disabled) {
|
|
116
|
+
if (target.disabled || target.readonly) {
|
|
115
117
|
return;
|
|
116
118
|
}
|
|
117
119
|
target.checked = !target.checked;
|
|
@@ -135,9 +137,15 @@ var DSACheckboxGroup = class extends ShoelaceElement {
|
|
|
135
137
|
var _a;
|
|
136
138
|
if (customElements.get("dsa-checkbox") || customElements.get("dsa-checkbox-button")) {
|
|
137
139
|
const checkboxes = this.getAllCheckboxes();
|
|
138
|
-
checkboxes.forEach(
|
|
139
|
-
(
|
|
140
|
-
|
|
140
|
+
checkboxes.forEach((checkbox) => {
|
|
141
|
+
if (this.disabled) {
|
|
142
|
+
checkbox.disabled = true;
|
|
143
|
+
}
|
|
144
|
+
if (this.readonly) {
|
|
145
|
+
checkbox.readonly = true;
|
|
146
|
+
}
|
|
147
|
+
checkbox.checked = this.value.includes(checkbox.value);
|
|
148
|
+
});
|
|
141
149
|
this.hasCheckboxButtons = checkboxes.some(
|
|
142
150
|
(checkbox) => checkbox.tagName.toLowerCase() === "dsa-checkbox-button"
|
|
143
151
|
);
|
|
@@ -349,6 +357,12 @@ __decorateClass([
|
|
|
349
357
|
__decorateClass([
|
|
350
358
|
property({ type: Boolean, reflect: true })
|
|
351
359
|
], DSACheckboxGroup.prototype, "required", 2);
|
|
360
|
+
__decorateClass([
|
|
361
|
+
property({ type: Boolean, reflect: true })
|
|
362
|
+
], DSACheckboxGroup.prototype, "disabled", 2);
|
|
363
|
+
__decorateClass([
|
|
364
|
+
property({ type: Boolean, reflect: true })
|
|
365
|
+
], DSACheckboxGroup.prototype, "readonly", 2);
|
|
352
366
|
__decorateClass([
|
|
353
367
|
property({ type: Boolean })
|
|
354
368
|
], DSACheckboxGroup.prototype, "horizontal", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
select_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ICD5HBUY.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.KZIAHLAV.js";
|
|
30
30
|
import {
|
|
31
31
|
watch
|
|
32
32
|
} from "./chunk.6IH66JBY.js";
|