@kato-lee/components 1.1.3 → 2.0.0

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.
Files changed (151) hide show
  1. package/README.md +1 -1
  2. package/assets/_fields.scss +82 -21
  3. package/assets/_grids.scss +8 -0
  4. package/assets/assets.scss +4 -0
  5. package/assets/bundle.css +1 -0
  6. package/assets/{themes/_default.scss → colors.scss} +7 -6
  7. package/assets/components/_checkbox.scss +11 -0
  8. package/assets/components/_fields.scss +53 -13
  9. package/assets/components/_scroll-bar.scss +8 -0
  10. package/assets/components/_snack-bar.scss +21 -10
  11. package/assets/components/_tables.scss +75 -84
  12. package/assets/components/main.scss +9 -10
  13. package/assets/material/theme.scss +91 -0
  14. package/box-form/index.d.ts +51 -3
  15. package/box-form/package.json +3 -0
  16. package/capsule/index.d.ts +25 -2
  17. package/capsule/package.json +3 -0
  18. package/cards/index.d.ts +18 -2
  19. package/cards/package.json +3 -0
  20. package/dialogs/index.d.ts +18 -2
  21. package/dialogs/package.json +3 -0
  22. package/fesm2022/kato-lee-components-box-form.mjs +9 -9
  23. package/fesm2022/kato-lee-components-box-form.mjs.map +1 -1
  24. package/fesm2022/kato-lee-components-capsule.mjs +20 -20
  25. package/fesm2022/kato-lee-components-capsule.mjs.map +1 -1
  26. package/fesm2022/kato-lee-components-cards.mjs +8 -8
  27. package/fesm2022/kato-lee-components-cards.mjs.map +1 -1
  28. package/fesm2022/kato-lee-components-dialogs.mjs +9 -9
  29. package/fesm2022/kato-lee-components-dialogs.mjs.map +1 -1
  30. package/fesm2022/kato-lee-components-fields.mjs +60 -64
  31. package/fesm2022/kato-lee-components-fields.mjs.map +1 -1
  32. package/fesm2022/kato-lee-components-modal.mjs +16 -12
  33. package/fesm2022/kato-lee-components-modal.mjs.map +1 -1
  34. package/fesm2022/kato-lee-components-pretty-box.mjs +5 -5
  35. package/fesm2022/kato-lee-components-pretty-box.mjs.map +1 -1
  36. package/fesm2022/kato-lee-components-tables.mjs +60 -20
  37. package/fesm2022/kato-lee-components-tables.mjs.map +1 -1
  38. package/fesm2022/kato-lee-components-toast.mjs +3 -3
  39. package/fesm2022/kato-lee-components-toast.mjs.map +1 -1
  40. package/fields/index.d.ts +464 -15
  41. package/fields/package.json +3 -0
  42. package/index.d.ts +2 -1
  43. package/modal/index.d.ts +66 -4
  44. package/modal/package.json +3 -0
  45. package/package.json +4 -24
  46. package/pretty-box/index.d.ts +27 -1
  47. package/pretty-box/package.json +3 -0
  48. package/tables/index.d.ts +27 -3
  49. package/tables/package.json +3 -0
  50. package/toast/index.d.ts +25 -1
  51. package/toast/package.json +3 -0
  52. package/assets/components/_material.scss +0 -15
  53. package/assets/main.scss +0 -4
  54. package/assets/material/themes/dark.scss +0 -52
  55. package/assets/material/themes/default.scss +0 -105
  56. package/assets/material/themes/main.scss +0 -2907
  57. package/assets/themes/_dark.scss +0 -16
  58. package/assets/themes/main.scss +0 -2
  59. package/assets/variables.scss +0 -7
  60. package/box-form/common.d.ts +0 -5
  61. package/box-form/component.d.ts +0 -34
  62. package/box-form/module.d.ts +0 -8
  63. package/capsule/component.d.ts +0 -14
  64. package/capsule/module.d.ts +0 -8
  65. package/cards/component.d.ts +0 -8
  66. package/cards/module.d.ts +0 -8
  67. package/dialogs/dismiss-dialog-button.component.d.ts +0 -8
  68. package/dialogs/module.d.ts +0 -8
  69. package/esm2022/box-form/common.mjs +0 -2
  70. package/esm2022/box-form/component.mjs +0 -112
  71. package/esm2022/box-form/index.mjs +0 -7
  72. package/esm2022/box-form/kato-lee-components-box-form.mjs +0 -5
  73. package/esm2022/box-form/module.mjs +0 -17
  74. package/esm2022/capsule/component.mjs +0 -78
  75. package/esm2022/capsule/index.mjs +0 -6
  76. package/esm2022/capsule/kato-lee-components-capsule.mjs +0 -5
  77. package/esm2022/capsule/module.mjs +0 -17
  78. package/esm2022/cards/component.mjs +0 -48
  79. package/esm2022/cards/index.mjs +0 -6
  80. package/esm2022/cards/kato-lee-components-cards.mjs +0 -5
  81. package/esm2022/cards/module.mjs +0 -18
  82. package/esm2022/dialogs/dismiss-dialog-button.component.mjs +0 -46
  83. package/esm2022/dialogs/index.mjs +0 -6
  84. package/esm2022/dialogs/kato-lee-components-dialogs.mjs +0 -5
  85. package/esm2022/dialogs/module.mjs +0 -18
  86. package/esm2022/fields/autocomplete/component.mjs +0 -259
  87. package/esm2022/fields/common.mjs +0 -11
  88. package/esm2022/fields/date/component.mjs +0 -163
  89. package/esm2022/fields/date-range/component.mjs +0 -85
  90. package/esm2022/fields/error/component.mjs +0 -57
  91. package/esm2022/fields/error/error-equals.pipe.mjs +0 -19
  92. package/esm2022/fields/error/error.msg.pipe.mjs +0 -19
  93. package/esm2022/fields/error/lang/_en.mjs +0 -12
  94. package/esm2022/fields/error/lang/_es.mjs +0 -12
  95. package/esm2022/fields/error/lang/index.mjs +0 -3
  96. package/esm2022/fields/general/component.mjs +0 -202
  97. package/esm2022/fields/index.mjs +0 -19
  98. package/esm2022/fields/kato-lee-components-fields.mjs +0 -5
  99. package/esm2022/fields/module.mjs +0 -82
  100. package/esm2022/fields/money/component.mjs +0 -202
  101. package/esm2022/fields/number/component.mjs +0 -179
  102. package/esm2022/fields/remote-autocomplete/component.mjs +0 -188
  103. package/esm2022/fields/select/component.mjs +0 -158
  104. package/esm2022/fields/text-area/component.mjs +0 -186
  105. package/esm2022/fields/validators.mjs +0 -11
  106. package/esm2022/index.mjs +0 -2
  107. package/esm2022/kato-lee-components.mjs +0 -5
  108. package/esm2022/modal/component.mjs +0 -66
  109. package/esm2022/modal/config.mjs +0 -2
  110. package/esm2022/modal/index.mjs +0 -8
  111. package/esm2022/modal/kato-lee-components-modal.mjs +0 -5
  112. package/esm2022/modal/module.mjs +0 -17
  113. package/esm2022/modal/service.mjs +0 -33
  114. package/esm2022/pretty-box/component.mjs +0 -94
  115. package/esm2022/pretty-box/index.mjs +0 -5
  116. package/esm2022/pretty-box/kato-lee-components-pretty-box.mjs +0 -5
  117. package/esm2022/tables/index.mjs +0 -7
  118. package/esm2022/tables/kato-lee-components-tables.mjs +0 -5
  119. package/esm2022/tables/mat-paginator.translation.mjs +0 -22
  120. package/esm2022/tables/module.mjs +0 -22
  121. package/esm2022/tables/no-records.component.mjs +0 -58
  122. package/esm2022/toast/index.mjs +0 -5
  123. package/esm2022/toast/kato-lee-components-toast.mjs +0 -5
  124. package/esm2022/toast/service.mjs +0 -42
  125. package/fields/autocomplete/component.d.ts +0 -65
  126. package/fields/common.d.ts +0 -8
  127. package/fields/date/component.d.ts +0 -46
  128. package/fields/date-range/component.d.ts +0 -23
  129. package/fields/error/component.d.ts +0 -22
  130. package/fields/error/error-equals.pipe.d.ts +0 -7
  131. package/fields/error/error.msg.pipe.d.ts +0 -7
  132. package/fields/error/lang/_en.d.ts +0 -1
  133. package/fields/error/lang/_es.d.ts +0 -1
  134. package/fields/error/lang/index.d.ts +0 -2
  135. package/fields/general/component.d.ts +0 -56
  136. package/fields/module.d.ts +0 -19
  137. package/fields/money/component.d.ts +0 -53
  138. package/fields/number/component.d.ts +0 -52
  139. package/fields/remote-autocomplete/component.d.ts +0 -43
  140. package/fields/select/component.d.ts +0 -44
  141. package/fields/text-area/component.d.ts +0 -55
  142. package/fields/validators.d.ts +0 -9
  143. package/modal/component.d.ts +0 -35
  144. package/modal/config.d.ts +0 -9
  145. package/modal/module.d.ts +0 -8
  146. package/modal/service.d.ts +0 -13
  147. package/pretty-box/component.d.ts +0 -24
  148. package/tables/mat-paginator.translation.d.ts +0 -2
  149. package/tables/module.d.ts +0 -10
  150. package/tables/no-records.component.d.ts +0 -12
  151. package/toast/service.d.ts +0 -21
package/fields/index.d.ts CHANGED
@@ -1,15 +1,464 @@
1
- export * from './error/error-equals.pipe';
2
- export * from './error/component';
3
- export * from './error/error.msg.pipe';
4
- export * from './common';
5
- export * from './module';
6
- export * from './validators';
7
- export * from './select/component';
8
- export * from './date/component';
9
- export * from './autocomplete/component';
10
- export * from './general/component';
11
- export * from './money/component';
12
- export * from './text-area/component';
13
- export * from './date-range/component';
14
- export * from './number/component';
15
- export * from './remote-autocomplete/component';
1
+ import * as i0 from '@angular/core';
2
+ import { PipeTransform, ElementRef, OnInit, OnDestroy, EventEmitter, ChangeDetectorRef, AfterViewInit } from '@angular/core';
3
+ import * as _angular_forms from '@angular/forms';
4
+ import { FormControl, ValidationErrors, ControlValueAccessor, NgControl, FormGroupDirective, Validators } from '@angular/forms';
5
+ import { MatFormFieldAppearance, FloatLabelType } from '@kato-lee/material/form-field';
6
+ import * as i11 from '@kato-lee/material/core';
7
+ import { ThemePalette, MatOptionSelectionChange } from '@kato-lee/material/core';
8
+ import { Observable } from 'rxjs';
9
+ import * as i10 from '@kato-lee/material/autocomplete';
10
+ import { TakToast } from '@kato-lee/components/toast';
11
+ import { HttpClient } from '@angular/common/http';
12
+
13
+ declare class TakErrorEqualsPipe implements PipeTransform {
14
+ transform(errors: any, error: any, args?: any): any;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorEqualsPipe, never>;
16
+ static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorEqualsPipe, "errorEquals", true>;
17
+ }
18
+
19
+ declare class TakErrorComponent {
20
+ error: ElementRef | undefined;
21
+ control: FormControl;
22
+ start: FormControl;
23
+ end: FormControl;
24
+ isDateField: boolean;
25
+ isNumberField: boolean;
26
+ marginTop: number;
27
+ hasPatternError: boolean;
28
+ get required(): ValidationErrors;
29
+ get pattern(): ValidationErrors;
30
+ get max(): any;
31
+ get min(): any;
32
+ get maxlength(): any;
33
+ get minlength(): any;
34
+ get email(): ValidationErrors;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakErrorComponent, "tak-error", never, { "control": { "alias": "control"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "isDateField": { "alias": "isDateField"; "required": false; }; "isNumberField": { "alias": "isNumberField"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; }, {}, never, never, true, never>;
37
+ }
38
+
39
+ declare class TakErrorMsgPipe implements PipeTransform {
40
+ transform(parameter: string, aditionalValue?: any): string;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakErrorMsgPipe, never>;
42
+ static ɵpipe: i0.ɵɵPipeDeclaration<TakErrorMsgPipe, "errorMsg", true>;
43
+ }
44
+
45
+ declare const TAK_DEFAULT_APPEARANCE_FORM: MatFormFieldAppearance;
46
+ type TakGeneralFieldType = 'text' | 'password' | 'filter';
47
+ type TakAutocompleteFieldType = 'off' | 'on';
48
+ declare const TAK_PRESS_ESC_KEY: KeyboardEvent;
49
+ declare const TAK_PTRN_EMAIL = "^[^@]+@[^@]+.[a-zA-Z]{2,}$";
50
+ declare const TAK_PTRN_NUMRC: RegExp;
51
+ declare const TAK_PTRN_NONSP: RegExp;
52
+
53
+ declare class TakSelectFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
54
+ private _ngControl;
55
+ private _formGroupDirective;
56
+ private _cd;
57
+ autocomplete: TakAutocompleteFieldType;
58
+ appearance: MatFormFieldAppearance;
59
+ color: ThemePalette;
60
+ suggestions: any[];
61
+ disabled: boolean;
62
+ type: 'menu' | 'select';
63
+ tooltip: string;
64
+ icon: string;
65
+ option: string;
66
+ extraInfo: string;
67
+ hasDefaultValue: boolean;
68
+ onSelect: EventEmitter<any>;
69
+ onChangeFn: (_: any) => void;
70
+ onTouchFn: (_: any) => void;
71
+ isInvalid: boolean;
72
+ isSubmitted: boolean;
73
+ private _unsubscribe$;
74
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
75
+ ngOnInit(): void;
76
+ writeValue(value: string): void;
77
+ registerOnChange(fn: any): void;
78
+ registerOnTouched(fn: any): void;
79
+ onChange(event: any): void;
80
+ emit(el: MatOptionSelectionChange): void;
81
+ justEmit(el: any): void;
82
+ onFocusOut(): void;
83
+ private _onValidate;
84
+ ngOnDestroy(): void;
85
+ get control(): FormControl;
86
+ get directive(): FormGroupDirective;
87
+ get isDisabled(): boolean | null;
88
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakSelectFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakSelectFieldComponent, "tak-select-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "hasDefaultValue": { "alias": "hasDefaultValue"; "required": false; }; }, { "onSelect": "onSelect"; }, never, ["*"], true, never>;
90
+ }
91
+
92
+ declare class TakDateFieldComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
93
+ private _ngControl;
94
+ private _formGroupDirective;
95
+ private _cd;
96
+ private _unsubscribe$;
97
+ appearance: MatFormFieldAppearance;
98
+ autocomplete: TakAutocompleteFieldType;
99
+ color: ThemePalette;
100
+ placeholder: string;
101
+ notInput: boolean;
102
+ minDate: Date | string;
103
+ maxDate: Date | string;
104
+ disabled: boolean;
105
+ onChangeFn: (_: any) => void;
106
+ onTouchFn: (_: any) => void;
107
+ private _isSubmitted;
108
+ private _isInvalid;
109
+ private _required;
110
+ private _value;
111
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
112
+ ngOnInit(): void;
113
+ ngAfterViewInit(): void;
114
+ writeValue(value: string): void;
115
+ registerOnChange(fn: any): void;
116
+ registerOnTouched(fn: any): void;
117
+ onChange(event: any): void;
118
+ onFocusout(): void;
119
+ onCloseDatePicker(): void;
120
+ private _onValidate;
121
+ ngOnDestroy(): void;
122
+ get control(): FormControl;
123
+ get directive(): FormGroupDirective;
124
+ get isDisabled(): boolean | null;
125
+ get isSubmitted(): boolean;
126
+ get isInvalid(): boolean;
127
+ get required(): boolean;
128
+ get value(): string;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakDateFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakDateFieldComponent, "tak-date-field", never, { "appearance": { "alias": "appearance"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "color": { "alias": "color"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
131
+ }
132
+
133
+ declare class TakAutocompleteFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
134
+ private _ngControl;
135
+ private _formGroupDirective;
136
+ private _cd;
137
+ private _unsubscribe$;
138
+ option: string;
139
+ extraInfo: string;
140
+ autocomplete: TakAutocompleteFieldType;
141
+ appearance: MatFormFieldAppearance;
142
+ color: ThemePalette;
143
+ hasClearButton: boolean;
144
+ suggestions: any[];
145
+ disabled: boolean;
146
+ hasTitle: boolean;
147
+ isLoading: boolean;
148
+ isRemoteSearch: boolean;
149
+ debounceTimeForRemoteSearch: number;
150
+ onSelect: EventEmitter<any>;
151
+ onSearch: EventEmitter<any>;
152
+ onChangeFn: (_: any) => void;
153
+ onTouchFn: (_: any) => void;
154
+ private _isSubmitted;
155
+ private _isInvalid;
156
+ private _required;
157
+ private _value;
158
+ private _filteredOptions;
159
+ private _notSuggestions;
160
+ private _lastValue;
161
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
162
+ ngOnInit(): void;
163
+ private _filter;
164
+ writeValue(value: string): void;
165
+ registerOnChange(fn: any): void;
166
+ registerOnTouched(fn: any): void;
167
+ onChange(event: any): void;
168
+ private _setValue;
169
+ emit(el: MatOptionSelectionChange): void;
170
+ emitWithClick(suggestionOption: any): void;
171
+ onFocusout(): void;
172
+ setValue(value: any): void;
173
+ onUpdateSuggestions(suggestions: any[]): void;
174
+ private _onValidate;
175
+ onFocus(): void;
176
+ onClearControl(): void;
177
+ ngOnDestroy(): void;
178
+ get control(): FormControl;
179
+ get directive(): FormGroupDirective;
180
+ get isDisabled(): boolean | null;
181
+ get isSubmitted(): boolean;
182
+ get isInvalid(): boolean;
183
+ get required(): boolean;
184
+ get value(): string;
185
+ get filteredOptions(): Observable<any>;
186
+ get notSuggestions(): boolean;
187
+ get lastValue(): string;
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakAutocompleteFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
189
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakAutocompleteFieldComponent, "tak-autocomplete-field", never, { "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hasTitle": { "alias": "hasTitle"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isRemoteSearch": { "alias": "isRemoteSearch"; "required": false; }; "debounceTimeForRemoteSearch": { "alias": "debounceTimeForRemoteSearch"; "required": false; }; }, { "onSelect": "onSelect"; "onSearch": "onSearch"; }, never, ["*"], true, never>;
190
+ }
191
+
192
+ declare class TakDateRangeFieldComponent implements OnInit {
193
+ autocomplete: TakAutocompleteFieldType;
194
+ startPlaceholder: string;
195
+ endPlaceholder: string;
196
+ appearance: MatFormFieldAppearance;
197
+ color: ThemePalette;
198
+ start: FormControl;
199
+ end: FormControl;
200
+ notInput: boolean;
201
+ disabled: boolean;
202
+ private _required;
203
+ ngOnInit(): void;
204
+ get required(): boolean;
205
+ get isDisabled(): boolean;
206
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakDateRangeFieldComponent, never>;
207
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakDateRangeFieldComponent, "tak-date-range-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "start": { "alias": "start"; "required": false; }; "end": { "alias": "end"; "required": false; }; "notInput": { "alias": "notInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
208
+ }
209
+
210
+ declare class TakGeneralFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
211
+ private _ngControl;
212
+ private _formGroupDirective;
213
+ private _cd;
214
+ autocomplete: 'off' | 'on';
215
+ appearance: MatFormFieldAppearance;
216
+ type: TakGeneralFieldType;
217
+ floatLabel: FloatLabelType;
218
+ color: ThemePalette;
219
+ actionIcon: string;
220
+ defaultFilterStyle: boolean;
221
+ hasActionButton: boolean;
222
+ hasClearButton: boolean;
223
+ countCaracters: boolean;
224
+ placeholder: string;
225
+ maxLength: number;
226
+ minLength: number;
227
+ disabled: boolean;
228
+ onExecuteAction: EventEmitter<any>;
229
+ onKeyUp: EventEmitter<any>;
230
+ onChangeFn: (_: any) => void;
231
+ onTouchFn: (_: any) => void;
232
+ private _isSubmitted;
233
+ private _isInvalid;
234
+ private _required;
235
+ private _value;
236
+ private _subscription;
237
+ private _decrypted;
238
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
239
+ ngOnInit(): void;
240
+ writeValue(value: string): void;
241
+ registerOnChange(fn: any): void;
242
+ registerOnTouched(fn: any): void;
243
+ onChange(event: any): void;
244
+ showPassword(): void;
245
+ onFocusOut(): void;
246
+ private _onValidate;
247
+ onClearControl(): void;
248
+ ngOnDestroy(): void;
249
+ get control(): FormControl;
250
+ get directive(): FormGroupDirective;
251
+ get decrypted(): boolean;
252
+ get isDisabled(): boolean | null;
253
+ get isSubmitted(): boolean;
254
+ get isInvalid(): boolean;
255
+ get required(): boolean;
256
+ get value(): string;
257
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakGeneralFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
258
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakGeneralFieldComponent, "tak-general-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "type": { "alias": "type"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
259
+ }
260
+
261
+ declare class TakMoneyFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
262
+ private _ngControl;
263
+ private _formGroupDirective;
264
+ private _cd;
265
+ autocomplete: 'off' | 'on';
266
+ appearance: MatFormFieldAppearance;
267
+ floatLabel: FloatLabelType;
268
+ color: ThemePalette;
269
+ actionIcon: string;
270
+ defaultFilterStyle: boolean;
271
+ hasActionButton: boolean;
272
+ hasClearButton: boolean;
273
+ countCaracters: boolean;
274
+ placeholder: string;
275
+ maxLength: number;
276
+ minLength: number;
277
+ disabled: boolean;
278
+ onExecuteAction: EventEmitter<any>;
279
+ onKeyUp: EventEmitter<any>;
280
+ onChangeFn: (_: any) => void;
281
+ onTouchFn: (_: any) => void;
282
+ private _isSubmitted;
283
+ private _isInvalid;
284
+ private _required;
285
+ private _value;
286
+ private _subscription;
287
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
288
+ ngOnInit(): void;
289
+ writeValue(value: string): void;
290
+ registerOnChange(fn: any): void;
291
+ registerOnTouched(fn: any): void;
292
+ onChange(event: any): void;
293
+ private _addCurrencyMask;
294
+ onFocusOut(): void;
295
+ private _onValidate;
296
+ onKeyDown(event: any): boolean;
297
+ onClearControl(): void;
298
+ ngOnDestroy(): void;
299
+ get control(): FormControl;
300
+ get directive(): FormGroupDirective;
301
+ get isDisabled(): boolean | null;
302
+ get isSubmitted(): boolean;
303
+ get isInvalid(): boolean;
304
+ get required(): boolean;
305
+ get value(): string;
306
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakMoneyFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
307
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakMoneyFieldComponent, "tak-money-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
308
+ }
309
+
310
+ declare class TakTextareaComponent implements OnInit, OnDestroy, ControlValueAccessor {
311
+ private _ngControl;
312
+ private _formGroupDirective;
313
+ private _cd;
314
+ autocomplete: 'off' | 'on';
315
+ appearance: MatFormFieldAppearance;
316
+ floatLabel: FloatLabelType;
317
+ color: ThemePalette;
318
+ actionIcon: string;
319
+ defaultFilterStyle: boolean;
320
+ hasActionButton: boolean;
321
+ hasClearButton: boolean;
322
+ countCaracters: boolean;
323
+ isTextArea: boolean;
324
+ placeholder: string;
325
+ heightInPx: number;
326
+ minLength: number;
327
+ maxLength: number;
328
+ disabled: boolean;
329
+ onExecuteAction: EventEmitter<any>;
330
+ onKeyUp: EventEmitter<any>;
331
+ onChangeFn: (_: any) => void;
332
+ onTouchFn: (_: any) => void;
333
+ _isSubmitted: boolean;
334
+ _isInvalid: boolean;
335
+ _required: boolean;
336
+ _value: string;
337
+ private _subscription;
338
+ private _decrypted;
339
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
340
+ ngOnInit(): void;
341
+ writeValue(value: string): void;
342
+ registerOnChange(fn: any): void;
343
+ registerOnTouched(fn: any): void;
344
+ onChange(event: any): void;
345
+ onFocusOut(): void;
346
+ private _onValidate;
347
+ onClearControl(): void;
348
+ ngOnDestroy(): void;
349
+ get control(): FormControl;
350
+ get directive(): FormGroupDirective;
351
+ get decrypted(): boolean;
352
+ get isDisabled(): boolean | null;
353
+ get isSubmitted(): boolean;
354
+ get isInvalid(): boolean;
355
+ get required(): boolean;
356
+ get value(): string;
357
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakTextareaComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
358
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakTextareaComponent, "tak-textarea", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "defaultFilterStyle": { "alias": "defaultFilterStyle"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "isTextArea": { "alias": "isTextArea"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "heightInPx": { "alias": "heightInPx"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
359
+ }
360
+
361
+ declare class TakNumberFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
362
+ private _ngControl;
363
+ private _formGroupDirective;
364
+ private _cd;
365
+ autocomplete: 'off' | 'on';
366
+ appearance: MatFormFieldAppearance;
367
+ floatLabel: FloatLabelType;
368
+ color: ThemePalette;
369
+ actionIcon: string;
370
+ hasActionButton: boolean;
371
+ hasClearButton: boolean;
372
+ countCaracters: boolean;
373
+ placeholder: string;
374
+ min: number;
375
+ max: number;
376
+ minLength: number;
377
+ maxLength: number;
378
+ disabled: boolean;
379
+ onExecuteAction: EventEmitter<any>;
380
+ onKeyUp: EventEmitter<any>;
381
+ onChangeFn: (_: any) => void;
382
+ onTouchFn: (_: any) => void;
383
+ private _isSubmitted;
384
+ private _isInvalid;
385
+ private _required;
386
+ private _value;
387
+ private _subscription;
388
+ constructor(_ngControl: NgControl, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef);
389
+ ngOnInit(): void;
390
+ writeValue(value: string): void;
391
+ registerOnChange(fn: any): void;
392
+ registerOnTouched(fn: any): void;
393
+ onChange(event: any): void;
394
+ onFocusOut(): void;
395
+ private _onValidate;
396
+ onClearControl(): void;
397
+ ngOnDestroy(): void;
398
+ get control(): FormControl;
399
+ get directive(): FormGroupDirective;
400
+ get isDisabled(): boolean | null;
401
+ get isSubmitted(): boolean;
402
+ get isInvalid(): boolean;
403
+ get required(): boolean;
404
+ get value(): string;
405
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakNumberFieldComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
406
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakNumberFieldComponent, "tak-number-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "color": { "alias": "color"; "required": false; }; "actionIcon": { "alias": "actionIcon"; "required": false; }; "hasActionButton": { "alias": "hasActionButton"; "required": false; }; "hasClearButton": { "alias": "hasClearButton"; "required": false; }; "countCaracters": { "alias": "countCaracters"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onExecuteAction": "onExecuteAction"; "onKeyUp": "onKeyUp"; }, never, ["*"], true, never>;
407
+ }
408
+
409
+ declare class TakRemoteAutocompleteFieldComponent implements OnInit, OnDestroy {
410
+ private _http;
411
+ private _cd;
412
+ private _toast;
413
+ remoteUrl: string;
414
+ params: any;
415
+ option: string;
416
+ extraInfo: string;
417
+ justOneLoad: boolean;
418
+ onSelect: EventEmitter<any>;
419
+ suggestions: any[];
420
+ autocomplete: FormControl<any>;
421
+ private _isLoading;
422
+ isValueSelected: boolean;
423
+ private _unsubscribe$;
424
+ private _isLoadingItem;
425
+ private _isRequired;
426
+ private _filteredOptions;
427
+ private _value;
428
+ private _notSuggestions;
429
+ wasLoaded: boolean;
430
+ constructor(_http: HttpClient, _cd: ChangeDetectorRef, _toast: TakToast);
431
+ ngOnInit(): Promise<any>;
432
+ private _filter;
433
+ refresh(): Promise<void>;
434
+ reset(): void;
435
+ emit(el: any, option: any): void;
436
+ ngOnDestroy(): void;
437
+ get isLoading(): boolean;
438
+ get isRequired(): boolean;
439
+ get isLoadingItem(): boolean;
440
+ get filteredOptions(): Observable<any>;
441
+ get value(): string;
442
+ get notSuggestions(): boolean;
443
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakRemoteAutocompleteFieldComponent, never>;
444
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakRemoteAutocompleteFieldComponent, "tak-remote-autocomplete-field", never, { "remoteUrl": { "alias": "remoteUrl"; "required": false; }; "params": { "alias": "params"; "required": false; }; "option": { "alias": "option"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; "justOneLoad": { "alias": "justOneLoad"; "required": false; }; }, { "onSelect": "onSelect"; }, never, ["*"], true, never>;
445
+ }
446
+
447
+ /** @deprecated Use standalone */
448
+ declare class TakFieldsModule {
449
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakFieldsModule, never>;
450
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakFieldsModule, never, [typeof TakSelectFieldComponent, typeof TakDateFieldComponent, typeof TakAutocompleteFieldComponent, typeof TakDateRangeFieldComponent, typeof TakGeneralFieldComponent, typeof TakMoneyFieldComponent, typeof TakTextareaComponent, typeof TakNumberFieldComponent, typeof _angular_forms.ReactiveFormsModule, typeof i10.MatAutocompleteModule, typeof _angular_forms.FormsModule, typeof i11.MatNativeDateModule, typeof TakRemoteAutocompleteFieldComponent], [typeof _angular_forms.ReactiveFormsModule, typeof i10.MatAutocompleteModule, typeof _angular_forms.FormsModule, typeof i11.MatNativeDateModule, typeof TakRemoteAutocompleteFieldComponent, typeof TakSelectFieldComponent, typeof TakDateFieldComponent, typeof TakAutocompleteFieldComponent, typeof TakDateRangeFieldComponent, typeof TakGeneralFieldComponent, typeof TakMoneyFieldComponent, typeof TakTextareaComponent, typeof TakNumberFieldComponent]>;
451
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakFieldsModule>;
452
+ }
453
+
454
+ declare const required: typeof Validators.required;
455
+ declare const max: (max: number) => _angular_forms.ValidatorFn;
456
+ declare const min: (min: number) => _angular_forms.ValidatorFn;
457
+ declare const maxLength: (maxLength: number) => _angular_forms.ValidatorFn;
458
+ declare const minLength: (minLength: number) => _angular_forms.ValidatorFn;
459
+ declare const withOutSpaces: _angular_forms.ValidatorFn;
460
+ declare const onlyNumber: _angular_forms.ValidatorFn;
461
+ declare const email: _angular_forms.ValidatorFn;
462
+
463
+ export { TAK_DEFAULT_APPEARANCE_FORM, TAK_PRESS_ESC_KEY, TAK_PTRN_EMAIL, TAK_PTRN_NONSP, TAK_PTRN_NUMRC, TakAutocompleteFieldComponent, TakDateFieldComponent, TakDateRangeFieldComponent, TakErrorComponent, TakErrorEqualsPipe, TakErrorMsgPipe, TakFieldsModule, TakGeneralFieldComponent, TakMoneyFieldComponent, TakNumberFieldComponent, TakRemoteAutocompleteFieldComponent, TakSelectFieldComponent, TakTextareaComponent, email, max, maxLength, min, minLength, onlyNumber, required, withOutSpaces };
464
+ export type { TakAutocompleteFieldType, TakGeneralFieldType };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/kato-lee-components-fields.mjs"
3
+ }
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+
2
+ export { };
package/modal/index.d.ts CHANGED
@@ -1,4 +1,66 @@
1
- export * from './config';
2
- export * from './component';
3
- export * from './module';
4
- export * from './service';
1
+ import { MatDialogConfig, MatDialogRef, MatDialog } from '@kato-lee/material/dialog';
2
+ import * as i0 from '@angular/core';
3
+ import { OnInit, ElementRef } from '@angular/core';
4
+ import { Observable } from 'rxjs';
5
+
6
+ type TakModalType = 'confirm' | 'alert';
7
+ interface TakModalConfig {
8
+ confirmButton?: string;
9
+ deniedButton?: string;
10
+ okButton?: string;
11
+ hasTopCloseButton?: boolean;
12
+ dialogOptions?: MatDialogConfig;
13
+ textAlign?: 'left' | 'right' | 'center' | 'justify';
14
+ }
15
+
16
+ declare class TakModalComponent implements OnInit {
17
+ private _dialogRef;
18
+ data: {
19
+ content: string;
20
+ title: string;
21
+ options?: TakModalConfig;
22
+ type: TakModalType;
23
+ };
24
+ private _isAlert;
25
+ private _confirmButton;
26
+ private _deniedButton;
27
+ private _okButton;
28
+ private _hasTopCloseButton;
29
+ constructor(href: ElementRef, _dialogRef: MatDialogRef<TakModalComponent>, data: {
30
+ content: string;
31
+ title: string;
32
+ options?: TakModalConfig;
33
+ type: TakModalType;
34
+ });
35
+ ngOnInit(): void;
36
+ onConfirm(): void;
37
+ onClose(): void;
38
+ onCloseFromButton(): void;
39
+ get isAlert(): boolean;
40
+ get confirmButton(): string;
41
+ get deniedButton(): string;
42
+ get okButton(): string;
43
+ get hasTopCloseButton(): boolean;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModalComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<TakModalComponent, "tak-modal", never, {}, {}, never, never, true, never>;
46
+ }
47
+
48
+ /** @deprecated Use standalone */
49
+ declare class TakModalModule {
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModalModule, never>;
51
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TakModalModule, never, [typeof TakModalComponent], [typeof TakModalComponent]>;
52
+ static ɵinj: i0.ɵɵInjectorDeclaration<TakModalModule>;
53
+ }
54
+
55
+ declare class TakModal {
56
+ private dialog;
57
+ constructor(dialog: MatDialog);
58
+ alert(content: string, title?: string, options?: TakModalConfig): Observable<boolean>;
59
+ confirm(content: string, title?: string, options?: TakModalConfig): Observable<boolean>;
60
+ private _generateDialog;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<TakModal, never>;
62
+ static ɵprov: i0.ɵɵInjectableDeclaration<TakModal>;
63
+ }
64
+
65
+ export { TakModal, TakModalComponent, TakModalModule };
66
+ export type { TakModalConfig, TakModalType };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/kato-lee-components-modal.mjs"
3
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@kato-lee/components",
3
- "version": "1.1.3",
4
- "dependencies": {
5
- "@kato-lee/cdk": "^14.2.7",
6
- "@kato-lee/material": "^14.2.7"
3
+ "version": "2.0.0",
4
+ "peerDependencies": {
5
+ "@kato-lee/cdk": "^20.2.14",
6
+ "@kato-lee/material": "^20.2.14"
7
7
  },
8
8
  "sideEffects": false,
9
9
  "module": "fesm2022/kato-lee-components.mjs",
@@ -14,62 +14,42 @@
14
14
  },
15
15
  ".": {
16
16
  "types": "./index.d.ts",
17
- "esm2022": "./esm2022/kato-lee-components.mjs",
18
- "esm": "./esm2022/kato-lee-components.mjs",
19
17
  "default": "./fesm2022/kato-lee-components.mjs"
20
18
  },
21
19
  "./box-form": {
22
20
  "types": "./box-form/index.d.ts",
23
- "esm2022": "./esm2022/box-form/kato-lee-components-box-form.mjs",
24
- "esm": "./esm2022/box-form/kato-lee-components-box-form.mjs",
25
21
  "default": "./fesm2022/kato-lee-components-box-form.mjs"
26
22
  },
27
23
  "./capsule": {
28
24
  "types": "./capsule/index.d.ts",
29
- "esm2022": "./esm2022/capsule/kato-lee-components-capsule.mjs",
30
- "esm": "./esm2022/capsule/kato-lee-components-capsule.mjs",
31
25
  "default": "./fesm2022/kato-lee-components-capsule.mjs"
32
26
  },
33
27
  "./cards": {
34
28
  "types": "./cards/index.d.ts",
35
- "esm2022": "./esm2022/cards/kato-lee-components-cards.mjs",
36
- "esm": "./esm2022/cards/kato-lee-components-cards.mjs",
37
29
  "default": "./fesm2022/kato-lee-components-cards.mjs"
38
30
  },
39
31
  "./dialogs": {
40
32
  "types": "./dialogs/index.d.ts",
41
- "esm2022": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
42
- "esm": "./esm2022/dialogs/kato-lee-components-dialogs.mjs",
43
33
  "default": "./fesm2022/kato-lee-components-dialogs.mjs"
44
34
  },
45
35
  "./fields": {
46
36
  "types": "./fields/index.d.ts",
47
- "esm2022": "./esm2022/fields/kato-lee-components-fields.mjs",
48
- "esm": "./esm2022/fields/kato-lee-components-fields.mjs",
49
37
  "default": "./fesm2022/kato-lee-components-fields.mjs"
50
38
  },
51
39
  "./modal": {
52
40
  "types": "./modal/index.d.ts",
53
- "esm2022": "./esm2022/modal/kato-lee-components-modal.mjs",
54
- "esm": "./esm2022/modal/kato-lee-components-modal.mjs",
55
41
  "default": "./fesm2022/kato-lee-components-modal.mjs"
56
42
  },
57
43
  "./pretty-box": {
58
44
  "types": "./pretty-box/index.d.ts",
59
- "esm2022": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
60
- "esm": "./esm2022/pretty-box/kato-lee-components-pretty-box.mjs",
61
45
  "default": "./fesm2022/kato-lee-components-pretty-box.mjs"
62
46
  },
63
47
  "./tables": {
64
48
  "types": "./tables/index.d.ts",
65
- "esm2022": "./esm2022/tables/kato-lee-components-tables.mjs",
66
- "esm": "./esm2022/tables/kato-lee-components-tables.mjs",
67
49
  "default": "./fesm2022/kato-lee-components-tables.mjs"
68
50
  },
69
51
  "./toast": {
70
52
  "types": "./toast/index.d.ts",
71
- "esm2022": "./esm2022/toast/kato-lee-components-toast.mjs",
72
- "esm": "./esm2022/toast/kato-lee-components-toast.mjs",
73
53
  "default": "./fesm2022/kato-lee-components-toast.mjs"
74
54
  }
75
55
  }