@sd-angular/core 1.2.41 → 1.2.44
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 +25 -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/bundles/sd-angular-core-input-number.umd.js +61 -48
- package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.min.js +2 -2
- package/bundles/sd-angular-core-input-number.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-input.umd.js +2 -2
- package/bundles/sd-angular-core-input.umd.js.map +1 -1
- package/bundles/sd-angular-core-input.umd.min.js +1 -1
- package/bundles/sd-angular-core-input.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.min.js +1 -1
- package/bundles/sd-angular-core-upload-excel.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 +14 -8
- package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +12 -8
- package/esm2015/input/src/lib/input.component.js +3 -3
- package/esm2015/input-number/src/lib/input-number.component.js +55 -44
- package/esm2015/upload-excel/src/lib/upload-excel.component.js +2 -2
- package/fesm2015/sd-angular-core-grid-material.js +24 -9
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-input-number.js +54 -42
- package/fesm2015/sd-angular-core-input-number.js.map +1 -1
- package/fesm2015/sd-angular-core-input.js +2 -2
- package/fesm2015/sd-angular-core-input.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-excel.js +1 -1
- package/fesm2015/sd-angular-core-upload-excel.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/input-number/sd-angular-core-input-number.metadata.json +1 -1
- package/input-number/src/lib/input-number.component.d.ts +5 -6
- package/package.json +1 -1
- package/{sd-angular-core-1.2.41.tgz → sd-angular-core-1.2.44.tgz} +0 -0
- package/upload-excel/sd-angular-core-upload-excel.metadata.json +1 -1
|
@@ -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,8 @@
|
|
|
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
|
+
if (item.sdId === key && item.editorHandlerColumn) {
|
|
1752
1757
|
return true;
|
|
1753
1758
|
}
|
|
1754
1759
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
@@ -1783,6 +1788,9 @@
|
|
|
1783
1788
|
}
|
|
1784
1789
|
finally { if (e_1) throw e_1.error; }
|
|
1785
1790
|
}
|
|
1791
|
+
this.zone.run(function () {
|
|
1792
|
+
item.sdId = CalculateSdId(item);
|
|
1793
|
+
});
|
|
1786
1794
|
item.sdId = key;
|
|
1787
1795
|
return true;
|
|
1788
1796
|
};
|
|
@@ -1794,7 +1802,10 @@
|
|
|
1794
1802
|
name: 'sdEditorHandlerColumn'
|
|
1795
1803
|
},] },
|
|
1796
1804
|
{ type: core.Injectable }
|
|
1797
|
-
];
|
|
1805
|
+
];
|
|
1806
|
+
SdEditorHandlerColumnPipe.ctorParameters = function () { return [
|
|
1807
|
+
{ type: core.NgZone }
|
|
1808
|
+
]; };
|
|
1798
1809
|
|
|
1799
1810
|
var _paginator, _sort, _subscription$1, _optionChanges, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
|
|
1800
1811
|
var SdGridMaterial = /** @class */ (function () {
|
|
@@ -4131,7 +4142,8 @@
|
|
|
4131
4142
|
|
|
4132
4143
|
var _visible$1;
|
|
4133
4144
|
var SdEditorHandlerRowPipe = /** @class */ (function () {
|
|
4134
|
-
function SdEditorHandlerRowPipe() {
|
|
4145
|
+
function SdEditorHandlerRowPipe(zone) {
|
|
4146
|
+
this.zone = zone;
|
|
4135
4147
|
_visible$1.set(this, function (col, item) {
|
|
4136
4148
|
if (col.type === 'children' || col.type === 'children-col') {
|
|
4137
4149
|
return false;
|
|
@@ -4175,9 +4187,6 @@
|
|
|
4175
4187
|
}
|
|
4176
4188
|
item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
|
|
4177
4189
|
}
|
|
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
4190
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
4182
4191
|
var columns = gridOption.columns;
|
|
4183
4192
|
try {
|
|
@@ -4210,6 +4219,9 @@
|
|
|
4210
4219
|
}
|
|
4211
4220
|
finally { if (e_1) throw e_1.error; }
|
|
4212
4221
|
}
|
|
4222
|
+
this.zone.run(function () {
|
|
4223
|
+
item.sdId = CalculateSdId(item);
|
|
4224
|
+
});
|
|
4213
4225
|
return item.editorHandlerRow;
|
|
4214
4226
|
};
|
|
4215
4227
|
return SdEditorHandlerRowPipe;
|
|
@@ -4219,7 +4231,10 @@
|
|
|
4219
4231
|
{ type: core.Pipe, args: [{
|
|
4220
4232
|
name: 'sdEditorHandlerRow'
|
|
4221
4233
|
},] }
|
|
4222
|
-
];
|
|
4234
|
+
];
|
|
4235
|
+
SdEditorHandlerRowPipe.ctorParameters = function () { return [
|
|
4236
|
+
{ type: core.NgZone }
|
|
4237
|
+
]; };
|
|
4223
4238
|
|
|
4224
4239
|
var _previous, _delay;
|
|
4225
4240
|
var SdEditorValidatePipe = /** @class */ (function () {
|