@siemens/ix 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/READMEOSS.html +331 -0
- package/components/index.js +3 -3
- package/components/index.js.map +1 -1
- package/components/ix-application-header.js +1 -1
- package/components/ix-application-switch-modal.js +4 -4
- package/components/ix-avatar.js +1 -1
- package/components/ix-basic-navigation.js +4 -4
- package/components/ix-blind.js +2 -2
- package/components/ix-blind.js.map +1 -1
- package/components/ix-breadcrumb-item.js +1 -1
- package/components/ix-breadcrumb.js +3 -3
- package/components/ix-button.js +1 -1
- package/components/ix-card-accordion.js +1 -1
- package/components/ix-card-list.js +3 -3
- package/components/ix-category-filter.js +5 -5
- package/components/ix-category-filter.js.map +1 -1
- package/components/ix-checkbox-group.js +3 -3
- package/components/ix-checkbox-group.js.map +1 -1
- package/components/ix-chip.js +7 -6
- package/components/ix-chip.js.map +1 -1
- package/components/ix-content-header.js +2 -2
- package/components/ix-custom-field.js +1 -1
- package/components/ix-date-dropdown.js +6 -6
- package/components/ix-date-input.js +15 -10
- package/components/ix-date-input.js.map +1 -1
- package/components/ix-date-picker.js +1 -1
- package/components/ix-datetime-picker.js +5 -5
- package/components/ix-drawer.js +2 -2
- package/components/ix-dropdown-button.js +4 -4
- package/components/ix-dropdown-item.js +1 -1
- package/components/ix-dropdown.js +1 -1
- package/components/ix-empty-state.js +1 -1
- package/components/ix-event-list-item.js +2 -2
- package/components/ix-event-list-item.js.map +1 -1
- package/components/ix-expanding-search.js +3 -3
- package/components/ix-expanding-search.js.map +1 -1
- package/components/ix-field-wrapper.js +1 -1
- package/components/ix-filter-chip.js +1 -1
- package/components/ix-flip-tile.js +2 -2
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group.js +4 -4
- package/components/ix-group.js.map +1 -1
- package/components/ix-helper-text.js +1 -1
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +11 -3
- package/components/ix-icon-toggle-button.js.map +1 -1
- package/components/ix-input.js +10 -9
- package/components/ix-input.js.map +1 -1
- package/components/ix-kpi.js +2 -2
- package/components/ix-kpi.js.map +1 -1
- package/components/ix-link-button.js +2 -2
- package/components/ix-link-button.js.map +1 -1
- package/components/ix-map-navigation-overlay.js +1 -1
- package/components/ix-map-navigation.js +6 -6
- package/components/ix-menu-about-news.js +3 -3
- package/components/ix-menu-about.js +3 -3
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +6 -6
- package/components/ix-menu-avatar.js.map +1 -1
- package/components/ix-menu-category.js +4 -4
- package/components/ix-menu-expand-icon.js +1 -1
- package/components/ix-menu-item.js +1 -1
- package/components/ix-menu-settings.js +1 -1
- package/components/ix-menu.js +5 -5
- package/components/ix-message-bar.js +2 -2
- package/components/ix-modal-header.js +1 -1
- package/components/ix-number-input.js +3 -3
- package/components/ix-pagination.js +9 -9
- package/components/ix-pagination.js.map +1 -1
- package/components/ix-pane.js +2 -2
- package/components/ix-pill.js +3 -4
- package/components/ix-pill.js.map +1 -1
- package/components/ix-push-card.js +1 -1
- package/components/ix-radio-group.js +3 -3
- package/components/ix-radio-group.js.map +1 -1
- package/components/ix-radio.js +4 -4
- package/components/ix-radio.js.map +1 -1
- package/components/ix-select-item.js +1 -1
- package/components/ix-select.js +1 -1
- package/components/ix-slider.js +7 -7
- package/components/ix-slider.js.map +1 -1
- package/components/ix-split-button.js +4 -4
- package/components/ix-tabs.js +1 -1
- package/components/ix-textarea.js +1 -1
- package/components/ix-time-picker.js +1 -1
- package/components/ix-toast-container.js +2 -2
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle.js +1 -1
- package/components/ix-toggle.js.map +1 -1
- package/components/ix-tree-item.js +1 -1
- package/components/ix-tree.js +1 -1
- package/components/ix-upload.js +2 -2
- package/components/ix-workflow-step.js +1 -1
- package/components/{p-zx7LlxPa.js → p-B7KL9wqA.js} +4 -4
- package/components/{p-zx7LlxPa.js.map → p-B7KL9wqA.js.map} +1 -1
- package/components/{p-CPs2id8p.js → p-B7hM-Ptf.js} +5 -5
- package/components/{p-CPs2id8p.js.map → p-B7hM-Ptf.js.map} +1 -1
- package/components/{p-CGLA6FT7.js → p-BDlUCzdQ.js} +3 -3
- package/components/{p-CGLA6FT7.js.map → p-BDlUCzdQ.js.map} +1 -1
- package/components/{p-BDzoigTw.js → p-BGFYBgKJ.js} +3 -3
- package/components/{p-BDzoigTw.js.map → p-BGFYBgKJ.js.map} +1 -1
- package/components/{p-FayACwNG.js → p-BMylJWWP.js} +6 -6
- package/components/{p-FayACwNG.js.map → p-BMylJWWP.js.map} +1 -1
- package/components/{p-CwYYFZjd.js → p-B_o_wd-4.js} +3 -3
- package/components/{p-CwYYFZjd.js.map → p-B_o_wd-4.js.map} +1 -1
- package/components/{p-Dn_WjwtW.js → p-BdCskL_j.js} +4 -3
- package/components/p-BdCskL_j.js.map +1 -0
- package/components/{p-Cyxle5Ec.js → p-Bh9l8HMz.js} +3 -3
- package/components/{p-Cyxle5Ec.js.map → p-Bh9l8HMz.js.map} +1 -1
- package/components/{p-D9Zr-lKz.js → p-BkWyDnfx.js} +8 -7
- package/components/p-BkWyDnfx.js.map +1 -0
- package/components/{p-CxztL6IE.js → p-BkmSD6MC.js} +10 -10
- package/components/{p-CxztL6IE.js.map → p-BkmSD6MC.js.map} +1 -1
- package/components/{p-uhiF1LKf.js → p-BrRMtQIh.js} +3 -3
- package/components/{p-uhiF1LKf.js.map → p-BrRMtQIh.js.map} +1 -1
- package/components/p-CPUiQJXe.js +151 -0
- package/components/p-CPUiQJXe.js.map +1 -0
- package/components/{p-VXLdiXU0.js → p-CRSLovo3.js} +6 -6
- package/components/{p-VXLdiXU0.js.map → p-CRSLovo3.js.map} +1 -1
- package/components/p-CUVSwwVj.js +130 -0
- package/components/{p-d7CnwTHv.js.map → p-CUVSwwVj.js.map} +1 -1
- package/components/{p-BXPo5zF6.js → p-CaRgDWxT.js} +4 -4
- package/components/{p-BXPo5zF6.js.map → p-CaRgDWxT.js.map} +1 -1
- package/components/{p-BtKUjD8M.js → p-CnWYvVQ3.js} +3 -3
- package/components/{p-BtKUjD8M.js.map → p-CnWYvVQ3.js.map} +1 -1
- package/components/{p-DuEVN6w5.js → p-CqoVeXMY.js} +3 -3
- package/components/{p-DuEVN6w5.js.map → p-CqoVeXMY.js.map} +1 -1
- package/components/{p-CTuKljhZ.js → p-CtwIu3QJ.js} +4 -4
- package/components/{p-CTuKljhZ.js.map → p-CtwIu3QJ.js.map} +1 -1
- package/components/{p-DAYuUWi5.js → p-D0ry5azH.js} +4 -4
- package/components/{p-DAYuUWi5.js.map → p-D0ry5azH.js.map} +1 -1
- package/components/{p-QHGR-zzJ.js → p-D8SFajOg.js} +4 -4
- package/components/{p-QHGR-zzJ.js.map → p-D8SFajOg.js.map} +1 -1
- package/components/{p-BBozAuYN.js → p-D9C7eJG_.js} +3 -3
- package/components/{p-BBozAuYN.js.map → p-D9C7eJG_.js.map} +1 -1
- package/components/p-DEBkXmnp.js +103 -0
- package/components/{p-HblhO3lB.js.map → p-DEBkXmnp.js.map} +1 -1
- package/components/{p-uv1SlmiP.js → p-DFvn_bf5.js} +3 -3
- package/components/{p-uv1SlmiP.js.map → p-DFvn_bf5.js.map} +1 -1
- package/components/{p-R4QcECdA.js → p-DZQl3d7c.js} +4 -4
- package/components/{p-R4QcECdA.js.map → p-DZQl3d7c.js.map} +1 -1
- package/components/{p-elgF4vOp.js → p-DjCDFG2y.js} +3 -3
- package/components/{p-elgF4vOp.js.map → p-DjCDFG2y.js.map} +1 -1
- package/components/{p-BPVegBx7.js → p-EaMVU4l2.js} +7 -7
- package/components/{p-BPVegBx7.js.map → p-EaMVU4l2.js.map} +1 -1
- package/components/{p-DPZN-4Ph.js → p-jGKKq0c2.js} +3 -3
- package/components/{p-DPZN-4Ph.js.map → p-jGKKq0c2.js.map} +1 -1
- package/components/{p-Bcmjgmqd.js → p-wwfcx9O8.js} +4 -4
- package/components/{p-Bcmjgmqd.js.map → p-wwfcx9O8.js.map} +1 -1
- package/dist/cjs/{helper-text-util-Dk2i8B86.js → helper-text-util-BHdcI0ys.js} +3 -3
- package/dist/cjs/{helper-text-util-Dk2i8B86.js.map → helper-text-util-BHdcI0ys.js.map} +1 -1
- package/dist/cjs/{index-IWZYsRU-.js → index-BHnoO_aB.js} +3 -3
- package/dist/cjs/{index-IWZYsRU-.js.map → index-BHnoO_aB.js.map} +1 -1
- package/dist/cjs/{index-DIFIjYrm.js → index-Dlx7IaH3.js} +4 -2
- package/dist/cjs/{index-DIFIjYrm.js.map → index-Dlx7IaH3.js.map} +1 -1
- package/dist/cjs/index.cjs.js +3 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +3 -3
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
- 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-avatar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +2 -2
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +27 -10
- package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-category-filter.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-checkbox-group.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +6 -5
- package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-col_4.cjs.entry.js +1 -1
- package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-input.cjs.entry.js +10 -5
- package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-event-list-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +2 -2
- package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-expanding-search.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-field-label_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-group.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-helper-text.cjs.entry.js +2 -2
- 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-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +10 -3
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-toggle-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-input.cjs.entry.js +8 -7
- package/dist/cjs/ix-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +2 -2
- package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-kpi.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-link-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-link-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ix-map-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/{ix-menu-settings-WDbyAxNK.js → ix-menu-settings-CYHpPffQ.js} +3 -3
- package/dist/cjs/{ix-menu-settings-WDbyAxNK.js.map → ix-menu-settings-CYHpPffQ.js.map} +1 -1
- package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu.cjs.entry.js +3 -3
- package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ix-pagination.cjs.entry.js +2 -2
- package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pagination.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +3 -4
- package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pill.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-radio-group.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-radio.cjs.entry.js +4 -4
- package/dist/cjs/ix-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-select.cjs.entry.js +2 -2
- package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-select.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-slider.cjs.entry.js +7 -7
- package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-time-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast.cjs.entry.js +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toggle.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-step.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{modal-CY_zQjvm.js → modal-CtDjLn9c.js} +8 -7
- package/dist/cjs/modal-CtDjLn9c.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/collection/components/action-card/action-card.js +3 -3
- package/dist/collection/components/application/application.js +3 -3
- package/dist/collection/components/application-header/application-header.js +2 -2
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
- package/dist/collection/components/avatar/avatar.css +2 -2
- package/dist/collection/components/avatar/avatar.js +4 -4
- package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
- package/dist/collection/components/blind/blind.css +7 -7
- package/dist/collection/components/blind/blind.js +3 -3
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +30 -30
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/collection/components/button/button.css +18 -18
- package/dist/collection/components/button/button.js +53 -11
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/button/test/button.ct.js +69 -0
- package/dist/collection/components/button/test/button.ct.js.map +1 -1
- package/dist/collection/components/card-list/card-list.js +2 -2
- package/dist/collection/components/category-filter/category-filter.css +22 -22
- package/dist/collection/components/category-filter/category-filter.js +7 -7
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/checkbox-group/checkbox-group.js +8 -8
- package/dist/collection/components/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/collection/components/chip/chip.css +24 -8
- package/dist/collection/components/chip/chip.js +7 -6
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/col/col.js +4 -4
- package/dist/collection/components/content-header/content-header.js +2 -2
- package/dist/collection/components/css-grid/css-grid.js +1 -1
- package/dist/collection/components/custom-field/custom-field.js +7 -7
- package/dist/collection/components/date-dropdown/date-dropdown.js +2 -2
- package/dist/collection/components/date-input/date-input.js +24 -19
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.js +8 -8
- package/dist/collection/components/date-time-card/date-time-card.js +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +9 -9
- package/dist/collection/components/drawer/drawer.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +5 -5
- package/dist/collection/components/dropdown/test/dropdown.ct.js +31 -0
- package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
- package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +2 -2
- package/dist/collection/components/empty-state/empty-state.js +3 -3
- package/dist/collection/components/event-list-item/event-list-item.css +2 -2
- package/dist/collection/components/event-list-item/event-list-item.js +1 -1
- package/dist/collection/components/expanding-search/expanding-search.css +4 -4
- package/dist/collection/components/expanding-search/expanding-search.js +1 -1
- package/dist/collection/components/field-label/field-label.js +3 -3
- package/dist/collection/components/field-wrapper/field-wrapper.js +8 -8
- package/dist/collection/components/flip-tile/flip-tile.js +1 -1
- package/dist/collection/components/group/group.css +2 -2
- package/dist/collection/components/group/group.js +3 -3
- package/dist/collection/components/group-item/group-item.js +4 -4
- package/dist/collection/components/helper-text/helper-text.js +6 -6
- package/dist/collection/components/icon-button/icon-button.css +18 -18
- package/dist/collection/components/icon-button/icon-button.js +3 -3
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +18 -18
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +33 -3
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -1
- package/dist/collection/components/input/input.js +21 -20
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/number-input.js +16 -16
- package/dist/collection/components/input/textarea.js +16 -16
- package/dist/collection/components/key-value/key-value.js +2 -2
- package/dist/collection/components/kpi/kpi.css +1 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/link-button/link-button.css +2 -2
- package/dist/collection/components/link-button/link-button.js +1 -1
- package/dist/collection/components/map-navigation/map-navigation.js +5 -5
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +4 -4
- package/dist/collection/components/menu/menu-expand-icon.js +1 -1
- package/dist/collection/components/menu/menu.js +3 -3
- package/dist/collection/components/menu-about/menu-about.js +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 +2 -2
- package/dist/collection/components/menu-avatar/menu-avatar.css +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.js +4 -4
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +2 -2
- package/dist/collection/components/menu-category/menu-category.js +3 -3
- package/dist/collection/components/menu-item/menu-item.js +3 -3
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/modal/test/modal.ct.js +48 -0
- package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
- package/dist/collection/components/modal-header/modal-header.js +2 -2
- package/dist/collection/components/pagination/pagination.css +21 -21
- package/dist/collection/components/pane/pane.js +2 -2
- package/dist/collection/components/pill/pill.css +24 -8
- package/dist/collection/components/pill/pill.js +5 -6
- package/dist/collection/components/pill/pill.js.map +1 -1
- package/dist/collection/components/push-card/push-card.js +4 -4
- package/dist/collection/components/radio/radio.js +8 -8
- package/dist/collection/components/radio/radio.js.map +1 -1
- package/dist/collection/components/radio-group/radio-group.js +11 -11
- package/dist/collection/components/radio-group/radio-group.js.map +1 -1
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +11 -11
- package/dist/collection/components/select/test/select.ct.js +35 -0
- package/dist/collection/components/select/test/select.ct.js.map +1 -1
- package/dist/collection/components/select-item/select-item.js +2 -2
- package/dist/collection/components/slider/slider.js +9 -9
- package/dist/collection/components/slider/slider.js.map +1 -1
- package/dist/collection/components/split-button/split-button.js +3 -3
- package/dist/collection/components/tab-item/tab-item.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +3 -3
- package/dist/collection/components/time-picker/time-picker.js +3 -3
- package/dist/collection/components/toast/toast-utils.js +1 -1
- package/dist/collection/components/toast/toast-utils.js.map +1 -1
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.css +1 -1
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/components/tree/tree.js +2 -2
- package/dist/collection/components/tree-item/tree-item.js +2 -2
- package/dist/collection/components/typography/typography.js +2 -2
- package/dist/collection/components/upload/upload.js +1 -1
- package/dist/collection/components/utils/modal/message.js +6 -5
- package/dist/collection/components/utils/modal/message.js.map +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +1 -1
- package/dist/esm/{helper-text-util-DR9KOBuX.js → helper-text-util-CBxdYPv4.js} +3 -3
- package/dist/esm/{helper-text-util-DR9KOBuX.js.map → helper-text-util-CBxdYPv4.js.map} +1 -1
- package/dist/esm/{index-CpUAGkLr.js → index-8QmwFVqu.js} +3 -3
- package/dist/esm/{index-CpUAGkLr.js.map → index-8QmwFVqu.js.map} +1 -1
- package/dist/esm/{index-CrTP-icT.js → index-v48bcPT9.js} +4 -3
- package/dist/esm/{index-CrTP-icT.js.map → index-v48bcPT9.js.map} +1 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +3 -3
- package/dist/esm/ix-application-switch-modal.entry.js +2 -2
- 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-avatar_2.entry.js.map +1 -1
- package/dist/esm/ix-blind.entry.js +2 -2
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
- package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/ix-button.entry.js +27 -10
- package/dist/esm/ix-button.entry.js.map +1 -1
- package/dist/esm/ix-card-accordion_2.entry.js +1 -1
- package/dist/esm/ix-card-list.entry.js +1 -1
- package/dist/esm/ix-category-filter.entry.js +2 -2
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-checkbox-group.entry.js +2 -2
- package/dist/esm/ix-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ix-chip.entry.js +6 -5
- package/dist/esm/ix-chip.entry.js.map +1 -1
- package/dist/esm/ix-col_4.entry.js +1 -1
- package/dist/esm/ix-content-header.entry.js +1 -1
- package/dist/esm/ix-date-dropdown.entry.js +1 -1
- package/dist/esm/ix-date-input.entry.js +10 -5
- package/dist/esm/ix-date-input.entry.js.map +1 -1
- package/dist/esm/ix-drawer.entry.js +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +1 -1
- package/dist/esm/ix-dropdown-item.entry.js +1 -1
- package/dist/esm/ix-dropdown.entry.js +1 -1
- package/dist/esm/ix-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-event-list-item.entry.js +2 -2
- package/dist/esm/ix-event-list-item.entry.js.map +1 -1
- package/dist/esm/ix-expanding-search.entry.js +2 -2
- package/dist/esm/ix-expanding-search.entry.js.map +1 -1
- package/dist/esm/ix-field-label_2.entry.js +2 -2
- package/dist/esm/ix-filter-chip_2.entry.js +1 -1
- package/dist/esm/ix-flip-tile.entry.js +1 -1
- package/dist/esm/ix-group-context-menu_2.entry.js +1 -1
- package/dist/esm/ix-group.entry.js +2 -2
- package/dist/esm/ix-group.entry.js.map +1 -1
- package/dist/esm/ix-helper-text.entry.js +2 -2
- 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-button_2.entry.js.map +1 -1
- package/dist/esm/ix-icon-toggle-button.entry.js +10 -3
- package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
- package/dist/esm/ix-input.entry.js +8 -7
- package/dist/esm/ix-input.entry.js.map +1 -1
- package/dist/esm/ix-kpi.entry.js +2 -2
- package/dist/esm/ix-kpi.entry.js.map +1 -1
- package/dist/esm/ix-link-button.entry.js +2 -2
- package/dist/esm/ix-link-button.entry.js.map +1 -1
- package/dist/esm/ix-map-navigation-overlay.entry.js +1 -1
- package/dist/esm/ix-map-navigation.entry.js +1 -1
- package/dist/esm/ix-menu-about-news.entry.js +1 -1
- package/dist/esm/ix-menu-about.entry.js +2 -2
- package/dist/esm/ix-menu-avatar.entry.js +2 -2
- package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
- package/dist/esm/ix-menu-category.entry.js +1 -1
- package/dist/esm/ix-menu-expand-icon.entry.js +1 -1
- package/dist/esm/ix-menu-item.entry.js +1 -1
- package/dist/esm/{ix-menu-settings-B4RirRi3.js → ix-menu-settings-ofXmUBnS.js} +3 -3
- package/dist/esm/{ix-menu-settings-B4RirRi3.js.map → ix-menu-settings-ofXmUBnS.js.map} +1 -1
- package/dist/esm/ix-menu-settings.entry.js +2 -2
- package/dist/esm/ix-menu.entry.js +3 -3
- package/dist/esm/ix-message-bar.entry.js +1 -1
- package/dist/esm/ix-modal-content_2.entry.js +1 -1
- package/dist/esm/ix-number-input.entry.js +1 -1
- package/dist/esm/ix-pagination.entry.js +2 -2
- package/dist/esm/ix-pagination.entry.js.map +1 -1
- package/dist/esm/ix-pane.entry.js +1 -1
- package/dist/esm/ix-pill.entry.js +3 -4
- package/dist/esm/ix-pill.entry.js.map +1 -1
- package/dist/esm/ix-radio-group.entry.js +2 -2
- package/dist/esm/ix-radio-group.entry.js.map +1 -1
- package/dist/esm/ix-radio.entry.js +4 -4
- package/dist/esm/ix-radio.entry.js.map +1 -1
- package/dist/esm/ix-select.entry.js +2 -2
- package/dist/esm/ix-select.entry.js.map +1 -1
- package/dist/esm/ix-slider.entry.js +7 -7
- package/dist/esm/ix-slider.entry.js.map +1 -1
- package/dist/esm/ix-split-button.entry.js +1 -1
- package/dist/esm/ix-tab-item_2.entry.js +1 -1
- package/dist/esm/ix-time-picker.entry.js +2 -2
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast.entry.js +1 -1
- package/dist/esm/ix-toggle.entry.js +1 -1
- package/dist/esm/ix-toggle.entry.js.map +1 -1
- package/dist/esm/ix-tree-item.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-workflow-step.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{modal-DUew4SCE.js → modal-hSHQdjTH.js} +8 -7
- package/dist/esm/modal-hSHQdjTH.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-blind.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-breadcrumb-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-category-filter.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-checkbox-group.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-chip.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-input.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-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-expanding-search.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-icon-toggle-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-kpi.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-link-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-avatar.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pagination.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pill.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-radio-group.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-radio.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-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toggle.entry.esm.js.map +1 -1
- package/dist/siemens-ix/p-02d3b161.entry.js +2 -0
- package/dist/siemens-ix/{p-78f99962.entry.js.map → p-02d3b161.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-a289764d.entry.js → p-07da3f73.entry.js} +2 -2
- package/dist/siemens-ix/{p-a289764d.entry.js.map → p-07da3f73.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-b11fe6c8.entry.js → p-09e44529.entry.js} +2 -2
- package/dist/siemens-ix/{p-af701797.entry.js → p-0e072d3b.entry.js} +2 -2
- package/dist/siemens-ix/{p-827653a3.entry.js → p-0fd654c3.entry.js} +2 -2
- package/dist/siemens-ix/p-12a439b5.entry.js +2 -0
- package/dist/siemens-ix/{p-8e525190.entry.js.map → p-12a439b5.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-9bbca220.entry.js → p-19d1ccda.entry.js} +2 -2
- package/dist/siemens-ix/{p-07c17517.entry.js → p-1f7453c6.entry.js} +2 -2
- package/dist/siemens-ix/{p-d2da2e45.entry.js → p-25132109.entry.js} +2 -2
- package/dist/siemens-ix/{p-ac4548a8.entry.js → p-260f60b2.entry.js} +2 -2
- package/dist/siemens-ix/{p-70cbacb8.entry.js → p-270566ba.entry.js} +2 -2
- package/dist/siemens-ix/{p-70cbacb8.entry.js.map → p-270566ba.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-aca27756.entry.js → p-29f30c68.entry.js} +2 -2
- package/dist/siemens-ix/p-2bea83e5.entry.js +2 -0
- package/dist/siemens-ix/p-2bea83e5.entry.js.map +1 -0
- package/dist/siemens-ix/{p-9646b346.entry.js → p-2d5b40e2.entry.js} +2 -2
- package/dist/siemens-ix/{p-8804a378.entry.js → p-2faf52f9.entry.js} +2 -2
- package/dist/siemens-ix/p-2faf52f9.entry.js.map +1 -0
- package/dist/siemens-ix/p-31e1093d.entry.js +2 -0
- package/dist/siemens-ix/{p-215df096.entry.js.map → p-31e1093d.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-163e742f.entry.js → p-3abfe41a.entry.js} +2 -2
- package/dist/siemens-ix/{p-163e742f.entry.js.map → p-3abfe41a.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-79febe81.entry.js → p-3cba58aa.entry.js} +2 -2
- package/dist/siemens-ix/{p-ca328fc2.entry.js → p-3edf32c2.entry.js} +2 -2
- package/dist/siemens-ix/p-4712afcc.entry.js +2 -0
- package/dist/siemens-ix/{p-18a47d9f.entry.js.map → p-4712afcc.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-a963c368.entry.js → p-47bb727f.entry.js} +2 -2
- package/dist/siemens-ix/p-4ab41e0d.entry.js +2 -0
- package/dist/siemens-ix/p-4ab41e0d.entry.js.map +1 -0
- package/dist/siemens-ix/{p-cbf6c3bf.entry.js → p-4b8fefdc.entry.js} +2 -2
- package/dist/siemens-ix/{p-1ff3556a.entry.js → p-4f631774.entry.js} +2 -2
- package/dist/siemens-ix/{p-6de38c2a.entry.js → p-501c0a17.entry.js} +2 -2
- package/dist/siemens-ix/p-501c0a17.entry.js.map +1 -0
- package/dist/siemens-ix/{p-09b83f0e.entry.js → p-51cbd678.entry.js} +2 -2
- package/dist/siemens-ix/{p-ee76fac1.entry.js → p-545498c8.entry.js} +2 -2
- package/dist/siemens-ix/{p-dd11dd49.entry.js → p-573527cc.entry.js} +2 -2
- package/dist/siemens-ix/{p-dd11dd49.entry.js.map → p-573527cc.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-8702121e.entry.js → p-58609f3a.entry.js} +2 -2
- package/dist/siemens-ix/p-587541f3.entry.js +2 -0
- package/dist/siemens-ix/{p-5b0d1cc9.entry.js.map → p-587541f3.entry.js.map} +1 -1
- package/dist/siemens-ix/p-593a640f.entry.js +2 -0
- package/dist/siemens-ix/{p-ff072152.entry.js.map → p-593a640f.entry.js.map} +1 -1
- package/dist/siemens-ix/p-5ebce6e6.entry.js +2 -0
- package/dist/siemens-ix/p-61dc07d9.entry.js +2 -0
- package/dist/siemens-ix/p-61dc07d9.entry.js.map +1 -0
- package/dist/siemens-ix/{p-158d9068.entry.js → p-66eaa236.entry.js} +2 -2
- package/dist/siemens-ix/{p-521dfa2a.entry.js → p-6cd1047e.entry.js} +2 -2
- package/dist/siemens-ix/p-6d3cf3f3.entry.js +2 -0
- package/dist/siemens-ix/p-6d3cf3f3.entry.js.map +1 -0
- package/dist/siemens-ix/p-758e81ae.entry.js +2 -0
- package/dist/siemens-ix/{p-ca8a2b16.entry.js.map → p-758e81ae.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-d132ce81.entry.js → p-798907cb.entry.js} +2 -2
- package/dist/siemens-ix/{p-7535cbf6.entry.js → p-79fc8e7f.entry.js} +2 -2
- package/dist/siemens-ix/p-8858e9b8.entry.js +2 -0
- package/dist/siemens-ix/{p-071f63d6.entry.js.map → p-8858e9b8.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-1d28d516.entry.js → p-8e5ac73d.entry.js} +2 -2
- package/dist/siemens-ix/{p-8c24d360.entry.js → p-8eba36e2.entry.js} +2 -2
- package/dist/siemens-ix/{p-44670707.entry.js → p-9bd19df7.entry.js} +2 -2
- package/dist/siemens-ix/{p-CFHLJNAe.js → p-BhiPH59d.js} +2 -2
- package/dist/siemens-ix/{p-CFHLJNAe.js.map → p-BhiPH59d.js.map} +1 -1
- package/dist/siemens-ix/p-C9vPes-N.js +2 -0
- package/dist/siemens-ix/p-C9vPes-N.js.map +1 -0
- package/dist/siemens-ix/{p-BKgqKHZU.js → p-D81W7llw.js} +2 -2
- package/dist/siemens-ix/{p-BKgqKHZU.js.map → p-D81W7llw.js.map} +1 -1
- package/dist/siemens-ix/{p-06843648.entry.js → p-a25bd5ef.entry.js} +2 -2
- package/dist/siemens-ix/{p-bf8e97d7.entry.js → p-a2bcae6b.entry.js} +2 -2
- package/dist/siemens-ix/{p-dd627440.entry.js → p-a797e935.entry.js} +2 -2
- package/dist/siemens-ix/p-ad6b0196.entry.js +2 -0
- package/dist/siemens-ix/{p-a4d17743.entry.js.map → p-ad6b0196.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-19e9505f.entry.js → p-b60d8b91.entry.js} +2 -2
- package/dist/siemens-ix/{p-2e4b9c1a.entry.js → p-c0df311f.entry.js} +2 -2
- package/dist/siemens-ix/{p-37f6a541.entry.js → p-c9050427.entry.js} +2 -2
- package/dist/siemens-ix/p-cabf35ff.entry.js +2 -0
- package/dist/siemens-ix/{p-781e0057.entry.js.map → p-cabf35ff.entry.js.map} +1 -1
- package/dist/siemens-ix/p-cc7bbfe5.entry.js +2 -0
- package/dist/siemens-ix/p-cc7bbfe5.entry.js.map +1 -0
- package/dist/siemens-ix/p-d1039043.entry.js +2 -0
- package/dist/siemens-ix/p-d1039043.entry.js.map +1 -0
- package/dist/siemens-ix/{p-2b496519.entry.js → p-d3a4559a.entry.js} +2 -2
- package/dist/siemens-ix/{p-32488953.entry.js → p-d691ca65.entry.js} +2 -2
- package/dist/siemens-ix/p-d691ca65.entry.js.map +1 -0
- package/dist/siemens-ix/{p-b6966cc0.entry.js → p-e40c7369.entry.js} +2 -2
- package/dist/siemens-ix/{p-8df5873d.entry.js → p-e50edf8d.entry.js} +2 -2
- package/dist/siemens-ix/{p-8df5873d.entry.js.map → p-e50edf8d.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-ea310106.entry.js → p-e8c1c88f.entry.js} +2 -2
- package/dist/siemens-ix/{p-BXguuvvE.js → p-eKeYJJIg.js} +2 -2
- package/dist/siemens-ix/{p-BXguuvvE.js.map → p-eKeYJJIg.js.map} +1 -1
- package/dist/siemens-ix/p-eefe2629.entry.js +2 -0
- package/dist/siemens-ix/{p-23a50a0c.entry.js.map → p-eefe2629.entry.js.map} +1 -1
- package/dist/siemens-ix/p-f18ea6b8.entry.js +2 -0
- package/dist/siemens-ix/p-f18ea6b8.entry.js.map +1 -0
- package/dist/siemens-ix/{p-CrTP-icT.js → p-v48bcPT9.js} +2 -2
- package/dist/siemens-ix/{p-CrTP-icT.js.map → p-v48bcPT9.js.map} +1 -1
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix.css +14 -3
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/application-header/application-header.d.ts +1 -1
- package/dist/types/components/application-sidebar/events.d.ts +2 -2
- package/dist/types/components/blind/blind.d.ts +1 -1
- package/dist/types/components/button/base-button.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +7 -0
- package/dist/types/components/button/test/button.ct.d.ts +1 -0
- package/dist/types/components/card-accordion/card-accordion.d.ts +1 -1
- package/dist/types/components/category-filter/category-filter.d.ts +1 -1
- package/dist/types/components/date-input/date-input.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown-controller.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +1 -1
- package/dist/types/components/field-wrapper/helper-text-util.d.ts +1 -1
- package/dist/types/components/group/group.d.ts +1 -1
- package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +7 -0
- package/dist/types/components/menu/menu.d.ts +5 -5
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/pane/pane.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/select-item/select-item.d.ts +1 -1
- package/dist/types/components/slider/slider.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/time-picker/time-picker.d.ts +1 -1
- package/dist/types/components/utils/application-layout/context.d.ts +1 -1
- package/dist/types/components/utils/application-layout/service.d.ts +1 -1
- package/dist/types/components/utils/context.d.ts +2 -2
- package/dist/types/components/utils/find-element.d.ts +1 -1
- package/dist/types/components/utils/input/validation.d.ts +1 -1
- package/dist/types/components/utils/menu-service/menu-service.d.ts +1 -1
- package/dist/types/components/utils/shadow-dom.d.ts +1 -1
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +2 -2
- package/dist/types/components.d.ts +22 -2
- package/dist/types/tests/utils/test/index.d.ts +1 -1
- package/hydrate/index.js +94 -62
- package/hydrate/index.mjs +94 -62
- package/package.json +17 -11
- package/scss/components/_links.scss +15 -2
- package/scss/mixins/_hover.scss +9 -1
- package/components/p-C8xOvcAt.js +0 -131
- package/components/p-C8xOvcAt.js.map +0 -1
- package/components/p-D9Zr-lKz.js.map +0 -1
- package/components/p-Dn_WjwtW.js.map +0 -1
- package/components/p-HblhO3lB.js +0 -103
- package/components/p-d7CnwTHv.js +0 -130
- package/dist/cjs/modal-CY_zQjvm.js.map +0 -1
- package/dist/esm/modal-DUew4SCE.js.map +0 -1
- package/dist/siemens-ix/p-003f8d27.entry.js +0 -2
- package/dist/siemens-ix/p-04338b3f.entry.js +0 -2
- package/dist/siemens-ix/p-04338b3f.entry.js.map +0 -1
- package/dist/siemens-ix/p-0443dc8d.entry.js +0 -2
- package/dist/siemens-ix/p-0443dc8d.entry.js.map +0 -1
- package/dist/siemens-ix/p-071f63d6.entry.js +0 -2
- package/dist/siemens-ix/p-18a47d9f.entry.js +0 -2
- package/dist/siemens-ix/p-215df096.entry.js +0 -2
- package/dist/siemens-ix/p-23a50a0c.entry.js +0 -2
- package/dist/siemens-ix/p-27b13c4c.entry.js +0 -2
- package/dist/siemens-ix/p-27b13c4c.entry.js.map +0 -1
- package/dist/siemens-ix/p-32488953.entry.js.map +0 -1
- package/dist/siemens-ix/p-5b0d1cc9.entry.js +0 -2
- package/dist/siemens-ix/p-5fe74d24.entry.js +0 -2
- package/dist/siemens-ix/p-5fe74d24.entry.js.map +0 -1
- package/dist/siemens-ix/p-6de38c2a.entry.js.map +0 -1
- package/dist/siemens-ix/p-781e0057.entry.js +0 -2
- package/dist/siemens-ix/p-78f99962.entry.js +0 -2
- package/dist/siemens-ix/p-8804a378.entry.js.map +0 -1
- package/dist/siemens-ix/p-8e525190.entry.js +0 -2
- package/dist/siemens-ix/p-9bac6252.entry.js +0 -2
- package/dist/siemens-ix/p-9bac6252.entry.js.map +0 -1
- package/dist/siemens-ix/p-Bdv-vpZz.js +0 -2
- package/dist/siemens-ix/p-Bdv-vpZz.js.map +0 -1
- package/dist/siemens-ix/p-a4d17743.entry.js +0 -2
- package/dist/siemens-ix/p-c8fe1a7e.entry.js +0 -2
- package/dist/siemens-ix/p-c8fe1a7e.entry.js.map +0 -1
- package/dist/siemens-ix/p-ca8a2b16.entry.js +0 -2
- package/dist/siemens-ix/p-da040b8b.entry.js +0 -2
- package/dist/siemens-ix/p-da040b8b.entry.js.map +0 -1
- package/dist/siemens-ix/p-ff072152.entry.js +0 -2
- /package/dist/siemens-ix/{p-b11fe6c8.entry.js.map → p-09e44529.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-af701797.entry.js.map → p-0e072d3b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-827653a3.entry.js.map → p-0fd654c3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9bbca220.entry.js.map → p-19d1ccda.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-07c17517.entry.js.map → p-1f7453c6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d2da2e45.entry.js.map → p-25132109.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ac4548a8.entry.js.map → p-260f60b2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-aca27756.entry.js.map → p-29f30c68.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9646b346.entry.js.map → p-2d5b40e2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-79febe81.entry.js.map → p-3cba58aa.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ca328fc2.entry.js.map → p-3edf32c2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a963c368.entry.js.map → p-47bb727f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cbf6c3bf.entry.js.map → p-4b8fefdc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1ff3556a.entry.js.map → p-4f631774.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-09b83f0e.entry.js.map → p-51cbd678.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ee76fac1.entry.js.map → p-545498c8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8702121e.entry.js.map → p-58609f3a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-003f8d27.entry.js.map → p-5ebce6e6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-158d9068.entry.js.map → p-66eaa236.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-521dfa2a.entry.js.map → p-6cd1047e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d132ce81.entry.js.map → p-798907cb.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7535cbf6.entry.js.map → p-79fc8e7f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1d28d516.entry.js.map → p-8e5ac73d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8c24d360.entry.js.map → p-8eba36e2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-44670707.entry.js.map → p-9bd19df7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-06843648.entry.js.map → p-a25bd5ef.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bf8e97d7.entry.js.map → p-a2bcae6b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-dd627440.entry.js.map → p-a797e935.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-19e9505f.entry.js.map → p-b60d8b91.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2e4b9c1a.entry.js.map → p-c0df311f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-37f6a541.entry.js.map → p-c9050427.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2b496519.entry.js.map → p-d3a4559a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b6966cc0.entry.js.map → p-e40c7369.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ea310106.entry.js.map → p-e8c1c88f.entry.js.map} +0 -0
|
@@ -72,7 +72,7 @@ export class ContentHeader {
|
|
|
72
72
|
"mutable": false,
|
|
73
73
|
"complexType": {
|
|
74
74
|
"original": "string",
|
|
75
|
-
"resolved": "string",
|
|
75
|
+
"resolved": "string | undefined",
|
|
76
76
|
"references": {}
|
|
77
77
|
},
|
|
78
78
|
"required": false,
|
|
@@ -91,7 +91,7 @@ export class ContentHeader {
|
|
|
91
91
|
"mutable": false,
|
|
92
92
|
"complexType": {
|
|
93
93
|
"original": "string | undefined",
|
|
94
|
-
"resolved": "string",
|
|
94
|
+
"resolved": "string | undefined",
|
|
95
95
|
"references": {}
|
|
96
96
|
},
|
|
97
97
|
"required": false,
|
|
@@ -95,7 +95,7 @@ export class CssGrid {
|
|
|
95
95
|
"mutable": false,
|
|
96
96
|
"complexType": {
|
|
97
97
|
"original": "Partial<Record<CssGridTemplateType, string[][]>>",
|
|
98
|
-
"resolved": "{ sm?: string[][]; md?: string[][]; lg?: string[][]; }",
|
|
98
|
+
"resolved": "undefined | { sm?: string[][] | undefined; md?: string[][] | undefined; lg?: string[][] | undefined; }",
|
|
99
99
|
"references": {
|
|
100
100
|
"Partial": {
|
|
101
101
|
"location": "global",
|
|
@@ -78,7 +78,7 @@ export class CustomField {
|
|
|
78
78
|
"mutable": false,
|
|
79
79
|
"complexType": {
|
|
80
80
|
"original": "string",
|
|
81
|
-
"resolved": "string",
|
|
81
|
+
"resolved": "string | undefined",
|
|
82
82
|
"references": {}
|
|
83
83
|
},
|
|
84
84
|
"required": false,
|
|
@@ -97,7 +97,7 @@ export class CustomField {
|
|
|
97
97
|
"mutable": false,
|
|
98
98
|
"complexType": {
|
|
99
99
|
"original": "string",
|
|
100
|
-
"resolved": "string",
|
|
100
|
+
"resolved": "string | undefined",
|
|
101
101
|
"references": {}
|
|
102
102
|
},
|
|
103
103
|
"required": false,
|
|
@@ -116,7 +116,7 @@ export class CustomField {
|
|
|
116
116
|
"mutable": false,
|
|
117
117
|
"complexType": {
|
|
118
118
|
"original": "string",
|
|
119
|
-
"resolved": "string",
|
|
119
|
+
"resolved": "string | undefined",
|
|
120
120
|
"references": {}
|
|
121
121
|
},
|
|
122
122
|
"required": false,
|
|
@@ -135,7 +135,7 @@ export class CustomField {
|
|
|
135
135
|
"mutable": false,
|
|
136
136
|
"complexType": {
|
|
137
137
|
"original": "string",
|
|
138
|
-
"resolved": "string",
|
|
138
|
+
"resolved": "string | undefined",
|
|
139
139
|
"references": {}
|
|
140
140
|
},
|
|
141
141
|
"required": false,
|
|
@@ -154,7 +154,7 @@ export class CustomField {
|
|
|
154
154
|
"mutable": false,
|
|
155
155
|
"complexType": {
|
|
156
156
|
"original": "string",
|
|
157
|
-
"resolved": "string",
|
|
157
|
+
"resolved": "string | undefined",
|
|
158
158
|
"references": {}
|
|
159
159
|
},
|
|
160
160
|
"required": false,
|
|
@@ -173,7 +173,7 @@ export class CustomField {
|
|
|
173
173
|
"mutable": false,
|
|
174
174
|
"complexType": {
|
|
175
175
|
"original": "string",
|
|
176
|
-
"resolved": "string",
|
|
176
|
+
"resolved": "string | undefined",
|
|
177
177
|
"references": {}
|
|
178
178
|
},
|
|
179
179
|
"required": false,
|
|
@@ -192,7 +192,7 @@ export class CustomField {
|
|
|
192
192
|
"mutable": false,
|
|
193
193
|
"complexType": {
|
|
194
194
|
"original": "boolean",
|
|
195
|
-
"resolved": "boolean",
|
|
195
|
+
"resolved": "boolean | undefined",
|
|
196
196
|
"references": {}
|
|
197
197
|
},
|
|
198
198
|
"required": false,
|
|
@@ -582,7 +582,7 @@ export class DateDropdown {
|
|
|
582
582
|
"mutable": false,
|
|
583
583
|
"complexType": {
|
|
584
584
|
"original": "string",
|
|
585
|
-
"resolved": "string",
|
|
585
|
+
"resolved": "string | undefined",
|
|
586
586
|
"references": {}
|
|
587
587
|
},
|
|
588
588
|
"required": false,
|
|
@@ -719,7 +719,7 @@ export class DateDropdown {
|
|
|
719
719
|
},
|
|
720
720
|
"complexType": {
|
|
721
721
|
"original": "DateRangeChangeEvent",
|
|
722
|
-
"resolved": "{ id: string; from?: string; to?: string; }",
|
|
722
|
+
"resolved": "{ id: string; from?: string | undefined; to?: string | undefined; }",
|
|
723
723
|
"references": {
|
|
724
724
|
"DateRangeChangeEvent": {
|
|
725
725
|
"location": "local",
|
|
@@ -75,7 +75,12 @@ export class DateInput {
|
|
|
75
75
|
this.touched = false;
|
|
76
76
|
}
|
|
77
77
|
updateFormInternalValue(value) {
|
|
78
|
-
|
|
78
|
+
if (value) {
|
|
79
|
+
this.formInternals.setFormValue(value);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
this.formInternals.setFormValue(null);
|
|
83
|
+
}
|
|
79
84
|
this.value = value;
|
|
80
85
|
}
|
|
81
86
|
connectedCallback() {
|
|
@@ -245,12 +250,12 @@ export class DateInput {
|
|
|
245
250
|
const invalidText = this.isInputInvalid
|
|
246
251
|
? this.i18nErrorDateUnparsable
|
|
247
252
|
: this.invalidText;
|
|
248
|
-
return (h(Host, { key: '
|
|
253
|
+
return (h(Host, { key: '0e4cdaf4c02cbba3603c1d3dc75758fd1201408b', class: {
|
|
249
254
|
disabled: this.disabled,
|
|
250
255
|
readonly: this.readonly,
|
|
251
|
-
} }, h("ix-field-wrapper", { key: '
|
|
256
|
+
} }, h("ix-field-wrapper", { key: '1e2fd924fa41c3f0eefcedd540b18ade0208f9ee', label: this.label, helperText: this.helperText, isInvalid: this.isInvalid, invalidText: invalidText, infoText: this.infoText, isInfo: this.isInfo, isWarning: this.isWarning, warningText: this.warningText, isValid: this.isValid, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, required: this.required, controlRef: this.inputElementRef }, this.renderInput()), h("ix-dropdown", { key: '0f28d9948148e58f7aa83f903f69a11d40ba99eb', "data-testid": "date-dropdown", trigger: this.inputElementRef.waitForCurrent(), ref: this.dropdownElementRef, closeBehavior: "outside", suppressOverflowBehavior: true, show: this.show, onShowChanged: (event) => {
|
|
252
257
|
this.show = event.detail;
|
|
253
|
-
} }, h("ix-date-picker", { key: '
|
|
258
|
+
} }, h("ix-date-picker", { key: '379a3474a3100fa8310ea21c221de2587d10eb13', ref: this.datepickerRef, format: this.format, locale: this.locale, range: false, from: (_a = this.from) !== null && _a !== void 0 ? _a : '', onDateChange: (event) => {
|
|
254
259
|
const { from } = event.detail;
|
|
255
260
|
this.onInput(from);
|
|
256
261
|
}, showWeekNumbers: this.showWeekNumbers }))));
|
|
@@ -276,7 +281,7 @@ export class DateInput {
|
|
|
276
281
|
"mutable": false,
|
|
277
282
|
"complexType": {
|
|
278
283
|
"original": "string",
|
|
279
|
-
"resolved": "string",
|
|
284
|
+
"resolved": "string | undefined",
|
|
280
285
|
"references": {}
|
|
281
286
|
},
|
|
282
287
|
"required": false,
|
|
@@ -295,7 +300,7 @@ export class DateInput {
|
|
|
295
300
|
"mutable": false,
|
|
296
301
|
"complexType": {
|
|
297
302
|
"original": "string",
|
|
298
|
-
"resolved": "string",
|
|
303
|
+
"resolved": "string | undefined",
|
|
299
304
|
"references": {}
|
|
300
305
|
},
|
|
301
306
|
"required": false,
|
|
@@ -314,7 +319,7 @@ export class DateInput {
|
|
|
314
319
|
"mutable": true,
|
|
315
320
|
"complexType": {
|
|
316
321
|
"original": "string",
|
|
317
|
-
"resolved": "string",
|
|
322
|
+
"resolved": "string | undefined",
|
|
318
323
|
"references": {}
|
|
319
324
|
},
|
|
320
325
|
"required": false,
|
|
@@ -334,7 +339,7 @@ export class DateInput {
|
|
|
334
339
|
"mutable": false,
|
|
335
340
|
"complexType": {
|
|
336
341
|
"original": "string",
|
|
337
|
-
"resolved": "string",
|
|
342
|
+
"resolved": "string | undefined",
|
|
338
343
|
"references": {}
|
|
339
344
|
},
|
|
340
345
|
"required": false,
|
|
@@ -373,7 +378,7 @@ export class DateInput {
|
|
|
373
378
|
"mutable": false,
|
|
374
379
|
"complexType": {
|
|
375
380
|
"original": "boolean",
|
|
376
|
-
"resolved": "boolean",
|
|
381
|
+
"resolved": "boolean | undefined",
|
|
377
382
|
"references": {}
|
|
378
383
|
},
|
|
379
384
|
"required": false,
|
|
@@ -392,7 +397,7 @@ export class DateInput {
|
|
|
392
397
|
"mutable": false,
|
|
393
398
|
"complexType": {
|
|
394
399
|
"original": "string",
|
|
395
|
-
"resolved": "string",
|
|
400
|
+
"resolved": "string | undefined",
|
|
396
401
|
"references": {}
|
|
397
402
|
},
|
|
398
403
|
"required": false,
|
|
@@ -411,7 +416,7 @@ export class DateInput {
|
|
|
411
416
|
"mutable": false,
|
|
412
417
|
"complexType": {
|
|
413
418
|
"original": "string",
|
|
414
|
-
"resolved": "string",
|
|
419
|
+
"resolved": "string | undefined",
|
|
415
420
|
"references": {}
|
|
416
421
|
},
|
|
417
422
|
"required": false,
|
|
@@ -430,7 +435,7 @@ export class DateInput {
|
|
|
430
435
|
"mutable": false,
|
|
431
436
|
"complexType": {
|
|
432
437
|
"original": "string",
|
|
433
|
-
"resolved": "string",
|
|
438
|
+
"resolved": "string | undefined",
|
|
434
439
|
"references": {}
|
|
435
440
|
},
|
|
436
441
|
"required": false,
|
|
@@ -489,7 +494,7 @@ export class DateInput {
|
|
|
489
494
|
"mutable": false,
|
|
490
495
|
"complexType": {
|
|
491
496
|
"original": "string",
|
|
492
|
-
"resolved": "string",
|
|
497
|
+
"resolved": "string | undefined",
|
|
493
498
|
"references": {}
|
|
494
499
|
},
|
|
495
500
|
"required": false,
|
|
@@ -508,7 +513,7 @@ export class DateInput {
|
|
|
508
513
|
"mutable": false,
|
|
509
514
|
"complexType": {
|
|
510
515
|
"original": "string",
|
|
511
|
-
"resolved": "string",
|
|
516
|
+
"resolved": "string | undefined",
|
|
512
517
|
"references": {}
|
|
513
518
|
},
|
|
514
519
|
"required": false,
|
|
@@ -527,7 +532,7 @@ export class DateInput {
|
|
|
527
532
|
"mutable": false,
|
|
528
533
|
"complexType": {
|
|
529
534
|
"original": "string",
|
|
530
|
-
"resolved": "string",
|
|
535
|
+
"resolved": "string | undefined",
|
|
531
536
|
"references": {}
|
|
532
537
|
},
|
|
533
538
|
"required": false,
|
|
@@ -546,7 +551,7 @@ export class DateInput {
|
|
|
546
551
|
"mutable": false,
|
|
547
552
|
"complexType": {
|
|
548
553
|
"original": "boolean",
|
|
549
|
-
"resolved": "boolean",
|
|
554
|
+
"resolved": "boolean | undefined",
|
|
550
555
|
"references": {}
|
|
551
556
|
},
|
|
552
557
|
"required": false,
|
|
@@ -629,7 +634,7 @@ export class DateInput {
|
|
|
629
634
|
},
|
|
630
635
|
"complexType": {
|
|
631
636
|
"original": "string | undefined",
|
|
632
|
-
"resolved": "string",
|
|
637
|
+
"resolved": "string | undefined",
|
|
633
638
|
"references": {}
|
|
634
639
|
}
|
|
635
640
|
}, {
|
|
@@ -644,7 +649,7 @@ export class DateInput {
|
|
|
644
649
|
},
|
|
645
650
|
"complexType": {
|
|
646
651
|
"original": "DateInputValidityState",
|
|
647
|
-
"resolved": "{ patternMismatch: boolean; invalidReason?: string; }",
|
|
652
|
+
"resolved": "{ patternMismatch: boolean; invalidReason?: string | undefined; }",
|
|
648
653
|
"references": {
|
|
649
654
|
"DateInputValidityState": {
|
|
650
655
|
"location": "local",
|
|
@@ -727,7 +732,7 @@ export class DateInput {
|
|
|
727
732
|
"id": "global::HTMLFormElement"
|
|
728
733
|
}
|
|
729
734
|
},
|
|
730
|
-
"return": "Promise<HTMLFormElement>"
|
|
735
|
+
"return": "Promise<HTMLFormElement | null>"
|
|
731
736
|
},
|
|
732
737
|
"docs": {
|
|
733
738
|
"text": "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-input.js","sourceRoot":"","sources":["../../../src/components/date-input/date-input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAEL,0CAA0C,EAC1C,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,uBAAuB,EAGvB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C;;;;;GAKG;AAOH,MAAM,OAAO,SAAS;IANtB;QAoBE;;WAEG;QACqC,UAAK,GAAY,EAAE,CAAC;QAO5D;;;WAGG;QACK,WAAM,GAAW,YAAY,CAAC;QAsBtC;;WAEG;QACK,aAAQ,GAAY,KAAK,CAAC;QAElC;;WAEG;QACK,aAAQ,GAAY,KAAK,CAAC;QAsBlC;;WAEG;QACgD,4BAAuB,GACxE,mBAAmB,CAAC;QAEtB;;;;WAIG;QACK,oBAAe,GAAG,KAAK,CAAC;QAkBvB,SAAI,GAAG,KAAK,CAAC;QACb,SAAI,GAAkB,IAAI,CAAC;QAC3B,m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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAzHC;IADC,uBAAuB,EAAE;wDAYzB","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 */\n\nimport { iconCalendar } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from '@stencil/core';\nimport { DateTime } from 'luxon';\nimport { dropdownController } from '../dropdown/dropdown-controller';\nimport { SlotEnd, SlotStart } from '../input/input.fc';\nimport {\n DisposableChangesAndVisibilityObservers,\n addDisposableChangesAndVisibilityObservers,\n adjustPaddingForStartAndEnd,\n} from '../input/input.util';\nimport {\n ClassMutationObserver,\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n createClassMutationObserver,\n} from '../utils/input';\nimport { makeRef } from '../utils/make-ref';\n\nexport type DateInputValidityState = {\n patternMismatch: boolean;\n invalidReason?: string;\n};\n\n/**\n * @form-ready\n *\n * @slot start - Element will be displayed at the start of the input\n * @slot end - Element will be displayed at the end of the input\n */\n@Component({\n tag: 'ix-date-input',\n styleUrl: 'date-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class DateInput implements IxInputFieldComponent<string | undefined> {\n @Element() hostElement!: HTMLIxDateInputElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * name of the input element\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * placeholder of the input element\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * value of the input element\n */\n @Prop({ reflect: true, mutable: true }) value?: string = '';\n\n /**\n * Locale identifier (e.g. 'en' or 'de').\n */\n @Prop() locale?: string;\n\n /**\n * Date format string.\n * See {@link \"https://moment.github.io/luxon/#/formatting?id=table-of-tokens\"} for all available tokens.\n */\n @Prop() format: string = 'yyyy/LL/dd';\n\n /**\n * required attribute\n */\n @Prop() required?: boolean;\n\n /**\n * helper text below the input field\n */\n @Prop() helperText?: string;\n\n /**\n * label of the input field\n */\n @Prop() label?: string;\n\n /**\n * error text below the input field\n */\n @Prop({ reflect: true }) invalidText?: string;\n\n /**\n * readonly attribute\n */\n @Prop() readonly: boolean = false;\n\n /**\n * disabled attribute\n */\n @Prop() disabled: boolean = false;\n\n /**\n * info text below the input field\n */\n @Prop() infoText?: string;\n\n /**\n * warning text below the input field\n */\n @Prop() warningText?: string;\n\n /**\n * valid text below the input field\n */\n @Prop() validText?: string;\n\n /**\n * show text as tooltip\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * i18n string for the error message when the date is not parsable\n */\n @Prop({ attribute: 'i18n-error-date-unparsable' }) i18nErrorDateUnparsable =\n 'Date is not valid';\n\n /**\n * Shows week numbers displayed on the left side of the date picker\n *\n * @since 3.0.0\n */\n @Prop() showWeekNumbers = false;\n\n /**\n * Input change event.\n */\n @Event({ cancelable: false }) valueChange!: EventEmitter<string | undefined>;\n\n /**\n * Validation state change event.\n */\n @Event() validityStateChange!: EventEmitter<DateInputValidityState>;\n\n /** @internal */\n @Event() ixFocus!: EventEmitter<void>;\n\n /** @internal */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() show = false;\n @State() from: string | null = null;\n @State() isInputInvalid = false;\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() focus = false;\n\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n\n private readonly datepickerRef = makeRef<HTMLIxDatePickerElement>();\n\n private readonly inputElementRef = makeRef<HTMLInputElement>();\n private readonly dropdownElementRef = makeRef<HTMLIxDropdownElement>();\n private classObserver?: ClassMutationObserver;\n private invalidReason?: string;\n private touched = false;\n\n private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;\n\n updateFormInternalValue(value: string | undefined): void {\n this.formInternals.setFormValue(value);\n this.value = value;\n }\n\n connectedCallback(): void {\n this.classObserver = createClassMutationObserver(this.hostElement, () =>\n this.checkClassList()\n );\n\n this.disposableChangesAndVisibilityObservers =\n addDisposableChangesAndVisibilityObservers(\n this.hostElement,\n this.updatePaddings.bind(this)\n );\n }\n\n componentWillLoad(): void {\n this.onInput(this.value);\n if (this.isInputInvalid) {\n this.from = null;\n } else {\n this.watchValue();\n }\n\n this.checkClassList();\n this.updateFormInternalValue(this.value);\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputElementRef.current\n );\n }\n\n disconnectedCallback(): void {\n this.classObserver?.destroy();\n this.disposableChangesAndVisibilityObservers?.();\n }\n\n @Watch('value')\n watchValue() {\n this.from = this.value;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /** @internal */\n @Method()\n getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return Promise.resolve(this.formInternals.form);\n }\n\n async onInput(value: string | undefined) {\n this.value = value;\n if (!value) {\n this.valueChange.emit(value);\n return;\n }\n\n if (!this.format) {\n return;\n }\n\n const date = DateTime.fromFormat(value, this.format);\n if (date.isValid) {\n this.isInputInvalid = false;\n\n this.updateFormInternalValue(value);\n this.closeDropdown();\n } else {\n this.isInputInvalid = true;\n this.invalidReason = date.invalidReason;\n }\n\n this.valueChange.emit(value);\n }\n\n onCalenderClick(event: Event) {\n if (!this.show) {\n event.stopPropagation();\n event.preventDefault();\n this.openDropdown();\n }\n\n if (this.inputElementRef.current) {\n this.inputElementRef.current.focus();\n }\n }\n\n async openDropdown() {\n const dropdownElement = await this.dropdownElementRef.waitForCurrent();\n const id = dropdownElement.getAttribute('data-ix-dropdown');\n\n dropdownController.dismissAll();\n if (!id) {\n return;\n }\n\n const dropdown = dropdownController.getDropdownById(id);\n if (!dropdown) {\n return;\n }\n dropdownController.present(dropdown);\n }\n\n async closeDropdown() {\n const dropdownElement = await this.dropdownElementRef.waitForCurrent();\n const id = dropdownElement.getAttribute('data-ix-dropdown');\n\n if (!id) {\n return;\n }\n\n const dropdown = dropdownController.getDropdownById(id);\n if (!dropdown) {\n return;\n }\n dropdownController.dismiss(dropdown);\n }\n\n private checkClassList() {\n this.isInvalid = this.hostElement.classList.contains('ix-invalid');\n }\n\n private renderInput() {\n return (\n <div class=\"input-wrapper\">\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n <input\n autoComplete=\"off\"\n class={{\n 'is-invalid': this.isInputInvalid,\n }}\n disabled={this.disabled}\n readOnly={this.readonly}\n readonly={this.readonly}\n required={this.required}\n ref={this.inputElementRef}\n type=\"text\"\n value={this.value ?? ''}\n onInput={(event) => {\n const target = event.target as HTMLInputElement;\n this.onInput(target.value);\n }}\n onClick={(event) => {\n if (this.show) {\n event.stopPropagation();\n event.preventDefault();\n }\n }}\n onFocus={async () => {\n this.openDropdown();\n this.ixFocus.emit();\n }}\n onBlur={() => {\n this.ixBlur.emit();\n this.touched = true;\n }}\n ></input>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <ix-icon-button\n data-testid=\"open-calendar\"\n class={{ 'calendar-hidden': this.disabled || this.readonly }}\n ghost\n icon={iconCalendar}\n onClick={(event) => this.onCalenderClick(event)}\n ></ix-icon-button>\n </SlotEnd>\n </div>\n );\n }\n\n @HookValidationLifecycle()\n hookValidationLifecycle({\n isInfo,\n isInvalid,\n isInvalidByRequired,\n isValid,\n isWarning,\n }: ValidationResults) {\n this.isInvalid = isInvalid || isInvalidByRequired || this.isInputInvalid;\n this.isInfo = isInfo;\n this.isValid = isValid;\n this.isWarning = isWarning;\n }\n\n @Watch('isInputInvalid')\n async onInputValidationChange() {\n const state = await this.getValidityState();\n this.validityStateChange.emit({\n patternMismatch: state.patternMismatch,\n invalidReason: this.invalidReason,\n });\n }\n\n /** @internal */\n @Method()\n getValidityState(): Promise<ValidityState> {\n return Promise.resolve({\n badInput: false,\n customError: false,\n patternMismatch: this.isInputInvalid,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: !this.isInputInvalid,\n valueMissing: !!this.required && !this.value,\n });\n }\n\n /**\n * Get the native input element\n */\n @Method()\n getNativeInputElement(): Promise<HTMLInputElement> {\n return this.inputElementRef.waitForCurrent();\n }\n\n /**\n * Focuses the input field\n */\n @Method()\n async focusInput(): Promise<void> {\n return (await this.getNativeInputElement()).focus();\n }\n\n /**\n * Returns whether the text field has been touched.\n * @internal\n */\n @Method()\n isTouched(): Promise<boolean> {\n return Promise.resolve(this.touched);\n }\n\n render() {\n const invalidText = this.isInputInvalid\n ? this.i18nErrorDateUnparsable\n : this.invalidText;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n label={this.label}\n helperText={this.helperText}\n isInvalid={this.isInvalid}\n invalidText={invalidText}\n infoText={this.infoText}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n warningText={this.warningText}\n isValid={this.isValid}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n required={this.required}\n controlRef={this.inputElementRef}\n >\n {this.renderInput()}\n </ix-field-wrapper>\n <ix-dropdown\n data-testid=\"date-dropdown\"\n trigger={this.inputElementRef.waitForCurrent()}\n ref={this.dropdownElementRef}\n closeBehavior=\"outside\"\n suppressOverflowBehavior={true}\n show={this.show}\n onShowChanged={(event) => {\n this.show = event.detail;\n }}\n >\n <ix-date-picker\n ref={this.datepickerRef}\n format={this.format}\n locale={this.locale}\n range={false}\n from={this.from ?? ''}\n onDateChange={(event) => {\n const { from } = event.detail;\n this.onInput(from);\n }}\n showWeekNumbers={this.showWeekNumbers}\n ></ix-date-picker>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"date-input.js","sourceRoot":"","sources":["../../../src/components/date-input/date-input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAEL,0CAA0C,EAC1C,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,uBAAuB,EAGvB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C;;;;;GAKG;AAOH,MAAM,OAAO,SAAS;IANtB;QAoBE;;WAEG;QACqC,UAAK,GAAY,EAAE,CAAC;QAO5D;;;WAGG;QACK,WAAM,GAAW,YAAY,CAAC;QAsBtC;;WAEG;QACK,aAAQ,GAAY,KAAK,CAAC;QAElC;;WAEG;QACK,aAAQ,GAAY,KAAK,CAAC;QAsBlC;;WAEG;QACgD,4BAAuB,GACxE,mBAAmB,CAAC;QAEtB;;;;WAIG;QACK,oBAAe,GAAG,KAAK,CAAC;QAkBvB,SAAI,GAAG,KAAK,CAAC;QACb,SAAI,GAAmB,IAAI,CAAC;QAC5B,mB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAzHC;IADC,uBAAuB,EAAE;wDAYzB","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 */\n\nimport { iconCalendar } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from '@stencil/core';\nimport { DateTime } from 'luxon';\nimport { dropdownController } from '../dropdown/dropdown-controller';\nimport { SlotEnd, SlotStart } from '../input/input.fc';\nimport {\n DisposableChangesAndVisibilityObservers,\n addDisposableChangesAndVisibilityObservers,\n adjustPaddingForStartAndEnd,\n} from '../input/input.util';\nimport {\n ClassMutationObserver,\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n createClassMutationObserver,\n} from '../utils/input';\nimport { makeRef } from '../utils/make-ref';\n\nexport type DateInputValidityState = {\n patternMismatch: boolean;\n invalidReason?: string;\n};\n\n/**\n * @form-ready\n *\n * @slot start - Element will be displayed at the start of the input\n * @slot end - Element will be displayed at the end of the input\n */\n@Component({\n tag: 'ix-date-input',\n styleUrl: 'date-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class DateInput implements IxInputFieldComponent<string | undefined> {\n @Element() hostElement!: HTMLIxDateInputElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * name of the input element\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * placeholder of the input element\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * value of the input element\n */\n @Prop({ reflect: true, mutable: true }) value?: string = '';\n\n /**\n * Locale identifier (e.g. 'en' or 'de').\n */\n @Prop() locale?: string;\n\n /**\n * Date format string.\n * See {@link \"https://moment.github.io/luxon/#/formatting?id=table-of-tokens\"} for all available tokens.\n */\n @Prop() format: string = 'yyyy/LL/dd';\n\n /**\n * required attribute\n */\n @Prop() required?: boolean;\n\n /**\n * helper text below the input field\n */\n @Prop() helperText?: string;\n\n /**\n * label of the input field\n */\n @Prop() label?: string;\n\n /**\n * error text below the input field\n */\n @Prop({ reflect: true }) invalidText?: string;\n\n /**\n * readonly attribute\n */\n @Prop() readonly: boolean = false;\n\n /**\n * disabled attribute\n */\n @Prop() disabled: boolean = false;\n\n /**\n * info text below the input field\n */\n @Prop() infoText?: string;\n\n /**\n * warning text below the input field\n */\n @Prop() warningText?: string;\n\n /**\n * valid text below the input field\n */\n @Prop() validText?: string;\n\n /**\n * show text as tooltip\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * i18n string for the error message when the date is not parsable\n */\n @Prop({ attribute: 'i18n-error-date-unparsable' }) i18nErrorDateUnparsable =\n 'Date is not valid';\n\n /**\n * Shows week numbers displayed on the left side of the date picker\n *\n * @since 3.0.0\n */\n @Prop() showWeekNumbers = false;\n\n /**\n * Input change event.\n */\n @Event({ cancelable: false }) valueChange!: EventEmitter<string | undefined>;\n\n /**\n * Validation state change event.\n */\n @Event() validityStateChange!: EventEmitter<DateInputValidityState>;\n\n /** @internal */\n @Event() ixFocus!: EventEmitter<void>;\n\n /** @internal */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() show = false;\n @State() from?: string | null = null;\n @State() isInputInvalid = false;\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() focus = false;\n\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n\n private readonly datepickerRef = makeRef<HTMLIxDatePickerElement>();\n\n private readonly inputElementRef = makeRef<HTMLInputElement>();\n private readonly dropdownElementRef = makeRef<HTMLIxDropdownElement>();\n private classObserver?: ClassMutationObserver;\n private invalidReason?: string;\n private touched = false;\n\n private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;\n\n updateFormInternalValue(value: string | undefined): void {\n if (value) {\n this.formInternals.setFormValue(value);\n } else {\n this.formInternals.setFormValue(null);\n }\n this.value = value;\n }\n\n connectedCallback(): void {\n this.classObserver = createClassMutationObserver(this.hostElement, () =>\n this.checkClassList()\n );\n\n this.disposableChangesAndVisibilityObservers =\n addDisposableChangesAndVisibilityObservers(\n this.hostElement,\n this.updatePaddings.bind(this)\n );\n }\n\n componentWillLoad(): void {\n this.onInput(this.value);\n if (this.isInputInvalid) {\n this.from = null;\n } else {\n this.watchValue();\n }\n\n this.checkClassList();\n this.updateFormInternalValue(this.value);\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputElementRef.current\n );\n }\n\n disconnectedCallback(): void {\n this.classObserver?.destroy();\n this.disposableChangesAndVisibilityObservers?.();\n }\n\n @Watch('value')\n watchValue() {\n this.from = this.value;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /** @internal */\n @Method()\n getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return Promise.resolve(this.formInternals.form);\n }\n\n async onInput(value: string | undefined) {\n this.value = value;\n if (!value) {\n this.valueChange.emit(value);\n return;\n }\n\n if (!this.format) {\n return;\n }\n\n const date = DateTime.fromFormat(value, this.format);\n if (date.isValid) {\n this.isInputInvalid = false;\n\n this.updateFormInternalValue(value);\n this.closeDropdown();\n } else {\n this.isInputInvalid = true;\n this.invalidReason = date.invalidReason;\n }\n\n this.valueChange.emit(value);\n }\n\n onCalenderClick(event: Event) {\n if (!this.show) {\n event.stopPropagation();\n event.preventDefault();\n this.openDropdown();\n }\n\n if (this.inputElementRef.current) {\n this.inputElementRef.current.focus();\n }\n }\n\n async openDropdown() {\n const dropdownElement = await this.dropdownElementRef.waitForCurrent();\n const id = dropdownElement.getAttribute('data-ix-dropdown');\n\n dropdownController.dismissAll();\n if (!id) {\n return;\n }\n\n const dropdown = dropdownController.getDropdownById(id);\n if (!dropdown) {\n return;\n }\n dropdownController.present(dropdown);\n }\n\n async closeDropdown() {\n const dropdownElement = await this.dropdownElementRef.waitForCurrent();\n const id = dropdownElement.getAttribute('data-ix-dropdown');\n\n if (!id) {\n return;\n }\n\n const dropdown = dropdownController.getDropdownById(id);\n if (!dropdown) {\n return;\n }\n dropdownController.dismiss(dropdown);\n }\n\n private checkClassList() {\n this.isInvalid = this.hostElement.classList.contains('ix-invalid');\n }\n\n private renderInput() {\n return (\n <div class=\"input-wrapper\">\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n <input\n autoComplete=\"off\"\n class={{\n 'is-invalid': this.isInputInvalid,\n }}\n disabled={this.disabled}\n readOnly={this.readonly}\n readonly={this.readonly}\n required={this.required}\n ref={this.inputElementRef}\n type=\"text\"\n value={this.value ?? ''}\n onInput={(event) => {\n const target = event.target as HTMLInputElement;\n this.onInput(target.value);\n }}\n onClick={(event) => {\n if (this.show) {\n event.stopPropagation();\n event.preventDefault();\n }\n }}\n onFocus={async () => {\n this.openDropdown();\n this.ixFocus.emit();\n }}\n onBlur={() => {\n this.ixBlur.emit();\n this.touched = true;\n }}\n ></input>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <ix-icon-button\n data-testid=\"open-calendar\"\n class={{ 'calendar-hidden': this.disabled || this.readonly }}\n ghost\n icon={iconCalendar}\n onClick={(event) => this.onCalenderClick(event)}\n ></ix-icon-button>\n </SlotEnd>\n </div>\n );\n }\n\n @HookValidationLifecycle()\n hookValidationLifecycle({\n isInfo,\n isInvalid,\n isInvalidByRequired,\n isValid,\n isWarning,\n }: ValidationResults) {\n this.isInvalid = isInvalid || isInvalidByRequired || this.isInputInvalid;\n this.isInfo = isInfo;\n this.isValid = isValid;\n this.isWarning = isWarning;\n }\n\n @Watch('isInputInvalid')\n async onInputValidationChange() {\n const state = await this.getValidityState();\n this.validityStateChange.emit({\n patternMismatch: state.patternMismatch,\n invalidReason: this.invalidReason,\n });\n }\n\n /** @internal */\n @Method()\n getValidityState(): Promise<ValidityState> {\n return Promise.resolve({\n badInput: false,\n customError: false,\n patternMismatch: this.isInputInvalid,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: !this.isInputInvalid,\n valueMissing: !!this.required && !this.value,\n });\n }\n\n /**\n * Get the native input element\n */\n @Method()\n getNativeInputElement(): Promise<HTMLInputElement> {\n return this.inputElementRef.waitForCurrent();\n }\n\n /**\n * Focuses the input field\n */\n @Method()\n async focusInput(): Promise<void> {\n return (await this.getNativeInputElement()).focus();\n }\n\n /**\n * Returns whether the text field has been touched.\n * @internal\n */\n @Method()\n isTouched(): Promise<boolean> {\n return Promise.resolve(this.touched);\n }\n\n render() {\n const invalidText = this.isInputInvalid\n ? this.i18nErrorDateUnparsable\n : this.invalidText;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n label={this.label}\n helperText={this.helperText}\n isInvalid={this.isInvalid}\n invalidText={invalidText}\n infoText={this.infoText}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n warningText={this.warningText}\n isValid={this.isValid}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n required={this.required}\n controlRef={this.inputElementRef}\n >\n {this.renderInput()}\n </ix-field-wrapper>\n <ix-dropdown\n data-testid=\"date-dropdown\"\n trigger={this.inputElementRef.waitForCurrent()}\n ref={this.dropdownElementRef}\n closeBehavior=\"outside\"\n suppressOverflowBehavior={true}\n show={this.show}\n onShowChanged={(event) => {\n this.show = event.detail;\n }}\n >\n <ix-date-picker\n ref={this.datepickerRef}\n format={this.format}\n locale={this.locale}\n range={false}\n from={this.from ?? ''}\n onDateChange={(event) => {\n const { from } = event.detail;\n this.onInput(from);\n }}\n showWeekNumbers={this.showWeekNumbers}\n ></ix-date-picker>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -597,7 +597,7 @@ export class DatePicker {
|
|
|
597
597
|
"mutable": false,
|
|
598
598
|
"complexType": {
|
|
599
599
|
"original": "string | undefined",
|
|
600
|
-
"resolved": "string",
|
|
600
|
+
"resolved": "string | undefined",
|
|
601
601
|
"references": {}
|
|
602
602
|
},
|
|
603
603
|
"required": false,
|
|
@@ -616,7 +616,7 @@ export class DatePicker {
|
|
|
616
616
|
"mutable": false,
|
|
617
617
|
"complexType": {
|
|
618
618
|
"original": "string | undefined",
|
|
619
|
-
"resolved": "string",
|
|
619
|
+
"resolved": "string | undefined",
|
|
620
620
|
"references": {}
|
|
621
621
|
},
|
|
622
622
|
"required": false,
|
|
@@ -715,7 +715,7 @@ export class DatePicker {
|
|
|
715
715
|
"mutable": false,
|
|
716
716
|
"complexType": {
|
|
717
717
|
"original": "string",
|
|
718
|
-
"resolved": "string",
|
|
718
|
+
"resolved": "string | undefined",
|
|
719
719
|
"references": {}
|
|
720
720
|
},
|
|
721
721
|
"required": false,
|
|
@@ -827,7 +827,7 @@ export class DatePicker {
|
|
|
827
827
|
},
|
|
828
828
|
"complexType": {
|
|
829
829
|
"original": "DateChangeEvent",
|
|
830
|
-
"resolved": "{ from?: string; to?: string; }",
|
|
830
|
+
"resolved": "{ from?: string | undefined; to?: string | undefined; }",
|
|
831
831
|
"references": {
|
|
832
832
|
"DateChangeEvent": {
|
|
833
833
|
"location": "local",
|
|
@@ -848,7 +848,7 @@ export class DatePicker {
|
|
|
848
848
|
},
|
|
849
849
|
"complexType": {
|
|
850
850
|
"original": "DateChangeEvent",
|
|
851
|
-
"resolved": "{ from?: string; to?: string; }",
|
|
851
|
+
"resolved": "{ from?: string | undefined; to?: string | undefined; }",
|
|
852
852
|
"references": {
|
|
853
853
|
"DateChangeEvent": {
|
|
854
854
|
"location": "local",
|
|
@@ -869,7 +869,7 @@ export class DatePicker {
|
|
|
869
869
|
},
|
|
870
870
|
"complexType": {
|
|
871
871
|
"original": "DateChangeEvent",
|
|
872
|
-
"resolved": "{ from?: string; to?: string; }",
|
|
872
|
+
"resolved": "{ from?: string | undefined; to?: string | undefined; }",
|
|
873
873
|
"references": {
|
|
874
874
|
"DateChangeEvent": {
|
|
875
875
|
"location": "local",
|
|
@@ -884,7 +884,7 @@ export class DatePicker {
|
|
|
884
884
|
return {
|
|
885
885
|
"getCurrentDate": {
|
|
886
886
|
"complexType": {
|
|
887
|
-
"signature": "() => Promise<{ from: string; to: string; }>",
|
|
887
|
+
"signature": "() => Promise<{ from: string | undefined; to: string | undefined; }>",
|
|
888
888
|
"parameters": [],
|
|
889
889
|
"references": {
|
|
890
890
|
"Promise": {
|
|
@@ -892,7 +892,7 @@ export class DatePicker {
|
|
|
892
892
|
"id": "global::Promise"
|
|
893
893
|
}
|
|
894
894
|
},
|
|
895
|
-
"return": "Promise<{ from: string; to: string; }>"
|
|
895
|
+
"return": "Promise<{ from: string | undefined; to: string | undefined; }>"
|
|
896
896
|
},
|
|
897
897
|
"docs": {
|
|
898
898
|
"text": "Get the currently selected date-range.",
|
|
@@ -187,7 +187,7 @@ export class DatetimePicker {
|
|
|
187
187
|
"mutable": false,
|
|
188
188
|
"complexType": {
|
|
189
189
|
"original": "string",
|
|
190
|
-
"resolved": "string",
|
|
190
|
+
"resolved": "string | undefined",
|
|
191
191
|
"references": {}
|
|
192
192
|
},
|
|
193
193
|
"required": false,
|
|
@@ -206,7 +206,7 @@ export class DatetimePicker {
|
|
|
206
206
|
"mutable": false,
|
|
207
207
|
"complexType": {
|
|
208
208
|
"original": "string",
|
|
209
|
-
"resolved": "string",
|
|
209
|
+
"resolved": "string | undefined",
|
|
210
210
|
"references": {}
|
|
211
211
|
},
|
|
212
212
|
"required": false,
|
|
@@ -265,7 +265,7 @@ export class DatetimePicker {
|
|
|
265
265
|
"mutable": false,
|
|
266
266
|
"complexType": {
|
|
267
267
|
"original": "string",
|
|
268
|
-
"resolved": "string",
|
|
268
|
+
"resolved": "string | undefined",
|
|
269
269
|
"references": {}
|
|
270
270
|
},
|
|
271
271
|
"required": false,
|
|
@@ -284,7 +284,7 @@ export class DatetimePicker {
|
|
|
284
284
|
"mutable": false,
|
|
285
285
|
"complexType": {
|
|
286
286
|
"original": "string",
|
|
287
|
-
"resolved": "string",
|
|
287
|
+
"resolved": "string | undefined",
|
|
288
288
|
"references": {}
|
|
289
289
|
},
|
|
290
290
|
"required": false,
|
|
@@ -303,7 +303,7 @@ export class DatetimePicker {
|
|
|
303
303
|
"mutable": false,
|
|
304
304
|
"complexType": {
|
|
305
305
|
"original": "string",
|
|
306
|
-
"resolved": "string",
|
|
306
|
+
"resolved": "string | undefined",
|
|
307
307
|
"references": {}
|
|
308
308
|
},
|
|
309
309
|
"required": false,
|
|
@@ -345,7 +345,7 @@ export class DatetimePicker {
|
|
|
345
345
|
"mutable": false,
|
|
346
346
|
"complexType": {
|
|
347
347
|
"original": "'AM' | 'PM'",
|
|
348
|
-
"resolved": "\"AM\" | \"PM\"",
|
|
348
|
+
"resolved": "\"AM\" | \"PM\" | undefined",
|
|
349
349
|
"references": {}
|
|
350
350
|
},
|
|
351
351
|
"required": false,
|
|
@@ -427,7 +427,7 @@ export class DatetimePicker {
|
|
|
427
427
|
"mutable": false,
|
|
428
428
|
"complexType": {
|
|
429
429
|
"original": "string",
|
|
430
|
-
"resolved": "string",
|
|
430
|
+
"resolved": "string | undefined",
|
|
431
431
|
"references": {}
|
|
432
432
|
},
|
|
433
433
|
"required": false,
|
|
@@ -493,7 +493,7 @@ export class DatetimePicker {
|
|
|
493
493
|
},
|
|
494
494
|
"complexType": {
|
|
495
495
|
"original": "DateTimeDateChangeEvent",
|
|
496
|
-
"resolved": "string | { from?: string; to?: string; }",
|
|
496
|
+
"resolved": "string | { from?: string | undefined; to?: string | undefined; }",
|
|
497
497
|
"references": {
|
|
498
498
|
"DateTimeDateChangeEvent": {
|
|
499
499
|
"location": "local",
|
|
@@ -514,7 +514,7 @@ export class DatetimePicker {
|
|
|
514
514
|
},
|
|
515
515
|
"complexType": {
|
|
516
516
|
"original": "DateTimeSelectEvent",
|
|
517
|
-
"resolved": "{ from?: string; to?: string; time: string; }",
|
|
517
|
+
"resolved": "{ from?: string | undefined; to?: string | undefined; time: string; }",
|
|
518
518
|
"references": {
|
|
519
519
|
"DateTimeSelectEvent": {
|
|
520
520
|
"location": "local",
|
|
@@ -329,7 +329,7 @@ export class Drawer {
|
|
|
329
329
|
"signature": "(show?: boolean) => Promise<void>",
|
|
330
330
|
"parameters": [{
|
|
331
331
|
"name": "show",
|
|
332
|
-
"type": "boolean",
|
|
332
|
+
"type": "boolean | undefined",
|
|
333
333
|
"docs": "Overwrite toggle state with boolean"
|
|
334
334
|
}],
|
|
335
335
|
"references": {
|
|
@@ -416,7 +416,7 @@ export class Dropdown {
|
|
|
416
416
|
"mutable": false,
|
|
417
417
|
"complexType": {
|
|
418
418
|
"original": "ElementReference",
|
|
419
|
-
"resolved": "HTMLElement | Promise<HTMLElement> | string",
|
|
419
|
+
"resolved": "HTMLElement | Promise<HTMLElement> | string | undefined",
|
|
420
420
|
"references": {
|
|
421
421
|
"ElementReference": {
|
|
422
422
|
"location": "import",
|
|
@@ -441,7 +441,7 @@ export class Dropdown {
|
|
|
441
441
|
"mutable": false,
|
|
442
442
|
"complexType": {
|
|
443
443
|
"original": "ElementReference",
|
|
444
|
-
"resolved": "HTMLElement | Promise<HTMLElement> | string",
|
|
444
|
+
"resolved": "HTMLElement | Promise<HTMLElement> | string | undefined",
|
|
445
445
|
"references": {
|
|
446
446
|
"ElementReference": {
|
|
447
447
|
"location": "import",
|
|
@@ -538,7 +538,7 @@ export class Dropdown {
|
|
|
538
538
|
"mutable": false,
|
|
539
539
|
"complexType": {
|
|
540
540
|
"original": "string",
|
|
541
|
-
"resolved": "string",
|
|
541
|
+
"resolved": "string | undefined",
|
|
542
542
|
"references": {}
|
|
543
543
|
},
|
|
544
544
|
"required": false,
|
|
@@ -557,7 +557,7 @@ export class Dropdown {
|
|
|
557
557
|
"mutable": false,
|
|
558
558
|
"complexType": {
|
|
559
559
|
"original": "{\n mainAxis?: number;\n crossAxis?: number;\n alignmentAxis?: number;\n }",
|
|
560
|
-
"resolved": "{ mainAxis?: number; crossAxis?: number; alignmentAxis?: number; }",
|
|
560
|
+
"resolved": "undefined | { mainAxis?: number | undefined; crossAxis?: number | undefined; alignmentAxis?: number | undefined; }",
|
|
561
561
|
"references": {}
|
|
562
562
|
},
|
|
563
563
|
"required": false,
|
|
@@ -578,7 +578,7 @@ export class Dropdown {
|
|
|
578
578
|
"mutable": false,
|
|
579
579
|
"complexType": {
|
|
580
580
|
"original": "(delegate: {\n dropdownRef: HTMLElement;\n triggerRef?: HTMLElement;\n }) => Promise<Partial<CSSStyleDeclaration>>",
|
|
581
|
-
"resolved": "(delegate: { dropdownRef: HTMLElement; triggerRef?: HTMLElement; }) => Promise<Partial<CSSStyleDeclaration>>",
|
|
581
|
+
"resolved": "((delegate: { dropdownRef: HTMLElement; triggerRef?: HTMLElement | undefined; }) => Promise<Partial<CSSStyleDeclaration>>) | undefined",
|
|
582
582
|
"references": {
|
|
583
583
|
"HTMLElement": {
|
|
584
584
|
"location": "global",
|
|
@@ -590,4 +590,35 @@ regressionTest('Dropdown works in floating-ui', async ({ mount, page }) => {
|
|
|
590
590
|
expect(Math.round(dropdownRect.x)).toBe(Math.round(triggerRect.x));
|
|
591
591
|
expect(Math.round(dropdownRect.y)).toBe(Math.round(triggerRect.y + triggerRect.height));
|
|
592
592
|
});
|
|
593
|
+
regressionTest('last dropdown item can be accessed via scrolling', async ({ mount, page }) => {
|
|
594
|
+
await mount(`
|
|
595
|
+
<ix-button id="trigger">Open</ix-button>
|
|
596
|
+
<ix-dropdown trigger="trigger">
|
|
597
|
+
${Array.from({ length: 20 }, (_, i) => `<ix-dropdown-item label="Item ${i}"></ix-dropdown-item>`).join('')}
|
|
598
|
+
</ix-dropdown>
|
|
599
|
+
`);
|
|
600
|
+
await page.locator('#trigger').click();
|
|
601
|
+
const lastItem = page.locator('ix-dropdown-item').last();
|
|
602
|
+
await lastItem.evaluate((item) => {
|
|
603
|
+
item.scrollIntoView();
|
|
604
|
+
});
|
|
605
|
+
await expect(lastItem).toBeVisible();
|
|
606
|
+
});
|
|
607
|
+
regressionTest('last dropdown item can be accessed, dropdown placed at center of page', async ({ mount, page }) => {
|
|
608
|
+
await mount(`
|
|
609
|
+
<body style="width: 100vw; height: 100vh;">
|
|
610
|
+
<div style="height:calc(50vh-1px)"></div>
|
|
611
|
+
<ix-button id="trigger">Open</ix-button>
|
|
612
|
+
<ix-dropdown trigger="trigger">
|
|
613
|
+
${Array.from({ length: 20 }, (_, i) => `<ix-dropdown-item label="Item ${i}"></ix-dropdown-item>`).join('')}
|
|
614
|
+
</ix-dropdown>
|
|
615
|
+
</body>
|
|
616
|
+
`);
|
|
617
|
+
await page.locator('#trigger').click();
|
|
618
|
+
const lastItem = page.locator('ix-dropdown-item').last();
|
|
619
|
+
await lastItem.evaluate((item) => {
|
|
620
|
+
item.scrollIntoView();
|
|
621
|
+
});
|
|
622
|
+
await expect(lastItem).toBeVisible();
|
|
623
|
+
});
|
|
593
624
|
//# sourceMappingURL=dropdown.ct.js.map
|