mis-crystal-design-system 2.5.0 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-list/action-list.component.d.ts +0 -1
- package/action-list/index.d.ts +1 -1
- package/action-list/mis-crystal-design-system-action-list.metadata.json +1 -1
- package/action-list/public_api.d.ts +2 -2
- package/async-search-dropdown/async-dropdown.component.d.ts +4 -4
- package/async-search-dropdown/index.d.ts +1 -1
- package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -1
- package/async-search-dropdown/public_api.d.ts +2 -2
- package/bundles/mis-crystal-design-system-action-list.umd.js +3 -11
- package/bundles/mis-crystal-design-system-action-list.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-action-list.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-action-list.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +15 -15
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-button.umd.js +25 -25
- package/bundles/mis-crystal-design-system-button.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-button.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-checkbox.umd.js +5 -6
- package/bundles/mis-crystal-design-system-checkbox.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-checkbox.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-chip.umd.js +6 -7
- package/bundles/mis-crystal-design-system-chip.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-chip.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-chip.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js +27 -24
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +2 -2
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +27 -50
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-drawer.umd.js +9 -12
- package/bundles/mis-crystal-design-system-drawer.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-drawer.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-dropdown.umd.js +2 -9
- package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-dropdown.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-fab.umd.js +11 -14
- package/bundles/mis-crystal-design-system-fab.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-fab.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-input.umd.js +7 -7
- package/bundles/mis-crystal-design-system-input.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-input.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-loader.umd.js +3 -4
- package/bundles/mis-crystal-design-system-loader.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-loader.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-loader.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-modal.umd.js +8 -12
- package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js +2 -9
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-multi-select-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js +2 -9
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-nested-multi-select-dropdown.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-radio-button.umd.js +6 -7
- package/bundles/mis-crystal-design-system-radio-button.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-radio-button.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-radio-button.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-switch.umd.js +3 -4
- package/bundles/mis-crystal-design-system-switch.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-switch.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-switch.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-table.umd.js +40 -58
- package/bundles/mis-crystal-design-system-table.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-table.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-toast.umd.js +28 -33
- package/bundles/mis-crystal-design-system-toast.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-toast.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-toast.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-tooltip.umd.js +1 -1
- package/bundles/mis-crystal-design-system-tooltip.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-tooltip.umd.min.js +1 -1
- package/bundles/mis-crystal-design-system-tooltip.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system.umd.js.map +1 -1
- package/button/button.component.d.ts +4 -4
- package/button/button.directive.d.ts +3 -3
- package/button/button.directive.scss +1 -1
- package/button/button.module.d.ts +1 -1
- package/button/index.d.ts +1 -1
- package/button/mis-crystal-design-system-button.metadata.json +1 -1
- package/button/public_api.d.ts +2 -2
- package/checkbox/checkbox.component.d.ts +3 -3
- package/checkbox/checkbox.module.d.ts +1 -1
- package/checkbox/index.d.ts +1 -1
- package/checkbox/mis-crystal-design-system-checkbox.metadata.json +1 -1
- package/checkbox/public_api.d.ts +2 -2
- package/chip/chip.component.d.ts +2 -2
- package/chip/chip.module.d.ts +1 -1
- package/chip/index.d.ts +1 -1
- package/chip/mis-crystal-design-system-chip.metadata.json +1 -1
- package/chip/public_api.d.ts +2 -2
- package/datepicker_v2/index.d.ts +1 -1
- package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -1
- package/datepicker_v2/public_api.d.ts +3 -3
- package/daterangepicker_v2/index.d.ts +1 -1
- package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -1
- package/daterangepicker_v2/public_api.d.ts +3 -3
- package/drawer/index.d.ts +1 -1
- package/drawer/mis-crystal-design-system-drawer.metadata.json +1 -1
- package/drawer/public_api.d.ts +4 -4
- package/dropdown/dropdown.component.d.ts +0 -1
- package/dropdown/dropdown.module.d.ts +1 -1
- package/dropdown/index.d.ts +1 -1
- package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -1
- package/dropdown/public_api.d.ts +2 -2
- package/esm2015/action-list/action-list.component.js +4 -12
- package/esm2015/action-list/action-list.module.js +3 -2
- package/esm2015/action-list/index.js +2 -2
- package/esm2015/action-list/public_api.js +3 -3
- package/esm2015/async-search-dropdown/async-dropdown.component.js +25 -25
- package/esm2015/async-search-dropdown/async-dropdown.module.js +7 -7
- package/esm2015/async-search-dropdown/index.js +2 -2
- package/esm2015/async-search-dropdown/public_api.js +3 -3
- package/esm2015/button/button.component.js +10 -10
- package/esm2015/button/button.directive.js +19 -19
- package/esm2015/button/button.module.js +5 -5
- package/esm2015/button/index.js +2 -2
- package/esm2015/button/public_api.js +3 -3
- package/esm2015/checkbox/checkbox.component.js +8 -9
- package/esm2015/checkbox/checkbox.module.js +5 -5
- package/esm2015/checkbox/index.js +2 -2
- package/esm2015/checkbox/public_api.js +3 -3
- package/esm2015/chip/chip.component.js +8 -9
- package/esm2015/chip/chip.module.js +4 -4
- package/esm2015/chip/index.js +2 -2
- package/esm2015/chip/public_api.js +3 -3
- package/esm2015/datepicker_v2/datepicker-constants.js +2 -2
- package/esm2015/datepicker_v2/datepicker.module.js +5 -4
- package/esm2015/datepicker_v2/index.js +2 -2
- package/esm2015/datepicker_v2/models/dp-config.model.js +1 -1
- package/esm2015/datepicker_v2/public_api.js +3 -3
- package/esm2015/datepicker_v2/tz-datepicker.directive.js +1 -1
- package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +12 -9
- package/esm2015/datepicker_v2/utils/index.js +13 -13
- package/esm2015/daterangepicker_v2/daterangepicker-constants.js +2 -2
- package/esm2015/daterangepicker_v2/daterangepicker.module.js +4 -3
- package/esm2015/daterangepicker_v2/index.js +2 -2
- package/esm2015/daterangepicker_v2/public_api.js +3 -3
- package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +1 -1
- package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +15 -38
- package/esm2015/daterangepicker_v2/utils/index.js +13 -13
- package/esm2015/drawer/drawer-body/drawer-body.component.js +4 -7
- package/esm2015/drawer/drawer.module.js +4 -4
- package/esm2015/drawer/drawer.service.js +4 -4
- package/esm2015/drawer/index.js +2 -2
- package/esm2015/drawer/public_api.js +5 -5
- package/esm2015/dropdown/dropdown.component.js +3 -10
- package/esm2015/dropdown/dropdown.module.js +7 -6
- package/esm2015/dropdown/index.js +2 -2
- package/esm2015/dropdown/public_api.js +3 -3
- package/esm2015/fab/fab.component.js +11 -14
- package/esm2015/fab/fab.module.js +3 -3
- package/esm2015/fab/index.js +2 -2
- package/esm2015/fab/public_api.js +3 -3
- package/esm2015/index.js +2 -2
- package/esm2015/input/directives/input/input.directive.js +7 -7
- package/esm2015/input/index.js +2 -2
- package/esm2015/input/mis-input.component.js +8 -8
- package/esm2015/input/mis-input.module.js +7 -7
- package/esm2015/input/public_api.js +4 -4
- package/esm2015/loader/index.js +2 -2
- package/esm2015/loader/loader.component.js +5 -6
- package/esm2015/loader/loader.module.js +4 -4
- package/esm2015/loader/public_api.js +3 -3
- package/esm2015/menu/index.js +2 -2
- package/esm2015/modal/index.js +2 -2
- package/esm2015/modal/modal.module.js +10 -14
- package/esm2015/modal/modal.service.js +3 -3
- package/esm2015/modal/module-wrapper/module-wrapper.component.js +4 -4
- package/esm2015/modal/public_api.js +5 -5
- package/esm2015/multi-select-dropdown/index.js +2 -2
- package/esm2015/multi-select-dropdown/multi-select-dropdown.component.js +3 -10
- package/esm2015/multi-select-dropdown/multi-select-dropdown.module.js +9 -8
- package/esm2015/multi-select-dropdown/public_api.js +3 -3
- package/esm2015/nested-multi-select-dropdown/index.js +2 -2
- package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.component.js +3 -10
- package/esm2015/nested-multi-select-dropdown/nested-multi-select-dropdown.module.js +9 -8
- package/esm2015/nested-multi-select-dropdown/public_api.js +3 -3
- package/esm2015/public-api.js +1 -1
- package/esm2015/radio-button/index.js +2 -2
- package/esm2015/radio-button/public_api.js +3 -3
- package/esm2015/radio-button/radio-button.component.js +9 -10
- package/esm2015/radio-button/radio-button.module.js +5 -5
- package/esm2015/switch/index.js +2 -2
- package/esm2015/switch/public_api.js +3 -3
- package/esm2015/switch/switch.component.js +6 -7
- package/esm2015/switch/switch.module.js +5 -5
- package/esm2015/table/custom-table-cell.directive.js +3 -3
- package/esm2015/table/filter/filter.component.js +11 -13
- package/esm2015/table/index.js +2 -2
- package/esm2015/table/public_api.js +5 -5
- package/esm2015/table/sub-table/sub-table.component.js +12 -13
- package/esm2015/table/table.component.js +21 -22
- package/esm2015/table/table.module.js +7 -21
- package/esm2015/toast/index.js +2 -2
- package/esm2015/toast/toast.component.js +12 -14
- package/esm2015/toast/toast.data.service.js +3 -3
- package/esm2015/toast/toast.module.js +9 -9
- package/esm2015/toast/toast.service.js +23 -26
- package/esm2015/tooltip/tooltip.directive.js +1 -1
- package/esm2015/tooltip/tooltip.module.js +3 -2
- package/fab/index.d.ts +1 -1
- package/fab/mis-crystal-design-system-fab.metadata.json +1 -1
- package/fab/public_api.d.ts +2 -2
- package/fesm2015/mis-crystal-design-system-action-list.js +5 -13
- package/fesm2015/mis-crystal-design-system-action-list.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +20 -20
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-button.js +25 -25
- package/fesm2015/mis-crystal-design-system-button.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-checkbox.js +5 -6
- package/fesm2015/mis-crystal-design-system-checkbox.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-chip.js +6 -7
- package/fesm2015/mis-crystal-design-system-chip.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js +26 -23
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +30 -53
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-drawer.js +9 -12
- package/fesm2015/mis-crystal-design-system-drawer.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-dropdown.js +4 -11
- package/fesm2015/mis-crystal-design-system-dropdown.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-fab.js +11 -14
- package/fesm2015/mis-crystal-design-system-fab.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-input.js +8 -8
- package/fesm2015/mis-crystal-design-system-input.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-loader.js +3 -4
- package/fesm2015/mis-crystal-design-system-loader.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-modal.js +8 -12
- package/fesm2015/mis-crystal-design-system-modal.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js +4 -11
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js +4 -11
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-radio-button.js +6 -7
- package/fesm2015/mis-crystal-design-system-radio-button.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-switch.js +3 -4
- package/fesm2015/mis-crystal-design-system-switch.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-table.js +42 -60
- package/fesm2015/mis-crystal-design-system-table.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-toast.js +28 -33
- package/fesm2015/mis-crystal-design-system-toast.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-tooltip.js +2 -2
- package/fesm2015/mis-crystal-design-system-tooltip.js.map +1 -1
- package/fesm2015/mis-crystal-design-system.js.map +1 -1
- package/index.d.ts +1 -1
- package/input/directives/input/input.directive.d.ts +3 -3
- package/input/index.d.ts +1 -1
- package/input/mis-crystal-design-system-input.metadata.json +1 -1
- package/input/mis-input.component.d.ts +4 -4
- package/input/public_api.d.ts +3 -3
- package/loader/index.d.ts +1 -1
- package/loader/loader.component.d.ts +1 -1
- package/loader/loader.module.d.ts +1 -1
- package/loader/mis-crystal-design-system-loader.metadata.json +1 -1
- package/loader/public_api.d.ts +2 -2
- package/menu/index.d.ts +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/mis-crystal-design-system-modal.metadata.json +1 -1
- package/modal/modal.module.d.ts +1 -1
- package/modal/public_api.d.ts +4 -4
- package/multi-select-dropdown/index.d.ts +1 -1
- package/multi-select-dropdown/mis-crystal-design-system-multi-select-dropdown.metadata.json +1 -1
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +0 -1
- package/multi-select-dropdown/multi-select-dropdown.module.d.ts +1 -1
- package/multi-select-dropdown/public_api.d.ts +2 -2
- package/nested-multi-select-dropdown/index.d.ts +1 -1
- package/nested-multi-select-dropdown/mis-crystal-design-system-nested-multi-select-dropdown.metadata.json +1 -1
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +0 -1
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.module.d.ts +1 -1
- package/nested-multi-select-dropdown/public_api.d.ts +2 -2
- package/package.json +1 -1
- package/radio-button/index.d.ts +1 -1
- package/radio-button/mis-crystal-design-system-radio-button.metadata.json +1 -1
- package/radio-button/public_api.d.ts +2 -2
- package/radio-button/radio-button.component.d.ts +2 -2
- package/radio-button/radio-button.module.d.ts +1 -1
- package/switch/index.d.ts +1 -1
- package/switch/mis-crystal-design-system-switch.metadata.json +1 -1
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.component.d.ts +2 -2
- package/switch/switch.module.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/index.d.ts +1 -1
- package/table/mis-crystal-design-system-table.metadata.json +1 -1
- package/table/public_api.d.ts +7 -7
- package/table/sub-table/sub-table.component.d.ts +6 -6
- package/table/table.component.d.ts +6 -6
- package/toast/index.d.ts +1 -1
- package/toast/mis-crystal-design-system-toast.metadata.json +1 -1
- package/toast/toast.component.d.ts +1 -1
- package/toast/toast.module.d.ts +1 -1
- package/toast/toast.service.d.ts +3 -3
- package/tooltip/mis-crystal-design-system-tooltip.metadata.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/button",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].button={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var i=function(){function e(){this.name="Enabled",this.type="Solid",this.size="Medium",this.width="",this.showIcon=!1,this.iconUrl="",this.iconPosition="Left",this.disabled=!1,this.disableLeftBorderRadius=!1,this.disableRightBorderRadius=!1,this.click=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){this.click.emit(e)},e}();i.decorators=[{type:t.Component,args:[{selector:"mis-button",template:"<button\n (click)=\"onClick($event)
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/button",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].button={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var i=function(){function e(){this.name="Enabled",this.type="Solid",this.size="Medium",this.width="",this.showIcon=!1,this.iconUrl="",this.iconPosition="Left",this.disabled=!1,this.disableLeftBorderRadius=!1,this.disableRightBorderRadius=!1,this.click=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){this.click.emit(e)},e}();i.decorators=[{type:t.Component,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-weight:700;letter-spacing:.5px}.large,.medium{font-style:normal;font-size:16px;line-height:24px}.medium{height:44px;padding:10px 16px;border-radius:8px;font-weight:400;letter-spacing:.2px}.small{height:32px;padding:6px 16px;border-radius:6px;font-weight:400;letter-spacing:.25px}.large-mobile,.small{font-style:normal;font-size:14px;line-height:20px}.large-mobile{height:44px;padding:12px}.large-mobile,.small-mobile{border-radius:8px;font-weight:700;letter-spacing:.1px}.small-mobile{height:32px;padding:6px 12px;font-style:normal;font-size:14px;line-height:20px}span{display:flex;justify-content:center;align-items:center}#left-icon{margin-right:8px}#right-icon{margin-left:8px}"]}]}],i.ctorParameters=function(){return[]},i.propDecorators={name:[{type:t.Input}],type:[{type:t.Input}],size:[{type:t.Input}],width:[{type:t.Input}],showIcon:[{type:t.Input}],iconUrl:[{type:t.Input}],iconPosition:[{type:t.Input}],disabled:[{type:t.Input}],disableLeftBorderRadius:[{type:t.Input}],disableRightBorderRadius:[{type:t.Input}],click:[{type:t.Output}]};var o=function(){function e(e,t){this.el=e,this.renderer=t,this.type="none",this.size="md",this.elementClass="mis-btn"}return e.prototype.ngAfterViewInit=function(){this.bindTypeClass(),this.bindSizeClass()},e.prototype.bindTypeClass=function(){var e="";switch(this.type){case"primary":e="mis-primary";break;case"outline":e="mis-outline";break;default:e="mis-none"}this.renderer.addClass(this.el.nativeElement,e)},e.prototype.bindSizeClass=function(){var e="";switch(this.size){case"lg":e="mis-btn-lg";break;case"sm":e="mis-btn-sm";break;default:e="mis-btn-md"}this.renderer.addClass(this.el.nativeElement,e)},e}();o.decorators=[{type:t.Directive,args:[{selector:"[mis-button]"}]}],o.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},o.propDecorators={type:[{type:t.Input}],size:[{type:t.Input}],elementClass:[{type:t.HostBinding,args:["class"]}]};var r=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();r.decorators=[{type:t.NgModule,args:[{declarations:[i,o],imports:[n.CommonModule],exports:[i,o]}]}],e.ButtonComponent=i,e.ButtonModule=r,e.ɵa=o,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=mis-crystal-design-system-button.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../projects/mis-components/button/button.component.ts","../../../projects/mis-components/button/button.directive.ts","../../../projects/mis-components/button/button.module.ts"],"names":["ButtonComponent","this","name","type","size","width","showIcon","iconUrl","iconPosition","disabled","disableLeftBorderRadius","disableRightBorderRadius","click","EventEmitter","prototype","ngOnInit","onClick","event","emit","Component","args","selector","template","Input","Output","ButtonDirective","el","renderer","elementClass","ngAfterViewInit","bindTypeClass","bindSizeClass","className","addClass","nativeElement","Directive","ElementRef","Renderer2","HostBinding","ButtonModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","exports"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../projects/mis-components/button/button.component.ts","../../../projects/mis-components/button/button.directive.ts","../../../projects/mis-components/button/button.module.ts"],"names":["ButtonComponent","this","name","type","size","width","showIcon","iconUrl","iconPosition","disabled","disableLeftBorderRadius","disableRightBorderRadius","click","EventEmitter","prototype","ngOnInit","onClick","event","emit","Component","args","selector","template","Input","Output","ButtonDirective","el","renderer","elementClass","ngAfterViewInit","bindTypeClass","bindSizeClass","className","addClass","nativeElement","Directive","ElementRef","Renderer2","HostBinding","ButtonModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","exports"],"mappings":"mfAwBE,SAAAA,IAhBSC,KAAAC,KAAe,UACfD,KAAAE,KAAqC,QACrCF,KAAAG,KAA6D,SAC7DH,KAAAI,MAAgB,GAEhBJ,KAAAK,UAAoB,EACpBL,KAAAM,QAAkB,GAClBN,KAAAO,aAAiC,OAEjCP,KAAAQ,UAAoB,EACpBR,KAAAS,yBAAmC,EACnCT,KAAAU,0BAAoC,EAGnCV,KAAAW,MAAQ,IAAIC,EAAAA,oBAItBb,EAAAc,UAAAC,SAAA,aAEAf,EAAAc,UAAAE,QAAA,SAAQC,GACNhB,KAAKW,MAAMM,KAAKD,6BA3BnBE,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,aACVC,SAAA,o7EAICC,EAAAA,oBACAA,EAAAA,oBACAA,EAAAA,qBACAA,EAAAA,wBAEAA,EAAAA,uBACAA,EAAAA,4BACAA,EAAAA,wBAEAA,EAAAA,uCACAA,EAAAA,wCACAA,EAAAA,qBAGAC,EAAAA,2BCZD,SAAAC,EAAoBC,EAAwBC,GAAxB1B,KAAAyB,GAAAA,EAAwBzB,KAAA0B,SAAAA,EAJnC1B,KAAAE,KAAuC,OACvCF,KAAAG,KAA2B,KACdH,KAAA2B,aAAe,iBAIrCH,EAAAX,UAAAe,gBAAA,WACE5B,KAAK6B,gBACL7B,KAAK8B,iBAGCN,EAAAX,UAAAgB,cAAA,WACN,IAAIE,EAAY,GAChB,OAAQ/B,KAAKE,MACX,IAAK,UACH6B,EAAY,cACZ,MACF,IAAK,UACHA,EAAY,cACZ,MACF,QACEA,EAAY,WAEhB/B,KAAK0B,SAASM,SAAShC,KAAKyB,GAAGQ,cAAeF,IAGxCP,EAAAX,UAAAiB,cAAA,WACN,IAAIC,EAAY,GAChB,OAAQ/B,KAAKG,MACX,IAAK,KACH4B,EAAY,aACZ,MACF,IAAK,KACHA,EAAY,aACZ,MACF,QACEA,EAAY,aAEhB/B,KAAK0B,SAASM,SAAShC,KAAKyB,GAAGQ,cAAeF,6BA1CjDG,EAAAA,UAASf,KAAA,CAAC,CACTC,SAAU,4DAHuBe,EAAAA,kBAAgCC,EAAAA,2CAMhEd,EAAAA,oBACAA,EAAAA,4BACAe,EAAAA,YAAWlB,KAAA,CAAC,6BCEf,SAAAmB,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAcG,UAAW,8BAP/CC,EAAAA,SAAQvB,KAAA,CAAC,CACRwB,aAAc,CAAC5C,EAAiByB,GAChCoB,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC/C,EAAiByB","sourcesContent":["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"]}
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
function CheckboxComponent() {
|
|
9
9
|
this.isError = false;
|
|
10
10
|
this.isIndeterminate = false;
|
|
11
|
-
this.name =
|
|
11
|
+
this.name = "";
|
|
12
12
|
this.formControl = new forms.FormControl();
|
|
13
13
|
this.valueChange = new core.EventEmitter();
|
|
14
14
|
}
|
|
15
15
|
Object.defineProperty(CheckboxComponent.prototype, "type", {
|
|
16
16
|
set: function (value) {
|
|
17
|
-
this.isError = value ===
|
|
17
|
+
this.isError = value === "Error";
|
|
18
18
|
},
|
|
19
19
|
enumerable: false,
|
|
20
20
|
configurable: true
|
|
@@ -60,8 +60,7 @@
|
|
|
60
60
|
enumerable: false,
|
|
61
61
|
configurable: true
|
|
62
62
|
});
|
|
63
|
-
CheckboxComponent.prototype.ngOnInit = function () {
|
|
64
|
-
};
|
|
63
|
+
CheckboxComponent.prototype.ngOnInit = function () { };
|
|
65
64
|
CheckboxComponent.prototype.toggleState = function () {
|
|
66
65
|
if (this.isIndeterminate) {
|
|
67
66
|
this.isIndeterminate = false;
|
|
@@ -82,14 +81,14 @@
|
|
|
82
81
|
}());
|
|
83
82
|
CheckboxComponent.decorators = [
|
|
84
83
|
{ type: core.Component, args: [{
|
|
85
|
-
selector:
|
|
84
|
+
selector: "mis-checkbox",
|
|
86
85
|
template: "<div\n class=\"checkbox-container\"\n [ngStyle]=\"{ cursor: formControl.disabled ? 'not-allowed' : 'pointer' }\"\n (click)=\"!formControl.disabled && toggleState()\"\n>\n <input hidden type=\"checkbox\" [formControl]=\"formControl\" (click)=\"$event.stopPropagation()\" />\n <span\n class=\"checkmark\"\n tabindex=\"0\"\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",
|
|
87
86
|
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{opacity:0;cursor:pointer}.checkbox-container input,.checkmark{position:absolute;height:20px;width:20px}.checkmark{display:flex;justify-content:center;align-items:center;top:0;left:0;border-radius:4px;background-color:#fff;border:2px solid #6a737d;box-sizing:border-box}.checkmark:hover{border-color:#929dab}.checkmark:focus,.checkmark:focus-within{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 #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.checkbox-container .checkmark.indeterminate:after{top:2px;width:2px;height:0;border:solid #fff;border-width:0 0 12px;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 #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.checkbox-container .error.checkmark.indeterminate:after{top:4px;width:2px;height:0;border:solid #fff;border-width:0 0 12px;border-radius:14px;transform:rotate(90deg);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg)}.error:focus,.error:focus-within{box-shadow:none!important;outline:none}"]
|
|
88
87
|
},] }
|
|
89
88
|
];
|
|
90
89
|
CheckboxComponent.ctorParameters = function () { return []; };
|
|
91
90
|
CheckboxComponent.propDecorators = {
|
|
92
|
-
inputBox: [{ type: core.ViewChild, args: [
|
|
91
|
+
inputBox: [{ type: core.ViewChild, args: ["input",] }],
|
|
93
92
|
type: [{ type: core.Input }],
|
|
94
93
|
indeterminate: [{ type: core.Input }],
|
|
95
94
|
checked: [{ type: core.Input }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-checkbox.umd.js","sources":["../../../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":["import {Component, OnInit, EventEmitter, Input, Output, ViewChild, ElementRef, Renderer2} from
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-checkbox.umd.js","sources":["../../../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":["import { Component, OnInit, EventEmitter, Input, Output, ViewChild, ElementRef, Renderer2 } from \"@angular/core\";\nimport { AbstractControl, FormControl } 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 FormControl();\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":["FormControl","EventEmitter","Component","ViewChild","Input","Output","NgModule","CommonModule","ReactiveFormsModule"],"mappings":";;;;;;;QA4CE;YAnCO,YAAO,GAAY,KAAK,CAAC;YACzB,oBAAe,GAAY,KAAK,CAAC;YA8B/B,SAAI,GAAW,EAAE,CAAC;YAClB,gBAAW,GAAoB,IAAIA,iBAAW,EAAE,CAAC;YAChD,gBAAW,GAAG,IAAIC,iBAAY,EAAoC,CAAC;SAE7D;QA/BhB,sBAAa,mCAAI;iBAAjB,UAAkB,KAA0B;gBAC1C,IAAI,CAAC,OAAO,GAAG,KAAK,KAAK,OAAO,CAAC;aAClC;;;WAAA;QACD,sBAAa,4CAAa;iBAA1B,UAA2B,KAAc;gBACvC,IAAI,KAAK,EAAE;oBACT,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;oBAChC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;wBACpB,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,KAAK,EAAE,IAAI;qBACZ,CAAC,CAAC;iBACJ;qBAAM;oBACL,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;oBACjC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;wBACpB,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,KAAK,EAAE,KAAK;qBACb,CAAC,CAAC;iBACJ;gBACD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;aAC9B;;;WAAA;QACD,sBAAa,sCAAO;iBAApB,UAAqB,KAAc;gBACjC,IAAI,KAAK;oBAAE,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;;oBACtC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;aACvC;;;WAAA;QACD,sBAAa,uCAAQ;iBAArB,UAAsB,KAAc;gBAClC,IAAI,KAAK;oBAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;;oBACjC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;aAChC;;;WAAA;QAMD,oCAAQ,GAAR,eAAa;QAEb,uCAAW,GAAX;YACE,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;gBAC7B,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;aACjC;iBAAM;gBACL,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK;oBAAE,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;;oBACxD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;aACtC;YACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;gBACpB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK;aAC9B,CAAC,CAAC;SACJ;;;;gBAxDFC,cAAS,SAAC;oBACT,QAAQ,EAAE,cAAc;oBACxB,qvBAAwC;;iBAEzC;;;;2BAKEC,cAAS,SAAC,OAAO;uBACjBC,UAAK;gCAGLA,UAAK;0BAgBLA,UAAK;2BAILA,UAAK;uBAILA,UAAK;8BACLA,UAAK;8BACLC,WAAM;;;;QC/BT;;QACS,sBAAO,GAAd;YACE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SACpD;;;;gBARFC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE,CAACC,mBAAY,EAAEC,yBAAmB,CAAC;oBAC5C,OAAO,EAAE,CAAC,iBAAiB,CAAC;iBAC7B;;;ICVD;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../projects/mis-components/checkbox/checkbox.component.ts","../../../projects/mis-components/checkbox/checkbox.module.ts"],"names":["CheckboxComponent","this","isError","isIndeterminate","name","formControl","FormControl","valueChange","EventEmitter","Object","defineProperty","prototype","value","setValue","emit","disable","enable","ngOnInit","toggleState","Component","args","selector","template","ViewChild","Input","Output","CheckboxModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","ReactiveFormsModule","exports"],"mappings":"+
|
|
1
|
+
{"version":3,"sources":["../../../projects/mis-components/checkbox/checkbox.component.ts","../../../projects/mis-components/checkbox/checkbox.module.ts"],"names":["CheckboxComponent","this","isError","isIndeterminate","name","formControl","FormControl","valueChange","EventEmitter","Object","defineProperty","prototype","value","setValue","emit","disable","enable","ngOnInit","toggleState","Component","args","selector","template","ViewChild","Input","Output","CheckboxModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","ReactiveFormsModule","exports"],"mappings":"+iBA4CE,SAAAA,IAnCOC,KAAAC,SAAmB,EACnBD,KAAAE,iBAA2B,EA8BzBF,KAAAG,KAAe,GACfH,KAAAI,YAA+B,IAAIC,EAAAA,YAClCL,KAAAM,YAAc,IAAIC,EAAAA,oBA7B5BC,OAAAC,eAAaV,EAAAW,UAAA,OAAI,KAAjB,SAAkBC,GAChBX,KAAKC,QAAoB,UAAVU,mCAEjBH,OAAAC,eAAaV,EAAAW,UAAA,gBAAa,KAA1B,SAA2BC,GACrBA,GACFX,KAAKI,YAAYQ,UAAS,GAC1BZ,KAAKM,YAAYO,KAAK,CACpBV,KAAMH,KAAKG,KACXQ,OAAO,MAGTX,KAAKI,YAAYQ,UAAS,GAC1BZ,KAAKM,YAAYO,KAAK,CACpBV,KAAMH,KAAKG,KACXQ,OAAO,KAGXX,KAAKE,gBAAkBS,mCAEzBH,OAAAC,eAAaV,EAAAW,UAAA,UAAO,KAApB,SAAqBC,GACfA,EAAOX,KAAKI,YAAYQ,UAAS,GAChCZ,KAAKI,YAAYQ,UAAS,oCAEjCJ,OAAAC,eAAaV,EAAAW,UAAA,WAAQ,KAArB,SAAsBC,GAChBA,EAAOX,KAAKI,YAAYU,UACvBd,KAAKI,YAAYW,0CAOxBhB,EAAAW,UAAAM,SAAA,aAEAjB,EAAAW,UAAAO,YAAA,WACMjB,KAAKE,iBACPF,KAAKE,iBAAkB,EACvBF,KAAKI,YAAYQ,UAAS,IAEtBZ,KAAKI,YAAYO,MAAOX,KAAKI,YAAYQ,UAAS,GACjDZ,KAAKI,YAAYQ,UAAS,GAEjCZ,KAAKM,YAAYO,KAAK,CACpBV,KAAMH,KAAKG,KACXQ,MAAOX,KAAKI,YAAYO,kCAtD7BO,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,eACVC,SAAA,urFAOCC,EAAAA,UAASH,KAAA,CAAC,uBACVI,EAAAA,6BAGAA,EAAAA,uBAgBAA,EAAAA,wBAIAA,EAAAA,oBAIAA,EAAAA,2BACAA,EAAAA,2BACAC,EAAAA,2BC/BH,SAAAC,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAgBG,UAAW,8BAPjDC,EAAAA,SAAQV,KAAA,CAAC,CACRW,aAAc,CAAC/B,GACfgC,QAAS,CAACC,EAAAA,aAAcC,EAAAA,qBACxBC,QAAS,CAACnC","sourcesContent":["import { Component, OnInit, EventEmitter, Input, Output, ViewChild, ElementRef, Renderer2 } from \"@angular/core\";\nimport { AbstractControl, FormControl } 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 FormControl();\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"]}
|
|
@@ -6,22 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
var ChipComponent = /** @class */ (function () {
|
|
8
8
|
function ChipComponent() {
|
|
9
|
-
this.label =
|
|
10
|
-
this.value =
|
|
11
|
-
this.size =
|
|
9
|
+
this.label = "";
|
|
10
|
+
this.value = "";
|
|
11
|
+
this.size = "Medium";
|
|
12
12
|
this.iconUrl = null;
|
|
13
13
|
this.count = null;
|
|
14
14
|
this.dismissible = false;
|
|
15
15
|
this.cancel = new core.EventEmitter();
|
|
16
16
|
}
|
|
17
|
-
ChipComponent.prototype.ngOnInit = function () {
|
|
18
|
-
};
|
|
17
|
+
ChipComponent.prototype.ngOnInit = function () { };
|
|
19
18
|
return ChipComponent;
|
|
20
19
|
}());
|
|
21
20
|
ChipComponent.decorators = [
|
|
22
21
|
{ type: core.Component, args: [{
|
|
23
|
-
selector:
|
|
24
|
-
template: "<div\n
|
|
22
|
+
selector: "mis-chip",
|
|
23
|
+
template: "<div\n id=\"chip-container\"\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=\"\" />\n <span>{{ 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\" id=\"close-icon\" (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",
|
|
25
24
|
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{margin-left:4px;cursor:pointer}#close-icon,#count-container{display:flex;justify-content:center;align-items:center}#count-container,#separator{height:100%}#separator{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-weight:700;font-size:12px;line-height:16px;letter-spacing:.7px}.medium,.small{font-style:normal;color:#181f33}.medium{height:32px;padding:6px 12px;border-radius:16px;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px}.small-m{height:20px;padding:4px 8px;border-radius:10px;font-size:11px;line-height:12px;letter-spacing:.1px}.medium-m,.small-m{font-style:normal;font-weight:400;color:#181f33}.medium-m{height:24px;padding:4px 12px;border-radius:12px;font-size:12px;line-height:16px;letter-spacing:.25px}"]
|
|
26
25
|
},] }
|
|
27
26
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-chip.umd.js","sources":["../../../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":["import {Component, Input, OnInit, Output, EventEmitter} from
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-chip.umd.js","sources":["../../../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":["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":["EventEmitter","Component","Input","Output","NgModule","CommonModule"],"mappings":";;;;;;;QAgBE;YARS,UAAK,GAAW,EAAE,CAAC;YACnB,UAAK,GAAQ,EAAE,CAAC;YAChB,SAAI,GAAgD,QAAQ,CAAC;YAC7D,YAAO,GAAkB,IAAI,CAAC;YAC9B,UAAK,GAA8B,IAAI,CAAC;YACxC,gBAAW,GAAY,KAAK,CAAC;YAE5B,WAAM,GAAG,IAAIA,iBAAY,EAAO,CAAC;SAC3B;QAChB,gCAAQ,GAAR,eAAa;;;;gBAfdC,cAAS,SAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,00CAAkC;;iBAEnC;;;;wBAEEC,UAAK;wBACLA,UAAK;uBACLA,UAAK;0BACLA,UAAK;wBACLA,UAAK;8BACLA,UAAK;yBAELC,WAAM;;;;QCNT;;QACS,kBAAO,GAAd;YACE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SAChD;;;;gBARFC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,aAAa,CAAC;oBAC7B,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,aAAa,CAAC;iBACzB;;;ICRD;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/chip",["exports","@angular/core","@angular/common"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].chip={}),e.ng.core,e.ng.common)}(this,(function(e,n,t){"use strict";var i=function(){function e(){this.label="",this.value="",this.size="Medium",this.iconUrl=null,this.count=null,this.dismissible=!1,this.cancel=new n.EventEmitter}return e.prototype.ngOnInit=function(){},e}();i.decorators=[{type:n.Component,args:[{selector:"mis-chip",template:'<div\n
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/chip",["exports","@angular/core","@angular/common"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].chip={}),e.ng.core,e.ng.common)}(this,(function(e,n,t){"use strict";var i=function(){function e(){this.label="",this.value="",this.size="Medium",this.iconUrl=null,this.count=null,this.dismissible=!1,this.cancel=new n.EventEmitter}return e.prototype.ngOnInit=function(){},e}();i.decorators=[{type:n.Component,args:[{selector:"mis-chip",template:'<div\n id="chip-container"\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="" />\n <span>{{ 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" id="close-icon" (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{margin-left:4px;cursor:pointer}#close-icon,#count-container{display:flex;justify-content:center;align-items:center}#count-container,#separator{height:100%}#separator{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-weight:700;font-size:12px;line-height:16px;letter-spacing:.7px}.medium,.small{font-style:normal;color:#181f33}.medium{height:32px;padding:6px 12px;border-radius:16px;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px}.small-m{height:20px;padding:4px 8px;border-radius:10px;font-size:11px;line-height:12px;letter-spacing:.1px}.medium-m,.small-m{font-style:normal;font-weight:400;color:#181f33}.medium-m{height:24px;padding:4px 12px;border-radius:12px;font-size:12px;line-height:16px;letter-spacing:.25px}"]}]}],i.ctorParameters=function(){return[]},i.propDecorators={label:[{type:n.Input}],value:[{type:n.Input}],size:[{type:n.Input}],iconUrl:[{type:n.Input}],count:[{type:n.Input}],dismissible:[{type:n.Input}],cancel:[{type:n.Output}]};var o=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();o.decorators=[{type:n.NgModule,args:[{declarations:[i],imports:[t.CommonModule],exports:[i]}]}],e.ChipComponent=i,e.ChipModule=o,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=mis-crystal-design-system-chip.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../projects/mis-components/chip/chip.component.ts","../../../projects/mis-components/chip/chip.module.ts"],"names":["ChipComponent","this","label","value","size","iconUrl","count","dismissible","cancel","EventEmitter","prototype","ngOnInit","Component","args","selector","template","Input","Output","ChipModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","exports"],"mappings":"+
|
|
1
|
+
{"version":3,"sources":["../../../projects/mis-components/chip/chip.component.ts","../../../projects/mis-components/chip/chip.module.ts"],"names":["ChipComponent","this","label","value","size","iconUrl","count","dismissible","cancel","EventEmitter","prototype","ngOnInit","Component","args","selector","template","Input","Output","ChipModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","exports"],"mappings":"+eAgBE,SAAAA,IARSC,KAAAC,MAAgB,GAChBD,KAAAE,MAAa,GACbF,KAAAG,KAAoD,SACpDH,KAAAI,QAAyB,KACzBJ,KAAAK,MAAmC,KACnCL,KAAAM,aAAuB,EAEtBN,KAAAO,OAAS,IAAIC,EAAAA,oBAEvBT,EAAAU,UAAAC,SAAA,sCAfDC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,WACVC,SAAA,s7EAICC,EAAAA,qBACAA,EAAAA,oBACAA,EAAAA,uBACAA,EAAAA,qBACAA,EAAAA,2BACAA,EAAAA,sBAEAC,EAAAA,2BCNH,SAAAC,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAYG,UAAW,8BAP7CC,EAAAA,SAAQT,KAAA,CAAC,CACRU,aAAc,CAACvB,GACfwB,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC1B","sourcesContent":["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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('moment-timezone'), require('mis-crystal-design-system/toast'), require('@angular/cdk/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('mis-crystal-design-system/datepicker_v2', ['exports', '@angular/core', '@angular/common', 'moment-timezone', 'mis-crystal-design-system/toast', '@angular/cdk/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system'].datepicker_v2 = {}), global.ng.core, global.ng.common, global.momentTimezone, global['mis-crystal-design-system'].toast, global.ng.cdk.
|
|
5
|
-
}(this, (function (exports, core, common, momentTimezone, toast,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/overlay'), require('moment-timezone'), require('mis-crystal-design-system/toast'), require('@angular/cdk/portal'), require('@angular/forms'), require('rxjs/operators'), require('mis-crystal-design-system/utils'), require('mis-crystal-design-system/button')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('mis-crystal-design-system/datepicker_v2', ['exports', '@angular/core', '@angular/common', '@angular/cdk/overlay', 'moment-timezone', 'mis-crystal-design-system/toast', '@angular/cdk/portal', '@angular/forms', 'rxjs/operators', 'mis-crystal-design-system/utils', 'mis-crystal-design-system/button'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-crystal-design-system'] = global['mis-crystal-design-system'] || {}, global['mis-crystal-design-system'].datepicker_v2 = {}), global.ng.core, global.ng.common, global.ng.cdk.overlay, global.momentTimezone, global['mis-crystal-design-system'].toast, global.ng.cdk.portal, global.ng.forms, global.rxjs.operators, global['mis-crystal-design-system'].utils, global['mis-crystal-design-system'].button));
|
|
5
|
+
}(this, (function (exports, core, common, overlay, momentTimezone, toast, portal, forms, operators, utils, button) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -323,47 +323,47 @@
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
/** @format */
|
|
326
|
-
var CONTAINER_DATA = new core.InjectionToken(
|
|
326
|
+
var CONTAINER_DATA = new core.InjectionToken("CONTAINER_DATA");
|
|
327
327
|
var DATE_FORMAT = "DD-MM-YYYY";
|
|
328
328
|
|
|
329
329
|
var getMonth = function (index) {
|
|
330
330
|
var month;
|
|
331
331
|
switch (index) {
|
|
332
332
|
case 0:
|
|
333
|
-
month =
|
|
333
|
+
month = "January";
|
|
334
334
|
break;
|
|
335
335
|
case 1:
|
|
336
|
-
month =
|
|
336
|
+
month = "February";
|
|
337
337
|
break;
|
|
338
338
|
case 2:
|
|
339
|
-
month =
|
|
339
|
+
month = "March";
|
|
340
340
|
break;
|
|
341
341
|
case 3:
|
|
342
|
-
month =
|
|
342
|
+
month = "April";
|
|
343
343
|
break;
|
|
344
344
|
case 4:
|
|
345
|
-
month =
|
|
345
|
+
month = "May";
|
|
346
346
|
break;
|
|
347
347
|
case 5:
|
|
348
|
-
month =
|
|
348
|
+
month = "June";
|
|
349
349
|
break;
|
|
350
350
|
case 6:
|
|
351
|
-
month =
|
|
351
|
+
month = "July";
|
|
352
352
|
break;
|
|
353
353
|
case 7:
|
|
354
|
-
month =
|
|
354
|
+
month = "August";
|
|
355
355
|
break;
|
|
356
356
|
case 8:
|
|
357
|
-
month =
|
|
357
|
+
month = "September";
|
|
358
358
|
break;
|
|
359
359
|
case 9:
|
|
360
|
-
month =
|
|
360
|
+
month = "October";
|
|
361
361
|
break;
|
|
362
362
|
case 10:
|
|
363
|
-
month =
|
|
363
|
+
month = "November";
|
|
364
364
|
break;
|
|
365
365
|
case 11:
|
|
366
|
-
month =
|
|
366
|
+
month = "December";
|
|
367
367
|
break;
|
|
368
368
|
default:
|
|
369
369
|
break;
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
this.currentYearNumber = this.parseZoneInstance().year();
|
|
404
404
|
this.weekDays = this.rawWeekDays.map(function (day, index) { return ({
|
|
405
405
|
label: "" + day[0] + day.slice(1).toLowerCase(),
|
|
406
|
-
isCurrentDay: _this.parseZoneInstance().day() === index
|
|
406
|
+
isCurrentDay: _this.parseZoneInstance().day() === index
|
|
407
407
|
}); });
|
|
408
408
|
if (!((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.dpConfig) === null || _d === void 0 ? void 0 : _d.format)) {
|
|
409
409
|
this.data.dpConfig = Object.assign(Object.assign({}, this.data.dpConfig), { format: DATE_FORMAT });
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
this_1.parseZoneInstance().format(this_1.data.dpConfig.format),
|
|
472
472
|
isSelectedDay: !isDisabledDay && date.format(this_1.data.dpConfig.format) === this_1.data.date,
|
|
473
473
|
toastMessage: ((_a = this_1.data.messages.find(function (q) { return date.format(_this.data.dpConfig.format) === q.date; })) === null || _a === void 0 ? void 0 : _a.message) || "",
|
|
474
|
-
isDisabledDay: isDisabledDay
|
|
474
|
+
isDisabledDay: isDisabledDay
|
|
475
475
|
});
|
|
476
476
|
};
|
|
477
477
|
var this_1 = this;
|
|
@@ -498,22 +498,25 @@
|
|
|
498
498
|
};
|
|
499
499
|
TzDpContainerComponent.prototype.applyDate = function (day) {
|
|
500
500
|
if (day || this.localSelectedDate) {
|
|
501
|
-
this.data.dateChange(momentTimezone.parseZone()
|
|
502
|
-
.
|
|
501
|
+
this.data.dateChange(momentTimezone.parseZone()
|
|
502
|
+
.year(this.currentYearNumber)
|
|
503
|
+
.month(this.currentMonthNumber)
|
|
504
|
+
.date(day ? day.date : this.localSelectedDate.date)
|
|
505
|
+
.format(this.data.dpConfig.format));
|
|
503
506
|
}
|
|
504
507
|
else {
|
|
505
508
|
this.cancelDatePicker();
|
|
506
509
|
}
|
|
507
510
|
};
|
|
508
511
|
TzDpContainerComponent.prototype.cancelDatePicker = function () {
|
|
509
|
-
this.data.dateChange(
|
|
512
|
+
this.data.dateChange("");
|
|
510
513
|
};
|
|
511
514
|
return TzDpContainerComponent;
|
|
512
515
|
}());
|
|
513
516
|
TzDpContainerComponent.decorators = [
|
|
514
517
|
{ type: core.Component, args: [{
|
|
515
518
|
selector: "mis-tz-dp",
|
|
516
|
-
template: "<div class=\"datepicker-container\">\n <div class=\"datepicker-container__header\">\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"!isPreviousMonthDisabled && navigateMonth('PREVIOUS')\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled\n }\"\n >\n <svg
|
|
519
|
+
template: "<div class=\"datepicker-container\">\n <div class=\"datepicker-container__header\">\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"!isPreviousMonthDisabled && navigateMonth('PREVIOUS')\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled\n }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n <span> {{ currentMonth }} {{ currentYearNumber }} </span>\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"!isNextMonthDisabled && navigateMonth('NEXT')\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled\n }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n </div>\n <div class=\"datepicker-container__body\">\n <div class=\"datepicker-container__weekdays\">\n <div class=\"datepicker-container__weekday\" *ngFor=\"let weekDay of weekDays\">\n <span [ngClass]=\"{ 'current-day': weekDay.isCurrentDay }\">{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"datepicker-container__days\">\n <div\n class=\"datepicker-container__day\"\n [ngClass]=\"{\n 'selected-day': !localSelectedDate ? day.isSelectedDay : day === localSelectedDate,\n 'disabled-day': day.isDisabledDay,\n 'is-valid-date': day.date > 0 && !day.isSelectedDay\n }\"\n *ngFor=\"let day of currentMonthDates\"\n (click)=\"selectDay(day)\"\n >\n <span\n *ngIf=\"day.date > 0\"\n [ngClass]=\"{\n 'current-day': day.isCurrentDay,\n 'selected-day': !localSelectedDate ? day.isSelectedDay : day === localSelectedDate,\n 'disabled-day': day.isDisabledDay\n }\"\n >\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n <div class=\"datepicker-container__footer\" *ngIf=\"data.dpConfig.showApplyButton\">\n <button mis-button size=\"md\" type=\"'none'\" (click)=\"cancelDatePicker()\">Cancel</button>\n <button mis-button size=\"md\" type=\"primary\" (click)=\"applyDate()\" [disabled]=\"!(data.date || localSelectedDate)\">Apply</button>\n </div>\n</div>\n",
|
|
517
520
|
styles: [".datepicker-container{background:#fff;border:1px solid #e0e0e0;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);border-radius:12px;display:flex;flex-direction:column;font-family:Lato;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;width:290px}.datepicker-container .datepicker-container__header{display:flex;height:32px;margin:16px;justify-content:space-between;align-items:center;width:258px}.datepicker-container .datepicker-container__header span{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon.disabled-month{opacity:.5;cursor:not-allowed}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon:first-child{transform:rotate(180deg)}.datepicker-container .datepicker-container__body{width:258px;height:100%;margin:0 16px 16px}.datepicker-container .datepicker-container__body .datepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday{width:36px;height:18px;text-align:center}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday span{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#c7c7c7}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday span.current-day{font-weight:700;letter-spacing:.25px;color:#181f33}.datepicker-container .datepicker-container__body .datepicker-container__days{display:flex;flex-wrap:wrap;gap:2px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:4px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.selected-day{background-color:#0937b2;cursor:pointer}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.disabled-day{cursor:default}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.disabled-day:hover{background-color:transparent}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-day):hover{background-color:#cbddfb;cursor:pointer}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-day):hover span.selected-day{color:#181f33!important}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.selected-day{color:#fff}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.disabled-day{color:#c7c7c7}.datepicker-container .datepicker-container__footer{display:flex;justify-content:flex-end;gap:8px;bottom:0;align-items:center;position:-webkit-sticky;position:sticky;padding:16px;border-top:1px solid #e0e0e0}"]
|
|
518
521
|
},] }
|
|
519
522
|
];
|
|
@@ -657,7 +660,7 @@
|
|
|
657
660
|
DatepickerModuleV2.decorators = [
|
|
658
661
|
{ type: core.NgModule, args: [{
|
|
659
662
|
declarations: [TzDpContainerComponent, TzDatepickerDirective],
|
|
660
|
-
imports: [common.CommonModule, toast.ToastModule.forRoot(), button.ButtonModule],
|
|
663
|
+
imports: [common.CommonModule, overlay.OverlayModule, toast.ToastModule.forRoot(), button.ButtonModule],
|
|
661
664
|
exports: [TzDpContainerComponent, TzDatepickerDirective],
|
|
662
665
|
entryComponents: [TzDpContainerComponent]
|
|
663
666
|
},] }
|