@utrecht/web-component-library-stencil 1.0.0-alpha.9 → 1.0.0-alpha.93
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/README.md +28 -0
- package/dist/article/stencil.d.ts +3 -0
- package/dist/article/stencil.js +1 -1
- package/dist/badge-counter/stencil.d.ts +6 -0
- package/dist/badge-counter/stencil.js +1 -1
- package/dist/badge-data/stencil.d.ts +3 -0
- package/dist/badge-data/stencil.js +1 -1
- package/dist/badge-status/stencil.d.ts +4 -0
- package/dist/badge-status/stencil.js +1 -1
- package/dist/breadcrumb/stencil.d.ts +5 -0
- package/dist/breadcrumb/stencil.js +38 -0
- package/dist/button/stencil.d.ts +10 -0
- package/dist/button/stencil.js +40 -3
- package/dist/checkbox/stencil.d.ts +16 -0
- package/dist/checkbox/stencil.js +59 -0
- package/dist/cjs/{index-04d7da5a.js → index-b96d9af7.js} +213 -25
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/utrecht-article.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-badge-counter.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-badge-data.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-badge-status.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-breadcrumb.cjs.entry.js +23 -0
- package/dist/cjs/utrecht-button_2.cjs.entry.js +58 -0
- package/dist/cjs/utrecht-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/utrecht-contact-card-template.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-digid-button.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-document.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-eherkenning-logo.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-eidas-logo.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-form-field-checkbox.cjs.entry.js +34 -0
- package/dist/cjs/utrecht-form-field-description.cjs.entry.js +22 -0
- package/dist/cjs/utrecht-form-field-textarea.cjs.entry.js +34 -0
- package/dist/cjs/utrecht-form-field-textbox.cjs.entry.js +39 -0
- package/dist/cjs/utrecht-form-toggle.cjs.entry.js +49 -0
- package/dist/cjs/utrecht-heading-1.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading-2_3.cjs.entry.js +46 -0
- package/dist/cjs/utrecht-heading-4.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading-5.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading-6.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-html-content.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-icon-arrow.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-cross.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-facebook.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-filter.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-instagram.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-linkedin.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-list.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-loupe.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-twitter.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-whatsapp.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-zoomin.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-zoomout.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-logo-button.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-logo.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-page-footer.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-pagination.cjs.entry.js +38 -0
- package/dist/cjs/utrecht-separator.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-sidenav.cjs.entry.js +21 -0
- package/dist/cjs/utrecht-textbox.cjs.entry.js +39 -0
- package/dist/cjs/utrecht.cjs.js +3 -3
- package/dist/collection/alternate-lang-link/bem.js +21 -0
- package/dist/collection/alternate-lang-nav/bem.js +12 -0
- package/dist/collection/article/bem.js +6 -0
- package/dist/collection/article/{bem.css → stencil.css} +12 -1
- package/dist/collection/article/stencil.js +2 -2
- package/dist/collection/badge-counter/bem.js +7 -0
- package/dist/collection/badge-counter/{bem.css → stencil.css} +13 -0
- package/dist/collection/badge-counter/stencil.js +2 -2
- package/dist/collection/badge-data/bem.js +6 -0
- package/dist/collection/badge-data/{bem.css → stencil.css} +13 -0
- package/dist/collection/badge-data/stencil.js +2 -2
- package/dist/collection/badge-status/bem.js +7 -0
- package/dist/collection/badge-status/{bem.css → stencil.css} +18 -0
- package/dist/collection/badge-status/stencil.js +2 -2
- package/dist/collection/blockquote/bem.js +24 -0
- package/dist/collection/breadcrumb/bem.js +34 -0
- package/dist/collection/breadcrumb/stencil.css +148 -0
- package/dist/collection/breadcrumb/stencil.js +62 -0
- package/dist/collection/button/bem.js +34 -0
- package/dist/collection/button/html.js +16 -0
- package/dist/collection/button/{bem.css → stencil.css} +56 -19
- package/dist/collection/button/stencil.js +92 -4
- package/dist/collection/checkbox/bem.js +18 -0
- package/dist/collection/checkbox/stencil.css +27 -0
- package/dist/collection/checkbox/stencil.js +164 -0
- package/dist/collection/collection-manifest.json +37 -2
- package/dist/collection/digid-button/bem.js +16 -0
- package/dist/collection/digid-button/stencil.css +31 -0
- package/dist/collection/digid-button/stencil.js +41 -0
- package/dist/collection/digid-logo/stencil.css +18 -0
- package/dist/collection/digid-logo/stencil.js +23 -0
- package/dist/collection/document/{bem.css → stencil.css} +12 -1
- package/dist/collection/document/stencil.js +2 -2
- package/dist/collection/eherkenning-logo/stencil.css +18 -0
- package/dist/collection/eherkenning-logo/stencil.js +26 -0
- package/dist/collection/eidas-logo/stencil.css +18 -0
- package/dist/collection/eidas-logo/stencil.js +28 -0
- package/dist/collection/emphasis/bem.js +19 -0
- package/dist/collection/form-field-checkbox/bem.js +10 -0
- package/dist/collection/form-field-checkbox/stencil.css +76 -0
- package/dist/collection/form-field-checkbox/stencil.js +190 -0
- package/dist/collection/form-field-checkbox-group/bem.js +33 -0
- package/dist/collection/form-field-description/bem.js +14 -0
- package/dist/collection/form-field-description/stencil.css +33 -0
- package/dist/collection/form-field-description/stencil.js +44 -0
- package/dist/collection/form-field-radio/bem.js +10 -0
- package/dist/collection/form-field-radio-group/bem.js +20 -0
- package/dist/collection/form-field-textarea/stencil.css +112 -0
- package/dist/collection/form-field-textarea/stencil.js +205 -0
- package/dist/collection/form-field-textbox/stencil.css +106 -0
- package/dist/collection/form-field-textbox/stencil.js +300 -0
- package/dist/collection/form-fieldset/bem.js +10 -0
- package/dist/collection/form-label/bem.js +22 -0
- package/dist/collection/form-toggle/bem.js +47 -0
- package/dist/collection/form-toggle/stencil.css +115 -0
- package/dist/collection/form-toggle/stencil.js +149 -0
- package/dist/collection/heading/{bem.css → stencil.css} +72 -37
- package/dist/collection/heading/stencil.js +2 -2
- package/dist/collection/heading-1/bem.js +11 -0
- package/dist/collection/heading-1/stencil.css +34 -0
- package/dist/collection/heading-1/stencil.js +15 -0
- package/dist/collection/heading-2/bem.js +11 -0
- package/dist/collection/heading-2/stencil.css +34 -0
- package/dist/collection/heading-2/stencil.js +15 -0
- package/dist/collection/heading-3/bem.js +11 -0
- package/dist/collection/heading-3/stencil.css +34 -0
- package/dist/collection/heading-3/stencil.js +15 -0
- package/dist/collection/heading-4/bem.js +11 -0
- package/dist/collection/heading-4/stencil.css +34 -0
- package/dist/collection/heading-4/stencil.js +15 -0
- package/dist/collection/heading-5/bem.js +11 -0
- package/dist/collection/heading-5/stencil.css +34 -0
- package/dist/collection/heading-5/stencil.js +15 -0
- package/dist/collection/heading-6/bem.js +11 -0
- package/dist/collection/heading-6/stencil.css +34 -0
- package/dist/collection/heading-6/stencil.js +15 -0
- package/dist/collection/html-content/{html.css → stencil.css} +406 -140
- package/dist/collection/html-content/stencil.js +2 -2
- package/dist/collection/icon/arrow.stencil.js +17 -0
- package/dist/collection/icon/cross.stencil.js +17 -0
- package/dist/collection/icon/facebook.stencil.js +17 -0
- package/dist/collection/icon/filter.stencil.js +18 -0
- package/dist/collection/icon/instagram.stencil.js +19 -0
- package/dist/collection/icon/linkedin.stencil.js +18 -0
- package/dist/collection/icon/list.stencil.js +21 -0
- package/dist/collection/icon/loupe.stencil.js +17 -0
- package/dist/collection/icon/stencil.css +20 -0
- package/dist/collection/icon/twitter.stencil.js +17 -0
- package/dist/collection/icon/whatsapp.stencil.js +17 -0
- package/dist/collection/icon/zoomin.stencil.js +18 -0
- package/dist/collection/icon/zoomout.stencil.js +17 -0
- package/dist/collection/link/bem.js +38 -0
- package/dist/collection/link-list/bem.js +10 -0
- package/dist/collection/link-social/bem.js +20 -0
- package/dist/collection/logo/bem.js +33 -0
- package/dist/collection/logo/stencil.css +28 -0
- package/dist/collection/logo/stencil.js +26 -0
- package/dist/collection/logo-button/bem.js +17 -0
- package/dist/collection/logo-button/stencil.css +31 -0
- package/dist/collection/logo-button/stencil.js +41 -0
- package/dist/collection/mapcontrolbutton/bem.js +25 -0
- package/dist/collection/menulijst/bem.js +18 -0
- package/dist/collection/nav-top/bem.js +23 -0
- package/dist/collection/navigatie sidenav/bem.css +240 -0
- package/dist/collection/navigatie sidenav/bem.js +43 -0
- package/dist/collection/navigatie sidenav/stencil.js +40 -0
- package/dist/collection/navigatie topnav/bem.js +25 -0
- package/dist/collection/ordered-list/bem.js +11 -0
- package/dist/collection/page-footer/bem.js +7 -0
- package/dist/collection/page-footer/{bem.css → stencil.css} +22 -12
- package/dist/collection/page-footer/stencil.js +2 -2
- package/dist/collection/pagination/bem.js +54 -0
- package/dist/collection/pagination/stencil.css +118 -0
- package/dist/collection/pagination/stencil.js +110 -0
- package/dist/collection/paragraph/bem.js +17 -0
- package/dist/collection/paragraph/{bem.css → stencil.css} +17 -2
- package/dist/collection/paragraph/stencil.js +2 -2
- package/dist/collection/pre-heading/bem.js +15 -0
- package/dist/collection/radio-button/bem.js +18 -0
- package/dist/collection/search-bar/bem.js +15 -0
- package/dist/collection/select/bem.js +38 -0
- package/dist/collection/separator/bem.js +16 -0
- package/dist/collection/separator/{bem.css → stencil.css} +18 -4
- package/dist/collection/separator/stencil.js +2 -2
- package/dist/collection/templates/contact-card-template/stencil.css +88 -0
- package/dist/collection/templates/contact-card-template/stencil.js +25 -0
- package/dist/collection/textarea/bem.js +32 -0
- package/dist/collection/textarea/html.js +22 -0
- package/dist/collection/textbox/bem.js +34 -0
- package/dist/collection/textbox/stencil.css +70 -0
- package/dist/collection/textbox/stencil.js +297 -0
- package/dist/collection/unordered-list/bem.js +28 -0
- package/dist/custom-elements/index.d.ts +210 -0
- package/dist/custom-elements/index.js +742 -26
- package/dist/digid-button/stencil.d.ts +9 -0
- package/dist/digid-button/stencil.js +31 -0
- package/dist/digid-logo/stencil.d.ts +8 -0
- package/dist/digid-logo/stencil.js +29 -0
- package/dist/document/stencil.d.ts +3 -0
- package/dist/document/stencil.js +1 -1
- package/dist/eherkenning-logo/stencil.d.ts +8 -0
- package/dist/eherkenning-logo/stencil.js +32 -0
- package/dist/eidas-logo/stencil.d.ts +8 -0
- package/dist/eidas-logo/stencil.js +34 -0
- package/dist/esm/{index-7fbac151.js → index-26eb3bc0.js} +212 -26
- package/dist/esm/loader.js +3 -3
- package/dist/esm/utrecht-article.entry.js +3 -3
- package/dist/esm/utrecht-badge-counter.entry.js +3 -3
- package/dist/esm/utrecht-badge-data.entry.js +3 -3
- package/dist/esm/utrecht-badge-status.entry.js +3 -3
- package/dist/esm/utrecht-breadcrumb.entry.js +19 -0
- package/dist/esm/utrecht-button_2.entry.js +53 -0
- package/dist/esm/utrecht-checkbox.entry.js +28 -0
- package/dist/esm/utrecht-contact-card-template.entry.js +15 -0
- package/dist/esm/utrecht-digid-button.entry.js +15 -0
- package/dist/esm/utrecht-document.entry.js +3 -3
- package/dist/esm/utrecht-eherkenning-logo.entry.js +15 -0
- package/dist/esm/utrecht-eidas-logo.entry.js +15 -0
- package/dist/esm/utrecht-form-field-checkbox.entry.js +30 -0
- package/dist/esm/utrecht-form-field-description.entry.js +18 -0
- package/dist/esm/utrecht-form-field-textarea.entry.js +30 -0
- package/dist/esm/utrecht-form-field-textbox.entry.js +35 -0
- package/dist/esm/utrecht-form-toggle.entry.js +45 -0
- package/dist/esm/utrecht-heading-1.entry.js +15 -0
- package/dist/esm/utrecht-heading-2_3.entry.js +40 -0
- package/dist/esm/utrecht-heading-4.entry.js +15 -0
- package/dist/esm/utrecht-heading-5.entry.js +15 -0
- package/dist/esm/utrecht-heading-6.entry.js +15 -0
- package/dist/esm/utrecht-heading.entry.js +3 -3
- package/dist/esm/utrecht-html-content.entry.js +3 -3
- package/dist/esm/utrecht-icon-arrow.entry.js +15 -0
- package/dist/esm/utrecht-icon-cross.entry.js +15 -0
- package/dist/esm/utrecht-icon-facebook.entry.js +15 -0
- package/dist/esm/utrecht-icon-filter.entry.js +15 -0
- package/dist/esm/utrecht-icon-instagram.entry.js +15 -0
- package/dist/esm/utrecht-icon-linkedin.entry.js +15 -0
- package/dist/esm/utrecht-icon-list.entry.js +15 -0
- package/dist/esm/utrecht-icon-loupe.entry.js +15 -0
- package/dist/esm/utrecht-icon-twitter.entry.js +15 -0
- package/dist/esm/utrecht-icon-whatsapp.entry.js +15 -0
- package/dist/esm/utrecht-icon-zoomin.entry.js +15 -0
- package/dist/esm/utrecht-icon-zoomout.entry.js +15 -0
- package/dist/esm/utrecht-logo-button.entry.js +15 -0
- package/dist/esm/utrecht-logo.entry.js +15 -0
- package/dist/esm/utrecht-page-footer.entry.js +3 -3
- package/dist/esm/utrecht-pagination.entry.js +34 -0
- package/dist/esm/utrecht-separator.entry.js +3 -3
- package/dist/esm/utrecht-sidenav.entry.js +17 -0
- package/dist/esm/utrecht-textbox.entry.js +35 -0
- package/dist/esm/utrecht.js +3 -3
- package/dist/form-field-checkbox/stencil.d.ts +18 -0
- package/dist/form-field-checkbox/stencil.js +70 -0
- package/dist/form-field-description/stencil.d.ts +8 -0
- package/dist/form-field-description/stencil.js +33 -0
- package/dist/form-field-textarea/stencil.d.ts +18 -0
- package/dist/form-field-textarea/stencil.js +70 -0
- package/dist/form-field-textbox/stencil.d.ts +23 -0
- package/dist/form-field-textbox/stencil.js +90 -0
- package/dist/form-toggle/stencil.d.ts +14 -0
- package/dist/form-toggle/stencil.js +74 -0
- package/dist/heading/stencil.d.ts +7 -0
- package/dist/heading/stencil.js +1 -1
- package/dist/heading-1/stencil.d.ts +3 -0
- package/dist/heading-1/stencil.js +21 -0
- package/dist/heading-2/stencil.d.ts +3 -0
- package/dist/heading-2/stencil.js +21 -0
- package/dist/heading-3/stencil.d.ts +3 -0
- package/dist/heading-3/stencil.js +21 -0
- package/dist/heading-4/stencil.d.ts +3 -0
- package/dist/heading-4/stencil.js +21 -0
- package/dist/heading-5/stencil.d.ts +3 -0
- package/dist/heading-5/stencil.js +21 -0
- package/dist/heading-6/stencil.d.ts +3 -0
- package/dist/heading-6/stencil.js +21 -0
- package/dist/html-content/stencil.d.ts +3 -0
- package/dist/html-content/stencil.js +1 -1
- package/dist/icon/arrow.stencil.d.ts +3 -0
- package/dist/icon/arrow.stencil.js +23 -0
- package/dist/icon/cross.stencil.d.ts +3 -0
- package/dist/icon/cross.stencil.js +23 -0
- package/dist/icon/facebook.stencil.d.ts +3 -0
- package/dist/icon/facebook.stencil.js +23 -0
- package/dist/icon/filter.stencil.d.ts +3 -0
- package/dist/icon/filter.stencil.js +24 -0
- package/dist/icon/instagram.stencil.d.ts +3 -0
- package/dist/icon/instagram.stencil.js +25 -0
- package/dist/icon/linkedin.stencil.d.ts +3 -0
- package/dist/icon/linkedin.stencil.js +24 -0
- package/dist/icon/list.stencil.d.ts +3 -0
- package/dist/icon/list.stencil.js +27 -0
- package/dist/icon/loupe.stencil.d.ts +3 -0
- package/dist/icon/loupe.stencil.js +23 -0
- package/dist/icon/twitter.stencil.d.ts +3 -0
- package/dist/icon/twitter.stencil.js +23 -0
- package/dist/icon/whatsapp.stencil.d.ts +3 -0
- package/dist/icon/whatsapp.stencil.js +23 -0
- package/dist/icon/zoomin.stencil.d.ts +3 -0
- package/dist/icon/zoomin.stencil.js +24 -0
- package/dist/icon/zoomout.stencil.d.ts +3 -0
- package/dist/icon/zoomout.stencil.js +23 -0
- package/dist/logo/stencil.d.ts +7 -0
- package/dist/logo/stencil.js +32 -0
- package/dist/logo-button/stencil.d.ts +9 -0
- package/dist/logo-button/stencil.js +31 -0
- package/dist/navigatie sidenav/stencil.d.ts +4 -0
- package/dist/navigatie sidenav/stencil.js +30 -0
- package/dist/page-footer/stencil.d.ts +7 -0
- package/dist/page-footer/stencil.js +1 -1
- package/dist/pagination/stencil.d.ts +11 -0
- package/dist/pagination/stencil.js +58 -0
- package/dist/paragraph/stencil.d.ts +7 -0
- package/dist/paragraph/stencil.js +1 -1
- package/dist/separator/stencil.d.ts +3 -0
- package/dist/separator/stencil.js +1 -1
- package/dist/templates/contact-card-template/stencil.d.ts +3 -0
- package/dist/templates/contact-card-template/stencil.js +31 -0
- package/dist/textbox/stencil.d.ts +23 -0
- package/dist/textbox/stencil.js +87 -0
- package/dist/types/breadcrumb/stencil.d.ts +5 -0
- package/dist/types/button/stencil.d.ts +6 -0
- package/dist/types/checkbox/stencil.d.ts +16 -0
- package/dist/types/components.d.ts +583 -0
- package/dist/types/digid-button/stencil.d.ts +9 -0
- package/dist/types/digid-logo/stencil.d.ts +8 -0
- package/dist/types/eherkenning-logo/stencil.d.ts +8 -0
- package/dist/types/eidas-logo/stencil.d.ts +8 -0
- package/dist/types/form-field-checkbox/stencil.d.ts +18 -0
- package/dist/types/form-field-description/stencil.d.ts +8 -0
- package/dist/types/form-field-textarea/stencil.d.ts +18 -0
- package/dist/types/form-field-textbox/stencil.d.ts +23 -0
- package/dist/types/form-toggle/stencil.d.ts +14 -0
- package/dist/types/heading-1/stencil.d.ts +3 -0
- package/dist/types/heading-2/stencil.d.ts +3 -0
- package/dist/types/heading-3/stencil.d.ts +3 -0
- package/dist/types/heading-4/stencil.d.ts +3 -0
- package/dist/types/heading-5/stencil.d.ts +3 -0
- package/dist/types/heading-6/stencil.d.ts +3 -0
- package/dist/types/icon/arrow.stencil.d.ts +3 -0
- package/dist/types/icon/cross.stencil.d.ts +3 -0
- package/dist/types/icon/facebook.stencil.d.ts +3 -0
- package/dist/types/icon/filter.stencil.d.ts +3 -0
- package/dist/types/icon/instagram.stencil.d.ts +3 -0
- package/dist/types/icon/linkedin.stencil.d.ts +3 -0
- package/dist/types/icon/list.stencil.d.ts +3 -0
- package/dist/types/icon/loupe.stencil.d.ts +3 -0
- package/dist/types/icon/twitter.stencil.d.ts +3 -0
- package/dist/types/icon/whatsapp.stencil.d.ts +3 -0
- package/dist/types/icon/zoomin.stencil.d.ts +3 -0
- package/dist/types/icon/zoomout.stencil.d.ts +3 -0
- package/dist/types/logo/stencil.d.ts +7 -0
- package/dist/types/logo-button/stencil.d.ts +9 -0
- package/dist/types/navigatie sidenav/stencil.d.ts +4 -0
- package/dist/types/pagination/stencil.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +183 -182
- package/dist/types/templates/contact-card-template/stencil.d.ts +3 -0
- package/dist/types/textbox/stencil.d.ts +23 -0
- package/dist/utrecht/p-023706f2.entry.js +1 -0
- package/dist/utrecht/p-03fb5385.entry.js +1 -0
- package/dist/utrecht/p-0b5df266.entry.js +1 -0
- package/dist/utrecht/p-13e4e5e9.entry.js +1 -0
- package/dist/utrecht/p-17bfa2b7.js +1 -0
- package/dist/utrecht/p-201a5ed5.entry.js +1 -0
- package/dist/utrecht/p-22ccf8ac.entry.js +1 -0
- package/dist/utrecht/p-307b38ed.entry.js +1 -0
- package/dist/utrecht/p-3ba93737.entry.js +1 -0
- package/dist/utrecht/p-3f4d1a2b.entry.js +1 -0
- package/dist/utrecht/p-48e2e522.entry.js +1 -0
- package/dist/utrecht/p-56879b89.entry.js +1 -0
- package/dist/utrecht/p-5a8cd573.entry.js +1 -0
- package/dist/utrecht/p-5b773973.entry.js +1 -0
- package/dist/utrecht/p-6a91f1ce.entry.js +1 -0
- package/dist/utrecht/p-7155ba3f.entry.js +1 -0
- package/dist/utrecht/p-75a89b75.entry.js +1 -0
- package/dist/utrecht/p-75f9997b.entry.js +1 -0
- package/dist/utrecht/p-7d114163.entry.js +1 -0
- package/dist/utrecht/p-837a6fdf.entry.js +1 -0
- package/dist/utrecht/p-8b7d7a03.entry.js +1 -0
- package/dist/utrecht/p-929780fe.entry.js +1 -0
- package/dist/utrecht/p-946a03ad.entry.js +1 -0
- package/dist/utrecht/p-979138fb.entry.js +1 -0
- package/dist/utrecht/p-a7272f16.entry.js +1 -0
- package/dist/utrecht/p-a8f492ae.entry.js +1 -0
- package/dist/utrecht/p-b1425686.entry.js +1 -0
- package/dist/utrecht/p-b4185f2c.entry.js +1 -0
- package/dist/utrecht/p-bb7ee7c6.entry.js +1 -0
- package/dist/utrecht/p-c2699171.entry.js +1 -0
- package/dist/utrecht/p-c3c6dd79.entry.js +1 -0
- package/dist/utrecht/p-c69cf3b0.entry.js +1 -0
- package/dist/utrecht/p-ca5a1b8b.entry.js +1 -0
- package/dist/utrecht/p-d0a14420.entry.js +1 -0
- package/dist/utrecht/p-d27583eb.entry.js +1 -0
- package/dist/utrecht/p-d2a8967c.entry.js +1 -0
- package/dist/utrecht/p-d8528c00.entry.js +1 -0
- package/dist/utrecht/p-d9794f59.entry.js +1 -0
- package/dist/utrecht/p-df90175a.entry.js +1 -0
- package/dist/utrecht/{p-059d8057.entry.js → p-e9ed28bc.entry.js} +1 -1
- package/dist/utrecht/p-ea287a6a.entry.js +1 -0
- package/dist/utrecht/p-eac56ee3.entry.js +1 -0
- package/dist/utrecht/p-f71978aa.entry.js +1 -0
- package/dist/utrecht/p-f8291871.entry.js +1 -0
- package/dist/utrecht/utrecht.esm.js +1 -1
- package/package.json +15 -7
- package/dist/cjs/utrecht-button.cjs.entry.js +0 -20
- package/dist/cjs/utrecht-paragraph.cjs.entry.js +0 -20
- package/dist/esm/utrecht-button.entry.js +0 -16
- package/dist/esm/utrecht-paragraph.entry.js +0 -16
- package/dist/utrecht/p-031700e7.entry.js +0 -1
- package/dist/utrecht/p-031d1e42.entry.js +0 -1
- package/dist/utrecht/p-26a456e1.entry.js +0 -1
- package/dist/utrecht/p-487bef55.entry.js +0 -1
- package/dist/utrecht/p-5eab253d.entry.js +0 -1
- package/dist/utrecht/p-6202d2cd.entry.js +0 -1
- package/dist/utrecht/p-634c1974.js +0 -1
- package/dist/utrecht/p-79c79abf.entry.js +0 -1
- package/dist/utrecht/p-d80edc6f.entry.js +0 -1
- package/dist/utrecht/p-dbb6d147.entry.js +0 -1
- package/dist/utrecht/p-dd661d2b.entry.js +0 -1
|
@@ -35,8 +35,8 @@ const doc = win.document || { head: {} };
|
|
|
35
35
|
const plt = {
|
|
36
36
|
$flags$: 0,
|
|
37
37
|
$resourcesUrl$: '',
|
|
38
|
-
jmp: h => h(),
|
|
39
|
-
raf: h => requestAnimationFrame(h),
|
|
38
|
+
jmp: (h) => h(),
|
|
39
|
+
raf: (h) => requestAnimationFrame(h),
|
|
40
40
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
41
41
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
42
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -45,7 +45,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
45
45
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
46
46
|
try {
|
|
47
47
|
new CSSStyleSheet();
|
|
48
|
-
return typeof
|
|
48
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
49
49
|
}
|
|
50
50
|
catch (e) { }
|
|
51
51
|
return false;
|
|
@@ -139,6 +139,11 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
139
139
|
* Don't add values to these!!
|
|
140
140
|
*/
|
|
141
141
|
const EMPTY_OBJ = {};
|
|
142
|
+
/**
|
|
143
|
+
* Namespaces
|
|
144
|
+
*/
|
|
145
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
146
|
+
const HTML_NS = 'http://www.w3.org/1999/xhtml';
|
|
142
147
|
const isDef = (v) => v != null;
|
|
143
148
|
const isComplexType = (o) => {
|
|
144
149
|
// https://jsperf.com/typeof-fn-object/5
|
|
@@ -158,6 +163,7 @@ const isComplexType = (o) => {
|
|
|
158
163
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
159
164
|
const h = (nodeName, vnodeData, ...children) => {
|
|
160
165
|
let child = null;
|
|
166
|
+
let key = null;
|
|
161
167
|
let slotName = null;
|
|
162
168
|
let simple = false;
|
|
163
169
|
let lastSimple = false;
|
|
@@ -186,6 +192,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
186
192
|
};
|
|
187
193
|
walk(children);
|
|
188
194
|
if (vnodeData) {
|
|
195
|
+
// normalize class / classname attributes
|
|
196
|
+
if (vnodeData.key) {
|
|
197
|
+
key = vnodeData.key;
|
|
198
|
+
}
|
|
189
199
|
if (vnodeData.name) {
|
|
190
200
|
slotName = vnodeData.name;
|
|
191
201
|
}
|
|
@@ -196,7 +206,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
196
206
|
typeof classData !== 'object'
|
|
197
207
|
? classData
|
|
198
208
|
: Object.keys(classData)
|
|
199
|
-
.filter(k => classData[k])
|
|
209
|
+
.filter((k) => classData[k])
|
|
200
210
|
.join(' ');
|
|
201
211
|
}
|
|
202
212
|
}
|
|
@@ -206,6 +216,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
206
216
|
if (vNodeChildren.length > 0) {
|
|
207
217
|
vnode.$children$ = vNodeChildren;
|
|
208
218
|
}
|
|
219
|
+
{
|
|
220
|
+
vnode.$key$ = key;
|
|
221
|
+
}
|
|
209
222
|
{
|
|
210
223
|
vnode.$name$ = slotName;
|
|
211
224
|
}
|
|
@@ -222,6 +235,9 @@ const newVNode = (tag, text) => {
|
|
|
222
235
|
{
|
|
223
236
|
vnode.$attrs$ = null;
|
|
224
237
|
}
|
|
238
|
+
{
|
|
239
|
+
vnode.$key$ = null;
|
|
240
|
+
}
|
|
225
241
|
{
|
|
226
242
|
vnode.$name$ = null;
|
|
227
243
|
}
|
|
@@ -240,13 +256,54 @@ const isHost = (node) => node && node.$tag$ === Host;
|
|
|
240
256
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
241
257
|
if (oldValue !== newValue) {
|
|
242
258
|
let isProp = isMemberInElement(elm, memberName);
|
|
243
|
-
memberName.toLowerCase();
|
|
259
|
+
let ln = memberName.toLowerCase();
|
|
244
260
|
if (memberName === 'class') {
|
|
245
261
|
const classList = elm.classList;
|
|
246
262
|
const oldClasses = parseClassList(oldValue);
|
|
247
263
|
const newClasses = parseClassList(newValue);
|
|
248
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
249
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
264
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
265
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
266
|
+
}
|
|
267
|
+
else if (memberName === 'key')
|
|
268
|
+
;
|
|
269
|
+
else if ((!isProp ) &&
|
|
270
|
+
memberName[0] === 'o' &&
|
|
271
|
+
memberName[1] === 'n') {
|
|
272
|
+
// Event Handlers
|
|
273
|
+
// so if the member name starts with "on" and the 3rd characters is
|
|
274
|
+
// a capital letter, and it's not already a member on the element,
|
|
275
|
+
// then we're assuming it's an event listener
|
|
276
|
+
if (memberName[2] === '-') {
|
|
277
|
+
// on- prefixed events
|
|
278
|
+
// allows to be explicit about the dom event to listen without any magic
|
|
279
|
+
// under the hood:
|
|
280
|
+
// <my-cmp on-click> // listens for "click"
|
|
281
|
+
// <my-cmp on-Click> // listens for "Click"
|
|
282
|
+
// <my-cmp on-ionChange> // listens for "ionChange"
|
|
283
|
+
// <my-cmp on-EVENTS> // listens for "EVENTS"
|
|
284
|
+
memberName = memberName.slice(3);
|
|
285
|
+
}
|
|
286
|
+
else if (isMemberInElement(win, ln)) {
|
|
287
|
+
// standard event
|
|
288
|
+
// the JSX attribute could have been "onMouseOver" and the
|
|
289
|
+
// member name "onmouseover" is on the window's prototype
|
|
290
|
+
// so let's add the listener "mouseover", which is all lowercased
|
|
291
|
+
memberName = ln.slice(2);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
// custom event
|
|
295
|
+
// the JSX attribute could have been "onMyCustomEvent"
|
|
296
|
+
// so let's trim off the "on" prefix and lowercase the first character
|
|
297
|
+
// and add the listener "myCustomEvent"
|
|
298
|
+
// except for the first character, we keep the event name case
|
|
299
|
+
memberName = ln[2] + memberName.slice(3);
|
|
300
|
+
}
|
|
301
|
+
if (oldValue) {
|
|
302
|
+
plt.rel(elm, memberName, oldValue, false);
|
|
303
|
+
}
|
|
304
|
+
if (newValue) {
|
|
305
|
+
plt.ael(elm, memberName, newValue, false);
|
|
306
|
+
}
|
|
250
307
|
}
|
|
251
308
|
else {
|
|
252
309
|
// Set property if it exists and it's not a SVG
|
|
@@ -292,7 +349,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
292
349
|
// if the element passed in is a shadow root, which is a document fragment
|
|
293
350
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
294
351
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
295
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
352
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
353
|
+
? newVnode.$elm$.host
|
|
354
|
+
: newVnode.$elm$;
|
|
296
355
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
297
356
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
298
357
|
{
|
|
@@ -336,11 +395,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
336
395
|
}
|
|
337
396
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
338
397
|
// create a slot reference node
|
|
339
|
-
elm = newVNode.$elm$ =
|
|
398
|
+
elm = newVNode.$elm$ =
|
|
399
|
+
doc.createTextNode('');
|
|
340
400
|
}
|
|
341
401
|
else {
|
|
402
|
+
if (!isSvgMode) {
|
|
403
|
+
isSvgMode = newVNode.$tag$ === 'svg';
|
|
404
|
+
}
|
|
342
405
|
// create element
|
|
343
|
-
elm = newVNode.$elm$ = (doc.
|
|
406
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
407
|
+
? 'slot-fb'
|
|
408
|
+
: newVNode.$tag$)
|
|
409
|
+
);
|
|
410
|
+
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
411
|
+
isSvgMode = false;
|
|
412
|
+
}
|
|
344
413
|
// add css classes, attrs, props, listeners, etc.
|
|
345
414
|
{
|
|
346
415
|
updateElement(null, newVNode, isSvgMode);
|
|
@@ -361,6 +430,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
361
430
|
}
|
|
362
431
|
}
|
|
363
432
|
}
|
|
433
|
+
{
|
|
434
|
+
if (newVNode.$tag$ === 'svg') {
|
|
435
|
+
// Only reset the SVG context when we're exiting <svg> element
|
|
436
|
+
isSvgMode = false;
|
|
437
|
+
}
|
|
438
|
+
else if (elm.tagName === 'foreignObject') {
|
|
439
|
+
// Reenter SVG context when we're exiting <foreignObject> element
|
|
440
|
+
isSvgMode = true;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
364
443
|
}
|
|
365
444
|
{
|
|
366
445
|
elm['s-hn'] = hostTagName;
|
|
@@ -448,6 +527,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
448
527
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
449
528
|
let oldStartIdx = 0;
|
|
450
529
|
let newStartIdx = 0;
|
|
530
|
+
let idxInOld = 0;
|
|
531
|
+
let i = 0;
|
|
451
532
|
let oldEndIdx = oldCh.length - 1;
|
|
452
533
|
let oldStartVnode = oldCh[0];
|
|
453
534
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -455,6 +536,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
455
536
|
let newStartVnode = newCh[0];
|
|
456
537
|
let newEndVnode = newCh[newEndIdx];
|
|
457
538
|
let node;
|
|
539
|
+
let elmToMove;
|
|
458
540
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
459
541
|
if (oldStartVnode == null) {
|
|
460
542
|
// Vnode might have been moved left
|
|
@@ -500,7 +582,29 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
500
582
|
newStartVnode = newCh[++newStartIdx];
|
|
501
583
|
}
|
|
502
584
|
else {
|
|
585
|
+
// createKeyToOldIdx
|
|
586
|
+
idxInOld = -1;
|
|
503
587
|
{
|
|
588
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
589
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
590
|
+
idxInOld = i;
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
if (idxInOld >= 0) {
|
|
596
|
+
elmToMove = oldCh[idxInOld];
|
|
597
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
598
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
patch(elmToMove, newStartVnode);
|
|
602
|
+
oldCh[idxInOld] = undefined;
|
|
603
|
+
node = elmToMove.$elm$;
|
|
604
|
+
}
|
|
605
|
+
newStartVnode = newCh[++newStartIdx];
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
504
608
|
// new element
|
|
505
609
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
506
610
|
newStartVnode = newCh[++newStartIdx];
|
|
@@ -526,7 +630,9 @@ const isSameVnode = (vnode1, vnode2) => {
|
|
|
526
630
|
if (vnode1.$tag$ === 'slot') {
|
|
527
631
|
return vnode1.$name$ === vnode2.$name$;
|
|
528
632
|
}
|
|
529
|
-
|
|
633
|
+
{
|
|
634
|
+
return vnode1.$key$ === vnode2.$key$;
|
|
635
|
+
}
|
|
530
636
|
}
|
|
531
637
|
return false;
|
|
532
638
|
};
|
|
@@ -546,6 +652,11 @@ const patch = (oldVNode, newVNode) => {
|
|
|
546
652
|
const text = newVNode.$text$;
|
|
547
653
|
let defaultHolder;
|
|
548
654
|
if (text === null) {
|
|
655
|
+
{
|
|
656
|
+
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
657
|
+
// only add this to the when the compiler sees we're using an svg somewhere
|
|
658
|
+
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
659
|
+
}
|
|
549
660
|
// element node
|
|
550
661
|
{
|
|
551
662
|
if (tag === 'slot')
|
|
@@ -574,6 +685,9 @@ const patch = (oldVNode, newVNode) => {
|
|
|
574
685
|
// no new child vnodes, but there are old child vnodes to remove
|
|
575
686
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
576
687
|
}
|
|
688
|
+
if (isSvgMode && tag === 'svg') {
|
|
689
|
+
isSvgMode = false;
|
|
690
|
+
}
|
|
577
691
|
}
|
|
578
692
|
else if ((defaultHolder = elm['s-cr'])) {
|
|
579
693
|
// this element has slotted content
|
|
@@ -657,7 +771,7 @@ const relocateSlotContent = (elm) => {
|
|
|
657
771
|
// that is suppose to always represent the original content location
|
|
658
772
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
659
773
|
// it's possible we've already decided to relocate this node
|
|
660
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
774
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
661
775
|
// made some changes to slots
|
|
662
776
|
// let's make sure we also double check
|
|
663
777
|
// fallbacks are correctly hidden or shown
|
|
@@ -676,9 +790,9 @@ const relocateSlotContent = (elm) => {
|
|
|
676
790
|
});
|
|
677
791
|
}
|
|
678
792
|
if (node['s-sr']) {
|
|
679
|
-
relocateNodes.map(relocateNode => {
|
|
793
|
+
relocateNodes.map((relocateNode) => {
|
|
680
794
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
681
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
795
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
682
796
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
683
797
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
684
798
|
}
|
|
@@ -686,7 +800,7 @@ const relocateSlotContent = (elm) => {
|
|
|
686
800
|
});
|
|
687
801
|
}
|
|
688
802
|
}
|
|
689
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
803
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
690
804
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
691
805
|
// if we never find a home for this element then we'll need to hide it
|
|
692
806
|
relocateNodes.push({
|
|
@@ -722,6 +836,10 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
722
836
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
723
837
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
724
838
|
hostTagName = hostElm.tagName;
|
|
839
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
840
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
841
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
842
|
+
}
|
|
725
843
|
rootVnode.$tag$ = null;
|
|
726
844
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
727
845
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -756,7 +874,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
756
874
|
if (!nodeToRelocate['s-ol']) {
|
|
757
875
|
// add a reference node marking this node's original location
|
|
758
876
|
// keep a reference to this node for later lookups
|
|
759
|
-
orgLocationNode =
|
|
877
|
+
orgLocationNode =
|
|
878
|
+
doc.createTextNode('');
|
|
760
879
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
761
880
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
762
881
|
}
|
|
@@ -780,7 +899,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
780
899
|
}
|
|
781
900
|
}
|
|
782
901
|
}
|
|
783
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
902
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
903
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
784
904
|
// we've checked that it's worth while to relocate
|
|
785
905
|
// since that the node to relocate
|
|
786
906
|
// has a different next sibling or parent relocated
|
|
@@ -812,6 +932,27 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
812
932
|
relocateNodes.length = 0;
|
|
813
933
|
}
|
|
814
934
|
};
|
|
935
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
936
|
+
const createEvent = (ref, name, flags) => {
|
|
937
|
+
const elm = getElement(ref);
|
|
938
|
+
return {
|
|
939
|
+
emit: (detail) => {
|
|
940
|
+
return emitEvent(elm, name, {
|
|
941
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
942
|
+
composed: !!(flags & 2 /* Composed */),
|
|
943
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
944
|
+
detail,
|
|
945
|
+
});
|
|
946
|
+
},
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
951
|
+
* @param elm the target of the Event
|
|
952
|
+
* @param name the name to give the custom Event
|
|
953
|
+
* @param opts options for configuring a custom Event
|
|
954
|
+
* @returns the custom Event
|
|
955
|
+
*/
|
|
815
956
|
const emitEvent = (elm, name, opts) => {
|
|
816
957
|
const ev = plt.ce(name, opts);
|
|
817
958
|
elm.dispatchEvent(ev);
|
|
@@ -819,7 +960,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
819
960
|
};
|
|
820
961
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
821
962
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
822
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
963
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
823
964
|
}
|
|
824
965
|
};
|
|
825
966
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -861,7 +1002,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
861
1002
|
// ok, so turns out there are some child host elements
|
|
862
1003
|
// waiting on this parent element to load
|
|
863
1004
|
// let's fire off all update callbacks waiting
|
|
864
|
-
rc.map(cb => cb());
|
|
1005
|
+
rc.map((cb) => cb());
|
|
865
1006
|
elm['s-rc'] = undefined;
|
|
866
1007
|
}
|
|
867
1008
|
endRender();
|
|
@@ -953,7 +1094,8 @@ const appDidLoad = (who) => {
|
|
|
953
1094
|
const then = (promise, thenFn) => {
|
|
954
1095
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
955
1096
|
};
|
|
956
|
-
const addHydratedFlag = (elm) =>
|
|
1097
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1098
|
+
;
|
|
957
1099
|
const parsePropertyValue = (propValue, propType) => {
|
|
958
1100
|
// ensure this value is of the correct prop type
|
|
959
1101
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1007,7 +1149,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1007
1149
|
const members = Object.entries(cmpMeta.$members$);
|
|
1008
1150
|
const prototype = Cstr.prototype;
|
|
1009
1151
|
members.map(([memberName, [memberFlags]]) => {
|
|
1010
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1152
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1153
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1011
1154
|
// proxyComponent - prop
|
|
1012
1155
|
Object.defineProperty(prototype, memberName, {
|
|
1013
1156
|
get() {
|
|
@@ -1028,6 +1171,43 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1028
1171
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1029
1172
|
plt.jmp(() => {
|
|
1030
1173
|
const propName = attrNameToPropName.get(attrName);
|
|
1174
|
+
// In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
|
|
1175
|
+
// in the case where an attribute was set inline.
|
|
1176
|
+
// ```html
|
|
1177
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1178
|
+
// ```
|
|
1179
|
+
//
|
|
1180
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then programatically
|
|
1181
|
+
// changes it before it has been upgraded as shown below:
|
|
1182
|
+
//
|
|
1183
|
+
// ```html
|
|
1184
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1185
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1186
|
+
// <script>
|
|
1187
|
+
// // grab non-upgraded component
|
|
1188
|
+
// el = document.querySelector("#test");
|
|
1189
|
+
// el.someAttribute = "another-value";
|
|
1190
|
+
// // upgrade component
|
|
1191
|
+
// cutsomElements.define('my-component', MyComponent);
|
|
1192
|
+
// </script>
|
|
1193
|
+
// ```
|
|
1194
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1195
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1196
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1197
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
|
|
1198
|
+
//
|
|
1199
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1200
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1201
|
+
//
|
|
1202
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1203
|
+
//
|
|
1204
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1205
|
+
// properties here given that this goes against best practices outlined here
|
|
1206
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1207
|
+
if (this.hasOwnProperty(propName)) {
|
|
1208
|
+
newValue = this[propName];
|
|
1209
|
+
delete this[propName];
|
|
1210
|
+
}
|
|
1031
1211
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1032
1212
|
});
|
|
1033
1213
|
};
|
|
@@ -1038,6 +1218,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1038
1218
|
.map(([propName, m]) => {
|
|
1039
1219
|
const attrName = m[1] || propName;
|
|
1040
1220
|
attrNameToPropName.set(attrName, propName);
|
|
1221
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1222
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1223
|
+
}
|
|
1041
1224
|
return attrName;
|
|
1042
1225
|
});
|
|
1043
1226
|
}
|
|
@@ -1192,7 +1375,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1192
1375
|
let isBootstrapping = true;
|
|
1193
1376
|
Object.assign(plt, options);
|
|
1194
1377
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1195
|
-
lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
|
|
1378
|
+
lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
|
|
1196
1379
|
const cmpMeta = {
|
|
1197
1380
|
$flags$: compactMeta[0],
|
|
1198
1381
|
$tagName$: compactMeta[1],
|
|
@@ -1202,6 +1385,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1202
1385
|
{
|
|
1203
1386
|
cmpMeta.$members$ = compactMeta[2];
|
|
1204
1387
|
}
|
|
1388
|
+
{
|
|
1389
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1390
|
+
}
|
|
1205
1391
|
const tagName = cmpMeta.$tagName$;
|
|
1206
1392
|
const HostElement = class extends HTMLElement {
|
|
1207
1393
|
// StencilLazyHost
|
|
@@ -1256,7 +1442,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1256
1442
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1257
1443
|
isBootstrapping = false;
|
|
1258
1444
|
if (deferredConnectedCallbacks.length) {
|
|
1259
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1445
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1260
1446
|
}
|
|
1261
1447
|
else {
|
|
1262
1448
|
{
|
|
@@ -1277,7 +1463,7 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1277
1463
|
$instanceValues$: new Map(),
|
|
1278
1464
|
};
|
|
1279
1465
|
{
|
|
1280
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1466
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1281
1467
|
elm['s-p'] = [];
|
|
1282
1468
|
elm['s-rc'] = [];
|
|
1283
1469
|
}
|
|
@@ -1298,7 +1484,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1298
1484
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1299
1485
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1300
1486
|
/* webpackMode: "lazy" */
|
|
1301
|
-
`./${bundleId}.entry.js${''}`)); }).then(importedModule => {
|
|
1487
|
+
`./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
|
|
1302
1488
|
{
|
|
1303
1489
|
cmpModules.set(bundleId, importedModule);
|
|
1304
1490
|
}
|
|
@@ -1350,6 +1536,8 @@ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
|
1350
1536
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1351
1537
|
|
|
1352
1538
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1539
|
+
exports.createEvent = createEvent;
|
|
1540
|
+
exports.getElement = getElement;
|
|
1353
1541
|
exports.h = h;
|
|
1354
1542
|
exports.promiseResolve = promiseResolve;
|
|
1355
1543
|
exports.registerInstance = registerInstance;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b96d9af7.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.8.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["utrecht-article.cjs",[[1,"utrecht-article"]]],["utrecht-badge-counter.cjs",[[1,"utrecht-badge-counter",{"value":[2],"max":[2],"locale":[1]}]]],["utrecht-badge-data.cjs",[[1,"utrecht-badge-data"]]],["utrecht-badge-status.cjs",[[1,"utrecht-badge-status",{"status":[1]}]]],["utrecht-
|
|
17
|
+
return index.bootstrapLazy([["utrecht-contact-card-template.cjs",[[1,"utrecht-contact-card-template"]]],["utrecht-digid-button.cjs",[[1,"utrecht-digid-button",{"type":[1]}]]],["utrecht-logo-button.cjs",[[1,"utrecht-logo-button",{"type":[1]}]]],["utrecht-article.cjs",[[1,"utrecht-article"]]],["utrecht-badge-counter.cjs",[[1,"utrecht-badge-counter",{"value":[2],"max":[2],"locale":[1]}]]],["utrecht-badge-data.cjs",[[1,"utrecht-badge-data"]]],["utrecht-badge-status.cjs",[[1,"utrecht-badge-status",{"status":[1]}]]],["utrecht-breadcrumb.cjs",[[1,"utrecht-breadcrumb",{"json":[1],"variant":[1]}]]],["utrecht-checkbox.cjs",[[1,"utrecht-checkbox",{"disabled":[516],"readOnly":[516,"readonly"],"checked":[4],"value":[1]}]]],["utrecht-document.cjs",[[1,"utrecht-document"]]],["utrecht-eherkenning-logo.cjs",[[1,"utrecht-eherkenning-logo"]]],["utrecht-eidas-logo.cjs",[[1,"utrecht-eidas-logo"]]],["utrecht-form-field-checkbox.cjs",[[1,"utrecht-form-field-checkbox",{"label":[4],"disabled":[516],"checked":[516],"invalid":[516],"required":[516],"value":[32]}]]],["utrecht-form-field-description.cjs",[[1,"utrecht-form-field-description",{"status":[513]}]]],["utrecht-form-field-textarea.cjs",[[1,"utrecht-form-field-textarea",{"disabled":[516],"invalid":[516],"readOnly":[516,"readonly"],"placeholder":[1],"required":[516],"value":[1]}]]],["utrecht-form-field-textbox.cjs",[[1,"utrecht-form-field-textbox",{"autoComplete":[513,"autocomplete"],"disabled":[516],"invalid":[516],"min":[1],"max":[1],"pattern":[1],"placeholder":[1],"readOnly":[516,"readonly"],"required":[516],"type":[513],"value":[1]}]]],["utrecht-form-toggle.cjs",[[1,"utrecht-form-toggle",{"disabled":[516],"checked":[516]}]]],["utrecht-heading.cjs",[[1,"utrecht-heading",{"level":[2]}]]],["utrecht-heading-1.cjs",[[1,"utrecht-heading-1"]]],["utrecht-heading-4.cjs",[[1,"utrecht-heading-4"]]],["utrecht-heading-5.cjs",[[1,"utrecht-heading-5"]]],["utrecht-heading-6.cjs",[[1,"utrecht-heading-6"]]],["utrecht-html-content.cjs",[[4,"utrecht-html-content"]]],["utrecht-icon-arrow.cjs",[[1,"utrecht-icon-arrow"]]],["utrecht-icon-cross.cjs",[[1,"utrecht-icon-cross"]]],["utrecht-icon-facebook.cjs",[[1,"utrecht-icon-facebook"]]],["utrecht-icon-filter.cjs",[[1,"utrecht-icon-filter"]]],["utrecht-icon-instagram.cjs",[[1,"utrecht-icon-instagram"]]],["utrecht-icon-linkedin.cjs",[[1,"utrecht-icon-linkedin"]]],["utrecht-icon-list.cjs",[[1,"utrecht-icon-list"]]],["utrecht-icon-loupe.cjs",[[1,"utrecht-icon-loupe"]]],["utrecht-icon-twitter.cjs",[[1,"utrecht-icon-twitter"]]],["utrecht-icon-whatsapp.cjs",[[1,"utrecht-icon-whatsapp"]]],["utrecht-icon-zoomin.cjs",[[1,"utrecht-icon-zoomin"]]],["utrecht-icon-zoomout.cjs",[[1,"utrecht-icon-zoomout"]]],["utrecht-logo.cjs",[[1,"utrecht-logo"]]],["utrecht-page-footer.cjs",[[1,"utrecht-page-footer"]]],["utrecht-pagination.cjs",[[1,"utrecht-pagination",{"links":[1],"next":[1],"prev":[1],"currentIndex":[2,"current-index"]}]]],["utrecht-separator.cjs",[[1,"utrecht-separator"]]],["utrecht-sidenav.cjs",[[1,"utrecht-sidenav",{"json":[1]}]]],["utrecht-textbox.cjs",[[1,"utrecht-textbox",{"autoComplete":[513,"autocomplete"],"disabled":[516],"invalid":[516],"min":[1],"max":[1],"pattern":[1],"placeholder":[1],"readOnly":[516,"readonly"],"required":[516],"type":[513],"value":[1]}]]],["utrecht-heading-2_3.cjs",[[1,"utrecht-heading-2"],[1,"utrecht-heading-3"],[1,"utrecht-paragraph",{"lead":[4]}]]],["utrecht-button_2.cjs",[[1,"utrecht-button",{"busy":[4],"disabled":[4],"type":[1]}],[1,"utrecht-digid-logo"]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b96d9af7.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const stencilCss = ".utrecht-article{max-inline-size:var(--utrecht-article-max-inline-size)}:host{display:block}:host([hidden]){display:none !important}";
|
|
8
8
|
|
|
9
9
|
const Article = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const Article = class {
|
|
|
14
14
|
return (index.h("article", { class: "utrecht-article" }, index.h("slot", null)));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
Article.style =
|
|
17
|
+
Article.style = stencilCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_article = Article;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b96d9af7.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const stencilCss = ".utrecht-badge{background-color:var(--utrecht-badge-background-color, black);border-radius:var(--utrecht-badge-border-radius, 0.5ch);color:var(--utrecht-badge-color, white);display:inline-block;font-family:var(--utrecht-document-font-family, sans-serif);font-size:var(--utrecht-badge-font-size, inherit);font-style:normal;font-weight:var(--utrecht-badge-font-weight, bold);padding-block-end:var(--utrecht-badge-padding-block, 0.5ex);padding-block-start:var(--utrecht-badge-padding-block, 0.5ex);padding-inline-end:var(--utrecht-badge-padding-inline, 0.5ch);padding-inline-start:var(--utrecht-badge-padding-inline, 0.5ch);text-decoration:none;}.utrecht-badge-counter{background-color:var(--utrecht-badge-counter-background-color, var(--utrecht-badge-background-color, black));border-radius:var(--utrecht-badge-counter-border-radius, var(--utrecht-badge-border-radius, 0.5ch));color:var(--utrecht-badge-counter-color, var(--utrecht-badge-color, white));display:inline-block;font-family:var(--utrecht-document-font-family, sans-serif);font-style:normal;font-weight:var(--utrecht-badge-counter-font-weight, var(--utrecht-badge-font-weight, bold));padding-block-end:var(--utrecht-badge-counter-padding-block, var(--utrecht-badge-padding-block, 0.5ex));padding-block-start:var(--utrecht-badge-counter-padding-block, var(--utrecht-badge-padding-block, 0.5ex));padding-inline-end:var(--utrecht-badge-counter-padding-inline, var(--utrecht-badge-padding-inline, 0.5ch));padding-inline-start:var(--utrecht-badge-counter-padding-inline, var(--utrecht-badge-padding-inline, 0.5ch));text-decoration:none;}:host{display:inline-block}:host([hidden]){display:none !important}";
|
|
8
8
|
|
|
9
9
|
const BadgeCounter = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -18,6 +18,6 @@ const BadgeCounter = class {
|
|
|
18
18
|
return index.h("div", { class: "utrecht-badge-counter" }, textContent ? textContent : index.h("slot", null));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
BadgeCounter.style =
|
|
21
|
+
BadgeCounter.style = stencilCss;
|
|
22
22
|
|
|
23
23
|
exports.utrecht_badge_counter = BadgeCounter;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b96d9af7.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const stencilCss = ".utrecht-badge,.utrecht-badge-data{background-color:var(--utrecht-badge-background-color, black);border-radius:var(--utrecht-badge-border-radius, 0.5ch);color:var(--utrecht-badge-color, white);display:inline-block;font-family:var(--utrecht-document-font-family, sans-serif);font-size:var(--utrecht-badge-font-size, inherit);font-style:normal;font-weight:var(--utrecht-badge-font-weight, bold);padding-block-end:var(--utrecht-badge-padding-block, 0.5ex);padding-block-start:var(--utrecht-badge-padding-block, 0.5ex);padding-inline-end:var(--utrecht-badge-padding-inline, 0.5ch);padding-inline-start:var(--utrecht-badge-padding-inline, 0.5ch);text-decoration:none;}.utrecht-badge-data{letter-spacing:var(--utrecht-badge-data-letter-spacing, inherit);text-transform:var(--utrecht-badge-data-text-transform, inherit)}:host{display:inline-block}:host([hidden]){display:none !important}";
|
|
8
8
|
|
|
9
9
|
const BadgeData = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const BadgeData = class {
|
|
|
14
14
|
return (index.h("div", { class: "utrecht-badge-data" }, index.h("slot", null)));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
BadgeData.style =
|
|
17
|
+
BadgeData.style = stencilCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_badge_data = BadgeData;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b96d9af7.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const stencilCss = ".utrecht-badge,.utrecht-badge-status{background-color:var(--utrecht-badge-background-color, black);border-radius:var(--utrecht-badge-border-radius, 0.5ch);color:var(--utrecht-badge-color, white);display:inline-block;font-family:var(--utrecht-document-font-family, sans-serif);font-size:var(--utrecht-badge-font-size, inherit);font-style:normal;font-weight:var(--utrecht-badge-font-weight, bold);padding-block-end:var(--utrecht-badge-padding-block, 0.5ex);padding-block-start:var(--utrecht-badge-padding-block, 0.5ex);padding-inline-end:var(--utrecht-badge-padding-inline, 0.5ch);padding-inline-start:var(--utrecht-badge-padding-inline, 0.5ch);text-decoration:none;}.utrecht-badge-status{letter-spacing:var(--utrecht-badge-status-letter-spacing, inherit);text-transform:var(--utrecht-badge-status-text-transform, inherit)}.utrecht-badge-status--danger{background-color:var(--utrecht-feedback-danger-fill-background-color, red);color:var(--utrecht-feedback-danger-fill-color, white)}.utrecht-badge-status--warning{background-color:var(--utrecht-feedback-warning-fill-background-color, #ffa600);color:var(--utrecht-feedback-warning-fill-color, white)}.utrecht-badge-status--safe{background-color:var(--utrecht-feedback-safe-fill-background-color, green);color:var(--utrecht-feedback-safe-fill-color, white)}.utrecht-badge-status--neutral{background-color:var(--utrecht-feedback-neutral-fill-background-color, black);color:var(--utrecht-feedback-neutral-fill-color, white)}.utrecht-badge-status--valid{background-color:var(--utrecht-feedback-valid-fill-background-color, var(--utrecht-feedback-safe-fill-background-color, red));color:var(--utrecht-feedback-valid-fill-color, var(--utrecht-feedback-safe-fill-color, white))}.utrecht-badge-status--invalid{background-color:var(--utrecht-feedback-invalid-fill-background-color, var(--utrecht-feedback-danger-fill-background-color, #ffa600));color:var(--utrecht-feedback-invalid-fill-color, var(--utrecht-feedback-danger-fill-color, white))}.utrecht-badge-status--error{background-color:var(--utrecht-feedback-error-fill-background-color, var(--utrecht-feedback-danger-fill-background-color, #ffa600));color:var(--utrecht-feedback-error-fill-color, var(--utrecht-feedback-danger-fill-color, white))}.utrecht-badge-status--success{background-color:var(--utrecht-feedback-success-fill-background-color, var(--utrecht-feedback-safe-fill-background-color, #ffa600));color:var(--utrecht-feedback-success-fill-color, var(--utrecht-feedback-safe-fill-color, white))}.utrecht-badge-status--active{background-color:var(--utrecht-feedback-active-fill-background-color, var(--utrecht-feedback-safe-fill-background-color, #ffa600));color:var(--utrecht-feedback-active-fill-color, var(--utrecht-feedback-safe-fill-color, white))}.utrecht-badge-status--inactive{background-color:var(--utrecht-feedback-inactive-fill-background-color, var(--utrecht-feedback-danger-fill-background-color, #ffa600));color:var(--utrecht-feedback-inactive-fill-color, var(--utrecht-feedback-danger-fill-color, white))}:host{display:inline-block}:host([hidden]){display:none !important}";
|
|
8
8
|
|
|
9
9
|
const BadgeStatus = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const BadgeStatus = class {
|
|
|
14
14
|
return (index.h("div", { class: `utrecht-badge-status utrecht-badge-status--${this.status}` }, index.h("slot", null)));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
BadgeStatus.style =
|
|
17
|
+
BadgeStatus.style = stencilCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_badge_status = BadgeStatus;
|