@siemens/ix 4.0.0 → 4.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/components/ix-action-card.js +1 -1
- package/components/ix-application-header.js +5 -5
- package/components/ix-application-switch-modal.js +5 -5
- package/components/ix-avatar.js +1 -1
- package/components/ix-blind.js +1 -1
- package/components/ix-breadcrumb-item.js +1 -1
- package/components/ix-breadcrumb.js +4 -4
- package/components/ix-button.js +1 -1
- package/components/ix-card-list.js +4 -4
- package/components/ix-category-filter.js +18 -12
- 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 +4 -4
- package/components/ix-content-header.js +3 -3
- package/components/ix-custom-field.js +4 -4
- package/components/ix-date-dropdown.js +9 -9
- package/components/ix-date-input.js +30 -14
- 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 -12
- package/components/ix-datetime-picker.js.map +1 -1
- package/components/ix-divider.js +1 -1
- package/components/ix-drawer.js +7 -7
- package/components/ix-dropdown-button.js +7 -7
- package/components/ix-dropdown-header.js +2 -2
- package/components/ix-dropdown-item.js +1 -1
- package/components/ix-dropdown-quick-actions.js +1 -1
- package/components/ix-dropdown.js +1 -1
- package/components/ix-empty-state.js +4 -4
- package/components/ix-event-list-item.js +4 -4
- package/components/ix-event-list.js +2 -2
- package/components/ix-expanding-search.js +6 -6
- 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-content.js +1 -1
- package/components/ix-flip-tile.js +5 -5
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group.js +11 -11
- package/components/ix-helper-text.js +3 -3
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +2 -2
- package/components/ix-input-group.js +1 -1
- package/components/ix-input.js +23 -12
- package/components/ix-input.js.map +1 -1
- 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 +4 -4
- package/components/ix-link-button.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.js +10 -8
- package/components/ix-menu-about.js.map +1 -1
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +10 -10
- package/components/ix-menu-category.js +11 -11
- 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 +18 -18
- package/components/ix-message-bar.js +3 -3
- 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 +2 -2
- package/components/ix-modal.js +3 -3
- package/components/ix-number-input.js +169 -36
- package/components/ix-number-input.js.map +1 -1
- package/components/ix-pagination.js +42 -19
- package/components/ix-pagination.js.map +1 -1
- package/components/ix-pane-layout.js +1 -1
- package/components/ix-pane.js +9 -9
- package/components/ix-pill.js +6 -6
- package/components/ix-progress-indicator.js +5 -5
- package/components/ix-push-card.js +2 -2
- package/components/ix-radio-group.js +6 -6
- package/components/ix-radio.js +4 -4
- package/components/ix-row.js +1 -1
- package/components/ix-select-item.js +1 -1
- package/components/ix-select.js +1 -1
- package/components/ix-slider.js +8 -8
- package/components/ix-spinner.js +1 -1
- package/components/ix-split-button.js +30 -16
- package/components/ix-split-button.js.map +1 -1
- package/components/ix-tab-item.js +1 -1
- package/components/ix-tabs.js +1 -1
- package/components/ix-textarea.js +7 -7
- package/components/ix-tile.js +4 -4
- package/components/ix-time-input.js +31 -15
- package/components/ix-time-input.js.map +1 -1
- package/components/ix-time-picker.js +1 -1
- package/components/ix-toast-container.js +6 -6
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle-button.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-validation-tooltip.js +2 -2
- package/components/ix-workflow-step.js +3 -3
- package/components/ix-workflow-steps.js +1 -1
- package/components/{p-ChZQLy9v.js → p-10zMtvCF.js} +4 -4
- package/components/{p-ChZQLy9v.js.map → p-10zMtvCF.js.map} +1 -1
- package/components/{p-D8hPr0Kb.js → p-1pd_0dhF.js} +3 -3
- package/components/{p-D8hPr0Kb.js.map → p-1pd_0dhF.js.map} +1 -1
- package/components/{p-axBTucsn.js → p-B006bhbX.js} +3 -3
- package/components/{p-axBTucsn.js.map → p-B006bhbX.js.map} +1 -1
- package/components/{p-B-mB5dVY.js → p-BBwXlKhE.js} +3 -3
- package/components/{p-B-mB5dVY.js.map → p-BBwXlKhE.js.map} +1 -1
- package/components/{p-DInJFFDT.js → p-BEDohapR.js} +4 -4
- package/components/{p-DInJFFDT.js.map → p-BEDohapR.js.map} +1 -1
- package/components/{p-DkDGUG2W.js → p-BI7B-PUA.js} +4 -4
- package/components/{p-DkDGUG2W.js.map → p-BI7B-PUA.js.map} +1 -1
- package/components/{p-DvD1nW88.js → p-BLeWaHpy.js} +5 -5
- package/components/{p-DvD1nW88.js.map → p-BLeWaHpy.js.map} +1 -1
- package/components/{p-CFDRGf6r.js → p-BR5ayBuu.js} +3 -3
- package/components/{p-CFDRGf6r.js.map → p-BR5ayBuu.js.map} +1 -1
- package/components/{p-Cj9oZ8ym.js → p-BVUD9f4A.js} +8 -8
- package/components/{p-Cj9oZ8ym.js.map → p-BVUD9f4A.js.map} +1 -1
- package/components/{p-CvuFiT5X.js → p-BZLbfHdO.js} +66 -25
- package/components/p-BZLbfHdO.js.map +1 -0
- package/components/{p-BHcP7TVn.js → p-Bk0vKwmt.js} +4 -4
- package/components/{p-BHcP7TVn.js.map → p-Bk0vKwmt.js.map} +1 -1
- package/components/{p-GPVWLtS3.js → p-Bye33cYU.js} +7 -7
- package/components/{p-GPVWLtS3.js.map → p-Bye33cYU.js.map} +1 -1
- package/components/{p-4kEXJDiJ.js → p-Bz7hxKB6.js} +4 -4
- package/components/{p-4kEXJDiJ.js.map → p-Bz7hxKB6.js.map} +1 -1
- package/components/{p-D6KzHh-w.js → p-C4KxNeD2.js} +3 -3
- package/components/{p-D6KzHh-w.js.map → p-C4KxNeD2.js.map} +1 -1
- package/components/{p-DWRnKXkl.js → p-C6_1qmP4.js} +3 -3
- package/components/{p-DWRnKXkl.js.map → p-C6_1qmP4.js.map} +1 -1
- package/components/{p-OLe05BAC.js → p-COWPG_SD.js} +3 -3
- package/components/p-COWPG_SD.js.map +1 -0
- package/components/{p-C56HnkHy.js → p-Cc4uqNv5.js} +18 -11
- package/components/p-Cc4uqNv5.js.map +1 -0
- package/components/{p-FWLjfP4_.js → p-CjDPpSJX.js} +13 -13
- package/components/p-CjDPpSJX.js.map +1 -0
- package/components/{p-DkKuaBAh.js → p-ClQxnZ3d.js} +6 -6
- package/components/{p-DkKuaBAh.js.map → p-ClQxnZ3d.js.map} +1 -1
- package/components/{p-CL7Uj2A_.js → p-ColBHyXN.js} +5 -5
- package/components/{p-CL7Uj2A_.js.map → p-ColBHyXN.js.map} +1 -1
- package/components/{p-ChFNWyCb.js → p-CrqgL2m1.js} +8 -4
- package/components/p-CrqgL2m1.js.map +1 -0
- package/components/{p-De0habf3.js → p-CvD2yWeJ.js} +4 -4
- package/components/{p-De0habf3.js.map → p-CvD2yWeJ.js.map} +1 -1
- package/components/{p-B1sSJ2R2.js → p-DC9anobw.js} +6 -6
- package/components/{p-B1sSJ2R2.js.map → p-DC9anobw.js.map} +1 -1
- package/components/{p-BTR8UA6s.js → p-DSTHZygb.js} +8 -8
- package/components/{p-BTR8UA6s.js.map → p-DSTHZygb.js.map} +1 -1
- package/components/{p-Ow_osSm5.js → p-DXFN8JXp.js} +20 -9
- package/components/p-DXFN8JXp.js.map +1 -0
- package/components/{p-BtDCIGt3.js → p-Db0RazS2.js} +3 -3
- package/components/{p-BtDCIGt3.js.map → p-Db0RazS2.js.map} +1 -1
- package/components/{p-DTo0UW1Q.js → p-DlVaL0Yi.js} +7 -7
- package/components/{p-DTo0UW1Q.js.map → p-DlVaL0Yi.js.map} +1 -1
- package/components/{p-LVGd1t9U.js → p-Dp03DeD0.js} +5 -5
- package/components/{p-LVGd1t9U.js.map → p-Dp03DeD0.js.map} +1 -1
- package/components/{p-CMC0yuht.js → p-Dy6xvLn4.js} +4 -4
- package/components/{p-CMC0yuht.js.map → p-Dy6xvLn4.js.map} +1 -1
- package/components/{p-BAG4Ixzu.js → p-DyGPjxFm.js} +5 -5
- package/components/{p-BAG4Ixzu.js.map → p-DyGPjxFm.js.map} +1 -1
- package/components/{p-CwFNYtOl.js → p-PpLLlogo.js} +5 -5
- package/components/{p-CwFNYtOl.js.map → p-PpLLlogo.js.map} +1 -1
- package/components/{p-S6nC3Yb4.js → p-g2Y5blor.js} +68 -43
- package/components/p-g2Y5blor.js.map +1 -0
- package/components/{p-CDPfohEH.js → p-kJlC6ZD0.js} +62 -41
- package/components/p-kJlC6ZD0.js.map +1 -0
- package/dist/cjs/{helper-text-util-BlElJLxk.js → helper-text-util-D2W-yNmK.js} +8 -4
- package/dist/cjs/helper-text-util-D2W-yNmK.js.map +1 -0
- package/dist/cjs/{input.util-4AhBphgX.js → input.fc-B5JMSZbY.js} +68 -42
- package/dist/cjs/input.fc-B5JMSZbY.js.map +1 -0
- package/dist/cjs/ix-avatar_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +14 -8
- package/dist/cjs/ix-category-filter.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 +9 -9
- package/dist/cjs/ix-date-input.cjs.entry.js +22 -8
- package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-time-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/ix-datetime-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +5 -5
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-expanding-search.cjs.entry.js +4 -4
- package/dist/cjs/ix-field-label_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile.cjs.entry.js +3 -3
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group.cjs.entry.js +8 -8
- package/dist/cjs/ix-helper-text.cjs.entry.js +2 -2
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-input.cjs.entry.js +20 -11
- package/dist/cjs/ix-input.entry.cjs.js.map +1 -1
- 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 +4 -4
- package/dist/cjs/ix-link-button.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 +4 -4
- package/dist/cjs/ix-menu-about.cjs.entry.js +6 -4
- package/dist/cjs/ix-menu-about.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +2 -2
- 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-Cdqo0r8E.js → ix-menu-settings-CtWl0bME.js} +14 -7
- package/dist/cjs/ix-menu-settings-CtWl0bME.js.map +1 -0
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-settings.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu.cjs.entry.js +12 -12
- package/dist/cjs/ix-message-bar.cjs.entry.js +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 +3 -3
- package/dist/cjs/ix-number-input.cjs.entry.js +161 -33
- package/dist/cjs/ix-number-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pagination.cjs.entry.js +29 -7
- 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 +6 -6
- package/dist/cjs/ix-pill.cjs.entry.js +4 -4
- package/dist/cjs/ix-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-radio.cjs.entry.js +3 -3
- package/dist/cjs/ix-select.cjs.entry.js +52 -13
- package/dist/cjs/ix-select.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-slider.cjs.entry.js +6 -6
- package/dist/cjs/ix-split-button.cjs.entry.js +24 -12
- package/dist/cjs/ix-split-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-textarea.cjs.entry.js +5 -5
- package/dist/cjs/ix-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +4 -4
- package/dist/cjs/ix-time-input.cjs.entry.js +22 -8
- package/dist/cjs/ix-time-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +56 -35
- package/dist/cjs/ix-time-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/ix-toast.cjs.entry.js +2 -2
- package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ix-tooltip.cjs.entry.js +17 -6
- 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-validation-tooltip.cjs.entry.js +2 -2
- 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/siemens-ix.cjs.js +1 -1
- package/dist/collection/components/category-filter/category-filter.css +321 -50
- package/dist/collection/components/category-filter/category-filter.js +13 -7
- package/dist/collection/components/category-filter/category-filter.js.map +1 -1
- package/dist/collection/components/date-input/date-input.js +58 -4
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.css +6 -8
- package/dist/collection/components/date-picker/date-picker.js +5 -5
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.css +3 -2
- package/dist/collection/components/datetime-picker/datetime-picker.css +12 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +5 -5
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- 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 +3 -3
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/event-list/event-list.js +2 -2
- package/dist/collection/components/event-list-item/event-list-item.js +4 -4
- package/dist/collection/components/expanding-search/expanding-search.js +4 -4
- package/dist/collection/components/field-label/field-label.js +1 -1
- package/dist/collection/components/field-wrapper/field-wrapper.js +2 -2
- package/dist/collection/components/field-wrapper/helper-text-util.js +6 -2
- package/dist/collection/components/field-wrapper/helper-text-util.js.map +1 -1
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +3 -3
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
- package/dist/collection/components/group/group-context-menu.js +1 -1
- package/dist/collection/components/group/group.js +8 -8
- package/dist/collection/components/helper-text/helper-text.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
- package/dist/collection/components/input/input.fc.js +10 -1
- package/dist/collection/components/input/input.fc.js.map +1 -1
- package/dist/collection/components/input/input.js +54 -5
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/input.util.js +20 -3
- package/dist/collection/components/input/input.util.js.map +1 -1
- package/dist/collection/components/input/number-input.js +228 -36
- package/dist/collection/components/input/number-input.js.map +1 -1
- package/dist/collection/components/input/textarea.js +2 -2
- package/dist/collection/components/input-group/input-group.js +1 -1
- 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.css +2 -8
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/menu/menu-expand-icon.js +1 -1
- package/dist/collection/components/menu/menu.js +12 -12
- package/dist/collection/components/menu-about/menu-about.js +6 -4
- package/dist/collection/components/menu-about/menu-about.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 +4 -4
- package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
- 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/menu-settings.js +6 -4
- package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +3 -3
- 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 +52 -7
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pane/pane.js +6 -6
- package/dist/collection/components/pane-layout/pane-layout.js +1 -1
- package/dist/collection/components/pill/pill.js +4 -4
- package/dist/collection/components/progress-indicator/progress-indicator.js +3 -3
- package/dist/collection/components/push-card/push-card.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/select/select.js +94 -14
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/slider/slider.js +6 -6
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +70 -12
- package/dist/collection/components/split-button/split-button.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.js +3 -3
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tile/tile.js +4 -4
- package/dist/collection/components/time-input/time-input.js +59 -5
- package/dist/collection/components/time-input/time-input.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.css +20 -52
- package/dist/collection/components/time-picker/time-picker.js +58 -38
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.types.js.map +1 -1
- package/dist/collection/components/toast/toast-container.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/tooltip/tooltip.css +2 -3
- package/dist/collection/components/tooltip/tooltip.js +17 -6
- package/dist/collection/components/tooltip/tooltip.js.map +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 +3 -3
- package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js +6 -1
- package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js.map +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
- package/dist/collection/components/workflow-step/workflow-step.js +3 -3
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
- package/dist/esm/{helper-text-util-BurV4TiQ.js → helper-text-util-gKdL-wH2.js} +8 -4
- package/dist/esm/helper-text-util-gKdL-wH2.js.map +1 -0
- package/dist/esm/{input.util-VHrSuCP7.js → input.fc-CQbX6V05.js} +68 -43
- package/dist/esm/input.fc-CQbX6V05.js.map +1 -0
- package/dist/esm/ix-avatar_2.entry.js +1 -1
- package/dist/esm/ix-category-filter.entry.js +14 -8
- package/dist/esm/ix-category-filter.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 +9 -9
- package/dist/esm/ix-date-input.entry.js +18 -4
- package/dist/esm/ix-date-input.entry.js.map +1 -1
- package/dist/esm/ix-date-time-card.entry.js +1 -1
- package/dist/esm/ix-date-time-card.entry.js.map +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +2 -2
- package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
- package/dist/esm/ix-divider.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +5 -5
- package/dist/esm/ix-dropdown-button.entry.js +3 -3
- package/dist/esm/ix-dropdown-header.entry.js +1 -1
- package/dist/esm/ix-dropdown-item.entry.js +3 -3
- package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
- package/dist/esm/ix-dropdown.entry.js +2 -2
- package/dist/esm/ix-empty-state.entry.js +1 -1
- package/dist/esm/ix-event-list-item.entry.js +4 -4
- package/dist/esm/ix-event-list.entry.js +2 -2
- package/dist/esm/ix-expanding-search.entry.js +4 -4
- package/dist/esm/ix-field-label_2.entry.js +4 -4
- package/dist/esm/ix-filter-chip_2.entry.js +2 -2
- package/dist/esm/ix-flip-tile-content.entry.js +1 -1
- package/dist/esm/ix-flip-tile.entry.js +3 -3
- package/dist/esm/ix-group-context-menu_2.entry.js +1 -1
- package/dist/esm/ix-group.entry.js +8 -8
- package/dist/esm/ix-helper-text.entry.js +2 -2
- package/dist/esm/ix-icon-button_2.entry.js +2 -2
- package/dist/esm/ix-icon-toggle-button.entry.js +1 -1
- package/dist/esm/ix-input-group.entry.js +1 -1
- package/dist/esm/ix-input.entry.js +15 -6
- package/dist/esm/ix-input.entry.js.map +1 -1
- 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 +4 -4
- package/dist/esm/ix-link-button.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 +4 -4
- package/dist/esm/ix-menu-about.entry.js +6 -4
- package/dist/esm/ix-menu-about.entry.js.map +1 -1
- package/dist/esm/ix-menu-avatar.entry.js +2 -2
- 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-Bif4wByb.js → ix-menu-settings-f9o5GGw5.js} +14 -7
- package/dist/esm/ix-menu-settings-f9o5GGw5.js.map +1 -0
- package/dist/esm/ix-menu-settings-item.entry.js +1 -1
- package/dist/esm/ix-menu-settings.entry.js +1 -1
- package/dist/esm/ix-menu.entry.js +12 -12
- package/dist/esm/ix-message-bar.entry.js +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 +3 -3
- package/dist/esm/ix-number-input.entry.js +158 -30
- package/dist/esm/ix-number-input.entry.js.map +1 -1
- package/dist/esm/ix-pagination.entry.js +29 -7
- 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 +6 -6
- package/dist/esm/ix-pill.entry.js +4 -4
- package/dist/esm/ix-progress-indicator.entry.js +3 -3
- package/dist/esm/ix-push-card.entry.js +1 -1
- package/dist/esm/ix-radio-group.entry.js +2 -2
- package/dist/esm/ix-radio.entry.js +3 -3
- package/dist/esm/ix-select.entry.js +52 -13
- package/dist/esm/ix-select.entry.js.map +1 -1
- package/dist/esm/ix-slider.entry.js +6 -6
- package/dist/esm/ix-split-button.entry.js +24 -12
- package/dist/esm/ix-split-button.entry.js.map +1 -1
- package/dist/esm/ix-tab-item_2.entry.js +5 -5
- package/dist/esm/ix-textarea.entry.js +3 -3
- package/dist/esm/ix-tile.entry.js +4 -4
- package/dist/esm/ix-time-input.entry.js +19 -5
- package/dist/esm/ix-time-input.entry.js.map +1 -1
- package/dist/esm/ix-time-picker.entry.js +56 -35
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast-container.entry.js +2 -2
- package/dist/esm/ix-toast.entry.js +2 -2
- package/dist/esm/ix-toggle.entry.js +3 -3
- package/dist/esm/ix-tooltip.entry.js +17 -6
- 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-validation-tooltip.entry.js +2 -2
- 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/siemens-ix.js +1 -1
- package/dist/siemens-ix/ix-category-filter.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-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-input.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-about.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-number-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pagination.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-select.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-split-button.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-tooltip.entry.esm.js.map +1 -1
- package/dist/siemens-ix/p-0411df39.entry.js +2 -0
- package/dist/siemens-ix/p-051f428c.entry.js +2 -0
- package/dist/siemens-ix/{p-4288bd66.entry.js.map → p-051f428c.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-49843cce.entry.js → p-086d31e7.entry.js} +2 -2
- package/dist/siemens-ix/p-086d31e7.entry.js.map +1 -0
- package/dist/siemens-ix/{p-9f7f5cd3.entry.js → p-0ce03ad3.entry.js} +2 -2
- package/dist/siemens-ix/{p-60d2f3db.entry.js → p-0d621531.entry.js} +2 -2
- package/dist/siemens-ix/{p-4a127027.entry.js → p-10f2a239.entry.js} +2 -2
- package/dist/siemens-ix/{p-d70cd703.entry.js → p-196cffb5.entry.js} +2 -2
- package/dist/siemens-ix/{p-94596bff.entry.js → p-1de1a2bf.entry.js} +2 -2
- package/dist/siemens-ix/{p-b7c64537.entry.js → p-2597a988.entry.js} +2 -2
- package/dist/siemens-ix/{p-a8f08878.entry.js → p-2ffde2d5.entry.js} +2 -2
- package/dist/siemens-ix/p-31a8eaf9.entry.js +2 -0
- package/dist/siemens-ix/{p-2e3ac12c.entry.js → p-33fcea65.entry.js} +2 -2
- package/dist/siemens-ix/{p-bd2127d0.entry.js → p-367df024.entry.js} +2 -2
- package/dist/siemens-ix/{p-65c759c5.entry.js → p-3751c675.entry.js} +2 -2
- package/dist/siemens-ix/{p-76bd4cf9.entry.js → p-37bd983a.entry.js} +2 -2
- package/dist/siemens-ix/{p-d2831f7b.entry.js → p-38e45020.entry.js} +2 -2
- package/dist/siemens-ix/{p-d997238b.entry.js → p-396e1f3d.entry.js} +2 -2
- package/dist/siemens-ix/{p-0fd006b9.entry.js → p-3b7573d6.entry.js} +2 -2
- package/dist/siemens-ix/p-3ce5fd87.entry.js +2 -0
- package/dist/siemens-ix/p-3ce5fd87.entry.js.map +1 -0
- package/dist/siemens-ix/p-3f13b14e.entry.js +2 -0
- package/dist/siemens-ix/p-3f13b14e.entry.js.map +1 -0
- package/dist/siemens-ix/p-3f62166e.entry.js +2 -0
- package/dist/siemens-ix/{p-6880e267.entry.js.map → p-3f62166e.entry.js.map} +1 -1
- package/dist/siemens-ix/p-425d6925.entry.js +2 -0
- package/dist/siemens-ix/{p-ec3ec461.entry.js → p-484bddf4.entry.js} +2 -2
- package/dist/siemens-ix/{p-df5494ff.entry.js → p-496e98ac.entry.js} +2 -2
- package/dist/siemens-ix/{p-ab6d123c.entry.js → p-4c18f123.entry.js} +2 -2
- package/dist/siemens-ix/{p-c96ce76c.entry.js → p-4c1f90cb.entry.js} +2 -2
- package/dist/siemens-ix/{p-a53d7dbb.entry.js → p-4e4d792d.entry.js} +2 -2
- package/dist/siemens-ix/p-51ae739e.entry.js +2 -0
- package/dist/siemens-ix/p-51ae739e.entry.js.map +1 -0
- package/dist/siemens-ix/{p-80981f03.entry.js → p-5779f16e.entry.js} +2 -2
- package/dist/siemens-ix/{p-4d0e900c.entry.js → p-5b57bde1.entry.js} +2 -2
- package/dist/siemens-ix/{p-6045dce9.entry.js → p-5d6f43fd.entry.js} +2 -2
- package/dist/siemens-ix/p-5iwF1M9X.js +2 -0
- package/dist/siemens-ix/p-5iwF1M9X.js.map +1 -0
- package/dist/siemens-ix/{p-2b2f339e.entry.js → p-6445a54f.entry.js} +2 -2
- package/dist/siemens-ix/{p-acb7c236.entry.js → p-667e3184.entry.js} +2 -2
- package/dist/siemens-ix/{p-92e0ebf1.entry.js → p-6a4bc78a.entry.js} +2 -2
- package/dist/siemens-ix/p-6dc6eb63.entry.js +2 -0
- package/dist/siemens-ix/{p-453aa17a.entry.js.map → p-6dc6eb63.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-319e292f.entry.js → p-74e7b03f.entry.js} +2 -2
- package/dist/siemens-ix/{p-7c474c82.entry.js → p-77fd2138.entry.js} +2 -2
- package/dist/siemens-ix/{p-11b1eaa3.entry.js → p-7bad0544.entry.js} +2 -2
- package/dist/siemens-ix/{p-23e4f5f3.entry.js → p-7beba4ad.entry.js} +2 -2
- package/dist/siemens-ix/p-7beba4ad.entry.js.map +1 -0
- package/dist/siemens-ix/{p-ffe0835b.entry.js → p-7f90eeef.entry.js} +2 -2
- package/dist/siemens-ix/{p-b76ed7c3.entry.js → p-84df2a86.entry.js} +2 -2
- package/dist/siemens-ix/p-84df2a86.entry.js.map +1 -0
- package/dist/siemens-ix/p-8b42ad35.entry.js +2 -0
- package/dist/siemens-ix/{p-31f77d98.entry.js.map → p-8b42ad35.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-5c22d3e5.entry.js → p-8f9368b8.entry.js} +2 -2
- package/dist/siemens-ix/p-8fa8d0e3.entry.js +2 -0
- package/dist/siemens-ix/p-92ec7f27.entry.js +2 -0
- package/dist/siemens-ix/{p-DBsKyLIP.js → p-BcCDexod.js} +2 -2
- package/dist/siemens-ix/p-BcCDexod.js.map +1 -0
- package/dist/siemens-ix/p-Cn013Iz8.js +2 -0
- package/dist/siemens-ix/p-Cn013Iz8.js.map +1 -0
- package/dist/siemens-ix/p-a3baca2f.entry.js +2 -0
- package/dist/siemens-ix/{p-75a10c1e.entry.js → p-b3453edf.entry.js} +2 -2
- package/dist/siemens-ix/p-b41a7abb.entry.js +2 -0
- package/dist/siemens-ix/{p-53df921a.entry.js.map → p-b41a7abb.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-9a4db5e9.entry.js → p-b76df1c7.entry.js} +2 -2
- package/dist/siemens-ix/{p-332dccc7.entry.js → p-b7ef70d4.entry.js} +2 -2
- package/dist/siemens-ix/{p-43ecc5c3.entry.js → p-b8f4b001.entry.js} +2 -2
- package/dist/siemens-ix/{p-531f9746.entry.js → p-b9880608.entry.js} +2 -2
- package/dist/siemens-ix/{p-619a3dc8.entry.js → p-c5c863e1.entry.js} +2 -2
- package/dist/siemens-ix/{p-bb744e91.entry.js → p-c94739d0.entry.js} +2 -2
- package/dist/siemens-ix/{p-8cb3d70c.entry.js → p-ca3b24b1.entry.js} +2 -2
- package/dist/siemens-ix/{p-4acf0d7b.entry.js → p-cd1afcc9.entry.js} +2 -2
- package/dist/siemens-ix/{p-713df610.entry.js → p-cf041cfd.entry.js} +2 -2
- package/dist/siemens-ix/{p-338c68ea.entry.js → p-d10b9798.entry.js} +2 -2
- package/dist/siemens-ix/{p-6fd7d11a.entry.js → p-d193381f.entry.js} +2 -2
- package/dist/siemens-ix/{p-d90d1310.entry.js → p-d3a60c52.entry.js} +2 -2
- package/dist/siemens-ix/p-d688f76e.entry.js +2 -0
- package/dist/siemens-ix/{p-2d96a4a1.entry.js.map → p-d688f76e.entry.js.map} +1 -1
- package/dist/siemens-ix/p-dc8de6cb.entry.js +2 -0
- package/dist/siemens-ix/p-dc8de6cb.entry.js.map +1 -0
- package/dist/siemens-ix/p-dd16efd4.entry.js +2 -0
- package/dist/siemens-ix/p-dd16efd4.entry.js.map +1 -0
- package/dist/siemens-ix/p-de12078d.entry.js +2 -0
- package/dist/siemens-ix/{p-418671c7.entry.js.map → p-de12078d.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-f40573e7.entry.js → p-df6bb698.entry.js} +2 -2
- package/dist/siemens-ix/p-e0b9cf68.entry.js +2 -0
- package/dist/siemens-ix/{p-5bb86bf7.entry.js → p-e42f62a1.entry.js} +2 -2
- package/dist/siemens-ix/{p-fb02d7fd.entry.js → p-e48977ed.entry.js} +2 -2
- package/dist/siemens-ix/{p-3099c12a.entry.js → p-e7bdc0a0.entry.js} +2 -2
- package/dist/siemens-ix/p-e7bdc0a0.entry.js.map +1 -0
- package/dist/siemens-ix/{p-ff6f13e1.entry.js → p-ea15fc79.entry.js} +2 -2
- package/dist/siemens-ix/{p-18d4645d.entry.js → p-ea37abf6.entry.js} +2 -2
- package/dist/siemens-ix/{p-f253d38c.entry.js → p-eba7f62c.entry.js} +2 -2
- package/dist/siemens-ix/{p-b64a3d8a.entry.js → p-ebef3d52.entry.js} +2 -2
- package/dist/siemens-ix/p-f05aa76f.entry.js +2 -0
- package/dist/siemens-ix/p-f05aa76f.entry.js.map +1 -0
- package/dist/siemens-ix/p-fb8877bc.entry.js +2 -0
- package/dist/siemens-ix/p-fb8877bc.entry.js.map +1 -0
- package/dist/siemens-ix/{p-e3dca831.entry.js → p-ff83eafd.entry.js} +2 -2
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix.css +2 -5
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/date-input/date-input.d.ts +10 -0
- package/dist/types/components/field-wrapper/helper-text-util.d.ts +5 -1
- package/dist/types/components/input/input.d.ts +9 -0
- package/dist/types/components/input/input.fc.d.ts +6 -0
- package/dist/types/components/input/input.util.d.ts +1 -0
- package/dist/types/components/input/number-input.d.ts +31 -5
- package/dist/types/components/menu-about/menu-about.d.ts +1 -1
- package/dist/types/components/menu-settings/menu-settings.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +8 -0
- package/dist/types/components/select/select.d.ts +11 -0
- package/dist/types/components/split-button/split-button.d.ts +15 -4
- package/dist/types/components/time-input/time-input.d.ts +10 -0
- package/dist/types/components/time-picker/time-picker.d.ts +6 -1
- package/dist/types/components/tooltip/tooltip.d.ts +2 -1
- package/dist/types/components/utils/menu-tabs/menu-tabs-utils.d.ts +1 -0
- package/dist/types/components.d.ts +160 -12
- package/hydrate/index.js +673 -347
- package/hydrate/index.mjs +673 -347
- package/package.json +1 -1
- package/scss/components/_links.scss +2 -5
- package/scss/mixins/_input.scss +2 -2
- package/scss/theme/classic/dark/_variables.scss +1 -1
- package/components/p-C56HnkHy.js.map +0 -1
- package/components/p-CDPfohEH.js.map +0 -1
- package/components/p-ChFNWyCb.js.map +0 -1
- package/components/p-CvuFiT5X.js.map +0 -1
- package/components/p-FWLjfP4_.js.map +0 -1
- package/components/p-OLe05BAC.js.map +0 -1
- package/components/p-Ow_osSm5.js.map +0 -1
- package/components/p-S6nC3Yb4.js.map +0 -1
- package/dist/cjs/helper-text-util-BlElJLxk.js.map +0 -1
- package/dist/cjs/input.util-4AhBphgX.js.map +0 -1
- package/dist/cjs/ix-menu-settings-Cdqo0r8E.js.map +0 -1
- package/dist/esm/helper-text-util-BurV4TiQ.js.map +0 -1
- package/dist/esm/input.util-VHrSuCP7.js.map +0 -1
- package/dist/esm/ix-menu-settings-Bif4wByb.js.map +0 -1
- package/dist/siemens-ix/p-10ed549b.entry.js +0 -2
- package/dist/siemens-ix/p-10ed549b.entry.js.map +0 -1
- package/dist/siemens-ix/p-1550973a.entry.js +0 -2
- package/dist/siemens-ix/p-1de6e736.entry.js +0 -2
- package/dist/siemens-ix/p-1de6e736.entry.js.map +0 -1
- package/dist/siemens-ix/p-23e4f5f3.entry.js.map +0 -1
- package/dist/siemens-ix/p-2d96a4a1.entry.js +0 -2
- package/dist/siemens-ix/p-3099c12a.entry.js.map +0 -1
- package/dist/siemens-ix/p-31f77d98.entry.js +0 -2
- package/dist/siemens-ix/p-418671c7.entry.js +0 -2
- package/dist/siemens-ix/p-4288bd66.entry.js +0 -2
- package/dist/siemens-ix/p-453aa17a.entry.js +0 -2
- package/dist/siemens-ix/p-45b53c34.entry.js +0 -2
- package/dist/siemens-ix/p-45b53c34.entry.js.map +0 -1
- package/dist/siemens-ix/p-49843cce.entry.js.map +0 -1
- package/dist/siemens-ix/p-53df921a.entry.js +0 -2
- package/dist/siemens-ix/p-598ece5a.entry.js +0 -2
- package/dist/siemens-ix/p-6880e267.entry.js +0 -2
- package/dist/siemens-ix/p-712e393d.entry.js +0 -2
- package/dist/siemens-ix/p-712e393d.entry.js.map +0 -1
- package/dist/siemens-ix/p-89a7705b.entry.js +0 -2
- package/dist/siemens-ix/p-89a7705b.entry.js.map +0 -1
- package/dist/siemens-ix/p-DBsKyLIP.js.map +0 -1
- package/dist/siemens-ix/p-DS9crO46.js +0 -2
- package/dist/siemens-ix/p-DS9crO46.js.map +0 -1
- package/dist/siemens-ix/p-DXAZefAa.js +0 -2
- package/dist/siemens-ix/p-DXAZefAa.js.map +0 -1
- package/dist/siemens-ix/p-a0ffeea7.entry.js +0 -2
- package/dist/siemens-ix/p-a6e398d2.entry.js +0 -2
- package/dist/siemens-ix/p-b76ed7c3.entry.js.map +0 -1
- package/dist/siemens-ix/p-b7da78c6.entry.js +0 -2
- package/dist/siemens-ix/p-b7da78c6.entry.js.map +0 -1
- package/dist/siemens-ix/p-c6536a88.entry.js +0 -2
- package/dist/siemens-ix/p-d18df859.entry.js +0 -2
- package/dist/siemens-ix/p-e5180acd.entry.js +0 -2
- package/dist/siemens-ix/p-e5180acd.entry.js.map +0 -1
- package/dist/siemens-ix/p-fdb802ac.entry.js +0 -2
- /package/dist/siemens-ix/{p-fdb802ac.entry.js.map → p-0411df39.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9f7f5cd3.entry.js.map → p-0ce03ad3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-60d2f3db.entry.js.map → p-0d621531.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4a127027.entry.js.map → p-10f2a239.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d70cd703.entry.js.map → p-196cffb5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-94596bff.entry.js.map → p-1de1a2bf.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b7c64537.entry.js.map → p-2597a988.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a8f08878.entry.js.map → p-2ffde2d5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-598ece5a.entry.js.map → p-31a8eaf9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2e3ac12c.entry.js.map → p-33fcea65.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bd2127d0.entry.js.map → p-367df024.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-65c759c5.entry.js.map → p-3751c675.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-76bd4cf9.entry.js.map → p-37bd983a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d2831f7b.entry.js.map → p-38e45020.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d997238b.entry.js.map → p-396e1f3d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0fd006b9.entry.js.map → p-3b7573d6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c6536a88.entry.js.map → p-425d6925.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ec3ec461.entry.js.map → p-484bddf4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-df5494ff.entry.js.map → p-496e98ac.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ab6d123c.entry.js.map → p-4c18f123.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c96ce76c.entry.js.map → p-4c1f90cb.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a53d7dbb.entry.js.map → p-4e4d792d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-80981f03.entry.js.map → p-5779f16e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4d0e900c.entry.js.map → p-5b57bde1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6045dce9.entry.js.map → p-5d6f43fd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2b2f339e.entry.js.map → p-6445a54f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-acb7c236.entry.js.map → p-667e3184.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-92e0ebf1.entry.js.map → p-6a4bc78a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-319e292f.entry.js.map → p-74e7b03f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7c474c82.entry.js.map → p-77fd2138.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-11b1eaa3.entry.js.map → p-7bad0544.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ffe0835b.entry.js.map → p-7f90eeef.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5c22d3e5.entry.js.map → p-8f9368b8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d18df859.entry.js.map → p-8fa8d0e3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a6e398d2.entry.js.map → p-92ec7f27.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1550973a.entry.js.map → p-a3baca2f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-75a10c1e.entry.js.map → p-b3453edf.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9a4db5e9.entry.js.map → p-b76df1c7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-332dccc7.entry.js.map → p-b7ef70d4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-43ecc5c3.entry.js.map → p-b8f4b001.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-531f9746.entry.js.map → p-b9880608.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-619a3dc8.entry.js.map → p-c5c863e1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bb744e91.entry.js.map → p-c94739d0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8cb3d70c.entry.js.map → p-ca3b24b1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4acf0d7b.entry.js.map → p-cd1afcc9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-713df610.entry.js.map → p-cf041cfd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-338c68ea.entry.js.map → p-d10b9798.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6fd7d11a.entry.js.map → p-d193381f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d90d1310.entry.js.map → p-d3a60c52.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f40573e7.entry.js.map → p-df6bb698.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a0ffeea7.entry.js.map → p-e0b9cf68.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5bb86bf7.entry.js.map → p-e42f62a1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-fb02d7fd.entry.js.map → p-e48977ed.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ff6f13e1.entry.js.map → p-ea15fc79.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-18d4645d.entry.js.map → p-ea37abf6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f253d38c.entry.js.map → p-eba7f62c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b64a3d8a.entry.js.map → p-ebef3d52.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e3dca831.entry.js.map → p-ff83eafd.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2025 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -23,6 +23,7 @@ import { makeRef } from "../utils/make-ref";
|
|
|
23
23
|
import { InputElement, SlotEnd, SlotStart } from "./input.fc";
|
|
24
24
|
import { addDisposableChangesAndVisibilityObservers, adjustPaddingForStartAndEnd, checkAllowedKeys, checkInternalValidity, mapValidationResult, onInputBlur, } from "./input.util";
|
|
25
25
|
let numberInputIds = 0;
|
|
26
|
+
const INVALID_NUMBER_INPUT_REGEX = /[^\dEe+\-.,]/;
|
|
26
27
|
/**
|
|
27
28
|
* @form-ready
|
|
28
29
|
* @slot start - Element will be displayed at the start of the input
|
|
@@ -31,11 +32,11 @@ let numberInputIds = 0;
|
|
|
31
32
|
export class NumberInput {
|
|
32
33
|
constructor() {
|
|
33
34
|
/**
|
|
34
|
-
* The value of the input field
|
|
35
|
+
* The value of the input field. Supports numeric values, scientific notation (1E6, 1E-6), or undefined for empty.
|
|
35
36
|
*/
|
|
36
37
|
this.value = 0;
|
|
37
38
|
/**
|
|
38
|
-
* Indicates if the field is required
|
|
39
|
+
* Indicates if the field is required. When required, empty values (undefined) are not accepted.
|
|
39
40
|
*/
|
|
40
41
|
this.required = false;
|
|
41
42
|
/**
|
|
@@ -46,6 +47,27 @@ export class NumberInput {
|
|
|
46
47
|
* Indicates if the field is read-only
|
|
47
48
|
*/
|
|
48
49
|
this.readonly = false;
|
|
50
|
+
/**
|
|
51
|
+
* Step value to increment or decrement the input value. Default step value is 1.
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
this.step = 1;
|
|
55
|
+
/**
|
|
56
|
+
* If false, pressing Enter will submit the form (if inside a form).
|
|
57
|
+
* Set to true to suppress submit on Enter.
|
|
58
|
+
*/
|
|
59
|
+
this.suppressSubmitOnEnter = false;
|
|
60
|
+
/**
|
|
61
|
+
* Text alignment within the number input. 'start' aligns the text to the start of the input, 'end' aligns the text to the end of the input.
|
|
62
|
+
*/
|
|
63
|
+
this.textAlignment = 'end';
|
|
64
|
+
/**
|
|
65
|
+
* If true, the valueChange event will return null instead of 0 for an empty input state.
|
|
66
|
+
* This property will be removed in 5.0.0 and this behaviour will be default.
|
|
67
|
+
*
|
|
68
|
+
* @since 4.1.0
|
|
69
|
+
*/
|
|
70
|
+
this.allowEmptyValueChange = false;
|
|
49
71
|
this.isInvalid = false;
|
|
50
72
|
this.isValid = false;
|
|
51
73
|
this.isInfo = false;
|
|
@@ -56,6 +78,70 @@ export class NumberInput {
|
|
|
56
78
|
this.slotStartRef = makeRef();
|
|
57
79
|
this.numberInputId = `number-input-${numberInputIds++}`;
|
|
58
80
|
this.touched = false;
|
|
81
|
+
this.handleInputChange = (inputValue) => {
|
|
82
|
+
const parsedValue = this.convertNumberStringToFloat(inputValue);
|
|
83
|
+
const isScientificNotation = this.isScientificNotation(inputValue.trim());
|
|
84
|
+
if (isScientificNotation) {
|
|
85
|
+
this.formInternals.setFormValue(inputValue);
|
|
86
|
+
}
|
|
87
|
+
this.handleValueChangeEvent(parsedValue);
|
|
88
|
+
};
|
|
89
|
+
this.handleBlur = () => {
|
|
90
|
+
if (!this.inputRef.current)
|
|
91
|
+
return;
|
|
92
|
+
const inputValue = this.inputRef.current.value;
|
|
93
|
+
const parsedValue = this.convertNumberStringToFloat(inputValue);
|
|
94
|
+
if (parsedValue !== undefined) {
|
|
95
|
+
this.inputRef.current.value = this.formatValue(parsedValue);
|
|
96
|
+
}
|
|
97
|
+
this.updateFormInternalValue(parsedValue);
|
|
98
|
+
onInputBlur(this, this.inputRef.current);
|
|
99
|
+
this.touched = true;
|
|
100
|
+
};
|
|
101
|
+
this.handleKeyDown = (event) => {
|
|
102
|
+
if (this.disabled || this.readonly) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
switch (event.key) {
|
|
106
|
+
case 'ArrowUp':
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
this.handleStepOperation('up');
|
|
109
|
+
break;
|
|
110
|
+
case 'ArrowDown':
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
this.handleStepOperation('down');
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
this.handleBeforeInput = (e) => {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
if (this.disabled || this.readonly)
|
|
119
|
+
return;
|
|
120
|
+
if (e.inputType === 'insertText') {
|
|
121
|
+
const character = e.data;
|
|
122
|
+
if (character && INVALID_NUMBER_INPUT_REGEX.test(character)) {
|
|
123
|
+
e.preventDefault();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (e.inputType === 'insertFromPaste') {
|
|
127
|
+
const dt = e.dataTransfer || e.clipboardData;
|
|
128
|
+
const text = (_b = (_a = dt === null || dt === void 0 ? void 0 : dt.getData) === null || _a === void 0 ? void 0 : _a.call(dt, 'text')) !== null && _b !== void 0 ? _b : '';
|
|
129
|
+
if (INVALID_NUMBER_INPUT_REGEX.test(text)) {
|
|
130
|
+
e.preventDefault();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this.handlePaste = (e) => {
|
|
135
|
+
var _a, _b;
|
|
136
|
+
// Fallback for browsers that don’t fire beforeinput for paste
|
|
137
|
+
const text = (_b = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text')) !== null && _b !== void 0 ? _b : '';
|
|
138
|
+
if (INVALID_NUMBER_INPUT_REGEX.test(text)) {
|
|
139
|
+
e.preventDefault();
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
onValueChange(newValue) {
|
|
144
|
+
this.updateFormInternalValue(newValue);
|
|
59
145
|
}
|
|
60
146
|
updateClassMappings(result) {
|
|
61
147
|
mapValidationResult(this, result);
|
|
@@ -74,10 +160,60 @@ export class NumberInput {
|
|
|
74
160
|
updatePaddings() {
|
|
75
161
|
adjustPaddingForStartAndEnd(this.slotStartRef.current, this.slotEndRef.current, this.inputRef.current);
|
|
76
162
|
}
|
|
163
|
+
convertNumberStringToFloat(input) {
|
|
164
|
+
if (!input || input.trim() === '') {
|
|
165
|
+
return undefined;
|
|
166
|
+
}
|
|
167
|
+
const parsed = Number.parseFloat(input);
|
|
168
|
+
return Number.isNaN(parsed) ? undefined : parsed;
|
|
169
|
+
}
|
|
170
|
+
isScientificNotation(input) {
|
|
171
|
+
const parsed = Number.parseFloat(input);
|
|
172
|
+
return (!Number.isNaN(parsed) && Number.isFinite(parsed) && /[eE]/.test(input));
|
|
173
|
+
}
|
|
174
|
+
formatValue(value) {
|
|
175
|
+
if (value === undefined || value === null) {
|
|
176
|
+
return '';
|
|
177
|
+
}
|
|
178
|
+
return value.toString();
|
|
179
|
+
}
|
|
180
|
+
handleValueChangeEvent(value) {
|
|
181
|
+
this.valueChange.emit(this.allowEmptyValueChange ? value : (value !== null && value !== void 0 ? value : 0));
|
|
182
|
+
}
|
|
77
183
|
updateFormInternalValue(value) {
|
|
78
|
-
|
|
184
|
+
const formValue = value !== undefined && value !== null ? value.toString() : '';
|
|
185
|
+
this.formInternals.setFormValue(formValue);
|
|
79
186
|
this.value = value;
|
|
80
187
|
}
|
|
188
|
+
handleStepOperation(operation) {
|
|
189
|
+
var _a, _b;
|
|
190
|
+
if (!this.inputRef.current) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const currentValue = (_a = this.value) !== null && _a !== void 0 ? _a : 0;
|
|
194
|
+
const stepValue = typeof this.step === 'string'
|
|
195
|
+
? Number.parseFloat(this.step)
|
|
196
|
+
: ((_b = this.step) !== null && _b !== void 0 ? _b : 1);
|
|
197
|
+
let newValue;
|
|
198
|
+
if (operation === 'up') {
|
|
199
|
+
newValue = currentValue + stepValue;
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
newValue = currentValue - stepValue;
|
|
203
|
+
}
|
|
204
|
+
if (this.min !== undefined) {
|
|
205
|
+
const minValue = typeof this.min === 'string' ? Number.parseFloat(this.min) : this.min;
|
|
206
|
+
newValue = Math.max(newValue, minValue);
|
|
207
|
+
}
|
|
208
|
+
if (this.max !== undefined) {
|
|
209
|
+
const maxValue = typeof this.max === 'string' ? Number.parseFloat(this.max) : this.max;
|
|
210
|
+
newValue = Math.min(newValue, maxValue);
|
|
211
|
+
}
|
|
212
|
+
this.inputRef.current.value = newValue.toString();
|
|
213
|
+
this.updateFormInternalValue(newValue);
|
|
214
|
+
checkInternalValidity(this, this.inputRef.current);
|
|
215
|
+
this.handleValueChangeEvent(newValue);
|
|
216
|
+
}
|
|
81
217
|
/** @internal */
|
|
82
218
|
async getAssociatedFormElement() {
|
|
83
219
|
return this.formInternals.form;
|
|
@@ -86,9 +222,10 @@ export class NumberInput {
|
|
|
86
222
|
async hasValidValue() {
|
|
87
223
|
const nativeInput = await this.getNativeInputElement();
|
|
88
224
|
if (nativeInput.value === '') {
|
|
89
|
-
return
|
|
225
|
+
return !this.required;
|
|
90
226
|
}
|
|
91
|
-
|
|
227
|
+
const parsedValue = this.convertNumberStringToFloat(nativeInput.value);
|
|
228
|
+
return parsedValue !== undefined;
|
|
92
229
|
}
|
|
93
230
|
/**
|
|
94
231
|
* Returns the native input element used under the hood
|
|
@@ -110,36 +247,24 @@ export class NumberInput {
|
|
|
110
247
|
return Promise.resolve(this.touched);
|
|
111
248
|
}
|
|
112
249
|
render() {
|
|
250
|
+
var _a;
|
|
113
251
|
const showStepperButtons = this.showStepperButtons && (this.disabled || this.readonly) === false;
|
|
114
|
-
return (h(Host, { key: '
|
|
252
|
+
return (h(Host, { key: '4b541dbe6fe2b32b5158eed8f398de300ea71bb4', class: {
|
|
115
253
|
disabled: this.disabled,
|
|
116
254
|
readonly: this.readonly,
|
|
117
|
-
} }, h("ix-field-wrapper", { key: '
|
|
255
|
+
} }, h("ix-field-wrapper", { key: '7ef2bb50ba7c9b3b24612752155a2072329e4b61', id: this.numberInputId, required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.inputRef }, h("div", { key: '7e71d63d2a9ecbb16550925e68f3dc8dd76c3968', class: {
|
|
118
256
|
'input-wrapper': true,
|
|
119
257
|
'show-stepper-buttons': !!this.showStepperButtons,
|
|
120
|
-
} }, h(SlotStart, { key: '
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
258
|
+
} }, h(SlotStart, { key: '8d936c9126f94c42db87b2d95d34ab178eadd31d', slotStartRef: this.slotStartRef, onSlotChange: () => this.updatePaddings() }), h(InputElement, { key: 'c56f510ea8a519204d3d36136d4b0a5a17246370', id: this.numberInputId, readonly: this.readonly, disabled: this.disabled, step: this.step, min: this.min, max: this.max, pattern: this.pattern, type: 'number', isInvalid: this.isInvalid, required: this.required, value: this.formatValue(this.value), placeholder: this.placeholder, inputRef: this.inputRef, onKeyPress: (event) => checkAllowedKeys(this, event), onKeyDown: (event) => this.handleKeyDown(event), onBeforeInput: (event) => this.handleBeforeInput(event), onPaste: (event) => this.handlePaste(event), valueChange: this.handleInputChange, updateFormInternalValue: (value) => {
|
|
259
|
+
const isScientificNotation = this.isScientificNotation(value.trim());
|
|
260
|
+
if (!isScientificNotation) {
|
|
261
|
+
const parsedValue = this.convertNumberStringToFloat(value);
|
|
262
|
+
this.updateFormInternalValue(parsedValue);
|
|
263
|
+
}
|
|
264
|
+
}, onBlur: this.handleBlur, form: (_a = this.formInternals.form) !== null && _a !== void 0 ? _a : undefined, suppressSubmitOnEnter: this.suppressSubmitOnEnter, textAlignment: this.textAlignment }), h(SlotEnd, { key: '2d7e82c421d51985c9d24c69b6f641279e3e84aa', slotEndRef: this.slotEndRef, onSlotChange: () => this.updatePaddings() }, h("div", { key: '5b1e6f03bf456305386537428b23b3fc2706e411', class: {
|
|
124
265
|
'number-stepper-container': true,
|
|
125
266
|
'container-hidden': !showStepperButtons,
|
|
126
|
-
} }, h("ix-icon-button", { key: '
|
|
127
|
-
if (!this.inputRef.current) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
this.inputRef.current.stepDown();
|
|
131
|
-
checkInternalValidity(this, this.inputRef.current);
|
|
132
|
-
this.updateFormInternalValue(Number(this.inputRef.current.value));
|
|
133
|
-
this.valueChange.emit(this.value);
|
|
134
|
-
} }), h("ix-icon-button", { key: '34f4f8b3dc4e90ec9ada96f15280b39320ed5fb9', variant: "subtle-tertiary", icon: iconPlus, size: "16", class: "number-stepper-button step-plus", "aria-label": "increment number", onClick: () => {
|
|
135
|
-
if (!this.inputRef.current) {
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
this.inputRef.current.stepUp();
|
|
139
|
-
checkInternalValidity(this, this.inputRef.current);
|
|
140
|
-
this.updateFormInternalValue(Number(this.inputRef.current.value));
|
|
141
|
-
this.valueChange.emit(this.value);
|
|
142
|
-
} })))))));
|
|
267
|
+
} }, h("ix-icon-button", { key: '44a5f583fb174c556a063f384174883ec307f9f4', variant: "subtle-tertiary", icon: iconMinus, size: "16", class: "number-stepper-button step-minus", "aria-label": "decrement number", onClick: () => this.handleStepOperation('down') }), h("ix-icon-button", { key: 'c007fe5451c3f124e61214160c7ebc8cc1150b25', variant: "subtle-tertiary", icon: iconPlus, size: "16", class: "number-stepper-button step-plus", "aria-label": "increment number", onClick: () => this.handleStepOperation('up') })))))));
|
|
143
268
|
}
|
|
144
269
|
static get is() { return "ix-number-input"; }
|
|
145
270
|
static get encapsulation() { return "shadow"; }
|
|
@@ -200,14 +325,14 @@ export class NumberInput {
|
|
|
200
325
|
"mutable": true,
|
|
201
326
|
"complexType": {
|
|
202
327
|
"original": "number",
|
|
203
|
-
"resolved": "number",
|
|
328
|
+
"resolved": "number | undefined",
|
|
204
329
|
"references": {}
|
|
205
330
|
},
|
|
206
331
|
"required": false,
|
|
207
|
-
"optional":
|
|
332
|
+
"optional": true,
|
|
208
333
|
"docs": {
|
|
209
334
|
"tags": [],
|
|
210
|
-
"text": "The value of the input field"
|
|
335
|
+
"text": "The value of the input field. Supports numeric values, scientific notation (1E6, 1E-6), or undefined for empty."
|
|
211
336
|
},
|
|
212
337
|
"getter": false,
|
|
213
338
|
"setter": false,
|
|
@@ -227,7 +352,7 @@ export class NumberInput {
|
|
|
227
352
|
"optional": false,
|
|
228
353
|
"docs": {
|
|
229
354
|
"tags": [],
|
|
230
|
-
"text": "Indicates if the field is required"
|
|
355
|
+
"text": "Indicates if the field is required. When required, empty values (undefined) are not accepted."
|
|
231
356
|
},
|
|
232
357
|
"getter": false,
|
|
233
358
|
"setter": false,
|
|
@@ -513,16 +638,77 @@ export class NumberInput {
|
|
|
513
638
|
},
|
|
514
639
|
"required": false,
|
|
515
640
|
"optional": true,
|
|
641
|
+
"docs": {
|
|
642
|
+
"tags": [],
|
|
643
|
+
"text": "Step value to increment or decrement the input value. Default step value is 1."
|
|
644
|
+
},
|
|
645
|
+
"getter": false,
|
|
646
|
+
"setter": false,
|
|
647
|
+
"reflect": false,
|
|
648
|
+
"defaultValue": "1"
|
|
649
|
+
},
|
|
650
|
+
"suppressSubmitOnEnter": {
|
|
651
|
+
"type": "boolean",
|
|
652
|
+
"attribute": "suppress-submit-on-enter",
|
|
653
|
+
"mutable": false,
|
|
654
|
+
"complexType": {
|
|
655
|
+
"original": "boolean",
|
|
656
|
+
"resolved": "boolean",
|
|
657
|
+
"references": {}
|
|
658
|
+
},
|
|
659
|
+
"required": false,
|
|
660
|
+
"optional": false,
|
|
661
|
+
"docs": {
|
|
662
|
+
"tags": [],
|
|
663
|
+
"text": "If false, pressing Enter will submit the form (if inside a form).\nSet to true to suppress submit on Enter."
|
|
664
|
+
},
|
|
665
|
+
"getter": false,
|
|
666
|
+
"setter": false,
|
|
667
|
+
"reflect": true,
|
|
668
|
+
"defaultValue": "false"
|
|
669
|
+
},
|
|
670
|
+
"textAlignment": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"attribute": "text-alignment",
|
|
673
|
+
"mutable": false,
|
|
674
|
+
"complexType": {
|
|
675
|
+
"original": "'start' | 'end'",
|
|
676
|
+
"resolved": "\"end\" | \"start\"",
|
|
677
|
+
"references": {}
|
|
678
|
+
},
|
|
679
|
+
"required": false,
|
|
680
|
+
"optional": false,
|
|
681
|
+
"docs": {
|
|
682
|
+
"tags": [],
|
|
683
|
+
"text": "Text alignment within the number input. 'start' aligns the text to the start of the input, 'end' aligns the text to the end of the input."
|
|
684
|
+
},
|
|
685
|
+
"getter": false,
|
|
686
|
+
"setter": false,
|
|
687
|
+
"reflect": false,
|
|
688
|
+
"defaultValue": "'end'"
|
|
689
|
+
},
|
|
690
|
+
"allowEmptyValueChange": {
|
|
691
|
+
"type": "boolean",
|
|
692
|
+
"attribute": "allow-empty-value-change",
|
|
693
|
+
"mutable": false,
|
|
694
|
+
"complexType": {
|
|
695
|
+
"original": "boolean",
|
|
696
|
+
"resolved": "boolean",
|
|
697
|
+
"references": {}
|
|
698
|
+
},
|
|
699
|
+
"required": false,
|
|
700
|
+
"optional": false,
|
|
516
701
|
"docs": {
|
|
517
702
|
"tags": [{
|
|
518
703
|
"name": "since",
|
|
519
|
-
"text": "
|
|
704
|
+
"text": "4.1.0"
|
|
520
705
|
}],
|
|
521
|
-
"text": "
|
|
706
|
+
"text": "If true, the valueChange event will return null instead of 0 for an empty input state.\nThis property will be removed in 5.0.0 and this behaviour will be default."
|
|
522
707
|
},
|
|
523
708
|
"getter": false,
|
|
524
709
|
"setter": false,
|
|
525
|
-
"reflect":
|
|
710
|
+
"reflect": true,
|
|
711
|
+
"defaultValue": "false"
|
|
526
712
|
}
|
|
527
713
|
};
|
|
528
714
|
}
|
|
@@ -695,6 +881,12 @@ export class NumberInput {
|
|
|
695
881
|
};
|
|
696
882
|
}
|
|
697
883
|
static get elementRef() { return "hostElement"; }
|
|
884
|
+
static get watchers() {
|
|
885
|
+
return [{
|
|
886
|
+
"propName": "value",
|
|
887
|
+
"methodName": "onValueChange"
|
|
888
|
+
}];
|
|
889
|
+
}
|
|
698
890
|
static get attachInternalsMemberName() { return "formInternals"; }
|
|
699
891
|
}
|
|
700
892
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-input.js","sourceRoot":"","sources":["../../../src/components/input/number-input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,GAGxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAhMC;IADC,uBAAuB,EAAE;sDAGzB","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 { iconMinus, iconPlus } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/input';\nimport { makeRef } from '../utils/make-ref';\nimport { InputElement, SlotEnd, SlotStart } from './input.fc';\nimport {\n addDisposableChangesAndVisibilityObservers,\n adjustPaddingForStartAndEnd,\n checkAllowedKeys,\n checkInternalValidity,\n DisposableChangesAndVisibilityObservers,\n mapValidationResult,\n onInputBlur,\n} from './input.util';\n\nlet numberInputIds = 0;\n\n/**\n * @form-ready\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-number-input',\n styleUrl: 'number-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NumberInput implements IxInputFieldComponent<number> {\n @Element() hostElement!: HTMLIxNumberInputElement;\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 * The value of the input field\n */\n @Prop({ reflect: true, mutable: true }) value: number = 0;\n\n /**\n * Indicates if the field is required\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Disables the input field\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates if the field is read-only\n */\n @Prop() readonly: boolean = false;\n\n /**\n * The helper text for the input field\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the input field\n */\n @Prop() infoText?: string;\n\n /**\n * Indicates if the text should be shown as a tooltip\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the input field\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the input field\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the input field\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the input field\n */\n @Prop() invalidText?: string;\n\n /**\n * The pattern for the input field\n */\n @Prop() pattern?: string;\n\n /**\n * The minimum value for the input field\n */\n @Prop() min?: string | number;\n\n /**\n * The maximum value for the input field\n */\n @Prop() max?: string | number;\n\n /**\n * The allowed characters pattern for the input field\n */\n @Prop() allowedCharactersPattern?: string;\n\n /**\n * Indicates if the stepper buttons should be shown\n */\n @Prop() showStepperButtons?: boolean;\n\n /**\n * Step value to increment or decrement the input value\n *\n * @since 3.0.0\n */\n @Prop() step?: string | number;\n\n /**\n * Event emitted when the value of the input field changes\n */\n @Event() valueChange!: EventEmitter<number>;\n\n /**\n * Event emitted when the validity state of the input field changes\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the input field loses focus\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n private readonly inputRef = makeRef<HTMLInputElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n private readonly numberInputId = `number-input-${numberInputIds++}`;\n private touched = false;\n\n private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n }\n\n connectedCallback() {\n this.disposableChangesAndVisibilityObservers =\n addDisposableChangesAndVisibilityObservers(\n this.hostElement,\n this.updatePaddings.bind(this)\n );\n }\n\n disconnectedCallback() {\n this.disposableChangesAndVisibilityObservers?.();\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputRef.current\n );\n }\n\n updateFormInternalValue(value: number) {\n this.formInternals.setFormValue(value.toString());\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n async hasValidValue(): Promise<boolean> {\n const nativeInput = await this.getNativeInputElement();\n if (nativeInput.value === '') {\n return Promise.resolve(false);\n }\n\n return Promise.resolve(\n this.value !== null && this.value !== undefined && !isNaN(this.value)\n );\n }\n\n /**\n * Returns the native input element used under the hood\n */\n @Method()\n getNativeInputElement(): Promise<HTMLInputElement> {\n return this.inputRef.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 true if the input 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 showStepperButtons =\n this.showStepperButtons && (this.disabled || this.readonly) === false;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n id={this.numberInputId}\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.inputRef}\n >\n <div\n class={{\n 'input-wrapper': true,\n 'show-stepper-buttons': !!this.showStepperButtons,\n }}\n >\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n\n <InputElement\n id={this.numberInputId}\n readonly={this.readonly}\n disabled={this.disabled}\n step={this.step}\n min={this.min}\n max={this.max}\n pattern={this.pattern}\n type={'number'}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n inputRef={this.inputRef}\n onKeyPress={(event) => checkAllowedKeys(this, event)}\n valueChange={(value) => this.valueChange.emit(Number(value))}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(Number(value))\n }\n onBlur={() => {\n onInputBlur(this, this.inputRef.current);\n this.touched = true;\n }}\n ></InputElement>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <div\n class={{\n 'number-stepper-container': true,\n 'container-hidden': !showStepperButtons,\n }}\n >\n <ix-icon-button\n variant=\"subtle-tertiary\"\n icon={iconMinus}\n size=\"16\"\n class=\"number-stepper-button step-minus\"\n aria-label=\"decrement number\"\n onClick={() => {\n if (!this.inputRef.current) {\n return;\n }\n this.inputRef.current.stepDown();\n checkInternalValidity(this, this.inputRef.current);\n this.updateFormInternalValue(\n Number(this.inputRef.current.value)\n );\n this.valueChange.emit(this.value);\n }}\n ></ix-icon-button>\n <ix-icon-button\n variant=\"subtle-tertiary\"\n icon={iconPlus}\n size=\"16\"\n class=\"number-stepper-button step-plus\"\n aria-label=\"increment number\"\n onClick={() => {\n if (!this.inputRef.current) {\n return;\n }\n this.inputRef.current.stepUp();\n checkInternalValidity(this, this.inputRef.current);\n this.updateFormInternalValue(\n Number(this.inputRef.current.value)\n );\n this.valueChange.emit(this.value);\n }}\n ></ix-icon-button>\n </div>\n </SlotEnd>\n </div>\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file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AAC,mBAAmB,CAAC,IAAI,CAAC,GAC7B,CACd,CACE,CACN,CACW,CACd,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAhUC;IADC,uBAAuB,EAAE;sDAGzB","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2025 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 { iconMinus, iconPlus } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/input';\nimport { makeRef } from '../utils/make-ref';\nimport { InputElement, SlotEnd, SlotStart } from './input.fc';\nimport {\n addDisposableChangesAndVisibilityObservers,\n adjustPaddingForStartAndEnd,\n checkAllowedKeys,\n checkInternalValidity,\n DisposableChangesAndVisibilityObservers,\n mapValidationResult,\n onInputBlur,\n} from './input.util';\n\nlet numberInputIds = 0;\n\nconst INVALID_NUMBER_INPUT_REGEX = /[^\\dEe+\\-.,]/;\n\n/**\n * @form-ready\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-number-input',\n styleUrl: 'number-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NumberInput implements IxInputFieldComponent<number> {\n @Element() hostElement!: HTMLIxNumberInputElement;\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 * The value of the input field. Supports numeric values, scientific notation (1E6, 1E-6), or undefined for empty.\n */\n @Prop({ reflect: true, mutable: true }) value?: number = 0;\n\n /**\n * Indicates if the field is required. When required, empty values (undefined) are not accepted.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Disables the input field\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates if the field is read-only\n */\n @Prop() readonly: boolean = false;\n\n /**\n * The helper text for the input field\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the input field\n */\n @Prop() infoText?: string;\n\n /**\n * Indicates if the text should be shown as a tooltip\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the input field\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the input field\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the input field\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the input field\n */\n @Prop() invalidText?: string;\n\n /**\n * The pattern for the input field\n */\n @Prop() pattern?: string;\n\n /**\n * The minimum value for the input field\n */\n @Prop() min?: string | number;\n\n /**\n * The maximum value for the input field\n */\n @Prop() max?: string | number;\n\n /**\n * The allowed characters pattern for the input field\n */\n @Prop() allowedCharactersPattern?: string;\n\n /**\n * Indicates if the stepper buttons should be shown\n */\n @Prop() showStepperButtons?: boolean;\n\n /**\n * Step value to increment or decrement the input value. Default step value is 1.\n *\n */\n @Prop() step?: string | number = 1;\n\n /**\n * If false, pressing Enter will submit the form (if inside a form).\n * Set to true to suppress submit on Enter.\n */\n @Prop({ reflect: true }) suppressSubmitOnEnter: boolean = false;\n\n /**\n * Text alignment within the number input. 'start' aligns the text to the start of the input, 'end' aligns the text to the end of the input.\n */\n @Prop() textAlignment: 'start' | 'end' = 'end';\n\n /**\n * If true, the valueChange event will return null instead of 0 for an empty input state.\n * This property will be removed in 5.0.0 and this behaviour will be default.\n *\n * @since 4.1.0\n */\n @Prop({ reflect: true }) allowEmptyValueChange: boolean = false;\n\n /**\n * Event emitted when the value of the input field changes\n */\n @Event() valueChange!: EventEmitter<number>;\n\n /**\n * Event emitted when the validity state of the input field changes\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the input field loses focus\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n private readonly inputRef = makeRef<HTMLInputElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n private readonly numberInputId = `number-input-${numberInputIds++}`;\n private touched = false;\n\n private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;\n\n @Watch('value')\n onValueChange(newValue: number | undefined) {\n this.updateFormInternalValue(newValue!);\n }\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value!);\n }\n\n connectedCallback() {\n this.disposableChangesAndVisibilityObservers =\n addDisposableChangesAndVisibilityObservers(\n this.hostElement,\n this.updatePaddings.bind(this)\n );\n }\n\n disconnectedCallback() {\n this.disposableChangesAndVisibilityObservers?.();\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputRef.current\n );\n }\n\n private convertNumberStringToFloat(input: string): number | undefined {\n if (!input || input.trim() === '') {\n return undefined;\n }\n\n const parsed = Number.parseFloat(input);\n return Number.isNaN(parsed) ? undefined : parsed;\n }\n\n private isScientificNotation(input: string): boolean {\n const parsed = Number.parseFloat(input);\n return (\n !Number.isNaN(parsed) && Number.isFinite(parsed) && /[eE]/.test(input)\n );\n }\n\n private formatValue(value: number | undefined): string {\n if (value === undefined || value === null) {\n return '';\n }\n return value.toString();\n }\n\n private handleValueChangeEvent(value: number | undefined) {\n this.valueChange.emit(this.allowEmptyValueChange ? value : (value ?? 0));\n }\n\n updateFormInternalValue(value: number) {\n const formValue =\n value !== undefined && value !== null ? value.toString() : '';\n this.formInternals.setFormValue(formValue);\n this.value = value;\n }\n\n private readonly handleInputChange = (inputValue: string) => {\n const parsedValue = this.convertNumberStringToFloat(inputValue);\n const isScientificNotation = this.isScientificNotation(inputValue.trim());\n\n if (isScientificNotation) {\n this.formInternals.setFormValue(inputValue);\n }\n\n this.handleValueChangeEvent(parsedValue);\n };\n\n private readonly handleBlur = () => {\n if (!this.inputRef.current) return;\n\n const inputValue = this.inputRef.current.value;\n\n const parsedValue = this.convertNumberStringToFloat(inputValue);\n\n if (parsedValue !== undefined) {\n this.inputRef.current.value = this.formatValue(parsedValue);\n }\n\n this.updateFormInternalValue(parsedValue!);\n\n onInputBlur(this, this.inputRef.current);\n this.touched = true;\n };\n\n private readonly handleKeyDown = (event: KeyboardEvent) => {\n if (this.disabled || this.readonly) {\n return;\n }\n\n switch (event.key) {\n case 'ArrowUp':\n event.preventDefault();\n this.handleStepOperation('up');\n break;\n case 'ArrowDown':\n event.preventDefault();\n this.handleStepOperation('down');\n break;\n }\n };\n\n private readonly handleBeforeInput = (e: InputEvent) => {\n if (this.disabled || this.readonly) return;\n\n if (e.inputType === 'insertText') {\n const character = e.data;\n\n if (character && INVALID_NUMBER_INPUT_REGEX.test(character)) {\n e.preventDefault();\n }\n }\n\n if (e.inputType === 'insertFromPaste') {\n const dt = e.dataTransfer || (e as any).clipboardData;\n const text = dt?.getData?.('text') ?? '';\n if (INVALID_NUMBER_INPUT_REGEX.test(text)) {\n e.preventDefault();\n }\n }\n };\n\n private readonly handlePaste = (e: ClipboardEvent) => {\n // Fallback for browsers that don’t fire beforeinput for paste\n const text = e.clipboardData?.getData('text') ?? '';\n if (INVALID_NUMBER_INPUT_REGEX.test(text)) {\n e.preventDefault();\n }\n };\n\n private handleStepOperation(operation: 'up' | 'down') {\n if (!this.inputRef.current) {\n return;\n }\n\n const currentValue = this.value ?? 0;\n const stepValue =\n typeof this.step === 'string'\n ? Number.parseFloat(this.step)\n : (this.step ?? 1);\n\n let newValue: number;\n\n if (operation === 'up') {\n newValue = currentValue + stepValue;\n } else {\n newValue = currentValue - stepValue;\n }\n\n if (this.min !== undefined) {\n const minValue =\n typeof this.min === 'string' ? Number.parseFloat(this.min) : this.min;\n newValue = Math.max(newValue, minValue);\n }\n\n if (this.max !== undefined) {\n const maxValue =\n typeof this.max === 'string' ? Number.parseFloat(this.max) : this.max;\n newValue = Math.min(newValue, maxValue);\n }\n\n this.inputRef.current.value = newValue.toString();\n this.updateFormInternalValue(newValue);\n checkInternalValidity(this, this.inputRef.current);\n this.handleValueChangeEvent(newValue);\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n async hasValidValue(): Promise<boolean> {\n const nativeInput = await this.getNativeInputElement();\n if (nativeInput.value === '') {\n return !this.required;\n }\n\n const parsedValue = this.convertNumberStringToFloat(nativeInput.value);\n return parsedValue !== undefined;\n }\n\n /**\n * Returns the native input element used under the hood\n */\n @Method()\n getNativeInputElement(): Promise<HTMLInputElement> {\n return this.inputRef.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 true if the input 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 showStepperButtons =\n this.showStepperButtons && (this.disabled || this.readonly) === false;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n id={this.numberInputId}\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.inputRef}\n >\n <div\n class={{\n 'input-wrapper': true,\n 'show-stepper-buttons': !!this.showStepperButtons,\n }}\n >\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n\n <InputElement\n id={this.numberInputId}\n readonly={this.readonly}\n disabled={this.disabled}\n step={this.step}\n min={this.min}\n max={this.max}\n pattern={this.pattern}\n type={'number'}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.formatValue(this.value)}\n placeholder={this.placeholder}\n inputRef={this.inputRef}\n onKeyPress={(event) => checkAllowedKeys(this, event)}\n onKeyDown={(event) => this.handleKeyDown(event)}\n onBeforeInput={(event) => this.handleBeforeInput(event)}\n onPaste={(event) => this.handlePaste(event)}\n valueChange={this.handleInputChange}\n updateFormInternalValue={(value) => {\n const isScientificNotation = this.isScientificNotation(\n value.trim()\n );\n\n if (!isScientificNotation) {\n const parsedValue = this.convertNumberStringToFloat(value);\n this.updateFormInternalValue(parsedValue!);\n }\n }}\n onBlur={this.handleBlur}\n form={this.formInternals.form ?? undefined}\n suppressSubmitOnEnter={this.suppressSubmitOnEnter}\n textAlignment={this.textAlignment}\n ></InputElement>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <div\n class={{\n 'number-stepper-container': true,\n 'container-hidden': !showStepperButtons,\n }}\n >\n <ix-icon-button\n variant=\"subtle-tertiary\"\n icon={iconMinus}\n size=\"16\"\n class=\"number-stepper-button step-minus\"\n aria-label=\"decrement number\"\n onClick={() => this.handleStepOperation('down')}\n ></ix-icon-button>\n <ix-icon-button\n variant=\"subtle-tertiary\"\n icon={iconPlus}\n size=\"16\"\n class=\"number-stepper-button step-plus\"\n aria-label=\"increment number\"\n onClick={() => this.handleStepOperation('up')}\n ></ix-icon-button>\n </div>\n </SlotEnd>\n </div>\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -138,10 +138,10 @@ export class Textarea {
|
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
140
|
var _a;
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '50700f0fe24415eff151875bc3dc2a5d53a8f879', class: {
|
|
142
142
|
disabled: this.disabled,
|
|
143
143
|
readonly: this.readonly,
|
|
144
|
-
} }, h("ix-field-wrapper", { key: '
|
|
144
|
+
} }, h("ix-field-wrapper", { key: '9a59b1c2632f975c3a754978c616bb80fc419fc3', required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.textAreaRef }, !!this.maxLength && this.maxLength > 0 && (h("ix-typography", { key: '931e49d6a0fd853745f3f46b88f25b087b2038af', class: "bottom-text", slot: "bottom-right", textColor: "soft" }, ((_a = this.value) !== null && _a !== void 0 ? _a : '').length, "/", this.maxLength)), h("div", { key: 'ef476a8a1bb52f9b21d93bd1b4d46b6b91a40872', class: "input-wrapper" }, h(TextareaElement, { key: 'b2b7006983d16c7c99f2229097aa3e45ecee5c15', minLength: this.minLength, maxLength: this.maxLength, textareaCols: this.textareaCols, textareaRows: this.textareaRows, textareaHeight: this.isManuallyResized ? this.manualHeight : this.textareaHeight, textareaWidth: this.isManuallyResized ? this.manualWidth : this.textareaWidth, resizeBehavior: this.resizeBehavior, readonly: this.readonly, disabled: this.disabled, isInvalid: this.isInvalid, required: this.required, value: this.value, placeholder: this.placeholder, textAreaRef: this.textAreaRef, valueChange: (value) => this.valueChange.emit(value), updateFormInternalValue: (value) => this.updateFormInternalValue(value), onBlur: () => {
|
|
145
145
|
onInputBlur(this, this.textAreaRef.current);
|
|
146
146
|
this.touched = true;
|
|
147
147
|
} })))));
|
|
@@ -127,7 +127,7 @@ export class InputGroup {
|
|
|
127
127
|
return width;
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
return (h(Host, { key: '
|
|
130
|
+
return (h(Host, { key: 'c47a7aab493e832b0d2c14d81bbf10b666f23f6c', class: { disabled: this.disabled } }, h("div", { key: '44cac00e7f527e3a8f12fbb6a0698cbc4e81feeb', class: "group group-start" }, h("slot", { key: '030a2cc484426f92ac56570567d3b6dbec70c615', ref: (el) => (this.startSlotRef = el), name: "input-start" })), h("slot", { key: '36a4cd0a41f2dc250cc24024b2f6470d29948e9b' }), h("div", { key: 'b6f0a7c2651d27bfd8392176c239190d4fe26d9c', class: "group group-end" }, h("slot", { key: '9d9dbff6897c41627ca0d7e133bdecbd68a373b8', ref: (el) => (this.endSlotRef = el), name: "input-end" }))));
|
|
131
131
|
}
|
|
132
132
|
static get is() { return "ix-input-group"; }
|
|
133
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class KeyValue {
|
|
|
18
18
|
this.labelPosition = 'top';
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '7fb93d7b2fbcf2ce8aac64eda186d82a5a45cbe7', class: `keyValue keyValue--${this.labelPosition === 'top' ? 'column' : 'row'}` }, this.icon && (h("ix-icon", { key: '4ec1a309785fba489f0c8d9dfb2c024268c92193', name: this.icon, size: "24", class: "keyValue__icon", "aria-label": this.ariaLabelIcon })), h("div", { key: '95fb53fe545cd00bc84b6eeeba6c910eff2143cc', class: "keyValue__content" }, h("div", { key: '631b09a0969534b81538968c50c886b5337a0765', class: "content__label" }, this.label), h("div", { key: 'd45d5050124bf055a05cd71305b2b4e9d30a572d', class: {
|
|
22
22
|
content__value: true,
|
|
23
23
|
'has-customValue': this.value === undefined,
|
|
24
24
|
} }, this.value !== undefined ? (this.value) : (h("slot", { name: "custom-value" }))))));
|
|
@@ -15,7 +15,7 @@ export class KeyValueList {
|
|
|
15
15
|
this.striped = false;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'fcc3ec3470c25cac50b88a1006b30be059f778f8', class: { keyValueList: true, 'keyValueList--striped': this.striped } }, h("slot", { key: '05645a91f92d7db584bd8235f73979249870e734' })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "ix-key-value-list"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,13 +37,13 @@ export class Kpi {
|
|
|
37
37
|
return tooltip;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '34fcbb68ba73d08619ef12fd9595c9c684aa3d10', title: this.getTooltipText(), tabindex: "1", class: {
|
|
41
41
|
stacked: this.orientation === 'vertical',
|
|
42
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: 'cd4910a41ee179ea21166c80322e5361dd132850', class: {
|
|
43
43
|
'kpi-container': true,
|
|
44
44
|
alarm: this.state === 'alarm',
|
|
45
45
|
warning: this.state === 'warning',
|
|
46
|
-
} }, h("span", { key: '
|
|
46
|
+
} }, h("span", { key: '33226fc8e0561e4db98181be1b6595534561bab7', class: "kpi-label" }, this.getStateIcon(), h("span", { key: '06cb693420e43f2475cfae0d8f2217a2770ac5cc', class: "kpi-label-text" }, this.label)), h("span", { key: '8a837f1466b2670d473983aaffc2742737fb8a9a', class: "kpi-value-container" }, h("span", { key: '5e66113f88a3637aaf83c3482a5625b290e25763', class: "kpi-value" }, this.value), this.unit ? h("span", { class: "kpi-unit" }, this.unit) : ''))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "ix-kpi"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,7 +77,7 @@ export class LayoutForm {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '48511195af19191b832713a828ac0945b06a4898' }, h("div", { key: '4a51469ffe227db5c361734fc3122a98f7e0fbcc', class: "container" }, h("slot", { key: '6ab367e83612df056e40392bced22c5f80457486' }))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "ix-layout-auto"; }
|
|
83
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,12 +23,12 @@ export class LayoutGrid {
|
|
|
23
23
|
this.columns = 12;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '040fa69fa09d20fdbfc6ae40f85cdf70f74b3eee', class: {
|
|
27
27
|
'no-margin': this.noMargin,
|
|
28
28
|
}, style: {
|
|
29
29
|
'--ix-layout-grid-columns': `${this.columns}`,
|
|
30
30
|
'--ix-layout-grid-gutter': `${this.gap}px`,
|
|
31
|
-
} }, h("slot", { key: '
|
|
31
|
+
} }, h("slot", { key: '50cae64ab0cc69aa2ffe55bfce8f069ea22b240b' })));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "ix-layout-grid"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
text-overflow: ellipsis;
|
|
53
53
|
overflow: hidden;
|
|
54
|
+
text-decoration: underline;
|
|
55
|
+
text-underline-offset: 0.2rem;
|
|
54
56
|
}
|
|
55
57
|
:host .link-button:not(.disabled):not(:disabled) {
|
|
56
58
|
cursor: pointer;
|
|
@@ -58,20 +60,12 @@
|
|
|
58
60
|
:host .link-button:not(.disabled):not(:disabled):hover, :host .link-button:not(.disabled):not(:disabled).hover {
|
|
59
61
|
color: var(--theme-color-dynamic--hover);
|
|
60
62
|
}
|
|
61
|
-
:host .link-button:not(.disabled):not(:disabled):hover .link, :host .link-button:not(.disabled):not(:disabled).hover .link {
|
|
62
|
-
text-decoration: underline;
|
|
63
|
-
text-underline-offset: 0.2rem;
|
|
64
|
-
}
|
|
65
63
|
:host .link-button:not(.disabled):not(:disabled) {
|
|
66
64
|
cursor: pointer;
|
|
67
65
|
}
|
|
68
66
|
:host .link-button:not(.disabled):not(:disabled):active, :host .link-button:not(.disabled):not(:disabled).active {
|
|
69
67
|
color: var(--theme-color-dynamic--active);
|
|
70
68
|
}
|
|
71
|
-
:host .link-button:not(.disabled):not(:disabled):active .link, :host .link-button:not(.disabled):not(:disabled).active .link {
|
|
72
|
-
text-decoration: underline;
|
|
73
|
-
text-underline-offset: 0.2rem;
|
|
74
|
-
}
|
|
75
69
|
:host .link-button.disabled {
|
|
76
70
|
cursor: default;
|
|
77
71
|
color: var(--theme-color-weak-text);
|
|
@@ -22,13 +22,13 @@ export class LinkButton {
|
|
|
22
22
|
this.target = '_self';
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '83b41ef8a3bef06a033a9a20c30a4ae1e83066e8' }, h("a", { key: '955dc6e492eec929e592947ec18009d744d1f973', title: this.url, tabindex: "0", class: {
|
|
26
26
|
'link-button': true,
|
|
27
27
|
disabled: this.disabled,
|
|
28
|
-
}, href: this.disabled ? undefined : this.url, target: this.target }, h("ix-icon", { key: '
|
|
28
|
+
}, href: this.disabled ? undefined : this.url, target: this.target }, h("ix-icon", { key: 'b0589b7cedf757244950b1595916f8c838ae603d', class: "icon", name: iconChevronRightSmall, size: "16", "aria-hidden": "true" }), h("div", { key: 'c3ceb43628b0a48d60bbcd6bb54a4ad493ae3de8', class: {
|
|
29
29
|
link: true,
|
|
30
30
|
disabled: this.disabled,
|
|
31
|
-
} }, h("slot", { key: '
|
|
31
|
+
} }, h("slot", { key: '2bd6071e8aad57fb13226d8452b0649367c6b750' })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "ix-link-button"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class MenuExpandIcon {
|
|
|
49
49
|
return this.getSmallScreenIcon();
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '702baa75b182df885e9488301b2747fb37f96c52', class: {
|
|
53
53
|
expanded: this.expanded,
|
|
54
54
|
}, type: "button", "aria-label": this.ixAriaLabel, "aria-pressed": a11yBoolean(this.expanded) }, this.getMenuIcon()));
|
|
55
55
|
}
|