@sd-angular/core 1.3.93 → 1.3.94
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 +10 -11
- 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 +12 -13
- package/fesm2015/sd-angular-core-grid-material.js +10 -11
- 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 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.93.tgz → sd-angular-core-1.3.94.tgz} +0 -0
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
filterDefs: [{ type: core.Input }]
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
var _filterOptionChanges,
|
|
537
|
+
var _filterOptionChanges, _subscription$1;
|
|
538
538
|
var SdGridFilter = /** @class */ (function () {
|
|
539
539
|
function SdGridFilter(ref, deviceService) {
|
|
540
540
|
var _this = this;
|
|
@@ -543,7 +543,6 @@
|
|
|
543
543
|
_filterOptionChanges.set(this, new rxjs.Subject());
|
|
544
544
|
this.columns = [];
|
|
545
545
|
this.filterDefs = [];
|
|
546
|
-
_filterRegister$1.set(this, void 0);
|
|
547
546
|
this.filterRegisterChange = new rxjs.BehaviorSubject(null);
|
|
548
547
|
this.filterDef = {};
|
|
549
548
|
this.inlineFilterDef = {};
|
|
@@ -554,7 +553,7 @@
|
|
|
554
553
|
this.inlineExternal = {};
|
|
555
554
|
_subscription$1.set(this, new rxjs.Subscription());
|
|
556
555
|
this.onFilter = function (item) {
|
|
557
|
-
|
|
556
|
+
_this.filterRegister.set({
|
|
558
557
|
columnFilter: _this.columnFilter,
|
|
559
558
|
externalFilter: _this.externalFilter,
|
|
560
559
|
filterDef: _this.filterDef
|
|
@@ -565,7 +564,7 @@
|
|
|
565
564
|
_this.popupFilter.open();
|
|
566
565
|
};
|
|
567
566
|
this.onReset = function () {
|
|
568
|
-
|
|
567
|
+
_this.filterRegister.remove();
|
|
569
568
|
_this.ref.markForCheck();
|
|
570
569
|
};
|
|
571
570
|
this.isMobileOrTablet = !this.deviceService.isDesktop();
|
|
@@ -579,10 +578,10 @@
|
|
|
579
578
|
enumerable: false,
|
|
580
579
|
configurable: true
|
|
581
580
|
});
|
|
582
|
-
Object.defineProperty(SdGridFilter.prototype, "
|
|
581
|
+
Object.defineProperty(SdGridFilter.prototype, "_filterRegister", {
|
|
583
582
|
set: function (value) {
|
|
584
|
-
|
|
585
|
-
this.filterRegisterChange.next(
|
|
583
|
+
this.filterRegister = value;
|
|
584
|
+
this.filterRegisterChange.next(this.filterRegister);
|
|
586
585
|
},
|
|
587
586
|
enumerable: false,
|
|
588
587
|
configurable: true
|
|
@@ -605,8 +604,8 @@
|
|
|
605
604
|
// this.ref.markForCheck();
|
|
606
605
|
// }));
|
|
607
606
|
__classPrivateFieldGet(this, _subscription$1).add(this.filterRegisterChange.subscribe(function () {
|
|
608
|
-
if (
|
|
609
|
-
__classPrivateFieldGet(_this, _subscription$1).add(
|
|
607
|
+
if (_this.filterRegister) {
|
|
608
|
+
__classPrivateFieldGet(_this, _subscription$1).add(_this.filterRegister.observer.subscribe(function (configuration) {
|
|
610
609
|
_this.inlineColumn = configuration.inlineColumn;
|
|
611
610
|
_this.columnFilter = configuration.columnFilter;
|
|
612
611
|
_this.inlineExternal = configuration.inlineExternal;
|
|
@@ -645,7 +644,7 @@
|
|
|
645
644
|
};
|
|
646
645
|
return SdGridFilter;
|
|
647
646
|
}());
|
|
648
|
-
_filterOptionChanges = new WeakMap(),
|
|
647
|
+
_filterOptionChanges = new WeakMap(), _subscription$1 = new WeakMap();
|
|
649
648
|
SdGridFilter.decorators = [
|
|
650
649
|
{ type: core.Component, args: [{
|
|
651
650
|
selector: 'sd-grid-filter',
|
|
@@ -663,7 +662,7 @@
|
|
|
663
662
|
_filter: [{ type: core.Input, args: ['filter',] }],
|
|
664
663
|
columns: [{ type: core.Input }],
|
|
665
664
|
filterDefs: [{ type: core.Input }],
|
|
666
|
-
|
|
665
|
+
_filterRegister: [{ type: core.Input, args: ['filterRegister',] }]
|
|
667
666
|
};
|
|
668
667
|
|
|
669
668
|
var _getExportableColumns, _getExportableGroups, _getExportColumns, _initTemplate;
|