@kronor/dtv 7.6.1 → 7.6.3

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.
@@ -46,11 +46,10 @@ export interface ActionAPI {
46
46
  * GraphQL field path the column sorts by — dotted for nested columns, e.g.
47
47
  * `customer.profile.status` — not the column id.
48
48
  *
49
- * Always pass this value to `buildGraphQLQueryVariables` as its `ordering`
50
- * argument, `null` included, to build variables that order and paginate exactly
51
- * like the table on screen (`null` means "pagination key only", which is what an
52
- * unsorted table queries). Omitting the argument is not the same thing: it
53
- * selects the view's `staticOrdering`, which the table never queries by.
49
+ * Pass it to `buildGraphQLQueryVariables` as its `ordering` argument to build
50
+ * variables that order and paginate exactly like the table on screen. The view's
51
+ * `staticOrdering` is applied either way — it trails this ordering as a
52
+ * tie-breaker, and stands alone when this is `null`.
54
53
  */
55
54
  ordering: DataOrdering | null;
56
55
  /** Build a GraphQLQueryAST for an arbitrary rootField (usually the current view root field). */
@@ -1,5 +1,5 @@
1
1
  import { FilterField, FilterControl, FilterExpr, FilterGroups } from './filters';
2
- import { FilterState } from './state';
2
+ import { FilterState, FormStateInitMode } from './state';
3
3
  import * as FilterValue from './filterValue';
4
4
  export type FilterFormState = {
5
5
  type: 'leaf';
@@ -76,5 +76,5 @@ export declare function serializeFilterFormStateMap(state: FilterState, filterGr
76
76
  * Parse serialized filter state (object keyed by filter id) back into a FilterState Map,
77
77
  * converting date string values to Date objects by consulting the filter schema.
78
78
  */
79
- export declare function parseFilterFormState(serializedState: any, filterGroups: FilterGroups): FilterState;
79
+ export declare function parseFilterFormState(serializedState: any, filterGroups: FilterGroups, missingFilterMode?: FormStateInitMode): FilterState;
80
80
  export {};
@@ -48,6 +48,7 @@ Add additional docs here for transforms, custom filters, etc. as needed.
48
48
  - For rendered or composite columns, set `orderBy` on the table column JSON to one of the scalar GraphQL fields selected by `data` to enable sorting.
49
49
  - `orderBy` may be a dot-separated path for nested order fields, such as `customer.profile.status`.
50
50
  - Users can order by one sortable header at a time. Clicking a sorted header a third time removes the header ordering.
51
+ - A view's `staticOrdering` always applies: the sorted header leads and static entries trail it as tie-breakers, so an unsorted table orders by `staticOrdering` alone. An entry for the field the user sorted by is dropped, since their direction supersedes it. A unique `paginationKey` ordering closes the list.
51
52
 
52
53
  ```jsonc
53
54
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronor/dtv",
3
- "version": "7.6.1",
3
+ "version": "7.6.3",
4
4
  "description": "Schema-driven, declarative table views with advanced filtering, data fetching and AI-assisted filter generation.",
5
5
  "repository": {
6
6
  "type": "git",