@seniorsistemas/angular-components 19.7.0 → 19.7.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.
Files changed (43) hide show
  1. package/dynamic-form/dynamic-form/components/lookup/lookup.component.d.ts +2 -1
  2. package/dynamic-form/dynamic-form/components/lookup/types/lookup-models.d.ts +2 -1
  3. package/esm2022/dynamic-form/dynamic-form/components/lookup/lookup.component.mjs +1 -1
  4. package/esm2022/dynamic-form/dynamic-form/components/lookup/types/lookup-models.mjs +1 -1
  5. package/esm2022/lib/locale/fallback.mjs +3 -1
  6. package/esm2022/table/lib/table/table-column/column-number-format.utils.mjs +24 -0
  7. package/esm2022/table/lib/table/table-paging/export-number-format.mjs +104 -0
  8. package/esm2022/table/lib/table/table-paging/models/export-number-format.enum.mjs +6 -0
  9. package/esm2022/table/lib/table/table-paging/models/index.mjs +2 -2
  10. package/esm2022/table/lib/table/table-paging/table-paging.component.mjs +58 -99
  11. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
  12. package/fesm2022/seniorsistemas-angular-components-table.mjs +181 -98
  13. package/fesm2022/seniorsistemas-angular-components-table.mjs.map +1 -1
  14. package/fesm2022/seniorsistemas-angular-components.mjs +2 -0
  15. package/fesm2022/seniorsistemas-angular-components.mjs.map +1 -1
  16. package/package.json +31 -31
  17. package/schematics/migrations/migrate-dynamic-form-v19/index.d.ts +2 -0
  18. package/schematics/migrations/migrate-dynamic-form-v19/index.js +964 -0
  19. package/schematics/migrations/migrate-dynamic-form-v19/index.js.map +1 -0
  20. package/schematics/migrations/migrate-dynamic-form-v19/index.test.d.ts +1 -0
  21. package/schematics/migrations/migrate-dynamic-form-v19/index.test.js +888 -0
  22. package/schematics/migrations/migrate-dynamic-form-v19/index.test.js.map +1 -0
  23. package/schematics/migrations/migrate-p-datepicker/index.js +4 -8
  24. package/schematics/migrations/migrate-p-datepicker/index.js.map +1 -1
  25. package/schematics/migrations/migrate-p-editor/index.d.ts +2 -0
  26. package/schematics/migrations/migrate-p-editor/index.js +301 -0
  27. package/schematics/migrations/migrate-p-editor/index.js.map +1 -0
  28. package/schematics/migrations/migrate-p-editor/index.test.d.ts +1 -0
  29. package/schematics/migrations/migrate-p-editor/index.test.js +393 -0
  30. package/schematics/migrations/migrate-p-editor/index.test.js.map +1 -0
  31. package/schematics/migrations.json +11 -0
  32. package/schematics/utils/ast-utils.d.ts +7 -0
  33. package/schematics/utils/ast-utils.js +20 -0
  34. package/schematics/utils/ast-utils.js.map +1 -1
  35. package/schematics/utils/html-utils.d.ts +6 -0
  36. package/schematics/utils/html-utils.js +15 -0
  37. package/schematics/utils/html-utils.js.map +1 -0
  38. package/table/README.md +28 -0
  39. package/table/lib/table/table-column/column-number-format.utils.d.ts +5 -0
  40. package/table/lib/table/table-paging/export-number-format.d.ts +15 -0
  41. package/table/lib/table/table-paging/models/export-number-format.enum.d.ts +4 -0
  42. package/table/lib/table/table-paging/models/index.d.ts +1 -0
  43. package/table/lib/table/table-paging/table-paging.component.d.ts +10 -27
@@ -1,15 +1,8 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { Table } from 'primeng/table';
3
- import { CustomAction } from './models';
4
- import { Column } from '../table-column/models';
5
2
  import { TieredMenuItemData } from '@seniorsistemas/angular-components/tiered-menu';
3
+ import { Table } from 'primeng/table';
4
+ import { CustomAction, ExportNumberFormat } from './models';
6
5
  import * as i0 from "@angular/core";
7
- type RowValueFormatOption = {
8
- value?: number;
9
- options?: {
10
- numberFormatOptions?: Intl.NumberFormatOptions;
11
- };
12
- };
13
6
  export declare class TablePagingComponent implements OnChanges {
14
7
  private readonly translate;
15
8
  private readonly hostProjectConfigs;
@@ -22,16 +15,20 @@ export declare class TablePagingComponent implements OnChanges {
22
15
  loadAllRecords?: () => Promise<any[]>;
23
16
  loadCurrentPageRecords?: () => any[];
24
17
  loadSelectedRecords?: () => any[];
18
+ exportNumberFormat: import("@angular/core").InputSignal<ExportNumberFormat | undefined>;
25
19
  totalRecordsText: string;
26
20
  private readonly localeService;
21
+ private readonly numericService;
27
22
  ngOnChanges(changes: SimpleChanges): void;
28
23
  private getTranslatePrefix;
29
24
  getTooltipText(): any;
30
25
  getActions(): TieredMenuItemData[];
26
+ private buildScopeAction;
31
27
  private validateComponent;
32
28
  getColumnsToExport(): any[];
33
29
  private getCurrentPageRowsToExport;
34
30
  private getSelectedRowsToExport;
31
+ private mapNumberFormat;
35
32
  private getPropertyValue;
36
33
  private setPropertyValue;
37
34
  private recursionSetValue;
@@ -40,23 +37,9 @@ export declare class TablePagingComponent implements OnChanges {
40
37
  private translateValue;
41
38
  private convertToSnakeCase;
42
39
  private getExportFileName;
43
- exportCurrentPage(): void;
44
- exportSelectedRecords(): void;
45
- exportAllRecords(): Promise<void>;
46
- /**
47
- * The purpose of this method is to map values
48
- * from the TableColumnsComponent, which uses the numberFormatOptions
49
- * field, along with rows that have a custom numberFormatOptions,
50
- * to ensure the correct values are exported by the TablePagingComponent.
51
- *
52
- * @returns Returns the correctly mapped tableData.
53
- */
54
- mapNumberFormatOptionsExport(columns: Partial<Column>[], tableData: {
55
- [key: string]: RowValueFormatOption | number | string | null | undefined;
56
- }[]): {
57
- [key: string]: string | number | RowValueFormatOption | null | undefined;
58
- }[];
40
+ exportCurrentPage(format?: ExportNumberFormat): void;
41
+ exportSelectedRecords(format?: ExportNumberFormat): void;
42
+ exportAllRecords(format?: ExportNumberFormat): Promise<void>;
59
43
  static ɵfac: i0.ɵɵFactoryDeclaration<TablePagingComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<TablePagingComponent, "s-table-paging", never, { "totalRecords": { "alias": "totalRecords"; "required": false; }; "exportFileName": { "alias": "exportFileName"; "required": false; }; "table": { "alias": "table"; "required": false; }; "exportable": { "alias": "exportable"; "required": false; }; "enableExportSelectedRecords": { "alias": "enableExportSelectedRecords"; "required": false; }; "customActions": { "alias": "customActions"; "required": false; }; "loadAllRecords": { "alias": "loadAllRecords"; "required": false; }; "loadCurrentPageRecords": { "alias": "loadCurrentPageRecords"; "required": false; }; "loadSelectedRecords": { "alias": "loadSelectedRecords"; "required": false; }; }, {}, never, never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<TablePagingComponent, "s-table-paging", never, { "totalRecords": { "alias": "totalRecords"; "required": false; }; "exportFileName": { "alias": "exportFileName"; "required": false; }; "table": { "alias": "table"; "required": false; }; "exportable": { "alias": "exportable"; "required": false; }; "enableExportSelectedRecords": { "alias": "enableExportSelectedRecords"; "required": false; }; "customActions": { "alias": "customActions"; "required": false; }; "loadAllRecords": { "alias": "loadAllRecords"; "required": false; }; "loadCurrentPageRecords": { "alias": "loadCurrentPageRecords"; "required": false; }; "loadSelectedRecords": { "alias": "loadSelectedRecords"; "required": false; }; "exportNumberFormat": { "alias": "exportNumberFormat"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
61
45
  }
62
- export {};