@utrecht/web-component-library-stencil 1.0.0-alpha.21 → 1.0.0-alpha.212
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-4628fffe.js → index-8c6952a4.js} +266 -74
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/utrecht-article.cjs.entry.js +3 -3
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- package/dist/cjs/utrecht-textbox.cjs.entry.js +39 -0
- package/dist/cjs/utrecht.cjs.js +3 -3
- package/dist/collection/alternate-lang-nav/css/template.js +12 -0
- package/dist/collection/article/css/template.js +6 -0
- package/dist/collection/article/html/template.js +5 -0
- package/dist/collection/article/{bem.css → web-component/index.css} +12 -1
- package/dist/collection/article/{stencil.js → web-component/index.stencil.js} +3 -3
- package/dist/collection/article/web-component/template.js +1 -0
- package/dist/collection/backdrop/css/template.js +28 -0
- package/dist/collection/backdrop/web-component/index.css +33 -0
- package/dist/collection/backdrop/web-component/index.stencil.js +40 -0
- package/dist/collection/backdrop/web-component/template.js +17 -0
- package/dist/collection/badge-counter/css/template.js +7 -0
- package/dist/collection/badge-counter/{bem.css → web-component/index.css} +16 -2
- package/dist/collection/badge-counter/{stencil.js → web-component/index.stencil.js} +5 -5
- package/dist/collection/badge-counter/web-component/template.js +4 -0
- package/dist/collection/badge-data/css/template.js +6 -0
- package/dist/collection/badge-data/{bem.css → web-component/index.css} +15 -1
- package/dist/collection/badge-data/{stencil.js → web-component/index.stencil.js} +3 -3
- package/dist/collection/badge-data/web-component/template.js +1 -0
- package/dist/collection/badge-status/css/template.js +7 -0
- package/dist/collection/badge-status/{bem.css → web-component/index.css} +20 -1
- package/dist/collection/badge-status/{stencil.js → web-component/index.stencil.js} +4 -4
- package/dist/collection/badge-status/web-component/template.js +4 -0
- package/dist/collection/blockquote/css/template.js +24 -0
- package/dist/collection/blockquote/html/template.js +6 -0
- package/dist/collection/breadcrumb/css/template.js +41 -0
- package/dist/collection/breadcrumb/web-component/index.css +242 -0
- package/dist/collection/breadcrumb/web-component/index.stencil.js +62 -0
- package/dist/collection/breadcrumb/web-component/template.js +4 -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/button-group/css/template.js +13 -0
- package/dist/collection/button-link/css/template.js +25 -0
- package/dist/collection/checkbox/css/template.js +19 -0
- package/dist/collection/checkbox/html/template.js +14 -0
- package/dist/collection/checkbox/web-component/index.css +55 -0
- package/dist/collection/checkbox/web-component/index.stencil.js +164 -0
- package/dist/collection/checkbox/web-component/template.js +8 -0
- package/dist/collection/collection-manifest.json +62 -12
- package/dist/collection/custom-checkbox/css/template.js +46 -0
- package/dist/collection/custom-checkbox/web-component/index.css +184 -0
- package/dist/collection/custom-checkbox/web-component/index.stencil.js +205 -0
- package/dist/collection/custom-checkbox/web-component/template.js +22 -0
- package/dist/collection/digid-button/css/template.js +16 -0
- package/dist/collection/digid-button/web-component/index.css +32 -0
- package/dist/collection/digid-button/web-component/index.stencil.js +41 -0
- package/dist/collection/digid-button/web-component/template.js +1 -0
- package/dist/collection/digid-logo/web-component/index.css +18 -0
- package/dist/collection/digid-logo/web-component/index.stencil.js +23 -0
- package/dist/collection/digid-logo/web-component/template.js +1 -0
- package/dist/collection/document/web-component/index.css +33 -0
- package/dist/collection/document/{stencil.js → web-component/index.stencil.js} +3 -3
- package/dist/collection/document/web-component/template.js +1 -0
- package/dist/collection/eherkenning-logo/web-component/index.css +18 -0
- package/dist/collection/eherkenning-logo/web-component/index.stencil.js +26 -0
- package/dist/collection/eherkenning-logo/web-component/template.js +1 -0
- package/dist/collection/eidas-logo/web-component/index.css +18 -0
- package/dist/collection/eidas-logo/web-component/index.stencil.js +28 -0
- package/dist/collection/eidas-logo/web-component/template.js +1 -0
- package/dist/collection/emphasis/css/template.js +19 -0
- package/dist/collection/emphasis/html/template.js +20 -0
- package/dist/collection/favicon/html/template.js +1 -0
- package/dist/collection/form-field-checkbox/css/template.js +10 -0
- package/dist/collection/form-field-checkbox/web-component/index.css +106 -0
- package/dist/collection/form-field-checkbox/web-component/index.stencil.js +190 -0
- package/dist/collection/form-field-checkbox/web-component/template.js +18 -0
- package/dist/collection/form-field-checkbox-group/css/template.js +33 -0
- package/dist/collection/form-field-description/css/template.js +15 -0
- package/dist/collection/form-field-description/web-component/index.css +39 -0
- package/dist/collection/form-field-description/web-component/index.stencil.js +44 -0
- package/dist/collection/form-field-description/web-component/template.js +4 -0
- package/dist/collection/form-field-radio/css/template.js +10 -0
- package/dist/collection/form-field-radio-group/css/template.js +20 -0
- package/dist/collection/form-field-textarea/web-component/index.css +128 -0
- package/dist/collection/form-field-textarea/web-component/index.stencil.js +205 -0
- package/dist/collection/form-field-textarea/web-component/template.js +14 -0
- package/dist/collection/form-field-textbox/web-component/index.css +135 -0
- package/dist/collection/form-field-textbox/web-component/index.stencil.js +300 -0
- package/dist/collection/form-field-textbox/web-component/template.js +21 -0
- package/dist/collection/form-fieldset/css/template.js +10 -0
- package/dist/collection/form-fieldset/html/template.js +12 -0
- package/dist/collection/form-label/css/template.js +22 -0
- package/dist/collection/form-label/html/template.js +5 -0
- package/dist/collection/form-toggle/css/template.js +47 -0
- package/dist/collection/form-toggle/web-component/index.css +115 -0
- package/dist/collection/form-toggle/web-component/index.stencil.js +148 -0
- package/dist/collection/form-toggle/web-component/template.js +7 -0
- package/dist/collection/heading/{bem.css → web-component/index.css} +72 -37
- package/dist/collection/heading/{stencil.js → web-component/index.stencil.js} +3 -3
- package/dist/collection/heading/web-component/template.js +4 -0
- package/dist/collection/heading-1/css/template.js +11 -0
- package/dist/collection/heading-1/html/template.js +4 -0
- package/dist/collection/heading-1/web-component/index.css +34 -0
- package/dist/collection/heading-1/web-component/index.stencil.js +15 -0
- package/dist/collection/heading-1/web-component/template.js +4 -0
- package/dist/collection/heading-2/css/template.js +11 -0
- package/dist/collection/heading-2/html/template.js +4 -0
- package/dist/collection/heading-2/web-component/index.css +34 -0
- package/dist/collection/heading-2/web-component/index.stencil.js +15 -0
- package/dist/collection/heading-2/web-component/template.js +4 -0
- package/dist/collection/heading-3/css/template.js +11 -0
- package/dist/collection/heading-3/html/template.js +4 -0
- package/dist/collection/heading-3/web-component/index.css +34 -0
- package/dist/collection/heading-3/web-component/index.stencil.js +15 -0
- package/dist/collection/heading-3/web-component/template.js +4 -0
- package/dist/collection/heading-4/css/template.js +11 -0
- package/dist/collection/heading-4/html/template.js +4 -0
- package/dist/collection/heading-4/web-component/index.css +34 -0
- package/dist/collection/heading-4/web-component/index.stencil.js +15 -0
- package/dist/collection/heading-4/web-component/template.js +4 -0
- package/dist/collection/heading-5/css/template.js +11 -0
- package/dist/collection/heading-5/html/template.js +4 -0
- package/dist/collection/heading-5/web-component/index.css +34 -0
- package/dist/collection/heading-5/web-component/index.stencil.js +15 -0
- package/dist/collection/heading-5/web-component/template.js +4 -0
- package/dist/collection/heading-6/css/template.js +11 -0
- package/dist/collection/heading-6/html/template.js +4 -0
- package/dist/collection/heading-6/web-component/index.css +34 -0
- package/dist/collection/heading-6/web-component/index.stencil.js +15 -0
- package/dist/collection/heading-6/web-component/template.js +4 -0
- package/dist/collection/html-content/stencil.css +1209 -0
- package/dist/collection/html-content/stencil.js +3 -3
- 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/svg/afval.svg +7 -0
- package/dist/collection/icon/svg/arrow.svg +9 -0
- package/dist/collection/icon/svg/checkmark.svg +9 -0
- package/dist/collection/icon/svg/cross.svg +9 -0
- package/dist/collection/icon/svg/error.svg +15 -0
- package/dist/collection/icon/svg/facebook.svg +9 -0
- package/dist/collection/icon/svg/filter.svg +6 -0
- package/dist/collection/icon/svg/information.svg +14 -0
- package/dist/collection/icon/svg/instagram.svg +16 -0
- package/dist/collection/icon/svg/linkedin.svg +14 -0
- package/dist/collection/icon/svg/list.svg +9 -0
- package/dist/collection/icon/svg/loupe.svg +11 -0
- package/dist/collection/icon/svg/melding.svg +5 -0
- package/dist/collection/icon/svg/paspoort.svg +5 -0
- package/dist/collection/icon/svg/rijbewijs.svg +8 -0
- package/dist/collection/icon/svg/toeslag.svg +5 -0
- package/dist/collection/icon/svg/trouwen.svg +4 -0
- package/dist/collection/icon/svg/twitter.svg +9 -0
- package/dist/collection/icon/svg/verhuizen.svg +9 -0
- package/dist/collection/icon/svg/warning.svg +19 -0
- package/dist/collection/icon/svg/whatsapp.svg +9 -0
- package/dist/collection/icon/svg/zoomin.svg +13 -0
- package/dist/collection/icon/svg/zoomout.svg +9 -0
- package/dist/collection/icon/web-component/afval.stencil.js +19 -0
- package/dist/collection/icon/web-component/arrow.stencil.js +17 -0
- package/dist/collection/icon/web-component/checkmark.stencil.js +16 -0
- package/dist/collection/icon/web-component/cross.stencil.js +17 -0
- package/dist/collection/icon/web-component/error.stencil.js +18 -0
- package/dist/collection/icon/web-component/facebook.stencil.js +17 -0
- package/dist/collection/icon/web-component/filter.stencil.js +18 -0
- package/dist/collection/icon/web-component/index.css +20 -0
- package/dist/collection/icon/web-component/information.stencil.js +19 -0
- package/dist/collection/icon/web-component/instagram.stencil.js +19 -0
- package/dist/collection/icon/web-component/linkedin.stencil.js +18 -0
- package/dist/collection/icon/web-component/list.stencil.js +21 -0
- package/dist/collection/icon/web-component/loupe.stencil.js +17 -0
- package/dist/collection/icon/web-component/melding.stencil.js +17 -0
- package/dist/collection/icon/web-component/paspoort.stencil.js +17 -0
- package/dist/collection/icon/web-component/rijbewijs.stencil.js +20 -0
- package/dist/collection/icon/web-component/template.js +7 -0
- package/dist/collection/icon/web-component/toeslag.stencil.js +17 -0
- package/dist/collection/icon/web-component/trouwen.stencil.js +16 -0
- package/dist/collection/icon/web-component/twitter.stencil.js +17 -0
- package/dist/collection/icon/web-component/verhuizen.stencil.js +21 -0
- package/dist/collection/icon/web-component/warning.stencil.js +19 -0
- package/dist/collection/icon/web-component/whatsapp.stencil.js +17 -0
- package/dist/collection/icon/web-component/zoomin.stencil.js +18 -0
- package/dist/collection/icon/web-component/zoomout.stencil.js +17 -0
- package/dist/collection/link/css/template.js +57 -0
- package/dist/collection/link/html/template.js +11 -0
- package/dist/collection/link-button/css/template.js +42 -0
- package/dist/collection/link-list/css/template.js +10 -0
- package/dist/collection/link-social/css/template.js +20 -0
- package/dist/collection/logo/css/template.js +33 -0
- package/dist/collection/logo/web-component/index.css +33 -0
- package/dist/collection/logo/web-component/index.stencil.js +26 -0
- package/dist/collection/logo/web-component/template.js +1 -0
- package/dist/collection/logo-button/css/template.js +17 -0
- package/dist/collection/logo-button/web-component/index.css +31 -0
- package/dist/collection/logo-button/web-component/index.stencil.js +41 -0
- package/dist/collection/logo-button/web-component/template.js +1 -0
- package/dist/collection/mapcontrolbutton/css/template.js +34 -0
- package/dist/collection/menulijst/css/template.js +18 -0
- package/dist/collection/navigatie sidenav/css/template.js +69 -0
- package/dist/collection/navigatie sidenav/web-component/index.css +189 -0
- package/dist/collection/navigatie sidenav/web-component/index.stencil.js +45 -0
- package/dist/collection/navigatie sidenav/web-component/template.js +1 -0
- package/dist/collection/navigatie topnav/css/template.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/css/template.js +11 -0
- package/dist/collection/ordered-list/html/template.js +17 -0
- package/dist/collection/page/css/template.js +6 -0
- package/dist/collection/page/web-component/index.css +30 -0
- package/dist/collection/page/web-component/index.stencil.js +20 -0
- package/dist/collection/page/web-component/template.js +5 -0
- package/dist/collection/page-content/css/template.js +10 -0
- package/dist/collection/page-content/web-component/index.css +31 -0
- package/dist/collection/page-content/web-component/index.stencil.js +20 -0
- package/dist/collection/page-content/web-component/template.js +1 -0
- package/dist/collection/page-footer/css/template.js +7 -0
- package/dist/collection/page-footer/{bem.css → web-component/index.css} +30 -12
- package/dist/collection/page-footer/{stencil.js → web-component/index.stencil.js} +3 -3
- package/dist/collection/page-footer/web-component/template.js +1 -0
- package/dist/collection/page-header/css/template.js +6 -0
- package/dist/collection/page-header/web-component/index.css +30 -0
- package/dist/collection/page-header/web-component/stencil.js +20 -0
- package/dist/collection/page-header/web-component/template.js +1 -0
- package/dist/collection/pagination/css/template.js +54 -0
- package/dist/collection/pagination/web-component/index.css +118 -0
- package/dist/collection/pagination/web-component/index.stencil.js +110 -0
- package/dist/collection/pagination/web-component/template.js +7 -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/css/template.js +15 -0
- package/dist/collection/radio-button/css/template.js +19 -0
- package/dist/collection/radio-button/html/template.js +19 -0
- package/dist/collection/search-bar/css/template.js +15 -0
- package/dist/collection/select/css/template.js +39 -0
- package/dist/collection/select/html/template.js +26 -0
- package/dist/collection/separator/css/template.js +16 -0
- package/dist/collection/separator/html/template.js +4 -0
- package/dist/collection/separator/{bem.css → web-component/index.css} +18 -4
- package/dist/collection/separator/{stencil.js → web-component/index.stencil.js} +3 -3
- package/dist/collection/separator/web-component/template.js +1 -0
- package/dist/collection/surface/css/template.js +8 -0
- package/dist/collection/table/html/template.js +41 -0
- package/dist/collection/templates/contact-card-template/css/template.js +30 -0
- package/dist/collection/templates/contact-card-template/web-component/index.css +178 -0
- package/dist/collection/templates/contact-card-template/web-component/index.stencil.js +25 -0
- package/dist/collection/templates/contact-card-template/web-component/template.js +1 -0
- package/dist/collection/textarea/css/template.js +35 -0
- package/dist/collection/textarea/html/template.js +20 -0
- package/dist/collection/textbox/css/template.js +37 -0
- package/dist/collection/textbox/html/template.js +36 -0
- package/dist/collection/textbox/web-component/index.css +98 -0
- package/dist/collection/textbox/web-component/index.stencil.js +297 -0
- package/dist/collection/textbox/web-component/template.js +20 -0
- package/dist/collection/toptask-link/css/template.js +33 -0
- package/dist/collection/toptask-nav/css/template.js +50 -0
- package/dist/collection/unordered-list/css/template.js +28 -0
- package/dist/collection/unordered-list/html/template.js +22 -0
- package/dist/collection/url/css/template.js +14 -0
- package/dist/custom-elements/index.d.ts +300 -0
- package/dist/custom-elements/index.js +1075 -88
- package/dist/esm/{index-73546a7d.js → index-86b2856e.js} +265 -75
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/utrecht-article.entry.js +3 -3
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- package/dist/esm/utrecht-textbox.entry.js +35 -0
- package/dist/esm/utrecht.js +3 -3
- package/dist/types/article/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/backdrop/web-component/index.stencil.d.ts +4 -0
- package/dist/types/badge-counter/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/badge-data/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/badge-status/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/breadcrumb/web-component/index.stencil.d.ts +5 -0
- package/dist/types/button/stencil.d.ts +6 -0
- package/dist/types/checkbox/web-component/index.stencil.d.ts +16 -0
- package/dist/types/components.d.ts +792 -0
- package/dist/types/custom-checkbox/web-component/index.stencil.d.ts +17 -0
- package/dist/types/digid-button/web-component/index.stencil.d.ts +9 -0
- package/dist/types/digid-logo/web-component/index.stencil.d.ts +8 -0
- package/dist/types/document/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/eherkenning-logo/web-component/index.stencil.d.ts +8 -0
- package/dist/types/eidas-logo/web-component/index.stencil.d.ts +8 -0
- package/dist/types/form-field-checkbox/web-component/index.stencil.d.ts +18 -0
- package/dist/types/form-field-description/web-component/index.stencil.d.ts +8 -0
- package/dist/types/form-field-textarea/web-component/index.stencil.d.ts +18 -0
- package/dist/types/form-field-textbox/web-component/index.stencil.d.ts +23 -0
- package/dist/types/form-toggle/web-component/index.stencil.d.ts +14 -0
- package/dist/types/heading/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/heading-1/web-component/index.stencil.d.ts +3 -0
- package/dist/types/heading-2/web-component/index.stencil.d.ts +3 -0
- package/dist/types/heading-3/web-component/index.stencil.d.ts +3 -0
- package/dist/types/heading-4/web-component/index.stencil.d.ts +3 -0
- package/dist/types/heading-5/web-component/index.stencil.d.ts +3 -0
- package/dist/types/heading-6/web-component/index.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/afval.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/arrow.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/checkmark.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/cross.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/error.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/facebook.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/filter.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/information.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/instagram.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/linkedin.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/list.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/loupe.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/melding.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/paspoort.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/rijbewijs.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/toeslag.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/trouwen.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/twitter.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/verhuizen.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/warning.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/whatsapp.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/zoomin.stencil.d.ts +3 -0
- package/dist/types/icon/web-component/zoomout.stencil.d.ts +3 -0
- package/dist/types/logo/web-component/index.stencil.d.ts +7 -0
- package/dist/types/logo-button/web-component/index.stencil.d.ts +9 -0
- package/dist/types/navigatie sidenav/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/page/web-component/index.stencil.d.ts +7 -0
- package/dist/types/page-content/web-component/index.stencil.d.ts +7 -0
- package/dist/types/page-footer/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/page-header/web-component/stencil.d.ts +7 -0
- package/dist/types/pagination/web-component/index.stencil.d.ts +11 -0
- package/dist/types/paragraph/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/separator/{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/web-component/index.stencil.d.ts +3 -0
- package/dist/types/textbox/web-component/index.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-0de41080.entry.js +1 -0
- package/dist/utrecht/p-0dff1f3a.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-20ed6fc5.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-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-8410a51f.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-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-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 -9
- package/dist/article/stencil.js +0 -21
- 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 -633
- package/dist/collection/menulijst/pijltje.svg +0 -1
- package/dist/collection/navigatie sidenav/bem.css +0 -248
- package/dist/collection/navigatie sidenav/stencil.js +0 -40
- 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/navigatie sidenav/stencil.js +0 -30
- package/dist/page-footer/stencil.js +0 -25
- package/dist/paragraph/stencil.js +0 -25
- package/dist/separator/stencil.js +0 -20
- package/dist/utrecht/p-3a69515b.entry.js +0 -1
- package/dist/utrecht/p-6f35490c.entry.js +0 -1
- package/dist/utrecht/p-7157cce8.entry.js +0 -1
- package/dist/utrecht/p-7603f427.entry.js +0 -1
- package/dist/utrecht/p-7bb755d1.entry.js +0 -1
- package/dist/utrecht/p-7e18e0f8.entry.js +0 -1
- package/dist/utrecht/p-9e84c97e.js +0 -1
- package/dist/utrecht/p-b5095fed.entry.js +0 -1
- package/dist/utrecht/p-b5aa001b.entry.js +0 -1
- package/dist/utrecht/p-e1d48327.entry.js +0 -1
- package/dist/utrecht/p-e2fb0e03.entry.js +0 -1
- package/dist/utrecht/p-f8adb4e0.entry.js +0 -1
- package/dist/utrecht/p-fc20c5e2.entry.js +0 -1
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2
|
+
var matchGraph = require('./match-graph');
|
|
3
|
+
var MATCH = matchGraph.MATCH;
|
|
4
|
+
var MISMATCH = matchGraph.MISMATCH;
|
|
5
|
+
var DISALLOW_EMPTY = matchGraph.DISALLOW_EMPTY;
|
|
6
|
+
var TYPE = require('../tokenizer/const').TYPE;
|
|
7
|
+
|
|
8
|
+
var STUB = 0;
|
|
9
|
+
var TOKEN = 1;
|
|
10
|
+
var OPEN_SYNTAX = 2;
|
|
11
|
+
var CLOSE_SYNTAX = 3;
|
|
12
|
+
|
|
13
|
+
var EXIT_REASON_MATCH = 'Match';
|
|
14
|
+
var EXIT_REASON_MISMATCH = 'Mismatch';
|
|
15
|
+
var EXIT_REASON_ITERATION_LIMIT = 'Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)';
|
|
16
|
+
|
|
17
|
+
var ITERATION_LIMIT = 15000;
|
|
18
|
+
var totalIterationCount = 0;
|
|
19
|
+
|
|
20
|
+
function reverseList(list) {
|
|
21
|
+
var prev = null;
|
|
22
|
+
var next = null;
|
|
23
|
+
var item = list;
|
|
24
|
+
|
|
25
|
+
while (item !== null) {
|
|
26
|
+
next = item.prev;
|
|
27
|
+
item.prev = prev;
|
|
28
|
+
prev = item;
|
|
29
|
+
item = next;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return prev;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function areStringsEqualCaseInsensitive(testStr, referenceStr) {
|
|
36
|
+
if (testStr.length !== referenceStr.length) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
for (var i = 0; i < testStr.length; i++) {
|
|
41
|
+
var testCode = testStr.charCodeAt(i);
|
|
42
|
+
var referenceCode = referenceStr.charCodeAt(i);
|
|
43
|
+
|
|
44
|
+
// testCode.toLowerCase() for U+0041 LATIN CAPITAL LETTER A (A) .. U+005A LATIN CAPITAL LETTER Z (Z).
|
|
45
|
+
if (testCode >= 0x0041 && testCode <= 0x005A) {
|
|
46
|
+
testCode = testCode | 32;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (testCode !== referenceCode) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function isContextEdgeDelim(token) {
|
|
58
|
+
if (token.type !== TYPE.Delim) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Fix matching for unicode-range: U+30??, U+FF00-FF9F
|
|
63
|
+
// Probably we need to check out previous match instead
|
|
64
|
+
return token.value !== '?';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function isCommaContextStart(token) {
|
|
68
|
+
if (token === null) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
token.type === TYPE.Comma ||
|
|
74
|
+
token.type === TYPE.Function ||
|
|
75
|
+
token.type === TYPE.LeftParenthesis ||
|
|
76
|
+
token.type === TYPE.LeftSquareBracket ||
|
|
77
|
+
token.type === TYPE.LeftCurlyBracket ||
|
|
78
|
+
isContextEdgeDelim(token)
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function isCommaContextEnd(token) {
|
|
83
|
+
if (token === null) {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
token.type === TYPE.RightParenthesis ||
|
|
89
|
+
token.type === TYPE.RightSquareBracket ||
|
|
90
|
+
token.type === TYPE.RightCurlyBracket ||
|
|
91
|
+
token.type === TYPE.Delim
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function internalMatch(tokens, state, syntaxes) {
|
|
96
|
+
function moveToNextToken() {
|
|
97
|
+
do {
|
|
98
|
+
tokenIndex++;
|
|
99
|
+
token = tokenIndex < tokens.length ? tokens[tokenIndex] : null;
|
|
100
|
+
} while (token !== null && (token.type === TYPE.WhiteSpace || token.type === TYPE.Comment));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function getNextToken(offset) {
|
|
104
|
+
var nextIndex = tokenIndex + offset;
|
|
105
|
+
|
|
106
|
+
return nextIndex < tokens.length ? tokens[nextIndex] : null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function stateSnapshotFromSyntax(nextState, prev) {
|
|
110
|
+
return {
|
|
111
|
+
nextState: nextState,
|
|
112
|
+
matchStack: matchStack,
|
|
113
|
+
syntaxStack: syntaxStack,
|
|
114
|
+
thenStack: thenStack,
|
|
115
|
+
tokenIndex: tokenIndex,
|
|
116
|
+
prev: prev
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function pushThenStack(nextState) {
|
|
121
|
+
thenStack = {
|
|
122
|
+
nextState: nextState,
|
|
123
|
+
matchStack: matchStack,
|
|
124
|
+
syntaxStack: syntaxStack,
|
|
125
|
+
prev: thenStack
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function pushElseStack(nextState) {
|
|
130
|
+
elseStack = stateSnapshotFromSyntax(nextState, elseStack);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function addTokenToMatch() {
|
|
134
|
+
matchStack = {
|
|
135
|
+
type: TOKEN,
|
|
136
|
+
syntax: state.syntax,
|
|
137
|
+
token: token,
|
|
138
|
+
prev: matchStack
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
moveToNextToken();
|
|
142
|
+
syntaxStash = null;
|
|
143
|
+
|
|
144
|
+
if (tokenIndex > longestMatch) {
|
|
145
|
+
longestMatch = tokenIndex;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function openSyntax() {
|
|
150
|
+
syntaxStack = {
|
|
151
|
+
syntax: state.syntax,
|
|
152
|
+
opts: state.syntax.opts || (syntaxStack !== null && syntaxStack.opts) || null,
|
|
153
|
+
prev: syntaxStack
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
matchStack = {
|
|
157
|
+
type: OPEN_SYNTAX,
|
|
158
|
+
syntax: state.syntax,
|
|
159
|
+
token: matchStack.token,
|
|
160
|
+
prev: matchStack
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function closeSyntax() {
|
|
165
|
+
if (matchStack.type === OPEN_SYNTAX) {
|
|
166
|
+
matchStack = matchStack.prev;
|
|
167
|
+
} else {
|
|
168
|
+
matchStack = {
|
|
169
|
+
type: CLOSE_SYNTAX,
|
|
170
|
+
syntax: syntaxStack.syntax,
|
|
171
|
+
token: matchStack.token,
|
|
172
|
+
prev: matchStack
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
syntaxStack = syntaxStack.prev;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
var syntaxStack = null;
|
|
180
|
+
var thenStack = null;
|
|
181
|
+
var elseStack = null;
|
|
182
|
+
|
|
183
|
+
// null – stashing allowed, nothing stashed
|
|
184
|
+
// false – stashing disabled, nothing stashed
|
|
185
|
+
// anithing else – fail stashable syntaxes, some syntax stashed
|
|
186
|
+
var syntaxStash = null;
|
|
187
|
+
|
|
188
|
+
var iterationCount = 0; // count iterations and prevent infinite loop
|
|
189
|
+
var exitReason = null;
|
|
190
|
+
|
|
191
|
+
var token = null;
|
|
192
|
+
var tokenIndex = -1;
|
|
193
|
+
var longestMatch = 0;
|
|
194
|
+
var matchStack = {
|
|
195
|
+
type: STUB,
|
|
196
|
+
syntax: null,
|
|
197
|
+
token: null,
|
|
198
|
+
prev: null
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
moveToNextToken();
|
|
202
|
+
|
|
203
|
+
while (exitReason === null && ++iterationCount < ITERATION_LIMIT) {
|
|
204
|
+
// function mapList(list, fn) {
|
|
205
|
+
// var result = [];
|
|
206
|
+
// while (list) {
|
|
207
|
+
// result.unshift(fn(list));
|
|
208
|
+
// list = list.prev;
|
|
209
|
+
// }
|
|
210
|
+
// return result;
|
|
211
|
+
// }
|
|
212
|
+
// console.log('--\n',
|
|
213
|
+
// '#' + iterationCount,
|
|
214
|
+
// require('util').inspect({
|
|
215
|
+
// match: mapList(matchStack, x => x.type === TOKEN ? x.token && x.token.value : x.syntax ? ({ [OPEN_SYNTAX]: '<', [CLOSE_SYNTAX]: '</' }[x.type] || x.type) + '!' + x.syntax.name : null),
|
|
216
|
+
// token: token && token.value,
|
|
217
|
+
// tokenIndex,
|
|
218
|
+
// syntax: syntax.type + (syntax.id ? ' #' + syntax.id : '')
|
|
219
|
+
// }, { depth: null })
|
|
220
|
+
// );
|
|
221
|
+
switch (state.type) {
|
|
222
|
+
case 'Match':
|
|
223
|
+
if (thenStack === null) {
|
|
224
|
+
// turn to MISMATCH when some tokens left unmatched
|
|
225
|
+
if (token !== null) {
|
|
226
|
+
// doesn't mismatch if just one token left and it's an IE hack
|
|
227
|
+
if (tokenIndex !== tokens.length - 1 || (token.value !== '\\0' && token.value !== '\\9')) {
|
|
228
|
+
state = MISMATCH;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// break the main loop, return a result - MATCH
|
|
234
|
+
exitReason = EXIT_REASON_MATCH;
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// go to next syntax (`then` branch)
|
|
239
|
+
state = thenStack.nextState;
|
|
240
|
+
|
|
241
|
+
// check match is not empty
|
|
242
|
+
if (state === DISALLOW_EMPTY) {
|
|
243
|
+
if (thenStack.matchStack === matchStack) {
|
|
244
|
+
state = MISMATCH;
|
|
245
|
+
break;
|
|
246
|
+
} else {
|
|
247
|
+
state = MATCH;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// close syntax if needed
|
|
252
|
+
while (thenStack.syntaxStack !== syntaxStack) {
|
|
253
|
+
closeSyntax();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// pop stack
|
|
257
|
+
thenStack = thenStack.prev;
|
|
258
|
+
break;
|
|
259
|
+
|
|
260
|
+
case 'Mismatch':
|
|
261
|
+
// when some syntax is stashed
|
|
262
|
+
if (syntaxStash !== null && syntaxStash !== false) {
|
|
263
|
+
// there is no else branches or a branch reduce match stack
|
|
264
|
+
if (elseStack === null || tokenIndex > elseStack.tokenIndex) {
|
|
265
|
+
// restore state from the stash
|
|
266
|
+
elseStack = syntaxStash;
|
|
267
|
+
syntaxStash = false; // disable stashing
|
|
268
|
+
}
|
|
269
|
+
} else if (elseStack === null) {
|
|
270
|
+
// no else branches -> break the main loop
|
|
271
|
+
// return a result - MISMATCH
|
|
272
|
+
exitReason = EXIT_REASON_MISMATCH;
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// go to next syntax (`else` branch)
|
|
277
|
+
state = elseStack.nextState;
|
|
278
|
+
|
|
279
|
+
// restore all the rest stack states
|
|
280
|
+
thenStack = elseStack.thenStack;
|
|
281
|
+
syntaxStack = elseStack.syntaxStack;
|
|
282
|
+
matchStack = elseStack.matchStack;
|
|
283
|
+
tokenIndex = elseStack.tokenIndex;
|
|
284
|
+
token = tokenIndex < tokens.length ? tokens[tokenIndex] : null;
|
|
285
|
+
|
|
286
|
+
// pop stack
|
|
287
|
+
elseStack = elseStack.prev;
|
|
288
|
+
break;
|
|
289
|
+
|
|
290
|
+
case 'MatchGraph':
|
|
291
|
+
state = state.match;
|
|
292
|
+
break;
|
|
293
|
+
|
|
294
|
+
case 'If':
|
|
295
|
+
// IMPORTANT: else stack push must go first,
|
|
296
|
+
// since it stores the state of thenStack before changes
|
|
297
|
+
if (state.else !== MISMATCH) {
|
|
298
|
+
pushElseStack(state.else);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (state.then !== MATCH) {
|
|
302
|
+
pushThenStack(state.then);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
state = state.match;
|
|
306
|
+
break;
|
|
307
|
+
|
|
308
|
+
case 'MatchOnce':
|
|
309
|
+
state = {
|
|
310
|
+
type: 'MatchOnceBuffer',
|
|
311
|
+
syntax: state,
|
|
312
|
+
index: 0,
|
|
313
|
+
mask: 0
|
|
314
|
+
};
|
|
315
|
+
break;
|
|
316
|
+
|
|
317
|
+
case 'MatchOnceBuffer':
|
|
318
|
+
var terms = state.syntax.terms;
|
|
319
|
+
|
|
320
|
+
if (state.index === terms.length) {
|
|
321
|
+
// no matches at all or it's required all terms to be matched
|
|
322
|
+
if (state.mask === 0 || state.syntax.all) {
|
|
323
|
+
state = MISMATCH;
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// a partial match is ok
|
|
328
|
+
state = MATCH;
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// all terms are matched
|
|
333
|
+
if (state.mask === (1 << terms.length) - 1) {
|
|
334
|
+
state = MATCH;
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
for (; state.index < terms.length; state.index++) {
|
|
339
|
+
var matchFlag = 1 << state.index;
|
|
340
|
+
|
|
341
|
+
if ((state.mask & matchFlag) === 0) {
|
|
342
|
+
// IMPORTANT: else stack push must go first,
|
|
343
|
+
// since it stores the state of thenStack before changes
|
|
344
|
+
pushElseStack(state);
|
|
345
|
+
pushThenStack({
|
|
346
|
+
type: 'AddMatchOnce',
|
|
347
|
+
syntax: state.syntax,
|
|
348
|
+
mask: state.mask | matchFlag
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// match
|
|
352
|
+
state = terms[state.index++];
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
break;
|
|
357
|
+
|
|
358
|
+
case 'AddMatchOnce':
|
|
359
|
+
state = {
|
|
360
|
+
type: 'MatchOnceBuffer',
|
|
361
|
+
syntax: state.syntax,
|
|
362
|
+
index: 0,
|
|
363
|
+
mask: state.mask
|
|
364
|
+
};
|
|
365
|
+
break;
|
|
366
|
+
|
|
367
|
+
case 'Enum':
|
|
368
|
+
if (token !== null) {
|
|
369
|
+
var name = token.value.toLowerCase();
|
|
370
|
+
|
|
371
|
+
// drop \0 and \9 hack from keyword name
|
|
372
|
+
if (name.indexOf('\\') !== -1) {
|
|
373
|
+
name = name.replace(/\\[09].*$/, '');
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (hasOwnProperty.call(state.map, name)) {
|
|
377
|
+
state = state.map[name];
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
state = MISMATCH;
|
|
383
|
+
break;
|
|
384
|
+
|
|
385
|
+
case 'Generic':
|
|
386
|
+
var opts = syntaxStack !== null ? syntaxStack.opts : null;
|
|
387
|
+
var lastTokenIndex = tokenIndex + Math.floor(state.fn(token, getNextToken, opts));
|
|
388
|
+
|
|
389
|
+
if (!isNaN(lastTokenIndex) && lastTokenIndex > tokenIndex) {
|
|
390
|
+
while (tokenIndex < lastTokenIndex) {
|
|
391
|
+
addTokenToMatch();
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
state = MATCH;
|
|
395
|
+
} else {
|
|
396
|
+
state = MISMATCH;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
break;
|
|
400
|
+
|
|
401
|
+
case 'Type':
|
|
402
|
+
case 'Property':
|
|
403
|
+
var syntaxDict = state.type === 'Type' ? 'types' : 'properties';
|
|
404
|
+
var dictSyntax = hasOwnProperty.call(syntaxes, syntaxDict) ? syntaxes[syntaxDict][state.name] : null;
|
|
405
|
+
|
|
406
|
+
if (!dictSyntax || !dictSyntax.match) {
|
|
407
|
+
throw new Error(
|
|
408
|
+
'Bad syntax reference: ' +
|
|
409
|
+
(state.type === 'Type'
|
|
410
|
+
? '<' + state.name + '>'
|
|
411
|
+
: '<\'' + state.name + '\'>')
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// stash a syntax for types with low priority
|
|
416
|
+
if (syntaxStash !== false && token !== null && state.type === 'Type') {
|
|
417
|
+
var lowPriorityMatching =
|
|
418
|
+
// https://drafts.csswg.org/css-values-4/#custom-idents
|
|
419
|
+
// When parsing positionally-ambiguous keywords in a property value, a <custom-ident> production
|
|
420
|
+
// can only claim the keyword if no other unfulfilled production can claim it.
|
|
421
|
+
(state.name === 'custom-ident' && token.type === TYPE.Ident) ||
|
|
422
|
+
|
|
423
|
+
// https://drafts.csswg.org/css-values-4/#lengths
|
|
424
|
+
// ... if a `0` could be parsed as either a <number> or a <length> in a property (such as line-height),
|
|
425
|
+
// it must parse as a <number>
|
|
426
|
+
(state.name === 'length' && token.value === '0');
|
|
427
|
+
|
|
428
|
+
if (lowPriorityMatching) {
|
|
429
|
+
if (syntaxStash === null) {
|
|
430
|
+
syntaxStash = stateSnapshotFromSyntax(state, elseStack);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
state = MISMATCH;
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
openSyntax();
|
|
439
|
+
state = dictSyntax.match;
|
|
440
|
+
break;
|
|
441
|
+
|
|
442
|
+
case 'Keyword':
|
|
443
|
+
var name = state.name;
|
|
444
|
+
|
|
445
|
+
if (token !== null) {
|
|
446
|
+
var keywordName = token.value;
|
|
447
|
+
|
|
448
|
+
// drop \0 and \9 hack from keyword name
|
|
449
|
+
if (keywordName.indexOf('\\') !== -1) {
|
|
450
|
+
keywordName = keywordName.replace(/\\[09].*$/, '');
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if (areStringsEqualCaseInsensitive(keywordName, name)) {
|
|
454
|
+
addTokenToMatch();
|
|
455
|
+
state = MATCH;
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
state = MISMATCH;
|
|
461
|
+
break;
|
|
462
|
+
|
|
463
|
+
case 'AtKeyword':
|
|
464
|
+
case 'Function':
|
|
465
|
+
if (token !== null && areStringsEqualCaseInsensitive(token.value, state.name)) {
|
|
466
|
+
addTokenToMatch();
|
|
467
|
+
state = MATCH;
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
state = MISMATCH;
|
|
472
|
+
break;
|
|
473
|
+
|
|
474
|
+
case 'Token':
|
|
475
|
+
if (token !== null && token.value === state.value) {
|
|
476
|
+
addTokenToMatch();
|
|
477
|
+
state = MATCH;
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
state = MISMATCH;
|
|
482
|
+
break;
|
|
483
|
+
|
|
484
|
+
case 'Comma':
|
|
485
|
+
if (token !== null && token.type === TYPE.Comma) {
|
|
486
|
+
if (isCommaContextStart(matchStack.token)) {
|
|
487
|
+
state = MISMATCH;
|
|
488
|
+
} else {
|
|
489
|
+
addTokenToMatch();
|
|
490
|
+
state = isCommaContextEnd(token) ? MISMATCH : MATCH;
|
|
491
|
+
}
|
|
492
|
+
} else {
|
|
493
|
+
state = isCommaContextStart(matchStack.token) || isCommaContextEnd(token) ? MATCH : MISMATCH;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
break;
|
|
497
|
+
|
|
498
|
+
case 'String':
|
|
499
|
+
var string = '';
|
|
500
|
+
|
|
501
|
+
for (var lastTokenIndex = tokenIndex; lastTokenIndex < tokens.length && string.length < state.value.length; lastTokenIndex++) {
|
|
502
|
+
string += tokens[lastTokenIndex].value;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (areStringsEqualCaseInsensitive(string, state.value)) {
|
|
506
|
+
while (tokenIndex < lastTokenIndex) {
|
|
507
|
+
addTokenToMatch();
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
state = MATCH;
|
|
511
|
+
} else {
|
|
512
|
+
state = MISMATCH;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
break;
|
|
516
|
+
|
|
517
|
+
default:
|
|
518
|
+
throw new Error('Unknown node type: ' + state.type);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
totalIterationCount += iterationCount;
|
|
523
|
+
|
|
524
|
+
switch (exitReason) {
|
|
525
|
+
case null:
|
|
526
|
+
console.warn('[csstree-match] BREAK after ' + ITERATION_LIMIT + ' iterations');
|
|
527
|
+
exitReason = EXIT_REASON_ITERATION_LIMIT;
|
|
528
|
+
matchStack = null;
|
|
529
|
+
break;
|
|
530
|
+
|
|
531
|
+
case EXIT_REASON_MATCH:
|
|
532
|
+
while (syntaxStack !== null) {
|
|
533
|
+
closeSyntax();
|
|
534
|
+
}
|
|
535
|
+
break;
|
|
536
|
+
|
|
537
|
+
default:
|
|
538
|
+
matchStack = null;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
return {
|
|
542
|
+
tokens: tokens,
|
|
543
|
+
reason: exitReason,
|
|
544
|
+
iterations: iterationCount,
|
|
545
|
+
match: matchStack,
|
|
546
|
+
longestMatch: longestMatch
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
function matchAsList(tokens, matchGraph, syntaxes) {
|
|
551
|
+
var matchResult = internalMatch(tokens, matchGraph, syntaxes || {});
|
|
552
|
+
|
|
553
|
+
if (matchResult.match !== null) {
|
|
554
|
+
var item = reverseList(matchResult.match).prev;
|
|
555
|
+
|
|
556
|
+
matchResult.match = [];
|
|
557
|
+
|
|
558
|
+
while (item !== null) {
|
|
559
|
+
switch (item.type) {
|
|
560
|
+
case STUB:
|
|
561
|
+
break;
|
|
562
|
+
|
|
563
|
+
case OPEN_SYNTAX:
|
|
564
|
+
case CLOSE_SYNTAX:
|
|
565
|
+
matchResult.match.push({
|
|
566
|
+
type: item.type,
|
|
567
|
+
syntax: item.syntax
|
|
568
|
+
});
|
|
569
|
+
break;
|
|
570
|
+
|
|
571
|
+
default:
|
|
572
|
+
matchResult.match.push({
|
|
573
|
+
token: item.token.value,
|
|
574
|
+
node: item.token.node
|
|
575
|
+
});
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
item = item.prev;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
return matchResult;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function matchAsTree(tokens, matchGraph, syntaxes) {
|
|
587
|
+
var matchResult = internalMatch(tokens, matchGraph, syntaxes || {});
|
|
588
|
+
|
|
589
|
+
if (matchResult.match === null) {
|
|
590
|
+
return matchResult;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
var item = matchResult.match;
|
|
594
|
+
var host = matchResult.match = {
|
|
595
|
+
syntax: matchGraph.syntax || null,
|
|
596
|
+
match: []
|
|
597
|
+
};
|
|
598
|
+
var hostStack = [host];
|
|
599
|
+
|
|
600
|
+
// revert a list and start with 2nd item since 1st is a stub item
|
|
601
|
+
item = reverseList(item).prev;
|
|
602
|
+
|
|
603
|
+
// build a tree
|
|
604
|
+
while (item !== null) {
|
|
605
|
+
switch (item.type) {
|
|
606
|
+
case OPEN_SYNTAX:
|
|
607
|
+
host.match.push(host = {
|
|
608
|
+
syntax: item.syntax,
|
|
609
|
+
match: []
|
|
610
|
+
});
|
|
611
|
+
hostStack.push(host);
|
|
612
|
+
break;
|
|
613
|
+
|
|
614
|
+
case CLOSE_SYNTAX:
|
|
615
|
+
hostStack.pop();
|
|
616
|
+
host = hostStack[hostStack.length - 1];
|
|
617
|
+
break;
|
|
618
|
+
|
|
619
|
+
default:
|
|
620
|
+
host.match.push({
|
|
621
|
+
syntax: item.syntax || null,
|
|
622
|
+
token: item.token.value,
|
|
623
|
+
node: item.token.node
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
item = item.prev;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
return matchResult;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
module.exports = {
|
|
634
|
+
matchAsList: matchAsList,
|
|
635
|
+
matchAsTree: matchAsTree,
|
|
636
|
+
getTotalIterationCount: function() {
|
|
637
|
+
return totalIterationCount;
|
|
638
|
+
}
|
|
639
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var tokenize = require('../tokenizer');
|
|
2
|
+
var TokenStream = require('../common/TokenStream');
|
|
3
|
+
var tokenStream = new TokenStream();
|
|
4
|
+
var astToTokens = {
|
|
5
|
+
decorator: function(handlers) {
|
|
6
|
+
var curNode = null;
|
|
7
|
+
var prev = { len: 0, node: null };
|
|
8
|
+
var nodes = [prev];
|
|
9
|
+
var buffer = '';
|
|
10
|
+
|
|
11
|
+
return {
|
|
12
|
+
children: handlers.children,
|
|
13
|
+
node: function(node) {
|
|
14
|
+
var tmp = curNode;
|
|
15
|
+
curNode = node;
|
|
16
|
+
handlers.node.call(this, node);
|
|
17
|
+
curNode = tmp;
|
|
18
|
+
},
|
|
19
|
+
chunk: function(chunk) {
|
|
20
|
+
buffer += chunk;
|
|
21
|
+
if (prev.node !== curNode) {
|
|
22
|
+
nodes.push({
|
|
23
|
+
len: chunk.length,
|
|
24
|
+
node: curNode
|
|
25
|
+
});
|
|
26
|
+
} else {
|
|
27
|
+
prev.len += chunk.length;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
result: function() {
|
|
31
|
+
return prepareTokens(buffer, nodes);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
function prepareTokens(str, nodes) {
|
|
38
|
+
var tokens = [];
|
|
39
|
+
var nodesOffset = 0;
|
|
40
|
+
var nodesIndex = 0;
|
|
41
|
+
var currentNode = nodes ? nodes[nodesIndex].node : null;
|
|
42
|
+
|
|
43
|
+
tokenize(str, tokenStream);
|
|
44
|
+
|
|
45
|
+
while (!tokenStream.eof) {
|
|
46
|
+
if (nodes) {
|
|
47
|
+
while (nodesIndex < nodes.length && nodesOffset + nodes[nodesIndex].len <= tokenStream.tokenStart) {
|
|
48
|
+
nodesOffset += nodes[nodesIndex++].len;
|
|
49
|
+
currentNode = nodes[nodesIndex].node;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
tokens.push({
|
|
54
|
+
type: tokenStream.tokenType,
|
|
55
|
+
value: tokenStream.getTokenValue(),
|
|
56
|
+
index: tokenStream.tokenIndex, // TODO: remove it, temporary solution
|
|
57
|
+
balance: tokenStream.balance[tokenStream.tokenIndex], // TODO: remove it, temporary solution
|
|
58
|
+
node: currentNode
|
|
59
|
+
});
|
|
60
|
+
tokenStream.next();
|
|
61
|
+
// console.log({ ...tokens[tokens.length - 1], node: undefined });
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return tokens;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
module.exports = function(value, syntax) {
|
|
68
|
+
if (typeof value === 'string') {
|
|
69
|
+
return prepareTokens(value, null);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return syntax.generate(value, astToTokens);
|
|
73
|
+
};
|