ngx-vector-components 6.28.0 → 6.29.1

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.29.1] (16/09/2026)
4
+
5
+ ### Fix
6
+
7
+ - Fix `input-number-field.component` ignoring a custom `suffix` when `type` is not `percent`: the getter now returns the provided suffix for any type and falls back to `%` only for `percent`. Screens no longer need `type="percent"` (which also forces `max` to 100) just to display a unit suffix.
8
+
9
+ ## [6.29.0] (14/09/2026)
10
+
11
+ ### Feat
12
+
13
+ - Added module 'CTE_COMPLEMENT' in `ProfileModuleType` and permissions 'CONFIG_PARAM_CTE_COMPLEMENT', 'CAN_REQUEST_CTE_COMPLEMENT', 'CAN_EXPORT_APPROVALS_EXCEL', 'CAN_VIEW_CTE_COMPLEMENT_HISTORY', 'CAN_VIEW_CTE_COMPLEMENT_CONFIG', 'CAN_EDIT_CTE_COMPLEMENT_TYPES', 'CAN_ADD_CTE_COMPLEMENT_APPROVERS', 'CAN_EDIT_CTE_COMPLEMENT_APPROVERS', 'CAN_ADD_CTE_COMPLEMENT_MOTIVES', 'CAN_EDIT_CTE_COMPLEMENT_MOTIVES', 'CAN_EDIT_CTE_COMPLEMENT_SUBSIDIARIES' and 'CAN_ADD_CTE_COMPLEMENT_EXCEL_INFOS' in `ProfileModuleActionType` (`profile.model.ts`)
14
+
3
15
  ## [6.28.0] (11/09/2026)
4
16
 
5
17
  ### Feat
@@ -269,6 +269,7 @@ var ProfileModuleType;
269
269
  ProfileModuleType["CHATBOT"] = "Chatbot";
270
270
  ProfileModuleType["BLOCK_CARRIER"] = "Block Carrier";
271
271
  ProfileModuleType["TRAINING_NEW"] = "Treinamento";
272
+ ProfileModuleType["CTE_COMPLEMENT"] = "Cte Complementar";
272
273
  })(ProfileModuleType || (ProfileModuleType = {}));
273
274
  var ProfileModuleActionType;
274
275
  (function (ProfileModuleActionType) {
@@ -893,6 +894,18 @@ var ProfileModuleActionType;
893
894
  ProfileModuleActionType["ACTIVE_TRAINING"] = "Ativar treinamento";
894
895
  ProfileModuleActionType["CREATE_TRAINING"] = "Criar treinamento";
895
896
  ProfileModuleActionType["ENABLED_TO_SUBDISTRIBUTE_QUOTA"] = "Enabled To Subdistribute Quota";
897
+ ProfileModuleActionType["CONFIG_PARAM_CTE_COMPLEMENT"] = "Pode Configurar Parametros Cte Complementar";
898
+ ProfileModuleActionType["CAN_REQUEST_CTE_COMPLEMENT"] = "Pode Solicitar Complemento";
899
+ ProfileModuleActionType["CAN_EXPORT_APPROVALS_EXCEL"] = "Pode Exportar Excel Aprovacoes";
900
+ ProfileModuleActionType["CAN_VIEW_CTE_COMPLEMENT_HISTORY"] = "Pode Ver Historico Cte Complementar";
901
+ ProfileModuleActionType["CAN_VIEW_CTE_COMPLEMENT_CONFIG"] = "Pode Visualizar Configuracoes Cte Complementar";
902
+ ProfileModuleActionType["CAN_EDIT_CTE_COMPLEMENT_TYPES"] = "Pode Editar Tipos";
903
+ ProfileModuleActionType["CAN_ADD_CTE_COMPLEMENT_APPROVERS"] = "Pode Adicionar Aprovadores";
904
+ ProfileModuleActionType["CAN_EDIT_CTE_COMPLEMENT_APPROVERS"] = "Pode Editar Aprovadores";
905
+ ProfileModuleActionType["CAN_ADD_CTE_COMPLEMENT_MOTIVES"] = "Pode Adicionar Motivos De Solicitacao";
906
+ ProfileModuleActionType["CAN_EDIT_CTE_COMPLEMENT_MOTIVES"] = "Pode Editar Motivos De Solicitacao";
907
+ ProfileModuleActionType["CAN_EDIT_CTE_COMPLEMENT_SUBSIDIARIES"] = "Pode Editar Filiais Cte Complementar";
908
+ ProfileModuleActionType["CAN_ADD_CTE_COMPLEMENT_EXCEL_INFOS"] = "Pode Adicionar Excel Infos Cte Complementar";
896
909
  })(ProfileModuleActionType || (ProfileModuleActionType = {}));
897
910
 
898
911
  var Role;
@@ -5253,11 +5266,10 @@ class InputNumberFieldComponent {
5253
5266
  return this._max || 999999999;
5254
5267
  }
5255
5268
  get suffix() {
5256
- switch (this.type) {
5257
- case 'percent':
5258
- return this._suffix || '%';
5269
+ if (this._suffix) {
5270
+ return this._suffix;
5259
5271
  }
5260
- return '';
5272
+ return this.type === 'percent' ? '%' : '';
5261
5273
  }
5262
5274
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: InputNumberFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5263
5275
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: InputNumberFieldComponent, isStandalone: false, selector: "vector-input-number", inputs: { inputId: "inputId", 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\">\n <p-inputNumber\n [inputId]=\"inputId\"\n [formControl]=\"control\"\n [min]=\"min\"\n [max]=\"max\"\n [suffix]=\"suffix\"\n [step]=\"step\"\n [minFractionDigits]=\"minFractionDigits\"\n [maxFractionDigits]=\"maxFractionDigits\"\n [showButtons]=\"showButtons\"\n [disabled]=\"disabled\"\n [buttonLayout]=\"buttonLayout\"\n [incrementButtonIcon]=\"incrementButtonIcon\"\n [decrementButtonIcon]=\"decrementButtonIcon\"\n (onBlur)=\"onBlur.emit($event)\"\n (onFocus)=\"onFocus.emit($event)\"\n ></p-inputNumber>\n <vector-field-error-message [control]=\"control\"></vector-field-error-message>\n</div>\n", styles: [".input-container{width:100%;position:relative;display:block}\n"], dependencies: [{ kind: "directive", type: i1$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2$3.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "variant", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus", "disabled", "fluid"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "component", type: FieldErrorMessageComponent, selector: "vector-field-error-message", inputs: ["control"] }] }); }