@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
package/fesm5/firestitch-list.js
CHANGED
|
@@ -3210,7 +3210,9 @@ var List = /** @class */ (function (_super) {
|
|
|
3210
3210
|
query = Object.assign(query, _this.paging.loadDeletedOffsetQuery);
|
|
3211
3211
|
}
|
|
3212
3212
|
else {
|
|
3213
|
-
|
|
3213
|
+
var allRecordsRangeNeeded = (_this.initialFetch
|
|
3214
|
+
|| _this.dataController.operation === FsListState.Reload) && _this.paging.loadMoreEnabled;
|
|
3215
|
+
if (allRecordsRangeNeeded) {
|
|
3214
3216
|
query = Object.assign(query, _this.paging.loadMoreQuery);
|
|
3215
3217
|
}
|
|
3216
3218
|
else {
|
|
@@ -4457,7 +4459,7 @@ var FsListComponent = /** @class */ (function () {
|
|
|
4457
4459
|
FsListComponent = __decorate([
|
|
4458
4460
|
Component({
|
|
4459
4461
|
selector: 'fs-list',
|
|
4460
|
-
template: "<div class=\"fs-list-container\"\
|
|
4462
|
+
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",
|
|
4461
4463
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4462
4464
|
providers: [
|
|
4463
4465
|
GroupExpandNotifierService,
|
|
@@ -5959,6 +5961,17 @@ var FsListDraggableRowDirective = /** @class */ (function () {
|
|
|
5959
5961
|
return FsListDraggableRowDirective;
|
|
5960
5962
|
}());
|
|
5961
5963
|
|
|
5964
|
+
var FsListContentDirective = /** @class */ (function () {
|
|
5965
|
+
function FsListContentDirective() {
|
|
5966
|
+
}
|
|
5967
|
+
FsListContentDirective = __decorate([
|
|
5968
|
+
Directive({
|
|
5969
|
+
selector: '[fs-list-content]',
|
|
5970
|
+
})
|
|
5971
|
+
], FsListContentDirective);
|
|
5972
|
+
return FsListContentDirective;
|
|
5973
|
+
}());
|
|
5974
|
+
|
|
5962
5975
|
var FsListModule = /** @class */ (function () {
|
|
5963
5976
|
function FsListModule() {
|
|
5964
5977
|
}
|
|
@@ -6028,6 +6041,7 @@ var FsListModule = /** @class */ (function () {
|
|
|
6028
6041
|
FsListDraggableListDirective,
|
|
6029
6042
|
FsListDraggableRowDirective,
|
|
6030
6043
|
FsListEmptyStateDirective,
|
|
6044
|
+
FsListContentDirective,
|
|
6031
6045
|
// Dialog
|
|
6032
6046
|
CustomizeColsDialogComponent,
|
|
6033
6047
|
],
|
|
@@ -6048,6 +6062,7 @@ var FsListModule = /** @class */ (function () {
|
|
|
6048
6062
|
FsListGroupCellDirective,
|
|
6049
6063
|
FsListGroupExpandTriggerDirective,
|
|
6050
6064
|
FsListEmptyStateDirective,
|
|
6065
|
+
FsListContentDirective,
|
|
6051
6066
|
],
|
|
6052
6067
|
})
|
|
6053
6068
|
], FsListModule);
|
|
@@ -6065,5 +6080,5 @@ function FsListConfigFactory(config) {
|
|
|
6065
6080
|
* Generated bundle index. Do not edit.
|
|
6066
6081
|
*/
|
|
6067
6082
|
|
|
6068
|
-
export { ActionType, Column, FS_LIST_CONFIG, FS_LIST_DEFAULT_CONFIG, FsBodyComponent, FsCellComponent, FsFooterCellComponent, FsFooterComponent, FsFooterRowComponent, FsHeadCellComponent, FsHeadComponent, FsListCellDirective, FsListColumnDirective, FsListComponent, FsListEmptyStateDirective, FsListFooterDirective, FsListHeaderDirective, FsListModule, FsListState, FsPaginationComponent, FsRowComponent, FsStatusComponent, List, PaginationController, PaginationStrategy, ReorderController, ReorderPosition, ReorderStrategy, RowAction, RowType, SelectionChangeType, SelectionController, SortingController, SortingDirection, StyleConfig, FsListConfigFactory as ɵa, GroupExpandNotifierService as ɵb, PersistanceController as ɵc, FsListGroupCellDirective as ɵd, FsListGroupExpandTriggerDirective as ɵe, FsListDraggableListDirective as ɵf, FsRowActionsComponent as ɵg, FsRowInlineActionComponent as ɵh, FsRowMenuActionComponent as ɵi, FsListLoaderComponent as ɵj, FsListSavedFiltersComponent as ɵk, FsListManageSavedFiltersComponent as ɵl, FsListDraggableRowDirective as ɵm, CustomizeColsDialogComponent as ɵn };
|
|
6083
|
+
export { ActionType, Column, FS_LIST_CONFIG, FS_LIST_DEFAULT_CONFIG, FsBodyComponent, FsCellComponent, FsFooterCellComponent, FsFooterComponent, FsFooterRowComponent, FsHeadCellComponent, FsHeadComponent, FsListCellDirective, FsListColumnDirective, FsListComponent, FsListContentDirective, FsListEmptyStateDirective, FsListFooterDirective, FsListHeaderDirective, FsListModule, FsListState, FsPaginationComponent, FsRowComponent, FsStatusComponent, List, PaginationController, PaginationStrategy, ReorderController, ReorderPosition, ReorderStrategy, RowAction, RowType, SelectionChangeType, SelectionController, SortingController, SortingDirection, StyleConfig, FsListConfigFactory as ɵa, GroupExpandNotifierService as ɵb, PersistanceController as ɵc, FsListGroupCellDirective as ɵd, FsListGroupExpandTriggerDirective as ɵe, FsListDraggableListDirective as ɵf, FsRowActionsComponent as ɵg, FsRowInlineActionComponent as ɵh, FsRowMenuActionComponent as ɵi, FsListLoaderComponent as ɵj, FsListSavedFiltersComponent as ɵk, FsListManageSavedFiltersComponent as ɵl, FsListDraggableRowDirective as ɵm, CustomizeColsDialogComponent as ɵn };
|
|
6069
6084
|
//# sourceMappingURL=firestitch-list.js.map
|