@wavemaker/app-runtime-wm-build 11.4.0-next.28152 → 11.4.0-next.28701
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.
- app-runtime-wm-build/package.json +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-libs.js +62 -33
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +3 -3
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +155 -51
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +10 -10
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +62 -33
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +3 -3
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +155 -51
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +23 -23
|
@@ -166188,6 +166188,11 @@ $.widget("wm.datatable", {
|
|
|
166188
166188
|
var self = this, preparedData, $tbody, pageStartIndex = self.getPageStartIndex(), startRowIndex = self.options.startRowIndex, isScrollorOnDemand = self.options.isNavTypeScrollOrOndemand();
|
|
166189
166189
|
if (isScrollorOnDemand) {
|
|
166190
166190
|
$tbody = this.gridElement;
|
|
166191
|
+
if (this.renderTableOnViewLess) {
|
|
166192
|
+
$tbody = this.gridElement.empty();
|
|
166193
|
+
this.hideLoadingIndicator();
|
|
166194
|
+
this.renderTableOnViewLess = false;
|
|
166195
|
+
}
|
|
166191
166196
|
} else {
|
|
166192
166197
|
$tbody = this.gridElement.empty();
|
|
166193
166198
|
}
|
|
@@ -166655,17 +166660,40 @@ $.widget("wm.datatable", {
|
|
|
166655
166660
|
}), 100);
|
|
166656
166661
|
}
|
|
166657
166662
|
},
|
|
166658
|
-
addLoadMoreBtn: function(onDemandMsg, loadingdatamsg, cb) {
|
|
166659
|
-
|
|
166663
|
+
addLoadMoreBtn: function(onDemandMsg, loadingdatamsg, cb, infScroll) {
|
|
166664
|
+
var $btnEl;
|
|
166665
|
+
if (!this.options.isLastPage || infScroll) {
|
|
166660
166666
|
var self = this;
|
|
166661
166667
|
var $parenEl = $('<div class="on-demand-datagrid"><a class="app-button btn btn-block on-demand-load-btn"></a></div>');
|
|
166662
|
-
|
|
166668
|
+
$btnEl = $parenEl.find("a");
|
|
166663
166669
|
$btnEl.append(onDemandMsg);
|
|
166664
166670
|
this.element.find(".app-grid-header-inner").append($parenEl);
|
|
166671
|
+
if (infScroll) {
|
|
166672
|
+
if (this.element.find(".on-demand-load-btn").length) {
|
|
166673
|
+
this.element.find(".on-demand-load-btn").text(this.options.viewlessmessage);
|
|
166674
|
+
}
|
|
166675
|
+
}
|
|
166665
166676
|
$btnEl.on("click", (function(e) {
|
|
166666
|
-
|
|
166667
|
-
|
|
166677
|
+
var lastPage = self.options.getCurrentPage() == self.options.getPageCount();
|
|
166678
|
+
if (!lastPage) {
|
|
166668
166679
|
self.showLoadingIndicator(loadingdatamsg, false);
|
|
166680
|
+
}
|
|
166681
|
+
if (!self.options.showviewlessbutton) {
|
|
166682
|
+
$btnEl.hide();
|
|
166683
|
+
}
|
|
166684
|
+
if (infScroll) {
|
|
166685
|
+
if (lastPage) {
|
|
166686
|
+
self.element.find(".on-demand-datagrid").remove();
|
|
166687
|
+
}
|
|
166688
|
+
}
|
|
166689
|
+
if (lastPage && self.options.showviewlessbutton) {
|
|
166690
|
+
$btnEl.hide();
|
|
166691
|
+
self.renderTableOnViewLess = true;
|
|
166692
|
+
self.renderPaginationOnViewLess = true;
|
|
166693
|
+
self.options.enableNavigation();
|
|
166694
|
+
self._renderGrid();
|
|
166695
|
+
}
|
|
166696
|
+
if (cb && typeof cb === "function") {
|
|
166669
166697
|
cb(e);
|
|
166670
166698
|
}
|
|
166671
166699
|
}));
|
|
@@ -166692,7 +166720,17 @@ $.widget("wm.datatable", {
|
|
|
166692
166720
|
hideLoadingIndicator: function(showLoadBtn, infScroll) {
|
|
166693
166721
|
if (!showLoadBtn && !infScroll) {
|
|
166694
166722
|
this.element.find(".loading-data-msg").hide();
|
|
166723
|
+
this.element.find(".on-demand-load-btn").text(this.options.ondemandmessage);
|
|
166695
166724
|
this.element.find(".on-demand-load-btn").show();
|
|
166725
|
+
} else if (this.options.getCurrentPage() == this.options.getPageCount() && this.options.showviewlessbutton) {
|
|
166726
|
+
this.element.find(".on-demand-load-btn").show().text(this.options.viewlessmessage);
|
|
166727
|
+
this.element.find(".loading-data-msg").hide();
|
|
166728
|
+
if (infScroll) {
|
|
166729
|
+
if (!this.element.find(".on-demand-load-btn").length) {
|
|
166730
|
+
this.options.addLoadMoreBtn();
|
|
166731
|
+
}
|
|
166732
|
+
this.element.find(".loading-data-msg").hide();
|
|
166733
|
+
}
|
|
166696
166734
|
} else {
|
|
166697
166735
|
this.element.find(".on-demand-datagrid").hide();
|
|
166698
166736
|
}
|
|
@@ -168228,7 +168266,9 @@ $.widget("wm.datatable", {
|
|
|
168228
168266
|
if (this.options.summaryRow) {
|
|
168229
168267
|
var $summaryRowHtm = $(this._getSummaryRowTemplate());
|
|
168230
168268
|
this.tableContainer.find("tfoot").remove();
|
|
168231
|
-
this.
|
|
168269
|
+
if (this.options.data.length) {
|
|
168270
|
+
this.tableContainer.append($summaryRowHtm);
|
|
168271
|
+
}
|
|
168232
168272
|
}
|
|
168233
168273
|
if (!this.options.data.length && this.dataStatus.state === "nodata") {
|
|
168234
168274
|
this.setStatus("nodata");
|
|
@@ -168238,7 +168278,7 @@ $.widget("wm.datatable", {
|
|
|
168238
168278
|
this.setStatus(this.dataStatus.state, this.dataStatus.message, isCreated);
|
|
168239
168279
|
}
|
|
168240
168280
|
this.gridBody = this.gridElement.find("tbody");
|
|
168241
|
-
this.gridFooter = this.
|
|
168281
|
+
this.gridFooter = this.tableContainer.find("tfoot");
|
|
168242
168282
|
this._findAndReplaceCompiledTemplates();
|
|
168243
168283
|
this.options.clearRowActions();
|
|
168244
168284
|
this._appendRowExpansionButtons($htm);
|
|
@@ -168298,6 +168338,9 @@ $.widget("wm.datatable", {
|
|
|
168298
168338
|
this._toggleSpacingClasses("condensed");
|
|
168299
168339
|
}
|
|
168300
168340
|
this._renderGrid(isCreated);
|
|
168341
|
+
this.addNavigationControls();
|
|
168342
|
+
},
|
|
168343
|
+
addNavigationControls: function() {
|
|
168301
168344
|
if (this.options.isdynamictable) {
|
|
168302
168345
|
this.element.find(".on-demand-datagrid").remove();
|
|
168303
168346
|
if (this.options.navigation === "On-Demand" && !this.element.find(".on-demand-datagrid").length) {
|
|
@@ -168318,7 +168361,7 @@ $.widget("wm.datatable", {
|
|
|
168318
168361
|
if (state === "ready") {
|
|
168319
168362
|
this.dataStatusContainer.hide();
|
|
168320
168363
|
} else {
|
|
168321
|
-
if (this.options.isNavTypeScrollOrOndemand() && (state === "nodata" || this.options.
|
|
168364
|
+
if (this.options.isNavTypeScrollOrOndemand() && (state === "nodata" || this.options.getCurrentPage() == this.options.getPageCount() && !this.options.showviewlessbutton)) {
|
|
168322
168365
|
this.element.find(".on-demand-datagrid a").hide();
|
|
168323
168366
|
}
|
|
168324
168367
|
this.dataStatusContainer.show();
|
|
@@ -217152,7 +217195,7 @@ window.requestAnimationFrame = function() {
|
|
|
217152
217195
|
})(window["ngx-bootstrap"]);
|
|
217153
217196
|
|
|
217154
217197
|
/*!
|
|
217155
|
-
* tabbable 6.2
|
|
217198
|
+
* tabbable 6.1.2
|
|
217156
217199
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
217157
217200
|
*/
|
|
217158
217201
|
(function(global, factory) {
|
|
@@ -217248,27 +217291,14 @@ window.requestAnimationFrame = function() {
|
|
|
217248
217291
|
}
|
|
217249
217292
|
return candidates;
|
|
217250
217293
|
};
|
|
217251
|
-
var
|
|
217252
|
-
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
217253
|
-
};
|
|
217254
|
-
var getTabIndex = function getTabIndex(node) {
|
|
217255
|
-
if (!node) {
|
|
217256
|
-
throw new Error("No node provided");
|
|
217257
|
-
}
|
|
217294
|
+
var getTabindex = function getTabindex(node, isScope) {
|
|
217258
217295
|
if (node.tabIndex < 0) {
|
|
217259
|
-
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) &&
|
|
217296
|
+
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && isNaN(parseInt(node.getAttribute("tabindex"), 10))) {
|
|
217260
217297
|
return 0;
|
|
217261
217298
|
}
|
|
217262
217299
|
}
|
|
217263
217300
|
return node.tabIndex;
|
|
217264
217301
|
};
|
|
217265
|
-
var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
|
|
217266
|
-
var tabIndex = getTabIndex(node);
|
|
217267
|
-
if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
|
|
217268
|
-
return 0;
|
|
217269
|
-
}
|
|
217270
|
-
return tabIndex;
|
|
217271
|
-
};
|
|
217272
217302
|
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
217273
217303
|
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
217274
217304
|
};
|
|
@@ -217404,7 +217434,7 @@ window.requestAnimationFrame = function() {
|
|
|
217404
217434
|
return true;
|
|
217405
217435
|
};
|
|
217406
217436
|
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
217407
|
-
if (isNonTabbableRadio(node) ||
|
|
217437
|
+
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
217408
217438
|
return false;
|
|
217409
217439
|
}
|
|
217410
217440
|
return true;
|
|
@@ -217422,7 +217452,7 @@ window.requestAnimationFrame = function() {
|
|
|
217422
217452
|
candidates.forEach((function(item, i) {
|
|
217423
217453
|
var isScope = !!item.scopeParent;
|
|
217424
217454
|
var element = isScope ? item.scopeParent : item;
|
|
217425
|
-
var candidateTabindex =
|
|
217455
|
+
var candidateTabindex = getTabindex(element, isScope);
|
|
217426
217456
|
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
217427
217457
|
if (candidateTabindex === 0) {
|
|
217428
217458
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
@@ -217441,32 +217471,32 @@ window.requestAnimationFrame = function() {
|
|
|
217441
217471
|
return acc;
|
|
217442
217472
|
}), []).concat(regularTabbables);
|
|
217443
217473
|
};
|
|
217444
|
-
var tabbable = function tabbable(
|
|
217474
|
+
var tabbable = function tabbable(el, options) {
|
|
217445
217475
|
options = options || {};
|
|
217446
217476
|
var candidates;
|
|
217447
217477
|
if (options.getShadowRoot) {
|
|
217448
|
-
candidates = getCandidatesIteratively([
|
|
217478
|
+
candidates = getCandidatesIteratively([ el ], options.includeContainer, {
|
|
217449
217479
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
217450
217480
|
flatten: false,
|
|
217451
217481
|
getShadowRoot: options.getShadowRoot,
|
|
217452
217482
|
shadowRootFilter: isValidShadowRootTabbable
|
|
217453
217483
|
});
|
|
217454
217484
|
} else {
|
|
217455
|
-
candidates = getCandidates(
|
|
217485
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
217456
217486
|
}
|
|
217457
217487
|
return sortByOrder(candidates);
|
|
217458
217488
|
};
|
|
217459
|
-
var focusable = function focusable(
|
|
217489
|
+
var focusable = function focusable(el, options) {
|
|
217460
217490
|
options = options || {};
|
|
217461
217491
|
var candidates;
|
|
217462
217492
|
if (options.getShadowRoot) {
|
|
217463
|
-
candidates = getCandidatesIteratively([
|
|
217493
|
+
candidates = getCandidatesIteratively([ el ], options.includeContainer, {
|
|
217464
217494
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
217465
217495
|
flatten: true,
|
|
217466
217496
|
getShadowRoot: options.getShadowRoot
|
|
217467
217497
|
});
|
|
217468
217498
|
} else {
|
|
217469
|
-
candidates = getCandidates(
|
|
217499
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
217470
217500
|
}
|
|
217471
217501
|
return candidates;
|
|
217472
217502
|
};
|
|
@@ -217492,7 +217522,6 @@ window.requestAnimationFrame = function() {
|
|
|
217492
217522
|
return isNodeMatchingSelectorFocusable(options, node);
|
|
217493
217523
|
};
|
|
217494
217524
|
exports.focusable = focusable;
|
|
217495
|
-
exports.getTabIndex = getTabIndex;
|
|
217496
217525
|
exports.isFocusable = isFocusable;
|
|
217497
217526
|
exports.isTabbable = isTabbable;
|
|
217498
217527
|
exports.tabbable = tabbable;
|