@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-runtime-wm-build",
3
- "version": "11.4.0-next.24675",
3
+ "version": "11.4.0-next.24679",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -166559,7 +166559,7 @@ $.widget("wm.datatable", {
166559
166559
  this._render(true);
166560
166560
  },
166561
166561
  _setGridEditMode: function(val) {
166562
- if ($.isFunction(this.options.setGridEditMode)) {
166562
+ if (_.isFunction(this.options.setGridEditMode)) {
166563
166563
  this.options.setGridEditMode(val);
166564
166564
  }
166565
166565
  },
@@ -166602,7 +166602,7 @@ $.widget("wm.datatable", {
166602
166602
  },
166603
166603
  addNewRow: function(skipFocus, alwaysNewRow) {
166604
166604
  var rowId = this.gridElement.find("> tr.app-datagrid-row:visible").length || 99999, self = this, rowData = {}, $row, $gridBody, $alwaysNewRow;
166605
- if (!alwaysNewRow && $.isFunction(this.options.beforeRowInsert)) {
166605
+ if (!alwaysNewRow && _.isFunction(this.options.beforeRowInsert)) {
166606
166606
  this.options.beforeRowInsert();
166607
166607
  }
166608
166608
  $gridBody = this.gridElement;
@@ -167124,10 +167124,10 @@ $.widget("wm.datatable", {
167124
167124
  options = options || {};
167125
167125
  var rowId, rowData, data, selected, self = this, action = options.action, $target = $(e.target), isQuickEdit = this.options.editmode === this.CONSTANTS.QUICK_EDIT;
167126
167126
  function callRowSelectionEvents() {
167127
- if (selected && $.isFunction(self.options.onRowSelect)) {
167127
+ if (selected && _.isFunction(self.options.onRowSelect)) {
167128
167128
  self.options.onRowSelect(data, e);
167129
167129
  }
167130
- if (!selected && $.isFunction(self.options.onRowDeselect)) {
167130
+ if (!selected && _.isFunction(self.options.onRowDeselect)) {
167131
167131
  self.options.onRowDeselect(data, e);
167132
167132
  }
167133
167133
  }
@@ -167164,7 +167164,7 @@ $.widget("wm.datatable", {
167164
167164
  if (!rowData) {
167165
167165
  return;
167166
167166
  }
167167
- if ($.isFunction(this.options.onRowDblClick)) {
167167
+ if (_.isFunction(this.options.onRowDblClick)) {
167168
167168
  this.options.onRowDblClick(rowData, e);
167169
167169
  }
167170
167170
  },
@@ -167193,13 +167193,13 @@ $.widget("wm.datatable", {
167193
167193
  if (selected) {
167194
167194
  $column.addClass(selectedClass);
167195
167195
  $th.addClass(selectedClass);
167196
- if ($.isFunction(this.options.onColumnSelect) && e) {
167196
+ if (_.isFunction(this.options.onColumnSelect) && e) {
167197
167197
  this.options.onColumnSelect(colInfo, e);
167198
167198
  }
167199
167199
  } else {
167200
167200
  $column.removeClass(selectedClass);
167201
167201
  $th.removeClass(selectedClass);
167202
- if ($.isFunction(this.options.onColumnDeselect) && e) {
167202
+ if (_.isFunction(this.options.onColumnDeselect) && e) {
167203
167203
  this.options.onColumnDeselect(colInfo, e);
167204
167204
  }
167205
167205
  }
@@ -167393,7 +167393,7 @@ $.widget("wm.datatable", {
167393
167393
  this.options.setActionRowIndex($row.attr("data-row-id"));
167394
167394
  this.options.setLastActionPerformed(this.options.ACTIONS.EDIT);
167395
167395
  function onSaveSuccess(skipFocus, error) {
167396
- if ($.isFunction(options.success)) {
167396
+ if (_.isFunction(options.success)) {
167397
167397
  options.success(skipFocus, error);
167398
167398
  }
167399
167399
  if (!advancedEdit || self.options.actionsEnabled.edit) {
@@ -167420,7 +167420,7 @@ $.widget("wm.datatable", {
167420
167420
  return;
167421
167421
  }
167422
167422
  $row.addClass("row-editing");
167423
- if ($.isFunction(this.options.beforeRowUpdate)) {
167423
+ if (_.isFunction(this.options.beforeRowUpdate)) {
167424
167424
  this.options.beforeRowUpdate(rowData, e);
167425
167425
  }
167426
167426
  if (self.options.editmode === self.CONSTANTS.FORM || self.options.editmode === self.CONSTANTS.DIALOG) {
@@ -167430,7 +167430,7 @@ $.widget("wm.datatable", {
167430
167430
  self.setDefaultRowData(rowData);
167431
167431
  self.toggleNewRowActions(true);
167432
167432
  }
167433
- if ($.isFunction(this.options.onBeforeFormRender)) {
167433
+ if (_.isFunction(this.options.onBeforeFormRender)) {
167434
167434
  isValid = this.options.onBeforeFormRender(rowData, e, options.operation || action);
167435
167435
  if (isValid === false) {
167436
167436
  return;
@@ -167451,7 +167451,7 @@ $.widget("wm.datatable", {
167451
167451
  self.setFocusOnElement(e, $editableElements);
167452
167452
  }));
167453
167453
  }
167454
- if ($.isFunction(this.options.onFormRender)) {
167454
+ if (_.isFunction(this.options.onFormRender)) {
167455
167455
  this.options.onFormRender($row, e, options.operation || action, $row.hasClass("always-new-row"));
167456
167456
  }
167457
167457
  } else {
@@ -167504,20 +167504,20 @@ $.widget("wm.datatable", {
167504
167504
  }
167505
167505
  self.options.setTouched($invalidTd.find("[formcontrolname]").attr("formcontrolname"));
167506
167506
  }));
167507
- if ($.isFunction(options.success)) {
167507
+ if (_.isFunction(options.success)) {
167508
167508
  options.success(false, true);
167509
167509
  }
167510
167510
  return;
167511
167511
  }
167512
167512
  if (isNewRow && advancedEdit && _.isEmpty(rowData)) {
167513
167513
  self.removeNewRow($row);
167514
- if ($.isFunction(options.success)) {
167514
+ if (_.isFunction(options.success)) {
167515
167515
  options.success(false, undefined, true);
167516
167516
  }
167517
167517
  return;
167518
167518
  }
167519
167519
  if (isNewRow) {
167520
- if ($.isFunction(this.options.onBeforeRowInsert)) {
167520
+ if (_.isFunction(this.options.onBeforeRowInsert)) {
167521
167521
  isValid = this.options.onBeforeRowInsert(rowData, e, editOptions);
167522
167522
  if (isValid === false) {
167523
167523
  return;
@@ -167529,7 +167529,7 @@ $.widget("wm.datatable", {
167529
167529
  self.removeNewRow($row);
167530
167530
  }
167531
167531
  } else {
167532
- if ($.isFunction(this.options.onBeforeRowUpdate)) {
167532
+ if (_.isFunction(this.options.onBeforeRowUpdate)) {
167533
167533
  isValid = this.options.onBeforeRowUpdate(rowData, e, editOptions);
167534
167534
  if (isValid === false) {
167535
167535
  return;
@@ -167542,7 +167542,7 @@ $.widget("wm.datatable", {
167542
167542
  if (!options.noMsg) {
167543
167543
  this.options.noChangesDetected();
167544
167544
  }
167545
- if ($.isFunction(options.success)) {
167545
+ if (_.isFunction(options.success)) {
167546
167546
  options.success(false);
167547
167547
  }
167548
167548
  }
@@ -167618,7 +167618,7 @@ $.widget("wm.datatable", {
167618
167618
  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;
167619
167619
  this.options.setActionRowIndex(rowId);
167620
167620
  this.options.setLastActionPerformed(this.options.ACTIONS.DELETE);
167621
- if ($.isFunction(this.options.beforeRowDelete)) {
167621
+ if (_.isFunction(this.options.beforeRowDelete)) {
167622
167622
  this.options.beforeRowDelete(rowData, e);
167623
167623
  }
167624
167624
  if (isNewRow) {
@@ -167632,13 +167632,13 @@ $.widget("wm.datatable", {
167632
167632
  this.addOrRemoveScroll();
167633
167633
  return;
167634
167634
  }
167635
- if ($.isFunction(this.options.onBeforeRowDelete)) {
167635
+ if (_.isFunction(this.options.onBeforeRowDelete)) {
167636
167636
  isValid = this.options.onBeforeRowDelete(rowData, e, options);
167637
167637
  if (isValid === false) {
167638
167638
  return;
167639
167639
  }
167640
167640
  }
167641
- if ($.isFunction(this.options.onRowDelete)) {
167641
+ if (_.isFunction(this.options.onRowDelete)) {
167642
167642
  className = this.options.cssClassNames.deleteRow;
167643
167643
  isActiveRow = $row.attr("class").indexOf("active") !== -1;
167644
167644
  if (isActiveRow) {
@@ -168148,10 +168148,10 @@ $.widget("wm.datatable", {
168148
168148
  var $row = $(this).closest("tr.app-datagrid-row"), rowId = $row.attr("data-row-id"), rowData = self.options.data[rowId];
168149
168149
  self.options.assignSelectedItems(rowData, e);
168150
168150
  self.toggleRowSelection($row, checked, e, true);
168151
- if (checked && $.isFunction(self.options.onRowSelect)) {
168151
+ if (checked && _.isFunction(self.options.onRowSelect)) {
168152
168152
  self.options.onRowSelect(rowData, e);
168153
168153
  }
168154
- if (!checked && $.isFunction(self.options.onRowDeselect)) {
168154
+ if (!checked && _.isFunction(self.options.onRowDeselect)) {
168155
168155
  self.options.onRowDeselect(rowData, e);
168156
168156
  }
168157
168157
  }));
@@ -168174,7 +168174,7 @@ $.widget("wm.datatable", {
168174
168174
  this.tableContainer.append($colgroup);
168175
168175
  }
168176
168176
  $header.on("click", ".app-datagrid-header-cell input:checkbox", toggleSelectAll);
168177
- if ($.isFunction(this.options.onHeaderClick)) {
168177
+ if (_.isFunction(this.options.onHeaderClick)) {
168178
168178
  this.gridHeaderElement.find("th.app-datagrid-header-cell").on("click", this.headerClickHandler.bind(this));
168179
168179
  }
168180
168180
  if (!this.options.isMobile && this.gridHeaderElement.length) {
@@ -168291,7 +168291,7 @@ $.widget("wm.datatable", {
168291
168291
  if (isCreated) {
168292
168292
  this._setColSpan(this.options.headerConfig);
168293
168293
  }
168294
- if ($.isFunction(this.options.onDataRender)) {
168294
+ if (_.isFunction(this.options.onDataRender)) {
168295
168295
  this.options.onDataRender();
168296
168296
  }
168297
168297
  if (!isCreated && this.options.selectFirstRow) {
@@ -205107,7 +205107,7 @@ window.requestAnimationFrame = function() {
205107
205107
  })(this, (function(CustomDOMParser) {
205108
205108
  "use strict";
205109
205109
  return function X2JS(config) {
205110
- var VERSION = "3.1.1";
205110
+ var VERSION = "3.4.4";
205111
205111
  config = config || {};
205112
205112
  function initConfigDefaults() {
205113
205113
  config.arrayAccessForm = config.arrayAccessForm || "none";
@@ -205117,6 +205117,7 @@ window.requestAnimationFrame = function() {
205117
205117
  config.attributeConverters = config.attributeConverters || [];
205118
205118
  config.datetimeAccessFormPaths = config.datetimeAccessFormPaths || [];
205119
205119
  config.arrayAccessFormPaths = config.arrayAccessFormPaths || [];
205120
+ config.xmldomOptions = config.xmldomOptions || {};
205120
205121
  if (config.enableToStringFunc === undefined) {
205121
205122
  config.enableToStringFunc = true;
205122
205123
  }
@@ -205144,6 +205145,9 @@ window.requestAnimationFrame = function() {
205144
205145
  if (config.keepCData === undefined) {
205145
205146
  config.keepCData = false;
205146
205147
  }
205148
+ if (config.keepText === undefined) {
205149
+ config.keepText = false;
205150
+ }
205147
205151
  if (config.jsDateUTC === undefined) {
205148
205152
  config.jsDateUTC = false;
205149
205153
  }
@@ -205322,7 +205326,7 @@ window.requestAnimationFrame = function() {
205322
205326
  delete result["#cdata-section"];
205323
205327
  if (config.arrayAccessForm === "property") delete result["#cdata-section_asArray"];
205324
205328
  }
205325
- if (result.__cnt === 1 && result.__text) {
205329
+ if (result.__cnt === 1 && result.__text && !config.keepText) {
205326
205330
  result = result.__text;
205327
205331
  } else if (result.__cnt === 0 && config.emptyNodeForm === "text") {
205328
205332
  result = "";
@@ -205488,13 +205492,13 @@ window.requestAnimationFrame = function() {
205488
205492
  var parser = null;
205489
205493
  var domNode = null;
205490
205494
  if (CustomDOMParser) {
205491
- parser = new CustomDOMParser;
205495
+ parser = new CustomDOMParser(config.xmldomOptions);
205492
205496
  domNode = parser.parseFromString(xml, "text/xml");
205493
205497
  } else if (window && window.DOMParser) {
205494
205498
  parser = new window.DOMParser;
205495
205499
  var parsererrorNS = null;
205496
205500
  var isIEParser = window.ActiveXObject || "ActiveXObject" in window;
205497
- if (!isIEParser) {
205501
+ if (!isIEParser && document.all && !document.addEventListener) {
205498
205502
  try {
205499
205503
  parsererrorNS = parser.parseFromString("INVALID", "text/xml").childNodes[0].namespaceURI;
205500
205504
  } catch (err) {