@lmvz-ds/components 0.15.2 → 0.17.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/dist/cjs/{Effect-CpZhfb0D.js → Effect-DdYOHaR4.js} +121 -83
- package/dist/cjs/{aria-loader-B7b45RMv.js → aria-loader-BRxRUIyi.js} +45 -10
- package/dist/cjs/{assets-BnJmIx_h.js → assets-OvQ-WUwR.js} +2 -2
- package/dist/cjs/{component-CRc6eHcV.js → component-Csg9MtNK.js} +4 -2
- package/dist/cjs/{icons-Brr4vqiE.js → icons-EHBLbidD.js} +2 -2
- package/dist/cjs/{index-QRnWYctw.js → index-BBqtydE-.js} +1 -1
- package/dist/cjs/index-Bp6Dd2i1.js +94 -0
- package/dist/cjs/{index-9ZJx0550.js → index-CH-YLRgg.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/lmvz-action.cjs.entry.js +2 -2
- package/dist/cjs/lmvz-button.cjs.entry.js +73 -0
- package/dist/cjs/lmvz-card.cjs.entry.js +3 -3
- package/dist/cjs/lmvz-chip.cjs.entry.js +2 -2
- package/dist/cjs/lmvz-components.cjs.js +3 -3
- package/dist/cjs/{lmvz-header.cjs.entry.js → lmvz-header_2.cjs.entry.js} +24 -15
- package/dist/cjs/lmvz-icon.cjs.entry.js +10 -10
- package/dist/cjs/lmvz-input.cjs.entry.js +183 -0
- package/dist/cjs/lmvz-menuitem.cjs.entry.js +7 -5
- package/dist/cjs/lmvz-select.cjs.entry.js +71 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{reactive-controller-host-Ai9l4S9S.js → reactive-controller-host-vy1TIIXv.js} +2 -2
- package/dist/collection/collection-manifest.json +14 -2
- package/dist/collection/components/lmvz-action/lmvz-action.js +1 -1
- package/dist/collection/components/lmvz-button/lmvz-button.css +2 -24
- package/dist/collection/components/lmvz-button/lmvz-button.js +2 -2
- package/dist/collection/components/lmvz-card/lmvz-card.css +2 -24
- package/dist/collection/components/lmvz-card/lmvz-card.js +3 -3
- package/dist/collection/components/lmvz-chip/lmvz-chip.js +2 -2
- package/dist/collection/components/lmvz-header/lmvz-header.js +12 -8
- package/dist/collection/components/lmvz-icon/lmvz-icon.js +7 -7
- package/dist/collection/components/lmvz-input/lmvz-input.css +2 -24
- package/dist/collection/components/lmvz-input/lmvz-input.js +31 -27
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.css +2 -24
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +4 -2
- package/dist/collection/components/lmvz-select/lmvz-select.css +3 -25
- package/dist/collection/components/lmvz-select/lmvz-select.js +4 -4
- package/dist/collection/integration/header-integration.js +3 -3
- package/dist/collection/utils/aria/list-keyboard-controller.js +6 -4
- package/dist/collection/utils/component.js +6 -4
- package/dist/components/index.js +1 -1
- package/dist/components/lmvz-action.js +1 -1
- package/dist/components/lmvz-button.js +1 -1
- package/dist/components/lmvz-card.js +1 -1
- package/dist/components/lmvz-chip.js +1 -1
- package/dist/components/lmvz-header.js +1 -1
- package/dist/components/lmvz-icon.js +1 -1
- package/dist/components/lmvz-input.js +1 -1
- package/dist/components/lmvz-menuitem.js +1 -1
- package/dist/components/lmvz-select.js +1 -1
- package/dist/components/p-BsHYIl56.js +1 -0
- package/dist/components/{p-DcMNH3fv.js → p-CKtksB0G.js} +1 -1
- package/dist/components/{p-B3JVFwO1.js → p-DQEkWkMh.js} +1 -1
- package/dist/components/p-GKEnURpp.js +1 -0
- package/dist/components/{p-DK2hpvEW.js → p-vIq2biqy.js} +1 -1
- package/dist/esm/{Effect-DyamyJqO.js → Effect-9SROYpxM.js} +121 -83
- package/dist/esm/{aria-loader-Ddn7Qz_6.js → aria-loader-JxXwTAe5.js} +45 -10
- package/dist/esm/{assets-CvV1KMMV.js → assets-CNHv_WMG.js} +1 -1
- package/dist/esm/{component-DpoTUPzl.js → component-DIrAQ4IB.js} +4 -2
- package/dist/esm/{icons-C69Um2xB.js → icons-B255FOe4.js} +2 -2
- package/dist/esm/{index-CekEw3_K.js → index-BW1YMEA3.js} +1 -1
- package/dist/esm/index-BfTCfPZ1.js +92 -0
- package/dist/esm/{index-smGPjoDX.js → index-CQb-mBBB.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/lmvz-action.entry.js +2 -2
- package/dist/esm/lmvz-button.entry.js +71 -0
- package/dist/esm/lmvz-card.entry.js +3 -3
- package/dist/esm/lmvz-chip.entry.js +2 -2
- package/dist/esm/lmvz-components.js +4 -4
- package/dist/esm/{lmvz-header.entry.js → lmvz-header_2.entry.js} +23 -15
- package/dist/esm/lmvz-icon.entry.js +10 -10
- package/dist/esm/lmvz-input.entry.js +181 -0
- package/dist/esm/lmvz-menuitem.entry.js +7 -5
- package/dist/esm/lmvz-select.entry.js +69 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{reactive-controller-host-CdAJ3t-B.js → reactive-controller-host-OhKYwMvP.js} +2 -2
- package/dist/ext-libs.d.ts +1 -0
- package/dist/lmvz-components/index.esm.js +1 -1
- package/dist/lmvz-components/lmvz-components.esm.js +1 -1
- package/dist/lmvz-components/p-150ecfb6.entry.js +1 -0
- package/dist/lmvz-components/p-22f67eff.entry.js +1 -0
- package/dist/lmvz-components/p-4530f088.entry.js +1 -0
- package/dist/lmvz-components/p-47d7ed0e.entry.js +1 -0
- package/dist/lmvz-components/p-5c3f1404.entry.js +1 -0
- package/dist/lmvz-components/p-8d51e396.entry.js +1 -0
- package/dist/lmvz-components/p-9SROYpxM.js +1 -0
- package/dist/lmvz-components/p-BfTCfPZ1.js +6 -0
- package/dist/lmvz-components/p-Bx29-tJt.js +1 -0
- package/dist/lmvz-components/{p-B7KSylv_.js → p-Cp76bcGb.js} +1 -1
- package/dist/lmvz-components/{p-cM67HC0Z.js → p-Cp7cp10e.js} +1 -1
- package/dist/lmvz-components/{p-DpoTUPzl.js → p-DIrAQ4IB.js} +1 -1
- package/dist/lmvz-components/{p-D7GrtdQF.js → p-DyO6wO4l.js} +1 -1
- package/dist/lmvz-components/p-b8926640.entry.js +1 -0
- package/dist/lmvz-components/p-b9d1953f.entry.js +1 -0
- package/dist/lmvz-components/p-d9c3f542.entry.js +1 -0
- package/dist/lmvz-components/{p-BEoSvNlI.js → p-i2508Ct1.js} +1 -1
- package/dist/manifest.json +150 -66
- package/dist/stencil.config.base.js +44 -0
- package/dist/stencil.config.dev.js +21 -0
- package/dist/stencil.config.integration.js +26 -0
- package/dist/stencil.config.js +15 -0
- package/dist/stencil.config.prod.js +29 -0
- package/dist/types/components/lmvz-action/lmvz-action.d.ts +1 -1
- package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -1
- package/dist/types/components/lmvz-header/lmvz-header.d.ts +3 -3
- package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +4 -4
- package/dist/types/components/lmvz-input/lmvz-input.d.ts +3 -3
- package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -3
- package/dist/types/components/lmvz-select/lmvz-select.d.ts +1 -1
- package/dist/types/components.d.ts +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.base.d.ts +2 -0
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.dev.d.ts +2 -0
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.integration.d.ts +2 -0
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
- package/dist/types/utils/aria/aria-validation-controller.d.ts +1 -1
- package/dist/types/utils/aria/element-activation-controller.d.ts +1 -1
- package/dist/types/utils/component.d.ts +2 -2
- package/dist/types/utils/http.d.ts +3 -3
- package/dist/types/utils/validation/svg.d.ts +1 -1
- package/hydrate/index.js +908 -441
- package/hydrate/index.mjs +908 -441
- package/package.json +33 -73
- package/readme.md +3 -3
- package/dist/cjs/lmvz-button_3.cjs.entry.js +0 -399
- package/dist/collection/utils/typing.js +0 -1
- package/dist/components/p-CSRpdnrt.js +0 -1
- package/dist/components/p-DR19QMDG.js +0 -1
- package/dist/esm/lmvz-button_3.entry.js +0 -395
- package/dist/lmvz-components/p-70ca3319.entry.js +0 -1
- package/dist/lmvz-components/p-73648317.entry.js +0 -1
- package/dist/lmvz-components/p-8ed959da.entry.js +0 -1
- package/dist/lmvz-components/p-9526c364.entry.js +0 -1
- package/dist/lmvz-components/p-9faac8f3.entry.js +0 -1
- package/dist/lmvz-components/p-D7RHrBYK.js +0 -1
- package/dist/lmvz-components/p-DyamyJqO.js +0 -1
- package/dist/lmvz-components/p-d4b68381.entry.js +0 -1
- package/dist/lmvz-components/p-ea1a9d4a.entry.js +0 -6
- package/dist/types/utils/typing.d.ts +0 -3
- /package/dist/components/{p-BaPwpeMs.js → p-CahBdGGN.js} +0 -0
- /package/dist/lmvz-components/{p-smGPjoDX.js → p-CQb-mBBB.js} +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
|
+
var index$1 = require('./index-Bp6Dd2i1.js');
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-vy1TIIXv.js');
|
|
6
|
+
var elementActivationController = require('./element-activation-controller-DC_6T0Rt.js');
|
|
7
|
+
var component = require('./component-Csg9MtNK.js');
|
|
8
|
+
require('./aria-loader-BRxRUIyi.js');
|
|
9
|
+
|
|
10
|
+
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-selected, #f1f9fe); 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, #d4d4d4); } 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
|
+
|
|
12
|
+
const LmvzButton = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
13
|
+
get el() { return index.getElement(this); }
|
|
14
|
+
validationEl;
|
|
15
|
+
inheritedAttributes = {};
|
|
16
|
+
formEl = null;
|
|
17
|
+
formButtonEl = null;
|
|
18
|
+
lmvzActivation;
|
|
19
|
+
get ti() {
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
scale = 'default';
|
|
23
|
+
variant = 'secondary';
|
|
24
|
+
disabled = false;
|
|
25
|
+
type = 'button';
|
|
26
|
+
form;
|
|
27
|
+
constructor(hostRef) {
|
|
28
|
+
super();
|
|
29
|
+
index.registerInstance(this, hostRef);
|
|
30
|
+
this.lmvzActivation = index.createEvent(this, "lmvzActivation");
|
|
31
|
+
this.addController(new reactiveControllerHost.AriaValidationController(this));
|
|
32
|
+
this.addController(new elementActivationController.ElementActivationController(this, {
|
|
33
|
+
localHandler: this.handleClick.bind(this),
|
|
34
|
+
keys: ['Enter'],
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
connectedCallback() {
|
|
38
|
+
this.inheritedAttributes = component.inheritAriaAttributes(this.el);
|
|
39
|
+
super.connectedCallback();
|
|
40
|
+
}
|
|
41
|
+
renderHiddenButton() {
|
|
42
|
+
const formEl = (this.formEl = component.findFormByRef(this.form, this.el));
|
|
43
|
+
if (!formEl)
|
|
44
|
+
return;
|
|
45
|
+
const { formButtonEl } = this;
|
|
46
|
+
if (formButtonEl !== null && formEl.contains(formButtonEl))
|
|
47
|
+
return;
|
|
48
|
+
const newFormButtonEl = (this.formButtonEl = document.createElement('button'));
|
|
49
|
+
newFormButtonEl.type = 'submit';
|
|
50
|
+
newFormButtonEl.style.display = 'none';
|
|
51
|
+
newFormButtonEl.disabled = this.disabled;
|
|
52
|
+
formEl.appendChild(newFormButtonEl);
|
|
53
|
+
}
|
|
54
|
+
submitForm(ev) {
|
|
55
|
+
if (this.formEl && this.formButtonEl) {
|
|
56
|
+
ev.preventDefault();
|
|
57
|
+
this.formButtonEl.click();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
handleClick = (ev) => {
|
|
61
|
+
if (this.type === 'submit') {
|
|
62
|
+
this.submitForm(ev);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
render() {
|
|
66
|
+
this.renderHiddenButton();
|
|
67
|
+
return (index.h(index.Host, { key: '9fb3bb6cc21e7d87fddb0313fd552e7070850881', "aria-disabled": this.disabled ? 'true' : null }, index.h("button", { key: '906117a1bb57fcc7e66a79be73959331066886be', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: index$1.classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, index.h("slot", { key: '7028560eef75c978bea0ba3931100d4a6816ba37' }))));
|
|
68
|
+
}
|
|
69
|
+
static get delegatesFocus() { return true; }
|
|
70
|
+
};
|
|
71
|
+
LmvzButton.style = lmvzButtonCss();
|
|
72
|
+
|
|
73
|
+
exports.lmvz_button = LmvzButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var assets = require('./assets-
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
|
+
var assets = require('./assets-OvQ-WUwR.js');
|
|
5
5
|
|
|
6
6
|
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('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; } } .sc-lmvz-card-h { 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-selected, #f1f9fe); 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, #d4d4d4); } 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: flex; min-width: var(--lmvz-other-component-card-minwidth, 20.4375rem); max-width: var(--lmvz-other-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.4 Router); } .top.sc-lmvz-card { display: flex; padding: var(--lmvz-dimension-8-12, 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-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, 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.94rem + 0.26vw, 2.25rem) / 1.2 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.4 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; }`;
|
|
7
7
|
|
|
@@ -28,7 +28,7 @@ const LmvzCard = class {
|
|
|
28
28
|
const imgStyle = {
|
|
29
29
|
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
30
30
|
};
|
|
31
|
-
return (index.h(index.Host, { key: '
|
|
31
|
+
return (index.h(index.Host, { key: 'fceb19eb0d7ad6c6aecfa6fbd5bb6425c7c3e312', role: "article" }, index.h("div", { key: '4cb516b5dee1f2f84f21984fa350f61fd83c771c', class: "top" }, index.h("div", { key: '713b2a3245d885a9b99f6c7d54a35053699c1be8', class: "image-wrapper", style: imgStyle }, index.h("div", { key: 'e8ea65e7f5d11a2335cab950d6bf02208d0b18a1', class: "chip-slot" }, index.h("slot", { key: 'e9a039742107fdf56216186ddcdf367c4432790b', name: "chip" })))), index.h("div", { key: '9549e46a1872e0edf298b79435d298aa1ae96a37', class: "bottom" }, index.h("header", { key: '3bbfb72ecec519d16380ae7e00da4b1ccb6f1cf3' }, index.h("h2", { key: 'f5a33e498893e61b407c10ab36c9a93b7eecf9f1', class: "title" }, this.cardTitle)), index.h("p", { key: '19709bb100d014369c836a5a7174772f2d095d2e', class: "description" }, this.description), index.h("div", { key: '06b5acab3c80cc91865f3aa39da32d42f470348e', class: "actions" }, index.h("button", { key: '4e954452ac9771359c881aa6b43f11e89e38aecf', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), index.h("button", { key: 'b6a682bf95eb26468c450bed494290565288a515', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, index.h("span", { key: '70a526d1fafd8b7051f6e7107b35d6f594e10d68', class: "icon-placeholder" }, "..."))))));
|
|
32
32
|
}
|
|
33
33
|
static get assetsDirs() { return ["../../assets"]; }
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
4
|
|
|
5
5
|
const lmvzChipCss = () => `:host{display:block}`;
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ const LmvzChip = class {
|
|
|
10
10
|
}
|
|
11
11
|
text;
|
|
12
12
|
render() {
|
|
13
|
-
return index.h(index.Host, { key: '
|
|
13
|
+
return index.h(index.Host, { key: '134d510fe3a04b989b0005bf31358149a9661cb2' }, this.text);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
LmvzChip.style = lmvzChipCss();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.43.
|
|
8
|
+
Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -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-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-button.cjs",[[785,"lmvz-button",{"ti":[2562,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1]}]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-chip.cjs",[[513,"lmvz-chip",{"text":[1]}]]],["lmvz-icon.cjs",[[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":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}]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
5
|
-
var component = require('./component-
|
|
6
|
-
require('./
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
|
+
var reactiveControllerHost = require('./reactive-controller-host-vy1TIIXv.js');
|
|
5
|
+
var component = require('./component-Csg9MtNK.js');
|
|
6
|
+
var lmvzMenuitem_entry = require('./lmvz-menuitem.cjs.entry.js');
|
|
7
|
+
require('./aria-loader-BRxRUIyi.js');
|
|
8
|
+
require('./element-activation-controller-DC_6T0Rt.js');
|
|
7
9
|
|
|
8
10
|
const logoSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iNzIiIHZpZXdCb3g9IjAgMCA0NiA3MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI3Ml80MDUpIj4KPHBhdGggZD0iTTEyLjUgMjAuNjVDMTMuMSAyMC42NSAxNC4yIDIwLjM1IDE0LjcgMjAuMzVDMTYuMSAyMC4zNSAxNy4yIDIxLjQ1IDE3LjIgMjIuODVDMTcuMiAyNC4yNSAxNi4xIDI1LjM1IDE0LjcgMjUuMzVIMi44QzEuMiAyNS4zNSAwIDI0LjE1IDAgMjIuNTVDMCAyMS45NSAwLjIgMjAuNjUgMC4yIDIwLjA1VjUuODQ5OTlDMC4yIDUuMTQ5OTkgMCAzLjk0OTk5IDAgMy4zNDk5OUMwIDEuNzQ5OTkgMS4yIDAuNTQ5OTg4IDIuOCAwLjU0OTk4OEM0LjMgMC41NDk5ODggNS42IDEuNzQ5OTkgNS42IDMuMzQ5OTlDNS42IDMuOTQ5OTkgNS40IDUuMTQ5OTkgNS40IDUuODQ5OTlWMjAuNTVIMTIuNVYyMC42NVpNMjIuMSAyMi43NUMyMi4xIDIyLjE1IDIyLjMgMjAuOTUgMjIuMyAyMC4yNVY1Ljg0OTk5QzIyLjMgNS4xNDk5OSAyMi4xIDMuOTQ5OTkgMjIuMSAzLjQ0OTk5QzIyLjEgMS45NDk5OSAyMy4yIDAuNzQ5OTg4IDI0LjYgMC43NDk5ODhIMjUuMkMyNi40IDAuNzQ5OTg4IDI3LjIgMS41NDk5OSAyNy42IDIuNjQ5OTlMMjggMy40NDk5OUwzMi45IDE0LjA1QzMzLjMgMTQuOTUgMzMuNyAxNi4wNSAzNCAxNi43NUMzNC4zIDE2LjA1IDM0LjcgMTQuOTUgMzUuMSAxNC4wNUw0MCAzLjU0OTk5TDQwLjMgMi41NDk5OUM0MC43IDEuNTQ5OTkgNDEuNSAwLjY0OTk4OCA0Mi42IDAuNjQ5OTg4SDQzLjJDNDQuNyAwLjY0OTk4OCA0NS43IDEuODQ5OTkgNDUuNyAzLjM0OTk5QzQ1LjcgMy45NDk5OSA0NS41IDUuMTQ5OTkgNDUuNSA1Ljc0OTk5VjIwLjE1QzQ1LjUgMjAuODUgNDUuNyAyMi4wNSA0NS43IDIyLjY1QzQ1LjcgMjQuMjUgNDQuNSAyNS40NSA0MyAyNS40NUM0MS40IDI1LjQ1IDQwLjMgMjQuMjUgNDAuMyAyMi42NUM0MC4zIDIxLjk1IDQwLjQgMjAuNzUgNDAuNCAyMC4xNUw0MC42IDE0LjA1QzQwLjYgMTMuMTUgNDAuNyAxMS43NSA0MC43IDEwLjY1TDM3IDE5LjA1QzM2LjcgMTkuNzUgMzYuNiAxOS45NSAzNi40IDIwLjM1QzM2IDIxLjI1IDM1LjMgMjEuODUgMzMuOSAyMS44NUMzMi41IDIxLjg1IDMxLjggMjEuMjUgMzEuNCAyMC40NUMzMS4yIDIwLjA1IDMxLjIgMTkuNzUgMzAuOCAxOS4wNUwyNyAxMC43NUMyNyAxMC43NSAyNy4xIDEzLjE1IDI3LjIgMTQuMDVMMjcuNCAyMC4xNUMyNy40IDIwLjg1IDI3LjUgMjEuOTUgMjcuNSAyMi42NUMyNy41IDI0LjI1IDI2LjQgMjUuNDUgMjQuOCAyNS40NUMyMy4zIDI1LjU1IDIyLjEgMjQuMjUgMjIuMSAyMi43NVpNMjguNyAzMi45NUMyOS4xIDMyLjk1IDMwLjIgMzMuMTUgMzAuNyAzMy4xNUg0MS44QzQyLjMgMzMuMTUgNDMuMiAzMi45NSA0My43IDMyLjk1QzQ0LjkgMzIuOTUgNDUuOCAzMy44NSA0NS44IDM1LjA1QzQ1LjggMzYuMTUgNDQuOSAzNy4xNSA0My43IDM3LjE1QzQzLjMgMzcuMTUgNDIuMyAzNi45NSA0MS44IDM2Ljk1SDMwLjhDMzAuMyAzNi45NSAyOS4yIDM3LjE1IDI4LjggMzcuMTVDMjcuNiAzNy4xNSAyNi43IDM2LjI1IDI2LjcgMzUuMDVDMjYuNiAzMy45NSAyNy41IDMyLjk1IDI4LjcgMzIuOTVaTTIuMSA2Ny4yNUMyLjUgNjcuMjUgMy42IDY3LjQ1IDQuMSA2Ny40NUgxOC41QzE5IDY3LjQ1IDE5LjkgNjcuMjUgMjAuNCA2Ny4yNUMyMS42IDY3LjI1IDIyLjUgNjguMTUgMjIuNSA2OS4zNUMyMi41IDcwLjQ1IDIxLjYgNzEuNDUgMjAuNCA3MS40NUMyMCA3MS40NSAxOSA3MS4yNSAxOC41IDcxLjI1SDQuMUMzLjYgNzEuMjUgMi41IDcxLjQ1IDIuMSA3MS40NUMwLjkgNzEuNDUgMCA3MC41NSAwIDY5LjM1QzAgNjguMjUgMC45IDY3LjI1IDIuMSA2Ny4yNVpNMjEuOSAzNS42NUMyMS45IDM1Ljk1IDIxLjggMzYuMzUgMjEuNiAzNi43NUMyMS4zIDM3LjQ1IDIwLjkgMzguMzUgMjAuNyAzOC44NUwxNC43IDU0LjY1QzE0LjUgNTUuMDUgMTQuNCA1NS41NSAxNC4yIDU2LjM1QzEzLjggNTcuNjUgMTIuNiA1OC4yNSAxMS4yIDU4LjI1SDEwLjhDOS40IDU4LjI1IDguMiA1Ny43NSA3LjggNTYuMzVDNy42IDU1LjU1IDcuNCA1NS4xNSA3LjIgNTQuNjVMMS4yIDM4Ljg1QzEgMzguMzUgMC42IDM3LjU1IDAuMiAzNi44NUMwLjEgMzYuNDUgMCAzNS45NSAwIDM1LjY1QzAgMzQuMTUgMS4yIDMyLjg1IDIuOCAzMi44NUMzLjkgMzIuODUgNSAzMy41NSA1LjMgMzQuNzVDNS41IDM1LjU1IDUuNSAzNi4xNSA2IDM3LjU1TDEwLjIgNDkuNDVDMTAuNSA1MC4zNSAxMC45IDUxLjQ1IDExLjEgNTIuMzVDMTEuMyA1MS40NSAxMS42IDUwLjQ1IDExLjkgNDkuNTVMMTYgMzcuNTVDMTYuNSAzNi4wNSAxNi40IDM1LjY1IDE2LjcgMzQuODVDMTcuMSAzMy42NSAxOC4xIDMyLjg1IDE5LjMgMzIuODVDMjAuOSAzMi44NSAyMS45IDM0LjE1IDIxLjkgMzUuNjVaTTI5LjcgNzEuNDVDMjguMiA3MS40NSAyNy4yIDcwLjQ1IDI3LjIgNjkuMTVDMjcuMiA2OC43NSAyNy4yIDY4LjI1IDI3LjggNjcuNDVMMzcuNCA1My40NUMzNy45IDUyLjc1IDM4LjUgNTIuMDUgMzkuMSA1MS4zNUgzMi4yQzMxLjUgNTEuMzUgMzAuNyA1MS42NSAzMC4xIDUxLjY1QzI4LjcgNTEuNjUgMjcuNiA1MC43NSAyNy42IDQ5LjM1QzI3LjYgNDcuOTUgMjguNyA0Ni45NSAzMC4xIDQ2Ljk1SDQyLjdDNDQuMiA0Ni45NSA0NS4yIDQ3Ljg1IDQ1LjIgNDkuMjVDNDUuMiA0OS42NSA0NSA1MC4zNSA0NC41IDUxLjA1TDM1LjIgNjQuODVDMzQuNyA2NS42NSAzNC4xIDY2LjQ1IDMzLjUgNjcuMDVINDEuMUM0MS45IDY3LjA1IDQyLjcgNjYuNzUgNDMuMyA2Ni43NUM0NC43IDY2Ljc1IDQ1LjcgNjcuNzUgNDUuNyA2OS4wNUM0NS43IDcwLjU1IDQ0LjUgNzEuNTUgNDMuMiA3MS41NUgyOS43VjcxLjQ1WiIgZmlsbD0iYmxhY2siLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yNzJfNDA1Ij4KPHJlY3Qgd2lkdGg9IjQ2IiBoZWlnaHQ9IjcyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=';
|
|
9
11
|
|
|
@@ -31,19 +33,21 @@ class ListKeyboardNavigationController {
|
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
getNextFocusableElement(current, direction) {
|
|
36
|
+
if (!current)
|
|
37
|
+
return undefined;
|
|
34
38
|
const { elements } = this;
|
|
35
39
|
const currentIndex = elements.indexOf(current);
|
|
36
40
|
if (currentIndex === -1)
|
|
37
|
-
return
|
|
38
|
-
let nextIndex =
|
|
41
|
+
return undefined;
|
|
42
|
+
let nextIndex = undefined;
|
|
39
43
|
if (direction === 'down') {
|
|
40
44
|
nextIndex = (currentIndex + 1) % elements.length;
|
|
41
45
|
}
|
|
42
46
|
else if (direction === 'up') {
|
|
43
47
|
nextIndex = (currentIndex - 1 + elements.length) % elements.length;
|
|
44
48
|
}
|
|
45
|
-
if (nextIndex ==
|
|
46
|
-
return
|
|
49
|
+
if (nextIndex == undefined)
|
|
50
|
+
return undefined;
|
|
47
51
|
const candidate = elements[nextIndex];
|
|
48
52
|
if (!component.canReceiveFocus(candidate))
|
|
49
53
|
return this.getNextFocusableElement(candidate, direction);
|
|
@@ -63,10 +67,10 @@ const LmvzHeader = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
63
67
|
secondaryNav;
|
|
64
68
|
keyboardNavigationController = new ListKeyboardNavigationController(this);
|
|
65
69
|
get primaryMenuitems() {
|
|
66
|
-
return this.primarySlot
|
|
70
|
+
return this.primarySlot?.assignedElements({ flatten: false }) || [];
|
|
67
71
|
}
|
|
68
72
|
get secondaryMenuitems() {
|
|
69
|
-
return this.secondarySlot
|
|
73
|
+
return this.secondarySlot?.assignedElements({ flatten: true }) || [];
|
|
70
74
|
}
|
|
71
75
|
get role() {
|
|
72
76
|
return 'banner';
|
|
@@ -85,9 +89,9 @@ const LmvzHeader = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
85
89
|
this.updateElementsActive();
|
|
86
90
|
}
|
|
87
91
|
componentDidLoad() {
|
|
88
|
-
this.primarySlot
|
|
92
|
+
this.primarySlot?.addEventListener('slotchange', this.handlePrimaryNavItemsChange.bind(this));
|
|
89
93
|
this.handlePrimaryNavItemsChange();
|
|
90
|
-
this.secondarySlot
|
|
94
|
+
this.secondarySlot?.addEventListener('slotchange', this.handleSecondaryNavItemsChange.bind(this));
|
|
91
95
|
super.componentDidLoad();
|
|
92
96
|
}
|
|
93
97
|
handlePrimaryNavItemsChange() {
|
|
@@ -115,14 +119,18 @@ const LmvzHeader = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
115
119
|
}
|
|
116
120
|
updateElementsActive() {
|
|
117
121
|
const items = this.primaryMenuitems;
|
|
118
|
-
|
|
122
|
+
if (!items.length)
|
|
123
|
+
return;
|
|
124
|
+
let label = '';
|
|
119
125
|
items.forEach((el) => {
|
|
120
126
|
const isActive = el.id === this.lmvzActiveNav;
|
|
121
127
|
if (isActive)
|
|
122
128
|
label = el.textContent || el.id;
|
|
123
129
|
el.setAttribute('aria-expanded', isActive ? 'true' : 'false');
|
|
124
130
|
});
|
|
125
|
-
|
|
131
|
+
if (!label)
|
|
132
|
+
return;
|
|
133
|
+
this.secondaryNav?.setAttribute('aria-label', `Untermenü für ${label}`);
|
|
126
134
|
}
|
|
127
135
|
delegateFocus() {
|
|
128
136
|
const firstFocusable = this.primaryMenuitems[0];
|
|
@@ -131,7 +139,7 @@ const LmvzHeader = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
131
139
|
}
|
|
132
140
|
}
|
|
133
141
|
render() {
|
|
134
|
-
return (index.h(index.Host, { key: '
|
|
142
|
+
return (index.h(index.Host, { key: '3189d1bd21fb5bd8f30b27cbfb6e49648b0e70c4', onFocus: this.delegateFocus.bind(this) }, index.h("div", { key: '57c27e85c0d6292f0c39a850bad5d59de4cf8743', class: "brand" }, index.h("slot", { key: '13ea794d470861e25dc249c3174d2a5f2ba25096', name: "brand" }, index.h("img", { key: '37bea67eea1a2971a7502f6e9a5a2a28d3eec114', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), index.h("nav", { key: '59b1679357cd4dbef737f90f4b4ff5c80a4efa06', "aria-label": "Hauptnavigation" }, index.h("div", { key: '51ce71eed0f31ef4dbfbeb72dffed87797462487', role: "menubar", class: "primary-menubar" }, index.h("slot", { key: 'ac3357828b95a5aa6261c611612fb76f55bf92ee', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), index.h("div", { key: 'b78f2ad43e03f40d65c69674b94a295e72366c8e', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, index.h("slot", { key: 'd2cc74ff24cf10f0f958cea986149f3f03054291', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), index.h("div", { key: 'cc6e0c0a32e51d3fa0d7f1865023f03434458217', class: "actions" }, index.h("slot", { key: '8504df5d1970ac856a237cbb0dcce5a2707b7cab', name: "actions" }))));
|
|
135
143
|
}
|
|
136
144
|
static get watchers() { return {
|
|
137
145
|
"lmvzActiveNav": [{
|
|
@@ -141,4 +149,5 @@ const LmvzHeader = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
141
149
|
};
|
|
142
150
|
LmvzHeader.style = lmvzHeaderCss();
|
|
143
151
|
|
|
152
|
+
exports.lmvz_menuitem = lmvzMenuitem_entry.lmvz_menuitem;
|
|
144
153
|
exports.lmvz_header = LmvzHeader;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var Effect = require('./Effect-
|
|
5
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
6
|
-
var icons = require('./icons-
|
|
7
|
-
require('./aria-loader-
|
|
8
|
-
require('./assets-
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
|
+
var Effect = require('./Effect-DdYOHaR4.js');
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-vy1TIIXv.js');
|
|
6
|
+
var icons = require('./icons-EHBLbidD.js');
|
|
7
|
+
require('./aria-loader-BRxRUIyi.js');
|
|
8
|
+
require('./assets-OvQ-WUwR.js');
|
|
9
9
|
|
|
10
10
|
const lmvzIconCss = () => `.sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height: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)}}`;
|
|
11
11
|
|
|
@@ -38,7 +38,7 @@ const LmvzIcon = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
38
38
|
disconnectedCallback() {
|
|
39
39
|
if (this.intersectionObserver) {
|
|
40
40
|
this.intersectionObserver.disconnect();
|
|
41
|
-
this.intersectionObserver =
|
|
41
|
+
this.intersectionObserver = undefined;
|
|
42
42
|
}
|
|
43
43
|
super.disconnectedCallback();
|
|
44
44
|
}
|
|
@@ -55,7 +55,7 @@ const LmvzIcon = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
55
55
|
super.componentDidRender();
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return index.h(index.Host, { key: '
|
|
58
|
+
return index.h(index.Host, { key: '4ce6e3931a1c8bfa1ddd48c780d005d110902b19', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
59
59
|
}
|
|
60
60
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
61
61
|
if (typeof window === 'undefined' || !window.IntersectionObserver) {
|
|
@@ -65,8 +65,8 @@ const LmvzIcon = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
65
65
|
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
66
66
|
entries.some((entry) => {
|
|
67
67
|
if (entry.isIntersecting) {
|
|
68
|
-
this.intersectionObserver
|
|
69
|
-
this.intersectionObserver =
|
|
68
|
+
this.intersectionObserver?.disconnect();
|
|
69
|
+
this.intersectionObserver = undefined;
|
|
70
70
|
callback();
|
|
71
71
|
return true;
|
|
72
72
|
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
|
+
var index$1 = require('./index-Bp6Dd2i1.js');
|
|
5
|
+
var reactiveControllerHost = require('./reactive-controller-host-vy1TIIXv.js');
|
|
6
|
+
var component = require('./component-Csg9MtNK.js');
|
|
7
|
+
require('./aria-loader-BRxRUIyi.js');
|
|
8
|
+
|
|
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-selected, #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; }`;
|
|
10
|
+
|
|
11
|
+
let inputIdCounter = 0;
|
|
12
|
+
const LmvzInput = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
13
|
+
get el() { return index.getElement(this); }
|
|
14
|
+
get validationEl() {
|
|
15
|
+
return this.el;
|
|
16
|
+
}
|
|
17
|
+
lmvzInput;
|
|
18
|
+
internals;
|
|
19
|
+
nativeInputElement;
|
|
20
|
+
inputId = `lmvz-input-${inputIdCounter++}`;
|
|
21
|
+
initialValue = '';
|
|
22
|
+
nativeError = false;
|
|
23
|
+
errorFromProp = false;
|
|
24
|
+
get helperId() {
|
|
25
|
+
return this.helperText ? `${this.inputId}-helper` : undefined;
|
|
26
|
+
}
|
|
27
|
+
get showErrorMessage() {
|
|
28
|
+
return this.error && Boolean(this.errorMessage);
|
|
29
|
+
}
|
|
30
|
+
get errorId() {
|
|
31
|
+
return `${this.inputId}-error`;
|
|
32
|
+
}
|
|
33
|
+
get describedBy() {
|
|
34
|
+
const ids = [];
|
|
35
|
+
if (this.helperId)
|
|
36
|
+
ids.push(this.helperId);
|
|
37
|
+
if (this.showErrorMessage)
|
|
38
|
+
ids.push(this.errorId);
|
|
39
|
+
return ids.length > 0 ? ids.join(' ') : undefined;
|
|
40
|
+
}
|
|
41
|
+
value;
|
|
42
|
+
label;
|
|
43
|
+
helperText;
|
|
44
|
+
placeholder;
|
|
45
|
+
disabled = false;
|
|
46
|
+
readonly = false;
|
|
47
|
+
required = false;
|
|
48
|
+
name;
|
|
49
|
+
type = 'text';
|
|
50
|
+
errorMessage;
|
|
51
|
+
autocomplete;
|
|
52
|
+
inputmode;
|
|
53
|
+
autocorrect;
|
|
54
|
+
autocapitalize;
|
|
55
|
+
spellcheck;
|
|
56
|
+
autofocus = false;
|
|
57
|
+
minlength;
|
|
58
|
+
maxlength;
|
|
59
|
+
pattern;
|
|
60
|
+
min;
|
|
61
|
+
max;
|
|
62
|
+
step;
|
|
63
|
+
form;
|
|
64
|
+
get error() {
|
|
65
|
+
return this.errorFromProp || this.nativeError;
|
|
66
|
+
}
|
|
67
|
+
set error(value) {
|
|
68
|
+
this.errorFromProp = value;
|
|
69
|
+
}
|
|
70
|
+
async setValue(newValue) {
|
|
71
|
+
const input = this.nativeInputElement;
|
|
72
|
+
const val = newValue ?? '';
|
|
73
|
+
if (input) {
|
|
74
|
+
input.value = val;
|
|
75
|
+
}
|
|
76
|
+
this.value = val;
|
|
77
|
+
this.internals.setFormValue?.(val);
|
|
78
|
+
this.lmvzInput.emit(val);
|
|
79
|
+
}
|
|
80
|
+
async focusInput() {
|
|
81
|
+
this.nativeInputElement?.focus();
|
|
82
|
+
}
|
|
83
|
+
async blurInput() {
|
|
84
|
+
this.nativeInputElement?.blur();
|
|
85
|
+
}
|
|
86
|
+
async select() {
|
|
87
|
+
this.nativeInputElement?.select();
|
|
88
|
+
}
|
|
89
|
+
async checkValidity() {
|
|
90
|
+
return this.nativeInputElement?.checkValidity?.() ?? false;
|
|
91
|
+
}
|
|
92
|
+
async reportValidity() {
|
|
93
|
+
return this.nativeInputElement?.reportValidity?.() ?? false;
|
|
94
|
+
}
|
|
95
|
+
async getInputElement() {
|
|
96
|
+
if (!this.nativeInputElement) {
|
|
97
|
+
await new Promise((resolve) => component.componentOnReady(this.el, resolve));
|
|
98
|
+
}
|
|
99
|
+
return Promise.resolve(this.nativeInputElement);
|
|
100
|
+
}
|
|
101
|
+
constructor(hostRef) {
|
|
102
|
+
super();
|
|
103
|
+
index.registerInstance(this, hostRef);
|
|
104
|
+
this.lmvzInput = index.createEvent(this, "lmvzInput");
|
|
105
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
106
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
110
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
111
|
+
}
|
|
112
|
+
this.addController(new reactiveControllerHost.AriaValidationController(this, {
|
|
113
|
+
reValidateOnPropChanges: true,
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
componentWillLoad() {
|
|
117
|
+
this.initialValue = this.value ?? '';
|
|
118
|
+
super.componentWillLoad();
|
|
119
|
+
}
|
|
120
|
+
formAssociatedCallback(form) {
|
|
121
|
+
if (!form)
|
|
122
|
+
return;
|
|
123
|
+
this.internals.setFormValue?.(this.value ?? '');
|
|
124
|
+
}
|
|
125
|
+
formResetCallback() {
|
|
126
|
+
this.internals.setValidity({});
|
|
127
|
+
this.setValue(this.initialValue);
|
|
128
|
+
}
|
|
129
|
+
formStateRestoreCallback(state) {
|
|
130
|
+
this.setValue(state);
|
|
131
|
+
}
|
|
132
|
+
handleValueChange(newValue) {
|
|
133
|
+
if (!this.nativeInputElement)
|
|
134
|
+
return;
|
|
135
|
+
const isInternalChange = this.nativeInputElement.value === newValue;
|
|
136
|
+
if (isInternalChange)
|
|
137
|
+
return;
|
|
138
|
+
this.setValue(newValue);
|
|
139
|
+
}
|
|
140
|
+
handleDisabledChange(disabled) {
|
|
141
|
+
if (disabled && this.nativeInputElement) {
|
|
142
|
+
this.nativeInputElement.blur();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
handleInput = (event) => {
|
|
146
|
+
const input = event.target;
|
|
147
|
+
this.setValue(input.value);
|
|
148
|
+
};
|
|
149
|
+
handleChange = (event) => {
|
|
150
|
+
const input = event.target ?? this.nativeInputElement;
|
|
151
|
+
this.updateNativeError(input);
|
|
152
|
+
};
|
|
153
|
+
handleFocus = () => { };
|
|
154
|
+
handleBlur = (event) => {
|
|
155
|
+
const input = event.target;
|
|
156
|
+
input.reportValidity?.();
|
|
157
|
+
};
|
|
158
|
+
updateNativeError(fromEvent) {
|
|
159
|
+
const input = fromEvent ?? this.nativeInputElement;
|
|
160
|
+
if (!input)
|
|
161
|
+
return;
|
|
162
|
+
this.nativeError = !(input.checkValidity?.() ?? true);
|
|
163
|
+
}
|
|
164
|
+
render() {
|
|
165
|
+
const hasValue = Boolean(this.value);
|
|
166
|
+
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
167
|
+
return (index.h("div", { key: '97674bbf9a17f1533340f19f0643bc8695417da6', class: index$1.classNames('input-container', {
|
|
168
|
+
'interaction-filled': hasValue,
|
|
169
|
+
}) }, index.h("div", { key: '51aee84c821a5ad8884981bae3c42d0ed29a1fc5', class: "input-wrapper" }, index.h("slot", { key: '589b38e7977f74f7037a71b6b530ea98750f3bee', name: "before-input" }), index.h("div", { key: 'f5856cfc71ceb9093ceaa1b60bb6f4d964dadc7f', class: "label-input-group" }, index.h("label", { key: 'fbd6bb71131cf7384a79ba6f4f606c430e326bef', htmlFor: this.inputId, class: index$1.classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (index.h("span", { key: 'd479254f9ac11a31278720d41e56db1300c06b15', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), index.h("input", { key: 'bb7b43947207bebb31412aa0e0eb58a9fed98963', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), index.h("slot", { key: 'a21d46103f1b0040e67e20b4faf016a2b2fdd4dc', name: "after-input" })), index.h("div", { key: '53adfecb08ab29d1636052061dc37dffcd697ab2', id: this.helperId, role: "status" }, this.helperText || null), index.h("div", { key: 'ea3406ebd72ef02a0f293ab01cf4cf9971687b30', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
170
|
+
}
|
|
171
|
+
static get formAssociated() { return true; }
|
|
172
|
+
static get watchers() { return {
|
|
173
|
+
"value": [{
|
|
174
|
+
"handleValueChange": 0
|
|
175
|
+
}],
|
|
176
|
+
"disabled": [{
|
|
177
|
+
"handleDisabledChange": 0
|
|
178
|
+
}]
|
|
179
|
+
}; }
|
|
180
|
+
};
|
|
181
|
+
LmvzInput.style = lmvzInputCss();
|
|
182
|
+
|
|
183
|
+
exports.lmvz_input = LmvzInput;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var reactiveControllerHost = require('./reactive-controller-host-
|
|
3
|
+
var index = require('./index-CH-YLRgg.js');
|
|
4
|
+
var reactiveControllerHost = require('./reactive-controller-host-vy1TIIXv.js');
|
|
5
5
|
var elementActivationController = require('./element-activation-controller-DC_6T0Rt.js');
|
|
6
|
-
require('./aria-loader-
|
|
6
|
+
require('./aria-loader-BRxRUIyi.js');
|
|
7
7
|
|
|
8
8
|
const lmvzMenuitemCss = () => `@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-menuitem-h { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); border-radius: var(--lmvz-semantic-border-radius-lg, 14px); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); padding: var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)) var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); cursor: pointer; --lmvz-menuitem-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); background: var(--lmvz-menuitem-background); color: var(--lmvz-menuitem-color); } .sc-lmvz-menuitem-h:hover { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } .sc-lmvz-menuitem-h:active { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } .sc-lmvz-menuitem-h:focus-visible { z-index: 1; } [aria-expanded='true'].sc-lmvz-menuitem-h { --lmvz-menuitem-background: var(--lmvz-semantic-color-status-selected, #f1f9fe); --lmvz-menuitem-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); }`;
|
|
9
9
|
|
|
10
10
|
const LmvzMenuItem = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
11
11
|
get el() { return index.getElement(this); }
|
|
12
|
-
validationEl
|
|
12
|
+
get validationEl() {
|
|
13
|
+
return this.el;
|
|
14
|
+
}
|
|
13
15
|
validationSlot;
|
|
14
16
|
get role() {
|
|
15
17
|
return 'menuitem';
|
|
@@ -26,7 +28,7 @@ const LmvzMenuItem = class extends reactiveControllerHost.ReactiveControllerHost
|
|
|
26
28
|
this.addController(new elementActivationController.ElementActivationController(this));
|
|
27
29
|
}
|
|
28
30
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
31
|
+
return (index.h(index.Host, { key: '510ac59b18468ce9c65b866ae2767185f1b3da92' }, index.h("slot", { key: '7e032e0dab83f9bfbaa96ad2b78d8a5a58f978ab', ref: (e) => (this.validationSlot = e) })));
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
34
|
LmvzMenuItem.style = lmvzMenuitemCss();
|