@firestitch/list 18.0.81 → 18.0.83

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.
Files changed (58) hide show
  1. package/app/classes/breakpoint-controller.d.ts +66 -0
  2. package/app/classes/columns-controller.d.ts +52 -10
  3. package/app/classes/list-controller.d.ts +4 -2
  4. package/app/classes/selection-controller.d.ts +6 -0
  5. package/app/components/body/body.component.d.ts +6 -3
  6. package/app/components/body/row/row.component.d.ts +1 -1
  7. package/app/components/footer/footer.component.d.ts +1 -1
  8. package/app/components/head/head.component.d.ts +11 -1
  9. package/app/components/list/list.component.d.ts +57 -5
  10. package/app/directives/breakpoint/breakpoint.directive.d.ts +58 -0
  11. package/app/directives/draggable-list/draggable-list.directive.d.ts +1 -0
  12. package/app/fs-list.module.d.ts +17 -16
  13. package/app/interfaces/listconfig.interface.d.ts +21 -0
  14. package/app/models/column-set.model.d.ts +50 -0
  15. package/app/models/column.model.d.ts +42 -0
  16. package/app/models/index.d.ts +1 -0
  17. package/esm2022/app/classes/breakpoint-controller.mjs +200 -0
  18. package/esm2022/app/classes/columns-controller.mjs +171 -66
  19. package/esm2022/app/classes/index.mjs +1 -1
  20. package/esm2022/app/classes/list-controller.mjs +7 -5
  21. package/esm2022/app/classes/selection-controller.mjs +9 -1
  22. package/esm2022/app/components/body/body.component.mjs +9 -4
  23. package/esm2022/app/components/body/row/cell/cell.component.mjs +3 -3
  24. package/esm2022/app/components/body/row/row.component.mjs +3 -3
  25. package/esm2022/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +3 -3
  26. package/esm2022/app/components/footer/footer-row/footer-row.component.mjs +3 -3
  27. package/esm2022/app/components/footer/footer.component.mjs +1 -1
  28. package/esm2022/app/components/head/head-cell/head-cell.component.mjs +3 -3
  29. package/esm2022/app/components/head/head.component.mjs +18 -3
  30. package/esm2022/app/components/list/list.component.mjs +137 -24
  31. package/esm2022/app/components/loader/loader.component.mjs +1 -1
  32. package/esm2022/app/components/pagination/pagination.component.mjs +3 -3
  33. package/esm2022/app/directives/breakpoint/breakpoint.directive.mjs +88 -0
  34. package/esm2022/app/directives/draggable-list/draggable-list.directive.mjs +8 -1
  35. package/esm2022/app/directives/empty-state/empty-state.directive.mjs +1 -1
  36. package/esm2022/app/directives/footer/footer.directive.mjs +1 -1
  37. package/esm2022/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +1 -1
  38. package/esm2022/app/directives/header/header.directive.mjs +1 -1
  39. package/esm2022/app/directives/heading/heading.directive.mjs +1 -1
  40. package/esm2022/app/directives/index.mjs +1 -1
  41. package/esm2022/app/enums/page-change-type.enum.mjs +1 -1
  42. package/esm2022/app/enums/pagination-strategy.enum.mjs +1 -1
  43. package/esm2022/app/enums/state.enum.mjs +1 -1
  44. package/esm2022/app/fs-list.module.mjs +7 -2
  45. package/esm2022/app/interfaces/cellconfig.interface.mjs +1 -1
  46. package/esm2022/app/interfaces/draggable-list.interface.mjs +1 -1
  47. package/esm2022/app/interfaces/external-params.interface.mjs +1 -1
  48. package/esm2022/app/interfaces/listconfig.interface.mjs +1 -1
  49. package/esm2022/app/interfaces/sorting-change-event.interface.mjs +1 -1
  50. package/esm2022/app/models/column-set.model.mjs +93 -0
  51. package/esm2022/app/models/column.model.mjs +56 -1
  52. package/esm2022/app/models/index.mjs +2 -1
  53. package/esm2022/public_api.mjs +5 -2
  54. package/fesm2022/firestitch-list.mjs +797 -113
  55. package/fesm2022/firestitch-list.mjs.map +1 -1
  56. package/package.json +1 -1
  57. package/public_api.d.ts +5 -2
  58. package/styles.scss +22 -8
@@ -1,8 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, ChangeDetectorRef, NgZone, ElementRef, Renderer2, Directive, Input, Pipe, EventEmitter, Component, ChangeDetectionStrategy, Output, input, effect, HostBinding, computed, TemplateRef, ViewContainerRef, ViewChild, ContentChild, HostListener, ContentChildren, InjectionToken, Injector, NgModule } from '@angular/core';
2
+ import { Injectable, inject, NgZone, ChangeDetectorRef, ElementRef, Renderer2, Directive, Input, Pipe, EventEmitter, Component, ChangeDetectionStrategy, Output, input, effect, HostBinding, computed, TemplateRef, ViewContainerRef, ViewChild, ContentChild, isDevMode, HostListener, ContentChildren, InjectionToken, Injector, NgModule } from '@angular/core';
3
3
  import { BehaviorSubject, Subject, Observable, map as map$1, merge, of, from, combineLatest, EMPTY } from 'rxjs';
4
- import { takeUntil, map, take, skip, filter, tap, distinctUntilChanged, shareReplay, delay, switchMap, debounceTime, mapTo, catchError } from 'rxjs/operators';
5
- import { get, isString, isObject, isBoolean, isNumber, isFunction, cloneDeep, random, mergeWith } from 'lodash-es';
4
+ import { takeUntil, map, take, distinctUntilChanged, skip, filter, tap, shareReplay, delay, switchMap, debounceTime, mapTo, catchError } from 'rxjs/operators';
5
+ import { get, isString, isObject, isBoolean, isFunction, cloneDeep, random, mergeWith } from 'lodash-es';
6
+ import { BreakpointObserver } from '@angular/cdk/layout';
6
7
  import { NgClass, AsyncPipe, NgTemplateOutlet, Location, DecimalPipe } from '@angular/common';
7
8
  import { MatCheckbox } from '@angular/material/checkbox';
8
9
  import { MatIcon } from '@angular/material/icon';
@@ -463,6 +464,14 @@ class SelectionController {
463
464
  get selectedAll() {
464
465
  return this._selectedAll;
465
466
  }
467
+ /**
468
+ * Whether every currently visible row is selected -- the state of the select-all checkbox
469
+ * in `<thead>`. Exposed so a head band created after the fact (a breakpoint switch back to
470
+ * a set that declares headers) can seed itself instead of starting unchecked.
471
+ */
472
+ get selectedAllVisible() {
473
+ return this._selectedAllVisible;
474
+ }
466
475
  get selectionChange$() {
467
476
  return this._selectionChange.pipe(takeUntil(this._destroy$));
468
477
  }
@@ -880,12 +889,208 @@ class SelectionController {
880
889
  }
881
890
  }
882
891
 
892
+ const DEFAULT_HYSTERESIS = 24;
893
+ /**
894
+ * Decides which breakpoint column set is active for one list.
895
+ *
896
+ * Measures the list's own container by default -- a list rendered inside a dialog, drawer
897
+ * or narrow flex column has a viewport width that lies about how much room it actually has.
898
+ * `breakpoints: { container: false }` switches to viewport media queries via the CDK, which
899
+ * costs no JS at all between thresholds.
900
+ *
901
+ * Emits the `maxWidth` of the narrowest matching set, or `null` when the base set applies.
902
+ */
903
+ class BreakpointController {
904
+ _zone = inject(NgZone);
905
+ _breakpointObserver = inject(BreakpointObserver);
906
+ _active$ = new BehaviorSubject(null);
907
+ _breakpoints = [];
908
+ _container = true;
909
+ _hysteresis = DEFAULT_HYSTERESIS;
910
+ _resizeObserver = null;
911
+ _element = null;
912
+ _lastWidth = null;
913
+ /** Refcount of in-flight drags. While > 0 swaps are held, not dropped. */
914
+ _suspended = 0;
915
+ _pending = null;
916
+ _hasPending = false;
917
+ _observing$ = new Subject();
918
+ _destroy$ = new Subject();
919
+ /** The `maxWidth` of the active set, or null for the base set. */
920
+ get active() {
921
+ return this._active$.getValue();
922
+ }
923
+ get active$() {
924
+ return this._active$
925
+ .pipe(distinctUntilChanged());
926
+ }
927
+ get container() {
928
+ return this._container;
929
+ }
930
+ initConfig(config = {}) {
931
+ this._container = config?.container ?? true;
932
+ this._hysteresis = config?.hysteresis ?? DEFAULT_HYSTERESIS;
933
+ }
934
+ /**
935
+ * Declare the breakpoints to watch, as `maxWidth` values in px.
936
+ * Re-registering tears down the previous observation.
937
+ */
938
+ setBreakpoints(breakpoints) {
939
+ this._breakpoints = [...breakpoints]
940
+ .filter((value) => Number.isFinite(value))
941
+ .sort((a, b) => a - b);
942
+ this._restart();
943
+ }
944
+ /** Supply the element to measure in container mode. Ignored in viewport mode. */
945
+ observe(element) {
946
+ this._element = element;
947
+ this._restart();
948
+ }
949
+ /**
950
+ * Hold breakpoint swaps. Refcounted, and the latest value is applied on the final
951
+ * `resume()` -- a crossing during a drag is deferred, never lost.
952
+ *
953
+ * Mandatory during a drag: the draggable directive snapshots every row's top/height once
954
+ * at drag start and hit-tests against that frozen cache, so a mid-drag reflow silently
955
+ * produces the wrong drop target.
956
+ */
957
+ suspend() {
958
+ this._suspended++;
959
+ }
960
+ resume() {
961
+ if (this._suspended === 0) {
962
+ return;
963
+ }
964
+ this._suspended--;
965
+ if (this._suspended === 0 && this._hasPending) {
966
+ this._hasPending = false;
967
+ this._emit(this._pending);
968
+ }
969
+ }
970
+ ngOnDestroy() {
971
+ this._teardown();
972
+ this._suspended = 0;
973
+ this._observing$.next();
974
+ this._observing$.complete();
975
+ this._destroy$.next();
976
+ this._destroy$.complete();
977
+ this._active$.complete();
978
+ }
979
+ _restart() {
980
+ this._teardown();
981
+ if (!this._breakpoints.length) {
982
+ this._emit(null);
983
+ return;
984
+ }
985
+ if (this._container) {
986
+ this._observeContainer();
987
+ }
988
+ else {
989
+ this._observeViewport();
990
+ }
991
+ }
992
+ _observeViewport() {
993
+ const queries = this._breakpoints
994
+ .map((maxWidth) => `(max-width: ${maxWidth}px)`);
995
+ this._breakpointObserver
996
+ .observe(queries)
997
+ .pipe(takeUntil(this._observing$), takeUntil(this._destroy$))
998
+ .subscribe((state) => {
999
+ // _breakpoints is ascending, so the first match is the narrowest one.
1000
+ const match = this._breakpoints
1001
+ .find((maxWidth) => state.breakpoints[`(max-width: ${maxWidth}px)`]);
1002
+ this._emit(match ?? null);
1003
+ });
1004
+ }
1005
+ _observeContainer() {
1006
+ if (!this._element || typeof ResizeObserver === 'undefined') {
1007
+ this._emit(null);
1008
+ return;
1009
+ }
1010
+ // Seed synchronously so the first render already has the right set and we never
1011
+ // paint the desktop columns before flipping to compact.
1012
+ this._applyWidth(this._element.getBoundingClientRect().width, true);
1013
+ // Outside Angular: ResizeObserver fires on every frame of a drag-resize and we only
1014
+ // want a CD pass on the frames that actually cross a threshold.
1015
+ this._zone.runOutsideAngular(() => {
1016
+ this._resizeObserver = new ResizeObserver((entries) => {
1017
+ const width = entries[0]?.contentRect?.width;
1018
+ if (width === undefined) {
1019
+ return;
1020
+ }
1021
+ this._applyWidth(width, false);
1022
+ });
1023
+ this._resizeObserver.observe(this._element);
1024
+ });
1025
+ }
1026
+ /**
1027
+ * Map a measured width onto a set, with a hysteresis band so a container parked exactly
1028
+ * on a threshold cannot oscillate between two sets on sub-pixel reflows.
1029
+ */
1030
+ _applyWidth(width, initial) {
1031
+ // A detached or display:none container measures 0. Treat it as "no information" and
1032
+ // keep whatever set is active, otherwise a hidden tab would flip to the narrowest set.
1033
+ if (!width) {
1034
+ return;
1035
+ }
1036
+ if (!initial && this._lastWidth !== null) {
1037
+ const crossed = this._breakpoints
1038
+ .some((maxWidth) => (this._lastWidth <= maxWidth) !== (width <= maxWidth));
1039
+ if (!crossed) {
1040
+ this._lastWidth = width;
1041
+ return;
1042
+ }
1043
+ const nearThreshold = this._breakpoints
1044
+ .some((maxWidth) => Math.abs(width - maxWidth) < this._hysteresis);
1045
+ if (nearThreshold && Math.abs(width - this._lastWidth) < this._hysteresis) {
1046
+ return;
1047
+ }
1048
+ }
1049
+ this._lastWidth = width;
1050
+ const match = this._breakpoints
1051
+ .find((maxWidth) => width <= maxWidth);
1052
+ const next = match ?? null;
1053
+ if (next === this.active) {
1054
+ return;
1055
+ }
1056
+ if (initial) {
1057
+ this._emit(next);
1058
+ }
1059
+ else {
1060
+ // Back into the zone only when the set actually changes.
1061
+ this._zone.run(() => this._emit(next));
1062
+ }
1063
+ }
1064
+ _emit(value) {
1065
+ if (this._suspended > 0) {
1066
+ this._pending = value;
1067
+ this._hasPending = true;
1068
+ return;
1069
+ }
1070
+ this._active$.next(value);
1071
+ }
1072
+ _teardown() {
1073
+ this._observing$.next();
1074
+ if (this._resizeObserver) {
1075
+ this._resizeObserver.disconnect();
1076
+ this._resizeObserver = null;
1077
+ }
1078
+ this._lastWidth = null;
1079
+ }
1080
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BreakpointController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1081
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BreakpointController });
1082
+ }
1083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BreakpointController, decorators: [{
1084
+ type: Injectable
1085
+ }] });
1086
+
883
1087
  class FsListDraggableListDirective {
884
1088
  _cdRef = inject(ChangeDetectorRef);
885
1089
  _zone = inject(NgZone);
886
1090
  _containerElement = inject(ElementRef);
887
1091
  _reorderController = inject(ReorderController);
888
1092
  _renderer = inject(Renderer2);
1093
+ _breakpoints = inject(BreakpointController, { optional: true });
889
1094
  // Draggable Element
890
1095
  _draggableElement;
891
1096
  _draggableElementPreview;
@@ -939,6 +1144,10 @@ class FsListDraggableListDirective {
939
1144
  this._reorderController.startCallback();
940
1145
  }
941
1146
  this._dragInProgress = true;
1147
+ // Row top/height are snapshotted once here and hit-tested against for the whole drag,
1148
+ // with no invalidation path -- a breakpoint swap mid-drag would reflow the table and
1149
+ // silently produce the wrong drop target. Held, not dropped: the swap applies on drop.
1150
+ this._breakpoints?.suspend();
942
1151
  window.document.body.classList.add('reorder-in-progress');
943
1152
  this._draggableElement = draggableElement;
944
1153
  this._detectSelectedRows();
@@ -1000,6 +1209,7 @@ class FsListDraggableListDirective {
1000
1209
  */
1001
1210
  dragEnd() {
1002
1211
  this._dragInProgress = false;
1212
+ this._breakpoints?.resume();
1003
1213
  this._reorderController.dataController.finishReorder();
1004
1214
  if (this._reorderController.movedCallback
1005
1215
  && this._draggableElementStartIndex !== this._draggableElementIndex) {
@@ -1841,6 +2051,99 @@ class ColumnAttributes {
1841
2051
  }
1842
2052
  }
1843
2053
 
2054
+ /**
2055
+ * One complete set of columns.
2056
+ *
2057
+ * A list always has a base set (`maxWidth === null`, the desktop markup) and zero or more
2058
+ * breakpoint sets declared inside `<fs-list-breakpoint [maxWidth]="n">`. Exactly one set is
2059
+ * active at a time; the active set's `rendered` array is what `<thead>`/`<tbody>`/`<tfoot>`
2060
+ * iterate.
2061
+ *
2062
+ * Every set owns its own `Column` instances, so per-set colspan flags, templates and titles
2063
+ * can never leak across sets.
2064
+ */
2065
+ class ColumnSet {
2066
+ maxWidth;
2067
+ columns = [];
2068
+ /** `columns` filtered by visibility -- the array the three bands iterate. */
2069
+ rendered = [];
2070
+ hasHeader = false;
2071
+ hasFooter = false;
2072
+ /**
2073
+ * Structural cell overrides. `null` means "inherit whatever the list is configured to do";
2074
+ * `false` suppresses that structural cell while this set is active. Only ever set from
2075
+ * `<fs-list-breakpoint>` inputs -- the base set always inherits.
2076
+ */
2077
+ selection = null;
2078
+ rowActions = null;
2079
+ reorder = null;
2080
+ /**
2081
+ * @param maxWidth Upper bound in px this set applies at (inclusive). `null` for the base set.
2082
+ */
2083
+ constructor(maxWidth) {
2084
+ this.maxWidth = maxWidth;
2085
+ }
2086
+ get isBase() {
2087
+ return this.maxWidth === null;
2088
+ }
2089
+ /** The media query this set activates at, or null for the base set. */
2090
+ get media() {
2091
+ return this.maxWidth === null
2092
+ ? null
2093
+ : `(max-width: ${this.maxWidth}px)`;
2094
+ }
2095
+ /**
2096
+ * Resolve everything that depends only on the declared columns, not on visibility.
2097
+ * Called once, when the set is built.
2098
+ */
2099
+ resolve() {
2100
+ resolveColspans(this.columns);
2101
+ this.hasHeader = this.columns
2102
+ .some((column) => !!column.headerTemplate || !!column.title);
2103
+ this.hasFooter = this.columns
2104
+ .some((column) => !!column.footerTemplate);
2105
+ this.update();
2106
+ }
2107
+ /** Refresh the rendered array. Called whenever column visibility changes. */
2108
+ update() {
2109
+ this.rendered = this.columns.filter((column) => column.visible);
2110
+ }
2111
+ }
2112
+ const COLSPAN_SLOTS = [
2113
+ { config: 'headerConfigs', flag: 'headerColspanned' },
2114
+ { config: 'groupHeaderConfigs', flag: 'groupHeaderColspanned' },
2115
+ { config: 'groupFooterConfigs', flag: 'groupFooterColspanned' },
2116
+ { config: 'cellConfigs', flag: 'cellColspanned' },
2117
+ { config: 'footerConfigs', flag: 'footerColspanned' },
2118
+ ];
2119
+ /**
2120
+ * Mark which columns are spanned over by an earlier column's `colspan`.
2121
+ *
2122
+ * Resolved over the full declared column list (not the visible subset), which is the
2123
+ * behaviour the single-set implementation has always had. Every flag is reset first so
2124
+ * the pass is idempotent and a set can be re-resolved safely.
2125
+ */
2126
+ function resolveColspans(columns) {
2127
+ COLSPAN_SLOTS.forEach(({ config, flag }) => {
2128
+ columns.forEach((column) => {
2129
+ column[flag] = false;
2130
+ });
2131
+ columns.forEach((column, index) => {
2132
+ const colspan = column[config]?.colspan;
2133
+ if (colspan === undefined || colspan === null) {
2134
+ return;
2135
+ }
2136
+ const spanTo = Math.min(index + Number(colspan), columns.length);
2137
+ if (!Number.isFinite(spanTo)) {
2138
+ return;
2139
+ }
2140
+ for (let i = index + 1; i < spanTo; i++) {
2141
+ columns[i][flag] = true;
2142
+ }
2143
+ });
2144
+ });
2145
+ }
2146
+
1844
2147
  class StyleConfig {
1845
2148
  colspan;
1846
2149
  align; // Can't be used in tempaltes!
@@ -1947,6 +2250,17 @@ class Column {
1947
2250
  groupFooterColspanned = false;
1948
2251
  cellColspanned = false;
1949
2252
  footerColspanned = false;
2253
+ /**
2254
+ * Stable identity for `@for (... ; track column.uid)` in the head/body/footer bands.
2255
+ * Assigned by ColumnsController as `<setIndex>:<columnIndex>`, so columns from two
2256
+ * different sets never collide and a breakpoint swap replaces every cell view.
2257
+ */
2258
+ uid = '';
2259
+ /**
2260
+ * For a column declared inside `<fs-list-breakpoint>`, the same-named column in the
2261
+ * base (desktop) set, or null. Base columns leave this null.
2262
+ */
2263
+ baseColumn = null;
1950
2264
  _attributes;
1951
2265
  _defaultDirection;
1952
2266
  _ordered$ = new BehaviorSubject(false);
@@ -2015,6 +2329,50 @@ class Column {
2015
2329
  }
2016
2330
  this._ordered$.next(value);
2017
2331
  }
2332
+ /**
2333
+ * The column that owns sort state for this one. A breakpoint column delegates to its
2334
+ * same-named base column so `sorting.sortingColumn` is always a base Column -> the
2335
+ * `order=<name>,<dir>` query param and the URL stay invariant across a resize.
2336
+ * Base columns return themselves, so behaviour is unchanged without breakpoints.
2337
+ */
2338
+ get sortSource() {
2339
+ return this.baseColumn ?? this;
2340
+ }
2341
+ /**
2342
+ * Whether this column's head cell offers sorting -- the arrow and the click target.
2343
+ *
2344
+ * Sort *state* delegates to {@link sortSource}, but the affordance must not: a breakpoint
2345
+ * column that stacks several base columns into one cell has no honest sort label, and
2346
+ * `[sortable]="false"` on a breakpoint column has to be able to drop the control at that
2347
+ * width. So a breakpoint column has to declare `sortable` itself, while a base column --
2348
+ * whose `sortSource` is itself -- is unaffected.
2349
+ */
2350
+ get sortIndicated() {
2351
+ return this.baseColumn ? !!this.sortable : true;
2352
+ }
2353
+ /**
2354
+ * Copy the TemplateRefs of slots this column left undeclared from `base`.
2355
+ *
2356
+ * Templates only -- never the StyleConfigs. A base `colspan="4"` copied into a
2357
+ * 2-column breakpoint set would be bound straight to [attr.colspan] and overflow the
2358
+ * row, and sharing a StyleConfig would alias one mutable object across two sets.
2359
+ *
2360
+ * The header slot is deliberately excluded, template and `title` both. A header labels
2361
+ * the column as that set renders it, and a set that stacks five base columns into one
2362
+ * cell has no honest label to borrow -- inheriting would print the base column's name
2363
+ * over a cell that no longer holds only that value. So the header row is exactly what
2364
+ * the active set declares: a set that declares none renders none.
2365
+ */
2366
+ inheritTemplatesFrom(base) {
2367
+ if (!base) {
2368
+ return;
2369
+ }
2370
+ this.groupHeaderTemplate = this.groupHeaderTemplate ?? base.groupHeaderTemplate;
2371
+ this.groupFooterTemplate = this.groupFooterTemplate ?? base.groupFooterTemplate;
2372
+ this.cellTemplate = this.cellTemplate ?? base.cellTemplate;
2373
+ this.footerTemplate = this.footerTemplate ?? base.footerTemplate;
2374
+ this.expandTrigger = this.expandTrigger ?? base.expandTrigger;
2375
+ }
2018
2376
  /**
2019
2377
  * Merge with defaults with existing config
2020
2378
  *
@@ -2228,11 +2586,11 @@ class FsCellComponent {
2228
2586
  }
2229
2587
  }
2230
2588
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2231
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.7", type: FsCellComponent, isStandalone: true, selector: "[fs-cell]", inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: false, isRequired: false, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: false, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.fs-list-col": "this.isColl", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\r\n\r\n<ng-template #defaultCellTemplate let-value=\"value\">\r\n {{value}}\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2589
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.7", type: FsCellComponent, isStandalone: true, selector: "[fs-cell]", inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: false, isRequired: false, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: false, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.fs-list-col": "this.isColl", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #defaultCellTemplate let-value=\"value\">\n {{value}}\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2232
2590
  }
2233
2591
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsCellComponent, decorators: [{
2234
2592
  type: Component,
2235
- args: [{ selector: '[fs-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\r\n\r\n<ng-template #defaultCellTemplate let-value=\"value\">\r\n {{value}}\r\n</ng-template>\r\n" }]
2593
+ args: [{ selector: '[fs-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"cellTemplate || defaultCellTemplate\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #defaultCellTemplate let-value=\"value\">\n {{value}}\n</ng-template>\n" }]
2236
2594
  }], ctorParameters: () => [], propDecorators: { isColl: [{
2237
2595
  type: HostBinding,
2238
2596
  args: ['class.fs-list-col']
@@ -2531,7 +2889,7 @@ class FsRowComponent {
2531
2889
  });
2532
2890
  }
2533
2891
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2534
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsRowComponent, isStandalone: true, selector: "[fs-list-row]", inputs: { row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null }, rowActionsRaw: { classPropertyName: "rowActionsRaw", publicName: "rowActionsRaw", isSignal: false, isRequired: false, transformFunction: null }, groupActionsRaw: { classPropertyName: "groupActionsRaw", publicName: "groupActionsRaw", isSignal: false, isRequired: false, transformFunction: null }, hasRowActions: { classPropertyName: "hasRowActions", publicName: "hasRowActions", isSignal: false, isRequired: false, transformFunction: null }, rowEvents: { classPropertyName: "rowEvents", publicName: "rowEvents", isSignal: false, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: false, isRequired: false, transformFunction: null }, restoreMode: { classPropertyName: "restoreMode", publicName: "restoreMode", isSignal: false, isRequired: false, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: false, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: false, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: false, isRequired: false, transformFunction: null }, rowRemoved: { classPropertyName: "rowRemoved", publicName: "rowRemoved", isSignal: false, isRequired: false, transformFunction: null }, activeFiltersCount: { classPropertyName: "activeFiltersCount", publicName: "activeFiltersCount", isSignal: false, isRequired: false, transformFunction: null }, reorderEnabled: { classPropertyName: "reorderEnabled", publicName: "reorderEnabled", isSignal: false, isRequired: false, transformFunction: null }, reorderPosition: { classPropertyName: "reorderPosition", publicName: "reorderPosition", isSignal: false, isRequired: false, transformFunction: null }, reorderStrategy: { classPropertyName: "reorderStrategy", publicName: "reorderStrategy", isSignal: false, isRequired: false, transformFunction: null }, reorderMultiple: { classPropertyName: "reorderMultiple", publicName: "reorderMultiple", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.rowCustomClass()", "attr.role": "this.role", "class.drag-row": "this.reorderEnabled", "class.multiple-selection": "this.isMultipleSelection" } }, ngImport: i0, template: "<!-- Drag -->\n@if (leftDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Selection -->\n@if (selection && (selection.enabled$ | async)) {\n <td class=\"fs-list-col fs-list-col-selection\">\n @if (!isGroupFooterRow()) {\n <mat-checkbox\n (change)=\"selectRow($event)\"\n [disabled]=\"!selection.selectable(row(), rowIndex)\"\n [checked]=\"selected\"\n [indeterminate]=\"indeterminateSelected\">\n </mat-checkbox>\n }\n </td>\n}\n<!-- Content -->\n@for (column of columns; track trackByFn($index); let isFirst = $first) {\n @if ((isGroupRow() && !column.groupHeaderColspanned) || (isGroupFooterRow() && !column.groupFooterColspanned) || (!isGroupRow() && !isGroupFooterRow() && !column.cellColspanned)) {\n <td\n fs-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [class]=\"(isGroupRow() && column.groupHeaderConfigs.classesString)\n || (isGroupFooterRow() && column.groupFooterConfigs.classesString)\n || (!isGroupFooterRow() && column.cellConfigs.classesString)\"\n [ngClass]=\"{ 'primary-col': isFirst }\"\n [attr.colspan]=\"(isGroupRow() && column.groupHeaderConfigs.colspan)\n || (isGroupFooterRow() && column.groupFooterConfigs.colspan)\n || column.cellConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Row Actions -->\n@if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategy.Manual)) {\n <td class=\"fs-list-col actions-col\">\n @if (!isGroupFooterRow()) {\n <fs-list-row-actions\n [row]=\"row()\"\n [index]=\"rowIndex\"\n [rowActions]=\"rowActions\"\n [menuRowActions]=\"menuRowActions\"\n [inlineRowActions]=\"inlineRowActions\"\n [restoreAction]=\"restoreAction\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\">\n </fs-list-row-actions>\n }\n </td>\n}\n<ng-template #dragCell>\n @if (dragCellVisible() && !isGroupFooterRow()) {\n <td\n class=\"fs-list-col drag-col\"\n [class.drag-disabled]=\"isDragDisabled\"\n (mousedown)=\"dragStart($event)\"\n (touchstart)=\"dragStart($event)\">\n <mat-icon>\n drag_handle\n </mat-icon>\n </td>\n } @else {\n <td class=\"fs-list-col drag-col\"></td>\n }\n</ng-template>", styles: [":host.drag-hidden{display:none}:host.draggable{opacity:.8;position:fixed;z-index:9999;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:5px}:host.draggable td{border:none;background-color:#fff}:host.draggable-elem td{background-color:#c3c3c3}:host.fs-list-row-clickable{cursor:pointer}td.drag-col{width:1%!important;white-space:nowrap;text-align:center;cursor:grab}td.drag-col.drag-disabled{opacity:.4;cursor:no-drop}td.drag-col mat-icon{display:flex}td.fs-list-col-selection{padding:10px;width:1%!important}td.actions-col{width:1%;white-space:nowrap;overflow:hidden}td.actions-col .row-inline-action{margin-left:12px;display:inline-block}td.actions-col .row-inline-action:first-child{margin-left:0}td.actions-col .row-inline-action-icon,td.actions-col .row-inline-action-fab,td.actions-col .row-inline-action-mini-fab,td.actions-col .row-menu-action{width:35px;justify-content:center;align-items:center}td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: FsCellComponent, selector: "[fs-cell]", inputs: ["column", "rowIndex", "row"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FsRowActionsComponent, selector: "fs-list-row-actions", inputs: ["row", "index", "restoreMode", "rowActions", "rowRemoved", "menuRowActions", "inlineRowActions", "restoreAction"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2892
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsRowComponent, isStandalone: true, selector: "[fs-list-row]", inputs: { row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: false, transformFunction: null }, rowActionsRaw: { classPropertyName: "rowActionsRaw", publicName: "rowActionsRaw", isSignal: false, isRequired: false, transformFunction: null }, groupActionsRaw: { classPropertyName: "groupActionsRaw", publicName: "groupActionsRaw", isSignal: false, isRequired: false, transformFunction: null }, hasRowActions: { classPropertyName: "hasRowActions", publicName: "hasRowActions", isSignal: false, isRequired: false, transformFunction: null }, rowEvents: { classPropertyName: "rowEvents", publicName: "rowEvents", isSignal: false, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: false, isRequired: false, transformFunction: null }, restoreMode: { classPropertyName: "restoreMode", publicName: "restoreMode", isSignal: false, isRequired: false, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: false, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: false, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: false, isRequired: false, transformFunction: null }, rowRemoved: { classPropertyName: "rowRemoved", publicName: "rowRemoved", isSignal: false, isRequired: false, transformFunction: null }, activeFiltersCount: { classPropertyName: "activeFiltersCount", publicName: "activeFiltersCount", isSignal: false, isRequired: false, transformFunction: null }, reorderEnabled: { classPropertyName: "reorderEnabled", publicName: "reorderEnabled", isSignal: false, isRequired: false, transformFunction: null }, reorderPosition: { classPropertyName: "reorderPosition", publicName: "reorderPosition", isSignal: false, isRequired: false, transformFunction: null }, reorderStrategy: { classPropertyName: "reorderStrategy", publicName: "reorderStrategy", isSignal: false, isRequired: false, transformFunction: null }, reorderMultiple: { classPropertyName: "reorderMultiple", publicName: "reorderMultiple", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.rowCustomClass()", "attr.role": "this.role", "class.drag-row": "this.reorderEnabled", "class.multiple-selection": "this.isMultipleSelection" } }, ngImport: i0, template: "<!-- Drag -->\n@if (leftDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Selection -->\n@if (selection && (selection.enabled$ | async)) {\n <td class=\"fs-list-col fs-list-col-selection\">\n @if (!isGroupFooterRow()) {\n <mat-checkbox\n (change)=\"selectRow($event)\"\n [disabled]=\"!selection.selectable(row(), rowIndex)\"\n [checked]=\"selected\"\n [indeterminate]=\"indeterminateSelected\">\n </mat-checkbox>\n }\n </td>\n}\n<!-- Content -->\n@for (column of columns; track column.uid; let isFirst = $first) {\n @if ((isGroupRow() && !column.groupHeaderColspanned) || (isGroupFooterRow() && !column.groupFooterColspanned) || (!isGroupRow() && !isGroupFooterRow() && !column.cellColspanned)) {\n <td\n fs-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [class]=\"(isGroupRow() && column.groupHeaderConfigs.classesString)\n || (isGroupFooterRow() && column.groupFooterConfigs.classesString)\n || (!isGroupFooterRow() && column.cellConfigs.classesString)\"\n [ngClass]=\"{ 'primary-col': isFirst }\"\n [attr.colspan]=\"(isGroupRow() && column.groupHeaderConfigs.colspan)\n || (isGroupFooterRow() && column.groupFooterConfigs.colspan)\n || column.cellConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Row Actions -->\n@if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategy.Manual)) {\n <td class=\"fs-list-col actions-col\">\n @if (!isGroupFooterRow()) {\n <fs-list-row-actions\n [row]=\"row()\"\n [index]=\"rowIndex\"\n [rowActions]=\"rowActions\"\n [menuRowActions]=\"menuRowActions\"\n [inlineRowActions]=\"inlineRowActions\"\n [restoreAction]=\"restoreAction\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\">\n </fs-list-row-actions>\n }\n </td>\n}\n<ng-template #dragCell>\n @if (dragCellVisible() && !isGroupFooterRow()) {\n <td\n class=\"fs-list-col drag-col\"\n [class.drag-disabled]=\"isDragDisabled\"\n (mousedown)=\"dragStart($event)\"\n (touchstart)=\"dragStart($event)\">\n <mat-icon>\n drag_handle\n </mat-icon>\n </td>\n } @else {\n <td class=\"fs-list-col drag-col\"></td>\n }\n</ng-template>", styles: [":host.drag-hidden{display:none}:host.draggable{opacity:.8;position:fixed;z-index:9999;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:5px}:host.draggable td{border:none;background-color:#fff}:host.draggable-elem td{background-color:#c3c3c3}:host.fs-list-row-clickable{cursor:pointer}td.drag-col{width:1%!important;white-space:nowrap;text-align:center;cursor:grab}td.drag-col.drag-disabled{opacity:.4;cursor:no-drop}td.drag-col mat-icon{display:flex}td.fs-list-col-selection{padding:10px;width:1%!important}td.actions-col{width:1%;white-space:nowrap;overflow:hidden}td.actions-col .row-inline-action{margin-left:12px;display:inline-block}td.actions-col .row-inline-action:first-child{margin-left:0}td.actions-col .row-inline-action-icon,td.actions-col .row-inline-action-fab,td.actions-col .row-inline-action-mini-fab,td.actions-col .row-menu-action{width:35px;justify-content:center;align-items:center}td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: FsCellComponent, selector: "[fs-cell]", inputs: ["column", "rowIndex", "row"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FsRowActionsComponent, selector: "fs-list-row-actions", inputs: ["row", "index", "restoreMode", "rowActions", "rowRemoved", "menuRowActions", "inlineRowActions", "restoreAction"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2535
2893
  }
2536
2894
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsRowComponent, decorators: [{
2537
2895
  type: Component,
@@ -2545,7 +2903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2545
2903
  FsRowActionsComponent,
2546
2904
  MatIcon,
2547
2905
  AsyncPipe,
2548
- ], template: "<!-- Drag -->\n@if (leftDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Selection -->\n@if (selection && (selection.enabled$ | async)) {\n <td class=\"fs-list-col fs-list-col-selection\">\n @if (!isGroupFooterRow()) {\n <mat-checkbox\n (change)=\"selectRow($event)\"\n [disabled]=\"!selection.selectable(row(), rowIndex)\"\n [checked]=\"selected\"\n [indeterminate]=\"indeterminateSelected\">\n </mat-checkbox>\n }\n </td>\n}\n<!-- Content -->\n@for (column of columns; track trackByFn($index); let isFirst = $first) {\n @if ((isGroupRow() && !column.groupHeaderColspanned) || (isGroupFooterRow() && !column.groupFooterColspanned) || (!isGroupRow() && !isGroupFooterRow() && !column.cellColspanned)) {\n <td\n fs-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [class]=\"(isGroupRow() && column.groupHeaderConfigs.classesString)\n || (isGroupFooterRow() && column.groupFooterConfigs.classesString)\n || (!isGroupFooterRow() && column.cellConfigs.classesString)\"\n [ngClass]=\"{ 'primary-col': isFirst }\"\n [attr.colspan]=\"(isGroupRow() && column.groupHeaderConfigs.colspan)\n || (isGroupFooterRow() && column.groupFooterConfigs.colspan)\n || column.cellConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Row Actions -->\n@if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategy.Manual)) {\n <td class=\"fs-list-col actions-col\">\n @if (!isGroupFooterRow()) {\n <fs-list-row-actions\n [row]=\"row()\"\n [index]=\"rowIndex\"\n [rowActions]=\"rowActions\"\n [menuRowActions]=\"menuRowActions\"\n [inlineRowActions]=\"inlineRowActions\"\n [restoreAction]=\"restoreAction\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\">\n </fs-list-row-actions>\n }\n </td>\n}\n<ng-template #dragCell>\n @if (dragCellVisible() && !isGroupFooterRow()) {\n <td\n class=\"fs-list-col drag-col\"\n [class.drag-disabled]=\"isDragDisabled\"\n (mousedown)=\"dragStart($event)\"\n (touchstart)=\"dragStart($event)\">\n <mat-icon>\n drag_handle\n </mat-icon>\n </td>\n } @else {\n <td class=\"fs-list-col drag-col\"></td>\n }\n</ng-template>", styles: [":host.drag-hidden{display:none}:host.draggable{opacity:.8;position:fixed;z-index:9999;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:5px}:host.draggable td{border:none;background-color:#fff}:host.draggable-elem td{background-color:#c3c3c3}:host.fs-list-row-clickable{cursor:pointer}td.drag-col{width:1%!important;white-space:nowrap;text-align:center;cursor:grab}td.drag-col.drag-disabled{opacity:.4;cursor:no-drop}td.drag-col mat-icon{display:flex}td.fs-list-col-selection{padding:10px;width:1%!important}td.actions-col{width:1%;white-space:nowrap;overflow:hidden}td.actions-col .row-inline-action{margin-left:12px;display:inline-block}td.actions-col .row-inline-action:first-child{margin-left:0}td.actions-col .row-inline-action-icon,td.actions-col .row-inline-action-fab,td.actions-col .row-inline-action-mini-fab,td.actions-col .row-menu-action{width:35px;justify-content:center;align-items:center}td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"] }]
2906
+ ], template: "<!-- Drag -->\n@if (leftDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Selection -->\n@if (selection && (selection.enabled$ | async)) {\n <td class=\"fs-list-col fs-list-col-selection\">\n @if (!isGroupFooterRow()) {\n <mat-checkbox\n (change)=\"selectRow($event)\"\n [disabled]=\"!selection.selectable(row(), rowIndex)\"\n [checked]=\"selected\"\n [indeterminate]=\"indeterminateSelected\">\n </mat-checkbox>\n }\n </td>\n}\n<!-- Content -->\n@for (column of columns; track column.uid; let isFirst = $first) {\n @if ((isGroupRow() && !column.groupHeaderColspanned) || (isGroupFooterRow() && !column.groupFooterColspanned) || (!isGroupRow() && !isGroupFooterRow() && !column.cellColspanned)) {\n <td\n fs-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [class]=\"(isGroupRow() && column.groupHeaderConfigs.classesString)\n || (isGroupFooterRow() && column.groupFooterConfigs.classesString)\n || (!isGroupFooterRow() && column.cellConfigs.classesString)\"\n [ngClass]=\"{ 'primary-col': isFirst }\"\n [attr.colspan]=\"(isGroupRow() && column.groupHeaderConfigs.colspan)\n || (isGroupFooterRow() && column.groupFooterConfigs.colspan)\n || column.cellConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <ng-container *ngTemplateOutlet=\"dragCell\"></ng-container>\n}\n<!-- Row Actions -->\n@if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategy.Manual)) {\n <td class=\"fs-list-col actions-col\">\n @if (!isGroupFooterRow()) {\n <fs-list-row-actions\n [row]=\"row()\"\n [index]=\"rowIndex\"\n [rowActions]=\"rowActions\"\n [menuRowActions]=\"menuRowActions\"\n [inlineRowActions]=\"inlineRowActions\"\n [restoreAction]=\"restoreAction\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\">\n </fs-list-row-actions>\n }\n </td>\n}\n<ng-template #dragCell>\n @if (dragCellVisible() && !isGroupFooterRow()) {\n <td\n class=\"fs-list-col drag-col\"\n [class.drag-disabled]=\"isDragDisabled\"\n (mousedown)=\"dragStart($event)\"\n (touchstart)=\"dragStart($event)\">\n <mat-icon>\n drag_handle\n </mat-icon>\n </td>\n } @else {\n <td class=\"fs-list-col drag-col\"></td>\n }\n</ng-template>", styles: [":host.drag-hidden{display:none}:host.draggable{opacity:.8;position:fixed;z-index:9999;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:5px}:host.draggable td{border:none;background-color:#fff}:host.draggable-elem td{background-color:#c3c3c3}:host.fs-list-row-clickable{cursor:pointer}td.drag-col{width:1%!important;white-space:nowrap;text-align:center;cursor:grab}td.drag-col.drag-disabled{opacity:.4;cursor:no-drop}td.drag-col mat-icon{display:flex}td.fs-list-col-selection{padding:10px;width:1%!important}td.actions-col{width:1%;white-space:nowrap;overflow:hidden}td.actions-col .row-inline-action{margin-left:12px;display:inline-block}td.actions-col .row-inline-action:first-child{margin-left:0}td.actions-col .row-inline-action-icon,td.actions-col .row-inline-action-fab,td.actions-col .row-inline-action-mini-fab,td.actions-col .row-menu-action{width:35px;justify-content:center;align-items:center}td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"] }]
2549
2907
  }], ctorParameters: () => [], propDecorators: { role: [{
2550
2908
  type: HostBinding,
2551
2909
  args: ['attr.role']
@@ -2609,12 +2967,17 @@ class FsBodyComponent {
2609
2967
  /**
2610
2968
  * Track rows by their underlying record id so that a reload (which creates
2611
2969
  * fresh Row wrapper objects) reuses the existing DOM instead of destroying
2612
- * and recreating every row. Falls back to the row index when the data has
2613
- * no id (e.g. group/footer rows or id-less records) -> avoids NG0956.
2970
+ * and recreating every row. Only a genuine, non-empty id counts as a stable
2971
+ * identity: empty string / null / undefined (group & footer rows, id-less
2972
+ * records) fall back to the row index, namespaced so it can never collide
2973
+ * with a real id. Without the fallback every id-less row keys to the same
2974
+ * value and Angular throws NG0955 (duplicate track keys) -> scrambled rows.
2614
2975
  */
2615
2976
  trackByFn(index, row) {
2616
2977
  const id = row?.data?.id;
2617
- return id ?? index;
2978
+ return id === undefined || id === null || id === ''
2979
+ ? `__row_index_${index}`
2980
+ : id;
2618
2981
  }
2619
2982
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2620
2983
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsBodyComponent, isStandalone: true, selector: "[fs-list-body]", inputs: { rows: "rows", columns: "columns", hasFooter: "hasFooter", rowActionsRaw: "rowActionsRaw", groupActionsRaw: "groupActionsRaw", rowEvents: "rowEvents", rowClass: "rowClass", hasRowActions: "hasRowActions", selection: "selection", restoreMode: "restoreMode", rowRemoved: "rowRemoved", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy", reorderMultiple: "reorderMultiple" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: FsRowComponent, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "@for (row of rows; track trackByFn(i, row); let i = $index) {\n <tr\n fs-list-row\n fsListDraggableRow\n [row]=\"row\"\n [rowIndex]=\"i\"\n [columns]=\"columns\"\n [rowActionsRaw]=\"rowActionsRaw\"\n [groupActionsRaw]=\"groupActionsRaw\"\n [hasRowActions]=\"hasRowActions\"\n [rowEvents]=\"rowEvents\"\n [rowClass]=\"rowClass\"\n [selection]=\"selection\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"activeFiltersCount\"\n [reorderEnabled]=\"reorderEnabled\"\n [reorderPosition]=\"reorderPosition\"\n [reorderStrategy]=\"reorderStrategy\"\n [reorderMultiple]=\"reorderMultiple\">\n </tr>\n}", styles: [":host.drag-hidden .drag-col{opacity:0!important;cursor:default}:host.disabled{opacity:.4;pointer-events:none}\n"], dependencies: [{ kind: "component", type: FsRowComponent, selector: "[fs-list-row]", inputs: ["row", "rowActionsRaw", "groupActionsRaw", "hasRowActions", "rowEvents", "rowClass", "restoreMode", "rowIndex", "columns", "selection", "rowRemoved", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy", "reorderMultiple"] }, { kind: "directive", type: FsListDraggableRowDirective, selector: "[fsListDraggableRow]", inputs: ["row"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -2824,23 +3187,23 @@ class FsFooterCellComponent extends FsCellComponent {
2824
3187
  super();
2825
3188
  }
2826
3189
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFooterCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2827
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsFooterCellComponent, isStandalone: true, selector: "[fs-list-footer-cell]", usesInheritance: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\r\n\r\n<ng-template #cell let-value=\"value\">\r\n {{value}}\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3190
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.7", type: FsFooterCellComponent, isStandalone: true, selector: "[fs-list-footer-cell]", usesInheritance: true, ngImport: i0, template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #cell let-value=\"value\">\n {{value}}\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2828
3191
  }
2829
3192
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFooterCellComponent, decorators: [{
2830
3193
  type: Component,
2831
- args: [{ selector: '[fs-list-footer-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\r\n\r\n<ng-template #cell let-value=\"value\">\r\n {{value}}\r\n</ng-template>\r\n" }]
3194
+ args: [{ selector: '[fs-list-footer-cell]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet], template: "<ng-template [ngTemplateOutlet]=\"column.footerTemplate || cell\" [ngTemplateOutletContext]=\"cellContext\"></ng-template>\n\n<ng-template #cell let-value=\"value\">\n {{value}}\n</ng-template>\n" }]
2832
3195
  }], ctorParameters: () => [] });
2833
3196
 
2834
3197
  class FsFooterRowComponent extends FsRowComponent {
2835
3198
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFooterRowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2836
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsFooterRowComponent, isStandalone: true, selector: "[fs-list-footer-row]", usesInheritance: true, ngImport: i0, template: "@if (leftDragDropEnabled) {\n <td class=\"fs-list-col drag-col\"></td>\n}\n@if (selection) {\n <td class=\"fs-list-col fs-list-col-selection\"></td>\n}\n@for (column of columns; track trackByFn($index)) {\n @if (!column.footerColspanned) {\n <td\n fs-list-footer-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [ngClass]=\"column.footerConfigs.classesArray\"\n [attr.colspan]=\"column.footerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <td class=\"fs-list-col actions-col\"></td>\n}\n<!-- Row Actions -->", styles: ["td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"], dependencies: [{ kind: "component", type: FsFooterCellComponent, selector: "[fs-list-footer-cell]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3199
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsFooterRowComponent, isStandalone: true, selector: "[fs-list-footer-row]", usesInheritance: true, ngImport: i0, template: "@if (leftDragDropEnabled) {\n <td class=\"fs-list-col drag-col\"></td>\n}\n@if (selection) {\n <td class=\"fs-list-col fs-list-col-selection\"></td>\n}\n@for (column of columns; track column.uid) {\n @if (!column.footerColspanned) {\n <td\n fs-list-footer-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [ngClass]=\"column.footerConfigs.classesArray\"\n [attr.colspan]=\"column.footerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <td class=\"fs-list-col actions-col\"></td>\n}\n<!-- Row Actions -->", styles: ["td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"], dependencies: [{ kind: "component", type: FsFooterCellComponent, selector: "[fs-list-footer-cell]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2837
3200
  }
2838
3201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFooterRowComponent, decorators: [{
2839
3202
  type: Component,
2840
3203
  args: [{ selector: '[fs-list-footer-row]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
2841
3204
  FsFooterCellComponent,
2842
3205
  NgClass,
2843
- ], template: "@if (leftDragDropEnabled) {\n <td class=\"fs-list-col drag-col\"></td>\n}\n@if (selection) {\n <td class=\"fs-list-col fs-list-col-selection\"></td>\n}\n@for (column of columns; track trackByFn($index)) {\n @if (!column.footerColspanned) {\n <td\n fs-list-footer-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [ngClass]=\"column.footerConfigs.classesArray\"\n [attr.colspan]=\"column.footerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <td class=\"fs-list-col actions-col\"></td>\n}\n<!-- Row Actions -->", styles: ["td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"] }]
3206
+ ], template: "@if (leftDragDropEnabled) {\n <td class=\"fs-list-col drag-col\"></td>\n}\n@if (selection) {\n <td class=\"fs-list-col fs-list-col-selection\"></td>\n}\n@for (column of columns; track column.uid) {\n @if (!column.footerColspanned) {\n <td\n fs-list-footer-cell\n [column]=\"column\"\n [row]=\"row()\"\n [rowIndex]=\"rowIndex\"\n [ngClass]=\"column.footerConfigs.classesArray\"\n [attr.colspan]=\"column.footerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n }\n}\n<!-- Drag -->\n@if (rightDragDropEnabled) {\n <td class=\"fs-list-col actions-col\"></td>\n}\n<!-- Row Actions -->", styles: ["td.left{text-align:left}td.center{text-align:center}td.right{text-align:right}\n"] }]
2844
3207
  }] });
2845
3208
 
2846
3209
  class FsFooterComponent {
@@ -2879,7 +3242,7 @@ class FsHeadCellComponent extends FsCellComponent {
2879
3242
  this.cellContext.value = this.column.title;
2880
3243
  }
2881
3244
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsHeadCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2882
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsHeadCellComponent, isStandalone: true, selector: "[fs-head-cell]", usesInheritance: true, ngImport: i0, template: "<div class=\"wrap\">\n <span class=\"title\">\n @if (!column.headerTemplate) {\n {{ column.title }}\n }\n @if (column.headerTemplate) {\n <ng-template\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"cellContext\">\n </ng-template>\n }\n </span>\n @if (column.ordered$ | async) {\n @switch (column.sortingDirection$ | async) {\n @case ('asc') {\n <mat-icon>\n arrow_downward\n </mat-icon>\n }\n @case ('desc') {\n <mat-icon>\n arrow_upward\n </mat-icon>\n }\n }\n } @else if (column.sortable) {\n <mat-icon>\n unfold_more\n </mat-icon>\n }\n</div>", styles: [".wrap{display:inline-flex;align-items:center}.wrap mat-icon{font-size:13px;display:block;height:13px;width:13px;margin-left:4px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3245
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsHeadCellComponent, isStandalone: true, selector: "[fs-head-cell]", usesInheritance: true, ngImport: i0, template: "<div class=\"wrap\">\n <span class=\"title\">\n @if (!column.headerTemplate) {\n {{ column.title }}\n }\n @if (column.headerTemplate) {\n <ng-template\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"cellContext\">\n </ng-template>\n }\n </span>\n @if (column.sortIndicated) {\n @if (column.sortSource.ordered$ | async) {\n @switch (column.sortSource.sortingDirection$ | async) {\n @case ('asc') {\n <mat-icon>\n arrow_downward\n </mat-icon>\n }\n @case ('desc') {\n <mat-icon>\n arrow_upward\n </mat-icon>\n }\n }\n } @else if (column.sortSource.sortable) {\n <mat-icon>\n unfold_more\n </mat-icon>\n }\n }\n</div>", styles: [".wrap{display:inline-flex;align-items:center}.wrap mat-icon{font-size:13px;display:block;height:13px;width:13px;margin-left:4px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2883
3246
  }
2884
3247
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsHeadCellComponent, decorators: [{
2885
3248
  type: Component,
@@ -2887,7 +3250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
2887
3250
  NgTemplateOutlet,
2888
3251
  MatIcon,
2889
3252
  AsyncPipe,
2890
- ], template: "<div class=\"wrap\">\n <span class=\"title\">\n @if (!column.headerTemplate) {\n {{ column.title }}\n }\n @if (column.headerTemplate) {\n <ng-template\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"cellContext\">\n </ng-template>\n }\n </span>\n @if (column.ordered$ | async) {\n @switch (column.sortingDirection$ | async) {\n @case ('asc') {\n <mat-icon>\n arrow_downward\n </mat-icon>\n }\n @case ('desc') {\n <mat-icon>\n arrow_upward\n </mat-icon>\n }\n }\n } @else if (column.sortable) {\n <mat-icon>\n unfold_more\n </mat-icon>\n }\n</div>", styles: [".wrap{display:inline-flex;align-items:center}.wrap mat-icon{font-size:13px;display:block;height:13px;width:13px;margin-left:4px}\n"] }]
3253
+ ], template: "<div class=\"wrap\">\n <span class=\"title\">\n @if (!column.headerTemplate) {\n {{ column.title }}\n }\n @if (column.headerTemplate) {\n <ng-template\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"cellContext\">\n </ng-template>\n }\n </span>\n @if (column.sortIndicated) {\n @if (column.sortSource.ordered$ | async) {\n @switch (column.sortSource.sortingDirection$ | async) {\n @case ('asc') {\n <mat-icon>\n arrow_downward\n </mat-icon>\n }\n @case ('desc') {\n <mat-icon>\n arrow_upward\n </mat-icon>\n }\n }\n } @else if (column.sortSource.sortable) {\n <mat-icon>\n unfold_more\n </mat-icon>\n }\n }\n</div>", styles: [".wrap{display:inline-flex;align-items:center}.wrap mat-icon{font-size:13px;display:block;height:13px;width:13px;margin-left:4px}\n"] }]
2891
3254
  }] });
2892
3255
 
2893
3256
  class SortingController {
@@ -3133,6 +3496,20 @@ class FsHeadComponent {
3133
3496
  selectAll(event) {
3134
3497
  this.selection.selectAllVisibleRows(event.checked);
3135
3498
  }
3499
+ /**
3500
+ * Sort by the clicked column.
3501
+ *
3502
+ * Sorting always acts on `sortSource` -- the base column -- so the emitted `order` param
3503
+ * is the same at every width. But a breakpoint column that shows no sort control must
3504
+ * not sort when clicked either, hence the `sortIndicated` gate.
3505
+ *
3506
+ * @param column
3507
+ */
3508
+ sortBy(column) {
3509
+ if (column.sortIndicated) {
3510
+ this.sorting.sortBy(column.sortSource);
3511
+ }
3512
+ }
3136
3513
  /**
3137
3514
  * Track By for improve change detection
3138
3515
  *
@@ -3157,6 +3534,7 @@ class FsHeadComponent {
3157
3534
  */
3158
3535
  _initSelection() {
3159
3536
  if (this.selection) {
3537
+ this.selectedAll = this.selection.selectedAllVisible;
3160
3538
  this.selection.selectionChange$
3161
3539
  .pipe(filter(({ type }) => (type === SelectionChangeType.AllVisibleSelectionChange
3162
3540
  || type === SelectionChangeType.SelectedAll
@@ -3168,7 +3546,7 @@ class FsHeadComponent {
3168
3546
  }
3169
3547
  }
3170
3548
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsHeadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3171
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsHeadComponent, isStandalone: true, selector: "[fs-list-head]", inputs: { sorting: "sorting", columns: "columns", hasRowActions: "hasRowActions", selection: "selection", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy" }, viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n @if (leftDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Selection -->\n @if (selection && !(selection.disabled$ | async)) {\n <th class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox\n (change)=\"selectAll($event)\"\n [checked]=\"selectedAll\">\n </mat-checkbox>\n </th>\n }\n <!-- Content -->\n @for (column of columns; track trackByFn($index, column)) {\n <th\n fs-head-cell\n (click)=\"$event.stopPropagation(); sorting.sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n }\n <!-- Drag -->\n @if (rightDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Row Actions -->\n @if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)) {\n <th class=\"fs-list-col actions-col\"></th>\n }\n</tr>", styles: ["th.fs-list-col-selection{width:1%!important;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"], dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: FsHeadCellComponent, selector: "[fs-head-cell]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3549
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsHeadComponent, isStandalone: true, selector: "[fs-list-head]", inputs: { sorting: "sorting", columns: "columns", hasRowActions: "hasRowActions", selection: "selection", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy" }, viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n @if (leftDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Selection -->\n @if (selection && !(selection.disabled$ | async)) {\n <th class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox\n (change)=\"selectAll($event)\"\n [checked]=\"selectedAll\">\n </mat-checkbox>\n </th>\n }\n <!-- Content -->\n @for (column of columns; track column.uid) {\n <th\n fs-head-cell\n (click)=\"$event.stopPropagation(); sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortIndicated && column.sortSource.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n }\n <!-- Drag -->\n @if (rightDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Row Actions -->\n @if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)) {\n <th class=\"fs-list-col actions-col\"></th>\n }\n</tr>", styles: ["th.fs-list-col-selection{width:1%!important;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"], dependencies: [{ kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: FsHeadCellComponent, selector: "[fs-head-cell]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3172
3550
  }
3173
3551
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsHeadComponent, decorators: [{
3174
3552
  type: Component,
@@ -3177,7 +3555,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
3177
3555
  FsHeadCellComponent,
3178
3556
  NgClass,
3179
3557
  AsyncPipe,
3180
- ], template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n @if (leftDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Selection -->\n @if (selection && !(selection.disabled$ | async)) {\n <th class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox\n (change)=\"selectAll($event)\"\n [checked]=\"selectedAll\">\n </mat-checkbox>\n </th>\n }\n <!-- Content -->\n @for (column of columns; track trackByFn($index, column)) {\n <th\n fs-head-cell\n (click)=\"$event.stopPropagation(); sorting.sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n }\n <!-- Drag -->\n @if (rightDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Row Actions -->\n @if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)) {\n <th class=\"fs-list-col actions-col\"></th>\n }\n</tr>", styles: ["th.fs-list-col-selection{width:1%!important;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"] }]
3558
+ ], template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n @if (leftDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Selection -->\n @if (selection && !(selection.disabled$ | async)) {\n <th class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox\n (change)=\"selectAll($event)\"\n [checked]=\"selectedAll\">\n </mat-checkbox>\n </th>\n }\n <!-- Content -->\n @for (column of columns; track column.uid) {\n <th\n fs-head-cell\n (click)=\"$event.stopPropagation(); sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortIndicated && column.sortSource.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n }\n <!-- Drag -->\n @if (rightDragDropEnabled) {\n <th class=\"fs-list-col drag-col\"></th>\n }\n <!-- Row Actions -->\n @if (hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)) {\n <th class=\"fs-list-col actions-col\"></th>\n }\n</tr>", styles: ["th.fs-list-col-selection{width:1%!important;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"] }]
3181
3559
  }], propDecorators: { sorting: [{
3182
3560
  type: Input
3183
3561
  }], columns: [{
@@ -3218,34 +3596,68 @@ var FsListState;
3218
3596
 
3219
3597
  class ColumnsController {
3220
3598
  _persistance;
3599
+ _breakpoints;
3221
3600
  _visibleColumns$ = new BehaviorSubject([]);
3222
- _visibleColumnsShared$ = this._visibleColumns$.pipe();
3223
- _theadClass = '';
3601
+ _visibleColumnsShared$ = this._visibleColumns$.asObservable();
3602
+ /**
3603
+ * The columns the three bands actually render -- the active set's visible columns.
3604
+ * Cached in a field, never a getter: AsyncPipe re-subscribes whenever the observable
3605
+ * identity changes, and `asObservable()` returns a new instance per call.
3606
+ */
3607
+ _renderedColumns$ = new BehaviorSubject([]);
3608
+ _renderedColumnsShared$ = this._renderedColumns$.asObservable();
3609
+ _activeSet$ = new BehaviorSubject(null);
3610
+ _activeSetShared$ = this._activeSet$.asObservable();
3611
+ _sets = [];
3612
+ _base = new ColumnSet(null);
3613
+ _active = this._base;
3224
3614
  _loadFn;
3225
3615
  _changeFn;
3226
3616
  _initFn;
3227
3617
  _isConfigured = false;
3228
3618
  _columnsFetched = false;
3229
- _hasHeader = false;
3230
- _hasFooter = false;
3231
- _columns = [];
3232
3619
  _defaultConfigs;
3620
+ _batching = false;
3233
3621
  _columnsUpdated$ = new Subject();
3234
3622
  _destroy$ = new Subject();
3235
- constructor(_persistance) {
3623
+ constructor(_persistance, _breakpoints) {
3236
3624
  this._persistance = _persistance;
3625
+ this._breakpoints = _breakpoints;
3237
3626
  }
3627
+ /**
3628
+ * The base (desktop) set. Unchanged meaning: persistence, the customize dialog and the
3629
+ * `columns` fetch param all stay viewport-independent because they read this.
3630
+ */
3238
3631
  get columns() {
3239
- return this._columns.slice();
3632
+ return this._base.columns.slice();
3240
3633
  }
3241
3634
  get visibleColumns() {
3242
- return this._visibleColumns$.getValue();
3635
+ return this._base.rendered;
3243
3636
  }
3244
3637
  get visibleColumns$() {
3245
3638
  return this._visibleColumnsShared$;
3246
3639
  }
3640
+ /** The active set's visible columns -- what `<thead>`/`<tbody>`/`<tfoot>` iterate. */
3641
+ get renderedColumns() {
3642
+ return this._active.rendered;
3643
+ }
3644
+ get renderedColumns$() {
3645
+ return this._renderedColumnsShared$;
3646
+ }
3647
+ get activeSet() {
3648
+ return this._active;
3649
+ }
3650
+ get activeSet$() {
3651
+ return this._activeSetShared$;
3652
+ }
3653
+ /** The `maxWidth` of every declared breakpoint set, ascending. */
3654
+ get breakpoints() {
3655
+ return this._sets
3656
+ .filter((set) => !set.isBase)
3657
+ .map((set) => set.maxWidth);
3658
+ }
3247
3659
  get columnsForDialog() {
3248
- return this._columns
3660
+ return this._base.columns
3249
3661
  .filter((column) => column.customizable && !!column.name)
3250
3662
  .map((column) => {
3251
3663
  return {
@@ -3260,13 +3672,14 @@ class ColumnsController {
3260
3672
  return this._columnsFetched;
3261
3673
  }
3262
3674
  get hasHeader() {
3263
- return this._hasHeader;
3675
+ return this._active.hasHeader;
3264
3676
  }
3265
3677
  get hasFooter() {
3266
- return this._hasFooter;
3678
+ return this._active.hasFooter;
3267
3679
  }
3680
+ /** Follows the active set: a breakpoint set that declares no headers is not `has-header`. */
3268
3681
  get theadClass() {
3269
- return this._theadClass;
3682
+ return this._active?.hasHeader ? 'has-header' : '';
3270
3683
  }
3271
3684
  get configured() {
3272
3685
  return this._isConfigured;
@@ -3300,26 +3713,36 @@ class ColumnsController {
3300
3713
  }
3301
3714
  /**
3302
3715
  * Base initialization for columns
3303
- * @param templates
3304
- */
3305
- initializeColumns(templates) {
3306
- this._columns = [];
3307
- templates.forEach((column) => {
3308
- const col = new Column(column, this._defaultConfigs);
3309
- if (col.headerTemplate || col.title) {
3310
- this._hasHeader = true;
3311
- }
3312
- if (col.footerTemplate) {
3313
- this._hasFooter = true;
3314
- }
3315
- this._columns.push(col);
3716
+ *
3717
+ * @param templates base (desktop) column directives
3718
+ * @param breakpointDirectives `<fs-list-breakpoint>` directives, each declaring one set
3719
+ */
3720
+ initializeColumns(templates, breakpointDirectives = []) {
3721
+ this._base = this._buildSet(new ColumnSet(null), templates);
3722
+ const breakpointSets = (breakpointDirectives || [])
3723
+ .filter((directive) => Number.isFinite(directive?.maxWidth))
3724
+ .map((directive) => {
3725
+ const set = new ColumnSet(directive.maxWidth);
3726
+ set.selection = directive.selection;
3727
+ set.rowActions = directive.rowActions;
3728
+ set.reorder = directive.reorder;
3729
+ return this._buildSet(set, directive.columnDirectives?.toArray() ?? []);
3730
+ })
3731
+ .sort((a, b) => a.maxWidth - b.maxWidth);
3732
+ this._sets = [...breakpointSets, this._base];
3733
+ this._sets.forEach((set, setIndex) => {
3734
+ set.columns.forEach((column, index) => {
3735
+ column.uid = `${setIndex}:${index}`;
3736
+ });
3737
+ set.resolve();
3316
3738
  });
3317
- this._theadClass = this.hasHeader ? 'has-header' : '';
3318
- this._updateColspans('headerConfigs', 'headerColspanned');
3319
- this._updateColspans('groupHeaderConfigs', 'groupHeaderColspanned');
3320
- this._updateColspans('groupFooterConfigs', 'groupFooterColspanned');
3321
- this._updateColspans('cellConfigs', 'cellColspanned');
3322
- this._updateColspans('footerConfigs', 'footerColspanned');
3739
+ // Tear down subscriptions from a previous initializeColumns before re-subscribing.
3740
+ this._columnsUpdated$.next(null);
3741
+ // Apply whatever breakpoint is already active before the first emission, so the
3742
+ // initial paint uses the right set rather than flashing the desktop columns.
3743
+ this._active = this._base;
3744
+ this._listenBreakpointChanges();
3745
+ this._applyActiveSet(this._breakpoints?.active ?? null);
3323
3746
  this.updateVisibleColumns();
3324
3747
  this._listenColumnVisibilityUpdates();
3325
3748
  }
@@ -3332,7 +3755,7 @@ class ColumnsController {
3332
3755
  this._columnsFetched = true;
3333
3756
  this.updateVisibilityForCols(columns);
3334
3757
  this.updateCustomizableForCols(columns);
3335
- this._initFn(this._columns
3758
+ this._initFn(this._base.columns
3336
3759
  .filter((column) => column.customizable && !!column.name)
3337
3760
  .map((column) => {
3338
3761
  return {
@@ -3346,45 +3769,120 @@ class ColumnsController {
3346
3769
  * Set visible columns based on current columns show status
3347
3770
  */
3348
3771
  updateVisibleColumns() {
3349
- this._visibleColumns$.next(this._columns.filter((column) => column.visible) || []);
3772
+ if (this._batching) {
3773
+ return;
3774
+ }
3775
+ this._sets.forEach((set) => set.update());
3776
+ this._visibleColumns$.next(this._base.rendered);
3777
+ this._renderedColumns$.next(this._active.rendered);
3778
+ }
3779
+ /**
3780
+ * Switch to the set registered for `maxWidth`, or the base set when null.
3781
+ */
3782
+ setActiveBreakpoint(maxWidth) {
3783
+ if (this._applyActiveSet(maxWidth)) {
3784
+ this.updateVisibleColumns();
3785
+ }
3350
3786
  }
3351
3787
  /**
3352
- * Update visibility based on passed config
3788
+ * Update visibility based on passed config.
3789
+ *
3790
+ * Applies to every set that declares a column of that name, so hiding a column in the
3791
+ * customize dialog hides it at every width.
3792
+ *
3353
3793
  * @param columnsConfig
3354
3794
  */
3355
3795
  updateVisibilityForCols(columnsConfig) {
3356
- columnsConfig.forEach((columnConfig) => {
3357
- const col = this._columns
3358
- .find((column) => column.name === columnConfig.name);
3359
- if (col) {
3360
- col.updateVisibility(columnConfig.show ?? true);
3361
- }
3362
- });
3796
+ this._batching = true;
3797
+ try {
3798
+ columnsConfig.forEach((columnConfig) => {
3799
+ this._columnsNamed(columnConfig.name)
3800
+ .forEach((column) => column.updateVisibility(columnConfig.show ?? true));
3801
+ });
3802
+ }
3803
+ finally {
3804
+ this._batching = false;
3805
+ }
3363
3806
  this.updateVisibleColumns();
3364
3807
  }
3365
3808
  updateCustomizableForCols(columnsConfig) {
3366
3809
  columnsConfig.forEach((columnConfig) => {
3367
- const col = this._columns
3368
- .find((column) => column.name === columnConfig.name);
3369
- if (col) {
3370
- col.updateCustomizable(columnConfig.customizable ?? true);
3371
- }
3810
+ this._columnsNamed(columnConfig.name)
3811
+ .forEach((column) => column.updateCustomizable(columnConfig.customizable ?? true));
3372
3812
  });
3373
3813
  }
3374
3814
  destroy() {
3375
3815
  this._destroy$.next(null);
3376
3816
  this._destroy$.complete();
3377
3817
  this._columnsUpdated$.complete();
3378
- this._columns = undefined;
3818
+ this._renderedColumns$.complete();
3819
+ this._activeSet$.complete();
3820
+ this._sets = undefined;
3821
+ this._base = undefined;
3822
+ this._active = undefined;
3379
3823
  this._visibleColumns$ = undefined;
3380
3824
  this._defaultConfigs = undefined;
3381
3825
  this._loadFn = undefined;
3382
3826
  this._changeFn = undefined;
3383
3827
  this._initFn = undefined;
3384
3828
  }
3829
+ _buildSet(set, templates) {
3830
+ (templates || []).forEach((template) => {
3831
+ const column = new Column(template, this._defaultConfigs);
3832
+ if (!set.isBase) {
3833
+ column.baseColumn = column.name
3834
+ ? this._base.columns.find((base) => base.name === column.name) ?? null
3835
+ : null;
3836
+ if (isDevMode() && column.name && !column.baseColumn) {
3837
+ console.warn(`[fs-list-breakpoint] Column "${column.name}" has no column of that name in ` +
3838
+ 'the base set, so it cannot inherit templates or sorting from one.');
3839
+ }
3840
+ column.inheritTemplatesFrom(column.baseColumn);
3841
+ }
3842
+ set.columns.push(column);
3843
+ });
3844
+ return set;
3845
+ }
3846
+ /** Every column of a given name, across every set. */
3847
+ _columnsNamed(name) {
3848
+ return this._sets
3849
+ .reduce((acc, set) => {
3850
+ const column = set.columns.find((item) => item.name === name);
3851
+ return column ? [...acc, column] : acc;
3852
+ }, []);
3853
+ }
3854
+ /**
3855
+ * @returns whether the active set actually changed
3856
+ */
3857
+ _applyActiveSet(maxWidth) {
3858
+ let next = this._sets.find((set) => set.maxWidth === maxWidth) ?? this._base;
3859
+ next.update();
3860
+ // A set that renders nothing would produce an empty table. Fall back to base.
3861
+ if (!next.isBase && !next.rendered.length) {
3862
+ next = this._base;
3863
+ }
3864
+ if (next === this._active) {
3865
+ return false;
3866
+ }
3867
+ this._active = next;
3868
+ this._activeSet$.next(next);
3869
+ return true;
3870
+ }
3871
+ _listenBreakpointChanges() {
3872
+ if (!this._breakpoints) {
3873
+ return;
3874
+ }
3875
+ this._breakpoints.setBreakpoints(this.breakpoints);
3876
+ this._breakpoints.active$
3877
+ .pipe(skip(1), takeUntil(this._columnsUpdated$), takeUntil(this._destroy$))
3878
+ .subscribe((maxWidth) => {
3879
+ this.setActiveBreakpoint(maxWidth);
3880
+ });
3881
+ }
3385
3882
  _listenColumnVisibilityUpdates() {
3386
- this._columnsUpdated$.next(null);
3387
- const columnsVisibility = this._columns.map((column) => {
3883
+ const columnsVisibility = this._sets
3884
+ .reduce((acc, set) => [...acc, ...set.columns], [])
3885
+ .map((column) => {
3388
3886
  return column.visible$.pipe(skip(1));
3389
3887
  });
3390
3888
  merge(...columnsVisibility)
@@ -3393,22 +3891,6 @@ class ColumnsController {
3393
3891
  this.updateVisibleColumns();
3394
3892
  });
3395
3893
  }
3396
- _updateColspans(config, updateFlag) {
3397
- this._columns.forEach((col, index) => {
3398
- if (col[config].colspan !== undefined) {
3399
- const spanTo = index + +col[config].colspan;
3400
- if (!isNumber(spanTo)) {
3401
- return;
3402
- }
3403
- this._columns[index][updateFlag] = false;
3404
- for (let i = index + 1; i < spanTo; i++) {
3405
- if (this._columns[i]) {
3406
- this._columns[i][updateFlag] = true;
3407
- }
3408
- }
3409
- }
3410
- });
3411
- }
3412
3894
  }
3413
3895
 
3414
3896
  class DataController {
@@ -4473,6 +4955,7 @@ class List {
4473
4955
  _route;
4474
4956
  _persistance;
4475
4957
  _inDialog;
4958
+ _breakpoints;
4476
4959
  heading;
4477
4960
  trackBy;
4478
4961
  subheading;
@@ -4526,14 +5009,15 @@ class List {
4526
5009
  _groupCellConfig;
4527
5010
  _cellConfig;
4528
5011
  _footerConfig;
4529
- constructor(_el, _config = {}, _selectionDialog, _route, _persistance, _inDialog) {
5012
+ constructor(_el, _config = {}, _selectionDialog, _route, _persistance, _inDialog, _breakpoints) {
4530
5013
  this._el = _el;
4531
5014
  this._config = _config;
4532
5015
  this._selectionDialog = _selectionDialog;
4533
5016
  this._route = _route;
4534
5017
  this._persistance = _persistance;
4535
5018
  this._inDialog = _inDialog;
4536
- this.columns = new ColumnsController(this._persistance);
5019
+ this._breakpoints = _breakpoints;
5020
+ this.columns = new ColumnsController(this._persistance, this._breakpoints);
4537
5021
  this.actions = new ActionsController();
4538
5022
  this.paging = new PaginationController();
4539
5023
  this.dataController = new DataController();
@@ -4607,7 +5091,7 @@ class List {
4607
5091
  *
4608
5092
  * @param templates
4609
5093
  */
4610
- tranformTemplatesToColumns(templates) {
5094
+ tranformTemplatesToColumns(templates, breakpointDirectives = []) {
4611
5095
  const defaultConfigs = {
4612
5096
  header: this._headerConfig,
4613
5097
  groupCell: this._groupCellConfig,
@@ -4615,7 +5099,7 @@ class List {
4615
5099
  footer: this._footerConfig,
4616
5100
  };
4617
5101
  this.columns.setDefaults(defaultConfigs);
4618
- this.columns.initializeColumns(templates);
5102
+ this.columns.initializeColumns(templates, breakpointDirectives);
4619
5103
  // Set sortBy default column
4620
5104
  this._updateSortingColumns();
4621
5105
  // Default sort by
@@ -5524,6 +6008,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5524
6008
  args: ['class']
5525
6009
  }] } });
5526
6010
 
6011
+ /**
6012
+ * Declares an alternate set of columns that replaces the desktop columns at `maxWidth`
6013
+ * and below.
6014
+ *
6015
+ * ```html
6016
+ * <fs-list-breakpoint [maxWidth]="1000">
6017
+ * <fs-list-column name="name">
6018
+ * <ng-template fs-list-header>Record</ng-template>
6019
+ * <ng-template fs-list-cell let-row="row">{{ row.name }}</ng-template>
6020
+ * </fs-list-column>
6021
+ * </fs-list-breakpoint>
6022
+ * ```
6023
+ *
6024
+ * Children are ordinary `<fs-list-column>` elements supporting every slot -- header, cell,
6025
+ * footer, group-header and group-footer. A column whose `name` matches one in the base set
6026
+ * inherits that column's templates for any slot it leaves undeclared, so a breakpoint set
6027
+ * only has to declare what differs.
6028
+ *
6029
+ * The header slot is the exception: it is never inherited. The header row is exactly what
6030
+ * the active set declares -- an `<ng-template fs-list-header>` or a `title` attribute on
6031
+ * that set's own columns -- so a set that declares neither renders an empty header row
6032
+ * (kept only for the select-all checkbox and the other structural cells).
6033
+ *
6034
+ * Several sets can be stacked; the narrowest matching one wins.
6035
+ *
6036
+ * This is a real element rather than an attribute so that its columns are excluded from
6037
+ * `FsListComponent`'s `@ContentChildren(FsListColumnDirective)` for free -- Angular's
6038
+ * `descendants: false` query walks up through `<ng-container>` but stops at an element.
6039
+ * It renders no DOM: `<fs-list>` only projects `[fs-list-content]`.
6040
+ */
6041
+ class FsListBreakpointDirective {
6042
+ columnDirectives;
6043
+ _maxWidth = null;
6044
+ /** Upper bound in px, inclusive. Accepts `1000`, `'1000'` or `'1000px'`. */
6045
+ set maxWidth(value) {
6046
+ const parsed = typeof value === 'number'
6047
+ ? value
6048
+ : Number.parseInt(value, 10);
6049
+ this._maxWidth = Number.isFinite(parsed) ? parsed : null;
6050
+ if (isDevMode() && this._maxWidth === null) {
6051
+ console.warn(`[fs-list-breakpoint] Ignoring invalid maxWidth "${value}". ` +
6052
+ 'Expected a pixel value, e.g. [maxWidth]="1000".');
6053
+ }
6054
+ }
6055
+ get maxWidth() {
6056
+ return this._maxWidth;
6057
+ }
6058
+ /**
6059
+ * Suppress the selection checkbox cell while this set is active.
6060
+ * Leave unset to inherit the list's selection config.
6061
+ */
6062
+ selection = null;
6063
+ /**
6064
+ * Suppress the row-actions cell while this set is active.
6065
+ * Leave unset to inherit the list's row actions.
6066
+ */
6067
+ rowActions = null;
6068
+ /**
6069
+ * Suppress the drag handle cell while this set is active. Dragging a row is an awkward
6070
+ * gesture on a narrow touch device, so `[reorder]="false"` is the common case here.
6071
+ * Leave unset to inherit the list's reorder config.
6072
+ */
6073
+ reorder = null;
6074
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListBreakpointDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6075
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsListBreakpointDirective, isStandalone: true, selector: "fs-list-breakpoint", inputs: { maxWidth: "maxWidth", selection: "selection", rowActions: "rowActions", reorder: "reorder" }, queries: [{ propertyName: "columnDirectives", predicate: FsListColumnDirective }], ngImport: i0 });
6076
+ }
6077
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListBreakpointDirective, decorators: [{
6078
+ type: Directive,
6079
+ args: [{
6080
+ selector: 'fs-list-breakpoint',
6081
+ standalone: true,
6082
+ }]
6083
+ }], propDecorators: { columnDirectives: [{
6084
+ type: ContentChildren,
6085
+ args: [FsListColumnDirective]
6086
+ }], maxWidth: [{
6087
+ type: Input
6088
+ }], selection: [{
6089
+ type: Input
6090
+ }], rowActions: [{
6091
+ type: Input
6092
+ }], reorder: [{
6093
+ type: Input
6094
+ }] } });
6095
+
5527
6096
  class FsListContentInitDirective {
5528
6097
  contentInitCallback;
5529
6098
  constructor() { }
@@ -5612,7 +6181,7 @@ class FsPaginationComponent {
5612
6181
  this.pagination.goLast();
5613
6182
  }
5614
6183
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5615
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsPaginationComponent, isStandalone: true, selector: "fs-list-pagination", inputs: { pagination: "pagination", rows: "rows" }, ngImport: i0, template: "<div class=\"pagination-container\">\n @if (pagination.hasManyStrategy) {\n <ng-container *ngTemplateOutlet=\"strategyMany\"></ng-container>\n } @else if (pagination.loadMoreEnabled) {\n <ng-container *ngTemplateOutlet=\"strategyLoadMore\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"strategyOffsetPage\"></ng-container>\n }\n</div>\n<ng-template #strategyLoadMore>\n @if (pagination.hasNextPage) {\n <div class=\"fs-list-load-more\">\n <button\n mat-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"next()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n }\n</ng-template>\n<ng-template #strategyOffsetPage>\n @if (pagination.records > pagination.limit) {\n @if (pagination?.pages) {\n }\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n }\n</ng-template>\n<ng-template #strategyMany>\n @if (!(pagination.pageRecords ===0 && pagination.page === 1)) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: true }\">\n </ng-container>\n }\n</ng-template>\n<ng-template\n #firstPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"first\"\n [class.disabled]=\"disabled\"\n (click)=\"first()\">\n <mat-icon>\n first_page\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #prevPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"previous\"\n [class.disabled]=\"disabled\"\n (click)=\"prev()\">\n <mat-icon>\n keyboard_arrow_left\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #nextPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"next\"\n [class.disabled]=\"disabled\"\n (click)=\"next()\">\n <mat-icon>\n keyboard_arrow_right\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #lastPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"last\"\n [class.disabled]=\"disabled\"\n (click)=\"last()\">\n <mat-icon>\n last_page\n </mat-icon>\n </a>\n</ng-template>", styles: [".pagination-container{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: FsCommonModule }, { kind: "pipe", type: i1$2.FsFormatNumberPipe, name: "fsFormatNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6184
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: FsPaginationComponent, isStandalone: true, selector: "fs-list-pagination", inputs: { pagination: "pagination", rows: "rows" }, ngImport: i0, template: "<div class=\"pagination-container\">\n @if (pagination.hasManyStrategy) {\n <ng-container *ngTemplateOutlet=\"strategyMany\"></ng-container>\n } @else if (pagination.loadMoreEnabled) {\n <ng-container *ngTemplateOutlet=\"strategyLoadMore\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"strategyOffsetPage\"></ng-container>\n }\n</div>\n<ng-template #strategyLoadMore>\n @if (pagination.hasNextPage) {\n <div class=\"fs-list-load-more\">\n <button\n mat-stroked-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"next()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n }\n</ng-template>\n<ng-template #strategyOffsetPage>\n @if (pagination.records > pagination.limit) {\n @if (pagination?.pages) {\n }\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n }\n</ng-template>\n<ng-template #strategyMany>\n @if (!(pagination.pageRecords ===0 && pagination.page === 1)) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: true }\">\n </ng-container>\n }\n</ng-template>\n<ng-template\n #firstPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"first\"\n [class.disabled]=\"disabled\"\n (click)=\"first()\">\n <mat-icon>\n first_page\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #prevPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"previous\"\n [class.disabled]=\"disabled\"\n (click)=\"prev()\">\n <mat-icon>\n keyboard_arrow_left\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #nextPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"next\"\n [class.disabled]=\"disabled\"\n (click)=\"next()\">\n <mat-icon>\n keyboard_arrow_right\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #lastPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"last\"\n [class.disabled]=\"disabled\"\n (click)=\"last()\">\n <mat-icon>\n last_page\n </mat-icon>\n </a>\n</ng-template>", styles: [".pagination-container{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: FsCommonModule }, { kind: "pipe", type: i1$2.FsFormatNumberPipe, name: "fsFormatNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5616
6185
  }
5617
6186
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsPaginationComponent, decorators: [{
5618
6187
  type: Component,
@@ -5622,7 +6191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5622
6191
  MatRipple,
5623
6192
  MatIcon,
5624
6193
  FsCommonModule
5625
- ], template: "<div class=\"pagination-container\">\n @if (pagination.hasManyStrategy) {\n <ng-container *ngTemplateOutlet=\"strategyMany\"></ng-container>\n } @else if (pagination.loadMoreEnabled) {\n <ng-container *ngTemplateOutlet=\"strategyLoadMore\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"strategyOffsetPage\"></ng-container>\n }\n</div>\n<ng-template #strategyLoadMore>\n @if (pagination.hasNextPage) {\n <div class=\"fs-list-load-more\">\n <button\n mat-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"next()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n }\n</ng-template>\n<ng-template #strategyOffsetPage>\n @if (pagination.records > pagination.limit) {\n @if (pagination?.pages) {\n }\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n }\n</ng-template>\n<ng-template #strategyMany>\n @if (!(pagination.pageRecords ===0 && pagination.page === 1)) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: true }\">\n </ng-container>\n }\n</ng-template>\n<ng-template\n #firstPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"first\"\n [class.disabled]=\"disabled\"\n (click)=\"first()\">\n <mat-icon>\n first_page\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #prevPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"previous\"\n [class.disabled]=\"disabled\"\n (click)=\"prev()\">\n <mat-icon>\n keyboard_arrow_left\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #nextPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"next\"\n [class.disabled]=\"disabled\"\n (click)=\"next()\">\n <mat-icon>\n keyboard_arrow_right\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #lastPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"last\"\n [class.disabled]=\"disabled\"\n (click)=\"last()\">\n <mat-icon>\n last_page\n </mat-icon>\n </a>\n</ng-template>", styles: [".pagination-container{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"] }]
6194
+ ], template: "<div class=\"pagination-container\">\n @if (pagination.hasManyStrategy) {\n <ng-container *ngTemplateOutlet=\"strategyMany\"></ng-container>\n } @else if (pagination.loadMoreEnabled) {\n <ng-container *ngTemplateOutlet=\"strategyLoadMore\"></ng-container>\n } @else {\n <ng-container *ngTemplateOutlet=\"strategyOffsetPage\"></ng-container>\n }\n</div>\n<ng-template #strategyLoadMore>\n @if (pagination.hasNextPage) {\n <div class=\"fs-list-load-more\">\n <button\n mat-stroked-button\n type=\"button\"\n [class]=\"pagination.loadMoreButtonClass\"\n [color]=\"pagination.loadMoreButtonColor\"\n (click)=\"next()\">\n {{ pagination.loadMoreLabel }}\n </button>\n </div>\n }\n</ng-template>\n<ng-template #strategyOffsetPage>\n @if (pagination.records > pagination.limit) {\n @if (pagination?.pages) {\n }\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page | fsFormatNumber }} of {{ pagination.pages | fsFormatNumber }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n }\n</ng-template>\n<ng-template #strategyMany>\n @if (!(pagination.pageRecords ===0 && pagination.page === 1)) {\n <ng-container\n [ngTemplateOutlet]=\"firstPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"prevPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasPrevPage }\">\n </ng-container>\n <div class=\"number\">\n {{ pagination.page }}\n </div>\n <ng-container\n [ngTemplateOutlet]=\"nextPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: !pagination.hasNextPage }\">\n </ng-container>\n <ng-container\n [ngTemplateOutlet]=\"lastPageButton\"\n [ngTemplateOutletContext]=\"{ disabled: true }\">\n </ng-container>\n }\n</ng-template>\n<ng-template\n #firstPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"first\"\n [class.disabled]=\"disabled\"\n (click)=\"first()\">\n <mat-icon>\n first_page\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #prevPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"previous\"\n [class.disabled]=\"disabled\"\n (click)=\"prev()\">\n <mat-icon>\n keyboard_arrow_left\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #nextPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"next\"\n [class.disabled]=\"disabled\"\n (click)=\"next()\">\n <mat-icon>\n keyboard_arrow_right\n </mat-icon>\n </a>\n</ng-template>\n<ng-template\n #lastPageButton\n let-disabled=\"disabled\">\n <a\n matRipple\n [matRippleRadius]=\"15\"\n [matRippleCentered]=\"true\"\n class=\"last\"\n [class.disabled]=\"disabled\"\n (click)=\"last()\">\n <mat-icon>\n last_page\n </mat-icon>\n </a>\n</ng-template>", styles: [".pagination-container{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;width:100%}a{text-align:center;color:#000000de;text-decoration:none;font-size:15px;cursor:pointer;display:flex}a:not(.page){padding:10px}a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}\n"] }]
5626
6195
  }], propDecorators: { pagination: [{
5627
6196
  type: Input
5628
6197
  }], rows: [{
@@ -5755,11 +6324,12 @@ class FsListComponent {
5755
6324
  // Event will fired if action remove: true will clicked
5756
6325
  rowRemoved = new EventEmitter();
5757
6326
  firstLoad = true;
5758
- _listColumnDirectives;
6327
+ _contentInitialized = false;
5759
6328
  /** Merged list config (after defaults); used to populate cell `configTyping` when cells omit it. */
5760
6329
  _mergedListConfig;
5761
6330
  _filterRef;
5762
6331
  _filterParamsReady = false;
6332
+ _filtersReadyEmitted = false;
5763
6333
  _destroy = new Subject();
5764
6334
  _injector = inject(Injector);
5765
6335
  _config = inject(FS_LIST_CONFIG, { optional: true });
@@ -5770,22 +6340,24 @@ class FsListComponent {
5770
6340
  _groupExpandNotifier = inject(GroupExpandNotifierService);
5771
6341
  _route = inject(ActivatedRoute);
5772
6342
  _persistance = inject(PersistanceController);
6343
+ _breakpoints = inject(BreakpointController);
5773
6344
  set filterReference(component) {
5774
6345
  this._filterRef = component;
5775
6346
  this.list.actions.setFilterRef(component);
5776
6347
  this._emitFiltersReadyEvent();
5777
6348
  }
5778
6349
  /**
5779
- * Set columns to config
5780
- * Create Column Model instances
6350
+ * Base (desktop) columns. Columns declared inside `<fs-list-breakpoint>` are excluded
6351
+ * automatically: this query is `descendants: false`, and Angular only walks up through
6352
+ * `<ng-container>` nodes, so a real `<fs-list-breakpoint>` element blocks it.
6353
+ *
6354
+ * Consumed from `_rebuildColumns()`, never from a setter -- `refreshContentQueries`
6355
+ * populates queries in directive-creation order, so `<fs-list>`'s query resolves before
6356
+ * `<fs-list-breakpoint>`'s and the breakpoint sets would still be undefined here.
5781
6357
  */
5782
- set columnTemplates(listColumnDirectives) {
5783
- this._listColumnDirectives = listColumnDirectives;
5784
- if (this.list) {
5785
- this.list.tranformTemplatesToColumns(listColumnDirectives);
5786
- }
5787
- this._propagateCellRowTypeAnchors();
5788
- }
6358
+ columnTemplates;
6359
+ /** Alternate column sets, each active at its own `maxWidth` and below. */
6360
+ breakpointDirectives;
5789
6361
  set _emptyStateTemplate(template) {
5790
6362
  if (this.list) {
5791
6363
  this.list.emptyStateTemplate = template;
@@ -5825,10 +6397,30 @@ class FsListComponent {
5825
6397
  return this.list.paging.state;
5826
6398
  }
5827
6399
  ngAfterContentInit() {
6400
+ this._contentInitialized = true;
6401
+ this._rebuildColumns();
6402
+ this.columnTemplates.changes
6403
+ .pipe(takeUntil(this._destroy))
6404
+ .subscribe(() => this._rebuildColumns());
6405
+ this.breakpointDirectives.changes
6406
+ .pipe(takeUntil(this._destroy))
6407
+ .subscribe(() => this._rebuildColumns());
5828
6408
  if (this.list.afterInit) {
5829
6409
  this.list.afterInit(this);
5830
6410
  }
5831
6411
  }
6412
+ /**
6413
+ * Build every column set from the content queries. Safe to call repeatedly; the only
6414
+ * entry point that touches columns.
6415
+ */
6416
+ _rebuildColumns() {
6417
+ if (!this.list || !this._contentInitialized || !this.columnTemplates) {
6418
+ return;
6419
+ }
6420
+ this.list.tranformTemplatesToColumns(this.columnTemplates, this.breakpointDirectives?.toArray() ?? []);
6421
+ this._propagateCellRowTypeAnchors();
6422
+ this._cdRef.markForCheck();
6423
+ }
5832
6424
  ngOnInit() {
5833
6425
  this._subscribeToRemoveRow();
5834
6426
  this._subscribeToGroupExpandStatusChange();
@@ -5901,8 +6493,6 @@ class FsListComponent {
5901
6493
  }
5902
6494
  filterReady() {
5903
6495
  this.list.filtersReady();
5904
- this._filterParamsReady = true;
5905
- this._emitFiltersReadyEvent();
5906
6496
  }
5907
6497
  /**
5908
6498
  * Update visibility for specific column
@@ -5919,11 +6509,59 @@ class FsListComponent {
5919
6509
  get visibleColumns$() {
5920
6510
  return this.list.columns.visibleColumns$;
5921
6511
  }
6512
+ /**
6513
+ * The columns actually being rendered -- the active breakpoint set's visible columns.
6514
+ * Equal to {@link visibleColumns$} when no `<fs-list-breakpoint>` is declared.
6515
+ */
6516
+ get renderedColumns$() {
6517
+ return this.list.columns.renderedColumns$;
6518
+ }
6519
+ /** `maxWidth` of the active breakpoint set, or null when the base set is active. */
6520
+ get activeBreakpoint() {
6521
+ return this.list.columns.activeSet?.maxWidth ?? null;
6522
+ }
6523
+ /**
6524
+ * Structural cells (selection checkbox, row actions, drag handle) render outside the
6525
+ * column loop and must agree across `<thead>`, `<tbody>` and `<tfoot>`, so the active
6526
+ * set's overrides are resolved here once and bound to all three bands.
6527
+ */
6528
+ get selectionEnabled() {
6529
+ return this.list.columns.activeSet?.selection === false
6530
+ ? null
6531
+ : this.list.selection;
6532
+ }
6533
+ get rowActionsEnabled() {
6534
+ return this.list.columns.activeSet?.rowActions === false
6535
+ ? false
6536
+ : this.list.hasRowActions;
6537
+ }
6538
+ reorderEnabledFor(enabled) {
6539
+ return this.list.columns.activeSet?.reorder === false
6540
+ ? false
6541
+ : !!enabled;
6542
+ }
6543
+ /**
6544
+ * The head band follows the active set's declared headers and nothing else: a set whose
6545
+ * columns declare no header template and no title renders no `<thead>` at all, matching
6546
+ * how `<tfoot>` follows `hasFooter`. An empty header row is worse than none -- it draws a
6547
+ * rule and reserves height for labels that do not exist.
6548
+ *
6549
+ * Structural cells do not keep the band alive. The select-all checkbox lives in the head,
6550
+ * so it goes with it; a set that wants select-all has to declare at least one header.
6551
+ */
6552
+ get showHead() {
6553
+ return this.list.columns.hasHeader;
6554
+ }
5922
6555
  _emitFiltersReadyEvent() {
5923
- if (!!this.filterRef && this._filterParamsReady) {
5924
- this.filtersReady.emit();
5925
- this._cdRef.markForCheck();
6556
+ // The `filterReference` view query re-runs when the surrounding @if re-evaluates, so this
6557
+ // is reached more than once with both conditions already met. Consumers treat the event as
6558
+ // "here is the filter, set yourself up" -- emitting it repeatedly would re-run that setup.
6559
+ if (this._filtersReadyEmitted || !this.filterRef || !this._filterParamsReady) {
6560
+ return;
5926
6561
  }
6562
+ this._filtersReadyEmitted = true;
6563
+ this.filtersReady.emit();
6564
+ this._cdRef.markForCheck();
5927
6565
  }
5928
6566
  get inDialog() {
5929
6567
  return !!this._dialogRef || !!this._drawerRef;
@@ -5956,15 +6594,33 @@ class FsListComponent {
5956
6594
  this._restorePersistance(listConfig.persist);
5957
6595
  }
5958
6596
  this._updateCustomizeAction(listConfig.actions);
5959
- this.list = new List(this._el, listConfig, this._selectionDialog, this._route, this._persistance, this.inDialog);
6597
+ // Before the List is built: initializeColumns reads the already-active breakpoint so
6598
+ // the first paint uses the right set instead of flashing the desktop columns.
6599
+ this._breakpoints.initConfig(listConfig.breakpoints);
6600
+ this._breakpoints.observe(this._el.nativeElement);
6601
+ this.list = new List(this._el, listConfig, this._selectionDialog, this._route, this._persistance, this.inDialog, this._breakpoints);
5960
6602
  this.rowHoverHighlight = this.list.rowHoverHighlight;
6603
+ // A new List brings a new filter, so the previous readiness must not carry over.
6604
+ this._filterParamsReady = false;
6605
+ this._filtersReadyEmitted = false;
5961
6606
  this._waitFirstLoad();
6607
+ this._subscribeToFiltersReady();
5962
6608
  this.reorderController.initWithConfig(config.reorder, this.list.dataController, this.list.actions, this.list.selection);
5963
- if (this._listColumnDirectives) {
5964
- this.list.tranformTemplatesToColumns(this._listColumnDirectives);
5965
- }
6609
+ this._rebuildColumns();
5966
6610
  this._listenSortingChange();
5967
6611
  this._propagateCellRowTypeAnchors();
6612
+ this._listenBreakpointChange();
6613
+ }
6614
+ /**
6615
+ * The active set changes which structural cells render and whether `<thead>` has content,
6616
+ * and this component is OnPush, so a swap has to mark it.
6617
+ */
6618
+ _listenBreakpointChange() {
6619
+ this.list.columns.activeSet$
6620
+ .pipe(takeUntil(this.list.destroy$), takeUntil(this._destroy))
6621
+ .subscribe(() => {
6622
+ this._cdRef.markForCheck();
6623
+ });
5968
6624
  }
5969
6625
  /**
5970
6626
  * Find action with customize flag and re-declare click function for CustomizeColsDialog
@@ -6019,6 +6675,19 @@ class FsListComponent {
6019
6675
  .forEach((item) => item.updateActions());
6020
6676
  });
6021
6677
  }
6678
+ /**
6679
+ * The filter announces readiness through the `init` callback installed on its config, which
6680
+ * lands in `List._filterInit`. Forwarding it here is what arms `(filtersReady)` -- without it
6681
+ * `_filterParamsReady` never flips and the event cannot fire.
6682
+ */
6683
+ _subscribeToFiltersReady() {
6684
+ this.list.filtersReady$
6685
+ .pipe(takeUntil(this.list.destroy$), takeUntil(this._destroy))
6686
+ .subscribe(() => {
6687
+ this._filterParamsReady = true;
6688
+ this._emitFiltersReadyEvent();
6689
+ });
6690
+ }
6022
6691
  _subscribeToGroupExpandStatusChange() {
6023
6692
  if (this.list.dataController.hasGroups) {
6024
6693
  this._groupExpandNotifier.expandStatusChange$
@@ -6045,14 +6714,20 @@ class FsListComponent {
6045
6714
  this._persistance.init(persistConfig, this.inDialog);
6046
6715
  }
6047
6716
  _propagateCellRowTypeAnchors() {
6048
- if (!this._listColumnDirectives || !this._mergedListConfig) {
6717
+ if (!this.columnTemplates || !this._mergedListConfig) {
6049
6718
  return;
6050
6719
  }
6051
6720
  const anchor = this.cellRowType;
6052
- this._listColumnDirectives.forEach((col) => {
6721
+ const applyTo = (col) => {
6053
6722
  this._maybeApplyCellTyping(col.cellConfigs, anchor, this._mergedListConfig);
6054
6723
  this._maybeApplyCellTyping(col.groupHeaderConfigs, anchor, this._mergedListConfig);
6055
6724
  this._maybeApplyCellTyping(col.groupFooterConfigs, anchor, this._mergedListConfig);
6725
+ };
6726
+ this.columnTemplates.forEach(applyTo);
6727
+ // Breakpoint columns are a separate query, so they need the same anchor or their
6728
+ // cell templates lose `let-row` typing under strictTemplates.
6729
+ this.breakpointDirectives?.forEach((breakpoint) => {
6730
+ breakpoint.columnDirectives?.forEach(applyTo);
6056
6731
  });
6057
6732
  }
6058
6733
  _maybeApplyCellTyping(dir, anchor, listConfig) {
@@ -6074,7 +6749,8 @@ class FsListComponent {
6074
6749
  GroupExpandNotifierService,
6075
6750
  PersistanceController,
6076
6751
  ReorderController,
6077
- ], queries: [{ propertyName: "headingTemplate", first: true, predicate: FsListHeadingDirective, descendants: true, read: TemplateRef }, { propertyName: "_emptyStateTemplate", first: true, predicate: FsListEmptyStateDirective, descendants: true, read: TemplateRef }, { propertyName: "columnTemplates", predicate: FsListColumnDirective }], viewQueries: [{ propertyName: "body", first: true, predicate: FsBodyComponent, descendants: true }, { propertyName: "filterReference", first: true, predicate: FilterComponent, descendants: true }], ngImport: i0, template: "<div\n class=\"fs-list-container\"\n [ngClass]=\"{\n 'has-filters': list.filterConfig?.items.length,\n 'has-status': hasStatus,\n 'has-chips': list.chips,\n 'has-actions': list.actions.hasActions,\n 'has-row-actions-hover': list.rowActionsHover,\n 'first-load': firstLoad,\n 'loading': list.loading$ | async\n }\">\n <ng-template [ngTemplateOutlet]=\"listContainerContent\"></ng-template>\n</div>\n<ng-template #listContainerContent>\n @if (list.dataController.visibleRows$ | async; as listData) {\n <div class=\"fs-list-header-container\">\n <div\n class=\"fs-list-header\"\n [ngClass]=\"{ 'no-wrap': reorderController.manualReorderActivated || !list.filterConfig?.items.length }\">\n @if (list.filterConfig) {\n <fs-filter\n class=\"fs-list-filter\"\n [config]=\"list.filterConfig\">\n @if (hasStatus) {\n <ng-template fsFilterStatusBar>\n <fs-list-status\n class=\"fs-list-status\"\n [ngClass]=\"{ 'hidden-mobile': !list.status }\"\n [rows]=\"listData\"\n [list]=\"list\"\n [firstLoad]=\"firstLoad\">\n </fs-list-status>\n </ng-template>\n }\n @if (headingTemplate) {\n <ng-template fsFilterHeading>\n <ng-template [ngTemplateOutlet]=\"headingTemplate\"></ng-template>\n </ng-template>\n }\n </fs-filter>\n }\n </div>\n </div>\n <ng-content select=\"[fs-list-content]\"></ng-content>\n <!-- Table implementation -->\n <div class=\"fs-list-table-container\">\n @if (!firstLoad && listData.length > 0 && !list.emptyStateEnabled) {\n <table\n class=\"fs-list-table\"\n role=\"grid\"\n [fsListContentInit]=\"list.afterContentInit\"\n [ngClass]=\"{\n 'style-card': list.style === 'card',\n 'style-basic': list.style === 'basic',\n 'style-line': (list.style || 'line') === 'line'\n }\">\n @if (list.columns.hasHeader) {\n <thead\n fs-list-head\n class=\"fs-list-head\"\n role=\"rowgroup\"\n [ngClass]=\"list.columns.theadClass\"\n [columns]=\"list.columns.visibleColumns$ | async\"\n [sorting]=\"list.sorting\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderController.enabled$ | async\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </thead>\n }\n <tbody\n 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$ | async\"\n [restoreMode]=\"list.restoreMode\"\n [selection]=\"list.selection\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderController.enabled$ | async\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\"\n [reorderMultiple]=\"reorderController.multiple\">\n </tbody>\n @if (list.columns.hasFooter) {\n <tfoot\n fs-list-footer\n class=\"fs-list-footer\"\n [columns]=\"list.columns.visibleColumns$ | async\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderController.enabled$ | async\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </tfoot>\n }\n </table>\n }\n @if (firstLoad) {\n <fs-list-loader\n [columns]=\"list.columns.columns\"\n [loaderLines]=\"loaderLines\">\n </fs-list-loader>\n }\n </div>\n <fs-list-pagination\n class=\"fs-list-pagination\"\n [rows]=\"listData\"\n [pagination]=\"list.paging\">\n </fs-list-pagination>\n @if (!firstLoad) {\n @if (listData.length === 0) {\n <div\n class=\"fs-list-no-results-container\">\n @if (list.noResults?.message && !list.emptyStateEnabled) {\n <div\n class=\"fs-list-no-results\">\n {{ list.noResults?.message }}\n </div>\n }\n @if (list.emptyStateEnabled) {\n <ng-template [ngTemplateOutlet]=\"list.emptyStateTemplate\"></ng-template>\n }\n </div>\n }\n }\n }\n</ng-template>", styles: ["::ng-deep .fs-list-table{border-spacing:0;display:table;width:100%;border-collapse:collapse}::ng-deep .fs-list-table thead{display:table-header-group}::ng-deep .fs-list-table thead th{color:#999;padding:8px;font-weight:400;color:#8f8f8f;font-size:85%;text-align:left}::ng-deep .fs-list-table tbody{display:table-row-group;position:relative}::ng-deep .fs-list-table tbody tr,::ng-deep .fs-list-table thead tr,::ng-deep .fs-list-table tfoot tr{display:table-row}::ng-deep .fs-list-table tbody tr td,::ng-deep .fs-list-table thead tr td,::ng-deep .fs-list-table tfoot tr td{display:table-cell;padding:8px;vertical-align:middle;outline:none;text-align:left}::ng-deep .fs-list-table.style-card tbody tr:not(.fs-list-row-group-footer):not(.fs-list-row-group){clip-path:xywh(0 3px 100% calc(100% - 6px) round 10px)}::ng-deep .fs-list-table.style-card tbody tr td{border:none!important;background-color:#fafafa;padding:8px 16px}::ng-deep .fs-list-table.style-line tbody td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody td{box-sizing:border-box;border-top:1px solid #e7e7e7}::ng-deep .fs-list-table.style-line tbody tr:first-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:first-child td{border-color:#c4c4c4}::ng-deep .fs-list-table.style-line tbody tr:last-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:last-child td{border-bottom:1px solid #c4c4c4}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging thead th,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging thead th{border-color:#e7e7e7}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging tbody tr:nth-child(2) td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging tbody tr:nth-child(2) td{border-top:none}:host{display:block;width:100%}:host ::ng-deep .fs-list-swap-restricted{opacity:.5}:host ::ng-deep .fs-list-no-drop{cursor:no-drop}:host ::ng-deep .hidden{display:none}:host ::ng-deep .multiple-selection{background-color:#2196f380}:host ::ng-deep .multiple-selection ::ng-deep .fs-list-col{background-color:#2196f380}@media print{:host ::ng-deep .fs-list-row-group{page-break-after:avoid}:host ::ng-deep .fs-list-row-group-child{page-break-before:avoid}:host ::ng-deep .fs-list-row-group-footer{page-break-before:avoid}}.fs-list-container{width:100%}.fs-list-container.has-filters .heading-container{margin-bottom:4px}.fs-list-container.loading .fs-list-status,.fs-list-container.loading .fs-list-body,.fs-list-container.loading .fs-list-head,.fs-list-container.loading .fs-list-footer,.fs-list-container.loading fs-list-pagination,.fs-list-container.loading ::ng-deep fs-filter-chips,.fs-list-container.loading .fs-list-no-results-container,.fs-list-container.first-load .fs-list-status,.fs-list-container.first-load .fs-list-body,.fs-list-container.first-load .fs-list-head,.fs-list-container.first-load .fs-list-footer,.fs-list-container.first-load fs-list-pagination,.fs-list-container.first-load ::ng-deep fs-filter-chips,.fs-list-container.first-load .fs-list-no-results-container{opacity:.4;pointer-events:none}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip{color:transparent}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip .remove{visibility:hidden}.fs-list-container.has-actions .fs-list-actions{margin-left:5px}@media screen and (min-width: 800px){.fs-list-container.has-row-actions-hover ::ng-deep .actions-col{width:0px;position:relative;overflow:visible;padding:0}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions{display:none;position:absolute;border-radius:5px;top:50%;right:5px;transform:translateY(-50%)}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions .mat-mdc-button-base{background:#fefefe;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.fs-list-container.has-row-actions-hover ::ng-deep tr:hover fs-list-row-actions{display:flex}}.fs-list-container .fs-list-header .heading-container{display:flex;flex-direction:column;justify-content:center}.fs-list-container .fs-list-header .heading{margin:0}.fs-list-container .fs-list-header h2+.subheading{margin:2px 0 0}.fs-list-container .fs-list-filter{margin-bottom:0;position:initial!important;display:block;width:100%}.fs-list-container .fs-list-no-results-container .fs-list-no-results{text-align:center;color:#999;padding:10px 0}.fs-list-container .fs-list-table-container{width:100%;overflow-x:auto;overflow-y:hidden;margin-top:7px}::ng-deep .fs-list-preview-block{position:fixed;height:30px;width:200px;background:gray;display:flex;justify-content:center;align-items:center;z-index:1000;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:6px}::ng-deep .reorder-in-progress{-webkit-user-select:none;user-select:none}@media only screen and (max-width: 600px){::ng-deep .fs-list-filter .inline-actions{top:initial!important;position:initial!important}::ng-deep .fs-list-filter .inline-actions .action-filter{margin-bottom:0!important}::ng-deep .fs-list-header .filter-input-field .mat-form-field-wrapper{padding:0!important}::ng-deep .fs-list-header.has-filters{flex-flow:row wrap}}@media only screen and (max-width: 768px){::ng-deep .show-mobile{display:inline-block!important}::ng-deep .fs-list-actions .action-button{display:none}::ng-deep .row-inline-action.mobile-hide{display:none}::ng-deep .hidden-mobile-menu-action{display:block!important}}:host(.fs-list-row-highlight) ::ng-deep tbody .fs-list-row:hover .fs-list-col{background-color:#f6f6f6}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FilterComponent, selector: "fs-filter", inputs: ["config"], outputs: ["closed", "opened", "ready"] }, { kind: "directive", type: FilterStatusBarDirective, selector: "[fsFilterStatusBar]" }, { kind: "directive", type: FilterHeadingDirective, selector: "[fsFilterHeading]" }, { kind: "component", type: FsStatusComponent, selector: "fs-list-status", inputs: ["list", "rows", "firstLoad"] }, { kind: "directive", type: FsListContentInitDirective, selector: "[fsListContentInit]", inputs: ["fsListContentInit"] }, { kind: "component", type: FsHeadComponent, selector: "[fs-list-head]", inputs: ["sorting", "columns", "hasRowActions", "selection", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy"] }, { kind: "component", type: FsBodyComponent, selector: "[fs-list-body]", inputs: ["rows", "columns", "hasFooter", "rowActionsRaw", "groupActionsRaw", "rowEvents", "rowClass", "hasRowActions", "selection", "restoreMode", "rowRemoved", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy", "reorderMultiple"] }, { kind: "directive", type: FsListDraggableListDirective, selector: "[fsListDraggableList]", inputs: ["rows"] }, { kind: "component", type: FsFooterComponent, selector: "[fs-list-footer]", inputs: ["hasRowActions", "columns", "selection", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy"] }, { kind: "directive", type: FsListFooterDirective, selector: "[fs-list-footer]", inputs: ["colspan", "align", "class"] }, { kind: "component", type: FsListLoaderComponent, selector: "fs-list-loader", inputs: ["columns", "loaderLines"] }, { kind: "component", type: FsPaginationComponent, selector: "fs-list-pagination", inputs: ["pagination", "rows"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6752
+ BreakpointController,
6753
+ ], queries: [{ propertyName: "headingTemplate", first: true, predicate: FsListHeadingDirective, descendants: true, read: TemplateRef }, { propertyName: "_emptyStateTemplate", first: true, predicate: FsListEmptyStateDirective, descendants: true, read: TemplateRef }, { propertyName: "columnTemplates", predicate: FsListColumnDirective }, { propertyName: "breakpointDirectives", predicate: FsListBreakpointDirective }], viewQueries: [{ propertyName: "body", first: true, predicate: FsBodyComponent, descendants: true }, { propertyName: "filterReference", first: true, predicate: FilterComponent, descendants: true }], ngImport: i0, template: "<div\n class=\"fs-list-container\"\n [ngClass]=\"{\n 'has-filters': list.filterConfig?.items.length,\n 'has-status': hasStatus,\n 'has-chips': list.chips,\n 'has-actions': list.actions.hasActions,\n 'has-row-actions-hover': list.rowActionsHover,\n 'first-load': firstLoad,\n 'loading': list.loading$ | async\n }\">\n <ng-template [ngTemplateOutlet]=\"listContainerContent\"></ng-template>\n</div>\n<ng-template #listContainerContent>\n @if (list.dataController.visibleRows$ | async; as listData) {\n <div class=\"fs-list-header-container\">\n <div\n class=\"fs-list-header\"\n [ngClass]=\"{ 'no-wrap': reorderController.manualReorderActivated || !list.filterConfig?.items.length }\">\n @if (list.filterConfig) {\n <fs-filter\n class=\"fs-list-filter\"\n [config]=\"list.filterConfig\">\n @if (hasStatus) {\n <ng-template fsFilterStatusBar>\n <fs-list-status\n class=\"fs-list-status\"\n [ngClass]=\"{ 'hidden-mobile': !list.status }\"\n [rows]=\"listData\"\n [list]=\"list\"\n [firstLoad]=\"firstLoad\">\n </fs-list-status>\n </ng-template>\n }\n @if (headingTemplate) {\n <ng-template fsFilterHeading>\n <ng-template [ngTemplateOutlet]=\"headingTemplate\"></ng-template>\n </ng-template>\n }\n </fs-filter>\n }\n </div>\n </div>\n <ng-content select=\"[fs-list-content]\"></ng-content>\n <!-- Table implementation -->\n <div class=\"fs-list-table-container\">\n @if (!firstLoad && listData.length > 0 && !list.emptyStateEnabled) {\n <table\n class=\"fs-list-table\"\n role=\"grid\"\n [fsListContentInit]=\"list.afterContentInit\"\n [ngClass]=\"{\n 'style-card': list.style === 'card',\n 'style-basic': list.style === 'basic',\n 'style-line': (list.style || 'line') === 'line'\n }\">\n @if (showHead) {\n <thead\n fs-list-head\n class=\"fs-list-head\"\n role=\"rowgroup\"\n [ngClass]=\"list.columns.theadClass\"\n [columns]=\"renderedColumns$ | async\"\n [sorting]=\"list.sorting\"\n [selection]=\"selectionEnabled\"\n [hasRowActions]=\"rowActionsEnabled\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderEnabledFor(reorderController.enabled$ | async)\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </thead>\n }\n <tbody\n 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]=\"rowActionsEnabled\"\n [rowEvents]=\"list.rowEvents\"\n [rowClass]=\"list.rowClass\"\n [columns]=\"renderedColumns$ | async\"\n [restoreMode]=\"list.restoreMode\"\n [selection]=\"selectionEnabled\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderEnabledFor(reorderController.enabled$ | async)\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\"\n [reorderMultiple]=\"reorderController.multiple\">\n </tbody>\n @if (list.columns.hasFooter) {\n <tfoot\n fs-list-footer\n class=\"fs-list-footer\"\n [columns]=\"renderedColumns$ | async\"\n [selection]=\"selectionEnabled\"\n [hasRowActions]=\"rowActionsEnabled\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderEnabledFor(reorderController.enabled$ | async)\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </tfoot>\n }\n </table>\n }\n @if (firstLoad) {\n <fs-list-loader\n [columns]=\"list.columns.columns\"\n [loaderLines]=\"loaderLines\">\n </fs-list-loader>\n }\n </div>\n <fs-list-pagination\n class=\"fs-list-pagination\"\n [rows]=\"listData\"\n [pagination]=\"list.paging\">\n </fs-list-pagination>\n @if (!firstLoad) {\n @if (listData.length === 0) {\n <div\n class=\"fs-list-no-results-container\">\n @if (list.noResults?.message && !list.emptyStateEnabled) {\n <div\n class=\"fs-list-no-results\">\n {{ list.noResults?.message }}\n </div>\n }\n @if (list.emptyStateEnabled) {\n <ng-template [ngTemplateOutlet]=\"list.emptyStateTemplate\"></ng-template>\n }\n </div>\n }\n }\n }\n</ng-template>", styles: ["::ng-deep .fs-list-table{border-spacing:0;display:table;width:100%;border-collapse:collapse}::ng-deep .fs-list-table thead{display:table-header-group}::ng-deep .fs-list-table thead th{color:#999;padding:8px;font-weight:400;color:#8f8f8f;font-size:85%;text-align:left}::ng-deep .fs-list-table tbody{display:table-row-group;position:relative}::ng-deep .fs-list-table tbody tr,::ng-deep .fs-list-table thead tr,::ng-deep .fs-list-table tfoot tr{display:table-row}::ng-deep .fs-list-table tbody tr td,::ng-deep .fs-list-table thead tr td,::ng-deep .fs-list-table tfoot tr td{display:table-cell;padding:8px;vertical-align:middle;outline:none;text-align:left}::ng-deep .fs-list-table.style-card thead th,::ng-deep .fs-list-table.style-card tbody td,::ng-deep .fs-list-table.style-card tfoot td{padding:8px 16px}::ng-deep .fs-list-table.style-card tbody tr td{border:none!important}::ng-deep .fs-list-table.style-card tbody tr:not(.fs-list-row-group-footer):not(.fs-list-row-group){clip-path:xywh(0 3px 100% calc(100% - 6px) round 10px)}::ng-deep .fs-list-table.style-card tbody tr:not(.fs-list-row-group-footer):not(.fs-list-row-group) td{background-color:#fafafa}::ng-deep .fs-list-table.style-line tbody td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody td{box-sizing:border-box;border-top:1px solid #e7e7e7}::ng-deep .fs-list-table.style-line tbody tr:first-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:first-child td{border-color:#c4c4c4}::ng-deep .fs-list-table.style-line tbody tr:last-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:last-child td{border-bottom:1px solid #c4c4c4}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging thead th,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging thead th{border-color:#e7e7e7}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging tbody tr:nth-child(2) td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging tbody tr:nth-child(2) td{border-top:none}:host{display:block;width:100%}:host ::ng-deep .fs-list-swap-restricted{opacity:.5}:host ::ng-deep .fs-list-no-drop{cursor:no-drop}:host ::ng-deep .hidden{display:none}:host ::ng-deep .multiple-selection{background-color:#2196f380}:host ::ng-deep .multiple-selection ::ng-deep .fs-list-col{background-color:#2196f380}@media print{:host ::ng-deep .fs-list-row-group{page-break-after:avoid}:host ::ng-deep .fs-list-row-group-child{page-break-before:avoid}:host ::ng-deep .fs-list-row-group-footer{page-break-before:avoid}}.fs-list-container{width:100%}.fs-list-container.has-filters .heading-container{margin-bottom:4px}.fs-list-container.loading .fs-list-status,.fs-list-container.loading .fs-list-body,.fs-list-container.loading .fs-list-head,.fs-list-container.loading .fs-list-footer,.fs-list-container.loading fs-list-pagination,.fs-list-container.loading ::ng-deep fs-filter-chips,.fs-list-container.loading .fs-list-no-results-container,.fs-list-container.first-load .fs-list-status,.fs-list-container.first-load .fs-list-body,.fs-list-container.first-load .fs-list-head,.fs-list-container.first-load .fs-list-footer,.fs-list-container.first-load fs-list-pagination,.fs-list-container.first-load ::ng-deep fs-filter-chips,.fs-list-container.first-load .fs-list-no-results-container{opacity:.4;pointer-events:none}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip{color:transparent}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip .remove{visibility:hidden}.fs-list-container.has-actions .fs-list-actions{margin-left:5px}@media screen and (min-width: 800px){.fs-list-container.has-row-actions-hover ::ng-deep .actions-col{width:0px;position:relative;overflow:visible;padding:0}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions{display:none;position:absolute;border-radius:5px;top:50%;right:5px;transform:translateY(-50%)}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions .mat-mdc-button-base{background:#fefefe;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.fs-list-container.has-row-actions-hover ::ng-deep tr:hover fs-list-row-actions{display:flex}}.fs-list-container .fs-list-header .heading-container{display:flex;flex-direction:column;justify-content:center}.fs-list-container .fs-list-header .heading{margin:0}.fs-list-container .fs-list-header h2+.subheading{margin:2px 0 0}.fs-list-container .fs-list-filter{margin-bottom:0;position:initial!important;display:block;width:100%}.fs-list-container .fs-list-no-results-container .fs-list-no-results{text-align:center;color:#999;padding:10px 0}.fs-list-container .fs-list-table-container{width:100%;overflow-x:auto;overflow-y:hidden;margin-top:7px}::ng-deep .fs-list-preview-block{position:fixed;height:30px;width:200px;background:gray;display:flex;justify-content:center;align-items:center;z-index:1000;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:6px}::ng-deep .reorder-in-progress{-webkit-user-select:none;user-select:none}@media only screen and (max-width: 600px){::ng-deep .fs-list-filter .inline-actions{top:initial!important;position:initial!important}::ng-deep .fs-list-filter .inline-actions .action-filter{margin-bottom:0!important}::ng-deep .fs-list-header .filter-input-field .mat-form-field-wrapper{padding:0!important}::ng-deep .fs-list-header.has-filters{flex-flow:row wrap}}@media only screen and (max-width: 768px){::ng-deep .show-mobile{display:inline-block!important}::ng-deep .fs-list-actions .action-button{display:none}::ng-deep .row-inline-action.mobile-hide{display:none}::ng-deep .hidden-mobile-menu-action{display:block!important}}:host(.fs-list-row-highlight) ::ng-deep tbody .fs-list-row:not(.fs-list-row-group):not(.fs-list-row-group-footer):hover .fs-list-col{background-color:#f6f6f6}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FilterComponent, selector: "fs-filter", inputs: ["config"], outputs: ["closed", "opened", "ready"] }, { kind: "directive", type: FilterStatusBarDirective, selector: "[fsFilterStatusBar]" }, { kind: "directive", type: FilterHeadingDirective, selector: "[fsFilterHeading]" }, { kind: "component", type: FsStatusComponent, selector: "fs-list-status", inputs: ["list", "rows", "firstLoad"] }, { kind: "directive", type: FsListContentInitDirective, selector: "[fsListContentInit]", inputs: ["fsListContentInit"] }, { kind: "component", type: FsHeadComponent, selector: "[fs-list-head]", inputs: ["sorting", "columns", "hasRowActions", "selection", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy"] }, { kind: "component", type: FsBodyComponent, selector: "[fs-list-body]", inputs: ["rows", "columns", "hasFooter", "rowActionsRaw", "groupActionsRaw", "rowEvents", "rowClass", "hasRowActions", "selection", "restoreMode", "rowRemoved", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy", "reorderMultiple"] }, { kind: "directive", type: FsListDraggableListDirective, selector: "[fsListDraggableList]", inputs: ["rows"] }, { kind: "component", type: FsFooterComponent, selector: "[fs-list-footer]", inputs: ["hasRowActions", "columns", "selection", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy"] }, { kind: "directive", type: FsListFooterDirective, selector: "[fs-list-footer]", inputs: ["colspan", "align", "class"] }, { kind: "component", type: FsListLoaderComponent, selector: "fs-list-loader", inputs: ["columns", "loaderLines"] }, { kind: "component", type: FsPaginationComponent, selector: "fs-list-pagination", inputs: ["pagination", "rows"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6078
6754
  }
6079
6755
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsListComponent, decorators: [{
6080
6756
  type: Component,
@@ -6082,6 +6758,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6082
6758
  GroupExpandNotifierService,
6083
6759
  PersistanceController,
6084
6760
  ReorderController,
6761
+ BreakpointController,
6085
6762
  ], standalone: true, imports: [
6086
6763
  NgClass,
6087
6764
  NgTemplateOutlet,
@@ -6098,7 +6775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6098
6775
  FsListLoaderComponent,
6099
6776
  FsPaginationComponent,
6100
6777
  AsyncPipe,
6101
- ], template: "<div\n class=\"fs-list-container\"\n [ngClass]=\"{\n 'has-filters': list.filterConfig?.items.length,\n 'has-status': hasStatus,\n 'has-chips': list.chips,\n 'has-actions': list.actions.hasActions,\n 'has-row-actions-hover': list.rowActionsHover,\n 'first-load': firstLoad,\n 'loading': list.loading$ | async\n }\">\n <ng-template [ngTemplateOutlet]=\"listContainerContent\"></ng-template>\n</div>\n<ng-template #listContainerContent>\n @if (list.dataController.visibleRows$ | async; as listData) {\n <div class=\"fs-list-header-container\">\n <div\n class=\"fs-list-header\"\n [ngClass]=\"{ 'no-wrap': reorderController.manualReorderActivated || !list.filterConfig?.items.length }\">\n @if (list.filterConfig) {\n <fs-filter\n class=\"fs-list-filter\"\n [config]=\"list.filterConfig\">\n @if (hasStatus) {\n <ng-template fsFilterStatusBar>\n <fs-list-status\n class=\"fs-list-status\"\n [ngClass]=\"{ 'hidden-mobile': !list.status }\"\n [rows]=\"listData\"\n [list]=\"list\"\n [firstLoad]=\"firstLoad\">\n </fs-list-status>\n </ng-template>\n }\n @if (headingTemplate) {\n <ng-template fsFilterHeading>\n <ng-template [ngTemplateOutlet]=\"headingTemplate\"></ng-template>\n </ng-template>\n }\n </fs-filter>\n }\n </div>\n </div>\n <ng-content select=\"[fs-list-content]\"></ng-content>\n <!-- Table implementation -->\n <div class=\"fs-list-table-container\">\n @if (!firstLoad && listData.length > 0 && !list.emptyStateEnabled) {\n <table\n class=\"fs-list-table\"\n role=\"grid\"\n [fsListContentInit]=\"list.afterContentInit\"\n [ngClass]=\"{\n 'style-card': list.style === 'card',\n 'style-basic': list.style === 'basic',\n 'style-line': (list.style || 'line') === 'line'\n }\">\n @if (list.columns.hasHeader) {\n <thead\n fs-list-head\n class=\"fs-list-head\"\n role=\"rowgroup\"\n [ngClass]=\"list.columns.theadClass\"\n [columns]=\"list.columns.visibleColumns$ | async\"\n [sorting]=\"list.sorting\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderController.enabled$ | async\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </thead>\n }\n <tbody\n 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$ | async\"\n [restoreMode]=\"list.restoreMode\"\n [selection]=\"list.selection\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderController.enabled$ | async\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\"\n [reorderMultiple]=\"reorderController.multiple\">\n </tbody>\n @if (list.columns.hasFooter) {\n <tfoot\n fs-list-footer\n class=\"fs-list-footer\"\n [columns]=\"list.columns.visibleColumns$ | async\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderController.enabled$ | async\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </tfoot>\n }\n </table>\n }\n @if (firstLoad) {\n <fs-list-loader\n [columns]=\"list.columns.columns\"\n [loaderLines]=\"loaderLines\">\n </fs-list-loader>\n }\n </div>\n <fs-list-pagination\n class=\"fs-list-pagination\"\n [rows]=\"listData\"\n [pagination]=\"list.paging\">\n </fs-list-pagination>\n @if (!firstLoad) {\n @if (listData.length === 0) {\n <div\n class=\"fs-list-no-results-container\">\n @if (list.noResults?.message && !list.emptyStateEnabled) {\n <div\n class=\"fs-list-no-results\">\n {{ list.noResults?.message }}\n </div>\n }\n @if (list.emptyStateEnabled) {\n <ng-template [ngTemplateOutlet]=\"list.emptyStateTemplate\"></ng-template>\n }\n </div>\n }\n }\n }\n</ng-template>", styles: ["::ng-deep .fs-list-table{border-spacing:0;display:table;width:100%;border-collapse:collapse}::ng-deep .fs-list-table thead{display:table-header-group}::ng-deep .fs-list-table thead th{color:#999;padding:8px;font-weight:400;color:#8f8f8f;font-size:85%;text-align:left}::ng-deep .fs-list-table tbody{display:table-row-group;position:relative}::ng-deep .fs-list-table tbody tr,::ng-deep .fs-list-table thead tr,::ng-deep .fs-list-table tfoot tr{display:table-row}::ng-deep .fs-list-table tbody tr td,::ng-deep .fs-list-table thead tr td,::ng-deep .fs-list-table tfoot tr td{display:table-cell;padding:8px;vertical-align:middle;outline:none;text-align:left}::ng-deep .fs-list-table.style-card tbody tr:not(.fs-list-row-group-footer):not(.fs-list-row-group){clip-path:xywh(0 3px 100% calc(100% - 6px) round 10px)}::ng-deep .fs-list-table.style-card tbody tr td{border:none!important;background-color:#fafafa;padding:8px 16px}::ng-deep .fs-list-table.style-line tbody td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody td{box-sizing:border-box;border-top:1px solid #e7e7e7}::ng-deep .fs-list-table.style-line tbody tr:first-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:first-child td{border-color:#c4c4c4}::ng-deep .fs-list-table.style-line tbody tr:last-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:last-child td{border-bottom:1px solid #c4c4c4}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging thead th,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging thead th{border-color:#e7e7e7}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging tbody tr:nth-child(2) td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging tbody tr:nth-child(2) td{border-top:none}:host{display:block;width:100%}:host ::ng-deep .fs-list-swap-restricted{opacity:.5}:host ::ng-deep .fs-list-no-drop{cursor:no-drop}:host ::ng-deep .hidden{display:none}:host ::ng-deep .multiple-selection{background-color:#2196f380}:host ::ng-deep .multiple-selection ::ng-deep .fs-list-col{background-color:#2196f380}@media print{:host ::ng-deep .fs-list-row-group{page-break-after:avoid}:host ::ng-deep .fs-list-row-group-child{page-break-before:avoid}:host ::ng-deep .fs-list-row-group-footer{page-break-before:avoid}}.fs-list-container{width:100%}.fs-list-container.has-filters .heading-container{margin-bottom:4px}.fs-list-container.loading .fs-list-status,.fs-list-container.loading .fs-list-body,.fs-list-container.loading .fs-list-head,.fs-list-container.loading .fs-list-footer,.fs-list-container.loading fs-list-pagination,.fs-list-container.loading ::ng-deep fs-filter-chips,.fs-list-container.loading .fs-list-no-results-container,.fs-list-container.first-load .fs-list-status,.fs-list-container.first-load .fs-list-body,.fs-list-container.first-load .fs-list-head,.fs-list-container.first-load .fs-list-footer,.fs-list-container.first-load fs-list-pagination,.fs-list-container.first-load ::ng-deep fs-filter-chips,.fs-list-container.first-load .fs-list-no-results-container{opacity:.4;pointer-events:none}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip{color:transparent}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip .remove{visibility:hidden}.fs-list-container.has-actions .fs-list-actions{margin-left:5px}@media screen and (min-width: 800px){.fs-list-container.has-row-actions-hover ::ng-deep .actions-col{width:0px;position:relative;overflow:visible;padding:0}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions{display:none;position:absolute;border-radius:5px;top:50%;right:5px;transform:translateY(-50%)}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions .mat-mdc-button-base{background:#fefefe;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.fs-list-container.has-row-actions-hover ::ng-deep tr:hover fs-list-row-actions{display:flex}}.fs-list-container .fs-list-header .heading-container{display:flex;flex-direction:column;justify-content:center}.fs-list-container .fs-list-header .heading{margin:0}.fs-list-container .fs-list-header h2+.subheading{margin:2px 0 0}.fs-list-container .fs-list-filter{margin-bottom:0;position:initial!important;display:block;width:100%}.fs-list-container .fs-list-no-results-container .fs-list-no-results{text-align:center;color:#999;padding:10px 0}.fs-list-container .fs-list-table-container{width:100%;overflow-x:auto;overflow-y:hidden;margin-top:7px}::ng-deep .fs-list-preview-block{position:fixed;height:30px;width:200px;background:gray;display:flex;justify-content:center;align-items:center;z-index:1000;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:6px}::ng-deep .reorder-in-progress{-webkit-user-select:none;user-select:none}@media only screen and (max-width: 600px){::ng-deep .fs-list-filter .inline-actions{top:initial!important;position:initial!important}::ng-deep .fs-list-filter .inline-actions .action-filter{margin-bottom:0!important}::ng-deep .fs-list-header .filter-input-field .mat-form-field-wrapper{padding:0!important}::ng-deep .fs-list-header.has-filters{flex-flow:row wrap}}@media only screen and (max-width: 768px){::ng-deep .show-mobile{display:inline-block!important}::ng-deep .fs-list-actions .action-button{display:none}::ng-deep .row-inline-action.mobile-hide{display:none}::ng-deep .hidden-mobile-menu-action{display:block!important}}:host(.fs-list-row-highlight) ::ng-deep tbody .fs-list-row:hover .fs-list-col{background-color:#f6f6f6}\n"] }]
6778
+ ], template: "<div\n class=\"fs-list-container\"\n [ngClass]=\"{\n 'has-filters': list.filterConfig?.items.length,\n 'has-status': hasStatus,\n 'has-chips': list.chips,\n 'has-actions': list.actions.hasActions,\n 'has-row-actions-hover': list.rowActionsHover,\n 'first-load': firstLoad,\n 'loading': list.loading$ | async\n }\">\n <ng-template [ngTemplateOutlet]=\"listContainerContent\"></ng-template>\n</div>\n<ng-template #listContainerContent>\n @if (list.dataController.visibleRows$ | async; as listData) {\n <div class=\"fs-list-header-container\">\n <div\n class=\"fs-list-header\"\n [ngClass]=\"{ 'no-wrap': reorderController.manualReorderActivated || !list.filterConfig?.items.length }\">\n @if (list.filterConfig) {\n <fs-filter\n class=\"fs-list-filter\"\n [config]=\"list.filterConfig\">\n @if (hasStatus) {\n <ng-template fsFilterStatusBar>\n <fs-list-status\n class=\"fs-list-status\"\n [ngClass]=\"{ 'hidden-mobile': !list.status }\"\n [rows]=\"listData\"\n [list]=\"list\"\n [firstLoad]=\"firstLoad\">\n </fs-list-status>\n </ng-template>\n }\n @if (headingTemplate) {\n <ng-template fsFilterHeading>\n <ng-template [ngTemplateOutlet]=\"headingTemplate\"></ng-template>\n </ng-template>\n }\n </fs-filter>\n }\n </div>\n </div>\n <ng-content select=\"[fs-list-content]\"></ng-content>\n <!-- Table implementation -->\n <div class=\"fs-list-table-container\">\n @if (!firstLoad && listData.length > 0 && !list.emptyStateEnabled) {\n <table\n class=\"fs-list-table\"\n role=\"grid\"\n [fsListContentInit]=\"list.afterContentInit\"\n [ngClass]=\"{\n 'style-card': list.style === 'card',\n 'style-basic': list.style === 'basic',\n 'style-line': (list.style || 'line') === 'line'\n }\">\n @if (showHead) {\n <thead\n fs-list-head\n class=\"fs-list-head\"\n role=\"rowgroup\"\n [ngClass]=\"list.columns.theadClass\"\n [columns]=\"renderedColumns$ | async\"\n [sorting]=\"list.sorting\"\n [selection]=\"selectionEnabled\"\n [hasRowActions]=\"rowActionsEnabled\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderEnabledFor(reorderController.enabled$ | async)\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </thead>\n }\n <tbody\n 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]=\"rowActionsEnabled\"\n [rowEvents]=\"list.rowEvents\"\n [rowClass]=\"list.rowClass\"\n [columns]=\"renderedColumns$ | async\"\n [restoreMode]=\"list.restoreMode\"\n [selection]=\"selectionEnabled\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderEnabledFor(reorderController.enabled$ | async)\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\"\n [reorderMultiple]=\"reorderController.multiple\">\n </tbody>\n @if (list.columns.hasFooter) {\n <tfoot\n fs-list-footer\n class=\"fs-list-footer\"\n [columns]=\"renderedColumns$ | async\"\n [selection]=\"selectionEnabled\"\n [hasRowActions]=\"rowActionsEnabled\"\n [activeFiltersCount]=\"list.activeFiltersCount$ | async\"\n [reorderEnabled]=\"reorderEnabledFor(reorderController.enabled$ | async)\"\n [reorderPosition]=\"reorderController.position$ | async\"\n [reorderStrategy]=\"reorderController.strategy$ | async\">\n </tfoot>\n }\n </table>\n }\n @if (firstLoad) {\n <fs-list-loader\n [columns]=\"list.columns.columns\"\n [loaderLines]=\"loaderLines\">\n </fs-list-loader>\n }\n </div>\n <fs-list-pagination\n class=\"fs-list-pagination\"\n [rows]=\"listData\"\n [pagination]=\"list.paging\">\n </fs-list-pagination>\n @if (!firstLoad) {\n @if (listData.length === 0) {\n <div\n class=\"fs-list-no-results-container\">\n @if (list.noResults?.message && !list.emptyStateEnabled) {\n <div\n class=\"fs-list-no-results\">\n {{ list.noResults?.message }}\n </div>\n }\n @if (list.emptyStateEnabled) {\n <ng-template [ngTemplateOutlet]=\"list.emptyStateTemplate\"></ng-template>\n }\n </div>\n }\n }\n }\n</ng-template>", styles: ["::ng-deep .fs-list-table{border-spacing:0;display:table;width:100%;border-collapse:collapse}::ng-deep .fs-list-table thead{display:table-header-group}::ng-deep .fs-list-table thead th{color:#999;padding:8px;font-weight:400;color:#8f8f8f;font-size:85%;text-align:left}::ng-deep .fs-list-table tbody{display:table-row-group;position:relative}::ng-deep .fs-list-table tbody tr,::ng-deep .fs-list-table thead tr,::ng-deep .fs-list-table tfoot tr{display:table-row}::ng-deep .fs-list-table tbody tr td,::ng-deep .fs-list-table thead tr td,::ng-deep .fs-list-table tfoot tr td{display:table-cell;padding:8px;vertical-align:middle;outline:none;text-align:left}::ng-deep .fs-list-table.style-card thead th,::ng-deep .fs-list-table.style-card tbody td,::ng-deep .fs-list-table.style-card tfoot td{padding:8px 16px}::ng-deep .fs-list-table.style-card tbody tr td{border:none!important}::ng-deep .fs-list-table.style-card tbody tr:not(.fs-list-row-group-footer):not(.fs-list-row-group){clip-path:xywh(0 3px 100% calc(100% - 6px) round 10px)}::ng-deep .fs-list-table.style-card tbody tr:not(.fs-list-row-group-footer):not(.fs-list-row-group) td{background-color:#fafafa}::ng-deep .fs-list-table.style-line tbody td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody td{box-sizing:border-box;border-top:1px solid #e7e7e7}::ng-deep .fs-list-table.style-line tbody tr:first-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:first-child td{border-color:#c4c4c4}::ng-deep .fs-list-table.style-line tbody tr:last-child td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) tbody tr:last-child td{border-bottom:1px solid #c4c4c4}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging thead th,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging thead th{border-color:#e7e7e7}::ng-deep .fs-list-table.style-line .fs-list-container.has-dragging tbody tr:nth-child(2) td,::ng-deep .fs-list-table:not(.style-card):not(.style-basic) .fs-list-container.has-dragging tbody tr:nth-child(2) td{border-top:none}:host{display:block;width:100%}:host ::ng-deep .fs-list-swap-restricted{opacity:.5}:host ::ng-deep .fs-list-no-drop{cursor:no-drop}:host ::ng-deep .hidden{display:none}:host ::ng-deep .multiple-selection{background-color:#2196f380}:host ::ng-deep .multiple-selection ::ng-deep .fs-list-col{background-color:#2196f380}@media print{:host ::ng-deep .fs-list-row-group{page-break-after:avoid}:host ::ng-deep .fs-list-row-group-child{page-break-before:avoid}:host ::ng-deep .fs-list-row-group-footer{page-break-before:avoid}}.fs-list-container{width:100%}.fs-list-container.has-filters .heading-container{margin-bottom:4px}.fs-list-container.loading .fs-list-status,.fs-list-container.loading .fs-list-body,.fs-list-container.loading .fs-list-head,.fs-list-container.loading .fs-list-footer,.fs-list-container.loading fs-list-pagination,.fs-list-container.loading ::ng-deep fs-filter-chips,.fs-list-container.loading .fs-list-no-results-container,.fs-list-container.first-load .fs-list-status,.fs-list-container.first-load .fs-list-body,.fs-list-container.first-load .fs-list-head,.fs-list-container.first-load .fs-list-footer,.fs-list-container.first-load fs-list-pagination,.fs-list-container.first-load ::ng-deep fs-filter-chips,.fs-list-container.first-load .fs-list-no-results-container{opacity:.4;pointer-events:none}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip{color:transparent}.fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip .remove{visibility:hidden}.fs-list-container.has-actions .fs-list-actions{margin-left:5px}@media screen and (min-width: 800px){.fs-list-container.has-row-actions-hover ::ng-deep .actions-col{width:0px;position:relative;overflow:visible;padding:0}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions{display:none;position:absolute;border-radius:5px;top:50%;right:5px;transform:translateY(-50%)}.fs-list-container.has-row-actions-hover ::ng-deep .actions-col fs-list-row-actions .mat-mdc-button-base{background:#fefefe;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.fs-list-container.has-row-actions-hover ::ng-deep tr:hover fs-list-row-actions{display:flex}}.fs-list-container .fs-list-header .heading-container{display:flex;flex-direction:column;justify-content:center}.fs-list-container .fs-list-header .heading{margin:0}.fs-list-container .fs-list-header h2+.subheading{margin:2px 0 0}.fs-list-container .fs-list-filter{margin-bottom:0;position:initial!important;display:block;width:100%}.fs-list-container .fs-list-no-results-container .fs-list-no-results{text-align:center;color:#999;padding:10px 0}.fs-list-container .fs-list-table-container{width:100%;overflow-x:auto;overflow-y:hidden;margin-top:7px}::ng-deep .fs-list-preview-block{position:fixed;height:30px;width:200px;background:gray;display:flex;justify-content:center;align-items:center;z-index:1000;box-shadow:2px 2px 2px #9e9e9ea6;border-radius:6px}::ng-deep .reorder-in-progress{-webkit-user-select:none;user-select:none}@media only screen and (max-width: 600px){::ng-deep .fs-list-filter .inline-actions{top:initial!important;position:initial!important}::ng-deep .fs-list-filter .inline-actions .action-filter{margin-bottom:0!important}::ng-deep .fs-list-header .filter-input-field .mat-form-field-wrapper{padding:0!important}::ng-deep .fs-list-header.has-filters{flex-flow:row wrap}}@media only screen and (max-width: 768px){::ng-deep .show-mobile{display:inline-block!important}::ng-deep .fs-list-actions .action-button{display:none}::ng-deep .row-inline-action.mobile-hide{display:none}::ng-deep .hidden-mobile-menu-action{display:block!important}}:host(.fs-list-row-highlight) ::ng-deep tbody .fs-list-row:not(.fs-list-row-group):not(.fs-list-row-group-footer):hover .fs-list-col{background-color:#f6f6f6}\n"] }]
6102
6779
  }], propDecorators: { classFsList: [{
6103
6780
  type: HostBinding,
6104
6781
  args: ['class.fs-list']
@@ -6126,6 +6803,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6126
6803
  }], columnTemplates: [{
6127
6804
  type: ContentChildren,
6128
6805
  args: [FsListColumnDirective]
6806
+ }], breakpointDirectives: [{
6807
+ type: ContentChildren,
6808
+ args: [FsListBreakpointDirective]
6129
6809
  }], _emptyStateTemplate: [{
6130
6810
  type: ContentChild,
6131
6811
  args: [FsListEmptyStateDirective, { read: TemplateRef }]
@@ -6190,6 +6870,7 @@ class FsListModule {
6190
6870
  FsFooterComponent,
6191
6871
  FsPaginationComponent,
6192
6872
  FsListColumnDirective,
6873
+ FsListBreakpointDirective,
6193
6874
  FsListCellDirective,
6194
6875
  FsListCellRowTypeScopeDirective,
6195
6876
  FsListHeaderDirective,
@@ -6209,6 +6890,7 @@ class FsListModule {
6209
6890
  FsCellComponent,
6210
6891
  FsListLoaderComponent,
6211
6892
  FsListColumnDirective,
6893
+ FsListBreakpointDirective,
6212
6894
  FsListCellDirective,
6213
6895
  FsListCellRowTypeScopeDirective,
6214
6896
  FsListHeaderDirective,
@@ -6252,6 +6934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6252
6934
  FsFooterComponent,
6253
6935
  FsPaginationComponent,
6254
6936
  FsListColumnDirective,
6937
+ FsListBreakpointDirective,
6255
6938
  FsListCellDirective,
6256
6939
  FsListCellRowTypeScopeDirective,
6257
6940
  FsListHeaderDirective,
@@ -6274,6 +6957,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6274
6957
  FsCellComponent,
6275
6958
  FsListLoaderComponent,
6276
6959
  FsListColumnDirective,
6960
+ FsListBreakpointDirective,
6277
6961
  FsListCellDirective,
6278
6962
  FsListCellRowTypeScopeDirective,
6279
6963
  FsListHeaderDirective,
@@ -6310,5 +6994,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
6310
6994
  * Generated bundle index. Do not edit.
6311
6995
  */
6312
6996
 
6313
- export { ActionType, Column, FS_LIST_CONFIG, FsBodyComponent, FsCellComponent, FsFooterCellComponent, FsFooterComponent, FsFooterRowComponent, FsHeadCellComponent, FsHeadComponent, FsListCellDirective, FsListCellRowTypeScopeDirective, FsListColumnDirective, FsListComponent, FsListContentDirective, FsListDraggableListDirective, FsListEmptyStateDirective, FsListFooterDirective, FsListGroupExpandTriggerDirective, FsListGroupFooterDirective, FsListGroupHeaderDirective, FsListHeaderDirective, FsListHeadingDirective, FsListLoaderComponent, FsListModule, FsListState, FsPaginationComponent, FsRowComponent, FsStatusComponent, FsTypedListCellDirective, List, PaginationController, PaginationStrategy, ReorderController, ReorderPosition, RowAction, RowType, SelectionChangeType, SelectionController, SortingController, SortingDirection, StyleConfig };
6997
+ export { ActionType, BreakpointController, Column, ColumnSet, FS_LIST_CONFIG, FsBodyComponent, FsCellComponent, FsFooterCellComponent, FsFooterComponent, FsFooterRowComponent, FsHeadCellComponent, FsHeadComponent, FsListBreakpointDirective, FsListCellDirective, FsListCellRowTypeScopeDirective, FsListColumnDirective, FsListComponent, FsListContentDirective, FsListDraggableListDirective, FsListEmptyStateDirective, FsListFooterDirective, FsListGroupExpandTriggerDirective, FsListGroupFooterDirective, FsListGroupHeaderDirective, FsListHeaderDirective, FsListHeadingDirective, FsListLoaderComponent, FsListModule, FsListState, FsPaginationComponent, FsRowComponent, FsStatusComponent, FsTypedListCellDirective, List, PaginationController, PaginationStrategy, ReorderController, ReorderPosition, ReorderStrategy, RowAction, RowType, SelectionChangeType, SelectionController, SortingController, SortingDirection, StyleConfig };
6314
6998
  //# sourceMappingURL=firestitch-list.mjs.map