@protobase/schema 0.24.0 → 0.25.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/model.d.ts CHANGED
@@ -595,8 +595,17 @@ export type ListDragModel = {
595
595
  * move by dragging them, at any time, rather than after **Reorder**.
596
596
  */
597
597
  rank?: boolean;
598
- /** Moving a board's card to another column, which saves its record with that column's value. */
599
- board?: boolean;
598
+ /**
599
+ * Moving a board's card to another column: `true` saves its record with that column's value; the name of a board drop
600
+ * in the UI config's `boardDrops` lets cards move only between the columns it names, each drop running its write, which
601
+ * works when the board's field is read-only, such as one the database computes.
602
+ */
603
+ board?: boolean | string;
604
+ /**
605
+ * Where the table's rows may land when re-ranked: the name of a drop rule in the UI config's `dropRules`. A drop where
606
+ * it refuses lands in the first place below that it allows, with a warning saying why.
607
+ */
608
+ rule?: string;
600
609
  };
601
610
  /**
602
611
  * A list column of the records of another resource that point at each row, directly or through a join resource, as a
@@ -82,7 +82,8 @@ export declare const displays: {
82
82
  * card of `d.cards` does, and opens the record. With the list's `drag: { board: true }`, dragging a card to another
83
83
  * column, or picking it up with Space and moving it with the arrow keys, saves the record with `by` set to that
84
84
  * column's value, as one update with its ETag, so the resource's access rules and `validate` decide, and a refusal
85
- * puts the card back and says why; with `drag: { rank: true }` a card moves within its column too. `by` must be
85
+ * puts the card back and says why; with `drag: { board: 'name' }` only between the columns the UI config's board drop
86
+ * of that name lists, each running its own write; with `drag: { rank: true }` a card moves within its column too. `by` must be
86
87
  * a filterable enum field. Named `board` unless `name` says otherwise. See
87
88
  * [Boards](website/src/content/docs/reference/ui-config.mdx#boards).
88
89
  */
@@ -78,7 +78,8 @@ const displays = {
78
78
  * card of `d.cards` does, and opens the record. With the list's `drag: { board: true }`, dragging a card to another
79
79
  * column, or picking it up with Space and moving it with the arrow keys, saves the record with `by` set to that
80
80
  * column's value, as one update with its ETag, so the resource's access rules and `validate` decide, and a refusal
81
- * puts the card back and says why; with `drag: { rank: true }` a card moves within its column too. `by` must be
81
+ * puts the card back and says why; with `drag: { board: 'name' }` only between the columns the UI config's board drop
82
+ * of that name lists, each running its own write; with `drag: { rank: true }` a card moves within its column too. `by` must be
82
83
  * a filterable enum field. Named `board` unless `name` says otherwise. See
83
84
  * [Boards](website/src/content/docs/reference/ui-config.mdx#boards).
84
85
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/schema",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Resource, field, view and access definitions for Protobase configs.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {