@lmvz-ds/components 0.39.0 → 0.41.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 +12 -0
- package/cjs/{ds.constants-C6eKRAEu.js → ds.constants-pI-qkOYv.js} +2 -0
- package/cjs/index.cjs.js +2 -1
- package/cjs/lmvz-button-group.cjs.entry.js +1 -1
- package/cjs/lmvz-button_2.cjs.entry.js +1 -1
- package/cjs/lmvz-card.cjs.entry.js +58 -14
- package/cjs/lmvz-checkbox.cjs.entry.js +1 -1
- package/cjs/lmvz-chip.cjs.entry.js +2 -2
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-datepicker.cjs.entry.js +2 -2
- package/cjs/lmvz-header_2.cjs.entry.js +1 -1
- package/cjs/lmvz-input.cjs.entry.js +2 -2
- package/cjs/lmvz-link.cjs.entry.js +2 -2
- package/cjs/lmvz-menuitem.cjs.entry.js +1 -1
- package/cjs/lmvz-message.cjs.entry.js +1 -1
- package/cjs/lmvz-modal.cjs.entry.js +1 -1
- package/cjs/lmvz-popover.cjs.entry.js +1 -1
- package/cjs/lmvz-radio.cjs.entry.js +1 -1
- package/cjs/lmvz-select.cjs.entry.js +1 -1
- package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
- package/cjs/lmvz-spinner.cjs.entry.js +1 -1
- package/cjs/lmvz-tab.cjs.entry.js +3 -3
- package/cjs/lmvz-tabs.cjs.entry.js +37 -44
- package/cjs/lmvz-toggle.cjs.entry.js +1 -1
- package/cjs/loader.cjs.js +1 -1
- package/collection/api/ds.constants.js +1 -0
- package/collection/components/lmvz-card/lmvz-card.css +82 -194
- package/collection/components/lmvz-card/lmvz-card.js +131 -38
- package/collection/components/lmvz-checkbox/lmvz-checkbox.js +1 -1
- package/collection/components/lmvz-chip/lmvz-chip.js +1 -1
- package/collection/components/lmvz-datepicker/lmvz-datepicker.js +2 -2
- package/collection/components/lmvz-header/lmvz-header.js +1 -1
- package/collection/components/lmvz-icon/lmvz-icon.js +1 -1
- package/collection/components/lmvz-input/lmvz-input.js +2 -2
- package/collection/components/lmvz-link/lmvz-link.js +1 -1
- package/collection/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/collection/components/lmvz-message/lmvz-message.js +1 -1
- package/collection/components/lmvz-modal/lmvz-modal.js +1 -1
- package/collection/components/lmvz-popover/lmvz-popover.js +1 -1
- package/collection/components/lmvz-radio/lmvz-radio.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-snackbar/lmvz-snackbar.js +1 -1
- package/collection/components/lmvz-spinner/lmvz-spinner.js +1 -1
- package/collection/components/lmvz-tab/lmvz-tab.css +0 -13
- package/collection/components/lmvz-tab/lmvz-tab.js +10 -14
- package/collection/components/lmvz-tabs/lmvz-tabs.css +0 -5
- package/collection/components/lmvz-tabs/lmvz-tabs.js +45 -66
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/components/index.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-datepicker.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-link.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-message.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-popover.js +1 -1
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.js +1 -1
- package/components/lmvz-spinner.js +1 -1
- package/components/lmvz-tab.js +1 -1
- package/components/lmvz-tabs.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/p-Buw_s-9k.js +1 -0
- package/components/{p-DSDBThqb.js → p-ChNEjbnY.js} +1 -1
- package/components/{p-niXjuPxe.js → p-DMdV-cnt.js} +1 -1
- package/components/{p-Bc5MM0zh.js → p-D_sr5Z0Q.js} +1 -1
- package/components/{p-D_mff3n7.js → p-qLAod5PR.js} +1 -1
- package/components/{p-DXhP6UeF.js → p-sJgTdXHR.js} +1 -1
- package/esm/{ds.constants-0ctLESas.js → ds.constants-Buw_s-9k.js} +2 -1
- package/esm/index.js +1 -1
- package/esm/lmvz-button-group.entry.js +1 -1
- package/esm/lmvz-button_2.entry.js +1 -1
- package/esm/lmvz-card.entry.js +59 -15
- package/esm/lmvz-checkbox.entry.js +1 -1
- package/esm/lmvz-chip.entry.js +2 -2
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-datepicker.entry.js +2 -2
- package/esm/lmvz-header_2.entry.js +1 -1
- package/esm/lmvz-input.entry.js +2 -2
- package/esm/lmvz-link.entry.js +2 -2
- package/esm/lmvz-menuitem.entry.js +1 -1
- package/esm/lmvz-message.entry.js +1 -1
- package/esm/lmvz-modal.entry.js +1 -1
- package/esm/lmvz-popover.entry.js +1 -1
- package/esm/lmvz-radio.entry.js +1 -1
- package/esm/lmvz-select.entry.js +1 -1
- package/esm/lmvz-snackbar.entry.js +1 -1
- package/esm/lmvz-spinner.entry.js +1 -1
- package/esm/lmvz-tab.entry.js +3 -3
- package/esm/lmvz-tabs.entry.js +37 -44
- package/esm/lmvz-toggle.entry.js +1 -1
- package/esm/loader.js +1 -1
- package/hydrate/index.js +125 -88
- package/hydrate/index.mjs +125 -88
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/{p-f24f5207.entry.js → p-170dea97.entry.js} +1 -1
- package/lmvz-components/{p-efd9d50e.entry.js → p-18a894e4.entry.js} +1 -1
- package/lmvz-components/{p-f911691c.entry.js → p-19c9f747.entry.js} +1 -1
- package/lmvz-components/{p-87f21ac9.entry.js → p-377c45a7.entry.js} +1 -1
- package/lmvz-components/{p-773e9d95.entry.js → p-6292da52.entry.js} +1 -1
- package/lmvz-components/{p-ebad823c.entry.js → p-65efa76e.entry.js} +1 -1
- package/lmvz-components/{p-27e8b4fa.entry.js → p-67b86084.entry.js} +1 -1
- package/lmvz-components/{p-7cbfbc88.entry.js → p-6ffd9391.entry.js} +1 -1
- package/lmvz-components/{p-304c7554.entry.js → p-77fd3ce2.entry.js} +1 -1
- package/lmvz-components/{p-e35f49a1.entry.js → p-96764fa9.entry.js} +1 -1
- package/lmvz-components/p-Buw_s-9k.js +1 -0
- package/lmvz-components/{p-6aae1df9.entry.js → p-a70079b6.entry.js} +1 -1
- package/lmvz-components/p-aa643b58.entry.js +1 -0
- package/lmvz-components/{p-335b3867.entry.js → p-b14966a6.entry.js} +1 -1
- package/lmvz-components/{p-8ba6ec19.entry.js → p-b9d29e90.entry.js} +1 -1
- package/lmvz-components/{p-41286514.entry.js → p-bf728ef8.entry.js} +1 -1
- package/lmvz-components/p-c6309d6c.entry.js +1 -0
- package/lmvz-components/p-d466fe8f.entry.js +1 -0
- package/lmvz-components/{p-edec4d09.entry.js → p-dd4a62e1.entry.js} +1 -1
- package/lmvz-components/{p-d73bb7fd.entry.js → p-e1c75def.entry.js} +1 -1
- package/lmvz-components/{p-93b781ca.entry.js → p-fd29789f.entry.js} +1 -1
- package/manifest.json +169 -102
- package/package.json +1 -1
- package/types/api/ds.constants.d.ts +1 -0
- package/types/api/ds.types.d.ts +4 -0
- package/types/components/lmvz-card/lmvz-card.d.ts +17 -6
- package/types/components/lmvz-tab/lmvz-tab.d.ts +1 -1
- package/types/components/lmvz-tabs/lmvz-tabs.d.ts +7 -8
- package/types/components.d.ts +68 -47
- package/components/p-0ctLESas.js +0 -1
- package/lmvz-components/p-0ctLESas.js +0 -1
- package/lmvz-components/p-1ba1af8d.entry.js +0 -1
- package/lmvz-components/p-3b7203a3.entry.js +0 -1
- package/lmvz-components/p-c884c76e.entry.js +0 -1
|
@@ -1,28 +1,67 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { cardSizes } from "../../api/ds.constants";
|
|
3
|
+
import { isAriaValidationEnabled } from "../../utils/aria/aria-validation-controller";
|
|
2
4
|
import { createAssetUrlSafely } from "../../utils/stencil/assets";
|
|
5
|
+
const HEADING_TAGS = new Set(['HEADER', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6']);
|
|
3
6
|
export class LmvzCard {
|
|
7
|
+
el;
|
|
8
|
+
titleSlotElement;
|
|
9
|
+
warnedCases = new Set();
|
|
10
|
+
size = 'large';
|
|
4
11
|
cardTitle;
|
|
5
|
-
imageUrl;
|
|
6
12
|
description;
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
imageUrl;
|
|
14
|
+
imageAlt = '';
|
|
15
|
+
actionLabel;
|
|
16
|
+
lmvzCardAction;
|
|
17
|
+
normalizeSize(value) {
|
|
18
|
+
const normalizedSize = cardSizes.includes(value) ? value : 'large';
|
|
19
|
+
if (normalizedSize !== this.size) {
|
|
20
|
+
this.size = normalizedSize;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.normalizeSize(this.size);
|
|
25
|
+
}
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
const titleSlot = this.el.shadowRoot?.querySelector('slot[name="card-title"]');
|
|
28
|
+
titleSlot?.addEventListener('slotchange', () => this.checkTitleContent());
|
|
29
|
+
this.checkTitleContent();
|
|
30
|
+
}
|
|
9
31
|
get fallbackImage() {
|
|
10
|
-
return createAssetUrlSafely('card-placeholder.svg');
|
|
32
|
+
return String(createAssetUrlSafely('card-placeholder.svg'));
|
|
33
|
+
}
|
|
34
|
+
handleActionClick = () => {
|
|
35
|
+
this.lmvzCardAction.emit();
|
|
36
|
+
};
|
|
37
|
+
get slottedTitleElement() {
|
|
38
|
+
return this.titleSlotElement?.assignedElements()?.at(0);
|
|
11
39
|
}
|
|
12
|
-
|
|
13
|
-
|
|
40
|
+
checkTitleContent() {
|
|
41
|
+
if (!isAriaValidationEnabled())
|
|
42
|
+
return;
|
|
43
|
+
const slotted = this.slottedTitleElement;
|
|
44
|
+
if (slotted) {
|
|
45
|
+
const tag = slotted.tagName;
|
|
46
|
+
if (!HEADING_TAGS.has(tag)) {
|
|
47
|
+
this.warnOnce(`non-heading:${tag}`, `[lmvz-card] Element <${tag.toLowerCase()}> slotted into "card-title" is not a heading. Slot a heading element (h2-h5) instead.`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else if (!this.cardTitle) {
|
|
51
|
+
this.warnOnce('missing-title', '[lmvz-card] Neither a "card-title" slotted heading nor a non-empty "cardTitle" prop was supplied.');
|
|
52
|
+
}
|
|
14
53
|
}
|
|
15
|
-
|
|
16
|
-
|
|
54
|
+
warnOnce(key, message) {
|
|
55
|
+
if (this.warnedCases.has(key))
|
|
56
|
+
return;
|
|
57
|
+
this.warnedCases.add(key);
|
|
58
|
+
console.warn(message);
|
|
17
59
|
}
|
|
18
60
|
render() {
|
|
19
|
-
|
|
20
|
-
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
21
|
-
};
|
|
22
|
-
return (h(Host, { key: '1dd819fd7c752af8d15001c08f7f60c6ea7278b9', role: "article" }, h("div", { key: 'e0cc822e627b6bbe665e4faa705cc46a09bac7c6', class: "top" }, h("div", { key: 'db79cb5a67ebdd6097f985e4b4bd27665b6329ef', class: "image-wrapper", style: imgStyle }, h("div", { key: '90facc8595ddbbf31e3768faa8254a82ab8d3e65', class: "chip-slot" }, h("slot", { key: 'cb2e6a1053aae2b2ca90c52c175e3c4174c89d23', name: "chip" })))), h("div", { key: 'cb11069a329385178677e92d08044e0fe8e5b982', class: "bottom" }, h("header", { key: '1e6076352124ca03de2fb13c17a565b4f492567e' }, h("h2", { key: '73f11099fb751bd4f967dbe49b79763b6a8268f3', class: "title" }, this.cardTitle)), h("p", { key: '36cf87b4c2004bff1e65feedd13e137d67115de3', class: "description" }, this.description), h("div", { key: '6c1d82f4968ce8252307858e6ad0681274f06397', class: "actions" }, h("button", { key: '0366e0caaf9235a3eaf7bfcab116e6a828fb248d', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), h("button", { key: '4f435e79d75a621d6fe065471a915b55308ad15d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, h("span", { key: '7dec97e0b0ca58c40fc5308cc7863acafa8c5147', class: "icon-placeholder" }, "..."))))));
|
|
61
|
+
return (h(Host, { key: '21ac0a567bb88d05d247cc3150bf2e7ce26972c5', role: "article" }, h("img", { key: '6cea11ee015059d5537ab64c7cbb1655ac984cb1', class: "image", src: this.imageUrl ?? this.fallbackImage, alt: this.imageAlt, loading: "lazy", decoding: "async" }), h("div", { key: 'cd29132d8268fb5a025cde5c33a858982c8eaaed', class: "content" }, h("div", { key: '0d353a46cae60d81417e5280b39020b2234ad304', class: "title-block" }, h("slot", { key: '4f2734a257ef877d258a717e23855f521c5132a6', name: "card-title", ref: (el) => (this.titleSlotElement = el) }, this.cardTitle && (h("header", { key: '7d526caba45dde6b13bee023e60943711347258a', role: "heading", class: "card-default-title" }, this.cardTitle))), this.description && h("p", { key: '18c3eac26562a592baa29d75674737d11f57beac', class: "description" }, this.description)), h("slot", { key: 'd0d9c40ca8501b0fdfa9d589eeb05692892316a2', name: "chip" }), this.actionLabel && (h("div", { key: '4bd5d9233c0ba1dcda6bebdeff89adbbfe37e4b1', class: "actions" }, h("lmvz-button", { key: '6cefc7ad2859d457ad11b3f4edb1300ba664ef63', class: "action", variant: "secondary", scale: this.size === 'small' ? 'small' : 'default', onLmvzActivation: this.handleActionClick }, this.actionLabel))))));
|
|
23
62
|
}
|
|
24
63
|
static get is() { return "lmvz-card"; }
|
|
25
|
-
static get encapsulation() { return "
|
|
64
|
+
static get encapsulation() { return "shadow"; }
|
|
26
65
|
static get originalStyleUrls() {
|
|
27
66
|
return {
|
|
28
67
|
"$": ["lmvz-card.css"]
|
|
@@ -36,26 +75,56 @@ export class LmvzCard {
|
|
|
36
75
|
static get assetsDirs() { return ["../../assets"]; }
|
|
37
76
|
static get properties() {
|
|
38
77
|
return {
|
|
78
|
+
"size": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"mutable": true,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "Card.Size",
|
|
83
|
+
"resolved": "\"large\" | \"small\"",
|
|
84
|
+
"references": {
|
|
85
|
+
"Card": {
|
|
86
|
+
"location": "import",
|
|
87
|
+
"path": "../../api/ds.types",
|
|
88
|
+
"id": "src/api/ds.types.d.ts::Card",
|
|
89
|
+
"referenceLocation": "Card"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [{
|
|
97
|
+
"name": "default",
|
|
98
|
+
"text": "'large'"
|
|
99
|
+
}],
|
|
100
|
+
"text": "Size variant of the card.\nInvalid values are normalized to `large` at runtime."
|
|
101
|
+
},
|
|
102
|
+
"getter": false,
|
|
103
|
+
"setter": false,
|
|
104
|
+
"reflect": true,
|
|
105
|
+
"attribute": "size",
|
|
106
|
+
"defaultValue": "'large'"
|
|
107
|
+
},
|
|
39
108
|
"cardTitle": {
|
|
40
109
|
"type": "string",
|
|
41
110
|
"mutable": false,
|
|
42
111
|
"complexType": {
|
|
43
112
|
"original": "string",
|
|
44
|
-
"resolved": "string",
|
|
113
|
+
"resolved": "string | undefined",
|
|
45
114
|
"references": {}
|
|
46
115
|
},
|
|
47
|
-
"required":
|
|
48
|
-
"optional":
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": true,
|
|
49
118
|
"docs": {
|
|
50
119
|
"tags": [],
|
|
51
|
-
"text": "Card title
|
|
120
|
+
"text": "Card title text, rendered as the fallback `<h3>` for the `card-title` slot.\nIgnored when a heading is slotted into `card-title`. One of `cardTitle` or a slotted heading should be supplied."
|
|
52
121
|
},
|
|
53
122
|
"getter": false,
|
|
54
123
|
"setter": false,
|
|
55
124
|
"reflect": false,
|
|
56
125
|
"attribute": "card-title"
|
|
57
126
|
},
|
|
58
|
-
"
|
|
127
|
+
"description": {
|
|
59
128
|
"type": "string",
|
|
60
129
|
"mutable": false,
|
|
61
130
|
"complexType": {
|
|
@@ -67,14 +136,14 @@ export class LmvzCard {
|
|
|
67
136
|
"optional": true,
|
|
68
137
|
"docs": {
|
|
69
138
|
"tags": [],
|
|
70
|
-
"text": "Optional
|
|
139
|
+
"text": "Optional description text."
|
|
71
140
|
},
|
|
72
141
|
"getter": false,
|
|
73
142
|
"setter": false,
|
|
74
143
|
"reflect": false,
|
|
75
|
-
"attribute": "
|
|
144
|
+
"attribute": "description"
|
|
76
145
|
},
|
|
77
|
-
"
|
|
146
|
+
"imageUrl": {
|
|
78
147
|
"type": "string",
|
|
79
148
|
"mutable": false,
|
|
80
149
|
"complexType": {
|
|
@@ -86,14 +155,14 @@ export class LmvzCard {
|
|
|
86
155
|
"optional": true,
|
|
87
156
|
"docs": {
|
|
88
157
|
"tags": [],
|
|
89
|
-
"text": "Optional
|
|
158
|
+
"text": "Optional image URL; falls back to a bundled placeholder graphic when unset."
|
|
90
159
|
},
|
|
91
160
|
"getter": false,
|
|
92
161
|
"setter": false,
|
|
93
162
|
"reflect": false,
|
|
94
|
-
"attribute": "
|
|
163
|
+
"attribute": "image-url"
|
|
95
164
|
},
|
|
96
|
-
"
|
|
165
|
+
"imageAlt": {
|
|
97
166
|
"type": "string",
|
|
98
167
|
"mutable": false,
|
|
99
168
|
"complexType": {
|
|
@@ -104,38 +173,62 @@ export class LmvzCard {
|
|
|
104
173
|
"required": false,
|
|
105
174
|
"optional": false,
|
|
106
175
|
"docs": {
|
|
107
|
-
"tags": [
|
|
108
|
-
|
|
176
|
+
"tags": [{
|
|
177
|
+
"name": "default",
|
|
178
|
+
"text": "''"
|
|
179
|
+
}],
|
|
180
|
+
"text": "Accessible alt text for the image."
|
|
109
181
|
},
|
|
110
182
|
"getter": false,
|
|
111
183
|
"setter": false,
|
|
112
184
|
"reflect": false,
|
|
113
|
-
"attribute": "
|
|
185
|
+
"attribute": "image-alt",
|
|
114
186
|
"defaultValue": "''"
|
|
187
|
+
},
|
|
188
|
+
"actionLabel": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "string",
|
|
193
|
+
"resolved": "string | undefined",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": true,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": "Label for the card's single action button. The action row renders only when this is a non-empty string."
|
|
201
|
+
},
|
|
202
|
+
"getter": false,
|
|
203
|
+
"setter": false,
|
|
204
|
+
"reflect": false,
|
|
205
|
+
"attribute": "action-label"
|
|
115
206
|
}
|
|
116
207
|
};
|
|
117
208
|
}
|
|
118
209
|
static get events() {
|
|
119
210
|
return [{
|
|
120
|
-
"method": "
|
|
121
|
-
"name": "
|
|
211
|
+
"method": "lmvzCardAction",
|
|
212
|
+
"name": "lmvzCardAction",
|
|
122
213
|
"bubbles": true,
|
|
123
214
|
"cancelable": true,
|
|
124
215
|
"composed": true,
|
|
125
216
|
"docs": {
|
|
126
217
|
"tags": [],
|
|
127
|
-
"text": "
|
|
218
|
+
"text": "Emitted once per activation of the action button."
|
|
128
219
|
},
|
|
129
220
|
"complexType": {
|
|
130
|
-
"original": "
|
|
131
|
-
"resolved": "
|
|
132
|
-
"references": {
|
|
133
|
-
"PointerEvent": {
|
|
134
|
-
"location": "global",
|
|
135
|
-
"id": "global::PointerEvent"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
221
|
+
"original": "void",
|
|
222
|
+
"resolved": "void",
|
|
223
|
+
"references": {}
|
|
138
224
|
}
|
|
139
225
|
}];
|
|
140
226
|
}
|
|
227
|
+
static get elementRef() { return "el"; }
|
|
228
|
+
static get watchers() {
|
|
229
|
+
return [{
|
|
230
|
+
"propName": "size",
|
|
231
|
+
"methodName": "normalizeSize"
|
|
232
|
+
}];
|
|
233
|
+
}
|
|
141
234
|
}
|
|
@@ -117,7 +117,7 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
117
117
|
this.nativeError = true;
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: 'df48e8af0b992d4f2c564aae67dbd42b6454f2c1' }, h("div", { key: 'fe1256e373ee98cc26ca9031654d4d01f10b96e7', class: "pill" }, h("input", { key: '580af189cb0069dd057464efd8c876c1a2dd3826', type: "checkbox", id: this.checkboxId, checked: this.checkedState, disabled: this.disabled, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.ariaDescribedBy, "aria-errormessage": this.error && this.errorId ? this.errorId : undefined, ref: (el) => (this.nativeInput = el), onChange: this.handleChange, autoFocus: this.autofocus }), h("span", { key: '4a6b3522aa1a43f3c0a7ff203fb5791876555954', class: "box", "aria-hidden": "true" }, this.checkedState && h("span", { key: '3a857015118d911832cdaa1287cee4c63f84afb2', class: "indicator", innerHTML: CHECKMARK_SVG })), h("span", { key: 'aa543c4c37cf220084b3cce423e1d0e48b5c344f', class: "content" }, h("label", { key: '26c8551de719bdd99cce39b9129b59643f2aa44e', htmlFor: this.checkboxId }, this.label), this.helperText && (h("span", { key: '004ead4527953b10b4ab6d89366159d7727320b2', onClick: this.retargetInnerClicks.bind(this), class: "helper-text", id: this.helperId, role: "status" }, this.helperText)))), this.errorMessage && (h("span", { key: '0fa0dcfdf2fe61d510bfe9f0c4f8d16a341f97d7', onClick: this.retargetInnerClicks.bind(this), class: "error-text", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
121
121
|
}
|
|
122
122
|
static get is() { return "lmvz-checkbox"; }
|
|
123
123
|
static get encapsulation() { return "scoped"; }
|
|
@@ -48,7 +48,7 @@ export class LmvzChip extends ReactiveControllerHost {
|
|
|
48
48
|
}
|
|
49
49
|
}, 500);
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '2dcc9ccddd24f1db7ec65aeed24a1646cee80c76', type: this.type, size: this.size }, h("slot", { key: '756d785d9bdfdaba8c35641afee0743ff343a184', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), h("span", { key: '3df490bd3149acca605da7d7910be11b80585adf', class: "content-overflow-wrapper" }, h("slot", { key: '5c252427faffaea5a95618df4afced110ff15703', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), h("slot", { key: '493c1ecd319d9afe0896339320cad67aa37289ab', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "lmvz-chip"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -441,13 +441,13 @@ export class LmvzDatepicker {
|
|
|
441
441
|
render() {
|
|
442
442
|
const validationLabels = getValidationLabels(this.locale);
|
|
443
443
|
const popoverLabel = this.label ? `${this.label} ${validationLabels.popoverSuffix}` : undefined;
|
|
444
|
-
return (h(Host, { key: '
|
|
444
|
+
return (h(Host, { key: '55c1293d79c3c9a1ca591e81c693797194498967' }, h("lmvz-input", { key: '054528d324a2fd99802659a41796da362412bcd9', ref: (el) => {
|
|
445
445
|
const wasUnset = !this.inputEl;
|
|
446
446
|
this.inputEl = el;
|
|
447
447
|
if (wasUnset && this.inputEl) {
|
|
448
448
|
forceUpdate(this);
|
|
449
449
|
}
|
|
450
|
-
}, label: this.label ?? '', placeholder: this.effectivePlaceholder, helperText: this.helperText, errorMessage: this.errorMessage, error: this.nativeError, disabled: this.disabled, readonly: this.readonly, required: this.required, value: this.inputText, autocomplete: "off", onLmvzInput: this.handleInputTextChange, onKeyDown: this.handleInputKeydown }, h("lmvz-icon", { key: '
|
|
450
|
+
}, label: this.label ?? '', placeholder: this.effectivePlaceholder, helperText: this.helperText, errorMessage: this.errorMessage, error: this.nativeError, disabled: this.disabled, readonly: this.readonly, required: this.required, value: this.inputText, autocomplete: "off", onLmvzInput: this.handleInputTextChange, onKeyDown: this.handleInputKeydown }, h("lmvz-icon", { key: 'e109a59ba562ff0db88442119725cb38cc01ed6f', slot: "after-input", icon: CALENDAR_ICON, "aria-hidden": "true" })), h("lmvz-popover", { key: 'df9046ff443232be3036fbb9ad2646681e7be697', anchor: this.inputEl, open: this.open && !this.disabled, autoFocus: false, size: "md", label: popoverLabel, onLmvzOpen: this.handlePopoverOpen, onLmvzClose: this.handlePopoverClose }, h("div", { key: 'eea613edc10157650e2e11698afdcc85353bff49', part: "panel", class: "datepicker-panel" }, this.renderHeader(), this.renderGrid()))));
|
|
451
451
|
}
|
|
452
452
|
static get is() { return "lmvz-datepicker"; }
|
|
453
453
|
static get encapsulation() { return "shadow"; }
|
|
@@ -87,7 +87,7 @@ export class LmvzHeader extends ReactiveControllerHost {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '427f1fe61ea8809a17dc08518c3dca7218cd2c9b', onFocus: this.delegateFocus.bind(this) }, h("div", { key: 'b95c5d269c18001592b4ea853b9c945eeedfda07', class: "brand" }, h("slot", { key: 'd856c174220f6e17b1aa977745bd057f7ca12625', name: "brand" }, h("img", { key: '554896aadccb818f06d01ad88f9be96a1afa615a', id: "fallback-logo-lmvz", src: logo, alt: "Lehrmittelverlag Z\u00FCrich" }))), h("nav", { key: '414d208fe60eb4dd0c1400727b4198b81fc4a041', "aria-label": "Hauptnavigation" }, h("div", { key: '608ea0c8ddcfef024505505ae7f91f644bfc1298', role: "menubar", class: "primary-menubar" }, h("slot", { key: 'b5de644c07b4ef809c7afa377bed5e48356fc93a', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), h("div", { key: 'a6e308da89df8b705a0d03218778bc36fb0cbaf2', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, h("slot", { key: 'cf78a68329eadb96ad656ed81d8b3c72db582fc9', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), h("div", { key: 'f7a00431635969cd0f3b29e52d002ec67c8dae04', class: "actions" }, h("slot", { key: '6ed3b3d6ef85646742f0a2cf5267464f06e20a05', name: "actions" }))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "lmvz-header"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class LmvzIcon extends ReactiveControllerHost {
|
|
|
57
57
|
super.componentDidRender();
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return h(Host, { key: '
|
|
60
|
+
return h(Host, { key: '0dd3824c964cb73ba4758afbb8768535b7bf0820', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
61
61
|
}
|
|
62
62
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
63
63
|
if (!Build.isBrowser || typeof window === 'undefined' || !window.IntersectionObserver) {
|
|
@@ -204,9 +204,9 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
204
204
|
render() {
|
|
205
205
|
const hasValue = Boolean(this.value);
|
|
206
206
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
207
|
-
return (h("div", { key: '
|
|
207
|
+
return (h("div", { key: '34535f927cceb5d28107f71a995b92f357f68df0', class: classNames('input-container', {
|
|
208
208
|
'interaction-filled': hasValue,
|
|
209
|
-
}) }, h("div", { key: '
|
|
209
|
+
}) }, h("div", { key: 'a1e6ef88163bb7c081b295f11194ffc10a0754c4', class: "input-wrapper" }, h("slot", { key: '6634e9671691bd2a18513571706028994fe27efe', name: "before-input" }), h("div", { key: 'e5299fed299b5b5a29ae9f1da71c5294f264da05', class: "label-input-group" }, h("label", { key: '21cf26ec1ef8af81f22b0333299b21268063cda4', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (h("span", { key: '2f8ab042d8a89bbfdd37c8083d83a4b5298aa447', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), h("input", { key: '35551a0a618eb2b553449e7e59b0190ff026cdb4', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onBlur: this.handleBlur, onInvalid: this.handleInvalid })), h("slot", { key: '7c8e459eefd966d4b1227e233a6c599907240545', name: "after-input" })), h("div", { key: '66a53450185cb93f3c6c98a222b1e201aa5a6d03', id: this.helperId, role: "status" }, this.helperText || null), h("div", { key: '587940e277570a5cc9bba9cfbbd1c42daa512ad1', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
210
210
|
}
|
|
211
211
|
static get is() { return "lmvz-input"; }
|
|
212
212
|
static get encapsulation() { return "scoped"; }
|
|
@@ -44,7 +44,7 @@ export class LmvzLink {
|
|
|
44
44
|
const rel = this.computeRel();
|
|
45
45
|
const iconSvg = this.type === 'external' ? EXTERNAL_SVG : ARROW_RIGHT_SVG;
|
|
46
46
|
const isBlank = this.target === '_blank';
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'af31a58caac2d4ccb4c2a72d356e85bda7c61b86' }, h("a", { key: 'c677c43497f214259863cf8306fa2d838bcd9bef', href: this.computeHref(), target: this.target, rel: rel }, h("slot", { key: '63f18a9089a6864c513c3ef01c68268a6b0dbd60' }), h("lmvz-icon", { key: '115472b9eda8f55c27bc551a9b1988e9086b501a', "aria-hidden": "true", icon: iconSvg }), isBlank && h("span", { key: 'cf1d70fcb80fe0e61eeceeb41b43ab0f7211ea02', class: "sr-only" }, this.externalLabel))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "lmvz-link"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
21
21
|
this.addController(new ElementActivationController(this));
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '555ab8db190d0b80b47d903966e880aed51c31d4' }, h("slot", { key: '3987fb4644d8d2c47e936c0413e058a9221a2ad7', ref: (e) => (this.validationSlot = e) })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "lmvz-menuitem"; }
|
|
27
27
|
static get encapsulation() { return "scoped"; }
|
|
@@ -93,7 +93,7 @@ export class LmvzMessage {
|
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
95
|
const role = this.live === 'assertive' ? 'alert' : this.live === 'polite' ? 'status' : 'note';
|
|
96
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '45bba3aa5050fcc993414c5d25b436c9a78b1b67', role: role }, this.leadingIcon && h("span", { key: '936327839c37f2aac83cca9db780dda0e47c2a42', class: "leading-icon", "aria-hidden": "true", innerHTML: TYPE_SVG[this.type] }), h("span", { key: 'e05203642419ad734285495205625567e5110c5f', class: "message" }, h("slot", { key: '7ced34a5a75a83707cee108ce0e964f815feaa61', ref: (el) => (this.messageSlot = el), onSlotchange: this.handleSlotChange })), this.actionLabel && (h("lmvz-button", { key: '705cd8ff5171d05f459ce09aaa10548de8362710', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel)), this.dismissible && (h("lmvz-button", { key: '90377bfb5e8fb69ad5dff323ca88d2ba9d0c444c', variant: "tertiary", scale: "small", "aria-label": this.closeLabel, onClick: this.handleDismissClick }, h("lmvz-icon", { key: '0064004bcb5ef5d9a3bf784f110b3cf0d267017d', "aria-hidden": "true", icon: CLOSE_SM_SVG })))));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "lmvz-message"; }
|
|
99
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -223,7 +223,7 @@ export class LmvzModal extends ReactiveControllerHost {
|
|
|
223
223
|
this.hasHeader = this.hasAssignedContent(this.headerSlot);
|
|
224
224
|
};
|
|
225
225
|
render() {
|
|
226
|
-
return (h(Host, { key: '
|
|
226
|
+
return (h(Host, { key: 'eaae4e7e1ecf8fb11db7582ffa3d1461a718a8d0' }, h("dialog", { key: '11d1bdd9cd94afd82a13f5328234ad8877e9d28b', ref: (element) => (this.dialogEl = element), onCancel: this.handleDialogCancel, onClose: this.handleDialogClose, ...this.dialogAccessibilityAttributes }, h("div", { key: '1c21a9266be21246ba8cbc55ac4559f7511294ff', class: "modal-shell" }, h("header", { key: '4077ec5bd9e434d954982884ab3306fc9db6d043', class: { header: true, 'has-title': this.hasHeader } }, h("div", { key: '82476490860365ba5ed3e8f47af7a85084e01693', class: "title", id: this.dialogTitleId, hidden: !this.hasHeader }, h("slot", { key: '59dd145e07c6f310e8490ac7fa0e3d7577929a5d', name: "header", ref: (element) => (this.headerSlot = element), onSlotchange: this.handleHeaderSlotChange })), h("lmvz-button", { key: '66e53dca4eab1503f53e4d069d1e115a77d3672e', ref: (element) => (this.closeButtonEl = element), type: "button", class: "close-button", "aria-label": this.closeLabel, onLmvzActivation: this.handleCloseButtonClick, variant: "tertiary" }, h("lmvz-icon", { key: '23579ef59870459b523e4adc20df3954567b31a5', icon: closeIconSvg }))), h("div", { key: '62d2d2288ac84c945b5f0c070b3c553815572e69', class: "body" }, h("slot", { key: 'e511ff34da74c38981ee54d0e8a5019adfda2a7e' })), h("footer", { key: '1a921cf63e446f434a6686de39e8e653eb1c30c1', class: "actions", hidden: !this.buttonGroupEl?.hasActions }, h("lmvz-button-group", { key: '4280d47bb1f9bcc390253ff4286f25c4117612a2', ref: (element) => (this.buttonGroupEl = element) }, h("slot", { key: 'a4a228ee4dbb1064cc4d7d005f202d69c66b8505', name: "actions" })))))));
|
|
227
227
|
}
|
|
228
228
|
static get is() { return "lmvz-modal"; }
|
|
229
229
|
static get encapsulation() { return "shadow"; }
|
|
@@ -180,7 +180,7 @@ export class LmvzPopover {
|
|
|
180
180
|
this.closureController?.abort();
|
|
181
181
|
}
|
|
182
182
|
render() {
|
|
183
|
-
return (h(Host, { key: '
|
|
183
|
+
return (h(Host, { key: '559167785de0a69c12e436740b6b17a206f6155c', role: this.containerRole, "aria-label": this.label || undefined }, h("div", { key: 'deaeb8ac94edd8eac38748cbc01e8f335a8fe7a1', part: "container", class: `container lmvz-wrapper-card-${this.size}`, ref: (el) => (this.containerEl = el) }, h("slot", { key: '87dd843041852b3d5b8b85497c0f4e4eb6791a45', ref: (el) => (this.slotEl = el) }))));
|
|
184
184
|
}
|
|
185
185
|
static get is() { return "lmvz-popover"; }
|
|
186
186
|
static get encapsulation() { return "shadow"; }
|
|
@@ -175,7 +175,7 @@ export class LmvzRadio extends ReactiveControllerHost {
|
|
|
175
175
|
this.nativeInput?.click();
|
|
176
176
|
}
|
|
177
177
|
render() {
|
|
178
|
-
return (h(Host, { key: '
|
|
178
|
+
return (h(Host, { key: '0a3f2ee5c2aa0c27e2fc6c6482f463915a8475d1' }, h("input", { key: '707ee1a470c2a8b90dff54400490ae9366ab97ac', type: "radio", id: this.radioId, value: this.value, checked: this.checked, disabled: this.disabled, autoFocus: this.autofocus, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error ? 'true' : undefined, "aria-describedby": this.helperId, ref: (el) => (this.nativeInput = el), onChange: this.handleChange }), h("span", { key: '772a52ff4817b2332312bc597feee0de4fb3be4e', class: "circle", "aria-hidden": "true" }, this.checked && h("span", { key: '600e398709956b6cb3e95b2119268f805771f71e', class: "dot" })), h("span", { key: '446ee6d901dcbc2143f9772736746255ef2885db', class: "content" }, h("label", { key: '4ec55b6be95c847d564ec8dfff3486068f44580c', htmlFor: this.radioId }, this.label), h("span", { key: '678dcd677d22fb2c6c8983be8cb69100fc396378', onClick: this.retargetInnerClicks.bind(this), "aria-live": "polite", class: "helper-text", id: this.helperId }, this.helperText))));
|
|
179
179
|
}
|
|
180
180
|
static get is() { return "lmvz-radio"; }
|
|
181
181
|
static get encapsulation() { return "scoped"; }
|
|
@@ -345,7 +345,7 @@ export class LmvzSelect extends ReactiveControllerHost {
|
|
|
345
345
|
const hasValue = this.hasValue;
|
|
346
346
|
const shouldShowLabel = hasValue;
|
|
347
347
|
const showChips = this.multiple && hasValue;
|
|
348
|
-
return (h(Host, { key: '
|
|
348
|
+
return (h(Host, { key: 'bcb5531eeb0c12cfebb0aacf01837004d95ab651' }, h("div", { key: '0df56d60126a321bc3e5070ecbacd29ef0653cea', class: hasValue ? 'select-wrapper has-value' : 'select-wrapper' }, h("label", { key: '9e0dcdb5134b85b38ec41c2c83a70e8f4aea9429', htmlFor: this.triggerId, class: shouldShowLabel ? 'floating-label' : 'assistive-label', onMouseDown: (event) => event.preventDefault(), onClick: this.handleLabelClick }, this.label, this.required && shouldShowLabel && h("span", { key: '1c4a3499ef403cfff96ffd391255a3c1c175a80b', "aria-hidden": "true" }, " *")), h("div", { key: 'fe9f97ec6c476525e98efb9c2a0838697d7f2193', id: this.triggerId, ref: (el) => (this.triggerEl = el), class: "select-trigger", role: "combobox", tabIndex: this.disabled ? -1 : 0, "aria-haspopup": "listbox", "aria-expanded": String(this.isOpen), "aria-controls": this.popoverId, "aria-activedescendant": this.isOpen ? this.activeId : undefined, "aria-label": this.triggerAriaLabel, "aria-disabled": this.disabled ? 'true' : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error ? 'true' : 'false', "aria-errormessage": this.showErrorMessage ? this.errorId : undefined, "aria-describedby": this.describedBy, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeydown, onBlur: this.handleTriggerBlur }, h("span", { key: 'e769fcba8c5e31289f333dc53dcbc3a7bdce44e7' }, showChips ? this.renderChips() : hasValue ? this.selectedLabel : this.label, this.required && !hasValue && h("span", { key: 'b5e0cd9a9ad4506f058508f6ee9957debe9e1bd2', "aria-hidden": "true" }, " *")), h("span", { key: 'e07c1ba4a99b1b72144a17bff940e08f2d93db2f', "aria-hidden": "true" }, h("svg", { key: 'eaa136b668baacb7bb6a4ad2e46a0f694a5b54b9', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '70744054f8ec445361551899ad637b54ace6322f', d: "M20.3334 8.66663L12.0001 17L3.66675 8.66663", stroke: "currentColor", "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("lmvz-popover", { key: '330d09ff1d7160c1f7471b208acb8005e7ea60c7', id: this.popoverId, anchor: this.triggerId, open: this.isOpen, containerRole: "listbox", autoFocus: false, label: this.label, "aria-multiselectable": this.multiple ? 'true' : undefined, onLmvzClose: this.handlePopoverClose, size: "sm" }, this.renderOptionGroups()), h("div", { key: '88e327fdb04ae5ca89ba2a4254f9807a8a051051', class: "lmvz-select-native-options", hidden: true, "aria-hidden": "true", ref: (el) => (this.optionsSourceEl = el) }, h("slot", { key: '3988124d6358464ba531d498f2e486117fe4c3ad', onSlotchange: this.handleSlotChange }))), this.helperText && (h("div", { key: 'ffd36af1cf02a807262ff7b7df6fe4be0cb82ed9', id: this.helperId, role: "status" }, this.helperText)), this.showErrorMessage && (h("div", { key: '52d7f19bb6c7618d1ad7cd24c3c73487484d4542', id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
349
349
|
}
|
|
350
350
|
static get is() { return "lmvz-select"; }
|
|
351
351
|
static get encapsulation() { return "scoped"; }
|
|
@@ -58,7 +58,7 @@ export class LmvzSnackbar {
|
|
|
58
58
|
this.el.dispatchEvent(new CustomEvent('lmvzAction', { bubbles: false, composed: false }));
|
|
59
59
|
};
|
|
60
60
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '153859f89cb76e7119db0315208b7382ebe2ad9e', class: this.animationClass }, h("lmvz-icon", { key: 'f6a59adba28f3d0d0e50717f1d1010d7c5b391fa', icon: STATUS_SVG[this.status], size: "md", weight: "bold" }), h("span", { key: 'f0b60bd0787add320b3086841ea9c5b542c05f04', class: "message" }, this.message), this.actionLabel && (h("lmvz-button", { key: 'acb89693f29db072e98401fdb2007e149aeba044', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "lmvz-snackbar"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class LmvzSpinner {
|
|
|
4
4
|
ariaLabel;
|
|
5
5
|
render() {
|
|
6
6
|
const hasLabel = !!this.ariaLabel?.trim();
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '53d1363cc2ec0219468d7a04e7f2cfc952a85fd6', role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.ariaLabel : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, h("svg", { key: '2401cb663473e2bbce0491718ad71c2600154cd0', part: "indicator", viewBox: "0 0 16 16", "aria-hidden": "true" }, h("circle", { key: '61cbad421651f8dc7f684745a75b3249f251c8a6', pathLength: "100", cx: "8", cy: "8", r: "6" }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "lmvz-spinner"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -128,7 +128,6 @@ button:active {
|
|
|
128
128
|
opacity: 0;
|
|
129
129
|
transition: opacity 0.15s ease;
|
|
130
130
|
|
|
131
|
-
/* Horizontal: full-width bar at bottom */
|
|
132
131
|
inset-block-end: 0;
|
|
133
132
|
inset-inline: 0;
|
|
134
133
|
block-size: var(--lmvz-tab-indicator-size);
|
|
@@ -140,18 +139,6 @@ button:active {
|
|
|
140
139
|
:host([selected][has-media]) .indicator {
|
|
141
140
|
opacity: 1;
|
|
142
141
|
}
|
|
143
|
-
:host([vertical]) button {
|
|
144
|
-
border-radius: var(--lmvz-semantic-border-radius-round, 999px);
|
|
145
|
-
}
|
|
146
|
-
:host([vertical]) .indicator {
|
|
147
|
-
/* Vertical: narrow bar at inline-start edge */
|
|
148
|
-
inset-block: 0;
|
|
149
|
-
inset-inline: 0 auto;
|
|
150
|
-
inline-size: var(--lmvz-tab-indicator-size);
|
|
151
|
-
block-size: auto;
|
|
152
|
-
border-radius: 0 var(--lmvz-tab-indicator-size) var(--lmvz-tab-indicator-size) 0;
|
|
153
|
-
background: linear-gradient(to bottom, var(--lmvz-semantic-color-gradient-main-1, #0e7ab4), var(--lmvz-semantic-color-gradient-main-2, #0e7ab4));
|
|
154
|
-
}
|
|
155
142
|
::slotted(*) {
|
|
156
143
|
--lmvz-component-color: var(--lmvz-tab-color);
|
|
157
144
|
}
|
|
@@ -5,7 +5,7 @@ export class LmvzTab {
|
|
|
5
5
|
value;
|
|
6
6
|
disabled = false;
|
|
7
7
|
selected = false;
|
|
8
|
-
|
|
8
|
+
panel;
|
|
9
9
|
handleMediaSlotChange = () => {
|
|
10
10
|
this.el.toggleAttribute('has-media', (this.mediaSlotEl?.assignedElements() ?? []).length > 0);
|
|
11
11
|
};
|
|
@@ -14,7 +14,7 @@ export class LmvzTab {
|
|
|
14
14
|
this.el.dispatchEvent(new CustomEvent('lmvzTabReady', { bubbles: true, composed: false }));
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'ff3fc4218e3da14cb2caaa3bbe8cb73be8ac0c3d' }, h("button", { key: '999ad84e8d27e787ba0f6ba1146b461b9e7b6ca9', part: "button", role: "tab", disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: 0 }, h("slot", { key: '876a7431706f385f1ed7f542182f92dd386bc6f5', name: "media", ref: (el) => (this.mediaSlotEl = el), onSlotchange: this.handleMediaSlotChange }), h("span", { key: 'a0b0a0f22344678a2a6ee82dd997f24036f22ba5', class: "label" }, h("slot", { key: 'df4d11555f351a759ef69ba907d8d1b00d95a826' })), h("span", { key: '70830219e6dfa656a5ded8332f9171ad389c4ef8', "aria-hidden": "true", part: "indicator", class: "indicator" }))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "lmvz-tab"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,28 +96,24 @@ export class LmvzTab {
|
|
|
96
96
|
"attribute": "selected",
|
|
97
97
|
"defaultValue": "false"
|
|
98
98
|
},
|
|
99
|
-
"
|
|
100
|
-
"type": "
|
|
99
|
+
"panel": {
|
|
100
|
+
"type": "string",
|
|
101
101
|
"mutable": false,
|
|
102
102
|
"complexType": {
|
|
103
|
-
"original": "
|
|
104
|
-
"resolved": "
|
|
103
|
+
"original": "string",
|
|
104
|
+
"resolved": "string | undefined",
|
|
105
105
|
"references": {}
|
|
106
106
|
},
|
|
107
107
|
"required": false,
|
|
108
|
-
"optional":
|
|
108
|
+
"optional": true,
|
|
109
109
|
"docs": {
|
|
110
|
-
"tags": [
|
|
111
|
-
|
|
112
|
-
"text": "false"
|
|
113
|
-
}],
|
|
114
|
-
"text": "Vertical orientation context.\nSet by the parent `lmvz-tabs` when `orientation=\"vertical\"` \u2014 do not set manually.\nWhen true the selection indicator moves to the inline-start edge."
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "The `id` of the target `lmvz-tab-panel` this tab controls.\nWhen omitted, pairing falls back to DOM position."
|
|
115
112
|
},
|
|
116
113
|
"getter": false,
|
|
117
114
|
"setter": false,
|
|
118
115
|
"reflect": true,
|
|
119
|
-
"attribute": "
|
|
120
|
-
"defaultValue": "false"
|
|
116
|
+
"attribute": "panel"
|
|
121
117
|
}
|
|
122
118
|
};
|
|
123
119
|
}
|
|
@@ -62,11 +62,6 @@ legend {
|
|
|
62
62
|
background: none;
|
|
63
63
|
border-radius: 0;
|
|
64
64
|
}
|
|
65
|
-
/* ── Vertical orientation ────────────────────────────────────────────────── */
|
|
66
|
-
:host([orientation='vertical']) .tablist {
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
overflow: visible auto;
|
|
69
|
-
}
|
|
70
65
|
/* The panels slot renders inline; individual panels control their own display */
|
|
71
66
|
::slotted([role='tabpanel']) {
|
|
72
67
|
display: block;
|