@sgcloud-sgsistemas/angular-components 0.0.4 → 0.0.6
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,7 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { SimpleChanges, EventEmitter, ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { SimpleChanges, EventEmitter, ElementRef, TemplateRef, AfterContentInit, QueryList } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { Subject, Observable } from 'rxjs';
|
|
5
|
+
import * as i26 from '@angular/cdk/scrolling';
|
|
5
6
|
|
|
6
7
|
declare class AcButton {
|
|
7
8
|
disabled: boolean;
|
|
@@ -69,13 +70,14 @@ declare abstract class AcInput {
|
|
|
69
70
|
buildTitleSpace: boolean;
|
|
70
71
|
debounce: number;
|
|
71
72
|
onChangeModel: Function | null;
|
|
73
|
+
applyFormatText: Function | null;
|
|
72
74
|
modelChange: EventEmitter<string>;
|
|
73
75
|
private inputSubject;
|
|
74
76
|
constructor();
|
|
75
77
|
ngOnInit(): void;
|
|
76
78
|
onChange(value: string): void;
|
|
77
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInput, never>;
|
|
78
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AcInput, never, never, { "model": { "alias": "model"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "title": { "alias": "title"; "required": false; }; "buildTitleSpace": { "alias": "buildTitleSpace"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "onChangeModel": { "alias": "onChangeModel"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, true, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AcInput, never, never, { "model": { "alias": "model"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "title": { "alias": "title"; "required": false; }; "buildTitleSpace": { "alias": "buildTitleSpace"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "onChangeModel": { "alias": "onChangeModel"; "required": false; }; "applyFormatText": { "alias": "applyFormatText"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, true, never>;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
declare class AcInputPassword extends AcInput {
|
|
@@ -93,7 +95,7 @@ declare class AcInputText extends AcInput {
|
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
declare abstract class AcInputMaskNumber {
|
|
96
|
-
model: string | undefined;
|
|
98
|
+
model: number | string | undefined;
|
|
97
99
|
disabled: boolean;
|
|
98
100
|
placeholder: string;
|
|
99
101
|
title: string;
|
|
@@ -106,7 +108,7 @@ declare abstract class AcInputMaskNumber {
|
|
|
106
108
|
constructor();
|
|
107
109
|
ngOnInit(): void;
|
|
108
110
|
ngOnChanges(changes: SimpleChanges): void;
|
|
109
|
-
abstract applyMask(value: string | undefined, limitLength: boolean): string;
|
|
111
|
+
abstract applyMask(value: string | number | undefined, limitLength: boolean): string;
|
|
110
112
|
onChange(value: string): void;
|
|
111
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputMaskNumber, never>;
|
|
112
114
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AcInputMaskNumber, never, never, { "model": { "alias": "model"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "title": { "alias": "title"; "required": false; }; "buildTitleSpace": { "alias": "buildTitleSpace"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "onChangeModel": { "alias": "onChangeModel"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, true, never>;
|
|
@@ -140,13 +142,13 @@ declare abstract class AcInputDateTimeDefault {
|
|
|
140
142
|
time: string;
|
|
141
143
|
constructor();
|
|
142
144
|
ngOnInit(): void;
|
|
143
|
-
|
|
145
|
+
protected applyMask(): void;
|
|
144
146
|
ngOnChanges(changes: SimpleChanges): void;
|
|
145
147
|
onChangeDate(event: any): void;
|
|
146
148
|
onChangeTime(event: any): void;
|
|
147
149
|
private updateNgModel;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
protected formatDate(date: Date): string;
|
|
151
|
+
protected formatTime(date: Date): string;
|
|
150
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputDateTimeDefault, never>;
|
|
151
153
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AcInputDateTimeDefault, never, never, { "model": { "alias": "model"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; "buildTitleSpace": { "alias": "buildTitleSpace"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "onChangeModel": { "alias": "onChangeModel"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, true, never>;
|
|
152
154
|
}
|
|
@@ -159,12 +161,14 @@ declare class AcInputDateTime extends AcInputDateTimeDefault {
|
|
|
159
161
|
|
|
160
162
|
declare class AcInputDate extends AcInputDateTimeDefault {
|
|
161
163
|
constructor();
|
|
164
|
+
protected applyMask(): void;
|
|
162
165
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputDate, never>;
|
|
163
166
|
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputDate, "ac-input-date", never, {}, {}, never, never, true, never>;
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
declare class AcInputTime extends AcInputDateTimeDefault {
|
|
167
170
|
constructor();
|
|
171
|
+
protected applyMask(): void;
|
|
168
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputTime, never>;
|
|
169
173
|
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputTime, "ac-input-time", never, {}, {}, never, never, true, never>;
|
|
170
174
|
}
|
|
@@ -195,6 +199,52 @@ declare class AcInputFile {
|
|
|
195
199
|
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputFile, "ac-input-file", never, { "model": { "alias": "model"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; "buildTitleSpace": { "alias": "buildTitleSpace"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, { "onSelectFile": "onSelectFile"; "onUnselectFile": "onUnselectFile"; }, never, never, true, never>;
|
|
196
200
|
}
|
|
197
201
|
|
|
202
|
+
declare class AcInputPercentage extends AcInputMaskNumber {
|
|
203
|
+
decimalPlaces: number;
|
|
204
|
+
private isUserTyping;
|
|
205
|
+
private rawValue;
|
|
206
|
+
private numberInputSubject;
|
|
207
|
+
applyMask(value: string | number | undefined): string;
|
|
208
|
+
onChange(value: string): void;
|
|
209
|
+
private emitValue;
|
|
210
|
+
onBlur(): void;
|
|
211
|
+
onFocus(): void;
|
|
212
|
+
ngOnInit(): void;
|
|
213
|
+
private sanitizeDecimal;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputPercentage, never>;
|
|
215
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputPercentage, "ac-input-percentage", never, { "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare class AcInputNumber extends AcInputMaskNumber {
|
|
219
|
+
decimalPlaces: number;
|
|
220
|
+
numberModelChange: EventEmitter<number>;
|
|
221
|
+
private numberInputSubject;
|
|
222
|
+
applyMask(value: string | number | undefined, limitLength?: boolean): string;
|
|
223
|
+
onChange(value: string): void;
|
|
224
|
+
private emitValue;
|
|
225
|
+
formatDecimal(): void;
|
|
226
|
+
private convertToNumber;
|
|
227
|
+
ngOnInit(): void;
|
|
228
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputNumber, never>;
|
|
229
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputNumber, "ac-input-number", never, { "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, { "numberModelChange": "numberModelChange"; }, never, never, true, never>;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare class AcInputMoney extends AcInputMaskNumber {
|
|
233
|
+
decimalPlaces: number;
|
|
234
|
+
private isUserTyping;
|
|
235
|
+
private rawValue;
|
|
236
|
+
private numberInputSubject;
|
|
237
|
+
applyMask(value: string | number | undefined): string;
|
|
238
|
+
onChange(value: string): void;
|
|
239
|
+
private emitValue;
|
|
240
|
+
onBlur(): void;
|
|
241
|
+
onFocus(): void;
|
|
242
|
+
private sanitizeDecimal;
|
|
243
|
+
ngOnInit(): void;
|
|
244
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputMoney, never>;
|
|
245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputMoney, "ac-input-money", never, { "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
246
|
+
}
|
|
247
|
+
|
|
198
248
|
declare class AcActionLink {
|
|
199
249
|
disabled: boolean;
|
|
200
250
|
title: string;
|
|
@@ -387,10 +437,43 @@ declare class AcList {
|
|
|
387
437
|
static ɵcmp: i0.ɵɵComponentDeclaration<AcList, "ac-list", never, { "columns": { "alias": "columns"; "required": false; }; "list": { "alias": "list"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "sortColumn": { "alias": "sortColumn"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; }, {}, never, never, true, never>;
|
|
388
438
|
}
|
|
389
439
|
|
|
440
|
+
declare class AcListV2Column {
|
|
441
|
+
name: string;
|
|
442
|
+
label?: string;
|
|
443
|
+
sortable: boolean;
|
|
444
|
+
alignColumn: string;
|
|
445
|
+
alignRow: string;
|
|
446
|
+
contentTpl?: TemplateRef<any>;
|
|
447
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcListV2Column, never>;
|
|
448
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcListV2Column, "ac-list-v2-column", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "alignColumn": { "alias": "alignColumn"; "required": false; }; "alignRow": { "alias": "alignRow"; "required": false; }; }, {}, ["contentTpl"], never, true, never>;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
declare class AcListV2 implements AfterContentInit {
|
|
452
|
+
list: any[];
|
|
453
|
+
itemSize: number;
|
|
454
|
+
columns: QueryList<AcListV2Column>;
|
|
455
|
+
columnsArr: AcListV2Column[];
|
|
456
|
+
sortColumn: string;
|
|
457
|
+
sortDirection: 'ASC' | 'DESC' | 'NONE';
|
|
458
|
+
ngAfterContentInit(): void;
|
|
459
|
+
onSort(column: AcListV2Column): void;
|
|
460
|
+
getSortedList(): any[];
|
|
461
|
+
get shouldUseVirtualScroll(): boolean;
|
|
462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcListV2, never>;
|
|
463
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcListV2, "ac-list-v2", never, { "list": { "alias": "list"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; }, {}, ["columns"], never, true, never>;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
declare class AcListV2Content {
|
|
467
|
+
template: TemplateRef<any>;
|
|
468
|
+
constructor(template: TemplateRef<any>);
|
|
469
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcListV2Content, never>;
|
|
470
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AcListV2Content, "[ac-list-v2-content]", never, {}, {}, never, never, true, never>;
|
|
471
|
+
}
|
|
472
|
+
|
|
390
473
|
declare class ComponentsModule {
|
|
391
474
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
392
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule, typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList], [typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList]>;
|
|
475
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule, typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcInputPercentage, typeof AcInputNumber, typeof AcInputMoney, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList, typeof AcListV2, typeof AcListV2Column, typeof AcListV2Content, typeof i26.ScrollingModule], [typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcInputPercentage, typeof AcInputNumber, typeof AcInputMoney, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList, typeof AcListV2, typeof AcListV2Column, typeof AcListV2Content]>;
|
|
393
476
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
394
477
|
}
|
|
395
478
|
|
|
396
|
-
export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputPassword, AcInputPhoneNumber, AcInputText, AcInputTime, AcList, AcNotification, AcPagination, AcProgressBar, AcSelect, AcSideMenu, AcSwitch, ComponentsModule };
|
|
479
|
+
export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputMoney, AcInputNumber, AcInputPassword, AcInputPercentage, AcInputPhoneNumber, AcInputText, AcInputTime, AcList, AcListV2, AcListV2Column, AcListV2Content, AcNotification, AcPagination, AcProgressBar, AcSelect, AcSideMenu, AcSwitch, ComponentsModule };
|