@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
|
@@ -1,395 +0,0 @@
|
|
|
1
|
-
import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-smGPjoDX.js';
|
|
2
|
-
import { R as ReactiveControllerHost, A as AriaValidationController } from './reactive-controller-host-CdAJ3t-B.js';
|
|
3
|
-
import { E as ElementActivationController } from './element-activation-controller-CN0JX9-m.js';
|
|
4
|
-
import { i as inheritAriaAttributes, f as findFormByRef, c as componentOnReady } from './component-DpoTUPzl.js';
|
|
5
|
-
import './aria-loader-Ddn7Qz_6.js';
|
|
6
|
-
|
|
7
|
-
function getDefaultExportFromCjs (x) {
|
|
8
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
var classnames = {exports: {}};
|
|
12
|
-
|
|
13
|
-
/*!
|
|
14
|
-
Copyright (c) 2018 Jed Watson.
|
|
15
|
-
Licensed under the MIT License (MIT), see
|
|
16
|
-
http://jedwatson.github.io/classnames
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
var hasRequiredClassnames;
|
|
20
|
-
|
|
21
|
-
function requireClassnames () {
|
|
22
|
-
if (hasRequiredClassnames) return classnames.exports;
|
|
23
|
-
hasRequiredClassnames = 1;
|
|
24
|
-
(function (module) {
|
|
25
|
-
/* global define */
|
|
26
|
-
|
|
27
|
-
(function () {
|
|
28
|
-
|
|
29
|
-
var hasOwn = {}.hasOwnProperty;
|
|
30
|
-
|
|
31
|
-
function classNames () {
|
|
32
|
-
var classes = '';
|
|
33
|
-
|
|
34
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
35
|
-
var arg = arguments[i];
|
|
36
|
-
if (arg) {
|
|
37
|
-
classes = appendClass(classes, parseValue(arg));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return classes;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function parseValue (arg) {
|
|
45
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
46
|
-
return arg;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (typeof arg !== 'object') {
|
|
50
|
-
return '';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (Array.isArray(arg)) {
|
|
54
|
-
return classNames.apply(null, arg);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
58
|
-
return arg.toString();
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
var classes = '';
|
|
62
|
-
|
|
63
|
-
for (var key in arg) {
|
|
64
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
65
|
-
classes = appendClass(classes, key);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return classes;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function appendClass (value, newClass) {
|
|
73
|
-
if (!newClass) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (value) {
|
|
78
|
-
return value + ' ' + newClass;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return value + newClass;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (module.exports) {
|
|
85
|
-
classNames.default = classNames;
|
|
86
|
-
module.exports = classNames;
|
|
87
|
-
} else {
|
|
88
|
-
window.classNames = classNames;
|
|
89
|
-
}
|
|
90
|
-
}());
|
|
91
|
-
} (classnames));
|
|
92
|
-
return classnames.exports;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
var classnamesExports = requireClassnames();
|
|
96
|
-
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
97
|
-
|
|
98
|
-
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); } `;
|
|
99
|
-
|
|
100
|
-
const LmvzButton = class extends ReactiveControllerHost {
|
|
101
|
-
get el() { return getElement(this); }
|
|
102
|
-
validationEl;
|
|
103
|
-
inheritedAttributes = {};
|
|
104
|
-
formEl = null;
|
|
105
|
-
formButtonEl = null;
|
|
106
|
-
lmvzActivation;
|
|
107
|
-
get ti() {
|
|
108
|
-
return 0;
|
|
109
|
-
}
|
|
110
|
-
scale = 'default';
|
|
111
|
-
variant = 'secondary';
|
|
112
|
-
disabled = false;
|
|
113
|
-
type = 'button';
|
|
114
|
-
form;
|
|
115
|
-
constructor(hostRef) {
|
|
116
|
-
super();
|
|
117
|
-
registerInstance(this, hostRef);
|
|
118
|
-
this.lmvzActivation = createEvent(this, "lmvzActivation");
|
|
119
|
-
this.addController(new AriaValidationController(this));
|
|
120
|
-
this.addController(new ElementActivationController(this, {
|
|
121
|
-
localHandler: this.handleClick.bind(this),
|
|
122
|
-
keys: ['Enter'],
|
|
123
|
-
}));
|
|
124
|
-
}
|
|
125
|
-
connectedCallback() {
|
|
126
|
-
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
127
|
-
super.connectedCallback();
|
|
128
|
-
}
|
|
129
|
-
renderHiddenButton() {
|
|
130
|
-
const formEl = (this.formEl = findFormByRef(this.form, this.el));
|
|
131
|
-
if (!formEl)
|
|
132
|
-
return;
|
|
133
|
-
const { formButtonEl } = this;
|
|
134
|
-
if (formButtonEl !== null && formEl.contains(formButtonEl))
|
|
135
|
-
return;
|
|
136
|
-
const newFormButtonEl = (this.formButtonEl = document.createElement('button'));
|
|
137
|
-
newFormButtonEl.type = 'submit';
|
|
138
|
-
newFormButtonEl.style.display = 'none';
|
|
139
|
-
newFormButtonEl.disabled = this.disabled;
|
|
140
|
-
formEl.appendChild(newFormButtonEl);
|
|
141
|
-
}
|
|
142
|
-
submitForm(ev) {
|
|
143
|
-
if (this.formEl && this.formButtonEl) {
|
|
144
|
-
ev.preventDefault();
|
|
145
|
-
this.formButtonEl.click();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
handleClick = (ev) => {
|
|
149
|
-
if (this.type === 'submit') {
|
|
150
|
-
this.submitForm(ev);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
render() {
|
|
154
|
-
this.renderHiddenButton();
|
|
155
|
-
return (h(Host, { key: '3f3eda78349322ce5160d7aac1290a73f0adcd4a', "aria-disabled": this.disabled ? 'true' : null }, h("button", { key: 'b132404d8d5f5bf0fa7e845b562c953c5ceec36c', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, h("slot", { key: 'ce63f7f1061ec9c3f10cbcfc67998ddbf3e04c3d' }))));
|
|
156
|
-
}
|
|
157
|
-
static get delegatesFocus() { return true; }
|
|
158
|
-
};
|
|
159
|
-
LmvzButton.style = lmvzButtonCss();
|
|
160
|
-
|
|
161
|
-
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; }`;
|
|
162
|
-
|
|
163
|
-
let inputIdCounter = 0;
|
|
164
|
-
const LmvzInput = class extends ReactiveControllerHost {
|
|
165
|
-
get el() { return getElement(this); }
|
|
166
|
-
get validationEl() {
|
|
167
|
-
return this.el;
|
|
168
|
-
}
|
|
169
|
-
lmvzInput;
|
|
170
|
-
internals;
|
|
171
|
-
nativeInputElement;
|
|
172
|
-
inputId = `lmvz-input-${inputIdCounter++}`;
|
|
173
|
-
initialValue = '';
|
|
174
|
-
nativeError = false;
|
|
175
|
-
errorFromProp = false;
|
|
176
|
-
get helperId() {
|
|
177
|
-
return this.helperText ? `${this.inputId}-helper` : undefined;
|
|
178
|
-
}
|
|
179
|
-
get showErrorMessage() {
|
|
180
|
-
return this.error && Boolean(this.errorMessage);
|
|
181
|
-
}
|
|
182
|
-
get errorId() {
|
|
183
|
-
return `${this.inputId}-error`;
|
|
184
|
-
}
|
|
185
|
-
get describedBy() {
|
|
186
|
-
const ids = [];
|
|
187
|
-
if (this.helperId)
|
|
188
|
-
ids.push(this.helperId);
|
|
189
|
-
if (this.showErrorMessage)
|
|
190
|
-
ids.push(this.errorId);
|
|
191
|
-
return ids.length > 0 ? ids.join(' ') : undefined;
|
|
192
|
-
}
|
|
193
|
-
value;
|
|
194
|
-
label;
|
|
195
|
-
helperText;
|
|
196
|
-
placeholder;
|
|
197
|
-
disabled = false;
|
|
198
|
-
readonly = false;
|
|
199
|
-
required = false;
|
|
200
|
-
name;
|
|
201
|
-
type = 'text';
|
|
202
|
-
errorMessage;
|
|
203
|
-
autocomplete;
|
|
204
|
-
inputmode;
|
|
205
|
-
autocorrect;
|
|
206
|
-
autocapitalize;
|
|
207
|
-
spellcheck;
|
|
208
|
-
autofocus = false;
|
|
209
|
-
minlength;
|
|
210
|
-
maxlength;
|
|
211
|
-
pattern;
|
|
212
|
-
min;
|
|
213
|
-
max;
|
|
214
|
-
step;
|
|
215
|
-
form;
|
|
216
|
-
get error() {
|
|
217
|
-
return this.errorFromProp || this.nativeError;
|
|
218
|
-
}
|
|
219
|
-
set error(value) {
|
|
220
|
-
this.errorFromProp = value;
|
|
221
|
-
}
|
|
222
|
-
async setValue(newValue) {
|
|
223
|
-
const input = this.nativeInputElement;
|
|
224
|
-
this.value = input.value = newValue ?? '';
|
|
225
|
-
this.internals.setFormValue?.(newValue);
|
|
226
|
-
this.lmvzInput.emit(newValue);
|
|
227
|
-
}
|
|
228
|
-
async focusInput() {
|
|
229
|
-
this.nativeInputElement?.focus();
|
|
230
|
-
}
|
|
231
|
-
async blurInput() {
|
|
232
|
-
this.nativeInputElement?.blur();
|
|
233
|
-
}
|
|
234
|
-
async select() {
|
|
235
|
-
this.nativeInputElement?.select();
|
|
236
|
-
}
|
|
237
|
-
async checkValidity() {
|
|
238
|
-
return this.nativeInputElement?.checkValidity?.() ?? false;
|
|
239
|
-
}
|
|
240
|
-
async reportValidity() {
|
|
241
|
-
return this.nativeInputElement?.reportValidity?.() ?? false;
|
|
242
|
-
}
|
|
243
|
-
async getInputElement() {
|
|
244
|
-
if (!this.nativeInputElement) {
|
|
245
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
246
|
-
}
|
|
247
|
-
return Promise.resolve(this.nativeInputElement);
|
|
248
|
-
}
|
|
249
|
-
constructor(hostRef) {
|
|
250
|
-
super();
|
|
251
|
-
registerInstance(this, hostRef);
|
|
252
|
-
this.lmvzInput = createEvent(this, "lmvzInput");
|
|
253
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
254
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
258
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
259
|
-
}
|
|
260
|
-
this.addController(new AriaValidationController(this, {
|
|
261
|
-
reValidateOnPropChanges: true,
|
|
262
|
-
}));
|
|
263
|
-
}
|
|
264
|
-
componentWillLoad() {
|
|
265
|
-
this.initialValue = this.value;
|
|
266
|
-
super.componentWillLoad();
|
|
267
|
-
}
|
|
268
|
-
formAssociatedCallback(form) {
|
|
269
|
-
if (!form)
|
|
270
|
-
return;
|
|
271
|
-
this.internals.setFormValue?.(this.value);
|
|
272
|
-
}
|
|
273
|
-
formResetCallback() {
|
|
274
|
-
this.internals.setValidity({});
|
|
275
|
-
this.setValue(this.initialValue);
|
|
276
|
-
}
|
|
277
|
-
formStateRestoreCallback(state) {
|
|
278
|
-
this.setValue(state);
|
|
279
|
-
}
|
|
280
|
-
handleValueChange(newValue) {
|
|
281
|
-
if (!this.nativeInputElement)
|
|
282
|
-
return;
|
|
283
|
-
const isInternalChange = this.nativeInputElement.value === newValue;
|
|
284
|
-
if (isInternalChange)
|
|
285
|
-
return;
|
|
286
|
-
this.setValue(newValue);
|
|
287
|
-
}
|
|
288
|
-
handleDisabledChange(disabled) {
|
|
289
|
-
if (disabled && this.nativeInputElement) {
|
|
290
|
-
this.nativeInputElement.blur();
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
handleInput = (event) => {
|
|
294
|
-
const input = event.target;
|
|
295
|
-
this.setValue(input.value);
|
|
296
|
-
};
|
|
297
|
-
handleChange = (event) => {
|
|
298
|
-
const input = event.target ?? this.nativeInputElement;
|
|
299
|
-
this.updateNativeError(input);
|
|
300
|
-
};
|
|
301
|
-
handleFocus = () => { };
|
|
302
|
-
handleBlur = (event) => {
|
|
303
|
-
const input = event.target;
|
|
304
|
-
input.reportValidity?.();
|
|
305
|
-
};
|
|
306
|
-
updateNativeError(fromEvent) {
|
|
307
|
-
const input = fromEvent ?? this.nativeInputElement;
|
|
308
|
-
if (!input)
|
|
309
|
-
return;
|
|
310
|
-
this.nativeError = !(input.checkValidity?.() ?? true);
|
|
311
|
-
}
|
|
312
|
-
render() {
|
|
313
|
-
const hasValue = Boolean(this.value);
|
|
314
|
-
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
315
|
-
return (h("div", { key: '50e70a8963db11234428d8753b4ac4a22424fe93', class: classNames('input-container', {
|
|
316
|
-
'interaction-filled': hasValue,
|
|
317
|
-
}) }, h("div", { key: '15fdd5c130ff915830b5a9055743d3493f02baf0', class: "input-wrapper" }, h("slot", { key: '16dd0a7af0ea88b1b4f23e9c62bc20f28425b9ee', name: "before-input" }), h("div", { key: '46afc3affa6fca9049da985fb65a2aab94b0d479', class: "label-input-group" }, h("label", { key: '21c938202cdd21beb284b75d2451247a421a0218', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (h("span", { key: '0bbba8b04242a1bee0bf0b5b0bc15c11f616cbac', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), h("input", { key: '9af271fb9251e78706190a0e6cb8373ace8a10f7', 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 })), h("slot", { key: 'db559809a6a5614b522f362c3cf6e97469fb4da4', name: "after-input" })), h("div", { key: '191b364963a017f6b458c2d33fbc4a1b376b8379', id: this.helperId, role: "status" }, this.helperText || null), h("div", { key: '058d13a869f6a3c49f94793eeacecb2b2e672e5c', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
318
|
-
}
|
|
319
|
-
static get formAssociated() { return true; }
|
|
320
|
-
static get watchers() { return {
|
|
321
|
-
"value": [{
|
|
322
|
-
"handleValueChange": 0
|
|
323
|
-
}],
|
|
324
|
-
"disabled": [{
|
|
325
|
-
"handleDisabledChange": 0
|
|
326
|
-
}]
|
|
327
|
-
}; }
|
|
328
|
-
};
|
|
329
|
-
LmvzInput.style = lmvzInputCss();
|
|
330
|
-
|
|
331
|
-
const chevronDownSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwLjMzMzQgOC42NjY2M0wxMi4wMDAxIDE3TDMuNjY2NzUgOC42NjY2MyIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=';
|
|
332
|
-
|
|
333
|
-
const lmvzSelectCss = () => `@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-select-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --lmvz-internal-select-floating-label-top-offset: 0.375rem; padding-top: var(--lmvz-internal-select-floating-label-top-offset); --lmvz-select-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-select-bg: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-select-bg-hover: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-select-text-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-select-label-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --lmvz-select-padding-x: var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); --lmvz-select-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-select-height: 40px; --lmvz-select-label-font-size: var(--lmvz-component-component-typography-body-sm-font-size, 0.75rem); --lmvz-select-label-top-offset: calc(var(--lmvz-internal-select-floating-label-top-offset) * -1); --lmvz-select-label-minimized-padding-x: 4px; --lmvz-select-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); --lmvz-select-helper-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --lmvz-select-focus-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --lmvz-select-error-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); } .select-wrapper.sc-lmvz-select { position: relative; height: var(--lmvz-select-height); } label.sc-lmvz-select { position: absolute; top: 50%; left: var(--lmvz-select-padding-x); font-size: var(--lmvz-select-label-font-size); color: var(--lmvz-select-label-color); line-height: normal; white-space: nowrap; pointer-events: none; z-index: 2; transform: translateY(-50%); transform-origin: left top; transition: top 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, padding 0.2s ease-out; } label.assistive-label.sc-lmvz-select { opacity: 0; padding: 0; } label.floating-label.sc-lmvz-select { top: var(--lmvz-select-label-top-offset); transform: translateY(0) scale(0.85); left: calc(var(--lmvz-select-padding-x) - 2px); background-color: var(--lmvz-select-bg); padding: 0 var(--lmvz-select-label-minimized-padding-x); opacity: 1; font-weight: 500; } label.sc-lmvz-select > span[aria-hidden='true'].sc-lmvz-select, div[aria-hidden='true'].sc-lmvz-select > span.sc-lmvz-select:first-child > span[aria-hidden='true'].sc-lmvz-select { color: var(--lmvz-select-error-color); margin-left: 2px; display: inline-block; line-height: 0; vertical-align: middle; } div[aria-hidden].sc-lmvz-select { display: flex; align-items: center; gap: var(--lmvz-select-gap); height: 100%; padding: 0 var(--lmvz-select-padding-x); border-radius: var(--lmvz-select-radius); background-color: var(--lmvz-select-bg); cursor: pointer; position: relative; z-index: 1; transition: background-color 0.15s ease; } .sc-lmvz-select-h:not([disabled]) .select-wrapper.sc-lmvz-select:hover div[aria-hidden].sc-lmvz-select { background-color: var(--lmvz-select-bg-hover); } .select-wrapper.sc-lmvz-select:focus-within div[aria-hidden].sc-lmvz-select { outline: 2px solid var(--lmvz-select-focus-color); outline-offset: 2px; } div[aria-hidden].sc-lmvz-select > span.sc-lmvz-select:first-child { flex: 1 0 0; font-size: var(--lmvz-component-component-typography-body-md-font-size, 0.875rem); font-weight: var(--lmvz-global-font-weight-500, 500); color: var(--lmvz-select-text-color); line-height: 1.4; letter-spacing: var(--lmvz-component-body-md-letter-spacing, 0px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } div[aria-hidden].sc-lmvz-select > span.sc-lmvz-select:last-child { flex-shrink: 0; display: flex; align-items: center; justify-content: center; } img.sc-lmvz-select { display: block; 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)); } select.sc-lmvz-select { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; border: none; background: transparent; margin: 0; padding: 0; } [disabled].sc-lmvz-select-h .select-wrapper.sc-lmvz-select { opacity: var(--lmvz-select-disabled-opacity); pointer-events: none; cursor: not-allowed; } [role='status'].sc-lmvz-select { margin-top: 4px; padding-left: var(--lmvz-select-padding-x); font-size: var(--lmvz-select-label-font-size); color: var(--lmvz-select-helper-color); line-height: normal; }`;
|
|
334
|
-
|
|
335
|
-
let selectIdCounter = 0;
|
|
336
|
-
const LmvzSelect = class extends ReactiveControllerHost {
|
|
337
|
-
get el() { return getElement(this); }
|
|
338
|
-
get validationEl() {
|
|
339
|
-
return this.el;
|
|
340
|
-
}
|
|
341
|
-
selectId = `lmvz-select-${selectIdCounter++}`;
|
|
342
|
-
nativeSelectEl;
|
|
343
|
-
constructor(hostRef) {
|
|
344
|
-
super();
|
|
345
|
-
registerInstance(this, hostRef);
|
|
346
|
-
this.lmvzChange = createEvent(this, "lmvzChange");
|
|
347
|
-
this.addController(new AriaValidationController(this));
|
|
348
|
-
}
|
|
349
|
-
lmvzChange;
|
|
350
|
-
value;
|
|
351
|
-
label;
|
|
352
|
-
helperText;
|
|
353
|
-
disabled = false;
|
|
354
|
-
required = false;
|
|
355
|
-
name;
|
|
356
|
-
selectedLabel = '';
|
|
357
|
-
get hasValue() {
|
|
358
|
-
return Boolean(this.value);
|
|
359
|
-
}
|
|
360
|
-
componentDidLoad() {
|
|
361
|
-
this.syncSelectedLabel();
|
|
362
|
-
super.componentDidLoad();
|
|
363
|
-
}
|
|
364
|
-
handleValueChange(newValue) {
|
|
365
|
-
if (this.nativeSelectEl && this.nativeSelectEl.value !== (newValue ?? '')) {
|
|
366
|
-
this.nativeSelectEl.value = newValue ?? '';
|
|
367
|
-
}
|
|
368
|
-
this.syncSelectedLabel();
|
|
369
|
-
}
|
|
370
|
-
syncSelectedLabel() {
|
|
371
|
-
if (!this.nativeSelectEl)
|
|
372
|
-
return;
|
|
373
|
-
const idx = this.nativeSelectEl.selectedIndex;
|
|
374
|
-
this.selectedLabel = idx >= 0 ? (this.nativeSelectEl.options[idx]?.text ?? '') : '';
|
|
375
|
-
}
|
|
376
|
-
handleChange = (event) => {
|
|
377
|
-
const select = event.target;
|
|
378
|
-
this.value = select.value;
|
|
379
|
-
this.syncSelectedLabel();
|
|
380
|
-
this.lmvzChange.emit(select.value);
|
|
381
|
-
};
|
|
382
|
-
render() {
|
|
383
|
-
const hasValue = this.hasValue;
|
|
384
|
-
const shouldShowLabel = hasValue;
|
|
385
|
-
return (h(Host, { key: '2e93e1107001237254f4f9d1a0bee5caf1ab2471' }, h("div", { key: 'a5403bf851515d24b9a112661f457b9a6d1bc189', class: "select-wrapper" }, h("label", { key: 'c0821beee587d720ef3bf185094645dd2d22b701', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && h("span", { key: '3659c7947caa419ccf21954da3efc24e5bac6963', "aria-hidden": "true" }, " *")), h("div", { key: '65db22f89f119cbb96ed9de556fd60d7d1c5cce3', "aria-hidden": "true" }, h("span", { key: 'e0e53b6fe461ab078a6268f2f0050a14722d15a4' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && h("span", { key: '2f508f1d94c1437da702e81d2520f9df3f9e96ea', "aria-hidden": "true" }, " *")), h("span", { key: '7bbc03b8f6665341874e6bcc02592bfdc7aa5861' }, h("img", { key: '6453a928e8aa56bfd39b40d11685554bb37c16e4', src: chevronDownSvg, alt: "" }))), h("select", { key: '40170929a774d271c1487e16d15410715471c06b', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && h("option", { key: '5d29283095f87f4d3d38183c4a7e42f5b0e806e4', value: "", disabled: true, selected: true, hidden: true }), h("slot", { key: '56bf95ba5ab35768681eac7770e56560f6b57f88' }))), this.helperText && h("div", { key: 'fbe735b28acdd21088d377635804781197c0b1b1', role: "status" }, this.helperText)));
|
|
386
|
-
}
|
|
387
|
-
static get watchers() { return {
|
|
388
|
-
"value": [{
|
|
389
|
-
"handleValueChange": 0
|
|
390
|
-
}]
|
|
391
|
-
}; }
|
|
392
|
-
};
|
|
393
|
-
LmvzSelect.style = lmvzSelectCss();
|
|
394
|
-
|
|
395
|
-
export { LmvzButton as lmvz_button, LmvzInput as lmvz_input, LmvzSelect as lmvz_select };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as i,r as e,h as s,H as t}from"./p-smGPjoDX.js";import{r,t as o,l as n,c as m,s as c}from"./p-DyamyJqO.js";import{R as a,A as l}from"./p-B7KSylv_.js";import{f as h,e as v}from"./p-BEoSvNlI.js";import"./p-D7RHrBYK.js";import"./p-D7GrtdQF.js";const p=class extends a{intersectionObserver;ariaValidationController=new l(this);get el(){return i(this)}validationEl;icon;weight="medium";size="md";iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(i){super(),e(this,i),this.addController(this.ariaValidationController)}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()})),super.connectedCallback()}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),super.disconnectedCallback()}async loadIconPathData(){const{icon:i,visible:e}=this;i&&e&&(this.iconData=await r(h(this.icon).pipe(o((e=>n(`Error loading icon "${i}":`,e.message,e.cause,e.stack))),m((()=>c(v()))))))}componentDidRender(){this.validationEl=this.el.querySelector("svg"),this.ariaValidationController.revalidateAria(),super.componentDidRender()}render(){return s(t,{key:"8b1ce550253e994650fe91de38496aff7c7eccc2",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(i,e=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((e=>{e.some((e=>!!e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,i(),!0)))}),{rootMargin:`${e}px`}),this.intersectionObserver.observe(this.el)):i()}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}};p.style=".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)}}";export{p as lmvz_icon}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as M,r as N,h as e,H as I}from"./p-smGPjoDX.js";import{R as j,A as D}from"./p-B7KSylv_.js";import{g,a}from"./p-DpoTUPzl.js";import"./p-D7RHrBYK.js";class u{host;elements=[];constructor(M){this.host=M}hostDidRender(){this.host.el.addEventListener("keydown",this.handleKeydown)}updateElements(M){this.elements=M}handleKeydown=M=>{const{key:N}=M;if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(N))return;const e=g(document),I=this.getNextFocusableElement(e,["ArrowDown","ArrowRight"].includes(N)?"down":"up");I&&(M.preventDefault(),I.focus?.())};getNextFocusableElement(M,N){const{elements:e}=this,I=e.indexOf(M);if(-1===I)return null;let j=null;if("down"===N?j=(I+1)%e.length:"up"===N&&(j=(I-1+e.length)%e.length),null==j)return null;const D=e[j];return a(D)?D:this.getNextFocusableElement(D,N)}}const i=class extends j{get el(){return M(this)}get validationEl(){return this.el}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new u(this);get primaryMenuitems(){return this.primarySlot.assignedElements({flatten:!1})}get secondaryMenuitems(){return this.secondarySlot.assignedElements({flatten:!0})}get role(){return"banner"}lmvzActiveNav;get secondarySlotName(){return`connect-nav-${this.lmvzActiveNav}`}constructor(M){super(),N(this,M),this.addController(new D(this,{reValidateOnPropChanges:!0})),this.addController(this.keyboardNavigationController)}handleActiveNavChange(){this.updateElementsActive()}componentDidLoad(){this.primarySlot.addEventListener("slotchange",this.handlePrimaryNavItemsChange.bind(this)),this.handlePrimaryNavItemsChange(),this.secondarySlot.addEventListener("slotchange",this.handleSecondaryNavItemsChange.bind(this)),super.componentDidLoad()}handlePrimaryNavItemsChange(){const M=this.primaryMenuitems;M.length?(M.forEach((M=>{M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-controls","nav-secondary")})),this.updateElementsActive(),this.updateKeyboardNavSubjects()):console.warn("Primary slot has no assigned elements. Please add navigation items to the primary slot.")}handleSecondaryNavItemsChange(){this.secondaryMenuitems.length&&this.updateKeyboardNavSubjects()}updateKeyboardNavSubjects(){this.keyboardNavigationController.updateElements([...this.primaryMenuitems,...this.secondaryMenuitems])}updateElementsActive(){let M;this.primaryMenuitems.forEach((N=>{const e=N.id===this.lmvzActiveNav;e&&(M=N.textContent||N.id),N.setAttribute("aria-expanded",e?"true":"false")})),this.secondaryNav.setAttribute("aria-label",`Untermenü für ${M}`)}delegateFocus(){const M=this.primaryMenuitems[0];M&&M.focus()}render(){return e(I,{key:"1ac6c66802a59061742f677e0c3ab2fb1b12363b",onFocus:this.delegateFocus.bind(this)},e("div",{key:"ea534c09323539a0df13cb00d0aec382d3c81dd8",class:"brand"},e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rmittelverlag Zürich"}))),e("nav",{key:"8e4f9db8b85f3dbea452bb309ae55bc1fac16dcb","aria-label":"Hauptnavigation"},e("div",{key:"681c36337dcb3bc4e1833e602af4c642ab1c6acb",role:"menubar",class:"primary-menubar"},e("slot",{key:"6298235a3421ab083943f25a93c239ae686b8a20",name:"nav-primary",ref:M=>this.primarySlot=M}),e("div",{key:"64b02f2562779e5e412e5076c66d9fcd2a0bb6f5",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:M=>this.secondaryNav=M},e("slot",{key:"6e0589f700073ba93dc15f5873ca61e03eba5975",name:this.secondarySlotName,ref:M=>this.secondarySlot=M})))),e("div",{key:"50a84ddd9ed61f6c2a1fa32a91ccfdcfb1f3ae94",class:"actions"},e("slot",{key:"e57d76343a0f21666479e9a1d3ae4e94843b403e",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}};i.style=":host{display:flex;width:100vw;flex-direction:row;align-items:center;box-sizing:border-box;background-color:var(--lmvz-semantic-color-surface-primary, #ffffff);--lmvz-header-x-spacing-level-1:var(--lmvz-dimension-8-28, clamp(0.5rem, 0.2rem + 1.29vw, 1.75rem));--lmvz-header-x-spacing-level-2:var(--lmvz-component-buttongroup-wrapper-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem));padding:var(--lmvz-dimension-8-16, clamp(0.5rem, 0.38rem + 0.52vw, 1rem)) var(--lmvz-header-x-spacing-level-1);gap:var(--lmvz-header-x-spacing-level-1);.brand{display:inline-flex;justify-content:center;align-items:center}#fallback-logo-lmvz{height:34px;width:auto}nav{flex-grow:1}.primary-menubar{display:flex;flex-direction:row;align-items:center}.secondary-menubar{display:flex;flex-direction:row;align-items:center;margin-left:var(--lmvz-header-x-spacing-level-2);padding-left:var(--lmvz-header-x-spacing-level-2);border-left:1px solid var(--lmvz-semantic-color-border-default, #e0e0e0)}}";export{i as lmvz_header}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e,r as t,c as r,h as o,H as m}from"./p-smGPjoDX.js";import{R as a,A as l}from"./p-B7KSylv_.js";import{E as i}from"./p-CN0JX9-m.js";import"./p-D7RHrBYK.js";const n=class extends a{get el(){return e(this)}validationEl=this.el;validationSlot;get role(){return"menuitem"}get ti(){return 0}lmvzActivation;constructor(e){super(),t(this,e),this.lmvzActivation=r(this,"lmvzActivation"),this.addController(new l(this,{validationTiming:"slot"})),this.addController(new i(this))}render(){return o(m,{key:"a022a198618ac628cb39c97b29cf0c332b522e79"},o("slot",{key:"c8dab82b31b49db3d966cacb1cf9ef5cb1763797",ref:e=>this.validationSlot=e}))}};n.style="@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); }";export{n as lmvz_menuitem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as e,h as t,H as a}from"./p-smGPjoDX.js";import{c as o}from"./p-D7GrtdQF.js";const m=class{constructor(t){r(this,t),this.primaryAction=e(this,"primaryAction")}cardTitle;imageUrl;description;primaryActionLabel="";primaryAction;get fallbackImage(){return o("card-placeholder.svg")}_onPrimaryClick(){this.primaryAction.emit()}_onOverflowClick(r){console.log(r)}render(){return t(a,{key:"ba2e8d9e25428c744da2470cbd677306c56b09ae",role:"article"},t("div",{key:"54ff7545559a4b6fb00c94909717234f4dfedd7c",class:"top"},t("div",{key:"7bff35f247b6e8aca9b6346103139daa65ca16a3",class:"image-wrapper",style:{backgroundImage:`url(${this.imageUrl??this.fallbackImage})`}},t("div",{key:"c2c3d21227175b9dc0a55c75294f6c21bc713a26",class:"chip-slot"},t("slot",{key:"1a7002aab5fc3f9f698c3d1678f8819ea36f91d3",name:"chip"})))),t("div",{key:"a313321abe4da83db4b2ba64fdefa28edde93d41",class:"bottom"},t("header",{key:"f5ba333fcaa59d5b4f61dee94aba4628f49db9d7"},t("h2",{key:"b7d9ad6944b136476703cde89f885b189583eef1",class:"title"},this.cardTitle)),t("p",{key:"6594626904a4f9fbc53d5956b71bbdefe00add8c",class:"description"},this.description),t("div",{key:"d8bbfebeb572fcf6990160a0dba7c5ae8a5a7fc7",class:"actions"},t("button",{key:"6311a97a18412f8fbf8eb33e8a0f7a17700e71c6",class:"primary",onClick:this._onPrimaryClick.bind(this),"data-testid":"primary"},this.primaryActionLabel),t("button",{key:"12033ad5018d100f84f0149d83dc965d8e5b2c66",class:"tertiary","aria-label":"More actions",onClick:this._onOverflowClick},t("span",{key:"e11f8008542b4f7f70d1273bb31200c50d02aabb",class:"icon-placeholder"},"...")))))}static get assetsDirs(){return["../../assets"]}};m.style="@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; }";export{m as lmvz_card}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c,h as t,H as a}from"./p-smGPjoDX.js";const i=class{constructor(t){s(this,t),this.actionClick=c(this,"actionClick")}actionClick;_onClick(s){this.actionClick.emit(s)}render(){return t(a,{key:"71303bfe6ac64a96edd21800ae5e8c43a3a38c23",onClick:this._onClick.bind(this)},t("slot",{key:"94922fdfd355e7e4d1b78bedb80ae814c186b199"}))}};i.style=":host{display:block}";export{i as lmvz_action}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=Symbol("__lmvzAriaValidationRuntimeState"),t="lmvz:aria-validation-runtime-changed";function a(){const t=globalThis;return t[n]||(t[n]={enabled:!1}),t[n]}function o(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(t))}const i=()=>a().enabled,e=()=>a().verboseLogging??!1,s=(n={})=>{const t=a();t.enabled||(Object.assign(t,n),t.enabled=!0,async function(...n){const t=await async function(){const n=a();if(!n.enabled)return null;if(n.runtime)return n.runtime;n.loadPromise||(n.loadPromise=import("./p-cM67HC0Z.js").catch((()=>null)));const t=await n.loadPromise;return t&&(n.runtime=t),t}();a().enabled&&(t?t.initializeValidationStream(...n):console.warn("Failed to load aria validation runtime"))}().then((()=>{o()})))},c=()=>{const n=a();n.enabled&&(n.enabled=!1,o())};function l(...n){const{enabled:t,runtime:o,loadPromise:i}=a();t&&(o||!i?o.enqueueValidation(...n):i.then((t=>{t&&t.enqueueValidation(...n)})))}export{t as A,c as d,s as e,i,l as q,e as u}
|