@siemens/ix 4.4.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/READMEOSS.html +24 -10
- package/components/index.js +1 -1
- package/components/ix-action-card.js +1 -1
- package/components/ix-application-header.js +1 -1
- package/components/ix-application-switch-modal.js +1 -1
- package/components/ix-application.js +1 -1
- package/components/ix-avatar.js +1 -1
- package/components/ix-blind.js +1 -1
- package/components/ix-breadcrumb-item.js +1 -1
- package/components/ix-breadcrumb.js +1 -1
- 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 +1 -1
- package/components/ix-card-title.js +1 -1
- package/components/ix-card.js +1 -1
- package/components/ix-category-filter.js +1 -1
- package/components/ix-checkbox-group.js +1 -1
- package/components/ix-checkbox.js +1 -1
- package/components/ix-chip.js +1 -1
- package/components/ix-col.js +1 -1
- package/components/ix-content-header.js +1 -1
- package/components/ix-content.js +1 -1
- package/components/ix-css-grid-item.js +1 -1
- package/components/ix-css-grid.js +1 -1
- package/components/ix-custom-field.js +1 -1
- package/components/ix-date-dropdown.js +1 -1
- package/components/ix-date-input.js +1 -1
- package/components/ix-date-picker.js +1 -1
- package/components/ix-date-time-card.js +1 -1
- package/components/{ix-validation-tooltip.d.ts → ix-datetime-input.d.ts} +4 -4
- package/components/ix-datetime-input.js +1 -0
- package/components/ix-datetime-picker.js +1 -1
- package/components/ix-divider.js +1 -1
- package/components/ix-dropdown-button.js +1 -1
- package/components/ix-dropdown-header.js +1 -1
- package/components/ix-dropdown-item.js +1 -1
- package/components/ix-dropdown-quick-actions.js +1 -1
- package/components/ix-dropdown.js +1 -1
- package/components/ix-empty-state.js +1 -1
- package/components/ix-event-list-item.js +1 -1
- package/components/ix-event-list.js +1 -1
- package/components/ix-expanding-search.js +1 -1
- package/components/ix-field-label.js +1 -1
- package/components/ix-field-wrapper.js +1 -1
- package/components/ix-filter-chip.js +1 -1
- package/components/ix-flip-tile-content.js +1 -1
- package/components/ix-flip-tile.js +1 -1
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group-item.js +1 -1
- package/components/ix-group.js +1 -1
- package/components/ix-helper-text.js +1 -1
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +1 -1
- package/components/ix-input.js +1 -1
- package/components/ix-key-value-list.js +1 -1
- package/components/ix-key-value.js +1 -1
- package/components/ix-kpi.js +1 -1
- package/components/ix-layout-auto.js +1 -1
- package/components/ix-layout-grid.js +1 -1
- package/components/ix-link-button.js +1 -1
- package/components/ix-menu-about-item.js +1 -1
- package/components/ix-menu-about-news.js +1 -1
- package/components/ix-menu-about.js +1 -1
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +1 -1
- package/components/ix-menu-category.js +1 -1
- package/components/ix-menu-expand-icon.js +1 -1
- package/components/ix-menu-item.js +1 -1
- package/components/ix-menu-settings-item.js +1 -1
- package/components/ix-menu-settings.js +1 -1
- package/components/ix-menu.js +1 -1
- package/components/ix-message-bar.js +1 -1
- package/components/ix-modal-content.js +1 -1
- package/components/ix-modal-footer.js +1 -1
- package/components/ix-modal-header.js +1 -1
- package/components/ix-modal-loading.js +1 -1
- package/components/ix-modal.js +1 -1
- package/components/ix-number-input.js +1 -1
- package/components/ix-pagination.js +1 -1
- package/components/ix-pane-layout.js +1 -1
- package/components/ix-pane.js +1 -1
- package/components/ix-pill.js +1 -1
- package/components/ix-progress-indicator.js +1 -1
- package/components/ix-push-card.js +1 -1
- package/components/ix-radio-group.js +1 -1
- package/components/ix-radio.js +1 -1
- package/components/{ix-input-group.d.ts → ix-range-field.d.ts} +4 -4
- package/components/ix-range-field.js +1 -0
- 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 +1 -1
- package/components/ix-spinner.js +1 -1
- package/components/ix-split-button.js +1 -1
- package/components/ix-tab-item.js +1 -1
- package/components/{ix-application-sidebar.d.ts → ix-tab-panel.d.ts} +4 -4
- package/components/ix-tab-panel.js +1 -0
- package/components/{ix-drawer.d.ts → ix-tab-set.d.ts} +4 -4
- package/components/ix-tab-set.js +1 -0
- package/components/ix-tabs.js +1 -1
- package/components/ix-textarea.js +1 -1
- package/components/ix-tile.js +1 -1
- package/components/ix-time-input.js +1 -1
- package/components/ix-time-picker.js +1 -1
- package/components/ix-toast-container.js +1 -1
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle-button.js +1 -1
- package/components/ix-toggle.js +1 -1
- package/components/ix-tooltip.js +1 -1
- package/components/ix-tree-item.js +1 -1
- package/components/ix-tree.js +1 -1
- package/components/ix-typography.js +1 -1
- package/components/ix-upload.js +1 -1
- package/components/ix-workflow-step.js +1 -1
- package/components/ix-workflow-steps.js +1 -1
- package/components/p-4pTtJwcY.js +1 -0
- package/components/p-546lBshK.js +1 -0
- package/components/p-5jph302v.js +1 -0
- package/components/p-B1ZcjHve.js +1 -0
- package/components/{p-CRcg3Wl9.js → p-B1q6Xh9M.js} +1 -1
- package/components/p-B4Yxzuow.js +1 -0
- package/components/p-B5k8YVR0.js +1 -0
- package/components/p-B8RlWbEh.js +1 -0
- package/components/p-BE4QI9tD.js +1 -0
- package/components/p-BL9SR36X.js +1 -0
- package/components/p-BP8g-yqY.js +1 -0
- package/components/p-B_czElDE.js +1 -0
- package/components/p-BcxPyyrm.js +1 -0
- package/components/p-BooU9e46.js +1 -0
- package/components/p-Btv5ReUJ.js +1 -0
- package/components/p-BtvsjuLo.js +1 -0
- package/components/p-BwC_Hmai.js +1 -0
- package/components/p-Bxdy-8CE.js +1 -0
- package/components/p-Bxrgt3H_.js +1 -0
- package/components/p-By6x--zJ.js +1 -0
- package/components/p-Byed_Z2G.js +1 -0
- package/components/p-C-wf4kbs.js +1 -0
- package/components/p-C95SE6lT.js +1 -0
- package/components/p-C9HBQRMb.js +1 -0
- package/components/p-CDKHgTB8.js +1 -0
- package/components/p-CJ3dR7zd.js +1 -0
- package/components/p-CKYjdhXo.js +1 -0
- package/components/p-CQj_gEvY.js +1 -0
- package/components/p-CVmLf9WY.js +1 -0
- package/components/p-CWlPNXA-.js +1 -0
- package/components/p-CWshStHZ.js +1 -0
- package/components/p-CYgb41KQ.js +1 -0
- package/components/p-C_95k0nq.js +1 -0
- package/components/p-CcllZcv2.js +1 -0
- package/components/p-Cf71L4Ol.js +1 -0
- package/components/p-CgOv_MV_.js +1 -0
- package/components/p-CsP_r-y6.js +1 -0
- package/components/p-CuswfnZ5.js +1 -0
- package/components/p-D4RWuUBi.js +1 -0
- package/components/p-D4T7_gkf.js +1 -0
- package/components/p-D5gbubPJ.js +1 -0
- package/components/{p-DSTYytot.js → p-D5rshXh5.js} +1 -1
- package/components/p-D6Wm2E-0.js +1 -0
- package/components/p-D8Wb4thH.js +1 -0
- package/components/p-DN2Mr91y.js +1 -0
- package/components/p-DNIQ2C1K.js +1 -0
- package/components/p-DOCAISxs.js +1 -0
- package/components/p-DQql_9wo.js +1 -0
- package/components/p-DRw2l8Az.js +1 -0
- package/components/p-DSpVcflZ.js +1 -0
- package/components/p-DTcUamMt.js +1 -0
- package/components/p-DUkuP1OH.js +1 -0
- package/components/p-DdMuwGlF.js +1 -0
- package/components/p-DfnCSsMy.js +1 -0
- package/components/p-Djkc69iv.js +1 -0
- package/components/p-Dpk_WgCl.js +1 -0
- package/components/p-DuTDx0c-.js +1 -0
- package/components/p-Dx6rQdpk.js +1 -0
- package/components/p-Dx8kFukG.js +1 -0
- package/components/p-JXbYOM9q.js +1 -0
- package/components/p-JevOq-9X.js +1 -0
- package/components/p-MZOpritx.js +1 -0
- package/components/p-NLlCSNeG.js +1 -0
- package/components/p-VEcjhpT4.js +1 -0
- package/components/p-W0q0WVKl.js +1 -0
- package/components/p-XBJqkmoc.js +1 -0
- package/components/p-XBTykBKS.js +1 -0
- package/components/{p-BJxTLVYT.js → p-_Uc7YwjU.js} +1 -1
- package/components/p-qsIASuyM.js +1 -0
- package/components/p-uIG84RqI.js +1 -0
- package/components/p-wEbi9beJ.js +1 -0
- package/components/p-zs7a2E3b.js +1 -0
- package/components/package.json +1 -1
- package/dist/cjs/{a11y-DldCLr8D.js → a11y-C_6YiIMa.js} +1 -2
- package/dist/cjs/animation-hxDbANsw.js +81 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/aria-activedescendant.mixin-_lb0Xz2S.js +85 -0
- package/dist/cjs/{base-button-BvWcXXIH.js → base-button-C-1izOSS.js} +14 -10
- package/dist/cjs/{base-icon-button-DgnV_-qM.js → base-icon-button-BeXf6v9s.js} +3 -3
- package/dist/cjs/component-CYtonfpw.js +143 -0
- package/dist/cjs/{context-CmNuiaNz.js → context-DqdXbKw_.js} +5 -2
- package/dist/cjs/{dropdown-controller-BLOjtc6w.js → dropdown-controller-DeBeUVhj.js} +12 -9
- package/dist/cjs/{floating-ui.dom-CMzYsRR7.js → find-element-DPxOAdgO.js} +101 -0
- package/dist/cjs/focus-proxy-BCuVbpDb.js +48 -0
- package/dist/cjs/focus-trap-_cyPFvFq.js +106 -0
- package/dist/cjs/focus-utilities-yx7wWjEO.js +119 -0
- package/dist/cjs/focus-visible.mixin-BU5Ql7d1.js +42 -0
- package/dist/cjs/{helper-text-util-CX9jWl8m.js → helper-text-util-CvfY1JxE.js} +26 -8
- package/dist/cjs/id.mixin-DINDQztK.js +21 -0
- package/dist/cjs/index-B4J4JK0P.js +17 -0
- package/dist/cjs/{index-Dxeom0qd.js → index-BKQkUbyE.js} +529 -126
- package/dist/cjs/{index-DIYO-Liy.js → index-Dw-NwUuT.js} +2 -4
- package/dist/cjs/{index-BxmN3RtX.js → index-SVeYVn-h.js} +1 -2
- package/dist/cjs/index.cjs.js +266 -47
- package/dist/cjs/inherit-aria-attributes.mixin-Sl7J-OlO.js +36 -0
- package/dist/cjs/{picker-input.util-DJNAVluZ.js → input-picker.mixin-EoIayQV9.js} +25 -1
- package/dist/cjs/{input.fc-BIQRswZt.js → input.fc-CsACCdp7.js} +15 -17
- package/dist/cjs/ix-action-card.cjs.entry.js +39 -19
- package/dist/cjs/ix-application-header.cjs.entry.js +126 -69
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +9 -13
- package/dist/cjs/ix-application.cjs.entry.js +46 -34
- package/dist/cjs/ix-avatar_2.cjs.entry.js +126 -22
- package/dist/cjs/ix-blind.cjs.entry.js +37 -23
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +234 -43
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +85 -68
- package/dist/cjs/ix-button.cjs.entry.js +227 -40
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +30 -19
- package/dist/cjs/ix-card-list.cjs.entry.js +104 -54
- package/dist/cjs/ix-card_2.cjs.entry.js +17 -17
- package/dist/cjs/ix-category-filter.cjs.entry.js +180 -111
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +52 -27
- package/dist/cjs/ix-checkbox.cjs.entry.js +58 -37
- package/dist/cjs/ix-chip.cjs.entry.js +317 -81
- package/dist/cjs/ix-col_4.cjs.entry.js +1109 -495
- package/dist/cjs/ix-content-header.cjs.entry.js +25 -17
- package/dist/cjs/ix-content.cjs.entry.js +7 -7
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +6 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js +13 -5
- package/dist/cjs/ix-custom-field.cjs.entry.js +41 -12
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +170 -145
- package/dist/cjs/ix-date-input.cjs.entry.js +212 -125
- package/dist/cjs/ix-date-picker.cjs.entry.js +752 -0
- package/dist/cjs/ix-date-time-card.cjs.entry.js +25 -18
- package/dist/cjs/ix-datetime-input.cjs.entry.js +548 -0
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +242 -58
- package/dist/cjs/ix-divider.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +155 -38
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +6 -2
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +992 -0
- package/dist/cjs/ix-empty-state.cjs.entry.js +32 -6
- package/dist/cjs/ix-event-list-item.cjs.entry.js +38 -27
- package/dist/cjs/ix-event-list.cjs.entry.js +26 -26
- package/dist/cjs/ix-expanding-search.cjs.entry.js +58 -44
- package/dist/cjs/ix-field-label_2.cjs.entry.js +178 -56
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +85 -37
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +8 -8
- package/dist/cjs/ix-flip-tile.cjs.entry.js +43 -30
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +51 -27
- package/dist/cjs/ix-group.cjs.entry.js +63 -40
- package/dist/cjs/ix-helper-text.cjs.entry.js +43 -16
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +232 -52
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +221 -45
- package/dist/cjs/ix-input.cjs.entry.js +128 -56
- package/dist/cjs/ix-key-value-list.cjs.entry.js +6 -6
- package/dist/cjs/ix-key-value.cjs.entry.js +24 -6
- package/dist/cjs/ix-kpi.cjs.entry.js +37 -13
- package/dist/cjs/ix-layout-auto.cjs.entry.js +15 -15
- package/dist/cjs/ix-link-button.cjs.entry.js +19 -15
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +13 -6
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +45 -18
- package/dist/cjs/ix-menu-about.cjs.entry.js +72 -28
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +62 -31
- package/dist/cjs/ix-menu-category.cjs.entry.js +157 -74
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +24 -24
- package/dist/cjs/ix-menu-item.cjs.entry.js +100 -51
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +13 -6
- package/dist/cjs/ix-menu-settings.cjs.entry.js +87 -4
- package/dist/cjs/ix-menu.cjs.entry.js +123 -136
- package/dist/cjs/ix-message-bar.cjs.entry.js +33 -22
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +36 -17
- 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 +98 -61
- package/dist/cjs/ix-number-input.cjs.entry.js +211 -131
- package/dist/cjs/ix-pagination.cjs.entry.js +108 -89
- package/dist/cjs/ix-pane-layout.cjs.entry.js +26 -27
- package/dist/cjs/ix-pane.cjs.entry.js +114 -82
- package/dist/cjs/ix-pill_4.cjs.entry.js +746 -0
- package/dist/cjs/ix-progress-indicator.cjs.entry.js +48 -40
- package/dist/cjs/ix-push-card.cjs.entry.js +36 -15
- package/dist/cjs/ix-radio-group.cjs.entry.js +63 -26
- package/dist/cjs/ix-radio.cjs.entry.js +51 -25
- package/dist/cjs/ix-range-field.cjs.entry.js +122 -0
- package/dist/cjs/ix-select.cjs.entry.js +398 -373
- package/dist/cjs/ix-slider.cjs.entry.js +108 -68
- package/dist/cjs/ix-split-button.cjs.entry.js +118 -48
- package/dist/cjs/ix-tab-panel.cjs.entry.js +30 -0
- package/dist/cjs/ix-textarea.cjs.entry.js +135 -48
- package/dist/cjs/ix-tile.cjs.entry.js +12 -12
- package/dist/cjs/ix-time-input.cjs.entry.js +298 -152
- package/dist/cjs/ix-toast-container.cjs.entry.js +14 -54
- package/dist/cjs/ix-toast.cjs.entry.js +47 -31
- package/dist/cjs/ix-toggle-button.cjs.entry.js +200 -27
- package/dist/cjs/ix-toggle.cjs.entry.js +244 -48
- package/dist/cjs/ix-tooltip.cjs.entry.js +76 -52
- package/dist/cjs/ix-tree-item.cjs.entry.js +50 -16
- package/dist/cjs/ix-tree.cjs.entry.js +101 -45
- package/dist/cjs/ix-typography.cjs.entry.js +19 -12
- package/dist/cjs/ix-upload.cjs.entry.js +80 -76
- package/dist/cjs/ix-workflow-step.cjs.entry.js +39 -34
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +20 -15
- package/dist/cjs/{listener-BShKJBRB.js → listener-BafrcTaM.js} +7 -6
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{logical-filter-operator-q-2KOPJs.js → logical-filter-operator-Dv9-d8FB.js} +2 -0
- package/dist/cjs/luxon-datetime-format-masks-DQVILoY7.js +43 -0
- package/dist/cjs/{make-ref-BaH6_YJk.js → make-ref-CHsa3FY7.js} +6 -2
- package/dist/cjs/menu-service-D_QsHUgR.js +63 -0
- package/dist/cjs/modal-_AhJoT78.js +190 -0
- package/dist/cjs/service-CRjXhKel.js +94 -0
- package/dist/cjs/shadow-dom-BG8VqeIu.js +91 -0
- package/dist/cjs/siemens-ix.cjs.js +4 -5
- package/dist/cjs/tab.mixin-DObUK6A4.js +21 -0
- package/dist/cjs/theme-switcher-sbkXOvhB.js +127 -0
- package/dist/cjs/time-picker-constraints-CxGhm1qV.js +79 -0
- package/dist/cjs/{tree.types-BygtRFW3.js → tree.types-Cs9O1Wtf.js} +2 -0
- package/dist/cjs/typed-event-Bw4IfJC0.js +44 -0
- package/dist/cjs/{validation-DF9UXqHB.js → validation-Dier-uPA.js} +32 -9
- package/dist/collection/collection-manifest.json +16 -9
- package/dist/collection/components/action-card/action-card.js +37 -19
- package/dist/collection/components/application/application.js +62 -48
- package/dist/collection/components/application-header/application-header.js +116 -84
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +5 -7
- package/dist/collection/components/avatar/avatar.css +30 -5
- package/dist/collection/components/avatar/avatar.js +108 -35
- package/dist/collection/components/blind/blind.js +33 -16
- package/dist/collection/components/breadcrumb/breadcrumb.css +7 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +125 -79
- package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +66 -90
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +131 -69
- package/dist/collection/components/button/base-button.js +13 -9
- package/dist/collection/components/button/button.css +38 -45
- package/dist/collection/components/button/button.js +69 -59
- package/dist/collection/components/card/card.js +15 -16
- package/dist/collection/components/card-accordion/card-accordion.js +27 -17
- package/dist/collection/components/card-content/card-content.js +1 -1
- package/dist/collection/components/card-list/card-list.js +127 -54
- package/dist/collection/components/card-title/card-title.js +1 -1
- package/dist/collection/components/category-filter/category-filter.css +38 -45
- package/dist/collection/components/category-filter/category-filter.js +173 -105
- package/dist/collection/components/category-filter/filter-state.js +2 -4
- package/dist/collection/components/category-filter/input-state.js +2 -0
- package/dist/collection/components/checkbox/checkbox.css +1 -0
- package/dist/collection/components/checkbox/checkbox.js +52 -33
- package/dist/collection/components/checkbox-group/checkbox-group.js +48 -25
- package/dist/collection/components/chip/chip.css +369 -346
- package/dist/collection/components/chip/chip.js +171 -80
- package/dist/collection/components/chip/chip.types.js +18 -0
- package/dist/collection/components/col/col.js +20 -2
- package/dist/collection/components/content/content.js +5 -6
- package/dist/collection/components/content-header/content-header.js +23 -17
- package/dist/collection/components/css-grid/css-grid-item.js +5 -1
- package/dist/collection/components/css-grid/css-grid.js +12 -6
- package/dist/collection/components/custom-field/custom-field.js +38 -11
- package/dist/collection/components/date-dropdown/date-dropdown.css +202 -18
- package/dist/collection/components/date-dropdown/date-dropdown.js +168 -201
- package/dist/collection/components/date-input/date-input.css +4 -4
- package/dist/collection/components/date-input/date-input.js +199 -112
- package/dist/collection/components/date-picker/date-picker.css +66 -25
- package/dist/collection/components/date-picker/date-picker.js +582 -193
- package/dist/collection/components/date-time-card/date-time-card.css +3 -0
- package/dist/collection/components/date-time-card/date-time-card.js +43 -18
- package/dist/collection/components/datetime-input/datetime-input.css +621 -0
- package/dist/collection/components/datetime-input/datetime-input.js +1372 -0
- package/dist/collection/components/datetime-input/datetime-input.types.js +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +2 -10
- package/dist/collection/components/datetime-picker/datetime-picker.js +364 -58
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-controller.js +12 -9
- package/dist/collection/components/dropdown/dropdown-focus.js +178 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +809 -201
- package/dist/collection/components/dropdown-button/dropdown-button.css +38 -0
- package/dist/collection/components/dropdown-button/dropdown-button.js +258 -36
- package/dist/collection/components/dropdown-header/dropdown-header.js +5 -1
- package/dist/collection/components/dropdown-item/dropdown-item.css +23 -3
- package/dist/collection/components/dropdown-item/dropdown-item.js +129 -26
- package/dist/collection/components/dropdown-item/dropdown-item.types.js +1 -0
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js +31 -7
- package/dist/collection/components/event-list/event-list.js +25 -26
- package/dist/collection/components/event-list-item/event-list-item.js +35 -26
- package/dist/collection/components/expanding-search/expanding-search.js +56 -42
- package/dist/collection/components/field-label/field-label.css +10 -0
- package/dist/collection/components/field-label/field-label.js +34 -11
- package/dist/collection/components/field-wrapper/field-wrapper.css +1 -2
- package/dist/collection/components/field-wrapper/field-wrapper.js +193 -49
- package/dist/collection/components/field-wrapper/helper-text-util.js +22 -5
- package/dist/collection/components/filter-chip/filter-chip.css +0 -5
- package/dist/collection/components/filter-chip/filter-chip.js +33 -11
- package/dist/collection/components/flip-tile/flip-tile.js +39 -27
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +7 -9
- package/dist/collection/components/group/group-context-menu.js +3 -4
- package/dist/collection/components/group/group.js +60 -38
- package/dist/collection/components/group-item/group-item.js +45 -22
- package/dist/collection/components/helper-text/helper-text.js +37 -12
- package/dist/collection/components/icon-button/base-icon-button.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +38 -45
- package/dist/collection/components/icon-button/icon-button.js +58 -56
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +38 -45
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +61 -63
- package/dist/collection/components/input/input.css +4 -8
- package/dist/collection/components/input/input.fc.js +10 -11
- package/dist/collection/components/input/input.js +119 -49
- package/dist/collection/components/input/input.util.js +1 -2
- package/dist/collection/components/input/number-input.css +4 -4
- package/dist/collection/components/input/number-input.js +202 -124
- package/dist/collection/components/input/textarea.css +4 -4
- package/dist/collection/components/input/textarea.js +127 -42
- package/dist/collection/components/ix-playground/ix-playground.js +25 -0
- package/dist/collection/components/key-value/key-value.js +23 -7
- package/dist/collection/components/key-value-list/key-value-list.js +5 -7
- package/dist/collection/components/kpi/kpi.js +35 -13
- package/dist/collection/components/layout-auto/layout-auto.js +14 -15
- package/dist/collection/components/layout-grid/layout-grid.js +14 -16
- package/dist/collection/components/link-button/link-button.js +17 -15
- package/dist/collection/components/menu/menu-expand-icon.css +12 -5
- package/dist/collection/components/menu/menu-expand-icon.js +60 -45
- package/dist/collection/components/menu/menu.js +114 -160
- package/dist/collection/components/menu-about/menu-about.css +63 -3
- package/dist/collection/components/menu-about/menu-about.js +111 -36
- package/dist/collection/components/menu-about-item/menu-about-item.js +18 -14
- package/dist/collection/components/menu-about-news/menu-about-news.js +65 -17
- package/dist/collection/components/menu-avatar/menu-avatar.js +57 -27
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +15 -4
- package/dist/collection/components/menu-category/menu-category.js +156 -42
- package/dist/collection/components/menu-item/menu-item.js +94 -46
- package/dist/collection/components/menu-settings/menu-settings.css +0 -3
- package/dist/collection/components/menu-settings/menu-settings.js +111 -36
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +23 -16
- package/dist/collection/components/message-bar/message-bar.js +31 -22
- package/dist/collection/components/modal/modal.css +2 -1
- package/dist/collection/components/modal/modal.js +98 -63
- 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 +34 -16
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.css +38 -45
- package/dist/collection/components/pagination/pagination.js +103 -85
- package/dist/collection/components/pane/pane.js +108 -77
- package/dist/collection/components/pane-layout/pane-layout.js +23 -25
- package/dist/collection/components/pill/pill.css +8 -24
- package/dist/collection/components/pill/pill.js +60 -29
- package/dist/collection/components/progress-indicator/progress-indicator.js +46 -39
- package/dist/collection/components/push-card/push-card.js +35 -16
- package/dist/collection/components/radio/radio.js +47 -23
- package/dist/collection/components/radio-group/radio-group.js +59 -24
- package/dist/collection/components/{input-group/input-group.css → range-field/range-field.css} +26 -39
- package/dist/collection/components/range-field/range-field.js +193 -0
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/select/select.css +36 -13
- package/dist/collection/components/select/select.js +427 -383
- package/dist/collection/components/select/test/select-controller.js +89 -0
- package/dist/collection/components/select-item/select-item.js +46 -59
- package/dist/collection/components/slider/slider.css +0 -7
- package/dist/collection/components/slider/slider.js +101 -85
- package/dist/collection/components/spinner/spinner.js +14 -15
- package/dist/collection/components/split-button/split-button.css +36 -19
- package/dist/collection/components/split-button/split-button.js +116 -77
- package/dist/collection/components/tab-item/tab-item.css +73 -81
- package/dist/collection/components/tab-item/tab-item.js +279 -93
- package/dist/collection/components/tab-item/tab.mixin.js +40 -0
- package/dist/collection/components/{application-sidebar/application-sidebar.css → tab-panel/tab-panel.css} +3 -11
- package/dist/collection/components/tab-panel/tab-panel.js +67 -0
- package/dist/collection/components/{drawer/drawer.css → tab-set/tab-set.css} +1 -62
- package/dist/collection/components/tab-set/tab-set.js +92 -0
- package/dist/collection/components/tabs/tabs.css +71 -39
- package/dist/collection/components/tabs/tabs.js +261 -416
- package/dist/collection/components/tile/tile.js +11 -12
- package/dist/collection/components/time-input/time-input.css +4 -4
- package/dist/collection/components/time-input/time-input.js +349 -138
- package/dist/collection/components/time-picker/time-picker-column-values.js +25 -0
- package/dist/collection/components/time-picker/time-picker-compute-time.js +64 -0
- package/dist/collection/components/time-picker/time-picker-constraints.js +71 -0
- package/dist/collection/components/time-picker/time-picker-display.js +21 -0
- package/dist/collection/components/time-picker/time-picker-format.js +40 -0
- package/dist/collection/components/time-picker/time-picker-range.js +50 -0
- package/dist/collection/components/time-picker/time-picker-step-focus.js +32 -0
- package/dist/collection/components/time-picker/time-picker.css +17 -4
- package/dist/collection/components/time-picker/time-picker.js +544 -264
- package/dist/collection/components/toast/{styles/toast-container.css → toast-container.css} +6 -8
- package/dist/collection/components/toast/toast-container.js +15 -97
- package/dist/collection/components/toast/toast-utils.js +16 -4
- package/dist/collection/components/toast/toast.js +45 -30
- package/dist/collection/components/toggle/toggle.css +7 -4
- package/dist/collection/components/toggle/toggle.js +85 -44
- package/dist/collection/components/toggle-button/toggle-button.css +38 -45
- package/dist/collection/components/toggle-button/toggle-button.js +41 -46
- package/dist/collection/components/tooltip/tooltip.js +68 -44
- package/dist/collection/components/tree/tree.js +74 -34
- package/dist/collection/components/tree-item/default-tree-item.js +2 -0
- package/dist/collection/components/tree-item/tree-item.css +9 -4
- package/dist/collection/components/tree-item/tree-item.js +70 -15
- package/dist/collection/components/typography/typography.js +18 -13
- package/dist/collection/components/upload/upload.js +110 -75
- package/dist/collection/components/utils/a11y.js +1 -2
- package/dist/collection/components/utils/animation.js +24 -44
- package/dist/collection/components/utils/application-layout/service.js +22 -40
- package/dist/collection/components/utils/context.js +4 -1
- package/dist/collection/components/utils/delegate.js +1 -2
- package/dist/collection/components/utils/dependency-function.js +55 -0
- package/dist/collection/components/utils/event.js +16 -0
- package/dist/collection/components/utils/find-element.js +1 -1
- package/dist/collection/components/utils/focus/detect-keyboard-mode.js +28 -0
- package/dist/collection/components/utils/focus/focus-proxy.js +40 -0
- package/dist/collection/components/utils/focus/focus-trap.js +99 -0
- package/dist/collection/components/utils/focus/focus-utilities.js +117 -0
- package/dist/collection/components/utils/focus.js +9 -6
- package/dist/collection/components/utils/input/index.js +5 -0
- package/dist/collection/components/utils/input/validation.js +31 -8
- package/dist/collection/components/utils/internal/component.js +2 -1
- package/dist/collection/components/utils/internal/index.js +1 -1
- package/dist/collection/components/utils/internal/mixins/accessibility/aria-activedescendant.mixin.js +84 -0
- package/dist/collection/components/utils/internal/mixins/accessibility/inherit-aria-attributes.mixin.js +190 -0
- package/dist/collection/components/utils/internal/mixins/focus-visible.mixin.js +91 -0
- package/dist/collection/components/utils/internal/mixins/id.mixin.js +17 -0
- package/dist/collection/components/utils/internal/mixins/input/input-picker.mixin.js +45 -0
- package/dist/collection/components/utils/internal/mixins/setup.mixin.js +118 -0
- package/dist/collection/components/utils/lazy-list/lazy.js +24 -9
- package/dist/collection/components/utils/listener.js +6 -5
- package/dist/collection/components/utils/luxon-datetime-format-masks.js +38 -0
- package/dist/collection/components/utils/make-ref.js +5 -2
- package/dist/collection/components/utils/menu-service/menu-service.js +17 -37
- package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js +1 -49
- package/dist/collection/components/utils/modal/index.js +2 -2
- package/dist/collection/components/utils/modal/loading.js +34 -29
- package/dist/collection/components/utils/modal/message.js +133 -106
- package/dist/collection/components/utils/modal/modal.js +11 -8
- package/dist/collection/components/utils/overlay.js +1 -3
- package/dist/collection/components/utils/shadow-dom.js +42 -0
- package/dist/collection/components/{drawer → utils}/test/animejs.mock.js +8 -8
- package/dist/collection/components/utils/theme-switcher.js +85 -133
- package/dist/collection/components/utils/typed-event.js +29 -31
- package/dist/collection/components/workflow-step/workflow-step.js +37 -33
- package/dist/collection/components/workflow-steps/workflow-steps.js +19 -15
- package/dist/collection/public-api.js +4 -0
- package/dist/collection/tests/utils/test/page.js +34 -9
- package/dist/esm/{a11y-DAzBNVe7.js → a11y-B5k8YVR0.js} +1 -2
- package/dist/esm/animation-DNIQ2C1K.js +79 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/aria-activedescendant.mixin-CM-NUHTW.js +83 -0
- package/dist/esm/{base-button-CV0w47z9.js → base-button-hppF0uUM.js} +14 -10
- package/dist/esm/{base-icon-button-BuHd34qo.js → base-icon-button-_xVULsPr.js} +3 -3
- package/dist/esm/component-Chfbghog.js +139 -0
- package/dist/esm/{context-BniHpAE1.js → context-zqk3Dkv-.js} +5 -2
- package/dist/esm/{dropdown-controller-D3K9vmFp.js → dropdown-controller-D6Wm2E-0.js} +12 -9
- package/dist/esm/{floating-ui.dom-CAqtPJ4-.js → find-element-Bxrgt3H_.js} +100 -1
- package/dist/esm/focus-proxy-BgLEsVE2.js +43 -0
- package/dist/esm/focus-trap-DDLHqzV2.js +102 -0
- package/dist/esm/focus-utilities-DnaItyVQ.js +108 -0
- package/dist/esm/focus-visible.mixin-CoMZ6z5Z.js +40 -0
- package/dist/esm/{helper-text-util-C9sLzo0k.js → helper-text-util-AEl-1QU6.js} +26 -9
- package/dist/esm/id.mixin-CUbYLenp.js +19 -0
- package/dist/esm/{index-BEPo7U1W.js → index-Ca5WUunf.js} +529 -127
- package/dist/esm/{index-BBzEV-f4.js → index-Cl7fhG1I.js} +2 -3
- package/dist/esm/index-XBTykBKS.js +14 -0
- package/dist/esm/{index-BG5XMoOy.js → index-nCVTBc9Y.js} +1 -2
- package/dist/esm/index.js +262 -45
- package/dist/esm/inherit-aria-attributes.mixin-CBuZQFB-.js +34 -0
- package/dist/esm/{picker-input.util-D1uMJUKN.js → input-picker.mixin-Bo_sZpC4.js} +25 -2
- package/dist/esm/{input.fc-C1ytwpkt.js → input.fc-DjE-oOZc.js} +17 -19
- package/dist/esm/ix-action-card.entry.js +39 -19
- package/dist/esm/ix-application-header.entry.js +126 -69
- package/dist/esm/ix-application-switch-modal.entry.js +9 -13
- package/dist/esm/ix-application.entry.js +46 -34
- package/dist/esm/ix-avatar_2.entry.js +126 -22
- package/dist/esm/ix-blind.entry.js +37 -23
- package/dist/esm/ix-breadcrumb-item.entry.js +234 -43
- package/dist/esm/ix-breadcrumb.entry.js +85 -68
- package/dist/esm/ix-button.entry.js +227 -40
- package/dist/esm/ix-card-accordion_2.entry.js +30 -19
- package/dist/esm/ix-card-list.entry.js +104 -54
- package/dist/esm/ix-card_2.entry.js +17 -17
- package/dist/esm/ix-category-filter.entry.js +180 -111
- package/dist/esm/ix-checkbox-group.entry.js +52 -27
- package/dist/esm/ix-checkbox.entry.js +58 -37
- package/dist/esm/ix-chip.entry.js +317 -81
- package/dist/esm/ix-col_4.entry.js +1110 -496
- package/dist/esm/ix-content-header.entry.js +25 -17
- package/dist/esm/ix-content.entry.js +7 -7
- package/dist/esm/ix-css-grid-item.entry.js +6 -2
- package/dist/esm/ix-css-grid.entry.js +13 -5
- package/dist/esm/ix-custom-field.entry.js +41 -12
- package/dist/esm/ix-date-dropdown.entry.js +170 -145
- package/dist/esm/ix-date-input.entry.js +209 -122
- package/dist/esm/ix-date-picker.entry.js +750 -0
- package/dist/esm/ix-date-time-card.entry.js +25 -18
- package/dist/esm/ix-datetime-input.entry.js +546 -0
- package/dist/esm/ix-datetime-picker.entry.js +242 -58
- package/dist/esm/ix-divider.entry.js +2 -2
- package/dist/esm/ix-dropdown-button.entry.js +155 -38
- package/dist/esm/ix-dropdown-header.entry.js +6 -2
- package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
- package/dist/esm/ix-dropdown_2.entry.js +989 -0
- package/dist/esm/ix-empty-state.entry.js +32 -6
- package/dist/esm/ix-event-list-item.entry.js +38 -27
- package/dist/esm/ix-event-list.entry.js +27 -27
- package/dist/esm/ix-expanding-search.entry.js +58 -44
- package/dist/esm/ix-field-label_2.entry.js +177 -55
- package/dist/esm/ix-filter-chip_2.entry.js +85 -37
- package/dist/esm/ix-flip-tile-content.entry.js +8 -8
- package/dist/esm/ix-flip-tile.entry.js +43 -30
- package/dist/esm/ix-group-context-menu_2.entry.js +51 -27
- package/dist/esm/ix-group.entry.js +63 -40
- package/dist/esm/ix-helper-text.entry.js +43 -16
- package/dist/esm/ix-icon-button_2.entry.js +232 -52
- package/dist/esm/ix-icon-toggle-button.entry.js +221 -45
- package/dist/esm/ix-input.entry.js +129 -57
- package/dist/esm/ix-key-value-list.entry.js +6 -6
- package/dist/esm/ix-key-value.entry.js +24 -6
- package/dist/esm/ix-kpi.entry.js +37 -13
- package/dist/esm/ix-layout-auto.entry.js +15 -15
- package/dist/esm/ix-link-button.entry.js +19 -15
- package/dist/esm/ix-menu-about-item.entry.js +13 -6
- package/dist/esm/ix-menu-about-news.entry.js +45 -18
- package/dist/esm/ix-menu-about.entry.js +72 -28
- package/dist/esm/ix-menu-avatar.entry.js +62 -31
- package/dist/esm/ix-menu-category.entry.js +157 -74
- package/dist/esm/ix-menu-expand-icon.entry.js +24 -24
- package/dist/esm/ix-menu-item.entry.js +100 -51
- package/dist/esm/ix-menu-settings-item.entry.js +13 -6
- package/dist/esm/ix-menu-settings.entry.js +90 -3
- package/dist/esm/ix-menu.entry.js +123 -136
- package/dist/esm/ix-message-bar.entry.js +33 -22
- package/dist/esm/ix-modal-content_2.entry.js +36 -17
- 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 +98 -61
- package/dist/esm/ix-number-input.entry.js +212 -132
- package/dist/esm/ix-pagination.entry.js +108 -89
- package/dist/esm/ix-pane-layout.entry.js +26 -27
- package/dist/esm/ix-pane.entry.js +114 -82
- package/dist/esm/ix-pill_4.entry.js +741 -0
- package/dist/esm/ix-progress-indicator.entry.js +48 -40
- package/dist/esm/ix-push-card.entry.js +36 -15
- package/dist/esm/ix-radio-group.entry.js +63 -26
- package/dist/esm/ix-radio.entry.js +51 -25
- package/dist/esm/ix-range-field.entry.js +120 -0
- package/dist/esm/ix-select.entry.js +398 -373
- package/dist/esm/ix-slider.entry.js +108 -68
- package/dist/esm/ix-split-button.entry.js +118 -48
- package/dist/esm/ix-tab-panel.entry.js +28 -0
- package/dist/esm/ix-textarea.entry.js +136 -49
- package/dist/esm/ix-tile.entry.js +12 -12
- package/dist/esm/ix-time-input.entry.js +295 -149
- package/dist/esm/ix-toast-container.entry.js +14 -54
- package/dist/esm/ix-toast.entry.js +47 -31
- package/dist/esm/ix-toggle-button.entry.js +200 -27
- package/dist/esm/ix-toggle.entry.js +244 -48
- package/dist/esm/ix-tooltip.entry.js +69 -45
- package/dist/esm/ix-tree-item.entry.js +50 -16
- package/dist/esm/ix-tree.entry.js +101 -45
- package/dist/esm/ix-typography.entry.js +19 -12
- package/dist/esm/ix-upload.entry.js +80 -76
- package/dist/esm/ix-workflow-step.entry.js +39 -34
- package/dist/esm/ix-workflow-steps.entry.js +20 -15
- package/dist/esm/{listener-DcAn-vyA.js → listener-Dk6XGheN.js} +7 -6
- package/dist/esm/loader.js +4 -5
- package/dist/esm/{logical-filter-operator-BH3f5fa3.js → logical-filter-operator-C9HBQRMb.js} +2 -0
- package/dist/esm/luxon-datetime-format-masks-CoQiziG8.js +40 -0
- package/dist/esm/{make-ref-bcj7UEIC.js → make-ref-Djkc69iv.js} +6 -3
- package/dist/esm/menu-service-DTIYRV47.js +61 -0
- package/dist/esm/modal-DaGSr1j4.js +181 -0
- package/dist/esm/{rwd.util-pXYAoEyc.js → rwd.util-JJddxCCh.js} +1 -1
- package/dist/esm/service-CEglFEKY.js +92 -0
- package/dist/esm/shadow-dom-BIe8Nw9M.js +85 -0
- package/dist/esm/siemens-ix.js +5 -6
- package/dist/esm/tab.mixin-2hU1i4Yk.js +19 -0
- package/dist/esm/theme-switcher-CRVG13AN.js +124 -0
- package/dist/esm/time-picker-constraints-Bsg2RskF.js +74 -0
- package/dist/esm/{tree.types-DSTYytot.js → tree.types-D5rshXh5.js} +2 -0
- package/dist/esm/typed-event-CWshStHZ.js +42 -0
- package/dist/esm/{validation-CTBekLDe.js → validation-BT5aAuSO.js} +32 -9
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/p-04bbcd53.entry.js +1 -0
- package/dist/siemens-ix/p-077cb0a7.entry.js +1 -0
- package/dist/siemens-ix/p-0de68f63.entry.js +1 -0
- package/dist/siemens-ix/p-12647d5d.entry.js +1 -0
- package/dist/siemens-ix/p-12750b7b.entry.js +1 -0
- package/dist/siemens-ix/p-15aefb52.entry.js +1 -0
- package/dist/siemens-ix/p-1629de03.entry.js +1 -0
- package/dist/siemens-ix/p-1ce32501.entry.js +1 -0
- package/dist/siemens-ix/p-1fa6a663.entry.js +1 -0
- package/dist/siemens-ix/p-2142fab0.entry.js +1 -0
- package/dist/siemens-ix/p-21c0d22c.entry.js +1 -0
- package/dist/siemens-ix/p-222881a1.entry.js +1 -0
- package/dist/siemens-ix/p-232da11d.entry.js +1 -0
- package/dist/siemens-ix/p-23aaf08e.entry.js +1 -0
- package/dist/siemens-ix/p-25c784e4.entry.js +1 -0
- package/dist/siemens-ix/p-280d8b68.entry.js +1 -0
- package/dist/siemens-ix/{p-6aadd69d.entry.js → p-2a735134.entry.js} +1 -1
- package/dist/siemens-ix/p-2afcdc78.entry.js +1 -0
- package/dist/siemens-ix/p-2bef3c58.entry.js +1 -0
- package/dist/siemens-ix/p-2d7e415f.entry.js +1 -0
- package/dist/siemens-ix/p-2d8f3ea3.entry.js +1 -0
- package/dist/siemens-ix/p-2e5e7ccf.entry.js +1 -0
- package/dist/siemens-ix/p-38cb18b4.entry.js +1 -0
- package/dist/siemens-ix/p-3f752a9c.entry.js +1 -0
- package/dist/siemens-ix/p-40a26154.entry.js +1 -0
- package/dist/siemens-ix/p-44a3f1f0.entry.js +1 -0
- package/dist/siemens-ix/p-45552c4c.entry.js +1 -0
- package/dist/siemens-ix/p-48386b43.entry.js +1 -0
- package/dist/siemens-ix/p-4pTtJwcY.js +1 -0
- package/dist/siemens-ix/p-5024bd91.entry.js +1 -0
- package/dist/siemens-ix/p-50b75fdf.entry.js +1 -0
- package/dist/siemens-ix/p-58d349a2.entry.js +1 -0
- package/dist/siemens-ix/p-5a44cb29.entry.js +1 -0
- package/dist/siemens-ix/p-5ae844d7.entry.js +1 -0
- package/dist/siemens-ix/p-5b3f7baa.entry.js +1 -0
- package/dist/siemens-ix/p-5c478e3e.entry.js +1 -0
- package/dist/siemens-ix/p-61a481f3.entry.js +1 -0
- package/dist/siemens-ix/p-65b8ad90.entry.js +1 -0
- package/dist/siemens-ix/p-65bc8a0d.entry.js +1 -0
- package/dist/siemens-ix/p-68eb9150.entry.js +1 -0
- package/dist/siemens-ix/p-69459b73.entry.js +1 -0
- package/dist/siemens-ix/p-6df3d9e4.entry.js +1 -0
- package/dist/siemens-ix/p-6e63af65.entry.js +1 -0
- package/dist/siemens-ix/p-6fb379fb.entry.js +1 -0
- package/dist/siemens-ix/p-756c8779.entry.js +1 -0
- package/dist/siemens-ix/p-782fb465.entry.js +1 -0
- package/dist/siemens-ix/p-7a83e693.entry.js +1 -0
- package/dist/siemens-ix/p-82f44b05.entry.js +1 -0
- package/dist/siemens-ix/p-834330b3.entry.js +1 -0
- package/dist/siemens-ix/p-8493e35e.entry.js +1 -0
- package/dist/siemens-ix/p-84fbdef9.entry.js +1 -0
- package/dist/siemens-ix/p-85ce0a9f.entry.js +1 -0
- package/dist/siemens-ix/p-8937e9b1.entry.js +1 -0
- package/dist/siemens-ix/p-8cfddec2.entry.js +1 -0
- package/dist/siemens-ix/p-8d76c0b0.entry.js +1 -0
- package/dist/siemens-ix/p-9015a4c5.entry.js +1 -0
- package/dist/siemens-ix/p-91b02cb7.entry.js +1 -0
- package/dist/siemens-ix/p-9362c304.entry.js +1 -0
- package/dist/siemens-ix/p-9586a886.entry.js +1 -0
- package/dist/siemens-ix/p-986142f0.entry.js +1 -0
- package/dist/siemens-ix/p-9907d408.entry.js +1 -0
- package/dist/siemens-ix/p-9b8f1bc7.entry.js +1 -0
- package/dist/siemens-ix/p-B5k8YVR0.js +1 -0
- package/dist/siemens-ix/p-BFUINhFM.js +1 -0
- package/dist/siemens-ix/p-BIe8Nw9M.js +1 -0
- package/dist/siemens-ix/p-BL9SR36X.js +1 -0
- package/dist/siemens-ix/p-BZApVtkF.js +1 -0
- package/dist/siemens-ix/p-BgL7Z4IG.js +1 -0
- package/dist/siemens-ix/p-Bxrgt3H_.js +1 -0
- package/dist/siemens-ix/p-C9HBQRMb.js +1 -0
- package/dist/siemens-ix/p-CM-NUHTW.js +1 -0
- package/dist/siemens-ix/p-CUbYLenp.js +1 -0
- package/dist/siemens-ix/p-CWlPNXA-.js +1 -0
- package/dist/siemens-ix/p-CWshStHZ.js +1 -0
- package/dist/siemens-ix/p-Ca5WUunf.js +2 -0
- package/dist/siemens-ix/p-CgOv_MV_.js +1 -0
- package/dist/siemens-ix/p-Cl7fhG1I.js +1 -0
- package/dist/siemens-ix/p-CoQiziG8.js +1 -0
- package/dist/siemens-ix/p-CxGywkh5.js +1 -0
- package/dist/siemens-ix/p-D148LCh1.js +1 -0
- package/dist/siemens-ix/{p-DSTYytot.js → p-D5rshXh5.js} +1 -1
- package/dist/siemens-ix/p-D6Wm2E-0.js +1 -0
- package/dist/siemens-ix/p-DIWED8Ls.js +1 -0
- package/dist/siemens-ix/p-DNIQ2C1K.js +1 -0
- package/dist/siemens-ix/p-DQuL1Twl.js +1 -0
- package/dist/siemens-ix/p-Djkc69iv.js +1 -0
- package/dist/siemens-ix/p-Dl_bUxb7.js +1 -0
- package/dist/siemens-ix/p-DnCbHs-d.js +1 -0
- package/dist/siemens-ix/p-DnaItyVQ.js +1 -0
- package/dist/siemens-ix/p-DuTDx0c-.js +1 -0
- package/dist/siemens-ix/p-Dx6rQdpk.js +1 -0
- package/dist/siemens-ix/p-DzWThpzp.js +1 -0
- package/dist/siemens-ix/p-GLcPX9PU.js +1 -0
- package/dist/siemens-ix/{p-pXYAoEyc.js → p-JJddxCCh.js} +1 -1
- package/dist/siemens-ix/p-XBTykBKS.js +1 -0
- package/dist/siemens-ix/p-Z4IKO1Dx.js +1 -0
- package/dist/siemens-ix/p-a44e8a8f.entry.js +1 -0
- package/dist/siemens-ix/p-a5d60068.entry.js +1 -0
- package/dist/siemens-ix/p-ae5569aa.entry.js +1 -0
- package/dist/siemens-ix/p-afa900f7.entry.js +1 -0
- package/dist/siemens-ix/p-b17053bc.entry.js +1 -0
- package/dist/siemens-ix/p-b1930204.entry.js +1 -0
- package/dist/siemens-ix/{p-d458b450.entry.js → p-b517c2e1.entry.js} +1 -1
- package/dist/siemens-ix/p-b96eabf7.entry.js +1 -0
- package/dist/siemens-ix/p-ba0eaaf5.entry.js +1 -0
- package/dist/siemens-ix/p-bd60b9fe.entry.js +1 -0
- package/dist/siemens-ix/p-bef76eac.entry.js +1 -0
- package/dist/siemens-ix/p-c350c5d0.entry.js +1 -0
- package/dist/siemens-ix/p-c56497da.entry.js +1 -0
- package/dist/siemens-ix/p-c78a5414.entry.js +1 -0
- package/dist/siemens-ix/p-c921c01b.entry.js +1 -0
- package/dist/siemens-ix/p-cb9f8b47.entry.js +1 -0
- package/dist/siemens-ix/p-d34c0c51.entry.js +1 -0
- package/dist/siemens-ix/p-d440cd94.entry.js +1 -0
- package/dist/siemens-ix/{p-2b559d4b.entry.js → p-d798773f.entry.js} +1 -1
- package/dist/siemens-ix/p-d8c99656.entry.js +1 -0
- package/dist/siemens-ix/p-da8840cc.entry.js +1 -0
- package/dist/siemens-ix/p-dd2b271e.entry.js +1 -0
- package/dist/siemens-ix/p-de79c9cf.entry.js +1 -0
- package/dist/siemens-ix/p-dedd5fc0.entry.js +1 -0
- package/dist/siemens-ix/p-df13643b.entry.js +1 -0
- package/dist/siemens-ix/p-df32a25c.entry.js +1 -0
- package/dist/siemens-ix/p-e09fcd95.entry.js +1 -0
- package/dist/siemens-ix/p-e316d8a5.entry.js +1 -0
- package/dist/siemens-ix/p-ea440d84.entry.js +1 -0
- package/dist/siemens-ix/p-ed2aea43.entry.js +1 -0
- package/dist/siemens-ix/p-edb738d9.entry.js +1 -0
- package/dist/siemens-ix/p-f107a580.entry.js +1 -0
- package/dist/siemens-ix/p-f847a799.entry.js +1 -0
- package/dist/siemens-ix/p-fcac86a5.entry.js +1 -0
- package/dist/siemens-ix/p-fpBGwEVT.js +1 -0
- package/dist/siemens-ix/p-jBB3q9qq.js +1 -0
- package/dist/siemens-ix/p-yAf8WIcn.js +1 -0
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix-standalone.css +1 -0
- package/dist/siemens-ix/siemens-ix.css +285 -988
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/theme/classic-dark.css +1 -1
- package/dist/siemens-ix/theme/classic-light.css +1 -1
- package/dist/types/components/application/application.d.ts +8 -5
- package/dist/types/components/application-header/application-header.d.ts +0 -7
- package/dist/types/components/avatar/avatar.d.ts +60 -8
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +29 -9
- package/dist/types/components/breadcrumb/breadcrumb.types.d.ts +9 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +42 -12
- package/dist/types/components/button/button.d.ts +31 -8
- package/dist/types/components/card-list/card-list.d.ts +8 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +2 -2
- package/dist/types/components/chip/chip.d.ts +48 -4
- package/dist/types/components/chip/chip.types.d.ts +2 -0
- package/dist/types/components/custom-field/custom-field.d.ts +2 -2
- package/dist/types/components/date-dropdown/date-dropdown.d.ts +18 -17
- package/dist/types/components/date-input/date-input.d.ts +18 -5
- package/dist/types/components/date-picker/date-picker.d.ts +62 -10
- package/dist/types/components/date-time-card/date-time-card.d.ts +4 -0
- package/dist/types/components/datetime-input/datetime-input.d.ts +210 -0
- package/dist/types/components/datetime-input/datetime-input.types.d.ts +3 -0
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +32 -0
- package/dist/types/components/dropdown/dropdown-controller.d.ts +3 -2
- package/dist/types/components/dropdown/dropdown-focus.d.ts +20 -0
- package/dist/types/components/dropdown/dropdown.d.ts +109 -14
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +82 -2
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +55 -1
- package/dist/types/components/dropdown-item/dropdown-item.types.d.ts +1 -0
- package/dist/types/components/field-label/field-label.d.ts +3 -2
- package/dist/types/components/field-wrapper/field-wrapper.d.ts +39 -5
- package/dist/types/components/field-wrapper/helper-text-util.d.ts +11 -0
- package/dist/types/components/helper-text/helper-text.d.ts +2 -2
- package/dist/types/components/icon-button/icon-button.d.ts +31 -8
- package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +31 -8
- package/dist/types/components/layout-auto/layout-auto.d.ts +2 -2
- package/dist/types/components/menu/menu-expand-icon.d.ts +4 -5
- package/dist/types/components/menu/menu.d.ts +0 -11
- package/dist/types/components/menu-about/menu-about.d.ts +19 -6
- package/dist/types/components/menu-about-item/menu-about-item.d.ts +20 -1
- package/dist/types/components/menu-about-news/menu-about-news.d.ts +22 -1
- package/dist/types/components/menu-category/menu-category.d.ts +23 -4
- package/dist/types/components/menu-item/menu-item.d.ts +2 -0
- package/dist/types/components/menu-settings/menu-settings.d.ts +19 -6
- package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +21 -2
- package/dist/types/components/modal/modal.d.ts +6 -4
- package/dist/types/components/modal-header/modal-header.d.ts +2 -2
- package/dist/types/components/pill/pill.d.ts +16 -2
- package/dist/types/components/range-field/range-field.d.ts +34 -0
- package/dist/types/components/select/select.d.ts +82 -32
- package/dist/types/components/select/test/select-controller.d.ts +15 -0
- package/dist/types/components/select-item/select-item.d.ts +47 -7
- package/dist/types/components/slider/slider.d.ts +0 -6
- package/dist/types/components/split-button/split-button.d.ts +43 -8
- package/dist/types/components/tab-item/tab-item.d.ts +77 -15
- package/dist/types/components/tab-item/tab-item.types.d.ts +2 -1
- package/dist/types/components/tab-item/tab.mixin.d.ts +26 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +42 -0
- package/dist/types/components/tab-set/tab-set.d.ts +17 -0
- package/dist/types/components/tabs/tabs.d.ts +68 -58
- package/dist/types/components/time-input/time-input.d.ts +43 -6
- package/dist/types/components/time-picker/time-picker-column-values.d.ts +15 -0
- package/dist/types/components/time-picker/time-picker-compute-time.d.ts +6 -0
- package/dist/types/components/time-picker/time-picker-constraints.d.ts +16 -0
- package/dist/types/components/time-picker/time-picker-display.d.ts +6 -0
- package/dist/types/components/time-picker/time-picker-format.d.ts +13 -0
- package/dist/types/components/time-picker/time-picker-range.d.ts +11 -0
- package/dist/types/components/time-picker/time-picker-step-focus.d.ts +7 -0
- package/dist/types/components/time-picker/time-picker.d.ts +51 -9
- package/dist/types/components/time-picker/time-picker.types.d.ts +1 -0
- package/dist/types/components/toast/toast-container.d.ts +3 -11
- package/dist/types/components/toggle/toggle.d.ts +32 -1
- package/dist/types/components/toggle-button/toggle-button.d.ts +31 -6
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components/tree/tree-model.d.ts +4 -0
- package/dist/types/components/tree-item/tree-item.d.ts +6 -0
- package/dist/types/components/upload/upload.d.ts +10 -4
- package/dist/types/components/utils/dependency-function.d.ts +16 -0
- package/dist/types/components/utils/event.d.ts +8 -0
- package/dist/types/components/utils/focus/detect-keyboard-mode.d.ts +5 -0
- package/dist/types/components/utils/focus/focus-proxy.d.ts +12 -0
- package/dist/types/components/utils/focus/focus-trap.d.ts +12 -0
- package/dist/types/components/utils/focus/focus-utilities.d.ts +32 -0
- package/dist/types/components/utils/input/index.d.ts +6 -2
- package/dist/types/components/utils/input/validation.d.ts +2 -2
- package/dist/types/components/utils/internal/component.d.ts +107 -2
- package/dist/types/components/utils/internal/index.d.ts +2 -1
- package/dist/types/components/utils/internal/mixins/accessibility/aria-activedescendant.mixin.d.ts +30 -0
- package/dist/types/components/utils/internal/mixins/accessibility/inherit-aria-attributes.mixin.d.ts +25 -0
- package/dist/types/components/utils/internal/mixins/focus-visible.mixin.d.ts +33 -0
- package/dist/types/components/utils/internal/mixins/id.mixin.d.ts +22 -0
- package/dist/types/components/utils/internal/mixins/input/input-picker.mixin.d.ts +24 -0
- package/dist/types/components/utils/internal/mixins/setup.mixin.d.ts +31 -0
- package/dist/types/components/utils/luxon-datetime-format-masks.d.ts +13 -0
- package/dist/types/components/utils/make-ref.d.ts +1 -0
- package/dist/types/components/utils/menu-tabs/menu-tabs-utils.d.ts +0 -5
- package/dist/types/components/utils/modal/index.d.ts +2 -2
- package/dist/types/components/utils/modal/loading.d.ts +8 -7
- package/dist/types/components/utils/modal/message.d.ts +27 -27
- package/dist/types/components/utils/modal/modal.d.ts +9 -18
- package/dist/types/components/utils/overlay.d.ts +2 -2
- package/dist/types/components/utils/shadow-dom.d.ts +16 -0
- package/dist/types/components/utils/test/animejs.mock.d.ts +1 -0
- package/dist/types/components/utils/theme-switcher.d.ts +24 -22
- package/dist/types/components.d.ts +1192 -613
- package/dist/types/public-api.d.ts +5 -0
- package/dist/types/tests/utils/test/page.d.ts +7 -1
- package/hydrate/index.js +12689 -6438
- package/hydrate/index.mjs +12689 -6438
- package/package.json +13 -7
- package/scss/_core.scss +3 -45
- package/scss/_standalone.scss +45 -0
- package/scss/components/_table.scss +5 -1
- package/scss/ix-core.scss +0 -2
- package/{dist/collection/components/menu-settings-item/menu-settings-item.css → scss/ix-standalone.scss} +2 -5
- package/scss/legacy/components/_checkboxes.scss +1 -1
- package/scss/legacy/components/_dropdown.scss +1 -1
- package/scss/legacy/components/_forms.scss +1 -1
- package/scss/legacy/components/_modal.scss +1 -1
- package/scss/legacy/components/_radiobuttons.scss +1 -1
- package/scss/legacy/mixins/_fonts.scss +1 -1
- package/scss/mixins/shadow-dom/_focus-visible.scss +12 -0
- package/scss/theme/classic/dark/_index.scss +0 -1
- package/scss/theme/classic/dark/_variables.scss +40 -40
- package/scss/theme/classic/light/_index.scss +0 -1
- package/scss/theme/classic/light/_variables.scss +40 -40
- package/scss/theme/classic/theme.scss +22 -28
- package/scss/theme/core/components/button.scss +29 -29
- package/scss/theme/core/components/chip.scss +4 -4
- package/scss/theme/core/components/link.scss +2 -2
- package/scss/theme/core/components/tab.scss +4 -4
- package/components/ix-application-sidebar.js +0 -1
- package/components/ix-drawer.js +0 -1
- package/components/ix-input-group.js +0 -1
- package/components/ix-validation-tooltip.js +0 -1
- package/components/p-0oJ9dyRQ.js +0 -1
- package/components/p-9tuDiQEH.js +0 -1
- package/components/p-AHG5KaOt.js +0 -1
- package/components/p-B0gQmZW3.js +0 -1
- package/components/p-B81cFxT_.js +0 -1
- package/components/p-BAIdCBnK.js +0 -1
- package/components/p-BH3f5fa3.js +0 -1
- package/components/p-BKNhBo9h.js +0 -1
- package/components/p-BLaucX4x.js +0 -1
- package/components/p-BM_otpzy.js +0 -1
- package/components/p-BWHIcA46.js +0 -1
- package/components/p-BWRJteYa.js +0 -1
- package/components/p-BYACnsyo.js +0 -1
- package/components/p-BbN-BCaw.js +0 -1
- package/components/p-BdCnOrqW.js +0 -1
- package/components/p-BhgW5qDm.js +0 -1
- package/components/p-Bi1VyG64.js +0 -1
- package/components/p-BncjKdXL.js +0 -1
- package/components/p-Bo9ALIy0.js +0 -1
- package/components/p-BvFOMxgl.js +0 -1
- package/components/p-C9SfsAWb.js +0 -1
- package/components/p-CAqtPJ4-.js +0 -1
- package/components/p-CFRrPFxi.js +0 -1
- package/components/p-CMi1hdQj.js +0 -1
- package/components/p-CPz6ThvB.js +0 -1
- package/components/p-CS1HnwQr.js +0 -1
- package/components/p-CYMB75De.js +0 -1
- package/components/p-CZsAGuDS.js +0 -1
- package/components/p-C_3dz2Xl.js +0 -1
- package/components/p-C_6_Rh7K.js +0 -1
- package/components/p-Cce1kE8J.js +0 -1
- package/components/p-CdT1qV2I.js +0 -1
- package/components/p-Cgi0rnuQ.js +0 -1
- package/components/p-ChDWY0o5.js +0 -1
- package/components/p-CjFgf9s9.js +0 -1
- package/components/p-CkBQGLbj.js +0 -1
- package/components/p-ClVzB9MP.js +0 -1
- package/components/p-CsGkJrm6.js +0 -1
- package/components/p-CxWzccPV.js +0 -1
- package/components/p-D3K9vmFp.js +0 -1
- package/components/p-DAzBNVe7.js +0 -1
- package/components/p-DNJriU2G.js +0 -1
- package/components/p-DQgVT_uh.js +0 -1
- package/components/p-DaVdylP8.js +0 -1
- package/components/p-DnKEXwdz.js +0 -1
- package/components/p-DrsekPHj.js +0 -1
- package/components/p-IsTvRVoY.js +0 -1
- package/components/p-LoRL-toz.js +0 -1
- package/components/p-MJm14Xlr.js +0 -1
- package/components/p-VHuL40oZ.js +0 -1
- package/components/p-WUp_O0u4.js +0 -1
- package/components/p-bcj7UEIC.js +0 -1
- package/components/p-gkooEHol.js +0 -1
- package/components/p-mraQmnXA.js +0 -1
- package/components/p-rBthI1EV.js +0 -1
- package/components/p-t0v_1-tY.js +0 -1
- package/components/p-unwtt2da.js +0 -1
- package/components/p-xCBXKXNq.js +0 -1
- package/components/p-xrAJuWDf.js +0 -1
- package/dist/cjs/animation-D5wGQwTg.js +0 -100
- package/dist/cjs/app-globals-Cu3bQGoC.js +0 -8
- package/dist/cjs/find-element-D7yD1Ukn.js +0 -103
- package/dist/cjs/focus-Cl8_98b5.js +0 -67
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +0 -42
- package/dist/cjs/ix-drawer.cjs.entry.js +0 -166
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +0 -63
- package/dist/cjs/ix-dropdown.cjs.entry.js +0 -436
- package/dist/cjs/ix-input-group.cjs.entry.js +0 -129
- package/dist/cjs/ix-menu-settings-B3zMjM3D.js +0 -128
- package/dist/cjs/ix-pill.cjs.entry.js +0 -87
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +0 -495
- package/dist/cjs/ix-time-picker.cjs.entry.js +0 -689
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +0 -156
- package/dist/cjs/menu-service-CW0vT80Q.js +0 -83
- package/dist/cjs/modal-BPMUkqrW.js +0 -289
- package/dist/cjs/service-DuiJmf7R.js +0 -104
- package/dist/cjs/setup-icNDj1cf.js +0 -31
- package/dist/cjs/shadow-dom-DT01VwcB.js +0 -48
- package/dist/cjs/theme-switcher-BfjZ3MX8.js +0 -175
- package/dist/cjs/typed-event-DxWATHPL.js +0 -46
- package/dist/collection/components/application-sidebar/application-sidebar.js +0 -68
- package/dist/collection/components/application-sidebar/events.js +0 -14
- package/dist/collection/components/drawer/drawer.js +0 -392
- package/dist/collection/components/input-group/input-group.js +0 -152
- package/dist/collection/components/menu-about-item/menu-about-item.css +0 -12
- package/dist/collection/components/menu-category/enter-leave.js +0 -29
- package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js +0 -32
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +0 -225
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +0 -251
- package/dist/esm/animation-BLaucX4x.js +0 -98
- package/dist/esm/app-globals-Ciii0tIL.js +0 -6
- package/dist/esm/find-element-CFRrPFxi.js +0 -100
- package/dist/esm/focus-BAKpVknt.js +0 -65
- package/dist/esm/ix-application-sidebar.entry.js +0 -40
- package/dist/esm/ix-drawer.entry.js +0 -164
- package/dist/esm/ix-dropdown-item.entry.js +0 -61
- package/dist/esm/ix-dropdown.entry.js +0 -434
- package/dist/esm/ix-input-group.entry.js +0 -127
- package/dist/esm/ix-menu-settings-BrtDbSQ1.js +0 -123
- package/dist/esm/ix-pill.entry.js +0 -85
- package/dist/esm/ix-tab-item_2.entry.js +0 -492
- package/dist/esm/ix-time-picker.entry.js +0 -687
- package/dist/esm/ix-validation-tooltip.entry.js +0 -154
- package/dist/esm/menu-service-BMvtckRa.js +0 -81
- package/dist/esm/modal-BJAcx3Qd.js +0 -281
- package/dist/esm/service-Da0kv8hS.js +0 -102
- package/dist/esm/setup-eUHKNfBC.js +0 -28
- package/dist/esm/shadow-dom-i60z1FJC.js +0 -43
- package/dist/esm/theme-switcher-CpQ8JvHL.js +0 -172
- package/dist/esm/typed-event-BdCnOrqW.js +0 -44
- package/dist/siemens-ix/p-01283ae6.entry.js +0 -1
- package/dist/siemens-ix/p-048bcd80.entry.js +0 -1
- package/dist/siemens-ix/p-05d31b79.entry.js +0 -1
- package/dist/siemens-ix/p-086cadf8.entry.js +0 -1
- package/dist/siemens-ix/p-18c9b87e.entry.js +0 -1
- package/dist/siemens-ix/p-1b119c78.entry.js +0 -1
- package/dist/siemens-ix/p-1cdd52bc.entry.js +0 -1
- package/dist/siemens-ix/p-23df8fd9.entry.js +0 -1
- package/dist/siemens-ix/p-2441d048.entry.js +0 -1
- package/dist/siemens-ix/p-24947da1.entry.js +0 -1
- package/dist/siemens-ix/p-2b155e81.entry.js +0 -1
- package/dist/siemens-ix/p-2d817735.entry.js +0 -1
- package/dist/siemens-ix/p-3190954f.entry.js +0 -1
- package/dist/siemens-ix/p-359fd705.entry.js +0 -1
- package/dist/siemens-ix/p-3950fb46.entry.js +0 -1
- package/dist/siemens-ix/p-39bab003.entry.js +0 -1
- package/dist/siemens-ix/p-41e6c15a.entry.js +0 -1
- package/dist/siemens-ix/p-44ceb2c5.entry.js +0 -1
- package/dist/siemens-ix/p-46992171.entry.js +0 -1
- package/dist/siemens-ix/p-48f612e5.entry.js +0 -1
- package/dist/siemens-ix/p-49394ea8.entry.js +0 -1
- package/dist/siemens-ix/p-526f3a49.entry.js +0 -1
- package/dist/siemens-ix/p-52edd3f5.entry.js +0 -1
- package/dist/siemens-ix/p-555ee3b3.entry.js +0 -1
- package/dist/siemens-ix/p-57c72eda.entry.js +0 -1
- package/dist/siemens-ix/p-599176fb.entry.js +0 -1
- package/dist/siemens-ix/p-5a69c9e8.entry.js +0 -1
- package/dist/siemens-ix/p-5d1b7333.entry.js +0 -1
- package/dist/siemens-ix/p-5dca1d52.entry.js +0 -1
- package/dist/siemens-ix/p-5f471e1f.entry.js +0 -1
- package/dist/siemens-ix/p-60f84e32.entry.js +0 -1
- package/dist/siemens-ix/p-62156528.entry.js +0 -1
- package/dist/siemens-ix/p-6525aed2.entry.js +0 -1
- package/dist/siemens-ix/p-67eacb9b.entry.js +0 -1
- package/dist/siemens-ix/p-6e6dd3b2.entry.js +0 -1
- package/dist/siemens-ix/p-772b82bc.entry.js +0 -1
- package/dist/siemens-ix/p-77940c84.entry.js +0 -1
- package/dist/siemens-ix/p-7a50b7bc.entry.js +0 -1
- package/dist/siemens-ix/p-7bd3643e.entry.js +0 -1
- package/dist/siemens-ix/p-7c83069f.entry.js +0 -1
- package/dist/siemens-ix/p-7c9f479c.entry.js +0 -1
- package/dist/siemens-ix/p-80d52f41.entry.js +0 -1
- package/dist/siemens-ix/p-83ebc68a.entry.js +0 -1
- package/dist/siemens-ix/p-87ddae31.entry.js +0 -1
- package/dist/siemens-ix/p-8a49d412.entry.js +0 -1
- package/dist/siemens-ix/p-90afea9d.entry.js +0 -1
- package/dist/siemens-ix/p-91b62848.entry.js +0 -1
- package/dist/siemens-ix/p-9432d8bc.entry.js +0 -1
- package/dist/siemens-ix/p-9502ad09.entry.js +0 -1
- package/dist/siemens-ix/p-957439fa.entry.js +0 -1
- package/dist/siemens-ix/p-963a2b1c.entry.js +0 -1
- package/dist/siemens-ix/p-9987b6aa.entry.js +0 -1
- package/dist/siemens-ix/p-9ab70f63.entry.js +0 -1
- package/dist/siemens-ix/p-9b042e1e.entry.js +0 -1
- package/dist/siemens-ix/p-9cc7b831.entry.js +0 -1
- package/dist/siemens-ix/p-9cd5c8fd.entry.js +0 -1
- package/dist/siemens-ix/p-9d26ab4c.entry.js +0 -1
- package/dist/siemens-ix/p-9f22ba26.entry.js +0 -1
- package/dist/siemens-ix/p-BBzEV-f4.js +0 -1
- package/dist/siemens-ix/p-BEPo7U1W.js +0 -2
- package/dist/siemens-ix/p-BH3f5fa3.js +0 -1
- package/dist/siemens-ix/p-BLaucX4x.js +0 -1
- package/dist/siemens-ix/p-BUNsXW03.js +0 -1
- package/dist/siemens-ix/p-BXpulp6I.js +0 -1
- package/dist/siemens-ix/p-BayAOLV_.js +0 -1
- package/dist/siemens-ix/p-BdCnOrqW.js +0 -1
- package/dist/siemens-ix/p-BhgW5qDm.js +0 -1
- package/dist/siemens-ix/p-BncjKdXL.js +0 -1
- package/dist/siemens-ix/p-BtTxCH_z.js +0 -1
- package/dist/siemens-ix/p-BvFOMxgl.js +0 -1
- package/dist/siemens-ix/p-C6fzB3UQ.js +0 -1
- package/dist/siemens-ix/p-CAqtPJ4-.js +0 -1
- package/dist/siemens-ix/p-CFRrPFxi.js +0 -1
- package/dist/siemens-ix/p-CUWFODSd.js +0 -1
- package/dist/siemens-ix/p-CZsAGuDS.js +0 -1
- package/dist/siemens-ix/p-Cv_GwYyx.js +0 -1
- package/dist/siemens-ix/p-D3K9vmFp.js +0 -1
- package/dist/siemens-ix/p-DAzBNVe7.js +0 -1
- package/dist/siemens-ix/p-DKTq7BLY.js +0 -1
- package/dist/siemens-ix/p-EA1w1TTe.js +0 -1
- package/dist/siemens-ix/p-GJWUiWDT.js +0 -1
- package/dist/siemens-ix/p-Tgy1PBFv.js +0 -1
- package/dist/siemens-ix/p-W85AQR46.js +0 -1
- package/dist/siemens-ix/p-a2651024.entry.js +0 -1
- package/dist/siemens-ix/p-a37cd269.entry.js +0 -1
- package/dist/siemens-ix/p-a41f8be4.entry.js +0 -1
- package/dist/siemens-ix/p-a91f7f14.entry.js +0 -1
- package/dist/siemens-ix/p-aa36835f.entry.js +0 -1
- package/dist/siemens-ix/p-ab9cbf10.entry.js +0 -1
- package/dist/siemens-ix/p-ada8618e.entry.js +0 -1
- package/dist/siemens-ix/p-ae55e8e6.entry.js +0 -1
- package/dist/siemens-ix/p-b2bd816c.entry.js +0 -1
- package/dist/siemens-ix/p-b41a3733.entry.js +0 -1
- package/dist/siemens-ix/p-b6ae81a9.entry.js +0 -1
- package/dist/siemens-ix/p-bafa90ed.entry.js +0 -1
- package/dist/siemens-ix/p-bbcef047.entry.js +0 -1
- package/dist/siemens-ix/p-bcj7UEIC.js +0 -1
- package/dist/siemens-ix/p-c187909f.entry.js +0 -1
- package/dist/siemens-ix/p-c94c1d45.entry.js +0 -1
- package/dist/siemens-ix/p-ced4c721.entry.js +0 -1
- package/dist/siemens-ix/p-d3ad73e1.entry.js +0 -1
- package/dist/siemens-ix/p-d3afd82f.entry.js +0 -1
- package/dist/siemens-ix/p-d7086b5a.entry.js +0 -1
- package/dist/siemens-ix/p-d8bc930c.entry.js +0 -1
- package/dist/siemens-ix/p-daadd1ae.entry.js +0 -1
- package/dist/siemens-ix/p-dd3bb443.entry.js +0 -1
- package/dist/siemens-ix/p-df0fc6d4.entry.js +0 -1
- package/dist/siemens-ix/p-e09125fd.entry.js +0 -1
- package/dist/siemens-ix/p-e1978224.entry.js +0 -1
- package/dist/siemens-ix/p-e1c15a19.entry.js +0 -1
- package/dist/siemens-ix/p-e91b7758.entry.js +0 -1
- package/dist/siemens-ix/p-f75eab15.entry.js +0 -1
- package/dist/siemens-ix/p-f7b73fa9.entry.js +0 -1
- package/dist/siemens-ix/p-f8a078e5.entry.js +0 -1
- package/dist/siemens-ix/p-faa0599d.entry.js +0 -1
- package/dist/siemens-ix/p-fb077c75.entry.js +0 -1
- package/dist/siemens-ix/p-fb52d56c.entry.js +0 -1
- package/dist/siemens-ix/p-fb75665a.entry.js +0 -1
- package/dist/siemens-ix/p-fce55dc2.entry.js +0 -1
- package/dist/siemens-ix/p-fe1c3443.entry.js +0 -1
- package/dist/siemens-ix/p-fe5f2f38.entry.js +0 -1
- package/dist/siemens-ix/p-gkooEHol.js +0 -1
- package/dist/siemens-ix/p-i60z1FJC.js +0 -1
- package/dist/types/components/application-sidebar/application-sidebar.d.ts +0 -7
- package/dist/types/components/application-sidebar/events.d.ts +0 -4
- package/dist/types/components/drawer/drawer.d.ts +0 -62
- package/dist/types/components/drawer/test/animejs.mock.d.ts +0 -0
- package/dist/types/components/input-group/input-group.d.ts +0 -25
- package/dist/types/components/menu-category/enter-leave.d.ts +0 -7
- package/dist/types/components/utils/menu-tabs/menu-tabs-fc.d.ts +0 -8
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +0 -46
- /package/scss/{_common-variables.scss → misc/_common-variables.scss} +0 -0
- /package/scss/{_normalize.scss → misc/_normalize.scss} +0 -0
- /package/scss/{_z-index.scss → misc/_z-index.scss} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host,
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, M as Mixin, c as createEvent, g as getElement } from './index-Ca5WUunf.js';
|
|
2
2
|
import { m as matchBreakpoint } from './breakpoints-D_Hmobxf.js';
|
|
3
|
-
import {
|
|
4
|
-
import { D as
|
|
5
|
-
import { O as OnListener } from './listener-
|
|
6
|
-
import {
|
|
3
|
+
import { D as DateTime } from './datetime-D1WplX1z.js';
|
|
4
|
+
import { D as DefaultMixins, h as hasKeyboardMode } from './component-Chfbghog.js';
|
|
5
|
+
import { O as OnListener } from './listener-Dk6XGheN.js';
|
|
6
|
+
import { b as closestPassShadow } from './shadow-dom-BIe8Nw9M.js';
|
|
7
|
+
import { g as getTimePickerConstraintBounds, i as isWithinTimePickerConstraints, h as hasActiveTimePickerConstraints, t as timeOfDayRangeIntersectsInclusiveBounds } from './time-picker-constraints-Bsg2RskF.js';
|
|
8
|
+
import './focus-utilities-DnaItyVQ.js';
|
|
7
9
|
|
|
8
10
|
const colCss = () => `:host{position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px;padding:calc(var(--ix-layout-grid-gutter) * 0.5)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host{}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host{}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host{}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host{}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}`;
|
|
9
11
|
|
|
@@ -11,6 +13,23 @@ const Col = class {
|
|
|
11
13
|
constructor(hostRef) {
|
|
12
14
|
registerInstance(this, hostRef);
|
|
13
15
|
}
|
|
16
|
+
static Breakpoints = ['', 'sm', 'md', 'lg'];
|
|
17
|
+
/**
|
|
18
|
+
* Size of the column
|
|
19
|
+
*/
|
|
20
|
+
size;
|
|
21
|
+
/**
|
|
22
|
+
* Size of the column for sm screens
|
|
23
|
+
*/
|
|
24
|
+
sizeSm;
|
|
25
|
+
/**
|
|
26
|
+
* Size of the column for md screens
|
|
27
|
+
*/
|
|
28
|
+
sizeMd;
|
|
29
|
+
/**
|
|
30
|
+
* Size of the column for lg screens
|
|
31
|
+
*/
|
|
32
|
+
sizeLg;
|
|
14
33
|
onResize() {
|
|
15
34
|
forceUpdate(this);
|
|
16
35
|
}
|
|
@@ -62,13 +81,293 @@ const Col = class {
|
|
|
62
81
|
};
|
|
63
82
|
}
|
|
64
83
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '92516eb3dfd8c82f3edd51707861615729ae0d45', style: {
|
|
85
|
+
...this.getColumnSizeStyling(),
|
|
86
|
+
} }, h("slot", { key: '43e5c2cf90ba0f62a01bc47f22420c9d102fd7c4' })));
|
|
66
87
|
}
|
|
67
88
|
};
|
|
68
|
-
Col.Breakpoints = ['', 'sm', 'md', 'lg'];
|
|
69
89
|
Col.style = colCss();
|
|
70
90
|
|
|
71
|
-
const
|
|
91
|
+
const layoutGridCss = () => `:host{--ix-layout-grid-gutter:24px;display:block;flex:1 1 0%;width:100%;padding-left:calc(var(--ix-layout-grid-gutter) * 0.5);padding-right:calc(var(--ix-layout-grid-gutter) * 0.5)}:host(.no-margin){padding-left:0;padding-right:0}`;
|
|
92
|
+
|
|
93
|
+
const LayoutGrid = class {
|
|
94
|
+
constructor(hostRef) {
|
|
95
|
+
registerInstance(this, hostRef);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The grid will not have any horizontal padding
|
|
99
|
+
*/
|
|
100
|
+
noMargin = false;
|
|
101
|
+
/**
|
|
102
|
+
* Grid gap
|
|
103
|
+
*/
|
|
104
|
+
gap = '24';
|
|
105
|
+
/**
|
|
106
|
+
* Overwrite the default number of columns. Choose between 2 and 12 columns.
|
|
107
|
+
*/
|
|
108
|
+
columns = 12;
|
|
109
|
+
render() {
|
|
110
|
+
return (h(Host, { key: 'ad1e96a96876525cbe9da91c13786d914bb3ce6b', class: {
|
|
111
|
+
'no-margin': this.noMargin,
|
|
112
|
+
}, style: {
|
|
113
|
+
'--ix-layout-grid-columns': `${this.columns}`,
|
|
114
|
+
'--ix-layout-grid-gutter': `${this.gap}px`,
|
|
115
|
+
} }, h("slot", { key: '6eb10f5be8cc7aa38e19e38b33d2b5c07e1fe421' })));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
LayoutGrid.style = layoutGridCss();
|
|
119
|
+
|
|
120
|
+
const rowCss = () => `:host{display:flex;flex-wrap:wrap}:host(:not(:first-of-type)){margin-block-start:var(--ix-layout-grid-row-margin, 0)}`;
|
|
121
|
+
|
|
122
|
+
const Row = class {
|
|
123
|
+
constructor(hostRef) {
|
|
124
|
+
registerInstance(this, hostRef);
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
return (h(Host, { key: '88036865546dd8f57cac8099b7bef38d6420c722' }, h("slot", { key: '948ec4b33c9f03caa4feec78d76f397bd320d045' })));
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
Row.style = rowCss();
|
|
131
|
+
|
|
132
|
+
/*
|
|
133
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
134
|
+
*
|
|
135
|
+
* SPDX-License-Identifier: MIT
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the MIT license found in the
|
|
138
|
+
* LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* Builds the discrete values shown in each time-picker column.
|
|
142
|
+
*/
|
|
143
|
+
function buildTimePickerColumnNumberArrays(intervals, timeRef) {
|
|
144
|
+
const { hourInterval, minuteInterval, secondInterval, millisecondInterval } = intervals;
|
|
145
|
+
let hourNumbers;
|
|
146
|
+
if (timeRef === undefined) {
|
|
147
|
+
hourNumbers = Array.from({ length: Math.ceil(24 / hourInterval) }, (_, i) => i * hourInterval);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
hourNumbers = Array.from({ length: Math.ceil(12 / hourInterval) }, (_, i) => i * hourInterval + 1).filter((hour) => hour <= 12);
|
|
151
|
+
}
|
|
152
|
+
const minuteNumbers = Array.from({ length: Math.ceil(60 / minuteInterval) }, (_, i) => i * minuteInterval);
|
|
153
|
+
const secondNumbers = Array.from({ length: Math.ceil(60 / secondInterval) }, (_, i) => i * secondInterval);
|
|
154
|
+
const millisecondsNumbers = Array.from({ length: Math.ceil(1000 / millisecondInterval) }, (_, i) => i * millisecondInterval);
|
|
155
|
+
return { hourNumbers, minuteNumbers, secondNumbers, millisecondsNumbers };
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/*
|
|
159
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
160
|
+
*
|
|
161
|
+
* SPDX-License-Identifier: MIT
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the MIT license found in the
|
|
164
|
+
* LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/
|
|
166
|
+
function maxValueForNonHourUnit(unit) {
|
|
167
|
+
switch (unit) {
|
|
168
|
+
case 'minute':
|
|
169
|
+
case 'second':
|
|
170
|
+
return 59;
|
|
171
|
+
case 'millisecond':
|
|
172
|
+
return 999;
|
|
173
|
+
case 'hour':
|
|
174
|
+
return 23;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function mapHourColumnValue(rawValue, timeRef) {
|
|
178
|
+
if (timeRef === 'PM') {
|
|
179
|
+
return {
|
|
180
|
+
value: rawValue === 12 ? 12 : rawValue + 12,
|
|
181
|
+
maxValue: 23,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
if (timeRef === 'AM') {
|
|
185
|
+
return {
|
|
186
|
+
value: rawValue === 12 ? 0 : rawValue,
|
|
187
|
+
maxValue: 11,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
return { value: rawValue, maxValue: 23 };
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Applies a raw column value to a base time (including 12h rules).
|
|
194
|
+
*/
|
|
195
|
+
function computeTimeWithRawUnitValue(baseTime, unit, rawValue, timeRef) {
|
|
196
|
+
let value;
|
|
197
|
+
let maxValue;
|
|
198
|
+
if (unit === 'hour') {
|
|
199
|
+
const mapped = mapHourColumnValue(rawValue, timeRef);
|
|
200
|
+
value = mapped.value;
|
|
201
|
+
maxValue = mapped.maxValue;
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
value = rawValue;
|
|
205
|
+
maxValue = maxValueForNonHourUnit(unit);
|
|
206
|
+
}
|
|
207
|
+
if (value > maxValue) {
|
|
208
|
+
value = maxValue;
|
|
209
|
+
}
|
|
210
|
+
else if (value < 0) {
|
|
211
|
+
value = 0;
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
return baseTime.set({
|
|
215
|
+
[unit]: value,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/*
|
|
224
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
225
|
+
*
|
|
226
|
+
* SPDX-License-Identifier: MIT
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the MIT license found in the
|
|
229
|
+
* LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/
|
|
231
|
+
function formatTimePickerUnitValue(unit, value) {
|
|
232
|
+
if (unit === 'millisecond') {
|
|
233
|
+
return value.toString().padStart(3, '0');
|
|
234
|
+
}
|
|
235
|
+
return value < 10 ? `0${value}` : value.toString();
|
|
236
|
+
}
|
|
237
|
+
function getTimePickerColumnSeparator(currentIndex, descriptors) {
|
|
238
|
+
if (currentIndex + 1 < descriptors.length) {
|
|
239
|
+
const nextUnit = descriptors[currentIndex + 1].unit;
|
|
240
|
+
return nextUnit === 'millisecond' ? '.' : ':';
|
|
241
|
+
}
|
|
242
|
+
return ':';
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/*
|
|
246
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
247
|
+
*
|
|
248
|
+
* SPDX-License-Identifier: MIT
|
|
249
|
+
*
|
|
250
|
+
* This source code is licensed under the MIT license found in the
|
|
251
|
+
* LICENSE file in the root directory of this source tree.
|
|
252
|
+
*/
|
|
253
|
+
/**
|
|
254
|
+
* Luxon format patterns used to decide which time-picker columns are shown.
|
|
255
|
+
*/
|
|
256
|
+
const LUXON_FORMAT_PATTERNS = {
|
|
257
|
+
// h, hh, H, HH and various time formats that include hours
|
|
258
|
+
hours: /\b[Hh]\b|HH|hh|H{3,4}|h{3,4}|t|tt|ttt|tttt|T|TT|TTT|TTTT/,
|
|
259
|
+
// m, mm and time formats that include minutes
|
|
260
|
+
minutes: /\bm\b|mm|t|tt|ttt|tttt|T|TT|TTT|TTTT/,
|
|
261
|
+
// s, ss and time formats that include seconds
|
|
262
|
+
seconds: /\bs\b|ss|tt|ttt|tttt|TT|TTT|TTTT/,
|
|
263
|
+
// S–SSS, u–uuu (fractional seconds); ttt/tttt/TTT/TTTT include sub-second parts
|
|
264
|
+
milliseconds: /S{1,3}|u{1,3}|[tT]{3,4}/,
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Whether the Luxon format string uses 12-hour clock semantics for the picker.
|
|
268
|
+
*/
|
|
269
|
+
function isFormat12Hour(format) {
|
|
270
|
+
// Remove any text that's inside quotes (literal text in Luxon format strings)
|
|
271
|
+
let cleanFormat = '';
|
|
272
|
+
let inQuote = false;
|
|
273
|
+
for (const char of format) {
|
|
274
|
+
if (char === "'") {
|
|
275
|
+
inQuote = !inQuote;
|
|
276
|
+
}
|
|
277
|
+
else if (!inQuote) {
|
|
278
|
+
cleanFormat += char;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
// Check for specific 12-hour format tokens
|
|
282
|
+
// Case-sensitive matching to distinguish between 'h' and 'H'
|
|
283
|
+
return /[hat]/.test(cleanFormat);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/*
|
|
287
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
288
|
+
*
|
|
289
|
+
* SPDX-License-Identifier: MIT
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the MIT license found in the
|
|
292
|
+
* LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/
|
|
294
|
+
function getCandidateRangeForUnit(unit, candidate) {
|
|
295
|
+
if (!candidate.isValid) {
|
|
296
|
+
return null;
|
|
297
|
+
}
|
|
298
|
+
if (unit === 'hour') {
|
|
299
|
+
return {
|
|
300
|
+
start: candidate.startOf('hour'),
|
|
301
|
+
end: candidate.endOf('hour'),
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
if (unit === 'minute') {
|
|
305
|
+
return {
|
|
306
|
+
start: candidate.set({ second: 0, millisecond: 0 }),
|
|
307
|
+
end: candidate.set({ second: 59, millisecond: 999 }),
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
if (unit === 'second') {
|
|
311
|
+
return {
|
|
312
|
+
start: candidate.set({ millisecond: 0 }),
|
|
313
|
+
end: candidate.set({ millisecond: 999 }),
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
return {
|
|
317
|
+
start: candidate,
|
|
318
|
+
end: candidate,
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function isSelectableForUnitWithinBounds(unit, candidate, bounds) {
|
|
322
|
+
const candidateRange = getCandidateRangeForUnit(unit, candidate);
|
|
323
|
+
if (!candidateRange) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
const { min, max } = bounds;
|
|
327
|
+
const { start, end } = candidateRange;
|
|
328
|
+
if (min && end < min) {
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
if (max && start > max) {
|
|
332
|
+
return false;
|
|
333
|
+
}
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/*
|
|
338
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
339
|
+
*
|
|
340
|
+
* SPDX-License-Identifier: MIT
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the MIT license found in the
|
|
343
|
+
* LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/
|
|
345
|
+
/**
|
|
346
|
+
* Moves one step in a ring over `values`, skipping entries where `canSelect`
|
|
347
|
+
* is false (same algorithm as {@link TimePicker#stepFocusedValue}).
|
|
348
|
+
*
|
|
349
|
+
* @returns the next selectable value, or `null` if `values` is empty or no entry is selectable.
|
|
350
|
+
*/
|
|
351
|
+
function findNextSelectableRingValue(values, currentValue, direction, canSelect) {
|
|
352
|
+
if (!values.length) {
|
|
353
|
+
return null;
|
|
354
|
+
}
|
|
355
|
+
let idx = values.indexOf(currentValue);
|
|
356
|
+
if (idx === -1) {
|
|
357
|
+
// Start "before" first or "after" last so the first loop advance lands on an array edge.
|
|
358
|
+
idx = direction === 1 ? -1 : values.length;
|
|
359
|
+
}
|
|
360
|
+
for (const _ of values) {
|
|
361
|
+
idx = (idx + direction + values.length) % values.length;
|
|
362
|
+
const candidate = values[idx];
|
|
363
|
+
if (canSelect(candidate)) {
|
|
364
|
+
return candidate;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return null;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
const timePickerCss = () => `.ix-form-control,.ix-form-control-plaintext{color:var(--theme-input--color);border-radius:var(--theme-input--border-radius);height:2rem;min-height:2rem;min-width:2rem;background-color:var(--theme-input--background);border:solid 1px var(--theme-input--border-color);box-shadow:var(--theme-input--box-shadow);padding-inline-start:0.5rem;padding-inline-end:0.5rem;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ix-form-control::-moz-placeholder,.ix-form-control-plaintext::-moz-placeholder{color:var(--theme-input-hint--color)}.ix-form-control::placeholder,.ix-form-control-plaintext::placeholder{color:var(--theme-input-hint--color)}.ix-form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled),.ix-form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled){cursor:pointer}.ix-form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled),.ix-form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled){cursor:pointer}.ix-form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.ix-form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled).hover,.ix-form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.ix-form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled).hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover);cursor:auto}.ix-form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.ix-form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled).hover,.ix-form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.ix-form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled).hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover);cursor:auto}.ix-form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible,.ix-form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline-offset:var(--theme-input--focus--outline-offset);box-shadow:var(--theme-input--box-shadow);outline:1px solid var(--theme-color-focus-bdr)}.ix-form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible,.ix-form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline-offset:var(--theme-input--focus--outline-offset);box-shadow:var(--theme-input--box-shadow);outline:1px solid var(--theme-color-focus-bdr)}.ix-form-control:focus-visible{color:var(--theme-input--color)}.ix-form-control[type=number]::-webkit-inner-spin-button{margin-right:-2px;margin-left:2px;display:none}.ix-form-control[type=number]{text-align:right}.ix-form-control.readonly,.ix-form-control[readonly]{background:transparent !important;border-block-start:none !important;border-inline-start:none !important;border-inline-end:none !important;border-radius:0rem}.ix-form-control:-moz-read-only{box-shadow:none !important;outline:none !important;border-color:var(--theme-input--border-color);cursor:default !important}.ix-form-control:read-only,.ix-form-control[readonly],.ix-form-control[readOnly],.ix-form-control.readonly{box-shadow:none !important;outline:none !important;border-color:var(--theme-input--border-color);cursor:default !important}.ix-form-control:read-only::-moz-placeholder,.ix-form-control[readonly]::-moz-placeholder,.ix-form-control[readOnly]::-moz-placeholder,.ix-form-control.readonly::-moz-placeholder{color:transparent}.ix-form-control:-moz-read-only::placeholder{color:transparent}.ix-form-control:read-only::placeholder,.ix-form-control[readonly]::placeholder,.ix-form-control[readOnly]::placeholder,.ix-form-control.readonly::placeholder{color:transparent}.ix-form-control:disabled,.ix-form-control.disabled{background:transparent !important;border-block-start:none !important;border-inline-start:none !important;border-inline-end:none !important;border-radius:0rem;color:var(--theme-color-weak-text);border-color:var(--theme-input--border-color-bottom--disabled)}.ix-form-control:disabled::-moz-placeholder,.ix-form-control.disabled::-moz-placeholder{color:transparent}.ix-form-control:disabled::placeholder,.ix-form-control.disabled::placeholder{color:transparent}.ix-form-control-plaintext{outline:0}.form-group{position:relative}.input-wrapper{display:flex;position:relative;align-items:center;flex-wrap:nowrap}.input-wrapper>.glyph{display:block;position:absolute;margin-inline-start:0.312rem;color:var(--theme-color-std-text)}.input-wrapper>input{padding-inline-start:2.2rem}select.ix-form-control{padding:0 0.312rem}textarea.ix-form-control{padding:0.375rem 0.5rem}input.ix-form-control.disabled,input.ix-form-control:disabled{color:var(--theme-input--color--disabled)}input.ix-form-control:-moz-read-only{cursor:default}input.ix-form-control:read-only,input.ix-form-control.readonly{cursor:default}input{min-height:2rem;width:auto;padding:0.25rem 0.5rem;background-color:var(--theme-input--background);color:var(--theme-input--color);-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;text-overflow:ellipsis;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color);border-radius:var(--theme-input--border-radius);box-shadow:var(--theme-input--box-shadow);font-feature-settings:"clig" off, "liga" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}input[type=number]{text-align:right}input[type=number]::-webkit-inner-spin-button{margin-right:-2px;margin-left:2px;display:none}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}input:-webkit-autofill,input:autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}input::-moz-placeholder{color:var(--theme-input-hint--color)}input::placeholder{color:var(--theme-input-hint--color)}input.hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only),input:hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only){border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}input.hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only),input:hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only){border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}input.focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only),input:focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only){outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}input.focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only),input:focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only){outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}input:-moz-read-only{box-shadow:none;background-color:transparent;outline:none;border:var(--theme-input--border-thickness) solid var(--theme-input--border-color--readonly)}input.read-only,input:read-only{box-shadow:none;background-color:transparent;outline:none;border:var(--theme-input--border-thickness) solid var(--theme-input--border-color--readonly)}input.read-only::-moz-placeholder,input:read-only::-moz-placeholder{color:transparent}input:-moz-read-only::placeholder{color:transparent}input.read-only::placeholder,input:read-only::placeholder{color:transparent}input:disabled,input.disabled{box-shadow:none;background-color:transparent;outline:none;border:var(--theme-input--border-thickness) solid var(--theme-input--border-color--disabled)}input:disabled::-moz-placeholder,input.disabled::-moz-placeholder{color:transparent}input:disabled::placeholder,input.disabled::placeholder{color:transparent}textarea{min-height:2rem;width:auto;padding:0.25rem 0.5rem;background-color:var(--theme-input--background);color:var(--theme-input--color);-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;text-overflow:ellipsis;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color);border-radius:var(--theme-input--border-radius);box-shadow:var(--theme-input--box-shadow);font-feature-settings:"clig" off, "liga" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}textarea[type=number]{text-align:right}textarea[type=number]::-webkit-inner-spin-button{margin-right:-2px;margin-left:2px;display:none}textarea:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}textarea:-webkit-autofill,textarea:autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}textarea::-moz-placeholder{color:var(--theme-input-hint--color)}textarea::placeholder{color:var(--theme-input-hint--color)}textarea.hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only),textarea:hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only){border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}textarea.hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only),textarea:hover:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only){border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}textarea.focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only),textarea:focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:-moz-read-only){outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}textarea.focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only),textarea:focus:not(.readonly,.read-only,.disabled,[readonly],[disabled],:read-only){outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}textarea:-moz-read-only{box-shadow:none;background-color:transparent;outline:none;border:var(--theme-input--border-thickness) solid var(--theme-input--border-color--readonly)}textarea.read-only,textarea:read-only{box-shadow:none;background-color:transparent;outline:none;border:var(--theme-input--border-thickness) solid var(--theme-input--border-color--readonly)}textarea.read-only::-moz-placeholder,textarea:read-only::-moz-placeholder{color:transparent}textarea:-moz-read-only::placeholder{color:transparent}textarea.read-only::placeholder,textarea:read-only::placeholder{color:transparent}textarea:disabled,textarea.disabled{box-shadow:none;background-color:transparent;outline:none;border:var(--theme-input--border-thickness) solid var(--theme-input--border-color--disabled)}textarea:disabled::-moz-placeholder,textarea.disabled::-moz-placeholder{color:transparent}textarea:disabled::placeholder,textarea.disabled::placeholder{color:transparent}textarea{min-height:2rem;padding:calc(0.375rem - var(--theme-input--border-thickness)) calc(0.5rem - var(--theme-input--border-thickness))}textarea:not([rows]){height:3.25rem}textarea.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]),input.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]){border-color:var(--theme-input--border-color--info)}textarea.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):hover,input.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):hover{border-color:var(--theme-input--border-color--info--hover) !important}textarea.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):active,input.ix-info:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):active{border-color:var(--theme-input--border-color--info--active) !important}textarea.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]),input.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]){background-color:var(--theme-input--background--warning);border-color:var(--theme-input--border-color--warning--active) !important}textarea.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):hover,input.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):hover{background-color:var(--theme-input--background--warning--hover);border-color:var(--theme-input--border-color--warning--hover) !important}textarea.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):active,input.ix-warning:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):active{border-color:var(--theme-input--border-color--warning--active) !important}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]),input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]){background-color:var(--theme-input--background--invalid);border-color:var(--theme-input--border-color--invalid) !important}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):hover,input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):hover{background-color:var(--theme-input--background--invalid--hover);border-color:var(--theme-input--border-color--invalid--hover) !important}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):active,input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):not(.readonly):not([readonly]):active{border-color:var(--theme-input--border-color--invalid--active) !important}:host{display:block;position:relative;width:-moz-fit-content;width:fit-content}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host{}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host{}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host{}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host{}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .standaloneAppearance{box-shadow:none}:host .hidden{display:none}:host .header{display:flex;align-items:center;justify-content:center;height:2rem}:host .clock{display:flex;justify-content:center;align-items:start}:host .clock .flex{display:flex;height:100%;align-items:start}:host .clock .flex .columns{display:flex;flex-direction:column;align-items:center;justify-content:space-around}:host .clock .flex .columns .column-header{height:2.5rem;width:2.5rem;line-height:2.5rem;text-align:center;color:var(--theme-color-soft-text);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host .clock .flex .column-separator{display:flex;align-items:center;justify-content:center;min-height:100%;margin-top:3rem;width:0.5rem}:host .clock .element-list{list-style-type:none;overflow:auto;padding:0.0625rem;margin:-0.0625rem;max-height:15.75rem}:host .clock .element-list button{all:unset}:host .clock .element-list .element-container{box-sizing:border-box;width:2.5rem;height:2.5rem;margin-bottom:0.125rem;display:flex;justify-content:center;align-items:center;cursor:pointer;color:var(--theme-color-primary)}:host .clock .element-list .element-container:hover:not(.disabled){background-color:var(--theme-datepicker-day--background--hover)}:host .clock .element-list .element-container:focus-visible{box-shadow:0 0 0 1px var(--theme-color-focus-bdr)}:host .clock .element-list .element-container.disabled{cursor:default}:host .clock .element-list .element-container.disabled:not(.selected){color:var(--theme-color-weak-text)}:host .clock .element-list .element-container:not(.selected).disabled:hover,:host .clock .element-list .element-container:not(.selected).disabled:active{background-color:transparent}:host .clock .element-list .element-container.selected{background-color:var(--theme-datepicker-day--background--selected);color:var(--theme-datepicker-day--color--selected);font-weight:var(--theme-font-weight-bold)}:host .clock .element-list .element-container.selected:hover:not(.disabled){background-color:var(--theme-datepicker-day--background--selected-hover)}:host .clock .element-list .element-container.selected:focus-visible{border:0.0625rem solid var(--theme-color-inv-contrast-text)}:host .clock .element-list .element-container.selected.disabled{background-color:var(--theme-datepicker-day--background--selected-disabled);color:var(--theme-datepicker-day--color--selected-disabled)}:host .clock .element-list .element-list-padding{width:2.5rem;height:13.125rem;min-height:13.125rem}:host .clock div.element-list{scrollbar-width:none;-ms-overflow-style:none}:host .clock div.element-list::-webkit-scrollbar{display:none}:host .footer{display:flex;justify-content:space-between;gap:0.5rem;flex-wrap:wrap}:host .footer .confirm-button{margin-left:auto}:host .footer--compact{flex-direction:column;align-items:center}:host .footer--compact .confirm-button{margin-left:initial}:host .default-space{margin-left:1rem}:host .text-align{text-align:center}`;
|
|
72
371
|
|
|
73
372
|
/*
|
|
74
373
|
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
@@ -88,576 +387,891 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
88
387
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
89
388
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
90
389
|
};
|
|
91
|
-
const
|
|
390
|
+
const HOUR_INTERVAL_DEFAULT = 1;
|
|
391
|
+
const MINUTE_INTERVAL_DEFAULT = 1;
|
|
392
|
+
const SECOND_INTERVAL_DEFAULT = 1;
|
|
393
|
+
const MILLISECOND_INTERVAL_DEFAULT = 100;
|
|
394
|
+
const CONFIRM_BUTTON_DEFAULT = 'Confirm';
|
|
395
|
+
const HEADER_DEFAULT = 'Time';
|
|
396
|
+
const FORMATTED_TIME_EMPTY = {
|
|
397
|
+
hour: '',
|
|
398
|
+
minute: '',
|
|
399
|
+
second: '',
|
|
400
|
+
millisecond: '',
|
|
401
|
+
};
|
|
402
|
+
const TimePicker = class extends Mixin(...DefaultMixins) {
|
|
92
403
|
constructor(hostRef) {
|
|
404
|
+
super();
|
|
93
405
|
registerInstance(this, hostRef);
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
this.singleSelection = false;
|
|
106
|
-
/**
|
|
107
|
-
* Corner style.
|
|
108
|
-
*/
|
|
109
|
-
this.corners = 'rounded';
|
|
110
|
-
/**
|
|
111
|
-
* The earliest date that can be selected by the date picker.
|
|
112
|
-
* If not set there will be no restriction.
|
|
113
|
-
*/
|
|
114
|
-
this.minDate = '';
|
|
115
|
-
/**
|
|
116
|
-
* The latest date that can be selected by the date picker.
|
|
117
|
-
* If not set there will be no restriction.
|
|
118
|
-
*/
|
|
119
|
-
this.maxDate = '';
|
|
120
|
-
/**
|
|
121
|
-
* Text of the date select button.
|
|
122
|
-
*/
|
|
123
|
-
this.i18nDone = 'Done';
|
|
124
|
-
/**
|
|
125
|
-
* ARIA label for the previous month icon button.
|
|
126
|
-
* Will be set as aria-label on the nested HTML button element.
|
|
127
|
-
*/
|
|
128
|
-
this.ariaLabelPreviousMonthButton = 'Previous month';
|
|
129
|
-
/**
|
|
130
|
-
* ARIA label for the next month icon button.
|
|
131
|
-
* Will be set as aria-label on the nested HTML button element.
|
|
132
|
-
*/
|
|
133
|
-
this.ariaLabelNextMonthButton = 'Next month';
|
|
134
|
-
/**
|
|
135
|
-
* The index of which day to start the week on, based on the Locale#weekdays array.
|
|
136
|
-
* E.g. if the locale is en-us, weekStartIndex = 1 results in starting the week on Monday.
|
|
137
|
-
*/
|
|
138
|
-
this.weekStartIndex = 0;
|
|
139
|
-
/**
|
|
140
|
-
* Shows week numbers displayed on the left side of the date picker.
|
|
141
|
-
*
|
|
142
|
-
* @since 3.0.0
|
|
143
|
-
*/
|
|
144
|
-
this.showWeekNumbers = false;
|
|
145
|
-
/** @internal */
|
|
146
|
-
this.embedded = false;
|
|
147
|
-
/** @internal */
|
|
148
|
-
this.today = DateTime.now().toISO();
|
|
149
|
-
/**
|
|
150
|
-
* Enable Popover API rendering for dropdown.
|
|
151
|
-
*
|
|
152
|
-
* @default false
|
|
153
|
-
* @since 4.3.0
|
|
154
|
-
*/
|
|
155
|
-
this.enableTopLayer = false;
|
|
156
|
-
this.selectedYear = 0;
|
|
157
|
-
this.tempYear = 0;
|
|
158
|
-
this.startYear = 0;
|
|
159
|
-
this.endYear = 0;
|
|
160
|
-
this.selectedMonth = 0;
|
|
161
|
-
this.tempMonth = 0;
|
|
162
|
-
this.dropdownButtonRef = makeRef();
|
|
163
|
-
this.yearContainerRef = makeRef();
|
|
164
|
-
this.firstMonthRef = makeRef();
|
|
165
|
-
this.focusedDay = 1;
|
|
166
|
-
this.isDayFocus = false;
|
|
167
|
-
this.monthChangedFromFocus = false;
|
|
168
|
-
this.DAYS_IN_WEEK = 7;
|
|
169
|
-
this.calendar = [];
|
|
170
|
-
}
|
|
171
|
-
watchFromPropHandler(newValue) {
|
|
406
|
+
this.timeSelect = createEvent(this, "timeSelect", 7);
|
|
407
|
+
this.timeChange = createEvent(this, "timeChange", 7);
|
|
408
|
+
}
|
|
409
|
+
get hostElement() { return getElement(this); }
|
|
410
|
+
/**
|
|
411
|
+
* Format of time string.
|
|
412
|
+
* See {@link https://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
413
|
+
* Note: Formats that combine date and time (like f or F) are not supported. Timestamp tokens x and X are not supported either.
|
|
414
|
+
*/
|
|
415
|
+
format = 'TT';
|
|
416
|
+
watchFormatIntervalPropHandler(newValue) {
|
|
172
417
|
if (!newValue) {
|
|
173
|
-
this.currFromDate = undefined;
|
|
174
418
|
return;
|
|
175
419
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
420
|
+
this.initPicker();
|
|
421
|
+
this.updateScrollPositions();
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Corner style.
|
|
425
|
+
*/
|
|
426
|
+
corners = 'rounded';
|
|
427
|
+
/**
|
|
428
|
+
* Embedded style (for use in other components).
|
|
429
|
+
*/
|
|
430
|
+
embedded = false;
|
|
431
|
+
/**
|
|
432
|
+
* @internal Temporary prop needed until datetime-picker is reworked for new design.
|
|
433
|
+
*/
|
|
434
|
+
dateTimePickerAppearance = false;
|
|
435
|
+
/**
|
|
436
|
+
* Hides the header of the picker.
|
|
437
|
+
*
|
|
438
|
+
* @since 3.2.0
|
|
439
|
+
*/
|
|
440
|
+
hideHeader = false;
|
|
441
|
+
/**
|
|
442
|
+
* Interval for hour selection.
|
|
443
|
+
*
|
|
444
|
+
* @since 3.2.0
|
|
445
|
+
*/
|
|
446
|
+
hourInterval = HOUR_INTERVAL_DEFAULT;
|
|
447
|
+
watchHourIntervalPropHandler(newValue) {
|
|
448
|
+
if (Number.isInteger(newValue) &&
|
|
449
|
+
newValue >= 0 &&
|
|
450
|
+
newValue <= (this.timeRef ? 12 : 23)) {
|
|
451
|
+
this.setTimePickerDescriptors();
|
|
452
|
+
return;
|
|
180
453
|
}
|
|
454
|
+
this.printIntervalError('hour', newValue);
|
|
455
|
+
this.hourInterval = HOUR_INTERVAL_DEFAULT;
|
|
181
456
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
457
|
+
/**
|
|
458
|
+
* Interval for minute selection.
|
|
459
|
+
*
|
|
460
|
+
* @since 3.2.0
|
|
461
|
+
*/
|
|
462
|
+
minuteInterval = MINUTE_INTERVAL_DEFAULT;
|
|
463
|
+
watchMinuteIntervalPropHandler(newValue) {
|
|
464
|
+
if (newValue >= 0 && newValue <= 59) {
|
|
465
|
+
this.setTimePickerDescriptors();
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
this.printIntervalError('minute', newValue);
|
|
469
|
+
this.minuteInterval = MINUTE_INTERVAL_DEFAULT;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Interval for second selection.
|
|
473
|
+
*
|
|
474
|
+
* @since 3.2.0
|
|
475
|
+
*/
|
|
476
|
+
secondInterval = SECOND_INTERVAL_DEFAULT;
|
|
477
|
+
watchSecondIntervalPropHandler(newValue) {
|
|
478
|
+
if (newValue >= 0 && newValue <= 59) {
|
|
479
|
+
this.setTimePickerDescriptors();
|
|
185
480
|
return;
|
|
186
481
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
482
|
+
this.printIntervalError('second', newValue);
|
|
483
|
+
this.secondInterval = SECOND_INTERVAL_DEFAULT;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Interval for millisecond selection.
|
|
487
|
+
*
|
|
488
|
+
* @since 3.2.0
|
|
489
|
+
*/
|
|
490
|
+
millisecondInterval = MILLISECOND_INTERVAL_DEFAULT;
|
|
491
|
+
watchMillisecondIntervalPropHandler(newValue) {
|
|
492
|
+
if (newValue >= 0 && newValue <= 999) {
|
|
493
|
+
this.setTimePickerDescriptors();
|
|
494
|
+
return;
|
|
191
495
|
}
|
|
496
|
+
this.printIntervalError('millisecond', newValue);
|
|
497
|
+
this.millisecondInterval = MILLISECOND_INTERVAL_DEFAULT;
|
|
498
|
+
}
|
|
499
|
+
printIntervalError(intervalName, value) {
|
|
500
|
+
console.error(`Value ${value} is not valid for ${intervalName}-interval. Falling back to default.`);
|
|
192
501
|
}
|
|
193
|
-
|
|
194
|
-
|
|
502
|
+
warnIfConstraintTimeInvalid(prop, value, omitUnparsableWarning) {
|
|
503
|
+
const trimmed = value?.trim();
|
|
504
|
+
if (!trimmed) {
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
const parsed = DateTime.fromFormat(trimmed, this.format);
|
|
508
|
+
if (parsed.isValid) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
if (omitUnparsableWarning) {
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
const detail = [parsed.invalidReason, parsed.invalidExplanation]
|
|
515
|
+
.filter(Boolean)
|
|
516
|
+
.join(': ');
|
|
517
|
+
console.warn(`[ix-time-picker] ${prop}="${trimmed}" does not match format "${this.format}". ` +
|
|
518
|
+
'The constraint is ignored until the value matches `format`.' +
|
|
519
|
+
(detail ? ` (${detail})` : ''));
|
|
520
|
+
}
|
|
521
|
+
warnIfConstraintRangeInverted(minValue, maxValue) {
|
|
522
|
+
const minTrimmed = minValue?.trim();
|
|
523
|
+
const maxTrimmed = maxValue?.trim();
|
|
524
|
+
if (!minTrimmed || !maxTrimmed) {
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
const minParsed = DateTime.fromFormat(minTrimmed, this.format);
|
|
528
|
+
const maxParsed = DateTime.fromFormat(maxTrimmed, this.format);
|
|
529
|
+
if (!minParsed.isValid || !maxParsed.isValid) {
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
if (minParsed > maxParsed) {
|
|
533
|
+
console.warn(`[ix-time-picker] minTime="${minTrimmed}" is later than maxTime="${maxTrimmed}" for format "${this.format}". ` +
|
|
534
|
+
'Both constraints are ignored.');
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
warnConstraintTimesIfInvalid(options) {
|
|
538
|
+
const omit = options?.omitUnparsableConstraintWarnings ?? false;
|
|
539
|
+
this.warnIfConstraintTimeInvalid('minTime', this.minTime, omit);
|
|
540
|
+
this.warnIfConstraintTimeInvalid('maxTime', this.maxTime, omit);
|
|
541
|
+
this.warnIfConstraintRangeInverted(this.minTime, this.maxTime);
|
|
195
542
|
}
|
|
196
543
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
* The locale applied is always `en-US`.
|
|
544
|
+
* Selected time value.
|
|
545
|
+
* Format has to match the `format` property.
|
|
200
546
|
*/
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
547
|
+
time;
|
|
548
|
+
watchTimePropHandler(newValue) {
|
|
549
|
+
if (newValue === undefined || newValue === '') {
|
|
550
|
+
this._time = this.getDefaultTime();
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
const timeFormat = DateTime.fromFormat(newValue, this.format);
|
|
554
|
+
if (!timeFormat.isValid) {
|
|
555
|
+
throw new Error('Format is not supported or not correct');
|
|
556
|
+
}
|
|
557
|
+
this._time = timeFormat;
|
|
558
|
+
}
|
|
559
|
+
/** Earliest selectable time (`format` tokens). Invalid non-empty values are ignored.
|
|
560
|
+
*
|
|
561
|
+
* @since 5.0.0 */
|
|
562
|
+
minTime;
|
|
563
|
+
/** Latest selectable time (`format` tokens). Invalid non-empty values are ignored.
|
|
564
|
+
*
|
|
565
|
+
* @since 5.0.0 */
|
|
566
|
+
maxTime;
|
|
567
|
+
watchMinTimePropHandler() {
|
|
568
|
+
this.warnConstraintTimesIfInvalid();
|
|
569
|
+
this.syncKeyboardFocusWithConstraints();
|
|
570
|
+
}
|
|
571
|
+
watchMaxTimePropHandler() {
|
|
572
|
+
this.warnConstraintTimesIfInvalid();
|
|
573
|
+
this.syncKeyboardFocusWithConstraints();
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Get default time value
|
|
577
|
+
* @returns DateTime.now() for empty state (no selection)
|
|
578
|
+
*/
|
|
579
|
+
getDefaultTime() {
|
|
580
|
+
return DateTime.now();
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Text of the time confirm button.
|
|
584
|
+
*/
|
|
585
|
+
i18nConfirmTime = CONFIRM_BUTTON_DEFAULT;
|
|
586
|
+
/**
|
|
587
|
+
* Text for the top header.
|
|
588
|
+
*/
|
|
589
|
+
i18nHeader = HEADER_DEFAULT;
|
|
590
|
+
/**
|
|
591
|
+
* Text for the hour column header.
|
|
592
|
+
*/
|
|
593
|
+
i18nHourColumnHeader = 'hr';
|
|
594
|
+
/**
|
|
595
|
+
* Text for the minute column header.
|
|
596
|
+
*/
|
|
597
|
+
// eslint-disable-next-line @stencil-community/decorators-style
|
|
598
|
+
i18nMinuteColumnHeader = 'min';
|
|
599
|
+
/**
|
|
600
|
+
* Text for the second column header.
|
|
601
|
+
*/
|
|
602
|
+
// eslint-disable-next-line @stencil-community/decorators-style
|
|
603
|
+
i18nSecondColumnHeader = 'sec';
|
|
604
|
+
/**
|
|
605
|
+
* Text for the millisecond column header.
|
|
606
|
+
*/
|
|
607
|
+
// eslint-disable-next-line @stencil-community/decorators-style
|
|
608
|
+
i18nMillisecondColumnHeader = 'ms';
|
|
609
|
+
/**
|
|
610
|
+
* Time event. Emitted when the user confirms the selected time.
|
|
611
|
+
*/
|
|
612
|
+
timeSelect;
|
|
613
|
+
/**
|
|
614
|
+
* Time change event. Emitted when the selected time changes while interacting with the picker.
|
|
615
|
+
*/
|
|
616
|
+
timeChange;
|
|
617
|
+
/**
|
|
618
|
+
* Get the current time based on the wanted format
|
|
619
|
+
*/
|
|
620
|
+
async getCurrentTime() {
|
|
621
|
+
return this._time?.toFormat(this.format);
|
|
622
|
+
}
|
|
623
|
+
_time;
|
|
624
|
+
onTimeChange() {
|
|
625
|
+
const formattedTimeOld = this.formattedTime;
|
|
626
|
+
this.setTimeRef();
|
|
627
|
+
this.formattedTime = this.getFormattedTime();
|
|
628
|
+
this.updateScrollPositions(formattedTimeOld);
|
|
629
|
+
}
|
|
630
|
+
timeRef;
|
|
631
|
+
formattedTime = FORMATTED_TIME_EMPTY;
|
|
632
|
+
timePickerDescriptors = [];
|
|
633
|
+
isUnitFocused = false;
|
|
634
|
+
focusedUnit = 'hour';
|
|
635
|
+
focusedValue = 0;
|
|
636
|
+
visibilityObserver;
|
|
637
|
+
focusScrollAlignment = 'start';
|
|
638
|
+
componentWillLoad() {
|
|
639
|
+
this.initPicker();
|
|
640
|
+
}
|
|
641
|
+
initPicker() {
|
|
642
|
+
let parsedTime;
|
|
643
|
+
let timePropDoesNotMatchFormat = false;
|
|
644
|
+
if (this.time) {
|
|
645
|
+
parsedTime = DateTime.fromFormat(this.time, this.format);
|
|
646
|
+
if (!parsedTime.isValid) {
|
|
647
|
+
timePropDoesNotMatchFormat = true;
|
|
648
|
+
console.error(`Invalid time format. The configured format does not match the format of the passed time. ${parsedTime.invalidReason}: ${parsedTime.invalidExplanation}`);
|
|
649
|
+
parsedTime = this.getDefaultTime();
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
else {
|
|
653
|
+
parsedTime = this.getDefaultTime();
|
|
654
|
+
}
|
|
655
|
+
this._time = parsedTime;
|
|
656
|
+
this.setTimeRef();
|
|
657
|
+
this.formattedTime = this.getFormattedTime();
|
|
658
|
+
this.setTimePickerDescriptors();
|
|
659
|
+
this.setInitialFocusedValueAndUnit();
|
|
660
|
+
this.watchHourIntervalPropHandler(this.hourInterval);
|
|
661
|
+
this.watchMinuteIntervalPropHandler(this.minuteInterval);
|
|
662
|
+
this.watchSecondIntervalPropHandler(this.secondInterval);
|
|
663
|
+
this.watchMillisecondIntervalPropHandler(this.millisecondInterval);
|
|
664
|
+
this.warnConstraintTimesIfInvalid({
|
|
665
|
+
omitUnparsableConstraintWarnings: timePropDoesNotMatchFormat,
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
componentDidLoad() {
|
|
669
|
+
super.componentDidLoad?.();
|
|
670
|
+
this.updateScrollPositions();
|
|
671
|
+
this.setupVisibilityObserver();
|
|
672
|
+
}
|
|
673
|
+
componentDidRender() {
|
|
674
|
+
if (!this.isUnitFocused) {
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
const elementContainer = this.getElementContainer(this.focusedUnit, this.focusedValue);
|
|
678
|
+
const elementList = this.getElementList(this.focusedUnit);
|
|
679
|
+
if (!elementContainer) {
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
if (hasKeyboardMode()) {
|
|
683
|
+
const active = this.hostElement.shadowRoot?.activeElement;
|
|
684
|
+
if (active !== elementContainer) {
|
|
685
|
+
elementContainer.focus({ preventScroll: true });
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
if (!this.isElementVisible(elementContainer, elementList)) {
|
|
689
|
+
this.scrollElementIntoView(elementContainer, elementList, this.focusScrollAlignment);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
disconnectedCallback() {
|
|
693
|
+
if (this.visibilityObserver) {
|
|
694
|
+
this.visibilityObserver.disconnect();
|
|
214
695
|
}
|
|
215
|
-
return {
|
|
216
|
-
from: _from,
|
|
217
|
-
to: undefined,
|
|
218
|
-
};
|
|
219
696
|
}
|
|
220
|
-
|
|
221
|
-
if (!this.
|
|
697
|
+
handleKeyDown(event) {
|
|
698
|
+
if (!this.isUnitFocused) {
|
|
222
699
|
return;
|
|
223
700
|
}
|
|
224
|
-
let
|
|
701
|
+
let shouldPreventDefault = true;
|
|
225
702
|
switch (event.key) {
|
|
226
|
-
case '
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
case 'ArrowRight':
|
|
230
|
-
_focusedDay++;
|
|
703
|
+
case 'Tab':
|
|
704
|
+
shouldPreventDefault = false;
|
|
705
|
+
this.isUnitFocused = false;
|
|
231
706
|
break;
|
|
232
707
|
case 'ArrowUp':
|
|
233
|
-
|
|
708
|
+
this.focusScrollAlignment = 'start';
|
|
709
|
+
this.stepFocusedValue(-1);
|
|
234
710
|
break;
|
|
235
711
|
case 'ArrowDown':
|
|
236
|
-
|
|
712
|
+
this.focusScrollAlignment = 'end';
|
|
713
|
+
this.stepFocusedValue(1);
|
|
714
|
+
break;
|
|
715
|
+
case 'Enter':
|
|
716
|
+
case ' ': {
|
|
717
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
718
|
+
const base = this.buildCandidateBaseBeforeUnit(this.focusedUnit);
|
|
719
|
+
if (this.canSelectUnitValue(this.focusedUnit, this.focusedValue, bounds, base)) {
|
|
720
|
+
this.select(this.focusedUnit, this.focusedValue);
|
|
721
|
+
}
|
|
237
722
|
break;
|
|
723
|
+
}
|
|
238
724
|
default:
|
|
239
725
|
return;
|
|
240
726
|
}
|
|
241
|
-
if (
|
|
242
|
-
|
|
243
|
-
this.changeToAdjacentMonth(1);
|
|
244
|
-
this.monthChangedFromFocus = true;
|
|
245
|
-
}
|
|
246
|
-
else if (_focusedDay < 1) {
|
|
247
|
-
this.changeToAdjacentMonth(-1);
|
|
248
|
-
_focusedDay = _focusedDay + this.getDaysInCurrentMonth();
|
|
249
|
-
this.monthChangedFromFocus = true;
|
|
727
|
+
if (shouldPreventDefault) {
|
|
728
|
+
event.preventDefault();
|
|
250
729
|
}
|
|
251
|
-
this.focusedDay = _focusedDay;
|
|
252
|
-
}
|
|
253
|
-
getDaysInCurrentMonth() {
|
|
254
|
-
return (DateTime.utc(this.selectedYear, this.selectedMonth + 1).daysInMonth || 0);
|
|
255
730
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
if (!
|
|
262
|
-
|
|
263
|
-
|
|
731
|
+
onUnitCellBlur(unit, event) {
|
|
732
|
+
const relatedTarget = event.relatedTarget;
|
|
733
|
+
const relatedUnit = relatedTarget?.dataset?.elementContainerId?.split('-')[0];
|
|
734
|
+
const movingWithinSameColumn = relatedUnit === unit;
|
|
735
|
+
// Check if column lost focus to scroll back to selected value
|
|
736
|
+
if (relatedTarget && !movingWithinSameColumn) {
|
|
737
|
+
if (relatedUnit !== unit) {
|
|
738
|
+
this.elementListScrollToTop(unit, Number(this.formattedTime[unit]), 'smooth');
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
// Still within this column (e.g. roving focus between cells)
|
|
742
|
+
if (movingWithinSameColumn) {
|
|
743
|
+
return;
|
|
264
744
|
}
|
|
265
|
-
|
|
745
|
+
this.isUnitFocused = false;
|
|
746
|
+
const focusedValue = this.resolvePreservedFocusedValueOnColumnBlur(unit);
|
|
747
|
+
this.focusedValue = focusedValue;
|
|
748
|
+
this.updateDescriptorFocusedValue(unit, focusedValue);
|
|
266
749
|
}
|
|
267
|
-
|
|
268
|
-
this.
|
|
269
|
-
this.
|
|
750
|
+
onUnitCellFocus(unit, value) {
|
|
751
|
+
this.isUnitFocused = true;
|
|
752
|
+
this.focusedUnit = unit;
|
|
753
|
+
this.focusedValue = value;
|
|
754
|
+
this.updateDescriptorFocusedValue(unit, value);
|
|
270
755
|
}
|
|
271
|
-
|
|
272
|
-
this.
|
|
756
|
+
getElementList(unit) {
|
|
757
|
+
return this.hostElement.shadowRoot?.querySelector(`[data-element-list-id="${unit}"]`);
|
|
273
758
|
}
|
|
274
|
-
|
|
275
|
-
this.
|
|
759
|
+
getElementContainer(unit, number) {
|
|
760
|
+
return this.hostElement.shadowRoot?.querySelector(`[data-element-container-id="${unit}-${number}"]`);
|
|
276
761
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
: undefined;
|
|
283
|
-
this.currToDate = this.to
|
|
284
|
-
? DateTime.fromFormat(this.to, this.format)
|
|
285
|
-
: undefined;
|
|
286
|
-
const year = (_b = (_a = this.currFromDate) === null || _a === void 0 ? void 0 : _a.year) !== null && _b !== void 0 ? _b : this.getDateTimeNow().year;
|
|
287
|
-
this.startYear = year - 5;
|
|
288
|
-
this.endYear = year + 5;
|
|
289
|
-
this.selectedMonth =
|
|
290
|
-
((_d = (_c = this.currFromDate) === null || _c === void 0 ? void 0 : _c.month) !== null && _d !== void 0 ? _d : this.getDateTimeNow().month) - 1;
|
|
291
|
-
this.selectedYear = year;
|
|
292
|
-
this.tempMonth = this.selectedMonth;
|
|
293
|
-
this.tempYear = this.selectedYear;
|
|
294
|
-
}
|
|
295
|
-
componentWillRender() {
|
|
296
|
-
this.calculateCalendar();
|
|
762
|
+
isElementVisible(element, container) {
|
|
763
|
+
const elementRect = element.getBoundingClientRect();
|
|
764
|
+
const containerRect = container.getBoundingClientRect();
|
|
765
|
+
return (elementRect.top >= containerRect.top &&
|
|
766
|
+
elementRect.bottom <= containerRect.bottom);
|
|
297
767
|
}
|
|
298
|
-
|
|
299
|
-
|
|
768
|
+
scrollElementIntoView(element, container, alignment) {
|
|
769
|
+
const SCROLL_BUFFER = 1;
|
|
770
|
+
const containerRect = container.getBoundingClientRect();
|
|
771
|
+
const elementRect = element.getBoundingClientRect();
|
|
772
|
+
if (alignment === 'end') {
|
|
773
|
+
container.scrollTop +=
|
|
774
|
+
elementRect.bottom - containerRect.bottom + SCROLL_BUFFER;
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
container.scrollTop +=
|
|
778
|
+
elementRect.top - containerRect.top - SCROLL_BUFFER;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
setInitialFocusedValueAndUnit() {
|
|
782
|
+
const firstVisibleDescriptor = this.timePickerDescriptors.find((descriptor) => !descriptor.hidden);
|
|
783
|
+
if (!firstVisibleDescriptor) {
|
|
300
784
|
return;
|
|
301
785
|
}
|
|
302
|
-
|
|
303
|
-
|
|
786
|
+
this.focusedValue = this.getConstrainedFocusedValueForUnit(firstVisibleDescriptor.unit, firstVisibleDescriptor.numberArray);
|
|
787
|
+
this.focusedUnit = firstVisibleDescriptor.unit;
|
|
304
788
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
789
|
+
setupVisibilityObserver() {
|
|
790
|
+
const dropdown = closestPassShadow(this.hostElement, 'ix-dropdown');
|
|
791
|
+
if (!dropdown) {
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
this.visibilityObserver = new MutationObserver((mutations) => this.mutationObserverCallback(mutations));
|
|
795
|
+
this.visibilityObserver.observe(dropdown, {
|
|
796
|
+
attributes: true,
|
|
797
|
+
attributeFilter: ['class', 'style'],
|
|
311
798
|
});
|
|
312
799
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
rotateWeekDayNames(weekdays, index) {
|
|
318
|
-
const clone = [...weekdays];
|
|
319
|
-
if (index === 0) {
|
|
320
|
-
return clone;
|
|
321
|
-
}
|
|
322
|
-
index = -index;
|
|
323
|
-
const len = weekdays.length;
|
|
324
|
-
clone.push(...clone.splice(0, ((-index % len) + len) % len));
|
|
325
|
-
return clone;
|
|
326
|
-
}
|
|
327
|
-
async onDone() {
|
|
328
|
-
const date = await this.getCurrentDate();
|
|
329
|
-
this.dateSelect.emit(date);
|
|
330
|
-
}
|
|
331
|
-
calculateCalendar() {
|
|
332
|
-
const calendar = [];
|
|
333
|
-
const month = DateTime.utc(this.selectedYear, this.selectedMonth + 1);
|
|
334
|
-
const monthStart = month.startOf('month');
|
|
335
|
-
const monthEnd = month.endOf('month');
|
|
336
|
-
let startWeek = monthStart.weekNumber;
|
|
337
|
-
let endWeek = monthEnd.weekNumber;
|
|
338
|
-
let monthStartWeekDayIndex = monthStart.weekday - 1;
|
|
339
|
-
let monthEndWeekDayIndex = monthEnd.weekday - 1;
|
|
340
|
-
if (this.weekStartIndex !== 0) {
|
|
341
|
-
// Find the positions where to start/stop counting the day-numbers based on which day the week starts
|
|
342
|
-
const weekdays = Info.weekdays();
|
|
343
|
-
const monthStartWeekDayName = weekdays[monthStart.weekday];
|
|
344
|
-
monthStartWeekDayIndex = this.dayNames.findIndex((d) => d === monthStartWeekDayName);
|
|
345
|
-
const monthEndWeekDayName = weekdays[monthEnd.weekday];
|
|
346
|
-
monthEndWeekDayIndex = this.dayNames.findIndex((d) => d === monthEndWeekDayName);
|
|
347
|
-
}
|
|
348
|
-
let correctLastWeek = false;
|
|
349
|
-
if (endWeek === 1) {
|
|
350
|
-
endWeek = monthEnd.weeksInWeekYear + 1;
|
|
351
|
-
correctLastWeek = true;
|
|
352
|
-
}
|
|
353
|
-
let correctFirstWeek = false;
|
|
354
|
-
if (startWeek === monthStart.weeksInWeekYear) {
|
|
355
|
-
startWeek = 1;
|
|
356
|
-
endWeek++;
|
|
357
|
-
correctFirstWeek = true;
|
|
358
|
-
}
|
|
359
|
-
let currDayNumber = 1;
|
|
360
|
-
for (let weekIndex = startWeek; weekIndex <= endWeek && currDayNumber <= 31; weekIndex++) {
|
|
361
|
-
const daysArr = [];
|
|
362
|
-
for (let j = 0; j < this.DAYS_IN_WEEK && currDayNumber <= 31; j++) {
|
|
363
|
-
// Display empty cells until the calender starts/has ended
|
|
364
|
-
if ((weekIndex === startWeek && j < monthStartWeekDayIndex) ||
|
|
365
|
-
(weekIndex === endWeek && j > monthEndWeekDayIndex)) {
|
|
366
|
-
daysArr.push(undefined);
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
daysArr.push(currDayNumber++);
|
|
370
|
-
}
|
|
800
|
+
mutationObserverCallback(mutations) {
|
|
801
|
+
for (const mutation of mutations) {
|
|
802
|
+
if (mutation.type !== 'attributes') {
|
|
803
|
+
continue;
|
|
371
804
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
weekNumber: 1,
|
|
382
|
-
dayNumbers: daysArr,
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
calendar.push({
|
|
387
|
-
weekNumber: weekIndex - 1,
|
|
388
|
-
dayNumbers: daysArr,
|
|
389
|
-
});
|
|
805
|
+
const dropdown = mutation.target;
|
|
806
|
+
if (!dropdown.classList.contains('show')) {
|
|
807
|
+
// keep picker in sync with input
|
|
808
|
+
if (this.time) {
|
|
809
|
+
const timeFormat = DateTime.fromFormat(this.time, this.format);
|
|
810
|
+
if (timeFormat.isValid) {
|
|
811
|
+
this._time = DateTime.fromFormat(this.time, this.format);
|
|
812
|
+
this.setInitialFocusedValueAndUnit();
|
|
813
|
+
}
|
|
390
814
|
}
|
|
391
815
|
continue;
|
|
392
816
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
817
|
+
const elementsReady = this.areElementsRendered();
|
|
818
|
+
if (!elementsReady) {
|
|
819
|
+
continue;
|
|
820
|
+
}
|
|
821
|
+
this.updateScrollPositions();
|
|
397
822
|
}
|
|
398
|
-
this.calendar = calendar;
|
|
399
823
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
824
|
+
areElementsRendered() {
|
|
825
|
+
const elementLists = this.hostElement.shadowRoot?.querySelectorAll('.element-list');
|
|
826
|
+
if (!elementLists || elementLists.length === 0) {
|
|
827
|
+
return false;
|
|
828
|
+
}
|
|
829
|
+
return Array.from(elementLists).some((list) => list.offsetHeight > 0);
|
|
403
830
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
831
|
+
getFormattedTime() {
|
|
832
|
+
if (!this._time) {
|
|
833
|
+
return FORMATTED_TIME_EMPTY;
|
|
834
|
+
}
|
|
835
|
+
return {
|
|
836
|
+
hour: this.timeRef !== undefined
|
|
837
|
+
? this._time.toFormat('h')
|
|
838
|
+
: this._time.toFormat('H'),
|
|
839
|
+
minute: this._time.toFormat('m'),
|
|
840
|
+
second: this._time.toFormat('s'),
|
|
841
|
+
millisecond: this._time.toFormat('S'),
|
|
842
|
+
};
|
|
407
843
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
if (!yearContainer) {
|
|
844
|
+
changeTimeReference(newTimeRef) {
|
|
845
|
+
if (this.timeRef === newTimeRef) {
|
|
411
846
|
return;
|
|
412
847
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
const
|
|
418
|
-
|
|
848
|
+
if (!this._time) {
|
|
849
|
+
this._time = DateTime.now().startOf('day');
|
|
850
|
+
}
|
|
851
|
+
const previousTime = this._time;
|
|
852
|
+
const previousRef = this.timeRef;
|
|
853
|
+
this.timeRef = newTimeRef;
|
|
854
|
+
const currentHour = this._time.hour;
|
|
855
|
+
if (newTimeRef === 'PM' && currentHour < 12) {
|
|
856
|
+
this._time = this._time.plus({ hours: 12 });
|
|
857
|
+
}
|
|
858
|
+
else if (newTimeRef === 'AM' && currentHour >= 12) {
|
|
859
|
+
this._time = this._time.minus({ hours: 12 });
|
|
860
|
+
}
|
|
861
|
+
if (!this.isWithinTimeConstraints(this._time)) {
|
|
862
|
+
this._time = previousTime;
|
|
863
|
+
this.timeRef = previousRef;
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
this.timeChange.emit(this._time.toFormat(this.format));
|
|
867
|
+
}
|
|
868
|
+
/** `_time` or “now” (constraints, AM/PM, confirm). */
|
|
869
|
+
referenceOrNow() {
|
|
870
|
+
return this._time ?? DateTime.now();
|
|
871
|
+
}
|
|
872
|
+
setTimeRef() {
|
|
873
|
+
const uses12HourFormat = isFormat12Hour(this.format);
|
|
874
|
+
if (!uses12HourFormat) {
|
|
875
|
+
this.timeRef = undefined;
|
|
876
|
+
return;
|
|
877
|
+
}
|
|
878
|
+
const clock = this.referenceOrNow();
|
|
879
|
+
this.timeRef = clock.hour >= 12 ? 'PM' : 'AM';
|
|
880
|
+
}
|
|
881
|
+
getConstraintBounds(referenceClock) {
|
|
882
|
+
const baseDay = (referenceClock ?? this.referenceOrNow()).startOf('day');
|
|
883
|
+
return getTimePickerConstraintBounds(this.minTime, this.maxTime, this.format, baseDay);
|
|
884
|
+
}
|
|
885
|
+
/** Bounds and `selectionBase` from {@link referenceOrNow}. */
|
|
886
|
+
getUnitSelectionContext() {
|
|
887
|
+
const referenceClock = this.referenceOrNow();
|
|
888
|
+
return {
|
|
889
|
+
bounds: this.getConstraintBounds(referenceClock),
|
|
890
|
+
selectionBase: this._time ?? referenceClock.startOf('day'),
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
isWithinTimeConstraints(candidate) {
|
|
894
|
+
const { min, max } = this.getConstraintBounds();
|
|
895
|
+
return isWithinTimePickerConstraints(candidate, min, max);
|
|
896
|
+
}
|
|
897
|
+
canSelectUnitValue(unit, rawValue, bounds, selectionBase) {
|
|
898
|
+
const base = selectionBase ?? this._time ?? DateTime.now().startOf('day');
|
|
899
|
+
const effectiveBounds = bounds ?? this.getConstraintBounds();
|
|
900
|
+
if (unit === 'hour' &&
|
|
901
|
+
hasActiveTimePickerConstraints(effectiveBounds.min, effectiveBounds.max)) {
|
|
902
|
+
const dayStart = base.startOf('day');
|
|
903
|
+
const hourStart = computeTimeWithRawUnitValue(dayStart, 'hour', rawValue, this.timeRef);
|
|
904
|
+
if (!hourStart) {
|
|
905
|
+
return false;
|
|
906
|
+
}
|
|
907
|
+
const hourEnd = hourStart.set({
|
|
908
|
+
minute: 59,
|
|
909
|
+
second: 59,
|
|
910
|
+
millisecond: 999,
|
|
911
|
+
});
|
|
912
|
+
return timeOfDayRangeIntersectsInclusiveBounds(hourStart, hourEnd, effectiveBounds.min, effectiveBounds.max);
|
|
913
|
+
}
|
|
914
|
+
const candidate = computeTimeWithRawUnitValue(base, unit, rawValue, this.timeRef);
|
|
915
|
+
if (!candidate) {
|
|
916
|
+
return false;
|
|
917
|
+
}
|
|
918
|
+
if (bounds) {
|
|
919
|
+
return this.isSelectableForUnitWithinBounds(unit, candidate, bounds);
|
|
920
|
+
}
|
|
921
|
+
return this.isWithinTimeConstraints(candidate);
|
|
922
|
+
}
|
|
923
|
+
isSelectableForUnitWithinBounds(unit, candidate, bounds) {
|
|
924
|
+
return isSelectableForUnitWithinBounds(unit, candidate, bounds);
|
|
925
|
+
}
|
|
926
|
+
/** Provisional `unit` for cross-column base: roving cell, earlier descriptors, else displayed digits. */
|
|
927
|
+
getProvisionalRawValue(unit) {
|
|
928
|
+
if (this.focusedUnit === unit) {
|
|
929
|
+
return this.focusedValue;
|
|
930
|
+
}
|
|
931
|
+
const order = this.timePickerDescriptors.map((d) => d.unit);
|
|
932
|
+
const iFocused = order.indexOf(this.focusedUnit);
|
|
933
|
+
const iUnit = order.indexOf(unit);
|
|
934
|
+
if (iUnit !== -1 && iFocused !== -1 && iUnit < iFocused) {
|
|
935
|
+
const d = this.timePickerDescriptors.find((x) => x.unit === unit);
|
|
936
|
+
if (d) {
|
|
937
|
+
return d.focusedValue;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
const raw = this.formattedTime?.[unit];
|
|
941
|
+
if (raw === '' || raw === undefined) {
|
|
942
|
+
return 0;
|
|
943
|
+
}
|
|
944
|
+
return Number(raw);
|
|
945
|
+
}
|
|
946
|
+
/** Base time for `canSelect`/`select` on `targetUnit`: committed hour; mid-columns via {@link getProvisionalRawValue}. */
|
|
947
|
+
buildCandidateBaseBeforeUnit(targetUnit) {
|
|
948
|
+
const { selectionBase } = this.getUnitSelectionContext();
|
|
949
|
+
const order = this.timePickerDescriptors.map((d) => d.unit);
|
|
950
|
+
const targetIndex = order.indexOf(targetUnit);
|
|
951
|
+
if (targetIndex <= 0) {
|
|
952
|
+
return selectionBase;
|
|
953
|
+
}
|
|
954
|
+
let base = this._time ?? selectionBase;
|
|
955
|
+
for (let i = 1; i < targetIndex; i++) {
|
|
956
|
+
const unit = order[i];
|
|
957
|
+
if (unit === undefined) {
|
|
958
|
+
continue;
|
|
959
|
+
}
|
|
960
|
+
const raw = this.getProvisionalRawValue(unit);
|
|
961
|
+
const next = computeTimeWithRawUnitValue(base, unit, raw, this.timeRef);
|
|
962
|
+
if (next) {
|
|
963
|
+
base = next;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
return base;
|
|
967
|
+
}
|
|
968
|
+
getConstrainedFocusedValueForUnitWithBase(unit, numberArray, baseBeforeUnit) {
|
|
969
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
970
|
+
const pickFirstSelectable = () => {
|
|
971
|
+
const found = numberArray.find((n) => this.canSelectUnitValue(unit, n, bounds, baseBeforeUnit));
|
|
972
|
+
return found ?? null;
|
|
973
|
+
};
|
|
974
|
+
const selected = Number(this.formattedTime[unit]);
|
|
975
|
+
if (!numberArray.includes(selected)) {
|
|
976
|
+
return pickFirstSelectable() ?? numberArray[0];
|
|
977
|
+
}
|
|
978
|
+
if (this.canSelectUnitValue(unit, selected, bounds, baseBeforeUnit)) {
|
|
979
|
+
return selected;
|
|
980
|
+
}
|
|
981
|
+
return pickFirstSelectable() ?? numberArray[0];
|
|
982
|
+
}
|
|
983
|
+
getConstrainedFocusedValueForUnit(unit, numberArray) {
|
|
984
|
+
return this.getConstrainedFocusedValueForUnitWithBase(unit, numberArray, this.buildCandidateBaseBeforeUnit(unit));
|
|
985
|
+
}
|
|
986
|
+
resolvePreservedFocusedValueOnColumnBlur(unit) {
|
|
987
|
+
const arr = this.getNumberArrayForUnit(unit);
|
|
988
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
989
|
+
const base = this.buildCandidateBaseBeforeUnit(unit);
|
|
990
|
+
const current = this.focusedValue;
|
|
991
|
+
if (arr.includes(current) &&
|
|
992
|
+
this.canSelectUnitValue(unit, current, bounds, base)) {
|
|
993
|
+
return current;
|
|
994
|
+
}
|
|
995
|
+
return this.getConstrainedFocusedValueForUnit(unit, arr);
|
|
996
|
+
}
|
|
997
|
+
syncKeyboardFocusWithConstraints() {
|
|
998
|
+
if (!this.timePickerDescriptors.length) {
|
|
419
999
|
return;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
this.
|
|
423
|
-
|
|
1000
|
+
}
|
|
1001
|
+
for (const d of this.timePickerDescriptors) {
|
|
1002
|
+
const next = this.getConstrainedFocusedValueForUnit(d.unit, d.numberArray);
|
|
1003
|
+
if (next !== d.focusedValue) {
|
|
1004
|
+
this.updateDescriptorFocusedValue(d.unit, next);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
const arr = this.getNumberArrayForUnit(this.focusedUnit);
|
|
1008
|
+
if (arr.length) {
|
|
1009
|
+
const nextFocused = this.getConstrainedFocusedValueForUnit(this.focusedUnit, arr);
|
|
1010
|
+
if (nextFocused !== this.focusedValue) {
|
|
1011
|
+
this.focusedValue = nextFocused;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
findFirstSelectableInUnit(unit) {
|
|
1016
|
+
const arr = this.getNumberArrayForUnit(unit);
|
|
1017
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
1018
|
+
const base = this.buildCandidateBaseBeforeUnit(unit);
|
|
1019
|
+
const found = arr.find((n) => this.canSelectUnitValue(unit, n, bounds, base));
|
|
1020
|
+
return found ?? null;
|
|
1021
|
+
}
|
|
1022
|
+
getColumnTabStopValue(unit) {
|
|
1023
|
+
const d = this.timePickerDescriptors.find((x) => x.unit === unit);
|
|
1024
|
+
const arr = d?.numberArray ?? [];
|
|
1025
|
+
if (!d || !arr.length) {
|
|
1026
|
+
return null;
|
|
1027
|
+
}
|
|
1028
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
1029
|
+
const base = this.buildCandidateBaseBeforeUnit(unit);
|
|
1030
|
+
const candidate = d.focusedValue;
|
|
1031
|
+
if (arr.includes(candidate) &&
|
|
1032
|
+
this.canSelectUnitValue(unit, candidate, bounds, base)) {
|
|
1033
|
+
return candidate;
|
|
1034
|
+
}
|
|
1035
|
+
return this.findFirstSelectableInUnit(unit);
|
|
1036
|
+
}
|
|
1037
|
+
stepFocusedValue(direction) {
|
|
1038
|
+
const unit = this.focusedUnit;
|
|
1039
|
+
const arr = this.getNumberArrayForUnit(unit);
|
|
1040
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
1041
|
+
const base = this.buildCandidateBaseBeforeUnit(unit);
|
|
1042
|
+
const next = findNextSelectableRingValue(arr, this.focusedValue, direction, (candidate) => this.canSelectUnitValue(unit, candidate, bounds, base));
|
|
1043
|
+
if (next === null) {
|
|
424
1044
|
return;
|
|
425
1045
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
1046
|
+
this.focusedValue = next;
|
|
1047
|
+
this.updateDescriptorFocusedValue(unit, next);
|
|
1048
|
+
}
|
|
1049
|
+
isConfirmDisabled() {
|
|
1050
|
+
const referenceClock = this.referenceOrNow();
|
|
1051
|
+
const { min, max } = this.getConstraintBounds(referenceClock);
|
|
1052
|
+
if (!hasActiveTimePickerConstraints(min, max)) {
|
|
1053
|
+
return false;
|
|
430
1054
|
}
|
|
1055
|
+
return !isWithinTimePickerConstraints(referenceClock, min, max);
|
|
431
1056
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
1057
|
+
setTimePickerDescriptors() {
|
|
1058
|
+
const { hourNumbers, minuteNumbers, secondNumbers, millisecondsNumbers } = buildTimePickerColumnNumberArrays({
|
|
1059
|
+
hourInterval: this.hourInterval,
|
|
1060
|
+
minuteInterval: this.minuteInterval,
|
|
1061
|
+
secondInterval: this.secondInterval,
|
|
1062
|
+
millisecondInterval: this.millisecondInterval,
|
|
1063
|
+
}, this.timeRef);
|
|
1064
|
+
const { selectionBase } = this.getUnitSelectionContext();
|
|
1065
|
+
const columns = [
|
|
1066
|
+
{
|
|
1067
|
+
unit: 'hour',
|
|
1068
|
+
header: this.i18nHourColumnHeader,
|
|
1069
|
+
hidden: !LUXON_FORMAT_PATTERNS.hours.test(this.format),
|
|
1070
|
+
numberArray: hourNumbers,
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
unit: 'minute',
|
|
1074
|
+
header: this.i18nMinuteColumnHeader,
|
|
1075
|
+
hidden: !LUXON_FORMAT_PATTERNS.minutes.test(this.format),
|
|
1076
|
+
numberArray: minuteNumbers,
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
unit: 'second',
|
|
1080
|
+
header: this.i18nSecondColumnHeader,
|
|
1081
|
+
hidden: !LUXON_FORMAT_PATTERNS.seconds.test(this.format),
|
|
1082
|
+
numberArray: secondNumbers,
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
unit: 'millisecond',
|
|
1086
|
+
header: this.i18nMillisecondColumnHeader,
|
|
1087
|
+
hidden: !LUXON_FORMAT_PATTERNS.milliseconds.test(this.format),
|
|
1088
|
+
numberArray: millisecondsNumbers,
|
|
1089
|
+
},
|
|
1090
|
+
];
|
|
1091
|
+
let base = selectionBase;
|
|
1092
|
+
const descriptors = [];
|
|
1093
|
+
for (const col of columns) {
|
|
1094
|
+
if (col.hidden) {
|
|
1095
|
+
continue;
|
|
1096
|
+
}
|
|
1097
|
+
const focusedValue = this.getConstrainedFocusedValueForUnitWithBase(col.unit, col.numberArray, base);
|
|
1098
|
+
descriptors.push({
|
|
1099
|
+
unit: col.unit,
|
|
1100
|
+
header: col.header,
|
|
1101
|
+
hidden: false,
|
|
1102
|
+
numberArray: col.numberArray,
|
|
1103
|
+
focusedValue,
|
|
1104
|
+
});
|
|
1105
|
+
const next = computeTimeWithRawUnitValue(base, col.unit, focusedValue, this.timeRef);
|
|
1106
|
+
if (next) {
|
|
1107
|
+
base = next;
|
|
1108
|
+
}
|
|
439
1109
|
}
|
|
1110
|
+
this.timePickerDescriptors = descriptors;
|
|
440
1111
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
1112
|
+
getNumberArrayForUnit(unit) {
|
|
1113
|
+
const descriptor = this.timePickerDescriptors.find((descriptor) => descriptor.unit === unit);
|
|
1114
|
+
return descriptor ? descriptor.numberArray : [];
|
|
1115
|
+
}
|
|
1116
|
+
isSelected(unit, number) {
|
|
1117
|
+
return this.formattedTime[unit] === String(number);
|
|
1118
|
+
}
|
|
1119
|
+
/** Roving tabindex: one tab stop per column; active column only the focused cell has `tabindex=0`. */
|
|
1120
|
+
getUnitCellTabIndex(unit, number) {
|
|
1121
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
1122
|
+
const base = this.buildCandidateBaseBeforeUnit(unit);
|
|
1123
|
+
const cellIsSelectable = this.canSelectUnitValue(unit, number, bounds, base);
|
|
1124
|
+
if (!cellIsSelectable) {
|
|
1125
|
+
return -1;
|
|
445
1126
|
}
|
|
446
|
-
|
|
447
|
-
this.
|
|
448
|
-
this.selectedMonth = 0;
|
|
1127
|
+
if (this.isUnitFocused && this.focusedUnit === unit) {
|
|
1128
|
+
return this.focusedValue === number ? 0 : -1;
|
|
449
1129
|
}
|
|
450
|
-
|
|
451
|
-
|
|
1130
|
+
const stop = this.getColumnTabStopValue(unit);
|
|
1131
|
+
if (stop === null) {
|
|
1132
|
+
return -1;
|
|
452
1133
|
}
|
|
1134
|
+
return stop === number ? 0 : -1;
|
|
453
1135
|
}
|
|
454
|
-
|
|
455
|
-
if (
|
|
1136
|
+
select(unit, number) {
|
|
1137
|
+
if (this.isSelected(unit, number)) {
|
|
456
1138
|
return;
|
|
457
1139
|
}
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
this.onDateChange();
|
|
1140
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
1141
|
+
const base = this.buildCandidateBaseBeforeUnit(unit);
|
|
1142
|
+
if (!this.canSelectUnitValue(unit, number, bounds, base)) {
|
|
462
1143
|
return;
|
|
463
1144
|
}
|
|
464
|
-
|
|
465
|
-
if (
|
|
466
|
-
this.currFromDate = date;
|
|
467
|
-
this.currToDate = undefined;
|
|
468
|
-
this.onDateChange();
|
|
1145
|
+
const candidate = computeTimeWithRawUnitValue(base, unit, number, this.timeRef);
|
|
1146
|
+
if (!candidate) {
|
|
469
1147
|
return;
|
|
470
1148
|
}
|
|
471
|
-
|
|
472
|
-
if (date < this.currFromDate) {
|
|
473
|
-
this.currToDate = this.currFromDate;
|
|
474
|
-
this.currFromDate = date;
|
|
475
|
-
this.onDateChange();
|
|
1149
|
+
if (this._time && candidate.toMillis() === this._time.toMillis()) {
|
|
476
1150
|
return;
|
|
477
1151
|
}
|
|
478
|
-
|
|
479
|
-
this.
|
|
480
|
-
this.
|
|
1152
|
+
this._time = candidate;
|
|
1153
|
+
this.elementListScrollToTop(unit, number, 'smooth');
|
|
1154
|
+
this.timeChange.emit(this._time.toFormat(this.format));
|
|
481
1155
|
}
|
|
482
|
-
|
|
483
|
-
this.
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
this.
|
|
487
|
-
|
|
488
|
-
|
|
1156
|
+
updateDescriptorFocusedValue(unit, value) {
|
|
1157
|
+
const descriptorIndex = this.timePickerDescriptors.findIndex((d) => d.unit === unit);
|
|
1158
|
+
if (descriptorIndex !== -1) {
|
|
1159
|
+
this.timePickerDescriptors = [
|
|
1160
|
+
...this.timePickerDescriptors.slice(0, descriptorIndex),
|
|
1161
|
+
{
|
|
1162
|
+
...this.timePickerDescriptors[descriptorIndex],
|
|
1163
|
+
focusedValue: value,
|
|
1164
|
+
},
|
|
1165
|
+
...this.timePickerDescriptors.slice(descriptorIndex + 1),
|
|
1166
|
+
];
|
|
1167
|
+
}
|
|
489
1168
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
1169
|
+
elementListScrollToTop(unit, number, scrollBehaviour) {
|
|
1170
|
+
const elementList = this.getElementList(unit);
|
|
1171
|
+
const elementContainer = this.getElementContainer(unit, number);
|
|
1172
|
+
if (elementList && elementContainer) {
|
|
1173
|
+
const elementListHeight = elementList.clientHeight;
|
|
1174
|
+
const elementContainerHeight = elementContainer.clientHeight;
|
|
1175
|
+
// Offset which is used to adjust the scroll position to account for margins, elements being hidden, etc.
|
|
1176
|
+
let scrollPositionOffset = 11;
|
|
1177
|
+
if (this.hideHeader) {
|
|
1178
|
+
// 56 + 1 --> height of the header container and separator
|
|
1179
|
+
scrollPositionOffset -= 57;
|
|
1180
|
+
}
|
|
1181
|
+
const scrollPosition = elementContainer.offsetTop -
|
|
1182
|
+
elementListHeight / 2 +
|
|
1183
|
+
elementContainerHeight -
|
|
1184
|
+
scrollPositionOffset;
|
|
1185
|
+
elementList.scrollTo({
|
|
1186
|
+
top: scrollPosition,
|
|
1187
|
+
behavior: scrollBehaviour,
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
506
1190
|
}
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
isWithinMinMaxMonth(month) {
|
|
519
|
-
const minDateObj = this.minDate
|
|
520
|
-
? DateTime.fromFormat(this.minDate, this.format)
|
|
521
|
-
: undefined;
|
|
522
|
-
const maxDateObj = this.maxDate
|
|
523
|
-
? DateTime.fromFormat(this.maxDate, this.format)
|
|
524
|
-
: undefined;
|
|
525
|
-
const minDateMonth = minDateObj === null || minDateObj === void 0 ? void 0 : minDateObj.month;
|
|
526
|
-
const maxDateMonth = maxDateObj === null || maxDateObj === void 0 ? void 0 : maxDateObj.month;
|
|
527
|
-
const isBefore = minDateMonth
|
|
528
|
-
? this.tempYear === minDateObj.year && month < minDateMonth
|
|
529
|
-
: false;
|
|
530
|
-
const isAfter = maxDateMonth
|
|
531
|
-
? this.tempYear === maxDateObj.year && month > maxDateMonth
|
|
532
|
-
: false;
|
|
533
|
-
return !isBefore && !isAfter;
|
|
534
|
-
}
|
|
535
|
-
isWithinMinMaxDate(date) {
|
|
536
|
-
const _minDate = this.minDate
|
|
537
|
-
? DateTime.fromFormat(this.minDate, this.format)
|
|
538
|
-
: undefined;
|
|
539
|
-
const _maxDate = this.maxDate
|
|
540
|
-
? DateTime.fromFormat(this.maxDate, this.format)
|
|
541
|
-
: undefined;
|
|
542
|
-
const isBefore = _minDate
|
|
543
|
-
? date.startOf('day') < _minDate.startOf('day')
|
|
544
|
-
: false;
|
|
545
|
-
const isAfter = _maxDate
|
|
546
|
-
? date.startOf('day') > _maxDate.startOf('day')
|
|
547
|
-
: false;
|
|
548
|
-
return !isBefore && !isAfter;
|
|
549
|
-
}
|
|
550
|
-
renderYears() {
|
|
551
|
-
const rows = [];
|
|
552
|
-
for (let year = this.startYear; year <= this.endYear; year++) {
|
|
553
|
-
rows.push(h("div", { key: year, class: {
|
|
554
|
-
arrowYear: true,
|
|
555
|
-
'month-dropdown-item': true,
|
|
556
|
-
'disabled-item': !this.isWithinMinMaxYear(year),
|
|
557
|
-
}, onClick: (event) => this.selectTempYear(event, year), onKeyUp: (event) => {
|
|
558
|
-
if (event.key === 'Enter') {
|
|
559
|
-
this.tempYear = year;
|
|
560
|
-
this.focusMonth();
|
|
561
|
-
}
|
|
562
|
-
}, tabIndex: 0 }, h("ix-icon", { class: {
|
|
563
|
-
hidden: this.tempYear !== year,
|
|
564
|
-
arrowPosition: true,
|
|
565
|
-
}, name: iconChevronRightSmall, size: "12" }), h("div", { style: { 'min-width': 'max-content' } }, `${year}`)));
|
|
1191
|
+
/**
|
|
1192
|
+
* Updates all scroll positions of the time picker elements
|
|
1193
|
+
* Updates only the elements that have changed if `formattedTimeOld` is provided
|
|
1194
|
+
*/
|
|
1195
|
+
updateScrollPositions(formattedTimeOld = undefined) {
|
|
1196
|
+
for (const key in this.formattedTime) {
|
|
1197
|
+
const unitKey = key;
|
|
1198
|
+
if (!formattedTimeOld ||
|
|
1199
|
+
this.formattedTime[unitKey] !== formattedTimeOld[unitKey]) {
|
|
1200
|
+
this.elementListScrollToTop(unitKey, Number(this.formattedTime[unitKey]), 'instant');
|
|
1201
|
+
}
|
|
566
1202
|
}
|
|
567
|
-
|
|
1203
|
+
}
|
|
1204
|
+
formatUnitValue(unit, value) {
|
|
1205
|
+
return formatTimePickerUnitValue(unit, value);
|
|
1206
|
+
}
|
|
1207
|
+
getColumnSeparator(currentIndex) {
|
|
1208
|
+
return getTimePickerColumnSeparator(currentIndex, this.timePickerDescriptors);
|
|
568
1209
|
}
|
|
569
1210
|
render() {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
'
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
this.
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
})));
|
|
599
|
-
})), h("div", { key: '2b9a45684c662329a1e6e16062f5710d62112210', class: {
|
|
600
|
-
button: true,
|
|
601
|
-
hidden: this.singleSelection || this.embedded,
|
|
602
|
-
} }, h("ix-button", { key: '35de7243b5de0016794880b7287a96b60dc2676c', onClick: () => this.onDone() }, this.i18nDone)))));
|
|
1211
|
+
const { bounds } = this.getUnitSelectionContext();
|
|
1212
|
+
return (h(Host, { key: '148f502158a23cb3653c1f062a69cff199e93fdc' }, h("ix-date-time-card", { key: '5612a12cfb0a8b3c55c3491fcae620d63fa0bbd7', embedded: this.embedded, timePickerAppearance: true, corners: this.corners, hasFooter: !this.dateTimePickerAppearance, hideHeader: this.hideHeader }, h("div", { key: '80c1720b837cc3cef4fb4590f68dfe1ab23b8370', class: "header", slot: "header" }, h("ix-typography", { key: '087b23019ec2213c3a23b0c1c08da2328af144be', format: "body" }, this.i18nHeader)), h("div", { key: '1c4c0a0ca82ae0633fbecd5ed9453493c7b9cf98', class: "clock" }, this.timePickerDescriptors.map((descriptor, index) => {
|
|
1213
|
+
return (h("div", { class: "flex" }, h("div", { class: { columns: true, hidden: descriptor.hidden }, hidden: descriptor.hidden }, h("div", { class: "column-header", title: descriptor.header }, descriptor.header), h("div", { role: "listbox", "aria-label": descriptor.header, "data-element-list-id": descriptor.unit, class: "element-list", tabindex: -1 }, descriptor.numberArray.map((number) => {
|
|
1214
|
+
const cellTabIndex = this.getUnitCellTabIndex(descriptor.unit, number);
|
|
1215
|
+
const disabled = !this.canSelectUnitValue(descriptor.unit, number, bounds, this.buildCandidateBaseBeforeUnit(descriptor.unit));
|
|
1216
|
+
const selected = this.isSelected(descriptor.unit, number);
|
|
1217
|
+
return (h("button", { role: "option", "aria-selected": selected ? 'true' : 'false', "data-element-container-id": `${descriptor.unit}-${number}`, class: {
|
|
1218
|
+
selected,
|
|
1219
|
+
'element-container': true,
|
|
1220
|
+
disabled,
|
|
1221
|
+
}, disabled: disabled, onClick: () => {
|
|
1222
|
+
this.select(descriptor.unit, number);
|
|
1223
|
+
}, onFocus: () => this.onUnitCellFocus(descriptor.unit, number), onBlur: (e) => this.onUnitCellBlur(descriptor.unit, e), "aria-label": `${descriptor.header}: ${number}`, tabindex: cellTabIndex }, this.formatUnitValue(descriptor.unit, number)));
|
|
1224
|
+
}), h("div", { class: "element-list-padding" }))), index !== this.timePickerDescriptors.length - 1 && (h("div", { class: {
|
|
1225
|
+
'column-separator': true,
|
|
1226
|
+
hidden: descriptor.hidden,
|
|
1227
|
+
} }, this.getColumnSeparator(index)))));
|
|
1228
|
+
}), this.timeRef && (h("div", { key: 'aee3e153f67ba1365ff56d36a72d1d5561d30e2a', class: "flex" }, h("div", { key: 'd18821a7a032522e161fdd1e74a5812d2111a6ae', class: "column-separator" }), h("div", { key: '57db4e6409de2fbf5d13647304af280866845695', class: "columns" }, h("div", { key: 'd60b46a2bc28606c7708eb3dbccee6fe76df8cc5', class: "column-header", title: "AM/PM" }), h("div", { key: '2d33c518b011e25fb334cd8e1f1efa9b79cd35ff', role: "listbox", "aria-label": "AM/PM", class: "element-list", tabindex: -1 }, h("button", { key: '0ee352467596e646e3afc588ccaa80cad649c551', role: "option", "aria-selected": this.timeRef === 'AM' ? 'true' : 'false', "data-am-pm-id": "AM", class: {
|
|
1229
|
+
selected: this.timeRef === 'AM',
|
|
1230
|
+
'element-container': true,
|
|
1231
|
+
}, onClick: () => this.changeTimeReference('AM'), tabindex: "0", "aria-label": "AM" }, "AM"), h("button", { key: '3c207b5fb9f759a101ce7d1959f93cbfda487274', role: "option", "aria-selected": this.timeRef === 'PM' ? 'true' : 'false', "data-am-pm-id": "PM", class: {
|
|
1232
|
+
selected: this.timeRef === 'PM',
|
|
1233
|
+
'element-container': true,
|
|
1234
|
+
}, onClick: () => this.changeTimeReference('PM'), tabindex: "0", "aria-label": "PM" }, "PM")))))), h("div", { key: 'fc56aa00e3d0280045272303181d49fbcf473bc6', class: {
|
|
1235
|
+
footer: true,
|
|
1236
|
+
'footer--compact': this.timePickerDescriptors.length <= 2,
|
|
1237
|
+
}, slot: "footer" }, h("ix-button", { key: '1c2361d8241d53b5f902f203b43a8bf768f8d1af', class: "confirm-button", disabled: this.isConfirmDisabled(), onClick: () => {
|
|
1238
|
+
this.timeSelect.emit(this._time?.toFormat(this.format));
|
|
1239
|
+
} }, this.i18nConfirmTime)))));
|
|
603
1240
|
}
|
|
604
|
-
get
|
|
1241
|
+
static get delegatesFocus() { return true; }
|
|
605
1242
|
static get watchers() { return {
|
|
606
|
-
"
|
|
607
|
-
"
|
|
1243
|
+
"format": [{
|
|
1244
|
+
"watchFormatIntervalPropHandler": 0
|
|
1245
|
+
}],
|
|
1246
|
+
"hourInterval": [{
|
|
1247
|
+
"watchHourIntervalPropHandler": 0
|
|
1248
|
+
}],
|
|
1249
|
+
"minuteInterval": [{
|
|
1250
|
+
"watchMinuteIntervalPropHandler": 0
|
|
1251
|
+
}],
|
|
1252
|
+
"secondInterval": [{
|
|
1253
|
+
"watchSecondIntervalPropHandler": 0
|
|
1254
|
+
}],
|
|
1255
|
+
"millisecondInterval": [{
|
|
1256
|
+
"watchMillisecondIntervalPropHandler": 0
|
|
608
1257
|
}],
|
|
609
|
-
"
|
|
610
|
-
"
|
|
1258
|
+
"time": [{
|
|
1259
|
+
"watchTimePropHandler": 0
|
|
611
1260
|
}],
|
|
612
|
-
"
|
|
613
|
-
"
|
|
1261
|
+
"minTime": [{
|
|
1262
|
+
"watchMinTimePropHandler": 0
|
|
1263
|
+
}],
|
|
1264
|
+
"maxTime": [{
|
|
1265
|
+
"watchMaxTimePropHandler": 0
|
|
1266
|
+
}],
|
|
1267
|
+
"_time": [{
|
|
1268
|
+
"onTimeChange": 0
|
|
614
1269
|
}]
|
|
615
1270
|
}; }
|
|
616
1271
|
};
|
|
617
1272
|
__decorate([
|
|
618
1273
|
OnListener('keydown')
|
|
619
|
-
],
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
const layoutGridCss = () => `:host{--ix-layout-grid-gutter:24px;display:block;flex:1 1 0%;width:100%;padding-left:calc(var(--ix-layout-grid-gutter) * 0.5);padding-right:calc(var(--ix-layout-grid-gutter) * 0.5)}:host(.no-margin){padding-left:0;padding-right:0}`;
|
|
623
|
-
|
|
624
|
-
const LayoutGrid = class {
|
|
625
|
-
constructor(hostRef) {
|
|
626
|
-
registerInstance(this, hostRef);
|
|
627
|
-
/**
|
|
628
|
-
* The grid will not have any horizontal padding
|
|
629
|
-
*/
|
|
630
|
-
this.noMargin = false;
|
|
631
|
-
/**
|
|
632
|
-
* Grid gap
|
|
633
|
-
*/
|
|
634
|
-
this.gap = '24';
|
|
635
|
-
/**
|
|
636
|
-
* Overwrite the default number of columns. Choose between 2 and 12 columns.
|
|
637
|
-
*/
|
|
638
|
-
this.columns = 12;
|
|
639
|
-
}
|
|
640
|
-
render() {
|
|
641
|
-
return (h(Host, { key: '7ca75d3fb578d30d3b8e3d5d4455123ee7344456', class: {
|
|
642
|
-
'no-margin': this.noMargin,
|
|
643
|
-
}, style: {
|
|
644
|
-
'--ix-layout-grid-columns': `${this.columns}`,
|
|
645
|
-
'--ix-layout-grid-gutter': `${this.gap}px`,
|
|
646
|
-
} }, h("slot", { key: '566e2bf1294f8780e4aedb8e2874bd2f216d3712' })));
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
LayoutGrid.style = layoutGridCss();
|
|
650
|
-
|
|
651
|
-
const rowCss = () => `:host{display:flex;flex-wrap:wrap}:host(:not(:first-of-type)){margin-block-start:var(--ix-layout-grid-row-margin, 0)}`;
|
|
652
|
-
|
|
653
|
-
const Row = class {
|
|
654
|
-
constructor(hostRef) {
|
|
655
|
-
registerInstance(this, hostRef);
|
|
656
|
-
}
|
|
657
|
-
render() {
|
|
658
|
-
return (h(Host, { key: 'f38fd53867857b85a1b2d618125c81bba478cdac' }, h("slot", { key: '1fbd414a8c0bb275dcdc88a0e4ff54e944212739' })));
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
Row.style = rowCss();
|
|
1274
|
+
], TimePicker.prototype, "handleKeyDown", null);
|
|
1275
|
+
TimePicker.style = timePickerCss();
|
|
662
1276
|
|
|
663
|
-
export { Col as ix_col,
|
|
1277
|
+
export { Col as ix_col, LayoutGrid as ix_layout_grid, Row as ix_row, TimePicker as ix_time_picker };
|