dattatable 2.11.10 → 2.11.12
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/index.d.ts +1 -0
- package/build/dashboard/tiles.d.ts +1 -0
- package/build/dashboard/tiles.js +10 -8
- package/dist/dattatable.js +880 -836
- 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 +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 +13 -13
- 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 +3 -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
|
@@ -103,6 +103,7 @@ export interface IDashboardProps {
|
|
|
103
103
|
onHeaderRendered?: (el?: HTMLElement, item?: any) => void;
|
|
104
104
|
onPaginationClick?: (pageNumber?: number) => void;
|
|
105
105
|
onPaginationRendered?: (el?: HTMLElement) => void;
|
|
106
|
+
onRendered?: (el?: HTMLElement) => void;
|
|
106
107
|
onSubTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
107
108
|
onTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
108
109
|
paginationLimit?: number;
|
|
@@ -22,6 +22,7 @@ export interface ITilesProps {
|
|
|
22
22
|
onHeaderRendered?: (el?: HTMLElement, item?: any) => void;
|
|
23
23
|
onPaginationClick?: (pageNumber?: number) => void;
|
|
24
24
|
onPaginationRendered?: (el?: HTMLElement) => void;
|
|
25
|
+
onRendered?: (el?: HTMLElement) => void;
|
|
25
26
|
onSubTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
26
27
|
onTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
27
28
|
paginationLimit?: number;
|
package/build/dashboard/tiles.js
CHANGED
|
@@ -17,6 +17,8 @@ var Tiles = /** @class */ (function () {
|
|
|
17
17
|
this._props = props;
|
|
18
18
|
// Render the tile
|
|
19
19
|
this.render(this._props.items);
|
|
20
|
+
// Call the event
|
|
21
|
+
this._props.onRendered ? this._props.onRendered(this._props.el) : null;
|
|
20
22
|
}
|
|
21
23
|
// Filters the tile
|
|
22
24
|
Tiles.prototype.filter = function (values, useAndOperator) {
|
|
@@ -197,6 +199,7 @@ var Tiles = /** @class */ (function () {
|
|
|
197
199
|
Tiles.prototype.updateTiles = function () {
|
|
198
200
|
var _this = this;
|
|
199
201
|
var paginationLimit = this._props.paginationLimit || 10;
|
|
202
|
+
var showPagination = typeof (this._props.showPagination) === "boolean" ? this._props.showPagination : true;
|
|
200
203
|
// Get the pagination element
|
|
201
204
|
var elPagination = this._props.el.querySelector(".tiles-pagination");
|
|
202
205
|
if (elPagination) {
|
|
@@ -275,15 +278,14 @@ var Tiles = /** @class */ (function () {
|
|
|
275
278
|
break;
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
|
-
//
|
|
279
|
-
for (var i = paginationLimit; i < elItems.length; i++) {
|
|
280
|
-
var elItem = elItems[i];
|
|
281
|
-
// Hide the item
|
|
282
|
-
elItem.parentElement.classList.add("d-none");
|
|
283
|
-
}
|
|
284
|
-
// See if we are showing pagination
|
|
285
|
-
var showPagination = typeof (this._props.showPagination) === "boolean" ? this._props.showPagination : true;
|
|
281
|
+
// Ensure we are showing the pagination
|
|
286
282
|
if (showPagination) {
|
|
283
|
+
// Parse the active items to hide
|
|
284
|
+
for (var i = paginationLimit; i < elItems.length; i++) {
|
|
285
|
+
var elItem = elItems[i];
|
|
286
|
+
// Hide the item
|
|
287
|
+
elItem.parentElement.classList.add("d-none");
|
|
288
|
+
}
|
|
287
289
|
// Render the pagination
|
|
288
290
|
this._pagination = gd_sprest_bs_1.Components.Pagination({
|
|
289
291
|
el: elPagination,
|