@sd-angular/core 1.2.39 → 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-api.umd.js +1 -1
- package/bundles/sd-angular-core-api.umd.js.map +1 -1
- package/bundles/sd-angular-core-api.umd.min.js +1 -1
- package/bundles/sd-angular-core-api.umd.min.js.map +1 -1
- 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/bundles/sd-angular-core-notify.umd.js +16 -7
- package/bundles/sd-angular-core-notify.umd.js.map +1 -1
- package/bundles/sd-angular-core-notify.umd.min.js +2 -2
- package/bundles/sd-angular-core-notify.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js +4 -4
- 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/api/src/lib/api.service.js +2 -2
- 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/esm2015/notify/src/lib/configurations/notify.configuration.js +3 -0
- package/esm2015/notify/src/lib/notify.service.js +16 -9
- package/esm2015/notify/src/public-api.js +2 -1
- package/esm2015/upload-excel/src/lib/upload-excel.component.js +5 -5
- package/fesm2015/sd-angular-core-api.js +1 -1
- package/fesm2015/sd-angular-core-api.js.map +1 -1
- package/fesm2015/sd-angular-core-grid-material.js +25 -9
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-notify.js +17 -9
- package/fesm2015/sd-angular-core-notify.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-excel.js +4 -4
- 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/notify/sd-angular-core-notify.metadata.json +1 -1
- package/notify/src/lib/configurations/notify.configuration.d.ts +5 -0
- package/notify/src/lib/notify.service.d.ts +3 -1
- package/notify/src/public-api.d.ts +1 -0
- package/package.json +1 -1
- package/{sd-angular-core-1.2.39.tgz → sd-angular-core-1.2.42.tgz} +0 -0
- package/upload-excel/sd-angular-core-upload-excel.metadata.json +1 -1
- package/upload-excel/src/lib/upload-excel.component.d.ts +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
|
|
1193
|
-
|
|
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;
|