@siemens/ix 0.0.0-pr-2155-20250929074944 → 0.0.0-pr-2166-20251001083917
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/components/index.js +1 -1
- package/components/index.js.map +1 -1
- package/components/ix-action-card.js +1 -1
- package/components/ix-application-header.js +1 -1
- package/components/ix-application-switch-modal.js +4 -4
- package/components/ix-application.js +1 -1
- package/components/ix-avatar.js +1 -1
- package/components/ix-basic-navigation.js +6 -6
- package/components/ix-blind.js +1 -1
- package/components/ix-breadcrumb-item.js +1 -1
- package/components/ix-breadcrumb.js +9 -9
- package/components/ix-breadcrumb.js.map +1 -1
- package/components/ix-card-list.js +8 -8
- package/components/ix-card-list.js.map +1 -1
- package/components/ix-category-filter.js +14 -23
- package/components/ix-category-filter.js.map +1 -1
- package/components/ix-checkbox-group.js +4 -4
- package/components/ix-checkbox.js +1 -1
- package/components/ix-chip.js +12 -13
- package/components/ix-chip.js.map +1 -1
- package/components/ix-content-header.js +2 -2
- package/components/ix-custom-field.js +4 -4
- package/components/ix-date-dropdown.js +18 -18
- package/components/ix-date-dropdown.js.map +1 -1
- package/components/ix-date-input.js +10 -10
- package/components/ix-date-input.js.map +1 -1
- package/components/ix-date-picker.js +1 -1
- package/components/ix-date-time-card.js +1 -1
- package/components/ix-datetime-picker.js +12 -33
- package/components/ix-datetime-picker.js.map +1 -1
- package/components/ix-drawer.js +7 -6
- package/components/ix-drawer.js.map +1 -1
- package/components/ix-dropdown-button.js +2 -2
- package/components/ix-dropdown-header.js +1 -1
- package/components/ix-dropdown.js +1 -1
- package/components/ix-empty-state.js +1 -1
- package/components/ix-event-list.js +4 -4
- package/components/ix-event-list.js.map +1 -1
- package/components/ix-expanding-search.js +1 -1
- package/components/ix-field-label.js +1 -1
- package/components/ix-field-wrapper.js +1 -1
- package/components/ix-filter-chip.js +1 -1
- package/components/ix-flip-tile.js +1 -1
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group-item.js +1 -1
- package/components/ix-group.js +23 -23
- package/components/ix-group.js.map +1 -1
- package/components/ix-helper-text.js +2 -2
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +1 -1
- package/components/ix-input.js +9 -9
- package/components/ix-key-value-list.js +1 -1
- package/components/ix-key-value.js +1 -1
- package/components/ix-kpi.js +3 -3
- package/components/ix-layout-auto.js +1 -1
- package/components/ix-layout-grid.js +1 -1
- package/components/ix-link-button.js +3 -3
- package/components/ix-map-navigation-overlay.js +1 -1
- package/components/ix-map-navigation.js +9 -8
- package/components/ix-map-navigation.js.map +1 -1
- package/components/ix-menu-about-item.js +1 -1
- package/components/ix-menu-about-news.js +8 -8
- package/components/ix-menu-about-news.js.map +1 -1
- package/components/ix-menu-about.js +2 -2
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +12 -12
- package/components/ix-menu-avatar.js.map +1 -1
- package/components/ix-menu-category.js +9 -9
- package/components/ix-menu-expand-icon.js +1 -1
- package/components/ix-menu-item.js +1 -1
- package/components/ix-menu-settings-item.js +1 -1
- package/components/ix-menu-settings.js +1 -1
- package/components/ix-menu.js +29 -29
- package/components/ix-menu.js.map +1 -1
- package/components/ix-message-bar.js +6 -8
- package/components/ix-message-bar.js.map +1 -1
- package/components/ix-modal-content.js +1 -1
- package/components/ix-modal-footer.js +1 -1
- package/components/ix-modal-header.js +1 -1
- package/components/ix-modal-loading.js +1 -1
- package/components/ix-modal.js +16 -16
- package/components/ix-modal.js.map +1 -1
- package/components/ix-number-input.js +11 -11
- package/components/ix-pagination.js +20 -21
- package/components/ix-pagination.js.map +1 -1
- package/components/ix-pane-layout.js +1 -1
- package/components/ix-pane.js +3 -3
- package/components/ix-pill.js +2 -2
- package/components/ix-progress-indicator.js +2 -2
- package/components/ix-push-card.js +5 -5
- package/components/ix-push-card.js.map +1 -1
- package/components/ix-radio-group.js +4 -4
- package/components/ix-radio.js +1 -1
- package/components/ix-select.js +1 -1
- package/components/ix-slider.js +3 -3
- package/components/ix-slider.js.map +1 -1
- package/components/ix-split-button.js +2 -2
- package/components/ix-textarea.js +6 -6
- package/components/ix-time-input.js +9 -9
- package/components/ix-time-input.js.map +1 -1
- package/components/ix-time-picker.js +1 -1
- package/components/ix-toast-container.js +8 -8
- package/components/ix-toast-container.js.map +1 -1
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle.js +4 -4
- package/components/ix-tooltip.js +1 -1
- package/components/ix-tree-item.js +1 -1
- package/components/ix-tree.js +2 -2
- package/components/ix-typography.js +1 -1
- package/components/ix-upload.js +5 -5
- package/components/ix-upload.js.map +1 -1
- package/components/ix-workflow-step.js +3 -3
- package/components/ix-workflow-steps.js +1 -1
- package/components/{p-BFuOBAQB.js → p-7-Wnr7e5.js} +6 -12
- package/components/p-7-Wnr7e5.js.map +1 -0
- package/components/{p-DG42PUVX.js → p-BLcKiU45.js} +3 -3
- package/components/{p-DG42PUVX.js.map → p-BLcKiU45.js.map} +1 -1
- package/components/{p-DJ6v85WG.js → p-BNYHD56q.js} +23 -23
- package/components/p-BNYHD56q.js.map +1 -0
- package/components/{p-Dauav1c7.js → p-BU9xngEb.js} +7 -7
- package/components/{p-Dauav1c7.js.map → p-BU9xngEb.js.map} +1 -1
- package/components/{p-DRlGkOeX.js → p-Ba6JlSP8.js} +5 -5
- package/components/{p-DRlGkOeX.js.map → p-Ba6JlSP8.js.map} +1 -1
- package/components/{p-BSiqAMAr.js → p-Baga5bu5.js} +6 -6
- package/components/{p-BSiqAMAr.js.map → p-Baga5bu5.js.map} +1 -1
- package/components/{p-B3IsQckh.js → p-Bc15ecXv.js} +12 -12
- package/components/p-Bc15ecXv.js.map +1 -0
- package/components/{p-CGPMGyof.js → p-BmLRwuMH.js} +5 -6
- package/components/p-BmLRwuMH.js.map +1 -0
- package/components/{p-B5cVFUyk.js → p-BruPthTZ.js} +15 -69
- package/components/p-BruPthTZ.js.map +1 -0
- package/components/{p-BrgHqrnH.js → p-C4MK63gz.js} +3 -3
- package/components/{p-BrgHqrnH.js.map → p-C4MK63gz.js.map} +1 -1
- package/components/{p-CrIOsOo-.js → p-C8wXJCK3.js} +3 -3
- package/components/{p-CrIOsOo-.js.map → p-C8wXJCK3.js.map} +1 -1
- package/components/{p-GkRC08qs.js → p-CfOUCcs9.js} +3 -3
- package/components/{p-GkRC08qs.js.map → p-CfOUCcs9.js.map} +1 -1
- package/{dist/esm/floating-ui.dom-CAqtPJ4-.js → components/p-CiSM2A9Q.js} +102 -3
- package/components/p-CiSM2A9Q.js.map +1 -0
- package/components/{p-BpW9tS2k.js → p-Cx5H0GeI.js} +21 -21
- package/components/p-Cx5H0GeI.js.map +1 -0
- package/components/{p-C3irznVN.js → p-D3ZlTDAF.js} +3 -3
- package/components/{p-C3irznVN.js.map → p-D3ZlTDAF.js.map} +1 -1
- package/components/{p-CwwKrs4u.js → p-DE74-VWH.js} +9 -9
- package/components/p-DE74-VWH.js.map +1 -0
- package/components/{p-Bquk45CV.js → p-DLcItN6d.js} +3 -3
- package/components/{p-Bquk45CV.js.map → p-DLcItN6d.js.map} +1 -1
- package/components/{p-BybP_RcT.js → p-DOGuJxKg.js} +5 -5
- package/components/{p-BybP_RcT.js.map → p-DOGuJxKg.js.map} +1 -1
- package/components/{p-DZNnQyWO.js → p-DSF854K6.js} +3 -4
- package/components/p-DSF854K6.js.map +1 -0
- package/components/p-DVPJHakC.js +78 -0
- package/components/p-DVPJHakC.js.map +1 -0
- package/components/{p-C-7UhkWz.js → p-DaR6pX8w.js} +8 -8
- package/components/{p-C-7UhkWz.js.map → p-DaR6pX8w.js.map} +1 -1
- package/components/{p-8MS-omi7.js → p-DklPCkRW.js} +3 -3
- package/components/{p-8MS-omi7.js.map → p-DklPCkRW.js.map} +1 -1
- package/components/{p-BeegOhta.js → p-Fbu6eUjk.js} +4 -4
- package/components/{p-BeegOhta.js.map → p-Fbu6eUjk.js.map} +1 -1
- package/components/{p-ma_KYqKk.js → p-bBkFZC8X.js} +3 -3
- package/components/{p-ma_KYqKk.js.map → p-bBkFZC8X.js.map} +1 -1
- package/components/{p-CzzcLSmV.js → p-gkooEHol.js} +4 -4
- package/components/p-gkooEHol.js.map +1 -0
- package/components/{p-ClGItuSn.js → p-ts3VxLYi.js} +5 -5
- package/components/{p-ClGItuSn.js.map → p-ts3VxLYi.js.map} +1 -1
- package/components/{p-CMk-tLmg.js → p-uiKHewyI.js} +4 -4
- package/components/{p-CMk-tLmg.js.map → p-uiKHewyI.js.map} +1 -1
- package/components/{p-fDEynhA5.js → p-w319yPRv.js} +5 -5
- package/components/{p-fDEynhA5.js.map → p-w319yPRv.js.map} +1 -1
- package/dist/cjs/{floating-ui.dom-CMzYsRR7.js → find-element-BNZJcvT8.js} +103 -2
- package/dist/cjs/find-element-BNZJcvT8.js.map +1 -0
- package/dist/cjs/index-DuDLgBnw.js +0 -8
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-application.cjs.entry.js +1 -1
- package/dist/cjs/ix-avatar.ix-menu-avatar-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-avatar_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +7 -7
- package/dist/cjs/ix-breadcrumb-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +6 -6
- package/dist/cjs/ix-breadcrumb.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +4 -4
- package/dist/cjs/ix-card-list.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +9 -17
- package/dist/cjs/ix-category-filter.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +8 -9
- package/dist/cjs/ix-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-col_4.cjs.entry.js +18 -18
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +11 -11
- package/dist/cjs/ix-date-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -8
- package/dist/cjs/ix-date-time-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +3 -21
- package/dist/cjs/ix-datetime-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +6 -5
- package/dist/cjs/ix-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-dropdown.cjs.entry.js +7 -8
- package/dist/cjs/ix-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-event-list.cjs.entry.js +4 -4
- package/dist/cjs/ix-event-list.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-group-context-menu.ix-group-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +18 -5
- package/dist/cjs/ix-group.cjs.entry.js +18 -18
- package/dist/cjs/ix-group.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-helper-text.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-button.ix-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-input.cjs.entry.js +4 -4
- package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
- package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
- package/dist/cjs/ix-layout-auto.cjs.entry.js +1 -1
- package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
- package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -2
- package/dist/cjs/ix-map-navigation.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-about-news.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu.cjs.entry.js +18 -17
- package/dist/cjs/ix-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +4 -6
- package/dist/cjs/ix-message-bar.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal.cjs.entry.js +13 -13
- package/dist/cjs/ix-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-number-input.cjs.entry.js +6 -6
- package/dist/cjs/ix-pagination.cjs.entry.js +8 -9
- package/dist/cjs/ix-pagination.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +3 -3
- package/dist/cjs/ix-push-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-select.cjs.entry.js +8 -8
- package/dist/cjs/ix-select.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-slider.cjs.entry.js +1 -1
- package/dist/cjs/ix-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ix-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ix-time-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +10 -58
- package/dist/cjs/ix-time-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +5 -5
- package/dist/cjs/ix-toast-container.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast.cjs.entry.js +4 -4
- package/dist/cjs/ix-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ix-tooltip.cjs.entry.js +9 -10
- package/dist/cjs/ix-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tree-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-tree.cjs.entry.js +1 -1
- package/dist/cjs/ix-typography.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +3 -3
- package/dist/cjs/ix-upload.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-workflow-step.cjs.entry.js +3 -3
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{service-FGbUpQQM.js → service-DuiJmf7R.js} +4 -4
- package/dist/cjs/service-DuiJmf7R.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/avatar.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +9 -9
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +16 -16
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
- package/dist/collection/components/card-list/card-list.js +6 -6
- package/dist/collection/components/card-list/card-list.js.map +1 -1
- package/dist/collection/components/category-filter/category-filter.js +15 -46
- package/dist/collection/components/category-filter/category-filter.js.map +1 -1
- package/dist/collection/components/chip/chip.js +12 -13
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +19 -19
- package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
- package/dist/collection/components/date-input/date-input.js +2 -2
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker-component.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.js +23 -23
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.js +5 -30
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +8 -95
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/drawer/drawer.js +6 -5
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/event-list/event-list.js +6 -6
- package/dist/collection/components/event-list/event-list.js.map +1 -1
- package/dist/collection/components/group/group.css +12 -0
- package/dist/collection/components/group/group.js +23 -23
- package/dist/collection/components/group/group.js.map +1 -1
- package/dist/collection/components/group-item/group-item.css +22 -6
- package/dist/collection/components/group-item/group-item.js +44 -8
- package/dist/collection/components/group-item/group-item.js.map +1 -1
- package/dist/collection/components/helper-text/helper-text.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +2 -2
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input/number-input.js +6 -6
- package/dist/collection/components/input/textarea.js +2 -2
- package/dist/collection/components/key-value/key-value.js +1 -1
- package/dist/collection/components/key-value-list/key-value-list.js +1 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/layout-auto/layout-auto.js +1 -1
- package/dist/collection/components/layout-grid/layout-grid.js +2 -2
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/map-navigation/map-navigation.js +3 -2
- package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
- package/dist/collection/components/menu/menu-expand-icon.js +1 -1
- package/dist/collection/components/menu/menu.js +28 -47
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +7 -7
- package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.js +10 -10
- package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-category/menu-category.js +5 -5
- package/dist/collection/components/menu-item/menu-item.js +4 -4
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +11 -16
- package/dist/collection/components/message-bar/message-bar.js.map +1 -1
- package/dist/collection/components/modal/modal.js +29 -29
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal-content/modal-content.js +1 -1
- package/dist/collection/components/modal-footer/modal-footer.js +1 -1
- package/dist/collection/components/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.js +18 -19
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/push-card/push-card.js +7 -7
- package/dist/collection/components/push-card/push-card.js.map +1 -1
- package/dist/collection/components/select/select.js +12 -12
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/slider/slider.css +1 -3
- package/dist/collection/components/time-input/time-input.js +1 -1
- package/dist/collection/components/time-input/time-input.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.js +14 -199
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/toast/toast-container.js +5 -5
- package/dist/collection/components/toast/toast-container.js.map +1 -1
- package/dist/collection/components/toast/toast-utils.js.map +1 -1
- package/dist/collection/components/toast/toast.js +7 -7
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +4 -4
- package/dist/collection/components/typography/typography.js +1 -1
- package/dist/collection/components/upload/upload.js +5 -5
- package/dist/collection/components/upload/upload.js.map +1 -1
- package/dist/collection/components/utils/application-layout/service.js +2 -2
- package/dist/collection/components/utils/application-layout/service.js.map +1 -1
- package/dist/collection/components/utils/modal/loading.js +1 -1
- package/dist/collection/components/utils/modal/loading.js.map +1 -1
- package/dist/collection/components/workflow-step/workflow-step.js +3 -3
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
- package/dist/collection/tests/utils/test/page.js +2 -2
- package/dist/collection/tests/utils/test/page.js.map +1 -1
- package/{components/p-CAqtPJ4-.js → dist/esm/find-element-CiSM2A9Q.js} +102 -3
- package/dist/esm/find-element-CiSM2A9Q.js.map +1 -0
- package/dist/esm/index-DGODjp4O.js +0 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +1 -1
- package/dist/esm/ix-application.entry.js +1 -1
- package/dist/esm/ix-avatar.ix-menu-avatar-item.entry.js.map +1 -1
- package/dist/esm/ix-avatar_2.entry.js +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +1 -1
- package/dist/esm/ix-breadcrumb-item.entry.js +7 -7
- package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb.entry.js +6 -6
- package/dist/esm/ix-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ix-card-list.entry.js +4 -4
- package/dist/esm/ix-card-list.entry.js.map +1 -1
- package/dist/esm/ix-category-filter.entry.js +9 -17
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-chip.entry.js +8 -9
- package/dist/esm/ix-chip.entry.js.map +1 -1
- package/dist/esm/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.js.map +1 -1
- package/dist/esm/ix-col_4.entry.js +18 -18
- package/dist/esm/ix-date-dropdown.entry.js +11 -11
- package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-date-input.entry.js +2 -2
- package/dist/esm/ix-date-input.entry.js.map +1 -1
- package/dist/esm/ix-date-time-card.entry.js +3 -8
- package/dist/esm/ix-date-time-card.entry.js.map +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +3 -21
- package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
- package/dist/esm/ix-drawer.entry.js +6 -5
- package/dist/esm/ix-drawer.entry.js.map +1 -1
- package/dist/esm/ix-dropdown.entry.js +1 -2
- package/dist/esm/ix-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-event-list.entry.js +4 -4
- package/dist/esm/ix-event-list.entry.js.map +1 -1
- package/dist/esm/ix-group-context-menu.ix-group-item.entry.js.map +1 -1
- package/dist/esm/ix-group-context-menu_2.entry.js +18 -5
- package/dist/esm/ix-group.entry.js +19 -19
- package/dist/esm/ix-group.entry.js.map +1 -1
- package/dist/esm/ix-helper-text.entry.js +1 -1
- package/dist/esm/ix-icon-button.ix-spinner.entry.js.map +1 -1
- package/dist/esm/ix-icon-button_2.entry.js +1 -1
- package/dist/esm/ix-icon-toggle-button.entry.js +1 -1
- package/dist/esm/ix-input.entry.js +4 -4
- package/dist/esm/ix-key-value-list.entry.js +1 -1
- package/dist/esm/ix-key-value.entry.js +1 -1
- package/dist/esm/ix-kpi.entry.js +3 -3
- package/dist/esm/ix-layout-auto.entry.js +1 -1
- package/dist/esm/ix-link-button.entry.js +3 -3
- package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
- package/dist/esm/ix-map-navigation.entry.js +3 -2
- package/dist/esm/ix-map-navigation.entry.js.map +1 -1
- package/dist/esm/ix-menu-about-item.entry.js +1 -1
- package/dist/esm/ix-menu-about-news.entry.js +5 -5
- package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
- package/dist/esm/ix-menu-avatar.entry.js +5 -5
- package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
- package/dist/esm/ix-menu-category.entry.js +5 -5
- package/dist/esm/ix-menu-expand-icon.entry.js +1 -1
- package/dist/esm/ix-menu-item.entry.js +4 -4
- package/dist/esm/ix-menu-settings-item.entry.js +1 -1
- package/dist/esm/ix-menu.entry.js +18 -17
- package/dist/esm/ix-menu.entry.js.map +1 -1
- package/dist/esm/ix-message-bar.entry.js +4 -6
- package/dist/esm/ix-message-bar.entry.js.map +1 -1
- package/dist/esm/ix-modal-content_2.entry.js +2 -2
- package/dist/esm/ix-modal-footer.entry.js +1 -1
- package/dist/esm/ix-modal-loading.entry.js +1 -1
- package/dist/esm/ix-modal.entry.js +13 -13
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-number-input.entry.js +6 -6
- package/dist/esm/ix-pagination.entry.js +8 -9
- package/dist/esm/ix-pagination.entry.js.map +1 -1
- package/dist/esm/ix-pane-layout.entry.js +1 -1
- package/dist/esm/ix-pane.entry.js +1 -1
- package/dist/esm/ix-push-card.entry.js +3 -3
- package/dist/esm/ix-push-card.entry.js.map +1 -1
- package/dist/esm/ix-select.entry.js +8 -8
- package/dist/esm/ix-select.entry.js.map +1 -1
- package/dist/esm/ix-slider.entry.js +1 -1
- package/dist/esm/ix-slider.entry.js.map +1 -1
- package/dist/esm/ix-textarea.entry.js +2 -2
- package/dist/esm/ix-time-input.entry.js +1 -1
- package/dist/esm/ix-time-input.entry.js.map +1 -1
- package/dist/esm/ix-time-picker.entry.js +10 -58
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast-container.entry.js +5 -5
- package/dist/esm/ix-toast-container.entry.js.map +1 -1
- package/dist/esm/ix-toast.entry.js +4 -4
- package/dist/esm/ix-toast.entry.js.map +1 -1
- package/dist/esm/ix-toggle.entry.js +3 -3
- package/dist/esm/ix-tooltip.entry.js +2 -3
- package/dist/esm/ix-tooltip.entry.js.map +1 -1
- package/dist/esm/ix-tree-item.entry.js +4 -4
- package/dist/esm/ix-tree.entry.js +1 -1
- package/dist/esm/ix-typography.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +3 -3
- package/dist/esm/ix-upload.entry.js.map +1 -1
- package/dist/esm/ix-workflow-step.entry.js +3 -3
- package/dist/esm/ix-workflow-steps.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{service-ktcE7NzB.js → service-Da0kv8hS.js} +4 -4
- package/dist/esm/service-Da0kv8hS.js.map +1 -0
- package/dist/esm/siemens-ix.js +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/ix-avatar.ix-menu-avatar-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-breadcrumb-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-breadcrumb.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-card-list.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-category-filter.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-chip.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-dropdown.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-time-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-datetime-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-drawer.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-dropdown.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-event-list.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-group-context-menu.ix-group-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-group.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-icon-button.ix-spinner.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-map-navigation.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-about-news.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-avatar.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-message-bar.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-modal.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pagination.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-push-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-select.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-slider.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toast-container.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toast.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-tooltip.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-upload.entry.esm.js.map +1 -1
- package/dist/siemens-ix/{p-90bd8d7b.entry.js → p-0ba7d263.entry.js} +2 -2
- package/dist/siemens-ix/{p-f455c56a.entry.js → p-111687a2.entry.js} +2 -2
- package/dist/siemens-ix/{p-c418674c.entry.js → p-13fb0104.entry.js} +2 -2
- package/dist/siemens-ix/{p-c418674c.entry.js.map → p-13fb0104.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-8b3cfb2d.entry.js → p-1ac88556.entry.js} +2 -2
- package/dist/siemens-ix/{p-95d4d849.entry.js → p-1bd1380b.entry.js} +2 -2
- package/dist/siemens-ix/{p-5849a210.entry.js → p-1cd4280f.entry.js} +2 -2
- package/dist/siemens-ix/{p-48b0fef4.entry.js → p-2041357d.entry.js} +2 -2
- package/dist/siemens-ix/{p-fbd896c5.entry.js → p-21106fcd.entry.js} +2 -2
- package/dist/siemens-ix/p-21106fcd.entry.js.map +1 -0
- package/dist/siemens-ix/{p-52dc3ba0.entry.js → p-28fe8512.entry.js} +2 -2
- package/dist/siemens-ix/{p-4263f3b6.entry.js → p-2b046df5.entry.js} +2 -2
- package/dist/siemens-ix/{p-71e94914.entry.js → p-32203c19.entry.js} +2 -2
- package/dist/siemens-ix/p-32203c19.entry.js.map +1 -0
- package/dist/siemens-ix/{p-1b2e4b8f.entry.js → p-331f1b60.entry.js} +2 -2
- package/dist/siemens-ix/{p-99ad8022.entry.js → p-38f9b6e2.entry.js} +2 -2
- package/dist/siemens-ix/p-38f9b6e2.entry.js.map +1 -0
- package/dist/siemens-ix/p-3f06687e.entry.js +2 -0
- package/dist/siemens-ix/p-3f06687e.entry.js.map +1 -0
- package/dist/siemens-ix/{p-92032674.entry.js → p-566a58f4.entry.js} +2 -2
- package/dist/siemens-ix/p-566a58f4.entry.js.map +1 -0
- package/dist/siemens-ix/p-5d48f9cb.entry.js +2 -0
- package/dist/siemens-ix/p-5d48f9cb.entry.js.map +1 -0
- package/dist/siemens-ix/p-5f7943f2.entry.js +2 -0
- package/dist/siemens-ix/{p-d0d972c2.entry.js.map → p-5f7943f2.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-85727880.entry.js → p-639d0d7f.entry.js} +2 -2
- package/dist/siemens-ix/p-639d0d7f.entry.js.map +1 -0
- package/dist/siemens-ix/{p-faa47c0e.entry.js → p-6645d4ee.entry.js} +2 -2
- package/dist/siemens-ix/p-670d5b84.entry.js +2 -0
- package/dist/siemens-ix/p-670d5b84.entry.js.map +1 -0
- package/dist/siemens-ix/{p-eba51393.entry.js → p-7060645f.entry.js} +2 -2
- package/dist/siemens-ix/p-71a38f35.entry.js +2 -0
- package/dist/siemens-ix/{p-416886d6.entry.js → p-75edf091.entry.js} +2 -2
- package/dist/siemens-ix/p-75edf091.entry.js.map +1 -0
- package/dist/siemens-ix/{p-81c8d542.entry.js → p-75f4bbb1.entry.js} +2 -2
- package/dist/siemens-ix/{p-03c6893a.entry.js → p-78797f4b.entry.js} +2 -2
- package/dist/siemens-ix/p-78797f4b.entry.js.map +1 -0
- package/dist/siemens-ix/{p-09cce59e.entry.js → p-800f59a7.entry.js} +2 -2
- package/dist/siemens-ix/p-800f59a7.entry.js.map +1 -0
- package/dist/siemens-ix/p-86ac2254.entry.js +2 -0
- package/dist/siemens-ix/p-86ac2254.entry.js.map +1 -0
- package/dist/siemens-ix/p-8bd3f89a.entry.js +2 -0
- package/dist/siemens-ix/p-8bd3f89a.entry.js.map +1 -0
- package/dist/siemens-ix/{p-a76a69fb.entry.js → p-8c612656.entry.js} +2 -2
- package/dist/siemens-ix/{p-5140e6e6.entry.js → p-91fa3ab0.entry.js} +2 -2
- package/dist/siemens-ix/{p-f29eaee8.entry.js → p-9272ae83.entry.js} +2 -2
- package/dist/siemens-ix/{p-c8cf26c5.entry.js → p-96533ffc.entry.js} +2 -2
- package/dist/siemens-ix/p-96533ffc.entry.js.map +1 -0
- package/dist/siemens-ix/p-98ab64dc.entry.js +2 -0
- package/dist/siemens-ix/p-98ab64dc.entry.js.map +1 -0
- package/dist/siemens-ix/p-9a8188a7.entry.js +2 -0
- package/dist/siemens-ix/p-9a8188a7.entry.js.map +1 -0
- package/dist/siemens-ix/{p-f6d678a6.entry.js → p-9b88a932.entry.js} +2 -2
- package/dist/siemens-ix/{p-7a108b0d.entry.js → p-9dbfd7cd.entry.js} +2 -2
- package/dist/siemens-ix/p-CiSM2A9Q.js +2 -0
- package/dist/siemens-ix/p-CiSM2A9Q.js.map +1 -0
- package/dist/siemens-ix/p-a6612a5b.entry.js +2 -0
- package/dist/siemens-ix/{p-00a10004.entry.js → p-a7cb47ca.entry.js} +2 -2
- package/dist/siemens-ix/p-a7cb47ca.entry.js.map +1 -0
- package/dist/siemens-ix/p-ac1f35ad.entry.js +2 -0
- package/dist/siemens-ix/p-ac1f35ad.entry.js.map +1 -0
- package/dist/siemens-ix/{p-4b88c430.entry.js → p-ae2e5e0c.entry.js} +2 -2
- package/dist/siemens-ix/{p-4b88c430.entry.js.map → p-ae2e5e0c.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-6c2818da.entry.js → p-b895b3db.entry.js} +2 -2
- package/dist/siemens-ix/p-b895b3db.entry.js.map +1 -0
- package/dist/siemens-ix/{p-cd11dfa8.entry.js → p-bb878ea4.entry.js} +2 -2
- package/dist/siemens-ix/p-bc7fc8b2.entry.js +2 -0
- package/dist/siemens-ix/p-bc7fc8b2.entry.js.map +1 -0
- package/dist/siemens-ix/{p-0469aec7.entry.js → p-bf2374a0.entry.js} +2 -2
- package/dist/siemens-ix/p-c10b2e40.entry.js +2 -0
- package/dist/siemens-ix/{p-5c109476.entry.js → p-c248940f.entry.js} +2 -2
- package/dist/siemens-ix/{p-1ca58d8b.entry.js → p-c31b2027.entry.js} +2 -2
- package/dist/siemens-ix/{p-8eee6a03.entry.js → p-c413e3c4.entry.js} +2 -2
- package/dist/siemens-ix/{p-746b04cb.entry.js → p-c6ecc2e3.entry.js} +2 -2
- package/dist/siemens-ix/{p-01656234.entry.js → p-c949686e.entry.js} +2 -2
- package/dist/siemens-ix/{p-b6dad40c.entry.js → p-d0213ff0.entry.js} +2 -2
- package/dist/siemens-ix/{p-8e48a7a1.entry.js → p-d1254b5b.entry.js} +2 -2
- package/dist/siemens-ix/{p-a0d7af11.entry.js → p-d585e581.entry.js} +2 -2
- package/dist/siemens-ix/p-d6b9e253.entry.js +2 -0
- package/dist/siemens-ix/{p-c8ad32c5.entry.js.map → p-d6b9e253.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-dd82ebbc.entry.js → p-d7c7d38b.entry.js} +2 -2
- package/dist/siemens-ix/{p-c446ffdb.entry.js → p-db02f4c2.entry.js} +2 -2
- package/dist/siemens-ix/{p-4573a8de.entry.js → p-e201fa04.entry.js} +2 -2
- package/dist/siemens-ix/{p-4573a8de.entry.js.map → p-e201fa04.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-6a39d630.entry.js → p-e3a219e3.entry.js} +2 -2
- package/dist/siemens-ix/{p-bd369344.entry.js → p-e55cd52b.entry.js} +2 -2
- package/dist/siemens-ix/p-ea435816.entry.js +2 -0
- package/dist/siemens-ix/p-ea435816.entry.js.map +1 -0
- package/dist/siemens-ix/{p-14fca48a.entry.js → p-f14790b4.entry.js} +2 -2
- package/dist/siemens-ix/{p-53e82da9.entry.js → p-fbd0973d.entry.js} +2 -2
- package/dist/siemens-ix/p-fbd0973d.entry.js.map +1 -0
- package/dist/siemens-ix/p-fbedad11.entry.js +2 -0
- package/dist/siemens-ix/{p-CzzcLSmV.js → p-gkooEHol.js} +2 -2
- package/dist/siemens-ix/p-gkooEHol.js.map +1 -0
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix.css +0 -28
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/avatar/avatar.d.ts +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +3 -3
- package/dist/types/components/category-filter/category-filter.d.ts +4 -10
- package/dist/types/components/chip/chip.d.ts +2 -2
- package/dist/types/components/date-dropdown/date-dropdown.d.ts +6 -6
- package/dist/types/components/date-picker/date-picker-component.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +3 -3
- package/dist/types/components/date-time-card/date-time-card.d.ts +1 -5
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +2 -20
- package/dist/types/components/event-list/event-list.d.ts +1 -1
- package/dist/types/components/group/group.d.ts +4 -4
- package/dist/types/components/group-item/group-item.d.ts +9 -2
- package/dist/types/components/icon-button/icon-button.d.ts +1 -1
- package/dist/types/components/menu/menu.d.ts +5 -4
- package/dist/types/components/menu-about-news/menu-about-news.d.ts +1 -1
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +2 -2
- package/dist/types/components/message-bar/message-bar.d.ts +3 -4
- package/dist/types/components/modal/modal.d.ts +9 -9
- package/dist/types/components/pagination/pagination.d.ts +5 -6
- package/dist/types/components/push-card/push-card.d.ts +2 -2
- package/dist/types/components/time-picker/time-picker.d.ts +2 -40
- package/dist/types/components/toast/toast-utils.d.ts +24 -0
- package/dist/types/components/toast/toast.d.ts +1 -1
- package/dist/types/components.d.ts +214 -414
- package/hydrate/index.js +312 -699
- package/hydrate/index.mjs +312 -699
- package/package.json +1 -1
- package/scss/_core.scss +0 -1
- package/components/ix-input-group.d.ts +0 -11
- package/components/ix-input-group.js +0 -154
- package/components/ix-input-group.js.map +0 -1
- package/components/ix-validation-tooltip.d.ts +0 -11
- package/components/ix-validation-tooltip.js +0 -184
- package/components/ix-validation-tooltip.js.map +0 -1
- package/components/p-B3IsQckh.js.map +0 -1
- package/components/p-B5cVFUyk.js.map +0 -1
- package/components/p-BFuOBAQB.js.map +0 -1
- package/components/p-BpW9tS2k.js.map +0 -1
- package/components/p-CAqtPJ4-.js.map +0 -1
- package/components/p-CFRrPFxi.js +0 -103
- package/components/p-CFRrPFxi.js.map +0 -1
- package/components/p-CGPMGyof.js.map +0 -1
- package/components/p-Ctze1Bh6.js +0 -64
- package/components/p-Ctze1Bh6.js.map +0 -1
- package/components/p-CwwKrs4u.js.map +0 -1
- package/components/p-CzzcLSmV.js.map +0 -1
- package/components/p-DJ6v85WG.js.map +0 -1
- package/components/p-DZNnQyWO.js.map +0 -1
- package/dist/cjs/find-element-D7yD1Ukn.js +0 -106
- package/dist/cjs/find-element-D7yD1Ukn.js.map +0 -1
- package/dist/cjs/floating-ui.dom-CMzYsRR7.js.map +0 -1
- package/dist/cjs/ix-input-group.cjs.entry.js +0 -130
- package/dist/cjs/ix-input-group.entry.cjs.js.map +0 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +0 -155
- package/dist/cjs/ix-validation-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/service-FGbUpQQM.js.map +0 -1
- package/dist/collection/components/input-group/input-group.css +0 -115
- package/dist/collection/components/input-group/input-group.js +0 -152
- package/dist/collection/components/input-group/input-group.js.map +0 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +0 -225
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +0 -250
- package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +0 -1
- package/dist/esm/find-element-CFRrPFxi.js +0 -103
- package/dist/esm/find-element-CFRrPFxi.js.map +0 -1
- package/dist/esm/floating-ui.dom-CAqtPJ4-.js.map +0 -1
- package/dist/esm/ix-input-group.entry.js +0 -128
- package/dist/esm/ix-input-group.entry.js.map +0 -1
- package/dist/esm/ix-validation-tooltip.entry.js +0 -153
- package/dist/esm/ix-validation-tooltip.entry.js.map +0 -1
- package/dist/esm/service-ktcE7NzB.js.map +0 -1
- package/dist/siemens-ix/ix-input-group.entry.esm.js.map +0 -1
- package/dist/siemens-ix/ix-validation-tooltip.entry.esm.js.map +0 -1
- package/dist/siemens-ix/p-00a10004.entry.js.map +0 -1
- package/dist/siemens-ix/p-03c6893a.entry.js.map +0 -1
- package/dist/siemens-ix/p-09cce59e.entry.js.map +0 -1
- package/dist/siemens-ix/p-1d0ae43f.entry.js +0 -2
- package/dist/siemens-ix/p-1d0ae43f.entry.js.map +0 -1
- package/dist/siemens-ix/p-2d3f7bb5.entry.js +0 -2
- package/dist/siemens-ix/p-2d3f7bb5.entry.js.map +0 -1
- package/dist/siemens-ix/p-2d9b7dbd.entry.js +0 -2
- package/dist/siemens-ix/p-2d9b7dbd.entry.js.map +0 -1
- package/dist/siemens-ix/p-30545ef9.entry.js +0 -2
- package/dist/siemens-ix/p-30728d2c.entry.js +0 -2
- package/dist/siemens-ix/p-30728d2c.entry.js.map +0 -1
- package/dist/siemens-ix/p-3dc1d85b.entry.js +0 -2
- package/dist/siemens-ix/p-3dc1d85b.entry.js.map +0 -1
- package/dist/siemens-ix/p-416886d6.entry.js.map +0 -1
- package/dist/siemens-ix/p-48f01149.entry.js +0 -2
- package/dist/siemens-ix/p-48f01149.entry.js.map +0 -1
- package/dist/siemens-ix/p-53e82da9.entry.js.map +0 -1
- package/dist/siemens-ix/p-5bed04ac.entry.js +0 -2
- package/dist/siemens-ix/p-5bed04ac.entry.js.map +0 -1
- package/dist/siemens-ix/p-5f72640f.entry.js +0 -2
- package/dist/siemens-ix/p-5f72640f.entry.js.map +0 -1
- package/dist/siemens-ix/p-6c2818da.entry.js.map +0 -1
- package/dist/siemens-ix/p-6c873cc5.entry.js +0 -2
- package/dist/siemens-ix/p-71e94914.entry.js.map +0 -1
- package/dist/siemens-ix/p-740420eb.entry.js +0 -2
- package/dist/siemens-ix/p-740420eb.entry.js.map +0 -1
- package/dist/siemens-ix/p-85727880.entry.js.map +0 -1
- package/dist/siemens-ix/p-90089ce1.entry.js +0 -2
- package/dist/siemens-ix/p-92032674.entry.js.map +0 -1
- package/dist/siemens-ix/p-99ad8022.entry.js.map +0 -1
- package/dist/siemens-ix/p-9bd4c682.entry.js +0 -2
- package/dist/siemens-ix/p-CAqtPJ4-.js +0 -2
- package/dist/siemens-ix/p-CAqtPJ4-.js.map +0 -1
- package/dist/siemens-ix/p-CFRrPFxi.js +0 -2
- package/dist/siemens-ix/p-CFRrPFxi.js.map +0 -1
- package/dist/siemens-ix/p-CzzcLSmV.js.map +0 -1
- package/dist/siemens-ix/p-c8ad32c5.entry.js +0 -2
- package/dist/siemens-ix/p-c8cf26c5.entry.js.map +0 -1
- package/dist/siemens-ix/p-d0d972c2.entry.js +0 -2
- package/dist/siemens-ix/p-ddaf98b6.entry.js +0 -2
- package/dist/siemens-ix/p-ddaf98b6.entry.js.map +0 -1
- package/dist/siemens-ix/p-e9de8dd5.entry.js +0 -2
- package/dist/siemens-ix/p-e9de8dd5.entry.js.map +0 -1
- package/dist/siemens-ix/p-f55eef69.entry.js +0 -2
- package/dist/siemens-ix/p-f55eef69.entry.js.map +0 -1
- package/dist/siemens-ix/p-fbd896c5.entry.js.map +0 -1
- package/dist/types/components/input-group/input-group.d.ts +0 -24
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +0 -45
- package/scss/components/_input-group.scss +0 -32
- /package/dist/siemens-ix/{p-90bd8d7b.entry.js.map → p-0ba7d263.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f455c56a.entry.js.map → p-111687a2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8b3cfb2d.entry.js.map → p-1ac88556.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-95d4d849.entry.js.map → p-1bd1380b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5849a210.entry.js.map → p-1cd4280f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-48b0fef4.entry.js.map → p-2041357d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-52dc3ba0.entry.js.map → p-28fe8512.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4263f3b6.entry.js.map → p-2b046df5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1b2e4b8f.entry.js.map → p-331f1b60.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-faa47c0e.entry.js.map → p-6645d4ee.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-eba51393.entry.js.map → p-7060645f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6c873cc5.entry.js.map → p-71a38f35.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-81c8d542.entry.js.map → p-75f4bbb1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a76a69fb.entry.js.map → p-8c612656.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5140e6e6.entry.js.map → p-91fa3ab0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f29eaee8.entry.js.map → p-9272ae83.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f6d678a6.entry.js.map → p-9b88a932.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7a108b0d.entry.js.map → p-9dbfd7cd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9bd4c682.entry.js.map → p-a6612a5b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cd11dfa8.entry.js.map → p-bb878ea4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0469aec7.entry.js.map → p-bf2374a0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-30545ef9.entry.js.map → p-c10b2e40.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5c109476.entry.js.map → p-c248940f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1ca58d8b.entry.js.map → p-c31b2027.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8eee6a03.entry.js.map → p-c413e3c4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-746b04cb.entry.js.map → p-c6ecc2e3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-01656234.entry.js.map → p-c949686e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b6dad40c.entry.js.map → p-d0213ff0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8e48a7a1.entry.js.map → p-d1254b5b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a0d7af11.entry.js.map → p-d585e581.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-dd82ebbc.entry.js.map → p-d7c7d38b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c446ffdb.entry.js.map → p-db02f4c2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6a39d630.entry.js.map → p-e3a219e3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bd369344.entry.js.map → p-e55cd52b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-14fca48a.entry.js.map → p-f14790b4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-90089ce1.entry.js.map → p-fbedad11.entry.js.map} +0 -0
|
@@ -31,13 +31,13 @@ export class Modal {
|
|
|
31
31
|
*/
|
|
32
32
|
this.size = '360';
|
|
33
33
|
/**
|
|
34
|
-
* Should the modal be
|
|
34
|
+
* Should the modal animation be disabled
|
|
35
35
|
*/
|
|
36
|
-
this.
|
|
36
|
+
this.disableAnimation = false;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Hide the backdrop behind the modal dialog
|
|
39
39
|
*/
|
|
40
|
-
this.
|
|
40
|
+
this.hideBackdrop = false;
|
|
41
41
|
/**
|
|
42
42
|
* Dismiss modal on backdrop click
|
|
43
43
|
*/
|
|
@@ -47,9 +47,9 @@ export class Modal {
|
|
|
47
47
|
*/
|
|
48
48
|
this.centered = false;
|
|
49
49
|
/**
|
|
50
|
-
* If set to true the modal
|
|
50
|
+
* If set to true the modal cannot be closed by pressing the Escape key
|
|
51
51
|
*/
|
|
52
|
-
this.
|
|
52
|
+
this.disableEscapeClose = false;
|
|
53
53
|
this.modalVisible = false;
|
|
54
54
|
}
|
|
55
55
|
onKey(e) {
|
|
@@ -61,7 +61,7 @@ export class Modal {
|
|
|
61
61
|
return this.hostElement.shadowRoot.querySelector('dialog');
|
|
62
62
|
}
|
|
63
63
|
slideInModal() {
|
|
64
|
-
const duration = this.
|
|
64
|
+
const duration = this.disableAnimation ? 0 : Animation.mediumTime;
|
|
65
65
|
const translateY = this.centered ? ['-90%', '-50%'] : [0, 40];
|
|
66
66
|
animate(this.dialog, {
|
|
67
67
|
duration,
|
|
@@ -72,7 +72,7 @@ export class Modal {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
slideOutModal(completeCallback) {
|
|
75
|
-
const duration = this.
|
|
75
|
+
const duration = this.disableAnimation ? 0 : Animation.mediumTime;
|
|
76
76
|
const translateY = this.centered ? ['-50%', '-90%'] : [40, 0];
|
|
77
77
|
animate(this.dialog, {
|
|
78
78
|
duration,
|
|
@@ -161,17 +161,17 @@ export class Modal {
|
|
|
161
161
|
this.ariaAttributes = a11yHostAttributes(this.hostElement);
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: '4506ba59786ba8ff12d09a2746ef6861247731e2', class: {
|
|
165
165
|
visible: this.modalVisible,
|
|
166
|
-
'no-backdrop': this.
|
|
166
|
+
'no-backdrop': this.hideBackdrop,
|
|
167
167
|
'align-center': this.centered,
|
|
168
|
-
} }, h("div", { key: '
|
|
168
|
+
} }, h("div", { key: 'f205f5c38f52b057e7adb6664e70a5c36854a486', class: "dialog-backdrop" }, h("dialog", { key: '87d22e5945e4e07e03c735032942d48922b9e621', "aria-modal": a11yBoolean(true), "aria-describedby": this.ariaAttributes['aria-describedby'], "aria-labelledby": this.ariaAttributes['aria-labelledby'], class: {
|
|
169
169
|
modal: true,
|
|
170
170
|
[`modal-size-${this.size}`]: true,
|
|
171
171
|
}, onClose: () => this.dismissModal(), onMouseDown: (event) => this.onMouseDown(event), onMouseUp: (event) => this.onMouseUp(event), onCancel: (e) => {
|
|
172
172
|
e.preventDefault();
|
|
173
173
|
this.dismissModal();
|
|
174
|
-
} }, h("slot", { key: '
|
|
174
|
+
} }, h("slot", { key: 'e2e2945cb9f5111dacf0a889a06fd74a1dd97e9a' })))));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "ix-modal"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -213,9 +213,9 @@ export class Modal {
|
|
|
213
213
|
"reflect": false,
|
|
214
214
|
"defaultValue": "'360'"
|
|
215
215
|
},
|
|
216
|
-
"
|
|
216
|
+
"disableAnimation": {
|
|
217
217
|
"type": "boolean",
|
|
218
|
-
"attribute": "animation",
|
|
218
|
+
"attribute": "disable-animation",
|
|
219
219
|
"mutable": false,
|
|
220
220
|
"complexType": {
|
|
221
221
|
"original": "boolean",
|
|
@@ -226,16 +226,16 @@ export class Modal {
|
|
|
226
226
|
"optional": false,
|
|
227
227
|
"docs": {
|
|
228
228
|
"tags": [],
|
|
229
|
-
"text": "Should the modal be
|
|
229
|
+
"text": "Should the modal animation be disabled"
|
|
230
230
|
},
|
|
231
231
|
"getter": false,
|
|
232
232
|
"setter": false,
|
|
233
233
|
"reflect": false,
|
|
234
|
-
"defaultValue": "
|
|
234
|
+
"defaultValue": "false"
|
|
235
235
|
},
|
|
236
|
-
"
|
|
236
|
+
"hideBackdrop": {
|
|
237
237
|
"type": "boolean",
|
|
238
|
-
"attribute": "backdrop",
|
|
238
|
+
"attribute": "hide-backdrop",
|
|
239
239
|
"mutable": false,
|
|
240
240
|
"complexType": {
|
|
241
241
|
"original": "boolean",
|
|
@@ -246,12 +246,12 @@ export class Modal {
|
|
|
246
246
|
"optional": false,
|
|
247
247
|
"docs": {
|
|
248
248
|
"tags": [],
|
|
249
|
-
"text": "
|
|
249
|
+
"text": "Hide the backdrop behind the modal dialog"
|
|
250
250
|
},
|
|
251
251
|
"getter": false,
|
|
252
252
|
"setter": false,
|
|
253
253
|
"reflect": false,
|
|
254
|
-
"defaultValue": "
|
|
254
|
+
"defaultValue": "false"
|
|
255
255
|
},
|
|
256
256
|
"closeOnBackdropClick": {
|
|
257
257
|
"type": "boolean",
|
|
@@ -278,8 +278,8 @@ export class Modal {
|
|
|
278
278
|
"attribute": "before-dismiss",
|
|
279
279
|
"mutable": false,
|
|
280
280
|
"complexType": {
|
|
281
|
-
"original": "(reason?:
|
|
282
|
-
"resolved": "((reason?:
|
|
281
|
+
"original": "(reason?: unknown) => boolean | Promise<boolean>",
|
|
282
|
+
"resolved": "((reason?: unknown) => boolean | Promise<boolean>) | undefined",
|
|
283
283
|
"references": {
|
|
284
284
|
"Promise": {
|
|
285
285
|
"location": "global",
|
|
@@ -316,9 +316,9 @@ export class Modal {
|
|
|
316
316
|
"reflect": false,
|
|
317
317
|
"defaultValue": "false"
|
|
318
318
|
},
|
|
319
|
-
"
|
|
319
|
+
"disableEscapeClose": {
|
|
320
320
|
"type": "boolean",
|
|
321
|
-
"attribute": "
|
|
321
|
+
"attribute": "disable-escape-close",
|
|
322
322
|
"mutable": false,
|
|
323
323
|
"complexType": {
|
|
324
324
|
"original": "boolean",
|
|
@@ -329,12 +329,12 @@ export class Modal {
|
|
|
329
329
|
"optional": false,
|
|
330
330
|
"docs": {
|
|
331
331
|
"tags": [],
|
|
332
|
-
"text": "If set to true the modal
|
|
332
|
+
"text": "If set to true the modal cannot be closed by pressing the Escape key"
|
|
333
333
|
},
|
|
334
334
|
"getter": false,
|
|
335
335
|
"setter": false,
|
|
336
336
|
"reflect": false,
|
|
337
|
-
"defaultValue": "
|
|
337
|
+
"defaultValue": "false"
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
@@ -401,7 +401,7 @@ export class Modal {
|
|
|
401
401
|
},
|
|
402
402
|
"dismissModal": {
|
|
403
403
|
"complexType": {
|
|
404
|
-
"signature": "<T =
|
|
404
|
+
"signature": "<T = unknown>(reason?: T) => Promise<void>",
|
|
405
405
|
"parameters": [{
|
|
406
406
|
"name": "reason",
|
|
407
407
|
"type": "T | undefined",
|
|
@@ -426,7 +426,7 @@ export class Modal {
|
|
|
426
426
|
},
|
|
427
427
|
"closeModal": {
|
|
428
428
|
"complexType": {
|
|
429
|
-
"signature": "<T =
|
|
429
|
+
"signature": "<T = unknown>(reason: T) => Promise<void>",
|
|
430
430
|
"parameters": [{
|
|
431
431
|
"name": "reason",
|
|
432
432
|
"type": "T",
|
|
@@ -454,6 +454,6 @@ export class Modal {
|
|
|
454
454
|
static get elementRef() { return "hostElement"; }
|
|
455
455
|
}
|
|
456
456
|
__decorate([
|
|
457
|
-
OnListener('keydown', (self) =>
|
|
457
|
+
OnListener('keydown', (self) => self.disableEscapeClose)
|
|
458
458
|
], Modal.prototype, "onKey", null);
|
|
459
459
|
//# sourceMappingURL=modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":";;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MA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AAC,WAAW,CAAC,KAAK,CAAC,EAC/C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAC3C,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;wBACd,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,IAAI,CAAC,YAAY,EAAE,CAAC;oBACtB,CAAC;oBAED,8DAAa,CACN,CACL,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AA3LC;IADC,UAAU,CAAQ,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;kCAK3D","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { animate } from 'animejs';\nimport { A11yAttributes, a11yBoolean, a11yHostAttributes } from '../utils/a11y';\nimport Animation from '../utils/animation';\nimport { OnListener } from '../utils/listener';\nimport { waitForElement } from '../utils/waitForElement';\nimport { IxModalSize } from './modal.types';\n\n@Component({\n tag: 'ix-modal',\n styleUrl: 'modal.scss',\n shadow: true,\n})\nexport class Modal {\n private ariaAttributes: A11yAttributes = {};\n private isMouseDownInsideDialog = false;\n @Element() hostElement!: HTMLIxModalElement;\n\n /**\n * Modal size\n */\n @Prop() size: IxModalSize = '360';\n\n /**\n * Should the modal be animated\n */\n @Prop() animation = true;\n\n /**\n * Show a backdrop behind the modal dialog\n */\n @Prop() backdrop = true;\n\n /**\n * Dismiss modal on backdrop click\n */\n @Prop() closeOnBackdropClick = false;\n\n /**\n * Is called before the modal is dismissed.\n *\n * - Return `true` to proceed in dismissing the modal\n * - Return `false` to abort in dismissing the modal\n */\n @Prop() beforeDismiss?: (reason?: any) => boolean | Promise<boolean>;\n\n /**\n * Centered modal\n */\n @Prop() centered = false;\n\n /**\n * If set to true the modal can be closed by pressing the Escape key\n */\n @Prop() closeOnEscape = true;\n\n /**\n * Dialog close\n */\n @Event() dialogClose!: EventEmitter;\n\n /**\n * Dialog cancel\n */\n @Event() dialogDismiss!: EventEmitter;\n\n @State() modalVisible = false;\n\n @OnListener<Modal>('keydown', (self) => !self.closeOnEscape)\n onKey(e: KeyboardEvent) {\n if (e.key === 'Escape') {\n e.preventDefault();\n }\n }\n\n get dialog() {\n return this.hostElement.shadowRoot!.querySelector('dialog');\n }\n\n private slideInModal() {\n const duration = this.animation ? Animation.mediumTime : 0;\n const translateY = this.centered ? ['-90%', '-50%'] : [0, 40];\n\n animate(this.dialog!, {\n duration,\n opacity: [0, 1],\n translateY,\n translateX: ['-50%', '-50%'],\n easing: 'easeOutSine',\n });\n }\n\n private slideOutModal(completeCallback: Function) {\n const duration = this.animation ? Animation.mediumTime : 0;\n const translateY = this.centered ? ['-50%', '-90%'] : [40, 0];\n\n animate(this.dialog!, {\n duration,\n opacity: [1, 0],\n translateY,\n translateX: ['-50%', '-50%'],\n easing: 'easeInSine',\n complete: () => {\n if (completeCallback) {\n completeCallback();\n }\n },\n });\n }\n\n private onMouseDown(event: MouseEvent) {\n this.isMouseDownInsideDialog = this.isPointInsideDialog(\n event.clientX,\n event.clientY\n );\n }\n\n private onMouseUp(event: MouseEvent) {\n const isMouseUpInsideDialog = this.isPointInsideDialog(\n event.clientX,\n event.clientY\n );\n\n if (\n this.closeOnBackdropClick &&\n !this.isMouseDownInsideDialog &&\n !isMouseUpInsideDialog\n ) {\n this.dismissModal();\n }\n }\n\n private isPointInsideDialog(x: number, y: number): boolean {\n const rect = this.dialog!.getBoundingClientRect();\n return (\n x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom\n );\n }\n /**\n * Show the dialog\n */\n @Method()\n async showModal() {\n try {\n const dialog = await waitForElement<HTMLDialogElement>(\n 'dialog',\n this.hostElement.shadowRoot\n );\n this.modalVisible = true;\n dialog.showModal();\n } catch (e) {\n console.error('HTMLDialogElement not existing');\n }\n }\n\n /**\n * Dismiss the dialog\n */\n @Method()\n async dismissModal<T = any>(reason?: T) {\n if (!this.modalVisible) {\n return;\n }\n\n let allowDismiss = true;\n\n if (this.beforeDismiss !== undefined) {\n allowDismiss = await this.beforeDismiss(reason);\n }\n if (!allowDismiss) {\n return;\n }\n\n this.slideOutModal(() => {\n this.modalVisible = false;\n this.dialog!.close(\n JSON.stringify(\n {\n type: 'dismiss',\n reason,\n },\n null,\n 2\n )\n );\n\n this.dialogDismiss.emit(reason);\n });\n }\n\n /**\n * Close the dialog\n */\n @Method()\n async closeModal<T = any>(reason: T) {\n if (!this.modalVisible) {\n return;\n }\n\n this.slideOutModal(() => {\n this.modalVisible = false;\n this.dialog!.close(\n JSON.stringify(\n {\n type: 'close',\n reason,\n },\n null,\n 2\n )\n );\n\n this.dialogClose.emit(reason);\n });\n }\n\n componentDidLoad() {\n this.slideInModal();\n }\n\n componentWillLoad() {\n this.ariaAttributes = a11yHostAttributes(this.hostElement);\n }\n\n render() {\n return (\n <Host\n class={{\n visible: this.modalVisible,\n 'no-backdrop': this.backdrop === false,\n 'align-center': this.centered,\n }}\n >\n <div class=\"dialog-backdrop\">\n <dialog\n aria-modal={a11yBoolean(true)}\n aria-describedby={this.ariaAttributes['aria-describedby']}\n aria-labelledby={this.ariaAttributes['aria-labelledby']}\n class={{\n modal: true,\n [`modal-size-${this.size}`]: true,\n }}\n onClose={() => this.dismissModal()}\n onMouseDown={(event) => this.onMouseDown(event)}\n onMouseUp={(event) => this.onMouseUp(event)}\n onCancel={(e) => {\n e.preventDefault();\n this.dismissModal();\n }}\n >\n <slot></slot>\n </dialog>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":";;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAkB,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAQzD,MAAM,OAAO,KAAK;IALlB;QAMU,mBAAc,GAAmB,EAAE,CAAC;QACpC,4BAAuB,GAAG,KAAK,CAAC;QAGxC;;WAEG;QACK,SAAI,GAAgB,KAAK,CAAC;QAElC;;WAEG;QACK,qBAAgB,GAAG,KAAK,CAAC;QAEjC;;WAEG;QACK,iBAAY,GAAG,KAAK,CAAC;QAE7B;;WAEG;QACK,yBAAoB,GAAG,KAAK,CAAC;QAUrC;;WAEG;QACK,aAAQ,GAAG,KAAK,CAAC;QAEzB;;WAEG;QACK,uBAAkB,GAAG,KAAK,CAAC;QAY1B,iBAAY,GAAG,KAAK,CAAC;KA8L/B;IA3LC,KAAK,CAAC,CAAgB;QACpB,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YACvB,CAAC,CAAC,cAAc,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;IAED,IAAI,MAAM;QACR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9B;YAED,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,6EACc,WAAW,CAAC,IAAI,CAAC,sBACX,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,qBACxC,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EACvD,KAAK,EAAE;wBACL,KAAK,EAAE,IAAI;wBACX,CAAC,cAAc,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;qBAClC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAClC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAC/C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAC3C,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;wBACd,CAAC,CAAC,cAAc,EAAE,CAAC;wBACnB,IAAI,CAAC,YAAY,EAAE,CAAC;oBACtB,CAAC;oBAED,8DAAa,CACN,CACL,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AA3LC;IADC,UAAU,CAAQ,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;kCAK/D","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { animate } from 'animejs';\nimport { A11yAttributes, a11yBoolean, a11yHostAttributes } from '../utils/a11y';\nimport Animation from '../utils/animation';\nimport { OnListener } from '../utils/listener';\nimport { waitForElement } from '../utils/waitForElement';\nimport { IxModalSize } from './modal.types';\n\n@Component({\n tag: 'ix-modal',\n styleUrl: 'modal.scss',\n shadow: true,\n})\nexport class Modal {\n private ariaAttributes: A11yAttributes = {};\n private isMouseDownInsideDialog = false;\n @Element() hostElement!: HTMLIxModalElement;\n\n /**\n * Modal size\n */\n @Prop() size: IxModalSize = '360';\n\n /**\n * Should the modal animation be disabled\n */\n @Prop() disableAnimation = false;\n\n /**\n * Hide the backdrop behind the modal dialog\n */\n @Prop() hideBackdrop = false;\n\n /**\n * Dismiss modal on backdrop click\n */\n @Prop() closeOnBackdropClick = false;\n\n /**\n * Is called before the modal is dismissed.\n *\n * - Return `true` to proceed in dismissing the modal\n * - Return `false` to abort in dismissing the modal\n */\n @Prop() beforeDismiss?: (reason?: unknown) => boolean | Promise<boolean>;\n\n /**\n * Centered modal\n */\n @Prop() centered = false;\n\n /**\n * If set to true the modal cannot be closed by pressing the Escape key\n */\n @Prop() disableEscapeClose = false;\n\n /**\n * Dialog close\n */\n @Event() dialogClose!: EventEmitter;\n\n /**\n * Dialog cancel\n */\n @Event() dialogDismiss!: EventEmitter;\n\n @State() modalVisible = false;\n\n @OnListener<Modal>('keydown', (self) => self.disableEscapeClose)\n onKey(e: KeyboardEvent) {\n if (e.key === 'Escape') {\n e.preventDefault();\n }\n }\n\n get dialog() {\n return this.hostElement.shadowRoot!.querySelector('dialog');\n }\n\n private slideInModal() {\n const duration = this.disableAnimation ? 0 : Animation.mediumTime;\n const translateY = this.centered ? ['-90%', '-50%'] : [0, 40];\n\n animate(this.dialog!, {\n duration,\n opacity: [0, 1],\n translateY,\n translateX: ['-50%', '-50%'],\n easing: 'easeOutSine',\n });\n }\n\n private slideOutModal(completeCallback: Function) {\n const duration = this.disableAnimation ? 0 : Animation.mediumTime;\n const translateY = this.centered ? ['-50%', '-90%'] : [40, 0];\n\n animate(this.dialog!, {\n duration,\n opacity: [1, 0],\n translateY,\n translateX: ['-50%', '-50%'],\n easing: 'easeInSine',\n complete: () => {\n if (completeCallback) {\n completeCallback();\n }\n },\n });\n }\n\n private onMouseDown(event: MouseEvent) {\n this.isMouseDownInsideDialog = this.isPointInsideDialog(\n event.clientX,\n event.clientY\n );\n }\n\n private onMouseUp(event: MouseEvent) {\n const isMouseUpInsideDialog = this.isPointInsideDialog(\n event.clientX,\n event.clientY\n );\n\n if (\n this.closeOnBackdropClick &&\n !this.isMouseDownInsideDialog &&\n !isMouseUpInsideDialog\n ) {\n this.dismissModal();\n }\n }\n\n private isPointInsideDialog(x: number, y: number): boolean {\n const rect = this.dialog!.getBoundingClientRect();\n return (\n x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom\n );\n }\n /**\n * Show the dialog\n */\n @Method()\n async showModal() {\n try {\n const dialog = await waitForElement<HTMLDialogElement>(\n 'dialog',\n this.hostElement.shadowRoot\n );\n this.modalVisible = true;\n dialog.showModal();\n } catch (e) {\n console.error('HTMLDialogElement not existing');\n }\n }\n\n /**\n * Dismiss the dialog\n */\n @Method()\n async dismissModal<T = unknown>(reason?: T) {\n if (!this.modalVisible) {\n return;\n }\n\n let allowDismiss = true;\n\n if (this.beforeDismiss !== undefined) {\n allowDismiss = await this.beforeDismiss(reason);\n }\n if (!allowDismiss) {\n return;\n }\n\n this.slideOutModal(() => {\n this.modalVisible = false;\n this.dialog!.close(\n JSON.stringify(\n {\n type: 'dismiss',\n reason,\n },\n null,\n 2\n )\n );\n\n this.dialogDismiss.emit(reason);\n });\n }\n\n /**\n * Close the dialog\n */\n @Method()\n async closeModal<T = unknown>(reason: T) {\n if (!this.modalVisible) {\n return;\n }\n\n this.slideOutModal(() => {\n this.modalVisible = false;\n this.dialog!.close(\n JSON.stringify(\n {\n type: 'close',\n reason,\n },\n null,\n 2\n )\n );\n\n this.dialogClose.emit(reason);\n });\n }\n\n componentDidLoad() {\n this.slideInModal();\n }\n\n componentWillLoad() {\n this.ariaAttributes = a11yHostAttributes(this.hostElement);\n }\n\n render() {\n return (\n <Host\n class={{\n visible: this.modalVisible,\n 'no-backdrop': this.hideBackdrop,\n 'align-center': this.centered,\n }}\n >\n <div class=\"dialog-backdrop\">\n <dialog\n aria-modal={a11yBoolean(true)}\n aria-describedby={this.ariaAttributes['aria-describedby']}\n aria-labelledby={this.ariaAttributes['aria-labelledby']}\n class={{\n modal: true,\n [`modal-size-${this.size}`]: true,\n }}\n onClose={() => this.dismissModal()}\n onMouseDown={(event) => this.onMouseDown(event)}\n onMouseUp={(event) => this.onMouseUp(event)}\n onCancel={(e) => {\n e.preventDefault();\n this.dismissModal();\n }}\n >\n <slot></slot>\n </dialog>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { h, Host } from "@stencil/core";
|
|
10
10
|
export class ModalContent {
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'ad65a8e851473037c8f1cfe43195c59e128c3523' }, h("slot", { key: 'edc352a2acac0a07a090db591cde4d6655f07c72' })));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "ix-modal-content"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { h, Host } from "@stencil/core";
|
|
10
10
|
export class ModalFooter {
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '4b20e10da90fed23f7496eccc6b42e131be0b362' }, h("slot", { key: '7e6c8edcb1d0c7457ba86b7ee8b9bcecbfaa64f3' })));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "ix-modal-footer"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class ModalHeader {
|
|
|
38
38
|
this.parentDialog.dismissModal();
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '48c6bb4895a373f75c72f4a2277c6320a958e50c' }, this.icon ? (h("ix-icon", { name: this.icon, color: this.iconColor, size: "32", "aria-label": this.ariaLabelIcon })) : null, h("div", { key: 'b3f10e2fbae37c99d35cc9307858ae59cdc84f60', class: "modal-title" }, h("ix-typography", { key: 'd8949040e5aeef0d06bfa199164c99e9cecf34a8', format: "h5" }, h("slot", { key: 'b09380800d077a862a7c177731ab54848c971934' }))), !this.hideClose ? (h("ix-icon-button", { class: "modal-close", onClick: (event) => this.onCloseClick(event), variant: "tertiary", icon: iconClose, iconColor: "color-soft-text", "aria-label": this.ariaLabelCloseIconButton })) : null));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "ix-modal-header"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ import { h, Host } from "@stencil/core";
|
|
|
12
12
|
*/
|
|
13
13
|
export class ModalLoading {
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '3b29d3ee63910614f836c0d67039c7fe8c979766' }, h("ix-spinner", { key: 'efe7302d8f9c34e2efeda5f2213ba46969ad7a3f', variant: "primary" }), h("span", { key: '882e0acb894c8c902bc1d76a4447e87c432fa550', class: 'loading-text' }, h("slot", { key: 'f78b2c4aeeb4e4898e78beedd4ee0bb9ac7d4d36' }))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "ix-modal-loading"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,9 +33,9 @@ export class Pagination {
|
|
|
33
33
|
*/
|
|
34
34
|
this.itemCount = 15;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Hide item count in advanced mode
|
|
37
37
|
*/
|
|
38
|
-
this.
|
|
38
|
+
this.hideItemCount = false;
|
|
39
39
|
/**
|
|
40
40
|
* Total number of pages
|
|
41
41
|
*/
|
|
@@ -45,16 +45,15 @@ export class Pagination {
|
|
|
45
45
|
*/
|
|
46
46
|
this.selectedPage = 0;
|
|
47
47
|
/**
|
|
48
|
-
* i18n
|
|
48
|
+
* i18n label for 'Page'
|
|
49
49
|
*/
|
|
50
50
|
this.i18nPage = 'Page';
|
|
51
51
|
/**
|
|
52
|
-
* i18n
|
|
52
|
+
* i18n label for 'of'
|
|
53
53
|
*/
|
|
54
54
|
this.i18nOf = 'of';
|
|
55
55
|
/**
|
|
56
|
-
|
|
57
|
-
* i18n
|
|
56
|
+
* i18n label for 'Items'
|
|
58
57
|
*/
|
|
59
58
|
this.i18nItems = 'Items';
|
|
60
59
|
}
|
|
@@ -147,16 +146,16 @@ export class Pagination {
|
|
|
147
146
|
return h("span", { class: "page-buttons" }, pageButtons);
|
|
148
147
|
}
|
|
149
148
|
render() {
|
|
150
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '5c1ce4b10a43956964e2382e2434784617990be7' }, h("ix-icon-button", { key: 'c7433ed086de60128ba3608efce102f1adb09dc1', disabled: !this.count || this.selectedPage === 0, variant: "subtle-tertiary", icon: iconChevronLeftSmall, onClick: () => this.decrease(), "aria-label": this.ariaLabelChevronLeftIconButton }), this.advanced ? (h("div", { class: "advanced-pagination" }, h("ix-typography", { format: "body" }, this.i18nPage), h("input", { class: "ix-form-control page-selection", type: "number", min: "1", max: this.count, value: this.selectedPage + 1, onChange: (event) => {
|
|
151
150
|
const eventTarget = event.target;
|
|
152
151
|
if (eventTarget) {
|
|
153
152
|
const index = Number.parseInt(eventTarget.value);
|
|
154
153
|
this.selectPage(index - 1);
|
|
155
154
|
}
|
|
156
|
-
} }), h("span", { class: "total-count" }, h("ix-typography", { format: "body" }, this.i18nOf, " ", this.count)))) : (h("span", { class: "basic-pagination" }, this.renderPageButtons(), " ")), h("ix-icon-button", { key: '
|
|
155
|
+
} }), h("span", { class: "total-count" }, h("ix-typography", { format: "body" }, this.i18nOf, " ", this.count)))) : (h("span", { class: "basic-pagination" }, this.renderPageButtons(), " ")), h("ix-icon-button", { key: 'afe01f3d6c827f7b12f0d2e29d5a7d42bcea8658', disabled: !this.count || this.selectedPage === this.count - 1, variant: "subtle-tertiary", icon: iconChevronRightSmall, onClick: () => this.increase(), "aria-label": this.ariaLabelChevronRightIconButton }), this.advanced && !this.hideItemCount && (h("span", { key: '92ddf5d2fc223e4997819d90abe63dedcc48d47e', class: "item-count" }, h("ix-typography", { key: 'cd66c9539673238192a6c54cd1d5f1ca8b8cc7c0', format: "body" }, this.i18nItems), h("ix-select", { key: '6735cfec67c60535ea17df734ad2e1e9748272f1', hideListHeader: true, i18nPlaceholder: "", i18nSelectListHeader: "", value: `${this.itemCount}`, onValueChange: (e) => {
|
|
157
156
|
const count = Number.parseInt(Array.isArray(e.detail) ? e.detail[0] : e.detail);
|
|
158
157
|
this.itemCountChanged.emit(count);
|
|
159
|
-
} }, h("ix-select-item", { label: "10", value: "10" }), h("ix-select-item", { label: "15", value: "15" }), h("ix-select-item", { label: "20", value: "20" }), h("ix-select-item", { label: "40", value: "40" }), h("ix-select-item", { label: "100", value: "100" }))))
|
|
158
|
+
} }, h("ix-select-item", { key: '618713c24de8a69b7f2e8c424f13bedd9fc8bd5a', label: "10", value: "10" }), h("ix-select-item", { key: '01b222e680485f49dd460c6f10bc9107b0b23286', label: "15", value: "15" }), h("ix-select-item", { key: '49ff338017f595c57d23c8c5fab5470c33b96a30', label: "20", value: "20" }), h("ix-select-item", { key: '0aeda9a1dc0577f30ea31934cf5e6ae4fc9f7842', label: "40", value: "40" }), h("ix-select-item", { key: 'db9ab9fd5f54aa538f7ee6ba617a4d27a9203326', label: "100", value: "100" }))))));
|
|
160
159
|
}
|
|
161
160
|
static get is() { return "ix-pagination"; }
|
|
162
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -212,9 +211,9 @@ export class Pagination {
|
|
|
212
211
|
"reflect": false,
|
|
213
212
|
"defaultValue": "15"
|
|
214
213
|
},
|
|
215
|
-
"
|
|
214
|
+
"hideItemCount": {
|
|
216
215
|
"type": "boolean",
|
|
217
|
-
"attribute": "
|
|
216
|
+
"attribute": "hide-item-count",
|
|
218
217
|
"mutable": false,
|
|
219
218
|
"complexType": {
|
|
220
219
|
"original": "boolean",
|
|
@@ -225,12 +224,12 @@ export class Pagination {
|
|
|
225
224
|
"optional": false,
|
|
226
225
|
"docs": {
|
|
227
226
|
"tags": [],
|
|
228
|
-
"text": "
|
|
227
|
+
"text": "Hide item count in advanced mode"
|
|
229
228
|
},
|
|
230
229
|
"getter": false,
|
|
231
230
|
"setter": false,
|
|
232
231
|
"reflect": false,
|
|
233
|
-
"defaultValue": "
|
|
232
|
+
"defaultValue": "false"
|
|
234
233
|
},
|
|
235
234
|
"count": {
|
|
236
235
|
"type": "number",
|
|
@@ -274,7 +273,7 @@ export class Pagination {
|
|
|
274
273
|
},
|
|
275
274
|
"i18nPage": {
|
|
276
275
|
"type": "string",
|
|
277
|
-
"attribute": "
|
|
276
|
+
"attribute": "i18n-page",
|
|
278
277
|
"mutable": false,
|
|
279
278
|
"complexType": {
|
|
280
279
|
"original": "string",
|
|
@@ -285,7 +284,7 @@ export class Pagination {
|
|
|
285
284
|
"optional": false,
|
|
286
285
|
"docs": {
|
|
287
286
|
"tags": [],
|
|
288
|
-
"text": "i18n"
|
|
287
|
+
"text": "i18n label for 'Page'"
|
|
289
288
|
},
|
|
290
289
|
"getter": false,
|
|
291
290
|
"setter": false,
|
|
@@ -294,7 +293,7 @@ export class Pagination {
|
|
|
294
293
|
},
|
|
295
294
|
"i18nOf": {
|
|
296
295
|
"type": "string",
|
|
297
|
-
"attribute": "
|
|
296
|
+
"attribute": "i18n-of",
|
|
298
297
|
"mutable": false,
|
|
299
298
|
"complexType": {
|
|
300
299
|
"original": "string",
|
|
@@ -305,7 +304,7 @@ export class Pagination {
|
|
|
305
304
|
"optional": false,
|
|
306
305
|
"docs": {
|
|
307
306
|
"tags": [],
|
|
308
|
-
"text": "i18n"
|
|
307
|
+
"text": "i18n label for 'of'"
|
|
309
308
|
},
|
|
310
309
|
"getter": false,
|
|
311
310
|
"setter": false,
|
|
@@ -314,7 +313,7 @@ export class Pagination {
|
|
|
314
313
|
},
|
|
315
314
|
"i18nItems": {
|
|
316
315
|
"type": "string",
|
|
317
|
-
"attribute": "
|
|
316
|
+
"attribute": "i18n-items",
|
|
318
317
|
"mutable": false,
|
|
319
318
|
"complexType": {
|
|
320
319
|
"original": "string",
|
|
@@ -325,7 +324,7 @@ export class Pagination {
|
|
|
325
324
|
"optional": false,
|
|
326
325
|
"docs": {
|
|
327
326
|
"tags": [],
|
|
328
|
-
"text": "
|
|
327
|
+
"text": "i18n label for 'Items'"
|
|
329
328
|
},
|
|
330
329
|
"getter": false,
|
|
331
330
|
"setter": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,OAAO,UAAU;IALvB;QAMmB,qBAAgB,GAAoB;YACnD,OAAO,EAAE,iBAAiB;YAC1B,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,QAAQ;SACf,CAAC;QAEe,kB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,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CACjD,CAAC;wBAEF,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACpC,CAAC;oBAED,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,GAAkB,CAC/C,CACP,CACR,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { a11yBoolean } from '../utils/a11y';\nimport {\n iconChevronLeftSmall,\n iconChevronRightSmall,\n} from '@siemens/ix-icons/icons';\n\n@Component({\n tag: 'ix-pagination',\n styleUrl: 'pagination.scss',\n shadow: true,\n})\nexport class Pagination {\n private readonly baseButtonConfig: BaseButtonProps = {\n variant: 'subtle-tertiary',\n iconOnly: true,\n iconOval: false,\n disabled: false,\n icon: '',\n loading: false,\n selected: false,\n type: 'button',\n };\n\n private readonly maxCountPages = 7;\n\n @Element() hostElement!: HTMLIxPaginationElement;\n\n /**\n * Advanced mode\n */\n @Prop() advanced = false;\n\n /**\n * Number of items shown at once.\n * Can only be changed in advaced mode.\n */\n @Prop() itemCount = 15;\n\n /**\n * Show item count in advanced mode\n */\n @Prop() showItemCount = true;\n\n /**\n * Total number of pages\n */\n @Prop() count: number = 0;\n\n /**\n * Zero based index of currently selected page\n */\n @Prop({ mutable: true }) selectedPage = 0;\n\n /**\n * i18n\n */\n @Prop() i18nPage = 'Page';\n\n /**\n * i18n\n */\n @Prop() i18nOf = 'of';\n\n /**\n /**\n * i18n\n */\n @Prop() i18nItems = 'Items';\n\n /**\n * ARIA label for the chevron left icon button\n * Will be set as aria-label on the nested HTML button element\n *\n * @since 3.2.0\n */\n @Prop() ariaLabelChevronLeftIconButton?: string;\n\n /**\n * ARIA label for the chevron right icon button\n * Will be set as aria-label on the nested HTML button element\n *\n * @since 3.2.0\n */\n @Prop() ariaLabelChevronRightIconButton?: string;\n\n /**\n * Page selection event\n */\n @Event() pageSelected!: EventEmitter<number>;\n\n /**\n * Item count change event\n */\n @Event() itemCountChanged!: EventEmitter<number>;\n\n private selectPage(index: number) {\n const oldIndex = this.selectedPage;\n\n if (index < 0) {\n this.selectedPage = 0;\n } else if (index > this.count - 1) {\n this.selectedPage = this.count - 1;\n } else {\n this.selectedPage = index;\n }\n\n const { defaultPrevented } = this.pageSelected.emit(this.selectedPage);\n\n if (defaultPrevented) {\n this.selectedPage = oldIndex;\n }\n }\n\n private increase() {\n if (this.selectedPage === this.count - 1) {\n return;\n }\n\n this.selectPage(this.selectedPage + 1);\n }\n\n private decrease() {\n if (this.selectedPage === 0) {\n return;\n }\n\n this.selectPage(this.selectedPage - 1);\n }\n\n private getPageButton(index: number) {\n const baseButtonProps: BaseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => this.selectPage(index),\n selected: this.selectedPage === index,\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.selectedPage === index),\n },\n };\n\n return <BaseButton {...baseButtonProps}>{index + 1}</BaseButton>;\n }\n\n private renderPageButtons() {\n const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);\n const hasOverflow = this.count > this.maxCountPages;\n const hasOverflowStart =\n hasOverflow && this.selectedPage > pagesBeforeOverflow;\n const hasOverflowEnd =\n hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;\n const pageButtons = [];\n\n let start = 0;\n let end = Math.min(this.count, this.maxCountPages);\n let pageCount = Math.floor((this.maxCountPages - 4) / 2);\n\n if (hasOverflowStart) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowEnd) {\n this.selectPage(this.selectedPage - Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.count - this.maxCountPages);\n }\n },\n };\n pageButtons.push(this.getPageButton(0));\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n\n if (hasOverflowEnd) {\n start = this.count - this.maxCountPages + 2;\n } else {\n start = this.count - this.maxCountPages + 2;\n end = this.count;\n }\n }\n\n if (hasOverflowEnd) {\n if (hasOverflowStart) {\n start = this.selectedPage - pageCount;\n end = this.selectedPage + pageCount + 1;\n } else {\n end = this.maxCountPages - 2;\n }\n }\n\n for (let i = start; i < end; i++) {\n pageButtons.push(this.getPageButton(i));\n }\n\n if (hasOverflowEnd) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowStart) {\n this.selectPage(this.selectedPage + Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.maxCountPages - 1);\n }\n },\n };\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n pageButtons.push(this.getPageButton(this.count - 1));\n }\n\n return <span class=\"page-buttons\">{pageButtons}</span>;\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n disabled={!this.count || this.selectedPage === 0}\n variant=\"subtle-tertiary\"\n icon={iconChevronLeftSmall}\n onClick={() => this.decrease()}\n aria-label={this.ariaLabelChevronLeftIconButton}\n ></ix-icon-button>\n\n {this.advanced ? (\n <div class=\"advanced-pagination\">\n <ix-typography format=\"body\">{this.i18nPage}</ix-typography>\n <input\n class=\"ix-form-control page-selection\"\n type=\"number\"\n min=\"1\"\n max={this.count}\n value={this.selectedPage + 1}\n onChange={(event: Event) => {\n const eventTarget = event.target as HTMLInputElement;\n if (eventTarget) {\n const index = Number.parseInt(eventTarget.value);\n this.selectPage(index - 1);\n }\n }}\n />\n <span class=\"total-count\">\n <ix-typography format=\"body\">\n {this.i18nOf} {this.count}\n </ix-typography>\n </span>\n </div>\n ) : (\n <span class=\"basic-pagination\">{this.renderPageButtons()} </span>\n )}\n\n <ix-icon-button\n disabled={!this.count || this.selectedPage === this.count - 1}\n variant=\"subtle-tertiary\"\n icon={iconChevronRightSmall}\n onClick={() => this.increase()}\n aria-label={this.ariaLabelChevronRightIconButton}\n ></ix-icon-button>\n\n {this.advanced && this.showItemCount ? (\n <span class=\"item-count\">\n <ix-typography format=\"body\">{this.i18nItems}</ix-typography>\n <ix-select\n hideListHeader\n i18nPlaceholder=\"\"\n i18nSelectListHeader=\"\"\n value={`${this.itemCount}`}\n onValueChange={(e) => {\n const count = Number.parseInt(\n Array.isArray(e.detail) ? e.detail[0] : e.detail\n );\n\n this.itemCountChanged.emit(count);\n }}\n >\n <ix-select-item label=\"10\" value=\"10\"></ix-select-item>\n <ix-select-item label=\"15\" value=\"15\"></ix-select-item>\n <ix-select-item label=\"20\" value=\"20\"></ix-select-item>\n <ix-select-item label=\"40\" value=\"40\"></ix-select-item>\n <ix-select-item label=\"100\" value=\"100\"></ix-select-item>\n </ix-select>\n </span>\n ) : (\n ''\n )}\n </Host>\n );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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { a11yBoolean } from '../utils/a11y';\nimport {\n iconChevronLeftSmall,\n iconChevronRightSmall,\n} from '@siemens/ix-icons/icons';\n\n@Component({\n tag: 'ix-pagination',\n styleUrl: 'pagination.scss',\n shadow: true,\n})\nexport class Pagination {\n private readonly baseButtonConfig: BaseButtonProps = {\n variant: 'subtle-tertiary',\n iconOnly: true,\n iconOval: false,\n disabled: false,\n icon: '',\n loading: false,\n selected: false,\n type: 'button',\n };\n\n private readonly maxCountPages = 7;\n\n @Element() hostElement!: HTMLIxPaginationElement;\n\n /**\n * Advanced mode\n */\n @Prop() advanced = false;\n\n /**\n * Number of items shown at once.\n * Can only be changed in advaced mode.\n */\n @Prop() itemCount = 15;\n\n /**\n * Hide item count in advanced mode\n */\n @Prop() hideItemCount = false;\n\n /**\n * Total number of pages\n */\n @Prop() count: number = 0;\n\n /**\n * Zero based index of currently selected page\n */\n @Prop({ mutable: true }) selectedPage = 0;\n\n /**\n * i18n label for 'Page'\n */\n @Prop({ attribute: 'i18n-page' }) i18nPage = 'Page';\n\n /**\n * i18n label for 'of'\n */\n @Prop({ attribute: 'i18n-of' }) i18nOf = 'of';\n\n /**\n * i18n label for 'Items'\n */\n @Prop({ attribute: 'i18n-items' }) i18nItems = 'Items';\n\n /**\n * ARIA label for the chevron left icon button\n * Will be set as aria-label on the nested HTML button element\n *\n * @since 3.2.0\n */\n @Prop() ariaLabelChevronLeftIconButton?: string;\n\n /**\n * ARIA label for the chevron right icon button\n * Will be set as aria-label on the nested HTML button element\n *\n * @since 3.2.0\n */\n @Prop() ariaLabelChevronRightIconButton?: string;\n\n /**\n * Page selection event\n */\n @Event() pageSelected!: EventEmitter<number>;\n\n /**\n * Item count change event\n */\n @Event() itemCountChanged!: EventEmitter<number>;\n\n private selectPage(index: number) {\n const oldIndex = this.selectedPage;\n\n if (index < 0) {\n this.selectedPage = 0;\n } else if (index > this.count - 1) {\n this.selectedPage = this.count - 1;\n } else {\n this.selectedPage = index;\n }\n\n const { defaultPrevented } = this.pageSelected.emit(this.selectedPage);\n\n if (defaultPrevented) {\n this.selectedPage = oldIndex;\n }\n }\n\n private increase() {\n if (this.selectedPage === this.count - 1) {\n return;\n }\n\n this.selectPage(this.selectedPage + 1);\n }\n\n private decrease() {\n if (this.selectedPage === 0) {\n return;\n }\n\n this.selectPage(this.selectedPage - 1);\n }\n\n private getPageButton(index: number) {\n const baseButtonProps: BaseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => this.selectPage(index),\n selected: this.selectedPage === index,\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.selectedPage === index),\n },\n };\n\n return <BaseButton {...baseButtonProps}>{index + 1}</BaseButton>;\n }\n\n private renderPageButtons() {\n const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);\n const hasOverflow = this.count > this.maxCountPages;\n const hasOverflowStart =\n hasOverflow && this.selectedPage > pagesBeforeOverflow;\n const hasOverflowEnd =\n hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;\n const pageButtons = [];\n\n let start = 0;\n let end = Math.min(this.count, this.maxCountPages);\n let pageCount = Math.floor((this.maxCountPages - 4) / 2);\n\n if (hasOverflowStart) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowEnd) {\n this.selectPage(this.selectedPage - Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.count - this.maxCountPages);\n }\n },\n };\n pageButtons.push(this.getPageButton(0));\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n\n if (hasOverflowEnd) {\n start = this.count - this.maxCountPages + 2;\n } else {\n start = this.count - this.maxCountPages + 2;\n end = this.count;\n }\n }\n\n if (hasOverflowEnd) {\n if (hasOverflowStart) {\n start = this.selectedPage - pageCount;\n end = this.selectedPage + pageCount + 1;\n } else {\n end = this.maxCountPages - 2;\n }\n }\n\n for (let i = start; i < end; i++) {\n pageButtons.push(this.getPageButton(i));\n }\n\n if (hasOverflowEnd) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowStart) {\n this.selectPage(this.selectedPage + Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.maxCountPages - 1);\n }\n },\n };\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n pageButtons.push(this.getPageButton(this.count - 1));\n }\n\n return <span class=\"page-buttons\">{pageButtons}</span>;\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n disabled={!this.count || this.selectedPage === 0}\n variant=\"subtle-tertiary\"\n icon={iconChevronLeftSmall}\n onClick={() => this.decrease()}\n aria-label={this.ariaLabelChevronLeftIconButton}\n ></ix-icon-button>\n\n {this.advanced ? (\n <div class=\"advanced-pagination\">\n <ix-typography format=\"body\">{this.i18nPage}</ix-typography>\n <input\n class=\"ix-form-control page-selection\"\n type=\"number\"\n min=\"1\"\n max={this.count}\n value={this.selectedPage + 1}\n onChange={(event: Event) => {\n const eventTarget = event.target as HTMLInputElement;\n if (eventTarget) {\n const index = Number.parseInt(eventTarget.value);\n this.selectPage(index - 1);\n }\n }}\n />\n <span class=\"total-count\">\n <ix-typography format=\"body\">\n {this.i18nOf} {this.count}\n </ix-typography>\n </span>\n </div>\n ) : (\n <span class=\"basic-pagination\">{this.renderPageButtons()} </span>\n )}\n\n <ix-icon-button\n disabled={!this.count || this.selectedPage === this.count - 1}\n variant=\"subtle-tertiary\"\n icon={iconChevronRightSmall}\n onClick={() => this.increase()}\n aria-label={this.ariaLabelChevronRightIconButton}\n ></ix-icon-button>\n\n {this.advanced && !this.hideItemCount && (\n <span class=\"item-count\">\n <ix-typography format=\"body\">{this.i18nItems}</ix-typography>\n <ix-select\n hideListHeader\n i18nPlaceholder=\"\"\n i18nSelectListHeader=\"\"\n value={`${this.itemCount}`}\n onValueChange={(e) => {\n const count = Number.parseInt(\n Array.isArray(e.detail) ? e.detail[0] : e.detail\n );\n\n this.itemCountChanged.emit(count);\n }}\n >\n <ix-select-item label=\"10\" value=\"10\"></ix-select-item>\n <ix-select-item label=\"15\" value=\"15\"></ix-select-item>\n <ix-select-item label=\"20\" value=\"20\"></ix-select-item>\n <ix-select-item label=\"40\" value=\"40\"></ix-select-item>\n <ix-select-item label=\"100\" value=\"100\"></ix-select-item>\n </ix-select>\n </span>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -14,13 +14,13 @@ export class PushCard {
|
|
|
14
14
|
*/
|
|
15
15
|
this.variant = 'outline';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Expand the card
|
|
18
18
|
*/
|
|
19
|
-
this.
|
|
19
|
+
this.expanded = false;
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
var _a;
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '2efb8c3e1cef2982fd541551b99a2ca3d725f88f', class: `card-${this.variant}` }, h("ix-card", { key: 'c6da08a4a3fc532a2daad8c6e32dafd4b7c5c910', variant: this.variant }, h("ix-card-content", { key: 'b643cd9cbbbd9eefa4d109716305df17fcd166bd' }, h("ix-card-title", { key: '00bcf0cacec61bf55097c10a137ef6f91277af63' }, this.icon ? (h("ix-icon", { class: 'icon', name: this.icon, size: "32", "aria-label": this.ariaLabelIcon })) : null, h("ix-typography", { key: '4eedace9e148590b19b8cb694b472d4043cbfbdf', format: "display-xxl" }, (_a = this.notification) !== null && _a !== void 0 ? _a : 0), h("slot", { key: '1393feecddcb4a5794290b1f571e58c7ee4cc2c1', name: "title-action" })), h("ix-typography", { key: 'fcee8f842f8f00be0174bb44d78f297b5b8e6f8b', format: "h4" }, this.heading), h("ix-typography", { key: 'f0018324a94d5c9c3026afe39979260b6bb94c2a' }, this.subheading)), h("ix-card-accordion", { key: 'da2ef25cdeeb0d6c931a4d6cca91beb36a05f081', collapse: !this.expanded, variant: this.variant }, h("slot", { key: '5ef36bf26050df5b5a57c6725adc133367c266b5' })))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "ix-push-card"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,9 +160,9 @@ export class PushCard {
|
|
|
160
160
|
"reflect": false,
|
|
161
161
|
"defaultValue": "'outline'"
|
|
162
162
|
},
|
|
163
|
-
"
|
|
163
|
+
"expanded": {
|
|
164
164
|
"type": "boolean",
|
|
165
|
-
"attribute": "
|
|
165
|
+
"attribute": "expanded",
|
|
166
166
|
"mutable": false,
|
|
167
167
|
"complexType": {
|
|
168
168
|
"original": "boolean",
|
|
@@ -173,12 +173,12 @@ export class PushCard {
|
|
|
173
173
|
"optional": false,
|
|
174
174
|
"docs": {
|
|
175
175
|
"tags": [],
|
|
176
|
-
"text": "
|
|
176
|
+
"text": "Expand the card"
|
|
177
177
|
},
|
|
178
178
|
"getter": false,
|
|
179
179
|
"setter": false,
|
|
180
180
|
"reflect": false,
|
|
181
|
-
"defaultValue": "
|
|
181
|
+
"defaultValue": "false"
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-card.js","sourceRoot":"","sources":["../../../src/components/push-card/push-card.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Prop } from '@stencil/core';\nimport type { PushCardVariant } from './push-card.types';\n\n@Component({\n tag: 'ix-push-card',\n styleUrl: 'push-card.scss',\n shadow: true,\n})\nexport class PushCard {\n /**\n * Card icon\n */\n @Prop() icon?: string;\n\n /**\n * ARIA label for the icon\n *\n * @since 3.2.0\n */\n @Prop() ariaLabelIcon?: string;\n\n /**\n * Card KPI value\n */\n @Prop() notification?: string;\n\n /**\n * Card heading\n */\n @Prop() heading?: string;\n\n /**\n * Card subheading\n */\n @Prop() subheading?: string;\n\n /**\n * Card variant\n */\n @Prop() variant: PushCardVariant = 'outline';\n\n /**\n * Expand the card\n */\n @Prop() expanded: boolean = false;\n\n render() {\n return (\n <Host class={`card-${this.variant}`}>\n <ix-card variant={this.variant}>\n <ix-card-content>\n <ix-card-title>\n {this.icon ? (\n <ix-icon\n class={'icon'}\n name={this.icon}\n size=\"32\"\n aria-label={this.ariaLabelIcon}\n ></ix-icon>\n ) : null}\n <ix-typography format=\"display-xxl\">\n {this.notification ?? 0}\n </ix-typography>\n <slot name=\"title-action\"></slot>\n </ix-card-title>\n <ix-typography format=\"h4\">{this.heading}</ix-typography>\n <ix-typography>{this.subheading}</ix-typography>\n </ix-card-content>\n <ix-card-accordion collapse={!this.expanded} variant={this.variant}>\n <slot></slot>\n </ix-card-accordion>\n </ix-card>\n </Host>\n );\n }\n}\n"]}
|