@sd-angular/core 1.1.36 → 1.1.39
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 +9 -27
- 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/pipes/column-values.pipe.js +5 -9
- package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +5 -20
- package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +2 -2
- package/fesm2015/sd-angular-core-grid-material.js +9 -28
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.1.36.tgz → sd-angular-core-1.1.39.tgz} +0 -0
|
@@ -1669,28 +1669,25 @@
|
|
|
1669
1669
|
return [2 /*return*/, value];
|
|
1670
1670
|
}
|
|
1671
1671
|
_f = column.option, items = _f.items, valueField = _f.valueField, displayField = _f.displayField;
|
|
1672
|
-
if (!(typeof (items) === 'function')) return [3 /*break*/, 3];
|
|
1673
1672
|
key = hash__namespace(Object.assign(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column), { value: value }));
|
|
1673
|
+
if (!(typeof (items) === 'function')) return [3 /*break*/, 3];
|
|
1674
1674
|
if (!!__classPrivateFieldGet(this, _cache$1)[key]) return [3 /*break*/, 2];
|
|
1675
1675
|
return [4 /*yield*/, items(value, true)];
|
|
1676
1676
|
case 1:
|
|
1677
1677
|
values = _g.sent();
|
|
1678
1678
|
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1679
|
-
|
|
1680
|
-
obj: Array.toObject(values, valueField)
|
|
1679
|
+
result: ((_d = values === null || values === void 0 ? void 0 : values.find(function (e) { return (e === null || e === void 0 ? void 0 : e[valueField]) === value; })) === null || _d === void 0 ? void 0 : _d[displayField]) || value
|
|
1681
1680
|
};
|
|
1682
1681
|
_g.label = 2;
|
|
1683
1682
|
case 2: return [3 /*break*/, 4];
|
|
1684
1683
|
case 3:
|
|
1685
|
-
key = hash__namespace(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column));
|
|
1686
1684
|
if (!__classPrivateFieldGet(this, _cache$1)[key]) {
|
|
1687
1685
|
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1688
|
-
items: items || []
|
|
1689
|
-
obj: Array.toObject(items, valueField)
|
|
1686
|
+
result: ((_e = items === null || items === void 0 ? void 0 : items.find(function (e) { return (e === null || e === void 0 ? void 0 : e[valueField]) === value; })) === null || _e === void 0 ? void 0 : _e[displayField]) || value
|
|
1690
1687
|
};
|
|
1691
1688
|
}
|
|
1692
1689
|
_g.label = 4;
|
|
1693
|
-
case 4: return [2 /*return*/,
|
|
1690
|
+
case 4: return [2 /*return*/, __classPrivateFieldGet(this, _cache$1)[key].result];
|
|
1694
1691
|
}
|
|
1695
1692
|
});
|
|
1696
1693
|
}); };
|
|
@@ -4027,7 +4024,7 @@
|
|
|
4027
4024
|
item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
|
|
4028
4025
|
}
|
|
4029
4026
|
// const { sdId, editorHandlerColumn, ...remain } = item;
|
|
4030
|
-
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, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage"]);
|
|
4027
|
+
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"]);
|
|
4031
4028
|
item.sdId = hash__default['default'](remain);
|
|
4032
4029
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
4033
4030
|
var columns = gridOption.columns;
|
|
@@ -4077,10 +4074,11 @@
|
|
|
4077
4074
|
if (column.type === 'children' || column.type === 'children-col') {
|
|
4078
4075
|
return;
|
|
4079
4076
|
}
|
|
4080
|
-
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, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage"]);
|
|
4077
|
+
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"]);
|
|
4081
4078
|
var key = hash__default['default'](remain);
|
|
4082
|
-
|
|
4083
|
-
|
|
4079
|
+
console.log(value, column.field, item.sdId, key);
|
|
4080
|
+
if (sdId === key && editorHandlerColumn) {
|
|
4081
|
+
return true;
|
|
4084
4082
|
}
|
|
4085
4083
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
4086
4084
|
var columns = gridOption.columns;
|
|
@@ -4097,22 +4095,6 @@
|
|
|
4097
4095
|
}
|
|
4098
4096
|
finally { if (e_1) throw e_1.error; }
|
|
4099
4097
|
}
|
|
4100
|
-
// const { sdId, editorHandlerColumn, ...remain } = item;
|
|
4101
|
-
// const {
|
|
4102
|
-
// sdId,
|
|
4103
|
-
// editorHandlerColumn,
|
|
4104
|
-
// expandDetail,
|
|
4105
|
-
// isExpanded,
|
|
4106
|
-
// isExpanding,
|
|
4107
|
-
// isSelected,
|
|
4108
|
-
// sdGroup,
|
|
4109
|
-
// selectable,
|
|
4110
|
-
// actions,
|
|
4111
|
-
// editorHandlerRow,
|
|
4112
|
-
// groupedActions,
|
|
4113
|
-
// originItem,
|
|
4114
|
-
// editorErrorMessage,
|
|
4115
|
-
// ...remain } = item;
|
|
4116
4098
|
item.sdId = key;
|
|
4117
4099
|
return true;
|
|
4118
4100
|
};
|