@sd-angular/core 1.3.62 → 1.3.63
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 +33 -10
- 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/column-inline-filter/column-inline-filter.component.js +32 -11
- package/fesm2015/sd-angular-core-grid-material.js +28 -10
- 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/column-inline-filter/column-inline-filter.component.d.ts +5 -3
- package/package.json +1 -1
- package/{sd-angular-core-1.3.62.tgz → sd-angular-core-1.3.63.tgz} +0 -0
|
@@ -4473,28 +4473,51 @@
|
|
|
4473
4473
|
gridOption: [{ type: core.Input }]
|
|
4474
4474
|
};
|
|
4475
4475
|
|
|
4476
|
+
var _valueChanges, _subcription;
|
|
4476
4477
|
var SdColumnInlineFilter = /** @class */ (function () {
|
|
4477
4478
|
function SdColumnInlineFilter() {
|
|
4478
4479
|
var _this = this;
|
|
4479
4480
|
this.columnFilter = {};
|
|
4480
4481
|
this.filterChange = new core.EventEmitter();
|
|
4482
|
+
_valueChanges.set(this, new rxjs.Subject());
|
|
4483
|
+
_subcription.set(this, new rxjs.Subscription());
|
|
4481
4484
|
this.onFilterChange = function () {
|
|
4482
4485
|
_this.filterChange.emit();
|
|
4483
4486
|
};
|
|
4484
4487
|
}
|
|
4488
|
+
SdColumnInlineFilter.prototype._value = function (value) {
|
|
4489
|
+
this.value = value;
|
|
4490
|
+
__classPrivateFieldGet(this, _valueChanges).next();
|
|
4491
|
+
};
|
|
4492
|
+
Object.defineProperty(SdColumnInlineFilter.prototype, "_columnFilter", {
|
|
4493
|
+
set: function (columnFilter) {
|
|
4494
|
+
this.columnFilter = columnFilter || {};
|
|
4495
|
+
__classPrivateFieldGet(this, _valueChanges).next();
|
|
4496
|
+
},
|
|
4497
|
+
enumerable: false,
|
|
4498
|
+
configurable: true
|
|
4499
|
+
});
|
|
4500
|
+
;
|
|
4485
4501
|
SdColumnInlineFilter.prototype.ngOnInit = function () {
|
|
4486
|
-
var
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4502
|
+
var _this = this;
|
|
4503
|
+
__classPrivateFieldGet(this, _subcription).add(__classPrivateFieldGet(this, _valueChanges).pipe(operators.startWith(this.columnFilter)).subscribe(function () {
|
|
4504
|
+
var _a, _b;
|
|
4505
|
+
if (_this.column.type === 'date' || _this.column.type === 'time' || _this.column.type === 'datetime') {
|
|
4506
|
+
if (!((_b = (_a = _this.column) === null || _a === void 0 ? void 0 : _a.option) === null || _b === void 0 ? void 0 : _b.useFilterDate)) {
|
|
4507
|
+
_this.columnFilter[_this.column.field] = _this.columnFilter[_this.column.field] || {
|
|
4508
|
+
from: null,
|
|
4509
|
+
to: null
|
|
4510
|
+
};
|
|
4511
|
+
}
|
|
4493
4512
|
}
|
|
4494
|
-
}
|
|
4513
|
+
}));
|
|
4514
|
+
};
|
|
4515
|
+
SdColumnInlineFilter.prototype.ngOnDestroy = function () {
|
|
4516
|
+
__classPrivateFieldGet(this, _subcription).unsubscribe();
|
|
4495
4517
|
};
|
|
4496
4518
|
return SdColumnInlineFilter;
|
|
4497
4519
|
}());
|
|
4520
|
+
_valueChanges = new WeakMap(), _subcription = new WeakMap();
|
|
4498
4521
|
SdColumnInlineFilter.decorators = [
|
|
4499
4522
|
{ type: core.Component, args: [{
|
|
4500
4523
|
selector: 'sd-column-inline-filter',
|
|
@@ -4505,8 +4528,8 @@
|
|
|
4505
4528
|
];
|
|
4506
4529
|
SdColumnInlineFilter.ctorParameters = function () { return []; };
|
|
4507
4530
|
SdColumnInlineFilter.propDecorators = {
|
|
4508
|
-
|
|
4509
|
-
|
|
4531
|
+
_value: [{ type: core.Input, args: ['value',] }],
|
|
4532
|
+
_columnFilter: [{ type: core.Input, args: ['columnFilter',] }],
|
|
4510
4533
|
column: [{ type: core.Input }],
|
|
4511
4534
|
filterChange: [{ type: core.Output }]
|
|
4512
4535
|
};
|