@lmvz-ds/components 0.20.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 +12 -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 +96 -0
- 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 +2 -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.css +118 -0
- package/collection/components/lmvz-toggle/lmvz-toggle.js +358 -0
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/components/index.d.ts +4 -0
- package/components/index.d.ts.bak +4 -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.d.ts +11 -0
- package/components/lmvz-toggle.d.ts.bak +11 -0
- package/components/lmvz-toggle.js +1 -0
- 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 +94 -0
- package/esm/loader.js +3 -3
- package/esm/{reactive-controller-host-DHcPpJW7.js → reactive-controller-host-lF2kXM1x.js} +1 -1
- package/hydrate/index.js +559 -24
- package/hydrate/index.mjs +559 -24
- 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 +599 -5
- package/package.json +9 -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/lmvz-toggle/lmvz-toggle.d.ts +31 -0
- package/types/components.d.ts +196 -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-d0a0e206.entry.js +0 -1
- package/lmvz-components/p-saW7O-EW.js +0 -2
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-Aa_425iY.js';
|
|
2
2
|
import { c as classNames } from './index-BfTCfPZ1.js';
|
|
3
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-
|
|
3
|
+
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-lF2kXM1x.js';
|
|
4
4
|
import { E as ElementActivationController } from './element-activation-controller-CN0JX9-m.js';
|
|
5
|
-
import { i as inheritAriaAttributes, f as findFormByRef } from './component-
|
|
5
|
+
import { i as inheritAriaAttributes, f as findFormByRef } from './component-DOTK1OW3.js';
|
|
6
|
+
import { p as parseSvgString } from './svg-B2YoIRuh.js';
|
|
7
|
+
import { a as resolveIconSvg } from './icons-CmuFKDRz.js';
|
|
6
8
|
import './aria-loader-BVolm0lC.js';
|
|
9
|
+
import './logger-CGmJG63p.js';
|
|
7
10
|
|
|
8
11
|
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); } `;
|
|
9
12
|
|
|
@@ -22,10 +25,13 @@ const LmvzButton = class extends ReactiveControllerHost {
|
|
|
22
25
|
disabled = false;
|
|
23
26
|
type = 'button';
|
|
24
27
|
form;
|
|
28
|
+
formMethod;
|
|
29
|
+
name;
|
|
30
|
+
value;
|
|
25
31
|
constructor(hostRef) {
|
|
26
32
|
super();
|
|
27
33
|
registerInstance(this, hostRef);
|
|
28
|
-
this.lmvzActivation = createEvent(this, "lmvzActivation");
|
|
34
|
+
this.lmvzActivation = createEvent(this, "lmvzActivation", 7);
|
|
29
35
|
this.addController(new AriaValidationController(this));
|
|
30
36
|
this.addController(new ElementActivationController(this, {
|
|
31
37
|
localHandler: this.handleClick.bind(this),
|
|
@@ -36,18 +42,46 @@ const LmvzButton = class extends ReactiveControllerHost {
|
|
|
36
42
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
37
43
|
super.connectedCallback();
|
|
38
44
|
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
this.formButtonEl?.remove();
|
|
47
|
+
this.formButtonEl = null;
|
|
48
|
+
this.formEl = null;
|
|
49
|
+
super.disconnectedCallback();
|
|
50
|
+
}
|
|
39
51
|
renderHiddenButton() {
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
if (this.type !== 'submit') {
|
|
53
|
+
this.formButtonEl?.remove();
|
|
54
|
+
this.formButtonEl = null;
|
|
55
|
+
this.formEl = null;
|
|
42
56
|
return;
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
}
|
|
58
|
+
const formEl = findFormByRef(this.form, this.el);
|
|
59
|
+
if (!formEl) {
|
|
60
|
+
this.formButtonEl?.remove();
|
|
61
|
+
this.formButtonEl = null;
|
|
62
|
+
this.formEl = null;
|
|
45
63
|
return;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
64
|
+
}
|
|
65
|
+
this.formEl = formEl;
|
|
66
|
+
const formButtonEl = this.formButtonEl ?? document.createElement('button');
|
|
67
|
+
formButtonEl.type = 'submit';
|
|
68
|
+
formButtonEl.style.display = 'none';
|
|
69
|
+
formButtonEl.disabled = this.disabled;
|
|
70
|
+
formButtonEl.name = this.name ?? '';
|
|
71
|
+
formButtonEl.value = this.value ?? '';
|
|
72
|
+
if (this.formMethod) {
|
|
73
|
+
formButtonEl.setAttribute('formmethod', this.formMethod);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
formButtonEl.removeAttribute('formmethod');
|
|
77
|
+
}
|
|
78
|
+
if (this.formButtonEl !== formButtonEl) {
|
|
79
|
+
this.formButtonEl = formButtonEl;
|
|
80
|
+
}
|
|
81
|
+
if (formButtonEl.parentElement !== formEl) {
|
|
82
|
+
formButtonEl.remove();
|
|
83
|
+
formEl.appendChild(formButtonEl);
|
|
84
|
+
}
|
|
51
85
|
}
|
|
52
86
|
submitForm(ev) {
|
|
53
87
|
if (this.formEl && this.formButtonEl) {
|
|
@@ -62,10 +96,100 @@ const LmvzButton = class extends ReactiveControllerHost {
|
|
|
62
96
|
};
|
|
63
97
|
render() {
|
|
64
98
|
this.renderHiddenButton();
|
|
65
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '6c44aa8a4b40927313461b5139e88066b855dca6', "aria-disabled": this.disabled ? 'true' : null }, h("button", { key: '3696f0ad46a03fe9573571b46a56772def87bf53', ref: (e) => (this.validationEl = e), disabled: this.disabled, type: this.type, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, h("slot", { key: '3ecce9c6ae978b72b14a807d93248a4566a13f4b' }))));
|
|
66
100
|
}
|
|
67
101
|
static get delegatesFocus() { return true; }
|
|
68
102
|
};
|
|
69
103
|
LmvzButton.style = lmvzButtonCss();
|
|
70
104
|
|
|
71
|
-
|
|
105
|
+
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)}}`;
|
|
106
|
+
|
|
107
|
+
const LmvzIcon = class extends ReactiveControllerHost {
|
|
108
|
+
intersectionObserver;
|
|
109
|
+
ariaValidationController = new AriaValidationController(this);
|
|
110
|
+
get el() { return getElement(this); }
|
|
111
|
+
validationEl;
|
|
112
|
+
icon;
|
|
113
|
+
weight = 'medium';
|
|
114
|
+
size = 'md';
|
|
115
|
+
iconset;
|
|
116
|
+
iconData;
|
|
117
|
+
visible = false;
|
|
118
|
+
ariaLabel;
|
|
119
|
+
get ariaHidden() {
|
|
120
|
+
return !this.ariaLabel;
|
|
121
|
+
}
|
|
122
|
+
constructor(hostRef) {
|
|
123
|
+
super();
|
|
124
|
+
registerInstance(this, hostRef);
|
|
125
|
+
this.addController(this.ariaValidationController);
|
|
126
|
+
}
|
|
127
|
+
connectedCallback() {
|
|
128
|
+
this.waitUntilVisible(() => {
|
|
129
|
+
this.visible = true;
|
|
130
|
+
this.loadIconPathData();
|
|
131
|
+
});
|
|
132
|
+
super.connectedCallback();
|
|
133
|
+
}
|
|
134
|
+
disconnectedCallback() {
|
|
135
|
+
if (this.intersectionObserver && typeof this.intersectionObserver.disconnect === 'function') {
|
|
136
|
+
this.intersectionObserver.disconnect();
|
|
137
|
+
}
|
|
138
|
+
this.intersectionObserver = undefined;
|
|
139
|
+
super.disconnectedCallback();
|
|
140
|
+
}
|
|
141
|
+
async loadIconPathData() {
|
|
142
|
+
const { icon, iconset, visible } = this;
|
|
143
|
+
if (!icon || !visible) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const maybeIcon = parseSvgString(icon);
|
|
147
|
+
if (maybeIcon) {
|
|
148
|
+
this.iconData = maybeIcon;
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
this.iconData = await resolveIconSvg({
|
|
152
|
+
icon,
|
|
153
|
+
iconset,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
componentDidRender() {
|
|
157
|
+
this.validationEl = this.el.querySelector('svg');
|
|
158
|
+
this.ariaValidationController.revalidateAria();
|
|
159
|
+
super.componentDidRender();
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
return h(Host, { key: 'e76fe28500b3545b8917ecdad590da5bc04ed38f', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
163
|
+
}
|
|
164
|
+
waitUntilVisible(callback, rootMargin = 50) {
|
|
165
|
+
if (typeof window === 'undefined' || !window.IntersectionObserver) {
|
|
166
|
+
callback();
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
170
|
+
entries.some((entry) => {
|
|
171
|
+
if (entry.isIntersecting) {
|
|
172
|
+
if (this.intersectionObserver && typeof this.intersectionObserver.disconnect === 'function') {
|
|
173
|
+
this.intersectionObserver.disconnect();
|
|
174
|
+
}
|
|
175
|
+
this.intersectionObserver = undefined;
|
|
176
|
+
callback();
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
return false;
|
|
180
|
+
});
|
|
181
|
+
}, { rootMargin: `${rootMargin}px` });
|
|
182
|
+
this.intersectionObserver.observe(this.el);
|
|
183
|
+
}
|
|
184
|
+
static get watchers() { return {
|
|
185
|
+
"icon": [{
|
|
186
|
+
"loadIconPathData": 0
|
|
187
|
+
}],
|
|
188
|
+
"iconset": [{
|
|
189
|
+
"loadIconPathData": 0
|
|
190
|
+
}]
|
|
191
|
+
}; }
|
|
192
|
+
};
|
|
193
|
+
LmvzIcon.style = lmvzIconCss();
|
|
194
|
+
|
|
195
|
+
export { LmvzButton as lmvz_button, LmvzIcon as lmvz_icon };
|
package/esm/lmvz-card.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getAssetPath, r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { a as getAssetPath, r as registerInstance, c as createEvent, h, H as Host } from './index-Aa_425iY.js';
|
|
2
2
|
|
|
3
3
|
function getLocationBase() {
|
|
4
4
|
return import.meta?.url ?? window?.location?.origin ?? '';
|
|
@@ -25,7 +25,7 @@ const lmvzCardCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.componen
|
|
|
25
25
|
const LmvzCard = class {
|
|
26
26
|
constructor(hostRef) {
|
|
27
27
|
registerInstance(this, hostRef);
|
|
28
|
-
this.primaryAction = createEvent(this, "primaryAction");
|
|
28
|
+
this.primaryAction = createEvent(this, "primaryAction", 7);
|
|
29
29
|
}
|
|
30
30
|
cardTitle;
|
|
31
31
|
imageUrl;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-Aa_425iY.js';
|
|
2
2
|
import { t as toValidSvgStringWithFallback } from './svg-B2YoIRuh.js';
|
|
3
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-
|
|
3
|
+
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-lF2kXM1x.js';
|
|
4
4
|
import './logger-CGmJG63p.js';
|
|
5
5
|
import './aria-loader-BVolm0lC.js';
|
|
6
6
|
|
|
@@ -58,7 +58,7 @@ const LmvzCheckbox = class extends ReactiveControllerHost {
|
|
|
58
58
|
constructor(hostRef) {
|
|
59
59
|
super();
|
|
60
60
|
registerInstance(this, hostRef);
|
|
61
|
-
this.lmvzChange = createEvent(this, "lmvzChange");
|
|
61
|
+
this.lmvzChange = createEvent(this, "lmvzChange", 7);
|
|
62
62
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
63
63
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
64
64
|
}
|
package/esm/lmvz-chip.entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { g as getElement, r as registerInstance, h, H as Host } from './index-Aa_425iY.js';
|
|
2
2
|
import { a as chipTypes, c as chipSizes } from './ds.constants-Bmi89ll1.js';
|
|
3
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-
|
|
3
|
+
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-lF2kXM1x.js';
|
|
4
4
|
import { i as isAriaValidationEnabled } from './aria-loader-BVolm0lC.js';
|
|
5
5
|
|
|
6
6
|
function debounce(func, wait) {
|
|
@@ -56,7 +56,7 @@ const LmvzChip = class extends ReactiveControllerHost {
|
|
|
56
56
|
this.checkContent();
|
|
57
57
|
}
|
|
58
58
|
checkContent = debounce(() => {
|
|
59
|
-
if (!isAriaValidationEnabled)
|
|
59
|
+
if (!isAriaValidationEnabled())
|
|
60
60
|
return;
|
|
61
61
|
const elements = [...(this.beforeSlot?.assignedElements() ?? []), ...(this.defaultSlot?.assignedElements() ?? []), ...(this.afterSlot?.assignedElements() ?? [])];
|
|
62
62
|
if (!elements.length) {
|
|
@@ -64,7 +64,7 @@ const LmvzChip = class extends ReactiveControllerHost {
|
|
|
64
64
|
}
|
|
65
65
|
}, 500);
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '14ee006aff40f125aef2e9a461e68e25c6ed27d6', type: this.type, size: this.size }, h("slot", { key: '3222c7f40b833f344aa233c13e2644d6e928bf4c', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), h("span", { key: '4d1c9fa87ccda9387b945444e9ac6a50703a19e5', class: "content-overflow-wrapper" }, h("slot", { key: '42866115b8a6c50e86663ed8934504240ee0e6fa', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), h("slot", { key: '890afa73be440ee7e7620a024744be08fee57b83', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
|
|
68
68
|
}
|
|
69
69
|
static get watchers() { return {
|
|
70
70
|
"type": [{
|
package/esm/lmvz-components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-Aa_425iY.js';
|
|
2
|
+
export { s as setNonce } from './index-Aa_425iY.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["lmvz-
|
|
20
|
+
return bootstrapLazy([["lmvz-modal",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasActions":[32],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-header_2",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action",[[257,"lmvz-action"]]],["lmvz-card",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox",[[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",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-input",[[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",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-select",[[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",[[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",[[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);
|
|
21
21
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-
|
|
3
|
-
import { g as getDeepActiveElement, a as canReceiveFocus } from './component-
|
|
1
|
+
import { g as getElement, r as registerInstance, h, H as Host } from './index-Aa_425iY.js';
|
|
2
|
+
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-lF2kXM1x.js';
|
|
3
|
+
import { g as getDeepActiveElement, a as canReceiveFocus } from './component-DOTK1OW3.js';
|
|
4
4
|
export { lmvz_menuitem } from './lmvz-menuitem.entry.js';
|
|
5
5
|
import './aria-loader-BVolm0lC.js';
|
|
6
6
|
import './element-activation-controller-CN0JX9-m.js';
|
package/esm/lmvz-input.entry.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { g as getElement, r as registerInstance, c as createEvent, h } from './index-Aa_425iY.js';
|
|
2
2
|
import { c as classNames } from './index-BfTCfPZ1.js';
|
|
3
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-
|
|
4
|
-
import { c as componentOnReady } from './component-
|
|
3
|
+
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-lF2kXM1x.js';
|
|
4
|
+
import { c as componentOnReady } from './component-DOTK1OW3.js';
|
|
5
5
|
import './aria-loader-BVolm0lC.js';
|
|
6
6
|
|
|
7
7
|
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; }`;
|
|
@@ -99,7 +99,7 @@ const LmvzInput = class extends ReactiveControllerHost {
|
|
|
99
99
|
constructor(hostRef) {
|
|
100
100
|
super();
|
|
101
101
|
registerInstance(this, hostRef);
|
|
102
|
-
this.lmvzInput = createEvent(this, "lmvzInput");
|
|
102
|
+
this.lmvzInput = createEvent(this, "lmvzInput", 7);
|
|
103
103
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
104
104
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
105
105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
2
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-
|
|
1
|
+
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-Aa_425iY.js';
|
|
2
|
+
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-lF2kXM1x.js';
|
|
3
3
|
import { E as ElementActivationController } from './element-activation-controller-CN0JX9-m.js';
|
|
4
4
|
import './aria-loader-BVolm0lC.js';
|
|
5
5
|
|
|
@@ -21,7 +21,7 @@ const LmvzMenuItem = class extends ReactiveControllerHost {
|
|
|
21
21
|
constructor(hostRef) {
|
|
22
22
|
super();
|
|
23
23
|
registerInstance(this, hostRef);
|
|
24
|
-
this.lmvzActivation = createEvent(this, "lmvzActivation");
|
|
24
|
+
this.lmvzActivation = createEvent(this, "lmvzActivation", 7);
|
|
25
25
|
this.addController(new AriaValidationController(this, { validationTiming: 'slot' }));
|
|
26
26
|
this.addController(new ElementActivationController(this));
|
|
27
27
|
}
|