@siemens/ix 0.0.0-pr-1974-20250627114851 → 0.0.0-pr-1974-20250627142646
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 +3 -2
- package/dist/collection/components/application-header/test/application-header.ct.js +0 -389
- package/dist/collection/components/application-header/test/application-header.ct.js.map +0 -1
- package/dist/collection/components/avatar/test/avatar.ct.js +0 -85
- package/dist/collection/components/avatar/test/avatar.ct.js.map +0 -1
- package/dist/collection/components/blind/test/blind.ct.js +0 -16
- package/dist/collection/components/blind/test/blind.ct.js.map +0 -1
- package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js +0 -98
- package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js.map +0 -1
- package/dist/collection/components/button/test/button.ct.js +0 -153
- package/dist/collection/components/button/test/button.ct.js.map +0 -1
- package/dist/collection/components/category-filter/test/category-filter.ct.js +0 -62
- package/dist/collection/components/category-filter/test/category-filter.ct.js.map +0 -1
- package/dist/collection/components/checkbox/tests/checkbox.ct.js +0 -86
- package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +0 -1
- package/dist/collection/components/checkbox-group/test/checkbox-group.ct.js +0 -48
- package/dist/collection/components/checkbox-group/test/checkbox-group.ct.js.map +0 -1
- package/dist/collection/components/chip/test/chip.ct.js +0 -76
- package/dist/collection/components/chip/test/chip.ct.js.map +0 -1
- package/dist/collection/components/custom-field/tests/custom-field.ct.js +0 -68
- package/dist/collection/components/custom-field/tests/custom-field.ct.js.map +0 -1
- package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js +0 -215
- package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +0 -1
- package/dist/collection/components/date-input/tests/date-input.ct.js +0 -117
- package/dist/collection/components/date-input/tests/date-input.ct.js.map +0 -1
- package/dist/collection/components/date-picker/test/date-picker.ct.js +0 -221
- package/dist/collection/components/date-picker/test/date-picker.ct.js.map +0 -1
- package/dist/collection/components/datetime-picker/test/datetime-picker.ct.js +0 -55
- package/dist/collection/components/datetime-picker/test/datetime-picker.ct.js.map +0 -1
- package/dist/collection/components/drawer/test/drawer.ct.js +0 -67
- package/dist/collection/components/drawer/test/drawer.ct.js.map +0 -1
- package/dist/collection/components/dropdown/test/dropdown.ct.js +0 -624
- package/dist/collection/components/dropdown/test/dropdown.ct.js.map +0 -1
- package/dist/collection/components/dropdown-button/dropdown-button.ct.js +0 -51
- package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +0 -1
- package/dist/collection/components/event-list/test/event-list.ct.js +0 -88
- package/dist/collection/components/event-list/test/event-list.ct.js.map +0 -1
- package/dist/collection/components/expanding-search/test/expanding-search.ct.js +0 -56
- package/dist/collection/components/expanding-search/test/expanding-search.ct.js.map +0 -1
- package/dist/collection/components/field-label/tests/field-label.ct.js +0 -121
- package/dist/collection/components/field-label/tests/field-label.ct.js.map +0 -1
- package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js +0 -63
- package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js.map +0 -1
- package/dist/collection/components/flip-tile/test/flip-tile.ct.js +0 -89
- package/dist/collection/components/flip-tile/test/flip-tile.ct.js.map +0 -1
- package/dist/collection/components/group/test/group.ct.js +0 -115
- package/dist/collection/components/group/test/group.ct.js.map +0 -1
- package/dist/collection/components/icon-button/test/icon-button.ct.js +0 -30
- package/dist/collection/components/icon-button/test/icon-button.ct.js.map +0 -1
- package/dist/collection/components/input/tests/form-ready.ct.js +0 -73
- package/dist/collection/components/input/tests/form-ready.ct.js.map +0 -1
- package/dist/collection/components/input/tests/validation.ct.js +0 -84
- package/dist/collection/components/input/tests/validation.ct.js.map +0 -1
- package/dist/collection/components/input-group/tests/input-group.ct.js +0 -161
- package/dist/collection/components/input-group/tests/input-group.ct.js.map +0 -1
- package/dist/collection/components/menu/test/menu.ct.js +0 -256
- package/dist/collection/components/menu/test/menu.ct.js.map +0 -1
- package/dist/collection/components/menu-about/test/menu-about.ct.js +0 -65
- package/dist/collection/components/menu-about/test/menu-about.ct.js.map +0 -1
- package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js +0 -47
- package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js.map +0 -1
- package/dist/collection/components/menu-category/test/menu-category.ct.js +0 -274
- package/dist/collection/components/menu-category/test/menu-category.ct.js.map +0 -1
- package/dist/collection/components/menu-item/test/menu-item.ct.js +0 -67
- package/dist/collection/components/menu-item/test/menu-item.ct.js.map +0 -1
- package/dist/collection/components/menu-settings/test/menu-settings.ct.js +0 -32
- package/dist/collection/components/menu-settings/test/menu-settings.ct.js.map +0 -1
- package/dist/collection/components/message-bar/test/message-bar.ct.js +0 -28
- package/dist/collection/components/message-bar/test/message-bar.ct.js.map +0 -1
- package/dist/collection/components/modal/test/modal.ct.js +0 -204
- package/dist/collection/components/modal/test/modal.ct.js.map +0 -1
- package/dist/collection/components/pagination/test/pagination.ct.js +0 -68
- package/dist/collection/components/pagination/test/pagination.ct.js.map +0 -1
- package/dist/collection/components/pane/test/panes.ct.js +0 -59
- package/dist/collection/components/pane/test/panes.ct.js.map +0 -1
- package/dist/collection/components/pane-layout/test/pane-layout.ct.js +0 -60
- package/dist/collection/components/pane-layout/test/pane-layout.ct.js.map +0 -1
- package/dist/collection/components/pill/test/pill.ct.js +0 -63
- package/dist/collection/components/pill/test/pill.ct.js.map +0 -1
- package/dist/collection/components/radio/test/radio.ct.js +0 -77
- package/dist/collection/components/radio/test/radio.ct.js.map +0 -1
- package/dist/collection/components/radio-group/test/radio-group.ct.js +0 -117
- package/dist/collection/components/radio-group/test/radio-group.ct.js.map +0 -1
- package/dist/collection/components/select/test/select-keyboard.ct.js +0 -380
- package/dist/collection/components/select/test/select-keyboard.ct.js.map +0 -1
- package/dist/collection/components/select/test/select.ct.js +0 -594
- package/dist/collection/components/select/test/select.ct.js.map +0 -1
- package/dist/collection/components/slider/test/slider.ct.js +0 -65
- package/dist/collection/components/slider/test/slider.ct.js.map +0 -1
- package/dist/collection/components/tabs/test/tabs.ct.js +0 -134
- package/dist/collection/components/tabs/test/tabs.ct.js.map +0 -1
- package/dist/collection/components/time-input/test/time-input.ct.js +0 -62
- package/dist/collection/components/time-input/test/time-input.ct.js.map +0 -1
- package/dist/collection/components/time-picker/test/time-picker.ct.js +0 -172
- package/dist/collection/components/time-picker/test/time-picker.ct.js.map +0 -1
- package/dist/collection/components/toggle/test/toggle.ct.js +0 -84
- package/dist/collection/components/toggle/test/toggle.ct.js.map +0 -1
- package/dist/collection/components/tooltip/test/tooltip.ct.js +0 -243
- package/dist/collection/components/tooltip/test/tooltip.ct.js.map +0 -1
- package/dist/collection/components/tree/test/tree.ct.js +0 -355
- package/dist/collection/components/tree/test/tree.ct.js.map +0 -1
- package/dist/collection/components/upload/test/upload.ct.js +0 -17
- package/dist/collection/components/upload/test/upload.ct.js.map +0 -1
- package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js +0 -74
- package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +0 -1
- package/dist/collection/tests/utils/test/matchMedia.mock.js +0 -22
- package/dist/types/components/application-header/test/application-header.ct.d.ts +0 -1
- package/dist/types/components/avatar/test/avatar.ct.d.ts +0 -1
- package/dist/types/components/blind/test/blind.ct.d.ts +0 -1
- package/dist/types/components/breadcrumb/test/breadcrumb.ct.d.ts +0 -1
- package/dist/types/components/button/test/button.ct.d.ts +0 -7
- package/dist/types/components/category-filter/test/category-filter.ct.d.ts +0 -1
- package/dist/types/components/checkbox/tests/checkbox.ct.d.ts +0 -1
- package/dist/types/components/checkbox-group/test/checkbox-group.ct.d.ts +0 -1
- package/dist/types/components/chip/test/chip.ct.d.ts +0 -1
- package/dist/types/components/custom-field/tests/custom-field.ct.d.ts +0 -1
- package/dist/types/components/date-dropdown/test/date-dropdown.ct.d.ts +0 -1
- package/dist/types/components/date-input/tests/date-input.ct.d.ts +0 -1
- package/dist/types/components/date-picker/test/date-picker.ct.d.ts +0 -1
- package/dist/types/components/datetime-picker/test/datetime-picker.ct.d.ts +0 -1
- package/dist/types/components/drawer/test/drawer.ct.d.ts +0 -1
- package/dist/types/components/dropdown/test/dropdown.ct.d.ts +0 -1
- package/dist/types/components/dropdown-button/dropdown-button.ct.d.ts +0 -1
- package/dist/types/components/event-list/test/event-list.ct.d.ts +0 -1
- package/dist/types/components/expanding-search/test/expanding-search.ct.d.ts +0 -1
- package/dist/types/components/field-label/tests/field-label.ct.d.ts +0 -1
- package/dist/types/components/field-wrapper/tests/field-wrapper.ct.d.ts +0 -1
- package/dist/types/components/flip-tile/test/flip-tile.ct.d.ts +0 -1
- package/dist/types/components/group/test/group.ct.d.ts +0 -1
- package/dist/types/components/icon-button/test/icon-button.ct.d.ts +0 -1
- package/dist/types/components/input/tests/form-ready.ct.d.ts +0 -1
- package/dist/types/components/input/tests/validation.ct.d.ts +0 -1
- package/dist/types/components/input-group/tests/input-group.ct.d.ts +0 -1
- package/dist/types/components/menu/test/menu.ct.d.ts +0 -1
- package/dist/types/components/menu-about/test/menu-about.ct.d.ts +0 -1
- package/dist/types/components/menu-avatar-item/test/menu-avatar-item.ct.d.ts +0 -1
- package/dist/types/components/menu-category/test/menu-category.ct.d.ts +0 -1
- package/dist/types/components/menu-item/test/menu-item.ct.d.ts +0 -1
- package/dist/types/components/menu-settings/test/menu-settings.ct.d.ts +0 -1
- package/dist/types/components/message-bar/test/message-bar.ct.d.ts +0 -1
- package/dist/types/components/modal/test/modal.ct.d.ts +0 -8
- package/dist/types/components/pagination/test/pagination.ct.d.ts +0 -1
- package/dist/types/components/pane/test/panes.ct.d.ts +0 -1
- package/dist/types/components/pane-layout/test/pane-layout.ct.d.ts +0 -1
- package/dist/types/components/pill/test/pill.ct.d.ts +0 -1
- package/dist/types/components/radio/test/radio.ct.d.ts +0 -1
- package/dist/types/components/radio-group/test/radio-group.ct.d.ts +0 -1
- package/dist/types/components/select/test/select-keyboard.ct.d.ts +0 -1
- package/dist/types/components/select/test/select.ct.d.ts +0 -1
- package/dist/types/components/slider/test/slider.ct.d.ts +0 -1
- package/dist/types/components/tabs/test/tabs.ct.d.ts +0 -1
- package/dist/types/components/time-input/test/time-input.ct.d.ts +0 -1
- package/dist/types/components/time-picker/test/time-picker.ct.d.ts +0 -1
- package/dist/types/components/toggle/test/toggle.ct.d.ts +0 -1
- package/dist/types/components/tooltip/test/tooltip.ct.d.ts +0 -1
- package/dist/types/components/tree/test/tree.ct.d.ts +0 -1
- package/dist/types/components/upload/test/upload.ct.d.ts +0 -1
- package/dist/types/components/workflow-steps/test/workflow-steps.ct.d.ts +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export * from '../dist/types/components';
|
|
10
|
+
export * from '../dist/types/setup';
|
|
11
|
+
export * from './index';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
|
+
* if the path needs to be customized.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAssetPath: (path: string) => string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Used to manually set the base path where assets can be found.
|
|
9
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
10
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
11
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
12
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
13
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
14
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
15
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
16
|
+
*/
|
|
17
|
+
export declare const setAssetPath: (path: string) => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
21
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
22
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
23
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
24
|
+
* will result in the same behavior.
|
|
25
|
+
*/
|
|
26
|
+
export declare const setNonce: (nonce: string) => void
|
|
27
|
+
|
|
28
|
+
export interface SetPlatformOptions {
|
|
29
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
30
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
31
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { s as setPlatformHelpers } from './p-BuJ6BWIi.js';
|
|
2
|
+
export { g as getAssetPath, r as render, a as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-BuJ6BWIi.js';
|
|
3
|
+
export { I as InputState, L as LogicalFilterOperator } from './p-BH3f5fa3.js';
|
|
4
|
+
export { F as FlipTileState } from './p-BQ6999e5.js';
|
|
5
|
+
export { r as renderDefaultItem } from './p-UQa1aROL.js';
|
|
6
|
+
export { U as UploadFileState } from './p-BGzrnl_l.js';
|
|
7
|
+
import { g as getCoreDelegate } from './p-PxA_udyJ.js';
|
|
8
|
+
export { c as closeModal, d as dismissModal, r as registerFrameworkDelegate, a as resolveDelegate, s as showMessage, b as showModal } from './p-PxA_udyJ.js';
|
|
9
|
+
import { A as Animation } from './p-Dp15M30K.js';
|
|
10
|
+
export { T as TypedEvent } from './p-BdCnOrqW.js';
|
|
11
|
+
export { c as convertToAbbreviationString, a as convertToRemString } from './p-JJddxCCh.js';
|
|
12
|
+
export { g as getCurrentSystemAppearance, t as themeSwitcher } from './p-Dp4RJcgZ.js';
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: MIT
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
function handlePlatformHelpers(config) {
|
|
23
|
+
const platformHelpers = {};
|
|
24
|
+
if (config.ael) {
|
|
25
|
+
platformHelpers.ael = config.ael;
|
|
26
|
+
}
|
|
27
|
+
if (config.rel) {
|
|
28
|
+
platformHelpers.rel = config.rel;
|
|
29
|
+
}
|
|
30
|
+
if (config.ce) {
|
|
31
|
+
platformHelpers.ce = config.ce;
|
|
32
|
+
}
|
|
33
|
+
setPlatformHelpers(platformHelpers);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/*
|
|
37
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
38
|
+
*
|
|
39
|
+
* SPDX-License-Identifier: MIT
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
class FilterState {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.tokens = [];
|
|
47
|
+
this.categories = [];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function getToastContainer() {
|
|
52
|
+
const containerList = Array.from(document.querySelectorAll('ix-toast-container'));
|
|
53
|
+
const [container] = containerList;
|
|
54
|
+
if (containerList.length > 1) {
|
|
55
|
+
console.warn('Multiple toast containers were found. Only the first one will be used.');
|
|
56
|
+
return container;
|
|
57
|
+
}
|
|
58
|
+
if (!container) {
|
|
59
|
+
const toastContainer = document.createElement('ix-toast-container');
|
|
60
|
+
document.body.appendChild(toastContainer);
|
|
61
|
+
return toastContainer;
|
|
62
|
+
}
|
|
63
|
+
return container;
|
|
64
|
+
}
|
|
65
|
+
function setToastPosition(position) {
|
|
66
|
+
const container = getToastContainer();
|
|
67
|
+
container.setAttribute('position', position);
|
|
68
|
+
}
|
|
69
|
+
function toast(config) {
|
|
70
|
+
const container = getToastContainer();
|
|
71
|
+
return container.showToast(config);
|
|
72
|
+
}
|
|
73
|
+
toast.info = (config) => {
|
|
74
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'info' }));
|
|
75
|
+
};
|
|
76
|
+
toast.error = (config) => {
|
|
77
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'error' }));
|
|
78
|
+
};
|
|
79
|
+
toast.success = (config) => {
|
|
80
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'success' }));
|
|
81
|
+
};
|
|
82
|
+
toast.warning = (config) => {
|
|
83
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'warning' }));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
88
|
+
*
|
|
89
|
+
* SPDX-License-Identifier: MIT
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/
|
|
94
|
+
function showModalLoading(message) {
|
|
95
|
+
const modal = document.createElement('ix-modal');
|
|
96
|
+
modal.closeOnEscape = false;
|
|
97
|
+
const loading = document.createElement('ix-modal-loading');
|
|
98
|
+
loading.innerText = message;
|
|
99
|
+
modal.appendChild(loading);
|
|
100
|
+
getCoreDelegate().attachView(modal);
|
|
101
|
+
modal.showModal();
|
|
102
|
+
return {
|
|
103
|
+
update: (text) => (loading.innerHTML = text),
|
|
104
|
+
finish: (text, timeout = 250) => {
|
|
105
|
+
if (text !== undefined) {
|
|
106
|
+
loading.innerText = text;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
timeout = 0;
|
|
110
|
+
}
|
|
111
|
+
setTimeout(() => {
|
|
112
|
+
modal.closeModal(null);
|
|
113
|
+
setTimeout(async () => await getCoreDelegate().removeView(modal), Animation.mediumTime);
|
|
114
|
+
}, timeout);
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { FilterState, getCoreDelegate, getToastContainer, handlePlatformHelpers, setToastPosition, showModalLoading, toast };
|
|
120
|
+
//# sourceMappingURL=index.js.map
|
|
121
|
+
|
|
122
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAGG,SAAU,qBAAqB,CAAC,MAAgB,EAAA;IACpD,MAAM,eAAe,GAAyC,EAAE;AAEhE,IAAA,IAAI,MAAM,CAAC,GAAG,EAAE;AACd,QAAA,eAAe,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG;;AAGlC,IAAA,IAAI,MAAM,CAAC,GAAG,EAAE;AACd,QAAA,eAAe,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG;;AAGlC,IAAA,IAAI,MAAM,CAAC,EAAE,EAAE;AACb,QAAA,eAAe,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE;;IAGhC,kBAAkB,CAAC,eAAe,CAAC;AACrC;;AC1BA;;;;;;;AAOG;MAGU,WAAW,CAAA;AAAxB,IAAA,WAAA,GAAA;QACS,IAAM,CAAA,MAAA,GAAa,EAAE;QACrB,IAAU,CAAA,UAAA,GAIX,EAAE;;AACT;;SCKe,iBAAiB,GAAA;AAC/B,IAAA,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAC9B,QAAQ,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAChD;AACD,IAAA,MAAM,CAAC,SAAS,CAAC,GAAG,aAAa;AACjC,IAAA,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;AAC5B,QAAA,OAAO,CAAC,IAAI,CACV,wEAAwE,CACzE;AACD,QAAA,OAAO,SAAS;;IAElB,IAAI,CAAC,SAAS,EAAE;QACd,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC;AACnE,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC;AAEzC,QAAA,OAAO,cAAc;;AAEvB,IAAA,OAAO,SAAS;AAClB;AAEM,SAAU,gBAAgB,CAAC,QAAuB,EAAA;AACtD,IAAA,MAAM,SAAS,GAAG,iBAAiB,EAAE;AACrC,IAAA,SAAS,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC;AAC9C;AAEA,SAAS,KAAK,CAAC,MAAmB,EAAA;AAChC,IAAA,MAAM,SAAS,GAAG,iBAAiB,EAAE;AACrC,IAAA,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;AACpC;AAEA,KAAK,CAAC,IAAI,GAAG,CAAC,MAAmB,KAAI;IACnC,OAAO,KAAK,iCACP,MAAM,CAAA,EAAA,EACT,IAAI,EAAE,MAAM,IACZ;AACJ,CAAC;AAED,KAAK,CAAC,KAAK,GAAG,CAAC,MAAmB,KAAI;IACpC,OAAO,KAAK,iCACP,MAAM,CAAA,EAAA,EACT,IAAI,EAAE,OAAO,IACb;AACJ,CAAC;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,MAAmB,KAAI;IACtC,OAAO,KAAK,iCACP,MAAM,CAAA,EAAA,EACT,IAAI,EAAE,SAAS,IACf;AACJ,CAAC;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,MAAmB,KAAI;IACtC,OAAO,KAAK,iCACP,MAAM,CAAA,EAAA,EACT,IAAI,EAAE,SAAS,IACf;AACJ,CAAC;;AC9ED;;;;;;;AAOG;AAKG,SAAU,gBAAgB,CAAC,OAAe,EAAA;IAC9C,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;AAChD,IAAA,KAAK,CAAC,aAAa,GAAG,KAAK;IAE3B,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC;AAC1D,IAAA,OAAO,CAAC,SAAS,GAAG,OAAO;AAC3B,IAAA,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC;AAE1B,IAAA,eAAe,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACnC,KAAK,CAAC,SAAS,EAAE;IAEjB,OAAO;AACL,QAAA,MAAM,EAAE,CAAC,IAAY,MAAM,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;AACpD,QAAA,MAAM,EAAE,CAAC,IAAa,EAAE,OAAkB,GAAA,GAAG,KAAI;AAC/C,YAAA,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,gBAAA,OAAO,CAAC,SAAS,GAAG,IAAI;;iBACnB;gBACL,OAAO,GAAG,CAAC;;YAEb,UAAU,CAAC,MAAK;AACd,gBAAA,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;AACtB,gBAAA,UAAU,CACR,YAAY,MAAM,eAAe,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACrD,SAAS,CAAC,UAAU,CACrB;aACF,EAAE,OAAO,CAAC;SACZ;KACF;AACH;;;;","names":[],"sources":["src/setup.ts","src/components/category-filter/filter-state.ts","src/components/toast/toast-utils.ts","src/components/utils/modal/loading.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { setPlatformHelpers } from '@stencil/core';\n\nexport function handlePlatformHelpers(config: IxConfig) {\n const platformHelpers: Pick<IxConfig, 'ael' | 'rel' | 'ce'> = {};\n\n if (config.ael) {\n platformHelpers.ael = config.ael;\n }\n\n if (config.rel) {\n platformHelpers.rel = config.rel;\n }\n\n if (config.ce) {\n platformHelpers.ce = config.ce;\n }\n\n setPlatformHelpers(platformHelpers);\n}\n\nexport type IxConfig = {\n ael?: (\n el: unknown,\n name: string,\n cb: (...args: unknown[]) => unknown,\n opts: unknown\n ) => void;\n rel?: (\n el: unknown,\n name: string,\n cb: (...args: unknown[]) => unknown,\n opts: unknown\n ) => void;\n ce?: (eventName: string, opts: unknown) => unknown;\n};\n\nexport default async function (config?: IxConfig) {\n handlePlatformHelpers(config || {});\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LogicalFilterOperator } from './logical-filter-operator';\nexport class FilterState {\n public tokens: string[] = [];\n public categories: {\n id: string;\n value: string;\n operator: LogicalFilterOperator;\n }[] = [];\n}\n","/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport type { ShowToastResult } from './toast-container.types';\nexport type ToastType = 'info' | 'success' | 'error' | 'warning';\nexport type ToastPosition = 'bottom-right' | 'top-right';\n\nexport interface ToastConfig {\n title?: string;\n message: string | HTMLElement;\n type?: ToastType;\n autoClose?: boolean;\n autoCloseDelay?: number;\n icon?: string;\n iconColor?: string;\n}\n\nexport function getToastContainer() {\n const containerList = Array.from(\n document.querySelectorAll('ix-toast-container')\n );\n const [container] = containerList;\n if (containerList.length > 1) {\n console.warn(\n 'Multiple toast containers were found. Only the first one will be used.'\n );\n return container;\n }\n if (!container) {\n const toastContainer = document.createElement('ix-toast-container');\n document.body.appendChild(toastContainer);\n\n return toastContainer;\n }\n return container;\n}\n\nexport function setToastPosition(position: ToastPosition) {\n const container = getToastContainer();\n container.setAttribute('position', position);\n}\n\nfunction toast(config: ToastConfig): Promise<ShowToastResult> {\n const container = getToastContainer();\n return container.showToast(config);\n}\n\ntoast.info = (config: ToastConfig) => {\n return toast({\n ...config,\n type: 'info',\n });\n};\n\ntoast.error = (config: ToastConfig) => {\n return toast({\n ...config,\n type: 'error',\n });\n};\n\ntoast.success = (config: ToastConfig) => {\n return toast({\n ...config,\n type: 'success',\n });\n};\n\ntoast.warning = (config: ToastConfig) => {\n return toast({\n ...config,\n type: 'warning',\n });\n};\n\nexport { toast };\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport Animation from '../animation';\nimport { getCoreDelegate } from '../delegate';\n\nexport function showModalLoading(message: string) {\n const modal = document.createElement('ix-modal');\n modal.closeOnEscape = false;\n\n const loading = document.createElement('ix-modal-loading');\n loading.innerText = message;\n modal.appendChild(loading);\n\n getCoreDelegate().attachView(modal);\n modal.showModal();\n\n return {\n update: (text: string) => (loading.innerHTML = text),\n finish: (text?: string, timeout: number = 250) => {\n if (text !== undefined) {\n loading.innerText = text;\n } else {\n timeout = 0;\n }\n setTimeout(() => {\n modal.closeModal(null);\n setTimeout(\n async () => await getCoreDelegate().removeView(modal),\n Animation.mediumTime\n );\n }, timeout);\n },\n };\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxActionCard extends Components.IxActionCard, HTMLElement {}
|
|
4
|
+
export const IxActionCard: {
|
|
5
|
+
prototype: IxActionCard;
|
|
6
|
+
new (): IxActionCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-BuJ6BWIi.js';
|
|
2
|
+
import { d as defineCustomElement$4 } from './p-tH4n038Z.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-B3duqvjW.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-DyMgW0fR.js';
|
|
5
|
+
|
|
6
|
+
const actionCardCss = ":host{display:block;position:relative;min-width:13.375rem;width:13.375rem;height:7.5rem;min-height:7.5rem;cursor:pointer;margin:0.25rem 0}: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 ::-webkit-scrollbar{width:0.5rem;height:0.5rem}: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 ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host ix-card{width:100%;height:100%}";
|
|
7
|
+
|
|
8
|
+
const IxActionCard$1 = /*@__PURE__*/ proxyCustomElement(class IxActionCard extends H {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
/**
|
|
14
|
+
* Card variant
|
|
15
|
+
*/
|
|
16
|
+
this.variant = 'outline';
|
|
17
|
+
/**
|
|
18
|
+
* Card icon
|
|
19
|
+
*/
|
|
20
|
+
this.icon = undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Card selection
|
|
23
|
+
*/
|
|
24
|
+
this.selected = false;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(Host, { key: '8baf09c7b0f2aef34a37dd639fb1d2629d143692' }, h("ix-card", { key: 'f21a1d74d716482bef98cb909da8192a78b8937a', selected: this.selected, variant: this.variant, class: 'pointer' }, h("ix-card-content", { key: '0edcd9783ea5ad0d8471d6aa4c4aa398dc329cf4' }, this.icon ? (h("ix-icon", { class: 'icon', name: this.icon, size: "32" })) : null, h("div", { key: 'be3798858f6fa19d8897d7cefb900fb1e14a4db2' }, this.heading ? (h("ix-typography", { format: "h4" }, this.heading)) : null, this.subheading ? (h("ix-typography", { format: "h5" }, this.subheading)) : null, h("slot", { key: '5014e3efdb43a20519cca4b5c5bfd21d7009983b' }))))));
|
|
28
|
+
}
|
|
29
|
+
static get style() { return actionCardCss; }
|
|
30
|
+
}, [1, "ix-action-card", {
|
|
31
|
+
"variant": [1],
|
|
32
|
+
"icon": [1],
|
|
33
|
+
"heading": [1],
|
|
34
|
+
"subheading": [1],
|
|
35
|
+
"selected": [4]
|
|
36
|
+
}]);
|
|
37
|
+
function defineCustomElement$1() {
|
|
38
|
+
if (typeof customElements === "undefined") {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const components = ["ix-action-card", "ix-card", "ix-card-content", "ix-typography"];
|
|
42
|
+
components.forEach(tagName => { switch (tagName) {
|
|
43
|
+
case "ix-action-card":
|
|
44
|
+
if (!customElements.get(tagName)) {
|
|
45
|
+
customElements.define(tagName, IxActionCard$1);
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
case "ix-card":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
defineCustomElement$4();
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
case "ix-card-content":
|
|
54
|
+
if (!customElements.get(tagName)) {
|
|
55
|
+
defineCustomElement$3();
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
case "ix-typography":
|
|
59
|
+
if (!customElements.get(tagName)) {
|
|
60
|
+
defineCustomElement$2();
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
} });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const IxActionCard = IxActionCard$1;
|
|
67
|
+
const defineCustomElement = defineCustomElement$1;
|
|
68
|
+
|
|
69
|
+
export { IxActionCard, defineCustomElement };
|
|
70
|
+
//# sourceMappingURL=ix-action-card.js.map
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=ix-action-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ix-action-card.js","mappings":";;;;;AAAA,MAAM,aAAa,GAAG,y6BAAy6B;;MCiBl7BA,cAAY,iBAAAC,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;AALzB,IAAA,WAAA,GAAA;;;;AAME;;AAEG;AACK,QAAA,IAAO,CAAA,OAAA,GAAsB,SAAS;AAE9C;;AAEG;AACK,QAAA,IAAI,CAAA,IAAA,GAAuB,SAAS;AAY5C;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AA4BzB;IA1BC,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,SAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,SAAS,EAAA,EAEhB,CAAA,CAAA,iBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACG,IAAI,CAAC,IAAI,IACR,CAAS,CAAA,SAAA,EAAA,EAAA,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAC,IAAI,EAAA,CAAW,IAC3D,IAAI,EACR,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACG,IAAI,CAAC,OAAO,IACX,qBAAe,MAAM,EAAC,IAAI,EAAE,EAAA,IAAI,CAAC,OAAO,CAAiB,IACvD,IAAI,EACP,IAAI,CAAC,UAAU,IACd,qBAAe,MAAM,EAAC,IAAI,EAAE,EAAA,IAAI,CAAC,UAAU,CAAiB,IAC1D,IAAI,EACR,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,CACU,CACV,CACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["IxActionCard","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/action-card/action-card.scss?tag=ix-action-card&encapsulation=shadow","src/components/action-card/action-card.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: block;\n position: relative;\n min-width: 13.375rem;\n width: 13.375rem;\n height: 7.5rem;\n min-height: 7.5rem;\n cursor: pointer;\n\n margin: 0.25rem 0;\n\n ix-card {\n width: 100%;\n height: 100%;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Prop } from '@stencil/core';\nimport type { ActionCardVariant } from './action-card.types';\n\n@Component({\n tag: 'ix-action-card',\n styleUrl: 'action-card.scss',\n shadow: true,\n})\nexport class IxActionCard {\n /**\n * Card variant\n */\n @Prop() variant: ActionCardVariant = 'outline';\n\n /**\n * Card icon\n */\n @Prop() icon: string | undefined = undefined;\n\n /**\n * Card heading\n */\n @Prop() heading?: string;\n\n /**\n * Card subheading\n */\n @Prop() subheading?: string;\n\n /**\n * Card selection\n */\n @Prop() selected = false;\n\n render() {\n return (\n <Host>\n <ix-card\n selected={this.selected}\n variant={this.variant}\n class={'pointer'}\n >\n <ix-card-content>\n {this.icon ? (\n <ix-icon class={'icon'} name={this.icon} size=\"32\"></ix-icon>\n ) : null}\n <div>\n {this.heading ? (\n <ix-typography format=\"h4\">{this.heading}</ix-typography>\n ) : null}\n {this.subheading ? (\n <ix-typography format=\"h5\">{this.subheading}</ix-typography>\n ) : null}\n <slot></slot>\n </div>\n </ix-card-content>\n </ix-card>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxApplicationHeader extends Components.IxApplicationHeader, HTMLElement {}
|
|
4
|
+
export const IxApplicationHeader: {
|
|
5
|
+
prototype: IxApplicationHeader;
|
|
6
|
+
new (): IxApplicationHeader;
|
|
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 { A as ApplicationHeader, d as defineCustomElement$1 } from './p-DfbCO042.js';
|
|
2
|
+
|
|
3
|
+
const IxApplicationHeader = ApplicationHeader;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { IxApplicationHeader, defineCustomElement };
|
|
7
|
+
//# sourceMappingURL=ix-application-header.js.map
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=ix-application-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ix-application-header.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxApplicationSidebar extends Components.IxApplicationSidebar, HTMLElement {}
|
|
4
|
+
export const IxApplicationSidebar: {
|
|
5
|
+
prototype: IxApplicationSidebar;
|
|
6
|
+
new (): IxApplicationSidebar;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-BuJ6BWIi.js';
|
|
2
|
+
import { a as anime } from './p-Ou74PMQs.js';
|
|
3
|
+
import { A as Animation } from './p-Dp15M30K.js';
|
|
4
|
+
|
|
5
|
+
const applicationSidebarCss = ":host{display:block;position:relative;width:22rem;height:100%;padding:0}: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 ::-webkit-scrollbar{width:0.5rem;height:0.5rem}: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 ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host(.visible){border-right:2px solid var(--theme-color-soft-bdr);padding:1.5rem 0.5rem 0}";
|
|
6
|
+
|
|
7
|
+
const ApplicationSidebar = /*@__PURE__*/ proxyCustomElement(class ApplicationSidebar extends H {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.visible = true;
|
|
13
|
+
}
|
|
14
|
+
listenToggleEvent() {
|
|
15
|
+
const visibility = !this.visible;
|
|
16
|
+
const animation = {
|
|
17
|
+
targets: this.hostElement,
|
|
18
|
+
width: visibility ? ['0', '22rem'] : ['22rem', '0'],
|
|
19
|
+
opacity: visibility ? [0, 1] : [1, 0],
|
|
20
|
+
easing: 'easeInSine',
|
|
21
|
+
duration: Animation.defaultTime,
|
|
22
|
+
};
|
|
23
|
+
const changeVisibility = () => {
|
|
24
|
+
this.visible = visibility;
|
|
25
|
+
};
|
|
26
|
+
if (visibility) {
|
|
27
|
+
animation.begin = changeVisibility.bind(this);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
animation.complete = changeVisibility.bind(this);
|
|
31
|
+
}
|
|
32
|
+
anime(animation);
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (h(Host, { key: 'c8e82060904c6cdf605fc8330d4c355445bfc578', slot: "application-sidebar", class: {
|
|
36
|
+
visible: this.visible,
|
|
37
|
+
} }, this.visible ? h("slot", null) : null));
|
|
38
|
+
}
|
|
39
|
+
get hostElement() { return this; }
|
|
40
|
+
static get style() { return applicationSidebarCss; }
|
|
41
|
+
}, [1, "ix-application-sidebar", {
|
|
42
|
+
"visible": [32]
|
|
43
|
+
}, [[8, "application-sidebar-toggle", "listenToggleEvent"]]]);
|
|
44
|
+
function defineCustomElement$1() {
|
|
45
|
+
if (typeof customElements === "undefined") {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const components = ["ix-application-sidebar"];
|
|
49
|
+
components.forEach(tagName => { switch (tagName) {
|
|
50
|
+
case "ix-application-sidebar":
|
|
51
|
+
if (!customElements.get(tagName)) {
|
|
52
|
+
customElements.define(tagName, ApplicationSidebar);
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
} });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const IxApplicationSidebar = ApplicationSidebar;
|
|
59
|
+
const defineCustomElement = defineCustomElement$1;
|
|
60
|
+
|
|
61
|
+
export { IxApplicationSidebar, defineCustomElement };
|
|
62
|
+
//# sourceMappingURL=ix-application-sidebar.js.map
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=ix-application-sidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ix-application-sidebar.js","mappings":";;;;AAAA,MAAM,qBAAqB,GAAG,65BAA65B;;MCmB96B,kBAAkB,iBAAAA,kBAAA,CAAA,MAAA,kBAAA,SAAAC,CAAA,CAAA;AAL/B,IAAA,WAAA,GAAA;;;;AAQW,QAAA,IAAO,CAAA,OAAA,GAAG,IAAI;AAwCxB;IAnCC,iBAAiB,GAAA;AACf,QAAA,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,OAAO;AAChC,QAAA,MAAM,SAAS,GAAsB;YACnC,OAAO,EAAE,IAAI,CAAC,WAAW;AACzB,YAAA,KAAK,EAAE,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC;AACnD,YAAA,OAAO,EAAE,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AACrC,YAAA,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,SAAS,CAAC,WAAW;SAChC;QAED,MAAM,gBAAgB,GAAG,MAAK;AAC5B,YAAA,IAAI,CAAC,OAAO,GAAG,UAAU;AAC3B,SAAC;QAED,IAAI,UAAU,EAAE;YACd,SAAS,CAAC,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;;aACxC;YACL,SAAS,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;;QAGlD,KAAK,CAAC,SAAS,CAAC;;IAGlB,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,IAAI,EAAC,qBAAqB,EAC1B,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI,CAAC,OAAO;AACtB,aAAA,EAAA,EAEA,IAAI,CAAC,OAAO,GAAG,CAAa,CAAA,MAAA,EAAA,IAAA,CAAA,GAAG,IAAI,CAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/application-sidebar/application-sidebar.scss?tag=ix-application-sidebar&encapsulation=shadow","src/components/application-sidebar/application-sidebar.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n position: relative;\n\n width: 22rem;\n height: 100%;\n\n padding: 0;\n}\n\n:host(.visible) {\n border-right: 2px solid var(--theme-color-soft-bdr);\n padding: 1.5rem 0.5rem 0;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Element, h, Host, Listen, State } from '@stencil/core';\nimport anime from 'animejs';\nimport Animation from '../utils/animation';\n\n/** @internal */\n@Component({\n tag: 'ix-application-sidebar',\n styleUrl: 'application-sidebar.scss',\n shadow: true,\n})\nexport class ApplicationSidebar {\n @Element() hostElement!: HTMLIxApplicationSidebarElement;\n\n @State() visible = true;\n\n @Listen('application-sidebar-toggle', {\n target: 'window',\n })\n listenToggleEvent() {\n const visibility = !this.visible;\n const animation: anime.AnimeParams = {\n targets: this.hostElement,\n width: visibility ? ['0', '22rem'] : ['22rem', '0'],\n opacity: visibility ? [0, 1] : [1, 0],\n easing: 'easeInSine',\n duration: Animation.defaultTime,\n };\n\n const changeVisibility = () => {\n this.visible = visibility;\n };\n\n if (visibility) {\n animation.begin = changeVisibility.bind(this);\n } else {\n animation.complete = changeVisibility.bind(this);\n }\n\n anime(animation);\n }\n\n render() {\n return (\n <Host\n slot=\"application-sidebar\"\n class={{\n visible: this.visible,\n }}\n >\n {this.visible ? <slot></slot> : null}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxApplicationSwitchModal extends Components.IxApplicationSwitchModal, HTMLElement {}
|
|
4
|
+
export const IxApplicationSwitchModal: {
|
|
5
|
+
prototype: IxApplicationSwitchModal;
|
|
6
|
+
new (): IxApplicationSwitchModal;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-BuJ6BWIi.js';
|
|
2
|
+
import './p-Dp15M30K.js';
|
|
3
|
+
import { d as dismissModal } from './p-PxA_udyJ.js';
|
|
4
|
+
import { i as iconApps, a as iconOpenExternal } from './p-CGwHQeMX.js';
|
|
5
|
+
import { d as defineCustomElement$6 } from './p-BXjBChze.js';
|
|
6
|
+
import { d as defineCustomElement$5 } from './p-DbR-LZrk.js';
|
|
7
|
+
import { d as defineCustomElement$4 } from './p-DJ7U7oUq.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './p-BygLxZIM.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './p-DyMgW0fR.js';
|
|
10
|
+
|
|
11
|
+
const applicationSwitchModalCss = ":host{display:block}: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 ::-webkit-scrollbar{width:0.5rem;height:0.5rem}: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 ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .content{padding:2rem;padding-right:0}:host .content-apps{display:flex;position:relative;flex-wrap:wrap;justify-content:space-evenly;max-height:50vh;margin-right:0.25rem;gap:1.5rem}:host .loading{display:flex;flex-direction:row;align-items:center}:host .loading ix-spinner{margin-right:1rem}:host .AppEntry{all:unset;display:flex;flex-direction:row;align-items:center;gap:1rem;padding:0.5rem;flex:1 1 45%;cursor:pointer;border:0.0625rem solid transparent}:host .AppEntry.Selected{background-color:var(--theme-color-ghost--selected);border:var(--theme-dynamic-bdr-1)}:host .AppEntry:not(.disabled):not(:disabled).hover,:host .AppEntry:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}:host .AppEntry:not(.disabled):not(:disabled).active,:host .AppEntry:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}:host .AppEntry:focus-visible{border:1px solid var(--theme-color-focus-bdr)}:host .AppName{display:flex;flex-direction:column}:host .AppName ix-icon{margin-left:1rem}:host .AppIcon{width:3rem;height:3rem;border-radius:0.25rem}";
|
|
12
|
+
|
|
13
|
+
function ApplicationItem(props) {
|
|
14
|
+
function isExternal(target) {
|
|
15
|
+
if (target !== '_blank' &&
|
|
16
|
+
target !== '_parent' &&
|
|
17
|
+
target !== '_self' &&
|
|
18
|
+
target !== '_top') {
|
|
19
|
+
// Check if its one of the target keywords
|
|
20
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a?retiredLocale=de#target
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
if (target === '_blank') {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return (h("button", { class: {
|
|
29
|
+
AppEntry: true,
|
|
30
|
+
Selected: props.selected,
|
|
31
|
+
}, onClick: () => {
|
|
32
|
+
dismissModal(props.host);
|
|
33
|
+
window.open(props.url, props.target);
|
|
34
|
+
} }, h("div", null, h("img", { class: "AppIcon", src: props.iconSrc })), h("div", { class: "AppName" }, h("ix-typography", { format: "h4" }, props.name, isExternal(props.target) && (h("ix-icon", { size: "12", name: iconOpenExternal, color: "color-soft-text" }))), h("ix-typography", { format: "label-sm", textColor: "soft" }, props.description))));
|
|
35
|
+
}
|
|
36
|
+
const ApplicationSwitchModal = /*@__PURE__*/ proxyCustomElement(class ApplicationSwitchModal extends H {
|
|
37
|
+
constructor() {
|
|
38
|
+
super();
|
|
39
|
+
this.__registerHost();
|
|
40
|
+
this.__attachShadow();
|
|
41
|
+
}
|
|
42
|
+
componentWillLoad() {
|
|
43
|
+
if (!this.config) {
|
|
44
|
+
throw Error('ApplicationConfig not provided');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
return (h(Host, { key: 'a4279dbad5812faf0833dccc9b872b4618d3b721' }, h("ix-modal-header", { key: '2aeba11eb0d8e2f927a1a454d462aa1d2be8f797', icon: iconApps }, ((_a = this.config) === null || _a === void 0 ? void 0 : _a.i18nAppSwitch) || 'Switch to application'), h("ix-modal-content", { key: 'e9b3da826aad0519a8ce43879f6ac609370c3e0b', class: "content" }, h("div", { key: '89696259fb23ca82f9be6614afa44aa0d4e0955a', class: "content-apps" }, (!this.config || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.apps.length) === 0) && (h("div", { key: '411aaac0b82835301e909b751ee640054b1c7722', class: "loading" }, h("ix-spinner", { key: '3f1580e44ee6306acee76547fe375094a334e421', size: "medium", variant: "primary" }), h("span", { key: '434d97bd9e210b534a3461bf7c5578e13fd4fb3e' }, ((_c = this.config) === null || _c === void 0 ? void 0 : _c.i18nLoadingApps) ||
|
|
50
|
+
'Loading available applications...'))), (_d = this.config) === null || _d === void 0 ? void 0 :
|
|
51
|
+
_d.apps.map((appEntry) => {
|
|
52
|
+
var _a;
|
|
53
|
+
return (h(ApplicationItem, { host: this.hostElement, name: appEntry.name, description: appEntry.description, iconSrc: appEntry.iconSrc, target: appEntry.target, url: appEntry.url, selected: appEntry.id === ((_a = this.config) === null || _a === void 0 ? void 0 : _a.currentAppId) }));
|
|
54
|
+
})))));
|
|
55
|
+
}
|
|
56
|
+
get hostElement() { return this; }
|
|
57
|
+
static get style() { return applicationSwitchModalCss; }
|
|
58
|
+
}, [1, "ix-application-switch-modal", {
|
|
59
|
+
"config": [16]
|
|
60
|
+
}]);
|
|
61
|
+
function defineCustomElement$1() {
|
|
62
|
+
if (typeof customElements === "undefined") {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const components = ["ix-application-switch-modal", "ix-icon-button", "ix-modal-content", "ix-modal-header", "ix-spinner", "ix-typography"];
|
|
66
|
+
components.forEach(tagName => { switch (tagName) {
|
|
67
|
+
case "ix-application-switch-modal":
|
|
68
|
+
if (!customElements.get(tagName)) {
|
|
69
|
+
customElements.define(tagName, ApplicationSwitchModal);
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "ix-icon-button":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
defineCustomElement$6();
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "ix-modal-content":
|
|
78
|
+
if (!customElements.get(tagName)) {
|
|
79
|
+
defineCustomElement$5();
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
case "ix-modal-header":
|
|
83
|
+
if (!customElements.get(tagName)) {
|
|
84
|
+
defineCustomElement$4();
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
case "ix-spinner":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
defineCustomElement$3();
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "ix-typography":
|
|
93
|
+
if (!customElements.get(tagName)) {
|
|
94
|
+
defineCustomElement$2();
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
} });
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const IxApplicationSwitchModal = ApplicationSwitchModal;
|
|
101
|
+
const defineCustomElement = defineCustomElement$1;
|
|
102
|
+
|
|
103
|
+
export { IxApplicationSwitchModal, defineCustomElement };
|
|
104
|
+
//# sourceMappingURL=ix-application-switch-modal.js.map
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=ix-application-switch-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ix-application-switch-modal.js","mappings":"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","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/application-header/application-switch-modal/application-switch-modal.scss?tag=ix-application-switch-modal&encapsulation=shadow","src/components/application-header/application-switch-modal/application-switch-modal.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'mixins/shadow-dom/component';\n@import 'mixins/hover';\n\n:host {\n @include ix-component;\n display: block;\n\n .content {\n padding: 2rem;\n padding-right: 0;\n }\n\n .content-apps {\n display: flex;\n position: relative;\n flex-wrap: wrap;\n justify-content: space-evenly;\n max-height: 50vh;\n margin-right: 0.25rem;\n gap: 1.5rem;\n }\n\n .loading {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n ix-spinner {\n margin-right: 1rem;\n }\n }\n}\n\n:host {\n .AppEntry {\n all: unset;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 1rem;\n padding: 0.5rem;\n flex: 1 1 calc(45%);\n cursor: pointer;\n border: 0.0625rem solid transparent;\n }\n\n .AppEntry.Selected {\n background-color: var(--theme-color-ghost--selected);\n border: var(--theme-dynamic-bdr-1);\n }\n\n .AppEntry {\n @include ghost-hover-pressed;\n }\n\n .AppEntry:focus-visible {\n border: 1px solid var(--theme-color-focus-bdr);\n }\n\n .AppName {\n display: flex;\n flex-direction: column;\n }\n\n .AppName ix-icon {\n margin-left: 1rem;\n }\n\n .AppIcon {\n width: 3rem;\n height: 3rem;\n border-radius: 0.25rem;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Element, h, Host, Prop } from '@stencil/core';\nimport {\n AppSwitchConfiguration,\n AppSwitchConfigurationTarget,\n} from '../../utils/application-layout/context';\nimport { dismissModal } from '../../utils/modal';\nimport { iconApps, iconOpenExternal } from '@siemens/ix-icons/icons';\n\nfunction ApplicationItem(props: {\n host: HTMLIxApplicationSwitchModalElement;\n name: string;\n description: string;\n iconSrc: string;\n url: string;\n target: AppSwitchConfigurationTarget;\n selected: boolean;\n}) {\n function isExternal(target: AppSwitchConfigurationTarget) {\n if (\n target !== '_blank' &&\n target !== '_parent' &&\n target !== '_self' &&\n target !== '_top'\n ) {\n // Check if its one of the target keywords\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a?retiredLocale=de#target\n return true;\n }\n\n if (target === '_blank') {\n return true;\n }\n\n return false;\n }\n\n return (\n <button\n class={{\n AppEntry: true,\n Selected: props.selected,\n }}\n onClick={() => {\n dismissModal(props.host);\n window.open(props.url, props.target);\n }}\n >\n <div>\n <img class=\"AppIcon\" src={props.iconSrc}></img>\n </div>\n <div class=\"AppName\">\n <ix-typography format=\"h4\">\n {props.name}\n {isExternal(props.target) && (\n <ix-icon\n size=\"12\"\n name={iconOpenExternal}\n color=\"color-soft-text\"\n ></ix-icon>\n )}\n </ix-typography>\n <ix-typography format=\"label-sm\" textColor=\"soft\">\n {props.description}\n </ix-typography>\n </div>\n </button>\n );\n}\n\n/** @internal */\n@Component({\n tag: 'ix-application-switch-modal',\n styleUrl: 'application-switch-modal.scss',\n shadow: true,\n})\nexport class ApplicationSwitchModal {\n @Element() hostElement!: HTMLIxApplicationSwitchModalElement;\n\n /** @internal */\n @Prop() config?: AppSwitchConfiguration;\n\n componentWillLoad() {\n if (!this.config) {\n throw Error('ApplicationConfig not provided');\n }\n }\n\n render() {\n return (\n <Host>\n <ix-modal-header icon={iconApps}>\n {this.config?.i18nAppSwitch || 'Switch to application'}\n </ix-modal-header>\n <ix-modal-content class=\"content\">\n <div class=\"content-apps\">\n {(!this.config || this.config?.apps.length === 0) && (\n <div class=\"loading\">\n <ix-spinner size=\"medium\" variant=\"primary\"></ix-spinner>\n <span>\n {this.config?.i18nLoadingApps ||\n 'Loading available applications...'}\n </span>\n </div>\n )}\n {this.config?.apps.map((appEntry) => (\n <ApplicationItem\n host={this.hostElement}\n name={appEntry.name}\n description={appEntry.description}\n iconSrc={appEntry.iconSrc}\n target={appEntry.target}\n url={appEntry.url}\n selected={appEntry.id === this.config?.currentAppId}\n ></ApplicationItem>\n ))}\n </div>\n </ix-modal-content>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IxApplication extends Components.IxApplication, HTMLElement {}
|
|
4
|
+
export const IxApplication: {
|
|
5
|
+
prototype: IxApplication;
|
|
6
|
+
new (): IxApplication;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|