dattatable 2.11.13 → 2.11.15
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 +8 -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
|
@@ -126,10 +126,6 @@ var Tiles = /** @class */ (function () {
|
|
|
126
126
|
data: item,
|
|
127
127
|
subTitle: subTitleContent,
|
|
128
128
|
title: titleContent,
|
|
129
|
-
onClick: function (card, ev) {
|
|
130
|
-
// Call the event
|
|
131
|
-
_this._props.onClick ? _this._props.onClick(ev.currentTarget, card) : null;
|
|
132
|
-
},
|
|
133
129
|
onRender: function (el, card) {
|
|
134
130
|
var item = card.data;
|
|
135
131
|
// Call the events
|
|
@@ -137,7 +133,11 @@ var Tiles = /** @class */ (function () {
|
|
|
137
133
|
_this._props.onSubTitleRendered ? _this._props.onSubTitleRendered(el.querySelector(".card-subtitle"), item) : null;
|
|
138
134
|
_this._props.onBodyRendered ? _this._props.onBodyRendered(el, item) : null;
|
|
139
135
|
}
|
|
140
|
-
}]
|
|
136
|
+
}],
|
|
137
|
+
onClick: function (card, ev) {
|
|
138
|
+
// Call the event
|
|
139
|
+
_this._props.onClick ? _this._props.onClick(ev.currentTarget, card) : null;
|
|
140
|
+
}
|
|
141
141
|
};
|
|
142
142
|
// See if we are showing the header
|
|
143
143
|
var showHeader = typeof (this._props.showHeader) === "boolean" ? this._props.showHeader : true;
|
|
@@ -201,8 +201,6 @@ var Tiles = /** @class */ (function () {
|
|
|
201
201
|
// Updates the visibility of the tiles
|
|
202
202
|
Tiles.prototype.updateTiles = function () {
|
|
203
203
|
var _this = this;
|
|
204
|
-
var paginationLimit = this._props.paginationLimit || 10;
|
|
205
|
-
var showPagination = typeof (this._props.showPagination) === "boolean" ? this._props.showPagination : true;
|
|
206
204
|
// Get the pagination element
|
|
207
205
|
var elPagination = this._props.el.querySelector(".tiles-pagination");
|
|
208
206
|
if (elPagination) {
|
|
@@ -268,6 +266,9 @@ var Tiles = /** @class */ (function () {
|
|
|
268
266
|
}
|
|
269
267
|
}
|
|
270
268
|
}
|
|
269
|
+
// Set the pagination limit
|
|
270
|
+
var showPagination = typeof (this._props.showPagination) === "boolean" ? this._props.showPagination : true;
|
|
271
|
+
var paginationLimit = showPagination ? this._props.paginationLimit || 10 : elItems.length;
|
|
271
272
|
// Parse the active items to show
|
|
272
273
|
for (var i = 0; i < paginationLimit; i++) {
|
|
273
274
|
var elItem = elItems[i];
|