@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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ShoelaceElement
|
|
3
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
4
|
+
import {
|
|
5
|
+
component_styles_default
|
|
6
|
+
} from "./chunk.TUVJKY7S.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/internal/components/button-group/button-group.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
14
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
15
|
+
|
|
16
|
+
// src/internal/components/button-group/button-group.styles.ts
|
|
17
|
+
import { css } from "lit";
|
|
18
|
+
var button_group_styles_default = css`
|
|
19
|
+
${component_styles_default}
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.button-group {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
gap: var(--dsa-spacing-8);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.button-group--squeezed {
|
|
32
|
+
gap: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.button-group--vertical {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
min-width: 120px;
|
|
38
|
+
max-width: 400px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.button-group--horizontal {
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
// src/internal/components/button-group/button-group.ts
|
|
47
|
+
var DSAInternalButtonGroup = class extends ShoelaceElement {
|
|
48
|
+
constructor() {
|
|
49
|
+
super(...arguments);
|
|
50
|
+
this.disableRole = false;
|
|
51
|
+
this.label = "";
|
|
52
|
+
this.squeezed = false;
|
|
53
|
+
this.horizontal = false;
|
|
54
|
+
}
|
|
55
|
+
handleFocus(event) {
|
|
56
|
+
const button = findButton(event.target);
|
|
57
|
+
button == null ? void 0 : button.classList.add("dsa-button-group__button--focus");
|
|
58
|
+
}
|
|
59
|
+
handleBlur(event) {
|
|
60
|
+
const button = findButton(event.target);
|
|
61
|
+
button == null ? void 0 : button.classList.remove("dsa-button-group__button--focus");
|
|
62
|
+
}
|
|
63
|
+
handleMouseOver(event) {
|
|
64
|
+
const button = findButton(event.target);
|
|
65
|
+
button == null ? void 0 : button.classList.add("dsa-button-group__button--hover");
|
|
66
|
+
}
|
|
67
|
+
handleMouseOut(event) {
|
|
68
|
+
const button = findButton(event.target);
|
|
69
|
+
button == null ? void 0 : button.classList.remove("dsa-button-group__button--hover");
|
|
70
|
+
}
|
|
71
|
+
handleSlotChange() {
|
|
72
|
+
const slottedElements = [
|
|
73
|
+
...this.defaultSlot.assignedElements({ flatten: true })
|
|
74
|
+
];
|
|
75
|
+
slottedElements.forEach((el) => {
|
|
76
|
+
const index = slottedElements.indexOf(el);
|
|
77
|
+
const button = findButton(el);
|
|
78
|
+
if (button !== null) {
|
|
79
|
+
button.classList.add("dsa-button-group__button");
|
|
80
|
+
if (this.squeezed) {
|
|
81
|
+
button.classList.toggle(
|
|
82
|
+
"dsa-button-group__button--first",
|
|
83
|
+
index === 0
|
|
84
|
+
);
|
|
85
|
+
button.classList.toggle(
|
|
86
|
+
"dsa-button-group__button--inner",
|
|
87
|
+
index > 0 && index < slottedElements.length - 1
|
|
88
|
+
);
|
|
89
|
+
button.classList.toggle(
|
|
90
|
+
"dsa-button-group__button--last",
|
|
91
|
+
index === slottedElements.length - 1
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
button.classList.toggle(
|
|
95
|
+
"dsa-button-group__button--radio",
|
|
96
|
+
button.tagName.toLowerCase() === "dsa-radio-button"
|
|
97
|
+
);
|
|
98
|
+
button.classList.toggle(
|
|
99
|
+
"dsa-button-group__button--checkbox",
|
|
100
|
+
button.tagName.toLowerCase() === "dsa-checkbox-button"
|
|
101
|
+
);
|
|
102
|
+
button.classList.toggle(
|
|
103
|
+
"dsa-button-group__button--vertical",
|
|
104
|
+
!this.horizontal
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
return html`
|
|
111
|
+
<div
|
|
112
|
+
part="base"
|
|
113
|
+
class=${classMap({
|
|
114
|
+
"button-group": true,
|
|
115
|
+
"button-group--squeezed": this.squeezed,
|
|
116
|
+
"button-group--vertical": !this.horizontal,
|
|
117
|
+
"button-group--horizontal": this.horizontal
|
|
118
|
+
})}
|
|
119
|
+
role="${this.disableRole ? "presentation" : "group"}"
|
|
120
|
+
aria-label=${this.label}
|
|
121
|
+
@focusout=${this.handleBlur}
|
|
122
|
+
@focusin=${this.handleFocus}
|
|
123
|
+
@mouseover=${this.handleMouseOver}
|
|
124
|
+
@mouseout=${this.handleMouseOut}
|
|
125
|
+
>
|
|
126
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
127
|
+
</div>
|
|
128
|
+
`;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
DSAInternalButtonGroup.styles = button_group_styles_default;
|
|
132
|
+
__decorateClass([
|
|
133
|
+
query("slot")
|
|
134
|
+
], DSAInternalButtonGroup.prototype, "defaultSlot", 2);
|
|
135
|
+
__decorateClass([
|
|
136
|
+
state()
|
|
137
|
+
], DSAInternalButtonGroup.prototype, "disableRole", 2);
|
|
138
|
+
__decorateClass([
|
|
139
|
+
property()
|
|
140
|
+
], DSAInternalButtonGroup.prototype, "label", 2);
|
|
141
|
+
__decorateClass([
|
|
142
|
+
property({ type: Boolean })
|
|
143
|
+
], DSAInternalButtonGroup.prototype, "squeezed", 2);
|
|
144
|
+
__decorateClass([
|
|
145
|
+
property({ type: Boolean })
|
|
146
|
+
], DSAInternalButtonGroup.prototype, "horizontal", 2);
|
|
147
|
+
DSAInternalButtonGroup = __decorateClass([
|
|
148
|
+
customElement("dsa-internal-button-group")
|
|
149
|
+
], DSAInternalButtonGroup);
|
|
150
|
+
function findButton(el) {
|
|
151
|
+
var _a;
|
|
152
|
+
const selector = "dsa-button, dsa-radio-button, dsa-checkbox-button, dsa-pagination-button";
|
|
153
|
+
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
154
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/table/table-cell/table-cell.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var table_cell_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: table-cell;
|
|
13
|
+
padding: var(--dsa-wc-table-cell-padding-y)
|
|
14
|
+
var(--dsa-wc-table-cell-padding-x);
|
|
15
|
+
border-block-end: var(--dsa-wc-table-cell-border-size) solid
|
|
16
|
+
var(--dsa-wc-table-cell-border-color);
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
text-align: start;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
table_cell_styles_default
|
|
24
|
+
};
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.DXQY7NLW.js";
|
|
11
11
|
import {
|
|
12
12
|
LocalizeController
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.KZIAHLAV.js";
|
|
14
14
|
import {
|
|
15
15
|
watch
|
|
16
16
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -64,6 +64,7 @@ var DSAButton = class extends ShoelaceElement {
|
|
|
64
64
|
this.value = "";
|
|
65
65
|
this.href = "";
|
|
66
66
|
this.rel = "noreferrer noopener";
|
|
67
|
+
this.ariaLabel = "";
|
|
67
68
|
}
|
|
68
69
|
/** Gets the validity state object */
|
|
69
70
|
get validity() {
|
|
@@ -205,6 +206,7 @@ var DSAButton = class extends ShoelaceElement {
|
|
|
205
206
|
download=${ifDefined(isLink ? this.download : void 0)}
|
|
206
207
|
rel=${ifDefined(isLink ? this.rel : void 0)}
|
|
207
208
|
role=${ifDefined(isLink ? void 0 : "button")}
|
|
209
|
+
aria-label=${ifDefinedAndNotEmpty(this.ariaLabel)}
|
|
208
210
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
209
211
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
210
212
|
@blur=${this.handleBlur}
|
|
@@ -299,6 +301,9 @@ __decorateClass([
|
|
|
299
301
|
__decorateClass([
|
|
300
302
|
property({ attribute: "formtarget" })
|
|
301
303
|
], DSAButton.prototype, "formTarget", 2);
|
|
304
|
+
__decorateClass([
|
|
305
|
+
property({ attribute: "aria-label" })
|
|
306
|
+
], DSAButton.prototype, "ariaLabel", 2);
|
|
302
307
|
__decorateClass([
|
|
303
308
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
304
309
|
], DSAButton.prototype, "handleDisabledChange", 1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
radio_group_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IDMVVAVX.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlController,
|
|
6
6
|
customErrorValidityState,
|
|
@@ -16,164 +16,14 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
ShoelaceElement
|
|
18
18
|
} from "./chunk.YCXTCVAZ.js";
|
|
19
|
-
import {
|
|
20
|
-
component_styles_default
|
|
21
|
-
} from "./chunk.TUVJKY7S.js";
|
|
22
19
|
import {
|
|
23
20
|
__decorateClass
|
|
24
21
|
} from "./chunk.6M63UXML.js";
|
|
25
22
|
|
|
26
23
|
// src/components/radio-group/radio-group.ts
|
|
27
|
-
import { html as html2 } from "lit";
|
|
28
|
-
import { customElement as customElement2, property as property2, query as query2, state as state2 } from "lit/decorators.js";
|
|
29
|
-
import { classMap as classMap2 } from "lit/directives/class-map.js";
|
|
30
|
-
|
|
31
|
-
// src/internal/components/button-group/button-group.ts
|
|
32
24
|
import { html } from "lit";
|
|
33
25
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
34
26
|
import { classMap } from "lit/directives/class-map.js";
|
|
35
|
-
|
|
36
|
-
// src/internal/components/button-group/button-group.styles.ts
|
|
37
|
-
import { css } from "lit";
|
|
38
|
-
var button_group_styles_default = css`
|
|
39
|
-
${component_styles_default}
|
|
40
|
-
|
|
41
|
-
:host {
|
|
42
|
-
display: inline-block;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.button-group {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-wrap: wrap;
|
|
48
|
-
gap: var(--dsa-spacing-8);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.button-group--squeezed {
|
|
52
|
-
gap: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.button-group--vertical {
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
min-width: 120px;
|
|
58
|
-
max-width: 400px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.button-group--horizontal {
|
|
62
|
-
flex-direction: row;
|
|
63
|
-
}
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
|
-
// src/internal/components/button-group/button-group.ts
|
|
67
|
-
var DSAInternalButtonGroup = class extends ShoelaceElement {
|
|
68
|
-
constructor() {
|
|
69
|
-
super(...arguments);
|
|
70
|
-
this.disableRole = false;
|
|
71
|
-
this.label = "";
|
|
72
|
-
this.squeezed = false;
|
|
73
|
-
this.horizontal = false;
|
|
74
|
-
}
|
|
75
|
-
handleFocus(event) {
|
|
76
|
-
const button = findButton(event.target);
|
|
77
|
-
button == null ? void 0 : button.classList.add("dsa-button-group__button--focus");
|
|
78
|
-
}
|
|
79
|
-
handleBlur(event) {
|
|
80
|
-
const button = findButton(event.target);
|
|
81
|
-
button == null ? void 0 : button.classList.remove("dsa-button-group__button--focus");
|
|
82
|
-
}
|
|
83
|
-
handleMouseOver(event) {
|
|
84
|
-
const button = findButton(event.target);
|
|
85
|
-
button == null ? void 0 : button.classList.add("dsa-button-group__button--hover");
|
|
86
|
-
}
|
|
87
|
-
handleMouseOut(event) {
|
|
88
|
-
const button = findButton(event.target);
|
|
89
|
-
button == null ? void 0 : button.classList.remove("dsa-button-group__button--hover");
|
|
90
|
-
}
|
|
91
|
-
handleSlotChange() {
|
|
92
|
-
const slottedElements = [
|
|
93
|
-
...this.defaultSlot.assignedElements({ flatten: true })
|
|
94
|
-
];
|
|
95
|
-
slottedElements.forEach((el) => {
|
|
96
|
-
const index = slottedElements.indexOf(el);
|
|
97
|
-
const button = findButton(el);
|
|
98
|
-
if (button !== null) {
|
|
99
|
-
button.classList.add("dsa-button-group__button");
|
|
100
|
-
if (this.squeezed) {
|
|
101
|
-
button.classList.toggle(
|
|
102
|
-
"dsa-button-group__button--first",
|
|
103
|
-
index === 0
|
|
104
|
-
);
|
|
105
|
-
button.classList.toggle(
|
|
106
|
-
"dsa-button-group__button--inner",
|
|
107
|
-
index > 0 && index < slottedElements.length - 1
|
|
108
|
-
);
|
|
109
|
-
button.classList.toggle(
|
|
110
|
-
"dsa-button-group__button--last",
|
|
111
|
-
index === slottedElements.length - 1
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
button.classList.toggle(
|
|
115
|
-
"dsa-button-group__button--radio",
|
|
116
|
-
button.tagName.toLowerCase() === "dsa-radio-button"
|
|
117
|
-
);
|
|
118
|
-
button.classList.toggle(
|
|
119
|
-
"dsa-button-group__button--checkbox",
|
|
120
|
-
button.tagName.toLowerCase() === "dsa-checkbox-button"
|
|
121
|
-
);
|
|
122
|
-
button.classList.toggle(
|
|
123
|
-
"dsa-button-group__button--vertical",
|
|
124
|
-
!this.horizontal
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
render() {
|
|
130
|
-
return html`
|
|
131
|
-
<div
|
|
132
|
-
part="base"
|
|
133
|
-
class=${classMap({
|
|
134
|
-
"button-group": true,
|
|
135
|
-
"button-group--squeezed": this.squeezed,
|
|
136
|
-
"button-group--vertical": !this.horizontal,
|
|
137
|
-
"button-group--horizontal": this.horizontal
|
|
138
|
-
})}
|
|
139
|
-
role="${this.disableRole ? "presentation" : "group"}"
|
|
140
|
-
aria-label=${this.label}
|
|
141
|
-
@focusout=${this.handleBlur}
|
|
142
|
-
@focusin=${this.handleFocus}
|
|
143
|
-
@mouseover=${this.handleMouseOver}
|
|
144
|
-
@mouseout=${this.handleMouseOut}
|
|
145
|
-
>
|
|
146
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
147
|
-
</div>
|
|
148
|
-
`;
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
DSAInternalButtonGroup.styles = button_group_styles_default;
|
|
152
|
-
__decorateClass([
|
|
153
|
-
query("slot")
|
|
154
|
-
], DSAInternalButtonGroup.prototype, "defaultSlot", 2);
|
|
155
|
-
__decorateClass([
|
|
156
|
-
state()
|
|
157
|
-
], DSAInternalButtonGroup.prototype, "disableRole", 2);
|
|
158
|
-
__decorateClass([
|
|
159
|
-
property()
|
|
160
|
-
], DSAInternalButtonGroup.prototype, "label", 2);
|
|
161
|
-
__decorateClass([
|
|
162
|
-
property({ type: Boolean })
|
|
163
|
-
], DSAInternalButtonGroup.prototype, "squeezed", 2);
|
|
164
|
-
__decorateClass([
|
|
165
|
-
property({ type: Boolean })
|
|
166
|
-
], DSAInternalButtonGroup.prototype, "horizontal", 2);
|
|
167
|
-
DSAInternalButtonGroup = __decorateClass([
|
|
168
|
-
customElement("dsa-internal-button-group")
|
|
169
|
-
], DSAInternalButtonGroup);
|
|
170
|
-
function findButton(el) {
|
|
171
|
-
var _a;
|
|
172
|
-
const selector = "dsa-button, dsa-radio-button, dsa-checkbox-button";
|
|
173
|
-
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// src/components/radio-group/radio-group.ts
|
|
177
27
|
var DSARadioGroup = class extends ShoelaceElement {
|
|
178
28
|
constructor() {
|
|
179
29
|
super(...arguments);
|
|
@@ -195,6 +45,8 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
195
45
|
this.deselectable = false;
|
|
196
46
|
this.form = "";
|
|
197
47
|
this.required = false;
|
|
48
|
+
this.disabled = false;
|
|
49
|
+
this.readonly = false;
|
|
198
50
|
this.horizontal = false;
|
|
199
51
|
this.error = false;
|
|
200
52
|
this.errorMessage = "";
|
|
@@ -240,7 +92,7 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
240
92
|
if (!target) {
|
|
241
93
|
return;
|
|
242
94
|
}
|
|
243
|
-
if (target.disabled) {
|
|
95
|
+
if (target.disabled || target.readonly) {
|
|
244
96
|
return;
|
|
245
97
|
}
|
|
246
98
|
const radios = this.getAllRadios();
|
|
@@ -265,7 +117,9 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
265
117
|
)) {
|
|
266
118
|
return;
|
|
267
119
|
}
|
|
268
|
-
const radios = this.getAllRadios().filter(
|
|
120
|
+
const radios = this.getAllRadios().filter(
|
|
121
|
+
(radio) => !radio.disabled && !radio.readonly
|
|
122
|
+
);
|
|
269
123
|
const focusedCheckboxIndex = radios.findIndex((t) => t.matches(":focus"));
|
|
270
124
|
const incr = event.key === " " ? 0 : ["ArrowUp", "ArrowLeft"].includes(event.key) ? -1 : 1;
|
|
271
125
|
const oldValue = this.value;
|
|
@@ -319,6 +173,12 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
319
173
|
const radios = this.getAllRadios();
|
|
320
174
|
let hasAtLeastOneCheckedRadio = false;
|
|
321
175
|
radios.forEach((radio) => {
|
|
176
|
+
if (this.readonly) {
|
|
177
|
+
radio.readonly = true;
|
|
178
|
+
}
|
|
179
|
+
if (this.disabled) {
|
|
180
|
+
radio.disabled = true;
|
|
181
|
+
}
|
|
322
182
|
this.hasRadioButtons = radio.tagName.toLowerCase() === "dsa-radio-button";
|
|
323
183
|
if (radio.tagName.toLowerCase() === "dsa-radio-button" && radio.readonly) {
|
|
324
184
|
this.readonlyRadioButtonValue.set(radio.value, true);
|
|
@@ -339,7 +199,9 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
339
199
|
buttonRadio.tabIndex = 0;
|
|
340
200
|
}
|
|
341
201
|
} else {
|
|
342
|
-
const firstNonDisabledRadio = radios.find(
|
|
202
|
+
const firstNonDisabledRadio = radios.find(
|
|
203
|
+
(radio) => !radio.disabled && !radio.readonly
|
|
204
|
+
);
|
|
343
205
|
if (firstNonDisabledRadio) {
|
|
344
206
|
firstNonDisabledRadio.tabIndex = 0;
|
|
345
207
|
}
|
|
@@ -365,17 +227,18 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
365
227
|
updateCheckedRadio() {
|
|
366
228
|
const radios = this.getAllRadios();
|
|
367
229
|
radios.forEach((radio, index) => {
|
|
230
|
+
var _a;
|
|
368
231
|
radio.checked = radio.value === this.value;
|
|
369
232
|
const shouldFocus = this.value === "" && index === 0;
|
|
370
233
|
if (this.hasRadioButtons) {
|
|
371
234
|
const radioButton = radio;
|
|
372
|
-
radioButton.button.tabIndex = shouldFocus || radio.checked ? 0 : -1;
|
|
373
|
-
|
|
235
|
+
radioButton.button.tabIndex = shouldFocus || radio.checked && !radio.readonly ? 0 : -1;
|
|
236
|
+
radioButton.disabled = (_a = this.readonlyRadioButtonValue.get(this.value)) != null ? _a : radioButton.disabled;
|
|
374
237
|
if (shouldFocus) {
|
|
375
238
|
radioButton.button.focus();
|
|
376
239
|
}
|
|
377
240
|
} else {
|
|
378
|
-
radio.tabIndex = shouldFocus || radio.checked ? 0 : -1;
|
|
241
|
+
radio.tabIndex = shouldFocus || radio.checked && !radio.readonly ? 0 : -1;
|
|
379
242
|
if (shouldFocus) {
|
|
380
243
|
radio.focus();
|
|
381
244
|
}
|
|
@@ -439,10 +302,10 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
439
302
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
440
303
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
441
304
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
442
|
-
return
|
|
305
|
+
return html`
|
|
443
306
|
<fieldset
|
|
444
307
|
part="form-control"
|
|
445
|
-
class=${
|
|
308
|
+
class=${classMap({
|
|
446
309
|
"form-control": true,
|
|
447
310
|
"form-control--error": this.error,
|
|
448
311
|
"form-control--medium": true,
|
|
@@ -463,7 +326,7 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
463
326
|
aria-hidden=${hasLabel ? "false" : "true"}
|
|
464
327
|
@click=${this.handleLabelClick}
|
|
465
328
|
>
|
|
466
|
-
${this.required ?
|
|
329
|
+
${this.required ? html`<span class="form-control__label-required">*</span>` : ""}
|
|
467
330
|
<slot name="label">${this.label}</slot>
|
|
468
331
|
</label>
|
|
469
332
|
<slot name="tooltip" class="form-control__tooltip"></slot>
|
|
@@ -485,7 +348,7 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
485
348
|
</label>
|
|
486
349
|
</div>
|
|
487
350
|
|
|
488
|
-
${this.hasRadioButtons ?
|
|
351
|
+
${this.hasRadioButtons ? html`
|
|
489
352
|
<dsa-internal-button-group
|
|
490
353
|
part="button-group"
|
|
491
354
|
exportparts="base:button-group__base"
|
|
@@ -497,7 +360,7 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
497
360
|
>
|
|
498
361
|
<slot></slot>
|
|
499
362
|
</dsa-internal-button-group>
|
|
500
|
-
` :
|
|
363
|
+
` : html`
|
|
501
364
|
<slot
|
|
502
365
|
@click=${this.handleRadioClick}
|
|
503
366
|
@keydown=${this.handleKeyDown}
|
|
@@ -517,7 +380,7 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
517
380
|
${this.helpText}
|
|
518
381
|
</slot>
|
|
519
382
|
|
|
520
|
-
${this.error ?
|
|
383
|
+
${this.error ? html`<dsa-error-text
|
|
521
384
|
id="error-text"
|
|
522
385
|
class="form-control__error-text"
|
|
523
386
|
>${this.customValidityError !== "" ? this.customValidityError : this.errorMessage}</dsa-error-text
|
|
@@ -528,49 +391,55 @@ var DSARadioGroup = class extends ShoelaceElement {
|
|
|
528
391
|
};
|
|
529
392
|
DSARadioGroup.styles = radio_group_styles_default;
|
|
530
393
|
__decorateClass([
|
|
531
|
-
|
|
394
|
+
query("slot:not([name])")
|
|
532
395
|
], DSARadioGroup.prototype, "defaultSlot", 2);
|
|
533
396
|
__decorateClass([
|
|
534
|
-
|
|
397
|
+
query(".radio-group__validation-input")
|
|
535
398
|
], DSARadioGroup.prototype, "validationInput", 2);
|
|
536
399
|
__decorateClass([
|
|
537
|
-
|
|
400
|
+
state()
|
|
538
401
|
], DSARadioGroup.prototype, "hasRadioButtons", 2);
|
|
539
402
|
__decorateClass([
|
|
540
|
-
|
|
403
|
+
state()
|
|
541
404
|
], DSARadioGroup.prototype, "readonlyRadioButtonValue", 2);
|
|
542
405
|
__decorateClass([
|
|
543
|
-
|
|
406
|
+
state()
|
|
544
407
|
], DSARadioGroup.prototype, "defaultValue", 2);
|
|
545
408
|
__decorateClass([
|
|
546
|
-
|
|
409
|
+
property()
|
|
547
410
|
], DSARadioGroup.prototype, "label", 2);
|
|
548
411
|
__decorateClass([
|
|
549
|
-
|
|
412
|
+
property({ attribute: "help-text" })
|
|
550
413
|
], DSARadioGroup.prototype, "helpText", 2);
|
|
551
414
|
__decorateClass([
|
|
552
|
-
|
|
415
|
+
property()
|
|
553
416
|
], DSARadioGroup.prototype, "name", 2);
|
|
554
417
|
__decorateClass([
|
|
555
|
-
|
|
418
|
+
property({ reflect: true })
|
|
556
419
|
], DSARadioGroup.prototype, "value", 2);
|
|
557
420
|
__decorateClass([
|
|
558
|
-
|
|
421
|
+
property({ type: Boolean, reflect: true })
|
|
559
422
|
], DSARadioGroup.prototype, "deselectable", 2);
|
|
560
423
|
__decorateClass([
|
|
561
|
-
|
|
424
|
+
property({ reflect: true })
|
|
562
425
|
], DSARadioGroup.prototype, "form", 2);
|
|
563
426
|
__decorateClass([
|
|
564
|
-
|
|
427
|
+
property({ type: Boolean, reflect: true })
|
|
565
428
|
], DSARadioGroup.prototype, "required", 2);
|
|
566
429
|
__decorateClass([
|
|
567
|
-
|
|
430
|
+
property({ type: Boolean, reflect: true })
|
|
431
|
+
], DSARadioGroup.prototype, "disabled", 2);
|
|
432
|
+
__decorateClass([
|
|
433
|
+
property({ type: Boolean, reflect: true })
|
|
434
|
+
], DSARadioGroup.prototype, "readonly", 2);
|
|
435
|
+
__decorateClass([
|
|
436
|
+
property({ type: Boolean })
|
|
568
437
|
], DSARadioGroup.prototype, "horizontal", 2);
|
|
569
438
|
__decorateClass([
|
|
570
|
-
|
|
439
|
+
property({ type: Boolean })
|
|
571
440
|
], DSARadioGroup.prototype, "error", 2);
|
|
572
441
|
__decorateClass([
|
|
573
|
-
|
|
442
|
+
property({ attribute: "error-message" })
|
|
574
443
|
], DSARadioGroup.prototype, "errorMessage", 2);
|
|
575
444
|
__decorateClass([
|
|
576
445
|
watch("value")
|
|
@@ -579,7 +448,7 @@ __decorateClass([
|
|
|
579
448
|
watch("error")
|
|
580
449
|
], DSARadioGroup.prototype, "handleErrorChange", 1);
|
|
581
450
|
DSARadioGroup = __decorateClass([
|
|
582
|
-
|
|
451
|
+
customElement("dsa-radio-group")
|
|
583
452
|
], DSARadioGroup);
|
|
584
453
|
|
|
585
454
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
icon_button_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BEGWFCAR.js";
|
|
4
4
|
import {
|
|
5
5
|
ifDefinedAndNotEmpty
|
|
6
6
|
} from "./chunk.ZQJVCRB2.js";
|
|
@@ -24,6 +24,7 @@ var DSAIconButton = class extends ShoelaceElement {
|
|
|
24
24
|
this.label = "";
|
|
25
25
|
this.disabled = false;
|
|
26
26
|
this.variant = "default";
|
|
27
|
+
this.size = "medium";
|
|
27
28
|
}
|
|
28
29
|
handleBlur() {
|
|
29
30
|
this.hasFocus = false;
|
|
@@ -84,7 +85,16 @@ var DSAIconButton = class extends ShoelaceElement {
|
|
|
84
85
|
@click=${this.handleClick}
|
|
85
86
|
>
|
|
86
87
|
<dsa-icon
|
|
87
|
-
class
|
|
88
|
+
class=${classMap({
|
|
89
|
+
"icon-button__icon": true,
|
|
90
|
+
"icon-button__icon--2xsmall": this.size === "2xsmall",
|
|
91
|
+
"icon-button__icon--xsmall": this.size === "xsmall",
|
|
92
|
+
"icon-button__icon--small": this.size === "small",
|
|
93
|
+
"icon-button__icon--medium": this.size === "medium",
|
|
94
|
+
"icon-button__icon--large": this.size === "large",
|
|
95
|
+
"icon-button__icon--xlarge": this.size === "xlarge",
|
|
96
|
+
"icon-button__icon--2xlarge": this.size === "2xlarge"
|
|
97
|
+
})}
|
|
88
98
|
name=${ifDefined(this.name)}
|
|
89
99
|
src=${ifDefined(this.src)}
|
|
90
100
|
aria-hidden="true"
|
|
@@ -130,6 +140,9 @@ __decorateClass([
|
|
|
130
140
|
__decorateClass([
|
|
131
141
|
property()
|
|
132
142
|
], DSAIconButton.prototype, "variant", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
property({ reflect: true })
|
|
145
|
+
], DSAIconButton.prototype, "size", 2);
|
|
133
146
|
DSAIconButton = __decorateClass([
|
|
134
147
|
customElement("dsa-icon-button")
|
|
135
148
|
], DSAIconButton);
|
|
@@ -45,6 +45,34 @@ var icon_button_styles_default = css`
|
|
|
45
45
|
.icon-button__icon {
|
|
46
46
|
pointer-events: none;
|
|
47
47
|
}
|
|
48
|
+
.icon-button__icon--2xsmall {
|
|
49
|
+
width: 10px;
|
|
50
|
+
height: 10px;
|
|
51
|
+
}
|
|
52
|
+
.icon-button__icon--xsmall {
|
|
53
|
+
width: 12px;
|
|
54
|
+
height: 12px;
|
|
55
|
+
}
|
|
56
|
+
.icon-button__icon--small {
|
|
57
|
+
width: 14px;
|
|
58
|
+
height: 14px;
|
|
59
|
+
}
|
|
60
|
+
.icon-button__icon--medium {
|
|
61
|
+
width: 16px;
|
|
62
|
+
height: 16px;
|
|
63
|
+
}
|
|
64
|
+
.icon-button__icon--large {
|
|
65
|
+
width: 20px;
|
|
66
|
+
height: 20px;
|
|
67
|
+
}
|
|
68
|
+
.icon-button__icon--xlarge {
|
|
69
|
+
width: 24px;
|
|
70
|
+
height: 24px;
|
|
71
|
+
}
|
|
72
|
+
.icon-button__icon--2xlarge {
|
|
73
|
+
width: 36px;
|
|
74
|
+
height: 36px;
|
|
75
|
+
}
|
|
48
76
|
|
|
49
77
|
/*
|
|
50
78
|
* Primary
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
table_cell_styles_default
|
|
3
|
+
} from "./chunk.AHPXKIVU.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-cell/table-cell.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property } from "lit/decorators.js";
|
|
14
|
+
var DSATableCell = class extends ShoelaceElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.role = "cell";
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return html`<slot></slot> `;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
DSATableCell.styles = table_cell_styles_default;
|
|
24
|
+
__decorateClass([
|
|
25
|
+
property({ reflect: true })
|
|
26
|
+
], DSATableCell.prototype, "role", 2);
|
|
27
|
+
DSATableCell = __decorateClass([
|
|
28
|
+
customElement("dsa-table-cell")
|
|
29
|
+
], DSATableCell);
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
DSATableCell
|
|
33
|
+
};
|