@sd-angular/core 1.3.96 → 1.3.97
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 +15 -14
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/esm2015/grid-material/src/lib/grid-material.component.js +16 -15
- package/esm2015/grid-material/src/lib/services/grid-filter/grid-filter.model.js +1 -1
- package/esm2015/grid-material/src/lib/services/grid-filter/grid-filter.service.js +2 -2
- package/fesm2015/sd-angular-core-grid-material.js +16 -15
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.96.tgz → sd-angular-core-1.3.97.tgz} +0 -0
|
@@ -1687,7 +1687,7 @@
|
|
|
1687
1687
|
function SdGridFilterService(settingService) {
|
|
1688
1688
|
var _this = this;
|
|
1689
1689
|
this.settingService = settingService;
|
|
1690
|
-
_prefix$1.set(this, '
|
|
1690
|
+
_prefix$1.set(this, 'GRID-FILTER');
|
|
1691
1691
|
this.register = function (key, args) {
|
|
1692
1692
|
var cacheSession = false;
|
|
1693
1693
|
if (!key) {
|
|
@@ -1876,7 +1876,7 @@
|
|
|
1876
1876
|
{ type: setting.SdSettingService }
|
|
1877
1877
|
]; };
|
|
1878
1878
|
|
|
1879
|
-
var _localItems, _paginator, _sort, _subscription$2, _reload, _loadCompleted, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _loadFilterRegister, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
|
|
1879
|
+
var _optionChanges, _localItems, _paginator, _sort, _subscription$2, _reload, _loadCompleted, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _loadFilterRegister, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
|
|
1880
1880
|
var SdGridMaterial = /** @class */ (function () {
|
|
1881
1881
|
function SdGridMaterial(ref, configuration, gridConfigurationService, exportService, notifyService, columnValuesPipe, gridFilterService, editorHandlerColumnPipe) {
|
|
1882
1882
|
var _this = this;
|
|
@@ -1889,6 +1889,7 @@
|
|
|
1889
1889
|
this.gridFilterService = gridFilterService;
|
|
1890
1890
|
this.editorHandlerColumnPipe = editorHandlerColumnPipe;
|
|
1891
1891
|
this.key = uuid.v4();
|
|
1892
|
+
_optionChanges.set(this, new rxjs.Subject());
|
|
1892
1893
|
_localItems.set(this, []);
|
|
1893
1894
|
this.items = [];
|
|
1894
1895
|
this.selectedItems = [];
|
|
@@ -1939,7 +1940,6 @@
|
|
|
1939
1940
|
});
|
|
1940
1941
|
_initFilterDef.set(this, function () {
|
|
1941
1942
|
var e_2, _3;
|
|
1942
|
-
var _a;
|
|
1943
1943
|
_this.filterDefs = [];
|
|
1944
1944
|
try {
|
|
1945
1945
|
for (var _4 = __values(_this.sdFilterDefs), _5 = _4.next(); !_5.done; _5 = _4.next()) {
|
|
@@ -1954,9 +1954,9 @@
|
|
|
1954
1954
|
}
|
|
1955
1955
|
finally { if (e_2) throw e_2.error; }
|
|
1956
1956
|
}
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1959
|
-
}
|
|
1957
|
+
// if (this.filterDefs?.length) {
|
|
1958
|
+
// this.#loadFilterRegister();
|
|
1959
|
+
// }
|
|
1960
1960
|
});
|
|
1961
1961
|
_initFooterDef.set(this, function () {
|
|
1962
1962
|
var e_3, _3;
|
|
@@ -3049,7 +3049,7 @@
|
|
|
3049
3049
|
if (option) {
|
|
3050
3050
|
option = __classPrivateFieldGet(this, _initConfiguration).call(this, option);
|
|
3051
3051
|
this.gridOption = option;
|
|
3052
|
-
|
|
3052
|
+
// this.#loadFilterRegister();
|
|
3053
3053
|
__classPrivateFieldSet(this, _loadCompleted, false);
|
|
3054
3054
|
// this.#reload.next({
|
|
3055
3055
|
// force: true,
|
|
@@ -3057,6 +3057,7 @@
|
|
|
3057
3057
|
var configuration = this.gridConfigurationService.init(this.key, this.gridOption);
|
|
3058
3058
|
this.gridConfigurationObserver = configuration.observer;
|
|
3059
3059
|
configuration.load();
|
|
3060
|
+
__classPrivateFieldGet(this, _optionChanges).next(this.gridOption);
|
|
3060
3061
|
}
|
|
3061
3062
|
},
|
|
3062
3063
|
enumerable: false,
|
|
@@ -3114,12 +3115,12 @@
|
|
|
3114
3115
|
__classPrivateFieldGet(this, _subscription$2).add(this.sdCellDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initCellDef)));
|
|
3115
3116
|
__classPrivateFieldGet(this, _subscription$2).add(this.sdFooterDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initFooterDef)));
|
|
3116
3117
|
__classPrivateFieldGet(this, _subscription$2).add(this.sdFilterDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initFilterDef)));
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3118
|
+
__classPrivateFieldGet(this, _subscription$2).add(rxjs.combineLatest([
|
|
3119
|
+
__classPrivateFieldGet(this, _optionChanges).pipe(operators.startWith(this.gridOption)),
|
|
3120
|
+
this.sdFilterDefs.changes.pipe(operators.startWith(this.filterDefs))
|
|
3121
|
+
]).subscribe(function (a) {
|
|
3122
|
+
__classPrivateFieldGet(_this, _loadFilterRegister).call(_this);
|
|
3123
|
+
}));
|
|
3123
3124
|
this.ref.detectChanges();
|
|
3124
3125
|
};
|
|
3125
3126
|
SdGridMaterial.prototype.ngOnDestroy = function () {
|
|
@@ -3182,7 +3183,7 @@
|
|
|
3182
3183
|
});
|
|
3183
3184
|
return SdGridMaterial;
|
|
3184
3185
|
}());
|
|
3185
|
-
_localItems = new WeakMap(), _paginator = new WeakMap(), _sort = new WeakMap(), _subscription$2 = new WeakMap(), _reload = new WeakMap(), _loadCompleted = new WeakMap(), _initCellDef = new WeakMap(), _initFilterDef = new WeakMap(), _initFooterDef = new WeakMap(), _filterExportInfo = new WeakMap(), _initConfiguration = new WeakMap(), _loadFilterRegister = new WeakMap(), _filterLocal = new WeakMap(), _getFilter = new WeakMap(), _load$1 = new WeakMap(), _render = new WeakMap(), _exportedItems = new WeakMap(), _allColumns = new WeakMap(), _allExportedColumns = new WeakMap(), _onExport = new WeakMap(), _updateSelectedItems = new WeakMap();
|
|
3186
|
+
_optionChanges = new WeakMap(), _localItems = new WeakMap(), _paginator = new WeakMap(), _sort = new WeakMap(), _subscription$2 = new WeakMap(), _reload = new WeakMap(), _loadCompleted = new WeakMap(), _initCellDef = new WeakMap(), _initFilterDef = new WeakMap(), _initFooterDef = new WeakMap(), _filterExportInfo = new WeakMap(), _initConfiguration = new WeakMap(), _loadFilterRegister = new WeakMap(), _filterLocal = new WeakMap(), _getFilter = new WeakMap(), _load$1 = new WeakMap(), _render = new WeakMap(), _exportedItems = new WeakMap(), _allColumns = new WeakMap(), _allExportedColumns = new WeakMap(), _onExport = new WeakMap(), _updateSelectedItems = new WeakMap();
|
|
3186
3187
|
SdGridMaterial.decorators = [
|
|
3187
3188
|
{ type: core.Component, args: [{
|
|
3188
3189
|
selector: 'sd-grid-material',
|