dattatable 2.2.0 → 2.2.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.
- 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/build/itemForm.d.ts +2 -1
- package/build/itemForm.js +6 -4
- 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 +17 -10
- 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
|
package/build/itemForm.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { CanvasForm, Modal } from "./common";
|
|
|
3
3
|
/** Tab */
|
|
4
4
|
export interface IItemFormTab {
|
|
5
5
|
title: string;
|
|
6
|
-
fields
|
|
6
|
+
fields?: string[];
|
|
7
|
+
excludeFields?: string[];
|
|
7
8
|
onFormRendered?: (form?: Components.IListFormDisplay | Components.IListFormEdit) => void;
|
|
8
9
|
onRendered?: (el?: HTMLElement, item?: Components.IListGroupItem) => void;
|
|
9
10
|
onRendering?: (item?: Components.IListGroupItem) => object;
|
package/build/itemForm.js
CHANGED
|
@@ -217,9 +217,10 @@ var ItemForm = /** @class */ (function () {
|
|
|
217
217
|
var props = {
|
|
218
218
|
el: el,
|
|
219
219
|
displayAttachments: displayAttachments,
|
|
220
|
+
excludeFields: tab ? tab.excludeFields : null,
|
|
221
|
+
includeFields: tab ? tab.fields : null,
|
|
220
222
|
info: this._info,
|
|
221
|
-
rowClassName: "mb-3"
|
|
222
|
-
includeFields: tab ? tab.fields : null
|
|
223
|
+
rowClassName: "mb-3"
|
|
223
224
|
};
|
|
224
225
|
// Call the event if it exists
|
|
225
226
|
props = this._onCreateViewForm ? this._onCreateViewForm(props) : props;
|
|
@@ -248,10 +249,11 @@ var ItemForm = /** @class */ (function () {
|
|
|
248
249
|
var props = {
|
|
249
250
|
el: el,
|
|
250
251
|
displayAttachments: displayAttachments,
|
|
252
|
+
excludeFields: tab ? tab.excludeFields : null,
|
|
253
|
+
includeFields: tab ? tab.fields : null,
|
|
251
254
|
info: this._info,
|
|
252
255
|
rowClassName: "mb-3",
|
|
253
|
-
controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit
|
|
254
|
-
includeFields: tab ? tab.fields : null
|
|
256
|
+
controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit
|
|
255
257
|
};
|
|
256
258
|
// Call the event if it exists
|
|
257
259
|
props = this._onCreateEditForm ? this._onCreateEditForm(props) : props;
|