@stonecrop/desktop 0.33.0 → 0.35.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/README.md +4 -2
- package/dist/assets/index.css +321 -220
- package/dist/desktop.js +502 -196
- package/dist/desktop.js.map +1 -1
- package/dist/src/components/ActionSet.vue.d.ts +6 -1
- package/dist/src/components/ActionSet.vue.d.ts.map +1 -1
- package/dist/src/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/src/components/Desktop.vue.d.ts +9 -3
- package/dist/src/components/Desktop.vue.d.ts.map +1 -1
- package/dist/src/components/SheetNav.vue.d.ts.map +1 -1
- package/dist/src/composables/useActionSet.d.ts +23 -0
- package/dist/src/composables/useActionSet.d.ts.map +1 -0
- package/dist/src/icons/index.d.ts +22 -0
- package/dist/src/icons/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/plugins/index.d.ts.map +1 -1
- package/dist/src/sheet-nav-toolbar.d.ts +4 -1
- package/dist/src/sheet-nav-toolbar.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +27 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Desktop reads through Stonecrop: on navigating to a list or a record it calls `S
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- **Three-view layout**: doctypes → records → record form, navigated by route or adapter
|
|
10
|
-
- **ActionSet
|
|
10
|
+
- **ActionSet tile column**: expandable tile UI with Search, host slots, and an Actions drawer; FSM transitions populate the actions list automatically from the doctype workflow
|
|
11
11
|
- **CommandPalette**: `Ctrl+K` / `Cmd+K` search across doctypes and records
|
|
12
12
|
- **SheetNav**: tabbed navigation between open records, with a toolbar for host controls in the footer (see [Slots](#slots))
|
|
13
13
|
- **Event-driven**: all significant interactions emit typed events for the host to respond to
|
|
@@ -67,6 +67,8 @@ const { run } = useClientAction()
|
|
|
67
67
|
|------|------|---------|-------------|
|
|
68
68
|
| `availableDoctypes` | `string[]` | `[]` | Doctype slugs to display in the doctypes list |
|
|
69
69
|
| `routeAdapter` | `RouteAdapter` | none | Custom routing layer (required for Nuxt/custom hosts) |
|
|
70
|
+
| `actionSetSlots` | `ActionSetSlot[]` | `[]` | Host drawer slots shown as tiles in ActionSet |
|
|
71
|
+
| `hostActions` | `ActionElements[]` | none | Actions listed in the Actions drawer in place of those derived from the doctype; `[]` lists none |
|
|
70
72
|
|
|
71
73
|
Record identity is not a prop. It is declared per doctype (`primaryKey`, falling back to `id`) and resolved through `Doctype.getRecordId`, so a row's link always matches the key the record is stored under. One shell renders many doctypes, so a single prop could never answer this correctly.
|
|
72
74
|
|
|
@@ -106,7 +108,7 @@ See [api.md](./api.md) for payload type definitions.
|
|
|
106
108
|
|
|
107
109
|
### Event Handling Notes
|
|
108
110
|
|
|
109
|
-
- **action**: Desktop merges `Doctype.getAvailableTransitions` and `Doctype.getAvailableCommands`, both resolved against `Stonecrop.getRecordState`, into
|
|
111
|
+
- **action**: Desktop merges `Doctype.getAvailableTransitions` and `Doctype.getAvailableCommands`, both resolved against `Stonecrop.getRecordState`, into the ActionSet Actions drawer. **Desktop never dispatches**: that is the host application's responsibility.
|
|
110
112
|
- **load-records / load-record**: notifications, not fetch requests. Desktop reads through `Stonecrop.getRecords` / `Stonecrop.getRecord` itself, using the registered `DataClient`; these events announce that read so a host can hang analytics off it. A host that fetches here races Desktop's own read into the same HST key. `load-record` is not emitted for a draft, which has nothing to fetch.
|
|
111
113
|
|
|
112
114
|
## Router Adapter
|