@den4ik92/ng2-smart-table 2.0.6 → 2.1.2

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 (100) hide show
  1. package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/custom-edit.component.mjs +6 -6
  2. package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/default-edit.component.mjs +4 -4
  3. package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/edit-cell-default.mjs +4 -4
  4. package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/edit-cell.component.mjs +6 -6
  5. package/{esm2020 → esm2022}/lib/components/cell/cell-editors/checkbox-editor.component.mjs +6 -6
  6. package/{esm2020 → esm2022}/lib/components/cell/cell-editors/default-editor.mjs +4 -4
  7. package/{esm2020 → esm2022}/lib/components/cell/cell-editors/input-editor.component.mjs +6 -6
  8. package/{esm2020 → esm2022}/lib/components/cell/cell-editors/select-editor.component.mjs +6 -6
  9. package/{esm2020 → esm2022}/lib/components/cell/cell-editors/textarea-editor.component.mjs +6 -6
  10. package/{esm2020 → esm2022}/lib/components/cell/cell-view-mode/custom-view.component.mjs +6 -6
  11. package/{esm2020 → esm2022}/lib/components/cell/cell-view-mode/view-cell.component.mjs +6 -6
  12. package/{esm2020 → esm2022}/lib/components/cell/cell.component.mjs +8 -8
  13. package/{esm2020 → esm2022}/lib/components/cell/cell.module.mjs +29 -29
  14. package/{esm2020 → esm2022}/lib/components/filter/custom-filter.component.mjs +4 -4
  15. package/{esm2020 → esm2022}/lib/components/filter/default-filter.component.mjs +6 -6
  16. package/{esm2020 → esm2022}/lib/components/filter/filter-default.mjs +4 -4
  17. package/{esm2020 → esm2022}/lib/components/filter/filter-types/checkbox-filter.component.mjs +6 -6
  18. package/{esm2020 → esm2022}/lib/components/filter/filter-types/default-filter.mjs +4 -4
  19. package/{esm2020 → esm2022}/lib/components/filter/filter-types/input-filter.component.mjs +6 -6
  20. package/{esm2020 → esm2022}/lib/components/filter/filter-types/select-filter.component.mjs +6 -6
  21. package/{esm2020 → esm2022}/lib/components/filter/filter.component.mjs +6 -6
  22. package/{esm2020 → esm2022}/lib/components/filter/filter.module.mjs +23 -23
  23. package/{esm2020 → esm2022}/lib/components/pager/pager.component.mjs +6 -6
  24. package/{esm2020 → esm2022}/lib/components/pager/pager.module.mjs +7 -7
  25. package/esm2022/lib/components/tbody/cells/create-cancel.component.mjs +198 -0
  26. package/esm2022/lib/components/tbody/cells/custom.component.mjs +58 -0
  27. package/esm2022/lib/components/tbody/cells/edit-delete.component.mjs +236 -0
  28. package/esm2022/lib/components/tbody/tbody.component.mjs +95 -0
  29. package/{esm2020 → esm2022}/lib/components/tbody/tbody.module.mjs +15 -15
  30. package/{esm2020 → esm2022}/lib/components/thead/cells/actions-title.component.mjs +6 -6
  31. package/{esm2020 → esm2022}/lib/components/thead/cells/actions.component.mjs +6 -6
  32. package/{esm2020 → esm2022}/lib/components/thead/cells/add-button.component.mjs +6 -6
  33. package/{esm2020 → esm2022}/lib/components/thead/cells/checkbox-select-all.component.mjs +6 -6
  34. package/{esm2020 → esm2022}/lib/components/thead/cells/column-title.component.mjs +6 -6
  35. package/{esm2020 → esm2022}/lib/components/thead/cells/title/title.component.mjs +6 -6
  36. package/{esm2020 → esm2022}/lib/components/thead/rows/thead-filters-row.component.mjs +6 -6
  37. package/{esm2020 → esm2022}/lib/components/thead/rows/thead-form-row.component.mjs +6 -6
  38. package/{esm2020 → esm2022}/lib/components/thead/rows/thead-titles-row.component.mjs +6 -6
  39. package/{esm2020 → esm2022}/lib/components/thead/thead.component.mjs +4 -4
  40. package/{esm2020 → esm2022}/lib/components/thead/thead.module.mjs +29 -29
  41. package/esm2022/lib/lib/data-set/cell.mjs +43 -0
  42. package/esm2022/lib/lib/data-set/column.mjs +74 -0
  43. package/esm2022/lib/lib/data-set/row.mjs +47 -0
  44. package/{esm2020 → esm2022}/lib/lib/data-source/local/local.data-source.mjs +1 -1
  45. package/esm2022/lib/lib/grid.mjs +218 -0
  46. package/{esm2020 → esm2022}/lib/lib/helpers.mjs +1 -1
  47. package/{esm2020 → esm2022}/lib/lib/interfaces/smart-table.models.mjs +1 -1
  48. package/{esm2020 → esm2022}/lib/ng2-smart-table.component.mjs +4 -4
  49. package/{esm2020 → esm2022}/lib/ng2-smart-table.module.mjs +19 -19
  50. package/{fesm2020 → fesm2022}/den4ik92-ng2-smart-table.mjs +752 -438
  51. package/fesm2022/den4ik92-ng2-smart-table.mjs.map +1 -0
  52. package/lib/components/cell/cell-edit-mode/edit-cell-default.d.ts +1 -1
  53. package/lib/components/cell/cell-edit-mode/edit-cell.component.d.ts +1 -1
  54. package/lib/components/cell/cell-editors/default-editor.d.ts +1 -1
  55. package/lib/components/cell/cell-view-mode/custom-view.component.d.ts +1 -1
  56. package/lib/components/cell/cell-view-mode/view-cell.component.d.ts +1 -1
  57. package/lib/components/cell/cell.component.d.ts +2 -2
  58. package/lib/components/filter/filter-default.d.ts +1 -1
  59. package/lib/components/filter/filter-types/default-filter.d.ts +1 -1
  60. package/lib/components/pager/pager.component.d.ts +1 -1
  61. package/lib/components/tbody/cells/create-cancel.component.d.ts +4 -4
  62. package/lib/components/tbody/cells/custom.component.d.ts +8 -6
  63. package/lib/components/tbody/cells/edit-delete.component.d.ts +5 -5
  64. package/lib/components/tbody/tbody.component.d.ts +1 -1
  65. package/lib/components/thead/cells/actions-title.component.d.ts +1 -1
  66. package/lib/components/thead/cells/actions.component.d.ts +1 -1
  67. package/lib/components/thead/cells/add-button.component.d.ts +1 -1
  68. package/lib/components/thead/cells/checkbox-select-all.component.d.ts +1 -1
  69. package/lib/components/thead/cells/column-title.component.d.ts +1 -1
  70. package/lib/components/thead/cells/title/title.component.d.ts +1 -1
  71. package/lib/components/thead/rows/thead-filters-row.component.d.ts +1 -1
  72. package/lib/components/thead/rows/thead-form-row.component.d.ts +1 -1
  73. package/lib/components/thead/rows/thead-titles-row.component.d.ts +1 -1
  74. package/lib/components/thead/thead.component.d.ts +1 -1
  75. package/lib/lib/data-set/cell.d.ts +3 -2
  76. package/lib/lib/data-set/column.d.ts +3 -3
  77. package/lib/lib/data-set/row.d.ts +1 -0
  78. package/lib/lib/helpers.d.ts +4 -4
  79. package/lib/lib/interfaces/smart-table.models.d.ts +1 -1
  80. package/lib/ng2-smart-table.component.d.ts +1 -1
  81. package/package.json +8 -14
  82. package/esm2020/lib/components/tbody/cells/create-cancel.component.mjs +0 -53
  83. package/esm2020/lib/components/tbody/cells/custom.component.mjs +0 -49
  84. package/esm2020/lib/components/tbody/cells/edit-delete.component.mjs +0 -85
  85. package/esm2020/lib/components/tbody/tbody.component.mjs +0 -95
  86. package/esm2020/lib/lib/data-set/cell.mjs +0 -41
  87. package/esm2020/lib/lib/data-set/column.mjs +0 -74
  88. package/esm2020/lib/lib/data-set/row.mjs +0 -46
  89. package/esm2020/lib/lib/grid.mjs +0 -211
  90. package/fesm2015/den4ik92-ng2-smart-table.mjs +0 -3175
  91. package/fesm2015/den4ik92-ng2-smart-table.mjs.map +0 -1
  92. package/fesm2020/den4ik92-ng2-smart-table.mjs.map +0 -1
  93. /package/{esm2020 → esm2022}/den4ik92-ng2-smart-table.mjs +0 -0
  94. /package/{esm2020 → esm2022}/lib/components/cell/cell-view-mode/view-cell.mjs +0 -0
  95. /package/{esm2020 → esm2022}/lib/lib/data-set/data-set.mjs +0 -0
  96. /package/{esm2020 → esm2022}/lib/lib/data-source/data-source.mjs +0 -0
  97. /package/{esm2020 → esm2022}/lib/lib/data-source/local/local.filter.mjs +0 -0
  98. /package/{esm2020 → esm2022}/lib/lib/data-source/local/local.pager.mjs +0 -0
  99. /package/{esm2020 → esm2022}/lib/lib/data-source/local/local.sorter.mjs +0 -0
  100. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { Grid } from '../../lib/grid';
3
2
  import { Cell } from '../../lib/data-set/cell';
4
3
  import { Row } from '../../lib/data-set/row';
4
+ import { Grid } from '../../lib/grid';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CellComponent {
7
7
  grid: Grid;
@@ -16,5 +16,5 @@ export declare class CellComponent {
16
16
  edited: EventEmitter<any>;
17
17
  onEdited(event: any): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CellComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<CellComponent, "ng2-smart-table-cell", never, { "grid": "grid"; "row": "row"; "editConfirm": "editConfirm"; "createConfirm": "createConfirm"; "isNew": "isNew"; "cell": "cell"; "inputClass": "inputClass"; "mode": "mode"; "isInEditing": "isInEditing"; }, { "edited": "edited"; }, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CellComponent, "ng2-smart-table-cell", never, { "grid": { "alias": "grid"; "required": false; }; "row": { "alias": "row"; "required": false; }; "editConfirm": { "alias": "editConfirm"; "required": false; }; "createConfirm": { "alias": "createConfirm"; "required": false; }; "isNew": { "alias": "isNew"; "required": false; }; "cell": { "alias": "cell"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "isInEditing": { "alias": "isInEditing"; "required": false; }; }, { "edited": "edited"; }, never, never, false, never>;
20
20
  }
@@ -10,5 +10,5 @@ export declare class FilterDefault {
10
10
  filter: EventEmitter<any>;
11
11
  onFilter(query: string): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterDefault, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterDefault, "ng-component", never, { "column": "column"; "source": "source"; "inputClass": "inputClass"; "query": "query"; }, { "filter": "filter"; }, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterDefault, "ng-component", never, { "column": { "alias": "column"; "required": false; }; "source": { "alias": "source"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "query": { "alias": "query"; "required": false; }; }, { "filter": "filter"; }, never, never, false, never>;
14
14
  }
@@ -12,7 +12,7 @@ export declare class DefaultFilter implements Filter, OnDestroy {
12
12
  ngOnDestroy(): void;
13
13
  setFilter(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultFilter, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<DefaultFilter, "ng-component", never, { "query": "query"; "inputClass": "inputClass"; "column": "column"; }, { "filter": "filter"; }, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultFilter, "ng-component", never, { "query": { "alias": "query"; "required": false; }; "inputClass": { "alias": "inputClass"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, { "filter": "filter"; }, never, never, false, never>;
16
16
  }
17
17
  export interface Filter {
18
18
  delay?: number;
@@ -31,5 +31,5 @@ export declare class PagerComponent implements OnChanges {
31
31
  initPages(): void;
32
32
  onChangePerPage(): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<PagerComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<PagerComponent, "ng2-smart-table-pager", never, { "source": "source"; "perPageSelect": "perPageSelect"; }, { "changePage": "changePage"; }, never, never, false, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<PagerComponent, "ng2-smart-table-pager", never, { "source": { "alias": "source"; "required": false; }; "perPageSelect": { "alias": "perPageSelect"; "required": false; }; }, { "changePage": "changePage"; }, never, never, false, never>;
35
35
  }
@@ -1,6 +1,6 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
2
- import { Grid } from '../../../lib/grid';
3
- import { Row } from '../../../lib/data-set/row';
1
+ import { EventEmitter, OnChanges } from "@angular/core";
2
+ import { Row } from "../../../lib/data-set/row";
3
+ import { Grid } from "../../../lib/grid";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TbodyCreateCancelComponent implements OnChanges {
6
6
  grid: Grid;
@@ -13,5 +13,5 @@ export declare class TbodyCreateCancelComponent implements OnChanges {
13
13
  onCancelEdit(event: any): void;
14
14
  ngOnChanges(): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TbodyCreateCancelComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TbodyCreateCancelComponent, "ng2-st-tbody-create-cancel", never, { "grid": "grid"; "row": "row"; "editConfirm": "editConfirm"; "editCancel": "editCancel"; }, {}, never, never, false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TbodyCreateCancelComponent, "ng2-st-tbody-create-cancel", never, { "grid": { "alias": "grid"; "required": false; }; "row": { "alias": "row"; "required": false; }; "editConfirm": { "alias": "editConfirm"; "required": false; }; "editCancel": { "alias": "editCancel"; "required": false; }; }, {}, never, never, false, never>;
17
17
  }
@@ -1,14 +1,16 @@
1
- import { LocalDataSource } from './../../../lib/data-source/local/local.data-source';
2
- import { EventEmitter } from '@angular/core';
3
- import { Row } from '../../../lib/data-set/row';
4
- import { Grid } from '../../../lib/grid';
1
+ import { EventEmitter } from "@angular/core";
2
+ import { Row } from "../../../lib/data-set/row";
3
+ import { LocalDataSource } from "./../../../lib/data-source/local/local.data-source";
4
+ import { Grid } from "../../../lib/grid";
5
+ import { SmartTableCustomAction } from "../../../lib/interfaces/smart-table.models";
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class TbodyCustomComponent {
7
8
  grid: Grid;
8
9
  row: Row;
9
10
  source: LocalDataSource;
10
11
  custom: EventEmitter<any>;
11
- onCustom(action: any, event: any): void;
12
+ onCustom(action: any): void;
13
+ customActions(): SmartTableCustomAction[] | undefined;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TbodyCustomComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TbodyCustomComponent, "ng2-st-tbody-custom", never, { "grid": "grid"; "row": "row"; "source": "source"; }, { "custom": "custom"; }, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TbodyCustomComponent, "ng2-st-tbody-custom", never, { "grid": { "alias": "grid"; "required": false; }; "row": { "alias": "row"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "custom": "custom"; }, never, never, false, never>;
14
16
  }
@@ -1,7 +1,7 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
2
- import { Grid } from '../../../lib/grid';
3
- import { Row } from '../../../lib/data-set/row';
4
- import { LocalDataSource } from '../../../lib/data-source/local/local.data-source';
1
+ import { EventEmitter, OnChanges } from "@angular/core";
2
+ import { Row } from "../../../lib/data-set/row";
3
+ import { LocalDataSource } from "../../../lib/data-source/local/local.data-source";
4
+ import { Grid } from "../../../lib/grid";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TbodyEditDeleteComponent implements OnChanges {
7
7
  grid: Grid;
@@ -20,5 +20,5 @@ export declare class TbodyEditDeleteComponent implements OnChanges {
20
20
  onDelete(event: any): void;
21
21
  ngOnChanges(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<TbodyEditDeleteComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<TbodyEditDeleteComponent, "ng2-st-tbody-edit-delete", never, { "grid": "grid"; "row": "row"; "source": "source"; "deleteConfirm": "deleteConfirm"; "editConfirm": "editConfirm"; }, { "edit": "edit"; "delete": "delete"; "editRowSelect": "editRowSelect"; }, never, never, false, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TbodyEditDeleteComponent, "ng2-st-tbody-edit-delete", never, { "grid": { "alias": "grid"; "required": false; }; "row": { "alias": "row"; "required": false; }; "source": { "alias": "source"; "required": false; }; "deleteConfirm": { "alias": "deleteConfirm"; "required": false; }; "editConfirm": { "alias": "editConfirm"; "required": false; }; }, { "edit": "edit"; "delete": "delete"; "editRowSelect": "editRowSelect"; }, never, never, false, never>;
24
24
  }
@@ -34,5 +34,5 @@ export declare class Ng2SmartTableTbodyComponent {
34
34
  getVisibleCells(cells: Cell[]): Cell[];
35
35
  protected trackByIdOrIndex(index: number, item: any): string | number;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<Ng2SmartTableTbodyComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableTbodyComponent, "[ng2-st-tbody]", never, { "grid": "grid"; "source": "source"; "deleteConfirm": "deleteConfirm"; "editConfirm": "editConfirm"; "rowClassFunction": "rowClassFunction"; }, { "save": "save"; "cancel": "cancel"; "edit": "edit"; "editCancel": "editCancel"; "delete": "delete"; "custom": "custom"; "edited": "edited"; "userSelectRow": "userSelectRow"; "userClickedRow": "userClickedRow"; "editRowSelect": "editRowSelect"; "multipleSelectRow": "multipleSelectRow"; }, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableTbodyComponent, "[ng2-st-tbody]", never, { "grid": { "alias": "grid"; "required": false; }; "source": { "alias": "source"; "required": false; }; "deleteConfirm": { "alias": "deleteConfirm"; "required": false; }; "editConfirm": { "alias": "editConfirm"; "required": false; }; "rowClassFunction": { "alias": "rowClassFunction"; "required": false; }; }, { "save": "save"; "cancel": "cancel"; "edit": "edit"; "editCancel": "editCancel"; "delete": "delete"; "custom": "custom"; "edited": "edited"; "userSelectRow": "userSelectRow"; "userClickedRow": "userClickedRow"; "editRowSelect": "editRowSelect"; "multipleSelectRow": "multipleSelectRow"; }, never, never, false, never>;
38
38
  }
@@ -9,5 +9,5 @@ export declare class ActionsTitleComponent implements AfterViewInit, OnChanges {
9
9
  ngAfterViewInit(): void;
10
10
  ngOnChanges(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionsTitleComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionsTitleComponent, "[ng2-st-actions-title]", never, { "grid": "grid"; }, {}, never, never, false, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionsTitleComponent, "[ng2-st-actions-title]", never, { "grid": { "alias": "grid"; "required": false; }; }, {}, never, never, false, never>;
13
13
  }
@@ -8,5 +8,5 @@ export declare class ActionsComponent implements OnChanges {
8
8
  cancelButtonContent: string;
9
9
  ngOnChanges(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionsComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionsComponent, "ng2-st-actions", never, { "grid": "grid"; }, { "create": "create"; }, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionsComponent, "ng2-st-actions", never, { "grid": { "alias": "grid"; "required": false; }; }, { "create": "create"; }, never, never, false, never>;
12
12
  }
@@ -14,5 +14,5 @@ export declare class AddButtonComponent implements AfterViewInit, OnChanges {
14
14
  ngOnChanges(): void;
15
15
  onAdd(event: any): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<AddButtonComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<AddButtonComponent, "[ng2-st-add-button]", never, { "grid": "grid"; "source": "source"; }, { "create": "create"; }, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddButtonComponent, "[ng2-st-add-button]", never, { "grid": { "alias": "grid"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "create": "create"; }, never, never, false, never>;
18
18
  }
@@ -5,5 +5,5 @@ export declare class CheckboxSelectAllComponent {
5
5
  grid: Grid;
6
6
  source: LocalDataSource;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxSelectAllComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxSelectAllComponent, "[ng2-st-checkbox-select-all]", never, { "grid": "grid"; "source": "source"; }, {}, never, never, false, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxSelectAllComponent, "[ng2-st-checkbox-select-all]", never, { "grid": { "alias": "grid"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, {}, never, never, false, never>;
9
9
  }
@@ -7,5 +7,5 @@ export declare class ColumnTitleComponent {
7
7
  source: LocalDataSource;
8
8
  sort: EventEmitter<any>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTitleComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTitleComponent, "ng2-st-column-title", never, { "column": "column"; "source": "source"; }, { "sort": "sort"; }, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnTitleComponent, "ng2-st-column-title", never, { "column": { "alias": "column"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "sort": "sort"; }, never, never, false, never>;
11
11
  }
@@ -14,5 +14,5 @@ export declare class TitleComponent implements OnChanges {
14
14
  _sort(event: any): void;
15
15
  changeSortDirection(): string;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TitleComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "ng2-smart-table-title", never, { "column": "column"; "source": "source"; }, { "sort": "sort"; }, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "ng2-smart-table-title", never, { "column": { "alias": "column"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "sort": "sort"; }, never, never, false, never>;
18
18
  }
@@ -15,5 +15,5 @@ export declare class TheadFitlersRowComponent implements OnChanges {
15
15
  ngOnChanges(): void;
16
16
  getVisibleColumns(columns: Array<Column>): Array<Column>;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TheadFitlersRowComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<TheadFitlersRowComponent, "[ng2-st-thead-filters-row]", never, { "grid": "grid"; "source": "source"; }, { "create": "create"; "filter": "filter"; }, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheadFitlersRowComponent, "[ng2-st-thead-filters-row]", never, { "grid": { "alias": "grid"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "create": "create"; "filter": "filter"; }, never, never, false, never>;
19
19
  }
@@ -16,5 +16,5 @@ export declare class TheadFormRowComponent implements OnChanges {
16
16
  ngOnChanges(): void;
17
17
  getVisibleCells(cells: Array<Cell>): Array<Cell>;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TheadFormRowComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<TheadFormRowComponent, "[ng2-st-thead-form-row]", never, { "grid": "grid"; "row": "row"; "createConfirm": "createConfirm"; }, { "create": "create"; }, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheadFormRowComponent, "[ng2-st-thead-form-row]", never, { "grid": { "alias": "grid"; "required": false; }; "row": { "alias": "row"; "required": false; }; "createConfirm": { "alias": "createConfirm"; "required": false; }; }, { "create": "create"; }, never, never, false, never>;
20
20
  }
@@ -14,5 +14,5 @@ export declare class TheadTitlesRowComponent implements OnChanges {
14
14
  ngOnChanges(): void;
15
15
  getVisibleColumns(columns: Array<Column>): Array<Column>;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TheadTitlesRowComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TheadTitlesRowComponent, "[ng2-st-thead-titles-row]", never, { "grid": "grid"; "source": "source"; }, { "sort": "sort"; "selectAllRows": "selectAllRows"; }, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TheadTitlesRowComponent, "[ng2-st-thead-titles-row]", never, { "grid": { "alias": "grid"; "required": false; }; "source": { "alias": "source"; "required": false; }; }, { "sort": "sort"; "selectAllRows": "selectAllRows"; }, never, never, false, never>;
18
18
  }
@@ -14,5 +14,5 @@ export declare class Ng2SmartTableTheadComponent implements OnChanges {
14
14
  isHideSubHeader: boolean;
15
15
  ngOnChanges(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<Ng2SmartTableTheadComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableTheadComponent, "[ng2-st-thead]", never, { "grid": "grid"; "source": "source"; "createConfirm": "createConfirm"; }, { "sort": "sort"; "selectAllRows": "selectAllRows"; "create": "create"; "filter": "filter"; }, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableTheadComponent, "[ng2-st-thead]", never, { "grid": { "alias": "grid"; "required": false; }; "source": { "alias": "source"; "required": false; }; "createConfirm": { "alias": "createConfirm"; "required": false; }; }, { "sort": "sort"; "selectAllRows": "selectAllRows"; "create": "create"; "filter": "filter"; }, never, never, false, never>;
18
18
  }
@@ -5,12 +5,13 @@ export declare function prepareValue(value: any): any;
5
5
  export declare class Cell {
6
6
  protected value: any;
7
7
  protected row: Row;
8
- protected column: any;
8
+ protected column: Column;
9
9
  protected dataSet: DataSet;
10
10
  newValue: any;
11
11
  protected static PREPARE: typeof prepareValue;
12
- constructor(value: any, row: Row, column: any, dataSet: DataSet);
12
+ constructor(value: any, row: Row, column: Column, dataSet: DataSet);
13
13
  getColumn(): Column;
14
+ getColumnClass(): string | undefined;
14
15
  getRow(): Row;
15
16
  getValue(): any;
16
17
  setValue(value: any): any;
@@ -1,9 +1,9 @@
1
- import { SmartTableColumnSettings, SmartTableColumnSettingsTypes, SmartTableSortDirection } from './../interfaces/smart-table.models';
2
1
  import { SmartTableEditorAndFilter } from '../interfaces/smart-table.models';
2
+ import { SmartTableColumnSettings, SmartTableColumnSettingsTypes, SmartTableSortDirection } from './../interfaces/smart-table.models';
3
3
  import { DataSet } from './data-set';
4
4
  export declare class Column {
5
5
  id: string;
6
- protected settings: SmartTableColumnSettings;
6
+ private settings;
7
7
  protected dataSet: DataSet;
8
8
  title: string;
9
9
  type: SmartTableColumnSettingsTypes;
@@ -29,6 +29,6 @@ export declare class Column {
29
29
  getConfig(): any;
30
30
  getFilterType(): any;
31
31
  getFilterConfig(): any;
32
- protected process(): void;
32
+ protected process(settings: SmartTableColumnSettings): void;
33
33
  prepareSortDirection(): SmartTableSortDirection;
34
34
  }
@@ -5,6 +5,7 @@ export declare class Row {
5
5
  index: number;
6
6
  protected data: any;
7
7
  protected _dataSet: DataSet;
8
+ pending: boolean;
8
9
  isSelected: boolean;
9
10
  isInEditing: boolean;
10
11
  cells: Cell[];
@@ -8,10 +8,10 @@
8
8
  * deepExtend({}, yourObj_1, [yourObj_N]);
9
9
  */
10
10
  export declare const deepExtend: (...objects: Array<any>) => any;
11
- export declare class Deferred {
12
- promise: Promise<any>;
13
- resolve: (value?: any) => void;
14
- reject: (reason?: any) => void;
11
+ export declare class Deferred<T> {
12
+ promise: Promise<T>;
13
+ resolve: (value?: T) => void;
14
+ reject: (reason?: string) => void;
15
15
  constructor();
16
16
  }
17
17
  export declare function getDeepFromObject(object: {} | undefined, name: string, defaultValue?: any): any;
@@ -132,7 +132,7 @@ export interface SmartTableSortItem {
132
132
  compare?: any;
133
133
  }
134
134
  interface SmartTableDefaultEvent<T> {
135
- confirm: Deferred;
135
+ confirm: Deferred<T>;
136
136
  data: T;
137
137
  source: LocalDataSource;
138
138
  }
@@ -39,5 +39,5 @@ export declare class Ng2SmartTableComponent implements OnChanges {
39
39
  private prepareSettings;
40
40
  private emitUserSelectRow;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<Ng2SmartTableComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableComponent, "ng2-smart-table", never, { "source": "source"; "settings": "settings"; }, { "multiRowSelect": "multiRowSelect"; "rowClicked": "rowClicked"; "delete": "delete"; "edit": "edit"; "editCancel": "editCancel"; "create": "create"; "custom": "custom"; "deleteConfirm": "deleteConfirm"; "editConfirm": "editConfirm"; "createConfirm": "createConfirm"; "rowHover": "rowHover"; }, never, never, false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<Ng2SmartTableComponent, "ng2-smart-table", never, { "source": { "alias": "source"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, { "multiRowSelect": "multiRowSelect"; "rowClicked": "rowClicked"; "delete": "delete"; "edit": "edit"; "editCancel": "editCancel"; "create": "create"; "custom": "custom"; "deleteConfirm": "deleteConfirm"; "editConfirm": "editConfirm"; "createConfirm": "createConfirm"; "rowHover": "rowHover"; }, never, never, false, never>;
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@den4ik92/ng2-smart-table",
3
- "version": "2.0.6",
3
+ "version": "2.1.2",
4
4
  "description": "Angular Smart Table",
5
5
  "author": "Den4ik92",
6
6
  "license": "MIT",
@@ -8,15 +8,11 @@
8
8
  "tslib": "^2.6.1"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^15.2.9",
12
- "@angular/core": "^15.2.9",
13
- "@angular/forms": "^15.2.9"
11
+ "@angular/common": "^16.2.12",
12
+ "@angular/core": "^16.2.12",
13
+ "@angular/forms": "^16.2.12"
14
14
  },
15
- "module": "fesm2015/den4ik92-ng2-smart-table.mjs",
16
- "es2020": "fesm2020/den4ik92-ng2-smart-table.mjs",
17
- "esm2020": "esm2020/den4ik92-ng2-smart-table.mjs",
18
- "fesm2020": "fesm2020/den4ik92-ng2-smart-table.mjs",
19
- "fesm2015": "fesm2015/den4ik92-ng2-smart-table.mjs",
15
+ "module": "fesm2022/den4ik92-ng2-smart-table.mjs",
20
16
  "typings": "index.d.ts",
21
17
  "exports": {
22
18
  "./package.json": {
@@ -24,11 +20,9 @@
24
20
  },
25
21
  ".": {
26
22
  "types": "./index.d.ts",
27
- "esm2020": "./esm2020/den4ik92-ng2-smart-table.mjs",
28
- "es2020": "./fesm2020/den4ik92-ng2-smart-table.mjs",
29
- "es2015": "./fesm2015/den4ik92-ng2-smart-table.mjs",
30
- "node": "./fesm2015/den4ik92-ng2-smart-table.mjs",
31
- "default": "./fesm2020/den4ik92-ng2-smart-table.mjs"
23
+ "esm2022": "./esm2022/den4ik92-ng2-smart-table.mjs",
24
+ "esm": "./esm2022/den4ik92-ng2-smart-table.mjs",
25
+ "default": "./fesm2022/den4ik92-ng2-smart-table.mjs"
32
26
  }
33
27
  },
34
28
  "sideEffects": false
@@ -1,53 +0,0 @@
1
- import { Component, Input, EventEmitter } from '@angular/core';
2
- import { Grid } from '../../../lib/grid';
3
- import { Row } from '../../../lib/data-set/row';
4
- import * as i0 from "@angular/core";
5
- export class TbodyCreateCancelComponent {
6
- constructor() {
7
- this.cancelButtonContent = '';
8
- this.saveButtonContent = '';
9
- }
10
- onSave(event) {
11
- event.preventDefault();
12
- event.stopPropagation();
13
- this.grid.save(this.row, this.editConfirm);
14
- }
15
- onCancelEdit(event) {
16
- event.preventDefault();
17
- event.stopPropagation();
18
- this.editCancel.emit(true);
19
- this.row.isInEditing = false;
20
- }
21
- ngOnChanges() {
22
- this.saveButtonContent = this.grid.getSetting('edit.saveButtonContent', 'save');
23
- this.cancelButtonContent = this.grid.getSetting('edit.cancelButtonContent', 'cancel');
24
- }
25
- }
26
- TbodyCreateCancelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- TbodyCreateCancelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TbodyCreateCancelComponent, selector: "ng2-st-tbody-create-cancel", inputs: { grid: "grid", row: "row", editConfirm: "editConfirm", editCancel: "editCancel" }, usesOnChanges: true, ngImport: i0, template: `
28
- <a href="#" class="ng2-smart-action ng2-smart-action-edit-save"
29
- [innerHTML]="saveButtonContent" (click)="onSave($event)"></a>
30
- <a href="#" class="ng2-smart-action ng2-smart-action-edit-cancel"
31
- [innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
32
- `, isInline: true });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, decorators: [{
34
- type: Component,
35
- args: [{
36
- selector: 'ng2-st-tbody-create-cancel',
37
- template: `
38
- <a href="#" class="ng2-smart-action ng2-smart-action-edit-save"
39
- [innerHTML]="saveButtonContent" (click)="onSave($event)"></a>
40
- <a href="#" class="ng2-smart-action ng2-smart-action-edit-cancel"
41
- [innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
42
- `,
43
- }]
44
- }], propDecorators: { grid: [{
45
- type: Input
46
- }], row: [{
47
- type: Input
48
- }], editConfirm: [{
49
- type: Input
50
- }], editCancel: [{
51
- type: Input
52
- }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1xuICB9XG5cbiAgbmdPbkNoYW5nZXMoKSB7XG4gICAgdGhpcy5zYXZlQnV0dG9uQ29udGVudCA9IHRoaXMuZ3JpZC5nZXRTZXR0aW5nKCdlZGl0LnNhdmVCdXR0b25Db250ZW50JywgJ3NhdmUnKTtcbiAgICB0aGlzLmNhbmNlbEJ1dHRvbkNvbnRlbnQgPSB0aGlzLmdyaWQuZ2V0U2V0dGluZygnZWRpdC5jYW5jZWxCdXR0b25Db250ZW50JywgJ2NhbmNlbCcpXG4gIH1cbn1cbiJdfQ==
@@ -1,49 +0,0 @@
1
- import { LocalDataSource } from './../../../lib/data-source/local/local.data-source';
2
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
3
- import { Row } from '../../../lib/data-set/row';
4
- import { Grid } from '../../../lib/grid';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- export class TbodyCustomComponent {
8
- constructor() {
9
- this.custom = new EventEmitter();
10
- }
11
- onCustom(action, event) {
12
- event.preventDefault();
13
- event.stopPropagation();
14
- this.custom.emit({
15
- action: action.name,
16
- data: this.row.getData(),
17
- source: this.source
18
- });
19
- }
20
- }
21
- TbodyCustomComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- TbodyCustomComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TbodyCustomComponent, selector: "ng2-st-tbody-custom", inputs: { grid: "grid", row: "row", source: "source" }, outputs: { custom: "custom" }, ngImport: i0, template: `
23
- <a *ngFor="let action of grid.getSetting('actions.custom')" href="#"
24
- class="ng2-smart-action ng2-smart-action-custom-custom"
25
- [innerHTML]="action.title"
26
- (click)="onCustom(action, $event)"></a>
27
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, decorators: [{
29
- type: Component,
30
- args: [{
31
- selector: 'ng2-st-tbody-custom',
32
- changeDetection: ChangeDetectionStrategy.OnPush,
33
- template: `
34
- <a *ngFor="let action of grid.getSetting('actions.custom')" href="#"
35
- class="ng2-smart-action ng2-smart-action-custom-custom"
36
- [innerHTML]="action.title"
37
- (click)="onCustom(action, $event)"></a>
38
- `
39
- }]
40
- }], propDecorators: { grid: [{
41
- type: Input
42
- }], row: [{
43
- type: Input
44
- }], source: [{
45
- type: Input
46
- }], custom: [{
47
- type: Output
48
- }] } });
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nMi1zbWFydC10YWJsZS9zcmMvbGliL2NvbXBvbmVudHMvdGJvZHkvY2VsbHMvY3VzdG9tLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sb0RBQW9ELENBQUM7QUFDckYsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNoRyxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFFaEQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDOzs7QUFZekMsTUFBTSxPQUFPLG9CQUFvQjtJQVZqQztRQWVjLFdBQU0sR0FBRyxJQUFJLFlBQVksRUFBTyxDQUFDO0tBYTl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XG4gICAgfVxuXG59XG4iXX0=
@@ -1,85 +0,0 @@
1
- import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
2
- import { Grid } from '../../../lib/grid';
3
- import { Row } from '../../../lib/data-set/row';
4
- import { LocalDataSource } from '../../../lib/data-source/local/local.data-source';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- export class TbodyEditDeleteComponent {
8
- constructor() {
9
- this.edit = new EventEmitter();
10
- this.delete = new EventEmitter();
11
- this.editRowSelect = new EventEmitter();
12
- this.isActionEdit = false;
13
- this.isActionDelete = false;
14
- this.editRowButtonContent = '';
15
- this.deleteRowButtonContent = '';
16
- }
17
- onEdit(event) {
18
- event.preventDefault();
19
- event.stopPropagation();
20
- this.editRowSelect.emit(this.row);
21
- this.edit.emit({
22
- data: this.row.getData(),
23
- source: this.source,
24
- });
25
- if (this.grid.getSetting('mode') !== 'external') {
26
- this.grid.edit(this.row);
27
- }
28
- }
29
- onDelete(event) {
30
- event.preventDefault();
31
- event.stopPropagation();
32
- if (this.grid.getSetting('mode') === 'external') {
33
- this.delete.emit({
34
- data: this.row.getData(),
35
- source: this.source,
36
- });
37
- }
38
- else {
39
- this.grid.delete(this.row, this.deleteConfirm);
40
- }
41
- }
42
- ngOnChanges() {
43
- this.isActionEdit = this.grid.getSetting('actions.edit');
44
- this.isActionDelete = this.grid.getSetting('actions.delete');
45
- this.editRowButtonContent = this.grid.getSetting('edit.editButtonContent');
46
- this.deleteRowButtonContent = this.grid.getSetting('delete.deleteButtonContent');
47
- }
48
- }
49
- TbodyEditDeleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
- TbodyEditDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TbodyEditDeleteComponent, selector: "ng2-st-tbody-edit-delete", inputs: { grid: "grid", row: "row", source: "source", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm" }, outputs: { edit: "edit", delete: "delete", editRowSelect: "editRowSelect" }, usesOnChanges: true, ngImport: i0, template: `
51
- <a href="#" *ngIf="isActionEdit" class="ng2-smart-action ng2-smart-action-edit-edit"
52
- [innerHTML]="editRowButtonContent" (click)="onEdit($event)"></a>
53
- <a href="#" *ngIf="isActionDelete" class="ng2-smart-action ng2-smart-action-delete-delete"
54
- [innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
55
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, decorators: [{
57
- type: Component,
58
- args: [{
59
- selector: 'ng2-st-tbody-edit-delete',
60
- changeDetection: ChangeDetectionStrategy.OnPush,
61
- template: `
62
- <a href="#" *ngIf="isActionEdit" class="ng2-smart-action ng2-smart-action-edit-edit"
63
- [innerHTML]="editRowButtonContent" (click)="onEdit($event)"></a>
64
- <a href="#" *ngIf="isActionDelete" class="ng2-smart-action ng2-smart-action-delete-delete"
65
- [innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
66
- `,
67
- }]
68
- }], propDecorators: { grid: [{
69
- type: Input
70
- }], row: [{
71
- type: Input
72
- }], source: [{
73
- type: Input
74
- }], deleteConfirm: [{
75
- type: Input
76
- }], editConfirm: [{
77
- type: Input
78
- }], edit: [{
79
- type: Output
80
- }], delete: [{
81
- type: Output
82
- }], editRowSelect: [{
83
- type: Output
84
- }] } });
85
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdC1kZWxldGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi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