@cauca-911/material 20.0.2 → 20.0.4

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/index.d.ts CHANGED
@@ -1,19 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, ElementRef, EventEmitter, InputSignal, OutputEmitterRef } from '@angular/core';
3
- import * as i11 from '@angular/forms';
4
- import { UntypedFormControl, ControlValueAccessor, AbstractControl } from '@angular/forms';
5
- import * as i9 from '@cauca-911/core';
6
- import { Configuration } from '@cauca-911/core';
7
- import * as i8 from '@angular/common';
8
- import * as i10 from '@fortawesome/angular-fontawesome';
9
- import * as i12 from '@angular/material/button';
10
- import * as i13 from '@angular/material/form-field';
11
- import { SubscriptSizing } from '@angular/material/form-field';
12
- import * as i14 from '@angular/material/icon';
13
- import * as i15 from '@angular/material/input';
14
- import * as i16 from '@angular/material/tabs';
15
- import * as i17 from '@angular/material/dialog';
2
+ import { OnInit, EventEmitter, InputSignal, OutputEmitterRef, Signal, WritableSignal, OnDestroy, DoCheck, ElementRef, TemplateRef } from '@angular/core';
3
+ import { ControlValueAccessor, AbstractControl, ValidatorFn, UntypedFormGroup, UntypedFormBuilder, FormControl, FormGroup, NgControl, NgForm, FormGroupDirective, UntypedFormControl } from '@angular/forms';
4
+ import { SubscriptSizing, MatFormFieldControl } from '@angular/material/form-field';
16
5
  import { Clipboard } from '@angular/cdk/clipboard';
6
+ import { ComponentType } from '@angular/cdk/portal';
7
+ import { Observable, Subject } from 'rxjs';
8
+ import { PasswordValidation as PasswordValidation$1 } from 'projects/cauca-material/src/lib/core/models/password-validation';
9
+ import { BooleanInput } from '@angular/cdk/coercion';
10
+ import { MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
11
+ import { Configuration } from '@cauca-911/core';
17
12
 
18
13
  declare class CaucaMaterialService {
19
14
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialService, never>;
@@ -22,121 +17,7 @@ declare class CaucaMaterialService {
22
17
 
23
18
  declare class CaucaMaterialComponent {
24
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMaterialComponent, "cauca-material", never, {}, {}, never, never, false, never>;
26
- }
27
-
28
- declare class CaucaInputFileComponent implements OnInit {
29
- file: ElementRef;
30
- readend: EventEmitter<any>;
31
- accept: string;
32
- multiple: boolean;
33
- icon: string;
34
- text: string;
35
- private labels;
36
- private readonly translateService;
37
- private readonly dialog;
38
- ngOnInit(): void;
39
- onSelectFile(e: any): void;
40
- openDialog(event: any): void;
41
- private onError;
42
- private onReadEnd;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputFileComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputFileComponent, "cauca-input-file", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "readend": "readend"; }, never, never, false, never>;
45
- }
46
-
47
- declare class CaucaInputMultipleLangueComponent implements OnInit {
48
- value: string[];
49
- config: Configuration;
50
- forms: UntypedFormControl[];
51
- labels: string[];
52
- selectedIndex: number;
53
- private readonly translate;
54
- constructor();
55
- ngOnInit(): void;
56
- onTagChanged(tabIndex: number): void;
57
- getErrorMessage(index: any): string;
58
- private initializeForms;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputMultipleLangueComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputMultipleLangueComponent, "cauca-input-multiple-langue", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
61
- }
62
-
63
- declare class MenuItem {
64
- label: string;
65
- path: string;
66
- icon: string | string[];
67
- activated: boolean;
68
- childs: MenuItem[];
69
- constructor(label: string, path: string, icon?: string | string[]);
70
- }
71
-
72
- declare class CaucaMenuSidebarComponent {
73
- menuItems: MenuItem[];
74
- version: string;
75
- private hostElement;
76
- private keepMenuExpanded;
77
- constructor();
78
- onResize(_e: any): void;
79
- onMenuItemClick(): void;
80
- hideOnMobile(): void;
81
- showOnMobile(): void;
82
- onToggleCollapse(): void;
83
- private setDisplayMenu;
84
- private onMouseOver;
85
- private onMouseOut;
86
- private onExpandedMenu;
87
- private onCollapseMenu;
88
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuSidebarComponent, never>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuSidebarComponent, "cauca-menu-sidebar", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, {}, never, ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"], false, never>;
90
- }
91
-
92
- declare class CaucaMenuVerticalComponent {
93
- itemClick: EventEmitter<any>;
94
- menuItems: MenuItem[];
95
- private readonly router;
96
- constructor();
97
- goTo(path: string, e: any): void;
98
- private selectActiveRoute;
99
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuVerticalComponent, never>;
100
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuVerticalComponent, "cauca-menu-vertical", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, false, never>;
101
- }
102
-
103
- declare class SimpleDialogData {
104
- title: string;
105
- message: string;
106
- buttons: string[];
107
- }
108
-
109
- declare class CaucaSimpleDialogComponent {
110
- readonly data: SimpleDialogData;
111
- private readonly dialogRef;
112
- onClick(buttonIndex: number): void;
113
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSimpleDialogComponent, never>;
114
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSimpleDialogComponent, "cauca-simple-dialog", never, {}, {}, never, never, false, never>;
115
- }
116
-
117
- declare class CaucaSlideshowComponent implements OnInit {
118
- container: ElementRef;
119
- height: string;
120
- autoPlay: boolean;
121
- private timer;
122
- private items;
123
- private states;
124
- private selectedIndex;
125
- set images(list: string[]);
126
- get images(): string[];
127
- ngOnInit(): void;
128
- getState(index: number): string;
129
- restart(): void;
130
- next(): void;
131
- private changed;
132
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSlideshowComponent, never>;
133
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, false, never>;
134
- }
135
-
136
- declare class CaucaMaterialModule {
137
- static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMaterialModule, never>;
138
- static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaMaterialModule, [typeof CaucaMaterialComponent, typeof CaucaInputFileComponent, typeof CaucaInputMultipleLangueComponent, typeof CaucaMenuSidebarComponent, typeof CaucaMenuVerticalComponent, typeof CaucaSimpleDialogComponent, typeof CaucaSlideshowComponent], [typeof i8.CommonModule, typeof i9.CaucaCoreForChildModule, typeof i10.FontAwesomeModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatButtonModule, typeof i13.MatFormFieldModule, typeof i14.MatIconModule, typeof i15.MatInputModule, typeof i16.MatTabsModule, typeof i17.MatDialogModule], [typeof CaucaMaterialComponent, typeof CaucaInputFileComponent, typeof CaucaInputMultipleLangueComponent, typeof CaucaMenuSidebarComponent, typeof CaucaMenuVerticalComponent, typeof CaucaSimpleDialogComponent, typeof CaucaSlideshowComponent]>;
139
- static ɵinj: i0.ɵɵInjectorDeclaration<CaucaMaterialModule>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMaterialComponent, "cauca-material", never, {}, {}, never, never, true, never>;
140
21
  }
141
22
 
142
23
  declare class CaucaDateTimePickerComponent implements ControlValueAccessor, OnInit {
@@ -205,23 +86,23 @@ declare abstract class BaseButtonWithLabel extends BaseButton {
205
86
 
206
87
  declare class BasicButtonComponent extends BaseButtonWithLabel {
207
88
  static ɵfac: i0.ɵɵFactoryDeclaration<BasicButtonComponent, never>;
208
- static ɵcmp: i0.ɵɵComponentDeclaration<BasicButtonComponent, "app-basic-button", never, {}, {}, never, never, true, never>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<BasicButtonComponent, "cauca-basic-button", never, {}, {}, never, never, true, never>;
209
90
  }
210
91
 
211
92
  declare class FabButtonComponent extends BaseButtonWithLabel {
212
93
  iconColor: i0.Signal<string>;
213
94
  static ɵfac: i0.ɵɵFactoryDeclaration<FabButtonComponent, never>;
214
- static ɵcmp: i0.ɵɵComponentDeclaration<FabButtonComponent, "app-fab-button", never, {}, {}, never, never, true, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<FabButtonComponent, "cauca-fab-button", never, {}, {}, never, never, true, never>;
215
96
  }
216
97
 
217
98
  declare class FlatButtonComponent extends BaseButtonWithLabel {
218
99
  static ɵfac: i0.ɵɵFactoryDeclaration<FlatButtonComponent, never>;
219
- static ɵcmp: i0.ɵɵComponentDeclaration<FlatButtonComponent, "app-flat-button", never, {}, {}, never, never, true, never>;
100
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlatButtonComponent, "cauca-flat-button", never, {}, {}, never, never, true, never>;
220
101
  }
221
102
 
222
103
  declare class IconButtonComponent extends BaseButton {
223
104
  static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
224
- static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "app-icon-button", never, {}, {}, never, never, true, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "cauca-icon-button", never, {}, {}, never, never, true, never>;
225
106
  }
226
107
 
227
108
  declare class LinkButtonComponent {
@@ -230,19 +111,19 @@ declare class LinkButtonComponent {
230
111
  constructor(clipboard: Clipboard);
231
112
  copyLink(): void;
232
113
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkButtonComponent, never>;
233
- static ɵcmp: i0.ɵɵComponentDeclaration<LinkButtonComponent, "app-link-button", never, { "segments": { "alias": "segments"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkButtonComponent, "cauca-link-button", never, { "segments": { "alias": "segments"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
234
115
  }
235
116
 
236
117
  declare class MenuItemComponent extends BaseButtonWithLabel {
237
118
  translateLabel: InputSignal<boolean>;
238
119
  trigger: InputSignal<any>;
239
120
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
240
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "app-menu-item", never, { "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
121
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "cauca-menu-item", never, { "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
241
122
  }
242
123
 
243
124
  declare class RaisedButtonComponent extends BaseButtonWithLabel {
244
125
  static ɵfac: i0.ɵɵFactoryDeclaration<RaisedButtonComponent, never>;
245
- static ɵcmp: i0.ɵɵComponentDeclaration<RaisedButtonComponent, "app-raised-button", never, {}, {}, never, never, true, never>;
126
+ static ɵcmp: i0.ɵɵComponentDeclaration<RaisedButtonComponent, "cauca-raised-button", never, {}, {}, never, never, true, never>;
246
127
  }
247
128
 
248
129
  declare class RefreshButtonComponent {
@@ -250,17 +131,17 @@ declare class RefreshButtonComponent {
250
131
  refreshEvent: EventEmitter<void>;
251
132
  refresh(): void;
252
133
  static ɵfac: i0.ɵɵFactoryDeclaration<RefreshButtonComponent, never>;
253
- static ɵcmp: i0.ɵɵComponentDeclaration<RefreshButtonComponent, "app-refresh-button", never, { "inProgress": { "alias": "inProgress"; "required": false; }; }, { "refreshEvent": "refreshEvent"; }, never, never, true, never>;
134
+ static ɵcmp: i0.ɵɵComponentDeclaration<RefreshButtonComponent, "cauca-refresh-button", never, { "inProgress": { "alias": "inProgress"; "required": false; }; }, { "refreshEvent": "refreshEvent"; }, never, never, true, never>;
254
135
  }
255
136
 
256
137
  declare class RoundButtonComponent extends BaseButtonWithLabel {
257
138
  static ɵfac: i0.ɵɵFactoryDeclaration<RoundButtonComponent, never>;
258
- static ɵcmp: i0.ɵɵComponentDeclaration<RoundButtonComponent, "app-round-button", never, {}, {}, never, never, true, never>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<RoundButtonComponent, "cauca-round-button", never, {}, {}, never, never, true, never>;
259
140
  }
260
141
 
261
142
  declare class StrokedButtonComponent extends BaseButtonWithLabel {
262
143
  static ɵfac: i0.ɵɵFactoryDeclaration<StrokedButtonComponent, never>;
263
- static ɵcmp: i0.ɵɵComponentDeclaration<StrokedButtonComponent, "app-stroked-button", never, {}, {}, never, never, true, never>;
144
+ static ɵcmp: i0.ɵɵComponentDeclaration<StrokedButtonComponent, "cauca-stroked-button", never, {}, {}, never, never, true, never>;
264
145
  }
265
146
 
266
147
  declare class ButtonComponent {
@@ -273,7 +154,393 @@ declare class ButtonComponent {
273
154
  type: 'basic' | 'raised' | 'stroked' | 'flat' | 'icon' | 'fab';
274
155
  buttonClick: EventEmitter<void>;
275
156
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
276
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "app-button", never, { "class": { "alias": "class"; "required": false; }; "inProgress": { "alias": "inProgress"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
157
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "cauca-button", never, { "class": { "alias": "class"; "required": false; }; "inProgress": { "alias": "inProgress"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
158
+ }
159
+
160
+ declare class DialogService {
161
+ private readonly defaultConfirmationOptions;
162
+ private readonly translate;
163
+ private readonly dialog;
164
+ showDialog(title: string, message: string): Promise<any>;
165
+ showCustomDialog(component: ComponentType<unknown>, args: any, options?: any): Promise<any>;
166
+ askForConfirmation(title: string, message: string, args?: Partial<ConfirmationOptions>, options?: any): Promise<ConfirmationResult>;
167
+ askForDeleteConfirmation(name: string, type: string, translateType?: boolean): Promise<any>;
168
+ showDeletionError(name: string): Promise<any>;
169
+ input(inputOptions: InputOptions, optionsDialog?: any, value?: string, suffix?: string): Promise<{
170
+ result: ConfirmationResult;
171
+ value: string;
172
+ }>;
173
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
174
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
175
+ }
176
+ interface ConfirmationOptions {
177
+ noText: string;
178
+ noColor: string;
179
+ noType?: 'basic' | 'raised' | 'stroked' | 'flat' | 'icon';
180
+ yesText: string;
181
+ yesColor: string;
182
+ yesType?: 'basic' | 'raised' | 'stroked' | 'flat' | 'icon';
183
+ messageArgs: any;
184
+ titleArgs: any;
185
+ }
186
+ declare enum ConfirmationResult {
187
+ Cancel = 0,
188
+ Yes = 1,
189
+ No = 2
190
+ }
191
+ interface InputOptions {
192
+ titleLabel: string;
193
+ validateButtonLabel: string;
194
+ cancelButtonLabel: string;
195
+ inputLabel: string;
196
+ useTextArea?: boolean;
197
+ validators?: ValidatorFn | ValidatorFn[];
198
+ }
199
+
200
+ declare class LoadingStateService {
201
+ showLoadingIndicator: Signal<boolean>;
202
+ showError: Signal<boolean>;
203
+ private readonly isLoading;
204
+ private readonly hasError;
205
+ showLoading(): void;
206
+ hideLoading(): void;
207
+ withLoadingIndicator<T>(observable$: Observable<T>): Observable<T>;
208
+ private startLoading;
209
+ private handleError;
210
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingStateService, never>;
211
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadingStateService>;
212
+ }
213
+
214
+ declare class LoadingErrorComponent {
215
+ retryRequest: EventEmitter<void>;
216
+ readonly loadingState: LoadingStateService;
217
+ showError: i0.Signal<boolean>;
218
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingErrorComponent, never>;
219
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoadingErrorComponent, "cauca-loading-error", never, {}, { "retryRequest": "retryRequest"; }, never, never, true, never>;
220
+ }
221
+
222
+ declare class LoadingSpinnerIndicatorComponent {
223
+ diameter: InputSignal<number>;
224
+ loadingState: LoadingStateService;
225
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerIndicatorComponent, never>;
226
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoadingSpinnerIndicatorComponent, "cauca-loading-spinner-indicator", never, { "diameter": { "alias": "diameter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
227
+ }
228
+
229
+ declare class SnackBarComponent {
230
+ icon: InputSignal<string>;
231
+ caption: InputSignal<string>;
232
+ showCloseButton: InputSignal<boolean>;
233
+ type: InputSignal<'info' | 'success' | 'warning' | 'error'>;
234
+ variant: InputSignal<'filled' | 'outlined' | 'standard'>;
235
+ appearanceClasses: Signal<("error" | "info" | "success" | "warning" | "filled" | "outlined" | "standard")[]>;
236
+ buttonSpecificColor: InputSignal<string>;
237
+ buttonIcon: InputSignal<string>;
238
+ inProgress: InputSignal<boolean>;
239
+ showButton: InputSignal<boolean>;
240
+ buttonLabel: InputSignal<string>;
241
+ buttonColor: Signal<string>;
242
+ closeClick: EventEmitter<void>;
243
+ buttonClick: EventEmitter<void>;
244
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarComponent, never>;
245
+ static ɵcmp: i0.ɵɵComponentDeclaration<SnackBarComponent, "cauca-snackbar", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "buttonSpecificColor": { "alias": "buttonSpecificColor"; "required": false; "isSignal": true; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; "isSignal": true; }; "inProgress": { "alias": "inProgress"; "required": false; "isSignal": true; }; "showButton": { "alias": "showButton"; "required": false; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; }, { "closeClick": "closeClick"; "buttonClick": "buttonClick"; }, never, ["*"], true, never>;
246
+ }
247
+
248
+ declare class BadgeComponent {
249
+ icon: i0.InputSignal<string>;
250
+ label: i0.InputSignal<string>;
251
+ color: i0.InputSignal<string>;
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
253
+ static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "cauca-badge", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
254
+ }
255
+
256
+ declare class IconComponent {
257
+ isFontAwesome: boolean;
258
+ faIcon: string[];
259
+ image: string;
260
+ set icon(value: string);
261
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
262
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "cauca-icon", never, { "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, true, never>;
263
+ }
264
+
265
+ declare class ListPaginatorComponent {
266
+ itemsCount: InputSignal<number>;
267
+ showTotalPage: InputSignal<number>;
268
+ pageSize: InputSignal<number>;
269
+ pageCount: Signal<number>;
270
+ pages: Signal<number[]>;
271
+ currentPage: WritableSignal<number>;
272
+ previousDisabled: Signal<boolean>;
273
+ nextDisabled: Signal<boolean>;
274
+ pagesToShow: Signal<number[]>;
275
+ pageChange: EventEmitter<number>;
276
+ get pageSplitter(): string;
277
+ get pageSplitterValue(): number;
278
+ changePage(page: number): void;
279
+ moveToFirst(): void;
280
+ tryMoveToFirst(): void;
281
+ tryMoveToLast(): void;
282
+ tryMoveToPrevious(): void;
283
+ tryMoveToNext(): void;
284
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListPaginatorComponent, never>;
285
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListPaginatorComponent, "cauca-list-paginator", never, { "itemsCount": { "alias": "itemsCount"; "required": false; "isSignal": true; }; "showTotalPage": { "alias": "showTotalPage"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
286
+ }
287
+
288
+ declare class PasswordValidation {
289
+ hasMinimumCharacters: boolean;
290
+ hasMinimumNumeric: boolean;
291
+ hasLowerAndUppercase: boolean;
292
+ hasSpecialCharacter: boolean;
293
+ hasIdenticalPassword: boolean;
294
+ constructor(hasMinimumCharacters?: boolean, hasMinimumNumeric?: boolean, hasLowerAndUppercase?: boolean, hasSpecialCharacter?: boolean, hasIdenticalPassword?: boolean);
295
+ isValid(): boolean;
296
+ }
297
+
298
+ declare class PasswordCriteriaViewerComponent {
299
+ passwordValidation: InputSignal<PasswordValidation>;
300
+ disabled: InputSignal<boolean>;
301
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordCriteriaViewerComponent, never>;
302
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordCriteriaViewerComponent, "cauca-password-criteria-viewer", never, { "passwordValidation": { "alias": "passwordValidation"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
303
+ }
304
+
305
+ declare class PasswordSelectionComponent implements ControlValueAccessor {
306
+ form: UntypedFormGroup;
307
+ passwordValidation: PasswordValidation$1;
308
+ disabled: boolean;
309
+ direction: 'row' | 'column';
310
+ formWidth: string;
311
+ showCriteriaOnlyWhenPasswordHasValue: i0.InputSignal<boolean>;
312
+ alwaysShowCriteria: i0.InputSignal<boolean>;
313
+ showCriteria: i0.WritableSignal<boolean>;
314
+ passwordLabel: i0.InputSignal<string>;
315
+ passwordConfirmationLabel: i0.InputSignal<string>;
316
+ hasValueChange: i0.OutputEmitterRef<boolean>;
317
+ private lastPasswordValidationSent;
318
+ constructor(formBuilder: UntypedFormBuilder);
319
+ writeValue(value: string): void;
320
+ registerOnChange(fn: any): void;
321
+ registerOnTouched(fn: any): void;
322
+ setDisabledState?(isDisabled: boolean): void;
323
+ onChange: (value: string) => string;
324
+ onTouched: () => void;
325
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordSelectionComponent, never>;
326
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordSelectionComponent, "cauca-password-selection", never, { "direction": { "alias": "direction"; "required": false; }; "formWidth": { "alias": "formWidth"; "required": false; }; "showCriteriaOnlyWhenPasswordHasValue": { "alias": "showCriteriaOnlyWhenPasswordHasValue"; "required": false; "isSignal": true; }; "alwaysShowCriteria": { "alias": "alwaysShowCriteria"; "required": false; "isSignal": true; }; "passwordLabel": { "alias": "passwordLabel"; "required": false; "isSignal": true; }; "passwordConfirmationLabel": { "alias": "passwordConfirmationLabel"; "required": false; "isSignal": true; }; }, { "hasValueChange": "hasValueChange"; }, never, ["*"], true, never>;
327
+ }
328
+
329
+ declare class PasswordInputComponent implements ControlValueAccessor {
330
+ autocomplete: InputSignal<string>;
331
+ translateLabel: InputSignal<boolean>;
332
+ label: InputSignal<string>;
333
+ translatePlaceholder: InputSignal<boolean>;
334
+ placeholder: InputSignal<string>;
335
+ required: InputSignal<boolean>;
336
+ enterKeyDown: i0.OutputEmitterRef<void>;
337
+ passwordControl: FormControl;
338
+ disabled: WritableSignal<boolean>;
339
+ showPassword: WritableSignal<boolean>;
340
+ inputType: i0.Signal<"password" | "text">;
341
+ constructor();
342
+ writeValue(value: string): void;
343
+ registerOnChange(fn: any): void;
344
+ registerOnTouched(fn: any): void;
345
+ setDisabledState?(isDisabled: boolean): void;
346
+ onChange: (value: string) => string;
347
+ onTouched: () => void;
348
+ static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
349
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "cauca-password-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "translateLabel": { "alias": "translateLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "translatePlaceholder": { "alias": "translatePlaceholder"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "enterKeyDown": "enterKeyDown"; }, never, never, true, never>;
350
+ }
351
+
352
+ declare class DateRangePickerComponent implements OnInit {
353
+ range: i0.ModelSignal<DateRange>;
354
+ readonly form: FormGroup<{
355
+ from: FormControl<any>;
356
+ to: FormControl<any>;
357
+ }>;
358
+ constructor();
359
+ ngOnInit(): void;
360
+ clear(): void;
361
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
362
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "cauca-date-range-picker", never, { "range": { "alias": "range"; "required": false; "isSignal": true; }; }, { "range": "rangeChange"; }, never, never, true, never>;
363
+ }
364
+ interface DateRange {
365
+ from: Date | null;
366
+ to: Date | null;
367
+ }
368
+
369
+ declare class DropdownChipAutocompleteComponent implements ControlValueAccessor, MatFormFieldControl<any[]>, OnDestroy, DoCheck {
370
+ ngControl: NgControl;
371
+ private readonly parentForm;
372
+ private readonly parentFormGroup;
373
+ private readonly elementRef;
374
+ id: string;
375
+ matAutocomplete: MatAutocomplete;
376
+ matChipInput: ElementRef<HTMLInputElement>;
377
+ matAutocompletePanel: MatAutocompleteTrigger;
378
+ clearAll: EventEmitter<void>;
379
+ listAutoComplete: object[];
380
+ keyValue: string;
381
+ displayValue: string;
382
+ allowRemove: boolean;
383
+ ariaDescribedBy: string;
384
+ canRemoveAll: i0.InputSignal<boolean>;
385
+ hasOptionTemplate: i0.InputSignal<boolean>;
386
+ optionTemplate: TemplateRef<any>;
387
+ stateChanges: Subject<void>;
388
+ static nextId: number;
389
+ focused: boolean;
390
+ touched: boolean;
391
+ errorState: boolean;
392
+ controlType: string;
393
+ separatorKeysCodes: any;
394
+ filteredListAutoComplete: Observable<object[]>;
395
+ private _required;
396
+ private _disabled;
397
+ private _placeholder;
398
+ private _searchValue;
399
+ private selectedValues;
400
+ get searchValue(): string;
401
+ set searchValue(newValue: string);
402
+ get shouldLabelFloat(): boolean;
403
+ get value(): any[];
404
+ set value(values: any[]);
405
+ get required(): boolean;
406
+ set required(req: BooleanInput);
407
+ get disabled(): boolean;
408
+ set disabled(value: BooleanInput);
409
+ get empty(): boolean;
410
+ get placeholder(): string;
411
+ set placeholder(plh: string);
412
+ constructor(ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, elementRef: ElementRef<HTMLElement>);
413
+ ngDoCheck(): void;
414
+ ngOnDestroy(): void;
415
+ onChange: (_: any) => void;
416
+ onTouched: () => void;
417
+ onFocusIn(): void;
418
+ markAsClean(): void;
419
+ onFocusOut(event: FocusEvent): void;
420
+ setDisabledState(isDisabled: boolean): void;
421
+ setDescribedByIds(ids: string[]): void;
422
+ onContainerClick(event: MouseEvent): void;
423
+ writeValue(value: string[] | []): void;
424
+ registerOnChange(fn: any): void;
425
+ registerOnTouched(fn: any): void;
426
+ selectItemOnAutocomplete(e: MatAutocompleteSelectedEvent): void;
427
+ removeSelectedItem(key: any): void;
428
+ getValueDisplay(key: any): string;
429
+ onClearAll(): void;
430
+ private updateErrorState;
431
+ private filterSelectedItem;
432
+ private toLowerCaseAndWithoutDiacritics;
433
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownChipAutocompleteComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }, null]>;
434
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownChipAutocompleteComponent, "cauca-dropdown-chip-autocomplete", never, { "listAutoComplete": { "alias": "listAutoComplete"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "allowRemove": { "alias": "allowRemove"; "required": false; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "canRemoveAll": { "alias": "canRemoveAll"; "required": false; "isSignal": true; }; "hasOptionTemplate": { "alias": "hasOptionTemplate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "clearAll": "clearAll"; }, ["optionTemplate"], never, true, never>;
435
+ }
436
+
437
+ declare class CaucaInputFileComponent implements OnInit {
438
+ file: ElementRef;
439
+ readend: EventEmitter<any>;
440
+ accept: string;
441
+ multiple: boolean;
442
+ icon: string;
443
+ text: string;
444
+ private labels;
445
+ private readonly translateService;
446
+ private readonly dialog;
447
+ ngOnInit(): void;
448
+ onSelectFile(e: any): void;
449
+ openDialog(event: any): void;
450
+ private onError;
451
+ private onReadEnd;
452
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputFileComponent, never>;
453
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputFileComponent, "cauca-input-file", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "readend": "readend"; }, never, never, true, never>;
454
+ }
455
+
456
+ declare class CaucaInputMultipleLangueComponent implements OnInit {
457
+ value: string[];
458
+ config: Configuration;
459
+ forms: UntypedFormControl[];
460
+ labels: string[];
461
+ selectedIndex: number;
462
+ private readonly translate;
463
+ constructor();
464
+ ngOnInit(): void;
465
+ onTagChanged(tabIndex: number): void;
466
+ getErrorMessage(index: any): string;
467
+ private initializeForms;
468
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaucaInputMultipleLangueComponent, never>;
469
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaInputMultipleLangueComponent, "cauca-input-multiple-langue", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
470
+ }
471
+
472
+ declare class MenuItem {
473
+ label: string;
474
+ path: string;
475
+ icon: string | string[];
476
+ activated: boolean;
477
+ childs: MenuItem[];
478
+ constructor(label: string, path: string, icon?: string | string[]);
479
+ }
480
+
481
+ declare class CaucaMenuSidebarComponent {
482
+ menuItems: MenuItem[];
483
+ version: string;
484
+ private hostElement;
485
+ private keepMenuExpanded;
486
+ constructor();
487
+ onResize(_e: any): void;
488
+ onMenuItemClick(): void;
489
+ hideOnMobile(): void;
490
+ showOnMobile(): void;
491
+ onToggleCollapse(): void;
492
+ private setDisplayMenu;
493
+ private onMouseOver;
494
+ private onMouseOut;
495
+ private onExpandedMenu;
496
+ private onCollapseMenu;
497
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuSidebarComponent, never>;
498
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuSidebarComponent, "cauca-menu-sidebar", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "version": { "alias": "version"; "required": false; }; }, {}, never, ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"], true, never>;
499
+ }
500
+
501
+ declare class CaucaMenuVerticalComponent {
502
+ itemClick: EventEmitter<any>;
503
+ menuItems: MenuItem[];
504
+ private readonly router;
505
+ constructor();
506
+ goTo(path: string, e: any): void;
507
+ private selectActiveRoute;
508
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaucaMenuVerticalComponent, never>;
509
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaMenuVerticalComponent, "cauca-menu-vertical", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
510
+ }
511
+
512
+ declare class SimpleDialogData {
513
+ title: string;
514
+ message: string;
515
+ buttons: string[];
516
+ }
517
+
518
+ declare class CaucaSimpleDialogComponent {
519
+ readonly data: SimpleDialogData;
520
+ private readonly dialogRef;
521
+ onClick(buttonIndex: number): void;
522
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSimpleDialogComponent, never>;
523
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSimpleDialogComponent, "cauca-simple-dialog", never, {}, {}, never, never, true, never>;
524
+ }
525
+
526
+ declare class CaucaSlideshowComponent implements OnInit {
527
+ container: ElementRef;
528
+ height: string;
529
+ autoPlay: boolean;
530
+ private timer;
531
+ private items;
532
+ private states;
533
+ private selectedIndex;
534
+ set images(list: string[]);
535
+ get images(): string[];
536
+ ngOnInit(): void;
537
+ getState(index: number): string;
538
+ restart(): void;
539
+ next(): void;
540
+ private changed;
541
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaucaSlideshowComponent, never>;
542
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaSlideshowComponent, "cauca-slideshow", never, { "height": { "alias": "height"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, true, never>;
277
543
  }
278
544
 
279
- export { BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialModule, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, FabButtonComponent, FlatButtonComponent, IconButtonComponent, LinkButtonComponent, MenuItem, MenuItemComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, StrokedButtonComponent };
545
+ export { BadgeComponent, BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, FabButtonComponent, FlatButtonComponent, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MenuItem, MenuItemComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SnackBarComponent, StrokedButtonComponent };
546
+ export type { ConfirmationOptions, DateRange, InputOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cauca-911/material",
3
- "version": "20.0.2",
3
+ "version": "20.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.1.3",
6
6
  "@angular/core": ">=20.1.3",