mis-crystal-design-system 2.9.7-v14-1 → 2.9.8
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/action-list/action-list.component.d.ts +0 -3
- package/action-list/action-list.module.d.ts +0 -9
- package/action-list/mis-crystal-design-system-action-list.d.ts +4 -0
- package/action-list/mis-crystal-design-system-action-list.metadata.json +1 -0
- package/action-list/package.json +11 -0
- package/analytics/analytics.module.d.ts +0 -4
- package/analytics/analytics.service.d.ts +0 -3
- package/analytics/mis-crystal-design-system-analytics.d.ts +4 -0
- package/analytics/mis-crystal-design-system-analytics.metadata.json +1 -0
- package/analytics/package.json +11 -0
- package/async-search-dropdown/async-dropdown.component.d.ts +2 -5
- package/async-search-dropdown/async-dropdown.module.d.ts +0 -9
- package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +4 -0
- package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -0
- package/async-search-dropdown/package.json +11 -0
- package/bundles/mis-crystal-design-system-action-list.umd.js +508 -0
- package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-action-list.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-analytics.umd.js +422 -0
- package/bundles/mis-crystal-design-system-analytics.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-analytics.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-analytics.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +258 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-button.umd.js +134 -0
- package/bundles/mis-crystal-design-system-button.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-button.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-checkbox.umd.js +127 -0
- package/bundles/mis-crystal-design-system-checkbox.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-checkbox.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-chip.umd.js +64 -0
- package/bundles/mis-crystal-design-system-chip.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-chip.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-chip.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +688 -0
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +740 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-drawer.umd.js +169 -0
- package/bundles/mis-crystal-design-system-drawer.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-drawer.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-dropdown.umd.js +493 -0
- package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-dropdown.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-fab.umd.js +95 -0
- package/bundles/mis-crystal-design-system-fab.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-fab.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-fab.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-input.umd.js +114 -0
- package/bundles/mis-crystal-design-system-input.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-input.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-loader.umd.js +53 -0
- package/bundles/mis-crystal-design-system-loader.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-loader.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-menu.umd.js +119 -0
- package/bundles/mis-crystal-design-system-menu.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-menu.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-menu.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-modal.umd.js +161 -0
- package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-modal.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +622 -0
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +636 -0
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-phone-input.umd.js +68 -0
- package/bundles/mis-crystal-design-system-phone-input.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-phone-input.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-phone-input.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-radio-button.umd.js +77 -0
- package/bundles/mis-crystal-design-system-radio-button.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-radio-button.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-ske-loader.umd.js +65 -0
- package/bundles/mis-crystal-design-system-ske-loader.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-ske-loader.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-ske-loader.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-styles.umd.js +11 -0
- package/bundles/mis-crystal-design-system-styles.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-styles.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-styles.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-switch.umd.js +79 -0
- package/bundles/mis-crystal-design-system-switch.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-switch.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-switch.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-table.umd.js +783 -0
- package/bundles/mis-crystal-design-system-table.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-table.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-toast.umd.js +202 -0
- package/bundles/mis-crystal-design-system-toast.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-toast.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-toast.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-tooltip.umd.js +194 -0
- package/bundles/mis-crystal-design-system-tooltip.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-tooltip.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-utils.umd.js +33 -0
- package/bundles/mis-crystal-design-system-utils.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-utils.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system-utils.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.js +472 -0
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-virtual-scroll.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system-widgets.umd.js +478 -0
- package/bundles/mis-crystal-design-system-widgets.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-widgets.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-widgets.umd.min.js.map +1 -0
- package/bundles/mis-crystal-design-system.umd.js +31 -0
- package/bundles/mis-crystal-design-system.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system.umd.min.js +2 -0
- package/bundles/mis-crystal-design-system.umd.min.js.map +1 -0
- package/button/button.component.d.ts +0 -3
- package/button/button.directive.d.ts +0 -3
- package/button/button.module.d.ts +0 -7
- package/button/mis-crystal-design-system-button.d.ts +4 -0
- package/button/mis-crystal-design-system-button.metadata.json +1 -0
- package/button/package.json +11 -0
- package/checkbox/checkbox.component.d.ts +0 -3
- package/checkbox/checkbox.module.d.ts +0 -7
- package/checkbox/mis-crystal-design-system-checkbox.d.ts +4 -0
- package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -0
- package/checkbox/package.json +11 -0
- package/chip/chip.component.d.ts +0 -3
- package/chip/chip.module.d.ts +0 -6
- package/chip/mis-crystal-design-system-chip.d.ts +4 -0
- package/chip/mis-crystal-design-system-chip.metadata.json +1 -0
- package/chip/package.json +11 -0
- package/datepicker_v2/datepicker.module.d.ts +0 -10
- package/datepicker_v2/mis-crystal-design-system-datepicker_v2.d.ts +7 -0
- package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -0
- package/datepicker_v2/package.json +11 -0
- package/datepicker_v2/public_api.d.ts +0 -1
- package/datepicker_v2/tz-datepicker.directive.d.ts +0 -3
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +0 -3
- package/daterangepicker_v2/daterangepicker.module.d.ts +0 -10
- package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +7 -0
- package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -0
- package/daterangepicker_v2/package.json +11 -0
- package/daterangepicker_v2/public_api.d.ts +0 -1
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +0 -3
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +0 -3
- package/drawer/drawer-body/drawer-body.component.d.ts +1 -3
- package/drawer/drawer.module.d.ts +0 -8
- package/drawer/drawer.service.d.ts +0 -3
- package/drawer/mis-crystal-design-system-drawer.d.ts +5 -0
- package/drawer/mis-crystal-design-system-drawer.metadata.json +1 -0
- package/drawer/package.json +11 -0
- package/dropdown/dropdown.component.d.ts +3 -3
- package/dropdown/dropdown.module.d.ts +0 -9
- package/dropdown/mis-crystal-design-system-dropdown.d.ts +4 -0
- package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -0
- package/dropdown/package.json +11 -0
- package/esm2015/action-list/action-list.component.js +160 -0
- package/esm2015/action-list/action-list.module.js +19 -0
- package/esm2015/analytics/analytics.module.js +14 -0
- package/esm2015/analytics/analytics.service.js +62 -0
- package/esm2015/async-search-dropdown/async-dropdown.component.js +223 -0
- package/esm2015/async-search-dropdown/async-dropdown.module.js +16 -0
- package/esm2015/button/button.component.js +43 -0
- package/esm2015/button/button.directive.js +57 -0
- package/esm2015/button/button.module.js +17 -0
- package/esm2015/checkbox/checkbox.component.js +79 -0
- package/esm2015/checkbox/checkbox.module.js +17 -0
- package/esm2015/chip/chip.component.js +31 -0
- package/esm2015/chip/chip.module.js +16 -0
- package/esm2015/datepicker_v2/datepicker.module.js +18 -0
- package/esm2015/datepicker_v2/mis-crystal-design-system-datepicker_v2.js +7 -0
- package/esm2015/datepicker_v2/public_api.js +3 -0
- package/esm2015/datepicker_v2/tz-datepicker.directive.js +126 -0
- package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +149 -0
- package/esm2015/daterangepicker_v2/daterangepicker.module.js +18 -0
- package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +7 -0
- package/esm2015/daterangepicker_v2/public_api.js +3 -0
- package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +123 -0
- package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +205 -0
- package/esm2015/drawer/drawer-body/drawer-body.component.js +41 -0
- package/esm2015/drawer/drawer.module.js +28 -0
- package/{esm2020/drawer/drawer.service.mjs → esm2015/drawer/drawer.service.js} +15 -12
- package/esm2015/drawer/mis-crystal-design-system-drawer.js +6 -0
- package/esm2015/dropdown/dropdown.component.js +145 -0
- package/esm2015/dropdown/dropdown.module.js +20 -0
- package/esm2015/fab/fab.component.js +63 -0
- package/esm2015/fab/fab.module.js +16 -0
- package/esm2015/input/directives/input/input.directive.js +38 -0
- package/esm2015/input/mis-input.component.js +43 -0
- package/esm2015/input/mis-input.module.js +15 -0
- package/esm2015/loader/loader.component.js +20 -0
- package/esm2015/loader/loader.module.js +16 -0
- package/esm2015/menu/menu-close.directive.js +18 -0
- package/esm2015/menu/menu.directive.js +70 -0
- package/esm2015/menu/menu.module.js +17 -0
- package/esm2015/modal/mis-crystal-design-system-modal.js +6 -0
- package/esm2015/modal/modal.module.js +28 -0
- package/esm2015/modal/modal.service.js +72 -0
- package/esm2015/modal/module-wrapper/module-wrapper.component.js +33 -0
- package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +268 -0
- package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +20 -0
- package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +265 -0
- package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +20 -0
- package/esm2015/phone-input/index.js +2 -0
- package/esm2015/phone-input/mis-crystal-design-system-phone-input.js +5 -0
- package/esm2015/phone-input/phone-input.component.js +36 -0
- package/esm2015/phone-input/phone-input.module.js +21 -0
- package/esm2015/phone-input/public_api.js +3 -0
- package/esm2015/radio-button/radio-button.component.js +45 -0
- package/esm2015/radio-button/radio-button.module.js +17 -0
- package/esm2015/ske-loader/ske-loader.component.js +31 -0
- package/esm2015/ske-loader/ske-loader.module.js +13 -0
- package/esm2015/switch/switch.component.js +39 -0
- package/esm2015/switch/switch.module.js +17 -0
- package/esm2015/table/custom-table-cell.directive.js +42 -0
- package/esm2015/table/filter/filter.component.js +75 -0
- package/esm2015/table/mis-crystal-design-system-table.js +6 -0
- package/esm2015/table/public_api.js +5 -0
- package/esm2015/table/sub-table/sub-table.component.js +69 -0
- package/esm2015/table/table.component.js +199 -0
- package/esm2015/table/table.module.js +21 -0
- package/{esm2020/toast/mis-crystal-design-system-toast.mjs → esm2015/toast/mis-crystal-design-system-toast.js} +2 -1
- package/esm2015/toast/toast.component.js +28 -0
- package/esm2015/toast/toast.data.service.js +29 -0
- package/esm2015/toast/toast.module.js +28 -0
- package/esm2015/toast/toast.service.js +96 -0
- package/esm2015/tooltip/tooltip-container/tooltip.component.js +34 -0
- package/esm2015/tooltip/tooltip.directive.js +117 -0
- package/esm2015/tooltip/tooltip.module.js +19 -0
- package/esm2015/virtual-scroll/index.js +2 -0
- package/esm2015/virtual-scroll/mis-crystal-design-system-virtual-scroll.js +5 -0
- package/esm2015/virtual-scroll/public_api.js +4 -0
- package/esm2015/virtual-scroll/virtual-scroll.component.js +112 -0
- package/esm2015/virtual-scroll/virtual-scroll.constants.js +2 -0
- package/esm2015/virtual-scroll/virtual-scroll.module.js +24 -0
- package/{esm2020/widgets/classes/base-widget.mjs → esm2015/widgets/classes/base-widget.js} +2 -2
- package/esm2015/widgets/classes/widget-group.js +32 -0
- package/esm2015/widgets/services/widget.service.js +16 -0
- package/esm2015/widgets/widgets.module.js +12 -0
- package/fab/fab.component.d.ts +0 -3
- package/fab/fab.module.d.ts +0 -6
- package/fab/mis-crystal-design-system-fab.d.ts +4 -0
- package/fab/mis-crystal-design-system-fab.metadata.json +1 -0
- package/fab/package.json +11 -0
- package/fesm2015/mis-crystal-design-system-action-list.js +183 -0
- package/fesm2015/mis-crystal-design-system-action-list.js.map +1 -0
- package/fesm2015/{mis-crystal-design-system-analytics.mjs → mis-crystal-design-system-analytics.js} +14 -22
- package/fesm2015/mis-crystal-design-system-analytics.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +242 -0
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-button.js +120 -0
- package/fesm2015/mis-crystal-design-system-button.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-checkbox.js +100 -0
- package/fesm2015/mis-crystal-design-system-checkbox.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-chip.js +52 -0
- package/fesm2015/mis-crystal-design-system-chip.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js +339 -0
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +392 -0
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-drawer.js +153 -0
- package/fesm2015/mis-crystal-design-system-drawer.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-dropdown.js +169 -0
- package/fesm2015/mis-crystal-design-system-dropdown.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-fab.js +84 -0
- package/fesm2015/mis-crystal-design-system-fab.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-input.js +97 -0
- package/fesm2015/mis-crystal-design-system-input.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-loader.js +41 -0
- package/fesm2015/mis-crystal-design-system-loader.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-menu.js +106 -0
- package/fesm2015/mis-crystal-design-system-menu.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-modal.js +147 -0
- package/fesm2015/mis-crystal-design-system-modal.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +292 -0
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +289 -0
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-phone-input.js +60 -0
- package/fesm2015/mis-crystal-design-system-phone-input.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-radio-button.js +66 -0
- package/fesm2015/mis-crystal-design-system-radio-button.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-ske-loader.js +49 -0
- package/fesm2015/mis-crystal-design-system-ske-loader.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-styles.js +4 -0
- package/fesm2015/mis-crystal-design-system-styles.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-switch.js +60 -0
- package/fesm2015/mis-crystal-design-system-switch.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-table.js +405 -0
- package/fesm2015/mis-crystal-design-system-table.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-toast.js +174 -0
- package/fesm2015/mis-crystal-design-system-toast.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-tooltip.js +171 -0
- package/fesm2015/mis-crystal-design-system-tooltip.js.map +1 -0
- package/{fesm2020/mis-crystal-design-system-utils.mjs → fesm2015/mis-crystal-design-system-utils.js} +1 -1
- package/fesm2015/mis-crystal-design-system-utils.js.map +1 -0
- package/fesm2015/mis-crystal-design-system-virtual-scroll.js +142 -0
- package/fesm2015/mis-crystal-design-system-virtual-scroll.js.map +1 -0
- package/fesm2015/{mis-crystal-design-system-widgets.mjs → mis-crystal-design-system-widgets.js} +8 -13
- package/fesm2015/mis-crystal-design-system-widgets.js.map +1 -0
- package/fesm2015/{mis-crystal-design-system.mjs → mis-crystal-design-system.js} +1 -1
- package/fesm2015/mis-crystal-design-system.js.map +1 -0
- package/input/directives/input/input.directive.d.ts +0 -3
- package/input/mis-crystal-design-system-input.d.ts +4 -0
- package/input/mis-crystal-design-system-input.metadata.json +1 -0
- package/input/mis-input.component.d.ts +0 -3
- package/input/mis-input.module.d.ts +0 -8
- package/input/package.json +11 -0
- package/loader/loader.component.d.ts +0 -3
- package/loader/loader.module.d.ts +0 -6
- package/loader/mis-crystal-design-system-loader.d.ts +4 -0
- package/loader/mis-crystal-design-system-loader.metadata.json +1 -0
- package/loader/package.json +11 -0
- package/menu/menu-close.directive.d.ts +0 -3
- package/menu/menu.directive.d.ts +0 -3
- package/menu/menu.module.d.ts +1 -9
- package/menu/mis-crystal-design-system-menu.d.ts +4 -0
- package/menu/mis-crystal-design-system-menu.metadata.json +1 -0
- package/menu/package.json +11 -0
- package/mis-crystal-design-system.d.ts +4 -0
- package/mis-crystal-design-system.metadata.json +1 -0
- package/modal/mis-crystal-design-system-modal.d.ts +5 -0
- package/modal/mis-crystal-design-system-modal.metadata.json +1 -0
- package/modal/modal.module.d.ts +0 -8
- package/modal/modal.service.d.ts +0 -3
- package/modal/module-wrapper/module-wrapper.component.d.ts +0 -3
- package/modal/package.json +11 -0
- package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.d.ts +4 -0
- package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -0
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +0 -3
- package/multi-select-dropdown/multi-select-dropdown.module.d.ts +0 -10
- package/multi-select-dropdown/package.json +11 -0
- package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.d.ts +4 -0
- package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -0
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +0 -3
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +0 -10
- package/nested-multi-select-dropdown/package.json +11 -0
- package/package.json +8 -228
- package/phone-input/index.d.ts +1 -0
- package/phone-input/mis-crystal-design-system-phone-input.d.ts +4 -0
- package/phone-input/mis-crystal-design-system-phone-input.metadata.json +1 -0
- package/phone-input/package.json +11 -0
- package/phone-input/phone-input.component.d.ts +17 -0
- package/phone-input/phone-input.module.d.ts +4 -0
- package/phone-input/public_api.d.ts +2 -0
- package/radio-button/mis-crystal-design-system-radio-button.d.ts +4 -0
- package/radio-button/mis-crystal-design-system-radio-button.metadata.json +1 -0
- package/radio-button/package.json +11 -0
- package/radio-button/radio-button.component.d.ts +0 -3
- package/radio-button/radio-button.module.d.ts +0 -7
- package/ske-loader/mis-crystal-design-system-ske-loader.d.ts +4 -0
- package/ske-loader/mis-crystal-design-system-ske-loader.metadata.json +1 -0
- package/ske-loader/package.json +11 -0
- package/ske-loader/ske-loader.component.d.ts +0 -3
- package/ske-loader/ske-loader.module.d.ts +0 -6
- package/styles/mis-crystal-design-system-styles.d.ts +4 -0
- package/styles/mis-crystal-design-system-styles.metadata.json +1 -0
- package/styles/package.json +11 -0
- package/switch/mis-crystal-design-system-switch.d.ts +4 -0
- package/switch/mis-crystal-design-system-switch.metadata.json +1 -0
- package/switch/package.json +11 -0
- package/switch/switch.component.d.ts +0 -3
- package/switch/switch.module.d.ts +0 -7
- package/table/custom-table-cell.directive.d.ts +0 -3
- package/table/filter/filter.component.d.ts +0 -3
- package/table/mis-crystal-design-system-table.d.ts +5 -0
- package/table/mis-crystal-design-system-table.metadata.json +1 -0
- package/table/package.json +11 -0
- package/table/public_api.d.ts +0 -1
- package/table/sub-table/sub-table.component.d.ts +0 -3
- package/table/table.component.d.ts +0 -3
- package/table/table.module.d.ts +0 -11
- package/toast/mis-crystal-design-system-toast.d.ts +5 -0
- package/toast/mis-crystal-design-system-toast.metadata.json +1 -0
- package/toast/package.json +11 -0
- package/toast/toast.component.d.ts +0 -3
- package/toast/toast.data.service.d.ts +0 -3
- package/toast/toast.module.d.ts +0 -7
- package/toast/toast.service.d.ts +0 -3
- package/tooltip/mis-crystal-design-system-tooltip.d.ts +4 -0
- package/tooltip/mis-crystal-design-system-tooltip.metadata.json +1 -0
- package/tooltip/package.json +11 -0
- package/tooltip/tooltip-container/tooltip.component.d.ts +0 -3
- package/tooltip/tooltip.directive.d.ts +0 -3
- package/tooltip/tooltip.module.d.ts +0 -8
- package/utils/mis-crystal-design-system-utils.d.ts +4 -0
- package/utils/mis-crystal-design-system-utils.metadata.json +1 -0
- package/utils/package.json +11 -0
- package/virtual-scroll/index.d.ts +1 -0
- package/virtual-scroll/mis-crystal-design-system-virtual-scroll.d.ts +4 -0
- package/virtual-scroll/mis-crystal-design-system-virtual-scroll.metadata.json +1 -0
- package/virtual-scroll/package.json +11 -0
- package/virtual-scroll/public_api.d.ts +3 -0
- package/virtual-scroll/virtual-scroll.component.d.ts +25 -0
- package/virtual-scroll/virtual-scroll.constants.d.ts +15 -0
- package/virtual-scroll/virtual-scroll.module.d.ts +4 -0
- package/widgets/mis-crystal-design-system-widgets.d.ts +4 -0
- package/widgets/mis-crystal-design-system-widgets.metadata.json +1 -0
- package/widgets/package.json +11 -0
- package/widgets/services/widget.service.d.ts +0 -3
- package/widgets/widgets.module.d.ts +0 -5
- package/esm2020/action-list/action-list.component.mjs +0 -174
- package/esm2020/action-list/action-list.module.mjs +0 -24
- package/esm2020/analytics/analytics.module.mjs +0 -18
- package/esm2020/analytics/analytics.service.mjs +0 -63
- package/esm2020/async-search-dropdown/async-dropdown.component.mjs +0 -242
- package/esm2020/async-search-dropdown/async-dropdown.module.mjs +0 -21
- package/esm2020/button/button.component.mjs +0 -52
- package/esm2020/button/button.directive.mjs +0 -59
- package/esm2020/button/button.module.mjs +0 -22
- package/esm2020/checkbox/checkbox.component.mjs +0 -87
- package/esm2020/checkbox/checkbox.module.mjs +0 -22
- package/esm2020/chip/chip.component.mjs +0 -36
- package/esm2020/chip/chip.module.mjs +0 -21
- package/esm2020/datepicker_v2/datepicker.module.mjs +0 -23
- package/esm2020/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -5
- package/esm2020/datepicker_v2/public_api.mjs +0 -4
- package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +0 -143
- package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -151
- package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +0 -24
- package/esm2020/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -5
- package/esm2020/daterangepicker_v2/public_api.mjs +0 -4
- package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -133
- package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -209
- package/esm2020/drawer/drawer-body/drawer-body.component.mjs +0 -43
- package/esm2020/drawer/drawer.module.mjs +0 -32
- package/esm2020/drawer/mis-crystal-design-system-drawer.mjs +0 -5
- package/esm2020/dropdown/dropdown.component.mjs +0 -148
- package/esm2020/dropdown/dropdown.module.mjs +0 -24
- package/esm2020/fab/fab.component.mjs +0 -82
- package/esm2020/fab/fab.module.mjs +0 -21
- package/esm2020/input/directives/input/input.directive.mjs +0 -40
- package/esm2020/input/mis-input.component.mjs +0 -46
- package/esm2020/input/mis-input.module.mjs +0 -20
- package/esm2020/loader/loader.component.mjs +0 -19
- package/esm2020/loader/loader.module.mjs +0 -21
- package/esm2020/menu/menu-close.directive.mjs +0 -23
- package/esm2020/menu/menu.directive.mjs +0 -75
- package/esm2020/menu/menu.module.mjs +0 -22
- package/esm2020/modal/mis-crystal-design-system-modal.mjs +0 -5
- package/esm2020/modal/modal.module.mjs +0 -32
- package/esm2020/modal/modal.service.mjs +0 -70
- package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +0 -40
- package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -297
- package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +0 -25
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -313
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +0 -25
- package/esm2020/radio-button/radio-button.component.mjs +0 -49
- package/esm2020/radio-button/radio-button.module.mjs +0 -22
- package/esm2020/ske-loader/ske-loader.component.mjs +0 -34
- package/esm2020/ske-loader/ske-loader.module.mjs +0 -18
- package/esm2020/switch/switch.component.mjs +0 -43
- package/esm2020/switch/switch.module.mjs +0 -22
- package/esm2020/table/custom-table-cell.directive.mjs +0 -42
- package/esm2020/table/filter/filter.component.mjs +0 -79
- package/esm2020/table/mis-crystal-design-system-table.mjs +0 -5
- package/esm2020/table/public_api.mjs +0 -6
- package/esm2020/table/sub-table/sub-table.component.mjs +0 -69
- package/esm2020/table/table.component.mjs +0 -208
- package/esm2020/table/table.module.mjs +0 -26
- package/esm2020/toast/toast.component.mjs +0 -33
- package/esm2020/toast/toast.data.service.mjs +0 -30
- package/esm2020/toast/toast.module.mjs +0 -32
- package/esm2020/toast/toast.service.mjs +0 -91
- package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +0 -33
- package/esm2020/tooltip/tooltip.directive.mjs +0 -122
- package/esm2020/tooltip/tooltip.module.mjs +0 -23
- package/esm2020/widgets/classes/widget-group.mjs +0 -32
- package/esm2020/widgets/services/widget.service.mjs +0 -18
- package/esm2020/widgets/widgets.module.mjs +0 -17
- package/fesm2015/mis-crystal-design-system-action-list.mjs +0 -199
- package/fesm2015/mis-crystal-design-system-action-list.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-analytics.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +0 -272
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-button.mjs +0 -134
- package/fesm2015/mis-crystal-design-system-button.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-checkbox.mjs +0 -112
- package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-chip.mjs +0 -61
- package/fesm2015/mis-crystal-design-system-chip.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +0 -360
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +0 -412
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-drawer.mjs +0 -157
- package/fesm2015/mis-crystal-design-system-drawer.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-dropdown.mjs +0 -176
- package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-fab.mjs +0 -102
- package/fesm2015/mis-crystal-design-system-fab.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-input.mjs +0 -112
- package/fesm2015/mis-crystal-design-system-input.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-loader.mjs +0 -44
- package/fesm2015/mis-crystal-design-system-loader.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-menu.mjs +0 -120
- package/fesm2015/mis-crystal-design-system-menu.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-modal.mjs +0 -156
- package/fesm2015/mis-crystal-design-system-modal.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +0 -312
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -310
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-radio-button.mjs +0 -74
- package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs +0 -56
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-styles.mjs +0 -4
- package/fesm2015/mis-crystal-design-system-styles.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-switch.mjs +0 -68
- package/fesm2015/mis-crystal-design-system-switch.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-table.mjs +0 -421
- package/fesm2015/mis-crystal-design-system-table.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-toast.mjs +0 -182
- package/fesm2015/mis-crystal-design-system-toast.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-tooltip.mjs +0 -179
- package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-utils.mjs +0 -24
- package/fesm2015/mis-crystal-design-system-utils.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-widgets.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-action-list.mjs +0 -201
- package/fesm2020/mis-crystal-design-system-action-list.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-analytics.mjs +0 -85
- package/fesm2020/mis-crystal-design-system-analytics.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +0 -265
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-button.mjs +0 -134
- package/fesm2020/mis-crystal-design-system-button.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-checkbox.mjs +0 -112
- package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-chip.mjs +0 -61
- package/fesm2020/mis-crystal-design-system-chip.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +0 -361
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +0 -409
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-drawer.mjs +0 -156
- package/fesm2020/mis-crystal-design-system-drawer.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-dropdown.mjs +0 -175
- package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-fab.mjs +0 -107
- package/fesm2020/mis-crystal-design-system-fab.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-input.mjs +0 -106
- package/fesm2020/mis-crystal-design-system-input.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-loader.mjs +0 -44
- package/fesm2020/mis-crystal-design-system-loader.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-menu.mjs +0 -119
- package/fesm2020/mis-crystal-design-system-menu.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-modal.mjs +0 -156
- package/fesm2020/mis-crystal-design-system-modal.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +0 -325
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -341
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-radio-button.mjs +0 -74
- package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs +0 -56
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-styles.mjs +0 -4
- package/fesm2020/mis-crystal-design-system-styles.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-switch.mjs +0 -68
- package/fesm2020/mis-crystal-design-system-switch.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-table.mjs +0 -413
- package/fesm2020/mis-crystal-design-system-table.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-toast.mjs +0 -180
- package/fesm2020/mis-crystal-design-system-toast.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-tooltip.mjs +0 -177
- package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-utils.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-widgets.mjs +0 -128
- package/fesm2020/mis-crystal-design-system-widgets.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system.mjs +0 -24
- package/fesm2020/mis-crystal-design-system.mjs.map +0 -1
- /package/{esm2020/action-list/index.mjs → esm2015/action-list/index.js} +0 -0
- /package/{esm2020/action-list/mis-crystal-design-system-action-list.mjs → esm2015/action-list/mis-crystal-design-system-action-list.js} +0 -0
- /package/{esm2020/action-list/public_api.mjs → esm2015/action-list/public_api.js} +0 -0
- /package/{esm2020/analytics/index.mjs → esm2015/analytics/index.js} +0 -0
- /package/{esm2020/analytics/mis-crystal-design-system-analytics.mjs → esm2015/analytics/mis-crystal-design-system-analytics.js} +0 -0
- /package/{esm2020/analytics/public_api.mjs → esm2015/analytics/public_api.js} +0 -0
- /package/{esm2020/async-search-dropdown/index.mjs → esm2015/async-search-dropdown/index.js} +0 -0
- /package/{esm2020/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs → esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js} +0 -0
- /package/{esm2020/async-search-dropdown/public_api.mjs → esm2015/async-search-dropdown/public_api.js} +0 -0
- /package/{esm2020/button/index.mjs → esm2015/button/index.js} +0 -0
- /package/{esm2020/button/mis-crystal-design-system-button.mjs → esm2015/button/mis-crystal-design-system-button.js} +0 -0
- /package/{esm2020/button/public_api.mjs → esm2015/button/public_api.js} +0 -0
- /package/{esm2020/checkbox/index.mjs → esm2015/checkbox/index.js} +0 -0
- /package/{esm2020/checkbox/mis-crystal-design-system-checkbox.mjs → esm2015/checkbox/mis-crystal-design-system-checkbox.js} +0 -0
- /package/{esm2020/checkbox/public_api.mjs → esm2015/checkbox/public_api.js} +0 -0
- /package/{esm2020/chip/index.mjs → esm2015/chip/index.js} +0 -0
- /package/{esm2020/chip/mis-crystal-design-system-chip.mjs → esm2015/chip/mis-crystal-design-system-chip.js} +0 -0
- /package/{esm2020/chip/public_api.mjs → esm2015/chip/public_api.js} +0 -0
- /package/{esm2020/datepicker_v2/datepicker-constants.mjs → esm2015/datepicker_v2/datepicker-constants.js} +0 -0
- /package/{esm2020/datepicker_v2/index.mjs → esm2015/datepicker_v2/index.js} +0 -0
- /package/{esm2020/datepicker_v2/models/dp-config.model.mjs → esm2015/datepicker_v2/models/dp-config.model.js} +0 -0
- /package/{esm2020/datepicker_v2/utils/index.mjs → esm2015/datepicker_v2/utils/index.js} +0 -0
- /package/{esm2020/daterangepicker_v2/daterangepicker-constants.mjs → esm2015/daterangepicker_v2/daterangepicker-constants.js} +0 -0
- /package/{esm2020/daterangepicker_v2/index.mjs → esm2015/daterangepicker_v2/index.js} +0 -0
- /package/{esm2020/daterangepicker_v2/models/drp-config.model.mjs → esm2015/daterangepicker_v2/models/drp-config.model.js} +0 -0
- /package/{esm2020/daterangepicker_v2/utils/index.mjs → esm2015/daterangepicker_v2/utils/index.js} +0 -0
- /package/{esm2020/drawer/drawer-constants.mjs → esm2015/drawer/drawer-constants.js} +0 -0
- /package/{esm2020/drawer/drawer-ref.mjs → esm2015/drawer/drawer-ref.js} +0 -0
- /package/{esm2020/drawer/index.mjs → esm2015/drawer/index.js} +0 -0
- /package/{esm2020/drawer/public_api.mjs → esm2015/drawer/public_api.js} +0 -0
- /package/{esm2020/dropdown/index.mjs → esm2015/dropdown/index.js} +0 -0
- /package/{esm2020/dropdown/mis-crystal-design-system-dropdown.mjs → esm2015/dropdown/mis-crystal-design-system-dropdown.js} +0 -0
- /package/{esm2020/dropdown/public_api.mjs → esm2015/dropdown/public_api.js} +0 -0
- /package/{esm2020/fab/index.mjs → esm2015/fab/index.js} +0 -0
- /package/{esm2020/fab/mis-crystal-design-system-fab.mjs → esm2015/fab/mis-crystal-design-system-fab.js} +0 -0
- /package/{esm2020/fab/public_api.mjs → esm2015/fab/public_api.js} +0 -0
- /package/{esm2020/index.mjs → esm2015/index.js} +0 -0
- /package/{esm2020/input/index.mjs → esm2015/input/index.js} +0 -0
- /package/{esm2020/input/mis-crystal-design-system-input.mjs → esm2015/input/mis-crystal-design-system-input.js} +0 -0
- /package/{esm2020/input/public_api.mjs → esm2015/input/public_api.js} +0 -0
- /package/{esm2020/loader/index.mjs → esm2015/loader/index.js} +0 -0
- /package/{esm2020/loader/mis-crystal-design-system-loader.mjs → esm2015/loader/mis-crystal-design-system-loader.js} +0 -0
- /package/{esm2020/loader/public_api.mjs → esm2015/loader/public_api.js} +0 -0
- /package/{esm2020/menu/index.mjs → esm2015/menu/index.js} +0 -0
- /package/{esm2020/menu/mis-crystal-design-system-menu.mjs → esm2015/menu/mis-crystal-design-system-menu.js} +0 -0
- /package/{esm2020/menu/public_api.mjs → esm2015/menu/public_api.js} +0 -0
- /package/{esm2020/mis-crystal-design-system.mjs → esm2015/mis-crystal-design-system.js} +0 -0
- /package/{esm2020/modal/index.mjs → esm2015/modal/index.js} +0 -0
- /package/{esm2020/modal/modal-constants.mjs → esm2015/modal/modal-constants.js} +0 -0
- /package/{esm2020/modal/modal-ref.mjs → esm2015/modal/modal-ref.js} +0 -0
- /package/{esm2020/modal/public_api.mjs → esm2015/modal/public_api.js} +0 -0
- /package/{esm2020/multi-select-dropdown/index.mjs → esm2015/multi-select-dropdown/index.js} +0 -0
- /package/{esm2020/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs → esm2015/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.js} +0 -0
- /package/{esm2020/multi-select-dropdown/public_api.mjs → esm2015/multi-select-dropdown/public_api.js} +0 -0
- /package/{esm2020/nested-multi-select-dropdown/index.mjs → esm2015/nested-multi-select-dropdown/index.js} +0 -0
- /package/{esm2020/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs → esm2015/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.js} +0 -0
- /package/{esm2020/nested-multi-select-dropdown/public_api.mjs → esm2015/nested-multi-select-dropdown/public_api.js} +0 -0
- /package/{esm2020/public-api.mjs → esm2015/public-api.js} +0 -0
- /package/{esm2020/radio-button/index.mjs → esm2015/radio-button/index.js} +0 -0
- /package/{esm2020/radio-button/mis-crystal-design-system-radio-button.mjs → esm2015/radio-button/mis-crystal-design-system-radio-button.js} +0 -0
- /package/{esm2020/radio-button/public_api.mjs → esm2015/radio-button/public_api.js} +0 -0
- /package/{esm2020/ske-loader/index.mjs → esm2015/ske-loader/index.js} +0 -0
- /package/{esm2020/ske-loader/mis-crystal-design-system-ske-loader.mjs → esm2015/ske-loader/mis-crystal-design-system-ske-loader.js} +0 -0
- /package/{esm2020/ske-loader/public_api.mjs → esm2015/ske-loader/public_api.js} +0 -0
- /package/{esm2020/styles/index.mjs → esm2015/styles/index.js} +0 -0
- /package/{esm2020/styles/mis-crystal-design-system-styles.mjs → esm2015/styles/mis-crystal-design-system-styles.js} +0 -0
- /package/{esm2020/styles/public_api.mjs → esm2015/styles/public_api.js} +0 -0
- /package/{esm2020/switch/index.mjs → esm2015/switch/index.js} +0 -0
- /package/{esm2020/switch/mis-crystal-design-system-switch.mjs → esm2015/switch/mis-crystal-design-system-switch.js} +0 -0
- /package/{esm2020/switch/public_api.mjs → esm2015/switch/public_api.js} +0 -0
- /package/{esm2020/table/index.mjs → esm2015/table/index.js} +0 -0
- /package/{esm2020/toast/index.mjs → esm2015/toast/index.js} +0 -0
- /package/{esm2020/toast/public_api.mjs → esm2015/toast/public_api.js} +0 -0
- /package/{esm2020/tooltip/index.mjs → esm2015/tooltip/index.js} +0 -0
- /package/{esm2020/tooltip/mis-crystal-design-system-tooltip.mjs → esm2015/tooltip/mis-crystal-design-system-tooltip.js} +0 -0
- /package/{esm2020/tooltip/models/tooltip.model.mjs → esm2015/tooltip/models/tooltip.model.js} +0 -0
- /package/{esm2020/tooltip/public_api.mjs → esm2015/tooltip/public_api.js} +0 -0
- /package/{esm2020/utils/index.mjs → esm2015/utils/index.js} +0 -0
- /package/{esm2020/utils/mis-crystal-design-system-utils.mjs → esm2015/utils/mis-crystal-design-system-utils.js} +0 -0
- /package/{esm2020/widgets/classes/async-widget.mjs → esm2015/widgets/classes/async-widget.js} +0 -0
- /package/{esm2020/widgets/classes/sync-widget.mjs → esm2015/widgets/classes/sync-widget.js} +0 -0
- /package/{esm2020/widgets/index.mjs → esm2015/widgets/index.js} +0 -0
- /package/{esm2020/widgets/interfaces/widgets.model.mjs → esm2015/widgets/interfaces/widgets.model.js} +0 -0
- /package/{esm2020/widgets/mis-crystal-design-system-widgets.mjs → esm2015/widgets/mis-crystal-design-system-widgets.js} +0 -0
- /package/{esm2020/widgets/public_api.mjs → esm2015/widgets/public_api.js} +0 -0
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Directive, HostListener, Input } from "@angular/core";
|
|
2
|
-
import { OverlayConfig } from "@angular/cdk/overlay";
|
|
3
|
-
import { take } from "rxjs/operators";
|
|
4
|
-
import { ComponentPortal } from "@angular/cdk/portal";
|
|
5
|
-
import { ToolTipComponent } from "./tooltip-container/tooltip.component";
|
|
6
|
-
import { genPositionPairs } from "mis-crystal-design-system/utils";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/cdk/overlay";
|
|
9
|
-
export class ToolTipDirective {
|
|
10
|
-
constructor(element, overlay, viewContainerRef) {
|
|
11
|
-
this.element = element;
|
|
12
|
-
this.overlay = overlay;
|
|
13
|
-
this.viewContainerRef = viewContainerRef;
|
|
14
|
-
this.isToolTipDisplayed = false;
|
|
15
|
-
this.toolTipText = "";
|
|
16
|
-
this.toolTipPosition = "bottom";
|
|
17
|
-
this.showOnHover = true;
|
|
18
|
-
}
|
|
19
|
-
set showToolTip(value) {
|
|
20
|
-
this.isToolTipDisplayed = value;
|
|
21
|
-
if (value)
|
|
22
|
-
this.displayToolTip();
|
|
23
|
-
else
|
|
24
|
-
this.hideToolTip();
|
|
25
|
-
}
|
|
26
|
-
set text(value) {
|
|
27
|
-
this.toolTipText = value;
|
|
28
|
-
}
|
|
29
|
-
set position(value) {
|
|
30
|
-
this.toolTipPosition = value;
|
|
31
|
-
}
|
|
32
|
-
onMouseEnter() {
|
|
33
|
-
if (this.showOnHover)
|
|
34
|
-
this.displayToolTip();
|
|
35
|
-
}
|
|
36
|
-
onMouseLeave() {
|
|
37
|
-
if (this.showOnHover)
|
|
38
|
-
this.hideToolTip();
|
|
39
|
-
}
|
|
40
|
-
ngOnInit() { }
|
|
41
|
-
ngAfterViewInit() {
|
|
42
|
-
if (this.isToolTipDisplayed)
|
|
43
|
-
this.displayToolTip();
|
|
44
|
-
else
|
|
45
|
-
this.hideToolTip();
|
|
46
|
-
}
|
|
47
|
-
displayToolTip() {
|
|
48
|
-
const positionStrategy = this.overlay
|
|
49
|
-
.position()
|
|
50
|
-
.flexibleConnectedTo(this.element)
|
|
51
|
-
.withPositions(genPositionPairs({
|
|
52
|
-
positionX: "center",
|
|
53
|
-
positionY: this.toolTipPosition === "top" ? "top" : "center",
|
|
54
|
-
offsetX: this.positionTooltip("OFFSET_X"),
|
|
55
|
-
offsetY: this.positionTooltip("OFFSET_Y")
|
|
56
|
-
}, false))
|
|
57
|
-
.withPush(true);
|
|
58
|
-
const config = new OverlayConfig({
|
|
59
|
-
hasBackdrop: false,
|
|
60
|
-
positionStrategy,
|
|
61
|
-
scrollStrategy: this.overlay.scrollStrategies.reposition()
|
|
62
|
-
});
|
|
63
|
-
this.overlayRef = this.overlay.create(config);
|
|
64
|
-
const tempRef = new ComponentPortal(ToolTipComponent, this.viewContainerRef);
|
|
65
|
-
const tooltipRef = this.overlayRef.attach(tempRef);
|
|
66
|
-
tooltipRef.instance.toolTipText = this.toolTipText;
|
|
67
|
-
tooltipRef.instance.toolTipPosition = this.toolTipPosition;
|
|
68
|
-
this.overlayRef
|
|
69
|
-
.backdropClick()
|
|
70
|
-
.pipe(take(1))
|
|
71
|
-
.subscribe(() => {
|
|
72
|
-
this.hideToolTip();
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
positionTooltip(type) {
|
|
76
|
-
if (type === "OFFSET_X") {
|
|
77
|
-
return this.toolTipPosition === "right"
|
|
78
|
-
? this.element.nativeElement.offsetWidth / 2 + 8
|
|
79
|
-
: this.toolTipPosition === "left"
|
|
80
|
-
? (this.element.nativeElement.offsetWidth / 2 + 8) * -1
|
|
81
|
-
: this.toolTipPosition === "top" || this.toolTipPosition === "bottom"
|
|
82
|
-
? 0
|
|
83
|
-
: 8;
|
|
84
|
-
}
|
|
85
|
-
if (type !== "OFFSET_Y")
|
|
86
|
-
return;
|
|
87
|
-
return this.toolTipPosition === "right" || this.toolTipPosition === "left"
|
|
88
|
-
? -18
|
|
89
|
-
: this.toolTipPosition === "top"
|
|
90
|
-
? -44
|
|
91
|
-
: this.toolTipPosition === "bottom"
|
|
92
|
-
? this.element.nativeElement.offsetHeight / 2 + 8
|
|
93
|
-
: 8;
|
|
94
|
-
}
|
|
95
|
-
hideToolTip() {
|
|
96
|
-
this.overlayRef?.detach();
|
|
97
|
-
this.overlayRef?.dispose();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
ToolTipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToolTipDirective, deps: [{ token: i0.ElementRef }, { token: i1.Overlay }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
101
|
-
ToolTipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ToolTipDirective, selector: "[misToolTip]", inputs: { showOnHover: "showOnHover", showToolTip: "showToolTip", text: "text", position: "position" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 });
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToolTipDirective, decorators: [{
|
|
103
|
-
type: Directive,
|
|
104
|
-
args: [{
|
|
105
|
-
selector: "[misToolTip]"
|
|
106
|
-
}]
|
|
107
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }]; }, propDecorators: { showOnHover: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}], showToolTip: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], text: [{
|
|
112
|
-
type: Input
|
|
113
|
-
}], position: [{
|
|
114
|
-
type: Input
|
|
115
|
-
}], onMouseEnter: [{
|
|
116
|
-
type: HostListener,
|
|
117
|
-
args: ["mouseenter"]
|
|
118
|
-
}], onMouseLeave: [{
|
|
119
|
-
type: HostListener,
|
|
120
|
-
args: ["mouseleave"]
|
|
121
|
-
}] } });
|
|
122
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9taXMtY29tcG9uZW50cy90b29sdGlwL3Rvb2x0aXAuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsU0FBUyxFQUFjLFlBQVksRUFBRSxLQUFLLEVBQTRCLE1BQU0sZUFBZSxDQUFDO0FBQ3BILE9BQU8sRUFBVyxhQUFhLEVBQWMsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQ3pFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDOzs7QUFNbkUsTUFBTSxPQUFPLGdCQUFnQjtJQTBCM0IsWUFBb0IsT0FBbUIsRUFBVSxPQUFnQixFQUFVLGdCQUFrQztRQUF6RixZQU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Ub29sVGlwKCkge1xuICAgIHRoaXMub3ZlcmxheVJlZj8uZGV0YWNoKCk7XG4gICAgdGhpcy5vdmVybGF5UmVmPy5kaXNwb3NlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import { OverlayModule } from "@angular/cdk/overlay";
|
|
4
|
-
import { ToolTipDirective } from "./tooltip.directive";
|
|
5
|
-
import { ToolTipComponent } from "./tooltip-container/tooltip.component";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class ToolTipModule {
|
|
8
|
-
static forRoot() {
|
|
9
|
-
return { ngModule: ToolTipModule, providers: [] };
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
ToolTipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToolTipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
-
ToolTipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: ToolTipModule, declarations: [ToolTipDirective, ToolTipComponent], imports: [CommonModule, OverlayModule], exports: [ToolTipDirective, ToolTipComponent] });
|
|
14
|
-
ToolTipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToolTipModule, imports: [CommonModule, OverlayModule] });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ToolTipModule, decorators: [{
|
|
16
|
-
type: NgModule,
|
|
17
|
-
args: [{
|
|
18
|
-
declarations: [ToolTipDirective, ToolTipComponent],
|
|
19
|
-
imports: [CommonModule, OverlayModule],
|
|
20
|
-
exports: [ToolTipDirective, ToolTipComponent]
|
|
21
|
-
}]
|
|
22
|
-
}] });
|
|
23
|
-
//# sourceMappingUR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O2lCQUNoRCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlLCBNb2R1bGVXaXRoUHJvdmlkZXJzIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gXCJAYW5ndWxhci9jb21tb25cIjtcbmltcG9ydCB7IE92ZXJsYXlNb2R1bGUgfSBmcm9tIFwiQGFuZ3VsYXIvY2RrL292ZXJsYXlcIjtcbmltcG9ydCB7IFRvb2xUaXBEaXJlY3RpdmUgfSBmcm9tIFwiLi90b29sdGlwLmRpcmVjdGl2ZVwiO1xuaW1wb3J0IHsgVG9vbFRpcENvbXBvbmVudCB9IGZyb20gXCIuL3Rvb2x0aXAtY29udGFpbmVyL3Rvb2x0aXAuY29tcG9uZW50XCI7XG5cbkBOZ01vZHVsZSh7XG4gICAgZGVjbGFyYXRpb25zOiBbVG9vbFRpcERpcmVjdGl2ZSwgVG9vbFRpcENvbXBvbmVudF0sXG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgT3ZlcmxheU1vZHVsZV0sXG4gICAgZXhwb3J0czogW1Rvb2xUaXBEaXJlY3RpdmUsIFRvb2xUaXBDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIFRvb2xUaXBNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPFRvb2xUaXBNb2R1bGU+IHtcbiAgICByZXR1cm4geyBuZ01vZHVsZTogVG9vbFRpcE1vZHVsZSwgcHJvdmlkZXJzOiBbXSB9O1xuICB9XG59XG4iXX0=
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseWidget } from "./base-widget";
|
|
2
|
-
export class WidgetGroup extends BaseWidget {
|
|
3
|
-
constructor(widgets) {
|
|
4
|
-
super();
|
|
5
|
-
this.items = new Map();
|
|
6
|
-
Object.keys(widgets).forEach(key => {
|
|
7
|
-
this.addWidget(key, widgets[key]);
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
get value() {
|
|
11
|
-
const keys = Array.from(this.items.keys());
|
|
12
|
-
return keys.reduce((acc, key) => {
|
|
13
|
-
return { ...acc, [key]: this.get(key).value };
|
|
14
|
-
}, {});
|
|
15
|
-
}
|
|
16
|
-
get widgets() {
|
|
17
|
-
return Array.from(this.items.values());
|
|
18
|
-
}
|
|
19
|
-
addWidget(key, widget) {
|
|
20
|
-
this.items.set(key, widget);
|
|
21
|
-
}
|
|
22
|
-
get(key) {
|
|
23
|
-
return this.items.get(key);
|
|
24
|
-
}
|
|
25
|
-
removeWidget(key) {
|
|
26
|
-
this.items.delete(key);
|
|
27
|
-
}
|
|
28
|
-
reset() {
|
|
29
|
-
this.widgets.forEach(widget => widget.reset());
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWlzLWNvbXBvbmVudHMvd2lkZ2V0cy9jbGFzc2VzL3dpZGdldC1ncm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSzNDLE1BQU0sT0FBTyxXQUFZLFNBQVEsVUFBZTtJQUc5QyxZQUFZLE9BQWtCO1FBQzVCLEtBQUssRUFBRSxDQUFDO1FBSEYsVUFBSyxHQUFHLElBQUksR0FBRyxFQUFrRCxDQUFDO1FBSXhFLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1lBQ2pDLElBQUksQ0FBQyxTQUFTLENBQUMsR0FBRyxFQUFFLE9BQU8sQ0FBQyxHQUFHLENB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gfVxuXG4gIGFkZFdpZGdldChrZXk6IHN0cmluZywgd2lkZ2V0OiBTeW5jV2lkZ2V0IHwgQXN5bmNXaWRnZXQpOiB2b2lkIHtcbiAgICB0aGlzLml0ZW1zLnNldChrZXksIHdpZGdldCk7XG4gIH1cblxuICBnZXQoa2V5OiBzdHJpbmcpOiBTeW5jV2lkZ2V0IHwgQXN5bmNXaWRnZXQgfCBXaWRnZXRHcm91cCB7XG4gICAgcmV0dXJuIHRoaXMuaXRlbXMuZ2V0KGtleSk7XG4gIH1cblxuICByZW1vdmVXaWRnZXQoa2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICB0aGlzLml0ZW1zLmRlbGV0ZShrZXkpO1xuICB9XG5cbiAgcmVzZXQoKTogdm9pZCB7XG4gICAgdGhpcy53aWRnZXRzLmZvckVhY2god2lkZ2V0ID0+IHdpZGdldC5yZXNldCgpKTtcbiAgfVxufVxuIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Injectable } from "@angular/core";
|
|
2
|
-
import { Subject } from "rxjs";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class WidgetService {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.refresh$ = new Subject();
|
|
7
|
-
this.refresh = this.refresh$.asObservable();
|
|
8
|
-
}
|
|
9
|
-
refreshWidgets(types) {
|
|
10
|
-
setTimeout(() => this.refresh$.next(types), 10);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
WidgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14
|
-
WidgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WidgetService });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WidgetService, decorators: [{
|
|
16
|
-
type: Injectable
|
|
17
|
-
}], ctorParameters: function () { return []; } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9taXMtY29tcG9uZW50cy93aWRnZXRzL3NlcnZpY2VzL3dpZGdldC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFpQixPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBRTlDLE1BQU0sT0FBTyxhQUFhO0lBSXhCO1FBSFEsYUFBUSxHQUFHLElBQUksT0FBTyxFQUF3QixDQUFDO1FBQ3ZELFlBQU8sR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLFlBQVksRUFBRSxDQUFDO0lBRXhCLENBQUM7SUFFaEIsY0FBYyxDQUFDLEtBQWdCO1FBQzdCLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUNsRCxDQUFDOzsyR0FSVSxhQUFhOytHQUFiLGFBQWE7NEZBQWIsYUFBYTtrQkFEekIsVUFBVSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuaW1wb3J0IHsgUmVwbGF5U3ViamVjdCwgU3ViamVjdCB9IGZyb20gXCJyeGpzXCI7XG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgV2lkZ2V0U2VydmljZSB7XG4gIHByaXZhdGUgcmVmcmVzaCQgPSBuZXcgU3ViamVjdDxzdHJpbmdbXSB8IHVuZGVmaW5lZD4oKTtcbiAgcmVmcmVzaCA9IHRoaXMucmVmcmVzaCQuYXNPYnNlcnZhYmxlKCk7XG5cbiAgY29uc3RydWN0b3IoKSB7fVxuXG4gIHJlZnJlc2hXaWRnZXRzKHR5cGVzPzogc3RyaW5nW10pOiB2b2lkIHtcbiAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMucmVmcmVzaCQubmV4dCh0eXBlcyksIDEwKTtcbiAgfVxufVxuIl19
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class WidgetsModule {
|
|
5
|
-
}
|
|
6
|
-
WidgetsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WidgetsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
WidgetsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: WidgetsModule, imports: [CommonModule] });
|
|
8
|
-
WidgetsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WidgetsModule, imports: [CommonModule] });
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WidgetsModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [],
|
|
13
|
-
imports: [CommonModule],
|
|
14
|
-
providers: []
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9taXMtY29tcG9uZW50cy93aWRnZXRzL3dpZGdldHMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQVEvQyxNQUFNLE9BQU8sYUFBYTs7MkdBQWIsYUFBYTs0R0FBYixhQUFhLFlBSGQsWUFBWTs0R0FHWCxhQUFhLFlBSGQsWUFBWTs0RkFHWCxhQUFhO2tCQUx6QixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRSxFQUFFO29CQUNoQixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLFNBQVMsRUFBRSxFQUFFO2lCQUNkIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSBcIkBhbmd1bGFyL2NvbW1vblwiO1xuaW1wb3J0IHsgV2lkZ2V0U2VydmljZSB9IGZyb20gXCIuL3NlcnZpY2VzL3dpZGdldC5zZXJ2aWNlXCI7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW10sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBwcm92aWRlcnM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIFdpZGdldHNNb2R1bGUge31cbiJdfQ==
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@angular/cdk/overlay';
|
|
2
|
-
import { ConnectionPositionPair, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
3
|
-
import { TemplatePortal } from '@angular/cdk/portal';
|
|
4
|
-
import * as i0 from '@angular/core';
|
|
5
|
-
import { EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
6
|
-
import * as i2 from '@angular/common';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import * as i3 from 'mis-crystal-design-system/checkbox';
|
|
9
|
-
import { CheckboxModule } from 'mis-crystal-design-system/checkbox';
|
|
10
|
-
import { FormsModule } from '@angular/forms';
|
|
11
|
-
|
|
12
|
-
class ActionListComponent {
|
|
13
|
-
constructor(eRef, overlay, viewContainerRef) {
|
|
14
|
-
this.eRef = eRef;
|
|
15
|
-
this.overlay = overlay;
|
|
16
|
-
this.viewContainerRef = viewContainerRef;
|
|
17
|
-
this.isOpen = false;
|
|
18
|
-
this.subItems = [];
|
|
19
|
-
this.data = [];
|
|
20
|
-
this.height = "";
|
|
21
|
-
this.width = "";
|
|
22
|
-
this.label = "Select";
|
|
23
|
-
this.dropdownListHeight = "";
|
|
24
|
-
this.dropdownListWidth = "";
|
|
25
|
-
this.dropdownListPosition = "Left";
|
|
26
|
-
this.searchEnabled = true;
|
|
27
|
-
this.noDataMessage = "No Data";
|
|
28
|
-
this.selectedItems = [];
|
|
29
|
-
this.onChange = new EventEmitter();
|
|
30
|
-
}
|
|
31
|
-
ngOnInit() {
|
|
32
|
-
var _a;
|
|
33
|
-
this.selectedItems = [];
|
|
34
|
-
this.data.forEach(q => q.children.forEach(w => {
|
|
35
|
-
if (w.checked)
|
|
36
|
-
this.selectedItems.push(w);
|
|
37
|
-
}));
|
|
38
|
-
this.label = ((_a = this.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.label) || this.label;
|
|
39
|
-
}
|
|
40
|
-
filterByValue(array, string) {
|
|
41
|
-
return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase()));
|
|
42
|
-
}
|
|
43
|
-
toggleDropdown() {
|
|
44
|
-
this.isOpen = !this.isOpen;
|
|
45
|
-
if (this.isOpen)
|
|
46
|
-
this.openDropdown(this.popupContainer, this.selectElement.nativeElement, false);
|
|
47
|
-
else
|
|
48
|
-
this.onCancel();
|
|
49
|
-
}
|
|
50
|
-
openDropdown(template, origin, openRight) {
|
|
51
|
-
const positionsBottom = [
|
|
52
|
-
new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, 0, 4),
|
|
53
|
-
new ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }, 0, 4)
|
|
54
|
-
];
|
|
55
|
-
const positionsTop = [
|
|
56
|
-
new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" }, 0, -4),
|
|
57
|
-
new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }, 0, -4)
|
|
58
|
-
];
|
|
59
|
-
const positions = [
|
|
60
|
-
...(this.dropdownListPosition === "Right" ? positionsBottom.reverse() : positionsBottom),
|
|
61
|
-
...(this.dropdownListPosition === "Right" ? positionsTop.reverse() : positionsTop)
|
|
62
|
-
];
|
|
63
|
-
const positionStrategy = this.overlay
|
|
64
|
-
.position()
|
|
65
|
-
.flexibleConnectedTo(origin)
|
|
66
|
-
.withPositions(openRight ? [new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "start", overlayY: "top" }, 8)] : positions)
|
|
67
|
-
.withPush(true);
|
|
68
|
-
const configs = new OverlayConfig({
|
|
69
|
-
hasBackdrop: !openRight,
|
|
70
|
-
backdropClass: "cdk-overlay-transparent-backdrop",
|
|
71
|
-
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
72
|
-
positionStrategy,
|
|
73
|
-
width: origin.clientWidth || 140
|
|
74
|
-
});
|
|
75
|
-
if (openRight) {
|
|
76
|
-
this.subOverlayRef = this.overlay.create(configs);
|
|
77
|
-
if (this.dropdownListWidth)
|
|
78
|
-
this.subOverlayRef.updateSize({ width: this.dropdownListWidth });
|
|
79
|
-
if (this.dropdownListHeight)
|
|
80
|
-
this.subOverlayRef.updateSize({ height: this.dropdownListHeight });
|
|
81
|
-
this.subOverlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
|
|
82
|
-
this.subOverlayRef.backdropClick().subscribe(() => {
|
|
83
|
-
this.onCancel();
|
|
84
|
-
});
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
this.overlayRef = this.overlay.create(configs);
|
|
88
|
-
if (this.dropdownListWidth)
|
|
89
|
-
this.overlayRef.updateSize({ width: this.dropdownListWidth });
|
|
90
|
-
if (this.dropdownListHeight)
|
|
91
|
-
this.overlayRef.updateSize({ height: this.dropdownListHeight });
|
|
92
|
-
this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
|
|
93
|
-
this.overlayRef.backdropClick().subscribe(() => {
|
|
94
|
-
this.onCancel();
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
selectItem(item) {
|
|
98
|
-
var _a, _b;
|
|
99
|
-
if (this.data.some(q => q.children.some(w => w.value === item.value && w.checked))) {
|
|
100
|
-
if (item.type === "MULTIPLE")
|
|
101
|
-
this.selectedItems = this.selectedItems.filter(q => q.value !== item.value);
|
|
102
|
-
this.data = this.data.map(q => {
|
|
103
|
-
var _a;
|
|
104
|
-
return (Object.assign(Object.assign({}, q), { children: (_a = q === null || q === void 0 ? void 0 : q.children) === null || _a === void 0 ? void 0 : _a.map(e => (Object.assign(Object.assign({}, e), { checked: e.checked && e.value !== item.value }))) }));
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
this.data = this.data.map(q => {
|
|
109
|
-
var _a;
|
|
110
|
-
return (Object.assign(Object.assign({}, q), { children: (_a = q === null || q === void 0 ? void 0 : q.children) === null || _a === void 0 ? void 0 : _a.map(e => (Object.assign(Object.assign({}, e), { checked: (e.type === "MULTIPLE" && (e.checked || e.value === item.value)) || (e.type === "SINGLE" && e.value === item.value) }))) }));
|
|
111
|
-
});
|
|
112
|
-
if (item.type === "MULTIPLE")
|
|
113
|
-
this.selectedItems.push(Object.assign(Object.assign({}, item), { checked: true }));
|
|
114
|
-
}
|
|
115
|
-
this.label =
|
|
116
|
-
item.type === "MULTIPLE" ? (this.selectedItems.length > 0 ? (_a = this.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.label : "Select") : item.checked ? "Select" : item.label;
|
|
117
|
-
this.subItems = ((_b = this.data.find(q => { var _a; return (_a = q.children) === null || _a === void 0 ? void 0 : _a.some(w => w.value === item.value); })) === null || _b === void 0 ? void 0 : _b.children) || [];
|
|
118
|
-
this.onChange.emit(this.data);
|
|
119
|
-
if (item.type === "SINGLE")
|
|
120
|
-
this.toggleDropdown();
|
|
121
|
-
}
|
|
122
|
-
onHover(item, isHovered, element) {
|
|
123
|
-
var _a, _b, _c;
|
|
124
|
-
if (isHovered) {
|
|
125
|
-
this.subItems.length > 0 && ((_a = this.subOverlayRef) === null || _a === void 0 ? void 0 : _a.detach());
|
|
126
|
-
this.subItems = ((_b = this.data.find(q => { var _a; return (_a = q === null || q === void 0 ? void 0 : q.children) === null || _a === void 0 ? void 0 : _a.some(w => (w === null || w === void 0 ? void 0 : w.parentValue) === (item === null || item === void 0 ? void 0 : item.value)); })) === null || _b === void 0 ? void 0 : _b.children) || [];
|
|
127
|
-
this.subItems.length > 0 && this.openDropdown(this.subPopupContainer, (element === null || element === void 0 ? void 0 : element.nativeElement) || element, true);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
this.subItems = [];
|
|
131
|
-
(_c = this.subOverlayRef) === null || _c === void 0 ? void 0 : _c.detach();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
onCancel() {
|
|
135
|
-
var _a, _b;
|
|
136
|
-
this.isOpen = false;
|
|
137
|
-
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
|
|
138
|
-
(_b = this.subOverlayRef) === null || _b === void 0 ? void 0 : _b.detach();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
ActionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionListComponent, deps: [{ token: i0.ElementRef }, { token: i1.Overlay }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
-
ActionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ActionListComponent, selector: "mis-action-list", inputs: { data: "data", height: "height", width: "width", label: "label", dropdownListHeight: "dropdownListHeight", dropdownListWidth: "dropdownListWidth", dropdownListPosition: "dropdownListPosition", searchEnabled: "searchEnabled", noDataMessage: "noDataMessage" }, outputs: { onChange: "onChange" }, viewQueries: [{ propertyName: "selectElement", first: true, predicate: ["select"], descendants: true }, { propertyName: "popupContainer", first: true, predicate: ["popupContainer"], descendants: true }, { propertyName: "subPopupContainer", first: true, predicate: ["subPopupContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"main-container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">\n {{ label }}\n </p>\n <p *ngIf=\"selectedItems?.length > 1\" class=\"count\">+{{ selectedItems?.length - 1 }}</p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n #singleItem\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item?.disabled }\"\n (mouseenter)=\"onHover(item, true, singleItem)\"\n *ngFor=\"let item of data\"\n >\n <div class=\"label\" [ngStyle]=\"{ width: item?.icon ? '90%' : '100%' }\">\n <span>{{ item?.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item?.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #subPopupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled }\"\n (click)=\"!item.disabled && selectItem(item)\"\n *ngFor=\"let item of subItems\"\n >\n <div class=\"checkbox-container\" *ngIf=\"item.type === 'MULTIPLE'\">\n <mis-checkbox [disabled]=\"item.disabled\" [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <div class=\"label\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%' }\">\n <span>{{ item.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon || item.checked\">\n <img *ngIf=\"!item.checked\" class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n <ng-container *ngIf=\"item.type === 'SINGLE' && item.checked\">\n <ng-container *ngTemplateOutlet=\"tickIcon\"></ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n<ng-template #tickIcon>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.47697 14.8237L3.49922 10.5519C3.2776 10.3169 3.2776 9.93437 3.49922 9.69684L4.30273 8.84298C4.52434 8.60795 4.88462 8.60795 5.10623 8.84298L7.87929 11.8334L14.0607 5.17627C14.2823 4.94124 14.6426 4.94124 14.8642 5.17627L15.6677 6.03138C15.8894 6.26641 15.8894 6.65021 15.6677 6.88399L8.28048 14.8237C8.05886 15.0588 7.69859 15.0588 7.47697 14.8237Z\"\n fill=\"#181F33\"\n />\n </svg>\n</ng-template>\n", styles: [".main-container{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container .dropdown{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;padding:4px 12px}.main-container .dropdown:hover,.main-container .dropdown:focus-visible{background-color:#f5f7fc;outline:none}.main-container .dropdown .label{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .text{margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .count{width:24px;height:24px;background-color:#e0e0e0;border-radius:50%;padding:2px 4px;margin:0 0 0 8px;font-style:normal;font-weight:400;box-sizing:border-box;font-size:14px;line-height:20px;text-align:center;letter-spacing:.2px;color:#181f33}.main-container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.popup-container{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.popup-container::-webkit-scrollbar{width:0;height:0}.popup-container .search-container{position:relative;box-sizing:border-box;padding:8px}.popup-container .search-container .search-icon{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container .search-container .search-input{height:40px;width:100%;padding:12px;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:8px;outline:none;caret-color:#0937b2;font-style:normal;font-weight:400;font-size:12px;line-height:18px;display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container .search-container .cancel-icon{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container .items{padding:8px 0 8px 8px;overflow-y:scroll}.popup-container .items::-webkit-scrollbar{width:5px;height:0}.popup-container .items::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container .items .noData{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container .items .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container .items .item:hover,.popup-container .items .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .item .label{width:100%;line-height:20px;font-size:16px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container .items .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .item .icon-container .icon{width:20px;height:20px}.popup-container .items .item-disabled{cursor:not-allowed}.popup-container .items .item-disabled:hover,.popup-container .items .item-disabled:focus-visible{background-color:transparent;outline:none}.popup-container .items .item-disabled .label{color:#929dab;-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.CheckboxComponent, selector: "mis-checkbox", inputs: ["type", "indeterminate", "checked", "disabled", "name", "formControl"], outputs: ["valueChange"] }] });
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionListComponent, decorators: [{
|
|
144
|
-
type: Component,
|
|
145
|
-
args: [{ selector: "mis-action-list", template: "<div\n class=\"main-container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">\n {{ label }}\n </p>\n <p *ngIf=\"selectedItems?.length > 1\" class=\"count\">+{{ selectedItems?.length - 1 }}</p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n #singleItem\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item?.disabled }\"\n (mouseenter)=\"onHover(item, true, singleItem)\"\n *ngFor=\"let item of data\"\n >\n <div class=\"label\" [ngStyle]=\"{ width: item?.icon ? '90%' : '100%' }\">\n <span>{{ item?.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item?.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #subPopupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled }\"\n (click)=\"!item.disabled && selectItem(item)\"\n *ngFor=\"let item of subItems\"\n >\n <div class=\"checkbox-container\" *ngIf=\"item.type === 'MULTIPLE'\">\n <mis-checkbox [disabled]=\"item.disabled\" [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <div class=\"label\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%' }\">\n <span>{{ item.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon || item.checked\">\n <img *ngIf=\"!item.checked\" class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n <ng-container *ngIf=\"item.type === 'SINGLE' && item.checked\">\n <ng-container *ngTemplateOutlet=\"tickIcon\"></ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n<ng-template #tickIcon>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.47697 14.8237L3.49922 10.5519C3.2776 10.3169 3.2776 9.93437 3.49922 9.69684L4.30273 8.84298C4.52434 8.60795 4.88462 8.60795 5.10623 8.84298L7.87929 11.8334L14.0607 5.17627C14.2823 4.94124 14.6426 4.94124 14.8642 5.17627L15.6677 6.03138C15.8894 6.26641 15.8894 6.65021 15.6677 6.88399L8.28048 14.8237C8.05886 15.0588 7.69859 15.0588 7.47697 14.8237Z\"\n fill=\"#181F33\"\n />\n </svg>\n</ng-template>\n", styles: [".main-container{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;height:32px;width:256px;font-family:Lato,sans-serif!important}.main-container .dropdown{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;padding:4px 12px}.main-container .dropdown:hover,.main-container .dropdown:focus-visible{background-color:#f5f7fc;outline:none}.main-container .dropdown .label{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;width:calc(100% - 32px);font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .text{margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .count{width:24px;height:24px;background-color:#e0e0e0;border-radius:50%;padding:2px 4px;margin:0 0 0 8px;font-style:normal;font-weight:400;box-sizing:border-box;font-size:14px;line-height:20px;text-align:center;letter-spacing:.2px;color:#181f33}.main-container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.popup-container{width:100%;max-height:340px;padding-bottom:0;border:1px solid #e0e0e0;border-radius:8px;background-color:#fff;box-shadow:0 12px 24px #0000001f;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between}.popup-container::-webkit-scrollbar{width:0;height:0}.popup-container .search-container{position:relative;box-sizing:border-box;padding:8px}.popup-container .search-container .search-icon{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container .search-container .search-input{height:40px;width:100%;padding:12px;border:1px solid #e0e0e0;box-sizing:border-box;border-radius:8px;outline:none;caret-color:#0937b2;font-style:normal;font-weight:400;font-size:12px;line-height:18px;display:flex;align-items:center;letter-spacing:.2px;color:#181f33}.popup-container .search-container .cancel-icon{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container .items{padding:8px 0 8px 8px;overflow-y:scroll}.popup-container .items::-webkit-scrollbar{width:5px;height:0}.popup-container .items::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container .items .noData{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:16px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container .items .item{cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;height:auto;letter-spacing:.2px;color:#181f33}.popup-container .items .item:hover,.popup-container .items .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .item .label{width:100%;line-height:20px;font-size:16px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container .items .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .item .icon-container .icon{width:20px;height:20px}.popup-container .items .item-disabled{cursor:not-allowed}.popup-container .items .item-disabled:hover,.popup-container .items .item-disabled:focus-visible{background-color:transparent;outline:none}.popup-container .items .item-disabled .label{color:#929dab;-webkit-user-select:none;user-select:none}\n"] }]
|
|
146
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }]; }, propDecorators: { data: [{
|
|
147
|
-
type: Input
|
|
148
|
-
}], height: [{
|
|
149
|
-
type: Input
|
|
150
|
-
}], width: [{
|
|
151
|
-
type: Input
|
|
152
|
-
}], label: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], dropdownListHeight: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], dropdownListWidth: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], dropdownListPosition: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], searchEnabled: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], noDataMessage: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], onChange: [{
|
|
165
|
-
type: Output
|
|
166
|
-
}], selectElement: [{
|
|
167
|
-
type: ViewChild,
|
|
168
|
-
args: ["select", { static: false }]
|
|
169
|
-
}], popupContainer: [{
|
|
170
|
-
type: ViewChild,
|
|
171
|
-
args: ["popupContainer", { static: false }]
|
|
172
|
-
}], subPopupContainer: [{
|
|
173
|
-
type: ViewChild,
|
|
174
|
-
args: ["subPopupContainer", { static: false }]
|
|
175
|
-
}] } });
|
|
176
|
-
|
|
177
|
-
class ActionListModule {
|
|
178
|
-
static forRoot() {
|
|
179
|
-
return { ngModule: ActionListModule, providers: [] };
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
ActionListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
183
|
-
ActionListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: ActionListModule, declarations: [ActionListComponent], imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule], exports: [ActionListComponent] });
|
|
184
|
-
ActionListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionListModule, imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule] });
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ActionListModule, decorators: [{
|
|
186
|
-
type: NgModule,
|
|
187
|
-
args: [{
|
|
188
|
-
declarations: [ActionListComponent],
|
|
189
|
-
imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule],
|
|
190
|
-
exports: [ActionListComponent]
|
|
191
|
-
}]
|
|
192
|
-
}] });
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Generated bundle index. Do not edit.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
export { ActionListComponent, ActionListModule };
|
|
199
|
-
//# sourceMappingURL=mis-crystal-design-system-action-list.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-action-list.mjs","sources":["../../../projects/mis-components/action-list/action-list.component.ts","../../../projects/mis-components/action-list/action-list.component.html","../../../projects/mis-components/action-list/action-list.module.ts","../../../projects/mis-components/action-list/mis-crystal-design-system-action-list.ts"],"sourcesContent":["import { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { TemplatePortal } from \"@angular/cdk/portal\";\nimport { Component, ElementRef, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, ViewContainerRef } from \"@angular/core\";\n\n@Component({\n selector: \"mis-action-list\",\n templateUrl: \"./action-list.component.html\",\n styleUrls: [\"./action-list.component.scss\"]\n})\nexport class ActionListComponent implements OnInit {\n isOpen = false;\n\n subItems: ActionItem[] = [];\n\n @Input() data: ActionItems[] = [];\n @Input() height: string = \"\";\n @Input() width: string = \"\";\n @Input() label: string = \"Select\";\n\n @Input() dropdownListHeight: string = \"\";\n @Input() dropdownListWidth: string = \"\";\n @Input() dropdownListPosition: \"Left\" | \"Right\" = \"Left\";\n\n @Input() searchEnabled: boolean = true;\n @Input() noDataMessage: string = \"No Data\";\n selectedItems: ActionItem[] = [];\n\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @ViewChild(\"select\", { static: false }) selectElement: ElementRef;\n @ViewChild(\"popupContainer\", { static: false }) popupContainer: TemplateRef<Element>;\n @ViewChild(\"subPopupContainer\", { static: false }) subPopupContainer: TemplateRef<Element>;\n private overlayRef: OverlayRef;\n private subOverlayRef: OverlayRef;\n\n constructor(private eRef: ElementRef, private overlay: Overlay, private viewContainerRef: ViewContainerRef) {}\n ngOnInit() {\n this.selectedItems = [];\n this.data.forEach(q =>\n q.children.forEach(w => {\n if (w.checked) this.selectedItems.push(w);\n })\n );\n this.label = this.selectedItems[0]?.label || this.label;\n }\n\n filterByValue(array: ActionItem[], string: string) {\n return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase()));\n }\n toggleDropdown() {\n this.isOpen = !this.isOpen;\n if (this.isOpen) this.openDropdown(this.popupContainer, this.selectElement.nativeElement, false);\n else this.onCancel();\n }\n private openDropdown(template: TemplateRef<Element>, origin: HTMLElement, openRight: boolean): void {\n const positionsBottom = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"bottom\" }, { overlayX: \"start\", overlayY: \"top\" }, 0, 4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"bottom\" }, { overlayX: \"end\", overlayY: \"top\" }, 0, 4)\n ];\n const positionsTop = [\n new ConnectionPositionPair({ originX: \"start\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"bottom\" }, 0, -4),\n new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"end\", overlayY: \"bottom\" }, 0, -4)\n ];\n const positions = [\n ...(this.dropdownListPosition === \"Right\" ? positionsBottom.reverse() : positionsBottom),\n ...(this.dropdownListPosition === \"Right\" ? positionsTop.reverse() : positionsTop)\n ];\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(origin)\n .withPositions(\n openRight ? [new ConnectionPositionPair({ originX: \"end\", originY: \"top\" }, { overlayX: \"start\", overlayY: \"top\" }, 8)] : positions\n )\n .withPush(true);\n const configs = new OverlayConfig({\n hasBackdrop: !openRight,\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy,\n width: origin.clientWidth || 140\n });\n if (openRight) {\n this.subOverlayRef = this.overlay.create(configs);\n if (this.dropdownListWidth) this.subOverlayRef.updateSize({ width: this.dropdownListWidth });\n if (this.dropdownListHeight) this.subOverlayRef.updateSize({ height: this.dropdownListHeight });\n this.subOverlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.subOverlayRef.backdropClick().subscribe(() => {\n this.onCancel();\n });\n return;\n }\n this.overlayRef = this.overlay.create(configs);\n if (this.dropdownListWidth) this.overlayRef.updateSize({ width: this.dropdownListWidth });\n if (this.dropdownListHeight) this.overlayRef.updateSize({ height: this.dropdownListHeight });\n this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));\n this.overlayRef.backdropClick().subscribe(() => {\n this.onCancel();\n });\n }\n selectItem(item: ActionItem) {\n if (this.data.some(q => q.children.some(w => w.value === item.value && w.checked))) {\n if (item.type === \"MULTIPLE\") this.selectedItems = this.selectedItems.filter(q => q.value !== item.value);\n this.data = this.data.map(q => ({\n ...q,\n children: q?.children?.map(e => ({\n ...e,\n checked: e.checked && e.value !== item.value\n }))\n }));\n } else {\n this.data = this.data.map(q => ({\n ...q,\n children: q?.children?.map(e => ({\n ...e,\n checked: (e.type === \"MULTIPLE\" && (e.checked || e.value === item.value)) || (e.type === \"SINGLE\" && e.value === item.value)\n }))\n }));\n if (item.type === \"MULTIPLE\") this.selectedItems.push({ ...item, checked: true });\n }\n this.label =\n item.type === \"MULTIPLE\" ? (this.selectedItems.length > 0 ? this.selectedItems[0]?.label : \"Select\") : item.checked ? \"Select\" : item.label;\n this.subItems = this.data.find(q => q.children?.some(w => w.value === item.value))?.children || [];\n this.onChange.emit(this.data);\n if (item.type === \"SINGLE\") this.toggleDropdown();\n }\n onHover(item: ActionItem, isHovered, element?: any) {\n if (isHovered) {\n this.subItems.length > 0 && this.subOverlayRef?.detach();\n this.subItems = this.data.find(q => q?.children?.some(w => w?.parentValue === item?.value))?.children || [];\n this.subItems.length > 0 && this.openDropdown(this.subPopupContainer, element?.nativeElement || element, true);\n } else {\n this.subItems = [];\n this.subOverlayRef?.detach();\n }\n }\n onCancel() {\n this.isOpen = false;\n this.overlayRef?.detach();\n this.subOverlayRef?.detach();\n }\n}\n\nexport interface ActionItems {\n label: ActionItemLabel | string;\n value: string;\n icon?: string;\n disabled?: boolean;\n children?: ActionItem[];\n}\n\nexport interface ActionItemLabel {\n primaryText ?: string;\n secondaryText ?: string;\n}\n\nexport interface ActionItem {\n type: \"SINGLE\" | \"MULTIPLE\";\n label: string;\n value: string;\n parentValue: string;\n icon?: string;\n checked: boolean;\n disabled?: boolean;\n}\n","<div\n class=\"main-container\"\n [ngStyle]=\"{\n height: height.length > 0 ? height : '',\n width: width.length > 0 ? width : ''\n }\"\n>\n <div\n class=\"dropdown\"\n #select\n tabindex=\"0\"\n (keyup.enter)=\"toggleDropdown()\"\n (click)=\"toggleDropdown()\"\n [ngStyle]=\"{ background: isOpen ? '#E6EBF7' : '' }\"\n >\n <div class=\"label\">\n <p class=\"text\">\n {{ label }}\n </p>\n <p *ngIf=\"selectedItems?.length > 1\" class=\"count\">+{{ selectedItems?.length - 1 }}</p>\n </div>\n <svg\n class=\"handle\"\n [ngStyle]=\"{ transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)' }\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z\"\n fill=\"#181F33\"\n />\n </svg>\n </div>\n</div>\n\n<ng-template #popupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n #singleItem\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item?.disabled }\"\n (mouseenter)=\"onHover(item, true, singleItem)\"\n *ngFor=\"let item of data\"\n >\n <div class=\"label\" [ngStyle]=\"{ width: item?.icon ? '90%' : '100%' }\">\n <span>{{ item?.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item?.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #subPopupContainer>\n <div\n class=\"popup-container\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n >\n <div class=\"items\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled }\"\n (click)=\"!item.disabled && selectItem(item)\"\n *ngFor=\"let item of subItems\"\n >\n <div class=\"checkbox-container\" *ngIf=\"item.type === 'MULTIPLE'\">\n <mis-checkbox [disabled]=\"item.disabled\" [checked]=\"item.checked\"></mis-checkbox>\n </div>\n <div class=\"label\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%' }\">\n <span>{{ item.label }}</span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon || item.checked\">\n <img *ngIf=\"!item.checked\" class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n <ng-container *ngIf=\"item.type === 'SINGLE' && item.checked\">\n <ng-container *ngTemplateOutlet=\"tickIcon\"></ng-container>\n </ng-container>\n </div>\n </div>\n <div class=\"noData\" *ngIf=\"data.length === 0\">\n {{ noDataMessage || \"No results\" }}\n </div>\n </div>\n </div>\n</ng-template>\n<ng-template #tickIcon>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.47697 14.8237L3.49922 10.5519C3.2776 10.3169 3.2776 9.93437 3.49922 9.69684L4.30273 8.84298C4.52434 8.60795 4.88462 8.60795 5.10623 8.84298L7.87929 11.8334L14.0607 5.17627C14.2823 4.94124 14.6426 4.94124 14.8642 5.17627L15.6677 6.03138C15.8894 6.26641 15.8894 6.65021 15.6677 6.88399L8.28048 14.8237C8.05886 15.0588 7.69859 15.0588 7.47697 14.8237Z\"\n fill=\"#181F33\"\n />\n </svg>\n</ng-template>\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { ActionListComponent } from \"./action-list.component\";\nimport { CheckboxModule } from \"mis-crystal-design-system/checkbox\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\n\n@NgModule({\n declarations: [ActionListComponent],\n imports: [CommonModule, FormsModule, OverlayModule, CheckboxModule],\n exports: [ActionListComponent]\n})\nexport class ActionListModule {\n static forRoot(): ModuleWithProviders<ActionListModule> {\n return { ngModule: ActionListModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MASa,mBAAmB,CAAA;AA0B9B,IAAA,WAAA,CAAoB,IAAgB,EAAU,OAAgB,EAAU,gBAAkC,EAAA;AAAtF,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAAU,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;AAAU,QAAA,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;AAzB1G,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;AAEf,QAAA,IAAQ,CAAA,QAAA,GAAiB,EAAE,CAAC;AAEnB,QAAA,IAAI,CAAA,IAAA,GAAkB,EAAE,CAAC;AACzB,QAAA,IAAM,CAAA,MAAA,GAAW,EAAE,CAAC;AACpB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;AACnB,QAAA,IAAK,CAAA,KAAA,GAAW,QAAQ,CAAC;AAEzB,QAAA,IAAkB,CAAA,kBAAA,GAAW,EAAE,CAAC;AAChC,QAAA,IAAiB,CAAA,iBAAA,GAAW,EAAE,CAAC;AAC/B,QAAA,IAAoB,CAAA,oBAAA,GAAqB,MAAM,CAAC;AAEhD,QAAA,IAAa,CAAA,aAAA,GA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AE,MAAM,EAAE,KAAK,EAAE,CAAA;;;MEnBtC,gBAAgB,CAAA;AAC3B,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACtD;;8GAHU,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,YAAA,EAAA,CAJZ,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAA,EAAA,OAAA,EAAA,CACxD,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAElB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAHjB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;4FAGvD,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAC;oBACnE,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC/B,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-analytics.mjs","sources":["../../../projects/mis-components/analytics/analytics.service.ts","../../../projects/mis-components/analytics/analytics.module.ts","../../../projects/mis-components/analytics/mis-crystal-design-system-analytics.ts"],"sourcesContent":["import { DOCUMENT } from \"@angular/common\";\nimport { Inject, Injectable, Renderer2 } from \"@angular/core\";\ndeclare const gtag: Function;\n\n@Injectable({\n providedIn: \"root\"\n})\nexport class AnalyticsService {\n private scriptLoaded = false;\n private pendingEvents: Array<Array<string>> = [];\n\n constructor(@Inject(DOCUMENT) private document: any) {}\n\n insertScript(measurementId: string, renderer: Renderer2): void {\n const loadScript = renderer.createElement(\"script\");\n loadScript.setAttribute(\"async\", true);\n loadScript.setAttribute(\"src\", `https://www.googletagmanager.com/gtag/js?id=${measurementId}`);\n\n const initScript = renderer.createElement(\"script\");\n initScript.innerText = `window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag(\\'js\\', new Date());gtag(\\'config\\', \\'${measurementId}\\');`;\n renderer.appendChild(this.document.head, loadScript);\n renderer.appendChild(this.document.head, initScript);\n this.handlePendingEvents(loadScript);\n }\n\n private handlePendingEvents(script: HTMLScriptElement): void {\n script.addEventListener(\"load\", () => {\n this.scriptLoaded = true;\n for (const eventDetails of this.pendingEvents) {\n if (eventDetails[0] === \"event\") {\n this.send(eventDetails[1], eventDetails[2], eventDetails[3], eventDetails[4]);\n } else if (eventDetails[0] === \"set\") {\n this.setIdentity(eventDetails[1]);\n }\n }\n });\n }\n\n send(eventAction: string, event_category: string, event_label?: string, event_value?: string, force = false): void {\n if (!this.scriptLoaded && !force) {\n this.pendingEvents.push([\"event\", eventAction, event_category, event_label, event_value]);\n return;\n }\n gtag?.(\"event\", eventAction, {\n event_category,\n event_label,\n event_value\n });\n }\n\n setIdentity(identifier: string): void {\n if (!this.scriptLoaded) {\n this.pendingEvents.push([\"set\", identifier]);\n return;\n }\n gtag?.(\"set\", { user_id: identifier });\n }\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { AnalyticsService } from \"./analytics.service\";\n\n@NgModule()\nexport class AnalyticsModule {\n static forRoot(): ModuleWithProviders<AnalyticsModule> {\n return {\n ngModule: AnalyticsModule,\n providers: [AnalyticsService]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index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