@siemens/ix 1.0.0-beta.2
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/LICENSE +21 -0
- package/dist/cjs/_commonjsHelpers-1a0c346f.js +23 -0
- package/dist/cjs/animation-dfe01edc.js +19 -0
- package/dist/cjs/anime.es-8822f296.js +1311 -0
- package/dist/cjs/base-button-eb1d47db.js +33 -0
- package/dist/cjs/default-tree-item-4597cd84.js +22 -0
- package/dist/cjs/flip-tile-state-c95639e5.js +18 -0
- package/dist/cjs/index-1e4a348f.js +1849 -0
- package/dist/cjs/index.cjs.js +96 -0
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +217 -0
- package/dist/cjs/ix-application-header.cjs.entry.js +19 -0
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +44 -0
- package/dist/cjs/ix-blind.cjs.entry.js +89 -0
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +155 -0
- package/dist/cjs/ix-button.cjs.entry.js +50 -0
- package/dist/cjs/ix-category-filter.cjs.entry.js +399 -0
- package/dist/cjs/ix-chip.cjs.entry.js +47 -0
- package/dist/cjs/ix-counter-pill.cjs.entry.js +40 -0
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +8881 -0
- package/dist/cjs/ix-date-time-card.cjs.entry.js +36 -0
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +44 -0
- package/dist/cjs/ix-drawer.cjs.entry.js +122 -0
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +203 -0
- package/dist/cjs/ix-event-list_2.cjs.entry.js +151 -0
- package/dist/cjs/ix-expanding-search.cjs.entry.js +91 -0
- package/dist/cjs/ix-filter-chip.cjs.entry.js +30 -0
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +79 -0
- package/dist/cjs/ix-group_3.cjs.entry.js +174 -0
- package/dist/cjs/ix-icon-button.cjs.entry.js +40 -0
- package/dist/cjs/ix-icon.cjs.entry.js +33 -0
- package/dist/cjs/ix-input-group.cjs.entry.js +40 -0
- package/dist/cjs/ix-kpi.cjs.entry.js +50 -0
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +190 -0
- package/dist/cjs/ix-menu_9.cjs.entry.js +872 -0
- package/dist/cjs/ix-message-bar.cjs.entry.js +58 -0
- package/dist/cjs/ix-modal-example.cjs.entry.js +24 -0
- package/dist/cjs/ix-modal_2.cjs.entry.js +14 -0
- package/dist/cjs/ix-pill.cjs.entry.js +40 -0
- package/dist/cjs/ix-select_2.cjs.entry.js +309 -0
- package/dist/cjs/ix-spinner.cjs.entry.js +30 -0
- package/dist/cjs/ix-split-button_2.cjs.entry.js +114 -0
- package/dist/cjs/ix-tab-item.cjs.entry.js +67 -0
- package/dist/cjs/ix-tabs.cjs.entry.js +187 -0
- package/dist/cjs/ix-tile.cjs.entry.js +27 -0
- package/dist/cjs/ix-toast_2.cjs.entry.js +155 -0
- package/dist/cjs/ix-toggle.cjs.entry.js +82 -0
- package/dist/cjs/ix-tree_2.cjs.entry.js +690 -0
- package/dist/cjs/ix-upload.cjs.entry.js +139 -0
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +107 -0
- package/dist/cjs/ix-workflow-step.cjs.entry.js +114 -0
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +83 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/logical-filter-operator-467e2faf.js +35 -0
- package/dist/cjs/modal-5be2b1a3.js +221 -0
- package/dist/cjs/modal-utils-5d7bb217.js +42 -0
- package/dist/cjs/mutation-observer-29bedada.js +13 -0
- package/dist/cjs/my-component.cjs.entry.js +19 -0
- package/dist/cjs/popper-d7a0f999.js +1801 -0
- package/dist/cjs/rwd.util-482d41d4.js +42 -0
- package/dist/cjs/siemens-ix.cjs.js +19 -0
- package/dist/cjs/typed-event-8f5a32a2.js +46 -0
- package/dist/cjs/upload-file-state-923b2c65.js +17 -0
- package/dist/collection/collection-manifest.json +258 -0
- package/dist/collection/components/animated-tab/animated-tab.css +14 -0
- package/dist/collection/components/animated-tab/animated-tab.js +59 -0
- package/dist/collection/components/animated-tabs/animated-tabs.css +158 -0
- package/dist/collection/components/animated-tabs/animated-tabs.js +303 -0
- package/dist/collection/components/application-header/application-header.css +29 -0
- package/dist/collection/components/application-header/application-header.js +45 -0
- package/dist/collection/components/basic-navigation/basic-navigation.css +29 -0
- package/dist/collection/components/basic-navigation/basic-navigation.js +91 -0
- package/dist/collection/components/blind/blind.css +146 -0
- package/dist/collection/components/blind/blind.js +152 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +228 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +252 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +11 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +59 -0
- package/dist/collection/components/button/base-button.js +29 -0
- package/dist/collection/components/button/button.css +12 -0
- package/dist/collection/components/button/button.js +192 -0
- package/dist/collection/components/category-filter/category-filter.css +189 -0
- package/dist/collection/components/category-filter/category-filter.js +704 -0
- package/dist/collection/components/category-filter/filter-state.js +10 -0
- package/dist/collection/components/category-filter/input-state.js +17 -0
- package/dist/collection/components/category-filter/logical-filter-operator.js +13 -0
- package/dist/collection/components/chip/chip.css +475 -0
- package/dist/collection/components/chip/chip.js +197 -0
- package/dist/collection/components/counter-pill/counter-pill.css +313 -0
- package/dist/collection/components/counter-pill/counter-pill.js +137 -0
- package/dist/collection/components/date-picker/date-picker.css +222 -0
- package/dist/collection/components/date-picker/date-picker.js +365 -0
- package/dist/collection/components/date-time-card/date-time-card.css +49 -0
- package/dist/collection/components/date-time-card/date-time-card.js +89 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +35 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +161 -0
- package/dist/collection/components/drawer/drawer.css +78 -0
- package/dist/collection/components/drawer/drawer.js +300 -0
- package/dist/collection/components/dropdown/dropdown.css +536 -0
- package/dist/collection/components/dropdown/dropdown.js +392 -0
- package/dist/collection/components/dropdown-item/dropdown-item.css +61 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js +187 -0
- package/dist/collection/components/event-list/event-list.css +58 -0
- package/dist/collection/components/event-list/event-list.js +197 -0
- package/dist/collection/components/event-list-item/event-list-item.css +109 -0
- package/dist/collection/components/event-list-item/event-list-item.js +162 -0
- package/dist/collection/components/expanding-search/expanding-search.css +124 -0
- package/dist/collection/components/expanding-search/expanding-search.js +177 -0
- package/dist/collection/components/filter-chip/filter-chip.css +82 -0
- package/dist/collection/components/filter-chip/filter-chip.js +74 -0
- package/dist/collection/components/flip-tile/flip-tile-state.js +16 -0
- package/dist/collection/components/flip-tile/flip-tile.css +143 -0
- package/dist/collection/components/flip-tile/flip-tile.js +125 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.css +12 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +23 -0
- package/dist/collection/components/group/group.css +170 -0
- package/dist/collection/components/group/group.js +329 -0
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.css +11 -0
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js +60 -0
- package/dist/collection/components/group-item/group-item.css +116 -0
- package/dist/collection/components/group-item/group-item.js +200 -0
- package/dist/collection/components/icon/icon.css +45 -0
- package/dist/collection/components/icon/icon.js +91 -0
- package/dist/collection/components/icon-button/icon-button.js +242 -0
- package/dist/collection/components/input-group/input-group.css +27 -0
- package/dist/collection/components/input-group/input-group.js +48 -0
- package/dist/collection/components/kpi/kpi.css +131 -0
- package/dist/collection/components/kpi/kpi.js +151 -0
- package/dist/collection/components/map-navigation/map-navigation.css +161 -0
- package/dist/collection/components/map-navigation/map-navigation.js +355 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +237 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +105 -0
- package/dist/collection/components/menu/menu.css +128 -0
- package/dist/collection/components/menu/menu.js +969 -0
- package/dist/collection/components/menu-about/menu-about.css +207 -0
- package/dist/collection/components/menu-about/menu-about.js +188 -0
- package/dist/collection/components/menu-about-item/menu-about-item.css +12 -0
- package/dist/collection/components/menu-about-item/menu-about-item.js +42 -0
- package/dist/collection/components/menu-about-news/menu-about-news.css +99 -0
- package/dist/collection/components/menu-about-news/menu-about-news.js +204 -0
- package/dist/collection/components/menu-avatar/menu-avatar.css +91 -0
- package/dist/collection/components/menu-avatar/menu-avatar.js +136 -0
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +12 -0
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +79 -0
- package/dist/collection/components/menu-item/menu-item.css +140 -0
- package/dist/collection/components/menu-item/menu-item.js +166 -0
- package/dist/collection/components/menu-settings/menu-settings.css +204 -0
- package/dist/collection/components/menu-settings/menu-settings.js +151 -0
- package/dist/collection/components/menu-settings-item/menu-settings-item.css +13 -0
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +42 -0
- package/dist/collection/components/message-bar/message-bar.css +68 -0
- package/dist/collection/components/message-bar/message-bar.js +125 -0
- package/dist/collection/components/modal/modal-utils.js +36 -0
- package/dist/collection/components/modal/modal.css +96 -0
- package/dist/collection/components/modal/modal.js +540 -0
- package/dist/collection/components/modal-container/modal-container.css +14 -0
- package/dist/collection/components/modal-container/modal-container.js +107 -0
- package/dist/collection/components/my-component/example-modal.js +31 -0
- package/dist/collection/components/my-component/my-component.css +34 -0
- package/dist/collection/components/my-component/my-component.js +22 -0
- package/dist/collection/components/pill/pill.css +269 -0
- package/dist/collection/components/pill/pill.js +155 -0
- package/dist/collection/components/select/select.css +176 -0
- package/dist/collection/components/select/select.js +509 -0
- package/dist/collection/components/select-item/select-item.css +14 -0
- package/dist/collection/components/select-item/select-item.js +169 -0
- package/dist/collection/components/spinner/spinner.css +42 -0
- package/dist/collection/components/spinner/spinner.js +137 -0
- package/dist/collection/components/split-button/split-button.css +11 -0
- package/dist/collection/components/split-button/split-button.js +310 -0
- package/dist/collection/components/split-button-item/split-button-item.css +12 -0
- package/dist/collection/components/split-button-item/split-button-item.js +79 -0
- package/dist/collection/components/tab-item/tab-item.css +195 -0
- package/dist/collection/components/tab-item/tab-item.js +219 -0
- package/dist/collection/components/tabs/tabs.css +84 -0
- package/dist/collection/components/tabs/tabs.js +305 -0
- package/dist/collection/components/tile/tile.css +92 -0
- package/dist/collection/components/tile/tile.js +60 -0
- package/dist/collection/components/time-picker/time-picker.css +94 -0
- package/dist/collection/components/time-picker/time-picker.js +274 -0
- package/dist/collection/components/toast/toast-container.js +170 -0
- package/dist/collection/components/toast/toast-utils.js +40 -0
- package/dist/collection/components/toast/toast.css +110 -0
- package/dist/collection/components/toast/toast.js +232 -0
- package/dist/collection/components/toggle/toggle.css +226 -0
- package/dist/collection/components/toggle/toggle.js +263 -0
- package/dist/collection/components/tree/tree-model.js +9 -0
- package/dist/collection/components/tree/tree.css +12 -0
- package/dist/collection/components/tree/tree.js +296 -0
- package/dist/collection/components/tree-item/default-tree-item.js +18 -0
- package/dist/collection/components/tree-item/tree-item.css +80 -0
- package/dist/collection/components/tree-item/tree-item.js +124 -0
- package/dist/collection/components/upload/upload-file-state.js +15 -0
- package/dist/collection/components/upload/upload.css +120 -0
- package/dist/collection/components/upload/upload.js +413 -0
- package/dist/collection/components/utils/animation.js +15 -0
- package/dist/collection/components/utils/button-variants.js +9 -0
- package/dist/collection/components/utils/mutation-observer.js +9 -0
- package/dist/collection/components/utils/notification-color.js +9 -0
- package/dist/collection/components/utils/popover.util.js +33 -0
- package/dist/collection/components/utils/rwd.util.js +37 -0
- package/dist/collection/components/utils/toggle-theme.js +24 -0
- package/dist/collection/components/utils/typed-event.js +42 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +235 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +167 -0
- package/dist/collection/components/workflow-step/workflow-step.css +131 -0
- package/dist/collection/components/workflow-step/workflow-step.js +249 -0
- package/dist/collection/components/workflow-steps/workflow-steps.css +29 -0
- package/dist/collection/components/workflow-steps/workflow-steps.js +182 -0
- package/dist/collection/env.js +9 -0
- package/dist/collection/exports.js +13 -0
- package/dist/collection/index.js +16 -0
- package/dist/collection/utils/test/index.js +9 -0
- package/dist/collection/utils/test/page.js +29 -0
- package/dist/components/_commonjsHelpers.js +19 -0
- package/dist/components/animation.js +17 -0
- package/dist/components/anime.es.js +1309 -0
- package/dist/components/application-header.js +32 -0
- package/dist/components/base-button.js +31 -0
- package/dist/components/button.js +68 -0
- package/dist/components/date-picker.js +268 -0
- package/dist/components/date-time-card.js +49 -0
- package/dist/components/default-tree-item.js +20 -0
- package/dist/components/dropdown-item.js +73 -0
- package/dist/components/dropdown.js +181 -0
- package/dist/components/filter-chip.js +48 -0
- package/dist/components/flip-tile-state.js +18 -0
- package/dist/components/group-item.js +63 -0
- package/dist/components/icon-button.js +68 -0
- package/dist/components/icon.js +47 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +62 -0
- package/dist/components/ix-animated-tab.d.ts +11 -0
- package/dist/components/ix-animated-tab.js +35 -0
- package/dist/components/ix-animated-tabs.d.ts +11 -0
- package/dist/components/ix-animated-tabs.js +229 -0
- package/dist/components/ix-application-header.d.ts +11 -0
- package/dist/components/ix-application-header.js +6 -0
- package/dist/components/ix-basic-navigation.d.ts +11 -0
- package/dist/components/ix-basic-navigation.js +66 -0
- package/dist/components/ix-blind.d.ts +11 -0
- package/dist/components/ix-blind.js +105 -0
- package/dist/components/ix-breadcrumb-item.d.ts +11 -0
- package/dist/components/ix-breadcrumb-item.js +35 -0
- package/dist/components/ix-breadcrumb.d.ts +11 -0
- package/dist/components/ix-breadcrumb.js +180 -0
- package/dist/components/ix-button.d.ts +11 -0
- package/dist/components/ix-button.js +6 -0
- package/dist/components/ix-category-filter.d.ts +11 -0
- package/dist/components/ix-category-filter.js +447 -0
- package/dist/components/ix-chip.d.ts +11 -0
- package/dist/components/ix-chip.js +74 -0
- package/dist/components/ix-counter-pill.d.ts +11 -0
- package/dist/components/ix-counter-pill.js +59 -0
- package/dist/components/ix-date-picker.d.ts +11 -0
- package/dist/components/ix-date-picker.js +6 -0
- package/dist/components/ix-date-time-card.d.ts +11 -0
- package/dist/components/ix-date-time-card.js +6 -0
- package/dist/components/ix-datetime-picker.d.ts +11 -0
- package/dist/components/ix-datetime-picker.js +105 -0
- package/dist/components/ix-drawer.d.ts +11 -0
- package/dist/components/ix-drawer.js +155 -0
- package/dist/components/ix-dropdown-item.d.ts +11 -0
- package/dist/components/ix-dropdown-item.js +6 -0
- package/dist/components/ix-dropdown.d.ts +11 -0
- package/dist/components/ix-dropdown.js +6 -0
- package/dist/components/ix-event-list-item.d.ts +11 -0
- package/dist/components/ix-event-list-item.js +59 -0
- package/dist/components/ix-event-list.d.ts +11 -0
- package/dist/components/ix-event-list.js +135 -0
- package/dist/components/ix-expanding-search.d.ts +11 -0
- package/dist/components/ix-expanding-search.js +123 -0
- package/dist/components/ix-filter-chip.d.ts +11 -0
- package/dist/components/ix-filter-chip.js +6 -0
- package/dist/components/ix-flip-tile-content.d.ts +11 -0
- package/dist/components/ix-flip-tile-content.js +33 -0
- package/dist/components/ix-flip-tile.d.ts +11 -0
- package/dist/components/ix-flip-tile.js +96 -0
- package/dist/components/ix-group-dropdown-item.d.ts +11 -0
- package/dist/components/ix-group-dropdown-item.js +47 -0
- package/dist/components/ix-group-item.d.ts +11 -0
- package/dist/components/ix-group-item.js +6 -0
- package/dist/components/ix-group.d.ts +11 -0
- package/dist/components/ix-group.js +174 -0
- package/dist/components/ix-icon-button.d.ts +11 -0
- package/dist/components/ix-icon-button.js +6 -0
- package/dist/components/ix-icon.d.ts +11 -0
- package/dist/components/ix-icon.js +6 -0
- package/dist/components/ix-input-group.d.ts +11 -0
- package/dist/components/ix-input-group.js +53 -0
- package/dist/components/ix-kpi.d.ts +11 -0
- package/dist/components/ix-kpi.js +75 -0
- package/dist/components/ix-map-navigation-overlay.d.ts +11 -0
- package/dist/components/ix-map-navigation-overlay.js +6 -0
- package/dist/components/ix-map-navigation.d.ts +11 -0
- package/dist/components/ix-map-navigation.js +227 -0
- package/dist/components/ix-menu-about-item.d.ts +11 -0
- package/dist/components/ix-menu-about-item.js +34 -0
- package/dist/components/ix-menu-about-news.d.ts +11 -0
- package/dist/components/ix-menu-about-news.js +78 -0
- package/dist/components/ix-menu-about.d.ts +11 -0
- package/dist/components/ix-menu-about.js +6 -0
- package/dist/components/ix-menu-avatar-item.d.ts +11 -0
- package/dist/components/ix-menu-avatar-item.js +6 -0
- package/dist/components/ix-menu-avatar.d.ts +11 -0
- package/dist/components/ix-menu-avatar.js +83 -0
- package/dist/components/ix-menu-item.d.ts +11 -0
- package/dist/components/ix-menu-item.js +6 -0
- package/dist/components/ix-menu-settings-item.d.ts +11 -0
- package/dist/components/ix-menu-settings-item.js +34 -0
- package/dist/components/ix-menu-settings.d.ts +11 -0
- package/dist/components/ix-menu-settings.js +107 -0
- package/dist/components/ix-menu.d.ts +11 -0
- package/dist/components/ix-menu.js +601 -0
- package/dist/components/ix-message-bar.d.ts +11 -0
- package/dist/components/ix-message-bar.js +88 -0
- package/dist/components/ix-modal-container.d.ts +11 -0
- package/dist/components/ix-modal-container.js +6 -0
- package/dist/components/ix-modal-example.d.ts +11 -0
- package/dist/components/ix-modal-example.js +67 -0
- package/dist/components/ix-modal.d.ts +11 -0
- package/dist/components/ix-modal.js +6 -0
- package/dist/components/ix-pill.d.ts +11 -0
- package/dist/components/ix-pill.js +66 -0
- package/dist/components/ix-select-item.d.ts +11 -0
- package/dist/components/ix-select-item.js +6 -0
- package/dist/components/ix-select.d.ts +11 -0
- package/dist/components/ix-select.js +339 -0
- package/dist/components/ix-spinner.d.ts +11 -0
- package/dist/components/ix-spinner.js +6 -0
- package/dist/components/ix-split-button-item.d.ts +11 -0
- package/dist/components/ix-split-button-item.js +49 -0
- package/dist/components/ix-split-button.d.ts +11 -0
- package/dist/components/ix-split-button.js +135 -0
- package/dist/components/ix-tab-item.d.ts +11 -0
- package/dist/components/ix-tab-item.js +6 -0
- package/dist/components/ix-tabs.d.ts +11 -0
- package/dist/components/ix-tabs.js +6 -0
- package/dist/components/ix-tile.d.ts +11 -0
- package/dist/components/ix-tile.js +42 -0
- package/dist/components/ix-time-picker.d.ts +11 -0
- package/dist/components/ix-time-picker.js +6 -0
- package/dist/components/ix-toast-container.d.ts +11 -0
- package/dist/components/ix-toast-container.js +110 -0
- package/dist/components/ix-toast.d.ts +11 -0
- package/dist/components/ix-toast.js +6 -0
- package/dist/components/ix-toggle.d.ts +11 -0
- package/dist/components/ix-toggle.js +104 -0
- package/dist/components/ix-tree-item.d.ts +11 -0
- package/dist/components/ix-tree-item.js +6 -0
- package/dist/components/ix-tree.d.ts +11 -0
- package/dist/components/ix-tree.js +694 -0
- package/dist/components/ix-upload.d.ts +11 -0
- package/dist/components/ix-upload.js +178 -0
- package/dist/components/ix-validation-tooltip.d.ts +11 -0
- package/dist/components/ix-validation-tooltip.js +124 -0
- package/dist/components/ix-workflow-step.d.ts +11 -0
- package/dist/components/ix-workflow-step.js +142 -0
- package/dist/components/ix-workflow-steps.d.ts +11 -0
- package/dist/components/ix-workflow-steps.js +101 -0
- package/dist/components/logical-filter-operator.js +33 -0
- package/dist/components/luxon.js +8584 -0
- package/dist/components/map-navigation-overlay.js +53 -0
- package/dist/components/menu-about.js +120 -0
- package/dist/components/menu-avatar-item.js +46 -0
- package/dist/components/menu-item.js +65 -0
- package/dist/components/modal-container.js +99 -0
- package/dist/components/modal-utils.js +38 -0
- package/dist/components/modal.js +189 -0
- package/dist/components/mutation-observer.js +11 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +32 -0
- package/dist/components/popover.util.js +36 -0
- package/dist/components/popper.js +1799 -0
- package/dist/components/rwd.util.js +39 -0
- package/dist/components/select-item.js +71 -0
- package/dist/components/spinner.js +43 -0
- package/dist/components/tab-item.js +86 -0
- package/dist/components/tabs.js +207 -0
- package/dist/components/time-picker.js +140 -0
- package/dist/components/toast.js +119 -0
- package/dist/components/tree-item.js +52 -0
- package/dist/components/typed-event.js +44 -0
- package/dist/components/upload-file-state.js +17 -0
- package/dist/esm/_commonjsHelpers-4bc7200a.js +19 -0
- package/dist/esm/animation-b667a4c4.js +17 -0
- package/dist/esm/anime.es-185e9087.js +1309 -0
- package/dist/esm/base-button-7bfb747f.js +31 -0
- package/dist/esm/default-tree-item-638c435a.js +20 -0
- package/dist/esm/flip-tile-state-28a1f8ce.js +18 -0
- package/dist/esm/index-55cfd20d.js +1819 -0
- package/dist/esm/index.js +64 -0
- package/dist/esm/ix-animated-tab_2.entry.js +212 -0
- package/dist/esm/ix-application-header.entry.js +15 -0
- package/dist/esm/ix-basic-navigation.entry.js +40 -0
- package/dist/esm/ix-blind.entry.js +85 -0
- package/dist/esm/ix-breadcrumb_2.entry.js +150 -0
- package/dist/esm/ix-button.entry.js +46 -0
- package/dist/esm/ix-category-filter.entry.js +395 -0
- package/dist/esm/ix-chip.entry.js +43 -0
- package/dist/esm/ix-counter-pill.entry.js +36 -0
- package/dist/esm/ix-date-picker_2.entry.js +8876 -0
- package/dist/esm/ix-date-time-card.entry.js +32 -0
- package/dist/esm/ix-datetime-picker.entry.js +40 -0
- package/dist/esm/ix-drawer.entry.js +118 -0
- package/dist/esm/ix-dropdown_2.entry.js +198 -0
- package/dist/esm/ix-event-list_2.entry.js +146 -0
- package/dist/esm/ix-expanding-search.entry.js +87 -0
- package/dist/esm/ix-filter-chip.entry.js +26 -0
- package/dist/esm/ix-flip-tile_2.entry.js +74 -0
- package/dist/esm/ix-group_3.entry.js +168 -0
- package/dist/esm/ix-icon-button.entry.js +36 -0
- package/dist/esm/ix-icon.entry.js +29 -0
- package/dist/esm/ix-input-group.entry.js +36 -0
- package/dist/esm/ix-kpi.entry.js +46 -0
- package/dist/esm/ix-map-navigation_2.entry.js +185 -0
- package/dist/esm/ix-menu_9.entry.js +860 -0
- package/dist/esm/ix-message-bar.entry.js +54 -0
- package/dist/esm/ix-modal-example.entry.js +20 -0
- package/dist/esm/ix-modal_2.entry.js +5 -0
- package/dist/esm/ix-pill.entry.js +36 -0
- package/dist/esm/ix-select_2.entry.js +304 -0
- package/dist/esm/ix-spinner.entry.js +26 -0
- package/dist/esm/ix-split-button_2.entry.js +109 -0
- package/dist/esm/ix-tab-item.entry.js +63 -0
- package/dist/esm/ix-tabs.entry.js +183 -0
- package/dist/esm/ix-tile.entry.js +23 -0
- package/dist/esm/ix-toast_2.entry.js +150 -0
- package/dist/esm/ix-toggle.entry.js +78 -0
- package/dist/esm/ix-tree_2.entry.js +685 -0
- package/dist/esm/ix-upload.entry.js +135 -0
- package/dist/esm/ix-validation-tooltip.entry.js +103 -0
- package/dist/esm/ix-workflow-step.entry.js +110 -0
- package/dist/esm/ix-workflow-steps.entry.js +79 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/logical-filter-operator-1bf83315.js +33 -0
- package/dist/esm/modal-8ed87a6c.js +218 -0
- package/dist/esm/modal-utils-ec39c1bc.js +38 -0
- package/dist/esm/mutation-observer-379959bb.js +11 -0
- package/dist/esm/my-component.entry.js +15 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/popper-42db9fbd.js +1799 -0
- package/dist/esm/rwd.util-33a69d24.js +39 -0
- package/dist/esm/siemens-ix.js +17 -0
- package/dist/esm/typed-event-dd6c83dd.js +44 -0
- package/dist/esm/upload-file-state-631bb8a2.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/siemens-ix/index.esm.js +1 -0
- package/dist/siemens-ix/p-03d95feb.entry.js +1 -0
- package/dist/siemens-ix/p-0a12b3df.js +1 -0
- package/dist/siemens-ix/p-0bf04780.js +1 -0
- package/dist/siemens-ix/p-0e315bd7.entry.js +1 -0
- package/dist/siemens-ix/p-1c82637e.js +1 -0
- package/dist/siemens-ix/p-1d30454e.js +1 -0
- package/dist/siemens-ix/p-235606b2.entry.js +1 -0
- package/dist/siemens-ix/p-240d22b6.entry.js +1 -0
- package/dist/siemens-ix/p-2cda7278.entry.js +1 -0
- package/dist/siemens-ix/p-2ce29bcd.entry.js +1 -0
- package/dist/siemens-ix/p-301ddeb7.js +1 -0
- package/dist/siemens-ix/p-3613be96.entry.js +1 -0
- package/dist/siemens-ix/p-37417714.js +1 -0
- package/dist/siemens-ix/p-3f809fb3.entry.js +1 -0
- package/dist/siemens-ix/p-40842bea.entry.js +1 -0
- package/dist/siemens-ix/p-47ea9884.js +1 -0
- package/dist/siemens-ix/p-4ffec6ae.entry.js +1 -0
- package/dist/siemens-ix/p-504927a0.entry.js +1 -0
- package/dist/siemens-ix/p-5990f0cb.entry.js +1 -0
- package/dist/siemens-ix/p-59c81e2a.entry.js +1 -0
- package/dist/siemens-ix/p-5a1dcc74.js +1 -0
- package/dist/siemens-ix/p-5f9f25ef.entry.js +1 -0
- package/dist/siemens-ix/p-61b032bf.entry.js +1 -0
- package/dist/siemens-ix/p-662d756f.entry.js +1 -0
- package/dist/siemens-ix/p-6726f740.entry.js +1 -0
- package/dist/siemens-ix/p-67c2bca6.entry.js +1 -0
- package/dist/siemens-ix/p-6f625f0e.js +1 -0
- package/dist/siemens-ix/p-78df1e46.entry.js +1 -0
- package/dist/siemens-ix/p-7a4c744e.entry.js +1 -0
- package/dist/siemens-ix/p-7d667916.entry.js +1 -0
- package/dist/siemens-ix/p-7ec8a00e.entry.js +1 -0
- package/dist/siemens-ix/p-7f5a2e3c.entry.js +1 -0
- package/dist/siemens-ix/p-810b5232.js +1 -0
- package/dist/siemens-ix/p-81e46337.entry.js +1 -0
- package/dist/siemens-ix/p-8239c3a1.entry.js +1 -0
- package/dist/siemens-ix/p-9d9b8ad1.entry.js +1 -0
- package/dist/siemens-ix/p-ab715295.entry.js +1 -0
- package/dist/siemens-ix/p-b4003026.entry.js +1 -0
- package/dist/siemens-ix/p-bbcee9fb.entry.js +1 -0
- package/dist/siemens-ix/p-bd15d8ca.entry.js +1 -0
- package/dist/siemens-ix/p-bdd294d2.js +1 -0
- package/dist/siemens-ix/p-be1ec062.entry.js +1 -0
- package/dist/siemens-ix/p-c3738ffc.entry.js +1 -0
- package/dist/siemens-ix/p-ca71538c.entry.js +1 -0
- package/dist/siemens-ix/p-caf856f2.entry.js +1 -0
- package/dist/siemens-ix/p-cde8f20e.entry.js +1 -0
- package/dist/siemens-ix/p-d23706a7.js +1 -0
- package/dist/siemens-ix/p-d31bf6db.entry.js +1 -0
- package/dist/siemens-ix/p-da2cae32.js +1 -0
- package/dist/siemens-ix/p-df43662b.entry.js +1 -0
- package/dist/siemens-ix/p-e1f54836.entry.js +1 -0
- package/dist/siemens-ix/p-e4d1a964.entry.js +1 -0
- package/dist/siemens-ix/p-f2636faf.entry.js +1 -0
- package/dist/siemens-ix/p-f6da7e07.entry.js +1 -0
- package/dist/siemens-ix/p-f86fcdf4.js +1 -0
- package/dist/siemens-ix/p-fbe40498.js +1 -0
- package/dist/siemens-ix/p-fe020fa3.entry.js +1 -0
- package/dist/siemens-ix/p-fe5db4d1.entry.js +1 -0
- package/dist/siemens-ix/siemens-ix.css +19243 -0
- package/dist/siemens-ix/siemens-ix.esm.js +1 -0
- package/dist/types/components/animated-tab/animated-tab.d.ts +11 -0
- package/dist/types/components/animated-tabs/animated-tabs.d.ts +44 -0
- package/dist/types/components/application-header/application-header.d.ts +7 -0
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +16 -0
- package/dist/types/components/blind/blind.d.ts +26 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +48 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +11 -0
- package/dist/types/components/button/base-button.d.ts +13 -0
- package/dist/types/components/button/button.d.ts +34 -0
- package/dist/types/components/category-filter/category-filter.d.ts +129 -0
- package/dist/types/components/category-filter/filter-state.d.ts +9 -0
- package/dist/types/components/category-filter/input-state.d.ts +6 -0
- package/dist/types/components/category-filter/logical-filter-operator.d.ts +4 -0
- package/dist/types/components/chip/chip.d.ts +38 -0
- package/dist/types/components/counter-pill/counter-pill.d.ts +24 -0
- package/dist/types/components/date-picker/date-picker.d.ts +56 -0
- package/dist/types/components/date-time-card/date-time-card.d.ts +14 -0
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +31 -0
- package/dist/types/components/drawer/drawer.d.ts +49 -0
- package/dist/types/components/dropdown/dropdown.d.ts +70 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +33 -0
- package/dist/types/components/event-list/event-list.d.ts +31 -0
- package/dist/types/components/event-list-item/event-list-item.d.ts +34 -0
- package/dist/types/components/expanding-search/expanding-search.d.ts +31 -0
- package/dist/types/components/filter-chip/filter-chip.d.ts +14 -0
- package/dist/types/components/flip-tile/flip-tile-state.d.ts +7 -0
- package/dist/types/components/flip-tile/flip-tile.d.ts +22 -0
- package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +3 -0
- package/dist/types/components/group/group.d.ts +59 -0
- package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +11 -0
- package/dist/types/components/group-item/group-item.d.ts +39 -0
- package/dist/types/components/icon/icon.d.ts +15 -0
- package/dist/types/components/icon-button/icon-button.d.ts +51 -0
- package/dist/types/components/input-group/input-group.d.ts +5 -0
- package/dist/types/components/kpi/kpi.d.ts +25 -0
- package/dist/types/components/map-navigation/map-navigation.d.ts +59 -0
- package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +20 -0
- package/dist/types/components/menu/menu.d.ts +143 -0
- package/dist/types/components/menu-about/menu-about.d.ts +34 -0
- package/dist/types/components/menu-about-item/menu-about-item.d.ts +7 -0
- package/dist/types/components/menu-about-news/menu-about-news.d.ts +36 -0
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +26 -0
- package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +17 -0
- package/dist/types/components/menu-item/menu-item.d.ts +31 -0
- package/dist/types/components/menu-settings/menu-settings.d.ts +27 -0
- package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +7 -0
- package/dist/types/components/message-bar/message-bar.d.ts +23 -0
- package/dist/types/components/modal/modal-utils.d.ts +26 -0
- package/dist/types/components/modal/modal.d.ts +99 -0
- package/dist/types/components/modal-container/modal-container.d.ts +15 -0
- package/dist/types/components/my-component/example-modal.d.ts +6 -0
- package/dist/types/components/my-component/my-component.d.ts +3 -0
- package/dist/types/components/pill/pill.d.ts +28 -0
- package/dist/types/components/select/select.d.ts +83 -0
- package/dist/types/components/select-item/select-item.d.ts +31 -0
- package/dist/types/components/spinner/spinner.d.ts +11 -0
- package/dist/types/components/split-button/split-button.d.ts +57 -0
- package/dist/types/components/split-button-item/split-button-item.d.ts +17 -0
- package/dist/types/components/tab-item/tab-item.d.ts +36 -0
- package/dist/types/components/tabs/tabs.d.ts +46 -0
- package/dist/types/components/tile/tile.d.ts +7 -0
- package/dist/types/components/time-picker/time-picker.d.ts +46 -0
- package/dist/types/components/toast/toast-container.d.ts +25 -0
- package/dist/types/components/toast/toast-utils.d.ts +33 -0
- package/dist/types/components/toast/toast.d.ts +39 -0
- package/dist/types/components/toggle/toggle.d.ts +45 -0
- package/dist/types/components/tree/tree-model.d.ts +17 -0
- package/dist/types/components/tree/tree.d.ts +44 -0
- package/dist/types/components/tree-item/default-tree-item.d.ts +6 -0
- package/dist/types/components/tree-item/tree-item.d.ts +25 -0
- package/dist/types/components/upload/upload-file-state.d.ts +6 -0
- package/dist/types/components/upload/upload.d.ts +70 -0
- package/dist/types/components/utils/animation.d.ts +7 -0
- package/dist/types/components/utils/button-variants.d.ts +1 -0
- package/dist/types/components/utils/mutation-observer.d.ts +1 -0
- package/dist/types/components/utils/notification-color.d.ts +4 -0
- package/dist/types/components/utils/popover.util.d.ts +9 -0
- package/dist/types/components/utils/rwd.util.d.ts +2 -0
- package/dist/types/components/utils/toggle-theme.d.ts +1 -0
- package/dist/types/components/utils/typed-event.d.ts +15 -0
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +31 -0
- package/dist/types/components/workflow-step/workflow-step.d.ts +35 -0
- package/dist/types/components/workflow-steps/workflow-steps.d.ts +29 -0
- package/dist/types/components.d.ts +3453 -0
- package/dist/types/env.d.ts +1 -0
- package/dist/types/exports.d.ts +5 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/test/index.d.ts +1 -0
- package/dist/types/utils/test/page.d.ts +3 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +86 -0
- package/scss/_common-variables.scss +60 -0
- package/scss/_fonts.scss +70 -0
- package/scss/_z-index.scss +18 -0
- package/scss/components/_button-group.scss +24 -0
- package/scss/components/_buttons.scss +150 -0
- package/scss/components/_checkboxes.scss +177 -0
- package/scss/components/_dropdown.scss +175 -0
- package/scss/components/_forms.scss +146 -0
- package/scss/components/_input-group.scss +34 -0
- package/scss/components/_links.scss +31 -0
- package/scss/components/_modal.scss +41 -0
- package/scss/components/_radiobuttons.scss +169 -0
- package/scss/components/_shadows.scss +35 -0
- package/scss/components/_table.scss +27 -0
- package/scss/ix.scss +95 -0
- package/scss/mixins/_animations.scss +30 -0
- package/scss/mixins/_fonts.scss +166 -0
- package/scss/mixins/_hover.scss +59 -0
- package/scss/mixins/_shadows.scss +12 -0
- package/scss/mixins/_text-truncation.scss +14 -0
- package/scss/theme/_define-theme-colors.scss +22 -0
- package/scss/theme/_define-theme-variable.scss +12 -0
- package/scss/theme/_define-theme.scss +36 -0
- package/scss/theme/_static-colors.scss +19 -0
- package/scss/theme/classic-dark/_sizes.scss +66 -0
- package/scss/theme/classic-dark/_variables.scss +827 -0
- package/scss/theme/classic-dark/index.scss +15 -0
- package/scss/theme/classic-light/_sizes.scss +66 -0
- package/scss/theme/classic-light/_variables.scss +830 -0
- package/scss/theme/classic-light/index.scss +15 -0
- package/src/components/animated-tab/readme.md +24 -0
- package/src/components/animated-tabs/readme.md +32 -0
- package/src/components/application-header/readme.md +21 -0
- package/src/components/basic-navigation/readme.md +22 -0
- package/src/components/blind/readme.md +29 -0
- package/src/components/breadcrumb/readme.md +33 -0
- package/src/components/breadcrumb-item/readme.md +22 -0
- package/src/components/button/readme.md +27 -0
- package/src/components/category-filter/readme.md +40 -0
- package/src/components/chip/readme.md +36 -0
- package/src/components/counter-pill/readme.md +25 -0
- package/src/components/date-picker/readme.md +32 -0
- package/src/components/date-time-card/readme.md +22 -0
- package/src/components/datetime-picker/readme.md +32 -0
- package/src/components/drawer/readme.md +47 -0
- package/src/components/dropdown/readme.md +49 -0
- package/src/components/dropdown-item/readme.md +45 -0
- package/src/components/event-list/readme.md +24 -0
- package/src/components/event-list-item/readme.md +32 -0
- package/src/components/expanding-search/readme.md +32 -0
- package/src/components/filter-chip/readme.md +30 -0
- package/src/components/flip-tile/readme.md +22 -0
- package/src/components/flip-tile-content/readme.md +14 -0
- package/src/components/group/readme.md +36 -0
- package/src/components/group-dropdown-item/readme.md +22 -0
- package/src/components/group-item/readme.md +34 -0
- package/src/components/icon/readme.md +23 -0
- package/src/components/icon-button/readme.md +31 -0
- package/src/components/input-group/readme.md +14 -0
- package/src/components/kpi/readme.md +27 -0
- package/src/components/map-navigation/readme.md +54 -0
- package/src/components/map-navigation-overlay/readme.md +30 -0
- package/src/components/menu/readme.md +86 -0
- package/src/components/menu-about/readme.md +31 -0
- package/src/components/menu-about-item/readme.md +21 -0
- package/src/components/menu-about-news/readme.md +34 -0
- package/src/components/menu-avatar/readme.md +30 -0
- package/src/components/menu-avatar-item/readme.md +29 -0
- package/src/components/menu-item/readme.md +26 -0
- package/src/components/menu-settings/readme.md +30 -0
- package/src/components/menu-settings-item/readme.md +21 -0
- package/src/components/message-bar/readme.md +31 -0
- package/src/components/modal/readme.md +67 -0
- package/src/components/modal-container/readme.md +29 -0
- package/src/components/my-component/readme.md +16 -0
- package/src/components/pill/readme.md +26 -0
- package/src/components/select/readme.md +37 -0
- package/src/components/select-item/readme.md +44 -0
- package/src/components/spinner/readme.md +22 -0
- package/src/components/split-button/readme.md +36 -0
- package/src/components/split-button-item/readme.md +29 -0
- package/src/components/tab-item/readme.md +28 -0
- package/src/components/tabs/readme.md +25 -0
- package/src/components/tile/readme.md +21 -0
- package/src/components/time-picker/readme.md +34 -0
- package/src/components/toast/readme.md +36 -0
- package/src/components/toggle/readme.md +35 -0
- package/src/components/tree/readme.md +32 -0
- package/src/components/tree-item/readme.md +31 -0
- package/src/components/upload/readme.md +51 -0
- package/src/components/validation-tooltip/readme.md +31 -0
- package/src/components/workflow-step/readme.md +28 -0
- package/src/components/workflow-steps/readme.md +33 -0
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2022 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
|
+
import { Component, Element, Event, h, Host, Listen, Prop, State, Watch } from '@stencil/core';
|
|
10
|
+
import { convertToRemString } from '../utils/rwd.util';
|
|
11
|
+
import { InputState } from './input-state';
|
|
12
|
+
import { LogicalFilterOperator } from './logical-filter-operator';
|
|
13
|
+
export class CategoryFilter {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.ID_CUSTOM_FILTER_VALUE = 'CW_CUSTOM_FILTER_VALUE';
|
|
16
|
+
this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;
|
|
17
|
+
this.filterTokens = [];
|
|
18
|
+
/**
|
|
19
|
+
* In certain use cases some categories are not available for selection any more.
|
|
20
|
+
* To allow proper display of set filters with these categories this ID to label mapping can be populated.
|
|
21
|
+
* Configuration object hash used to supply labels to the filter chips in the input field.
|
|
22
|
+
* Each ID maps to a string representing the label to display.
|
|
23
|
+
*/
|
|
24
|
+
this.nonSelectableCategories = {};
|
|
25
|
+
/**
|
|
26
|
+
* The icon next to the actual text input
|
|
27
|
+
* Defaults to 'search'
|
|
28
|
+
*/
|
|
29
|
+
this.icon = 'search';
|
|
30
|
+
/**
|
|
31
|
+
* If set to true allows that a single category can be set more than once.
|
|
32
|
+
* An already set category will not appear in the category dropdown if set to false.
|
|
33
|
+
*
|
|
34
|
+
* Defaults to true
|
|
35
|
+
*/
|
|
36
|
+
this.repeatCategories = true;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated For debugging purposes only!
|
|
39
|
+
*/
|
|
40
|
+
this.tmpDisableScrollIntoView = true;
|
|
41
|
+
/**
|
|
42
|
+
* i18n
|
|
43
|
+
*/
|
|
44
|
+
this.labelCategories = 'Categories';
|
|
45
|
+
/**
|
|
46
|
+
* i18n
|
|
47
|
+
*/
|
|
48
|
+
this.i18nPlainText = 'Filter by text';
|
|
49
|
+
this.documentClickCallback = this.handleDocumentClick.bind(this);
|
|
50
|
+
}
|
|
51
|
+
watchFilterState(newValue) {
|
|
52
|
+
this.setFilterState(newValue);
|
|
53
|
+
}
|
|
54
|
+
watchShowCategorySelection(newValue) {
|
|
55
|
+
if (newValue) {
|
|
56
|
+
document.addEventListener('click', this.documentClickCallback);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
document.removeEventListener('click', this.documentClickCallback);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
setDropdownOffset() {
|
|
63
|
+
const height = this.calculateDropdownHeight();
|
|
64
|
+
this.maxHeightDropdown = convertToRemString(height);
|
|
65
|
+
}
|
|
66
|
+
componentDidLoad() {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
if (this.initialState !== undefined) {
|
|
69
|
+
this.setFilterState(this.initialState);
|
|
70
|
+
}
|
|
71
|
+
else if (this.filterState !== undefined) {
|
|
72
|
+
this.setFilterState(this.filterState);
|
|
73
|
+
}
|
|
74
|
+
(_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.addEventListener('keydown', this.handleFormElementKeyDown.bind(this));
|
|
75
|
+
(_b = this.formElement) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', (e) => e.preventDefault());
|
|
76
|
+
if (this.textInput == null) {
|
|
77
|
+
console.warn('Core UI category filter - unable to add event listeners to native input element');
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this.textInput.addEventListener('click', () => (this.showCategorySelection = true));
|
|
81
|
+
this.textInput.addEventListener('focusin', () => {
|
|
82
|
+
this.hasFocus = true;
|
|
83
|
+
});
|
|
84
|
+
this.textInput.addEventListener('focusout', () => (this.hasFocus = false));
|
|
85
|
+
this.textInput.addEventListener('input', () => {
|
|
86
|
+
this.inputValue = this.textInput.value;
|
|
87
|
+
const inputState = new InputState(this.inputValue, this.category);
|
|
88
|
+
this.inputChanged.emit(inputState);
|
|
89
|
+
this.showCategorySelection = true;
|
|
90
|
+
});
|
|
91
|
+
this.textInput.addEventListener('keydown', this.handleInputElementKeyDown.bind(this));
|
|
92
|
+
}
|
|
93
|
+
setFilterState(state) {
|
|
94
|
+
this.filterTokens = [];
|
|
95
|
+
for (const token of state.tokens) {
|
|
96
|
+
this.addToken(token, this.ID_CUSTOM_FILTER_VALUE, this.categoryLogicalOperator, false);
|
|
97
|
+
}
|
|
98
|
+
for (const category of state.categories) {
|
|
99
|
+
this.addToken(category.value, category.id, category.operator, false);
|
|
100
|
+
}
|
|
101
|
+
this.emitFilterEvent();
|
|
102
|
+
}
|
|
103
|
+
handleDocumentClick(ev) {
|
|
104
|
+
const target = ev.target;
|
|
105
|
+
if (!this.hostElement.contains(target)) {
|
|
106
|
+
this.closeDropdown();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
closeDropdown() {
|
|
110
|
+
this.showCategorySelection = false;
|
|
111
|
+
this.category = undefined;
|
|
112
|
+
}
|
|
113
|
+
handleFormElementKeyDown(e) {
|
|
114
|
+
switch (e.code) {
|
|
115
|
+
case 'Enter':
|
|
116
|
+
case 'NumpadEnter':
|
|
117
|
+
if (this.category ||
|
|
118
|
+
document.activeElement.classList.contains('plain-text-suggestion')) {
|
|
119
|
+
const token = document.activeElement.getAttribute('data-id');
|
|
120
|
+
this.addToken(token, this.category);
|
|
121
|
+
}
|
|
122
|
+
else if (document.activeElement.classList.contains('category-item-id')) {
|
|
123
|
+
this.selectCategory(document.activeElement.getAttribute('data-id'));
|
|
124
|
+
}
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
break;
|
|
127
|
+
case 'ArrowUp':
|
|
128
|
+
this.focusPreviousItem();
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
break;
|
|
131
|
+
case 'ArrowDown':
|
|
132
|
+
this.focusNextItem();
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
break;
|
|
135
|
+
case 'Escape':
|
|
136
|
+
this.closeDropdown();
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
focusPreviousItem() {
|
|
141
|
+
const sibling = document.activeElement.previousSibling;
|
|
142
|
+
if (sibling instanceof HTMLElement) {
|
|
143
|
+
sibling.focus();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
focusNextItem() {
|
|
147
|
+
const sibling = document.activeElement.nextSibling;
|
|
148
|
+
if (sibling instanceof HTMLElement) {
|
|
149
|
+
sibling.focus();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
handleInputElementKeyDown(e) {
|
|
153
|
+
var _a;
|
|
154
|
+
switch (e.code) {
|
|
155
|
+
case 'ArrowDown':
|
|
156
|
+
const selector = `.category-item-${this.category ? 'value' : 'id'}`;
|
|
157
|
+
let item = this.hostElement.querySelector(selector);
|
|
158
|
+
if (item instanceof HTMLElement) {
|
|
159
|
+
item.focus();
|
|
160
|
+
e.stopPropagation();
|
|
161
|
+
}
|
|
162
|
+
else if ((_a = this.suggestions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
163
|
+
item = this.hostElement.querySelector('.category-item');
|
|
164
|
+
if (item instanceof HTMLElement) {
|
|
165
|
+
item.focus();
|
|
166
|
+
e.stopPropagation();
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case 'Backspace':
|
|
171
|
+
if (this.textInput.value !== '') {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (this.category) {
|
|
175
|
+
this.category = undefined;
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const tokenCount = this.filterTokens.length;
|
|
179
|
+
if (tokenCount > 0) {
|
|
180
|
+
this.removeToken(tokenCount - 1);
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
case 'Enter':
|
|
184
|
+
case 'NumpadEnter':
|
|
185
|
+
this.addToken(this.inputValue, this.category);
|
|
186
|
+
e.preventDefault();
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
emitFilterEvent() {
|
|
191
|
+
const tokens = this.filterTokens
|
|
192
|
+
.filter((item) => item.id === this.ID_CUSTOM_FILTER_VALUE)
|
|
193
|
+
.map((item) => item.value);
|
|
194
|
+
const categories = this.filterTokens.filter((item) => item.id !== this.ID_CUSTOM_FILTER_VALUE);
|
|
195
|
+
const filterState = {
|
|
196
|
+
tokens,
|
|
197
|
+
categories,
|
|
198
|
+
};
|
|
199
|
+
this.filterChanged.emit(filterState);
|
|
200
|
+
}
|
|
201
|
+
addToken(token, category = this.ID_CUSTOM_FILTER_VALUE, operator = this.categoryLogicalOperator, emitEvent = true) {
|
|
202
|
+
if (token === undefined || token === null) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const newToken = token.trim();
|
|
206
|
+
if (newToken === '') {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (this.filterTokens.find((value) => (value === null || value === void 0 ? void 0 : value.value) === newToken)) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const pair = { id: category, value: newToken, operator };
|
|
213
|
+
this.filterTokens = [...this.filterTokens, pair];
|
|
214
|
+
this.textInput.value = '';
|
|
215
|
+
this.inputValue = '';
|
|
216
|
+
this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;
|
|
217
|
+
this.isScrollStateDirty = true;
|
|
218
|
+
this.textInput.focus();
|
|
219
|
+
if (emitEvent) {
|
|
220
|
+
this.emitFilterEvent();
|
|
221
|
+
}
|
|
222
|
+
this.closeDropdown();
|
|
223
|
+
}
|
|
224
|
+
removeToken(index) {
|
|
225
|
+
this.filterTokens = this.filterTokens.filter((_, i) => i !== index);
|
|
226
|
+
this.emitFilterEvent();
|
|
227
|
+
}
|
|
228
|
+
getCategoryIds() {
|
|
229
|
+
const ids = [];
|
|
230
|
+
for (const id in this.categories) {
|
|
231
|
+
if (Object.prototype.hasOwnProperty.call(this.categories, id)) {
|
|
232
|
+
ids.push(id);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return ids;
|
|
236
|
+
}
|
|
237
|
+
getCategoryLables() {
|
|
238
|
+
return this.getCategoryIds().map((id) => this.categories[id].label);
|
|
239
|
+
}
|
|
240
|
+
selectCategory(category) {
|
|
241
|
+
this.category = category;
|
|
242
|
+
this.textInput.value = '';
|
|
243
|
+
this.inputValue = '';
|
|
244
|
+
this.textInput.focus();
|
|
245
|
+
}
|
|
246
|
+
openCategorySelection() {
|
|
247
|
+
this.showCategorySelection = true;
|
|
248
|
+
}
|
|
249
|
+
resetFilter() {
|
|
250
|
+
this.closeDropdown();
|
|
251
|
+
this.filterTokens = [];
|
|
252
|
+
this.emitFilterEvent();
|
|
253
|
+
}
|
|
254
|
+
calculateDropdownX() {
|
|
255
|
+
var _a;
|
|
256
|
+
if (!this.textInput) {
|
|
257
|
+
return 0;
|
|
258
|
+
}
|
|
259
|
+
const xInput = this.textInput.getBoundingClientRect().x;
|
|
260
|
+
const xFrom = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().x;
|
|
261
|
+
return xInput - xFrom;
|
|
262
|
+
}
|
|
263
|
+
calculateDropdownY() {
|
|
264
|
+
if (!this.textInput) {
|
|
265
|
+
return 32;
|
|
266
|
+
}
|
|
267
|
+
return this.hostElement.getBoundingClientRect().height;
|
|
268
|
+
}
|
|
269
|
+
calculateDropdownHeight(top = 32) {
|
|
270
|
+
const hostTop = this.hostElement.getBoundingClientRect().top;
|
|
271
|
+
const offset = hostTop + top;
|
|
272
|
+
return window.innerHeight - offset;
|
|
273
|
+
}
|
|
274
|
+
filterMultiples(value) {
|
|
275
|
+
if (this.repeatCategories) {
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
const isCategoryAlreadySet = this.filterTokens.find((token) => token.id === value);
|
|
279
|
+
return !isCategoryAlreadySet;
|
|
280
|
+
}
|
|
281
|
+
filterDuplicateTokens(value) {
|
|
282
|
+
const isTokenAlreadySet = this.filterTokens.some((token) => token.value === value);
|
|
283
|
+
return !isTokenAlreadySet;
|
|
284
|
+
}
|
|
285
|
+
filterByInput(value) {
|
|
286
|
+
if (this.inputValue === undefined || this.inputValue === '') {
|
|
287
|
+
return true;
|
|
288
|
+
}
|
|
289
|
+
return value.toLowerCase().indexOf(this.inputValue.toLowerCase()) !== -1;
|
|
290
|
+
}
|
|
291
|
+
toggleCategoryOperator() {
|
|
292
|
+
switch (this.categoryLogicalOperator) {
|
|
293
|
+
case LogicalFilterOperator.EQUAL:
|
|
294
|
+
this.categoryLogicalOperator = LogicalFilterOperator.NOT_EQUAL;
|
|
295
|
+
break;
|
|
296
|
+
case LogicalFilterOperator.NOT_EQUAL:
|
|
297
|
+
this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
getFilterChipLabel(value) {
|
|
302
|
+
var _a, _b, _c;
|
|
303
|
+
if (value.id === this.ID_CUSTOM_FILTER_VALUE) {
|
|
304
|
+
return value.value;
|
|
305
|
+
}
|
|
306
|
+
const operatorString = value.operator === LogicalFilterOperator.EQUAL ? '=' : '!=';
|
|
307
|
+
const label = (_c = (_b = (_a = this.categories[value.id]) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : this.nonSelectableCategories[value.id]) !== null && _c !== void 0 ? _c : value.id;
|
|
308
|
+
return `${label} ${operatorString} ${value.value}`;
|
|
309
|
+
}
|
|
310
|
+
componentDidRender() {
|
|
311
|
+
const newOffsetX = this.calculateDropdownX();
|
|
312
|
+
const newOffsetY = this.calculateDropdownY();
|
|
313
|
+
const newOffsetXRem = convertToRemString(newOffsetX);
|
|
314
|
+
const newOffsetYRem = convertToRemString(newOffsetY);
|
|
315
|
+
const maxWidthDropdown = this.hostElement.getBoundingClientRect().width - newOffsetX;
|
|
316
|
+
const maxHeightDropdown = this.calculateDropdownHeight(newOffsetY);
|
|
317
|
+
this.maxWidthDropdown = convertToRemString(maxWidthDropdown);
|
|
318
|
+
this.maxHeightDropdown = convertToRemString(maxHeightDropdown);
|
|
319
|
+
// This will throw a warning
|
|
320
|
+
if (newOffsetXRem !== this.offsetDropdownX) {
|
|
321
|
+
this.offsetDropdownX = newOffsetXRem;
|
|
322
|
+
}
|
|
323
|
+
// This will throw a warning
|
|
324
|
+
if (newOffsetYRem !== this.offsetDropdownY) {
|
|
325
|
+
this.offsetDropdownY = newOffsetYRem;
|
|
326
|
+
}
|
|
327
|
+
if (this.isScrollStateDirty) {
|
|
328
|
+
if (!this.tmpDisableScrollIntoView) {
|
|
329
|
+
this.textInput.scrollIntoView();
|
|
330
|
+
}
|
|
331
|
+
this.isScrollStateDirty = false;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
render() {
|
|
335
|
+
var _a, _b, _c, _d, _e, _f;
|
|
336
|
+
return (h(Host, null,
|
|
337
|
+
h("form", { ref: (el) => (this.formElement = el) },
|
|
338
|
+
h("div", { class: {
|
|
339
|
+
'form-control': true,
|
|
340
|
+
'input-container': true,
|
|
341
|
+
focus: this.hasFocus,
|
|
342
|
+
'no-icon': this.hideIcon,
|
|
343
|
+
} },
|
|
344
|
+
h("ix-icon", { class: { 'd-none': this.hideIcon }, name: this.icon, size: "16" }),
|
|
345
|
+
h("div", { class: "token-container" },
|
|
346
|
+
h("ul", { class: "list-unstyled" },
|
|
347
|
+
this.filterTokens.map((value, index) => (h("li", { class: {
|
|
348
|
+
animate__animated: true,
|
|
349
|
+
animate__fadein: true,
|
|
350
|
+
} },
|
|
351
|
+
h("ix-filter-chip", { onCloseClick: () => this.removeToken(index) }, this.getFilterChipLabel(value))))),
|
|
352
|
+
this.categories === undefined ? ('') : (h("li", { class: {
|
|
353
|
+
'category-preview': true,
|
|
354
|
+
'd-none': !this.category,
|
|
355
|
+
} }, (_a = this.categories[this.category]) === null || _a === void 0 ? void 0 : _a.label)),
|
|
356
|
+
h("input", { class: {
|
|
357
|
+
'text-input': true,
|
|
358
|
+
'hide-placeholder': this.category !== undefined,
|
|
359
|
+
}, ref: (el) => (this.textInput = el), type: "text", placeholder: this.placeholder, onFocus: () => this.openCategorySelection() }))),
|
|
360
|
+
h("button", { class: {
|
|
361
|
+
btn: true,
|
|
362
|
+
'btn-invisible-secondary': true,
|
|
363
|
+
'btn-oval': true,
|
|
364
|
+
'btn-close': true,
|
|
365
|
+
'd-none': !this.filterTokens.length && !this.category,
|
|
366
|
+
}, onClick: () => this.resetFilter(), tabindex: "1" },
|
|
367
|
+
h("span", { class: "glyph glyph-error glyph-16" })))),
|
|
368
|
+
h("div", { class: {
|
|
369
|
+
'category-selection-container': true,
|
|
370
|
+
'd-none': !this.showCategorySelection && this.category === undefined,
|
|
371
|
+
}, style: {
|
|
372
|
+
left: this.offsetDropdownX,
|
|
373
|
+
top: this.offsetDropdownY,
|
|
374
|
+
'max-width': this.maxWidthDropdown,
|
|
375
|
+
'max-height': this.maxHeightDropdown,
|
|
376
|
+
} },
|
|
377
|
+
h("div", { class: {
|
|
378
|
+
'd-none': !this.showCategorySelection || this.category !== undefined,
|
|
379
|
+
} },
|
|
380
|
+
h("div", { class: {
|
|
381
|
+
'category-item-header': true,
|
|
382
|
+
'd-none': this.getCategoryLables().filter((value) => this.filterByInput(value)).length === 0,
|
|
383
|
+
} }, this.labelCategories), (_b = this.getCategoryIds()) === null || _b === void 0 ? void 0 :
|
|
384
|
+
_b.filter((id) => this.filterByInput(this.categories[id].label)).filter((id) => this.filterMultiples(id)).map((id) => {
|
|
385
|
+
var _a;
|
|
386
|
+
return (h("div", { "data-id": id, title: id, class: "category-item category-item-id", onClick: () => this.selectCategory(id), tabindex: "0" }, (_a = this.categories[id]) === null || _a === void 0 ? void 0 : _a.label));
|
|
387
|
+
})),
|
|
388
|
+
h("div", { class: {
|
|
389
|
+
'd-none': this.category === undefined,
|
|
390
|
+
} },
|
|
391
|
+
h("button", { class: "btn btn-invisible-secondary btn-icon", onClick: () => this.toggleCategoryOperator(), tabindex: "-1" }, this.categoryLogicalOperator === LogicalFilterOperator.NOT_EQUAL
|
|
392
|
+
? '='
|
|
393
|
+
: '!='),
|
|
394
|
+
this.categories === undefined ? ('') : (h("div", { class: "category-item-header" }, (_c = this.categories[this.category]) === null || _c === void 0 ? void 0 : _c.label)),
|
|
395
|
+
this.categories === undefined
|
|
396
|
+
? ''
|
|
397
|
+
: (_d = this.categories[this.category]) === null || _d === void 0 ? void 0 : _d.options.filter((value) => this.filterByInput(value)).filter((value) => this.filterDuplicateTokens(value)).map((id) => (h("div", { "data-id": id, title: id, class: "category-item category-item-value", onClick: () => this.addToken(id, this.category), tabindex: "0" }, `${this.categoryLogicalOperator ===
|
|
398
|
+
LogicalFilterOperator.EQUAL
|
|
399
|
+
? '='
|
|
400
|
+
: '!='} ${id}`)))),
|
|
401
|
+
h("div", { class: {
|
|
402
|
+
'category-item-header': true,
|
|
403
|
+
'd-none': this.category !== undefined ||
|
|
404
|
+
this.getCategoryIds().filter((value) => this.filterByInput(value)).length > 0,
|
|
405
|
+
} }, this.i18nPlainText),
|
|
406
|
+
h("div", { class: {
|
|
407
|
+
'd-none': !((_e = this.suggestions) === null || _e === void 0 ? void 0 : _e.length) || this.category !== undefined,
|
|
408
|
+
} }, (_f = this.suggestions) === null || _f === void 0 ? void 0 : _f.filter((value) => this.filterByInput(value)).filter((value) => this.filterDuplicateTokens(value)).map((suggestion) => (h("div", { "data-id": suggestion, class: "category-item plain-text-suggestion", onClick: () => this.addToken(suggestion), tabindex: "0" }, suggestion)))))));
|
|
409
|
+
}
|
|
410
|
+
static get is() { return "ix-category-filter"; }
|
|
411
|
+
static get encapsulation() { return "scoped"; }
|
|
412
|
+
static get originalStyleUrls() { return {
|
|
413
|
+
"$": ["category-filter.scss"]
|
|
414
|
+
}; }
|
|
415
|
+
static get styleUrls() { return {
|
|
416
|
+
"$": ["category-filter.css"]
|
|
417
|
+
}; }
|
|
418
|
+
static get properties() { return {
|
|
419
|
+
"initialState": {
|
|
420
|
+
"type": "unknown",
|
|
421
|
+
"mutable": false,
|
|
422
|
+
"complexType": {
|
|
423
|
+
"original": "FilterState",
|
|
424
|
+
"resolved": "FilterState",
|
|
425
|
+
"references": {
|
|
426
|
+
"FilterState": {
|
|
427
|
+
"location": "import",
|
|
428
|
+
"path": "./filter-state"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"required": false,
|
|
433
|
+
"optional": false,
|
|
434
|
+
"docs": {
|
|
435
|
+
"tags": [{
|
|
436
|
+
"name": "deprecated",
|
|
437
|
+
"text": "will get removed with next major release (7.0.0). Use the member filterState instead."
|
|
438
|
+
}],
|
|
439
|
+
"text": "When set this will initially populate the component with the provided search criteria.\nThis will trigger all input events accordingly."
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"filterState": {
|
|
443
|
+
"type": "unknown",
|
|
444
|
+
"mutable": false,
|
|
445
|
+
"complexType": {
|
|
446
|
+
"original": "FilterState",
|
|
447
|
+
"resolved": "FilterState",
|
|
448
|
+
"references": {
|
|
449
|
+
"FilterState": {
|
|
450
|
+
"location": "import",
|
|
451
|
+
"path": "./filter-state"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": false,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [],
|
|
459
|
+
"text": "A set of search criteria to populate the component with."
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"placeholder": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"mutable": false,
|
|
465
|
+
"complexType": {
|
|
466
|
+
"original": "string",
|
|
467
|
+
"resolved": "string",
|
|
468
|
+
"references": {}
|
|
469
|
+
},
|
|
470
|
+
"required": false,
|
|
471
|
+
"optional": false,
|
|
472
|
+
"docs": {
|
|
473
|
+
"tags": [],
|
|
474
|
+
"text": "Placeholder text to be displayed in an empty input field."
|
|
475
|
+
},
|
|
476
|
+
"attribute": "placeholder",
|
|
477
|
+
"reflect": false
|
|
478
|
+
},
|
|
479
|
+
"categories": {
|
|
480
|
+
"type": "unknown",
|
|
481
|
+
"mutable": false,
|
|
482
|
+
"complexType": {
|
|
483
|
+
"original": "{\n [id: string]: {\n label: string;\n options: string[];\n };\n }",
|
|
484
|
+
"resolved": "{ [id: string]: { label: string; options: string[]; }; }",
|
|
485
|
+
"references": {}
|
|
486
|
+
},
|
|
487
|
+
"required": false,
|
|
488
|
+
"optional": false,
|
|
489
|
+
"docs": {
|
|
490
|
+
"tags": [],
|
|
491
|
+
"text": "Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality.\nEach ID maps to an object with a label and an array of options to select from."
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"nonSelectableCategories": {
|
|
495
|
+
"type": "unknown",
|
|
496
|
+
"mutable": false,
|
|
497
|
+
"complexType": {
|
|
498
|
+
"original": "{\n [id: string]: string;\n }",
|
|
499
|
+
"resolved": "{ [id: string]: string; }",
|
|
500
|
+
"references": {}
|
|
501
|
+
},
|
|
502
|
+
"required": false,
|
|
503
|
+
"optional": true,
|
|
504
|
+
"docs": {
|
|
505
|
+
"tags": [],
|
|
506
|
+
"text": "In certain use cases some categories are not available for selection any more.\nTo allow proper display of set filters with these categories this ID to label mapping can be populated.\nConfiguration object hash used to supply labels to the filter chips in the input field.\nEach ID maps to a string representing the label to display."
|
|
507
|
+
},
|
|
508
|
+
"defaultValue": "{}"
|
|
509
|
+
},
|
|
510
|
+
"suggestions": {
|
|
511
|
+
"type": "unknown",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "string[]",
|
|
515
|
+
"resolved": "string[]",
|
|
516
|
+
"references": {}
|
|
517
|
+
},
|
|
518
|
+
"required": false,
|
|
519
|
+
"optional": false,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": "A list of strings that will be supplied as typeahead suggestions not tied to any categories."
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"icon": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"mutable": false,
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "string",
|
|
530
|
+
"resolved": "string",
|
|
531
|
+
"references": {}
|
|
532
|
+
},
|
|
533
|
+
"required": false,
|
|
534
|
+
"optional": false,
|
|
535
|
+
"docs": {
|
|
536
|
+
"tags": [],
|
|
537
|
+
"text": "The icon next to the actual text input\nDefaults to 'search'"
|
|
538
|
+
},
|
|
539
|
+
"attribute": "icon",
|
|
540
|
+
"reflect": false,
|
|
541
|
+
"defaultValue": "'search'"
|
|
542
|
+
},
|
|
543
|
+
"hideIcon": {
|
|
544
|
+
"type": "boolean",
|
|
545
|
+
"mutable": false,
|
|
546
|
+
"complexType": {
|
|
547
|
+
"original": "boolean",
|
|
548
|
+
"resolved": "boolean",
|
|
549
|
+
"references": {}
|
|
550
|
+
},
|
|
551
|
+
"required": false,
|
|
552
|
+
"optional": false,
|
|
553
|
+
"docs": {
|
|
554
|
+
"tags": [],
|
|
555
|
+
"text": "Allows to hide the icon inside the text input.\nDefaults to false"
|
|
556
|
+
},
|
|
557
|
+
"attribute": "hide-icon",
|
|
558
|
+
"reflect": false
|
|
559
|
+
},
|
|
560
|
+
"repeatCategories": {
|
|
561
|
+
"type": "boolean",
|
|
562
|
+
"mutable": false,
|
|
563
|
+
"complexType": {
|
|
564
|
+
"original": "boolean",
|
|
565
|
+
"resolved": "boolean",
|
|
566
|
+
"references": {}
|
|
567
|
+
},
|
|
568
|
+
"required": false,
|
|
569
|
+
"optional": false,
|
|
570
|
+
"docs": {
|
|
571
|
+
"tags": [],
|
|
572
|
+
"text": "If set to true allows that a single category can be set more than once.\nAn already set category will not appear in the category dropdown if set to false.\n\nDefaults to true"
|
|
573
|
+
},
|
|
574
|
+
"attribute": "repeat-categories",
|
|
575
|
+
"reflect": false,
|
|
576
|
+
"defaultValue": "true"
|
|
577
|
+
},
|
|
578
|
+
"tmpDisableScrollIntoView": {
|
|
579
|
+
"type": "boolean",
|
|
580
|
+
"mutable": false,
|
|
581
|
+
"complexType": {
|
|
582
|
+
"original": "boolean",
|
|
583
|
+
"resolved": "boolean",
|
|
584
|
+
"references": {}
|
|
585
|
+
},
|
|
586
|
+
"required": false,
|
|
587
|
+
"optional": false,
|
|
588
|
+
"docs": {
|
|
589
|
+
"tags": [{
|
|
590
|
+
"name": "deprecated",
|
|
591
|
+
"text": "For debugging purposes only!"
|
|
592
|
+
}],
|
|
593
|
+
"text": ""
|
|
594
|
+
},
|
|
595
|
+
"attribute": "tmp-disable-scroll-into-view",
|
|
596
|
+
"reflect": false,
|
|
597
|
+
"defaultValue": "true"
|
|
598
|
+
},
|
|
599
|
+
"labelCategories": {
|
|
600
|
+
"type": "string",
|
|
601
|
+
"mutable": false,
|
|
602
|
+
"complexType": {
|
|
603
|
+
"original": "string",
|
|
604
|
+
"resolved": "string",
|
|
605
|
+
"references": {}
|
|
606
|
+
},
|
|
607
|
+
"required": false,
|
|
608
|
+
"optional": false,
|
|
609
|
+
"docs": {
|
|
610
|
+
"tags": [],
|
|
611
|
+
"text": "i18n"
|
|
612
|
+
},
|
|
613
|
+
"attribute": "label-categories",
|
|
614
|
+
"reflect": false,
|
|
615
|
+
"defaultValue": "'Categories'"
|
|
616
|
+
},
|
|
617
|
+
"i18nPlainText": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"mutable": false,
|
|
620
|
+
"complexType": {
|
|
621
|
+
"original": "string",
|
|
622
|
+
"resolved": "string",
|
|
623
|
+
"references": {}
|
|
624
|
+
},
|
|
625
|
+
"required": false,
|
|
626
|
+
"optional": false,
|
|
627
|
+
"docs": {
|
|
628
|
+
"tags": [],
|
|
629
|
+
"text": "i18n"
|
|
630
|
+
},
|
|
631
|
+
"attribute": "i-1-8n-plain-text",
|
|
632
|
+
"reflect": false,
|
|
633
|
+
"defaultValue": "'Filter by text'"
|
|
634
|
+
}
|
|
635
|
+
}; }
|
|
636
|
+
static get states() { return {
|
|
637
|
+
"hasFocus": {},
|
|
638
|
+
"showCategorySelection": {},
|
|
639
|
+
"categoryLogicalOperator": {},
|
|
640
|
+
"inputValue": {},
|
|
641
|
+
"category": {},
|
|
642
|
+
"filterTokens": {},
|
|
643
|
+
"offsetDropdownX": {},
|
|
644
|
+
"offsetDropdownY": {},
|
|
645
|
+
"maxHeightDropdown": {},
|
|
646
|
+
"maxWidthDropdown": {}
|
|
647
|
+
}; }
|
|
648
|
+
static get events() { return [{
|
|
649
|
+
"method": "inputChanged",
|
|
650
|
+
"name": "inputChanged",
|
|
651
|
+
"bubbles": true,
|
|
652
|
+
"cancelable": true,
|
|
653
|
+
"composed": true,
|
|
654
|
+
"docs": {
|
|
655
|
+
"tags": [],
|
|
656
|
+
"text": "Event dispatched whenever the text input changes."
|
|
657
|
+
},
|
|
658
|
+
"complexType": {
|
|
659
|
+
"original": "InputState",
|
|
660
|
+
"resolved": "InputState",
|
|
661
|
+
"references": {
|
|
662
|
+
"InputState": {
|
|
663
|
+
"location": "import",
|
|
664
|
+
"path": "./input-state"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}, {
|
|
669
|
+
"method": "filterChanged",
|
|
670
|
+
"name": "filterChanged",
|
|
671
|
+
"bubbles": true,
|
|
672
|
+
"cancelable": true,
|
|
673
|
+
"composed": true,
|
|
674
|
+
"docs": {
|
|
675
|
+
"tags": [],
|
|
676
|
+
"text": "Event dispatched whenever the filter state changes."
|
|
677
|
+
},
|
|
678
|
+
"complexType": {
|
|
679
|
+
"original": "FilterState",
|
|
680
|
+
"resolved": "FilterState",
|
|
681
|
+
"references": {
|
|
682
|
+
"FilterState": {
|
|
683
|
+
"location": "import",
|
|
684
|
+
"path": "./filter-state"
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}]; }
|
|
689
|
+
static get elementRef() { return "hostElement"; }
|
|
690
|
+
static get watchers() { return [{
|
|
691
|
+
"propName": "filterState",
|
|
692
|
+
"methodName": "watchFilterState"
|
|
693
|
+
}, {
|
|
694
|
+
"propName": "showCategorySelection",
|
|
695
|
+
"methodName": "watchShowCategorySelection"
|
|
696
|
+
}]; }
|
|
697
|
+
static get listeners() { return [{
|
|
698
|
+
"name": "resize",
|
|
699
|
+
"method": "setDropdownOffset",
|
|
700
|
+
"target": "window",
|
|
701
|
+
"capture": false,
|
|
702
|
+
"passive": true
|
|
703
|
+
}]; }
|
|
704
|
+
}
|