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,65 +1,65 @@
|
|
|
1
|
-
import { Component, HostBinding, Input, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "monkey-style-guide";
|
|
4
|
-
import * as i2 from "@angular/forms";
|
|
5
|
-
import * as i3 from "@ngx-translate/core";
|
|
6
|
-
export class MECXDynamicInputPhoneComponent {
|
|
7
|
-
constructor(cdr) {
|
|
8
|
-
this.cdr = cdr;
|
|
9
|
-
this._field = null;
|
|
10
|
-
this._form = null;
|
|
11
|
-
// eslint-disable-next-line object-curly-newline
|
|
12
|
-
this._formErrors = {};
|
|
13
|
-
this.inputElement = null;
|
|
14
|
-
// not to do
|
|
15
|
-
}
|
|
16
|
-
get className() {
|
|
17
|
-
return this._field?.style?.class;
|
|
18
|
-
}
|
|
19
|
-
ngOnInit() {
|
|
20
|
-
this.cdr.detectChanges();
|
|
21
|
-
}
|
|
22
|
-
ngOnChanges() {
|
|
23
|
-
this.cdr.detectChanges();
|
|
24
|
-
}
|
|
25
|
-
onChange(event) {
|
|
26
|
-
const { _form, _field, self } = this;
|
|
27
|
-
if (!_field || !_form)
|
|
28
|
-
return;
|
|
29
|
-
const { name } = _field;
|
|
30
|
-
const func = _field?.functions?.onChange;
|
|
31
|
-
const isValid = _form?.get(_field?.name)?.valid;
|
|
32
|
-
if (func) {
|
|
33
|
-
self[func]({
|
|
34
|
-
name,
|
|
35
|
-
isValid,
|
|
36
|
-
event,
|
|
37
|
-
ctrl: _form.get(this._field?.name),
|
|
38
|
-
form: _form
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
MECXDynamicInputPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicInputPhoneComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
MECXDynamicInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicInputPhoneComponent, selector: "mecx-dynamic-input-phone", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors", self: "self" }, host: { properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<monkey-input-phone [name]=\"_field?.name\" [label]=\"_field?.label | translate\"\
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicInputPhoneComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{ selector: 'mecx-dynamic-input-phone', encapsulation: ViewEncapsulation.None, template: "<monkey-input-phone [name]=\"_field?.name\" [label]=\"_field?.label | translate\"\
|
|
48
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _field: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}], _form: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], _formErrors: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}], self: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}], inputElement: [{
|
|
57
|
-
type: ViewChild,
|
|
58
|
-
args: ['inputElement', {
|
|
59
|
-
static: true
|
|
60
|
-
}]
|
|
61
|
-
}], className: [{
|
|
62
|
-
type: HostBinding,
|
|
63
|
-
args: ['class']
|
|
64
|
-
}] } });
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, HostBinding, Input, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "monkey-style-guide";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "@ngx-translate/core";
|
|
6
|
+
export class MECXDynamicInputPhoneComponent {
|
|
7
|
+
constructor(cdr) {
|
|
8
|
+
this.cdr = cdr;
|
|
9
|
+
this._field = null;
|
|
10
|
+
this._form = null;
|
|
11
|
+
// eslint-disable-next-line object-curly-newline
|
|
12
|
+
this._formErrors = {};
|
|
13
|
+
this.inputElement = null;
|
|
14
|
+
// not to do
|
|
15
|
+
}
|
|
16
|
+
get className() {
|
|
17
|
+
return this._field?.style?.class;
|
|
18
|
+
}
|
|
19
|
+
ngOnInit() {
|
|
20
|
+
this.cdr.detectChanges();
|
|
21
|
+
}
|
|
22
|
+
ngOnChanges() {
|
|
23
|
+
this.cdr.detectChanges();
|
|
24
|
+
}
|
|
25
|
+
onChange(event) {
|
|
26
|
+
const { _form, _field, self } = this;
|
|
27
|
+
if (!_field || !_form)
|
|
28
|
+
return;
|
|
29
|
+
const { name } = _field;
|
|
30
|
+
const func = _field?.functions?.onChange;
|
|
31
|
+
const isValid = _form?.get(_field?.name)?.valid;
|
|
32
|
+
if (func) {
|
|
33
|
+
self[func]({
|
|
34
|
+
name,
|
|
35
|
+
isValid,
|
|
36
|
+
event,
|
|
37
|
+
ctrl: _form.get(this._field?.name),
|
|
38
|
+
form: _form
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
MECXDynamicInputPhoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicInputPhoneComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
MECXDynamicInputPhoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicInputPhoneComponent, selector: "mecx-dynamic-input-phone", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors", self: "self" }, host: { properties: { "class": "this.className" } }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<monkey-input-phone [name]=\"_field?.name\" [label]=\"_field?.label | translate\"\n [helperMessage]=\"_field?.helperMessage | translate\"\n [placeholder]=\"_field?.placeholder | translate\" [icon]=\"_field?.icon\"\n (onChange)=\"onChange($event)\" [internationalNumber]=\"_field?.internationalNumber\"\n errorMessage=\"{{ _formErrors[_field?.name]?.firstMessage | translate }} {{ _formErrors[_field?.name]?.lastMessage }}\"\n [maxLength]=\"_field?.maxLength\" [formControl]=\"_form.controls[_field?.name]\" #inputElement>\n</monkey-input-phone>", components: [{ type: i1.MonkeyInputPhoneComponent, selector: "monkey-input-phone", inputs: ["name", "label", "helperMessage", "placeholder", "icon", "infoMessage", "errorMessage", "maxLength", "internationalNumber", "value"], outputs: ["onChange"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i3.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicInputPhoneComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ selector: 'mecx-dynamic-input-phone', encapsulation: ViewEncapsulation.None, template: "<monkey-input-phone [name]=\"_field?.name\" [label]=\"_field?.label | translate\"\n [helperMessage]=\"_field?.helperMessage | translate\"\n [placeholder]=\"_field?.placeholder | translate\" [icon]=\"_field?.icon\"\n (onChange)=\"onChange($event)\" [internationalNumber]=\"_field?.internationalNumber\"\n errorMessage=\"{{ _formErrors[_field?.name]?.firstMessage | translate }} {{ _formErrors[_field?.name]?.lastMessage }}\"\n [maxLength]=\"_field?.maxLength\" [formControl]=\"_form.controls[_field?.name]\" #inputElement>\n</monkey-input-phone>" }]
|
|
48
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _field: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], _form: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], _formErrors: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], self: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], inputElement: [{
|
|
57
|
+
type: ViewChild,
|
|
58
|
+
args: ['inputElement', {
|
|
59
|
+
static: true
|
|
60
|
+
}]
|
|
61
|
+
}], className: [{
|
|
62
|
+
type: HostBinding,
|
|
63
|
+
args: ['class']
|
|
64
|
+
}] } });
|
|
65
|
+
//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AgICAgICBmb3JtOiBfZm9ybVxuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iLCI8bW9ua2V5LWlucHV0LXBob25lIFtuYW1lXT1cIl9maWVsZD8ubmFtZVwiIFtsYWJlbF09XCJfZmllbGQ/LmxhYmVsIHwgdHJhbnNsYXRlXCJcbiAgW2hlbHBlck1lc3NhZ2VdPVwiX2ZpZWxkPy5oZWxwZXJNZXNzYWdlIHwgdHJhbnNsYXRlXCJcbiAgW3BsYWNlaG9sZGVyXT1cIl9maWVsZD8ucGxhY2Vob2xkZXIgfCB0cmFuc2xhdGVcIiBbaWNvbl09XCJfZmllbGQ/Lmljb25cIlxuICAob25DaGFuZ2UpPVwib25DaGFuZ2UoJGV2ZW50KVwiIFtpbnRlcm5hdGlvbmFsTnVtYmVyXT1cIl9maWVsZD8uaW50ZXJuYXRpb25hbE51bWJlclwiXG4gIGVycm9yTWVzc2FnZT1cInt7IF9mb3JtRXJyb3JzW19maWVsZD8ubmFtZV0/LmZpcnN0TWVzc2FnZSB8IHRyYW5zbGF0ZSB9fSB7eyBfZm9ybUVycm9yc1tfZmllbGQ/Lm5hbWVdPy5sYXN0TWVzc2FnZSB9fVwiXG4gIFttYXhMZW5ndGhdPVwiX2ZpZWxkPy5tYXhMZW5ndGhcIiBbZm9ybUNvbnRyb2xdPVwiX2Zvcm0uY29udHJvbHNbX2ZpZWxkPy5uYW1lXVwiICNpbnB1dEVsZW1lbnQ+XG48L21vbmtleS1pbnB1dC1waG9uZT4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './radio.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './radio.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy9yYWRpby9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yYWRpby5jb21wb25lbnQnO1xuIl19
|
|
@@ -1,33 +1,33 @@
|
|
|
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 "@angular/forms";
|
|
5
|
-
import * as i3 from "@angular/common";
|
|
6
|
-
import * as i4 from "@ngx-translate/core";
|
|
7
|
-
export class MECXDynamicRadioComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this._field = null;
|
|
10
|
-
this._form = null;
|
|
11
|
-
// eslint-disable-next-line object-curly-newline
|
|
12
|
-
this._formErrors = {};
|
|
13
|
-
}
|
|
14
|
-
get className() {
|
|
15
|
-
return this._field?.style?.class;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
MECXDynamicRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
MECXDynamicRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicRadioComponent, selector: "mecx-dynamic-radio", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<monkey-radiobutton\
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicRadioComponent, decorators: [{
|
|
21
|
-
type: Component,
|
|
22
|
-
args: [{ selector: 'mecx-dynamic-radio', encapsulation: ViewEncapsulation.None, template: "<monkey-radiobutton\
|
|
23
|
-
}], propDecorators: { _field: [{
|
|
24
|
-
type: Input
|
|
25
|
-
}], _form: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], _formErrors: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], className: [{
|
|
30
|
-
type: HostBinding,
|
|
31
|
-
args: ['class']
|
|
32
|
-
}] } });
|
|
33
|
-
//# 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 "@angular/forms";
|
|
5
|
+
import * as i3 from "@angular/common";
|
|
6
|
+
import * as i4 from "@ngx-translate/core";
|
|
7
|
+
export class MECXDynamicRadioComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._field = null;
|
|
10
|
+
this._form = null;
|
|
11
|
+
// eslint-disable-next-line object-curly-newline
|
|
12
|
+
this._formErrors = {};
|
|
13
|
+
}
|
|
14
|
+
get className() {
|
|
15
|
+
return this._field?.style?.class;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
MECXDynamicRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
MECXDynamicRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicRadioComponent, selector: "mecx-dynamic-radio", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<monkey-radiobutton\n errorMessage=\"{{ _formErrors[_field?.name]?.firstMessage | translate }} {{ _formErrors[_field?.name]?.lastMessage }}\"\n [formControl]=\"_form.controls[_field?.name]\" [helperMessage]=\"_field?.helperMessage | translate\"\n [label]=\"_field?.label | translate\">\n <monkey-option *ngFor=\"let value of _field?.value\" [label]=\"value.description | translate\"\n [value]=\"value.value\">\n </monkey-option>\n</monkey-radiobutton>", 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i4.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicRadioComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'mecx-dynamic-radio', encapsulation: ViewEncapsulation.None, template: "<monkey-radiobutton\n errorMessage=\"{{ _formErrors[_field?.name]?.firstMessage | translate }} {{ _formErrors[_field?.name]?.lastMessage }}\"\n [formControl]=\"_form.controls[_field?.name]\" [helperMessage]=\"_field?.helperMessage | translate\"\n [label]=\"_field?.label | translate\">\n <monkey-option *ngFor=\"let value of _field?.value\" [label]=\"value.description | translate\"\n [value]=\"value.value\">\n </monkey-option>\n</monkey-radiobutton>" }]
|
|
23
|
+
}], propDecorators: { _field: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], _form: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], _formErrors: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], className: [{
|
|
30
|
+
type: HostBinding,
|
|
31
|
+
args: ['class']
|
|
32
|
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m9yc1tfZmllbGQ/Lm5hbWVdPy5sYXN0TWVzc2FnZSB9fVwiXG4gIFtmb3JtQ29udHJvbF09XCJfZm9ybS5jb250cm9sc1tfZmllbGQ/Lm5hbWVdXCIgW2hlbHBlck1lc3NhZ2VdPVwiX2ZpZWxkPy5oZWxwZXJNZXNzYWdlIHwgdHJhbnNsYXRlXCJcbiAgW2xhYmVsXT1cIl9maWVsZD8ubGFiZWwgfCB0cmFuc2xhdGVcIj5cbiAgPG1vbmtleS1vcHRpb24gKm5nRm9yPVwibGV0IHZhbHVlIG9mIF9maWVsZD8udmFsdWVcIiBbbGFiZWxdPVwidmFsdWUuZGVzY3JpcHRpb24gfCB0cmFuc2xhdGVcIlxuICAgIFt2YWx1ZV09XCJ2YWx1ZS52YWx1ZVwiPlxuICA8L21vbmtleS1vcHRpb24+XG48L21vbmtleS1yYWRpb2J1dHRvbj4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './select.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './select.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy9zZWxlY3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2VsZWN0LmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { Component, HostBinding, Input, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "monkey-style-guide";
|
|
4
|
-
import * as i2 from "@angular/forms";
|
|
5
|
-
import * as i3 from "@angular/common";
|
|
6
|
-
import * as i4 from "@ngx-translate/core";
|
|
7
|
-
export class MECXDynamicSelectComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this._field = null;
|
|
10
|
-
this._form = null;
|
|
11
|
-
// eslint-disable-next-line object-curly-newline
|
|
12
|
-
this._formErrors = {};
|
|
13
|
-
this._onHandleOptions = new EventEmitter();
|
|
14
|
-
}
|
|
15
|
-
get className() {
|
|
16
|
-
return this._field?.style?.class;
|
|
17
|
-
}
|
|
18
|
-
ngOnInit() {
|
|
19
|
-
if (this._field && this._field?.startValues) {
|
|
20
|
-
this.onHandleGenericLoad();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
onHandleGenericLoad() {
|
|
24
|
-
const { _form, _field, self } = this;
|
|
25
|
-
if (_form?.disabled || !_field || !_field?.functions?.onHandleGenericLoad)
|
|
26
|
-
return;
|
|
27
|
-
const { name } = _field;
|
|
28
|
-
if (_field?.value?.length)
|
|
29
|
-
return;
|
|
30
|
-
const { func, url } = _field?.functions?.onHandleGenericLoad;
|
|
31
|
-
if (!func || !self[func]) {
|
|
32
|
-
console.error('onHandleGenericLoad not declared');
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
_form?.disable();
|
|
36
|
-
self[func]({
|
|
37
|
-
name,
|
|
38
|
-
url,
|
|
39
|
-
form: _form,
|
|
40
|
-
callback: (data) => {
|
|
41
|
-
if (this._field) {
|
|
42
|
-
this._field.value = data;
|
|
43
|
-
}
|
|
44
|
-
this._form?.enable();
|
|
45
|
-
this._onHandleOptions.next(null);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
onChange(event) {
|
|
50
|
-
const { _form, _field, self } = this;
|
|
51
|
-
if (!_field || !_form)
|
|
52
|
-
return;
|
|
53
|
-
const { name } = _field;
|
|
54
|
-
const func = _field?.functions?.onChange;
|
|
55
|
-
const isValid = _form?.get(_field.name)?.valid;
|
|
56
|
-
if (func) {
|
|
57
|
-
self[func]({
|
|
58
|
-
name,
|
|
59
|
-
isValid,
|
|
60
|
-
event,
|
|
61
|
-
ctrl: _form?.get(this._field?.name),
|
|
62
|
-
form: _form,
|
|
63
|
-
value: _field.value
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
MECXDynamicSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
-
MECXDynamicSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicSelectComponent, selector: "mecx-dynamic-select", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors", self: "self" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<monkey-select\
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicSelectComponent, decorators: [{
|
|
71
|
-
type: Component,
|
|
72
|
-
args: [{ selector: 'mecx-dynamic-select', encapsulation: ViewEncapsulation.None, template: "<monkey-select\
|
|
73
|
-
}], propDecorators: { _field: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], _form: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}], _formErrors: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], self: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], className: [{
|
|
82
|
-
type: HostBinding,
|
|
83
|
-
args: ['class']
|
|
84
|
-
}] } });
|
|
85
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, HostBinding, Input, EventEmitter, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "monkey-style-guide";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "@angular/common";
|
|
6
|
+
import * as i4 from "@ngx-translate/core";
|
|
7
|
+
export class MECXDynamicSelectComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._field = null;
|
|
10
|
+
this._form = null;
|
|
11
|
+
// eslint-disable-next-line object-curly-newline
|
|
12
|
+
this._formErrors = {};
|
|
13
|
+
this._onHandleOptions = new EventEmitter();
|
|
14
|
+
}
|
|
15
|
+
get className() {
|
|
16
|
+
return this._field?.style?.class;
|
|
17
|
+
}
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
if (this._field && this._field?.startValues) {
|
|
20
|
+
this.onHandleGenericLoad();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
onHandleGenericLoad() {
|
|
24
|
+
const { _form, _field, self } = this;
|
|
25
|
+
if (_form?.disabled || !_field || !_field?.functions?.onHandleGenericLoad)
|
|
26
|
+
return;
|
|
27
|
+
const { name } = _field;
|
|
28
|
+
if (_field?.value?.length)
|
|
29
|
+
return;
|
|
30
|
+
const { func, url } = _field?.functions?.onHandleGenericLoad;
|
|
31
|
+
if (!func || !self[func]) {
|
|
32
|
+
console.error('onHandleGenericLoad not declared');
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
_form?.disable();
|
|
36
|
+
self[func]({
|
|
37
|
+
name,
|
|
38
|
+
url,
|
|
39
|
+
form: _form,
|
|
40
|
+
callback: (data) => {
|
|
41
|
+
if (this._field) {
|
|
42
|
+
this._field.value = data;
|
|
43
|
+
}
|
|
44
|
+
this._form?.enable();
|
|
45
|
+
this._onHandleOptions.next(null);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
onChange(event) {
|
|
50
|
+
const { _form, _field, self } = this;
|
|
51
|
+
if (!_field || !_form)
|
|
52
|
+
return;
|
|
53
|
+
const { name } = _field;
|
|
54
|
+
const func = _field?.functions?.onChange;
|
|
55
|
+
const isValid = _form?.get(_field.name)?.valid;
|
|
56
|
+
if (func) {
|
|
57
|
+
self[func]({
|
|
58
|
+
name,
|
|
59
|
+
isValid,
|
|
60
|
+
event,
|
|
61
|
+
ctrl: _form?.get(this._field?.name),
|
|
62
|
+
form: _form,
|
|
63
|
+
value: _field.value
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
MECXDynamicSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
+
MECXDynamicSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MECXDynamicSelectComponent, selector: "mecx-dynamic-select", inputs: { _field: "_field", _form: "_form", _formErrors: "_formErrors", self: "self" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<monkey-select\n errorMessage=\"{{ _formErrors[_field?.name]?.firstMessage | translate }} {{ _formErrors[_field?.name]?.lastMessage }}\"\n [formControl]=\"_form.controls[_field?.name]\" [helperMessage]=\"_field?.helperMessage | translate\"\n [label]=\"_field?.label | translate\" (click)=\"onHandleGenericLoad()\"\n [onHandleOptions]=\"_onHandleOptions\" (onChange)=\"onChange($event)\"\n [labelSelect]=\"_form.get(_field?.name).value || ('FIELD.SELECT' | translate)\"\n [placeholder]=\"_field?.placeholder | translate\">\n <monkey-option [label]=\"'FIELD.LOADING' | translate\" *ngIf=\"!_field?.value?.length\"\n enableClick=\"false\">\n </monkey-option>\n <monkey-option *ngFor=\"let value of _field?.value\" [label]=\"value.description | translate\"\n [value]=\"value.value\">\n </monkey-option>\n</monkey-select>", components: [{ type: i1.MonkeySelectComponent, selector: "monkey-select", inputs: ["label", "helperMessage", "placeholder", "icon", "infoMessage", "errorMessage", "labelSelect", "onHandleOptions", "value"], outputs: ["onChange"] }, { type: i1.MonkeyOptionComponent, selector: "monkey-option", inputs: ["type", "label", "value", "selectAll", "selected", "enableClick"], outputs: ["onSelectOption"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i4.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXDynamicSelectComponent, decorators: [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{ selector: 'mecx-dynamic-select', encapsulation: ViewEncapsulation.None, template: "<monkey-select\n errorMessage=\"{{ _formErrors[_field?.name]?.firstMessage | translate }} {{ _formErrors[_field?.name]?.lastMessage }}\"\n [formControl]=\"_form.controls[_field?.name]\" [helperMessage]=\"_field?.helperMessage | translate\"\n [label]=\"_field?.label | translate\" (click)=\"onHandleGenericLoad()\"\n [onHandleOptions]=\"_onHandleOptions\" (onChange)=\"onChange($event)\"\n [labelSelect]=\"_form.get(_field?.name).value || ('FIELD.SELECT' | translate)\"\n [placeholder]=\"_field?.placeholder | translate\">\n <monkey-option [label]=\"'FIELD.LOADING' | translate\" *ngIf=\"!_field?.value?.length\"\n enableClick=\"false\">\n </monkey-option>\n <monkey-option *ngFor=\"let value of _field?.value\" [label]=\"value.description | translate\"\n [value]=\"value.value\">\n </monkey-option>\n</monkey-select>" }]
|
|
73
|
+
}], propDecorators: { _field: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], _form: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], _formErrors: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], self: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], className: [{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GVcIiAoY2xpY2spPVwib25IYW5kbGVHZW5lcmljTG9hZCgpXCJcbiAgW29uSGFuZGxlT3B0aW9uc109XCJfb25IYW5kbGVPcHRpb25zXCIgKG9uQ2hhbmdlKT1cIm9uQ2hhbmdlKCRldmVudClcIlxuICBbbGFiZWxTZWxlY3RdPVwiX2Zvcm0uZ2V0KF9maWVsZD8ubmFtZSkudmFsdWUgfHwgKCdGSUVMRC5TRUxFQ1QnIHwgdHJhbnNsYXRlKVwiXG4gIFtwbGFjZWhvbGRlcl09XCJfZmllbGQ/LnBsYWNlaG9sZGVyIHwgdHJhbnNsYXRlXCI+XG4gIDxtb25rZXktb3B0aW9uIFtsYWJlbF09XCInRklFTEQuTE9BRElORycgfCB0cmFuc2xhdGVcIiAqbmdJZj1cIiFfZmllbGQ/LnZhbHVlPy5sZW5ndGhcIlxuICAgIGVuYWJsZUNsaWNrPVwiZmFsc2VcIj5cbiAgPC9tb25rZXktb3B0aW9uPlxuICA8bW9ua2V5LW9wdGlvbiAqbmdGb3I9XCJsZXQgdmFsdWUgb2YgX2ZpZWxkPy52YWx1ZVwiIFtsYWJlbF09XCJ2YWx1ZS5kZXNjcmlwdGlvbiB8IHRyYW5zbGF0ZVwiXG4gICAgW3ZhbHVlXT1cInZhbHVlLnZhbHVlXCI+XG4gIDwvbW9ua2V5LW9wdGlvbj5cbjwvbW9ua2V5LXNlbGVjdD4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './select-search.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './select-search.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy9zZWxlY3Qtc2VhcmNoL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NlbGVjdC1zZWFyY2guY29tcG9uZW50JztcbiJdfQ==
|