@firestitch/list 9.12.4 → 9.12.5
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/directives/content/content.directive.d.ts +2 -0
- package/bundles/firestitch-list.umd.js +18 -2
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/bundles/firestitch-list.umd.min.js +1 -1
- package/bundles/firestitch-list.umd.min.js.map +1 -1
- package/esm2015/app/classes/list-controller.js +4 -2
- package/esm2015/app/components/list/list.component.js +2 -2
- package/esm2015/app/directives/content/content.directive.js +11 -0
- package/esm2015/app/fs-list.module.js +4 -1
- package/esm2015/public_api.js +2 -1
- package/esm5/app/classes/list-controller.js +4 -2
- package/esm5/app/components/list/list.component.js +2 -2
- package/esm5/app/directives/content/content.directive.js +14 -0
- package/esm5/app/fs-list.module.js +4 -1
- package/esm5/public_api.js +2 -1
- package/fesm2015/firestitch-list.js +15 -3
- package/fesm2015/firestitch-list.js.map +1 -1
- package/fesm5/firestitch-list.js +18 -3
- package/fesm5/firestitch-list.js.map +1 -1
- package/firestitch-list.metadata.json +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -3403,7 +3403,9 @@
|
|
|
3403
3403
|
query = Object.assign(query, _this.paging.loadDeletedOffsetQuery);
|
|
3404
3404
|
}
|
|
3405
3405
|
else {
|
|
3406
|
-
|
|
3406
|
+
var allRecordsRangeNeeded = (_this.initialFetch
|
|
3407
|
+
|| _this.dataController.operation === exports.FsListState.Reload) && _this.paging.loadMoreEnabled;
|
|
3408
|
+
if (allRecordsRangeNeeded) {
|
|
3407
3409
|
query = Object.assign(query, _this.paging.loadMoreQuery);
|
|
3408
3410
|
}
|
|
3409
3411
|
else {
|
|
@@ -4650,7 +4652,7 @@
|
|
|
4650
4652
|
FsListComponent = __decorate([
|
|
4651
4653
|
core.Component({
|
|
4652
4654
|
selector: 'fs-list',
|
|
4653
|
-
template: "<div class=\"fs-list-container\"\
|
|
4655
|
+
template: "<div class=\"fs-list-container\"\n [ngClass]=\"{ 'has-filter-input': list.filterInput,\n 'has-filters': list.filterConfig?.items.length,\n 'has-heading': list.heading,\n 'has-status': list.status,\n 'has-chips': list.chips,\n 'has-actions': list.actions.hasActions,\n 'first-load': firstLoad,\n 'loading': list.loading$ | async }\">\n <ng-template [ngTemplateOutlet]=\"listContainerContent\"></ng-template>\n</div>\n\n<ng-template #listContainerContent>\n <ng-container *ngIf=\"list.dataController.visibleRows$ | async as listData\">\n <!-- Header -->\n <div class=\"fs-list-header-container\">\n\n <div class=\"fs-list-header\"\n [ngClass]=\"{ 'no-wrap': reorderController.manualReorderActivated$ || !list.filterConfig?.items.length }\">\n <div class=\"heading-container\">\n <h2 class=\"heading\" *ngIf=\"list.heading\">{{list.heading}}</h2>\n <span class=\"subheading\" *ngIf=\"list.subheading\">{{list.subheading}}</span>\n </div>\n <fs-filter\n class=\"fs-list-filter\"\n *ngIf=\"list.filterConfig\"\n [filter]=\"list.filterConfig\"\n [showSortBy]=\"!list.status\"\n [showFilterInput]=\"list.filterInput\"\n (ready)=\"filterReady()\">\n\n <ng-template fsFilterStatusBar>\n <ng-container *ngIf=\"\n list.paging &&\n !(reorderController.manualReorderActivated$ | async) &&\n (!reorderController.enabled || reorderController.status) &&\n ((list.scrollable && list.scrollable.status) || !list.scrollable)\">\n <!-- Status -->\n <fs-list-status\n class=\"fs-list-status\"\n [ngClass]=\"{ 'hidden-mobile': !list.status }\"\n [rows]=\"listData\"\n [sorting]=\"list.sorting\"\n [paging]=\"list.paging\"\n [firstLoad]=\"firstLoad\"\n [scrollable]=\"list.scrollable\">\n </fs-list-status>\n </ng-container>\n </ng-template>\n </fs-filter>\n </div>\n </div>\n\n <ng-content select=\"[fs-list-content]\"></ng-content>\n\n <!-- Table implementation -->\n <div class=\"fs-list-table-container\">\n <table class=\"fs-list-table\" role=\"grid\" *ngIf=\"!firstLoad && listData.length > 0 && !list.emptyStateEnabled\">\n <thead fs-list-head\n class=\"fs-list-head\"\n role=\"rowgroup\"\n *ngIf=\"list.columns.hasHeader\"\n [ngClass]=\"list.columns.theadClass\"\n [columns]=\"list.columns.visibleColumns\"\n [sorting]=\"list.sorting\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n >\n </thead>\n\n <tbody fs-list-body\n fsListDraggableList\n class=\"fs-list-body\"\n role=\"rowgroup\"\n [class.disabled]=\"!!(reorderController.reorderDisabled$ | async)\"\n [rows]=\"listData\"\n [rowActionsRaw]=\"list.rowActionsRaw\"\n [groupActionsRaw]=\"list.groupActionsRaw\"\n [hasRowActions]=\"list.hasRowActions\"\n [rowEvents]=\"list.rowEvents\"\n [rowClass]=\"list.rowClass\"\n [columns]=\"list.columns.visibleColumns\"\n [restoreMode]=\"list.restoreMode\"\n [selection]=\"list.selection\"\n [rowRemoved]=\"rowRemoved\"\n >\n </tbody>\n\n <tfoot fs-list-footer\n class=\"fs-list-footer\"\n *ngIf=\"list.columns.hasFooter\"\n [columns]=\"list.columns.visibleColumns\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\">\n </tfoot>\n </table>\n <fs-list-loader\n *ngIf=\"firstLoad\"\n [columns]=\"list.columns.columns\"\n [loaderLines]=\"loaderLines\">\n </fs-list-loader>\n </div>\n\n <fs-list-pagination\n *ngIf=\"paginatorVisible\"\n class=\"fs-list-pagination\"\n [rows]=\"listData\"\n [pagination]=\"list.paging\">\n </fs-list-pagination>\n\n\n <ng-container *ngIf=\"!firstLoad\">\n <div\n *ngIf=\"listData.length === 0\"\n class=\"fs-list-no-results-container\">\n <div\n *ngIf=\"list.noResults?.message && !list.emptyStateEnabled\"\n class=\"fs-list-no-results\">\n {{ list.noResults?.message }}\n </div>\n <ng-container *ngIf=\"list.emptyStateEnabled\">\n <ng-template [ngTemplateOutlet]=\"list.emptyStateTemplate\"></ng-template>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n</ng-template>\n\n",
|
|
4654
4656
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4655
4657
|
providers: [
|
|
4656
4658
|
GroupExpandNotifierService,
|
|
@@ -6152,6 +6154,17 @@
|
|
|
6152
6154
|
return FsListDraggableRowDirective;
|
|
6153
6155
|
}());
|
|
6154
6156
|
|
|
6157
|
+
var FsListContentDirective = /** @class */ (function () {
|
|
6158
|
+
function FsListContentDirective() {
|
|
6159
|
+
}
|
|
6160
|
+
FsListContentDirective = __decorate([
|
|
6161
|
+
core.Directive({
|
|
6162
|
+
selector: '[fs-list-content]',
|
|
6163
|
+
})
|
|
6164
|
+
], FsListContentDirective);
|
|
6165
|
+
return FsListContentDirective;
|
|
6166
|
+
}());
|
|
6167
|
+
|
|
6155
6168
|
var FsListModule = /** @class */ (function () {
|
|
6156
6169
|
function FsListModule() {
|
|
6157
6170
|
}
|
|
@@ -6221,6 +6234,7 @@
|
|
|
6221
6234
|
FsListDraggableListDirective,
|
|
6222
6235
|
FsListDraggableRowDirective,
|
|
6223
6236
|
FsListEmptyStateDirective,
|
|
6237
|
+
FsListContentDirective,
|
|
6224
6238
|
// Dialog
|
|
6225
6239
|
CustomizeColsDialogComponent,
|
|
6226
6240
|
],
|
|
@@ -6241,6 +6255,7 @@
|
|
|
6241
6255
|
FsListGroupCellDirective,
|
|
6242
6256
|
FsListGroupExpandTriggerDirective,
|
|
6243
6257
|
FsListEmptyStateDirective,
|
|
6258
|
+
FsListContentDirective,
|
|
6244
6259
|
],
|
|
6245
6260
|
})
|
|
6246
6261
|
], FsListModule);
|
|
@@ -6263,6 +6278,7 @@
|
|
|
6263
6278
|
exports.FsListCellDirective = FsListCellDirective;
|
|
6264
6279
|
exports.FsListColumnDirective = FsListColumnDirective;
|
|
6265
6280
|
exports.FsListComponent = FsListComponent;
|
|
6281
|
+
exports.FsListContentDirective = FsListContentDirective;
|
|
6266
6282
|
exports.FsListEmptyStateDirective = FsListEmptyStateDirective;
|
|
6267
6283
|
exports.FsListFooterDirective = FsListFooterDirective;
|
|
6268
6284
|
exports.FsListHeaderDirective = FsListHeaderDirective;
|