@lmvz-ds/components 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/cjs/{ds.constants-C6eKRAEu.js → ds.constants-pI-qkOYv.js} +2 -0
- package/cjs/index.cjs.js +2 -1
- package/cjs/lmvz-button-group.cjs.entry.js +1 -1
- package/cjs/lmvz-button_2.cjs.entry.js +1 -1
- package/cjs/lmvz-card.cjs.entry.js +58 -14
- package/cjs/lmvz-checkbox.cjs.entry.js +1 -1
- package/cjs/lmvz-chip.cjs.entry.js +2 -2
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-datepicker.cjs.entry.js +2 -2
- package/cjs/lmvz-header_2.cjs.entry.js +1 -1
- package/cjs/lmvz-input.cjs.entry.js +2 -2
- package/cjs/lmvz-link.cjs.entry.js +2 -2
- package/cjs/lmvz-menuitem.cjs.entry.js +1 -1
- package/cjs/lmvz-message.cjs.entry.js +1 -1
- package/cjs/lmvz-modal.cjs.entry.js +1 -1
- package/cjs/lmvz-popover.cjs.entry.js +1 -1
- package/cjs/lmvz-radio.cjs.entry.js +1 -1
- package/cjs/lmvz-select.cjs.entry.js +1 -1
- package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
- package/cjs/lmvz-spinner.cjs.entry.js +1 -1
- package/cjs/lmvz-tab.cjs.entry.js +1 -1
- package/cjs/lmvz-tabs.cjs.entry.js +1 -1
- package/cjs/lmvz-toggle.cjs.entry.js +1 -1
- package/cjs/loader.cjs.js +1 -1
- package/collection/api/ds.constants.js +1 -0
- package/collection/components/lmvz-card/lmvz-card.css +82 -194
- package/collection/components/lmvz-card/lmvz-card.js +131 -38
- package/collection/components/lmvz-checkbox/lmvz-checkbox.js +1 -1
- package/collection/components/lmvz-chip/lmvz-chip.js +1 -1
- package/collection/components/lmvz-datepicker/lmvz-datepicker.js +2 -2
- package/collection/components/lmvz-header/lmvz-header.js +1 -1
- package/collection/components/lmvz-icon/lmvz-icon.js +1 -1
- package/collection/components/lmvz-input/lmvz-input.js +2 -2
- package/collection/components/lmvz-link/lmvz-link.js +1 -1
- package/collection/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/collection/components/lmvz-message/lmvz-message.js +1 -1
- package/collection/components/lmvz-modal/lmvz-modal.js +1 -1
- package/collection/components/lmvz-popover/lmvz-popover.js +1 -1
- package/collection/components/lmvz-radio/lmvz-radio.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-snackbar/lmvz-snackbar.js +1 -1
- package/collection/components/lmvz-spinner/lmvz-spinner.js +1 -1
- package/collection/components/lmvz-tab/lmvz-tab.js +1 -1
- package/collection/components/lmvz-tabs/lmvz-tabs.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/components/index.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-datepicker.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-link.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-message.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-popover.js +1 -1
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.js +1 -1
- package/components/lmvz-spinner.js +1 -1
- package/components/lmvz-tab.js +1 -1
- package/components/lmvz-tabs.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/p-Buw_s-9k.js +1 -0
- package/components/{p-DSDBThqb.js → p-ChNEjbnY.js} +1 -1
- package/components/{p-niXjuPxe.js → p-DMdV-cnt.js} +1 -1
- package/components/{p-Bc5MM0zh.js → p-D_sr5Z0Q.js} +1 -1
- package/components/{p-D_mff3n7.js → p-qLAod5PR.js} +1 -1
- package/components/{p-DXhP6UeF.js → p-sJgTdXHR.js} +1 -1
- package/esm/{ds.constants-0ctLESas.js → ds.constants-Buw_s-9k.js} +2 -1
- package/esm/index.js +1 -1
- package/esm/lmvz-button-group.entry.js +1 -1
- package/esm/lmvz-button_2.entry.js +1 -1
- package/esm/lmvz-card.entry.js +59 -15
- package/esm/lmvz-checkbox.entry.js +1 -1
- package/esm/lmvz-chip.entry.js +2 -2
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-datepicker.entry.js +2 -2
- package/esm/lmvz-header_2.entry.js +1 -1
- package/esm/lmvz-input.entry.js +2 -2
- package/esm/lmvz-link.entry.js +2 -2
- package/esm/lmvz-menuitem.entry.js +1 -1
- package/esm/lmvz-message.entry.js +1 -1
- package/esm/lmvz-modal.entry.js +1 -1
- package/esm/lmvz-popover.entry.js +1 -1
- package/esm/lmvz-radio.entry.js +1 -1
- package/esm/lmvz-select.entry.js +1 -1
- package/esm/lmvz-snackbar.entry.js +1 -1
- package/esm/lmvz-spinner.entry.js +1 -1
- package/esm/lmvz-tab.entry.js +1 -1
- package/esm/lmvz-tabs.entry.js +1 -1
- package/esm/lmvz-toggle.entry.js +1 -1
- package/esm/loader.js +1 -1
- package/hydrate/index.js +83 -38
- package/hydrate/index.mjs +83 -38
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/{p-f24f5207.entry.js → p-170dea97.entry.js} +1 -1
- package/lmvz-components/{p-efd9d50e.entry.js → p-18a894e4.entry.js} +1 -1
- package/lmvz-components/{p-f911691c.entry.js → p-19c9f747.entry.js} +1 -1
- package/lmvz-components/{p-87f21ac9.entry.js → p-377c45a7.entry.js} +1 -1
- package/lmvz-components/{p-773e9d95.entry.js → p-6292da52.entry.js} +1 -1
- package/lmvz-components/{p-ebad823c.entry.js → p-65efa76e.entry.js} +1 -1
- package/lmvz-components/{p-27e8b4fa.entry.js → p-67b86084.entry.js} +1 -1
- package/lmvz-components/{p-7cbfbc88.entry.js → p-6ffd9391.entry.js} +1 -1
- package/lmvz-components/{p-304c7554.entry.js → p-77fd3ce2.entry.js} +1 -1
- package/lmvz-components/{p-e35f49a1.entry.js → p-96764fa9.entry.js} +1 -1
- package/lmvz-components/p-Buw_s-9k.js +1 -0
- package/lmvz-components/{p-6aae1df9.entry.js → p-a70079b6.entry.js} +1 -1
- package/lmvz-components/p-aa643b58.entry.js +1 -0
- package/lmvz-components/{p-335b3867.entry.js → p-b14966a6.entry.js} +1 -1
- package/lmvz-components/{p-8ba6ec19.entry.js → p-b9d29e90.entry.js} +1 -1
- package/lmvz-components/{p-41286514.entry.js → p-bf728ef8.entry.js} +1 -1
- package/lmvz-components/{p-143e9621.entry.js → p-c6309d6c.entry.js} +1 -1
- package/lmvz-components/{p-220e455e.entry.js → p-d466fe8f.entry.js} +1 -1
- package/lmvz-components/{p-edec4d09.entry.js → p-dd4a62e1.entry.js} +1 -1
- package/lmvz-components/{p-d73bb7fd.entry.js → p-e1c75def.entry.js} +1 -1
- package/lmvz-components/{p-93b781ca.entry.js → p-fd29789f.entry.js} +1 -1
- package/manifest.json +133 -35
- package/package.json +1 -1
- package/types/api/ds.constants.d.ts +1 -0
- package/types/api/ds.types.d.ts +4 -0
- package/types/components/lmvz-card/lmvz-card.d.ts +17 -6
- package/types/components.d.ts +51 -19
- package/components/p-0ctLESas.js +0 -1
- package/lmvz-components/p-0ctLESas.js +0 -1
- package/lmvz-components/p-c884c76e.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -6460,6 +6460,7 @@ function negate(delegate) {
|
|
|
6460
6460
|
const variants = ['primary', 'secondary', 'tertiary', 'danger'];
|
|
6461
6461
|
const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
|
|
6462
6462
|
const chipSizes = ['default', 'small'];
|
|
6463
|
+
const cardSizes = ['large', 'small'];
|
|
6463
6464
|
const linkTypes = ['internal', 'external'];
|
|
6464
6465
|
|
|
6465
6466
|
const PRIORITY_MAP = {
|
|
@@ -9009,47 +9010,91 @@ function joinPath(...parts) {
|
|
|
9009
9010
|
return parts.filter(Boolean).join('/').replace('//', '/').replace('/./', '/');
|
|
9010
9011
|
}
|
|
9011
9012
|
|
|
9012
|
-
const lmvzCardCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('RouterBook-Regular'), local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'); font-weight: 400; } @font-face { font-family: Router; src: local('RouterMedium-Regular'), local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'); font-weight: 500; } @font-face { font-family: Router; src: local('RouterBold-Regular'), local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'); font-weight: 700; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } *[hidden] { display: none !important; } hr { height: 0; border: none; margin: var(--lmvz-dimension-8-4, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)) 0; border-top: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-subtle, #f0f0f0); } fieldset { border: none; margin: 0; padding: 0; } legend { padding: 0; display: block; } } .sc-lmvz-card-h { & { & { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary, #f0f0f0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-secondary, #000000)); --lmvz-button-radius: var(--lmvz-button-radius-override, var(--lmvz-component-input-radius-default, 999px)); --lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-button-padding, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)))); --lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-button-padding, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)))); --lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem))); --lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem))); --lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-md-strong, normal 700 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router)); --lmvz-button-border-width: var(--lmvz-button-border-width-override, 0); --lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent); display: inline-flex; align-items: center; justify-content: var(--lmvz-button-content-justification, center); gap: var(--lmvz-button-gap, var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem))); box-sizing: border-box; padding-block: var(--lmvz-button-padding-block, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))); padding-inline: var(--lmvz-button-padding-inline, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))); min-height: var(--lmvz-button-min-height, var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem))); border: var(--lmvz-button-border-width, 0) solid var(--lmvz-button-border-color, transparent); border-radius: var(--lmvz-button-radius, var(--lmvz-component-input-radius-default, 999px)); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } & > * { font: inherit; color: inherit; } &:focus-visible { outline: var(--lmvz-ds-outline, 1px solid #0e7ab4); outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)); position: relative; z-index: 1; } &:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } &:not([disabled]):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0)); } &:not([disabled]):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-active, #d4d4d4)); } &.primary { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary, #000000)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-border-width: var(--lmvz-button-border-width-override, 0); --lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent); } &.primary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-hover, #2e2e2e)); } &.primary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-active, #545454)); } &.danger { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff)); --lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419)); } &.danger:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-danger, #fbdfe0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419)); } &.danger:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-on-danger-subtle, #e8454b)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419)); } &.tertiary { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary, #000000)); } &.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-hover, #000000)); } &.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0)); --lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-active, #000000)); } &.small { --lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))); --lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))); --lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-sm, clamp(0.38rem, 0.31rem + 0.26vw, 0.63rem))); --lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-sm, clamp(2rem, 1.94rem + 0.26vw, 2.25rem))); --lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-sm-strong, normal 700 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5 Router)); } &.large { --lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))); --lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))); --lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-lg, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-lg, clamp(2.75rem, 2.69rem + 0.26vw, 3rem))); --lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-lg-strong, normal 700 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router)); } } display: flex; min-width: var(--lmvz-card-component-card-minwidth, 20.4375rem); max-width: var(--lmvz-card-component-card-maxwidth, 21.6875rem); flex-direction: column; align-items: flex-start; border-radius: var(--lmvz-semantic-border-radius-lg, 14px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-default, #e0e0e0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); } *.sc-lmvz-card { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); } .top.sc-lmvz-card { display: flex; padding: var(--lmvz-dimension-12-8, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); flex-direction: column; justify-content: center; align-items: center; align-self: stretch; } .bottom.sc-lmvz-card { display: flex; min-width: 150px; padding: var(--lmvz-dimension-6-4, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)) var(--lmvz-dimension-14-10, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-14-10, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-14-10, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)); flex-direction: column; align-items: flex-start; align-self: stretch; } .title.sc-lmvz-card { margin: 0; display: flex; justify-content: center; align-items: center; align-self: stretch; padding-bottom: var(--lmvz-global-s4, 4px); overflow-wrap: break-word; font: var(--lmvz-typography-heading-2xl, 500 clamp(2rem, 1.82rem + 0.78vw, 2.75rem) / 1.4 Router); } .description.sc-lmvz-card { display: flex; margin: 0; padding-bottom: var(--lmvz-component-body-sm-padding-bottom, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-items: flex-start; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); } .image-wrapper.sc-lmvz-card { aspect-ratio: 4 / 3; width: 100%; background-size: cover; background-position: center; flex: 1 0 0; align-self: stretch; border-radius: var(--lmvz-semantic-border-radius-md, 6px); } .actions.sc-lmvz-card { margin-top: var(--lmvz-component-form-wrapper-gap-y, clamp(1.13rem, 0.97rem + 0.65vw, 1.75rem)); display: flex; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-self: stretch; } button.primary.sc-lmvz-card, lmvz-button.primary.sc-lmvz-card { display: flex; justify-content: center; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); flex: 1 0 0; }`;
|
|
9013
|
+
const lmvzCardCss = () => ` @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('RouterBook-Regular'), local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'); font-weight: 400; } @font-face { font-family: Router; src: local('RouterMedium-Regular'), local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'); font-weight: 500; } @font-face { font-family: Router; src: local('RouterBold-Regular'), local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'); font-weight: 700; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } *[hidden] { display: none !important; } hr { height: 0; border: none; margin: var(--lmvz-dimension-8-4, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)) 0; border-top: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-subtle, #f0f0f0); } fieldset { border: none; margin: 0; padding: 0; } legend { padding: 0; display: block; } } :host { --lmvz-card-local-min-width: 320px; --lmvz-card-local-max-width: 360px; --lmvz-card-local-sm-width: 232px; display: flex; flex-direction: column; align-items: flex-start; min-width: var(--lmvz-card-local-min-width); max-width: var(--lmvz-card-local-max-width); border-radius: var(--lmvz-component-wrapper-md-border-radius, 18px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-subtle, #f0f0f0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); box-shadow: 0 var(--lmvz-semantic-shadow-l1-1-position-y, 2px) var(--lmvz-semantic-shadow-l1-1-blur, 4px) 0 var(--lmvz-semantic-color-shadow-l1-default, rgba(120, 120, 128, 0.08)); margin-bottom: var(--lmvz-component-card-lg-margin-bottom, clamp(1rem, 0.88rem + 0.52vw, 1.5rem)); } :host([size='small']) { width: var(--lmvz-card-local-sm-width); min-width: 0; max-width: none; border-radius: var(--lmvz-component-wrapper-sm-border-radius, 14px); margin-bottom: var(--lmvz-component-card-sm-margin-bottom, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } * { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); } .image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; align-self: stretch; border-top-left-radius: var(--lmvz-component-wrapper-md-border-radius, 18px); border-top-right-radius: var(--lmvz-component-wrapper-md-border-radius, 18px); } :host([size='small']) .image { border-top-left-radius: var(--lmvz-component-wrapper-sm-border-radius, 14px); border-top-right-radius: var(--lmvz-component-wrapper-sm-border-radius, 14px); } .content { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: var(--lmvz-component-spacing-xs, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem)); padding: var(--lmvz-component-wrapper-md-padding-y, clamp(1rem, 0.88rem + 0.52vw, 1.5rem)) var(--lmvz-component-wrapper-md-padding-x, clamp(1rem, 0.88rem + 0.52vw, 1.5rem)); } :host([size='small']) .content { gap: var(--lmvz-component-spacing-2xs, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem)); padding: var(--lmvz-component-wrapper-sm-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)) var(--lmvz-component-wrapper-sm-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } .title-block { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: var(--lmvz-component-spacing-2xs, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem)); } .card-default-title { margin: 0; overflow-wrap: break-word; font: var(--lmvz-typography-heading-lg, 500 clamp(1.13rem, 1.03rem + 0.39vw, 1.5rem) / 1.5 Router); } :host([size='small']) .card-default-title { font: var(--lmvz-typography-body-lg-strong, 500 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } ::slotted([slot='card-title']) { margin: 0; overflow-wrap: break-word; } :host([size='small']) ::slotted([slot='card-title']) { font: var(--lmvz-typography-body-lg-strong, 500 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } .description { margin: 0; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5 Router); } :host([size='small']) .description { font: var(--lmvz-typography-body-sm, 400 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5 Router); } slot[name='chip'] { display: contents; } .actions { display: flex; align-items: center; align-self: stretch; padding-top: var(--lmvz-component-spacing-md, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } lmvz-button.action { flex: 1 0 0; } `;
|
|
9013
9014
|
|
|
9015
|
+
const HEADING_TAGS = new Set(['HEADER', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6']);
|
|
9014
9016
|
class LmvzCard {
|
|
9015
9017
|
constructor(hostRef) {
|
|
9016
9018
|
registerInstance(this, hostRef);
|
|
9017
|
-
this.
|
|
9019
|
+
this.lmvzCardAction = createEvent(this, "lmvzCardAction", 7);
|
|
9018
9020
|
}
|
|
9021
|
+
get el() { return getElement(this); }
|
|
9022
|
+
titleSlotElement;
|
|
9023
|
+
warnedCases = new Set();
|
|
9024
|
+
size = 'large';
|
|
9019
9025
|
cardTitle;
|
|
9020
|
-
imageUrl;
|
|
9021
9026
|
description;
|
|
9022
|
-
|
|
9023
|
-
|
|
9027
|
+
imageUrl;
|
|
9028
|
+
imageAlt = '';
|
|
9029
|
+
actionLabel;
|
|
9030
|
+
lmvzCardAction;
|
|
9031
|
+
normalizeSize(value) {
|
|
9032
|
+
const normalizedSize = cardSizes.includes(value) ? value : 'large';
|
|
9033
|
+
if (normalizedSize !== this.size) {
|
|
9034
|
+
this.size = normalizedSize;
|
|
9035
|
+
}
|
|
9036
|
+
}
|
|
9037
|
+
componentWillLoad() {
|
|
9038
|
+
this.normalizeSize(this.size);
|
|
9039
|
+
}
|
|
9040
|
+
componentDidLoad() {
|
|
9041
|
+
const titleSlot = this.el.shadowRoot?.querySelector('slot[name="card-title"]');
|
|
9042
|
+
titleSlot?.addEventListener('slotchange', () => this.checkTitleContent());
|
|
9043
|
+
this.checkTitleContent();
|
|
9044
|
+
}
|
|
9024
9045
|
get fallbackImage() {
|
|
9025
|
-
return createAssetUrlSafely('card-placeholder.svg');
|
|
9046
|
+
return String(createAssetUrlSafely('card-placeholder.svg'));
|
|
9026
9047
|
}
|
|
9027
|
-
|
|
9028
|
-
this.
|
|
9048
|
+
handleActionClick = () => {
|
|
9049
|
+
this.lmvzCardAction.emit();
|
|
9050
|
+
};
|
|
9051
|
+
get slottedTitleElement() {
|
|
9052
|
+
return this.titleSlotElement?.assignedElements()?.at(0);
|
|
9029
9053
|
}
|
|
9030
|
-
|
|
9031
|
-
|
|
9054
|
+
checkTitleContent() {
|
|
9055
|
+
if (!isAriaValidationEnabled())
|
|
9056
|
+
return;
|
|
9057
|
+
const slotted = this.slottedTitleElement;
|
|
9058
|
+
if (slotted) {
|
|
9059
|
+
const tag = slotted.tagName;
|
|
9060
|
+
if (!HEADING_TAGS.has(tag)) {
|
|
9061
|
+
this.warnOnce(`non-heading:${tag}`, `[lmvz-card] Element <${tag.toLowerCase()}> slotted into "card-title" is not a heading. Slot a heading element (h2-h5) instead.`);
|
|
9062
|
+
}
|
|
9063
|
+
}
|
|
9064
|
+
else if (!this.cardTitle) {
|
|
9065
|
+
this.warnOnce('missing-title', '[lmvz-card] Neither a "card-title" slotted heading nor a non-empty "cardTitle" prop was supplied.');
|
|
9066
|
+
}
|
|
9067
|
+
}
|
|
9068
|
+
warnOnce(key, message) {
|
|
9069
|
+
if (this.warnedCases.has(key))
|
|
9070
|
+
return;
|
|
9071
|
+
this.warnedCases.add(key);
|
|
9072
|
+
console.warn(message);
|
|
9032
9073
|
}
|
|
9033
9074
|
render() {
|
|
9034
|
-
|
|
9035
|
-
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
9036
|
-
};
|
|
9037
|
-
return (hAsync(Host, { key: '1dd819fd7c752af8d15001c08f7f60c6ea7278b9', role: "article" }, hAsync("div", { key: 'e0cc822e627b6bbe665e4faa705cc46a09bac7c6', class: "top" }, hAsync("div", { key: 'db79cb5a67ebdd6097f985e4b4bd27665b6329ef', class: "image-wrapper", style: imgStyle }, hAsync("div", { key: '90facc8595ddbbf31e3768faa8254a82ab8d3e65', class: "chip-slot" }, hAsync("slot", { key: 'cb2e6a1053aae2b2ca90c52c175e3c4174c89d23', name: "chip" })))), hAsync("div", { key: 'cb11069a329385178677e92d08044e0fe8e5b982', class: "bottom" }, hAsync("header", { key: '1e6076352124ca03de2fb13c17a565b4f492567e' }, hAsync("h2", { key: '73f11099fb751bd4f967dbe49b79763b6a8268f3', class: "title" }, this.cardTitle)), hAsync("p", { key: '36cf87b4c2004bff1e65feedd13e137d67115de3', class: "description" }, this.description), hAsync("div", { key: '6c1d82f4968ce8252307858e6ad0681274f06397', class: "actions" }, hAsync("button", { key: '0366e0caaf9235a3eaf7bfcab116e6a828fb248d', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), hAsync("button", { key: '4f435e79d75a621d6fe065471a915b55308ad15d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, hAsync("span", { key: '7dec97e0b0ca58c40fc5308cc7863acafa8c5147', class: "icon-placeholder" }, "..."))))));
|
|
9075
|
+
return (hAsync(Host, { key: '21ac0a567bb88d05d247cc3150bf2e7ce26972c5', role: "article" }, hAsync("img", { key: '6cea11ee015059d5537ab64c7cbb1655ac984cb1', class: "image", src: this.imageUrl ?? this.fallbackImage, alt: this.imageAlt, loading: "lazy", decoding: "async" }), hAsync("div", { key: 'cd29132d8268fb5a025cde5c33a858982c8eaaed', class: "content" }, hAsync("div", { key: '0d353a46cae60d81417e5280b39020b2234ad304', class: "title-block" }, hAsync("slot", { key: '4f2734a257ef877d258a717e23855f521c5132a6', name: "card-title", ref: (el) => (this.titleSlotElement = el) }, this.cardTitle && (hAsync("header", { key: '7d526caba45dde6b13bee023e60943711347258a', role: "heading", class: "card-default-title" }, this.cardTitle))), this.description && hAsync("p", { key: '18c3eac26562a592baa29d75674737d11f57beac', class: "description" }, this.description)), hAsync("slot", { key: 'd0d9c40ca8501b0fdfa9d589eeb05692892316a2', name: "chip" }), this.actionLabel && (hAsync("div", { key: '4bd5d9233c0ba1dcda6bebdeff89adbbfe37e4b1', class: "actions" }, hAsync("lmvz-button", { key: '6cefc7ad2859d457ad11b3f4edb1300ba664ef63', class: "action", variant: "secondary", scale: this.size === 'small' ? 'small' : 'default', onLmvzActivation: this.handleActionClick }, this.actionLabel))))));
|
|
9038
9076
|
}
|
|
9039
9077
|
static get assetsDirs() { return ["../../assets"]; }
|
|
9078
|
+
static get watchers() { return {
|
|
9079
|
+
"size": [{
|
|
9080
|
+
"normalizeSize": 0
|
|
9081
|
+
}]
|
|
9082
|
+
}; }
|
|
9040
9083
|
static get style() { return lmvzCardCss(); }
|
|
9041
9084
|
static get cmpMeta() { return {
|
|
9042
|
-
"$flags$":
|
|
9085
|
+
"$flags$": 777,
|
|
9043
9086
|
"$tagName$": "lmvz-card",
|
|
9044
9087
|
"$members$": {
|
|
9088
|
+
"size": [1537],
|
|
9045
9089
|
"cardTitle": [1, "card-title"],
|
|
9046
|
-
"imageUrl": [1, "image-url"],
|
|
9047
9090
|
"description": [1],
|
|
9048
|
-
"
|
|
9091
|
+
"imageUrl": [1, "image-url"],
|
|
9092
|
+
"imageAlt": [1, "image-alt"],
|
|
9093
|
+
"actionLabel": [1, "action-label"]
|
|
9049
9094
|
},
|
|
9050
9095
|
"$listeners$": undefined,
|
|
9051
9096
|
"$lazyBundleId$": "-",
|
|
9052
|
-
"$attrsToReflect$": []
|
|
9097
|
+
"$attrsToReflect$": [["size", "size"]]
|
|
9053
9098
|
}; }
|
|
9054
9099
|
}
|
|
9055
9100
|
|
|
@@ -9180,7 +9225,7 @@ class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
9180
9225
|
this.nativeError = true;
|
|
9181
9226
|
}
|
|
9182
9227
|
render() {
|
|
9183
|
-
return (hAsync(Host, { key: '
|
|
9228
|
+
return (hAsync(Host, { key: 'df48e8af0b992d4f2c564aae67dbd42b6454f2c1' }, hAsync("div", { key: 'fe1256e373ee98cc26ca9031654d4d01f10b96e7', class: "pill" }, hAsync("input", { key: '580af189cb0069dd057464efd8c876c1a2dd3826', type: "checkbox", id: this.checkboxId, checked: this.checkedState, disabled: this.disabled, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.ariaDescribedBy, "aria-errormessage": this.error && this.errorId ? this.errorId : undefined, ref: (el) => (this.nativeInput = el), onChange: this.handleChange, autoFocus: this.autofocus }), hAsync("span", { key: '4a6b3522aa1a43f3c0a7ff203fb5791876555954', class: "box", "aria-hidden": "true" }, this.checkedState && hAsync("span", { key: '3a857015118d911832cdaa1287cee4c63f84afb2', class: "indicator", innerHTML: CHECKMARK_SVG$1 })), hAsync("span", { key: 'aa543c4c37cf220084b3cce423e1d0e48b5c344f', class: "content" }, hAsync("label", { key: '26c8551de719bdd99cce39b9129b59643f2aa44e', htmlFor: this.checkboxId }, this.label), this.helperText && (hAsync("span", { key: '004ead4527953b10b4ab6d89366159d7727320b2', onClick: this.retargetInnerClicks.bind(this), class: "helper-text", id: this.helperId, role: "status" }, this.helperText)))), this.errorMessage && (hAsync("span", { key: '0fa0dcfdf2fe61d510bfe9f0c4f8d16a341f97d7', onClick: this.retargetInnerClicks.bind(this), class: "error-text", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
9184
9229
|
}
|
|
9185
9230
|
static get formAssociated() { return true; }
|
|
9186
9231
|
static get watchers() { return {
|
|
@@ -9281,7 +9326,7 @@ class LmvzChip extends ReactiveControllerHost {
|
|
|
9281
9326
|
}
|
|
9282
9327
|
}, 500);
|
|
9283
9328
|
render() {
|
|
9284
|
-
return (hAsync(Host, { key: '
|
|
9329
|
+
return (hAsync(Host, { key: '2dcc9ccddd24f1db7ec65aeed24a1646cee80c76', type: this.type, size: this.size }, hAsync("slot", { key: '756d785d9bdfdaba8c35641afee0743ff343a184', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), hAsync("span", { key: '3df490bd3149acca605da7d7910be11b80585adf', class: "content-overflow-wrapper" }, hAsync("slot", { key: '5c252427faffaea5a95618df4afced110ff15703', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), hAsync("slot", { key: '493c1ecd319d9afe0896339320cad67aa37289ab', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
|
|
9285
9330
|
}
|
|
9286
9331
|
static get watchers() { return {
|
|
9287
9332
|
"type": [{
|
|
@@ -12036,9 +12081,9 @@ class LmvzDatepicker {
|
|
|
12036
12081
|
render() {
|
|
12037
12082
|
const validationLabels = getValidationLabels(this.locale);
|
|
12038
12083
|
const popoverLabel = this.label ? `${this.label} ${validationLabels.popoverSuffix}` : undefined;
|
|
12039
|
-
return (hAsync(Host, { key: '
|
|
12084
|
+
return (hAsync(Host, { key: '55c1293d79c3c9a1ca591e81c693797194498967' }, hAsync("lmvz-input", { key: '054528d324a2fd99802659a41796da362412bcd9', ref: (el) => {
|
|
12040
12085
|
this.inputEl = el;
|
|
12041
|
-
}, label: this.label ?? '', placeholder: this.effectivePlaceholder, helperText: this.helperText, errorMessage: this.errorMessage, error: this.nativeError, disabled: this.disabled, readonly: this.readonly, required: this.required, value: this.inputText, autocomplete: "off", onLmvzInput: this.handleInputTextChange, onKeyDown: this.handleInputKeydown }, hAsync("lmvz-icon", { key: '
|
|
12086
|
+
}, label: this.label ?? '', placeholder: this.effectivePlaceholder, helperText: this.helperText, errorMessage: this.errorMessage, error: this.nativeError, disabled: this.disabled, readonly: this.readonly, required: this.required, value: this.inputText, autocomplete: "off", onLmvzInput: this.handleInputTextChange, onKeyDown: this.handleInputKeydown }, hAsync("lmvz-icon", { key: 'e109a59ba562ff0db88442119725cb38cc01ed6f', slot: "after-input", icon: CALENDAR_ICON, "aria-hidden": "true" })), hAsync("lmvz-popover", { key: 'df9046ff443232be3036fbb9ad2646681e7be697', anchor: this.inputEl, open: this.open && !this.disabled, autoFocus: false, size: "md", label: popoverLabel, onLmvzOpen: this.handlePopoverOpen, onLmvzClose: this.handlePopoverClose }, hAsync("div", { key: 'eea613edc10157650e2e11698afdcc85353bff49', part: "panel", class: "datepicker-panel" }, this.renderHeader(), this.renderGrid()))));
|
|
12042
12087
|
}
|
|
12043
12088
|
static get delegatesFocus() { return true; }
|
|
12044
12089
|
static get formAssociated() { return true; }
|
|
@@ -12188,7 +12233,7 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
12188
12233
|
}
|
|
12189
12234
|
}
|
|
12190
12235
|
render() {
|
|
12191
|
-
return (hAsync(Host, { key: '
|
|
12236
|
+
return (hAsync(Host, { key: '427f1fe61ea8809a17dc08518c3dca7218cd2c9b', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: 'b95c5d269c18001592b4ea853b9c945eeedfda07', class: "brand" }, hAsync("slot", { key: 'd856c174220f6e17b1aa977745bd057f7ca12625', name: "brand" }, hAsync("img", { key: '554896aadccb818f06d01ad88f9be96a1afa615a', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: '414d208fe60eb4dd0c1400727b4198b81fc4a041', "aria-label": "Hauptnavigation" }, hAsync("div", { key: '608ea0c8ddcfef024505505ae7f91f644bfc1298', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: 'b5de644c07b4ef809c7afa377bed5e48356fc93a', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: 'a6e308da89df8b705a0d03218778bc36fb0cbaf2', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: 'cf78a68329eadb96ad656ed81d8b3c72db582fc9', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: 'f7a00431635969cd0f3b29e52d002ec67c8dae04', class: "actions" }, hAsync("slot", { key: '6ed3b3d6ef85646742f0a2cf5267464f06e20a05', name: "actions" }))));
|
|
12192
12237
|
}
|
|
12193
12238
|
static get watchers() { return {
|
|
12194
12239
|
"lmvzActiveNav": [{
|
|
@@ -12257,7 +12302,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
12257
12302
|
super.componentDidRender();
|
|
12258
12303
|
}
|
|
12259
12304
|
render() {
|
|
12260
|
-
return hAsync(Host, { key: '
|
|
12305
|
+
return hAsync(Host, { key: '0dd3824c964cb73ba4758afbb8768535b7bf0820', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
12261
12306
|
}
|
|
12262
12307
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
12263
12308
|
{
|
|
@@ -12531,9 +12576,9 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
12531
12576
|
render() {
|
|
12532
12577
|
const hasValue = Boolean(this.value);
|
|
12533
12578
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
12534
|
-
return (hAsync("div", { key: '
|
|
12579
|
+
return (hAsync("div", { key: '34535f927cceb5d28107f71a995b92f357f68df0', class: classNames('input-container', {
|
|
12535
12580
|
'interaction-filled': hasValue,
|
|
12536
|
-
}) }, hAsync("div", { key: '
|
|
12581
|
+
}) }, hAsync("div", { key: 'a1e6ef88163bb7c081b295f11194ffc10a0754c4', class: "input-wrapper" }, hAsync("slot", { key: '6634e9671691bd2a18513571706028994fe27efe', name: "before-input" }), hAsync("div", { key: 'e5299fed299b5b5a29ae9f1da71c5294f264da05', class: "label-input-group" }, hAsync("label", { key: '21cf26ec1ef8af81f22b0333299b21268063cda4', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: '2f8ab042d8a89bbfdd37c8083d83a4b5298aa447', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: '35551a0a618eb2b553449e7e59b0190ff026cdb4', 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, onBlur: this.handleBlur, onInvalid: this.handleInvalid })), hAsync("slot", { key: '7c8e459eefd966d4b1227e233a6c599907240545', name: "after-input" })), hAsync("div", { key: '66a53450185cb93f3c6c98a222b1e201aa5a6d03', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '587940e277570a5cc9bba9cfbbd1c42daa512ad1', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
12537
12582
|
}
|
|
12538
12583
|
static get formAssociated() { return true; }
|
|
12539
12584
|
static get watchers() { return {
|
|
@@ -12640,7 +12685,7 @@ class LmvzLink {
|
|
|
12640
12685
|
const rel = this.computeRel();
|
|
12641
12686
|
const iconSvg = this.type === 'external' ? EXTERNAL_SVG : ARROW_RIGHT_SVG;
|
|
12642
12687
|
const isBlank = this.target === '_blank';
|
|
12643
|
-
return (hAsync(Host, { key: '
|
|
12688
|
+
return (hAsync(Host, { key: 'af31a58caac2d4ccb4c2a72d356e85bda7c61b86' }, hAsync("a", { key: 'c677c43497f214259863cf8306fa2d838bcd9bef', href: this.computeHref(), target: this.target, rel: rel }, hAsync("slot", { key: '63f18a9089a6864c513c3ef01c68268a6b0dbd60' }), hAsync("lmvz-icon", { key: '115472b9eda8f55c27bc551a9b1988e9086b501a', "aria-hidden": "true", icon: iconSvg }), isBlank && hAsync("span", { key: 'cf1d70fcb80fe0e61eeceeb41b43ab0f7211ea02', class: "sr-only" }, this.externalLabel))));
|
|
12644
12689
|
}
|
|
12645
12690
|
static get delegatesFocus() { return true; }
|
|
12646
12691
|
static get watchers() { return {
|
|
@@ -12688,7 +12733,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
12688
12733
|
this.addController(new ElementActivationController(this));
|
|
12689
12734
|
}
|
|
12690
12735
|
render() {
|
|
12691
|
-
return (hAsync(Host, { key: '
|
|
12736
|
+
return (hAsync(Host, { key: '555ab8db190d0b80b47d903966e880aed51c31d4' }, hAsync("slot", { key: '3987fb4644d8d2c47e936c0413e058a9221a2ad7', ref: (e) => (this.validationSlot = e) })));
|
|
12692
12737
|
}
|
|
12693
12738
|
static get style() { return lmvzMenuitemCss(); }
|
|
12694
12739
|
static get cmpMeta() { return {
|
|
@@ -12806,7 +12851,7 @@ class LmvzMessage {
|
|
|
12806
12851
|
}
|
|
12807
12852
|
render() {
|
|
12808
12853
|
const role = this.live === 'assertive' ? 'alert' : this.live === 'polite' ? 'status' : 'note';
|
|
12809
|
-
return (hAsync(Host, { key: '
|
|
12854
|
+
return (hAsync(Host, { key: '45bba3aa5050fcc993414c5d25b436c9a78b1b67', role: role }, this.leadingIcon && hAsync("span", { key: '936327839c37f2aac83cca9db780dda0e47c2a42', class: "leading-icon", "aria-hidden": "true", innerHTML: TYPE_SVG[this.type] }), hAsync("span", { key: 'e05203642419ad734285495205625567e5110c5f', class: "message" }, hAsync("slot", { key: '7ced34a5a75a83707cee108ce0e964f815feaa61', ref: (el) => (this.messageSlot = el), onSlotchange: this.handleSlotChange })), this.actionLabel && (hAsync("lmvz-button", { key: '705cd8ff5171d05f459ce09aaa10548de8362710', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel)), this.dismissible && (hAsync("lmvz-button", { key: '90377bfb5e8fb69ad5dff323ca88d2ba9d0c444c', variant: "tertiary", scale: "small", "aria-label": this.closeLabel, onClick: this.handleDismissClick }, hAsync("lmvz-icon", { key: '0064004bcb5ef5d9a3bf784f110b3cf0d267017d', "aria-hidden": "true", icon: CLOSE_SM_SVG })))));
|
|
12810
12855
|
}
|
|
12811
12856
|
static get style() { return lmvzMessageCss(); }
|
|
12812
12857
|
static get cmpMeta() { return {
|
|
@@ -13050,7 +13095,7 @@ class LmvzModal extends ReactiveControllerHost {
|
|
|
13050
13095
|
this.hasHeader = this.hasAssignedContent(this.headerSlot);
|
|
13051
13096
|
};
|
|
13052
13097
|
render() {
|
|
13053
|
-
return (hAsync(Host, { key: '
|
|
13098
|
+
return (hAsync(Host, { key: 'eaae4e7e1ecf8fb11db7582ffa3d1461a718a8d0' }, hAsync("dialog", { key: '11d1bdd9cd94afd82a13f5328234ad8877e9d28b', ref: (element) => (this.dialogEl = element), onCancel: this.handleDialogCancel, onClose: this.handleDialogClose, ...this.dialogAccessibilityAttributes }, hAsync("div", { key: '1c21a9266be21246ba8cbc55ac4559f7511294ff', class: "modal-shell" }, hAsync("header", { key: '4077ec5bd9e434d954982884ab3306fc9db6d043', class: { header: true, 'has-title': this.hasHeader } }, hAsync("div", { key: '82476490860365ba5ed3e8f47af7a85084e01693', class: "title", id: this.dialogTitleId, hidden: !this.hasHeader }, hAsync("slot", { key: '59dd145e07c6f310e8490ac7fa0e3d7577929a5d', name: "header", ref: (element) => (this.headerSlot = element), onSlotchange: this.handleHeaderSlotChange })), hAsync("lmvz-button", { key: '66e53dca4eab1503f53e4d069d1e115a77d3672e', ref: (element) => (this.closeButtonEl = element), type: "button", class: "close-button", "aria-label": this.closeLabel, onLmvzActivation: this.handleCloseButtonClick, variant: "tertiary" }, hAsync("lmvz-icon", { key: '23579ef59870459b523e4adc20df3954567b31a5', icon: closeIconSvg }))), hAsync("div", { key: '62d2d2288ac84c945b5f0c070b3c553815572e69', class: "body" }, hAsync("slot", { key: 'e511ff34da74c38981ee54d0e8a5019adfda2a7e' })), hAsync("footer", { key: '1a921cf63e446f434a6686de39e8e653eb1c30c1', class: "actions", hidden: !this.buttonGroupEl?.hasActions }, hAsync("lmvz-button-group", { key: '4280d47bb1f9bcc390253ff4286f25c4117612a2', ref: (element) => (this.buttonGroupEl = element) }, hAsync("slot", { key: 'a4a228ee4dbb1064cc4d7d005f202d69c66b8505', name: "actions" })))))));
|
|
13054
13099
|
}
|
|
13055
13100
|
static get watchers() { return {
|
|
13056
13101
|
"open": [{
|
|
@@ -14612,7 +14657,7 @@ class LmvzPopover {
|
|
|
14612
14657
|
this.closureController?.abort();
|
|
14613
14658
|
}
|
|
14614
14659
|
render() {
|
|
14615
|
-
return (hAsync(Host, { key: '
|
|
14660
|
+
return (hAsync(Host, { key: '559167785de0a69c12e436740b6b17a206f6155c', role: this.containerRole, "aria-label": this.label || undefined }, hAsync("div", { key: 'deaeb8ac94edd8eac38748cbc01e8f335a8fe7a1', part: "container", class: `container lmvz-wrapper-card-${this.size}`, ref: (el) => (this.containerEl = el) }, hAsync("slot", { key: '87dd843041852b3d5b8b85497c0f4e4eb6791a45', ref: (el) => (this.slotEl = el) }))));
|
|
14616
14661
|
}
|
|
14617
14662
|
static get watchers() { return {
|
|
14618
14663
|
"open": [{
|
|
@@ -15041,7 +15086,7 @@ class LmvzRadio extends ReactiveControllerHost {
|
|
|
15041
15086
|
this.nativeInput?.click();
|
|
15042
15087
|
}
|
|
15043
15088
|
render() {
|
|
15044
|
-
return (hAsync(Host, { key: '
|
|
15089
|
+
return (hAsync(Host, { key: '0a3f2ee5c2aa0c27e2fc6c6482f463915a8475d1' }, hAsync("input", { key: '707ee1a470c2a8b90dff54400490ae9366ab97ac', type: "radio", id: this.radioId, value: this.value, checked: this.checked, disabled: this.disabled, autoFocus: this.autofocus, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error ? 'true' : undefined, "aria-describedby": this.helperId, ref: (el) => (this.nativeInput = el), onChange: this.handleChange }), hAsync("span", { key: '772a52ff4817b2332312bc597feee0de4fb3be4e', class: "circle", "aria-hidden": "true" }, this.checked && hAsync("span", { key: '600e398709956b6cb3e95b2119268f805771f71e', class: "dot" })), hAsync("span", { key: '446ee6d901dcbc2143f9772736746255ef2885db', class: "content" }, hAsync("label", { key: '4ec55b6be95c847d564ec8dfff3486068f44580c', htmlFor: this.radioId }, this.label), hAsync("span", { key: '678dcd677d22fb2c6c8983be8cb69100fc396378', onClick: this.retargetInnerClicks.bind(this), "aria-live": "polite", class: "helper-text", id: this.helperId }, this.helperText))));
|
|
15045
15090
|
}
|
|
15046
15091
|
static get formAssociated() { return true; }
|
|
15047
15092
|
static get watchers() { return {
|
|
@@ -15592,7 +15637,7 @@ class LmvzSelect extends ReactiveControllerHost {
|
|
|
15592
15637
|
const hasValue = this.hasValue;
|
|
15593
15638
|
const shouldShowLabel = hasValue;
|
|
15594
15639
|
const showChips = this.multiple && hasValue;
|
|
15595
|
-
return (hAsync(Host, { key: '
|
|
15640
|
+
return (hAsync(Host, { key: 'bcb5531eeb0c12cfebb0aacf01837004d95ab651' }, hAsync("div", { key: '0df56d60126a321bc3e5070ecbacd29ef0653cea', class: hasValue ? 'select-wrapper has-value' : 'select-wrapper' }, hAsync("label", { key: '9e0dcdb5134b85b38ec41c2c83a70e8f4aea9429', htmlFor: this.triggerId, class: shouldShowLabel ? 'floating-label' : 'assistive-label', onMouseDown: (event) => event.preventDefault(), onClick: this.handleLabelClick }, this.label, this.required && shouldShowLabel && hAsync("span", { key: '1c4a3499ef403cfff96ffd391255a3c1c175a80b', "aria-hidden": "true" }, " *")), hAsync("div", { key: 'fe9f97ec6c476525e98efb9c2a0838697d7f2193', id: this.triggerId, ref: (el) => (this.triggerEl = el), class: "select-trigger", role: "combobox", tabIndex: this.disabled ? -1 : 0, "aria-haspopup": "listbox", "aria-expanded": String(this.isOpen), "aria-controls": this.popoverId, "aria-activedescendant": this.isOpen ? this.activeId : undefined, "aria-label": this.triggerAriaLabel, "aria-disabled": this.disabled ? 'true' : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.error ? 'true' : 'false', "aria-errormessage": this.showErrorMessage ? this.errorId : undefined, "aria-describedby": this.describedBy, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeydown, onBlur: this.handleTriggerBlur }, hAsync("span", { key: 'e769fcba8c5e31289f333dc53dcbc3a7bdce44e7' }, showChips ? this.renderChips() : hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: 'b5e0cd9a9ad4506f058508f6ee9957debe9e1bd2', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'e07c1ba4a99b1b72144a17bff940e08f2d93db2f', "aria-hidden": "true" }, hAsync("svg", { key: 'eaa136b668baacb7bb6a4ad2e46a0f694a5b54b9', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '70744054f8ec445361551899ad637b54ace6322f', d: "M20.3334 8.66663L12.0001 17L3.66675 8.66663", stroke: "currentColor", "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" })))), hAsync("lmvz-popover", { key: '330d09ff1d7160c1f7471b208acb8005e7ea60c7', id: this.popoverId, anchor: this.triggerId, open: this.isOpen, containerRole: "listbox", autoFocus: false, label: this.label, "aria-multiselectable": this.multiple ? 'true' : undefined, onLmvzClose: this.handlePopoverClose, size: "sm" }, this.renderOptionGroups()), hAsync("div", { key: '88e327fdb04ae5ca89ba2a4254f9807a8a051051', class: "lmvz-select-native-options", hidden: true, "aria-hidden": "true", ref: (el) => (this.optionsSourceEl = el) }, hAsync("slot", { key: '3988124d6358464ba531d498f2e486117fe4c3ad', onSlotchange: this.handleSlotChange }))), this.helperText && (hAsync("div", { key: 'ffd36af1cf02a807262ff7b7df6fe4be0cb82ed9', id: this.helperId, role: "status" }, this.helperText)), this.showErrorMessage && (hAsync("div", { key: '52d7f19bb6c7618d1ad7cd24c3c73487484d4542', id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
15596
15641
|
}
|
|
15597
15642
|
static get formAssociated() { return true; }
|
|
15598
15643
|
static get watchers() { return {
|
|
@@ -15742,7 +15787,7 @@ class LmvzSnackbar {
|
|
|
15742
15787
|
this.el.dispatchEvent(new CustomEvent('lmvzAction', { bubbles: false, composed: false }));
|
|
15743
15788
|
};
|
|
15744
15789
|
render() {
|
|
15745
|
-
return (hAsync(Host, { key: '
|
|
15790
|
+
return (hAsync(Host, { key: '153859f89cb76e7119db0315208b7382ebe2ad9e', class: this.animationClass }, hAsync("lmvz-icon", { key: 'f6a59adba28f3d0d0e50717f1d1010d7c5b391fa', icon: STATUS_SVG[this.status], size: "md", weight: "bold" }), hAsync("span", { key: 'f0b60bd0787add320b3086841ea9c5b542c05f04', class: "message" }, this.message), this.actionLabel && (hAsync("lmvz-button", { key: 'acb89693f29db072e98401fdb2007e149aeba044', variant: "tertiary", scale: "small", onLmvzActivation: this.handleActionClick }, this.actionLabel))));
|
|
15746
15791
|
}
|
|
15747
15792
|
static get watchers() { return {
|
|
15748
15793
|
"status": [{
|
|
@@ -15779,7 +15824,7 @@ class LmvzSpinner {
|
|
|
15779
15824
|
ariaLabel;
|
|
15780
15825
|
render() {
|
|
15781
15826
|
const hasLabel = !!this.ariaLabel?.trim();
|
|
15782
|
-
return (hAsync(Host, { key: '
|
|
15827
|
+
return (hAsync(Host, { key: '53d1363cc2ec0219468d7a04e7f2cfc952a85fd6', role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.ariaLabel : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, hAsync("svg", { key: '2401cb663473e2bbce0491718ad71c2600154cd0', part: "indicator", viewBox: "0 0 16 16", "aria-hidden": "true" }, hAsync("circle", { key: '61cbad421651f8dc7f684745a75b3249f251c8a6', pathLength: "100", cx: "8", cy: "8", r: "6" }))));
|
|
15783
15828
|
}
|
|
15784
15829
|
static get style() { return lmvzSpinnerCss(); }
|
|
15785
15830
|
static get cmpMeta() { return {
|
|
@@ -15815,7 +15860,7 @@ class LmvzTab {
|
|
|
15815
15860
|
this.el.dispatchEvent(new CustomEvent('lmvzTabReady', { bubbles: true, composed: false }));
|
|
15816
15861
|
}
|
|
15817
15862
|
render() {
|
|
15818
|
-
return (hAsync(Host, { key: '
|
|
15863
|
+
return (hAsync(Host, { key: 'ff3fc4218e3da14cb2caaa3bbe8cb73be8ac0c3d' }, hAsync("button", { key: '999ad84e8d27e787ba0f6ba1146b461b9e7b6ca9', part: "button", role: "tab", disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: 0 }, hAsync("slot", { key: '876a7431706f385f1ed7f542182f92dd386bc6f5', name: "media", ref: (el) => (this.mediaSlotEl = el), onSlotchange: this.handleMediaSlotChange }), hAsync("span", { key: 'a0b0a0f22344678a2a6ee82dd997f24036f22ba5', class: "label" }, hAsync("slot", { key: 'df4d11555f351a759ef69ba907d8d1b00d95a826' })), hAsync("span", { key: '70830219e6dfa656a5ded8332f9171ad389c4ef8', "aria-hidden": "true", part: "indicator", class: "indicator" }))));
|
|
15819
15864
|
}
|
|
15820
15865
|
static get delegatesFocus() { return true; }
|
|
15821
15866
|
static get style() { return lmvzTabCss(); }
|
|
@@ -16074,7 +16119,7 @@ class LmvzTabs extends ReactiveControllerHost {
|
|
|
16074
16119
|
this.selectTab(value);
|
|
16075
16120
|
};
|
|
16076
16121
|
render() {
|
|
16077
|
-
return (hAsync(Host, { key: '
|
|
16122
|
+
return (hAsync(Host, { key: 'd6308c13b7e185fa4d1ff8a33c03f2e0e54f55b0', onClick: this.handleTabClick, onKeydown: this.handleKeydown }, hAsync("div", { key: '319741b6ce2276d9092b22b67dabc2f1f28366c4', role: "tablist", "aria-orientation": "horizontal", class: "tablist", ref: (el) => (this.tablistEl = el) }, hAsync("slot", { key: 'bf76b7b1bdce93f47ddbf45309408b1e33a086f6', ref: (el) => (this.tabSlotEl = el) })), hAsync("div", { key: '6793f685d90ea8cb4b9862db6a93d7067fcb1d53', part: "panels-container", class: "panels-container" }, hAsync("slot", { key: '2af78356ab2727bcd044e827238b0f5a8a30f1b0', name: "panels", ref: (el) => (this.panelSlotEl = el) }))));
|
|
16078
16123
|
}
|
|
16079
16124
|
static get watchers() { return {
|
|
16080
16125
|
"value": [{
|
|
@@ -16178,7 +16223,7 @@ class LmvzToggle extends ReactiveControllerHost {
|
|
|
16178
16223
|
this.lmvzChange.emit(newChecked);
|
|
16179
16224
|
};
|
|
16180
16225
|
render() {
|
|
16181
|
-
return (hAsync(Host, { key: '
|
|
16226
|
+
return (hAsync(Host, { key: '897eea43e268eca68b5955ba823caa49508789be' }, hAsync("span", { key: '731c08e74242b06458fdfeba69d4e4aa4ae76cd1', class: "track" }, hAsync("input", { key: '3e8ee9f23bc78f2c8110c5057854d199e13755cf', type: "checkbox", role: "switch", id: this.toggleId, checked: this.checked, disabled: this.disabled, required: this.required, name: this.name, value: this.value, form: this.form, ref: (el) => (this.nativeInputElement = el), onChange: this.handleChange }), hAsync("span", { key: '8d3ec0a9bc6af91b2536865f54a1616ef8753db6', class: "thumb", "aria-hidden": "true" })), hAsync("label", { key: '121837baf11f9d086e5750b6249264888a3ced7a', htmlFor: this.toggleId }, this.label)));
|
|
16182
16227
|
}
|
|
16183
16228
|
static get formAssociated() { return true; }
|
|
16184
16229
|
static get watchers() { return {
|