@iankibetsh/shframework 5.1.1 → 5.1.2
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/dist/library.js +10 -4
- package/dist/library.mjs +10 -4
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -5213,11 +5213,11 @@ const _hoisted_70 = { key: 0 };
|
|
|
5213
5213
|
|
|
5214
5214
|
const __default__ = {
|
|
5215
5215
|
name: 'sh-table',
|
|
5216
|
-
props: ['endPoint', 'headers','disableMobileResponsive', 'cacheKey', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange','selectedRange','noRecordsMessage'],
|
|
5216
|
+
props: ['endPoint','orderBy','orderMethod', 'headers','disableMobileResponsive', 'cacheKey', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange','selectedRange','noRecordsMessage'],
|
|
5217
5217
|
data(){
|
|
5218
5218
|
return {
|
|
5219
|
-
order_by:
|
|
5220
|
-
order_method:
|
|
5219
|
+
order_by: this.orderBy,
|
|
5220
|
+
order_method: this.orderMethod,
|
|
5221
5221
|
per_page: this.pageCount ?? shRepo.getShConfig('tablePerPage', 10),
|
|
5222
5222
|
page: 1,
|
|
5223
5223
|
exactMatch: false,
|
|
@@ -5427,7 +5427,7 @@ const __default__ = {
|
|
|
5427
5427
|
} else if (!append) {
|
|
5428
5428
|
this.loading = 'loading';
|
|
5429
5429
|
}
|
|
5430
|
-
|
|
5430
|
+
let data = {
|
|
5431
5431
|
order_by: this.order_by,
|
|
5432
5432
|
order_method: this.order_method,
|
|
5433
5433
|
per_page: this.per_page,
|
|
@@ -5439,6 +5439,12 @@ const __default__ = {
|
|
|
5439
5439
|
period: this.period,
|
|
5440
5440
|
exact: this.exactMatch
|
|
5441
5441
|
};
|
|
5442
|
+
// remove empty values
|
|
5443
|
+
Object.keys(data).forEach(key => {
|
|
5444
|
+
if (data[key] === null || data[key] === '') {
|
|
5445
|
+
delete data[key];
|
|
5446
|
+
}
|
|
5447
|
+
});
|
|
5442
5448
|
if (this.pagination_data) {
|
|
5443
5449
|
this.pagination_data.loading = 1;
|
|
5444
5450
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -5201,11 +5201,11 @@ const _hoisted_70 = { key: 0 };
|
|
|
5201
5201
|
|
|
5202
5202
|
const __default__ = {
|
|
5203
5203
|
name: 'sh-table',
|
|
5204
|
-
props: ['endPoint', 'headers','disableMobileResponsive', 'cacheKey', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange','selectedRange','noRecordsMessage'],
|
|
5204
|
+
props: ['endPoint','orderBy','orderMethod', 'headers','disableMobileResponsive', 'cacheKey', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange','selectedRange','noRecordsMessage'],
|
|
5205
5205
|
data(){
|
|
5206
5206
|
return {
|
|
5207
|
-
order_by:
|
|
5208
|
-
order_method:
|
|
5207
|
+
order_by: this.orderBy,
|
|
5208
|
+
order_method: this.orderMethod,
|
|
5209
5209
|
per_page: this.pageCount ?? shRepo.getShConfig('tablePerPage', 10),
|
|
5210
5210
|
page: 1,
|
|
5211
5211
|
exactMatch: false,
|
|
@@ -5415,7 +5415,7 @@ const __default__ = {
|
|
|
5415
5415
|
} else if (!append) {
|
|
5416
5416
|
this.loading = 'loading';
|
|
5417
5417
|
}
|
|
5418
|
-
|
|
5418
|
+
let data = {
|
|
5419
5419
|
order_by: this.order_by,
|
|
5420
5420
|
order_method: this.order_method,
|
|
5421
5421
|
per_page: this.per_page,
|
|
@@ -5427,6 +5427,12 @@ const __default__ = {
|
|
|
5427
5427
|
period: this.period,
|
|
5428
5428
|
exact: this.exactMatch
|
|
5429
5429
|
};
|
|
5430
|
+
// remove empty values
|
|
5431
|
+
Object.keys(data).forEach(key => {
|
|
5432
|
+
if (data[key] === null || data[key] === '') {
|
|
5433
|
+
delete data[key];
|
|
5434
|
+
}
|
|
5435
|
+
});
|
|
5430
5436
|
if (this.pagination_data) {
|
|
5431
5437
|
this.pagination_data.loading = 1;
|
|
5432
5438
|
}
|