ngx-vector-components 4.57.0 → 4.59.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/CHANGELOG.md +13 -0
- package/esm2020/lib/components/fields/input-number-field/input-number-field.component.mjs +6 -3
- package/esm2020/lib/models/profile.model.mjs +8 -1
- package/esm2020/lib/utils/mask.util.mjs +6 -1
- package/fesm2015/ngx-vector-components.mjs +18 -3
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +18 -3
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/fields/input-number-field/input-number-field.component.d.ts +2 -1
- package/lib/models/profile.model.d.ts +8 -1
- package/lib/utils/mask.util.d.ts +2 -0
- package/package.json +1 -1
|
@@ -337,6 +337,13 @@ var ProfileModuleActionType;
|
|
|
337
337
|
ProfileModuleActionType["ADD_RISK_MANAGEMENT"] = "Add Risk Management";
|
|
338
338
|
ProfileModuleActionType["EDIT_RISK_MANAGEMENT"] = "Edit Risk Management";
|
|
339
339
|
ProfileModuleActionType["DELETE_RISK_MANAGEMENT"] = "Delete Risk Management";
|
|
340
|
+
ProfileModuleActionType["DIGITAL_DISCHARGE_BASIC_DATA"] = "Quitacao Digital Basic Data";
|
|
341
|
+
ProfileModuleActionType["DIGITAL_DISCHARGE_ETCD_APPROVER"] = "Quitacao Digital ETCD Aprovador";
|
|
342
|
+
ProfileModuleActionType["DIGITAL_DISCHARGE_ETCD_APPROVER_MANAGEMENT"] = "Quitacao Digital ETCD Aprovador Gestor";
|
|
343
|
+
ProfileModuleActionType["DIGITAL_DISCHARGE_VECTOR_APPROVER"] = "Quitacao Digital Vector Aprovador";
|
|
344
|
+
ProfileModuleActionType["DIGITAL_DISCHARGE_VECTOR_APPROVER_MANAGEMENT"] = "Quitacao Digital Vector Aprovador Gestor";
|
|
345
|
+
ProfileModuleActionType["DIGITAL_DISCHARGE_APPROVE_SAP"] = "Quitacao Digital Aprovador Contingencia Sap";
|
|
346
|
+
ProfileModuleActionType["PAYMENT_FREIGHT_ADJUST_FREIGHT_VALUE"] = "Pagamento Frete Ajustar Valor Frete";
|
|
340
347
|
})(ProfileModuleActionType || (ProfileModuleActionType = {}));
|
|
341
348
|
|
|
342
349
|
var Role;
|
|
@@ -548,6 +555,7 @@ const PHONE_PATTERN = '(##) ####-####';
|
|
|
548
555
|
const PLATE_PATTERN = '###-####';
|
|
549
556
|
const HOURS_MINUTES_PATTERN = '##:##';
|
|
550
557
|
const DNI_PATTERN = '##.###.###';
|
|
558
|
+
const CUIT_PATTERN = '##-########-#';
|
|
551
559
|
class MaskUtil {
|
|
552
560
|
static formatDocument(stringValue) {
|
|
553
561
|
if (!stringValue) {
|
|
@@ -588,6 +596,9 @@ class MaskUtil {
|
|
|
588
596
|
static formatDni(stringValue) {
|
|
589
597
|
return this.doMaskString(stringValue, DNI_PATTERN);
|
|
590
598
|
}
|
|
599
|
+
static formatCuit(stringValue) {
|
|
600
|
+
return this.doMaskString(stringValue, CUIT_PATTERN);
|
|
601
|
+
}
|
|
591
602
|
static doMaskString(str, pattern) {
|
|
592
603
|
if (!str?.trim()) {
|
|
593
604
|
return '';
|
|
@@ -608,7 +619,8 @@ MaskUtil.PHONE_TEXT_FIELD_PATTERN = '(99) 9999-9999';
|
|
|
608
619
|
MaskUtil.POSTALCODE_TEXT_FIELD_PATTERN = '99999-999';
|
|
609
620
|
MaskUtil.PLATE_FIELD_PATTERN = 'aaa-9*99';
|
|
610
621
|
MaskUtil.HOURS_MINUTES_FIELD_PATTERN = '99:99';
|
|
611
|
-
MaskUtil.DNI_FIELD_PATTERN = '99.999.999';
|
|
622
|
+
MaskUtil.DNI_FIELD_PATTERN = '99.999.999';
|
|
623
|
+
MaskUtil.CUIT_FIELD_PATTERN = '99.99999999.9';
|
|
612
624
|
|
|
613
625
|
class ObjectUtil {
|
|
614
626
|
static getObjectKeys(obj) {
|
|
@@ -2925,6 +2937,7 @@ class InputNumberFieldComponent {
|
|
|
2925
2937
|
this.decrementButtonIcon = 'pi pi-minus-circle';
|
|
2926
2938
|
this.min = 0;
|
|
2927
2939
|
this.step = 1;
|
|
2940
|
+
this.disabled = false;
|
|
2928
2941
|
this.onFocus = new EventEmitter();
|
|
2929
2942
|
this.onBlur = new EventEmitter();
|
|
2930
2943
|
this.onInput = new EventEmitter();
|
|
@@ -2954,10 +2967,10 @@ class InputNumberFieldComponent {
|
|
|
2954
2967
|
}
|
|
2955
2968
|
}
|
|
2956
2969
|
InputNumberFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputNumberFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2957
|
-
InputNumberFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputNumberFieldComponent, selector: "vector-input-number", inputs: { control: "control", showButtons: "showButtons", type: "type", minFractionDigits: "minFractionDigits", maxFractionDigits: "maxFractionDigits", buttonLayout: "buttonLayout", incrementButtonIcon: "incrementButtonIcon", decrementButtonIcon: "decrementButtonIcon", min: "min", step: "step", max: "max", suffix: "suffix" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onInput: "onInput", onClear: "onClear" }, ngImport: i0, template: "<div class=\"input-container\">\r\n <p-inputNumber\r\n [formControl]=\"control\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [suffix]=\"suffix\"\r\n [step]=\"step\"\r\n [minFractionDigits]=\"minFractionDigits\"\r\n [maxFractionDigits]=\"maxFractionDigits\"\r\n [showButtons]=\"showButtons\"\r\n [buttonLayout]=\"buttonLayout\"\r\n [incrementButtonIcon]=\"incrementButtonIcon\"\r\n [decrementButtonIcon]=\"decrementButtonIcon\"\r\n ></p-inputNumber>\r\n</div>\r\n", styles: [".input-container{width:100%}\n"], components: [{ type: i1$5.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown"] }], directives: [{ type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2970
|
+
InputNumberFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputNumberFieldComponent, selector: "vector-input-number", inputs: { control: "control", showButtons: "showButtons", type: "type", minFractionDigits: "minFractionDigits", maxFractionDigits: "maxFractionDigits", buttonLayout: "buttonLayout", incrementButtonIcon: "incrementButtonIcon", decrementButtonIcon: "decrementButtonIcon", min: "min", step: "step", disabled: "disabled", max: "max", suffix: "suffix" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onInput: "onInput", onClear: "onClear" }, ngImport: i0, template: "<div class=\"input-container\">\r\n <p-inputNumber\r\n [formControl]=\"control\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [suffix]=\"suffix\"\r\n [step]=\"step\"\r\n [minFractionDigits]=\"minFractionDigits\"\r\n [maxFractionDigits]=\"maxFractionDigits\"\r\n [showButtons]=\"showButtons\"\r\n [disabled]=\"disabled\"\r\n [buttonLayout]=\"buttonLayout\"\r\n [incrementButtonIcon]=\"incrementButtonIcon\"\r\n [decrementButtonIcon]=\"decrementButtonIcon\"\r\n ></p-inputNumber>\r\n</div>\r\n", styles: [".input-container{width:100%}\n"], components: [{ type: i1$5.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown"] }], directives: [{ type: i2$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2958
2971
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputNumberFieldComponent, decorators: [{
|
|
2959
2972
|
type: Component,
|
|
2960
|
-
args: [{ selector: 'vector-input-number', template: "<div class=\"input-container\">\r\n <p-inputNumber\r\n [formControl]=\"control\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [suffix]=\"suffix\"\r\n [step]=\"step\"\r\n [minFractionDigits]=\"minFractionDigits\"\r\n [maxFractionDigits]=\"maxFractionDigits\"\r\n [showButtons]=\"showButtons\"\r\n [buttonLayout]=\"buttonLayout\"\r\n [incrementButtonIcon]=\"incrementButtonIcon\"\r\n [decrementButtonIcon]=\"decrementButtonIcon\"\r\n ></p-inputNumber>\r\n</div>\r\n", styles: [".input-container{width:100%}\n"] }]
|
|
2973
|
+
args: [{ selector: 'vector-input-number', template: "<div class=\"input-container\">\r\n <p-inputNumber\r\n [formControl]=\"control\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [suffix]=\"suffix\"\r\n [step]=\"step\"\r\n [minFractionDigits]=\"minFractionDigits\"\r\n [maxFractionDigits]=\"maxFractionDigits\"\r\n [showButtons]=\"showButtons\"\r\n [disabled]=\"disabled\"\r\n [buttonLayout]=\"buttonLayout\"\r\n [incrementButtonIcon]=\"incrementButtonIcon\"\r\n [decrementButtonIcon]=\"decrementButtonIcon\"\r\n ></p-inputNumber>\r\n</div>\r\n", styles: [".input-container{width:100%}\n"] }]
|
|
2961
2974
|
}], propDecorators: { control: [{
|
|
2962
2975
|
type: Input
|
|
2963
2976
|
}], showButtons: [{
|
|
@@ -2978,6 +2991,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2978
2991
|
type: Input
|
|
2979
2992
|
}], step: [{
|
|
2980
2993
|
type: Input
|
|
2994
|
+
}], disabled: [{
|
|
2995
|
+
type: Input
|
|
2981
2996
|
}], max: [{
|
|
2982
2997
|
type: Input
|
|
2983
2998
|
}], suffix: [{
|