@lmvz-ds/components 0.17.0 → 0.17.3
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 +28 -0
- package/assets/.DS_Store +0 -0
- package/assets/icons/.DS_Store +0 -0
- package/{dist/cjs/Effect-DdYOHaR4.js → cjs/Effect-YVFLBEfy.js} +3 -3
- package/{dist/cjs/aria-loader-BRxRUIyi.js → cjs/aria-loader-W9Zvc9e-.js} +1 -1
- package/{dist/cjs/assets-OvQ-WUwR.js → cjs/assets-DxYhun-q.js} +2 -2
- package/{dist/cjs/icons-EHBLbidD.js → cjs/icons-DgYgcKGK.js} +2 -2
- package/{dist/cjs/index-BBqtydE-.js → cjs/index-BNm4PQrX.js} +6881 -6730
- package/{dist/cjs/index-CH-YLRgg.js → cjs/index-C2yDXRqP.js} +45 -10
- package/{dist/cjs → cjs}/index.cjs.js +5 -5
- package/{dist/cjs → cjs}/lmvz-action.cjs.entry.js +2 -2
- package/{dist/cjs → cjs}/lmvz-button.cjs.entry.js +4 -4
- package/{dist/cjs → cjs}/lmvz-card.cjs.entry.js +3 -3
- package/{dist/cjs → cjs}/lmvz-chip.cjs.entry.js +2 -2
- package/{dist/cjs → cjs}/lmvz-components.cjs.js +2 -2
- package/{dist/cjs → cjs}/lmvz-header_2.cjs.entry.js +4 -4
- package/{dist/cjs → cjs}/lmvz-icon.cjs.entry.js +7 -7
- package/{dist/cjs → cjs}/lmvz-input.cjs.entry.js +5 -5
- package/{dist/cjs → cjs}/lmvz-menuitem.cjs.entry.js +4 -4
- package/{dist/cjs → cjs}/lmvz-select.cjs.entry.js +4 -4
- package/{dist/cjs → cjs}/loader.cjs.js +1 -1
- package/{dist/cjs/reactive-controller-host-vy1TIIXv.js → cjs/reactive-controller-host-B_davRfI.js} +4 -4
- package/collection/assets/.DS_Store +0 -0
- package/collection/assets/icons/.DS_Store +0 -0
- package/{dist/collection → collection}/collection-manifest.json +1 -1
- package/{dist/collection → collection}/components/lmvz-action/lmvz-action.js +1 -1
- package/{dist/collection → collection}/components/lmvz-button/lmvz-button.js +1 -1
- package/{dist/collection → collection}/components/lmvz-card/lmvz-card.js +1 -1
- package/{dist/collection → collection}/components/lmvz-chip/lmvz-chip.js +1 -1
- package/{dist/collection → collection}/components/lmvz-header/lmvz-header.js +1 -1
- package/{dist/collection → collection}/components/lmvz-icon/lmvz-icon.js +1 -1
- package/{dist/collection → collection}/components/lmvz-input/lmvz-input.js +2 -2
- package/{dist/collection → collection}/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/{dist/collection → collection}/components/lmvz-select/lmvz-select.js +1 -1
- package/{dist/collection → collection}/integration/header-integration.js +1 -1
- package/{dist/collection → collection}/utils/aria/aria-validation-controller.js +2 -2
- package/{dist/collection → collection}/utils/http.unit.js +5 -5
- package/{dist/components → components}/index.d.ts +9 -9
- package/components/index.d.ts.bak +55 -0
- package/{dist/components → components}/index.js +1 -1
- package/{dist/components → components}/lmvz-action.d.ts +1 -1
- package/components/lmvz-action.js +1 -0
- package/{dist/components → components}/lmvz-button.d.ts +1 -1
- package/{dist/components → components}/lmvz-button.js +1 -1
- package/{dist/components → components}/lmvz-card.d.ts +1 -1
- package/{dist/components → components}/lmvz-card.js +1 -1
- package/{dist/components → components}/lmvz-chip.d.ts +1 -1
- package/{dist/components → components}/lmvz-chip.js +1 -1
- package/{dist/components → components}/lmvz-header.d.ts +1 -1
- package/{dist/components → components}/lmvz-header.js +1 -1
- package/{dist/components → components}/lmvz-icon.d.ts +1 -1
- package/{dist/components → components}/lmvz-icon.js +1 -1
- package/{dist/components → components}/lmvz-input.d.ts +1 -1
- package/{dist/components → components}/lmvz-input.js +1 -1
- package/{dist/components → components}/lmvz-menuitem.d.ts +1 -1
- package/{dist/components → components}/lmvz-menuitem.js +1 -1
- package/{dist/components → components}/lmvz-select.d.ts +1 -1
- package/{dist/components → components}/lmvz-select.js +1 -1
- package/{dist/components/p-BsHYIl56.js → components/p-CYcWxAp5.js} +1 -1
- package/components/p-C_bScbrd.js +1 -0
- package/components/p-Clo63DJF.js +1 -0
- package/{dist/lmvz-components/p-DyO6wO4l.js → components/p-DHtXOUVf.js} +1 -1
- package/components/p-VkiNs_yz.js +12 -0
- package/{dist/esm/Effect-9SROYpxM.js → esm/Effect-DkwJP3kx.js} +3 -3
- package/{dist/esm/aria-loader-JxXwTAe5.js → esm/aria-loader-D9aySMw6.js} +1 -1
- package/{dist/esm/assets-CNHv_WMG.js → esm/assets-_WDisN-f.js} +1 -1
- package/{dist/esm/icons-B255FOe4.js → esm/icons-Crg18Lio.js} +2 -2
- package/{dist/esm/index-BW1YMEA3.js → esm/index-n6jVNpyp.js} +6881 -6730
- package/{dist/esm/index-CQb-mBBB.js → esm/index-saW7O-EW.js} +45 -10
- package/{dist/esm → esm}/index.js +5 -5
- package/{dist/esm → esm}/lmvz-action.entry.js +2 -2
- package/{dist/esm → esm}/lmvz-button.entry.js +4 -4
- package/{dist/esm → esm}/lmvz-card.entry.js +3 -3
- package/{dist/esm → esm}/lmvz-chip.entry.js +2 -2
- package/{dist/esm → esm}/lmvz-components.js +3 -3
- package/{dist/esm → esm}/lmvz-header_2.entry.js +4 -4
- package/{dist/esm → esm}/lmvz-icon.entry.js +7 -7
- package/{dist/esm → esm}/lmvz-input.entry.js +5 -5
- package/{dist/esm → esm}/lmvz-menuitem.entry.js +4 -4
- package/{dist/esm → esm}/lmvz-select.entry.js +4 -4
- package/{dist/esm → esm}/loader.js +2 -2
- package/{dist/esm/reactive-controller-host-OhKYwMvP.js → esm/reactive-controller-host-ByKmPKq1.js} +4 -4
- package/hydrate/index.js +69 -20
- package/hydrate/index.mjs +69 -20
- package/{dist/lmvz-components → lmvz-components}/index.esm.js +1 -1
- package/{dist/lmvz-components → lmvz-components}/lmvz-components.esm.js +1 -1
- package/{dist/lmvz-components/p-4530f088.entry.js → lmvz-components/p-121f74d8.entry.js} +1 -1
- package/{dist/lmvz-components/p-b9d1953f.entry.js → lmvz-components/p-1bda378c.entry.js} +1 -1
- package/{dist/lmvz-components/p-d9c3f542.entry.js → lmvz-components/p-373a9cbf.entry.js} +1 -1
- package/lmvz-components/p-43e295ba.entry.js +1 -0
- package/lmvz-components/p-5f150890.entry.js +1 -0
- package/{dist/lmvz-components/p-22f67eff.entry.js → lmvz-components/p-6d5fa8c4.entry.js} +1 -1
- package/{dist/lmvz-components/p-b8926640.entry.js → lmvz-components/p-986acfd0.entry.js} +1 -1
- package/lmvz-components/p-BT8PQPMJ.js +1 -0
- package/{dist/components/p-CKtksB0G.js → lmvz-components/p-BxiCs9Wn.js} +1 -1
- package/{dist/lmvz-components/p-Bx29-tJt.js → lmvz-components/p-CU4XwA2K.js} +1 -1
- package/lmvz-components/p-CXQcJLbG.js +12 -0
- package/lmvz-components/p-DPHHQR5F.js +1 -0
- package/{dist/lmvz-components/p-9SROYpxM.js → lmvz-components/p-DkwJP3kx.js} +1 -1
- package/{dist/lmvz-components/p-150ecfb6.entry.js → lmvz-components/p-abbfa6aa.entry.js} +1 -1
- package/{dist/lmvz-components/p-47d7ed0e.entry.js → lmvz-components/p-b704eca8.entry.js} +1 -1
- package/lmvz-components/p-saW7O-EW.js +2 -0
- package/loader/cdn.js +1 -1
- package/loader/index.cjs.js +1 -1
- package/loader/index.d.ts +1 -1
- package/loader/index.es2017.js +1 -1
- package/loader/index.js +1 -1
- package/{dist/manifest.json → manifest.json} +2 -2
- package/package.json +43 -106
- package/dist/components/lmvz-action.js +0 -1
- package/dist/components/p-CahBdGGN.js +0 -1
- package/dist/components/p-GKEnURpp.js +0 -1
- package/dist/components/p-vIq2biqy.js +0 -12
- package/dist/ext-libs.d.ts +0 -1
- package/dist/lmvz-components/p-5c3f1404.entry.js +0 -1
- package/dist/lmvz-components/p-8d51e396.entry.js +0 -1
- package/dist/lmvz-components/p-CQb-mBBB.js +0 -2
- package/dist/lmvz-components/p-Cp76bcGb.js +0 -1
- package/dist/lmvz-components/p-Cp7cp10e.js +0 -12
- package/dist/lmvz-components/p-i2508Ct1.js +0 -1
- package/dist/stencil.config.base.js +0 -44
- package/dist/stencil.config.dev.js +0 -21
- package/dist/stencil.config.integration.js +0 -26
- package/dist/stencil.config.js +0 -15
- package/dist/stencil.config.prod.js +0 -29
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.base.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.dev.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.integration.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.prod.d.ts +0 -2
- /package/{readme.md → README.md} +0 -0
- /package/{dist/cjs → cjs}/app-globals-V2Kpy_OQ.js +0 -0
- /package/{dist/cjs → cjs}/component-Csg9MtNK.js +0 -0
- /package/{dist/cjs → cjs}/element-activation-controller-DC_6T0Rt.js +0 -0
- /package/{dist/cjs → cjs}/index-Bp6Dd2i1.js +0 -0
- /package/{dist/collection → collection}/api/ds.constants.js +0 -0
- /package/{dist/collection → collection}/api/index.js +0 -0
- /package/{dist/collection → collection}/assets/LMVZ_logo_175.svg +0 -0
- /package/{dist/collection → collection}/assets/card-placeholder.svg +0 -0
- /package/{dist/collection → collection}/assets/fonts/Router-Bold.woff +0 -0
- /package/{dist/collection → collection}/assets/fonts/Router-Book.woff +0 -0
- /package/{dist/collection → collection}/assets/fonts/Router-Medium.woff +0 -0
- /package/{dist/collection → collection}/assets/icons/Logo.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/actions.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/adduser.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/alert.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/apple.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/arrow-down.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/arrow-left.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/arrow-right.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/arrow-up.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/book.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/bookmark.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/checkmark.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/chevron-down.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/chevron-left.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/chevron-right.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/chevron-up.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/close-l.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/close-sm.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/cog.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/computer.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/dashboard.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/delete.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/download.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/edit.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/external.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/facebook.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/favorite.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/filter.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/group.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/hide.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/home.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/info.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/instagram.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/letter.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/linkedin.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/logout.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/map.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/minus.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/navigation.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/plus.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/qr-scan.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/question.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/reader.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/reset.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/school.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/search.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/send.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/settings.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/share.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/shopping-cart.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/show.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/snapchat.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/sort.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/speech-bubble.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/star.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/student.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/upload.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/user.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/warn-circle.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/warn-triangle.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/whatsapp.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/world.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/x.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/youtube.svg +0 -0
- /package/{dist/collection → collection}/assets/zukunftslinie.svg +0 -0
- /package/{dist/collection → collection}/components/lmvz-action/lmvz-action.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-button/lmvz-button.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-card/lmvz-card.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-chip/lmvz-chip.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-header/lmvz-header.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-icon/icons.js +0 -0
- /package/{dist/collection → collection}/components/lmvz-icon/lmvz-icon.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-icon/public.js +0 -0
- /package/{dist/collection → collection}/components/lmvz-icon/test/icons.unit.js +0 -0
- /package/{dist/collection → collection}/components/lmvz-input/lmvz-input.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-menuitem/lmvz-menuitem.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-select/lmvz-select.css +0 -0
- /package/{dist/collection → collection}/index.js +0 -0
- /package/{dist/collection → collection}/utils/aria/element-activation-controller.js +0 -0
- /package/{dist/collection → collection}/utils/aria/list-keyboard-controller.js +0 -0
- /package/{dist/collection → collection}/utils/assets.js +0 -0
- /package/{dist/collection → collection}/utils/component.js +0 -0
- /package/{dist/collection → collection}/utils/effect.js +0 -0
- /package/{dist/collection → collection}/utils/environment.js +0 -0
- /package/{dist/collection → collection}/utils/http.js +0 -0
- /package/{dist/collection → collection}/utils/public.js +0 -0
- /package/{dist/collection → collection}/utils/reactive-controller-host.js +0 -0
- /package/{dist/collection → collection}/utils/validation/svg.js +0 -0
- /package/{dist/components → components}/p-BfTCfPZ1.js +0 -0
- /package/{dist/components → components}/p-CN0JX9-m.js +0 -0
- /package/{dist/components → components}/p-DQEkWkMh.js +0 -0
- /package/{dist/esm → esm}/app-globals-DQuL1Twl.js +0 -0
- /package/{dist/esm → esm}/component-DIrAQ4IB.js +0 -0
- /package/{dist/esm → esm}/element-activation-controller-CN0JX9-m.js +0 -0
- /package/{dist/esm → esm}/index-BfTCfPZ1.js +0 -0
- /package/{dist/index.cjs.js → index.cjs.js} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-BfTCfPZ1.js +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-CN0JX9-m.js +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-DIrAQ4IB.js +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-DQuL1Twl.js +0 -0
- /package/{dist/manifest.d.ts → manifest.d.ts} +0 -0
- /package/{dist/types → types}/api/aria-types.d.ts +0 -0
- /package/{dist/types → types}/api/ds.constants.d.ts +0 -0
- /package/{dist/types → types}/api/ds.types.d.ts +0 -0
- /package/{dist/types → types}/api/index.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-action/lmvz-action.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-button/lmvz-button.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-card/lmvz-card.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-chip/lmvz-chip.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-header/lmvz-header.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-icon/icons.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-icon/lmvz-icon.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-icon/public.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-icon/test/icons.unit.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-input/lmvz-input.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-menuitem/lmvz-menuitem.d.ts +0 -0
- /package/{dist/types → types}/components/lmvz-select/lmvz-select.d.ts +0 -0
- /package/{dist/types → types}/components.d.ts +0 -0
- /package/{dist/types → types}/index.d.ts +0 -0
- /package/{dist/types → types}/stencil-public-runtime.d.ts +0 -0
- /package/{dist/types → types}/utils/aria/aria-validation-controller.d.ts +0 -0
- /package/{dist/types → types}/utils/aria/element-activation-controller.d.ts +0 -0
- /package/{dist/types → types}/utils/aria/list-keyboard-controller.d.ts +0 -0
- /package/{dist/types → types}/utils/assets.d.ts +0 -0
- /package/{dist/types → types}/utils/component.d.ts +0 -0
- /package/{dist/types → types}/utils/effect.d.ts +0 -0
- /package/{dist/types → types}/utils/environment.d.ts +0 -0
- /package/{dist/types → types}/utils/http.d.ts +0 -0
- /package/{dist/types → types}/utils/http.unit.d.ts +0 -0
- /package/{dist/types → types}/utils/public.d.ts +0 -0
- /package/{dist/types → types}/utils/reactive-controller-host.d.ts +0 -0
- /package/{dist/types → types}/utils/validation/svg.d.ts +0 -0
|
@@ -50,7 +50,7 @@ export class LmvzSelect extends ReactiveControllerHost {
|
|
|
50
50
|
render() {
|
|
51
51
|
const hasValue = this.hasValue;
|
|
52
52
|
const shouldShowLabel = hasValue;
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '7d1abb943f79e90451b43c9221801b80a2f61346' }, h("div", { key: 'ded3e45246ab38e89d444c59239cdc63a2c4d4fc', class: "select-wrapper" }, h("label", { key: 'cb68ff79976c2fb55d4cc827f9e90ba2597a8a43', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && h("span", { key: 'ab77eaea1645b95d90f00ffb609bbd7a1704f7bc', "aria-hidden": "true" }, " *")), h("div", { key: '45cee00478a6cc31c10dddf69d8e6687fc8f440d', "aria-hidden": "true" }, h("span", { key: '0c5d425ea8843234aa6abd94a207377e2a675686' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && h("span", { key: 'ebef5322371ee0253b50dd801b80cbb6402c067a', "aria-hidden": "true" }, " *")), h("span", { key: 'a12d31dc29563444f728133f181b48914d31705b' }, h("img", { key: 'dd3f175d1ca2b9ccc6c2bfa2075e5da62016a896', src: chevronDownSvg, alt: "" }))), h("select", { key: 'a196f3b824177d1b45971c38341bf6a2939dda82', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && h("option", { key: '536cc559def0e9ffa4b2150693ece9a597c238d1', value: "", disabled: true, selected: true, hidden: true }), h("slot", { key: 'ad9fed96b9f8c1d8257511bb1d5ab5ee756973ce' }))), this.helperText && h("div", { key: '4723b44d781c900be5aae7ece2a0be04b6c744b9', role: "status" }, this.helperText)));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "lmvz-select"; }
|
|
56
56
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,7 +15,7 @@ export class HeaderIntegration {
|
|
|
15
15
|
this.activeNav = navId;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'c70b22cccc010b6a18ec6003e31b9fb905cd669e' }, h("lmvz-header", { key: 'bf4f3a9c603dcfeee519dc1e78d8e9cd6e836f98', lmvzActiveNav: this.activeNav }, h("lmvz-menuitem", { key: '64f3b9e2a6d5bb7feab15169d0de61e64a4002f1', slot: "nav-primary", id: "lehrmittel", onLmvzActivation: this.activate.bind(this) }, h("a", { key: '2af5799904621d8b48640694a16f3858b0a5ccf9', href: "#" }, "Lehrmittel")), h("lmvz-menuitem", { key: '54ed8090f68463bea9a18b290b1a1e707259119f', slot: "nav-primary", id: "verwaltung", onLmvzActivation: this.activate.bind(this) }, h("a", { key: '98b8d121e0fca6b0630bc664cbfeb9307ce5b7e5', href: "#" }, "Verwaltung")), h("lmvz-menuitem", { key: 'c656b1a95940f1e14cf905a20c4679e92ca456ee', slot: "connect-nav-lehrmittel" }, h("lmvz-icon", { key: 'd9d16fe6d1d0ac183724881f7f1b41ce04f3c607', icon: "book" }), "Deutsch 7"), h("lmvz-menuitem", { key: '7aaf7887accf7fc388fe425718bdf2f703686f98', slot: "connect-nav-lehrmittel" }, h("lmvz-icon", { key: 'e2791405657a2de9527057f6c6767260cd9d21af', icon: "book" }), "Mathe 2"), h("lmvz-menuitem", { key: 'c99fd516f891ae6bd6a76c92e504cf17ec3c0820', slot: "connect-nav-verwaltung" }, h("lmvz-icon", { key: '78d9563d8c9a78f6b7bee0ad79ac0c51d8575790', icon: "cog" }), "iwas mit Verwaltung"), h("lmvz-menuitem", { key: '225f8207ee869d5e37bb9d6dbd7881a6fe636637', slot: "connect-nav-verwaltung", "aria-label": "Einstellungen" }, h("lmvz-icon", { key: '0d89fcb8bfbb3918ff14d783cfc087c658df151a', icon: "cog" })), h("lmvz-button", { key: '2637addd2ee7158087d6ab50808e6f900acabbf2', slot: "actions", "aria-label": "Benutzerkonto" }, h("lmvz-icon", { key: 'c927e171d6f29474f18e2c222fff50c4947a0b3b', icon: "user" })))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "header-integration"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class AriaValidationController {
|
|
|
37
37
|
this.observeSlot();
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
if (!this.host.validationEl?.checkVisibility() || this.config?.validationTiming !== 'load') {
|
|
40
|
+
if (!this.host.validationEl?.checkVisibility?.() || this.config?.validationTiming !== 'load') {
|
|
41
41
|
this.observeVisibilityOnce();
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
@@ -84,7 +84,7 @@ export class AriaValidationController {
|
|
|
84
84
|
return;
|
|
85
85
|
if (!this.config?.reValidateOnPropChanges && (this.elementQueued || this.elementValidated))
|
|
86
86
|
return;
|
|
87
|
-
if (!this.host.validationEl?.checkVisibility())
|
|
87
|
+
if (!this.host.validationEl?.checkVisibility?.())
|
|
88
88
|
return;
|
|
89
89
|
this.enqueueValidation();
|
|
90
90
|
}
|
|
@@ -5,29 +5,29 @@ describe('Http Utils', () => {
|
|
|
5
5
|
describe('httpClient', () => {
|
|
6
6
|
it('should return response on successful fetch', async () => {
|
|
7
7
|
const mockResponse = { status: 200, url: 'https://example.com' };
|
|
8
|
-
|
|
8
|
+
globalThis.fetch = vi.fn().mockResolvedValueOnce(mockResponse);
|
|
9
9
|
const result = await Effect.runPromise(httpClient('https://example.com'));
|
|
10
10
|
expect(result).toEqual(mockResponse);
|
|
11
11
|
});
|
|
12
12
|
it('should handle fetch errors', async () => {
|
|
13
13
|
const error = new Error('Network error');
|
|
14
|
-
|
|
14
|
+
globalThis.fetch = vi.fn().mockRejectedValueOnce(error);
|
|
15
15
|
const result = await Effect.runPromise(Effect.flip(httpClient('https://example.com')));
|
|
16
16
|
expect(result).toBeInstanceOf(FetchError);
|
|
17
17
|
expect(result.cause).toBe(error);
|
|
18
18
|
});
|
|
19
19
|
it('should return NotFoundError on 404 status', async () => {
|
|
20
20
|
const mockResponse = { status: 404, url: 'https://example.com/notfound' };
|
|
21
|
-
|
|
21
|
+
globalThis.fetch = vi.fn().mockResolvedValueOnce(mockResponse);
|
|
22
22
|
const result = await Effect.runPromise(Effect.flip(httpClient('https://example.com/notfound')));
|
|
23
23
|
expect(result).toBeInstanceOf(NotFoundError);
|
|
24
24
|
});
|
|
25
25
|
it('should pass RequestInit options to fetch', async () => {
|
|
26
26
|
const mockResponse = { status: 200, url: 'https://example.com' };
|
|
27
|
-
|
|
27
|
+
globalThis.fetch = vi.fn().mockResolvedValueOnce(mockResponse);
|
|
28
28
|
const init = { method: 'POST', headers: { 'Content-Type': 'application/json' } };
|
|
29
29
|
await Effect.runPromise(httpClient('https://example.com', init));
|
|
30
|
-
expect(
|
|
30
|
+
expect(globalThis.fetch).toHaveBeenCalledWith('https://example.com', init);
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
describe('responseAsText', () => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* LmvzComponents custom elements */
|
|
2
|
-
export { LmvzAction as LmvzAction } from '
|
|
2
|
+
export { LmvzAction as LmvzAction } from '../../types/components/lmvz-action/lmvz-action';
|
|
3
3
|
export { defineCustomElement as defineCustomElementLmvzAction } from './lmvz-action';
|
|
4
|
-
export { LmvzButton as LmvzButton } from '
|
|
4
|
+
export { LmvzButton as LmvzButton } from '../../types/components/lmvz-button/lmvz-button';
|
|
5
5
|
export { defineCustomElement as defineCustomElementLmvzButton } from './lmvz-button';
|
|
6
|
-
export { LmvzCard as LmvzCard } from '
|
|
6
|
+
export { LmvzCard as LmvzCard } from '../../types/components/lmvz-card/lmvz-card';
|
|
7
7
|
export { defineCustomElement as defineCustomElementLmvzCard } from './lmvz-card';
|
|
8
|
-
export { LmvzChip as LmvzChip } from '
|
|
8
|
+
export { LmvzChip as LmvzChip } from '../../types/components/lmvz-chip/lmvz-chip';
|
|
9
9
|
export { defineCustomElement as defineCustomElementLmvzChip } from './lmvz-chip';
|
|
10
|
-
export { LmvzHeader as LmvzHeader } from '
|
|
10
|
+
export { LmvzHeader as LmvzHeader } from '../../types/components/lmvz-header/lmvz-header';
|
|
11
11
|
export { defineCustomElement as defineCustomElementLmvzHeader } from './lmvz-header';
|
|
12
|
-
export { LmvzIcon as LmvzIcon } from '
|
|
12
|
+
export { LmvzIcon as LmvzIcon } from '../../types/components/lmvz-icon/lmvz-icon';
|
|
13
13
|
export { defineCustomElement as defineCustomElementLmvzIcon } from './lmvz-icon';
|
|
14
|
-
export { LmvzInput as LmvzInput } from '
|
|
14
|
+
export { LmvzInput as LmvzInput } from '../../types/components/lmvz-input/lmvz-input';
|
|
15
15
|
export { defineCustomElement as defineCustomElementLmvzInput } from './lmvz-input';
|
|
16
|
-
export { LmvzMenuItem as LmvzMenuitem } from '
|
|
16
|
+
export { LmvzMenuItem as LmvzMenuitem } from '../../types/components/lmvz-menuitem/lmvz-menuitem';
|
|
17
17
|
export { defineCustomElement as defineCustomElementLmvzMenuitem } from './lmvz-menuitem';
|
|
18
|
-
export { LmvzSelect as LmvzSelect } from '
|
|
18
|
+
export { LmvzSelect as LmvzSelect } from '../../types/components/lmvz-select/lmvz-select';
|
|
19
19
|
export { defineCustomElement as defineCustomElementLmvzSelect } from './lmvz-select';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* LmvzComponents custom elements */
|
|
2
|
+
export { LmvzAction as LmvzAction } from '../../types/components/lmvz-action/lmvz-action';
|
|
3
|
+
export { defineCustomElement as defineCustomElementLmvzAction } from './lmvz-action';
|
|
4
|
+
export { LmvzButton as LmvzButton } from '../../types/components/lmvz-button/lmvz-button';
|
|
5
|
+
export { defineCustomElement as defineCustomElementLmvzButton } from './lmvz-button';
|
|
6
|
+
export { LmvzCard as LmvzCard } from '../../types/components/lmvz-card/lmvz-card';
|
|
7
|
+
export { defineCustomElement as defineCustomElementLmvzCard } from './lmvz-card';
|
|
8
|
+
export { LmvzChip as LmvzChip } from '../../types/components/lmvz-chip/lmvz-chip';
|
|
9
|
+
export { defineCustomElement as defineCustomElementLmvzChip } from './lmvz-chip';
|
|
10
|
+
export { LmvzHeader as LmvzHeader } from '../../types/components/lmvz-header/lmvz-header';
|
|
11
|
+
export { defineCustomElement as defineCustomElementLmvzHeader } from './lmvz-header';
|
|
12
|
+
export { LmvzIcon as LmvzIcon } from '../../types/components/lmvz-icon/lmvz-icon';
|
|
13
|
+
export { defineCustomElement as defineCustomElementLmvzIcon } from './lmvz-icon';
|
|
14
|
+
export { LmvzInput as LmvzInput } from '../../types/components/lmvz-input/lmvz-input';
|
|
15
|
+
export { defineCustomElement as defineCustomElementLmvzInput } from './lmvz-input';
|
|
16
|
+
export { LmvzMenuItem as LmvzMenuitem } from '../../types/components/lmvz-menuitem/lmvz-menuitem';
|
|
17
|
+
export { defineCustomElement as defineCustomElementLmvzMenuitem } from './lmvz-menuitem';
|
|
18
|
+
export { LmvzSelect as LmvzSelect } from '../../types/components/lmvz-select/lmvz-select';
|
|
19
|
+
export { defineCustomElement as defineCustomElementLmvzSelect } from './lmvz-select';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
23
|
+
* if the path needs to be customized.
|
|
24
|
+
*/
|
|
25
|
+
export declare const getAssetPath: (path: string) => string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Used to manually set the base path where assets can be found.
|
|
29
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
30
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
31
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
32
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
33
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
34
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
35
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
36
|
+
*/
|
|
37
|
+
export declare const setAssetPath: (path: string) => void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
41
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
42
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
43
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
44
|
+
* will result in the same behavior.
|
|
45
|
+
*/
|
|
46
|
+
export declare const setNonce: (nonce: string) => void
|
|
47
|
+
|
|
48
|
+
export interface SetPlatformOptions {
|
|
49
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
50
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
51
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
52
|
+
}
|
|
53
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
54
|
+
|
|
55
|
+
export * from '../../types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-C_bScbrd.js";export{A as ARIA_VALIDATION_RUNTIME_CHANGED_EVENT,d as disableAriaValidation,e as enableAriaValidation,i as isAriaValidationEnabled,q as queueValidation,u as useVerboseLogging}from"./p-Clo63DJF.js";export{LmvzIcon,c as clearIconCache,defineCustomElement as defineCustomElementLmvzIcon}from"./lmvz-icon.js";import{r as t}from"./p-CYcWxAp5.js";export{LmvzAction,defineCustomElement as defineCustomElementLmvzAction}from"./lmvz-action.js";export{LmvzButton,defineCustomElement as defineCustomElementLmvzButton}from"./lmvz-button.js";export{LmvzCard,defineCustomElement as defineCustomElementLmvzCard}from"./lmvz-card.js";export{LmvzChip,defineCustomElement as defineCustomElementLmvzChip}from"./lmvz-chip.js";export{LmvzHeader,defineCustomElement as defineCustomElementLmvzHeader}from"./lmvz-header.js";export{LmvzInput,defineCustomElement as defineCustomElementLmvzInput}from"./lmvz-input.js";export{LmvzMenuitem,defineCustomElement as defineCustomElementLmvzMenuitem}from"./lmvz-menuitem.js";export{LmvzSelect,defineCustomElement as defineCustomElementLmvzSelect}from"./lmvz-select.js";const o=["primary","secondary","tertiary"],n=["small","default","large"],m=["xs","sm","md","lg"],l=[...m,"xl"],f=["text","email","password","tel","url","search","number"],p=[...m,"inherit"],v=["thin","medium","bold","filled"],h=["Logo","actions","adduser","alert","apple","arrow-down","arrow-left","arrow-right","arrow-up","book","bookmark","checkmark","chevron-down","chevron-left","chevron-right","chevron-up","close-l","close-sm","cog","computer","dashboard","delete","download","edit","external","facebook","favorite","filter","group","hide","home","info","instagram","letter","linkedin","logout","map","minus","navigation","plus","qr-scan","question","reader","reset","school","search","send","settings","share","shopping-cart","show","snapchat","sort","speech-bubble","star","student","upload","user","warn-circle","warn-triangle","whatsapp","world","x","youtube"];function z(e){return t(e).catch((e=>{console.error("Unhandled error in Effect:",e)}))}export{h as iconNames,p as iconSizes,v as iconWeights,f as inputTypes,z as run,n as scaleValues,m as sizes,l as textSizes,o as variants}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as s,c,h as e,d as i,t as o}from"./p-C_bScbrd.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.actionClick=c(this,"actionClick")}actionClick;_onClick(t){this.actionClick.emit(t)}render(){return e(i,{key:"15c0f20e08cd5019abfd3bb71ec69d175dc5ba48",onClick:this._onClick.bind(this)},e("slot",{key:"f71a7853168d1b66b0a50b0f971d140385530ac3"}))}static get style(){return":host{display:block}"}},[257,"lmvz-action"]),a=n,l=function(){"undefined"!=typeof customElements&&["lmvz-action"].forEach((t=>{"lmvz-action"===t&&(customElements.get(o(t))||customElements.define(o(t),n))}))};export{a as LmvzAction,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,c as o,h as e,d as r,t as n}from"./p-
|
|
1
|
+
import{p as t,c as o,h as e,d as r,t as n}from"./p-C_bScbrd.js";import{c as a}from"./p-BfTCfPZ1.js";import{R as l,a as m}from"./p-Clo63DJF.js";import{E as i}from"./p-CN0JX9-m.js";import{i as s,f as d}from"./p-DQEkWkMh.js";const c=t(class extends l{get el(){return this}validationEl;inheritedAttributes={};formEl=null;formButtonEl=null;lmvzActivation;get ti(){return 0}scale="default";variant="secondary";disabled=!1;type="button";form;constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.lmvzActivation=o(this,"lmvzActivation"),this.addController(new m(this)),this.addController(new i(this,{localHandler:this.handleClick.bind(this),keys:["Enter"]}))}connectedCallback(){this.inheritedAttributes=s(this.el),super.connectedCallback()}renderHiddenButton(){const t=this.formEl=d(this.form,this.el);if(!t)return;const{formButtonEl:o}=this;if(null!==o&&t.contains(o))return;const e=this.formButtonEl=document.createElement("button");e.type="submit",e.style.display="none",e.disabled=this.disabled,t.appendChild(e)}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}handleClick=t=>{"submit"===this.type&&this.submitForm(t)};render(){return this.renderHiddenButton(),e(r,{key:"c6f44d3765d579e04ab91272747035d8589e2ff2","aria-disabled":this.disabled?"true":null},e("button",{key:"9d48dfc7a6a23df1eda46e9c9035520789a08d4c",ref:t=>this.validationEl=t,disabled:this.disabled,class:a(this.variant,{[this.scale??""]:!!this.scale,disabled:this.disabled}),...this.inheritedAttributes},e("slot",{key:"95e9fb932e477c7d6e933d2c00e6a3728e55c256"})))}static get delegatesFocus(){return!0}static get style(){return" @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } } :host { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-selected, #f1f9fe); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #d4d4d4); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: contents; } ::slotted(*) { --lmvz-component-color: var(--lmvz-button-color); } "}},[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1]}]),v=c,u=function(){"undefined"!=typeof customElements&&["lmvz-button"].forEach((t=>{"lmvz-button"===t&&(customElements.get(n(t))||customElements.define(n(t),c))}))};export{v as LmvzButton,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as r,c as t,h as a,d as o,t as m}from"./p-
|
|
1
|
+
import{p as e,H as r,c as t,h as a,d as o,t as m}from"./p-C_bScbrd.js";import{c as n}from"./p-DHtXOUVf.js";const l=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.primaryAction=t(this,"primaryAction")}cardTitle;imageUrl;description;primaryActionLabel="";primaryAction;get fallbackImage(){return n("card-placeholder.svg")}_onPrimaryClick(){this.primaryAction.emit()}_onOverflowClick(e){console.log(e)}render(){return a(o,{key:"46c2832b4f90b9eb222749632bc7ad59cd645e10",role:"article"},a("div",{key:"cc387fe96cff2dd04c24f75cf838a2bf6f438279",class:"top"},a("div",{key:"f9a54a5f81378ef4265e1d74c36c78af002e8874",class:"image-wrapper",style:{backgroundImage:`url(${this.imageUrl??this.fallbackImage})`}},a("div",{key:"76daed00408f7ae9ee46977637ddcd3d4f846380",class:"chip-slot"},a("slot",{key:"6ad522ef7428166b876d0218ef8d801c4ef337f1",name:"chip"})))),a("div",{key:"9c9799668ac199cfecbe10061e271d70d70e2d07",class:"bottom"},a("header",{key:"1bec743235bea5c7ab163225ffbd7bc6cf11f754"},a("h2",{key:"06f8e14153328bc5ca920e71e09d9343047c440c",class:"title"},this.cardTitle)),a("p",{key:"86b95db4e6464ca3236b4a03798013c3580819bf",class:"description"},this.description),a("div",{key:"553dc998d5318a4730196baa0b9baff3a0a3369f",class:"actions"},a("button",{key:"7532d01b46769198c23a1b1015c187fdefce146a",class:"primary",onClick:this._onPrimaryClick.bind(this),"data-testid":"primary"},this.primaryActionLabel),a("button",{key:"633d679ae59b1896aa2a06e04b4564569cf27a7d",class:"tertiary","aria-label":"More actions",onClick:this._onOverflowClick},a("span",{key:"b72c45f93d259502b9d7c5ffb19e292a53c60ec6",class:"icon-placeholder"},"...")))))}static get assetsDirs(){return["../../assets"]}static get style(){return"@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } } .sc-lmvz-card-h { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-selected, #f1f9fe); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #d4d4d4); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: flex; min-width: var(--lmvz-other-component-card-minwidth, 20.4375rem); max-width: var(--lmvz-other-component-card-maxwidth, 21.6875rem); flex-direction: column; align-items: flex-start; border-radius: var(--lmvz-semantic-border-radius-lg, 14px); border: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-border-default, #e0e0e0); background: var(--lmvz-semantic-color-surface-primary, #ffffff); } *.sc-lmvz-card { color: var(--lmvz-semantic-color-on-surface-primary, #000000); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } .top.sc-lmvz-card { display: flex; padding: var(--lmvz-dimension-8-12, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); flex-direction: column; justify-content: center; align-items: center; align-self: stretch; } .bottom.sc-lmvz-card { display: flex; min-width: 150px; padding: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)) var(--lmvz-dimension-10-14, clamp(0.63rem, 0.56rem + 0.26vw, 0.88rem)); flex-direction: column; align-items: flex-start; align-self: stretch; } .title.sc-lmvz-card { margin: 0; display: flex; justify-content: center; align-items: center; align-self: stretch; padding-bottom: var(--lmvz-global-s4, 4px); overflow-wrap: break-word; font: var(--lmvz-typography-heading-2xl, 500 clamp(2rem, 1.94rem + 0.26vw, 2.25rem) / 1.2 Router); } .description.sc-lmvz-card { display: flex; margin: 0; padding-bottom: var(--lmvz-component-body-sm-padding-bottom, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-items: flex-start; align-self: stretch; white-space: pre-line; font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } .image-wrapper.sc-lmvz-card { aspect-ratio: 4 / 3; width: 100%; background-size: cover; background-position: center; flex: 1 0 0; align-self: stretch; border-radius: var(--lmvz-semantic-border-radius-md, 6px); } .actions.sc-lmvz-card { margin-top: var(--lmvz-component-form-wrapper-gap-y, clamp(1.13rem, 0.97rem + 0.65vw, 1.75rem)); display: flex; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); align-self: stretch; } button.primary.sc-lmvz-card, lmvz-button.primary.sc-lmvz-card { display: flex; justify-content: center; align-items: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); flex: 1 0 0; }"}},[774,"lmvz-card",{cardTitle:[1,"card-title"],imageUrl:[1,"image-url"],description:[1],primaryActionLabel:[1,"primary-action-label"]}]),c=l,i=function(){"undefined"!=typeof customElements&&["lmvz-card"].forEach((e=>{"lmvz-card"===e&&(customElements.get(m(e))||customElements.define(m(e),l))}))};export{c as LmvzCard,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as c,t as n}from"./p-
|
|
1
|
+
import{p as t,H as e,h as s,d as c,t as n}from"./p-C_bScbrd.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}text;render(){return s(c,{key:"d128e24bb90891ebd13d13a8e27c06782363cace"},this.text)}static get style(){return":host{display:block}"}},[513,"lmvz-chip",{text:[1]}]),r=o,i=function(){"undefined"!=typeof customElements&&["lmvz-chip"].forEach((t=>{"lmvz-chip"===t&&(customElements.get(n(t))||customElements.define(n(t),o))}))};export{r as LmvzChip,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as M,h as N,d as e,t as I}from"./p-
|
|
1
|
+
import{p as M,h as N,d as e,t as I}from"./p-C_bScbrd.js";import{R as j,a as D}from"./p-Clo63DJF.js";import{g,c as i}from"./p-DQEkWkMh.js";class u{host;elements=[];constructor(M){this.host=M}hostDidRender(){this.host.el.addEventListener("keydown",this.handleKeydown)}updateElements(M){this.elements=M}handleKeydown=M=>{const{key:N}=M;if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(N))return;const e=g(document),I=this.getNextFocusableElement(e,["ArrowDown","ArrowRight"].includes(N)?"down":"up");I&&(M.preventDefault(),I.focus?.())};getNextFocusableElement(M,N){if(!M)return;const{elements:e}=this,I=e.indexOf(M);if(-1===I)return;let j;if("down"===N?j=(I+1)%e.length:"up"===N&&(j=(I-1+e.length)%e.length),null==j)return;const D=e[j];return i(D)?D:this.getNextFocusableElement(D,N)}}const a=M(class extends j{get el(){return this}get validationEl(){return this.el}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new u(this);get primaryMenuitems(){return this.primarySlot?.assignedElements({flatten:!1})||[]}get secondaryMenuitems(){return this.secondarySlot?.assignedElements({flatten:!0})||[]}get role(){return"banner"}lmvzActiveNav;get secondarySlotName(){return"connect-nav-"+this.lmvzActiveNav}constructor(M){super(!1),!1!==M&&this.__registerHost(),this.__attachShadow(),this.addController(new D(this,{reValidateOnPropChanges:!0})),this.addController(this.keyboardNavigationController)}handleActiveNavChange(){this.updateElementsActive()}componentDidLoad(){this.primarySlot?.addEventListener("slotchange",this.handlePrimaryNavItemsChange.bind(this)),this.handlePrimaryNavItemsChange(),this.secondarySlot?.addEventListener("slotchange",this.handleSecondaryNavItemsChange.bind(this)),super.componentDidLoad()}handlePrimaryNavItemsChange(){const M=this.primaryMenuitems;M.length?(M.forEach((M=>{M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-controls","nav-secondary")})),this.updateElementsActive(),this.updateKeyboardNavSubjects()):console.warn("Primary slot has no assigned elements. Please add navigation items to the primary slot.")}handleSecondaryNavItemsChange(){this.secondaryMenuitems.length&&this.updateKeyboardNavSubjects()}updateKeyboardNavSubjects(){this.keyboardNavigationController.updateElements([...this.primaryMenuitems,...this.secondaryMenuitems])}updateElementsActive(){const M=this.primaryMenuitems;if(!M.length)return;let N="";M.forEach((M=>{const e=M.id===this.lmvzActiveNav;e&&(N=M.textContent||M.id),M.setAttribute("aria-expanded",e?"true":"false")})),N&&this.secondaryNav?.setAttribute("aria-label","Untermenü für "+N)}delegateFocus(){const M=this.primaryMenuitems[0];M&&M.focus()}render(){return N(e,{key:"35883b5d4a92d10b5b010d822fb2233604464f9b",onFocus:this.delegateFocus.bind(this)},N("div",{key:"6fdec3af75bab2b076651b8cfef4aec8e23326a6",class:"brand"},N("slot",{key:"3127b4223b8bebfe425efc7ce45626f37fbf76b9",name:"brand"},N("img",{key:"20b3dd598e320c6950fb08bbd55dd80c47552eaf",id:"fallback-logo-lmvz",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iNzIiIHZpZXdCb3g9IjAgMCA0NiA3MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI3Ml80MDUpIj4KPHBhdGggZD0iTTEyLjUgMjAuNjVDMTMuMSAyMC42NSAxNC4yIDIwLjM1IDE0LjcgMjAuMzVDMTYuMSAyMC4zNSAxNy4yIDIxLjQ1IDE3LjIgMjIuODVDMTcuMiAyNC4yNSAxNi4xIDI1LjM1IDE0LjcgMjUuMzVIMi44QzEuMiAyNS4zNSAwIDI0LjE1IDAgMjIuNTVDMCAyMS45NSAwLjIgMjAuNjUgMC4yIDIwLjA1VjUuODQ5OTlDMC4yIDUuMTQ5OTkgMCAzLjk0OTk5IDAgMy4zNDk5OUMwIDEuNzQ5OTkgMS4yIDAuNTQ5OTg4IDIuOCAwLjU0OTk4OEM0LjMgMC41NDk5ODggNS42IDEuNzQ5OTkgNS42IDMuMzQ5OTlDNS42IDMuOTQ5OTkgNS40IDUuMTQ5OTkgNS40IDUuODQ5OTlWMjAuNTVIMTIuNVYyMC42NVpNMjIuMSAyMi43NUMyMi4xIDIyLjE1IDIyLjMgMjAuOTUgMjIuMyAyMC4yNVY1Ljg0OTk5QzIyLjMgNS4xNDk5OSAyMi4xIDMuOTQ5OTkgMjIuMSAzLjQ0OTk5QzIyLjEgMS45NDk5OSAyMy4yIDAuNzQ5OTg4IDI0LjYgMC43NDk5ODhIMjUuMkMyNi40IDAuNzQ5OTg4IDI3LjIgMS41NDk5OSAyNy42IDIuNjQ5OTlMMjggMy40NDk5OUwzMi45IDE0LjA1QzMzLjMgMTQuOTUgMzMuNyAxNi4wNSAzNCAxNi43NUMzNC4zIDE2LjA1IDM0LjcgMTQuOTUgMzUuMSAxNC4wNUw0MCAzLjU0OTk5TDQwLjMgMi41NDk5OUM0MC43IDEuNTQ5OTkgNDEuNSAwLjY0OTk4OCA0Mi42IDAuNjQ5OTg4SDQzLjJDNDQuNyAwLjY0OTk4OCA0NS43IDEuODQ5OTkgNDUuNyAzLjM0OTk5QzQ1LjcgMy45NDk5OSA0NS41IDUuMTQ5OTkgNDUuNSA1Ljc0OTk5VjIwLjE1QzQ1LjUgMjAuODUgNDUuNyAyMi4wNSA0NS43IDIyLjY1QzQ1LjcgMjQuMjUgNDQuNSAyNS40NSA0MyAyNS40NUM0MS40IDI1LjQ1IDQwLjMgMjQuMjUgNDAuMyAyMi42NUM0MC4zIDIxLjk1IDQwLjQgMjAuNzUgNDAuNCAyMC4xNUw0MC42IDE0LjA1QzQwLjYgMTMuMTUgNDAuNyAxMS43NSA0MC43IDEwLjY1TDM3IDE5LjA1QzM2LjcgMTkuNzUgMzYuNiAxOS45NSAzNi40IDIwLjM1QzM2IDIxLjI1IDM1LjMgMjEuODUgMzMuOSAyMS44NUMzMi41IDIxLjg1IDMxLjggMjEuMjUgMzEuNCAyMC40NUMzMS4yIDIwLjA1IDMxLjIgMTkuNzUgMzAuOCAxOS4wNUwyNyAxMC43NUMyNyAxMC43NSAyNy4xIDEzLjE1IDI3LjIgMTQuMDVMMjcuNCAyMC4xNUMyNy40IDIwLjg1IDI3LjUgMjEuOTUgMjcuNSAyMi42NUMyNy41IDI0LjI1IDI2LjQgMjUuNDUgMjQuOCAyNS40NUMyMy4zIDI1LjU1IDIyLjEgMjQuMjUgMjIuMSAyMi43NVpNMjguNyAzMi45NUMyOS4xIDMyLjk1IDMwLjIgMzMuMTUgMzAuNyAzMy4xNUg0MS44QzQyLjMgMzMuMTUgNDMuMiAzMi45NSA0My43IDMyLjk1QzQ0LjkgMzIuOTUgNDUuOCAzMy44NSA0NS44IDM1LjA1QzQ1LjggMzYuMTUgNDQuOSAzNy4xNSA0My43IDM3LjE1QzQzLjMgMzcuMTUgNDIuMyAzNi45NSA0MS44IDM2Ljk1SDMwLjhDMzAuMyAzNi45NSAyOS4yIDM3LjE1IDI4LjggMzcuMTVDMjcuNiAzNy4xNSAyNi43IDM2LjI1IDI2LjcgMzUuMDVDMjYuNiAzMy45NSAyNy41IDMyLjk1IDI4LjcgMzIuOTVaTTIuMSA2Ny4yNUMyLjUgNjcuMjUgMy42IDY3LjQ1IDQuMSA2Ny40NUgxOC41QzE5IDY3LjQ1IDE5LjkgNjcuMjUgMjAuNCA2Ny4yNUMyMS42IDY3LjI1IDIyLjUgNjguMTUgMjIuNSA2OS4zNUMyMi41IDcwLjQ1IDIxLjYgNzEuNDUgMjAuNCA3MS40NUMyMCA3MS40NSAxOSA3MS4yNSAxOC41IDcxLjI1SDQuMUMzLjYgNzEuMjUgMi41IDcxLjQ1IDIuMSA3MS40NUMwLjkgNzEuNDUgMCA3MC41NSAwIDY5LjM1QzAgNjguMjUgMC45IDY3LjI1IDIuMSA2Ny4yNVpNMjEuOSAzNS42NUMyMS45IDM1Ljk1IDIxLjggMzYuMzUgMjEuNiAzNi43NUMyMS4zIDM3LjQ1IDIwLjkgMzguMzUgMjAuNyAzOC44NUwxNC43IDU0LjY1QzE0LjUgNTUuMDUgMTQuNCA1NS41NSAxNC4yIDU2LjM1QzEzLjggNTcuNjUgMTIuNiA1OC4yNSAxMS4yIDU4LjI1SDEwLjhDOS40IDU4LjI1IDguMiA1Ny43NSA3LjggNTYuMzVDNy42IDU1LjU1IDcuNCA1NS4xNSA3LjIgNTQuNjVMMS4yIDM4Ljg1QzEgMzguMzUgMC42IDM3LjU1IDAuMiAzNi44NUMwLjEgMzYuNDUgMCAzNS45NSAwIDM1LjY1QzAgMzQuMTUgMS4yIDMyLjg1IDIuOCAzMi44NUMzLjkgMzIuODUgNSAzMy41NSA1LjMgMzQuNzVDNS41IDM1LjU1IDUuNSAzNi4xNSA2IDM3LjU1TDEwLjIgNDkuNDVDMTAuNSA1MC4zNSAxMC45IDUxLjQ1IDExLjEgNTIuMzVDMTEuMyA1MS40NSAxMS42IDUwLjQ1IDExLjkgNDkuNTVMMTYgMzcuNTVDMTYuNSAzNi4wNSAxNi40IDM1LjY1IDE2LjcgMzQuODVDMTcuMSAzMy42NSAxOC4xIDMyLjg1IDE5LjMgMzIuODVDMjAuOSAzMi44NSAyMS45IDM0LjE1IDIxLjkgMzUuNjVaTTI5LjcgNzEuNDVDMjguMiA3MS40NSAyNy4yIDcwLjQ1IDI3LjIgNjkuMTVDMjcuMiA2OC43NSAyNy4yIDY4LjI1IDI3LjggNjcuNDVMMzcuNCA1My40NUMzNy45IDUyLjc1IDM4LjUgNTIuMDUgMzkuMSA1MS4zNUgzMi4yQzMxLjUgNTEuMzUgMzAuNyA1MS42NSAzMC4xIDUxLjY1QzI4LjcgNTEuNjUgMjcuNiA1MC43NSAyNy42IDQ5LjM1QzI3LjYgNDcuOTUgMjguNyA0Ni45NSAzMC4xIDQ2Ljk1SDQyLjdDNDQuMiA0Ni45NSA0NS4yIDQ3Ljg1IDQ1LjIgNDkuMjVDNDUuMiA0OS42NSA0NSA1MC4zNSA0NC41IDUxLjA1TDM1LjIgNjQuODVDMzQuNyA2NS42NSAzNC4xIDY2LjQ1IDMzLjUgNjcuMDVINDEuMUM0MS45IDY3LjA1IDQyLjcgNjYuNzUgNDMuMyA2Ni43NUM0NC43IDY2Ljc1IDQ1LjcgNjcuNzUgNDUuNyA2OS4wNUM0NS43IDcwLjU1IDQ0LjUgNzEuNTUgNDMuMiA3MS41NUgyOS43VjcxLjQ1WiIgZmlsbD0iYmxhY2siLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yNzJfNDA1Ij4KPHJlY3Qgd2lkdGg9IjQ2IiBoZWlnaHQ9IjcyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",alt:"Lehrmittelverlag Zürich"}))),N("nav",{key:"c3bf07f78930085c1a7b89421506bcd41d139911","aria-label":"Hauptnavigation"},N("div",{key:"fbc5199080f52da4f10c8c14fbbc0877ecc5f31c",role:"menubar",class:"primary-menubar"},N("slot",{key:"4210d213dcf7a1a27a73f2a9cf7ff97fec62f0db",name:"nav-primary",ref:M=>this.primarySlot=M}),N("div",{key:"7b91c269f75e1245f75d471ec5bb7eeabfe1094d",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:M=>this.secondaryNav=M},N("slot",{key:"e23eb0f222b49d912bb45870df6d9b0d01f43788",name:this.secondarySlotName,ref:M=>this.secondarySlot=M})))),N("div",{key:"4b19026d5b2e54aa7aed072ce57de4acaa75cb4f",class:"actions"},N("slot",{key:"8f02d5d178bb60b40604fcd1be74d373d89c911f",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}static get style(){return":host{display:flex;width:100vw;flex-direction:row;align-items:center;box-sizing:border-box;background-color:var(--lmvz-semantic-color-surface-primary, #ffffff);--lmvz-header-x-spacing-level-1:var(--lmvz-dimension-8-28, clamp(0.5rem, 0.2rem + 1.29vw, 1.75rem));--lmvz-header-x-spacing-level-2:var(--lmvz-component-buttongroup-wrapper-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem));padding:var(--lmvz-dimension-8-16, clamp(0.5rem, 0.38rem + 0.52vw, 1rem)) var(--lmvz-header-x-spacing-level-1);gap:var(--lmvz-header-x-spacing-level-1);.brand{display:inline-flex;justify-content:center;align-items:center}#fallback-logo-lmvz{height:34px;width:auto}nav{flex-grow:1}.primary-menubar{display:flex;flex-direction:row;align-items:center}.secondary-menubar{display:flex;flex-direction:row;align-items:center;margin-left:var(--lmvz-header-x-spacing-level-2);padding-left:var(--lmvz-header-x-spacing-level-2);border-left:1px solid var(--lmvz-semantic-color-border-default, #e0e0e0)}}"}},[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},void 0,{lmvzActiveNav:[{handleActiveNavChange:0}]}]),t=a,A=function(){"undefined"!=typeof customElements&&["lmvz-header"].forEach((M=>{"lmvz-header"===M&&(customElements.get(I(M))||customElements.define(I(M),a))}))};export{t as LmvzHeader,A as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,h as s,d as e,t as i}from"./p-CahBdGGN.js";import{g as r,a as n,l as o,i as a,b as c,c as h,m as l,d as m,e as d,f as u,h as v,j as p,k as g,s as f,n as w,o as z,p as y,q as b,t as k,u as x,v as S,w as E,x as C,y as O,z as _,A as D,B as R,C as V,D as B,E as M,F as P,G as j,H as L,I as N,J as G,K as I,L as T,M as K,N as A,O as H,P as F,Q as U,R as $,S as J,T as W,U as Y,_ as q,V as Q,W as X,X as Z,Y as tt,Z as st,$ as et,a0 as it,a1 as rt,a2 as nt,a3 as ot,a4 as at,a5 as ct,a6 as ht,a7 as lt,a8 as mt,a9 as dt,aa as ut,r as vt,ab as pt,ac as gt,ad as ft,ae as wt}from"./p-BsHYIl56.js";import{R as zt,a as yt}from"./p-GKEnURpp.js";import{c as bt}from"./p-CKtksB0G.js";const kt=Symbol.for("effect/Brand/Refined"),xt=(t,s,e,i)=>D({_tag:"Complete",key:t,exit:s,entryStats:e,timeToLiveMillis:i}),St=(t,s)=>D({_tag:"Pending",key:t,deferred:s}),Et=Symbol.for("effect/Cache/MapKey");class Ct{current;[Et]=Et;previous=void 0;next=void 0;constructor(t){this.current=t}[K](){return A(U(this.current),F(U(this.previous)),F(U(this.next)),H(this))}[$](t){return this===t||_t(t)&&W(this.current,t.current)&&W(this.previous,t.previous)&&W(this.next,t.next)}}const Ot=t=>new Ct(t),_t=t=>J(t,Et);class Dt{head=void 0;tail=void 0;add(t){if(t!==this.tail)if(void 0===this.tail)this.head=t,this.tail=t;else{const s=t.previous,e=t.next;void 0!==e&&(t.next=void 0,void 0!==s?(s.next=e,e.previous=s):(this.head=e,this.head.previous=void 0)),this.tail.next=t,t.previous=this.tail,this.tail=t}}remove(){const t=this.head;if(void 0!==t){const s=t.next;void 0!==s?(t.next=void 0,this.head=s,this.head.previous=void 0):(this.head=void 0,this.tail=void 0)}return t}}const Rt=Symbol.for("effect/Cache"),Vt={_Key:t=>t,_Error:t=>t,_Value:t=>t},Bt=Symbol.for("effect/ConsumerCache"),Mt={_Key:t=>t,_Error:t=>t,_Value:t=>t},Pt=t=>({loadedMillis:t});class jt{capacity;context;fiberId;lookup;timeToLive;[Rt]=Vt;[Bt]=Mt;cacheState;constructor(t,s,e,i,r){this.capacity=t,this.context=s,this.fiberId=e,this.lookup=i,this.timeToLive=r,this.cacheState={map:B(),keys:new Dt,accesses:T(),updating:I(!1),hits:0,misses:0}}get(t){return d(this.getEither(t),g)}get cacheStats(){return f((()=>({hits:this.cacheState.hits,misses:this.cacheState.misses,size:w(this.cacheState.map)})))}getOption(t){return z((()=>l(y(this.cacheState.map,t),{onNone:()=>{const s=Ot(t);return this.trackAccess(s),this.trackMiss(),b(k())},onSome:t=>this.resolveMapValue(t)})))}getOptionComplete(t){return z((()=>l(y(this.cacheState.map,t),{onNone:()=>{const s=Ot(t);return this.trackAccess(s),this.trackMiss(),b(k())},onSome:t=>this.resolveMapValue(t,!0)})))}contains(t){return f((()=>x(this.cacheState.map,t)))}entryStats(t){return f((()=>{const s=y(this.cacheState.map,t);if(S(s))switch(s.value._tag){case"Complete":return E(Pt(s.value.entryStats.loadedMillis));case"Pending":return k();case"Refreshing":return E(Pt(s.value.complete.entryStats.loadedMillis))}return k()}))}getEither(t){return z((()=>{const s=t;let e,i,r=C(y(this.cacheState.map,s));return void 0===r&&(i=O(this.fiberId),e=Ot(s),x(this.cacheState.map,s)?r=C(y(this.cacheState.map,s)):_(this.cacheState.map,s,St(e,i))),void 0===r?(this.trackAccess(e),this.trackMiss(),d(this.lookupValueOf(t,i),n)):R(this.resolveMapValue(r),l({onNone:()=>this.getEither(t),onSome:t=>b(o(t))}))}))}invalidate(t){return f((()=>{V(this.cacheState.map,t)}))}invalidateWhen(t,s){return f((()=>{const e=y(this.cacheState.map,t);S(e)&&"Complete"===e.value._tag&&"Success"===e.value.exit._tag&&s(e.value.exit.value)&&V(this.cacheState.map,t)}))}get invalidateAll(){return f((()=>{this.cacheState.map=B()}))}refresh(t){return M((s=>z((()=>{const e=t,i=O(this.fiberId);let r=C(y(this.cacheState.map,e));if(void 0===r&&(x(this.cacheState.map,e)?r=C(y(this.cacheState.map,e)):_(this.cacheState.map,e,St(Ot(e),i))),void 0===r)return Y(this.lookupValueOf(t,i));switch(r._tag){case"Complete":if(this.hasExpired(s,r.timeToLiveMillis)){const s=C(y(this.cacheState.map,e));return W(s,r)&&V(this.cacheState.map,e),Y(this.get(t))}return A(this.lookupValueOf(t,i),Q((()=>{const t=C(y(this.cacheState.map,e));if(W(t,r)){const t=((t,s)=>D({_tag:"Refreshing",deferred:t,complete:s}))(i,r);return _(this.cacheState.map,e,t),!0}return!1})),Y);case"Pending":case"Refreshing":return q(r.deferred)}}))))}set(t,s){return M((e=>f((()=>{const i=e.unsafeCurrentTimeMillis(),r=t,n=X(s),o=xt(Ot(r),n,Pt(i),i+Z(m(this.timeToLive(n))));_(this.cacheState.map,r,o)}))))}get size(){return f((()=>w(this.cacheState.map)))}get values(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[1].exit.value);return t}))}get entries(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push([s[0],s[1].exit.value]);return t}))}get keys(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[0]);return t}))}resolveMapValue(t,s=!1){return M((e=>{switch(t._tag){case"Complete":return this.trackAccess(t.key),this.hasExpired(e,t.timeToLiveMillis)?(V(this.cacheState.map,t.key.current),b(k())):(this.trackHit(),d(t.exit,E));case"Pending":return this.trackAccess(t.key),this.trackHit(),s?b(k()):d(q(t.deferred),E);case"Refreshing":return this.trackAccess(t.complete.key),this.trackHit(),this.hasExpired(e,t.complete.timeToLiveMillis)?s?b(k()):d(q(t.deferred),E):d(t.complete.exit,E)}}))}trackHit(){this.cacheState.hits=this.cacheState.hits+1}trackMiss(){this.cacheState.misses=this.cacheState.misses+1}trackAccess(t){if(P(this.cacheState.accesses,t),j(this.cacheState.updating,!1,!0)){let t=!0;for(;t;){const s=L(this.cacheState.accesses,N);s===N?t=!1:this.cacheState.keys.add(s)}let s=w(this.cacheState.map);for(t=s>this.capacity;t;){const e=this.cacheState.keys.remove();void 0!==e?x(this.cacheState.map,e.current)&&(V(this.cacheState.map,e.current),s-=1,t=s>this.capacity):t=!1}G(this.cacheState.updating,!1)}}hasExpired(t,s){return t.unsafeCurrentTimeMillis()>s}lookupValueOf(t,s){return M((e=>z((()=>{const i=t;return A(this.lookup(t),nt(this.context),rt,R((t=>{const r=e.unsafeCurrentTimeMillis(),n=Pt(r),o=xt(Ot(i),t,n,r+Z(m(this.timeToLive(t))));return _(this.cacheState.map,i,o),st(it(s,t),t)})),tt((()=>st(et(s),f((()=>{V(this.cacheState.map,i)}))))))}))))}}const Lt=t=>{const s=m(t.timeToLive);return(t=>d(u([v(),p]),(([s,e])=>new jt(t.capacity,s,e,t.lookup,(s=>m(t.timeToLive(s)))))))({capacity:t.capacity,lookup:t.lookup,timeToLive:()=>s})},Nt=function(){const t=Symbol.for("effect/Data/Error/plainArgs");return class extends ot{constructor(s){super(s?.message,s?.cause?{cause:s.cause}:void 0),s&&(Object.assign(this,s),Object.defineProperty(this,t,{value:s,enumerable:!1}))}toJSON(){return{...this[t],...this}}}}(),Gt=t=>{const s={BaseEffectError:class extends Nt{_tag=t}};return s.BaseEffectError.prototype.name=t,s.BaseEffectError};class It extends(Gt("FetchError")){}class Tt extends(Gt("NotFoundError")){}class Kt extends(Gt("ResponseTextError")){constructor(t){super(Error("Failed to read response text",{cause:t}))}}const At=function(...t){const s=2===t.length?s=>t[0](s)?n(s):o(t[1](s)):s=>l(t[0](s),{onNone:()=>n(s),onSome:o});return Object.assign((t=>r(s(t),a)),{[kt]:kt,option:t=>h(s(t)),either:s,is:t=>c(s(t))})}((function(t){if("string"!=typeof t)return!1;try{return"svg"===(new DOMParser).parseFromString(t,"image/svg+xml").documentElement.nodeName}catch{return!1}}),(()=>[{message:"SVG data is malformed",meta:void 0}]));class Ht extends(Gt("BrandValidationError")){constructor(t,s){super(Error(`Brand validation failed for type ${s}.`,{cause:t}))}}let Ft=null;function Ut(){return mt((function*(){Ft?yield*Ft.invalidateAll:dt("Attempted to clear icon cache before it was initialized")}))}const $t=t(class extends zt{intersectionObserver;ariaValidationController=new yt(this);get el(){return this}validationEl;icon;weight="medium";size="md";iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.addController(this.ariaValidationController)}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()})),super.connectedCallback()}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),super.disconnectedCallback()}async loadIconPathData(){const{icon:t,visible:s}=this;t&&s&&(this.iconData=await vt(function(t){const s=t;return mt((function*(){return Ft||(Ft=yield*Lt({capacity:200,timeToLive:ut,lookup:t=>mt((function*(){const s=bt(t+".svg","icons"),e=yield*(t=>at((function*(){const s=yield*ct({try:()=>fetch(t,void 0),catch:t=>new It({cause:t})});return 404===s.status?yield*ht(new Tt({url:s.url})):s})))(s),i=yield*(t=>ct({try:()=>t.text(),catch:t=>new Kt(t)}))(e);return yield*(t=>lt({try:()=>At(t),catch:t=>new Ht(t,"SVGString")}))(i)}))})),yield*Ft.get(s)}))}(this.icon).pipe(pt((s=>gt(`Error loading icon "${t}":`,s.message,s.cause,s.stack))),ft((()=>wt(At('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>')))))))}componentDidRender(){this.validationEl=this.el.querySelector("svg"),this.ariaValidationController.revalidateAria(),super.componentDidRender()}render(){return s(e,{key:"4ce6e3931a1c8bfa1ddd48c780d005d110902b19",role:"img","aria-hidden":""+this.ariaHidden,innerHTML:this.iconData})}waitUntilVisible(t,s=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((s=>{s.some((s=>!!s.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,t(),!0)))}),{rootMargin:s+"px"}),this.intersectionObserver.observe(this.el)):t()}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}static get style(){return".sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg>path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg>path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg>path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg>path{stroke-width:2;fill:var(--lmvz-icon-color)}}"}},[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},void 0,{icon:[{loadIconPathData:0}]}]),Jt=$t,Wt=function(){"undefined"!=typeof customElements&&["lmvz-icon"].forEach((t=>{"lmvz-icon"===t&&(customElements.get(i(t))||customElements.define(i(t),$t))}))};export{Jt as LmvzIcon,Ut as c,Wt as defineCustomElement}
|
|
1
|
+
import{p as t,h as s,d as e,t as i}from"./p-C_bScbrd.js";import{g as r,a as n,l as o,i as a,b as c,c as h,m as l,d as m,e as d,f as u,h as v,j as p,k as g,s as f,n as w,o as z,p as y,q as b,t as x,u as S,v as k,w as C,x as E,y as D,z as O,A as _,B as V,C as M,D as P,E as R,F as j,G as L,H as N,I as T,J as A,K as B,L as I,M as F,N as H,O as K,P as G,Q as J,R as U,S as W,T as $,U as X,_ as Y,V as q,W as Q,X as Z,Y as tt,Z as st,$ as et,a0 as it,a1 as rt,a2 as nt,a3 as ot,a4 as at,a5 as ct,a6 as ht,a7 as lt,a8 as mt,a9 as dt,aa as ut,r as vt,ab as pt,ac as gt,ad as ft,ae as wt}from"./p-CYcWxAp5.js";import{R as zt,a as yt}from"./p-Clo63DJF.js";import{c as bt}from"./p-DHtXOUVf.js";const xt=Symbol.for("effect/Brand/Refined"),St=(t,s,e,i)=>_({_tag:"Complete",key:t,exit:s,entryStats:e,timeToLiveMillis:i}),kt=(t,s)=>_({_tag:"Pending",key:t,deferred:s}),Ct=Symbol.for("effect/Cache/MapKey");class Et{current;[Ct]=Ct;previous=void 0;next=void 0;constructor(t){this.current=t}[F](){return H(J(this.current),G(J(this.previous)),G(J(this.next)),K(this))}[U](t){return this===t||Ot(t)&&$(this.current,t.current)&&$(this.previous,t.previous)&&$(this.next,t.next)}}const Dt=t=>new Et(t),Ot=t=>W(t,Ct);class _t{head=void 0;tail=void 0;add(t){if(t!==this.tail)if(void 0===this.tail)this.head=t,this.tail=t;else{const s=t.previous,e=t.next;void 0!==e&&(t.next=void 0,void 0!==s?(s.next=e,e.previous=s):(this.head=e,this.head.previous=void 0)),this.tail.next=t,t.previous=this.tail,this.tail=t}}remove(){const t=this.head;if(void 0!==t){const s=t.next;void 0!==s?(t.next=void 0,this.head=s,this.head.previous=void 0):(this.head=void 0,this.tail=void 0)}return t}}const Vt=Symbol.for("effect/Cache"),Mt={_Key:t=>t,_Error:t=>t,_Value:t=>t},Pt=Symbol.for("effect/ConsumerCache"),Rt={_Key:t=>t,_Error:t=>t,_Value:t=>t},jt=t=>({loadedMillis:t});class Lt{capacity;context;fiberId;lookup;timeToLive;[Vt]=Mt;[Pt]=Rt;cacheState;constructor(t,s,e,i,r){this.capacity=t,this.context=s,this.fiberId=e,this.lookup=i,this.timeToLive=r,this.cacheState={map:P(),keys:new _t,accesses:I(),updating:B(!1),hits:0,misses:0}}get(t){return d(this.getEither(t),g)}get cacheStats(){return f((()=>({hits:this.cacheState.hits,misses:this.cacheState.misses,size:w(this.cacheState.map)})))}getOption(t){return z((()=>l(y(this.cacheState.map,t),{onNone:()=>{const s=Dt(t);return this.trackAccess(s),this.trackMiss(),b(x())},onSome:t=>this.resolveMapValue(t)})))}getOptionComplete(t){return z((()=>l(y(this.cacheState.map,t),{onNone:()=>{const s=Dt(t);return this.trackAccess(s),this.trackMiss(),b(x())},onSome:t=>this.resolveMapValue(t,!0)})))}contains(t){return f((()=>S(this.cacheState.map,t)))}entryStats(t){return f((()=>{const s=y(this.cacheState.map,t);if(k(s))switch(s.value._tag){case"Complete":return C(jt(s.value.entryStats.loadedMillis));case"Pending":return x();case"Refreshing":return C(jt(s.value.complete.entryStats.loadedMillis))}return x()}))}getEither(t){return z((()=>{const s=t;let e,i,r=E(y(this.cacheState.map,s));return void 0===r&&(i=D(this.fiberId),e=Dt(s),S(this.cacheState.map,s)?r=E(y(this.cacheState.map,s)):O(this.cacheState.map,s,kt(e,i))),void 0===r?(this.trackAccess(e),this.trackMiss(),d(this.lookupValueOf(t,i),n)):V(this.resolveMapValue(r),l({onNone:()=>this.getEither(t),onSome:t=>b(o(t))}))}))}invalidate(t){return f((()=>{M(this.cacheState.map,t)}))}invalidateWhen(t,s){return f((()=>{const e=y(this.cacheState.map,t);k(e)&&"Complete"===e.value._tag&&"Success"===e.value.exit._tag&&s(e.value.exit.value)&&M(this.cacheState.map,t)}))}get invalidateAll(){return f((()=>{this.cacheState.map=P()}))}refresh(t){return R((s=>z((()=>{const e=t,i=D(this.fiberId);let r=E(y(this.cacheState.map,e));if(void 0===r&&(S(this.cacheState.map,e)?r=E(y(this.cacheState.map,e)):O(this.cacheState.map,e,kt(Dt(e),i))),void 0===r)return X(this.lookupValueOf(t,i));switch(r._tag){case"Complete":if(this.hasExpired(s,r.timeToLiveMillis)){const s=E(y(this.cacheState.map,e));return $(s,r)&&M(this.cacheState.map,e),X(this.get(t))}return H(this.lookupValueOf(t,i),q((()=>{const t=E(y(this.cacheState.map,e));if($(t,r)){const t=((t,s)=>_({_tag:"Refreshing",deferred:t,complete:s}))(i,r);return O(this.cacheState.map,e,t),!0}return!1})),X);case"Pending":case"Refreshing":return Y(r.deferred)}}))))}set(t,s){return R((e=>f((()=>{const i=e.unsafeCurrentTimeMillis(),r=t,n=Q(s),o=St(Dt(r),n,jt(i),i+Z(m(this.timeToLive(n))));O(this.cacheState.map,r,o)}))))}get size(){return f((()=>w(this.cacheState.map)))}get values(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[1].exit.value);return t}))}get entries(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push([s[0],s[1].exit.value]);return t}))}get keys(){return f((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[0]);return t}))}resolveMapValue(t,s=!1){return R((e=>{switch(t._tag){case"Complete":return this.trackAccess(t.key),this.hasExpired(e,t.timeToLiveMillis)?(M(this.cacheState.map,t.key.current),b(x())):(this.trackHit(),d(t.exit,C));case"Pending":return this.trackAccess(t.key),this.trackHit(),s?b(x()):d(Y(t.deferred),C);case"Refreshing":return this.trackAccess(t.complete.key),this.trackHit(),this.hasExpired(e,t.complete.timeToLiveMillis)?s?b(x()):d(Y(t.deferred),C):d(t.complete.exit,C)}}))}trackHit(){this.cacheState.hits=this.cacheState.hits+1}trackMiss(){this.cacheState.misses=this.cacheState.misses+1}trackAccess(t){if(j(this.cacheState.accesses,t),L(this.cacheState.updating,!1,!0)){let t=!0;for(;t;){const s=N(this.cacheState.accesses,T);s===T?t=!1:this.cacheState.keys.add(s)}let s=w(this.cacheState.map);for(t=s>this.capacity;t;){const e=this.cacheState.keys.remove();void 0!==e?S(this.cacheState.map,e.current)&&(M(this.cacheState.map,e.current),s-=1,t=s>this.capacity):t=!1}A(this.cacheState.updating,!1)}}hasExpired(t,s){return t.unsafeCurrentTimeMillis()>s}lookupValueOf(t,s){return R((e=>z((()=>{const i=t;return H(this.lookup(t),nt(this.context),rt,V((t=>{const r=e.unsafeCurrentTimeMillis(),n=jt(r),o=St(Dt(i),t,n,r+Z(m(this.timeToLive(t))));return O(this.cacheState.map,i,o),st(it(s,t),t)})),tt((()=>st(et(s),f((()=>{M(this.cacheState.map,i)}))))))}))))}}const Nt=t=>{const s=m(t.timeToLive);return(t=>d(u([v(),p]),(([s,e])=>new Lt(t.capacity,s,e,t.lookup,(s=>m(t.timeToLive(s)))))))({capacity:t.capacity,lookup:t.lookup,timeToLive:()=>s})},Tt=function(){const t=Symbol.for("effect/Data/Error/plainArgs");return class extends ot{constructor(s){super(s?.message,s?.cause?{cause:s.cause}:void 0),s&&(Object.assign(this,s),Object.defineProperty(this,t,{value:s,enumerable:!1}))}toJSON(){return{...this[t],...this}}}}(),At=t=>{const s={BaseEffectError:class extends Tt{_tag=t}};return s.BaseEffectError.prototype.name=t,s.BaseEffectError};class Bt extends(At("FetchError")){}class It extends(At("NotFoundError")){}class Ft extends(At("ResponseTextError")){constructor(t){super(Error("Failed to read response text",{cause:t}))}}const Ht=function(...t){const s=2===t.length?s=>t[0](s)?n(s):o(t[1](s)):s=>l(t[0](s),{onNone:()=>n(s),onSome:o});return Object.assign((t=>r(s(t),a)),{[xt]:xt,option:t=>h(s(t)),either:s,is:t=>c(s(t))})}((function(t){if("string"!=typeof t)return!1;try{return"svg"===(new DOMParser).parseFromString(t,"image/svg+xml").documentElement.nodeName}catch{return!1}}),(()=>[{message:"SVG data is malformed",meta:void 0}]));class Kt extends(At("BrandValidationError")){constructor(t,s){super(Error(`Brand validation failed for type ${s}.`,{cause:t}))}}let Gt=null;function Jt(){return mt((function*(){Gt?yield*Gt.invalidateAll:dt("Attempted to clear icon cache before it was initialized")}))}const Ut=t(class extends zt{intersectionObserver;ariaValidationController=new yt(this);get el(){return this}validationEl;icon;weight="medium";size="md";iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.addController(this.ariaValidationController)}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()})),super.connectedCallback()}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),super.disconnectedCallback()}async loadIconPathData(){const{icon:t,visible:s}=this;t&&s&&(this.iconData=await vt(function(t){const s=t;return mt((function*(){return Gt||(Gt=yield*Nt({capacity:200,timeToLive:ut,lookup:t=>mt((function*(){const s=bt(t+".svg","icons"),e=yield*(t=>at((function*(){const s=yield*ct({try:()=>fetch(t,void 0),catch:t=>new Bt({cause:t})});return 404===s.status?yield*ht(new It({url:s.url})):s})))(s),i=yield*(t=>ct({try:()=>t.text(),catch:t=>new Ft(t)}))(e);return yield*(t=>lt({try:()=>Ht(t),catch:t=>new Kt(t,"SVGString")}))(i)}))})),yield*Gt.get(s)}))}(this.icon).pipe(pt((s=>gt(`Error loading icon "${t}":`,s.message,s.cause,s.stack))),ft((()=>wt(Ht('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>')))))))}componentDidRender(){this.validationEl=this.el.querySelector("svg"),this.ariaValidationController.revalidateAria(),super.componentDidRender()}render(){return s(e,{key:"f5c2f8025d0e9598d903e72770ebca6cad01961c",role:"img","aria-hidden":""+this.ariaHidden,innerHTML:this.iconData})}waitUntilVisible(t,s=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((s=>{s.some((s=>!!s.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,t(),!0)))}),{rootMargin:s+"px"}),this.intersectionObserver.observe(this.el)):t()}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}static get style(){return".sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg>path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg>path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg>path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg>path{stroke-width:2;fill:var(--lmvz-icon-color)}}"}},[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},void 0,{icon:[{loadIconPathData:0}]}]),Wt=Ut,$t=function(){"undefined"!=typeof customElements&&["lmvz-icon"].forEach((t=>{"lmvz-icon"===t&&(customElements.get(i(t))||customElements.define(i(t),Ut))}))};export{Wt as LmvzIcon,Jt as c,$t as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,c as e,h as r,t as i}from"./p-CahBdGGN.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,a as n}from"./p-GKEnURpp.js";import{a as l}from"./p-DQEkWkMh.js";let s=0;const p=t(class extends a{get el(){return this}get validationEl(){return this.el}lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+s++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?this.inputId+"-helper":void 0}get showErrorMessage(){return this.error&&!!this.errorMessage}get errorId(){return this.inputId+"-error"}get describedBy(){const t=[];return this.helperId&&t.push(this.helperId),this.showErrorMessage&&t.push(this.errorId),t.length>0?t.join(" "):void 0}value;label;helperText;placeholder;disabled=!1;readonly=!1;required=!1;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=!1;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){const e=this.nativeInputElement,r=t??"";e&&(e.value=r),this.value=r,this.internals.setFormValue?.(r),this.lmvzInput.emit(r)}async focusInput(){this.nativeInputElement?.focus()}async blurInput(){this.nativeInputElement?.blur()}async select(){this.nativeInputElement?.select()}async checkValidity(){return this.nativeInputElement?.checkValidity?.()??!1}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??!1}async getInputElement(){return this.nativeInputElement||await new Promise((t=>l(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.lmvzInput=e(this,"lmvzInput"),this.internals=this.attachInternals(),this.addController(new n(this,{reValidateOnPropChanges:!0}))}componentWillLoad(){this.initialValue=this.value??"",super.componentWillLoad()}formAssociatedCallback(t){t&&this.internals.setFormValue?.(this.value??"")}formResetCallback(){this.internals.setValidity({}),this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){this.nativeInputElement&&(this.nativeInputElement.value===t||this.setValue(t))}handleDisabledChange(t){t&&this.nativeInputElement&&this.nativeInputElement.blur()}handleInput=t=>{this.setValue(t.target.value)};handleChange=t=>{this.updateNativeError(t.target??this.nativeInputElement)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;e&&(this.nativeError=!(e.checkValidity?.()??1))}render(){const t=!!this.value,e=t||!!this.placeholder;return r("div",{key:"97674bbf9a17f1533340f19f0643bc8695417da6",class:o("input-container",{"interaction-filled":t})},r("div",{key:"51aee84c821a5ad8884981bae3c42d0ed29a1fc5",class:"input-wrapper"},r("slot",{key:"589b38e7977f74f7037a71b6b530ea98750f3bee",name:"before-input"}),r("div",{key:"f5856cfc71ceb9093ceaa1b60bb6f4d964dadc7f",class:"label-input-group"},r("label",{key:"fbd6bb71131cf7384a79ba6f4f606c430e326bef",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&r("span",{key:"d479254f9ac11a31278720d41e56db1300c06b15",class:"required-indicator","aria-hidden":"true"}," ","*")),r("input",{key:"bb7b43947207bebb31412aa0e0eb58a9fed98963",id:this.inputId,ref:t=>this.nativeInputElement=t,type:this.type,min:this.min,max:this.max,step:this.step,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,required:this.required,form:this.form,autocomplete:this.autocomplete,inputmode:this.inputmode,autocorrect:this.autocorrect,autocapitalize:this.autocapitalize,spellcheck:this.spellcheck,autofocus:this.autofocus,minlength:this.minlength,maxlength:this.maxlength,pattern:this.pattern,"aria-invalid":this.error?"true":"false","aria-required":this.required?"true":"false","aria-describedby":this.describedBy,"aria-errormessage":this.errorId,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})),r("slot",{key:"a21d46103f1b0040e67e20b4faf016a2b2fdd4dc",name:"after-input"})),r("div",{key:"53adfecb08ab29d1636052061dc37dffcd697ab2",id:this.helperId,role:"status"},this.helperText||null),r("div",{key:"ea3406ebd72ef02a0f293ab01cf4cf9971687b30",id:this.errorId,role:"alert"},this.showErrorMessage&&this.errorMessage||null))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }"}},[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},void 0,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]),c=p,u=function(){"undefined"!=typeof customElements&&["lmvz-input"].forEach((t=>{"lmvz-input"===t&&(customElements.get(i(t))||customElements.define(i(t),p))}))};export{c as LmvzInput,u as defineCustomElement}
|
|
1
|
+
import{p as t,c as e,h as r,t as i}from"./p-C_bScbrd.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,a as n}from"./p-Clo63DJF.js";import{a as l}from"./p-DQEkWkMh.js";let s=0;const c=t(class extends a{get el(){return this}get validationEl(){return this.el}lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+s++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?this.inputId+"-helper":void 0}get showErrorMessage(){return this.error&&!!this.errorMessage}get errorId(){return this.inputId+"-error"}get describedBy(){const t=[];return this.helperId&&t.push(this.helperId),this.showErrorMessage&&t.push(this.errorId),t.length>0?t.join(" "):void 0}value;label;helperText;placeholder;disabled=!1;readonly=!1;required=!1;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=!1;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){const e=this.nativeInputElement,r=t??"";e&&(e.value=r),this.value=r,this.internals.setFormValue?.(r),this.lmvzInput.emit(r)}async focusInput(){this.nativeInputElement?.focus()}async blurInput(){this.nativeInputElement?.blur()}async select(){this.nativeInputElement?.select()}async checkValidity(){return this.nativeInputElement?.checkValidity?.()??!1}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??!1}async getInputElement(){return this.nativeInputElement||await new Promise((t=>l(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(!1),!1!==t&&this.__registerHost(),this.lmvzInput=e(this,"lmvzInput"),this.internals=this.attachInternals(),this.addController(new n(this,{reValidateOnPropChanges:!0}))}componentWillLoad(){this.initialValue=this.value??"",super.componentWillLoad()}formAssociatedCallback(t){t&&this.internals.setFormValue?.(this.value??"")}formResetCallback(){this.internals.setValidity({}),this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){this.nativeInputElement&&(this.nativeInputElement.value===t||this.setValue(t))}handleDisabledChange(t){t&&this.nativeInputElement&&this.nativeInputElement.blur()}handleInput=t=>{this.setValue(t.target.value)};handleChange=t=>{this.updateNativeError(t.target??this.nativeInputElement)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;e&&(this.nativeError=!(e.checkValidity?.()??1))}render(){const t=!!this.value,e=t||!!this.placeholder;return r("div",{key:"195e2c5046d48d01f4912993bde3c8d2b3a73d1d",class:o("input-container",{"interaction-filled":t})},r("div",{key:"66bc3deab063a309eefc0de5ebf7f54331c9190c",class:"input-wrapper"},r("slot",{key:"fac318070421d526bb09ba0dd0efdecf8964d952",name:"before-input"}),r("div",{key:"1945152dc010d571c5886f222332b057e89e496c",class:"label-input-group"},r("label",{key:"d57392c2c83b1e5f362dd33fa9d060e570417f3f",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&r("span",{key:"507603a50eb08f0f4f5e2b87b2550fe6b657c4d4",class:"required-indicator","aria-hidden":"true"}," ","*")),r("input",{key:"0fe916fef48618331806142c0d3500d9e6dec9cb",id:this.inputId,ref:t=>this.nativeInputElement=t,type:this.type,min:this.min,max:this.max,step:this.step,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,required:this.required,form:this.form,autocomplete:this.autocomplete,inputmode:this.inputmode,autocorrect:this.autocorrect,autocapitalize:this.autocapitalize,spellcheck:this.spellcheck,autofocus:this.autofocus,minlength:this.minlength,maxlength:this.maxlength,pattern:this.pattern,"aria-invalid":this.error?"true":"false","aria-required":this.required?"true":"false","aria-describedby":this.describedBy,"aria-errormessage":this.errorId,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})),r("slot",{key:"b415bedde58862e5bd7621f73a1d77bc478850a3",name:"after-input"})),r("div",{key:"bc0e07f5243417f4c632eb2f7976dc944fdbf17a",id:this.helperId,role:"status"},this.helperText||null),r("div",{key:"62e2267453b92edd47077b233cb231a1deecedc4",id:this.errorId,role:"alert"},this.showErrorMessage&&this.errorMessage||null))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return"@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }"}},[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},void 0,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]),p=c,u=function(){"undefined"!=typeof customElements&&["lmvz-input"].forEach((t=>{"lmvz-input"===t&&(customElements.get(i(t))||customElements.define(i(t),c))}))};export{p as LmvzInput,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,c as t,h as m,d as o,t as r}from"./p-
|
|
1
|
+
import{p as e,c as t,h as m,d as o,t as r}from"./p-C_bScbrd.js";import{R as n,a as l}from"./p-Clo63DJF.js";import{E as a}from"./p-CN0JX9-m.js";const i=e(class extends n{get el(){return this}get validationEl(){return this.el}validationSlot;get role(){return"menuitem"}get ti(){return 0}lmvzActivation;constructor(e){super(!1),!1!==e&&this.__registerHost(),this.lmvzActivation=t(this,"lmvzActivation"),this.addController(new l(this,{validationTiming:"slot"})),this.addController(new a(this))}render(){return m(o,{key:"1a37d2873a29c713cf95c60070c8dcf045c9f8fc"},m("slot",{key:"c6578bcfdb9f0cebad095d80f0ed63cf663bf91e",ref:e=>this.validationSlot=e}))}static get style(){return"@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-menuitem-h { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); border-radius: var(--lmvz-semantic-border-radius-lg, 14px); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); padding: var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)) var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); cursor: pointer; --lmvz-menuitem-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); background: var(--lmvz-menuitem-background); color: var(--lmvz-menuitem-color); } .sc-lmvz-menuitem-h:hover { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } .sc-lmvz-menuitem-h:active { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } .sc-lmvz-menuitem-h:focus-visible { z-index: 1; } [aria-expanded='true'].sc-lmvz-menuitem-h { --lmvz-menuitem-background: var(--lmvz-semantic-color-status-selected, #f1f9fe); --lmvz-menuitem-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); }"}},[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]),s=i,c=function(){"undefined"!=typeof customElements&&["lmvz-menuitem"].forEach((e=>{"lmvz-menuitem"===e&&(customElements.get(r(e))||customElements.define(r(e),i))}))};export{s as LmvzMenuitem,c as defineCustomElement}
|