dattatable 2.9.65 → 2.9.66

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 (66) hide show
  1. package/build/dashboard/accordion.d.ts +2 -1
  2. package/build/dashboard/filter.d.ts +2 -2
  3. package/build/dashboard/filter.js +4 -4
  4. package/build/dashboard/index.js +4 -4
  5. package/build/dashboard/tiles.d.ts +1 -1
  6. package/dist/dattatable.js +457 -457
  7. package/dist/dattatable.min.js +1 -1
  8. package/docs/assets/navigation.js +1 -1
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/Accordion.html +2 -2
  11. package/docs/classes/AuditLog.html +2 -2
  12. package/docs/classes/CanvasForm.html +2 -2
  13. package/docs/classes/Comments.html +2 -2
  14. package/docs/classes/Dashboard.html +4 -4
  15. package/docs/classes/DataTable.html +3 -3
  16. package/docs/classes/Documents.html +6 -6
  17. package/docs/classes/FilterSlideout.html +2 -2
  18. package/docs/classes/Footer.html +2 -2
  19. package/docs/classes/Header.html +2 -2
  20. package/docs/classes/InstallationRequired.html +2 -2
  21. package/docs/classes/ItemForm.html +4 -4
  22. package/docs/classes/List.html +4 -4
  23. package/docs/classes/ListSecurity.html +2 -2
  24. package/docs/classes/LoadingDialog.html +2 -2
  25. package/docs/classes/Modal.html +2 -2
  26. package/docs/classes/Navigation.html +3 -3
  27. package/docs/classes/Tiles.html +2 -2
  28. package/docs/classes/Timeout.html +2 -2
  29. package/docs/enums/ActionButtonTypes.html +2 -2
  30. package/docs/functions/formatBytes.html +1 -1
  31. package/docs/functions/formatDateValue.html +1 -1
  32. package/docs/functions/formatTimeValue.html +1 -1
  33. package/docs/functions/getContextInfo.html +1 -1
  34. package/docs/functions/getFileExt.html +1 -1
  35. package/docs/functions/waitForTheme.html +1 -1
  36. package/docs/interfaces/IAccordion.html +2 -2
  37. package/docs/interfaces/IAccordionProps.html +2 -2
  38. package/docs/interfaces/IAuditLogItem.html +2 -2
  39. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  40. package/docs/interfaces/IAuditLogProps.html +2 -2
  41. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  42. package/docs/interfaces/ICommentsItem.html +2 -2
  43. package/docs/interfaces/IDashboardProps.html +2 -2
  44. package/docs/interfaces/IDataTable.html +2 -2
  45. package/docs/interfaces/IDataTableProps.html +2 -2
  46. package/docs/interfaces/IDocumentsProps.html +2 -2
  47. package/docs/interfaces/IFilterItem.html +2 -2
  48. package/docs/interfaces/IFilterProps.html +2 -2
  49. package/docs/interfaces/IFooterProps.html +2 -2
  50. package/docs/interfaces/IHeaderProps.html +2 -2
  51. package/docs/interfaces/IInstallProps.html +2 -2
  52. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  53. package/docs/interfaces/IItemFormEditProps.html +2 -2
  54. package/docs/interfaces/IItemFormTab.html +2 -2
  55. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  56. package/docs/interfaces/IItemFormViewProps.html +2 -2
  57. package/docs/interfaces/IListProps.html +2 -2
  58. package/docs/interfaces/IListSecurity.html +2 -2
  59. package/docs/interfaces/IListSecurityItem.html +2 -2
  60. package/docs/interfaces/IShowDialogProps.html +2 -2
  61. package/docs/interfaces/ITiles.html +2 -2
  62. package/docs/interfaces/ITilesProps.html +2 -2
  63. package/docs/variables/DattaTable.html +1 -1
  64. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  65. package/package.json +2 -2
  66. package/pnpm-lock.yaml +0 -3420
@@ -1,5 +1,6 @@
1
+ import { Components } from "gd-sprest-bs";
1
2
  export interface IAccordion {
2
- filter?: (string: any) => void;
3
+ filter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
3
4
  search?: (value: string) => void;
4
5
  }
5
6
  export interface IAccordionProps {
@@ -6,7 +6,7 @@ export interface IFilterItem {
6
6
  header: string;
7
7
  items: Components.ICheckboxGroupItem[];
8
8
  multi?: boolean;
9
- onFilter?: (value: string | string[]) => void;
9
+ onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
10
10
  }
11
11
  /**
12
12
  * Properties
@@ -14,7 +14,7 @@ export interface IFilterItem {
14
14
  export interface IFilterProps {
15
15
  filters: IFilterItem[];
16
16
  onClear?: () => void;
17
- onFilter?: (value: string | string[]) => void;
17
+ onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
18
18
  onRendered?: (el: HTMLElement) => void;
19
19
  }
20
20
  /**
@@ -93,14 +93,14 @@ var FilterSlideout = /** @class */ (function () {
93
93
  values.push(items[i].label);
94
94
  }
95
95
  // Execute the event
96
- filter.onFilter ? filter.onFilter(values) : null;
97
- _this._onFilter ? _this._onFilter(values) : null;
96
+ filter.onFilter ? filter.onFilter(values, item) : null;
97
+ _this._onFilter ? _this._onFilter(values, item) : null;
98
98
  }
99
99
  else {
100
100
  var item_1 = value;
101
101
  // Execute the event
102
- filter.onFilter ? filter.onFilter(item_1 ? item_1.label : "") : null;
103
- _this._onFilter ? _this._onFilter(item_1 ? item_1.label : "") : null;
102
+ filter.onFilter ? filter.onFilter(item_1 ? item_1.label : "", item_1) : null;
103
+ _this._onFilter ? _this._onFilter(item_1 ? item_1.label : "", item_1) : null;
104
104
  }
105
105
  }
106
106
  }));
@@ -119,10 +119,10 @@ var Dashboard = /** @class */ (function () {
119
119
  filters: this._props.filters ? this._props.filters.items : [],
120
120
  onClear: this._props.filters ? this._props.filters.onClear : null,
121
121
  onRendered: this._props.filters ? this._props.filters.onRendered : null,
122
- onFilter: this.IsAccordion ? function (value) {
123
- _this._accordion.filter(value);
124
- } : (this.IsTiles ? function (value) {
125
- _this._tiles.filter(value);
122
+ onFilter: this.IsAccordion ? function (value, item) {
123
+ _this._accordion.filter(value, item);
124
+ } : (this.IsTiles ? function (value, item) {
125
+ _this._tiles.filter(value, item);
126
126
  } : null)
127
127
  });
128
128
  // Render the template
@@ -1,6 +1,6 @@
1
1
  import { Components } from "gd-sprest-bs";
2
2
  export interface ITiles {
3
- filter?: (string: any) => void;
3
+ filter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
4
4
  search?: (value: string) => void;
5
5
  }
6
6
  export interface ITilesProps {