dattatable 2.10.32 → 2.10.34
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/common/itemForm.d.ts +1 -0
- package/build/common/itemForm.js +10 -0
- package/build/dashboard/filter.d.ts +2 -0
- package/build/dashboard/filter.js +3 -0
- package/build/dashboard/index.d.ts +1 -0
- package/build/dashboard/index.js +1 -0
- package/dist/dattatable.js +580 -580
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +3 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +3 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +3 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ export interface IItemFormTab {
|
|
|
5
5
|
title: string;
|
|
6
6
|
fields?: string[];
|
|
7
7
|
excludeFields?: string[];
|
|
8
|
+
onCreateForm: (props: Components.IListFormDisplayProps | Components.IListFormEditProps) => Components.IListFormDisplayProps | Components.IListFormEditProps;
|
|
8
9
|
onFormRendered?: (form?: Components.IListFormDisplay | Components.IListFormEdit) => void;
|
|
9
10
|
onRendered?: (el?: HTMLElement, item?: Components.IListGroupItem) => void;
|
|
10
11
|
onRendering?: (item?: Components.IListGroupItem) => object;
|
package/build/common/itemForm.js
CHANGED
|
@@ -232,6 +232,11 @@ var ItemForm = /** @class */ (function () {
|
|
|
232
232
|
info: this._info,
|
|
233
233
|
rowClassName: "mb-3"
|
|
234
234
|
};
|
|
235
|
+
// See if we are rendering a tab
|
|
236
|
+
if (tab && tab.onCreateForm) {
|
|
237
|
+
// Call the event
|
|
238
|
+
props = tab.onCreateForm(props);
|
|
239
|
+
}
|
|
235
240
|
// Call the event if it exists
|
|
236
241
|
props = this._onCreateViewForm ? this._onCreateViewForm(props) : props;
|
|
237
242
|
// Override the form rendered event
|
|
@@ -265,6 +270,11 @@ var ItemForm = /** @class */ (function () {
|
|
|
265
270
|
rowClassName: "mb-3",
|
|
266
271
|
controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit
|
|
267
272
|
};
|
|
273
|
+
// See if we are rendering a tab
|
|
274
|
+
if (tab && tab.onCreateForm) {
|
|
275
|
+
// Call the event
|
|
276
|
+
props = tab.onCreateForm(props);
|
|
277
|
+
}
|
|
268
278
|
// Call the event if it exists
|
|
269
279
|
props = this._onCreateEditForm ? this._onCreateEditForm(props) : props;
|
|
270
280
|
// Override the form rendered event
|
|
@@ -17,6 +17,7 @@ export interface IFilterProps {
|
|
|
17
17
|
onClear?: () => void;
|
|
18
18
|
onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
|
|
19
19
|
onRendered?: (el: HTMLElement) => void;
|
|
20
|
+
onShowFilter?: () => void;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Filter Slideout
|
|
@@ -28,6 +29,7 @@ export declare class FilterSlideout {
|
|
|
28
29
|
private _items;
|
|
29
30
|
private _onClear;
|
|
30
31
|
private _onFilter;
|
|
32
|
+
private _onShowFilter;
|
|
31
33
|
constructor(props: IFilterProps);
|
|
32
34
|
private generateFilters;
|
|
33
35
|
private generateItem;
|
|
@@ -17,6 +17,7 @@ var FilterSlideout = /** @class */ (function () {
|
|
|
17
17
|
this._filters = props.filters || [];
|
|
18
18
|
this._onClear = props.onClear;
|
|
19
19
|
this._onFilter = props.onFilter;
|
|
20
|
+
this._onShowFilter = props.onShowFilter;
|
|
20
21
|
// Initialize the variables
|
|
21
22
|
this._cbs = [];
|
|
22
23
|
this._items = [];
|
|
@@ -152,6 +153,8 @@ var FilterSlideout = /** @class */ (function () {
|
|
|
152
153
|
// Set the header and body
|
|
153
154
|
canvas_1.CanvasForm.setHeader('<h5 class="m-0">Filters</h5>');
|
|
154
155
|
canvas_1.CanvasForm.setBody(this._el || "<p>Loading the Filters...</p>");
|
|
156
|
+
// Call the event
|
|
157
|
+
this._onShowFilter ? this._onShowFilter() : null;
|
|
155
158
|
// Show the filters
|
|
156
159
|
canvas_1.CanvasForm.show();
|
|
157
160
|
};
|
package/build/dashboard/index.js
CHANGED
|
@@ -119,6 +119,7 @@ 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
|
+
onShowFilter: this._props.filters ? this._props.filters.onShowFilter : null,
|
|
122
123
|
onFilter: this.IsAccordion || this.IsTiles ? function (value, item) {
|
|
123
124
|
var values = typeof (value) === "string" ? [value] : value;
|
|
124
125
|
// See if this is an accordion
|