@oiz/stzh-components 2.2.0 → 2.3.0-alpha2
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/dist/cjs/{app-globals-b6d82414.js → app-globals-03f189c4.js} +1 -1
- package/dist/cjs/{arrow-3c3b0ae5.js → arrow-cd521f34.js} +468 -478
- package/dist/cjs/axios-7ec96df7.js +3167 -0
- package/dist/cjs/{dom-9deb26c8.js → dom-be1edfde.js} +1 -1
- package/dist/cjs/{focus-trap.esm-1cb6bb2e.js → focus-trap.esm-34a1a0d0.js} +188 -278
- package/dist/cjs/{index-9fcb4305.js → index-83d427ee.js} +113 -3
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{shadow-css-bf3843d2.js → shadow-css-54f5c2d9.js} +1 -1
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actions.cjs.entry.js +2 -2
- package/dist/cjs/stzh-actionset.cjs.entry.js +15 -5
- package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
- package/dist/cjs/stzh-appnav.cjs.entry.js +2 -2
- package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +2 -2
- package/dist/cjs/stzh-badge_3.cjs.entry.js +7 -3
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +23 -17
- package/dist/cjs/stzh-cell.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -3
- package/dist/cjs/stzh-chip_2.cjs.entry.js +132 -0
- package/dist/cjs/stzh-components.cjs.js +27 -5
- package/dist/cjs/stzh-contact.cjs.entry.js +91 -0
- package/dist/cjs/stzh-container.cjs.entry.js +3 -2
- package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +48 -15
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +32 -31
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +3 -3
- package/dist/cjs/stzh-details.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dialog.cjs.entry.js +3 -3
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1062 -427
- package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
- package/dist/cjs/stzh-figure.cjs.entry.js +6 -4
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +3 -3
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +4 -4
- package/dist/cjs/stzh-header.cjs.entry.js +7 -6
- package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js +4 -3
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
- package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +3 -3
- package/dist/cjs/stzh-invert.cjs.entry.js +23 -0
- package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +2 -2
- package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-list.cjs.entry.js +1 -1
- package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-message.cjs.entry.js +1 -1
- package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
- package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
- package/dist/cjs/stzh-overlay.cjs.entry.js +2 -2
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +5 -2
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +3 -3
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +10 -2
- package/dist/cjs/stzh-popover.cjs.entry.js +6 -6
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +6 -4
- package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/stzh-ratio.cjs.entry.js +26 -0
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +2 -2
- package/dist/cjs/stzh-row.cjs.entry.js +2 -2
- package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +2 -2
- package/dist/cjs/stzh-share.cjs.entry.js +1 -1
- package/dist/cjs/stzh-show.cjs.entry.js +41 -0
- package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
- package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +12 -68
- package/dist/cjs/stzh-space.cjs.entry.js +34 -0
- package/dist/cjs/stzh-status.cjs.entry.js +2 -2
- package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
- package/dist/cjs/stzh-table.cjs.entry.js +4 -3
- package/dist/cjs/stzh-text.cjs.entry.js +2 -2
- package/dist/cjs/stzh-textandimage.cjs.entry.js +2 -2
- package/dist/cjs/stzh-toggle.cjs.entry.js +3 -3
- package/dist/cjs/stzh-tooltip.cjs.entry.js +6 -6
- package/dist/cjs/stzh-upload.cjs.entry.js +7 -4
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +782 -690
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -7
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +3 -3
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +4 -3
- package/dist/cjs/{utils-ff153309.js → utils-a2ff9f84.js} +39 -11
- package/dist/collection/assets/i18n/de.json +4 -4
- package/dist/collection/assets/i18n/en.json +1 -1
- package/dist/collection/assets/icons/mono/calculator.svg +10 -0
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/components/stzh-actionset/stzh-actionset.css +11 -0
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +18 -8
- package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +5 -5
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +1 -3
- package/dist/collection/components/stzh-button/stzh-button.css +38 -6
- package/dist/collection/components/stzh-button/stzh-button.js +40 -0
- package/dist/collection/components/stzh-button/stzh-button.stories.js +19 -6
- package/dist/collection/components/stzh-card/stzh-card.css +3 -18
- package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
- package/dist/collection/components/stzh-card-list/stzh-card-list.js +2 -2
- package/dist/collection/components/stzh-cell/stzh-cell.css +5 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +23 -5
- package/dist/collection/components/stzh-chip/stzh-chip.js +34 -5
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +6 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +22 -11
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +5 -0
- package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.css → stzh-contact/stzh-contact.css} +22 -22
- package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.js → stzh-contact/stzh-contact.js} +25 -25
- package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.stories.js → stzh-contact/stzh-contact.stories.js} +10 -9
- package/dist/collection/components/stzh-container/stzh-container.css +19 -1
- package/dist/collection/components/stzh-container/stzh-container.js +26 -1
- package/dist/collection/components/stzh-container/stzh-container.stories.js +6 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +142 -47
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +14 -2
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +20 -1
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +19 -6
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +79 -25
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +103 -15
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +20 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +31 -10
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +1 -0
- package/dist/collection/components/stzh-figure/stzh-figure.css +8 -5
- package/dist/collection/components/stzh-figure/stzh-figure.js +21 -1
- package/dist/collection/components/stzh-footer/stzh-footer.css +1 -0
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +12 -1
- package/dist/collection/components/stzh-header/stzh-header.css +5 -1
- package/dist/collection/components/stzh-header/stzh-header.js +4 -3
- package/dist/collection/components/stzh-header/stzh-header.stories.js +46 -38
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +163 -129
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +47 -34
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/collection/components/stzh-invert/stzh-invert.css +158 -0
- package/dist/collection/components/stzh-invert/stzh-invert.js +25 -0
- package/dist/collection/components/stzh-invert/stzh-invert.stories.js +55 -0
- package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
- package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +8 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +6 -6
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +14 -1
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +4 -6
- package/dist/collection/components/stzh-popover/stzh-popover.css +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -7
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +34 -9
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +2 -2
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +2 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +37 -4
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
- package/dist/collection/components/stzh-ratio/stzh-ratio.css +172 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.js +88 -0
- package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +35 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -5
- package/dist/collection/components/stzh-row/stzh-row.css +5 -0
- package/dist/collection/components/stzh-section/stzh-section.css +6 -0
- package/dist/collection/components/stzh-show/stzh-show.css +165 -0
- package/dist/collection/components/stzh-show/stzh-show.js +158 -0
- package/dist/collection/components/stzh-show/stzh-show.stories.js +52 -0
- package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +9 -6
- package/dist/collection/components/stzh-space/stzh-space.css +848 -0
- package/dist/collection/components/stzh-space/stzh-space.js +262 -0
- package/dist/collection/components/stzh-space/stzh-space.stories.js +76 -0
- package/dist/collection/components/stzh-status/stzh-status.css +5 -1
- package/dist/collection/components/stzh-status/stzh-status.js +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +9 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +21 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -1
- package/dist/collection/components/stzh-table/stzh-table.css +3 -0
- package/dist/collection/components/stzh-table/stzh-table.js +19 -0
- package/dist/collection/components/stzh-text/stzh-text.css +2 -2
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +2 -2
- package/dist/collection/components/stzh-upload/stzh-upload.js +4 -1
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +163 -129
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +30 -6
- package/dist/collection/pages/egov.stories.js +190 -182
- package/dist/collection/pages/meinkonto.stories.js +367 -511
- package/dist/collection/pages/microsite.stories.js +235 -0
- package/dist/collection/pages/website.stories.js +142 -0
- package/dist/collection/patterns/appointments.stories.js +2 -2
- package/dist/collection/patterns/contact.stories.js +20 -20
- package/dist/collection/patterns/contactform.stories.js +2 -2
- package/dist/collection/patterns/jobdetails.stories.js +151 -0
- package/dist/collection/patterns/subpages.stories.js +1 -1
- package/dist/collection/patterns/twocolumns.stories.js +46 -0
- package/dist/collection/utils/utils.js +41 -20
- package/dist/components/arrow.js +468 -478
- package/dist/components/axios.js +3165 -0
- package/dist/components/date-utils.js +159 -0
- package/dist/components/focus-trap.esm.js +188 -278
- package/dist/components/index.d.ts +14 -1
- package/dist/components/index.js +7 -3
- package/dist/components/stzh-actionset2.js +16 -6
- package/dist/components/stzh-anchornav.js +1 -1
- package/dist/components/stzh-appointments.js +2 -1
- package/dist/components/stzh-button2.js +7 -1
- package/dist/components/stzh-calendar2.js +2 -159
- package/dist/components/stzh-card-list2.js +2 -2
- package/dist/components/stzh-card2.js +1 -1
- package/dist/components/stzh-cell.js +1 -1
- package/dist/components/stzh-chip-select2.js +28 -15
- package/dist/components/stzh-chip2.js +23 -5
- package/dist/components/stzh-clamp2.js +1 -1
- package/dist/components/{stzh-contactaddress.d.ts → stzh-contact.d.ts} +4 -4
- package/dist/components/stzh-contact.js +163 -0
- package/dist/components/stzh-container.js +5 -2
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist-item2.js +60 -19
- package/dist/components/stzh-datalist2.js +17 -9
- package/dist/components/stzh-datatable.js +32 -30
- package/dist/components/stzh-datepicker2.js +2 -1
- package/dist/components/stzh-dropdown2.js +1060 -424
- package/dist/components/stzh-fieldset.js +1 -1
- package/dist/components/stzh-figure.js +6 -3
- package/dist/components/stzh-footer.js +1 -1
- package/dist/components/stzh-ghettobox2.js +1 -1
- package/dist/components/stzh-header.js +5 -4
- package/dist/components/stzh-hspace.js +8 -5
- package/dist/components/stzh-icon-sprite.js +1 -1
- package/dist/components/stzh-invert.d.ts +11 -0
- package/dist/components/stzh-invert.js +36 -0
- package/dist/components/stzh-microsite-teaserlist.js +1 -1
- package/dist/components/stzh-pagebottom.js +4 -1
- package/dist/components/stzh-pagetitle-hero.js +1 -1
- package/dist/components/stzh-pagetitle.js +8 -0
- package/dist/components/stzh-popover2.js +2 -2
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-progressbar-item2.js +6 -3
- package/dist/components/stzh-progressbar.js +1 -1
- package/dist/components/stzh-ratio.d.ts +11 -0
- package/dist/components/stzh-ratio.js +43 -0
- package/dist/components/stzh-richtext2.js +1 -1
- package/dist/components/stzh-row.js +1 -1
- package/dist/components/stzh-section.js +1 -1
- package/dist/components/stzh-show.d.ts +11 -0
- package/dist/components/stzh-show.js +62 -0
- package/dist/components/stzh-sitemap.js +17 -11
- package/dist/components/stzh-sortable2.js +11 -67
- package/dist/components/stzh-space.d.ts +11 -0
- package/dist/components/stzh-space.js +59 -0
- package/dist/components/stzh-status2.js +2 -2
- package/dist/components/stzh-sticky.js +5 -2
- package/dist/components/stzh-table.js +3 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-tooltip2.js +2 -2
- package/dist/components/stzh-upload.js +4 -1
- package/dist/components/stzh-vbz-linechip2.js +772 -680
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vbz-ticker.js +1 -1
- package/dist/components/stzh-vspace.js +8 -5
- package/dist/components/utils.js +39 -11
- package/dist/esm/{app-globals-ff581b69.js → app-globals-02f560cd.js} +1 -1
- package/dist/esm/{arrow-86a679c7.js → arrow-480bc86f.js} +468 -478
- package/dist/esm/axios-e2b39666.js +3165 -0
- package/dist/esm/{dom-6be6f662.js → dom-c525f6e4.js} +1 -1
- package/dist/esm/{focus-trap.esm-074705a3.js → focus-trap.esm-82634dec.js} +188 -278
- package/dist/esm/{index-011c84fe.js → index-319b7c49.js} +112 -4
- package/dist/esm/loader.js +5 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +1 -1
- package/dist/esm/stzh-accordion-item.entry.js +1 -1
- package/dist/esm/stzh-accordion.entry.js +1 -1
- package/dist/esm/stzh-actions.entry.js +2 -2
- package/dist/esm/stzh-actionset.entry.js +16 -6
- package/dist/esm/stzh-anchornav.entry.js +2 -2
- package/dist/esm/stzh-appnav.entry.js +2 -2
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +2 -2
- package/dist/esm/stzh-badge_3.entry.js +7 -3
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card_3.entry.js +23 -17
- package/dist/esm/stzh-cell.entry.js +2 -2
- package/dist/esm/stzh-chart.entry.js +1 -1
- package/dist/esm/stzh-checkbox.entry.js +3 -3
- package/dist/esm/stzh-checkboxgroup.entry.js +3 -3
- package/dist/esm/stzh-chip_2.entry.js +127 -0
- package/dist/esm/stzh-components.js +24 -5
- package/dist/esm/stzh-contact.entry.js +87 -0
- package/dist/esm/stzh-container.entry.js +3 -2
- package/dist/esm/stzh-cspace.entry.js +2 -2
- package/dist/esm/stzh-datalist_2.entry.js +48 -15
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +32 -31
- package/dist/esm/stzh-datepicker_3.entry.js +3 -3
- package/dist/esm/stzh-details.entry.js +2 -2
- package/dist/esm/stzh-dialog.entry.js +3 -3
- package/dist/esm/stzh-dropdown.entry.js +1062 -427
- package/dist/esm/stzh-fieldset.entry.js +2 -2
- package/dist/esm/stzh-figure.entry.js +6 -4
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +3 -3
- package/dist/esm/stzh-ghettobox_2.entry.js +4 -4
- package/dist/esm/stzh-header.entry.js +7 -6
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-hr.entry.js +1 -1
- package/dist/esm/stzh-hspace.entry.js +4 -3
- package/dist/esm/stzh-icon-sprite.entry.js +2 -2
- package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
- package/dist/esm/stzh-input.entry.js +3 -3
- package/dist/esm/stzh-invert.entry.js +19 -0
- package/dist/esm/stzh-langnav.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +2 -2
- package/dist/esm/stzh-list-item.entry.js +1 -1
- package/dist/esm/stzh-list.entry.js +1 -1
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-loadingbar.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +2 -2
- package/dist/esm/stzh-message.entry.js +1 -1
- package/dist/esm/stzh-metanav.entry.js +1 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
- package/dist/esm/stzh-olmap.entry.js +1 -1
- package/dist/esm/stzh-overlay.entry.js +2 -2
- package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +5 -2
- package/dist/esm/stzh-pagetitle-hero.entry.js +3 -3
- package/dist/esm/stzh-pagetitle.entry.js +10 -2
- package/dist/esm/stzh-popover.entry.js +6 -6
- package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
- package/dist/esm/stzh-progressbar-item.entry.js +6 -4
- package/dist/esm/stzh-progressbar.entry.js +2 -2
- package/dist/esm/stzh-ratio.entry.js +22 -0
- package/dist/esm/stzh-readspeaker.entry.js +2 -2
- package/dist/esm/stzh-row.entry.js +2 -2
- package/dist/esm/stzh-saptcha.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +2 -2
- package/dist/esm/stzh-share.entry.js +1 -1
- package/dist/esm/stzh-show.entry.js +37 -0
- package/dist/esm/stzh-sitemap.entry.js +2 -2
- package/dist/esm/stzh-skiplink.entry.js +1 -1
- package/dist/esm/stzh-sortable.entry.js +12 -68
- package/dist/esm/stzh-space.entry.js +30 -0
- package/dist/esm/stzh-status.entry.js +2 -2
- package/dist/esm/stzh-sticky.entry.js +5 -3
- package/dist/esm/stzh-table.entry.js +4 -3
- package/dist/esm/stzh-text.entry.js +2 -2
- package/dist/esm/stzh-textandimage.entry.js +2 -2
- package/dist/esm/stzh-toggle.entry.js +3 -3
- package/dist/esm/stzh-tooltip.entry.js +6 -6
- package/dist/esm/stzh-upload.entry.js +7 -4
- package/dist/esm/stzh-vbz-linechip.entry.js +783 -691
- package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
- package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
- package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +4 -3
- package/dist/esm/{utils-92a77db5.js → utils-51148d9a.js} +39 -11
- package/dist/esm-es5/app-globals-02f560cd.js +1 -0
- package/dist/esm-es5/arrow-480bc86f.js +1 -0
- package/dist/esm-es5/axios-e2b39666.js +1 -0
- package/dist/esm-es5/{dom-6be6f662.js → dom-c525f6e4.js} +0 -0
- package/dist/esm-es5/focus-trap.esm-82634dec.js +9 -0
- package/dist/esm-es5/index-319b7c49.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +0 -0
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-accordion.entry.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset.entry.js +1 -1
- package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-audio.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-card_3.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-chart.entry.js +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -0
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-contact.entry.js +1 -0
- package/dist/esm-es5/stzh-container.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +4 -4
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +9 -1
- package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-heading.entry.js +1 -1
- package/dist/esm-es5/stzh-hr.entry.js +1 -1
- package/dist/esm-es5/stzh-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
- package/dist/esm-es5/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-invert.entry.js +1 -0
- package/dist/esm-es5/stzh-langnav.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-list-item.entry.js +1 -1
- package/dist/esm-es5/stzh-list.entry.js +1 -1
- package/dist/esm-es5/stzh-loader.entry.js +1 -1
- package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-message.entry.js +1 -1
- package/dist/esm-es5/stzh-metanav.entry.js +1 -1
- package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
- package/dist/esm-es5/stzh-olmap.entry.js +1 -1
- package/dist/esm-es5/stzh-overlay.entry.js +1 -1
- package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-ratio.entry.js +1 -0
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
- package/dist/esm-es5/stzh-section.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -1
- package/dist/esm-es5/stzh-show.entry.js +1 -0
- package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
- package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +2 -2
- package/dist/esm-es5/stzh-space.entry.js +1 -0
- package/dist/esm-es5/stzh-status.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js +1 -1
- package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/translation-utils-2623783f.js +1 -1
- package/dist/esm-es5/utils-51148d9a.js +1 -0
- package/dist/stzh-components/assets/i18n/de.json +4 -4
- package/dist/stzh-components/assets/i18n/en.json +1 -1
- package/dist/stzh-components/assets/icons/mono/calculator.svg +10 -0
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +47 -34
- package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
- package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
- package/dist/stzh-components/p-02d51685.entry.js +1 -0
- package/dist/stzh-components/p-0759cd7e.entry.js +1 -0
- package/dist/stzh-components/p-07dc23a3.system.entry.js +1 -0
- package/dist/stzh-components/p-088b16c6.system.entry.js +1 -0
- package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
- package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
- package/dist/stzh-components/p-0ba944ab.entry.js +1 -0
- package/dist/stzh-components/p-0ce8b383.system.js +1 -0
- package/dist/stzh-components/p-0f882e26.system.entry.js +1 -0
- package/dist/stzh-components/p-0ffd0de8.system.entry.js +1 -0
- package/dist/stzh-components/{p-60274e67.system.entry.js → p-102e2bcd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
- package/dist/stzh-components/p-12856e02.system.entry.js +1 -0
- package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
- package/dist/stzh-components/{p-57a0f895.entry.js → p-155ecf6c.entry.js} +1 -1
- package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
- package/dist/stzh-components/p-16c0b9ae.entry.js +3 -0
- package/dist/stzh-components/p-1783b15a.js +12 -0
- package/dist/stzh-components/p-18e20038.entry.js +1 -0
- package/dist/stzh-components/p-1a98470f.system.entry.js +1 -0
- package/dist/stzh-components/p-1bcda13d.system.entry.js +1 -0
- package/dist/stzh-components/p-1d435dd8.system.entry.js +1 -0
- package/dist/stzh-components/p-1f74846f.entry.js +1 -0
- package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
- package/dist/stzh-components/p-215d2cf6.system.entry.js +1 -0
- package/dist/stzh-components/p-246cd179.js +1 -0
- package/dist/stzh-components/p-25d8a9c0.system.entry.js +1 -0
- package/dist/stzh-components/p-2674dc69.system.entry.js +1 -0
- package/dist/stzh-components/p-26889a91.entry.js +9 -0
- package/dist/stzh-components/p-29e9ad9f.system.entry.js +1 -0
- package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
- package/dist/stzh-components/p-2c42ae68.entry.js +1 -0
- package/dist/stzh-components/{p-912706bb.entry.js → p-2e6ef670.entry.js} +1 -1
- package/dist/stzh-components/p-2f4448c9.system.entry.js +1 -0
- package/dist/stzh-components/p-309fc559.system.entry.js +1 -0
- package/dist/stzh-components/p-30a9de85.system.entry.js +1 -0
- package/dist/stzh-components/p-31b995e8.entry.js +1 -0
- package/dist/stzh-components/p-326fcb23.js +1 -0
- package/dist/stzh-components/{p-ef3da23b.entry.js → p-32a03d1c.entry.js} +1 -1
- package/dist/stzh-components/p-36e72c1d.system.js +2 -0
- package/dist/stzh-components/p-37920e74.system.entry.js +1 -0
- package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
- package/dist/stzh-components/p-3f676d99.system.entry.js +1 -0
- package/dist/stzh-components/{p-0c8427bc.entry.js → p-40798ed2.entry.js} +1 -1
- package/dist/stzh-components/p-418e04f7.system.entry.js +1 -0
- package/dist/stzh-components/p-444b2baf.entry.js +1 -0
- package/dist/stzh-components/p-44b03dbb.js +10 -0
- package/dist/stzh-components/{p-2577ca1e.system.entry.js → p-44d10402.system.entry.js} +1 -1
- package/dist/stzh-components/p-4633b93d.entry.js +1 -0
- package/dist/stzh-components/{p-ed0d51b6.entry.js → p-46d07ed7.entry.js} +1 -1
- package/dist/stzh-components/p-470182bb.system.entry.js +1 -0
- package/dist/stzh-components/{p-669896ec.entry.js → p-48dee587.entry.js} +1 -1
- package/dist/stzh-components/p-48e79dc0.system.entry.js +1 -0
- package/dist/stzh-components/p-48e835cf.system.js +1 -0
- package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
- package/dist/stzh-components/p-4c60da30.entry.js +1 -0
- package/dist/stzh-components/p-4eee30ea.system.entry.js +1 -0
- package/dist/stzh-components/{p-f027e569.system.entry.js → p-512c38b3.system.entry.js} +1 -1
- package/dist/stzh-components/p-51b3a560.system.entry.js +1 -0
- package/dist/stzh-components/{p-7704b10b.entry.js → p-532b4218.entry.js} +1 -1
- package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
- package/dist/stzh-components/p-552d0e82.system.entry.js +1 -0
- package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
- package/dist/stzh-components/p-57235597.system.entry.js +1 -0
- package/dist/stzh-components/p-59793ef8.system.entry.js +1 -0
- package/dist/stzh-components/{p-6a0a76b3.entry.js → p-5b162e4f.entry.js} +1 -1
- package/dist/stzh-components/p-5c697491.js +1 -0
- package/dist/stzh-components/{p-94830f96.system.entry.js → p-5c72664e.system.entry.js} +1 -1
- package/dist/stzh-components/p-5d55a672.system.entry.js +1 -0
- package/dist/stzh-components/{p-e7cf6c45.system.entry.js → p-617ece76.system.entry.js} +1 -1
- package/dist/stzh-components/p-63bb1d5e.system.js +1 -0
- package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
- package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
- package/dist/stzh-components/p-6606e17e.system.entry.js +1 -0
- package/dist/stzh-components/p-66692130.entry.js +1 -0
- package/dist/stzh-components/{p-f03ce92d.system.entry.js → p-6722e89a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-557f07b5.system.entry.js → p-6769b9a8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-2bec3c77.entry.js → p-67816aa4.entry.js} +1 -1
- package/dist/stzh-components/p-67ae4994.entry.js +1 -0
- package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
- package/dist/stzh-components/{p-58af0855.system.entry.js → p-6a94e520.system.entry.js} +1 -1
- package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
- package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
- package/dist/stzh-components/p-6deb516e.entry.js +1 -0
- package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
- package/dist/stzh-components/{p-288ee536.system.entry.js → p-70f85be3.system.entry.js} +1 -1
- package/dist/stzh-components/p-72a62d0d.system.entry.js +1 -0
- package/dist/stzh-components/p-761ee059.entry.js +1 -0
- package/dist/stzh-components/{p-ea9ca52b.entry.js → p-77320d20.entry.js} +1 -1
- package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
- package/dist/stzh-components/p-798ac79c.entry.js +1 -0
- package/dist/stzh-components/{p-0cc8bbd7.system.entry.js → p-7e4261ce.system.entry.js} +1 -1
- package/dist/stzh-components/{p-df5f49b4.js → p-7f0fb35c.js} +1 -1
- package/dist/stzh-components/{p-44e0b101.system.entry.js → p-7f1b7b44.system.entry.js} +1 -1
- package/dist/stzh-components/{p-62a2684d.entry.js → p-7f857e56.entry.js} +1 -1
- package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-809ed955.system.entry.js} +1 -1
- package/dist/stzh-components/{p-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8cc119d3.system.entry.js → p-8361c9d8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cc720d2d.entry.js → p-838b0542.entry.js} +1 -1
- package/dist/stzh-components/p-84a6e023.system.entry.js +1 -0
- package/dist/stzh-components/p-862e7723.system.entry.js +1 -0
- package/dist/stzh-components/{p-49b292df.entry.js → p-86336227.entry.js} +1 -1
- package/dist/stzh-components/p-89bd0d46.entry.js +1 -0
- package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
- package/dist/stzh-components/{p-0409bf6b.system.entry.js → p-8f577bc6.system.entry.js} +1 -1
- package/dist/stzh-components/p-919cf183.entry.js +1 -0
- package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
- package/dist/stzh-components/p-94918f2a.system.entry.js +1 -0
- package/dist/stzh-components/p-951b04ab.entry.js +1 -0
- package/dist/stzh-components/p-963a7526.system.entry.js +7 -0
- package/dist/stzh-components/p-990f395b.entry.js +1 -0
- package/dist/stzh-components/p-99a3742a.js +2 -0
- package/dist/stzh-components/p-99b82949.entry.js +1 -0
- package/dist/stzh-components/{p-bee6eef5.entry.js → p-9be21c72.entry.js} +1 -1
- package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
- package/dist/stzh-components/p-9de8b25b.entry.js +1 -0
- package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
- package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
- package/dist/stzh-components/p-a1727d35.entry.js +1 -0
- package/dist/stzh-components/{p-fee6a938.entry.js → p-a2df0ea1.entry.js} +1 -1
- package/dist/stzh-components/p-a32ae73a.system.entry.js +9 -0
- package/dist/stzh-components/p-a408bfba.system.js +1 -1
- package/dist/stzh-components/{p-4b0f473e.entry.js → p-a693ab41.entry.js} +1 -1
- package/dist/stzh-components/p-a6be6aca.system.entry.js +1 -0
- package/dist/stzh-components/p-a7eb3e02.system.entry.js +1 -0
- package/dist/stzh-components/p-acf59d10.entry.js +1 -0
- package/dist/stzh-components/p-ad62a793.system.entry.js +1 -0
- package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
- package/dist/stzh-components/p-ae38f1d2.entry.js +1 -0
- package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
- package/dist/stzh-components/p-b04a9d0f.system.entry.js +1 -0
- package/dist/stzh-components/{p-be79497f.system.entry.js → p-b1ffc2a9.system.entry.js} +1 -1
- package/dist/stzh-components/p-b395bed5.system.entry.js +1 -0
- package/dist/stzh-components/p-b422041d.entry.js +1 -0
- package/dist/stzh-components/p-b92734db.entry.js +1 -0
- package/dist/stzh-components/p-b9372a2a.entry.js +1 -0
- package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
- package/dist/stzh-components/p-bb698e26.entry.js +1 -0
- package/dist/stzh-components/{p-f5fdc88c.entry.js → p-bc2af057.entry.js} +3 -3
- package/dist/stzh-components/p-bc545121.entry.js +1 -0
- package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
- package/dist/stzh-components/p-be97cb22.entry.js +8 -0
- package/dist/stzh-components/{p-b3dc4913.entry.js → p-c2a22eb8.entry.js} +1 -1
- package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
- package/dist/stzh-components/p-c4c620fa.system.entry.js +1 -0
- package/dist/stzh-components/p-c87e9b71.entry.js +1 -0
- package/dist/stzh-components/p-c8cc2563.system.entry.js +1 -0
- package/dist/stzh-components/p-c9c7d88a.entry.js +1 -0
- package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
- package/dist/stzh-components/{p-aacf685b.system.entry.js → p-cc722b35.system.entry.js} +1 -1
- package/dist/stzh-components/p-d04bbc19.js +1 -0
- package/dist/stzh-components/{p-fd265f3a.entry.js → p-d1cfe06b.entry.js} +1 -1
- package/dist/stzh-components/p-d4b7a303.system.js +1 -0
- package/dist/stzh-components/p-d4c006e8.entry.js +1 -0
- package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
- package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
- package/dist/stzh-components/p-d9ae09b5.entry.js +9 -0
- package/dist/stzh-components/p-db306e24.entry.js +1 -0
- package/dist/stzh-components/{p-d2f6fb1b.system.js → p-db339680.system.js} +1 -1
- package/dist/stzh-components/p-db6aa108.system.js +1 -0
- package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
- package/dist/stzh-components/{p-586a8b3f.entry.js → p-de76e01b.entry.js} +1 -1
- package/dist/stzh-components/{p-aae4655f.entry.js → p-e1b2785b.entry.js} +1 -1
- package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
- package/dist/stzh-components/p-e4a8f1bc.system.entry.js +1 -0
- package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
- package/dist/stzh-components/p-e59c2adc.system.entry.js +1 -0
- package/dist/stzh-components/{p-60d9bf98.system.entry.js → p-e7909de9.system.entry.js} +1 -1
- package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
- package/dist/stzh-components/p-e9994d05.system.entry.js +1 -0
- package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
- package/dist/stzh-components/p-ed783154.system.entry.js +1 -0
- package/dist/stzh-components/p-ee4b939a.entry.js +1 -0
- package/dist/stzh-components/p-eed126cf.system.entry.js +1 -0
- package/dist/stzh-components/{p-28d8aa31.entry.js → p-f0e2a32d.entry.js} +1 -1
- package/dist/stzh-components/{p-0cff4e01.entry.js → p-f2deda0a.entry.js} +1 -1
- package/dist/stzh-components/p-f3276ca5.system.entry.js +1 -0
- package/dist/stzh-components/p-f4deacf4.system.entry.js +1 -0
- package/dist/stzh-components/{p-4226dec6.system.entry.js → p-f7bb76d8.system.entry.js} +1 -1
- package/dist/stzh-components/p-f7e18135.entry.js +1 -0
- package/dist/stzh-components/{p-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
- package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
- package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
- package/dist/stzh-components/p-febba79b.entry.js +1 -0
- package/dist/stzh-components/p-ff328114.system.entry.js +1 -0
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +1 -1
- package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +1 -1
- package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +1 -1
- package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +1 -1
- package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +1 -1
- package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +1 -1
- package/dist/types/components/stzh-card/stzh-card.localization.d.ts +1 -1
- package/dist/types/components/stzh-card-list/stzh-card-list.localization.d.ts +1 -1
- package/dist/types/components/stzh-container/stzh-container.d.ts +2 -0
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -1
- package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +1 -1
- package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +1 -1
- package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +1 -1
- package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +1 -1
- package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +1 -1
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +1 -1
- package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +3 -1
- package/dist/types/components/stzh-input/stzh-input-description.d.ts +1 -1
- package/dist/types/components/stzh-message/stzh-message.localization.d.ts +1 -1
- package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.localization.d.ts +1 -1
- package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -1
- package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -1
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +1 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +1 -1
- package/dist/types/components/stzh-share/stzh-share.localization.d.ts +1 -1
- package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +1 -1
- package/dist/types/components/stzh-space/stzh-space.d.ts +27 -0
- package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -1
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -1
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +1 -1
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -1
- package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +3 -1
- package/dist/types/components.d.ts +440 -26
- package/dist/types/index.d.ts +135 -133
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/dist/types/utils/date-adapter.d.ts +2 -2
- package/dist/types/utils/h.d.ts +3 -3
- package/dist/types/utils/test-utils.d.ts +2 -2
- package/dist/types/utils/translation-utils.d.ts +5 -5
- package/dist/types/utils/utils.d.ts +4 -2
- package/dist/vscode-data.json +695 -96
- package/loader/index.d.ts +9 -0
- package/package.json +10 -10
- package/dist/cjs/index-8bd1552a.js +0 -2019
- package/dist/cjs/stzh-chip.cjs.entry.js +0 -100
- package/dist/cjs/stzh-clamp.cjs.entry.js +0 -27
- package/dist/cjs/stzh-contactaddress.cjs.entry.js +0 -91
- package/dist/collection/pages/example.stories.js +0 -170
- package/dist/components/index3.js +0 -2017
- package/dist/components/stzh-contactaddress.js +0 -157
- package/dist/esm/index-545902f4.js +0 -2017
- package/dist/esm/stzh-chip.entry.js +0 -96
- package/dist/esm/stzh-clamp.entry.js +0 -23
- package/dist/esm/stzh-contactaddress.entry.js +0 -87
- package/dist/esm-es5/app-globals-ff581b69.js +0 -1
- package/dist/esm-es5/arrow-86a679c7.js +0 -1
- package/dist/esm-es5/focus-trap.esm-074705a3.js +0 -9
- package/dist/esm-es5/index-011c84fe.js +0 -2
- package/dist/esm-es5/index-545902f4.js +0 -1
- package/dist/esm-es5/stzh-chip.entry.js +0 -1
- package/dist/esm-es5/stzh-clamp.entry.js +0 -1
- package/dist/esm-es5/stzh-contactaddress.entry.js +0 -1
- package/dist/esm-es5/utils-92a77db5.js +0 -1
- package/dist/stzh-components/p-006751fc.system.entry.js +0 -1
- package/dist/stzh-components/p-025c9c5b.entry.js +0 -1
- package/dist/stzh-components/p-06d9b884.system.entry.js +0 -1
- package/dist/stzh-components/p-0743d7fa.entry.js +0 -1
- package/dist/stzh-components/p-0850a2e1.system.entry.js +0 -1
- package/dist/stzh-components/p-09da70d8.entry.js +0 -1
- package/dist/stzh-components/p-0a647396.entry.js +0 -1
- package/dist/stzh-components/p-104df3a8.system.entry.js +0 -1
- package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
- package/dist/stzh-components/p-11d7b426.system.entry.js +0 -1
- package/dist/stzh-components/p-12a2afe9.entry.js +0 -1
- package/dist/stzh-components/p-17645237.entry.js +0 -1
- package/dist/stzh-components/p-18cb06e2.entry.js +0 -1
- package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
- package/dist/stzh-components/p-1ae4d600.system.entry.js +0 -1
- package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
- package/dist/stzh-components/p-21cad060.system.entry.js +0 -1
- package/dist/stzh-components/p-22b06793.entry.js +0 -1
- package/dist/stzh-components/p-23829f75.system.entry.js +0 -1
- package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
- package/dist/stzh-components/p-2d340222.system.entry.js +0 -1
- package/dist/stzh-components/p-30ba96a3.entry.js +0 -1
- package/dist/stzh-components/p-31c3469c.entry.js +0 -1
- package/dist/stzh-components/p-3200f52a.system.entry.js +0 -1
- package/dist/stzh-components/p-376946bc.entry.js +0 -1
- package/dist/stzh-components/p-385dda6c.system.entry.js +0 -1
- package/dist/stzh-components/p-391e6b90.entry.js +0 -1
- package/dist/stzh-components/p-3a1ff759.entry.js +0 -1
- package/dist/stzh-components/p-3ad67331.entry.js +0 -1
- package/dist/stzh-components/p-3e850dce.entry.js +0 -1
- package/dist/stzh-components/p-40a19ce6.js +0 -10
- package/dist/stzh-components/p-441ea784.entry.js +0 -1
- package/dist/stzh-components/p-4704588f.system.entry.js +0 -1
- package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
- package/dist/stzh-components/p-4b369bac.entry.js +0 -1
- package/dist/stzh-components/p-51be647d.entry.js +0 -1
- package/dist/stzh-components/p-53934cfd.js +0 -1
- package/dist/stzh-components/p-55b7cda7.system.entry.js +0 -1
- package/dist/stzh-components/p-57237509.system.entry.js +0 -1
- package/dist/stzh-components/p-576e1345.entry.js +0 -1
- package/dist/stzh-components/p-5790eb4f.system.entry.js +0 -1
- package/dist/stzh-components/p-57f8596f.system.entry.js +0 -1
- package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
- package/dist/stzh-components/p-5ddf8258.system.entry.js +0 -1
- package/dist/stzh-components/p-5fd9ae99.system.entry.js +0 -1
- package/dist/stzh-components/p-60ec90b2.system.entry.js +0 -1
- package/dist/stzh-components/p-63d94a57.system.entry.js +0 -1
- package/dist/stzh-components/p-64422176.entry.js +0 -9
- package/dist/stzh-components/p-661831da.entry.js +0 -1
- package/dist/stzh-components/p-67c6f0f2.entry.js +0 -1
- package/dist/stzh-components/p-6d009f56.system.entry.js +0 -1
- package/dist/stzh-components/p-71c07419.system.entry.js +0 -1
- package/dist/stzh-components/p-75068cd7.system.entry.js +0 -1
- package/dist/stzh-components/p-76165227.entry.js +0 -1
- package/dist/stzh-components/p-791bc813.system.js +0 -1
- package/dist/stzh-components/p-7941cf38.js +0 -1
- package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
- package/dist/stzh-components/p-7b86c022.entry.js +0 -1
- package/dist/stzh-components/p-7c26f80f.system.entry.js +0 -1
- package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
- package/dist/stzh-components/p-7e94dde2.entry.js +0 -1
- package/dist/stzh-components/p-812ea5e9.system.entry.js +0 -1
- package/dist/stzh-components/p-8364475f.js +0 -12
- package/dist/stzh-components/p-84965eac.entry.js +0 -1
- package/dist/stzh-components/p-84b9f66f.system.entry.js +0 -1
- package/dist/stzh-components/p-853a1f92.entry.js +0 -1
- package/dist/stzh-components/p-86a29c35.js +0 -1
- package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
- package/dist/stzh-components/p-8991d3bc.entry.js +0 -1
- package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
- package/dist/stzh-components/p-8bbaed3a.entry.js +0 -1
- package/dist/stzh-components/p-8fa2fb95.system.entry.js +0 -1
- package/dist/stzh-components/p-9072a490.system.entry.js +0 -1
- package/dist/stzh-components/p-92afa8df.entry.js +0 -1
- package/dist/stzh-components/p-95b490ec.system.entry.js +0 -1
- package/dist/stzh-components/p-9743f558.system.entry.js +0 -1
- package/dist/stzh-components/p-996579d0.entry.js +0 -1
- package/dist/stzh-components/p-9a5ebb1f.js +0 -2
- package/dist/stzh-components/p-9dac46e2.system.entry.js +0 -1
- package/dist/stzh-components/p-9e38b823.system.entry.js +0 -1
- package/dist/stzh-components/p-a16dc363.entry.js +0 -1
- package/dist/stzh-components/p-a474826c.system.entry.js +0 -1
- package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
- package/dist/stzh-components/p-a8101552.entry.js +0 -8
- package/dist/stzh-components/p-a934dd4d.entry.js +0 -1
- package/dist/stzh-components/p-ac1a6085.system.entry.js +0 -1
- package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
- package/dist/stzh-components/p-afedafa6.system.entry.js +0 -1
- package/dist/stzh-components/p-b0d8866d.entry.js +0 -1
- package/dist/stzh-components/p-b2145753.system.entry.js +0 -1
- package/dist/stzh-components/p-b436a18d.system.entry.js +0 -1
- package/dist/stzh-components/p-b908d228.system.entry.js +0 -1
- package/dist/stzh-components/p-b937ae70.system.js +0 -1
- package/dist/stzh-components/p-ba0b93c4.system.entry.js +0 -9
- package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
- package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
- package/dist/stzh-components/p-c30600d0.system.entry.js +0 -1
- package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
- package/dist/stzh-components/p-c63aecaa.system.entry.js +0 -1
- package/dist/stzh-components/p-c87e12de.system.entry.js +0 -1
- package/dist/stzh-components/p-cf6003d6.js +0 -1
- package/dist/stzh-components/p-cfd22a5e.system.entry.js +0 -1
- package/dist/stzh-components/p-d240494d.entry.js +0 -1
- package/dist/stzh-components/p-d5c0801b.entry.js +0 -1
- package/dist/stzh-components/p-d6ec20c8.system.entry.js +0 -1
- package/dist/stzh-components/p-d9bf09b1.system.entry.js +0 -1
- package/dist/stzh-components/p-db1692fb.entry.js +0 -1
- package/dist/stzh-components/p-dbdc01c7.system.js +0 -2
- package/dist/stzh-components/p-ded16c0e.system.js +0 -1
- package/dist/stzh-components/p-e20369c8.system.js +0 -10
- package/dist/stzh-components/p-e32bc982.system.js +0 -1
- package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
- package/dist/stzh-components/p-e76a3647.entry.js +0 -1
- package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
- package/dist/stzh-components/p-ec7b6ce8.entry.js +0 -7
- package/dist/stzh-components/p-f133eba2.entry.js +0 -1
- package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
- package/dist/stzh-components/p-fbf2f4ed.system.entry.js +0 -1
- package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
- package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const utils = require('./utils-
|
|
5
|
+
const index = require('./index-83d427ee.js');
|
|
6
|
+
const utils = require('./utils-a2ff9f84.js');
|
|
7
7
|
const translationUtils = require('./translation-utils-73073e44.js');
|
|
8
|
-
const stzhInputDescription = require('./stzh-input-description-
|
|
8
|
+
const stzhInputDescription = require('./stzh-input-description-2edc5cac.js');
|
|
9
9
|
const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
|
|
10
10
|
|
|
11
11
|
var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
12
12
|
/**
|
|
13
|
-
* Tom Select v2.
|
|
13
|
+
* Tom Select v2.2.2
|
|
14
14
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
15
15
|
*/
|
|
16
16
|
|
|
@@ -45,9 +45,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
45
45
|
|
|
46
46
|
on(events, fct) {
|
|
47
47
|
forEvents(events, event => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this._events[event]
|
|
48
|
+
const event_array = this._events[event] || [];
|
|
49
|
+
event_array.push(fct);
|
|
50
|
+
this._events[event] = event_array;
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -60,21 +60,26 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
forEvents(events, event => {
|
|
63
|
-
if (n === 1)
|
|
64
|
-
|
|
63
|
+
if (n === 1) {
|
|
64
|
+
delete this._events[event];
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
65
67
|
|
|
66
|
-
this._events[event]
|
|
68
|
+
const event_array = this._events[event];
|
|
69
|
+
if (event_array === undefined) return;
|
|
70
|
+
event_array.splice(event_array.indexOf(fct), 1);
|
|
71
|
+
this._events[event] = event_array;
|
|
67
72
|
});
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
trigger(events, ...args) {
|
|
71
76
|
var self = this;
|
|
72
77
|
forEvents(events, event => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
const event_array = self._events[event];
|
|
79
|
+
if (event_array === undefined) return;
|
|
80
|
+
event_array.forEach(fct => {
|
|
76
81
|
fct.apply(self, args);
|
|
77
|
-
}
|
|
82
|
+
});
|
|
78
83
|
});
|
|
79
84
|
}
|
|
80
85
|
|
|
@@ -201,69 +206,124 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
201
206
|
};
|
|
202
207
|
}
|
|
203
208
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
209
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
210
|
+
/**
|
|
211
|
+
* Convert array of strings to a regular expression
|
|
212
|
+
* ex ['ab','a'] => (?:ab|a)
|
|
213
|
+
* ex ['a','b'] => [ab]
|
|
214
|
+
* @param {string[]} chars
|
|
215
|
+
* @return {string}
|
|
216
|
+
*/
|
|
217
|
+
const arrayToPattern = chars => {
|
|
218
|
+
chars = chars.filter(Boolean);
|
|
219
|
+
|
|
220
|
+
if (chars.length < 2) {
|
|
221
|
+
return chars[0] || '';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
return maxValueLength(chars) == 1 ? '[' + chars.join('') + ']' : '(?:' + chars.join('|') + ')';
|
|
215
225
|
};
|
|
216
|
-
const convert_pat = new RegExp(Object.keys(latin_convert).join('|'), 'gu');
|
|
217
|
-
const code_points = [[0, 65535]];
|
|
218
226
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
227
|
+
* @param {string[]} array
|
|
228
|
+
* @return {string}
|
|
222
229
|
*/
|
|
223
230
|
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
return
|
|
231
|
+
const sequencePattern = array => {
|
|
232
|
+
if (!hasDuplicates(array)) {
|
|
233
|
+
return array.join('');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
let pattern = '';
|
|
237
|
+
let prev_char_count = 0;
|
|
238
|
+
|
|
239
|
+
const prev_pattern = () => {
|
|
240
|
+
if (prev_char_count > 1) {
|
|
241
|
+
pattern += '{' + prev_char_count + '}';
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
array.forEach((char, i) => {
|
|
246
|
+
if (char === array[i - 1]) {
|
|
247
|
+
prev_char_count++;
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
prev_pattern();
|
|
252
|
+
pattern += char;
|
|
253
|
+
prev_char_count = 1;
|
|
227
254
|
});
|
|
255
|
+
prev_pattern();
|
|
256
|
+
return pattern;
|
|
228
257
|
};
|
|
229
258
|
/**
|
|
230
259
|
* Convert array of strings to a regular expression
|
|
231
260
|
* ex ['ab','a'] => (?:ab|a)
|
|
232
261
|
* ex ['a','b'] => [ab]
|
|
233
|
-
*
|
|
262
|
+
* @param {Set<string>} chars
|
|
263
|
+
* @return {string}
|
|
234
264
|
*/
|
|
235
265
|
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
266
|
+
const setToPattern = chars => {
|
|
267
|
+
let array = toArray(chars);
|
|
268
|
+
return arrayToPattern(array);
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* https://stackoverflow.com/questions/7376598/in-javascript-how-do-i-check-if-an-array-has-duplicate-values
|
|
273
|
+
* @param {any[]} array
|
|
274
|
+
*/
|
|
240
275
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
276
|
+
const hasDuplicates = array => {
|
|
277
|
+
return new Set(array).size !== array.length;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error
|
|
281
|
+
* @param {string} str
|
|
282
|
+
* @return {string}
|
|
283
|
+
*/
|
|
245
284
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
285
|
+
const escape_regex = str => {
|
|
286
|
+
return (str + '').replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu, '\\$1');
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Return the max length of array values
|
|
290
|
+
* @param {string[]} array
|
|
291
|
+
*
|
|
292
|
+
*/
|
|
249
293
|
|
|
250
|
-
|
|
294
|
+
const maxValueLength = array => {
|
|
295
|
+
return array.reduce((longest, value) => Math.max(longest, unicodeLength(value)), 0);
|
|
251
296
|
};
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
297
|
+
/**
|
|
298
|
+
* @param {string} str
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
const unicodeLength = str => {
|
|
302
|
+
return toArray(str).length;
|
|
255
303
|
};
|
|
304
|
+
/**
|
|
305
|
+
* @param {any} p
|
|
306
|
+
* @return {any[]}
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
const toArray = p => Array.from(p);
|
|
310
|
+
|
|
311
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
256
312
|
/**
|
|
257
313
|
* Get all possible combinations of substrings that add up to the given string
|
|
258
314
|
* https://stackoverflow.com/questions/30169587/find-all-the-combination-of-substrings-that-add-up-to-the-given-string
|
|
259
|
-
*
|
|
315
|
+
* @param {string} input
|
|
316
|
+
* @return {string[][]}
|
|
260
317
|
*/
|
|
261
|
-
|
|
262
318
|
const allSubstrings = input => {
|
|
263
319
|
if (input.length === 1) return [[input]];
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
320
|
+
/** @type {string[][]} */
|
|
321
|
+
|
|
322
|
+
let result = [];
|
|
323
|
+
const start = input.substring(1);
|
|
324
|
+
const suba = allSubstrings(start);
|
|
325
|
+
suba.forEach(function (subresult) {
|
|
326
|
+
let tmp = subresult.slice(0);
|
|
267
327
|
tmp[0] = input.charAt(0) + tmp[0];
|
|
268
328
|
result.push(tmp);
|
|
269
329
|
tmp = subresult.slice(0);
|
|
@@ -272,108 +332,539 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
272
332
|
});
|
|
273
333
|
return result;
|
|
274
334
|
};
|
|
335
|
+
|
|
336
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @typedef {{[key:string]:string}} TUnicodeMap
|
|
340
|
+
* @typedef {{[key:string]:Set<string>}} TUnicodeSets
|
|
341
|
+
* @typedef {[[number,number]]} TCodePoints
|
|
342
|
+
* @typedef {{folded:string,composed:string,code_point:number}} TCodePointObj
|
|
343
|
+
* @typedef {{start:number,end:number,length:number,substr:string}} TSequencePart
|
|
344
|
+
*/
|
|
345
|
+
/** @type {TCodePoints} */
|
|
346
|
+
|
|
347
|
+
const code_points = [[0, 65535]];
|
|
348
|
+
const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
|
|
349
|
+
/** @type {TUnicodeMap} */
|
|
350
|
+
|
|
351
|
+
let unicode_map;
|
|
352
|
+
/** @type {RegExp} */
|
|
353
|
+
|
|
354
|
+
let multi_char_reg;
|
|
355
|
+
const max_char_length = 3;
|
|
356
|
+
/** @type {TUnicodeMap} */
|
|
357
|
+
|
|
358
|
+
const latin_convert = {};
|
|
359
|
+
/** @type {TUnicodeMap} */
|
|
360
|
+
|
|
361
|
+
const latin_condensed = {
|
|
362
|
+
'/': '⁄∕',
|
|
363
|
+
'0': '߀',
|
|
364
|
+
"a": "ⱥɐɑ",
|
|
365
|
+
"aa": "ꜳ",
|
|
366
|
+
"ae": "æǽǣ",
|
|
367
|
+
"ao": "ꜵ",
|
|
368
|
+
"au": "ꜷ",
|
|
369
|
+
"av": "ꜹꜻ",
|
|
370
|
+
"ay": "ꜽ",
|
|
371
|
+
"b": "ƀɓƃ",
|
|
372
|
+
"c": "ꜿƈȼↄ",
|
|
373
|
+
"d": "đɗɖᴅƌꮷԁɦ",
|
|
374
|
+
"e": "ɛǝᴇɇ",
|
|
375
|
+
"f": "ꝼƒ",
|
|
376
|
+
"g": "ǥɠꞡᵹꝿɢ",
|
|
377
|
+
"h": "ħⱨⱶɥ",
|
|
378
|
+
"i": "ɨı",
|
|
379
|
+
"j": "ɉȷ",
|
|
380
|
+
"k": "ƙⱪꝁꝃꝅꞣ",
|
|
381
|
+
"l": "łƚɫⱡꝉꝇꞁɭ",
|
|
382
|
+
"m": "ɱɯϻ",
|
|
383
|
+
"n": "ꞥƞɲꞑᴎлԉ",
|
|
384
|
+
"o": "øǿɔɵꝋꝍᴑ",
|
|
385
|
+
"oe": "œ",
|
|
386
|
+
"oi": "ƣ",
|
|
387
|
+
"oo": "ꝏ",
|
|
388
|
+
"ou": "ȣ",
|
|
389
|
+
"p": "ƥᵽꝑꝓꝕρ",
|
|
390
|
+
"q": "ꝗꝙɋ",
|
|
391
|
+
"r": "ɍɽꝛꞧꞃ",
|
|
392
|
+
"s": "ßȿꞩꞅʂ",
|
|
393
|
+
"t": "ŧƭʈⱦꞇ",
|
|
394
|
+
"th": "þ",
|
|
395
|
+
"tz": "ꜩ",
|
|
396
|
+
"u": "ʉ",
|
|
397
|
+
"v": "ʋꝟʌ",
|
|
398
|
+
"vy": "ꝡ",
|
|
399
|
+
"w": "ⱳ",
|
|
400
|
+
"y": "ƴɏỿ",
|
|
401
|
+
"z": "ƶȥɀⱬꝣ",
|
|
402
|
+
"hv": "ƕ"
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
for (let latin in latin_condensed) {
|
|
406
|
+
let unicode = latin_condensed[latin] || '';
|
|
407
|
+
|
|
408
|
+
for (let i = 0; i < unicode.length; i++) {
|
|
409
|
+
let char = unicode.substring(i, i + 1);
|
|
410
|
+
latin_convert[char] = latin;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
const convert_pat = new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
|
|
275
415
|
/**
|
|
276
|
-
*
|
|
416
|
+
* Initialize the unicode_map from the give code point ranges
|
|
277
417
|
*
|
|
418
|
+
* @param {TCodePoints=} _code_points
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
const initialize = _code_points => {
|
|
422
|
+
if (unicode_map !== undefined) return;
|
|
423
|
+
unicode_map = generateMap(_code_points || code_points);
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* Helper method for normalize a string
|
|
427
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
|
|
428
|
+
* @param {string} str
|
|
429
|
+
* @param {string} form
|
|
430
|
+
*/
|
|
431
|
+
|
|
432
|
+
const normalize = (str, form = 'NFKD') => str.normalize(form);
|
|
433
|
+
/**
|
|
434
|
+
* Remove accents without reordering string
|
|
435
|
+
* calling str.normalize('NFKD') on \u{594}\u{595}\u{596} becomes \u{596}\u{594}\u{595}
|
|
436
|
+
* via https://github.com/krisk/Fuse/issues/133#issuecomment-318692703
|
|
437
|
+
* @param {string} str
|
|
438
|
+
* @return {string}
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
const asciifold = str => {
|
|
442
|
+
return toArray(str).reduce(
|
|
443
|
+
/**
|
|
444
|
+
* @param {string} result
|
|
445
|
+
* @param {string} char
|
|
446
|
+
*/
|
|
447
|
+
(result, char) => {
|
|
448
|
+
return result + _asciifold(char);
|
|
449
|
+
}, '');
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* @param {string} str
|
|
453
|
+
* @return {string}
|
|
454
|
+
*/
|
|
455
|
+
|
|
456
|
+
const _asciifold = str => {
|
|
457
|
+
str = normalize(str).toLowerCase().replace(convert_pat, (
|
|
458
|
+
/** @type {string} */
|
|
459
|
+
char) => {
|
|
460
|
+
return latin_convert[char] || '';
|
|
461
|
+
}); //return str;
|
|
462
|
+
|
|
463
|
+
return normalize(str, 'NFC');
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* Generate a list of unicode variants from the list of code points
|
|
467
|
+
* @param {TCodePoints} code_points
|
|
468
|
+
* @yield {TCodePointObj}
|
|
278
469
|
*/
|
|
279
470
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
let
|
|
285
|
-
let latin = asciifold(diacritic);
|
|
471
|
+
function* generator(code_points) {
|
|
472
|
+
for (const [code_point_min, code_point_max] of code_points) {
|
|
473
|
+
for (let i = code_point_min; i <= code_point_max; i++) {
|
|
474
|
+
let composed = String.fromCharCode(i);
|
|
475
|
+
let folded = asciifold(composed);
|
|
286
476
|
|
|
287
|
-
if (
|
|
477
|
+
if (folded == composed.toLowerCase()) {
|
|
288
478
|
continue;
|
|
289
|
-
} // skip when
|
|
479
|
+
} // skip when folded is a string longer than 3 characters long
|
|
290
480
|
// bc the resulting regex patterns will be long
|
|
291
481
|
// eg:
|
|
292
|
-
//
|
|
293
|
-
//
|
|
482
|
+
// folded صلى الله عليه وسلم length 18 code point 65018
|
|
483
|
+
// folded جل جلاله length 8 code point 65019
|
|
294
484
|
|
|
295
485
|
|
|
296
|
-
if (
|
|
486
|
+
if (folded.length > max_char_length) {
|
|
297
487
|
continue;
|
|
298
488
|
}
|
|
299
489
|
|
|
300
|
-
if (
|
|
301
|
-
|
|
490
|
+
if (folded.length == 0) {
|
|
491
|
+
continue;
|
|
302
492
|
}
|
|
303
493
|
|
|
304
|
-
|
|
494
|
+
yield {
|
|
495
|
+
folded: folded,
|
|
496
|
+
composed: composed,
|
|
497
|
+
code_point: i
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Generate a unicode map from the list of code points
|
|
504
|
+
* @param {TCodePoints} code_points
|
|
505
|
+
* @return {TUnicodeSets}
|
|
506
|
+
*/
|
|
507
|
+
|
|
508
|
+
const generateSets = code_points => {
|
|
509
|
+
/** @type {{[key:string]:Set<string>}} */
|
|
510
|
+
const unicode_sets = {};
|
|
511
|
+
/**
|
|
512
|
+
* @param {string} folded
|
|
513
|
+
* @param {string} to_add
|
|
514
|
+
*/
|
|
305
515
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
516
|
+
const addMatching = (folded, to_add) => {
|
|
517
|
+
/** @type {Set<string>} */
|
|
518
|
+
const folded_set = unicode_sets[folded] || new Set();
|
|
519
|
+
const patt = new RegExp('^' + setToPattern(folded_set) + '$', 'iu');
|
|
309
520
|
|
|
310
|
-
|
|
521
|
+
if (to_add.match(patt)) {
|
|
522
|
+
return;
|
|
311
523
|
}
|
|
312
|
-
}); // filter out if there's only one character in the list
|
|
313
524
|
|
|
314
|
-
|
|
525
|
+
folded_set.add(escape_regex(to_add));
|
|
526
|
+
unicode_sets[folded] = folded_set;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
for (let value of generator(code_points)) {
|
|
530
|
+
addMatching(value.folded, value.folded);
|
|
531
|
+
addMatching(value.folded, value.composed);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
return unicode_sets;
|
|
535
|
+
};
|
|
536
|
+
/**
|
|
537
|
+
* Generate a unicode map from the list of code points
|
|
538
|
+
* ae => (?:(?:ae|Æ|Ǽ|Ǣ)|(?:A|Ⓐ|A...)(?:E|ɛ|Ⓔ...))
|
|
539
|
+
*
|
|
540
|
+
* @param {TCodePoints} code_points
|
|
541
|
+
* @return {TUnicodeMap}
|
|
542
|
+
*/
|
|
543
|
+
|
|
544
|
+
const generateMap = code_points => {
|
|
545
|
+
/** @type {TUnicodeSets} */
|
|
546
|
+
const unicode_sets = generateSets(code_points);
|
|
547
|
+
/** @type {TUnicodeMap} */
|
|
548
|
+
|
|
549
|
+
const unicode_map = {};
|
|
550
|
+
/** @type {string[]} */
|
|
315
551
|
|
|
316
|
-
|
|
317
|
-
const latin = latin_chars[i];
|
|
552
|
+
let multi_char = [];
|
|
318
553
|
|
|
319
|
-
|
|
320
|
-
|
|
554
|
+
for (let folded in unicode_sets) {
|
|
555
|
+
let set = unicode_sets[folded];
|
|
556
|
+
|
|
557
|
+
if (set) {
|
|
558
|
+
unicode_map[folded] = setToPattern(set);
|
|
321
559
|
}
|
|
322
|
-
} // latin character pattern
|
|
323
|
-
// match longer substrings first
|
|
324
560
|
|
|
561
|
+
if (folded.length > 1) {
|
|
562
|
+
multi_char.push(escape_regex(folded));
|
|
563
|
+
}
|
|
564
|
+
}
|
|
325
565
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
566
|
+
multi_char.sort((a, b) => b.length - a.length);
|
|
567
|
+
const multi_char_patt = arrayToPattern(multi_char);
|
|
568
|
+
multi_char_reg = new RegExp('^' + multi_char_patt, 'u');
|
|
569
|
+
return unicode_map;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Map each element of an array from it's folded value to all possible unicode matches
|
|
573
|
+
* @param {string[]} strings
|
|
574
|
+
* @param {number} min_replacement
|
|
575
|
+
* @return {string}
|
|
576
|
+
*/
|
|
330
577
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
return escapeToPattern(diacritics[l]);
|
|
338
|
-
}
|
|
578
|
+
const mapSequence = (strings, min_replacement = 1) => {
|
|
579
|
+
let chars_replaced = 0;
|
|
580
|
+
strings = strings.map(str => {
|
|
581
|
+
if (unicode_map[str]) {
|
|
582
|
+
chars_replaced += str.length;
|
|
583
|
+
}
|
|
339
584
|
|
|
340
|
-
|
|
341
|
-
});
|
|
342
|
-
return arrayToPattern(sub_pat, '');
|
|
343
|
-
});
|
|
344
|
-
diacritic_patterns[latin] = arrayToPattern(pattern);
|
|
585
|
+
return unicode_map[str] || str;
|
|
345
586
|
});
|
|
346
|
-
|
|
587
|
+
|
|
588
|
+
if (chars_replaced >= min_replacement) {
|
|
589
|
+
return sequencePattern(strings);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
return '';
|
|
347
593
|
};
|
|
348
594
|
/**
|
|
349
|
-
*
|
|
350
|
-
*
|
|
595
|
+
* Convert a short string and split it into all possible patterns
|
|
596
|
+
* Keep a pattern only if min_replacement is met
|
|
597
|
+
*
|
|
598
|
+
* 'abc'
|
|
599
|
+
* => [['abc'],['ab','c'],['a','bc'],['a','b','c']]
|
|
600
|
+
* => ['abc-pattern','ab-c-pattern'...]
|
|
601
|
+
*
|
|
602
|
+
*
|
|
603
|
+
* @param {string} str
|
|
604
|
+
* @param {number} min_replacement
|
|
605
|
+
* @return {string}
|
|
606
|
+
*/
|
|
607
|
+
|
|
608
|
+
const substringsToPattern = (str, min_replacement = 1) => {
|
|
609
|
+
min_replacement = Math.max(min_replacement, str.length - 1);
|
|
610
|
+
return arrayToPattern(allSubstrings(str).map(sub_pat => {
|
|
611
|
+
return mapSequence(sub_pat, min_replacement);
|
|
612
|
+
}));
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* Convert an array of sequences into a pattern
|
|
616
|
+
* [{start:0,end:3,length:3,substr:'iii'}...] => (?:iii...)
|
|
351
617
|
*
|
|
618
|
+
* @param {Sequence[]} sequences
|
|
619
|
+
* @param {boolean} all
|
|
620
|
+
*/
|
|
621
|
+
|
|
622
|
+
const sequencesToPattern = (sequences, all = true) => {
|
|
623
|
+
let min_replacement = sequences.length > 1 ? 1 : 0;
|
|
624
|
+
return arrayToPattern(sequences.map(sequence => {
|
|
625
|
+
let seq = [];
|
|
626
|
+
const len = all ? sequence.length() : sequence.length() - 1;
|
|
627
|
+
|
|
628
|
+
for (let j = 0; j < len; j++) {
|
|
629
|
+
seq.push(substringsToPattern(sequence.substrs[j] || '', min_replacement));
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
return sequencePattern(seq);
|
|
633
|
+
}));
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Return true if the sequence is already in the sequences
|
|
637
|
+
* @param {Sequence} needle_seq
|
|
638
|
+
* @param {Sequence[]} sequences
|
|
352
639
|
*/
|
|
353
640
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
641
|
+
|
|
642
|
+
const inSequences = (needle_seq, sequences) => {
|
|
643
|
+
for (const seq of sequences) {
|
|
644
|
+
if (seq.start != needle_seq.start || seq.end != needle_seq.end) {
|
|
645
|
+
continue;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (seq.substrs.join('') !== needle_seq.substrs.join('')) {
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
let needle_parts = needle_seq.parts;
|
|
653
|
+
/**
|
|
654
|
+
* @param {TSequencePart} part
|
|
655
|
+
*/
|
|
656
|
+
|
|
657
|
+
const filter = part => {
|
|
658
|
+
for (const needle_part of needle_parts) {
|
|
659
|
+
if (needle_part.start === part.start && needle_part.substr === part.substr) {
|
|
660
|
+
return false;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
if (part.length == 1 || needle_part.length == 1) {
|
|
664
|
+
continue;
|
|
665
|
+
} // check for overlapping parts
|
|
666
|
+
// a = ['::=','==']
|
|
667
|
+
// b = ['::','===']
|
|
668
|
+
// a = ['r','sm']
|
|
669
|
+
// b = ['rs','m']
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
if (part.start < needle_part.start && part.end > needle_part.start) {
|
|
673
|
+
return true;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (needle_part.start < part.start && needle_part.end > part.start) {
|
|
677
|
+
return true;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
return false;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
let filtered = seq.parts.filter(filter);
|
|
685
|
+
|
|
686
|
+
if (filtered.length > 0) {
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
return true;
|
|
357
691
|
}
|
|
358
692
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
693
|
+
return false;
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
class Sequence {
|
|
697
|
+
constructor() {
|
|
698
|
+
/** @type {TSequencePart[]} */
|
|
699
|
+
this.parts = [];
|
|
700
|
+
/** @type {string[]} */
|
|
363
701
|
|
|
364
|
-
|
|
365
|
-
|
|
702
|
+
this.substrs = [];
|
|
703
|
+
this.start = 0;
|
|
704
|
+
this.end = 0;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* @param {TSequencePart|undefined} part
|
|
708
|
+
*/
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
add(part) {
|
|
712
|
+
if (part) {
|
|
713
|
+
this.parts.push(part);
|
|
714
|
+
this.substrs.push(part.substr);
|
|
715
|
+
this.start = Math.min(part.start, this.start);
|
|
716
|
+
this.end = Math.max(part.end, this.end);
|
|
366
717
|
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
last() {
|
|
721
|
+
return this.parts[this.parts.length - 1];
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
length() {
|
|
725
|
+
return this.parts.length;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* @param {number} position
|
|
729
|
+
* @param {TSequencePart} last_piece
|
|
730
|
+
*/
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
clone(position, last_piece) {
|
|
734
|
+
let clone = new Sequence();
|
|
735
|
+
let parts = JSON.parse(JSON.stringify(this.parts));
|
|
736
|
+
let last_part = parts.pop();
|
|
367
737
|
|
|
368
|
-
|
|
369
|
-
|
|
738
|
+
for (const part of parts) {
|
|
739
|
+
clone.add(part);
|
|
370
740
|
}
|
|
371
741
|
|
|
372
|
-
|
|
373
|
-
|
|
742
|
+
let last_substr = last_piece.substr.substring(0, position - last_part.start);
|
|
743
|
+
let clone_last_len = last_substr.length;
|
|
744
|
+
clone.add({
|
|
745
|
+
start: last_part.start,
|
|
746
|
+
end: last_part.start + clone_last_len,
|
|
747
|
+
length: clone_last_len,
|
|
748
|
+
substr: last_substr
|
|
749
|
+
});
|
|
750
|
+
return clone;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Expand a regular expression pattern to include unicode variants
|
|
756
|
+
* eg /a/ becomes /aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑAⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ/
|
|
757
|
+
*
|
|
758
|
+
* Issue:
|
|
759
|
+
* ﺊﺋ [ 'ﺊ = \\u{fe8a}', 'ﺋ = \\u{fe8b}' ]
|
|
760
|
+
* becomes: ئئ [ 'ي = \\u{64a}', 'ٔ = \\u{654}', 'ي = \\u{64a}', 'ٔ = \\u{654}' ]
|
|
761
|
+
*
|
|
762
|
+
* İIJ = IIJ = ⅡJ
|
|
763
|
+
*
|
|
764
|
+
* 1/2/4
|
|
765
|
+
*
|
|
766
|
+
* @param {string} str
|
|
767
|
+
* @return {string|undefined}
|
|
768
|
+
*/
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
const getPattern = str => {
|
|
772
|
+
initialize();
|
|
773
|
+
str = asciifold(str);
|
|
774
|
+
let pattern = '';
|
|
775
|
+
let sequences = [new Sequence()];
|
|
776
|
+
|
|
777
|
+
for (let i = 0; i < str.length; i++) {
|
|
778
|
+
let substr = str.substring(i);
|
|
779
|
+
let match = substr.match(multi_char_reg);
|
|
780
|
+
const char = str.substring(i, i + 1);
|
|
781
|
+
const match_str = match ? match[0] : null; // loop through sequences
|
|
782
|
+
// add either the char or multi_match
|
|
783
|
+
|
|
784
|
+
let overlapping = [];
|
|
785
|
+
let added_types = new Set();
|
|
786
|
+
|
|
787
|
+
for (const sequence of sequences) {
|
|
788
|
+
const last_piece = sequence.last();
|
|
789
|
+
|
|
790
|
+
if (!last_piece || last_piece.length == 1 || last_piece.end <= i) {
|
|
791
|
+
// if we have a multi match
|
|
792
|
+
if (match_str) {
|
|
793
|
+
const len = match_str.length;
|
|
794
|
+
sequence.add({
|
|
795
|
+
start: i,
|
|
796
|
+
end: i + len,
|
|
797
|
+
length: len,
|
|
798
|
+
substr: match_str
|
|
799
|
+
});
|
|
800
|
+
added_types.add('1');
|
|
801
|
+
} else {
|
|
802
|
+
sequence.add({
|
|
803
|
+
start: i,
|
|
804
|
+
end: i + 1,
|
|
805
|
+
length: 1,
|
|
806
|
+
substr: char
|
|
807
|
+
});
|
|
808
|
+
added_types.add('2');
|
|
809
|
+
}
|
|
810
|
+
} else if (match_str) {
|
|
811
|
+
let clone = sequence.clone(i, last_piece);
|
|
812
|
+
const len = match_str.length;
|
|
813
|
+
clone.add({
|
|
814
|
+
start: i,
|
|
815
|
+
end: i + len,
|
|
816
|
+
length: len,
|
|
817
|
+
substr: match_str
|
|
818
|
+
});
|
|
819
|
+
overlapping.push(clone);
|
|
820
|
+
} else {
|
|
821
|
+
// don't add char
|
|
822
|
+
// adding would create invalid patterns: 234 => [2,34,4]
|
|
823
|
+
added_types.add('3');
|
|
824
|
+
}
|
|
825
|
+
} // if we have overlapping
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
if (overlapping.length > 0) {
|
|
829
|
+
// ['ii','iii'] before ['i','i','iii']
|
|
830
|
+
overlapping = overlapping.sort((a, b) => {
|
|
831
|
+
return a.length() - b.length();
|
|
832
|
+
});
|
|
833
|
+
|
|
834
|
+
for (let clone of overlapping) {
|
|
835
|
+
// don't add if we already have an equivalent sequence
|
|
836
|
+
if (inSequences(clone, sequences)) {
|
|
837
|
+
continue;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
sequences.push(clone);
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
continue;
|
|
844
|
+
} // if we haven't done anything unique
|
|
845
|
+
// clean up the patterns
|
|
846
|
+
// helps keep patterns smaller
|
|
847
|
+
// if str = 'r₨㎧aarss', pattern will be 446 instead of 655
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
if (i > 0 && added_types.size == 1 && !added_types.has('3')) {
|
|
851
|
+
pattern += sequencesToPattern(sequences, false);
|
|
852
|
+
let new_seq = new Sequence();
|
|
853
|
+
const old_seq = sequences[0];
|
|
854
|
+
|
|
855
|
+
if (old_seq) {
|
|
856
|
+
new_seq.add(old_seq.last());
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
sequences = [new_seq];
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
pattern += sequencesToPattern(sequences, true);
|
|
864
|
+
return pattern;
|
|
374
865
|
};
|
|
375
866
|
|
|
376
|
-
|
|
867
|
+
/*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
|
|
377
868
|
|
|
378
869
|
/**
|
|
379
870
|
* A property getter resolving dot-notation
|
|
@@ -411,20 +902,13 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
411
902
|
var score, pos;
|
|
412
903
|
if (!value) return 0;
|
|
413
904
|
value = value + '';
|
|
905
|
+
if (token.regex == null) return 0;
|
|
414
906
|
pos = value.search(token.regex);
|
|
415
907
|
if (pos === -1) return 0;
|
|
416
908
|
score = token.string.length / value.length;
|
|
417
909
|
if (pos === 0) score += 0.5;
|
|
418
910
|
return score * weight;
|
|
419
911
|
};
|
|
420
|
-
/**
|
|
421
|
-
*
|
|
422
|
-
* https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error
|
|
423
|
-
*/
|
|
424
|
-
|
|
425
|
-
const escape_regex = str => {
|
|
426
|
-
return (str + '').replace(/([\$\(-\+\.\?\[-\^\{-\}])/g, '\\$1');
|
|
427
|
-
};
|
|
428
912
|
/**
|
|
429
913
|
* Cast object property to an array if it exists and has a value
|
|
430
914
|
*
|
|
@@ -449,7 +933,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
449
933
|
*
|
|
450
934
|
*/
|
|
451
935
|
|
|
452
|
-
const iterate = (object, callback) => {
|
|
936
|
+
const iterate$1 = (object, callback) => {
|
|
453
937
|
if (Array.isArray(object)) {
|
|
454
938
|
object.forEach(callback);
|
|
455
939
|
} else {
|
|
@@ -472,6 +956,8 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
472
956
|
return 0;
|
|
473
957
|
};
|
|
474
958
|
|
|
959
|
+
/*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
|
|
960
|
+
|
|
475
961
|
/**
|
|
476
962
|
* sifter.js
|
|
477
963
|
* Copyright (c) 2013–2020 Brian Reavis & contributors
|
|
@@ -533,12 +1019,12 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
533
1019
|
|
|
534
1020
|
if (word.length > 0) {
|
|
535
1021
|
if (this.settings.diacritics) {
|
|
536
|
-
regex =
|
|
1022
|
+
regex = getPattern(word) || null;
|
|
537
1023
|
} else {
|
|
538
1024
|
regex = escape_regex(word);
|
|
539
1025
|
}
|
|
540
1026
|
|
|
541
|
-
if (respect_word_boundaries) regex = "\\b" + regex;
|
|
1027
|
+
if (regex && respect_word_boundaries) regex = "\\b" + regex;
|
|
542
1028
|
}
|
|
543
1029
|
|
|
544
1030
|
tokens.push({
|
|
@@ -556,12 +1042,17 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
556
1042
|
* Good matches will have a higher score than poor matches.
|
|
557
1043
|
* If an item is not a match, 0 will be returned by the function.
|
|
558
1044
|
*
|
|
559
|
-
* @returns {
|
|
1045
|
+
* @returns {T.ScoreFn}
|
|
560
1046
|
*/
|
|
561
1047
|
getScoreFunction(query, options) {
|
|
562
1048
|
var search = this.prepareSearch(query, options);
|
|
563
1049
|
return this._getScoreFunction(search);
|
|
564
1050
|
}
|
|
1051
|
+
/**
|
|
1052
|
+
* @returns {T.ScoreFn}
|
|
1053
|
+
*
|
|
1054
|
+
*/
|
|
1055
|
+
|
|
565
1056
|
|
|
566
1057
|
_getScoreFunction(search) {
|
|
567
1058
|
const tokens = search.tokens,
|
|
@@ -594,7 +1085,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
594
1085
|
if (field_count === 1) {
|
|
595
1086
|
return function (token, data) {
|
|
596
1087
|
const field = fields[0].field;
|
|
597
|
-
return scoreValue(getAttrFn(data, field), token, weights[field]);
|
|
1088
|
+
return scoreValue(getAttrFn(data, field), token, weights[field] || 1);
|
|
598
1089
|
};
|
|
599
1090
|
}
|
|
600
1091
|
|
|
@@ -610,7 +1101,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
610
1101
|
sum += scoreValue(value, token, 1);
|
|
611
1102
|
}
|
|
612
1103
|
} else {
|
|
613
|
-
iterate(weights, (weight, field) => {
|
|
1104
|
+
iterate$1(weights, (weight, field) => {
|
|
614
1105
|
sum += scoreValue(getAttrFn(data, field), token, weight);
|
|
615
1106
|
});
|
|
616
1107
|
}
|
|
@@ -627,12 +1118,11 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
627
1118
|
|
|
628
1119
|
if (search.options.conjunction === 'and') {
|
|
629
1120
|
return function (data) {
|
|
630
|
-
var
|
|
631
|
-
score,
|
|
1121
|
+
var score,
|
|
632
1122
|
sum = 0;
|
|
633
1123
|
|
|
634
|
-
for (
|
|
635
|
-
score = scoreObject(
|
|
1124
|
+
for (let token of tokens) {
|
|
1125
|
+
score = scoreObject(token, data);
|
|
636
1126
|
if (score <= 0) return 0;
|
|
637
1127
|
sum += score;
|
|
638
1128
|
}
|
|
@@ -642,7 +1132,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
642
1132
|
} else {
|
|
643
1133
|
return function (data) {
|
|
644
1134
|
var sum = 0;
|
|
645
|
-
iterate(tokens, token => {
|
|
1135
|
+
iterate$1(tokens, token => {
|
|
646
1136
|
sum += scoreObject(token, data);
|
|
647
1137
|
});
|
|
648
1138
|
return sum / token_count;
|
|
@@ -663,12 +1153,11 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
663
1153
|
}
|
|
664
1154
|
|
|
665
1155
|
_getSortFunction(search) {
|
|
666
|
-
var
|
|
1156
|
+
var implicit_score,
|
|
1157
|
+
sort_flds = [];
|
|
667
1158
|
const self = this,
|
|
668
1159
|
options = search.options,
|
|
669
|
-
sort = !search.query && options.sort_empty ? options.sort_empty : options.sort
|
|
670
|
-
sort_flds = [],
|
|
671
|
-
multipliers = [];
|
|
1160
|
+
sort = !search.query && options.sort_empty ? options.sort_empty : options.sort;
|
|
672
1161
|
|
|
673
1162
|
if (typeof sort == 'function') {
|
|
674
1163
|
return sort.bind(this);
|
|
@@ -687,9 +1176,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
687
1176
|
|
|
688
1177
|
|
|
689
1178
|
if (sort) {
|
|
690
|
-
for (
|
|
691
|
-
if (search.query ||
|
|
692
|
-
sort_flds.push(
|
|
1179
|
+
for (let s of sort) {
|
|
1180
|
+
if (search.query || s.field !== '$score') {
|
|
1181
|
+
sort_flds.push(s);
|
|
693
1182
|
}
|
|
694
1183
|
}
|
|
695
1184
|
} // the "$score" field is implied to be the primary
|
|
@@ -699,8 +1188,8 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
699
1188
|
if (search.query) {
|
|
700
1189
|
implicit_score = true;
|
|
701
1190
|
|
|
702
|
-
for (
|
|
703
|
-
if (
|
|
1191
|
+
for (let fld of sort_flds) {
|
|
1192
|
+
if (fld.field === '$score') {
|
|
704
1193
|
implicit_score = false;
|
|
705
1194
|
break;
|
|
706
1195
|
}
|
|
@@ -711,18 +1200,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
711
1200
|
field: '$score',
|
|
712
1201
|
direction: 'desc'
|
|
713
1202
|
});
|
|
714
|
-
}
|
|
715
|
-
} else {
|
|
716
|
-
for (i = 0, n = sort_flds.length; i < n; i++) {
|
|
717
|
-
if (sort_flds[i].field === '$score') {
|
|
718
|
-
sort_flds.splice(i, 1);
|
|
719
|
-
break;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
1203
|
+
} // without a search.query, all items will have the same score
|
|
723
1204
|
|
|
724
|
-
|
|
725
|
-
|
|
1205
|
+
} else {
|
|
1206
|
+
sort_flds = sort_flds.filter(fld => fld.field !== '$score');
|
|
726
1207
|
} // build function
|
|
727
1208
|
|
|
728
1209
|
|
|
@@ -730,25 +1211,20 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
730
1211
|
|
|
731
1212
|
if (!sort_flds_count) {
|
|
732
1213
|
return null;
|
|
733
|
-
}
|
|
734
|
-
const sort_fld = sort_flds[0].field;
|
|
735
|
-
const multiplier = multipliers[0];
|
|
736
|
-
return function (a, b) {
|
|
737
|
-
return multiplier * cmp(get_field(sort_fld, a), get_field(sort_fld, b));
|
|
738
|
-
};
|
|
739
|
-
} else {
|
|
740
|
-
return function (a, b) {
|
|
741
|
-
var i, result, field;
|
|
1214
|
+
}
|
|
742
1215
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
result = multipliers[i] * cmp(get_field(field, a), get_field(field, b));
|
|
746
|
-
if (result) return result;
|
|
747
|
-
}
|
|
1216
|
+
return function (a, b) {
|
|
1217
|
+
var result, field;
|
|
748
1218
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
1219
|
+
for (let sort_fld of sort_flds) {
|
|
1220
|
+
field = sort_fld.field;
|
|
1221
|
+
let multiplier = sort_fld.direction === 'desc' ? -1 : 1;
|
|
1222
|
+
result = multiplier * cmp(get_field(field, a), get_field(field, b));
|
|
1223
|
+
if (result) return result;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
return 0;
|
|
1227
|
+
};
|
|
752
1228
|
}
|
|
753
1229
|
|
|
754
1230
|
/**
|
|
@@ -807,7 +1283,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
807
1283
|
|
|
808
1284
|
|
|
809
1285
|
if (query.length) {
|
|
810
|
-
iterate(self.items, (item, id) => {
|
|
1286
|
+
iterate$1(self.items, (item, id) => {
|
|
811
1287
|
score = fn_score(item);
|
|
812
1288
|
|
|
813
1289
|
if (options.filter === false || score > 0) {
|
|
@@ -818,7 +1294,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
818
1294
|
}
|
|
819
1295
|
});
|
|
820
1296
|
} else {
|
|
821
|
-
iterate(self.items, (_, id) => {
|
|
1297
|
+
iterate$1(self.items, (_, id) => {
|
|
822
1298
|
search.items.push({
|
|
823
1299
|
'score': 1,
|
|
824
1300
|
'id': id
|
|
@@ -841,6 +1317,29 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
841
1317
|
|
|
842
1318
|
}
|
|
843
1319
|
|
|
1320
|
+
/**
|
|
1321
|
+
* Iterates over arrays and hashes.
|
|
1322
|
+
*
|
|
1323
|
+
* ```
|
|
1324
|
+
* iterate(this.items, function(item, id) {
|
|
1325
|
+
* // invoked for each item
|
|
1326
|
+
* });
|
|
1327
|
+
* ```
|
|
1328
|
+
*
|
|
1329
|
+
*/
|
|
1330
|
+
|
|
1331
|
+
const iterate = (object, callback) => {
|
|
1332
|
+
if (Array.isArray(object)) {
|
|
1333
|
+
object.forEach(callback);
|
|
1334
|
+
} else {
|
|
1335
|
+
for (var key in object) {
|
|
1336
|
+
if (object.hasOwnProperty(key)) {
|
|
1337
|
+
callback(object[key], key);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
|
|
844
1343
|
/**
|
|
845
1344
|
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
|
|
846
1345
|
* https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
|
|
@@ -858,10 +1357,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
858
1357
|
}
|
|
859
1358
|
|
|
860
1359
|
if (isHtmlString(query)) {
|
|
861
|
-
|
|
862
|
-
|
|
1360
|
+
var tpl = document.createElement('template');
|
|
1361
|
+
tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
|
|
863
1362
|
|
|
864
|
-
return
|
|
1363
|
+
return tpl.content.firstChild;
|
|
865
1364
|
}
|
|
866
1365
|
|
|
867
1366
|
return document.querySelector(query);
|
|
@@ -1072,9 +1571,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1072
1571
|
|
|
1073
1572
|
const highlightChildren = node => {
|
|
1074
1573
|
if (node.nodeType === 1 && node.childNodes && !/(script|style)/i.test(node.tagName) && (node.className !== 'highlight' || node.tagName !== 'SPAN')) {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
}
|
|
1574
|
+
Array.from(node.childNodes).forEach(element => {
|
|
1575
|
+
highlightRecursive(element);
|
|
1576
|
+
});
|
|
1078
1577
|
}
|
|
1079
1578
|
};
|
|
1080
1579
|
|
|
@@ -1312,7 +1811,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1312
1811
|
}
|
|
1313
1812
|
};
|
|
1314
1813
|
/**
|
|
1315
|
-
*
|
|
1814
|
+
* Add event helper
|
|
1316
1815
|
*
|
|
1317
1816
|
*/
|
|
1318
1817
|
|
|
@@ -1647,7 +2146,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1647
2146
|
control_input = getDom(settings.controlInput); // set attributes
|
|
1648
2147
|
|
|
1649
2148
|
var attrs = ['autocorrect', 'autocapitalize', 'autocomplete'];
|
|
1650
|
-
iterate(attrs, attr => {
|
|
2149
|
+
iterate$1(attrs, attr => {
|
|
1651
2150
|
if (input.getAttribute(attr)) {
|
|
1652
2151
|
setAttr(control_input, {
|
|
1653
2152
|
[attr]: input.getAttribute(attr)
|
|
@@ -1751,6 +2250,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1751
2250
|
}
|
|
1752
2251
|
|
|
1753
2252
|
self.control_input.type = input.type;
|
|
2253
|
+
addEvent(dropdown, 'mousemove', () => {
|
|
2254
|
+
self.ignoreHover = false;
|
|
2255
|
+
});
|
|
1754
2256
|
addEvent(dropdown, 'mouseenter', e => {
|
|
1755
2257
|
var target_match = parentMatch(e.target, '[data-selectable]', dropdown);
|
|
1756
2258
|
if (target_match) self.onOptionHover(e, target_match);
|
|
@@ -1787,7 +2289,6 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1787
2289
|
|
|
1788
2290
|
addEvent(control_input, 'keypress', e => self.onKeyPress(e));
|
|
1789
2291
|
addEvent(control_input, 'input', e => self.onInput(e));
|
|
1790
|
-
addEvent(focus_node, 'resize', () => self.positionDropdown(), passive_event);
|
|
1791
2292
|
addEvent(focus_node, 'blur', e => self.onBlur(e));
|
|
1792
2293
|
addEvent(focus_node, 'focus', e => self.onFocus(e));
|
|
1793
2294
|
addEvent(control_input, 'paste', e => self.onPaste(e));
|
|
@@ -1823,18 +2324,12 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1823
2324
|
}
|
|
1824
2325
|
};
|
|
1825
2326
|
|
|
1826
|
-
const win_hover = () => {
|
|
1827
|
-
self.ignoreHover = false;
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
2327
|
addEvent(document, 'mousedown', doc_mousedown);
|
|
1831
2328
|
addEvent(window, 'scroll', win_scroll, passive_event);
|
|
1832
2329
|
addEvent(window, 'resize', win_scroll, passive_event);
|
|
1833
|
-
addEvent(window, 'mousemove', win_hover, passive_event);
|
|
1834
2330
|
|
|
1835
2331
|
this._destroy = () => {
|
|
1836
2332
|
document.removeEventListener('mousedown', doc_mousedown);
|
|
1837
|
-
window.removeEventListener('mousemove', win_hover);
|
|
1838
2333
|
window.removeEventListener('scroll', win_scroll);
|
|
1839
2334
|
window.removeEventListener('resize', win_scroll);
|
|
1840
2335
|
if (label) label.removeEventListener('click', label_click);
|
|
@@ -1852,7 +2347,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1852
2347
|
settings.items = [];
|
|
1853
2348
|
delete settings.optgroups;
|
|
1854
2349
|
delete settings.options;
|
|
1855
|
-
addEvent(input, 'invalid',
|
|
2350
|
+
addEvent(input, 'invalid', () => {
|
|
1856
2351
|
if (self.isValid) {
|
|
1857
2352
|
self.isValid = false;
|
|
1858
2353
|
self.isInvalid = true;
|
|
@@ -1889,7 +2384,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
1889
2384
|
// build options table
|
|
1890
2385
|
this.addOptions(options); // build optgroup table
|
|
1891
2386
|
|
|
1892
|
-
iterate(optgroups, optgroup => {
|
|
2387
|
+
iterate$1(optgroups, optgroup => {
|
|
1893
2388
|
this.registerOptionGroup(optgroup);
|
|
1894
2389
|
});
|
|
1895
2390
|
}
|
|
@@ -2053,13 +2548,15 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2053
2548
|
}
|
|
2054
2549
|
|
|
2055
2550
|
var splitInput = pastedText.trim().split(self.settings.splitOn);
|
|
2056
|
-
iterate(splitInput, piece => {
|
|
2057
|
-
|
|
2551
|
+
iterate$1(splitInput, piece => {
|
|
2552
|
+
const hash = hash_key(piece);
|
|
2058
2553
|
|
|
2059
|
-
if (
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2554
|
+
if (hash) {
|
|
2555
|
+
if (this.options[piece]) {
|
|
2556
|
+
self.addItem(piece);
|
|
2557
|
+
} else {
|
|
2558
|
+
self.createItem(piece);
|
|
2559
|
+
}
|
|
2063
2560
|
}
|
|
2064
2561
|
});
|
|
2065
2562
|
}, 0);
|
|
@@ -2287,7 +2784,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2287
2784
|
};
|
|
2288
2785
|
|
|
2289
2786
|
if (self.settings.create && self.settings.createOnBlur) {
|
|
2290
|
-
self.createItem(null,
|
|
2787
|
+
self.createItem(null, deactivate);
|
|
2291
2788
|
} else {
|
|
2292
2789
|
deactivate();
|
|
2293
2790
|
}
|
|
@@ -2308,7 +2805,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2308
2805
|
}
|
|
2309
2806
|
|
|
2310
2807
|
if (option.classList.contains('create')) {
|
|
2311
|
-
self.createItem(null,
|
|
2808
|
+
self.createItem(null, () => {
|
|
2312
2809
|
if (self.settings.closeAfterSelect) {
|
|
2313
2810
|
self.close();
|
|
2314
2811
|
}
|
|
@@ -2677,7 +3174,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2677
3174
|
self.hideInput();
|
|
2678
3175
|
self.close();
|
|
2679
3176
|
self.activeItems = activeItems;
|
|
2680
|
-
iterate(activeItems, item => {
|
|
3177
|
+
iterate$1(activeItems, item => {
|
|
2681
3178
|
self.setActiveItemClass(item);
|
|
2682
3179
|
});
|
|
2683
3180
|
}
|
|
@@ -2813,7 +3310,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2813
3310
|
|
|
2814
3311
|
|
|
2815
3312
|
search(query) {
|
|
2816
|
-
var
|
|
3313
|
+
var result, calculateScore;
|
|
2817
3314
|
var self = this;
|
|
2818
3315
|
var options = this.getSearchOptions(); // validate user-provided result scoring function
|
|
2819
3316
|
|
|
@@ -2838,13 +3335,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2838
3335
|
|
|
2839
3336
|
|
|
2840
3337
|
if (self.settings.hideSelected) {
|
|
2841
|
-
|
|
2842
|
-
let hashed = hash_key(
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
result.items.splice(i, 1);
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
3338
|
+
result.items = result.items.filter(item => {
|
|
3339
|
+
let hashed = hash_key(item.id);
|
|
3340
|
+
return !(hashed && self.items.indexOf(hashed) !== -1);
|
|
3341
|
+
});
|
|
2848
3342
|
}
|
|
2849
3343
|
|
|
2850
3344
|
return result;
|
|
@@ -2857,21 +3351,24 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2857
3351
|
|
|
2858
3352
|
|
|
2859
3353
|
refreshOptions(triggerDropdown = true) {
|
|
2860
|
-
var i, j, k, n, optgroup, optgroups, html, has_create_option,
|
|
3354
|
+
var i, j, k, n, optgroup, optgroups, html, has_create_option, active_group;
|
|
2861
3355
|
var create;
|
|
2862
3356
|
const groups = {};
|
|
2863
3357
|
const groups_order = [];
|
|
2864
3358
|
var self = this;
|
|
2865
3359
|
var query = self.inputValue();
|
|
3360
|
+
const same_query = query === self.lastQuery || query == '' && self.lastQuery == null;
|
|
2866
3361
|
var results = self.search(query);
|
|
2867
|
-
var active_option = null;
|
|
2868
|
-
|
|
3362
|
+
var active_option = null;
|
|
2869
3363
|
var show_dropdown = self.settings.shouldOpen || false;
|
|
2870
3364
|
var dropdown_content = self.dropdown_content;
|
|
2871
3365
|
|
|
2872
|
-
if (
|
|
2873
|
-
|
|
2874
|
-
|
|
3366
|
+
if (same_query) {
|
|
3367
|
+
active_option = self.activeOption;
|
|
3368
|
+
|
|
3369
|
+
if (active_option) {
|
|
3370
|
+
active_group = active_option.closest('[data-group]');
|
|
3371
|
+
}
|
|
2875
3372
|
} // build markup
|
|
2876
3373
|
|
|
2877
3374
|
|
|
@@ -2888,12 +3385,16 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2888
3385
|
|
|
2889
3386
|
for (i = 0; i < n; i++) {
|
|
2890
3387
|
// get option dom element
|
|
2891
|
-
let
|
|
3388
|
+
let item = results.items[i];
|
|
3389
|
+
if (!item) continue;
|
|
3390
|
+
let opt_value = item.id;
|
|
2892
3391
|
let option = self.options[opt_value];
|
|
2893
|
-
|
|
3392
|
+
if (option === undefined) continue;
|
|
3393
|
+
let opt_hash = get_hash(opt_value);
|
|
3394
|
+
let option_el = self.getOption(opt_hash, true); // toggle 'selected' class
|
|
2894
3395
|
|
|
2895
3396
|
if (!self.settings.hideSelected) {
|
|
2896
|
-
option_el.classList.toggle('selected', self.items.includes(
|
|
3397
|
+
option_el.classList.toggle('selected', self.items.includes(opt_hash));
|
|
2897
3398
|
}
|
|
2898
3399
|
|
|
2899
3400
|
optgroup = option[self.settings.optgroupField] || '';
|
|
@@ -2906,8 +3407,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2906
3407
|
optgroup = '';
|
|
2907
3408
|
}
|
|
2908
3409
|
|
|
2909
|
-
|
|
2910
|
-
|
|
3410
|
+
let group_fragment = groups[optgroup];
|
|
3411
|
+
|
|
3412
|
+
if (group_fragment === undefined) {
|
|
3413
|
+
group_fragment = document.createDocumentFragment();
|
|
2911
3414
|
groups_order.push(optgroup);
|
|
2912
3415
|
} // nodes can only have one parent, so if the option is in mutple groups, we need a clone
|
|
2913
3416
|
|
|
@@ -2919,48 +3422,50 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2919
3422
|
'aria-selected': null
|
|
2920
3423
|
});
|
|
2921
3424
|
option_el.classList.add('ts-cloned');
|
|
2922
|
-
removeClasses(option_el, 'active');
|
|
2923
|
-
} // make sure we keep the activeOption in the same group
|
|
2924
|
-
|
|
3425
|
+
removeClasses(option_el, 'active'); // make sure we keep the activeOption in the same group
|
|
2925
3426
|
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
if (active_group.dataset.group === optgroup) {
|
|
3427
|
+
if (self.activeOption && self.activeOption.dataset.value == opt_value) {
|
|
3428
|
+
if (active_group && active_group.dataset.group === optgroup.toString()) {
|
|
2929
3429
|
active_option = option_el;
|
|
2930
3430
|
}
|
|
2931
|
-
} else {
|
|
2932
|
-
active_option = option_el;
|
|
2933
3431
|
}
|
|
2934
3432
|
}
|
|
2935
3433
|
|
|
2936
|
-
|
|
3434
|
+
group_fragment.appendChild(option_el);
|
|
3435
|
+
groups[optgroup] = group_fragment;
|
|
2937
3436
|
}
|
|
2938
3437
|
} // sort optgroups
|
|
2939
3438
|
|
|
2940
3439
|
|
|
2941
|
-
if (
|
|
3440
|
+
if (self.settings.lockOptgroupOrder) {
|
|
2942
3441
|
groups_order.sort((a, b) => {
|
|
2943
|
-
|
|
2944
|
-
|
|
3442
|
+
const grp_a = self.optgroups[a];
|
|
3443
|
+
const grp_b = self.optgroups[b];
|
|
3444
|
+
const a_order = grp_a && grp_a.$order || 0;
|
|
3445
|
+
const b_order = grp_b && grp_b.$order || 0;
|
|
2945
3446
|
return a_order - b_order;
|
|
2946
3447
|
});
|
|
2947
3448
|
} // render optgroup headers & join groups
|
|
2948
3449
|
|
|
2949
3450
|
|
|
2950
3451
|
html = document.createDocumentFragment();
|
|
2951
|
-
iterate(groups_order, optgroup => {
|
|
2952
|
-
|
|
3452
|
+
iterate$1(groups_order, optgroup => {
|
|
3453
|
+
let group_fragment = groups[optgroup];
|
|
3454
|
+
if (!group_fragment || !group_fragment.children.length) return;
|
|
3455
|
+
let group_heading = self.optgroups[optgroup];
|
|
3456
|
+
|
|
3457
|
+
if (group_heading !== undefined) {
|
|
2953
3458
|
let group_options = document.createDocumentFragment();
|
|
2954
|
-
let header = self.render('optgroup_header',
|
|
3459
|
+
let header = self.render('optgroup_header', group_heading);
|
|
2955
3460
|
append(group_options, header);
|
|
2956
|
-
append(group_options,
|
|
3461
|
+
append(group_options, group_fragment);
|
|
2957
3462
|
let group_html = self.render('optgroup', {
|
|
2958
|
-
group:
|
|
3463
|
+
group: group_heading,
|
|
2959
3464
|
options: group_options
|
|
2960
3465
|
});
|
|
2961
3466
|
append(html, group_html);
|
|
2962
3467
|
} else {
|
|
2963
|
-
append(html,
|
|
3468
|
+
append(html, group_fragment);
|
|
2964
3469
|
}
|
|
2965
3470
|
});
|
|
2966
3471
|
dropdown_content.innerHTML = '';
|
|
@@ -2970,7 +3475,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
2970
3475
|
removeHighlight(dropdown_content);
|
|
2971
3476
|
|
|
2972
3477
|
if (results.query.length && results.tokens.length) {
|
|
2973
|
-
iterate(results.tokens, tok => {
|
|
3478
|
+
iterate$1(results.tokens, tok => {
|
|
2974
3479
|
highlight(dropdown_content, tok.regex);
|
|
2975
3480
|
});
|
|
2976
3481
|
}
|
|
@@ -3011,7 +3516,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3011
3516
|
|
|
3012
3517
|
if (show_dropdown) {
|
|
3013
3518
|
if (results.items.length > 0) {
|
|
3014
|
-
if (!active_option && self.settings.mode === 'single' && self.items
|
|
3519
|
+
if (!active_option && self.settings.mode === 'single' && self.items[0] != undefined) {
|
|
3015
3520
|
active_option = self.getOption(self.items[0]);
|
|
3016
3521
|
}
|
|
3017
3522
|
|
|
@@ -3098,7 +3603,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3098
3603
|
|
|
3099
3604
|
|
|
3100
3605
|
addOptions(data, user_created = false) {
|
|
3101
|
-
iterate(data, dat => {
|
|
3606
|
+
iterate$1(data, dat => {
|
|
3102
3607
|
this.addOption(dat, user_created);
|
|
3103
3608
|
});
|
|
3104
3609
|
}
|
|
@@ -3178,11 +3683,12 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3178
3683
|
const value_new = hash_key(data[self.settings.valueField]); // sanity checks
|
|
3179
3684
|
|
|
3180
3685
|
if (value_old === null) return;
|
|
3181
|
-
|
|
3686
|
+
const data_old = self.options[value_old];
|
|
3687
|
+
if (data_old == undefined) return;
|
|
3182
3688
|
if (typeof value_new !== 'string') throw new Error('Value must be set in option data');
|
|
3183
3689
|
const option = self.getOption(value_old);
|
|
3184
3690
|
const item = self.getItem(value_old);
|
|
3185
|
-
data.$order = data.$order ||
|
|
3691
|
+
data.$order = data.$order || data_old.$order;
|
|
3186
3692
|
delete self.options[value_old]; // invalidate render cache
|
|
3187
3693
|
// don't remove existing node yet, we'll remove it after replacing it
|
|
3188
3694
|
|
|
@@ -3246,9 +3752,9 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3246
3752
|
this.userOptions = {};
|
|
3247
3753
|
this.clearCache();
|
|
3248
3754
|
const selected = {};
|
|
3249
|
-
iterate(this.options, (option, key) => {
|
|
3755
|
+
iterate$1(this.options, (option, key) => {
|
|
3250
3756
|
if (boundFilter(option, key)) {
|
|
3251
|
-
selected[key] =
|
|
3757
|
+
selected[key] = option;
|
|
3252
3758
|
}
|
|
3253
3759
|
});
|
|
3254
3760
|
this.options = this.sifter.items = selected;
|
|
@@ -3278,10 +3784,10 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3278
3784
|
|
|
3279
3785
|
getOption(value, create = false) {
|
|
3280
3786
|
const hashed = hash_key(value);
|
|
3787
|
+
if (hashed === null) return null;
|
|
3788
|
+
const option = this.options[hashed];
|
|
3281
3789
|
|
|
3282
|
-
if (
|
|
3283
|
-
const option = this.options[hashed];
|
|
3284
|
-
|
|
3790
|
+
if (option != undefined) {
|
|
3285
3791
|
if (option.$div) {
|
|
3286
3792
|
return option.$div;
|
|
3287
3793
|
}
|
|
@@ -3354,11 +3860,11 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3354
3860
|
var self = this;
|
|
3355
3861
|
var items = Array.isArray(values) ? values : [values];
|
|
3356
3862
|
items = items.filter(x => self.items.indexOf(x) === -1);
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
self.isPending =
|
|
3360
|
-
self.addItem(
|
|
3361
|
-
}
|
|
3863
|
+
const last_item = items[items.length - 1];
|
|
3864
|
+
items.forEach(item => {
|
|
3865
|
+
self.isPending = item !== last_item;
|
|
3866
|
+
self.addItem(item, silent);
|
|
3867
|
+
});
|
|
3362
3868
|
}
|
|
3363
3869
|
/**
|
|
3364
3870
|
* "Selects" an item. Adds it to the list
|
|
@@ -3489,7 +3995,16 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3489
3995
|
*/
|
|
3490
3996
|
|
|
3491
3997
|
|
|
3492
|
-
createItem(input = null,
|
|
3998
|
+
createItem(input = null, callback = () => {}) {
|
|
3999
|
+
// triggerDropdown parameter @deprecated 2.1.1
|
|
4000
|
+
if (arguments.length === 3) {
|
|
4001
|
+
callback = arguments[2];
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
if (typeof callback != 'function') {
|
|
4005
|
+
callback = () => {};
|
|
4006
|
+
}
|
|
4007
|
+
|
|
3493
4008
|
var self = this;
|
|
3494
4009
|
var caret = self.caretPos;
|
|
3495
4010
|
var output;
|
|
@@ -3765,7 +4280,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3765
4280
|
var self = this;
|
|
3766
4281
|
if (!self.items.length) return;
|
|
3767
4282
|
var items = self.controlChildren();
|
|
3768
|
-
iterate(items, item => {
|
|
4283
|
+
iterate$1(items, item => {
|
|
3769
4284
|
self.removeItem(item, true);
|
|
3770
4285
|
});
|
|
3771
4286
|
self.showInput();
|
|
@@ -3783,7 +4298,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3783
4298
|
const self = this;
|
|
3784
4299
|
const caret = self.caretPos;
|
|
3785
4300
|
const target = self.control;
|
|
3786
|
-
target.insertBefore(el, target.children[caret]);
|
|
4301
|
+
target.insertBefore(el, target.children[caret] || null);
|
|
3787
4302
|
self.setCaret(caret + 1);
|
|
3788
4303
|
}
|
|
3789
4304
|
/**
|
|
@@ -3808,14 +4323,19 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
3808
4323
|
caret++;
|
|
3809
4324
|
}
|
|
3810
4325
|
|
|
3811
|
-
iterate(self.activeItems, item => rm_items.push(item));
|
|
4326
|
+
iterate$1(self.activeItems, item => rm_items.push(item));
|
|
3812
4327
|
} else if ((self.isFocused || self.settings.mode === 'single') && self.items.length) {
|
|
3813
4328
|
const items = self.controlChildren();
|
|
4329
|
+
let rm_item;
|
|
3814
4330
|
|
|
3815
4331
|
if (direction < 0 && selection.start === 0 && selection.length === 0) {
|
|
3816
|
-
|
|
4332
|
+
rm_item = items[self.caretPos - 1];
|
|
3817
4333
|
} else if (direction > 0 && selection.start === self.inputValue().length) {
|
|
3818
|
-
|
|
4334
|
+
rm_item = items[self.caretPos];
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
if (rm_item !== undefined) {
|
|
4338
|
+
rm_items.push(rm_item);
|
|
3819
4339
|
}
|
|
3820
4340
|
}
|
|
3821
4341
|
|
|
@@ -4017,33 +4537,18 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4017
4537
|
|
|
4018
4538
|
|
|
4019
4539
|
render(templateName, data) {
|
|
4020
|
-
|
|
4021
|
-
return null;
|
|
4022
|
-
}
|
|
4023
|
-
|
|
4024
|
-
return this._render(templateName, data);
|
|
4025
|
-
}
|
|
4026
|
-
/**
|
|
4027
|
-
* _render() can be called directly when we know we don't want to hit the cache
|
|
4028
|
-
* return type could be null for some templates, we need https://github.com/microsoft/TypeScript/issues/33014
|
|
4029
|
-
*/
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
_render(templateName, data) {
|
|
4033
|
-
var value = '',
|
|
4034
|
-
id,
|
|
4035
|
-
html;
|
|
4540
|
+
var id, html;
|
|
4036
4541
|
const self = this;
|
|
4037
4542
|
|
|
4038
|
-
if (
|
|
4039
|
-
|
|
4543
|
+
if (typeof this.settings.render[templateName] !== 'function') {
|
|
4544
|
+
return null;
|
|
4040
4545
|
} // render markup
|
|
4041
4546
|
|
|
4042
4547
|
|
|
4043
4548
|
html = self.settings.render[templateName].call(this, data, escape_html);
|
|
4044
4549
|
|
|
4045
|
-
if (html
|
|
4046
|
-
return
|
|
4550
|
+
if (!html) {
|
|
4551
|
+
return null;
|
|
4047
4552
|
}
|
|
4048
4553
|
|
|
4049
4554
|
html = getDom(html); // add mandatory attributes
|
|
@@ -4072,6 +4577,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4072
4577
|
}
|
|
4073
4578
|
|
|
4074
4579
|
if (templateName === 'option' || templateName === 'item') {
|
|
4580
|
+
const value = get_hash(data[self.settings.valueField]);
|
|
4075
4581
|
setAttr(html, {
|
|
4076
4582
|
'data-value': value
|
|
4077
4583
|
}); // make sure we have some classes if a template is overwritten
|
|
@@ -4088,12 +4594,28 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4088
4594
|
id: data.$id
|
|
4089
4595
|
}); // update cache
|
|
4090
4596
|
|
|
4091
|
-
|
|
4597
|
+
data.$div = html;
|
|
4598
|
+
self.options[value] = data;
|
|
4092
4599
|
}
|
|
4093
4600
|
}
|
|
4094
4601
|
|
|
4095
4602
|
return html;
|
|
4096
4603
|
}
|
|
4604
|
+
/**
|
|
4605
|
+
* Type guarded rendering
|
|
4606
|
+
*
|
|
4607
|
+
*/
|
|
4608
|
+
|
|
4609
|
+
|
|
4610
|
+
_render(templateName, data) {
|
|
4611
|
+
const html = this.render(templateName, data);
|
|
4612
|
+
|
|
4613
|
+
if (html == null) {
|
|
4614
|
+
throw 'HTMLElement expected';
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
return html;
|
|
4618
|
+
}
|
|
4097
4619
|
/**
|
|
4098
4620
|
* Clears the render cache for a template. If
|
|
4099
4621
|
* no template is given, clears all render
|
|
@@ -4103,7 +4625,7 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4103
4625
|
|
|
4104
4626
|
|
|
4105
4627
|
clearCache() {
|
|
4106
|
-
iterate(this.options,
|
|
4628
|
+
iterate$1(this.options, option => {
|
|
4107
4629
|
if (option.$div) {
|
|
4108
4630
|
option.$div.remove();
|
|
4109
4631
|
delete option.$div;
|
|
@@ -4174,153 +4696,207 @@ var tomSelect_base = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4174
4696
|
|
|
4175
4697
|
var remove_button = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4176
4698
|
/**
|
|
4177
|
-
* Tom Select v2.
|
|
4699
|
+
* Tom Select v2.2.2
|
|
4178
4700
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4179
4701
|
*/
|
|
4180
4702
|
|
|
4181
4703
|
(function (global, factory) {
|
|
4182
|
-
|
|
4704
|
+
module.exports = factory() ;
|
|
4183
4705
|
})(_commonjsHelpers.commonjsGlobal, (function () {
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4706
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
4707
|
+
const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
|
|
4708
|
+
/** @type {TUnicodeMap} */
|
|
4709
|
+
|
|
4710
|
+
const latin_convert = {};
|
|
4711
|
+
/** @type {TUnicodeMap} */
|
|
4712
|
+
|
|
4713
|
+
const latin_condensed = {
|
|
4714
|
+
'/': '⁄∕',
|
|
4715
|
+
'0': '߀',
|
|
4716
|
+
"a": "ⱥɐɑ",
|
|
4717
|
+
"aa": "ꜳ",
|
|
4718
|
+
"ae": "æǽǣ",
|
|
4719
|
+
"ao": "ꜵ",
|
|
4720
|
+
"au": "ꜷ",
|
|
4721
|
+
"av": "ꜹꜻ",
|
|
4722
|
+
"ay": "ꜽ",
|
|
4723
|
+
"b": "ƀɓƃ",
|
|
4724
|
+
"c": "ꜿƈȼↄ",
|
|
4725
|
+
"d": "đɗɖᴅƌꮷԁɦ",
|
|
4726
|
+
"e": "ɛǝᴇɇ",
|
|
4727
|
+
"f": "ꝼƒ",
|
|
4728
|
+
"g": "ǥɠꞡᵹꝿɢ",
|
|
4729
|
+
"h": "ħⱨⱶɥ",
|
|
4730
|
+
"i": "ɨı",
|
|
4731
|
+
"j": "ɉȷ",
|
|
4732
|
+
"k": "ƙⱪꝁꝃꝅꞣ",
|
|
4733
|
+
"l": "łƚɫⱡꝉꝇꞁɭ",
|
|
4734
|
+
"m": "ɱɯϻ",
|
|
4735
|
+
"n": "ꞥƞɲꞑᴎлԉ",
|
|
4736
|
+
"o": "øǿɔɵꝋꝍᴑ",
|
|
4737
|
+
"oe": "œ",
|
|
4738
|
+
"oi": "ƣ",
|
|
4739
|
+
"oo": "ꝏ",
|
|
4740
|
+
"ou": "ȣ",
|
|
4741
|
+
"p": "ƥᵽꝑꝓꝕρ",
|
|
4742
|
+
"q": "ꝗꝙɋ",
|
|
4743
|
+
"r": "ɍɽꝛꞧꞃ",
|
|
4744
|
+
"s": "ßȿꞩꞅʂ",
|
|
4745
|
+
"t": "ŧƭʈⱦꞇ",
|
|
4746
|
+
"th": "þ",
|
|
4747
|
+
"tz": "ꜩ",
|
|
4748
|
+
"u": "ʉ",
|
|
4749
|
+
"v": "ʋꝟʌ",
|
|
4750
|
+
"vy": "ꝡ",
|
|
4751
|
+
"w": "ⱳ",
|
|
4752
|
+
"y": "ƴɏỿ",
|
|
4753
|
+
"z": "ƶȥɀⱬꝣ",
|
|
4754
|
+
"hv": "ƕ"
|
|
4755
|
+
};
|
|
4756
|
+
|
|
4757
|
+
for (let latin in latin_condensed) {
|
|
4758
|
+
let unicode = latin_condensed[latin] || '';
|
|
4759
|
+
|
|
4760
|
+
for (let i = 0; i < unicode.length; i++) {
|
|
4761
|
+
let char = unicode.substring(i, i + 1);
|
|
4762
|
+
latin_convert[char] = latin;
|
|
4763
|
+
}
|
|
4764
|
+
}
|
|
4203
4765
|
|
|
4204
|
-
|
|
4205
|
-
return query;
|
|
4206
|
-
}
|
|
4766
|
+
new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
|
|
4207
4767
|
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4768
|
+
/**
|
|
4769
|
+
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
|
|
4770
|
+
* https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
|
|
4771
|
+
*
|
|
4772
|
+
* param query should be {}
|
|
4773
|
+
*/
|
|
4774
|
+
|
|
4775
|
+
const getDom = query => {
|
|
4776
|
+
if (query.jquery) {
|
|
4777
|
+
return query[0];
|
|
4778
|
+
}
|
|
4211
4779
|
|
|
4212
|
-
|
|
4213
|
-
|
|
4780
|
+
if (query instanceof HTMLElement) {
|
|
4781
|
+
return query;
|
|
4782
|
+
}
|
|
4214
4783
|
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
if (typeof arg === 'string' && arg.indexOf('<') > -1) {
|
|
4219
|
-
return true;
|
|
4220
|
-
}
|
|
4784
|
+
if (isHtmlString(query)) {
|
|
4785
|
+
var tpl = document.createElement('template');
|
|
4786
|
+
tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
|
|
4221
4787
|
|
|
4222
|
-
|
|
4223
|
-
|
|
4788
|
+
return tpl.content.firstChild;
|
|
4789
|
+
}
|
|
4224
4790
|
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
* null -> ''
|
|
4232
|
-
* undefined -> ''
|
|
4233
|
-
* true -> '1'
|
|
4234
|
-
* false -> '0'
|
|
4235
|
-
* 0 -> '0'
|
|
4236
|
-
* 1 -> '1'
|
|
4237
|
-
*
|
|
4238
|
-
*/
|
|
4239
|
-
/**
|
|
4240
|
-
* Escapes a string for use within HTML.
|
|
4241
|
-
*
|
|
4242
|
-
*/
|
|
4791
|
+
return document.querySelector(query);
|
|
4792
|
+
};
|
|
4793
|
+
const isHtmlString = arg => {
|
|
4794
|
+
if (typeof arg === 'string' && arg.indexOf('<') > -1) {
|
|
4795
|
+
return true;
|
|
4796
|
+
}
|
|
4243
4797
|
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
};
|
|
4247
|
-
/**
|
|
4248
|
-
* Prevent default
|
|
4249
|
-
*
|
|
4250
|
-
*/
|
|
4798
|
+
return false;
|
|
4799
|
+
};
|
|
4251
4800
|
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4801
|
+
/**
|
|
4802
|
+
* Converts a scalar to its best string representation
|
|
4803
|
+
* for hash keys and HTML attribute values.
|
|
4804
|
+
*
|
|
4805
|
+
* Transformations:
|
|
4806
|
+
* 'str' -> 'str'
|
|
4807
|
+
* null -> ''
|
|
4808
|
+
* undefined -> ''
|
|
4809
|
+
* true -> '1'
|
|
4810
|
+
* false -> '0'
|
|
4811
|
+
* 0 -> '0'
|
|
4812
|
+
* 1 -> '1'
|
|
4813
|
+
*
|
|
4814
|
+
*/
|
|
4815
|
+
/**
|
|
4816
|
+
* Escapes a string for use within HTML.
|
|
4817
|
+
*
|
|
4818
|
+
*/
|
|
4255
4819
|
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
*
|
|
4264
|
-
*/
|
|
4820
|
+
const escape_html = str => {
|
|
4821
|
+
return (str + '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
4822
|
+
};
|
|
4823
|
+
/**
|
|
4824
|
+
* Prevent default
|
|
4825
|
+
*
|
|
4826
|
+
*/
|
|
4265
4827
|
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4828
|
+
const preventDefault = (evt, stop = false) => {
|
|
4829
|
+
if (evt) {
|
|
4830
|
+
evt.preventDefault();
|
|
4269
4831
|
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
4280
|
-
* ANY KIND, either express or implied. See the License for the specific language
|
|
4281
|
-
* governing permissions and limitations under the License.
|
|
4282
|
-
*
|
|
4283
|
-
*/
|
|
4284
|
-
function plugin (userOptions) {
|
|
4285
|
-
const options = Object.assign({
|
|
4286
|
-
label: '×',
|
|
4287
|
-
title: 'Remove',
|
|
4288
|
-
className: 'remove',
|
|
4289
|
-
append: true
|
|
4290
|
-
}, userOptions); //options.className = 'remove-single';
|
|
4832
|
+
if (stop) {
|
|
4833
|
+
evt.stopPropagation();
|
|
4834
|
+
}
|
|
4835
|
+
}
|
|
4836
|
+
};
|
|
4837
|
+
/**
|
|
4838
|
+
* Add event helper
|
|
4839
|
+
*
|
|
4840
|
+
*/
|
|
4291
4841
|
|
|
4292
|
-
|
|
4842
|
+
const addEvent = (target, type, callback, options) => {
|
|
4843
|
+
target.addEventListener(type, callback, options);
|
|
4844
|
+
};
|
|
4293
4845
|
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4846
|
+
/**
|
|
4847
|
+
* Plugin: "remove_button" (Tom Select)
|
|
4848
|
+
* Copyright (c) contributors
|
|
4849
|
+
*
|
|
4850
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
|
|
4851
|
+
* file except in compliance with the License. You may obtain a copy of the License at:
|
|
4852
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4853
|
+
*
|
|
4854
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
4855
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
4856
|
+
* ANY KIND, either express or implied. See the License for the specific language
|
|
4857
|
+
* governing permissions and limitations under the License.
|
|
4858
|
+
*
|
|
4859
|
+
*/
|
|
4860
|
+
function plugin (userOptions) {
|
|
4861
|
+
const options = Object.assign({
|
|
4862
|
+
label: '×',
|
|
4863
|
+
title: 'Remove',
|
|
4864
|
+
className: 'remove',
|
|
4865
|
+
append: true
|
|
4866
|
+
}, userOptions); //options.className = 'remove-single';
|
|
4867
|
+
|
|
4868
|
+
var self = this; // override the render method to add remove button to each item
|
|
4869
|
+
|
|
4870
|
+
if (!options.append) {
|
|
4871
|
+
return;
|
|
4872
|
+
}
|
|
4297
4873
|
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4874
|
+
var html = '<a href="javascript:void(0)" class="' + options.className + '" tabindex="-1" title="' + escape_html(options.title) + '">' + options.label + '</a>';
|
|
4875
|
+
self.hook('after', 'setupTemplates', () => {
|
|
4876
|
+
var orig_render_item = self.settings.render.item;
|
|
4301
4877
|
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4878
|
+
self.settings.render.item = (data, escape) => {
|
|
4879
|
+
var item = getDom(orig_render_item.call(self, data, escape));
|
|
4880
|
+
var close_button = getDom(html);
|
|
4881
|
+
item.appendChild(close_button);
|
|
4882
|
+
addEvent(close_button, 'mousedown', evt => {
|
|
4883
|
+
preventDefault(evt, true);
|
|
4884
|
+
});
|
|
4885
|
+
addEvent(close_button, 'click', evt => {
|
|
4886
|
+
// propagating will trigger the dropdown to show for single mode
|
|
4887
|
+
preventDefault(evt, true);
|
|
4888
|
+
if (self.isLocked) return;
|
|
4889
|
+
if (!self.shouldDelete([item], evt)) return;
|
|
4890
|
+
self.removeItem(item);
|
|
4891
|
+
self.refreshOptions(false);
|
|
4892
|
+
self.inputState();
|
|
4893
|
+
});
|
|
4894
|
+
return item;
|
|
4895
|
+
};
|
|
4896
|
+
});
|
|
4897
|
+
}
|
|
4322
4898
|
|
|
4323
|
-
|
|
4899
|
+
return plugin;
|
|
4324
4900
|
|
|
4325
4901
|
}));
|
|
4326
4902
|
//# sourceMappingURL=remove_button.js.map
|
|
@@ -4328,7 +4904,7 @@ var remove_button = _commonjsHelpers.createCommonjsModule(function (module, expo
|
|
|
4328
4904
|
|
|
4329
4905
|
var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4330
4906
|
/**
|
|
4331
|
-
* Tom Select v2.
|
|
4907
|
+
* Tom Select v2.2.2
|
|
4332
4908
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4333
4909
|
*/
|
|
4334
4910
|
|
|
@@ -4372,13 +4948,67 @@ var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, e
|
|
|
4372
4948
|
}
|
|
4373
4949
|
};
|
|
4374
4950
|
|
|
4375
|
-
|
|
4376
|
-
const
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4951
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
4952
|
+
const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
|
|
4953
|
+
/** @type {TUnicodeMap} */
|
|
4954
|
+
|
|
4955
|
+
const latin_convert = {};
|
|
4956
|
+
/** @type {TUnicodeMap} */
|
|
4957
|
+
|
|
4958
|
+
const latin_condensed = {
|
|
4959
|
+
'/': '⁄∕',
|
|
4960
|
+
'0': '߀',
|
|
4961
|
+
"a": "ⱥɐɑ",
|
|
4962
|
+
"aa": "ꜳ",
|
|
4963
|
+
"ae": "æǽǣ",
|
|
4964
|
+
"ao": "ꜵ",
|
|
4965
|
+
"au": "ꜷ",
|
|
4966
|
+
"av": "ꜹꜻ",
|
|
4967
|
+
"ay": "ꜽ",
|
|
4968
|
+
"b": "ƀɓƃ",
|
|
4969
|
+
"c": "ꜿƈȼↄ",
|
|
4970
|
+
"d": "đɗɖᴅƌꮷԁɦ",
|
|
4971
|
+
"e": "ɛǝᴇɇ",
|
|
4972
|
+
"f": "ꝼƒ",
|
|
4973
|
+
"g": "ǥɠꞡᵹꝿɢ",
|
|
4974
|
+
"h": "ħⱨⱶɥ",
|
|
4975
|
+
"i": "ɨı",
|
|
4976
|
+
"j": "ɉȷ",
|
|
4977
|
+
"k": "ƙⱪꝁꝃꝅꞣ",
|
|
4978
|
+
"l": "łƚɫⱡꝉꝇꞁɭ",
|
|
4979
|
+
"m": "ɱɯϻ",
|
|
4980
|
+
"n": "ꞥƞɲꞑᴎлԉ",
|
|
4981
|
+
"o": "øǿɔɵꝋꝍᴑ",
|
|
4982
|
+
"oe": "œ",
|
|
4983
|
+
"oi": "ƣ",
|
|
4984
|
+
"oo": "ꝏ",
|
|
4985
|
+
"ou": "ȣ",
|
|
4986
|
+
"p": "ƥᵽꝑꝓꝕρ",
|
|
4987
|
+
"q": "ꝗꝙɋ",
|
|
4988
|
+
"r": "ɍɽꝛꞧꞃ",
|
|
4989
|
+
"s": "ßȿꞩꞅʂ",
|
|
4990
|
+
"t": "ŧƭʈⱦꞇ",
|
|
4991
|
+
"th": "þ",
|
|
4992
|
+
"tz": "ꜩ",
|
|
4993
|
+
"u": "ʉ",
|
|
4994
|
+
"v": "ʋꝟʌ",
|
|
4995
|
+
"vy": "ꝡ",
|
|
4996
|
+
"w": "ⱳ",
|
|
4997
|
+
"y": "ƴɏỿ",
|
|
4998
|
+
"z": "ƶȥɀⱬꝣ",
|
|
4999
|
+
"hv": "ƕ"
|
|
4380
5000
|
};
|
|
4381
|
-
|
|
5001
|
+
|
|
5002
|
+
for (let latin in latin_condensed) {
|
|
5003
|
+
let unicode = latin_condensed[latin] || '';
|
|
5004
|
+
|
|
5005
|
+
for (let i = 0; i < unicode.length; i++) {
|
|
5006
|
+
let char = unicode.substring(i, i + 1);
|
|
5007
|
+
latin_convert[char] = latin;
|
|
5008
|
+
}
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
|
|
4382
5012
|
|
|
4383
5013
|
/**
|
|
4384
5014
|
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
|
|
@@ -4397,10 +5027,10 @@ var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, e
|
|
|
4397
5027
|
}
|
|
4398
5028
|
|
|
4399
5029
|
if (isHtmlString(query)) {
|
|
4400
|
-
|
|
4401
|
-
|
|
5030
|
+
var tpl = document.createElement('template');
|
|
5031
|
+
tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
|
|
4402
5032
|
|
|
4403
|
-
return
|
|
5033
|
+
return tpl.content.firstChild;
|
|
4404
5034
|
}
|
|
4405
5035
|
|
|
4406
5036
|
return document.querySelector(query);
|
|
@@ -4510,7 +5140,7 @@ var checkbox_options = _commonjsHelpers.createCommonjsModule(function (module, e
|
|
|
4510
5140
|
|
|
4511
5141
|
var input_autogrow = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4512
5142
|
/**
|
|
4513
|
-
* Tom Select v2.
|
|
5143
|
+
* Tom Select v2.2.2
|
|
4514
5144
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4515
5145
|
*/
|
|
4516
5146
|
|
|
@@ -4532,7 +5162,7 @@ var input_autogrow = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4532
5162
|
*
|
|
4533
5163
|
*/
|
|
4534
5164
|
/**
|
|
4535
|
-
*
|
|
5165
|
+
* Add event helper
|
|
4536
5166
|
*
|
|
4537
5167
|
*/
|
|
4538
5168
|
|
|
@@ -4594,7 +5224,7 @@ var input_autogrow = _commonjsHelpers.createCommonjsModule(function (module, exp
|
|
|
4594
5224
|
|
|
4595
5225
|
var no_backspace_delete = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
4596
5226
|
/**
|
|
4597
|
-
* Tom Select v2.
|
|
5227
|
+
* Tom Select v2.2.2
|
|
4598
5228
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4599
5229
|
*/
|
|
4600
5230
|
|
|
@@ -4634,12 +5264,13 @@ var no_backspace_delete = _commonjsHelpers.createCommonjsModule(function (module
|
|
|
4634
5264
|
|
|
4635
5265
|
const stzhDropdownCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-dropdown{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-grey61);--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-white);--label-background:var(--stzh-color-white);--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--hover-color);--popover-width:100%;--popover-min-width:var(--stzh-popover-min-width);--popover-max-width:var(--stzh-popover-min-width);--popover-max-height:calc(6.5 * var(--stzh-menu-item-height));width:100%;border-radius:var(--stzh-form-input-border-radius);}stzh-dropdown[hidden]{display:none}stzh-dropdown *,stzh-dropdown *::before,stzh-dropdown *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-dropdown[variant=plain]{--background-color:transparent}stzh-dropdown[inline]:not([inline=false]){--popover-width:auto;width:auto}stzh-dropdown[invalid]:not([invalid=false]){--color:var(--stzh-color-error);--border-color:var(--stzh-color-error);--label-color:var(--stzh-color-error);--placeholder-color:var(--stzh-color-error);--hover-color:var(--stzh-color-error);--hover-border-color:var(--stzh-color-error)}stzh-dropdown[disabled]:not([disabled=false]){--color:var(--stzh-color-grey61);--border-color:transparent;--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-black8);--label-background:transparent;--hover-color:var(--stzh-color-grey61);--hover-border-color:transparent}stzh-dropdown[disabled]:not([disabled=false])[variant=plain]{--background-color:transparent}.stzh-dropdown__icon-wrapper stzh-icon,.stzh-dropdown__icon{--size:var(--icon-size)}.stzh-dropdown{}.stzh-dropdown__marker-symbol{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-dropdown__marker-text{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__description-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-dropdown__error,.stzh-dropdown__description{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-dropdown__error{color:var(--stzh-color-error)}.stzh-dropdown__error-list{list-style:none;margin:0;padding:0}.stzh-dropdown__description{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-dropdown__description-long{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-dropdown__description-long-popover{--width:auto;--max-width:27.3125rem}.stzh-dropdown__description-long-popover[open]:not([open=false]) .stzh-dropdown__description-long-button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__description-long-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-dropdown__description-long-button:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown stzh-icon.stzh-dropdown__description-long-icon{--size:var(--stzh-icon-size-xsmall)}.stzh-dropdown--has-error .stzh-dropdown__error,.stzh-dropdown--has-description .stzh-dropdown__description{margin-top:var(--stzh-space-xxsmall)}.stzh-dropdown .ts-hidden-accessible{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown .ts-dropdown-content{max-height:var(--popover-max-height);overflow-y:auto;overflow-x:hidden;overflow-scrolling:touch;scroll-behavior:smooth}.stzh-dropdown .ts-control{overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:var(--stzh-form-input-border-radius);background-color:var(--background-color);-webkit-transition-property:color, border-color;transition-property:color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown .ts-control:hover,.stzh-dropdown .ts-control:focus-within{border-color:var(--hover-border-color);outline:none}.stzh-dropdown .ts-control>*{vertical-align:baseline;display:inline-block}.stzh-dropdown .ts-control,.stzh-dropdown__sizer{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;width:100%;min-height:var(--stzh-form-input-height);border:0.0625rem solid var(--border-color)}.stzh-dropdown .ts-control>input{font-size:inherit;line-height:inherit;-ms-flex:1 1 auto;flex:1 1 auto;display:inline-block;padding:0;min-height:0;max-height:none;max-width:100%;margin:0;text-indent:0;border:0 none;background:none;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.stzh-dropdown .ts-control>input::-webkit-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-ms-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-ms-clear{display:none}.stzh-dropdown .ts-control>input:focus{outline:none}.stzh-dropdown .ts-control>input:-moz-placeholder-shown{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:-ms-input-placeholder{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:placeholder-shown{text-overflow:ellipsis}.stzh-dropdown__field-wrapper,.stzh-dropdown__select{position:relative}.stzh-dropdown__icon-wrapper{position:absolute}.stzh-dropdown__select .ts-control>input,.stzh-dropdown__select.single .stzh-dropdown__item,.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-dropdown__select.multi .stzh-dropdown__item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__select:hover .ts-control>input,.stzh-dropdown__select:focus-within .ts-control>input,.stzh-dropdown__select.single:hover .stzh-dropdown__item,.stzh-dropdown__select.single:focus-within .stzh-dropdown__item,.stzh-dropdown__select:hover~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:focus-within~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:hover~.stzh-dropdown__angle-icon,.stzh-dropdown__select:focus-within~.stzh-dropdown__angle-icon,.stzh-dropdown__select:hover~.stzh-dropdown__label,.stzh-dropdown__select:focus-within~.stzh-dropdown__label{color:var(--hover-color)}.stzh-dropdown__sizer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:calc(var(--stzh-form-input-height) / -1);pointer-events:none;visibility:hidden}.stzh-dropdown__select.has-items~.stzh-dropdown__sizer{display:none}.stzh-dropdown__select.plugin-input_hide~.stzh-dropdown__sizer{visibility:visible}.stzh-dropdown__select.input-active .ts-control,.stzh-dropdown__select.input-active .ts-control>input{cursor:text}.stzh-dropdown__select.input-hidden .ts-control>input,.stzh-dropdown__select.plugin-input_hide .ts-control>input{opacity:0;position:absolute;left:-625rem}.stzh-dropdown__select.single .ts-control,.stzh-dropdown__select.multi .ts-control,.stzh-dropdown__sizer{padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.stzh-dropdown__icon-wrapper{display:-ms-flexbox;display:flex;left:var(--stzh-space-medium)}.stzh-dropdown stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-medium)}.stzh-dropdown__angle-icon{right:var(--stzh-space-medium)}.stzh-dropdown__label{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--label-color);display:block;width:auto;position:absolute;top:calc(var(--stzh-form-input-height) / 2);left:calc(var(--stzh-space-medium) + 0.0625rem);max-width:calc(100% - var(--stzh-space-medium) * 2);-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);pointer-events:none}.stzh-dropdown__label:empty{display:none}.stzh-dropdown__label::before{content:\"\";display:none;background:var(--label-background);position:absolute;width:100%;z-index:-1;left:0;top:50%;height:0.125rem;margin-top:-0.03125rem}.stzh-dropdown__option,.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;text-decoration:none;outline:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--stzh-color-grey70);height:var(--stzh-menu-item-height);line-height:var(--stzh-menu-item-height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown__option:hover,.stzh-dropdown__option.active,.stzh-dropdown__create:hover,.stzh-dropdown__create.active{background-color:var(--stzh-color-grey5)}.stzh-dropdown__option.selected,.stzh-dropdown__create.selected{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover,.stzh-dropdown__option.selected.active,.stzh-dropdown__create.selected:hover,.stzh-dropdown__create.selected.active{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown__option input,.stzh-dropdown__create input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:block}.stzh-dropdown__option-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-dropdown__option[data-selectable] .highlight{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-dropdown__select .stzh-dropdown__option-check{display:none;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover .stzh-dropdown__option-check,.stzh-dropdown__option.selected.active .stzh-dropdown__option-check{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-dropdown__no-results{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.stzh-dropdown__no-results,.stzh-dropdown__not-loading{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large)}.stzh-dropdown__optgroup-header{cursor:default}.stzh-dropdown__loader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.375rem}.stzh-dropdown__dropdown{position:absolute;top:100%;left:0;width:var(--popover-width);margin-top:var(--stzh-space-xsmall);background-color:var(--stzh-color-white);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);z-index:var(--stzh-z-index-popover);border-radius:var(--stzh-popover-border-radius);overflow:hidden}@media screen and (min-width: 600px){.stzh-dropdown__dropdown{min-width:var(--popover-min-width);max-width:var(--popover-max-width)}}.stzh-dropdown__select.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.stzh-dropdown__select.plugin-input_autogrow.has-items.focus .ts-control>input{-ms-flex:none;flex:none;min-width:0.25rem}.stzh-dropdown__select.has-items .ts-control>input{margin:0 0.25rem}.stzh-dropdown__select.has-items .ts-control>input::-webkit-input-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input::-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-ms-input-placeholder{color:transparent}.stzh-dropdown--is-multiple .stzh-dropdown__option-check{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);margin-right:var(--stzh-space-xsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__option{padding-left:var(--stzh-space-small)}.stzh-dropdown--is-multiple .stzh-dropdown__option.selected .stzh-dropdown__option-check{opacity:1}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control{padding-top:calc(var(--stzh-space-xsmall) - 0.0625rem);padding-bottom:calc(var(--stzh-space-xsmall) - 0.0625rem)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);position:relative;height:1.5rem;line-height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-radius:0.75rem;padding:0 var(--stzh-space-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:0.0625rem solid transparent;background-color:var(--stzh-color-grey5);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);margin:var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) 0;cursor:pointer}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item.active{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:calc(1.5rem + var(--stzh-space-xxsmall))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{position:absolute;top:50%;right:-0.0625rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-decoration:none;width:1.5rem;height:1.5rem;border-radius:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--stzh-base-lead-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__remove-icon{--size:var(--stzh-icon-size-xxsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item.active .stzh-dropdown__remove-icon{color:var(--stzh-color-white)}.stzh-dropdown--popover-placement-top .stzh-dropdown__dropdown{margin-top:0;top:auto;bottom:100%;margin-bottom:var(--stzh-space-xsmall)}.stzh-dropdown--popover-placement-top.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-bottom:0}.stzh-dropdown--size-small .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-dropdown--size-small .ts-control{min-height:var(--stzh-form-input-small-height)}.stzh-dropdown--size-small .stzh-dropdown__sizer{min-height:initial;height:var(--stzh-form-input-small-height);margin-top:calc(var(--stzh-form-input-small-height) / -1)}.stzh-dropdown--size-small .stzh-dropdown__label{top:calc(var(--stzh-form-input-small-height) / 2)}.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{padding:var(--stzh-space-xxsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--size-small stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-small)}.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain .stzh-dropdown__sizer{border:none;padding-left:0;padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--plain .stzh-dropdown__icon-wrapper{left:0}.stzh-dropdown--plain .stzh-dropdown__angle-icon{right:0}.stzh-dropdown--plain .stzh-dropdown__label{left:0;max-width:100%;padding:0}.stzh-dropdown--plain .stzh-dropdown__label::before{content:none}.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-top:0}.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer{padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--has-focus .stzh-dropdown__label{top:0;left:calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));height:1.25rem;line-height:1.25rem;padding:0 var(--stzh-space-xxsmall);max-width:calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);pointer-events:all}.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before{display:block}.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label{left:0;padding:0;max-width:100%}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{cursor:not-allowed}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-grey25);background-color:var(--stzh-color-white);border-color:var(--stzh-base-border-color)}.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-grey13);background-color:transparent}";
|
|
4636
5266
|
|
|
4637
|
-
const
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
5267
|
+
const TomSelectInputReadonly = function (_plugin_options) {
|
|
5268
|
+
const self = this;
|
|
5269
|
+
self.on("initialize", () => {
|
|
5270
|
+
const input = self.control_input;
|
|
5271
|
+
if (input)
|
|
5272
|
+
input.readOnly = true;
|
|
5273
|
+
});
|
|
4643
5274
|
};
|
|
4644
5275
|
const CLASS_FILLED = "stzh-dropdown--is-filled";
|
|
4645
5276
|
const CLASS_FOCUS = "stzh-dropdown--has-focus";
|
|
@@ -4647,7 +5278,7 @@ tomSelect_base.define("remove_button", remove_button);
|
|
|
4647
5278
|
tomSelect_base.define("checkbox_options", checkbox_options);
|
|
4648
5279
|
tomSelect_base.define("input_autogrow", input_autogrow);
|
|
4649
5280
|
tomSelect_base.define("no_backspace_delete", no_backspace_delete);
|
|
4650
|
-
tomSelect_base.define("
|
|
5281
|
+
tomSelect_base.define("input_readonly", TomSelectInputReadonly);
|
|
4651
5282
|
let dropdownCounter = 0;
|
|
4652
5283
|
const StzhDropdown = class {
|
|
4653
5284
|
constructor(hostRef) {
|
|
@@ -4779,7 +5410,11 @@ const StzhDropdown = class {
|
|
|
4779
5410
|
async getLoadedSearches() {
|
|
4780
5411
|
return this.tomSelect.loadedSearches;
|
|
4781
5412
|
}
|
|
4782
|
-
/**
|
|
5413
|
+
/** Return current selected items */
|
|
5414
|
+
async getItems() {
|
|
5415
|
+
return this.tomSelect.items;
|
|
5416
|
+
}
|
|
5417
|
+
/** Load items by calling load property/function */
|
|
4783
5418
|
async loadItems(query) {
|
|
4784
5419
|
return this.tomSelect.load(query);
|
|
4785
5420
|
}
|
|
@@ -4814,7 +5449,7 @@ const StzhDropdown = class {
|
|
|
4814
5449
|
}
|
|
4815
5450
|
const plugins = {};
|
|
4816
5451
|
if (this.noSearch) {
|
|
4817
|
-
plugins["
|
|
5452
|
+
plugins["input_readonly"] = {};
|
|
4818
5453
|
}
|
|
4819
5454
|
else {
|
|
4820
5455
|
plugins["input_autogrow"] = {};
|