ng-tailwind 4.1.14 → 4.1.16
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 +16 -16
- package/components/ngt-action/ngt-action.module.d.ts +10 -10
- package/components/ngt-button/ngt-button.component.d.ts +25 -25
- package/components/ngt-button/ngt-button.module.d.ts +10 -10
- package/components/ngt-checkbox/ngt-checkbox.component.d.ts +47 -47
- 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 -0
- package/components/ngt-context-menu/ngt-context-menu.directive.d.ts +22 -0
- package/components/ngt-context-menu/ngt-context-menu.module.d.ts +10 -0
- package/components/ngt-datatable/ngt-datatable.component.d.ts +117 -117
- package/components/ngt-datatable/ngt-datatable.module.d.ts +24 -24
- 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 +51 -51
- package/components/ngt-datatable/ngt-th-check/ngt-th-check.component.d.ts +22 -22
- 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 +79 -79
- 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 +87 -86
- 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 +55 -55
- 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 +109 -109
- package/components/ngt-input/ngt-input.module.d.ts +14 -14
- package/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.d.ts +5 -5
- package/components/ngt-modal/ngt-modal-footer/ngt-modal-footer.component.d.ts +5 -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 +25 -25
- package/components/ngt-modal/ngt-modal.module.d.ts +11 -11
- package/components/ngt-multi-select/ngt-multi-select.component.d.ts +103 -103
- 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 +17 -15
- package/components/ngt-popover/ngt-popover.component.d.ts +31 -31
- package/components/ngt-popover/ngt-popover.directive.d.ts +28 -27
- 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 +17 -17
- 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 +35 -35
- package/components/ngt-radio-button/ngt-radio-button.module.d.ts +11 -11
- package/components/ngt-section/ngt-section.component.d.ts +29 -29
- package/components/ngt-section/ngt-section.module.d.ts +11 -11
- package/components/ngt-select/ngt-select.component.d.ts +135 -135
- 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 +34 -34
- 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 +54 -54
- package/esm2020/components/ngt-action/ngt-action.module.mjs +28 -28
- package/esm2020/components/ngt-button/ngt-button.component.mjs +115 -115
- package/esm2020/components/ngt-button/ngt-button.module.mjs +28 -28
- package/esm2020/components/ngt-checkbox/ngt-checkbox.component.mjs +177 -177
- 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 -0
- package/esm2020/components/ngt-context-menu/ngt-context-menu.directive.mjs +74 -0
- package/esm2020/components/ngt-context-menu/ngt-context-menu.module.mjs +33 -0
- package/esm2020/components/ngt-datatable/ngt-datatable.component.mjs +431 -431
- package/esm2020/components/ngt-datatable/ngt-datatable.module.mjs +95 -95
- 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 +211 -211
- package/esm2020/components/ngt-datatable/ngt-th-check/ngt-th-check.component.mjs +91 -91
- 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 +418 -418
- 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 +465 -464
- 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 +193 -193
- 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 +722 -722
- package/esm2020/components/ngt-input/ngt-input.module.mjs +47 -47
- package/esm2020/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.mjs +11 -11
- package/esm2020/components/ngt-modal/ngt-modal-footer/ngt-modal-footer.component.mjs +11 -11
- package/esm2020/components/ngt-modal/ngt-modal-header/ngt-modal-header.component.mjs +38 -38
- package/esm2020/components/ngt-modal/ngt-modal.component.mjs +102 -102
- package/esm2020/components/ngt-modal/ngt-modal.module.mjs +39 -39
- package/esm2020/components/ngt-multi-select/ngt-multi-select.component.mjs +446 -446
- 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 +40 -40
- package/esm2020/components/ngt-popover/ngt-popover.component.mjs +85 -85
- package/esm2020/components/ngt-popover/ngt-popover.directive.mjs +111 -105
- 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 +33 -33
- package/esm2020/components/ngt-portlet/ngt-portlet-header/ngt-portlet-header.component.mjs +53 -53
- 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 +125 -125
- package/esm2020/components/ngt-radio-button/ngt-radio-button.module.mjs +29 -29
- package/esm2020/components/ngt-section/ngt-section.component.mjs +119 -119
- package/esm2020/components/ngt-section/ngt-section.module.mjs +32 -32
- package/esm2020/components/ngt-select/ngt-select.component.mjs +552 -552
- 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 +99 -99
- 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 +23 -23
- 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 +125 -121
- 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/fesm2015/ng-tailwind.mjs +7922 -7793
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +7782 -7656
- 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 +17 -17
- 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 +86 -83
- package/services/http/ngt-attachment-http.service.d.ts +10 -10
- 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 +11 -11
- package/services/http/ngt-http.service.d.ts +27 -27
- package/services/http/ngt-translate.service.d.ts +29 -29
- package/services/ngt-stylizable/ngt-stylizable.service.d.ts +96 -96
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWJhc2UtbmctbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy10YWlsd2luZC9zcmMvYmFzZS9uZ3QtYmFzZS1uZy1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQTJELGlCQUFpQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFNUc7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLGNBQWM7SUFTaEM7UUFMTy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dGlvbiBOZ3RNYWtlUHJvdmlkZXIodHlwZTogYW55KSB7XG4gICAgcmV0dXJuIHtcbiAgICAgICAgcHJvdmlkZTogTkdfVkFMVUVfQUNDRVNTT1IsXG4gICAgICAgIHVzZUV4aXN0aW5nOiBmb3J3YXJkUmVmKCgpID0+IHR5cGUpLFxuICAgICAgICBtdWx0aTogdHJ1ZVxuICAgIH07XG59XG4iXX0=
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { Component, Input, Optional, Self } 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 "@angular/common";
|
|
6
|
-
import * as i3 from "@angular/router";
|
|
7
|
-
import * as i4 from "../ngt-svg/ngt-svg.component";
|
|
8
|
-
export class NgtActionComponent {
|
|
9
|
-
constructor(injector, ngtStylizableDirective) {
|
|
10
|
-
this.injector = injector;
|
|
11
|
-
this.ngtStylizableDirective = ngtStylizableDirective;
|
|
12
|
-
if (this.ngtStylizableDirective) {
|
|
13
|
-
this.ngtStyle = this.ngtStylizableDirective.getNgtStylizableService();
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
this.ngtStyle = new NgtStylizableService();
|
|
17
|
-
}
|
|
18
|
-
this.ngtStyle.load(this.injector, 'NgtAction', {
|
|
19
|
-
h: 'h-full',
|
|
20
|
-
w: 'w-full',
|
|
21
|
-
color: {
|
|
22
|
-
bg: 'bg-gray-500',
|
|
23
|
-
text: 'text-white',
|
|
24
|
-
border: '',
|
|
25
|
-
},
|
|
26
|
-
text: 'text-xl',
|
|
27
|
-
border: 'border-0',
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
onClick(event) {
|
|
31
|
-
if (this.isDisabled) {
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
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" }, ngImport: i0, template: "<a *ngIf=\"href\"\
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'ngt-action', template: "<a *ngIf=\"href\"\
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.NgtStylizableDirective, decorators: [{
|
|
42
|
-
type: Self
|
|
43
|
-
}, {
|
|
44
|
-
type: Optional
|
|
45
|
-
}] }]; }, propDecorators: { href: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], icon: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], ngtStyle: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], isDisabled: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}] } });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Optional, Self } 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 "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/router";
|
|
7
|
+
import * as i4 from "../ngt-svg/ngt-svg.component";
|
|
8
|
+
export class NgtActionComponent {
|
|
9
|
+
constructor(injector, ngtStylizableDirective) {
|
|
10
|
+
this.injector = injector;
|
|
11
|
+
this.ngtStylizableDirective = ngtStylizableDirective;
|
|
12
|
+
if (this.ngtStylizableDirective) {
|
|
13
|
+
this.ngtStyle = this.ngtStylizableDirective.getNgtStylizableService();
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
this.ngtStyle = new NgtStylizableService();
|
|
17
|
+
}
|
|
18
|
+
this.ngtStyle.load(this.injector, 'NgtAction', {
|
|
19
|
+
h: 'h-full',
|
|
20
|
+
w: 'w-full',
|
|
21
|
+
color: {
|
|
22
|
+
bg: 'bg-gray-500',
|
|
23
|
+
text: 'text-white',
|
|
24
|
+
border: '',
|
|
25
|
+
},
|
|
26
|
+
text: 'text-xl',
|
|
27
|
+
border: 'border-0',
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
onClick(event) {
|
|
31
|
+
if (this.isDisabled) {
|
|
32
|
+
event.stopPropagation();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
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" }, ngImport: i0, template: "<a *ngIf=\"href\"\n [class]=\"isDisabled ? '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]=\"isDisabled ? '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>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.NgtSvgComponent, selector: "ngt-svg", inputs: ["src", "class"] }] });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtActionComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ selector: 'ngt-action', template: "<a *ngIf=\"href\"\n [class]=\"isDisabled ? '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]=\"isDisabled ? '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>\n" }]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.NgtStylizableDirective, decorators: [{
|
|
42
|
+
type: Self
|
|
43
|
+
}, {
|
|
44
|
+
type: Optional
|
|
45
|
+
}] }]; }, propDecorators: { href: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], icon: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], ngtStyle: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], isDisabled: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}] } });
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWFjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy10YWlsd2luZC9zcmMvY29tcG9uZW50cy9uZ3QtYWN0aW9uL25ndC1hY3Rpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctdGFpbHdpbmQvc3JjL2NvbXBvbmVudHMvbmd0LWFjdGlvbi9uZ3QtYWN0aW9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVksS0FBSyxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHM0UsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1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qbmdJZj1cImljb25cIj48L25ndC1zdmc+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJzZWxmLWNlbnRlclwiPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvYT5cbiJdfQ==
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LWFjdGlv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