@oiz/stzh-components 2.11.1 → 2.12.0-beta1
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-7697372c.js → app-globals-749422d7.js} +8 -4
- package/dist/cjs/app-globals-749422d7.js.map +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
- package/dist/cjs/stzh-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appointments.cjs.entry.js +7 -3
- package/dist/cjs/stzh-appointments.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-container.cjs.entry.js +1 -1
- package/dist/cjs/stzh-container.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +33 -14
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-progressbar.cjs.entry.js +14 -0
- package/dist/cjs/stzh-progressbar.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-toastbar.cjs.entry.js +8 -1
- package/dist/cjs/stzh-toastbar.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -3
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +7 -3
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +12 -0
- package/dist/collection/assets/i18n/en.json +12 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -2
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +9 -3
- package/dist/collection/components/stzh-appointments/stzh-appointments.js.map +1 -1
- package/dist/collection/components/stzh-button/stzh-button.js +1 -1
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +1 -1
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +1 -1
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +1 -1
- package/dist/collection/components/stzh-container/stzh-container.css +8 -8
- package/dist/collection/components/stzh-datalist/stzh-datalist.css +1 -1
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +62 -15
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js.map +1 -1
- package/dist/collection/components/stzh-gallery/stzh-gallery.css +0 -4
- package/dist/collection/components/stzh-input/stzh-input.js +1 -1
- package/dist/collection/components/stzh-link/stzh-link.js +1 -1
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +35 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js.map +1 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
- package/dist/collection/components/stzh-radio/stzh-radio.js +1 -1
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +5 -3
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +4 -4
- package/dist/collection/components/stzh-timepicker/stzh-timepicker.js +1 -1
- package/dist/collection/components/stzh-toastbar/stzh-toastbar.js +8 -1
- package/dist/collection/components/stzh-toastbar/stzh-toastbar.js.map +1 -1
- package/dist/collection/components/stzh-toggle/stzh-toggle.js +1 -1
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +9 -3
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js.map +1 -1
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +9 -3
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js.map +1 -1
- package/dist/collection/global/js/helpers/utils.js +6 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/translation-utils.js.map +1 -1
- package/dist/components/index.js +7 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-accordion.js +1 -1
- package/dist/components/stzh-accordion.js.map +1 -1
- package/dist/components/stzh-appointments.js +8 -3
- package/dist/components/stzh-appointments.js.map +1 -1
- package/dist/components/stzh-container.js +1 -1
- package/dist/components/stzh-container.js.map +1 -1
- package/dist/components/stzh-datalist2.js +1 -1
- package/dist/components/stzh-datalist2.js.map +1 -1
- package/dist/components/stzh-datepicker2.js +38 -16
- package/dist/components/stzh-datepicker2.js.map +1 -1
- package/dist/components/stzh-gallery.js +1 -1
- package/dist/components/stzh-gallery.js.map +1 -1
- package/dist/components/stzh-progressbar-item2.js +2 -1
- package/dist/components/stzh-progressbar-item2.js.map +1 -1
- package/dist/components/stzh-progressbar.js +16 -1
- package/dist/components/stzh-progressbar.js.map +1 -1
- package/dist/components/stzh-radiogroup2.js +1 -1
- package/dist/components/stzh-sticky.js +1 -1
- package/dist/components/stzh-sticky.js.map +1 -1
- package/dist/components/stzh-toastbar.js +8 -1
- package/dist/components/stzh-toastbar.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +8 -3
- package/dist/components/stzh-vbz-majorticker.js.map +1 -1
- package/dist/components/stzh-vbz-ticker.js +8 -3
- package/dist/components/stzh-vbz-ticker.js.map +1 -1
- package/dist/esm/{app-globals-1a77c38b.js → app-globals-5f5be02f.js} +8 -4
- package/dist/esm/app-globals-5f5be02f.js.map +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion.entry.js +1 -1
- package/dist/esm/stzh-accordion.entry.js.map +1 -1
- package/dist/esm/stzh-appointments.entry.js +7 -3
- package/dist/esm/stzh-appointments.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-container.entry.js +1 -1
- package/dist/esm/stzh-container.entry.js.map +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +34 -15
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/stzh-gallery.entry.js +1 -1
- package/dist/esm/stzh-gallery.entry.js.map +1 -1
- package/dist/esm/stzh-progressbar-item.entry.js +2 -1
- package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm/stzh-progressbar.entry.js +14 -0
- package/dist/esm/stzh-progressbar.entry.js.map +1 -1
- package/dist/esm/stzh-sticky.entry.js +1 -1
- package/dist/esm/stzh-sticky.entry.js.map +1 -1
- package/dist/esm/stzh-toastbar.entry.js +8 -1
- package/dist/esm/stzh-toastbar.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-majorticker.entry.js +7 -3
- package/dist/esm/stzh-vbz-majorticker.entry.js.map +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +7 -3
- package/dist/esm/stzh-vbz-ticker.entry.js.map +1 -1
- package/dist/esm-es5/{app-globals-1a77c38b.js → app-globals-5f5be02f.js} +2 -2
- package/dist/esm-es5/app-globals-5f5be02f.js.map +1 -0
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-accordion.entry.js +1 -1
- package/dist/esm-es5/stzh-accordion.entry.js.map +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-container.entry.js +1 -1
- package/dist/esm-es5/stzh-container.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-gallery.entry.js +1 -1
- package/dist/esm-es5/stzh-gallery.entry.js.map +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js.map +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
- package/dist/esm-es5/stzh-toastbar.entry.js +1 -1
- package/dist/esm-es5/stzh-toastbar.entry.js.map +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js.map +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +12 -0
- package/dist/stzh-components/assets/i18n/en.json +12 -0
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/p-0b1b2aa6.system.entry.js +2 -0
- package/dist/stzh-components/p-0b1b2aa6.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-11784b90.entry.js → p-0ba7ce34.entry.js} +2 -2
- package/dist/stzh-components/p-0ba7ce34.entry.js.map +1 -0
- package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
- package/dist/stzh-components/p-222ba06a.entry.js +2 -0
- package/dist/stzh-components/p-222ba06a.entry.js.map +1 -0
- package/dist/stzh-components/{p-c658502d.system.entry.js → p-241997a2.system.entry.js} +2 -2
- package/dist/stzh-components/p-241997a2.system.entry.js.map +1 -0
- package/dist/stzh-components/p-2d88c544.system.entry.js +2 -0
- package/dist/stzh-components/p-2d88c544.system.entry.js.map +1 -0
- package/dist/stzh-components/p-361996d1.entry.js +2 -0
- package/dist/stzh-components/p-361996d1.entry.js.map +1 -0
- package/dist/stzh-components/{p-54dbcd0e.system.entry.js → p-383c2c21.system.entry.js} +2 -2
- package/dist/stzh-components/{p-54dbcd0e.system.entry.js.map → p-383c2c21.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-15980af0.entry.js → p-534dc28e.entry.js} +2 -2
- package/dist/stzh-components/{p-15980af0.entry.js.map → p-534dc28e.entry.js.map} +1 -1
- package/dist/stzh-components/{p-5fdf0a8e.entry.js → p-5486402c.entry.js} +2 -2
- package/dist/stzh-components/{p-5fdf0a8e.entry.js.map → p-5486402c.entry.js.map} +1 -1
- package/dist/stzh-components/p-55d76b46.system.entry.js +2 -0
- package/dist/stzh-components/p-55d76b46.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-98b60fb7.js → p-5e014c0e.js} +2 -2
- package/dist/stzh-components/p-5e014c0e.js.map +1 -0
- package/dist/stzh-components/{p-e5c1f04c.system.entry.js → p-628b5b0d.system.entry.js} +2 -2
- package/dist/stzh-components/p-628b5b0d.system.entry.js.map +1 -0
- package/dist/stzh-components/p-66b0d1f3.entry.js +2 -0
- package/dist/stzh-components/p-66b0d1f3.entry.js.map +1 -0
- package/dist/stzh-components/{p-8b4cc10d.entry.js → p-761909d5.entry.js} +2 -2
- package/dist/stzh-components/p-761909d5.entry.js.map +1 -0
- package/dist/stzh-components/{p-50914ed3.system.entry.js → p-87a3758c.system.entry.js} +2 -2
- package/dist/stzh-components/p-87a3758c.system.entry.js.map +1 -0
- package/dist/stzh-components/p-a1e1261a.entry.js +2 -0
- package/dist/stzh-components/p-a1e1261a.entry.js.map +1 -0
- package/dist/stzh-components/p-aa9975e6.entry.js +2 -0
- package/dist/stzh-components/p-aa9975e6.entry.js.map +1 -0
- package/dist/stzh-components/{p-bb2fe16f.system.entry.js → p-b3d76f2a.system.entry.js} +2 -2
- package/dist/stzh-components/{p-bb2fe16f.system.entry.js.map → p-b3d76f2a.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-bf7316ab.system.js +2 -0
- package/dist/stzh-components/{p-bde8bb45.system.js.map → p-bf7316ab.system.js.map} +1 -1
- package/dist/stzh-components/{p-aefc1441.entry.js → p-c57402af.entry.js} +2 -2
- package/dist/stzh-components/p-c57402af.entry.js.map +1 -0
- package/dist/stzh-components/{p-cbcb366a.system.entry.js → p-c60ccc16.system.entry.js} +2 -2
- package/dist/stzh-components/p-c60ccc16.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-cc260e20.entry.js → p-d5ee8b1a.entry.js} +2 -2
- package/dist/stzh-components/{p-cc260e20.entry.js.map → p-d5ee8b1a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-d9984b93.system.entry.js → p-dc30c467.system.entry.js} +2 -2
- package/dist/stzh-components/p-dc30c467.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-9bfe7d0d.system.entry.js → p-e69312e4.system.entry.js} +2 -2
- package/dist/stzh-components/p-e69312e4.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-84ae2651.system.js → p-ebb38041.system.js} +2 -2
- package/dist/stzh-components/p-ebb38041.system.js.map +1 -0
- package/dist/stzh-components/p-fa0e39e0.system.entry.js +2 -0
- package/dist/stzh-components/p-fa0e39e0.system.entry.js.map +1 -0
- package/dist/stzh-components/p-ffb4e717.entry.js +2 -0
- package/dist/stzh-components/p-ffb4e717.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components.d.ts +14 -2
- package/dist/types/utils/translation-utils.d.ts +2 -0
- package/dist/vscode-data.json +7523 -0
- package/package.json +1 -1
- package/dist/cjs/app-globals-7697372c.js.map +0 -1
- package/dist/esm/app-globals-1a77c38b.js.map +0 -1
- package/dist/esm-es5/app-globals-1a77c38b.js.map +0 -1
- package/dist/stzh-components/p-07819ba5.entry.js +0 -2
- package/dist/stzh-components/p-07819ba5.entry.js.map +0 -1
- package/dist/stzh-components/p-1095d872.system.entry.js +0 -2
- package/dist/stzh-components/p-1095d872.system.entry.js.map +0 -1
- package/dist/stzh-components/p-11784b90.entry.js.map +0 -1
- package/dist/stzh-components/p-446dcea5.entry.js +0 -2
- package/dist/stzh-components/p-446dcea5.entry.js.map +0 -1
- package/dist/stzh-components/p-50914ed3.system.entry.js.map +0 -1
- package/dist/stzh-components/p-7b0da017.entry.js +0 -2
- package/dist/stzh-components/p-7b0da017.entry.js.map +0 -1
- package/dist/stzh-components/p-7fdd98fe.entry.js +0 -2
- package/dist/stzh-components/p-7fdd98fe.entry.js.map +0 -1
- package/dist/stzh-components/p-84ae2651.system.js.map +0 -1
- package/dist/stzh-components/p-8b4cc10d.entry.js.map +0 -1
- package/dist/stzh-components/p-8f98fc45.system.entry.js +0 -2
- package/dist/stzh-components/p-8f98fc45.system.entry.js.map +0 -1
- package/dist/stzh-components/p-98b60fb7.js.map +0 -1
- package/dist/stzh-components/p-9bfe7d0d.system.entry.js.map +0 -1
- package/dist/stzh-components/p-aafc8687.entry.js +0 -2
- package/dist/stzh-components/p-aafc8687.entry.js.map +0 -1
- package/dist/stzh-components/p-aefc1441.entry.js.map +0 -1
- package/dist/stzh-components/p-afb2885a.entry.js +0 -2
- package/dist/stzh-components/p-afb2885a.entry.js.map +0 -1
- package/dist/stzh-components/p-bde8bb45.system.js +0 -2
- package/dist/stzh-components/p-c658502d.system.entry.js.map +0 -1
- package/dist/stzh-components/p-cbcb366a.system.entry.js.map +0 -1
- package/dist/stzh-components/p-d9984b93.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e278cda2.system.entry.js +0 -2
- package/dist/stzh-components/p-e278cda2.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e5c1f04c.system.entry.js.map +0 -1
- package/dist/stzh-components/p-ff356dc8.system.entry.js +0 -2
- package/dist/stzh-components/p-ff356dc8.system.entry.js.map +0 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +0 -15
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -73
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +0 -16
- package/dist/types/components/stzh-actionset/stzh-actionset.d.ts +0 -45
- package/dist/types/components/stzh-amount/stzh-amount.d.ts +0 -73
- package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +0 -23
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +0 -73
- package/dist/types/components/stzh-audio/stzh-audio.d.ts +0 -58
- package/dist/types/components/stzh-button/stzh-button.d.ts +0 -105
- package/dist/types/components/stzh-buttongroup/stzh-buttongroup.d.ts +0 -7
- package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +0 -88
- package/dist/types/components/stzh-card/stzh-card.d.ts +0 -127
- package/dist/types/components/stzh-card-list/stzh-card-list.d.ts +0 -31
- package/dist/types/components/stzh-carousel/stzh-carousel.d.ts +0 -175
- package/dist/types/components/stzh-chart/stzh-chart.d.ts +0 -15
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +0 -57
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +0 -64
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +0 -74
- package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +0 -46
- package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +0 -49
- package/dist/types/components/stzh-contact/stzh-contact.d.ts +0 -54
- package/dist/types/components/stzh-datalist/stzh-datalist.d.ts +0 -51
- package/dist/types/components/stzh-datalist-item/stzh-datalist-item.d.ts +0 -62
- package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +0 -6
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +0 -57
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +0 -103
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +0 -91
- package/dist/types/components/stzh-details/stzh-details.d.ts +0 -35
- package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +0 -64
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +0 -173
- package/dist/types/components/stzh-figure/stzh-figure.d.ts +0 -21
- package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +0 -35
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +0 -27
- package/dist/types/components/stzh-gallery/stzh-gallery.d.ts +0 -54
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +0 -50
- package/dist/types/components/stzh-header/stzh-header.d.ts +0 -68
- package/dist/types/components/stzh-hr/stzh-hr.d.ts +0 -7
- package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +0 -60
- package/dist/types/components/stzh-imagecomparison/stzh-imagecomparison.d.ts +0 -29
- package/dist/types/components/stzh-input/stzh-input.d.ts +0 -104
- package/dist/types/components/stzh-invert/stzh-invert.d.ts +0 -7
- package/dist/types/components/stzh-langnav/stzh-langnav.d.ts +0 -19
- package/dist/types/components/stzh-link/stzh-link.d.ts +0 -88
- package/dist/types/components/stzh-list/stzh-list.d.ts +0 -9
- package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +0 -7
- package/dist/types/components/stzh-loader/stzh-loader.d.ts +0 -13
- package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +0 -12
- package/dist/types/components/stzh-logo/stzh-logo.d.ts +0 -9
- package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +0 -50
- package/dist/types/components/stzh-message/stzh-message.d.ts +0 -37
- package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +0 -11
- package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.d.ts +0 -33
- package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +0 -98
- package/dist/types/components/stzh-olmap/stzh-olmap.d.ts +0 -124
- package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +0 -34
- package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +0 -11
- package/dist/types/components/stzh-pagebottom/stzh-pagebottom.d.ts +0 -29
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +0 -15
- package/dist/types/components/stzh-pagetitle-hero/stzh-pagetitle-hero.d.ts +0 -25
- package/dist/types/components/stzh-pagination/stzh-pagination.d.ts +0 -52
- package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +0 -74
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +0 -73
- package/dist/types/components/stzh-print/stzh-print.d.ts +0 -12
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +0 -49
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +0 -34
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +0 -57
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +0 -66
- package/dist/types/components/stzh-ratio/stzh-ratio.d.ts +0 -22
- package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +0 -18
- package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +0 -22
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +0 -28
- package/dist/types/components/stzh-scrollup/stzh-scrollup.d.ts +0 -12
- package/dist/types/components/stzh-share/stzh-share.d.ts +0 -21
- package/dist/types/components/stzh-show/stzh-show.d.ts +0 -22
- package/dist/types/components/stzh-sitemap/stzh-sitemap.d.ts +0 -14
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +0 -38
- package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +0 -59
- package/dist/types/components/stzh-status/stzh-status.d.ts +0 -14
- package/dist/types/components/stzh-sticky/stzh-sticky.d.ts +0 -58
- package/dist/types/components/stzh-table/stzh-table.d.ts +0 -43
- package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +0 -14
- package/dist/types/components/stzh-timeline/stzh-timeline.d.ts +0 -23
- package/dist/types/components/stzh-timeline-item/stzh-timeline-item.d.ts +0 -78
- package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +0 -62
- package/dist/types/components/stzh-toast/stzh-toast.d.ts +0 -39
- package/dist/types/components/stzh-toastbar/stzh-toastbar.d.ts +0 -41
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +0 -59
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +0 -80
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +0 -236
- package/dist/types/components/stzh-vbz-carousel/stzh-vbz-carousel.d.ts +0 -14
- package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +0 -37
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +0 -41
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +0 -34
- package/dist/types/components/stzh-youtube/stzh-youtube.d.ts +0 -30
- package/dist/types/index.d.ts +0 -899
- package/dist/types/libraries/tom-select/types/constants.d.ts +0 -12
- package/dist/types/libraries/tom-select/types/contrib/highlight.d.ts +0 -13
- package/dist/types/libraries/tom-select/types/contrib/microevent.d.ts +0 -20
- package/dist/types/libraries/tom-select/types/contrib/microplugin.d.ts +0 -71
- package/dist/types/libraries/tom-select/types/defaults.d.ts +0 -51
- package/dist/types/libraries/tom-select/types/getSettings.d.ts +0 -3
- package/dist/types/libraries/tom-select/types/plugins/caret_position/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/plugins/change_listener/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/plugins/checkbox_options/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/plugins/clear_button/plugin.d.ts +0 -17
- package/dist/types/libraries/tom-select/types/plugins/clear_button/types.d.ts +0 -5
- package/dist/types/libraries/tom-select/types/plugins/drag_drop/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/plugins/dropdown_header/plugin.d.ts +0 -17
- package/dist/types/libraries/tom-select/types/plugins/dropdown_header/types.d.ts +0 -8
- package/dist/types/libraries/tom-select/types/plugins/dropdown_input/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/plugins/input_autogrow/plugin.d.ts +0 -15
- package/dist/types/libraries/tom-select/types/plugins/no_active_items/plugin.d.ts +0 -15
- package/dist/types/libraries/tom-select/types/plugins/no_backspace_delete/plugin.d.ts +0 -15
- package/dist/types/libraries/tom-select/types/plugins/optgroup_columns/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/plugins/remove_button/plugin.d.ts +0 -17
- package/dist/types/libraries/tom-select/types/plugins/remove_button/types.d.ts +0 -6
- package/dist/types/libraries/tom-select/types/plugins/restore_on_backspace/plugin.d.ts +0 -21
- package/dist/types/libraries/tom-select/types/plugins/virtual_scroll/plugin.d.ts +0 -16
- package/dist/types/libraries/tom-select/types/tom-select.complete.d.ts +0 -2
- package/dist/types/libraries/tom-select/types/tom-select.d.ts +0 -596
- package/dist/types/libraries/tom-select/types/tom-select.popular.d.ts +0 -2
- package/dist/types/libraries/tom-select/types/types/core.d.ts +0 -48
- package/dist/types/libraries/tom-select/types/types/index.d.ts +0 -2
- package/dist/types/libraries/tom-select/types/types/settings.d.ts +0 -78
- package/dist/types/libraries/tom-select/types/utils.d.ts +0 -76
- package/dist/types/libraries/tom-select/types/vanilla.d.ts +0 -76
- package/dist/types/types/svg.d.ts +0 -4
|
@@ -1,596 +0,0 @@
|
|
|
1
|
-
import { Sifter } from '@orchidjs/sifter';
|
|
2
|
-
import { TomInput, TomArgObject, TomOption, TomOptions, TomCreateCallback, TomItem, TomSettings, TomTemplateNames, TomClearFilter, RecursivePartial } from './types/index';
|
|
3
|
-
declare const TomSelect_base: {
|
|
4
|
-
new (): {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
plugins: {
|
|
7
|
-
names: string[];
|
|
8
|
-
settings: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
requested: {
|
|
12
|
-
[key: string]: boolean;
|
|
13
|
-
};
|
|
14
|
-
loaded: {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
initializePlugins(plugins: string[] | import("./contrib/microplugin").TPluginHash | import("./contrib/microplugin").TPluginItem[]): void;
|
|
19
|
-
loadPlugin(name: string): void;
|
|
20
|
-
require(name: string): any;
|
|
21
|
-
};
|
|
22
|
-
[x: string]: any;
|
|
23
|
-
define(name: string, fn: (this: any, settings: {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}) => any): void;
|
|
26
|
-
};
|
|
27
|
-
export default class TomSelect extends TomSelect_base {
|
|
28
|
-
control_input: HTMLInputElement;
|
|
29
|
-
wrapper: HTMLElement;
|
|
30
|
-
dropdown: HTMLElement;
|
|
31
|
-
control: HTMLElement;
|
|
32
|
-
dropdown_content: HTMLElement;
|
|
33
|
-
focus_node: HTMLElement;
|
|
34
|
-
order: number;
|
|
35
|
-
settings: TomSettings;
|
|
36
|
-
input: TomInput;
|
|
37
|
-
tabIndex: number;
|
|
38
|
-
is_select_tag: boolean;
|
|
39
|
-
rtl: boolean;
|
|
40
|
-
private inputId;
|
|
41
|
-
private _destroy;
|
|
42
|
-
sifter: Sifter;
|
|
43
|
-
isOpen: boolean;
|
|
44
|
-
isDisabled: boolean;
|
|
45
|
-
isRequired: boolean;
|
|
46
|
-
isInvalid: boolean;
|
|
47
|
-
isValid: boolean;
|
|
48
|
-
isLocked: boolean;
|
|
49
|
-
isFocused: boolean;
|
|
50
|
-
isInputHidden: boolean;
|
|
51
|
-
isSetup: boolean;
|
|
52
|
-
ignoreFocus: boolean;
|
|
53
|
-
ignoreHover: boolean;
|
|
54
|
-
hasOptions: boolean;
|
|
55
|
-
currentResults?: ReturnType<Sifter['search']>;
|
|
56
|
-
lastValue: string;
|
|
57
|
-
caretPos: number;
|
|
58
|
-
loading: number;
|
|
59
|
-
loadedSearches: {
|
|
60
|
-
[key: string]: boolean;
|
|
61
|
-
};
|
|
62
|
-
activeOption: null | HTMLElement;
|
|
63
|
-
activeItems: TomItem[];
|
|
64
|
-
optgroups: TomOptions;
|
|
65
|
-
options: TomOptions;
|
|
66
|
-
userOptions: {
|
|
67
|
-
[key: string]: boolean;
|
|
68
|
-
};
|
|
69
|
-
items: string[];
|
|
70
|
-
constructor(input_arg: string | TomInput, user_settings: RecursivePartial<TomSettings>);
|
|
71
|
-
/**
|
|
72
|
-
* set up event bindings.
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
setup(): void;
|
|
76
|
-
/**
|
|
77
|
-
* Register options and optgroups
|
|
78
|
-
*
|
|
79
|
-
*/
|
|
80
|
-
setupOptions(options?: TomOption[], optgroups?: TomOption[]): void;
|
|
81
|
-
/**
|
|
82
|
-
* Sets up default rendering functions.
|
|
83
|
-
*/
|
|
84
|
-
setupTemplates(): void;
|
|
85
|
-
/**
|
|
86
|
-
* Maps fired events to callbacks provided
|
|
87
|
-
* in the settings used when creating the control.
|
|
88
|
-
*/
|
|
89
|
-
setupCallbacks(): void;
|
|
90
|
-
/**
|
|
91
|
-
* Sync the Tom Select instance with the original input or select
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
sync(get_settings?: boolean): void;
|
|
95
|
-
/**
|
|
96
|
-
* Triggered when the main control element
|
|
97
|
-
* has a click event.
|
|
98
|
-
*
|
|
99
|
-
*/
|
|
100
|
-
onClick(): void;
|
|
101
|
-
/**
|
|
102
|
-
* @deprecated v1.7
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
onMouseDown(): void;
|
|
106
|
-
/**
|
|
107
|
-
* Triggered when the value of the control has been changed.
|
|
108
|
-
* This should propagate the event to the original DOM
|
|
109
|
-
* input / select element.
|
|
110
|
-
*/
|
|
111
|
-
onChange(): void;
|
|
112
|
-
/**
|
|
113
|
-
* Triggered on <input> paste.
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
onPaste(e: MouseEvent | KeyboardEvent): void;
|
|
117
|
-
/**
|
|
118
|
-
* Triggered on <input> keypress.
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
onKeyPress(e: KeyboardEvent): void;
|
|
122
|
-
/**
|
|
123
|
-
* Triggered on <input> keydown.
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
onKeyDown(e: KeyboardEvent): void;
|
|
127
|
-
/**
|
|
128
|
-
* Triggered on <input> keyup.
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
onInput(e: MouseEvent | KeyboardEvent): void;
|
|
132
|
-
/**
|
|
133
|
-
* Triggered when the user rolls over
|
|
134
|
-
* an option in the autocomplete dropdown menu.
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
onOptionHover(evt: MouseEvent | KeyboardEvent, option: HTMLElement): void;
|
|
138
|
-
/**
|
|
139
|
-
* Triggered on <input> focus.
|
|
140
|
-
*
|
|
141
|
-
*/
|
|
142
|
-
onFocus(e?: MouseEvent | KeyboardEvent): void;
|
|
143
|
-
/**
|
|
144
|
-
* Triggered on <input> blur.
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
onBlur(e?: FocusEvent): void;
|
|
148
|
-
/**
|
|
149
|
-
* Triggered when the user clicks on an option
|
|
150
|
-
* in the autocomplete dropdown menu.
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
onOptionSelect(evt: MouseEvent | KeyboardEvent, option: HTMLElement): void;
|
|
154
|
-
/**
|
|
155
|
-
* Return true if the given option can be selected
|
|
156
|
-
*
|
|
157
|
-
*/
|
|
158
|
-
canSelect(option: HTMLElement | null): boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Triggered when the user clicks on an item
|
|
161
|
-
* that has been selected.
|
|
162
|
-
*
|
|
163
|
-
*/
|
|
164
|
-
onItemSelect(evt?: MouseEvent, item?: TomItem): boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Determines whether or not to invoke
|
|
167
|
-
* the user-provided option provider / loader
|
|
168
|
-
*
|
|
169
|
-
* Note, there is a subtle difference between
|
|
170
|
-
* this.canLoad() and this.settings.shouldLoad();
|
|
171
|
-
*
|
|
172
|
-
* - settings.shouldLoad() is a user-input validator.
|
|
173
|
-
* When false is returned, the not_loading template
|
|
174
|
-
* will be added to the dropdown
|
|
175
|
-
*
|
|
176
|
-
* - canLoad() is lower level validator that checks
|
|
177
|
-
* the Tom Select instance. There is no inherent user
|
|
178
|
-
* feedback when canLoad returns false
|
|
179
|
-
*
|
|
180
|
-
*/
|
|
181
|
-
canLoad(value: string): boolean;
|
|
182
|
-
/**
|
|
183
|
-
* Invokes the user-provided option provider / loader.
|
|
184
|
-
*
|
|
185
|
-
*/
|
|
186
|
-
load(value: string): void;
|
|
187
|
-
/**
|
|
188
|
-
* Invoked by the user-provided option provider
|
|
189
|
-
*
|
|
190
|
-
*/
|
|
191
|
-
loadCallback(options: TomOption[], optgroups: TomOption[]): void;
|
|
192
|
-
preload(): void;
|
|
193
|
-
/**
|
|
194
|
-
* Sets the input field of the control to the specified value.
|
|
195
|
-
*
|
|
196
|
-
*/
|
|
197
|
-
setTextboxValue(value?: string): void;
|
|
198
|
-
/**
|
|
199
|
-
* Returns the value of the control. If multiple items
|
|
200
|
-
* can be selected (e.g. <select multiple>), this returns
|
|
201
|
-
* an array. If only one item can be selected, this
|
|
202
|
-
* returns a string.
|
|
203
|
-
*
|
|
204
|
-
*/
|
|
205
|
-
getValue(): string | string[];
|
|
206
|
-
/**
|
|
207
|
-
* Resets the selected items to the given value.
|
|
208
|
-
*
|
|
209
|
-
*/
|
|
210
|
-
setValue(value: string | string[], silent?: boolean): void;
|
|
211
|
-
/**
|
|
212
|
-
* Resets the number of max items to the given value
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
215
|
-
setMaxItems(value: null | number): void;
|
|
216
|
-
/**
|
|
217
|
-
* Sets the selected item.
|
|
218
|
-
*
|
|
219
|
-
*/
|
|
220
|
-
setActiveItem(item?: TomItem, e?: MouseEvent | KeyboardEvent): void;
|
|
221
|
-
/**
|
|
222
|
-
* Set the active and last-active classes
|
|
223
|
-
*
|
|
224
|
-
*/
|
|
225
|
-
setActiveItemClass(item: TomItem): void;
|
|
226
|
-
/**
|
|
227
|
-
* Remove active item
|
|
228
|
-
*
|
|
229
|
-
*/
|
|
230
|
-
removeActiveItem(item: TomItem): void;
|
|
231
|
-
/**
|
|
232
|
-
* Clears all the active items
|
|
233
|
-
*
|
|
234
|
-
*/
|
|
235
|
-
clearActiveItems(): void;
|
|
236
|
-
/**
|
|
237
|
-
* Sets the selected item in the dropdown menu
|
|
238
|
-
* of available options.
|
|
239
|
-
*
|
|
240
|
-
*/
|
|
241
|
-
setActiveOption(option: null | HTMLElement, scroll?: boolean): void;
|
|
242
|
-
/**
|
|
243
|
-
* Sets the dropdown_content scrollTop to display the option
|
|
244
|
-
*
|
|
245
|
-
*/
|
|
246
|
-
scrollToOption(option: null | HTMLElement, behavior?: string): void;
|
|
247
|
-
/**
|
|
248
|
-
* Scroll the dropdown to the given position
|
|
249
|
-
*
|
|
250
|
-
*/
|
|
251
|
-
scroll(scrollTop: number, behavior?: string): void;
|
|
252
|
-
/**
|
|
253
|
-
* Clears the active option
|
|
254
|
-
*
|
|
255
|
-
*/
|
|
256
|
-
clearActiveOption(): void;
|
|
257
|
-
/**
|
|
258
|
-
* Selects all items (CTRL + A).
|
|
259
|
-
*/
|
|
260
|
-
selectAll(): void;
|
|
261
|
-
/**
|
|
262
|
-
* Determines if the control_input should be in a hidden or visible state
|
|
263
|
-
*
|
|
264
|
-
*/
|
|
265
|
-
inputState(): void;
|
|
266
|
-
/**
|
|
267
|
-
* Hides the input element out of view, while
|
|
268
|
-
* retaining its focus.
|
|
269
|
-
* @deprecated 1.3
|
|
270
|
-
*/
|
|
271
|
-
hideInput(): void;
|
|
272
|
-
/**
|
|
273
|
-
* Restores input visibility.
|
|
274
|
-
* @deprecated 1.3
|
|
275
|
-
*/
|
|
276
|
-
showInput(): void;
|
|
277
|
-
/**
|
|
278
|
-
* Get the input value
|
|
279
|
-
*/
|
|
280
|
-
inputValue(): string;
|
|
281
|
-
/**
|
|
282
|
-
* Gives the control focus.
|
|
283
|
-
*/
|
|
284
|
-
focus(): void;
|
|
285
|
-
/**
|
|
286
|
-
* Forces the control out of focus.
|
|
287
|
-
*
|
|
288
|
-
*/
|
|
289
|
-
blur(): void;
|
|
290
|
-
/**
|
|
291
|
-
* Returns a function that scores an object
|
|
292
|
-
* to show how good of a match it is to the
|
|
293
|
-
* provided query.
|
|
294
|
-
*
|
|
295
|
-
* @return {function}
|
|
296
|
-
*/
|
|
297
|
-
getScoreFunction(query: string): (data: {}) => number;
|
|
298
|
-
/**
|
|
299
|
-
* Returns search options for sifter (the system
|
|
300
|
-
* for scoring and sorting results).
|
|
301
|
-
*
|
|
302
|
-
* @see https://github.com/orchidjs/sifter.js
|
|
303
|
-
* @return {object}
|
|
304
|
-
*/
|
|
305
|
-
getSearchOptions(): {
|
|
306
|
-
fields: string[];
|
|
307
|
-
conjunction: string;
|
|
308
|
-
sort: string | import("@orchidjs/sifter/dist/types/types").SortFn | import("@orchidjs/sifter/dist/types/types").Sort[];
|
|
309
|
-
nesting: boolean;
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* Searches through available options and returns
|
|
313
|
-
* a sorted array of matches.
|
|
314
|
-
*
|
|
315
|
-
*/
|
|
316
|
-
search(query: string): ReturnType<Sifter['search']>;
|
|
317
|
-
/**
|
|
318
|
-
* Refreshes the list of available options shown
|
|
319
|
-
* in the autocomplete dropdown menu.
|
|
320
|
-
*
|
|
321
|
-
*/
|
|
322
|
-
refreshOptions(triggerDropdown?: boolean): void;
|
|
323
|
-
/**
|
|
324
|
-
* Return list of selectable options
|
|
325
|
-
*
|
|
326
|
-
*/
|
|
327
|
-
selectable(): NodeList;
|
|
328
|
-
/**
|
|
329
|
-
* Adds an available option. If it already exists,
|
|
330
|
-
* nothing will happen. Note: this does not refresh
|
|
331
|
-
* the options list dropdown (use `refreshOptions`
|
|
332
|
-
* for that).
|
|
333
|
-
*
|
|
334
|
-
* Usage:
|
|
335
|
-
*
|
|
336
|
-
* this.addOption(data)
|
|
337
|
-
*
|
|
338
|
-
*/
|
|
339
|
-
addOption(data: TomOption, user_created?: boolean): false | string;
|
|
340
|
-
/**
|
|
341
|
-
* Add multiple options
|
|
342
|
-
*
|
|
343
|
-
*/
|
|
344
|
-
addOptions(data: TomOption[], user_created?: boolean): void;
|
|
345
|
-
/**
|
|
346
|
-
* @deprecated 1.7.7
|
|
347
|
-
*/
|
|
348
|
-
registerOption(data: TomOption): false | string;
|
|
349
|
-
/**
|
|
350
|
-
* Registers an option group to the pool of option groups.
|
|
351
|
-
*
|
|
352
|
-
* @return {boolean|string}
|
|
353
|
-
*/
|
|
354
|
-
registerOptionGroup(data: TomOption): string | false;
|
|
355
|
-
/**
|
|
356
|
-
* Registers a new optgroup for options
|
|
357
|
-
* to be bucketed into.
|
|
358
|
-
*
|
|
359
|
-
*/
|
|
360
|
-
addOptionGroup(id: string, data: TomOption): void;
|
|
361
|
-
/**
|
|
362
|
-
* Removes an existing option group.
|
|
363
|
-
*
|
|
364
|
-
*/
|
|
365
|
-
removeOptionGroup(id: string): void;
|
|
366
|
-
/**
|
|
367
|
-
* Clears all existing option groups.
|
|
368
|
-
*/
|
|
369
|
-
clearOptionGroups(): void;
|
|
370
|
-
/**
|
|
371
|
-
* Updates an option available for selection. If
|
|
372
|
-
* it is visible in the selected items or options
|
|
373
|
-
* dropdown, it will be re-rendered automatically.
|
|
374
|
-
*
|
|
375
|
-
*/
|
|
376
|
-
updateOption(value: string, data: TomOption): void;
|
|
377
|
-
/**
|
|
378
|
-
* Removes a single option.
|
|
379
|
-
*
|
|
380
|
-
*/
|
|
381
|
-
removeOption(value: string, silent?: boolean): void;
|
|
382
|
-
/**
|
|
383
|
-
* Clears all options.
|
|
384
|
-
*/
|
|
385
|
-
clearOptions(filter?: TomClearFilter): void;
|
|
386
|
-
/**
|
|
387
|
-
* Used by clearOptions() to decide whether or not an option should be removed
|
|
388
|
-
* Return true to keep an option, false to remove
|
|
389
|
-
*
|
|
390
|
-
*/
|
|
391
|
-
clearFilter(option: TomOption, value: string): boolean;
|
|
392
|
-
/**
|
|
393
|
-
* Returns the dom element of the option
|
|
394
|
-
* matching the given value.
|
|
395
|
-
*
|
|
396
|
-
*/
|
|
397
|
-
getOption(value: undefined | null | boolean | string | number, create?: boolean): null | HTMLElement;
|
|
398
|
-
/**
|
|
399
|
-
* Returns the dom element of the next or previous dom element of the same type
|
|
400
|
-
* Note: adjacent options may not be adjacent DOM elements (optgroups)
|
|
401
|
-
*
|
|
402
|
-
*/
|
|
403
|
-
getAdjacent(option: null | HTMLElement, direction: number, type?: string): HTMLElement | null;
|
|
404
|
-
/**
|
|
405
|
-
* Returns the dom element of the item
|
|
406
|
-
* matching the given value.
|
|
407
|
-
*
|
|
408
|
-
*/
|
|
409
|
-
getItem(item: string | TomItem | null): null | TomItem;
|
|
410
|
-
/**
|
|
411
|
-
* "Selects" multiple items at once. Adds them to the list
|
|
412
|
-
* at the current caret position.
|
|
413
|
-
*
|
|
414
|
-
*/
|
|
415
|
-
addItems(values: string | string[], silent?: boolean): void;
|
|
416
|
-
/**
|
|
417
|
-
* "Selects" an item. Adds it to the list
|
|
418
|
-
* at the current caret position.
|
|
419
|
-
*
|
|
420
|
-
*/
|
|
421
|
-
addItem(value: string, silent?: boolean): void;
|
|
422
|
-
/**
|
|
423
|
-
* Removes the selected item matching
|
|
424
|
-
* the provided value.
|
|
425
|
-
*
|
|
426
|
-
*/
|
|
427
|
-
removeItem(item?: string | TomItem | null, silent?: boolean): void;
|
|
428
|
-
/**
|
|
429
|
-
* Invokes the `create` method provided in the
|
|
430
|
-
* TomSelect options that should provide the data
|
|
431
|
-
* for the new item, given the user input.
|
|
432
|
-
*
|
|
433
|
-
* Once this completes, it will be added
|
|
434
|
-
* to the item list.
|
|
435
|
-
*
|
|
436
|
-
*/
|
|
437
|
-
createItem(input?: null | string, callback?: TomCreateCallback): boolean;
|
|
438
|
-
/**
|
|
439
|
-
* Re-renders the selected item lists.
|
|
440
|
-
*/
|
|
441
|
-
refreshItems(): void;
|
|
442
|
-
/**
|
|
443
|
-
* Updates all state-dependent attributes
|
|
444
|
-
* and CSS classes.
|
|
445
|
-
*/
|
|
446
|
-
refreshState(): void;
|
|
447
|
-
/**
|
|
448
|
-
* Update the `required` attribute of both input and control input.
|
|
449
|
-
*
|
|
450
|
-
* The `required` property needs to be activated on the control input
|
|
451
|
-
* for the error to be displayed at the right place. `required` also
|
|
452
|
-
* needs to be temporarily deactivated on the input since the input is
|
|
453
|
-
* hidden and can't show errors.
|
|
454
|
-
*/
|
|
455
|
-
refreshValidityState(): void;
|
|
456
|
-
/**
|
|
457
|
-
* Determines whether or not more items can be added
|
|
458
|
-
* to the control without exceeding the user-defined maximum.
|
|
459
|
-
*
|
|
460
|
-
* @returns {boolean}
|
|
461
|
-
*/
|
|
462
|
-
isFull(): boolean;
|
|
463
|
-
/**
|
|
464
|
-
* Refreshes the original <select> or <input>
|
|
465
|
-
* element to reflect the current state.
|
|
466
|
-
*
|
|
467
|
-
*/
|
|
468
|
-
updateOriginalInput(opts?: TomArgObject): void;
|
|
469
|
-
/**
|
|
470
|
-
* Shows the autocomplete dropdown containing
|
|
471
|
-
* the available options.
|
|
472
|
-
*/
|
|
473
|
-
open(): void;
|
|
474
|
-
/**
|
|
475
|
-
* Closes the autocomplete dropdown menu.
|
|
476
|
-
*/
|
|
477
|
-
close(setTextboxValue?: boolean): void;
|
|
478
|
-
/**
|
|
479
|
-
* Calculates and applies the appropriate
|
|
480
|
-
* position of the dropdown if dropdownParent = 'body'.
|
|
481
|
-
* Otherwise, position is determined by css
|
|
482
|
-
*/
|
|
483
|
-
positionDropdown(): void;
|
|
484
|
-
/**
|
|
485
|
-
* Resets / clears all selected items
|
|
486
|
-
* from the control.
|
|
487
|
-
*
|
|
488
|
-
*/
|
|
489
|
-
clear(silent?: boolean): void;
|
|
490
|
-
/**
|
|
491
|
-
* A helper method for inserting an element
|
|
492
|
-
* at the current caret position.
|
|
493
|
-
*
|
|
494
|
-
*/
|
|
495
|
-
insertAtCaret(el: HTMLElement): void;
|
|
496
|
-
/**
|
|
497
|
-
* Removes the current selected item(s).
|
|
498
|
-
*
|
|
499
|
-
*/
|
|
500
|
-
deleteSelection(e: KeyboardEvent): boolean;
|
|
501
|
-
/**
|
|
502
|
-
* Return true if the items should be deleted
|
|
503
|
-
*/
|
|
504
|
-
shouldDelete(items: TomItem[], evt: MouseEvent | KeyboardEvent): boolean;
|
|
505
|
-
/**
|
|
506
|
-
* Selects the previous / next item (depending on the `direction` argument).
|
|
507
|
-
*
|
|
508
|
-
* > 0 - right
|
|
509
|
-
* < 0 - left
|
|
510
|
-
*
|
|
511
|
-
*/
|
|
512
|
-
advanceSelection(direction: number, e?: MouseEvent | KeyboardEvent): void;
|
|
513
|
-
moveCaret(direction: number): void;
|
|
514
|
-
/**
|
|
515
|
-
* Get the last active item
|
|
516
|
-
*
|
|
517
|
-
*/
|
|
518
|
-
getLastActive(direction?: number): any;
|
|
519
|
-
/**
|
|
520
|
-
* Moves the caret to the specified index.
|
|
521
|
-
*
|
|
522
|
-
* The input must be moved by leaving it in place and moving the
|
|
523
|
-
* siblings, due to the fact that focus cannot be restored once lost
|
|
524
|
-
* on mobile webkit devices
|
|
525
|
-
*
|
|
526
|
-
*/
|
|
527
|
-
setCaret(new_pos: number): void;
|
|
528
|
-
/**
|
|
529
|
-
* Return list of item dom elements
|
|
530
|
-
*
|
|
531
|
-
*/
|
|
532
|
-
controlChildren(): TomItem[];
|
|
533
|
-
/**
|
|
534
|
-
* Disables user input on the control. Used while
|
|
535
|
-
* items are being asynchronously created.
|
|
536
|
-
*/
|
|
537
|
-
lock(): void;
|
|
538
|
-
/**
|
|
539
|
-
* Re-enables user input on the control.
|
|
540
|
-
*/
|
|
541
|
-
unlock(): void;
|
|
542
|
-
/**
|
|
543
|
-
* Disables user input on the control completely.
|
|
544
|
-
* While disabled, it cannot receive focus.
|
|
545
|
-
*/
|
|
546
|
-
disable(): void;
|
|
547
|
-
/**
|
|
548
|
-
* Enables the control so that it can respond
|
|
549
|
-
* to focus and user input.
|
|
550
|
-
*/
|
|
551
|
-
enable(): void;
|
|
552
|
-
/**
|
|
553
|
-
* Completely destroys the control and
|
|
554
|
-
* unbinds all event listeners so that it can
|
|
555
|
-
* be garbage collected.
|
|
556
|
-
*/
|
|
557
|
-
destroy(): void;
|
|
558
|
-
/**
|
|
559
|
-
* A helper method for rendering "item" and
|
|
560
|
-
* "option" templates, given the data.
|
|
561
|
-
*
|
|
562
|
-
*/
|
|
563
|
-
render(templateName: TomTemplateNames, data?: any): null | HTMLElement;
|
|
564
|
-
/**
|
|
565
|
-
* Type guarded rendering
|
|
566
|
-
*
|
|
567
|
-
*/
|
|
568
|
-
_render(templateName: TomTemplateNames, data?: any): HTMLElement;
|
|
569
|
-
/**
|
|
570
|
-
* Clears the render cache for a template. If
|
|
571
|
-
* no template is given, clears all render
|
|
572
|
-
* caches.
|
|
573
|
-
*
|
|
574
|
-
*/
|
|
575
|
-
clearCache(): void;
|
|
576
|
-
/**
|
|
577
|
-
* Removes a value from item and option caches
|
|
578
|
-
*
|
|
579
|
-
*/
|
|
580
|
-
uncacheValue(value: string): void;
|
|
581
|
-
/**
|
|
582
|
-
* Determines whether or not to display the
|
|
583
|
-
* create item prompt, given a user input.
|
|
584
|
-
*
|
|
585
|
-
*/
|
|
586
|
-
canCreate(input: string): boolean;
|
|
587
|
-
/**
|
|
588
|
-
* Wraps this.`method` so that `new_fn` can be invoked 'before', 'after', or 'instead' of the original method
|
|
589
|
-
*
|
|
590
|
-
* this.hook('instead','onKeyDown',function( arg1, arg2 ...){
|
|
591
|
-
*
|
|
592
|
-
* });
|
|
593
|
-
*/
|
|
594
|
-
hook(when: string, method: string, new_fn: any): void;
|
|
595
|
-
}
|
|
596
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import TomSelect from '../tom-select';
|
|
2
|
-
import { escape_html } from '../utils';
|
|
3
|
-
export interface TomInput extends HTMLElement {
|
|
4
|
-
tomselect?: TomSelect;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
required: boolean;
|
|
7
|
-
value: string;
|
|
8
|
-
type: string;
|
|
9
|
-
validity: ValidityState;
|
|
10
|
-
}
|
|
11
|
-
export type TomArgObject = {
|
|
12
|
-
silent?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type TomOption = {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
};
|
|
17
|
-
export type TomOptions = {
|
|
18
|
-
[key: string]: TomOption;
|
|
19
|
-
};
|
|
20
|
-
export type TomCreateFilter = (input: string) => boolean;
|
|
21
|
-
export type TomCreateCallback = (data?: TomOption) => void;
|
|
22
|
-
export type TomCreate = (input: string, create: TomCreateCallback) => boolean;
|
|
23
|
-
export interface TomItem extends HTMLElement {
|
|
24
|
-
dataset: {
|
|
25
|
-
value: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export type TomLoadCallback = TomSelect['loadCallback'];
|
|
29
|
-
export type TomTemplate = (data: TomOption, escape: typeof escape_html) => string | HTMLElement;
|
|
30
|
-
export type TomTemplateNull = (data: TomOption, escape: typeof escape_html) => null | string | HTMLElement;
|
|
31
|
-
export type TomTemplates = {
|
|
32
|
-
'dropdown': TomTemplate;
|
|
33
|
-
'optgroup': TomTemplate;
|
|
34
|
-
'optgroup_header': TomTemplate;
|
|
35
|
-
'option': TomTemplate;
|
|
36
|
-
'item': TomTemplate;
|
|
37
|
-
'option_create': TomTemplate;
|
|
38
|
-
'no_results': TomTemplate;
|
|
39
|
-
'loading': TomTemplate;
|
|
40
|
-
'not_loading': TomTemplateNull;
|
|
41
|
-
'loading_more': TomTemplateNull;
|
|
42
|
-
'no_more_results': TomTemplateNull;
|
|
43
|
-
};
|
|
44
|
-
export type TomTemplateNames = keyof TomTemplates;
|
|
45
|
-
export type TomClearFilter = (option: TomOption, value: string) => boolean;
|
|
46
|
-
export type RecursivePartial<T> = {
|
|
47
|
-
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
48
|
-
};
|