monkey-front-components 0.0.568 → 0.0.570
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 +333 -333
- 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 +19 -19
- 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 +80 -80
- package/esm2020/lib/components/dynamic/select-search/index.mjs +2 -2
- package/esm2020/lib/components/dynamic/select-search/select-search.component.mjs +86 -86
- package/esm2020/lib/components/index.mjs +4 -4
- package/esm2020/lib/components/shared/filter/filter.component.mjs +142 -142
- 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 +29 -29
- 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 +33 -33
- 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 +28 -28
- 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 +39 -39
- 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 +2914 -2914
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +2892 -2892
- 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 +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 +40 -40
- 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 +54 -54
- package/lib/interfaces/index.d.ts +1 -1
- package/monkey-front-components-0.0.570.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.568.tgz +0 -0
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { Validators } from '@angular/forms';
|
|
3
|
-
import { MonkeyUtils } from 'monkey-style-guide';
|
|
4
|
-
import { BaseComponent } from './base-component';
|
|
5
|
-
import { validators } from './base-validators';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/forms";
|
|
8
|
-
export class BaseDynamic extends BaseComponent {
|
|
9
|
-
constructor(fb) {
|
|
10
|
-
super();
|
|
11
|
-
this.fb = fb;
|
|
12
|
-
this.onHandleSubmit = new EventEmitter();
|
|
13
|
-
this.onHandleUpdateForm = new EventEmitter();
|
|
14
|
-
this.onHandleSubmitFormReady = new EventEmitter();
|
|
15
|
-
this.fields = [];
|
|
16
|
-
this.disabled = false;
|
|
17
|
-
this.isLoading = false;
|
|
18
|
-
this._form = null;
|
|
19
|
-
}
|
|
20
|
-
createControl() {
|
|
21
|
-
const { fields } = this;
|
|
22
|
-
if (!fields)
|
|
23
|
-
return null;
|
|
24
|
-
// eslint-disable-next-line object-curly-newline
|
|
25
|
-
const group = this.fb.group({});
|
|
26
|
-
fields.forEach((field) => {
|
|
27
|
-
const { fieldType, validations, name, disabled } = field;
|
|
28
|
-
let { value } = field;
|
|
29
|
-
if (fieldType === 'button')
|
|
30
|
-
return;
|
|
31
|
-
if (fieldType === 'radiobutton' || fieldType === 'checkbox' || fieldType === 'select') {
|
|
32
|
-
value = '';
|
|
33
|
-
}
|
|
34
|
-
const control = this.fb.control(value, this.bindValidations(validations || []));
|
|
35
|
-
if (disabled || this.disabled)
|
|
36
|
-
control.disable();
|
|
37
|
-
group.addControl(name, control);
|
|
38
|
-
});
|
|
39
|
-
return group;
|
|
40
|
-
}
|
|
41
|
-
bindValidations(validations) {
|
|
42
|
-
if (validations.length > 0) {
|
|
43
|
-
const validList = [];
|
|
44
|
-
validations.forEach((valid) => {
|
|
45
|
-
const validated = valid.param
|
|
46
|
-
? validators[valid.name](valid.param)
|
|
47
|
-
: validators[valid.name];
|
|
48
|
-
validList.push(validated);
|
|
49
|
-
});
|
|
50
|
-
return Validators.compose(validList);
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
fillValues() {
|
|
55
|
-
const { data } = this;
|
|
56
|
-
if (!data || !this._form)
|
|
57
|
-
return;
|
|
58
|
-
Object.entries(data).forEach(([key, value]) => {
|
|
59
|
-
if (MonkeyUtils.persistNullEmptyUndefined(value) && this._form?.controls[key]) {
|
|
60
|
-
this._form?.controls[key]?.setValue(value);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
ngOnInit() {
|
|
65
|
-
this._form = this.createControl();
|
|
66
|
-
this.fillValues();
|
|
67
|
-
this.onHandleUpdateForm.subscribe(() => {
|
|
68
|
-
this.fillValues();
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
ngOnChanges() {
|
|
72
|
-
if (!this._form) {
|
|
73
|
-
this._form = this.createControl();
|
|
74
|
-
}
|
|
75
|
-
this.fillValues();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
BaseDynamic.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
79
|
-
BaseDynamic.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
81
|
-
type: Directive,
|
|
82
|
-
args: [{
|
|
83
|
-
selector: '[baseDynamic]'
|
|
84
|
-
}]
|
|
85
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { onHandleSubmit: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], onHandleUpdateForm: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], onHandleSubmitFormReady: [{
|
|
90
|
-
type: Output
|
|
91
|
-
}], self: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], fields: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], data: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], disabled: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], isLoading: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}] } });
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { Validators } from '@angular/forms';
|
|
3
|
+
import { MonkeyUtils } from 'monkey-style-guide';
|
|
4
|
+
import { BaseComponent } from './base-component';
|
|
5
|
+
import { validators } from './base-validators';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/forms";
|
|
8
|
+
export class BaseDynamic extends BaseComponent {
|
|
9
|
+
constructor(fb) {
|
|
10
|
+
super();
|
|
11
|
+
this.fb = fb;
|
|
12
|
+
this.onHandleSubmit = new EventEmitter();
|
|
13
|
+
this.onHandleUpdateForm = new EventEmitter();
|
|
14
|
+
this.onHandleSubmitFormReady = new EventEmitter();
|
|
15
|
+
this.fields = [];
|
|
16
|
+
this.disabled = false;
|
|
17
|
+
this.isLoading = false;
|
|
18
|
+
this._form = null;
|
|
19
|
+
}
|
|
20
|
+
createControl() {
|
|
21
|
+
const { fields } = this;
|
|
22
|
+
if (!fields)
|
|
23
|
+
return null;
|
|
24
|
+
// eslint-disable-next-line object-curly-newline
|
|
25
|
+
const group = this.fb.group({});
|
|
26
|
+
fields.forEach((field) => {
|
|
27
|
+
const { fieldType, validations, name, disabled } = field;
|
|
28
|
+
let { value } = field;
|
|
29
|
+
if (fieldType === 'button')
|
|
30
|
+
return;
|
|
31
|
+
if (fieldType === 'radiobutton' || fieldType === 'checkbox' || fieldType === 'select') {
|
|
32
|
+
value = '';
|
|
33
|
+
}
|
|
34
|
+
const control = this.fb.control(value, this.bindValidations(validations || []));
|
|
35
|
+
if (disabled || this.disabled)
|
|
36
|
+
control.disable();
|
|
37
|
+
group.addControl(name, control);
|
|
38
|
+
});
|
|
39
|
+
return group;
|
|
40
|
+
}
|
|
41
|
+
bindValidations(validations) {
|
|
42
|
+
if (validations.length > 0) {
|
|
43
|
+
const validList = [];
|
|
44
|
+
validations.forEach((valid) => {
|
|
45
|
+
const validated = valid.param
|
|
46
|
+
? validators[valid.name](valid.param)
|
|
47
|
+
: validators[valid.name];
|
|
48
|
+
validList.push(validated);
|
|
49
|
+
});
|
|
50
|
+
return Validators.compose(validList);
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
fillValues() {
|
|
55
|
+
const { data } = this;
|
|
56
|
+
if (!data || !this._form)
|
|
57
|
+
return;
|
|
58
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
59
|
+
if (MonkeyUtils.persistNullEmptyUndefined(value) && this._form?.controls[key]) {
|
|
60
|
+
this._form?.controls[key]?.setValue(value);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
ngOnInit() {
|
|
65
|
+
this._form = this.createControl();
|
|
66
|
+
this.fillValues();
|
|
67
|
+
this.onHandleUpdateForm.subscribe(() => {
|
|
68
|
+
this.fillValues();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
ngOnChanges() {
|
|
72
|
+
if (!this._form) {
|
|
73
|
+
this._form = this.createControl();
|
|
74
|
+
}
|
|
75
|
+
this.fillValues();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
BaseDynamic.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseDynamic, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Directive });
|
|
79
|
+
BaseDynamic.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaseDynamic, selector: "[baseDynamic]", inputs: { onHandleSubmit: "onHandleSubmit", onHandleUpdateForm: "onHandleUpdateForm", self: "self", fields: "fields", data: "data", disabled: "disabled", isLoading: "isLoading" }, outputs: { onHandleSubmitFormReady: "onHandleSubmitFormReady" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseDynamic, decorators: [{
|
|
81
|
+
type: Directive,
|
|
82
|
+
args: [{
|
|
83
|
+
selector: '[baseDynamic]'
|
|
84
|
+
}]
|
|
85
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { onHandleSubmit: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], onHandleUpdateForm: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], onHandleSubmitFormReady: [{
|
|
90
|
+
type: Output
|
|
91
|
+
}], self: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], fields: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], data: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], disabled: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], isLoading: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}] } });
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1keW5hbWljLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2Jhc2UvYmFzZS1keW5hbWljLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBcUIsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFGLE9BQU8sRUFBMEIsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRWpELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7OztBQUsvQyxNQUFNLE9BQWdCLFdBQVksU0FBUSxhQUFhO0lBbUJyRCxZQUFvQixFQUFlO1FBQ2pDLEtBQUssRUFBRSxDQUFDO1FBRFUsT0FBRSxHQUFGLEVBQUUsQ0FBYTtRQWxCMUIsb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c3QgeyBkYXRhIH0gPSB0aGlzO1xyXG4gICAgaWYgKCFkYXRhIHx8ICF0aGlzLl9mb3JtKSByZXR1cm47XHJcbiAgICBPYmplY3QuZW50cmllcyhkYXRhKS5mb3JFYWNoKChba2V5LCB2YWx1ZV0pID0+IHtcclxuICAgICAgaWYgKE1vbmtleVV0aWxzLnBlcnNpc3ROdWxsRW1wdHlVbmRlZmluZWQodmFsdWUpICYmIHRoaXMuX2Zvcm0/LmNvbnRyb2xzW2tleV0pIHtcclxuICAgICAgICB0aGlzLl9mb3JtPy5jb250cm9sc1trZXldPy5zZXRWYWx1ZSh2YWx1ZSk7XHJcbiAgICAgIH1cclxuICAgIH0pO1xyXG4gIH1cclxuXHJcbiAgbmdPbkluaXQoKSB7XHJcbiAgICB0aGlzLl9mb3JtID0gdGhpcy5jcmVhdGVDb250cm9sKCk7XHJcbiAgICB0aGlzLmZpbGxWYWx1ZXMoKTtcclxuXHJcbiAgICB0aGlzLm9uSGFuZGxlVXBkYXRlRm9ybS5zdWJzY3JpYmUoKCkgPT4ge1xyXG4gICAgICB0aGlzLmZpbGxWYWx1ZXMoKTtcclxuICAgIH0pO1xyXG4gIH1cclxuXHJcbiAgbmdPbkNoYW5nZXMoKSB7XHJcbiAgICBpZiAoIXRoaXMuX2Zvcm0pIHtcclxuICAgICAgdGhpcy5fZm9ybSA9IHRoaXMuY3JlYXRlQ29udHJvbCgpO1xyXG4gICAgfVxyXG4gICAgdGhpcy5maWxsVmFsdWVzKCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
-
import { Directive } from '@angular/core';
|
|
3
|
-
import { NavigationEnd, NavigationStart } from '@angular/router';
|
|
4
|
-
import { BaseComponent } from './base-component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/router";
|
|
7
|
-
export class BaseScrollComponent extends BaseComponent {
|
|
8
|
-
constructor(_pId, _rt) {
|
|
9
|
-
super();
|
|
10
|
-
this._pId = _pId;
|
|
11
|
-
this._rt = _rt;
|
|
12
|
-
this.routeScrollPositions = {};
|
|
13
|
-
}
|
|
14
|
-
saveScroll(url) {
|
|
15
|
-
const element = document.getElementById('container-3');
|
|
16
|
-
this.routeScrollPositions[url] = element.scrollTop;
|
|
17
|
-
}
|
|
18
|
-
restoreScroll(url) {
|
|
19
|
-
const savedScroll = this.routeScrollPositions[url];
|
|
20
|
-
const element = document.getElementById('container-3');
|
|
21
|
-
if (!savedScroll) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
element.scrollTop = savedScroll;
|
|
25
|
-
}
|
|
26
|
-
addScrollTopListeners() {
|
|
27
|
-
if ('scrollRestoration' in history) {
|
|
28
|
-
history.scrollRestoration = 'manual';
|
|
29
|
-
}
|
|
30
|
-
this._rt.events.subscribe(event => {
|
|
31
|
-
if (event instanceof NavigationStart) {
|
|
32
|
-
this.saveScroll(this._rt.url);
|
|
33
|
-
}
|
|
34
|
-
else if (event instanceof NavigationEnd) {
|
|
35
|
-
setTimeout(() => {
|
|
36
|
-
this.restoreScroll(event.url);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
ngOnInit() {
|
|
42
|
-
if (isPlatformBrowser(this._pId)) {
|
|
43
|
-
this.addScrollTopListeners();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
BaseScrollComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
48
|
-
BaseScrollComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
50
|
-
type: Directive,
|
|
51
|
-
args: [{
|
|
52
|
-
selector: '[baseScrollComponent]'
|
|
53
|
-
}]
|
|
54
|
-
}], ctorParameters: function () { return [{ type: Object }, { type: i1.Router }]; } });
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
+
import { Directive } from '@angular/core';
|
|
3
|
+
import { NavigationEnd, NavigationStart } from '@angular/router';
|
|
4
|
+
import { BaseComponent } from './base-component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/router";
|
|
7
|
+
export class BaseScrollComponent extends BaseComponent {
|
|
8
|
+
constructor(_pId, _rt) {
|
|
9
|
+
super();
|
|
10
|
+
this._pId = _pId;
|
|
11
|
+
this._rt = _rt;
|
|
12
|
+
this.routeScrollPositions = {};
|
|
13
|
+
}
|
|
14
|
+
saveScroll(url) {
|
|
15
|
+
const element = document.getElementById('container-3');
|
|
16
|
+
this.routeScrollPositions[url] = element.scrollTop;
|
|
17
|
+
}
|
|
18
|
+
restoreScroll(url) {
|
|
19
|
+
const savedScroll = this.routeScrollPositions[url];
|
|
20
|
+
const element = document.getElementById('container-3');
|
|
21
|
+
if (!savedScroll) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
element.scrollTop = savedScroll;
|
|
25
|
+
}
|
|
26
|
+
addScrollTopListeners() {
|
|
27
|
+
if ('scrollRestoration' in history) {
|
|
28
|
+
history.scrollRestoration = 'manual';
|
|
29
|
+
}
|
|
30
|
+
this._rt.events.subscribe(event => {
|
|
31
|
+
if (event instanceof NavigationStart) {
|
|
32
|
+
this.saveScroll(this._rt.url);
|
|
33
|
+
}
|
|
34
|
+
else if (event instanceof NavigationEnd) {
|
|
35
|
+
setTimeout(() => {
|
|
36
|
+
this.restoreScroll(event.url);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
ngOnInit() {
|
|
42
|
+
if (isPlatformBrowser(this._pId)) {
|
|
43
|
+
this.addScrollTopListeners();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
BaseScrollComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseScrollComponent, deps: [{ token: Object }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Directive });
|
|
48
|
+
BaseScrollComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaseScrollComponent, selector: "[baseScrollComponent]", usesInheritance: true, ngImport: i0 });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseScrollComponent, decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: '[baseScrollComponent]'
|
|
53
|
+
}]
|
|
54
|
+
}], ctorParameters: function () { return [{ type: Object }, { type: i1.Router }]; } });
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1zY3JvbGwtY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2Jhc2UvYmFzZS1zY3JvbGwtY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3BELE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLGFBQWEsRUFBRSxlQUFlLEVBQVUsTUFBTSxpQkFBaUIsQ0FBQztBQUN6RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7OztBQUtqRCxNQUFNLE9BQWdCLG1CQUFvQixTQUFRLGFBQWE7SUFHN0QsWUFBb0IsSUFB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XJ0KSB7XHJcbiAgICAgICAgdGhpcy5zYXZlU2Nyb2xsKHRoaXMuX3J0LnVybCk7XHJcbiAgICAgIH0gZWxzZSBpZiAoZXZlbnQgaW5zdGFuY2VvZiBOYXZpZ2F0aW9uRW5kKSB7XHJcbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XHJcbiAgICAgICAgICB0aGlzLnJlc3RvcmVTY3JvbGwoZXZlbnQudXJsKTtcclxuICAgICAgICB9KTtcclxuICAgICAgfVxyXG4gICAgfSk7XHJcbiAgfVxyXG5cclxuICBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICAgIGlmIChpc1BsYXRmb3JtQnJvd3Nlcih0aGlzLl9wSWQpKSB7XHJcbiAgICAgIHRoaXMuYWRkU2Nyb2xsVG9wTGlzdGVuZXJzKCk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Validators as Validators_ } from '@angular/forms';
|
|
2
|
-
import { Validators } from 'monkey-front-core';
|
|
3
|
-
export const validators = {
|
|
4
|
-
required: Validators_.required,
|
|
5
|
-
email: Validators.email,
|
|
6
|
-
governmentId: Validators.documentBR,
|
|
7
|
-
governmentIdRut: Validators.documentCL,
|
|
8
|
-
documentBR: Validators.documentBR,
|
|
9
|
-
documentCL: Validators.documentCL,
|
|
10
|
-
date: Validators.date,
|
|
11
|
-
zipCode: Validators.zipCode,
|
|
12
|
-
minLength: (param) => {
|
|
13
|
-
return Validators_.minLength(param);
|
|
14
|
-
},
|
|
15
|
-
maxLength: (param) => {
|
|
16
|
-
return Validators_.maxLength(param);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Validators as Validators_ } from '@angular/forms';
|
|
2
|
+
import { Validators } from 'monkey-front-core';
|
|
3
|
+
export const validators = {
|
|
4
|
+
required: Validators_.required,
|
|
5
|
+
email: Validators.email,
|
|
6
|
+
governmentId: Validators.documentBR,
|
|
7
|
+
governmentIdRut: Validators.documentCL,
|
|
8
|
+
documentBR: Validators.documentBR,
|
|
9
|
+
documentCL: Validators.documentCL,
|
|
10
|
+
date: Validators.date,
|
|
11
|
+
zipCode: Validators.zipCode,
|
|
12
|
+
minLength: (param) => {
|
|
13
|
+
return Validators_.minLength(param);
|
|
14
|
+
},
|
|
15
|
+
maxLength: (param) => {
|
|
16
|
+
return Validators_.maxLength(param);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS12YWxpZGF0b3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2Jhc2UvYmFzZS12YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLElBQUksV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDM0QsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRS9DLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBUTtJQUM3QixRQUFRLEVBQUUsV0FBVyxDQUFDLFFBQVE7SUFDOUIsS0FBSyxFQUFFLFVBQVUsQ0FBQyxLQUFLO0lBQ3ZCLFlBQVksRUFBRSxVQUFVLENBQUMsVUFBVTtJQUNuQyxlQUFlLEVBQUUsVUFBVSxDQUFDLFVBQVU7SUFDdEMsVUFBVSxFQUFFLFVBQVUsQ0FBQyxVQUFVO0lBQ2pDLFVBQVUsRUFBRSxVQUFVLENBQUMsVUFBVTtJQUNqQyxJQUFJLEVBQUUsVUFBVSxDQUFDLElBQUk7SUFDckIsT0FBTyxFQUFFLFVBQVUsQ0FBQyxPQUFP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HVybiBWYWxpZGF0b3JzXy5tYXhMZW5ndGgocGFyYW0pO1xyXG4gIH1cclxufTtcclxuIl19
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './base-component';
|
|
2
|
-
export * from './base-dynamic-array';
|
|
3
|
-
export * from './base-dynamic';
|
|
4
|
-
export * from './base-scroll-component';
|
|
5
|
-
export * from './base-validators';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './base-component';
|
|
2
|
+
export * from './base-dynamic-array';
|
|
3
|
+
export * from './base-dynamic';
|
|
4
|
+
export * from './base-scroll-component';
|
|
5
|
+
export * from './base-validators';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvYmFzZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Jhc2UtY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWR5bmFtaWMtYXJyYXknO1xyXG5leHBvcnQgKiBmcm9tICcuL2Jhc2UtZHluYW1pYyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1zY3JvbGwtY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9iYXNlLXZhbGlkYXRvcnMnO1xyXG4iXX0=
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "monkey-style-guide";
|
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
|
5
|
-
export class MECXDynamicButtonComponent {
|
|
6
|
-
constructor(cdr) {
|
|
7
|
-
this.cdr = cdr;
|
|
8
|
-
this._field = null;
|
|
9
|
-
this._form = null;
|
|
10
|
-
// eslint-disable-next-line object-curly-newline
|
|
11
|
-
this._formErrors = {};
|
|
12
|
-
// not to do
|
|
13
|
-
}
|
|
14
|
-
get className() {
|
|
15
|
-
return this._field?.style?.class;
|
|
16
|
-
}
|
|
17
|
-
ngOnChanges() {
|
|
18
|
-
this.cdr.detectChanges();
|
|
19
|
-
}
|
|
20
|
-
onClick() {
|
|
21
|
-
const { _form, _field, self } = this;
|
|
22
|
-
if (_form?.disabled || !_field)
|
|
23
|
-
return;
|
|
24
|
-
const { name, value } = _field;
|
|
25
|
-
const func = _field?.functions?.onClick;
|
|
26
|
-
if (func) {
|
|
27
|
-
self[func]({
|
|
28
|
-
name,
|
|
29
|
-
value,
|
|
30
|
-
form: _form
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
MECXDynamicButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
36
|
-
MECXDynamicButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{ selector: 'mecx-dynamic-button', encapsulation: ViewEncapsulation.None, template: "<monkey-button [icon]=\"_field?.icon\" [type]=\"_field?.type\" [color]=\"_field?.color\"\n (click)=\"onClick()\">\n {{ _field?.label | translate }}\n</monkey-button>", styles: ["mecx-dynamic-button monkey-button button{height:40px}\n"] }]
|
|
40
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _field: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], _form: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}], _formErrors: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}], self: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], className: [{
|
|
49
|
-
type: HostBinding,
|
|
50
|
-
args: ['class']
|
|
51
|
-
}] } });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "monkey-style-guide";
|
|
4
|
+
import * as i2 from "@ngx-translate/core";
|
|
5
|
+
export class MECXDynamicButtonComponent {
|
|
6
|
+
constructor(cdr) {
|
|
7
|
+
this.cdr = cdr;
|
|
8
|
+
this._field = null;
|
|
9
|
+
this._form = null;
|
|
10
|
+
// eslint-disable-next-line object-curly-newline
|
|
11
|
+
this._formErrors = {};
|
|
12
|
+
// not to do
|
|
13
|
+
}
|
|
14
|
+
get className() {
|
|
15
|
+
return this._field?.style?.class;
|
|
16
|
+
}
|
|
17
|
+
ngOnChanges() {
|
|
18
|
+
this.cdr.detectChanges();
|
|
19
|
+
}
|
|
20
|
+
onClick() {
|
|
21
|
+
const { _form, _field, self } = this;
|
|
22
|
+
if (_form?.disabled || !_field)
|
|
23
|
+
return;
|
|
24
|
+
const { name, value } = _field;
|
|
25
|
+
const func = _field?.functions?.onClick;
|
|
26
|
+
if (func) {
|
|
27
|
+
self[func]({
|
|
28
|
+
name,
|
|
29
|
+
value,
|
|
30
|
+
form: _form
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
MECXDynamicButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicButtonComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
MECXDynamicButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicButtonComponent, selector: "mecx-dynamic-button", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors", self: "self" }, host: { properties: { "class": "this.className" } }, usesOnChanges: true, ngImport: i0, template: "<monkey-button [icon]=\"_field?.icon\" [type]=\"_field?.type\" [color]=\"_field?.color\"\r\n (click)=\"onClick()\">\r\n {{ _field?.label | translate }}\r\n</monkey-button>", styles: ["mecx-dynamic-button monkey-button button{height:40px}\n"], components: [{ type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], pipes: { "translate": i2.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicButtonComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{ selector: 'mecx-dynamic-button', encapsulation: ViewEncapsulation.None, template: "<monkey-button [icon]=\"_field?.icon\" [type]=\"_field?.type\" [color]=\"_field?.color\"\r\n (click)=\"onClick()\">\r\n {{ _field?.label | translate }}\r\n</monkey-button>", styles: ["mecx-dynamic-button monkey-button button{height:40px}\n"] }]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _field: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}], _form: [{
|
|
43
|
+
type: Input
|
|
44
|
+
}], _formErrors: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], self: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], className: [{
|
|
49
|
+
type: HostBinding,
|
|
50
|
+
args: ['class']
|
|
51
|
+
}] } });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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Y29uc3QgZnVuYyA9IF9maWVsZD8uZnVuY3Rpb25zPy5vbkNsaWNrO1xyXG4gICAgaWYgKGZ1bmMpIHtcclxuICAgICAgc2VsZltmdW5jXSh7XHJcbiAgICAgICAgbmFtZSxcclxuICAgICAgICB2YWx1ZSxcclxuICAgICAgICBmb3JtOiBfZm9ybVxyXG4gICAgICB9KTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIiwiPG1vbmtleS1idXR0b24gW2ljb25dPVwiX2ZpZWxkPy5pY29uXCIgW3R5cGVdPVwiX2ZpZWxkPy50eXBlXCIgW2NvbG9yXT1cIl9maWVsZD8uY29sb3JcIlxyXG4gIChjbGljayk9XCJvbkNsaWNrKClcIj5cclxuICB7eyBfZmllbGQ/LmxhYmVsIHwgdHJhbnNsYXRlIH19XHJcbjwvbW9ua2V5LWJ1dHRvbj4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './button.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './button.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy9idXR0b24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYnV0dG9uLmNvbXBvbmVudCc7XHJcbiJdfQ==
|