ng-smn-ui 4.2.7 → 4.2.11
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/bundles/ng-smn-ui.umd.js +446 -49
- package/bundles/ng-smn-ui.umd.js.map +1 -1
- package/bundles/ng-smn-ui.umd.min.js +1 -1
- package/bundles/ng-smn-ui.umd.min.js.map +1 -1
- package/esm2015/lib/smn-ui.module.js +10 -2
- package/esm2015/lib/utils/masks/cep-novo/cep-novo.pipe.js +24 -0
- package/esm2015/lib/utils/masks/cep-novo/mask-cep-novo.directive.js +113 -0
- package/esm2015/lib/utils/masks/cnpj-novo/cnpj-novo.pipe.js +40 -0
- package/esm2015/lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive.js +218 -0
- package/esm2015/ng-smn-ui.js +51 -49
- package/esm5/lib/smn-ui.module.js +10 -2
- package/esm5/lib/utils/masks/cep-novo/cep-novo.pipe.js +27 -0
- package/esm5/lib/utils/masks/cep-novo/mask-cep-novo.directive.js +116 -0
- package/esm5/lib/utils/masks/cnpj-novo/cnpj-novo.pipe.js +43 -0
- package/esm5/lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive.js +221 -0
- package/esm5/ng-smn-ui.js +51 -49
- package/fesm2015/ng-smn-ui.js +382 -1
- package/fesm2015/ng-smn-ui.js.map +1 -1
- package/fesm5/ng-smn-ui.js +394 -1
- package/fesm5/ng-smn-ui.js.map +1 -1
- package/lib/smn-ui.module.d.ts +3 -1
- package/lib/utils/masks/cep-novo/cep-novo.pipe.d.ts +4 -0
- package/lib/utils/masks/cep-novo/mask-cep-novo.directive.d.ts +30 -0
- package/lib/utils/masks/cnpj-novo/cnpj-novo.pipe.d.ts +4 -0
- package/lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive.d.ts +47 -0
- package/ng-smn-ui.d.ts +50 -48
- package/ng-smn-ui.metadata.json +1 -1
- package/package.json +1 -1
package/bundles/ng-smn-ui.umd.js
CHANGED
|
@@ -4226,6 +4226,261 @@
|
|
|
4226
4226
|
return UiMaskCnpjDirective;
|
|
4227
4227
|
}());
|
|
4228
4228
|
|
|
4229
|
+
var UiCnpjNovoPipe = /** @class */ (function () {
|
|
4230
|
+
function UiCnpjNovoPipe() {
|
|
4231
|
+
}
|
|
4232
|
+
UiCnpjNovoPipe.prototype.transform = function (value, mask) {
|
|
4233
|
+
if (!value) {
|
|
4234
|
+
return '';
|
|
4235
|
+
}
|
|
4236
|
+
value = value.toString().toUpperCase().replace(/[^0-9A-Z]+/g, '');
|
|
4237
|
+
if (!mask) {
|
|
4238
|
+
var isNumericOnly = /^[0-9]*$/.test(value);
|
|
4239
|
+
if (isNumericOnly) {
|
|
4240
|
+
value = value.padStart(14, '0');
|
|
4241
|
+
}
|
|
4242
|
+
}
|
|
4243
|
+
value = value.toString().toUpperCase().replace(/[^0-9A-Z]+/g, '');
|
|
4244
|
+
if (value.length > 2) {
|
|
4245
|
+
value = value.substring(0, 2) + '.' + value.substring(2);
|
|
4246
|
+
}
|
|
4247
|
+
if (value.length > 6) {
|
|
4248
|
+
value = value.substring(0, 6) + '.' + value.substring(6);
|
|
4249
|
+
}
|
|
4250
|
+
if (value.length > 10) {
|
|
4251
|
+
value = value.substring(0, 10) + '/' + value.substring(10);
|
|
4252
|
+
}
|
|
4253
|
+
if (value.length > 15) {
|
|
4254
|
+
value = value.substring(0, 15) + '-' + value.substring(15);
|
|
4255
|
+
}
|
|
4256
|
+
if (value.length > 18) {
|
|
4257
|
+
value = value.substring(0, 18);
|
|
4258
|
+
}
|
|
4259
|
+
return value;
|
|
4260
|
+
};
|
|
4261
|
+
UiCnpjNovoPipe = __decorate([
|
|
4262
|
+
core.Pipe({
|
|
4263
|
+
name: 'uiCnpjNovo'
|
|
4264
|
+
})
|
|
4265
|
+
], UiCnpjNovoPipe);
|
|
4266
|
+
return UiCnpjNovoPipe;
|
|
4267
|
+
}());
|
|
4268
|
+
|
|
4269
|
+
var UiMaskCnpjNovoDirective = /** @class */ (function () {
|
|
4270
|
+
function UiMaskCnpjNovoDirective(elementRef, cnpjPipe) {
|
|
4271
|
+
this.elementRef = elementRef;
|
|
4272
|
+
this.cnpjPipe = cnpjPipe;
|
|
4273
|
+
this.symbolsPositions = [2, 6, 10, 15, 18];
|
|
4274
|
+
this.padOnPaste = true;
|
|
4275
|
+
this.ngModelChange = new core.EventEmitter();
|
|
4276
|
+
}
|
|
4277
|
+
UiMaskCnpjNovoDirective_1 = UiMaskCnpjNovoDirective;
|
|
4278
|
+
UiMaskCnpjNovoDirective.prototype.ngOnChanges = function (changes) {
|
|
4279
|
+
if (!changes.ngModel.firstChange && (changes.ngModel.currentValue === null || changes.ngModel.currentValue === undefined)) {
|
|
4280
|
+
this.elementRef.nativeElement.value = '';
|
|
4281
|
+
}
|
|
4282
|
+
};
|
|
4283
|
+
UiMaskCnpjNovoDirective.prototype.ngAfterViewInit = function () {
|
|
4284
|
+
var _this = this;
|
|
4285
|
+
setTimeout(function () {
|
|
4286
|
+
_this.loaded = true;
|
|
4287
|
+
});
|
|
4288
|
+
};
|
|
4289
|
+
UiMaskCnpjNovoDirective.prototype.writeValue = function (rawValue) {
|
|
4290
|
+
if (this.control && this.loaded && rawValue) {
|
|
4291
|
+
this.control.markAsDirty();
|
|
4292
|
+
}
|
|
4293
|
+
if (!this.input) {
|
|
4294
|
+
if (this.ngModel) {
|
|
4295
|
+
var value = this.ngModel.toString().toUpperCase();
|
|
4296
|
+
var cleanValue = value.replace(/[^0-9A-Z]+/g, '');
|
|
4297
|
+
var isNumericOnly = /^[0-9]*$/.test(cleanValue);
|
|
4298
|
+
this.ngModel = isNumericOnly ? cleanValue.padStart(14, '0') : cleanValue;
|
|
4299
|
+
}
|
|
4300
|
+
else {
|
|
4301
|
+
this.ngModel = '';
|
|
4302
|
+
}
|
|
4303
|
+
this.elementRef.nativeElement.value = this.cnpjPipe.transform(this.ngModel, true);
|
|
4304
|
+
}
|
|
4305
|
+
this.input = false;
|
|
4306
|
+
};
|
|
4307
|
+
UiMaskCnpjNovoDirective.prototype.renderViaInput = function (rawValue) {
|
|
4308
|
+
if (rawValue) {
|
|
4309
|
+
this.control.markAsDirty();
|
|
4310
|
+
}
|
|
4311
|
+
this.ngModel = this.format(rawValue);
|
|
4312
|
+
this.ngModelChange.emit(this.ngModel);
|
|
4313
|
+
this.elementRef.nativeElement.value = this.cnpjPipe.transform(this.elementRef.nativeElement.value, true);
|
|
4314
|
+
};
|
|
4315
|
+
UiMaskCnpjNovoDirective.prototype.registerOnChange = function (fn) {
|
|
4316
|
+
this.onChange = fn;
|
|
4317
|
+
};
|
|
4318
|
+
UiMaskCnpjNovoDirective.prototype.registerOnTouched = function (fn) {
|
|
4319
|
+
this.onTouched = fn;
|
|
4320
|
+
};
|
|
4321
|
+
UiMaskCnpjNovoDirective.prototype.format = function (value) {
|
|
4322
|
+
// Aceita números e letras (A-Z), normaliza para maiúsculas
|
|
4323
|
+
value = value.toString().toUpperCase().replace(/[^0-9A-Z]+/g, '');
|
|
4324
|
+
return value.substring(0, 14);
|
|
4325
|
+
};
|
|
4326
|
+
UiMaskCnpjNovoDirective.prototype.validate = function (control) {
|
|
4327
|
+
this.control = control;
|
|
4328
|
+
if (this.input) {
|
|
4329
|
+
if (control.value && this.format(control.value).length < 14) {
|
|
4330
|
+
return { parse: true };
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
if (this.uiMaskCnpjNovo === true && control.value && !this.cnpjIsValid(control.value)) {
|
|
4334
|
+
return { parse: true };
|
|
4335
|
+
}
|
|
4336
|
+
this.input = false;
|
|
4337
|
+
return null;
|
|
4338
|
+
};
|
|
4339
|
+
UiMaskCnpjNovoDirective.prototype.setDisabledState = function (isDisabled) {
|
|
4340
|
+
var method = isDisabled ? 'setAttribute' : 'removeAttribute';
|
|
4341
|
+
this.elementRef.nativeElement[method]('disabled', 'disabled');
|
|
4342
|
+
};
|
|
4343
|
+
/**
|
|
4344
|
+
* Converte um caractere para seu valor numérico.
|
|
4345
|
+
* Usa código ASCII - 48 para todos os caracteres:
|
|
4346
|
+
* - Dígitos 0-9 retornam 0-9
|
|
4347
|
+
* - Letras A-Z retornam 17-42 (A=17, B=18, ..., Z=42)
|
|
4348
|
+
* Referência: https://www.gov.br/receitafederal/pt-br/centrais-de-conteudo/publicacoes/perguntas-e-respostas/cnpj/cnpj-alfanumerico.pdf
|
|
4349
|
+
*/
|
|
4350
|
+
UiMaskCnpjNovoDirective.prototype.charToValue = function (char) {
|
|
4351
|
+
return char.toUpperCase().charCodeAt(0) - 48;
|
|
4352
|
+
};
|
|
4353
|
+
/**
|
|
4354
|
+
* Valida CNPJ alfanumérico conforme especificação.
|
|
4355
|
+
* Suporta tanto CNPJs numéricos tradicionais quanto os novos alfanuméricos.
|
|
4356
|
+
* A conversão usa ASCII - 48 para todos os caracteres (A=17, B=18, ..., Z=42).
|
|
4357
|
+
*/
|
|
4358
|
+
UiMaskCnpjNovoDirective.prototype.cnpjIsValid = function (cnpj) {
|
|
4359
|
+
if (!cnpj || cnpj.length !== 14) {
|
|
4360
|
+
return false;
|
|
4361
|
+
}
|
|
4362
|
+
// Normaliza para maiúsculas
|
|
4363
|
+
cnpj = cnpj.toUpperCase();
|
|
4364
|
+
// Verifica se contém apenas caracteres válidos (0-9 e A-Z)
|
|
4365
|
+
if (!/^[0-9A-Z]{14}$/.test(cnpj)) {
|
|
4366
|
+
return false;
|
|
4367
|
+
}
|
|
4368
|
+
// Verifica CNPJs com todos os caracteres iguais
|
|
4369
|
+
if (/^(.)\1{13}$/.test(cnpj)) {
|
|
4370
|
+
return false;
|
|
4371
|
+
}
|
|
4372
|
+
var base = cnpj.substring(0, 12);
|
|
4373
|
+
var digits = cnpj.substring(12);
|
|
4374
|
+
// Calcula o primeiro dígito verificador
|
|
4375
|
+
var sum = 0;
|
|
4376
|
+
var pos = 5;
|
|
4377
|
+
for (var i = 0; i < 12; i++) {
|
|
4378
|
+
sum += this.charToValue(base.charAt(i)) * pos--;
|
|
4379
|
+
if (pos < 2) {
|
|
4380
|
+
pos = 9;
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
var result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
4384
|
+
if (result !== this.charToValue(digits.charAt(0))) {
|
|
4385
|
+
return false;
|
|
4386
|
+
}
|
|
4387
|
+
// Calcula o segundo dígito verificador
|
|
4388
|
+
var baseWithFirstDigit = base + digits.charAt(0);
|
|
4389
|
+
sum = 0;
|
|
4390
|
+
pos = 6;
|
|
4391
|
+
for (var i = 0; i < 13; i++) {
|
|
4392
|
+
sum += this.charToValue(baseWithFirstDigit.charAt(i)) * pos--;
|
|
4393
|
+
if (pos < 2) {
|
|
4394
|
+
pos = 9;
|
|
4395
|
+
}
|
|
4396
|
+
}
|
|
4397
|
+
result = sum % 11 < 2 ? 0 : 11 - (sum % 11);
|
|
4398
|
+
return result === this.charToValue(digits.charAt(1));
|
|
4399
|
+
};
|
|
4400
|
+
UiMaskCnpjNovoDirective.prototype.onKeydown = function () {
|
|
4401
|
+
this.beforeSelIndex = UiElement.caretPosition.get(this.elementRef.nativeElement);
|
|
4402
|
+
};
|
|
4403
|
+
UiMaskCnpjNovoDirective.prototype.onInput = function ($event) {
|
|
4404
|
+
var afterSelIndex = UiElement.caretPosition.get(this.elementRef.nativeElement);
|
|
4405
|
+
var rawValue = this.elementRef.nativeElement.value;
|
|
4406
|
+
this.input = this.format(rawValue) !== this.ngModel;
|
|
4407
|
+
this.renderViaInput(rawValue);
|
|
4408
|
+
UiElement.caretPosition.set(this.elementRef.nativeElement, this.beforeSelIndex, afterSelIndex, this.symbolsPositions);
|
|
4409
|
+
};
|
|
4410
|
+
UiMaskCnpjNovoDirective.prototype.padLeft = function (event) {
|
|
4411
|
+
if (this.padOnPaste) {
|
|
4412
|
+
event.preventDefault();
|
|
4413
|
+
var data = void 0;
|
|
4414
|
+
if (window['clipboardData']) {
|
|
4415
|
+
data = window['clipboardData'];
|
|
4416
|
+
}
|
|
4417
|
+
else if (event.clipboardData && event.clipboardData.getData) {
|
|
4418
|
+
data = event.clipboardData;
|
|
4419
|
+
}
|
|
4420
|
+
// Aceita números e letras, normaliza para maiúsculas
|
|
4421
|
+
var text = data.getData('text').toString().toUpperCase().replace(/[^0-9A-Z]+/g, '');
|
|
4422
|
+
// Só faz padStart se for CNPJ numérico puro (retrocompatibilidade)
|
|
4423
|
+
var isNumericOnly = /^[0-9]*$/.test(text);
|
|
4424
|
+
this.renderViaInput(isNumericOnly ? text.padStart(14, '0') : text);
|
|
4425
|
+
}
|
|
4426
|
+
};
|
|
4427
|
+
var UiMaskCnpjNovoDirective_1;
|
|
4428
|
+
UiMaskCnpjNovoDirective.ctorParameters = function () { return [
|
|
4429
|
+
{ type: core.ElementRef },
|
|
4430
|
+
{ type: UiCnpjNovoPipe }
|
|
4431
|
+
]; };
|
|
4432
|
+
__decorate([
|
|
4433
|
+
core.Input(),
|
|
4434
|
+
__metadata("design:type", Object)
|
|
4435
|
+
], UiMaskCnpjNovoDirective.prototype, "ngModel", void 0);
|
|
4436
|
+
__decorate([
|
|
4437
|
+
core.Input(),
|
|
4438
|
+
__metadata("design:type", Boolean)
|
|
4439
|
+
], UiMaskCnpjNovoDirective.prototype, "padOnPaste", void 0);
|
|
4440
|
+
__decorate([
|
|
4441
|
+
core.Input('uiMaskCnpjNovo'),
|
|
4442
|
+
__metadata("design:type", Object)
|
|
4443
|
+
], UiMaskCnpjNovoDirective.prototype, "uiMaskCnpjNovo", void 0);
|
|
4444
|
+
__decorate([
|
|
4445
|
+
core.Output(),
|
|
4446
|
+
__metadata("design:type", core.EventEmitter)
|
|
4447
|
+
], UiMaskCnpjNovoDirective.prototype, "ngModelChange", void 0);
|
|
4448
|
+
__decorate([
|
|
4449
|
+
core.HostListener('keydown'),
|
|
4450
|
+
__metadata("design:type", Function),
|
|
4451
|
+
__metadata("design:paramtypes", []),
|
|
4452
|
+
__metadata("design:returntype", void 0)
|
|
4453
|
+
], UiMaskCnpjNovoDirective.prototype, "onKeydown", null);
|
|
4454
|
+
__decorate([
|
|
4455
|
+
core.HostListener('input', ['$event']),
|
|
4456
|
+
__metadata("design:type", Function),
|
|
4457
|
+
__metadata("design:paramtypes", [Object]),
|
|
4458
|
+
__metadata("design:returntype", void 0)
|
|
4459
|
+
], UiMaskCnpjNovoDirective.prototype, "onInput", null);
|
|
4460
|
+
__decorate([
|
|
4461
|
+
core.HostListener('paste', ['$event']),
|
|
4462
|
+
__metadata("design:type", Function),
|
|
4463
|
+
__metadata("design:paramtypes", [Object]),
|
|
4464
|
+
__metadata("design:returntype", void 0)
|
|
4465
|
+
], UiMaskCnpjNovoDirective.prototype, "padLeft", null);
|
|
4466
|
+
UiMaskCnpjNovoDirective = UiMaskCnpjNovoDirective_1 = __decorate([
|
|
4467
|
+
core.Directive({
|
|
4468
|
+
selector: '[uiMaskCnpjNovo][ngModel]',
|
|
4469
|
+
providers: [{
|
|
4470
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
4471
|
+
useExisting: core.forwardRef(function () { return UiMaskCnpjNovoDirective_1; }),
|
|
4472
|
+
multi: true
|
|
4473
|
+
}, {
|
|
4474
|
+
provide: forms.NG_VALIDATORS,
|
|
4475
|
+
useExisting: core.forwardRef(function () { return UiMaskCnpjNovoDirective_1; }),
|
|
4476
|
+
multi: true
|
|
4477
|
+
}, UiCnpjNovoPipe]
|
|
4478
|
+
}),
|
|
4479
|
+
__metadata("design:paramtypes", [core.ElementRef, UiCnpjNovoPipe])
|
|
4480
|
+
], UiMaskCnpjNovoDirective);
|
|
4481
|
+
return UiMaskCnpjNovoDirective;
|
|
4482
|
+
}());
|
|
4483
|
+
|
|
4229
4484
|
var UiCepPipe = /** @class */ (function () {
|
|
4230
4485
|
function UiCepPipe() {
|
|
4231
4486
|
}
|
|
@@ -4360,6 +4615,140 @@
|
|
|
4360
4615
|
return UiMaskCepDirective;
|
|
4361
4616
|
}());
|
|
4362
4617
|
|
|
4618
|
+
var UiCepNovoPipe = /** @class */ (function () {
|
|
4619
|
+
function UiCepNovoPipe() {
|
|
4620
|
+
}
|
|
4621
|
+
UiCepNovoPipe.prototype.transform = function (value, args) {
|
|
4622
|
+
if (!value) {
|
|
4623
|
+
return '';
|
|
4624
|
+
}
|
|
4625
|
+
value = value.toString().replace(/[^a-zA-Z0-9]+/g, '');
|
|
4626
|
+
if (value.length > 5) {
|
|
4627
|
+
value = value.substring(0, 5) + '-' + value.substring(5);
|
|
4628
|
+
}
|
|
4629
|
+
if (value.length > 9) {
|
|
4630
|
+
value = value.substring(0, 9);
|
|
4631
|
+
}
|
|
4632
|
+
return value;
|
|
4633
|
+
};
|
|
4634
|
+
UiCepNovoPipe = __decorate([
|
|
4635
|
+
core.Pipe({
|
|
4636
|
+
name: 'uiCepNovo'
|
|
4637
|
+
})
|
|
4638
|
+
], UiCepNovoPipe);
|
|
4639
|
+
return UiCepNovoPipe;
|
|
4640
|
+
}());
|
|
4641
|
+
|
|
4642
|
+
var UiMaskCepNovoDirective = /** @class */ (function () {
|
|
4643
|
+
function UiMaskCepNovoDirective(elementRef, cepPipe) {
|
|
4644
|
+
this.elementRef = elementRef;
|
|
4645
|
+
this.cepPipe = cepPipe;
|
|
4646
|
+
this.symbolsPositions = [5, 9];
|
|
4647
|
+
this.ngModelChange = new core.EventEmitter();
|
|
4648
|
+
}
|
|
4649
|
+
UiMaskCepNovoDirective_1 = UiMaskCepNovoDirective;
|
|
4650
|
+
UiMaskCepNovoDirective.prototype.ngOnChanges = function (changes) {
|
|
4651
|
+
if (!changes.ngModel.firstChange && (changes.ngModel.currentValue === null || changes.ngModel.currentValue === undefined)) {
|
|
4652
|
+
this.elementRef.nativeElement.value = '';
|
|
4653
|
+
}
|
|
4654
|
+
};
|
|
4655
|
+
UiMaskCepNovoDirective.prototype.ngAfterViewInit = function () {
|
|
4656
|
+
var _this = this;
|
|
4657
|
+
setTimeout(function () {
|
|
4658
|
+
_this.loaded = true;
|
|
4659
|
+
});
|
|
4660
|
+
};
|
|
4661
|
+
UiMaskCepNovoDirective.prototype.writeValue = function (rawValue) {
|
|
4662
|
+
if (this.control && this.loaded && rawValue) {
|
|
4663
|
+
this.control.markAsDirty();
|
|
4664
|
+
}
|
|
4665
|
+
if (!this.input) {
|
|
4666
|
+
this.elementRef.nativeElement.value = this.cepPipe.transform(this.ngModel);
|
|
4667
|
+
}
|
|
4668
|
+
this.input = false;
|
|
4669
|
+
};
|
|
4670
|
+
UiMaskCepNovoDirective.prototype.renderViaInput = function (rawValue) {
|
|
4671
|
+
if (rawValue) {
|
|
4672
|
+
this.control.markAsDirty();
|
|
4673
|
+
}
|
|
4674
|
+
this.ngModel = this.format(rawValue);
|
|
4675
|
+
this.ngModelChange.emit(this.ngModel);
|
|
4676
|
+
this.elementRef.nativeElement.value = this.cepPipe.transform(this.elementRef.nativeElement.value);
|
|
4677
|
+
};
|
|
4678
|
+
UiMaskCepNovoDirective.prototype.registerOnChange = function (fn) {
|
|
4679
|
+
this.onChange = fn;
|
|
4680
|
+
};
|
|
4681
|
+
UiMaskCepNovoDirective.prototype.registerOnTouched = function (fn) {
|
|
4682
|
+
this.onTouched = fn;
|
|
4683
|
+
};
|
|
4684
|
+
UiMaskCepNovoDirective.prototype.format = function (value) {
|
|
4685
|
+
value = value.toString().replace(/[^a-zA-Z0-9]+/g, '');
|
|
4686
|
+
return value.substring(0, 8);
|
|
4687
|
+
};
|
|
4688
|
+
UiMaskCepNovoDirective.prototype.validate = function (control) {
|
|
4689
|
+
this.control = control;
|
|
4690
|
+
if (control.value && this.format(control.value).length < 8) {
|
|
4691
|
+
return { parse: true };
|
|
4692
|
+
}
|
|
4693
|
+
return null;
|
|
4694
|
+
};
|
|
4695
|
+
UiMaskCepNovoDirective.prototype.setDisabledState = function (isDisabled) {
|
|
4696
|
+
var method = isDisabled ? 'setAttribute' : 'removeAttribute';
|
|
4697
|
+
this.elementRef.nativeElement[method]('disabled', 'disabled');
|
|
4698
|
+
};
|
|
4699
|
+
UiMaskCepNovoDirective.prototype.onKeydown = function () {
|
|
4700
|
+
this.beforeSelIndex = UiElement.caretPosition.get(this.elementRef.nativeElement);
|
|
4701
|
+
};
|
|
4702
|
+
UiMaskCepNovoDirective.prototype.onInput = function ($event) {
|
|
4703
|
+
var afterSelIndex = UiElement.caretPosition.get(this.elementRef.nativeElement);
|
|
4704
|
+
var rawValue = this.elementRef.nativeElement.value;
|
|
4705
|
+
this.input = true;
|
|
4706
|
+
this.renderViaInput(rawValue);
|
|
4707
|
+
UiElement.caretPosition.set(this.elementRef.nativeElement, this.beforeSelIndex, afterSelIndex, this.symbolsPositions);
|
|
4708
|
+
};
|
|
4709
|
+
var UiMaskCepNovoDirective_1;
|
|
4710
|
+
UiMaskCepNovoDirective.ctorParameters = function () { return [
|
|
4711
|
+
{ type: core.ElementRef },
|
|
4712
|
+
{ type: UiCepNovoPipe }
|
|
4713
|
+
]; };
|
|
4714
|
+
__decorate([
|
|
4715
|
+
core.Input(),
|
|
4716
|
+
__metadata("design:type", Object)
|
|
4717
|
+
], UiMaskCepNovoDirective.prototype, "ngModel", void 0);
|
|
4718
|
+
__decorate([
|
|
4719
|
+
core.Output(),
|
|
4720
|
+
__metadata("design:type", core.EventEmitter)
|
|
4721
|
+
], UiMaskCepNovoDirective.prototype, "ngModelChange", void 0);
|
|
4722
|
+
__decorate([
|
|
4723
|
+
core.HostListener('keydown'),
|
|
4724
|
+
__metadata("design:type", Function),
|
|
4725
|
+
__metadata("design:paramtypes", []),
|
|
4726
|
+
__metadata("design:returntype", void 0)
|
|
4727
|
+
], UiMaskCepNovoDirective.prototype, "onKeydown", null);
|
|
4728
|
+
__decorate([
|
|
4729
|
+
core.HostListener('input', ['$event']),
|
|
4730
|
+
__metadata("design:type", Function),
|
|
4731
|
+
__metadata("design:paramtypes", [Object]),
|
|
4732
|
+
__metadata("design:returntype", void 0)
|
|
4733
|
+
], UiMaskCepNovoDirective.prototype, "onInput", null);
|
|
4734
|
+
UiMaskCepNovoDirective = UiMaskCepNovoDirective_1 = __decorate([
|
|
4735
|
+
core.Directive({
|
|
4736
|
+
selector: '[uiMaskCepNovo][ngModel]',
|
|
4737
|
+
providers: [{
|
|
4738
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
4739
|
+
useExisting: core.forwardRef(function () { return UiMaskCepNovoDirective_1; }),
|
|
4740
|
+
multi: true
|
|
4741
|
+
}, {
|
|
4742
|
+
provide: forms.NG_VALIDATORS,
|
|
4743
|
+
useExisting: core.forwardRef(function () { return UiMaskCepNovoDirective_1; }),
|
|
4744
|
+
multi: true
|
|
4745
|
+
}, UiCepNovoPipe]
|
|
4746
|
+
}),
|
|
4747
|
+
__metadata("design:paramtypes", [core.ElementRef, UiCepNovoPipe])
|
|
4748
|
+
], UiMaskCepNovoDirective);
|
|
4749
|
+
return UiMaskCepNovoDirective;
|
|
4750
|
+
}());
|
|
4751
|
+
|
|
4363
4752
|
var UiPhonePipe = /** @class */ (function () {
|
|
4364
4753
|
function UiPhonePipe() {
|
|
4365
4754
|
}
|
|
@@ -10648,8 +11037,12 @@
|
|
|
10648
11037
|
UiCpfPipe,
|
|
10649
11038
|
UiMaskCnpjDirective,
|
|
10650
11039
|
UiCnpjPipe,
|
|
11040
|
+
UiMaskCnpjNovoDirective,
|
|
11041
|
+
UiCnpjNovoPipe,
|
|
10651
11042
|
UiMaskCepDirective,
|
|
10652
11043
|
UiCepPipe,
|
|
11044
|
+
UiMaskCepNovoDirective,
|
|
11045
|
+
UiCepNovoPipe,
|
|
10653
11046
|
UiMaskPhoneDirective,
|
|
10654
11047
|
UiPhonePipe,
|
|
10655
11048
|
UiListComponent,
|
|
@@ -10742,7 +11135,9 @@
|
|
|
10742
11135
|
}());
|
|
10743
11136
|
|
|
10744
11137
|
exports.SMNUIModule = SMNUIModule;
|
|
11138
|
+
exports.UiCepNovoPipe = UiCepNovoPipe;
|
|
10745
11139
|
exports.UiCepPipe = UiCepPipe;
|
|
11140
|
+
exports.UiCnpjNovoPipe = UiCnpjNovoPipe;
|
|
10746
11141
|
exports.UiCnpjPipe = UiCnpjPipe;
|
|
10747
11142
|
exports.UiColor = UiColor;
|
|
10748
11143
|
exports.UiCookie = UiCookie;
|
|
@@ -10774,57 +11169,59 @@
|
|
|
10774
11169
|
exports.ɵbe = UiListItemDirective;
|
|
10775
11170
|
exports.ɵbf = UiMaskCpfDirective;
|
|
10776
11171
|
exports.ɵbg = UiMaskCnpjDirective;
|
|
10777
|
-
exports.ɵbh =
|
|
10778
|
-
exports.ɵbi =
|
|
10779
|
-
exports.ɵbj =
|
|
10780
|
-
exports.ɵbk =
|
|
10781
|
-
exports.ɵbl =
|
|
10782
|
-
exports.ɵbm =
|
|
10783
|
-
exports.ɵbn =
|
|
10784
|
-
exports.ɵbo =
|
|
10785
|
-
exports.ɵbp =
|
|
10786
|
-
exports.ɵbq =
|
|
10787
|
-
exports.ɵbr =
|
|
10788
|
-
exports.ɵbs =
|
|
10789
|
-
exports.ɵbt =
|
|
10790
|
-
exports.ɵbu =
|
|
10791
|
-
exports.ɵbv =
|
|
10792
|
-
exports.ɵbw =
|
|
10793
|
-
exports.ɵbx =
|
|
10794
|
-
exports.ɵby =
|
|
10795
|
-
exports.ɵbz =
|
|
11172
|
+
exports.ɵbh = UiMaskCnpjNovoDirective;
|
|
11173
|
+
exports.ɵbi = UiMaskCepDirective;
|
|
11174
|
+
exports.ɵbj = UiMaskCepNovoDirective;
|
|
11175
|
+
exports.ɵbk = UiListComponent;
|
|
11176
|
+
exports.ɵbl = UiListItemsComponent;
|
|
11177
|
+
exports.ɵbm = UiListItemComponent;
|
|
11178
|
+
exports.ɵbn = UiSliderComponent;
|
|
11179
|
+
exports.ɵbo = UiSliderMultiHandleComponent;
|
|
11180
|
+
exports.ɵbp = UiInfiniteLoadDirective;
|
|
11181
|
+
exports.ɵbq = UiAutocompleteDirective;
|
|
11182
|
+
exports.ɵbr = UiAutocompleteComponent;
|
|
11183
|
+
exports.ɵbs = UiMaskIntegerDirective;
|
|
11184
|
+
exports.ɵbt = UiTabsComponent;
|
|
11185
|
+
exports.ɵbu = UiTabsPagesComponent;
|
|
11186
|
+
exports.ɵbv = UiLazyLoadDirective;
|
|
11187
|
+
exports.ɵbw = UiDataTableComponent;
|
|
11188
|
+
exports.ɵbx = UiBottomSheetComponent;
|
|
11189
|
+
exports.ɵby = UiBottomSheetTriggerDirective;
|
|
11190
|
+
exports.ɵbz = UiInputFileDirective;
|
|
10796
11191
|
exports.ɵc = _window;
|
|
10797
|
-
exports.ɵca =
|
|
10798
|
-
exports.ɵcb =
|
|
10799
|
-
exports.ɵcc =
|
|
10800
|
-
exports.ɵcd =
|
|
10801
|
-
exports.ɵce =
|
|
10802
|
-
exports.ɵcf =
|
|
10803
|
-
exports.ɵcg =
|
|
10804
|
-
exports.ɵch =
|
|
10805
|
-
exports.ɵci =
|
|
10806
|
-
exports.ɵcj =
|
|
10807
|
-
exports.ɵck =
|
|
10808
|
-
exports.ɵcl =
|
|
10809
|
-
exports.ɵcm =
|
|
10810
|
-
exports.ɵcn =
|
|
10811
|
-
exports.ɵco =
|
|
10812
|
-
exports.ɵcp =
|
|
10813
|
-
exports.ɵcq =
|
|
10814
|
-
exports.ɵcr =
|
|
10815
|
-
exports.ɵcs =
|
|
10816
|
-
exports.ɵct =
|
|
10817
|
-
exports.ɵcu =
|
|
10818
|
-
exports.ɵcv =
|
|
10819
|
-
exports.ɵcw =
|
|
10820
|
-
exports.ɵcx =
|
|
10821
|
-
exports.ɵcy =
|
|
10822
|
-
exports.ɵcz =
|
|
11192
|
+
exports.ɵca = UiEllipsisDirective;
|
|
11193
|
+
exports.ɵcb = UiRequiredDirective;
|
|
11194
|
+
exports.ɵcc = UiColorPickerComponent;
|
|
11195
|
+
exports.ɵcd = UiColorPickerDirective;
|
|
11196
|
+
exports.ɵce = UiInputAutosizeDirective;
|
|
11197
|
+
exports.ɵcf = UiClockComponent;
|
|
11198
|
+
exports.ɵcg = UiTimePickerDirective;
|
|
11199
|
+
exports.ɵch = UiTimePickerService;
|
|
11200
|
+
exports.ɵci = UiTimePickerCallerDirective;
|
|
11201
|
+
exports.ɵcj = UiMaskTimeDirective;
|
|
11202
|
+
exports.ɵck = UiMaskCurrencyDirective;
|
|
11203
|
+
exports.ɵcl = UiSelectComponent;
|
|
11204
|
+
exports.ɵcm = UiSelectOptionComponent;
|
|
11205
|
+
exports.ɵcn = UiSelectFilterPipe;
|
|
11206
|
+
exports.ɵco = UiAvatarComponent;
|
|
11207
|
+
exports.ɵcp = UiMaskFloatDirective;
|
|
11208
|
+
exports.ɵcq = TooltipDirective;
|
|
11209
|
+
exports.ɵcr = UiChosenComponent;
|
|
11210
|
+
exports.ɵcs = UiChosenOptionComponent;
|
|
11211
|
+
exports.ɵct = UiChosenGroupComponent;
|
|
11212
|
+
exports.ɵcu = ExpansionPanelComponent;
|
|
11213
|
+
exports.ɵcv = UiTabComponent;
|
|
11214
|
+
exports.ɵcw = UiTabContentDirective;
|
|
11215
|
+
exports.ɵcx = UiTabLabelDirective;
|
|
11216
|
+
exports.ɵcy = UiTabGroupComponent;
|
|
11217
|
+
exports.ɵcz = tabFakeAnimation;
|
|
10823
11218
|
exports.ɵd = UiAddCalendarDirective;
|
|
10824
|
-
exports.ɵda =
|
|
10825
|
-
exports.ɵdb =
|
|
10826
|
-
exports.ɵdc =
|
|
10827
|
-
exports.ɵdd =
|
|
11219
|
+
exports.ɵda = tabTransform;
|
|
11220
|
+
exports.ɵdb = UiTabHeaderComponent;
|
|
11221
|
+
exports.ɵdc = UiLabelContentComponent;
|
|
11222
|
+
exports.ɵdd = UiUploadComponent;
|
|
11223
|
+
exports.ɵde = Upload;
|
|
11224
|
+
exports.ɵdf = enterLeaveViewAnimation;
|
|
10828
11225
|
exports.ɵe = UiCalendarComponent;
|
|
10829
11226
|
exports.ɵf = UiCalendarContentComponent;
|
|
10830
11227
|
exports.ɵg = UiCapitalizePipe;
|