@sd-angular/core 1.3.22 → 1.3.23
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 +22 -13
- 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 +17 -10
- package/esm2015/grid-material/src/lib/grid-material.component.js +8 -6
- package/fesm2015/sd-angular-core-grid-material.js +24 -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/grid-material/src/lib/components/grid-filter/grid-filter.component.d.ts +2 -2
- package/package.json +1 -1
- package/{sd-angular-core-1.3.22.tgz → sd-angular-core-1.3.23.tgz} +0 -0
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
_filterOptionChanges.set(this, new rxjs.Subject());
|
|
570
570
|
this.columns = [];
|
|
571
571
|
this.filterDefs = [];
|
|
572
|
-
this.filterChange = new rxjs.
|
|
572
|
+
this.filterChange = new rxjs.BehaviorSubject(false);
|
|
573
573
|
this.filterDef = {};
|
|
574
574
|
this.inlineFilterDef = {};
|
|
575
575
|
this.columnFilter = {};
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
}
|
|
657
657
|
});
|
|
658
658
|
this.onFilter = function (item) {
|
|
659
|
-
_this.filterChange.next();
|
|
659
|
+
_this.filterChange.next(true);
|
|
660
660
|
};
|
|
661
661
|
this.open = function () {
|
|
662
662
|
_this.popupFilter.open({
|
|
@@ -684,7 +684,14 @@
|
|
|
684
684
|
inlineFilterDef: inlineFilterDef,
|
|
685
685
|
selectedQuickFilter: null
|
|
686
686
|
});
|
|
687
|
-
|
|
687
|
+
console.log({
|
|
688
|
+
inlineColumn: inlineColumn,
|
|
689
|
+
inlineExternal: inlineExternal,
|
|
690
|
+
quickFilters: [],
|
|
691
|
+
inlineFilterDef: inlineFilterDef,
|
|
692
|
+
selectedQuickFilter: null
|
|
693
|
+
});
|
|
694
|
+
_this.filterChange.next(true);
|
|
688
695
|
};
|
|
689
696
|
this.onReset = function () {
|
|
690
697
|
var _a;
|
|
@@ -702,7 +709,7 @@
|
|
|
702
709
|
quickFilters: [],
|
|
703
710
|
selectedQuickFilter: null
|
|
704
711
|
});
|
|
705
|
-
_this.filterChange.next();
|
|
712
|
+
_this.filterChange.next(true);
|
|
706
713
|
_this.ref.markForCheck();
|
|
707
714
|
};
|
|
708
715
|
this.onClearFilter = function () {
|
|
@@ -715,7 +722,7 @@
|
|
|
715
722
|
quickFilters: [],
|
|
716
723
|
selectedQuickFilter: null
|
|
717
724
|
});
|
|
718
|
-
_this.filterChange.next();
|
|
725
|
+
_this.filterChange.next(true);
|
|
719
726
|
};
|
|
720
727
|
this.setFilter = function (args) {
|
|
721
728
|
var e_5, _r;
|
|
@@ -765,8 +772,8 @@
|
|
|
765
772
|
var _this = this;
|
|
766
773
|
__classPrivateFieldGet(this, _subscription).add(__classPrivateFieldGet(this, _filterOptionChanges).pipe(operators.startWith(this.filter)).subscribe(function () {
|
|
767
774
|
var _a, _b, _c;
|
|
768
|
-
if (
|
|
769
|
-
_this.filterChange.next();
|
|
775
|
+
if ((_a = _this.filter) === null || _a === void 0 ? void 0 : _a.disabled) {
|
|
776
|
+
_this.filterChange.next(true);
|
|
770
777
|
return;
|
|
771
778
|
}
|
|
772
779
|
_this.externalFilters = ((_b = _this.filter) === null || _b === void 0 ? void 0 : _b.externalFilters) || [];
|
|
@@ -775,7 +782,7 @@
|
|
|
775
782
|
_this.inlineExternal = configuration.inlineExternal;
|
|
776
783
|
_this.inlineFilterDef = configuration.inlineFilterDef;
|
|
777
784
|
__classPrivateFieldGet(_this, _loadDefault).call(_this);
|
|
778
|
-
_this.filterChange.next();
|
|
785
|
+
_this.filterChange.next(true);
|
|
779
786
|
_this.ref.markForCheck();
|
|
780
787
|
}));
|
|
781
788
|
};
|
|
@@ -1871,8 +1878,7 @@
|
|
|
1871
1878
|
// Subcription
|
|
1872
1879
|
_subscription$1.set(this, new rxjs.Subscription());
|
|
1873
1880
|
_reload.set(this, new rxjs.BehaviorSubject({
|
|
1874
|
-
force: true
|
|
1875
|
-
source: 'INITIALIZE'
|
|
1881
|
+
force: true
|
|
1876
1882
|
}));
|
|
1877
1883
|
this.isExporting = false;
|
|
1878
1884
|
this.isSelectAll = false;
|
|
@@ -2940,7 +2946,7 @@
|
|
|
2940
2946
|
var _this = this;
|
|
2941
2947
|
if (gridFilter && this.gridFilter !== gridFilter) {
|
|
2942
2948
|
this.gridFilter = gridFilter;
|
|
2943
|
-
__classPrivateFieldGet(this, _subscription$1).add(gridFilter.filterChange.pipe(operators.map(function () {
|
|
2949
|
+
__classPrivateFieldGet(this, _subscription$1).add(gridFilter.filterChange.pipe(operators.filter(function (reload) { return reload; }), operators.debounceTime(500), operators.map(function () {
|
|
2944
2950
|
__classPrivateFieldGet(_this, _paginator).pageIndex = 0;
|
|
2945
2951
|
__classPrivateFieldGet(_this, _reload).next({
|
|
2946
2952
|
force: false,
|
|
@@ -2961,7 +2967,8 @@
|
|
|
2961
2967
|
this.gridOption = option;
|
|
2962
2968
|
__classPrivateFieldSet(this, _loadCompleted, false);
|
|
2963
2969
|
__classPrivateFieldGet(this, _reload).next({
|
|
2964
|
-
force: true
|
|
2970
|
+
force: true,
|
|
2971
|
+
source: 'INITIALIZE'
|
|
2965
2972
|
});
|
|
2966
2973
|
(_a = option === null || option === void 0 ? void 0 : option.columns) === null || _a === void 0 ? void 0 : _a.forEach(function (col) {
|
|
2967
2974
|
var _a;
|
|
@@ -3012,7 +3019,9 @@
|
|
|
3012
3019
|
};
|
|
3013
3020
|
SdGridMaterial.prototype.ngAfterViewInit = function () {
|
|
3014
3021
|
var _this = this;
|
|
3015
|
-
__classPrivateFieldGet(this, _subscription$1).add(__classPrivateFieldGet(this, _reload).pipe(operators.debounceTime(200),
|
|
3022
|
+
__classPrivateFieldGet(this, _subscription$1).add(__classPrivateFieldGet(this, _reload).pipe(operators.debounceTime(200),
|
|
3023
|
+
// startWith(this.#reload.value),
|
|
3024
|
+
operators.filter(function (data) {
|
|
3016
3025
|
var _a, _b;
|
|
3017
3026
|
if (__classPrivateFieldGet(_this, _loadCompleted)) {
|
|
3018
3027
|
return true;
|