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