dattatable 2.11.12 → 2.11.14
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/tiles.js +10 -7
- package/dist/dattatable.js +578 -578
- package/dist/dattatable.min.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 +2 -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/ListConfig.html +2 -2
- 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/ICreateLookupData.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 +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.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 +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.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/ILookupData.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/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
package/build/dashboard/tiles.js
CHANGED
|
@@ -8,6 +8,7 @@ var gd_sprest_bs_1 = require("gd-sprest-bs");
|
|
|
8
8
|
var Tiles = /** @class */ (function () {
|
|
9
9
|
// Constructor
|
|
10
10
|
function Tiles(props) {
|
|
11
|
+
var _this = this;
|
|
11
12
|
this._tiles = null;
|
|
12
13
|
this._activeFilterValue = null;
|
|
13
14
|
this._activeSearchValue = null;
|
|
@@ -17,8 +18,10 @@ var Tiles = /** @class */ (function () {
|
|
|
17
18
|
this._props = props;
|
|
18
19
|
// Render the tile
|
|
19
20
|
this.render(this._props.items);
|
|
20
|
-
// Call the event
|
|
21
|
-
|
|
21
|
+
// Call the rendered event in a separate thread to ensure the dashboard object is created
|
|
22
|
+
setTimeout(function () {
|
|
23
|
+
_this._props.onRendered ? _this._props.onRendered(_this._props.el) : null;
|
|
24
|
+
}, 50);
|
|
22
25
|
}
|
|
23
26
|
// Filters the tile
|
|
24
27
|
Tiles.prototype.filter = function (values, useAndOperator) {
|
|
@@ -123,10 +126,6 @@ var Tiles = /** @class */ (function () {
|
|
|
123
126
|
data: item,
|
|
124
127
|
subTitle: subTitleContent,
|
|
125
128
|
title: titleContent,
|
|
126
|
-
onClick: function (card, ev) {
|
|
127
|
-
// Call the event
|
|
128
|
-
_this._props.onClick ? _this._props.onClick(ev.currentTarget, card) : null;
|
|
129
|
-
},
|
|
130
129
|
onRender: function (el, card) {
|
|
131
130
|
var item = card.data;
|
|
132
131
|
// Call the events
|
|
@@ -134,7 +133,11 @@ var Tiles = /** @class */ (function () {
|
|
|
134
133
|
_this._props.onSubTitleRendered ? _this._props.onSubTitleRendered(el.querySelector(".card-subtitle"), item) : null;
|
|
135
134
|
_this._props.onBodyRendered ? _this._props.onBodyRendered(el, item) : null;
|
|
136
135
|
}
|
|
137
|
-
}]
|
|
136
|
+
}],
|
|
137
|
+
onClick: function (card, ev) {
|
|
138
|
+
// Call the event
|
|
139
|
+
_this._props.onClick ? _this._props.onClick(ev.currentTarget, card) : null;
|
|
140
|
+
}
|
|
138
141
|
};
|
|
139
142
|
// See if we are showing the header
|
|
140
143
|
var showHeader = typeof (this._props.showHeader) === "boolean" ? this._props.showHeader : true;
|