@firestitch/list 18.0.80 → 18.0.82

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 (43) 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/cell/cell.component.d.ts +1 -0
  7. package/app/components/body/row/row.component.d.ts +4 -1
  8. package/app/components/footer/footer.component.d.ts +1 -1
  9. package/app/components/head/head.component.d.ts +11 -1
  10. package/app/components/list/list.component.d.ts +50 -5
  11. package/app/directives/breakpoint/breakpoint.directive.d.ts +58 -0
  12. package/app/directives/draggable-list/draggable-list.directive.d.ts +1 -0
  13. package/app/fs-list.module.d.ts +17 -16
  14. package/app/interfaces/listconfig.interface.d.ts +21 -0
  15. package/app/models/column-set.model.d.ts +50 -0
  16. package/app/models/column.model.d.ts +42 -0
  17. package/app/models/index.d.ts +1 -0
  18. package/esm2022/app/classes/breakpoint-controller.mjs +200 -0
  19. package/esm2022/app/classes/columns-controller.mjs +171 -66
  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 +28 -6
  24. package/esm2022/app/components/body/row/row.component.mjs +39 -7
  25. package/esm2022/app/components/footer/footer-row/footer-row.component.mjs +3 -3
  26. package/esm2022/app/components/footer/footer.component.mjs +1 -1
  27. package/esm2022/app/components/head/head-cell/head-cell.component.mjs +3 -3
  28. package/esm2022/app/components/head/head.component.mjs +18 -3
  29. package/esm2022/app/components/list/list.component.mjs +111 -19
  30. package/esm2022/app/components/pagination/pagination.component.mjs +3 -3
  31. package/esm2022/app/directives/breakpoint/breakpoint.directive.mjs +88 -0
  32. package/esm2022/app/directives/draggable-list/draggable-list.directive.mjs +8 -1
  33. package/esm2022/app/fs-list.module.mjs +7 -2
  34. package/esm2022/app/interfaces/listconfig.interface.mjs +1 -1
  35. package/esm2022/app/models/column-set.model.mjs +93 -0
  36. package/esm2022/app/models/column.model.mjs +56 -1
  37. package/esm2022/app/models/index.mjs +2 -1
  38. package/esm2022/public_api.mjs +5 -2
  39. package/fesm2022/firestitch-list.mjs +829 -112
  40. package/fesm2022/firestitch-list.mjs.map +1 -1
  41. package/package.json +1 -1
  42. package/public_api.d.ts +5 -2
  43. package/styles.scss +22 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/list",
3
- "version": "18.0.80",
3
+ "version": "18.0.82",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-list"
package/public_api.d.ts CHANGED
@@ -13,6 +13,7 @@ export { FsListLoaderComponent } from './app/components/loader/loader.component'
13
13
  export { FsPaginationComponent } from './app/components/pagination/pagination.component';
14
14
  export { FsStatusComponent } from './app/components/status/status.component';
15
15
  export { FsListHeadingDirective } from './app/directives';
16
+ export { FsListBreakpointDirective } from './app/directives/breakpoint/breakpoint.directive';
16
17
  export { FsListCellDirective } from './app/directives/cell/cell.directive';
17
18
  export { FsListCellRowTypeScopeDirective } from './app/directives/cell/cell-row-type-scope.directive';
18
19
  export { FsTypedListCellDirective } from './app/directives/cell/typed-cell.directive';
@@ -25,16 +26,18 @@ export { FsListGroupExpandTriggerDirective } from './app/directives/group-expand
25
26
  export { FsListGroupFooterDirective } from './app/directives/group-footer/group-footer.directive';
26
27
  export { FsListGroupHeaderDirective } from './app/directives/group-header/group-header.directive';
27
28
  export { FsListHeaderDirective } from './app/directives/header/header.directive';
29
+ export { BreakpointController } from './app/classes/breakpoint-controller';
28
30
  export { List } from './app/classes/list-controller';
29
31
  export { PaginationController } from './app/classes/pagination-controller';
30
- export { ReorderController, ReorderPosition } from './app/classes/reorder-controller';
32
+ export { ReorderController, ReorderPosition, ReorderStrategy } from './app/classes/reorder-controller';
31
33
  export { SelectionChangeType, SelectionController } from './app/classes/selection-controller';
32
34
  export { SortingController } from './app/classes/sorting-controller';
35
+ export { ColumnSet } from './app/models/column-set.model';
33
36
  export { Column, SortingDirection } from './app/models/column.model';
34
37
  export { RowAction } from './app/models/row-action.model';
35
38
  export { StyleConfig } from './app/models/styleConfig.model';
36
39
  export { CellConfig } from './app/interfaces/cellconfig.interface';
37
- export { FsListAbstractRow, FsListAction, FsListActionSelected, FsListCellConfig, FsListColumn, FsListColumnChangeFn, FsListColumnConfig, FsListColumnLoadFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchOptions, FsListFetchSubscription, FsListFooterConfig, FsListGroupConfig, FsListHeaderConfig, FsListNoResultsConfig, FsListReorderConfig, FsListReorderData, FsListReorderDoneCallback, FsListReorderMoveInGroupCallback, FsListReorderMovedCallback, FsListRestoreConfig, FsListRowAction, FsListRowActionFile, FsListRowActionFileFn, FsListRowActionGroup, FsListRowActionLink, FsListRowActionLinkFn, FsListRowClassOptions, FsListSelectionConfig, FsListSortsConfig, FsListStateValidationFn, FsListTrackByFn, FsListTrackByTargetRowFn, FsPaging, } from './app/interfaces/listconfig.interface';
40
+ export { FsListAbstractRow, FsListAction, FsListActionSelected, FsListBreakpointsConfig, FsListCellConfig, FsListColumn, FsListColumnChangeFn, FsListColumnConfig, FsListColumnLoadFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchOptions, FsListFetchSubscription, FsListFooterConfig, FsListGroupConfig, FsListHeaderConfig, FsListNoResultsConfig, FsListReorderConfig, FsListReorderData, FsListReorderDoneCallback, FsListReorderMoveInGroupCallback, FsListReorderMovedCallback, FsListRestoreConfig, FsListRowAction, FsListRowActionFile, FsListRowActionFileFn, FsListRowActionGroup, FsListRowActionLink, FsListRowActionLinkFn, FsListRowClassOptions, FsListSelectionConfig, FsListSortsConfig, FsListStateValidationFn, FsListTrackByFn, FsListTrackByTargetRowFn, FsPaging, } from './app/interfaces/listconfig.interface';
38
41
  export { IPaginationState } from './app/interfaces/pagination-state.interface';
39
42
  export { QueryOffsetStrategy, QueryPageStrategy } from './app/interfaces/pagination.interface';
40
43
  export { SortingChangeEvent } from './app/interfaces/sorting-change-event.interface';
package/styles.scss CHANGED
@@ -41,17 +41,31 @@
41
41
  }
42
42
  }
43
43
 
44
- &.style-card {
45
- tbody {
44
+ &.style-card {
45
+ // Every band shares the card's horizontal padding. The head and foot sit outside
46
+ // the cards, so without this their cells -- the select-all checkbox above all,
47
+ // which has nothing but padding to place it -- land 8px inboard of the column
48
+ // they label.
49
+ thead th,
50
+ tbody td,
51
+ tfoot td {
52
+ padding: 8px 16px;
53
+ }
54
+
55
+ tbody {
46
56
  tr {
47
- &:not(.fs-list-row-group-footer):not(.fs-list-row-group) {
48
- clip-path: xywh(0 3px 100% calc(100% - 6px) round 10px);
49
- }
50
-
51
57
  td {
52
58
  border: none !important;
53
- background-color: #fafafa;
54
- padding: 8px 16px;
59
+ }
60
+
61
+ // Group header/footer rows keep the card padding so their content
62
+ // lines up with the cards, but get no card background.
63
+ &:not(.fs-list-row-group-footer):not(.fs-list-row-group) {
64
+ clip-path: xywh(0 3px 100% calc(100% - 6px) round 10px);
65
+
66
+ td {
67
+ background-color: #fafafa;
68
+ }
55
69
  }
56
70
  }
57
71
  }