monkey-front-components 0.0.412 → 0.0.413
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/lib/components/base/base-component.mjs +324 -324
- package/esm2020/lib/components/base/base-dynamic-array.mjs +221 -221
- package/esm2020/lib/components/base/base-dynamic.mjs +102 -102
- package/esm2020/lib/components/base/base-scroll-component.mjs +55 -55
- package/esm2020/lib/components/base/base-validators.mjs +18 -18
- package/esm2020/lib/components/base/index.mjs +5 -5
- package/esm2020/lib/components/dynamic/button/button.component.mjs +52 -52
- package/esm2020/lib/components/dynamic/button/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/dynamic-directive.mjs +95 -95
- package/esm2020/lib/components/dynamic/dynamic.module.mjs +84 -84
- package/esm2020/lib/components/dynamic/file-upload/file-upload.component.mjs +53 -53
- package/esm2020/lib/components/dynamic/file-upload/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/form/dynamic-form-array.component.mjs +72 -72
- package/esm2020/lib/components/dynamic/form/dynamic-form.component.mjs +46 -46
- package/esm2020/lib/components/dynamic/form/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/index.mjs +8 -8
- package/esm2020/lib/components/dynamic/input/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/input/input.component.mjs +65 -65
- package/esm2020/lib/components/dynamic/input-phone/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/input-phone/input-phone.component.mjs +65 -65
- package/esm2020/lib/components/dynamic/radio/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/radio/radio.component.mjs +33 -33
- package/esm2020/lib/components/dynamic/select/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/select/select.component.mjs +80 -80
- package/esm2020/lib/components/dynamic/select-search/index.mjs +1 -1
- package/esm2020/lib/components/dynamic/select-search/select-search.component.mjs +86 -86
- package/esm2020/lib/components/index.mjs +3 -3
- package/esm2020/lib/components/shared/filter/filter.component.mjs +119 -119
- package/esm2020/lib/components/shared/filter/filter.module.mjs +63 -63
- package/esm2020/lib/components/shared/filter/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/menu/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/menu/menu.component.mjs +120 -120
- package/esm2020/lib/components/shared/filter/menu/menu.module.mjs +70 -70
- package/esm2020/lib/components/shared/filter/options/children/children.component.mjs +50 -50
- package/esm2020/lib/components/shared/filter/options/children/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/options/currency/currency.component.mjs +46 -46
- package/esm2020/lib/components/shared/filter/options/currency/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/options/date-range/date-range.component.mjs +65 -65
- package/esm2020/lib/components/shared/filter/options/date-range/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/options/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/options/input/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/options/input/input.component.mjs +46 -46
- package/esm2020/lib/components/shared/filter/options/options.component.mjs +68 -68
- package/esm2020/lib/components/shared/filter/options/options.module.mjs +95 -95
- package/esm2020/lib/components/shared/filter/options/status/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/options/status/status.component.mjs +66 -66
- package/esm2020/lib/components/shared/filter/selected/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/children/children.component.mjs +57 -57
- package/esm2020/lib/components/shared/filter/selected/item/children/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/currency/currency.component.mjs +29 -29
- package/esm2020/lib/components/shared/filter/selected/item/currency/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/date-range/date-range.component.mjs +42 -42
- package/esm2020/lib/components/shared/filter/selected/item/date-range/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.mjs +33 -33
- package/esm2020/lib/components/shared/filter/selected/item/date-with-action/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/index.mjs +7 -7
- package/esm2020/lib/components/shared/filter/selected/item/input/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/input/input.component.mjs +28 -28
- package/esm2020/lib/components/shared/filter/selected/item/item.component.mjs +74 -74
- package/esm2020/lib/components/shared/filter/selected/item/status/index.mjs +1 -1
- package/esm2020/lib/components/shared/filter/selected/item/status/status.component.mjs +39 -39
- package/esm2020/lib/components/shared/filter/selected/selected.component.mjs +80 -80
- package/esm2020/lib/components/shared/filter/selected/selected.module.mjs +90 -90
- package/esm2020/lib/components/shared/index.mjs +4 -4
- package/esm2020/lib/components/shared/password-strength/index.mjs +2 -2
- package/esm2020/lib/components/shared/password-strength/password-strength.component.mjs +85 -85
- package/esm2020/lib/components/shared/password-strength/password-strength.mjs +1 -1
- package/esm2020/lib/components/shared/password-strength/password-strength.module.mjs +50 -50
- package/esm2020/lib/components/shared/products/filter/filter.component.mjs +36 -36
- package/esm2020/lib/components/shared/products/index.mjs +2 -2
- package/esm2020/lib/components/shared/products/products.component.mjs +91 -91
- package/esm2020/lib/components/shared/products/products.module.mjs +22 -22
- package/esm2020/lib/components/shared/products/providers/index.mjs +1 -1
- package/esm2020/lib/components/shared/products/providers/products.model.mjs +37 -37
- package/esm2020/lib/components/shared/progress-bar/index.mjs +3 -3
- package/esm2020/lib/components/shared/progress-bar/progress-bar.component.mjs +28 -28
- package/esm2020/lib/components/shared/progress-bar/progress-bar.module.mjs +18 -18
- package/esm2020/lib/components/shared/progress-bar/progress-bar.service.mjs +49 -49
- package/esm2020/lib/interfaces/field-config.mjs +1 -1
- package/esm2020/lib/interfaces/index.mjs +1 -1
- package/esm2020/monkey-front-components.mjs +4 -4
- package/esm2020/public-api.mjs +4 -4
- package/fesm2015/monkey-front-components.mjs +2776 -2776
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +2758 -2758
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/lib/components/base/base-component.d.ts +52 -52
- package/lib/components/base/base-dynamic-array.d.ts +34 -34
- package/lib/components/base/base-dynamic.d.ts +25 -25
- package/lib/components/base/base-scroll-component.d.ts +16 -16
- package/lib/components/base/base-validators.d.ts +1 -1
- package/lib/components/base/index.d.ts +5 -5
- package/lib/components/dynamic/button/button.component.d.ts +17 -17
- package/lib/components/dynamic/button/index.d.ts +1 -1
- package/lib/components/dynamic/dynamic-directive.d.ts +22 -22
- package/lib/components/dynamic/dynamic.module.d.ts +20 -20
- package/lib/components/dynamic/file-upload/file-upload.component.d.ts +17 -17
- package/lib/components/dynamic/file-upload/index.d.ts +1 -1
- package/lib/components/dynamic/form/dynamic-form-array.component.d.ts +16 -16
- package/lib/components/dynamic/form/dynamic-form.component.d.ts +14 -14
- package/lib/components/dynamic/form/index.d.ts +2 -2
- package/lib/components/dynamic/index.d.ts +8 -8
- package/lib/components/dynamic/input/index.d.ts +1 -1
- package/lib/components/dynamic/input/input.component.d.ts +20 -20
- package/lib/components/dynamic/input-phone/index.d.ts +1 -1
- package/lib/components/dynamic/input-phone/input-phone.component.d.ts +20 -20
- package/lib/components/dynamic/radio/index.d.ts +1 -1
- package/lib/components/dynamic/radio/radio.component.d.ts +11 -11
- package/lib/components/dynamic/select/index.d.ts +1 -1
- package/lib/components/dynamic/select/select.component.d.ts +16 -16
- package/lib/components/dynamic/select-search/index.d.ts +1 -1
- package/lib/components/dynamic/select-search/select-search.component.d.ts +18 -18
- package/lib/components/index.d.ts +3 -3
- package/lib/components/shared/filter/filter.component.d.ts +32 -32
- package/lib/components/shared/filter/filter.module.d.ts +14 -14
- package/lib/components/shared/filter/index.d.ts +2 -2
- package/lib/components/shared/filter/menu/index.d.ts +1 -1
- package/lib/components/shared/filter/menu/menu.component.d.ts +24 -24
- package/lib/components/shared/filter/menu/menu.module.d.ts +14 -14
- package/lib/components/shared/filter/options/children/children.component.d.ts +17 -17
- package/lib/components/shared/filter/options/children/index.d.ts +1 -1
- package/lib/components/shared/filter/options/currency/currency.component.d.ts +17 -17
- package/lib/components/shared/filter/options/currency/index.d.ts +1 -1
- package/lib/components/shared/filter/options/date-range/date-range.component.d.ts +24 -24
- package/lib/components/shared/filter/options/date-range/index.d.ts +1 -1
- package/lib/components/shared/filter/options/index.d.ts +1 -1
- package/lib/components/shared/filter/options/input/index.d.ts +1 -1
- package/lib/components/shared/filter/options/input/input.component.d.ts +17 -17
- package/lib/components/shared/filter/options/options.component.d.ts +20 -20
- package/lib/components/shared/filter/options/options.module.d.ts +18 -18
- package/lib/components/shared/filter/options/status/index.d.ts +1 -1
- package/lib/components/shared/filter/options/status/status.component.d.ts +19 -19
- package/lib/components/shared/filter/selected/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/children/children.component.d.ts +16 -16
- package/lib/components/shared/filter/selected/item/children/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/currency/currency.component.d.ts +11 -11
- package/lib/components/shared/filter/selected/item/currency/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/date-range/date-range.component.d.ts +12 -12
- package/lib/components/shared/filter/selected/item/date-range/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.d.ts +11 -11
- package/lib/components/shared/filter/selected/item/date-with-action/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/index.d.ts +7 -7
- package/lib/components/shared/filter/selected/item/input/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/input/input.component.d.ts +11 -11
- package/lib/components/shared/filter/selected/item/item.component.d.ts +20 -20
- package/lib/components/shared/filter/selected/item/status/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/status/status.component.d.ts +13 -13
- package/lib/components/shared/filter/selected/selected.component.d.ts +18 -18
- package/lib/components/shared/filter/selected/selected.module.d.ts +21 -21
- package/lib/components/shared/index.d.ts +4 -4
- package/lib/components/shared/password-strength/index.d.ts +2 -2
- package/lib/components/shared/password-strength/password-strength.component.d.ts +23 -23
- package/lib/components/shared/password-strength/password-strength.d.ts +5 -5
- package/lib/components/shared/password-strength/password-strength.module.d.ts +12 -12
- package/lib/components/shared/products/filter/filter.component.d.ts +12 -12
- package/lib/components/shared/products/index.d.ts +2 -2
- package/lib/components/shared/products/products.component.d.ts +20 -20
- package/lib/components/shared/products/products.module.d.ts +11 -11
- package/lib/components/shared/products/providers/index.d.ts +1 -1
- package/lib/components/shared/products/providers/products.model.d.ts +13 -13
- package/lib/components/shared/progress-bar/index.d.ts +3 -3
- package/lib/components/shared/progress-bar/progress-bar.component.d.ts +12 -12
- package/lib/components/shared/progress-bar/progress-bar.module.d.ts +8 -8
- package/lib/components/shared/progress-bar/progress-bar.service.d.ts +14 -14
- package/lib/interfaces/field-config.d.ts +54 -54
- package/lib/interfaces/index.d.ts +1 -1
- package/monkey-front-components-0.0.413.tgz +0 -0
- package/monkey-front-components.d.ts +5 -5
- package/package.json +5 -5
- package/public-api.d.ts +1 -1
- package/monkey-front-components-0.0.412.tgz +0 -0
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./children/children.component";
|
|
4
|
-
import * as i2 from "./currency/currency.component";
|
|
5
|
-
import * as i3 from "./input/input.component";
|
|
6
|
-
import * as i4 from "./date-range/date-range.component";
|
|
7
|
-
import * as i5 from "./status/status.component";
|
|
8
|
-
import * as i6 from "monkey-style-guide";
|
|
9
|
-
import * as i7 from "../../options/options.component";
|
|
10
|
-
import * as i8 from "@angular/common";
|
|
11
|
-
import * as i9 from "monkey-front-core";
|
|
12
|
-
import * as i10 from "@ngx-translate/core";
|
|
13
|
-
export class MECXFilterSelectedItemComponent {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.onClose = new EventEmitter();
|
|
16
|
-
this.onSubmit = new EventEmitter();
|
|
17
|
-
this._option = null;
|
|
18
|
-
this._showMenu = false;
|
|
19
|
-
this._actionElement = null;
|
|
20
|
-
this.closeMenu = () => {
|
|
21
|
-
this._showMenu = false;
|
|
22
|
-
};
|
|
23
|
-
// not to do
|
|
24
|
-
}
|
|
25
|
-
set option(value) {
|
|
26
|
-
this._option = value;
|
|
27
|
-
}
|
|
28
|
-
onHandleShowMenu() {
|
|
29
|
-
const { _option } = this;
|
|
30
|
-
this._actionElement = document.getElementById(`mecx-filter-selected-item-${_option?.field}`);
|
|
31
|
-
setTimeout(() => {
|
|
32
|
-
this._showMenu = true;
|
|
33
|
-
}, 0);
|
|
34
|
-
}
|
|
35
|
-
onHandleClose() {
|
|
36
|
-
this._showMenu = false;
|
|
37
|
-
this.onClose.next();
|
|
38
|
-
}
|
|
39
|
-
onHandleSubmit(event) {
|
|
40
|
-
this.onSubmit.next(event);
|
|
41
|
-
}
|
|
42
|
-
onHandleRemove() {
|
|
43
|
-
const { _option } = this;
|
|
44
|
-
const { field } = _option;
|
|
45
|
-
this.onSubmit.next({ [field]: null });
|
|
46
|
-
}
|
|
47
|
-
onHandleShowFromChildren(event) {
|
|
48
|
-
const { _option } = this;
|
|
49
|
-
const { label } = _option;
|
|
50
|
-
this.onHandleShowMenu();
|
|
51
|
-
this.onHandleSubmit = (event) => {
|
|
52
|
-
this.onSubmit.next({
|
|
53
|
-
[_option.field]: JSON.stringify(event)
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
this._option = {
|
|
57
|
-
...event,
|
|
58
|
-
label
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
MECXFilterSelectedItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
63
|
-
MECXFilterSelectedItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
65
|
-
type: Component,
|
|
66
|
-
args: [{ selector: 'mecx-filter-selected-item', template: "<ng-container *ngIf=\"_option?.type as type\">\n <ng-container *ngIf=\"_option?.children; else withoutChildren\">\n <mecx-filter-selected-item-children [option]=\"_option\" (onShow)=\"onHandleShowMenu()\"\n (onRemove)=\"onHandleRemove()\">\n </mecx-filter-selected-item-children>\n </ng-container>\n <ng-template #withoutChildren>\n <div class=\"box\">\n <div class=\"data\">\n {{ _option.label | translate }}\n </div>\n <div class=\"value\" [id]=\"'mecx-filter-selected-item-'+_option?.field\"\n (click)=\"onHandleShowMenu()\">\n <ng-container [ngSwitch]=\"type\">\n <mecx-filter-selected-item-currency *ngSwitchCase=\"'currency'\" [option]=\"_option\">\n </mecx-filter-selected-item-currency>\n <mecx-filter-selected-item-input *ngSwitchCase=\"'input'\" [option]=\"_option\">\n </mecx-filter-selected-item-input>\n <mecx-filter-selected-item-date-range *ngSwitchCase=\"'date-range'\" [option]=\"_option\">\n </mecx-filter-selected-item-date-range>\n <mecx-filter-selected-item-status *ngSwitchCase=\"'status'\" [option]=\"_option\"\n [labelMoreValues]=\"'FIELD.AND-MORE' | translate\">\n </mecx-filter-selected-item-status>\n </ng-container>\n </div>\n <div class=\"action\" (click)=\"onHandleShowMenu()\">\n <monkey-icon icon=\"arrow-right-14\" color=\"#4B4A53\"></monkey-icon>\n </div>\n </div>\n </ng-template>\n</ng-container>\n<ng-container\n *monkeyecxPopover=\"_showMenu; target: $any(_actionElement); closed: closeMenu; dir: 'ltr'\">\n <mecx-filter-options [option]=\"_option\" (onClose)=\"onHandleClose()\"\n (onRemove)=\"onHandleRemove()\" (onSubmit)=\"onHandleSubmit($event)\"\n (onShowFromChildren)=\"onHandleShowFromChildren($event)\">\n </mecx-filter-options>\n</ng-container>", styles: [":host{display:flex}:host .box{display:flex;justify-content:space-between;align-items:center;background:#ffffff;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:120px;height:40px}:host .box .data{display:flex;align-items:center;padding:12px 8px;height:100%;font-style:normal;font-weight:400;font-size:14px;line-height:24px;text-align:center;color:#72717e}:host .box .value{cursor:pointer;display:flex;align-items:center;padding:12px 8px;height:100%;font-style:normal;font-weight:400;font-size:14px;line-height:24px;text-align:center;color:#72717e;background-color:#6d6d6d0a}:host .box .value:hover{background-color:#6d6d6d0c;font-weight:400;text-decoration:underline}:host .box .action{cursor:pointer;border-left:1px solid #d6d6d6;padding:8px;color:#908e9d;font-weight:500;font-size:18px;height:40px;align-items:center;display:flex}:host .box .action:hover{background-color:#6d6d6d0c;border-top-right-radius:120px;border-bottom-right-radius:120px}mecx-filter-options{margin:4px 0}\n"] }]
|
|
67
|
-
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], onClose: [{
|
|
70
|
-
type: Output
|
|
71
|
-
}], onSubmit: [{
|
|
72
|
-
type: Output
|
|
73
|
-
}] } });
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./children/children.component";
|
|
4
|
+
import * as i2 from "./currency/currency.component";
|
|
5
|
+
import * as i3 from "./input/input.component";
|
|
6
|
+
import * as i4 from "./date-range/date-range.component";
|
|
7
|
+
import * as i5 from "./status/status.component";
|
|
8
|
+
import * as i6 from "monkey-style-guide";
|
|
9
|
+
import * as i7 from "../../options/options.component";
|
|
10
|
+
import * as i8 from "@angular/common";
|
|
11
|
+
import * as i9 from "monkey-front-core";
|
|
12
|
+
import * as i10 from "@ngx-translate/core";
|
|
13
|
+
export class MECXFilterSelectedItemComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.onClose = new EventEmitter();
|
|
16
|
+
this.onSubmit = new EventEmitter();
|
|
17
|
+
this._option = null;
|
|
18
|
+
this._showMenu = false;
|
|
19
|
+
this._actionElement = null;
|
|
20
|
+
this.closeMenu = () => {
|
|
21
|
+
this._showMenu = false;
|
|
22
|
+
};
|
|
23
|
+
// not to do
|
|
24
|
+
}
|
|
25
|
+
set option(value) {
|
|
26
|
+
this._option = value;
|
|
27
|
+
}
|
|
28
|
+
onHandleShowMenu() {
|
|
29
|
+
const { _option } = this;
|
|
30
|
+
this._actionElement = document.getElementById(`mecx-filter-selected-item-${_option?.field}`);
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
this._showMenu = true;
|
|
33
|
+
}, 0);
|
|
34
|
+
}
|
|
35
|
+
onHandleClose() {
|
|
36
|
+
this._showMenu = false;
|
|
37
|
+
this.onClose.next();
|
|
38
|
+
}
|
|
39
|
+
onHandleSubmit(event) {
|
|
40
|
+
this.onSubmit.next(event);
|
|
41
|
+
}
|
|
42
|
+
onHandleRemove() {
|
|
43
|
+
const { _option } = this;
|
|
44
|
+
const { field } = _option;
|
|
45
|
+
this.onSubmit.next({ [field]: null });
|
|
46
|
+
}
|
|
47
|
+
onHandleShowFromChildren(event) {
|
|
48
|
+
const { _option } = this;
|
|
49
|
+
const { label } = _option;
|
|
50
|
+
this.onHandleShowMenu();
|
|
51
|
+
this.onHandleSubmit = (event) => {
|
|
52
|
+
this.onSubmit.next({
|
|
53
|
+
[_option.field]: JSON.stringify(event)
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
this._option = {
|
|
57
|
+
...event,
|
|
58
|
+
label
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
MECXFilterSelectedItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MECXFilterSelectedItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
MECXFilterSelectedItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MECXFilterSelectedItemComponent, selector: "mecx-filter-selected-item", inputs: { option: "option" }, outputs: { onClose: "onClose", onSubmit: "onSubmit" }, ngImport: i0, template: "<ng-container *ngIf=\"_option?.type as type\">\n <ng-container *ngIf=\"_option?.children; else withoutChildren\">\n <mecx-filter-selected-item-children [option]=\"_option\" (onShow)=\"onHandleShowMenu()\"\n (onRemove)=\"onHandleRemove()\">\n </mecx-filter-selected-item-children>\n </ng-container>\n <ng-template #withoutChildren>\n <div class=\"box\">\n <div class=\"data\">\n {{ _option.label | translate }}\n </div>\n <div class=\"value\" [id]=\"'mecx-filter-selected-item-'+_option?.field\"\n (click)=\"onHandleShowMenu()\">\n <ng-container [ngSwitch]=\"type\">\n <mecx-filter-selected-item-currency *ngSwitchCase=\"'currency'\" [option]=\"_option\">\n </mecx-filter-selected-item-currency>\n <mecx-filter-selected-item-input *ngSwitchCase=\"'input'\" [option]=\"_option\">\n </mecx-filter-selected-item-input>\n <mecx-filter-selected-item-date-range *ngSwitchCase=\"'date-range'\" [option]=\"_option\">\n </mecx-filter-selected-item-date-range>\n <mecx-filter-selected-item-status *ngSwitchCase=\"'status'\" [option]=\"_option\"\n [labelMoreValues]=\"'FIELD.AND-MORE' | translate\">\n </mecx-filter-selected-item-status>\n </ng-container>\n </div>\n <div class=\"action\" (click)=\"onHandleShowMenu()\">\n <monkey-icon icon=\"arrow-right-14\" color=\"#4B4A53\"></monkey-icon>\n </div>\n </div>\n </ng-template>\n</ng-container>\n<ng-container\n *monkeyecxPopover=\"_showMenu; target: $any(_actionElement); closed: closeMenu; dir: 'ltr'\">\n <mecx-filter-options [option]=\"_option\" (onClose)=\"onHandleClose()\"\n (onRemove)=\"onHandleRemove()\" (onSubmit)=\"onHandleSubmit($event)\"\n (onShowFromChildren)=\"onHandleShowFromChildren($event)\">\n </mecx-filter-options>\n</ng-container>", styles: [":host{display:flex}:host .box{display:flex;justify-content:space-between;align-items:center;background:#ffffff;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:120px;height:40px}:host .box .data{display:flex;align-items:center;padding:12px 8px;height:100%;font-style:normal;font-weight:400;font-size:14px;line-height:24px;text-align:center;color:#72717e}:host .box .value{cursor:pointer;display:flex;align-items:center;padding:12px 8px;height:100%;font-style:normal;font-weight:400;font-size:14px;line-height:24px;text-align:center;color:#72717e;background-color:#6d6d6d0a}:host .box .value:hover{background-color:#6d6d6d0c;font-weight:400;text-decoration:underline}:host .box .action{cursor:pointer;border-left:1px solid #d6d6d6;padding:8px;color:#908e9d;font-weight:500;font-size:18px;height:40px;align-items:center;display:flex}:host .box .action:hover{background-color:#6d6d6d0c;border-top-right-radius:120px;border-bottom-right-radius:120px}mecx-filter-options{margin:4px 0}\n"], components: [{ type: i1.MECXFilterSelectedItemChildrenComponent, selector: "mecx-filter-selected-item-children", inputs: ["option"], outputs: ["onShow", "onRemove"] }, { type: i2.MECXFilterSelectedItemCurrencyComponent, selector: "mecx-filter-selected-item-currency", inputs: ["option"] }, { type: i3.MECXFilterSelectedItemInputComponent, selector: "mecx-filter-selected-item-input", inputs: ["option"] }, { type: i4.MECXFilterSelectedItemDateRangeComponent, selector: "mecx-filter-selected-item-date-range", inputs: ["option"] }, { type: i5.MECXFilterSelectedItemStatusComponent, selector: "mecx-filter-selected-item-status", inputs: ["option", "labelMoreValues"] }, { type: i6.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }, { type: i7.MECXFilterOptionsComponent, selector: "mecx-filter-options", inputs: ["option", "closeDirectly"], outputs: ["onClose", "onRemove", "onSubmit", "onShowFromChildren"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i9.MonkeyEcxPopoverDirective, selector: "[monkeyecxPopover]", inputs: ["monkeyecxPopover", "monkeyecxPopoverClosed", "monkeyecxPopoverTarget", "monkeyecxPopoverMinwidth", "monkeyecxPopoverBackdrop", "monkeyecxPopoverWatch", "monkeyecxPopoverDir", "monkeyecxPopoverContextmenu", "monkeyecxPopoverHeight"] }], pipes: { "translate": i10.TranslatePipe } });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MECXFilterSelectedItemComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'mecx-filter-selected-item', template: "<ng-container *ngIf=\"_option?.type as type\">\n <ng-container *ngIf=\"_option?.children; else withoutChildren\">\n <mecx-filter-selected-item-children [option]=\"_option\" (onShow)=\"onHandleShowMenu()\"\n (onRemove)=\"onHandleRemove()\">\n </mecx-filter-selected-item-children>\n </ng-container>\n <ng-template #withoutChildren>\n <div class=\"box\">\n <div class=\"data\">\n {{ _option.label | translate }}\n </div>\n <div class=\"value\" [id]=\"'mecx-filter-selected-item-'+_option?.field\"\n (click)=\"onHandleShowMenu()\">\n <ng-container [ngSwitch]=\"type\">\n <mecx-filter-selected-item-currency *ngSwitchCase=\"'currency'\" [option]=\"_option\">\n </mecx-filter-selected-item-currency>\n <mecx-filter-selected-item-input *ngSwitchCase=\"'input'\" [option]=\"_option\">\n </mecx-filter-selected-item-input>\n <mecx-filter-selected-item-date-range *ngSwitchCase=\"'date-range'\" [option]=\"_option\">\n </mecx-filter-selected-item-date-range>\n <mecx-filter-selected-item-status *ngSwitchCase=\"'status'\" [option]=\"_option\"\n [labelMoreValues]=\"'FIELD.AND-MORE' | translate\">\n </mecx-filter-selected-item-status>\n </ng-container>\n </div>\n <div class=\"action\" (click)=\"onHandleShowMenu()\">\n <monkey-icon icon=\"arrow-right-14\" color=\"#4B4A53\"></monkey-icon>\n </div>\n </div>\n </ng-template>\n</ng-container>\n<ng-container\n *monkeyecxPopover=\"_showMenu; target: $any(_actionElement); closed: closeMenu; dir: 'ltr'\">\n <mecx-filter-options [option]=\"_option\" (onClose)=\"onHandleClose()\"\n (onRemove)=\"onHandleRemove()\" (onSubmit)=\"onHandleSubmit($event)\"\n (onShowFromChildren)=\"onHandleShowFromChildren($event)\">\n </mecx-filter-options>\n</ng-container>", styles: [":host{display:flex}:host .box{display:flex;justify-content:space-between;align-items:center;background:#ffffff;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:120px;height:40px}:host .box .data{display:flex;align-items:center;padding:12px 8px;height:100%;font-style:normal;font-weight:400;font-size:14px;line-height:24px;text-align:center;color:#72717e}:host .box .value{cursor:pointer;display:flex;align-items:center;padding:12px 8px;height:100%;font-style:normal;font-weight:400;font-size:14px;line-height:24px;text-align:center;color:#72717e;background-color:#6d6d6d0a}:host .box .value:hover{background-color:#6d6d6d0c;font-weight:400;text-decoration:underline}:host .box .action{cursor:pointer;border-left:1px solid #d6d6d6;padding:8px;color:#908e9d;font-weight:500;font-size:18px;height:40px;align-items:center;display:flex}:host .box .action:hover{background-color:#6d6d6d0c;border-top-right-radius:120px;border-bottom-right-radius:120px}mecx-filter-options{margin:4px 0}\n"] }]
|
|
67
|
+
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], onClose: [{
|
|
70
|
+
type: Output
|
|
71
|
+
}], onSubmit: [{
|
|
72
|
+
type: Output
|
|
73
|
+
}] } });
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9zZWxlY3RlZC9pdGVtL2l0ZW0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC9maWx0ZXIvc2VsZWN0ZWQvaXRlbS9pdGVtLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM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taXQoJGV2ZW50KVwiXG4gICAgKG9uU2hvd0Zyb21DaGlsZHJlbik9XCJvbkhhbmRsZVNob3dGcm9tQ2hpbGRyZW4oJGV2ZW50KVwiPlxuICA8L21lY3gtZmlsdGVyLW9wdGlvbnM+XG48L25nLWNvbnRhaW5lcj4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './status.component';
|
|
1
|
+
export * from './status.component';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9zZWxlY3RlZC9pdGVtL3N0YXR1cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdGF0dXMuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@ngx-translate/core";
|
|
4
|
-
export class MECXFilterSelectedItemStatusComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.option = null;
|
|
7
|
-
this._selectedValue = '';
|
|
8
|
-
this._labelMoreValues = '';
|
|
9
|
-
}
|
|
10
|
-
onHandleSelectedValue({ value, i18n }) {
|
|
11
|
-
const { labelMoreValues } = this;
|
|
12
|
-
const selected = `${value}`.split(',');
|
|
13
|
-
this._selectedValue = `${i18n}${selected[0]}`.trim();
|
|
14
|
-
if (selected.length >= 2) {
|
|
15
|
-
this._labelMoreValues = `, ${labelMoreValues} ${selected.length - 1}`;
|
|
16
|
-
}
|
|
17
|
-
else
|
|
18
|
-
this._labelMoreValues = '';
|
|
19
|
-
}
|
|
20
|
-
ngOnChanges(changes) {
|
|
21
|
-
if (changes.option) {
|
|
22
|
-
const { currentValue } = changes.option;
|
|
23
|
-
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
24
|
-
this.onHandleSelectedValue(currentValue);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
MECXFilterSelectedItemStatusComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
30
|
-
MECXFilterSelectedItemStatusComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
32
|
-
type: Component,
|
|
33
|
-
args: [{ selector: 'mecx-filter-selected-item-status', template: "{{ _selectedValue | translate }}{{ _labelMoreValues }}", styles: [""] }]
|
|
34
|
-
}], propDecorators: { option: [{
|
|
35
|
-
type: Input
|
|
36
|
-
}], labelMoreValues: [{
|
|
37
|
-
type: Input
|
|
38
|
-
}] } });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ngx-translate/core";
|
|
4
|
+
export class MECXFilterSelectedItemStatusComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.option = null;
|
|
7
|
+
this._selectedValue = '';
|
|
8
|
+
this._labelMoreValues = '';
|
|
9
|
+
}
|
|
10
|
+
onHandleSelectedValue({ value, i18n }) {
|
|
11
|
+
const { labelMoreValues } = this;
|
|
12
|
+
const selected = `${value}`.split(',');
|
|
13
|
+
this._selectedValue = `${i18n}${selected[0]}`.trim();
|
|
14
|
+
if (selected.length >= 2) {
|
|
15
|
+
this._labelMoreValues = `, ${labelMoreValues} ${selected.length - 1}`;
|
|
16
|
+
}
|
|
17
|
+
else
|
|
18
|
+
this._labelMoreValues = '';
|
|
19
|
+
}
|
|
20
|
+
ngOnChanges(changes) {
|
|
21
|
+
if (changes.option) {
|
|
22
|
+
const { currentValue } = changes.option;
|
|
23
|
+
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
24
|
+
this.onHandleSelectedValue(currentValue);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
MECXFilterSelectedItemStatusComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MECXFilterSelectedItemStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
MECXFilterSelectedItemStatusComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MECXFilterSelectedItemStatusComponent, selector: "mecx-filter-selected-item-status", inputs: { option: "option", labelMoreValues: "labelMoreValues" }, usesOnChanges: true, ngImport: i0, template: "{{ _selectedValue | translate }}{{ _labelMoreValues }}", styles: [""], pipes: { "translate": i1.TranslatePipe } });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MECXFilterSelectedItemStatusComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: 'mecx-filter-selected-item-status', template: "{{ _selectedValue | translate }}{{ _labelMoreValues }}", styles: [""] }]
|
|
34
|
+
}], propDecorators: { option: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}], labelMoreValues: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}] } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4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zZWxlY3RlZFZhbHVlIHwgdHJhbnNsYXRlIH19e3sgX2xhYmVsTW9yZVZhbHVlcyB9fSJdfQ==
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { MonkeyEcxUtils } from 'monkey-front-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./item/item.component";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
export class MECXFilterSelectedComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.model = [];
|
|
9
|
-
this.onOpenFilters = new EventEmitter();
|
|
10
|
-
this.onClose = new EventEmitter();
|
|
11
|
-
this.onSubmit = new EventEmitter();
|
|
12
|
-
this._model = [];
|
|
13
|
-
// not to do
|
|
14
|
-
}
|
|
15
|
-
validateValue({ field, value, getValue }) {
|
|
16
|
-
try {
|
|
17
|
-
value = value || getValue()?.[field];
|
|
18
|
-
if (!value)
|
|
19
|
-
return false;
|
|
20
|
-
if (typeof value === 'object') {
|
|
21
|
-
return value && JSON.stringify(value) !== '{}';
|
|
22
|
-
}
|
|
23
|
-
return MonkeyEcxUtils.persistNullEmptyUndefined(value);
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
26
|
-
// not to do
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
onHandleSelectedValue(value) {
|
|
31
|
-
this._model = value?.map((_) => {
|
|
32
|
-
const { children } = _;
|
|
33
|
-
let obj = null;
|
|
34
|
-
if (children) {
|
|
35
|
-
obj = {
|
|
36
|
-
..._,
|
|
37
|
-
children
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
else if (this.validateValue(_)) {
|
|
41
|
-
obj = {
|
|
42
|
-
..._,
|
|
43
|
-
...obj || {}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return obj;
|
|
47
|
-
})?.filter((_) => {
|
|
48
|
-
return _;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
ngOnChanges(changes) {
|
|
52
|
-
if (changes.model) {
|
|
53
|
-
const { currentValue } = changes.model;
|
|
54
|
-
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
55
|
-
this.onHandleSelectedValue(currentValue);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
onHandleClose() {
|
|
60
|
-
this.onClose.next();
|
|
61
|
-
}
|
|
62
|
-
onHandleSubmit(event) {
|
|
63
|
-
this.onSubmit.next(event);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
MECXFilterSelectedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
67
|
-
MECXFilterSelectedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
69
|
-
type: Component,
|
|
70
|
-
args: [{ selector: 'mecx-filter-selected', template: "<mecx-filter-selected-item *ngFor=\"let option of _model\" (onSubmit)=\"onHandleSubmit($event)\"\n (onClose)=\"onHandleClose()\" [option]=\"option\">\n</mecx-filter-selected-item>", styles: [":host{display:flex}:host ::ng-deep mecx-filter-selected-item{margin-right:8px}\n"] }]
|
|
71
|
-
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], onOpenFilters: [{
|
|
74
|
-
type: Output
|
|
75
|
-
}], onClose: [{
|
|
76
|
-
type: Output
|
|
77
|
-
}], onSubmit: [{
|
|
78
|
-
type: Output
|
|
79
|
-
}] } });
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { MonkeyEcxUtils } from 'monkey-front-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./item/item.component";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
export class MECXFilterSelectedComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.model = [];
|
|
9
|
+
this.onOpenFilters = new EventEmitter();
|
|
10
|
+
this.onClose = new EventEmitter();
|
|
11
|
+
this.onSubmit = new EventEmitter();
|
|
12
|
+
this._model = [];
|
|
13
|
+
// not to do
|
|
14
|
+
}
|
|
15
|
+
validateValue({ field, value, getValue }) {
|
|
16
|
+
try {
|
|
17
|
+
value = value || getValue()?.[field];
|
|
18
|
+
if (!value)
|
|
19
|
+
return false;
|
|
20
|
+
if (typeof value === 'object') {
|
|
21
|
+
return value && JSON.stringify(value) !== '{}';
|
|
22
|
+
}
|
|
23
|
+
return MonkeyEcxUtils.persistNullEmptyUndefined(value);
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
// not to do
|
|
27
|
+
}
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
onHandleSelectedValue(value) {
|
|
31
|
+
this._model = value?.map((_) => {
|
|
32
|
+
const { children } = _;
|
|
33
|
+
let obj = null;
|
|
34
|
+
if (children) {
|
|
35
|
+
obj = {
|
|
36
|
+
..._,
|
|
37
|
+
children
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
else if (this.validateValue(_)) {
|
|
41
|
+
obj = {
|
|
42
|
+
..._,
|
|
43
|
+
...obj || {}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return obj;
|
|
47
|
+
})?.filter((_) => {
|
|
48
|
+
return _;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
ngOnChanges(changes) {
|
|
52
|
+
if (changes.model) {
|
|
53
|
+
const { currentValue } = changes.model;
|
|
54
|
+
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
55
|
+
this.onHandleSelectedValue(currentValue);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
onHandleClose() {
|
|
60
|
+
this.onClose.next();
|
|
61
|
+
}
|
|
62
|
+
onHandleSubmit(event) {
|
|
63
|
+
this.onSubmit.next(event);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
MECXFilterSelectedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MECXFilterSelectedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
MECXFilterSelectedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MECXFilterSelectedComponent, selector: "mecx-filter-selected", inputs: { model: "model" }, outputs: { onOpenFilters: "onOpenFilters", onClose: "onClose", onSubmit: "onSubmit" }, usesOnChanges: true, ngImport: i0, template: "<mecx-filter-selected-item *ngFor=\"let option of _model\" (onSubmit)=\"onHandleSubmit($event)\"\n (onClose)=\"onHandleClose()\" [option]=\"option\">\n</mecx-filter-selected-item>", styles: [":host{display:flex}:host ::ng-deep mecx-filter-selected-item{margin-right:8px}\n"], components: [{ type: i1.MECXFilterSelectedItemComponent, selector: "mecx-filter-selected-item", inputs: ["option"], outputs: ["onClose", "onSubmit"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MECXFilterSelectedComponent, decorators: [{
|
|
69
|
+
type: Component,
|
|
70
|
+
args: [{ selector: 'mecx-filter-selected', template: "<mecx-filter-selected-item *ngFor=\"let option of _model\" (onSubmit)=\"onHandleSubmit($event)\"\n (onClose)=\"onHandleClose()\" [option]=\"option\">\n</mecx-filter-selected-item>", styles: [":host{display:flex}:host ::ng-deep mecx-filter-selected-item{margin-right:8px}\n"] }]
|
|
71
|
+
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], onOpenFilters: [{
|
|
74
|
+
type: Output
|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