ngx-dsxlibrary 2.21.51 → 2.21.52

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.
@@ -3319,7 +3319,7 @@ class UtilityAddService {
3319
3319
  const guideHtml = this.buildAssociatedGuideHtml(response?.data);
3320
3320
  const mainMessage = this.formatPrimaryAlertMessage(response.message);
3321
3321
  this._serviceAlerta.alertaHtmlSuccess(response.title, `${mainMessage}${guideHtml}`, {
3322
- icono: 'icon2/hard_drive_error.png',
3322
+ icono: 'icon/request.png',
3323
3323
  showConfirmButton: true,
3324
3324
  });
3325
3325
  }
@@ -3645,12 +3645,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
3645
3645
  const ACTION_TYPES = {
3646
3646
  hardDelete: 'hardDelete',
3647
3647
  softDelete: 'softDelete',
3648
+ return: 'return',
3648
3649
  home: 'home',
3649
3650
  validate: 'validate',
3650
3651
  restore: 'restore',
3651
3652
  edit: 'edit',
3652
3653
  create: 'create',
3653
- saveOrUpdate: 'saveOrUpdate',
3654
+ save: 'save',
3655
+ update: 'update',
3654
3656
  refresh: 'refresh',
3655
3657
  view: 'view',
3656
3658
  export: 'export',
@@ -3706,12 +3708,11 @@ function getActionMessageConfig(action, isActive = true) {
3706
3708
  showCancelButton: true,
3707
3709
  };
3708
3710
  }
3709
- if (action === 'saveOrUpdate') {
3711
+ if (action === 'save') {
3710
3712
  return {
3711
3713
  ...defaults,
3712
- title: '¿Guardar cambios?',
3713
- message: 'El progreso de este registro se guardará en el sistema.',
3714
- //icon: 'info',
3714
+ title: '¿Guardar registro?',
3715
+ message: 'El nuevo registro se guardará en el sistema.',
3715
3716
  icono: 'icon2/save_2029637.png',
3716
3717
  confirmButtonText: 'Guardar',
3717
3718
  cancelButtonText: 'Cancelar',
@@ -3719,6 +3720,18 @@ function getActionMessageConfig(action, isActive = true) {
3719
3720
  showCancelButton: true,
3720
3721
  };
3721
3722
  }
3723
+ if (action === 'update') {
3724
+ return {
3725
+ ...defaults,
3726
+ title: '¿Actualizar registro?',
3727
+ message: 'Los cambios realizados se actualizarán en el sistema.',
3728
+ icono: 'icon2/save_2029637.png',
3729
+ confirmButtonText: 'Actualizar',
3730
+ cancelButtonText: 'Cancelar',
3731
+ showConfirmButton: true,
3732
+ showCancelButton: true,
3733
+ };
3734
+ }
3722
3735
  if (action === 'restore') {
3723
3736
  return {
3724
3737
  ...defaults,
@@ -3769,6 +3782,7 @@ const DSX_PALETTE = {
3769
3782
  info: '#26C6DA',
3770
3783
  neutral: '#90A4AE',
3771
3784
  restore: '#B0BEC5', // Gris suave, menos resaltado
3785
+ return: '#5C6BC0', // Azul violeta para "Regresar registro archivado"
3772
3786
  view: '#00838F',
3773
3787
  excel: '#217346',
3774
3788
  download: '#E65100',
@@ -3840,13 +3854,6 @@ class DsxButtonComponent {
3840
3854
  id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
3841
3855
  requireIdInput = input(false, ...(ngDevMode ? [{ debugName: "requireIdInput" }] : /* istanbul ignore next */ []));
3842
3856
  requiresIdGreaterThanZero = input(false, ...(ngDevMode ? [{ debugName: "requiresIdGreaterThanZero" }] : /* istanbul ignore next */ []));
3843
- /**
3844
- * Modo opcional para `softDelete`:
3845
- * - `true` => botón "Borrar"
3846
- * - `false` => botón "Retornar" (activar registro)
3847
- * - `undefined` => conserva la configuración por defecto
3848
- */
3849
- softDeleteMode = input(undefined, ...(ngDevMode ? [{ debugName: "softDeleteMode" }] : /* istanbul ignore next */ []));
3850
3857
  labelOverride = input(undefined, ...(ngDevMode ? [{ debugName: "labelOverride" }] : /* istanbul ignore next */ []));
3851
3858
  tooltipOverride = input(undefined, ...(ngDevMode ? [{ debugName: "tooltipOverride" }] : /* istanbul ignore next */ []));
3852
3859
  iconOverride = input(undefined, ...(ngDevMode ? [{ debugName: "iconOverride" }] : /* istanbul ignore next */ []));
@@ -3970,38 +3977,7 @@ class DsxButtonComponent {
3970
3977
  const cfg = ACTION_CONFIG[this.type()];
3971
3978
  const colorOverride = this.colorOverride();
3972
3979
  const outlinedOverride = this.outlinedOverride();
3973
- if (this.type() === 'softDelete' && this.softDeleteMode() !== undefined) {
3974
- const shouldDelete = this.softDeleteMode();
3975
- // Si no es delete, tomar todas las props de restore excepto icon y tooltip
3976
- const restoreCfg = ACTION_CONFIG.restore;
3977
- if (shouldDelete) {
3978
- return {
3979
- ...cfg,
3980
- colorToken: colorOverride ?? cfg.colorToken,
3981
- outlined: outlinedOverride ?? cfg.outlined,
3982
- };
3983
- }
3984
- else {
3985
- return {
3986
- ...restoreCfg,
3987
- icon: 'published_with_changes',
3988
- tooltip: 'Activar registro',
3989
- colorToken: colorOverride ?? restoreCfg.colorToken,
3990
- outlined: outlinedOverride ?? restoreCfg.outlined,
3991
- };
3992
- }
3993
- }
3994
- if (this.type() === 'saveOrUpdate') {
3995
- const currentId = this.getNormalizedId();
3996
- const isUpdate = typeof currentId === 'number' && currentId > 0;
3997
- return {
3998
- ...cfg,
3999
- label: isUpdate ? 'Actualizar' : 'Guardar',
4000
- tooltip: isUpdate ? 'Actualizar datos' : 'Guardar datos',
4001
- colorToken: colorOverride ?? (isUpdate ? 'primary' : 'success'),
4002
- outlined: outlinedOverride ?? cfg.outlined,
4003
- };
4004
- }
3980
+ // Ya no se gestiona softDelete/return como modo, cada acción es independiente
4005
3981
  return {
4006
3982
  ...cfg,
4007
3983
  colorToken: colorOverride ?? cfg.colorToken,
@@ -4084,7 +4060,8 @@ class DsxButtonComponent {
4084
4060
  const requiresExistingRecord = this.requiresIdGreaterThanZero() ||
4085
4061
  this.type() === 'hardDelete' ||
4086
4062
  this.type() === 'softDelete' ||
4087
- this.type() === 'restore';
4063
+ this.type() === 'restore' ||
4064
+ this.type() === 'return';
4088
4065
  // Permite exigir que venga [id] cuando el caso de uso lo requiera.
4089
4066
  if (this.requireIdInput() && typeof id !== 'number') {
4090
4067
  return false;
@@ -4182,7 +4159,7 @@ class DsxButtonComponent {
4182
4159
  return this._paramService.isParameterValue(parameterName, this.parameterExpectedValue(), this.parameterIndex());
4183
4160
  }
4184
4161
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DsxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4185
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DsxButtonComponent, isStandalone: true, selector: "dsx-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerPath: { classPropertyName: "routerPath", publicName: "routerPath", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, iconOnlyWidth: { classPropertyName: "iconOnlyWidth", publicName: "iconOnlyWidth", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, parameterName: { classPropertyName: "parameterName", publicName: "parameterName", isSignal: true, isRequired: false, transformFunction: null }, parameterExpectedValue: { classPropertyName: "parameterExpectedValue", publicName: "parameterExpectedValue", isSignal: true, isRequired: false, transformFunction: null }, parameterIndex: { classPropertyName: "parameterIndex", publicName: "parameterIndex", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, requireIdInput: { classPropertyName: "requireIdInput", publicName: "requireIdInput", isSignal: true, isRequired: false, transformFunction: null }, requiresIdGreaterThanZero: { classPropertyName: "requiresIdGreaterThanZero", publicName: "requiresIdGreaterThanZero", isSignal: true, isRequired: false, transformFunction: null }, softDeleteMode: { classPropertyName: "softDeleteMode", publicName: "softDeleteMode", isSignal: true, isRequired: false, transformFunction: null }, labelOverride: { classPropertyName: "labelOverride", publicName: "labelOverride", isSignal: true, isRequired: false, transformFunction: null }, tooltipOverride: { classPropertyName: "tooltipOverride", publicName: "tooltipOverride", isSignal: true, isRequired: false, transformFunction: null }, iconOverride: { classPropertyName: "iconOverride", publicName: "iconOverride", isSignal: true, isRequired: false, transformFunction: null }, primeIconOverride: { classPropertyName: "primeIconOverride", publicName: "primeIconOverride", isSignal: true, isRequired: false, transformFunction: null }, colorOverride: { classPropertyName: "colorOverride", publicName: "colorOverride", isSignal: true, isRequired: false, transformFunction: null }, outlinedOverride: { classPropertyName: "outlinedOverride", publicName: "outlinedOverride", isSignal: true, isRequired: false, transformFunction: null }, showValidateButtonOverride: { classPropertyName: "showValidateButtonOverride", publicName: "showValidateButtonOverride", isSignal: true, isRequired: false, transformFunction: null }, showRestoreButtonOverride: { classPropertyName: "showRestoreButtonOverride", publicName: "showRestoreButtonOverride", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { action: "action" }, host: { properties: { "class.dsx-button-compact-host": "this.compactHostClass" } }, ngImport: i0, template: "<!--Bot\u00F3n con las configuraciones din\u00E1micas para CRUD -->\r\n@if (showButton()) {\r\n<p-button\r\n [label]=\"buttonLabel\"\r\n [style]=\"buttonStyle\"\r\n [styleClass]=\"buttonStyleClass\"\r\n [pTooltip]=\"tooltip\"\r\n [tooltipDisabled]=\"disabled()\"\r\n tooltipPosition=\"top\"\r\n [rounded]=\"rounded()\"\r\n [text]=\"isCompactIconButton\"\r\n [size]=\"buttonSize\"\r\n severity=\"secondary\"\r\n [disabled]=\"disabled()\"\r\n [icon]=\"iconOnly() ? primeIcon : undefined\"\r\n (click)=\"onButtonClick()\"\r\n>\r\n @if (!iconOnly()) {\r\n <span class=\"material-symbols-outlined dsx-button-icon-small\"\r\n >{{ materialIcon }}</span\r\n >\r\n }\r\n</p-button>\r\n}\r\n", styles: [".dsx-button-icon-small{font-size:1.25rem;vertical-align:middle}:host{display:inline-flex;margin-bottom:.25rem}:host.dsx-button-compact-host{margin-bottom:0}:host ::ng-deep .p-button .p-button-label{font-family:Montserrat,Roboto,sans-serif;font-weight:500;letter-spacing:.01em}:host ::ng-deep .p-button.dsx-button-compact{min-height:2rem;padding-block:.2rem}:host ::ng-deep .p-button .material-symbols-outlined.p-button-icon{line-height:1;vertical-align:middle}:host ::ng-deep .p-button.dsx-button-compact .p-button-icon{margin:0;font-size:1.2rem;line-height:1}:host ::ng-deep .p-button.dsx-button-compact .material-symbols-outlined.p-button-icon{font-variation-settings:\"FILL\" 1,\"wght\" 500,\"GRAD\" 0,\"opsz\" 24}:host ::ng-deep .p-button:disabled,:host ::ng-deep .p-button.p-disabled{cursor:not-allowed!important;opacity:.45!important;filter:grayscale(.2) saturate(.75)}:host ::ng-deep .p-button:disabled *,:host ::ng-deep .p-button.p-disabled *{cursor:not-allowed!important}.p-button.dsx-button-outlined-neutral,.p-button.dsx-button-outlined-info{background:#f5f7fa!important;border:1.5px solid #0066cc!important;color:#06c!important}.p-button.dsx-button-outlined-neutral:disabled,.p-button.dsx-button-outlined-info:disabled{background:#f5f7fa!important;border:1.5px solid #b0bec5!important;color:#b0bec5!important}\n"], dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }] });
4162
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: DsxButtonComponent, isStandalone: true, selector: "dsx-button", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerPath: { classPropertyName: "routerPath", publicName: "routerPath", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, iconOnlyWidth: { classPropertyName: "iconOnlyWidth", publicName: "iconOnlyWidth", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, parameterName: { classPropertyName: "parameterName", publicName: "parameterName", isSignal: true, isRequired: false, transformFunction: null }, parameterExpectedValue: { classPropertyName: "parameterExpectedValue", publicName: "parameterExpectedValue", isSignal: true, isRequired: false, transformFunction: null }, parameterIndex: { classPropertyName: "parameterIndex", publicName: "parameterIndex", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, requireIdInput: { classPropertyName: "requireIdInput", publicName: "requireIdInput", isSignal: true, isRequired: false, transformFunction: null }, requiresIdGreaterThanZero: { classPropertyName: "requiresIdGreaterThanZero", publicName: "requiresIdGreaterThanZero", isSignal: true, isRequired: false, transformFunction: null }, labelOverride: { classPropertyName: "labelOverride", publicName: "labelOverride", isSignal: true, isRequired: false, transformFunction: null }, tooltipOverride: { classPropertyName: "tooltipOverride", publicName: "tooltipOverride", isSignal: true, isRequired: false, transformFunction: null }, iconOverride: { classPropertyName: "iconOverride", publicName: "iconOverride", isSignal: true, isRequired: false, transformFunction: null }, primeIconOverride: { classPropertyName: "primeIconOverride", publicName: "primeIconOverride", isSignal: true, isRequired: false, transformFunction: null }, colorOverride: { classPropertyName: "colorOverride", publicName: "colorOverride", isSignal: true, isRequired: false, transformFunction: null }, outlinedOverride: { classPropertyName: "outlinedOverride", publicName: "outlinedOverride", isSignal: true, isRequired: false, transformFunction: null }, showValidateButtonOverride: { classPropertyName: "showValidateButtonOverride", publicName: "showValidateButtonOverride", isSignal: true, isRequired: false, transformFunction: null }, showRestoreButtonOverride: { classPropertyName: "showRestoreButtonOverride", publicName: "showRestoreButtonOverride", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { action: "action" }, host: { properties: { "class.dsx-button-compact-host": "this.compactHostClass" } }, ngImport: i0, template: "<!--Bot\u00F3n con las configuraciones din\u00E1micas para CRUD -->\r\n@if (showButton()) {\r\n<p-button\r\n [label]=\"buttonLabel\"\r\n [style]=\"buttonStyle\"\r\n [styleClass]=\"buttonStyleClass\"\r\n [pTooltip]=\"tooltip\"\r\n [tooltipDisabled]=\"disabled()\"\r\n tooltipPosition=\"top\"\r\n [rounded]=\"rounded()\"\r\n [text]=\"isCompactIconButton\"\r\n [size]=\"buttonSize\"\r\n severity=\"secondary\"\r\n [disabled]=\"disabled()\"\r\n [icon]=\"iconOnly() ? primeIcon : undefined\"\r\n (click)=\"onButtonClick()\"\r\n>\r\n @if (!iconOnly()) {\r\n <span class=\"material-symbols-outlined dsx-button-icon-small\"\r\n >{{ materialIcon }}</span\r\n >\r\n }\r\n</p-button>\r\n}\r\n", styles: [".dsx-button-icon-small{font-size:1.25rem;vertical-align:middle}:host{display:inline-flex;margin-bottom:.25rem}:host.dsx-button-compact-host{margin-bottom:0}:host ::ng-deep .p-button .p-button-label{font-family:Montserrat,Roboto,sans-serif;font-weight:500;letter-spacing:.01em}:host ::ng-deep .p-button.dsx-button-compact{min-height:2rem;padding-block:.2rem}:host ::ng-deep .p-button .material-symbols-outlined.p-button-icon{line-height:1;vertical-align:middle}:host ::ng-deep .p-button.dsx-button-compact .p-button-icon{margin:0;font-size:1.2rem;line-height:1}:host ::ng-deep .p-button.dsx-button-compact .material-symbols-outlined.p-button-icon{font-variation-settings:\"FILL\" 1,\"wght\" 500,\"GRAD\" 0,\"opsz\" 24}:host ::ng-deep .p-button:disabled,:host ::ng-deep .p-button.p-disabled{cursor:not-allowed!important;opacity:.45!important;filter:grayscale(.2) saturate(.75)}:host ::ng-deep .p-button:disabled *,:host ::ng-deep .p-button.p-disabled *{cursor:not-allowed!important}.p-button.dsx-button-outlined-neutral,.p-button.dsx-button-outlined-info{background:#f5f7fa!important;border:1.5px solid #0066cc!important;color:#06c!important}.p-button.dsx-button-outlined-neutral:disabled,.p-button.dsx-button-outlined-info:disabled{background:#f5f7fa!important;border:1.5px solid #b0bec5!important;color:#b0bec5!important}\n"], dependencies: [{ kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }] });
4186
4163
  }
4187
4164
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DsxButtonComponent, decorators: [{
4188
4165
  type: Component,
@@ -4190,7 +4167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4190
4167
  }], ctorParameters: () => [], propDecorators: { compactHostClass: [{
4191
4168
  type: HostBinding,
4192
4169
  args: ['class.dsx-button-compact-host']
4193
- }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], routerPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerPath", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], iconOnlyWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnlyWidth", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], parameterName: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameterName", required: false }] }], parameterExpectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameterExpectedValue", required: false }] }], parameterIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameterIndex", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], requireIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "requireIdInput", required: false }] }], requiresIdGreaterThanZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "requiresIdGreaterThanZero", required: false }] }], softDeleteMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "softDeleteMode", required: false }] }], labelOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOverride", required: false }] }], tooltipOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOverride", required: false }] }], iconOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOverride", required: false }] }], primeIconOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "primeIconOverride", required: false }] }], colorOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorOverride", required: false }] }], outlinedOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlinedOverride", required: false }] }], showValidateButtonOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValidateButtonOverride", required: false }] }], showRestoreButtonOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRestoreButtonOverride", required: false }] }], action: [{ type: i0.Output, args: ["action"] }] } });
4170
+ }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], routerPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerPath", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], iconOnlyWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnlyWidth", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], parameterName: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameterName", required: false }] }], parameterExpectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameterExpectedValue", required: false }] }], parameterIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameterIndex", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], requireIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "requireIdInput", required: false }] }], requiresIdGreaterThanZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "requiresIdGreaterThanZero", required: false }] }], labelOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOverride", required: false }] }], tooltipOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOverride", required: false }] }], iconOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOverride", required: false }] }], primeIconOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "primeIconOverride", required: false }] }], colorOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorOverride", required: false }] }], outlinedOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlinedOverride", required: false }] }], showValidateButtonOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValidateButtonOverride", required: false }] }], showRestoreButtonOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRestoreButtonOverride", required: false }] }], action: [{ type: i0.Output, args: ["action"] }] } });
4194
4171
  const ACTION_CONFIG = {
4195
4172
  hardDelete: {
4196
4173
  label: 'Eliminar',
@@ -4201,11 +4178,19 @@ const ACTION_CONFIG = {
4201
4178
  },
4202
4179
  softDelete: {
4203
4180
  label: 'Archivar',
4204
- icon: 'restore_from_trash',
4181
+ icon: 'archive',
4205
4182
  primeIcon: 'pi pi-trash',
4206
4183
  colorToken: 'warning',
4207
4184
  tooltip: 'Archivar registro',
4208
4185
  },
4186
+ return: {
4187
+ label: 'Restaurar',
4188
+ icon: 'history',
4189
+ primeIcon: 'pi pi-history',
4190
+ colorToken: 'return',
4191
+ tooltip: 'Regresar registro archivado',
4192
+ outlined: true,
4193
+ },
4209
4194
  home: {
4210
4195
  label: 'Inicio',
4211
4196
  icon: 'home_app_logo',
@@ -4237,12 +4222,19 @@ const ACTION_CONFIG = {
4237
4222
  colorToken: 'primary',
4238
4223
  tooltip: 'Editar registro',
4239
4224
  },
4240
- saveOrUpdate: {
4225
+ save: {
4241
4226
  label: 'Guardar',
4242
4227
  icon: 'save',
4243
4228
  primeIcon: 'pi pi-save',
4244
4229
  colorToken: 'success',
4245
- tooltip: 'Salvar datos',
4230
+ tooltip: 'Guardar nuevo registro',
4231
+ },
4232
+ update: {
4233
+ label: 'Actualizar',
4234
+ icon: 'edit_note',
4235
+ primeIcon: 'pi pi-pencil',
4236
+ colorToken: 'primary',
4237
+ tooltip: 'Actualizar registro existente',
4246
4238
  },
4247
4239
  refresh: {
4248
4240
  label: 'Refrescar',