@oiz/stzh-components 2.2.0 → 2.3.0-alpha
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-13e786d3.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 +1 -1
- 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 +1 -1
- package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +20 -15
- package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chart.cjs.entry.js +1471 -404
- package/dist/cjs/stzh-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
- 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 +33 -13
- 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 +2 -2
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1056 -425
- package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
- package/dist/cjs/stzh-figure.cjs.entry.js +5 -3
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
- package/dist/cjs/stzh-header.cjs.entry.js +6 -5
- 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 +1 -1
- package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +9 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +5 -5
- 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 +1 -1
- package/dist/cjs/stzh-row.cjs.entry.js +1 -1
- package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +1 -1
- 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 +10 -66
- package/dist/cjs/stzh-space.cjs.entry.js +34 -0
- package/dist/cjs/stzh-status.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
- package/dist/cjs/stzh-table.cjs.entry.js +3 -2
- package/dist/cjs/stzh-text.cjs.entry.js +2 -2
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +2 -2
- package/dist/cjs/stzh-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/stzh-upload.cjs.entry.js +5 -2
- 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/collection/assets/i18n/de.json +1 -1
- package/dist/collection/assets/i18n/en.json +1 -1
- 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 +12 -4
- package/dist/collection/components/stzh-button/stzh-button.stories.js +10 -6
- package/dist/collection/components/stzh-card/stzh-card.css +0 -18
- package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
- package/dist/collection/components/stzh-chart/stzh-chart.css +55 -37
- package/dist/collection/components/stzh-chip/stzh-chip.css +16 -2
- package/dist/collection/components/stzh-chip/stzh-chip.js +32 -3
- 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 +21 -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 +11 -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 +136 -43
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +12 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +19 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +2 -1
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +28 -13
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +35 -13
- 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 +9 -8
- 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 +166 -138
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
- 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 +40 -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-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 +6 -3
- package/dist/collection/components/stzh-space/stzh-space.css +842 -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-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 +3 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +157 -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 +139 -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/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 +1 -1
- package/dist/components/stzh-calendar2.js +2 -159
- package/dist/components/stzh-card2.js +1 -1
- package/dist/components/stzh-chart.js +1470 -403
- package/dist/components/stzh-chip-select2.js +27 -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 +157 -0
- package/dist/components/stzh-container.js +5 -2
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist-item2.js +30 -11
- package/dist/components/stzh-datalist2.js +3 -1
- package/dist/components/stzh-datatable.js +32 -30
- package/dist/components/stzh-datepicker2.js +2 -1
- package/dist/components/stzh-dropdown2.js +1054 -423
- 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-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-show.d.ts +11 -0
- package/dist/components/stzh-show.js +62 -0
- package/dist/components/stzh-sitemap.js +1 -1
- package/dist/components/stzh-sortable2.js +9 -65
- package/dist/components/stzh-space.d.ts +11 -0
- package/dist/components/stzh-space.js +59 -0
- 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 +3 -0
- 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/esm/{app-globals-ff581b69.js → app-globals-2e508622.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 +1 -1
- 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 +1 -1
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +2 -2
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card_3.entry.js +20 -15
- package/dist/esm/stzh-cell.entry.js +1 -1
- package/dist/esm/stzh-chart.entry.js +1471 -404
- package/dist/esm/stzh-checkbox.entry.js +2 -2
- package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
- 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 +33 -13
- 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 +2 -2
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +1056 -425
- package/dist/esm/stzh-fieldset.entry.js +2 -2
- package/dist/esm/stzh-figure.entry.js +5 -3
- package/dist/esm/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +2 -2
- package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
- package/dist/esm/stzh-header.entry.js +6 -5
- 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 +1 -1
- package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
- package/dist/esm/stzh-input.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/esm/stzh-pagetitle.entry.js +9 -1
- package/dist/esm/stzh-popover.entry.js +5 -5
- 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 +1 -1
- package/dist/esm/stzh-row.entry.js +1 -1
- package/dist/esm/stzh-saptcha.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- 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 +10 -66
- package/dist/esm/stzh-space.entry.js +30 -0
- package/dist/esm/stzh-status.entry.js +1 -1
- package/dist/esm/stzh-sticky.entry.js +5 -3
- package/dist/esm/stzh-table.entry.js +3 -2
- package/dist/esm/stzh-text.entry.js +2 -2
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +2 -2
- package/dist/esm/stzh-tooltip.entry.js +5 -5
- package/dist/esm/stzh-upload.entry.js +5 -2
- 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-es5/app-globals-2e508622.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 +3 -3
- 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/stzh-components/assets/i18n/de.json +1 -1
- package/dist/stzh-components/assets/i18n/en.json +1 -1
- package/dist/stzh-components/p-00c4c8c0.system.entry.js +1 -0
- package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
- package/dist/stzh-components/p-0447b178.system.entry.js +1 -0
- package/dist/stzh-components/{p-2bec3c77.entry.js → p-04d390eb.entry.js} +1 -1
- package/dist/stzh-components/p-06f5abab.system.entry.js +1 -0
- package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
- package/dist/stzh-components/p-09f582cd.entry.js +1 -0
- package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
- package/dist/stzh-components/p-0ada0b0a.system.entry.js +1 -0
- package/dist/stzh-components/p-0af8a184.system.entry.js +1 -0
- package/dist/stzh-components/p-0afba769.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-fbf2f4ed.system.entry.js → p-101f9b11.system.entry.js} +1 -1
- package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
- package/dist/stzh-components/p-125a8244.entry.js +1 -0
- package/dist/stzh-components/{p-bee6eef5.entry.js → p-126a0f14.entry.js} +1 -1
- package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
- package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
- package/dist/stzh-components/p-1783b15a.js +12 -0
- package/dist/stzh-components/p-1c2c9ca8.entry.js +1 -0
- package/dist/stzh-components/p-1f925e84.system.entry.js +1 -0
- package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
- package/dist/stzh-components/p-246cd179.js +1 -0
- package/dist/stzh-components/p-26889a91.entry.js +9 -0
- package/dist/stzh-components/p-2ad73c0c.system.entry.js +1 -0
- package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
- package/dist/stzh-components/p-2ba88798.entry.js +1 -0
- package/dist/stzh-components/{p-60274e67.system.entry.js → p-2c490268.system.entry.js} +1 -1
- 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-376946bc.entry.js → p-2f4c5e18.entry.js} +1 -1
- package/dist/stzh-components/p-3238b0bf.entry.js +1 -0
- package/dist/stzh-components/p-36e72c1d.system.js +2 -0
- package/dist/stzh-components/{p-fd265f3a.entry.js → p-38e7645a.entry.js} +1 -1
- package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
- package/dist/stzh-components/p-3e433996.entry.js +1 -0
- 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-7704b10b.entry.js → p-41fa7e81.entry.js} +1 -1
- package/dist/stzh-components/p-4370efe7.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-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-48e835cf.system.js +1 -0
- package/dist/stzh-components/{p-55b7cda7.system.entry.js → p-4a298117.system.entry.js} +1 -1
- package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
- package/dist/stzh-components/p-4d8c81b2.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-537adcfe.system.entry.js +3 -0
- package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
- package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
- package/dist/stzh-components/p-563b1abc.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-0409bf6b.system.entry.js → p-5c717080.system.entry.js} +1 -1
- package/dist/stzh-components/p-5cb1cd93.system.entry.js +1 -0
- package/dist/stzh-components/p-5f9b58fb.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-104df3a8.system.entry.js → p-6414454e.system.entry.js} +1 -1
- package/dist/stzh-components/p-6496df0a.system.entry.js +9 -0
- package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
- package/dist/stzh-components/p-64e27ac1.entry.js +1 -0
- package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
- package/dist/stzh-components/{p-b0d8866d.entry.js → p-65ea23f6.entry.js} +1 -1
- package/dist/stzh-components/p-668b4025.system.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-67ae4994.entry.js +1 -0
- package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
- package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
- package/dist/stzh-components/p-6c80b920.system.entry.js +1 -0
- package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
- package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
- package/dist/stzh-components/{p-ef3da23b.entry.js → p-705aa56d.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-62a2684d.entry.js → p-7185f634.entry.js} +1 -1
- package/dist/stzh-components/{p-11d7b426.system.entry.js → p-74d6e349.system.entry.js} +1 -1
- package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
- package/dist/stzh-components/p-7b0c04b3.system.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-fee6a938.entry.js → p-7e94b787.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-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
- package/dist/stzh-components/p-81b4b0e6.system.entry.js +1 -0
- 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-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-586a8b3f.entry.js → p-8715198b.entry.js} +1 -1
- package/dist/stzh-components/p-8972cf20.entry.js +1 -0
- package/dist/stzh-components/p-8c5a6832.system.entry.js +1 -0
- package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
- package/dist/stzh-components/p-8ccefd49.system.entry.js +1 -0
- package/dist/stzh-components/p-8ee705ed.entry.js +1 -0
- package/dist/stzh-components/p-906caf97.js +1 -0
- package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
- package/dist/stzh-components/p-9380fb85.entry.js +1 -0
- package/dist/stzh-components/p-97e4272b.system.entry.js +1 -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-99aacd74.entry.js +1 -0
- package/dist/stzh-components/p-99b82949.entry.js +1 -0
- package/dist/stzh-components/p-99e27f57.system.js +1 -0
- package/dist/stzh-components/{p-576e1345.entry.js → p-99e43fb0.entry.js} +1 -1
- package/dist/stzh-components/p-9be29697.entry.js +1 -0
- package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
- package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-9d5c70ee.system.entry.js} +1 -1
- package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
- package/dist/stzh-components/{p-94830f96.system.entry.js → p-a0a033bd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
- package/dist/stzh-components/p-a2b2cfac.system.entry.js +1 -0
- package/dist/stzh-components/p-a3c7aa63.entry.js +9 -0
- package/dist/stzh-components/p-a408bfba.system.js +1 -1
- package/dist/stzh-components/{p-aae4655f.entry.js → p-a44527f8.entry.js} +1 -1
- package/dist/stzh-components/{p-8bbaed3a.entry.js → p-a4dd5ba3.entry.js} +1 -1
- package/dist/stzh-components/{p-c30600d0.system.entry.js → p-a51dd210.system.entry.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-ac3e3b2a.system.entry.js +1 -0
- package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
- package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
- package/dist/stzh-components/p-b050c1f4.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-30ba96a3.entry.js → p-b689b882.entry.js} +1 -1
- package/dist/stzh-components/{p-b3dc4913.entry.js → p-b6e6f847.entry.js} +1 -1
- package/dist/stzh-components/p-b92734db.entry.js +1 -0
- package/dist/stzh-components/{p-57a0f895.entry.js → p-b9427914.entry.js} +1 -1
- package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
- package/dist/stzh-components/p-bb82fa2d.system.entry.js +1 -0
- package/dist/stzh-components/{p-557f07b5.system.entry.js → p-bc36fda4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
- package/dist/stzh-components/p-bf071e77.system.js +1 -0
- package/dist/stzh-components/{p-84965eac.entry.js → p-c0ec905d.entry.js} +1 -1
- package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
- package/dist/stzh-components/{p-ea9ca52b.entry.js → p-c33b7d23.entry.js} +1 -1
- package/dist/stzh-components/p-c646c712.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-cbe6d2ea.entry.js +1 -0
- package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
- package/dist/stzh-components/p-ccf023da.entry.js +3 -0
- package/dist/stzh-components/p-d04bbc19.js +1 -0
- package/dist/stzh-components/p-d32965be.system.entry.js +1 -0
- package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
- package/dist/stzh-components/p-d5644c25.entry.js +8 -0
- package/dist/stzh-components/p-d6a11daa.entry.js +1 -0
- package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
- package/dist/stzh-components/{p-a474826c.system.entry.js → p-da85cf73.system.entry.js} +1 -1
- package/dist/stzh-components/p-da98a8bb.system.entry.js +7 -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-f5fdc88c.entry.js → p-dbe5320f.entry.js} +3 -3
- package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
- package/dist/stzh-components/p-dd5f29aa.entry.js +1 -0
- package/dist/stzh-components/p-de9edaf2.entry.js +1 -0
- package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
- package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
- package/dist/stzh-components/p-e78fe899.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-58af0855.system.entry.js → p-e7e9b295.system.entry.js} +1 -1
- package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
- package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
- package/dist/stzh-components/p-ed58b644.system.entry.js +1 -0
- package/dist/stzh-components/p-ee4b939a.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-f3d69226.system.entry.js +1 -0
- package/dist/stzh-components/p-f433e62a.system.entry.js +1 -0
- package/dist/stzh-components/p-f5b2c12e.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-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
- package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
- package/dist/stzh-components/p-fa615b51.system.entry.js +1 -0
- package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
- package/dist/stzh-components/p-fd3acd16.system.entry.js +1 -0
- package/dist/stzh-components/p-fe5d5fc8.entry.js +1 -0
- package/dist/stzh-components/p-fe9acc68.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 +390 -20
- 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/vscode-data.json +563 -4
- package/loader/index.d.ts +9 -0
- package/package.json +11 -11
- 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/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-10c046fc.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-31c3469c.entry.js +0 -1
- package/dist/stzh-components/p-3200f52a.system.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-57237509.system.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-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-84b9f66f.system.entry.js +0 -1
- package/dist/stzh-components/p-853a1f92.entry.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-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-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-aacf685b.system.entry.js +0 -3
- 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-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-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-fcec6003.system.entry.js +0 -1
- package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
1
|
+
import { r as registerInstance, e as createEvent, h, c as Host, g as getElement } from './index-319b7c49.js';
|
|
2
2
|
import { h as hasSlot } from './utils-92a77db5.js';
|
|
3
3
|
import { f as fetchTranslations } from './translation-utils-2623783f.js';
|
|
4
|
-
import { S as StzhInputDescription } from './stzh-input-description-
|
|
4
|
+
import { S as StzhInputDescription } from './stzh-input-description-cc38e214.js';
|
|
5
5
|
import { c as createCommonjsModule, b as commonjsGlobal } from './_commonjsHelpers-f9dc4873.js';
|
|
6
6
|
|
|
7
7
|
var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
8
8
|
/**
|
|
9
|
-
* Tom Select v2.
|
|
9
|
+
* Tom Select v2.2.2
|
|
10
10
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -41,9 +41,9 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
41
41
|
|
|
42
42
|
on(events, fct) {
|
|
43
43
|
forEvents(events, event => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this._events[event]
|
|
44
|
+
const event_array = this._events[event] || [];
|
|
45
|
+
event_array.push(fct);
|
|
46
|
+
this._events[event] = event_array;
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -56,21 +56,26 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
forEvents(events, event => {
|
|
59
|
-
if (n === 1)
|
|
60
|
-
|
|
59
|
+
if (n === 1) {
|
|
60
|
+
delete this._events[event];
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
61
63
|
|
|
62
|
-
this._events[event]
|
|
64
|
+
const event_array = this._events[event];
|
|
65
|
+
if (event_array === undefined) return;
|
|
66
|
+
event_array.splice(event_array.indexOf(fct), 1);
|
|
67
|
+
this._events[event] = event_array;
|
|
63
68
|
});
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
trigger(events, ...args) {
|
|
67
72
|
var self = this;
|
|
68
73
|
forEvents(events, event => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
const event_array = self._events[event];
|
|
75
|
+
if (event_array === undefined) return;
|
|
76
|
+
event_array.forEach(fct => {
|
|
72
77
|
fct.apply(self, args);
|
|
73
|
-
}
|
|
78
|
+
});
|
|
74
79
|
});
|
|
75
80
|
}
|
|
76
81
|
|
|
@@ -197,69 +202,124 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
197
202
|
};
|
|
198
203
|
}
|
|
199
204
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
205
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
206
|
+
/**
|
|
207
|
+
* Convert array of strings to a regular expression
|
|
208
|
+
* ex ['ab','a'] => (?:ab|a)
|
|
209
|
+
* ex ['a','b'] => [ab]
|
|
210
|
+
* @param {string[]} chars
|
|
211
|
+
* @return {string}
|
|
212
|
+
*/
|
|
213
|
+
const arrayToPattern = chars => {
|
|
214
|
+
chars = chars.filter(Boolean);
|
|
215
|
+
|
|
216
|
+
if (chars.length < 2) {
|
|
217
|
+
return chars[0] || '';
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return maxValueLength(chars) == 1 ? '[' + chars.join('') + ']' : '(?:' + chars.join('|') + ')';
|
|
211
221
|
};
|
|
212
|
-
const convert_pat = new RegExp(Object.keys(latin_convert).join('|'), 'gu');
|
|
213
|
-
const code_points = [[0, 65535]];
|
|
214
222
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
223
|
+
* @param {string[]} array
|
|
224
|
+
* @return {string}
|
|
218
225
|
*/
|
|
219
226
|
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
return
|
|
227
|
+
const sequencePattern = array => {
|
|
228
|
+
if (!hasDuplicates(array)) {
|
|
229
|
+
return array.join('');
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
let pattern = '';
|
|
233
|
+
let prev_char_count = 0;
|
|
234
|
+
|
|
235
|
+
const prev_pattern = () => {
|
|
236
|
+
if (prev_char_count > 1) {
|
|
237
|
+
pattern += '{' + prev_char_count + '}';
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
array.forEach((char, i) => {
|
|
242
|
+
if (char === array[i - 1]) {
|
|
243
|
+
prev_char_count++;
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
prev_pattern();
|
|
248
|
+
pattern += char;
|
|
249
|
+
prev_char_count = 1;
|
|
223
250
|
});
|
|
251
|
+
prev_pattern();
|
|
252
|
+
return pattern;
|
|
224
253
|
};
|
|
225
254
|
/**
|
|
226
255
|
* Convert array of strings to a regular expression
|
|
227
256
|
* ex ['ab','a'] => (?:ab|a)
|
|
228
257
|
* ex ['a','b'] => [ab]
|
|
229
|
-
*
|
|
258
|
+
* @param {Set<string>} chars
|
|
259
|
+
* @return {string}
|
|
230
260
|
*/
|
|
231
261
|
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
262
|
+
const setToPattern = chars => {
|
|
263
|
+
let array = toArray(chars);
|
|
264
|
+
return arrayToPattern(array);
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* https://stackoverflow.com/questions/7376598/in-javascript-how-do-i-check-if-an-array-has-duplicate-values
|
|
269
|
+
* @param {any[]} array
|
|
270
|
+
*/
|
|
236
271
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
272
|
+
const hasDuplicates = array => {
|
|
273
|
+
return new Set(array).size !== array.length;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error
|
|
277
|
+
* @param {string} str
|
|
278
|
+
* @return {string}
|
|
279
|
+
*/
|
|
241
280
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
281
|
+
const escape_regex = str => {
|
|
282
|
+
return (str + '').replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu, '\\$1');
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Return the max length of array values
|
|
286
|
+
* @param {string[]} array
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
245
289
|
|
|
246
|
-
|
|
290
|
+
const maxValueLength = array => {
|
|
291
|
+
return array.reduce((longest, value) => Math.max(longest, unicodeLength(value)), 0);
|
|
247
292
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
293
|
+
/**
|
|
294
|
+
* @param {string} str
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
const unicodeLength = str => {
|
|
298
|
+
return toArray(str).length;
|
|
251
299
|
};
|
|
300
|
+
/**
|
|
301
|
+
* @param {any} p
|
|
302
|
+
* @return {any[]}
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
const toArray = p => Array.from(p);
|
|
306
|
+
|
|
307
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
252
308
|
/**
|
|
253
309
|
* Get all possible combinations of substrings that add up to the given string
|
|
254
310
|
* https://stackoverflow.com/questions/30169587/find-all-the-combination-of-substrings-that-add-up-to-the-given-string
|
|
255
|
-
*
|
|
311
|
+
* @param {string} input
|
|
312
|
+
* @return {string[][]}
|
|
256
313
|
*/
|
|
257
|
-
|
|
258
314
|
const allSubstrings = input => {
|
|
259
315
|
if (input.length === 1) return [[input]];
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
316
|
+
/** @type {string[][]} */
|
|
317
|
+
|
|
318
|
+
let result = [];
|
|
319
|
+
const start = input.substring(1);
|
|
320
|
+
const suba = allSubstrings(start);
|
|
321
|
+
suba.forEach(function (subresult) {
|
|
322
|
+
let tmp = subresult.slice(0);
|
|
263
323
|
tmp[0] = input.charAt(0) + tmp[0];
|
|
264
324
|
result.push(tmp);
|
|
265
325
|
tmp = subresult.slice(0);
|
|
@@ -268,108 +328,539 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
268
328
|
});
|
|
269
329
|
return result;
|
|
270
330
|
};
|
|
331
|
+
|
|
332
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @typedef {{[key:string]:string}} TUnicodeMap
|
|
336
|
+
* @typedef {{[key:string]:Set<string>}} TUnicodeSets
|
|
337
|
+
* @typedef {[[number,number]]} TCodePoints
|
|
338
|
+
* @typedef {{folded:string,composed:string,code_point:number}} TCodePointObj
|
|
339
|
+
* @typedef {{start:number,end:number,length:number,substr:string}} TSequencePart
|
|
340
|
+
*/
|
|
341
|
+
/** @type {TCodePoints} */
|
|
342
|
+
|
|
343
|
+
const code_points = [[0, 65535]];
|
|
344
|
+
const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
|
|
345
|
+
/** @type {TUnicodeMap} */
|
|
346
|
+
|
|
347
|
+
let unicode_map;
|
|
348
|
+
/** @type {RegExp} */
|
|
349
|
+
|
|
350
|
+
let multi_char_reg;
|
|
351
|
+
const max_char_length = 3;
|
|
352
|
+
/** @type {TUnicodeMap} */
|
|
353
|
+
|
|
354
|
+
const latin_convert = {};
|
|
355
|
+
/** @type {TUnicodeMap} */
|
|
356
|
+
|
|
357
|
+
const latin_condensed = {
|
|
358
|
+
'/': '⁄∕',
|
|
359
|
+
'0': '߀',
|
|
360
|
+
"a": "ⱥɐɑ",
|
|
361
|
+
"aa": "ꜳ",
|
|
362
|
+
"ae": "æǽǣ",
|
|
363
|
+
"ao": "ꜵ",
|
|
364
|
+
"au": "ꜷ",
|
|
365
|
+
"av": "ꜹꜻ",
|
|
366
|
+
"ay": "ꜽ",
|
|
367
|
+
"b": "ƀɓƃ",
|
|
368
|
+
"c": "ꜿƈȼↄ",
|
|
369
|
+
"d": "đɗɖᴅƌꮷԁɦ",
|
|
370
|
+
"e": "ɛǝᴇɇ",
|
|
371
|
+
"f": "ꝼƒ",
|
|
372
|
+
"g": "ǥɠꞡᵹꝿɢ",
|
|
373
|
+
"h": "ħⱨⱶɥ",
|
|
374
|
+
"i": "ɨı",
|
|
375
|
+
"j": "ɉȷ",
|
|
376
|
+
"k": "ƙⱪꝁꝃꝅꞣ",
|
|
377
|
+
"l": "łƚɫⱡꝉꝇꞁɭ",
|
|
378
|
+
"m": "ɱɯϻ",
|
|
379
|
+
"n": "ꞥƞɲꞑᴎлԉ",
|
|
380
|
+
"o": "øǿɔɵꝋꝍᴑ",
|
|
381
|
+
"oe": "œ",
|
|
382
|
+
"oi": "ƣ",
|
|
383
|
+
"oo": "ꝏ",
|
|
384
|
+
"ou": "ȣ",
|
|
385
|
+
"p": "ƥᵽꝑꝓꝕρ",
|
|
386
|
+
"q": "ꝗꝙɋ",
|
|
387
|
+
"r": "ɍɽꝛꞧꞃ",
|
|
388
|
+
"s": "ßȿꞩꞅʂ",
|
|
389
|
+
"t": "ŧƭʈⱦꞇ",
|
|
390
|
+
"th": "þ",
|
|
391
|
+
"tz": "ꜩ",
|
|
392
|
+
"u": "ʉ",
|
|
393
|
+
"v": "ʋꝟʌ",
|
|
394
|
+
"vy": "ꝡ",
|
|
395
|
+
"w": "ⱳ",
|
|
396
|
+
"y": "ƴɏỿ",
|
|
397
|
+
"z": "ƶȥɀⱬꝣ",
|
|
398
|
+
"hv": "ƕ"
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
for (let latin in latin_condensed) {
|
|
402
|
+
let unicode = latin_condensed[latin] || '';
|
|
403
|
+
|
|
404
|
+
for (let i = 0; i < unicode.length; i++) {
|
|
405
|
+
let char = unicode.substring(i, i + 1);
|
|
406
|
+
latin_convert[char] = latin;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const convert_pat = new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
|
|
271
411
|
/**
|
|
272
|
-
*
|
|
412
|
+
* Initialize the unicode_map from the give code point ranges
|
|
273
413
|
*
|
|
414
|
+
* @param {TCodePoints=} _code_points
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
const initialize = _code_points => {
|
|
418
|
+
if (unicode_map !== undefined) return;
|
|
419
|
+
unicode_map = generateMap(_code_points || code_points);
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Helper method for normalize a string
|
|
423
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
|
|
424
|
+
* @param {string} str
|
|
425
|
+
* @param {string} form
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
const normalize = (str, form = 'NFKD') => str.normalize(form);
|
|
429
|
+
/**
|
|
430
|
+
* Remove accents without reordering string
|
|
431
|
+
* calling str.normalize('NFKD') on \u{594}\u{595}\u{596} becomes \u{596}\u{594}\u{595}
|
|
432
|
+
* via https://github.com/krisk/Fuse/issues/133#issuecomment-318692703
|
|
433
|
+
* @param {string} str
|
|
434
|
+
* @return {string}
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
const asciifold = str => {
|
|
438
|
+
return toArray(str).reduce(
|
|
439
|
+
/**
|
|
440
|
+
* @param {string} result
|
|
441
|
+
* @param {string} char
|
|
442
|
+
*/
|
|
443
|
+
(result, char) => {
|
|
444
|
+
return result + _asciifold(char);
|
|
445
|
+
}, '');
|
|
446
|
+
};
|
|
447
|
+
/**
|
|
448
|
+
* @param {string} str
|
|
449
|
+
* @return {string}
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
const _asciifold = str => {
|
|
453
|
+
str = normalize(str).toLowerCase().replace(convert_pat, (
|
|
454
|
+
/** @type {string} */
|
|
455
|
+
char) => {
|
|
456
|
+
return latin_convert[char] || '';
|
|
457
|
+
}); //return str;
|
|
458
|
+
|
|
459
|
+
return normalize(str, 'NFC');
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Generate a list of unicode variants from the list of code points
|
|
463
|
+
* @param {TCodePoints} code_points
|
|
464
|
+
* @yield {TCodePointObj}
|
|
274
465
|
*/
|
|
275
466
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
let
|
|
281
|
-
let latin = asciifold(diacritic);
|
|
467
|
+
function* generator(code_points) {
|
|
468
|
+
for (const [code_point_min, code_point_max] of code_points) {
|
|
469
|
+
for (let i = code_point_min; i <= code_point_max; i++) {
|
|
470
|
+
let composed = String.fromCharCode(i);
|
|
471
|
+
let folded = asciifold(composed);
|
|
282
472
|
|
|
283
|
-
if (
|
|
473
|
+
if (folded == composed.toLowerCase()) {
|
|
284
474
|
continue;
|
|
285
|
-
} // skip when
|
|
475
|
+
} // skip when folded is a string longer than 3 characters long
|
|
286
476
|
// bc the resulting regex patterns will be long
|
|
287
477
|
// eg:
|
|
288
|
-
//
|
|
289
|
-
//
|
|
478
|
+
// folded صلى الله عليه وسلم length 18 code point 65018
|
|
479
|
+
// folded جل جلاله length 8 code point 65019
|
|
290
480
|
|
|
291
481
|
|
|
292
|
-
if (
|
|
482
|
+
if (folded.length > max_char_length) {
|
|
293
483
|
continue;
|
|
294
484
|
}
|
|
295
485
|
|
|
296
|
-
if (
|
|
297
|
-
|
|
486
|
+
if (folded.length == 0) {
|
|
487
|
+
continue;
|
|
298
488
|
}
|
|
299
489
|
|
|
300
|
-
|
|
490
|
+
yield {
|
|
491
|
+
folded: folded,
|
|
492
|
+
composed: composed,
|
|
493
|
+
code_point: i
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Generate a unicode map from the list of code points
|
|
500
|
+
* @param {TCodePoints} code_points
|
|
501
|
+
* @return {TUnicodeSets}
|
|
502
|
+
*/
|
|
503
|
+
|
|
504
|
+
const generateSets = code_points => {
|
|
505
|
+
/** @type {{[key:string]:Set<string>}} */
|
|
506
|
+
const unicode_sets = {};
|
|
507
|
+
/**
|
|
508
|
+
* @param {string} folded
|
|
509
|
+
* @param {string} to_add
|
|
510
|
+
*/
|
|
301
511
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
512
|
+
const addMatching = (folded, to_add) => {
|
|
513
|
+
/** @type {Set<string>} */
|
|
514
|
+
const folded_set = unicode_sets[folded] || new Set();
|
|
515
|
+
const patt = new RegExp('^' + setToPattern(folded_set) + '$', 'iu');
|
|
305
516
|
|
|
306
|
-
|
|
517
|
+
if (to_add.match(patt)) {
|
|
518
|
+
return;
|
|
307
519
|
}
|
|
308
|
-
}); // filter out if there's only one character in the list
|
|
309
520
|
|
|
310
|
-
|
|
521
|
+
folded_set.add(escape_regex(to_add));
|
|
522
|
+
unicode_sets[folded] = folded_set;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
for (let value of generator(code_points)) {
|
|
526
|
+
addMatching(value.folded, value.folded);
|
|
527
|
+
addMatching(value.folded, value.composed);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
return unicode_sets;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Generate a unicode map from the list of code points
|
|
534
|
+
* ae => (?:(?:ae|Æ|Ǽ|Ǣ)|(?:A|Ⓐ|A...)(?:E|ɛ|Ⓔ...))
|
|
535
|
+
*
|
|
536
|
+
* @param {TCodePoints} code_points
|
|
537
|
+
* @return {TUnicodeMap}
|
|
538
|
+
*/
|
|
539
|
+
|
|
540
|
+
const generateMap = code_points => {
|
|
541
|
+
/** @type {TUnicodeSets} */
|
|
542
|
+
const unicode_sets = generateSets(code_points);
|
|
543
|
+
/** @type {TUnicodeMap} */
|
|
544
|
+
|
|
545
|
+
const unicode_map = {};
|
|
546
|
+
/** @type {string[]} */
|
|
311
547
|
|
|
312
|
-
|
|
313
|
-
const latin = latin_chars[i];
|
|
548
|
+
let multi_char = [];
|
|
314
549
|
|
|
315
|
-
|
|
316
|
-
|
|
550
|
+
for (let folded in unicode_sets) {
|
|
551
|
+
let set = unicode_sets[folded];
|
|
552
|
+
|
|
553
|
+
if (set) {
|
|
554
|
+
unicode_map[folded] = setToPattern(set);
|
|
317
555
|
}
|
|
318
|
-
} // latin character pattern
|
|
319
|
-
// match longer substrings first
|
|
320
556
|
|
|
557
|
+
if (folded.length > 1) {
|
|
558
|
+
multi_char.push(escape_regex(folded));
|
|
559
|
+
}
|
|
560
|
+
}
|
|
321
561
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
562
|
+
multi_char.sort((a, b) => b.length - a.length);
|
|
563
|
+
const multi_char_patt = arrayToPattern(multi_char);
|
|
564
|
+
multi_char_reg = new RegExp('^' + multi_char_patt, 'u');
|
|
565
|
+
return unicode_map;
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
* Map each element of an array from it's folded value to all possible unicode matches
|
|
569
|
+
* @param {string[]} strings
|
|
570
|
+
* @param {number} min_replacement
|
|
571
|
+
* @return {string}
|
|
572
|
+
*/
|
|
326
573
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return escapeToPattern(diacritics[l]);
|
|
334
|
-
}
|
|
574
|
+
const mapSequence = (strings, min_replacement = 1) => {
|
|
575
|
+
let chars_replaced = 0;
|
|
576
|
+
strings = strings.map(str => {
|
|
577
|
+
if (unicode_map[str]) {
|
|
578
|
+
chars_replaced += str.length;
|
|
579
|
+
}
|
|
335
580
|
|
|
336
|
-
|
|
337
|
-
});
|
|
338
|
-
return arrayToPattern(sub_pat, '');
|
|
339
|
-
});
|
|
340
|
-
diacritic_patterns[latin] = arrayToPattern(pattern);
|
|
581
|
+
return unicode_map[str] || str;
|
|
341
582
|
});
|
|
342
|
-
|
|
583
|
+
|
|
584
|
+
if (chars_replaced >= min_replacement) {
|
|
585
|
+
return sequencePattern(strings);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
return '';
|
|
343
589
|
};
|
|
344
590
|
/**
|
|
345
|
-
*
|
|
346
|
-
*
|
|
591
|
+
* Convert a short string and split it into all possible patterns
|
|
592
|
+
* Keep a pattern only if min_replacement is met
|
|
593
|
+
*
|
|
594
|
+
* 'abc'
|
|
595
|
+
* => [['abc'],['ab','c'],['a','bc'],['a','b','c']]
|
|
596
|
+
* => ['abc-pattern','ab-c-pattern'...]
|
|
597
|
+
*
|
|
598
|
+
*
|
|
599
|
+
* @param {string} str
|
|
600
|
+
* @param {number} min_replacement
|
|
601
|
+
* @return {string}
|
|
602
|
+
*/
|
|
603
|
+
|
|
604
|
+
const substringsToPattern = (str, min_replacement = 1) => {
|
|
605
|
+
min_replacement = Math.max(min_replacement, str.length - 1);
|
|
606
|
+
return arrayToPattern(allSubstrings(str).map(sub_pat => {
|
|
607
|
+
return mapSequence(sub_pat, min_replacement);
|
|
608
|
+
}));
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Convert an array of sequences into a pattern
|
|
612
|
+
* [{start:0,end:3,length:3,substr:'iii'}...] => (?:iii...)
|
|
347
613
|
*
|
|
614
|
+
* @param {Sequence[]} sequences
|
|
615
|
+
* @param {boolean} all
|
|
616
|
+
*/
|
|
617
|
+
|
|
618
|
+
const sequencesToPattern = (sequences, all = true) => {
|
|
619
|
+
let min_replacement = sequences.length > 1 ? 1 : 0;
|
|
620
|
+
return arrayToPattern(sequences.map(sequence => {
|
|
621
|
+
let seq = [];
|
|
622
|
+
const len = all ? sequence.length() : sequence.length() - 1;
|
|
623
|
+
|
|
624
|
+
for (let j = 0; j < len; j++) {
|
|
625
|
+
seq.push(substringsToPattern(sequence.substrs[j] || '', min_replacement));
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
return sequencePattern(seq);
|
|
629
|
+
}));
|
|
630
|
+
};
|
|
631
|
+
/**
|
|
632
|
+
* Return true if the sequence is already in the sequences
|
|
633
|
+
* @param {Sequence} needle_seq
|
|
634
|
+
* @param {Sequence[]} sequences
|
|
348
635
|
*/
|
|
349
636
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
637
|
+
|
|
638
|
+
const inSequences = (needle_seq, sequences) => {
|
|
639
|
+
for (const seq of sequences) {
|
|
640
|
+
if (seq.start != needle_seq.start || seq.end != needle_seq.end) {
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if (seq.substrs.join('') !== needle_seq.substrs.join('')) {
|
|
645
|
+
continue;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
let needle_parts = needle_seq.parts;
|
|
649
|
+
/**
|
|
650
|
+
* @param {TSequencePart} part
|
|
651
|
+
*/
|
|
652
|
+
|
|
653
|
+
const filter = part => {
|
|
654
|
+
for (const needle_part of needle_parts) {
|
|
655
|
+
if (needle_part.start === part.start && needle_part.substr === part.substr) {
|
|
656
|
+
return false;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
if (part.length == 1 || needle_part.length == 1) {
|
|
660
|
+
continue;
|
|
661
|
+
} // check for overlapping parts
|
|
662
|
+
// a = ['::=','==']
|
|
663
|
+
// b = ['::','===']
|
|
664
|
+
// a = ['r','sm']
|
|
665
|
+
// b = ['rs','m']
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
if (part.start < needle_part.start && part.end > needle_part.start) {
|
|
669
|
+
return true;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
if (needle_part.start < part.start && needle_part.end > part.start) {
|
|
673
|
+
return true;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
return false;
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
let filtered = seq.parts.filter(filter);
|
|
681
|
+
|
|
682
|
+
if (filtered.length > 0) {
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
return true;
|
|
353
687
|
}
|
|
354
688
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
689
|
+
return false;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
class Sequence {
|
|
693
|
+
constructor() {
|
|
694
|
+
/** @type {TSequencePart[]} */
|
|
695
|
+
this.parts = [];
|
|
696
|
+
/** @type {string[]} */
|
|
359
697
|
|
|
360
|
-
|
|
361
|
-
|
|
698
|
+
this.substrs = [];
|
|
699
|
+
this.start = 0;
|
|
700
|
+
this.end = 0;
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* @param {TSequencePart|undefined} part
|
|
704
|
+
*/
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
add(part) {
|
|
708
|
+
if (part) {
|
|
709
|
+
this.parts.push(part);
|
|
710
|
+
this.substrs.push(part.substr);
|
|
711
|
+
this.start = Math.min(part.start, this.start);
|
|
712
|
+
this.end = Math.max(part.end, this.end);
|
|
362
713
|
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
last() {
|
|
717
|
+
return this.parts[this.parts.length - 1];
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
length() {
|
|
721
|
+
return this.parts.length;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* @param {number} position
|
|
725
|
+
* @param {TSequencePart} last_piece
|
|
726
|
+
*/
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
clone(position, last_piece) {
|
|
730
|
+
let clone = new Sequence();
|
|
731
|
+
let parts = JSON.parse(JSON.stringify(this.parts));
|
|
732
|
+
let last_part = parts.pop();
|
|
363
733
|
|
|
364
|
-
|
|
365
|
-
|
|
734
|
+
for (const part of parts) {
|
|
735
|
+
clone.add(part);
|
|
366
736
|
}
|
|
367
737
|
|
|
368
|
-
|
|
369
|
-
|
|
738
|
+
let last_substr = last_piece.substr.substring(0, position - last_part.start);
|
|
739
|
+
let clone_last_len = last_substr.length;
|
|
740
|
+
clone.add({
|
|
741
|
+
start: last_part.start,
|
|
742
|
+
end: last_part.start + clone_last_len,
|
|
743
|
+
length: clone_last_len,
|
|
744
|
+
substr: last_substr
|
|
745
|
+
});
|
|
746
|
+
return clone;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Expand a regular expression pattern to include unicode variants
|
|
752
|
+
* eg /a/ becomes /aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑAⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ/
|
|
753
|
+
*
|
|
754
|
+
* Issue:
|
|
755
|
+
* ﺊﺋ [ 'ﺊ = \\u{fe8a}', 'ﺋ = \\u{fe8b}' ]
|
|
756
|
+
* becomes: ئئ [ 'ي = \\u{64a}', 'ٔ = \\u{654}', 'ي = \\u{64a}', 'ٔ = \\u{654}' ]
|
|
757
|
+
*
|
|
758
|
+
* İIJ = IIJ = ⅡJ
|
|
759
|
+
*
|
|
760
|
+
* 1/2/4
|
|
761
|
+
*
|
|
762
|
+
* @param {string} str
|
|
763
|
+
* @return {string|undefined}
|
|
764
|
+
*/
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
const getPattern = str => {
|
|
768
|
+
initialize();
|
|
769
|
+
str = asciifold(str);
|
|
770
|
+
let pattern = '';
|
|
771
|
+
let sequences = [new Sequence()];
|
|
772
|
+
|
|
773
|
+
for (let i = 0; i < str.length; i++) {
|
|
774
|
+
let substr = str.substring(i);
|
|
775
|
+
let match = substr.match(multi_char_reg);
|
|
776
|
+
const char = str.substring(i, i + 1);
|
|
777
|
+
const match_str = match ? match[0] : null; // loop through sequences
|
|
778
|
+
// add either the char or multi_match
|
|
779
|
+
|
|
780
|
+
let overlapping = [];
|
|
781
|
+
let added_types = new Set();
|
|
782
|
+
|
|
783
|
+
for (const sequence of sequences) {
|
|
784
|
+
const last_piece = sequence.last();
|
|
785
|
+
|
|
786
|
+
if (!last_piece || last_piece.length == 1 || last_piece.end <= i) {
|
|
787
|
+
// if we have a multi match
|
|
788
|
+
if (match_str) {
|
|
789
|
+
const len = match_str.length;
|
|
790
|
+
sequence.add({
|
|
791
|
+
start: i,
|
|
792
|
+
end: i + len,
|
|
793
|
+
length: len,
|
|
794
|
+
substr: match_str
|
|
795
|
+
});
|
|
796
|
+
added_types.add('1');
|
|
797
|
+
} else {
|
|
798
|
+
sequence.add({
|
|
799
|
+
start: i,
|
|
800
|
+
end: i + 1,
|
|
801
|
+
length: 1,
|
|
802
|
+
substr: char
|
|
803
|
+
});
|
|
804
|
+
added_types.add('2');
|
|
805
|
+
}
|
|
806
|
+
} else if (match_str) {
|
|
807
|
+
let clone = sequence.clone(i, last_piece);
|
|
808
|
+
const len = match_str.length;
|
|
809
|
+
clone.add({
|
|
810
|
+
start: i,
|
|
811
|
+
end: i + len,
|
|
812
|
+
length: len,
|
|
813
|
+
substr: match_str
|
|
814
|
+
});
|
|
815
|
+
overlapping.push(clone);
|
|
816
|
+
} else {
|
|
817
|
+
// don't add char
|
|
818
|
+
// adding would create invalid patterns: 234 => [2,34,4]
|
|
819
|
+
added_types.add('3');
|
|
820
|
+
}
|
|
821
|
+
} // if we have overlapping
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
if (overlapping.length > 0) {
|
|
825
|
+
// ['ii','iii'] before ['i','i','iii']
|
|
826
|
+
overlapping = overlapping.sort((a, b) => {
|
|
827
|
+
return a.length() - b.length();
|
|
828
|
+
});
|
|
829
|
+
|
|
830
|
+
for (let clone of overlapping) {
|
|
831
|
+
// don't add if we already have an equivalent sequence
|
|
832
|
+
if (inSequences(clone, sequences)) {
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
sequences.push(clone);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
continue;
|
|
840
|
+
} // if we haven't done anything unique
|
|
841
|
+
// clean up the patterns
|
|
842
|
+
// helps keep patterns smaller
|
|
843
|
+
// if str = 'r₨㎧aarss', pattern will be 446 instead of 655
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
if (i > 0 && added_types.size == 1 && !added_types.has('3')) {
|
|
847
|
+
pattern += sequencesToPattern(sequences, false);
|
|
848
|
+
let new_seq = new Sequence();
|
|
849
|
+
const old_seq = sequences[0];
|
|
850
|
+
|
|
851
|
+
if (old_seq) {
|
|
852
|
+
new_seq.add(old_seq.last());
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
sequences = [new_seq];
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
pattern += sequencesToPattern(sequences, true);
|
|
860
|
+
return pattern;
|
|
370
861
|
};
|
|
371
862
|
|
|
372
|
-
|
|
863
|
+
/*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
|
|
373
864
|
|
|
374
865
|
/**
|
|
375
866
|
* A property getter resolving dot-notation
|
|
@@ -407,20 +898,13 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
407
898
|
var score, pos;
|
|
408
899
|
if (!value) return 0;
|
|
409
900
|
value = value + '';
|
|
901
|
+
if (token.regex == null) return 0;
|
|
410
902
|
pos = value.search(token.regex);
|
|
411
903
|
if (pos === -1) return 0;
|
|
412
904
|
score = token.string.length / value.length;
|
|
413
905
|
if (pos === 0) score += 0.5;
|
|
414
906
|
return score * weight;
|
|
415
907
|
};
|
|
416
|
-
/**
|
|
417
|
-
*
|
|
418
|
-
* https://stackoverflow.com/questions/63006601/why-does-u-throw-an-invalid-escape-error
|
|
419
|
-
*/
|
|
420
|
-
|
|
421
|
-
const escape_regex = str => {
|
|
422
|
-
return (str + '').replace(/([\$\(-\+\.\?\[-\^\{-\}])/g, '\\$1');
|
|
423
|
-
};
|
|
424
908
|
/**
|
|
425
909
|
* Cast object property to an array if it exists and has a value
|
|
426
910
|
*
|
|
@@ -445,7 +929,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
445
929
|
*
|
|
446
930
|
*/
|
|
447
931
|
|
|
448
|
-
const iterate = (object, callback) => {
|
|
932
|
+
const iterate$1 = (object, callback) => {
|
|
449
933
|
if (Array.isArray(object)) {
|
|
450
934
|
object.forEach(callback);
|
|
451
935
|
} else {
|
|
@@ -468,6 +952,8 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
468
952
|
return 0;
|
|
469
953
|
};
|
|
470
954
|
|
|
955
|
+
/*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
|
|
956
|
+
|
|
471
957
|
/**
|
|
472
958
|
* sifter.js
|
|
473
959
|
* Copyright (c) 2013–2020 Brian Reavis & contributors
|
|
@@ -529,12 +1015,12 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
529
1015
|
|
|
530
1016
|
if (word.length > 0) {
|
|
531
1017
|
if (this.settings.diacritics) {
|
|
532
|
-
regex =
|
|
1018
|
+
regex = getPattern(word) || null;
|
|
533
1019
|
} else {
|
|
534
1020
|
regex = escape_regex(word);
|
|
535
1021
|
}
|
|
536
1022
|
|
|
537
|
-
if (respect_word_boundaries) regex = "\\b" + regex;
|
|
1023
|
+
if (regex && respect_word_boundaries) regex = "\\b" + regex;
|
|
538
1024
|
}
|
|
539
1025
|
|
|
540
1026
|
tokens.push({
|
|
@@ -552,12 +1038,17 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
552
1038
|
* Good matches will have a higher score than poor matches.
|
|
553
1039
|
* If an item is not a match, 0 will be returned by the function.
|
|
554
1040
|
*
|
|
555
|
-
* @returns {
|
|
1041
|
+
* @returns {T.ScoreFn}
|
|
556
1042
|
*/
|
|
557
1043
|
getScoreFunction(query, options) {
|
|
558
1044
|
var search = this.prepareSearch(query, options);
|
|
559
1045
|
return this._getScoreFunction(search);
|
|
560
1046
|
}
|
|
1047
|
+
/**
|
|
1048
|
+
* @returns {T.ScoreFn}
|
|
1049
|
+
*
|
|
1050
|
+
*/
|
|
1051
|
+
|
|
561
1052
|
|
|
562
1053
|
_getScoreFunction(search) {
|
|
563
1054
|
const tokens = search.tokens,
|
|
@@ -590,7 +1081,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
590
1081
|
if (field_count === 1) {
|
|
591
1082
|
return function (token, data) {
|
|
592
1083
|
const field = fields[0].field;
|
|
593
|
-
return scoreValue(getAttrFn(data, field), token, weights[field]);
|
|
1084
|
+
return scoreValue(getAttrFn(data, field), token, weights[field] || 1);
|
|
594
1085
|
};
|
|
595
1086
|
}
|
|
596
1087
|
|
|
@@ -606,7 +1097,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
606
1097
|
sum += scoreValue(value, token, 1);
|
|
607
1098
|
}
|
|
608
1099
|
} else {
|
|
609
|
-
iterate(weights, (weight, field) => {
|
|
1100
|
+
iterate$1(weights, (weight, field) => {
|
|
610
1101
|
sum += scoreValue(getAttrFn(data, field), token, weight);
|
|
611
1102
|
});
|
|
612
1103
|
}
|
|
@@ -623,12 +1114,11 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
623
1114
|
|
|
624
1115
|
if (search.options.conjunction === 'and') {
|
|
625
1116
|
return function (data) {
|
|
626
|
-
var
|
|
627
|
-
score,
|
|
1117
|
+
var score,
|
|
628
1118
|
sum = 0;
|
|
629
1119
|
|
|
630
|
-
for (
|
|
631
|
-
score = scoreObject(
|
|
1120
|
+
for (let token of tokens) {
|
|
1121
|
+
score = scoreObject(token, data);
|
|
632
1122
|
if (score <= 0) return 0;
|
|
633
1123
|
sum += score;
|
|
634
1124
|
}
|
|
@@ -638,7 +1128,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
638
1128
|
} else {
|
|
639
1129
|
return function (data) {
|
|
640
1130
|
var sum = 0;
|
|
641
|
-
iterate(tokens, token => {
|
|
1131
|
+
iterate$1(tokens, token => {
|
|
642
1132
|
sum += scoreObject(token, data);
|
|
643
1133
|
});
|
|
644
1134
|
return sum / token_count;
|
|
@@ -659,12 +1149,11 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
659
1149
|
}
|
|
660
1150
|
|
|
661
1151
|
_getSortFunction(search) {
|
|
662
|
-
var
|
|
1152
|
+
var implicit_score,
|
|
1153
|
+
sort_flds = [];
|
|
663
1154
|
const self = this,
|
|
664
1155
|
options = search.options,
|
|
665
|
-
sort = !search.query && options.sort_empty ? options.sort_empty : options.sort
|
|
666
|
-
sort_flds = [],
|
|
667
|
-
multipliers = [];
|
|
1156
|
+
sort = !search.query && options.sort_empty ? options.sort_empty : options.sort;
|
|
668
1157
|
|
|
669
1158
|
if (typeof sort == 'function') {
|
|
670
1159
|
return sort.bind(this);
|
|
@@ -683,9 +1172,9 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
683
1172
|
|
|
684
1173
|
|
|
685
1174
|
if (sort) {
|
|
686
|
-
for (
|
|
687
|
-
if (search.query ||
|
|
688
|
-
sort_flds.push(
|
|
1175
|
+
for (let s of sort) {
|
|
1176
|
+
if (search.query || s.field !== '$score') {
|
|
1177
|
+
sort_flds.push(s);
|
|
689
1178
|
}
|
|
690
1179
|
}
|
|
691
1180
|
} // the "$score" field is implied to be the primary
|
|
@@ -695,8 +1184,8 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
695
1184
|
if (search.query) {
|
|
696
1185
|
implicit_score = true;
|
|
697
1186
|
|
|
698
|
-
for (
|
|
699
|
-
if (
|
|
1187
|
+
for (let fld of sort_flds) {
|
|
1188
|
+
if (fld.field === '$score') {
|
|
700
1189
|
implicit_score = false;
|
|
701
1190
|
break;
|
|
702
1191
|
}
|
|
@@ -707,18 +1196,10 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
707
1196
|
field: '$score',
|
|
708
1197
|
direction: 'desc'
|
|
709
1198
|
});
|
|
710
|
-
}
|
|
711
|
-
} else {
|
|
712
|
-
for (i = 0, n = sort_flds.length; i < n; i++) {
|
|
713
|
-
if (sort_flds[i].field === '$score') {
|
|
714
|
-
sort_flds.splice(i, 1);
|
|
715
|
-
break;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
1199
|
+
} // without a search.query, all items will have the same score
|
|
719
1200
|
|
|
720
|
-
|
|
721
|
-
|
|
1201
|
+
} else {
|
|
1202
|
+
sort_flds = sort_flds.filter(fld => fld.field !== '$score');
|
|
722
1203
|
} // build function
|
|
723
1204
|
|
|
724
1205
|
|
|
@@ -726,25 +1207,20 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
726
1207
|
|
|
727
1208
|
if (!sort_flds_count) {
|
|
728
1209
|
return null;
|
|
729
|
-
}
|
|
730
|
-
const sort_fld = sort_flds[0].field;
|
|
731
|
-
const multiplier = multipliers[0];
|
|
732
|
-
return function (a, b) {
|
|
733
|
-
return multiplier * cmp(get_field(sort_fld, a), get_field(sort_fld, b));
|
|
734
|
-
};
|
|
735
|
-
} else {
|
|
736
|
-
return function (a, b) {
|
|
737
|
-
var i, result, field;
|
|
1210
|
+
}
|
|
738
1211
|
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
result = multipliers[i] * cmp(get_field(field, a), get_field(field, b));
|
|
742
|
-
if (result) return result;
|
|
743
|
-
}
|
|
1212
|
+
return function (a, b) {
|
|
1213
|
+
var result, field;
|
|
744
1214
|
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
1215
|
+
for (let sort_fld of sort_flds) {
|
|
1216
|
+
field = sort_fld.field;
|
|
1217
|
+
let multiplier = sort_fld.direction === 'desc' ? -1 : 1;
|
|
1218
|
+
result = multiplier * cmp(get_field(field, a), get_field(field, b));
|
|
1219
|
+
if (result) return result;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
return 0;
|
|
1223
|
+
};
|
|
748
1224
|
}
|
|
749
1225
|
|
|
750
1226
|
/**
|
|
@@ -803,7 +1279,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
803
1279
|
|
|
804
1280
|
|
|
805
1281
|
if (query.length) {
|
|
806
|
-
iterate(self.items, (item, id) => {
|
|
1282
|
+
iterate$1(self.items, (item, id) => {
|
|
807
1283
|
score = fn_score(item);
|
|
808
1284
|
|
|
809
1285
|
if (options.filter === false || score > 0) {
|
|
@@ -814,7 +1290,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
814
1290
|
}
|
|
815
1291
|
});
|
|
816
1292
|
} else {
|
|
817
|
-
iterate(self.items, (_, id) => {
|
|
1293
|
+
iterate$1(self.items, (_, id) => {
|
|
818
1294
|
search.items.push({
|
|
819
1295
|
'score': 1,
|
|
820
1296
|
'id': id
|
|
@@ -837,6 +1313,29 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
837
1313
|
|
|
838
1314
|
}
|
|
839
1315
|
|
|
1316
|
+
/**
|
|
1317
|
+
* Iterates over arrays and hashes.
|
|
1318
|
+
*
|
|
1319
|
+
* ```
|
|
1320
|
+
* iterate(this.items, function(item, id) {
|
|
1321
|
+
* // invoked for each item
|
|
1322
|
+
* });
|
|
1323
|
+
* ```
|
|
1324
|
+
*
|
|
1325
|
+
*/
|
|
1326
|
+
|
|
1327
|
+
const iterate = (object, callback) => {
|
|
1328
|
+
if (Array.isArray(object)) {
|
|
1329
|
+
object.forEach(callback);
|
|
1330
|
+
} else {
|
|
1331
|
+
for (var key in object) {
|
|
1332
|
+
if (object.hasOwnProperty(key)) {
|
|
1333
|
+
callback(object[key], key);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
|
|
840
1339
|
/**
|
|
841
1340
|
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
|
|
842
1341
|
* https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
|
|
@@ -854,10 +1353,10 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
854
1353
|
}
|
|
855
1354
|
|
|
856
1355
|
if (isHtmlString(query)) {
|
|
857
|
-
|
|
858
|
-
|
|
1356
|
+
var tpl = document.createElement('template');
|
|
1357
|
+
tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
|
|
859
1358
|
|
|
860
|
-
return
|
|
1359
|
+
return tpl.content.firstChild;
|
|
861
1360
|
}
|
|
862
1361
|
|
|
863
1362
|
return document.querySelector(query);
|
|
@@ -1068,9 +1567,9 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1068
1567
|
|
|
1069
1568
|
const highlightChildren = node => {
|
|
1070
1569
|
if (node.nodeType === 1 && node.childNodes && !/(script|style)/i.test(node.tagName) && (node.className !== 'highlight' || node.tagName !== 'SPAN')) {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1570
|
+
Array.from(node.childNodes).forEach(element => {
|
|
1571
|
+
highlightRecursive(element);
|
|
1572
|
+
});
|
|
1074
1573
|
}
|
|
1075
1574
|
};
|
|
1076
1575
|
|
|
@@ -1308,7 +1807,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1308
1807
|
}
|
|
1309
1808
|
};
|
|
1310
1809
|
/**
|
|
1311
|
-
*
|
|
1810
|
+
* Add event helper
|
|
1312
1811
|
*
|
|
1313
1812
|
*/
|
|
1314
1813
|
|
|
@@ -1643,7 +2142,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1643
2142
|
control_input = getDom(settings.controlInput); // set attributes
|
|
1644
2143
|
|
|
1645
2144
|
var attrs = ['autocorrect', 'autocapitalize', 'autocomplete'];
|
|
1646
|
-
iterate(attrs, attr => {
|
|
2145
|
+
iterate$1(attrs, attr => {
|
|
1647
2146
|
if (input.getAttribute(attr)) {
|
|
1648
2147
|
setAttr(control_input, {
|
|
1649
2148
|
[attr]: input.getAttribute(attr)
|
|
@@ -1747,6 +2246,9 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1747
2246
|
}
|
|
1748
2247
|
|
|
1749
2248
|
self.control_input.type = input.type;
|
|
2249
|
+
addEvent(dropdown, 'mousemove', () => {
|
|
2250
|
+
self.ignoreHover = false;
|
|
2251
|
+
});
|
|
1750
2252
|
addEvent(dropdown, 'mouseenter', e => {
|
|
1751
2253
|
var target_match = parentMatch(e.target, '[data-selectable]', dropdown);
|
|
1752
2254
|
if (target_match) self.onOptionHover(e, target_match);
|
|
@@ -1783,7 +2285,6 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1783
2285
|
|
|
1784
2286
|
addEvent(control_input, 'keypress', e => self.onKeyPress(e));
|
|
1785
2287
|
addEvent(control_input, 'input', e => self.onInput(e));
|
|
1786
|
-
addEvent(focus_node, 'resize', () => self.positionDropdown(), passive_event);
|
|
1787
2288
|
addEvent(focus_node, 'blur', e => self.onBlur(e));
|
|
1788
2289
|
addEvent(focus_node, 'focus', e => self.onFocus(e));
|
|
1789
2290
|
addEvent(control_input, 'paste', e => self.onPaste(e));
|
|
@@ -1819,18 +2320,12 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1819
2320
|
}
|
|
1820
2321
|
};
|
|
1821
2322
|
|
|
1822
|
-
const win_hover = () => {
|
|
1823
|
-
self.ignoreHover = false;
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
2323
|
addEvent(document, 'mousedown', doc_mousedown);
|
|
1827
2324
|
addEvent(window, 'scroll', win_scroll, passive_event);
|
|
1828
2325
|
addEvent(window, 'resize', win_scroll, passive_event);
|
|
1829
|
-
addEvent(window, 'mousemove', win_hover, passive_event);
|
|
1830
2326
|
|
|
1831
2327
|
this._destroy = () => {
|
|
1832
2328
|
document.removeEventListener('mousedown', doc_mousedown);
|
|
1833
|
-
window.removeEventListener('mousemove', win_hover);
|
|
1834
2329
|
window.removeEventListener('scroll', win_scroll);
|
|
1835
2330
|
window.removeEventListener('resize', win_scroll);
|
|
1836
2331
|
if (label) label.removeEventListener('click', label_click);
|
|
@@ -1848,7 +2343,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1848
2343
|
settings.items = [];
|
|
1849
2344
|
delete settings.optgroups;
|
|
1850
2345
|
delete settings.options;
|
|
1851
|
-
addEvent(input, 'invalid',
|
|
2346
|
+
addEvent(input, 'invalid', () => {
|
|
1852
2347
|
if (self.isValid) {
|
|
1853
2348
|
self.isValid = false;
|
|
1854
2349
|
self.isInvalid = true;
|
|
@@ -1885,7 +2380,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
1885
2380
|
// build options table
|
|
1886
2381
|
this.addOptions(options); // build optgroup table
|
|
1887
2382
|
|
|
1888
|
-
iterate(optgroups, optgroup => {
|
|
2383
|
+
iterate$1(optgroups, optgroup => {
|
|
1889
2384
|
this.registerOptionGroup(optgroup);
|
|
1890
2385
|
});
|
|
1891
2386
|
}
|
|
@@ -2049,13 +2544,15 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2049
2544
|
}
|
|
2050
2545
|
|
|
2051
2546
|
var splitInput = pastedText.trim().split(self.settings.splitOn);
|
|
2052
|
-
iterate(splitInput, piece => {
|
|
2053
|
-
|
|
2547
|
+
iterate$1(splitInput, piece => {
|
|
2548
|
+
const hash = hash_key(piece);
|
|
2054
2549
|
|
|
2055
|
-
if (
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2550
|
+
if (hash) {
|
|
2551
|
+
if (this.options[piece]) {
|
|
2552
|
+
self.addItem(piece);
|
|
2553
|
+
} else {
|
|
2554
|
+
self.createItem(piece);
|
|
2555
|
+
}
|
|
2059
2556
|
}
|
|
2060
2557
|
});
|
|
2061
2558
|
}, 0);
|
|
@@ -2283,7 +2780,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2283
2780
|
};
|
|
2284
2781
|
|
|
2285
2782
|
if (self.settings.create && self.settings.createOnBlur) {
|
|
2286
|
-
self.createItem(null,
|
|
2783
|
+
self.createItem(null, deactivate);
|
|
2287
2784
|
} else {
|
|
2288
2785
|
deactivate();
|
|
2289
2786
|
}
|
|
@@ -2304,7 +2801,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2304
2801
|
}
|
|
2305
2802
|
|
|
2306
2803
|
if (option.classList.contains('create')) {
|
|
2307
|
-
self.createItem(null,
|
|
2804
|
+
self.createItem(null, () => {
|
|
2308
2805
|
if (self.settings.closeAfterSelect) {
|
|
2309
2806
|
self.close();
|
|
2310
2807
|
}
|
|
@@ -2673,7 +3170,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2673
3170
|
self.hideInput();
|
|
2674
3171
|
self.close();
|
|
2675
3172
|
self.activeItems = activeItems;
|
|
2676
|
-
iterate(activeItems, item => {
|
|
3173
|
+
iterate$1(activeItems, item => {
|
|
2677
3174
|
self.setActiveItemClass(item);
|
|
2678
3175
|
});
|
|
2679
3176
|
}
|
|
@@ -2809,7 +3306,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2809
3306
|
|
|
2810
3307
|
|
|
2811
3308
|
search(query) {
|
|
2812
|
-
var
|
|
3309
|
+
var result, calculateScore;
|
|
2813
3310
|
var self = this;
|
|
2814
3311
|
var options = this.getSearchOptions(); // validate user-provided result scoring function
|
|
2815
3312
|
|
|
@@ -2834,13 +3331,10 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2834
3331
|
|
|
2835
3332
|
|
|
2836
3333
|
if (self.settings.hideSelected) {
|
|
2837
|
-
|
|
2838
|
-
let hashed = hash_key(
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
result.items.splice(i, 1);
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
3334
|
+
result.items = result.items.filter(item => {
|
|
3335
|
+
let hashed = hash_key(item.id);
|
|
3336
|
+
return !(hashed && self.items.indexOf(hashed) !== -1);
|
|
3337
|
+
});
|
|
2844
3338
|
}
|
|
2845
3339
|
|
|
2846
3340
|
return result;
|
|
@@ -2853,21 +3347,24 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2853
3347
|
|
|
2854
3348
|
|
|
2855
3349
|
refreshOptions(triggerDropdown = true) {
|
|
2856
|
-
var i, j, k, n, optgroup, optgroups, html, has_create_option,
|
|
3350
|
+
var i, j, k, n, optgroup, optgroups, html, has_create_option, active_group;
|
|
2857
3351
|
var create;
|
|
2858
3352
|
const groups = {};
|
|
2859
3353
|
const groups_order = [];
|
|
2860
3354
|
var self = this;
|
|
2861
3355
|
var query = self.inputValue();
|
|
3356
|
+
const same_query = query === self.lastQuery || query == '' && self.lastQuery == null;
|
|
2862
3357
|
var results = self.search(query);
|
|
2863
|
-
var active_option = null;
|
|
2864
|
-
|
|
3358
|
+
var active_option = null;
|
|
2865
3359
|
var show_dropdown = self.settings.shouldOpen || false;
|
|
2866
3360
|
var dropdown_content = self.dropdown_content;
|
|
2867
3361
|
|
|
2868
|
-
if (
|
|
2869
|
-
|
|
2870
|
-
|
|
3362
|
+
if (same_query) {
|
|
3363
|
+
active_option = self.activeOption;
|
|
3364
|
+
|
|
3365
|
+
if (active_option) {
|
|
3366
|
+
active_group = active_option.closest('[data-group]');
|
|
3367
|
+
}
|
|
2871
3368
|
} // build markup
|
|
2872
3369
|
|
|
2873
3370
|
|
|
@@ -2884,12 +3381,16 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2884
3381
|
|
|
2885
3382
|
for (i = 0; i < n; i++) {
|
|
2886
3383
|
// get option dom element
|
|
2887
|
-
let
|
|
3384
|
+
let item = results.items[i];
|
|
3385
|
+
if (!item) continue;
|
|
3386
|
+
let opt_value = item.id;
|
|
2888
3387
|
let option = self.options[opt_value];
|
|
2889
|
-
|
|
3388
|
+
if (option === undefined) continue;
|
|
3389
|
+
let opt_hash = get_hash(opt_value);
|
|
3390
|
+
let option_el = self.getOption(opt_hash, true); // toggle 'selected' class
|
|
2890
3391
|
|
|
2891
3392
|
if (!self.settings.hideSelected) {
|
|
2892
|
-
option_el.classList.toggle('selected', self.items.includes(
|
|
3393
|
+
option_el.classList.toggle('selected', self.items.includes(opt_hash));
|
|
2893
3394
|
}
|
|
2894
3395
|
|
|
2895
3396
|
optgroup = option[self.settings.optgroupField] || '';
|
|
@@ -2902,8 +3403,10 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2902
3403
|
optgroup = '';
|
|
2903
3404
|
}
|
|
2904
3405
|
|
|
2905
|
-
|
|
2906
|
-
|
|
3406
|
+
let group_fragment = groups[optgroup];
|
|
3407
|
+
|
|
3408
|
+
if (group_fragment === undefined) {
|
|
3409
|
+
group_fragment = document.createDocumentFragment();
|
|
2907
3410
|
groups_order.push(optgroup);
|
|
2908
3411
|
} // nodes can only have one parent, so if the option is in mutple groups, we need a clone
|
|
2909
3412
|
|
|
@@ -2915,48 +3418,50 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2915
3418
|
'aria-selected': null
|
|
2916
3419
|
});
|
|
2917
3420
|
option_el.classList.add('ts-cloned');
|
|
2918
|
-
removeClasses(option_el, 'active');
|
|
2919
|
-
} // make sure we keep the activeOption in the same group
|
|
2920
|
-
|
|
3421
|
+
removeClasses(option_el, 'active'); // make sure we keep the activeOption in the same group
|
|
2921
3422
|
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
if (active_group.dataset.group === optgroup) {
|
|
3423
|
+
if (self.activeOption && self.activeOption.dataset.value == opt_value) {
|
|
3424
|
+
if (active_group && active_group.dataset.group === optgroup.toString()) {
|
|
2925
3425
|
active_option = option_el;
|
|
2926
3426
|
}
|
|
2927
|
-
} else {
|
|
2928
|
-
active_option = option_el;
|
|
2929
3427
|
}
|
|
2930
3428
|
}
|
|
2931
3429
|
|
|
2932
|
-
|
|
3430
|
+
group_fragment.appendChild(option_el);
|
|
3431
|
+
groups[optgroup] = group_fragment;
|
|
2933
3432
|
}
|
|
2934
3433
|
} // sort optgroups
|
|
2935
3434
|
|
|
2936
3435
|
|
|
2937
|
-
if (
|
|
3436
|
+
if (self.settings.lockOptgroupOrder) {
|
|
2938
3437
|
groups_order.sort((a, b) => {
|
|
2939
|
-
|
|
2940
|
-
|
|
3438
|
+
const grp_a = self.optgroups[a];
|
|
3439
|
+
const grp_b = self.optgroups[b];
|
|
3440
|
+
const a_order = grp_a && grp_a.$order || 0;
|
|
3441
|
+
const b_order = grp_b && grp_b.$order || 0;
|
|
2941
3442
|
return a_order - b_order;
|
|
2942
3443
|
});
|
|
2943
3444
|
} // render optgroup headers & join groups
|
|
2944
3445
|
|
|
2945
3446
|
|
|
2946
3447
|
html = document.createDocumentFragment();
|
|
2947
|
-
iterate(groups_order, optgroup => {
|
|
2948
|
-
|
|
3448
|
+
iterate$1(groups_order, optgroup => {
|
|
3449
|
+
let group_fragment = groups[optgroup];
|
|
3450
|
+
if (!group_fragment || !group_fragment.children.length) return;
|
|
3451
|
+
let group_heading = self.optgroups[optgroup];
|
|
3452
|
+
|
|
3453
|
+
if (group_heading !== undefined) {
|
|
2949
3454
|
let group_options = document.createDocumentFragment();
|
|
2950
|
-
let header = self.render('optgroup_header',
|
|
3455
|
+
let header = self.render('optgroup_header', group_heading);
|
|
2951
3456
|
append(group_options, header);
|
|
2952
|
-
append(group_options,
|
|
3457
|
+
append(group_options, group_fragment);
|
|
2953
3458
|
let group_html = self.render('optgroup', {
|
|
2954
|
-
group:
|
|
3459
|
+
group: group_heading,
|
|
2955
3460
|
options: group_options
|
|
2956
3461
|
});
|
|
2957
3462
|
append(html, group_html);
|
|
2958
3463
|
} else {
|
|
2959
|
-
append(html,
|
|
3464
|
+
append(html, group_fragment);
|
|
2960
3465
|
}
|
|
2961
3466
|
});
|
|
2962
3467
|
dropdown_content.innerHTML = '';
|
|
@@ -2966,7 +3471,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
2966
3471
|
removeHighlight(dropdown_content);
|
|
2967
3472
|
|
|
2968
3473
|
if (results.query.length && results.tokens.length) {
|
|
2969
|
-
iterate(results.tokens, tok => {
|
|
3474
|
+
iterate$1(results.tokens, tok => {
|
|
2970
3475
|
highlight(dropdown_content, tok.regex);
|
|
2971
3476
|
});
|
|
2972
3477
|
}
|
|
@@ -3007,7 +3512,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3007
3512
|
|
|
3008
3513
|
if (show_dropdown) {
|
|
3009
3514
|
if (results.items.length > 0) {
|
|
3010
|
-
if (!active_option && self.settings.mode === 'single' && self.items
|
|
3515
|
+
if (!active_option && self.settings.mode === 'single' && self.items[0] != undefined) {
|
|
3011
3516
|
active_option = self.getOption(self.items[0]);
|
|
3012
3517
|
}
|
|
3013
3518
|
|
|
@@ -3094,7 +3599,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3094
3599
|
|
|
3095
3600
|
|
|
3096
3601
|
addOptions(data, user_created = false) {
|
|
3097
|
-
iterate(data, dat => {
|
|
3602
|
+
iterate$1(data, dat => {
|
|
3098
3603
|
this.addOption(dat, user_created);
|
|
3099
3604
|
});
|
|
3100
3605
|
}
|
|
@@ -3174,11 +3679,12 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3174
3679
|
const value_new = hash_key(data[self.settings.valueField]); // sanity checks
|
|
3175
3680
|
|
|
3176
3681
|
if (value_old === null) return;
|
|
3177
|
-
|
|
3682
|
+
const data_old = self.options[value_old];
|
|
3683
|
+
if (data_old == undefined) return;
|
|
3178
3684
|
if (typeof value_new !== 'string') throw new Error('Value must be set in option data');
|
|
3179
3685
|
const option = self.getOption(value_old);
|
|
3180
3686
|
const item = self.getItem(value_old);
|
|
3181
|
-
data.$order = data.$order ||
|
|
3687
|
+
data.$order = data.$order || data_old.$order;
|
|
3182
3688
|
delete self.options[value_old]; // invalidate render cache
|
|
3183
3689
|
// don't remove existing node yet, we'll remove it after replacing it
|
|
3184
3690
|
|
|
@@ -3242,9 +3748,9 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3242
3748
|
this.userOptions = {};
|
|
3243
3749
|
this.clearCache();
|
|
3244
3750
|
const selected = {};
|
|
3245
|
-
iterate(this.options, (option, key) => {
|
|
3751
|
+
iterate$1(this.options, (option, key) => {
|
|
3246
3752
|
if (boundFilter(option, key)) {
|
|
3247
|
-
selected[key] =
|
|
3753
|
+
selected[key] = option;
|
|
3248
3754
|
}
|
|
3249
3755
|
});
|
|
3250
3756
|
this.options = this.sifter.items = selected;
|
|
@@ -3274,10 +3780,10 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3274
3780
|
|
|
3275
3781
|
getOption(value, create = false) {
|
|
3276
3782
|
const hashed = hash_key(value);
|
|
3783
|
+
if (hashed === null) return null;
|
|
3784
|
+
const option = this.options[hashed];
|
|
3277
3785
|
|
|
3278
|
-
if (
|
|
3279
|
-
const option = this.options[hashed];
|
|
3280
|
-
|
|
3786
|
+
if (option != undefined) {
|
|
3281
3787
|
if (option.$div) {
|
|
3282
3788
|
return option.$div;
|
|
3283
3789
|
}
|
|
@@ -3350,11 +3856,11 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3350
3856
|
var self = this;
|
|
3351
3857
|
var items = Array.isArray(values) ? values : [values];
|
|
3352
3858
|
items = items.filter(x => self.items.indexOf(x) === -1);
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
self.isPending =
|
|
3356
|
-
self.addItem(
|
|
3357
|
-
}
|
|
3859
|
+
const last_item = items[items.length - 1];
|
|
3860
|
+
items.forEach(item => {
|
|
3861
|
+
self.isPending = item !== last_item;
|
|
3862
|
+
self.addItem(item, silent);
|
|
3863
|
+
});
|
|
3358
3864
|
}
|
|
3359
3865
|
/**
|
|
3360
3866
|
* "Selects" an item. Adds it to the list
|
|
@@ -3485,7 +3991,16 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3485
3991
|
*/
|
|
3486
3992
|
|
|
3487
3993
|
|
|
3488
|
-
createItem(input = null,
|
|
3994
|
+
createItem(input = null, callback = () => {}) {
|
|
3995
|
+
// triggerDropdown parameter @deprecated 2.1.1
|
|
3996
|
+
if (arguments.length === 3) {
|
|
3997
|
+
callback = arguments[2];
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
if (typeof callback != 'function') {
|
|
4001
|
+
callback = () => {};
|
|
4002
|
+
}
|
|
4003
|
+
|
|
3489
4004
|
var self = this;
|
|
3490
4005
|
var caret = self.caretPos;
|
|
3491
4006
|
var output;
|
|
@@ -3761,7 +4276,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3761
4276
|
var self = this;
|
|
3762
4277
|
if (!self.items.length) return;
|
|
3763
4278
|
var items = self.controlChildren();
|
|
3764
|
-
iterate(items, item => {
|
|
4279
|
+
iterate$1(items, item => {
|
|
3765
4280
|
self.removeItem(item, true);
|
|
3766
4281
|
});
|
|
3767
4282
|
self.showInput();
|
|
@@ -3779,7 +4294,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3779
4294
|
const self = this;
|
|
3780
4295
|
const caret = self.caretPos;
|
|
3781
4296
|
const target = self.control;
|
|
3782
|
-
target.insertBefore(el, target.children[caret]);
|
|
4297
|
+
target.insertBefore(el, target.children[caret] || null);
|
|
3783
4298
|
self.setCaret(caret + 1);
|
|
3784
4299
|
}
|
|
3785
4300
|
/**
|
|
@@ -3804,14 +4319,19 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
3804
4319
|
caret++;
|
|
3805
4320
|
}
|
|
3806
4321
|
|
|
3807
|
-
iterate(self.activeItems, item => rm_items.push(item));
|
|
4322
|
+
iterate$1(self.activeItems, item => rm_items.push(item));
|
|
3808
4323
|
} else if ((self.isFocused || self.settings.mode === 'single') && self.items.length) {
|
|
3809
4324
|
const items = self.controlChildren();
|
|
4325
|
+
let rm_item;
|
|
3810
4326
|
|
|
3811
4327
|
if (direction < 0 && selection.start === 0 && selection.length === 0) {
|
|
3812
|
-
|
|
4328
|
+
rm_item = items[self.caretPos - 1];
|
|
3813
4329
|
} else if (direction > 0 && selection.start === self.inputValue().length) {
|
|
3814
|
-
|
|
4330
|
+
rm_item = items[self.caretPos];
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
if (rm_item !== undefined) {
|
|
4334
|
+
rm_items.push(rm_item);
|
|
3815
4335
|
}
|
|
3816
4336
|
}
|
|
3817
4337
|
|
|
@@ -4013,33 +4533,18 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
4013
4533
|
|
|
4014
4534
|
|
|
4015
4535
|
render(templateName, data) {
|
|
4016
|
-
|
|
4017
|
-
return null;
|
|
4018
|
-
}
|
|
4019
|
-
|
|
4020
|
-
return this._render(templateName, data);
|
|
4021
|
-
}
|
|
4022
|
-
/**
|
|
4023
|
-
* _render() can be called directly when we know we don't want to hit the cache
|
|
4024
|
-
* return type could be null for some templates, we need https://github.com/microsoft/TypeScript/issues/33014
|
|
4025
|
-
*/
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
_render(templateName, data) {
|
|
4029
|
-
var value = '',
|
|
4030
|
-
id,
|
|
4031
|
-
html;
|
|
4536
|
+
var id, html;
|
|
4032
4537
|
const self = this;
|
|
4033
4538
|
|
|
4034
|
-
if (
|
|
4035
|
-
|
|
4539
|
+
if (typeof this.settings.render[templateName] !== 'function') {
|
|
4540
|
+
return null;
|
|
4036
4541
|
} // render markup
|
|
4037
4542
|
|
|
4038
4543
|
|
|
4039
4544
|
html = self.settings.render[templateName].call(this, data, escape_html);
|
|
4040
4545
|
|
|
4041
|
-
if (html
|
|
4042
|
-
return
|
|
4546
|
+
if (!html) {
|
|
4547
|
+
return null;
|
|
4043
4548
|
}
|
|
4044
4549
|
|
|
4045
4550
|
html = getDom(html); // add mandatory attributes
|
|
@@ -4068,6 +4573,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
4068
4573
|
}
|
|
4069
4574
|
|
|
4070
4575
|
if (templateName === 'option' || templateName === 'item') {
|
|
4576
|
+
const value = get_hash(data[self.settings.valueField]);
|
|
4071
4577
|
setAttr(html, {
|
|
4072
4578
|
'data-value': value
|
|
4073
4579
|
}); // make sure we have some classes if a template is overwritten
|
|
@@ -4084,12 +4590,28 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
4084
4590
|
id: data.$id
|
|
4085
4591
|
}); // update cache
|
|
4086
4592
|
|
|
4087
|
-
|
|
4593
|
+
data.$div = html;
|
|
4594
|
+
self.options[value] = data;
|
|
4088
4595
|
}
|
|
4089
4596
|
}
|
|
4090
4597
|
|
|
4091
4598
|
return html;
|
|
4092
4599
|
}
|
|
4600
|
+
/**
|
|
4601
|
+
* Type guarded rendering
|
|
4602
|
+
*
|
|
4603
|
+
*/
|
|
4604
|
+
|
|
4605
|
+
|
|
4606
|
+
_render(templateName, data) {
|
|
4607
|
+
const html = this.render(templateName, data);
|
|
4608
|
+
|
|
4609
|
+
if (html == null) {
|
|
4610
|
+
throw 'HTMLElement expected';
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
return html;
|
|
4614
|
+
}
|
|
4093
4615
|
/**
|
|
4094
4616
|
* Clears the render cache for a template. If
|
|
4095
4617
|
* no template is given, clears all render
|
|
@@ -4099,7 +4621,7 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
4099
4621
|
|
|
4100
4622
|
|
|
4101
4623
|
clearCache() {
|
|
4102
|
-
iterate(this.options,
|
|
4624
|
+
iterate$1(this.options, option => {
|
|
4103
4625
|
if (option.$div) {
|
|
4104
4626
|
option.$div.remove();
|
|
4105
4627
|
delete option.$div;
|
|
@@ -4170,153 +4692,207 @@ var tomSelect_base = createCommonjsModule(function (module, exports) {
|
|
|
4170
4692
|
|
|
4171
4693
|
var remove_button = createCommonjsModule(function (module, exports) {
|
|
4172
4694
|
/**
|
|
4173
|
-
* Tom Select v2.
|
|
4695
|
+
* Tom Select v2.2.2
|
|
4174
4696
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4175
4697
|
*/
|
|
4176
4698
|
|
|
4177
4699
|
(function (global, factory) {
|
|
4178
|
-
|
|
4700
|
+
module.exports = factory() ;
|
|
4179
4701
|
})(commonjsGlobal, (function () {
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4702
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
4703
|
+
const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
|
|
4704
|
+
/** @type {TUnicodeMap} */
|
|
4705
|
+
|
|
4706
|
+
const latin_convert = {};
|
|
4707
|
+
/** @type {TUnicodeMap} */
|
|
4708
|
+
|
|
4709
|
+
const latin_condensed = {
|
|
4710
|
+
'/': '⁄∕',
|
|
4711
|
+
'0': '߀',
|
|
4712
|
+
"a": "ⱥɐɑ",
|
|
4713
|
+
"aa": "ꜳ",
|
|
4714
|
+
"ae": "æǽǣ",
|
|
4715
|
+
"ao": "ꜵ",
|
|
4716
|
+
"au": "ꜷ",
|
|
4717
|
+
"av": "ꜹꜻ",
|
|
4718
|
+
"ay": "ꜽ",
|
|
4719
|
+
"b": "ƀɓƃ",
|
|
4720
|
+
"c": "ꜿƈȼↄ",
|
|
4721
|
+
"d": "đɗɖᴅƌꮷԁɦ",
|
|
4722
|
+
"e": "ɛǝᴇɇ",
|
|
4723
|
+
"f": "ꝼƒ",
|
|
4724
|
+
"g": "ǥɠꞡᵹꝿɢ",
|
|
4725
|
+
"h": "ħⱨⱶɥ",
|
|
4726
|
+
"i": "ɨı",
|
|
4727
|
+
"j": "ɉȷ",
|
|
4728
|
+
"k": "ƙⱪꝁꝃꝅꞣ",
|
|
4729
|
+
"l": "łƚɫⱡꝉꝇꞁɭ",
|
|
4730
|
+
"m": "ɱɯϻ",
|
|
4731
|
+
"n": "ꞥƞɲꞑᴎлԉ",
|
|
4732
|
+
"o": "øǿɔɵꝋꝍᴑ",
|
|
4733
|
+
"oe": "œ",
|
|
4734
|
+
"oi": "ƣ",
|
|
4735
|
+
"oo": "ꝏ",
|
|
4736
|
+
"ou": "ȣ",
|
|
4737
|
+
"p": "ƥᵽꝑꝓꝕρ",
|
|
4738
|
+
"q": "ꝗꝙɋ",
|
|
4739
|
+
"r": "ɍɽꝛꞧꞃ",
|
|
4740
|
+
"s": "ßȿꞩꞅʂ",
|
|
4741
|
+
"t": "ŧƭʈⱦꞇ",
|
|
4742
|
+
"th": "þ",
|
|
4743
|
+
"tz": "ꜩ",
|
|
4744
|
+
"u": "ʉ",
|
|
4745
|
+
"v": "ʋꝟʌ",
|
|
4746
|
+
"vy": "ꝡ",
|
|
4747
|
+
"w": "ⱳ",
|
|
4748
|
+
"y": "ƴɏỿ",
|
|
4749
|
+
"z": "ƶȥɀⱬꝣ",
|
|
4750
|
+
"hv": "ƕ"
|
|
4751
|
+
};
|
|
4752
|
+
|
|
4753
|
+
for (let latin in latin_condensed) {
|
|
4754
|
+
let unicode = latin_condensed[latin] || '';
|
|
4755
|
+
|
|
4756
|
+
for (let i = 0; i < unicode.length; i++) {
|
|
4757
|
+
let char = unicode.substring(i, i + 1);
|
|
4758
|
+
latin_convert[char] = latin;
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4199
4761
|
|
|
4200
|
-
|
|
4201
|
-
return query;
|
|
4202
|
-
}
|
|
4762
|
+
new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
|
|
4203
4763
|
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4764
|
+
/**
|
|
4765
|
+
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
|
|
4766
|
+
* https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro/35385518#35385518
|
|
4767
|
+
*
|
|
4768
|
+
* param query should be {}
|
|
4769
|
+
*/
|
|
4770
|
+
|
|
4771
|
+
const getDom = query => {
|
|
4772
|
+
if (query.jquery) {
|
|
4773
|
+
return query[0];
|
|
4774
|
+
}
|
|
4207
4775
|
|
|
4208
|
-
|
|
4209
|
-
|
|
4776
|
+
if (query instanceof HTMLElement) {
|
|
4777
|
+
return query;
|
|
4778
|
+
}
|
|
4210
4779
|
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
if (typeof arg === 'string' && arg.indexOf('<') > -1) {
|
|
4215
|
-
return true;
|
|
4216
|
-
}
|
|
4780
|
+
if (isHtmlString(query)) {
|
|
4781
|
+
var tpl = document.createElement('template');
|
|
4782
|
+
tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
|
|
4217
4783
|
|
|
4218
|
-
|
|
4219
|
-
|
|
4784
|
+
return tpl.content.firstChild;
|
|
4785
|
+
}
|
|
4220
4786
|
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
* null -> ''
|
|
4228
|
-
* undefined -> ''
|
|
4229
|
-
* true -> '1'
|
|
4230
|
-
* false -> '0'
|
|
4231
|
-
* 0 -> '0'
|
|
4232
|
-
* 1 -> '1'
|
|
4233
|
-
*
|
|
4234
|
-
*/
|
|
4235
|
-
/**
|
|
4236
|
-
* Escapes a string for use within HTML.
|
|
4237
|
-
*
|
|
4238
|
-
*/
|
|
4787
|
+
return document.querySelector(query);
|
|
4788
|
+
};
|
|
4789
|
+
const isHtmlString = arg => {
|
|
4790
|
+
if (typeof arg === 'string' && arg.indexOf('<') > -1) {
|
|
4791
|
+
return true;
|
|
4792
|
+
}
|
|
4239
4793
|
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
};
|
|
4243
|
-
/**
|
|
4244
|
-
* Prevent default
|
|
4245
|
-
*
|
|
4246
|
-
*/
|
|
4794
|
+
return false;
|
|
4795
|
+
};
|
|
4247
4796
|
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4797
|
+
/**
|
|
4798
|
+
* Converts a scalar to its best string representation
|
|
4799
|
+
* for hash keys and HTML attribute values.
|
|
4800
|
+
*
|
|
4801
|
+
* Transformations:
|
|
4802
|
+
* 'str' -> 'str'
|
|
4803
|
+
* null -> ''
|
|
4804
|
+
* undefined -> ''
|
|
4805
|
+
* true -> '1'
|
|
4806
|
+
* false -> '0'
|
|
4807
|
+
* 0 -> '0'
|
|
4808
|
+
* 1 -> '1'
|
|
4809
|
+
*
|
|
4810
|
+
*/
|
|
4811
|
+
/**
|
|
4812
|
+
* Escapes a string for use within HTML.
|
|
4813
|
+
*
|
|
4814
|
+
*/
|
|
4251
4815
|
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
*
|
|
4260
|
-
*/
|
|
4816
|
+
const escape_html = str => {
|
|
4817
|
+
return (str + '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
4818
|
+
};
|
|
4819
|
+
/**
|
|
4820
|
+
* Prevent default
|
|
4821
|
+
*
|
|
4822
|
+
*/
|
|
4261
4823
|
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4824
|
+
const preventDefault = (evt, stop = false) => {
|
|
4825
|
+
if (evt) {
|
|
4826
|
+
evt.preventDefault();
|
|
4265
4827
|
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
4276
|
-
* ANY KIND, either express or implied. See the License for the specific language
|
|
4277
|
-
* governing permissions and limitations under the License.
|
|
4278
|
-
*
|
|
4279
|
-
*/
|
|
4280
|
-
function plugin (userOptions) {
|
|
4281
|
-
const options = Object.assign({
|
|
4282
|
-
label: '×',
|
|
4283
|
-
title: 'Remove',
|
|
4284
|
-
className: 'remove',
|
|
4285
|
-
append: true
|
|
4286
|
-
}, userOptions); //options.className = 'remove-single';
|
|
4828
|
+
if (stop) {
|
|
4829
|
+
evt.stopPropagation();
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
};
|
|
4833
|
+
/**
|
|
4834
|
+
* Add event helper
|
|
4835
|
+
*
|
|
4836
|
+
*/
|
|
4287
4837
|
|
|
4288
|
-
|
|
4838
|
+
const addEvent = (target, type, callback, options) => {
|
|
4839
|
+
target.addEventListener(type, callback, options);
|
|
4840
|
+
};
|
|
4289
4841
|
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4842
|
+
/**
|
|
4843
|
+
* Plugin: "remove_button" (Tom Select)
|
|
4844
|
+
* Copyright (c) contributors
|
|
4845
|
+
*
|
|
4846
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
|
|
4847
|
+
* file except in compliance with the License. You may obtain a copy of the License at:
|
|
4848
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4849
|
+
*
|
|
4850
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
4851
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
4852
|
+
* ANY KIND, either express or implied. See the License for the specific language
|
|
4853
|
+
* governing permissions and limitations under the License.
|
|
4854
|
+
*
|
|
4855
|
+
*/
|
|
4856
|
+
function plugin (userOptions) {
|
|
4857
|
+
const options = Object.assign({
|
|
4858
|
+
label: '×',
|
|
4859
|
+
title: 'Remove',
|
|
4860
|
+
className: 'remove',
|
|
4861
|
+
append: true
|
|
4862
|
+
}, userOptions); //options.className = 'remove-single';
|
|
4863
|
+
|
|
4864
|
+
var self = this; // override the render method to add remove button to each item
|
|
4865
|
+
|
|
4866
|
+
if (!options.append) {
|
|
4867
|
+
return;
|
|
4868
|
+
}
|
|
4293
4869
|
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4870
|
+
var html = '<a href="javascript:void(0)" class="' + options.className + '" tabindex="-1" title="' + escape_html(options.title) + '">' + options.label + '</a>';
|
|
4871
|
+
self.hook('after', 'setupTemplates', () => {
|
|
4872
|
+
var orig_render_item = self.settings.render.item;
|
|
4297
4873
|
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4874
|
+
self.settings.render.item = (data, escape) => {
|
|
4875
|
+
var item = getDom(orig_render_item.call(self, data, escape));
|
|
4876
|
+
var close_button = getDom(html);
|
|
4877
|
+
item.appendChild(close_button);
|
|
4878
|
+
addEvent(close_button, 'mousedown', evt => {
|
|
4879
|
+
preventDefault(evt, true);
|
|
4880
|
+
});
|
|
4881
|
+
addEvent(close_button, 'click', evt => {
|
|
4882
|
+
// propagating will trigger the dropdown to show for single mode
|
|
4883
|
+
preventDefault(evt, true);
|
|
4884
|
+
if (self.isLocked) return;
|
|
4885
|
+
if (!self.shouldDelete([item], evt)) return;
|
|
4886
|
+
self.removeItem(item);
|
|
4887
|
+
self.refreshOptions(false);
|
|
4888
|
+
self.inputState();
|
|
4889
|
+
});
|
|
4890
|
+
return item;
|
|
4891
|
+
};
|
|
4892
|
+
});
|
|
4893
|
+
}
|
|
4318
4894
|
|
|
4319
|
-
|
|
4895
|
+
return plugin;
|
|
4320
4896
|
|
|
4321
4897
|
}));
|
|
4322
4898
|
//# sourceMappingURL=remove_button.js.map
|
|
@@ -4324,7 +4900,7 @@ var remove_button = createCommonjsModule(function (module, exports) {
|
|
|
4324
4900
|
|
|
4325
4901
|
var checkbox_options = createCommonjsModule(function (module, exports) {
|
|
4326
4902
|
/**
|
|
4327
|
-
* Tom Select v2.
|
|
4903
|
+
* Tom Select v2.2.2
|
|
4328
4904
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4329
4905
|
*/
|
|
4330
4906
|
|
|
@@ -4368,13 +4944,67 @@ var checkbox_options = createCommonjsModule(function (module, exports) {
|
|
|
4368
4944
|
}
|
|
4369
4945
|
};
|
|
4370
4946
|
|
|
4371
|
-
|
|
4372
|
-
const
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4947
|
+
/*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
|
|
4948
|
+
const accent_pat = '[\u0300-\u036F\u{b7}\u{2be}\u{2bc}]';
|
|
4949
|
+
/** @type {TUnicodeMap} */
|
|
4950
|
+
|
|
4951
|
+
const latin_convert = {};
|
|
4952
|
+
/** @type {TUnicodeMap} */
|
|
4953
|
+
|
|
4954
|
+
const latin_condensed = {
|
|
4955
|
+
'/': '⁄∕',
|
|
4956
|
+
'0': '߀',
|
|
4957
|
+
"a": "ⱥɐɑ",
|
|
4958
|
+
"aa": "ꜳ",
|
|
4959
|
+
"ae": "æǽǣ",
|
|
4960
|
+
"ao": "ꜵ",
|
|
4961
|
+
"au": "ꜷ",
|
|
4962
|
+
"av": "ꜹꜻ",
|
|
4963
|
+
"ay": "ꜽ",
|
|
4964
|
+
"b": "ƀɓƃ",
|
|
4965
|
+
"c": "ꜿƈȼↄ",
|
|
4966
|
+
"d": "đɗɖᴅƌꮷԁɦ",
|
|
4967
|
+
"e": "ɛǝᴇɇ",
|
|
4968
|
+
"f": "ꝼƒ",
|
|
4969
|
+
"g": "ǥɠꞡᵹꝿɢ",
|
|
4970
|
+
"h": "ħⱨⱶɥ",
|
|
4971
|
+
"i": "ɨı",
|
|
4972
|
+
"j": "ɉȷ",
|
|
4973
|
+
"k": "ƙⱪꝁꝃꝅꞣ",
|
|
4974
|
+
"l": "łƚɫⱡꝉꝇꞁɭ",
|
|
4975
|
+
"m": "ɱɯϻ",
|
|
4976
|
+
"n": "ꞥƞɲꞑᴎлԉ",
|
|
4977
|
+
"o": "øǿɔɵꝋꝍᴑ",
|
|
4978
|
+
"oe": "œ",
|
|
4979
|
+
"oi": "ƣ",
|
|
4980
|
+
"oo": "ꝏ",
|
|
4981
|
+
"ou": "ȣ",
|
|
4982
|
+
"p": "ƥᵽꝑꝓꝕρ",
|
|
4983
|
+
"q": "ꝗꝙɋ",
|
|
4984
|
+
"r": "ɍɽꝛꞧꞃ",
|
|
4985
|
+
"s": "ßȿꞩꞅʂ",
|
|
4986
|
+
"t": "ŧƭʈⱦꞇ",
|
|
4987
|
+
"th": "þ",
|
|
4988
|
+
"tz": "ꜩ",
|
|
4989
|
+
"u": "ʉ",
|
|
4990
|
+
"v": "ʋꝟʌ",
|
|
4991
|
+
"vy": "ꝡ",
|
|
4992
|
+
"w": "ⱳ",
|
|
4993
|
+
"y": "ƴɏỿ",
|
|
4994
|
+
"z": "ƶȥɀⱬꝣ",
|
|
4995
|
+
"hv": "ƕ"
|
|
4376
4996
|
};
|
|
4377
|
-
|
|
4997
|
+
|
|
4998
|
+
for (let latin in latin_condensed) {
|
|
4999
|
+
let unicode = latin_condensed[latin] || '';
|
|
5000
|
+
|
|
5001
|
+
for (let i = 0; i < unicode.length; i++) {
|
|
5002
|
+
let char = unicode.substring(i, i + 1);
|
|
5003
|
+
latin_convert[char] = latin;
|
|
5004
|
+
}
|
|
5005
|
+
}
|
|
5006
|
+
|
|
5007
|
+
new RegExp(Object.keys(latin_convert).join('|') + '|' + accent_pat, 'gu');
|
|
4378
5008
|
|
|
4379
5009
|
/**
|
|
4380
5010
|
* Return a dom element from either a dom query string, jQuery object, a dom element or html string
|
|
@@ -4393,10 +5023,10 @@ var checkbox_options = createCommonjsModule(function (module, exports) {
|
|
|
4393
5023
|
}
|
|
4394
5024
|
|
|
4395
5025
|
if (isHtmlString(query)) {
|
|
4396
|
-
|
|
4397
|
-
|
|
5026
|
+
var tpl = document.createElement('template');
|
|
5027
|
+
tpl.innerHTML = query.trim(); // Never return a text node of whitespace as the result
|
|
4398
5028
|
|
|
4399
|
-
return
|
|
5029
|
+
return tpl.content.firstChild;
|
|
4400
5030
|
}
|
|
4401
5031
|
|
|
4402
5032
|
return document.querySelector(query);
|
|
@@ -4506,7 +5136,7 @@ var checkbox_options = createCommonjsModule(function (module, exports) {
|
|
|
4506
5136
|
|
|
4507
5137
|
var input_autogrow = createCommonjsModule(function (module, exports) {
|
|
4508
5138
|
/**
|
|
4509
|
-
* Tom Select v2.
|
|
5139
|
+
* Tom Select v2.2.2
|
|
4510
5140
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4511
5141
|
*/
|
|
4512
5142
|
|
|
@@ -4528,7 +5158,7 @@ var input_autogrow = createCommonjsModule(function (module, exports) {
|
|
|
4528
5158
|
*
|
|
4529
5159
|
*/
|
|
4530
5160
|
/**
|
|
4531
|
-
*
|
|
5161
|
+
* Add event helper
|
|
4532
5162
|
*
|
|
4533
5163
|
*/
|
|
4534
5164
|
|
|
@@ -4590,7 +5220,7 @@ var input_autogrow = createCommonjsModule(function (module, exports) {
|
|
|
4590
5220
|
|
|
4591
5221
|
var no_backspace_delete = createCommonjsModule(function (module, exports) {
|
|
4592
5222
|
/**
|
|
4593
|
-
* Tom Select v2.
|
|
5223
|
+
* Tom Select v2.2.2
|
|
4594
5224
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4595
5225
|
*/
|
|
4596
5226
|
|
|
@@ -4630,12 +5260,13 @@ var no_backspace_delete = createCommonjsModule(function (module, exports) {
|
|
|
4630
5260
|
|
|
4631
5261
|
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}";
|
|
4632
5262
|
|
|
4633
|
-
const
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
5263
|
+
const TomSelectInputReadonly = function (_plugin_options) {
|
|
5264
|
+
const self = this;
|
|
5265
|
+
self.on("initialize", () => {
|
|
5266
|
+
const input = self.control_input;
|
|
5267
|
+
if (input)
|
|
5268
|
+
input.readOnly = true;
|
|
5269
|
+
});
|
|
4639
5270
|
};
|
|
4640
5271
|
const CLASS_FILLED = "stzh-dropdown--is-filled";
|
|
4641
5272
|
const CLASS_FOCUS = "stzh-dropdown--has-focus";
|
|
@@ -4643,7 +5274,7 @@ tomSelect_base.define("remove_button", remove_button);
|
|
|
4643
5274
|
tomSelect_base.define("checkbox_options", checkbox_options);
|
|
4644
5275
|
tomSelect_base.define("input_autogrow", input_autogrow);
|
|
4645
5276
|
tomSelect_base.define("no_backspace_delete", no_backspace_delete);
|
|
4646
|
-
tomSelect_base.define("
|
|
5277
|
+
tomSelect_base.define("input_readonly", TomSelectInputReadonly);
|
|
4647
5278
|
let dropdownCounter = 0;
|
|
4648
5279
|
const StzhDropdown = class {
|
|
4649
5280
|
constructor(hostRef) {
|
|
@@ -4810,7 +5441,7 @@ const StzhDropdown = class {
|
|
|
4810
5441
|
}
|
|
4811
5442
|
const plugins = {};
|
|
4812
5443
|
if (this.noSearch) {
|
|
4813
|
-
plugins["
|
|
5444
|
+
plugins["input_readonly"] = {};
|
|
4814
5445
|
}
|
|
4815
5446
|
else {
|
|
4816
5447
|
plugins["input_autogrow"] = {};
|