You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -7280,10 +7318,12 @@ var EditCellView = function () {
7280
7318
7281
7319
cell = cell || model.navigation().active.cell;
7282
7320
if (cell) {
7283
-
var parse = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_core_services_convert__["a" /* parseFactory */])(cell.column.type);
7284
-
_this.value = parse(cell.value);
7285
-
cell.mode(_this.mode);
7286
-
return false;
7321
+
if (model.edit().reset.execute(_this.contextFactory(cell, _this.value)) !== false) {
7322
+
var parse = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_core_services_convert__["a" /* parseFactory */])(cell.column.type);
7323
+
_this.value = parse(cell.value);
7324
+
cell.mode(_this.mode);
7325
+
return false;
7326
+
}
7287
7327
}
7288
7328
}
7289
7329
})
@@ -7311,16 +7351,22 @@ var EditCellView = function () {
7311
7351
7312
7352
"use strict";
7313
7353
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_core_resource_resource__ = __webpack_require__(5);
7354
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_core_infrastructure_command__ = __webpack_require__(6);
7314
7355
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7315
7356
7316
7357
7317
7358
7359
+
7318
7360
var EditModel = function EditModel() {
7319
7361
_classCallCheck(this, EditModel);
7320
7362
7321
7363
this.resource = new __WEBPACK_IMPORTED_MODULE_0_core_resource_resource__["a" /* default */]();
7322
7364
this.mode = null; // cell
7323
7365
this.editMode = 'view'; // edit
7366
+
this.enter = new __WEBPACK_IMPORTED_MODULE_1_core_infrastructure_command__["a" /* default */]();
7367
+
this.commit = new __WEBPACK_IMPORTED_MODULE_1_core_infrastructure_command__["a" /* default */]();
7368
+
this.cancel = new __WEBPACK_IMPORTED_MODULE_1_core_infrastructure_command__["a" /* default */]();
7369
+
this.reset = new __WEBPACK_IMPORTED_MODULE_1_core_infrastructure_command__["a" /* default */]();
@@ -13760,7 +13808,7 @@ var ViewCore = function (_Component) {
13760
13808
this.highlight = new __WEBPACK_IMPORTED_MODULE_10_core_highlight_highlight_view__["a" /* default */](model, table, apply);
13761
13809
this.sort = new __WEBPACK_IMPORTED_MODULE_11_core_sort_sort_view__["a" /* default */](model);
13762
13810
this.filter = new __WEBPACK_IMPORTED_MODULE_12_core_filter_filter_view__["a" /* default */](model);
13763
-
this.edit = new __WEBPACK_IMPORTED_MODULE_13_core_edit_edit_view__["a" /* default */](model, __WEBPACK_IMPORTED_MODULE_1_ng_services_value__["b" /* set */], table, apply);
13811
+
this.edit = new __WEBPACK_IMPORTED_MODULE_13_core_edit_edit_view__["a" /* default */](model, __WEBPACK_IMPORTED_MODULE_1_ng_services_value__["b" /* set */], __WEBPACK_IMPORTED_MODULE_1_ng_services_value__["a" /* getFactory */], table, apply);
13764
13812
this.pagination = new __WEBPACK_IMPORTED_MODULE_15_core_pagination_pagination_view__["a" /* default */](model);
13765
13813
13766
13814
// TODO: how we can avoid that?
@@ -17175,8 +17223,9 @@ var Table = function () {
17175
17223
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_core_pipe_pipe__ = __webpack_require__(60);
17176
17224
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_core_pipe_units_pipe_unit__ = __webpack_require__(33);
17177
17225
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_core_infrastructure_log__ = __webpack_require__(18);
17178
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_core_services_utility__ = __webpack_require__(0);
17179
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__value__ = __webpack_require__(64);
17226
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_core_infrastructure_command__ = __webpack_require__(6);
17227
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_core_services_utility__ = __webpack_require__(0);
17228
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__value__ = __webpack_require__(64);
17180
17229
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
17181
17230
17182
17231
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -17189,6 +17238,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
17189
17238
17190
17239
17191
17240
17241
+
17192
17242
var Grid = function () {
17193
17243
function Grid($rootScope) {
17194
17244
_classCallCheck(this, Grid);
@@ -17207,10 +17257,10 @@ var Grid = function () {
0 commit comments