@lmvz-ds/components 0.35.2 → 0.36.1
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 +18 -0
- package/assets/icons/calendar.svg +7 -0
- package/cjs/{aria-validation-controller-BC0Eaiv4.js → aria-validation-controller-Do0uEK4t.js} +1 -1
- package/cjs/aria.constants-DPK5mQEL.js +65 -0
- package/cjs/{directional-focus-controller-DBat-oF7.js → directional-focus-controller-8Xd_7MHT.js} +3 -1
- package/cjs/{element-activation-controller-BHqCUgQv.js → element-activation-controller-DzTUocEO.js} +1 -1
- package/cjs/{element.util-CRS_YJ59.js → element.util-BlhcwmfR.js} +8 -54
- package/cjs/{index-TGsVZNDP.js → index-BgvZ4y-3.js} +12 -0
- package/cjs/lmvz-action-list.cjs.entry.js +5 -4
- package/cjs/lmvz-action.cjs.entry.js +1 -1
- package/cjs/lmvz-button-group.cjs.entry.js +3 -2
- package/cjs/lmvz-button_2.cjs.entry.js +6 -5
- package/cjs/lmvz-card.cjs.entry.js +1 -1
- package/cjs/lmvz-checkbox.cjs.entry.js +40 -6
- package/cjs/lmvz-chip.cjs.entry.js +2 -2
- package/cjs/lmvz-components.cjs.js +2 -2
- package/cjs/lmvz-datepicker.cjs.entry.js +2771 -0
- package/cjs/lmvz-header_2.cjs.entry.js +7 -6
- package/cjs/lmvz-input.cjs.entry.js +71 -15
- package/cjs/lmvz-link.cjs.entry.js +2 -2
- package/cjs/lmvz-menuitem.cjs.entry.js +6 -5
- package/cjs/lmvz-message.cjs.entry.js +2 -2
- package/cjs/lmvz-modal.cjs.entry.js +5 -4
- package/cjs/lmvz-popover.cjs.entry.js +25 -10
- package/cjs/lmvz-radio.cjs.entry.js +63 -5
- package/cjs/lmvz-select.cjs.entry.js +425 -18
- package/cjs/lmvz-snackbar.cjs.entry.js +2 -2
- package/cjs/lmvz-spinner.cjs.entry.js +2 -2
- package/cjs/lmvz-tab.cjs.entry.js +2 -2
- package/cjs/lmvz-tabs.cjs.entry.js +5 -4
- package/cjs/lmvz-toggle.cjs.entry.js +7 -4
- package/cjs/loader.cjs.js +2 -2
- package/collection/assets/icons/calendar.svg +7 -0
- package/collection/collection-manifest.json +1 -0
- package/collection/components/lmvz-checkbox/lmvz-checkbox.css +4 -2
- package/collection/components/lmvz-checkbox/lmvz-checkbox.js +68 -8
- package/collection/components/lmvz-datepicker/lmvz-datepicker.css +161 -0
- package/collection/components/lmvz-datepicker/lmvz-datepicker.js +1002 -0
- package/collection/components/lmvz-datepicker/lmvz-datepicker.utils.js +189 -0
- package/collection/components/lmvz-datepicker/test/lmvz-datepicker.utils.unit.js +300 -0
- 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.css +1 -1
- package/collection/components/lmvz-input/lmvz-input.js +85 -12
- 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.css +1 -1
- package/collection/components/lmvz-popover/lmvz-popover.js +50 -6
- package/collection/components/lmvz-radio/lmvz-radio.js +77 -9
- package/collection/components/lmvz-select/lmvz-select.css +96 -34
- package/collection/components/lmvz-select/lmvz-select.js +412 -21
- 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 +21 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/collection/styles/fragments/_focus-within.css +2 -2
- package/collection/utils/aria/aria.constants.js +7 -0
- package/collection/utils/aria/directional-focus-controller.js +3 -1
- package/collection/utils/aria/listbox-controller.js +154 -0
- package/collection/utils/element/element.util.js +5 -0
- package/collection/utils/radio/radio-group-controller.js +17 -0
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.bak +2 -0
- package/components/index.js +1 -1
- package/components/lmvz-action-list.js +1 -1
- package/components/lmvz-action.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-datepicker.d.ts +11 -0
- package/components/lmvz-datepicker.d.ts.bak +11 -0
- package/components/lmvz-datepicker.js +1 -0
- 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-Chj7BuUZ.js → p--FDdvoIg.js} +1 -1
- package/components/{p-CFTmV4XZ.js → p-BAj4FkUt.js} +1 -1
- package/components/p-BApwCp0R.js +1 -0
- package/components/{p-CxLd309t.js → p-BLMXiDE0.js} +1 -1
- package/components/{p-DGg7OzDl.js → p-BPYBmylI.js} +1 -1
- package/components/p-BhALzK62.js +1 -0
- package/components/{p-B_rnXUwq.js → p-Bnri3fEI.js} +1 -1
- package/components/p-C-pRMuMh.js +1 -0
- package/components/p-C5gRiLRR.js +1 -0
- package/components/{p-D5FL8n1q.js → p-CrQCHVKL.js} +1 -1
- package/components/p-DqdrUt_G.js +1 -0
- package/components/{p-CgK6-SEe.js → p-diOze8wI.js} +1 -1
- package/esm/{aria-validation-controller-BvOU1BO8.js → aria-validation-controller-Cp6pofER.js} +1 -1
- package/esm/aria.constants-DIyiticz.js +62 -0
- package/esm/{directional-focus-controller-DgAdCZrG.js → directional-focus-controller-QukTTWBE.js} +3 -1
- package/esm/{element-activation-controller-7PNSl6io.js → element-activation-controller-dxJZKMag.js} +1 -1
- package/esm/{element.util-BFcYfHYq.js → element.util-3ydVsxUW.js} +7 -54
- package/esm/{index-BPeerEwm.js → index-BOXP1Vx0.js} +12 -1
- package/esm/lmvz-action-list.entry.js +5 -4
- package/esm/lmvz-action.entry.js +1 -1
- package/esm/lmvz-button-group.entry.js +3 -2
- package/esm/lmvz-button_2.entry.js +6 -5
- package/esm/lmvz-card.entry.js +1 -1
- package/esm/lmvz-checkbox.entry.js +40 -6
- package/esm/lmvz-chip.entry.js +2 -2
- package/esm/lmvz-components.js +3 -3
- package/esm/lmvz-datepicker.entry.js +2769 -0
- package/esm/lmvz-header_2.entry.js +7 -6
- package/esm/lmvz-input.entry.js +71 -15
- package/esm/lmvz-link.entry.js +2 -2
- package/esm/lmvz-menuitem.entry.js +6 -5
- package/esm/lmvz-message.entry.js +2 -2
- package/esm/lmvz-modal.entry.js +5 -4
- package/esm/lmvz-popover.entry.js +25 -10
- package/esm/lmvz-radio.entry.js +63 -5
- package/esm/lmvz-select.entry.js +425 -18
- package/esm/lmvz-snackbar.entry.js +2 -2
- package/esm/lmvz-spinner.entry.js +2 -2
- package/esm/lmvz-tab.entry.js +2 -2
- package/esm/lmvz-tabs.entry.js +5 -4
- package/esm/lmvz-toggle.entry.js +7 -4
- package/esm/loader.js +3 -3
- package/hydrate/index.js +3474 -75
- package/hydrate/index.mjs +3474 -75
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/{p-eb62d4af.entry.js → p-0af0211a.entry.js} +1 -1
- package/lmvz-components/{p-5bbbcfc0.entry.js → p-0f65d001.entry.js} +1 -1
- package/lmvz-components/p-137b1fe1.entry.js +1 -0
- package/lmvz-components/p-26dd9684.entry.js +1 -0
- package/lmvz-components/p-36f44108.entry.js +1 -0
- package/lmvz-components/p-398b5cf4.entry.js +1 -0
- package/lmvz-components/p-3a396fc8.entry.js +1 -0
- package/lmvz-components/{p-0c05f24b.entry.js → p-3d5867df.entry.js} +1 -1
- package/lmvz-components/p-40716828.entry.js +1 -0
- package/lmvz-components/{p-a887018d.entry.js → p-492adf21.entry.js} +1 -1
- package/lmvz-components/{p-24d13be6.entry.js → p-4fa6e72f.entry.js} +1 -1
- package/lmvz-components/p-70f1e31a.entry.js +1 -0
- package/lmvz-components/p-71d06d1d.entry.js +1 -0
- package/lmvz-components/{p-d45164a8.entry.js → p-7a7aa922.entry.js} +1 -1
- package/lmvz-components/p-88661c50.entry.js +1 -0
- package/lmvz-components/p-91eb71bb.entry.js +1 -0
- package/lmvz-components/p-BA3wizqg.js +1 -0
- package/lmvz-components/{p-BPeerEwm.js → p-BOXP1Vx0.js} +2 -2
- package/lmvz-components/{p-D9PQIBzA.js → p-BeY96W7m.js} +1 -1
- package/lmvz-components/p-CHxiS3ja.js +1 -0
- package/lmvz-components/{p-wlMjNjuv.js → p-CPSyM_e-.js} +1 -1
- package/lmvz-components/p-DIyiticz.js +1 -0
- package/lmvz-components/p-a680a7b2.entry.js +1 -0
- package/lmvz-components/{p-c2544495.entry.js → p-a6fe9b61.entry.js} +1 -1
- package/lmvz-components/{p-ecbd9e93.entry.js → p-a99acb02.entry.js} +1 -1
- package/lmvz-components/p-f16a19fc.entry.js +1 -0
- package/lmvz-components/p-f3f0ed49.entry.js +1 -0
- package/lmvz-components/p-f516a949.entry.js +1 -0
- package/manifest.json +1305 -188
- package/package.json +5 -1
- package/types/api/ds.constants.d.ts +0 -1
- package/types/api/ds.types.d.ts +9 -0
- package/types/components/lmvz-action/lmvz-action.d.ts +0 -1
- package/types/components/lmvz-action-list/lmvz-action-list.d.ts +0 -1
- package/types/components/lmvz-button/lmvz-button.d.ts +0 -1
- package/types/components/lmvz-button-group/lmvz-button-group.d.ts +0 -1
- package/types/components/lmvz-card/lmvz-card.d.ts +0 -1
- package/types/components/lmvz-checkbox/lmvz-checkbox.d.ts +9 -2
- package/types/components/lmvz-chip/lmvz-chip.d.ts +0 -1
- package/types/components/lmvz-datepicker/lmvz-datepicker.d.ts +77 -0
- package/types/components/lmvz-datepicker/lmvz-datepicker.utils.d.ts +22 -0
- package/types/components/lmvz-datepicker/test/lmvz-datepicker.utils.unit.d.ts +1 -0
- package/types/components/lmvz-header/lmvz-header.d.ts +0 -1
- package/types/components/lmvz-icon/lmvz-icon.d.ts +0 -1
- package/types/components/lmvz-input/lmvz-input.d.ts +8 -1
- package/types/components/lmvz-link/lmvz-link.d.ts +0 -1
- package/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +0 -1
- package/types/components/lmvz-message/lmvz-message.d.ts +0 -1
- package/types/components/lmvz-message/public.d.ts +0 -1
- package/types/components/lmvz-modal/lmvz-modal.d.ts +0 -1
- package/types/components/lmvz-modal/test/testing.d.ts +0 -1
- package/types/components/lmvz-popover/lmvz-popover.d.ts +2 -1
- package/types/components/lmvz-radio/lmvz-radio.d.ts +12 -3
- package/types/components/lmvz-select/lmvz-select.d.ts +53 -5
- package/types/components/lmvz-snackbar/lmvz-snackbar.d.ts +0 -1
- package/types/components/lmvz-snackbar/public.d.ts +0 -1
- package/types/components/lmvz-snackbar/snackbar-controller.d.ts +0 -1
- package/types/components/lmvz-spinner/lmvz-spinner.d.ts +0 -1
- package/types/components/lmvz-tab/lmvz-tab.d.ts +0 -1
- package/types/components/lmvz-tabs/lmvz-tabs.d.ts +0 -1
- package/types/components/lmvz-toggle/lmvz-toggle.d.ts +1 -1
- package/types/components.d.ts +312 -12
- package/types/index.d.ts +0 -1
- package/types/utils/aria/aria-validation-controller.d.ts +0 -1
- package/types/utils/aria/aria.constants.d.ts +1 -1
- package/types/utils/aria/directional-focus-controller.d.ts +0 -1
- package/types/utils/aria/element-activation-controller.d.ts +0 -1
- package/types/utils/aria/listbox-controller.d.ts +42 -0
- package/types/utils/async/async.util.d.ts +1 -2
- package/types/utils/data/event.util.d.ts +0 -1
- package/types/utils/data/number.util.d.ts +0 -1
- package/types/utils/data/object.util.d.ts +0 -1
- package/types/utils/data/time.util.d.ts +0 -1
- package/types/utils/element/element.util.d.ts +1 -1
- package/types/utils/environment.d.ts +0 -1
- package/types/utils/icons/icons-registry.d.ts +0 -1
- package/types/utils/icons/icons.d.ts +0 -1
- package/types/utils/icons/icons.unit.d.ts +0 -1
- package/types/utils/icons/public.d.ts +0 -1
- package/types/utils/public.d.ts +0 -1
- package/types/utils/radio/radio-group-controller.d.ts +3 -1
- package/types/utils/stencil/assets.d.ts +0 -1
- package/types/utils/stencil/reactive-controller-host.d.ts +0 -1
- package/types/utils/stencil/stencil.util.d.ts +0 -1
- package/components/p-DLUsBYJH.js +0 -1
- package/components/p-zMWemcoB.js +0 -1
- package/lmvz-components/p-194a3af5.entry.js +0 -1
- package/lmvz-components/p-46edf36f.entry.js +0 -1
- package/lmvz-components/p-5ff55ba9.entry.js +0 -1
- package/lmvz-components/p-888e04d7.entry.js +0 -1
- package/lmvz-components/p-9dc420e2.entry.js +0 -1
- package/lmvz-components/p-BFcYfHYq.js +0 -1
- package/lmvz-components/p-BuEA0MWd.js +0 -1
- package/lmvz-components/p-aaa7691c.entry.js +0 -1
- package/lmvz-components/p-b6dd045b.entry.js +0 -1
- package/lmvz-components/p-c3e62aba.entry.js +0 -1
- package/lmvz-components/p-d4154a65.entry.js +0 -1
- package/lmvz-components/p-e4ce63b3.entry.js +0 -1
- package/lmvz-components/p-eb4c5a6f.entry.js +0 -1
- package/lmvz-components/p-f42b16e6.entry.js +0 -1
- package/lmvz-components/p-fbf066d9.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var ariaValidationController = require('./aria-validation-controller-
|
|
3
|
+
var index = require('./index-BgvZ4y-3.js');
|
|
4
|
+
var ariaValidationController = require('./aria-validation-controller-Do0uEK4t.js');
|
|
5
5
|
var reactiveControllerHost = require('./reactive-controller-host-Bc6B_T45.js');
|
|
6
6
|
var stencil_util = require('./stencil.util-CBrPLd-F.js');
|
|
7
7
|
require('./aria-loader-DWUVcapD.js');
|
|
@@ -9,7 +9,7 @@ require('./async.util-Dnl6c82X.js');
|
|
|
9
9
|
|
|
10
10
|
const lmvzToggleCss = () => `@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; } } .sc-lmvz-toggle-h { display: inline-flex; align-items: center; gap: var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); padding-block: var(--lmvz-dimension-8-2, clamp(0.13rem, 0.03rem + 0.39vw, 0.5rem)); padding-inline: var(--lmvz-dimension-10-4, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); border-radius: var(--lmvz-semantic-border-radius-round, 999px); cursor: pointer; background-color: transparent; user-select: none; } .sc-lmvz-toggle-h:not([disabled]):hover { background-color: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } [checked].sc-lmvz-toggle-h { background-color: var(--lmvz-semantic-color-status-active, #f6fbfe); } [disabled][checked].sc-lmvz-toggle-h { background-color: var(--lmvz-semantic-color-status-active, #f6fbfe); } [disabled].sc-lmvz-toggle-h { cursor: not-allowed; opacity: var(--lmvz-component-input-disabled-opacity, 40%); pointer-events: none; } .track.sc-lmvz-toggle { position: relative; flex-shrink: 0; width: var(--lmvz-global-s32, 32px); height: var(--lmvz-global-s20, 20px); border-radius: var(--lmvz-semantic-border-radius-round, 999px); background-color: var(--lmvz-semantic-color-surface-input-primary, #ffffff); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-default, #e0e0e0); } .sc-lmvz-toggle-h:not([disabled]):hover .track.sc-lmvz-toggle { border-color: var(--lmvz-semantic-color-border-hover, #a1a1a1); } [checked].sc-lmvz-toggle-h .track.sc-lmvz-toggle { border-color: var(--lmvz-semantic-color-border-active, #0f8acc); } input.sc-lmvz-toggle { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: inherit; } .thumb.sc-lmvz-toggle { position: absolute; width: var(--lmvz-global-s13, 13px); height: var(--lmvz-global-s13, 13px); border-radius: 50%; background-color: var(--lmvz-semantic-color-on-surface-input-secondary, #545454); top: 50%; transform: translateY(-50%); left: var(--lmvz-global-s4, 4px); transition: left 0.2s ease, background-color 0.2s ease; pointer-events: none; } [checked].sc-lmvz-toggle-h .thumb.sc-lmvz-toggle { left: calc(var(--lmvz-global-s4, 4px) + var(--lmvz-global-s11, 11px)); background-color: var(--lmvz-semantic-color-status-on-active, #0e7ab4); } label.sc-lmvz-toggle { font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5 Router); color: var(--lmvz-semantic-color-on-surface-primary, #000000); cursor: pointer; }`;
|
|
11
11
|
|
|
12
|
-
const focusWithinCss = () => `.sc-lmvz-toggle-h:focus-
|
|
12
|
+
const focusWithinCss = () => `.sc-lmvz-toggle-h:has(: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))}@media (forced-colors: active){.sc-lmvz-toggle-h:has(:focus-visible){outline-color:Highlight;box-shadow:none}}`;
|
|
13
13
|
|
|
14
14
|
let toggleIdCounter = 0;
|
|
15
15
|
const LmvzToggle = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
@@ -71,6 +71,9 @@ const LmvzToggle = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
71
71
|
async reportValidity() {
|
|
72
72
|
return this.nativeInputElement?.reportValidity?.() ?? false;
|
|
73
73
|
}
|
|
74
|
+
async getValidationMessage() {
|
|
75
|
+
return this.nativeInputElement?.validationMessage ?? '';
|
|
76
|
+
}
|
|
74
77
|
async getInputElement() {
|
|
75
78
|
if (!this.nativeInputElement) {
|
|
76
79
|
await new Promise((resolve) => stencil_util.componentOnReady(this.el, resolve));
|
|
@@ -83,7 +86,7 @@ const LmvzToggle = class extends reactiveControllerHost.ReactiveControllerHost {
|
|
|
83
86
|
this.lmvzChange.emit(newChecked);
|
|
84
87
|
};
|
|
85
88
|
render() {
|
|
86
|
-
return (index.h(index.Host, { key: '
|
|
89
|
+
return (index.h(index.Host, { key: 'a0e0272a8457ee6b07a102aa10e5a7c0292a55d9' }, index.h("span", { key: '5d14029bee4b66f5ed2ee1eb189a1d80a68abe3e', class: "track" }, index.h("input", { key: '926b1ca6065750717577ece30e8e78b9004ec0e8', 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 }), index.h("span", { key: 'bdee06bab6acba72d019134828f7415d7b347c49', class: "thumb", "aria-hidden": "true" })), index.h("label", { key: 'b8eaa9305352f7146bf95bb517766310517d60e6', htmlFor: this.toggleId }, this.label)));
|
|
87
90
|
}
|
|
88
91
|
static get formAssociated() { return true; }
|
|
89
92
|
static get watchers() { return {
|
package/cjs/loader.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BgvZ4y-3.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy([["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-message.cjs",[[769,"lmvz-message",{"type":[513],"live":[1],"leadingIcon":[4,"leading-icon"],"dismissible":[4],"closeLabel":[1,"close-label"],"actionLabel":[1,"action-label"]}]]],["lmvz-snackbar.cjs",[[513,"lmvz-snackbar",{"status":[1537],"message":[1025],"duration":[1026],"priority":[1025],"actionLabel":[1025,"action-label"],"animationClass":[32],"show":[64],"hide":[64]},null,{"status":[{"onStatusChange":0}]}]]],["lmvz-link.cjs",[[785,"lmvz-link",{"href":[513],"target":[513],"rel":[1],"type":[1537],"externalLabel":[1,"external-label"]},null,{"type":[{"normalizeType":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"],"initFocus":[64]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-action-list.cjs",[[774,"lmvz-action-list",{"label":[1],"initFocus":[64]}]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[
|
|
9
|
+
return index.bootstrapLazy([["lmvz-datepicker.cjs",[[593,"lmvz-datepicker",{"value":[6145],"visibleMonth":[6145,"visible-month"],"min":[1],"max":[1],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"disabled":[516],"readonly":[516],"required":[516],"name":[513],"label":[1],"placeholder":[1],"helperText":[1,"helper-text"],"errorMessage":[1,"error-message"],"open":[1540],"displayFormat":[1,"display-format"],"focusedDate":[32],"valueDate":[32],"visibleMonthDate":[32],"inputText":[32],"hasUnparseableInput":[32],"isInvalid":[32],"nativeError":[32],"checkValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeydown"],[0,"focusin","handleInputFocus"],[0,"click","handleInputFocus"],[0,"invalid","handleInvalid"]],{"required":[{"handleValidityRelevantPropChange":0}],"min":[{"handleValidityRelevantPropChange":0}],"max":[{"handleValidityRelevantPropChange":0}],"locale":[{"handleDisplayFormatChange":0}],"displayFormat":[{"handleDisplayFormatChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-modal.cjs",[[769,"lmvz-modal",{"open":[1540],"closeLabel":[1,"close-label"],"hasHeader":[32]},[[0,"submit","handleFormDialogSubmit"]],{"open":[{"handleOpenChange":0}]}]]],["lmvz-message.cjs",[[769,"lmvz-message",{"type":[513],"live":[1],"leadingIcon":[4,"leading-icon"],"dismissible":[4],"closeLabel":[1,"close-label"],"actionLabel":[1,"action-label"]}]]],["lmvz-snackbar.cjs",[[513,"lmvz-snackbar",{"status":[1537],"message":[1025],"duration":[1026],"priority":[1025],"actionLabel":[1025,"action-label"],"animationClass":[32],"show":[64],"hide":[64]},null,{"status":[{"onStatusChange":0}]}]]],["lmvz-link.cjs",[[785,"lmvz-link",{"href":[513],"target":[513],"rel":[1],"type":[1537],"externalLabel":[1,"external-label"]},null,{"type":[{"normalizeType":0}]}]]],["lmvz-select.cjs",[[838,"lmvz-select",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"error":[6660],"errorMessage":[1,"error-message"],"disabled":[516],"required":[516],"name":[513],"size":[513],"highlighted":[516],"nativeError":[32],"selectedLabel":[32],"selectedId":[32],"activeId":[32],"isOpen":[32],"optionGroups":[32],"focusTrigger":[64],"blurTrigger":[64],"checkValidity":[64],"reportValidity":[64],"getValidationMessage":[64]},[[0,"invalid","handleInvalid"]],{"value":[{"handleValueChange":0}],"required":[{"handleRequiredChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-header_2.cjs",[[769,"lmvz-header",{"role":[2561],"lmvzActiveNav":[1,"lmvz-active-nav"],"initFocus":[64]},null,{"lmvzActiveNav":[{"handleActiveNavChange":0}]}],[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-action.cjs",[[257,"lmvz-action"]]],["lmvz-action-list.cjs",[[774,"lmvz-action-list",{"label":[1],"initFocus":[64]}]]],["lmvz-card.cjs",[[774,"lmvz-card",{"cardTitle":[1,"card-title"],"imageUrl":[1,"image-url"],"description":[1],"primaryActionLabel":[1,"primary-action-label"]}]]],["lmvz-checkbox.cjs",[[578,"lmvz-checkbox",{"label":[1],"checked":[1540],"value":[1],"name":[513],"disabled":[516],"required":[516],"error":[6660],"errorMessage":[1,"error-message"],"helperText":[1,"helper-text"],"form":[1],"autofocus":[4],"nativeError":[32],"checkedState":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64],"getValidationMessage":[64]},[[0,"invalid","handleInvalid"]],{"checked":[{"handleCheckedChange":0}],"required":[{"handleRequiredChange":0}]}]]],["lmvz-chip.cjs",[[769,"lmvz-chip",{"type":[1537],"size":[1537]},null,{"type":[{"normalizeType":0}],"size":[{"normalizeSize":0}]}]]],["lmvz-menuitem.cjs",[[774,"lmvz-menuitem",{"role":[2561],"ti":[2562,"tabindex"]}]]],["lmvz-radio.cjs",[[578,"lmvz-radio",{"label":[1],"checked":[1540],"value":[1],"name":[513],"disabled":[516],"required":[516],"error":[6660],"helperText":[1,"helper-text"],"form":[513],"autofocus":[4],"nativeError":[32],"focusInput":[64],"checkValidity":[64],"reportValidity":[64],"getValidationMessage":[64]},[[0,"invalid","handleInvalid"],[0,"keydown","handleKeydown"]],{"checked":[{"handleCheckedChange":0}],"required":[{"handleRequiredChange":0}],"value":[{"handleValueChange":0}],"label":[{"handleLabelChange":0}]}]]],["lmvz-spinner.cjs",[[513,"lmvz-spinner",{"size":[513],"ariaLabel":[513,"aria-label"]}]]],["lmvz-tab.cjs",[[785,"lmvz-tab",{"value":[513],"disabled":[516],"selected":[516],"vertical":[516]}]]],["lmvz-tabs.cjs",[[769,"lmvz-tabs",{"value":[1537],"orientation":[1537],"resolvedValue":[32],"initFocus":[64],"activateTab":[64],"getTabElements":[64],"setTabPanelIds":[64]},null,{"value":[{"handleValueChange":0}],"orientation":[{"handleOrientationChange":0}]}]]],["lmvz-toggle.cjs",[[578,"lmvz-toggle",{"label":[1],"checked":[1540],"disabled":[516],"required":[516],"name":[1],"value":[1],"form":[1],"focusToggle":[64],"blurToggle":[64],"checkValidity":[64],"reportValidity":[64],"getValidationMessage":[64],"getInputElement":[64]},null,{"checked":[{"handleCheckedChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-button-group.cjs",[[769,"lmvz-button-group",{"stacked":[516],"primaryEnabledAction":[2064],"hasActions":[2052,"has-actions"]}]]],["lmvz-input.cjs",[[838,"lmvz-input",{"value":[1025],"label":[1],"helperText":[1,"helper-text"],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"name":[1],"type":[1],"errorMessage":[1,"error-message"],"autocomplete":[1],"inputmode":[1],"autocorrect":[1],"autocapitalize":[1],"spellcheck":[4],"autofocus":[4],"minlength":[2],"maxlength":[2],"pattern":[1],"min":[8],"max":[8],"step":[8],"form":[1],"size":[513],"error":[6660],"nativeError":[32],"setValue":[64],"focusInput":[64],"blurInput":[64],"select":[64],"checkValidity":[64],"reportValidity":[64],"getValidationMessage":[64],"getInputElement":[64]},null,{"value":[{"handleValueChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["lmvz-popover.cjs",[[769,"lmvz-popover",{"open":[1540],"anchor":[1],"placement":[1],"size":[1],"autoFocus":[4,"auto-focus"],"containerRole":[1,"container-role"],"label":[1],"anchorEl":[32],"show":[64],"hide":[64],"toggle":[64]},null,{"open":[{"handleOpenChange":0}],"anchor":[{"handleAnchorChange":1}]}]]],["lmvz-button_2.cjs",[[785,"lmvz-button",{"ti":[514,"tabindex"],"scale":[513],"variant":[513],"disabled":[516],"type":[1],"form":[1],"formMethod":[1,"form-method"],"name":[1],"value":[1],"buttonRole":[1,"button-role"]}],[514,"lmvz-icon",{"icon":[513],"weight":[513],"size":[513],"iconset":[513],"ariaLabel":[513,"aria-label"],"iconData":[32],"visible":[32]},null,{"icon":[{"loadIconPathData":0}],"iconset":[{"loadIconPathData":0}]}]]]], options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<rect x="3.5" y="5" width="17" height="15" rx="2" stroke="currentColor" stroke-width="1.75"/>
|
|
4
|
+
<path d="M3.5 9.5H20.5" stroke="currentColor" stroke-width="1.75"/>
|
|
5
|
+
<path d="M8 3V6.5" stroke="currentColor" stroke-width="1.75" stroke-linecap="round"/>
|
|
6
|
+
<path d="M16 3V6.5" stroke="currentColor" stroke-width="1.75" stroke-linecap="round"/>
|
|
7
|
+
</svg>
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"components/lmvz-card/lmvz-card.js",
|
|
8
8
|
"components/lmvz-checkbox/lmvz-checkbox.js",
|
|
9
9
|
"components/lmvz-chip/lmvz-chip.js",
|
|
10
|
+
"components/lmvz-datepicker/lmvz-datepicker.js",
|
|
10
11
|
"components/lmvz-header/lmvz-header.js",
|
|
11
12
|
"components/lmvz-icon/lmvz-icon.js",
|
|
12
13
|
"components/lmvz-input/lmvz-input.js",
|
|
@@ -86,6 +86,7 @@ input {
|
|
|
86
86
|
margin: 0;
|
|
87
87
|
cursor: pointer;
|
|
88
88
|
z-index: 1;
|
|
89
|
+
appearance: none;
|
|
89
90
|
}
|
|
90
91
|
.box {
|
|
91
92
|
display: flex;
|
|
@@ -175,7 +176,8 @@ label {
|
|
|
175
176
|
cursor: not-allowed;
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
|
-
:host(:focus-within) .pill {
|
|
179
|
+
/* :host(:focus-within) .pill { */
|
|
180
|
+
:host:has(:focus-visible) .pill {
|
|
179
181
|
outline: var(--lmvz-ds-outline, 1px solid #0e7ab4);
|
|
180
182
|
outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
181
183
|
}
|
|
@@ -200,7 +202,7 @@ label {
|
|
|
200
202
|
color: HighlightText;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
|
-
:host(:focus-
|
|
205
|
+
:host:has(:focus-visible) .pill {
|
|
204
206
|
outline-color: Highlight;
|
|
205
207
|
box-shadow: none;
|
|
206
208
|
}
|
|
@@ -30,7 +30,14 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
30
30
|
name;
|
|
31
31
|
disabled = false;
|
|
32
32
|
required = false;
|
|
33
|
-
|
|
33
|
+
nativeError = false;
|
|
34
|
+
errorFromProp = false;
|
|
35
|
+
get error() {
|
|
36
|
+
return this.errorFromProp || this.nativeError;
|
|
37
|
+
}
|
|
38
|
+
set error(value) {
|
|
39
|
+
this.errorFromProp = value;
|
|
40
|
+
}
|
|
34
41
|
errorMessage;
|
|
35
42
|
helperText;
|
|
36
43
|
form;
|
|
@@ -39,6 +46,10 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
39
46
|
handleCheckedChange(val) {
|
|
40
47
|
this.checkedState = val;
|
|
41
48
|
this.internals.setFormValue?.(val ? (this.value ?? 'on') : null);
|
|
49
|
+
this.updateValidity();
|
|
50
|
+
}
|
|
51
|
+
handleRequiredChange() {
|
|
52
|
+
this.updateValidity();
|
|
42
53
|
}
|
|
43
54
|
lmvzChange;
|
|
44
55
|
async focusInput() {
|
|
@@ -50,6 +61,9 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
50
61
|
async reportValidity() {
|
|
51
62
|
return this.internals?.reportValidity() ?? true;
|
|
52
63
|
}
|
|
64
|
+
async getValidationMessage() {
|
|
65
|
+
return this.internals?.validationMessage ?? '';
|
|
66
|
+
}
|
|
53
67
|
constructor() {
|
|
54
68
|
super();
|
|
55
69
|
this.addController(new AriaValidationController(this, {
|
|
@@ -60,10 +74,15 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
60
74
|
this.initialChecked = this.checked;
|
|
61
75
|
this.checkedState = this.checked;
|
|
62
76
|
this.internals.setFormValue?.(this.checked ? (this.value ?? 'on') : null);
|
|
77
|
+
this.updateValidity();
|
|
63
78
|
super.componentWillLoad();
|
|
64
79
|
}
|
|
80
|
+
componentDidLoad() {
|
|
81
|
+
this.updateValidity();
|
|
82
|
+
super.componentDidLoad();
|
|
83
|
+
}
|
|
65
84
|
componentWillRender() {
|
|
66
|
-
if (this.
|
|
85
|
+
if (this.errorFromProp && !this.errorMessage) {
|
|
67
86
|
console.warn('lmvz-checkbox: error=true set without errorMessage — no visual-only error state is rendered. Provide errorMessage to communicate the error to users.');
|
|
68
87
|
}
|
|
69
88
|
super.componentWillRender();
|
|
@@ -73,6 +92,7 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
73
92
|
}
|
|
74
93
|
formResetCallback() {
|
|
75
94
|
this.checked = this.initialChecked;
|
|
95
|
+
this.updateValidity();
|
|
76
96
|
}
|
|
77
97
|
formStateRestoreCallback(state) {
|
|
78
98
|
this.checked = state === (this.value ?? 'on');
|
|
@@ -85,8 +105,19 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
85
105
|
retargetInnerClicks() {
|
|
86
106
|
this.nativeInput?.click();
|
|
87
107
|
}
|
|
108
|
+
updateValidity() {
|
|
109
|
+
if (this.required && !this.checked) {
|
|
110
|
+
this.internals.setValidity?.({ valueMissing: true }, 'Please check this box.', this.nativeInput);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.internals.setValidity?.({});
|
|
114
|
+
this.nativeError = false;
|
|
115
|
+
}
|
|
116
|
+
handleInvalid() {
|
|
117
|
+
this.nativeError = true;
|
|
118
|
+
}
|
|
88
119
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: '089b23f8034fa089f358cc37923182c34f528cd2' }, h("div", { key: '0af011ebf062332c330b49fa3076828204433ac4', class: "pill" }, h("input", { key: 'a483a8c5bbe1d6da3cfab63ce32ad2e6392911ff', 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 }), h("span", { key: 'f21d34ab625c7eef23bd2761b399e8770cd62275', class: "box", "aria-hidden": "true" }, this.checkedState && h("span", { key: 'de2680ea17f34ab0124c529d88d4191c97d0a4c5', class: "indicator", innerHTML: CHECKMARK_SVG })), h("span", { key: '1b2d24e43603033a5a77340164e002de326db11a', class: "content" }, h("label", { key: 'b18f17abb4459b3783dc41d0031f4b26795fdcf5', htmlFor: this.checkboxId }, this.label), this.helperText && (h("span", { key: 'f32591c55fcc88d130815780a9999fcb235afd88', onClick: this.retargetInnerClicks.bind(this), class: "helper-text", id: this.helperId, role: "status" }, this.helperText)))), this.errorMessage && (h("span", { key: '076489f5baadab07d95fc787e9ac71bae0a6ab68', onClick: this.retargetInnerClicks.bind(this), class: "error-text", id: this.errorId, role: "alert" }, this.errorMessage))));
|
|
90
121
|
}
|
|
91
122
|
static get is() { return "lmvz-checkbox"; }
|
|
92
123
|
static get encapsulation() { return "scoped"; }
|
|
@@ -184,7 +215,7 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
184
215
|
},
|
|
185
216
|
"getter": false,
|
|
186
217
|
"setter": false,
|
|
187
|
-
"reflect":
|
|
218
|
+
"reflect": true,
|
|
188
219
|
"attribute": "name"
|
|
189
220
|
},
|
|
190
221
|
"disabled": {
|
|
@@ -250,11 +281,10 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
250
281
|
}],
|
|
251
282
|
"text": "Whether the checkbox is in an error state."
|
|
252
283
|
},
|
|
253
|
-
"getter":
|
|
254
|
-
"setter":
|
|
284
|
+
"getter": true,
|
|
285
|
+
"setter": true,
|
|
255
286
|
"reflect": true,
|
|
256
|
-
"attribute": "error"
|
|
257
|
-
"defaultValue": "false"
|
|
287
|
+
"attribute": "error"
|
|
258
288
|
},
|
|
259
289
|
"errorMessage": {
|
|
260
290
|
"type": "string",
|
|
@@ -340,6 +370,7 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
340
370
|
}
|
|
341
371
|
static get states() {
|
|
342
372
|
return {
|
|
373
|
+
"nativeError": {},
|
|
343
374
|
"checkedState": {}
|
|
344
375
|
};
|
|
345
376
|
}
|
|
@@ -413,6 +444,23 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
413
444
|
"text": "Reports validation errors to the user.",
|
|
414
445
|
"tags": []
|
|
415
446
|
}
|
|
447
|
+
},
|
|
448
|
+
"getValidationMessage": {
|
|
449
|
+
"complexType": {
|
|
450
|
+
"signature": "() => Promise<string>",
|
|
451
|
+
"parameters": [],
|
|
452
|
+
"references": {
|
|
453
|
+
"Promise": {
|
|
454
|
+
"location": "global",
|
|
455
|
+
"id": "global::Promise"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"return": "Promise<string>"
|
|
459
|
+
},
|
|
460
|
+
"docs": {
|
|
461
|
+
"text": "Returns the current validation message, if any.",
|
|
462
|
+
"tags": []
|
|
463
|
+
}
|
|
416
464
|
}
|
|
417
465
|
};
|
|
418
466
|
}
|
|
@@ -421,6 +469,18 @@ export class LmvzCheckbox extends ReactiveControllerHost {
|
|
|
421
469
|
return [{
|
|
422
470
|
"propName": "checked",
|
|
423
471
|
"methodName": "handleCheckedChange"
|
|
472
|
+
}, {
|
|
473
|
+
"propName": "required",
|
|
474
|
+
"methodName": "handleRequiredChange"
|
|
475
|
+
}];
|
|
476
|
+
}
|
|
477
|
+
static get listeners() {
|
|
478
|
+
return [{
|
|
479
|
+
"name": "invalid",
|
|
480
|
+
"method": "handleInvalid",
|
|
481
|
+
"target": undefined,
|
|
482
|
+
"capture": false,
|
|
483
|
+
"passive": false
|
|
424
484
|
}];
|
|
425
485
|
}
|
|
426
486
|
static get attachInternalsMemberName() { return "internals"; }
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
|
|
2
|
+
@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides;
|
|
3
|
+
/**
|
|
4
|
+
* This defines the order of our lmvz-ds' CSS layers. See readme.md for details.
|
|
5
|
+
* Important: Always import this file _before_ layering your own styles!
|
|
6
|
+
*/
|
|
7
|
+
@layer lmvz-ds.theme {
|
|
8
|
+
/**
|
|
9
|
+
* !CAUTION: Changes to this file have to be manually synced into `/packages/styles/src/no-transform/router-font.css`
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: Router;
|
|
14
|
+
src:
|
|
15
|
+
local('RouterBook-Regular'),
|
|
16
|
+
local('Router-Book'),
|
|
17
|
+
url('/assets/fonts/Router-Book.woff') format('woff');
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: Router;
|
|
23
|
+
src:
|
|
24
|
+
local('RouterMedium-Regular'),
|
|
25
|
+
local('Router-Medium'),
|
|
26
|
+
url('/assets/fonts/Router-Medium.woff') format('woff');
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: Router;
|
|
32
|
+
src:
|
|
33
|
+
local('RouterBold-Regular'),
|
|
34
|
+
local('Router-Bold'),
|
|
35
|
+
url('/assets/fonts/Router-Bold.woff') format('woff');
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
:host {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
/*
|
|
45
|
+
* Card chrome (background, border-radius, padding, shadow) is provided by the
|
|
46
|
+
* `lmvz-wrapper-card-md` class on the composed `lmvz-popover` — do not duplicate it here.
|
|
47
|
+
*/
|
|
48
|
+
.datepicker-panel {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: var(--lmvz-component-input-gap-lg, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));
|
|
52
|
+
}
|
|
53
|
+
.datepicker-header {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
.datepicker-month-label {
|
|
60
|
+
/* Reset native button styles */
|
|
61
|
+
all: unset;
|
|
62
|
+
/* Re-apply needed styles */
|
|
63
|
+
font: var(--lmvz-typography-body-md-strong, 500 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5
|
|
64
|
+
Router);
|
|
65
|
+
color: var(--lmvz-semantic-color-on-surface-primary, #000000);
|
|
66
|
+
text-align: center;
|
|
67
|
+
cursor: default;
|
|
68
|
+
/* Disabled state: no pointer events, but remains visible */
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
user-select: none;
|
|
71
|
+
}
|
|
72
|
+
.datepicker-weekday-row {
|
|
73
|
+
display: flex;
|
|
74
|
+
gap: var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
77
|
+
.datepicker-weekday {
|
|
78
|
+
flex: 1;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
font: var(--lmvz-typography-body-sm-strong, 500 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5
|
|
83
|
+
Router);
|
|
84
|
+
color: var(--lmvz-semantic-color-on-surface-secondary, #545454);
|
|
85
|
+
min-width: 0;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
.datepicker-grid {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));
|
|
92
|
+
}
|
|
93
|
+
.datepicker-week-row {
|
|
94
|
+
display: flex;
|
|
95
|
+
gap: var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem));
|
|
96
|
+
}
|
|
97
|
+
[part~='day'] {
|
|
98
|
+
/* Reset native button */
|
|
99
|
+
all: unset;
|
|
100
|
+
/* Flex child of week-row (replaces removed .datepicker-cell wrapper) */
|
|
101
|
+
flex: 1;
|
|
102
|
+
/* Sizing: fluid square matching input-size-md */
|
|
103
|
+
width: var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem));
|
|
104
|
+
height: var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem));
|
|
105
|
+
min-width: var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem));
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
|
|
112
|
+
border-radius: var(--lmvz-semantic-border-radius-round, 999px);
|
|
113
|
+
font: var(--lmvz-typography-body-md-strong, 500 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.5
|
|
114
|
+
Router);
|
|
115
|
+
color: var(--lmvz-semantic-color-on-surface-primary, #000000);
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
/* Smooth state transitions */
|
|
119
|
+
transition:
|
|
120
|
+
background-color 0.15s ease,
|
|
121
|
+
color 0.15s ease;
|
|
122
|
+
/* Ensure the outline renders outside the border-radius */
|
|
123
|
+
position: relative;
|
|
124
|
+
}
|
|
125
|
+
[part~='day--disabled'],
|
|
126
|
+
[part~='day']:disabled {
|
|
127
|
+
opacity: var(--lmvz-global-opacity-disabled, 40%);
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
}
|
|
130
|
+
[part~='day']:focus-visible {
|
|
131
|
+
outline: var(--lmvz-ds-outline, 1px solid #0e7ab4);
|
|
132
|
+
outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
133
|
+
}
|
|
134
|
+
[part~='day']:not(:disabled):hover {
|
|
135
|
+
background-color: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0);
|
|
136
|
+
color: var(--lmvz-semantic-color-on-surface-primary, #000000);
|
|
137
|
+
}
|
|
138
|
+
[part~='day--today'] {
|
|
139
|
+
box-shadow: inset 0 0 0 1px var(--lmvz-semantic-color-border-active, #0f8acc);
|
|
140
|
+
}
|
|
141
|
+
[part~='day--today']:not(:disabled):hover {
|
|
142
|
+
background-color: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0);
|
|
143
|
+
box-shadow: inset 0 0 0 1px var(--lmvz-semantic-color-border-active, #0f8acc);
|
|
144
|
+
}
|
|
145
|
+
[part~='day--selected'] {
|
|
146
|
+
background-color: var(--lmvz-semantic-color-status-active-alternate, #0f8acc);
|
|
147
|
+
color: var(--lmvz-semantic-color-status-on-active-alternate, #ffffff);
|
|
148
|
+
box-shadow: none;
|
|
149
|
+
}
|
|
150
|
+
[part~='day--today'][part~='day--selected'] {
|
|
151
|
+
background-color: var(--lmvz-semantic-color-status-active-alternate, #0f8acc);
|
|
152
|
+
color: var(--lmvz-semantic-color-status-on-active-alternate, #ffffff);
|
|
153
|
+
box-shadow: none;
|
|
154
|
+
}
|
|
155
|
+
[part~='day--selected']:not(:disabled):hover {
|
|
156
|
+
background-color: var(--lmvz-semantic-color-status-active-alternate, #0f8acc);
|
|
157
|
+
color: var(--lmvz-semantic-color-status-on-active-alternate, #ffffff);
|
|
158
|
+
}
|
|
159
|
+
[part~='day--out-of-month'] {
|
|
160
|
+
color: var(--lmvz-semantic-color-on-surface-tertiary, #7a7a7a);
|
|
161
|
+
}
|