dattatable 2.9.57 → 2.9.59
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/accordion.d.ts +1 -0
- package/build/dashboard/accordion.js +2 -0
- package/build/dashboard/index.d.ts +2 -0
- package/build/dashboard/tiles.d.ts +1 -0
- package/build/dashboard/tiles.js +4 -2
- package/dist/dattatable.js +457 -457
- 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/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 +3 -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 +2 -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 +2 -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 +3 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +10 -10
|
@@ -9,6 +9,7 @@ export interface IAccordionProps {
|
|
|
9
9
|
items: any[];
|
|
10
10
|
onItemClick?: (el?: HTMLElement, item?: any) => void;
|
|
11
11
|
onItemRender?: (el?: HTMLElement, item?: any) => void;
|
|
12
|
+
onPaginationRender?: (el?: HTMLElement) => void;
|
|
12
13
|
paginationLimit?: number;
|
|
13
14
|
titleField?: string;
|
|
14
15
|
}
|
|
@@ -205,6 +205,8 @@ var Accordion = /** @class */ (function () {
|
|
|
205
205
|
elItems[lastIdx < elItems.length ? lastIdx : elItems.length - 1].classList.add("last-item");
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
+
// Call the event
|
|
209
|
+
this._props.onPaginationRender ? this._props.onPaginationRender(elPagination) : null;
|
|
208
210
|
};
|
|
209
211
|
// Searches the accordion
|
|
210
212
|
Accordion.prototype.search = function (value) {
|
|
@@ -16,6 +16,7 @@ export interface IDashboardProps {
|
|
|
16
16
|
items: any[];
|
|
17
17
|
onItemClick?: (el?: HTMLElement, item?: any) => void;
|
|
18
18
|
onItemRender?: (el?: HTMLElement, item?: any) => void;
|
|
19
|
+
onPaginationRender?: (el?: HTMLElement) => void;
|
|
19
20
|
paginationLimit?: number;
|
|
20
21
|
titleField?: string;
|
|
21
22
|
};
|
|
@@ -78,6 +79,7 @@ export interface IDashboardProps {
|
|
|
78
79
|
items: any[];
|
|
79
80
|
onBodyRender?: (el?: HTMLElement, item?: any) => void;
|
|
80
81
|
onCardRender?: (el?: HTMLElement, item?: any) => void;
|
|
82
|
+
onPaginationRender?: (el?: HTMLElement) => void;
|
|
81
83
|
onSubTitleRender?: (el?: HTMLElement, item?: any) => void;
|
|
82
84
|
onTitleRender?: (el?: HTMLElement, item?: any) => void;
|
|
83
85
|
paginationLimit?: number;
|
|
@@ -10,6 +10,7 @@ export interface ITilesProps {
|
|
|
10
10
|
items: any[];
|
|
11
11
|
onBodyRender?: (el?: HTMLElement, item?: any) => void;
|
|
12
12
|
onCardRender?: (el?: HTMLElement, item?: any) => void;
|
|
13
|
+
onPaginationRender?: (el?: HTMLElement) => void;
|
|
13
14
|
onSubTitleRender?: (el?: HTMLElement, item?: any) => void;
|
|
14
15
|
onTitleRender?: (el?: HTMLElement, item?: any) => void;
|
|
15
16
|
paginationLimit?: number;
|
package/build/dashboard/tiles.js
CHANGED
|
@@ -62,6 +62,7 @@ var Tiles = /** @class */ (function () {
|
|
|
62
62
|
// Add an tile
|
|
63
63
|
cards.push({
|
|
64
64
|
className: itemClassNames.join(" "),
|
|
65
|
+
onRender: this._props.onCardRender,
|
|
65
66
|
body: [{
|
|
66
67
|
content: (this._props.bodyField ? item[this._props.bodyField || "Description"] : null) || "",
|
|
67
68
|
data: item,
|
|
@@ -72,8 +73,7 @@ var Tiles = /** @class */ (function () {
|
|
|
72
73
|
// Call the events
|
|
73
74
|
_this._props.onTitleRender ? _this._props.onTitleRender(el.querySelector(".card-title"), item) : null;
|
|
74
75
|
_this._props.onSubTitleRender ? _this._props.onSubTitleRender(el.querySelector(".card-subtitle"), item) : null;
|
|
75
|
-
_this._props.onBodyRender ? _this._props.onBodyRender(el
|
|
76
|
-
_this._props.onCardRender ? _this._props.onCardRender(el.querySelector(".card-body"), item) : null;
|
|
76
|
+
_this._props.onBodyRender ? _this._props.onBodyRender(el, item) : null;
|
|
77
77
|
}
|
|
78
78
|
}]
|
|
79
79
|
});
|
|
@@ -158,6 +158,8 @@ var Tiles = /** @class */ (function () {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
+
// Call the event
|
|
162
|
+
this._props.onPaginationRender ? this._props.onPaginationRender(elPagination) : null;
|
|
161
163
|
};
|
|
162
164
|
// Searches the tile
|
|
163
165
|
Tiles.prototype.search = function (value) {
|