ngx-smz-ui 3.2.3 → 3.2.7
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/ngx-smz-ui.umd.js +14 -5
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-forms/form-group-builder.js +3 -2
- package/esm2015/lib/builders/smz-tables/state-builder.js +5 -3
- package/esm2015/lib/modules/smz-forms/components/input-number/input-number.component.js +6 -2
- package/esm2015/lib/modules/smz-forms/models/control-types.js +1 -1
- package/esm2015/lib/modules/smz-tables/models/table-state.js +1 -1
- package/esm2015/lib/modules/smz-tables/services/table-editable.service.js +3 -2
- package/fesm2015/ngx-smz-ui.js +13 -5
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-forms/form-group-builder.d.ts +1 -1
- package/lib/builders/smz-tables/state-builder.d.ts +1 -1
- package/lib/modules/smz-forms/components/input-number/input-number.component.d.ts +1 -0
- package/lib/modules/smz-forms/models/control-types.d.ts +1 -0
- package/lib/modules/smz-tables/models/table-state.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2085,10 +2085,14 @@
|
|
|
2085
2085
|
var InputNumberComponent = /** @class */ (function () {
|
|
2086
2086
|
function InputNumberComponent() {
|
|
2087
2087
|
}
|
|
2088
|
+
InputNumberComponent.prototype.onInput = function (event) {
|
|
2089
|
+
this.control.setValue(event.value);
|
|
2090
|
+
this.control.updateValueAndValidity();
|
|
2091
|
+
};
|
|
2088
2092
|
return InputNumberComponent;
|
|
2089
2093
|
}());
|
|
2090
2094
|
InputNumberComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputNumberComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2091
|
-
InputNumberComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputNumberComponent, selector: "smz-input-number", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n <p-inputMask\n *ngIf=\"!input.useFraction\"\n class=\"smz__input_value\"\n fxFlex=\"grow\"\n slotChar=\"\"\n [autoClear]=\"false\"\n mask=\"9?9999999999999999999999999999999\"\n characterPattern=\"([0-9])\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\">\n </p-inputMask>\n <p-inputNumber\n *ngIf=\"input.useFraction\"\n class=\"smz__input_value\"\n fxFlex=\"grow\"\n [formControl]=\"control\"\n locale=\"
|
|
2095
|
+
InputNumberComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: InputNumberComponent, selector: "smz-input-number", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0__namespace, template: "<label class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\n<div class=\"input_inner__wrapper\">\n <p-inputMask\n *ngIf=\"!input.useFraction\"\n class=\"smz__input_value\"\n fxFlex=\"grow\"\n slotChar=\"\"\n [autoClear]=\"false\"\n mask=\"9?9999999999999999999999999999999\"\n characterPattern=\"([0-9])\"\n [id]=\"input.propertyName\"\n [formControl]=\"control\">\n </p-inputMask>\n <p-inputNumber\n *ngIf=\"input.useFraction\"\n class=\"smz__input_value\"\n fxFlex=\"grow\"\n [formControl]=\"control\"\n [locale]=\"input.locale\"\n [minFractionDigits]=\"input.minFractionDigits\"\n [maxFractionDigits]=\"input.maxFractionDigits\"\n [id]=\"input.propertyName\"\n (onInput)=\"onInput($event)\">\n </p-inputNumber>\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\n</div>", components: [{ type: i1__namespace$4.InputMask, selector: "p-inputMask", inputs: ["type", "slotChar", "autoClear", "style", "inputId", "styleClass", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "disabled", "readonly", "unmask", "name", "required", "characterPattern", "autoFocus", "autocomplete", "mask"], outputs: ["onComplete", "onFocus", "onBlur", "onInput", "onKeydown"] }, { type: i2__namespace.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"] }, { type: ValidationMessagesComponent$1, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1__namespace$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$3.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
2092
2096
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: InputNumberComponent, decorators: [{
|
|
2093
2097
|
type: i0.Component,
|
|
2094
2098
|
args: [{
|
|
@@ -6475,8 +6479,9 @@
|
|
|
6475
6479
|
this.cdr.markForCheck();
|
|
6476
6480
|
// ACTION DE EXCLUIR
|
|
6477
6481
|
var action = this.state.editable.actions.remove;
|
|
6482
|
+
var override = this.state.editable.remove.overrideActionDataCallback;
|
|
6478
6483
|
// ACTION INSTANCIADA COM PARAMETROS
|
|
6479
|
-
var dispatchData = new action(row.id);
|
|
6484
|
+
var dispatchData = new action(override != null ? override(row) : row.id);
|
|
6480
6485
|
// PUBLICAR EVENTO DE OUTPUT SAVE DA TABELA
|
|
6481
6486
|
this.deleteEvent.emit(row.id);
|
|
6482
6487
|
// INICIAR TRANSAÇÃO PARA SALVAR OS DADOS
|
|
@@ -10201,8 +10206,10 @@
|
|
|
10201
10206
|
_this._numberInput = _numberInput;
|
|
10202
10207
|
return _this;
|
|
10203
10208
|
}
|
|
10204
|
-
SmzFormNumberBuilder.prototype.setFraction = function (minFractionDigits) {
|
|
10209
|
+
SmzFormNumberBuilder.prototype.setFraction = function (minFractionDigits, maxFractionDigits) {
|
|
10210
|
+
if (minFractionDigits === void 0) { minFractionDigits = 0; }
|
|
10205
10211
|
this._numberInput.minFractionDigits = minFractionDigits;
|
|
10212
|
+
this._numberInput.maxFractionDigits = maxFractionDigits;
|
|
10206
10213
|
this._numberInput.useFraction = true;
|
|
10207
10214
|
return this;
|
|
10208
10215
|
};
|
|
@@ -17529,7 +17536,8 @@
|
|
|
17529
17536
|
remove: {
|
|
17530
17537
|
isButtonVisible: false,
|
|
17531
17538
|
isButtonDisabled: false,
|
|
17532
|
-
accessClaim: null
|
|
17539
|
+
accessClaim: null,
|
|
17540
|
+
overrideActionDataCallback: null
|
|
17533
17541
|
},
|
|
17534
17542
|
actions: {
|
|
17535
17543
|
update: null,
|
|
@@ -17926,12 +17934,13 @@
|
|
|
17926
17934
|
this._state.editable.isEditable = true;
|
|
17927
17935
|
return this;
|
|
17928
17936
|
};
|
|
17929
|
-
SmzTableBuilder.prototype.setRemoveAction = function (action, claim) {
|
|
17937
|
+
SmzTableBuilder.prototype.setRemoveAction = function (action, claim, overrideActionData) {
|
|
17930
17938
|
if (!this._state.editable.isEditable)
|
|
17931
17939
|
this._state.actions.customActions.columnWidth += 150;
|
|
17932
17940
|
this._state.editable.actions.remove = action;
|
|
17933
17941
|
this._state.editable.remove.isButtonVisible = true;
|
|
17934
17942
|
this._state.editable.remove.accessClaim = claim;
|
|
17943
|
+
this._state.editable.remove.overrideActionDataCallback = overrideActionData;
|
|
17935
17944
|
this._state.editable.isEditable = true;
|
|
17936
17945
|
return this;
|
|
17937
17946
|
};
|