@lmvz-ds/components 0.21.0 → 0.22.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 +6 -0
- package/assets/icons/close-sm.svg +3 -0
- package/cjs/{component-Csg9MtNK.js → component-C7cavwmZ.js} +3 -0
- package/cjs/{index-C2yDXRqP.js → index-lW-SEvL7.js} +67 -3
- package/cjs/lmvz-action.cjs.entry.js +2 -2
- package/cjs/{lmvz-button.cjs.entry.js → lmvz-button_2.cjs.entry.js} +139 -14
- package/cjs/lmvz-card.cjs.entry.js +2 -2
- package/cjs/lmvz-checkbox.cjs.entry.js +3 -3
- package/cjs/lmvz-chip.cjs.entry.js +4 -4
- package/cjs/lmvz-components.cjs.js +2 -2
- package/cjs/lmvz-header_2.cjs.entry.js +3 -3
- package/cjs/lmvz-input.cjs.entry.js +4 -4
- package/cjs/lmvz-menuitem.cjs.entry.js +3 -3
- package/cjs/lmvz-modal.cjs.entry.js +349 -0
- package/cjs/lmvz-select.cjs.entry.js +4 -4
- package/cjs/lmvz-toggle.cjs.entry.js +5 -5
- package/cjs/loader.cjs.js +2 -2
- package/cjs/{reactive-controller-host-BA4ZhjKA.js → reactive-controller-host-DnSTWHCF.js} +1 -1
- package/collection/assets/icons/close-sm.svg +3 -0
- package/collection/collection-manifest.json +1 -0
- package/collection/components/lmvz-button/lmvz-button.js +98 -10
- package/collection/components/lmvz-chip/lmvz-chip.js +2 -2
- package/collection/components/lmvz-modal/lmvz-modal.css +120 -0
- package/collection/components/lmvz-modal/lmvz-modal.js +448 -0
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.bak +2 -0
- package/components/index.js +1 -1
- package/components/lmvz-action.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-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-modal.d.ts +11 -0
- package/components/lmvz-modal.d.ts.bak +11 -0
- package/components/lmvz-modal.js +1 -0
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/p-Boj0PCdB.js +1 -0
- package/components/p-CK8cAKcB.js +1 -0
- package/components/p-Cc6dOWwS.js +1 -0
- package/components/{p-BuFx0tTm.js → p-DBc1BzQb.js} +1 -1
- package/components/p-DOTK1OW3.js +1 -0
- package/esm/{component-DIrAQ4IB.js → component-DOTK1OW3.js} +3 -0
- package/esm/{index-saW7O-EW.js → index-Aa_425iY.js} +67 -3
- package/esm/lmvz-action.entry.js +2 -2
- package/esm/{lmvz-button.entry.js → lmvz-button_2.entry.js} +139 -15
- package/esm/lmvz-card.entry.js +2 -2
- package/esm/lmvz-checkbox.entry.js +3 -3
- package/esm/lmvz-chip.entry.js +4 -4
- package/esm/lmvz-components.js +3 -3
- package/esm/lmvz-header_2.entry.js +3 -3
- package/esm/lmvz-input.entry.js +4 -4
- package/esm/lmvz-menuitem.entry.js +3 -3
- package/esm/lmvz-modal.entry.js +347 -0
- package/esm/lmvz-select.entry.js +4 -4
- package/esm/lmvz-toggle.entry.js +5 -5
- package/esm/loader.js +3 -3
- package/esm/{reactive-controller-host-DHcPpJW7.js → reactive-controller-host-lF2kXM1x.js} +1 -1
- package/hydrate/index.js +451 -26
- package/hydrate/index.mjs +451 -26
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-08a08b63.entry.js +1 -0
- package/lmvz-components/p-1b181e90.entry.js +1 -0
- package/lmvz-components/p-23fb2476.entry.js +1 -0
- package/lmvz-components/p-3846ba08.entry.js +1 -0
- package/lmvz-components/p-6bb145e4.entry.js +1 -0
- package/lmvz-components/{p-2f83d7a2.entry.js → p-7a310b1e.entry.js} +1 -1
- package/lmvz-components/p-Aa_425iY.js +2 -0
- package/lmvz-components/{p-GdMr6Qlp.js → p-DCTzMRMQ.js} +1 -1
- package/lmvz-components/p-DOTK1OW3.js +1 -0
- package/lmvz-components/p-b7940687.entry.js +1 -0
- package/lmvz-components/p-d984e118.entry.js +1 -0
- package/lmvz-components/p-db8306a5.entry.js +1 -0
- package/lmvz-components/p-ea335543.entry.js +1 -0
- package/lmvz-components/p-f8ea0eb2.entry.js +1 -0
- package/manifest.json +252 -5
- package/package.json +5 -1
- package/types/api/index.d.ts +6 -0
- package/types/components/lmvz-button/lmvz-button.d.ts +4 -0
- package/types/components/lmvz-modal/lmvz-modal.d.ts +58 -0
- package/types/components.d.ts +77 -0
- package/cjs/lmvz-icon.cjs.entry.js +0 -100
- package/components/p-C_bScbrd.js +0 -1
- package/components/p-DIrAQ4IB.js +0 -1
- package/esm/lmvz-icon.entry.js +0 -98
- package/lmvz-components/p-0f7a4236.entry.js +0 -1
- package/lmvz-components/p-32171f4f.entry.js +0 -1
- package/lmvz-components/p-400b2318.entry.js +0 -1
- package/lmvz-components/p-43e295ba.entry.js +0 -1
- package/lmvz-components/p-851969bd.entry.js +0 -1
- package/lmvz-components/p-9f9d845d.entry.js +0 -1
- package/lmvz-components/p-DIrAQ4IB.js +0 -1
- package/lmvz-components/p-a12f95da.entry.js +0 -1
- package/lmvz-components/p-ab4437dc.entry.js +0 -1
- package/lmvz-components/p-c3b7890d.entry.js +0 -1
- package/lmvz-components/p-d0a0e206.entry.js +0 -1
- package/lmvz-components/p-saW7O-EW.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -76,6 +76,9 @@ const ariaAttributes = [
|
|
|
76
76
|
];
|
|
77
77
|
const inheritAriaAttributes = (el, ignoreList) => {
|
|
78
78
|
let attributesToInherit = ariaAttributes;
|
|
79
|
+
if (ignoreList && ignoreList.length > 0) {
|
|
80
|
+
attributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));
|
|
81
|
+
}
|
|
79
82
|
return inheritAttributes(el, attributesToInherit);
|
|
80
83
|
};
|
|
81
84
|
const raf = (h) => {
|
|
@@ -179,6 +179,23 @@ var plt = {
|
|
|
179
179
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
180
180
|
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
181
181
|
};
|
|
182
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
183
|
+
var _a;
|
|
184
|
+
let supportsListenerOptions2 = false;
|
|
185
|
+
try {
|
|
186
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
187
|
+
"e",
|
|
188
|
+
null,
|
|
189
|
+
Object.defineProperty({}, "passive", {
|
|
190
|
+
get() {
|
|
191
|
+
supportsListenerOptions2 = true;
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
);
|
|
195
|
+
} catch (e) {
|
|
196
|
+
}
|
|
197
|
+
return supportsListenerOptions2;
|
|
198
|
+
})();
|
|
182
199
|
var promiseResolve = (v) => Promise.resolve(v);
|
|
183
200
|
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
184
201
|
try {
|
|
@@ -1239,9 +1256,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
1239
1256
|
return {
|
|
1240
1257
|
emit: (detail) => {
|
|
1241
1258
|
return emitEvent(elm, name, {
|
|
1242
|
-
bubbles:
|
|
1243
|
-
composed:
|
|
1244
|
-
cancelable:
|
|
1259
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1260
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1261
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1245
1262
|
detail
|
|
1246
1263
|
});
|
|
1247
1264
|
}
|
|
@@ -2053,6 +2070,13 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2053
2070
|
hostRef.$deferredConnectedCallback$ = false;
|
|
2054
2071
|
safeCall(instance, "connectedCallback", void 0, elm);
|
|
2055
2072
|
}
|
|
2073
|
+
{
|
|
2074
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2075
|
+
if (hostRef.$queuedListeners$) {
|
|
2076
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
2077
|
+
hostRef.$queuedListeners$ = void 0;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2056
2080
|
if (hostRef.$fetchedCbList$.length) {
|
|
2057
2081
|
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
2058
2082
|
}
|
|
@@ -2575,6 +2599,7 @@ var connectedCallback = (elm) => {
|
|
|
2575
2599
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
2576
2600
|
}
|
|
2577
2601
|
} else {
|
|
2602
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
2578
2603
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2579
2604
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2580
2605
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
@@ -2602,6 +2627,12 @@ var disconnectInstance = (instance, elm) => {
|
|
|
2602
2627
|
var disconnectedCallback = async (elm) => {
|
|
2603
2628
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2604
2629
|
const hostRef = getHostRef(elm);
|
|
2630
|
+
{
|
|
2631
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2632
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2633
|
+
hostRef.$rmListeners$ = void 0;
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2605
2636
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2606
2637
|
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
2607
2638
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
@@ -2657,6 +2688,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2657
2688
|
{
|
|
2658
2689
|
cmpMeta.$members$ = compactMeta[2];
|
|
2659
2690
|
}
|
|
2691
|
+
{
|
|
2692
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
2693
|
+
}
|
|
2660
2694
|
{
|
|
2661
2695
|
cmpMeta.$attrsToReflect$ = [];
|
|
2662
2696
|
}
|
|
@@ -2696,6 +2730,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2696
2730
|
}
|
|
2697
2731
|
if (!this.hasRegisteredEventListeners) {
|
|
2698
2732
|
this.hasRegisteredEventListeners = true;
|
|
2733
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2699
2734
|
}
|
|
2700
2735
|
if (appLoadFallback) {
|
|
2701
2736
|
clearTimeout(appLoadFallback);
|
|
@@ -2768,6 +2803,35 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2768
2803
|
}
|
|
2769
2804
|
endBootstrap();
|
|
2770
2805
|
};
|
|
2806
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2807
|
+
if (listeners && win.document) {
|
|
2808
|
+
listeners.map(([flags, name, method]) => {
|
|
2809
|
+
const target = elm;
|
|
2810
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
2811
|
+
const opts = hostListenerOpts(flags);
|
|
2812
|
+
plt.ael(target, name, handler, opts);
|
|
2813
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
2816
|
+
};
|
|
2817
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2818
|
+
var _a;
|
|
2819
|
+
try {
|
|
2820
|
+
{
|
|
2821
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2822
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2823
|
+
} else {
|
|
2824
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
} catch (e) {
|
|
2828
|
+
consoleError(e, hostRef.$hostElement$);
|
|
2829
|
+
}
|
|
2830
|
+
};
|
|
2831
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
2832
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
|
2833
|
+
capture: (flags & 2 /* Capture */) !== 0
|
|
2834
|
+
} : (flags & 2 /* Capture */) !== 0;
|
|
2771
2835
|
|
|
2772
2836
|
// src/runtime/nonce.ts
|
|
2773
2837
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
|
|
5
5
|
const lmvzActionCss = () => `:host{display:block}`;
|
|
6
6
|
|
|
7
7
|
const LmvzAction = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
|
-
this.actionClick = index.createEvent(this, "actionClick");
|
|
10
|
+
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
11
11
|
}
|
|
12
12
|
actionClick;
|
|
13
13
|
_onClick(event) {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
var index$1 = require('./index-Bp6Dd2i1.js');
|
|
5
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-DnSTWHCF.js');
|
|
6
6
|
var elementActivationController = require('./element-activation-controller-DC_6T0Rt.js');
|
|
7
|
-
var component = require('./component-
|
|
7
|
+
var component = require('./component-C7cavwmZ.js');
|
|
8
|
+
var svg = require('./svg-BMBduILB.js');
|
|
9
|
+
var icons = require('./icons-BQASWgk-.js');
|
|
8
10
|
require('./aria-loader-Cec1zR2g.js');
|
|
11
|
+
require('./logger-DsM6xg6V.js');
|
|
9
12
|
|
|
10
13
|
const lmvzButtonCss = () => ` @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } } :host { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; 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; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-on-active, #0e7ab4); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #0f8acc); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: contents; } ::slotted(*) { --lmvz-component-color: var(--lmvz-button-color); } `;
|
|
11
14
|
|
|
@@ -24,10 +27,13 @@ const LmvzButton = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
24
27
|
disabled = false;
|
|
25
28
|
type = 'button';
|
|
26
29
|
form;
|
|
30
|
+
formMethod;
|
|
31
|
+
name;
|
|
32
|
+
value;
|
|
27
33
|
constructor(hostRef) {
|
|
28
34
|
super();
|
|
29
35
|
index.registerInstance(this, hostRef);
|
|
30
|
-
this.lmvzActivation = index.createEvent(this, "lmvzActivation");
|
|
36
|
+
this.lmvzActivation = index.createEvent(this, "lmvzActivation", 7);
|
|
31
37
|
this.addController(new reactiveControllerHost.AriaValidationController(this));
|
|
32
38
|
this.addController(new elementActivationController.ElementActivationController(this, {
|
|
33
39
|
localHandler: this.handleClick.bind(this),
|
|
@@ -38,18 +44,46 @@ const LmvzButton = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
38
44
|
this.inheritedAttributes = component.inheritAriaAttributes(this.el);
|
|
39
45
|
super.connectedCallback();
|
|
40
46
|
}
|
|
47
|
+
disconnectedCallback() {
|
|
48
|
+
this.formButtonEl?.remove();
|
|
49
|
+
this.formButtonEl = null;
|
|
50
|
+
this.formEl = null;
|
|
51
|
+
super.disconnectedCallback();
|
|
52
|
+
}
|
|
41
53
|
renderHiddenButton() {
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
if (this.type !== 'submit') {
|
|
55
|
+
this.formButtonEl?.remove();
|
|
56
|
+
this.formButtonEl = null;
|
|
57
|
+
this.formEl = null;
|
|
44
58
|
return;
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
}
|
|
60
|
+
const formEl = component.findFormByRef(this.form, this.el);
|
|
61
|
+
if (!formEl) {
|
|
62
|
+
this.formButtonEl?.remove();
|
|
63
|
+
this.formButtonEl = null;
|
|
64
|
+
this.formEl = null;
|
|
47
65
|
return;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
66
|
+
}
|
|
67
|
+
this.formEl = formEl;
|
|
68
|
+
const formButtonEl = this.formButtonEl ?? document.createElement('button');
|
|
69
|
+
formButtonEl.type = 'submit';
|
|
70
|
+
formButtonEl.style.display = 'none';
|
|
71
|
+
formButtonEl.disabled = this.disabled;
|
|
72
|
+
formButtonEl.name = this.name ?? '';
|
|
73
|
+
formButtonEl.value = this.value ?? '';
|
|
74
|
+
if (this.formMethod) {
|
|
75
|
+
formButtonEl.setAttribute('formmethod', this.formMethod);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
formButtonEl.removeAttribute('formmethod');
|
|
79
|
+
}
|
|
80
|
+
if (this.formButtonEl !== formButtonEl) {
|
|
81
|
+
this.formButtonEl = formButtonEl;
|
|
82
|
+
}
|
|
83
|
+
if (formButtonEl.parentElement !== formEl) {
|
|
84
|
+
formButtonEl.remove();
|
|
85
|
+
formEl.appendChild(formButtonEl);
|
|
86
|
+
}
|
|
53
87
|
}
|
|
54
88
|
submitForm(ev) {
|
|
55
89
|
if (this.formEl && this.formButtonEl) {
|
|
@@ -64,10 +98,101 @@ const LmvzButton = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
64
98
|
};
|
|
65
99
|
render() {
|
|
66
100
|
this.renderHiddenButton();
|
|
67
|
-
return (index.h(index.Host, { key: '
|
|
101
|
+
return (index.h(index.Host, { key: '6c44aa8a4b40927313461b5139e88066b855dca6', "aria-disabled": this.disabled ? 'true' : null }, index.h("button", { key: '3696f0ad46a03fe9573571b46a56772def87bf53', ref: (e) => (this.validationEl = e), disabled: this.disabled, type: this.type, class: index$1.classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, index.h("slot", { key: '3ecce9c6ae978b72b14a807d93248a4566a13f4b' }))));
|
|
68
102
|
}
|
|
69
103
|
static get delegatesFocus() { return true; }
|
|
70
104
|
};
|
|
71
105
|
LmvzButton.style = lmvzButtonCss();
|
|
72
106
|
|
|
107
|
+
const lmvzIconCss = () => `.sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));--lmvz-icon-size:var(--lmvz-component-size, var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));display:inline-block;line-height:0;svg{display:block;height:var(--lmvz-icon-size);width:auto}svg path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))}}[size='sm'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))}}[size='md'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))}}[size='lg'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem))}}[size='inherit'].sc-lmvz-icon-h{svg{height:var(--lmvz-component-size, inherit)}}[weight='light'].sc-lmvz-icon-h{svg path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg path{stroke-width:2;fill:var(--lmvz-icon-color)}}`;
|
|
108
|
+
|
|
109
|
+
const LmvzIcon = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
110
|
+
intersectionObserver;
|
|
111
|
+
ariaValidationController = new reactiveControllerHost.AriaValidationController(this);
|
|
112
|
+
get el() { return index.getElement(this); }
|
|
113
|
+
validationEl;
|
|
114
|
+
icon;
|
|
115
|
+
weight = 'medium';
|
|
116
|
+
size = 'md';
|
|
117
|
+
iconset;
|
|
118
|
+
iconData;
|
|
119
|
+
visible = false;
|
|
120
|
+
ariaLabel;
|
|
121
|
+
get ariaHidden() {
|
|
122
|
+
return !this.ariaLabel;
|
|
123
|
+
}
|
|
124
|
+
constructor(hostRef) {
|
|
125
|
+
super();
|
|
126
|
+
index.registerInstance(this, hostRef);
|
|
127
|
+
this.addController(this.ariaValidationController);
|
|
128
|
+
}
|
|
129
|
+
connectedCallback() {
|
|
130
|
+
this.waitUntilVisible(() => {
|
|
131
|
+
this.visible = true;
|
|
132
|
+
this.loadIconPathData();
|
|
133
|
+
});
|
|
134
|
+
super.connectedCallback();
|
|
135
|
+
}
|
|
136
|
+
disconnectedCallback() {
|
|
137
|
+
if (this.intersectionObserver && typeof this.intersectionObserver.disconnect === 'function') {
|
|
138
|
+
this.intersectionObserver.disconnect();
|
|
139
|
+
}
|
|
140
|
+
this.intersectionObserver = undefined;
|
|
141
|
+
super.disconnectedCallback();
|
|
142
|
+
}
|
|
143
|
+
async loadIconPathData() {
|
|
144
|
+
const { icon, iconset, visible } = this;
|
|
145
|
+
if (!icon || !visible) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const maybeIcon = svg.parseSvgString(icon);
|
|
149
|
+
if (maybeIcon) {
|
|
150
|
+
this.iconData = maybeIcon;
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
this.iconData = await icons.resolveIconSvg({
|
|
154
|
+
icon,
|
|
155
|
+
iconset,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
componentDidRender() {
|
|
159
|
+
this.validationEl = this.el.querySelector('svg');
|
|
160
|
+
this.ariaValidationController.revalidateAria();
|
|
161
|
+
super.componentDidRender();
|
|
162
|
+
}
|
|
163
|
+
render() {
|
|
164
|
+
return index.h(index.Host, { key: 'e76fe28500b3545b8917ecdad590da5bc04ed38f', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
165
|
+
}
|
|
166
|
+
waitUntilVisible(callback, rootMargin = 50) {
|
|
167
|
+
if (typeof window === 'undefined' || !window.IntersectionObserver) {
|
|
168
|
+
callback();
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
172
|
+
entries.some((entry) => {
|
|
173
|
+
if (entry.isIntersecting) {
|
|
174
|
+
if (this.intersectionObserver && typeof this.intersectionObserver.disconnect === 'function') {
|
|
175
|
+
this.intersectionObserver.disconnect();
|
|
176
|
+
}
|
|
177
|
+
this.intersectionObserver = undefined;
|
|
178
|
+
callback();
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
return false;
|
|
182
|
+
});
|
|
183
|
+
}, { rootMargin: `${rootMargin}px` });
|
|
184
|
+
this.intersectionObserver.observe(this.el);
|
|
185
|
+
}
|
|
186
|
+
static get watchers() { return {
|
|
187
|
+
"icon": [{
|
|
188
|
+
"loadIconPathData": 0
|
|
189
|
+
}],
|
|
190
|
+
"iconset": [{
|
|
191
|
+
"loadIconPathData": 0
|
|
192
|
+
}]
|
|
193
|
+
}; }
|
|
194
|
+
};
|
|
195
|
+
LmvzIcon.style = lmvzIconCss();
|
|
196
|
+
|
|
73
197
|
exports.lmvz_button = LmvzButton;
|
|
198
|
+
exports.lmvz_icon = LmvzIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
function getLocationBase() {
|
|
@@ -28,7 +28,7 @@ const lmvzCardCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.componen
|
|
|
28
28
|
const LmvzCard = class {
|
|
29
29
|
constructor(hostRef) {
|
|
30
30
|
index.registerInstance(this, hostRef);
|
|
31
|
-
this.primaryAction = index.createEvent(this, "primaryAction");
|
|
31
|
+
this.primaryAction = index.createEvent(this, "primaryAction", 7);
|
|
32
32
|
}
|
|
33
33
|
cardTitle;
|
|
34
34
|
imageUrl;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
var svg = require('./svg-BMBduILB.js');
|
|
5
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-DnSTWHCF.js');
|
|
6
6
|
require('./logger-DsM6xg6V.js');
|
|
7
7
|
require('./aria-loader-Cec1zR2g.js');
|
|
8
8
|
|
|
@@ -60,7 +60,7 @@ const LmvzCheckbox = class extends reactiveControllerHost.ReactiveControllerHost
|
|
|
60
60
|
constructor(hostRef) {
|
|
61
61
|
super();
|
|
62
62
|
index.registerInstance(this, hostRef);
|
|
63
|
-
this.lmvzChange = index.createEvent(this, "lmvzChange");
|
|
63
|
+
this.lmvzChange = index.createEvent(this, "lmvzChange", 7);
|
|
64
64
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
65
65
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
66
66
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
var ds_constants = require('./ds.constants-DSnxZ3ia.js');
|
|
5
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-DnSTWHCF.js');
|
|
6
6
|
var ariaLoader = require('./aria-loader-Cec1zR2g.js');
|
|
7
7
|
|
|
8
8
|
function debounce(func, wait) {
|
|
@@ -58,7 +58,7 @@ const LmvzChip = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
58
58
|
this.checkContent();
|
|
59
59
|
}
|
|
60
60
|
checkContent = debounce(() => {
|
|
61
|
-
if (!ariaLoader.isAriaValidationEnabled)
|
|
61
|
+
if (!ariaLoader.isAriaValidationEnabled())
|
|
62
62
|
return;
|
|
63
63
|
const elements = [...(this.beforeSlot?.assignedElements() ?? []), ...(this.defaultSlot?.assignedElements() ?? []), ...(this.afterSlot?.assignedElements() ?? [])];
|
|
64
64
|
if (!elements.length) {
|
|
@@ -66,7 +66,7 @@ const LmvzChip = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
66
66
|
}
|
|
67
67
|
}, 500);
|
|
68
68
|
render() {
|
|
69
|
-
return (index.h(index.Host, { key: '
|
|
69
|
+
return (index.h(index.Host, { key: '14ee006aff40f125aef2e9a461e68e25c6ed27d6', type: this.type, size: this.size }, index.h("slot", { key: '3222c7f40b833f344aa233c13e2644d6e928bf4c', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), index.h("span", { key: '4d1c9fa87ccda9387b945444e9ac6a50703a19e5', class: "content-overflow-wrapper" }, index.h("slot", { key: '42866115b8a6c50e86663ed8934504240ee0e6fa', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), index.h("slot", { key: '890afa73be440ee7e7620a024744be08fee57b83', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
|
|
70
70
|
}
|
|
71
71
|
static get watchers() { return {
|
|
72
72
|
"type": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["lmvz-
|
|
22
|
+
return index.bootstrapLazy([["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasActions":[32],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[1],"disabled":[516],"required":[516],"error":[516],"errorMessage":[1,"error-message"],"helperText":[1,"helper-text"],"form":[1],"autofocus":[4],"checkedState":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64]},null,{"checked":[{"handleCheckedChange":0}]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-select.cjs",[[774,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"disabled":[516],"required":[516],"name":[1],"selectedLabel":[32]},null,{"value":[{"handleValueChange":0}]}]]],["lmvz-toggle.cjs",[[578,"lmvz-toggle",{"label":[1],"checked":[1540],"disabled":[516],"required":[516],"name":[1],"value":[1],"form":[1],"focusToggle":[64],"blurToggle":[64],"checkValidity":[64],"reportValidity":[64],"getInputElement":[64]},null,{"checked":[{"handleCheckedChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-button_2.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1],"formMethod":[1,"form-method"],"name":[1],"value":[1]}],[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
5
|
-
var component = require('./component-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
|
+
var reactiveControllerHost = require('./reactive-controller-host-DnSTWHCF.js');
|
|
5
|
+
var component = require('./component-C7cavwmZ.js');
|
|
6
6
|
var lmvzMenuitem_entry = require('./lmvz-menuitem.cjs.entry.js');
|
|
7
7
|
require('./aria-loader-Cec1zR2g.js');
|
|
8
8
|
require('./element-activation-controller-DC_6T0Rt.js');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
4
|
var index$1 = require('./index-Bp6Dd2i1.js');
|
|
5
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
6
|
-
var component = require('./component-
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-DnSTWHCF.js');
|
|
6
|
+
var component = require('./component-C7cavwmZ.js');
|
|
7
7
|
require('./aria-loader-Cec1zR2g.js');
|
|
8
8
|
|
|
9
9
|
const lmvzInputCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-active, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }`;
|
|
@@ -101,7 +101,7 @@ const LmvzInput = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
101
101
|
constructor(hostRef) {
|
|
102
102
|
super();
|
|
103
103
|
index.registerInstance(this, hostRef);
|
|
104
|
-
this.lmvzInput = index.createEvent(this, "lmvzInput");
|
|
104
|
+
this.lmvzInput = index.createEvent(this, "lmvzInput", 7);
|
|
105
105
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
106
106
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
107
107
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
3
|
+
var index = require('./index-lW-SEvL7.js');
|
|
4
|
+
var reactiveControllerHost = require('./reactive-controller-host-DnSTWHCF.js');
|
|
5
5
|
var elementActivationController = require('./element-activation-controller-DC_6T0Rt.js');
|
|
6
6
|
require('./aria-loader-Cec1zR2g.js');
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const LmvzMenuItem = class extends reactiveControllerHost.ReactiveControllerHost
|
|
|
23
23
|
constructor(hostRef) {
|
|
24
24
|
super();
|
|
25
25
|
index.registerInstance(this, hostRef);
|
|
26
|
-
this.lmvzActivation = index.createEvent(this, "lmvzActivation");
|
|
26
|
+
this.lmvzActivation = index.createEvent(this, "lmvzActivation", 7);
|
|
27
27
|
this.addController(new reactiveControllerHost.AriaValidationController(this, { validationTiming: 'slot' }));
|
|
28
28
|
this.addController(new elementActivationController.ElementActivationController(this));
|
|
29
29
|
}
|