@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
package/hydrate/index.js
CHANGED
|
@@ -136,7 +136,7 @@ const NAMESPACE = 'lmvz-components';
|
|
|
136
136
|
const BUILD = /* lmvz-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
137
137
|
|
|
138
138
|
/*
|
|
139
|
-
Stencil Hydrate Platform v4.43.
|
|
139
|
+
Stencil Hydrate Platform v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
140
140
|
*/
|
|
141
141
|
var __create = Object.create;
|
|
142
142
|
var __defProp = Object.defineProperty;
|
|
@@ -1664,6 +1664,31 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
1664
1664
|
return cssText;
|
|
1665
1665
|
};
|
|
1666
1666
|
|
|
1667
|
+
// src/runtime/normalize-watchers.ts
|
|
1668
|
+
var normalizeWatchers = (raw) => {
|
|
1669
|
+
if (!raw) return void 0;
|
|
1670
|
+
const keys = Object.keys(raw);
|
|
1671
|
+
if (keys.length === 0) return void 0;
|
|
1672
|
+
let hasLegacy = false;
|
|
1673
|
+
for (const propName of keys) {
|
|
1674
|
+
if (hasLegacy) break;
|
|
1675
|
+
for (const h2 of raw[propName]) {
|
|
1676
|
+
if (typeof h2 === "string") {
|
|
1677
|
+
hasLegacy = true;
|
|
1678
|
+
break;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
if (!hasLegacy) return raw;
|
|
1683
|
+
const out = {};
|
|
1684
|
+
for (const propName of keys) {
|
|
1685
|
+
out[propName] = raw[propName].map(
|
|
1686
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
1687
|
+
);
|
|
1688
|
+
}
|
|
1689
|
+
return out;
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1667
1692
|
// src/utils/remote-value.ts
|
|
1668
1693
|
var RemoteValue = class _RemoteValue {
|
|
1669
1694
|
/**
|
|
@@ -1760,11 +1785,19 @@ var RemoteValue = class _RemoteValue {
|
|
|
1760
1785
|
};
|
|
1761
1786
|
|
|
1762
1787
|
// src/utils/serialize.ts
|
|
1788
|
+
function decodeBase64Unicode(base64) {
|
|
1789
|
+
const binary = atob(base64);
|
|
1790
|
+
const bytes = new Uint8Array(binary.length);
|
|
1791
|
+
for (let i2 = 0; i2 < binary.length; i2++) {
|
|
1792
|
+
bytes[i2] = binary.charCodeAt(i2);
|
|
1793
|
+
}
|
|
1794
|
+
return new TextDecoder().decode(bytes);
|
|
1795
|
+
}
|
|
1763
1796
|
function deserializeProperty(value) {
|
|
1764
1797
|
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1765
1798
|
return value;
|
|
1766
1799
|
}
|
|
1767
|
-
return RemoteValue.fromLocalValue(JSON.parse(
|
|
1800
|
+
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
1768
1801
|
}
|
|
1769
1802
|
|
|
1770
1803
|
// src/runtime/parse-property-value.ts
|
|
@@ -2833,7 +2866,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2833
2866
|
{
|
|
2834
2867
|
{
|
|
2835
2868
|
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
2836
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2869
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
2837
2870
|
}
|
|
2838
2871
|
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
2839
2872
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
@@ -2922,7 +2955,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2922
2955
|
}
|
|
2923
2956
|
if (!Cstr.isProxied) {
|
|
2924
2957
|
{
|
|
2925
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2958
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
2926
2959
|
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2927
2960
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2928
2961
|
}
|
|
@@ -5326,7 +5359,7 @@ class LmvzAction {
|
|
|
5326
5359
|
this.actionClick.emit(event);
|
|
5327
5360
|
}
|
|
5328
5361
|
render() {
|
|
5329
|
-
return (hAsync(Host, { key: '
|
|
5362
|
+
return (hAsync(Host, { key: '15c0f20e08cd5019abfd3bb71ec69d175dc5ba48', onClick: this._onClick.bind(this) }, hAsync("slot", { key: 'f71a7853168d1b66b0a50b0f971d140385530ac3' })));
|
|
5330
5363
|
}
|
|
5331
5364
|
static get style() { return lmvzActionCss(); }
|
|
5332
5365
|
static get cmpMeta() { return {
|
|
@@ -5529,7 +5562,7 @@ class AriaValidationController {
|
|
|
5529
5562
|
this.observeSlot();
|
|
5530
5563
|
return;
|
|
5531
5564
|
}
|
|
5532
|
-
if (!this.host.validationEl?.checkVisibility() || this.config?.validationTiming !== 'load') {
|
|
5565
|
+
if (!this.host.validationEl?.checkVisibility?.() || this.config?.validationTiming !== 'load') {
|
|
5533
5566
|
this.observeVisibilityOnce();
|
|
5534
5567
|
return;
|
|
5535
5568
|
}
|
|
@@ -5576,7 +5609,7 @@ class AriaValidationController {
|
|
|
5576
5609
|
return;
|
|
5577
5610
|
if (!this.config?.reValidateOnPropChanges && (this.elementQueued || this.elementValidated))
|
|
5578
5611
|
return;
|
|
5579
|
-
if (!this.host.validationEl?.checkVisibility())
|
|
5612
|
+
if (!this.host.validationEl?.checkVisibility?.())
|
|
5580
5613
|
return;
|
|
5581
5614
|
this.enqueueValidation();
|
|
5582
5615
|
}
|
|
@@ -5895,7 +5928,7 @@ class LmvzButton extends ReactiveControllerHost {
|
|
|
5895
5928
|
};
|
|
5896
5929
|
render() {
|
|
5897
5930
|
this.renderHiddenButton();
|
|
5898
|
-
return (hAsync(Host, { key: '
|
|
5931
|
+
return (hAsync(Host, { key: 'c6f44d3765d579e04ab91272747035d8589e2ff2', "aria-disabled": this.disabled ? 'true' : null }, hAsync("button", { key: '9d48dfc7a6a23df1eda46e9c9035520789a08d4c', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, hAsync("slot", { key: '95e9fb932e477c7d6e933d2c00e6a3728e55c256' }))));
|
|
5899
5932
|
}
|
|
5900
5933
|
static get delegatesFocus() { return true; }
|
|
5901
5934
|
static get style() { return lmvzButtonCss(); }
|
|
@@ -5961,7 +5994,7 @@ class LmvzCard {
|
|
|
5961
5994
|
const imgStyle = {
|
|
5962
5995
|
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
5963
5996
|
};
|
|
5964
|
-
return (hAsync(Host, { key: '
|
|
5997
|
+
return (hAsync(Host, { key: '46c2832b4f90b9eb222749632bc7ad59cd645e10', role: "article" }, hAsync("div", { key: 'cc387fe96cff2dd04c24f75cf838a2bf6f438279', class: "top" }, hAsync("div", { key: 'f9a54a5f81378ef4265e1d74c36c78af002e8874', class: "image-wrapper", style: imgStyle }, hAsync("div", { key: '76daed00408f7ae9ee46977637ddcd3d4f846380', class: "chip-slot" }, hAsync("slot", { key: '6ad522ef7428166b876d0218ef8d801c4ef337f1', name: "chip" })))), hAsync("div", { key: '9c9799668ac199cfecbe10061e271d70d70e2d07', class: "bottom" }, hAsync("header", { key: '1bec743235bea5c7ab163225ffbd7bc6cf11f754' }, hAsync("h2", { key: '06f8e14153328bc5ca920e71e09d9343047c440c', class: "title" }, this.cardTitle)), hAsync("p", { key: '86b95db4e6464ca3236b4a03798013c3580819bf', class: "description" }, this.description), hAsync("div", { key: '553dc998d5318a4730196baa0b9baff3a0a3369f', class: "actions" }, hAsync("button", { key: '7532d01b46769198c23a1b1015c187fdefce146a', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), hAsync("button", { key: '633d679ae59b1896aa2a06e04b4564569cf27a7d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, hAsync("span", { key: 'b72c45f93d259502b9d7c5ffb19e292a53c60ec6', class: "icon-placeholder" }, "..."))))));
|
|
5965
5998
|
}
|
|
5966
5999
|
static get assetsDirs() { return ["../../assets"]; }
|
|
5967
6000
|
static get style() { return lmvzCardCss(); }
|
|
@@ -5988,7 +6021,7 @@ class LmvzChip {
|
|
|
5988
6021
|
}
|
|
5989
6022
|
text;
|
|
5990
6023
|
render() {
|
|
5991
|
-
return hAsync(Host, { key: '
|
|
6024
|
+
return hAsync(Host, { key: 'd128e24bb90891ebd13d13a8e27c06782363cace' }, this.text);
|
|
5992
6025
|
}
|
|
5993
6026
|
static get style() { return lmvzChipCss(); }
|
|
5994
6027
|
static get cmpMeta() { return {
|
|
@@ -6135,7 +6168,7 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
6135
6168
|
}
|
|
6136
6169
|
}
|
|
6137
6170
|
render() {
|
|
6138
|
-
return (hAsync(Host, { key: '
|
|
6171
|
+
return (hAsync(Host, { key: '35883b5d4a92d10b5b010d822fb2233604464f9b', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: '6fdec3af75bab2b076651b8cfef4aec8e23326a6', class: "brand" }, hAsync("slot", { key: '3127b4223b8bebfe425efc7ce45626f37fbf76b9', name: "brand" }, hAsync("img", { key: '20b3dd598e320c6950fb08bbd55dd80c47552eaf', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: 'c3bf07f78930085c1a7b89421506bcd41d139911', "aria-label": "Hauptnavigation" }, hAsync("div", { key: 'fbc5199080f52da4f10c8c14fbbc0877ecc5f31c', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: '4210d213dcf7a1a27a73f2a9cf7ff97fec62f0db', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: '7b91c269f75e1245f75d471ec5bb7eeabfe1094d', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: 'e23eb0f222b49d912bb45870df6d9b0d01f43788', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: '4b19026d5b2e54aa7aed072ce57de4acaa75cb4f', class: "actions" }, hAsync("slot", { key: '8f02d5d178bb60b40604fcd1be74d373d89c911f', name: "actions" }))));
|
|
6139
6172
|
}
|
|
6140
6173
|
static get watchers() { return {
|
|
6141
6174
|
"lmvzActiveNav": [{
|
|
@@ -7008,7 +7041,7 @@ const OP_FAILURE = "Failure";
|
|
|
7008
7041
|
/** @internal */
|
|
7009
7042
|
const OP_WITH_RUNTIME = "WithRuntime";
|
|
7010
7043
|
|
|
7011
|
-
let moduleVersion = "3.21.
|
|
7044
|
+
let moduleVersion = "3.21.1";
|
|
7012
7045
|
const getCurrentVersion = () => moduleVersion;
|
|
7013
7046
|
|
|
7014
7047
|
/** @internal */
|
|
@@ -9950,7 +9983,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
9950
9983
|
super.componentDidRender();
|
|
9951
9984
|
}
|
|
9952
9985
|
render() {
|
|
9953
|
-
return hAsync(Host, { key: '
|
|
9986
|
+
return hAsync(Host, { key: 'f5c2f8025d0e9598d903e72770ebca6cad01961c', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
9954
9987
|
}
|
|
9955
9988
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
9956
9989
|
{
|
|
@@ -10140,9 +10173,9 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
10140
10173
|
render() {
|
|
10141
10174
|
const hasValue = Boolean(this.value);
|
|
10142
10175
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
10143
|
-
return (hAsync("div", { key: '
|
|
10176
|
+
return (hAsync("div", { key: '195e2c5046d48d01f4912993bde3c8d2b3a73d1d', class: classNames('input-container', {
|
|
10144
10177
|
'interaction-filled': hasValue,
|
|
10145
|
-
}) }, hAsync("div", { key: '
|
|
10178
|
+
}) }, hAsync("div", { key: '66bc3deab063a309eefc0de5ebf7f54331c9190c', class: "input-wrapper" }, hAsync("slot", { key: 'fac318070421d526bb09ba0dd0efdecf8964d952', name: "before-input" }), hAsync("div", { key: '1945152dc010d571c5886f222332b057e89e496c', class: "label-input-group" }, hAsync("label", { key: 'd57392c2c83b1e5f362dd33fa9d060e570417f3f', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: '507603a50eb08f0f4f5e2b87b2550fe6b657c4d4', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: '0fe916fef48618331806142c0d3500d9e6dec9cb', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), hAsync("slot", { key: 'b415bedde58862e5bd7621f73a1d77bc478850a3', name: "after-input" })), hAsync("div", { key: 'bc0e07f5243417f4c632eb2f7976dc944fdbf17a', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '62e2267453b92edd47077b233cb231a1deecedc4', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
10146
10179
|
}
|
|
10147
10180
|
static get formAssociated() { return true; }
|
|
10148
10181
|
static get watchers() { return {
|
|
@@ -10220,7 +10253,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
10220
10253
|
this.addController(new ElementActivationController(this));
|
|
10221
10254
|
}
|
|
10222
10255
|
render() {
|
|
10223
|
-
return (hAsync(Host, { key: '
|
|
10256
|
+
return (hAsync(Host, { key: '1a37d2873a29c713cf95c60070c8dcf045c9f8fc' }, hAsync("slot", { key: 'c6578bcfdb9f0cebad095d80f0ed63cf663bf91e', ref: (e) => (this.validationSlot = e) })));
|
|
10224
10257
|
}
|
|
10225
10258
|
static get style() { return lmvzMenuitemCss(); }
|
|
10226
10259
|
static get cmpMeta() { return {
|
|
@@ -10290,7 +10323,7 @@ class LmvzSelect extends ReactiveControllerHost {
|
|
|
10290
10323
|
render() {
|
|
10291
10324
|
const hasValue = this.hasValue;
|
|
10292
10325
|
const shouldShowLabel = hasValue;
|
|
10293
|
-
return (hAsync(Host, { key: '
|
|
10326
|
+
return (hAsync(Host, { key: '7d1abb943f79e90451b43c9221801b80a2f61346' }, hAsync("div", { key: 'ded3e45246ab38e89d444c59239cdc63a2c4d4fc', class: "select-wrapper" }, hAsync("label", { key: 'cb68ff79976c2fb55d4cc827f9e90ba2597a8a43', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && hAsync("span", { key: 'ab77eaea1645b95d90f00ffb609bbd7a1704f7bc', "aria-hidden": "true" }, " *")), hAsync("div", { key: '45cee00478a6cc31c10dddf69d8e6687fc8f440d', "aria-hidden": "true" }, hAsync("span", { key: '0c5d425ea8843234aa6abd94a207377e2a675686' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: 'ebef5322371ee0253b50dd801b80cbb6402c067a', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'a12d31dc29563444f728133f181b48914d31705b' }, hAsync("img", { key: 'dd3f175d1ca2b9ccc6c2bfa2075e5da62016a896', src: chevronDownSvg, alt: "" }))), hAsync("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 && hAsync("option", { key: '536cc559def0e9ffa4b2150693ece9a597c238d1', value: "", disabled: true, selected: true, hidden: true }), hAsync("slot", { key: 'ad9fed96b9f8c1d8257511bb1d5ab5ee756973ce' }))), this.helperText && hAsync("div", { key: '4723b44d781c900be5aae7ece2a0be04b6c744b9', role: "status" }, this.helperText)));
|
|
10294
10327
|
}
|
|
10295
10328
|
static get watchers() { return {
|
|
10296
10329
|
"value": [{
|
|
@@ -10427,7 +10460,7 @@ var NAMESPACE = (
|
|
|
10427
10460
|
);
|
|
10428
10461
|
|
|
10429
10462
|
/*
|
|
10430
|
-
Stencil Hydrate Runner v4.43.
|
|
10463
|
+
Stencil Hydrate Runner v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
10431
10464
|
*/
|
|
10432
10465
|
var __create = Object.create;
|
|
10433
10466
|
var __defProp = Object.defineProperty;
|
|
@@ -25305,18 +25338,34 @@ var RemoteValue = class _RemoteValue {
|
|
|
25305
25338
|
};
|
|
25306
25339
|
|
|
25307
25340
|
// src/utils/serialize.ts
|
|
25341
|
+
function encodeBase64Unicode(str) {
|
|
25342
|
+
const utf8Bytes = new TextEncoder().encode(str);
|
|
25343
|
+
let binary = "";
|
|
25344
|
+
for (let i = 0; i < utf8Bytes.length; i++) {
|
|
25345
|
+
binary += String.fromCharCode(utf8Bytes[i]);
|
|
25346
|
+
}
|
|
25347
|
+
return btoa(binary);
|
|
25348
|
+
}
|
|
25349
|
+
function decodeBase64Unicode(base64) {
|
|
25350
|
+
const binary = atob(base64);
|
|
25351
|
+
const bytes = new Uint8Array(binary.length);
|
|
25352
|
+
for (let i = 0; i < binary.length; i++) {
|
|
25353
|
+
bytes[i] = binary.charCodeAt(i);
|
|
25354
|
+
}
|
|
25355
|
+
return new TextDecoder().decode(bytes);
|
|
25356
|
+
}
|
|
25308
25357
|
function serializeProperty(value) {
|
|
25309
25358
|
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
25310
25359
|
return value;
|
|
25311
25360
|
}
|
|
25312
25361
|
const arg = LocalValue.getArgument(value);
|
|
25313
|
-
return SERIALIZED_PREFIX +
|
|
25362
|
+
return SERIALIZED_PREFIX + encodeBase64Unicode(JSON.stringify(arg));
|
|
25314
25363
|
}
|
|
25315
25364
|
function deserializeProperty(value) {
|
|
25316
25365
|
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
25317
25366
|
return value;
|
|
25318
25367
|
}
|
|
25319
|
-
return RemoteValue.fromLocalValue(JSON.parse(
|
|
25368
|
+
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
25320
25369
|
}
|
|
25321
25370
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
25322
25371
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
package/hydrate/index.mjs
CHANGED
|
@@ -134,7 +134,7 @@ const NAMESPACE = 'lmvz-components';
|
|
|
134
134
|
const BUILD = /* lmvz-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
135
135
|
|
|
136
136
|
/*
|
|
137
|
-
Stencil Hydrate Platform v4.43.
|
|
137
|
+
Stencil Hydrate Platform v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
138
138
|
*/
|
|
139
139
|
var __create = Object.create;
|
|
140
140
|
var __defProp = Object.defineProperty;
|
|
@@ -1662,6 +1662,31 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
1662
1662
|
return cssText;
|
|
1663
1663
|
};
|
|
1664
1664
|
|
|
1665
|
+
// src/runtime/normalize-watchers.ts
|
|
1666
|
+
var normalizeWatchers = (raw) => {
|
|
1667
|
+
if (!raw) return void 0;
|
|
1668
|
+
const keys = Object.keys(raw);
|
|
1669
|
+
if (keys.length === 0) return void 0;
|
|
1670
|
+
let hasLegacy = false;
|
|
1671
|
+
for (const propName of keys) {
|
|
1672
|
+
if (hasLegacy) break;
|
|
1673
|
+
for (const h2 of raw[propName]) {
|
|
1674
|
+
if (typeof h2 === "string") {
|
|
1675
|
+
hasLegacy = true;
|
|
1676
|
+
break;
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
if (!hasLegacy) return raw;
|
|
1681
|
+
const out = {};
|
|
1682
|
+
for (const propName of keys) {
|
|
1683
|
+
out[propName] = raw[propName].map(
|
|
1684
|
+
(h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
|
|
1685
|
+
);
|
|
1686
|
+
}
|
|
1687
|
+
return out;
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1665
1690
|
// src/utils/remote-value.ts
|
|
1666
1691
|
var RemoteValue = class _RemoteValue {
|
|
1667
1692
|
/**
|
|
@@ -1758,11 +1783,19 @@ var RemoteValue = class _RemoteValue {
|
|
|
1758
1783
|
};
|
|
1759
1784
|
|
|
1760
1785
|
// src/utils/serialize.ts
|
|
1786
|
+
function decodeBase64Unicode(base64) {
|
|
1787
|
+
const binary = atob(base64);
|
|
1788
|
+
const bytes = new Uint8Array(binary.length);
|
|
1789
|
+
for (let i2 = 0; i2 < binary.length; i2++) {
|
|
1790
|
+
bytes[i2] = binary.charCodeAt(i2);
|
|
1791
|
+
}
|
|
1792
|
+
return new TextDecoder().decode(bytes);
|
|
1793
|
+
}
|
|
1761
1794
|
function deserializeProperty(value) {
|
|
1762
1795
|
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1763
1796
|
return value;
|
|
1764
1797
|
}
|
|
1765
|
-
return RemoteValue.fromLocalValue(JSON.parse(
|
|
1798
|
+
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
1766
1799
|
}
|
|
1767
1800
|
|
|
1768
1801
|
// src/runtime/parse-property-value.ts
|
|
@@ -2831,7 +2864,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2831
2864
|
{
|
|
2832
2865
|
{
|
|
2833
2866
|
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
2834
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2867
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
2835
2868
|
}
|
|
2836
2869
|
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
2837
2870
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
@@ -2920,7 +2953,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2920
2953
|
}
|
|
2921
2954
|
if (!Cstr.isProxied) {
|
|
2922
2955
|
{
|
|
2923
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2956
|
+
cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
|
|
2924
2957
|
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2925
2958
|
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2926
2959
|
}
|
|
@@ -5324,7 +5357,7 @@ class LmvzAction {
|
|
|
5324
5357
|
this.actionClick.emit(event);
|
|
5325
5358
|
}
|
|
5326
5359
|
render() {
|
|
5327
|
-
return (hAsync(Host, { key: '
|
|
5360
|
+
return (hAsync(Host, { key: '15c0f20e08cd5019abfd3bb71ec69d175dc5ba48', onClick: this._onClick.bind(this) }, hAsync("slot", { key: 'f71a7853168d1b66b0a50b0f971d140385530ac3' })));
|
|
5328
5361
|
}
|
|
5329
5362
|
static get style() { return lmvzActionCss(); }
|
|
5330
5363
|
static get cmpMeta() { return {
|
|
@@ -5527,7 +5560,7 @@ class AriaValidationController {
|
|
|
5527
5560
|
this.observeSlot();
|
|
5528
5561
|
return;
|
|
5529
5562
|
}
|
|
5530
|
-
if (!this.host.validationEl?.checkVisibility() || this.config?.validationTiming !== 'load') {
|
|
5563
|
+
if (!this.host.validationEl?.checkVisibility?.() || this.config?.validationTiming !== 'load') {
|
|
5531
5564
|
this.observeVisibilityOnce();
|
|
5532
5565
|
return;
|
|
5533
5566
|
}
|
|
@@ -5574,7 +5607,7 @@ class AriaValidationController {
|
|
|
5574
5607
|
return;
|
|
5575
5608
|
if (!this.config?.reValidateOnPropChanges && (this.elementQueued || this.elementValidated))
|
|
5576
5609
|
return;
|
|
5577
|
-
if (!this.host.validationEl?.checkVisibility())
|
|
5610
|
+
if (!this.host.validationEl?.checkVisibility?.())
|
|
5578
5611
|
return;
|
|
5579
5612
|
this.enqueueValidation();
|
|
5580
5613
|
}
|
|
@@ -5893,7 +5926,7 @@ class LmvzButton extends ReactiveControllerHost {
|
|
|
5893
5926
|
};
|
|
5894
5927
|
render() {
|
|
5895
5928
|
this.renderHiddenButton();
|
|
5896
|
-
return (hAsync(Host, { key: '
|
|
5929
|
+
return (hAsync(Host, { key: 'c6f44d3765d579e04ab91272747035d8589e2ff2', "aria-disabled": this.disabled ? 'true' : null }, hAsync("button", { key: '9d48dfc7a6a23df1eda46e9c9035520789a08d4c', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, hAsync("slot", { key: '95e9fb932e477c7d6e933d2c00e6a3728e55c256' }))));
|
|
5897
5930
|
}
|
|
5898
5931
|
static get delegatesFocus() { return true; }
|
|
5899
5932
|
static get style() { return lmvzButtonCss(); }
|
|
@@ -5959,7 +5992,7 @@ class LmvzCard {
|
|
|
5959
5992
|
const imgStyle = {
|
|
5960
5993
|
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
5961
5994
|
};
|
|
5962
|
-
return (hAsync(Host, { key: '
|
|
5995
|
+
return (hAsync(Host, { key: '46c2832b4f90b9eb222749632bc7ad59cd645e10', role: "article" }, hAsync("div", { key: 'cc387fe96cff2dd04c24f75cf838a2bf6f438279', class: "top" }, hAsync("div", { key: 'f9a54a5f81378ef4265e1d74c36c78af002e8874', class: "image-wrapper", style: imgStyle }, hAsync("div", { key: '76daed00408f7ae9ee46977637ddcd3d4f846380', class: "chip-slot" }, hAsync("slot", { key: '6ad522ef7428166b876d0218ef8d801c4ef337f1', name: "chip" })))), hAsync("div", { key: '9c9799668ac199cfecbe10061e271d70d70e2d07', class: "bottom" }, hAsync("header", { key: '1bec743235bea5c7ab163225ffbd7bc6cf11f754' }, hAsync("h2", { key: '06f8e14153328bc5ca920e71e09d9343047c440c', class: "title" }, this.cardTitle)), hAsync("p", { key: '86b95db4e6464ca3236b4a03798013c3580819bf', class: "description" }, this.description), hAsync("div", { key: '553dc998d5318a4730196baa0b9baff3a0a3369f', class: "actions" }, hAsync("button", { key: '7532d01b46769198c23a1b1015c187fdefce146a', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), hAsync("button", { key: '633d679ae59b1896aa2a06e04b4564569cf27a7d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, hAsync("span", { key: 'b72c45f93d259502b9d7c5ffb19e292a53c60ec6', class: "icon-placeholder" }, "..."))))));
|
|
5963
5996
|
}
|
|
5964
5997
|
static get assetsDirs() { return ["../../assets"]; }
|
|
5965
5998
|
static get style() { return lmvzCardCss(); }
|
|
@@ -5986,7 +6019,7 @@ class LmvzChip {
|
|
|
5986
6019
|
}
|
|
5987
6020
|
text;
|
|
5988
6021
|
render() {
|
|
5989
|
-
return hAsync(Host, { key: '
|
|
6022
|
+
return hAsync(Host, { key: 'd128e24bb90891ebd13d13a8e27c06782363cace' }, this.text);
|
|
5990
6023
|
}
|
|
5991
6024
|
static get style() { return lmvzChipCss(); }
|
|
5992
6025
|
static get cmpMeta() { return {
|
|
@@ -6133,7 +6166,7 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
6133
6166
|
}
|
|
6134
6167
|
}
|
|
6135
6168
|
render() {
|
|
6136
|
-
return (hAsync(Host, { key: '
|
|
6169
|
+
return (hAsync(Host, { key: '35883b5d4a92d10b5b010d822fb2233604464f9b', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: '6fdec3af75bab2b076651b8cfef4aec8e23326a6', class: "brand" }, hAsync("slot", { key: '3127b4223b8bebfe425efc7ce45626f37fbf76b9', name: "brand" }, hAsync("img", { key: '20b3dd598e320c6950fb08bbd55dd80c47552eaf', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: 'c3bf07f78930085c1a7b89421506bcd41d139911', "aria-label": "Hauptnavigation" }, hAsync("div", { key: 'fbc5199080f52da4f10c8c14fbbc0877ecc5f31c', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: '4210d213dcf7a1a27a73f2a9cf7ff97fec62f0db', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: '7b91c269f75e1245f75d471ec5bb7eeabfe1094d', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: 'e23eb0f222b49d912bb45870df6d9b0d01f43788', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: '4b19026d5b2e54aa7aed072ce57de4acaa75cb4f', class: "actions" }, hAsync("slot", { key: '8f02d5d178bb60b40604fcd1be74d373d89c911f', name: "actions" }))));
|
|
6137
6170
|
}
|
|
6138
6171
|
static get watchers() { return {
|
|
6139
6172
|
"lmvzActiveNav": [{
|
|
@@ -7006,7 +7039,7 @@ const OP_FAILURE = "Failure";
|
|
|
7006
7039
|
/** @internal */
|
|
7007
7040
|
const OP_WITH_RUNTIME = "WithRuntime";
|
|
7008
7041
|
|
|
7009
|
-
let moduleVersion = "3.21.
|
|
7042
|
+
let moduleVersion = "3.21.1";
|
|
7010
7043
|
const getCurrentVersion = () => moduleVersion;
|
|
7011
7044
|
|
|
7012
7045
|
/** @internal */
|
|
@@ -9948,7 +9981,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
9948
9981
|
super.componentDidRender();
|
|
9949
9982
|
}
|
|
9950
9983
|
render() {
|
|
9951
|
-
return hAsync(Host, { key: '
|
|
9984
|
+
return hAsync(Host, { key: 'f5c2f8025d0e9598d903e72770ebca6cad01961c', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
9952
9985
|
}
|
|
9953
9986
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
9954
9987
|
{
|
|
@@ -10138,9 +10171,9 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
10138
10171
|
render() {
|
|
10139
10172
|
const hasValue = Boolean(this.value);
|
|
10140
10173
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
10141
|
-
return (hAsync("div", { key: '
|
|
10174
|
+
return (hAsync("div", { key: '195e2c5046d48d01f4912993bde3c8d2b3a73d1d', class: classNames('input-container', {
|
|
10142
10175
|
'interaction-filled': hasValue,
|
|
10143
|
-
}) }, hAsync("div", { key: '
|
|
10176
|
+
}) }, hAsync("div", { key: '66bc3deab063a309eefc0de5ebf7f54331c9190c', class: "input-wrapper" }, hAsync("slot", { key: 'fac318070421d526bb09ba0dd0efdecf8964d952', name: "before-input" }), hAsync("div", { key: '1945152dc010d571c5886f222332b057e89e496c', class: "label-input-group" }, hAsync("label", { key: 'd57392c2c83b1e5f362dd33fa9d060e570417f3f', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: '507603a50eb08f0f4f5e2b87b2550fe6b657c4d4', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: '0fe916fef48618331806142c0d3500d9e6dec9cb', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), hAsync("slot", { key: 'b415bedde58862e5bd7621f73a1d77bc478850a3', name: "after-input" })), hAsync("div", { key: 'bc0e07f5243417f4c632eb2f7976dc944fdbf17a', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '62e2267453b92edd47077b233cb231a1deecedc4', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
10144
10177
|
}
|
|
10145
10178
|
static get formAssociated() { return true; }
|
|
10146
10179
|
static get watchers() { return {
|
|
@@ -10218,7 +10251,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
10218
10251
|
this.addController(new ElementActivationController(this));
|
|
10219
10252
|
}
|
|
10220
10253
|
render() {
|
|
10221
|
-
return (hAsync(Host, { key: '
|
|
10254
|
+
return (hAsync(Host, { key: '1a37d2873a29c713cf95c60070c8dcf045c9f8fc' }, hAsync("slot", { key: 'c6578bcfdb9f0cebad095d80f0ed63cf663bf91e', ref: (e) => (this.validationSlot = e) })));
|
|
10222
10255
|
}
|
|
10223
10256
|
static get style() { return lmvzMenuitemCss(); }
|
|
10224
10257
|
static get cmpMeta() { return {
|
|
@@ -10288,7 +10321,7 @@ class LmvzSelect extends ReactiveControllerHost {
|
|
|
10288
10321
|
render() {
|
|
10289
10322
|
const hasValue = this.hasValue;
|
|
10290
10323
|
const shouldShowLabel = hasValue;
|
|
10291
|
-
return (hAsync(Host, { key: '
|
|
10324
|
+
return (hAsync(Host, { key: '7d1abb943f79e90451b43c9221801b80a2f61346' }, hAsync("div", { key: 'ded3e45246ab38e89d444c59239cdc63a2c4d4fc', class: "select-wrapper" }, hAsync("label", { key: 'cb68ff79976c2fb55d4cc827f9e90ba2597a8a43', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && hAsync("span", { key: 'ab77eaea1645b95d90f00ffb609bbd7a1704f7bc', "aria-hidden": "true" }, " *")), hAsync("div", { key: '45cee00478a6cc31c10dddf69d8e6687fc8f440d', "aria-hidden": "true" }, hAsync("span", { key: '0c5d425ea8843234aa6abd94a207377e2a675686' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: 'ebef5322371ee0253b50dd801b80cbb6402c067a', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'a12d31dc29563444f728133f181b48914d31705b' }, hAsync("img", { key: 'dd3f175d1ca2b9ccc6c2bfa2075e5da62016a896', src: chevronDownSvg, alt: "" }))), hAsync("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 && hAsync("option", { key: '536cc559def0e9ffa4b2150693ece9a597c238d1', value: "", disabled: true, selected: true, hidden: true }), hAsync("slot", { key: 'ad9fed96b9f8c1d8257511bb1d5ab5ee756973ce' }))), this.helperText && hAsync("div", { key: '4723b44d781c900be5aae7ece2a0be04b6c744b9', role: "status" }, this.helperText)));
|
|
10292
10325
|
}
|
|
10293
10326
|
static get watchers() { return {
|
|
10294
10327
|
"value": [{
|
|
@@ -10425,7 +10458,7 @@ var NAMESPACE = (
|
|
|
10425
10458
|
);
|
|
10426
10459
|
|
|
10427
10460
|
/*
|
|
10428
|
-
Stencil Hydrate Runner v4.43.
|
|
10461
|
+
Stencil Hydrate Runner v4.43.4 | MIT Licensed | https://stenciljs.com
|
|
10429
10462
|
*/
|
|
10430
10463
|
var __create = Object.create;
|
|
10431
10464
|
var __defProp = Object.defineProperty;
|
|
@@ -25303,18 +25336,34 @@ var RemoteValue = class _RemoteValue {
|
|
|
25303
25336
|
};
|
|
25304
25337
|
|
|
25305
25338
|
// src/utils/serialize.ts
|
|
25339
|
+
function encodeBase64Unicode(str) {
|
|
25340
|
+
const utf8Bytes = new TextEncoder().encode(str);
|
|
25341
|
+
let binary = "";
|
|
25342
|
+
for (let i = 0; i < utf8Bytes.length; i++) {
|
|
25343
|
+
binary += String.fromCharCode(utf8Bytes[i]);
|
|
25344
|
+
}
|
|
25345
|
+
return btoa(binary);
|
|
25346
|
+
}
|
|
25347
|
+
function decodeBase64Unicode(base64) {
|
|
25348
|
+
const binary = atob(base64);
|
|
25349
|
+
const bytes = new Uint8Array(binary.length);
|
|
25350
|
+
for (let i = 0; i < binary.length; i++) {
|
|
25351
|
+
bytes[i] = binary.charCodeAt(i);
|
|
25352
|
+
}
|
|
25353
|
+
return new TextDecoder().decode(bytes);
|
|
25354
|
+
}
|
|
25306
25355
|
function serializeProperty(value) {
|
|
25307
25356
|
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
25308
25357
|
return value;
|
|
25309
25358
|
}
|
|
25310
25359
|
const arg = LocalValue.getArgument(value);
|
|
25311
|
-
return SERIALIZED_PREFIX +
|
|
25360
|
+
return SERIALIZED_PREFIX + encodeBase64Unicode(JSON.stringify(arg));
|
|
25312
25361
|
}
|
|
25313
25362
|
function deserializeProperty(value) {
|
|
25314
25363
|
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
25315
25364
|
return value;
|
|
25316
25365
|
}
|
|
25317
|
-
return RemoteValue.fromLocalValue(JSON.parse(
|
|
25366
|
+
return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));
|
|
25318
25367
|
}
|
|
25319
25368
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
25320
25369
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-CU4XwA2K.js";export{c as clearIconCache}from"./p-BT8PQPMJ.js";import{r}from"./p-DkwJP3kx.js";import"./p-BxiCs9Wn.js";import"./p-saW7O-EW.js";const a=["primary","secondary","tertiary"],o=["small","default","large"],s=["xs","sm","md","lg"],t=[...s,"xl"],n=["text","email","password","tel","url","search","number"],l=[...s,"inherit"],p=["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 m(e){return r(e).catch((e=>{console.error("Unhandled error in Effect:",e)}))}export{h as iconNames,l as iconSizes,p as iconWeights,n as inputTypes,m as run,o as scaleValues,s as sizes,t as textSizes,a as variants}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-saW7O-EW.js";export{s as setNonce}from"./p-saW7O-EW.js";import{g as l}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-986acfd0",[[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},null,{lmvzActiveNav:[{handleActiveNavChange:0}]}],[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-43e295ba",[[257,"lmvz-action"]]],["p-1bda378c",[[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1]}]]],["p-373a9cbf",[[774,"lmvz-card",{cardTitle:[1,"card-title"],imageUrl:[1,"image-url"],description:[1],primaryActionLabel:[1,"primary-action-label"]}]]],["p-5f150890",[[513,"lmvz-chip",{text:[1]}]]],["p-6d5fa8c4",[[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},null,{icon:[{loadIconPathData:0}]}]]],["p-121f74d8",[[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},null,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]]],["p-b704eca8",[[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-abbfa6aa",[[774,"lmvz-select",{value:[1025],label:[1],helperText:[1,"helper-text"],disabled:[516],required:[516],name:[1],selectedLabel:[32]},null,{value:[{handleValueChange:0}]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as t,r as e,c as r,h as i}from"./p-
|
|
1
|
+
import{g as t,r as e,c as r,h as i}from"./p-saW7O-EW.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,A as n}from"./p-DPHHQR5F.js";import{c as s}from"./p-DIrAQ4IB.js";import"./p-CU4XwA2K.js";let l=0;const c=class extends a{get el(){return t(this)}get validationEl(){return this.el}lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+l++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?`${this.inputId}-helper`:void 0}get showErrorMessage(){return this.error&&Boolean(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=>s(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(),e(this,t),this.lmvzInput=r(this,"lmvzInput"),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),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=Boolean(this.value),e=t||Boolean(this.placeholder);return i("div",{key:"195e2c5046d48d01f4912993bde3c8d2b3a73d1d",class:o("input-container",{"interaction-filled":t})},i("div",{key:"66bc3deab063a309eefc0de5ebf7f54331c9190c",class:"input-wrapper"},i("slot",{key:"fac318070421d526bb09ba0dd0efdecf8964d952",name:"before-input"}),i("div",{key:"1945152dc010d571c5886f222332b057e89e496c",class:"label-input-group"},i("label",{key:"d57392c2c83b1e5f362dd33fa9d060e570417f3f",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&i("span",{key:"507603a50eb08f0f4f5e2b87b2550fe6b657c4d4",class:"required-indicator","aria-hidden":"true"}," ","*")),i("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})),i("slot",{key:"b415bedde58862e5bd7621f73a1d77bc478850a3",name:"after-input"})),i("div",{key:"bc0e07f5243417f4c632eb2f7976dc944fdbf17a",id:this.helperId,role:"status"},this.helperText||null),i("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}]}}};c.style="@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-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; }";export{c as lmvz_input}
|