@siemens/ix 0.0.0-pr-1974-20250627114851 → 0.0.0-pr-1974-20250627115746
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/custom-elements.d.ts +11 -0
- package/components/index.d.ts +33 -0
- package/components/index.js +122 -0
- package/components/index.js.map +1 -0
- package/components/ix-action-card.d.ts +11 -0
- package/components/ix-action-card.js +72 -0
- package/components/ix-action-card.js.map +1 -0
- package/components/ix-application-header.d.ts +11 -0
- package/components/ix-application-header.js +9 -0
- package/components/ix-application-header.js.map +1 -0
- package/components/ix-application-sidebar.d.ts +11 -0
- package/components/ix-application-sidebar.js +64 -0
- package/components/ix-application-sidebar.js.map +1 -0
- package/components/ix-application-switch-modal.d.ts +11 -0
- package/components/ix-application-switch-modal.js +106 -0
- package/components/ix-application-switch-modal.js.map +1 -0
- package/components/ix-application.d.ts +11 -0
- package/components/ix-application.js +148 -0
- package/components/ix-application.js.map +1 -0
- package/components/ix-avatar.d.ts +11 -0
- package/components/ix-avatar.js +9 -0
- package/components/ix-avatar.js.map +1 -0
- package/components/ix-basic-navigation.d.ts +11 -0
- package/components/ix-basic-navigation.js +154 -0
- package/components/ix-basic-navigation.js.map +1 -0
- package/components/ix-blind.d.ts +11 -0
- package/components/ix-blind.js +130 -0
- package/components/ix-blind.js.map +1 -0
- package/components/ix-breadcrumb-item.d.ts +11 -0
- package/components/ix-breadcrumb-item.js +9 -0
- package/components/ix-breadcrumb-item.js.map +1 -0
- package/components/ix-breadcrumb.d.ts +11 -0
- package/components/ix-breadcrumb.js +169 -0
- package/components/ix-breadcrumb.js.map +1 -0
- package/components/ix-button.d.ts +11 -0
- package/components/ix-button.js +9 -0
- package/components/ix-button.js.map +1 -0
- package/components/ix-card-accordion.d.ts +11 -0
- package/components/ix-card-accordion.js +9 -0
- package/components/ix-card-accordion.js.map +1 -0
- package/components/ix-card-content.d.ts +11 -0
- package/components/ix-card-content.js +9 -0
- package/components/ix-card-content.js.map +1 -0
- package/components/ix-card-list.d.ts +11 -0
- package/components/ix-card-list.js +256 -0
- package/components/ix-card-list.js.map +1 -0
- package/components/ix-card-title.d.ts +11 -0
- package/components/ix-card-title.js +9 -0
- package/components/ix-card-title.js.map +1 -0
- package/components/ix-card.d.ts +11 -0
- package/components/ix-card.js +9 -0
- package/components/ix-card.js.map +1 -0
- package/components/ix-category-filter.d.ts +11 -0
- package/components/ix-category-filter.js +600 -0
- package/components/ix-category-filter.js.map +1 -0
- package/components/ix-checkbox-group.d.ts +11 -0
- package/components/ix-checkbox-group.js +158 -0
- package/components/ix-checkbox-group.js.map +1 -0
- package/components/ix-checkbox.d.ts +11 -0
- package/components/ix-checkbox.js +163 -0
- package/components/ix-checkbox.js.map +1 -0
- package/components/ix-chip.d.ts +11 -0
- package/components/ix-chip.js +154 -0
- package/components/ix-chip.js.map +1 -0
- package/components/ix-col.d.ts +11 -0
- package/components/ix-col.js +9 -0
- package/components/ix-col.js.map +1 -0
- package/components/ix-content-header.d.ts +11 -0
- package/components/ix-content-header.js +73 -0
- package/components/ix-content-header.js.map +1 -0
- package/components/ix-content.d.ts +11 -0
- package/components/ix-content.js +49 -0
- package/components/ix-content.js.map +1 -0
- package/components/ix-css-grid-item.d.ts +11 -0
- package/components/ix-css-grid-item.js +40 -0
- package/components/ix-css-grid-item.js.map +1 -0
- package/components/ix-css-grid.d.ts +11 -0
- package/components/ix-css-grid.js +117 -0
- package/components/ix-css-grid.js.map +1 -0
- package/components/ix-custom-field.d.ts +11 -0
- package/components/ix-custom-field.js +112 -0
- package/components/ix-custom-field.js.map +1 -0
- package/components/ix-date-dropdown.d.ts +11 -0
- package/components/ix-date-dropdown.js +368 -0
- package/components/ix-date-dropdown.js.map +1 -0
- package/components/ix-date-input.d.ts +11 -0
- package/components/ix-date-input.js +393 -0
- package/components/ix-date-input.js.map +1 -0
- package/components/ix-date-picker.d.ts +11 -0
- package/components/ix-date-picker.js +9 -0
- package/components/ix-date-picker.js.map +1 -0
- package/components/ix-date-time-card.d.ts +11 -0
- package/components/ix-date-time-card.js +9 -0
- package/components/ix-date-time-card.js.map +1 -0
- package/components/ix-datetime-picker.d.ts +11 -0
- package/components/ix-datetime-picker.js +204 -0
- package/components/ix-datetime-picker.js.map +1 -0
- package/components/ix-divider.d.ts +11 -0
- package/components/ix-divider.js +9 -0
- package/components/ix-divider.js.map +1 -0
- package/components/ix-drawer.d.ts +11 -0
- package/components/ix-drawer.js +200 -0
- package/components/ix-drawer.js.map +1 -0
- package/components/ix-dropdown-button.d.ts +11 -0
- package/components/ix-dropdown-button.js +106 -0
- package/components/ix-dropdown-button.js.map +1 -0
- package/components/ix-dropdown-header.d.ts +11 -0
- package/components/ix-dropdown-header.js +44 -0
- package/components/ix-dropdown-header.js.map +1 -0
- package/components/ix-dropdown-item.d.ts +11 -0
- package/components/ix-dropdown-item.js +9 -0
- package/components/ix-dropdown-item.js.map +1 -0
- package/components/ix-dropdown-quick-actions.d.ts +11 -0
- package/components/ix-dropdown-quick-actions.js +36 -0
- package/components/ix-dropdown-quick-actions.js.map +1 -0
- package/components/ix-dropdown.d.ts +11 -0
- package/components/ix-dropdown.js +9 -0
- package/components/ix-dropdown.js.map +1 -0
- package/components/ix-empty-state.d.ts +11 -0
- package/components/ix-empty-state.js +65 -0
- package/components/ix-empty-state.js.map +1 -0
- package/components/ix-event-list-item.d.ts +11 -0
- package/components/ix-event-list-item.js +72 -0
- package/components/ix-event-list-item.js.map +1 -0
- package/components/ix-event-list.d.ts +11 -0
- package/components/ix-event-list.js +173 -0
- package/components/ix-event-list.js.map +1 -0
- package/components/ix-expanding-search.d.ts +11 -0
- package/components/ix-expanding-search.js +145 -0
- package/components/ix-expanding-search.js.map +1 -0
- package/components/ix-field-label.d.ts +11 -0
- package/components/ix-field-label.js +9 -0
- package/components/ix-field-label.js.map +1 -0
- package/components/ix-field-wrapper.d.ts +11 -0
- package/components/ix-field-wrapper.js +9 -0
- package/components/ix-field-wrapper.js.map +1 -0
- package/components/ix-filter-chip.d.ts +11 -0
- package/components/ix-filter-chip.js +9 -0
- package/components/ix-filter-chip.js.map +1 -0
- package/components/ix-flip-tile-content.d.ts +11 -0
- package/components/ix-flip-tile-content.js +44 -0
- package/components/ix-flip-tile-content.js.map +1 -0
- package/components/ix-flip-tile.d.ts +11 -0
- package/components/ix-flip-tile.js +153 -0
- package/components/ix-flip-tile.js.map +1 -0
- package/components/ix-group-context-menu.d.ts +11 -0
- package/components/ix-group-context-menu.js +9 -0
- package/components/ix-group-context-menu.js.map +1 -0
- package/components/ix-group-item.d.ts +11 -0
- package/components/ix-group-item.js +9 -0
- package/components/ix-group-item.js.map +1 -0
- package/components/ix-group.d.ts +11 -0
- package/components/ix-group.js +221 -0
- package/components/ix-group.js.map +1 -0
- package/components/ix-helper-text.d.ts +11 -0
- package/components/ix-helper-text.js +95 -0
- package/components/ix-helper-text.js.map +1 -0
- package/components/ix-icon-button.d.ts +11 -0
- package/components/ix-icon-button.js +9 -0
- package/components/ix-icon-button.js.map +1 -0
- package/components/ix-icon-toggle-button.d.ts +11 -0
- package/components/ix-icon-toggle-button.js +149 -0
- package/components/ix-icon-toggle-button.js.map +1 -0
- package/components/ix-input-group.d.ts +11 -0
- package/components/ix-input-group.js +152 -0
- package/components/ix-input-group.js.map +1 -0
- package/components/ix-input.d.ts +11 -0
- package/components/ix-input.js +248 -0
- package/components/ix-input.js.map +1 -0
- package/components/ix-key-value-list.d.ts +11 -0
- package/components/ix-key-value-list.js +42 -0
- package/components/ix-key-value-list.js.map +1 -0
- package/components/ix-key-value.d.ts +11 -0
- package/components/ix-key-value.js +48 -0
- package/components/ix-key-value.js.map +1 -0
- package/components/ix-kpi.d.ts +11 -0
- package/components/ix-kpi.js +74 -0
- package/components/ix-kpi.js.map +1 -0
- package/components/ix-layout-auto.d.ts +11 -0
- package/components/ix-layout-auto.js +113 -0
- package/components/ix-layout-auto.js.map +1 -0
- package/components/ix-layout-grid.d.ts +11 -0
- package/components/ix-layout-grid.js +9 -0
- package/components/ix-layout-grid.js.map +1 -0
- package/components/ix-link-button.d.ts +11 -0
- package/components/ix-link-button.js +57 -0
- package/components/ix-link-button.js.map +1 -0
- package/components/ix-map-navigation-overlay.d.ts +11 -0
- package/components/ix-map-navigation-overlay.js +9 -0
- package/components/ix-map-navigation-overlay.js.map +1 -0
- package/components/ix-map-navigation.d.ts +11 -0
- package/components/ix-map-navigation.js +240 -0
- package/components/ix-map-navigation.js.map +1 -0
- package/components/ix-menu-about-item.d.ts +11 -0
- package/components/ix-menu-about-item.js +51 -0
- package/components/ix-menu-about-item.js.map +1 -0
- package/components/ix-menu-about-news.d.ts +11 -0
- package/components/ix-menu-about-news.js +93 -0
- package/components/ix-menu-about-news.js.map +1 -0
- package/components/ix-menu-about.d.ts +11 -0
- package/components/ix-menu-about.js +89 -0
- package/components/ix-menu-about.js.map +1 -0
- package/components/ix-menu-avatar-item.d.ts +11 -0
- package/components/ix-menu-avatar-item.js +9 -0
- package/components/ix-menu-avatar-item.js.map +1 -0
- package/components/ix-menu-avatar.d.ts +11 -0
- package/components/ix-menu-avatar.js +115 -0
- package/components/ix-menu-avatar.js.map +1 -0
- package/components/ix-menu-category.d.ts +11 -0
- package/components/ix-menu-category.js +284 -0
- package/components/ix-menu-category.js.map +1 -0
- package/components/ix-menu-expand-icon.d.ts +11 -0
- package/components/ix-menu-expand-icon.js +9 -0
- package/components/ix-menu-expand-icon.js.map +1 -0
- package/components/ix-menu-item.d.ts +11 -0
- package/components/ix-menu-item.js +9 -0
- package/components/ix-menu-item.js.map +1 -0
- package/components/ix-menu-settings-item.d.ts +11 -0
- package/components/ix-menu-settings-item.js +51 -0
- package/components/ix-menu-settings-item.js.map +1 -0
- package/components/ix-menu-settings.d.ts +11 -0
- package/components/ix-menu-settings.js +9 -0
- package/components/ix-menu-settings.js.map +1 -0
- package/components/ix-menu.d.ts +11 -0
- package/components/ix-menu.js +590 -0
- package/components/ix-menu.js.map +1 -0
- package/components/ix-message-bar.d.ts +11 -0
- package/components/ix-message-bar.js +103 -0
- package/components/ix-message-bar.js.map +1 -0
- package/components/ix-modal-content.d.ts +11 -0
- package/components/ix-modal-content.js +9 -0
- package/components/ix-modal-content.js.map +1 -0
- package/components/ix-modal-footer.d.ts +11 -0
- package/components/ix-modal-footer.js +36 -0
- package/components/ix-modal-footer.js.map +1 -0
- package/components/ix-modal-header.d.ts +11 -0
- package/components/ix-modal-header.js +9 -0
- package/components/ix-modal-header.js.map +1 -0
- package/components/ix-modal-loading.d.ts +11 -0
- package/components/ix-modal-loading.js +42 -0
- package/components/ix-modal-loading.js.map +1 -0
- package/components/ix-modal.d.ts +11 -0
- package/components/ix-modal.js +241 -0
- package/components/ix-modal.js.map +1 -0
- package/components/ix-number-input.d.ts +11 -0
- package/components/ix-number-input.js +241 -0
- package/components/ix-number-input.js.map +1 -0
- package/components/ix-pagination.d.ts +11 -0
- package/components/ix-pagination.js +261 -0
- package/components/ix-pagination.js.map +1 -0
- package/components/ix-pane-layout.d.ts +11 -0
- package/components/ix-pane-layout.js +311 -0
- package/components/ix-pane-layout.js.map +1 -0
- package/components/ix-pane.d.ts +11 -0
- package/components/ix-pane.js +568 -0
- package/components/ix-pane.js.map +1 -0
- package/components/ix-pill.d.ts +11 -0
- package/components/ix-pill.js +127 -0
- package/components/ix-pill.js.map +1 -0
- package/components/ix-progress-indicator.d.ts +11 -0
- package/components/ix-progress-indicator.js +193 -0
- package/components/ix-progress-indicator.js.map +1 -0
- package/components/ix-push-card.d.ts +11 -0
- package/components/ix-push-card.js +82 -0
- package/components/ix-push-card.js.map +1 -0
- package/components/ix-radio-group.d.ts +11 -0
- package/components/ix-radio-group.js +195 -0
- package/components/ix-radio-group.js.map +1 -0
- package/components/ix-radio.d.ts +11 -0
- package/components/ix-radio.js +145 -0
- package/components/ix-radio.js.map +1 -0
- package/components/ix-row.d.ts +11 -0
- package/components/ix-row.js +9 -0
- package/components/ix-row.js.map +1 -0
- package/components/ix-select-item.d.ts +11 -0
- package/components/ix-select-item.js +9 -0
- package/components/ix-select-item.js.map +1 -0
- package/components/ix-select.d.ts +11 -0
- package/components/ix-select.js +9 -0
- package/components/ix-select.js.map +1 -0
- package/components/ix-slider.d.ts +11 -0
- package/components/ix-slider.js +255 -0
- package/components/ix-slider.js.map +1 -0
- package/components/ix-spinner.d.ts +11 -0
- package/components/ix-spinner.js +9 -0
- package/components/ix-spinner.js.map +1 -0
- package/components/ix-split-button.d.ts +11 -0
- package/components/ix-split-button.js +117 -0
- package/components/ix-split-button.js.map +1 -0
- package/components/ix-tab-item.d.ts +11 -0
- package/components/ix-tab-item.js +9 -0
- package/components/ix-tab-item.js.map +1 -0
- package/components/ix-tabs.d.ts +11 -0
- package/components/ix-tabs.js +9 -0
- package/components/ix-tabs.js.map +1 -0
- package/components/ix-textarea.d.ts +11 -0
- package/components/ix-textarea.js +192 -0
- package/components/ix-textarea.js.map +1 -0
- package/components/ix-tile.d.ts +11 -0
- package/components/ix-tile.js +63 -0
- package/components/ix-tile.js.map +1 -0
- package/components/ix-time-input.d.ts +11 -0
- package/components/ix-time-input.js +442 -0
- package/components/ix-time-input.js.map +1 -0
- package/components/ix-time-picker.d.ts +11 -0
- package/components/ix-time-picker.js +9 -0
- package/components/ix-time-picker.js.map +1 -0
- package/components/ix-toast-container.d.ts +11 -0
- package/components/ix-toast-container.js +143 -0
- package/components/ix-toast-container.js.map +1 -0
- package/components/ix-toast.d.ts +11 -0
- package/components/ix-toast.js +9 -0
- package/components/ix-toast.js.map +1 -0
- package/components/ix-toggle-button.d.ts +11 -0
- package/components/ix-toggle-button.js +128 -0
- package/components/ix-toggle-button.js.map +1 -0
- package/components/ix-toggle.d.ts +11 -0
- package/components/ix-toggle.js +188 -0
- package/components/ix-toggle.js.map +1 -0
- package/components/ix-tooltip.d.ts +11 -0
- package/components/ix-tooltip.js +9 -0
- package/components/ix-tooltip.js.map +1 -0
- package/components/ix-tree-item.d.ts +11 -0
- package/components/ix-tree-item.js +9 -0
- package/components/ix-tree-item.js.map +1 -0
- package/components/ix-tree.d.ts +11 -0
- package/components/ix-tree.js +610 -0
- package/components/ix-tree.js.map +1 -0
- package/components/ix-typography.d.ts +11 -0
- package/components/ix-typography.js +9 -0
- package/components/ix-typography.js.map +1 -0
- package/components/ix-upload.d.ts +11 -0
- package/components/ix-upload.js +234 -0
- package/components/ix-upload.js.map +1 -0
- package/components/ix-validation-tooltip.d.ts +11 -0
- package/components/ix-validation-tooltip.js +182 -0
- package/components/ix-validation-tooltip.js.map +1 -0
- package/components/ix-workflow-step.d.ts +11 -0
- package/components/ix-workflow-step.js +147 -0
- package/components/ix-workflow-step.js.map +1 -0
- package/components/ix-workflow-steps.d.ts +11 -0
- package/components/ix-workflow-steps.js +112 -0
- package/components/ix-workflow-steps.js.map +1 -0
- package/components/p--2LOMK-5.js +105 -0
- package/components/p--2LOMK-5.js.map +1 -0
- package/components/p-5uA5ifmT.js +72 -0
- package/components/p-5uA5ifmT.js.map +1 -0
- package/components/p-9dLpp1OQ.js +71 -0
- package/components/p-9dLpp1OQ.js.map +1 -0
- package/components/p-B1Gzt08S.js +51 -0
- package/components/p-B1Gzt08S.js.map +1 -0
- package/components/p-B3duqvjW.js +33 -0
- package/components/p-B3duqvjW.js.map +1 -0
- package/components/p-B6e7P4xT.js +42 -0
- package/components/p-B6e7P4xT.js.map +1 -0
- package/components/p-BGzrnl_l.js +21 -0
- package/components/p-BGzrnl_l.js.map +1 -0
- package/components/p-BH3f5fa3.js +37 -0
- package/components/p-BH3f5fa3.js.map +1 -0
- package/components/p-BJcX2_-N.js +110 -0
- package/components/p-BJcX2_-N.js.map +1 -0
- package/components/p-BMU8AlMD.js +107 -0
- package/components/p-BMU8AlMD.js.map +1 -0
- package/components/p-BNu7ac9R.js +79 -0
- package/components/p-BNu7ac9R.js.map +1 -0
- package/components/p-BP-8cvOJ.js +90 -0
- package/components/p-BP-8cvOJ.js.map +1 -0
- package/components/p-BQ6999e5.js +22 -0
- package/components/p-BQ6999e5.js.map +1 -0
- package/components/p-BXjBChze.js +130 -0
- package/components/p-BXjBChze.js.map +1 -0
- package/components/p-Bb7pDeaQ.js +144 -0
- package/components/p-Bb7pDeaQ.js.map +1 -0
- package/components/p-BcGAKMQ_.js +76 -0
- package/components/p-BcGAKMQ_.js.map +1 -0
- package/components/p-BdCnOrqW.js +47 -0
- package/components/p-BdCnOrqW.js.map +1 -0
- package/components/p-BedSAVZh.js +90 -0
- package/components/p-BedSAVZh.js.map +1 -0
- package/components/p-BhLbU_vK.js +129 -0
- package/components/p-BhLbU_vK.js.map +1 -0
- package/components/p-Bi1VyG64.js +46 -0
- package/components/p-Bi1VyG64.js.map +1 -0
- package/components/p-BkWbk29R.js +75 -0
- package/components/p-BkWbk29R.js.map +1 -0
- package/components/p-BmmgJGNd.js +64 -0
- package/components/p-BmmgJGNd.js.map +1 -0
- package/components/p-Bu-j8wxy.js +162 -0
- package/components/p-Bu-j8wxy.js.map +1 -0
- package/components/p-BuJ6BWIi.js +2042 -0
- package/components/p-BuJ6BWIi.js.map +1 -0
- package/components/p-Bvsx56zn.js +203 -0
- package/components/p-Bvsx56zn.js.map +1 -0
- package/components/p-BygLxZIM.js +54 -0
- package/components/p-BygLxZIM.js.map +1 -0
- package/components/p-Bzyt4nTL.js +110 -0
- package/components/p-Bzyt4nTL.js.map +1 -0
- package/components/p-C6o-AByw.js +33 -0
- package/components/p-C6o-AByw.js.map +1 -0
- package/components/p-CAqtPJ4-.js +1786 -0
- package/components/p-CAqtPJ4-.js.map +1 -0
- package/components/p-CGwHQeMX.js +54 -0
- package/components/p-CGwHQeMX.js.map +1 -0
- package/components/p-CKkTXQiw.js +164 -0
- package/components/p-CKkTXQiw.js.map +1 -0
- package/components/p-CX81WQtk.js +14 -0
- package/components/p-CX81WQtk.js.map +1 -0
- package/components/p-Cb-eBcUF.js +61 -0
- package/components/p-Cb-eBcUF.js.map +1 -0
- package/components/p-Cp5J1RZq.js +765 -0
- package/components/p-Cp5J1RZq.js.map +1 -0
- package/components/p-Cpxz1Kcs.js +19 -0
- package/components/p-Cpxz1Kcs.js.map +1 -0
- package/components/p-Cs8DEpjh.js +611 -0
- package/components/p-Cs8DEpjh.js.map +1 -0
- package/components/p-Cut5OrRw.js +461 -0
- package/components/p-Cut5OrRw.js.map +1 -0
- package/components/p-CvvOe8xV.js +151 -0
- package/components/p-CvvOe8xV.js.map +1 -0
- package/components/p-CyFFBc_G.js +100 -0
- package/components/p-CyFFBc_G.js.map +1 -0
- package/components/p-D3Aowo70.js +113 -0
- package/components/p-D3Aowo70.js.map +1 -0
- package/components/p-D3K9vmFp.js +157 -0
- package/components/p-D3K9vmFp.js.map +1 -0
- package/components/p-D6vSVaHq.js +26 -0
- package/components/p-D6vSVaHq.js.map +1 -0
- package/components/p-D9LaIICQ.js +118 -0
- package/components/p-D9LaIICQ.js.map +1 -0
- package/components/p-DCx3-1oU.js +310 -0
- package/components/p-DCx3-1oU.js.map +1 -0
- package/components/p-DDHkNPby.js +79 -0
- package/components/p-DDHkNPby.js.map +1 -0
- package/components/p-DJ7U7oUq.js +89 -0
- package/components/p-DJ7U7oUq.js.map +1 -0
- package/components/p-DMlmNp-B.js +33 -0
- package/components/p-DMlmNp-B.js.map +1 -0
- package/components/p-DWO4uklL.js +146 -0
- package/components/p-DWO4uklL.js.map +1 -0
- package/components/p-DaztMgDr.js +757 -0
- package/components/p-DaztMgDr.js.map +1 -0
- package/components/p-DbR-LZrk.js +33 -0
- package/components/p-DbR-LZrk.js.map +1 -0
- package/components/p-DfbCO042.js +207 -0
- package/components/p-DfbCO042.js.map +1 -0
- package/components/p-DkGdSI6e.js +103 -0
- package/components/p-DkGdSI6e.js.map +1 -0
- package/components/p-DojBQCbP.js +55 -0
- package/components/p-DojBQCbP.js.map +1 -0
- package/components/p-Dp15M30K.js +20 -0
- package/components/p-Dp15M30K.js.map +1 -0
- package/components/p-Dp4RJcgZ.js +125 -0
- package/components/p-Dp4RJcgZ.js.map +1 -0
- package/components/p-DyHdZRT0.js +359 -0
- package/components/p-DyHdZRT0.js.map +1 -0
- package/components/p-DyMgW0fR.js +65 -0
- package/components/p-DyMgW0fR.js.map +1 -0
- package/components/p-G0biE2Kx.js +33 -0
- package/components/p-G0biE2Kx.js.map +1 -0
- package/components/p-JJddxCCh.js +42 -0
- package/components/p-JJddxCCh.js.map +1 -0
- package/components/p-Ooq8eqJM.js +33 -0
- package/components/p-Ooq8eqJM.js.map +1 -0
- package/components/p-Ou74PMQs.js +1313 -0
- package/components/p-Ou74PMQs.js.map +1 -0
- package/components/p-PxA_udyJ.js +254 -0
- package/components/p-PxA_udyJ.js.map +1 -0
- package/components/p-TNoCM8Wi.js +83 -0
- package/components/p-TNoCM8Wi.js.map +1 -0
- package/components/p-UQa1aROL.js +23 -0
- package/components/p-UQa1aROL.js.map +1 -0
- package/components/p-bDicGJUN.js +7697 -0
- package/components/p-bDicGJUN.js.map +1 -0
- package/components/p-bcj7UEIC.js +24 -0
- package/components/p-bcj7UEIC.js.map +1 -0
- package/components/p-kY0vP3rC.js +122 -0
- package/components/p-kY0vP3rC.js.map +1 -0
- package/components/p-qauH9Ci4.js +54 -0
- package/components/p-qauH9Ci4.js.map +1 -0
- package/components/p-r63hglsv.js +90 -0
- package/components/p-r63hglsv.js.map +1 -0
- package/components/p-tH4n038Z.js +48 -0
- package/components/p-tH4n038Z.js.map +1 -0
- package/components/package.json +9 -0
- package/package.json +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxTooltip extends Components.IxTooltip, HTMLElement {}
|
|
4
|
+
export const IxTooltip: {
|
|
5
|
+
prototype: IxTooltip;
|
|
6
|
+
new (): IxTooltip;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { T as Tooltip, d as defineCustomElement$1 } from './p-DyHdZRT0.js';
|
|
2
|
+
|
|
3
|
+
const IxTooltip = Tooltip;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { IxTooltip, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=ix-tooltip.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=ix-tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ix-tooltip.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxTreeItem extends Components.IxTreeItem, HTMLElement {}
|
|
4
|
+
export const IxTreeItem: {
|
|
5
|
+
prototype: IxTreeItem;
|
|
6
|
+
new (): IxTreeItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { T as TreeItem, d as defineCustomElement$1 } from './p-DojBQCbP.js';
|
|
2
|
+
|
|
3
|
+
const IxTreeItem = TreeItem;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { IxTreeItem, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=ix-tree-item.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=ix-tree-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ix-tree-item.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxTree extends Components.IxTree, HTMLElement {}
|
|
4
|
+
export const IxTree: {
|
|
5
|
+
prototype: IxTree;
|
|
6
|
+
new (): IxTree;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-BuJ6BWIi.js';
|
|
2
|
+
import { r as renderDefaultItem } from './p-UQa1aROL.js';
|
|
3
|
+
import { d as dropdownController } from './p-D3K9vmFp.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-DojBQCbP.js';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: MIT
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
// Manually forked from https://github.com/tbranyen/hyperlist to remove
|
|
15
|
+
// features a direct document calls
|
|
16
|
+
//
|
|
17
|
+
// Hyperlist is licensed MIT. https://github.com/tbranyen/hyperlist
|
|
18
|
+
const isNumber = (input) => !Number.isNaN(Number(input));
|
|
19
|
+
const addClass = (element, className) => {
|
|
20
|
+
element.classList.add(className);
|
|
21
|
+
};
|
|
22
|
+
class VirtualList {
|
|
23
|
+
static create(element, userProvidedConfig = VirtualList.defaultConfig) {
|
|
24
|
+
return new VirtualList(element, userProvidedConfig);
|
|
25
|
+
}
|
|
26
|
+
static mergeStyle(element, style) {
|
|
27
|
+
for (let i in style) {
|
|
28
|
+
if (element.style[i] !== style[i]) {
|
|
29
|
+
element.style[i] = style[i];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
static getMaxBrowserHeight() {
|
|
34
|
+
// Create two elements, the wrapper is `1px` tall and is transparent and
|
|
35
|
+
// positioned at the top of the page. Inside that is an element that gets
|
|
36
|
+
// set to 1 billion pixels. Then reads the max height the browser can
|
|
37
|
+
// calculate.
|
|
38
|
+
const wrapper = document.createElement('div');
|
|
39
|
+
const fixture = document.createElement('div');
|
|
40
|
+
// As said above, these values get set to put the fixture elements into the
|
|
41
|
+
// right visual state.
|
|
42
|
+
VirtualList.mergeStyle(wrapper, {
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
height: '1px',
|
|
45
|
+
opacity: 0,
|
|
46
|
+
});
|
|
47
|
+
VirtualList.mergeStyle(fixture, { height: '1e7px' });
|
|
48
|
+
// Add the fixture into the wrapper element.
|
|
49
|
+
wrapper.appendChild(fixture);
|
|
50
|
+
// Apply to the page, the values won't kick in unless this is attached.
|
|
51
|
+
document.body.appendChild(wrapper);
|
|
52
|
+
// Get the maximum element height in pixels.
|
|
53
|
+
const maxElementHeight = fixture.offsetHeight;
|
|
54
|
+
// Remove the element immediately after reading the value.
|
|
55
|
+
document.body.removeChild(wrapper);
|
|
56
|
+
return maxElementHeight;
|
|
57
|
+
}
|
|
58
|
+
constructor(element, userProvidedConfig) {
|
|
59
|
+
this._lastRepaint = null;
|
|
60
|
+
this._maxElementHeight = VirtualList.getMaxBrowserHeight();
|
|
61
|
+
this.refresh(element, userProvidedConfig);
|
|
62
|
+
const config = this._config;
|
|
63
|
+
// Create internal render loop.
|
|
64
|
+
const render = () => {
|
|
65
|
+
const scrollTop = this._getScrollPosition();
|
|
66
|
+
const lastRepaint = this._lastRepaint;
|
|
67
|
+
this._renderAnimationFrame = window.requestAnimationFrame(render);
|
|
68
|
+
if (scrollTop === lastRepaint) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const diff = lastRepaint ? scrollTop - lastRepaint : 0;
|
|
72
|
+
if (!lastRepaint || diff < 0 || diff > this._averageHeight) {
|
|
73
|
+
let rendered = this._renderChunk();
|
|
74
|
+
this._lastRepaint = scrollTop;
|
|
75
|
+
if (rendered !== false && typeof config.afterRender === 'function') {
|
|
76
|
+
config.afterRender();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
render();
|
|
81
|
+
}
|
|
82
|
+
destroy() {
|
|
83
|
+
window.cancelAnimationFrame(this._renderAnimationFrame);
|
|
84
|
+
}
|
|
85
|
+
refresh(element, userProvidedConfig = VirtualList.defaultConfig) {
|
|
86
|
+
this._config = userProvidedConfig;
|
|
87
|
+
if (!element || element.nodeType !== 1) {
|
|
88
|
+
throw new Error('HyperList requires a valid DOM Node container');
|
|
89
|
+
}
|
|
90
|
+
this._element = element;
|
|
91
|
+
const config = this._config;
|
|
92
|
+
const scroller = this._scroller ||
|
|
93
|
+
config.scroller ||
|
|
94
|
+
document.createElement(config.scrollerTagName || 'tr');
|
|
95
|
+
// Default configuration option `useFragment` to `true`.
|
|
96
|
+
if (typeof config.useFragment !== 'boolean') {
|
|
97
|
+
this._config.useFragment = true;
|
|
98
|
+
}
|
|
99
|
+
if (!config.generate) {
|
|
100
|
+
throw new Error('Missing required `generate` function');
|
|
101
|
+
}
|
|
102
|
+
if (!isNumber(config.total)) {
|
|
103
|
+
throw new Error('Invalid required `total` value, expected number');
|
|
104
|
+
}
|
|
105
|
+
if (!Array.isArray(config.itemHeight) && !isNumber(config.itemHeight)) {
|
|
106
|
+
throw new Error(`
|
|
107
|
+
Invalid required \`itemHeight\` value, expected number or array
|
|
108
|
+
`.trim());
|
|
109
|
+
}
|
|
110
|
+
else if (isNumber(config.itemHeight)) {
|
|
111
|
+
this._itemHeights = Array(config.total).fill(config.itemHeight);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this._itemHeights = [config.itemHeight];
|
|
115
|
+
}
|
|
116
|
+
// Width and height should be coerced to string representations. Either in
|
|
117
|
+
// `%` or `px`.
|
|
118
|
+
Object.keys(VirtualList.defaultConfig)
|
|
119
|
+
.filter((prop) => prop in config)
|
|
120
|
+
.forEach((prop) => {
|
|
121
|
+
const value = config[prop];
|
|
122
|
+
const isValueNumber = isNumber(value);
|
|
123
|
+
if (value && typeof value !== 'string' && typeof value !== 'number') {
|
|
124
|
+
let msg = `Invalid optional \`${prop}\`, expected string or number`;
|
|
125
|
+
throw new Error(msg);
|
|
126
|
+
}
|
|
127
|
+
else if (isValueNumber) {
|
|
128
|
+
config[prop] = `${value}px`;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
const isHorizontal = Boolean(config.horizontal);
|
|
132
|
+
const value = config[isHorizontal ? 'width' : 'height'];
|
|
133
|
+
if (value) {
|
|
134
|
+
const isValueNumber = isNumber(value);
|
|
135
|
+
const isValuePercent = isValueNumber ? false : value.slice(-1) === '%';
|
|
136
|
+
// Compute the containerHeight as number
|
|
137
|
+
const numberValue = isValueNumber
|
|
138
|
+
? parseInt(value, 10)
|
|
139
|
+
: parseInt(value.replace(/px|%/, ''), 10);
|
|
140
|
+
const innerSize = window[isHorizontal ? 'innerWidth' : 'innerHeight'];
|
|
141
|
+
if (isValuePercent) {
|
|
142
|
+
this._containerSize = (innerSize * numberValue) / 100;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
this._containerSize = isNumber(value) ? value : numberValue;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const scrollContainer = config.scrollContainer;
|
|
149
|
+
const scrollerHeight = config.itemHeight * config.total;
|
|
150
|
+
const maxElementHeight = this._maxElementHeight;
|
|
151
|
+
if (scrollerHeight > maxElementHeight) {
|
|
152
|
+
console.warn([
|
|
153
|
+
'HyperList: The maximum element height',
|
|
154
|
+
maxElementHeight + 'px has',
|
|
155
|
+
'been exceeded; please reduce your item height.',
|
|
156
|
+
].join(' '));
|
|
157
|
+
}
|
|
158
|
+
// Decorate the container element with styles that will match
|
|
159
|
+
// the user supplied configuration.
|
|
160
|
+
const elementStyle = {
|
|
161
|
+
width: `${config.width}`,
|
|
162
|
+
height: scrollContainer ? `${scrollerHeight}px` : `${config.height}`,
|
|
163
|
+
overflow: scrollContainer ? 'none' : 'auto',
|
|
164
|
+
position: 'relative',
|
|
165
|
+
};
|
|
166
|
+
VirtualList.mergeStyle(element, elementStyle);
|
|
167
|
+
if (scrollContainer) {
|
|
168
|
+
VirtualList.mergeStyle(config.scrollContainer, { overflow: 'auto' });
|
|
169
|
+
}
|
|
170
|
+
const scrollerStyle = {
|
|
171
|
+
opacity: '0',
|
|
172
|
+
position: 'absolute',
|
|
173
|
+
[isHorizontal ? 'height' : 'width']: '1px',
|
|
174
|
+
[isHorizontal ? 'width' : 'height']: `${scrollerHeight}px`,
|
|
175
|
+
};
|
|
176
|
+
VirtualList.mergeStyle(scroller, scrollerStyle);
|
|
177
|
+
// Only append the scroller element once.
|
|
178
|
+
if (!this._scroller) {
|
|
179
|
+
element.appendChild(scroller);
|
|
180
|
+
}
|
|
181
|
+
const padding = this._computeScrollPadding();
|
|
182
|
+
this._scrollPaddingBottom = padding.bottom;
|
|
183
|
+
this._scrollPaddingTop = padding.top;
|
|
184
|
+
// Set the scroller instance.
|
|
185
|
+
this._scroller = scroller;
|
|
186
|
+
this._scrollHeight = this._computeScrollHeight();
|
|
187
|
+
// Reuse the item positions if refreshed, otherwise set to empty array.
|
|
188
|
+
this._itemPositions = this._itemPositions || Array(config.total).fill(0);
|
|
189
|
+
// Each index in the array should represent the position in the DOM.
|
|
190
|
+
this._computePositions(0);
|
|
191
|
+
// Render after refreshing. Force render if we're calling refresh manually.
|
|
192
|
+
this._renderChunk(this._lastRepaint !== null);
|
|
193
|
+
if (typeof config.afterRender === 'function') {
|
|
194
|
+
config.afterRender();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
_getRow(i) {
|
|
198
|
+
const config = this._config;
|
|
199
|
+
let item = config.generate(i);
|
|
200
|
+
let height = item.height;
|
|
201
|
+
if (height !== undefined && isNumber(height)) {
|
|
202
|
+
item = item.element;
|
|
203
|
+
// The height isn't the same as predicted, compute positions again
|
|
204
|
+
if (height !== this._itemHeights[i]) {
|
|
205
|
+
this._itemHeights[i] = height;
|
|
206
|
+
this._computePositions(i);
|
|
207
|
+
this._scrollHeight = this._computeScrollHeight();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
height = this._itemHeights[i];
|
|
212
|
+
}
|
|
213
|
+
if (!item || item.nodeType !== 1) {
|
|
214
|
+
throw new Error(`Generator did not return a DOM Node for index: ${i}`);
|
|
215
|
+
}
|
|
216
|
+
addClass(item, config.rowClassName || 'vrow');
|
|
217
|
+
const top = this._itemPositions[i] + this._scrollPaddingTop;
|
|
218
|
+
VirtualList.mergeStyle(item, {
|
|
219
|
+
position: 'absolute',
|
|
220
|
+
[config.horizontal ? 'left' : 'top']: `${top}px`,
|
|
221
|
+
});
|
|
222
|
+
return item;
|
|
223
|
+
}
|
|
224
|
+
_getScrollPosition() {
|
|
225
|
+
const config = this._config;
|
|
226
|
+
if (typeof config.overrideScrollPosition === 'function') {
|
|
227
|
+
return config.overrideScrollPosition();
|
|
228
|
+
}
|
|
229
|
+
return this._element[config.horizontal ? 'scrollLeft' : 'scrollTop'];
|
|
230
|
+
}
|
|
231
|
+
_renderChunk(force = false) {
|
|
232
|
+
const config = this._config;
|
|
233
|
+
const element = this._element;
|
|
234
|
+
const scrollTop = this._getScrollPosition();
|
|
235
|
+
const total = config.total;
|
|
236
|
+
let from = this._getFrom(scrollTop) - 1;
|
|
237
|
+
if (from < 0 || from - this._screenItemsLen < 0) {
|
|
238
|
+
from = 0;
|
|
239
|
+
}
|
|
240
|
+
if (!force && this._lastFrom === from) {
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
this._lastFrom = from;
|
|
244
|
+
let to = from + this._cachedItemsLen;
|
|
245
|
+
if (to > total || to + this._cachedItemsLen > total) {
|
|
246
|
+
to = total;
|
|
247
|
+
}
|
|
248
|
+
// Append all the new rows in a document fragment that we will later append
|
|
249
|
+
// to the parent node
|
|
250
|
+
const fragment = config.useFragment
|
|
251
|
+
? document.createDocumentFragment()
|
|
252
|
+
: [
|
|
253
|
+
// Sometimes you'll pass fake elements to this tool and Fragments require
|
|
254
|
+
// real elements.
|
|
255
|
+
];
|
|
256
|
+
// The element that forces the container to scroll.
|
|
257
|
+
const scroller = this._scroller;
|
|
258
|
+
// Keep the scroller in the list of children.
|
|
259
|
+
fragment[config.useFragment ? 'appendChild' : 'push'](scroller);
|
|
260
|
+
for (let i = from; i < to; i++) {
|
|
261
|
+
let row = this._getRow(i);
|
|
262
|
+
fragment[config.useFragment ? 'appendChild' : 'push'](row);
|
|
263
|
+
}
|
|
264
|
+
if (config.applyPatch) {
|
|
265
|
+
return config.applyPatch(element, fragment);
|
|
266
|
+
}
|
|
267
|
+
element.innerHTML = '';
|
|
268
|
+
element.appendChild(fragment);
|
|
269
|
+
}
|
|
270
|
+
_computePositions(from = 1) {
|
|
271
|
+
const config = this._config;
|
|
272
|
+
const total = config.total;
|
|
273
|
+
if (from < 1) {
|
|
274
|
+
from = 1;
|
|
275
|
+
}
|
|
276
|
+
for (let i = from; i < total; i++) {
|
|
277
|
+
this._itemPositions[i] =
|
|
278
|
+
this._itemHeights[i - 1] + this._itemPositions[i - 1];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
_computeScrollHeight() {
|
|
282
|
+
const config = this._config;
|
|
283
|
+
const isHorizontal = Boolean(config.horizontal);
|
|
284
|
+
const total = config.total;
|
|
285
|
+
const scrollHeight = this._itemHeights.reduce((a, b) => a + b, 0) +
|
|
286
|
+
this._scrollPaddingBottom +
|
|
287
|
+
this._scrollPaddingTop;
|
|
288
|
+
VirtualList.mergeStyle(this._scroller, {
|
|
289
|
+
opacity: 0,
|
|
290
|
+
position: 'absolute',
|
|
291
|
+
top: '0px',
|
|
292
|
+
[isHorizontal ? 'height' : 'width']: '1px',
|
|
293
|
+
[isHorizontal ? 'width' : 'height']: `${scrollHeight}px`,
|
|
294
|
+
});
|
|
295
|
+
// Calculate the height median
|
|
296
|
+
const sortedItemHeights = this._itemHeights.slice(0).sort((a, b) => a - b);
|
|
297
|
+
const middle = Math.floor(total / 2);
|
|
298
|
+
const averageHeight = total % 2 === 0
|
|
299
|
+
? (sortedItemHeights[middle] + sortedItemHeights[middle - 1]) / 2
|
|
300
|
+
: sortedItemHeights[middle];
|
|
301
|
+
const clientProp = isHorizontal ? 'clientWidth' : 'clientHeight';
|
|
302
|
+
const element = config.scrollContainer
|
|
303
|
+
? config.scrollContainer
|
|
304
|
+
: this._element;
|
|
305
|
+
const containerHeight = element[clientProp]
|
|
306
|
+
? element[clientProp]
|
|
307
|
+
: this._containerSize;
|
|
308
|
+
this._screenItemsLen = Math.ceil(containerHeight / averageHeight);
|
|
309
|
+
this._containerSize = containerHeight;
|
|
310
|
+
// Cache 3 times the number of items that fit in the container viewport.
|
|
311
|
+
this._cachedItemsLen = Math.max(this._cachedItemsLen || 0, this._screenItemsLen * 3);
|
|
312
|
+
this._averageHeight = averageHeight;
|
|
313
|
+
return scrollHeight;
|
|
314
|
+
}
|
|
315
|
+
_computeScrollPadding() {
|
|
316
|
+
const config = this._config;
|
|
317
|
+
const isHoriz = Boolean(config.horizontal);
|
|
318
|
+
const styles = window.getComputedStyle(this._element);
|
|
319
|
+
const padding = (location) => {
|
|
320
|
+
const cssValue = styles.getPropertyValue(`padding-${location}`);
|
|
321
|
+
return parseInt(cssValue, 10) || 0;
|
|
322
|
+
};
|
|
323
|
+
if (isHoriz) {
|
|
324
|
+
return {
|
|
325
|
+
bottom: padding('right'),
|
|
326
|
+
top: padding('left'),
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
return {
|
|
331
|
+
bottom: padding('bottom'),
|
|
332
|
+
top: padding('top'),
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
_getFrom(scrollTop) {
|
|
337
|
+
let i = 0;
|
|
338
|
+
while (this._itemPositions[i] < scrollTop) {
|
|
339
|
+
i++;
|
|
340
|
+
}
|
|
341
|
+
return i;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
VirtualList.defaultConfig = {
|
|
345
|
+
width: '100%',
|
|
346
|
+
height: '100%',
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
const treeCss = ":host{display:block}";
|
|
350
|
+
|
|
351
|
+
const Tree = /*@__PURE__*/ proxyCustomElement(class Tree extends H {
|
|
352
|
+
constructor() {
|
|
353
|
+
super();
|
|
354
|
+
this.__registerHost();
|
|
355
|
+
this.__attachShadow();
|
|
356
|
+
this.contextChange = createEvent(this, "contextChange", 7);
|
|
357
|
+
this.nodeToggled = createEvent(this, "nodeToggled", 7);
|
|
358
|
+
this.nodeClicked = createEvent(this, "nodeClicked", 7);
|
|
359
|
+
this.nodeRemoved = createEvent(this, "nodeRemoved", 7);
|
|
360
|
+
/**
|
|
361
|
+
* Tree model
|
|
362
|
+
*/
|
|
363
|
+
this.model = {};
|
|
364
|
+
/**
|
|
365
|
+
* Selection and collapsed state management
|
|
366
|
+
*/
|
|
367
|
+
this.context = {};
|
|
368
|
+
this.updates = new Map();
|
|
369
|
+
this.hasFirstRender = false;
|
|
370
|
+
}
|
|
371
|
+
updatePadding(element, item) {
|
|
372
|
+
element.style.paddingLeft = item.level + 'rem';
|
|
373
|
+
}
|
|
374
|
+
getVirtualizerOptions() {
|
|
375
|
+
const list = this.buildTreeList(this.model[this.root]);
|
|
376
|
+
return {
|
|
377
|
+
width: '100%',
|
|
378
|
+
height: '100%',
|
|
379
|
+
itemHeight: 32,
|
|
380
|
+
total: list.length,
|
|
381
|
+
generate: (index) => {
|
|
382
|
+
const item = list[index];
|
|
383
|
+
const renderedTreeItem = this.hostElement.querySelector(`[data-tree-node-id="${item.id}"]`);
|
|
384
|
+
const context = this.getContext(item.id);
|
|
385
|
+
if (renderedTreeItem) {
|
|
386
|
+
renderedTreeItem.hasChildren = item.hasChildren;
|
|
387
|
+
renderedTreeItem.context = Object.assign({}, context);
|
|
388
|
+
if (this.updates.has(item.id)) {
|
|
389
|
+
const doUpdate = this.updates.get(item.id);
|
|
390
|
+
if (doUpdate) {
|
|
391
|
+
doUpdate(item, Object.assign({}, this.context));
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
this.updatePadding(renderedTreeItem, item);
|
|
395
|
+
return renderedTreeItem;
|
|
396
|
+
}
|
|
397
|
+
const update = (callback) => {
|
|
398
|
+
this.updates.set(item.id, callback);
|
|
399
|
+
};
|
|
400
|
+
let innerElement = null;
|
|
401
|
+
if (this.renderItem) {
|
|
402
|
+
innerElement = this.renderItem(index, item, list, Object.assign({}, this.context), update);
|
|
403
|
+
}
|
|
404
|
+
if (innerElement === null) {
|
|
405
|
+
innerElement = renderDefaultItem(item, context, update);
|
|
406
|
+
}
|
|
407
|
+
const el = innerElement;
|
|
408
|
+
el.setAttribute('data-tree-node-id', item.id);
|
|
409
|
+
el.style.paddingRight = '1rem';
|
|
410
|
+
this.updatePadding(el, item);
|
|
411
|
+
return el;
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
setContext(id, context) {
|
|
416
|
+
this.context = Object.assign(Object.assign({}, this.context), { [id]: context });
|
|
417
|
+
this.contextChange.emit(this.context);
|
|
418
|
+
}
|
|
419
|
+
getContext(id) {
|
|
420
|
+
if (!this.context) {
|
|
421
|
+
return {
|
|
422
|
+
isExpanded: false,
|
|
423
|
+
isSelected: false,
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
if (!this.context[id]) {
|
|
427
|
+
this.context[id] = {
|
|
428
|
+
isExpanded: false,
|
|
429
|
+
isSelected: false,
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
return this.context[id];
|
|
433
|
+
}
|
|
434
|
+
buildTreeList(root, level = 0) {
|
|
435
|
+
const itemList = [];
|
|
436
|
+
if (root === null || root === void 0 ? void 0 : root.hasChildren) {
|
|
437
|
+
const newLevel = level + 1;
|
|
438
|
+
root.children.forEach((id) => {
|
|
439
|
+
const item = this.model[id];
|
|
440
|
+
const context = this.getContext(id);
|
|
441
|
+
itemList.push(Object.assign(Object.assign({}, item), { level }));
|
|
442
|
+
if (item.hasChildren && context.isExpanded) {
|
|
443
|
+
itemList.push(...this.buildTreeList(item, newLevel));
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
return itemList;
|
|
448
|
+
}
|
|
449
|
+
componentDidLoad() {
|
|
450
|
+
this.initList();
|
|
451
|
+
this.observer = new MutationObserver((records) => {
|
|
452
|
+
let removed = [];
|
|
453
|
+
records.forEach((record) => {
|
|
454
|
+
removed = [...removed, ...Array.from(record.removedNodes)];
|
|
455
|
+
record.addedNodes.forEach((an) => {
|
|
456
|
+
const index = removed.indexOf(an);
|
|
457
|
+
if (index >= 0) {
|
|
458
|
+
removed.splice(index, 1);
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
});
|
|
462
|
+
this.nodeRemoved.emit(removed);
|
|
463
|
+
});
|
|
464
|
+
this.observer.observe(this.hostElement, {
|
|
465
|
+
childList: true,
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
componentWillRender() {
|
|
469
|
+
this.hasFirstRender = true;
|
|
470
|
+
if (this.isListInitialized()) {
|
|
471
|
+
this.refreshList();
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
this.initList();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
connectedCallback() {
|
|
478
|
+
if (this.hasFirstRender) {
|
|
479
|
+
this.initList();
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
disconnectedCallback() {
|
|
483
|
+
var _a, _b;
|
|
484
|
+
(_a = this.hyperlist) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
485
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
486
|
+
}
|
|
487
|
+
modelChange() {
|
|
488
|
+
if (this.hasFirstRender && !this.isListInitialized()) {
|
|
489
|
+
this.initList();
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
isListInitialized() {
|
|
493
|
+
var _a;
|
|
494
|
+
//@ts-ignore
|
|
495
|
+
const itemPositions = (_a = this.hyperlist) === null || _a === void 0 ? void 0 : _a._itemPositions;
|
|
496
|
+
return (itemPositions !== undefined &&
|
|
497
|
+
itemPositions.length &&
|
|
498
|
+
!(itemPositions === null || itemPositions === void 0 ? void 0 : itemPositions.some((item) => item === undefined || Number.isNaN(item))));
|
|
499
|
+
}
|
|
500
|
+
refreshList() {
|
|
501
|
+
if (this.hyperlist) {
|
|
502
|
+
this.hyperlist.refresh(this.hostElement, this.getVirtualizerOptions());
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
initList() {
|
|
506
|
+
var _a;
|
|
507
|
+
if (!this.model) {
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
(_a = this.hyperlist) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
511
|
+
const config = this.getVirtualizerOptions();
|
|
512
|
+
this.hyperlist = new VirtualList(this.hostElement, config);
|
|
513
|
+
}
|
|
514
|
+
onToggle(event) {
|
|
515
|
+
const { target } = event;
|
|
516
|
+
event.preventDefault();
|
|
517
|
+
event.stopPropagation();
|
|
518
|
+
if (!(target instanceof H)) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
const id = target.getAttribute('data-tree-node-id');
|
|
522
|
+
if (!id) {
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
const item = this.model[id];
|
|
526
|
+
if (!item.hasChildren) {
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
const context = this.getContext(id);
|
|
530
|
+
context.isExpanded = !context.isExpanded;
|
|
531
|
+
this.nodeToggled.emit({ id, isExpanded: context.isExpanded });
|
|
532
|
+
this.setContext(id, context);
|
|
533
|
+
}
|
|
534
|
+
onTreeItemClick(event) {
|
|
535
|
+
const { target } = event;
|
|
536
|
+
if (!(target instanceof H)) {
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
const id = target.getAttribute('data-tree-node-id');
|
|
540
|
+
if (!id) {
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
const item = this.model[id];
|
|
544
|
+
const path = event.composedPath();
|
|
545
|
+
const treeIndex = path.indexOf(this.hostElement);
|
|
546
|
+
const treePath = path.slice(0, treeIndex);
|
|
547
|
+
const hasTrigger = dropdownController.pathIncludesTrigger(treePath);
|
|
548
|
+
if (hasTrigger) {
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
if (!event.defaultPrevented) {
|
|
552
|
+
Object.values(this.context).forEach((c) => (c.isSelected = false));
|
|
553
|
+
const context = this.getContext(id);
|
|
554
|
+
context.isSelected = true;
|
|
555
|
+
this.setContext(id, context);
|
|
556
|
+
}
|
|
557
|
+
if (this.toggleOnItemClick && item.hasChildren) {
|
|
558
|
+
const context = this.getContext(id);
|
|
559
|
+
context.isExpanded = !context.isExpanded;
|
|
560
|
+
this.nodeToggled.emit({
|
|
561
|
+
id: id,
|
|
562
|
+
isExpanded: context.isExpanded,
|
|
563
|
+
});
|
|
564
|
+
this.setContext(id, context);
|
|
565
|
+
}
|
|
566
|
+
this.nodeClicked.emit(id);
|
|
567
|
+
}
|
|
568
|
+
render() {
|
|
569
|
+
return (h(Host, { key: 'e314d9b97096f3986cd4cfbd0b39f2d2032b2db4', onClick: (event) => this.onTreeItemClick(event) }, h("slot", { key: '16df5c02726d20484ce8bbfd707c4f225f12ade1' })));
|
|
570
|
+
}
|
|
571
|
+
get hostElement() { return this; }
|
|
572
|
+
static get watchers() { return {
|
|
573
|
+
"model": ["modelChange"]
|
|
574
|
+
}; }
|
|
575
|
+
static get style() { return treeCss; }
|
|
576
|
+
}, [1, "ix-tree", {
|
|
577
|
+
"root": [1],
|
|
578
|
+
"model": [16],
|
|
579
|
+
"renderItem": [16, "render-item"],
|
|
580
|
+
"context": [1040],
|
|
581
|
+
"toggleOnItemClick": [4, "toggle-on-item-click"]
|
|
582
|
+
}, [[0, "toggle", "onToggle"]], {
|
|
583
|
+
"model": ["modelChange"]
|
|
584
|
+
}]);
|
|
585
|
+
function defineCustomElement$1() {
|
|
586
|
+
if (typeof customElements === "undefined") {
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
const components = ["ix-tree", "ix-tree-item"];
|
|
590
|
+
components.forEach(tagName => { switch (tagName) {
|
|
591
|
+
case "ix-tree":
|
|
592
|
+
if (!customElements.get(tagName)) {
|
|
593
|
+
customElements.define(tagName, Tree);
|
|
594
|
+
}
|
|
595
|
+
break;
|
|
596
|
+
case "ix-tree-item":
|
|
597
|
+
if (!customElements.get(tagName)) {
|
|
598
|
+
defineCustomElement$2();
|
|
599
|
+
}
|
|
600
|
+
break;
|
|
601
|
+
} });
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
const IxTree = Tree;
|
|
605
|
+
const defineCustomElement = defineCustomElement$1;
|
|
606
|
+
|
|
607
|
+
export { IxTree, defineCustomElement };
|
|
608
|
+
//# sourceMappingURL=ix-tree.js.map
|
|
609
|
+
|
|
610
|
+
//# sourceMappingURL=ix-tree.js.map
|