@firestitch/list 12.11.5 → 12.12.0
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/app/interfaces/listconfig.interface.d.ts +1 -0
- package/bundles/firestitch-list.umd.js +5 -6
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/list-controller.js +2 -3
- package/esm2015/app/classes/reorder-controller.js +3 -2
- package/esm2015/app/components/list/list.component.js +3 -4
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/fesm2015/firestitch-list.js +5 -6
- package/fesm2015/firestitch-list.js.map +1 -1
- package/package.json +1 -1
|
@@ -78,6 +78,7 @@ export interface FsListReorderConfig {
|
|
|
78
78
|
label?: string;
|
|
79
79
|
menu?: boolean;
|
|
80
80
|
multiple?: boolean;
|
|
81
|
+
status?: boolean;
|
|
81
82
|
}
|
|
82
83
|
export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
|
|
83
84
|
export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
|
|
@@ -3457,7 +3457,7 @@
|
|
|
3457
3457
|
return ExternalParamsController;
|
|
3458
3458
|
}());
|
|
3459
3459
|
|
|
3460
|
-
var SHOW_DELETED_FILTERS_KEY = '
|
|
3460
|
+
var SHOW_DELETED_FILTERS_KEY = '_showDeleted_';
|
|
3461
3461
|
var List = /** @class */ (function () {
|
|
3462
3462
|
function List(el, config, fsScroll, selectionDialog, router, route, persistance, inDialog) {
|
|
3463
3463
|
if (config === void 0) { config = {}; }
|
|
@@ -3470,7 +3470,6 @@
|
|
|
3470
3470
|
this.persistance = persistance;
|
|
3471
3471
|
this.inDialog = inDialog;
|
|
3472
3472
|
this.filters = [];
|
|
3473
|
-
// @Alias('rows') private _rows: any;
|
|
3474
3473
|
this.initialized$ = new rxjs.BehaviorSubject(false);
|
|
3475
3474
|
this.loading$ = new rxjs.BehaviorSubject(false);
|
|
3476
3475
|
this.paging = new PaginationController();
|
|
@@ -4282,7 +4281,7 @@
|
|
|
4282
4281
|
});
|
|
4283
4282
|
ReorderController.prototype.initWithConfig = function (data, dataController, actionsController, selectionController) {
|
|
4284
4283
|
var _this = this;
|
|
4285
|
-
var _a, _b;
|
|
4284
|
+
var _a, _b, _c;
|
|
4286
4285
|
if (!data) {
|
|
4287
4286
|
return;
|
|
4288
4287
|
}
|
|
@@ -4297,6 +4296,7 @@
|
|
|
4297
4296
|
// this.strategy = data.strategy ?? ReorderStrategy.Manual;
|
|
4298
4297
|
this.label = data.label;
|
|
4299
4298
|
this.multiple = data.multiple;
|
|
4299
|
+
this.status = (_c = data.status) !== null && _c !== void 0 ? _c : true;
|
|
4300
4300
|
this.startCallback = data.start;
|
|
4301
4301
|
this.movedCallback = data.moved;
|
|
4302
4302
|
this.doneCallback = data.done;
|
|
@@ -6335,9 +6335,8 @@
|
|
|
6335
6335
|
Object.defineProperty(FsListComponent.prototype, "hasStatus", {
|
|
6336
6336
|
get: function () {
|
|
6337
6337
|
return this.list.status &&
|
|
6338
|
-
|
|
6339
|
-
this.
|
|
6340
|
-
(!this.reorderController.enabled || this.reorderController.status) &&
|
|
6338
|
+
(this.list.sorting.isDefined || this.list.paging.enabled) &&
|
|
6339
|
+
(!this.reorderController.enabled || (this.reorderController.enabled && this.reorderController.status)) &&
|
|
6341
6340
|
((this.list.scrollable && this.list.scrollable.status) || !this.list.scrollable);
|
|
6342
6341
|
},
|
|
6343
6342
|
enumerable: false,
|