@platforma-open/milaboratories.software-ptabler.schema 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sort.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ import { Expression } from './expressions';
1
2
  /**
2
3
  * Defines a single sort instruction, specifying the column, sort order,
3
4
  * and null handling strategy.
4
5
  */
5
6
  export interface SortDirective {
6
- /** The name of the column to sort by. */
7
- column: string;
7
+ /** The expression to sort by. */
8
+ value: Expression;
8
9
  /**
9
10
  * Whether to sort in descending order for this column.
10
11
  * Defaults to false (ascending).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.software-ptabler.schema",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Type definitions for PTabler",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
package/src/sort.ts CHANGED
@@ -1,10 +1,12 @@
1
+ import type { Expression } from './expressions';
2
+
1
3
  /**
2
4
  * Defines a single sort instruction, specifying the column, sort order,
3
5
  * and null handling strategy.
4
6
  */
5
7
  export interface SortDirective {
6
- /** The name of the column to sort by. */
7
- column: string;
8
+ /** The expression to sort by. */
9
+ value: Expression;
8
10
 
9
11
  /**
10
12
  * Whether to sort in descending order for this column.