dattatable 2.2.0 → 2.2.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 (42) hide show
  1. package/build/dashboard/filter.d.ts +1 -0
  2. package/build/dashboard/filter.js +12 -7
  3. package/build/dashboard/index.d.ts +1 -0
  4. package/build/dashboard/index.js +5 -0
  5. package/dist/dattatable.js +433 -433
  6. package/dist/dattatable.min.js +1 -1
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/CanvasForm.html +17 -17
  9. package/docs/classes/Comments.html +12 -12
  10. package/docs/classes/Dashboard.html +27 -17
  11. package/docs/classes/DataTable.html +11 -11
  12. package/docs/classes/Documents.html +45 -45
  13. package/docs/classes/FilterSlideout.html +24 -14
  14. package/docs/classes/Footer.html +4 -4
  15. package/docs/classes/Header.html +4 -4
  16. package/docs/classes/InstallationRequired.html +12 -12
  17. package/docs/classes/ItemForm.html +47 -47
  18. package/docs/classes/LoadingDialog.html +12 -12
  19. package/docs/classes/Modal.html +26 -26
  20. package/docs/classes/Navigation.html +4 -4
  21. package/docs/enums/ActionButtonTypes.html +6 -6
  22. package/docs/functions/formatBytes.html +1 -1
  23. package/docs/functions/formatDateValue.html +1 -1
  24. package/docs/functions/formatTimeValue.html +1 -1
  25. package/docs/functions/getFileExt.html +1 -1
  26. package/docs/interfaces/ICommentsItem.html +6 -6
  27. package/docs/interfaces/IDashboardProps.html +14 -14
  28. package/docs/interfaces/IDataTable.html +7 -7
  29. package/docs/interfaces/IDataTableProps.html +6 -6
  30. package/docs/interfaces/IDocumentsProps.html +25 -25
  31. package/docs/interfaces/IFilterItem.html +5 -5
  32. package/docs/interfaces/IFilterProps.html +4 -4
  33. package/docs/interfaces/IFooterProps.html +6 -6
  34. package/docs/interfaces/IHeaderProps.html +5 -5
  35. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  36. package/docs/interfaces/IItemFormEditProps.html +15 -15
  37. package/docs/interfaces/IItemFormTab.html +6 -6
  38. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  39. package/docs/interfaces/IItemFormViewProps.html +12 -12
  40. package/docs/interfaces/IShowDialogProps.html +5 -5
  41. package/package.json +2 -2
  42. package/pnpm-lock.yaml +7 -7
@@ -28,6 +28,7 @@ export declare class FilterSlideout {
28
28
  constructor(props: IFilterProps);
29
29
  private generateFilters;
30
30
  private generateItem;
31
+ clear(): void;
31
32
  getFilter(key: string): Components.ICheckboxGroup;
32
33
  setFilterValue(key: string, value: string | string[]): void;
33
34
  hide(): void;
@@ -35,13 +35,8 @@ var FilterSlideout = /** @class */ (function () {
35
35
  text: "Clear Filters",
36
36
  type: gd_sprest_bs_1.Components.ButtonTypes.OutlineDanger,
37
37
  onClick: function () {
38
- // Parse the filters
39
- for (var i = 0; i < _this._cbs.length; i++) {
40
- // Clear the filter
41
- _this._cbs[i].setValue("");
42
- }
43
- // Execute the event
44
- _this._onClear ? _this._onClear() : null;
38
+ // Clear the filters
39
+ _this.clear();
45
40
  }
46
41
  });
47
42
  // Parse the filters
@@ -96,6 +91,16 @@ var FilterSlideout = /** @class */ (function () {
96
91
  // Return the item
97
92
  return item;
98
93
  };
94
+ // Clears the filters
95
+ FilterSlideout.prototype.clear = function () {
96
+ // Parse the filters
97
+ for (var i = 0; i < this._cbs.length; i++) {
98
+ // Clear the filter
99
+ this._cbs[i].setValue("");
100
+ }
101
+ // Execute the event
102
+ this._onClear ? this._onClear() : null;
103
+ };
99
104
  // Gets a checkbox group by its name
100
105
  FilterSlideout.prototype.getFilter = function (key) {
101
106
  // Parse the items
@@ -72,6 +72,7 @@ export declare class Dashboard {
72
72
  /**
73
73
  * Public Interface
74
74
  */
75
+ clearFilter(): void;
75
76
  filter(idx: number, value?: string): void;
76
77
  filterMulti(idx: number, values?: string[]): void;
77
78
  getFilter(key: string): Components.ICheckboxGroup;
@@ -199,6 +199,11 @@ var Dashboard = /** @class */ (function () {
199
199
  /**
200
200
  * Public Interface
201
201
  */
202
+ // Clears the filters
203
+ Dashboard.prototype.clearFilter = function () {
204
+ // Clear the filters
205
+ this._filters.clear();
206
+ };
202
207
  // Filter the table
203
208
  Dashboard.prototype.filter = function (idx, value) {
204
209
  // Filter the table