dattatable 2.9.58 → 2.9.60
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 +8 -5
- package/build/dashboard/tiles.d.ts +9 -5
- package/build/dashboard/tiles.js +14 -8
- 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 +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 +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 +10 -7
- 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
|
@@ -77,11 +77,14 @@ export interface IDashboardProps {
|
|
|
77
77
|
colSize?: number;
|
|
78
78
|
filterField?: string;
|
|
79
79
|
items: any[];
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
onBodyRendered?: (el?: HTMLElement, item?: any) => void;
|
|
81
|
+
onCardRendered?: (el?: HTMLElement, item?: any) => void;
|
|
82
|
+
onCardRendering?: (item?: Components.ICardProps) => void;
|
|
83
|
+
onFooterRendered?: (el?: HTMLElement, item?: any) => void;
|
|
84
|
+
onHeaderRendered?: (el?: HTMLElement, item?: any) => void;
|
|
85
|
+
onPaginationRendered?: (el?: HTMLElement) => void;
|
|
86
|
+
onSubTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
87
|
+
onTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
85
88
|
paginationLimit?: number;
|
|
86
89
|
subTitleField?: string;
|
|
87
90
|
titleField?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Components } from "gd-sprest-bs";
|
|
1
2
|
export interface ITiles {
|
|
2
3
|
filter?: (string: any) => void;
|
|
3
4
|
search?: (value: string) => void;
|
|
@@ -8,11 +9,14 @@ export interface ITilesProps {
|
|
|
8
9
|
el: HTMLElement;
|
|
9
10
|
filterField?: string;
|
|
10
11
|
items: any[];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
onBodyRendered?: (el?: HTMLElement, item?: any) => void;
|
|
13
|
+
onCardRendered?: (el?: HTMLElement, item?: any) => void;
|
|
14
|
+
onCardRendering?: (item?: Components.ICardProps) => void;
|
|
15
|
+
onFooterRendered?: (el?: HTMLElement, item?: any) => void;
|
|
16
|
+
onHeaderRendered?: (el?: HTMLElement, item?: any) => void;
|
|
17
|
+
onPaginationRendered?: (el?: HTMLElement) => void;
|
|
18
|
+
onSubTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
19
|
+
onTitleRendered?: (el?: HTMLElement, item?: any) => void;
|
|
16
20
|
paginationLimit?: number;
|
|
17
21
|
subTitleField?: string;
|
|
18
22
|
titleField?: string;
|
package/build/dashboard/tiles.js
CHANGED
|
@@ -59,9 +59,12 @@ var Tiles = /** @class */ (function () {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
//
|
|
63
|
-
|
|
62
|
+
// Set the card props
|
|
63
|
+
var cardProps = {
|
|
64
64
|
className: itemClassNames.join(" "),
|
|
65
|
+
onRender: this._props.onCardRendered,
|
|
66
|
+
header: { onRender: this._props.onHeaderRendered },
|
|
67
|
+
footer: { onRender: this._props.onFooterRendered },
|
|
65
68
|
body: [{
|
|
66
69
|
content: (this._props.bodyField ? item[this._props.bodyField || "Description"] : null) || "",
|
|
67
70
|
data: item,
|
|
@@ -70,13 +73,16 @@ var Tiles = /** @class */ (function () {
|
|
|
70
73
|
onRender: function (el, card) {
|
|
71
74
|
var item = card.data;
|
|
72
75
|
// Call the events
|
|
73
|
-
_this._props.
|
|
74
|
-
_this._props.
|
|
75
|
-
_this._props.
|
|
76
|
-
_this._props.onCardRender ? _this._props.onCardRender(el, item) : null;
|
|
76
|
+
_this._props.onTitleRendered ? _this._props.onTitleRendered(el.querySelector(".card-title"), item) : null;
|
|
77
|
+
_this._props.onSubTitleRendered ? _this._props.onSubTitleRendered(el.querySelector(".card-subtitle"), item) : null;
|
|
78
|
+
_this._props.onBodyRendered ? _this._props.onBodyRendered(el, item) : null;
|
|
77
79
|
}
|
|
78
80
|
}]
|
|
79
|
-
}
|
|
81
|
+
};
|
|
82
|
+
// Call the event
|
|
83
|
+
this._props.onCardRendering ? this._props.onCardRendering(cardProps) : null;
|
|
84
|
+
// Add an tile
|
|
85
|
+
cards.push(cardProps);
|
|
80
86
|
}
|
|
81
87
|
// Render the tiles
|
|
82
88
|
this._tiles = gd_sprest_bs_1.Components.CardGroup({
|
|
@@ -159,7 +165,7 @@ var Tiles = /** @class */ (function () {
|
|
|
159
165
|
}
|
|
160
166
|
});
|
|
161
167
|
// Call the event
|
|
162
|
-
this._props.
|
|
168
|
+
this._props.onPaginationRendered ? this._props.onPaginationRendered(elPagination) : null;
|
|
163
169
|
};
|
|
164
170
|
// Searches the tile
|
|
165
171
|
Tiles.prototype.search = function (value) {
|