dattatable 2.9.55 → 2.9.57
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 +12 -12
- package/dist/dattatable.js +575 -575
- 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/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 +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +7 -7
package/build/dashboard/tiles.js
CHANGED
|
@@ -21,12 +21,11 @@ var Tiles = /** @class */ (function () {
|
|
|
21
21
|
Tiles.prototype.filter = function (value) {
|
|
22
22
|
var className = value ? value.toLowerCase().replace(/ /g, "-") : null;
|
|
23
23
|
this._activeFilterClass = className;
|
|
24
|
-
// Parse all tile
|
|
25
|
-
var
|
|
26
|
-
for (var i = 0; i <
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
elItem.classList.add("d-none");
|
|
24
|
+
// Parse all tile
|
|
25
|
+
var tiles = this._props.el.querySelectorAll(".card");
|
|
26
|
+
for (var i = 0; i < tiles.length; i++) {
|
|
27
|
+
// Hide the tile
|
|
28
|
+
tiles[i].parentElement.classList.add("d-none");
|
|
30
29
|
}
|
|
31
30
|
// Update the tiles
|
|
32
31
|
this.updateTiles();
|
|
@@ -82,7 +81,8 @@ var Tiles = /** @class */ (function () {
|
|
|
82
81
|
// Render the tiles
|
|
83
82
|
this._tiles = gd_sprest_bs_1.Components.CardGroup({
|
|
84
83
|
el: this._props.el,
|
|
85
|
-
cards: cards
|
|
84
|
+
cards: cards,
|
|
85
|
+
colSize: this._props.colSize
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
// Updates the visibility of the tiles
|
|
@@ -112,7 +112,7 @@ var Tiles = /** @class */ (function () {
|
|
|
112
112
|
// See if the item doesn't contains the search value
|
|
113
113
|
if (elItem.innerText.toLowerCase().indexOf(this._activeSearchFilter) < 0) {
|
|
114
114
|
// Hide the item
|
|
115
|
-
elItem.classList.add("d-none");
|
|
115
|
+
elItem.parentElement.classList.add("d-none");
|
|
116
116
|
// Exclude the item from the array
|
|
117
117
|
elItems.splice(i, 1);
|
|
118
118
|
}
|
|
@@ -124,7 +124,7 @@ var Tiles = /** @class */ (function () {
|
|
|
124
124
|
// Ensure the item exists
|
|
125
125
|
if (elItem) {
|
|
126
126
|
// Show the item
|
|
127
|
-
elItem.classList.remove("d-none");
|
|
127
|
+
elItem.parentElement.classList.remove("d-none");
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
130
|
// Break from the loop
|
|
@@ -135,7 +135,7 @@ var Tiles = /** @class */ (function () {
|
|
|
135
135
|
for (var i = paginationLimit; i < elItems.length; i++) {
|
|
136
136
|
var elItem = elItems[i];
|
|
137
137
|
// Hide the item
|
|
138
|
-
elItem.classList.add("d-none");
|
|
138
|
+
elItem.parentElement.classList.add("d-none");
|
|
139
139
|
}
|
|
140
140
|
// Render the pagination
|
|
141
141
|
this._pagination = gd_sprest_bs_1.Components.Pagination({
|
|
@@ -147,14 +147,14 @@ var Tiles = /** @class */ (function () {
|
|
|
147
147
|
for (var i = 0; i < elItems.length; i++) {
|
|
148
148
|
var elItem = elItems[i];
|
|
149
149
|
// Hide the item
|
|
150
|
-
elItem.classList.add("d-none");
|
|
150
|
+
elItem.parentElement.classList.add("d-none");
|
|
151
151
|
}
|
|
152
152
|
// Parse the items to show
|
|
153
153
|
var startIdx = (pageNumber - 1) * paginationLimit;
|
|
154
154
|
for (var i = startIdx; i < startIdx + paginationLimit && i < elItems.length; i++) {
|
|
155
155
|
var elItem = elItems[i];
|
|
156
156
|
// Show the item
|
|
157
|
-
elItem.classList.remove("d-none");
|
|
157
|
+
elItem.parentElement.classList.remove("d-none");
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
});
|