mis-crystal-design-system 18.0.3 → 18.0.5
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 +2 -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 +3 -1
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -1
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +3 -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/dynamic-form/dynamic-form.component.d.ts +1 -1
- package/esm2020/action-list/action-list.component.mjs +370 -0
- package/{esm2022 → esm2020}/action-list/action-list.module.mjs +5 -5
- package/{esm2022 → esm2020}/analytics/analytics.module.mjs +5 -5
- package/esm2020/analytics/analytics.service.mjs +64 -0
- package/esm2020/async-search-dropdown/async-dropdown.component.mjs +525 -0
- package/{esm2022 → esm2020}/async-search-dropdown/async-dropdown.module.mjs +5 -5
- package/esm2020/button/button.component.mjs +87 -0
- package/esm2020/button/button.directive.mjs +61 -0
- package/{esm2022 → esm2020}/button/button.module.mjs +5 -5
- package/esm2020/checkbox/checkbox.component.mjs +124 -0
- package/{esm2022 → esm2020}/checkbox/checkbox.module.mjs +5 -5
- package/esm2020/chip/chip.component.mjs +82 -0
- package/{esm2022 → esm2020}/chip/chip.module.mjs +5 -5
- package/{esm2022 → esm2020}/datepicker_v2/datepicker.module.mjs +5 -5
- package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +183 -0
- package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +449 -0
- package/esm2020/datepicker_v2/utils/index.mjs +45 -0
- package/{esm2022 → esm2020}/daterangepicker_v2/daterangepicker.module.mjs +5 -5
- package/esm2020/daterangepicker_v2/models/drp-config.model.mjs +2 -0
- package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +165 -0
- package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +502 -0
- package/{esm2022/datepicker_v2 → esm2020/daterangepicker_v2}/utils/index.mjs +1 -1
- package/esm2020/drawer/drawer-body/drawer-body.component.mjs +58 -0
- package/{esm2022 → esm2020}/drawer/drawer-ref.mjs +4 -4
- package/{esm2022 → esm2020}/drawer/drawer.module.mjs +5 -5
- package/{esm2022 → esm2020}/drawer/drawer.service.mjs +5 -5
- package/esm2020/dropdown/calculate-container-height.directive.mjs +41 -0
- package/esm2020/dropdown/dropdown.component.mjs +472 -0
- package/{esm2022 → esm2020}/dropdown/dropdown.module.mjs +5 -5
- package/esm2020/dynamic-form/dynamic-form.component.mjs +1108 -0
- package/{esm2022 → esm2020}/dynamic-form/dynamic-form.module.mjs +13 -13
- package/esm2020/fab/fab.component.mjs +144 -0
- package/{esm2022 → esm2020}/fab/fab.module.mjs +5 -5
- package/esm2020/filter/filter-panel/filter-panel.component.mjs +403 -0
- package/{esm2022 → esm2020}/filter/filters.module.mjs +17 -17
- package/esm2020/filter/has-value.pipe.mjs +31 -0
- package/{esm2022 → esm2020}/input/directives/input/input.directive.mjs +6 -6
- package/esm2020/input/mis-input.component.mjs +84 -0
- package/{esm2022 → esm2020}/input/mis-input.module.mjs +5 -5
- package/esm2020/input-stepper/input-stepper/input-stepper.component.mjs +88 -0
- package/{esm2022 → esm2020}/input-stepper/input-stepper.module.mjs +5 -5
- package/esm2020/loader/loader.component.mjs +24 -0
- package/{esm2022 → esm2020}/loader/loader.module.mjs +5 -5
- package/esm2020/menu/menu-close.directive.mjs +25 -0
- package/{esm2022 → esm2020}/menu/menu.directive.mjs +7 -7
- package/{esm2022 → esm2020}/menu/menu.module.mjs +5 -5
- package/esm2020/mobile-filter/mobile-filter.component.mjs +181 -0
- package/{esm2022 → esm2020}/mobile-filter/mobile-filter.module.mjs +5 -5
- package/{esm2022 → esm2020}/modal/modal.module.mjs +5 -5
- package/esm2020/modal/modal.service.mjs +70 -0
- package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +55 -0
- package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +491 -0
- package/{esm2022 → esm2020}/multi-select-dropdown/multi-select-dropdown.module.mjs +5 -5
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +517 -0
- package/{esm2022 → esm2020}/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +5 -5
- package/esm2020/phone-input/phone-input.component.mjs +71 -0
- package/{esm2022 → esm2020}/phone-input/phone-input.module.mjs +5 -5
- package/esm2020/radio-button/radio-button.component.mjs +56 -0
- package/{esm2022 → esm2020}/radio-button/radio-button.module.mjs +5 -5
- package/esm2020/ske-loader/ske-loader.component.mjs +53 -0
- package/{esm2022 → esm2020}/ske-loader/ske-loader.module.mjs +5 -5
- package/esm2020/slider/slider.component.mjs +45 -0
- package/{esm2022 → esm2020}/slider/slider.module.mjs +7 -7
- package/esm2020/snackbar/snackbar/snackbar.component.mjs +72 -0
- package/{esm2022 → esm2020}/snackbar/snackbar.module.mjs +5 -5
- package/esm2020/snackbar/snackbar.service.mjs +47 -0
- package/{esm2022 → esm2020}/specificdatepicker/specificdatepicker.module.mjs +5 -5
- package/esm2020/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +646 -0
- package/esm2020/specificdatepicker/tz-specificdatepicker.directive.mjs +196 -0
- package/esm2020/specificdatepicker/utils/index.mjs +45 -0
- package/esm2020/star-rating/star-rating.component.mjs +112 -0
- package/{esm2022 → esm2020}/star-rating/star-rating.module.mjs +5 -5
- package/esm2020/switch/switch.component.mjs +55 -0
- package/{esm2022 → esm2020}/switch/switch.module.mjs +5 -5
- package/esm2020/table/custom-table-cell.directive.mjs +42 -0
- package/esm2020/table/filter/filter.component.mjs +176 -0
- package/esm2020/table/sub-table/sub-table.component.mjs +193 -0
- package/esm2020/table/table.component.mjs +492 -0
- package/{esm2022 → esm2020}/table/table.module.mjs +5 -5
- package/esm2020/timepicker/timepicker.component.mjs +370 -0
- package/esm2020/timepicker/timepicker.directive.mjs +69 -0
- package/{esm2022 → esm2020}/timepicker/timepicker.module.mjs +5 -5
- package/esm2020/timerangepicker/timerangepicker.component.mjs +236 -0
- package/{esm2022 → esm2020}/timerangepicker/timerangepicker.module.mjs +5 -5
- package/esm2020/toast/toast.component.mjs +50 -0
- package/{esm2022 → esm2020}/toast/toast.data.service.mjs +8 -8
- package/{esm2022 → esm2020}/toast/toast.module.mjs +5 -5
- package/esm2020/toast/toast.service.mjs +91 -0
- package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +79 -0
- package/esm2020/tooltip/tooltip.directive.mjs +143 -0
- package/{esm2022 → esm2020}/tooltip/tooltip.module.mjs +5 -5
- package/esm2020/virtual-scroll/virtual-scroll.component.mjs +190 -0
- package/{esm2022 → esm2020}/virtual-scroll/virtual-scroll.module.mjs +7 -7
- package/esm2020/widgets/classes/async-widget.mjs +23 -0
- package/{esm2022 → esm2020}/widgets/classes/base-widget.mjs +1 -1
- package/esm2020/widgets/classes/sync-widget.mjs +20 -0
- package/{esm2022 → esm2020}/widgets/services/widget.service.mjs +5 -5
- package/{esm2022 → esm2020}/widgets/widgets.module.mjs +5 -5
- package/fab/fab.component.d.ts +4 -4
- package/fesm2015/mis-crystal-design-system-action-list.mjs +446 -0
- package/fesm2015/mis-crystal-design-system-action-list.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-analytics.mjs +87 -0
- package/fesm2015/mis-crystal-design-system-analytics.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +618 -0
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-button.mjs +189 -0
- package/fesm2015/mis-crystal-design-system-button.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-checkbox.mjs +166 -0
- package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-chip.mjs +123 -0
- package/fesm2015/mis-crystal-design-system-chip.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +751 -0
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +769 -0
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-drawer.mjs +185 -0
- package/fesm2015/mis-crystal-design-system-drawer.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-dropdown.mjs +616 -0
- package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-dynamic-form.mjs +1337 -0
- package/fesm2015/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-fab.mjs +186 -0
- package/fesm2015/mis-crystal-design-system-fab.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-filter.mjs +559 -0
- package/fesm2015/mis-crystal-design-system-filter.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-input-stepper.mjs +124 -0
- package/fesm2015/mis-crystal-design-system-input-stepper.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-input.mjs +165 -0
- package/fesm2015/mis-crystal-design-system-input.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-loader.mjs +57 -0
- package/fesm2015/mis-crystal-design-system-loader.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-menu.mjs +135 -0
- package/fesm2015/mis-crystal-design-system-menu.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-mobile-filter.mjs +227 -0
- package/fesm2015/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-modal.mjs +184 -0
- package/fesm2015/mis-crystal-design-system-modal.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +550 -0
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +559 -0
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-phone-input.mjs +107 -0
- package/fesm2015/mis-crystal-design-system-phone-input.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-radio-button.mjs +89 -0
- package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs +86 -0
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-slider.mjs +88 -0
- package/fesm2015/mis-crystal-design-system-slider.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-snackbar.mjs +175 -0
- package/fesm2015/mis-crystal-design-system-snackbar.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs +970 -0
- package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-star-rating.mjs +145 -0
- package/fesm2015/mis-crystal-design-system-star-rating.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-switch.mjs +88 -0
- package/fesm2015/mis-crystal-design-system-switch.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-table.mjs +1045 -0
- package/fesm2015/mis-crystal-design-system-table.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-timepicker.mjs +484 -0
- package/fesm2015/mis-crystal-design-system-timepicker.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-timerangepicker.mjs +273 -0
- package/fesm2015/mis-crystal-design-system-timerangepicker.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-toast.mjs +214 -0
- package/fesm2015/mis-crystal-design-system-toast.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-tooltip.mjs +272 -0
- package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs +259 -0
- package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
- package/fesm2015/mis-crystal-design-system-widgets.mjs +131 -0
- package/fesm2015/mis-crystal-design-system-widgets.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-action-list.mjs +113 -106
- package/fesm2020/mis-crystal-design-system-action-list.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-analytics.mjs +9 -9
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-analytics.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-async-search-dropdown.mjs +144 -138
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-button.mjs +172 -0
- package/fesm2020/mis-crystal-design-system-button.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-checkbox.mjs +150 -0
- package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-chip.mjs +108 -0
- package/fesm2020/mis-crystal-design-system-chip.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-datepicker_v2.mjs +140 -133
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +736 -0
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-drawer.mjs +33 -34
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-dropdown.mjs +184 -176
- package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-dynamic-form.mjs +456 -441
- package/fesm2020/mis-crystal-design-system-dynamic-form.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-fab.mjs +47 -48
- package/fesm2020/mis-crystal-design-system-fab.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-filter.mjs +140 -133
- package/fesm2020/mis-crystal-design-system-filter.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-input-stepper.mjs +34 -35
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/{esm2022/input/mis-input.component.mjs → fesm2020/mis-crystal-design-system-input.mjs} +109 -49
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-loader.mjs +50 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-loader.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-menu.mjs +16 -16
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-menu.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-mobile-filter.mjs +206 -0
- package/fesm2020/mis-crystal-design-system-mobile-filter.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-modal.mjs +33 -34
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-modal.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-multi-select-dropdown.mjs +109 -107
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-nested-multi-select-dropdown.mjs +129 -128
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-phone-input.mjs +21 -22
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-radio-button.mjs +82 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs +76 -0
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-slider.mjs +79 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-slider.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-snackbar.mjs +32 -32
- package/fesm2020/mis-crystal-design-system-snackbar.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-specificdatepicker.mjs +204 -204
- package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-star-rating.mjs +28 -29
- package/fesm2020/mis-crystal-design-system-star-rating.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-styles.mjs +4 -0
- package/fesm2020/mis-crystal-design-system-styles.mjs.map +1 -0
- package/fesm2020/mis-crystal-design-system-switch.mjs +81 -0
- package/fesm2020/mis-crystal-design-system-switch.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-table.mjs +321 -314
- package/fesm2020/mis-crystal-design-system-table.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-timepicker.mjs +74 -78
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-timerangepicker.mjs +25 -26
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-toast.mjs +34 -35
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-toast.mjs.map +1 -1
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-tooltip.mjs +47 -47
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-utils.mjs +24 -0
- package/fesm2020/mis-crystal-design-system-utils.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-virtual-scroll.mjs +52 -50
- package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-widgets.mjs +4 -4
- package/{fesm2022 → fesm2020}/mis-crystal-design-system-widgets.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system.mjs +24 -0
- package/fesm2020/mis-crystal-design-system.mjs.map +1 -0
- package/filter/filter-panel/filter-panel.component.d.ts +4 -3
- 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 +230 -148
- 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/esm2022/action-list/action-list.component.mjs +0 -363
- package/esm2022/analytics/analytics.service.mjs +0 -64
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +0 -519
- package/esm2022/button/button.component.mjs +0 -88
- package/esm2022/button/button.directive.mjs +0 -61
- package/esm2022/checkbox/checkbox.component.mjs +0 -124
- package/esm2022/chip/chip.component.mjs +0 -82
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +0 -183
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +0 -442
- package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +0 -2
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +0 -156
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +0 -473
- package/esm2022/daterangepicker_v2/utils/index.mjs +0 -45
- package/esm2022/drawer/drawer-body/drawer-body.component.mjs +0 -59
- package/esm2022/dropdown/calculate-container-height.directive.mjs +0 -41
- package/esm2022/dropdown/dropdown.component.mjs +0 -464
- package/esm2022/dynamic-form/dynamic-form.component.mjs +0 -1093
- package/esm2022/fab/fab.component.mjs +0 -145
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +0 -396
- package/esm2022/filter/has-value.pipe.mjs +0 -31
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +0 -89
- package/esm2022/loader/loader.component.mjs +0 -25
- package/esm2022/menu/menu-close.directive.mjs +0 -25
- package/esm2022/mobile-filter/mobile-filter.component.mjs +0 -180
- package/esm2022/modal/modal.service.mjs +0 -70
- package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +0 -56
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +0 -489
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +0 -516
- package/esm2022/phone-input/phone-input.component.mjs +0 -72
- package/esm2022/radio-button/radio-button.component.mjs +0 -57
- package/esm2022/ske-loader/ske-loader.component.mjs +0 -54
- package/esm2022/slider/slider.component.mjs +0 -46
- package/esm2022/snackbar/snackbar/snackbar.component.mjs +0 -72
- package/esm2022/snackbar/snackbar.service.mjs +0 -47
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +0 -646
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +0 -196
- package/esm2022/specificdatepicker/utils/index.mjs +0 -45
- package/esm2022/star-rating/star-rating.component.mjs +0 -113
- package/esm2022/switch/switch.component.mjs +0 -56
- package/esm2022/table/custom-table-cell.directive.mjs +0 -42
- package/esm2022/table/filter/filter.component.mjs +0 -177
- package/esm2022/table/sub-table/sub-table.component.mjs +0 -192
- package/esm2022/table/table.component.mjs +0 -485
- package/esm2022/timepicker/timepicker.component.mjs +0 -374
- package/esm2022/timepicker/timepicker.directive.mjs +0 -69
- package/esm2022/timerangepicker/timerangepicker.component.mjs +0 -237
- package/esm2022/toast/toast.component.mjs +0 -51
- package/esm2022/toast/toast.service.mjs +0 -91
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +0 -79
- package/esm2022/tooltip/tooltip.directive.mjs +0 -143
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +0 -188
- package/esm2022/widgets/classes/async-widget.mjs +0 -23
- package/esm2022/widgets/classes/sync-widget.mjs +0 -20
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-button.mjs +0 -173
- package/fesm2022/mis-crystal-design-system-button.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +0 -150
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-chip.mjs +0 -108
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +0 -698
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +0 -146
- package/fesm2022/mis-crystal-design-system-loader.mjs +0 -51
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +0 -205
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +0 -83
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +0 -77
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs +0 -80
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs +0 -82
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-table.mjs.map +0 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +0 -1
- /package/{esm2022 → esm2020}/action-list/index.mjs +0 -0
- /package/{esm2022 → esm2020}/action-list/mis-crystal-design-system-action-list.mjs +0 -0
- /package/{esm2022 → esm2020}/action-list/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/analytics/index.mjs +0 -0
- /package/{esm2022 → esm2020}/analytics/mis-crystal-design-system-analytics.mjs +0 -0
- /package/{esm2022 → esm2020}/analytics/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/async-search-dropdown/index.mjs +0 -0
- /package/{esm2022 → esm2020}/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs +0 -0
- /package/{esm2022 → esm2020}/async-search-dropdown/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/button/index.mjs +0 -0
- /package/{esm2022 → esm2020}/button/mis-crystal-design-system-button.mjs +0 -0
- /package/{esm2022 → esm2020}/button/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/checkbox/index.mjs +0 -0
- /package/{esm2022 → esm2020}/checkbox/mis-crystal-design-system-checkbox.mjs +0 -0
- /package/{esm2022 → esm2020}/checkbox/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/chip/index.mjs +0 -0
- /package/{esm2022 → esm2020}/chip/mis-crystal-design-system-chip.mjs +0 -0
- /package/{esm2022 → esm2020}/chip/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/datepicker_v2/datepicker-constants.mjs +0 -0
- /package/{esm2022 → esm2020}/datepicker_v2/index.mjs +0 -0
- /package/{esm2022 → esm2020}/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs +0 -0
- /package/{esm2022 → esm2020}/datepicker_v2/models/dp-config.model.mjs +0 -0
- /package/{esm2022 → esm2020}/datepicker_v2/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/daterangepicker_v2/daterangepicker-constants.mjs +0 -0
- /package/{esm2022 → esm2020}/daterangepicker_v2/index.mjs +0 -0
- /package/{esm2022 → esm2020}/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs +0 -0
- /package/{esm2022 → esm2020}/daterangepicker_v2/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/drawer/drawer-constants.mjs +0 -0
- /package/{esm2022 → esm2020}/drawer/index.mjs +0 -0
- /package/{esm2022 → esm2020}/drawer/mis-crystal-design-system-drawer.mjs +0 -0
- /package/{esm2022 → esm2020}/drawer/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/dropdown/index.mjs +0 -0
- /package/{esm2022 → esm2020}/dropdown/mis-crystal-design-system-dropdown.mjs +0 -0
- /package/{esm2022 → esm2020}/dropdown/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/dynamic-form/dynamic-form.namespace.mjs +0 -0
- /package/{esm2022 → esm2020}/dynamic-form/index.mjs +0 -0
- /package/{esm2022 → esm2020}/dynamic-form/mis-crystal-design-system-dynamic-form.mjs +0 -0
- /package/{esm2022 → esm2020}/dynamic-form/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/fab/index.mjs +0 -0
- /package/{esm2022 → esm2020}/fab/mis-crystal-design-system-fab.mjs +0 -0
- /package/{esm2022 → esm2020}/fab/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/filter/animations/slideFromRight.mjs +0 -0
- /package/{esm2022 → esm2020}/filter/index.mjs +0 -0
- /package/{esm2022 → esm2020}/filter/mis-crystal-design-system-filter.mjs +0 -0
- /package/{esm2022 → esm2020}/filter/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/index.mjs +0 -0
- /package/{esm2022 → esm2020}/input/index.mjs +0 -0
- /package/{esm2022 → esm2020}/input/mis-crystal-design-system-input.mjs +0 -0
- /package/{esm2022 → esm2020}/input/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/input-stepper/index.mjs +0 -0
- /package/{esm2022 → esm2020}/input-stepper/mis-crystal-design-system-input-stepper.mjs +0 -0
- /package/{esm2022 → esm2020}/input-stepper/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/loader/index.mjs +0 -0
- /package/{esm2022 → esm2020}/loader/mis-crystal-design-system-loader.mjs +0 -0
- /package/{esm2022 → esm2020}/loader/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/menu/index.mjs +0 -0
- /package/{esm2022 → esm2020}/menu/mis-crystal-design-system-menu.mjs +0 -0
- /package/{esm2022 → esm2020}/menu/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/mis-crystal-design-system.mjs +0 -0
- /package/{esm2022 → esm2020}/mobile-filter/index.mjs +0 -0
- /package/{esm2022 → esm2020}/mobile-filter/mis-crystal-design-system-mobile-filter.mjs +0 -0
- /package/{esm2022 → esm2020}/mobile-filter/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/modal/index.mjs +0 -0
- /package/{esm2022 → esm2020}/modal/mis-crystal-design-system-modal.mjs +0 -0
- /package/{esm2022 → esm2020}/modal/modal-constants.mjs +0 -0
- /package/{esm2022 → esm2020}/modal/modal-ref.mjs +0 -0
- /package/{esm2022 → esm2020}/modal/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/multi-select-dropdown/index.mjs +0 -0
- /package/{esm2022 → esm2020}/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.mjs +0 -0
- /package/{esm2022 → esm2020}/multi-select-dropdown/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/nested-multi-select-dropdown/index.mjs +0 -0
- /package/{esm2022 → esm2020}/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.mjs +0 -0
- /package/{esm2022 → esm2020}/nested-multi-select-dropdown/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/phone-input/index.mjs +0 -0
- /package/{esm2022 → esm2020}/phone-input/mis-crystal-design-system-phone-input.mjs +0 -0
- /package/{esm2022 → esm2020}/phone-input/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/public-api.mjs +0 -0
- /package/{esm2022 → esm2020}/radio-button/index.mjs +0 -0
- /package/{esm2022 → esm2020}/radio-button/mis-crystal-design-system-radio-button.mjs +0 -0
- /package/{esm2022 → esm2020}/radio-button/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/ske-loader/index.mjs +0 -0
- /package/{esm2022 → esm2020}/ske-loader/mis-crystal-design-system-ske-loader.mjs +0 -0
- /package/{esm2022 → esm2020}/ske-loader/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/slider/index.mjs +0 -0
- /package/{esm2022 → esm2020}/slider/mis-crystal-design-system-slider.mjs +0 -0
- /package/{esm2022 → esm2020}/slider/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/snackbar/index.mjs +0 -0
- /package/{esm2022 → esm2020}/snackbar/mis-crystal-design-system-snackbar.mjs +0 -0
- /package/{esm2022 → esm2020}/snackbar/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/specificdatepicker/daterangepicker-constants.mjs +0 -0
- /package/{esm2022 → esm2020}/specificdatepicker/index.mjs +0 -0
- /package/{esm2022 → esm2020}/specificdatepicker/mis-crystal-design-system-specificdatepicker.mjs +0 -0
- /package/{esm2022 → esm2020}/specificdatepicker/models/sdp-config.model.mjs +0 -0
- /package/{esm2022 → esm2020}/specificdatepicker/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/star-rating/index.mjs +0 -0
- /package/{esm2022 → esm2020}/star-rating/mis-crystal-design-system-star-rating.mjs +0 -0
- /package/{esm2022 → esm2020}/star-rating/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/styles/index.mjs +0 -0
- /package/{esm2022 → esm2020}/styles/mis-crystal-design-system-styles.mjs +0 -0
- /package/{esm2022 → esm2020}/styles/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/switch/index.mjs +0 -0
- /package/{esm2022 → esm2020}/switch/mis-crystal-design-system-switch.mjs +0 -0
- /package/{esm2022 → esm2020}/switch/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/table/index.mjs +0 -0
- /package/{esm2022 → esm2020}/table/mis-crystal-design-system-table.mjs +0 -0
- /package/{esm2022 → esm2020}/table/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/timepicker/index.mjs +0 -0
- /package/{esm2022 → esm2020}/timepicker/mis-crystal-design-system-timepicker.mjs +0 -0
- /package/{esm2022 → esm2020}/timepicker/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/timepicker/time.namespace.mjs +0 -0
- /package/{esm2022 → esm2020}/timerangepicker/index.mjs +0 -0
- /package/{esm2022 → esm2020}/timerangepicker/mis-crystal-design-system-timerangepicker.mjs +0 -0
- /package/{esm2022 → esm2020}/timerangepicker/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/timerangepicker/timerange.namespace.mjs +0 -0
- /package/{esm2022 → esm2020}/toast/index.mjs +0 -0
- /package/{esm2022 → esm2020}/toast/mis-crystal-design-system-toast.mjs +0 -0
- /package/{esm2022 → esm2020}/toast/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/index.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/mis-crystal-design-system-tooltip.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/models/tooltip.model.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/utils/index.mjs +0 -0
- /package/{esm2022 → esm2020}/utils/mis-crystal-design-system-utils.mjs +0 -0
- /package/{esm2022 → esm2020}/virtual-scroll/index.mjs +0 -0
- /package/{esm2022 → esm2020}/virtual-scroll/mis-crystal-design-system-virtual-scroll.mjs +0 -0
- /package/{esm2022 → esm2020}/virtual-scroll/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/virtual-scroll/virtual-scroll.constants.mjs +0 -0
- /package/{esm2022 → esm2020}/widgets/classes/widget-group.mjs +0 -0
- /package/{esm2022 → esm2020}/widgets/index.mjs +0 -0
- /package/{esm2022 → esm2020}/widgets/interfaces/widgets.model.mjs +0 -0
- /package/{esm2022 → esm2020}/widgets/mis-crystal-design-system-widgets.mjs +0 -0
- /package/{esm2022 → esm2020}/widgets/public_api.mjs +0 -0
- /package/{fesm2022 → fesm2015}/mis-crystal-design-system-styles.mjs +0 -0
- /package/{fesm2022 → fesm2015}/mis-crystal-design-system-styles.mjs.map +0 -0
- /package/{fesm2022 → fesm2015}/mis-crystal-design-system-utils.mjs +0 -0
- /package/{fesm2022 → fesm2015}/mis-crystal-design-system-utils.mjs.map +0 -0
- /package/{fesm2022 → fesm2015}/mis-crystal-design-system.mjs +0 -0
- /package/{fesm2022 → fesm2015}/mis-crystal-design-system.mjs.map +0 -0
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Input, Output, Directive, HostBinding, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
|
|
6
|
-
const _c0 = (a0, a1, a2, a3, a4, a5, a6, a7) => ({ solid: a0, outline: a1, text: a2, large: a3, medium: a4, small: a5, "large-mobile": a6, "small-mobile": a7 });
|
|
7
|
-
const _c1 = (a0, a1, a2, a3, a4) => ({ "border-top-left-radius": a0, "border-bottom-left-radius": a1, "border-top-right-radius": a2, "border-bottom-right-radius": a3, width: a4 });
|
|
8
|
-
function ButtonComponent_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelementStart(0, "span", 3);
|
|
10
|
-
i0.ɵɵelement(1, "img", 4);
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} if (rf & 2) {
|
|
13
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
14
|
-
i0.ɵɵadvance();
|
|
15
|
-
i0.ɵɵproperty("src", ctx_r0.iconUrl, i0.ɵɵsanitizeUrl);
|
|
16
|
-
} }
|
|
17
|
-
function ButtonComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
19
|
-
i0.ɵɵelement(1, "img", 4);
|
|
20
|
-
i0.ɵɵelementEnd();
|
|
21
|
-
} if (rf & 2) {
|
|
22
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
23
|
-
i0.ɵɵadvance();
|
|
24
|
-
i0.ɵɵproperty("src", ctx_r0.iconUrl, i0.ɵɵsanitizeUrl);
|
|
25
|
-
} }
|
|
26
|
-
class ButtonComponent {
|
|
27
|
-
constructor() {
|
|
28
|
-
this.name = "Enabled";
|
|
29
|
-
this.type = "Solid";
|
|
30
|
-
this.size = "Medium";
|
|
31
|
-
this.width = "";
|
|
32
|
-
this.showIcon = false;
|
|
33
|
-
this.iconUrl = "";
|
|
34
|
-
this.iconPosition = "Left";
|
|
35
|
-
this.disabled = false;
|
|
36
|
-
this.disableLeftBorderRadius = false;
|
|
37
|
-
this.disableRightBorderRadius = false;
|
|
38
|
-
/** Emits event when button is clicked */
|
|
39
|
-
this.click = new EventEmitter();
|
|
40
|
-
}
|
|
41
|
-
ngOnInit() { }
|
|
42
|
-
onClick(event) {
|
|
43
|
-
this.click.emit(event);
|
|
44
|
-
}
|
|
45
|
-
static { this.ɵfac = function ButtonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ButtonComponent)(); }; }
|
|
46
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ButtonComponent, selectors: [["mis-button"]], inputs: { name: "name", type: "type", size: "size", width: "width", showIcon: "showIcon", iconUrl: "iconUrl", iconPosition: "iconPosition", disabled: "disabled", disableLeftBorderRadius: "disableLeftBorderRadius", disableRightBorderRadius: "disableRightBorderRadius" }, outputs: { click: "click" }, decls: 4, vars: 21, consts: [[3, "click", "disabled", "ngClass", "ngStyle"], ["id", "left-icon", 4, "ngIf"], ["id", "right-icon", 4, "ngIf"], ["id", "left-icon"], ["alt", "", 3, "src"], ["id", "right-icon"]], template: function ButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
48
|
-
i0.ɵɵlistener("click", function ButtonComponent_Template_button_click_0_listener($event) { return ctx.onClick($event); });
|
|
49
|
-
i0.ɵɵtemplate(1, ButtonComponent_span_1_Template, 2, 1, "span", 1);
|
|
50
|
-
i0.ɵɵtext(2);
|
|
51
|
-
i0.ɵɵtemplate(3, ButtonComponent_span_3_Template, 2, 1, "span", 2);
|
|
52
|
-
i0.ɵɵelementEnd();
|
|
53
|
-
} if (rf & 2) {
|
|
54
|
-
i0.ɵɵproperty("disabled", ctx.disabled)("ngClass", i0.ɵɵpureFunction8(6, _c0, ctx.type === "Solid", ctx.type === "Outline", ctx.type === "Text", ctx.size === "Large", ctx.size === "Medium", ctx.size === "Small", ctx.size === "Large-M", ctx.size === "Small-M"))("ngStyle", i0.ɵɵpureFunction5(15, _c1, ctx.disableLeftBorderRadius ? "0px" : "", ctx.disableLeftBorderRadius ? "0px" : "", ctx.disableRightBorderRadius ? "0px" : "", ctx.disableRightBorderRadius ? "0px" : "", ctx.width));
|
|
55
|
-
i0.ɵɵadvance();
|
|
56
|
-
i0.ɵɵproperty("ngIf", ctx.showIcon && ctx.iconPosition === "Left");
|
|
57
|
-
i0.ɵɵadvance();
|
|
58
|
-
i0.ɵɵtextInterpolate1(" ", ctx.name, " ");
|
|
59
|
-
i0.ɵɵadvance();
|
|
60
|
-
i0.ɵɵproperty("ngIf", ctx.showIcon && ctx.iconPosition === "Right");
|
|
61
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle], styles: ["button[_ngcontent-%COMP%]{font-family:Lato,sans-serif!important;border:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#181f33;background-color:#fff}.solid[_ngcontent-%COMP%]{color:#fff;background:#0937b2}.solid[_ngcontent-%COMP%]:hover:enabled{background:#062a99}.solid[_ngcontent-%COMP%]:active:enabled{background:#041f80}.solid[_ngcontent-%COMP%]:disabled{color:#929dab;background:#f5f5f5}.outline[_ngcontent-%COMP%]{border:1px solid #0937b2;color:#0937b2;background:#fff}.outline[_ngcontent-%COMP%]:hover:enabled{background:#f0f3fa}.outline[_ngcontent-%COMP%]:active:enabled{background:#dae1f3}.outline[_ngcontent-%COMP%]:disabled{color:#929dab;border:1px solid #929dab}.text[_ngcontent-%COMP%]{color:#181f33;background:#fff}.text[_ngcontent-%COMP%]:hover:enabled{background:#f0f3fa}.text[_ngcontent-%COMP%]:active:enabled{background:#dae1f3}.text[_ngcontent-%COMP%]:disabled{color:#929dab}.large[_ngcontent-%COMP%]{height:56px;padding:16px;border-radius:10px;font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.5px}.medium[_ngcontent-%COMP%]{height:44px;padding:10px 16px;border-radius:8px;font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.2px}.small[_ngcontent-%COMP%]{height:32px;padding:6px 16px;border-radius:6px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.25px}.large-mobile[_ngcontent-%COMP%]{height:44px;padding:12px;border-radius:8px;font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.1px}.small-mobile[_ngcontent-%COMP%]{height:32px;padding:6px 12px;border-radius:8px;font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.1px}span[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}#left-icon[_ngcontent-%COMP%]{margin-right:8px}#right-icon[_ngcontent-%COMP%]{margin-left:8px}"] }); }
|
|
62
|
-
}
|
|
63
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonComponent, [{
|
|
64
|
-
type: Component,
|
|
65
|
-
args: [{ selector: "mis-button", template: "<button\n (click)=\"onClick($event)\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n solid: type === 'Solid',\n outline: type === 'Outline',\n text: type === 'Text',\n large: size === 'Large',\n medium: size === 'Medium',\n small: size === 'Small',\n 'large-mobile': size === 'Large-M',\n 'small-mobile': size === 'Small-M'\n }\"\n [ngStyle]=\"{\n 'border-top-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-bottom-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-top-right-radius': disableRightBorderRadius ? '0px' : '',\n 'border-bottom-right-radius': disableRightBorderRadius ? '0px' : '',\n width: width\n }\"\n>\n <span id=\"left-icon\" *ngIf=\"showIcon && iconPosition === 'Left'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n {{ name }}\n <span id=\"right-icon\" *ngIf=\"showIcon && iconPosition === 'Right'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n</button>\n", styles: ["button{font-family:Lato,sans-serif!important;border:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#181f33;background-color:#fff}.solid{color:#fff;background:#0937b2}.solid:hover:enabled{background:#062a99}.solid:active:enabled{background:#041f80}.solid:disabled{color:#929dab;background:#f5f5f5}.outline{border:1px solid #0937b2;color:#0937b2;background:#fff}.outline:hover:enabled{background:#f0f3fa}.outline:active:enabled{background:#dae1f3}.outline:disabled{color:#929dab;border:1px solid #929dab}.text{color:#181f33;background:#fff}.text:hover:enabled{background:#f0f3fa}.text:active:enabled{background:#dae1f3}.text:disabled{color:#929dab}.large{height:56px;padding:16px;border-radius:10px;font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.5px}.medium{height:44px;padding:10px 16px;border-radius:8px;font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.2px}.small{height:32px;padding:6px 16px;border-radius:6px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.25px}.large-mobile{height:44px;padding:12px;border-radius:8px;font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.1px}.small-mobile{height:32px;padding:6px 12px;border-radius:8px;font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.1px}span{display:flex;justify-content:center;align-items:center}#left-icon{margin-right:8px}#right-icon{margin-left:8px}\n"] }]
|
|
66
|
-
}], () => [], { name: [{
|
|
67
|
-
type: Input
|
|
68
|
-
}], type: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}], size: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], width: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], showIcon: [{
|
|
75
|
-
type: Input
|
|
76
|
-
}], iconUrl: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}], iconPosition: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], disabled: [{
|
|
81
|
-
type: Input
|
|
82
|
-
}], disableLeftBorderRadius: [{
|
|
83
|
-
type: Input
|
|
84
|
-
}], disableRightBorderRadius: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], click: [{
|
|
87
|
-
type: Output
|
|
88
|
-
}] }); })();
|
|
89
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ButtonComponent, { className: "ButtonComponent" }); })();
|
|
90
|
-
|
|
91
|
-
class ButtonDirective {
|
|
92
|
-
constructor(el, renderer) {
|
|
93
|
-
this.el = el;
|
|
94
|
-
this.renderer = renderer;
|
|
95
|
-
this.type = "none";
|
|
96
|
-
this.size = "md";
|
|
97
|
-
this.elementClass = "mis-btn";
|
|
98
|
-
}
|
|
99
|
-
ngAfterViewInit() {
|
|
100
|
-
this.bindTypeClass();
|
|
101
|
-
this.bindSizeClass();
|
|
102
|
-
}
|
|
103
|
-
bindTypeClass() {
|
|
104
|
-
let className = "";
|
|
105
|
-
switch (this.type) {
|
|
106
|
-
case "primary":
|
|
107
|
-
className = "mis-primary";
|
|
108
|
-
break;
|
|
109
|
-
case "outline":
|
|
110
|
-
className = "mis-outline";
|
|
111
|
-
break;
|
|
112
|
-
default:
|
|
113
|
-
className = "mis-none";
|
|
114
|
-
}
|
|
115
|
-
this.renderer.addClass(this.el.nativeElement, className);
|
|
116
|
-
}
|
|
117
|
-
bindSizeClass() {
|
|
118
|
-
let className = "";
|
|
119
|
-
switch (this.size) {
|
|
120
|
-
case "lg":
|
|
121
|
-
className = "mis-btn-lg";
|
|
122
|
-
break;
|
|
123
|
-
case "sm":
|
|
124
|
-
className = "mis-btn-sm";
|
|
125
|
-
break;
|
|
126
|
-
default:
|
|
127
|
-
className = "mis-btn-md";
|
|
128
|
-
}
|
|
129
|
-
this.renderer.addClass(this.el.nativeElement, className);
|
|
130
|
-
}
|
|
131
|
-
static { this.ɵfac = function ButtonDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ButtonDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); }; }
|
|
132
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ButtonDirective, selectors: [["", "mis-button", ""]], hostVars: 2, hostBindings: function ButtonDirective_HostBindings(rf, ctx) { if (rf & 2) {
|
|
133
|
-
i0.ɵɵclassMap(ctx.elementClass);
|
|
134
|
-
} }, inputs: { type: "type", size: "size" } }); }
|
|
135
|
-
}
|
|
136
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonDirective, [{
|
|
137
|
-
type: Directive,
|
|
138
|
-
args: [{
|
|
139
|
-
selector: "[mis-button]"
|
|
140
|
-
}]
|
|
141
|
-
}], () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], { type: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}], size: [{
|
|
144
|
-
type: Input
|
|
145
|
-
}], elementClass: [{
|
|
146
|
-
type: HostBinding,
|
|
147
|
-
args: ["class"]
|
|
148
|
-
}] }); })();
|
|
149
|
-
|
|
150
|
-
class ButtonModule {
|
|
151
|
-
static forRoot() {
|
|
152
|
-
return { ngModule: ButtonModule, providers: [] };
|
|
153
|
-
}
|
|
154
|
-
static { this.ɵfac = function ButtonModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ButtonModule)(); }; }
|
|
155
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ButtonModule }); }
|
|
156
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
157
|
-
}
|
|
158
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonModule, [{
|
|
159
|
-
type: NgModule,
|
|
160
|
-
args: [{
|
|
161
|
-
declarations: [ButtonComponent, ButtonDirective],
|
|
162
|
-
imports: [CommonModule],
|
|
163
|
-
exports: [ButtonComponent, ButtonDirective]
|
|
164
|
-
}]
|
|
165
|
-
}], null, null); })();
|
|
166
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ButtonModule, { declarations: [ButtonComponent, ButtonDirective], imports: [CommonModule], exports: [ButtonComponent, ButtonDirective] }); })();
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Generated bundle index. Do not edit.
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
export { ButtonComponent, ButtonDirective, ButtonModule };
|
|
173
|
-
//# sourceMappingURL=mis-crystal-design-system-button.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-button.mjs","sources":["../../../projects/mis-components/button/button.component.html","../../../projects/mis-components/button/button.component.ts","../../../projects/mis-components/button/button.directive.ts","../../../projects/mis-components/button/button.module.ts","../../../projects/mis-components/button/mis-crystal-design-system-button.ts"],"sourcesContent":["<button\n (click)=\"onClick($event)\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n solid: type === 'Solid',\n outline: type === 'Outline',\n text: type === 'Text',\n large: size === 'Large',\n medium: size === 'Medium',\n small: size === 'Small',\n 'large-mobile': size === 'Large-M',\n 'small-mobile': size === 'Small-M'\n }\"\n [ngStyle]=\"{\n 'border-top-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-bottom-left-radius': disableLeftBorderRadius ? '0px' : '',\n 'border-top-right-radius': disableRightBorderRadius ? '0px' : '',\n 'border-bottom-right-radius': disableRightBorderRadius ? '0px' : '',\n width: width\n }\"\n>\n <span id=\"left-icon\" *ngIf=\"showIcon && iconPosition === 'Left'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n {{ name }}\n <span id=\"right-icon\" *ngIf=\"showIcon && iconPosition === 'Right'\">\n <img [src]=\"iconUrl\" alt=\"\" />\n </span>\n</button>\n","import { Component, Input, OnInit, Output, EventEmitter, ContentChild, TemplateRef } from \"@angular/core\";\n\n@Component({\n selector: \"mis-button\",\n templateUrl: \"./button.component.html\",\n styleUrls: [\"./button.component.scss\"]\n})\nexport class ButtonComponent implements OnInit {\n @Input() name: string = \"Enabled\";\n @Input() type: \"Solid\" | \"Outline\" | \"Text\" = \"Solid\";\n @Input() size: \"Small\" | \"Medium\" | \"Large\" | \"Small-M\" | \"Large-M\" = \"Medium\";\n @Input() width: string = \"\";\n\n @Input() showIcon: boolean = false;\n @Input() iconUrl: string = \"\";\n @Input() iconPosition: \"Left\" | \"Right\" = \"Left\";\n\n @Input() disabled: boolean = false;\n @Input() disableLeftBorderRadius: boolean = false;\n @Input() disableRightBorderRadius: boolean = false;\n\n /** Emits event when button is clicked */\n @Output() click = new EventEmitter<any>();\n\n constructor() {}\n\n ngOnInit() {}\n\n onClick(event) {\n this.click.emit(event);\n }\n}\n","import { AfterViewInit, Directive, ElementRef, HostBinding, Input, Renderer2 } from \"@angular/core\";\n\n@Directive({\n selector: \"[mis-button]\"\n})\nexport class ButtonDirective implements AfterViewInit {\n @Input() type: \"primary\" | \"outline\" | \"none\" = \"none\";\n @Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n @HostBinding(\"class\") elementClass = \"mis-btn\";\n\n constructor(private el: ElementRef, private renderer: Renderer2) {}\n\n ngAfterViewInit(): void {\n this.bindTypeClass();\n this.bindSizeClass();\n }\n\n private bindTypeClass(): void {\n let className = \"\";\n switch (this.type) {\n case \"primary\":\n className = \"mis-primary\";\n break;\n case \"outline\":\n className = \"mis-outline\";\n break;\n default:\n className = \"mis-none\";\n }\n this.renderer.addClass(this.el.nativeElement, className);\n }\n\n private bindSizeClass(): void {\n let className = \"\";\n switch (this.size) {\n case \"lg\":\n className = \"mis-btn-lg\";\n break;\n case \"sm\":\n className = \"mis-btn-sm\";\n break;\n default:\n className = \"mis-btn-md\";\n }\n this.renderer.addClass(this.el.nativeElement, className);\n }\n}\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ButtonDirective } from \"./button.directive\";\nimport { ButtonComponent } from \"./button.component\";\n\n@NgModule({\n declarations: [ButtonComponent, ButtonDirective],\n imports: [CommonModule],\n exports: [ButtonComponent, ButtonDirective]\n})\nexport class ButtonModule {\n static forRoot(): ModuleWithProviders<ButtonModule> {\n return { ngModule: ButtonModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAqBE,EAAiE,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAA,CAAA;IAC/D,EAA8B,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;IAChC,EAAO,CAAA,YAAA,EAAA,CAAA;;;IADA,EAAe,CAAA,SAAA,EAAA,CAAA;IAAf,EAAe,CAAA,UAAA,CAAA,KAAA,EAAA,MAAA,CAAA,OAAA,EAAA,EAAA,CAAA,aAAA,CAAA,CAAA;;;IAGtB,EAAmE,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAA,CAAA;IACjE,EAA8B,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;IAChC,EAAO,CAAA,YAAA,EAAA,CAAA;;;IADA,EAAe,CAAA,SAAA,EAAA,CAAA;IAAf,EAAe,CAAA,UAAA,CAAA,KAAA,EAAA,MAAA,CAAA,OAAA,EAAA,EAAA,CAAA,aAAA,CAAA,CAAA;;MCnBX,eAAe,CAAA;AAiB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Ae,CAAC;AAC5C,aAAA,CAAA;;wFACY,YAAY,EAAA,EAAA,YAAA,EAAA,CAJR,eAAe,EAAE,eAAe,aACrC,YAAY,CAAA,EAAA,OAAA,EAAA,CACZ,eAAe,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACR5C;;AAEG;;;;"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, ViewChild, Input, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/forms';
|
|
4
|
-
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import * as i1 from '@angular/common';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
|
|
8
|
-
const _c0 = ["input"];
|
|
9
|
-
const _c1 = a0 => ({ cursor: a0 });
|
|
10
|
-
const _c2 = (a0, a1) => ({ "disabled-checkbox": a0, error: a1 });
|
|
11
|
-
function CheckboxComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
-
i0.ɵɵelement(0, "span", 4);
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c2, ctx_r0.formControl.disabled, ctx_r0.isError && !ctx_r0.formControl.disabled));
|
|
16
|
-
} }
|
|
17
|
-
function CheckboxComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelement(0, "span", 5);
|
|
19
|
-
} if (rf & 2) {
|
|
20
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c2, ctx_r0.formControl.disabled, ctx_r0.isError && !ctx_r0.formControl.disabled));
|
|
22
|
-
} }
|
|
23
|
-
class CheckboxComponent {
|
|
24
|
-
set type(value) {
|
|
25
|
-
this.isError = value === "Error";
|
|
26
|
-
}
|
|
27
|
-
set indeterminate(value) {
|
|
28
|
-
if (value) {
|
|
29
|
-
this.formControl.setValue(true);
|
|
30
|
-
this.valueChange.emit({
|
|
31
|
-
name: this.name,
|
|
32
|
-
value: true
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.formControl.setValue(false);
|
|
37
|
-
this.valueChange.emit({
|
|
38
|
-
name: this.name,
|
|
39
|
-
value: false
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
this.isIndeterminate = value;
|
|
43
|
-
}
|
|
44
|
-
set checked(value) {
|
|
45
|
-
if (value)
|
|
46
|
-
this.formControl.setValue(true);
|
|
47
|
-
else
|
|
48
|
-
this.formControl.setValue(false);
|
|
49
|
-
}
|
|
50
|
-
set disabled(value) {
|
|
51
|
-
if (value)
|
|
52
|
-
this.formControl.disable();
|
|
53
|
-
else
|
|
54
|
-
this.formControl.enable();
|
|
55
|
-
}
|
|
56
|
-
constructor() {
|
|
57
|
-
this.isError = false;
|
|
58
|
-
this.isIndeterminate = false;
|
|
59
|
-
this.name = "";
|
|
60
|
-
this.formControl = new UntypedFormControl();
|
|
61
|
-
this.valueChange = new EventEmitter();
|
|
62
|
-
}
|
|
63
|
-
ngOnInit() { }
|
|
64
|
-
toggleState() {
|
|
65
|
-
if (this.isIndeterminate) {
|
|
66
|
-
this.isIndeterminate = false;
|
|
67
|
-
this.formControl.setValue(true);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
if (this.formControl.value)
|
|
71
|
-
this.formControl.setValue(false);
|
|
72
|
-
else
|
|
73
|
-
this.formControl.setValue(true);
|
|
74
|
-
}
|
|
75
|
-
this.valueChange.emit({
|
|
76
|
-
name: this.name,
|
|
77
|
-
value: this.formControl.value
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
static { this.ɵfac = function CheckboxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CheckboxComponent)(); }; }
|
|
81
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["mis-checkbox"]], viewQuery: function CheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
82
|
-
i0.ɵɵviewQuery(_c0, 5);
|
|
83
|
-
} if (rf & 2) {
|
|
84
|
-
let _t;
|
|
85
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputBox = _t.first);
|
|
86
|
-
} }, inputs: { type: "type", indeterminate: "indeterminate", checked: "checked", disabled: "disabled", name: "name", formControl: "formControl" }, outputs: { valueChange: "valueChange" }, decls: 4, vars: 6, consts: [[1, "checkbox-container", 3, "click", "keyup.enter", "ngStyle"], ["hidden", "", "type", "checkbox", 3, "click", "formControl"], ["class", "checkmark", 3, "ngClass", 4, "ngIf"], ["class", "checkmark indeterminate", "tabindex", "0", 3, "ngClass", 4, "ngIf"], [1, "checkmark", 3, "ngClass"], ["tabindex", "0", 1, "checkmark", "indeterminate", 3, "ngClass"]], template: function CheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
88
|
-
i0.ɵɵlistener("click", function CheckboxComponent_Template_div_click_0_listener() { return !ctx.formControl.disabled && ctx.toggleState(); })("keyup.enter", function CheckboxComponent_Template_div_keyup_enter_0_listener() { return !ctx.formControl.disabled && ctx.toggleState(); });
|
|
89
|
-
i0.ɵɵelementStart(1, "input", 1);
|
|
90
|
-
i0.ɵɵlistener("click", function CheckboxComponent_Template_input_click_1_listener($event) { return $event.stopPropagation(); });
|
|
91
|
-
i0.ɵɵelementEnd();
|
|
92
|
-
i0.ɵɵtemplate(2, CheckboxComponent_span_2_Template, 1, 4, "span", 2)(3, CheckboxComponent_span_3_Template, 1, 4, "span", 3);
|
|
93
|
-
i0.ɵɵelementEnd();
|
|
94
|
-
} if (rf & 2) {
|
|
95
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx.formControl.disabled ? "not-allowed" : "pointer"));
|
|
96
|
-
i0.ɵɵadvance();
|
|
97
|
-
i0.ɵɵproperty("formControl", ctx.formControl);
|
|
98
|
-
i0.ɵɵadvance();
|
|
99
|
-
i0.ɵɵproperty("ngIf", !ctx.isIndeterminate);
|
|
100
|
-
i0.ɵɵadvance();
|
|
101
|
-
i0.ɵɵproperty("ngIf", ctx.isIndeterminate);
|
|
102
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle, i2.CheckboxControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective], styles: [".checkbox-container[_ngcontent-%COMP%]{height:20px;width:20px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:sub}.checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:20px;width:20px}.checkmark[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:center;align-items:center;top:0;left:0;height:20px;width:20px;border-radius:4px;background-color:#fff;border:solid 2px #6a737d;box-sizing:border-box}.checkmark[_ngcontent-%COMP%]:hover{border-color:#929dab}.checkmark[_ngcontent-%COMP%]:focus-within, .checkmark[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .09em #fff,0 0 .01em .2em #0937b2;outline:none}.checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:#0937b2;border-color:#0937b2}.checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled-checkbox[_ngcontent-%COMP%]{background-color:#c8cdd3;border-color:#c8cdd3}.checkmark[_ngcontent-%COMP%]:after{content:\"\";position:absolute;display:none}.checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.checkbox-container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{top:1px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.checkbox-container[_ngcontent-%COMP%] .checkmark.indeterminate[_ngcontent-%COMP%]:after{top:2px;width:2px;height:0px;border:solid white;border-width:0 0px 12px 0;border-radius:14px;transform:rotate(90deg);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg)}.disabled-checkbox[_ngcontent-%COMP%]{pointer-events:none;border-color:#c8cdd3}.error[_ngcontent-%COMP%]{border-color:#b00020}.checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .error.checkmark[_ngcontent-%COMP%]{border:#b00020!important;background:#b00020!important}.checkbox-container[_ngcontent-%COMP%] .error.checkmark[_ngcontent-%COMP%]:after{top:3px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.checkbox-container[_ngcontent-%COMP%] .error.checkmark.indeterminate[_ngcontent-%COMP%]:after{top:4px;width:2px;height:0px;border:solid white;border-width:0 0px 12px 0;border-radius:14px;transform:rotate(90deg);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg)}.error[_ngcontent-%COMP%]:focus-within, .error[_ngcontent-%COMP%]:focus{box-shadow:none!important;outline:none}"] }); }
|
|
103
|
-
}
|
|
104
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxComponent, [{
|
|
105
|
-
type: Component,
|
|
106
|
-
args: [{ selector: "mis-checkbox", template: "<div\n class=\"checkbox-container\"\n [ngStyle]=\"{ cursor: formControl.disabled ? 'not-allowed' : 'pointer' }\"\n (click)=\"!formControl.disabled && toggleState()\"\n (keyup.enter)=\"!formControl.disabled && toggleState()\"\n>\n <input hidden type=\"checkbox\" [formControl]=\"formControl\" (click)=\"$event.stopPropagation()\" />\n <span\n class=\"checkmark\"\n *ngIf=\"!isIndeterminate\"\n [ngClass]=\"{\n 'disabled-checkbox': formControl.disabled,\n error: isError && !formControl.disabled\n }\"\n ></span>\n <span\n class=\"checkmark indeterminate\"\n tabindex=\"0\"\n *ngIf=\"isIndeterminate\"\n [ngClass]=\"{\n 'disabled-checkbox': formControl.disabled,\n error: isError && !formControl.disabled\n }\"\n ></span>\n</div>\n", styles: [".checkbox-container{height:20px;width:20px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:sub}.checkbox-container input{position:absolute;opacity:0;cursor:pointer;height:20px;width:20px}.checkmark{position:absolute;display:flex;justify-content:center;align-items:center;top:0;left:0;height:20px;width:20px;border-radius:4px;background-color:#fff;border:solid 2px #6a737d;box-sizing:border-box}.checkmark:hover{border-color:#929dab}.checkmark:focus-within,.checkmark:focus{box-shadow:0 0 0 .09em #fff,0 0 .01em .2em #0937b2;outline:none}.checkbox-container input:checked~.checkmark{background-color:#0937b2;border-color:#0937b2}.checkbox-container input:checked~.checkmark.disabled-checkbox{background-color:#c8cdd3;border-color:#c8cdd3}.checkmark:after{content:\"\";position:absolute;display:none}.checkbox-container input:checked~.checkmark:after{display:block}.checkbox-container .checkmark:after{top:1px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.checkbox-container .checkmark.indeterminate:after{top:2px;width:2px;height:0px;border:solid white;border-width:0 0px 12px 0;border-radius:14px;transform:rotate(90deg);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg)}.disabled-checkbox{pointer-events:none;border-color:#c8cdd3}.error{border-color:#b00020}.checkbox-container input:checked~.error.checkmark{border:#b00020!important;background:#b00020!important}.checkbox-container .error.checkmark:after{top:3px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.checkbox-container .error.checkmark.indeterminate:after{top:4px;width:2px;height:0px;border:solid white;border-width:0 0px 12px 0;border-radius:14px;transform:rotate(90deg);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg)}.error:focus-within,.error:focus{box-shadow:none!important;outline:none}\n"] }]
|
|
107
|
-
}], () => [], { inputBox: [{
|
|
108
|
-
type: ViewChild,
|
|
109
|
-
args: ["input"]
|
|
110
|
-
}], type: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], indeterminate: [{
|
|
113
|
-
type: Input
|
|
114
|
-
}], checked: [{
|
|
115
|
-
type: Input
|
|
116
|
-
}], disabled: [{
|
|
117
|
-
type: Input
|
|
118
|
-
}], name: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}], formControl: [{
|
|
121
|
-
type: Input
|
|
122
|
-
}], valueChange: [{
|
|
123
|
-
type: Output
|
|
124
|
-
}] }); })();
|
|
125
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckboxComponent, { className: "CheckboxComponent" }); })();
|
|
126
|
-
|
|
127
|
-
class CheckboxModule {
|
|
128
|
-
static forRoot() {
|
|
129
|
-
return { ngModule: CheckboxModule, providers: [] };
|
|
130
|
-
}
|
|
131
|
-
static { this.ɵfac = function CheckboxModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CheckboxModule)(); }; }
|
|
132
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CheckboxModule }); }
|
|
133
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, ReactiveFormsModule] }); }
|
|
134
|
-
}
|
|
135
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxModule, [{
|
|
136
|
-
type: NgModule,
|
|
137
|
-
args: [{
|
|
138
|
-
declarations: [CheckboxComponent],
|
|
139
|
-
imports: [CommonModule, ReactiveFormsModule],
|
|
140
|
-
exports: [CheckboxComponent]
|
|
141
|
-
}]
|
|
142
|
-
}], null, null); })();
|
|
143
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CheckboxModule, { declarations: [CheckboxComponent], imports: [CommonModule, ReactiveFormsModule], exports: [CheckboxComponent] }); })();
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Generated bundle index. Do not edit.
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
export { CheckboxComponent, CheckboxModule };
|
|
150
|
-
//# sourceMappingURL=mis-crystal-design-system-checkbox.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-checkbox.mjs","sources":["../../../projects/mis-components/checkbox/checkbox.component.html","../../../projects/mis-components/checkbox/checkbox.component.ts","../../../projects/mis-components/checkbox/checkbox.module.ts","../../../projects/mis-components/checkbox/mis-crystal-design-system-checkbox.ts"],"sourcesContent":["<div\n class=\"checkbox-container\"\n [ngStyle]=\"{ cursor: formControl.disabled ? 'not-allowed' : 'pointer' }\"\n (click)=\"!formControl.disabled && toggleState()\"\n (keyup.enter)=\"!formControl.disabled && toggleState()\"\n>\n <input hidden type=\"checkbox\" [formControl]=\"formControl\" (click)=\"$event.stopPropagation()\" />\n <span\n class=\"checkmark\"\n *ngIf=\"!isIndeterminate\"\n [ngClass]=\"{\n 'disabled-checkbox': formControl.disabled,\n error: isError && !formControl.disabled\n }\"\n ></span>\n <span\n class=\"checkmark indeterminate\"\n tabindex=\"0\"\n *ngIf=\"isIndeterminate\"\n [ngClass]=\"{\n 'disabled-checkbox': formControl.disabled,\n error: isError && !formControl.disabled\n }\"\n ></span>\n</div>\n","import { Component, OnInit, EventEmitter, Input, Output, ViewChild, ElementRef, Renderer2 } from \"@angular/core\";\nimport { AbstractControl, UntypedFormControl } from \"@angular/forms\";\n\n@Component({\n selector: \"mis-checkbox\",\n templateUrl: \"./checkbox.component.html\",\n styleUrls: [\"./checkbox.component.scss\"]\n})\nexport class CheckboxComponent implements OnInit {\n public isError: boolean = false;\n public isIndeterminate: boolean = false;\n\n @ViewChild(\"input\") inputBox: ElementRef;\n @Input() set type(value: \"Default\" | \"Error\") {\n this.isError = value === \"Error\";\n }\n @Input() set indeterminate(value: boolean) {\n if (value) {\n this.formControl.setValue(true);\n this.valueChange.emit({\n name: this.name,\n value: true\n });\n } else {\n this.formControl.setValue(false);\n this.valueChange.emit({\n name: this.name,\n value: false\n });\n }\n this.isIndeterminate = value;\n }\n @Input() set checked(value: boolean) {\n if (value) this.formControl.setValue(true);\n else this.formControl.setValue(false);\n }\n @Input() set disabled(value: boolean) {\n if (value) this.formControl.disable();\n else this.formControl.enable();\n }\n @Input() name: string = \"\";\n @Input() formControl: AbstractControl = new UntypedFormControl();\n @Output() valueChange = new EventEmitter<{ name: string; value: boolean }>();\n\n constructor() {}\n ngOnInit() {}\n\n toggleState() {\n if (this.isIndeterminate) {\n this.isIndeterminate = false;\n this.formControl.setValue(true);\n } else {\n if (this.formControl.value) this.formControl.setValue(false);\n else this.formControl.setValue(true);\n }\n this.valueChange.emit({\n name: this.name,\n value: this.formControl.value\n });\n }\n}\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { CheckboxComponent } from \"./checkbox.component\";\n\n@NgModule({\n declarations: [CheckboxComponent],\n imports: [CommonModule, ReactiveFormsModule],\n exports: [CheckboxComponent]\n})\nexport class CheckboxModule {\n static forRoot(): ModuleWithProviders<CheckboxModule> {\n return { ngModule: CheckboxModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAOE,EAOQ,CAAA,SAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAA,CAAA;;;IAJN,EAGE,CAAA,UAAA,CAAA,SAAA,EAAA,EAAA,CAAA,eAAA,CAAA,CAAA,EAAA,GAAA,EAAA,MAAA,CAAA,WAAA,CAAA,QAAA,EAAA,MAAA,CAAA,OAAA,IAAA,CAAA,MAAA,CAAA,WAAA,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OAAA,EAAA,CACtB,YAAY,EAAE,mBAAmB,aACjC,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACT7B;;AAEG;;;;"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
|
|
6
|
-
const _c0 = (a0, a1, a2, a3) => ({ small: a0, medium: a1, "small-m": a2, "medium-m": a3 });
|
|
7
|
-
function ChipComponent_img_1_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
i0.ɵɵelement(0, "img", 5);
|
|
9
|
-
} if (rf & 2) {
|
|
10
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
11
|
-
i0.ɵɵproperty("src", ctx_r0.iconUrl, i0.ɵɵsanitizeUrl);
|
|
12
|
-
} }
|
|
13
|
-
function ChipComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
i0.ɵɵelementStart(0, "div", 6);
|
|
15
|
-
i0.ɵɵelement(1, "div", 7);
|
|
16
|
-
i0.ɵɵelementStart(2, "span", 8);
|
|
17
|
-
i0.ɵɵtext(3);
|
|
18
|
-
i0.ɵɵelementEnd()();
|
|
19
|
-
} if (rf & 2) {
|
|
20
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
-
i0.ɵɵadvance(3);
|
|
22
|
-
i0.ɵɵtextInterpolate(ctx_r0.count);
|
|
23
|
-
} }
|
|
24
|
-
function ChipComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
26
|
-
i0.ɵɵelementStart(0, "span", 9);
|
|
27
|
-
i0.ɵɵlistener("keyup.enter", function ChipComponent_span_5_Template_span_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.cancel.emit(ctx_r0.value)); })("click", function ChipComponent_span_5_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.cancel.emit(ctx_r0.value)); });
|
|
28
|
-
i0.ɵɵnamespaceSVG();
|
|
29
|
-
i0.ɵɵelementStart(1, "svg", 10);
|
|
30
|
-
i0.ɵɵelement(2, "path", 11);
|
|
31
|
-
i0.ɵɵelementEnd()();
|
|
32
|
-
} }
|
|
33
|
-
class ChipComponent {
|
|
34
|
-
constructor() {
|
|
35
|
-
this.label = "";
|
|
36
|
-
this.value = "";
|
|
37
|
-
this.size = "Medium";
|
|
38
|
-
this.iconUrl = null;
|
|
39
|
-
this.count = null;
|
|
40
|
-
this.dismissible = false;
|
|
41
|
-
this.cancel = new EventEmitter();
|
|
42
|
-
}
|
|
43
|
-
ngOnInit() { }
|
|
44
|
-
static { this.ɵfac = function ChipComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ChipComponent)(); }; }
|
|
45
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChipComponent, selectors: [["mis-chip"]], inputs: { label: "label", value: "value", size: "size", iconUrl: "iconUrl", count: "count", dismissible: "dismissible" }, outputs: { cancel: "cancel" }, decls: 6, vars: 10, consts: [["id", "chip-container", "tabindex", "0", 3, "ngClass"], ["alt", "chip icon", 3, "src", 4, "ngIf"], ["tabindex", "0"], ["id", "count-container", 4, "ngIf"], ["tabindex", "0", "id", "close-icon", "aria-label", "remove chip", 3, "keyup.enter", "click", 4, "ngIf"], ["alt", "chip icon", 3, "src"], ["id", "count-container"], ["id", "separator"], ["id", "count-text"], ["tabindex", "0", "id", "close-icon", "aria-label", "remove chip", 3, "keyup.enter", "click"], ["width", "16", "height", "16", "viewBox", "0 0 16 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M5.49931 4.25725C5.15643 3.91437 4.60052 3.91437 4.25765 4.25725C3.91477 4.60012 3.91477 5.15604 4.25765 5.49891L6.75868 7.99994L4.25827 10.5004C3.91539 10.8432 3.91539 11.3991 4.25827 11.742C4.60114 12.0849 5.15706 12.0849 5.49993 11.742L8.00034 9.24161L10.5007 11.742C10.8436 12.0849 11.3995 12.0849 11.7424 11.742C12.0853 11.3991 12.0853 10.8432 11.7424 10.5003L9.24201 7.99995L11.743 5.49893C12.0859 5.15606 12.0859 4.60014 11.743 4.25727C11.4001 3.91439 10.8442 3.91439 10.5014 4.25727L8.00034 6.75828L5.49931 4.25725Z", "fill", "#181F33"]], template: function ChipComponent_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
47
|
-
i0.ɵɵtemplate(1, ChipComponent_img_1_Template, 1, 1, "img", 1);
|
|
48
|
-
i0.ɵɵelementStart(2, "span", 2);
|
|
49
|
-
i0.ɵɵtext(3);
|
|
50
|
-
i0.ɵɵelementEnd();
|
|
51
|
-
i0.ɵɵtemplate(4, ChipComponent_div_4_Template, 4, 1, "div", 3)(5, ChipComponent_span_5_Template, 3, 0, "span", 4);
|
|
52
|
-
i0.ɵɵelementEnd();
|
|
53
|
-
} if (rf & 2) {
|
|
54
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(5, _c0, ctx.size === "Small", ctx.size === "Medium", ctx.size === "Small-M", ctx.size === "Medium-M"));
|
|
55
|
-
i0.ɵɵadvance();
|
|
56
|
-
i0.ɵɵproperty("ngIf", ctx.iconUrl && ctx.iconUrl.length > 0);
|
|
57
|
-
i0.ɵɵadvance(2);
|
|
58
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
59
|
-
i0.ɵɵadvance();
|
|
60
|
-
i0.ɵɵproperty("ngIf", ctx.count != null || ctx.count != undefined);
|
|
61
|
-
i0.ɵɵadvance();
|
|
62
|
-
i0.ɵɵproperty("ngIf", ctx.dismissible);
|
|
63
|
-
} }, dependencies: [i1.NgClass, i1.NgIf], styles: ["#chip-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-family:Lato,sans-serif!important;background-color:#e0e0e0;box-sizing:border-box;cursor:default}#chip-container[_ngcontent-%COMP%]:hover{background:#d7d9de}img[_ngcontent-%COMP%]{margin-right:4px}#close-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:4px;cursor:pointer}#count-container[_ngcontent-%COMP%]{display:flex;height:100%;justify-content:center;align-items:center}#separator[_ngcontent-%COMP%]{height:100%;width:1px;background-color:#c8cdd3;margin:0 8px}#count-text[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px}.small[_ngcontent-%COMP%]{height:24px;padding:4px 8px;border-radius:7px;font-style:normal;font-weight:700;font-size:12px;line-height:16px;letter-spacing:.7px;color:#181f33}.medium[_ngcontent-%COMP%]{height:32px;padding:6px 12px;border-radius:16px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.small-m[_ngcontent-%COMP%]{height:20px;padding:4px 8px;border-radius:10px;font-style:normal;font-weight:400;font-size:11px;line-height:12px;letter-spacing:.1px;color:#181f33}.medium-m[_ngcontent-%COMP%]{height:24px;padding:4px 12px;border-radius:12px;font-style:normal;font-weight:400;font-size:12px;line-height:16px;letter-spacing:.25px;color:#181f33}"] }); }
|
|
64
|
-
}
|
|
65
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChipComponent, [{
|
|
66
|
-
type: Component,
|
|
67
|
-
args: [{ selector: "mis-chip", template: "<div\n id=\"chip-container\"\n tabindex=\"0\"\n [ngClass]=\"{\n small: size === 'Small',\n medium: size === 'Medium',\n 'small-m': size === 'Small-M',\n 'medium-m': size === 'Medium-M'\n }\"\n>\n <img *ngIf=\"iconUrl && iconUrl.length > 0\" [src]=\"iconUrl\" alt=\"chip icon\" />\n <span tabindex=\"0\">{{ label }}</span>\n <div *ngIf=\"count != null || count != undefined\" id=\"count-container\">\n <div id=\"separator\"></div>\n <span id=\"count-text\">{{ count }}</span>\n </div>\n <span *ngIf=\"dismissible\" tabindex=\"0\" id=\"close-icon\" aria-label=\"remove chip\" (keyup.enter)=\"cancel.emit(value)\" (click)=\"cancel.emit(value)\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M5.49931 4.25725C5.15643 3.91437 4.60052 3.91437 4.25765 4.25725C3.91477 4.60012 3.91477 5.15604 4.25765 5.49891L6.75868 7.99994L4.25827 10.5004C3.91539 10.8432 3.91539 11.3991 4.25827 11.742C4.60114 12.0849 5.15706 12.0849 5.49993 11.742L8.00034 9.24161L10.5007 11.742C10.8436 12.0849 11.3995 12.0849 11.7424 11.742C12.0853 11.3991 12.0853 10.8432 11.7424 10.5003L9.24201 7.99995L11.743 5.49893C12.0859 5.15606 12.0859 4.60014 11.743 4.25727C11.4001 3.91439 10.8442 3.91439 10.5014 4.25727L8.00034 6.75828L5.49931 4.25725Z\"\n fill=\"#181F33\"\n />\n </svg>\n </span>\n</div>\n", styles: ["#chip-container{display:flex;justify-content:center;align-items:center;font-family:Lato,sans-serif!important;background-color:#e0e0e0;box-sizing:border-box;cursor:default}#chip-container:hover{background:#d7d9de}img{margin-right:4px}#close-icon{display:flex;justify-content:center;align-items:center;margin-left:4px;cursor:pointer}#count-container{display:flex;height:100%;justify-content:center;align-items:center}#separator{height:100%;width:1px;background-color:#c8cdd3;margin:0 8px}#count-text{font-weight:700;letter-spacing:.25px}.small{height:24px;padding:4px 8px;border-radius:7px;font-style:normal;font-weight:700;font-size:12px;line-height:16px;letter-spacing:.7px;color:#181f33}.medium{height:32px;padding:6px 12px;border-radius:16px;font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33}.small-m{height:20px;padding:4px 8px;border-radius:10px;font-style:normal;font-weight:400;font-size:11px;line-height:12px;letter-spacing:.1px;color:#181f33}.medium-m{height:24px;padding:4px 12px;border-radius:12px;font-style:normal;font-weight:400;font-size:12px;line-height:16px;letter-spacing:.25px;color:#181f33}\n"] }]
|
|
68
|
-
}], () => [], { label: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}], value: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], size: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], iconUrl: [{
|
|
75
|
-
type: Input
|
|
76
|
-
}], count: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}], dismissible: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], cancel: [{
|
|
81
|
-
type: Output
|
|
82
|
-
}] }); })();
|
|
83
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChipComponent, { className: "ChipComponent" }); })();
|
|
84
|
-
|
|
85
|
-
class ChipModule {
|
|
86
|
-
static forRoot() {
|
|
87
|
-
return { ngModule: ChipModule, providers: [] };
|
|
88
|
-
}
|
|
89
|
-
static { this.ɵfac = function ChipModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ChipModule)(); }; }
|
|
90
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ChipModule }); }
|
|
91
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] }); }
|
|
92
|
-
}
|
|
93
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChipModule, [{
|
|
94
|
-
type: NgModule,
|
|
95
|
-
args: [{
|
|
96
|
-
declarations: [ChipComponent],
|
|
97
|
-
imports: [CommonModule],
|
|
98
|
-
exports: [ChipComponent]
|
|
99
|
-
}]
|
|
100
|
-
}], null, null); })();
|
|
101
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ChipModule, { declarations: [ChipComponent], imports: [CommonModule], exports: [ChipComponent] }); })();
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Generated bundle index. Do not edit.
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
export { ChipComponent, ChipModule };
|
|
108
|
-
//# sourceMappingURL=mis-crystal-design-system-chip.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-chip.mjs","sources":["../../../projects/mis-components/chip/chip.component.html","../../../projects/mis-components/chip/chip.component.ts","../../../projects/mis-components/chip/chip.module.ts","../../../projects/mis-components/chip/mis-crystal-design-system-chip.ts"],"sourcesContent":["<div\n id=\"chip-container\"\n tabindex=\"0\"\n [ngClass]=\"{\n small: size === 'Small',\n medium: size === 'Medium',\n 'small-m': size === 'Small-M',\n 'medium-m': size === 'Medium-M'\n }\"\n>\n <img *ngIf=\"iconUrl && iconUrl.length > 0\" [src]=\"iconUrl\" alt=\"chip icon\" />\n <span tabindex=\"0\">{{ label }}</span>\n <div *ngIf=\"count != null || count != undefined\" id=\"count-container\">\n <div id=\"separator\"></div>\n <span id=\"count-text\">{{ count }}</span>\n </div>\n <span *ngIf=\"dismissible\" tabindex=\"0\" id=\"close-icon\" aria-label=\"remove chip\" (keyup.enter)=\"cancel.emit(value)\" (click)=\"cancel.emit(value)\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M5.49931 4.25725C5.15643 3.91437 4.60052 3.91437 4.25765 4.25725C3.91477 4.60012 3.91477 5.15604 4.25765 5.49891L6.75868 7.99994L4.25827 10.5004C3.91539 10.8432 3.91539 11.3991 4.25827 11.742C4.60114 12.0849 5.15706 12.0849 5.49993 11.742L8.00034 9.24161L10.5007 11.742C10.8436 12.0849 11.3995 12.0849 11.7424 11.742C12.0853 11.3991 12.0853 10.8432 11.7424 10.5003L9.24201 7.99995L11.743 5.49893C12.0859 5.15606 12.0859 4.60014 11.743 4.25727C11.4001 3.91439 10.8442 3.91439 10.5014 4.25727L8.00034 6.75828L5.49931 4.25725Z\"\n fill=\"#181F33\"\n />\n </svg>\n </span>\n</div>\n","import { Component, Input, OnInit, Output, EventEmitter } from \"@angular/core\";\n\n@Component({\n selector: \"mis-chip\",\n templateUrl: \"chip.component.html\",\n styleUrls: [\"chip.component.scss\"]\n})\nexport class ChipComponent implements OnInit {\n @Input() label: string = \"\";\n @Input() value: any = \"\";\n @Input() size: \"Small\" | \"Medium\" | \"Small-M\" | \"Medium-M\" = \"Medium\";\n @Input() iconUrl: string | null = null;\n @Input() count: number | null | undefined = null;\n @Input() dismissible: boolean = false;\n\n @Output() cancel = new EventEmitter<any>();\n constructor() {}\n ngOnInit() {}\n}\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ChipComponent } from \"./chip.component\";\n\n@NgModule({\n declarations: [ChipComponent],\n imports: [CommonModule],\n exports: [ChipComponent]\n})\nexport class ChipModule {\n static forRoot(): ModuleWithProviders<ChipModule> {\n return { ngModule: ChipModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAUE,EAA6E,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;;;IAAlC,EAAe,CAAA,UAAA,CAAA,KAAA,EAAA,MAAA,CAAA,OAAA,EAAA,EAAA,CAAA,aAAA,CAAA,CAAA;;;IAE1D,EAAsE,CAAA,cAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;IACpE,EAA0B,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;IAC1B,EAAsB,CAAA,cAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,CAAA,CAAA;IAAA,EAAW,CAAA,MAAA,CAAA,CAAA,CAAA,C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