ng-tailwind 5.2.3 → 5.2.5
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/animations/ngt-angular-animations.d.ts +5 -5
- package/base/ngt-base-ng-model.d.ts +32 -32
- package/components/ngt-action/ngt-action.component.d.ts +30 -30
- package/components/ngt-action/ngt-action.module.d.ts +10 -10
- package/components/ngt-button/ngt-button.component.d.ts +35 -35
- package/components/ngt-button/ngt-button.module.d.ts +10 -10
- package/components/ngt-checkbox/ngt-checkbox.component.d.ts +53 -53
- package/components/ngt-checkbox/ngt-checkbox.module.d.ts +10 -10
- package/components/ngt-content/ngt-content.component.d.ts +12 -12
- package/components/ngt-content/ngt-content.module.d.ts +8 -8
- package/components/ngt-context-menu/ngt-context-menu.component.d.ts +20 -19
- package/components/ngt-context-menu/ngt-context-menu.directive.d.ts +25 -25
- package/components/ngt-context-menu/ngt-context-menu.module.d.ts +10 -10
- package/components/ngt-datatable/ngt-datatable.component.d.ts +125 -125
- package/components/ngt-datatable/ngt-datatable.module.d.ts +25 -25
- package/components/ngt-datatable/ngt-tbody/ngt-tbody.component.d.ts +14 -14
- package/components/ngt-datatable/ngt-td/ngt-td.component.d.ts +14 -14
- package/components/ngt-datatable/ngt-td-check/ngt-td-check.component.d.ts +29 -29
- package/components/ngt-datatable/ngt-th/ngt-th.component.d.ts +55 -55
- package/components/ngt-datatable/ngt-th-check/ngt-th-check.component.d.ts +32 -32
- package/components/ngt-datatable/ngt-thead/ngt-thead.component.d.ts +13 -13
- package/components/ngt-datatable/ngt-tr/ngt-tr.component.d.ts +20 -20
- package/components/ngt-date/ngt-date.component.d.ts +85 -85
- package/components/ngt-date/ngt-date.module.d.ts +13 -13
- package/components/ngt-dropdown/ngt-dropdown-container/ngt-dropdown-container.component.d.ts +8 -8
- package/components/ngt-dropdown/ngt-dropdown.component.d.ts +53 -53
- package/components/ngt-dropdown/ngt-dropdown.module.d.ts +9 -9
- package/components/ngt-dropzone/custom-dropzone-preview/custom-dropzone-preview.component.d.ts +14 -14
- package/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts +25 -25
- package/components/ngt-dropzone/ngt-dropzone-view/ngt-dropzone-view.component.d.ts +35 -35
- package/components/ngt-dropzone/ngt-dropzone.component.d.ts +95 -95
- package/components/ngt-dropzone/ngt-dropzone.meta.d.ts +27 -27
- package/components/ngt-dropzone/ngt-dropzone.module.d.ts +17 -17
- package/components/ngt-floating-button/ngt-floating-button.component.d.ts +35 -35
- package/components/ngt-floating-button/ngt-floating-button.module.d.ts +10 -10
- package/components/ngt-form/ngt-form-validation-message/ngt-form-validation-message.component.d.ts +10 -10
- package/components/ngt-form/ngt-form.component.d.ts +60 -60
- package/components/ngt-form/ngt-form.module.d.ts +9 -9
- package/components/ngt-header-nav/ngt-header-nav.component.d.ts +14 -14
- package/components/ngt-header-nav/ngt-header-nav.module.d.ts +8 -8
- package/components/ngt-helper/ngt-helper.component.d.ts +25 -25
- package/components/ngt-helper/ngt-helper.module.d.ts +10 -10
- package/components/ngt-input/ngt-input.component.d.ts +129 -129
- package/components/ngt-input/ngt-input.module.d.ts +14 -14
- package/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.d.ts +17 -17
- package/components/ngt-modal/ngt-modal-footer/ngt-modal-footer.component.d.ts +12 -12
- package/components/ngt-modal/ngt-modal-header/ngt-modal-header.component.d.ts +15 -15
- package/components/ngt-modal/ngt-modal.component.d.ts +31 -31
- package/components/ngt-modal/ngt-modal.module.d.ts +11 -11
- package/components/ngt-multi-select/ngt-multi-select.component.d.ts +116 -116
- package/components/ngt-multi-select/ngt-multi-select.module.d.ts +15 -15
- package/components/ngt-pagination/ngt-pagination.component.d.ts +43 -43
- package/components/ngt-pagination/ngt-pagination.module.d.ts +12 -12
- package/components/ngt-popover/ngt-popover-tooltip/ngt-popover-tooltip.component.d.ts +21 -21
- package/components/ngt-popover/ngt-popover.component.d.ts +31 -31
- package/components/ngt-popover/ngt-popover.directive.d.ts +31 -31
- package/components/ngt-popover/ngt-popover.module.d.ts +11 -11
- package/components/ngt-portlet/ngt-portlet-body/ngt-portlet-body.component.d.ts +12 -12
- package/components/ngt-portlet/ngt-portlet-footer/ngt-portlet-footer.component.d.ts +12 -12
- package/components/ngt-portlet/ngt-portlet-header/ngt-portlet-header.component.d.ts +18 -18
- package/components/ngt-portlet/ngt-portlet.component.d.ts +20 -20
- package/components/ngt-portlet/ngt-portlet.module.d.ts +13 -13
- package/components/ngt-radio-button/ngt-radio-button-container/ngt-radio-button-container.component.d.ts +9 -9
- package/components/ngt-radio-button/ngt-radio-button.component.d.ts +45 -45
- package/components/ngt-radio-button/ngt-radio-button.module.d.ts +11 -11
- package/components/ngt-section/ngt-section.component.d.ts +38 -38
- package/components/ngt-section/ngt-section.module.d.ts +11 -11
- package/components/ngt-select/ngt-select.component.d.ts +154 -154
- package/components/ngt-select/ngt-select.directive.d.ts +20 -20
- package/components/ngt-select/ngt-select.module.d.ts +16 -16
- package/components/ngt-shining/ngt-shining.component.d.ts +19 -19
- package/components/ngt-shining/ngt-shining.module.d.ts +8 -8
- package/components/ngt-sidenav/ngt-sidenav.component.d.ts +32 -32
- package/components/ngt-sidenav/ngt-sidenav.module.d.ts +8 -8
- package/components/ngt-slider/ngt-slider.component.d.ts +36 -36
- package/components/ngt-slider/ngt-slider.module.d.ts +9 -9
- package/components/ngt-svg/ngt-svg.component.d.ts +13 -13
- package/components/ngt-svg/ngt-svg.module.d.ts +10 -10
- package/components/ngt-tag/ngt-tag.component.d.ts +13 -13
- package/components/ngt-tag/ngt-tag.module.d.ts +9 -9
- package/components/ngt-textarea/ngt-textarea.component.d.ts +49 -49
- package/components/ngt-textarea/ngt-textarea.module.d.ts +13 -13
- package/components/ngt-validation/ngt-validation.component.d.ts +13 -13
- package/components/ngt-validation/ngt-validation.module.d.ts +8 -8
- package/directives/ngt-stylizable/ngt-stylizable.directive.d.ts +70 -68
- package/directives/ngt-stylizable/ngt-stylizable.module.d.ts +8 -8
- package/enums/size.enum.d.ts +8 -8
- package/esm2020/animations/ngt-angular-animations.mjs +34 -34
- package/esm2020/base/ngt-base-ng-model.mjs +90 -90
- package/esm2020/components/ngt-action/ngt-action.component.mjs +96 -96
- package/esm2020/components/ngt-action/ngt-action.module.mjs +28 -28
- package/esm2020/components/ngt-button/ngt-button.component.mjs +142 -142
- package/esm2020/components/ngt-button/ngt-button.module.mjs +28 -28
- package/esm2020/components/ngt-checkbox/ngt-checkbox.component.mjs +192 -192
- package/esm2020/components/ngt-checkbox/ngt-checkbox.module.mjs +28 -28
- package/esm2020/components/ngt-content/ngt-content.component.mjs +32 -32
- package/esm2020/components/ngt-content/ngt-content.module.mjs +20 -20
- package/esm2020/components/ngt-context-menu/ngt-context-menu.component.mjs +25 -25
- package/esm2020/components/ngt-context-menu/ngt-context-menu.directive.mjs +89 -89
- package/esm2020/components/ngt-context-menu/ngt-context-menu.module.mjs +33 -33
- package/esm2020/components/ngt-datatable/ngt-datatable.component.mjs +470 -470
- package/esm2020/components/ngt-datatable/ngt-datatable.module.mjs +99 -99
- package/esm2020/components/ngt-datatable/ngt-tbody/ngt-tbody.component.mjs +57 -57
- package/esm2020/components/ngt-datatable/ngt-td/ngt-td.component.mjs +62 -62
- package/esm2020/components/ngt-datatable/ngt-td-check/ngt-td-check.component.mjs +113 -113
- package/esm2020/components/ngt-datatable/ngt-th/ngt-th.component.mjs +228 -228
- package/esm2020/components/ngt-datatable/ngt-th-check/ngt-th-check.component.mjs +127 -127
- package/esm2020/components/ngt-datatable/ngt-thead/ngt-thead.component.mjs +55 -55
- package/esm2020/components/ngt-datatable/ngt-tr/ngt-tr.component.mjs +86 -86
- package/esm2020/components/ngt-date/ngt-date.component.mjs +435 -435
- package/esm2020/components/ngt-date/ngt-date.module.mjs +40 -40
- package/esm2020/components/ngt-dropdown/ngt-dropdown-container/ngt-dropdown-container.component.mjs +19 -19
- package/esm2020/components/ngt-dropdown/ngt-dropdown.component.mjs +204 -204
- package/esm2020/components/ngt-dropdown/ngt-dropdown.module.mjs +21 -21
- package/esm2020/components/ngt-dropzone/custom-dropzone-preview/custom-dropzone-preview.component.mjs +54 -54
- package/esm2020/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.mjs +66 -66
- package/esm2020/components/ngt-dropzone/ngt-dropzone-view/ngt-dropzone-view.component.mjs +94 -94
- package/esm2020/components/ngt-dropzone/ngt-dropzone.component.mjs +496 -496
- package/esm2020/components/ngt-dropzone/ngt-dropzone.meta.mjs +24 -24
- package/esm2020/components/ngt-dropzone/ngt-dropzone.module.mjs +55 -55
- package/esm2020/components/ngt-floating-button/ngt-floating-button.component.mjs +119 -119
- package/esm2020/components/ngt-floating-button/ngt-floating-button.module.mjs +28 -28
- package/esm2020/components/ngt-form/ngt-form-validation-message/ngt-form-validation-message.component.mjs +22 -22
- package/esm2020/components/ngt-form/ngt-form.component.mjs +207 -207
- package/esm2020/components/ngt-form/ngt-form.module.mjs +29 -29
- package/esm2020/components/ngt-header-nav/ngt-header-nav.component.mjs +39 -39
- package/esm2020/components/ngt-header-nav/ngt-header-nav.module.mjs +20 -20
- package/esm2020/components/ngt-helper/ngt-helper.component.mjs +69 -68
- package/esm2020/components/ngt-helper/ngt-helper.module.mjs +28 -28
- package/esm2020/components/ngt-input/ngt-input.component.mjs +844 -844
- package/esm2020/components/ngt-input/ngt-input.module.mjs +47 -47
- package/esm2020/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.mjs +46 -46
- package/esm2020/components/ngt-modal/ngt-modal-footer/ngt-modal-footer.component.mjs +33 -33
- package/esm2020/components/ngt-modal/ngt-modal-header/ngt-modal-header.component.mjs +40 -40
- package/esm2020/components/ngt-modal/ngt-modal.component.mjs +122 -122
- package/esm2020/components/ngt-modal/ngt-modal.module.mjs +39 -39
- package/esm2020/components/ngt-multi-select/ngt-multi-select.component.mjs +503 -503
- package/esm2020/components/ngt-multi-select/ngt-multi-select.module.mjs +52 -52
- package/esm2020/components/ngt-pagination/ngt-pagination.component.mjs +162 -162
- package/esm2020/components/ngt-pagination/ngt-pagination.module.mjs +36 -36
- package/esm2020/components/ngt-popover/ngt-popover-tooltip/ngt-popover-tooltip.component.mjs +58 -58
- package/esm2020/components/ngt-popover/ngt-popover.component.mjs +85 -85
- package/esm2020/components/ngt-popover/ngt-popover.directive.mjs +126 -126
- package/esm2020/components/ngt-popover/ngt-popover.module.mjs +36 -36
- package/esm2020/components/ngt-portlet/ngt-portlet-body/ngt-portlet-body.component.mjs +34 -34
- package/esm2020/components/ngt-portlet/ngt-portlet-footer/ngt-portlet-footer.component.mjs +35 -35
- package/esm2020/components/ngt-portlet/ngt-portlet-header/ngt-portlet-header.component.mjs +57 -57
- package/esm2020/components/ngt-portlet/ngt-portlet.component.mjs +74 -74
- package/esm2020/components/ngt-portlet/ngt-portlet.module.mjs +47 -47
- package/esm2020/components/ngt-radio-button/ngt-radio-button-container/ngt-radio-button-container.component.mjs +19 -19
- package/esm2020/components/ngt-radio-button/ngt-radio-button.component.mjs +153 -153
- package/esm2020/components/ngt-radio-button/ngt-radio-button.module.mjs +29 -29
- package/esm2020/components/ngt-section/ngt-section.component.mjs +151 -151
- package/esm2020/components/ngt-section/ngt-section.module.mjs +32 -32
- package/esm2020/components/ngt-select/ngt-select.component.mjs +670 -670
- package/esm2020/components/ngt-select/ngt-select.directive.mjs +36 -36
- package/esm2020/components/ngt-select/ngt-select.module.mjs +65 -65
- package/esm2020/components/ngt-shining/ngt-shining.component.mjs +40 -40
- package/esm2020/components/ngt-shining/ngt-shining.module.mjs +20 -20
- package/esm2020/components/ngt-sidenav/ngt-sidenav.component.mjs +132 -132
- package/esm2020/components/ngt-sidenav/ngt-sidenav.module.mjs +20 -20
- package/esm2020/components/ngt-slider/ngt-slider.component.mjs +100 -100
- package/esm2020/components/ngt-slider/ngt-slider.module.mjs +24 -24
- package/esm2020/components/ngt-svg/ngt-svg.component.mjs +53 -53
- package/esm2020/components/ngt-svg/ngt-svg.module.mjs +28 -28
- package/esm2020/components/ngt-tag/ngt-tag.component.mjs +37 -37
- package/esm2020/components/ngt-tag/ngt-tag.module.mjs +24 -24
- package/esm2020/components/ngt-textarea/ngt-textarea.component.mjs +238 -238
- package/esm2020/components/ngt-textarea/ngt-textarea.module.mjs +43 -43
- package/esm2020/components/ngt-validation/ngt-validation.component.mjs +26 -26
- package/esm2020/components/ngt-validation/ngt-validation.module.mjs +20 -20
- package/esm2020/directives/ngt-stylizable/ngt-stylizable.directive.mjs +299 -290
- package/esm2020/directives/ngt-stylizable/ngt-stylizable.module.mjs +20 -20
- package/esm2020/enums/size.enum.mjs +11 -11
- package/esm2020/helpers/enum/enum.mjs +7 -7
- package/esm2020/helpers/form/form.mjs +14 -14
- package/esm2020/helpers/input-mask/input-mask.helper.mjs +26 -26
- package/esm2020/helpers/promise/promise-helper.mjs +4 -4
- package/esm2020/helpers/routing/route.mjs +11 -11
- package/esm2020/helpers/uuid.mjs +10 -10
- package/esm2020/ng-tailwind.mjs +4 -4
- package/esm2020/public-api.mjs +127 -127
- package/esm2020/services/http/ngt-attachment-http.service.mjs +3 -3
- package/esm2020/services/http/ngt-http-form.service.mjs +3 -3
- package/esm2020/services/http/ngt-http-resource.service.mjs +3 -3
- package/esm2020/services/http/ngt-http-validation.service.mjs +3 -3
- package/esm2020/services/http/ngt-http.service.mjs +3 -3
- package/esm2020/services/http/ngt-translate.service.mjs +3 -3
- package/esm2020/services/ngt-stylizable/ngt-stylizable.service.mjs +279 -273
- package/esm2020/services/validation/ngt-ability-validation.service.mjs +3 -3
- package/fesm2015/ng-tailwind.mjs +8669 -8653
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +8494 -8478
- package/fesm2020/ng-tailwind.mjs.map +1 -1
- package/helpers/enum/enum.d.ts +1 -1
- package/helpers/form/form.d.ts +4 -4
- package/helpers/input-mask/input-mask.helper.d.ts +20 -20
- package/helpers/promise/promise-helper.d.ts +1 -1
- package/helpers/routing/route.d.ts +2 -2
- package/helpers/uuid.d.ts +1 -1
- package/index.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +87 -87
- package/services/http/ngt-attachment-http.service.d.ts +9 -9
- package/services/http/ngt-http-form.service.d.ts +5 -5
- package/services/http/ngt-http-resource.service.d.ts +12 -12
- package/services/http/ngt-http-validation.service.d.ts +12 -12
- package/services/http/ngt-http.service.d.ts +27 -27
- package/services/http/ngt-translate.service.d.ts +33 -33
- package/services/ngt-stylizable/ngt-stylizable.service.d.ts +99 -96
- package/services/validation/ngt-ability-validation.service.d.ts +5 -5
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { EventEmitter, forwardRef } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
/**
|
|
4
|
-
* Based on https://stackoverflow.com/a/37786142/8055997
|
|
5
|
-
*/
|
|
6
|
-
export class NgtBaseNgModel {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.onValueChangeEvent = new EventEmitter;
|
|
9
|
-
this.ignore = '{{{{INITIAL_VALUE_IGNORE}}}}';
|
|
10
|
-
this._value = this.ignore;
|
|
11
|
-
this.onChange = (_) => { };
|
|
12
|
-
this.onTouched = () => {
|
|
13
|
-
if (this.formControl) {
|
|
14
|
-
this.formControl.markAsTouched();
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
this.registerOnTouched(this.onTouched);
|
|
18
|
-
}
|
|
19
|
-
get value() {
|
|
20
|
-
return this._value != this.ignore ? this._value : null;
|
|
21
|
-
}
|
|
22
|
-
;
|
|
23
|
-
set value(v) {
|
|
24
|
-
if (!this.valuesAreEquals(v, this._value)) {
|
|
25
|
-
this._value = v;
|
|
26
|
-
this.onChange(v);
|
|
27
|
-
if (this.formControl) {
|
|
28
|
-
this.formControl.markAsDirty();
|
|
29
|
-
}
|
|
30
|
-
this.change(v);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
onValueChange() {
|
|
34
|
-
return this.onValueChangeEvent;
|
|
35
|
-
}
|
|
36
|
-
writeValue(value) {
|
|
37
|
-
if (value == this.ignore || this.valuesAreEquals(value, this._value)) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
this._value = value;
|
|
41
|
-
this.onChange(value);
|
|
42
|
-
this.change(value);
|
|
43
|
-
}
|
|
44
|
-
change(v) { }
|
|
45
|
-
;
|
|
46
|
-
registerOnChange(fn) {
|
|
47
|
-
this.onChange = fn;
|
|
48
|
-
}
|
|
49
|
-
registerOnTouched(fn) {
|
|
50
|
-
this.onTouched = fn;
|
|
51
|
-
}
|
|
52
|
-
isValid() {
|
|
53
|
-
if (this.formControl) {
|
|
54
|
-
this.formControl.markAsDirty();
|
|
55
|
-
return this.formControl.valid;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
markAsPristine() {
|
|
59
|
-
if (this.formControl) {
|
|
60
|
-
this.formControl.markAsPristine();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
markAsDirty() {
|
|
64
|
-
if (this.formControl) {
|
|
65
|
-
this.formControl.markAsDirty();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
setSubmitted(submitted) {
|
|
69
|
-
if (this.formContainer) {
|
|
70
|
-
this.formContainer['submitted'] = submitted;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
valuesAreEquals(value1, value2) {
|
|
74
|
-
if (Array.isArray(value1)) {
|
|
75
|
-
value1 = JSON.stringify(value1);
|
|
76
|
-
}
|
|
77
|
-
if (Array.isArray(value2)) {
|
|
78
|
-
value2 = JSON.stringify(value2);
|
|
79
|
-
}
|
|
80
|
-
return value1 === value2;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
export function NgtMakeProvider(type) {
|
|
84
|
-
return {
|
|
85
|
-
provide: NG_VALUE_ACCESSOR,
|
|
86
|
-
useExisting: forwardRef(() => type),
|
|
87
|
-
multi: true
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { EventEmitter, forwardRef } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
/**
|
|
4
|
+
* Based on https://stackoverflow.com/a/37786142/8055997
|
|
5
|
+
*/
|
|
6
|
+
export class NgtBaseNgModel {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.onValueChangeEvent = new EventEmitter;
|
|
9
|
+
this.ignore = '{{{{INITIAL_VALUE_IGNORE}}}}';
|
|
10
|
+
this._value = this.ignore;
|
|
11
|
+
this.onChange = (_) => { };
|
|
12
|
+
this.onTouched = () => {
|
|
13
|
+
if (this.formControl) {
|
|
14
|
+
this.formControl.markAsTouched();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.registerOnTouched(this.onTouched);
|
|
18
|
+
}
|
|
19
|
+
get value() {
|
|
20
|
+
return this._value != this.ignore ? this._value : null;
|
|
21
|
+
}
|
|
22
|
+
;
|
|
23
|
+
set value(v) {
|
|
24
|
+
if (!this.valuesAreEquals(v, this._value)) {
|
|
25
|
+
this._value = v;
|
|
26
|
+
this.onChange(v);
|
|
27
|
+
if (this.formControl) {
|
|
28
|
+
this.formControl.markAsDirty();
|
|
29
|
+
}
|
|
30
|
+
this.change(v);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
onValueChange() {
|
|
34
|
+
return this.onValueChangeEvent;
|
|
35
|
+
}
|
|
36
|
+
writeValue(value) {
|
|
37
|
+
if (value == this.ignore || this.valuesAreEquals(value, this._value)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this._value = value;
|
|
41
|
+
this.onChange(value);
|
|
42
|
+
this.change(value);
|
|
43
|
+
}
|
|
44
|
+
change(v) { }
|
|
45
|
+
;
|
|
46
|
+
registerOnChange(fn) {
|
|
47
|
+
this.onChange = fn;
|
|
48
|
+
}
|
|
49
|
+
registerOnTouched(fn) {
|
|
50
|
+
this.onTouched = fn;
|
|
51
|
+
}
|
|
52
|
+
isValid() {
|
|
53
|
+
if (this.formControl) {
|
|
54
|
+
this.formControl.markAsDirty();
|
|
55
|
+
return this.formControl.valid;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
markAsPristine() {
|
|
59
|
+
if (this.formControl) {
|
|
60
|
+
this.formControl.markAsPristine();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
markAsDirty() {
|
|
64
|
+
if (this.formControl) {
|
|
65
|
+
this.formControl.markAsDirty();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
setSubmitted(submitted) {
|
|
69
|
+
if (this.formContainer) {
|
|
70
|
+
this.formContainer['submitted'] = submitted;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
valuesAreEquals(value1, value2) {
|
|
74
|
+
if (Array.isArray(value1)) {
|
|
75
|
+
value1 = JSON.stringify(value1);
|
|
76
|
+
}
|
|
77
|
+
if (Array.isArray(value2)) {
|
|
78
|
+
value2 = JSON.stringify(value2);
|
|
79
|
+
}
|
|
80
|
+
return value1 === value2;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export function NgtMakeProvider(type) {
|
|
84
|
+
return {
|
|
85
|
+
provide: NG_VALUE_ACCESSOR,
|
|
86
|
+
useExisting: forwardRef(() => type),
|
|
87
|
+
multi: true
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWJhc2UtbmctbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy10YWlsd2luZC9zcmMvYmFzZS9uZ3QtYmFzZS1uZy1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0F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gSlNPTi5zdHJpbmdpZnkodmFsdWUyKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB2YWx1ZTEgPT09IHZhbHVlMjtcbiAgICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBOZ3RNYWtlUHJvdmlkZXIodHlwZTogYW55KSB7XG4gICAgcmV0dXJuIHtcbiAgICAgICAgcHJvdmlkZTogTkdfVkFMVUVfQUNDRVNTT1IsXG4gICAgICAgIHVzZUV4aXN0aW5nOiBmb3J3YXJkUmVmKCgpID0+IHR5cGUpLFxuICAgICAgICBtdWx0aTogdHJ1ZVxuICAgIH07XG59XG4iXX0=
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { Component, Input, Optional, Self, SkipSelf, } from '@angular/core';
|
|
2
|
-
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../directives/ngt-stylizable/ngt-stylizable.directive";
|
|
5
|
-
import * as i2 from "../ngt-form/ngt-form.component";
|
|
6
|
-
import * as i3 from "../ngt-section/ngt-section.component";
|
|
7
|
-
import * as i4 from "../ngt-modal/ngt-modal.component";
|
|
8
|
-
import * as i5 from "../ngt-modal/ngt-modal-body/ngt-modal-body.component";
|
|
9
|
-
import * as i6 from "@angular/common";
|
|
10
|
-
import * as i7 from "@angular/router";
|
|
11
|
-
import * as i8 from "../ngt-svg/ngt-svg.component";
|
|
12
|
-
export class NgtActionComponent {
|
|
13
|
-
constructor(injector, ngtStylizableDirective, ngtForm, ngtSection, ngtModal, ngtModalBody) {
|
|
14
|
-
this.injector = injector;
|
|
15
|
-
this.ngtStylizableDirective = ngtStylizableDirective;
|
|
16
|
-
this.ngtForm = ngtForm;
|
|
17
|
-
this.ngtSection = ngtSection;
|
|
18
|
-
this.ngtModal = ngtModal;
|
|
19
|
-
this.ngtModalBody = ngtModalBody;
|
|
20
|
-
this.subscriptions = [];
|
|
21
|
-
if (this.ngtStylizableDirective) {
|
|
22
|
-
this.ngtStyle = this.ngtStylizableDirective.getNgtStylizableService();
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
this.ngtStyle = new NgtStylizableService();
|
|
26
|
-
}
|
|
27
|
-
this.ngtStyle.load(this.injector, 'NgtAction', {
|
|
28
|
-
h: 'h-full',
|
|
29
|
-
w: 'w-full',
|
|
30
|
-
color: {
|
|
31
|
-
bg: 'bg-gray-500',
|
|
32
|
-
text: 'text-white',
|
|
33
|
-
border: '',
|
|
34
|
-
},
|
|
35
|
-
text: 'text-sm',
|
|
36
|
-
border: 'border-0',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
ngOnDestroy() {
|
|
40
|
-
this.destroySubscriptions();
|
|
41
|
-
}
|
|
42
|
-
onClick(event) {
|
|
43
|
-
if (this.disabled()) {
|
|
44
|
-
event.stopPropagation();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
disabled() {
|
|
48
|
-
return !this.forceEnable && (this.isDisabled || this.isDisabledByParent());
|
|
49
|
-
}
|
|
50
|
-
isDisabledByParent() {
|
|
51
|
-
return this.ngtForm?.isDisabled
|
|
52
|
-
|| this.ngtSection?.isDisabled
|
|
53
|
-
|| this.ngtModal?.isDisabled;
|
|
54
|
-
}
|
|
55
|
-
destroySubscriptions() {
|
|
56
|
-
this.subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
57
|
-
this.subscriptions = [];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
NgtActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionComponent, deps: [{ token: i0.Injector }, { token: i1.NgtStylizableDirective, optional: true, self: true }, { token: i2.NgtFormComponent, optional: true, skipSelf: true }, { token: i3.NgtSectionComponent, optional: true, skipSelf: true }, { token: i4.NgtModalComponent, optional: true, skipSelf: true }, { token: i5.NgtModalBodyComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
-
NgtActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtActionComponent, selector: "ngt-action", inputs: { href: "href", icon: "icon", ngtStyle: "ngtStyle", isDisabled: "isDisabled", forceEnable: "forceEnable" }, ngImport: i0, template: "<a *ngIf=\"href\"\
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionComponent, decorators: [{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector: 'ngt-action', template: "<a *ngIf=\"href\"\
|
|
65
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.NgtStylizableDirective, decorators: [{
|
|
66
|
-
type: Self
|
|
67
|
-
}, {
|
|
68
|
-
type: Optional
|
|
69
|
-
}] }, { type: i2.NgtFormComponent, decorators: [{
|
|
70
|
-
type: Optional
|
|
71
|
-
}, {
|
|
72
|
-
type: SkipSelf
|
|
73
|
-
}] }, { type: i3.NgtSectionComponent, decorators: [{
|
|
74
|
-
type: Optional
|
|
75
|
-
}, {
|
|
76
|
-
type: SkipSelf
|
|
77
|
-
}] }, { type: i4.NgtModalComponent, decorators: [{
|
|
78
|
-
type: Optional
|
|
79
|
-
}, {
|
|
80
|
-
type: SkipSelf
|
|
81
|
-
}] }, { type: i5.NgtModalBodyComponent, decorators: [{
|
|
82
|
-
type: Optional
|
|
83
|
-
}, {
|
|
84
|
-
type: SkipSelf
|
|
85
|
-
}] }]; }, propDecorators: { href: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], icon: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], ngtStyle: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], isDisabled: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], forceEnable: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}] } });
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Optional, Self, SkipSelf, } from '@angular/core';
|
|
2
|
+
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../directives/ngt-stylizable/ngt-stylizable.directive";
|
|
5
|
+
import * as i2 from "../ngt-form/ngt-form.component";
|
|
6
|
+
import * as i3 from "../ngt-section/ngt-section.component";
|
|
7
|
+
import * as i4 from "../ngt-modal/ngt-modal.component";
|
|
8
|
+
import * as i5 from "../ngt-modal/ngt-modal-body/ngt-modal-body.component";
|
|
9
|
+
import * as i6 from "@angular/common";
|
|
10
|
+
import * as i7 from "@angular/router";
|
|
11
|
+
import * as i8 from "../ngt-svg/ngt-svg.component";
|
|
12
|
+
export class NgtActionComponent {
|
|
13
|
+
constructor(injector, ngtStylizableDirective, ngtForm, ngtSection, ngtModal, ngtModalBody) {
|
|
14
|
+
this.injector = injector;
|
|
15
|
+
this.ngtStylizableDirective = ngtStylizableDirective;
|
|
16
|
+
this.ngtForm = ngtForm;
|
|
17
|
+
this.ngtSection = ngtSection;
|
|
18
|
+
this.ngtModal = ngtModal;
|
|
19
|
+
this.ngtModalBody = ngtModalBody;
|
|
20
|
+
this.subscriptions = [];
|
|
21
|
+
if (this.ngtStylizableDirective) {
|
|
22
|
+
this.ngtStyle = this.ngtStylizableDirective.getNgtStylizableService();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this.ngtStyle = new NgtStylizableService();
|
|
26
|
+
}
|
|
27
|
+
this.ngtStyle.load(this.injector, 'NgtAction', {
|
|
28
|
+
h: 'h-full',
|
|
29
|
+
w: 'w-full',
|
|
30
|
+
color: {
|
|
31
|
+
bg: 'bg-gray-500',
|
|
32
|
+
text: 'text-white',
|
|
33
|
+
border: '',
|
|
34
|
+
},
|
|
35
|
+
text: 'text-sm',
|
|
36
|
+
border: 'border-0',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
ngOnDestroy() {
|
|
40
|
+
this.destroySubscriptions();
|
|
41
|
+
}
|
|
42
|
+
onClick(event) {
|
|
43
|
+
if (this.disabled()) {
|
|
44
|
+
event.stopPropagation();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
disabled() {
|
|
48
|
+
return !this.forceEnable && (this.isDisabled || this.isDisabledByParent());
|
|
49
|
+
}
|
|
50
|
+
isDisabledByParent() {
|
|
51
|
+
return this.ngtForm?.isDisabled
|
|
52
|
+
|| this.ngtSection?.isDisabled
|
|
53
|
+
|| this.ngtModal?.isDisabled;
|
|
54
|
+
}
|
|
55
|
+
destroySubscriptions() {
|
|
56
|
+
this.subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
57
|
+
this.subscriptions = [];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
NgtActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionComponent, deps: [{ token: i0.Injector }, { token: i1.NgtStylizableDirective, optional: true, self: true }, { token: i2.NgtFormComponent, optional: true, skipSelf: true }, { token: i3.NgtSectionComponent, optional: true, skipSelf: true }, { token: i4.NgtModalComponent, optional: true, skipSelf: true }, { token: i5.NgtModalBodyComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
NgtActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtActionComponent, selector: "ngt-action", inputs: { href: "href", icon: "icon", ngtStyle: "ngtStyle", isDisabled: "isDisabled", forceEnable: "forceEnable" }, ngImport: i0, template: "<a *ngIf=\"href\"\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\n [routerLink]=\"href\" (click)='onClick($event)'>\n <div\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text']) }}\">\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\">\n </ngt-svg>\n <div class=\"self-center\">\n <ng-content></ng-content>\n </div>\n </div>\n</a>\n\n<a *ngIf=\"!href\"\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\n (click)='onClick($event)'>\n <div\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text', 'border', 'color.border']) }}\">\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\"></ngt-svg>\n <div class=\"self-center\">\n <ng-content></ng-content>\n </div>\n </div>\n</a>", dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i8.NgtSvgComponent, selector: "ngt-svg", inputs: ["src", "class"] }] });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionComponent, decorators: [{
|
|
63
|
+
type: Component,
|
|
64
|
+
args: [{ selector: 'ngt-action', template: "<a *ngIf=\"href\"\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\n [routerLink]=\"href\" (click)='onClick($event)'>\n <div\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text']) }}\">\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\">\n </ngt-svg>\n <div class=\"self-center\">\n <ng-content></ng-content>\n </div>\n </div>\n</a>\n\n<a *ngIf=\"!href\"\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\n (click)='onClick($event)'>\n <div\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text', 'border', 'color.border']) }}\">\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\"></ngt-svg>\n <div class=\"self-center\">\n <ng-content></ng-content>\n </div>\n </div>\n</a>" }]
|
|
65
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.NgtStylizableDirective, decorators: [{
|
|
66
|
+
type: Self
|
|
67
|
+
}, {
|
|
68
|
+
type: Optional
|
|
69
|
+
}] }, { type: i2.NgtFormComponent, decorators: [{
|
|
70
|
+
type: Optional
|
|
71
|
+
}, {
|
|
72
|
+
type: SkipSelf
|
|
73
|
+
}] }, { type: i3.NgtSectionComponent, decorators: [{
|
|
74
|
+
type: Optional
|
|
75
|
+
}, {
|
|
76
|
+
type: SkipSelf
|
|
77
|
+
}] }, { type: i4.NgtModalComponent, decorators: [{
|
|
78
|
+
type: Optional
|
|
79
|
+
}, {
|
|
80
|
+
type: SkipSelf
|
|
81
|
+
}] }, { type: i5.NgtModalBodyComponent, decorators: [{
|
|
82
|
+
type: Optional
|
|
83
|
+
}, {
|
|
84
|
+
type: SkipSelf
|
|
85
|
+
}] }]; }, propDecorators: { href: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], icon: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], ngtStyle: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], isDisabled: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], forceEnable: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}] } });
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWFjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uL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ci5ib3JkZXInXSkgfX1cIj5cbiAgICAgICAgPG5ndC1zdmcgW3NyY109XCJpY29uXCIgY2xhc3M9J3NlbGYtY2VudGVyJyAqbmdJZj1cImljb25cIj48L25ndC1zdmc+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJzZWxmLWNlbnRlclwiPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvYT4iXX0=
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { RouterModule } from '@angular/router';
|
|
4
|
-
import { NgtSvgModule } from '../ngt-svg/ngt-svg.module';
|
|
5
|
-
import { NgtActionComponent } from './ngt-action.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class NgtActionModule {
|
|
8
|
-
}
|
|
9
|
-
NgtActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
NgtActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, declarations: [NgtActionComponent], imports: [CommonModule,
|
|
11
|
-
RouterModule,
|
|
12
|
-
NgtSvgModule], exports: [NgtActionComponent] });
|
|
13
|
-
NgtActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, imports: [CommonModule,
|
|
14
|
-
RouterModule,
|
|
15
|
-
NgtSvgModule] });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, decorators: [{
|
|
17
|
-
type: NgModule,
|
|
18
|
-
args: [{
|
|
19
|
-
declarations: [NgtActionComponent],
|
|
20
|
-
exports: [NgtActionComponent],
|
|
21
|
-
imports: [
|
|
22
|
-
CommonModule,
|
|
23
|
-
RouterModule,
|
|
24
|
-
NgtSvgModule
|
|
25
|
-
]
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { RouterModule } from '@angular/router';
|
|
4
|
+
import { NgtSvgModule } from '../ngt-svg/ngt-svg.module';
|
|
5
|
+
import { NgtActionComponent } from './ngt-action.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class NgtActionModule {
|
|
8
|
+
}
|
|
9
|
+
NgtActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
NgtActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, declarations: [NgtActionComponent], imports: [CommonModule,
|
|
11
|
+
RouterModule,
|
|
12
|
+
NgtSvgModule], exports: [NgtActionComponent] });
|
|
13
|
+
NgtActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, imports: [CommonModule,
|
|
14
|
+
RouterModule,
|
|
15
|
+
NgtSvgModule] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionModule, decorators: [{
|
|
17
|
+
type: NgModule,
|
|
18
|
+
args: [{
|
|
19
|
+
declarations: [NgtActionComponent],
|
|
20
|
+
exports: [NgtActionComponent],
|
|
21
|
+
imports: [
|
|
22
|
+
CommonModule,
|
|
23
|
+
RouterModule,
|
|
24
|
+
NgtSvgModule
|
|
25
|
+
]
|
|
26
|
+
}]
|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