@ds-autonomie/web-components 1.8.0 → 1.9.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 +18 -0
- package/dist/chunks/{chunk.KZIAHLAV.js → chunk.27JQOQHL.js} +31 -13
- package/dist/chunks/{chunk.K55HKFUM.js → chunk.2CCVOCSE.js} +11 -0
- package/dist/chunks/chunk.2TCYCYJQ.js +187 -0
- package/dist/chunks/chunk.3BOLT7UM.js +168 -0
- package/dist/chunks/{chunk.WMEXYRBL.js → chunk.3EDVQPST.js} +1 -1
- package/dist/chunks/chunk.47IWI2IO.js +51 -0
- package/dist/chunks/{chunk.BEGWFCAR.js → chunk.4Z3LVWYW.js} +23 -3
- package/dist/chunks/{chunk.5MXBL3PY.js → chunk.5QYMKLPJ.js} +1 -1
- package/dist/chunks/{chunk.TRMEXXU2.js → chunk.5X3ZLYWR.js} +4 -4
- package/dist/chunks/chunk.65HTBW2L.js +31 -0
- package/dist/chunks/{chunk.5KOTVDN5.js → chunk.66WACVGP.js} +13 -2
- package/dist/chunks/{chunk.TFXRULTL.js → chunk.74YBAWFQ.js} +1 -1
- package/dist/chunks/chunk.7NRLP2GK.js +172 -0
- package/dist/chunks/{chunk.F4KJFS2T.js → chunk.7PEABCEV.js} +1 -1
- package/dist/chunks/{chunk.SEH7BBNZ.js → chunk.7ZBFOFLF.js} +2 -2
- package/dist/chunks/chunk.BFG2T6XK.js +76 -0
- package/dist/chunks/{chunk.DMP5NRB3.js → chunk.BMSQX3ZA.js} +134 -118
- package/dist/chunks/{chunk.IFXLU6P3.js → chunk.BVRGK5ZO.js} +27 -4
- package/dist/chunks/{chunk.AXJZDS4O.js → chunk.BWQBVIRR.js} +1 -1
- package/dist/chunks/{chunk.VN7U4QIC.js → chunk.CFTA3QKA.js} +1 -1
- package/dist/chunks/{chunk.F6EDQPCA.js → chunk.CPEI3G7E.js} +1 -1
- package/dist/chunks/{chunk.WTGBJNXJ.js → chunk.CURRLKGD.js} +1 -1
- package/dist/chunks/{chunk.MIO6K4QD.js → chunk.DAQJDIFW.js} +1 -1
- package/dist/chunks/{chunk.ZC74GTBL.js → chunk.DX25IW4S.js} +0 -4
- package/dist/chunks/{chunk.ZCNXAXKX.js → chunk.EETYUDWR.js} +12 -1
- package/dist/chunks/{chunk.OIWFTO2A.js → chunk.EFCI6CBB.js} +17 -5
- package/dist/chunks/chunk.ESYJVRG3.js +129 -0
- package/dist/chunks/{chunk.ADG7SYDH.js → chunk.G2S6QEJM.js} +1 -1
- package/dist/chunks/{chunk.MUBB5GXY.js → chunk.GOSPYXFS.js} +5 -8
- package/dist/chunks/chunk.H4XXY6QB.js +73 -0
- package/dist/chunks/chunk.HAJSA7VP.js +53 -0
- package/dist/chunks/chunk.HW4HC4GP.js +61 -0
- package/dist/chunks/{chunk.B5DEC3ZW.js → chunk.IEBTPGUT.js} +2 -1
- package/dist/chunks/{chunk.CJIL3BLA.js → chunk.JJ67JVYV.js} +2 -0
- package/dist/chunks/{chunk.7XNMTM6N.js → chunk.KAXMDDPV.js} +1 -1
- package/dist/chunks/{chunk.NEIICCKM.js → chunk.KUC4IPNW.js} +24 -6
- package/dist/chunks/{chunk.MZMKGGW2.js → chunk.LG4WLLQM.js} +1 -1
- package/dist/chunks/{chunk.ZBTNUV7V.js → chunk.LJ7Y3MBX.js} +5 -5
- package/dist/chunks/{chunk.DFH66YHJ.js → chunk.MHEF6WDT.js} +1 -1
- package/dist/chunks/{chunk.XEZX466O.js → chunk.MMHCJ5DA.js} +1 -1
- package/dist/chunks/chunk.N5UMZAXE.js +264 -0
- package/dist/chunks/chunk.N7H2OIPT.js +82 -0
- package/dist/chunks/{chunk.6A2LWKQY.js → chunk.NZK7MHS3.js} +1 -1
- package/dist/chunks/{chunk.N6EX6BDJ.js → chunk.ONIFK4NH.js} +28 -0
- package/dist/chunks/{chunk.KY6SFO3D.js → chunk.OXPE4AH7.js} +1 -1
- package/dist/chunks/chunk.OZWZRPR2.js +56 -0
- package/dist/chunks/{chunk.VZIVZSLP.js → chunk.P6TKBTE3.js} +1 -1
- package/dist/chunks/chunk.PFGVYROJ.js +26 -0
- package/dist/chunks/{chunk.HWR5JOYI.js → chunk.POJ5NHBX.js} +1 -1
- package/dist/chunks/{chunk.6OP6GCU4.js → chunk.R4Y6XOHR.js} +12 -2
- package/dist/chunks/{chunk.L5YSEAAK.js → chunk.RFLSIZXC.js} +1 -1
- package/dist/chunks/{chunk.JGWZGEQY.js → chunk.RZ3LYIA4.js} +4 -4
- package/dist/chunks/{chunk.43PVVN7Q.js → chunk.S7OQV6LL.js} +1 -1
- package/dist/chunks/chunk.S7VHPQOI.js +239 -0
- package/dist/chunks/{chunk.PO3AZ63O.js → chunk.T7VLQ7RI.js} +2 -1
- package/dist/chunks/{chunk.7UXBTLEE.js → chunk.TUWCKMLU.js} +2 -2
- package/dist/chunks/chunk.TWRM2VNQ.js +131 -0
- package/dist/chunks/{chunk.C7BQI7NH.js → chunk.UVCXXEVO.js} +1 -1
- package/dist/chunks/{chunk.YF45VJOV.js → chunk.UXKJPQ6X.js} +1 -1
- package/dist/chunks/{chunk.DNSF5O4C.js → chunk.UXXDCLQD.js} +1 -1
- package/dist/chunks/{chunk.C33YMWL6.js → chunk.V5O2GRVM.js} +15 -3
- package/dist/chunks/{chunk.EKWYMXQO.js → chunk.VNAE4DJZ.js} +1 -0
- package/dist/chunks/{chunk.RXBDBWWT.js → chunk.VWZFYMC7.js} +6 -0
- package/dist/chunks/{chunk.22WSILHD.js → chunk.WNODOQAI.js} +1 -1
- package/dist/chunks/chunk.XM5ZLNIT.js +32 -0
- package/dist/chunks/chunk.YA5XTUZW.js +76 -0
- package/dist/chunks/{chunk.DIC5NUF5.js → chunk.YAF5P5CP.js} +4 -0
- package/dist/chunks/chunk.YDZQSSJE.js +77 -0
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/badge/badge.d.ts +3 -0
- package/dist/components/badge/badge.js +3 -2
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.d.ts +3 -0
- package/dist/components/checkbox/checkbox.js +6 -5
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/checkbox-button/checkbox-button.js +3 -3
- package/dist/components/combobox/combobox.d.ts +0 -1
- package/dist/components/combobox/combobox.js +9 -9
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/download-card/download-card.js +3 -3
- package/dist/components/download-link/download-link.js +3 -3
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.js +2 -2
- package/dist/components/footer-sitemap-item/footer-sitemap-item.js +1 -1
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/header/header.assets.d.ts +2 -0
- package/dist/components/header/header.assets.js +9 -0
- package/dist/components/header/header.d.ts +37 -0
- package/dist/components/header/header.js +17 -0
- package/dist/components/header/header.styles.d.ts +2 -0
- package/dist/components/header/header.styles.js +8 -0
- package/dist/components/header-external-link/header-external-link.d.ts +18 -0
- package/dist/components/header-external-link/header-external-link.js +9 -0
- package/dist/components/header-external-link/header-external-link.style.d.ts +2 -0
- package/dist/components/header-external-link/header-external-link.style.js +18 -0
- package/dist/components/header-search/header-search.d.ts +45 -0
- package/dist/components/header-search/header-search.js +12 -0
- package/dist/components/header-search/header-search.styles.d.ts +2 -0
- package/dist/components/header-search/header-search.styles.js +8 -0
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.d.ts +2 -1
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.js +6 -6
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-phone/input-phone.configs.d.ts +4 -3
- package/dist/components/input-phone/input-phone.configs.js +3 -3
- package/dist/components/input-phone/input-phone.d.ts +8 -8
- package/dist/components/input-phone/input-phone.js +16 -16
- package/dist/components/input-phone/input-phone.styles.js +1 -1
- package/dist/components/input-phone/input-phone.utils.d.ts +3 -3
- package/dist/components/input-phone/input-phone.utils.js +5 -5
- package/dist/components/menu-item/menu-item.js +3 -3
- package/dist/components/option/option.js +5 -5
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/pagination/pagination.js +9 -8
- package/dist/components/pagination/pagination.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.js +8 -8
- package/dist/components/skeleton/skeleton.d.ts +1 -0
- package/dist/components/skeleton/skeleton.js +5 -3
- package/dist/components/skip-link-item/skip-link-item.d.ts +1 -0
- package/dist/components/skip-link-item/skip-link-item.js +1 -1
- package/dist/components/skip-links/skip-links.d.ts +0 -6
- package/dist/components/skip-links/skip-links.js +2 -2
- package/dist/components/skip-links/skip-links.styles.js +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/step/step.js +6 -6
- package/dist/components/tab/tab.js +2 -2
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/table/table-body/table-body.d.ts +8 -3
- package/dist/components/table/table-body/table-body.js +5 -1
- package/dist/components/table/table-caption/table-caption.d.ts +6 -2
- package/dist/components/table/table-caption/table-caption.js +7 -3
- package/dist/components/table/table-caption/table-caption.styles.js +1 -1
- package/dist/components/table/table-cell/table-cell.d.ts +6 -2
- package/dist/components/table/table-cell/table-cell.js +5 -1
- package/dist/components/table/table-expanded-row/table-expanded-row.d.ts +17 -0
- package/dist/components/table/table-expanded-row/table-expanded-row.js +47 -0
- package/dist/components/table/table-expanded-row/table-expanded-row.styles.d.ts +2 -0
- package/dist/components/table/table-expanded-row/table-expanded-row.styles.js +8 -0
- package/dist/components/table/table-head/table-head.d.ts +8 -3
- package/dist/components/table/table-head/table-head.js +5 -1
- package/dist/components/table/table-header-cell/table-header-cell.d.ts +8 -1
- package/dist/components/table/table-header-cell/table-header-cell.js +7 -4
- package/dist/components/table/table-header-cell/table-header-cell.styles.js +1 -1
- package/dist/components/table/table-header-row/table-header-row.d.ts +4 -2
- package/dist/components/table/table-header-row/table-header-row.js +7 -4
- package/dist/components/table/table-header-row/table-header-row.styles.js +1 -1
- package/dist/components/table/table-row/table-row.d.ts +48 -1
- package/dist/components/table/table-row/table-row.js +5 -2
- package/dist/components/table/table-row/table-row.styles.js +1 -1
- package/dist/components/table/table.d.ts +23 -1
- package/dist/components/table/table.js +2 -2
- package/dist/components/table/table.styles.js +1 -1
- package/dist/components/table-container/table-container.d.ts +4 -2
- package/dist/components/table-container/table-container.js +3 -1
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +11 -10
- package/dist/components/tree-item/tree-item.js +10 -9
- package/dist/components/tree-item/tree-item.styles.js +1 -1
- package/dist/custom-elements.json +2490 -991
- package/dist/design-system.d.ts +3 -0
- package/dist/design-system.js +119 -103
- package/dist/events/dsa-submit.d.ts +7 -0
- package/dist/events/dsa-submit.js +1 -0
- package/dist/events/dsa-table-row-all-change-selection.d.ts +7 -0
- package/dist/events/dsa-table-row-all-change-selection.js +1 -0
- package/dist/events/dsa-table-row-all-selected.d.ts +10 -0
- package/dist/events/dsa-table-row-all-selected.js +1 -0
- package/dist/events/dsa-table-row-change-selection.d.ts +7 -0
- package/dist/events/dsa-table-row-change-selection.js +1 -0
- package/dist/events/dsa-table-row-click.d.ts +7 -0
- package/dist/events/dsa-table-row-click.js +1 -0
- package/dist/events/dsa-table-row-expand-change.d.ts +7 -0
- package/dist/events/dsa-table-row-expand-change.js +1 -0
- package/dist/events/dsa-table-row-selected.d.ts +11 -0
- package/dist/events/dsa-table-row-selected.js +1 -0
- package/dist/events/events.d.ts +6 -0
- package/dist/internal/loading-state-element.d.ts +7 -0
- package/dist/internal/loading-state-element.js +23 -0
- package/dist/themes/dsa-wc-theme.css +53 -3
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +56 -3
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/localize.d.ts +10 -1
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.d.ts +1 -0
- package/dist/utilities/storybook.js +12 -0
- package/dist/vscode.html-custom-data.json +168 -14
- package/dist/web-types.json +913 -70
- package/package.json +1 -1
- package/dist/chunks/chunk.2AHY5V6G.js +0 -25
- package/dist/chunks/chunk.65JZEQ4F.js +0 -33
- package/dist/chunks/chunk.6ZQ4OQ2C.js +0 -51
- package/dist/chunks/chunk.CHM74JXS.js +0 -74
- package/dist/chunks/chunk.HL632DKM.js +0 -86
- package/dist/chunks/chunk.M2SPGS54.js +0 -31
- package/dist/chunks/chunk.MVKY65HC.js +0 -33
- package/dist/chunks/chunk.OBTE6PY7.js +0 -41
- package/dist/chunks/chunk.TB6DCJYX.js +0 -57
- package/dist/chunks/chunk.UCJGKOXX.js +0 -10
- package/dist/chunks/chunk.Z4V2DJQS.js +0 -44
- package/dist/chunks/{chunk.JOIYVWUG.js → chunk.5MB36CJO.js} +1 -1
- package/dist/chunks/{chunk.V7MYOBN4.js → chunk.QZTW3WMM.js} +3 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HasSlotController
|
|
3
|
+
} from "./chunk.YIY5RM53.js";
|
|
1
4
|
import {
|
|
2
5
|
badge_styles_default
|
|
3
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.BVRGK5ZO.js";
|
|
4
7
|
import {
|
|
5
8
|
ShoelaceElement
|
|
6
9
|
} from "./chunk.YCXTCVAZ.js";
|
|
@@ -15,7 +18,9 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
15
18
|
var DSABadge = class extends ShoelaceElement {
|
|
16
19
|
constructor() {
|
|
17
20
|
super(...arguments);
|
|
21
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
18
22
|
this.variant = "primary";
|
|
23
|
+
this.size = "medium";
|
|
19
24
|
this.pulse = false;
|
|
20
25
|
}
|
|
21
26
|
render() {
|
|
@@ -29,7 +34,10 @@ var DSABadge = class extends ShoelaceElement {
|
|
|
29
34
|
"badge--neutral": this.variant === "neutral",
|
|
30
35
|
"badge--warning": this.variant === "warning",
|
|
31
36
|
"badge--danger": this.variant === "danger",
|
|
32
|
-
"badge--
|
|
37
|
+
"badge--medium": this.size === "medium",
|
|
38
|
+
"badge--small": this.size === "small",
|
|
39
|
+
"badge--pulse": this.pulse,
|
|
40
|
+
"badge--has-text": this.hasSlotController.test("[default]")
|
|
33
41
|
})}
|
|
34
42
|
role="status"
|
|
35
43
|
>
|
|
@@ -42,6 +50,9 @@ DSABadge.styles = badge_styles_default;
|
|
|
42
50
|
__decorateClass([
|
|
43
51
|
property({ reflect: true })
|
|
44
52
|
], DSABadge.prototype, "variant", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
property({ reflect: true })
|
|
55
|
+
], DSABadge.prototype, "size", 2);
|
|
45
56
|
__decorateClass([
|
|
46
57
|
property({ type: Boolean, reflect: true })
|
|
47
58
|
], DSABadge.prototype, "pulse", 2);
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.TUVJKY7S.js";
|
|
4
|
+
|
|
5
|
+
// src/components/header/header.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var header_styles_default = css`
|
|
8
|
+
${component_styles_default}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part~='base'] {
|
|
15
|
+
background: var(--dsa-wc-header-background);
|
|
16
|
+
box-shadow: var(--dsa-wc-header-box-shadow);
|
|
17
|
+
}
|
|
18
|
+
[part~='base'] nav ul {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[part~='external-links'] {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[part~='main'] {
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template:
|
|
30
|
+
'firstLogo actions'
|
|
31
|
+
/ var(--dsa-wc-header-logo-width-mobile) auto;
|
|
32
|
+
grid-row-gap: var(--dsa-spacing-8);
|
|
33
|
+
grid-column-gap: var(--dsa-spacing-16);
|
|
34
|
+
padding: var(--dsa-wc-header-main-padding-y) var(--dsa-wc-header-padding-x);
|
|
35
|
+
}
|
|
36
|
+
.has-brand {
|
|
37
|
+
grid-template:
|
|
38
|
+
'firstLogo actions'
|
|
39
|
+
'brand brand'
|
|
40
|
+
/ var(--dsa-wc-header-logo-width-mobile) auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[part~='first-logo'] {
|
|
44
|
+
grid-area: firstLogo;
|
|
45
|
+
}
|
|
46
|
+
[part~='first-logo']:focus-visible {
|
|
47
|
+
outline: var(--dsa-wc-focus-ring);
|
|
48
|
+
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[part~='brand'] {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
.has-brand [part~='brand'] {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: var(--dsa-spacing-16);
|
|
58
|
+
padding-top: var(--dsa-spacing-8);
|
|
59
|
+
border-top: 1px solid var(--dsa-color-background-divider);
|
|
60
|
+
grid-area: brand;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.logo {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
width: var(--dsa-wc-header-logo-width-mobile);
|
|
68
|
+
height: var(--dsa-wc-header-logo-height-mobile);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.site-info {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
gap: var(--dsa-spacing-2);
|
|
76
|
+
min-height: var(--dsa-wc-header-logo-height-mobile);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[part~='site-name']::slotted(*) {
|
|
80
|
+
color: var(--dsa-wc-header-sitename-color);
|
|
81
|
+
font: var(--dsa-wc-header-sitename-font-mobile);
|
|
82
|
+
margin: 0;
|
|
83
|
+
}
|
|
84
|
+
[part~='baseline']::slotted(*) {
|
|
85
|
+
color: var(--dsa-wc-header-baseline-color);
|
|
86
|
+
font: var(--dsa-wc-header-baseline-font-mobile);
|
|
87
|
+
margin: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part~='actions'] {
|
|
91
|
+
grid-area: actions;
|
|
92
|
+
flex: 1;
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: flex-end;
|
|
96
|
+
gap: var(--dsa-spacing-16);
|
|
97
|
+
min-height: var(--dsa-wc-header-logo-height-mobile);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[part~='search'] {
|
|
101
|
+
flex: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.header--search-expanded [part~='navigation'] {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media only screen and (max-width: 719px) {
|
|
109
|
+
.header--search-expanded {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.header--search-expanded [part~='first-logo'],
|
|
114
|
+
.header--search-expanded [part~='brand'] {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media only screen and (min-width: 720px) {
|
|
120
|
+
[part~='external-links'],
|
|
121
|
+
[part~='main'] {
|
|
122
|
+
padding-inline: var(--dsa-wc-header-medium-padding-x);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[part~='external-links'] {
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: end;
|
|
128
|
+
padding-block: var(--dsa-wc-header-external-links-padding-y);
|
|
129
|
+
border-bottom: 1px solid var(--dsa-color-background-divider);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[part~='main'] {
|
|
133
|
+
padding-block: var(--dsa-wc-header-main-medium-padding-y);
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.has-brand [part~='brand'] {
|
|
139
|
+
gap: var(--dsa-spacing-32);
|
|
140
|
+
padding-top: 0;
|
|
141
|
+
border: none;
|
|
142
|
+
}
|
|
143
|
+
.logo {
|
|
144
|
+
width: var(--dsa-wc-header-logo-width-desktop);
|
|
145
|
+
height: var(--dsa-wc-header-logo-height-desktop);
|
|
146
|
+
}
|
|
147
|
+
.site-info {
|
|
148
|
+
gap: var(--dsa-spacing-4);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[part~='site-name']::slotted(*) {
|
|
152
|
+
font: var(--dsa-wc-header-sitename-font-desktop);
|
|
153
|
+
}
|
|
154
|
+
[part~='baseline']::slotted(*) {
|
|
155
|
+
font: var(--dsa-wc-header-baseline-font-desktop);
|
|
156
|
+
}
|
|
157
|
+
[part~='actions'] {
|
|
158
|
+
gap: var(--dsa-spacing-32);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media only screen and (min-width: 1440px) {
|
|
163
|
+
[part~='external-links'],
|
|
164
|
+
[part~='main'] {
|
|
165
|
+
padding-inline: var(--dsa-wc-header-x-large-padding-x);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
`;
|
|
169
|
+
|
|
170
|
+
export {
|
|
171
|
+
header_styles_default
|
|
172
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tree_item_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VNAE4DJZ.js";
|
|
4
4
|
import {
|
|
5
5
|
animateTo,
|
|
6
6
|
shimKeyframesHeightAuto,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.V7RJROLH.js";
|
|
13
13
|
import {
|
|
14
14
|
LocalizeController
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.27JQOQHL.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
18
|
} from "./chunk.6IH66JBY.js";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
table_container_styles_default
|
|
3
|
+
} from "./chunk.FWOMF5BY.js";
|
|
4
|
+
import {
|
|
5
|
+
LoadingStateElement
|
|
6
|
+
} from "./chunk.PFGVYROJ.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.6IH66JBY.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk.6M63UXML.js";
|
|
13
|
+
|
|
14
|
+
// src/components/table-container/table-container.ts
|
|
15
|
+
import { html } from "lit";
|
|
16
|
+
import { customElement } from "lit/decorators.js";
|
|
17
|
+
var DSATableContainer = class extends LoadingStateElement {
|
|
18
|
+
handleLoading() {
|
|
19
|
+
const caption = this.querySelector("dsa-table-caption");
|
|
20
|
+
if (caption) {
|
|
21
|
+
caption.loading = this.loading;
|
|
22
|
+
}
|
|
23
|
+
const head = this.querySelector("dsa-table-head");
|
|
24
|
+
if (head) {
|
|
25
|
+
head.loading = this.loading;
|
|
26
|
+
}
|
|
27
|
+
const body = this.querySelector("dsa-table-body");
|
|
28
|
+
if (body) {
|
|
29
|
+
body.loading = this.loading;
|
|
30
|
+
}
|
|
31
|
+
const pagination = this.querySelector("dsa-pagination");
|
|
32
|
+
if (pagination) {
|
|
33
|
+
pagination.loading = this.loading;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
handleSkeletonEffectChange() {
|
|
37
|
+
const caption = this.querySelector("dsa-table-caption");
|
|
38
|
+
if (caption) {
|
|
39
|
+
caption.skeletonEffect = this.skeletonEffect;
|
|
40
|
+
}
|
|
41
|
+
const head = this.querySelector("dsa-table-head");
|
|
42
|
+
if (head) {
|
|
43
|
+
head.skeletonEffect = this.skeletonEffect;
|
|
44
|
+
}
|
|
45
|
+
const body = this.querySelector("dsa-table-body");
|
|
46
|
+
if (body) {
|
|
47
|
+
body.skeletonEffect = this.skeletonEffect;
|
|
48
|
+
}
|
|
49
|
+
const pagination = this.querySelector("dsa-pagination");
|
|
50
|
+
if (pagination) {
|
|
51
|
+
pagination.skeletonEffect = this.skeletonEffect;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return html`
|
|
56
|
+
<slot part="caption" name="caption"></slot>
|
|
57
|
+
<slot part="toolbar" name="toolbar"></slot>
|
|
58
|
+
<slot part="table" name="table"></slot>
|
|
59
|
+
<slot part="pagination" name="pagination"></slot>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
DSATableContainer.styles = table_container_styles_default;
|
|
64
|
+
__decorateClass([
|
|
65
|
+
watch("loading")
|
|
66
|
+
], DSATableContainer.prototype, "handleLoading", 1);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
watch("skeletonEffect")
|
|
69
|
+
], DSATableContainer.prototype, "handleSkeletonEffectChange", 1);
|
|
70
|
+
DSATableContainer = __decorateClass([
|
|
71
|
+
customElement("dsa-table-container")
|
|
72
|
+
], DSATableContainer);
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
DSATableContainer
|
|
76
|
+
};
|