ng-tailwind 5.2.0 → 5.2.2
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 +19 -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 -5
- 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 +68 -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 +69 -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 +68 -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 -11
- 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 +290 -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 +273 -273
- package/esm2020/services/validation/ngt-ability-validation.service.mjs +3 -3
- package/fesm2015/ng-tailwind.mjs +8657 -8632
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +8482 -8459
- 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 +96 -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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ICAgICAgICB0aGlzLm9uQ2hhbmdlID0gZm47XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHJlZ2lzdGVyT25Ub3VjaGVkKGZuOiAoKSA9PiB2b2lkKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5vblRvdWNoZWQgPSBmbjtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgaXNWYWxpZCgpOiBib29sZWFuIHtcclxuICAgICAgICBpZiAodGhpcy5mb3JtQ29udHJvbCkge1xyXG4gICAgICAgICAgICB0aGlzLmZvcm1Db250cm9sLm1hcmtBc0RpcnR5KCk7XHJcblxyXG4gICAgICAgICAgICByZXR1cm4gdGhpcy5mb3JtQ29udHJvbC52YWxpZDtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIG1hcmtBc1ByaXN0aW5lKCkge1xyXG4gICAgICAgIGlmICh0aGlzLmZvcm1Db250cm9sKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZm9ybUNvbnRyb2wubWFya0FzUHJpc3RpbmUoKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIG1hcmtBc0RpcnR5KCkge1xyXG4gICAgICAgIGlmICh0aGlzLmZvcm1Db250cm9sKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZm9ybUNvbnRyb2wubWFya0FzRGlydHkoKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHNldFN1Ym1pdHRlZChzdWJtaXR0ZWQ6IGJvb2xlYW4pIHtcclxuICAgICAgICBpZiAodGhpcy5mb3JtQ29udGFpbmVyKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZm9ybUNvbnRhaW5lclsnc3VibWl0dGVkJ10gPSBzdWJtaXR0ZWQ7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgdmFsdWVzQXJlRXF1YWxzKHZhbHVlMSwgdmFsdWUyKSB7XHJcbiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkodmFsdWUxKSkge1xyXG4gICAgICAgICAgICB2YWx1ZTEgPSBKU09OLnN0cmluZ2lmeSh2YWx1ZTEpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkodmFsdWUyKSkge1xyXG4gICAgICAgICAgICB2YWx1ZTIgPSBKU09OLnN0cmluZ2lmeSh2YWx1ZTIpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHZhbHVlMSA9PT0gdmFsdWUyO1xyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gTmd0TWFrZVByb3ZpZGVyKHR5cGU6IGFueSkge1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgICBwcm92aWRlOiBOR19WQUxVRV9BQ0NFU1NPUixcclxuICAgICAgICB1c2VFeGlzdGluZzogZm9yd2FyZFJlZigoKSA9PiB0eXBlKSxcclxuICAgICAgICBtdWx0aTogdHJ1ZVxyXG4gICAgfTtcclxufVxyXG4iXX0=
|
|
@@ -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\"\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,
|
|
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\"\r\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\r\n [routerLink]=\"href\" (click)='onClick($event)'>\r\n <div\r\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text']) }}\">\r\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\">\r\n </ngt-svg>\r\n <div class=\"self-center\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</a>\r\n\r\n<a *ngIf=\"!href\"\r\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\r\n (click)='onClick($event)'>\r\n <div\r\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text', 'border', 'color.border']) }}\">\r\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\"></ngt-svg>\r\n <div class=\"self-center\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\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\"\r\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\r\n [routerLink]=\"href\" (click)='onClick($event)'>\r\n <div\r\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text']) }}\">\r\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\">\r\n </ngt-svg>\r\n <div class=\"self-center\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</a>\r\n\r\n<a *ngIf=\"!href\"\r\n [class]=\"disabled() ? 'block rounded-full cursor-not-allowed text-gray-600 bg-gray-400 hover:bg-gray-400 opacity-50' : 'cursor-pointer'\"\r\n (click)='onClick($event)'>\r\n <div\r\n class=\"flex justify-center rounded-full {{ ngtStyle.compile(['h', 'w', 'color.bg', 'color.text', 'px', 'py', 'shadow', 'text', 'border', 'color.border']) }}\">\r\n <ngt-svg [src]=\"icon\" class='self-center' *ngIf=\"icon\"></ngt-svg>\r\n <div class=\"self-center\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWFjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy10YWlsd2luZC9zcmMvY29tcG9uZW50cy9uZ3QtYWN0aW9uL25ndC1hY3Rpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctdGFpbHdpbmQvc3JjL2NvbXBvbmVudHMvbmd0LWFjdGlvbi9uZ3QtYWN0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCxTQUFTLEVBRVQsS0FBSyxFQUVMLFFBQVEsRUFDUixJQUFJLEVBQ0osUUFBUSxHQUNYLE1BQU0sZUFBZSxDQUFDO0FBSXZCLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHNEQUFzRCxDQUFDOzs7Ozs7Ozs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gQFNraXBTZWxmKClcclxuICAgICAgICBwdWJsaWMgbmd0TW9kYWxCb2R5OiBOZ3RNb2RhbEJvZHlDb21wb25lbnRcclxuICAgICkge1xyXG4gICAgICAgIGlmICh0aGlzLm5ndFN0eWxpemFibGVEaXJlY3RpdmUpIHtcclxuICAgICAgICAgICAgdGhpcy5uZ3RTdHlsZSA9IHRoaXMubmd0U3R5bGl6YWJsZURpcmVjdGl2ZS5nZXROZ3RTdHlsaXphYmxlU2VydmljZSgpO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMubmd0U3R5bGUgPSBuZXcgTmd0U3R5bGl6YWJsZVNlcnZpY2UoKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHRoaXMubmd0U3R5bGUubG9hZCh0aGlzLmluamVjdG9yLCAnTmd0QWN0aW9uJywge1xyXG4gICAgICAgICAgICBoOiAnaC1mdWxsJyxcclxuICAgICAgICAgICAgdzogJ3ctZnVsbCcsXHJcbiAgICAgICAgICAgIGNvbG9yOiB7XHJcbiAgICAgICAgICAgICAgICBiZzogJ2JnLWdyYXktNTAwJyxcclxuICAgICAgICAgICAgICAgIHRleHQ6ICd0ZXh0LXdoaXRlJyxcclxuICAgICAgICAgICAgICAgIGJvcmRlcjogJycsXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHRleHQ6ICd0ZXh0LXNtJyxcclxuICAgICAgICAgICAgYm9yZGVyOiAnYm9yZGVyLTAnLFxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBuZ09uRGVzdHJveSgpIHtcclxuICAgICAgICB0aGlzLmRlc3Ryb3lTdWJzY3JpcHRpb25zKCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIG9uQ2xpY2soZXZlbnQ6IEV2ZW50KSB7XHJcbiAgICAgICAgaWYgKHRoaXMuZGlzYWJsZWQoKSkge1xyXG4gICAgICAgICAgICBldmVudC5zdG9wUH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AgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvZGl2PlxyXG48L2E+Il19
|
|
@@ -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
|
+
}]
|
|
27
|
+
}] });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWFjdGlvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy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