@wavemaker/app-runtime-wm-build 11.4.0-next.24675 → 11.4.0-next.24679
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 +31 -27
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +2 -2
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +2 -2
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +31 -27
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +2 -2
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +2 -2
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +1 -1
|
@@ -190330,7 +190330,7 @@ $.widget("wm.datatable", {
|
|
|
190330
190330
|
this._render(true);
|
|
190331
190331
|
},
|
|
190332
190332
|
_setGridEditMode: function(val) {
|
|
190333
|
-
if (
|
|
190333
|
+
if (_.isFunction(this.options.setGridEditMode)) {
|
|
190334
190334
|
this.options.setGridEditMode(val);
|
|
190335
190335
|
}
|
|
190336
190336
|
},
|
|
@@ -190373,7 +190373,7 @@ $.widget("wm.datatable", {
|
|
|
190373
190373
|
},
|
|
190374
190374
|
addNewRow: function(skipFocus, alwaysNewRow) {
|
|
190375
190375
|
var rowId = this.gridElement.find("> tr.app-datagrid-row:visible").length || 99999, self = this, rowData = {}, $row, $gridBody, $alwaysNewRow;
|
|
190376
|
-
if (!alwaysNewRow &&
|
|
190376
|
+
if (!alwaysNewRow && _.isFunction(this.options.beforeRowInsert)) {
|
|
190377
190377
|
this.options.beforeRowInsert();
|
|
190378
190378
|
}
|
|
190379
190379
|
$gridBody = this.gridElement;
|
|
@@ -190895,10 +190895,10 @@ $.widget("wm.datatable", {
|
|
|
190895
190895
|
options = options || {};
|
|
190896
190896
|
var rowId, rowData, data, selected, self = this, action = options.action, $target = $(e.target), isQuickEdit = this.options.editmode === this.CONSTANTS.QUICK_EDIT;
|
|
190897
190897
|
function callRowSelectionEvents() {
|
|
190898
|
-
if (selected &&
|
|
190898
|
+
if (selected && _.isFunction(self.options.onRowSelect)) {
|
|
190899
190899
|
self.options.onRowSelect(data, e);
|
|
190900
190900
|
}
|
|
190901
|
-
if (!selected &&
|
|
190901
|
+
if (!selected && _.isFunction(self.options.onRowDeselect)) {
|
|
190902
190902
|
self.options.onRowDeselect(data, e);
|
|
190903
190903
|
}
|
|
190904
190904
|
}
|
|
@@ -190935,7 +190935,7 @@ $.widget("wm.datatable", {
|
|
|
190935
190935
|
if (!rowData) {
|
|
190936
190936
|
return;
|
|
190937
190937
|
}
|
|
190938
|
-
if (
|
|
190938
|
+
if (_.isFunction(this.options.onRowDblClick)) {
|
|
190939
190939
|
this.options.onRowDblClick(rowData, e);
|
|
190940
190940
|
}
|
|
190941
190941
|
},
|
|
@@ -190964,13 +190964,13 @@ $.widget("wm.datatable", {
|
|
|
190964
190964
|
if (selected) {
|
|
190965
190965
|
$column.addClass(selectedClass);
|
|
190966
190966
|
$th.addClass(selectedClass);
|
|
190967
|
-
if (
|
|
190967
|
+
if (_.isFunction(this.options.onColumnSelect) && e) {
|
|
190968
190968
|
this.options.onColumnSelect(colInfo, e);
|
|
190969
190969
|
}
|
|
190970
190970
|
} else {
|
|
190971
190971
|
$column.removeClass(selectedClass);
|
|
190972
190972
|
$th.removeClass(selectedClass);
|
|
190973
|
-
if (
|
|
190973
|
+
if (_.isFunction(this.options.onColumnDeselect) && e) {
|
|
190974
190974
|
this.options.onColumnDeselect(colInfo, e);
|
|
190975
190975
|
}
|
|
190976
190976
|
}
|
|
@@ -191164,7 +191164,7 @@ $.widget("wm.datatable", {
|
|
|
191164
191164
|
this.options.setActionRowIndex($row.attr("data-row-id"));
|
|
191165
191165
|
this.options.setLastActionPerformed(this.options.ACTIONS.EDIT);
|
|
191166
191166
|
function onSaveSuccess(skipFocus, error) {
|
|
191167
|
-
if (
|
|
191167
|
+
if (_.isFunction(options.success)) {
|
|
191168
191168
|
options.success(skipFocus, error);
|
|
191169
191169
|
}
|
|
191170
191170
|
if (!advancedEdit || self.options.actionsEnabled.edit) {
|
|
@@ -191191,7 +191191,7 @@ $.widget("wm.datatable", {
|
|
|
191191
191191
|
return;
|
|
191192
191192
|
}
|
|
191193
191193
|
$row.addClass("row-editing");
|
|
191194
|
-
if (
|
|
191194
|
+
if (_.isFunction(this.options.beforeRowUpdate)) {
|
|
191195
191195
|
this.options.beforeRowUpdate(rowData, e);
|
|
191196
191196
|
}
|
|
191197
191197
|
if (self.options.editmode === self.CONSTANTS.FORM || self.options.editmode === self.CONSTANTS.DIALOG) {
|
|
@@ -191201,7 +191201,7 @@ $.widget("wm.datatable", {
|
|
|
191201
191201
|
self.setDefaultRowData(rowData);
|
|
191202
191202
|
self.toggleNewRowActions(true);
|
|
191203
191203
|
}
|
|
191204
|
-
if (
|
|
191204
|
+
if (_.isFunction(this.options.onBeforeFormRender)) {
|
|
191205
191205
|
isValid = this.options.onBeforeFormRender(rowData, e, options.operation || action);
|
|
191206
191206
|
if (isValid === false) {
|
|
191207
191207
|
return;
|
|
@@ -191222,7 +191222,7 @@ $.widget("wm.datatable", {
|
|
|
191222
191222
|
self.setFocusOnElement(e, $editableElements);
|
|
191223
191223
|
}));
|
|
191224
191224
|
}
|
|
191225
|
-
if (
|
|
191225
|
+
if (_.isFunction(this.options.onFormRender)) {
|
|
191226
191226
|
this.options.onFormRender($row, e, options.operation || action, $row.hasClass("always-new-row"));
|
|
191227
191227
|
}
|
|
191228
191228
|
} else {
|
|
@@ -191275,20 +191275,20 @@ $.widget("wm.datatable", {
|
|
|
191275
191275
|
}
|
|
191276
191276
|
self.options.setTouched($invalidTd.find("[formcontrolname]").attr("formcontrolname"));
|
|
191277
191277
|
}));
|
|
191278
|
-
if (
|
|
191278
|
+
if (_.isFunction(options.success)) {
|
|
191279
191279
|
options.success(false, true);
|
|
191280
191280
|
}
|
|
191281
191281
|
return;
|
|
191282
191282
|
}
|
|
191283
191283
|
if (isNewRow && advancedEdit && _.isEmpty(rowData)) {
|
|
191284
191284
|
self.removeNewRow($row);
|
|
191285
|
-
if (
|
|
191285
|
+
if (_.isFunction(options.success)) {
|
|
191286
191286
|
options.success(false, undefined, true);
|
|
191287
191287
|
}
|
|
191288
191288
|
return;
|
|
191289
191289
|
}
|
|
191290
191290
|
if (isNewRow) {
|
|
191291
|
-
if (
|
|
191291
|
+
if (_.isFunction(this.options.onBeforeRowInsert)) {
|
|
191292
191292
|
isValid = this.options.onBeforeRowInsert(rowData, e, editOptions);
|
|
191293
191293
|
if (isValid === false) {
|
|
191294
191294
|
return;
|
|
@@ -191300,7 +191300,7 @@ $.widget("wm.datatable", {
|
|
|
191300
191300
|
self.removeNewRow($row);
|
|
191301
191301
|
}
|
|
191302
191302
|
} else {
|
|
191303
|
-
if (
|
|
191303
|
+
if (_.isFunction(this.options.onBeforeRowUpdate)) {
|
|
191304
191304
|
isValid = this.options.onBeforeRowUpdate(rowData, e, editOptions);
|
|
191305
191305
|
if (isValid === false) {
|
|
191306
191306
|
return;
|
|
@@ -191313,7 +191313,7 @@ $.widget("wm.datatable", {
|
|
|
191313
191313
|
if (!options.noMsg) {
|
|
191314
191314
|
this.options.noChangesDetected();
|
|
191315
191315
|
}
|
|
191316
|
-
if (
|
|
191316
|
+
if (_.isFunction(options.success)) {
|
|
191317
191317
|
options.success(false);
|
|
191318
191318
|
}
|
|
191319
191319
|
}
|
|
@@ -191389,7 +191389,7 @@ $.widget("wm.datatable", {
|
|
|
191389
191389
|
var $row = $(e.target).closest("tr.app-datagrid-row"), rowId = $row.attr("data-row-id"), rowData = this.options.data[rowId], isNewRow = this._isNewRow($row), className, isActiveRow, isValid, options = {}, self = this;
|
|
191390
191390
|
this.options.setActionRowIndex(rowId);
|
|
191391
191391
|
this.options.setLastActionPerformed(this.options.ACTIONS.DELETE);
|
|
191392
|
-
if (
|
|
191392
|
+
if (_.isFunction(this.options.beforeRowDelete)) {
|
|
191393
191393
|
this.options.beforeRowDelete(rowData, e);
|
|
191394
191394
|
}
|
|
191395
191395
|
if (isNewRow) {
|
|
@@ -191403,13 +191403,13 @@ $.widget("wm.datatable", {
|
|
|
191403
191403
|
this.addOrRemoveScroll();
|
|
191404
191404
|
return;
|
|
191405
191405
|
}
|
|
191406
|
-
if (
|
|
191406
|
+
if (_.isFunction(this.options.onBeforeRowDelete)) {
|
|
191407
191407
|
isValid = this.options.onBeforeRowDelete(rowData, e, options);
|
|
191408
191408
|
if (isValid === false) {
|
|
191409
191409
|
return;
|
|
191410
191410
|
}
|
|
191411
191411
|
}
|
|
191412
|
-
if (
|
|
191412
|
+
if (_.isFunction(this.options.onRowDelete)) {
|
|
191413
191413
|
className = this.options.cssClassNames.deleteRow;
|
|
191414
191414
|
isActiveRow = $row.attr("class").indexOf("active") !== -1;
|
|
191415
191415
|
if (isActiveRow) {
|
|
@@ -191919,10 +191919,10 @@ $.widget("wm.datatable", {
|
|
|
191919
191919
|
var $row = $(this).closest("tr.app-datagrid-row"), rowId = $row.attr("data-row-id"), rowData = self.options.data[rowId];
|
|
191920
191920
|
self.options.assignSelectedItems(rowData, e);
|
|
191921
191921
|
self.toggleRowSelection($row, checked, e, true);
|
|
191922
|
-
if (checked &&
|
|
191922
|
+
if (checked && _.isFunction(self.options.onRowSelect)) {
|
|
191923
191923
|
self.options.onRowSelect(rowData, e);
|
|
191924
191924
|
}
|
|
191925
|
-
if (!checked &&
|
|
191925
|
+
if (!checked && _.isFunction(self.options.onRowDeselect)) {
|
|
191926
191926
|
self.options.onRowDeselect(rowData, e);
|
|
191927
191927
|
}
|
|
191928
191928
|
}));
|
|
@@ -191945,7 +191945,7 @@ $.widget("wm.datatable", {
|
|
|
191945
191945
|
this.tableContainer.append($colgroup);
|
|
191946
191946
|
}
|
|
191947
191947
|
$header.on("click", ".app-datagrid-header-cell input:checkbox", toggleSelectAll);
|
|
191948
|
-
if (
|
|
191948
|
+
if (_.isFunction(this.options.onHeaderClick)) {
|
|
191949
191949
|
this.gridHeaderElement.find("th.app-datagrid-header-cell").on("click", this.headerClickHandler.bind(this));
|
|
191950
191950
|
}
|
|
191951
191951
|
if (!this.options.isMobile && this.gridHeaderElement.length) {
|
|
@@ -192062,7 +192062,7 @@ $.widget("wm.datatable", {
|
|
|
192062
192062
|
if (isCreated) {
|
|
192063
192063
|
this._setColSpan(this.options.headerConfig);
|
|
192064
192064
|
}
|
|
192065
|
-
if (
|
|
192065
|
+
if (_.isFunction(this.options.onDataRender)) {
|
|
192066
192066
|
this.options.onDataRender();
|
|
192067
192067
|
}
|
|
192068
192068
|
if (!isCreated && this.options.selectFirstRow) {
|
|
@@ -233148,7 +233148,7 @@ window.requestAnimationFrame = function() {
|
|
|
233148
233148
|
})(this, (function(CustomDOMParser) {
|
|
233149
233149
|
"use strict";
|
|
233150
233150
|
return function X2JS(config) {
|
|
233151
|
-
var VERSION = "3.
|
|
233151
|
+
var VERSION = "3.4.4";
|
|
233152
233152
|
config = config || {};
|
|
233153
233153
|
function initConfigDefaults() {
|
|
233154
233154
|
config.arrayAccessForm = config.arrayAccessForm || "none";
|
|
@@ -233158,6 +233158,7 @@ window.requestAnimationFrame = function() {
|
|
|
233158
233158
|
config.attributeConverters = config.attributeConverters || [];
|
|
233159
233159
|
config.datetimeAccessFormPaths = config.datetimeAccessFormPaths || [];
|
|
233160
233160
|
config.arrayAccessFormPaths = config.arrayAccessFormPaths || [];
|
|
233161
|
+
config.xmldomOptions = config.xmldomOptions || {};
|
|
233161
233162
|
if (config.enableToStringFunc === undefined) {
|
|
233162
233163
|
config.enableToStringFunc = true;
|
|
233163
233164
|
}
|
|
@@ -233185,6 +233186,9 @@ window.requestAnimationFrame = function() {
|
|
|
233185
233186
|
if (config.keepCData === undefined) {
|
|
233186
233187
|
config.keepCData = false;
|
|
233187
233188
|
}
|
|
233189
|
+
if (config.keepText === undefined) {
|
|
233190
|
+
config.keepText = false;
|
|
233191
|
+
}
|
|
233188
233192
|
if (config.jsDateUTC === undefined) {
|
|
233189
233193
|
config.jsDateUTC = false;
|
|
233190
233194
|
}
|
|
@@ -233363,7 +233367,7 @@ window.requestAnimationFrame = function() {
|
|
|
233363
233367
|
delete result["#cdata-section"];
|
|
233364
233368
|
if (config.arrayAccessForm === "property") delete result["#cdata-section_asArray"];
|
|
233365
233369
|
}
|
|
233366
|
-
if (result.__cnt === 1 && result.__text) {
|
|
233370
|
+
if (result.__cnt === 1 && result.__text && !config.keepText) {
|
|
233367
233371
|
result = result.__text;
|
|
233368
233372
|
} else if (result.__cnt === 0 && config.emptyNodeForm === "text") {
|
|
233369
233373
|
result = "";
|
|
@@ -233529,13 +233533,13 @@ window.requestAnimationFrame = function() {
|
|
|
233529
233533
|
var parser = null;
|
|
233530
233534
|
var domNode = null;
|
|
233531
233535
|
if (CustomDOMParser) {
|
|
233532
|
-
parser = new CustomDOMParser;
|
|
233536
|
+
parser = new CustomDOMParser(config.xmldomOptions);
|
|
233533
233537
|
domNode = parser.parseFromString(xml, "text/xml");
|
|
233534
233538
|
} else if (window && window.DOMParser) {
|
|
233535
233539
|
parser = new window.DOMParser;
|
|
233536
233540
|
var parsererrorNS = null;
|
|
233537
233541
|
var isIEParser = window.ActiveXObject || "ActiveXObject" in window;
|
|
233538
|
-
if (!isIEParser) {
|
|
233542
|
+
if (!isIEParser && document.all && !document.addEventListener) {
|
|
233539
233543
|
try {
|
|
233540
233544
|
parsererrorNS = parser.parseFromString("INVALID", "text/xml").childNodes[0].namespaceURI;
|
|
233541
233545
|
} catch (err) {
|