monkey-front-components 0.0.625 → 0.0.626
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/README.md +24 -24
- package/esm2020/lib/components/base/base-component.mjs +335 -335
- 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 +20 -20
- package/esm2020/lib/components/base/index.mjs +6 -6
- package/esm2020/lib/components/dynamic/button/button.component.mjs +52 -52
- package/esm2020/lib/components/dynamic/button/index.mjs +2 -2
- 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 +2 -2
- 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 +3 -3
- package/esm2020/lib/components/dynamic/index.mjs +9 -9
- package/esm2020/lib/components/dynamic/input/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/input/input.component.mjs +65 -65
- package/esm2020/lib/components/dynamic/input-phone/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/input-phone/input-phone.component.mjs +65 -65
- package/esm2020/lib/components/dynamic/radio/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/radio/radio.component.mjs +33 -33
- package/esm2020/lib/components/dynamic/select/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/select/select.component.mjs +85 -85
- package/esm2020/lib/components/dynamic/select-search/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/select-search/select-search.component.mjs +92 -92
- package/esm2020/lib/components/index.mjs +4 -4
- package/esm2020/lib/components/shared/filter/filter.component.mjs +144 -144
- package/esm2020/lib/components/shared/filter/filter.module.mjs +67 -67
- package/esm2020/lib/components/shared/filter/index.mjs +3 -3
- package/esm2020/lib/components/shared/filter/menu/index.mjs +2 -2
- 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 +2 -2
- package/esm2020/lib/components/shared/filter/options/currency/currency.component.mjs +46 -46
- package/esm2020/lib/components/shared/filter/options/currency/index.mjs +2 -2
- 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 +2 -2
- package/esm2020/lib/components/shared/filter/options/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/options/input/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/options/input/input.component.mjs +46 -46
- package/esm2020/lib/components/shared/filter/options/options.component.mjs +102 -102
- package/esm2020/lib/components/shared/filter/options/options.module.mjs +103 -103
- package/esm2020/lib/components/shared/filter/options/status/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/options/status/status.component.mjs +66 -66
- package/esm2020/lib/components/shared/filter/options/status-radio/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/options/status-radio/status-radio.component.mjs +37 -37
- package/esm2020/lib/components/shared/filter/selected/index.mjs +2 -2
- 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 +2 -2
- package/esm2020/lib/components/shared/filter/selected/item/currency/currency.component.mjs +28 -28
- package/esm2020/lib/components/shared/filter/selected/item/currency/index.mjs +2 -2
- 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 +2 -2
- package/esm2020/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.mjs +32 -32
- package/esm2020/lib/components/shared/filter/selected/item/date-with-action/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/selected/item/index.mjs +9 -9
- package/esm2020/lib/components/shared/filter/selected/item/input/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/selected/item/input/input.component.mjs +27 -27
- package/esm2020/lib/components/shared/filter/selected/item/item.component.mjs +75 -75
- package/esm2020/lib/components/shared/filter/selected/item/status/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/selected/item/status/status.component.mjs +38 -38
- package/esm2020/lib/components/shared/filter/selected/item/status-radio/index.mjs +2 -2
- package/esm2020/lib/components/shared/filter/selected/item/status-radio/status-radio.component.mjs +29 -29
- package/esm2020/lib/components/shared/filter/selected/selected.component.mjs +85 -85
- package/esm2020/lib/components/shared/filter/selected/selected.module.mjs +92 -92
- package/esm2020/lib/components/shared/index.mjs +5 -5
- package/esm2020/lib/components/shared/password-strength/index.mjs +3 -3
- package/esm2020/lib/components/shared/password-strength/password-strength.component.mjs +85 -85
- package/esm2020/lib/components/shared/password-strength/password-strength.mjs +2 -2
- 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 +3 -3
- 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 +2 -2
- package/esm2020/lib/components/shared/products/providers/products.model.mjs +38 -38
- package/esm2020/lib/components/shared/progress-bar/index.mjs +4 -4
- 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 +2 -2
- package/esm2020/lib/interfaces/index.mjs +2 -2
- package/esm2020/monkey-front-components.mjs +4 -4
- package/esm2020/public-api.mjs +5 -5
- package/fesm2015/monkey-front-components.mjs +2932 -2932
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +2908 -2908
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/lib/components/base/base-component.d.ts +54 -54
- 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 +17 -17
- package/lib/components/dynamic/select-search/index.d.ts +1 -1
- package/lib/components/dynamic/select-search/select-search.component.d.ts +19 -19
- package/lib/components/index.d.ts +3 -3
- package/lib/components/shared/filter/filter.component.d.ts +41 -41
- 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 +28 -28
- package/lib/components/shared/filter/options/options.module.d.ts +19 -19
- 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/options/status-radio/index.d.ts +1 -1
- package/lib/components/shared/filter/options/status-radio/status-radio.component.d.ts +15 -15
- 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 +8 -8
- 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/item/status-radio/index.d.ts +1 -1
- package/lib/components/shared/filter/selected/item/status-radio/status-radio.component.d.ts +11 -11
- package/lib/components/shared/filter/selected/selected.component.d.ts +19 -19
- package/lib/components/shared/filter/selected/selected.module.d.ts +22 -22
- 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 +55 -55
- package/lib/interfaces/index.d.ts +1 -1
- package/monkey-front-components-0.0.626.tgz +0 -0
- package/monkey-front-components.d.ts +5 -5
- package/package.json +2 -2
- package/public-api.d.ts +1 -1
- package/monkey-front-components-0.0.625.tgz +0 -0
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { debounceTime } from 'rxjs/operators';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "monkey-style-guide";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@ngx-translate/core";
|
|
7
|
-
export class MECXFilterOptionsStatusComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.option = null;
|
|
10
|
-
this.onSubmit = new EventEmitter();
|
|
11
|
-
this._value = '';
|
|
12
|
-
this.eventHandle = new EventEmitter();
|
|
13
|
-
// not to do
|
|
14
|
-
}
|
|
15
|
-
verifySelected(value) {
|
|
16
|
-
return this._value?.includes(value);
|
|
17
|
-
}
|
|
18
|
-
ngOnInit() {
|
|
19
|
-
const { eventHandle, onSubmit, option: { field } } = this;
|
|
20
|
-
this.eventSubscription = eventHandle
|
|
21
|
-
.pipe(debounceTime(800))
|
|
22
|
-
.subscribe((value) => {
|
|
23
|
-
onSubmit.next({ [field]: value });
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
ngOnDestroy() {
|
|
27
|
-
this.eventSubscription.unsubscribe();
|
|
28
|
-
}
|
|
29
|
-
ngOnChanges(changes) {
|
|
30
|
-
if (changes.option) {
|
|
31
|
-
const { currentValue } = changes.option;
|
|
32
|
-
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
33
|
-
this._value = currentValue?.value;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
onHandleChecked(cmp) {
|
|
38
|
-
const { _value } = this;
|
|
39
|
-
return `${_value}`.split(',')?.indexOf(cmp) >= 0;
|
|
40
|
-
}
|
|
41
|
-
onChangeFilter(event, value) {
|
|
42
|
-
event.preventDefault();
|
|
43
|
-
event.stopPropagation();
|
|
44
|
-
const selected = !this.verifySelected(value);
|
|
45
|
-
const filters = this._value?.split(',') || [];
|
|
46
|
-
if (!selected) {
|
|
47
|
-
filters.splice(filters.indexOf(value), 1);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
filters.push(value);
|
|
51
|
-
}
|
|
52
|
-
this._value = filters?.length ? filters.join(',') : null;
|
|
53
|
-
this.eventHandle.next(this._value);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
MECXFilterOptionsStatusComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
-
MECXFilterOptionsStatusComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterOptionsStatusComponent, selector: "mecx-filter-options-status", inputs: { option: "option" }, outputs: { onSubmit: "onSubmit" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngFor=\"let op of option?.values\">\
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusComponent, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{ selector: 'mecx-filter-options-status', template: "<ng-container *ngFor=\"let op of option?.values\">\
|
|
61
|
-
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
62
|
-
type: Input
|
|
63
|
-
}], onSubmit: [{
|
|
64
|
-
type: Output
|
|
65
|
-
}] } });
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { debounceTime } from 'rxjs/operators';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "monkey-style-guide";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@ngx-translate/core";
|
|
7
|
+
export class MECXFilterOptionsStatusComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.option = null;
|
|
10
|
+
this.onSubmit = new EventEmitter();
|
|
11
|
+
this._value = '';
|
|
12
|
+
this.eventHandle = new EventEmitter();
|
|
13
|
+
// not to do
|
|
14
|
+
}
|
|
15
|
+
verifySelected(value) {
|
|
16
|
+
return this._value?.includes(value);
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
const { eventHandle, onSubmit, option: { field } } = this;
|
|
20
|
+
this.eventSubscription = eventHandle
|
|
21
|
+
.pipe(debounceTime(800))
|
|
22
|
+
.subscribe((value) => {
|
|
23
|
+
onSubmit.next({ [field]: value });
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
ngOnDestroy() {
|
|
27
|
+
this.eventSubscription.unsubscribe();
|
|
28
|
+
}
|
|
29
|
+
ngOnChanges(changes) {
|
|
30
|
+
if (changes.option) {
|
|
31
|
+
const { currentValue } = changes.option;
|
|
32
|
+
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
33
|
+
this._value = currentValue?.value;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
onHandleChecked(cmp) {
|
|
38
|
+
const { _value } = this;
|
|
39
|
+
return `${_value}`.split(',')?.indexOf(cmp) >= 0;
|
|
40
|
+
}
|
|
41
|
+
onChangeFilter(event, value) {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
event.stopPropagation();
|
|
44
|
+
const selected = !this.verifySelected(value);
|
|
45
|
+
const filters = this._value?.split(',') || [];
|
|
46
|
+
if (!selected) {
|
|
47
|
+
filters.splice(filters.indexOf(value), 1);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
filters.push(value);
|
|
51
|
+
}
|
|
52
|
+
this._value = filters?.length ? filters.join(',') : null;
|
|
53
|
+
this.eventHandle.next(this._value);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
MECXFilterOptionsStatusComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
MECXFilterOptionsStatusComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterOptionsStatusComponent, selector: "mecx-filter-options-status", inputs: { option: "option" }, outputs: { onSubmit: "onSubmit" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngFor=\"let op of option?.values\">\n <div class=\"content-status d-flex flex-column\">\n <div class=\"d-flex align-items-center gap\">\n <monkey-checkbox type=\"multiple\"\n [description]=\"op?.description | translate\" [value]=\"onHandleChecked(op?.value)\"\n (click)=\"onChangeFilter($event, op?.value)\">\n </monkey-checkbox>\n <span class=\"helper\" *ngIf=\"op?.helperMessage\">{{ op?.helperMessage }}</span>\n </div>\n <span class=\"info\" *ngIf=\"op?.infoMessage\">{{ op?.infoMessage }}</span>\n </div>\n</ng-container>", styles: [":host{display:flex;flex-direction:column;max-width:232px;min-width:180px;max-height:500px;padding:12px 12px 8px;color:#72717e;overflow:auto}:host .content-status .gap{gap:6px}:host .content-status .helper{margin-bottom:4px;margin-left:12;font-style:normal;font-weight:400;font-size:16px;color:#9c9ca6;text-align:right}:host .content-status .info{font-style:normal;font-weight:400;font-size:16px;color:#9c9ca6;margin:-8px 24px 8px}:host ::ng-deep mecx-form-field mecx-form-field-body.checkbox{padding:0!important}:host ::ng-deep mecx-form-field mecx-form-field-body.checkbox .mecx-check-container{height:unset!important}:host ::ng-deep mecx-form-field mecx-form-field-body.checkbox .mecx-check-container .mecx-check-mark{top:50%;transform:translateY(-50%)}:host ::ng-deep monkey-checkbox{margin:6px 0!important}\n"], components: [{ type: i1.MonkeyCheckboxComponent, selector: "monkey-checkbox", inputs: ["label", "type", "helperMessage", "infoMessage", "errorMessage", "description", "value"], outputs: ["onChange"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i3.TranslatePipe } });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{ selector: 'mecx-filter-options-status', template: "<ng-container *ngFor=\"let op of option?.values\">\n <div class=\"content-status d-flex flex-column\">\n <div class=\"d-flex align-items-center gap\">\n <monkey-checkbox type=\"multiple\"\n [description]=\"op?.description | translate\" [value]=\"onHandleChecked(op?.value)\"\n (click)=\"onChangeFilter($event, op?.value)\">\n </monkey-checkbox>\n <span class=\"helper\" *ngIf=\"op?.helperMessage\">{{ op?.helperMessage }}</span>\n </div>\n <span class=\"info\" *ngIf=\"op?.infoMessage\">{{ op?.infoMessage }}</span>\n </div>\n</ng-container>", styles: [":host{display:flex;flex-direction:column;max-width:232px;min-width:180px;max-height:500px;padding:12px 12px 8px;color:#72717e;overflow:auto}:host .content-status .gap{gap:6px}:host .content-status .helper{margin-bottom:4px;margin-left:12;font-style:normal;font-weight:400;font-size:16px;color:#9c9ca6;text-align:right}:host .content-status .info{font-style:normal;font-weight:400;font-size:16px;color:#9c9ca6;margin:-8px 24px 8px}:host ::ng-deep mecx-form-field mecx-form-field-body.checkbox{padding:0!important}:host ::ng-deep mecx-form-field mecx-form-field-body.checkbox .mecx-check-container{height:unset!important}:host ::ng-deep mecx-form-field mecx-form-field-body.checkbox .mecx-check-container .mecx-check-mark{top:50%;transform:translateY(-50%)}:host ::ng-deep monkey-checkbox{margin:6px 0!important}\n"] }]
|
|
61
|
+
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], onSubmit: [{
|
|
64
|
+
type: Output
|
|
65
|
+
}] } });
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9zaGFyZWQvZmlsdGVyL29wdGlvbnMvc3RhdHVzL3N0YXR1cy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25r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gfVxufVxuIiwiPG5nLWNvbnRhaW5lciAqbmdGb3I9XCJsZXQgb3Agb2Ygb3B0aW9uPy52YWx1ZXNcIj5cbiAgPGRpdiBjbGFzcz1cImNvbnRlbnQtc3RhdHVzIGQtZmxleCBmbGV4LWNvbHVtblwiPlxuICAgIDxkaXYgY2xhc3M9XCJkLWZsZXggYWxpZ24taXRlbXMtY2VudGVyIGdhcFwiPlxuICAgICAgPG1vbmtleS1jaGVja2JveCB0eXBlPVwibXVsdGlwbGVcIlxuICAgICAgICBbZGVzY3JpcHRpb25dPVwib3A/LmRlc2NyaXB0aW9uIHwgdHJhbnNsYXRlXCIgW3ZhbHVlXT1cIm9uSGFuZGxlQ2hlY2tlZChvcD8udmFsdWUpXCJcbiAgICAgICAgKGNsaWNrKT1cIm9uQ2hhbmdlRmlsdGVyKCRldmVudCwgb3A/LnZhbHVlKVwiPlxuICAgICAgPC9tb25rZXktY2hlY2tib3g+XG4gICAgICA8c3BhbiBjbGFzcz1cImhlbHBlclwiICpuZ0lmPVwib3A/LmhlbHBlck1lc3NhZ2VcIj57eyBvcD8uaGVscGVyTWVzc2FnZSB9fTwvc3Bhbj5cbiAgICA8L2Rpdj5cbiAgICA8c3BhbiBjbGFzcz1cImluZm9cIiAqbmdJZj1cIm9wPy5pbmZvTWVzc2FnZVwiPnt7IG9wPy5pbmZvTWVzc2FnZSB9fTwvc3Bhbj5cbiAgPC9kaXY+XG48L25nLWNvbnRhaW5lcj4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './status-radio.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './status-radio.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9vcHRpb25zL3N0YXR1cy1yYWRpby9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdGF0dXMtcmFkaW8uY29tcG9uZW50JztcbiJdfQ==
|
package/esm2020/lib/components/shared/filter/options/status-radio/status-radio.component.mjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { debounceTime } from 'rxjs/operators';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "monkey-style-guide";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@ngx-translate/core";
|
|
7
|
-
export class MECXFilterOptionsStatusRadioComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.option = null;
|
|
10
|
-
this.onSubmit = new EventEmitter();
|
|
11
|
-
this.eventHandle = new EventEmitter();
|
|
12
|
-
// not to do
|
|
13
|
-
}
|
|
14
|
-
ngOnInit() {
|
|
15
|
-
const { eventHandle, onSubmit, option: { field } } = this;
|
|
16
|
-
this.eventSubscription = eventHandle.pipe(debounceTime(800)).subscribe((value) => {
|
|
17
|
-
onSubmit.next({ [field]: value });
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
ngOnDestroy() {
|
|
21
|
-
this.eventSubscription.unsubscribe();
|
|
22
|
-
}
|
|
23
|
-
onChangeFilter(event) {
|
|
24
|
-
this.eventHandle.next(event);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
MECXFilterOptionsStatusRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
MECXFilterOptionsStatusRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterOptionsStatusRadioComponent, selector: "mecx-filter-options-status-radio", inputs: { option: "option" }, outputs: { onSubmit: "onSubmit" }, ngImport: i0, template: "<monkey-radiobutton [value]=\"option.value\" (onChange)=\"onChangeFilter($event)\">\
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusRadioComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{ selector: 'mecx-filter-options-status-radio', template: "<monkey-radiobutton [value]=\"option.value\" (onChange)=\"onChangeFilter($event)\">\
|
|
32
|
-
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}], onSubmit: [{
|
|
35
|
-
type: Output
|
|
36
|
-
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { debounceTime } from 'rxjs/operators';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "monkey-style-guide";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@ngx-translate/core";
|
|
7
|
+
export class MECXFilterOptionsStatusRadioComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.option = null;
|
|
10
|
+
this.onSubmit = new EventEmitter();
|
|
11
|
+
this.eventHandle = new EventEmitter();
|
|
12
|
+
// not to do
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
const { eventHandle, onSubmit, option: { field } } = this;
|
|
16
|
+
this.eventSubscription = eventHandle.pipe(debounceTime(800)).subscribe((value) => {
|
|
17
|
+
onSubmit.next({ [field]: value });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
ngOnDestroy() {
|
|
21
|
+
this.eventSubscription.unsubscribe();
|
|
22
|
+
}
|
|
23
|
+
onChangeFilter(event) {
|
|
24
|
+
this.eventHandle.next(event);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
MECXFilterOptionsStatusRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
MECXFilterOptionsStatusRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterOptionsStatusRadioComponent, selector: "mecx-filter-options-status-radio", inputs: { option: "option" }, outputs: { onSubmit: "onSubmit" }, ngImport: i0, template: "<monkey-radiobutton [value]=\"option.value\" (onChange)=\"onChangeFilter($event)\">\n <monkey-option\n *ngFor=\"let op of option?.values\"\n [label]=\"op?.description | translate\"\n [value]=\"op?.value\"\n >\n </monkey-option>\n</monkey-radiobutton>\n", styles: [":host{display:flex;flex-direction:column;max-width:232px;min-width:180px;max-height:500px;padding:12px 12px 8px;color:#72717e;overflow:auto}:host ::ng-deep .mecx-radio-container{margin-top:16px}\n"], components: [{ type: i1.MonkeyRadioButtonComponent, selector: "monkey-radiobutton", inputs: ["label", "helperMessage", "placeholder", "icon", "infoMessage", "errorMessage", "value"], outputs: ["onChange"] }, { type: i1.MonkeyOptionComponent, selector: "monkey-option", inputs: ["type", "label", "value", "selectAll", "selected", "enableClick"], outputs: ["onSelectOption"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i3.TranslatePipe } });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterOptionsStatusRadioComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'mecx-filter-options-status-radio', template: "<monkey-radiobutton [value]=\"option.value\" (onChange)=\"onChangeFilter($event)\">\n <monkey-option\n *ngFor=\"let op of option?.values\"\n [label]=\"op?.description | translate\"\n [value]=\"op?.value\"\n >\n </monkey-option>\n</monkey-radiobutton>\n", styles: [":host{display:flex;flex-direction:column;max-width:232px;min-width:180px;max-height:500px;padding:12px 12px 8px;color:#72717e;overflow:auto}:host ::ng-deep .mecx-radio-container{margin-top:16px}\n"] }]
|
|
32
|
+
}], ctorParameters: function () { return []; }, propDecorators: { option: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], onSubmit: [{
|
|
35
|
+
type: Output
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLXJhZGlvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9zaGFyZWQvZmlsdGVyL29wdGlvbnMvc3RhdHVzLXJhZGlvL3N0YXR1cy1yYWRpby5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9vcHRpb25zL3N0YXR1cy1yYWRpby9zdGF0dXMtcmFkaW8uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFxQixNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHMUYsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7OztBQU85QyxNQUFNLE9BQU8scUNB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KGRlYm91bmNlVGltZSg4MDApKS5zdWJzY3JpYmUoKHZhbHVlOiBzdHJpbmcpID0+IHtcbiAgICAgIG9uU3VibWl0Lm5leHQoeyBbZmllbGRdOiB2YWx1ZSB9KTtcbiAgICB9KTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuZXZlbnRTdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxuXG4gIG9uQ2hhbmdlRmlsdGVyKGV2ZW50OiBhbnkpOiB2b2lkIHtcbiAgICB0aGlzLmV2ZW50SGFuZGxlLm5leHQoZXZlbnQpO1xuICB9XG59XG4iLCI8bW9ua2V5LXJhZGlvYnV0dG9uIFt2YWx1ZV09XCJvcHRpb24udmFsdWVcIiAob25DaGFuZ2UpPVwib25DaGFuZ2VGaWx0ZXIoJGV2ZW50KVwiPlxuICA8bW9ua2V5LW9wdGlvblxuICAgICpuZ0Zvcj1cImxldCBvcCBvZiBvcHRpb24/LnZhbHVlc1wiXG4gICAgW2xhYmVsXT1cIm9wPy5kZXNjcmlwdGlvbiB8IHRyYW5zbGF0ZVwiXG4gICAgW3ZhbHVlXT1cIm9wPy52YWx1ZVwiXG4gID5cbiAgPC9tb25rZXktb3B0aW9uPlxuPC9tb25rZXktcmFkaW9idXR0b24+XG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './selected.module';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './selected.module';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9zZWxlY3RlZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zZWxlY3RlZC5tb2R1bGUnO1xuIl19
|
|
@@ -1,57 +1,57 @@
|
|
|
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 "../date-with-action/date-with-action.component";
|
|
5
|
-
import * as i2 from "../date-range/date-range.component";
|
|
6
|
-
import * as i3 from "monkey-style-guide";
|
|
7
|
-
import * as i4 from "@angular/common";
|
|
8
|
-
import * as i5 from "@ngx-translate/core";
|
|
9
|
-
export class MECXFilterSelectedItemChildrenComponent {
|
|
10
|
-
constructor(elRef) {
|
|
11
|
-
this.elRef = elRef;
|
|
12
|
-
this.option = null;
|
|
13
|
-
this.onShow = new EventEmitter();
|
|
14
|
-
this.onRemove = new EventEmitter();
|
|
15
|
-
this._child = null;
|
|
16
|
-
// not to do
|
|
17
|
-
}
|
|
18
|
-
validateValue(value) {
|
|
19
|
-
if (!value)
|
|
20
|
-
return false;
|
|
21
|
-
if (typeof value === 'object') {
|
|
22
|
-
return value && JSON.stringify(value) !== '{}';
|
|
23
|
-
}
|
|
24
|
-
return MonkeyEcxUtils.persistNullEmptyUndefined(value);
|
|
25
|
-
}
|
|
26
|
-
onHandleSelectedValue({ children }) {
|
|
27
|
-
const found = children.find(({ field, getValue }) => {
|
|
28
|
-
return this.validateValue(getValue()?.[field]);
|
|
29
|
-
});
|
|
30
|
-
if (!found) {
|
|
31
|
-
this.elRef.nativeElement.remove();
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
this._child = found;
|
|
35
|
-
}
|
|
36
|
-
ngOnChanges(changes) {
|
|
37
|
-
if (changes.option) {
|
|
38
|
-
const { currentValue } = changes.option;
|
|
39
|
-
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
40
|
-
this.onHandleSelectedValue(currentValue);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
MECXFilterSelectedItemChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemChildrenComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
MECXFilterSelectedItemChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterSelectedItemChildrenComponent, selector: "mecx-filter-selected-item-children", inputs: { option: "option" }, outputs: { onShow: "onShow", onRemove: "onRemove" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"box\">\
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemChildrenComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'mecx-filter-selected-item-children', template: "<div class=\"box\">\
|
|
50
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { option: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], onShow: [{
|
|
53
|
-
type: Output
|
|
54
|
-
}], onRemove: [{
|
|
55
|
-
type: Output
|
|
56
|
-
}] } });
|
|
57
|
-
//# 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 "../date-with-action/date-with-action.component";
|
|
5
|
+
import * as i2 from "../date-range/date-range.component";
|
|
6
|
+
import * as i3 from "monkey-style-guide";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
9
|
+
export class MECXFilterSelectedItemChildrenComponent {
|
|
10
|
+
constructor(elRef) {
|
|
11
|
+
this.elRef = elRef;
|
|
12
|
+
this.option = null;
|
|
13
|
+
this.onShow = new EventEmitter();
|
|
14
|
+
this.onRemove = new EventEmitter();
|
|
15
|
+
this._child = null;
|
|
16
|
+
// not to do
|
|
17
|
+
}
|
|
18
|
+
validateValue(value) {
|
|
19
|
+
if (!value)
|
|
20
|
+
return false;
|
|
21
|
+
if (typeof value === 'object') {
|
|
22
|
+
return value && JSON.stringify(value) !== '{}';
|
|
23
|
+
}
|
|
24
|
+
return MonkeyEcxUtils.persistNullEmptyUndefined(value);
|
|
25
|
+
}
|
|
26
|
+
onHandleSelectedValue({ children }) {
|
|
27
|
+
const found = children.find(({ field, getValue }) => {
|
|
28
|
+
return this.validateValue(getValue()?.[field]);
|
|
29
|
+
});
|
|
30
|
+
if (!found) {
|
|
31
|
+
this.elRef.nativeElement.remove();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this._child = found;
|
|
35
|
+
}
|
|
36
|
+
ngOnChanges(changes) {
|
|
37
|
+
if (changes.option) {
|
|
38
|
+
const { currentValue } = changes.option;
|
|
39
|
+
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
40
|
+
this.onHandleSelectedValue(currentValue);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
MECXFilterSelectedItemChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemChildrenComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
MECXFilterSelectedItemChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterSelectedItemChildrenComponent, selector: "mecx-filter-selected-item-children", inputs: { option: "option" }, outputs: { onShow: "onShow", onRemove: "onRemove" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"box\">\n <div class=\"data\">\n {{ option.label | translate }}\n </div>\n <div class=\"value\" [id]=\"'mecx-filter-selected-item-'+option?.field\" (click)=\"onShow.next()\">\n <ng-container *ngIf=\"option?.type as type\">\n <ng-container [ngSwitch]=\"type+'-'+_child?.type\">\n <mecx-filter-selected-item-date-with-action *ngSwitchCase=\"'date-with-action'\"\n [option]=\"_child\">\n </mecx-filter-selected-item-date-with-action>\n <mecx-filter-selected-item-date-range *ngSwitchCase=\"'date-date-range'\" [option]=\"_child\">\n </mecx-filter-selected-item-date-range>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"action\" (click)=\"onShow.next()\">\n <monkey-icon icon=\"arrow-right-14\" color=\"#4B4A53\"></monkey-icon>\n </div>\n</div>", 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-left:12px;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;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:12px;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}\n"], components: [{ type: i1.MECXFilterSelectedItemDateWithActionComponent, selector: "mecx-filter-selected-item-date-with-action", inputs: ["option"] }, { type: i2.MECXFilterSelectedItemDateRangeComponent, selector: "mecx-filter-selected-item-date-range", inputs: ["option"] }, { type: i3.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "translate": i5.TranslatePipe } });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemChildrenComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{ selector: 'mecx-filter-selected-item-children', template: "<div class=\"box\">\n <div class=\"data\">\n {{ option.label | translate }}\n </div>\n <div class=\"value\" [id]=\"'mecx-filter-selected-item-'+option?.field\" (click)=\"onShow.next()\">\n <ng-container *ngIf=\"option?.type as type\">\n <ng-container [ngSwitch]=\"type+'-'+_child?.type\">\n <mecx-filter-selected-item-date-with-action *ngSwitchCase=\"'date-with-action'\"\n [option]=\"_child\">\n </mecx-filter-selected-item-date-with-action>\n <mecx-filter-selected-item-date-range *ngSwitchCase=\"'date-date-range'\" [option]=\"_child\">\n </mecx-filter-selected-item-date-range>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"action\" (click)=\"onShow.next()\">\n <monkey-icon icon=\"arrow-right-14\" color=\"#4B4A53\"></monkey-icon>\n </div>\n</div>", 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-left:12px;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;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:12px;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}\n"] }]
|
|
50
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { option: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], onShow: [{
|
|
53
|
+
type: Output
|
|
54
|
+
}], onRemove: [{
|
|
55
|
+
type: Output
|
|
56
|
+
}] } });
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpbGRyZW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC9maWx0ZXIvc2VsZWN0ZWQvaXRlbS9jaGlsZHJlbi9jaGlsZHJlbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9zZWxlY3RlZC9pdGVtL2NoaWxkcmVuL2NoaWxkcmVuLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWMsWUFBWSxFQUFFLEtBQUssRUFBYSxNQUFNLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBQzdHLE9BQU8sRUFBdUIsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7Ozs7Ozs7QUFPeEUsTUFBTSxPQUFPLHVDQUF1QztJQVNsRCxZQUFvQixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO1FBUjVCLFdBQU0sR0FBd0IsSUFBSSxDQUFDO1FBRWxDLFdBQU0sR0FBRyxJQUF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1jb250YWluZXI+XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwiYWN0aW9uXCIgKGNsaWNrKT1cIm9uU2hvdy5uZXh0KClcIj5cbiAgICA8bW9ua2V5LWljb24gaWNvbj1cImFycm93LXJpZ2h0LTE0XCIgY29sb3I9XCIjNEI0QTUzXCI+PC9tb25rZXktaWNvbj5cbiAgPC9kaXY+XG48L2Rpdj4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './children.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './children.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9zZWxlY3RlZC9pdGVtL2NoaWxkcmVuL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NoaWxkcmVuLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "monkey-front-core";
|
|
4
|
-
export class MECXFilterSelectedItemCurrencyComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.option = null;
|
|
7
|
-
this._value = null;
|
|
8
|
-
}
|
|
9
|
-
onHandleSelectedValue({ value }) {
|
|
10
|
-
this._value = value;
|
|
11
|
-
}
|
|
12
|
-
ngOnChanges(changes) {
|
|
13
|
-
if (changes.option) {
|
|
14
|
-
const { currentValue } = changes.option;
|
|
15
|
-
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
16
|
-
this.onHandleSelectedValue(currentValue);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
MECXFilterSelectedItemCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
MECXFilterSelectedItemCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterSelectedItemCurrencyComponent, selector: "mecx-filter-selected-item-currency", inputs: { option: "option" }, usesOnChanges: true, ngImport: i0, template: "{{ _value | monkeyecxFormatCurrency }}", styles: [""], pipes: { "monkeyecxFormatCurrency": i1.MonkeyEcxFormatCurrencyPipe } });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemCurrencyComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{ selector: 'mecx-filter-selected-item-currency', template: "{{ _value | monkeyecxFormatCurrency }}", styles: [""] }]
|
|
26
|
-
}], propDecorators: { option: [{
|
|
27
|
-
type: Input
|
|
28
|
-
}] } });
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "monkey-front-core";
|
|
4
|
+
export class MECXFilterSelectedItemCurrencyComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.option = null;
|
|
7
|
+
this._value = null;
|
|
8
|
+
}
|
|
9
|
+
onHandleSelectedValue({ value }) {
|
|
10
|
+
this._value = value;
|
|
11
|
+
}
|
|
12
|
+
ngOnChanges(changes) {
|
|
13
|
+
if (changes.option) {
|
|
14
|
+
const { currentValue } = changes.option;
|
|
15
|
+
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
16
|
+
this.onHandleSelectedValue(currentValue);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
MECXFilterSelectedItemCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
MECXFilterSelectedItemCurrencyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXFilterSelectedItemCurrencyComponent, selector: "mecx-filter-selected-item-currency", inputs: { option: "option" }, usesOnChanges: true, ngImport: i0, template: "{{ _value | monkeyecxFormatCurrency }}", styles: [""], pipes: { "monkeyecxFormatCurrency": i1.MonkeyEcxFormatCurrencyPipe } });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemCurrencyComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'mecx-filter-selected-item-currency', template: "{{ _value | monkeyecxFormatCurrency }}", styles: [""] }]
|
|
26
|
+
}], propDecorators: { option: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}] } });
|
|
29
29
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC9maWx0ZXIvc2VsZWN0ZWQvaXRlbS9jdXJyZW5jeS9jdXJyZW5jeS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uL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
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './currency.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkL2ZpbHRlci9zZWxlY3RlZC9pdGVtL2N1cnJlbmN5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2N1cnJlbmN5LmNvbXBvbmVudCc7XG4iXX0=
|