@protobase/schema 0.24.1 → 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 +6 -2
- package/dist/view-displays.d.ts +2 -1
- package/dist/view-displays.js +2 -1
- package/package.json +1 -1
package/dist/model.d.ts
CHANGED
|
@@ -595,8 +595,12 @@ export type ListDragModel = {
|
|
|
595
595
|
* move by dragging them, at any time, rather than after **Reorder**.
|
|
596
596
|
*/
|
|
597
597
|
rank?: boolean;
|
|
598
|
-
/**
|
|
599
|
-
|
|
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;
|
|
600
604
|
/**
|
|
601
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
|
|
602
606
|
* it refuses lands in the first place below that it allows, with a warning saying why.
|
package/dist/view-displays.d.ts
CHANGED
|
@@ -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: {
|
|
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
|
*/
|
package/dist/view-displays.js
CHANGED
|
@@ -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: {
|
|
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
|
*/
|