@sd-angular/core 1.2.41 → 1.2.42
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.
- package/bundles/sd-angular-core-grid-material.umd.js +26 -10
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/esm2015/grid-material/src/lib/functions/calculate-sd-id.js +7 -0
- package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +15 -8
- package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +12 -8
- package/fesm2015/sd-angular-core-grid-material.js +25 -9
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/functions/calculate-sd-id.d.ts +2 -0
- package/grid-material/src/lib/pipes/editor-handler-column.pipe.d.ts +3 -1
- package/grid-material/src/lib/pipes/editor-handler-row.pipe.d.ts +3 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.2.41.tgz → sd-angular-core-1.2.42.tgz} +0 -0
|
@@ -1727,9 +1727,15 @@
|
|
|
1727
1727
|
},] }
|
|
1728
1728
|
];
|
|
1729
1729
|
|
|
1730
|
+
var CalculateSdId = function (item) {
|
|
1731
|
+
var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, expandDetail = item.expandDetail, isExpanded = item.isExpanded, isExpanding = item.isExpanding, isSelected = item.isSelected, sdGroup = item.sdGroup, selectable = item.selectable, actions = item.actions, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, editorHandlerRow = item.editorHandlerRow, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
|
|
1732
|
+
return hash__default['default'](remain);
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1730
1735
|
var _visible;
|
|
1731
1736
|
var SdEditorHandlerColumnPipe = /** @class */ (function () {
|
|
1732
|
-
function SdEditorHandlerColumnPipe() {
|
|
1737
|
+
function SdEditorHandlerColumnPipe(zone) {
|
|
1738
|
+
this.zone = zone;
|
|
1733
1739
|
_visible.set(this, function (col, item) {
|
|
1734
1740
|
if (col.type === 'children' || col.type === 'children-col') {
|
|
1735
1741
|
return false;
|
|
@@ -1746,9 +1752,9 @@
|
|
|
1746
1752
|
}
|
|
1747
1753
|
SdEditorHandlerColumnPipe.prototype.transform = function (value, item, gridOption) {
|
|
1748
1754
|
var e_1, _a, e_2, _b;
|
|
1749
|
-
var
|
|
1750
|
-
|
|
1751
|
-
if (sdId === key && editorHandlerColumn) {
|
|
1755
|
+
var key = CalculateSdId(item);
|
|
1756
|
+
console.log(value, item.sdId, key);
|
|
1757
|
+
if (item.sdId === key && item.editorHandlerColumn) {
|
|
1752
1758
|
return true;
|
|
1753
1759
|
}
|
|
1754
1760
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
@@ -1783,6 +1789,9 @@
|
|
|
1783
1789
|
}
|
|
1784
1790
|
finally { if (e_1) throw e_1.error; }
|
|
1785
1791
|
}
|
|
1792
|
+
this.zone.run(function () {
|
|
1793
|
+
item.sdId = CalculateSdId(item);
|
|
1794
|
+
});
|
|
1786
1795
|
item.sdId = key;
|
|
1787
1796
|
return true;
|
|
1788
1797
|
};
|
|
@@ -1794,7 +1803,10 @@
|
|
|
1794
1803
|
name: 'sdEditorHandlerColumn'
|
|
1795
1804
|
},] },
|
|
1796
1805
|
{ type: core.Injectable }
|
|
1797
|
-
];
|
|
1806
|
+
];
|
|
1807
|
+
SdEditorHandlerColumnPipe.ctorParameters = function () { return [
|
|
1808
|
+
{ type: core.NgZone }
|
|
1809
|
+
]; };
|
|
1798
1810
|
|
|
1799
1811
|
var _paginator, _sort, _subscription$1, _optionChanges, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
|
|
1800
1812
|
var SdGridMaterial = /** @class */ (function () {
|
|
@@ -4131,7 +4143,8 @@
|
|
|
4131
4143
|
|
|
4132
4144
|
var _visible$1;
|
|
4133
4145
|
var SdEditorHandlerRowPipe = /** @class */ (function () {
|
|
4134
|
-
function SdEditorHandlerRowPipe() {
|
|
4146
|
+
function SdEditorHandlerRowPipe(zone) {
|
|
4147
|
+
this.zone = zone;
|
|
4135
4148
|
_visible$1.set(this, function (col, item) {
|
|
4136
4149
|
if (col.type === 'children' || col.type === 'children-col') {
|
|
4137
4150
|
return false;
|
|
@@ -4175,9 +4188,6 @@
|
|
|
4175
4188
|
}
|
|
4176
4189
|
item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
|
|
4177
4190
|
}
|
|
4178
|
-
// const { sdId, editorHandlerColumn, ...remain } = item;
|
|
4179
|
-
var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, expandDetail = item.expandDetail, isExpanded = item.isExpanded, isExpanding = item.isExpanding, isSelected = item.isSelected, sdGroup = item.sdGroup, selectable = item.selectable, actions = item.actions, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, editorHandlerRow = item.editorHandlerRow, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
|
|
4180
|
-
item.sdId = hash__default['default'](remain);
|
|
4181
4191
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
4182
4192
|
var columns = gridOption.columns;
|
|
4183
4193
|
try {
|
|
@@ -4210,6 +4220,9 @@
|
|
|
4210
4220
|
}
|
|
4211
4221
|
finally { if (e_1) throw e_1.error; }
|
|
4212
4222
|
}
|
|
4223
|
+
this.zone.run(function () {
|
|
4224
|
+
item.sdId = CalculateSdId(item);
|
|
4225
|
+
});
|
|
4213
4226
|
return item.editorHandlerRow;
|
|
4214
4227
|
};
|
|
4215
4228
|
return SdEditorHandlerRowPipe;
|
|
@@ -4219,7 +4232,10 @@
|
|
|
4219
4232
|
{ type: core.Pipe, args: [{
|
|
4220
4233
|
name: 'sdEditorHandlerRow'
|
|
4221
4234
|
},] }
|
|
4222
|
-
];
|
|
4235
|
+
];
|
|
4236
|
+
SdEditorHandlerRowPipe.ctorParameters = function () { return [
|
|
4237
|
+
{ type: core.NgZone }
|
|
4238
|
+
]; };
|
|
4223
4239
|
|
|
4224
4240
|
var _previous, _delay;
|
|
4225
4241
|
var SdEditorValidatePipe = /** @class */ (function () {
|