@sd-angular/core 0.0.976 → 0.0.980

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 (33) hide show
  1. package/bundles/sd-angular-core-grid-material.umd.js +22 -19
  2. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  4. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  5. package/bundles/sd-angular-core-select-editor.umd.js.map +1 -1
  6. package/bundles/sd-angular-core-select-editor.umd.min.js.map +1 -1
  7. package/bundles/sd-angular-core-select.umd.js +47 -2
  8. package/bundles/sd-angular-core-select.umd.js.map +1 -1
  9. package/bundles/sd-angular-core-select.umd.min.js +2 -2
  10. package/bundles/sd-angular-core-select.umd.min.js.map +1 -1
  11. package/esm2015/grid-material/sd-angular-core-grid-material.js +3 -2
  12. package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +2 -2
  13. package/esm2015/grid-material/src/lib/grid-material.module.js +3 -1
  14. package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
  15. package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +2 -6
  16. package/esm2015/grid-material/src/lib/pipes/sd-id.pipe.js +16 -0
  17. package/esm2015/grid-material/src/lib/pipes/selection-disable.pipe.js +2 -2
  18. package/esm2015/select/src/lib/select.component.js +35 -13
  19. package/esm2015/select-editor/src/lib/select-editor.component.js +1 -1
  20. package/fesm2015/sd-angular-core-grid-material.js +18 -8
  21. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  22. package/fesm2015/sd-angular-core-select-editor.js.map +1 -1
  23. package/fesm2015/sd-angular-core-select.js +34 -12
  24. package/fesm2015/sd-angular-core-select.js.map +1 -1
  25. package/grid-material/sd-angular-core-grid-material.d.ts +2 -1
  26. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  27. package/grid-material/src/lib/models/grid-column.model.d.ts +6 -11
  28. package/grid-material/src/lib/pipes/editor-handler-column.pipe.d.ts +1 -2
  29. package/grid-material/src/lib/pipes/sd-id.pipe.d.ts +5 -0
  30. package/package.json +1 -1
  31. package/{sd-angular-core-0.0.976.tgz → sd-angular-core-0.0.980.tgz} +0 -0
  32. package/select/sd-angular-core-select.metadata.json +1 -1
  33. package/select/src/lib/select.component.d.ts +1 -0
@@ -3487,7 +3487,7 @@
3487
3487
  this.transform = function (selectedItems, rowData, selection) {
3488
3488
  var e_1, _a, e_2, _b;
3489
3489
  var disabled = selection.disabled, actions = selection.actions;
3490
- if (!actions.length) {
3490
+ if (!(actions === null || actions === void 0 ? void 0 : actions.length)) {
3491
3491
  if (!disabled) {
3492
3492
  return false;
3493
3493
  }
@@ -3779,7 +3779,7 @@
3779
3779
  SdDesktopCell.decorators = [
3780
3780
  { type: core.Component, args: [{
3781
3781
  selector: 'sd-desktop-cell',
3782
- template: "<ng-container *ngIf=\"column && item\">\r\n <ng-container *ngIf=\"item.editorHandlerRow?.visible;else useView\">\r\n <ng-container *sdLet=\"item[column.field] | sdEditorHandlerColumn:item:column:gridOption\">\r\n <ng-container *ngIf=\"item.editorHandlerColumn[column.field]?.visible;else useView\">\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx, isEdited: true }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-editor *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [column]=\"column\" [item]=\"item\">\r\n </sd-desktop-cell-editor>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #useView>\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-view *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [key]=\"key\" [column]=\"column\" [item]=\"item\">\r\n </sd-desktop-cell-view>\r\n </ng-template>\r\n</ng-container>",
3782
+ template: "<ng-container *ngIf=\"column && item\">\r\n <ng-container *ngIf=\"item.editorHandlerRow?.visible;else useView\">\r\n <ng-container *sdLet=\"item[column.field] | sdId:item\">\r\n <ng-container *sdLet=\"item.sdId | sdEditorHandlerColumn:item:column\">\r\n <ng-container *ngIf=\"item.editorHandlerColumn[column.field]?.visible;else useView\">\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx, isEdited: true }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-editor *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [column]=\"column\" [item]=\"item\">\r\n </sd-desktop-cell-editor>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #useView>\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-view *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [key]=\"key\" [column]=\"column\" [item]=\"item\">\r\n </sd-desktop-cell-view>\r\n </ng-template>\r\n</ng-container>",
3783
3783
  changeDetection: core.ChangeDetectionStrategy.OnPush
3784
3784
  },] }
3785
3785
  ];
@@ -3883,27 +3883,12 @@
3883
3883
  return true;
3884
3884
  });
3885
3885
  }
3886
- SdEditorHandlerColumnPipe.prototype.transform = function (value, item, column, gridOption) {
3887
- var e_1, _c;
3886
+ SdEditorHandlerColumnPipe.prototype.transform = function (id, item, column) {
3888
3887
  if (column.type === 'children' || column.type === 'children-col') {
3889
3888
  return;
3890
3889
  }
3891
- var columns = gridOption.columns;
3892
3890
  item.editorHandlerColumn = item.editorHandlerColumn || {};
3893
3891
  item.editorHandlerColumn[column.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[column.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, column, item) });
3894
- try {
3895
- for (var _d = __values(columns.filter(function (e) { var _a, _b; return (_b = (_a = column.editor) === null || _a === void 0 ? void 0 : _a.relatedColumns) === null || _b === void 0 ? void 0 : _b.includes(e.field); })), _e = _d.next(); !_e.done; _e = _d.next()) {
3896
- var col = _e.value;
3897
- item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, col, item) });
3898
- }
3899
- }
3900
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3901
- finally {
3902
- try {
3903
- if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
3904
- }
3905
- finally { if (e_1) throw e_1.error; }
3906
- }
3907
3892
  var sdId = item.sdId, remain = __rest(item, ["sdId"]);
3908
3893
  item.sdId = hash__namespace(remain);
3909
3894
  return true;
@@ -4119,6 +4104,22 @@
4119
4104
  },] }
4120
4105
  ];
4121
4106
 
4107
+ var SdIdPipe = /** @class */ (function () {
4108
+ function SdIdPipe() {
4109
+ }
4110
+ SdIdPipe.prototype.transform = function (value, item) {
4111
+ var sdId = item.sdId, remain = __rest(item, ["sdId"]);
4112
+ item.sdId = hash__namespace(remain);
4113
+ return item.sdId;
4114
+ };
4115
+ return SdIdPipe;
4116
+ }());
4117
+ SdIdPipe.decorators = [
4118
+ { type: core.Pipe, args: [{
4119
+ name: 'sdId'
4120
+ },] }
4121
+ ];
4122
+
4122
4123
  var MatPaginatorIntlCro = /** @class */ (function (_super) {
4123
4124
  __extends(MatPaginatorIntlCro, _super);
4124
4125
  function MatPaginatorIntlCro() {
@@ -4219,6 +4220,7 @@
4219
4220
  SdEditorHandlerRowPipe,
4220
4221
  SdEditorHandlerColumnPipe,
4221
4222
  SdEditorValidatePipe,
4223
+ SdIdPipe,
4222
4224
  SdStyleRowCss
4223
4225
  ],
4224
4226
  exports: [
@@ -4276,7 +4278,8 @@
4276
4278
  exports.ɵbm = SdEditorHandlerRowPipe;
4277
4279
  exports.ɵbn = SdEditorHandlerColumnPipe;
4278
4280
  exports.ɵbo = SdEditorValidatePipe;
4279
- exports.ɵbp = SdStyleRowCss;
4281
+ exports.ɵbp = SdIdPipe;
4282
+ exports.ɵbq = SdStyleRowCss;
4280
4283
  exports.ɵc = SdPopupFilter;
4281
4284
  exports.ɵd = SdGridFilterService;
4282
4285
  exports.ɵe = SdPopupExport;