@lmvz-ds/components 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{readme.md → README.md} +3 -0
- package/assets/.DS_Store +0 -0
- package/assets/icons/.DS_Store +0 -0
- package/{dist/cjs/aria-loader-BRxRUIyi.js → cjs/aria-loader-CfFuAbJn.js} +2 -2
- package/cjs/icons-swqMn6s2.js +163 -0
- package/{dist/cjs/index-BBqtydE-.js → cjs/index--7IqZZqn.js} +22965 -11151
- package/{dist/cjs/index-CH-YLRgg.js → cjs/index-C2yDXRqP.js} +45 -10
- package/cjs/index.cjs.js +25 -0
- 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 +24 -4
- package/{dist/cjs → cjs}/lmvz-chip.cjs.entry.js +2 -2
- package/{dist/cjs → cjs}/lmvz-components.cjs.js +3 -3
- package/{dist/cjs → cjs}/lmvz-header_2.cjs.entry.js +6 -6
- package/{dist/cjs → cjs}/lmvz-icon.cjs.entry.js +25 -14
- 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/cjs/loader.cjs.js +13 -0
- package/cjs/logger-Bn2yoZGP.js +7189 -0
- package/{dist/cjs/reactive-controller-host-vy1TIIXv.js → cjs/reactive-controller-host-CtaVAiYJ.js} +30 -26
- package/collection/api/ds.constants.js +7 -0
- package/collection/assets/.DS_Store +0 -0
- package/collection/assets/icons/.DS_Store +0 -0
- package/{dist/collection → collection}/collection-manifest.json +2 -2
- package/{dist/collection → collection}/components/lmvz-action/lmvz-action.js +1 -1
- package/{dist/collection → collection}/components/lmvz-button/lmvz-button.js +5 -5
- 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 +2 -2
- package/{dist/collection → collection}/components/lmvz-icon/lmvz-icon.css +5 -5
- package/{dist/collection → collection}/components/lmvz-icon/lmvz-icon.js +49 -18
- package/{dist/collection → collection}/components/lmvz-input/lmvz-input.js +6 -6
- 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/collection/index.js +3 -0
- package/collection/integration/header-integration/header-integration.js +51 -0
- package/{dist/collection → collection}/utils/aria/aria-validation-controller.js +29 -25
- package/collection/utils/http.js +21 -0
- package/{dist/collection → collection}/utils/http.unit.js +5 -5
- package/collection/utils/icons/icons-registry.js +34 -0
- package/collection/utils/icons/icons.js +49 -0
- package/collection/utils/icons/icons.unit.js +73 -0
- package/collection/utils/icons/public.js +2 -0
- package/collection/utils/public.js +1 -0
- package/components/index.d.ts.bak +55 -0
- package/components/index.js +1 -0
- package/components/lmvz-action.d.ts.bak +11 -0
- package/components/lmvz-action.js +1 -0
- package/components/lmvz-button.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-button.js +1 -1
- package/components/lmvz-card.d.ts.bak +11 -0
- package/components/lmvz-card.js +1 -0
- package/components/lmvz-chip.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-chip.js +1 -1
- package/components/lmvz-header.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-header.js +1 -1
- package/components/lmvz-icon.d.ts.bak +11 -0
- package/components/lmvz-icon.js +1 -0
- package/components/lmvz-input.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-input.js +1 -1
- package/components/lmvz-menuitem.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-menuitem.js +1 -1
- package/components/lmvz-select.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-select.js +1 -1
- package/components/p-CBLAeife.js +1 -0
- package/components/p-C_bScbrd.js +1 -0
- package/components/p-DXOTa5VF.js +12 -0
- package/components/p-fiRXhuXK.js +1 -0
- package/{dist/esm/aria-loader-JxXwTAe5.js → esm/aria-loader-BF_AYtbb.js} +2 -2
- package/esm/icons-Ca8oMiRa.js +157 -0
- package/{dist/esm/index-BW1YMEA3.js → esm/index-7Ru1khgk.js} +23076 -11262
- package/{dist/esm/index-CQb-mBBB.js → esm/index-saW7O-EW.js} +45 -10
- package/esm/index.js +11 -0
- 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 +22 -3
- package/{dist/esm → esm}/lmvz-chip.entry.js +2 -2
- package/esm/lmvz-components.js +21 -0
- package/{dist/esm → esm}/lmvz-header_2.entry.js +6 -6
- package/{dist/esm → esm}/lmvz-icon.entry.js +25 -14
- 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/esm/loader.js +11 -0
- package/esm/logger-fiRXhuXK.js +6990 -0
- package/{dist/esm/reactive-controller-host-OhKYwMvP.js → esm/reactive-controller-host-sR2jJxNG.js} +30 -26
- package/hydrate/index.js +183 -3898
- package/hydrate/index.mjs +183 -3898
- package/lmvz-components/index.esm.js +1 -0
- package/lmvz-components/lmvz-components.esm.js +1 -0
- package/{dist/lmvz-components/p-b8926640.entry.js → lmvz-components/p-30b99f11.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-b9d1953f.entry.js → lmvz-components/p-77007422.entry.js} +1 -1
- package/{dist/lmvz-components/p-Bx29-tJt.js → lmvz-components/p-B3dnXEPG.js} +1 -1
- package/lmvz-components/p-Bh2Epkwf.js +1 -0
- package/lmvz-components/p-Bkfdgg0T.js +1 -0
- package/lmvz-components/p-DXOTa5VF.js +12 -0
- package/lmvz-components/p-ae4aeb0a.entry.js +1 -0
- package/lmvz-components/p-b0208356.entry.js +1 -0
- package/{dist/lmvz-components/p-4530f088.entry.js → lmvz-components/p-bfd7db0a.entry.js} +1 -1
- package/{dist/lmvz-components/p-150ecfb6.entry.js → lmvz-components/p-d2e42f6a.entry.js} +1 -1
- package/{dist/lmvz-components/p-47d7ed0e.entry.js → lmvz-components/p-ffa21507.entry.js} +1 -1
- package/lmvz-components/p-fiRXhuXK.js +1 -0
- 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} +65 -284
- package/package.json +44 -105
- package/types/api/ds.constants.d.ts +29 -0
- package/types/api/ds.types.d.ts +4 -0
- package/{dist/types → types}/api/index.d.ts +0 -1
- package/{dist/types → types}/components/lmvz-action/lmvz-action.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/{dist/types → types}/components/lmvz-card/lmvz-card.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-chip/lmvz-chip.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-header/lmvz-header.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-icon/lmvz-icon.d.ts +4 -1
- package/{dist/types → types}/components/lmvz-input/lmvz-input.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-menuitem/lmvz-menuitem.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-select/lmvz-select.d.ts +1 -0
- package/types/components.d.ts +747 -0
- package/{dist/types → types}/index.d.ts +2 -2
- package/{dist/types → types}/utils/aria/aria-validation-controller.d.ts +1 -0
- package/{dist/types → types}/utils/aria/element-activation-controller.d.ts +1 -0
- package/{dist/types → types}/utils/aria/list-keyboard-controller.d.ts +1 -0
- package/{dist/types → types}/utils/assets.d.ts +1 -0
- package/{dist/types → types}/utils/component.d.ts +2 -4
- package/{dist/types → types}/utils/environment.d.ts +1 -0
- package/types/utils/http.d.ts +27 -0
- package/types/utils/http.unit.d.ts +2 -0
- package/types/utils/icons/icons-registry.d.ts +13 -0
- package/types/utils/icons/icons.d.ts +8 -0
- package/types/utils/icons/icons.unit.d.ts +8 -0
- package/types/utils/icons/public.d.ts +4 -0
- package/types/utils/public.d.ts +2 -0
- package/{dist/types → types}/utils/reactive-controller-host.d.ts +1 -0
- package/assets/icons/actions.svg +0 -5
- package/assets/icons/adduser.svg +0 -3
- package/assets/icons/alert.svg +0 -3
- package/assets/icons/apple.svg +0 -3
- package/assets/icons/arrow-down.svg +0 -3
- package/assets/icons/arrow-left.svg +0 -3
- package/assets/icons/arrow-right.svg +0 -3
- package/assets/icons/arrow-up.svg +0 -3
- package/assets/icons/book.svg +0 -3
- package/assets/icons/bookmark.svg +0 -3
- package/assets/icons/checkmark.svg +0 -3
- package/assets/icons/chevron-left.svg +0 -3
- package/assets/icons/chevron-right.svg +0 -3
- package/assets/icons/chevron-up.svg +0 -3
- package/assets/icons/close-l.svg +0 -3
- package/assets/icons/close-sm.svg +0 -3
- package/assets/icons/cog.svg +0 -4
- package/assets/icons/computer.svg +0 -3
- package/assets/icons/dashboard.svg +0 -6
- package/assets/icons/delete.svg +0 -3
- package/assets/icons/download.svg +0 -3
- package/assets/icons/edit.svg +0 -3
- package/assets/icons/external.svg +0 -3
- package/assets/icons/facebook.svg +0 -3
- package/assets/icons/favorite.svg +0 -3
- package/assets/icons/filter.svg +0 -3
- package/assets/icons/group.svg +0 -3
- package/assets/icons/hide.svg +0 -3
- package/assets/icons/home.svg +0 -3
- package/assets/icons/info.svg +0 -3
- package/assets/icons/instagram.svg +0 -3
- package/assets/icons/letter.svg +0 -3
- package/assets/icons/linkedin.svg +0 -5
- package/assets/icons/logout.svg +0 -3
- package/assets/icons/map.svg +0 -3
- package/assets/icons/minus.svg +0 -3
- package/assets/icons/navigation.svg +0 -3
- package/assets/icons/plus.svg +0 -3
- package/assets/icons/qr-scan.svg +0 -3
- package/assets/icons/question.svg +0 -10
- package/assets/icons/reader.svg +0 -3
- package/assets/icons/reset.svg +0 -3
- package/assets/icons/school.svg +0 -3
- package/assets/icons/search.svg +0 -3
- package/assets/icons/send.svg +0 -3
- package/assets/icons/settings.svg +0 -3
- package/assets/icons/share.svg +0 -10
- package/assets/icons/shopping-cart.svg +0 -3
- package/assets/icons/show.svg +0 -3
- package/assets/icons/snapchat.svg +0 -3
- package/assets/icons/sort.svg +0 -3
- package/assets/icons/speech-bubble.svg +0 -3
- package/assets/icons/star.svg +0 -3
- package/assets/icons/student.svg +0 -3
- package/assets/icons/upload.svg +0 -3
- package/assets/icons/user.svg +0 -3
- package/assets/icons/warn-circle.svg +0 -3
- package/assets/icons/warn-triangle.svg +0 -3
- package/assets/icons/whatsapp.svg +0 -4
- package/assets/icons/world.svg +0 -10
- package/assets/icons/x.svg +0 -3
- package/assets/icons/youtube.svg +0 -3
- package/dist/cjs/Effect-DdYOHaR4.js +0 -19037
- package/dist/cjs/assets-OvQ-WUwR.js +0 -26
- package/dist/cjs/icons-EHBLbidD.js +0 -653
- package/dist/cjs/index.cjs.js +0 -104
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/collection/api/ds.constants.js +0 -73
- package/dist/collection/api/index.js +0 -1
- package/dist/collection/assets/icons/actions.svg +0 -5
- package/dist/collection/assets/icons/adduser.svg +0 -3
- package/dist/collection/assets/icons/alert.svg +0 -3
- package/dist/collection/assets/icons/apple.svg +0 -3
- package/dist/collection/assets/icons/arrow-down.svg +0 -3
- package/dist/collection/assets/icons/arrow-left.svg +0 -3
- package/dist/collection/assets/icons/arrow-right.svg +0 -3
- package/dist/collection/assets/icons/arrow-up.svg +0 -3
- package/dist/collection/assets/icons/book.svg +0 -3
- package/dist/collection/assets/icons/bookmark.svg +0 -3
- package/dist/collection/assets/icons/checkmark.svg +0 -3
- package/dist/collection/assets/icons/chevron-left.svg +0 -3
- package/dist/collection/assets/icons/chevron-right.svg +0 -3
- package/dist/collection/assets/icons/chevron-up.svg +0 -3
- package/dist/collection/assets/icons/close-l.svg +0 -3
- package/dist/collection/assets/icons/close-sm.svg +0 -3
- package/dist/collection/assets/icons/cog.svg +0 -4
- package/dist/collection/assets/icons/computer.svg +0 -3
- package/dist/collection/assets/icons/dashboard.svg +0 -6
- package/dist/collection/assets/icons/delete.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/edit.svg +0 -3
- package/dist/collection/assets/icons/external.svg +0 -3
- package/dist/collection/assets/icons/facebook.svg +0 -3
- package/dist/collection/assets/icons/favorite.svg +0 -3
- package/dist/collection/assets/icons/filter.svg +0 -3
- package/dist/collection/assets/icons/group.svg +0 -3
- package/dist/collection/assets/icons/hide.svg +0 -3
- package/dist/collection/assets/icons/home.svg +0 -3
- package/dist/collection/assets/icons/info.svg +0 -3
- package/dist/collection/assets/icons/instagram.svg +0 -3
- package/dist/collection/assets/icons/letter.svg +0 -3
- package/dist/collection/assets/icons/linkedin.svg +0 -5
- package/dist/collection/assets/icons/logout.svg +0 -3
- package/dist/collection/assets/icons/map.svg +0 -3
- package/dist/collection/assets/icons/minus.svg +0 -3
- package/dist/collection/assets/icons/navigation.svg +0 -3
- package/dist/collection/assets/icons/plus.svg +0 -3
- package/dist/collection/assets/icons/qr-scan.svg +0 -3
- package/dist/collection/assets/icons/question.svg +0 -10
- package/dist/collection/assets/icons/reader.svg +0 -3
- package/dist/collection/assets/icons/reset.svg +0 -3
- package/dist/collection/assets/icons/school.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/send.svg +0 -3
- package/dist/collection/assets/icons/settings.svg +0 -3
- package/dist/collection/assets/icons/share.svg +0 -10
- package/dist/collection/assets/icons/shopping-cart.svg +0 -3
- package/dist/collection/assets/icons/show.svg +0 -3
- package/dist/collection/assets/icons/snapchat.svg +0 -3
- package/dist/collection/assets/icons/sort.svg +0 -3
- package/dist/collection/assets/icons/speech-bubble.svg +0 -3
- package/dist/collection/assets/icons/star.svg +0 -3
- package/dist/collection/assets/icons/student.svg +0 -3
- package/dist/collection/assets/icons/upload.svg +0 -3
- package/dist/collection/assets/icons/user.svg +0 -3
- package/dist/collection/assets/icons/warn-circle.svg +0 -3
- package/dist/collection/assets/icons/warn-triangle.svg +0 -3
- package/dist/collection/assets/icons/whatsapp.svg +0 -4
- package/dist/collection/assets/icons/world.svg +0 -10
- package/dist/collection/assets/icons/x.svg +0 -3
- package/dist/collection/assets/icons/youtube.svg +0 -3
- package/dist/collection/components/lmvz-icon/icons.js +0 -36
- package/dist/collection/components/lmvz-icon/public.js +0 -1
- package/dist/collection/components/lmvz-icon/test/icons.unit.js +0 -98
- package/dist/collection/index.js +0 -4
- package/dist/collection/integration/header-integration.js +0 -46
- package/dist/collection/utils/effect.js +0 -6
- package/dist/collection/utils/http.js +0 -24
- package/dist/collection/utils/public.js +0 -1
- package/dist/collection/utils/validation/svg.js +0 -24
- package/dist/components/index.js +0 -1
- package/dist/components/lmvz-action.js +0 -1
- package/dist/components/lmvz-card.js +0 -1
- package/dist/components/lmvz-icon.js +0 -1
- package/dist/components/p-BsHYIl56.js +0 -1
- package/dist/components/p-CKtksB0G.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/esm/Effect-9SROYpxM.js +0 -18828
- package/dist/esm/assets-CNHv_WMG.js +0 -23
- package/dist/esm/icons-B255FOe4.js +0 -649
- package/dist/esm/index.js +0 -87
- package/dist/esm/lmvz-components.js +0 -21
- package/dist/esm/loader.js +0 -11
- package/dist/ext-libs.d.ts +0 -1
- package/dist/lmvz-components/index.esm.js +0 -1
- package/dist/lmvz-components/lmvz-components.esm.js +0 -1
- package/dist/lmvz-components/p-22f67eff.entry.js +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-9SROYpxM.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-DyO6wO4l.js +0 -1
- package/dist/lmvz-components/p-d9c3f542.entry.js +0 -1
- 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/api/ds.constants.d.ts +0 -8
- package/dist/types/api/ds.types.d.ts +0 -39
- package/dist/types/components/lmvz-icon/icons.d.ts +0 -8
- package/dist/types/components/lmvz-icon/public.d.ts +0 -1
- package/dist/types/components/lmvz-icon/test/icons.unit.d.ts +0 -1
- package/dist/types/components.d.ts +0 -931
- 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/dist/types/utils/effect.d.ts +0 -3
- package/dist/types/utils/http.d.ts +0 -24
- package/dist/types/utils/http.unit.d.ts +0 -1
- package/dist/types/utils/public.d.ts +0 -1
- package/dist/types/utils/validation/svg.d.ts +0 -11
- /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}/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/chevron-down.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-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}/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/environment.js +0 -0
- /package/{dist/collection → collection}/utils/reactive-controller-host.js +0 -0
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/components → components}/lmvz-action.d.ts +0 -0
- /package/{dist/components → components}/lmvz-button.d.ts +0 -0
- /package/{dist/components → components}/lmvz-card.d.ts +0 -0
- /package/{dist/components → components}/lmvz-chip.d.ts +0 -0
- /package/{dist/components → components}/lmvz-header.d.ts +0 -0
- /package/{dist/components → components}/lmvz-icon.d.ts +0 -0
- /package/{dist/components → components}/lmvz-input.d.ts +0 -0
- /package/{dist/components → components}/lmvz-menuitem.d.ts +0 -0
- /package/{dist/components → components}/lmvz-select.d.ts +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}/stencil-public-runtime.d.ts +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { a as getAssetPath } from './index-CQb-mBBB.js';
|
|
2
|
-
|
|
3
|
-
function getLocationBase() {
|
|
4
|
-
return import.meta?.url ?? window?.location?.origin ?? '';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const relativeAssetsPath = '../../assets';
|
|
8
|
-
const createAssetUrlSafely = (file, pathFromAssetRoot) => {
|
|
9
|
-
const relativeAssetPath = joinPath(relativeAssetsPath, pathFromAssetRoot, file);
|
|
10
|
-
try {
|
|
11
|
-
return getAssetPath(relativeAssetPath);
|
|
12
|
-
}
|
|
13
|
-
catch {
|
|
14
|
-
console.warn(`Failed to create URL for asset "${file}" in path "${pathFromAssetRoot}".
|
|
15
|
-
Please provide an absolute URL in your app's 'setAssetPath(...)' configuration! Falling back to a relative URL, which may work in some environments but is not guaranteed to be correct.`);
|
|
16
|
-
return new URL(relativeAssetPath, getLocationBase());
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
function joinPath(...parts) {
|
|
20
|
-
return parts.filter(Boolean).join('/').replace('//', '/').replace('/./', '/');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { createAssetUrlSafely as c };
|
|
@@ -1,649 +0,0 @@
|
|
|
1
|
-
import { g as getOrThrowWith, a as right, b as left, i as identity, d as isRight, e as getRight, m as match, f as decode, h as map, j as all, k as merge, n as sync, o as suspend, p as get, q as succeed, u as none, v as getOrUndefined, w as unsafeMake, x as has, y as set, z as struct, A as flatMap, B as clockWith, C as offer, D as compareAndSet, E as poll, F as EmptyMutableQueue, G as remove, H as set$1, I as size, J as isSome, K as some, L as empty, M as make$2, N as unbounded, O as symbol, P as pipe, Q as cached, R as combine, S as hash, T as symbol$1, U as hasProperty, V as equals, W as asVoid, _ as _await, X as when, Y as succeed$1, Z as toMillis, $ as onInterrupt, a0 as zipRight, a1 as interrupt, a2 as done, a3 as exit, a4 as provideContext, a5 as context, a6 as fiberId, a7 as YieldableError, a8 as gen, a9 as tryPromise, aa as fail, ab as try_, ac as gen$1, ad as infinity, ae as logWarning } from './Effect-9SROYpxM.js';
|
|
2
|
-
import { c as createAssetUrlSafely } from './assets-CNHv_WMG.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This module provides types and utility functions to create and work with branded types,
|
|
6
|
-
* which are TypeScript types with an added type tag to prevent accidental usage of a value in the wrong context.
|
|
7
|
-
*
|
|
8
|
-
* The `refined` and `nominal` functions are both used to create branded types in TypeScript.
|
|
9
|
-
* The main difference between them is that `refined` allows for validation of the data, while `nominal` does not.
|
|
10
|
-
*
|
|
11
|
-
* The `nominal` function is used to create a new branded type that has the same underlying type as the input, but with a different name.
|
|
12
|
-
* This is useful when you want to distinguish between two values of the same type that have different meanings.
|
|
13
|
-
* The `nominal` function does not perform any validation of the input data.
|
|
14
|
-
*
|
|
15
|
-
* On the other hand, the `refined` function is used to create a new branded type that has the same underlying type as the input,
|
|
16
|
-
* but with a different name, and it also allows for validation of the input data.
|
|
17
|
-
* The `refined` function takes a predicate that is used to validate the input data.
|
|
18
|
-
* If the input data fails the validation, a `BrandErrors` is returned, which provides information about the specific validation failure.
|
|
19
|
-
*
|
|
20
|
-
* @since 2.0.0
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @since 2.0.0
|
|
24
|
-
* @category symbols
|
|
25
|
-
*/
|
|
26
|
-
const RefinedConstructorsTypeId = /*#__PURE__*/Symbol.for("effect/Brand/Refined");
|
|
27
|
-
/**
|
|
28
|
-
* Returns a `BrandErrors` that contains a single `RefinementError`.
|
|
29
|
-
*
|
|
30
|
-
* @since 2.0.0
|
|
31
|
-
* @category constructors
|
|
32
|
-
*/
|
|
33
|
-
const error = (message, meta) => [{
|
|
34
|
-
message,
|
|
35
|
-
meta
|
|
36
|
-
}];
|
|
37
|
-
function refined(...args) {
|
|
38
|
-
const either = args.length === 2 ? unbranded => args[0](unbranded) ? right(unbranded) : left(args[1](unbranded)) : unbranded => {
|
|
39
|
-
return match(args[0](unbranded), {
|
|
40
|
-
onNone: () => right(unbranded),
|
|
41
|
-
onSome: left
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
return Object.assign(unbranded => getOrThrowWith(either(unbranded), identity), {
|
|
45
|
-
[RefinedConstructorsTypeId]: RefinedConstructorsTypeId,
|
|
46
|
-
option: args => getRight(either(args)),
|
|
47
|
-
either,
|
|
48
|
-
is: args => isRight(either(args))
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** @internal */
|
|
53
|
-
const complete = (key, exit, entryStats, timeToLiveMillis) => struct({
|
|
54
|
-
_tag: "Complete",
|
|
55
|
-
key,
|
|
56
|
-
exit,
|
|
57
|
-
entryStats,
|
|
58
|
-
timeToLiveMillis
|
|
59
|
-
});
|
|
60
|
-
/** @internal */
|
|
61
|
-
const pending = (key, deferred) => struct({
|
|
62
|
-
_tag: "Pending",
|
|
63
|
-
key,
|
|
64
|
-
deferred
|
|
65
|
-
});
|
|
66
|
-
/** @internal */
|
|
67
|
-
const refreshing = (deferred, complete) => struct({
|
|
68
|
-
_tag: "Refreshing",
|
|
69
|
-
deferred,
|
|
70
|
-
complete
|
|
71
|
-
});
|
|
72
|
-
/** @internal */
|
|
73
|
-
const MapKeyTypeId = /*#__PURE__*/Symbol.for("effect/Cache/MapKey");
|
|
74
|
-
class MapKeyImpl {
|
|
75
|
-
current;
|
|
76
|
-
[MapKeyTypeId] = MapKeyTypeId;
|
|
77
|
-
previous = undefined;
|
|
78
|
-
next = undefined;
|
|
79
|
-
constructor(current) {
|
|
80
|
-
this.current = current;
|
|
81
|
-
}
|
|
82
|
-
[symbol]() {
|
|
83
|
-
return pipe(hash(this.current), combine(hash(this.previous)), combine(hash(this.next)), cached(this));
|
|
84
|
-
}
|
|
85
|
-
[symbol$1](that) {
|
|
86
|
-
if (this === that) {
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
return isMapKey(that) && equals(this.current, that.current) && equals(this.previous, that.previous) && equals(this.next, that.next);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
/** @internal */
|
|
93
|
-
const makeMapKey = current => new MapKeyImpl(current);
|
|
94
|
-
/** @internal */
|
|
95
|
-
const isMapKey = u => hasProperty(u, MapKeyTypeId);
|
|
96
|
-
class KeySetImpl {
|
|
97
|
-
head = undefined;
|
|
98
|
-
tail = undefined;
|
|
99
|
-
add(key) {
|
|
100
|
-
if (key !== this.tail) {
|
|
101
|
-
if (this.tail === undefined) {
|
|
102
|
-
this.head = key;
|
|
103
|
-
this.tail = key;
|
|
104
|
-
} else {
|
|
105
|
-
const previous = key.previous;
|
|
106
|
-
const next = key.next;
|
|
107
|
-
if (next !== undefined) {
|
|
108
|
-
key.next = undefined;
|
|
109
|
-
if (previous !== undefined) {
|
|
110
|
-
previous.next = next;
|
|
111
|
-
next.previous = previous;
|
|
112
|
-
} else {
|
|
113
|
-
this.head = next;
|
|
114
|
-
this.head.previous = undefined;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
this.tail.next = key;
|
|
118
|
-
key.previous = this.tail;
|
|
119
|
-
this.tail = key;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
remove() {
|
|
124
|
-
const key = this.head;
|
|
125
|
-
if (key !== undefined) {
|
|
126
|
-
const next = key.next;
|
|
127
|
-
if (next !== undefined) {
|
|
128
|
-
key.next = undefined;
|
|
129
|
-
this.head = next;
|
|
130
|
-
this.head.previous = undefined;
|
|
131
|
-
} else {
|
|
132
|
-
this.head = undefined;
|
|
133
|
-
this.tail = undefined;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return key;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
/** @internal */
|
|
140
|
-
const makeKeySet = () => new KeySetImpl();
|
|
141
|
-
/**
|
|
142
|
-
* Constructs a new `CacheState` from the specified values.
|
|
143
|
-
*
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
const makeCacheState = (map, keys, accesses, updating, hits, misses) => ({
|
|
147
|
-
map,
|
|
148
|
-
keys,
|
|
149
|
-
accesses,
|
|
150
|
-
updating,
|
|
151
|
-
hits,
|
|
152
|
-
misses
|
|
153
|
-
});
|
|
154
|
-
/**
|
|
155
|
-
* Constructs an initial cache state.
|
|
156
|
-
*
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
159
|
-
const initialCacheState = () => makeCacheState(empty(), makeKeySet(), unbounded(), make$2(false), 0, 0);
|
|
160
|
-
/** @internal */
|
|
161
|
-
const CacheSymbolKey = "effect/Cache";
|
|
162
|
-
/** @internal */
|
|
163
|
-
const CacheTypeId = /*#__PURE__*/Symbol.for(CacheSymbolKey);
|
|
164
|
-
const cacheVariance = {
|
|
165
|
-
/* c8 ignore next */
|
|
166
|
-
_Key: _ => _,
|
|
167
|
-
/* c8 ignore next */
|
|
168
|
-
_Error: _ => _,
|
|
169
|
-
/* c8 ignore next */
|
|
170
|
-
_Value: _ => _
|
|
171
|
-
};
|
|
172
|
-
/** @internal */
|
|
173
|
-
const ConsumerCacheSymbolKey = "effect/ConsumerCache";
|
|
174
|
-
/** @internal */
|
|
175
|
-
const ConsumerCacheTypeId = /*#__PURE__*/Symbol.for(ConsumerCacheSymbolKey);
|
|
176
|
-
const consumerCacheVariance = {
|
|
177
|
-
/* c8 ignore next */
|
|
178
|
-
_Key: _ => _,
|
|
179
|
-
/* c8 ignore next */
|
|
180
|
-
_Error: _ => _,
|
|
181
|
-
/* c8 ignore next */
|
|
182
|
-
_Value: _ => _
|
|
183
|
-
};
|
|
184
|
-
/** @internal */
|
|
185
|
-
const makeCacheStats = options => options;
|
|
186
|
-
/** @internal */
|
|
187
|
-
const makeEntryStats = loadedMillis => ({
|
|
188
|
-
loadedMillis
|
|
189
|
-
});
|
|
190
|
-
class CacheImpl {
|
|
191
|
-
capacity;
|
|
192
|
-
context;
|
|
193
|
-
fiberId;
|
|
194
|
-
lookup;
|
|
195
|
-
timeToLive;
|
|
196
|
-
[CacheTypeId] = cacheVariance;
|
|
197
|
-
[ConsumerCacheTypeId] = consumerCacheVariance;
|
|
198
|
-
cacheState;
|
|
199
|
-
constructor(capacity, context, fiberId, lookup, timeToLive) {
|
|
200
|
-
this.capacity = capacity;
|
|
201
|
-
this.context = context;
|
|
202
|
-
this.fiberId = fiberId;
|
|
203
|
-
this.lookup = lookup;
|
|
204
|
-
this.timeToLive = timeToLive;
|
|
205
|
-
this.cacheState = initialCacheState();
|
|
206
|
-
}
|
|
207
|
-
get(key) {
|
|
208
|
-
return map(this.getEither(key), merge);
|
|
209
|
-
}
|
|
210
|
-
get cacheStats() {
|
|
211
|
-
return sync(() => makeCacheStats({
|
|
212
|
-
hits: this.cacheState.hits,
|
|
213
|
-
misses: this.cacheState.misses,
|
|
214
|
-
size: size(this.cacheState.map)
|
|
215
|
-
}));
|
|
216
|
-
}
|
|
217
|
-
getOption(key) {
|
|
218
|
-
return suspend(() => match(get(this.cacheState.map, key), {
|
|
219
|
-
onNone: () => {
|
|
220
|
-
const mapKey = makeMapKey(key);
|
|
221
|
-
this.trackAccess(mapKey);
|
|
222
|
-
this.trackMiss();
|
|
223
|
-
return succeed(none());
|
|
224
|
-
},
|
|
225
|
-
onSome: value => this.resolveMapValue(value)
|
|
226
|
-
}));
|
|
227
|
-
}
|
|
228
|
-
getOptionComplete(key) {
|
|
229
|
-
return suspend(() => match(get(this.cacheState.map, key), {
|
|
230
|
-
onNone: () => {
|
|
231
|
-
const mapKey = makeMapKey(key);
|
|
232
|
-
this.trackAccess(mapKey);
|
|
233
|
-
this.trackMiss();
|
|
234
|
-
return succeed(none());
|
|
235
|
-
},
|
|
236
|
-
onSome: value => this.resolveMapValue(value, true)
|
|
237
|
-
}));
|
|
238
|
-
}
|
|
239
|
-
contains(key) {
|
|
240
|
-
return sync(() => has(this.cacheState.map, key));
|
|
241
|
-
}
|
|
242
|
-
entryStats(key) {
|
|
243
|
-
return sync(() => {
|
|
244
|
-
const option = get(this.cacheState.map, key);
|
|
245
|
-
if (isSome(option)) {
|
|
246
|
-
switch (option.value._tag) {
|
|
247
|
-
case "Complete":
|
|
248
|
-
{
|
|
249
|
-
const loaded = option.value.entryStats.loadedMillis;
|
|
250
|
-
return some(makeEntryStats(loaded));
|
|
251
|
-
}
|
|
252
|
-
case "Pending":
|
|
253
|
-
{
|
|
254
|
-
return none();
|
|
255
|
-
}
|
|
256
|
-
case "Refreshing":
|
|
257
|
-
{
|
|
258
|
-
const loaded = option.value.complete.entryStats.loadedMillis;
|
|
259
|
-
return some(makeEntryStats(loaded));
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
return none();
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
getEither(key) {
|
|
267
|
-
return suspend(() => {
|
|
268
|
-
const k = key;
|
|
269
|
-
let mapKey = undefined;
|
|
270
|
-
let deferred = undefined;
|
|
271
|
-
let value = getOrUndefined(get(this.cacheState.map, k));
|
|
272
|
-
if (value === undefined) {
|
|
273
|
-
deferred = unsafeMake(this.fiberId);
|
|
274
|
-
mapKey = makeMapKey(k);
|
|
275
|
-
if (has(this.cacheState.map, k)) {
|
|
276
|
-
value = getOrUndefined(get(this.cacheState.map, k));
|
|
277
|
-
} else {
|
|
278
|
-
set(this.cacheState.map, k, pending(mapKey, deferred));
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
if (value === undefined) {
|
|
282
|
-
this.trackAccess(mapKey);
|
|
283
|
-
this.trackMiss();
|
|
284
|
-
return map(this.lookupValueOf(key, deferred), right);
|
|
285
|
-
} else {
|
|
286
|
-
return flatMap(this.resolveMapValue(value), match({
|
|
287
|
-
onNone: () => this.getEither(key),
|
|
288
|
-
onSome: value => succeed(left(value))
|
|
289
|
-
}));
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
invalidate(key) {
|
|
294
|
-
return sync(() => {
|
|
295
|
-
remove(this.cacheState.map, key);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
invalidateWhen(key, when) {
|
|
299
|
-
return sync(() => {
|
|
300
|
-
const value = get(this.cacheState.map, key);
|
|
301
|
-
if (isSome(value) && value.value._tag === "Complete") {
|
|
302
|
-
if (value.value.exit._tag === "Success") {
|
|
303
|
-
if (when(value.value.exit.value)) {
|
|
304
|
-
remove(this.cacheState.map, key);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
get invalidateAll() {
|
|
311
|
-
return sync(() => {
|
|
312
|
-
this.cacheState.map = empty();
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
refresh(key) {
|
|
316
|
-
return clockWith(clock => suspend(() => {
|
|
317
|
-
const k = key;
|
|
318
|
-
const deferred = unsafeMake(this.fiberId);
|
|
319
|
-
let value = getOrUndefined(get(this.cacheState.map, k));
|
|
320
|
-
if (value === undefined) {
|
|
321
|
-
if (has(this.cacheState.map, k)) {
|
|
322
|
-
value = getOrUndefined(get(this.cacheState.map, k));
|
|
323
|
-
} else {
|
|
324
|
-
set(this.cacheState.map, k, pending(makeMapKey(k), deferred));
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
if (value === undefined) {
|
|
328
|
-
return asVoid(this.lookupValueOf(key, deferred));
|
|
329
|
-
} else {
|
|
330
|
-
switch (value._tag) {
|
|
331
|
-
case "Complete":
|
|
332
|
-
{
|
|
333
|
-
if (this.hasExpired(clock, value.timeToLiveMillis)) {
|
|
334
|
-
const found = getOrUndefined(get(this.cacheState.map, k));
|
|
335
|
-
if (equals(found, value)) {
|
|
336
|
-
remove(this.cacheState.map, k);
|
|
337
|
-
}
|
|
338
|
-
return asVoid(this.get(key));
|
|
339
|
-
}
|
|
340
|
-
// Only trigger the lookup if we're still the current value, `completedResult`
|
|
341
|
-
return pipe(this.lookupValueOf(key, deferred), when(() => {
|
|
342
|
-
const current = getOrUndefined(get(this.cacheState.map, k));
|
|
343
|
-
if (equals(current, value)) {
|
|
344
|
-
const mapValue = refreshing(deferred, value);
|
|
345
|
-
set(this.cacheState.map, k, mapValue);
|
|
346
|
-
return true;
|
|
347
|
-
}
|
|
348
|
-
return false;
|
|
349
|
-
}), asVoid);
|
|
350
|
-
}
|
|
351
|
-
case "Pending":
|
|
352
|
-
{
|
|
353
|
-
return _await(value.deferred);
|
|
354
|
-
}
|
|
355
|
-
case "Refreshing":
|
|
356
|
-
{
|
|
357
|
-
return _await(value.deferred);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}));
|
|
362
|
-
}
|
|
363
|
-
set(key, value) {
|
|
364
|
-
return clockWith(clock => sync(() => {
|
|
365
|
-
const now = clock.unsafeCurrentTimeMillis();
|
|
366
|
-
const k = key;
|
|
367
|
-
const lookupResult = succeed$1(value);
|
|
368
|
-
const mapValue = complete(makeMapKey(k), lookupResult, makeEntryStats(now), now + toMillis(decode(this.timeToLive(lookupResult))));
|
|
369
|
-
set(this.cacheState.map, k, mapValue);
|
|
370
|
-
}));
|
|
371
|
-
}
|
|
372
|
-
get size() {
|
|
373
|
-
return sync(() => {
|
|
374
|
-
return size(this.cacheState.map);
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
get values() {
|
|
378
|
-
return sync(() => {
|
|
379
|
-
const values = [];
|
|
380
|
-
for (const entry of this.cacheState.map) {
|
|
381
|
-
if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
|
|
382
|
-
values.push(entry[1].exit.value);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return values;
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
get entries() {
|
|
389
|
-
return sync(() => {
|
|
390
|
-
const values = [];
|
|
391
|
-
for (const entry of this.cacheState.map) {
|
|
392
|
-
if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
|
|
393
|
-
values.push([entry[0], entry[1].exit.value]);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return values;
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
get keys() {
|
|
400
|
-
return sync(() => {
|
|
401
|
-
const keys = [];
|
|
402
|
-
for (const entry of this.cacheState.map) {
|
|
403
|
-
if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
|
|
404
|
-
keys.push(entry[0]);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return keys;
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
resolveMapValue(value, ignorePending = false) {
|
|
411
|
-
return clockWith(clock => {
|
|
412
|
-
switch (value._tag) {
|
|
413
|
-
case "Complete":
|
|
414
|
-
{
|
|
415
|
-
this.trackAccess(value.key);
|
|
416
|
-
if (this.hasExpired(clock, value.timeToLiveMillis)) {
|
|
417
|
-
remove(this.cacheState.map, value.key.current);
|
|
418
|
-
return succeed(none());
|
|
419
|
-
}
|
|
420
|
-
this.trackHit();
|
|
421
|
-
return map(value.exit, some);
|
|
422
|
-
}
|
|
423
|
-
case "Pending":
|
|
424
|
-
{
|
|
425
|
-
this.trackAccess(value.key);
|
|
426
|
-
this.trackHit();
|
|
427
|
-
if (ignorePending) {
|
|
428
|
-
return succeed(none());
|
|
429
|
-
}
|
|
430
|
-
return map(_await(value.deferred), some);
|
|
431
|
-
}
|
|
432
|
-
case "Refreshing":
|
|
433
|
-
{
|
|
434
|
-
this.trackAccess(value.complete.key);
|
|
435
|
-
this.trackHit();
|
|
436
|
-
if (this.hasExpired(clock, value.complete.timeToLiveMillis)) {
|
|
437
|
-
if (ignorePending) {
|
|
438
|
-
return succeed(none());
|
|
439
|
-
}
|
|
440
|
-
return map(_await(value.deferred), some);
|
|
441
|
-
}
|
|
442
|
-
return map(value.complete.exit, some);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
trackHit() {
|
|
448
|
-
this.cacheState.hits = this.cacheState.hits + 1;
|
|
449
|
-
}
|
|
450
|
-
trackMiss() {
|
|
451
|
-
this.cacheState.misses = this.cacheState.misses + 1;
|
|
452
|
-
}
|
|
453
|
-
trackAccess(key) {
|
|
454
|
-
offer(this.cacheState.accesses, key);
|
|
455
|
-
if (compareAndSet(this.cacheState.updating, false, true)) {
|
|
456
|
-
let loop = true;
|
|
457
|
-
while (loop) {
|
|
458
|
-
const key = poll(this.cacheState.accesses, EmptyMutableQueue);
|
|
459
|
-
if (key === EmptyMutableQueue) {
|
|
460
|
-
loop = false;
|
|
461
|
-
} else {
|
|
462
|
-
this.cacheState.keys.add(key);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
let size$1 = size(this.cacheState.map);
|
|
466
|
-
loop = size$1 > this.capacity;
|
|
467
|
-
while (loop) {
|
|
468
|
-
const key = this.cacheState.keys.remove();
|
|
469
|
-
if (key !== undefined) {
|
|
470
|
-
if (has(this.cacheState.map, key.current)) {
|
|
471
|
-
remove(this.cacheState.map, key.current);
|
|
472
|
-
size$1 = size$1 - 1;
|
|
473
|
-
loop = size$1 > this.capacity;
|
|
474
|
-
}
|
|
475
|
-
} else {
|
|
476
|
-
loop = false;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
set$1(this.cacheState.updating, false);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
hasExpired(clock, timeToLiveMillis) {
|
|
483
|
-
return clock.unsafeCurrentTimeMillis() > timeToLiveMillis;
|
|
484
|
-
}
|
|
485
|
-
lookupValueOf(input, deferred) {
|
|
486
|
-
return clockWith(clock => suspend(() => {
|
|
487
|
-
const key = input;
|
|
488
|
-
return pipe(this.lookup(input), provideContext(this.context), exit, flatMap(exit => {
|
|
489
|
-
const now = clock.unsafeCurrentTimeMillis();
|
|
490
|
-
const stats = makeEntryStats(now);
|
|
491
|
-
const value = complete(makeMapKey(key), exit, stats, now + toMillis(decode(this.timeToLive(exit))));
|
|
492
|
-
set(this.cacheState.map, key, value);
|
|
493
|
-
return zipRight(done(deferred, exit), exit);
|
|
494
|
-
}), onInterrupt(() => zipRight(interrupt(deferred), sync(() => {
|
|
495
|
-
remove(this.cacheState.map, key);
|
|
496
|
-
}))));
|
|
497
|
-
}));
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
/** @internal */
|
|
501
|
-
const make$1 = options => {
|
|
502
|
-
const timeToLive = decode(options.timeToLive);
|
|
503
|
-
return makeWith({
|
|
504
|
-
capacity: options.capacity,
|
|
505
|
-
lookup: options.lookup,
|
|
506
|
-
timeToLive: () => timeToLive
|
|
507
|
-
});
|
|
508
|
-
};
|
|
509
|
-
/** @internal */
|
|
510
|
-
const makeWith = options => map(all([context(), fiberId]), ([context, fiberId]) => new CacheImpl(options.capacity, context, fiberId, options.lookup, exit => decode(options.timeToLive(exit))));
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* Constructs a new cache with the specified capacity, time to live, and
|
|
514
|
-
* lookup function.
|
|
515
|
-
*
|
|
516
|
-
* @since 2.0.0
|
|
517
|
-
* @category constructors
|
|
518
|
-
*/
|
|
519
|
-
const make = make$1;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Provides a constructor for a Case Class.
|
|
523
|
-
*
|
|
524
|
-
* @since 2.0.0
|
|
525
|
-
* @category constructors
|
|
526
|
-
*/
|
|
527
|
-
const Error$1 = /*#__PURE__*/function () {
|
|
528
|
-
const plainArgsSymbol = /*#__PURE__*/Symbol.for("effect/Data/Error/plainArgs");
|
|
529
|
-
const O = {
|
|
530
|
-
BaseEffectError: class extends YieldableError {
|
|
531
|
-
constructor(args) {
|
|
532
|
-
super(args?.message, args?.cause ? {
|
|
533
|
-
cause: args.cause
|
|
534
|
-
} : undefined);
|
|
535
|
-
if (args) {
|
|
536
|
-
Object.assign(this, args);
|
|
537
|
-
// @effect-diagnostics-next-line floatingEffect:off
|
|
538
|
-
Object.defineProperty(this, plainArgsSymbol, {
|
|
539
|
-
value: args,
|
|
540
|
-
enumerable: false
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
toJSON() {
|
|
545
|
-
return {
|
|
546
|
-
...this[plainArgsSymbol],
|
|
547
|
-
...this
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
return O.BaseEffectError;
|
|
553
|
-
}();
|
|
554
|
-
/**
|
|
555
|
-
* @since 2.0.0
|
|
556
|
-
* @category constructors
|
|
557
|
-
*/
|
|
558
|
-
const TaggedError = tag => {
|
|
559
|
-
const O = {
|
|
560
|
-
BaseEffectError: class extends Error$1 {
|
|
561
|
-
_tag = tag;
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
O.BaseEffectError.prototype.name = tag;
|
|
565
|
-
return O.BaseEffectError;
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
class FetchError extends TaggedError('FetchError') {
|
|
569
|
-
}
|
|
570
|
-
class NotFoundError extends TaggedError('NotFoundError') {
|
|
571
|
-
}
|
|
572
|
-
const httpClient = (input, init) => gen(function* () {
|
|
573
|
-
const response = yield* tryPromise({
|
|
574
|
-
try: () => fetch(input, init),
|
|
575
|
-
catch: error => new FetchError({ cause: error }),
|
|
576
|
-
});
|
|
577
|
-
if (response.status === 404) {
|
|
578
|
-
return yield* fail(new NotFoundError({ url: response.url }));
|
|
579
|
-
}
|
|
580
|
-
return response;
|
|
581
|
-
});
|
|
582
|
-
class ResponseTextError extends TaggedError('ResponseTextError') {
|
|
583
|
-
constructor(error) {
|
|
584
|
-
super(new Error(`Failed to read response text`, { cause: error }));
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
const responseAsText = (res) => tryPromise({
|
|
588
|
-
try: () => res.text(),
|
|
589
|
-
catch: error => new ResponseTextError(error),
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
const SVGString = refined(isValidSVG, () => error('SVG data is malformed'));
|
|
593
|
-
class BrandValidationError extends TaggedError('BrandValidationError') {
|
|
594
|
-
constructor(error, type) {
|
|
595
|
-
super(new Error(`Brand validation failed for type ${type}.`, { cause: error }));
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
const createValidSVGString = (svg) => try_({
|
|
599
|
-
try: () => SVGString(svg),
|
|
600
|
-
catch: error => new BrandValidationError(error, 'SVGString'),
|
|
601
|
-
});
|
|
602
|
-
function isValidSVG(svg) {
|
|
603
|
-
if (typeof svg !== 'string') {
|
|
604
|
-
return false;
|
|
605
|
-
}
|
|
606
|
-
try {
|
|
607
|
-
const parser = new DOMParser();
|
|
608
|
-
const doc = parser.parseFromString(svg, 'image/svg+xml');
|
|
609
|
-
return doc.documentElement.nodeName === 'svg';
|
|
610
|
-
}
|
|
611
|
-
catch {
|
|
612
|
-
return false;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
const emptyDefaultSvg = () => SVGString(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>`);
|
|
617
|
-
const createIconCache = () => make({
|
|
618
|
-
capacity: 200,
|
|
619
|
-
timeToLive: infinity,
|
|
620
|
-
lookup: (key) => gen$1(function* () {
|
|
621
|
-
const name = key;
|
|
622
|
-
const assetPath = createAssetUrlSafely(`${name}.svg`, 'icons');
|
|
623
|
-
const res = yield* httpClient(assetPath);
|
|
624
|
-
const responseString = yield* responseAsText(res);
|
|
625
|
-
return yield* createValidSVGString(responseString);
|
|
626
|
-
}),
|
|
627
|
-
});
|
|
628
|
-
let cacheInstance = null;
|
|
629
|
-
function fetchIconSvg(name) {
|
|
630
|
-
const key = name;
|
|
631
|
-
return gen$1(function* () {
|
|
632
|
-
if (!cacheInstance) {
|
|
633
|
-
cacheInstance = yield* createIconCache();
|
|
634
|
-
}
|
|
635
|
-
return yield* cacheInstance.get(key);
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
function clearIconCache() {
|
|
639
|
-
return gen$1(function* () {
|
|
640
|
-
if (cacheInstance) {
|
|
641
|
-
yield* cacheInstance.invalidateAll;
|
|
642
|
-
}
|
|
643
|
-
else {
|
|
644
|
-
logWarning('Attempted to clear icon cache before it was initialized');
|
|
645
|
-
}
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
export { clearIconCache as c, emptyDefaultSvg as e, fetchIconSvg as f };
|