@sgcloud-sgsistemas/angular-components 0.0.4 → 0.0.5
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
|
@@ -69,13 +69,14 @@ declare abstract class AcInput {
|
|
|
69
69
|
buildTitleSpace: boolean;
|
|
70
70
|
debounce: number;
|
|
71
71
|
onChangeModel: Function | null;
|
|
72
|
+
applyFormatText: Function | null;
|
|
72
73
|
modelChange: EventEmitter<string>;
|
|
73
74
|
private inputSubject;
|
|
74
75
|
constructor();
|
|
75
76
|
ngOnInit(): void;
|
|
76
77
|
onChange(value: string): void;
|
|
77
78
|
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>;
|
|
79
|
+
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
80
|
}
|
|
80
81
|
|
|
81
82
|
declare class AcInputPassword extends AcInput {
|
|
@@ -93,7 +94,7 @@ declare class AcInputText extends AcInput {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
declare abstract class AcInputMaskNumber {
|
|
96
|
-
model: string | undefined;
|
|
97
|
+
model: number | string | undefined;
|
|
97
98
|
disabled: boolean;
|
|
98
99
|
placeholder: string;
|
|
99
100
|
title: string;
|
|
@@ -106,7 +107,7 @@ declare abstract class AcInputMaskNumber {
|
|
|
106
107
|
constructor();
|
|
107
108
|
ngOnInit(): void;
|
|
108
109
|
ngOnChanges(changes: SimpleChanges): void;
|
|
109
|
-
abstract applyMask(value: string | undefined, limitLength: boolean): string;
|
|
110
|
+
abstract applyMask(value: string | number | undefined, limitLength: boolean): string;
|
|
110
111
|
onChange(value: string): void;
|
|
111
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputMaskNumber, never>;
|
|
112
113
|
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 +141,13 @@ declare abstract class AcInputDateTimeDefault {
|
|
|
140
141
|
time: string;
|
|
141
142
|
constructor();
|
|
142
143
|
ngOnInit(): void;
|
|
143
|
-
|
|
144
|
+
protected applyMask(): void;
|
|
144
145
|
ngOnChanges(changes: SimpleChanges): void;
|
|
145
146
|
onChangeDate(event: any): void;
|
|
146
147
|
onChangeTime(event: any): void;
|
|
147
148
|
private updateNgModel;
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
protected formatDate(date: Date): string;
|
|
150
|
+
protected formatTime(date: Date): string;
|
|
150
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputDateTimeDefault, never>;
|
|
151
152
|
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
153
|
}
|
|
@@ -159,12 +160,14 @@ declare class AcInputDateTime extends AcInputDateTimeDefault {
|
|
|
159
160
|
|
|
160
161
|
declare class AcInputDate extends AcInputDateTimeDefault {
|
|
161
162
|
constructor();
|
|
163
|
+
protected applyMask(): void;
|
|
162
164
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputDate, never>;
|
|
163
165
|
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputDate, "ac-input-date", never, {}, {}, never, never, true, never>;
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
declare class AcInputTime extends AcInputDateTimeDefault {
|
|
167
169
|
constructor();
|
|
170
|
+
protected applyMask(): void;
|
|
168
171
|
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputTime, never>;
|
|
169
172
|
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputTime, "ac-input-time", never, {}, {}, never, never, true, never>;
|
|
170
173
|
}
|
|
@@ -195,6 +198,52 @@ declare class AcInputFile {
|
|
|
195
198
|
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
199
|
}
|
|
197
200
|
|
|
201
|
+
declare class AcInputPercentage extends AcInputMaskNumber {
|
|
202
|
+
decimalPlaces: number;
|
|
203
|
+
private isUserTyping;
|
|
204
|
+
private rawValue;
|
|
205
|
+
private numberInputSubject;
|
|
206
|
+
applyMask(value: string | number | undefined): string;
|
|
207
|
+
onChange(value: string): void;
|
|
208
|
+
private emitValue;
|
|
209
|
+
onBlur(): void;
|
|
210
|
+
onFocus(): void;
|
|
211
|
+
ngOnInit(): void;
|
|
212
|
+
private sanitizeDecimal;
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputPercentage, never>;
|
|
214
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputPercentage, "ac-input-percentage", never, { "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
declare class AcInputNumber extends AcInputMaskNumber {
|
|
218
|
+
decimalPlaces: number;
|
|
219
|
+
numberModelChange: EventEmitter<number>;
|
|
220
|
+
private numberInputSubject;
|
|
221
|
+
applyMask(value: string | number | undefined, limitLength?: boolean): string;
|
|
222
|
+
onChange(value: string): void;
|
|
223
|
+
private emitValue;
|
|
224
|
+
formatDecimal(): void;
|
|
225
|
+
private convertToNumber;
|
|
226
|
+
ngOnInit(): void;
|
|
227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputNumber, never>;
|
|
228
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputNumber, "ac-input-number", never, { "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, { "numberModelChange": "numberModelChange"; }, never, never, true, never>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class AcInputMoney extends AcInputMaskNumber {
|
|
232
|
+
decimalPlaces: number;
|
|
233
|
+
private isUserTyping;
|
|
234
|
+
private rawValue;
|
|
235
|
+
private numberInputSubject;
|
|
236
|
+
applyMask(value: string | number | undefined): string;
|
|
237
|
+
onChange(value: string): void;
|
|
238
|
+
private emitValue;
|
|
239
|
+
onBlur(): void;
|
|
240
|
+
onFocus(): void;
|
|
241
|
+
private sanitizeDecimal;
|
|
242
|
+
ngOnInit(): void;
|
|
243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcInputMoney, never>;
|
|
244
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcInputMoney, "ac-input-money", never, { "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
245
|
+
}
|
|
246
|
+
|
|
198
247
|
declare class AcActionLink {
|
|
199
248
|
disabled: boolean;
|
|
200
249
|
title: string;
|
|
@@ -389,8 +438,8 @@ declare class AcList {
|
|
|
389
438
|
|
|
390
439
|
declare class ComponentsModule {
|
|
391
440
|
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]>;
|
|
441
|
+
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 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]>;
|
|
393
442
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
394
443
|
}
|
|
395
444
|
|
|
396
|
-
export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputPassword, AcInputPhoneNumber, AcInputText, AcInputTime, AcList, AcNotification, AcPagination, AcProgressBar, AcSelect, AcSideMenu, AcSwitch, ComponentsModule };
|
|
445
|
+
export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputMoney, AcInputNumber, AcInputPassword, AcInputPercentage, AcInputPhoneNumber, AcInputText, AcInputTime, AcList, AcNotification, AcPagination, AcProgressBar, AcSelect, AcSideMenu, AcSwitch, ComponentsModule };
|