ln-20-lib-components 0.0.21 → 0.0.23

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.
Files changed (68) hide show
  1. package/fesm2022/{ln-20-lib-components-ln-20-lib-components-CCPElo0q.mjs → ln-20-lib-components-ln-20-lib-components-8f4EprRn.mjs} +3 -2
  2. package/fesm2022/ln-20-lib-components-ln-20-lib-components-8f4EprRn.mjs.map +1 -0
  3. package/fesm2022/{ln-20-lib-components-ln-20-lib-components-DWmur7QC.mjs → ln-20-lib-components-ln-20-lib-components-CRqQg8f2.mjs} +54 -12
  4. package/fesm2022/ln-20-lib-components-ln-20-lib-components-CRqQg8f2.mjs.map +1 -0
  5. package/fesm2022/{ln-20-lib-components-ln-20-lib-components-BUXK0MSP.mjs → ln-20-lib-components-ln-20-lib-components-Cc5ecdIV.mjs} +12 -8
  6. package/fesm2022/ln-20-lib-components-ln-20-lib-components-Cc5ecdIV.mjs.map +1 -0
  7. package/fesm2022/{ln-20-lib-components-selected-items-management.component-B-nBh3Ep.mjs → ln-20-lib-components-selected-items-management.component-BjEQgQFR.mjs} +2 -2
  8. package/fesm2022/{ln-20-lib-components-selected-items-management.component-B-nBh3Ep.mjs.map → ln-20-lib-components-selected-items-management.component-BjEQgQFR.mjs.map} +1 -1
  9. package/fesm2022/{ln-20-lib-components-selected-items-management.component-BCZwVd3Y.mjs → ln-20-lib-components-selected-items-management.component-BzZ6QigF.mjs} +2 -2
  10. package/fesm2022/{ln-20-lib-components-selected-items-management.component-BCZwVd3Y.mjs.map → ln-20-lib-components-selected-items-management.component-BzZ6QigF.mjs.map} +1 -1
  11. package/fesm2022/{ln-20-lib-components-selected-items-management.component-BhFaYf5S.mjs → ln-20-lib-components-selected-items-management.component-DtcrlOxB.mjs} +2 -2
  12. package/fesm2022/{ln-20-lib-components-selected-items-management.component-BhFaYf5S.mjs.map → ln-20-lib-components-selected-items-management.component-DtcrlOxB.mjs.map} +1 -1
  13. package/fesm2022/ln-20-lib-components.mjs +1 -1
  14. package/lib/components/origin/form/index.d.ts +1 -0
  15. package/lib/components/origin/pick-list/components/container-elements/container-elements.component.d.ts +1 -1
  16. package/lib/components/origin/pick-list/pick-list.component.d.ts +2 -2
  17. package/ln-20-lib-components-0.0.23.tgz +0 -0
  18. package/package.json +1 -1
  19. package/fesm2022/ln-20-lib-components-ln-20-lib-components-B25V41uq.mjs +0 -3123
  20. package/fesm2022/ln-20-lib-components-ln-20-lib-components-B25V41uq.mjs.map +0 -1
  21. package/fesm2022/ln-20-lib-components-ln-20-lib-components-BEuylZRH.mjs +0 -3124
  22. package/fesm2022/ln-20-lib-components-ln-20-lib-components-BEuylZRH.mjs.map +0 -1
  23. package/fesm2022/ln-20-lib-components-ln-20-lib-components-BUXK0MSP.mjs.map +0 -1
  24. package/fesm2022/ln-20-lib-components-ln-20-lib-components-CCPElo0q.mjs.map +0 -1
  25. package/fesm2022/ln-20-lib-components-ln-20-lib-components-CUPJus-K.mjs +0 -3185
  26. package/fesm2022/ln-20-lib-components-ln-20-lib-components-CUPJus-K.mjs.map +0 -1
  27. package/fesm2022/ln-20-lib-components-ln-20-lib-components-D1Uef6K2.mjs +0 -3124
  28. package/fesm2022/ln-20-lib-components-ln-20-lib-components-D1Uef6K2.mjs.map +0 -1
  29. package/fesm2022/ln-20-lib-components-ln-20-lib-components-D9U6aJG_.mjs +0 -3124
  30. package/fesm2022/ln-20-lib-components-ln-20-lib-components-D9U6aJG_.mjs.map +0 -1
  31. package/fesm2022/ln-20-lib-components-ln-20-lib-components-DWmur7QC.mjs.map +0 -1
  32. package/fesm2022/ln-20-lib-components-ln-20-lib-components-DjLrfBm4.mjs +0 -3124
  33. package/fesm2022/ln-20-lib-components-ln-20-lib-components-DjLrfBm4.mjs.map +0 -1
  34. package/fesm2022/ln-20-lib-components-ln-20-lib-components-DpjfMHb6.mjs +0 -3124
  35. package/fesm2022/ln-20-lib-components-ln-20-lib-components-DpjfMHb6.mjs.map +0 -1
  36. package/fesm2022/ln-20-lib-components-ln-20-lib-components-VU9YyM5w.mjs +0 -3123
  37. package/fesm2022/ln-20-lib-components-ln-20-lib-components-VU9YyM5w.mjs.map +0 -1
  38. package/fesm2022/ln-20-lib-components-ln-20-lib-components-cBRcSsDx.mjs +0 -3124
  39. package/fesm2022/ln-20-lib-components-ln-20-lib-components-cBRcSsDx.mjs.map +0 -1
  40. package/fesm2022/ln-20-lib-components-ln-20-lib-components-drEBS_nb.mjs +0 -3124
  41. package/fesm2022/ln-20-lib-components-ln-20-lib-components-drEBS_nb.mjs.map +0 -1
  42. package/fesm2022/ln-20-lib-components-selected-items-management.component-BjEvcT0z.mjs +0 -55
  43. package/fesm2022/ln-20-lib-components-selected-items-management.component-BjEvcT0z.mjs.map +0 -1
  44. package/fesm2022/ln-20-lib-components-selected-items-management.component-Bz080gSd.mjs +0 -55
  45. package/fesm2022/ln-20-lib-components-selected-items-management.component-Bz080gSd.mjs.map +0 -1
  46. package/fesm2022/ln-20-lib-components-selected-items-management.component-CC-CL4wx.mjs +0 -55
  47. package/fesm2022/ln-20-lib-components-selected-items-management.component-CC-CL4wx.mjs.map +0 -1
  48. package/fesm2022/ln-20-lib-components-selected-items-management.component-DqP7p5a3.mjs +0 -55
  49. package/fesm2022/ln-20-lib-components-selected-items-management.component-DqP7p5a3.mjs.map +0 -1
  50. package/fesm2022/ln-20-lib-components-selected-items-management.component-Dx4WCILE.mjs +0 -55
  51. package/fesm2022/ln-20-lib-components-selected-items-management.component-Dx4WCILE.mjs.map +0 -1
  52. package/fesm2022/ln-20-lib-components-selected-items-management.component-Lw8konTj.mjs +0 -55
  53. package/fesm2022/ln-20-lib-components-selected-items-management.component-Lw8konTj.mjs.map +0 -1
  54. package/fesm2022/ln-20-lib-components-selected-items-management.component-PNMgQwSq.mjs +0 -55
  55. package/fesm2022/ln-20-lib-components-selected-items-management.component-PNMgQwSq.mjs.map +0 -1
  56. package/fesm2022/ln-20-lib-components-selected-items-management.component-_kQsgC9q.mjs +0 -55
  57. package/fesm2022/ln-20-lib-components-selected-items-management.component-_kQsgC9q.mjs.map +0 -1
  58. package/fesm2022/ln-20-lib-components-selected-items-management.component-kbv7ZZP2.mjs +0 -55
  59. package/fesm2022/ln-20-lib-components-selected-items-management.component-kbv7ZZP2.mjs.map +0 -1
  60. package/fesm2022/ln-20-lib-components-selected-items-management.component-tLy_XEg2.mjs +0 -55
  61. package/fesm2022/ln-20-lib-components-selected-items-management.component-tLy_XEg2.mjs.map +0 -1
  62. package/ln-20-lib-components-0.0.15.tgz +0 -0
  63. package/ln-20-lib-components-0.0.16.tgz +0 -0
  64. package/ln-20-lib-components-0.0.17.tgz +0 -0
  65. package/ln-20-lib-components-0.0.18.tgz +0 -0
  66. package/ln-20-lib-components-0.0.19.tgz +0 -0
  67. package/ln-20-lib-components-0.0.20.tgz +0 -0
  68. package/ln-20-lib-components-0.0.21.tgz +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { computed, ViewChild, Component } from '@angular/core';
3
- import { B as BaseDialogComponent, T as TableNgComponent, a as ButtonNgComponent } from './ln-20-lib-components-ln-20-lib-components-DjLrfBm4.mjs';
3
+ import { B as BaseDialogComponent, T as TableNgComponent, a as ButtonNgComponent } from './ln-20-lib-components-ln-20-lib-components-Cc5ecdIV.mjs';
4
4
 
5
5
  class SelectedItemsManagementComponent extends BaseDialogComponent {
6
6
  tableNg;
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
52
52
  }] } });
53
53
 
54
54
  export { SelectedItemsManagementComponent };
55
- //# sourceMappingURL=ln-20-lib-components-selected-items-management.component-B-nBh3Ep.mjs.map
55
+ //# sourceMappingURL=ln-20-lib-components-selected-items-management.component-BjEQgQFR.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ln-20-lib-components-selected-items-management.component-B-nBh3Ep.mjs","sources":["../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.ts","../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.html"],"sourcesContent":["import type { OnInit, Signal } from '@angular/core'\r\nimport { Component, computed, ViewChild } from '@angular/core'\r\nimport { ButtonNgComponent } from '../../../button-ng/button-ng.component'\r\nimport type { IButtonConfig } from '../../../button-ng/interfaces'\r\nimport { BaseDialogComponent } from '../../../dynamic-dialog/components/base-dialog.component'\r\nimport type { ITableNgConfig, ITableNgData } from '../../interfaces'\r\nimport { TableNgComponent } from '../../table-ng.component'\r\n\r\n@Component({\r\n selector: 'lib-selected-items-management',\r\n imports: [TableNgComponent, ButtonNgComponent],\r\n templateUrl: './selected-items-management.component.html',\r\n styleUrl: './selected-items-management.component.scss'\r\n})\r\nexport class SelectedItemsManagementComponent extends BaseDialogComponent implements OnInit {\r\n @ViewChild('tableNg') tableNg!: TableNgComponent\r\n\r\n constructor(\r\n ) {\r\n super()\r\n }\r\n protected selectedItems: ITableNgData[] = []\r\n protected configTable?: ITableNgConfig | undefined\r\n ngOnInit(): void {\r\n if (this.data) {\r\n const selectedItems: ITableNgData[] = this.data?.selectedItems as ITableNgData[] ?? []\r\n const config: ITableNgConfig | undefined = this.data?.config as ITableNgConfig | undefined\r\n this.selectedItems = selectedItems\r\n this.configTable = config\r\n }\r\n }\r\n\r\n buttonsSubmit: Signal<IButtonConfig[]> = computed(() => {\r\n const buttons: IButtonConfig[] = [\r\n {\r\n label: 'Aceptar',\r\n severity: 'success',\r\n onClick: () => {\r\n this.submitSelection('accept')\r\n }\r\n },\r\n {\r\n label: 'Cerrar',\r\n severity: 'info',\r\n onClick: () => {\r\n this.submitSelection('reject')\r\n }\r\n }\r\n ]\r\n return buttons\r\n })\r\n\r\n submitSelection(flag: 'accept' | 'reject') {\r\n const selectedItems: ITableNgData[] = this.tableNg.dt.selection as ITableNgData[]\r\n this.ref.close(flag === 'accept' ? selectedItems : undefined)\r\n }\r\n\r\n}\r\n","<div class=\"flex flex-col gap-4\">\r\n <lib-table-ng\r\n #tableNg\r\n [data]=\"selectedItems\"\r\n [config]=\"configTable\"\r\n [selectedItems]=\"selectedItems\"\r\n ></lib-table-ng>\r\n <div class=\"flex gap-2 mr-5 justify-end items-end sticky bottom-6 z-50\">\r\n @for (btn of buttonsSubmit(); track $index) {\r\n <lib-button-ng [buttonConfig]=\"btn\"></lib-button-ng>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"mb-10\"></div>\r\n"],"names":[],"mappings":";;;;AAcM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AACjD,IAAA,OAAO;AAE7B,IAAA,WAAA,GAAA;AAEE,QAAA,KAAK,EAAE;IACT;IACU,aAAa,GAAmB,EAAE;AAClC,IAAA,WAAW;IACrB,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,aAAa,GAAmB,IAAI,CAAC,IAAI,EAAE,aAA+B,IAAI,EAAE;AACtF,YAAA,MAAM,MAAM,GAA+B,IAAI,CAAC,IAAI,EAAE,MAAoC;AAC1F,YAAA,IAAI,CAAC,aAAa,GAAG,aAAa;AAClC,YAAA,IAAI,CAAC,WAAW,GAAG,MAAM;QAC3B;IACF;AAEA,IAAA,aAAa,GAA4B,QAAQ,CAAC,MAAK;AACrD,QAAA,MAAM,OAAO,GAAoB;AAC/B,YAAA;AACE,gBAAA,KAAK,EAAE,SAAS;AAChB,gBAAA,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,MAAK;AACZ,oBAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;gBAChC;AACD,aAAA;AACD,YAAA;AACE,gBAAA,KAAK,EAAE,QAAQ;AACf,gBAAA,QAAQ,EAAE,MAAM;gBAChB,OAAO,EAAE,MAAK;AACZ,oBAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;gBAChC;AACD;SACF;AACD,QAAA,OAAO,OAAO;AAChB,IAAA,CAAC,CAAC;AAEF,IAAA,eAAe,CAAC,IAA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selected-items-management.component-BjEQgQFR.mjs","sources":["../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.ts","../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.html"],"sourcesContent":["import type { OnInit, Signal } from '@angular/core'\r\nimport { Component, computed, ViewChild } from '@angular/core'\r\nimport { ButtonNgComponent } from '../../../button-ng/button-ng.component'\r\nimport type { IButtonConfig } from '../../../button-ng/interfaces'\r\nimport { BaseDialogComponent } from '../../../dynamic-dialog/components/base-dialog.component'\r\nimport type { ITableNgConfig, ITableNgData } from '../../interfaces'\r\nimport { TableNgComponent } from '../../table-ng.component'\r\n\r\n@Component({\r\n selector: 'lib-selected-items-management',\r\n imports: [TableNgComponent, ButtonNgComponent],\r\n templateUrl: './selected-items-management.component.html',\r\n styleUrl: './selected-items-management.component.scss'\r\n})\r\nexport class SelectedItemsManagementComponent extends BaseDialogComponent implements OnInit {\r\n @ViewChild('tableNg') tableNg!: TableNgComponent\r\n\r\n constructor(\r\n ) {\r\n super()\r\n }\r\n protected selectedItems: ITableNgData[] = []\r\n protected configTable?: ITableNgConfig | undefined\r\n ngOnInit(): void {\r\n if (this.data) {\r\n const selectedItems: ITableNgData[] = this.data?.selectedItems as ITableNgData[] ?? []\r\n const config: ITableNgConfig | undefined = this.data?.config as ITableNgConfig | undefined\r\n this.selectedItems = selectedItems\r\n this.configTable = config\r\n }\r\n }\r\n\r\n buttonsSubmit: Signal<IButtonConfig[]> = computed(() => {\r\n const buttons: IButtonConfig[] = [\r\n {\r\n label: 'Aceptar',\r\n severity: 'success',\r\n onClick: () => {\r\n this.submitSelection('accept')\r\n }\r\n },\r\n {\r\n label: 'Cerrar',\r\n severity: 'info',\r\n onClick: () => {\r\n this.submitSelection('reject')\r\n }\r\n }\r\n ]\r\n return buttons\r\n })\r\n\r\n submitSelection(flag: 'accept' | 'reject') {\r\n const selectedItems: ITableNgData[] = this.tableNg.dt.selection as ITableNgData[]\r\n this.ref.close(flag === 'accept' ? selectedItems : undefined)\r\n }\r\n\r\n}\r\n","<div class=\"flex flex-col gap-4\">\r\n <lib-table-ng\r\n #tableNg\r\n [data]=\"selectedItems\"\r\n [config]=\"configTable\"\r\n [selectedItems]=\"selectedItems\"\r\n ></lib-table-ng>\r\n <div class=\"flex gap-2 mr-5 justify-end items-end sticky bottom-6 z-50\">\r\n @for (btn of buttonsSubmit(); track $index) {\r\n <lib-button-ng [buttonConfig]=\"btn\"></lib-button-ng>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"mb-10\"></div>\r\n"],"names":[],"mappings":";;;;AAcM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AACjD,IAAA,OAAO;AAE7B,IAAA,WAAA,GAAA;AAEE,QAAA,KAAK,EAAE;IACT;IACU,aAAa,GAAmB,EAAE;AAClC,IAAA,WAAW;IACrB,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,aAAa,GAAmB,IAAI,CAAC,IAAI,EAAE,aAA+B,IAAI,EAAE;AACtF,YAAA,MAAM,MAAM,GAA+B,IAAI,CAAC,IAAI,EAAE,MAAoC;AAC1F,YAAA,IAAI,CAAC,aAAa,GAAG,aAAa;AAClC,YAAA,IAAI,CAAC,WAAW,GAAG,MAAM;QAC3B;IACF;AAEA,IAAA,aAAa,GAA4B,QAAQ,CAAC,MAAK;AACrD,QAAA,MAAM,OAAO,GAAoB;AAC/B,YAAA;AACE,gBAAA,KAAK,EAAE,SAAS;AAChB,gBAAA,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,MAAK;AACZ,oBAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;gBAChC;AACD,aAAA;AACD,YAAA;AACE,gBAAA,KAAK,EAAE,QAAQ;AACf,gBAAA,QAAQ,EAAE,MAAM;gBAChB,OAAO,EAAE,MAAK;AACZ,oBAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;gBAChC;AACD;SACF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AAA,CAAA;sBAA5B,SAAS;uBAAC,SAAS;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { computed, ViewChild, Component } from '@angular/core';
3
- import { B as BaseDialogComponent, T as TableNgComponent, a as ButtonNgComponent } from './ln-20-lib-components-ln-20-lib-components-cBRcSsDx.mjs';
3
+ import { B as BaseDialogComponent, T as TableNgComponent, a as ButtonNgComponent } from './ln-20-lib-components-ln-20-lib-components-8f4EprRn.mjs';
4
4
 
5
5
  class SelectedItemsManagementComponent extends BaseDialogComponent {
6
6
  tableNg;
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
52
52
  }] } });
53
53
 
54
54
  export { SelectedItemsManagementComponent };
55
- //# sourceMappingURL=ln-20-lib-components-selected-items-management.component-BCZwVd3Y.mjs.map
55
+ //# sourceMappingURL=ln-20-lib-components-selected-items-management.component-BzZ6QigF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ln-20-lib-components-selected-items-management.component-BCZwVd3Y.mjs","sources":["../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.ts","../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.html"],"sourcesContent":["import type { OnInit, Signal } from '@angular/core'\r\nimport { Component, computed, ViewChild } from '@angular/core'\r\nimport { ButtonNgComponent } from '../../../button-ng/button-ng.component'\r\nimport type { IButtonConfig } from '../../../button-ng/interfaces'\r\nimport { BaseDialogComponent } from '../../../dynamic-dialog/components/base-dialog.component'\r\nimport type { ITableNgConfig, ITableNgData } from '../../interfaces'\r\nimport { TableNgComponent } from '../../table-ng.component'\r\n\r\n@Component({\r\n selector: 'lib-selected-items-management',\r\n imports: [TableNgComponent, ButtonNgComponent],\r\n templateUrl: './selected-items-management.component.html',\r\n styleUrl: './selected-items-management.component.scss'\r\n})\r\nexport class SelectedItemsManagementComponent extends BaseDialogComponent implements OnInit {\r\n @ViewChild('tableNg') tableNg!: TableNgComponent\r\n\r\n constructor(\r\n ) {\r\n super()\r\n }\r\n protected selectedItems: ITableNgData[] = []\r\n protected configTable?: ITableNgConfig | undefined\r\n ngOnInit(): void {\r\n if (this.data) {\r\n const selectedItems: ITableNgData[] = this.data?.selectedItems as ITableNgData[] ?? []\r\n const config: ITableNgConfig | undefined = this.data?.config as ITableNgConfig | undefined\r\n this.selectedItems = selectedItems\r\n this.configTable = config\r\n }\r\n }\r\n\r\n buttonsSubmit: Signal<IButtonConfig[]> = computed(() => {\r\n const buttons: IButtonConfig[] = [\r\n {\r\n label: 'Aceptar',\r\n severity: 'success',\r\n onClick: () => {\r\n this.submitSelection('accept')\r\n }\r\n },\r\n {\r\n label: 'Cerrar',\r\n severity: 'info',\r\n onClick: () => {\r\n this.submitSelection('reject')\r\n }\r\n }\r\n ]\r\n return buttons\r\n })\r\n\r\n submitSelection(flag: 'accept' | 'reject') {\r\n const selectedItems: ITableNgData[] = this.tableNg.dt.selection as ITableNgData[]\r\n this.ref.close(flag === 'accept' ? selectedItems : undefined)\r\n }\r\n\r\n}\r\n","<div class=\"flex flex-col gap-4\">\r\n <lib-table-ng\r\n #tableNg\r\n [data]=\"selectedItems\"\r\n [config]=\"configTable\"\r\n [selectedItems]=\"selectedItems\"\r\n ></lib-table-ng>\r\n <div class=\"flex gap-2 mr-5 justify-end items-end sticky bottom-6 z-50\">\r\n @for (btn of buttonsSubmit(); track $index) {\r\n <lib-button-ng [buttonConfig]=\"btn\"></lib-button-ng>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"mb-10\"></div>\r\n"],"names":[],"mappings":";;;;AAcM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AACjD,IAAA,OAAO;AAE7B,IAAA,WAAA,GAAA;AAEE,QAAA,KAAK,EAAE;IACT;IACU,aAAa,GAAmB,EAAE;AAClC,IAAA,WAAW;IACrB,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,IA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AA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,SAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECd7C,4cAcA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDJY,gBAAgB,8lBAAE,iBAAiB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,oBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAIlC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAN5C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,4cAAA,EAAA;wDAKxB,OAAO,EAAA,CAAA;sBAA5B,SAAS;uBAAC,SAAS;;;;;"}
1
+ {"version":3,"file":"ln-20-lib-components-selected-items-management.component-BzZ6QigF.mjs","sources":["../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.ts","../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.html"],"sourcesContent":["import type { OnInit, Signal } from '@angular/core'\r\nimport { Component, computed, ViewChild } from '@angular/core'\r\nimport { ButtonNgComponent } from '../../../button-ng/button-ng.component'\r\nimport type { IButtonConfig } from '../../../button-ng/interfaces'\r\nimport { BaseDialogComponent } from '../../../dynamic-dialog/components/base-dialog.component'\r\nimport type { ITableNgConfig, ITableNgData } from '../../interfaces'\r\nimport { TableNgComponent } from '../../table-ng.component'\r\n\r\n@Component({\r\n selector: 'lib-selected-items-management',\r\n imports: [TableNgComponent, ButtonNgComponent],\r\n templateUrl: './selected-items-management.component.html',\r\n styleUrl: './selected-items-management.component.scss'\r\n})\r\nexport class SelectedItemsManagementComponent extends BaseDialogComponent implements OnInit {\r\n @ViewChild('tableNg') tableNg!: TableNgComponent\r\n\r\n constructor(\r\n ) {\r\n super()\r\n }\r\n protected selectedItems: ITableNgData[] = []\r\n protected configTable?: ITableNgConfig | undefined\r\n ngOnInit(): void {\r\n if (this.data) {\r\n const selectedItems: ITableNgData[] = this.data?.selectedItems as ITableNgData[] ?? []\r\n const config: ITableNgConfig | undefined = this.data?.config as ITableNgConfig | undefined\r\n this.selectedItems = selectedItems\r\n this.configTable = config\r\n }\r\n }\r\n\r\n buttonsSubmit: Signal<IButtonConfig[]> = computed(() => {\r\n const buttons: IButtonConfig[] = [\r\n {\r\n label: 'Aceptar',\r\n severity: 'success',\r\n onClick: () => {\r\n this.submitSelection('accept')\r\n }\r\n },\r\n {\r\n label: 'Cerrar',\r\n severity: 'info',\r\n onClick: () => {\r\n this.submitSelection('reject')\r\n }\r\n }\r\n ]\r\n return buttons\r\n })\r\n\r\n submitSelection(flag: 'accept' | 'reject') {\r\n const selectedItems: ITableNgData[] = this.tableNg.dt.selection as ITableNgData[]\r\n this.ref.close(flag === 'accept' ? selectedItems : undefined)\r\n }\r\n\r\n}\r\n","<div class=\"flex flex-col gap-4\">\r\n <lib-table-ng\r\n #tableNg\r\n [data]=\"selectedItems\"\r\n [config]=\"configTable\"\r\n [selectedItems]=\"selectedItems\"\r\n ></lib-table-ng>\r\n <div class=\"flex gap-2 mr-5 justify-end items-end sticky bottom-6 z-50\">\r\n @for (btn of buttonsSubmit(); track $index) {\r\n <lib-button-ng [buttonConfig]=\"btn\"></lib-button-ng>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"mb-10\"></div>\r\n"],"names":[],"mappings":";;;;AAcM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AACjD,IAAA,OAAO;AAE7B,IAAA,WAAA,GAAA;AAEE,QAAA,KAAK,EAAE;IACT;IACU,aAAa,GAAmB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IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,SAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECd7C,4cAcA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDJY,gBAAgB,8lBAAE,iBAAiB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,oBAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAIlC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAN5C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,4cAAA,EAAA;wDAKxB,OAAO,EAAA,CAAA;sBAA5B,SAAS;uBAAC,SAAS;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { computed, ViewChild, Component } from '@angular/core';
3
- import { B as BaseDialogComponent, T as TableNgComponent, a as ButtonNgComponent } from './ln-20-lib-components-ln-20-lib-components-CUPJus-K.mjs';
3
+ import { B as BaseDialogComponent, T as TableNgComponent, a as ButtonNgComponent } from './ln-20-lib-components-ln-20-lib-components-CRqQg8f2.mjs';
4
4
 
5
5
  class SelectedItemsManagementComponent extends BaseDialogComponent {
6
6
  tableNg;
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
52
52
  }] } });
53
53
 
54
54
  export { SelectedItemsManagementComponent };
55
- //# sourceMappingURL=ln-20-lib-components-selected-items-management.component-BhFaYf5S.mjs.map
55
+ //# sourceMappingURL=ln-20-lib-components-selected-items-management.component-DtcrlOxB.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ln-20-lib-components-selected-items-management.component-BhFaYf5S.mjs","sources":["../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.ts","../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.html"],"sourcesContent":["import type { OnInit, Signal } from '@angular/core'\r\nimport { Component, computed, ViewChild } from '@angular/core'\r\nimport { ButtonNgComponent } from '../../../button-ng/button-ng.component'\r\nimport type { IButtonConfig } from '../../../button-ng/interfaces'\r\nimport { BaseDialogComponent } from '../../../dynamic-dialog/components/base-dialog.component'\r\nimport type { ITableNgConfig, ITableNgData } from '../../interfaces'\r\nimport { TableNgComponent } from '../../table-ng.component'\r\n\r\n@Component({\r\n selector: 'lib-selected-items-management',\r\n imports: [TableNgComponent, ButtonNgComponent],\r\n templateUrl: './selected-items-management.component.html',\r\n styleUrl: './selected-items-management.component.scss'\r\n})\r\nexport class SelectedItemsManagementComponent extends BaseDialogComponent implements OnInit {\r\n @ViewChild('tableNg') tableNg!: TableNgComponent\r\n\r\n constructor(\r\n ) {\r\n super()\r\n }\r\n protected selectedItems: ITableNgData[] = []\r\n protected configTable?: ITableNgConfig | undefined\r\n ngOnInit(): void {\r\n if (this.data) {\r\n const selectedItems: ITableNgData[] = this.data?.selectedItems as ITableNgData[] ?? []\r\n const config: ITableNgConfig | undefined = this.data?.config as ITableNgConfig | undefined\r\n this.selectedItems = selectedItems\r\n this.configTable = config\r\n }\r\n }\r\n\r\n buttonsSubmit: Signal<IButtonConfig[]> = computed(() => {\r\n const buttons: IButtonConfig[] = [\r\n {\r\n label: 'Aceptar',\r\n severity: 'success',\r\n onClick: () => {\r\n this.submitSelection('accept')\r\n }\r\n },\r\n {\r\n label: 'Cerrar',\r\n severity: 'info',\r\n onClick: () => {\r\n this.submitSelection('reject')\r\n }\r\n }\r\n ]\r\n return buttons\r\n })\r\n\r\n submitSelection(flag: 'accept' | 'reject') {\r\n const selectedItems: ITableNgData[] = this.tableNg.dt.selection as ITableNgData[]\r\n this.ref.close(flag === 'accept' ? selectedItems : undefined)\r\n }\r\n\r\n}\r\n","<div class=\"flex flex-col gap-4\">\r\n <lib-table-ng\r\n #tableNg\r\n [data]=\"selectedItems\"\r\n [config]=\"configTable\"\r\n [selectedItems]=\"selectedItems\"\r\n ></lib-table-ng>\r\n <div class=\"flex gap-2 mr-5 justify-end items-end sticky bottom-6 z-50\">\r\n @for (btn of buttonsSubmit(); track $index) {\r\n <lib-button-ng [buttonConfig]=\"btn\"></lib-button-ng>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"mb-10\"></div>\r\n"],"names":[],"mappings":";;;;AAcM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AACjD,IAAA,OAAO;AAE7B,IAAA,WAAA,GAAA;AAEE,QAAA,KAAK,EAAE;IACT;IACU,aAAa,GAAmB,EAAE;AAClC,IAAA,WAAW;IACrB,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,aAAa,GAAmB,IAAI,CAAC,IAAI,EAAE,aAA+B,IAAI,EAAE;AACtF,YAAA,MAAM,MAAM,GAA+B,IAAI,CAAC,IAAI,EAAE,MAAoC;AAC1F,YAAA,IAAI,CAAC,aAAa,GAAG,aAAa;AAClC,YAAA,IAAI,CAAC,WAAW,GAAG,MAAM;QAC3B;IACF;AAEA,IAAA,aAAa,GAA4B,QAAQ,CAAC,MAAK;AACrD,QAAA,MAAM,OAAO,GAAoB;AAC/B,YAAA;AACE,gBAAA,KAAK,EAAE,SAAS;AAChB,gBAAA,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,MAAK;AACZ,oBAAA,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;gBAChC;AACD,aAAA;AACD,YAAA;AACE,gBAAA,KAAK,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AA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,4cAAA,EAAA;wDAKxB,OAAO,EAAA,CAAA;sBAA5B,SAAS;uBAAC,SAAS;;;;;"}
1
+ {"version":3,"file":"ln-20-lib-components-selected-items-management.component-DtcrlOxB.mjs","sources":["../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.ts","../../../projects/lib-components/src/lib/components/prime-ng/table-ng/components/selected-items-management/selected-items-management.component.html"],"sourcesContent":["import type { OnInit, Signal } from '@angular/core'\r\nimport { Component, computed, ViewChild } from '@angular/core'\r\nimport { ButtonNgComponent } from '../../../button-ng/button-ng.component'\r\nimport type { IButtonConfig } from '../../../button-ng/interfaces'\r\nimport { BaseDialogComponent } from '../../../dynamic-dialog/components/base-dialog.component'\r\nimport type { ITableNgConfig, ITableNgData } from '../../interfaces'\r\nimport { TableNgComponent } from '../../table-ng.component'\r\n\r\n@Component({\r\n selector: 'lib-selected-items-management',\r\n imports: [TableNgComponent, ButtonNgComponent],\r\n templateUrl: './selected-items-management.component.html',\r\n styleUrl: './selected-items-management.component.scss'\r\n})\r\nexport class SelectedItemsManagementComponent extends BaseDialogComponent implements OnInit {\r\n @ViewChild('tableNg') tableNg!: TableNgComponent\r\n\r\n constructor(\r\n ) {\r\n super()\r\n }\r\n protected selectedItems: ITableNgData[] = []\r\n protected configTable?: ITableNgConfig | undefined\r\n ngOnInit(): void {\r\n if (this.data) {\r\n const selectedItems: ITableNgData[] = this.data?.selectedItems as ITableNgData[] ?? []\r\n const config: ITableNgConfig | undefined = this.data?.config as ITableNgConfig | undefined\r\n this.selectedItems = selectedItems\r\n this.configTable = config\r\n }\r\n }\r\n\r\n buttonsSubmit: Signal<IButtonConfig[]> = computed(() => {\r\n const buttons: IButtonConfig[] = [\r\n {\r\n label: 'Aceptar',\r\n severity: 'success',\r\n onClick: () => {\r\n this.submitSelection('accept')\r\n }\r\n },\r\n {\r\n label: 'Cerrar',\r\n severity: 'info',\r\n onClick: () => {\r\n this.submitSelection('reject')\r\n }\r\n }\r\n ]\r\n return buttons\r\n })\r\n\r\n submitSelection(flag: 'accept' | 'reject') {\r\n const selectedItems: ITableNgData[] = this.tableNg.dt.selection as ITableNgData[]\r\n this.ref.close(flag === 'accept' ? selectedItems : undefined)\r\n }\r\n\r\n}\r\n","<div class=\"flex flex-col gap-4\">\r\n <lib-table-ng\r\n #tableNg\r\n [data]=\"selectedItems\"\r\n [config]=\"configTable\"\r\n [selectedItems]=\"selectedItems\"\r\n ></lib-table-ng>\r\n <div class=\"flex gap-2 mr-5 justify-end items-end sticky bottom-6 z-50\">\r\n @for (btn of buttonsSubmit(); track $index) {\r\n <lib-button-ng [buttonConfig]=\"btn\"></lib-button-ng>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"mb-10\"></div>\r\n"],"names":[],"mappings":";;;;AAcM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AACjD,IAAA,OAAO;AAE7B,IAAA,WAAA,GAAA;AAEE,QAAA,KAAK,EAAE;IACT;IACU,aAAa,GAAmB,EAAE;AAClC,IAAA,WAAW;IACrB,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,aAAa,GAAmB,IAAI,CAAC,IAAI,EAAE,aAA+B,IAAI,EAAE;AACtF,YAAA,MAAM,MAAM,GAA+B,IAAI,CAAC,IAAI,EAAE,MAAoC;AAC1F,YAAA,IAAI,CAAC,aAAa,GAAG,aAAa;AAClC,YAAA,IAAI,CAAC,WAAW,GAAG,MAAM;QAC3B;IACF;AAEA,IAAA,aAAa,GAA4B,QAAQ,CAAC,MAAK;AACrD,QAAA,MAAM,OAAO,GAAoB;AAC/B,YAAA;AACE,gBAAA,KAAK,EAAE,SAAS;AAChB,gBAAA,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,MAAK;AACZ,oBAAA,IAAI,CA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;4FAIlC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAN5C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,4cAAA,EAAA;wDAKxB,OAAO,EAAA,CAAA;sBAA5B,SAAS;uBAAC,SAAS;;;;;"}
@@ -1,2 +1,2 @@
1
- export { a as ButtonNgComponent, E as ETypeInput, F as FormComponent, I as InlineInputComponent, b as LibComponentsComponent, L as LibComponentsService, T as TableNgComponent } from './ln-20-lib-components-ln-20-lib-components-CCPElo0q.mjs';
1
+ export { a as ButtonNgComponent, E as ETypeInput, F as FormComponent, I as InlineInputComponent, b as LibComponentsComponent, L as LibComponentsService, T as TableNgComponent } from './ln-20-lib-components-ln-20-lib-components-CRqQg8f2.mjs';
2
2
  //# sourceMappingURL=ln-20-lib-components.mjs.map
@@ -1,4 +1,5 @@
1
1
  export * from './form.component';
2
2
  export * from './components/inline-input/inline-input.component';
3
+ export * from './components/inline-input/interfaces/index';
3
4
  export * from './interfaces/index';
4
5
  export * from './enums/index';
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class ContainerElementsComponent implements OnInit {
6
6
  cols: import("@angular/core").InputSignal<number>;
7
7
  elements: import("@angular/core").ModelSignal<IPickListElement[]>;
8
- severityButton: import("@angular/core").InputSignal<"contrast" | "secondary" | "success" | "info" | "warn" | "help" | "danger">;
8
+ severityButton: import("@angular/core").InputSignal<"success" | "secondary" | "info" | "warn" | "help" | "danger" | "contrast">;
9
9
  outputElements: import("@angular/core").OutputEmitterRef<IPickListElement[]>;
10
10
  constructor();
11
11
  ngOnInit(): void;
@@ -14,8 +14,8 @@ export declare class PickListComponent implements OnInit {
14
14
  sourceElements: IPickListElement[];
15
15
  targetElements: IPickListElement[];
16
16
  }>;
17
- protected sourceSeverityButton: Signal<"contrast" | "secondary" | "success" | "info" | "warn" | "help" | "danger">;
18
- protected targetSeverityButton: Signal<"contrast" | "secondary" | "success" | "info" | "warn" | "help" | "danger">;
17
+ protected sourceSeverityButton: Signal<"success" | "secondary" | "info" | "warn" | "help" | "danger" | "contrast">;
18
+ protected targetSeverityButton: Signal<"success" | "secondary" | "info" | "warn" | "help" | "danger" | "contrast">;
19
19
  protected controlButtons: Signal<IButtonConfig[]>;
20
20
  /**
21
21
  * Mueve todos los elementos del sourceElements al targetElements,
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ln-20-lib-components",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0",