@sd-angular/core 1.3.96 → 1.3.98
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 +17 -15
- 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/components/grid-filter/grid-filter.component.js +3 -2
- 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 +18 -16
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/components/grid-filter/grid-filter.component.d.ts +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.96.tgz → sd-angular-core-1.3.98.tgz} +0 -0
|
@@ -542,13 +542,13 @@
|
|
|
542
542
|
this.ref = ref;
|
|
543
543
|
this.deviceService = deviceService;
|
|
544
544
|
this.columns = [];
|
|
545
|
+
this.externalFilters = [];
|
|
545
546
|
this.filterDefs = [];
|
|
546
547
|
this.filterRegisterChange = new rxjs.BehaviorSubject(null);
|
|
547
548
|
this.filterDef = {};
|
|
548
549
|
this.inlineFilterDef = {};
|
|
549
550
|
this.columnFilter = {};
|
|
550
551
|
this.inlineColumn = {};
|
|
551
|
-
this.externalFilters = [];
|
|
552
552
|
this.externalFilter = {};
|
|
553
553
|
this.inlineExternal = {};
|
|
554
554
|
_subscription$1.set(this, new rxjs.Subscription());
|
|
@@ -657,6 +657,7 @@
|
|
|
657
657
|
popupFilter: [{ type: core.ViewChild, args: [SdPopupFilter,] }],
|
|
658
658
|
_filter: [{ type: core.Input, args: ['filter',] }],
|
|
659
659
|
columns: [{ type: core.Input }],
|
|
660
|
+
externalFilters: [{ type: core.Input }],
|
|
660
661
|
filterDefs: [{ type: core.Input }],
|
|
661
662
|
_filterRegister: [{ type: core.Input, args: ['filterRegister',] }]
|
|
662
663
|
};
|
|
@@ -1687,7 +1688,7 @@
|
|
|
1687
1688
|
function SdGridFilterService(settingService) {
|
|
1688
1689
|
var _this = this;
|
|
1689
1690
|
this.settingService = settingService;
|
|
1690
|
-
_prefix$1.set(this, '
|
|
1691
|
+
_prefix$1.set(this, 'GRID-FILTER');
|
|
1691
1692
|
this.register = function (key, args) {
|
|
1692
1693
|
var cacheSession = false;
|
|
1693
1694
|
if (!key) {
|
|
@@ -1876,7 +1877,7 @@
|
|
|
1876
1877
|
{ type: setting.SdSettingService }
|
|
1877
1878
|
]; };
|
|
1878
1879
|
|
|
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;
|
|
1880
|
+
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
1881
|
var SdGridMaterial = /** @class */ (function () {
|
|
1881
1882
|
function SdGridMaterial(ref, configuration, gridConfigurationService, exportService, notifyService, columnValuesPipe, gridFilterService, editorHandlerColumnPipe) {
|
|
1882
1883
|
var _this = this;
|
|
@@ -1889,6 +1890,7 @@
|
|
|
1889
1890
|
this.gridFilterService = gridFilterService;
|
|
1890
1891
|
this.editorHandlerColumnPipe = editorHandlerColumnPipe;
|
|
1891
1892
|
this.key = uuid.v4();
|
|
1893
|
+
_optionChanges.set(this, new rxjs.Subject());
|
|
1892
1894
|
_localItems.set(this, []);
|
|
1893
1895
|
this.items = [];
|
|
1894
1896
|
this.selectedItems = [];
|
|
@@ -1939,7 +1941,6 @@
|
|
|
1939
1941
|
});
|
|
1940
1942
|
_initFilterDef.set(this, function () {
|
|
1941
1943
|
var e_2, _3;
|
|
1942
|
-
var _a;
|
|
1943
1944
|
_this.filterDefs = [];
|
|
1944
1945
|
try {
|
|
1945
1946
|
for (var _4 = __values(_this.sdFilterDefs), _5 = _4.next(); !_5.done; _5 = _4.next()) {
|
|
@@ -1954,9 +1955,9 @@
|
|
|
1954
1955
|
}
|
|
1955
1956
|
finally { if (e_2) throw e_2.error; }
|
|
1956
1957
|
}
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1959
|
-
}
|
|
1958
|
+
// if (this.filterDefs?.length) {
|
|
1959
|
+
// this.#loadFilterRegister();
|
|
1960
|
+
// }
|
|
1960
1961
|
});
|
|
1961
1962
|
_initFooterDef.set(this, function () {
|
|
1962
1963
|
var e_3, _3;
|
|
@@ -3049,7 +3050,7 @@
|
|
|
3049
3050
|
if (option) {
|
|
3050
3051
|
option = __classPrivateFieldGet(this, _initConfiguration).call(this, option);
|
|
3051
3052
|
this.gridOption = option;
|
|
3052
|
-
|
|
3053
|
+
// this.#loadFilterRegister();
|
|
3053
3054
|
__classPrivateFieldSet(this, _loadCompleted, false);
|
|
3054
3055
|
// this.#reload.next({
|
|
3055
3056
|
// force: true,
|
|
@@ -3057,6 +3058,7 @@
|
|
|
3057
3058
|
var configuration = this.gridConfigurationService.init(this.key, this.gridOption);
|
|
3058
3059
|
this.gridConfigurationObserver = configuration.observer;
|
|
3059
3060
|
configuration.load();
|
|
3061
|
+
__classPrivateFieldGet(this, _optionChanges).next(this.gridOption);
|
|
3060
3062
|
}
|
|
3061
3063
|
},
|
|
3062
3064
|
enumerable: false,
|
|
@@ -3114,12 +3116,12 @@
|
|
|
3114
3116
|
__classPrivateFieldGet(this, _subscription$2).add(this.sdCellDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initCellDef)));
|
|
3115
3117
|
__classPrivateFieldGet(this, _subscription$2).add(this.sdFooterDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initFooterDef)));
|
|
3116
3118
|
__classPrivateFieldGet(this, _subscription$2).add(this.sdFilterDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initFilterDef)));
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3119
|
+
__classPrivateFieldGet(this, _subscription$2).add(rxjs.combineLatest([
|
|
3120
|
+
__classPrivateFieldGet(this, _optionChanges).pipe(operators.startWith(this.gridOption)),
|
|
3121
|
+
this.sdFilterDefs.changes.pipe(operators.startWith(this.filterDefs))
|
|
3122
|
+
]).subscribe(function (a) {
|
|
3123
|
+
__classPrivateFieldGet(_this, _loadFilterRegister).call(_this);
|
|
3124
|
+
}));
|
|
3123
3125
|
this.ref.detectChanges();
|
|
3124
3126
|
};
|
|
3125
3127
|
SdGridMaterial.prototype.ngOnDestroy = function () {
|
|
@@ -3182,7 +3184,7 @@
|
|
|
3182
3184
|
});
|
|
3183
3185
|
return SdGridMaterial;
|
|
3184
3186
|
}());
|
|
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();
|
|
3187
|
+
_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
3188
|
SdGridMaterial.decorators = [
|
|
3187
3189
|
{ type: core.Component, args: [{
|
|
3188
3190
|
selector: 'sd-grid-material',
|