@siemens/ix 0.0.0-pr-1974-20250624072317 → 0.0.0-pr-1974-20250627115746
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/custom-elements.d.ts +2 -1
- package/components/index.js +7 -22
- package/components/index.js.map +1 -1
- package/components/ix-action-card.js +5 -5
- package/components/ix-action-card.js.map +1 -1
- package/components/ix-application-header.js +1 -1
- package/components/ix-application-sidebar.js +2 -2
- package/components/ix-application-switch-modal.js +7 -7
- package/components/ix-application.js +4 -4
- package/components/ix-avatar.js +1 -1
- package/components/ix-basic-navigation.js +9 -9
- package/components/ix-blind.js +7 -7
- package/components/ix-blind.js.map +1 -1
- package/components/ix-breadcrumb-item.js +1 -1
- package/components/ix-breadcrumb.js +7 -7
- package/components/ix-button.js +1 -1
- package/components/ix-card-accordion.js +1 -1
- package/components/ix-card-content.js +1 -1
- package/components/ix-card-list.js +11 -11
- package/components/ix-card-title.js +1 -1
- package/components/ix-card.js +1 -1
- package/components/ix-category-filter.js +9 -9
- package/components/ix-checkbox-group.js +8 -8
- package/components/ix-checkbox.js +6 -6
- package/components/ix-chip.js +9 -9
- package/components/ix-col.js +1 -1
- package/components/ix-content-header.js +5 -5
- package/components/ix-content-header.js.map +1 -1
- package/components/ix-content.js +4 -4
- package/components/ix-css-grid-item.js +2 -2
- package/components/ix-css-grid.js +2 -2
- package/components/ix-css-grid.js.map +1 -1
- package/components/ix-custom-field.js +7 -7
- package/components/ix-date-dropdown.js +15 -15
- package/components/ix-date-dropdown.js.map +1 -1
- package/components/ix-date-input.js +16 -16
- 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 +13 -13
- package/components/ix-datetime-picker.js.map +1 -1
- package/components/ix-divider.js +1 -1
- package/components/ix-drawer.js +8 -8
- package/components/ix-dropdown-button.js +7 -7
- package/components/ix-dropdown-button.js.map +1 -1
- package/components/ix-dropdown-header.js +3 -3
- package/components/ix-dropdown-item.js +1 -1
- package/components/ix-dropdown-quick-actions.js +2 -2
- package/components/ix-dropdown.js +1 -1
- package/components/ix-empty-state.js +5 -5
- package/components/ix-empty-state.js.map +1 -1
- package/components/ix-event-list-item.js +5 -5
- package/components/ix-event-list.js +3 -3
- package/components/ix-expanding-search.js +7 -7
- 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 +2 -2
- package/components/ix-flip-tile.js +7 -7
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group-item.js +1 -1
- package/components/ix-group.js +13 -13
- package/components/ix-helper-text.js +5 -5
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +4 -4
- package/components/ix-input-group.js +2 -2
- package/components/ix-input.js +13 -13
- package/components/ix-key-value-list.js +2 -2
- package/components/ix-key-value.js +2 -2
- package/components/ix-key-value.js.map +1 -1
- package/components/ix-kpi.js +4 -4
- package/components/ix-layout-auto.js +2 -2
- package/components/ix-layout-grid.js +1 -1
- package/components/ix-link-button.js +4 -4
- package/components/ix-map-navigation-overlay.js +1 -1
- package/components/ix-map-navigation.js +10 -10
- package/components/ix-menu-about-item.js +2 -2
- package/components/ix-menu-about-news.js +9 -9
- package/components/ix-menu-about.js +7 -7
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +10 -10
- package/components/ix-menu-category.js +12 -12
- package/components/ix-menu-expand-icon.js +1 -1
- package/components/ix-menu-item.js +1 -1
- package/components/ix-menu-settings-item.js +2 -2
- package/components/ix-menu-settings.js +1 -1
- package/components/ix-menu.js +19 -19
- package/components/ix-message-bar.js +4 -4
- package/components/ix-modal-content.js +1 -1
- package/components/ix-modal-footer.js +2 -2
- package/components/ix-modal-header.js +1 -1
- package/components/ix-modal-loading.js +3 -3
- package/components/ix-modal.js +5 -5
- package/components/ix-modal.js.map +1 -1
- package/components/ix-number-input.js +15 -15
- package/components/ix-pagination.js +15 -15
- package/components/ix-pane-layout.js +2 -2
- package/components/ix-pane-layout.js.map +1 -1
- package/components/ix-pane.js +10 -10
- package/components/ix-pane.js.map +1 -1
- package/components/ix-pill.js +7 -7
- package/components/ix-progress-indicator.js +6 -6
- package/components/ix-progress-indicator.js.map +1 -1
- package/components/ix-push-card.js +7 -7
- package/components/ix-push-card.js.map +1 -1
- package/components/ix-radio-group.js +8 -8
- package/components/ix-radio.js +7 -7
- 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 +10 -10
- package/components/ix-slider.js.map +1 -1
- package/components/ix-spinner.js +1 -1
- package/components/ix-split-button.js +6 -6
- 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 +9 -9
- package/components/ix-textarea.js.map +1 -1
- package/components/ix-tile.js +5 -5
- package/components/ix-time-input.js +16 -16
- 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-container.js.map +1 -1
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle-button.js +5 -5
- package/components/ix-toggle.js +6 -6
- package/components/ix-tooltip.js +1 -1
- package/components/ix-tree-item.js +1 -1
- package/components/ix-tree.js +3 -3
- package/components/ix-typography.js +1 -1
- package/components/ix-upload.js +3 -3
- package/components/ix-validation-tooltip.js +1 -1
- package/components/ix-workflow-step.js +1 -1
- package/components/ix-workflow-steps.js +1 -1
- package/components/{p-C99qjEPE.js → p-5uA5ifmT.js} +5 -5
- package/components/{p-C99qjEPE.js.map → p-5uA5ifmT.js.map} +1 -1
- package/components/{p-D2Fm_05X.js → p-9dLpp1OQ.js} +3 -3
- package/components/{p-D2Fm_05X.js.map → p-9dLpp1OQ.js.map} +1 -1
- package/components/{p-DEmiWcQ0.js → p-B1Gzt08S.js} +5 -5
- package/components/{p-DEmiWcQ0.js.map → p-B1Gzt08S.js.map} +1 -1
- package/components/{p-CYjLayhK.js → p-B3duqvjW.js} +4 -4
- package/components/{p-CYjLayhK.js.map → p-B3duqvjW.js.map} +1 -1
- package/components/{p-BpwZ_OiO.js → p-B6e7P4xT.js} +3 -3
- package/components/{p-BpwZ_OiO.js.map → p-B6e7P4xT.js.map} +1 -1
- package/components/{p-Ca62xqUI.js → p-BJcX2_-N.js} +6 -6
- package/components/{p-Ca62xqUI.js.map → p-BJcX2_-N.js.map} +1 -1
- package/components/{p-CdH-wF59.js → p-BMU8AlMD.js} +9 -9
- package/components/{p-CdH-wF59.js.map → p-BMU8AlMD.js.map} +1 -1
- package/components/{p-CvYq7fCI.js → p-BNu7ac9R.js} +7 -7
- package/components/{p-CvYq7fCI.js.map → p-BNu7ac9R.js.map} +1 -1
- package/components/{p-D0hxqaGs.js → p-BP-8cvOJ.js} +6 -6
- package/components/{p-D0hxqaGs.js.map → p-BP-8cvOJ.js.map} +1 -1
- package/components/{p-BXGAr1UD.js → p-BXjBChze.js} +6 -6
- package/components/p-BXjBChze.js.map +1 -0
- package/components/{p-DBZZBDKR.js → p-BcGAKMQ_.js} +3 -3
- package/components/{p-DBZZBDKR.js.map → p-BcGAKMQ_.js.map} +1 -1
- package/components/{p-18F-YfbC.js → p-BedSAVZh.js} +4 -4
- package/components/p-BedSAVZh.js.map +1 -0
- package/components/{p-CdhP3eo7.js → p-BhLbU_vK.js} +5 -5
- package/components/{p-CdhP3eo7.js.map → p-BhLbU_vK.js.map} +1 -1
- package/components/{p-Da_mIDFR.js → p-BkWbk29R.js} +6 -6
- package/components/{p-Da_mIDFR.js.map → p-BkWbk29R.js.map} +1 -1
- package/components/{p-BW7O4gSR.js → p-BmmgJGNd.js} +6 -6
- package/components/{p-BW7O4gSR.js.map → p-BmmgJGNd.js.map} +1 -1
- package/components/{p-COgaNG0r.js → p-Bu-j8wxy.js} +6 -6
- package/components/{p-COgaNG0r.js.map → p-Bu-j8wxy.js.map} +1 -1
- package/components/p-BuJ6BWIi.js +2042 -0
- package/components/p-BuJ6BWIi.js.map +1 -0
- package/components/{p-cugF_dsq.js → p-Bvsx56zn.js} +4 -4
- package/components/{p-cugF_dsq.js.map → p-Bvsx56zn.js.map} +1 -1
- package/components/{p-BOARJXlu.js → p-BygLxZIM.js} +4 -4
- package/components/{p-BOARJXlu.js.map → p-BygLxZIM.js.map} +1 -1
- package/components/{p-IMKnzlUb.js → p-Bzyt4nTL.js} +8 -8
- package/components/{p-IMKnzlUb.js.map → p-Bzyt4nTL.js.map} +1 -1
- package/components/{p-Dih6bry9.js → p-C6o-AByw.js} +4 -4
- package/components/{p-Dih6bry9.js.map → p-C6o-AByw.js.map} +1 -1
- package/components/{p-BSRi3yyl.js → p-CKkTXQiw.js} +8 -8
- package/components/{p-BSRi3yyl.js.map → p-CKkTXQiw.js.map} +1 -1
- package/components/{p-CmNagK_M.js → p-Cb-eBcUF.js} +5 -5
- package/components/{p-CmNagK_M.js.map → p-Cb-eBcUF.js.map} +1 -1
- package/components/{p-B3NgetSU.js → p-Cp5J1RZq.js} +23 -23
- package/components/{p-B3NgetSU.js.map → p-Cp5J1RZq.js.map} +1 -1
- package/components/{p-DUctjh_Y.js → p-Cpxz1Kcs.js} +4 -4
- package/components/{p-DUctjh_Y.js.map → p-Cpxz1Kcs.js.map} +1 -1
- package/components/{p-2HalBYF6.js → p-Cs8DEpjh.js} +15 -15
- package/components/{p-2HalBYF6.js.map → p-Cs8DEpjh.js.map} +1 -1
- package/components/{p-CLe5n0eR.js → p-Cut5OrRw.js} +5 -5
- package/components/{p-CLe5n0eR.js.map → p-Cut5OrRw.js.map} +1 -1
- package/components/{p-DqBfPYF2.js → p-CvvOe8xV.js} +7 -7
- package/components/{p-DqBfPYF2.js.map → p-CvvOe8xV.js.map} +1 -1
- package/components/{p-C7qPn3fZ.js → p-D3Aowo70.js} +7 -7
- package/components/{p-C7qPn3fZ.js.map → p-D3Aowo70.js.map} +1 -1
- package/components/{p-t-aQDKhy.js → p-D9LaIICQ.js} +3 -3
- package/components/{p-t-aQDKhy.js.map → p-D9LaIICQ.js.map} +1 -1
- package/components/{p-m_8Hy4_G.js → p-DCx3-1oU.js} +5 -5
- package/components/{p-m_8Hy4_G.js.map → p-DCx3-1oU.js.map} +1 -1
- package/components/{p-6UCgBriG.js → p-DJ7U7oUq.js} +7 -7
- package/components/{p-6UCgBriG.js.map → p-DJ7U7oUq.js.map} +1 -1
- package/components/{p-D-uSMBXb.js → p-DMlmNp-B.js} +4 -4
- package/components/{p-D-uSMBXb.js.map → p-DMlmNp-B.js.map} +1 -1
- package/components/{p-D54oqcBC.js → p-DWO4uklL.js} +8 -8
- package/components/{p-D54oqcBC.js.map → p-DWO4uklL.js.map} +1 -1
- package/components/{p-pMSLP3h4.js → p-DaztMgDr.js} +12 -12
- package/components/p-DaztMgDr.js.map +1 -0
- package/components/{p-CJ9lFwzL.js → p-DbR-LZrk.js} +4 -4
- package/components/{p-CJ9lFwzL.js.map → p-DbR-LZrk.js.map} +1 -1
- package/components/{p-BUVYgPbq.js → p-DfbCO042.js} +11 -11
- package/components/{p-BUVYgPbq.js.map → p-DfbCO042.js.map} +1 -1
- package/components/{p-BI91ISYc.js → p-DkGdSI6e.js} +5 -5
- package/components/{p-BI91ISYc.js.map → p-DkGdSI6e.js.map} +1 -1
- package/components/{p-DQEpAmYe.js → p-DojBQCbP.js} +7 -7
- package/components/{p-DQEpAmYe.js.map → p-DojBQCbP.js.map} +1 -1
- package/components/{p-mLgD4b4D.js → p-DyHdZRT0.js} +5 -5
- package/components/{p-mLgD4b4D.js.map → p-DyHdZRT0.js.map} +1 -1
- package/components/{p-C9zujPO0.js → p-DyMgW0fR.js} +4 -4
- package/components/{p-C9zujPO0.js.map → p-DyMgW0fR.js.map} +1 -1
- package/components/{p-DpilwXvD.js → p-G0biE2Kx.js} +4 -4
- package/components/{p-DpilwXvD.js.map → p-G0biE2Kx.js.map} +1 -1
- package/components/p-PxA_udyJ.js.map +1 -1
- package/components/{p-CI771zjd.js → p-TNoCM8Wi.js} +6 -6
- package/components/{p-CI771zjd.js.map → p-TNoCM8Wi.js.map} +1 -1
- package/components/{p-D-lOakIP.js → p-qauH9Ci4.js} +5 -5
- package/components/{p-D-lOakIP.js.map → p-qauH9Ci4.js.map} +1 -1
- package/components/{p-DeAFXXM2.js → p-r63hglsv.js} +7 -7
- package/components/{p-DeAFXXM2.js.map → p-r63hglsv.js.map} +1 -1
- package/components/{p-Cuf7Gv_k.js → p-tH4n038Z.js} +5 -5
- package/components/p-tH4n038Z.js.map +1 -0
- package/dist/cjs/{base-button-CaQoQTFI.js → base-button-B-wht3TB.js} +3 -3
- package/dist/cjs/{base-button-CaQoQTFI.js.map → base-button-B-wht3TB.js.map} +1 -1
- package/dist/cjs/{base-icon-button-C9L5Gii-.js → base-icon-button-DNisNrCZ.js} +4 -4
- package/dist/cjs/{base-icon-button-C9L5Gii-.js.map → base-icon-button-DNisNrCZ.js.map} +1 -1
- package/dist/cjs/{helper-text-util-BctMjApu.js → helper-text-util-B_J9aPv0.js} +3 -3
- package/dist/cjs/{helper-text-util-BctMjApu.js.map → helper-text-util-B_J9aPv0.js.map} +1 -1
- package/dist/cjs/index-CbtIH46j.js +2734 -0
- package/dist/cjs/index-CbtIH46j.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -17
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{input.util-Ch0ETA-v.js → input.util-BDrqIfiB.js} +4 -4
- package/dist/cjs/{input.util-Ch0ETA-v.js.map → input.util-BDrqIfiB.js.map} +1 -1
- package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-action-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +4 -4
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ix-application.cjs.entry.js +4 -4
- package/dist/cjs/ix-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ix-blind.cjs.entry.js +6 -6
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ix-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-card-accordion.ix-card-title.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +5 -5
- package/dist/cjs/ix-card.ix-card-content.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +5 -5
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ix-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/ix-chip.cjs.entry.js +5 -5
- 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 +12 -12
- package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content-header.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-content.cjs.entry.js +4 -4
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-css-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-custom-field.cjs.entry.js +3 -3
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-input.cjs.entry.js +6 -6
- package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
- package/dist/cjs/ix-date-time-card.cjs.entry.js.map +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.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +2 -2
- package/dist/cjs/ix-drawer.cjs.entry.js +6 -6
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-empty-state.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
- package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
- package/dist/cjs/ix-field-label_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-group.cjs.entry.js +9 -9
- package/dist/cjs/ix-helper-text.cjs.entry.js +4 -4
- package/dist/cjs/ix-icon-button.ix-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-input.cjs.entry.js +7 -7
- package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-key-value.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
- package/dist/cjs/ix-layout-auto.cjs.entry.js +2 -2
- package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
- package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/{ix-menu-settings-BkPNtMal.js → ix-menu-settings-Dbt7Q2tj.js} +4 -4
- package/dist/cjs/{ix-menu-settings-BkPNtMal.js.map → ix-menu-settings-Dbt7Q2tj.js.map} +1 -1
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu.cjs.entry.js +13 -13
- package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +5 -5
- package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-number-input.cjs.entry.js +9 -9
- package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ix-pane-layout.cjs.entry.js +2 -2
- package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane-layout.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +7 -7
- package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +5 -5
- package/dist/cjs/ix-progress-indicator.cjs.entry.js +4 -4
- package/dist/cjs/ix-progress-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-progress-indicator.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-push-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ix-radio.cjs.entry.js +6 -6
- package/dist/cjs/ix-select.cjs.entry.js +11 -11
- package/dist/cjs/ix-slider.cjs.entry.js +8 -8
- package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-split-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item.ix-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-textarea.cjs.entry.js +5 -5
- package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-time-input.cjs.entry.js +6 -6
- package/dist/cjs/ix-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-time-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-time-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast-container.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-toggle.cjs.entry.js +5 -5
- package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-tree.cjs.entry.js +2 -2
- package/dist/cjs/ix-typography.cjs.entry.js +2 -2
- package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-typography.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-step.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
- package/dist/cjs/{listener-BJXzadPO.js → listener-BT212YoD.js} +3 -3
- package/dist/cjs/{listener-BJXzadPO.js.map → listener-BT212YoD.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/modal-CR_0969h.js.map +1 -1
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/cjs/{validation-_-cW9Dku.js → validation-rAd3wIQp.js} +3 -3
- package/dist/cjs/{validation-_-cW9Dku.js.map → validation-rAd3wIQp.js.map} +1 -1
- package/dist/collection/collection-manifest.json +28 -28
- package/dist/collection/components/action-card/action-card.js +4 -4
- package/dist/collection/components/action-card/action-card.js.map +1 -1
- package/dist/collection/components/action-card/action-card.types.js +2 -0
- package/dist/collection/components/action-card/action-card.types.js.map +1 -0
- package/dist/collection/components/application/application.js +3 -3
- package/dist/collection/components/application-header/application-header.js +3 -3
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
- package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
- package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
- package/dist/collection/components/blind/blind.js +8 -8
- package/dist/collection/components/blind/blind.js.map +1 -1
- package/dist/collection/components/blind/blind.types.js +2 -0
- package/dist/collection/components/blind/blind.types.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/card/card.js +5 -5
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/card/card.types.js +2 -0
- package/dist/collection/components/card/card.types.js.map +1 -0
- package/dist/collection/components/card-accordion/card-accordion.js +6 -6
- package/dist/collection/components/card-accordion/card-accordion.js.map +1 -1
- package/dist/collection/components/card-accordion/card-accordion.types.js +2 -0
- package/dist/collection/components/card-accordion/card-accordion.types.js.map +1 -0
- package/dist/collection/components/card-content/card-content.js +1 -1
- package/dist/collection/components/card-list/card-list.js +4 -4
- package/dist/collection/components/card-title/card-title.js +1 -1
- package/dist/collection/components/category-filter/category-filter.js +3 -3
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/collection/components/chip/chip.js +4 -4
- package/dist/collection/components/col/col.js +13 -13
- package/dist/collection/components/col/col.js.map +1 -1
- package/dist/collection/components/col/col.types.js +2 -0
- package/dist/collection/components/col/col.types.js.map +1 -0
- package/dist/collection/components/content/content.js +3 -3
- package/dist/collection/components/content-header/content-header.js +4 -4
- package/dist/collection/components/content-header/content-header.js.map +1 -1
- package/dist/collection/components/content-header/content-header.types.js +2 -0
- package/dist/collection/components/content-header/content-header.types.js.map +1 -0
- package/dist/collection/components/css-grid/css-grid-item.js +1 -1
- package/dist/collection/components/css-grid/css-grid.js +4 -4
- package/dist/collection/components/css-grid/css-grid.js.map +1 -1
- package/dist/collection/components/css-grid/css-grid.types.js +2 -0
- package/dist/collection/components/css-grid/css-grid.types.js.map +1 -0
- package/dist/collection/components/custom-field/custom-field.js +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +13 -13
- package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.types.js +2 -0
- package/dist/collection/components/date-dropdown/date-dropdown.types.js.map +1 -0
- package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
- package/dist/collection/components/date-input/date-input.js +6 -6
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-input/date-input.types.js +2 -0
- package/dist/collection/components/date-input/date-input.types.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker-component.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.events.js +2 -0
- package/dist/collection/components/date-picker/date-picker.events.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker.js +17 -17
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.js +5 -5
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.types.js +2 -0
- package/dist/collection/components/date-time-card/date-time-card.types.js.map +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +7 -7
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.types.js +2 -0
- package/dist/collection/components/datetime-picker/datetime-picker.types.js.map +1 -0
- 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 +5 -5
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.types.js +2 -0
- package/dist/collection/components/dropdown-button/dropdown-button.types.js.map +1 -0
- 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 +4 -4
- package/dist/collection/components/empty-state/empty-state.js.map +1 -1
- package/dist/collection/components/empty-state/empty-state.types.js +2 -0
- package/dist/collection/components/empty-state/empty-state.types.js.map +1 -0
- 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/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +4 -4
- 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/group-item/group-item.js +2 -2
- package/dist/collection/components/helper-text/helper-text.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +4 -4
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.types.js +2 -0
- package/dist/collection/components/icon-button/icon-button.types.js.map +1 -0
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input/number-input.js +6 -6
- package/dist/collection/components/input/textarea.js +5 -5
- package/dist/collection/components/input/textarea.js.map +1 -1
- package/dist/collection/components/input/textarea.types.js +2 -0
- package/dist/collection/components/input/textarea.types.js.map +1 -0
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/key-value/key-value.js +4 -4
- package/dist/collection/components/key-value/key-value.js.map +1 -1
- package/dist/collection/components/key-value/key-value.types.js +2 -0
- package/dist/collection/components/key-value/key-value.types.js.map +1 -0
- package/dist/collection/components/key-value-list/key-value-list.js +1 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/layout-auto/layout-auto.js +1 -1
- package/dist/collection/components/layout-grid/layout-grid.js +2 -2
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/map-navigation/map-navigation.js +2 -2
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
- package/dist/collection/components/menu/menu-expand-icon.js +1 -1
- package/dist/collection/components/menu/menu.js +12 -12
- package/dist/collection/components/menu-about/menu-about.js +1 -1
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +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 +3 -3
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +6 -6
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal/modal.types.js +2 -0
- package/dist/collection/components/modal/modal.types.js.map +1 -0
- 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 +2 -2
- package/dist/collection/components/pane/pane.js +24 -24
- package/dist/collection/components/pane/pane.js.map +1 -1
- package/dist/collection/components/pane/pane.types.js +2 -0
- package/dist/collection/components/pane/pane.types.js.map +1 -0
- package/dist/collection/components/pane-layout/pane-layout.js +1 -1
- package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
- package/dist/collection/components/pill/pill.js +4 -4
- package/dist/collection/components/progress-indicator/circular.js.map +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +6 -6
- package/dist/collection/components/progress-indicator/progress-indicator.js.map +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.types.js +2 -0
- package/dist/collection/components/progress-indicator/progress-indicator.types.js.map +1 -0
- package/dist/collection/components/push-card/push-card.js +4 -4
- package/dist/collection/components/push-card/push-card.js.map +1 -1
- package/dist/collection/components/push-card/push-card.types.js +2 -0
- package/dist/collection/components/push-card/push-card.types.js.map +1 -0
- package/dist/collection/components/radio/radio.js +4 -4
- 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 +8 -8
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/slider/slider.js +9 -9
- package/dist/collection/components/slider/slider.js.map +1 -1
- package/dist/collection/components/slider/slider.types.js +2 -0
- package/dist/collection/components/slider/slider.types.js.map +1 -0
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +4 -4
- package/dist/collection/components/split-button/split-button.js.map +1 -1
- package/dist/collection/components/split-button/split-button.types.js +2 -0
- package/dist/collection/components/split-button/split-button.types.js.map +1 -0
- package/dist/collection/components/tab-item/tab-item.js +6 -6
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.types.js +2 -0
- package/dist/collection/components/tab-item/tab-item.types.js.map +1 -0
- 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 +6 -6
- package/dist/collection/components/time-input/time-input.js.map +1 -1
- package/dist/collection/components/time-input/time-input.types.js +2 -0
- package/dist/collection/components/time-input/time-input.types.js.map +1 -0
- package/dist/collection/components/time-picker/time-picker.js +7 -7
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.types.js +2 -0
- package/dist/collection/components/time-picker/time-picker.types.js.map +1 -0
- package/dist/collection/components/toast/toast-container.js +5 -5
- package/dist/collection/components/toast/toast-container.js.map +1 -1
- package/dist/collection/components/toast/toast-container.types.js +2 -0
- package/dist/collection/components/toast/toast-container.types.js.map +1 -0
- package/dist/collection/components/toast/toast-utils.js.map +1 -1
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toggle-button/toggle-button.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +4 -4
- package/dist/collection/components/typography/typography.js +10 -10
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/collection/components/typography/typography.types.js +2 -0
- package/dist/collection/components/typography/typography.types.js.map +1 -0
- package/dist/collection/components/utils/modal/modal.js.map +1 -1
- package/dist/collection/index.js +1 -19
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/public-api.js +22 -0
- package/dist/collection/public-api.js.map +1 -0
- package/dist/esm/{base-button-dtdYZqMt.js → base-button-CKT5FMT1.js} +3 -3
- package/dist/esm/{base-button-dtdYZqMt.js.map → base-button-CKT5FMT1.js.map} +1 -1
- package/dist/esm/{base-icon-button-BZvsimpZ.js → base-icon-button-7cQMdhTz.js} +4 -4
- package/dist/esm/{base-icon-button-BZvsimpZ.js.map → base-icon-button-7cQMdhTz.js.map} +1 -1
- package/dist/esm/{helper-text-util-Dyff2O6m.js → helper-text-util-CBCAKFyG.js} +3 -3
- package/dist/esm/{helper-text-util-Dyff2O6m.js.map → helper-text-util-CBCAKFyG.js.map} +1 -1
- package/dist/esm/index-DJsXFBNm.js +2702 -0
- package/dist/esm/index-DJsXFBNm.js.map +1 -0
- package/dist/esm/index.js +2 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{input.util-HSoyR1ow.js → input.util-DGHGYsFM.js} +4 -4
- package/dist/esm/{input.util-HSoyR1ow.js.map → input.util-DGHGYsFM.js.map} +1 -1
- package/dist/esm/ix-action-card.entry.js +2 -2
- package/dist/esm/ix-action-card.entry.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +4 -4
- package/dist/esm/ix-application-sidebar.entry.js +2 -2
- package/dist/esm/ix-application-switch-modal.entry.js +2 -2
- package/dist/esm/ix-application.entry.js +4 -4
- package/dist/esm/ix-avatar_2.entry.js +3 -3
- package/dist/esm/ix-basic-navigation.entry.js +3 -3
- package/dist/esm/ix-blind.entry.js +6 -6
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
- package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb.entry.js +3 -3
- package/dist/esm/ix-button.entry.js +4 -4
- package/dist/esm/ix-card-accordion.ix-card-title.entry.js.map +1 -1
- package/dist/esm/ix-card-accordion_2.entry.js +5 -5
- package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
- package/dist/esm/ix-card-list.entry.js +5 -5
- package/dist/esm/ix-card.ix-card-content.entry.js.map +1 -1
- package/dist/esm/ix-card_2.entry.js +4 -4
- package/dist/esm/ix-card_2.entry.js.map +1 -1
- package/dist/esm/ix-category-filter.entry.js +5 -5
- package/dist/esm/ix-checkbox-group.entry.js +4 -4
- package/dist/esm/ix-checkbox.entry.js +5 -5
- package/dist/esm/ix-chip.entry.js +5 -5
- 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 +12 -12
- package/dist/esm/ix-col_4.entry.js.map +1 -1
- package/dist/esm/ix-content-header.entry.js +2 -2
- package/dist/esm/ix-content-header.entry.js.map +1 -1
- package/dist/esm/ix-content.entry.js +4 -4
- package/dist/esm/ix-css-grid-item.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js.map +1 -1
- package/dist/esm/ix-custom-field.entry.js +3 -3
- package/dist/esm/ix-date-dropdown.entry.js +5 -5
- package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-date-input.entry.js +6 -6
- package/dist/esm/ix-date-input.entry.js.map +1 -1
- package/dist/esm/ix-date-time-card.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/ix-drawer.entry.js +6 -6
- package/dist/esm/ix-dropdown-button.entry.js +3 -3
- package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-header.entry.js +2 -2
- package/dist/esm/ix-dropdown-item.entry.js +4 -4
- package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
- package/dist/esm/ix-dropdown.entry.js +3 -3
- package/dist/esm/ix-empty-state.entry.js +2 -2
- package/dist/esm/ix-empty-state.entry.js.map +1 -1
- package/dist/esm/ix-event-list-item.entry.js +5 -5
- package/dist/esm/ix-event-list.entry.js +3 -3
- package/dist/esm/ix-expanding-search.entry.js +5 -5
- package/dist/esm/ix-field-label_2.entry.js +6 -6
- package/dist/esm/ix-filter-chip_2.entry.js +3 -3
- package/dist/esm/ix-flip-tile-content.entry.js +2 -2
- package/dist/esm/ix-flip-tile.entry.js +5 -5
- package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
- package/dist/esm/ix-group.entry.js +9 -9
- package/dist/esm/ix-helper-text.entry.js +4 -4
- package/dist/esm/ix-icon-button.ix-spinner.entry.js.map +1 -1
- package/dist/esm/ix-icon-button_2.entry.js +5 -5
- package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
- package/dist/esm/ix-icon-toggle-button.entry.js +4 -4
- package/dist/esm/ix-input-group.entry.js +2 -2
- package/dist/esm/ix-input.entry.js +7 -7
- package/dist/esm/ix-key-value-list.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js.map +1 -1
- package/dist/esm/ix-kpi.entry.js +4 -4
- package/dist/esm/ix-layout-auto.entry.js +2 -2
- package/dist/esm/ix-link-button.entry.js +4 -4
- package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
- package/dist/esm/ix-map-navigation.entry.js +3 -3
- package/dist/esm/ix-menu-about-item.entry.js +2 -2
- package/dist/esm/ix-menu-about-news.entry.js +5 -5
- package/dist/esm/ix-menu-about.entry.js +3 -3
- package/dist/esm/ix-menu-avatar.entry.js +3 -3
- package/dist/esm/ix-menu-category.entry.js +6 -6
- package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
- package/dist/esm/ix-menu-item.entry.js +4 -4
- package/dist/esm/{ix-menu-settings-B5kM6fHy.js → ix-menu-settings-B56_taBh.js} +4 -4
- package/dist/esm/{ix-menu-settings-B5kM6fHy.js.map → ix-menu-settings-B56_taBh.js.map} +1 -1
- package/dist/esm/ix-menu-settings-item.entry.js +2 -2
- package/dist/esm/ix-menu-settings.entry.js +2 -2
- package/dist/esm/ix-menu.entry.js +13 -13
- package/dist/esm/ix-message-bar.entry.js +2 -2
- package/dist/esm/ix-modal-content_2.entry.js +3 -3
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-loading.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +5 -5
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-number-input.entry.js +9 -9
- package/dist/esm/ix-pagination.entry.js +4 -4
- package/dist/esm/ix-pane-layout.entry.js +2 -2
- package/dist/esm/ix-pane-layout.entry.js.map +1 -1
- package/dist/esm/ix-pane.entry.js +7 -7
- package/dist/esm/ix-pane.entry.js.map +1 -1
- package/dist/esm/ix-pill.entry.js +5 -5
- package/dist/esm/ix-progress-indicator.entry.js +4 -4
- package/dist/esm/ix-progress-indicator.entry.js.map +1 -1
- package/dist/esm/ix-push-card.entry.js +2 -2
- package/dist/esm/ix-push-card.entry.js.map +1 -1
- package/dist/esm/ix-radio-group.entry.js +4 -4
- package/dist/esm/ix-radio.entry.js +6 -6
- package/dist/esm/ix-select.entry.js +11 -11
- package/dist/esm/ix-slider.entry.js +8 -8
- package/dist/esm/ix-slider.entry.js.map +1 -1
- package/dist/esm/ix-split-button.entry.js +2 -2
- package/dist/esm/ix-split-button.entry.js.map +1 -1
- package/dist/esm/ix-tab-item.ix-tabs.entry.js.map +1 -1
- package/dist/esm/ix-tab-item_2.entry.js +6 -6
- package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
- package/dist/esm/ix-textarea.entry.js +5 -5
- package/dist/esm/ix-textarea.entry.js.map +1 -1
- package/dist/esm/ix-tile.entry.js +5 -5
- package/dist/esm/ix-time-input.entry.js +6 -6
- package/dist/esm/ix-time-input.entry.js.map +1 -1
- package/dist/esm/ix-time-picker.entry.js +6 -6
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast-container.entry.js +3 -3
- package/dist/esm/ix-toast-container.entry.js.map +1 -1
- package/dist/esm/ix-toast.entry.js +3 -3
- package/dist/esm/ix-toggle-button.entry.js +4 -4
- package/dist/esm/ix-toggle.entry.js +5 -5
- package/dist/esm/ix-tooltip.entry.js +2 -2
- package/dist/esm/ix-tree-item.entry.js +5 -5
- package/dist/esm/ix-tree.entry.js +2 -2
- package/dist/esm/ix-typography.entry.js +2 -2
- package/dist/esm/ix-typography.entry.js.map +1 -1
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +1 -1
- package/dist/esm/ix-workflow-step.entry.js +1 -1
- package/dist/esm/ix-workflow-steps.entry.js +1 -1
- package/dist/esm/{listener-DCrO174s.js → listener-B0yYRvMl.js} +3 -3
- package/dist/esm/{listener-DCrO174s.js.map → listener-B0yYRvMl.js.map} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/modal-BldRA6Um.js.map +1 -1
- package/dist/esm/siemens-ix.js +2 -2
- package/dist/esm/{validation-DuPOpjMi.js → validation-gQpVWmEm.js} +3 -3
- package/dist/esm/{validation-DuPOpjMi.js.map → validation-gQpVWmEm.js.map} +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/ix-action-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-blind.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-breadcrumb-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-card-accordion.ix-card-title.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-card.ix-card-content.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-content-header.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-css-grid.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-dropdown.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-time-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-datetime-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-dropdown-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-empty-state.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-icon-button.ix-spinner.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-key-value.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-modal.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pane-layout.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pane.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-progress-indicator.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-push-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-slider.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-split-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-tab-item.ix-tabs.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-textarea.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toast-container.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-typography.entry.esm.js.map +1 -1
- package/dist/siemens-ix/p--JQiLjHw.js +2 -0
- package/dist/siemens-ix/{p-BaslXuvq.js.map → p--JQiLjHw.js.map} +1 -1
- package/dist/siemens-ix/{p-4be22d4d.entry.js → p-003ae2cf.entry.js} +2 -2
- package/dist/siemens-ix/{p-094d6f0a.entry.js → p-00eff8b5.entry.js} +2 -2
- package/dist/siemens-ix/{p-47956560.entry.js → p-0195766f.entry.js} +2 -2
- package/dist/siemens-ix/{p-c23031be.entry.js → p-025c5b1b.entry.js} +2 -2
- package/dist/siemens-ix/{p-25c27b28.entry.js → p-03b8e425.entry.js} +2 -2
- package/dist/siemens-ix/p-04527b1e.entry.js +2 -0
- package/dist/siemens-ix/{p-07733f87.entry.js → p-07b2da86.entry.js} +2 -2
- package/dist/siemens-ix/{p-2edc9a43.entry.js → p-0935e05e.entry.js} +2 -2
- package/dist/siemens-ix/p-0935e05e.entry.js.map +1 -0
- package/dist/siemens-ix/{p-746f49b4.entry.js → p-098aa857.entry.js} +2 -2
- package/dist/siemens-ix/{p-b6f02420.entry.js → p-0b2e7f25.entry.js} +2 -2
- package/dist/siemens-ix/{p-b6f02420.entry.js.map → p-0b2e7f25.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-d4284927.entry.js → p-130ffc16.entry.js} +2 -2
- package/dist/siemens-ix/{p-1cff42a5.entry.js → p-13b5f3c3.entry.js} +2 -2
- package/dist/siemens-ix/{p-f61c1785.entry.js → p-14d2042d.entry.js} +2 -2
- package/dist/siemens-ix/p-15e0db51.entry.js +2 -0
- package/dist/siemens-ix/{p-a7e339d0.entry.js.map → p-15e0db51.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-702d290f.entry.js → p-173dfb9e.entry.js} +2 -2
- package/dist/siemens-ix/p-173dfb9e.entry.js.map +1 -0
- package/dist/siemens-ix/p-19501b80.entry.js +2 -0
- package/dist/siemens-ix/{p-d2151941.entry.js → p-1df6d18f.entry.js} +2 -2
- package/dist/siemens-ix/{p-518290fd.entry.js → p-1fdfe35a.entry.js} +2 -2
- package/dist/siemens-ix/{p-38fa1eec.entry.js → p-2642d96b.entry.js} +2 -2
- package/dist/siemens-ix/{p-0053fd70.entry.js → p-28aece6e.entry.js} +2 -2
- package/dist/siemens-ix/{p-00668881.entry.js → p-29d44cef.entry.js} +2 -2
- package/dist/siemens-ix/p-2db9bcfa.entry.js +2 -0
- package/dist/siemens-ix/p-2db9bcfa.entry.js.map +1 -0
- package/dist/siemens-ix/{p-1f5322d5.entry.js → p-2f2dfb6e.entry.js} +2 -2
- package/dist/siemens-ix/{p-7fcec901.entry.js → p-2f9b9e7a.entry.js} +2 -2
- package/dist/siemens-ix/{p-6b5cb4c3.entry.js → p-326c0944.entry.js} +2 -2
- package/dist/siemens-ix/p-326c0944.entry.js.map +1 -0
- package/dist/siemens-ix/{p-2a1152d9.entry.js → p-35054c78.entry.js} +2 -2
- package/dist/siemens-ix/p-35054c78.entry.js.map +1 -0
- package/dist/siemens-ix/{p-7b5eb3ca.entry.js → p-36b894a2.entry.js} +2 -2
- package/dist/siemens-ix/p-36b894a2.entry.js.map +1 -0
- package/dist/siemens-ix/{p-44a9c1db.entry.js → p-3b45287a.entry.js} +2 -2
- package/dist/siemens-ix/p-3b45287a.entry.js.map +1 -0
- package/dist/siemens-ix/p-440a0ee0.entry.js +2 -0
- package/dist/siemens-ix/p-44be2535.entry.js +2 -0
- package/dist/siemens-ix/{p-c6cb0b06.entry.js.map → p-44be2535.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-c7ead0ee.entry.js → p-456ca686.entry.js} +2 -2
- package/dist/siemens-ix/p-456ca686.entry.js.map +1 -0
- package/dist/siemens-ix/{p-ed05a3ed.entry.js → p-4657ec52.entry.js} +2 -2
- package/dist/siemens-ix/p-4657ec52.entry.js.map +1 -0
- package/dist/siemens-ix/{p-0e0019a3.entry.js → p-472c1d6b.entry.js} +2 -2
- package/dist/siemens-ix/{p-1363ac29.entry.js → p-47f395be.entry.js} +2 -2
- package/dist/siemens-ix/{p-cf7448b1.entry.js → p-483bc052.entry.js} +2 -2
- package/dist/siemens-ix/p-4959b8e6.entry.js +2 -0
- package/dist/siemens-ix/{p-a09ec38c.entry.js → p-4e2b30a4.entry.js} +2 -2
- package/dist/siemens-ix/p-4e2b30a4.entry.js.map +1 -0
- package/dist/siemens-ix/{p-2e0dab7b.entry.js → p-4ef7a072.entry.js} +2 -2
- package/dist/siemens-ix/p-4ef7a072.entry.js.map +1 -0
- package/dist/siemens-ix/{p-e499f85d.entry.js → p-4fe2d0f7.entry.js} +2 -2
- package/dist/siemens-ix/{p-17a19a44.entry.js → p-518b5533.entry.js} +2 -2
- package/dist/siemens-ix/p-518b5533.entry.js.map +1 -0
- package/dist/siemens-ix/{p-e006c83c.entry.js → p-5b22342c.entry.js} +2 -2
- package/dist/siemens-ix/{p-125b66ec.entry.js → p-605a9fe8.entry.js} +2 -2
- package/dist/siemens-ix/{p-2d383fa3.entry.js → p-6337e880.entry.js} +2 -2
- package/dist/siemens-ix/{p-0285fa1a.entry.js → p-6549edf0.entry.js} +2 -2
- package/dist/siemens-ix/p-66d20585.entry.js +2 -0
- package/dist/siemens-ix/{p-53d1f804.entry.js → p-6adde42d.entry.js} +2 -2
- package/dist/siemens-ix/{p-b1bc33ef.entry.js → p-6cc448b4.entry.js} +2 -2
- package/dist/siemens-ix/{p-ec3786c3.entry.js → p-7011678e.entry.js} +2 -2
- package/dist/siemens-ix/p-7111f065.entry.js +2 -0
- package/dist/siemens-ix/{p-30e325ee.entry.js → p-71c14a29.entry.js} +2 -2
- package/dist/siemens-ix/p-71c14a29.entry.js.map +1 -0
- package/dist/siemens-ix/{p-cf3c2573.entry.js → p-76f59fa5.entry.js} +2 -2
- package/dist/siemens-ix/{p-c5921b21.entry.js → p-777675ce.entry.js} +2 -2
- package/dist/siemens-ix/{p-f66cb323.entry.js → p-7a336485.entry.js} +2 -2
- package/dist/siemens-ix/p-7a336485.entry.js.map +1 -0
- package/dist/siemens-ix/{p-4a666ab2.entry.js → p-8d4558b9.entry.js} +2 -2
- package/dist/siemens-ix/{p-ef56e825.entry.js → p-8fcada5a.entry.js} +2 -2
- package/dist/siemens-ix/{p-96c0acb2.entry.js → p-91ba2527.entry.js} +2 -2
- package/dist/siemens-ix/p-97693d72.entry.js +2 -0
- package/dist/siemens-ix/{p-29eb0f3c.entry.js → p-97a53af6.entry.js} +2 -2
- package/dist/siemens-ix/p-981dae13.entry.js +2 -0
- package/dist/siemens-ix/{p-f426aa64.entry.js.map → p-981dae13.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-5f494293.entry.js → p-988f37da.entry.js} +2 -2
- package/dist/siemens-ix/{p-80dfc634.entry.js → p-9f74e709.entry.js} +2 -2
- package/dist/siemens-ix/p-9f74e709.entry.js.map +1 -0
- package/dist/siemens-ix/{p-61944945.entry.js → p-9f7d82d2.entry.js} +2 -2
- package/dist/siemens-ix/{p-DhH1rUwy.js → p-BsJawkTz.js} +2 -2
- package/dist/siemens-ix/{p-DhH1rUwy.js.map → p-BsJawkTz.js.map} +1 -1
- package/dist/siemens-ix/p-BxQZld1q.js.map +1 -1
- package/dist/siemens-ix/{p-zYzFdFx8.js → p-CFsAnuUU.js} +2 -2
- package/dist/siemens-ix/{p-zYzFdFx8.js.map → p-CFsAnuUU.js.map} +1 -1
- package/dist/siemens-ix/{p-Bko0CTxK.js → p-CpY7qbN7.js} +2 -2
- package/dist/siemens-ix/{p-Bko0CTxK.js.map → p-CpY7qbN7.js.map} +1 -1
- package/dist/siemens-ix/{p-DeEsc3nL.js → p-Cpl-a_ti.js} +2 -2
- package/dist/siemens-ix/{p-DeEsc3nL.js.map → p-Cpl-a_ti.js.map} +1 -1
- package/dist/siemens-ix/{p-C1MjXHa0.js → p-CthRnoDv.js} +2 -2
- package/dist/siemens-ix/{p-C1MjXHa0.js.map → p-CthRnoDv.js.map} +1 -1
- package/dist/siemens-ix/p-DJsXFBNm.js +3 -0
- package/dist/siemens-ix/p-DJsXFBNm.js.map +1 -0
- package/dist/siemens-ix/p-_tyNUrlp.js +2 -0
- package/dist/siemens-ix/{p-DyBJEhgA.js.map → p-_tyNUrlp.js.map} +1 -1
- package/dist/siemens-ix/{p-d4936531.entry.js → p-a43c4907.entry.js} +2 -2
- package/dist/siemens-ix/{p-e636a236.entry.js → p-a6ea8bc6.entry.js} +2 -2
- package/dist/siemens-ix/p-a6ea8bc6.entry.js.map +1 -0
- package/dist/siemens-ix/{p-a15f3a9d.entry.js → p-a7bdd5fd.entry.js} +2 -2
- package/dist/siemens-ix/p-a7bdd5fd.entry.js.map +1 -0
- package/dist/siemens-ix/p-a8cd5e58.entry.js +2 -0
- package/dist/siemens-ix/{p-7da60ba2.entry.js.map → p-a8cd5e58.entry.js.map} +1 -1
- package/dist/siemens-ix/p-a9336906.entry.js +2 -0
- package/dist/siemens-ix/p-a9336906.entry.js.map +1 -0
- package/dist/siemens-ix/{p-a951d9e7.entry.js → p-a9ec8094.entry.js} +2 -2
- package/dist/siemens-ix/p-aa2dd2c3.entry.js +2 -0
- package/dist/siemens-ix/{p-227ea9bc.entry.js.map → p-aa2dd2c3.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-7978f54a.entry.js → p-afd392d5.entry.js} +2 -2
- package/dist/siemens-ix/{p-381708ea.entry.js → p-b00517df.entry.js} +2 -2
- package/dist/siemens-ix/p-b3d4d2cd.entry.js +2 -0
- package/dist/siemens-ix/{p-fe1e79d6.entry.js → p-b548335e.entry.js} +2 -2
- package/dist/siemens-ix/{p-77d586e5.entry.js → p-b735b8ce.entry.js} +2 -2
- package/dist/siemens-ix/p-ba24447f.entry.js +2 -0
- package/dist/siemens-ix/{p-07fa84e9.entry.js.map → p-ba24447f.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-138de76a.entry.js → p-bec289d7.entry.js} +2 -2
- package/dist/siemens-ix/{p-60c6eba1.entry.js → p-bf7fbdfc.entry.js} +2 -2
- package/dist/siemens-ix/{p-e850d862.entry.js → p-bf8dd5a1.entry.js} +2 -2
- package/dist/siemens-ix/{p-97eb6c3c.entry.js → p-c050d511.entry.js} +2 -2
- package/dist/siemens-ix/p-c050d511.entry.js.map +1 -0
- package/dist/siemens-ix/{p-de03778d.entry.js → p-c24a5925.entry.js} +2 -2
- package/dist/siemens-ix/p-c24a5925.entry.js.map +1 -0
- package/dist/siemens-ix/{p-42cf2d8f.entry.js → p-c5f8ccc9.entry.js} +2 -2
- package/dist/siemens-ix/p-c9ab3079.entry.js +2 -0
- package/dist/siemens-ix/{p-64a2f777.entry.js.map → p-c9ab3079.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-26b072bb.entry.js → p-c9d48927.entry.js} +2 -2
- package/dist/siemens-ix/{p-ea980990.entry.js → p-ce3aebe6.entry.js} +2 -2
- package/dist/siemens-ix/{p-1b04e58a.entry.js → p-cf052f87.entry.js} +2 -2
- package/dist/siemens-ix/p-cf052f87.entry.js.map +1 -0
- package/dist/siemens-ix/{p-7b455f16.entry.js → p-d0c1473e.entry.js} +2 -2
- package/dist/siemens-ix/p-d0c1473e.entry.js.map +1 -0
- package/dist/siemens-ix/{p-61bf7678.entry.js → p-d3458382.entry.js} +2 -2
- package/dist/siemens-ix/p-d605b181.entry.js +2 -0
- package/dist/siemens-ix/{p-96687290.entry.js → p-db6d5110.entry.js} +2 -2
- package/dist/siemens-ix/p-db6d5110.entry.js.map +1 -0
- package/dist/siemens-ix/{p-92513d0e.entry.js → p-de79e8c0.entry.js} +2 -2
- package/dist/siemens-ix/p-de79e8c0.entry.js.map +1 -0
- package/dist/siemens-ix/{p-e40c900a.entry.js → p-dfb5f7d8.entry.js} +2 -2
- package/dist/siemens-ix/{p-97029efe.entry.js → p-dfe4de85.entry.js} +2 -2
- package/dist/siemens-ix/{p-f1d1c522.entry.js → p-ea142215.entry.js} +2 -2
- package/dist/siemens-ix/{p-6a275897.entry.js → p-ead88218.entry.js} +2 -2
- package/dist/siemens-ix/{p-25368187.entry.js → p-ec7cd008.entry.js} +2 -2
- package/dist/siemens-ix/{p-6dffce02.entry.js → p-ecd576f8.entry.js} +2 -2
- package/dist/siemens-ix/p-ecd576f8.entry.js.map +1 -0
- package/dist/siemens-ix/{p-3725e281.entry.js → p-ee2902a5.entry.js} +2 -2
- package/dist/siemens-ix/{p-daf2c2fd.entry.js → p-f4415d44.entry.js} +2 -2
- package/dist/siemens-ix/{p-b45ce132.entry.js → p-f4ce72e4.entry.js} +2 -2
- package/dist/siemens-ix/p-f4ce72e4.entry.js.map +1 -0
- package/dist/siemens-ix/{p-cf3cbb46.entry.js → p-f6a6694e.entry.js} +2 -2
- package/dist/siemens-ix/p-f6a6694e.entry.js.map +1 -0
- package/dist/siemens-ix/{p-fadc415c.entry.js → p-fbacd6eb.entry.js} +2 -2
- package/dist/siemens-ix/p-fbacd6eb.entry.js.map +1 -0
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/action-card/action-card.d.ts +1 -2
- package/dist/types/components/action-card/action-card.types.d.ts +2 -0
- package/dist/types/components/blind/blind.d.ts +1 -2
- package/dist/types/components/blind/blind.types.d.ts +2 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +0 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/card/card.types.d.ts +1 -0
- package/dist/types/components/card-accordion/card-accordion.d.ts +1 -4
- package/dist/types/components/card-accordion/card-accordion.types.d.ts +4 -0
- package/dist/types/components/col/col.d.ts +1 -1
- package/dist/types/components/col/col.types.d.ts +1 -0
- package/dist/types/components/content-header/content-header.d.ts +1 -1
- package/dist/types/components/content-header/content-header.types.d.ts +1 -0
- package/dist/types/components/css-grid/css-grid.d.ts +1 -1
- package/dist/types/components/css-grid/css-grid.types.d.ts +1 -0
- package/dist/types/components/date-dropdown/date-dropdown.d.ts +1 -11
- package/dist/types/components/date-dropdown/date-dropdown.types.d.ts +11 -0
- package/dist/types/components/date-input/date-input.d.ts +1 -4
- package/dist/types/components/date-input/date-input.types.d.ts +4 -0
- package/dist/types/components/date-picker/date-picker-component.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +2 -5
- package/dist/types/components/date-picker/date-picker.events.d.ts +4 -0
- package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
- package/dist/types/components/date-time-card/date-time-card.types.d.ts +1 -0
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +1 -6
- package/dist/types/components/datetime-picker/datetime-picker.types.d.ts +6 -0
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +1 -2
- package/dist/types/components/dropdown-button/dropdown-button.types.d.ts +2 -0
- package/dist/types/components/empty-state/empty-state.d.ts +1 -1
- package/dist/types/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/types/components/icon-button/icon-button.d.ts +1 -2
- package/dist/types/components/icon-button/icon-button.types.d.ts +2 -0
- package/dist/types/components/input/textarea.d.ts +1 -1
- package/dist/types/components/input/textarea.types.d.ts +1 -0
- package/dist/types/components/key-value/key-value.d.ts +1 -1
- package/dist/types/components/key-value/key-value.types.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +1 -3
- package/dist/types/components/modal/modal.types.d.ts +3 -0
- package/dist/types/components/pane/pane.d.ts +1 -21
- package/dist/types/components/pane/pane.types.d.ts +21 -0
- package/dist/types/components/progress-indicator/circular.d.ts +1 -1
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +1 -1
- package/dist/types/components/progress-indicator/progress-indicator.types.d.ts +1 -0
- package/dist/types/components/push-card/push-card.d.ts +1 -2
- package/dist/types/components/push-card/push-card.types.d.ts +2 -0
- package/dist/types/components/slider/slider.d.ts +1 -1
- package/dist/types/components/slider/slider.types.d.ts +1 -0
- package/dist/types/components/split-button/split-button.d.ts +1 -2
- package/dist/types/components/split-button/split-button.types.d.ts +2 -0
- package/dist/types/components/tab-item/tab-item.d.ts +1 -3
- package/dist/types/components/tab-item/tab-item.types.d.ts +3 -0
- package/dist/types/components/time-input/time-input.d.ts +1 -4
- package/dist/types/components/time-input/time-input.types.d.ts +4 -0
- package/dist/types/components/time-picker/time-picker.d.ts +1 -2
- package/dist/types/components/time-picker/time-picker.types.d.ts +2 -0
- package/dist/types/components/toast/toast-container.d.ts +1 -5
- package/dist/types/components/toast/toast-container.types.d.ts +5 -0
- package/dist/types/components/toast/toast-utils.d.ts +1 -1
- package/dist/types/components/typography/typography.d.ts +1 -10
- package/dist/types/components/typography/typography.types.d.ts +10 -0
- package/dist/types/components/utils/modal/modal.d.ts +1 -1
- package/dist/types/components.d.ts +58 -60
- package/dist/types/index.d.ts +3 -16
- package/dist/types/public-api.d.ts +15 -0
- package/hydrate/index.js +256 -256
- package/hydrate/index.mjs +256 -256
- package/package.json +5 -5
- package/components/p-18F-YfbC.js.map +0 -1
- package/components/p-BXGAr1UD.js.map +0 -1
- package/components/p-Cuf7Gv_k.js.map +0 -1
- package/components/p-DzKDFBWC.js +0 -2042
- package/components/p-DzKDFBWC.js.map +0 -1
- package/components/p-pMSLP3h4.js.map +0 -1
- package/dist/cjs/index-BDliOtbY.js +0 -2734
- package/dist/cjs/index-BDliOtbY.js.map +0 -1
- package/dist/esm/index-B6NtGPRE.js +0 -2702
- package/dist/esm/index-B6NtGPRE.js.map +0 -1
- package/dist/siemens-ix/p-07fa84e9.entry.js +0 -2
- package/dist/siemens-ix/p-17a19a44.entry.js.map +0 -1
- package/dist/siemens-ix/p-1b04e58a.entry.js.map +0 -1
- package/dist/siemens-ix/p-1fc79a42.entry.js +0 -2
- package/dist/siemens-ix/p-227ea9bc.entry.js +0 -2
- package/dist/siemens-ix/p-2a1152d9.entry.js.map +0 -1
- package/dist/siemens-ix/p-2e0dab7b.entry.js.map +0 -1
- package/dist/siemens-ix/p-2edc9a43.entry.js.map +0 -1
- package/dist/siemens-ix/p-30e325ee.entry.js.map +0 -1
- package/dist/siemens-ix/p-3d4eba06.entry.js +0 -2
- package/dist/siemens-ix/p-44a9c1db.entry.js.map +0 -1
- package/dist/siemens-ix/p-64a2f777.entry.js +0 -2
- package/dist/siemens-ix/p-674dd99b.entry.js +0 -2
- package/dist/siemens-ix/p-6b5cb4c3.entry.js.map +0 -1
- package/dist/siemens-ix/p-6cc4c39e.entry.js +0 -2
- package/dist/siemens-ix/p-6dffce02.entry.js.map +0 -1
- package/dist/siemens-ix/p-702d290f.entry.js.map +0 -1
- package/dist/siemens-ix/p-719704c7.entry.js +0 -2
- package/dist/siemens-ix/p-719704c7.entry.js.map +0 -1
- package/dist/siemens-ix/p-7b455f16.entry.js.map +0 -1
- package/dist/siemens-ix/p-7b5eb3ca.entry.js.map +0 -1
- package/dist/siemens-ix/p-7da60ba2.entry.js +0 -2
- package/dist/siemens-ix/p-80dfc634.entry.js.map +0 -1
- package/dist/siemens-ix/p-8774e0a8.entry.js +0 -2
- package/dist/siemens-ix/p-92513d0e.entry.js.map +0 -1
- package/dist/siemens-ix/p-9513a275.entry.js +0 -2
- package/dist/siemens-ix/p-96687290.entry.js.map +0 -1
- package/dist/siemens-ix/p-97eb6c3c.entry.js.map +0 -1
- package/dist/siemens-ix/p-B6NtGPRE.js +0 -3
- package/dist/siemens-ix/p-B6NtGPRE.js.map +0 -1
- package/dist/siemens-ix/p-BaslXuvq.js +0 -2
- package/dist/siemens-ix/p-DyBJEhgA.js +0 -2
- package/dist/siemens-ix/p-a09ec38c.entry.js.map +0 -1
- package/dist/siemens-ix/p-a15f3a9d.entry.js.map +0 -1
- package/dist/siemens-ix/p-a7e339d0.entry.js +0 -2
- package/dist/siemens-ix/p-b45ce132.entry.js.map +0 -1
- package/dist/siemens-ix/p-c192caa5.entry.js +0 -2
- package/dist/siemens-ix/p-c192caa5.entry.js.map +0 -1
- package/dist/siemens-ix/p-c6cb0b06.entry.js +0 -2
- package/dist/siemens-ix/p-c7ead0ee.entry.js.map +0 -1
- package/dist/siemens-ix/p-c9c30ce7.entry.js +0 -2
- package/dist/siemens-ix/p-cb076f29.entry.js +0 -2
- package/dist/siemens-ix/p-cf3cbb46.entry.js.map +0 -1
- package/dist/siemens-ix/p-de03778d.entry.js.map +0 -1
- package/dist/siemens-ix/p-e088e1d9.entry.js +0 -2
- package/dist/siemens-ix/p-e636a236.entry.js.map +0 -1
- package/dist/siemens-ix/p-ed05a3ed.entry.js.map +0 -1
- package/dist/siemens-ix/p-f426aa64.entry.js +0 -2
- package/dist/siemens-ix/p-f66cb323.entry.js.map +0 -1
- package/dist/siemens-ix/p-fadc415c.entry.js.map +0 -1
- package/dist/types/interfaces.d.ts +0 -27
- /package/dist/siemens-ix/{p-4be22d4d.entry.js.map → p-003ae2cf.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-094d6f0a.entry.js.map → p-00eff8b5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-47956560.entry.js.map → p-0195766f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c23031be.entry.js.map → p-025c5b1b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-25c27b28.entry.js.map → p-03b8e425.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9513a275.entry.js.map → p-04527b1e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-07733f87.entry.js.map → p-07b2da86.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-746f49b4.entry.js.map → p-098aa857.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d4284927.entry.js.map → p-130ffc16.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1cff42a5.entry.js.map → p-13b5f3c3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f61c1785.entry.js.map → p-14d2042d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cb076f29.entry.js.map → p-19501b80.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d2151941.entry.js.map → p-1df6d18f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-518290fd.entry.js.map → p-1fdfe35a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-38fa1eec.entry.js.map → p-2642d96b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0053fd70.entry.js.map → p-28aece6e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-00668881.entry.js.map → p-29d44cef.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1f5322d5.entry.js.map → p-2f2dfb6e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7fcec901.entry.js.map → p-2f9b9e7a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8774e0a8.entry.js.map → p-440a0ee0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0e0019a3.entry.js.map → p-472c1d6b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1363ac29.entry.js.map → p-47f395be.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cf7448b1.entry.js.map → p-483bc052.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3d4eba06.entry.js.map → p-4959b8e6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e499f85d.entry.js.map → p-4fe2d0f7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e006c83c.entry.js.map → p-5b22342c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-125b66ec.entry.js.map → p-605a9fe8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2d383fa3.entry.js.map → p-6337e880.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0285fa1a.entry.js.map → p-6549edf0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1fc79a42.entry.js.map → p-66d20585.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-53d1f804.entry.js.map → p-6adde42d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b1bc33ef.entry.js.map → p-6cc448b4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ec3786c3.entry.js.map → p-7011678e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6cc4c39e.entry.js.map → p-7111f065.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cf3c2573.entry.js.map → p-76f59fa5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c5921b21.entry.js.map → p-777675ce.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4a666ab2.entry.js.map → p-8d4558b9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ef56e825.entry.js.map → p-8fcada5a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-96c0acb2.entry.js.map → p-91ba2527.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e088e1d9.entry.js.map → p-97693d72.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-29eb0f3c.entry.js.map → p-97a53af6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5f494293.entry.js.map → p-988f37da.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-61944945.entry.js.map → p-9f7d82d2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d4936531.entry.js.map → p-a43c4907.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a951d9e7.entry.js.map → p-a9ec8094.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7978f54a.entry.js.map → p-afd392d5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-381708ea.entry.js.map → p-b00517df.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c9c30ce7.entry.js.map → p-b3d4d2cd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-fe1e79d6.entry.js.map → p-b548335e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-77d586e5.entry.js.map → p-b735b8ce.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-138de76a.entry.js.map → p-bec289d7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-60c6eba1.entry.js.map → p-bf7fbdfc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e850d862.entry.js.map → p-bf8dd5a1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-42cf2d8f.entry.js.map → p-c5f8ccc9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-26b072bb.entry.js.map → p-c9d48927.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ea980990.entry.js.map → p-ce3aebe6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-61bf7678.entry.js.map → p-d3458382.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-674dd99b.entry.js.map → p-d605b181.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e40c900a.entry.js.map → p-dfb5f7d8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-97029efe.entry.js.map → p-dfe4de85.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f1d1c522.entry.js.map → p-ea142215.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6a275897.entry.js.map → p-ead88218.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-25368187.entry.js.map → p-ec7cd008.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3725e281.entry.js.map → p-ee2902a5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-daf2c2fd.entry.js.map → p-f4415d44.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col.js","sourceRoot":"","sources":["../../../src/components/col/col.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAc,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"col.js","sourceRoot":"","sources":["../../../src/components/col/col.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAc,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAUnE,MAAM,OAAO,GAAG;IAwBd,QAAQ;QACN,WAAW,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAEO,OAAO,CAAC,UAA0B;QACxC,IAAI,UAAU,KAAK,EAAE,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;QAED,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;QAED,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;QAED,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;IACH,CAAC;IAEO,aAAa;QACnB,IAAI,IAA4B,CAAC;QACjC,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE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ileCopyrightText: 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 { Component, forceUpdate, h, Host, Listen, Prop } from '@stencil/core';\nimport { Breakpoint, matchBreakpoint } from '../utils/breakpoints';\nimport type { ColumnSize } from './col.types';\n\ntype GridBreakpoint = Breakpoint | '';\n\n@Component({\n tag: 'ix-col',\n styleUrl: 'col.scss',\n shadow: true,\n})\nexport class Col {\n static Breakpoints: GridBreakpoint[] = ['', 'sm', 'md', 'lg'];\n\n /**\n * Size of the column\n */\n @Prop() size?: ColumnSize;\n\n /**\n * Size of the column for sm screens\n */\n @Prop() sizeSm?: ColumnSize;\n\n /**\n * Size of the column for md screens\n */\n @Prop() sizeMd?: ColumnSize;\n\n /**\n * Size of the column for lg screens\n */\n @Prop() sizeLg?: ColumnSize;\n\n @Listen('resize', { target: 'window' })\n onResize() {\n forceUpdate(this);\n }\n\n private getSize(breakpoint: GridBreakpoint) {\n if (breakpoint === '') {\n return this.size;\n }\n\n if (breakpoint === 'sm') {\n return this.sizeSm;\n }\n\n if (breakpoint === 'md') {\n return this.sizeMd;\n }\n\n if (breakpoint === 'lg') {\n return this.sizeLg;\n }\n }\n\n private getColumnSize(): ColumnSize | undefined {\n let size: ColumnSize | undefined;\n Col.Breakpoints.forEach((breakpoint) => {\n const isMediaQueryActive =\n breakpoint !== '' ? matchBreakpoint(breakpoint) : true;\n\n if (!isMediaQueryActive) {\n return;\n }\n\n const currentSize = this.getSize(breakpoint);\n\n if (currentSize) {\n size = currentSize;\n }\n });\n\n return size;\n }\n\n private getColumnSizeStyling() {\n const size = this.getColumnSize();\n\n if (!size) {\n return;\n }\n\n if (size === 'auto') {\n return {\n flex: '0 0 auto',\n width: 'auto',\n 'max-width': 'auto',\n };\n }\n\n const colSize = `calc(calc(${size} / var(--ix-layout-grid-columns)) * 100%)`;\n\n return {\n flex: `0 0 ${colSize}`,\n width: `${colSize}`,\n 'max-width': `${colSize}`,\n };\n }\n\n render() {\n return (\n <Host\n style={{\n ...this.getColumnSizeStyling(),\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"col.types.js","sourceRoot":"","sources":["../../../src/components/col/col.types.ts"],"names":[],"mappings":"","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 */\nexport type ColumnSize =\n | '1'\n | '2'\n | '3'\n | '4'\n | '5'\n | '6'\n | '7'\n | '8'\n | '9'\n | '10'\n | '11'\n | '12'\n | 'auto';\n"]}
|
|
@@ -19,12 +19,12 @@ export class Content {
|
|
|
19
19
|
return this.hostElement.shadowRoot.querySelector('.content-header slot');
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '2fc667e794c1c405e05bb44d1a0a30e1347fdbb9' }, h("div", { key: '26c76928f72d75a3898ef3981b3594170b2f8e50', class: {
|
|
23
23
|
'content-header': true,
|
|
24
24
|
slotted: this.isContentHeaderSlotted,
|
|
25
|
-
} }, h("slot", { key: '
|
|
25
|
+
} }, h("slot", { key: '87b919b488d9bca96f10b6ae777b238a7ff32323', name: "header", onSlotchange: () => {
|
|
26
26
|
this.isContentHeaderSlotted = hasSlottedElements(this.contentHeaderSlot);
|
|
27
|
-
} })), h("div", { key: '
|
|
27
|
+
} })), h("div", { key: 'ec33f05055ae1a0ade4394bd40a20fc58bccbb51', class: "content" }, h("slot", { key: '861d214129eacbbb74988cf8f556186acb7bda99' }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "ix-content"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,7 +24,7 @@ export class ContentHeader {
|
|
|
24
24
|
this.hasBackButton = false;
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: 'e1289f0a76f8019796f87829f15f61409973bed0' }, this.hasBackButton ? (h("ix-icon-button", { class: 'backButton', variant: "primary", icon: iconArrowLeft, ghost: true, onClick: () => this.backButtonClick.emit() })) : null, h("div", { key: '7749798c2f8f8121d334d7ae78ad3530f095ef48', class: "titleGroup" }, h("ix-typography", { key: '0e448a5cd660f088101c406da3af96f12d2e2690', format: this.variant === 'secondary' ? 'h4' : 'h3', class: this.variant === 'secondary' ? 'secondary' : '' }, this.headerTitle), !!this.headerSubtitle && (h("ix-typography", { key: 'ffb763836bdde4eba3a4cfc4f981e7a2c7dd46a2', format: 'h6', "text-color": 'soft', class: this.variant === 'secondary' ? 'subtitle' : '' }, this.headerSubtitle))), h("div", { key: 'aa50a3909afbc6ef73521ac957d79a1ae01f19fd', class: "buttons" }, h("slot", { key: 'a72ec6709a889fadfe486a1fb9896ca482242307' }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "ix-content-header"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,9 +49,9 @@ export class ContentHeader {
|
|
|
49
49
|
"resolved": "\"primary\" | \"secondary\"",
|
|
50
50
|
"references": {
|
|
51
51
|
"ContentHeaderVariant": {
|
|
52
|
-
"location": "
|
|
53
|
-
"path": "
|
|
54
|
-
"id": "src/components/content-header/content-header.
|
|
52
|
+
"location": "import",
|
|
53
|
+
"path": "./content-header.types",
|
|
54
|
+
"id": "src/components/content-header/content-header.types.ts::ContentHeaderVariant"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-header.js","sourceRoot":"","sources":["../../../src/components/content-header/content-header.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"content-header.js","sourceRoot":"","sources":["../../../src/components/content-header/content-header.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ9E,MAAM,OAAO,aAAa;IAL1B;QAME;;WAEG;QACK,YAAO,GAAyB,SAAS,CAAC;QAOlD;;WAEG;QACK,mBAAc,GAAuB,SAAS,CAAC;QAEvD;;WAEG;QACK,kBAAa,GAAY,KAAK,CAAC;KA2CxC;IApCC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CACpB,sBACE,KAAK,EAAE,YAAY,EACnB,OAAO,EAAC,SAAS,EACjB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,GAC1B,CACnB,CAAC,CAAC,CAAC,IAAI;YAER,4DAAK,KAAK,EAAC,YAAY;gBACrB,sEACE,MAAM,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAClD,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAErD,IAAI,CAAC,WAAW,CACH;gBACf,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,CACxB,sEACE,MAAM,EAAE,IAAI,gBACA,MAAM,EAClB,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAEpD,IAAI,CAAC,cAAc,CACN,CACjB,CACG;YACN,4DAAK,KAAK,EAAC,SAAS;gBAClB,8DAAQ,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { iconArrowLeft } from '@siemens/ix-icons/icons';\nimport { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport type { ContentHeaderVariant } from './content-header.types';\n\n@Component({\n tag: 'ix-content-header',\n styleUrl: 'content-header.scss',\n shadow: true,\n})\nexport class ContentHeader {\n /**\n * Variant of content header\n */\n @Prop() variant: ContentHeaderVariant = 'primary';\n\n /**\n * Title of Header\n */\n @Prop() headerTitle?: string;\n\n /**\n * Subtitle of Header\n */\n @Prop() headerSubtitle: string | undefined = undefined;\n\n /**\n * Display a back button\n */\n @Prop() hasBackButton: boolean = false;\n\n /**\n * Triggered when back button is clicked\n */\n @Event() backButtonClick!: EventEmitter<void>;\n\n render() {\n return (\n <Host>\n {this.hasBackButton ? (\n <ix-icon-button\n class={'backButton'}\n variant=\"primary\"\n icon={iconArrowLeft}\n ghost={true}\n onClick={() => this.backButtonClick.emit()}\n ></ix-icon-button>\n ) : null}\n\n <div class=\"titleGroup\">\n <ix-typography\n format={this.variant === 'secondary' ? 'h4' : 'h3'}\n class={this.variant === 'secondary' ? 'secondary' : ''}\n >\n {this.headerTitle}\n </ix-typography>\n {!!this.headerSubtitle && (\n <ix-typography\n format={'h6'}\n text-color={'soft'}\n class={this.variant === 'secondary' ? 'subtitle' : ''}\n >\n {this.headerSubtitle}\n </ix-typography>\n )}\n </div>\n <div class=\"buttons\">\n <slot />\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-header.types.js","sourceRoot":"","sources":["../../../src/components/content-header/content-header.types.ts"],"names":[],"mappings":"","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 */\nexport type ContentHeaderVariant = 'primary' | 'secondary';\n"]}
|
|
@@ -14,7 +14,7 @@ export class CssGridItem {
|
|
|
14
14
|
render() {
|
|
15
15
|
const style = {};
|
|
16
16
|
style['grid-area'] = this.itemName;
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'a6516c0d4de0a1dddd6860e69930262064b91f2a', style: style }, h("slot", { key: '4f536059b653610e8a04fffd43aebf63e9554fc2' })));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "ix-css-grid-item"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,7 +73,7 @@ export class CssGrid {
|
|
|
73
73
|
if (this.currentTemplate && this.currentTemplate.length !== 0) {
|
|
74
74
|
style['grid-template-areas'] = templateBuilder(this.currentTemplate);
|
|
75
75
|
}
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'aa465f2817f5788d72565bf138cefff118e307e9', style: style }, h("slot", { key: '3e170cdadb93be56a578d657fcd70d5e03cc608e' })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "ix-css-grid"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -106,9 +106,9 @@ export class CssGrid {
|
|
|
106
106
|
"id": "global::Record"
|
|
107
107
|
},
|
|
108
108
|
"CssGridTemplateType": {
|
|
109
|
-
"location": "
|
|
110
|
-
"path": "
|
|
111
|
-
"id": "src/components/css-grid/css-grid.
|
|
109
|
+
"location": "import",
|
|
110
|
+
"path": "./css-grid.types",
|
|
111
|
+
"id": "src/components/css-grid/css-grid.types.ts::CssGridTemplateType"
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-grid.js","sourceRoot":"","sources":["../../../src/components/css-grid/css-grid.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"css-grid.js","sourceRoot":"","sources":["../../../src/components/css-grid/css-grid.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,MAAM,OAAO,GAAG,oCAAoC,CAAC;AACrD,MAAM,OAAO,GAAG,oCAAoC,CAAC;AACrD,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAErD,MAAM,oBAAoB,GAGrB;IACH,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;IAC9B,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;IAC9B,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;CAC/B,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,OAAO;IALpB;QAaU,8BAAyB,GAC/B,EAAE,CAAC;QACG,iBAAY,GAId,EAAE,CAAC;KAwEV;IAtEC,mBAAmB;QACjB,IAAI,CAAC,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACrD,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAElD,MAA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AY,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAEnE,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAE7C,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,MAAM;QACJ,MAAM,KAAK,GAA2B,EAAE,CAAC;QACzC,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9D,KAAK,CAAC,qBAAqB,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACvE,CAAC;QACD,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,KAAK;YAChB,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Prop, State } from '@stencil/core';\nimport { templateBuilder } from './builder';\nimport type { CssGridTemplateType } from './css-grid.types';\n\nconst smQuery = 'only screen and (max-width: 576px)';\nconst mdQuery = 'only screen and (max-width: 768px)';\nconst lgQuery = 'only screen and (max-width: 992px)';\n\nconst mediaQueryCollection: Array<{\n name: CssGridTemplateType;\n query: string;\n}> = [\n { name: 'sm', query: smQuery },\n { name: 'md', query: mdQuery },\n { name: 'lg', query: lgQuery },\n];\n\n/**\n * @internal\n */\n@Component({\n tag: 'ix-css-grid',\n styleUrl: 'css-grid.scss',\n shadow: true,\n})\nexport class CssGrid {\n /**\n * Define css grid template\n */\n @Prop() templates?: Partial<Record<CssGridTemplateType, string[][]>>;\n\n @State() currentTemplate?: string[][];\n\n private disposeMediaQueryListener: ((event: MediaQueryListEvent) => void)[] =\n [];\n private mediaQueries: {\n mediaQuery: MediaQueryList;\n name: CssGridTemplateType;\n query: string;\n }[] = [];\n\n componentWillRender() {\n this.mediaQueries = mediaQueryCollection.map((query) => {\n const mediaQuery = window.matchMedia(query.query);\n\n const callback = () => {\n this.applyTemplate();\n };\n this.disposeMediaQueryListener.push(callback);\n mediaQuery.addEventListener('change', callback);\n\n return {\n ...query,\n mediaQuery,\n };\n });\n\n this.applyTemplate();\n }\n\n disconnectedCallback() {\n this.mediaQueries.forEach((mq, index) => {\n mq.mediaQuery.removeEventListener(\n 'change',\n this.disposeMediaQueryListener[index]\n );\n });\n }\n\n private findNextTemplate(type: CssGridTemplateType): string[][] {\n if (!this.templates) {\n return [];\n }\n const typeIndex = this.mediaQueries.findIndex((mq) => mq.name === type);\n const nextTemplate = this.templates[this.mediaQueries[typeIndex + 1].name];\n if (!nextTemplate) {\n return this.findNextTemplate(this.mediaQueries[typeIndex + 1].name);\n }\n return nextTemplate;\n }\n\n private applyTemplate() {\n if (!this.templates) {\n return;\n }\n let active = this.mediaQueries.find((mq) => mq.mediaQuery.matches);\n\n if (!active) {\n active = this.mediaQueries[this.mediaQueries.length - 1];\n }\n\n const template = this.templates[active.name];\n\n if (template) {\n this.currentTemplate = template;\n } else {\n this.currentTemplate = this.findNextTemplate(active.name);\n }\n }\n\n render() {\n const style: Record<string, string> = {};\n if (this.currentTemplate && this.currentTemplate.length !== 0) {\n style['grid-template-areas'] = templateBuilder(this.currentTemplate);\n }\n return (\n <Host style={style}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css-grid.types.js","sourceRoot":"","sources":["../../../src/components/css-grid/css-grid.types.ts"],"names":[],"mappings":"","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 */\nexport type CssGridTemplateType = 'sm' | 'md' | 'lg';\n"]}
|
|
@@ -36,7 +36,7 @@ export class CustomField {
|
|
|
36
36
|
this.isWarning = isWarning;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '70d7fefaf6c76d6f6400aa86028bd5e590f04869' }, h("ix-field-wrapper", { key: 'd9f6e786f6c94d63e0571b45afd455169465aa55', label: this.label, helperText: this.helperText, infoText: this.infoText, warningText: this.warningText, invalidText: this.invalidText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, required: this.required }, h("slot", { key: '7146528507351733a8c9ddd3f445627103bc0611' }))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "ix-custom-field"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -225,21 +225,21 @@ export class DateDropdown {
|
|
|
225
225
|
}
|
|
226
226
|
render() {
|
|
227
227
|
var _a, _b, _c;
|
|
228
|
-
return (h(Host, { key: '
|
|
228
|
+
return (h(Host, { key: 'b7371214ce82eed05c19e73b26babb08b60d46ec' }, h("ix-button", { key: '91748fd78c32d1d23259c17d16e1eab90271d3a0', "data-testid": "date-dropdown-trigger", "data-date-dropdown-trigger": true, variant: this.variant, ghost: this.ghost, outline: this.outline, loading: this.loading, icon: iconHistory, ref: this.triggerRef, disabled: this.disabled }, this.getButtonLabel()), h("ix-dropdown", { key: '53cd4bc9c402a0f2382756b85f18d9a4b80531f6', "data-testid": "date-dropdown", "data-date-dropdown": true, class: "min-width max-height", trigger: this.triggerRef.waitForCurrent(), closeBehavior: "outside", placement: "bottom-start", onShowChanged: ({ detail: show }) => {
|
|
229
229
|
if (!show &&
|
|
230
230
|
this.selectedDateRangeId === 'custom' &&
|
|
231
231
|
this.datePickerTouched &&
|
|
232
232
|
this.currentRangeValue) {
|
|
233
233
|
this.onDateSelect(this.currentRangeValue);
|
|
234
234
|
}
|
|
235
|
-
} }, h("ix-layout-grid", { key: '
|
|
235
|
+
} }, h("ix-layout-grid", { key: '5599bb6f0dddf7399b1a44176641201467c7a019', noMargin: true }, h("ix-row", { key: '8e6883fbc64b092a210bd77888bdab5e816b113c' }, ((_a = this.dateRangeOptions) === null || _a === void 0 ? void 0 : _a.length) > 1 && (h("ix-col", { key: '3b88c720c0a424b6a3026c4cf007df0814f2ab53', class: {
|
|
236
236
|
'no-margin': true,
|
|
237
237
|
'border-right': this.selectedDateRangeId === 'custom',
|
|
238
|
-
} }, this.dateRangeOptions.map((dateRangeOption) => (h("ix-dropdown-item", { label: dateRangeOption.label, onClick: () => this.onRangeListSelect(dateRangeOption.id), checked: this.selectedDateRangeId === dateRangeOption.id }))), h("div", { key: '
|
|
238
|
+
} }, this.dateRangeOptions.map((dateRangeOption) => (h("ix-dropdown-item", { label: dateRangeOption.label, onClick: () => this.onRangeListSelect(dateRangeOption.id), checked: this.selectedDateRangeId === dateRangeOption.id }))), h("div", { key: '61033c0bd3eb3bc860c685df0e2556bc690bf38b', hidden: !this.customRangeAllowed }, h("ix-dropdown-item", { key: '2fa55223e18a75fd65838e98a6afa4a169525c66', label: this.i18nCustomItem, checked: this.selectedDateRangeId === 'custom', onClick: () => this.onRangeListSelect('custom') })))), h("ix-col", { key: '6982ad47abe4b14bc422ea42d806752f3e33dbeb', class: "no-margin" }, this.selectedDateRangeId === 'custom' && (h(Fragment, { key: '15c3d0cc723a01cf76276ee9a6c68a0ebd179f73' }, h("ix-date-picker", { key: '68735562c72730699eefc798df37d5e860c0da24', standaloneAppearance: false, locale: this.locale, onDateChange: (e) => {
|
|
239
239
|
e.stopPropagation();
|
|
240
240
|
this.currentRangeValue = Object.assign(Object.assign({}, e.detail), { id: 'custom' });
|
|
241
241
|
this.datePickerTouched = true;
|
|
242
|
-
}, onDateRangeChange: (e) => e.stopPropagation(), format: this.format, range: this.range, from: this.from || ((_b = this.currentRangeValue) === null || _b === void 0 ? void 0 : _b.from), to: this.to || ((_c = this.currentRangeValue) === null || _c === void 0 ? void 0 : _c.to), minDate: this.minDate, maxDate: this.maxDate, today: this.today, weekStartIndex: this.weekStartIndex, showWeekNumbers: this.showWeekNumbers }), h("div", { key: '
|
|
242
|
+
}, onDateRangeChange: (e) => e.stopPropagation(), format: this.format, range: this.range, from: this.from || ((_b = this.currentRangeValue) === null || _b === void 0 ? void 0 : _b.from), to: this.to || ((_c = this.currentRangeValue) === null || _c === void 0 ? void 0 : _c.to), minDate: this.minDate, maxDate: this.maxDate, today: this.today, weekStartIndex: this.weekStartIndex, showWeekNumbers: this.showWeekNumbers }), h("div", { key: '13adf9949b7c8ed6bfb57e12e5d70f4d9760b6d4', class: "pull-right" }, h("ix-button", { key: 'bd91140d0ef61b3898fb2e55207ed7a333f0fb24', onClick: () => {
|
|
243
243
|
if (this.currentRangeValue) {
|
|
244
244
|
this.onDateSelect(this.currentRangeValue);
|
|
245
245
|
}
|
|
@@ -560,9 +560,9 @@ export class DateDropdown {
|
|
|
560
560
|
"resolved": "DateDropdownOption[]",
|
|
561
561
|
"references": {
|
|
562
562
|
"DateDropdownOption": {
|
|
563
|
-
"location": "
|
|
564
|
-
"path": "
|
|
565
|
-
"id": "src/components/date-dropdown/date-dropdown.
|
|
563
|
+
"location": "import",
|
|
564
|
+
"path": "./date-dropdown.types",
|
|
565
|
+
"id": "src/components/date-dropdown/date-dropdown.types.ts::DateDropdownOption"
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
},
|
|
@@ -722,9 +722,9 @@ export class DateDropdown {
|
|
|
722
722
|
"resolved": "{ id: string; from?: string | undefined; to?: string | undefined; }",
|
|
723
723
|
"references": {
|
|
724
724
|
"DateRangeChangeEvent": {
|
|
725
|
-
"location": "
|
|
726
|
-
"path": "
|
|
727
|
-
"id": "src/components/date-dropdown/date-dropdown.
|
|
725
|
+
"location": "import",
|
|
726
|
+
"path": "./date-dropdown.types",
|
|
727
|
+
"id": "src/components/date-dropdown/date-dropdown.types.ts::DateRangeChangeEvent"
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
}
|
|
@@ -742,9 +742,9 @@ export class DateDropdown {
|
|
|
742
742
|
"id": "global::Promise"
|
|
743
743
|
},
|
|
744
744
|
"DateRangeChangeEvent": {
|
|
745
|
-
"location": "
|
|
746
|
-
"path": "
|
|
747
|
-
"id": "src/components/date-dropdown/date-dropdown.
|
|
745
|
+
"location": "import",
|
|
746
|
+
"path": "./date-dropdown.types",
|
|
747
|
+
"id": "src/components/date-dropdown/date-dropdown.types.ts::DateRangeChangeEvent"
|
|
748
748
|
}
|
|
749
749
|
},
|
|
750
750
|
"return": "Promise<DateRangeChangeEvent>"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-dropdown.js","sourceRoot":"","sources":["../../../src/components/date-dropdown/date-dropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,QAAQ,EACR,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAoBtD,MAAM,OAAO,YAAY;IALzB;QAYE;;WAEG;QACK,aAA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AAiB,CAAC,CAAC;wCAC5C,CAAC;oCACH,CAAC,IAEA,IAAI,CAAC,QAAQ,CACJ,CACR,CACG,CACZ,CACM,CACF,CACM,CACL,CACT,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { DateTime } from 'luxon';\nimport { type LiteralStringUnion } from '../utils/type-helper';\nimport { IxDatePickerComponent } from '../date-picker/date-picker-component';\nimport { makeRef } from '../utils/make-ref';\nimport { ButtonVariant } from '../button/button';\nimport { IxButtonComponent } from '../button/button-component';\nimport { iconHistory } from '@siemens/ix-icons/icons';\n\nexport type DateDropdownOption = {\n id: string;\n label: string;\n from?: string;\n to?: string;\n};\n\nexport type DateRangeChangeEvent = {\n id: string;\n from?: string;\n to?: string;\n};\n\n@Component({\n tag: 'ix-date-dropdown',\n styleUrl: 'date-dropdown.scss',\n shadow: true,\n})\nexport class DateDropdown\n implements\n Omit<IxDatePickerComponent, 'corners'>,\n Omit<IxButtonComponent, 'type' | 'icon'>\n{\n @Element() hostElement!: HTMLIxDateDropdownElement;\n\n /**\n * Disable the button that opens the dropdown containing the date picker.\n */\n @Prop() disabled = false;\n\n /**\n * Date format string.\n * See @link https://moment.github.io/luxon/#/formatting?id=table-of-tokens for all available tokens.\n */\n @Prop() format = 'yyyy/LL/dd';\n\n /**\n * If true a range of dates can be selected.\n */\n @Prop() range = true;\n\n /**\n * Picker date. If the picker is in range mode this property is the start date.\n * If set to `null` no default start date will be pre-selected.\n *\n * Format is based on `format`\n */\n @Prop() from = '';\n\n /**\n * Picker date. If the picker is in range mode this property is the end date.\n * If the picker is not in range mode leave this value `null`\n *\n * Format is based on `format`\n */\n @Prop() to = '';\n\n /**\n * The earliest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() minDate = '';\n\n /**\n * The latest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() maxDate = '';\n\n /**\n * Used to set the initial select date range as well as the button name,\n * if not set or no according date range label is found, nothing will be selected\n */\n @Prop() dateRangeId = 'custom';\n\n /**\n * Button variant\n */\n @Prop() variant: ButtonVariant = 'primary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Shows week numbers displayed on the left side of the date picker\n *\n * @since 3.0.0\n */\n @Prop() showWeekNumbers = false;\n\n @Watch('dateRangeId')\n @Watch('to')\n @Watch('from')\n onDateRangeIdChange() {\n this.onRangeListSelect(this.dateRangeId);\n this.updateCurrentDate();\n this.setDateRangeSelection(this.dateRangeId);\n\n if (!this.currentRangeValue) {\n return;\n }\n\n this.onDateSelect({\n from: this.currentRangeValue.from,\n to: this.currentRangeValue.to,\n id: this.currentRangeValue.id,\n });\n }\n\n /**\n * Controls whether the user is allowed to pick custom date ranges in the component.\n * When set to 'true', the user can select a custom date range using the date picker.\n * When set to 'false', only predefined time date ranges are available for selection.\n */\n @Prop() customRangeAllowed = true;\n\n /**\n * An array of predefined date range options for the date picker.\n * Each option is an object with a label describing the range and a function\n * that returns the start and end dates of the range as a DateRangeOption object.\n *\n * Example format:\n * {\n * id: 'some unique id',\n * label: 'Name of the range',\n * from: undefined, to: '2023/03/29'\n * },\n * // ... other predefined date range options ...\n */\n @Prop() dateRangeOptions: DateDropdownOption[] = [];\n\n @Watch('dateRangeOptions')\n onDateRangeOptionsChange() {\n this.initialize();\n this.onDateRangeIdChange();\n }\n\n /**\n * Locale identifier (e.g. 'en' or 'de').\n */\n @Prop() locale?: string;\n\n /**\n * The index of which day to start the week on, based on the Locale#weekdays array.\n * E.g. if the locale is en-us, weekStartIndex = 1 results in starting the week on monday.\n */\n @Prop() weekStartIndex = 0;\n\n /**\n * Text for custom dropdown item. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-custom-item' }) i18nCustomItem = 'Custom...';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-done' }) i18nDone = 'Done';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-no-range' }) i18nNoRange = 'No range set';\n\n /** @internal */\n @Prop() today = DateTime.now().toISO();\n\n /**\n * EventEmitter for date range change events.\n *\n * This event is emitted when the date range changes within the component.\n * The event payload contains information about the selected date range.\n */\n @Event()\n private readonly dateRangeChange!: EventEmitter<DateRangeChangeEvent>;\n\n @State() private selectedDateRangeId: LiteralStringUnion<'custom'> = '';\n @State() private currentRangeValue?: {\n from?: string;\n to?: string;\n id: string;\n };\n private readonly triggerRef = makeRef<HTMLElement>();\n\n @Watch('disabled')\n onDisabledChange() {\n if (this.disabled) {\n this.closeDropdown();\n }\n }\n\n private datePickerTouched = false;\n\n componentWillLoad() {\n this.initialize();\n this.setDateRangeSelection(this.dateRangeId);\n }\n\n /**\n * Retrieves the currently selected date range from the component.\n * This method returns the selected date range as a `DateChangeEvent` object.\n */\n @Method()\n public async getDateRange(): Promise<DateRangeChangeEvent> {\n return this.currentRangeValue || { id: '', from: '', to: '' };\n }\n\n private initialize() {\n const isCustomRange =\n this.dateRangeId === 'custom' ||\n (!this.dateRangeId && !!this.from && !!this.to);\n\n if (isCustomRange && this.customRangeAllowed) {\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n const isValidConfiguration = !isCustomRange && !this.from;\n if (!isValidConfiguration) {\n console.warn(\n '\"from\" and \"range-date-id\" is provided this is an invalid combination. Using \"custom\".'\n );\n\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n }\n\n private updateCurrentDate() {\n this.currentRangeValue = {\n id: this.selectedDateRangeId,\n from: this.from,\n to: this.to,\n };\n }\n\n private onDateSelect(\n rangeValue: { from?: string; to?: string; id: string },\n preserveDropdown = true\n ) {\n this.dateRangeChange.emit(rangeValue);\n\n if (preserveDropdown) {\n this.closeDropdown();\n }\n\n this.datePickerTouched = false;\n }\n\n private onRangeListSelect(id: string) {\n if (this.setDateRangeSelection(id) && this.currentRangeValue) {\n this.onDateSelect(this.currentRangeValue);\n }\n }\n\n private setDateRangeSelection(id: string) {\n this.selectedDateRangeId = id;\n const option = this.dateRangeOptions.find((range) => range.id === id);\n\n if (option) {\n this.currentRangeValue = option;\n }\n\n return option;\n }\n\n private closeDropdown() {\n const dropdown = this.hostElement.shadowRoot!.querySelector('ix-dropdown');\n\n if (dropdown) {\n dropdown.show = false;\n }\n }\n\n private getButtonLabel() {\n if (this.selectedDateRangeId === 'custom' && this.currentRangeValue?.from) {\n let range = this.currentRangeValue.from;\n\n if (this.currentRangeValue.to) {\n range += ` - ${this.currentRangeValue.to}`;\n }\n\n return range;\n }\n\n if (!this.selectedDateRangeId) {\n return this.i18nNoRange;\n }\n\n if (!this.dateRangeOptions || this.dateRangeOptions?.length === 0) {\n return this.i18nNoRange;\n }\n\n const option = this.dateRangeOptions.find(\n (option) => option.id === this.selectedDateRangeId\n );\n\n if (!option) {\n console.error(\n `Cannot find range option with id ${this.selectedDateRangeId}`\n );\n return this.i18nNoRange;\n }\n\n return option.label;\n }\n\n render() {\n return (\n <Host>\n <ix-button\n data-testid=\"date-dropdown-trigger\"\n data-date-dropdown-trigger\n variant={this.variant}\n ghost={this.ghost}\n outline={this.outline}\n loading={this.loading}\n icon={iconHistory}\n ref={this.triggerRef}\n disabled={this.disabled}\n >\n {this.getButtonLabel()}\n </ix-button>\n <ix-dropdown\n data-testid=\"date-dropdown\"\n data-date-dropdown\n class=\"min-width max-height\"\n trigger={this.triggerRef.waitForCurrent()}\n closeBehavior=\"outside\"\n placement=\"bottom-start\"\n onShowChanged={({ detail: show }) => {\n if (\n !show &&\n this.selectedDateRangeId === 'custom' &&\n this.datePickerTouched &&\n this.currentRangeValue\n ) {\n this.onDateSelect(this.currentRangeValue);\n }\n }}\n >\n <ix-layout-grid noMargin>\n <ix-row>\n {this.dateRangeOptions?.length > 1 && (\n <ix-col\n class={{\n 'no-margin': true,\n 'border-right': this.selectedDateRangeId === 'custom',\n }}\n >\n {this.dateRangeOptions.map((dateRangeOption) => (\n <ix-dropdown-item\n label={dateRangeOption.label}\n onClick={() => this.onRangeListSelect(dateRangeOption.id)}\n checked={this.selectedDateRangeId === dateRangeOption.id}\n ></ix-dropdown-item>\n ))}\n <div hidden={!this.customRangeAllowed}>\n <ix-dropdown-item\n label={this.i18nCustomItem}\n checked={this.selectedDateRangeId === 'custom'}\n onClick={() => this.onRangeListSelect('custom')}\n ></ix-dropdown-item>\n </div>\n </ix-col>\n )}\n <ix-col class=\"no-margin\">\n {this.selectedDateRangeId === 'custom' && (\n <Fragment>\n <ix-date-picker\n standaloneAppearance={false}\n locale={this.locale}\n onDateChange={(e) => {\n e.stopPropagation();\n this.currentRangeValue = {\n ...e.detail,\n id: 'custom',\n };\n this.datePickerTouched = true;\n }}\n onDateRangeChange={(e) => e.stopPropagation()}\n format={this.format}\n range={this.range}\n from={this.from || this.currentRangeValue?.from}\n to={this.to || this.currentRangeValue?.to}\n minDate={this.minDate}\n maxDate={this.maxDate}\n today={this.today}\n weekStartIndex={this.weekStartIndex}\n showWeekNumbers={this.showWeekNumbers}\n ></ix-date-picker>\n <div class=\"pull-right\">\n <ix-button\n onClick={() => {\n if (this.currentRangeValue) {\n this.onDateSelect(this.currentRangeValue);\n }\n }}\n >\n {this.i18nDone}\n </ix-button>\n </div>\n </Fragment>\n )}\n </ix-col>\n </ix-row>\n </ix-layout-grid>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"date-dropdown.js","sourceRoot":"","sources":["../../../src/components/date-dropdown/date-dropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,QAAQ,EACR,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAWtD,MAAM,OAAO,YAAY;IALzB;QAYE;;WAEG;QACK,aAAQ,GAAG,KAAK,CAAC;QAEzB;;;WAGG;QACK,WAAM,GAAG,YAAY,CAAC;QAE9B;;WAEG;QACK,UAAK,GAAG,IAAI,CAAC;QAErB;;;;;WAKG;QACK,SAAI,GAAG,EAAE,CAAC;QAElB;;;;;WAKG;QACK,OAAE,GAAG,EAAE,CAAC;QAEhB;;;WAGG;QACK,YAAO,GAAG,EAAE,CAAC;QAErB;;;WAGG;QACK,YAAO,GAAG,EAAE,CAAC;Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { DateTime } from 'luxon';\nimport { type LiteralStringUnion } from '../utils/type-helper';\nimport { IxDatePickerComponent } from '../date-picker/date-picker-component';\nimport { makeRef } from '../utils/make-ref';\nimport { ButtonVariant } from '../button/button';\nimport { IxButtonComponent } from '../button/button-component';\nimport { iconHistory } from '@siemens/ix-icons/icons';\nimport type {\n DateDropdownOption,\n DateRangeChangeEvent,\n} from './date-dropdown.types';\n\n@Component({\n tag: 'ix-date-dropdown',\n styleUrl: 'date-dropdown.scss',\n shadow: true,\n})\nexport class DateDropdown\n implements\n Omit<IxDatePickerComponent, 'corners'>,\n Omit<IxButtonComponent, 'type' | 'icon'>\n{\n @Element() hostElement!: HTMLIxDateDropdownElement;\n\n /**\n * Disable the button that opens the dropdown containing the date picker.\n */\n @Prop() disabled = false;\n\n /**\n * Date format string.\n * See @link https://moment.github.io/luxon/#/formatting?id=table-of-tokens for all available tokens.\n */\n @Prop() format = 'yyyy/LL/dd';\n\n /**\n * If true a range of dates can be selected.\n */\n @Prop() range = true;\n\n /**\n * Picker date. If the picker is in range mode this property is the start date.\n * If set to `null` no default start date will be pre-selected.\n *\n * Format is based on `format`\n */\n @Prop() from = '';\n\n /**\n * Picker date. If the picker is in range mode this property is the end date.\n * If the picker is not in range mode leave this value `null`\n *\n * Format is based on `format`\n */\n @Prop() to = '';\n\n /**\n * The earliest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() minDate = '';\n\n /**\n * The latest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() maxDate = '';\n\n /**\n * Used to set the initial select date range as well as the button name,\n * if not set or no according date range label is found, nothing will be selected\n */\n @Prop() dateRangeId = 'custom';\n\n /**\n * Button variant\n */\n @Prop() variant: ButtonVariant = 'primary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Shows week numbers displayed on the left side of the date picker\n *\n * @since 3.0.0\n */\n @Prop() showWeekNumbers = false;\n\n @Watch('dateRangeId')\n @Watch('to')\n @Watch('from')\n onDateRangeIdChange() {\n this.onRangeListSelect(this.dateRangeId);\n this.updateCurrentDate();\n this.setDateRangeSelection(this.dateRangeId);\n\n if (!this.currentRangeValue) {\n return;\n }\n\n this.onDateSelect({\n from: this.currentRangeValue.from,\n to: this.currentRangeValue.to,\n id: this.currentRangeValue.id,\n });\n }\n\n /**\n * Controls whether the user is allowed to pick custom date ranges in the component.\n * When set to 'true', the user can select a custom date range using the date picker.\n * When set to 'false', only predefined time date ranges are available for selection.\n */\n @Prop() customRangeAllowed = true;\n\n /**\n * An array of predefined date range options for the date picker.\n * Each option is an object with a label describing the range and a function\n * that returns the start and end dates of the range as a DateRangeOption object.\n *\n * Example format:\n * {\n * id: 'some unique id',\n * label: 'Name of the range',\n * from: undefined, to: '2023/03/29'\n * },\n * // ... other predefined date range options ...\n */\n @Prop() dateRangeOptions: DateDropdownOption[] = [];\n\n @Watch('dateRangeOptions')\n onDateRangeOptionsChange() {\n this.initialize();\n this.onDateRangeIdChange();\n }\n\n /**\n * Locale identifier (e.g. 'en' or 'de').\n */\n @Prop() locale?: string;\n\n /**\n * The index of which day to start the week on, based on the Locale#weekdays array.\n * E.g. if the locale is en-us, weekStartIndex = 1 results in starting the week on monday.\n */\n @Prop() weekStartIndex = 0;\n\n /**\n * Text for custom dropdown item. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-custom-item' }) i18nCustomItem = 'Custom...';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-done' }) i18nDone = 'Done';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-no-range' }) i18nNoRange = 'No range set';\n\n /** @internal */\n @Prop() today = DateTime.now().toISO();\n\n /**\n * EventEmitter for date range change events.\n *\n * This event is emitted when the date range changes within the component.\n * The event payload contains information about the selected date range.\n */\n @Event()\n private readonly dateRangeChange!: EventEmitter<DateRangeChangeEvent>;\n\n @State() private selectedDateRangeId: LiteralStringUnion<'custom'> = '';\n @State() private currentRangeValue?: {\n from?: string;\n to?: string;\n id: string;\n };\n private readonly triggerRef = makeRef<HTMLElement>();\n\n @Watch('disabled')\n onDisabledChange() {\n if (this.disabled) {\n this.closeDropdown();\n }\n }\n\n private datePickerTouched = false;\n\n componentWillLoad() {\n this.initialize();\n this.setDateRangeSelection(this.dateRangeId);\n }\n\n /**\n * Retrieves the currently selected date range from the component.\n * This method returns the selected date range as a `DateChangeEvent` object.\n */\n @Method()\n public async getDateRange(): Promise<DateRangeChangeEvent> {\n return this.currentRangeValue || { id: '', from: '', to: '' };\n }\n\n private initialize() {\n const isCustomRange =\n this.dateRangeId === 'custom' ||\n (!this.dateRangeId && !!this.from && !!this.to);\n\n if (isCustomRange && this.customRangeAllowed) {\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n const isValidConfiguration = !isCustomRange && !this.from;\n if (!isValidConfiguration) {\n console.warn(\n '\"from\" and \"range-date-id\" is provided this is an invalid combination. Using \"custom\".'\n );\n\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n }\n\n private updateCurrentDate() {\n this.currentRangeValue = {\n id: this.selectedDateRangeId,\n from: this.from,\n to: this.to,\n };\n }\n\n private onDateSelect(\n rangeValue: { from?: string; to?: string; id: string },\n preserveDropdown = true\n ) {\n this.dateRangeChange.emit(rangeValue);\n\n if (preserveDropdown) {\n this.closeDropdown();\n }\n\n this.datePickerTouched = false;\n }\n\n private onRangeListSelect(id: string) {\n if (this.setDateRangeSelection(id) && this.currentRangeValue) {\n this.onDateSelect(this.currentRangeValue);\n }\n }\n\n private setDateRangeSelection(id: string) {\n this.selectedDateRangeId = id;\n const option = this.dateRangeOptions.find((range) => range.id === id);\n\n if (option) {\n this.currentRangeValue = option;\n }\n\n return option;\n }\n\n private closeDropdown() {\n const dropdown = this.hostElement.shadowRoot!.querySelector('ix-dropdown');\n\n if (dropdown) {\n dropdown.show = false;\n }\n }\n\n private getButtonLabel() {\n if (this.selectedDateRangeId === 'custom' && this.currentRangeValue?.from) {\n let range = this.currentRangeValue.from;\n\n if (this.currentRangeValue.to) {\n range += ` - ${this.currentRangeValue.to}`;\n }\n\n return range;\n }\n\n if (!this.selectedDateRangeId) {\n return this.i18nNoRange;\n }\n\n if (!this.dateRangeOptions || this.dateRangeOptions?.length === 0) {\n return this.i18nNoRange;\n }\n\n const option = this.dateRangeOptions.find(\n (option) => option.id === this.selectedDateRangeId\n );\n\n if (!option) {\n console.error(\n `Cannot find range option with id ${this.selectedDateRangeId}`\n );\n return this.i18nNoRange;\n }\n\n return option.label;\n }\n\n render() {\n return (\n <Host>\n <ix-button\n data-testid=\"date-dropdown-trigger\"\n data-date-dropdown-trigger\n variant={this.variant}\n ghost={this.ghost}\n outline={this.outline}\n loading={this.loading}\n icon={iconHistory}\n ref={this.triggerRef}\n disabled={this.disabled}\n >\n {this.getButtonLabel()}\n </ix-button>\n <ix-dropdown\n data-testid=\"date-dropdown\"\n data-date-dropdown\n class=\"min-width max-height\"\n trigger={this.triggerRef.waitForCurrent()}\n closeBehavior=\"outside\"\n placement=\"bottom-start\"\n onShowChanged={({ detail: show }) => {\n if (\n !show &&\n this.selectedDateRangeId === 'custom' &&\n this.datePickerTouched &&\n this.currentRangeValue\n ) {\n this.onDateSelect(this.currentRangeValue);\n }\n }}\n >\n <ix-layout-grid noMargin>\n <ix-row>\n {this.dateRangeOptions?.length > 1 && (\n <ix-col\n class={{\n 'no-margin': true,\n 'border-right': this.selectedDateRangeId === 'custom',\n }}\n >\n {this.dateRangeOptions.map((dateRangeOption) => (\n <ix-dropdown-item\n label={dateRangeOption.label}\n onClick={() => this.onRangeListSelect(dateRangeOption.id)}\n checked={this.selectedDateRangeId === dateRangeOption.id}\n ></ix-dropdown-item>\n ))}\n <div hidden={!this.customRangeAllowed}>\n <ix-dropdown-item\n label={this.i18nCustomItem}\n checked={this.selectedDateRangeId === 'custom'}\n onClick={() => this.onRangeListSelect('custom')}\n ></ix-dropdown-item>\n </div>\n </ix-col>\n )}\n <ix-col class=\"no-margin\">\n {this.selectedDateRangeId === 'custom' && (\n <Fragment>\n <ix-date-picker\n standaloneAppearance={false}\n locale={this.locale}\n onDateChange={(e) => {\n e.stopPropagation();\n this.currentRangeValue = {\n ...e.detail,\n id: 'custom',\n };\n this.datePickerTouched = true;\n }}\n onDateRangeChange={(e) => e.stopPropagation()}\n format={this.format}\n range={this.range}\n from={this.from || this.currentRangeValue?.from}\n to={this.to || this.currentRangeValue?.to}\n minDate={this.minDate}\n maxDate={this.maxDate}\n today={this.today}\n weekStartIndex={this.weekStartIndex}\n showWeekNumbers={this.showWeekNumbers}\n ></ix-date-picker>\n <div class=\"pull-right\">\n <ix-button\n onClick={() => {\n if (this.currentRangeValue) {\n this.onDateSelect(this.currentRangeValue);\n }\n }}\n >\n {this.i18nDone}\n </ix-button>\n </div>\n </Fragment>\n )}\n </ix-col>\n </ix-row>\n </ix-layout-grid>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-dropdown.types.js","sourceRoot":"","sources":["../../../src/components/date-dropdown/date-dropdown.types.ts"],"names":[],"mappings":"","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 */\nexport type DateDropdownOption = {\n id: string;\n label: string;\n from?: string;\n to?: string;\n};\n\nexport type DateRangeChangeEvent = {\n id: string;\n from?: string;\n to?: string;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-dropdown.ct.js","sourceRoot":"","sources":["../../../../src/components/date-dropdown/test/date-dropdown.ct.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAElD,cAAc,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IAClD,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC1D,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,cAAc,CAAC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAClD,cAAc,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,KAA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3B,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC9D,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,cAAc,CACZ,+CAA+C,EAC/C,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACxB,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtD,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;IAC3B,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC,EAA6B,EAAE,EAAE;QAC5D,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC9D,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAC3C,CAAC,CACF,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { expect } from '@playwright/test';\nimport { regressionTest } from '@utils/test';\nimport { DateTime } from 'luxon';\nimport { DateDropdownOption } from '../date-dropdown';\n\nconst DATE_DROPDOWN_SELECTOR = 'ix-date-dropdown';\n\nregressionTest('renders', async ({ mount, page }) => {\n await mount(`<ix-date-dropdown></ix-date-dropdown>`);\n const dateDropdown = page.locator(DATE_DROPDOWN_SELECTOR);\n await expect(dateDropdown).toHaveClass(/hydrated/);\n});\n\nregressionTest.describe('date dropdown tests', () => {\n regressionTest.beforeEach(async ({ mount, page }) => {\n await mount(`<ix-date-dropdown from=\"2023/11/01\"></ix-date-dropdown>`);\n\n const today = DateTime.now();\n const format = 'yyyy/LL/dd';\n const prevWeek = today.minus({\n day: 7,\n });\n\n const dateDropdown = page.locator('ix-date-dropdown');\n\n const rangeOptions: DateDropdownOption[] = [\n {\n id: 'no-time',\n label: 'No time limit',\n // TODO (IX-1870): refactor event signatures to match internal logic with undefined values\n from: undefined as any,\n to: today.toFormat(format),\n },\n {\n id: 'today',\n label: 'Today',\n from: today.toFormat(format),\n to: today.toFormat(format),\n },\n {\n id: 'last-7-days',\n label: 'Last 7 days',\n from: today\n .minus({\n day: 7,\n })\n .toFormat(format),\n to: today.toFormat(format),\n },\n {\n id: 'last-week',\n label: 'Last week',\n from: prevWeek.startOf('week').toFormat(format),\n to: prevWeek.endOf('week').toFormat(format),\n },\n {\n id: 'current-month',\n label: 'Current month',\n from: today.startOf('month').toFormat(format),\n to: today.endOf('month').toFormat(format),\n },\n ];\n\n await dateDropdown.evaluate(\n (el, [dateRangeOptions]) => {\n const elementToTest = el as HTMLIxDateDropdownElement;\n\n elementToTest.dateRangeId = 'today';\n elementToTest.customRangeAllowed = true;\n elementToTest.dateRangeOptions = dateRangeOptions;\n },\n [rangeOptions]\n );\n });\n\n regressionTest(\n 'select different date interval and get date',\n async ({ page }) => {\n const dateDropdown = page.locator('ix-date-dropdown');\n await dateDropdown.click();\n\n const intervalOptionsButton = dateDropdown.getByRole('button', {\n name: 'Last 7 days',\n });\n await intervalOptionsButton.click();\n\n const button = dateDropdown.locator('ix-button');\n await expect(button).toContainText(/Last 7 days/);\n\n const selectedDateRange = await dateDropdown.evaluate(\n (el: HTMLIxDateDropdownElement) => el.getDateRange()\n );\n const endDate = DateTime.now();\n const startDate = endDate.minus({\n day: 7,\n });\n\n expect(selectedDateRange).toStrictEqual({\n from: startDate.toFormat('yyyy/LL/dd'),\n to: endDate.toFormat('yyyy/LL/dd'),\n id: 'last-7-days',\n label: 'Last 7 days',\n });\n }\n );\n\n regressionTest(\n 'select custom date interval and get time',\n async ({ page }) => {\n const dateDropDownButton = page.locator('ix-date-dropdown');\n await dateDropDownButton.click();\n\n const dropdown = dateDropDownButton.locator('ix-dropdown');\n await expect(dropdown).toHaveClass(/show/);\n\n const customItem = dateDropDownButton.getByText('Custom...');\n await customItem.click();\n\n const datepicker = dateDropDownButton.locator('ix-date-picker');\n await expect(datepicker).toBeVisible();\n\n const startDay = datepicker\n .locator('[date-calender-day]')\n .getByText('3', { exact: true });\n const endDay = datepicker\n .locator('[date-calender-day]')\n .getByText('11', { exact: true });\n\n await startDay.click();\n await endDay.click();\n\n const dateDoneButton = dateDropDownButton.getByRole('button', {\n name: 'Done',\n });\n\n await dateDoneButton.click();\n await expect(datepicker).not.toBeVisible();\n\n const button = dateDropDownButton.locator('[data-date-dropdown-trigger]');\n await expect(button).toHaveText(/2023\\/11\\/03 \\- 2023\\/11\\/11/);\n }\n );\n\n regressionTest(\n 'check if dateRangeChange event is fired',\n async ({ page }) => {\n const today = DateTime.now();\n const format = 'yyyy/LL/dd';\n\n const dateDropdown = page.locator('ix-date-dropdown');\n await expect(dateDropdown).toHaveClass(/hydrated/);\n\n const eventPromise = dateDropdown.evaluate((e) => {\n return new Promise<any>((resolve) => {\n e.addEventListener('dateRangeChange', (event: any) =>\n // Using JSON.stringify to deserialize js object between chrome instance and test\n resolve(JSON.stringify(event.detail))\n );\n });\n });\n\n await dateDropdown.click();\n const intervalOptionsButton = page.locator(\n 'ix-dropdown-item div.dropdown-item-text:has-text(\"Last 7 days\")'\n );\n await intervalOptionsButton.click();\n\n const dateRangeChangeEvent = await eventPromise;\n expect(JSON.parse(dateRangeChangeEvent)).toStrictEqual({\n from: today\n .minus({\n day: 7,\n })\n .toFormat(format),\n to: today.toFormat(format),\n id: 'last-7-days',\n label: 'Last 7 days',\n });\n }\n );\n\n regressionTest('check initial date', async ({ page }) => {\n const dateDropDownButton = page.locator(DATE_DROPDOWN_SELECTOR);\n await expect(dateDropDownButton).toHaveClass(/hydrated/);\n\n const initialSetDate = await dateDropDownButton.evaluate(\n (el: HTMLIxDateDropdownElement) => el.getDateRange()\n );\n\n const endDate = DateTime.now();\n const startDate = endDate;\n\n expect(initialSetDate).toEqual({\n from: startDate.toFormat('yyyy/LL/dd'),\n to: endDate.toFormat('yyyy/LL/dd'),\n id: 'today',\n label: 'Today',\n });\n });\n});\n\nregressionTest('set date from a button', async ({ mount, page }) => {\n await mount(\n `<ix-date-dropdown from=\"2024/02/16\"></ix-date-dropdown><ix-button id=\"set-tomorrow\"></ix-button>`\n );\n const dateDropdown = page.locator(DATE_DROPDOWN_SELECTOR);\n const setButton = page.locator('#set-tomorrow');\n await expect(dateDropdown).toHaveClass(/hydrated/);\n\n await setButton.click();\n\n await dateDropdown.evaluate((el: HTMLIxDateDropdownElement) => {\n el.from = '2024/02/17';\n el.to = '2024/02/27';\n return el.getDateRange();\n });\n const button = dateDropdown.locator('[data-date-dropdown-trigger]');\n await expect(button).toHaveText(/2024\\/02\\/17 \\- 2024\\/02\\/27/);\n});\n\nregressionTest('select different year', async ({ mount, page }) => {\n await mount(`<ix-date-dropdown from=\"2024/02/16\"></ix-date-dropdown>`);\n const dateDropdown = page.locator(DATE_DROPDOWN_SELECTOR);\n\n await expect(dateDropdown).toHaveClass(/hydrated/);\n await expect(dateDropdown).toBeVisible();\n\n const dateDropdownTrigger = dateDropdown.getByTestId('date-dropdown-trigger');\n await dateDropdownTrigger.click();\n await expect(dateDropdownTrigger).toBeVisible();\n\n const datePickerDropdown = dateDropdown.getByTestId('date-dropdown');\n await expect(datePickerDropdown).toBeVisible();\n\n const datepicker = datePickerDropdown.locator('ix-date-picker');\n const yearMonthButton = datepicker.getByTestId('year-month-button');\n await yearMonthButton.click();\n\n const yearMonthDropdown = datepicker.getByTestId('year-month-dropdown');\n await expect(yearMonthDropdown).toBeVisible();\n\n const yearContainer = yearMonthDropdown.getByTestId('year-container');\n const year2020 = yearContainer.getByText('2020');\n\n await year2020.click();\n\n const monthContainer = yearMonthDropdown.getByTestId('month-container');\n const march2020 = monthContainer.getByText('March 2020');\n\n await march2020.click();\n\n await expect(yearMonthDropdown).not.toBeVisible();\n await expect(yearMonthButton).toHaveText('March 2020');\n});\n\nregressionTest('disable', async ({ mount, page }) => {\n await mount(`<ix-date-dropdown disabled></ix-date-dropdown>`);\n const dateDropdown = page.locator('ix-date-dropdown');\n\n const trigger = page.locator('[data-date-dropdown-trigger]');\n await expect(trigger).toHaveAttribute('disabled');\n\n await dateDropdown.click();\n\n const dropdown = dateDropdown.locator('[data-date-dropdown]');\n await expect(dropdown).not.toBeVisible();\n});\n\nregressionTest(\n 'close dropdown after disabled property = true',\n async ({ mount, page }) => {\n await mount(`<ix-date-dropdown></ix-date-dropdown>`);\n const dateDropdown = page.locator('ix-date-dropdown');\n await dateDropdown.click();\n await dateDropdown.evaluate((dd: HTMLIxDateDropdownElement) => {\n dd.disabled = true;\n });\n const dropdown = dateDropdown.locator('[data-date-dropdown]');\n await expect(dropdown).not.toBeVisible();\n }\n);\n"]}
|
|
1
|
+
{"version":3,"file":"date-dropdown.ct.js","sourceRoot":"","sources":["../../../../src/components/date-dropdown/test/date-dropdown.ct.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAElD,cAAc,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IAClD,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC1D,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,cAAc,CAAC,QAAQ,CAAC,qBAAqB,EAAE,G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AAU,CAAC,CAAC;IAElD,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;IAE3B,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC9D,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,cAAc,CACZ,+CAA+C,EAC/C,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACxB,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtD,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;IAC3B,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC,EAA6B,EAAE,EAAE;QAC5D,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC9D,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAC3C,CAAC,CACF,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { expect } from '@playwright/test';\nimport { regressionTest } from '@utils/test';\nimport { DateTime } from 'luxon';\nimport { DateDropdownOption } from '../date-dropdown.types';\n\nconst DATE_DROPDOWN_SELECTOR = 'ix-date-dropdown';\n\nregressionTest('renders', async ({ mount, page }) => {\n await mount(`<ix-date-dropdown></ix-date-dropdown>`);\n const dateDropdown = page.locator(DATE_DROPDOWN_SELECTOR);\n await expect(dateDropdown).toHaveClass(/hydrated/);\n});\n\nregressionTest.describe('date dropdown tests', () => {\n regressionTest.beforeEach(async ({ mount, page }) => {\n await mount(`<ix-date-dropdown from=\"2023/11/01\"></ix-date-dropdown>`);\n\n const today = DateTime.now();\n const format = 'yyyy/LL/dd';\n const prevWeek = today.minus({\n day: 7,\n });\n\n const dateDropdown = page.locator('ix-date-dropdown');\n\n const rangeOptions: DateDropdownOption[] = [\n {\n id: 'no-time',\n label: 'No time limit',\n // TODO (IX-1870): refactor event signatures to match internal logic with undefined values\n from: undefined as any,\n to: today.toFormat(format),\n },\n {\n id: 'today',\n label: 'Today',\n from: today.toFormat(format),\n to: today.toFormat(format),\n },\n {\n id: 'last-7-days',\n label: 'Last 7 days',\n from: today\n .minus({\n day: 7,\n })\n .toFormat(format),\n to: today.toFormat(format),\n },\n {\n id: 'last-week',\n label: 'Last week',\n from: prevWeek.startOf('week').toFormat(format),\n to: prevWeek.endOf('week').toFormat(format),\n },\n {\n id: 'current-month',\n label: 'Current month',\n from: today.startOf('month').toFormat(format),\n to: today.endOf('month').toFormat(format),\n },\n ];\n\n await dateDropdown.evaluate(\n (el, [dateRangeOptions]) => {\n const elementToTest = el as HTMLIxDateDropdownElement;\n\n elementToTest.dateRangeId = 'today';\n elementToTest.customRangeAllowed = true;\n elementToTest.dateRangeOptions = dateRangeOptions;\n },\n [rangeOptions]\n );\n });\n\n regressionTest(\n 'select different date interval and get date',\n async ({ page }) => {\n const dateDropdown = page.locator('ix-date-dropdown');\n await dateDropdown.click();\n\n const intervalOptionsButton = dateDropdown.getByRole('button', {\n name: 'Last 7 days',\n });\n await intervalOptionsButton.click();\n\n const button = dateDropdown.locator('ix-button');\n await expect(button).toContainText(/Last 7 days/);\n\n const selectedDateRange = await dateDropdown.evaluate(\n (el: HTMLIxDateDropdownElement) => el.getDateRange()\n );\n const endDate = DateTime.now();\n const startDate = endDate.minus({\n day: 7,\n });\n\n expect(selectedDateRange).toStrictEqual({\n from: startDate.toFormat('yyyy/LL/dd'),\n to: endDate.toFormat('yyyy/LL/dd'),\n id: 'last-7-days',\n label: 'Last 7 days',\n });\n }\n );\n\n regressionTest(\n 'select custom date interval and get time',\n async ({ page }) => {\n const dateDropDownButton = page.locator('ix-date-dropdown');\n await dateDropDownButton.click();\n\n const dropdown = dateDropDownButton.locator('ix-dropdown');\n await expect(dropdown).toHaveClass(/show/);\n\n const customItem = dateDropDownButton.getByText('Custom...');\n await customItem.click();\n\n const datepicker = dateDropDownButton.locator('ix-date-picker');\n await expect(datepicker).toBeVisible();\n\n const startDay = datepicker\n .locator('[date-calender-day]')\n .getByText('3', { exact: true });\n const endDay = datepicker\n .locator('[date-calender-day]')\n .getByText('11', { exact: true });\n\n await startDay.click();\n await endDay.click();\n\n const dateDoneButton = dateDropDownButton.getByRole('button', {\n name: 'Done',\n });\n\n await dateDoneButton.click();\n await expect(datepicker).not.toBeVisible();\n\n const button = dateDropDownButton.locator('[data-date-dropdown-trigger]');\n await expect(button).toHaveText(/2023\\/11\\/03 \\- 2023\\/11\\/11/);\n }\n );\n\n regressionTest(\n 'check if dateRangeChange event is fired',\n async ({ page }) => {\n const today = DateTime.now();\n const format = 'yyyy/LL/dd';\n\n const dateDropdown = page.locator('ix-date-dropdown');\n await expect(dateDropdown).toHaveClass(/hydrated/);\n\n const eventPromise = dateDropdown.evaluate((e) => {\n return new Promise<any>((resolve) => {\n e.addEventListener('dateRangeChange', (event: any) =>\n // Using JSON.stringify to deserialize js object between chrome instance and test\n resolve(JSON.stringify(event.detail))\n );\n });\n });\n\n await dateDropdown.click();\n const intervalOptionsButton = page.locator(\n 'ix-dropdown-item div.dropdown-item-text:has-text(\"Last 7 days\")'\n );\n await intervalOptionsButton.click();\n\n const dateRangeChangeEvent = await eventPromise;\n expect(JSON.parse(dateRangeChangeEvent)).toStrictEqual({\n from: today\n .minus({\n day: 7,\n })\n .toFormat(format),\n to: today.toFormat(format),\n id: 'last-7-days',\n label: 'Last 7 days',\n });\n }\n );\n\n regressionTest('check initial date', async ({ page }) => {\n const dateDropDownButton = page.locator(DATE_DROPDOWN_SELECTOR);\n await expect(dateDropDownButton).toHaveClass(/hydrated/);\n\n const initialSetDate = await dateDropDownButton.evaluate(\n (el: HTMLIxDateDropdownElement) => el.getDateRange()\n );\n\n const endDate = DateTime.now();\n const startDate = endDate;\n\n expect(initialSetDate).toEqual({\n from: startDate.toFormat('yyyy/LL/dd'),\n to: endDate.toFormat('yyyy/LL/dd'),\n id: 'today',\n label: 'Today',\n });\n });\n});\n\nregressionTest('set date from a button', async ({ mount, page }) => {\n await mount(\n `<ix-date-dropdown from=\"2024/02/16\"></ix-date-dropdown><ix-button id=\"set-tomorrow\"></ix-button>`\n );\n const dateDropdown = page.locator(DATE_DROPDOWN_SELECTOR);\n const setButton = page.locator('#set-tomorrow');\n await expect(dateDropdown).toHaveClass(/hydrated/);\n\n await setButton.click();\n\n await dateDropdown.evaluate((el: HTMLIxDateDropdownElement) => {\n el.from = '2024/02/17';\n el.to = '2024/02/27';\n return el.getDateRange();\n });\n const button = dateDropdown.locator('[data-date-dropdown-trigger]');\n await expect(button).toHaveText(/2024\\/02\\/17 \\- 2024\\/02\\/27/);\n});\n\nregressionTest('select different year', async ({ mount, page }) => {\n await mount(`<ix-date-dropdown from=\"2024/02/16\"></ix-date-dropdown>`);\n const dateDropdown = page.locator(DATE_DROPDOWN_SELECTOR);\n\n await expect(dateDropdown).toHaveClass(/hydrated/);\n await expect(dateDropdown).toBeVisible();\n\n const dateDropdownTrigger = dateDropdown.getByTestId('date-dropdown-trigger');\n await dateDropdownTrigger.click();\n await expect(dateDropdownTrigger).toBeVisible();\n\n const datePickerDropdown = dateDropdown.getByTestId('date-dropdown');\n await expect(datePickerDropdown).toBeVisible();\n\n const datepicker = datePickerDropdown.locator('ix-date-picker');\n const yearMonthButton = datepicker.getByTestId('year-month-button');\n await yearMonthButton.click();\n\n const yearMonthDropdown = datepicker.getByTestId('year-month-dropdown');\n await expect(yearMonthDropdown).toBeVisible();\n\n const yearContainer = yearMonthDropdown.getByTestId('year-container');\n const year2020 = yearContainer.getByText('2020');\n\n await year2020.click();\n\n const monthContainer = yearMonthDropdown.getByTestId('month-container');\n const march2020 = monthContainer.getByText('March 2020');\n\n await march2020.click();\n\n await expect(yearMonthDropdown).not.toBeVisible();\n await expect(yearMonthButton).toHaveText('March 2020');\n});\n\nregressionTest('disable', async ({ mount, page }) => {\n await mount(`<ix-date-dropdown disabled></ix-date-dropdown>`);\n const dateDropdown = page.locator('ix-date-dropdown');\n\n const trigger = page.locator('[data-date-dropdown-trigger]');\n await expect(trigger).toHaveAttribute('disabled');\n\n await dateDropdown.click();\n\n const dropdown = dateDropdown.locator('[data-date-dropdown]');\n await expect(dropdown).not.toBeVisible();\n});\n\nregressionTest(\n 'close dropdown after disabled property = true',\n async ({ mount, page }) => {\n await mount(`<ix-date-dropdown></ix-date-dropdown>`);\n const dateDropdown = page.locator('ix-date-dropdown');\n await dateDropdown.click();\n await dateDropdown.evaluate((dd: HTMLIxDateDropdownElement) => {\n dd.disabled = true;\n });\n const dropdown = dateDropdown.locator('[data-date-dropdown]');\n await expect(dropdown).not.toBeVisible();\n }\n);\n"]}
|
|
@@ -250,12 +250,12 @@ export class DateInput {
|
|
|
250
250
|
const invalidText = this.isInputInvalid
|
|
251
251
|
? this.i18nErrorDateUnparsable
|
|
252
252
|
: this.invalidText;
|
|
253
|
-
return (h(Host, { key: '
|
|
253
|
+
return (h(Host, { key: '3d8a56705953daf2370e56fe4333f31f208ea037', class: {
|
|
254
254
|
disabled: this.disabled,
|
|
255
255
|
readonly: this.readonly,
|
|
256
|
-
} }, h("ix-field-wrapper", { key: '
|
|
256
|
+
} }, h("ix-field-wrapper", { key: 'a99de3a8c8448b7c807c4fd85bc23431824e8f2f', label: this.label, helperText: this.helperText, isInvalid: this.isInvalid, invalidText: invalidText, infoText: this.infoText, isInfo: this.isInfo, isWarning: this.isWarning, warningText: this.warningText, isValid: this.isValid, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, required: this.required, controlRef: this.inputElementRef }, this.renderInput()), h("ix-dropdown", { key: '738258763d741f101a88c6a475e7a243ed5f7cb0', "data-testid": "date-dropdown", trigger: this.inputElementRef.waitForCurrent(), ref: this.dropdownElementRef, closeBehavior: "outside", suppressOverflowBehavior: true, show: this.show, onShowChanged: (event) => {
|
|
257
257
|
this.show = event.detail;
|
|
258
|
-
} }, h("ix-date-picker", { key: '
|
|
258
|
+
} }, h("ix-date-picker", { key: 'f155eced9d35eac1cfcca130356c48fa4edcde7a', ref: this.datepickerRef, format: this.format, locale: this.locale, range: false, from: (_a = this.from) !== null && _a !== void 0 ? _a : '', onDateChange: (event) => {
|
|
259
259
|
const { from } = event.detail;
|
|
260
260
|
this.onInput(from);
|
|
261
261
|
}, showWeekNumbers: this.showWeekNumbers }))));
|
|
@@ -652,9 +652,9 @@ export class DateInput {
|
|
|
652
652
|
"resolved": "{ patternMismatch: boolean; invalidReason?: string | undefined; }",
|
|
653
653
|
"references": {
|
|
654
654
|
"DateInputValidityState": {
|
|
655
|
-
"location": "
|
|
656
|
-
"path": "
|
|
657
|
-
"id": "src/components/date-input/date-input.
|
|
655
|
+
"location": "import",
|
|
656
|
+
"path": "./date-input.types",
|
|
657
|
+
"id": "src/components/date-input/date-input.types.ts::DateInputValidityState"
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
}
|