@lmvz-ds/components 0.11.4
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/LICENSE.txt +3 -0
- package/assets/LMVZ_logo_175.svg +1 -0
- package/assets/card-placeholder.svg +4 -0
- package/assets/fonts/Router-Bold.woff +0 -0
- package/assets/fonts/Router-Book.woff +0 -0
- package/assets/fonts/Router-Medium.woff +0 -0
- package/assets/icons/Logo.svg +10 -0
- package/assets/icons/actions.svg +5 -0
- package/assets/icons/adduser.svg +3 -0
- package/assets/icons/alert.svg +3 -0
- package/assets/icons/apple.svg +3 -0
- package/assets/icons/arrow-down.svg +3 -0
- package/assets/icons/arrow-left.svg +3 -0
- package/assets/icons/arrow-right.svg +3 -0
- package/assets/icons/arrow-up.svg +3 -0
- package/assets/icons/book.svg +3 -0
- package/assets/icons/bookmark.svg +3 -0
- package/assets/icons/checkmark.svg +3 -0
- package/assets/icons/chevron-down.svg +3 -0
- package/assets/icons/chevron-left.svg +3 -0
- package/assets/icons/chevron-right.svg +3 -0
- package/assets/icons/chevron-up.svg +3 -0
- package/assets/icons/close-l.svg +3 -0
- package/assets/icons/close-sm.svg +3 -0
- package/assets/icons/cog.svg +4 -0
- package/assets/icons/computer.svg +3 -0
- package/assets/icons/dashboard.svg +6 -0
- package/assets/icons/delete.svg +3 -0
- package/assets/icons/download.svg +3 -0
- package/assets/icons/edit.svg +3 -0
- package/assets/icons/external.svg +3 -0
- package/assets/icons/facebook.svg +3 -0
- package/assets/icons/favorite.svg +3 -0
- package/assets/icons/filter.svg +3 -0
- package/assets/icons/group.svg +3 -0
- package/assets/icons/hide.svg +3 -0
- package/assets/icons/home.svg +3 -0
- package/assets/icons/info.svg +3 -0
- package/assets/icons/instagram.svg +3 -0
- package/assets/icons/letter.svg +3 -0
- package/assets/icons/linkedin.svg +5 -0
- package/assets/icons/logout.svg +3 -0
- package/assets/icons/map.svg +3 -0
- package/assets/icons/minus.svg +3 -0
- package/assets/icons/navigation.svg +3 -0
- package/assets/icons/plus.svg +3 -0
- package/assets/icons/qr-scan.svg +3 -0
- package/assets/icons/question.svg +10 -0
- package/assets/icons/reader.svg +3 -0
- package/assets/icons/reset.svg +3 -0
- package/assets/icons/school.svg +3 -0
- package/assets/icons/search.svg +3 -0
- package/assets/icons/send.svg +3 -0
- package/assets/icons/settings.svg +3 -0
- package/assets/icons/share.svg +10 -0
- package/assets/icons/shopping-cart.svg +3 -0
- package/assets/icons/show.svg +3 -0
- package/assets/icons/snapchat.svg +3 -0
- package/assets/icons/sort.svg +3 -0
- package/assets/icons/speech-bubble.svg +3 -0
- package/assets/icons/star.svg +3 -0
- package/assets/icons/student.svg +3 -0
- package/assets/icons/upload.svg +3 -0
- package/assets/icons/user.svg +3 -0
- package/assets/icons/warn-circle.svg +3 -0
- package/assets/icons/warn-triangle.svg +3 -0
- package/assets/icons/whatsapp.svg +4 -0
- package/assets/icons/world.svg +10 -0
- package/assets/icons/x.svg +3 -0
- package/assets/icons/youtube.svg +3 -0
- package/assets/zukunftslinie.svg +3 -0
- package/dist/cjs/Effect-BIlTHtLK.js +19172 -0
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/aria-validation-controller-B7unOPxT.js +2929 -0
- package/dist/cjs/axe-BNqwbBGU.js +32834 -0
- package/dist/cjs/component-CRc6eHcV.js +138 -0
- package/dist/cjs/element-activation-controller-DC_6T0Rt.js +31 -0
- package/dist/cjs/icons-DbL3LSmP.js +659 -0
- package/dist/cjs/index-9ZJx0550.js +2752 -0
- package/dist/cjs/index-CVw4GUo6.js +92 -0
- package/dist/cjs/index.cjs.js +96 -0
- package/dist/cjs/lmvz-action.cjs.entry.js +22 -0
- package/dist/cjs/lmvz-button.cjs.entry.js +72 -0
- package/dist/cjs/lmvz-card.cjs.entry.js +33 -0
- package/dist/cjs/lmvz-chip.cjs.entry.js +18 -0
- package/dist/cjs/lmvz-components.cjs.js +25 -0
- package/dist/cjs/lmvz-header.cjs.entry.js +134 -0
- package/dist/cjs/lmvz-icon.cjs.entry.js +76 -0
- package/dist/cjs/lmvz-input.cjs.entry.js +176 -0
- package/dist/cjs/lmvz-menuitem.cjs.entry.js +32 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/api/ds.constants.js +73 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/assets/LMVZ_logo_175.svg +1 -0
- package/dist/collection/assets/card-placeholder.svg +4 -0
- package/dist/collection/assets/fonts/Router-Bold.woff +0 -0
- package/dist/collection/assets/fonts/Router-Book.woff +0 -0
- package/dist/collection/assets/fonts/Router-Medium.woff +0 -0
- package/dist/collection/assets/icons/Logo.svg +10 -0
- package/dist/collection/assets/icons/actions.svg +5 -0
- package/dist/collection/assets/icons/adduser.svg +3 -0
- package/dist/collection/assets/icons/alert.svg +3 -0
- package/dist/collection/assets/icons/apple.svg +3 -0
- package/dist/collection/assets/icons/arrow-down.svg +3 -0
- package/dist/collection/assets/icons/arrow-left.svg +3 -0
- package/dist/collection/assets/icons/arrow-right.svg +3 -0
- package/dist/collection/assets/icons/arrow-up.svg +3 -0
- package/dist/collection/assets/icons/book.svg +3 -0
- package/dist/collection/assets/icons/bookmark.svg +3 -0
- package/dist/collection/assets/icons/checkmark.svg +3 -0
- package/dist/collection/assets/icons/chevron-down.svg +3 -0
- package/dist/collection/assets/icons/chevron-left.svg +3 -0
- package/dist/collection/assets/icons/chevron-right.svg +3 -0
- package/dist/collection/assets/icons/chevron-up.svg +3 -0
- package/dist/collection/assets/icons/close-l.svg +3 -0
- package/dist/collection/assets/icons/close-sm.svg +3 -0
- package/dist/collection/assets/icons/cog.svg +4 -0
- package/dist/collection/assets/icons/computer.svg +3 -0
- package/dist/collection/assets/icons/dashboard.svg +6 -0
- package/dist/collection/assets/icons/delete.svg +3 -0
- package/dist/collection/assets/icons/download.svg +3 -0
- package/dist/collection/assets/icons/edit.svg +3 -0
- package/dist/collection/assets/icons/external.svg +3 -0
- package/dist/collection/assets/icons/facebook.svg +3 -0
- package/dist/collection/assets/icons/favorite.svg +3 -0
- package/dist/collection/assets/icons/filter.svg +3 -0
- package/dist/collection/assets/icons/group.svg +3 -0
- package/dist/collection/assets/icons/hide.svg +3 -0
- package/dist/collection/assets/icons/home.svg +3 -0
- package/dist/collection/assets/icons/info.svg +3 -0
- package/dist/collection/assets/icons/instagram.svg +3 -0
- package/dist/collection/assets/icons/letter.svg +3 -0
- package/dist/collection/assets/icons/linkedin.svg +5 -0
- package/dist/collection/assets/icons/logout.svg +3 -0
- package/dist/collection/assets/icons/map.svg +3 -0
- package/dist/collection/assets/icons/minus.svg +3 -0
- package/dist/collection/assets/icons/navigation.svg +3 -0
- package/dist/collection/assets/icons/plus.svg +3 -0
- package/dist/collection/assets/icons/qr-scan.svg +3 -0
- package/dist/collection/assets/icons/question.svg +10 -0
- package/dist/collection/assets/icons/reader.svg +3 -0
- package/dist/collection/assets/icons/reset.svg +3 -0
- package/dist/collection/assets/icons/school.svg +3 -0
- package/dist/collection/assets/icons/search.svg +3 -0
- package/dist/collection/assets/icons/send.svg +3 -0
- package/dist/collection/assets/icons/settings.svg +3 -0
- package/dist/collection/assets/icons/share.svg +10 -0
- package/dist/collection/assets/icons/shopping-cart.svg +3 -0
- package/dist/collection/assets/icons/show.svg +3 -0
- package/dist/collection/assets/icons/snapchat.svg +3 -0
- package/dist/collection/assets/icons/sort.svg +3 -0
- package/dist/collection/assets/icons/speech-bubble.svg +3 -0
- package/dist/collection/assets/icons/star.svg +3 -0
- package/dist/collection/assets/icons/student.svg +3 -0
- package/dist/collection/assets/icons/upload.svg +3 -0
- package/dist/collection/assets/icons/user.svg +3 -0
- package/dist/collection/assets/icons/warn-circle.svg +3 -0
- package/dist/collection/assets/icons/warn-triangle.svg +3 -0
- package/dist/collection/assets/icons/whatsapp.svg +4 -0
- package/dist/collection/assets/icons/world.svg +10 -0
- package/dist/collection/assets/icons/x.svg +3 -0
- package/dist/collection/assets/icons/youtube.svg +3 -0
- package/dist/collection/assets/zukunftslinie.svg +3 -0
- package/dist/collection/collection-manifest.json +21 -0
- package/dist/collection/components/lmvz-action/lmvz-action.css +3 -0
- package/dist/collection/components/lmvz-action/lmvz-action.js +45 -0
- package/dist/collection/components/lmvz-button/lmvz-button.css +199 -0
- package/dist/collection/components/lmvz-button/lmvz-button.js +245 -0
- package/dist/collection/components/lmvz-card/lmvz-card.css +283 -0
- package/dist/collection/components/lmvz-card/lmvz-card.js +137 -0
- package/dist/collection/components/lmvz-chip/lmvz-chip.css +3 -0
- package/dist/collection/components/lmvz-chip/lmvz-chip.js +42 -0
- package/dist/collection/components/lmvz-header/lmvz-header.css +49 -0
- package/dist/collection/components/lmvz-header/lmvz-header.js +138 -0
- package/dist/collection/components/lmvz-icon/icons.js +36 -0
- package/dist/collection/components/lmvz-icon/lmvz-icon.css +82 -0
- package/dist/collection/components/lmvz-icon/lmvz-icon.js +191 -0
- package/dist/collection/components/lmvz-icon/public.js +1 -0
- package/dist/collection/components/lmvz-icon/test/icons.unit.js +89 -0
- package/dist/collection/components/lmvz-input/lmvz-input.css +201 -0
- package/dist/collection/components/lmvz-input/lmvz-input.js +847 -0
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.css +89 -0
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +97 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/integration/header-integration.js +28 -0
- package/dist/collection/styles/buttons.css +1 -0
- package/dist/collection/styles/router-font.css +1 -0
- package/dist/collection/styles/tokens.css +1 -0
- package/dist/collection/styles/typography.css +1 -0
- package/dist/collection/themes/all.css +1 -0
- package/dist/collection/themes/dark.css +1 -0
- package/dist/collection/themes/light.css +1 -0
- package/dist/collection/utils/component.js +268 -0
- package/dist/collection/utils/effect.js +6 -0
- package/dist/collection/utils/element-activation-controller.js +27 -0
- package/dist/collection/utils/http.js +24 -0
- package/dist/collection/utils/http.test.js +46 -0
- package/dist/collection/utils/list-keyboard-controller.js +44 -0
- package/dist/collection/utils/public.js +1 -0
- package/dist/collection/utils/reactive-controller-host.js +39 -0
- package/dist/collection/utils/typing.js +1 -0
- package/dist/collection/utils/url.js +7 -0
- package/dist/collection/utils/validation/aria-validation-controller.js +124 -0
- package/dist/collection/utils/validation/svg.js +24 -0
- package/dist/components/index.d.ts +53 -0
- package/dist/components/index.js +1 -0
- package/dist/components/lmvz-action.d.ts +11 -0
- package/dist/components/lmvz-action.js +1 -0
- package/dist/components/lmvz-button.d.ts +11 -0
- package/dist/components/lmvz-button.js +1 -0
- package/dist/components/lmvz-card.d.ts +11 -0
- package/dist/components/lmvz-card.js +1 -0
- package/dist/components/lmvz-chip.d.ts +11 -0
- package/dist/components/lmvz-chip.js +1 -0
- package/dist/components/lmvz-header.d.ts +11 -0
- package/dist/components/lmvz-header.js +1 -0
- package/dist/components/lmvz-icon.d.ts +11 -0
- package/dist/components/lmvz-icon.js +1 -0
- package/dist/components/lmvz-input.d.ts +11 -0
- package/dist/components/lmvz-input.js +1 -0
- package/dist/components/lmvz-menuitem.d.ts +11 -0
- package/dist/components/lmvz-menuitem.js +1 -0
- package/dist/components/p-B3JVFwO1.js +1 -0
- package/dist/components/p-B85MJLTf.js +1 -0
- package/dist/components/p-BFwzIh71.js +1 -0
- package/dist/components/p-BaPwpeMs.js +1 -0
- package/dist/components/p-CN0JX9-m.js +1 -0
- package/dist/components/p-D1HbKFuh.js +12 -0
- package/dist/components/p-DDmjv-N_.js +1 -0
- package/dist/components/p-DMLRPGid.js +6 -0
- package/dist/esm/Effect-D9S7OTyY.js +18963 -0
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/aria-validation-controller-C7nQzCCq.js +2926 -0
- package/dist/esm/axe-cRQ9Ux1I.js +32832 -0
- package/dist/esm/component-B3JVFwO1.js +132 -0
- package/dist/esm/element-activation-controller-CN0JX9-m.js +29 -0
- package/dist/esm/icons-B71gAZmE.js +655 -0
- package/dist/esm/index-Bt32KzDW.js +90 -0
- package/dist/esm/index-smGPjoDX.js +2741 -0
- package/dist/esm/index.js +85 -0
- package/dist/esm/lmvz-action.entry.js +20 -0
- package/dist/esm/lmvz-button.entry.js +70 -0
- package/dist/esm/lmvz-card.entry.js +31 -0
- package/dist/esm/lmvz-chip.entry.js +16 -0
- package/dist/esm/lmvz-components.js +21 -0
- package/dist/esm/lmvz-header.entry.js +132 -0
- package/dist/esm/lmvz-icon.entry.js +74 -0
- package/dist/esm/lmvz-input.entry.js +174 -0
- package/dist/esm/lmvz-menuitem.entry.js +30 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lmvz-components/assets/LMVZ_logo_175.svg +1 -0
- package/dist/lmvz-components/assets/card-placeholder.svg +4 -0
- package/dist/lmvz-components/assets/fonts/Router-Bold.woff +0 -0
- package/dist/lmvz-components/assets/fonts/Router-Book.woff +0 -0
- package/dist/lmvz-components/assets/fonts/Router-Medium.woff +0 -0
- package/dist/lmvz-components/assets/icons/Logo.svg +10 -0
- package/dist/lmvz-components/assets/icons/actions.svg +5 -0
- package/dist/lmvz-components/assets/icons/adduser.svg +3 -0
- package/dist/lmvz-components/assets/icons/alert.svg +3 -0
- package/dist/lmvz-components/assets/icons/apple.svg +3 -0
- package/dist/lmvz-components/assets/icons/arrow-down.svg +3 -0
- package/dist/lmvz-components/assets/icons/arrow-left.svg +3 -0
- package/dist/lmvz-components/assets/icons/arrow-right.svg +3 -0
- package/dist/lmvz-components/assets/icons/arrow-up.svg +3 -0
- package/dist/lmvz-components/assets/icons/book.svg +3 -0
- package/dist/lmvz-components/assets/icons/bookmark.svg +3 -0
- package/dist/lmvz-components/assets/icons/checkmark.svg +3 -0
- package/dist/lmvz-components/assets/icons/chevron-down.svg +3 -0
- package/dist/lmvz-components/assets/icons/chevron-left.svg +3 -0
- package/dist/lmvz-components/assets/icons/chevron-right.svg +3 -0
- package/dist/lmvz-components/assets/icons/chevron-up.svg +3 -0
- package/dist/lmvz-components/assets/icons/close-l.svg +3 -0
- package/dist/lmvz-components/assets/icons/close-sm.svg +3 -0
- package/dist/lmvz-components/assets/icons/cog.svg +4 -0
- package/dist/lmvz-components/assets/icons/computer.svg +3 -0
- package/dist/lmvz-components/assets/icons/dashboard.svg +6 -0
- package/dist/lmvz-components/assets/icons/delete.svg +3 -0
- package/dist/lmvz-components/assets/icons/download.svg +3 -0
- package/dist/lmvz-components/assets/icons/edit.svg +3 -0
- package/dist/lmvz-components/assets/icons/external.svg +3 -0
- package/dist/lmvz-components/assets/icons/facebook.svg +3 -0
- package/dist/lmvz-components/assets/icons/favorite.svg +3 -0
- package/dist/lmvz-components/assets/icons/filter.svg +3 -0
- package/dist/lmvz-components/assets/icons/group.svg +3 -0
- package/dist/lmvz-components/assets/icons/hide.svg +3 -0
- package/dist/lmvz-components/assets/icons/home.svg +3 -0
- package/dist/lmvz-components/assets/icons/info.svg +3 -0
- package/dist/lmvz-components/assets/icons/instagram.svg +3 -0
- package/dist/lmvz-components/assets/icons/letter.svg +3 -0
- package/dist/lmvz-components/assets/icons/linkedin.svg +5 -0
- package/dist/lmvz-components/assets/icons/logout.svg +3 -0
- package/dist/lmvz-components/assets/icons/map.svg +3 -0
- package/dist/lmvz-components/assets/icons/minus.svg +3 -0
- package/dist/lmvz-components/assets/icons/navigation.svg +3 -0
- package/dist/lmvz-components/assets/icons/plus.svg +3 -0
- package/dist/lmvz-components/assets/icons/qr-scan.svg +3 -0
- package/dist/lmvz-components/assets/icons/question.svg +10 -0
- package/dist/lmvz-components/assets/icons/reader.svg +3 -0
- package/dist/lmvz-components/assets/icons/reset.svg +3 -0
- package/dist/lmvz-components/assets/icons/school.svg +3 -0
- package/dist/lmvz-components/assets/icons/search.svg +3 -0
- package/dist/lmvz-components/assets/icons/send.svg +3 -0
- package/dist/lmvz-components/assets/icons/settings.svg +3 -0
- package/dist/lmvz-components/assets/icons/share.svg +10 -0
- package/dist/lmvz-components/assets/icons/shopping-cart.svg +3 -0
- package/dist/lmvz-components/assets/icons/show.svg +3 -0
- package/dist/lmvz-components/assets/icons/snapchat.svg +3 -0
- package/dist/lmvz-components/assets/icons/sort.svg +3 -0
- package/dist/lmvz-components/assets/icons/speech-bubble.svg +3 -0
- package/dist/lmvz-components/assets/icons/star.svg +3 -0
- package/dist/lmvz-components/assets/icons/student.svg +3 -0
- package/dist/lmvz-components/assets/icons/upload.svg +3 -0
- package/dist/lmvz-components/assets/icons/user.svg +3 -0
- package/dist/lmvz-components/assets/icons/warn-circle.svg +3 -0
- package/dist/lmvz-components/assets/icons/warn-triangle.svg +3 -0
- package/dist/lmvz-components/assets/icons/whatsapp.svg +4 -0
- package/dist/lmvz-components/assets/icons/world.svg +10 -0
- package/dist/lmvz-components/assets/icons/x.svg +3 -0
- package/dist/lmvz-components/assets/icons/youtube.svg +3 -0
- package/dist/lmvz-components/assets/zukunftslinie.svg +3 -0
- package/dist/lmvz-components/index.esm.js +1 -0
- package/dist/lmvz-components/lmvz-components.esm.js +1 -0
- package/dist/lmvz-components/p-87b01940.entry.js +1 -0
- package/dist/lmvz-components/p-9faac8f3.entry.js +1 -0
- package/dist/lmvz-components/p-B3JVFwO1.js +1 -0
- package/dist/lmvz-components/p-B85MJLTf.js +1 -0
- package/dist/lmvz-components/p-CN0JX9-m.js +1 -0
- package/dist/lmvz-components/p-D1HbKFuh.js +12 -0
- package/dist/lmvz-components/p-D9S7OTyY.js +1 -0
- package/dist/lmvz-components/p-DMLRPGid.js +6 -0
- package/dist/lmvz-components/p-DQuL1Twl.js +1 -0
- package/dist/lmvz-components/p-DlIX18fw.js +1 -0
- package/dist/lmvz-components/p-DlrjrWsu.js +1 -0
- package/dist/lmvz-components/p-a4615e4b.entry.js +1 -0
- package/dist/lmvz-components/p-a8c88454.entry.js +1 -0
- package/dist/lmvz-components/p-d4b68381.entry.js +1 -0
- package/dist/lmvz-components/p-e63e239a.entry.js +1 -0
- package/dist/lmvz-components/p-f956a5e7.entry.js +1 -0
- package/dist/lmvz-components/p-fefd2fe4.entry.js +1 -0
- package/dist/lmvz-components/p-smGPjoDX.js +2 -0
- package/dist/lmvz-components/styles/buttons.css +1 -0
- package/dist/lmvz-components/styles/router-font.css +1 -0
- package/dist/lmvz-components/styles/tokens.css +1 -0
- package/dist/lmvz-components/styles/typography.css +1 -0
- package/dist/lmvz-components/themes/all.css +1 -0
- package/dist/lmvz-components/themes/dark.css +1 -0
- package/dist/lmvz-components/themes/light.css +1 -0
- package/dist/manifest.d.ts +480 -0
- package/dist/manifest.json +5184 -0
- package/dist/types/api/aria-types.d.ts +9 -0
- package/dist/types/api/ds.constants.d.ts +8 -0
- package/dist/types/api/ds.types.d.ts +39 -0
- package/dist/types/api/index.d.ts +3 -0
- package/dist/types/components/lmvz-action/lmvz-action.d.ts +6 -0
- package/dist/types/components/lmvz-button/lmvz-button.d.ts +25 -0
- package/dist/types/components/lmvz-card/lmvz-card.d.ts +11 -0
- package/dist/types/components/lmvz-chip/lmvz-chip.d.ts +4 -0
- package/dist/types/components/lmvz-header/lmvz-header.d.ts +23 -0
- package/dist/types/components/lmvz-icon/icons.d.ts +8 -0
- package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +20 -0
- package/dist/types/components/lmvz-icon/public.d.ts +1 -0
- package/dist/types/components/lmvz-icon/test/icons.unit.d.ts +1 -0
- package/dist/types/components/lmvz-input/lmvz-input.d.ts +63 -0
- package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +12 -0
- package/dist/types/components.d.ts +773 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/utils/component.d.ts +36 -0
- package/dist/types/utils/effect.d.ts +3 -0
- package/dist/types/utils/element-activation-controller.d.ts +19 -0
- package/dist/types/utils/http.d.ts +24 -0
- package/dist/types/utils/http.test.d.ts +1 -0
- package/dist/types/utils/list-keyboard-controller.d.ts +13 -0
- package/dist/types/utils/public.d.ts +1 -0
- package/dist/types/utils/reactive-controller-host.d.ts +26 -0
- package/dist/types/utils/typing.d.ts +3 -0
- package/dist/types/utils/url.d.ts +8 -0
- package/dist/types/utils/validation/aria-validation-controller.d.ts +31 -0
- package/dist/types/utils/validation/svg.d.ts +11 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +78213 -0
- package/hydrate/index.mjs +78203 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +216 -0
- package/readme.md +193 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { EventEmitter } from '../stencil-public-runtime';
|
|
2
|
+
export declare const transitionEndAsync: (el: HTMLElement | null, expectedDuration?: number) => Promise<unknown>;
|
|
3
|
+
export declare const componentOnReady: (el: any, callback: any) => void;
|
|
4
|
+
export declare const hasLazyBuild: (stencilEl: HTMLElement) => boolean;
|
|
5
|
+
export type Attributes = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const inheritAttributes: (el: HTMLElement, attributes?: string[]) => Attributes;
|
|
9
|
+
export declare const inheritAriaAttributes: (el: HTMLElement, ignoreList?: string[]) => Attributes;
|
|
10
|
+
export declare const addEventListener: (el: any, eventName: string, callback: any, opts?: any) => any;
|
|
11
|
+
export declare const removeEventListener: (el: any, eventName: string, callback: any, opts?: any) => any;
|
|
12
|
+
export declare const getElementRoot: (el: HTMLElement, fallback?: HTMLElement) => HTMLElement | ShadowRoot;
|
|
13
|
+
export declare const raf: (h: FrameRequestCallback) => number;
|
|
14
|
+
export declare const hasShadowDom: (el: HTMLElement) => boolean;
|
|
15
|
+
export declare const focusVisibleElement: (el: HTMLElement) => void;
|
|
16
|
+
export declare const renderHiddenInput: (always: boolean, container: HTMLElement, name: string, value: string | undefined | null, disabled: boolean) => void;
|
|
17
|
+
export declare const clamp: (min: number, n: number, max: number) => number;
|
|
18
|
+
export declare const assert: (actual: any, reason: string) => void;
|
|
19
|
+
export declare const now: (ev: UIEvent) => number;
|
|
20
|
+
export declare const pointerCoord: (ev: any) => {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const deferEvent: (event: EventEmitter) => EventEmitter;
|
|
25
|
+
export declare const debounceEvent: (event: EventEmitter, wait: number) => EventEmitter;
|
|
26
|
+
export declare const debounce: (func: (...args: any[]) => void, wait?: number) => (...args: any[]) => any;
|
|
27
|
+
export declare const shallowEqualStringMap: (map1: {
|
|
28
|
+
[k: string]: any;
|
|
29
|
+
} | undefined, map2: {
|
|
30
|
+
[k: string]: any;
|
|
31
|
+
} | undefined) => boolean;
|
|
32
|
+
export declare const isSafeNumber: (input: unknown) => input is number;
|
|
33
|
+
export declare function getDeepActiveElement(root?: Document): Element;
|
|
34
|
+
export declare function canReceiveFocus(el: Element): boolean;
|
|
35
|
+
export type FormRef = string | HTMLFormElement | undefined;
|
|
36
|
+
export declare function findFormByRef(form: FormRef, el: HTMLElement): HTMLFormElement | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
|
+
export type UnwrapEffect<T> = T extends Effect.Effect<infer A, infer E, infer R> ? [A, E, R] : never;
|
|
3
|
+
export declare function run<T extends Effect.Effect<unknown, unknown, never>>(effect: T): T extends Effect.Effect<infer A, infer E, never> ? Promise<A | E> : never;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EventEmitter } from '../stencil-public-runtime';
|
|
2
|
+
import type { ReactiveController } from './reactive-controller-host';
|
|
3
|
+
export type ElementActivationHost = {
|
|
4
|
+
el: HTMLElement;
|
|
5
|
+
lmvzActivation: EventEmitter<void>;
|
|
6
|
+
};
|
|
7
|
+
type Config = {
|
|
8
|
+
localHandler?: (event: Event) => unknown;
|
|
9
|
+
keys?: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare class ElementActivationController implements ReactiveController {
|
|
12
|
+
private host;
|
|
13
|
+
private config?;
|
|
14
|
+
constructor(host: ElementActivationHost, config?: Config);
|
|
15
|
+
hostDidLoad(): void;
|
|
16
|
+
private handleKeyDown;
|
|
17
|
+
private handleActivation;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
|
+
declare const FetchError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
3
|
+
readonly _tag: "FetchError";
|
|
4
|
+
} & Readonly<A>;
|
|
5
|
+
export declare class FetchError extends FetchError_base<{
|
|
6
|
+
cause: unknown;
|
|
7
|
+
}> {
|
|
8
|
+
}
|
|
9
|
+
declare const NotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
10
|
+
readonly _tag: "NotFoundError";
|
|
11
|
+
} & Readonly<A>;
|
|
12
|
+
export declare class NotFoundError extends NotFoundError_base<{
|
|
13
|
+
url: string;
|
|
14
|
+
}> {
|
|
15
|
+
}
|
|
16
|
+
export declare const httpClient: (input: RequestInfo | URL, init?: RequestInit) => Effect.Effect<Response, FetchError | NotFoundError, never>;
|
|
17
|
+
declare const ResponseTextError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
18
|
+
readonly _tag: "ResponseTextError";
|
|
19
|
+
} & Readonly<A>;
|
|
20
|
+
export declare class ResponseTextError extends ResponseTextError_base<Error> {
|
|
21
|
+
constructor(error: Error);
|
|
22
|
+
}
|
|
23
|
+
export declare const responseAsText: (res: Response) => Effect.Effect<string, ResponseTextError, never>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactiveController } from './reactive-controller-host';
|
|
2
|
+
export type ListKeyboardNavigationHost = {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
};
|
|
5
|
+
export declare class ListKeyboardNavigationController implements ReactiveController {
|
|
6
|
+
private readonly host;
|
|
7
|
+
private elements;
|
|
8
|
+
constructor(host: ListKeyboardNavigationHost);
|
|
9
|
+
hostDidRender(): void;
|
|
10
|
+
updateElements(elements: Element[]): void;
|
|
11
|
+
private handleKeydown;
|
|
12
|
+
private getNextFocusableElement;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from './effect';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentInterface } from '../stencil-public-runtime';
|
|
2
|
+
export interface ReactiveController {
|
|
3
|
+
hostConnected?(): void;
|
|
4
|
+
hostDisconnected?(): void;
|
|
5
|
+
hostWillLoad?(): Promise<void> | void;
|
|
6
|
+
hostDidLoad?(): void;
|
|
7
|
+
hostWillRender?(): Promise<void> | void;
|
|
8
|
+
hostDidRender?(): void;
|
|
9
|
+
hostWillUpdate?(): Promise<void> | void;
|
|
10
|
+
hostDidUpdate?(): void;
|
|
11
|
+
readonly disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class ReactiveControllerHost implements ComponentInterface {
|
|
14
|
+
private controllers;
|
|
15
|
+
protected addController(controller: ReactiveController): void;
|
|
16
|
+
protected removeController(controller: ReactiveController): void;
|
|
17
|
+
private get activeControllers();
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
componentWillLoad(): void;
|
|
21
|
+
componentDidLoad(): void;
|
|
22
|
+
componentWillRender(): void;
|
|
23
|
+
componentDidRender(): void;
|
|
24
|
+
componentWillUpdate(): void;
|
|
25
|
+
componentDidUpdate(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Effect } from 'effect';
|
|
2
|
+
declare const URLCreationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
3
|
+
readonly _tag: "URLCreationError";
|
|
4
|
+
} & Readonly<A>;
|
|
5
|
+
export declare class URLCreationError extends URLCreationError_base<Error> {
|
|
6
|
+
}
|
|
7
|
+
export declare const createAssetUrlWithBasePath: (file: string, basePath?: string) => Effect.Effect<string, never, never>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactiveController } from '../reactive-controller-host';
|
|
2
|
+
export type AriaValidationHost<T extends HTMLElement = HTMLElement> = {
|
|
3
|
+
el: T;
|
|
4
|
+
};
|
|
5
|
+
type Config = {
|
|
6
|
+
reValidateOnPropChanges?: boolean;
|
|
7
|
+
verboseLogging?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare class AriaValidationController implements ReactiveController {
|
|
10
|
+
private readonly host;
|
|
11
|
+
private readonly config?;
|
|
12
|
+
private static get globalValidationEnabled();
|
|
13
|
+
private static axe;
|
|
14
|
+
private static axeQueue;
|
|
15
|
+
private static axeStreamFiber;
|
|
16
|
+
private visibilityObserver?;
|
|
17
|
+
private elementQueued;
|
|
18
|
+
private elementValidated;
|
|
19
|
+
private knownValidationErrors;
|
|
20
|
+
get disabled(): boolean;
|
|
21
|
+
constructor(host: AriaValidationHost, config?: Config);
|
|
22
|
+
private static initializeAxeStream;
|
|
23
|
+
hostDidLoad(): void;
|
|
24
|
+
hostDidUpdate(): void;
|
|
25
|
+
hostDisconnected(): void;
|
|
26
|
+
private observeVisibilityOnce;
|
|
27
|
+
private checkLazyValidation;
|
|
28
|
+
private enqueueValidation;
|
|
29
|
+
private discardVisibilityObserver;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Brand, Effect } from 'effect';
|
|
2
|
+
export type SVGString = string & Brand.Brand<'SVG'>;
|
|
3
|
+
export declare const SVGString: Brand.Brand.Constructor<SVGString>;
|
|
4
|
+
declare const BrandValidationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
5
|
+
readonly _tag: "BrandValidationError";
|
|
6
|
+
} & Readonly<A>;
|
|
7
|
+
export declare class BrandValidationError extends BrandValidationError_base<Error> {
|
|
8
|
+
constructor(error: Error, type: string);
|
|
9
|
+
}
|
|
10
|
+
export declare const createValidSVGString: (svg: string) => Effect.Effect<SVGString, BrandValidationError, never>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
import { Readable } from 'node:stream';
|
|
4
|
+
|
|
5
|
+
export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
|
|
6
|
+
export type TagTransformer = (tag: string) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Serialize a value to a string that can be deserialized later.
|
|
9
|
+
* @param {unknown} value - The value to serialize.
|
|
10
|
+
* @returns {string} A string that can be deserialized later.
|
|
11
|
+
* @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare function serializeProperty(value: unknown): string | number | boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Deserialize a value from a string that was serialized earlier.
|
|
16
|
+
* @param {string} value - The string to deserialize.
|
|
17
|
+
* @returns {unknown} The deserialized value.
|
|
18
|
+
* @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
|
|
19
|
+
*/
|
|
20
|
+
export declare function deserializeProperty(value: string): any;
|
|
21
|
+
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
22
|
+
export interface HydrateDocumentOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
|
|
25
|
+
* a random ID will be generated
|
|
26
|
+
*/
|
|
27
|
+
buildId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the `href` attribute on the `<link rel="canonical">`
|
|
30
|
+
* tag within the `<head>`. If the value is not defined it will
|
|
31
|
+
* ensure a canonical link tag is no included in the `<head>`.
|
|
32
|
+
*/
|
|
33
|
+
canonicalUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Include the HTML comments and attributes used by the client-side
|
|
36
|
+
* JavaScript to read the structure of the HTML and rebuild each
|
|
37
|
+
* component. Defaults to `true`.
|
|
38
|
+
*/
|
|
39
|
+
clientHydrateAnnotations?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Constrain `setTimeout()` to 1ms, but still async. Also
|
|
42
|
+
* only allows `setInterval()` to fire once, also constrained to 1ms.
|
|
43
|
+
* Defaults to `true`.
|
|
44
|
+
*/
|
|
45
|
+
constrainTimeouts?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Sets `document.cookie`
|
|
48
|
+
*/
|
|
49
|
+
cookie?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Sets the `dir` attribute on the top level `<html>`.
|
|
52
|
+
*/
|
|
53
|
+
direction?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Component tag names listed here will not be prerendered, nor will
|
|
56
|
+
* hydrated on the client-side. Components listed here will be ignored
|
|
57
|
+
* as custom elements and treated no differently than a `<div>`.
|
|
58
|
+
*/
|
|
59
|
+
excludeComponents?: string[];
|
|
60
|
+
/**
|
|
61
|
+
* Sets the `lang` attribute on the top level `<html>`.
|
|
62
|
+
*/
|
|
63
|
+
language?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum number of components to hydrate on one page. Defaults to `300`.
|
|
66
|
+
*/
|
|
67
|
+
maxHydrateCount?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Sets `document.referrer`
|
|
70
|
+
*/
|
|
71
|
+
referrer?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Removes every `<script>` element found in the `document`. Defaults to `false`.
|
|
74
|
+
*/
|
|
75
|
+
removeScripts?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Removes CSS not used by elements within the `document`. Defaults to `true`.
|
|
78
|
+
*/
|
|
79
|
+
removeUnusedStyles?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The url the runtime uses for the resources, such as the assets directory.
|
|
82
|
+
*/
|
|
83
|
+
resourcesUrl?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Prints out runtime console logs to the NodeJS process. Defaults to `false`.
|
|
86
|
+
*/
|
|
87
|
+
runtimeLogging?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Component tags listed here will only be prerendered or server-side-rendered
|
|
90
|
+
* and will not be client-side hydrated. This is useful for components that
|
|
91
|
+
* are not dynamic and do not need to be defined as a custom element within the
|
|
92
|
+
* browser. For example, a header or footer component would be a good example that
|
|
93
|
+
* may not require any client-side JavaScript.
|
|
94
|
+
*/
|
|
95
|
+
staticComponents?: string[];
|
|
96
|
+
/**
|
|
97
|
+
* The amount of milliseconds to wait for a page to finish rendering until
|
|
98
|
+
* a timeout error is thrown. Defaults to `15000`.
|
|
99
|
+
*/
|
|
100
|
+
timeout?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Sets `document.title`.
|
|
103
|
+
*/
|
|
104
|
+
title?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Sets `location.href`
|
|
107
|
+
*/
|
|
108
|
+
url?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Sets `navigator.userAgent`
|
|
111
|
+
*/
|
|
112
|
+
userAgent?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Configure how Stencil serializes the components shadow root.
|
|
115
|
+
* - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
|
|
116
|
+
* - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
|
|
117
|
+
* and the shadow DOM will be created during client-side hydration.
|
|
118
|
+
* - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
|
|
119
|
+
* the value arrays containing the tag names of the components that should be rendered in that mode.
|
|
120
|
+
*
|
|
121
|
+
* Examples:
|
|
122
|
+
* - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
|
|
123
|
+
* Render all components as `scoped` apart from `my-component-1` and `another-component`
|
|
124
|
+
* - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
|
|
125
|
+
* Render all components within `declarative-shadow-dom` apart from `an-option-component`
|
|
126
|
+
* - `'scoped'` Render all components as `scoped`
|
|
127
|
+
* - `false` disables shadow root serialization
|
|
128
|
+
*
|
|
129
|
+
* *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
|
|
130
|
+
* @default 'declarative-shadow-dom'
|
|
131
|
+
*/
|
|
132
|
+
serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
|
|
133
|
+
"declarative-shadow-dom"?: string[];
|
|
134
|
+
scoped?: string[];
|
|
135
|
+
default: "declarative-shadow-dom" | "scoped";
|
|
136
|
+
} | boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
139
|
+
/**
|
|
140
|
+
* Runs after the `document` has been hydrated.
|
|
141
|
+
*/
|
|
142
|
+
afterHydrate?(document: any): any | Promise<any>;
|
|
143
|
+
/**
|
|
144
|
+
* Sets an approximate line width the HTML should attempt to stay within.
|
|
145
|
+
* Note that this is "approximate", in that HTML may often not be able
|
|
146
|
+
* to be split at an exact line width. Additionally, new lines created
|
|
147
|
+
* is where HTML naturally already has whitespace, such as before an
|
|
148
|
+
* attribute or spaces between words. Defaults to `100`.
|
|
149
|
+
*/
|
|
150
|
+
approximateLineWidth?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Runs before the `document` has been hydrated.
|
|
153
|
+
*/
|
|
154
|
+
beforeHydrate?(document: any): any | Promise<any>;
|
|
155
|
+
/**
|
|
156
|
+
* Format the HTML in a nicely indented format.
|
|
157
|
+
* Defaults to `false`.
|
|
158
|
+
*/
|
|
159
|
+
prettyHtml?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Remove quotes from attribute values when possible.
|
|
162
|
+
* Defaults to `true`.
|
|
163
|
+
*/
|
|
164
|
+
removeAttributeQuotes?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Remove the `=""` from standardized `boolean` attributes,
|
|
167
|
+
* such as `hidden` or `checked`. Defaults to `true`.
|
|
168
|
+
*/
|
|
169
|
+
removeBooleanAttributeQuotes?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Remove these standardized attributes when their value is empty:
|
|
172
|
+
* `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
|
|
173
|
+
*/
|
|
174
|
+
removeEmptyAttributes?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Remove HTML comments. Defaults to `true`.
|
|
177
|
+
*/
|
|
178
|
+
removeHtmlComments?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* The `fullDocument` flag determines the format of the rendered output. Set it to true to
|
|
181
|
+
* generate a complete HTML document, or false to render only the component.
|
|
182
|
+
* @default true
|
|
183
|
+
*/
|
|
184
|
+
fullDocument?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Style modes to render the component in.
|
|
187
|
+
* @see https://stenciljs.com/docs/styling#style-modes
|
|
188
|
+
*/
|
|
189
|
+
modes?: ResolutionHandler[];
|
|
190
|
+
}
|
|
191
|
+
export interface HydrateFactoryOptions extends SerializeDocumentOptions {
|
|
192
|
+
serializeToHtml: boolean;
|
|
193
|
+
destroyWindow: boolean;
|
|
194
|
+
destroyDocument: boolean;
|
|
195
|
+
}
|
|
196
|
+
export interface Diagnostic {
|
|
197
|
+
absFilePath?: string | undefined;
|
|
198
|
+
code?: string;
|
|
199
|
+
columnNumber?: number | undefined;
|
|
200
|
+
debugText?: string;
|
|
201
|
+
header?: string;
|
|
202
|
+
language?: string;
|
|
203
|
+
level: "error" | "warn" | "info" | "log" | "debug";
|
|
204
|
+
lineNumber?: number | undefined;
|
|
205
|
+
lines: PrintLine[];
|
|
206
|
+
messageText: string;
|
|
207
|
+
relFilePath?: string | undefined;
|
|
208
|
+
type: string;
|
|
209
|
+
}
|
|
210
|
+
export interface PrintLine {
|
|
211
|
+
lineIndex: number;
|
|
212
|
+
lineNumber: number;
|
|
213
|
+
text: string;
|
|
214
|
+
errorCharStart: number;
|
|
215
|
+
errorLength?: number;
|
|
216
|
+
}
|
|
217
|
+
export interface HydrateResults {
|
|
218
|
+
buildId: string;
|
|
219
|
+
diagnostics: Diagnostic[];
|
|
220
|
+
url: string;
|
|
221
|
+
host: string | null;
|
|
222
|
+
hostname: string | null;
|
|
223
|
+
href: string | null;
|
|
224
|
+
port: string | null;
|
|
225
|
+
pathname: string | null;
|
|
226
|
+
search: string | null;
|
|
227
|
+
hash: string | null;
|
|
228
|
+
html: string | null;
|
|
229
|
+
components: HydrateComponent[];
|
|
230
|
+
anchors: HydrateAnchorElement[];
|
|
231
|
+
imgs: HydrateImgElement[];
|
|
232
|
+
scripts: HydrateScriptElement[];
|
|
233
|
+
styles: HydrateStyleElement[];
|
|
234
|
+
staticData: HydrateStaticData[];
|
|
235
|
+
title: string | null;
|
|
236
|
+
hydratedCount: number;
|
|
237
|
+
httpStatus: number | null;
|
|
238
|
+
}
|
|
239
|
+
export interface HydrateComponent {
|
|
240
|
+
tag: string;
|
|
241
|
+
mode: string;
|
|
242
|
+
count: number;
|
|
243
|
+
depth: number;
|
|
244
|
+
}
|
|
245
|
+
export interface HydrateElement {
|
|
246
|
+
[attrName: string]: string | undefined;
|
|
247
|
+
}
|
|
248
|
+
export interface HydrateAnchorElement extends HydrateElement {
|
|
249
|
+
href?: string;
|
|
250
|
+
target?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface HydrateImgElement extends HydrateElement {
|
|
253
|
+
src?: string;
|
|
254
|
+
}
|
|
255
|
+
export interface HydrateScriptElement extends HydrateElement {
|
|
256
|
+
src?: string;
|
|
257
|
+
type?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface HydrateStyleElement extends HydrateElement {
|
|
260
|
+
id?: string;
|
|
261
|
+
href?: string;
|
|
262
|
+
content?: string;
|
|
263
|
+
}
|
|
264
|
+
export interface HydrateStaticData {
|
|
265
|
+
id: string;
|
|
266
|
+
type: string;
|
|
267
|
+
content: string;
|
|
268
|
+
}
|
|
269
|
+
export declare function streamToString(html: string | any, option?: SerializeDocumentOptions): Readable;
|
|
270
|
+
export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
|
|
271
|
+
export declare function renderToString(html: string | any, options: SerializeDocumentOptions | undefined, asStream: true): Readable;
|
|
272
|
+
export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
|
|
273
|
+
export declare function hydrateDocument(doc: any | string, options: HydrateDocumentOptions | undefined, asStream?: boolean): Readable;
|
|
274
|
+
export declare function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions): string;
|
|
275
|
+
/**
|
|
276
|
+
* Transforms a tag name using the current tag transformer
|
|
277
|
+
* @param tag - the tag to transform e.g. `my-tag`
|
|
278
|
+
* @returns the transformed tag e.g. `new-my-tag`
|
|
279
|
+
*/
|
|
280
|
+
export declare function transformTag<T extends string>(tag: T): T;
|
|
281
|
+
/**
|
|
282
|
+
* Sets the tag transformer to be used when rendering custom elements
|
|
283
|
+
* @param transformer the transformer function to use. Must return a string
|
|
284
|
+
*/
|
|
285
|
+
export declare function setTagTransformer(transformer: TagTransformer): void;
|
|
286
|
+
|
|
287
|
+
export {};
|