@infineon/infineon-design-system-stencil 29.2.2--canary.1496.81db20b5062bd11fe61e2c6a9d91d86642a87bc7.0 → 29.3.0--canary.1639.52a545f9a651e2536d4f40c373f7eb826907d680.0
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/ifx-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ifx-alert.cjs.entry.js +49 -0
- package/dist/cjs/ifx-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ifx-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-image.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card.cjs.entry.js +1 -1
- package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +8 -3
- package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-content-switcher.cjs.entry.js +1 -1
- package/dist/cjs/ifx-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-footer-column.cjs.entry.js +1 -1
- package/dist/cjs/ifx-footer.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
- package/dist/cjs/ifx-link.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-notification.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list.cjs.entry.js +1 -1
- package/dist/cjs/ifx-modal.cjs.entry.js +1 -1
- package/dist/cjs/{ifx-multiselect.cjs.entry.js → ifx-multiselect_2.cjs.entry.js} +70 -2
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-navbar-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js +1 -1
- package/dist/cjs/ifx-navbar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-notification.cjs.entry.js +1 -1
- package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +1 -1
- package/dist/cjs/ifx-select.cjs.entry.js +59 -4
- package/dist/cjs/ifx-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-set-filter.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-slider.cjs.entry.js +1 -1
- package/dist/cjs/ifx-spinner.cjs.entry.js +35 -0
- package/dist/cjs/ifx-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-status.cjs.entry.js +1 -1
- package/dist/cjs/ifx-step.cjs.entry.js +1 -1
- package/dist/cjs/ifx-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
- package/dist/cjs/ifx-textarea.cjs.entry.js +3 -3
- package/dist/cjs/ifx-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/{index-155a65a3.js → index-f6c58643.js} +19 -30
- package/dist/cjs/index-f6c58643.js.map +1 -0
- package/dist/cjs/infineon-design-system-stencil.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/pagination/pagination.js +7 -2
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/select/single-select/select.css +3 -0
- package/dist/collection/components/select/single-select/select.js +76 -3
- package/dist/collection/components/select/single-select/select.js.map +1 -1
- package/dist/collection/components/text-field/text-field.js +4 -4
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
- package/dist/components/ifx-alert.js +68 -1
- package/dist/components/ifx-alert.js.map +1 -1
- package/dist/components/ifx-faq.js +1 -1
- package/dist/components/ifx-pagination.js +1 -1
- package/dist/components/ifx-select.js +1 -1
- package/dist/components/ifx-set-filter.js +2 -2
- package/dist/components/ifx-spinner.js +46 -1
- package/dist/components/ifx-spinner.js.map +1 -1
- package/dist/components/ifx-table.js +2 -2
- package/dist/components/ifx-text-field.js +1 -1
- package/dist/components/ifx-textarea.js +2 -2
- package/dist/components/ifx-tooltip.js +4 -4
- package/dist/components/{p-2e5420cd.js → p-81357e99.js} +9 -4
- package/dist/components/p-81357e99.js.map +1 -0
- package/dist/components/{p-e62107e4.js → p-b9024e1a.js} +62 -5
- package/dist/components/p-b9024e1a.js.map +1 -0
- package/dist/components/{p-b537c83a.js → p-d5a199fb.js} +5 -5
- package/dist/components/{p-b537c83a.js.map → p-d5a199fb.js.map} +1 -1
- package/dist/esm/ifx-accordion_2.entry.js +1 -1
- package/dist/{components/p-81263927.js → esm/ifx-alert.entry.js} +8 -35
- package/dist/esm/ifx-alert.entry.js.map +1 -0
- package/dist/esm/ifx-badge.entry.js +1 -1
- package/dist/esm/ifx-basic-table.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb.entry.js +1 -1
- package/dist/esm/ifx-button.entry.js +1 -1
- package/dist/esm/ifx-card-headline.entry.js +1 -1
- package/dist/esm/ifx-card-image.entry.js +1 -1
- package/dist/esm/ifx-card-links.entry.js +1 -1
- package/dist/esm/ifx-card-overline.entry.js +1 -1
- package/dist/esm/ifx-card-text.entry.js +1 -1
- package/dist/esm/ifx-card.entry.js +1 -1
- package/dist/esm/ifx-checkbox.entry.js +1 -1
- package/dist/esm/ifx-chip_3.entry.js +8 -3
- package/dist/esm/ifx-chip_3.entry.js.map +1 -1
- package/dist/esm/ifx-content-switcher-item.entry.js +1 -1
- package/dist/esm/ifx-content-switcher.entry.js +1 -1
- package/dist/esm/ifx-date-picker.entry.js +1 -1
- package/dist/esm/ifx-dropdown-header.entry.js +1 -1
- package/dist/esm/ifx-dropdown-item.entry.js +1 -1
- package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
- package/dist/esm/ifx-dropdown-separator.entry.js +1 -1
- package/dist/esm/ifx-dropdown-trigger-button.entry.js +1 -1
- package/dist/esm/ifx-dropdown-trigger.entry.js +1 -1
- package/dist/esm/ifx-dropdown.entry.js +1 -1
- package/dist/esm/ifx-faq.entry.js +2 -2
- package/dist/esm/ifx-filter-accordion.entry.js +1 -1
- package/dist/esm/ifx-filter-bar.entry.js +1 -1
- package/dist/esm/ifx-filter-search.entry.js +1 -1
- package/dist/esm/ifx-filter-type-group.entry.js +1 -1
- package/dist/esm/ifx-footer-column.entry.js +1 -1
- package/dist/esm/ifx-footer.entry.js +1 -1
- package/dist/esm/ifx-icon-button.entry.js +1 -1
- package/dist/esm/ifx-icon.entry.js +1 -1
- package/dist/esm/ifx-icons-preview.entry.js +1 -1
- package/dist/esm/ifx-link.entry.js +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-list-group.entry.js +1 -1
- package/dist/esm/ifx-list-item.entry.js +1 -1
- package/dist/esm/ifx-list-notification.entry.js +1 -1
- package/dist/esm/ifx-list.entry.js +1 -1
- package/dist/esm/ifx-modal.entry.js +1 -1
- package/dist/esm/{ifx-multiselect.entry.js → ifx-multiselect_2.entry.js} +70 -3
- package/dist/esm/ifx-multiselect_2.entry.js.map +1 -0
- package/dist/esm/ifx-navbar-item.entry.js +1 -1
- package/dist/esm/ifx-navbar-profile.entry.js +1 -1
- package/dist/esm/ifx-navbar.entry.js +1 -1
- package/dist/esm/ifx-notification.entry.js +1 -1
- package/dist/esm/ifx-number-indicator.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js +1 -1
- package/dist/esm/ifx-progress-bar.entry.js +1 -1
- package/dist/esm/ifx-radio-button.entry.js +1 -1
- package/dist/esm/ifx-search-bar.entry.js +1 -1
- package/dist/esm/ifx-search-field.entry.js +1 -1
- package/dist/esm/ifx-segment.entry.js +1 -1
- package/dist/esm/ifx-segmented-control.entry.js +1 -1
- package/dist/esm/ifx-select.entry.js +59 -4
- package/dist/esm/ifx-select.entry.js.map +1 -1
- package/dist/esm/ifx-set-filter.entry.js +1 -1
- package/dist/esm/ifx-sidebar-item.entry.js +1 -1
- package/dist/esm/ifx-sidebar-title.entry.js +1 -1
- package/dist/esm/ifx-sidebar.entry.js +1 -1
- package/dist/esm/ifx-slider.entry.js +1 -1
- package/dist/{components/p-53704c65.js → esm/ifx-spinner.entry.js} +9 -28
- package/dist/esm/ifx-spinner.entry.js.map +1 -0
- package/dist/esm/ifx-status.entry.js +1 -1
- package/dist/esm/ifx-step.entry.js +1 -1
- package/dist/esm/ifx-stepper.entry.js +1 -1
- package/dist/esm/ifx-switch.entry.js +1 -1
- package/dist/esm/ifx-tab.entry.js +1 -1
- package/dist/esm/ifx-table.entry.js +1 -1
- package/dist/esm/ifx-tabs.entry.js +1 -1
- package/dist/esm/ifx-tag.entry.js +1 -1
- package/dist/esm/ifx-textarea.entry.js +3 -3
- package/dist/esm/ifx-tooltip.entry.js +5 -5
- package/dist/esm/{index-d021b985.js → index-fc6a5751.js} +20 -30
- package/dist/esm/index-fc6a5751.js.map +1 -0
- package/dist/esm/infineon-design-system-stencil.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/{p-716f6675.entry.js → p-02be14a9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4082111f.entry.js → p-0b5ad497.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4126ee6a.entry.js → p-0c570fa2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-0ddf85fc.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-0ddf85fc.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-ca00d3c8.entry.js → p-1175d112.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d517ea6c.entry.js → p-16348b9d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e76c8cce.entry.js → p-16f9a47c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b1543f1d.entry.js → p-1b9317bd.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-070a401c.entry.js → p-1d9e400c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e2c6464a.entry.js → p-1f329979.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f037e2e1.entry.js → p-208b28b1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-25bf54c9.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-3a64f78a.entry.js → p-2ae0a0d0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4626a7a5.entry.js → p-2d17e5b2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-7973be1c.entry.js → p-2e8c0115.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8bd1eb2e.entry.js → p-2fbad873.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3b597917.entry.js → p-30640970.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c9211767.entry.js → p-31889cb2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5269c5f6.entry.js → p-31e9d4f8.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f98cae21.entry.js → p-336778c3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-005cee40.entry.js → p-37654645.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1e32dc46.entry.js → p-37ecac74.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-23fc1ac6.entry.js → p-39697853.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8299d886.entry.js → p-3be58aa2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-22c3e2a6.entry.js → p-4111bbdc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-95c56362.entry.js → p-41b0849d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9256384e.entry.js → p-4349aa3a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1f0a54f5.entry.js → p-47476fcb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-492a9ab7.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-4b7b93c4.entry.js → p-49872432.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-4aab4af4.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-4aab4af4.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-a4205f38.entry.js → p-4af08129.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2deacdfc.entry.js → p-50e122c4.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-67efe96d.entry.js → p-5992e272.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ec5fcb90.entry.js → p-5cc523fb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3e313cf5.entry.js → p-5edfe317.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9e68df13.entry.js → p-666e0ea0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9c641115.entry.js → p-6ad287cf.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d70843bb.entry.js → p-6e61295f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-23061813.entry.js → p-7378190d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-75436967.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-75436967.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-80d79ac2.entry.js → p-79b4d359.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-80bb0959.js +3 -0
- package/dist/infineon-design-system-stencil/{p-7aa4082c.js.map → p-80bb0959.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-a7b721e4.entry.js → p-8b089cd1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d4432905.entry.js → p-8c9887e3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6ff541a9.entry.js → p-951cf503.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b10e3175.entry.js → p-985c7bdc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f2ba1590.entry.js → p-9c50bc3e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-577e735a.entry.js → p-a10f9b3c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8ccea8df.entry.js → p-a29b6247.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-55e8c571.entry.js → p-a3c03169.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-27a85cb6.entry.js → p-b010bfcb.entry.js} +3 -3
- package/dist/infineon-design-system-stencil/p-b010bfcb.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-83a3c6d9.entry.js → p-b30b66e5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-10f2f4d2.entry.js → p-b3fb648f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8822c055.entry.js → p-b8f31dc3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a825eb1f.entry.js → p-bc40ad21.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5a134c12.entry.js → p-c22f8c81.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-15c2d91e.entry.js → p-c2e6cbdb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-21f9efe3.entry.js → p-c61a9185.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-cc49128c.entry.js → p-c9aca4b7.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3f71f020.entry.js → p-cb0ddc9b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6c3947ee.entry.js → p-cdad5d2c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d0afd036.entry.js → p-ce9e5451.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0b2330b1.entry.js → p-d31a6167.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-95c0da4c.entry.js → p-d323e4ed.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a2c65b72.entry.js → p-db4a364b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a2c65b72.entry.js.map → p-db4a364b.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-f93d0e29.entry.js → p-dba5e033.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8c0caf65.entry.js → p-e6427f2e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-da42f326.entry.js → p-e8cde48d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2cde10eb.entry.js → p-ea74d7ab.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-bbc7a00e.entry.js → p-ee68427e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d7b5242d.entry.js → p-f121e197.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-85b95a9b.entry.js → p-f3383274.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0c6417aa.entry.js → p-fcf71895.entry.js} +2 -2
- package/dist/types/components/select/single-select/select.d.ts +7 -0
- package/dist/types/components.d.ts +1 -49
- package/package.json +1 -1
- package/dist/cjs/ifx-alert_2.cjs.entry.js +0 -201
- package/dist/cjs/ifx-alert_2.cjs.entry.js.map +0 -1
- package/dist/cjs/ifx-multiselect.cjs.entry.js.map +0 -1
- package/dist/cjs/ifx-spinner_2.cjs.entry.js +0 -103
- package/dist/cjs/ifx-spinner_2.cjs.entry.js.map +0 -1
- package/dist/cjs/ifx-templates-ui.cjs.entry.js +0 -61
- package/dist/cjs/ifx-templates-ui.cjs.entry.js.map +0 -1
- package/dist/cjs/index-155a65a3.js.map +0 -1
- package/dist/collection/components/templates/template/template.css +0 -76
- package/dist/collection/components/templates/template/template.js +0 -263
- package/dist/collection/components/templates/template/template.js.map +0 -1
- package/dist/collection/components/templates/templates-ui/templates-ui.css +0 -33
- package/dist/collection/components/templates/templates-ui/templates-ui.js +0 -75
- package/dist/collection/components/templates/templates-ui/templates-ui.js.map +0 -1
- package/dist/components/ifx-template.d.ts +0 -11
- package/dist/components/ifx-template.js +0 -8
- package/dist/components/ifx-template.js.map +0 -1
- package/dist/components/ifx-templates-ui.d.ts +0 -11
- package/dist/components/ifx-templates-ui.js +0 -123
- package/dist/components/ifx-templates-ui.js.map +0 -1
- package/dist/components/p-2e5420cd.js.map +0 -1
- package/dist/components/p-53704c65.js.map +0 -1
- package/dist/components/p-80d6c6e4.js +0 -211
- package/dist/components/p-80d6c6e4.js.map +0 -1
- package/dist/components/p-81263927.js.map +0 -1
- package/dist/components/p-e62107e4.js.map +0 -1
- package/dist/esm/ifx-alert_2.entry.js +0 -196
- package/dist/esm/ifx-alert_2.entry.js.map +0 -1
- package/dist/esm/ifx-multiselect.entry.js.map +0 -1
- package/dist/esm/ifx-spinner_2.entry.js +0 -98
- package/dist/esm/ifx-spinner_2.entry.js.map +0 -1
- package/dist/esm/ifx-templates-ui.entry.js +0 -57
- package/dist/esm/ifx-templates-ui.entry.js.map +0 -1
- package/dist/esm/index-d021b985.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-1a9b19fa.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-1a9b19fa.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-21ab54a8.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-21ab54a8.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-27a85cb6.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-3419fe00.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-7aa4082c.js +0 -3
- package/dist/infineon-design-system-stencil/p-a76a2ec0.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-a76a2ec0.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-e3ce1662.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-e3ce1662.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ff8f6ddc.entry.js +0 -2
- package/dist/types/components/templates/template/template.d.ts +0 -33
- package/dist/types/components/templates/templates-ui/templates-ui.d.ts +0 -10
- /package/dist/infineon-design-system-stencil/{p-716f6675.entry.js.map → p-02be14a9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4082111f.entry.js.map → p-0b5ad497.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4126ee6a.entry.js.map → p-0c570fa2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ca00d3c8.entry.js.map → p-1175d112.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d517ea6c.entry.js.map → p-16348b9d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e76c8cce.entry.js.map → p-16f9a47c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b1543f1d.entry.js.map → p-1b9317bd.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-070a401c.entry.js.map → p-1d9e400c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e2c6464a.entry.js.map → p-1f329979.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f037e2e1.entry.js.map → p-208b28b1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3419fe00.entry.js.map → p-25bf54c9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3a64f78a.entry.js.map → p-2ae0a0d0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4626a7a5.entry.js.map → p-2d17e5b2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7973be1c.entry.js.map → p-2e8c0115.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8bd1eb2e.entry.js.map → p-2fbad873.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3b597917.entry.js.map → p-30640970.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c9211767.entry.js.map → p-31889cb2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5269c5f6.entry.js.map → p-31e9d4f8.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f98cae21.entry.js.map → p-336778c3.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-005cee40.entry.js.map → p-37654645.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1e32dc46.entry.js.map → p-37ecac74.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-23fc1ac6.entry.js.map → p-39697853.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8299d886.entry.js.map → p-3be58aa2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-22c3e2a6.entry.js.map → p-4111bbdc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-95c56362.entry.js.map → p-41b0849d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9256384e.entry.js.map → p-4349aa3a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1f0a54f5.entry.js.map → p-47476fcb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ff8f6ddc.entry.js.map → p-492a9ab7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4b7b93c4.entry.js.map → p-49872432.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a4205f38.entry.js.map → p-4af08129.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2deacdfc.entry.js.map → p-50e122c4.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-67efe96d.entry.js.map → p-5992e272.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ec5fcb90.entry.js.map → p-5cc523fb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3e313cf5.entry.js.map → p-5edfe317.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9e68df13.entry.js.map → p-666e0ea0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9c641115.entry.js.map → p-6ad287cf.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d70843bb.entry.js.map → p-6e61295f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-23061813.entry.js.map → p-7378190d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-80d79ac2.entry.js.map → p-79b4d359.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a7b721e4.entry.js.map → p-8b089cd1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d4432905.entry.js.map → p-8c9887e3.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6ff541a9.entry.js.map → p-951cf503.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b10e3175.entry.js.map → p-985c7bdc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f2ba1590.entry.js.map → p-9c50bc3e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-577e735a.entry.js.map → p-a10f9b3c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8ccea8df.entry.js.map → p-a29b6247.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-55e8c571.entry.js.map → p-a3c03169.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-83a3c6d9.entry.js.map → p-b30b66e5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-10f2f4d2.entry.js.map → p-b3fb648f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8822c055.entry.js.map → p-b8f31dc3.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a825eb1f.entry.js.map → p-bc40ad21.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5a134c12.entry.js.map → p-c22f8c81.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-15c2d91e.entry.js.map → p-c2e6cbdb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-21f9efe3.entry.js.map → p-c61a9185.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cc49128c.entry.js.map → p-c9aca4b7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3f71f020.entry.js.map → p-cb0ddc9b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6c3947ee.entry.js.map → p-cdad5d2c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d0afd036.entry.js.map → p-ce9e5451.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0b2330b1.entry.js.map → p-d31a6167.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-95c0da4c.entry.js.map → p-d323e4ed.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f93d0e29.entry.js.map → p-dba5e033.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8c0caf65.entry.js.map → p-e6427f2e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-da42f326.entry.js.map → p-e8cde48d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2cde10eb.entry.js.map → p-ea74d7ab.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-bbc7a00e.entry.js.map → p-ee68427e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d7b5242d.entry.js.map → p-f121e197.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-85b95a9b.entry.js.map → p-f3383274.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0c6417aa.entry.js.map → p-fcf71895.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h } from './p-4c09147f.js';
|
2
2
|
import { d as defineCustomElement$3 } from './p-a2411b44.js';
|
3
3
|
import { d as defineCustomElement$2 } from './p-6a771687.js';
|
4
|
-
import { d as defineCustomElement$1 } from './p-
|
4
|
+
import { d as defineCustomElement$1 } from './p-b9024e1a.js';
|
5
5
|
|
6
6
|
const paginationCss = "@charset \"UTF-8\";:root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}:host{display:inline-flex}.container{display:inline-flex;justify-content:center;align-items:center;gap:32px;font-family:var(--ifx-font-family)}.container .items__per-page-wrapper{display:flex;align-items:center;gap:16px}.container .items__per-page-wrapper .items__per-page-label{color:#1D1D1D;font-size:14px;font-style:normal;font-weight:600;line-height:20px}.container .items__per-page-wrapper .items__per-page-field{display:flex;flex-direction:column;align-items:flex-start}.container .items__per-page-wrapper .items__per-page-field ifx-select{width:92px}.container .items__total-wrapper{display:flex;justify-content:center;align-items:center;gap:12px}.container .items__total-wrapper .items__total-button{display:flex;width:40px;height:40px;justify-content:center;align-items:center;border-radius:100px;border:1px solid #BFBBBB;background:#FFF}.container .items__total-wrapper .page__numbers-wrapper{display:flex;justify-content:center;align-items:center;gap:12px}.container .items__total-wrapper .page__numbers-wrapper .page__number-item{display:flex;padding:6px;flex-direction:column;justify-content:center;align-items:center;gap:10px;border-radius:100px}.container .items__total-wrapper .page__numbers-wrapper .page__number-item.active{background-color:#0A8276}.container .items__total-wrapper .page__numbers-wrapper .page__number-item.active span{color:#fff}.container .items__total-wrapper .page__numbers-wrapper .page__number-item:hover{cursor:pointer}.container .items__total-wrapper .page__numbers-wrapper .page__number-item:hover:not(.active){background-color:#ddd}.container .items__total-wrapper .page__numbers-wrapper .page__number-item:active:not(.active){background-color:#575352}.container .items__total-wrapper .page__numbers-wrapper .page__number-item span{display:flex;width:16px;height:16px;flex-direction:column;justify-content:center;color:#1D1D1D;text-align:center;font-size:13px;font-style:normal;font-weight:400;line-height:20px}.pagination{display:flex}.pagination ifx-icon-button:first-of-type{margin-right:12px}.pagination ifx-icon-button:last-of-type{margin-left:12px}a{padding:8px;border-radius:100px}ol{list-style-type:none;padding:0;margin:0;display:inline-flex;align-items:center;gap:12px}li{display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:100px}li:hover:not(.active) a{background-color:#EEEDED}li:active:not(.active) a{background-color:#575352;color:#fff}li.active{background-color:#0A8276}li.active a{color:#fff}li:hover{cursor:pointer}li a{text-decoration:none;display:flex;width:16px;height:16px;flex-direction:column;justify-content:center;color:#1D1D1D;text-align:center;font-size:13px;font-style:normal;font-weight:400;line-height:20px;align-items:center}.prev.disabled,.next.disabled{cursor:default}.prev.disabled:hover,.next.disabled:hover{cursor:default;text-decoration:none}.prev{margin-right:2.5px}.next{margin-left:2.5px}@media (min-width: 400px){li:first-child,li.active-sibling,li.active,li.active+li,li:last-child{display:inline-flex !important;flex-direction:row}li:first-child:nth-last-child(n+8)~li{display:none}li:first-child:nth-last-child(n+8)~li.active-sibling:before{content:\"…\";font-size:13px;display:inline-block;margin-right:6px}li:first-child:nth-last-child(n+8)~li.active+li:after{content:\"…\";font-size:13px;display:inline-block;margin-left:6px}li:first-child:nth-last-child(n+8)~li:nth-last-child(-n+5){display:inline-flex;flex-direction:row}li:first-child:nth-last-child(n+8)~li:nth-last-child(5):before{content:\"…\";font-size:13px;display:inline-block;margin-right:6px}li:first-child:nth-last-child(n+8)~li:nth-child(-n+2):before,li:first-child:nth-last-child(n+8)~li:nth-child(-n+2):after,li:first-child:nth-last-child(n+8)~li:nth-last-child(-n+2):before,li:first-child:nth-last-child(n+8)~li:nth-last-child(-n+2):after,li:first-child:nth-last-child(n+8)~li.active-sibling:nth-last-child(-n+4):before,li:first-child:nth-last-child(n+8)~li.active-sibling:nth-last-child(-n+4):after{display:none !important}li:first-child:nth-last-child(n+8).active~li:nth-last-child(-n+5),li:first-child:nth-last-child(n+8)~li.active~li:nth-last-child(-n+5){display:none}li:first-child:nth-last-child(n+8).active~li:nth-last-child(-n+5):before,li:first-child:nth-last-child(n+8)~li.active~li:nth-last-child(-n+5):before{display:none}li:first-child:nth-last-child(n+8).active~li:nth-child(-n+5),li:first-child:nth-last-child(n+8)~li.active~li:nth-child(-n+5){display:inline-flex !important;flex-direction:row}li:first-child:nth-last-child(n+8).active~li:nth-child(-n+4):after,li:first-child:nth-last-child(n+8)~li.active~li:nth-child(-n+4):after{display:none}li:first-child:nth-last-child(n+8).active~li:nth-child(5):after,li:first-child:nth-last-child(n+8)~li.active~li:nth-child(5):after{content:\"…\";font-size:13px;display:inline-block;margin-left:6px}li:first-child:nth-last-child(n+8).active:before,li:first-child:nth-last-child(n+8).active:after,li:first-child:nth-last-child(n+8)~li.active:before,li:first-child:nth-last-child(n+8)~li.active:after{display:none}}";
|
7
7
|
const IfxPaginationStyle0 = paginationCss;
|
@@ -25,7 +25,12 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends H {
|
|
25
25
|
this.total = 1;
|
26
26
|
}
|
27
27
|
setItemsPerPage(e) {
|
28
|
-
|
28
|
+
if (e.detail) {
|
29
|
+
this.itemsPerPage = parseInt(e.detail.label);
|
30
|
+
}
|
31
|
+
else {
|
32
|
+
this.itemsPerPage = 10;
|
33
|
+
}
|
29
34
|
}
|
30
35
|
componentDidLoad() {
|
31
36
|
this.calculateVisiblePageIndices();
|
@@ -145,7 +150,7 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends H {
|
|
145
150
|
this.initPagination(paginationElement);
|
146
151
|
}
|
147
152
|
render() {
|
148
|
-
return (h("div", { key: '
|
153
|
+
return (h("div", { key: 'fa57bfbd14b7ccfb8dbd5ef450c7db53a98bce50', "aria-label": 'a pagination', "aria-value": this.currentPage, class: "container" }, h("div", { key: 'f4eff578aa7189bbb52c0ac161faadd6a9ca2774', class: 'items__per-page-wrapper' }, h("div", { key: 'c199973fbd9d3518d21634fda3bc695bda392a24', class: 'items__per-page-label' }, "Results per Page"), h("div", { key: '3f8318383647cf41d67b5b1a0fd9c387dffe0e50', class: 'items__per-page-field' }, h("ifx-select", { key: '1cc33baebbb0d8930c8314ee5f39dbc393984d53', value: 'undefined', size: 's', placeholder: 'false', "show-search": 'false', "search-placeholder-value": 'Search...', disabled: false, error: false, "error-message": 'Error', label: '', "placeholder-value": 'Placeholder', options: '[{"value":"ten","label":"10","selected":true}, {"value":"Twenty","label":"20","selected":false}, {"value":"Thirty","label":"30","selected":false}]' }))), h("div", { key: '992b8b3219a3017fafc44d7d66be2d5997758945', class: 'items__total-wrapper' }, h("div", { key: 'ec4061b565a4dcd5fbe20fa655315328305bee4e', class: 'page__numbers-wrapper' }, h("div", { key: '67dfe394137b0edb704afe8367ed87697bbb52ee', class: "pagination" }, h("ifx-icon-button", { key: 'd6207f9becee00b57bda596fc7117bf4f757c10f', variant: 'secondary', class: "prev", color: 'primary', icon: 'arrow-left-24' }), h("ol", { key: 'c5a7300ffb926ab41a77a0e673cde2b85c8e196c' }, this.numberOfPages.map((item) => h("li", { class: `${this.internalPage === item ? 'active' : ""}` }, h("a", { href: undefined }, item)))), h("ifx-icon-button", { key: 'f2f96994c6cbd1b7c401eb9d81228d4b5dc7cfde', class: "next", variant: 'secondary', color: 'primary', icon: 'arrow-right-24' }))))));
|
149
154
|
}
|
150
155
|
get el() { return this; }
|
151
156
|
static get style() { return IfxPaginationStyle0; }
|
@@ -187,4 +192,4 @@ function defineCustomElement() {
|
|
187
192
|
|
188
193
|
export { Pagination as P, defineCustomElement as d };
|
189
194
|
|
190
|
-
//# sourceMappingURL=p-
|
195
|
+
//# sourceMappingURL=p-81357e99.js.map
|
@@ -0,0 +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AC,GAAG,CAAC,CAAC,IAAI,KAC3B,UAAI,KAAK,EAAE,GAAG,IAAI,CAAC,YAAY,KAAK,IAAI,GAAG,QAAQ,GAAG,EAAE,EAAE,IAAE,SAAG,IAAI,EAAE,SAAS,IAAG,IAAI,CAAK,CAAK,CAAC,CAC/F,EACL,wEAAiB,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,gBAAgB,GAAmB,CACtG,CACF,CACF,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pagination/pagination.scss?tag=ifx-pagination&encapsulation=shadow","src/components/pagination/pagination.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n@use \"../../global/font.scss\";\n\n:host {\n display: inline-flex;\n}\n\n.container {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: 32px;\n font-family: var(--ifx-font-family);\n\n\n & .items__per-page-wrapper {\n display: flex;\n align-items: center;\n gap: 16px;\n\n & .items__per-page-label {\n color: #1D1D1D;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px;\n }\n\n & .items__per-page-field {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n & ifx-select {\n width: 92px;\n }\n }\n }\n\n & .items__total-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 12px;\n\n & .items__total-button {\n display: flex;\n width: 40px;\n height: 40px;\n justify-content: center;\n align-items: center;\n border-radius: 100px;\n border: 1px solid #BFBBBB;\n background: #FFF;\n }\n\n & .page__numbers-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 12px;\n\n & .page__number-item {\n display: flex;\n padding: 6px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 100px;\n\n &.active {\n background-color: #0A8276;\n\n & span {\n color: #fff;\n }\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &:hover:not(.active) {\n background-color: #ddd;\n\n }\n\n &:active:not(.active) {\n background-color: #575352;\n }\n\n & span {\n display: flex;\n width: 16px;\n height: 16px;\n flex-direction: column;\n justify-content: center;\n color: #1D1D1D;\n text-align: center;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n }\n }\n }\n }\n}\n\n\n.pagination {\n display: flex;\n\n & ifx-icon-button:first-of-type {\n margin-right: 12px;\n }\n\n & ifx-icon-button:last-of-type {\n margin-left: 12px;\n }\n}\n\na {\n padding: 8px;\n border-radius: 100px;\n}\n\nol {\n list-style-type: none;\n padding: 0;\n margin: 0;\n display: inline-flex;\n align-items: center;\n gap: 12px;\n}\n\nli {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border-radius: 100px;\n\n &:hover:not(.active) {\n & a {\n background-color: #EEEDED;\n }\n }\n\n &:active:not(.active) {\n & a {\n background-color: #575352;\n color: #fff;\n }\n }\n\n &.active {\n background-color: #0A8276;\n\n & a {\n color: #fff;\n }\n }\n\n &:hover {\n cursor: pointer;\n }\n\n & a {\n text-decoration: none;\n display: flex;\n width: 16px;\n height: 16px;\n flex-direction: column;\n justify-content: center;\n color: #1D1D1D;\n text-align: center;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n align-items: center;\n }\n}\n\n.prev,\n.next {\n &.disabled {\n cursor: default;\n\n &:hover {\n cursor: default;\n text-decoration: none;\n }\n }\n}\n\n.prev {\n margin-right: 2.5px;\n}\n\n.next {\n margin-left: 2.5px;\n}\n\n\n@mixin ellipsis($before: true) {\n content: \"\\2026\";\n font-size: 13px;\n display: inline-block;\n\n @if($before) {\n margin-right: 6px;\n }\n\n @else {\n margin-left: 6px;\n }\n}\n\n\n// @media(max-width:460px) {\n// li {\n\n// &:first-child,\n// &.active,\n// &.active-sibling:nth-last-child(2), // Show second to last child if the last one is active\n// &:last-child {\n// //display: inline-block !important;\n// display: inline-flex !important;\n// flex-direction: row;\n// }\n\n// $how-many-on-ends: 3; // 1,2,3,...,10 || 1,...,8,9,10\n// // There are >= 5 pages\n// &:first-child:nth-last-child(n+6) {\n\n// &~li {\n// // Start out with all siblings hidden\n// display: none;\n\n// // Show the last children in the list by default\n// &:nth-last-child(-n+#{$how-many-on-ends}) {\n// //display: inline-block;\n// display: inline-flex;\n// flex-direction: row;\n\n// }\n\n// // The child at the beginning of the last group shows ellipsis for the group\n// &:nth-last-child(#{$how-many-on-ends}) {\n// &:before {\n// @include ellipsis(true);\n// }\n// }\n\n// // The very beginning elements do not need to show ellipsis\n// // The very end elements do not need to show ellipsis\n// }\n\n\n// &.active,\n// &~li.active {\n\n// // Show ellipsis before and after the active element\n// &:before {\n// @include ellipsis(true);\n// }\n// &:after {\n// @include ellipsis(false);\n// }\n\n\n// // If the active element is in the first or last group, don't show ellipsis (siblings will take care of it)\n// &:nth-child(-n+#{$how-many-on-ends - 1}),\n// &:nth-last-child(-n+#{$how-many-on-ends - 1}) {\n// &:before, &:after {\n// display: none;\n// }\n// }\n\n// // Hide the last group if \"active\" comes before them\n// &~li:nth-last-child(-n+#{$how-many-on-ends}) {\n// display: none;\n// }\n\n// // Show the first group together if \"active\" comes before them\n// &~li:nth-child(-n+#{$how-many-on-ends}) {\n// //display: inline-block;\n// display: inline-flex;\n// flex-direction: row;\n// }\n\n// // If \"active\" is before the last member in the group, don't show ellipsis\n// &~li:nth-child(-n+#{$how-many-on-ends - 1}) {\n// &:after {\n// display: none;\n// }\n// }\n\n\n// // The child at the end of the first group shows ellipsis for the group\n// &~li:nth-child(#{$how-many-on-ends}) {\n// &:after {\n// @include ellipsis(false);\n// }\n// }\n// }\n// }\n// }\n// }\n\n@media (min-width: 400px) {\n li {\n\n &:first-child,\n &.active-sibling,\n &.active,\n &.active+li,\n &:last-child {\n //display: inline-block!important;\n display: inline-flex !important;\n flex-direction: row;\n }\n\n // There are >= 7 pages\n &:first-child:nth-last-child(n+8) {\n $how-many-on-ends: 5; // 1,2,3,4,5,...,10 || 1,...6,7,8,9,10\n\n &~li {\n // Start out with all siblings hidden\n display: none;\n\n // Show ellipsis before the previous one\n &.active-sibling:before {\n @include ellipsis(true);\n }\n\n // Show ellipsis after the next one\n &.active+li:after {\n @include ellipsis(false);\n }\n\n // Show the last children in the list by default\n &:nth-last-child(-n+#{$how-many-on-ends}) {\n //display: inline-block;\n display: inline-flex;\n flex-direction: row;\n }\n\n // The child at the beginning of the last group shows ellipsis for the group\n &:nth-last-child(#{$how-many-on-ends}) {\n &:before {\n @include ellipsis(true);\n }\n }\n\n // The very beginning elements do not need to show ellipsis\n &:nth-child(-n+#{$how-many-on-ends - 3}),\n // The very end elements do not need to show ellipsis\n &:nth-last-child(-n+#{$how-many-on-ends - 3}),\n // Even if it's a sibling to \"active\"\n &.active-sibling:nth-last-child(-n+#{$how-many-on-ends - 1}) {\n\n &:before,\n &:after {\n display: none !important;\n }\n }\n }\n\n &.active,\n &~li.active {\n\n // Hide the last group if \"active\" comes before them\n &~li:nth-last-child(-n+#{$how-many-on-ends}) {\n display: none;\n\n // If there is overlap, the element will show, but hide it's ellipsis\n &:before {\n display: none;\n }\n }\n\n // Show the first group together if \"active\" comes before them\n &~li:nth-child(-n+#{$how-many-on-ends}) {\n //display: inline-block;\n display: inline-flex !important;\n flex-direction: row;\n }\n\n // If \"active\" is before the last member in the group, don't show ellipsis\n &~li:nth-child(-n+#{$how-many-on-ends - 1}) {\n &:after {\n display: none;\n }\n }\n\n\n // The child at the end of the first group shows ellipsis for the group\n &~li:nth-child(#{$how-many-on-ends}) {\n &:after {\n @include ellipsis(false);\n }\n }\n\n // \"active\" should never show ellipsis\n &:before,\n &:after {\n display: none;\n }\n }\n }\n }\n}","import { Component, h, Element, Event, EventEmitter, Prop, State, Listen } from '@stencil/core';\n \n\n@Component({\n tag: 'ifx-pagination',\n styleUrl: 'pagination.scss',\n shadow: true\n})\nexport class Pagination {\n @Element() el;\n @Event() ifxPageChange: EventEmitter;\n @Event() ifxNextPage: EventEmitter;\n @Event() ifxPrevPage: EventEmitter;\n @Prop() currentPage: number = 0;\n @State() internalPage: number = 1;\n @State() itemsPerPage: number = 10;\n @State() numberOfPages: number[] = [];\n @Prop() total: number = 1;\n\n private CLASS_DISABLED = \"disabled\"\n private CLASS_ACTIVE = \"active\"\n private CLASS_SIBLING_ACTIVE = \"active-sibling\"\n private DATA_KEY = \"pagination\";\n\n @Listen('ifxSelect')\n setItemsPerPage(e) {\n if(e.detail) {\n this.itemsPerPage = parseInt(e.detail.label)\n } else { \n this.itemsPerPage = 10;\n }\n }\n\n componentDidLoad() {\n this.calculateVisiblePageIndices()\n var paginationElement = this.el.shadowRoot.querySelector(\".pagination\");\n let leftArrow = paginationElement.querySelector('.prev')\n this.navigateSinglePage(leftArrow, true)\n\n }\n\n calculateNumberOfPages() {\n if (isNaN(this.currentPage)) {\n this.currentPage = 1;\n }\n const total = this.total <= this.itemsPerPage ? this.itemsPerPage : this.total;\n const itemsPerPage = this.itemsPerPage;\n const totalPageNumber = Math.ceil(total / itemsPerPage);\n\n if (this.currentPage <= 0) {\n this.internalPage = 1;\n } else if (this.currentPage > totalPageNumber) {\n this.internalPage = totalPageNumber;\n } else this.internalPage = this.currentPage;\n\n this.numberOfPages = Array.from({ length: totalPageNumber }, (_, index) => index + 1);\n }\n\n componentWillLoad() {\n this.calculateNumberOfPages()\n }\n\n componentDidUpdate() {\n var paginationElement = this.el.shadowRoot.querySelector(\".pagination\");\n var listItems = paginationElement.querySelectorAll(\"li\");\n this.addEventListenersToPageItems(listItems, paginationElement)\n\n if (paginationElement.dataset[this.DATA_KEY] < this.numberOfPages) {\n paginationElement.dataset[this.DATA_KEY] = paginationElement.dataset[this.DATA_KEY];\n } else paginationElement.dataset[this.DATA_KEY] = 0;\n\n this.changePage(paginationElement, false)\n }\n\n componentWillUpdate() {\n this.calculateNumberOfPages()\n }\n\n handleEventEmission(currActive) {\n let currentPage = currActive + 1;\n let totalPages = this.numberOfPages.length;\n let prevPage = currActive === 0 ? null : currActive;\n let nextPage = currActive + 2 > totalPages ? null : currActive + 2;\n let itemsPerPage = this.itemsPerPage\n this.ifxPageChange.emit({ currentPage, totalPages, prevPage, nextPage, itemsPerPage })\n }\n\n addEventListenersToPageItems(listItems, paginationContainer) {\n listItems.forEach((item) => {\n item.addEventListener(\"click\", (e) => {\n var parent = paginationContainer;\n let listItems = parent.querySelectorAll(\"li\");\n parent.dataset[this.DATA_KEY] = Array.from(listItems).indexOf(e.currentTarget)\n this.changePage(parent, false)\n });\n });\n }\n\n initPagination(paginationContainer) {\n var listItems = paginationContainer.querySelectorAll(\"li\");\n\n paginationContainer.dataset[this.DATA_KEY] = Array.from(listItems).indexOf(paginationContainer.querySelector(\".active\"));\n\n paginationContainer.querySelector(\".prev\").addEventListener(\"click\", (e) => this.navigateSinglePage(e, false));\n paginationContainer.querySelector(\".next\").addEventListener(\"click\", (e) => this.navigateSinglePage(e, false));\n\n this.addEventListenersToPageItems(listItems, paginationContainer)\n }\n\n navigateSinglePage(e, initialValue) {\n let el = e;\n if (typeof e.target === 'object') {\n el = e.target\n }\n\n if (!el.classList.contains(this.CLASS_DISABLED)) {\n var parent = el.closest(\".pagination\");\n var currActive = parseInt(parent.dataset[this.DATA_KEY], 10);\n currActive += 1 * (el.classList.contains(\"prev\") ? -1 : 1);\n\n if (currActive === -1) {\n currActive = 0;\n }\n\n parent.dataset[this.DATA_KEY] = currActive;\n this.changePage(parent, initialValue)\n }\n }\n\n changePage(pagination, initialValue) {\n const paginationContainer = pagination;\n var listItems = paginationContainer.querySelectorAll(\"li\");\n var currActive = parseInt(paginationContainer.dataset[this.DATA_KEY], 10);\n\n listItems.forEach((item) => {\n item.classList.remove(this.CLASS_ACTIVE);\n item.classList.remove(this.CLASS_SIBLING_ACTIVE);\n });\n\n if (initialValue && this.internalPage > 1) {\n currActive = Math.floor(this.internalPage - 1);\n paginationContainer.dataset[this.DATA_KEY] = currActive;\n }\n\n this.handleEventEmission(currActive)\n\n listItems[currActive].classList.add(this.CLASS_ACTIVE);\n\n if (currActive === 0) {\n paginationContainer.querySelector(\".prev\").classList.add(this.CLASS_DISABLED);\n paginationContainer.querySelector(\".prev\").disabled = true;\n\n } else {\n listItems[currActive - 1].classList.add(this.CLASS_SIBLING_ACTIVE);\n paginationContainer.querySelector(\".prev\").classList.remove(this.CLASS_DISABLED);\n paginationContainer.querySelector(\".prev\").disabled = false;\n }\n\n if (currActive === (listItems.length - 1)) {\n paginationContainer.querySelector(\".next\").classList.add(this.CLASS_DISABLED);\n paginationContainer.querySelector(\".next\").disabled = true;\n\n } else {\n paginationContainer.querySelector(\".next\").classList.remove(this.CLASS_DISABLED);\n paginationContainer.querySelector(\".next\").disabled = false;\n }\n }\n\n calculateVisiblePageIndices() {\n var paginationElement = this.el.shadowRoot.querySelector(\".pagination\");\n this.initPagination(paginationElement)\n }\n\n render() {\n return (\n <div aria-label='a pagination' aria-value={this.currentPage} class=\"container\">\n <div class='items__per-page-wrapper'>\n <div class='items__per-page-label'>Results per Page</div>\n <div class='items__per-page-field'>\n <ifx-select\n value='undefined'\n size='s'\n placeholder='false'\n show-search='false'\n search-placeholder-value='Search...'\n disabled={false}\n error={false}\n error-message='Error'\n label=''\n placeholder-value='Placeholder'\n options='[{\"value\":\"ten\",\"label\":\"10\",\"selected\":true}, {\"value\":\"Twenty\",\"label\":\"20\",\"selected\":false}, {\"value\":\"Thirty\",\"label\":\"30\",\"selected\":false}]' >\n </ifx-select>\n </div>\n </div>\n <div class='items__total-wrapper'>\n <div class='page__numbers-wrapper'>\n <div class=\"pagination\">\n <ifx-icon-button variant='secondary' class=\"prev\" color='primary' icon='arrow-left-24'></ifx-icon-button>\n <ol>\n {this.numberOfPages.map((item) =>\n <li class={`${this.internalPage === item ? 'active' : \"\"}`}><a href={undefined}>{item}</a></li>)}\n </ol>\n <ifx-icon-button class=\"next\" variant='secondary' color='primary' icon='arrow-right-24'></ifx-icon-button>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}"],"version":3}
|
@@ -6831,7 +6831,7 @@ function isJSONParseable(str) {
|
|
6831
6831
|
}
|
6832
6832
|
}
|
6833
6833
|
|
6834
|
-
const selectCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}.ifx-select-container{box-sizing:border-box;font-family:var(--ifx-font-family);}.ifx-select-container.small-select{height:36px}.ifx-select-container.medium-select{height:40px}.ifx-select-container:hover{cursor:pointer}.ifx-select-container .ifx-label-wrapper{font-size:1rem;line-height:1.5rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-width:100%;overflow:hidden}.ifx-select-container .ifx-error-message-wrapper{color:#CD002F;font-size:0.75rem;line-height:1rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-width:100%;overflow:hidden}.ifx-select-container .ifx-choices__wrapper{background-color:#FFFFFF;box-sizing:border-box;position:relative;display:flex;align-items:center;border:1px solid #8D8786;border-radius:1px;font-weight:400;font-style:normal}.ifx-select-container .ifx-choices__wrapper.small-select{height:36px;line-height:20px;padding:8px 12px;font-size:0.875rem;line-height:1.25rem}.ifx-select-container .ifx-choices__wrapper.medium-select{height:40px;line-height:24px;padding:8px 16px;font-size:1rem;line-height:1.5rem}.ifx-select-container .ifx-choices__wrapper.disabled{background:#EEEDED;color:#575352;border-color:#575352;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ifx-select-container .ifx-choices__wrapper.disabled .ifx-choices__icon-wrapper-down:hover{cursor:default}.ifx-select-container .ifx-choices__wrapper.error{border-color:#CD002F}.ifx-select-container .ifx-choices__wrapper:hover:not(.focus,:focus){border-color:#575352}.ifx-select-container .ifx-choices__wrapper.active{border-color:#0A8276 !important}.ifx-select-container .ifx-choices__wrapper.active .ifx-choices__icon-wrapper-up{display:flex;align-items:center;justify-content:center;padding-left:8px}.ifx-select-container .ifx-choices__wrapper.active .ifx-choices__icon-wrapper-down{display:none}.ifx-select-container .ifx-choices__wrapper:focus-visible:not(.active):not(:active){outline:none}.ifx-select-container .ifx-choices__wrapper:focus-visible:not(.active):not(:active)::before{content:\"\";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%);border:2px solid #0A8276;border-radius:2px}.ifx-select-container .ifx-choices__wrapper:focus:not(.active,:active):not(.disabled)::before{content:\"\";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%)}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-up{display:none}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-up:hover{cursor:pointer}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-down{display:flex;align-items:center;justify-content:center;padding-left:8px}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-down:hover{cursor:pointer}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-delete{display:flex;align-items:center;justify-content:center}.ifx-select-container .choices{width:100%}.ifx-select-container .choices:focus{outline:none}.choices .ifx-select-container.is-focused{outline:none}.ifx-select-container .choices:last-child{margin-bottom:0}.ifx-select-container .choices.is-disabled .choices__inner,.ifx-select-container .choices.is-disabled .choices__input{cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ifx-select-container .choices.is-disabled .choices__item{cursor:default;color:#575352}.ifx-select-container .choices [hidden]{display:none !important}.ifx-select-container .choices[data-type*=select-one]{cursor:pointer}.ifx-select-container .choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:8px 16px;border-bottom:1px solid #8D8786;background-color:#ffffff;margin:0;font-style:normal;font-weight:400}.ifx-select-container .choices[data-type*=select-one] .choices__input.small-select{font-size:0.875rem;line-height:1.25rem}.ifx-select-container .choices[data-type*=select-one] .choices__input.medium-select{font-size:1rem;line-height:1.5rem}.ifx-select-container .choices[data-type*=select-one] .choices__single-button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:0.5}.ifx-select-container .choices[data-type*=select-one] .choices__single-button:hover,.ifx-select-container .choices[data-type*=select-one] .choices__single-button:focus{opacity:1}.ifx-select-container .choices[data-type*=select-one] .choices__single-button:focus{box-shadow:0px 0px 0px 2px #0A8276}.ifx-select-container .choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__single-button{display:none}.ifx-select-container .choices[data-type*=select-one].is-open:after{margin-top:-7.5px}.ifx-select-container .choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.ifx-select-container .choices[data-type*=select-one][dir=rtl] .choices__single-button{right:auto;left:0;margin-left:25px;margin-right:0}.ifx-select-container .choices[data-type*=select-multiple]{cursor:pointer}.ifx-select-container .choices[data-type*=select-multiple] .choices__input{display:block;width:100%;margin:0}.ifx-select-container .choices[data-type*=select-multiple] .choices__inner,.ifx-select-container .choices[data-type*=text] .choices__inner{cursor:text}.ifx-select-container .choices[data-type*=select-multiple] .choices__button,.ifx-select-container .choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin-top:0;margin-right:-4px;margin-bottom:0;margin-left:8px;padding-left:16px;border-left:1px solid #0A8276;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:0.75;border-radius:0}.ifx-select-container .choices[data-type*=select-multiple] .choices__button:hover,.ifx-select-container .choices[data-type*=select-multiple] .choices__button:focus,.ifx-select-container .choices[data-type*=text] .choices__button:hover,.ifx-select-container .choices[data-type*=text] .choices__button:focus{opacity:1}.ifx-select-container .choices__inner{overflow:hidden}.ifx-select-container .is-focused .choices__inner,.ifx-select-container .is-open .choices__inner{border-color:#b7b7b7}.ifx-select-container .is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.ifx-select-container .is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.ifx-select-container .choices__list{margin:0;padding-left:0;list-style:none}.ifx-select-container .choices__list--single .choices__item{width:100%;display:flex;justify-content:space-between}.ifx-select-container .disabled>.choices__list--single .choices__item[data-value=\"\"]{color:#8D8786;}.ifx-select-container .choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:0.75rem;line-height:1rem;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#0A8276;border:1px solid #0A8276;color:#FFFFFF;word-break:break-all;box-sizing:border-box}.ifx-select-container .choices__list--multiple .choices__item[data-deletable]{padding-right:5px}.ifx-select-container [dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.ifx-select-container .choices__list--multiple .choices__item.is-highlighted{background-color:#EEEDED;border:1px solid #0A8276}.ifx-select-container .choices__list--dropdown{visibility:hidden;box-sizing:border-box;position:absolute;width:100%;background-color:#fff;top:100%;margin-top:-1px;overflow:hidden;word-break:break-all;will-change:visibility;box-shadow:0px 0px 16px rgba(29, 29, 29, 0.12);border-radius:1px;margin-top:8px;z-index:1000;left:0}.ifx-select-container .choices__list--dropdown.is-active{visibility:visible}.ifx-select-container .is-open .choices__list--dropdown{border-color:#b7b7b7}.ifx-select-container .is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:0.25rem 0.25rem 0 0}.ifx-select-container .choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.ifx-select-container .choices__list--dropdown .choices__item{position:relative;padding:8px 16px;gap:8px;align-items:center;display:flex;justify-content:space-between;font-style:normal;font-weight:400}.ifx-select-container .choices__list--dropdown .choices__item.small-select{font-size:0.875rem;line-height:1.25rem}.ifx-select-container .choices__list--dropdown .choices__item.medium-select{font-size:1rem;line-height:1.5rem}.ifx-select-container .choices__list--dropdown .choices__item.selected{color:#0A8276}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item{text-align:right}@media (min-width: 640px){.ifx-select-container .choices__list--dropdown .choices__item--selectable:after{font-size:0.75rem;line-height:1rem;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#EEEDED}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted.selected{color:#0A8276}.ifx-select-container .choices__list--dropdown .choices__item--selectable:hover{background-color:#EEEDED}.ifx-select-container .choices__list--dropdown .choices__item--selectable:hover.selected{color:#0A8276}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:0.5}.ifx-select-container .choices__item{cursor:default}.ifx-select-container .choices__item--selectable{cursor:pointer}.ifx-select-container .choices__item--disabled{cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}.ifx-select-container .choices__heading{font-weight:600;font-size:0.75rem;line-height:1rem;padding:10px;border-bottom:1px solid #f7f7f7;color:#1D1D1D}.ifx-select-container .choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.ifx-select-container .choices__button:focus{outline:none}.ifx-select-container .choices__single-button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer;visibility:hidden}.ifx-select-container .choices__single-button:focus{outline:none}.ifx-select-container .choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:0.875rem;line-height:1.25rem;margin-bottom:5px;border:0;border-radius:0;max-width:100%}.ifx-select-container .choices__input--cloned{background-color:transparent}.ifx-select-container .choices__input::-ms-clear{display:none;width:0;height:0}.ifx-select-container .choices__input::-ms-reveal{display:none;width:0;height:0}.ifx-select-container .choices__input::-webkit-search-decoration,.ifx-select-container .choices__input::-webkit-search-cancel-button,.ifx-select-container .choices__input::-webkit-search-results-button,.ifx-select-container .choices__input::-webkit-search-results-decoration{display:none}.ifx-select-container .choices__input:focus{outline:0}.ifx-select-container [dir=rtl] .choices__input{padding-right:2px;padding-left:0}.ifx-select-container .choices__placeholder{opacity:0.5}";
|
6834
|
+
const selectCss = ":root{--ifx-font-family:\"Source Sans 3\";font-family:var(--ifx-font-family, sans-serif)}.ifx-select-container{box-sizing:border-box;font-family:var(--ifx-font-family);}.ifx-select-container.small-select{height:36px}.ifx-select-container.medium-select{height:40px}.ifx-select-container:hover{cursor:pointer}.ifx-select-container .ifx-label-wrapper{font-size:1rem;line-height:1.5rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-width:100%;overflow:hidden}.ifx-select-container .ifx-error-message-wrapper{color:#CD002F;font-size:0.75rem;line-height:1rem;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-width:100%;overflow:hidden}.ifx-select-container .ifx-choices__wrapper{background-color:#FFFFFF;box-sizing:border-box;position:relative;display:flex;align-items:center;border:1px solid #8D8786;border-radius:1px;font-weight:400;font-style:normal}.ifx-select-container .ifx-choices__wrapper.small-select{height:36px;line-height:20px;padding:8px 12px;font-size:0.875rem;line-height:1.25rem}.ifx-select-container .ifx-choices__wrapper.medium-select{height:40px;line-height:24px;padding:8px 16px;font-size:1rem;line-height:1.5rem}.ifx-select-container .ifx-choices__wrapper.disabled{background:#EEEDED;color:#575352;border-color:#575352;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ifx-select-container .ifx-choices__wrapper.disabled .ifx-choices__icon-wrapper-down:hover{cursor:default}.ifx-select-container .ifx-choices__wrapper.error{border-color:#CD002F}.ifx-select-container .ifx-choices__wrapper:hover:not(.focus,:focus){border-color:#575352}.ifx-select-container .ifx-choices__wrapper.active{border-color:#0A8276 !important}.ifx-select-container .ifx-choices__wrapper.active .ifx-choices__icon-wrapper-up{display:flex;align-items:center;justify-content:center;padding-left:8px}.ifx-select-container .ifx-choices__wrapper.active .ifx-choices__icon-wrapper-down{display:none}.ifx-select-container .ifx-choices__wrapper:focus-visible:not(.active):not(:active){outline:none}.ifx-select-container .ifx-choices__wrapper:focus-visible:not(.active):not(:active)::before{content:\"\";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%);border:2px solid #0A8276;border-radius:2px}.ifx-select-container .ifx-choices__wrapper:focus:not(.active,:active):not(.disabled)::before{content:\"\";position:absolute;width:calc(100% + 4px);height:calc(100% + 4px);top:50%;left:50%;transform:translate(-50%, -50%)}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-up{display:none}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-up:hover{cursor:pointer}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-down{display:flex;align-items:center;justify-content:center;padding-left:8px}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-down:hover{cursor:pointer}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-delete{display:flex;align-items:center;justify-content:center}.ifx-select-container .ifx-choices__wrapper .ifx-choices__icon-wrapper-delete.hide{display:none}.ifx-select-container .choices{width:100%}.ifx-select-container .choices:focus{outline:none}.choices .ifx-select-container.is-focused{outline:none}.ifx-select-container .choices:last-child{margin-bottom:0}.ifx-select-container .choices.is-disabled .choices__inner,.ifx-select-container .choices.is-disabled .choices__input{cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ifx-select-container .choices.is-disabled .choices__item{cursor:default;color:#575352}.ifx-select-container .choices [hidden]{display:none !important}.ifx-select-container .choices[data-type*=select-one]{cursor:pointer}.ifx-select-container .choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:8px 16px;border-bottom:1px solid #8D8786;background-color:#ffffff;margin:0;font-style:normal;font-weight:400}.ifx-select-container .choices[data-type*=select-one] .choices__input.small-select{font-size:0.875rem;line-height:1.25rem}.ifx-select-container .choices[data-type*=select-one] .choices__input.medium-select{font-size:1rem;line-height:1.5rem}.ifx-select-container .choices[data-type*=select-one] .choices__single-button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:0.5}.ifx-select-container .choices[data-type*=select-one] .choices__single-button:hover,.ifx-select-container .choices[data-type*=select-one] .choices__single-button:focus{opacity:1}.ifx-select-container .choices[data-type*=select-one] .choices__single-button:focus{box-shadow:0px 0px 0px 2px #0A8276}.ifx-select-container .choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__single-button{display:none}.ifx-select-container .choices[data-type*=select-one].is-open:after{margin-top:-7.5px}.ifx-select-container .choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.ifx-select-container .choices[data-type*=select-one][dir=rtl] .choices__single-button{right:auto;left:0;margin-left:25px;margin-right:0}.ifx-select-container .choices[data-type*=select-multiple]{cursor:pointer}.ifx-select-container .choices[data-type*=select-multiple] .choices__input{display:block;width:100%;margin:0}.ifx-select-container .choices[data-type*=select-multiple] .choices__inner,.ifx-select-container .choices[data-type*=text] .choices__inner{cursor:text}.ifx-select-container .choices[data-type*=select-multiple] .choices__button,.ifx-select-container .choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin-top:0;margin-right:-4px;margin-bottom:0;margin-left:8px;padding-left:16px;border-left:1px solid #0A8276;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:0.75;border-radius:0}.ifx-select-container .choices[data-type*=select-multiple] .choices__button:hover,.ifx-select-container .choices[data-type*=select-multiple] .choices__button:focus,.ifx-select-container .choices[data-type*=text] .choices__button:hover,.ifx-select-container .choices[data-type*=text] .choices__button:focus{opacity:1}.ifx-select-container .choices__inner{overflow:hidden}.ifx-select-container .is-focused .choices__inner,.ifx-select-container .is-open .choices__inner{border-color:#b7b7b7}.ifx-select-container .is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.ifx-select-container .is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.ifx-select-container .choices__list{margin:0;padding-left:0;list-style:none}.ifx-select-container .choices__list--single .choices__item{width:100%;display:flex;justify-content:space-between}.ifx-select-container .disabled>.choices__list--single .choices__item[data-value=\"\"]{color:#8D8786;}.ifx-select-container .choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:0.75rem;line-height:1rem;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#0A8276;border:1px solid #0A8276;color:#FFFFFF;word-break:break-all;box-sizing:border-box}.ifx-select-container .choices__list--multiple .choices__item[data-deletable]{padding-right:5px}.ifx-select-container [dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.ifx-select-container .choices__list--multiple .choices__item.is-highlighted{background-color:#EEEDED;border:1px solid #0A8276}.ifx-select-container .choices__list--dropdown{visibility:hidden;box-sizing:border-box;position:absolute;width:100%;background-color:#fff;top:100%;margin-top:-1px;overflow:hidden;word-break:break-all;will-change:visibility;box-shadow:0px 0px 16px rgba(29, 29, 29, 0.12);border-radius:1px;margin-top:8px;z-index:1000;left:0}.ifx-select-container .choices__list--dropdown.is-active{visibility:visible}.ifx-select-container .is-open .choices__list--dropdown{border-color:#b7b7b7}.ifx-select-container .is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:0.25rem 0.25rem 0 0}.ifx-select-container .choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.ifx-select-container .choices__list--dropdown .choices__item{position:relative;padding:8px 16px;gap:8px;align-items:center;display:flex;justify-content:space-between;font-style:normal;font-weight:400}.ifx-select-container .choices__list--dropdown .choices__item.small-select{font-size:0.875rem;line-height:1.25rem}.ifx-select-container .choices__list--dropdown .choices__item.medium-select{font-size:1rem;line-height:1.5rem}.ifx-select-container .choices__list--dropdown .choices__item.selected{color:#0A8276}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item{text-align:right}@media (min-width: 640px){.ifx-select-container .choices__list--dropdown .choices__item--selectable:after{font-size:0.75rem;line-height:1rem;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}.ifx-select-container [dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#EEEDED}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted.selected{color:#0A8276}.ifx-select-container .choices__list--dropdown .choices__item--selectable:hover{background-color:#EEEDED}.ifx-select-container .choices__list--dropdown .choices__item--selectable:hover.selected{color:#0A8276}.ifx-select-container .choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:0.5}.ifx-select-container .choices__item{cursor:default}.ifx-select-container .choices__item--selectable{cursor:pointer}.ifx-select-container .choices__item--disabled{cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}.ifx-select-container .choices__heading{font-weight:600;font-size:0.75rem;line-height:1rem;padding:10px;border-bottom:1px solid #f7f7f7;color:#1D1D1D}.ifx-select-container .choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.ifx-select-container .choices__button:focus{outline:none}.ifx-select-container .choices__single-button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer;visibility:hidden}.ifx-select-container .choices__single-button:focus{outline:none}.ifx-select-container .choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:0.875rem;line-height:1.25rem;margin-bottom:5px;border:0;border-radius:0;max-width:100%}.ifx-select-container .choices__input--cloned{background-color:transparent}.ifx-select-container .choices__input::-ms-clear{display:none;width:0;height:0}.ifx-select-container .choices__input::-ms-reveal{display:none;width:0;height:0}.ifx-select-container .choices__input::-webkit-search-decoration,.ifx-select-container .choices__input::-webkit-search-cancel-button,.ifx-select-container .choices__input::-webkit-search-results-button,.ifx-select-container .choices__input::-webkit-search-results-decoration{display:none}.ifx-select-container .choices__input:focus{outline:0}.ifx-select-container [dir=rtl] .choices__input{padding-right:2px;padding-left:0}.ifx-select-container .choices__placeholder{opacity:0.5}";
|
6835
6835
|
const IfxSelectStyle0 = selectCss;
|
6836
6836
|
|
6837
6837
|
const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
@@ -6890,6 +6890,7 @@ const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
|
6890
6890
|
this.options = undefined;
|
6891
6891
|
this.size = 'medium (40px)';
|
6892
6892
|
this.selectedOption = null;
|
6893
|
+
this.optionIsSelected = false;
|
6893
6894
|
}
|
6894
6895
|
watchDisabled(newValue) {
|
6895
6896
|
if (newValue) {
|
@@ -6905,6 +6906,7 @@ const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
|
6905
6906
|
this.setPreSelected(null);
|
6906
6907
|
this.closeDropdown();
|
6907
6908
|
this.ifxSelect.emit(null);
|
6909
|
+
this.optionIsSelected = false;
|
6908
6910
|
}
|
6909
6911
|
async handleChange() {
|
6910
6912
|
this.ifxSelect.emit(this.choice.getValue());
|
@@ -7001,15 +7003,68 @@ const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
|
7001
7003
|
this.choice.ajax(fn);
|
7002
7004
|
return this;
|
7003
7005
|
}
|
7006
|
+
async handleDeleteIcon() {
|
7007
|
+
const width = this.root.offsetWidth;
|
7008
|
+
const deleteIconWrapper = this.root.querySelector('.ifx-choices__icon-wrapper-delete');
|
7009
|
+
if (deleteIconWrapper) {
|
7010
|
+
if (width <= 180) {
|
7011
|
+
deleteIconWrapper.classList.add('hide');
|
7012
|
+
}
|
7013
|
+
else {
|
7014
|
+
deleteIconWrapper.classList.remove('hide');
|
7015
|
+
}
|
7016
|
+
}
|
7017
|
+
}
|
7018
|
+
handleCloseButton() {
|
7019
|
+
if (typeof this.options === 'string') {
|
7020
|
+
const optionsToArray = JSON.parse(this.options);
|
7021
|
+
const optionIsSelected = optionsToArray.find(option => option.selected === true);
|
7022
|
+
if (optionIsSelected) {
|
7023
|
+
this.optionIsSelected = true;
|
7024
|
+
}
|
7025
|
+
else {
|
7026
|
+
this.optionIsSelected = false;
|
7027
|
+
}
|
7028
|
+
}
|
7029
|
+
else if (this.options && Array.isArray(this.options)) {
|
7030
|
+
const optionIsSelected = this.options.find(option => option.selected === true);
|
7031
|
+
if (optionIsSelected) {
|
7032
|
+
this.optionIsSelected = true;
|
7033
|
+
}
|
7034
|
+
else {
|
7035
|
+
this.optionIsSelected = false;
|
7036
|
+
}
|
7037
|
+
}
|
7038
|
+
}
|
7039
|
+
componentWillLoad() {
|
7040
|
+
this.handleCloseButton();
|
7041
|
+
}
|
7042
|
+
componentWillUpdate() {
|
7043
|
+
this.handleCloseButton();
|
7044
|
+
}
|
7045
|
+
addResizeObserver() {
|
7046
|
+
this.resizeObserver = new ResizeObserver(() => {
|
7047
|
+
this.handleDeleteIcon();
|
7048
|
+
});
|
7049
|
+
const componentWrapper = this.root.querySelector('.ifx-choices__wrapper');
|
7050
|
+
this.resizeObserver.observe(componentWrapper);
|
7051
|
+
}
|
7004
7052
|
componentDidLoad() {
|
7005
7053
|
this.init();
|
7006
7054
|
this.addEventListenersToHandleCustomFocusAndActiveState();
|
7055
|
+
this.handleDeleteIcon();
|
7056
|
+
this.addResizeObserver();
|
7007
7057
|
}
|
7008
7058
|
componentDidUpdate() {
|
7009
7059
|
this.init();
|
7060
|
+
this.handleDeleteIcon();
|
7010
7061
|
}
|
7011
7062
|
disconnectedCallback() {
|
7012
7063
|
this.destroy();
|
7064
|
+
if (this.resizeObserver) {
|
7065
|
+
this.resizeObserver.disconnect();
|
7066
|
+
this.resizeObserver = null;
|
7067
|
+
}
|
7013
7068
|
}
|
7014
7069
|
render() {
|
7015
7070
|
const attributes = {
|
@@ -7021,9 +7076,9 @@ const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
|
7021
7076
|
// destroy choices element to restore previous dom structure
|
7022
7077
|
// so vdom can replace the element correctly
|
7023
7078
|
this.destroy();
|
7024
|
-
return (h("div", { key: '
|
7079
|
+
return (h("div", { key: 'c41ec36261a1133b438648bc6a564107267c5b1a', class: `ifx-select-container` }, this.label ? (h("div", { class: "ifx-label-wrapper" }, h("span", null, this.label))) : null, h("div", { key: 'dae048e7ad4c6a40bf5c900fb5c2c2e01ea58a4e', class: `${choicesWrapperClass}
|
7025
7080
|
${this.disabled ? 'disabled' : ''}
|
7026
|
-
${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: '
|
7081
|
+
${this.error ? 'error' : ''}`, onClick: this.disabled ? undefined : () => this.toggleDropdown(), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: 'c2ae87cc9b9a9401b9a414acaf9cabd02a8c1a3a', disabled: this.disabled }, attributes, { "data-trigger": true, onChange: () => this.handleChange() }), this.createSelectOptions(this.options)), this.optionIsSelected && (h("div", { key: '19ef95cd95e990f2d8707428e5b5138db7a97a93', class: "ifx-choices__icon-wrapper-delete" }, h("ifx-icon", { key: '4457e333e2c96f26a48eb32978f8146be973c94d', icon: "cremove16", onClick: () => this.handleDeleteSelection() }))), h("div", { key: '0c30abd8c4446d05e05b1d4aa33c264b0b810a6f', class: "ifx-choices__icon-wrapper-up" }, h("ifx-icon", { key: "icon-up", icon: "chevronup-16" })), h("div", { key: '16472c10d36e48a4545d91d5a3431bb8bedeefb7', class: "ifx-choices__icon-wrapper-down" }, h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" }))), this.error ? (h("div", { class: "ifx-error-message-wrapper" }, h("span", null, this.errorMessage))) : null));
|
7027
7082
|
}
|
7028
7083
|
toggleDropdown() {
|
7029
7084
|
const div = this.root.querySelector('.ifx-choices__wrapper');
|
@@ -7304,6 +7359,7 @@ const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
|
7304
7359
|
"options": [1025],
|
7305
7360
|
"size": [1],
|
7306
7361
|
"selectedOption": [32],
|
7362
|
+
"optionIsSelected": [32],
|
7307
7363
|
"handleChange": [64],
|
7308
7364
|
"highlightItem": [64],
|
7309
7365
|
"unhighlightItem": [64],
|
@@ -7321,7 +7377,8 @@ const Choices = /*@__PURE__*/ proxyCustomElement(class Choices extends H {
|
|
7321
7377
|
"clearChoices": [64],
|
7322
7378
|
"clearStore": [64],
|
7323
7379
|
"clearInput": [64],
|
7324
|
-
"ajax": [64]
|
7380
|
+
"ajax": [64],
|
7381
|
+
"handleDeleteIcon": [64]
|
7325
7382
|
}, [[5, "mousedown", "handleOutsideClick"]], {
|
7326
7383
|
"disabled": ["watchDisabled"]
|
7327
7384
|
}]);
|
@@ -7346,4 +7403,4 @@ function defineCustomElement() {
|
|
7346
7403
|
|
7347
7404
|
export { Choices as C, defineCustomElement as d };
|
7348
7405
|
|
7349
|
-
//# sourceMappingURL=p-
|
7406
|
+
//# sourceMappingURL=p-b9024e1a.js.map
|