@sd-angular/core 1.2.40 → 1.2.43

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.
Files changed (46) hide show
  1. package/bundles/sd-angular-core-api.umd.js +1 -1
  2. package/bundles/sd-angular-core-api.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-api.umd.min.js +1 -1
  4. package/bundles/sd-angular-core-api.umd.min.js.map +1 -1
  5. package/bundles/sd-angular-core-grid-material.umd.js +26 -10
  6. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  7. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  8. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  9. package/bundles/sd-angular-core-input-number.umd.js +51 -42
  10. package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
  11. package/bundles/sd-angular-core-input-number.umd.min.js +2 -2
  12. package/bundles/sd-angular-core-input-number.umd.min.js.map +1 -1
  13. package/bundles/sd-angular-core-input.umd.js +2 -2
  14. package/bundles/sd-angular-core-input.umd.js.map +1 -1
  15. package/bundles/sd-angular-core-input.umd.min.js +1 -1
  16. package/bundles/sd-angular-core-input.umd.min.js.map +1 -1
  17. package/bundles/sd-angular-core-upload-excel.umd.js +1 -1
  18. package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
  19. package/bundles/sd-angular-core-upload-excel.umd.min.js +1 -1
  20. package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
  21. package/esm2015/api/src/lib/api.service.js +2 -2
  22. package/esm2015/grid-material/src/lib/functions/calculate-sd-id.js +7 -0
  23. package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +15 -8
  24. package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +12 -8
  25. package/esm2015/input/src/lib/input.component.js +3 -3
  26. package/esm2015/input-number/src/lib/input-number.component.js +45 -38
  27. package/esm2015/upload-excel/src/lib/upload-excel.component.js +2 -2
  28. package/fesm2015/sd-angular-core-api.js +1 -1
  29. package/fesm2015/sd-angular-core-api.js.map +1 -1
  30. package/fesm2015/sd-angular-core-grid-material.js +25 -9
  31. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  32. package/fesm2015/sd-angular-core-input-number.js +44 -36
  33. package/fesm2015/sd-angular-core-input-number.js.map +1 -1
  34. package/fesm2015/sd-angular-core-input.js +2 -2
  35. package/fesm2015/sd-angular-core-input.js.map +1 -1
  36. package/fesm2015/sd-angular-core-upload-excel.js +1 -1
  37. package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
  38. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  39. package/grid-material/src/lib/functions/calculate-sd-id.d.ts +2 -0
  40. package/grid-material/src/lib/pipes/editor-handler-column.pipe.d.ts +3 -1
  41. package/grid-material/src/lib/pipes/editor-handler-row.pipe.d.ts +3 -1
  42. package/input-number/sd-angular-core-input-number.metadata.json +1 -1
  43. package/input-number/src/lib/input-number.component.d.ts +3 -4
  44. package/package.json +1 -1
  45. package/{sd-angular-core-1.2.40.tgz → sd-angular-core-1.2.43.tgz} +0 -0
  46. package/upload-excel/sd-angular-core-upload-excel.metadata.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { SdScrollDirective, SdCommonModule } from '@sd-angular/core/common';
2
- import { Directive, TemplateRef, Input, InjectionToken, EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, Output, Injectable, Inject, Optional, Pipe, QueryList, ContentChild, ContentChildren, HostListener, NgModule } from '@angular/core';
2
+ import { Directive, TemplateRef, Input, InjectionToken, EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, Output, Injectable, Inject, Optional, Pipe, NgZone, QueryList, ContentChild, ContentChildren, HostListener, NgModule } from '@angular/core';
3
3
  import { __awaiter, __classPrivateFieldGet, __rest, __classPrivateFieldSet } from 'tslib';
4
4
  import { MatPaginator, MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
5
5
  import { MatSort, MatSortModule } from '@angular/material/sort';
@@ -1171,9 +1171,15 @@ SdColumnValuesPipe.decorators = [
1171
1171
  },] }
1172
1172
  ];
1173
1173
 
1174
+ const CalculateSdId = (item) => {
1175
+ const { sdId, editorHandlerColumn, expandDetail, isExpanded, isExpanding, isSelected, sdGroup, selectable, actions, groupedActions, originItem, editorErrorMessage, editorHandlerRow } = item, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
1176
+ return hash(remain);
1177
+ };
1178
+
1174
1179
  var _visible;
1175
1180
  class SdEditorHandlerColumnPipe {
1176
- constructor() {
1181
+ constructor(zone) {
1182
+ this.zone = zone;
1177
1183
  _visible.set(this, (col, item) => {
1178
1184
  if (col.type === 'children' || col.type === 'children-col') {
1179
1185
  return false;
@@ -1189,9 +1195,9 @@ class SdEditorHandlerColumnPipe {
1189
1195
  });
1190
1196
  }
1191
1197
  transform(value, item, gridOption) {
1192
- const { sdId, editorHandlerColumn, expandDetail, isExpanded, isExpanding, isSelected, sdGroup, selectable, actions, groupedActions, originItem, editorErrorMessage, editorHandlerRow } = item, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
1193
- const key = hash(remain);
1194
- if (sdId === key && editorHandlerColumn) {
1198
+ const key = CalculateSdId(item);
1199
+ console.log(value, item.sdId, key);
1200
+ if (item.sdId === key && item.editorHandlerColumn) {
1195
1201
  return true;
1196
1202
  }
1197
1203
  item.editorHandlerColumn = item.editorHandlerColumn || {};
@@ -1206,6 +1212,9 @@ class SdEditorHandlerColumnPipe {
1206
1212
  item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, col, item) });
1207
1213
  }
1208
1214
  }
1215
+ this.zone.run(() => {
1216
+ item.sdId = CalculateSdId(item);
1217
+ });
1209
1218
  item.sdId = key;
1210
1219
  return true;
1211
1220
  }
@@ -1216,6 +1225,9 @@ SdEditorHandlerColumnPipe.decorators = [
1216
1225
  name: 'sdEditorHandlerColumn'
1217
1226
  },] },
1218
1227
  { type: Injectable }
1228
+ ];
1229
+ SdEditorHandlerColumnPipe.ctorParameters = () => [
1230
+ { type: NgZone }
1219
1231
  ];
1220
1232
 
1221
1233
  var _paginator, _sort, _subscription$1, _optionChanges, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
@@ -3020,7 +3032,8 @@ SdDesktopCellEditor.propDecorators = {
3020
3032
 
3021
3033
  var _visible$1;
3022
3034
  class SdEditorHandlerRowPipe {
3023
- constructor() {
3035
+ constructor(zone) {
3036
+ this.zone = zone;
3024
3037
  _visible$1.set(this, (col, item) => {
3025
3038
  if (col.type === 'children' || col.type === 'children-col') {
3026
3039
  return false;
@@ -3063,9 +3076,6 @@ class SdEditorHandlerRowPipe {
3063
3076
  }
3064
3077
  item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
3065
3078
  }
3066
- // const { sdId, editorHandlerColumn, ...remain } = item;
3067
- const { sdId, editorHandlerColumn, expandDetail, isExpanded, isExpanding, isSelected, sdGroup, selectable, actions, groupedActions, originItem, editorErrorMessage, editorHandlerRow } = item, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
3068
- item.sdId = hash(remain);
3069
3079
  item.editorHandlerColumn = item.editorHandlerColumn || {};
3070
3080
  const { columns } = gridOption;
3071
3081
  for (const col of columns) {
@@ -3078,6 +3088,9 @@ class SdEditorHandlerRowPipe {
3078
3088
  item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible$1).call(this, col, item) });
3079
3089
  }
3080
3090
  }
3091
+ this.zone.run(() => {
3092
+ item.sdId = CalculateSdId(item);
3093
+ });
3081
3094
  return item.editorHandlerRow;
3082
3095
  }
3083
3096
  }
@@ -3086,6 +3099,9 @@ SdEditorHandlerRowPipe.decorators = [
3086
3099
  { type: Pipe, args: [{
3087
3100
  name: 'sdEditorHandlerRow'
3088
3101
  },] }
3102
+ ];
3103
+ SdEditorHandlerRowPipe.ctorParameters = () => [
3104
+ { type: NgZone }
3089
3105
  ];
3090
3106
 
3091
3107
  var _previous, _delay;