mis-crystal-design-system 18.0.5 → 18.0.7-test
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 +1 -1
- package/analytics/analytics.service.d.ts +1 -1
- package/async-search-dropdown/async-dropdown.component.d.ts +3 -2
- package/button/button.component.d.ts +1 -1
- package/button/button.directive.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/chip/chip.component.d.ts +1 -1
- package/datepicker_v2/models/dp-config.model.d.ts +1 -1
- package/datepicker_v2/tz-datepicker.directive.d.ts +1 -1
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +1 -1
- package/daterangepicker_v2/models/drp-config.model.d.ts +1 -1
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +1 -1
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +1 -1
- package/drawer/drawer-body/drawer-body.component.d.ts +1 -1
- package/dropdown/calculate-container-height.directive.d.ts +1 -1
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/dropdown.module.d.ts +1 -1
- package/dynamic-form/dynamic-form.component.d.ts +1 -1
- package/esm2022/action-list/action-list.component.mjs +363 -0
- package/{esm2020 → esm2022}/action-list/action-list.module.mjs +5 -5
- package/{esm2020 → esm2022}/analytics/analytics.module.mjs +5 -5
- package/esm2022/analytics/analytics.service.mjs +64 -0
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +536 -0
- package/{esm2020 → esm2022}/async-search-dropdown/async-dropdown.module.mjs +5 -5
- package/esm2022/button/button.component.mjs +88 -0
- package/esm2022/button/button.directive.mjs +61 -0
- package/{esm2020 → esm2022}/button/button.module.mjs +5 -5
- package/esm2022/checkbox/checkbox.component.mjs +124 -0
- package/{esm2020 → esm2022}/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/chip/chip.component.mjs +82 -0
- package/{esm2020 → esm2022}/chip/chip.module.mjs +5 -5
- package/{esm2020 → esm2022}/datepicker_v2/datepicker.module.mjs +5 -5
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +183 -0
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +442 -0
- package/{esm2020/daterangepicker_v2 → esm2022/datepicker_v2}/utils/index.mjs +1 -1
- package/{esm2020 → esm2022}/daterangepicker_v2/daterangepicker.module.mjs +5 -5
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +165 -0
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +503 -0
- package/esm2022/daterangepicker_v2/utils/index.mjs +45 -0
- package/esm2022/drawer/drawer-body/drawer-body.component.mjs +59 -0
- package/{esm2020 → esm2022}/drawer/drawer-ref.mjs +4 -4
- package/{esm2020 → esm2022}/drawer/drawer.module.mjs +5 -5
- package/{esm2020 → esm2022}/drawer/drawer.service.mjs +5 -5
- package/esm2022/dropdown/calculate-container-height.directive.mjs +41 -0
- package/esm2022/dropdown/dropdown.component.mjs +464 -0
- package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +6 -6
- package/esm2022/dynamic-form/dynamic-form.component.mjs +1093 -0
- package/{esm2020 → esm2022}/dynamic-form/dynamic-form.module.mjs +13 -13
- package/esm2022/fab/fab.component.mjs +145 -0
- package/{esm2020 → esm2022}/fab/fab.module.mjs +5 -5
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +396 -0
- package/{esm2020 → esm2022}/filter/filters.module.mjs +17 -17
- package/esm2022/filter/has-value.pipe.mjs +31 -0
- package/{esm2020 → esm2022}/input/directives/input/input.directive.mjs +6 -6
- package/{fesm2020/mis-crystal-design-system-input.mjs → esm2022/input/mis-input.component.mjs} +49 -109
- package/{esm2020 → esm2022}/input/mis-input.module.mjs +5 -5
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +89 -0
- package/{esm2020 → esm2022}/input-stepper/input-stepper.module.mjs +5 -5
- package/esm2022/loader/loader.component.mjs +25 -0
- package/{esm2020 → esm2022}/loader/loader.module.mjs +5 -5
- package/esm2022/menu/menu-close.directive.mjs +25 -0
- package/{esm2020 → esm2022}/menu/menu.directive.mjs +7 -7
- package/{esm2020 → esm2022}/menu/menu.module.mjs +5 -5
- package/esm2022/mobile-filter/mobile-filter.component.mjs +180 -0
- package/{esm2020 → esm2022}/mobile-filter/mobile-filter.module.mjs +5 -5
- package/{esm2020 → esm2022}/modal/modal.module.mjs +5 -5
- package/esm2022/modal/modal.service.mjs +70 -0
- package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +56 -0
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +489 -0
- package/{esm2020 → esm2022}/multi-select-dropdown/multi-select-dropdown.module.mjs +5 -5
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +516 -0
- package/{esm2020 → esm2022}/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +5 -5
- package/esm2022/phone-input/phone-input.component.mjs +72 -0
- package/{esm2020 → esm2022}/phone-input/phone-input.module.mjs +5 -5
- package/esm2022/radio-button/radio-button.component.mjs +57 -0
- package/{esm2020 → esm2022}/radio-button/radio-button.module.mjs +5 -5
- package/esm2022/ske-loader/ske-loader.component.mjs +54 -0
- package/{esm2020 → esm2022}/ske-loader/ske-loader.module.mjs +5 -5
- package/esm2022/slider/slider.component.mjs +46 -0
- package/{esm2020 → esm2022}/slider/slider.module.mjs +7 -7
- package/esm2022/snackbar/snackbar/snackbar.component.mjs +72 -0
- package/{esm2020 → esm2022}/snackbar/snackbar.module.mjs +5 -5
- package/esm2022/snackbar/snackbar.service.mjs +47 -0
- package/{esm2020 → esm2022}/specificdatepicker/specificdatepicker.module.mjs +5 -5
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +646 -0
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +196 -0
- package/esm2022/specificdatepicker/utils/index.mjs +45 -0
- package/esm2022/star-rating/star-rating.component.mjs +113 -0
- package/{esm2020 → esm2022}/star-rating/star-rating.module.mjs +5 -5
- package/esm2022/switch/switch.component.mjs +56 -0
- package/{esm2020 → esm2022}/switch/switch.module.mjs +5 -5
- package/esm2022/table/custom-table-cell.directive.mjs +42 -0
- package/esm2022/table/filter/filter.component.mjs +177 -0
- package/esm2022/table/sub-table/sub-table.component.mjs +192 -0
- package/esm2022/table/table.component.mjs +486 -0
- package/{esm2020 → esm2022}/table/table.module.mjs +5 -5
- package/esm2022/timepicker/timepicker.component.mjs +374 -0
- package/esm2022/timepicker/timepicker.directive.mjs +69 -0
- package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +5 -5
- package/esm2022/timerangepicker/timerangepicker.component.mjs +237 -0
- package/{esm2020 → esm2022}/timerangepicker/timerangepicker.module.mjs +5 -5
- package/esm2022/toast/toast.component.mjs +51 -0
- package/{esm2020 → esm2022}/toast/toast.data.service.mjs +8 -8
- package/{esm2020 → esm2022}/toast/toast.module.mjs +5 -5
- package/esm2022/toast/toast.service.mjs +91 -0
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +79 -0
- package/esm2022/tooltip/tooltip.directive.mjs +143 -0
- package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +5 -5
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +188 -0
- package/{esm2020 → esm2022}/virtual-scroll/virtual-scroll.module.mjs +7 -7
- package/esm2022/widgets/classes/async-widget.mjs +23 -0
- package/{esm2020 → esm2022}/widgets/classes/base-widget.mjs +1 -1
- package/esm2022/widgets/classes/sync-widget.mjs +20 -0
- package/{esm2020 → esm2022}/widgets/services/widget.service.mjs +5 -5
- package/{esm2020 → esm2022}/widgets/widgets.module.mjs +5 -5
- package/fab/fab.component.d.ts +4 -4
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-action-list.mjs +106 -113
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-analytics.mjs +9 -9
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-analytics.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +561 -0
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-button.mjs +173 -0
- package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +150 -0
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-chip.mjs +108 -0
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-datepicker_v2.mjs +133 -140
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +737 -0
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-drawer.mjs +34 -33
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-dropdown.mjs +177 -186
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-dynamic-form.mjs +441 -456
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-fab.mjs +48 -47
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-filter.mjs +113 -120
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-input-stepper.mjs +35 -34
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +146 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-loader.mjs +51 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-loader.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-menu.mjs +16 -16
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-menu.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +205 -0
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-modal.mjs +34 -33
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-modal.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-multi-select-dropdown.mjs +107 -109
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-nested-multi-select-dropdown.mjs +128 -129
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-phone-input.mjs +22 -21
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +83 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +77 -0
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-slider.mjs +80 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-slider.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-snackbar.mjs +32 -32
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-specificdatepicker.mjs +204 -204
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-star-rating.mjs +29 -28
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-switch.mjs +82 -0
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-table.mjs +913 -0
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-timepicker.mjs +78 -74
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-timerangepicker.mjs +26 -25
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-toast.mjs +35 -34
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-toast.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-tooltip.mjs +47 -47
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-virtual-scroll.mjs +50 -52
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-widgets.mjs +4 -4
- package/{fesm2020 → fesm2022}/mis-crystal-design-system-widgets.mjs.map +1 -1
- package/filter/filter-panel/filter-panel.component.d.ts +1 -1
- package/input/directives/input/input.directive.d.ts +1 -1
- package/input/mis-input.component.d.ts +1 -1
- package/input-stepper/input-stepper/input-stepper.component.d.ts +1 -1
- package/loader/loader.component.d.ts +1 -1
- package/menu/menu-close.directive.d.ts +1 -1
- package/menu/menu.directive.d.ts +1 -1
- package/mobile-filter/mobile-filter.component.d.ts +1 -1
- package/modal/module-wrapper/module-wrapper.component.d.ts +1 -1
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +1 -1
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +1 -1
- package/package.json +125 -207
- package/phone-input/phone-input.component.d.ts +1 -1
- package/radio-button/radio-button.component.d.ts +1 -1
- package/ske-loader/ske-loader.component.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/snackbar/snackbar/snackbar.component.d.ts +1 -1
- package/specificdatepicker/models/sdp-config.model.d.ts +1 -1
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +1 -1
- package/specificdatepicker/tz-specificdatepicker.directive.d.ts +1 -1
- package/star-rating/star-rating.component.d.ts +1 -1
- package/switch/switch.component.d.ts +1 -1
- package/table/custom-table-cell.directive.d.ts +1 -1
- package/table/filter/filter.component.d.ts +1 -1
- package/table/sub-table/sub-table.component.d.ts +1 -1
- package/table/table.component.d.ts +1 -1
- package/timepicker/timepicker.component.d.ts +1 -1
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timerangepicker/timerange.namespace.d.ts +1 -1
- package/timerangepicker/timerangepicker.component.d.ts +1 -1
- package/toast/toast.component.d.ts +1 -1
- package/toast/toast.service.d.ts +1 -1
- package/tooltip/models/tooltip.model.d.ts +1 -1
- package/tooltip/tooltip-container/tooltip.component.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +1 -1
- package/virtual-scroll/virtual-scroll.component.d.ts +1 -1
- package/widgets/interfaces/widgets.model.d.ts +1 -1
- package/button/button.directive.scss +0 -69
- package/drawer/drawer.scss +0 -20
- package/esm2020/action-list/action-list.component.mjs +0 -370
- package/esm2020/analytics/analytics.service.mjs +0 -64
- package/esm2020/async-search-dropdown/async-dropdown.component.mjs +0 -525
- package/esm2020/button/button.component.mjs +0 -87
- package/esm2020/button/button.directive.mjs +0 -61
- package/esm2020/checkbox/checkbox.component.mjs +0 -124
- package/esm2020/chip/chip.component.mjs +0 -82
- package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +0 -183
- package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -449
- package/esm2020/datepicker_v2/utils/index.mjs +0 -45
- package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -165
- package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -502
- package/esm2020/drawer/drawer-body/drawer-body.component.mjs +0 -58
- package/esm2020/dropdown/calculate-container-height.directive.mjs +0 -41
- package/esm2020/dropdown/dropdown.component.mjs +0 -472
- package/esm2020/dynamic-form/dynamic-form.component.mjs +0 -1108
- package/esm2020/fab/fab.component.mjs +0 -144
- package/esm2020/filter/filter-panel/filter-panel.component.mjs +0 -403
- package/esm2020/filter/has-value.pipe.mjs +0 -31
- package/esm2020/input/mis-input.component.mjs +0 -84
- package/esm2020/input-stepper/input-stepper/input-stepper.component.mjs +0 -88
- package/esm2020/loader/loader.component.mjs +0 -24
- package/esm2020/menu/menu-close.directive.mjs +0 -25
- package/esm2020/mobile-filter/mobile-filter.component.mjs +0 -181
- package/esm2020/modal/modal.service.mjs +0 -70
- package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +0 -55
- package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -491
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -517
- package/esm2020/phone-input/phone-input.component.mjs +0 -71
- package/esm2020/radio-button/radio-button.component.mjs +0 -56
- package/esm2020/ske-loader/ske-loader.component.mjs +0 -53
- package/esm2020/slider/slider.component.mjs +0 -45
- package/esm2020/snackbar/snackbar/snackbar.component.mjs +0 -72
- package/esm2020/snackbar/snackbar.service.mjs +0 -47
- package/esm2020/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +0 -646
- package/esm2020/specificdatepicker/tz-specificdatepicker.directive.mjs +0 -196
- package/esm2020/specificdatepicker/utils/index.mjs +0 -45
- package/esm2020/star-rating/star-rating.component.mjs +0 -112
- package/esm2020/switch/switch.component.mjs +0 -55
- package/esm2020/table/custom-table-cell.directive.mjs +0 -42
- package/esm2020/table/filter/filter.component.mjs +0 -176
- package/esm2020/table/sub-table/sub-table.component.mjs +0 -193
- package/esm2020/table/table.component.mjs +0 -492
- package/esm2020/timepicker/timepicker.component.mjs +0 -370
- package/esm2020/timepicker/timepicker.directive.mjs +0 -69
- package/esm2020/timerangepicker/timerangepicker.component.mjs +0 -236
- package/esm2020/toast/toast.component.mjs +0 -50
- package/esm2020/toast/toast.service.mjs +0 -91
- package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +0 -79
- package/esm2020/tooltip/tooltip.directive.mjs +0 -143
- package/esm2020/virtual-scroll/virtual-scroll.component.mjs +0 -190
- package/esm2020/widgets/classes/async-widget.mjs +0 -23
- package/esm2020/widgets/classes/sync-widget.mjs +0 -20
- package/fesm2015/mis-crystal-design-system-action-list.mjs +0 -446
- package/fesm2015/mis-crystal-design-system-action-list.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-analytics.mjs +0 -87
- package/fesm2015/mis-crystal-design-system-analytics.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +0 -618
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-button.mjs +0 -189
- package/fesm2015/mis-crystal-design-system-button.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-checkbox.mjs +0 -166
- package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-chip.mjs +0 -123
- package/fesm2015/mis-crystal-design-system-chip.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +0 -751
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +0 -769
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-drawer.mjs +0 -185
- package/fesm2015/mis-crystal-design-system-drawer.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-dropdown.mjs +0 -616
- package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-dynamic-form.mjs +0 -1337
- package/fesm2015/mis-crystal-design-system-dynamic-form.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-fab.mjs +0 -186
- package/fesm2015/mis-crystal-design-system-fab.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-filter.mjs +0 -559
- package/fesm2015/mis-crystal-design-system-filter.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-input-stepper.mjs +0 -124
- package/fesm2015/mis-crystal-design-system-input-stepper.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-input.mjs +0 -165
- package/fesm2015/mis-crystal-design-system-input.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-loader.mjs +0 -57
- package/fesm2015/mis-crystal-design-system-loader.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-menu.mjs +0 -135
- package/fesm2015/mis-crystal-design-system-menu.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-mobile-filter.mjs +0 -227
- package/fesm2015/mis-crystal-design-system-mobile-filter.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-modal.mjs +0 -184
- package/fesm2015/mis-crystal-design-system-modal.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +0 -550
- 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 -559
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-phone-input.mjs +0 -107
- package/fesm2015/mis-crystal-design-system-phone-input.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-radio-button.mjs +0 -89
- package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs +0 -86
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-slider.mjs +0 -88
- package/fesm2015/mis-crystal-design-system-slider.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-snackbar.mjs +0 -175
- package/fesm2015/mis-crystal-design-system-snackbar.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs +0 -970
- package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-star-rating.mjs +0 -145
- package/fesm2015/mis-crystal-design-system-star-rating.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-switch.mjs +0 -88
- package/fesm2015/mis-crystal-design-system-switch.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-table.mjs +0 -1045
- package/fesm2015/mis-crystal-design-system-table.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-timepicker.mjs +0 -484
- package/fesm2015/mis-crystal-design-system-timepicker.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-timerangepicker.mjs +0 -273
- package/fesm2015/mis-crystal-design-system-timerangepicker.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-toast.mjs +0 -214
- package/fesm2015/mis-crystal-design-system-toast.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-tooltip.mjs +0 -272
- package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs +0 -259
- package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs.map +0 -1
- package/fesm2015/mis-crystal-design-system-widgets.mjs +0 -131
- package/fesm2015/mis-crystal-design-system-widgets.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-action-list.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +0 -550
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-button.mjs +0 -172
- package/fesm2020/mis-crystal-design-system-button.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-checkbox.mjs +0 -150
- package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-chip.mjs +0 -108
- package/fesm2020/mis-crystal-design-system-chip.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +0 -736
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-dynamic-form.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-fab.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-filter.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-loader.mjs +0 -50
- package/fesm2020/mis-crystal-design-system-mobile-filter.mjs +0 -206
- package/fesm2020/mis-crystal-design-system-mobile-filter.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-radio-button.mjs +0 -82
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs +0 -76
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-slider.mjs +0 -79
- package/fesm2020/mis-crystal-design-system-snackbar.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-star-rating.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 -81
- package/fesm2020/mis-crystal-design-system-switch.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-table.mjs +0 -919
- package/fesm2020/mis-crystal-design-system-table.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-utils.mjs +0 -24
- package/fesm2020/mis-crystal-design-system-utils.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs.map +0 -1
- package/fesm2020/mis-crystal-design-system.mjs +0 -24
- package/fesm2020/mis-crystal-design-system.mjs.map +0 -1
- package/input/mis-input.component.scss +0 -180
- package/modal/modal.scss +0 -9
- package/styles/fonts/icomoon.eot +0 -0
- package/styles/fonts/icomoon.svg +0 -315
- package/styles/fonts/icomoon.ttf +0 -0
- package/styles/fonts/icomoon.woff +0 -0
- package/styles/mis-borders-backgrounds.scss +0 -764
- package/styles/mis-color-constants.scss +0 -149
- package/styles/mis-flex.scss +0 -321
- package/styles/mis-fonts.scss +0 -124
- package/styles/mis-icons.scss +0 -1054
- package/styles/mis-mixins.scss +0 -46
- package/styles/mis-old-icon-styles.scss +0 -498
- package/styles/mis-spacing-sizing.scss +0 -2590
- package/styles/mis-typography.scss +0 -462
- /package/{esm2020 → esm2022}/action-list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/action-list/mis-crystal-design-system-action-list.mjs +0 -0
- /package/{esm2020 → esm2022}/action-list/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/analytics/index.mjs +0 -0
- /package/{esm2020 → esm2022}/analytics/mis-crystal-design-system-analytics.mjs +0 -0
- /package/{esm2020 → esm2022}/analytics/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/async-search-dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/async-search-dropdown/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button/mis-crystal-design-system-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/mis-crystal-design-system-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/chip/index.mjs +0 -0
- /package/{esm2020 → esm2022}/chip/mis-crystal-design-system-chip.mjs +0 -0
- /package/{esm2020 → esm2022}/chip/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker_v2/datepicker-constants.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker_v2/index.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker_v2/models/dp-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker_v2/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/daterangepicker_v2/daterangepicker-constants.mjs +0 -0
- /package/{esm2020 → esm2022}/daterangepicker_v2/index.mjs +0 -0
- /package/{esm2020 → esm2022}/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -0
- /package/{esm2020 → esm2022}/daterangepicker_v2/models/drp-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/daterangepicker_v2/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/drawer-constants.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/index.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/mis-crystal-design-system-drawer.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/mis-crystal-design-system-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-form/dynamic-form.namespace.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-form/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-form/mis-crystal-design-system-dynamic-form.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-form/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/fab/index.mjs +0 -0
- /package/{esm2020 → esm2022}/fab/mis-crystal-design-system-fab.mjs +0 -0
- /package/{esm2020 → esm2022}/fab/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/filter/animations/slideFromRight.mjs +0 -0
- /package/{esm2020 → esm2022}/filter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/filter/mis-crystal-design-system-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/filter/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/mis-crystal-design-system-input.mjs +0 -0
- /package/{esm2020 → esm2022}/input/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/input-stepper/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input-stepper/mis-crystal-design-system-input-stepper.mjs +0 -0
- /package/{esm2020 → esm2022}/input-stepper/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/index.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/mis-crystal-design-system-loader.mjs +0 -0
- /package/{esm2020 → esm2022}/loader/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/index.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/mis-crystal-design-system-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/mis-crystal-design-system.mjs +0 -0
- /package/{esm2020 → esm2022}/mobile-filter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/mobile-filter/mis-crystal-design-system-mobile-filter.mjs +0 -0
- /package/{esm2020 → esm2022}/mobile-filter/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/mis-crystal-design-system-modal.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal-constants.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/multi-select-dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/multi-select-dropdown/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/nested-multi-select-dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/nested-multi-select-dropdown/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/phone-input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/phone-input/mis-crystal-design-system-phone-input.mjs +0 -0
- /package/{esm2020 → esm2022}/phone-input/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio-button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/radio-button/mis-crystal-design-system-radio-button.mjs +0 -0
- /package/{esm2020 → esm2022}/radio-button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/ske-loader/index.mjs +0 -0
- /package/{esm2020 → esm2022}/ske-loader/mis-crystal-design-system-ske-loader.mjs +0 -0
- /package/{esm2020 → esm2022}/ske-loader/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/index.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/mis-crystal-design-system-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/snackbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/snackbar/mis-crystal-design-system-snackbar.mjs +0 -0
- /package/{esm2020 → esm2022}/snackbar/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/specificdatepicker/daterangepicker-constants.mjs +0 -0
- /package/{esm2020 → esm2022}/specificdatepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/specificdatepicker/mis-crystal-design-system-specificdatepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/specificdatepicker/models/sdp-config.model.mjs +0 -0
- /package/{esm2020 → esm2022}/specificdatepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/star-rating/index.mjs +0 -0
- /package/{esm2020 → esm2022}/star-rating/mis-crystal-design-system-star-rating.mjs +0 -0
- /package/{esm2020 → esm2022}/star-rating/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/styles/index.mjs +0 -0
- /package/{esm2020 → esm2022}/styles/mis-crystal-design-system-styles.mjs +0 -0
- /package/{esm2020 → esm2022}/styles/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/index.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/mis-crystal-design-system-switch.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/mis-crystal-design-system-table.mjs +0 -0
- /package/{esm2020 → esm2022}/table/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/mis-crystal-design-system-timepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/time.namespace.mjs +0 -0
- /package/{esm2020 → esm2022}/timerangepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/timerangepicker/mis-crystal-design-system-timerangepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/timerangepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/timerangepicker/timerange.namespace.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/index.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/mis-crystal-design-system-toast.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/mis-crystal-design-system-tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/models/tooltip.model.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/mis-crystal-design-system-utils.mjs +0 -0
- /package/{esm2020 → esm2022}/virtual-scroll/index.mjs +0 -0
- /package/{esm2020 → esm2022}/virtual-scroll/mis-crystal-design-system-virtual-scroll.mjs +0 -0
- /package/{esm2020 → esm2022}/virtual-scroll/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/virtual-scroll/virtual-scroll.constants.mjs +0 -0
- /package/{esm2020 → esm2022}/widgets/classes/widget-group.mjs +0 -0
- /package/{esm2020 → esm2022}/widgets/index.mjs +0 -0
- /package/{esm2020 → esm2022}/widgets/interfaces/widgets.model.mjs +0 -0
- /package/{esm2020 → esm2022}/widgets/mis-crystal-design-system-widgets.mjs +0 -0
- /package/{esm2020 → esm2022}/widgets/public_api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/mis-crystal-design-system-styles.mjs +0 -0
- /package/{fesm2015 → fesm2022}/mis-crystal-design-system-styles.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/mis-crystal-design-system-utils.mjs +0 -0
- /package/{fesm2015 → fesm2022}/mis-crystal-design-system-utils.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/mis-crystal-design-system.mjs +0 -0
- /package/{fesm2015 → fesm2022}/mis-crystal-design-system.mjs.map +0 -0
|
@@ -1,616 +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, ContentChild, HostListener, Directive, NgModule } from '@angular/core';
|
|
6
|
-
import * as i4 from '@angular/cdk/scrolling';
|
|
7
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
8
|
-
import * as i2 from '@angular/common';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
|
-
import * as i3 from '@angular/forms';
|
|
11
|
-
import { FormsModule } from '@angular/forms';
|
|
12
|
-
import * as i5 from 'mis-crystal-design-system/loader';
|
|
13
|
-
import { LoaderModule } from 'mis-crystal-design-system/loader';
|
|
14
|
-
import * as i6 from '@angular/cdk/a11y';
|
|
15
|
-
import { A11yModule } from '@angular/cdk/a11y';
|
|
16
|
-
import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
|
|
17
|
-
|
|
18
|
-
const _c0 = ["misCustomItem"];
|
|
19
|
-
const _c1 = ["select"];
|
|
20
|
-
const _c2 = ["popupContainer"];
|
|
21
|
-
function DropdownComponent_img_3_Template(rf, ctx) {
|
|
22
|
-
if (rf & 1) {
|
|
23
|
-
i0.ɵɵelement(0, "img", 10);
|
|
24
|
-
}
|
|
25
|
-
if (rf & 2) {
|
|
26
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
27
|
-
i0.ɵɵproperty("width", 16)("height", 16)("src", ctx_r1.selectedItem == null ? null : ctx_r1.selectedItem.customIcon, i0.ɵɵsanitizeUrl);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function DropdownComponent_p_5_Template(rf, ctx) {
|
|
31
|
-
if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "p", 11);
|
|
33
|
-
i0.ɵɵtext(1);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
}
|
|
36
|
-
if (rf & 2) {
|
|
37
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
38
|
-
i0.ɵɵadvance(1);
|
|
39
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.multiLine ? ctx_r2.selectedItem == null ? null : ctx_r2.selectedItem.label == null ? null : ctx_r2.selectedItem.label.primaryText : (ctx_r2.selectedItem == null ? null : ctx_r2.selectedItem.label) || ctx_r2.label, " ");
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function DropdownComponent_ng_template_6_p_0_Template(rf, ctx) {
|
|
43
|
-
if (rf & 1) {
|
|
44
|
-
i0.ɵɵelementStart(0, "p", 11);
|
|
45
|
-
i0.ɵɵtext(1);
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
47
|
-
}
|
|
48
|
-
if (rf & 2) {
|
|
49
|
-
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
50
|
-
i0.ɵɵadvance(1);
|
|
51
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r7.label, " ");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function DropdownComponent_ng_template_6_img_1_Template(rf, ctx) {
|
|
55
|
-
if (rf & 1) {
|
|
56
|
-
i0.ɵɵelement(0, "img", 14);
|
|
57
|
-
}
|
|
58
|
-
if (rf & 2) {
|
|
59
|
-
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
60
|
-
i0.ɵɵproperty("src", ctx_r8.selectedItem == null ? null : ctx_r8.selectedItem.icon, i0.ɵɵsanitizeUrl);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function DropdownComponent_ng_template_6_Template(rf, ctx) {
|
|
64
|
-
if (rf & 1) {
|
|
65
|
-
i0.ɵɵtemplate(0, DropdownComponent_ng_template_6_p_0_Template, 2, 1, "p", 12);
|
|
66
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_6_img_1_Template, 1, 1, "img", 13);
|
|
67
|
-
}
|
|
68
|
-
if (rf & 2) {
|
|
69
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
70
|
-
i0.ɵɵproperty("ngIf", !(ctx_r4.selectedItem == null ? null : ctx_r4.selectedItem.icon));
|
|
71
|
-
i0.ɵɵadvance(1);
|
|
72
|
-
i0.ɵɵproperty("ngIf", !!(ctx_r4.selectedItem == null ? null : ctx_r4.selectedItem.icon));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function DropdownComponent_ng_template_10_div_1__svg_svg_1_Template(rf, ctx) {
|
|
76
|
-
if (rf & 1) {
|
|
77
|
-
i0.ɵɵnamespaceSVG();
|
|
78
|
-
i0.ɵɵelementStart(0, "svg", 24);
|
|
79
|
-
i0.ɵɵelement(1, "path", 25);
|
|
80
|
-
i0.ɵɵelementEnd();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function DropdownComponent_ng_template_10_div_1__svg_svg_3_Template(rf, ctx) {
|
|
84
|
-
if (rf & 1) {
|
|
85
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
86
|
-
i0.ɵɵnamespaceSVG();
|
|
87
|
-
i0.ɵɵelementStart(0, "svg", 26);
|
|
88
|
-
i0.ɵɵlistener("click", function DropdownComponent_ng_template_10_div_1__svg_svg_3_Template__svg_svg_click_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r15.searchInputCanceled($event)); });
|
|
89
|
-
i0.ɵɵelement(1, "path", 27);
|
|
90
|
-
i0.ɵɵelementEnd();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
const _c3 = function (a0, a1, a2) { return { paddingLeft: a0, border: a1, paddingRight: a2 }; };
|
|
94
|
-
function DropdownComponent_ng_template_10_div_1_Template(rf, ctx) {
|
|
95
|
-
if (rf & 1) {
|
|
96
|
-
const _r18 = i0.ɵɵgetCurrentView();
|
|
97
|
-
i0.ɵɵelementStart(0, "div", 20);
|
|
98
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_1__svg_svg_1_Template, 2, 0, "svg", 21);
|
|
99
|
-
i0.ɵɵelementStart(2, "input", 22);
|
|
100
|
-
i0.ɵɵlistener("ngModelChange", function DropdownComponent_ng_template_10_div_1_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.searchInputOnChange($event)); })("focus", function DropdownComponent_ng_template_10_div_1_Template_input_focus_2_listener() { i0.ɵɵrestoreView(_r18); const ctx_r19 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r19.searchInputFocused(true)); });
|
|
101
|
-
i0.ɵɵelementEnd();
|
|
102
|
-
i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_1__svg_svg_3_Template, 2, 0, "svg", 23);
|
|
103
|
-
i0.ɵɵelementEnd();
|
|
104
|
-
}
|
|
105
|
-
if (rf & 2) {
|
|
106
|
-
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
107
|
-
i0.ɵɵadvance(1);
|
|
108
|
-
i0.ɵɵproperty("ngIf", !ctx_r9.isSearchInputFocused);
|
|
109
|
-
i0.ɵɵadvance(1);
|
|
110
|
-
i0.ɵɵproperty("ngModel", ctx_r9.searchInput)("ngStyle", i0.ɵɵpureFunction3(7, _c3, ctx_r9.isSearchInputFocused ? "12px" : "45px", ctx_r9.isSearchInputFocused ? "1px solid #0937B2" : "1px solid #e0e0e0", ctx_r9.isSearchInputFocused ? "45px" : "10px"))("tabIndex", 0)("placeholder", ctx_r9.isSearchInputFocused ? "" : ctx_r9.searchLabel);
|
|
111
|
-
i0.ɵɵattribute("aria-label", ctx_r9.searchLabel);
|
|
112
|
-
i0.ɵɵadvance(1);
|
|
113
|
-
i0.ɵɵproperty("ngIf", ctx_r9.isSearchInputFocused);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function DropdownComponent_ng_template_10_div_2_Template(rf, ctx) {
|
|
117
|
-
if (rf & 1) {
|
|
118
|
-
i0.ɵɵelementStart(0, "div", 28);
|
|
119
|
-
i0.ɵɵelement(1, "mis-loader", 29);
|
|
120
|
-
i0.ɵɵelementEnd();
|
|
121
|
-
}
|
|
122
|
-
if (rf & 2) {
|
|
123
|
-
i0.ɵɵadvance(1);
|
|
124
|
-
i0.ɵɵproperty("mobileView", true);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function DropdownComponent_ng_template_10_div_3_Template(rf, ctx) {
|
|
128
|
-
if (rf & 1) {
|
|
129
|
-
i0.ɵɵelement(0, "div", 30);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
const _c4 = function (a0) { return { $implicit: a0 }; };
|
|
133
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_container_1_Template(rf, ctx) {
|
|
134
|
-
if (rf & 1) {
|
|
135
|
-
i0.ɵɵelementContainerStart(0);
|
|
136
|
-
i0.ɵɵelementContainer(1, 39);
|
|
137
|
-
i0.ɵɵelementContainerEnd();
|
|
138
|
-
}
|
|
139
|
-
if (rf & 2) {
|
|
140
|
-
const item_r23 = i0.ɵɵnextContext().$implicit;
|
|
141
|
-
const ctx_r24 = i0.ɵɵnextContext(4);
|
|
142
|
-
i0.ɵɵadvance(1);
|
|
143
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r24.customItem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c4, item_r23));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_span_3_Template(rf, ctx) {
|
|
147
|
-
if (rf & 1) {
|
|
148
|
-
i0.ɵɵelementStart(0, "span", 44);
|
|
149
|
-
i0.ɵɵtext(1);
|
|
150
|
-
i0.ɵɵelementEnd();
|
|
151
|
-
}
|
|
152
|
-
if (rf & 2) {
|
|
153
|
-
const item_r23 = i0.ɵɵnextContext(3).$implicit;
|
|
154
|
-
const ctx_r30 = i0.ɵɵnextContext(4);
|
|
155
|
-
i0.ɵɵproperty("ngStyle", ctx_r30.getIconStyles(item_r23.icon, ctx_r30.activeItem));
|
|
156
|
-
i0.ɵɵadvance(1);
|
|
157
|
-
i0.ɵɵtextInterpolate1(" ", (item_r23 == null ? null : item_r23.label == null ? null : item_r23.label.secondaryText) ? item_r23 == null ? null : item_r23.label == null ? null : item_r23.label.secondaryText : ctx_r30.additionalInfoMessage, " ");
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
const _c5 = function (a0, a1, a2) { return { width: a0, "display": a1, "flex-direction": a2 }; };
|
|
161
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_Template(rf, ctx) {
|
|
162
|
-
if (rf & 1) {
|
|
163
|
-
i0.ɵɵelementStart(0, "div", 4)(1, "span", 42);
|
|
164
|
-
i0.ɵɵtext(2);
|
|
165
|
-
i0.ɵɵelementEnd();
|
|
166
|
-
i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_span_3_Template, 2, 2, "span", 43);
|
|
167
|
-
i0.ɵɵelementEnd();
|
|
168
|
-
}
|
|
169
|
-
if (rf & 2) {
|
|
170
|
-
const item_r23 = i0.ɵɵnextContext(2).$implicit;
|
|
171
|
-
const ctx_r28 = i0.ɵɵnextContext(4);
|
|
172
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c5, item_r23.icon ? "90%" : "100%", ctx_r28.multiLine ? "flex" : "inherit", ctx_r28.multiLine ? "column" : "inherit"));
|
|
173
|
-
i0.ɵɵadvance(1);
|
|
174
|
-
i0.ɵɵproperty("ngStyle", ctx_r28.getIconStyles(item_r23.icon, ctx_r28.activeItem));
|
|
175
|
-
i0.ɵɵadvance(1);
|
|
176
|
-
i0.ɵɵtextInterpolate(ctx_r28.multiLine ? item_r23 == null ? null : item_r23.label == null ? null : item_r23.label.primaryText : item_r23 == null ? null : item_r23.label);
|
|
177
|
-
i0.ɵɵadvance(1);
|
|
178
|
-
i0.ɵɵproperty("ngIf", ctx_r28.multiLine);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_1_Template(rf, ctx) {
|
|
182
|
-
if (rf & 1) {
|
|
183
|
-
i0.ɵɵelementStart(0, "div", 45);
|
|
184
|
-
i0.ɵɵelement(1, "img", 14);
|
|
185
|
-
i0.ɵɵelementEnd();
|
|
186
|
-
}
|
|
187
|
-
if (rf & 2) {
|
|
188
|
-
const item_r23 = i0.ɵɵnextContext(2).$implicit;
|
|
189
|
-
i0.ɵɵadvance(1);
|
|
190
|
-
i0.ɵɵproperty("src", item_r23.icon, i0.ɵɵsanitizeUrl);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_Template(rf, ctx) {
|
|
194
|
-
if (rf & 1) {
|
|
195
|
-
i0.ɵɵtemplate(0, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_0_Template, 4, 8, "div", 40);
|
|
196
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_div_1_Template, 2, 1, "div", 41);
|
|
197
|
-
}
|
|
198
|
-
if (rf & 2) {
|
|
199
|
-
const item_r23 = i0.ɵɵnextContext().$implicit;
|
|
200
|
-
const ctx_r26 = i0.ɵɵnextContext(4);
|
|
201
|
-
i0.ɵɵproperty("ngIf", !ctx_r26.showOnlyIcon);
|
|
202
|
-
i0.ɵɵadvance(1);
|
|
203
|
-
i0.ɵɵproperty("ngIf", item_r23.icon);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
const _c6 = function (a0, a1, a2) { return { "item-disabled": a0, "item-selected": a1, "icon-only": a2 }; };
|
|
207
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template(rf, ctx) {
|
|
208
|
-
if (rf & 1) {
|
|
209
|
-
const _r36 = i0.ɵɵgetCurrentView();
|
|
210
|
-
i0.ɵɵelementStart(0, "div", 36);
|
|
211
|
-
i0.ɵɵlistener("click", function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r36); const item_r23 = restoredCtx.$implicit; const ctx_r35 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(item_r23.disabled ? null : ctx_r35.selectItem(item_r23)); })("keyup.enter", function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template_div_keyup_enter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r36); const item_r23 = restoredCtx.$implicit; const ctx_r37 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(item_r23.disabled ? null : ctx_r37.selectItem(item_r23)); });
|
|
212
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_container_1_Template, 2, 4, "ng-container", 37);
|
|
213
|
-
i0.ɵɵtemplate(2, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_ng_template_2_Template, 2, 2, "ng-template", null, 38, i0.ɵɵtemplateRefExtractor);
|
|
214
|
-
i0.ɵɵelementEnd();
|
|
215
|
-
}
|
|
216
|
-
if (rf & 2) {
|
|
217
|
-
const item_r23 = ctx.$implicit;
|
|
218
|
-
const _r25 = i0.ɵɵreference(3);
|
|
219
|
-
const ctx_r22 = i0.ɵɵnextContext(4);
|
|
220
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(3, _c6, item_r23.disabled, ctx_r22.higlightSelectedValue && item_r23.value === (ctx_r22.selectedItem == null ? null : ctx_r22.selectedItem.value), ctx_r22.showOnlyIcon));
|
|
221
|
-
i0.ɵɵadvance(1);
|
|
222
|
-
i0.ɵɵproperty("ngIf", ctx_r22.customItem)("ngIfElse", _r25);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
function DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_Template(rf, ctx) {
|
|
226
|
-
if (rf & 1) {
|
|
227
|
-
i0.ɵɵelementStart(0, "cdk-virtual-scroll-viewport", 34);
|
|
228
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_div_1_Template, 4, 7, "div", 35);
|
|
229
|
-
i0.ɵɵelementEnd();
|
|
230
|
-
}
|
|
231
|
-
if (rf & 2) {
|
|
232
|
-
const ctx_r20 = i0.ɵɵnextContext(3);
|
|
233
|
-
i0.ɵɵproperty("itemSize", ctx_r20.itemSizeForCdk);
|
|
234
|
-
i0.ɵɵadvance(1);
|
|
235
|
-
i0.ɵɵproperty("cdkVirtualForOf", ctx_r20.searchInput ? ctx_r20.searchData : ctx_r20.data);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
function DropdownComponent_ng_template_10_div_4_div_2_Template(rf, ctx) {
|
|
239
|
-
if (rf & 1) {
|
|
240
|
-
i0.ɵɵelementStart(0, "div", 46);
|
|
241
|
-
i0.ɵɵtext(1);
|
|
242
|
-
i0.ɵɵelementEnd();
|
|
243
|
-
}
|
|
244
|
-
if (rf & 2) {
|
|
245
|
-
const ctx_r21 = i0.ɵɵnextContext(3);
|
|
246
|
-
i0.ɵɵadvance(1);
|
|
247
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r21.searchInput === "" ? ctx_r21.noDataMessage : "No results", " ");
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
function DropdownComponent_ng_template_10_div_4_Template(rf, ctx) {
|
|
251
|
-
if (rf & 1) {
|
|
252
|
-
i0.ɵɵelementStart(0, "div", 31);
|
|
253
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_4_cdk_virtual_scroll_viewport_1_Template, 2, 2, "cdk-virtual-scroll-viewport", 32);
|
|
254
|
-
i0.ɵɵtemplate(2, DropdownComponent_ng_template_10_div_4_div_2_Template, 2, 1, "div", 33);
|
|
255
|
-
i0.ɵɵelementEnd();
|
|
256
|
-
}
|
|
257
|
-
if (rf & 2) {
|
|
258
|
-
const ctx_r12 = i0.ɵɵnextContext(2);
|
|
259
|
-
i0.ɵɵadvance(1);
|
|
260
|
-
i0.ɵɵproperty("ngIf", !((ctx_r12.searchInput ? ctx_r12.searchData : ctx_r12.data).length === 0));
|
|
261
|
-
i0.ɵɵadvance(1);
|
|
262
|
-
i0.ɵɵproperty("ngIf", (ctx_r12.searchInput ? ctx_r12.searchData : ctx_r12.data).length === 0);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
const _c7 = function (a0, a1) { return { height: a0, width: a1 }; };
|
|
266
|
-
function DropdownComponent_ng_template_10_Template(rf, ctx) {
|
|
267
|
-
if (rf & 1) {
|
|
268
|
-
const _r39 = i0.ɵɵgetCurrentView();
|
|
269
|
-
i0.ɵɵnamespaceSVG();
|
|
270
|
-
i0.ɵɵnamespaceHTML();
|
|
271
|
-
i0.ɵɵelementStart(0, "div", 15);
|
|
272
|
-
i0.ɵɵlistener("keyup.esc", function DropdownComponent_ng_template_10_Template_div_keyup_esc_0_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.closeOnEsc($event)); });
|
|
273
|
-
i0.ɵɵtemplate(1, DropdownComponent_ng_template_10_div_1_Template, 4, 11, "div", 16);
|
|
274
|
-
i0.ɵɵtemplate(2, DropdownComponent_ng_template_10_div_2_Template, 2, 1, "div", 17);
|
|
275
|
-
i0.ɵɵtemplate(3, DropdownComponent_ng_template_10_div_3_Template, 1, 0, "div", 18);
|
|
276
|
-
i0.ɵɵtemplate(4, DropdownComponent_ng_template_10_div_4_Template, 3, 2, "div", 19);
|
|
277
|
-
i0.ɵɵelementEnd();
|
|
278
|
-
}
|
|
279
|
-
if (rf & 2) {
|
|
280
|
-
const ctx_r6 = i0.ɵɵnextContext();
|
|
281
|
-
i0.ɵɵproperty("cdkTrapFocusAutoCapture", true)("ngStyle", i0.ɵɵpureFunction2(6, _c7, ctx_r6.dropdownListHeight, ctx_r6.dropdownListWidth));
|
|
282
|
-
i0.ɵɵadvance(1);
|
|
283
|
-
i0.ɵɵproperty("ngIf", ctx_r6.searchEnabled);
|
|
284
|
-
i0.ɵɵadvance(1);
|
|
285
|
-
i0.ɵɵproperty("ngIf", ctx_r6.loading);
|
|
286
|
-
i0.ɵɵadvance(1);
|
|
287
|
-
i0.ɵɵproperty("ngIf", !ctx_r6.searchEnabled);
|
|
288
|
-
i0.ɵɵadvance(1);
|
|
289
|
-
i0.ɵɵproperty("ngIf", !ctx_r6.loading);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
const _c8 = function (a0) { return { width: a0 }; };
|
|
293
|
-
const _c9 = function (a0) { return { transform: a0 }; };
|
|
294
|
-
class DropdownComponent {
|
|
295
|
-
constructor(eRef, overlay, viewContainerRef) {
|
|
296
|
-
this.eRef = eRef;
|
|
297
|
-
this.overlay = overlay;
|
|
298
|
-
this.viewContainerRef = viewContainerRef;
|
|
299
|
-
this.isOpen = false;
|
|
300
|
-
this.loading = false;
|
|
301
|
-
this.isSearchInputFocused = false;
|
|
302
|
-
this.searchInput = "";
|
|
303
|
-
this.searchData = [];
|
|
304
|
-
this.visibleItems = 10;
|
|
305
|
-
this.data = [];
|
|
306
|
-
this.height = "";
|
|
307
|
-
this.ariaLabel = "";
|
|
308
|
-
this.width = "";
|
|
309
|
-
this.label = "Select";
|
|
310
|
-
this.showOnlyIcon = false;
|
|
311
|
-
this.higlightSelectedValue = false;
|
|
312
|
-
this.dropdownListHeight = "";
|
|
313
|
-
this.dropdownListWidth = "";
|
|
314
|
-
this.dropdownListPosition = "Left";
|
|
315
|
-
this.searchEnabled = true;
|
|
316
|
-
this.selectedItem = { value: "", label: "" };
|
|
317
|
-
this.noDataMessage = "No Data";
|
|
318
|
-
this.multiLine = false;
|
|
319
|
-
this.scrollIntoView = false;
|
|
320
|
-
this.searchLabel = "Search Keyword";
|
|
321
|
-
this.activeItem = false;
|
|
322
|
-
this.onChange = new EventEmitter();
|
|
323
|
-
}
|
|
324
|
-
ngOnInit() {
|
|
325
|
-
}
|
|
326
|
-
getIconStyles(item, activeItem) {
|
|
327
|
-
return {
|
|
328
|
-
'color': item && activeItem ? '#0937B2' : '',
|
|
329
|
-
'font-weight': item && activeItem ? '700' : ''
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
setUpAsyncDataSearch() {
|
|
333
|
-
if (this.config) {
|
|
334
|
-
this.loading = true;
|
|
335
|
-
this.config.dataStream().pipe().subscribe(res => {
|
|
336
|
-
this.data = res;
|
|
337
|
-
this.loading = false;
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
const index = this.data.findIndex((dataItem) => dataItem.value === this.selectedItem.value);
|
|
341
|
-
if (this.scrollIntoView)
|
|
342
|
-
this.viewPort.scrollToIndex(index, 'smooth');
|
|
343
|
-
}
|
|
344
|
-
filterByValue(array, string) {
|
|
345
|
-
return array.filter(o => o.label.toLowerCase().includes(string.toLowerCase().trim()));
|
|
346
|
-
}
|
|
347
|
-
filterByPrimaryText(array, string) {
|
|
348
|
-
return array.filter(o => o.label.primaryText.toLowerCase().includes(string.toLowerCase().trim()));
|
|
349
|
-
}
|
|
350
|
-
searchInputOnChange(newValue) {
|
|
351
|
-
this.searchInput = newValue;
|
|
352
|
-
if (newValue) {
|
|
353
|
-
this.searchData = this.multiLine ? this.filterByPrimaryText(this.data, newValue) : this.filterByValue(this.data, newValue);
|
|
354
|
-
}
|
|
355
|
-
else {
|
|
356
|
-
this.searchData = [];
|
|
357
|
-
this.searchInput = "";
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
searchInputFocused(isFocused) {
|
|
361
|
-
this.isSearchInputFocused = isFocused;
|
|
362
|
-
}
|
|
363
|
-
searchInputCanceled(event) {
|
|
364
|
-
event.stopPropagation();
|
|
365
|
-
this.searchInput = "";
|
|
366
|
-
this.isSearchInputFocused = false;
|
|
367
|
-
}
|
|
368
|
-
toggleDropdown() {
|
|
369
|
-
this.isOpen = !this.isOpen;
|
|
370
|
-
if (this.isOpen)
|
|
371
|
-
this.openDropdown(this.popupContainer, this.selectElement.nativeElement);
|
|
372
|
-
else
|
|
373
|
-
this.onCancel();
|
|
374
|
-
}
|
|
375
|
-
openDropdown(template, origin) {
|
|
376
|
-
const positionsBottom = [
|
|
377
|
-
new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }, 0, 4),
|
|
378
|
-
new ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }, 0, 4)
|
|
379
|
-
];
|
|
380
|
-
const positionsTop = [
|
|
381
|
-
new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" }, 0, -4),
|
|
382
|
-
new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }, 0, -4)
|
|
383
|
-
];
|
|
384
|
-
const positionStrategy = this.overlay
|
|
385
|
-
.position()
|
|
386
|
-
.flexibleConnectedTo(origin)
|
|
387
|
-
.withPositions([
|
|
388
|
-
...(this.dropdownListPosition === "Right" ? positionsBottom.reverse() : positionsBottom),
|
|
389
|
-
...(this.dropdownListPosition === "Right" ? positionsTop.reverse() : positionsTop)
|
|
390
|
-
])
|
|
391
|
-
.withPush(true);
|
|
392
|
-
const configs = new OverlayConfig({
|
|
393
|
-
hasBackdrop: true,
|
|
394
|
-
backdropClass: "cdk-overlay-transparent-backdrop",
|
|
395
|
-
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
396
|
-
positionStrategy,
|
|
397
|
-
width: origin.clientWidth
|
|
398
|
-
});
|
|
399
|
-
this.overlayRef = this.overlay.create(configs);
|
|
400
|
-
if (this.dropdownListWidth)
|
|
401
|
-
this.overlayRef.updateSize({ width: this.dropdownListWidth });
|
|
402
|
-
if (this.dropdownListHeight)
|
|
403
|
-
this.overlayRef.updateSize({ height: this.dropdownListHeight });
|
|
404
|
-
this.overlayRef.attach(new TemplatePortal(template, this.viewContainerRef));
|
|
405
|
-
this.overlayRef.backdropClick().subscribe(res => {
|
|
406
|
-
this.onCancel();
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
selectItem(item) {
|
|
410
|
-
this.onChange.emit(item);
|
|
411
|
-
this.toggleDropdown();
|
|
412
|
-
}
|
|
413
|
-
onCancel() {
|
|
414
|
-
var _a;
|
|
415
|
-
this.isSearchInputFocused = false;
|
|
416
|
-
this.isOpen = false;
|
|
417
|
-
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
|
|
418
|
-
this.searchInput = "";
|
|
419
|
-
}
|
|
420
|
-
closeOnEsc(event) {
|
|
421
|
-
this.onCancel();
|
|
422
|
-
event.stopPropagation();
|
|
423
|
-
event.preventDefault();
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
DropdownComponent.ɵfac = function DropdownComponent_Factory(t) { return new (t || DropdownComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
427
|
-
DropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DropdownComponent, selectors: [["mis-dropdown"]], contentQueries: function DropdownComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
428
|
-
if (rf & 1) {
|
|
429
|
-
i0.ɵɵcontentQuery(dirIndex, _c0, 5);
|
|
430
|
-
}
|
|
431
|
-
if (rf & 2) {
|
|
432
|
-
let _t;
|
|
433
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customItem = _t.first);
|
|
434
|
-
}
|
|
435
|
-
}, viewQuery: function DropdownComponent_Query(rf, ctx) {
|
|
436
|
-
if (rf & 1) {
|
|
437
|
-
i0.ɵɵviewQuery(_c1, 5);
|
|
438
|
-
i0.ɵɵviewQuery(_c2, 5);
|
|
439
|
-
i0.ɵɵviewQuery(CdkVirtualScrollViewport, 5);
|
|
440
|
-
}
|
|
441
|
-
if (rf & 2) {
|
|
442
|
-
let _t;
|
|
443
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectElement = _t.first);
|
|
444
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popupContainer = _t.first);
|
|
445
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewPort = _t.first);
|
|
446
|
-
}
|
|
447
|
-
}, hostBindings: function DropdownComponent_HostBindings(rf, ctx) {
|
|
448
|
-
if (rf & 1) {
|
|
449
|
-
i0.ɵɵlistener("keyup.esc", function DropdownComponent_keyup_esc_HostBindingHandler($event) { return ctx.closeOnEsc($event); });
|
|
450
|
-
}
|
|
451
|
-
}, inputs: { data: "data", height: "height", ariaLabel: "ariaLabel", width: "width", label: "label", itemSizeForCdk: "itemSizeForCdk", showOnlyIcon: "showOnlyIcon", higlightSelectedValue: "higlightSelectedValue", dropdownListHeight: "dropdownListHeight", dropdownListWidth: "dropdownListWidth", dropdownListPosition: "dropdownListPosition", config: "config", searchEnabled: "searchEnabled", selectedItem: "selectedItem", noDataMessage: "noDataMessage", multiLine: "multiLine", additionalInfoMessage: "additionalInfoMessage", scrollIntoView: "scrollIntoView", searchLabel: "searchLabel", customStyles: "customStyles", activeItem: "activeItem" }, outputs: { onChange: "onChange" }, decls: 12, vars: 16, consts: [[1, "main-container", 3, "ngStyle", "click", "keyup.enter"], ["tabindex", "0", 1, "dropdown", 3, "ngStyle", "ngClass", "keyup.enter", "click"], ["select", ""], ["class", "img-container", 3, "width", "height", "src", 4, "ngIf"], [1, "label", 3, "ngStyle"], ["class", "text", 4, "ngIf", "ngIfElse"], ["showIcon", ""], ["width", "20", "height", "20", "viewBox", "0 0 20 20", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "handle", 3, "ngStyle"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M13.825 7.15845L10 10.9751L6.175 7.15845L5 8.33345L10 13.3334L15 8.33345L13.825 7.15845Z", "fill", "#181F33"], ["popupContainer", ""], [1, "img-container", 3, "width", "height", "src"], [1, "text"], ["class", "text", 4, "ngIf"], ["class", "icon", "alt", "no img", 3, "src", 4, "ngIf"], ["alt", "no img", 1, "icon", 3, "src"], ["cdkTrapFocus", "", "tabindex", "0", "aria-label", "dropdown", 1, "popup-container", 3, "cdkTrapFocusAutoCapture", "ngStyle", "keyup.esc"], ["class", "search-container", 4, "ngIf"], ["class", "status-container", 4, "ngIf"], ["tabindex", "-1", "cdkFocusInitial", "", 4, "ngIf"], ["class", "items", 4, "ngIf"], [1, "search-container"], ["class", "search-icon", "width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 4, "ngIf"], [1, "search-input", 3, "ngModel", "ngStyle", "tabIndex", "placeholder", "ngModelChange", "focus"], ["class", "cancel-icon", "width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 3, "click", 4, "ngIf"], ["width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "search-icon"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z", "fill", "#6A737D"], ["width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "cancel-icon", 3, "click"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z", "fill", "#6A737D"], [1, "status-container"], [3, "mobileView"], ["tabindex", "-1", "cdkFocusInitial", ""], [1, "items"], ["class", "dropdown-viewport", 3, "itemSize", 4, "ngIf"], ["class", "noData", 4, "ngIf"], [1, "dropdown-viewport", 3, "itemSize"], ["class", "item", "tabindex", "0", "tabIndex", "0", 3, "ngClass", "click", "keyup.enter", 4, "cdkVirtualFor", "cdkVirtualForOf"], ["tabindex", "0", "tabIndex", "0", 1, "item", 3, "ngClass", "click", "keyup.enter"], [4, "ngIf", "ngIfElse"], ["standardItem", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "label", 3, "ngStyle", 4, "ngIf"], ["class", "icon-container", 4, "ngIf"], [1, "primaryText", 3, "ngStyle"], ["class", "secondaryText", 3, "ngStyle", 4, "ngIf"], [1, "secondaryText", 3, "ngStyle"], [1, "icon-container"], [1, "noData"]], template: function DropdownComponent_Template(rf, ctx) {
|
|
452
|
-
if (rf & 1) {
|
|
453
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
454
|
-
i0.ɵɵlistener("click", function DropdownComponent_Template_div_click_0_listener() { return ctx.setUpAsyncDataSearch(); })("keyup.enter", function DropdownComponent_Template_div_keyup_enter_0_listener() { return ctx.setUpAsyncDataSearch(); });
|
|
455
|
-
i0.ɵɵelementStart(1, "div", 1, 2);
|
|
456
|
-
i0.ɵɵlistener("keyup.enter", function DropdownComponent_Template_div_keyup_enter_1_listener() { return ctx.toggleDropdown(); })("click", function DropdownComponent_Template_div_click_1_listener() { return ctx.toggleDropdown(); });
|
|
457
|
-
i0.ɵɵtemplate(3, DropdownComponent_img_3_Template, 1, 3, "img", 3);
|
|
458
|
-
i0.ɵɵelementStart(4, "div", 4);
|
|
459
|
-
i0.ɵɵtemplate(5, DropdownComponent_p_5_Template, 2, 1, "p", 5);
|
|
460
|
-
i0.ɵɵtemplate(6, DropdownComponent_ng_template_6_Template, 2, 2, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
461
|
-
i0.ɵɵelementEnd();
|
|
462
|
-
i0.ɵɵnamespaceSVG();
|
|
463
|
-
i0.ɵɵelementStart(8, "svg", 7);
|
|
464
|
-
i0.ɵɵelement(9, "path", 8);
|
|
465
|
-
i0.ɵɵelementEnd()()();
|
|
466
|
-
i0.ɵɵtemplate(10, DropdownComponent_ng_template_10_Template, 5, 9, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
467
|
-
}
|
|
468
|
-
if (rf & 2) {
|
|
469
|
-
const _r3 = i0.ɵɵreference(7);
|
|
470
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(9, _c7, ctx.height.length > 0 ? ctx.height : "", ctx.width.length > 0 ? ctx.width : ""));
|
|
471
|
-
i0.ɵɵadvance(1);
|
|
472
|
-
i0.ɵɵproperty("ngStyle", ctx.customStyles)("ngClass", ctx.isOpen ? "dropdown-port" : "");
|
|
473
|
-
i0.ɵɵattribute("aria-label", ctx.ariaLabel);
|
|
474
|
-
i0.ɵɵadvance(2);
|
|
475
|
-
i0.ɵɵproperty("ngIf", ctx.selectedItem == null ? null : ctx.selectedItem.customIcon);
|
|
476
|
-
i0.ɵɵadvance(1);
|
|
477
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c8, (ctx.selectedItem == null ? null : ctx.selectedItem.customIcon) ? "calc(100% - 48px)" : "calc(100% - 32px)"));
|
|
478
|
-
i0.ɵɵadvance(1);
|
|
479
|
-
i0.ɵɵproperty("ngIf", !ctx.showOnlyIcon)("ngIfElse", _r3);
|
|
480
|
-
i0.ɵɵadvance(3);
|
|
481
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c9, ctx.isOpen ? "rotate(180deg)" : "rotate(0deg)"));
|
|
482
|
-
}
|
|
483
|
-
}, dependencies: [i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i4.CdkFixedSizeVirtualScroll, i4.CdkVirtualForOf, i4.CdkVirtualScrollViewport, i5.LoaderComponent, i6.CdkTrapFocus], styles: [".main-container[_ngcontent-%COMP%]{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[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:inherit;border:1px solid #e0e0e0;border-radius:6px;background-color:#fff;cursor:pointer;display:flex;gap:4px;align-items:center;width:100%;box-sizing:border-box;padding:0 12px}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:hover, .main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin:0!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container[_ngcontent-%COMP%] .dropdown-port[_ngcontent-%COMP%]{background:#E6EBF7}.popup-container[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;padding:8px}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;width:24px;height:24px;top:50%;transform:translateY(-50%);left:18px;z-index:1}.popup-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{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[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] .cancel-icon[_ngcontent-%COMP%]{position:absolute;cursor:pointer;width:24px;height:24px;top:50%;transform:translateY(-50%);right:18px;z-index:1}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{height:100%;min-height:200px;padding:8px 0 8px 8px;overflow-y:scroll}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:0}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:10px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .noData[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%]{height:100%}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{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[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:focus-visible{background-color:#f5f7fc;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .primaryText[_ngcontent-%COMP%]{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .secondaryText[_ngcontent-%COMP%]{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{width:10%;display:flex;justify-content:flex-end}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .dropdown-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]{cursor:not-allowed!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]:hover, .popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%]:focus-visible{background-color:transparent!important;outline:none!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-disabled[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#929dab!important;-webkit-user-select:none!important;user-select:none!important}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item-selected[_ngcontent-%COMP%]{background-color:#e0e6f6;outline:none}.popup-container[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .icon-only[_ngcontent-%COMP%]{justify-content:center!important}[_ngcontent-%COMP%]::-webkit-scrollbar{height:8px;width:8px;background:#ffffff;border-radius:13px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:128px}.status-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center}"] });
|
|
484
|
-
(function () {
|
|
485
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DropdownComponent, [{
|
|
486
|
-
type: Component,
|
|
487
|
-
args: [{ selector: "mis-dropdown", template: "<div (click)=\"setUpAsyncDataSearch()\"\n(keyup.enter)=\"setUpAsyncDataSearch()\"\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]=\"customStyles\"\n [attr.aria-label]=\"ariaLabel\"\n [ngClass]=\"isOpen ? 'dropdown-port': ''\"\n >\n <img class=\"img-container\" [width]=\"16\" [height]=\"16\" [src]=\"selectedItem?.customIcon\" *ngIf=\"selectedItem?.customIcon\">\n <div class=\"label\" [ngStyle]=\"{width: selectedItem?.customIcon ? 'calc(100% - 48px)' : 'calc(100% - 32px)'}\">\n <p class=\"text\" *ngIf=\"!showOnlyIcon; else showIcon\">\n {{ multiLine ? selectedItem?.label?.primaryText : selectedItem?.label || label }}\n </p>\n <ng-template #showIcon>\n <p class=\"text\" *ngIf=\"!selectedItem?.icon\">\n {{ label }}\n </p>\n <img class=\"icon\" *ngIf=\"!!selectedItem?.icon\" [src]=\"selectedItem?.icon\" alt=\"no img\" />\n </ng-template>\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<ng-template #popupContainer>\n <div\n class=\"popup-container\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\" tabindex=\"0\"\n [ngStyle]=\"{\n height: dropdownListHeight,\n width: dropdownListWidth\n }\"\n (keyup.esc)=\"closeOnEsc($event)\"\n aria-label=\"dropdown\"\n >\n <div *ngIf=\"searchEnabled\" class=\"search-container\">\n <svg\n *ngIf=\"!isSearchInputFocused\"\n class=\"search-icon\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M4.21508 11.1456C4.21508 7.3179 7.33722 4.21165 11.1926 4.21165C15.048 4.21165 18.1702 7.3179 18.1702 11.1456C18.1702 12.6931 17.6599 14.1226 16.7972 15.2767L15.3685 16.7013C14.2044 17.5668 12.759 18.0796 11.1926 18.0796C7.33722 18.0796 4.21508 14.9734 4.21508 11.1456ZM15.9421 17.7835C14.6021 18.7329 12.9627 19.2913 11.1926 19.2913C6.66977 19.2913 3 15.6461 3 11.1456C3 6.64512 6.66977 3 11.1926 3C15.7155 3 19.3852 6.64512 19.3852 11.1456C19.3852 12.9371 18.8037 14.5931 17.8184 15.9375L19.8361 17.4048C20.6705 17.912 21.7554 18.6543 20.2454 20.215C18.7353 21.7756 18.0099 20.6663 17.4991 19.8364L15.9421 17.7835Z\"\n fill=\"#6A737D\"\n />\n </svg>\n <input\n [ngModel]=\"searchInput\"\n [ngStyle]=\"{\n paddingLeft: isSearchInputFocused ? '12px' : '45px',\n border: isSearchInputFocused ? '1px solid #0937B2' : '1px solid #e0e0e0',\n paddingRight: isSearchInputFocused ? '45px' : '10px'\n }\"\n [tabIndex]=\"0\"\n (ngModelChange)=\"searchInputOnChange($event)\"\n [placeholder]=\"isSearchInputFocused ? '' : searchLabel\"\n (focus)=\"searchInputFocused(true)\"\n class=\"search-input\"\n [attr.aria-label]=\"searchLabel\"\n />\n <svg\n *ngIf=\"isSearchInputFocused\"\n class=\"cancel-icon\"\n (click)=\"searchInputCanceled($event)\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M8.87446 7.32144C8.44588 6.89285 7.751 6.89285 7.32242 7.32144C6.89383 7.75002 6.89383 8.4449 7.32242 8.87349L10.4488 11.9999L7.32357 15.1252C6.89498 15.5538 6.89498 16.2486 7.32357 16.6772C7.75215 17.1058 8.44703 17.1058 8.87561 16.6772L12.0009 13.552L15.1261 16.6772C15.5547 17.1058 16.2496 17.1058 16.6781 16.6772C17.1067 16.2486 17.1067 15.5537 16.6781 15.1251L13.5529 11.9999L16.6793 8.87354C17.1079 8.44496 17.1079 7.75008 16.6793 7.3215C16.2507 6.89291 15.5558 6.89291 15.1273 7.3215L12.0009 10.4479L8.87446 7.32144Z\"\n fill=\"#6A737D\"\n />\n </svg>\n </div>\n <div class=\"status-container\" *ngIf=\"loading\">\n <mis-loader [mobileView]=\"true\"></mis-loader>\n </div>\n <div tabindex=\"-1\" *ngIf=\"!searchEnabled\" cdkFocusInitial></div>\n <div class=\"items\" *ngIf=\"!loading \"> \n <cdk-virtual-scroll-viewport *ngIf=\"!((searchInput ? searchData : data).length === 0)\" [itemSize]=\"itemSizeForCdk\" class=\"dropdown-viewport\">\n <div\n class=\"item\"\n tabindex=\"0\"\n [ngClass]=\"{ 'item-disabled': item.disabled, 'item-selected': (higlightSelectedValue && item.value === selectedItem?.value), 'icon-only' : showOnlyIcon }\"\n (click)=\"item.disabled ? null : selectItem(item)\"\n (keyup.enter)=\"item.disabled ? null : selectItem(item)\"\n *cdkVirtualFor=\"let item of searchInput ? searchData : data;\"\n tabIndex=\"0\"\n >\n <ng-container *ngIf=\"customItem; else standardItem\">\n <ng-container\n [ngTemplateOutlet]=\"customItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-container>\n </ng-container>\n <ng-template #standardItem>\n <div class=\"label\" *ngIf=\"!showOnlyIcon\" [ngStyle]=\"{ width: item.icon ? '90%' : '100%', 'display': multiLine ? 'flex': 'inherit', 'flex-direction': multiLine ? 'column': 'inherit' }\">\n <span class=\"primaryText\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\">{{ multiLine ? item?.label?.primaryText : item?.label }}</span>\n <span class=\"secondaryText\" *ngIf=\"multiLine\" [ngStyle]=\"getIconStyles(item.icon, activeItem)\"> {{ item?.label?.secondaryText ? item?.label?.secondaryText : additionalInfoMessage }} </span>\n </div>\n <div class=\"icon-container\" *ngIf=\"item.icon\">\n <img class=\"icon\" [src]=\"item.icon\" alt=\"no img\" />\n </div>\n </ng-template>\n </div>\n </cdk-virtual-scroll-viewport>\n <div class=\"noData\" *ngIf=\"(searchInput ? searchData : data).length === 0\">\n {{ searchInput === \"\" ? noDataMessage : \"No results\" }}\n </div>\n </div>\n </div>\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;gap:4px;align-items:center;width:100%;box-sizing:border-box;padding:0 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;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .text{margin:0!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.main-container .dropdown .label .count{background-color:#e0e0e0;border-radius:50%;padding:2px 7px;margin:0}.main-container .dropdown .handle{width:24px;height:24px;transition:.3s;position:absolute;right:12px;border-radius:50%;overflow:hidden}.main-container .dropdown-port{background:#E6EBF7}.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{height:100%;min-height:200px;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:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.popup-container .items .dropdown-viewport{height:100%}.popup-container .items .dropdown-viewport .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 .dropdown-viewport .item:hover,.popup-container .items .dropdown-viewport .item:focus-visible{background-color:#f5f7fc;outline:none}.popup-container .items .dropdown-viewport .item .label{width:100%;line-height:20px;font-size:14px;font-style:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden}.popup-container .items .dropdown-viewport .item .label .primaryText{color:#181f33;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .label .secondaryText{color:#6a737d;font-family:Lato;font-size:14px;line-height:20px;letter-spacing:.2px}.popup-container .items .dropdown-viewport .item .icon-container{width:10%;display:flex;justify-content:flex-end}.popup-container .items .dropdown-viewport .item .icon-container .icon{width:20px;height:20px}.popup-container .items .item-disabled{cursor:not-allowed!important}.popup-container .items .item-disabled:hover,.popup-container .items .item-disabled:focus-visible{background-color:transparent!important;outline:none!important}.popup-container .items .item-disabled .label>span{color:#929dab!important;-webkit-user-select:none!important;user-select:none!important}.popup-container .items .item-selected{background-color:#e0e6f6;outline:none}.popup-container .items .icon-only{justify-content:center!important}::-webkit-scrollbar{height:8px;width:8px;background:#ffffff;border-radius:13px}::-webkit-scrollbar-thumb{background:#c8cdd3;border-radius:13px;cursor:pointer}.status-container{display:flex;justify-content:center;align-items:center;height:128px}.status-container p{text-align:center}\n"] }]
|
|
488
|
-
}], function () { return [{ type: i0.ElementRef }, { type: i1.Overlay }, { type: i0.ViewContainerRef }]; }, { data: [{
|
|
489
|
-
type: Input
|
|
490
|
-
}], height: [{
|
|
491
|
-
type: Input
|
|
492
|
-
}], ariaLabel: [{
|
|
493
|
-
type: Input
|
|
494
|
-
}], width: [{
|
|
495
|
-
type: Input
|
|
496
|
-
}], label: [{
|
|
497
|
-
type: Input
|
|
498
|
-
}], itemSizeForCdk: [{
|
|
499
|
-
type: Input
|
|
500
|
-
}], showOnlyIcon: [{
|
|
501
|
-
type: Input
|
|
502
|
-
}], higlightSelectedValue: [{
|
|
503
|
-
type: Input
|
|
504
|
-
}], dropdownListHeight: [{
|
|
505
|
-
type: Input
|
|
506
|
-
}], dropdownListWidth: [{
|
|
507
|
-
type: Input
|
|
508
|
-
}], dropdownListPosition: [{
|
|
509
|
-
type: Input
|
|
510
|
-
}], config: [{
|
|
511
|
-
type: Input
|
|
512
|
-
}], searchEnabled: [{
|
|
513
|
-
type: Input
|
|
514
|
-
}], selectedItem: [{
|
|
515
|
-
type: Input
|
|
516
|
-
}], noDataMessage: [{
|
|
517
|
-
type: Input
|
|
518
|
-
}], multiLine: [{
|
|
519
|
-
type: Input
|
|
520
|
-
}], additionalInfoMessage: [{
|
|
521
|
-
type: Input
|
|
522
|
-
}], scrollIntoView: [{
|
|
523
|
-
type: Input
|
|
524
|
-
}], searchLabel: [{
|
|
525
|
-
type: Input
|
|
526
|
-
}], customStyles: [{
|
|
527
|
-
type: Input
|
|
528
|
-
}], activeItem: [{
|
|
529
|
-
type: Input
|
|
530
|
-
}], onChange: [{
|
|
531
|
-
type: Output
|
|
532
|
-
}], selectElement: [{
|
|
533
|
-
type: ViewChild,
|
|
534
|
-
args: ["select", { static: false }]
|
|
535
|
-
}], popupContainer: [{
|
|
536
|
-
type: ViewChild,
|
|
537
|
-
args: ["popupContainer", { static: false }]
|
|
538
|
-
}], viewPort: [{
|
|
539
|
-
type: ViewChild,
|
|
540
|
-
args: [CdkVirtualScrollViewport]
|
|
541
|
-
}], customItem: [{
|
|
542
|
-
type: ContentChild,
|
|
543
|
-
args: ["misCustomItem", { static: false }]
|
|
544
|
-
}], closeOnEsc: [{
|
|
545
|
-
type: HostListener,
|
|
546
|
-
args: ["keyup.esc", ['$event']]
|
|
547
|
-
}] });
|
|
548
|
-
})();
|
|
549
|
-
|
|
550
|
-
class CalculateContainerHeightDirective {
|
|
551
|
-
constructor(el) {
|
|
552
|
-
this.el = el;
|
|
553
|
-
}
|
|
554
|
-
ngAfterViewInit() {
|
|
555
|
-
setTimeout(() => {
|
|
556
|
-
this.setContainerHeight();
|
|
557
|
-
}, 200);
|
|
558
|
-
}
|
|
559
|
-
setContainerHeight() {
|
|
560
|
-
const firstItemElement = this.el.nativeElement.querySelector('.item');
|
|
561
|
-
const firstItemHeight = firstItemElement ? firstItemElement.getBoundingClientRect().height : 0;
|
|
562
|
-
const numberOfItems = this.items ? this.items.length : 0;
|
|
563
|
-
let containerHeight = 0;
|
|
564
|
-
if (firstItemHeight * numberOfItems > 200) {
|
|
565
|
-
containerHeight = 200;
|
|
566
|
-
}
|
|
567
|
-
else if (numberOfItems <= this.visibleItems) {
|
|
568
|
-
containerHeight = firstItemHeight * numberOfItems;
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
containerHeight = firstItemHeight * this.visibleItems;
|
|
572
|
-
}
|
|
573
|
-
this.el.nativeElement.style.height = `${containerHeight}px`;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
CalculateContainerHeightDirective.ɵfac = function CalculateContainerHeightDirective_Factory(t) { return new (t || CalculateContainerHeightDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
577
|
-
CalculateContainerHeightDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CalculateContainerHeightDirective, selectors: [["", "calculateContainerHeight", ""]], inputs: { items: "items", visibleItems: "visibleItems" } });
|
|
578
|
-
(function () {
|
|
579
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CalculateContainerHeightDirective, [{
|
|
580
|
-
type: Directive,
|
|
581
|
-
args: [{
|
|
582
|
-
selector: '[calculateContainerHeight]'
|
|
583
|
-
}]
|
|
584
|
-
}], function () { return [{ type: i0.ElementRef }]; }, { items: [{
|
|
585
|
-
type: Input
|
|
586
|
-
}], visibleItems: [{
|
|
587
|
-
type: Input
|
|
588
|
-
}] });
|
|
589
|
-
})();
|
|
590
|
-
|
|
591
|
-
class DropdownModule {
|
|
592
|
-
static forRoot() {
|
|
593
|
-
return { ngModule: DropdownModule, providers: [] };
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
DropdownModule.ɵfac = function DropdownModule_Factory(t) { return new (t || DropdownModule)(); };
|
|
597
|
-
DropdownModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DropdownModule });
|
|
598
|
-
DropdownModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule, A11yModule] });
|
|
599
|
-
(function () {
|
|
600
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DropdownModule, [{
|
|
601
|
-
type: NgModule,
|
|
602
|
-
args: [{
|
|
603
|
-
declarations: [DropdownComponent, CalculateContainerHeightDirective],
|
|
604
|
-
imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule, A11yModule],
|
|
605
|
-
exports: [DropdownComponent]
|
|
606
|
-
}]
|
|
607
|
-
}], null, null);
|
|
608
|
-
})();
|
|
609
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DropdownModule, { declarations: [DropdownComponent, CalculateContainerHeightDirective], imports: [CommonModule, FormsModule, OverlayModule, ScrollingModule, LoaderModule, A11yModule], exports: [DropdownComponent] }); })();
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* Generated bundle index. Do not edit.
|
|
613
|
-
*/
|
|
614
|
-
|
|
615
|
-
export { DropdownComponent, DropdownModule };
|
|
616
|
-
//# sourceMappingURL=mis-crystal-design-system-dropdown.mjs.map
|