@utrecht/web-component-library-stencil 1.0.0-alpha.2 → 1.0.0-alpha.201
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 +51 -0
- package/dist/cjs/{index-04d7da5a.js → index-8c6952a4.js} +307 -75
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/utrecht-article.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-backdrop.cjs.entry.js +21 -0
- package/dist/cjs/utrecht-badge-counter.cjs.entry.js +5 -5
- 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-custom-checkbox.cjs.entry.js +52 -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 +48 -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-afval.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-arrow.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-checkmark.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-cross.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-error.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-information.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-melding.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-paspoort.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-rijbewijs.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-toeslag.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-trouwen.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-twitter.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-verhuizen.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-warning.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-content.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-page-footer.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-page-header.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-page.cjs.entry.js +19 -0
- 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-nav/bem.js +12 -0
- package/dist/collection/article/bem.js +6 -0
- package/dist/collection/article/stencil.css +19 -0
- package/dist/collection/article/stencil.js +15 -0
- package/dist/collection/backdrop/bem.js +12 -0
- package/dist/collection/backdrop/checkerboard.js +20 -0
- package/dist/collection/backdrop/stencil.css +33 -0
- package/dist/collection/backdrop/stencil.js +40 -0
- package/dist/collection/badge-counter/bem.js +7 -0
- package/dist/collection/badge-counter/{bem.css → stencil.css} +16 -2
- package/dist/collection/badge-counter/stencil.js +5 -5
- package/dist/collection/badge-data/bem.js +6 -0
- package/dist/collection/badge-data/{bem.css → stencil.css} +15 -1
- package/dist/collection/badge-data/stencil.js +3 -3
- package/dist/collection/badge-status/bem.js +7 -0
- package/dist/collection/badge-status/{bem.css → stencil.css} +20 -1
- package/dist/collection/badge-status/stencil.js +3 -3
- package/dist/collection/blockquote/bem.js +24 -0
- package/dist/collection/breadcrumb/bem.js +41 -0
- package/dist/collection/breadcrumb/stencil.css +242 -0
- package/dist/collection/breadcrumb/stencil.js +62 -0
- package/dist/collection/button/bem.js +37 -0
- package/dist/collection/button/html.js +17 -0
- package/dist/collection/button/stencil.css +106 -0
- package/dist/collection/button/stencil.js +93 -5
- package/dist/collection/checkbox/bem.js +19 -0
- package/dist/collection/checkbox/stencil.css +55 -0
- package/dist/collection/checkbox/stencil.js +164 -0
- package/dist/collection/collection-manifest.json +57 -4
- package/dist/collection/custom-checkbox/bem.js +46 -0
- package/dist/collection/custom-checkbox/stencil.css +184 -0
- package/dist/collection/custom-checkbox/stencil.js +205 -0
- package/dist/collection/digid-button/bem.js +16 -0
- package/dist/collection/digid-button/stencil.css +32 -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/stencil.css +33 -0
- package/dist/collection/document/stencil.js +3 -3
- 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 +106 -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 +15 -0
- package/dist/collection/form-field-description/stencil.css +39 -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 +128 -0
- package/dist/collection/form-field-textarea/stencil.js +205 -0
- package/dist/collection/form-field-textbox/stencil.css +133 -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 +148 -0
- package/dist/collection/heading/bem.js +36 -0
- package/dist/collection/heading/{bem.css → stencil.css} +72 -37
- package/dist/collection/heading/stencil.js +3 -3
- 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/stencil.css +1203 -0
- package/dist/collection/html-content/stencil.js +3 -3
- package/dist/collection/icon/afval.stencil.js +19 -0
- package/dist/collection/icon/afval.svg +7 -0
- package/dist/collection/icon/arrow.stencil.js +17 -0
- package/dist/collection/icon/arrow.svg +9 -0
- package/dist/collection/icon/checkmark.stencil.js +16 -0
- package/dist/collection/icon/checkmark.svg +9 -0
- package/dist/collection/icon/cross.stencil.js +17 -0
- package/dist/collection/icon/cross.svg +9 -0
- package/dist/collection/icon/dist/afval.svg +1 -0
- package/dist/collection/icon/dist/arrow.svg +1 -0
- package/dist/collection/icon/dist/checkmark.svg +1 -0
- package/dist/collection/icon/dist/cross.svg +1 -0
- package/dist/collection/icon/dist/error.svg +1 -0
- package/dist/collection/icon/dist/facebook.svg +1 -0
- package/dist/collection/icon/dist/filter.svg +1 -0
- package/dist/collection/icon/dist/information.svg +1 -0
- package/dist/collection/icon/dist/instagram.svg +1 -0
- package/dist/collection/icon/dist/linkedin.svg +1 -0
- package/dist/collection/icon/dist/list.svg +1 -0
- package/dist/collection/icon/dist/loupe.svg +1 -0
- package/dist/collection/icon/dist/melding.svg +1 -0
- package/dist/collection/icon/dist/paspoort.svg +1 -0
- package/dist/collection/icon/dist/rijbewijs.svg +1 -0
- package/dist/collection/icon/dist/toeslag.svg +1 -0
- package/dist/collection/icon/dist/trouwen.svg +1 -0
- package/dist/collection/icon/dist/twitter.svg +1 -0
- package/dist/collection/icon/dist/verhuizen.svg +1 -0
- package/dist/collection/icon/dist/warning.svg +1 -0
- package/dist/collection/icon/dist/whatsapp.svg +1 -0
- package/dist/collection/icon/dist/zoomin.svg +1 -0
- package/dist/collection/icon/dist/zoomout.svg +1 -0
- package/dist/collection/icon/error.stencil.js +18 -0
- package/dist/collection/icon/error.svg +15 -0
- package/dist/collection/icon/facebook.stencil.js +17 -0
- package/dist/collection/icon/facebook.svg +9 -0
- package/dist/collection/icon/filter.stencil.js +18 -0
- package/dist/collection/icon/filter.svg +6 -0
- package/dist/collection/icon/information.stencil.js +19 -0
- package/dist/collection/icon/information.svg +14 -0
- package/dist/collection/icon/instagram.stencil.js +19 -0
- package/dist/collection/icon/instagram.svg +16 -0
- package/dist/collection/icon/linkedin.stencil.js +18 -0
- package/dist/collection/icon/linkedin.svg +14 -0
- package/dist/collection/icon/list.stencil.js +21 -0
- package/dist/collection/icon/list.svg +9 -0
- package/dist/collection/icon/loupe.stencil.js +17 -0
- package/dist/collection/icon/loupe.svg +11 -0
- package/dist/collection/icon/melding.stencil.js +17 -0
- package/dist/collection/icon/melding.svg +5 -0
- package/dist/collection/icon/paspoort.stencil.js +17 -0
- package/dist/collection/icon/paspoort.svg +5 -0
- package/dist/collection/icon/rijbewijs.stencil.js +20 -0
- package/dist/collection/icon/rijbewijs.svg +8 -0
- package/dist/collection/icon/stencil.css +20 -0
- package/dist/collection/icon/toeslag.stencil.js +17 -0
- package/dist/collection/icon/toeslag.svg +5 -0
- package/dist/collection/icon/trouwen.stencil.js +16 -0
- package/dist/collection/icon/trouwen.svg +4 -0
- package/dist/collection/icon/twitter.stencil.js +17 -0
- package/dist/collection/icon/twitter.svg +9 -0
- package/dist/collection/icon/verhuizen.stencil.js +21 -0
- package/dist/collection/icon/verhuizen.svg +9 -0
- package/dist/collection/icon/warning.stencil.js +19 -0
- package/dist/collection/icon/warning.svg +19 -0
- package/dist/collection/icon/whatsapp.stencil.js +17 -0
- package/dist/collection/icon/whatsapp.svg +9 -0
- package/dist/collection/icon/zoomin.stencil.js +18 -0
- package/dist/collection/icon/zoomin.svg +13 -0
- package/dist/collection/icon/zoomout.stencil.js +17 -0
- package/dist/collection/icon/zoomout.svg +9 -0
- package/dist/collection/link/css/template.js +57 -0
- package/dist/collection/link/html/template.js +11 -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 +33 -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 +34 -0
- package/dist/collection/menulijst/bem.js +18 -0
- package/dist/collection/nav-top/bem.js +24 -0
- package/dist/collection/navigatie sidenav/bem.css +185 -0
- package/dist/collection/navigatie sidenav/bem.js +69 -0
- package/dist/collection/navigatie sidenav/stencil.js +45 -0
- package/dist/collection/navigatie topnav/bem.js +26 -0
- package/dist/collection/node_modules/@trysound/sax/lib/sax.js +1413 -0
- package/dist/collection/node_modules/commander/index.js +2217 -0
- package/dist/collection/node_modules/css-tree/data/index.js +103 -0
- package/dist/collection/node_modules/css-tree/dist/csstree.js +12606 -0
- package/dist/collection/node_modules/css-tree/dist/csstree.min.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/common/List.js +576 -0
- package/dist/collection/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
- package/dist/collection/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
- package/dist/collection/node_modules/css-tree/lib/common/TokenStream.js +219 -0
- package/dist/collection/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
- package/dist/collection/node_modules/css-tree/lib/convertor/create.js +28 -0
- package/dist/collection/node_modules/css-tree/lib/convertor/index.js +3 -0
- package/dist/collection/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
- package/dist/collection/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
- package/dist/collection/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
- package/dist/collection/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
- package/dist/collection/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
- package/dist/collection/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
- package/dist/collection/node_modules/css-tree/lib/generator/create.js +66 -0
- package/dist/collection/node_modules/css-tree/lib/generator/index.js +4 -0
- package/dist/collection/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
- package/dist/collection/node_modules/css-tree/lib/index.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/error.js +127 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/generic.js +585 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/index.js +3 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/match.js +639 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/search.js +65 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/structure.js +163 -0
- package/dist/collection/node_modules/css-tree/lib/lexer/trace.js +79 -0
- package/dist/collection/node_modules/css-tree/lib/parser/create.js +304 -0
- package/dist/collection/node_modules/css-tree/lib/parser/index.js +4 -0
- package/dist/collection/node_modules/css-tree/lib/parser/sequence.js +54 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/create.js +77 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/function/var.js +43 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/index.js +21 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/String.js +18 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/node/index.js +42 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
- package/dist/collection/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
- package/dist/collection/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
- package/dist/collection/node_modules/css-tree/lib/tokenizer/const.js +40 -0
- package/dist/collection/node_modules/css-tree/lib/tokenizer/index.js +591 -0
- package/dist/collection/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
- package/dist/collection/node_modules/css-tree/lib/utils/clone.js +21 -0
- package/dist/collection/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
- package/dist/collection/node_modules/css-tree/lib/utils/names.js +104 -0
- package/dist/collection/node_modules/css-tree/lib/walker/create.js +284 -0
- package/dist/collection/node_modules/css-tree/lib/walker/index.js +4 -0
- package/dist/collection/node_modules/mdn-data/api/index.js +3 -0
- package/dist/collection/node_modules/mdn-data/css/index.js +8 -0
- package/dist/collection/node_modules/mdn-data/index.js +5 -0
- package/dist/collection/node_modules/mdn-data/l10n/index.js +3 -0
- package/dist/collection/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/dist/collection/node_modules/source-map/dist/source-map.js +3233 -0
- package/dist/collection/node_modules/source-map/dist/source-map.min.js +2 -0
- package/dist/collection/node_modules/source-map/lib/array-set.js +121 -0
- package/dist/collection/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/dist/collection/node_modules/source-map/lib/base64.js +67 -0
- package/dist/collection/node_modules/source-map/lib/binary-search.js +111 -0
- package/dist/collection/node_modules/source-map/lib/mapping-list.js +79 -0
- package/dist/collection/node_modules/source-map/lib/quick-sort.js +114 -0
- package/dist/collection/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/dist/collection/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/dist/collection/node_modules/source-map/lib/source-node.js +413 -0
- package/dist/collection/node_modules/source-map/lib/util.js +488 -0
- package/dist/collection/node_modules/source-map/source-map.js +8 -0
- package/dist/collection/node_modules/svgo/dist/svgo.browser.js +1 -0
- package/dist/collection/node_modules/svgo/lib/css-tools.js +239 -0
- package/dist/collection/node_modules/svgo/lib/parser.js +259 -0
- package/dist/collection/node_modules/svgo/lib/path.js +347 -0
- package/dist/collection/node_modules/svgo/lib/stringifier.js +326 -0
- package/dist/collection/node_modules/svgo/lib/style.js +283 -0
- package/dist/collection/node_modules/svgo/lib/svgo/coa.js +517 -0
- package/dist/collection/node_modules/svgo/lib/svgo/config.js +138 -0
- package/dist/collection/node_modules/svgo/lib/svgo/css-class-list.js +72 -0
- package/dist/collection/node_modules/svgo/lib/svgo/css-select-adapter.js +120 -0
- package/dist/collection/node_modules/svgo/lib/svgo/css-style-declaration.js +232 -0
- package/dist/collection/node_modules/svgo/lib/svgo/jsAPI.js +443 -0
- package/dist/collection/node_modules/svgo/lib/svgo/plugins.js +109 -0
- package/dist/collection/node_modules/svgo/lib/svgo/tools.js +137 -0
- package/dist/collection/node_modules/svgo/lib/svgo-node.js +106 -0
- package/dist/collection/node_modules/svgo/lib/svgo.js +83 -0
- package/dist/collection/node_modules/svgo/lib/xast.js +102 -0
- package/dist/collection/node_modules/svgo/plugins/_applyTransforms.js +335 -0
- package/dist/collection/node_modules/svgo/plugins/_collections.js +2168 -0
- package/dist/collection/node_modules/svgo/plugins/_path.js +816 -0
- package/dist/collection/node_modules/svgo/plugins/_transforms.js +379 -0
- package/dist/collection/node_modules/svgo/plugins/addAttributesToSVGElement.js +87 -0
- package/dist/collection/node_modules/svgo/plugins/addClassesToSVGElement.js +87 -0
- package/dist/collection/node_modules/svgo/plugins/cleanupAttrs.js +55 -0
- package/dist/collection/node_modules/svgo/plugins/cleanupEnableBackground.js +75 -0
- package/dist/collection/node_modules/svgo/plugins/cleanupIDs.js +297 -0
- package/dist/collection/node_modules/svgo/plugins/cleanupListOfValues.js +154 -0
- package/dist/collection/node_modules/svgo/plugins/cleanupNumericValues.js +113 -0
- package/dist/collection/node_modules/svgo/plugins/collapseGroups.js +135 -0
- package/dist/collection/node_modules/svgo/plugins/convertColors.js +152 -0
- package/dist/collection/node_modules/svgo/plugins/convertEllipseToCircle.js +39 -0
- package/dist/collection/node_modules/svgo/plugins/convertPathData.js +1023 -0
- package/dist/collection/node_modules/svgo/plugins/convertShapeToPath.js +175 -0
- package/dist/collection/node_modules/svgo/plugins/convertStyleToAttrs.js +132 -0
- package/dist/collection/node_modules/svgo/plugins/convertTransform.js +432 -0
- package/dist/collection/node_modules/svgo/plugins/inlineStyles.js +379 -0
- package/dist/collection/node_modules/svgo/plugins/mergePaths.js +104 -0
- package/dist/collection/node_modules/svgo/plugins/mergeStyles.js +93 -0
- package/dist/collection/node_modules/svgo/plugins/minifyStyles.js +148 -0
- package/dist/collection/node_modules/svgo/plugins/moveElemsAttrsToGroup.js +130 -0
- package/dist/collection/node_modules/svgo/plugins/moveGroupAttrsToElems.js +62 -0
- package/dist/collection/node_modules/svgo/plugins/plugins.js +56 -0
- package/dist/collection/node_modules/svgo/plugins/prefixIds.js +241 -0
- package/dist/collection/node_modules/svgo/plugins/preset-default.js +80 -0
- package/dist/collection/node_modules/svgo/plugins/removeAttributesBySelector.js +99 -0
- package/dist/collection/node_modules/svgo/plugins/removeAttrs.js +159 -0
- package/dist/collection/node_modules/svgo/plugins/removeComments.js +31 -0
- package/dist/collection/node_modules/svgo/plugins/removeDesc.js +41 -0
- package/dist/collection/node_modules/svgo/plugins/removeDimensions.js +43 -0
- package/dist/collection/node_modules/svgo/plugins/removeDoctype.js +42 -0
- package/dist/collection/node_modules/svgo/plugins/removeEditorsNSData.js +68 -0
- package/dist/collection/node_modules/svgo/plugins/removeElementsByAttr.js +78 -0
- package/dist/collection/node_modules/svgo/plugins/removeEmptyAttrs.js +33 -0
- package/dist/collection/node_modules/svgo/plugins/removeEmptyContainers.js +58 -0
- package/dist/collection/node_modules/svgo/plugins/removeEmptyText.js +57 -0
- package/dist/collection/node_modules/svgo/plugins/removeHiddenElems.js +318 -0
- package/dist/collection/node_modules/svgo/plugins/removeMetadata.js +29 -0
- package/dist/collection/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +38 -0
- package/dist/collection/node_modules/svgo/plugins/removeOffCanvasPaths.js +138 -0
- package/dist/collection/node_modules/svgo/plugins/removeRasterImages.js +33 -0
- package/dist/collection/node_modules/svgo/plugins/removeScriptElement.js +29 -0
- package/dist/collection/node_modules/svgo/plugins/removeStyleElement.js +29 -0
- package/dist/collection/node_modules/svgo/plugins/removeTitle.js +29 -0
- package/dist/collection/node_modules/svgo/plugins/removeUnknownsAndDefaults.js +218 -0
- package/dist/collection/node_modules/svgo/plugins/removeUnusedNS.js +61 -0
- package/dist/collection/node_modules/svgo/plugins/removeUselessDefs.js +65 -0
- package/dist/collection/node_modules/svgo/plugins/removeUselessStrokeAndFill.js +144 -0
- package/dist/collection/node_modules/svgo/plugins/removeViewBox.js +51 -0
- package/dist/collection/node_modules/svgo/plugins/removeXMLNS.js +30 -0
- package/dist/collection/node_modules/svgo/plugins/removeXMLProcInst.js +30 -0
- package/dist/collection/node_modules/svgo/plugins/reusePaths.js +113 -0
- package/dist/collection/node_modules/svgo/plugins/sortAttrs.js +113 -0
- package/dist/collection/node_modules/svgo/plugins/sortDefsChildren.js +60 -0
- package/dist/collection/ordered-list/bem.js +11 -0
- package/dist/collection/page/bem.js +6 -0
- package/dist/collection/page/stencil.css +30 -0
- package/dist/collection/page/stencil.js +20 -0
- package/dist/collection/page-content/bem.js +10 -0
- package/dist/collection/page-content/stencil.css +31 -0
- package/dist/collection/page-content/stencil.js +20 -0
- package/dist/collection/page-footer/bem.js +7 -0
- package/dist/collection/page-footer/stencil.css +50 -0
- package/dist/collection/page-footer/stencil.js +19 -0
- package/dist/collection/page-header/bem.js +6 -0
- package/dist/collection/page-header/stencil.css +30 -0
- package/dist/collection/page-header/stencil.js +20 -0
- 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/css/template.js +22 -0
- package/dist/collection/paragraph/html/template.js +11 -0
- package/dist/collection/paragraph/{bem.css → web-component/index.css} +18 -3
- package/dist/collection/paragraph/{stencil.js → web-component/index.stencil.js} +5 -5
- package/dist/collection/paragraph/web-component/template.js +12 -0
- package/dist/collection/pre-heading/bem.js +15 -0
- package/dist/collection/radio-button/bem.js +19 -0
- package/dist/collection/search-bar/bem.js +15 -0
- package/dist/collection/select/bem.js +39 -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 +3 -3
- package/dist/collection/templates/contact-card-template/stencil.css +178 -0
- package/dist/collection/templates/contact-card-template/stencil.js +25 -0
- package/dist/collection/textarea/bem.js +35 -0
- package/dist/collection/textarea/html.js +20 -0
- package/dist/collection/textbox/bem.js +37 -0
- package/dist/collection/textbox/stencil.css +96 -0
- package/dist/collection/textbox/stencil.js +297 -0
- package/dist/collection/toptask-link/bem.js +33 -0
- package/dist/collection/toptask-nav/bem.js +19 -0
- package/dist/collection/unordered-list/bem.js +28 -0
- package/dist/collection/url/bem.js +14 -0
- package/dist/custom-elements/index.d.ts +318 -0
- package/dist/custom-elements/index.js +1100 -64
- package/dist/esm/{index-7fbac151.js → index-86b2856e.js} +306 -76
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/utrecht-article.entry.js +15 -0
- package/dist/esm/utrecht-backdrop.entry.js +17 -0
- package/dist/esm/utrecht-badge-counter.entry.js +5 -5
- 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-custom-checkbox.entry.js +48 -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 +44 -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-afval.entry.js +15 -0
- package/dist/esm/utrecht-icon-arrow.entry.js +15 -0
- package/dist/esm/utrecht-icon-checkmark.entry.js +15 -0
- package/dist/esm/utrecht-icon-cross.entry.js +15 -0
- package/dist/esm/utrecht-icon-error.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-information.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-melding.entry.js +15 -0
- package/dist/esm/utrecht-icon-paspoort.entry.js +15 -0
- package/dist/esm/utrecht-icon-rijbewijs.entry.js +15 -0
- package/dist/esm/utrecht-icon-toeslag.entry.js +15 -0
- package/dist/esm/utrecht-icon-trouwen.entry.js +15 -0
- package/dist/esm/utrecht-icon-twitter.entry.js +15 -0
- package/dist/esm/utrecht-icon-verhuizen.entry.js +15 -0
- package/dist/esm/utrecht-icon-warning.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-content.entry.js +15 -0
- package/dist/esm/utrecht-page-footer.entry.js +15 -0
- package/dist/esm/utrecht-page-header.entry.js +15 -0
- package/dist/esm/utrecht-page.entry.js +15 -0
- 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/types/article/stencil.d.ts +3 -0
- package/dist/types/backdrop/stencil.d.ts +4 -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 +833 -0
- package/dist/types/custom-checkbox/stencil.d.ts +17 -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/afval.stencil.d.ts +3 -0
- package/dist/types/icon/arrow.stencil.d.ts +3 -0
- package/dist/types/icon/checkmark.stencil.d.ts +3 -0
- package/dist/types/icon/cross.stencil.d.ts +3 -0
- package/dist/types/icon/error.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/information.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/melding.stencil.d.ts +3 -0
- package/dist/types/icon/paspoort.stencil.d.ts +3 -0
- package/dist/types/icon/rijbewijs.stencil.d.ts +3 -0
- package/dist/types/icon/toeslag.stencil.d.ts +3 -0
- package/dist/types/icon/trouwen.stencil.d.ts +3 -0
- package/dist/types/icon/twitter.stencil.d.ts +3 -0
- package/dist/types/icon/verhuizen.stencil.d.ts +3 -0
- package/dist/types/icon/warning.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/page/stencil.d.ts +7 -0
- package/dist/types/page-content/stencil.d.ts +7 -0
- package/dist/types/page-footer/stencil.d.ts +7 -0
- package/dist/types/page-header/stencil.d.ts +7 -0
- package/dist/types/pagination/stencil.d.ts +11 -0
- package/dist/types/paragraph/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- 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-02a37490.entry.js +1 -0
- package/dist/utrecht/p-06370f11.entry.js +1 -0
- package/dist/utrecht/p-0babe0e1.entry.js +1 -0
- package/dist/utrecht/p-0bd956aa.entry.js +1 -0
- package/dist/utrecht/p-10ed9dbc.entry.js +1 -0
- package/dist/utrecht/p-1d6f6429.entry.js +1 -0
- package/dist/utrecht/p-1e2310d5.entry.js +1 -0
- package/dist/utrecht/p-206407ec.entry.js +1 -0
- package/dist/utrecht/p-22b0b0ab.entry.js +1 -0
- package/dist/utrecht/p-24f6df95.entry.js +1 -0
- package/dist/utrecht/p-28d9ca01.entry.js +1 -0
- package/dist/utrecht/p-2cf9a940.entry.js +1 -0
- package/dist/utrecht/p-33460a3c.entry.js +1 -0
- package/dist/utrecht/p-3d9f0a68.entry.js +1 -0
- package/dist/utrecht/p-450b6c65.entry.js +1 -0
- package/dist/utrecht/p-45462b1b.entry.js +1 -0
- package/dist/utrecht/p-494a2de2.entry.js +1 -0
- package/dist/utrecht/p-4992cc17.entry.js +1 -0
- package/dist/utrecht/p-52b840b4.entry.js +1 -0
- package/dist/utrecht/p-5a1ae611.entry.js +1 -0
- package/dist/utrecht/p-64b8a7bd.entry.js +1 -0
- package/dist/utrecht/p-6c34702d.entry.js +1 -0
- package/dist/utrecht/p-706f3a46.entry.js +1 -0
- package/dist/utrecht/p-78c8320a.entry.js +1 -0
- package/dist/utrecht/p-7a694b68.entry.js +1 -0
- package/dist/utrecht/p-7bb345f1.entry.js +1 -0
- package/dist/utrecht/p-7e3395e4.entry.js +1 -0
- package/dist/utrecht/p-844a51cd.entry.js +1 -0
- package/dist/utrecht/p-847f24f7.entry.js +1 -0
- package/dist/utrecht/p-8ca6b8b1.js +1 -0
- package/dist/utrecht/p-8d742d31.entry.js +1 -0
- package/dist/utrecht/p-9f71d7ad.entry.js +1 -0
- package/dist/utrecht/p-a3ba8266.entry.js +1 -0
- package/dist/utrecht/p-a6e74d71.entry.js +1 -0
- package/dist/utrecht/p-a9446486.entry.js +1 -0
- package/dist/utrecht/p-aa3e8f73.entry.js +1 -0
- package/dist/utrecht/p-aa7f0306.entry.js +1 -0
- package/dist/utrecht/p-afd9a538.entry.js +1 -0
- package/dist/utrecht/p-b34cf79e.entry.js +1 -0
- package/dist/utrecht/p-b51a7258.entry.js +1 -0
- package/dist/utrecht/p-b7635555.entry.js +1 -0
- package/dist/utrecht/p-b97f0d95.entry.js +1 -0
- package/dist/utrecht/p-c0b17517.entry.js +1 -0
- package/dist/utrecht/p-c1cefe13.entry.js +1 -0
- package/dist/utrecht/p-c7c1b303.entry.js +1 -0
- package/dist/utrecht/p-ce352a8d.entry.js +1 -0
- package/dist/utrecht/p-cf06abf1.entry.js +1 -0
- package/dist/utrecht/p-d503851f.entry.js +1 -0
- package/dist/utrecht/p-d7c2ff02.entry.js +1 -0
- package/dist/utrecht/p-dad5dcf5.entry.js +1 -0
- package/dist/utrecht/p-dbfb3e72.entry.js +1 -0
- package/dist/utrecht/p-e24992e2.entry.js +1 -0
- package/dist/utrecht/p-e425fabc.entry.js +1 -0
- package/dist/utrecht/p-e94ddc39.entry.js +1 -0
- package/dist/utrecht/p-ea583d80.entry.js +1 -0
- package/dist/utrecht/p-edcc904a.entry.js +1 -0
- package/dist/utrecht/p-f430397a.entry.js +1 -0
- package/dist/utrecht/p-f5aec0d3.entry.js +1 -0
- package/dist/utrecht/p-f6477f7f.entry.js +1 -0
- package/dist/utrecht/p-fa00a874.entry.js +1 -0
- package/dist/utrecht/utrecht.esm.js +1 -1
- package/loader/index.d.ts +0 -1
- package/package.json +17 -8
- package/dist/badge-counter/stencil.js +0 -37
- package/dist/badge-data/stencil.js +0 -25
- package/dist/badge-status/stencil.js +0 -28
- package/dist/button/stencil.js +0 -25
- package/dist/cjs/utrecht-button.cjs.entry.js +0 -20
- package/dist/cjs/utrecht-paragraph.cjs.entry.js +0 -20
- package/dist/collection/button/bem.css +0 -48
- package/dist/collection/document/bem.css +0 -12
- package/dist/collection/html-content/html.css +0 -557
- package/dist/document/stencil.js +0 -21
- package/dist/esm/utrecht-button.entry.js +0 -16
- package/dist/esm/utrecht-paragraph.entry.js +0 -16
- package/dist/heading/stencil.js +0 -50
- package/dist/html-content/stencil.js +0 -25
- package/dist/paragraph/stencil.js +0 -25
- package/dist/separator/stencil.js +0 -20
- package/dist/utrecht/p-031700e7.entry.js +0 -1
- package/dist/utrecht/p-031d1e42.entry.js +0 -1
- package/dist/utrecht/p-059d8057.entry.js +0 -1
- package/dist/utrecht/p-26a456e1.entry.js +0 -1
- package/dist/utrecht/p-3548fa7a.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-634c1974.js +0 -1
- package/dist/utrecht/p-79c79abf.entry.js +0 -1
- package/dist/utrecht/p-dbb6d147.entry.js +0 -1
|
@@ -13,8 +13,8 @@ const doc = win.document || { head: {} };
|
|
|
13
13
|
const plt = {
|
|
14
14
|
$flags$: 0,
|
|
15
15
|
$resourcesUrl$: '',
|
|
16
|
-
jmp: h => h(),
|
|
17
|
-
raf: h => requestAnimationFrame(h),
|
|
16
|
+
jmp: (h) => h(),
|
|
17
|
+
raf: (h) => requestAnimationFrame(h),
|
|
18
18
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
19
19
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
20
20
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -23,7 +23,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
23
23
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
24
24
|
try {
|
|
25
25
|
new CSSStyleSheet();
|
|
26
|
-
return typeof
|
|
26
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
27
27
|
}
|
|
28
28
|
catch (e) { }
|
|
29
29
|
return false;
|
|
@@ -76,6 +76,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
76
76
|
styleElm = doc.createElement('style');
|
|
77
77
|
styleElm.innerHTML = style;
|
|
78
78
|
}
|
|
79
|
+
const nonceElm = styleContainerNode.ownerDocument.querySelector('style[nonce]');
|
|
80
|
+
if (nonceElm) {
|
|
81
|
+
styleElm.setAttribute('nonce', nonceElm.getAttribute('nonce'));
|
|
82
|
+
console.log(`CSP nonce-${nonceElm.getAttribute('nonce')}`);
|
|
83
|
+
}
|
|
79
84
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
80
85
|
}
|
|
81
86
|
if (appliedStyles) {
|
|
@@ -117,6 +122,11 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
117
122
|
* Don't add values to these!!
|
|
118
123
|
*/
|
|
119
124
|
const EMPTY_OBJ = {};
|
|
125
|
+
/**
|
|
126
|
+
* Namespaces
|
|
127
|
+
*/
|
|
128
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
129
|
+
const HTML_NS = 'http://www.w3.org/1999/xhtml';
|
|
120
130
|
const isDef = (v) => v != null;
|
|
121
131
|
const isComplexType = (o) => {
|
|
122
132
|
// https://jsperf.com/typeof-fn-object/5
|
|
@@ -136,6 +146,7 @@ const isComplexType = (o) => {
|
|
|
136
146
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
137
147
|
const h = (nodeName, vnodeData, ...children) => {
|
|
138
148
|
let child = null;
|
|
149
|
+
let key = null;
|
|
139
150
|
let slotName = null;
|
|
140
151
|
let simple = false;
|
|
141
152
|
let lastSimple = false;
|
|
@@ -164,6 +175,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
164
175
|
};
|
|
165
176
|
walk(children);
|
|
166
177
|
if (vnodeData) {
|
|
178
|
+
// normalize class / classname attributes
|
|
179
|
+
if (vnodeData.key) {
|
|
180
|
+
key = vnodeData.key;
|
|
181
|
+
}
|
|
167
182
|
if (vnodeData.name) {
|
|
168
183
|
slotName = vnodeData.name;
|
|
169
184
|
}
|
|
@@ -174,7 +189,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
174
189
|
typeof classData !== 'object'
|
|
175
190
|
? classData
|
|
176
191
|
: Object.keys(classData)
|
|
177
|
-
.filter(k => classData[k])
|
|
192
|
+
.filter((k) => classData[k])
|
|
178
193
|
.join(' ');
|
|
179
194
|
}
|
|
180
195
|
}
|
|
@@ -184,6 +199,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
184
199
|
if (vNodeChildren.length > 0) {
|
|
185
200
|
vnode.$children$ = vNodeChildren;
|
|
186
201
|
}
|
|
202
|
+
{
|
|
203
|
+
vnode.$key$ = key;
|
|
204
|
+
}
|
|
187
205
|
{
|
|
188
206
|
vnode.$name$ = slotName;
|
|
189
207
|
}
|
|
@@ -200,6 +218,9 @@ const newVNode = (tag, text) => {
|
|
|
200
218
|
{
|
|
201
219
|
vnode.$attrs$ = null;
|
|
202
220
|
}
|
|
221
|
+
{
|
|
222
|
+
vnode.$key$ = null;
|
|
223
|
+
}
|
|
203
224
|
{
|
|
204
225
|
vnode.$name$ = null;
|
|
205
226
|
}
|
|
@@ -218,13 +239,54 @@ const isHost = (node) => node && node.$tag$ === Host;
|
|
|
218
239
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
219
240
|
if (oldValue !== newValue) {
|
|
220
241
|
let isProp = isMemberInElement(elm, memberName);
|
|
221
|
-
memberName.toLowerCase();
|
|
242
|
+
let ln = memberName.toLowerCase();
|
|
222
243
|
if (memberName === 'class') {
|
|
223
244
|
const classList = elm.classList;
|
|
224
245
|
const oldClasses = parseClassList(oldValue);
|
|
225
246
|
const newClasses = parseClassList(newValue);
|
|
226
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
227
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
247
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
248
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
249
|
+
}
|
|
250
|
+
else if (memberName === 'key')
|
|
251
|
+
;
|
|
252
|
+
else if ((!isProp ) &&
|
|
253
|
+
memberName[0] === 'o' &&
|
|
254
|
+
memberName[1] === 'n') {
|
|
255
|
+
// Event Handlers
|
|
256
|
+
// so if the member name starts with "on" and the 3rd characters is
|
|
257
|
+
// a capital letter, and it's not already a member on the element,
|
|
258
|
+
// then we're assuming it's an event listener
|
|
259
|
+
if (memberName[2] === '-') {
|
|
260
|
+
// on- prefixed events
|
|
261
|
+
// allows to be explicit about the dom event to listen without any magic
|
|
262
|
+
// under the hood:
|
|
263
|
+
// <my-cmp on-click> // listens for "click"
|
|
264
|
+
// <my-cmp on-Click> // listens for "Click"
|
|
265
|
+
// <my-cmp on-ionChange> // listens for "ionChange"
|
|
266
|
+
// <my-cmp on-EVENTS> // listens for "EVENTS"
|
|
267
|
+
memberName = memberName.slice(3);
|
|
268
|
+
}
|
|
269
|
+
else if (isMemberInElement(win, ln)) {
|
|
270
|
+
// standard event
|
|
271
|
+
// the JSX attribute could have been "onMouseOver" and the
|
|
272
|
+
// member name "onmouseover" is on the window's prototype
|
|
273
|
+
// so let's add the listener "mouseover", which is all lowercased
|
|
274
|
+
memberName = ln.slice(2);
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
// custom event
|
|
278
|
+
// the JSX attribute could have been "onMyCustomEvent"
|
|
279
|
+
// so let's trim off the "on" prefix and lowercase the first character
|
|
280
|
+
// and add the listener "myCustomEvent"
|
|
281
|
+
// except for the first character, we keep the event name case
|
|
282
|
+
memberName = ln[2] + memberName.slice(3);
|
|
283
|
+
}
|
|
284
|
+
if (oldValue) {
|
|
285
|
+
plt.rel(elm, memberName, oldValue, false);
|
|
286
|
+
}
|
|
287
|
+
if (newValue) {
|
|
288
|
+
plt.ael(elm, memberName, newValue, false);
|
|
289
|
+
}
|
|
228
290
|
}
|
|
229
291
|
else {
|
|
230
292
|
// Set property if it exists and it's not a SVG
|
|
@@ -236,7 +298,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
236
298
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
237
299
|
if (memberName === 'list') {
|
|
238
300
|
isProp = false;
|
|
239
|
-
// tslint:disable-next-line: triple-equals
|
|
240
301
|
}
|
|
241
302
|
else if (oldValue == null || elm[memberName] != n) {
|
|
242
303
|
elm[memberName] = n;
|
|
@@ -270,7 +331,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
270
331
|
// if the element passed in is a shadow root, which is a document fragment
|
|
271
332
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
272
333
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
273
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
334
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
335
|
+
? newVnode.$elm$.host
|
|
336
|
+
: newVnode.$elm$;
|
|
274
337
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
275
338
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
276
339
|
{
|
|
@@ -314,11 +377,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
314
377
|
}
|
|
315
378
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
316
379
|
// create a slot reference node
|
|
317
|
-
elm = newVNode.$elm$ =
|
|
380
|
+
elm = newVNode.$elm$ =
|
|
381
|
+
doc.createTextNode('');
|
|
318
382
|
}
|
|
319
383
|
else {
|
|
384
|
+
if (!isSvgMode) {
|
|
385
|
+
isSvgMode = newVNode.$tag$ === 'svg';
|
|
386
|
+
}
|
|
320
387
|
// create element
|
|
321
|
-
elm = newVNode.$elm$ = (doc.
|
|
388
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
389
|
+
? 'slot-fb'
|
|
390
|
+
: newVNode.$tag$)
|
|
391
|
+
);
|
|
392
|
+
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
393
|
+
isSvgMode = false;
|
|
394
|
+
}
|
|
322
395
|
// add css classes, attrs, props, listeners, etc.
|
|
323
396
|
{
|
|
324
397
|
updateElement(null, newVNode, isSvgMode);
|
|
@@ -339,6 +412,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
339
412
|
}
|
|
340
413
|
}
|
|
341
414
|
}
|
|
415
|
+
{
|
|
416
|
+
if (newVNode.$tag$ === 'svg') {
|
|
417
|
+
// Only reset the SVG context when we're exiting <svg> element
|
|
418
|
+
isSvgMode = false;
|
|
419
|
+
}
|
|
420
|
+
else if (elm.tagName === 'foreignObject') {
|
|
421
|
+
// Reenter SVG context when we're exiting <foreignObject> element
|
|
422
|
+
isSvgMode = true;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
342
425
|
}
|
|
343
426
|
{
|
|
344
427
|
elm['s-hn'] = hostTagName;
|
|
@@ -426,6 +509,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
426
509
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
427
510
|
let oldStartIdx = 0;
|
|
428
511
|
let newStartIdx = 0;
|
|
512
|
+
let idxInOld = 0;
|
|
513
|
+
let i = 0;
|
|
429
514
|
let oldEndIdx = oldCh.length - 1;
|
|
430
515
|
let oldStartVnode = oldCh[0];
|
|
431
516
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -433,6 +518,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
433
518
|
let newStartVnode = newCh[0];
|
|
434
519
|
let newEndVnode = newCh[newEndIdx];
|
|
435
520
|
let node;
|
|
521
|
+
let elmToMove;
|
|
436
522
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
437
523
|
if (oldStartVnode == null) {
|
|
438
524
|
// Vnode might have been moved left
|
|
@@ -478,7 +564,29 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
478
564
|
newStartVnode = newCh[++newStartIdx];
|
|
479
565
|
}
|
|
480
566
|
else {
|
|
567
|
+
// createKeyToOldIdx
|
|
568
|
+
idxInOld = -1;
|
|
481
569
|
{
|
|
570
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
571
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
572
|
+
idxInOld = i;
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if (idxInOld >= 0) {
|
|
578
|
+
elmToMove = oldCh[idxInOld];
|
|
579
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
580
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
patch(elmToMove, newStartVnode);
|
|
584
|
+
oldCh[idxInOld] = undefined;
|
|
585
|
+
node = elmToMove.$elm$;
|
|
586
|
+
}
|
|
587
|
+
newStartVnode = newCh[++newStartIdx];
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
482
590
|
// new element
|
|
483
591
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
484
592
|
newStartVnode = newCh[++newStartIdx];
|
|
@@ -504,7 +612,9 @@ const isSameVnode = (vnode1, vnode2) => {
|
|
|
504
612
|
if (vnode1.$tag$ === 'slot') {
|
|
505
613
|
return vnode1.$name$ === vnode2.$name$;
|
|
506
614
|
}
|
|
507
|
-
|
|
615
|
+
{
|
|
616
|
+
return vnode1.$key$ === vnode2.$key$;
|
|
617
|
+
}
|
|
508
618
|
}
|
|
509
619
|
return false;
|
|
510
620
|
};
|
|
@@ -524,6 +634,11 @@ const patch = (oldVNode, newVNode) => {
|
|
|
524
634
|
const text = newVNode.$text$;
|
|
525
635
|
let defaultHolder;
|
|
526
636
|
if (text === null) {
|
|
637
|
+
{
|
|
638
|
+
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
639
|
+
// only add this to the when the compiler sees we're using an svg somewhere
|
|
640
|
+
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
641
|
+
}
|
|
527
642
|
// element node
|
|
528
643
|
{
|
|
529
644
|
if (tag === 'slot')
|
|
@@ -552,6 +667,9 @@ const patch = (oldVNode, newVNode) => {
|
|
|
552
667
|
// no new child vnodes, but there are old child vnodes to remove
|
|
553
668
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
554
669
|
}
|
|
670
|
+
if (isSvgMode && tag === 'svg') {
|
|
671
|
+
isSvgMode = false;
|
|
672
|
+
}
|
|
555
673
|
}
|
|
556
674
|
else if ((defaultHolder = elm['s-cr'])) {
|
|
557
675
|
// this element has slotted content
|
|
@@ -635,7 +753,7 @@ const relocateSlotContent = (elm) => {
|
|
|
635
753
|
// that is suppose to always represent the original content location
|
|
636
754
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
637
755
|
// it's possible we've already decided to relocate this node
|
|
638
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
756
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
639
757
|
// made some changes to slots
|
|
640
758
|
// let's make sure we also double check
|
|
641
759
|
// fallbacks are correctly hidden or shown
|
|
@@ -654,9 +772,9 @@ const relocateSlotContent = (elm) => {
|
|
|
654
772
|
});
|
|
655
773
|
}
|
|
656
774
|
if (node['s-sr']) {
|
|
657
|
-
relocateNodes.map(relocateNode => {
|
|
775
|
+
relocateNodes.map((relocateNode) => {
|
|
658
776
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
659
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
777
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
660
778
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
661
779
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
662
780
|
}
|
|
@@ -664,7 +782,7 @@ const relocateSlotContent = (elm) => {
|
|
|
664
782
|
});
|
|
665
783
|
}
|
|
666
784
|
}
|
|
667
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
785
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
668
786
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
669
787
|
// if we never find a home for this element then we'll need to hide it
|
|
670
788
|
relocateNodes.push({
|
|
@@ -700,6 +818,10 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
700
818
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
701
819
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
702
820
|
hostTagName = hostElm.tagName;
|
|
821
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
822
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
823
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
824
|
+
}
|
|
703
825
|
rootVnode.$tag$ = null;
|
|
704
826
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
705
827
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -734,7 +856,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
734
856
|
if (!nodeToRelocate['s-ol']) {
|
|
735
857
|
// add a reference node marking this node's original location
|
|
736
858
|
// keep a reference to this node for later lookups
|
|
737
|
-
orgLocationNode =
|
|
859
|
+
orgLocationNode =
|
|
860
|
+
doc.createTextNode('');
|
|
738
861
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
739
862
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
740
863
|
}
|
|
@@ -758,7 +881,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
758
881
|
}
|
|
759
882
|
}
|
|
760
883
|
}
|
|
761
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
884
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
885
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
762
886
|
// we've checked that it's worth while to relocate
|
|
763
887
|
// since that the node to relocate
|
|
764
888
|
// has a different next sibling or parent relocated
|
|
@@ -790,6 +914,27 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
790
914
|
relocateNodes.length = 0;
|
|
791
915
|
}
|
|
792
916
|
};
|
|
917
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
918
|
+
const createEvent = (ref, name, flags) => {
|
|
919
|
+
const elm = getElement(ref);
|
|
920
|
+
return {
|
|
921
|
+
emit: (detail) => {
|
|
922
|
+
return emitEvent(elm, name, {
|
|
923
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
924
|
+
composed: !!(flags & 2 /* Composed */),
|
|
925
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
926
|
+
detail,
|
|
927
|
+
});
|
|
928
|
+
},
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
/**
|
|
932
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
933
|
+
* @param elm the target of the Event
|
|
934
|
+
* @param name the name to give the custom Event
|
|
935
|
+
* @param opts options for configuring a custom Event
|
|
936
|
+
* @returns the custom Event
|
|
937
|
+
*/
|
|
793
938
|
const emitEvent = (elm, name, opts) => {
|
|
794
939
|
const ev = plt.ce(name, opts);
|
|
795
940
|
elm.dispatchEvent(ev);
|
|
@@ -797,7 +942,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
797
942
|
};
|
|
798
943
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
799
944
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
800
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
945
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
801
946
|
}
|
|
802
947
|
};
|
|
803
948
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -839,7 +984,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
839
984
|
// ok, so turns out there are some child host elements
|
|
840
985
|
// waiting on this parent element to load
|
|
841
986
|
// let's fire off all update callbacks waiting
|
|
842
|
-
rc.map(cb => cb());
|
|
987
|
+
rc.map((cb) => cb());
|
|
843
988
|
elm['s-rc'] = undefined;
|
|
844
989
|
}
|
|
845
990
|
endRender();
|
|
@@ -931,7 +1076,31 @@ const appDidLoad = (who) => {
|
|
|
931
1076
|
const then = (promise, thenFn) => {
|
|
932
1077
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
933
1078
|
};
|
|
934
|
-
const addHydratedFlag = (elm) =>
|
|
1079
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1080
|
+
;
|
|
1081
|
+
/**
|
|
1082
|
+
* Parse a new property value for a given property type.
|
|
1083
|
+
*
|
|
1084
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1085
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1086
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
1087
|
+
* 2. the type stored from `propType`.
|
|
1088
|
+
*
|
|
1089
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1090
|
+
*
|
|
1091
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1092
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1093
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1094
|
+
* ```tsx
|
|
1095
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
1096
|
+
* ```
|
|
1097
|
+
*
|
|
1098
|
+
* HTML prop values on the other hand, will always a string
|
|
1099
|
+
*
|
|
1100
|
+
* @param propValue the new value to coerce to some type
|
|
1101
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
1102
|
+
* @returns the parsed/coerced value
|
|
1103
|
+
*/
|
|
935
1104
|
const parsePropertyValue = (propValue, propType) => {
|
|
936
1105
|
// ensure this value is of the correct prop type
|
|
937
1106
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -964,7 +1133,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
964
1133
|
const flags = hostRef.$flags$;
|
|
965
1134
|
const instance = hostRef.$lazyInstance$ ;
|
|
966
1135
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
967
|
-
|
|
1136
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1137
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1138
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1139
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
968
1140
|
// gadzooks! the property's value has changed!!
|
|
969
1141
|
// set our new value!
|
|
970
1142
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
@@ -985,7 +1157,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
985
1157
|
const members = Object.entries(cmpMeta.$members$);
|
|
986
1158
|
const prototype = Cstr.prototype;
|
|
987
1159
|
members.map(([memberName, [memberFlags]]) => {
|
|
988
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1160
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1161
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
989
1162
|
// proxyComponent - prop
|
|
990
1163
|
Object.defineProperty(prototype, memberName, {
|
|
991
1164
|
get() {
|
|
@@ -1006,6 +1179,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1006
1179
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1007
1180
|
plt.jmp(() => {
|
|
1008
1181
|
const propName = attrNameToPropName.get(attrName);
|
|
1182
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1183
|
+
// in the case where an attribute was set inline.
|
|
1184
|
+
// ```html
|
|
1185
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1186
|
+
// ```
|
|
1187
|
+
//
|
|
1188
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1189
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1190
|
+
//
|
|
1191
|
+
// ```html
|
|
1192
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1193
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1194
|
+
// <script>
|
|
1195
|
+
// // grab non-upgraded component
|
|
1196
|
+
// el = document.querySelector("#test");
|
|
1197
|
+
// el.someAttribute = "another-value";
|
|
1198
|
+
// // upgrade component
|
|
1199
|
+
// customElements.define('my-component', MyComponent);
|
|
1200
|
+
// </script>
|
|
1201
|
+
// ```
|
|
1202
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1203
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1204
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1205
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1206
|
+
//
|
|
1207
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1208
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1209
|
+
//
|
|
1210
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1211
|
+
//
|
|
1212
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1213
|
+
// properties here given that this goes against best practices outlined here
|
|
1214
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1215
|
+
if (this.hasOwnProperty(propName)) {
|
|
1216
|
+
newValue = this[propName];
|
|
1217
|
+
delete this[propName];
|
|
1218
|
+
}
|
|
1219
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1220
|
+
typeof this[propName] === 'number' &&
|
|
1221
|
+
this[propName] == newValue) {
|
|
1222
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1223
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1224
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1009
1227
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1010
1228
|
});
|
|
1011
1229
|
};
|
|
@@ -1016,6 +1234,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1016
1234
|
.map(([propName, m]) => {
|
|
1017
1235
|
const attrName = m[1] || propName;
|
|
1018
1236
|
attrNameToPropName.set(attrName, propName);
|
|
1237
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1238
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1239
|
+
}
|
|
1019
1240
|
return attrName;
|
|
1020
1241
|
});
|
|
1021
1242
|
}
|
|
@@ -1079,7 +1300,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1079
1300
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1080
1301
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1081
1302
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1082
|
-
// this is the
|
|
1303
|
+
// this is the initial load and this component it has an ancestor component
|
|
1083
1304
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1084
1305
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1085
1306
|
// this will get fired off when the ancestor component
|
|
@@ -1170,71 +1391,80 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1170
1391
|
let isBootstrapping = true;
|
|
1171
1392
|
Object.assign(plt, options);
|
|
1172
1393
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1173
|
-
lazyBundles.map(lazyBundle =>
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1394
|
+
lazyBundles.map((lazyBundle) => {
|
|
1395
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1396
|
+
const cmpMeta = {
|
|
1397
|
+
$flags$: compactMeta[0],
|
|
1398
|
+
$tagName$: compactMeta[1],
|
|
1399
|
+
$members$: compactMeta[2],
|
|
1400
|
+
$listeners$: compactMeta[3],
|
|
1401
|
+
};
|
|
1402
|
+
{
|
|
1403
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1404
|
+
}
|
|
1405
|
+
{
|
|
1406
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1407
|
+
}
|
|
1408
|
+
const tagName = cmpMeta.$tagName$;
|
|
1409
|
+
const HostElement = class extends HTMLElement {
|
|
1410
|
+
// StencilLazyHost
|
|
1411
|
+
constructor(self) {
|
|
1412
|
+
// @ts-ignore
|
|
1413
|
+
super(self);
|
|
1414
|
+
self = this;
|
|
1415
|
+
registerHost(self, cmpMeta);
|
|
1416
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1417
|
+
// this component is using shadow dom
|
|
1418
|
+
// and this browser supports shadow dom
|
|
1419
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1420
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1197
1421
|
{
|
|
1198
|
-
|
|
1422
|
+
{
|
|
1423
|
+
self.attachShadow({ mode: 'open' });
|
|
1424
|
+
}
|
|
1199
1425
|
}
|
|
1200
1426
|
}
|
|
1201
1427
|
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1428
|
+
connectedCallback() {
|
|
1429
|
+
if (appLoadFallback) {
|
|
1430
|
+
clearTimeout(appLoadFallback);
|
|
1431
|
+
appLoadFallback = null;
|
|
1432
|
+
}
|
|
1433
|
+
if (isBootstrapping) {
|
|
1434
|
+
// connectedCallback will be processed once all components have been registered
|
|
1435
|
+
deferredConnectedCallbacks.push(this);
|
|
1436
|
+
}
|
|
1437
|
+
else {
|
|
1438
|
+
plt.jmp(() => connectedCallback(this));
|
|
1439
|
+
}
|
|
1207
1440
|
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
deferredConnectedCallbacks.push(this);
|
|
1441
|
+
disconnectedCallback() {
|
|
1442
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1211
1443
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1444
|
+
componentOnReady() {
|
|
1445
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1214
1446
|
}
|
|
1447
|
+
};
|
|
1448
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1449
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1450
|
+
cmpTags.push(tagName);
|
|
1451
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1215
1452
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1219
|
-
componentOnReady() {
|
|
1220
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1221
|
-
}
|
|
1222
|
-
};
|
|
1223
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1224
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1225
|
-
cmpTags.push(tagName);
|
|
1226
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1227
|
-
}
|
|
1228
|
-
}));
|
|
1453
|
+
});
|
|
1454
|
+
});
|
|
1229
1455
|
{
|
|
1230
1456
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1231
1457
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1458
|
+
const nonceElm = visibilityStyle.ownerDocument.querySelector('style[nonce]');
|
|
1459
|
+
if (nonceElm) {
|
|
1460
|
+
visibilityStyle.setAttribute('nonce', nonceElm.getAttribute('nonce'));
|
|
1461
|
+
}
|
|
1232
1462
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1233
1463
|
}
|
|
1234
1464
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1235
1465
|
isBootstrapping = false;
|
|
1236
1466
|
if (deferredConnectedCallbacks.length) {
|
|
1237
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1467
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1238
1468
|
}
|
|
1239
1469
|
else {
|
|
1240
1470
|
{
|
|
@@ -1255,7 +1485,7 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1255
1485
|
$instanceValues$: new Map(),
|
|
1256
1486
|
};
|
|
1257
1487
|
{
|
|
1258
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1488
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1259
1489
|
elm['s-p'] = [];
|
|
1260
1490
|
elm['s-rc'] = [];
|
|
1261
1491
|
}
|
|
@@ -1276,7 +1506,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1276
1506
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1277
1507
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1278
1508
|
/* webpackMode: "lazy" */
|
|
1279
|
-
`./${bundleId}.entry.js${''}`).then(importedModule => {
|
|
1509
|
+
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
|
1280
1510
|
{
|
|
1281
1511
|
cmpModules.set(bundleId, importedModule);
|
|
1282
1512
|
}
|
|
@@ -1327,4 +1557,4 @@ const flush = () => {
|
|
|
1327
1557
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1328
1558
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1329
1559
|
|
|
1330
|
-
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
|
|
1560
|
+
export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|