@sd-angular/core 1.0.46 → 1.0.47
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 +52 -121
- 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/sd-angular-core-grid-material.js +15 -16
- package/esm2015/grid-material/src/lib/grid-material.component.js +1 -1
- package/esm2015/grid-material/src/lib/grid-material.module.js +1 -3
- package/esm2015/grid-material/src/lib/pipes/column-transform.pipe.js +8 -9
- package/esm2015/grid-material/src/lib/pipes/column-values.pipe.js +7 -6
- package/fesm2015/sd-angular-core-grid-material.js +33 -89
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +14 -15
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/pipes/column-transform.pipe.d.ts +3 -3
- package/package.json +1 -1
- package/{sd-angular-core-1.0.46.tgz → sd-angular-core-1.0.47.tgz} +0 -0
- package/esm2015/grid-material/src/lib/services/grid.service.js +0 -59
- package/grid-material/src/lib/services/grid.service.d.ts +0 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('@angular/cdk/drag-drop'), require('rxjs/operators'), require('object-hash'), require('@sd-angular/core/setting'), require('ngx-device-detector'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('@sd-angular/core/export'), require('@angular/forms'), require('@sd-angular/core/quick-action'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/cdk/scrolling'), require('@angular/material/menu'), require('@angular/material/slider'), require('@angular/material/button'), require('@sd-angular/core/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sd-angular/core/grid-material', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', '@angular/cdk/drag-drop', 'rxjs/operators', 'object-hash', '@sd-angular/core/setting', 'ngx-device-detector', '@sd-angular/core/loading', '@sd-angular/core/translate', '@sd-angular/core/export', '@angular/forms', '@sd-angular/core/quick-action', '@angular/common', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/table', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/cdk/scrolling', '@angular/material/menu', '@angular/material/slider', '@angular/material/button', '@sd-angular/core/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['grid-material'] = {}), global['sd-angular'].core.common, global.ng.core, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.ng.cdk.dragDrop, global.rxjs.operators, global['object-hash'], global['sd-angular'].core.setting, global['ngx-device-detector'], global['sd-angular'].core.loading, global['sd-angular'].core.translate, global['sd-angular'].core.export, global.ng.forms, global['sd-angular'].core['quick-action'], global.ng.common, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.table, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.cdk.scrolling, global.ng.material.menu, global.ng.material.slider, global.ng.material.button, global['sd-angular'].core.
|
|
5
|
-
}(this, (function (exports, common$1, core, paginator, sort, animations, uuid, rxjs, notify, dragDrop, operators, hash, setting, ngxDeviceDetector, loading, translate, _export, forms, quickAction, common, formField, icon, input, table, progressSpinner, table$1, scrolling, menu, slider, button,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('@angular/cdk/drag-drop'), require('rxjs/operators'), require('object-hash'), require('@sd-angular/core/setting'), require('ngx-device-detector'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('@sd-angular/core/export'), require('@angular/forms'), require('@sd-angular/core/quick-action'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/cdk/scrolling'), require('@angular/material/menu'), require('@angular/material/slider'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('@sd-angular/core/form'), require('@angular/material/checkbox'), require('@angular/material/list'), require('@angular/material/divider'), require('@sd-angular/core/side-drawer'), require('@sd-angular/core/utility')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sd-angular/core/grid-material', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', '@angular/cdk/drag-drop', 'rxjs/operators', 'object-hash', '@sd-angular/core/setting', 'ngx-device-detector', '@sd-angular/core/loading', '@sd-angular/core/translate', '@sd-angular/core/export', '@angular/forms', '@sd-angular/core/quick-action', '@angular/common', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/table', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/cdk/scrolling', '@angular/material/menu', '@angular/material/slider', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/chips', '@angular/material/radio', '@angular/material/slide-toggle', '@sd-angular/core/form', '@angular/material/checkbox', '@angular/material/list', '@angular/material/divider', '@sd-angular/core/side-drawer', '@sd-angular/core/utility'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['grid-material'] = {}), global['sd-angular'].core.common, global.ng.core, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.ng.cdk.dragDrop, global.rxjs.operators, global['object-hash'], global['sd-angular'].core.setting, global['ngx-device-detector'], global['sd-angular'].core.loading, global['sd-angular'].core.translate, global['sd-angular'].core.export, global.ng.forms, global['sd-angular'].core['quick-action'], global.ng.common, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.table, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.cdk.scrolling, global.ng.material.menu, global.ng.material.slider, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.chips, global.ng.material.radio, global.ng.material.slideToggle, global['sd-angular'].core.form, global.ng.material.checkbox, global.ng.material.list, global.ng.material.divider, global['sd-angular'].core['side-drawer'], global['sd-angular'].core.utility));
|
|
5
|
+
}(this, (function (exports, common$1, core, paginator, sort, animations, uuid, rxjs, notify, dragDrop, operators, hash, setting, ngxDeviceDetector, loading, translate, _export, forms, quickAction, common, formField, icon, input, table, progressSpinner, table$1, scrolling, menu, slider, button, service, tooltip, chips, radio, slideToggle, form, checkbox, list, divider, sideDrawer, utility) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1648,10 +1648,11 @@
|
|
|
1648
1648
|
{ type: undefined, decorators: [{ type: core.Inject, args: [GRID_MATERIAL_CONFIG,] }, { type: core.Optional }] }
|
|
1649
1649
|
]; };
|
|
1650
1650
|
|
|
1651
|
-
var _cache$1;
|
|
1651
|
+
var _prefix$1, _cache$1;
|
|
1652
1652
|
var SdColumnValuesPipe = /** @class */ (function () {
|
|
1653
1653
|
function SdColumnValuesPipe() {
|
|
1654
1654
|
var _this = this;
|
|
1655
|
+
_prefix$1.set(this, 'a1e67660-8aa2-4c11-b02d-71a32188719f');
|
|
1655
1656
|
_cache$1.set(this, {});
|
|
1656
1657
|
this.transform = function (value, column) { return __awaiter(_this, void 0, void 0, function () {
|
|
1657
1658
|
var _a, _b, _c, _d, _e, _f, items, valueField, displayField, key, values;
|
|
@@ -1663,7 +1664,7 @@
|
|
|
1663
1664
|
}
|
|
1664
1665
|
_f = column.option, items = _f.items, valueField = _f.valueField, displayField = _f.displayField;
|
|
1665
1666
|
if (!(typeof (items) === 'function')) return [3 /*break*/, 3];
|
|
1666
|
-
key = hash__namespace(Object.assign(Object.assign({}, column), { value: value }));
|
|
1667
|
+
key = hash__namespace(Object.assign(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column), { value: value }));
|
|
1667
1668
|
if (!!__classPrivateFieldGet(this, _cache$1)[key]) return [3 /*break*/, 2];
|
|
1668
1669
|
return [4 /*yield*/, items(value, true)];
|
|
1669
1670
|
case 1:
|
|
@@ -1675,7 +1676,7 @@
|
|
|
1675
1676
|
_g.label = 2;
|
|
1676
1677
|
case 2: return [3 /*break*/, 4];
|
|
1677
1678
|
case 3:
|
|
1678
|
-
key = hash__namespace(Object.assign({}, column));
|
|
1679
|
+
key = hash__namespace(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column));
|
|
1679
1680
|
if (!__classPrivateFieldGet(this, _cache$1)[key]) {
|
|
1680
1681
|
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1681
1682
|
items: items || [],
|
|
@@ -1683,14 +1684,14 @@
|
|
|
1683
1684
|
};
|
|
1684
1685
|
}
|
|
1685
1686
|
_g.label = 4;
|
|
1686
|
-
case 4: return [2 /*return*/, (_e = (_d = __classPrivateFieldGet(this, _cache$1)[key].obj[
|
|
1687
|
+
case 4: return [2 /*return*/, (_e = (_d = __classPrivateFieldGet(this, _cache$1)[key].obj[value]) === null || _d === void 0 ? void 0 : _d[displayField]) !== null && _e !== void 0 ? _e : value];
|
|
1687
1688
|
}
|
|
1688
1689
|
});
|
|
1689
1690
|
}); };
|
|
1690
1691
|
}
|
|
1691
1692
|
return SdColumnValuesPipe;
|
|
1692
1693
|
}());
|
|
1693
|
-
_cache$1 = new WeakMap();
|
|
1694
|
+
_prefix$1 = new WeakMap(), _cache$1 = new WeakMap();
|
|
1694
1695
|
SdColumnValuesPipe.decorators = [
|
|
1695
1696
|
{ type: core.Pipe, args: [{
|
|
1696
1697
|
name: 'columnValues'
|
|
@@ -3066,96 +3067,28 @@
|
|
|
3066
3067
|
gridOption: [{ type: core.Input }]
|
|
3067
3068
|
};
|
|
3068
3069
|
|
|
3069
|
-
var _prefix$1, _cache$2;
|
|
3070
|
-
var SdGridService = /** @class */ (function () {
|
|
3071
|
-
function SdGridService(utilityService) {
|
|
3072
|
-
var _this = this;
|
|
3073
|
-
this.utilityService = utilityService;
|
|
3074
|
-
_prefix$1.set(this, 'a1e67660-8aa2-4c11-b02d-71a32188719f');
|
|
3075
|
-
_cache$2.set(this, {});
|
|
3076
|
-
this.loadValues = function (column, key) { return __awaiter(_this, void 0, void 0, function () {
|
|
3077
|
-
var _a, _b, _c, _d, hashKey, items;
|
|
3078
|
-
return __generator(this, function (_e) {
|
|
3079
|
-
switch (_e.label) {
|
|
3080
|
-
case 0:
|
|
3081
|
-
if (column.type !== 'values' || !((_a = column.option) === null || _a === void 0 ? void 0 : _a.items) || !((_b = column.option) === null || _b === void 0 ? void 0 : _b.valueField) || !((_c = column.option) === null || _c === void 0 ? void 0 : _c.displayField)) {
|
|
3082
|
-
return [2 /*return*/, {
|
|
3083
|
-
values: [],
|
|
3084
|
-
obj: {}
|
|
3085
|
-
}];
|
|
3086
|
-
}
|
|
3087
|
-
hashKey = hash__default['default']({
|
|
3088
|
-
prefix: __classPrivateFieldGet(this, _prefix$1),
|
|
3089
|
-
field: column.field,
|
|
3090
|
-
key: key,
|
|
3091
|
-
});
|
|
3092
|
-
if (!!__classPrivateFieldGet(this, _cache$2)[hashKey]) return [3 /*break*/, 4];
|
|
3093
|
-
items = [];
|
|
3094
|
-
if (!(typeof ((_d = column.option) === null || _d === void 0 ? void 0 : _d.items) === 'function')) return [3 /*break*/, 2];
|
|
3095
|
-
return [4 /*yield*/, column.option.items()];
|
|
3096
|
-
case 1:
|
|
3097
|
-
items = _e.sent();
|
|
3098
|
-
return [3 /*break*/, 3];
|
|
3099
|
-
case 2:
|
|
3100
|
-
items = column.option.items;
|
|
3101
|
-
_e.label = 3;
|
|
3102
|
-
case 3:
|
|
3103
|
-
__classPrivateFieldGet(this, _cache$2)[hashKey] = {
|
|
3104
|
-
values: items,
|
|
3105
|
-
obj: Array.toObject(items, column.option.valueField)
|
|
3106
|
-
};
|
|
3107
|
-
_e.label = 4;
|
|
3108
|
-
case 4: return [2 /*return*/, __classPrivateFieldGet(this, _cache$2)[hashKey]];
|
|
3109
|
-
}
|
|
3110
|
-
});
|
|
3111
|
-
}); };
|
|
3112
|
-
this.getValues = function (column, key) {
|
|
3113
|
-
var hashKey = hash__default['default']({
|
|
3114
|
-
prefix: __classPrivateFieldGet(_this, _prefix$1),
|
|
3115
|
-
field: column.field,
|
|
3116
|
-
key: key,
|
|
3117
|
-
});
|
|
3118
|
-
return __classPrivateFieldGet(_this, _cache$2)[hashKey] || {
|
|
3119
|
-
values: [],
|
|
3120
|
-
obj: {}
|
|
3121
|
-
};
|
|
3122
|
-
};
|
|
3123
|
-
}
|
|
3124
|
-
return SdGridService;
|
|
3125
|
-
}());
|
|
3126
|
-
_prefix$1 = new WeakMap(), _cache$2 = new WeakMap();
|
|
3127
|
-
SdGridService.decorators = [
|
|
3128
|
-
{ type: core.Injectable }
|
|
3129
|
-
];
|
|
3130
|
-
SdGridService.ctorParameters = function () { return [
|
|
3131
|
-
{ type: utility.SdUtilityService }
|
|
3132
|
-
]; };
|
|
3133
|
-
|
|
3134
3070
|
var SdColumnTransformPipe = /** @class */ (function () {
|
|
3135
|
-
function SdColumnTransformPipe(
|
|
3136
|
-
this.
|
|
3071
|
+
function SdColumnTransformPipe(columnValuesPipe) {
|
|
3072
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
3137
3073
|
}
|
|
3138
3074
|
SdColumnTransformPipe.prototype.transform = function (value, rowData, column, key) {
|
|
3139
|
-
var _a, _b
|
|
3075
|
+
var _a, _b;
|
|
3140
3076
|
return __awaiter(this, void 0, void 0, function () {
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
switch (_f.label) {
|
|
3077
|
+
return __generator(this, function (_c) {
|
|
3078
|
+
switch (_c.label) {
|
|
3144
3079
|
case 0:
|
|
3145
3080
|
if (column === null || column === void 0 ? void 0 : column.transform) {
|
|
3146
3081
|
return [2 /*return*/, column.transform(value, rowData)];
|
|
3147
3082
|
}
|
|
3148
3083
|
if (!(column.type === 'values')) return [3 /*break*/, 2];
|
|
3149
|
-
return [4 /*yield*/, this.
|
|
3150
|
-
case 1:
|
|
3151
|
-
data = _f.sent();
|
|
3152
|
-
return [2 /*return*/, (_c = (_a = data.obj[value]) === null || _a === void 0 ? void 0 : _a[(_b = column.option) === null || _b === void 0 ? void 0 : _b.displayField]) !== null && _c !== void 0 ? _c : value];
|
|
3084
|
+
return [4 /*yield*/, this.columnValuesPipe.transform(value, column)];
|
|
3085
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
3153
3086
|
case 2:
|
|
3154
3087
|
if (column.type === 'number' && Number.isNumber(value)) {
|
|
3155
3088
|
return [2 /*return*/, Number.toVNCurrency(value)]; // this.decimalPipe.transform(value, '1.0-2');
|
|
3156
3089
|
}
|
|
3157
3090
|
if (column.type === 'bool') {
|
|
3158
|
-
return [2 /*return*/, value === true ? (((
|
|
3091
|
+
return [2 /*return*/, value === true ? (((_a = column.option) === null || _a === void 0 ? void 0 : _a.displayOnTrue) || 'True') : (((_b = column.option) === null || _b === void 0 ? void 0 : _b.displayOnFalse) || 'False')];
|
|
3159
3092
|
}
|
|
3160
3093
|
return [2 /*return*/, value];
|
|
3161
3094
|
}
|
|
@@ -3170,7 +3103,7 @@
|
|
|
3170
3103
|
},] }
|
|
3171
3104
|
];
|
|
3172
3105
|
SdColumnTransformPipe.ctorParameters = function () { return [
|
|
3173
|
-
{ type:
|
|
3106
|
+
{ type: SdColumnValuesPipe }
|
|
3174
3107
|
]; };
|
|
3175
3108
|
|
|
3176
3109
|
var SdFilterExternalPipe = /** @class */ (function () {
|
|
@@ -3421,7 +3354,7 @@
|
|
|
3421
3354
|
{ type: SdGridConfigurationService }
|
|
3422
3355
|
]; };
|
|
3423
3356
|
|
|
3424
|
-
var _cache$
|
|
3357
|
+
var _cache$2;
|
|
3425
3358
|
var SdPopupGridConfiguration = /** @class */ (function () {
|
|
3426
3359
|
function SdPopupGridConfiguration(ref, notifyService, translateService, gridConfigurationService) {
|
|
3427
3360
|
var _this = this;
|
|
@@ -3430,7 +3363,7 @@
|
|
|
3430
3363
|
this.translateService = translateService;
|
|
3431
3364
|
this.gridConfigurationService = gridConfigurationService;
|
|
3432
3365
|
this.changes = new core.EventEmitter();
|
|
3433
|
-
_cache$
|
|
3366
|
+
_cache$2.set(this, void 0);
|
|
3434
3367
|
this.isCreatingColumn = false;
|
|
3435
3368
|
this.selected = {};
|
|
3436
3369
|
this.disabledDrag = true;
|
|
@@ -3439,9 +3372,9 @@
|
|
|
3439
3372
|
return __generator(this, function (_c) {
|
|
3440
3373
|
switch (_c.label) {
|
|
3441
3374
|
case 0:
|
|
3442
|
-
__classPrivateFieldSet(this, _cache$
|
|
3375
|
+
__classPrivateFieldSet(this, _cache$2, this.gridConfigurationService.init(this.key, this.gridOption));
|
|
3443
3376
|
_b = this;
|
|
3444
|
-
return [4 /*yield*/, __classPrivateFieldGet(this, _cache$
|
|
3377
|
+
return [4 /*yield*/, __classPrivateFieldGet(this, _cache$2).get()];
|
|
3445
3378
|
case 1:
|
|
3446
3379
|
_b.configuration = _c.sent();
|
|
3447
3380
|
this.modal.open();
|
|
@@ -3450,7 +3383,7 @@
|
|
|
3450
3383
|
});
|
|
3451
3384
|
}); };
|
|
3452
3385
|
this.onSave = function () {
|
|
3453
|
-
__classPrivateFieldGet(_this, _cache$
|
|
3386
|
+
__classPrivateFieldGet(_this, _cache$2).set(_this.configuration);
|
|
3454
3387
|
_this.modal.close();
|
|
3455
3388
|
_this.ref.detectChanges();
|
|
3456
3389
|
};
|
|
@@ -3460,7 +3393,7 @@
|
|
|
3460
3393
|
return __generator(this, function (_b) {
|
|
3461
3394
|
translate = this.translateService.translate;
|
|
3462
3395
|
this.notifyService.confirm(translate('Reset grid configuration to default')).then(function () {
|
|
3463
|
-
__classPrivateFieldGet(_this, _cache$
|
|
3396
|
+
__classPrivateFieldGet(_this, _cache$2).remove();
|
|
3464
3397
|
_this.modal.close();
|
|
3465
3398
|
_this.ref.detectChanges();
|
|
3466
3399
|
});
|
|
@@ -3492,7 +3425,7 @@
|
|
|
3492
3425
|
generatedColumns: this.configuration.columns.filter(function (e) { var _a; return _this.selected[(_a = e.origin) === null || _a === void 0 ? void 0 : _a.field]; }).map(function (e) { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.field; })
|
|
3493
3426
|
};
|
|
3494
3427
|
this.configuration.columns.push(generatedColumn);
|
|
3495
|
-
this.configuration = __classPrivateFieldGet(this, _cache$
|
|
3428
|
+
this.configuration = __classPrivateFieldGet(this, _cache$2).set(this.configuration);
|
|
3496
3429
|
this.isCreatingColumn = false;
|
|
3497
3430
|
return [2 /*return*/];
|
|
3498
3431
|
});
|
|
@@ -3515,7 +3448,7 @@
|
|
|
3515
3448
|
};
|
|
3516
3449
|
return SdPopupGridConfiguration;
|
|
3517
3450
|
}());
|
|
3518
|
-
_cache$
|
|
3451
|
+
_cache$2 = new WeakMap();
|
|
3519
3452
|
SdPopupGridConfiguration.decorators = [
|
|
3520
3453
|
{ type: core.Component, args: [{
|
|
3521
3454
|
selector: 'sd-popup-grid-configuration',
|
|
@@ -3798,12 +3731,12 @@
|
|
|
3798
3731
|
},] }
|
|
3799
3732
|
];
|
|
3800
3733
|
|
|
3801
|
-
var _cache$
|
|
3734
|
+
var _cache$3;
|
|
3802
3735
|
var SdGeneratedColumnService = /** @class */ (function () {
|
|
3803
3736
|
function SdGeneratedColumnService(settingService) {
|
|
3804
3737
|
var _this = this;
|
|
3805
3738
|
this.settingService = settingService;
|
|
3806
|
-
_cache$
|
|
3739
|
+
_cache$3.set(this, {});
|
|
3807
3740
|
this.load = function (configuration) {
|
|
3808
3741
|
if (!(configuration === null || configuration === void 0 ? void 0 : configuration.key)) {
|
|
3809
3742
|
return null;
|
|
@@ -3812,22 +3745,22 @@
|
|
|
3812
3745
|
prefix: '260f5e94-5865-4425-8ced-b9c083c390dd',
|
|
3813
3746
|
key: configuration.key
|
|
3814
3747
|
});
|
|
3815
|
-
if (!__classPrivateFieldGet(_this, _cache$
|
|
3748
|
+
if (!__classPrivateFieldGet(_this, _cache$3)[key]) {
|
|
3816
3749
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.storage) === 'server') {
|
|
3817
|
-
__classPrivateFieldGet(_this, _cache$
|
|
3750
|
+
__classPrivateFieldGet(_this, _cache$3)[key] = _this.settingService.createServer(key, {
|
|
3818
3751
|
args: configuration === null || configuration === void 0 ? void 0 : configuration.args,
|
|
3819
3752
|
default: []
|
|
3820
3753
|
});
|
|
3821
3754
|
}
|
|
3822
3755
|
else {
|
|
3823
|
-
__classPrivateFieldGet(_this, _cache$
|
|
3756
|
+
__classPrivateFieldGet(_this, _cache$3)[key] = _this.settingService.create(key, {
|
|
3824
3757
|
type: configuration === null || configuration === void 0 ? void 0 : configuration.storage,
|
|
3825
3758
|
args: configuration === null || configuration === void 0 ? void 0 : configuration.args,
|
|
3826
3759
|
default: []
|
|
3827
3760
|
});
|
|
3828
3761
|
}
|
|
3829
3762
|
}
|
|
3830
|
-
return __classPrivateFieldGet(_this, _cache$
|
|
3763
|
+
return __classPrivateFieldGet(_this, _cache$3)[key];
|
|
3831
3764
|
};
|
|
3832
3765
|
this.loadSystem = function (configuration) {
|
|
3833
3766
|
var _a, _b;
|
|
@@ -3841,27 +3774,27 @@
|
|
|
3841
3774
|
prefix: '8b8050ca-1f44-4860-bad3-20e646c0d68f',
|
|
3842
3775
|
key: configuration.key
|
|
3843
3776
|
});
|
|
3844
|
-
if (!__classPrivateFieldGet(_this, _cache$
|
|
3777
|
+
if (!__classPrivateFieldGet(_this, _cache$3)[key]) {
|
|
3845
3778
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.storage) === 'server') {
|
|
3846
|
-
__classPrivateFieldGet(_this, _cache$
|
|
3779
|
+
__classPrivateFieldGet(_this, _cache$3)[key] = _this.settingService.createServer(key, {
|
|
3847
3780
|
args: (_a = configuration === null || configuration === void 0 ? void 0 : configuration.systemColumn) === null || _a === void 0 ? void 0 : _a.args,
|
|
3848
3781
|
default: []
|
|
3849
3782
|
});
|
|
3850
3783
|
}
|
|
3851
3784
|
else {
|
|
3852
|
-
__classPrivateFieldGet(_this, _cache$
|
|
3785
|
+
__classPrivateFieldGet(_this, _cache$3)[key] = _this.settingService.create(key, {
|
|
3853
3786
|
type: configuration === null || configuration === void 0 ? void 0 : configuration.storage,
|
|
3854
3787
|
args: (_b = configuration === null || configuration === void 0 ? void 0 : configuration.systemColumn) === null || _b === void 0 ? void 0 : _b.args,
|
|
3855
3788
|
default: []
|
|
3856
3789
|
});
|
|
3857
3790
|
}
|
|
3858
3791
|
}
|
|
3859
|
-
return __classPrivateFieldGet(_this, _cache$
|
|
3792
|
+
return __classPrivateFieldGet(_this, _cache$3)[key];
|
|
3860
3793
|
};
|
|
3861
3794
|
}
|
|
3862
3795
|
return SdGeneratedColumnService;
|
|
3863
3796
|
}());
|
|
3864
|
-
_cache$
|
|
3797
|
+
_cache$3 = new WeakMap();
|
|
3865
3798
|
SdGeneratedColumnService.decorators = [
|
|
3866
3799
|
{ type: core.Injectable }
|
|
3867
3800
|
];
|
|
@@ -4630,7 +4563,6 @@
|
|
|
4630
4563
|
common.DecimalPipe,
|
|
4631
4564
|
SdIdPipe,
|
|
4632
4565
|
table$1.CdkColumnDef,
|
|
4633
|
-
SdGridService,
|
|
4634
4566
|
SdGridFilterService,
|
|
4635
4567
|
SdGridConfigurationService,
|
|
4636
4568
|
SdGeneratedColumnService,
|
|
@@ -4658,21 +4590,20 @@
|
|
|
4658
4590
|
exports.ɵba = SdCommandTitlePipe;
|
|
4659
4591
|
exports.ɵbb = SdColumnHtmlTemplatePipe;
|
|
4660
4592
|
exports.ɵbc = SdColumnTransformPipe;
|
|
4661
|
-
exports.ɵbd =
|
|
4662
|
-
exports.ɵbe =
|
|
4663
|
-
exports.ɵbf =
|
|
4664
|
-
exports.ɵbg =
|
|
4665
|
-
exports.ɵbh =
|
|
4666
|
-
exports.ɵbi =
|
|
4667
|
-
exports.ɵbj =
|
|
4668
|
-
exports.ɵbk =
|
|
4669
|
-
exports.ɵbl =
|
|
4670
|
-
exports.ɵbm =
|
|
4671
|
-
exports.ɵbn =
|
|
4672
|
-
exports.ɵbo =
|
|
4673
|
-
exports.ɵbp =
|
|
4674
|
-
exports.ɵbq =
|
|
4675
|
-
exports.ɵbr = SdCellViewPipe;
|
|
4593
|
+
exports.ɵbd = SdColumnTooltipPipe;
|
|
4594
|
+
exports.ɵbe = SdColumnBadgePipe;
|
|
4595
|
+
exports.ɵbf = SdFilterColumnPipe;
|
|
4596
|
+
exports.ɵbg = SdFilterExternalPipe;
|
|
4597
|
+
exports.ɵbh = SdSelectionActionFilterPipe;
|
|
4598
|
+
exports.ɵbi = SdSelectionVisiblePipe;
|
|
4599
|
+
exports.ɵbj = SdSelectionDisablePipe;
|
|
4600
|
+
exports.ɵbk = SdSelectionVisibleSelectAllPipe;
|
|
4601
|
+
exports.ɵbl = SdEditorHandlerRowPipe;
|
|
4602
|
+
exports.ɵbm = SdEditorHandlerColumnPipe;
|
|
4603
|
+
exports.ɵbn = SdEditorValidatePipe;
|
|
4604
|
+
exports.ɵbo = SdIdPipe;
|
|
4605
|
+
exports.ɵbp = SdStyleRowCss;
|
|
4606
|
+
exports.ɵbq = SdCellViewPipe;
|
|
4676
4607
|
exports.ɵc = SdPopupFilter;
|
|
4677
4608
|
exports.ɵd = SdGridFilterService;
|
|
4678
4609
|
exports.ɵe = SdPopupExport;
|