@lmvz-ds/components 0.40.0 → 0.42.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/{aria-validation-controller-DKNXjnQr.js → aria-validation-controller-BR7cnyq5.js} +1 -1
- package/cjs/{ds.constants-C6eKRAEu.js → ds.constants-pI-qkOYv.js} +2 -0
- package/cjs/{index-DWy4nuyZ.js → index-BUrb__KL.js} +52 -11
- package/cjs/index.cjs.js +2 -1
- package/cjs/lmvz-action-list.cjs.entry.js +2 -2
- package/cjs/lmvz-action.cjs.entry.js +1 -1
- package/cjs/lmvz-button-group.cjs.entry.js +2 -2
- package/cjs/lmvz-button_2.cjs.entry.js +4 -4
- package/cjs/lmvz-card.cjs.entry.js +59 -15
- package/cjs/lmvz-checkbox.cjs.entry.js +3 -3
- package/cjs/lmvz-chip.cjs.entry.js +4 -4
- package/cjs/lmvz-components.cjs.js +3 -3
- package/cjs/lmvz-datepicker.cjs.entry.js +3 -3
- package/cjs/lmvz-header_2.cjs.entry.js +3 -3
- package/cjs/lmvz-input.cjs.entry.js +6 -7
- package/cjs/lmvz-link.cjs.entry.js +3 -3
- package/cjs/lmvz-menuitem.cjs.entry.js +3 -3
- package/cjs/lmvz-message.cjs.entry.js +2 -2
- package/cjs/lmvz-modal.cjs.entry.js +3 -3
- package/cjs/lmvz-popover.cjs.entry.js +2 -2
- package/cjs/lmvz-radio.cjs.entry.js +3 -3
- package/cjs/lmvz-select.cjs.entry.js +3 -3
- package/cjs/lmvz-snackbar.cjs.entry.js +2 -2
- package/cjs/lmvz-spinner.cjs.entry.js +3 -3
- package/cjs/lmvz-tab.cjs.entry.js +2 -2
- package/cjs/lmvz-tabs.cjs.entry.js +2 -2
- package/cjs/lmvz-toggle.cjs.entry.js +3 -3
- package/cjs/loader.cjs.js +2 -2
- package/collection/api/ds.constants.js +1 -0
- package/collection/api/public-utils.js +3 -0
- package/collection/collection-manifest.json +2 -3
- 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 +7 -6
- package/collection/components/lmvz-input/lmvz-input.js +14 -35
- 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 +7 -6
- package/collection/components/lmvz-tab/lmvz-tab.js +1 -1
- package/collection/components/lmvz-tabs/lmvz-tabs.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/index.js +1 -3
- package/components/index.js +1 -1
- package/components/lmvz-action-list.js +1 -1
- package/components/lmvz-action.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-button.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-CME20cTM.js +1 -0
- package/components/{p-DsTgD0_a.js → p-CPsPpCPH.js} +1 -1
- package/components/{p--mU29mrX.js → p-CUSmZDCK.js} +1 -1
- package/components/p-CbxNLroR.js +1 -0
- package/components/{p-DXFoXTse.js → p-CeGgx3Rl.js} +1 -1
- package/components/{p-DyQ1GbaN.js → p-D0S1O-Op.js} +1 -1
- package/components/{p-sACbyedu.js → p-DCFz070C.js} +1 -1
- package/components/p-DCYK_qaZ.js +1 -0
- package/components/{p-niXjuPxe.js → p-Wp9d5O3R.js} +1 -1
- package/components/{p-D_mff3n7.js → p-ctF-ydws.js} +1 -1
- package/components/{p-Bc5MM0zh.js → p-g_Ehzzvy.js} +1 -1
- package/esm/{aria-validation-controller-Dwv7n0rk.js → aria-validation-controller-uMqDgutI.js} +1 -1
- package/esm/{ds.constants-0ctLESas.js → ds.constants-Buw_s-9k.js} +2 -1
- package/esm/{index-DVab4vzV.js → index-wQ10Syko.js} +52 -11
- package/esm/index.js +1 -1
- package/esm/lmvz-action-list.entry.js +2 -2
- package/esm/lmvz-action.entry.js +1 -1
- package/esm/lmvz-button-group.entry.js +2 -2
- package/esm/lmvz-button_2.entry.js +4 -4
- package/esm/lmvz-card.entry.js +59 -15
- package/esm/lmvz-checkbox.entry.js +3 -3
- package/esm/lmvz-chip.entry.js +4 -4
- package/esm/lmvz-components.js +4 -4
- package/esm/lmvz-datepicker.entry.js +3 -3
- package/esm/lmvz-header_2.entry.js +3 -3
- package/esm/lmvz-input.entry.js +6 -7
- package/esm/lmvz-link.entry.js +3 -3
- package/esm/lmvz-menuitem.entry.js +3 -3
- package/esm/lmvz-message.entry.js +2 -2
- package/esm/lmvz-modal.entry.js +3 -3
- package/esm/lmvz-popover.entry.js +2 -2
- package/esm/lmvz-radio.entry.js +3 -3
- package/esm/lmvz-select.entry.js +3 -3
- package/esm/lmvz-snackbar.entry.js +2 -2
- package/esm/lmvz-spinner.entry.js +3 -3
- package/esm/lmvz-tab.entry.js +2 -2
- package/esm/lmvz-tabs.entry.js +2 -2
- package/esm/lmvz-toggle.entry.js +3 -3
- package/esm/loader.js +3 -3
- package/hydrate/index.js +115 -53
- package/hydrate/index.mjs +115 -53
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-01ac17f8.entry.js +1 -0
- package/lmvz-components/{p-e35f49a1.entry.js → p-11ccd914.entry.js} +1 -1
- package/lmvz-components/{p-143e9621.entry.js → p-1595cad0.entry.js} +1 -1
- package/lmvz-components/{p-7cbfbc88.entry.js → p-253e56c9.entry.js} +1 -1
- package/lmvz-components/{p-773e9d95.entry.js → p-2ae64b73.entry.js} +1 -1
- package/lmvz-components/{p-93b781ca.entry.js → p-3606c1db.entry.js} +1 -1
- package/lmvz-components/{p-f911691c.entry.js → p-3de59694.entry.js} +1 -1
- package/lmvz-components/p-457b10e1.entry.js +1 -0
- package/lmvz-components/{p-d73bb7fd.entry.js → p-5e8f0b43.entry.js} +1 -1
- package/lmvz-components/{p-8ba6ec19.entry.js → p-7a018765.entry.js} +1 -1
- package/lmvz-components/{p-335b3867.entry.js → p-7d80a49d.entry.js} +1 -1
- package/lmvz-components/{p-ebad823c.entry.js → p-84d2b2e5.entry.js} +1 -1
- package/lmvz-components/{p-Wi9d2-w9.js → p-BbeaVKMa.js} +1 -1
- package/lmvz-components/p-Buw_s-9k.js +1 -0
- package/lmvz-components/{p-41286514.entry.js → p-a2f03112.entry.js} +1 -1
- package/lmvz-components/p-adb37d60.entry.js +1 -0
- package/lmvz-components/{p-edec4d09.entry.js → p-b050450d.entry.js} +1 -1
- package/lmvz-components/{p-efd9d50e.entry.js → p-b0f3758f.entry.js} +1 -1
- package/lmvz-components/{p-f24f5207.entry.js → p-b123e33d.entry.js} +1 -1
- package/lmvz-components/{p-304c7554.entry.js → p-ddf5d866.entry.js} +1 -1
- package/lmvz-components/p-e40f174d.entry.js +1 -0
- package/lmvz-components/{p-220e455e.entry.js → p-edb35b52.entry.js} +1 -1
- package/lmvz-components/{p-87f21ac9.entry.js → p-ef6e12ee.entry.js} +1 -1
- package/lmvz-components/{p-316dd61a.entry.js → p-f6ac0f0d.entry.js} +1 -1
- package/lmvz-components/p-wQ10Syko.js +3 -0
- package/loader/index.d.ts +1 -1
- package/manifest.json +243 -158
- package/package.json +5 -1
- package/types/api/ds.constants.d.ts +1 -0
- package/types/api/ds.types.d.ts +4 -0
- package/types/api/public-utils.d.ts +8 -0
- package/types/components/lmvz-card/lmvz-card.d.ts +17 -6
- package/types/components/lmvz-icon/lmvz-icon.d.ts +1 -1
- package/types/components/lmvz-input/lmvz-input.d.ts +2 -3
- package/types/components/lmvz-spinner/lmvz-spinner.d.ts +1 -1
- package/types/components.d.ts +68 -43
- package/types/index.d.ts +1 -8
- package/types/stencil-public-runtime.d.ts +12 -0
- package/collection/integration/header-integration/header-integration.js +0 -51
- package/components/p-0ctLESas.js +0 -1
- package/components/p-DSDBThqb.js +0 -1
- package/components/p-DXhP6UeF.js +0 -1
- package/components/p-DbBJxuBm.js +0 -1
- package/lmvz-components/p-0ctLESas.js +0 -1
- package/lmvz-components/p-27e8b4fa.entry.js +0 -1
- package/lmvz-components/p-6aae1df9.entry.js +0 -1
- package/lmvz-components/p-743616c0.entry.js +0 -1
- package/lmvz-components/p-DVab4vzV.js +0 -2
- package/lmvz-components/p-c884c76e.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -136,7 +136,7 @@ const NAMESPACE = 'lmvz-components';
|
|
|
136
136
|
const BUILD = /* lmvz-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
137
137
|
|
|
138
138
|
/*
|
|
139
|
-
Stencil Hydrate Platform v4.
|
|
139
|
+
Stencil Hydrate Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
140
140
|
*/
|
|
141
141
|
var __create = Object.create;
|
|
142
142
|
var __defProp = Object.defineProperty;
|
|
@@ -477,6 +477,8 @@ var DEFAULT_DOC_DATA = {
|
|
|
477
477
|
};
|
|
478
478
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
479
479
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
480
|
+
var MAX_LAZY_LOAD_RETRIES = 3;
|
|
481
|
+
var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
|
|
480
482
|
|
|
481
483
|
// src/utils/style.ts
|
|
482
484
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -540,7 +542,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
540
542
|
slottedNodes.push(childNode);
|
|
541
543
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
542
544
|
}
|
|
543
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode
|
|
545
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
544
546
|
}
|
|
545
547
|
return slottedNodes;
|
|
546
548
|
}
|
|
@@ -782,6 +784,11 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
782
784
|
} else if (child != null && typeof child !== "boolean") {
|
|
783
785
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
784
786
|
child = String(child);
|
|
787
|
+
} else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
788
|
+
{
|
|
789
|
+
consoleError("Invalid vNode child");
|
|
790
|
+
}
|
|
791
|
+
continue;
|
|
785
792
|
}
|
|
786
793
|
if (simple && lastSimple) {
|
|
787
794
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -2009,7 +2016,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2009
2016
|
}
|
|
2010
2017
|
}
|
|
2011
2018
|
if (newValue == null || newValue === false) {
|
|
2012
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
2019
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
2013
2020
|
if (xlink) {
|
|
2014
2021
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
2015
2022
|
} else {
|
|
@@ -2026,6 +2033,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2026
2033
|
}
|
|
2027
2034
|
}
|
|
2028
2035
|
};
|
|
2036
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
2037
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
2029
2038
|
var parseClassListRegex = /\s/;
|
|
2030
2039
|
var parseClassList = (value) => {
|
|
2031
2040
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -2428,7 +2437,10 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
2428
2437
|
const slotName = childNode["s-sn"];
|
|
2429
2438
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
2430
2439
|
node = hostContentNodes[j];
|
|
2431
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] &&
|
|
2440
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
|
|
2441
|
+
// `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
|
|
2442
|
+
// would trivially "match" on every re-render and force pointless re-insertion.
|
|
2443
|
+
(!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
|
|
2432
2444
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
2433
2445
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
2434
2446
|
checkSlotFallbackVisibility = true;
|
|
@@ -2498,7 +2510,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
2498
2510
|
return newNode;
|
|
2499
2511
|
}
|
|
2500
2512
|
}
|
|
2501
|
-
if (parent.__insertBefore) {
|
|
2513
|
+
if ((parent == null ? void 0 : parent.__insertBefore)) {
|
|
2502
2514
|
return parent.__insertBefore(newNode, reference);
|
|
2503
2515
|
} else {
|
|
2504
2516
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -2926,8 +2938,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2926
2938
|
}
|
|
2927
2939
|
}
|
|
2928
2940
|
};
|
|
2929
|
-
|
|
2930
|
-
// src/runtime/proxy-component.ts
|
|
2931
2941
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2932
2942
|
var _a2;
|
|
2933
2943
|
const prototype = Cstr.prototype;
|
|
@@ -3004,10 +3014,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3004
3014
|
|
|
3005
3015
|
// src/runtime/initialize-component.ts
|
|
3006
3016
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
3017
|
+
var _a2;
|
|
3007
3018
|
let Cstr;
|
|
3008
3019
|
try {
|
|
3009
3020
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
3010
3021
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
3022
|
+
hostRef.$flags$ &= -1025 /* hasFailedLoad */;
|
|
3011
3023
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
3012
3024
|
if (bundleId) {
|
|
3013
3025
|
const CstrImport = loadModule(cmpMeta);
|
|
@@ -3019,6 +3031,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3019
3031
|
Cstr = CstrImport;
|
|
3020
3032
|
}
|
|
3021
3033
|
if (!Cstr) {
|
|
3034
|
+
hostRef.$flags$ &= -33 /* hasInitializedComponent */;
|
|
3035
|
+
hostRef.$loadRetryCount$ = ((_a2 = hostRef.$loadRetryCount$) != null ? _a2 : 0) + 1;
|
|
3036
|
+
if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
|
|
3037
|
+
hostRef.$flags$ |= 1024 /* hasFailedLoad */;
|
|
3038
|
+
}
|
|
3022
3039
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
3023
3040
|
}
|
|
3024
3041
|
if (!Cstr.isProxied) {
|
|
@@ -3090,7 +3107,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3090
3107
|
hostRef.$onRenderResolve$();
|
|
3091
3108
|
hostRef.$onRenderResolve$ = void 0;
|
|
3092
3109
|
}
|
|
3093
|
-
if (hostRef.$onReadyResolve$) {
|
|
3110
|
+
if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
|
|
3094
3111
|
hostRef.$onReadyResolve$(elm);
|
|
3095
3112
|
}
|
|
3096
3113
|
}
|
|
@@ -3149,6 +3166,8 @@ var connectedCallback = (elm) => {
|
|
|
3149
3166
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
3150
3167
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
3151
3168
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3169
|
+
} else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
|
|
3170
|
+
setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
|
|
3152
3171
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
3153
3172
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
3154
3173
|
}
|
|
@@ -6460,6 +6479,7 @@ function negate(delegate) {
|
|
|
6460
6479
|
const variants = ['primary', 'secondary', 'tertiary', 'danger'];
|
|
6461
6480
|
const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
|
|
6462
6481
|
const chipSizes = ['default', 'small'];
|
|
6482
|
+
const cardSizes = ['large', 'small'];
|
|
6463
6483
|
const linkTypes = ['internal', 'external'];
|
|
6464
6484
|
|
|
6465
6485
|
const PRIORITY_MAP = {
|
|
@@ -9009,47 +9029,91 @@ function joinPath(...parts) {
|
|
|
9009
9029
|
return parts.filter(Boolean).join('/').replace('//', '/').replace('/./', '/');
|
|
9010
9030
|
}
|
|
9011
9031
|
|
|
9012
|
-
const lmvzCardCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('RouterBook-Regular'), local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'); font-weight: 400; } @font-face { font-family: Router; src: local('RouterMedium-Regular'), local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'); font-weight: 500; } @font-face { font-family: Router; src: local('RouterBold-Regular'), local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'); font-weight: 700; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } *[hidden] { display: none !important; } hr { height: 0; border: none; margin: var(--lmvz-dimension-8-4, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)) 0; border-top: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-subtle, #f0f0f0); } fieldset { border: none; margin: 0; padding: 0; } legend { padding: 0; display: block; } } .sc-lmvz-card-h { & { & { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary, #f0f0f0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-secondary, #000000)); --lmvz-button-radius: var(--lmvz-button-radius-override, var(--lmvz-component-input-radius-default, 999px)); --lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-button-padding, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)))); --lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-button-padding, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)))); --lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem))); --lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem))); --lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-md-strong, normal 700 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router)); --lmvz-button-border-width: var(--lmvz-button-border-width-override, 0); --lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent); display: inline-flex; align-items: center; justify-content: var(--lmvz-button-content-justification, center); gap: var(--lmvz-button-gap, var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem))); box-sizing: border-box; padding-block: var(--lmvz-button-padding-block, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))); padding-inline: var(--lmvz-button-padding-inline, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))); min-height: var(--lmvz-button-min-height, var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem))); border: var(--lmvz-button-border-width, 0) solid var(--lmvz-button-border-color, transparent); border-radius: var(--lmvz-button-radius, var(--lmvz-component-input-radius-default, 999px)); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } & > * { font: inherit; color: inherit; } &:focus-visible { outline: var(--lmvz-ds-outline, 1px solid #0e7ab4); outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)); position: relative; z-index: 1; } &:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } &:not([disabled]):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0)); } &:not([disabled]):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-active, #d4d4d4)); } &.primary { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary, #000000)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-border-width: var(--lmvz-button-border-width-override, 0); --lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent); } &.primary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-hover, #2e2e2e)); } &.primary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-active, #545454)); } &.danger { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff)); --lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419)); } &.danger:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-danger, #fbdfe0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419)); } &.danger:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-on-danger-subtle, #e8454b)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419)); } &.tertiary { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary, #000000)); } &.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-hover, #000000)); } &.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-active, #000000)); } &.small { --lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))); --lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))); --lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-sm, clamp(0.38rem, 0.31rem + 0.26vw, 0.63rem))); --lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-sm, clamp(2rem, 1.94rem + 0.26vw, 2.25rem))); --lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-sm-strong, normal 700 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5 Router)); } &.large { --lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))); --lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))); --lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-lg, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-lg, clamp(2.75rem, 2.69rem + 0.26vw, 3rem))); --lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-lg-strong, normal 700 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router)); } } display: flex; min-width: var(--lmvz-card-component-card-minwidth, 20.4375rem); max-width: var(--lmvz-card-component-card-maxwidth, 21.6875rem); flex-direction: column; align-items: flex-start; border-radius: var(--lmvz-semantic-border-radius-lg, 14px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-default, #e0e0e0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); } *.sc-lmvz-card { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); } .top.sc-lmvz-card { display: flex; padding: var(--lmvz-dimension-12-8, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); flex-direction: column; justify-content: center; align-items: center; align-self: stretch; } .bottom.sc-lmvz-card { display: flex; min-width: 150px; padding: var(--lmvz-dimension-6-4, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)) var(--lmvz-dimension-14-10, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-14-10, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-14-10, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)); flex-direction: column; align-items: flex-start; align-self: stretch; } .title.sc-lmvz-card { margin: 0; display: flex; justify-content: center; align-items: center; align-self: stretch; padding-bottom: var(--lmvz-global-s4, 4px); overflow-wrap: break-word; font: var(--lmvz-typography-heading-2xl, 500 clamp(2rem, 1.82rem + 0.78vw, 2.75rem) / 1.4 Router); } .description.sc-lmvz-card { display: flex; margin: 0; padding-bottom: var(--lmvz-component-body-sm-padding-bottom, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-items: flex-start; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); } .image-wrapper.sc-lmvz-card { aspect-ratio: 4 / 3; width: 100%; background-size: cover; background-position: center; flex: 1 0 0; align-self: stretch; border-radius: var(--lmvz-semantic-border-radius-md, 6px); } .actions.sc-lmvz-card { margin-top: var(--lmvz-component-form-wrapper-gap-y, clamp(1.13rem, 0.97rem + 0.65vw, 1.75rem)); display: flex; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-self: stretch; } button.primary.sc-lmvz-card, lmvz-button.primary.sc-lmvz-card { display: flex; justify-content: center; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); flex: 1 0 0; }`;
|
|
9032
|
+
const lmvzCardCss = () => ` @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('RouterBook-Regular'), local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'); font-weight: 400; } @font-face { font-family: Router; src: local('RouterMedium-Regular'), local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'); font-weight: 500; } @font-face { font-family: Router; src: local('RouterBold-Regular'), local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'); font-weight: 700; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } *[hidden] { display: none !important; } hr { height: 0; border: none; margin: var(--lmvz-dimension-8-4, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)) 0; border-top: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-subtle, #f0f0f0); } fieldset { border: none; margin: 0; padding: 0; } legend { padding: 0; display: block; } } :host { --lmvz-card-local-min-width: 320px; --lmvz-card-local-max-width: 360px; --lmvz-card-local-sm-width: 232px; display: flex; flex-direction: column; align-items: flex-start; min-width: var(--lmvz-card-local-min-width); max-width: var(--lmvz-card-local-max-width); border-radius: var(--lmvz-component-wrapper-md-border-radius, 18px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-subtle, #f0f0f0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); box-shadow: 0 var(--lmvz-semantic-shadow-l1-1-position-y, 2px) var(--lmvz-semantic-shadow-l1-1-blur, 4px) 0 var(--lmvz-semantic-color-shadow-l1-default, rgba(120, 120, 128, 0.08)); margin-bottom: var(--lmvz-component-card-lg-margin-bottom, clamp(1rem, 0.88rem + 0.52vw, 1.5rem)); } :host([size='small']) { width: var(--lmvz-card-local-sm-width); min-width: 0; max-width: none; border-radius: var(--lmvz-component-wrapper-sm-border-radius, 14px); margin-bottom: var(--lmvz-component-card-sm-margin-bottom, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } * { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); } .image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; align-self: stretch; border-top-left-radius: var(--lmvz-component-wrapper-md-border-radius, 18px); border-top-right-radius: var(--lmvz-component-wrapper-md-border-radius, 18px); } :host([size='small']) .image { border-top-left-radius: var(--lmvz-component-wrapper-sm-border-radius, 14px); border-top-right-radius: var(--lmvz-component-wrapper-sm-border-radius, 14px); } .content { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: var(--lmvz-component-spacing-xs, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)); padding: var(--lmvz-component-wrapper-md-padding-y, clamp(1rem, 0.88rem + 0.52vw, 1.5rem)) var(--lmvz-component-wrapper-md-padding-x, clamp(1rem, 0.88rem + 0.52vw, 1.5rem)); } :host([size='small']) .content { gap: var(--lmvz-component-spacing-2xs, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem)); padding: var(--lmvz-component-wrapper-sm-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)) var(--lmvz-component-wrapper-sm-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } .title-block { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: var(--lmvz-component-spacing-2xs, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem)); } .card-default-title { margin: 0; overflow-wrap: break-word; font: var(--lmvz-typography-heading-lg, 500 clamp(1.13rem, 1.03rem + 0.39vw, 1.5rem) / 1.5 Router); } :host([size='small']) .card-default-title { font: var(--lmvz-typography-body-lg-strong, 500 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } ::slotted([slot='card-title']) { margin: 0; overflow-wrap: break-word; } :host([size='small']) ::slotted([slot='card-title']) { font: var(--lmvz-typography-body-lg-strong, 500 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } .description { margin: 0; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } :host([size='small']) .description { font: var(--lmvz-typography-body-sm, 400 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5 Router); } slot[name='chip'] { display: contents; } .actions { display: flex; align-items: center; align-self: stretch; padding-top: var(--lmvz-component-spacing-md, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } lmvz-button.action { flex: 1 0 0; } `;
|
|
9013
9033
|
|
|
9034
|
+
const HEADING_TAGS = new Set(['HEADER', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6']);
|
|
9014
9035
|
class LmvzCard {
|
|
9015
9036
|
constructor(hostRef) {
|
|
9016
9037
|
registerInstance(this, hostRef);
|
|
9017
|
-
this.
|
|
9038
|
+
this.lmvzCardAction = createEvent(this, "lmvzCardAction", 7);
|
|
9018
9039
|
}
|
|
9040
|
+
get el() { return getElement(this); }
|
|
9041
|
+
titleSlotElement;
|
|
9042
|
+
warnedCases = new Set();
|
|
9043
|
+
size = 'large';
|
|
9019
9044
|
cardTitle;
|
|
9020
|
-
imageUrl;
|
|
9021
9045
|
description;
|
|
9022
|
-
|
|
9023
|
-
|
|
9046
|
+
imageUrl;
|
|
9047
|
+
imageAlt = '';
|
|
9048
|
+
actionLabel;
|
|
9049
|
+
lmvzCardAction;
|
|
9050
|
+
normalizeSize(value) {
|
|
9051
|
+
const normalizedSize = cardSizes.includes(value) ? value : 'large';
|
|
9052
|
+
if (normalizedSize !== this.size) {
|
|
9053
|
+
this.size = normalizedSize;
|
|
9054
|
+
}
|
|
9055
|
+
}
|
|
9056
|
+
componentWillLoad() {
|
|
9057
|
+
this.normalizeSize(this.size);
|
|
9058
|
+
}
|
|
9059
|
+
componentDidLoad() {
|
|
9060
|
+
const titleSlot = this.el.shadowRoot?.querySelector('slot[name="card-title"]');
|
|
9061
|
+
titleSlot?.addEventListener('slotchange', () => this.checkTitleContent());
|
|
9062
|
+
this.checkTitleContent();
|
|
9063
|
+
}
|
|
9024
9064
|
get fallbackImage() {
|
|
9025
|
-
return createAssetUrlSafely('card-placeholder.svg');
|
|
9065
|
+
return String(createAssetUrlSafely('card-placeholder.svg'));
|
|
9026
9066
|
}
|
|
9027
|
-
|
|
9028
|
-
this.
|
|
9067
|
+
handleActionClick = () => {
|
|
9068
|
+
this.lmvzCardAction.emit();
|
|
9069
|
+
};
|
|
9070
|
+
get slottedTitleElement() {
|
|
9071
|
+
return this.titleSlotElement?.assignedElements()?.at(0);
|
|
9072
|
+
}
|
|
9073
|
+
checkTitleContent() {
|
|
9074
|
+
if (!isAriaValidationEnabled())
|
|
9075
|
+
return;
|
|
9076
|
+
const slotted = this.slottedTitleElement;
|
|
9077
|
+
if (slotted) {
|
|
9078
|
+
const tag = slotted.tagName;
|
|
9079
|
+
if (!HEADING_TAGS.has(tag)) {
|
|
9080
|
+
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.`);
|
|
9081
|
+
}
|
|
9082
|
+
}
|
|
9083
|
+
else if (!this.cardTitle) {
|
|
9084
|
+
this.warnOnce('missing-title', '[lmvz-card] Neither a "card-title" slotted heading nor a non-empty "cardTitle" prop was supplied.');
|
|
9085
|
+
}
|
|
9029
9086
|
}
|
|
9030
|
-
|
|
9031
|
-
|
|
9087
|
+
warnOnce(key, message) {
|
|
9088
|
+
if (this.warnedCases.has(key))
|
|
9089
|
+
return;
|
|
9090
|
+
this.warnedCases.add(key);
|
|
9091
|
+
console.warn(message);
|
|
9032
9092
|
}
|
|
9033
9093
|
render() {
|
|
9034
|
-
|
|
9035
|
-
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
9036
|
-
};
|
|
9037
|
-
return (hAsync(Host, { key: '1dd819fd7c752af8d15001c08f7f60c6ea7278b9', role: "article" }, hAsync("div", { key: 'e0cc822e627b6bbe665e4faa705cc46a09bac7c6', class: "top" }, hAsync("div", { key: 'db79cb5a67ebdd6097f985e4b4bd27665b6329ef', class: "image-wrapper", style: imgStyle }, hAsync("div", { key: '90facc8595ddbbf31e3768faa8254a82ab8d3e65', class: "chip-slot" }, hAsync("slot", { key: 'cb2e6a1053aae2b2ca90c52c175e3c4174c89d23', name: "chip" })))), hAsync("div", { key: 'cb11069a329385178677e92d08044e0fe8e5b982', class: "bottom" }, hAsync("header", { key: '1e6076352124ca03de2fb13c17a565b4f492567e' }, hAsync("h2", { key: '73f11099fb751bd4f967dbe49b79763b6a8268f3', class: "title" }, this.cardTitle)), hAsync("p", { key: '36cf87b4c2004bff1e65feedd13e137d67115de3', class: "description" }, this.description), hAsync("div", { key: '6c1d82f4968ce8252307858e6ad0681274f06397', class: "actions" }, hAsync("button", { key: '0366e0caaf9235a3eaf7bfcab116e6a828fb248d', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), hAsync("button", { key: '4f435e79d75a621d6fe065471a915b55308ad15d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, hAsync("span", { key: '7dec97e0b0ca58c40fc5308cc7863acafa8c5147', class: "icon-placeholder" }, "..."))))));
|
|
9094
|
+
return (hAsync(Host, { key: '21ac0a567bb88d05d247cc3150bf2e7ce26972c5', role: "article" }, hAsync("img", { key: '6cea11ee015059d5537ab64c7cbb1655ac984cb1', class: "image", src: this.imageUrl ?? this.fallbackImage, alt: this.imageAlt, loading: "lazy", decoding: "async" }), hAsync("div", { key: 'cd29132d8268fb5a025cde5c33a858982c8eaaed', class: "content" }, hAsync("div", { key: '0d353a46cae60d81417e5280b39020b2234ad304', class: "title-block" }, hAsync("slot", { key: '4f2734a257ef877d258a717e23855f521c5132a6', name: "card-title", ref: (el) => (this.titleSlotElement = el) }, this.cardTitle && (hAsync("header", { key: '7d526caba45dde6b13bee023e60943711347258a', role: "heading", class: "card-default-title" }, this.cardTitle))), this.description && hAsync("p", { key: '18c3eac26562a592baa29d75674737d11f57beac', class: "description" }, this.description)), hAsync("slot", { key: 'd0d9c40ca8501b0fdfa9d589eeb05692892316a2', name: "chip" }), this.actionLabel && (hAsync("div", { key: '4bd5d9233c0ba1dcda6bebdeff89adbbfe37e4b1', class: "actions" }, hAsync("lmvz-button", { key: '6cefc7ad2859d457ad11b3f4edb1300ba664ef63', class: "action", variant: "secondary", scale: this.size === 'small' ? 'small' : 'default', onLmvzActivation: this.handleActionClick }, this.actionLabel))))));
|
|
9038
9095
|
}
|
|
9039
9096
|
static get assetsDirs() { return ["../../assets"]; }
|
|
9097
|
+
static get watchers() { return {
|
|
9098
|
+
"size": [{
|
|
9099
|
+
"normalizeSize": 0
|
|
9100
|
+
}]
|
|
9101
|
+
}; }
|
|
9040
9102
|
static get style() { return lmvzCardCss(); }
|
|
9041
9103
|
static get cmpMeta() { return {
|
|
9042
|
-
"$flags$":
|
|
9104
|
+
"$flags$": 777,
|
|
9043
9105
|
"$tagName$": "lmvz-card",
|
|
9044
9106
|
"$members$": {
|
|
9107
|
+
"size": [1537],
|
|
9045
9108
|
"cardTitle": [1, "card-title"],
|
|
9046
|
-
"imageUrl": [1, "image-url"],
|
|
9047
9109
|
"description": [1],
|
|
9048
|
-
"
|
|
9110
|
+
"imageUrl": [1, "image-url"],
|
|
9111
|
+
"imageAlt": [1, "image-alt"],
|
|
9112
|
+
"actionLabel": [1, "action-label"]
|
|
9049
9113
|
},
|
|
9050
9114
|
"$listeners$": undefined,
|
|
9051
9115
|
"$lazyBundleId$": "-",
|
|
9052
|
-
"$attrsToReflect$": []
|
|
9116
|
+
"$attrsToReflect$": [["size", "size"]]
|
|
9053
9117
|
}; }
|
|
9054
9118
|
}
|
|
9055
9119
|
|
|
@@ -9180,7 +9244,7 @@ class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
9180
9244
|
this.nativeError = true;
|
|
9181
9245
|
}
|
|
9182
9246
|
render() {
|
|
9183
|
-
return (hAsync(Host, { key: '
|
|
9247
|
+
return (hAsync(Host, { key: 'df48e8af0b992d4f2c564aae67dbd42b6454f2c1' }, hAsync("div", { key: 'fe1256e373ee98cc26ca9031654d4d01f10b96e7', class: "pill" }, hAsync("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 }), hAsync("span", { key: '4a6b3522aa1a43f3c0a7ff203fb5791876555954', class: "box", "aria-hidden": "true" }, this.checkedState && hAsync("span", { key: '3a857015118d911832cdaa1287cee4c63f84afb2', class: "indicator", innerHTML: CHECKMARK_SVG$1 })), hAsync("span", { key: 'aa543c4c37cf220084b3cce423e1d0e48b5c344f', class: "content" }, hAsync("label", { key: '26c8551de719bdd99cce39b9129b59643f2aa44e', htmlFor: this.checkboxId }, this.label), this.helperText && (hAsync("span", { key: '004ead4527953b10b4ab6d89366159d7727320b2', onClick: this.retargetInnerClicks.bind(this), class: "helper-text", id: this.helperId, role: "status" }, this.helperText)))), this.errorMessage && (hAsync("span", { key: '0fa0dcfdf2fe61d510bfe9f0c4f8d16a341f97d7', onClick: this.retargetInnerClicks.bind(this), class: "error-text", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
9184
9248
|
}
|
|
9185
9249
|
static get formAssociated() { return true; }
|
|
9186
9250
|
static get watchers() { return {
|
|
@@ -9281,7 +9345,7 @@ class LmvzChip extends ReactiveControllerHost {
|
|
|
9281
9345
|
}
|
|
9282
9346
|
}, 500);
|
|
9283
9347
|
render() {
|
|
9284
|
-
return (hAsync(Host, { key: '
|
|
9348
|
+
return (hAsync(Host, { key: '2dcc9ccddd24f1db7ec65aeed24a1646cee80c76', type: this.type, size: this.size }, hAsync("slot", { key: '756d785d9bdfdaba8c35641afee0743ff343a184', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), hAsync("span", { key: '3df490bd3149acca605da7d7910be11b80585adf', class: "content-overflow-wrapper" }, hAsync("slot", { key: '5c252427faffaea5a95618df4afced110ff15703', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), hAsync("slot", { key: '493c1ecd319d9afe0896339320cad67aa37289ab', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
|
|
9285
9349
|
}
|
|
9286
9350
|
static get watchers() { return {
|
|
9287
9351
|
"type": [{
|
|
@@ -12036,9 +12100,9 @@ class LmvzDatepicker {
|
|
|
12036
12100
|
render() {
|
|
12037
12101
|
const validationLabels = getValidationLabels(this.locale);
|
|
12038
12102
|
const popoverLabel = this.label ? `${this.label} ${validationLabels.popoverSuffix}` : undefined;
|
|
12039
|
-
return (hAsync(Host, { key: '
|
|
12103
|
+
return (hAsync(Host, { key: '55c1293d79c3c9a1ca591e81c693797194498967' }, hAsync("lmvz-input", { key: '054528d324a2fd99802659a41796da362412bcd9', ref: (el) => {
|
|
12040
12104
|
this.inputEl = el;
|
|
12041
|
-
}, 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 }, hAsync("lmvz-icon", { key: '
|
|
12105
|
+
}, 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 }, hAsync("lmvz-icon", { key: 'e109a59ba562ff0db88442119725cb38cc01ed6f', slot: "after-input", icon: CALENDAR_ICON, "aria-hidden": "true" })), hAsync("lmvz-popover", { key: 'df9046ff443232be3036fbb9ad2646681e7be697', anchor: this.inputEl, open: this.open && !this.disabled, autoFocus: false, size: "md", label: popoverLabel, onLmvzOpen: this.handlePopoverOpen, onLmvzClose: this.handlePopoverClose }, hAsync("div", { key: 'eea613edc10157650e2e11698afdcc85353bff49', part: "panel", class: "datepicker-panel" }, this.renderHeader(), this.renderGrid()))));
|
|
12042
12106
|
}
|
|
12043
12107
|
static get delegatesFocus() { return true; }
|
|
12044
12108
|
static get formAssociated() { return true; }
|
|
@@ -12188,7 +12252,7 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
12188
12252
|
}
|
|
12189
12253
|
}
|
|
12190
12254
|
render() {
|
|
12191
|
-
return (hAsync(Host, { key: '
|
|
12255
|
+
return (hAsync(Host, { key: '427f1fe61ea8809a17dc08518c3dca7218cd2c9b', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: 'b95c5d269c18001592b4ea853b9c945eeedfda07', class: "brand" }, hAsync("slot", { key: 'd856c174220f6e17b1aa977745bd057f7ca12625', name: "brand" }, hAsync("img", { key: '554896aadccb818f06d01ad88f9be96a1afa615a', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: '414d208fe60eb4dd0c1400727b4198b81fc4a041', "aria-label": "Hauptnavigation" }, hAsync("div", { key: '608ea0c8ddcfef024505505ae7f91f644bfc1298', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: 'b5de644c07b4ef809c7afa377bed5e48356fc93a', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: 'a6e308da89df8b705a0d03218778bc36fb0cbaf2', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: 'cf78a68329eadb96ad656ed81d8b3c72db582fc9', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: 'f7a00431635969cd0f3b29e52d002ec67c8dae04', class: "actions" }, hAsync("slot", { key: '6ed3b3d6ef85646742f0a2cf5267464f06e20a05', name: "actions" }))));
|
|
12192
12256
|
}
|
|
12193
12257
|
static get watchers() { return {
|
|
12194
12258
|
"lmvzActiveNav": [{
|
|
@@ -12223,7 +12287,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
12223
12287
|
iconset;
|
|
12224
12288
|
iconData;
|
|
12225
12289
|
visible = false;
|
|
12226
|
-
ariaLabel;
|
|
12290
|
+
ariaLabel = null;
|
|
12227
12291
|
get ariaHidden() {
|
|
12228
12292
|
return !this.ariaLabel;
|
|
12229
12293
|
}
|
|
@@ -12257,7 +12321,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
12257
12321
|
super.componentDidRender();
|
|
12258
12322
|
}
|
|
12259
12323
|
render() {
|
|
12260
|
-
return hAsync(Host, { key: '
|
|
12324
|
+
return hAsync(Host, { key: '7bf1348d1e88c5debeeb592bde76e74625a2b58b', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
12261
12325
|
}
|
|
12262
12326
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
12263
12327
|
{
|
|
@@ -12366,9 +12430,8 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
12366
12430
|
errorMessage;
|
|
12367
12431
|
autocomplete;
|
|
12368
12432
|
inputmode;
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
spellcheck;
|
|
12433
|
+
autocapitalize = null;
|
|
12434
|
+
spellcheck = null;
|
|
12372
12435
|
autofocus = false;
|
|
12373
12436
|
minlength;
|
|
12374
12437
|
maxlength;
|
|
@@ -12531,9 +12594,9 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
12531
12594
|
render() {
|
|
12532
12595
|
const hasValue = Boolean(this.value);
|
|
12533
12596
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
12534
|
-
return (hAsync("div", { key: '
|
|
12597
|
+
return (hAsync("div", { key: 'abdfa466acfad7e676fca966955fd4ae6ba231ec', class: classNames('input-container', {
|
|
12535
12598
|
'interaction-filled': hasValue,
|
|
12536
|
-
}) }, hAsync("div", { key: '
|
|
12599
|
+
}) }, hAsync("div", { key: 'deb354e87dae72df22bca98a17c542996fbd926b', class: "input-wrapper" }, hAsync("slot", { key: '513529b58c611bdf06afea01803962d0cc7a4385', name: "before-input" }), hAsync("div", { key: 'dcf1a5aa6dcb67a407225d3ace4a1369c1b72c01', class: "label-input-group" }, hAsync("label", { key: 'c47ff2479e84e13b6361fe1ebccb8ec153dcce5e', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: '03e4ac8dbbfb1f96a9b0f45600872f66d97755b7', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: '5607738d802be72657129aa7b45ae9ffde002f54', 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, autocapitalize: this.autocapitalize ?? undefined, 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 })), hAsync("slot", { key: '74b93032b4c650fea28bfd9359bba01365f7599d', name: "after-input" })), hAsync("div", { key: 'cef5ff26b3c2d3b4d9b1a069ceb784dd3a4be84a', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '5a7d0213bc76e15fb65648eb78de02a717d0f4ca', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
12537
12600
|
}
|
|
12538
12601
|
static get formAssociated() { return true; }
|
|
12539
12602
|
static get watchers() { return {
|
|
@@ -12561,7 +12624,6 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
12561
12624
|
"errorMessage": [1, "error-message"],
|
|
12562
12625
|
"autocomplete": [1],
|
|
12563
12626
|
"inputmode": [1],
|
|
12564
|
-
"autocorrect": [1],
|
|
12565
12627
|
"autocapitalize": [1],
|
|
12566
12628
|
"spellcheck": [4],
|
|
12567
12629
|
"autofocus": [4],
|
|
@@ -12640,7 +12702,7 @@ class LmvzLink {
|
|
|
12640
12702
|
const rel = this.computeRel();
|
|
12641
12703
|
const iconSvg = this.type === 'external' ? EXTERNAL_SVG : ARROW_RIGHT_SVG;
|
|
12642
12704
|
const isBlank = this.target === '_blank';
|
|
12643
|
-
return (hAsync(Host, { key: '
|
|
12705
|
+
return (hAsync(Host, { key: 'af31a58caac2d4ccb4c2a72d356e85bda7c61b86' }, hAsync("a", { key: 'c677c43497f214259863cf8306fa2d838bcd9bef', href: this.computeHref(), target: this.target, rel: rel }, hAsync("slot", { key: '63f18a9089a6864c513c3ef01c68268a6b0dbd60' }), hAsync("lmvz-icon", { key: '115472b9eda8f55c27bc551a9b1988e9086b501a', "aria-hidden": "true", icon: iconSvg }), isBlank && hAsync("span", { key: 'cf1d70fcb80fe0e61eeceeb41b43ab0f7211ea02', class: "sr-only" }, this.externalLabel))));
|
|
12644
12706
|
}
|
|
12645
12707
|
static get delegatesFocus() { return true; }
|
|
12646
12708
|
static get watchers() { return {
|
|
@@ -12688,7 +12750,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
12688
12750
|
this.addController(new ElementActivationController(this));
|
|
12689
12751
|
}
|
|
12690
12752
|
render() {
|
|
12691
|
-
return (hAsync(Host, { key: '
|
|
12753
|
+
return (hAsync(Host, { key: '555ab8db190d0b80b47d903966e880aed51c31d4' }, hAsync("slot", { key: '3987fb4644d8d2c47e936c0413e058a9221a2ad7', ref: (e) => (this.validationSlot = e) })));
|
|
12692
12754
|
}
|
|
12693
12755
|
static get style() { return lmvzMenuitemCss(); }
|
|
12694
12756
|
static get cmpMeta() { return {
|
|
@@ -12806,7 +12868,7 @@ class LmvzMessage {
|
|
|
12806
12868
|
}
|
|
12807
12869
|
render() {
|
|
12808
12870
|
const role = this.live === 'assertive' ? 'alert' : this.live === 'polite' ? 'status' : 'note';
|
|
12809
|
-
return (hAsync(Host, { key: '
|
|
12871
|
+
return (hAsync(Host, { key: '45bba3aa5050fcc993414c5d25b436c9a78b1b67', role: role }, this.leadingIcon && hAsync("span", { key: '936327839c37f2aac83cca9db780dda0e47c2a42', class: "leading-icon", "aria-hidden": "true", innerHTML: TYPE_SVG[this.type] }), hAsync("span", { key: 'e05203642419ad734285495205625567e5110c5f', class: "message" }, hAsync("slot", { key: '7ced34a5a75a83707cee108ce0e964f815feaa61', ref: (el) => (this.messageSlot = el), onSlotchange: this.handleSlotChange })), this.actionLabel && (hAsync("lmvz-button", { key: '705cd8ff5171d05f459ce09aaa10548de8362710', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel)), this.dismissible && (hAsync("lmvz-button", { key: '90377bfb5e8fb69ad5dff323ca88d2ba9d0c444c', variant: "tertiary", scale: "small", "aria-label": this.closeLabel, onClick: this.handleDismissClick }, hAsync("lmvz-icon", { key: '0064004bcb5ef5d9a3bf784f110b3cf0d267017d', "aria-hidden": "true", icon: CLOSE_SM_SVG })))));
|
|
12810
12872
|
}
|
|
12811
12873
|
static get style() { return lmvzMessageCss(); }
|
|
12812
12874
|
static get cmpMeta() { return {
|
|
@@ -13050,7 +13112,7 @@ class LmvzModal extends ReactiveControllerHost {
|
|
|
13050
13112
|
this.hasHeader = this.hasAssignedContent(this.headerSlot);
|
|
13051
13113
|
};
|
|
13052
13114
|
render() {
|
|
13053
|
-
return (hAsync(Host, { key: '
|
|
13115
|
+
return (hAsync(Host, { key: 'eaae4e7e1ecf8fb11db7582ffa3d1461a718a8d0' }, hAsync("dialog", { key: '11d1bdd9cd94afd82a13f5328234ad8877e9d28b', ref: (element) => (this.dialogEl = element), onCancel: this.handleDialogCancel, onClose: this.handleDialogClose, ...this.dialogAccessibilityAttributes }, hAsync("div", { key: '1c21a9266be21246ba8cbc55ac4559f7511294ff', class: "modal-shell" }, hAsync("header", { key: '4077ec5bd9e434d954982884ab3306fc9db6d043', class: { header: true, 'has-title': this.hasHeader } }, hAsync("div", { key: '82476490860365ba5ed3e8f47af7a85084e01693', class: "title", id: this.dialogTitleId, hidden: !this.hasHeader }, hAsync("slot", { key: '59dd145e07c6f310e8490ac7fa0e3d7577929a5d', name: "header", ref: (element) => (this.headerSlot = element), onSlotchange: this.handleHeaderSlotChange })), hAsync("lmvz-button", { key: '66e53dca4eab1503f53e4d069d1e115a77d3672e', ref: (element) => (this.closeButtonEl = element), type: "button", class: "close-button", "aria-label": this.closeLabel, onLmvzActivation: this.handleCloseButtonClick, variant: "tertiary" }, hAsync("lmvz-icon", { key: '23579ef59870459b523e4adc20df3954567b31a5', icon: closeIconSvg }))), hAsync("div", { key: '62d2d2288ac84c945b5f0c070b3c553815572e69', class: "body" }, hAsync("slot", { key: 'e511ff34da74c38981ee54d0e8a5019adfda2a7e' })), hAsync("footer", { key: '1a921cf63e446f434a6686de39e8e653eb1c30c1', class: "actions", hidden: !this.buttonGroupEl?.hasActions }, hAsync("lmvz-button-group", { key: '4280d47bb1f9bcc390253ff4286f25c4117612a2', ref: (element) => (this.buttonGroupEl = element) }, hAsync("slot", { key: 'a4a228ee4dbb1064cc4d7d005f202d69c66b8505', name: "actions" })))))));
|
|
13054
13116
|
}
|
|
13055
13117
|
static get watchers() { return {
|
|
13056
13118
|
"open": [{
|
|
@@ -14612,7 +14674,7 @@ class LmvzPopover {
|
|
|
14612
14674
|
this.closureController?.abort();
|
|
14613
14675
|
}
|
|
14614
14676
|
render() {
|
|
14615
|
-
return (hAsync(Host, { key: '
|
|
14677
|
+
return (hAsync(Host, { key: '559167785de0a69c12e436740b6b17a206f6155c', role: this.containerRole, "aria-label": this.label || undefined }, hAsync("div", { key: 'deaeb8ac94edd8eac38748cbc01e8f335a8fe7a1', part: "container", class: `container lmvz-wrapper-card-${this.size}`, ref: (el) => (this.containerEl = el) }, hAsync("slot", { key: '87dd843041852b3d5b8b85497c0f4e4eb6791a45', ref: (el) => (this.slotEl = el) }))));
|
|
14616
14678
|
}
|
|
14617
14679
|
static get watchers() { return {
|
|
14618
14680
|
"open": [{
|
|
@@ -15041,7 +15103,7 @@ class LmvzRadio extends ReactiveControllerHost {
|
|
|
15041
15103
|
this.nativeInput?.click();
|
|
15042
15104
|
}
|
|
15043
15105
|
render() {
|
|
15044
|
-
return (hAsync(Host, { key: '
|
|
15106
|
+
return (hAsync(Host, { key: '0a3f2ee5c2aa0c27e2fc6c6482f463915a8475d1' }, hAsync("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 }), hAsync("span", { key: '772a52ff4817b2332312bc597feee0de4fb3be4e', class: "circle", "aria-hidden": "true" }, this.checked && hAsync("span", { key: '600e398709956b6cb3e95b2119268f805771f71e', class: "dot" })), hAsync("span", { key: '446ee6d901dcbc2143f9772736746255ef2885db', class: "content" }, hAsync("label", { key: '4ec55b6be95c847d564ec8dfff3486068f44580c', htmlFor: this.radioId }, this.label), hAsync("span", { key: '678dcd677d22fb2c6c8983be8cb69100fc396378', onClick: this.retargetInnerClicks.bind(this), "aria-live": "polite", class: "helper-text", id: this.helperId }, this.helperText))));
|
|
15045
15107
|
}
|
|
15046
15108
|
static get formAssociated() { return true; }
|
|
15047
15109
|
static get watchers() { return {
|
|
@@ -15592,7 +15654,7 @@ class LmvzSelect extends ReactiveControllerHost {
|
|
|
15592
15654
|
const hasValue = this.hasValue;
|
|
15593
15655
|
const shouldShowLabel = hasValue;
|
|
15594
15656
|
const showChips = this.multiple && hasValue;
|
|
15595
|
-
return (hAsync(Host, { key: '
|
|
15657
|
+
return (hAsync(Host, { key: 'bcb5531eeb0c12cfebb0aacf01837004d95ab651' }, hAsync("div", { key: '0df56d60126a321bc3e5070ecbacd29ef0653cea', class: hasValue ? 'select-wrapper has-value' : 'select-wrapper' }, hAsync("label", { key: '9e0dcdb5134b85b38ec41c2c83a70e8f4aea9429', htmlFor: this.triggerId, class: shouldShowLabel ? 'floating-label' : 'assistive-label', onMouseDown: (event) => event.preventDefault(), onClick: this.handleLabelClick }, this.label, this.required && shouldShowLabel && hAsync("span", { key: '1c4a3499ef403cfff96ffd391255a3c1c175a80b', "aria-hidden": "true" }, " *")), hAsync("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 }, hAsync("span", { key: 'e769fcba8c5e31289f333dc53dcbc3a7bdce44e7' }, showChips ? this.renderChips() : hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: 'b5e0cd9a9ad4506f058508f6ee9957debe9e1bd2', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'e07c1ba4a99b1b72144a17bff940e08f2d93db2f', "aria-hidden": "true" }, hAsync("svg", { key: 'eaa136b668baacb7bb6a4ad2e46a0f694a5b54b9', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("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" })))), hAsync("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()), hAsync("div", { key: '88e327fdb04ae5ca89ba2a4254f9807a8a051051', class: "lmvz-select-native-options", hidden: true, "aria-hidden": "true", ref: (el) => (this.optionsSourceEl = el) }, hAsync("slot", { key: '3988124d6358464ba531d498f2e486117fe4c3ad', onSlotchange: this.handleSlotChange }))), this.helperText && (hAsync("div", { key: 'ffd36af1cf02a807262ff7b7df6fe4be0cb82ed9', id: this.helperId, role: "status" }, this.helperText)), this.showErrorMessage && (hAsync("div", { key: '52d7f19bb6c7618d1ad7cd24c3c73487484d4542', id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
15596
15658
|
}
|
|
15597
15659
|
static get formAssociated() { return true; }
|
|
15598
15660
|
static get watchers() { return {
|
|
@@ -15742,7 +15804,7 @@ class LmvzSnackbar {
|
|
|
15742
15804
|
this.el.dispatchEvent(new CustomEvent('lmvzAction', { bubbles: false, composed: false }));
|
|
15743
15805
|
};
|
|
15744
15806
|
render() {
|
|
15745
|
-
return (hAsync(Host, { key: '
|
|
15807
|
+
return (hAsync(Host, { key: '153859f89cb76e7119db0315208b7382ebe2ad9e', class: this.animationClass }, hAsync("lmvz-icon", { key: 'f6a59adba28f3d0d0e50717f1d1010d7c5b391fa', icon: STATUS_SVG[this.status], size: "md", weight: "bold" }), hAsync("span", { key: 'f0b60bd0787add320b3086841ea9c5b542c05f04', class: "message" }, this.message), this.actionLabel && (hAsync("lmvz-button", { key: 'acb89693f29db072e98401fdb2007e149aeba044', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel))));
|
|
15746
15808
|
}
|
|
15747
15809
|
static get watchers() { return {
|
|
15748
15810
|
"status": [{
|
|
@@ -15776,10 +15838,10 @@ class LmvzSpinner {
|
|
|
15776
15838
|
registerInstance(this, hostRef);
|
|
15777
15839
|
}
|
|
15778
15840
|
size = 'small';
|
|
15779
|
-
ariaLabel;
|
|
15841
|
+
ariaLabel = null;
|
|
15780
15842
|
render() {
|
|
15781
15843
|
const hasLabel = !!this.ariaLabel?.trim();
|
|
15782
|
-
return (hAsync(Host, { key: '
|
|
15844
|
+
return (hAsync(Host, { key: 'a13115b2357d22d28f1e21d95904193b2e5cfc3e', role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.ariaLabel : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, hAsync("svg", { key: 'b25f19f9ecb31770775b8155a4ce9c5541b558c1', part: "indicator", viewBox: "0 0 16 16", "aria-hidden": "true" }, hAsync("circle", { key: '67881efb5bbf7dbf521113ca68ace9b3d33e1b2e', pathLength: "100", cx: "8", cy: "8", r: "6" }))));
|
|
15783
15845
|
}
|
|
15784
15846
|
static get style() { return lmvzSpinnerCss(); }
|
|
15785
15847
|
static get cmpMeta() { return {
|
|
@@ -15815,7 +15877,7 @@ class LmvzTab {
|
|
|
15815
15877
|
this.el.dispatchEvent(new CustomEvent('lmvzTabReady', { bubbles: true, composed: false }));
|
|
15816
15878
|
}
|
|
15817
15879
|
render() {
|
|
15818
|
-
return (hAsync(Host, { key: '
|
|
15880
|
+
return (hAsync(Host, { key: 'ff3fc4218e3da14cb2caaa3bbe8cb73be8ac0c3d' }, hAsync("button", { key: '999ad84e8d27e787ba0f6ba1146b461b9e7b6ca9', part: "button", role: "tab", disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: 0 }, hAsync("slot", { key: '876a7431706f385f1ed7f542182f92dd386bc6f5', name: "media", ref: (el) => (this.mediaSlotEl = el), onSlotchange: this.handleMediaSlotChange }), hAsync("span", { key: 'a0b0a0f22344678a2a6ee82dd997f24036f22ba5', class: "label" }, hAsync("slot", { key: 'df4d11555f351a759ef69ba907d8d1b00d95a826' })), hAsync("span", { key: '70830219e6dfa656a5ded8332f9171ad389c4ef8', "aria-hidden": "true", part: "indicator", class: "indicator" }))));
|
|
15819
15881
|
}
|
|
15820
15882
|
static get delegatesFocus() { return true; }
|
|
15821
15883
|
static get style() { return lmvzTabCss(); }
|
|
@@ -16074,7 +16136,7 @@ class LmvzTabs extends ReactiveControllerHost {
|
|
|
16074
16136
|
this.selectTab(value);
|
|
16075
16137
|
};
|
|
16076
16138
|
render() {
|
|
16077
|
-
return (hAsync(Host, { key: '
|
|
16139
|
+
return (hAsync(Host, { key: 'd6308c13b7e185fa4d1ff8a33c03f2e0e54f55b0', onClick: this.handleTabClick, onKeydown: this.handleKeydown }, hAsync("div", { key: '319741b6ce2276d9092b22b67dabc2f1f28366c4', role: "tablist", "aria-orientation": "horizontal", class: "tablist", ref: (el) => (this.tablistEl = el) }, hAsync("slot", { key: 'bf76b7b1bdce93f47ddbf45309408b1e33a086f6', ref: (el) => (this.tabSlotEl = el) })), hAsync("div", { key: '6793f685d90ea8cb4b9862db6a93d7067fcb1d53', part: "panels-container", class: "panels-container" }, hAsync("slot", { key: '2af78356ab2727bcd044e827238b0f5a8a30f1b0', name: "panels", ref: (el) => (this.panelSlotEl = el) }))));
|
|
16078
16140
|
}
|
|
16079
16141
|
static get watchers() { return {
|
|
16080
16142
|
"value": [{
|
|
@@ -16178,7 +16240,7 @@ class LmvzToggle extends ReactiveControllerHost {
|
|
|
16178
16240
|
this.lmvzChange.emit(newChecked);
|
|
16179
16241
|
};
|
|
16180
16242
|
render() {
|
|
16181
|
-
return (hAsync(Host, { key: '
|
|
16243
|
+
return (hAsync(Host, { key: '897eea43e268eca68b5955ba823caa49508789be' }, hAsync("span", { key: '731c08e74242b06458fdfeba69d4e4aa4ae76cd1', class: "track" }, hAsync("input", { key: '3e8ee9f23bc78f2c8110c5057854d199e13755cf', type: "checkbox", role: "switch", id: this.toggleId, checked: this.checked, disabled: this.disabled, required: this.required, name: this.name, value: this.value, form: this.form, ref: (el) => (this.nativeInputElement = el), onChange: this.handleChange }), hAsync("span", { key: '8d3ec0a9bc6af91b2536865f54a1616ef8753db6', class: "thumb", "aria-hidden": "true" })), hAsync("label", { key: '121837baf11f9d086e5750b6249264888a3ced7a', htmlFor: this.toggleId }, this.label)));
|
|
16182
16244
|
}
|
|
16183
16245
|
static get formAssociated() { return true; }
|
|
16184
16246
|
static get watchers() { return {
|
|
@@ -16339,7 +16401,7 @@ var NAMESPACE = (
|
|
|
16339
16401
|
);
|
|
16340
16402
|
|
|
16341
16403
|
/*
|
|
16342
|
-
Stencil Hydrate Runner v4.
|
|
16404
|
+
Stencil Hydrate Runner v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
16343
16405
|
*/
|
|
16344
16406
|
var __create = Object.create;
|
|
16345
16407
|
var __defProp = Object.defineProperty;
|