@senior-agronegocio/angular-components 0.0.90 → 0.0.93
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/senior-agronegocio-angular-components.umd.js +47 -1
- package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
- package/esm2015/pipe/cnpj-cpf/cnpj-cpf.pipe.js +28 -0
- package/esm2015/pipe/cnpj-cpf/cnpj-cpf.pipe.module.js +15 -0
- package/esm2015/pipe/cnpj-cpf/index.js +3 -0
- package/esm2015/pipe/index.js +2 -1
- package/esm2015/public-api.js +2 -2
- package/esm2015/senior-agronegocio-angular-components.js +3 -2
- package/esm5/pipe/cnpj-cpf/cnpj-cpf.pipe.js +35 -0
- package/esm5/pipe/cnpj-cpf/cnpj-cpf.pipe.module.js +18 -0
- package/esm5/pipe/cnpj-cpf/index.js +3 -0
- package/esm5/pipe/index.js +2 -1
- package/esm5/public-api.js +2 -2
- package/esm5/senior-agronegocio-angular-components.js +3 -2
- package/fesm2015/senior-agronegocio-angular-components.js +34 -1
- package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
- package/fesm5/senior-agronegocio-angular-components.js +44 -1
- package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/pipe/cnpj-cpf/cnpj-cpf.pipe.d.ts +4 -0
- package/pipe/cnpj-cpf/cnpj-cpf.pipe.module.d.ts +2 -0
- package/pipe/cnpj-cpf/index.d.ts +2 -0
- package/pipe/index.d.ts +1 -0
- package/public-api.d.ts +1 -1
- package/senior-agronegocio-angular-components.d.ts +2 -1
- package/senior-agronegocio-angular-components.metadata.json +1 -1
|
@@ -6653,6 +6653,49 @@
|
|
|
6653
6653
|
return EventControlBoardModule;
|
|
6654
6654
|
}());
|
|
6655
6655
|
|
|
6656
|
+
var CnpjCpfPipe = /** @class */ (function () {
|
|
6657
|
+
function CnpjCpfPipe() {
|
|
6658
|
+
}
|
|
6659
|
+
CnpjCpfPipe.prototype.transform = function (value) {
|
|
6660
|
+
var args = [];
|
|
6661
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6662
|
+
args[_i - 1] = arguments[_i];
|
|
6663
|
+
}
|
|
6664
|
+
if (typeof value !== 'string' && typeof value !== 'number') {
|
|
6665
|
+
return value;
|
|
6666
|
+
}
|
|
6667
|
+
var nVal = value.toString().replace(/\D/g, '');
|
|
6668
|
+
if (AgroStringUtils.isNotEmpty(nVal)) {
|
|
6669
|
+
if (nVal.length === exports.AGRO_NUMBERS.FOURTEEN) {
|
|
6670
|
+
return AgroStringUtils.applyMask(nVal, exports.AgroStringMasks.CNPJ);
|
|
6671
|
+
}
|
|
6672
|
+
if (nVal.length === exports.AGRO_NUMBERS.ELEVEN) {
|
|
6673
|
+
return AgroStringUtils.applyMask(nVal, exports.AgroStringMasks.CPF);
|
|
6674
|
+
}
|
|
6675
|
+
}
|
|
6676
|
+
return value;
|
|
6677
|
+
};
|
|
6678
|
+
CnpjCpfPipe = __decorate([
|
|
6679
|
+
core.Pipe({
|
|
6680
|
+
name: 'cnpjCpf'
|
|
6681
|
+
})
|
|
6682
|
+
], CnpjCpfPipe);
|
|
6683
|
+
return CnpjCpfPipe;
|
|
6684
|
+
}());
|
|
6685
|
+
|
|
6686
|
+
var CnpjCpfPipeModule = /** @class */ (function () {
|
|
6687
|
+
function CnpjCpfPipeModule() {
|
|
6688
|
+
}
|
|
6689
|
+
CnpjCpfPipeModule = __decorate([
|
|
6690
|
+
core.NgModule({
|
|
6691
|
+
declarations: [CnpjCpfPipe],
|
|
6692
|
+
imports: [common.CommonModule],
|
|
6693
|
+
exports: [CnpjCpfPipe],
|
|
6694
|
+
})
|
|
6695
|
+
], CnpjCpfPipeModule);
|
|
6696
|
+
return CnpjCpfPipeModule;
|
|
6697
|
+
}());
|
|
6698
|
+
|
|
6656
6699
|
var HostProjectConfigsInjectionToken = new core.InjectionToken("hostProjectConfigs");
|
|
6657
6700
|
var AgroAngularComponentsModule = /** @class */ (function () {
|
|
6658
6701
|
function AgroAngularComponentsModule() {
|
|
@@ -6691,6 +6734,8 @@
|
|
|
6691
6734
|
exports.AsyncLock = AsyncLock;
|
|
6692
6735
|
exports.CancelEventDialogComponent = CancelEventDialogComponent;
|
|
6693
6736
|
exports.CancelEventDialogModule = CancelEventDialogModule;
|
|
6737
|
+
exports.CnpjCpfPipe = CnpjCpfPipe;
|
|
6738
|
+
exports.CnpjCpfPipeModule = CnpjCpfPipeModule;
|
|
6694
6739
|
exports.Colors = Colors;
|
|
6695
6740
|
exports.E001TnsModule = E001TnsModule;
|
|
6696
6741
|
exports.E001pesModule = E001pesModule;
|
|
@@ -6723,7 +6768,8 @@
|
|
|
6723
6768
|
exports.UserInformationService = UserInformationService;
|
|
6724
6769
|
exports.WebsocketModule = WebsocketModule;
|
|
6725
6770
|
exports.WebsocketService = WebsocketService;
|
|
6726
|
-
exports.ɵa =
|
|
6771
|
+
exports.ɵa = LibTranslatePipe;
|
|
6772
|
+
exports.ɵb = LibTranslationService;
|
|
6727
6773
|
|
|
6728
6774
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6729
6775
|
|