dattatable 2.1.8 → 2.2.0
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.js +5 -0
- package/build/dashboard/index.js +2 -7
- package/dist/dattatable.js +436 -436
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/CanvasForm.html +17 -17
- package/docs/classes/Comments.html +12 -12
- package/docs/classes/Dashboard.html +14 -14
- package/docs/classes/DataTable.html +11 -11
- package/docs/classes/Documents.html +45 -45
- package/docs/classes/FilterSlideout.html +13 -13
- 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
|
@@ -35,6 +35,11 @@ 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
|
+
}
|
|
38
43
|
// Execute the event
|
|
39
44
|
_this._onClear ? _this._onClear() : null;
|
|
40
45
|
}
|
package/build/dashboard/index.js
CHANGED
|
@@ -56,13 +56,8 @@ var Dashboard = /** @class */ (function () {
|
|
|
56
56
|
// Create the filters
|
|
57
57
|
this._filters = new filter_1.FilterSlideout({
|
|
58
58
|
filters: this._props.filters ? this._props.filters.items : [],
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
// Clear the filters
|
|
62
|
-
_this._dt.datatable.columns().search('').draw();
|
|
63
|
-
// Call the event
|
|
64
|
-
_this._props.filters ? _this._props.filters.onClear : null;
|
|
65
|
-
}
|
|
59
|
+
onClear: this._props.filters ? this._props.filters.onClear : null,
|
|
60
|
+
onRendered: this._props.filters ? this._props.filters.onRendered : null
|
|
66
61
|
});
|
|
67
62
|
// Render the template
|
|
68
63
|
var elTemplate = document.createElement("div");
|