@experteam-mx/ngx-input-number 4.1.32 → 18.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.
- package/esm2022/experteam-mx-ngx-input-number.mjs +5 -0
- package/esm2022/lib/di.mjs +3 -0
- package/esm2022/lib/ngx-input-number.component.mjs +165 -0
- package/esm2022/lib/ngx-input-number.module.mjs +48 -0
- package/esm2022/lib/ngx-input-number.service.mjs +64 -0
- package/esm2022/lib/types.mjs +12 -0
- package/esm2022/lib/typesProvider.mjs +33 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/experteam-mx-ngx-input-number.mjs +324 -0
- package/fesm2022/experteam-mx-ngx-input-number.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/di.d.ts +3 -3
- package/lib/ngx-input-number.component.d.ts +37 -48
- package/lib/ngx-input-number.module.d.ts +13 -13
- package/lib/ngx-input-number.service.d.ts +18 -18
- package/lib/types.d.ts +12 -12
- package/lib/typesProvider.d.ts +19 -19
- package/package.json +44 -24
- package/public-api.d.ts +4 -4
- package/esm2020/experteam-mx-ngx-input-number.mjs +0 -5
- package/esm2020/lib/di.mjs +0 -3
- package/esm2020/lib/ngx-input-number.component.mjs +0 -281
- package/esm2020/lib/ngx-input-number.module.mjs +0 -48
- package/esm2020/lib/ngx-input-number.service.mjs +0 -66
- package/esm2020/lib/types.mjs +0 -5
- package/esm2020/lib/typesProvider.mjs +0 -30
- package/esm2020/public-api.mjs +0 -9
- package/fesm2015/experteam-mx-ngx-input-number.mjs +0 -436
- package/fesm2015/experteam-mx-ngx-input-number.mjs.map +0 -1
- package/fesm2020/experteam-mx-ngx-input-number.mjs +0 -431
- package/fesm2020/experteam-mx-ngx-input-number.mjs.map +0 -1
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, InjectionToken, Optional, Inject, Component, ViewChild, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import * as i3 from 'angular-imask';
|
|
5
|
+
import { IMaskDirective, IMaskModule } from 'angular-imask';
|
|
6
|
+
import * as i2 from '@angular/forms';
|
|
7
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
|
|
10
|
+
let inputConfigs$1 = class inputConfigs {
|
|
11
|
+
groupSeparator;
|
|
12
|
+
radixPoint;
|
|
13
|
+
};
|
|
14
|
+
class typesProvider {
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: typesProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: typesProvider, providedIn: 'root' });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: typesProvider, decorators: [{
|
|
19
|
+
type: Injectable,
|
|
20
|
+
args: [{ providedIn: 'root' }]
|
|
21
|
+
}] });
|
|
22
|
+
class defaultTypesProvider extends typesProvider {
|
|
23
|
+
get config() {
|
|
24
|
+
// return default config
|
|
25
|
+
return {
|
|
26
|
+
groupSeparator: ',',
|
|
27
|
+
radixPoint: '.'
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: defaultTypesProvider, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: defaultTypesProvider, providedIn: 'root' });
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: defaultTypesProvider, decorators: [{
|
|
34
|
+
type: Injectable,
|
|
35
|
+
args: [{ providedIn: 'root' }]
|
|
36
|
+
}] });
|
|
37
|
+
let inputConfigsHelp$1 = class inputConfigsHelp {
|
|
38
|
+
config;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const INPUT_CONFIG_TOKEN = new InjectionToken('INPUT_CONFIG');
|
|
42
|
+
|
|
43
|
+
class inputConfigs {
|
|
44
|
+
groupSeparator;
|
|
45
|
+
radixPoint;
|
|
46
|
+
lblKeyInvalid;
|
|
47
|
+
max;
|
|
48
|
+
decimals;
|
|
49
|
+
negative;
|
|
50
|
+
}
|
|
51
|
+
class inputConfigsHelp {
|
|
52
|
+
config;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
class NgxInputNumberService {
|
|
56
|
+
config;
|
|
57
|
+
changeEvent = new BehaviorSubject(false);
|
|
58
|
+
groupSeparator = ',';
|
|
59
|
+
radixPoint = '.';
|
|
60
|
+
lblKeyInvalid = 'Please enter a valid amount';
|
|
61
|
+
negative = true;
|
|
62
|
+
max = undefined;
|
|
63
|
+
decimals = 2;
|
|
64
|
+
constructor(config) {
|
|
65
|
+
this.config = config;
|
|
66
|
+
if (config != null) {
|
|
67
|
+
this.groupSeparator = config.groupSeparator;
|
|
68
|
+
this.radixPoint = config.radixPoint;
|
|
69
|
+
this.lblKeyInvalid = config.lblKeyInvalid;
|
|
70
|
+
this.negative = config.negative;
|
|
71
|
+
this.max = config.max;
|
|
72
|
+
this.decimals = config.decimals;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
onChangeParams(config) {
|
|
76
|
+
if (config.groupSeparator) {
|
|
77
|
+
this.groupSeparator = config.groupSeparator;
|
|
78
|
+
}
|
|
79
|
+
if (config.radixPoint) {
|
|
80
|
+
this.radixPoint = config.radixPoint;
|
|
81
|
+
}
|
|
82
|
+
if (config.lblKeyInvalid) {
|
|
83
|
+
this.lblKeyInvalid = config.lblKeyInvalid;
|
|
84
|
+
}
|
|
85
|
+
if (config.negative !== undefined) {
|
|
86
|
+
this.negative = config.negative;
|
|
87
|
+
}
|
|
88
|
+
if (config.max) {
|
|
89
|
+
this.max = config.max;
|
|
90
|
+
}
|
|
91
|
+
if (config.decimals) {
|
|
92
|
+
this.decimals = config.decimals;
|
|
93
|
+
}
|
|
94
|
+
this.changeEvent.next(true);
|
|
95
|
+
}
|
|
96
|
+
getChangeEvent() {
|
|
97
|
+
return this.changeEvent;
|
|
98
|
+
}
|
|
99
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberService, deps: [{ token: INPUT_CONFIG_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
100
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberService, providedIn: 'root' });
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberService, decorators: [{
|
|
103
|
+
type: Injectable,
|
|
104
|
+
args: [{
|
|
105
|
+
providedIn: 'root'
|
|
106
|
+
}]
|
|
107
|
+
}], ctorParameters: () => [{ type: inputConfigs, decorators: [{
|
|
108
|
+
type: Optional
|
|
109
|
+
}, {
|
|
110
|
+
type: Inject,
|
|
111
|
+
args: [INPUT_CONFIG_TOKEN]
|
|
112
|
+
}] }] });
|
|
113
|
+
|
|
114
|
+
class NgxInputNumberComponent {
|
|
115
|
+
_ChangeDetectorRef;
|
|
116
|
+
_NgxInputNumberService;
|
|
117
|
+
inputElement;
|
|
118
|
+
iMaskDir;
|
|
119
|
+
control;
|
|
120
|
+
negative;
|
|
121
|
+
autofocus = false;
|
|
122
|
+
decimals;
|
|
123
|
+
max;
|
|
124
|
+
idForLabel = '';
|
|
125
|
+
tabIndex;
|
|
126
|
+
addClass = 'form-control-sm';
|
|
127
|
+
groupSeparator;
|
|
128
|
+
radixPoint;
|
|
129
|
+
lblKeyInvalid;
|
|
130
|
+
lblKeyInvalidRender;
|
|
131
|
+
imask;
|
|
132
|
+
placeholder = '0';
|
|
133
|
+
resetControl = false;
|
|
134
|
+
prevValue = '';
|
|
135
|
+
constructor(_ChangeDetectorRef, _NgxInputNumberService) {
|
|
136
|
+
this._ChangeDetectorRef = _ChangeDetectorRef;
|
|
137
|
+
this._NgxInputNumberService = _NgxInputNumberService;
|
|
138
|
+
}
|
|
139
|
+
ngAfterViewInit() {
|
|
140
|
+
this.iMaskDir.maskRef?.updateValue();
|
|
141
|
+
if (this.autofocus) {
|
|
142
|
+
setTimeout(() => {
|
|
143
|
+
this.inputElement.nativeElement.focus();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
render() {
|
|
148
|
+
this.control.setValue(String(this.control.value).replace('.', this._NgxInputNumberService.radixPoint));
|
|
149
|
+
this._ChangeDetectorRef.detectChanges();
|
|
150
|
+
this.lblKeyInvalidRender = this._NgxInputNumberService.lblKeyInvalid;
|
|
151
|
+
this.imask = {
|
|
152
|
+
mask: Number,
|
|
153
|
+
scale: this._NgxInputNumberService.decimals,
|
|
154
|
+
thousandsSeparator: this._NgxInputNumberService.groupSeparator,
|
|
155
|
+
padFractionalZeros: true,
|
|
156
|
+
normalizeZeros: true,
|
|
157
|
+
radix: this._NgxInputNumberService.radixPoint,
|
|
158
|
+
max: this._NgxInputNumberService.max,
|
|
159
|
+
min: this._NgxInputNumberService.negative ? -999999999999999999999999999999999 : 0,
|
|
160
|
+
format: (x) => {
|
|
161
|
+
if (typeof x !== 'string' && x === null && !this.resetControl) {
|
|
162
|
+
this.resetControl = true;
|
|
163
|
+
this.inputElement.nativeElement.value = null;
|
|
164
|
+
this.iMaskDir.maskRef?.updateValue();
|
|
165
|
+
setTimeout(() => {
|
|
166
|
+
this.iMaskDir.maskRef?.updateControl();
|
|
167
|
+
this.control.setValue(null);
|
|
168
|
+
this.resetControl = false;
|
|
169
|
+
});
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
return String(x);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
if (this.lblKeyInvalid !== undefined) {
|
|
176
|
+
this.lblKeyInvalidRender = this.lblKeyInvalid;
|
|
177
|
+
}
|
|
178
|
+
if (this.negative !== undefined) {
|
|
179
|
+
this.imask.min = this.negative ? -999999999999999999999999999999999 : 0;
|
|
180
|
+
}
|
|
181
|
+
if (this.max !== undefined) {
|
|
182
|
+
this.imask.max = this.max;
|
|
183
|
+
}
|
|
184
|
+
if (this.groupSeparator !== undefined) {
|
|
185
|
+
this.imask.thousandsSeparator = this.groupSeparator;
|
|
186
|
+
}
|
|
187
|
+
if (this.radixPoint !== undefined) {
|
|
188
|
+
this.imask.radix = this.radixPoint;
|
|
189
|
+
}
|
|
190
|
+
if (this.decimals !== undefined) {
|
|
191
|
+
this.imask.scale = this.decimals;
|
|
192
|
+
}
|
|
193
|
+
setTimeout(() => {
|
|
194
|
+
if (this.inputElement.nativeElement.value == '' && (this.control.value === null || this.control.value === '' || this.control.value === 0)) {
|
|
195
|
+
this.control.setValue('');
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
ngOnInit() {
|
|
200
|
+
this._NgxInputNumberService.getChangeEvent().subscribe((configs) => {
|
|
201
|
+
if (configs) {
|
|
202
|
+
this.render();
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
ngOnChanges() {
|
|
207
|
+
this.render();
|
|
208
|
+
}
|
|
209
|
+
onKeydown(e) {
|
|
210
|
+
this.prevValue = e.target.value;
|
|
211
|
+
}
|
|
212
|
+
onKeyup(e) {
|
|
213
|
+
if (e.target.value == '') {
|
|
214
|
+
this.control.setValue('');
|
|
215
|
+
}
|
|
216
|
+
let scapeKeys = [
|
|
217
|
+
'ArrowLeft',
|
|
218
|
+
'ArrowRight',
|
|
219
|
+
'ArrowUp',
|
|
220
|
+
'ArrowDown',
|
|
221
|
+
'Escape',
|
|
222
|
+
'Backspace',
|
|
223
|
+
'Delete',
|
|
224
|
+
'.',
|
|
225
|
+
',',
|
|
226
|
+
'-',
|
|
227
|
+
];
|
|
228
|
+
if (!scapeKeys.includes(e.key)
|
|
229
|
+
&&
|
|
230
|
+
this.prevValue === e.target.value) {
|
|
231
|
+
this.inputElement.nativeElement.classList.add('key-invalid');
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
this.inputElement.nativeElement.classList.remove('key-invalid');
|
|
234
|
+
}, 1000);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: NgxInputNumberService }], target: i0.ɵɵFactoryTarget.Component });
|
|
238
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: NgxInputNumberComponent, selector: "app-input-number", inputs: { control: "control", negative: "negative", autofocus: "autofocus", decimals: "decimals", max: "max", idForLabel: "idForLabel", tabIndex: "tabIndex", addClass: "addClass", groupSeparator: "groupSeparator", radixPoint: "radixPoint", lblKeyInvalid: "lblKeyInvalid" }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true }, { propertyName: "iMaskDir", first: true, predicate: IMaskDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"position-relative\">\r\n <input\r\n #inputElement\r\n type=\"text\"\r\n class=\"text-end form-control {{ addClass }}\"\r\n [class.is-invalid]=\"control.touched && control.invalid\"\r\n [formControl]=\"control\"\r\n [tabindex]=\"tabIndex\"\r\n [id]=\"idForLabel\"\r\n [imask]=\"imask\"\r\n [unmask]=\"'typed'\"\r\n (keyup)=\"onKeyup($event)\"\r\n (keydown)=\"onKeydown($event)\"\r\n >\r\n <label class=\"lbl-key-invalid position-absolute top-100 end-0 p-2 d-none\" [innerHTML]=\"lblKeyInvalidRender\"></label>\r\n</div>\r\n", styles: ["input.key-invalid{border-color:#dc3545!important;box-shadow:0 0 0 .25rem #dc354540!important}input.key-invalid+.lbl-key-invalid{background-color:#dc3545;color:#fff;display:block!important;z-index:1}\n"], dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }] });
|
|
239
|
+
}
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberComponent, decorators: [{
|
|
241
|
+
type: Component,
|
|
242
|
+
args: [{ selector: 'app-input-number', template: "<div class=\"position-relative\">\r\n <input\r\n #inputElement\r\n type=\"text\"\r\n class=\"text-end form-control {{ addClass }}\"\r\n [class.is-invalid]=\"control.touched && control.invalid\"\r\n [formControl]=\"control\"\r\n [tabindex]=\"tabIndex\"\r\n [id]=\"idForLabel\"\r\n [imask]=\"imask\"\r\n [unmask]=\"'typed'\"\r\n (keyup)=\"onKeyup($event)\"\r\n (keydown)=\"onKeydown($event)\"\r\n >\r\n <label class=\"lbl-key-invalid position-absolute top-100 end-0 p-2 d-none\" [innerHTML]=\"lblKeyInvalidRender\"></label>\r\n</div>\r\n", styles: ["input.key-invalid{border-color:#dc3545!important;box-shadow:0 0 0 .25rem #dc354540!important}input.key-invalid+.lbl-key-invalid{background-color:#dc3545;color:#fff;display:block!important;z-index:1}\n"] }]
|
|
243
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: NgxInputNumberService }], propDecorators: { inputElement: [{
|
|
244
|
+
type: ViewChild,
|
|
245
|
+
args: ['inputElement']
|
|
246
|
+
}], iMaskDir: [{
|
|
247
|
+
type: ViewChild,
|
|
248
|
+
args: [IMaskDirective, { static: false }]
|
|
249
|
+
}], control: [{
|
|
250
|
+
type: Input
|
|
251
|
+
}], negative: [{
|
|
252
|
+
type: Input
|
|
253
|
+
}], autofocus: [{
|
|
254
|
+
type: Input
|
|
255
|
+
}], decimals: [{
|
|
256
|
+
type: Input
|
|
257
|
+
}], max: [{
|
|
258
|
+
type: Input
|
|
259
|
+
}], idForLabel: [{
|
|
260
|
+
type: Input
|
|
261
|
+
}], tabIndex: [{
|
|
262
|
+
type: Input
|
|
263
|
+
}], addClass: [{
|
|
264
|
+
type: Input
|
|
265
|
+
}], groupSeparator: [{
|
|
266
|
+
type: Input
|
|
267
|
+
}], radixPoint: [{
|
|
268
|
+
type: Input
|
|
269
|
+
}], lblKeyInvalid: [{
|
|
270
|
+
type: Input
|
|
271
|
+
}] } });
|
|
272
|
+
|
|
273
|
+
class NgxInputNumberModule {
|
|
274
|
+
static forRoot(config = {}) {
|
|
275
|
+
return {
|
|
276
|
+
ngModule: NgxInputNumberModule,
|
|
277
|
+
providers: [
|
|
278
|
+
config.config || {
|
|
279
|
+
provide: typesProvider,
|
|
280
|
+
useClass: defaultTypesProvider
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
286
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberModule, declarations: [NgxInputNumberComponent], imports: [CommonModule,
|
|
287
|
+
FormsModule,
|
|
288
|
+
ReactiveFormsModule,
|
|
289
|
+
IMaskModule], exports: [NgxInputNumberComponent] });
|
|
290
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberModule, imports: [CommonModule,
|
|
291
|
+
FormsModule,
|
|
292
|
+
ReactiveFormsModule,
|
|
293
|
+
IMaskModule] });
|
|
294
|
+
}
|
|
295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: NgxInputNumberModule, decorators: [{
|
|
296
|
+
type: NgModule,
|
|
297
|
+
args: [{
|
|
298
|
+
declarations: [
|
|
299
|
+
NgxInputNumberComponent
|
|
300
|
+
],
|
|
301
|
+
imports: [
|
|
302
|
+
CommonModule,
|
|
303
|
+
FormsModule,
|
|
304
|
+
ReactiveFormsModule,
|
|
305
|
+
IMaskModule
|
|
306
|
+
],
|
|
307
|
+
exports: [
|
|
308
|
+
NgxInputNumberComponent
|
|
309
|
+
],
|
|
310
|
+
providers: []
|
|
311
|
+
}]
|
|
312
|
+
}] });
|
|
313
|
+
|
|
314
|
+
/*
|
|
315
|
+
* Public API Surface of ngx-input-number
|
|
316
|
+
*/
|
|
317
|
+
// export * from 'ngx-mask';
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Generated bundle index. Do not edit.
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
export { NgxInputNumberComponent, NgxInputNumberModule, NgxInputNumberService, defaultTypesProvider, inputConfigs$1 as inputConfigs, inputConfigsHelp$1 as inputConfigsHelp, typesProvider };
|
|
324
|
+
//# sourceMappingURL=experteam-mx-ngx-input-number.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experteam-mx-ngx-input-number.mjs","sources":["../../../../projects/experteam-mx/ngx-input-number/src/lib/typesProvider.ts","../../../../projects/experteam-mx/ngx-input-number/src/lib/di.ts","../../../../projects/experteam-mx/ngx-input-number/src/lib/types.ts","../../../../projects/experteam-mx/ngx-input-number/src/lib/ngx-input-number.service.ts","../../../../projects/experteam-mx/ngx-input-number/src/lib/ngx-input-number.component.ts","../../../../projects/experteam-mx/ngx-input-number/src/lib/ngx-input-number.component.html","../../../../projects/experteam-mx/ngx-input-number/src/lib/ngx-input-number.module.ts","../../../../projects/experteam-mx/ngx-input-number/src/public-api.ts","../../../../projects/experteam-mx/ngx-input-number/src/experteam-mx-ngx-input-number.ts"],"sourcesContent":["import { Injectable, Provider } from '@angular/core'\r\n\r\nexport class inputConfigs {\r\n groupSeparator?: string\r\n radixPoint?: string\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport abstract class typesProvider {\r\n abstract get config (): inputConfigs;\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class defaultTypesProvider extends typesProvider {\r\n get config (): inputConfigs {\r\n // return default config\r\n return {\r\n groupSeparator: ',',\r\n radixPoint: '.'\r\n }\r\n }\r\n}\r\n\r\nexport class inputConfigsHelp {\r\n config?: Provider\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { inputConfigs } from './types';\r\n\r\nexport const INPUT_CONFIG_TOKEN = new InjectionToken<inputConfigs>('INPUT_CONFIG');\r\n","import { Provider } from '@angular/core'\r\n\r\nexport class inputConfigs {\r\n groupSeparator?: string\r\n radixPoint?: string\r\n lblKeyInvalid?: string\r\n max?: number\r\n decimals?: number\r\n negative?: boolean\r\n}\r\n\r\nexport class inputConfigsHelp {\r\n config?: Provider\r\n}\r\n","import { Inject, Injectable, Optional } from '@angular/core'\r\nimport { INPUT_CONFIG_TOKEN } from './di'\r\nimport { inputConfigs } from './types'\r\nimport { BehaviorSubject } from 'rxjs'\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NgxInputNumberService {\r\n\r\n changeEvent = new BehaviorSubject<boolean>(false)\r\n groupSeparator = ','\r\n radixPoint = '.'\r\n lblKeyInvalid = 'Please enter a valid amount'\r\n negative: any = true\r\n max: any = undefined\r\n decimals = 2\r\n\r\n constructor (\r\n @Optional() @Inject(INPUT_CONFIG_TOKEN)\r\n private readonly config: inputConfigs | null,\r\n ) {\r\n if (config != null) {\r\n this.groupSeparator = config.groupSeparator!\r\n this.radixPoint = config.radixPoint!\r\n this.lblKeyInvalid = config.lblKeyInvalid!\r\n this.negative = config.negative!\r\n this.max = config.max!\r\n this.decimals = config.decimals!\r\n }\r\n }\r\n\r\n onChangeParams (config: inputConfigs) {\r\n if (config.groupSeparator) {\r\n this.groupSeparator = config.groupSeparator\r\n }\r\n if (config.radixPoint) {\r\n this.radixPoint = config.radixPoint\r\n }\r\n if (config.lblKeyInvalid) {\r\n this.lblKeyInvalid = config.lblKeyInvalid\r\n }\r\n if (config.negative !== undefined) {\r\n this.negative = config.negative\r\n }\r\n if (config.max) {\r\n this.max = config.max!\r\n }\r\n if (config.decimals) {\r\n this.decimals = config.decimals\r\n }\r\n\r\n this.changeEvent.next(true)\r\n }\r\n\r\n getChangeEvent () {\r\n return this.changeEvent\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnChanges,\r\n OnInit,\r\n ViewChild\r\n} from '@angular/core'\r\nimport { FormControl } from '@angular/forms'\r\nimport { NgxInputNumberService } from './ngx-input-number.service'\r\nimport { IMaskDirective } from 'angular-imask'\r\nimport { MaskedNumber } from 'imask'\r\n\r\n@Component({\r\n selector: 'app-input-number',\r\n templateUrl: './ngx-input-number.component.html',\r\n styleUrls: ['./ngx-input-number.component.sass']\r\n})\r\nexport class NgxInputNumberComponent implements OnInit, OnChanges, AfterViewInit {\r\n\r\n @ViewChild('inputElement') inputElement!: ElementRef\r\n @ViewChild(IMaskDirective, { static: false }) iMaskDir!: IMaskDirective<MaskedNumber>\r\n @Input() control!: FormControl\r\n @Input() negative!: any\r\n @Input() autofocus: any = false\r\n @Input() decimals: any\r\n @Input() max: any\r\n @Input() idForLabel: any = ''\r\n @Input() tabIndex: any\r\n @Input() addClass: any = 'form-control-sm'\r\n @Input() groupSeparator: any\r\n @Input() radixPoint: any\r\n @Input() lblKeyInvalid: any\r\n lblKeyInvalidRender: any\r\n imask: any\r\n placeholder = '0'\r\n resetControl = false\r\n prevValue: any = ''\r\n\r\n constructor (\r\n private _ChangeDetectorRef: ChangeDetectorRef,\r\n private _NgxInputNumberService: NgxInputNumberService,\r\n ) { }\r\n\r\n ngAfterViewInit (): void {\r\n this.iMaskDir.maskRef?.updateValue()\r\n\r\n if (this.autofocus) {\r\n setTimeout(() => {\r\n this.inputElement.nativeElement.focus()\r\n })\r\n }\r\n }\r\n\r\n render () {\r\n this.control.setValue(String(this.control.value).replace('.', this._NgxInputNumberService.radixPoint))\r\n\r\n this._ChangeDetectorRef.detectChanges()\r\n\r\n this.lblKeyInvalidRender = this._NgxInputNumberService.lblKeyInvalid\r\n\r\n this.imask = {\r\n mask: Number,\r\n scale: this._NgxInputNumberService.decimals,\r\n thousandsSeparator: this._NgxInputNumberService.groupSeparator,\r\n padFractionalZeros: true,\r\n normalizeZeros: true,\r\n radix: this._NgxInputNumberService.radixPoint,\r\n max: this._NgxInputNumberService.max,\r\n min: this._NgxInputNumberService.negative ? -999999999999999999999999999999999 : 0,\r\n format: (x: any) => {\r\n if (typeof x !== 'string' && x === null && !this.resetControl) {\r\n this.resetControl = true\r\n this.inputElement.nativeElement.value = null\r\n this.iMaskDir.maskRef?.updateValue()\r\n setTimeout(\r\n () => {\r\n this.iMaskDir.maskRef?.updateControl()\r\n this.control.setValue(null)\r\n this.resetControl = false\r\n }\r\n )\r\n\r\n return null\r\n }\r\n\r\n return String(x)\r\n }\r\n }\r\n\r\n if (this.lblKeyInvalid !== undefined) {\r\n this.lblKeyInvalidRender = this.lblKeyInvalid\r\n }\r\n\r\n if (this.negative !== undefined) {\r\n this.imask.min = this.negative ? -999999999999999999999999999999999 : 0\r\n }\r\n\r\n if (this.max !== undefined) {\r\n this.imask.max = this.max\r\n }\r\n\r\n if (this.groupSeparator !== undefined) {\r\n this.imask.thousandsSeparator = this.groupSeparator\r\n }\r\n if (this.radixPoint !== undefined) {\r\n this.imask.radix = this.radixPoint\r\n }\r\n\r\n if (this.decimals !== undefined) {\r\n this.imask.scale = this.decimals\r\n }\r\n\r\n setTimeout(\r\n () => {\r\n if (this.inputElement.nativeElement.value == '' && (this.control.value === null || this.control.value === '' || this.control.value === 0)) {\r\n this.control.setValue('')\r\n }\r\n }\r\n )\r\n }\r\n\r\n ngOnInit (): void {\r\n this._NgxInputNumberService.getChangeEvent().subscribe(\r\n (configs) => {\r\n if (configs) {\r\n this.render()\r\n }\r\n }\r\n )\r\n }\r\n\r\n ngOnChanges (): void {\r\n this.render()\r\n }\r\n\r\n onKeydown (e: any) {\r\n this.prevValue = e.target.value\r\n }\r\n\r\n onKeyup (e: any) {\r\n if (e.target.value == '') {\r\n this.control.setValue('')\r\n }\r\n\r\n let scapeKeys: any[] = [\r\n 'ArrowLeft',\r\n 'ArrowRight',\r\n 'ArrowUp',\r\n 'ArrowDown',\r\n 'Escape',\r\n 'Backspace',\r\n 'Delete',\r\n '.',\r\n ',',\r\n '-',\r\n ]\r\n if (\r\n !scapeKeys.includes(e.key)\r\n &&\r\n this.prevValue === e.target.value\r\n ) {\r\n this.inputElement.nativeElement.classList.add('key-invalid')\r\n setTimeout(\r\n () => {\r\n this.inputElement.nativeElement.classList.remove('key-invalid')\r\n },\r\n 1000\r\n )\r\n }\r\n }\r\n}\r\n","<div class=\"position-relative\">\r\n <input\r\n #inputElement\r\n type=\"text\"\r\n class=\"text-end form-control {{ addClass }}\"\r\n [class.is-invalid]=\"control.touched && control.invalid\"\r\n [formControl]=\"control\"\r\n [tabindex]=\"tabIndex\"\r\n [id]=\"idForLabel\"\r\n [imask]=\"imask\"\r\n [unmask]=\"'typed'\"\r\n (keyup)=\"onKeyup($event)\"\r\n (keydown)=\"onKeydown($event)\"\r\n >\r\n <label class=\"lbl-key-invalid position-absolute top-100 end-0 p-2 d-none\" [innerHTML]=\"lblKeyInvalidRender\"></label>\r\n</div>\r\n","import { ModuleWithProviders, NgModule } from '@angular/core'\r\nimport { CommonModule } from '@angular/common'\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms'\r\nimport { NgxInputNumberComponent } from './ngx-input-number.component'\r\nimport { defaultTypesProvider, inputConfigsHelp, typesProvider } from './typesProvider'\r\nimport { IMaskModule } from 'angular-imask'\r\n\r\n@NgModule({\r\n declarations: [\r\n NgxInputNumberComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n IMaskModule\r\n ],\r\n exports: [\r\n NgxInputNumberComponent\r\n ],\r\n providers: []\r\n})\r\nexport class NgxInputNumberModule {\r\n static forRoot (config: inputConfigsHelp = {}): ModuleWithProviders<NgxInputNumberModule> {\r\n return {\r\n ngModule: NgxInputNumberModule,\r\n providers: [\r\n config.config || {\r\n provide: typesProvider,\r\n useClass: defaultTypesProvider\r\n }\r\n ],\r\n }\r\n }\r\n}\r\n","/*\r\n * Public API Surface of ngx-input-number\r\n */\r\n\r\nexport * from './lib/typesProvider';\r\nexport * from './lib/ngx-input-number.service';\r\nexport * from './lib/ngx-input-number.component';\r\nexport * from './lib/ngx-input-number.module';\r\n// export * from 'ngx-mask';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxInputNumberService"],"mappings":";;;;;;;;;2BAEa,YAAY,CAAA;AACvB,IAAA,cAAc,CAAS;AACvB,IAAA,UAAU,CAAS;AACpB,EAAA;MAGqB,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAb,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cADT,MAAM,EAAA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;AACR,oBAAA,YAAY,EAAE;wBACZ,uBAAuB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,uBAAuB;AACxB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACrBD;;AAEG;AAMH;;ACRA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@experteam-mx/ngx-input-number" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@experteam-mx/ngx-input-number" />
|
|
5
|
+
export * from './public-api';
|
package/lib/di.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { inputConfigs } from './types';
|
|
3
|
-
export declare const INPUT_CONFIG_TOKEN: InjectionToken<inputConfigs>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { inputConfigs } from './types';
|
|
3
|
+
export declare const INPUT_CONFIG_TOKEN: InjectionToken<inputConfigs>;
|
|
@@ -1,48 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormControl } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
validateError: boolean;
|
|
39
|
-
prevValue: any;
|
|
40
|
-
onKeydown(e: any): void;
|
|
41
|
-
onBlur(): void;
|
|
42
|
-
onFocus(): void;
|
|
43
|
-
onKeyup(e: any): void;
|
|
44
|
-
onInput(e: any): void;
|
|
45
|
-
parseValue(): void;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputNumberComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxInputNumberComponent, "app-input-number", never, { "control": "control"; "negative": "negative"; "autofocus": "autofocus"; "decimals": "decimals"; "max": "max"; "idForLabel": "idForLabel"; "tabIndex": "tabIndex"; "addClass": "addClass"; "groupSeparator": "groupSeparator"; "radixPoint": "radixPoint"; "lblKeyInvalid": "lblKeyInvalid"; }, {}, never, never, false, never>;
|
|
48
|
-
}
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { NgxInputNumberService } from './ngx-input-number.service';
|
|
4
|
+
import { IMaskDirective } from 'angular-imask';
|
|
5
|
+
import { MaskedNumber } from 'imask';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NgxInputNumberComponent implements OnInit, OnChanges, AfterViewInit {
|
|
8
|
+
private _ChangeDetectorRef;
|
|
9
|
+
private _NgxInputNumberService;
|
|
10
|
+
inputElement: ElementRef;
|
|
11
|
+
iMaskDir: IMaskDirective<MaskedNumber>;
|
|
12
|
+
control: FormControl;
|
|
13
|
+
negative: any;
|
|
14
|
+
autofocus: any;
|
|
15
|
+
decimals: any;
|
|
16
|
+
max: any;
|
|
17
|
+
idForLabel: any;
|
|
18
|
+
tabIndex: any;
|
|
19
|
+
addClass: any;
|
|
20
|
+
groupSeparator: any;
|
|
21
|
+
radixPoint: any;
|
|
22
|
+
lblKeyInvalid: any;
|
|
23
|
+
lblKeyInvalidRender: any;
|
|
24
|
+
imask: any;
|
|
25
|
+
placeholder: string;
|
|
26
|
+
resetControl: boolean;
|
|
27
|
+
prevValue: any;
|
|
28
|
+
constructor(_ChangeDetectorRef: ChangeDetectorRef, _NgxInputNumberService: NgxInputNumberService);
|
|
29
|
+
ngAfterViewInit(): void;
|
|
30
|
+
render(): void;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnChanges(): void;
|
|
33
|
+
onKeydown(e: any): void;
|
|
34
|
+
onKeyup(e: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputNumberComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxInputNumberComponent, "app-input-number", never, { "control": { "alias": "control"; "required": false; }; "negative": { "alias": "negative"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; "max": { "alias": "max"; "required": false; }; "idForLabel": { "alias": "idForLabel"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "addClass": { "alias": "addClass"; "required": false; }; "groupSeparator": { "alias": "groupSeparator"; "required": false; }; "radixPoint": { "alias": "radixPoint"; "required": false; }; "lblKeyInvalid": { "alias": "lblKeyInvalid"; "required": false; }; }, {}, never, never, false, never>;
|
|
37
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { inputConfigsHelp } from './typesProvider';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./ngx-input-number.component";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@angular/forms";
|
|
7
|
-
import * as i4 from "angular-imask";
|
|
8
|
-
export declare class NgxInputNumberModule {
|
|
9
|
-
static forRoot(config?: inputConfigsHelp): ModuleWithProviders<NgxInputNumberModule>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputNumberModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxInputNumberModule, [typeof i1.NgxInputNumberComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.IMaskModule], [typeof i1.NgxInputNumberComponent]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgxInputNumberModule>;
|
|
13
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { inputConfigsHelp } from './typesProvider';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./ngx-input-number.component";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import * as i4 from "angular-imask";
|
|
8
|
+
export declare class NgxInputNumberModule {
|
|
9
|
+
static forRoot(config?: inputConfigsHelp): ModuleWithProviders<NgxInputNumberModule>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputNumberModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxInputNumberModule, [typeof i1.NgxInputNumberComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.IMaskModule], [typeof i1.NgxInputNumberComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxInputNumberModule>;
|
|
13
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { inputConfigs } from './types';
|
|
2
|
-
import { BehaviorSubject } from
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgxInputNumberService {
|
|
5
|
-
private readonly config;
|
|
6
|
-
changeEvent: BehaviorSubject<boolean>;
|
|
7
|
-
groupSeparator: string;
|
|
8
|
-
radixPoint: string;
|
|
9
|
-
lblKeyInvalid: string;
|
|
10
|
-
negative: any;
|
|
11
|
-
max: any;
|
|
12
|
-
decimals: number;
|
|
13
|
-
constructor(config: inputConfigs | null);
|
|
14
|
-
onChangeParams(config: inputConfigs): void;
|
|
15
|
-
getChangeEvent(): BehaviorSubject<boolean>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputNumberService, [{ optional: true; }]>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NgxInputNumberService>;
|
|
18
|
-
}
|
|
1
|
+
import { inputConfigs } from './types';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NgxInputNumberService {
|
|
5
|
+
private readonly config;
|
|
6
|
+
changeEvent: BehaviorSubject<boolean>;
|
|
7
|
+
groupSeparator: string;
|
|
8
|
+
radixPoint: string;
|
|
9
|
+
lblKeyInvalid: string;
|
|
10
|
+
negative: any;
|
|
11
|
+
max: any;
|
|
12
|
+
decimals: number;
|
|
13
|
+
constructor(config: inputConfigs | null);
|
|
14
|
+
onChangeParams(config: inputConfigs): void;
|
|
15
|
+
getChangeEvent(): BehaviorSubject<boolean>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxInputNumberService, [{ optional: true; }]>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxInputNumberService>;
|
|
18
|
+
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
export declare class inputConfigs {
|
|
3
|
-
groupSeparator?: string;
|
|
4
|
-
radixPoint?: string;
|
|
5
|
-
lblKeyInvalid?: string;
|
|
6
|
-
max?: number;
|
|
7
|
-
decimals?: number;
|
|
8
|
-
negative?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare class inputConfigsHelp {
|
|
11
|
-
config?: Provider;
|
|
12
|
-
}
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
export declare class inputConfigs {
|
|
3
|
+
groupSeparator?: string;
|
|
4
|
+
radixPoint?: string;
|
|
5
|
+
lblKeyInvalid?: string;
|
|
6
|
+
max?: number;
|
|
7
|
+
decimals?: number;
|
|
8
|
+
negative?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class inputConfigsHelp {
|
|
11
|
+
config?: Provider;
|
|
12
|
+
}
|
package/lib/typesProvider.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class inputConfigs {
|
|
4
|
-
groupSeparator?: string;
|
|
5
|
-
radixPoint?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare abstract class typesProvider {
|
|
8
|
-
abstract get config(): inputConfigs;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<typesProvider, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<typesProvider>;
|
|
11
|
-
}
|
|
12
|
-
export declare class defaultTypesProvider extends typesProvider {
|
|
13
|
-
get config(): inputConfigs;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<defaultTypesProvider, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<defaultTypesProvider>;
|
|
16
|
-
}
|
|
17
|
-
export declare class inputConfigsHelp {
|
|
18
|
-
config?: Provider;
|
|
19
|
-
}
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class inputConfigs {
|
|
4
|
+
groupSeparator?: string;
|
|
5
|
+
radixPoint?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class typesProvider {
|
|
8
|
+
abstract get config(): inputConfigs;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<typesProvider, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<typesProvider>;
|
|
11
|
+
}
|
|
12
|
+
export declare class defaultTypesProvider extends typesProvider {
|
|
13
|
+
get config(): inputConfigs;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<defaultTypesProvider, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<defaultTypesProvider>;
|
|
16
|
+
}
|
|
17
|
+
export declare class inputConfigsHelp {
|
|
18
|
+
config?: Provider;
|
|
19
|
+
}
|