mis-crystal-design-system 14.0.0 → 14.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/action-list/action-list.component.mjs +231 -36
- package/esm2020/action-list/action-list.module.mjs +13 -12
- package/esm2020/analytics/analytics.module.mjs +7 -7
- package/esm2020/analytics/analytics.service.mjs +12 -12
- package/esm2020/async-search-dropdown/async-dropdown.component.mjs +274 -64
- package/esm2020/async-search-dropdown/async-dropdown.module.mjs +13 -12
- package/esm2020/button/button.component.mjs +64 -29
- package/esm2020/button/button.directive.mjs +18 -16
- package/esm2020/button/button.module.mjs +13 -12
- package/esm2020/checkbox/checkbox.component.mjs +61 -24
- package/esm2020/checkbox/checkbox.module.mjs +13 -12
- package/esm2020/chip/chip.component.mjs +67 -21
- package/esm2020/chip/chip.module.mjs +13 -12
- package/esm2020/datepicker_v2/datepicker.module.mjs +13 -12
- package/esm2020/datepicker_v2/tz-datepicker.directive.mjs +44 -42
- package/esm2020/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +104 -10
- package/esm2020/daterangepicker_v2/daterangepicker.module.mjs +13 -12
- package/esm2020/daterangepicker_v2/tz-daterangepicker.directive.mjs +36 -34
- package/esm2020/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +145 -11
- package/esm2020/drawer/drawer-body/drawer-body.component.mjs +35 -20
- package/esm2020/drawer/drawer.module.mjs +12 -11
- package/esm2020/drawer/drawer.service.mjs +9 -9
- package/esm2020/dropdown/calculate-container-height.directive.mjs +13 -13
- package/esm2020/dropdown/dropdown.component.mjs +274 -58
- package/esm2020/dropdown/dropdown.module.mjs +13 -12
- package/esm2020/dynamic-form/dynamic-form.component.mjs +423 -22
- package/esm2020/dynamic-form/dynamic-form.module.mjs +25 -24
- package/esm2020/fab/fab.component.mjs +104 -42
- package/esm2020/fab/fab.module.mjs +13 -12
- package/esm2020/input/directives/input/input.directive.mjs +14 -14
- package/esm2020/input/mis-input.component.mjs +57 -22
- package/esm2020/input/mis-input.module.mjs +13 -12
- package/esm2020/input-stepper/input-stepper/input-stepper.component.mjs +39 -17
- package/esm2020/input-stepper/input-stepper.module.mjs +19 -18
- package/esm2020/loader/loader.component.mjs +14 -9
- package/esm2020/loader/loader.module.mjs +13 -12
- package/esm2020/menu/menu-close.directive.mjs +17 -15
- package/esm2020/menu/menu.directive.mjs +26 -24
- package/esm2020/menu/menu.module.mjs +13 -12
- package/esm2020/mobile-filter/mobile-filter.component.mjs +138 -25
- package/esm2020/mobile-filter/mobile-filter.module.mjs +13 -12
- package/esm2020/modal/modal.module.mjs +12 -11
- package/esm2020/modal/modal.service.mjs +9 -9
- package/esm2020/modal/module-wrapper/module-wrapper.component.mjs +41 -26
- package/esm2020/multi-select-dropdown/multi-select-dropdown.component.mjs +229 -45
- package/esm2020/multi-select-dropdown/multi-select-dropdown.module.mjs +13 -12
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +234 -37
- package/esm2020/nested-multi-select-dropdown/nested-multi-select-dropdown.module.mjs +13 -12
- package/esm2020/phone-input/phone-input.component.mjs +54 -41
- package/esm2020/phone-input/phone-input.module.mjs +13 -12
- package/esm2020/radio-button/radio-button.component.mjs +26 -19
- package/esm2020/radio-button/radio-button.module.mjs +13 -12
- package/esm2020/ske-loader/ske-loader.component.mjs +36 -17
- package/esm2020/ske-loader/ske-loader.module.mjs +13 -12
- package/esm2020/slider/slider.component.mjs +23 -15
- package/esm2020/slider/slider.module.mjs +21 -20
- package/esm2020/snackbar/snackbar/snackbar.component.mjs +61 -11
- package/esm2020/snackbar/snackbar.module.mjs +17 -16
- package/esm2020/snackbar/snackbar.service.mjs +9 -9
- package/esm2020/specificdatepicker/specificdatepicker.module.mjs +13 -12
- package/esm2020/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +273 -13
- package/esm2020/specificdatepicker/tz-specificdatepicker.directive.mjs +48 -46
- package/esm2020/star-rating/star-rating.component.mjs +52 -26
- package/esm2020/star-rating/star-rating.module.mjs +13 -12
- package/esm2020/switch/switch.component.mjs +29 -17
- package/esm2020/switch/switch.module.mjs +13 -12
- package/esm2020/table/custom-table-cell.directive.mjs +13 -13
- package/esm2020/table/filter/filter.component.mjs +105 -16
- package/esm2020/table/sub-table/sub-table.component.mjs +138 -14
- package/esm2020/table/table.component.mjs +301 -35
- package/esm2020/table/table.module.mjs +13 -12
- package/esm2020/timepicker/timepicker.component.mjs +115 -48
- package/esm2020/timepicker/timepicker.directive.mjs +17 -17
- package/esm2020/timepicker/timepicker.module.mjs +13 -12
- package/esm2020/timerangepicker/timerangepicker.component.mjs +58 -36
- package/esm2020/timerangepicker/timerangepicker.module.mjs +13 -12
- package/esm2020/toast/toast.component.mjs +40 -23
- package/esm2020/toast/toast.data.service.mjs +9 -9
- package/esm2020/toast/toast.module.mjs +12 -11
- package/esm2020/toast/toast.service.mjs +9 -9
- package/esm2020/tooltip/tooltip-container/tooltip.component.mjs +54 -10
- package/esm2020/tooltip/tooltip.directive.mjs +29 -27
- package/esm2020/tooltip/tooltip.module.mjs +13 -12
- package/esm2020/virtual-scroll/virtual-scroll.component.mjs +92 -18
- package/esm2020/virtual-scroll/virtual-scroll.module.mjs +21 -20
- package/esm2020/widgets/services/widget.service.mjs +6 -6
- package/esm2020/widgets/widgets.module.mjs +13 -12
- package/fesm2015/mis-crystal-design-system-action-list.mjs +256 -10
- package/fesm2015/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-analytics.mjs +14 -10
- package/fesm2015/mis-crystal-design-system-analytics.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs +279 -10
- package/fesm2015/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-button.mjs +70 -15
- package/fesm2015/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-checkbox.mjs +64 -10
- package/fesm2015/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-chip.mjs +72 -10
- package/fesm2015/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs +136 -16
- package/fesm2015/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs +183 -18
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-drawer.mjs +47 -19
- package/fesm2015/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-dropdown.mjs +290 -15
- package/fesm2015/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-dynamic-form.mjs +511 -20
- package/fesm2015/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-fab.mjs +107 -23
- package/fesm2015/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-input-stepper.mjs +40 -10
- package/fesm2015/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-input.mjs +65 -15
- package/fesm2015/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-loader.mjs +23 -10
- package/fesm2015/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-menu.mjs +30 -15
- package/fesm2015/mis-crystal-design-system-menu.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-mobile-filter.mjs +148 -10
- package/fesm2015/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-modal.mjs +50 -22
- package/fesm2015/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs +238 -10
- package/fesm2015/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs +252 -10
- package/fesm2015/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-phone-input.mjs +31 -10
- package/fesm2015/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-radio-button.mjs +25 -10
- package/fesm2015/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs +40 -10
- package/fesm2015/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-slider.mjs +30 -12
- package/fesm2015/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-snackbar.mjs +85 -14
- package/fesm2015/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs +332 -17
- package/fesm2015/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-star-rating.mjs +47 -10
- package/fesm2015/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-switch.mjs +30 -10
- package/fesm2015/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-table.mjs +620 -25
- package/fesm2015/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-timepicker.mjs +107 -16
- package/fesm2015/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-timerangepicker.mjs +43 -11
- package/fesm2015/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-toast.mjs +57 -25
- package/fesm2015/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-tooltip.mjs +87 -15
- package/fesm2015/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs +117 -12
- package/fesm2015/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/fesm2015/mis-crystal-design-system-widgets.mjs +8 -5
- package/fesm2015/mis-crystal-design-system-widgets.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-action-list.mjs +242 -46
- package/fesm2020/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-analytics.mjs +17 -17
- package/fesm2020/mis-crystal-design-system-analytics.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs +285 -74
- package/fesm2020/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-button.mjs +92 -54
- package/fesm2020/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-checkbox.mjs +72 -34
- package/fesm2020/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-chip.mjs +78 -31
- package/fesm2020/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs +158 -61
- package/fesm2020/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs +191 -55
- package/fesm2020/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-drawer.mjs +53 -37
- package/fesm2020/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-dropdown.mjs +297 -80
- package/fesm2020/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-dynamic-form.mjs +446 -45
- package/fesm2020/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-fab.mjs +115 -52
- package/fesm2020/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-input-stepper.mjs +56 -33
- package/fesm2020/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-input.mjs +81 -45
- package/fesm2020/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-loader.mjs +25 -19
- package/fesm2020/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-menu.mjs +53 -48
- package/fesm2020/mis-crystal-design-system-menu.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-mobile-filter.mjs +149 -35
- package/fesm2020/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-modal.mjs +59 -43
- package/fesm2020/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs +240 -55
- package/fesm2020/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs +245 -47
- package/fesm2020/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-phone-input.mjs +65 -51
- package/fesm2020/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-radio-button.mjs +37 -29
- package/fesm2020/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs +47 -27
- package/fesm2020/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-slider.mjs +42 -33
- package/fesm2020/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-snackbar.mjs +84 -33
- package/fesm2020/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs +331 -68
- package/fesm2020/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-star-rating.mjs +63 -36
- package/fesm2020/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-switch.mjs +40 -27
- package/fesm2020/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-table.mjs +565 -85
- package/fesm2020/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-timepicker.mjs +142 -74
- package/fesm2020/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-timerangepicker.mjs +69 -46
- package/fesm2020/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-toast.mjs +66 -48
- package/fesm2020/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-tooltip.mjs +93 -46
- package/fesm2020/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs +111 -36
- package/fesm2020/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/fesm2020/mis-crystal-design-system-widgets.mjs +12 -11
- package/fesm2020/mis-crystal-design-system-widgets.mjs.map +1 -1
- package/package.json +5 -2
- package/timepicker/timepicker.component.d.ts +1 -1
|
@@ -10,6 +10,7 @@ import { DropdownModule } from 'mis-crystal-design-system/dropdown';
|
|
|
10
10
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
11
11
|
import { ScrollingModule } from '@angular/cdk-experimental/scrolling';
|
|
12
12
|
|
|
13
|
+
const _c0 = function (a0) { return { "height": a0 }; };
|
|
13
14
|
class PhoneInputComponent {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.dropdownHeight = "";
|
|
@@ -64,12 +65,28 @@ class PhoneInputComponent {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
PhoneInputComponent.ɵfac =
|
|
68
|
-
PhoneInputComponent.ɵcmp = i0.ɵɵ
|
|
69
|
-
|
|
68
|
+
PhoneInputComponent.ɵfac = function PhoneInputComponent_Factory(t) { return new (t || PhoneInputComponent)(); };
|
|
69
|
+
PhoneInputComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhoneInputComponent, selectors: [["mis-phone-input"]], inputs: { dropdownHeight: "dropdownHeight", dropdownWidth: "dropdownWidth", inputHeight: "inputHeight", dropdownData: "dropdownData", dropdownSelectedItem: "dropdownSelectedItem", defaultCountryCode: "defaultCountryCode", label: "label", inputPlaceholder: "inputPlaceholder", inputFormControl: "inputFormControl", dropdownListWidth: "dropdownListWidth", dropdownListHeight: "dropdownListHeight", searchEnabled: "searchEnabled", inputType: "inputType", searchLabel: "searchLabel", phoneValidator: "phoneValidator" }, outputs: { onDropdownSelection: "onDropdownSelection", onInvalidPhoneNumber: "onInvalidPhoneNumber" }, decls: 5, vars: 16, consts: [[1, "main-container-phone"], [3, "height", "dropdownListWidth", "dropdownListHeight", "width", "data", "selectedItem", "label", "searchEnabled", "multiLine", "searchLabel", "onChange"], [1, "details-field"], [1, "input-box"], [1, "black-text", 3, "ngStyle", "placeholder", "formControl", "type"]], template: function PhoneInputComponent_Template(rf, ctx) {
|
|
70
|
+
if (rf & 1) {
|
|
71
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mis-dropdown", 1);
|
|
72
|
+
i0.ɵɵlistener("onChange", function PhoneInputComponent_Template_mis_dropdown_onChange_1_listener($event) { return ctx.handleDropdownSelection($event); });
|
|
73
|
+
i0.ɵɵelementEnd();
|
|
74
|
+
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
|
|
75
|
+
i0.ɵɵelement(4, "input", 4);
|
|
76
|
+
i0.ɵɵelementEnd()()();
|
|
77
|
+
}
|
|
78
|
+
if (rf & 2) {
|
|
79
|
+
i0.ɵɵadvance(1);
|
|
80
|
+
i0.ɵɵproperty("height", ctx.dropdownHeight)("dropdownListWidth", ctx.dropdownListWidth)("dropdownListHeight", ctx.dropdownListHeight)("width", ctx.dropdownWidth)("data", ctx.dropdownData)("selectedItem", ctx.dropdownSelectedItem)("label", ctx.label)("searchEnabled", ctx.searchEnabled)("multiLine", false)("searchLabel", ctx.searchLabel);
|
|
81
|
+
i0.ɵɵadvance(3);
|
|
82
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c0, ctx.inputHeight))("placeholder", ctx.inputPlaceholder)("formControl", ctx.inputFormControl)("type", ctx.inputType);
|
|
83
|
+
}
|
|
84
|
+
}, dependencies: [i1.NgStyle, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i3.DropdownComponent], styles: [".main-container-phone[_ngcontent-%COMP%]{display:flex;border:1px solid #E0E0E0;border-radius:6px}.details-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;min-width:224px;margin-right:24px}.details-field[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%]{width:100%}.details-field[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:32px}input[_ngcontent-%COMP%]{padding:10px 16px;border:none;outline:none;color:#181f33;line-height:24px;font-size:16px;width:100%;height:auto;border-radius:6px}.black-text[_ngcontent-%COMP%]{color:#181f33;font-size:16px;line-height:24px}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.main-container-phone[_ngcontent-%COMP%] .item{padding:8px!important}.main-container-phone[_ngcontent-%COMP%] .dropdown{border:unset!important}"] });
|
|
85
|
+
(function () {
|
|
86
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoneInputComponent, [{
|
|
70
87
|
type: Component,
|
|
71
88
|
args: [{ selector: "mis-phone-input", template: "<div class=\"main-container-phone\">\n <mis-dropdown [height]=\"dropdownHeight\" [dropdownListWidth]=\"dropdownListWidth\"[dropdownListHeight]=\"dropdownListHeight\" [width]=\"dropdownWidth\" [data]=\"dropdownData\" [selectedItem]=\"dropdownSelectedItem\" [label]=\"label\" [searchEnabled]=\"searchEnabled\" [multiLine]=\"false\" (onChange)=\"handleDropdownSelection($event)\" [searchLabel]=\"searchLabel\"></mis-dropdown>\n <div class=\"details-field\">\n <div class=\"input-box\">\n <input\n [ngStyle]=\"{'height': inputHeight }\"\n class=\"black-text\" \n [placeholder]=\"inputPlaceholder\"\n [formControl]=\"inputFormControl\" \n [type]=\"inputType\"\n />\n </div>\n </div>\n</div>\n", styles: [".main-container-phone{display:flex;border:1px solid #E0E0E0;border-radius:6px}.details-field label{display:inline-block;min-width:224px;margin-right:24px}.details-field .input-box{width:100%}.details-field .input-box input{width:100%;height:32px}input{padding:10px 16px;border:none;outline:none;color:#181f33;line-height:24px;font-size:16px;width:100%;height:auto;border-radius:6px}.black-text{color:#181f33;font-size:16px;line-height:24px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.main-container-phone ::ng-deep .item{padding:8px!important}.main-container-phone ::ng-deep .dropdown{border:unset!important}\n"] }]
|
|
72
|
-
}],
|
|
89
|
+
}], function () { return []; }, { dropdownHeight: [{
|
|
73
90
|
type: Input
|
|
74
91
|
}], dropdownWidth: [{
|
|
75
92
|
type: Input
|
|
@@ -103,24 +120,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
103
120
|
type: Input
|
|
104
121
|
}], phoneValidator: [{
|
|
105
122
|
type: Input
|
|
106
|
-
}] }
|
|
123
|
+
}] });
|
|
124
|
+
})();
|
|
107
125
|
|
|
108
126
|
class PhoneInputModule {
|
|
109
127
|
static forRoot() {
|
|
110
128
|
return { ngModule: PhoneInputModule, providers: [] };
|
|
111
129
|
}
|
|
112
130
|
}
|
|
113
|
-
PhoneInputModule.ɵfac =
|
|
114
|
-
PhoneInputModule.ɵmod = i0.ɵɵ
|
|
115
|
-
PhoneInputModule.ɵinj = i0.ɵɵ
|
|
116
|
-
|
|
131
|
+
PhoneInputModule.ɵfac = function PhoneInputModule_Factory(t) { return new (t || PhoneInputModule)(); };
|
|
132
|
+
PhoneInputModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PhoneInputModule });
|
|
133
|
+
PhoneInputModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule] });
|
|
134
|
+
(function () {
|
|
135
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoneInputModule, [{
|
|
117
136
|
type: NgModule,
|
|
118
137
|
args: [{
|
|
119
138
|
declarations: [PhoneInputComponent],
|
|
120
139
|
imports: [CommonModule, ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],
|
|
121
140
|
exports: [PhoneInputComponent]
|
|
122
141
|
}]
|
|
123
|
-
}]
|
|
142
|
+
}], null, null);
|
|
143
|
+
})();
|
|
144
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PhoneInputModule, { declarations: [PhoneInputComponent], imports: [CommonModule, ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule], exports: [PhoneInputComponent] }); })();
|
|
124
145
|
|
|
125
146
|
/**
|
|
126
147
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-phone-input.mjs","sources":["../../../projects/mis-components/phone-input/phone-input.component.ts","../../../projects/mis-components/phone-input/phone-input.component.html","../../../projects/mis-components/phone-input/phone-input.module.ts","../../../projects/mis-components/phone-input/mis-crystal-design-system-phone-input.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\nimport { UntypedFormControl } from \"@angular/forms\";\nimport { parsePhoneNumberFromString, getCountryCallingCode, CountryCode, getCountries } from 'libphonenumber-js';\nimport { DropdownItem } from \"mis-crystal-design-system/dropdown\";\n\n@Component({\n selector: \"mis-phone-input\",\n templateUrl: \"./phone-input.component.html\",\n styleUrls: [\"./phone-input.component.scss\"]\n})\nexport class PhoneInputComponent implements OnInit {\n @Input() dropdownHeight?: string = \"\";\n @Input() dropdownWidth?: string = \"\";\n @Input() inputHeight?;\n @Input() dropdownData: DropdownItem[] = [];\n @Input() dropdownSelectedItem: DropdownItem = { value: \"\", label: \"\" };\n @Input() defaultCountryCode?: string = 'IN';\n @Input() label: string;\n @Input() inputPlaceholder: string = 'Enter';\n @Input() inputFormControl: UntypedFormControl = new UntypedFormControl();\n @Output() onDropdownSelection = new EventEmitter<any>();\n @Output() onInvalidPhoneNumber = new EventEmitter<string>();\n @Input() dropdownListWidth = \"\";\n @Input() dropdownListHeight = \"\";\n @Input() searchEnabled: boolean = true;\n @Input() inputType: string = \"number\";\n @Input() searchLabel: string = \"Search Keyword\"; \n @Input() phoneValidator? = false;\n \n countryCodes: DropdownItem[] = [{label:'',value:''}];\n countryCode: CountryCode | undefined;\n selectedCountryName: string = '';\n\n constructor() {}\n\n ngOnInit() {\n if (this.phoneValidator) {\n this.loadCountryCodes();\n this.dropdownData = this.countryCodes;\n this.selectedCountryName = this.dropdownSelectedItem.label;\n }\n\n if (this.defaultCountryCode) {\n const selectedCountry = this.dropdownData.find(\n country => country.value.toUpperCase() === this.defaultCountryCode.toUpperCase()\n );\n if (selectedCountry) {\n this.dropdownSelectedItem = selectedCountry;\n this.selectedCountryName = selectedCountry.label;\n }\n }\n }\n\n handleDropdownSelection(item: DropdownItem){\n this.dropdownSelectedItem = item;\n this.onDropdownSelection.emit(item);\n this.selectedCountryName = item.label;\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.value);\n }\n\n loadCountryCodes() {\n const countries = getCountries();\n this.countryCodes = countries.map(countryCode => ({\n value: countryCode,\n label: `${countryCode} (+${getCountryCallingCode(countryCode)})`\n }));\n }\n\n validatePhoneNumber(phoneNumber: string, countryCode: string) {\n const parsedPhoneNumber = parsePhoneNumberFromString(phoneNumber, countryCode as CountryCode);\n\n if (!parsedPhoneNumber || !parsedPhoneNumber.isValid()) {\n this.onInvalidPhoneNumber.emit(`Phone number is invalid for ${this.selectedCountryName}`);\n }\n }\n\n}\n","<div class=\"main-container-phone\">\n <mis-dropdown [height]=\"dropdownHeight\" [dropdownListWidth]=\"dropdownListWidth\"[dropdownListHeight]=\"dropdownListHeight\" [width]=\"dropdownWidth\" [data]=\"dropdownData\" [selectedItem]=\"dropdownSelectedItem\" [label]=\"label\" [searchEnabled]=\"searchEnabled\" [multiLine]=\"false\" (onChange)=\"handleDropdownSelection($event)\" [searchLabel]=\"searchLabel\"></mis-dropdown>\n <div class=\"details-field\">\n <div class=\"input-box\">\n <input\n [ngStyle]=\"{'height': inputHeight }\"\n class=\"black-text\" \n [placeholder]=\"inputPlaceholder\"\n [formControl]=\"inputFormControl\" \n [type]=\"inputType\"\n />\n </div>\n </div>\n</div>\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { PhoneInputComponent } from \"./phone-input.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { DropdownModule } from \"mis-crystal-design-system/dropdown\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n\n@NgModule({\n declarations: [PhoneInputComponent],\n imports: [CommonModule,ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],\n exports: [PhoneInputComponent]\n})\nexport class PhoneInputModule {\n static forRoot(): ModuleWithProviders<PhoneInputModule> {\n return { ngModule: PhoneInputModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAUa,mBAAmB,CAAA;AAuB9B,IAAA,WAAA,GAAA;AAtBS,QAAA,IAAc,CAAA,cAAA,GAAY,EAAE,CAAC;AAC7B,QAAA,IAAa,CAAA,aAAA,GAAY,EAAE,CAAC;AAE5B,QAAA,IAAY,CAAA,YAAA,GAAmB,EAAE,CAAC;AAClC,QAAA,IAAoB,CAAA,oBAAA,GAAiB,EAAE,KAAK,EA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BAAmB,CACxB,EAAA,OAAA,EAAA,CAAA,YAAY,EAAC,mBAAmB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,aAC7F,mBAAmB,CAAA,EAAA,CAAA,CAAA;8GAElB,gBAAgB,EAAA,OAAA,EAAA,CAHjB,YAAY,EAAC,mBAAmB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;2FAG5F,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAC,mBAAmB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,CAAC;oBACxG,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC/B,CAAA;;;ACdD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-phone-input.mjs","sources":["../../../projects/mis-components/phone-input/phone-input.component.ts","../../../projects/mis-components/phone-input/phone-input.component.html","../../../projects/mis-components/phone-input/phone-input.module.ts","../../../projects/mis-components/phone-input/mis-crystal-design-system-phone-input.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from \"@angular/core\";\nimport { UntypedFormControl } from \"@angular/forms\";\nimport { parsePhoneNumberFromString, getCountryCallingCode, CountryCode, getCountries } from 'libphonenumber-js';\nimport { DropdownItem } from \"mis-crystal-design-system/dropdown\";\n\n@Component({\n selector: \"mis-phone-input\",\n templateUrl: \"./phone-input.component.html\",\n styleUrls: [\"./phone-input.component.scss\"]\n})\nexport class PhoneInputComponent implements OnInit {\n @Input() dropdownHeight?: string = \"\";\n @Input() dropdownWidth?: string = \"\";\n @Input() inputHeight?;\n @Input() dropdownData: DropdownItem[] = [];\n @Input() dropdownSelectedItem: DropdownItem = { value: \"\", label: \"\" };\n @Input() defaultCountryCode?: string = 'IN';\n @Input() label: string;\n @Input() inputPlaceholder: string = 'Enter';\n @Input() inputFormControl: UntypedFormControl = new UntypedFormControl();\n @Output() onDropdownSelection = new EventEmitter<any>();\n @Output() onInvalidPhoneNumber = new EventEmitter<string>();\n @Input() dropdownListWidth = \"\";\n @Input() dropdownListHeight = \"\";\n @Input() searchEnabled: boolean = true;\n @Input() inputType: string = \"number\";\n @Input() searchLabel: string = \"Search Keyword\"; \n @Input() phoneValidator? = false;\n \n countryCodes: DropdownItem[] = [{label:'',value:''}];\n countryCode: CountryCode | undefined;\n selectedCountryName: string = '';\n\n constructor() {}\n\n ngOnInit() {\n if (this.phoneValidator) {\n this.loadCountryCodes();\n this.dropdownData = this.countryCodes;\n this.selectedCountryName = this.dropdownSelectedItem.label;\n }\n\n if (this.defaultCountryCode) {\n const selectedCountry = this.dropdownData.find(\n country => country.value.toUpperCase() === this.defaultCountryCode.toUpperCase()\n );\n if (selectedCountry) {\n this.dropdownSelectedItem = selectedCountry;\n this.selectedCountryName = selectedCountry.label;\n }\n }\n }\n\n handleDropdownSelection(item: DropdownItem){\n this.dropdownSelectedItem = item;\n this.onDropdownSelection.emit(item);\n this.selectedCountryName = item.label;\n this.validatePhoneNumber(this.inputFormControl.value, this.dropdownSelectedItem.value);\n }\n\n loadCountryCodes() {\n const countries = getCountries();\n this.countryCodes = countries.map(countryCode => ({\n value: countryCode,\n label: `${countryCode} (+${getCountryCallingCode(countryCode)})`\n }));\n }\n\n validatePhoneNumber(phoneNumber: string, countryCode: string) {\n const parsedPhoneNumber = parsePhoneNumberFromString(phoneNumber, countryCode as CountryCode);\n\n if (!parsedPhoneNumber || !parsedPhoneNumber.isValid()) {\n this.onInvalidPhoneNumber.emit(`Phone number is invalid for ${this.selectedCountryName}`);\n }\n }\n\n}\n","<div class=\"main-container-phone\">\n <mis-dropdown [height]=\"dropdownHeight\" [dropdownListWidth]=\"dropdownListWidth\"[dropdownListHeight]=\"dropdownListHeight\" [width]=\"dropdownWidth\" [data]=\"dropdownData\" [selectedItem]=\"dropdownSelectedItem\" [label]=\"label\" [searchEnabled]=\"searchEnabled\" [multiLine]=\"false\" (onChange)=\"handleDropdownSelection($event)\" [searchLabel]=\"searchLabel\"></mis-dropdown>\n <div class=\"details-field\">\n <div class=\"input-box\">\n <input\n [ngStyle]=\"{'height': inputHeight }\"\n class=\"black-text\" \n [placeholder]=\"inputPlaceholder\"\n [formControl]=\"inputFormControl\" \n [type]=\"inputType\"\n />\n </div>\n </div>\n</div>\n","import { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { PhoneInputComponent } from \"./phone-input.component\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { ScrollingModule } from \"@angular/cdk-experimental/scrolling\";\nimport { DropdownModule } from \"mis-crystal-design-system/dropdown\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n\n@NgModule({\n declarations: [PhoneInputComponent],\n imports: [CommonModule,ReactiveFormsModule, FormsModule, OverlayModule, ScrollingModule, DropdownModule],\n exports: [PhoneInputComponent]\n})\nexport class PhoneInputModule {\n static forRoot(): ModuleWithProviders<PhoneInputModule> {\n return { ngModule: PhoneInputModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAUa,mBAAmB,CAAA;AAuB9B,IAAA,WAAA,GAAA;AAtBS,QAAA,IAAc,CAAA,cAAA,GAAY,EAAE,CAAC;AAC7B,QAAA,IAAa,CAAA,aAAA,GAAY,EAAE,CAAC;AAE5B,QAAA,IAAY,CAAA,YAAA,GAAmB,EAAE,CAAC;AAClC,QAAA,IAAoB,CAAA,oBAAA,GAAiB,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAC9D,QAAA,IAAkB,CAAA,kBAAA,GAAY,IAAI,CAAC;AAEnC,QAAA,IAAgB,CAAA,gBAAA,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AA,CAAA,YAAY,EAAC,mBAAmB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,aAC7F,mBAAmB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACb/B;;AAEG;;;;"}
|
|
@@ -30,12 +30,23 @@ class RadioButtonComponent {
|
|
|
30
30
|
this.valueChange.emit(this.formControl.value);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
RadioButtonComponent.ɵfac =
|
|
34
|
-
RadioButtonComponent.ɵcmp = i0.ɵɵ
|
|
35
|
-
|
|
33
|
+
RadioButtonComponent.ɵfac = function RadioButtonComponent_Factory(t) { return new (t || RadioButtonComponent)(); };
|
|
34
|
+
RadioButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RadioButtonComponent, selectors: [["mis-radio"]], inputs: { id: "id", name: "name", value: "value", disabled: "disabled", formControl: "formControl" }, outputs: { valueChange: "valueChange" }, decls: 1, vars: 5, consts: [["type", "radio", 3, "id", "name", "disabled", "value", "formControl", "change"]], template: function RadioButtonComponent_Template(rf, ctx) {
|
|
35
|
+
if (rf & 1) {
|
|
36
|
+
i0.ɵɵelementStart(0, "input", 0);
|
|
37
|
+
i0.ɵɵlistener("change", function RadioButtonComponent_Template_input_change_0_listener($event) { return ctx.onChange($event); });
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
}
|
|
40
|
+
if (rf & 2) {
|
|
41
|
+
i0.ɵɵpropertyInterpolate("id", ctx.id);
|
|
42
|
+
i0.ɵɵproperty("name", ctx.name)("disabled", ctx.disabled)("value", ctx.value)("formControl", ctx.formControl);
|
|
43
|
+
}
|
|
44
|
+
}, dependencies: [i1.DefaultValueAccessor, i1.RadioControlValueAccessor, i1.NgControlStatus, i1.FormControlDirective], styles: ["input[type=radio][_ngcontent-%COMP%]{appearance:none;width:20px;height:20px;margin:0;padding:3px;background-clip:content-box;border:2px solid #6a737d;background-color:#fff;border-radius:50%;cursor:pointer}input[type=radio][_ngcontent-%COMP%]:checked{background-color:#0937b2;border:2px solid #0937b2}input[type=radio][_ngcontent-%COMP%]:hover{border:2px solid #929dab}input[type=radio][_ngcontent-%COMP%]:checked:hover{border:2px solid #0937b2}input[type=radio][_ngcontent-%COMP%]:disabled{border:2px solid #c8cdd3}input[type=radio][_ngcontent-%COMP%]:checked:disabled{border:2px solid #c8cdd3;background-color:#c8cdd3}"] });
|
|
45
|
+
(function () {
|
|
46
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RadioButtonComponent, [{
|
|
36
47
|
type: Component,
|
|
37
48
|
args: [{ selector: "mis-radio", template: "<input (change)=\"onChange($event)\" id=\"{{ id }}\" type=\"radio\" [name]=\"name\" [disabled]=\"disabled\" [value]=\"value\" [formControl]=\"formControl\" />\n", styles: ["input[type=radio]{appearance:none;width:20px;height:20px;margin:0;padding:3px;background-clip:content-box;border:2px solid #6a737d;background-color:#fff;border-radius:50%;cursor:pointer}input[type=radio]:checked{background-color:#0937b2;border:2px solid #0937b2}input[type=radio]:hover{border:2px solid #929dab}input[type=radio]:checked:hover{border:2px solid #0937b2}input[type=radio]:disabled{border:2px solid #c8cdd3}input[type=radio]:checked:disabled{border:2px solid #c8cdd3;background-color:#c8cdd3}\n"] }]
|
|
38
|
-
}],
|
|
49
|
+
}], function () { return []; }, { id: [{
|
|
39
50
|
type: Input
|
|
40
51
|
}], name: [{
|
|
41
52
|
type: Input
|
|
@@ -47,24 +58,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
47
58
|
type: Input
|
|
48
59
|
}], valueChange: [{
|
|
49
60
|
type: Output
|
|
50
|
-
}] }
|
|
61
|
+
}] });
|
|
62
|
+
})();
|
|
51
63
|
|
|
52
64
|
class RadioButtonModule {
|
|
53
65
|
static forRoot() {
|
|
54
66
|
return { ngModule: RadioButtonModule, providers: [] };
|
|
55
67
|
}
|
|
56
68
|
}
|
|
57
|
-
RadioButtonModule.ɵfac =
|
|
58
|
-
RadioButtonModule.ɵmod = i0.ɵɵ
|
|
59
|
-
RadioButtonModule.ɵinj = i0.ɵɵ
|
|
60
|
-
|
|
69
|
+
RadioButtonModule.ɵfac = function RadioButtonModule_Factory(t) { return new (t || RadioButtonModule)(); };
|
|
70
|
+
RadioButtonModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: RadioButtonModule });
|
|
71
|
+
RadioButtonModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, ReactiveFormsModule] });
|
|
72
|
+
(function () {
|
|
73
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RadioButtonModule, [{
|
|
61
74
|
type: NgModule,
|
|
62
75
|
args: [{
|
|
63
76
|
declarations: [RadioButtonComponent],
|
|
64
77
|
imports: [CommonModule, ReactiveFormsModule],
|
|
65
78
|
exports: [RadioButtonComponent]
|
|
66
79
|
}]
|
|
67
|
-
}]
|
|
80
|
+
}], null, null);
|
|
81
|
+
})();
|
|
82
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(RadioButtonModule, { declarations: [RadioButtonComponent], imports: [CommonModule, ReactiveFormsModule], exports: [RadioButtonComponent] }); })();
|
|
68
83
|
|
|
69
84
|
/**
|
|
70
85
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-radio-button.mjs","sources":["../../../projects/mis-components/radio-button/radio-button.component.ts","../../../projects/mis-components/radio-button/radio-button.component.html","../../../projects/mis-components/radio-button/radio-button.module.ts","../../../projects/mis-components/radio-button/mis-crystal-design-system-radio-button.ts"],"sourcesContent":["import { Component, Input, OnInit, Output, EventEmitter } from \"@angular/core\";\nimport { AbstractControl, UntypedFormControl } from \"@angular/forms\";\n\n@Component({\n selector: \"mis-radio\",\n templateUrl: \"./radio-button.component.html\",\n styleUrls: [\"./radio-button.component.scss\"]\n})\nexport class RadioButtonComponent implements OnInit {\n /** When multiple radio input fields are used\n * an \"id\" can be given to keep track of them */\n @Input() id: string | number = \"\";\n /** Name of the attribute for which the radio\n * selection is provided */\n @Input() name: string | number = \"\";\n /** Value of the attribute which is to be emitted\n * when selected */\n @Input() value: string | number = \"\";\n /** Controls the state of the radio button */\n @Input() disabled: boolean = false;\n\n /** Can be used to attach the radio input field\n * to a reactive form by passing in a\n * “FormControl“ Object. It can also be\n * used to set the default attribute value */\n @Input() formControl: AbstractControl = new UntypedFormControl(null);\n\n /** Emits \"value\" of the radio button on selection */\n @Output() valueChange = new EventEmitter<any>();\n\n constructor() {}\n ngOnInit() {}\n onChange(event) {\n this.valueChange.emit(this.formControl.value);\n }\n}\n","<input (change)=\"onChange($event)\" id=\"{{ id }}\" type=\"radio\" [name]=\"name\" [disabled]=\"disabled\" [value]=\"value\" [formControl]=\"formControl\" />\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { RadioButtonComponent } from \"./radio-button.component\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n@NgModule({\n declarations: [RadioButtonComponent],\n imports: [CommonModule, ReactiveFormsModule],\n exports: [RadioButtonComponent]\n})\nexport class RadioButtonModule {\n static forRoot(): ModuleWithProviders<RadioButtonModule> {\n return { ngModule: RadioButtonModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,oBAAoB,CAAA;AAsB/B,IAAA,WAAA,GAAA;AArBA;AACgD;AACvC,QAAA,IAAE,CAAA,EAAA,GAAoB,EAAE,CAAC;AAClC;AAC2B;AAClB,QAAA,IAAI,CAAA,IAAA,GAAoB,EAAE,CAAC;AACpC;AACmB;AACV,QAAA,IAAK,CAAA,KAAA,GAAoB,EAAE,CAAC;;AAE5B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAEnC;;;AAG6C;QACpC,IAAA,CAAA,WAAW,GAAoB,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;;AAG3D,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAO,CAAC;KAEhC;AAChB,IAAA,QAAQ,MAAK;AACb,IAAA,QAAQ,CAAC,KAAK,EAAA;QACZ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KAC/C;;
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-radio-button.mjs","sources":["../../../projects/mis-components/radio-button/radio-button.component.ts","../../../projects/mis-components/radio-button/radio-button.component.html","../../../projects/mis-components/radio-button/radio-button.module.ts","../../../projects/mis-components/radio-button/mis-crystal-design-system-radio-button.ts"],"sourcesContent":["import { Component, Input, OnInit, Output, EventEmitter } from \"@angular/core\";\nimport { AbstractControl, UntypedFormControl } from \"@angular/forms\";\n\n@Component({\n selector: \"mis-radio\",\n templateUrl: \"./radio-button.component.html\",\n styleUrls: [\"./radio-button.component.scss\"]\n})\nexport class RadioButtonComponent implements OnInit {\n /** When multiple radio input fields are used\n * an \"id\" can be given to keep track of them */\n @Input() id: string | number = \"\";\n /** Name of the attribute for which the radio\n * selection is provided */\n @Input() name: string | number = \"\";\n /** Value of the attribute which is to be emitted\n * when selected */\n @Input() value: string | number = \"\";\n /** Controls the state of the radio button */\n @Input() disabled: boolean = false;\n\n /** Can be used to attach the radio input field\n * to a reactive form by passing in a\n * “FormControl“ Object. It can also be\n * used to set the default attribute value */\n @Input() formControl: AbstractControl = new UntypedFormControl(null);\n\n /** Emits \"value\" of the radio button on selection */\n @Output() valueChange = new EventEmitter<any>();\n\n constructor() {}\n ngOnInit() {}\n onChange(event) {\n this.valueChange.emit(this.formControl.value);\n }\n}\n","<input (change)=\"onChange($event)\" id=\"{{ id }}\" type=\"radio\" [name]=\"name\" [disabled]=\"disabled\" [value]=\"value\" [formControl]=\"formControl\" />\n","import { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\n\nimport { RadioButtonComponent } from \"./radio-button.component\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\n@NgModule({\n declarations: [RadioButtonComponent],\n imports: [CommonModule, ReactiveFormsModule],\n exports: [RadioButtonComponent]\n})\nexport class RadioButtonModule {\n static forRoot(): ModuleWithProviders<RadioButtonModule> {\n return { ngModule: RadioButtonModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,oBAAoB,CAAA;AAsB/B,IAAA,WAAA,GAAA;AArBA;AACgD;AACvC,QAAA,IAAE,CAAA,EAAA,GAAoB,EAAE,CAAC;AAClC;AAC2B;AAClB,QAAA,IAAI,CAAA,IAAA,GAAoB,EAAE,CAAC;AACpC;AACmB;AACV,QAAA,IAAK,CAAA,KAAA,GAAoB,EAAE,CAAC;;AAE5B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;AAEnC;;;AAG6C;QACpC,IAAA,CAAA,WAAW,GAAoB,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;;AAG3D,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAO,CAAC;KAEhC;AAChB,IAAA,QAAQ,MAAK;AACb,IAAA,QAAQ,CAAC,KAAK,EAAA;QACZ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KAC/C;;wFA1BU,oBAAoB,GAAA,CAAA,EAAA,CAAA;uEAApB,oBAAoB,EAAA,SAAA,EAAA,CAAA,CAAA,WAAA,CAAA,CAAA,EAAA,MAAA,EAAA,EAAA,EAAA,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,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AAiB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACvD;;kFAHU,iBAAiB,GAAA,CAAA,EAAA,CAAA;mEAAjB,iBAAiB,EAAA,CAAA,CAAA;AAHlB,iBAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;;4EAGhC,iBAAiB,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;AACpC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;oBAC5C,OAAO,EAAE,CAAC,oBAAoB,CAAC;iBAChC,CAAA;;;AACY,CAAA,cAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,iBAAiB,mBAJb,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACzB,YAAY,EAAE,mBAAmB,aACjC,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACThC;;AAEG;;;;"}
|
|
@@ -3,6 +3,20 @@ import { Component, Input, NgModule } from '@angular/core';
|
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
|
+
const _c0 = function (a0, a1) { return { "height": a0, "margin-bottom": a1 }; };
|
|
7
|
+
function SkeLoaderComponent_div_1_Template(rf, ctx) {
|
|
8
|
+
if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementStart(0, "div");
|
|
10
|
+
i0.ɵɵelement(1, "div", 2);
|
|
11
|
+
i0.ɵɵelementEnd();
|
|
12
|
+
}
|
|
13
|
+
if (rf & 2) {
|
|
14
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵadvance(1);
|
|
16
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(1, _c0, ctx_r0.lineHeight, ctx_r0.gap));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const _c1 = function (a0, a1) { return { "height": a0, "width": a1 }; };
|
|
6
20
|
class SkeLoaderComponent {
|
|
7
21
|
constructor() {
|
|
8
22
|
this.rowCount = [1];
|
|
@@ -17,12 +31,24 @@ class SkeLoaderComponent {
|
|
|
17
31
|
;
|
|
18
32
|
ngOnInit() { }
|
|
19
33
|
}
|
|
20
|
-
SkeLoaderComponent.ɵfac =
|
|
21
|
-
SkeLoaderComponent.ɵcmp = i0.ɵɵ
|
|
22
|
-
|
|
34
|
+
SkeLoaderComponent.ɵfac = function SkeLoaderComponent_Factory(t) { return new (t || SkeLoaderComponent)(); };
|
|
35
|
+
SkeLoaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SkeLoaderComponent, selectors: [["mis-skeleton-loader"]], inputs: { count: "count", lineHeight: "lineHeight", height: "height", width: "width", gap: "gap" }, decls: 2, vars: 5, consts: [[2, "overflow", "hidden", 3, "ngStyle"], [4, "ngFor", "ngForOf"], [1, "ske-loader", 3, "ngStyle"]], template: function SkeLoaderComponent_Template(rf, ctx) {
|
|
36
|
+
if (rf & 1) {
|
|
37
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
38
|
+
i0.ɵɵtemplate(1, SkeLoaderComponent_div_1_Template, 2, 4, "div", 1);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
}
|
|
41
|
+
if (rf & 2) {
|
|
42
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(2, _c1, ctx.height, ctx.width));
|
|
43
|
+
i0.ɵɵadvance(1);
|
|
44
|
+
i0.ɵɵproperty("ngForOf", ctx.rowCount);
|
|
45
|
+
}
|
|
46
|
+
}, dependencies: [i1.NgForOf, i1.NgStyle], styles: [".ske-loader[_ngcontent-%COMP%]{background:#808080;position:relative;width:100%;background:#E5E5E5;background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);border-radius:5px;background-size:200% 100%;animation:1s shine linear infinite;overflow:hidden}@keyframes shine{to{background-position-x:-200%}}"] });
|
|
47
|
+
(function () {
|
|
48
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SkeLoaderComponent, [{
|
|
23
49
|
type: Component,
|
|
24
50
|
args: [{ selector: 'mis-skeleton-loader', template: "<div style=\"overflow: hidden\" [ngStyle]=\"{'height': this.height,'width' : this.width}\">\n <div *ngFor=\"let n of rowCount; let i = index;\">\n <div class=\"ske-loader\" [ngStyle]=\"{'height':this.lineHeight,'margin-bottom':this.gap }\"></div>\n </div>\n</div>\n", styles: [".ske-loader{background:#808080;position:relative;width:100%;background:#E5E5E5;background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);border-radius:5px;background-size:200% 100%;animation:1s shine linear infinite;overflow:hidden}@keyframes shine{to{background-position-x:-200%}}\n"] }]
|
|
25
|
-
}],
|
|
51
|
+
}], function () { return []; }, { count: [{
|
|
26
52
|
type: Input
|
|
27
53
|
}], lineHeight: [{
|
|
28
54
|
type: Input
|
|
@@ -32,21 +58,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
32
58
|
type: Input
|
|
33
59
|
}], gap: [{
|
|
34
60
|
type: Input
|
|
35
|
-
}] }
|
|
61
|
+
}] });
|
|
62
|
+
})();
|
|
36
63
|
|
|
37
64
|
class SkeLoaderModule {
|
|
38
65
|
}
|
|
39
|
-
SkeLoaderModule.ɵfac =
|
|
40
|
-
SkeLoaderModule.ɵmod = i0.ɵɵ
|
|
41
|
-
SkeLoaderModule.ɵinj = i0.ɵɵ
|
|
42
|
-
|
|
66
|
+
SkeLoaderModule.ɵfac = function SkeLoaderModule_Factory(t) { return new (t || SkeLoaderModule)(); };
|
|
67
|
+
SkeLoaderModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SkeLoaderModule });
|
|
68
|
+
SkeLoaderModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
|
|
69
|
+
(function () {
|
|
70
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SkeLoaderModule, [{
|
|
43
71
|
type: NgModule,
|
|
44
72
|
args: [{
|
|
45
73
|
declarations: [SkeLoaderComponent],
|
|
46
74
|
imports: [CommonModule],
|
|
47
75
|
exports: [SkeLoaderComponent]
|
|
48
76
|
}]
|
|
49
|
-
}]
|
|
77
|
+
}], null, null);
|
|
78
|
+
})();
|
|
79
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SkeLoaderModule, { declarations: [SkeLoaderComponent], imports: [CommonModule], exports: [SkeLoaderComponent] }); })();
|
|
50
80
|
|
|
51
81
|
/**
|
|
52
82
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-ske-loader.mjs","sources":["../../../projects/mis-components/ske-loader/ske-loader.component.
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-ske-loader.mjs","sources":["../../../projects/mis-components/ske-loader/ske-loader.component.html","../../../projects/mis-components/ske-loader/ske-loader.component.ts","../../../projects/mis-components/ske-loader/ske-loader.module.ts","../../../projects/mis-components/ske-loader/mis-crystal-design-system-ske-loader.ts"],"sourcesContent":["<div style=\"overflow: hidden\" [ngStyle]=\"{'height': this.height,'width' : this.width}\">\n <div *ngFor=\"let n of rowCount; let i = index;\">\n <div class=\"ske-loader\" [ngStyle]=\"{'height':this.lineHeight,'margin-bottom':this.gap }\"></div>\n </div>\n</div>\n","import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'mis-skeleton-loader',\n templateUrl: './ske-loader.component.html',\n styleUrls: ['./ske-loader.component.scss']\n})\nexport class SkeLoaderComponent implements OnInit {\n\n rowCount = [1];\n @Input() set count(num: number) {\n this.rowCount = Array(num)\n };\n @Input() lineHeight: string = '20px';\n @Input() height: string = '100%';\n @Input() width: string = '100%';\n @Input() gap: string = '8px'\n\n constructor() { }\n\n ngOnInit(): void {}\n\n}\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { SkeLoaderComponent } from \"./ske-loader.component\";\n\n@NgModule({\n declarations: [SkeLoaderComponent],\n imports: [CommonModule],\n exports: [SkeLoaderComponent]\n})\nexport class SkeLoaderModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AACI,QAAA,EAAgD,CAAA,cAAA,CAAA,CAAA,EAAA,KAAA,CAAA,CAAA;QAC5C,EAA+F,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;QACnG,EAAM,CAAA,YAAA,EAAA,CAAA;;;;AADsB,QAAA,EAAgE,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;QAAhE,EAAgE,CAAA,UAAA,CAAA,SAAA,EAAA,EAAA,CAAA,eAAA,CAAA,CAAA,EAAA,GAAA,EAAA,MAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;;;;MCKnF,kBAAkB,CAAA;AAW7B,IAAA,WAAA,GAAA;AATA,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;AAIN,QAAA,IAAU,CAAA,UAAA,GAAW,MAAM,CAAC;AAC5B,QAAA,IAAM,CAAA,MAAA,GAAW,MAAM,CAAC;AACxB,QAAA,IAAK,CAAA,KAAA,GAAW,MAAM,CAAC;AACvB,QAAA,IAAG,CAAA,GAAA,GAAW,KAAK,CAAA;KAEX;IARjB,IAAa,KAAK,CAAC,GAAW,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;KAC3B;;AAQD,IAAA,QAAQ,MAAW;;oFAbR,kBAAkB,GAA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,KAAK,EAAA,CAAA;sBAAjB,KAAK;gBAGG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,GAAG,EAAA,CAAA;sBAAX,KAAK;;;;MCPK,eAAe,CAAA;;8EAAf,eAAe,GAAA,CAAA,EAAA,CAAA;iEAAf,eAAe,EAAA,CAAA,CAAA;qEAHhB,YAAY,CAAA,EAAA,CAAA,CAAA;;4EAGX,eAAe,EAAA,CAAA;kBAL3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,kBAAkB,CAAC;iBAC9B,CAAA;;;AACY,CAAA,cAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,eAAe,EAJX,EAAA,YAAA,EAAA,CAAA,kBAAkB,CACvB,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACP9B;;AAEG;;;;"}
|
|
@@ -23,12 +23,24 @@ class SliderComponent {
|
|
|
23
23
|
this.valueChange.emit(this.value);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
SliderComponent.ɵfac =
|
|
27
|
-
SliderComponent.ɵcmp = i0.ɵɵ
|
|
28
|
-
|
|
26
|
+
SliderComponent.ɵfac = function SliderComponent_Factory(t) { return new (t || SliderComponent)(i0.ɵɵdirectiveInject(i1.UntypedFormBuilder)); };
|
|
27
|
+
SliderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderComponent, selectors: [["mis-slider"]], inputs: { min: "min", max: "max", value: "value" }, outputs: { valueChange: "valueChange" }, decls: 3, vars: 3, consts: [[3, "formGroup"], [1, "slider"], ["type", "range", "formControlName", "sliderFormControl", 3, "min", "max", "input"]], template: function SliderComponent_Template(rf, ctx) {
|
|
28
|
+
if (rf & 1) {
|
|
29
|
+
i0.ɵɵelementStart(0, "form", 0)(1, "div", 1)(2, "input", 2);
|
|
30
|
+
i0.ɵɵlistener("input", function SliderComponent_Template_input_input_2_listener($event) { return ctx.onInputChange($event.target.value); });
|
|
31
|
+
i0.ɵɵelementEnd()()();
|
|
32
|
+
}
|
|
33
|
+
if (rf & 2) {
|
|
34
|
+
i0.ɵɵproperty("formGroup", ctx.sliderForm);
|
|
35
|
+
i0.ɵɵadvance(2);
|
|
36
|
+
i0.ɵɵproperty("min", ctx.min)("max", ctx.max);
|
|
37
|
+
}
|
|
38
|
+
}, dependencies: [i1.ɵNgNoValidate, i1.DefaultValueAccessor, i1.RangeValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.FormControlName], styles: [".slider[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;input[type=\"range\"] {width: 100%; appearance: none; height: 8px; background: #CBDDFB; outline: none; border-radius: 5px; &::-webkit-slider-thumb {appearance: none; width: 22px; height: 22px; background: #0937B2; cursor: pointer; border-radius: 50%;} &::-moz-range-thumb {width: 15px; height: 15px; background: #0937B2; cursor: pointer; border-radius: 50%;}} span {margin-left: 10px;}}"] });
|
|
39
|
+
(function () {
|
|
40
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderComponent, [{
|
|
29
41
|
type: Component,
|
|
30
42
|
args: [{ selector: 'mis-slider', template: "<form [formGroup]=\"sliderForm\">\n <div class=\"slider\">\n <input type=\"range\" [min]=\"min\" [max]=\"max\" formControlName=\"sliderFormControl\" (input)=\"onInputChange($event.target.value)\" />\n </div>\n </form>\n \n\n ", styles: [".slider{width:100%;display:flex;align-items:center;input[type=\"range\"] {width: 100%; appearance: none; height: 8px; background: #CBDDFB; outline: none; border-radius: 5px; &::-webkit-slider-thumb {appearance: none; width: 22px; height: 22px; background: #0937B2; cursor: pointer; border-radius: 50%;} &::-moz-range-thumb {width: 15px; height: 15px; background: #0937B2; cursor: pointer; border-radius: 50%;}} span {margin-left: 10px;}}\n"] }]
|
|
31
|
-
}],
|
|
43
|
+
}], function () { return [{ type: i1.UntypedFormBuilder }]; }, { min: [{
|
|
32
44
|
type: Input
|
|
33
45
|
}], max: [{
|
|
34
46
|
type: Input
|
|
@@ -36,18 +48,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
36
48
|
type: Input
|
|
37
49
|
}], valueChange: [{
|
|
38
50
|
type: Output
|
|
39
|
-
}] }
|
|
51
|
+
}] });
|
|
52
|
+
})();
|
|
40
53
|
|
|
41
54
|
class SliderModule {
|
|
42
55
|
}
|
|
43
|
-
SliderModule.ɵfac =
|
|
44
|
-
SliderModule.ɵmod = i0.ɵɵ
|
|
45
|
-
|
|
46
|
-
ReactiveFormsModule], exports: [SliderComponent] });
|
|
47
|
-
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, imports: [CommonModule,
|
|
56
|
+
SliderModule.ɵfac = function SliderModule_Factory(t) { return new (t || SliderModule)(); };
|
|
57
|
+
SliderModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SliderModule });
|
|
58
|
+
SliderModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
48
59
|
FormsModule,
|
|
49
60
|
ReactiveFormsModule] });
|
|
50
|
-
|
|
61
|
+
(function () {
|
|
62
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderModule, [{
|
|
51
63
|
type: NgModule,
|
|
52
64
|
args: [{
|
|
53
65
|
declarations: [
|
|
@@ -60,7 +72,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
60
72
|
],
|
|
61
73
|
exports: [SliderComponent]
|
|
62
74
|
}]
|
|
63
|
-
}]
|
|
75
|
+
}], null, null);
|
|
76
|
+
})();
|
|
77
|
+
(function () {
|
|
78
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SliderModule, { declarations: [SliderComponent], imports: [CommonModule,
|
|
79
|
+
FormsModule,
|
|
80
|
+
ReactiveFormsModule], exports: [SliderComponent] });
|
|
81
|
+
})();
|
|
64
82
|
|
|
65
83
|
/**
|
|
66
84
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mis-crystal-design-system-slider.mjs","sources":["../../../projects/mis-components/slider/slider.component.ts","../../../projects/mis-components/slider/slider.component.html","../../../projects/mis-components/slider/slider.module.ts","../../../projects/mis-components/slider/mis-crystal-design-system-slider.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';\n\n@Component({\n selector: 'mis-slider',\n templateUrl: './slider.component.html',\n styleUrls: ['./slider.component.css']\n})\nexport class SliderComponent implements OnInit {\n\n @Input() min?:number = 0;\n @Input() max?:number = 100;\n @Input() value: number = 0;\n @Output() valueChange = new EventEmitter<number>()\n\n sliderForm: UntypedFormGroup;\n\n constructor(private formBuilder: UntypedFormBuilder) { }\n\n ngOnInit(): void {\n this.sliderForm = this.formBuilder.group({\n sliderFormControl: [this.value]\n });\n }\n\n onInputChange(value: number) {\n this.value = value;\n this.sliderForm.patchValue({sliderFormControl: value})\n this.valueChange.emit(this.value);\n }\n\n}\n","<form [formGroup]=\"sliderForm\">\n <div class=\"slider\">\n <input type=\"range\" [min]=\"min\" [max]=\"max\" formControlName=\"sliderFormControl\" (input)=\"onInputChange($event.target.value)\" />\n </div>\n </form>\n \n\n ","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SliderComponent } from './slider.component';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n\n\n@NgModule({\n declarations: [\n SliderComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule\n ],\n exports: [SliderComponent]\n})\nexport class SliderModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,eAAe,CAAA;AAS1B,IAAA,WAAA,CAAoB,WAA+B,EAAA;AAA/B,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAoB;AAP1C,QAAA,IAAG,CAAA,GAAA,GAAW,CAAC,CAAC;AAChB,QAAA,IAAG,CAAA,GAAA,GAAW,GAAG,CAAC;AAClB,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC,CAAC;AACjB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU,CAAA;KAIM;IAExD,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AACvC,YAAA,iBAAiB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;AAChC,SAAA,CAAC,CAAC;KACJ;AAED,IAAA,aAAa,CAAC,KAAa,EAAA;AACzB,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAC,iBAAiB,EAAE,KAAK,EAAC,CAAC,CAAA;QACtD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACnC;;
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-slider.mjs","sources":["../../../projects/mis-components/slider/slider.component.ts","../../../projects/mis-components/slider/slider.component.html","../../../projects/mis-components/slider/slider.module.ts","../../../projects/mis-components/slider/mis-crystal-design-system-slider.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';\n\n@Component({\n selector: 'mis-slider',\n templateUrl: './slider.component.html',\n styleUrls: ['./slider.component.css']\n})\nexport class SliderComponent implements OnInit {\n\n @Input() min?:number = 0;\n @Input() max?:number = 100;\n @Input() value: number = 0;\n @Output() valueChange = new EventEmitter<number>()\n\n sliderForm: UntypedFormGroup;\n\n constructor(private formBuilder: UntypedFormBuilder) { }\n\n ngOnInit(): void {\n this.sliderForm = this.formBuilder.group({\n sliderFormControl: [this.value]\n });\n }\n\n onInputChange(value: number) {\n this.value = value;\n this.sliderForm.patchValue({sliderFormControl: value})\n this.valueChange.emit(this.value);\n }\n\n}\n","<form [formGroup]=\"sliderForm\">\n <div class=\"slider\">\n <input type=\"range\" [min]=\"min\" [max]=\"max\" formControlName=\"sliderFormControl\" (input)=\"onInputChange($event.target.value)\" />\n </div>\n </form>\n \n\n ","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SliderComponent } from './slider.component';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n\n\n@NgModule({\n declarations: [\n SliderComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule\n ],\n exports: [SliderComponent]\n})\nexport class SliderModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,eAAe,CAAA;AAS1B,IAAA,WAAA,CAAoB,WAA+B,EAAA;AAA/B,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAoB;AAP1C,QAAA,IAAG,CAAA,GAAA,GAAW,CAAC,CAAC;AAChB,QAAA,IAAG,CAAA,GAAA,GAAW,GAAG,CAAC;AAClB,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC,CAAC;AACjB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU,CAAA;KAIM;IAExD,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AACvC,YAAA,iBAAiB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;AACh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