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.
- package/build/dashboard/filter.d.ts +1 -0
- package/build/dashboard/filter.js +12 -7
- package/build/dashboard/index.d.ts +1 -0
- package/build/dashboard/index.js +5 -0
- package/dist/dattatable.js +433 -433
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CanvasForm.html +17 -17
- package/docs/classes/Comments.html +12 -12
- package/docs/classes/Dashboard.html +27 -17
- package/docs/classes/DataTable.html +11 -11
- package/docs/classes/Documents.html +45 -45
- package/docs/classes/FilterSlideout.html +24 -14
- package/docs/classes/Footer.html +4 -4
- package/docs/classes/Header.html +4 -4
- package/docs/classes/InstallationRequired.html +12 -12
- package/docs/classes/ItemForm.html +47 -47
- package/docs/classes/LoadingDialog.html +12 -12
- package/docs/classes/Modal.html +26 -26
- package/docs/classes/Navigation.html +4 -4
- package/docs/enums/ActionButtonTypes.html +6 -6
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/interfaces/ICommentsItem.html +6 -6
- package/docs/interfaces/IDashboardProps.html +14 -14
- package/docs/interfaces/IDataTable.html +7 -7
- package/docs/interfaces/IDataTableProps.html +6 -6
- package/docs/interfaces/IDocumentsProps.html +25 -25
- package/docs/interfaces/IFilterItem.html +5 -5
- package/docs/interfaces/IFilterProps.html +4 -4
- package/docs/interfaces/IFooterProps.html +6 -6
- package/docs/interfaces/IHeaderProps.html +5 -5
- package/docs/interfaces/IItemFormCreateProps.html +14 -14
- package/docs/interfaces/IItemFormEditProps.html +15 -15
- package/docs/interfaces/IItemFormTab.html +6 -6
- package/docs/interfaces/IItemFormTabInfo.html +3 -3
- package/docs/interfaces/IItemFormViewProps.html +12 -12
- package/docs/interfaces/IShowDialogProps.html +5 -5
- package/package.json +2 -2
- 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
|
-
//
|
|
39
|
-
|
|
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
|
package/build/dashboard/index.js
CHANGED
|
@@ -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
|