@protobase/schema 0.19.1 → 0.19.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.
- package/dist/model.d.ts +1 -2
- package/dist/view.d.ts +2 -2
- package/dist/view.js +2 -2
- package/package.json +1 -1
package/dist/model.d.ts
CHANGED
|
@@ -616,8 +616,7 @@ export type ChartModel = {
|
|
|
616
616
|
/**
|
|
617
617
|
* How the record page opens to a user who may change the record: `edit`, the default, as its form, ready to change;
|
|
618
618
|
* `read` as a read view of label/value tables, with an Edit button to the form; `locked` as the same form, locked until
|
|
619
|
-
* Edit is pressed, where reading and editing look alike. A user who may not change it sees the read view
|
|
620
|
-
* and the locked form otherwise.
|
|
619
|
+
* Edit is pressed, where reading and editing look alike. A user who may not change it sees the read view in every mode.
|
|
621
620
|
*/
|
|
622
621
|
export type RecordMode = 'edit' | 'read' | 'locked';
|
|
623
622
|
/** How the record page shows that a save went through: a `toast` (the default) or on the Save `button`. */
|
package/dist/view.d.ts
CHANGED
|
@@ -94,8 +94,8 @@ export declare class ViewBuilder<R extends {
|
|
|
94
94
|
/**
|
|
95
95
|
* How the record page opens to a user who may change the record: `edit`, the default, as its form; `read` as a read
|
|
96
96
|
* view, its sections as tables of labels and values, with an Edit button to the form; `locked` as the form, locked
|
|
97
|
-
* until Edit is pressed.
|
|
98
|
-
* [The record page](website/src/content/docs/reference/ui-config.mdx#read-view-and-edit).
|
|
97
|
+
* until Edit is pressed. A user who may not change it gets the read view in every mode. The form has its own address
|
|
98
|
+
* (`edit: true`), so it opens in a new tab and Back leaves it. See [The record page](website/src/content/docs/reference/ui-config.mdx#read-view-and-edit).
|
|
99
99
|
*/
|
|
100
100
|
recordMode(recordMode: RecordMode): ViewBuilder<R>;
|
|
101
101
|
/**
|
package/dist/view.js
CHANGED
|
@@ -114,8 +114,8 @@ var ViewBuilder = class ViewBuilder {
|
|
|
114
114
|
/**
|
|
115
115
|
* How the record page opens to a user who may change the record: `edit`, the default, as its form; `read` as a read
|
|
116
116
|
* view, its sections as tables of labels and values, with an Edit button to the form; `locked` as the form, locked
|
|
117
|
-
* until Edit is pressed.
|
|
118
|
-
* [The record page](website/src/content/docs/reference/ui-config.mdx#read-view-and-edit).
|
|
117
|
+
* until Edit is pressed. A user who may not change it gets the read view in every mode. The form has its own address
|
|
118
|
+
* (`edit: true`), so it opens in a new tab and Back leaves it. See [The record page](website/src/content/docs/reference/ui-config.mdx#read-view-and-edit).
|
|
119
119
|
*/
|
|
120
120
|
recordMode(recordMode) {
|
|
121
121
|
return this.next({ recordMode });
|