@wavemaker/app-ng-runtime 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-ng-runtime/components/input/epoch/bundles/index.umd.js +2 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +3 -3
- app-ng-runtime/components/input/epoch/fesm2015/index.js +2 -2
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +23 -23
app-ng-runtime/package.json
CHANGED
|
@@ -983,7 +983,7 @@ $.widget('wm.datatable', {
|
|
|
983
983
|
this._render(true);
|
|
984
984
|
},
|
|
985
985
|
_setGridEditMode: function (val) {
|
|
986
|
-
if (
|
|
986
|
+
if (_.isFunction(this.options.setGridEditMode)) {
|
|
987
987
|
this.options.setGridEditMode(val);
|
|
988
988
|
}
|
|
989
989
|
},
|
|
@@ -1041,7 +1041,7 @@ $.widget('wm.datatable', {
|
|
|
1041
1041
|
$gridBody,
|
|
1042
1042
|
$alwaysNewRow;
|
|
1043
1043
|
|
|
1044
|
-
if (!alwaysNewRow &&
|
|
1044
|
+
if (!alwaysNewRow && _.isFunction(this.options.beforeRowInsert)) {
|
|
1045
1045
|
this.options.beforeRowInsert();
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
@@ -1680,10 +1680,10 @@ $.widget('wm.datatable', {
|
|
|
1680
1680
|
isQuickEdit = this.options.editmode === this.CONSTANTS.QUICK_EDIT;
|
|
1681
1681
|
|
|
1682
1682
|
function callRowSelectionEvents() {
|
|
1683
|
-
if (selected &&
|
|
1683
|
+
if (selected && _.isFunction(self.options.onRowSelect)) {
|
|
1684
1684
|
self.options.onRowSelect(data, e);
|
|
1685
1685
|
}
|
|
1686
|
-
if (!selected &&
|
|
1686
|
+
if (!selected && _.isFunction(self.options.onRowDeselect)) {
|
|
1687
1687
|
self.options.onRowDeselect(data, e);
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
@@ -1728,7 +1728,7 @@ $.widget('wm.datatable', {
|
|
|
1728
1728
|
if (!rowData) {
|
|
1729
1729
|
return;
|
|
1730
1730
|
}
|
|
1731
|
-
if (
|
|
1731
|
+
if (_.isFunction(this.options.onRowDblClick)) {
|
|
1732
1732
|
this.options.onRowDblClick(rowData, e);
|
|
1733
1733
|
}
|
|
1734
1734
|
},
|
|
@@ -1770,13 +1770,13 @@ $.widget('wm.datatable', {
|
|
|
1770
1770
|
if (selected) {
|
|
1771
1771
|
$column.addClass(selectedClass);
|
|
1772
1772
|
$th.addClass(selectedClass);
|
|
1773
|
-
if (
|
|
1773
|
+
if (_.isFunction(this.options.onColumnSelect) && e) {
|
|
1774
1774
|
this.options.onColumnSelect(colInfo, e);
|
|
1775
1775
|
}
|
|
1776
1776
|
} else {
|
|
1777
1777
|
$column.removeClass(selectedClass);
|
|
1778
1778
|
$th.removeClass(selectedClass);
|
|
1779
|
-
if (
|
|
1779
|
+
if (_.isFunction(this.options.onColumnDeselect) && e) {
|
|
1780
1780
|
this.options.onColumnDeselect(colInfo, e);
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
@@ -2029,7 +2029,7 @@ $.widget('wm.datatable', {
|
|
|
2029
2029
|
|
|
2030
2030
|
//On success of update or delete
|
|
2031
2031
|
function onSaveSuccess(skipFocus, error) {
|
|
2032
|
-
if (
|
|
2032
|
+
if (_.isFunction(options.success)) {
|
|
2033
2033
|
options.success(skipFocus, error);
|
|
2034
2034
|
}
|
|
2035
2035
|
if (!advancedEdit || self.options.actionsEnabled.edit) {
|
|
@@ -2060,7 +2060,7 @@ $.widget('wm.datatable', {
|
|
|
2060
2060
|
return;
|
|
2061
2061
|
}
|
|
2062
2062
|
$row.addClass('row-editing');
|
|
2063
|
-
if (
|
|
2063
|
+
if (_.isFunction(this.options.beforeRowUpdate)) {
|
|
2064
2064
|
this.options.beforeRowUpdate(rowData, e);
|
|
2065
2065
|
}
|
|
2066
2066
|
|
|
@@ -2073,7 +2073,7 @@ $.widget('wm.datatable', {
|
|
|
2073
2073
|
self.toggleNewRowActions(true);
|
|
2074
2074
|
}
|
|
2075
2075
|
//Event for on before form render. User can update row data here.
|
|
2076
|
-
if (
|
|
2076
|
+
if (_.isFunction(this.options.onBeforeFormRender)) {
|
|
2077
2077
|
isValid = this.options.onBeforeFormRender(rowData, e, options.operation || action);
|
|
2078
2078
|
if (isValid === false) {
|
|
2079
2079
|
return;
|
|
@@ -2096,7 +2096,7 @@ $.widget('wm.datatable', {
|
|
|
2096
2096
|
});
|
|
2097
2097
|
}
|
|
2098
2098
|
//Event for on before form render. User can access form widgets here.
|
|
2099
|
-
if (
|
|
2099
|
+
if (_.isFunction(this.options.onFormRender)) {
|
|
2100
2100
|
this.options.onFormRender($row, e, options.operation || action, $row.hasClass('always-new-row'));
|
|
2101
2101
|
}
|
|
2102
2102
|
} else {
|
|
@@ -2160,7 +2160,7 @@ $.widget('wm.datatable', {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
self.options.setTouched($invalidTd.find('[formcontrolname]').attr('formcontrolname'));
|
|
2162
2162
|
});
|
|
2163
|
-
if (
|
|
2163
|
+
if (_.isFunction(options.success)) {
|
|
2164
2164
|
options.success(false, true);
|
|
2165
2165
|
}
|
|
2166
2166
|
return;
|
|
@@ -2168,14 +2168,14 @@ $.widget('wm.datatable', {
|
|
|
2168
2168
|
|
|
2169
2169
|
if (isNewRow && advancedEdit && _.isEmpty(rowData)) {
|
|
2170
2170
|
self.removeNewRow($row);
|
|
2171
|
-
if (
|
|
2171
|
+
if (_.isFunction(options.success)) {
|
|
2172
2172
|
options.success(false, undefined, true);
|
|
2173
2173
|
}
|
|
2174
2174
|
return;
|
|
2175
2175
|
}
|
|
2176
2176
|
|
|
2177
2177
|
if (isNewRow) {
|
|
2178
|
-
if (
|
|
2178
|
+
if (_.isFunction(this.options.onBeforeRowInsert)) {
|
|
2179
2179
|
isValid = this.options.onBeforeRowInsert(rowData, e, editOptions);
|
|
2180
2180
|
if (isValid === false) {
|
|
2181
2181
|
return;
|
|
@@ -2192,7 +2192,7 @@ $.widget('wm.datatable', {
|
|
|
2192
2192
|
self.removeNewRow($row);
|
|
2193
2193
|
}
|
|
2194
2194
|
} else {
|
|
2195
|
-
if (
|
|
2195
|
+
if (_.isFunction(this.options.onBeforeRowUpdate)) {
|
|
2196
2196
|
isValid = this.options.onBeforeRowUpdate(rowData, e, editOptions);
|
|
2197
2197
|
if (isValid === false) {
|
|
2198
2198
|
return;
|
|
@@ -2205,7 +2205,7 @@ $.widget('wm.datatable', {
|
|
|
2205
2205
|
if (!options.noMsg) {
|
|
2206
2206
|
this.options.noChangesDetected();
|
|
2207
2207
|
}
|
|
2208
|
-
if (
|
|
2208
|
+
if (_.isFunction(options.success)) {
|
|
2209
2209
|
options.success(false);
|
|
2210
2210
|
}
|
|
2211
2211
|
}
|
|
@@ -2315,7 +2315,7 @@ $.widget('wm.datatable', {
|
|
|
2315
2315
|
this.options.setActionRowIndex(rowId);
|
|
2316
2316
|
this.options.setLastActionPerformed(this.options.ACTIONS.DELETE);
|
|
2317
2317
|
|
|
2318
|
-
if (
|
|
2318
|
+
if (_.isFunction(this.options.beforeRowDelete)) {
|
|
2319
2319
|
this.options.beforeRowDelete(rowData, e);
|
|
2320
2320
|
}
|
|
2321
2321
|
if (isNewRow) {
|
|
@@ -2331,13 +2331,13 @@ $.widget('wm.datatable', {
|
|
|
2331
2331
|
return;
|
|
2332
2332
|
}
|
|
2333
2333
|
/* calling onbeforerowDelete callback function.*/
|
|
2334
|
-
if(
|
|
2334
|
+
if(_.isFunction(this.options.onBeforeRowDelete)) {
|
|
2335
2335
|
isValid = this.options.onBeforeRowDelete(rowData, e, options);
|
|
2336
2336
|
if (isValid === false) {
|
|
2337
2337
|
return;
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
|
-
if (
|
|
2340
|
+
if (_.isFunction(this.options.onRowDelete)) {
|
|
2341
2341
|
className = this.options.cssClassNames.deleteRow;
|
|
2342
2342
|
isActiveRow = $row.attr('class').indexOf('active') !== -1;
|
|
2343
2343
|
if (isActiveRow) {
|
|
@@ -2982,10 +2982,10 @@ $.widget('wm.datatable', {
|
|
|
2982
2982
|
// If we enable multiselect and check header checkbox then updating selecteditem in datatable.
|
|
2983
2983
|
self.options.assignSelectedItems(rowData, e);
|
|
2984
2984
|
self.toggleRowSelection($row, checked, e, true);
|
|
2985
|
-
if (checked &&
|
|
2985
|
+
if (checked && _.isFunction(self.options.onRowSelect)) {
|
|
2986
2986
|
self.options.onRowSelect(rowData, e);
|
|
2987
2987
|
}
|
|
2988
|
-
if (!checked &&
|
|
2988
|
+
if (!checked && _.isFunction(self.options.onRowDeselect)) {
|
|
2989
2989
|
self.options.onRowDeselect(rowData, e);
|
|
2990
2990
|
}
|
|
2991
2991
|
});
|
|
@@ -3020,7 +3020,7 @@ $.widget('wm.datatable', {
|
|
|
3020
3020
|
/**Add event handler, to the select all checkbox on the header**/
|
|
3021
3021
|
$header.on('click', '.app-datagrid-header-cell input:checkbox', toggleSelectAll);
|
|
3022
3022
|
|
|
3023
|
-
if (
|
|
3023
|
+
if (_.isFunction(this.options.onHeaderClick)) {
|
|
3024
3024
|
this.gridHeaderElement.find('th.app-datagrid-header-cell').on('click', this.headerClickHandler.bind(this));
|
|
3025
3025
|
}
|
|
3026
3026
|
|
|
@@ -3168,7 +3168,7 @@ $.widget('wm.datatable', {
|
|
|
3168
3168
|
if (isCreated) {
|
|
3169
3169
|
this._setColSpan(this.options.headerConfig);
|
|
3170
3170
|
}
|
|
3171
|
-
if (
|
|
3171
|
+
if (_.isFunction(this.options.onDataRender)) {
|
|
3172
3172
|
this.options.onDataRender();
|
|
3173
3173
|
}
|
|
3174
3174
|
if (!isCreated && this.options.selectFirstRow) {
|