mis-crystal-design-system 17.0.0 → 17.0.1
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/analytics/analytics.service.d.ts +5 -1
- package/assets/images/close.svg +5 -0
- package/async-search-dropdown/async-dropdown.component.d.ts +9 -1
- package/async-search-dropdown/async-dropdown.module.d.ts +2 -1
- package/datepicker_v2/datepicker.module.d.ts +2 -1
- package/datepicker_v2/tz-datepicker.directive.d.ts +2 -0
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +18 -1
- package/daterangepicker_v2/daterangepicker.module.d.ts +2 -1
- package/daterangepicker_v2/models/drp-config.model.d.ts +6 -0
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -0
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +5 -1
- package/dropdown/calculate-container-height.directive.d.ts +1 -1
- package/dropdown/dropdown.component.d.ts +4 -1
- package/dropdown/dropdown.module.d.ts +2 -1
- package/dynamic-form/dynamic-form.component.d.ts +14 -3
- package/dynamic-form/dynamic-form.namespace.d.ts +1 -0
- package/esm2022/action-list/action-list.component.mjs +1 -1
- package/esm2022/analytics/analytics.service.mjs +7 -6
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +97 -46
- package/esm2022/async-search-dropdown/async-dropdown.module.mjs +5 -4
- package/esm2022/button/button.directive.mjs +1 -1
- package/esm2022/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/chip/chip.component.mjs +13 -13
- package/esm2022/datepicker_v2/datepicker.module.mjs +5 -4
- package/esm2022/datepicker_v2/public_api.mjs +1 -1
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +21 -2
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +259 -73
- package/esm2022/datepicker_v2/utils/index.mjs +1 -1
- package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +5 -4
- package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
- package/esm2022/daterangepicker_v2/public_api.mjs +1 -1
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +24 -3
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +179 -78
- package/esm2022/daterangepicker_v2/utils/index.mjs +1 -1
- package/esm2022/dropdown/calculate-container-height.directive.mjs +5 -5
- package/esm2022/dropdown/dropdown.component.mjs +156 -96
- package/esm2022/dropdown/dropdown.module.mjs +5 -4
- package/esm2022/dynamic-form/dynamic-form.component.mjs +599 -216
- package/esm2022/dynamic-form/dynamic-form.namespace.mjs +1 -1
- package/esm2022/fab/fab.component.mjs +1 -1
- package/esm2022/filter/animations/slideFromRight.mjs +12 -0
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +396 -0
- package/esm2022/filter/filters.module.mjs +66 -0
- package/esm2022/filter/has-value.pipe.mjs +31 -0
- package/esm2022/filter/index.mjs +2 -0
- package/esm2022/filter/mis-crystal-design-system-filter.mjs +5 -0
- package/esm2022/filter/public_api.mjs +4 -0
- package/esm2022/input/mis-input.component.mjs +1 -1
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +4 -4
- package/esm2022/mobile-filter/mobile-filter.component.mjs +9 -7
- package/esm2022/modal/modal.service.mjs +1 -1
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +26 -14
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +14 -7
- package/esm2022/phone-input/phone-input.component.mjs +6 -50
- package/esm2022/radio-button/radio-button.component.mjs +4 -4
- package/esm2022/ske-loader/ske-loader.component.mjs +4 -4
- package/esm2022/snackbar/snackbar.service.mjs +1 -1
- package/esm2022/specificdatepicker/public_api.mjs +3 -3
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +39 -26
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +1 -1
- package/esm2022/specificdatepicker/utils/index.mjs +1 -1
- package/esm2022/star-rating/star-rating.component.mjs +1 -1
- package/esm2022/table/custom-table-cell.directive.mjs +1 -1
- package/esm2022/table/filter/filter.component.mjs +12 -4
- package/esm2022/table/public_api.mjs +2 -3
- package/esm2022/table/sub-table/sub-table.component.mjs +1 -1
- package/esm2022/table/table.component.mjs +27 -11
- package/esm2022/timepicker/timepicker.component.mjs +16 -12
- package/esm2022/timerangepicker/public_api.mjs +1 -1
- package/esm2022/timerangepicker/timerangepicker.component.mjs +13 -7
- package/esm2022/toast/toast.service.mjs +1 -1
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +10 -9
- package/esm2022/tooltip/tooltip.directive.mjs +9 -3
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +1 -1
- package/esm2022/widgets/classes/async-widget.mjs +1 -1
- package/esm2022/widgets/classes/base-widget.mjs +1 -1
- package/esm2022/widgets/classes/sync-widget.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-action-list.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-analytics.mjs +6 -5
- package/fesm2022/mis-crystal-design-system-analytics.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +100 -48
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-chip.mjs +13 -13
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +282 -76
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +205 -83
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +163 -102
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +598 -216
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-filter.mjs +503 -0
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -0
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-menu.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-menu.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +9 -7
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +26 -14
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +14 -7
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-phone-input.mjs +5 -49
- package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +4 -4
- package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +3 -3
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +39 -26
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +41 -17
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timepicker.mjs +16 -12
- package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs +13 -7
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-tooltip.mjs +18 -11
- package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-utils.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-widgets.mjs.map +1 -1
- package/filter/animations/slideFromRight.d.ts +1 -0
- package/filter/filter-panel/filter-panel.component.d.ts +51 -0
- package/filter/filters.module.d.ts +18 -0
- package/filter/has-value.pipe.d.ts +12 -0
- package/filter/index.d.ts +1 -0
- package/filter/public_api.d.ts +4 -0
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +3 -1
- package/package.json +24 -18
- package/phone-input/phone-input.component.d.ts +6 -15
- package/specificdatepicker/public_api.d.ts +2 -3
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +1 -0
- package/styles/mis-mixins.scss +46 -0
- package/styles/mis-old-icon-styles.scss +498 -0
- package/table/public_api.d.ts +1 -2
- package/timepicker/timepicker.component.d.ts +3 -2
- package/timerangepicker/public_api.d.ts +1 -0
- package/timerangepicker/timerangepicker.component.d.ts +3 -1
- package/tooltip/tooltip-container/tooltip.component.d.ts +2 -1
- package/tooltip/tooltip.directive.d.ts +3 -1
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Pipe, EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i4 from '@angular/forms';
|
|
6
|
+
import { FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i3 from 'mis-crystal-design-system/button';
|
|
8
|
+
import { ButtonModule } from 'mis-crystal-design-system/button';
|
|
9
|
+
import { RadioButtonModule } from 'mis-crystal-design-system/radio-button';
|
|
10
|
+
import * as i7 from 'mis-crystal-design-system/input';
|
|
11
|
+
import { MisInputModule } from 'mis-crystal-design-system/input';
|
|
12
|
+
import * as i10 from 'mis-crystal-design-system/checkbox';
|
|
13
|
+
import { CheckboxModule } from 'mis-crystal-design-system/checkbox';
|
|
14
|
+
import * as i5 from 'mis-crystal-design-system/multi-select-dropdown';
|
|
15
|
+
import { MultiSelectDropdownModule } from 'mis-crystal-design-system/multi-select-dropdown';
|
|
16
|
+
import * as i8 from 'mis-crystal-design-system/datepicker_v2';
|
|
17
|
+
import { DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';
|
|
18
|
+
import * as i9 from 'mis-crystal-design-system/daterangepicker_v2';
|
|
19
|
+
import { DateRangepickerModuleV2 } from 'mis-crystal-design-system/daterangepicker_v2';
|
|
20
|
+
import { trigger, transition, style, animate } from '@angular/animations';
|
|
21
|
+
import * as i6 from 'mis-crystal-design-system/dropdown';
|
|
22
|
+
import { DropdownModule } from 'mis-crystal-design-system/dropdown';
|
|
23
|
+
|
|
24
|
+
const slideFromRight = trigger('slideFromRight', [
|
|
25
|
+
transition(':enter', [
|
|
26
|
+
style({ transform: 'translateX(100%)' }),
|
|
27
|
+
animate('200ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ transform: 'translateX(0)' }))
|
|
28
|
+
]),
|
|
29
|
+
transition(':leave', [
|
|
30
|
+
style({ transform: 'translateX(0)' }),
|
|
31
|
+
animate('200ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ transform: 'translateX(100%)' }))
|
|
32
|
+
])
|
|
33
|
+
]);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* HasValuePipe
|
|
37
|
+
* This pipe is use to check given value should not null or undefined
|
|
38
|
+
* Its also check object, Its hould not be empty
|
|
39
|
+
*/
|
|
40
|
+
class HasValuePipe {
|
|
41
|
+
transform(value) {
|
|
42
|
+
if (Array.isArray(value) && value.length === 0) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
/* This was evaluating dateObject as false*/
|
|
46
|
+
if (value instanceof Date) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
if (typeof value === 'object' && value !== null) {
|
|
50
|
+
return Object.keys(value).length >= 1;
|
|
51
|
+
}
|
|
52
|
+
return value !== null && value !== undefined && value !== '';
|
|
53
|
+
}
|
|
54
|
+
static { this.ɵfac = function HasValuePipe_Factory(t) { return new (t || HasValuePipe)(); }; }
|
|
55
|
+
static { this.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "hasValue", type: HasValuePipe, pure: true }); }
|
|
56
|
+
}
|
|
57
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HasValuePipe, [{
|
|
58
|
+
type: Pipe,
|
|
59
|
+
args: [{
|
|
60
|
+
name: 'hasValue',
|
|
61
|
+
}]
|
|
62
|
+
}], null, null); })();
|
|
63
|
+
|
|
64
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
66
|
+
i0.ɵɵelementContainerStart(0);
|
|
67
|
+
i0.ɵɵelementStart(1, "div", 17)(2, "mis-multi-select-dropdown", 18);
|
|
68
|
+
i0.ɵɵlistener("onChange", function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_3_Template_mis_multi_select_dropdown_onChange_2_listener($event) { i0.ɵɵrestoreView(_r3); const filter_r4 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.handleSelect($event, filter_r4.key, filter_r4)); });
|
|
69
|
+
i0.ɵɵelementEnd()();
|
|
70
|
+
i0.ɵɵelementContainerEnd();
|
|
71
|
+
} if (rf & 2) {
|
|
72
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
73
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
74
|
+
i0.ɵɵadvance(2);
|
|
75
|
+
i0.ɵɵproperty("label", filter_r4.placeholder || "Select")("selectedItems", ctx_r1.filterForm.get(filter_r4.key).value)("data", filter_r4.options)("searchEnabled", true)("showSelectedCount", true)("enableSelectAll", true)("hideApplyButton", false);
|
|
76
|
+
} }
|
|
77
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
79
|
+
i0.ɵɵelementContainerStart(0);
|
|
80
|
+
i0.ɵɵelementStart(1, "div", 17)(2, "mis-dropdown", 19);
|
|
81
|
+
i0.ɵɵlistener("onChange", function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_4_Template_mis_dropdown_onChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const filter_r4 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.handleSelect($event, filter_r4.key, filter_r4)); });
|
|
82
|
+
i0.ɵɵelementEnd()();
|
|
83
|
+
i0.ɵɵelementContainerEnd();
|
|
84
|
+
} if (rf & 2) {
|
|
85
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
86
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
87
|
+
i0.ɵɵadvance(2);
|
|
88
|
+
i0.ɵɵproperty("data", filter_r4.options)("searchEnabled", true)("selectedItem", ctx_r1.filterForm.get(filter_r4.key).value);
|
|
89
|
+
} }
|
|
90
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_5_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
91
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
92
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "mis-checkbox", 23);
|
|
93
|
+
i0.ɵɵlistener("valueChange", function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_5_div_2_Template_mis_checkbox_valueChange_1_listener($event) { const option_r7 = i0.ɵɵrestoreView(_r6).$implicit; const filter_r4 = i0.ɵɵnextContext(3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.handleCheckbox($event, filter_r4.key, option_r7.value, filter_r4)); });
|
|
94
|
+
i0.ɵɵelementEnd();
|
|
95
|
+
i0.ɵɵelementStart(2, "span", 24);
|
|
96
|
+
i0.ɵɵtext(3);
|
|
97
|
+
i0.ɵɵelementEnd()();
|
|
98
|
+
} if (rf & 2) {
|
|
99
|
+
let tmp_9_0;
|
|
100
|
+
const option_r7 = ctx.$implicit;
|
|
101
|
+
const filter_r4 = i0.ɵɵnextContext(3).$implicit;
|
|
102
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
103
|
+
i0.ɵɵadvance();
|
|
104
|
+
i0.ɵɵproperty("type", "Default")("checked", (tmp_9_0 = ctx_r1.filterForm.get(filter_r4.key).value) == null ? null : tmp_9_0.includes(option_r7.value));
|
|
105
|
+
i0.ɵɵadvance(2);
|
|
106
|
+
i0.ɵɵtextInterpolate(option_r7.label);
|
|
107
|
+
} }
|
|
108
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
+
i0.ɵɵelementContainerStart(0);
|
|
110
|
+
i0.ɵɵelementStart(1, "div", 20);
|
|
111
|
+
i0.ɵɵtemplate(2, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_5_div_2_Template, 4, 3, "div", 21);
|
|
112
|
+
i0.ɵɵelementEnd();
|
|
113
|
+
i0.ɵɵelementContainerEnd();
|
|
114
|
+
} if (rf & 2) {
|
|
115
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
116
|
+
i0.ɵɵadvance(2);
|
|
117
|
+
i0.ɵɵproperty("ngForOf", filter_r4.options);
|
|
118
|
+
} }
|
|
119
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
120
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
121
|
+
i0.ɵɵelementContainerStart(0);
|
|
122
|
+
i0.ɵɵtext(1);
|
|
123
|
+
i0.ɵɵelementStart(2, "mis-input", 25)(3, "input", 26);
|
|
124
|
+
i0.ɵɵlistener("dateChange", function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_6_Template_input_dateChange_3_listener($event) { i0.ɵɵrestoreView(_r8); const filter_r4 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onDateChange($event, filter_r4.key, filter_r4)); });
|
|
125
|
+
i0.ɵɵelementEnd()();
|
|
126
|
+
i0.ɵɵelementContainerEnd();
|
|
127
|
+
} if (rf & 2) {
|
|
128
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
129
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
130
|
+
i0.ɵɵadvance();
|
|
131
|
+
i0.ɵɵtextInterpolate1(" ", filter_r4.placeholder, " ");
|
|
132
|
+
i0.ɵɵadvance(2);
|
|
133
|
+
i0.ɵɵproperty("dpConfig", filter_r4.datepickerConfig)("placeholder", ctx_r1.filterForm.get(filter_r4.key).value ? ctx_r1.filterForm.get(filter_r4.key).value : filter_r4.placeholder || "Select")("value", ctx_r1.filterForm.get(filter_r4.key).value ? ctx_r1.filterForm.get(filter_r4.key).value : filter_r4.placeholder || "Select")("selectedDate", ctx_r1.filterForm.get(filter_r4.key).value)("positionX", "end")("offsetX", -10);
|
|
134
|
+
} }
|
|
135
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
136
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
137
|
+
i0.ɵɵelementContainerStart(0);
|
|
138
|
+
i0.ɵɵelementStart(1, "mis-input", 25)(2, "input", 27);
|
|
139
|
+
i0.ɵɵlistener("dateChange", function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_7_Template_input_dateChange_2_listener($event) { i0.ɵɵrestoreView(_r9); const filter_r4 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onDateChange($event, filter_r4.key, filter_r4)); });
|
|
140
|
+
i0.ɵɵelementEnd()();
|
|
141
|
+
i0.ɵɵelementContainerEnd();
|
|
142
|
+
} if (rf & 2) {
|
|
143
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
144
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
145
|
+
i0.ɵɵadvance(2);
|
|
146
|
+
i0.ɵɵproperty("placeholder", !ctx_r1.dateRangeSelectedDates.startDate && !ctx_r1.dateRangeSelectedDates.endDate ? filter_r4.placeholder || "Select" : ctx_r1.dateRangeSelectedDates.startDate + " - " + ctx_r1.dateRangeSelectedDates.endDate)("value", !ctx_r1.dateRangeSelectedDates.startDate && !ctx_r1.dateRangeSelectedDates.endDate ? filter_r4.placeholder || "Select" : ctx_r1.dateRangeSelectedDates.startDate + " - " + ctx_r1.dateRangeSelectedDates.endDate)("positionX", "start")("positionY", "top")("selectedDates", ctx_r1.dateRangeSelectedDates)("dpConfig", filter_r4.dateRangePickerConfig);
|
|
147
|
+
} }
|
|
148
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
149
|
+
i0.ɵɵelementContainerStart(0);
|
|
150
|
+
i0.ɵɵelementStart(1, "mis-input", 25);
|
|
151
|
+
i0.ɵɵelement(2, "input", 28);
|
|
152
|
+
i0.ɵɵelementEnd();
|
|
153
|
+
i0.ɵɵelementContainerEnd();
|
|
154
|
+
} if (rf & 2) {
|
|
155
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
156
|
+
i0.ɵɵadvance(2);
|
|
157
|
+
i0.ɵɵproperty("placeholder", filter_r4.placeholder || "Type here")("formControlName", filter_r4.key);
|
|
158
|
+
} }
|
|
159
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
160
|
+
i0.ɵɵelementContainerStart(0);
|
|
161
|
+
i0.ɵɵelementStart(1, "mis-input", 25);
|
|
162
|
+
i0.ɵɵelement(2, "input", 29);
|
|
163
|
+
i0.ɵɵelementEnd();
|
|
164
|
+
i0.ɵɵelementContainerEnd();
|
|
165
|
+
} if (rf & 2) {
|
|
166
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
167
|
+
i0.ɵɵadvance(2);
|
|
168
|
+
i0.ɵɵproperty("placeholder", filter_r4.placeholder || "Type here")("formControlName", filter_r4.key);
|
|
169
|
+
} }
|
|
170
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
+
i0.ɵɵelementContainerStart(0);
|
|
172
|
+
i0.ɵɵelementStart(1, "div", 30)(2, "div", 31)(3, "span");
|
|
173
|
+
i0.ɵɵtext(4);
|
|
174
|
+
i0.ɵɵelementEnd();
|
|
175
|
+
i0.ɵɵelement(5, "input", 32);
|
|
176
|
+
i0.ɵɵelementEnd();
|
|
177
|
+
i0.ɵɵelementStart(6, "div", 31)(7, "span");
|
|
178
|
+
i0.ɵɵtext(8);
|
|
179
|
+
i0.ɵɵelementEnd();
|
|
180
|
+
i0.ɵɵelement(9, "input", 33);
|
|
181
|
+
i0.ɵɵelementEnd()();
|
|
182
|
+
i0.ɵɵelementContainerEnd();
|
|
183
|
+
} if (rf & 2) {
|
|
184
|
+
let tmp_11_0;
|
|
185
|
+
const filter_r4 = i0.ɵɵnextContext(2).$implicit;
|
|
186
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
187
|
+
i0.ɵɵadvance();
|
|
188
|
+
i0.ɵɵproperty("formGroup", ctx_r1.filterForm.get(filter_r4.key));
|
|
189
|
+
i0.ɵɵadvance(3);
|
|
190
|
+
i0.ɵɵtextInterpolate((filter_r4 == null ? null : filter_r4.options == null ? null : filter_r4.options[0] == null ? null : filter_r4.options[0].label) || "Min");
|
|
191
|
+
i0.ɵɵadvance();
|
|
192
|
+
i0.ɵɵproperty("placeholder", filter_r4.placeholder || "Type here");
|
|
193
|
+
i0.ɵɵadvance(3);
|
|
194
|
+
i0.ɵɵtextInterpolate((filter_r4 == null ? null : filter_r4.options == null ? null : filter_r4.options[1] == null ? null : filter_r4.options[1].label) || "Max");
|
|
195
|
+
i0.ɵɵadvance();
|
|
196
|
+
i0.ɵɵproperty("placeholder", filter_r4.placeholder || "Type here")("min", (ctx_r1.filterForm.get == null ? null : (tmp_11_0 = ctx_r1.filterForm.get(filter_r4.key)) == null ? null : (tmp_11_0 = tmp_11_0.get("min")) == null ? null : tmp_11_0.value) || 0);
|
|
197
|
+
} }
|
|
198
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
199
|
+
i0.ɵɵelement(0, "div", 34);
|
|
200
|
+
} }
|
|
201
|
+
function FilterPanelComponent_div_0_ng_container_9_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
202
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
203
|
+
i0.ɵɵtext(2);
|
|
204
|
+
i0.ɵɵelementEnd();
|
|
205
|
+
i0.ɵɵtemplate(3, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_3_Template, 3, 7, "ng-container", 15)(4, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_4_Template, 3, 3, "ng-container", 15)(5, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_5_Template, 3, 1, "ng-container", 15)(6, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_6_Template, 4, 7, "ng-container", 15)(7, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_7_Template, 3, 6, "ng-container", 15)(8, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_8_Template, 3, 2, "ng-container", 15)(9, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_9_Template, 3, 2, "ng-container", 15)(10, FilterPanelComponent_div_0_ng_container_9_div_1_ng_container_10_Template, 10, 6, "ng-container", 15)(11, FilterPanelComponent_div_0_ng_container_9_div_1_div_11_Template, 1, 0, "div", 16);
|
|
206
|
+
i0.ɵɵelementEnd();
|
|
207
|
+
} if (rf & 2) {
|
|
208
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
209
|
+
const filter_r4 = ctx_r9.$implicit;
|
|
210
|
+
const last_r11 = ctx_r9.last;
|
|
211
|
+
i0.ɵɵadvance(2);
|
|
212
|
+
i0.ɵɵtextInterpolate(filter_r4.title);
|
|
213
|
+
i0.ɵɵadvance();
|
|
214
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "multiSelect");
|
|
215
|
+
i0.ɵɵadvance();
|
|
216
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "select");
|
|
217
|
+
i0.ɵɵadvance();
|
|
218
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "checkbox");
|
|
219
|
+
i0.ɵɵadvance();
|
|
220
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "datePicker");
|
|
221
|
+
i0.ɵɵadvance();
|
|
222
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "dateRangePicker");
|
|
223
|
+
i0.ɵɵadvance();
|
|
224
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "text");
|
|
225
|
+
i0.ɵɵadvance();
|
|
226
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "number");
|
|
227
|
+
i0.ɵɵadvance();
|
|
228
|
+
i0.ɵɵproperty("ngIf", filter_r4.type === "range");
|
|
229
|
+
i0.ɵɵadvance();
|
|
230
|
+
i0.ɵɵproperty("ngIf", !last_r11);
|
|
231
|
+
} }
|
|
232
|
+
function FilterPanelComponent_div_0_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
233
|
+
i0.ɵɵelementContainerStart(0);
|
|
234
|
+
i0.ɵɵtemplate(1, FilterPanelComponent_div_0_ng_container_9_div_1_Template, 12, 10, "div", 12);
|
|
235
|
+
i0.ɵɵelementContainerEnd();
|
|
236
|
+
} if (rf & 2) {
|
|
237
|
+
const filter_r4 = ctx.$implicit;
|
|
238
|
+
i0.ɵɵadvance();
|
|
239
|
+
i0.ɵɵproperty("ngIf", !filter_r4.hidden);
|
|
240
|
+
} }
|
|
241
|
+
function FilterPanelComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
242
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
243
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "span");
|
|
244
|
+
i0.ɵɵtext(3, "Filters");
|
|
245
|
+
i0.ɵɵelementEnd();
|
|
246
|
+
i0.ɵɵnamespaceSVG();
|
|
247
|
+
i0.ɵɵelementStart(4, "svg", 3);
|
|
248
|
+
i0.ɵɵlistener("click", function FilterPanelComponent_div_0_Template_svg_click_4_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closePanel()); });
|
|
249
|
+
i0.ɵɵelementStart(5, "g", 4);
|
|
250
|
+
i0.ɵɵelement(6, "path", 5);
|
|
251
|
+
i0.ɵɵelementEnd()()();
|
|
252
|
+
i0.ɵɵnamespaceHTML();
|
|
253
|
+
i0.ɵɵelement(7, "div", 6);
|
|
254
|
+
i0.ɵɵelementStart(8, "div", 7);
|
|
255
|
+
i0.ɵɵtemplate(9, FilterPanelComponent_div_0_ng_container_9_Template, 2, 1, "ng-container", 8);
|
|
256
|
+
i0.ɵɵelementEnd();
|
|
257
|
+
i0.ɵɵelementStart(10, "div", 9)(11, "mis-button", 10);
|
|
258
|
+
i0.ɵɵlistener("click", function FilterPanelComponent_div_0_Template_mis_button_click_11_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.resetFilters()); });
|
|
259
|
+
i0.ɵɵelementEnd();
|
|
260
|
+
i0.ɵɵelementStart(12, "mis-button", 11);
|
|
261
|
+
i0.ɵɵlistener("click", function FilterPanelComponent_div_0_Template_mis_button_click_12_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.applyFilters()); });
|
|
262
|
+
i0.ɵɵelementEnd()()();
|
|
263
|
+
} if (rf & 2) {
|
|
264
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
265
|
+
i0.ɵɵproperty("@slideFromRight", undefined);
|
|
266
|
+
i0.ɵɵadvance(8);
|
|
267
|
+
i0.ɵɵproperty("formGroup", ctx_r1.filterForm);
|
|
268
|
+
i0.ɵɵadvance();
|
|
269
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.config);
|
|
270
|
+
i0.ɵɵadvance(2);
|
|
271
|
+
i0.ɵɵproperty("name", "Clear All")("size", "Small")("type", "Text");
|
|
272
|
+
i0.ɵɵadvance();
|
|
273
|
+
i0.ɵɵproperty("name", "Apply")("size", "Small")("type", "Solid")("disabled", ctx_r1.filterForm.invalid);
|
|
274
|
+
} }
|
|
275
|
+
class FilterPanelComponent {
|
|
276
|
+
constructor(hasValue) {
|
|
277
|
+
this.hasValue = hasValue;
|
|
278
|
+
this.onClose = new EventEmitter();
|
|
279
|
+
this.onApply = new EventEmitter();
|
|
280
|
+
this.config = [];
|
|
281
|
+
this.filterForm = new FormGroup([]);
|
|
282
|
+
this.dateRangeSelectedDates = {
|
|
283
|
+
startDate: '',
|
|
284
|
+
endDate: '',
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
ngOnInit() {
|
|
288
|
+
this.initializeFormControls();
|
|
289
|
+
}
|
|
290
|
+
ngOnChanges(changes) {
|
|
291
|
+
if (!changes.config?.firstChange) {
|
|
292
|
+
this.handleConfigChange();
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
handleConfigChange() {
|
|
296
|
+
this.config = this.config.filter(filter => !filter.hidden);
|
|
297
|
+
}
|
|
298
|
+
initializeFormControls() {
|
|
299
|
+
this.config.forEach((filter) => {
|
|
300
|
+
let control;
|
|
301
|
+
if (filter.type === 'range') {
|
|
302
|
+
control = new FormGroup({
|
|
303
|
+
min: new FormControl(null),
|
|
304
|
+
max: new FormControl(null),
|
|
305
|
+
}, {
|
|
306
|
+
validators: (group) => {
|
|
307
|
+
const min = group.get('min').value;
|
|
308
|
+
const max = group.get('max').value;
|
|
309
|
+
if (min !== null && max !== null && min > max) {
|
|
310
|
+
return { rangeError: 'Min value should be less than max value' };
|
|
311
|
+
}
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
else if (filter.type === 'multiSelect' || filter.type === 'checkbox') {
|
|
317
|
+
control = new FormControl([]);
|
|
318
|
+
}
|
|
319
|
+
else if (filter.type === 'select') {
|
|
320
|
+
control = new FormControl('');
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
control = new FormControl(null);
|
|
324
|
+
}
|
|
325
|
+
if (this.hasValue.transform(filter.defaultValue)) {
|
|
326
|
+
control.setValue(filter.defaultValue);
|
|
327
|
+
}
|
|
328
|
+
this.filterForm.addControl(filter.key, control);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
closePanel() {
|
|
332
|
+
if (this.lastAppliedData) {
|
|
333
|
+
this.filterForm.setValue(this.lastAppliedData);
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
this.clearFormValues();
|
|
337
|
+
}
|
|
338
|
+
this.onClose.emit();
|
|
339
|
+
}
|
|
340
|
+
updateSelectedShifts() {
|
|
341
|
+
if (this.show) {
|
|
342
|
+
const selectedShifts = [...this.filterForm.get('shiftTime').value];
|
|
343
|
+
const currentShifts = this.config.find((filter) => filter.key === 'shiftTime').options;
|
|
344
|
+
selectedShifts.forEach((shift) => {
|
|
345
|
+
if (!currentShifts.find((currentShift) => currentShift.value === shift.value)) {
|
|
346
|
+
selectedShifts.splice(selectedShifts.indexOf(shift), 1);
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
this.filterForm.get('shiftTime').setValue(selectedShifts);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
filterCount() {
|
|
353
|
+
let count = 0;
|
|
354
|
+
this.config.forEach((filter) => {
|
|
355
|
+
if (this.hasValue.transform(this.filterForm.get(filter.key).value)) {
|
|
356
|
+
if (filter.type === 'range' && this.filterForm.get(filter.key).value.min == null && this.filterForm.get(filter.key).value.max == null) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
count++;
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
return count;
|
|
363
|
+
}
|
|
364
|
+
applyFilters() {
|
|
365
|
+
if (this.filterForm.invalid) {
|
|
366
|
+
this.filterForm.markAllAsTouched();
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
this.lastAppliedData = { ...this.filterForm.value };
|
|
370
|
+
this.onApply.emit({
|
|
371
|
+
filterData: this.filterForm.value,
|
|
372
|
+
filterCount: this.filterCount()
|
|
373
|
+
});
|
|
374
|
+
this.show = false;
|
|
375
|
+
this.closePanel();
|
|
376
|
+
}
|
|
377
|
+
handleSelect(event, filterKey, filter) {
|
|
378
|
+
this.filterForm.get(filterKey).setValue(event);
|
|
379
|
+
if (filter.onChange) {
|
|
380
|
+
filter.onChange(event, this.config);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
onDateChange(event, filterKey, filter) {
|
|
384
|
+
this.filterForm.get(filterKey).setValue(event);
|
|
385
|
+
if (typeof event === 'object') {
|
|
386
|
+
this.dateRangeSelectedDates = {
|
|
387
|
+
startDate: event.startDate,
|
|
388
|
+
endDate: event.endDate,
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
console.log(this.filterForm.get(filterKey).value);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
handleCheckbox(event, filterKey, checkboxValue, filter) {
|
|
396
|
+
if (event.value) {
|
|
397
|
+
this.filterForm.get(filterKey).setValue([...this.filterForm.get(filterKey).value, checkboxValue]);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
const filterValue = this.filterForm.get(filterKey).value;
|
|
401
|
+
this.filterForm.get(filterKey).setValue(filterValue.filter((value) => value !== checkboxValue));
|
|
402
|
+
}
|
|
403
|
+
if (filter.onChange) {
|
|
404
|
+
filter.onChange(event, this.config, this.filterForm.value);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
clearFormValues() {
|
|
408
|
+
const resetValues = {};
|
|
409
|
+
this.config.forEach((filter) => {
|
|
410
|
+
let defaultValue = null;
|
|
411
|
+
if (filter.type === 'multiSelect' || filter.type === 'checkbox') {
|
|
412
|
+
defaultValue = [];
|
|
413
|
+
}
|
|
414
|
+
if (filter.type === 'range') {
|
|
415
|
+
defaultValue = { min: null, max: null };
|
|
416
|
+
}
|
|
417
|
+
resetValues[filter.key] = defaultValue;
|
|
418
|
+
});
|
|
419
|
+
this.filterForm.patchValue(resetValues);
|
|
420
|
+
}
|
|
421
|
+
resetFilters() {
|
|
422
|
+
this.clearFormValues();
|
|
423
|
+
this.applyFilters();
|
|
424
|
+
}
|
|
425
|
+
static { this.ɵfac = function FilterPanelComponent_Factory(t) { return new (t || FilterPanelComponent)(i0.ɵɵdirectiveInject(HasValuePipe)); }; }
|
|
426
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterPanelComponent, selectors: [["mis-filter-panel"]], inputs: { show: "show", config: "config" }, outputs: { onClose: "onClose", onApply: "onApply" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "filter-panel-container", 4, "ngIf"], [1, "filter-panel-container"], [1, "panel-header"], ["width", "25", "height", "25", "viewBox", "0 0 25 25", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", 1, "close-icon", 3, "click"], ["id", "ic-navigation-cancel-24"], ["id", "Union", "fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M8.60468 6.64355C8.09036 6.12923 7.25649 6.12923 6.74218 6.64355C6.22787 7.15786 6.22787 7.99173 6.74218 8.50604L10.4938 12.2576L6.7431 16.0083C6.22879 16.5226 6.22879 17.3564 6.7431 17.8708C7.25742 18.3851 8.09129 18.3851 8.6056 17.8708L12.3562 14.1201L16.1068 17.8707C16.6211 18.385 17.455 18.385 17.9693 17.8707C18.4836 17.3564 18.4836 16.5225 17.9693 16.0082L14.2187 12.2576L17.9702 8.50613C18.4845 7.99181 18.4845 7.15794 17.9702 6.64363C17.4559 6.12932 16.622 6.12932 16.1077 6.64363L12.3562 10.3951L8.60468 6.64355Z", "fill", "#181F33"], [1, "horizontal-divider", "first"], [1, "filters", 3, "formGroup"], [4, "ngFor", "ngForOf"], [1, "actions"], [3, "click", "name", "size", "type"], [3, "click", "name", "size", "type", "disabled"], ["class", "filter", 4, "ngIf"], [1, "filter"], [1, "filter-title"], [4, "ngIf"], ["class", "horizontal-divider", 4, "ngIf"], [1, "multiselect-filter"], ["width", "100%", "height", "44px", 1, "no-padding", 3, "onChange", "label", "selectedItems", "data", "searchEnabled", "showSelectedCount", "enableSelectAll", "hideApplyButton"], ["width", "100%", "height", "44px", 3, "onChange", "data", "searchEnabled", "selectedItem"], [1, "checkbox-row"], ["class", "checkbox-container", 4, "ngFor", "ngForOf"], [1, "checkbox-container"], [3, "valueChange", "type", "checked"], [1, "checkbox-label"], ["type", "rounded"], ["misTzDp", "", "misInput", "", "type", "text", "readonly", "", 1, "mis-input", 3, "dateChange", "dpConfig", "placeholder", "value", "selectedDate", "positionX", "offsetX"], ["misTzDrp", "", "misInput", "", "type", "text", "readonly", "", 1, "mis-input", 3, "dateChange", "placeholder", "value", "positionX", "positionY", "selectedDates", "dpConfig"], ["misInput", "", "type", "text", 1, "input", 3, "placeholder", "formControlName"], ["misInput", "", "type", "number", 1, "input", 3, "placeholder", "formControlName"], [1, "range-container", 3, "formGroup"], [1, "range-inner-container"], ["misInput", "", "type", "number", "formControlName", "min", 1, "input", 3, "placeholder"], ["misInput", "", "type", "number", "formControlName", "max", 1, "input", 3, "placeholder", "min"], [1, "horizontal-divider"]], template: function FilterPanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
427
|
+
i0.ɵɵtemplate(0, FilterPanelComponent_div_0_Template, 13, 10, "div", 0);
|
|
428
|
+
} if (rf & 2) {
|
|
429
|
+
i0.ɵɵproperty("ngIf", ctx.show);
|
|
430
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.ButtonComponent, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.MinValidator, i4.FormGroupDirective, i4.FormControlName, i5.MultiSelectDropdownComponent, i6.DropdownComponent, i7.MisInputComponent, i7.MisInputDirective, i8.TzDatepickerDirective, i9.TzDaterangepickerDirective, i10.CheckboxComponent], styles: [".filter-panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-width:100%;min-width:20rem;position:absolute;right:0;background:#fff;top:0;z-index:999;box-shadow:0 0 5px #000000a6;transition:all .3s ease}.filter-panel-container[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-weight:700;margin:0 1rem;flex-basis:5%}.filter-panel-container[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.25rem}.filter-panel-container[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]{cursor:pointer;border-radius:50%;transform:scale(1.4);padding:.3rem;transition:all .3s ease}.filter-panel-container[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]:hover{background:#f5f5f5}.filter-panel-container[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]:active{background:#e0e0e0}.filter-panel-container[_ngcontent-%COMP%] .mat-divider.horizontal[_ngcontent-%COMP%]{margin:1rem}.filters[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;row-gap:.5rem;overflow:auto;padding:0 1rem}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{display:flex;flex-direction:column}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .filter-title[_ngcontent-%COMP%]{color:#6a737d;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:.25px}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .checkbox-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.8rem 0}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .checkbox-row[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .checkbox-row[_ngcontent-%COMP%] .checkbox-label[_ngcontent-%COMP%]{display:block;width:8rem}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .checkbox-row[_ngcontent-%COMP%] .mat-checkbox-inner-container{width:20px;height:20px}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .checkbox-row[_ngcontent-%COMP%] .mat-checkbox-frame{border-radius:5px}.filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .multiselect-filter[_ngcontent-%COMP%], .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] mis-input[_ngcontent-%COMP%]{padding:.7rem 0}.horizontal-divider[_ngcontent-%COMP%]{display:block;width:100%;height:1px;margin:.5rem 0;background:#e0e0e0}.first[_ngcontent-%COMP%]{margin-top:0}.actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:end;align-items:center;gap:1rem;border-top:1px solid #E0E0E0;flex-basis:4%;padding:.5rem}.actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-weight:700;border-radius:.5rem;width:6rem}.no-padding[_ngcontent-%COMP%] .container{padding:0!important}.range-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.8rem 0}.range-container[_ngcontent-%COMP%] .range-inner-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.range-container[_ngcontent-%COMP%] .range-inner-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:2.2rem;outline:none;border-radius:.375rem;border:1px solid #e0e0e0;width:8rem;padding:0 .5rem}.range-container[_ngcontent-%COMP%] .range-inner-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:.2rem}input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border:1px solid red;background-color:#ffe6e6}"], data: { animation: [slideFromRight] } }); }
|
|
431
|
+
}
|
|
432
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterPanelComponent, [{
|
|
433
|
+
type: Component,
|
|
434
|
+
args: [{ selector: 'mis-filter-panel', animations: [slideFromRight], template: "<div class=\"filter-panel-container\" *ngIf=\"show\" @slideFromRight> \n <div class=\"panel-header\">\n <span>Filters</span>\n <svg class=\"close-icon\" (click)=\"closePanel()\" width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"ic-navigation-cancel-24\">\n <path id=\"Union\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.60468 6.64355C8.09036 6.12923 7.25649 6.12923 6.74218 6.64355C6.22787 7.15786 6.22787 7.99173 6.74218 8.50604L10.4938 12.2576L6.7431 16.0083C6.22879 16.5226 6.22879 17.3564 6.7431 17.8708C7.25742 18.3851 8.09129 18.3851 8.6056 17.8708L12.3562 14.1201L16.1068 17.8707C16.6211 18.385 17.455 18.385 17.9693 17.8707C18.4836 17.3564 18.4836 16.5225 17.9693 16.0082L14.2187 12.2576L17.9702 8.50613C18.4845 7.99181 18.4845 7.15794 17.9702 6.64363C17.4559 6.12932 16.622 6.12932 16.1077 6.64363L12.3562 10.3951L8.60468 6.64355Z\" fill=\"#181F33\"/>\n </g>\n </svg> \n </div>\n \n <div class=\"horizontal-divider first\"></div>\n \n <div class=\"filters\" [formGroup]=\"filterForm\">\n <ng-container *ngFor=\"let filter of config; let last = last\">\n <div class=\"filter\" *ngIf=\"!filter.hidden\">\n <span class=\"filter-title\">{{filter.title}}</span>\n\n <ng-container *ngIf=\"filter.type === 'multiSelect'\">\n <div class=\"multiselect-filter\">\n <mis-multi-select-dropdown class=\"no-padding\" [label]=\"filter.placeholder || 'Select'\" [selectedItems]=\"filterForm.get(filter.key).value\" (onChange)=\"handleSelect($event, filter.key, filter)\" [data]=\"filter.options\" [searchEnabled]=\"true\"\n [showSelectedCount]=\"true\" [enableSelectAll]=\"true\"\n [hideApplyButton]=\"false\" width=\"100%\" height=\"44px\"></mis-multi-select-dropdown>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'select'\">\n <div class=\"multiselect-filter\">\n <mis-dropdown [data]=\"filter.options\" [searchEnabled]=\"true\" width=\"100%\" height=\"44px\"\n (onChange)=\"handleSelect($event, filter.key, filter)\" [selectedItem]=\"filterForm.get(filter.key).value\">\n </mis-dropdown>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"filter.type === 'checkbox'\">\n <div class=\"checkbox-row\">\n <div *ngFor=\"let option of filter.options\" class=\"checkbox-container\">\n <mis-checkbox [type]=\"'Default'\" [checked]=\"filterForm.get(filter.key).value?.includes(option.value)\" (valueChange)=\"handleCheckbox($event, filter.key, option.value, filter)\"></mis-checkbox>\n <span class=\"checkbox-label\">{{option.label}}</span>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'datePicker'\">\n {{filter.placeholder}}\n <mis-input type=\"rounded\">\n <input misTzDp misInput type=\"text\" readonly class=\"mis-input\" [dpConfig]=\"filter.datepickerConfig\" [placeholder]=\"filterForm.get(filter.key).value ? filterForm.get(filter.key).value : (filter.placeholder || 'Select')\" [value]=\"filterForm.get(filter.key).value ? filterForm.get(filter.key).value : (filter.placeholder || 'Select')\" (dateChange)=\"onDateChange($event, filter.key, filter)\" [selectedDate]=\"filterForm.get(filter.key).value\" [positionX]=\"'end'\" [offsetX]=\"-10\">\n </mis-input>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'dateRangePicker'\">\n <mis-input type=\"rounded\">\n <input misTzDrp misInput type=\"text\" class=\"mis-input\" readonly\n [placeholder]=\"(!dateRangeSelectedDates.startDate && !dateRangeSelectedDates.endDate) ? (filter.placeholder || 'Select') : dateRangeSelectedDates.startDate + ' - ' + dateRangeSelectedDates.endDate\"\n [value]=\"(!dateRangeSelectedDates.startDate && !dateRangeSelectedDates.endDate) ? (filter.placeholder || 'Select') : dateRangeSelectedDates.startDate + ' - ' + dateRangeSelectedDates.endDate\" [positionX]=\"'start'\"\n [positionY]=\"'top'\" [selectedDates]=\"dateRangeSelectedDates\" (dateChange)=\"onDateChange($event, filter.key, filter)\"\n [dpConfig]=\"filter.dateRangePickerConfig\" />\n </mis-input> \n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'text'\">\n <mis-input type=\"rounded\">\n <input misInput type=\"text\" class=\"input\" [placeholder]=\"filter.placeholder || 'Type here'\" [formControlName]=\"filter.key\">\n </mis-input>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'number'\">\n <mis-input type=\"rounded\">\n <input misInput type=\"number\" class=\"input\" [placeholder]=\"filter.placeholder || 'Type here'\" [formControlName]=\"filter.key\">\n </mis-input>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'range'\">\n <div class=\"range-container\" [formGroup]=\"filterForm.get(filter.key)\">\n <div class=\"range-inner-container\">\n <span>{{ filter?.options?.[0]?.label || 'Min' }}</span>\n <input \n misInput \n type=\"number\" \n class=\"input\" \n [placeholder]=\"filter.placeholder || 'Type here'\" \n formControlName=\"min\" \n />\n </div>\n <div class=\"range-inner-container\">\n <span>{{ filter?.options?.[1]?.label || 'Max' }}</span>\n <input \n misInput \n type=\"number\" \n class=\"input\" \n [placeholder]=\"filter.placeholder || 'Type here'\" \n formControlName=\"max\"\n [min]=\"filterForm.get?.(filter.key)?.get('min')?.value || 0\"\n />\n </div>\n </div>\n </ng-container>\n \n\n <div class=\"horizontal-divider\" *ngIf=\"!last\"></div>\n </div> \n </ng-container>\n </div>\n\n <div class=\"actions\">\n <mis-button [name]=\"'Clear All'\" [size]=\"'Small'\" [type]=\"'Text'\" (click)=\"resetFilters()\"></mis-button>\n <mis-button [name]=\"'Apply'\" [size]=\"'Small'\" [type]=\"'Solid'\" (click)=\"applyFilters()\" [disabled]=\"filterForm.invalid\"></mis-button>\n </div>\n</div> \n", styles: [".filter-panel-container{display:flex;flex-direction:column;height:100%;max-width:100%;min-width:20rem;position:absolute;right:0;background:#fff;top:0;z-index:999;box-shadow:0 0 5px #000000a6;transition:all .3s ease}.filter-panel-container .panel-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-weight:700;margin:0 1rem;flex-basis:5%}.filter-panel-container .panel-header span{font-size:1.25rem}.filter-panel-container .panel-header .close-icon{cursor:pointer;border-radius:50%;transform:scale(1.4);padding:.3rem;transition:all .3s ease}.filter-panel-container .panel-header .close-icon:hover{background:#f5f5f5}.filter-panel-container .panel-header .close-icon:active{background:#e0e0e0}.filter-panel-container .mat-divider.horizontal{margin:1rem}.filters{display:flex;flex-direction:column;flex:1;row-gap:.5rem;overflow:auto;padding:0 1rem}.filters .filter{display:flex;flex-direction:column}.filters .filter .filter-title{color:#6a737d;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:.25px}.filters .filter .checkbox-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.8rem 0}.filters .filter .checkbox-row .checkbox-container{display:flex;flex-direction:row;align-items:center;gap:.5rem}.filters .filter .checkbox-row .checkbox-label{display:block;width:8rem}.filters .filter .checkbox-row ::ng-deep .mat-checkbox-inner-container{width:20px;height:20px}.filters .filter .checkbox-row ::ng-deep .mat-checkbox-frame{border-radius:5px}.filters .filter .multiselect-filter,.filters .filter mis-input{padding:.7rem 0}.horizontal-divider{display:block;width:100%;height:1px;margin:.5rem 0;background:#e0e0e0}.first{margin-top:0}.actions{display:flex;flex-direction:row;justify-content:end;align-items:center;gap:1rem;border-top:1px solid #E0E0E0;flex-basis:4%;padding:.5rem}.actions button{font-weight:700;border-radius:.5rem;width:6rem}.no-padding ::ng-deep .container{padding:0!important}.range-container{display:flex;justify-content:space-between;padding:.8rem 0}.range-container .range-inner-container{display:flex;flex-direction:column}.range-container .range-inner-container input{height:2.2rem;outline:none;border-radius:.375rem;border:1px solid #e0e0e0;width:8rem;padding:0 .5rem}.range-container .range-inner-container span{margin-bottom:.2rem}input.ng-invalid.ng-touched{border:1px solid red;background-color:#ffe6e6}\n"] }]
|
|
435
|
+
}], () => [{ type: HasValuePipe }], { show: [{
|
|
436
|
+
type: Input
|
|
437
|
+
}], onClose: [{
|
|
438
|
+
type: Output
|
|
439
|
+
}], onApply: [{
|
|
440
|
+
type: Output
|
|
441
|
+
}], config: [{
|
|
442
|
+
type: Input
|
|
443
|
+
}] }); })();
|
|
444
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FilterPanelComponent, { className: "FilterPanelComponent" }); })();
|
|
445
|
+
|
|
446
|
+
class FiltersModule {
|
|
447
|
+
static { this.ɵfac = function FiltersModule_Factory(t) { return new (t || FiltersModule)(); }; }
|
|
448
|
+
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FiltersModule }); }
|
|
449
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
450
|
+
HasValuePipe
|
|
451
|
+
], imports: [CommonModule,
|
|
452
|
+
ButtonModule,
|
|
453
|
+
FormsModule,
|
|
454
|
+
ReactiveFormsModule,
|
|
455
|
+
MultiSelectDropdownModule,
|
|
456
|
+
DropdownModule,
|
|
457
|
+
RadioButtonModule,
|
|
458
|
+
MisInputModule,
|
|
459
|
+
DatepickerModuleV2,
|
|
460
|
+
DateRangepickerModuleV2,
|
|
461
|
+
CheckboxModule] }); }
|
|
462
|
+
}
|
|
463
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FiltersModule, [{
|
|
464
|
+
type: NgModule,
|
|
465
|
+
args: [{
|
|
466
|
+
imports: [
|
|
467
|
+
CommonModule,
|
|
468
|
+
ButtonModule,
|
|
469
|
+
FormsModule,
|
|
470
|
+
ReactiveFormsModule,
|
|
471
|
+
MultiSelectDropdownModule,
|
|
472
|
+
DropdownModule,
|
|
473
|
+
RadioButtonModule,
|
|
474
|
+
MisInputModule,
|
|
475
|
+
DatepickerModuleV2,
|
|
476
|
+
DateRangepickerModuleV2,
|
|
477
|
+
CheckboxModule
|
|
478
|
+
],
|
|
479
|
+
declarations: [FilterPanelComponent, HasValuePipe],
|
|
480
|
+
providers: [
|
|
481
|
+
HasValuePipe
|
|
482
|
+
],
|
|
483
|
+
exports: [FilterPanelComponent]
|
|
484
|
+
}]
|
|
485
|
+
}], null, null); })();
|
|
486
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FiltersModule, { declarations: [FilterPanelComponent, HasValuePipe], imports: [CommonModule,
|
|
487
|
+
ButtonModule,
|
|
488
|
+
FormsModule,
|
|
489
|
+
ReactiveFormsModule,
|
|
490
|
+
MultiSelectDropdownModule,
|
|
491
|
+
DropdownModule,
|
|
492
|
+
RadioButtonModule,
|
|
493
|
+
MisInputModule,
|
|
494
|
+
DatepickerModuleV2,
|
|
495
|
+
DateRangepickerModuleV2,
|
|
496
|
+
CheckboxModule], exports: [FilterPanelComponent] }); })();
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Generated bundle index. Do not edit.
|
|
500
|
+
*/
|
|
501
|
+
|
|
502
|
+
export { FilterPanelComponent, FiltersModule, HasValuePipe };
|
|
503
|
+
//# sourceMappingURL=mis-crystal-design-system-filter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-filter.mjs","sources":["../../../projects/mis-components/filter/animations/slideFromRight.ts","../../../projects/mis-components/filter/has-value.pipe.ts","../../../projects/mis-components/filter/filter-panel/filter-panel.component.html","../../../projects/mis-components/filter/filter-panel/filter-panel.component.ts","../../../projects/mis-components/filter/filters.module.ts","../../../projects/mis-components/filter/mis-crystal-design-system-filter.ts"],"sourcesContent":["import { trigger, style, animate, transition } from '@angular/animations';\n\nexport const slideFromRight = trigger('slideFromRight', [\n transition(':enter', [\n style({ transform: 'translateX(100%)' }),\n animate('200ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ transform: 'translateX(0)' }))\n ]),\n\n transition(':leave', [\n style({ transform: 'translateX(0)' }),\n animate('200ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ transform: 'translateX(100%)' }))\n ])\n]);\n","import { Pipe, PipeTransform } from '@angular/core';\n\n/**\n * HasValuePipe\n * This pipe is use to check given value should not null or undefined \n * Its also check object, Its hould not be empty\n */\n@Pipe({\n name: 'hasValue',\n})\nexport class HasValuePipe implements PipeTransform {\n transform(value: any): any {\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n /* This was evaluating dateObject as false*/\n if (value instanceof Date) {\n return true;\n }\n if (typeof value === 'object' && value !== null) {\n return Object.keys(value).length >= 1;\n }\n return value !== null && value !== undefined && value !== '';\n }\n}\n","<div class=\"filter-panel-container\" *ngIf=\"show\" @slideFromRight> \n <div class=\"panel-header\">\n <span>Filters</span>\n <svg class=\"close-icon\" (click)=\"closePanel()\" width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"ic-navigation-cancel-24\">\n <path id=\"Union\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.60468 6.64355C8.09036 6.12923 7.25649 6.12923 6.74218 6.64355C6.22787 7.15786 6.22787 7.99173 6.74218 8.50604L10.4938 12.2576L6.7431 16.0083C6.22879 16.5226 6.22879 17.3564 6.7431 17.8708C7.25742 18.3851 8.09129 18.3851 8.6056 17.8708L12.3562 14.1201L16.1068 17.8707C16.6211 18.385 17.455 18.385 17.9693 17.8707C18.4836 17.3564 18.4836 16.5225 17.9693 16.0082L14.2187 12.2576L17.9702 8.50613C18.4845 7.99181 18.4845 7.15794 17.9702 6.64363C17.4559 6.12932 16.622 6.12932 16.1077 6.64363L12.3562 10.3951L8.60468 6.64355Z\" fill=\"#181F33\"/>\n </g>\n </svg> \n </div>\n \n <div class=\"horizontal-divider first\"></div>\n \n <div class=\"filters\" [formGroup]=\"filterForm\">\n <ng-container *ngFor=\"let filter of config; let last = last\">\n <div class=\"filter\" *ngIf=\"!filter.hidden\">\n <span class=\"filter-title\">{{filter.title}}</span>\n\n <ng-container *ngIf=\"filter.type === 'multiSelect'\">\n <div class=\"multiselect-filter\">\n <mis-multi-select-dropdown class=\"no-padding\" [label]=\"filter.placeholder || 'Select'\" [selectedItems]=\"filterForm.get(filter.key).value\" (onChange)=\"handleSelect($event, filter.key, filter)\" [data]=\"filter.options\" [searchEnabled]=\"true\"\n [showSelectedCount]=\"true\" [enableSelectAll]=\"true\"\n [hideApplyButton]=\"false\" width=\"100%\" height=\"44px\"></mis-multi-select-dropdown>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'select'\">\n <div class=\"multiselect-filter\">\n <mis-dropdown [data]=\"filter.options\" [searchEnabled]=\"true\" width=\"100%\" height=\"44px\"\n (onChange)=\"handleSelect($event, filter.key, filter)\" [selectedItem]=\"filterForm.get(filter.key).value\">\n </mis-dropdown>\n </div>\n </ng-container>\n \n <ng-container *ngIf=\"filter.type === 'checkbox'\">\n <div class=\"checkbox-row\">\n <div *ngFor=\"let option of filter.options\" class=\"checkbox-container\">\n <mis-checkbox [type]=\"'Default'\" [checked]=\"filterForm.get(filter.key).value?.includes(option.value)\" (valueChange)=\"handleCheckbox($event, filter.key, option.value, filter)\"></mis-checkbox>\n <span class=\"checkbox-label\">{{option.label}}</span>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'datePicker'\">\n {{filter.placeholder}}\n <mis-input type=\"rounded\">\n <input misTzDp misInput type=\"text\" readonly class=\"mis-input\" [dpConfig]=\"filter.datepickerConfig\" [placeholder]=\"filterForm.get(filter.key).value ? filterForm.get(filter.key).value : (filter.placeholder || 'Select')\" [value]=\"filterForm.get(filter.key).value ? filterForm.get(filter.key).value : (filter.placeholder || 'Select')\" (dateChange)=\"onDateChange($event, filter.key, filter)\" [selectedDate]=\"filterForm.get(filter.key).value\" [positionX]=\"'end'\" [offsetX]=\"-10\">\n </mis-input>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'dateRangePicker'\">\n <mis-input type=\"rounded\">\n <input misTzDrp misInput type=\"text\" class=\"mis-input\" readonly\n [placeholder]=\"(!dateRangeSelectedDates.startDate && !dateRangeSelectedDates.endDate) ? (filter.placeholder || 'Select') : dateRangeSelectedDates.startDate + ' - ' + dateRangeSelectedDates.endDate\"\n [value]=\"(!dateRangeSelectedDates.startDate && !dateRangeSelectedDates.endDate) ? (filter.placeholder || 'Select') : dateRangeSelectedDates.startDate + ' - ' + dateRangeSelectedDates.endDate\" [positionX]=\"'start'\"\n [positionY]=\"'top'\" [selectedDates]=\"dateRangeSelectedDates\" (dateChange)=\"onDateChange($event, filter.key, filter)\"\n [dpConfig]=\"filter.dateRangePickerConfig\" />\n </mis-input> \n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'text'\">\n <mis-input type=\"rounded\">\n <input misInput type=\"text\" class=\"input\" [placeholder]=\"filter.placeholder || 'Type here'\" [formControlName]=\"filter.key\">\n </mis-input>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'number'\">\n <mis-input type=\"rounded\">\n <input misInput type=\"number\" class=\"input\" [placeholder]=\"filter.placeholder || 'Type here'\" [formControlName]=\"filter.key\">\n </mis-input>\n </ng-container>\n\n <ng-container *ngIf=\"filter.type === 'range'\">\n <div class=\"range-container\" [formGroup]=\"filterForm.get(filter.key)\">\n <div class=\"range-inner-container\">\n <span>{{ filter?.options?.[0]?.label || 'Min' }}</span>\n <input \n misInput \n type=\"number\" \n class=\"input\" \n [placeholder]=\"filter.placeholder || 'Type here'\" \n formControlName=\"min\" \n />\n </div>\n <div class=\"range-inner-container\">\n <span>{{ filter?.options?.[1]?.label || 'Max' }}</span>\n <input \n misInput \n type=\"number\" \n class=\"input\" \n [placeholder]=\"filter.placeholder || 'Type here'\" \n formControlName=\"max\"\n [min]=\"filterForm.get?.(filter.key)?.get('min')?.value || 0\"\n />\n </div>\n </div>\n </ng-container>\n \n\n <div class=\"horizontal-divider\" *ngIf=\"!last\"></div>\n </div> \n </ng-container>\n </div>\n\n <div class=\"actions\">\n <mis-button [name]=\"'Clear All'\" [size]=\"'Small'\" [type]=\"'Text'\" (click)=\"resetFilters()\"></mis-button>\n <mis-button [name]=\"'Apply'\" [size]=\"'Small'\" [type]=\"'Solid'\" (click)=\"applyFilters()\" [disabled]=\"filterForm.invalid\"></mis-button>\n </div>\n</div> \n","import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';\nimport { slideFromRight } from '../animations/slideFromRight';\nimport { FormControl, FormGroup } from '@angular/forms';\nimport { IDatePickerConfig } from 'mis-crystal-design-system/datepicker_v2';\nimport { IRSelectedDatesConfig } from 'mis-crystal-design-system/specificdatepicker';\nimport { IDatePickerConfig as IDateRangePickerConfig } from \"mis-crystal-design-system/daterangepicker_v2\";\nimport { HasValuePipe } from '../has-value.pipe';\n\n\nexport interface FilterPanelConfig {\n key: string;\n title: string;\n type: 'multiSelect' | 'select' | 'datePicker' | 'dateRangePicker' | 'checkbox' | 'radio' | 'text' | 'number' | 'range';\n options?: Array<{\n label: string;\n value: string;\n data?: any[];\n }>;\n placeholder?: string;\n hidden?: boolean;\n datePickerConfig?: IDatePickerConfig;\n dateRangePickerConfig?: IDateRangePickerConfig;\n onChange?: (event: any, config?: FilterPanelConfig[], formValue?: any) => void;\n defaultValue?: any;\n}\n\n@Component({\n selector: 'mis-filter-panel',\n templateUrl: './filter-panel.component.html',\n styleUrls: ['./filter-panel.component.scss'],\n animations: [slideFromRight]\n})\n\n\n\nexport class FilterPanelComponent implements OnInit, OnChanges {\n constructor(private hasValue: HasValuePipe){}\n @Input() show: boolean;\n @Output() onClose = new EventEmitter();\n @Output() onApply = new EventEmitter();\n @Input() config: FilterPanelConfig[] = [];\n filterForm: FormGroup = new FormGroup([]);\n lastAppliedData: any;\n\n rangeMin: number;\n rangeMax: number;\n\n dateRangeSelectedDates: IRSelectedDatesConfig = {\n startDate: '',\n endDate: '',\n };\n\n ngOnInit() {\n this.initializeFormControls();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if(!changes.config?.firstChange){\n this.handleConfigChange();\n }\n }\n\n handleConfigChange(){\n this.config = this.config.filter(filter => !filter.hidden);\n }\n\n initializeFormControls() {\n this.config.forEach((filter: FilterPanelConfig) => {\n let control: any;\n if (filter.type === 'range') {\n control = new FormGroup({\n min: new FormControl(null),\n max: new FormControl(null),\n }, {\n validators: (group: FormGroup) => {\n const min = group.get('min').value;\n const max = group.get('max').value;\n if (min !== null && max !== null && min > max) {\n return { rangeError: 'Min value should be less than max value' };\n }\n return null;\n }\n });\n } else if (filter.type === 'multiSelect' || filter.type === 'checkbox') {\n control = new FormControl([]);\n } else if (filter.type === 'select') {\n control = new FormControl('');\n } else {\n control = new FormControl(null);\n }\n if(this.hasValue.transform(filter.defaultValue)){\n control.setValue(filter.defaultValue);\n }\n this.filterForm.addControl(filter.key, control);\n });\n }\n\n closePanel(){\n if(this.lastAppliedData){\n this.filterForm.setValue(this.lastAppliedData);\n } else {\n this.clearFormValues();\n }\n this.onClose.emit();\n }\n\n updateSelectedShifts(){\n if(this.show){\n const selectedShifts = [...this.filterForm.get('shiftTime').value];\n const currentShifts = this.config.find((filter: FilterPanelConfig) => filter.key === 'shiftTime').options;\n\n selectedShifts.forEach((shift: any) => {\n if(!currentShifts.find((currentShift: any) => currentShift.value === shift.value)){\n selectedShifts.splice(selectedShifts.indexOf(shift), 1);\n }\n });\n\n this.filterForm.get('shiftTime').setValue(selectedShifts);\n }\n }\n\n filterCount(){\n let count = 0;\n this.config.forEach((filter: FilterPanelConfig) => {\n if(this.hasValue.transform(this.filterForm.get(filter.key).value)){\n if(filter.type === 'range' && this.filterForm.get(filter.key).value.min == null && this.filterForm.get(filter.key).value.max == null){\n return;\n }\n count++;\n }\n });\n return count;\n }\n\n applyFilters(){\n if (this.filterForm.invalid) {\n this.filterForm.markAllAsTouched();\n return;\n }\n \n this.lastAppliedData = {...this.filterForm.value};\n this.onApply.emit({\n filterData: this.filterForm.value,\n filterCount: this.filterCount()\n });\n this.show = false;\n this.closePanel();\n }\n\n handleSelect(event: any, filterKey: string, filter: FilterPanelConfig){\n this.filterForm.get(filterKey).setValue(event);\n if(filter.onChange){\n filter.onChange(event, this.config);\n }\n }\n\n onDateChange(event: any, filterKey: string, filter: FilterPanelConfig){\n this.filterForm.get(filterKey).setValue(event);\n if(typeof event === 'object'){\n this.dateRangeSelectedDates = {\n startDate: event.startDate,\n endDate: event.endDate,\n };\n } else {\n console.log(this.filterForm.get(filterKey).value); \n }\n }\n\n handleCheckbox(event: any, filterKey: string, checkboxValue: string, filter: FilterPanelConfig){\n if(event.value){\n this.filterForm.get(filterKey).setValue([...this.filterForm.get(filterKey).value, checkboxValue]);\n } else {\n const filterValue = this.filterForm.get(filterKey).value;\n this.filterForm.get(filterKey).setValue(filterValue.filter((value: string) => value !== checkboxValue));\n }\n if(filter.onChange){\n filter.onChange(event, this.config, this.filterForm.value);\n }\n }\n\n clearFormValues(){\n const resetValues: any = {};\n this.config.forEach((filter: FilterPanelConfig) => {\n let defaultValue: any = null;\n if (filter.type === 'multiSelect' || filter.type === 'checkbox') {\n defaultValue = [];\n }\n if(filter.type === 'range'){\n defaultValue = { min: null, max: null };\n }\n resetValues[filter.key] = defaultValue;\n });\n this.filterForm.patchValue(resetValues);\n }\n\n resetFilters() {\n this.clearFormValues();\n this.applyFilters();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { ButtonModule } from 'mis-crystal-design-system/button';\nimport { RadioButtonModule } from 'mis-crystal-design-system/radio-button';\nimport { MisInputModule } from \"mis-crystal-design-system/input\";\nimport { CheckboxModule } from 'mis-crystal-design-system/checkbox';\nimport { MultiSelectDropdownModule } from 'mis-crystal-design-system/multi-select-dropdown';\nimport { DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';\nimport { DateRangepickerModuleV2 } from 'mis-crystal-design-system/daterangepicker_v2';\nimport { FilterPanelComponent } from './filter-panel/filter-panel.component';\nimport { HasValuePipe } from './has-value.pipe';\nimport { DropdownModule } from 'mis-crystal-design-system/dropdown';\n\n@NgModule({\n imports: [\n CommonModule,\n ButtonModule,\n FormsModule,\n ReactiveFormsModule,\n MultiSelectDropdownModule,\n DropdownModule,\n RadioButtonModule,\n MisInputModule,\n DatepickerModuleV2,\n DateRangepickerModuleV2,\n CheckboxModule\n ],\n declarations: [FilterPanelComponent, HasValuePipe],\n providers: [\n HasValuePipe\n ],\n exports: [FilterPanelComponent]\n})\nexport class FiltersModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.HasValuePipe"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,cAAc,GAAG,OAAO,CAAC,gBAAgB,EAAE;IACpD,UAAU,CAAC,QAAQ,EAAE;AACjB,QAAA,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;QACxC,OAAO,CAAC,sCAAsC,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;KACxF,CAAC;IAEF,UAAU,CAAC,QAAQ,EAAE;AACjB,QAAA,KAAK,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;QACrC,OAAO,CAAC,sCAAsC,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;KAC3F;AACJ,CAAA,CAAC;;ACVF;;;;AAIG;MAIU,YAAY,CAAA;AACvB,IAAA,SAAS,CAAC,KAAU,EAAA;AAClB,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AAC9C,YAAA,OAAO,KAAK;AACb;;QAED,IAAI,KAAK,YAAY,IAAI,EAAE;AACzB,YAAA,OAAO,IAAI;AACZ;QACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;YAC/C,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC;AACtC;QACD,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SA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