ln-20-lib-components 0.0.56 → 0.0.57

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.
@@ -2442,7 +2442,7 @@ class TableNgService {
2442
2442
  //#endregion
2443
2443
  //#region Selection
2444
2444
  async openModalManagementSelectedItems(selectedItems, config) {
2445
- const { SelectedItemsManagementComponent } = await import('./ln-20-lib-components-selected-items-management.component-U-zOTSrU.mjs');
2445
+ const { SelectedItemsManagementComponent } = await import('./ln-20-lib-components-selected-items-management.component-Bl_hm49Z.mjs');
2446
2446
  let configSelectedItems = config;
2447
2447
  if (config) {
2448
2448
  configSelectedItems = structuredClone(config);
@@ -3155,6 +3155,21 @@ class TableNgComponent {
3155
3155
  this.outputChangeData.emit(this.data());
3156
3156
  return;
3157
3157
  }
3158
+ if (editConfig?.type === 'row') {
3159
+ const defaultTableNgData = editConfig.rowEditConfig?.defaultTableNgData;
3160
+ if (defaultTableNgData) {
3161
+ const id = `${(this.totalRows() + 1).toString()}-${generateId()}`;
3162
+ const rowDataId = `${id}-${generateId()}`;
3163
+ const newRow = {
3164
+ ...defaultTableNgData,
3165
+ id,
3166
+ rowData: { ...structuredClone(defaultTableNgData.rowData), id: rowDataId }
3167
+ };
3168
+ this.data.update(currentData => [...currentData, newRow]);
3169
+ this.outputChangeData.emit(this.data());
3170
+ return;
3171
+ }
3172
+ }
3158
3173
  // Comportamiento original para modo row o cuando no hay defaultTableNgData
3159
3174
  this.outputAddRow.emit(this.data());
3160
3175
  this.setEditingRowId(null);
@@ -3680,4 +3695,4 @@ de13d65e8a0357ce9f2e18c899c8e7f6f728181baa031761ecdd7ef5cb166eb2
3680
3695
  */
3681
3696
 
3682
3697
  export { AminatedContainerComponent as A, BaseDialogComponent as B, DisabledContainerComponent as D, ETypeInput as E, FormComponent as F, HttpMessageComponent as H, InlineInputComponent as I, LibComponentsService as L, SpeedDialComponent as S, TableNgComponent as T, ButtonNgComponent as a, LibComponentsComponent as b, SpeedDialService as c, SpeedDialNgComponent as d };
3683
- //# sourceMappingURL=ln-20-lib-components-ln-20-lib-components-CCQOaJ4C.mjs.map
3698
+ //# sourceMappingURL=ln-20-lib-components-ln-20-lib-components-RBo6R-oz.mjs.map