@simpleplatform/ui-kit 0.2.1 → 0.4.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 +291 -44
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/views.d.ts +164 -0
- package/dist/contracts/views.d.ts.map +1 -0
- package/dist/contracts/views.js +670 -0
- package/dist/elements/status-badge.d.ts.map +1 -1
- package/dist/elements/status-badge.js +11 -15
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -0
- package/dist/react/record-bridge.d.ts +9 -0
- package/dist/react/record-bridge.d.ts.map +1 -1
- package/dist/react/record-bridge.js +8 -0
- package/dist/react/record-form.d.ts.map +1 -1
- package/dist/react/record-form.js +3 -0
- package/dist/react/record-view.d.ts +6 -0
- package/dist/react/record-view.d.ts.map +1 -0
- package/dist/react/record-view.js +186 -0
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +7 -1
- package/package.json +2 -2
- package/theme.css +11 -27
package/README.md
CHANGED
|
@@ -7,9 +7,11 @@ workflow; use the Space SDK directly when you need to own the UI yourself.
|
|
|
7
7
|
## Status
|
|
8
8
|
|
|
9
9
|
This package is in alpha. `StatusBadge` is the current simple component.
|
|
10
|
-
Managed `RecordForm
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
Managed `RecordForm`, `RecordActivity`, and database-backed record views are
|
|
11
|
+
pre-release React interfaces. Their local fixture implementations have been
|
|
12
|
+
browser-verified; they are not yet a stable compatibility promise. Record-header
|
|
13
|
+
actions are exposed by the companion Space SDK as `simple.ui.header`; they are
|
|
14
|
+
not a UI Kit export.
|
|
13
15
|
Do not treat alpha APIs as a stable compatibility promise until they are
|
|
14
16
|
released with an explicit support policy.
|
|
15
17
|
|
|
@@ -19,10 +21,15 @@ released with an explicit support policy.
|
|
|
19
21
|
pnpm add @simpleplatform/ui-kit @simpleplatform/sdk
|
|
20
22
|
```
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
Managed views require the SDK's private managed-view bridge and GraphQL
|
|
25
|
+
`RecordWhere` type. The peer and scaffold requirement is
|
|
26
|
+
`@simpleplatform/sdk@^4.1.0`; 4.0.0 is the first published release with the
|
|
27
|
+
bridge. SDK 3.2.0 was never released; SDK 3.1.0 lacks the bridge. Publish the
|
|
28
|
+
compatible SDK before the UI Kit; the UI Kit release check verifies the
|
|
29
|
+
published SDK artifact's bridge. For local review, use matching
|
|
30
|
+
SDK/UI Kit feature builds. React bridges support React 18.3 or 19. The `0.0.0`
|
|
31
|
+
peer exception supports linked workspace builds and does not prove registry
|
|
32
|
+
compatibility.
|
|
26
33
|
|
|
27
34
|
Releases are tagged `v<version>-kit`. The package is below 1.0: a breaking
|
|
28
35
|
change raises the minor, and the default range `^0.1.0` never moves onto `0.2`
|
|
@@ -108,11 +115,11 @@ stylesheet does not bundle Tailwind or its base reset.
|
|
|
108
115
|
The fonts are bundled with the Space so they load inside its cross-origin
|
|
109
116
|
iframe. `StatusBadge` uses the shared platform tokens for its light and dark
|
|
110
117
|
colors and dimensions. Its neutral tone uses `--simple-color-surface-sunken`
|
|
111
|
-
for the background
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
`--simple-color-status-
|
|
115
|
-
|
|
118
|
+
for the background and `--simple-color-text-secondary` for the text without a border;
|
|
119
|
+
these tokens contain complete CSS color values, not bare HSL triplets. The other tones
|
|
120
|
+
use the single base `--simple-color-status-info`, `--simple-color-status-success`,
|
|
121
|
+
`--simple-color-status-warning`, and `--simple-color-status-danger` tokens with
|
|
122
|
+
background tints derived automatically via `color-mix` without borders.
|
|
116
123
|
A Space may override the `--simple-*` tokens in its own CSS after the imports,
|
|
117
124
|
including `--simple-font-family-sans` for the font stack. These tokens are shared
|
|
118
125
|
with other UI that uses the platform theme; they are not component-local
|
|
@@ -121,35 +128,36 @@ with other UI that uses the platform theme; they are not component-local
|
|
|
121
128
|
### Runtime boundary
|
|
122
129
|
|
|
123
130
|
The Simple host supplies the exact UI Runtime to the managed component bridge
|
|
124
|
-
during the Space handshake.
|
|
125
|
-
|
|
131
|
+
during the Space handshake. `RecordForm`, `RecordActivity`, and the managed
|
|
132
|
+
database-backed views load it automatically; the runtime loader and URL are
|
|
133
|
+
private implementation details, not supported Space APIs.
|
|
126
134
|
Space authors should never choose or hard-code a runtime URL.
|
|
127
135
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
`RecordForm` and `RecordActivity` use a bridge on SDK-created record handles.
|
|
137
|
+
Managed views take the SDK client, a table source, and a validated preset. The
|
|
138
|
+
public adapter entry point is `@simpleplatform/ui-kit/react`; runtime elements
|
|
139
|
+
and bridge metadata remain private.
|
|
131
140
|
|
|
132
141
|
### Framework support
|
|
133
142
|
|
|
134
|
-
|
|
135
|
-
`@simpleplatform/ui-kit/react`. Simple's renderer itself runs
|
|
136
|
-
iframe, so React is not an architectural requirement for customer
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
`@simpleplatform/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
documented lifecycle, property, error, loading, and cleanup contract, non-React
|
|
145
|
-
Spaces can use `@simpleplatform/sdk/space` to build custom controls with
|
|
146
|
-
`simple.records.current()` or `simple.records.open()`. The managed `RecordForm`
|
|
147
|
-
itself remains available only through the React entry point.
|
|
143
|
+
Managed `RecordForm`, `RecordActivity`, and record-view components are currently
|
|
144
|
+
available only from `@simpleplatform/ui-kit/react`. Simple's renderer itself runs
|
|
145
|
+
inside the Space iframe, so React is not an architectural requirement for customer
|
|
146
|
+
Spaces; no public framework-neutral managed form, activity, or view element has
|
|
147
|
+
shipped. Private runtime elements are not supported HTML APIs.
|
|
148
|
+
|
|
149
|
+
`StatusBadge` has a public Web Component entry. Non-React Spaces can use
|
|
150
|
+
`@simpleplatform/sdk/space` to build their own record and view controls with the
|
|
151
|
+
authorized SDK APIs. The private managed UI runtime elements are not a supported
|
|
152
|
+
cross-framework contract.
|
|
148
153
|
|
|
149
154
|
## RecordForm
|
|
150
155
|
|
|
151
156
|
`RecordForm` is the default choice for a Record Space that wants the complete
|
|
152
157
|
Simple record experience without rebuilding it.
|
|
158
|
+
These managed component examples assume a Vite Space with
|
|
159
|
+
`VITE_SIMPLE_HOST_ORIGIN` set to its exact trusted HTTP(S) host origin. The SDK
|
|
160
|
+
does not infer that origin from `document.referrer`.
|
|
153
161
|
|
|
154
162
|
Load the stylesheet as described in [Loading the stylesheet](#loading-the-stylesheet)
|
|
155
163
|
before using this example.
|
|
@@ -160,7 +168,8 @@ import { connect } from '@simpleplatform/sdk/space'
|
|
|
160
168
|
import { RecordForm } from '@simpleplatform/ui-kit/react'
|
|
161
169
|
import { useEffect, useState } from 'react'
|
|
162
170
|
|
|
163
|
-
const
|
|
171
|
+
const targetOrigin = import.meta.env.VITE_SIMPLE_HOST_ORIGIN
|
|
172
|
+
const client = connect({ targetOrigin })
|
|
164
173
|
|
|
165
174
|
export function App() {
|
|
166
175
|
const [record, setRecord] = useState<RecordHandle | null>(null)
|
|
@@ -237,8 +246,9 @@ Simple and are not supported extension APIs:
|
|
|
237
246
|
- field editor registry or per-field renderer replacement;
|
|
238
247
|
- RecordForm's document attachment/promotion lifecycle, reference search,
|
|
239
248
|
secret decryption, and JSON-editor internals. Document upload and promotion
|
|
240
|
-
are handled by the managed form's private host adapter
|
|
241
|
-
|
|
249
|
+
are handled by the managed form's private host adapter. Customer-owned
|
|
250
|
+
uploads can use the separate public `simple.documents.stage({ file })` API;
|
|
251
|
+
staging does not attach the file to a record.
|
|
242
252
|
- Record Behavior scheduling and host session events.
|
|
243
253
|
|
|
244
254
|
This boundary lets Simple improve complex field workflows without requiring
|
|
@@ -258,7 +268,8 @@ import { connect } from '@simpleplatform/sdk/space'
|
|
|
258
268
|
import { RecordActivity } from '@simpleplatform/ui-kit/react'
|
|
259
269
|
import { useEffect, useState } from 'react'
|
|
260
270
|
|
|
261
|
-
const
|
|
271
|
+
const targetOrigin = import.meta.env.VITE_SIMPLE_HOST_ORIGIN
|
|
272
|
+
const client = connect({ targetOrigin })
|
|
262
273
|
|
|
263
274
|
export function ActivityView() {
|
|
264
275
|
const [record, setRecord] = useState<RecordHandle | null>(null)
|
|
@@ -267,7 +278,7 @@ export function ActivityView() {
|
|
|
267
278
|
useEffect(() => {
|
|
268
279
|
let active = true
|
|
269
280
|
void client
|
|
270
|
-
.then(simple => simple.
|
|
281
|
+
.then(simple => simple.records.current())
|
|
271
282
|
.then((value) => {
|
|
272
283
|
if (active)
|
|
273
284
|
setRecord(value)
|
|
@@ -293,9 +304,9 @@ export function ActivityView() {
|
|
|
293
304
|
}
|
|
294
305
|
```
|
|
295
306
|
|
|
296
|
-
| Prop | Type | Required | Purpose
|
|
297
|
-
| -------- | -------------- | -------- |
|
|
298
|
-
| `record` | `RecordHandle` | Yes | A record handle from `simple.
|
|
307
|
+
| Prop | Type | Required | Purpose |
|
|
308
|
+
| -------- | -------------- | -------- | --------------------------------------------------------------------------- |
|
|
309
|
+
| `record` | `RecordHandle` | Yes | A record handle from `simple.records.current()` or `simple.records.open()`. |
|
|
299
310
|
|
|
300
311
|
### Supported context and behavior
|
|
301
312
|
|
|
@@ -327,7 +338,241 @@ It receives `applicationId`, `tableId`, `recordId`, `fields`, `graphql`, and the
|
|
|
327
338
|
existing optional decrypt capability from the private record UI bridge. The
|
|
328
339
|
runtime descriptor, loader, and underlying GraphQL operations are
|
|
329
340
|
private implementation details and not customer extension points. This integration
|
|
330
|
-
|
|
341
|
+
remains pre-release; local browser parity has been verified in the fixture.
|
|
342
|
+
|
|
343
|
+
## Managed database-backed views
|
|
344
|
+
|
|
345
|
+
Managed views render authorized records from a table through the existing host
|
|
346
|
+
bridge. They accept configuration rather than row arrays, GraphQL documents, or
|
|
347
|
+
render callbacks. The platform validates preset fields against the current
|
|
348
|
+
readable schema and keeps authorization, filtering, ordering, paging, and field
|
|
349
|
+
formatting in its existing record path.
|
|
350
|
+
|
|
351
|
+
The package exports `ListView`, `DataGrid`, and `Board` from
|
|
352
|
+
`@simpleplatform/ui-kit/react`. Their contracts are exported from
|
|
353
|
+
`@simpleplatform/ui-kit/contracts`.
|
|
354
|
+
|
|
355
|
+
`ListView` uses the same tile preset for grid cards in a wide container and
|
|
356
|
+
continuous rows in a narrow container. The layout follows the component's
|
|
357
|
+
container width, including when it sits in a narrow Space on a wide screen.
|
|
358
|
+
|
|
359
|
+
Inbox remains a platform Custom View preset and renderer. Spaces do not expose
|
|
360
|
+
an `InboxView`; they can use List, DataGrid, and Board while platform routes
|
|
361
|
+
continue to use Inbox.
|
|
362
|
+
|
|
363
|
+
List, DataGrid, and Board provide their platform-owned filter controls.
|
|
364
|
+
Standalone `ConditionBuilder` and `ConditionSummary` components are not public
|
|
365
|
+
Space APIs yet.
|
|
366
|
+
|
|
367
|
+
### Maintaining the shared contract fixtures
|
|
368
|
+
|
|
369
|
+
`test/fixtures/record-view-contract-v1.json` in this package is the authority;
|
|
370
|
+
the platform keeps a tracked mirror so each repo can run its tests independently.
|
|
371
|
+
Edit the authority, then run these commands from the SDK repo with both checkouts available:
|
|
372
|
+
|
|
373
|
+
```sh
|
|
374
|
+
node scripts/sync-record-view-contract.mjs ../simple
|
|
375
|
+
node scripts/sync-record-view-contract.mjs ../simple --check
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
Commit both copies together. The corpus covers Board lane paging and numeric summaries.
|
|
379
|
+
|
|
380
|
+
Public TypeScript names omit a version suffix. The saved `views` preset-set
|
|
381
|
+
envelope and tile layouts use `version: 1`. Preset and controlled filters require
|
|
382
|
+
the native `RecordWhere` object accepted by GraphQL; shorthand and predicate-tree
|
|
383
|
+
filters are rejected without conversion. The UI Kit checks shape, and the
|
|
384
|
+
platform validates fields and operators. General query and URL shorthand
|
|
385
|
+
normalization remains separate from the saved preset contract.
|
|
386
|
+
|
|
387
|
+
```tsx
|
|
388
|
+
import type { SimpleClient } from '@simpleplatform/sdk/space'
|
|
389
|
+
import type {
|
|
390
|
+
ListPreset,
|
|
391
|
+
RecordWhere,
|
|
392
|
+
TableRecordSource,
|
|
393
|
+
ViewItemReference,
|
|
394
|
+
} from '@simpleplatform/ui-kit/contracts'
|
|
395
|
+
import { ListView } from '@simpleplatform/ui-kit/react'
|
|
396
|
+
import { useState } from 'react'
|
|
397
|
+
|
|
398
|
+
const source: TableRecordSource = {
|
|
399
|
+
appId: 'com.example.crm',
|
|
400
|
+
kind: 'table',
|
|
401
|
+
tableId: 'TBL000123',
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
const preset: ListPreset = {
|
|
405
|
+
config: {
|
|
406
|
+
tile: {
|
|
407
|
+
presentation: 'standard',
|
|
408
|
+
subtitleFieldNames: ['status'],
|
|
409
|
+
titleFieldName: 'title',
|
|
410
|
+
version: 1,
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
id: 'open-tickets',
|
|
414
|
+
kind: 'list',
|
|
415
|
+
title: 'Open tickets',
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export function TicketList({ client, openTicket }: {
|
|
419
|
+
client: SimpleClient
|
|
420
|
+
openTicket: (reference: ViewItemReference) => void
|
|
421
|
+
}) {
|
|
422
|
+
const [filter, setFilter] = useState<RecordWhere | undefined>(preset.filter)
|
|
423
|
+
|
|
424
|
+
return (
|
|
425
|
+
<ListView
|
|
426
|
+
client={client}
|
|
427
|
+
source={source}
|
|
428
|
+
preset={preset}
|
|
429
|
+
filter={filter}
|
|
430
|
+
onFilterChange={setFilter}
|
|
431
|
+
onItemOpen={openTicket}
|
|
432
|
+
/>
|
|
433
|
+
)
|
|
434
|
+
}
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
Import `ViewItemReference` from `@simpleplatform/ui-kit/contracts` for the
|
|
438
|
+
callback type in this example. The source is `{ kind: 'table', appId, tableId }`;
|
|
439
|
+
`tableId` is the platform table metadata record ID, not the logical SCL table
|
|
440
|
+
name. The platform resolves it and verifies app ownership before using its
|
|
441
|
+
existing record hooks. Presets are versioned and discriminated as `list`, `table`,
|
|
442
|
+
`board`, or `inbox`; Inbox is platform-only. Fields use logical SCL names. `onItemOpen` receives only
|
|
443
|
+
`{ kind: 'record', appId, tableName, recordId }`. Navigation and record actions
|
|
444
|
+
stay with the Space. Controlled views pass both `filter` and
|
|
445
|
+
`onFilterChange`; otherwise the preset's filter initializes view state.
|
|
446
|
+
|
|
447
|
+
The view's built-in controls read and write the native SimpleDB `RecordWhere`
|
|
448
|
+
shape used by preset JSON, URL state, dashboards, and GraphQL variables. Flat
|
|
449
|
+
filters use the quick field picker; grouped, negated, repeated-field, or
|
|
450
|
+
multi-operator filters open the advanced Rule Outline directly. The Space may
|
|
451
|
+
control that same state with `filter` and `onFilterChange`; editor components
|
|
452
|
+
remain platform-owned. Preset icons are derived from `kind`. Tile visuals use provider-qualified IDs from
|
|
453
|
+
`RECORD_VIEW_ICON_IDS`, such as `lucide:star`.
|
|
454
|
+
QuickFilterBar is excluded from the first phase.
|
|
455
|
+
`DataGrid` mounts the existing platform TanStack GenericTable, including its
|
|
456
|
+
column configuration, sorting/resizing/pinning, cell menus, filter dialog,
|
|
457
|
+
refresh, page export and pager. Narrow containers use platform tiles with the
|
|
458
|
+
same fetched rows and sorting state. With no tile configured, the first visible
|
|
459
|
+
selected column becomes the labeled title and every other selected column is
|
|
460
|
+
shown as a labeled value. A configured tile emphasizes its bound fields and
|
|
461
|
+
appends the remaining visible columns once. Filter changes preserve user sort;
|
|
462
|
+
changed sort defaults apply intentionally. `onItemOpen` handles record and reference
|
|
463
|
+
opens; omitting it makes navigation unavailable. Route-only New/custom actions
|
|
464
|
+
are supplied by the platform route host.
|
|
465
|
+
|
|
466
|
+
Configured email tiles also retain the remaining selected DataGrid columns as
|
|
467
|
+
labeled values. Ordinary List/Inbox email tiles keep their sender/date,
|
|
468
|
+
subject, and preview layout.
|
|
469
|
+
|
|
470
|
+
Simple and advanced filters reject numeric input that JavaScript cannot
|
|
471
|
+
represent without changing its value, including unsafe integers in numeric
|
|
472
|
+
`_in` and `_nin` lists; invalid text stays visible for correction. JSON key
|
|
473
|
+
operands remain strings, including keys such as `"123"` or `"true"`.
|
|
474
|
+
Nested AND/OR groups, `_not`, and multi-value operands retain their meaning when
|
|
475
|
+
opening the advanced editor or adding a simple field filter. The editor keeps
|
|
476
|
+
valid native clauses it cannot edit as read-only rules; users can remove a rule
|
|
477
|
+
or group explicitly. It does not silently drop clauses.
|
|
478
|
+
|
|
479
|
+
`Board` may call `onMoveRequest`; it does not persist a move by itself.
|
|
480
|
+
Use `client.records.open()`, check `update()` and `submit()` results, and reject
|
|
481
|
+
the callback when the managed workflow fails. Lanes must use an enum field.
|
|
482
|
+
Narrow boards load cards only for the selected lane and keep each lane's Show
|
|
483
|
+
more limit when switching. Lane totals are queried independently for all lanes,
|
|
484
|
+
even when no numeric summaries are configured. Pending totals show a loading
|
|
485
|
+
indicator; failed totals show unavailable rather than zero. At narrow widths
|
|
486
|
+
the Board uses horizontally scrollable lane tabs, a full-width vertical record
|
|
487
|
+
stack, and a per-card **Move** action listing every destination lane. Wider
|
|
488
|
+
boards retain multi-lane drag-and-drop. Configure the per-lane batch with
|
|
489
|
+
`lanePageSize`; it defaults to 50, matching List and DataGrid. Optional `summaries` display up to
|
|
490
|
+
three database-backed numeric aggregates over all matching authorized records
|
|
491
|
+
in each lane after its preset and active filters, using `sum`, `average`,
|
|
492
|
+
`min`, or `max`. The platform validates summary fields against the table
|
|
493
|
+
schema. Set preset `orderBy` to sort cards within each lane by up to five fields;
|
|
494
|
+
`laneOrder` controls the lane order.
|
|
495
|
+
|
|
496
|
+
```ts
|
|
497
|
+
import type { BoardPreset } from '@simpleplatform/ui-kit/contracts'
|
|
498
|
+
|
|
499
|
+
const boardPreset: BoardPreset = {
|
|
500
|
+
config: {
|
|
501
|
+
laneFieldName: 'stage',
|
|
502
|
+
lanePageSize: 50,
|
|
503
|
+
summaries: [
|
|
504
|
+
{ fieldName: 'amount', operation: 'sum' },
|
|
505
|
+
{ fieldName: 'amount', operation: 'average' },
|
|
506
|
+
],
|
|
507
|
+
tile: { presentation: 'standard', titleFieldName: 'name', version: 1 },
|
|
508
|
+
},
|
|
509
|
+
id: 'opportunities',
|
|
510
|
+
kind: 'board',
|
|
511
|
+
orderBy: [{ direction: 'desc', fieldName: 'amount' }],
|
|
512
|
+
title: 'Opportunities',
|
|
513
|
+
}
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
Preset selectors on the platform and fixture show the family icon beside the
|
|
517
|
+
title. On a platform Custom View route, the most recently selected preset is
|
|
518
|
+
stored in local browser preferences per application and Custom View. An
|
|
519
|
+
explicit `?preset=<id>` URL selection takes precedence; if a remembered preset
|
|
520
|
+
was removed, the platform uses `defaultPresetId`. A Space receives an explicit
|
|
521
|
+
`preset` prop and owns preset selection state.
|
|
522
|
+
|
|
523
|
+
Space tiles use the same `RecordTileLayout` in List/Table/Board `config.tile`.
|
|
524
|
+
The platform Inbox uses `config.listTile`. Its `detail` defaults to `fields`,
|
|
525
|
+
which requires `detailFieldNames`; `detail: 'record'` renders the platform
|
|
526
|
+
RecordPage and does not accept `detailFieldNames`. The three tile presentations
|
|
527
|
+
are `standard`, `media`, and `message`. Use `standard` for ordinary records,
|
|
528
|
+
people, settings, and enterprise items; `media` reserves an image area;
|
|
529
|
+
`message` arranges sender, received time, subject, and preview. Message tiles use
|
|
530
|
+
`titleFieldName` for the subject, `eyebrowFieldName` for the sender,
|
|
531
|
+
`subtitleFieldNames` for the preview, and `trailingFieldName` for the received
|
|
532
|
+
date/time. List/Inbox message tiles omit generic badges, detail fields, and
|
|
533
|
+
visuals; DataGrid retains selected fields as labeled values. Bind
|
|
534
|
+
title/subtitle/eyebrow/trailing, badge/detail fields, a safe catalog icon, an
|
|
535
|
+
enum icon map, or an authorized document image. Values stay inline and safe inside the parent open action;
|
|
536
|
+
references request only the target ID/display field and fall back to the ID
|
|
537
|
+
when unavailable. Arbitrary HTML/CSS, image URLs, row arrays and render callbacks
|
|
538
|
+
are not supported.
|
|
539
|
+
|
|
540
|
+
`InboxPreset` describes platform Custom View configuration only. The
|
|
541
|
+
Space UI Kit does not export an Inbox renderer.
|
|
542
|
+
|
|
543
|
+
The Space collection components do not expose an imperative ref. Space code
|
|
544
|
+
owns source, preset, and navigation state; managed List, DataGrid, and Board do
|
|
545
|
+
not host an editable record-detail session.
|
|
546
|
+
|
|
547
|
+
Public components take an explicit preset. To reuse a saved Custom View, load
|
|
548
|
+
its active List-type record with the existing SDK query, verify target table,
|
|
549
|
+
call `validateViewPresetSet(customization.views)`, and choose a List, Table, or
|
|
550
|
+
Board preset. Skip platform-only Inbox presets. Initialize controlled filters from `selected.filter` when
|
|
551
|
+
desired; controlled `filter={undefined}` deliberately means unfiltered. The
|
|
552
|
+
fixture uses this approach rather than separate hardcoded presets.
|
|
553
|
+
|
|
554
|
+
Contract bounds are 20 presets, 80-character IDs, 120-character titles, 200-character
|
|
555
|
+
unpadded field names, 40 fields per column/detail/badge array, 5 sort fields,
|
|
556
|
+
80–800px column widths, and 20 total Board lanes with batches of at most 50
|
|
557
|
+
records per lane. Enum icon maps allow 100 unpadded nonempty values of at most 200
|
|
558
|
+
characters and only exported catalog icons. The SDK uses the `RecordWhere` type
|
|
559
|
+
from `@simpleplatform/sdk/graphql` and passes filter objects to the host unchanged.
|
|
560
|
+
The platform owns runtime structural, field, and operator validation before a
|
|
561
|
+
query runs; field/operator and operand metadata is generated from the SimpleDB
|
|
562
|
+
filter dialect. Container width selects the responsive DataGrid presentation; it is
|
|
563
|
+
not configurable in the preset.
|
|
564
|
+
|
|
565
|
+
The `dev.simple.ui_fixtures` Space API Demo includes a database-backed tile
|
|
566
|
+
playground: saved presets, Apply/Reset tile JSON, List/Table/Board previews,
|
|
567
|
+
phone/full widths, simple/advanced filters, and generated component code. Its
|
|
568
|
+
14 scenario families are seeded database records; preview JSON supplies layout
|
|
569
|
+
only. Final deployed visual/device acceptance for these additions is tracked
|
|
570
|
+
separately from passing unit/package checks.
|
|
571
|
+
|
|
572
|
+
See `simple/architecture_history/space-views.md` for the current platform
|
|
573
|
+
contract, implementation status, verification, and release gates. Future view
|
|
574
|
+
API designs are in `simple/architecture_history/space-view-roadmap.md`.
|
|
575
|
+
This API is pre-release.
|
|
331
576
|
|
|
332
577
|
## Build a custom form instead
|
|
333
578
|
|
|
@@ -510,10 +755,12 @@ the `onChange` callback once, deduplicating the response and event.
|
|
|
510
755
|
|
|
511
756
|
## Multiple records
|
|
512
757
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
758
|
+
`simple.records.current()` returns the route-owned primary record;
|
|
759
|
+
`simple.records.open({ appId, tableName, recordId })` opens an independently
|
|
760
|
+
authorized session for another record. Opened sessions live until the Space
|
|
761
|
+
connection ends. Each handle submits independently; the SDK does not provide an
|
|
762
|
+
atomic multi-record transaction or infer save order from the forms on screen.
|
|
763
|
+
A header action never silently submits every visible form.
|
|
517
764
|
|
|
518
765
|
For all-or-nothing multi-record workflows, use a server-side transactional
|
|
519
766
|
Action when that capability is available; sequential browser submits cannot
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { SIMPLE_STATUS_BADGE_TONES, type SimpleStatusBadgeTone, } from './status-badge.js';
|
|
2
|
+
export { isBoardPresetV1 as isBoardPreset, isControlledFilterPropsV1 as isControlledFilterProps, isDataGridPresetV1 as isDataGridPreset, isInboxPresetV1 as isInboxPreset, isListPresetV1 as isListPreset, isRecordReferenceV1 as isRecordReference, isRecordSortV1 as isRecordSort, isRecordSourceV1 as isRecordSource, isRecordTileLayoutV1 as isRecordTileLayout, isRecordViewPresetV1 as isRecordViewPreset, isViewItemReferenceV1 as isViewItemReference, isViewPresetSetV1 as isViewPresetSet, RECORD_TILE_PRESENTATIONS_V1 as RECORD_TILE_PRESENTATIONS, RECORD_VIEW_ICON_IDS_V1 as RECORD_VIEW_ICON_IDS, RECORD_VIEW_KINDS_V1 as RECORD_VIEW_KINDS, RecordViewContractError, validateBoardPresetV1 as validateBoardPreset, validateControlledFilterPropsV1 as validateControlledFilterProps, validateDataGridPresetV1 as validateDataGridPreset, validateInboxPresetV1 as validateInboxPreset, validateListPresetV1 as validateListPreset, validateRecordReferenceV1 as validateRecordReference, validateRecordSortV1 as validateRecordSort, validateRecordSourceV1 as validateRecordSource, validateRecordTileLayoutV1 as validateRecordTileLayout, validateRecordViewPresetV1 as validateRecordViewPreset, validateTableRecordSourceV1 as validateTableRecordSource, validateViewItemReferenceV1 as validateViewItemReference, validateViewPresetSetV1 as validateViewPresetSet, } from './views.js';
|
|
3
|
+
export type { BoardMoveRequestV1 as BoardMoveRequest, BoardPresetV1 as BoardPreset, BoardProps, ControlledFilterPropsV1 as ControlledFilterProps, DataGridPresetV1 as DataGridPreset, DataGridProps, InboxPresetV1 as InboxPreset, ListPresetV1 as ListPreset, ListViewProps, RecordReferenceV1 as RecordReference, RecordSortV1 as RecordSort, RecordSourceV1 as RecordSource, RecordTileLayoutV1 as RecordTileLayout, RecordTilePresentationV1 as RecordTilePresentation, RecordTileVisualV1 as RecordTileVisual, RecordViewIconIdV1 as RecordViewIconId, RecordViewKindV1 as RecordViewKind, RecordViewPresetV1 as RecordViewPreset, RecordViewPresetBaseV1 as RecordViewPresetBase, RecordViewPropsV1 as RecordViewProps, RecordViewSummaryV1 as RecordViewSummary, RecordWhere, TableRecordSourceV1 as TableRecordSource, ViewItemReferenceV1 as ViewItemReference, ViewPresetSetV1 as ViewPresetSet, } from './views.js';
|
|
2
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.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1B,cAAc,IAAI,YAAY,EAC9B,kBAAkB,IAAI,gBAAgB,EACtC,wBAAwB,IAAI,sBAAsB,EAClD,kBAAkB,IAAI,gBAAgB,EACtC,kBAAkB,IAAI,gBAAgB,EACtC,gBAAgB,IAAI,cAAc,EAClC,kBAAkB,IAAI,gBAAgB,EACtC,sBAAsB,IAAI,oBAAoB,EAC9C,iBAAiB,IAAI,eAAe,EACpC,mBAAmB,IAAI,iBAAiB,EACxC,WAAW,EACX,mBAAmB,IAAI,iBAAiB,EACxC,mBAAmB,IAAI,iBAAiB,EACxC,eAAe,IAAI,aAAa,GACjC,MAAM,YAAY,CAAA"}
|
package/dist/contracts/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export { SIMPLE_STATUS_BADGE_TONES, } from './status-badge.js';
|
|
2
|
+
export { isBoardPresetV1 as isBoardPreset, isControlledFilterPropsV1 as isControlledFilterProps, isDataGridPresetV1 as isDataGridPreset, isInboxPresetV1 as isInboxPreset, isListPresetV1 as isListPreset, isRecordReferenceV1 as isRecordReference, isRecordSortV1 as isRecordSort, isRecordSourceV1 as isRecordSource, isRecordTileLayoutV1 as isRecordTileLayout, isRecordViewPresetV1 as isRecordViewPreset, isViewItemReferenceV1 as isViewItemReference, isViewPresetSetV1 as isViewPresetSet, RECORD_TILE_PRESENTATIONS_V1 as RECORD_TILE_PRESENTATIONS, RECORD_VIEW_ICON_IDS_V1 as RECORD_VIEW_ICON_IDS, RECORD_VIEW_KINDS_V1 as RECORD_VIEW_KINDS, RecordViewContractError, validateBoardPresetV1 as validateBoardPreset, validateControlledFilterPropsV1 as validateControlledFilterProps, validateDataGridPresetV1 as validateDataGridPreset, validateInboxPresetV1 as validateInboxPreset, validateListPresetV1 as validateListPreset, validateRecordReferenceV1 as validateRecordReference, validateRecordSortV1 as validateRecordSort, validateRecordSourceV1 as validateRecordSource, validateRecordTileLayoutV1 as validateRecordTileLayout, validateRecordViewPresetV1 as validateRecordViewPreset, validateTableRecordSourceV1 as validateTableRecordSource, validateViewItemReferenceV1 as validateViewItemReference, validateViewPresetSetV1 as validateViewPresetSet, } from './views.js';
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { RecordWhere } from '@simpleplatform/sdk/graphql';
|
|
2
|
+
import type { SimpleClient } from '@simpleplatform/sdk/space';
|
|
3
|
+
export type { RecordWhere } from '@simpleplatform/sdk/graphql';
|
|
4
|
+
export interface TableRecordSourceV1 {
|
|
5
|
+
appId: string;
|
|
6
|
+
kind: 'table';
|
|
7
|
+
tableId: string;
|
|
8
|
+
}
|
|
9
|
+
export type RecordSourceV1 = TableRecordSourceV1;
|
|
10
|
+
export interface RecordReferenceV1 {
|
|
11
|
+
appId: string;
|
|
12
|
+
recordId: string;
|
|
13
|
+
tableName: string;
|
|
14
|
+
}
|
|
15
|
+
export type ViewItemReferenceV1 = RecordReferenceV1 & {
|
|
16
|
+
kind: 'record';
|
|
17
|
+
};
|
|
18
|
+
export declare const RECORD_VIEW_ICON_IDS_V1: readonly ["lucide:circle-alert", "lucide:arrow-up-right", "lucide:columns-3", "lucide:box", "lucide:calendar-days", "lucide:check", "lucide:clock-3", "lucide:file", "lucide:circle-question-mark", "lucide:inbox", "lucide:layout-grid", "lucide:list", "lucide:mail", "lucide:settings", "lucide:star", "lucide:table", "lucide:tag", "lucide:user-round", "lucide:video"];
|
|
19
|
+
export type RecordViewIconIdV1 = typeof RECORD_VIEW_ICON_IDS_V1[number];
|
|
20
|
+
export interface RecordSortV1 {
|
|
21
|
+
direction: 'asc' | 'desc';
|
|
22
|
+
fieldName: string;
|
|
23
|
+
}
|
|
24
|
+
export interface RecordViewSummaryV1 {
|
|
25
|
+
fieldName: string;
|
|
26
|
+
operation: 'average' | 'max' | 'min' | 'sum';
|
|
27
|
+
}
|
|
28
|
+
export declare const RECORD_TILE_PRESENTATIONS_V1: readonly ["standard", "media", "message"];
|
|
29
|
+
export type RecordTilePresentationV1 = typeof RECORD_TILE_PRESENTATIONS_V1[number];
|
|
30
|
+
export type RecordTileVisualV1 = {
|
|
31
|
+
altFieldName?: string;
|
|
32
|
+
fieldName: string;
|
|
33
|
+
fit?: 'contain' | 'cover';
|
|
34
|
+
kind: 'image';
|
|
35
|
+
} | {
|
|
36
|
+
altFieldName?: string;
|
|
37
|
+
fieldName: string;
|
|
38
|
+
kind: 'avatar';
|
|
39
|
+
} | {
|
|
40
|
+
iconId: RecordViewIconIdV1;
|
|
41
|
+
kind: 'icon';
|
|
42
|
+
} | {
|
|
43
|
+
fallbackIconId: RecordViewIconIdV1;
|
|
44
|
+
fieldName: string;
|
|
45
|
+
kind: 'enum-icon';
|
|
46
|
+
};
|
|
47
|
+
export interface RecordTileLayoutV1 {
|
|
48
|
+
badgeFieldNames?: string[];
|
|
49
|
+
badgeStyle?: 'filled' | 'outline';
|
|
50
|
+
detailFieldNames?: string[];
|
|
51
|
+
eyebrowFieldName?: string;
|
|
52
|
+
presentation: RecordTilePresentationV1;
|
|
53
|
+
subtitleFieldNames?: string[];
|
|
54
|
+
titleFieldName: string;
|
|
55
|
+
trailingFieldName?: string;
|
|
56
|
+
version: 1;
|
|
57
|
+
visual?: RecordTileVisualV1;
|
|
58
|
+
}
|
|
59
|
+
export declare const RECORD_VIEW_KINDS_V1: readonly ["board", "inbox", "list", "table"];
|
|
60
|
+
export type RecordViewKindV1 = typeof RECORD_VIEW_KINDS_V1[number];
|
|
61
|
+
export interface RecordViewPresetBaseV1 {
|
|
62
|
+
/** Native GraphQL where value; the platform validates it against the source before querying. */
|
|
63
|
+
filter?: RecordWhere;
|
|
64
|
+
id: string;
|
|
65
|
+
orderBy?: RecordSortV1[];
|
|
66
|
+
title: string;
|
|
67
|
+
}
|
|
68
|
+
export type ListPresetV1 = RecordViewPresetBaseV1 & {
|
|
69
|
+
config: {
|
|
70
|
+
tile: RecordTileLayoutV1;
|
|
71
|
+
};
|
|
72
|
+
kind: 'list';
|
|
73
|
+
};
|
|
74
|
+
export type DataGridPresetV1 = RecordViewPresetBaseV1 & {
|
|
75
|
+
config: {
|
|
76
|
+
columns: Array<{
|
|
77
|
+
fieldName: string;
|
|
78
|
+
width?: number;
|
|
79
|
+
}>;
|
|
80
|
+
tile?: RecordTileLayoutV1;
|
|
81
|
+
};
|
|
82
|
+
kind: 'table';
|
|
83
|
+
};
|
|
84
|
+
export type BoardPresetV1 = RecordViewPresetBaseV1 & {
|
|
85
|
+
config: {
|
|
86
|
+
laneFieldName: string;
|
|
87
|
+
lanePageSize?: number;
|
|
88
|
+
laneOrder?: string[];
|
|
89
|
+
summaries?: RecordViewSummaryV1[];
|
|
90
|
+
tile: RecordTileLayoutV1;
|
|
91
|
+
};
|
|
92
|
+
kind: 'board';
|
|
93
|
+
};
|
|
94
|
+
export type InboxPresetV1 = RecordViewPresetBaseV1 & {
|
|
95
|
+
kind: 'inbox';
|
|
96
|
+
config: {
|
|
97
|
+
detail: 'record';
|
|
98
|
+
detailFieldNames?: never;
|
|
99
|
+
listTile: RecordTileLayoutV1;
|
|
100
|
+
} | {
|
|
101
|
+
detail?: 'fields';
|
|
102
|
+
detailFieldNames: string[];
|
|
103
|
+
listTile: RecordTileLayoutV1;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export type RecordViewPresetV1 = DataGridPresetV1 | InboxPresetV1 | BoardPresetV1 | ListPresetV1;
|
|
107
|
+
export interface ViewPresetSetV1 {
|
|
108
|
+
defaultPresetId: string;
|
|
109
|
+
presets: RecordViewPresetV1[];
|
|
110
|
+
version: 1;
|
|
111
|
+
}
|
|
112
|
+
export type ControlledFilterPropsV1 = {
|
|
113
|
+
filter?: never;
|
|
114
|
+
onFilterChange?: never;
|
|
115
|
+
} | {
|
|
116
|
+
filter: RecordWhere | undefined;
|
|
117
|
+
onFilterChange: (filter: RecordWhere | undefined) => void;
|
|
118
|
+
};
|
|
119
|
+
export interface RecordViewPropsV1<TPreset extends RecordViewPresetV1> {
|
|
120
|
+
client: SimpleClient;
|
|
121
|
+
onItemOpen?: (reference: ViewItemReferenceV1) => void;
|
|
122
|
+
preset: TPreset;
|
|
123
|
+
source: RecordSourceV1;
|
|
124
|
+
}
|
|
125
|
+
export type ListViewProps = RecordViewPropsV1<ListPresetV1> & ControlledFilterPropsV1;
|
|
126
|
+
export type DataGridProps = RecordViewPropsV1<DataGridPresetV1> & ControlledFilterPropsV1;
|
|
127
|
+
export interface BoardMoveRequestV1 {
|
|
128
|
+
from: string | null;
|
|
129
|
+
item: ViewItemReferenceV1;
|
|
130
|
+
laneFieldName: string;
|
|
131
|
+
to: string | null;
|
|
132
|
+
}
|
|
133
|
+
export type BoardProps = RecordViewPropsV1<BoardPresetV1> & ControlledFilterPropsV1 & {
|
|
134
|
+
onMoveRequest?: (request: BoardMoveRequestV1) => Promise<void>;
|
|
135
|
+
};
|
|
136
|
+
export declare class RecordViewContractError extends Error {
|
|
137
|
+
constructor(message: string);
|
|
138
|
+
}
|
|
139
|
+
export declare function validateTableRecordSourceV1(value: unknown): TableRecordSourceV1;
|
|
140
|
+
export declare function validateRecordSourceV1(value: unknown): RecordSourceV1;
|
|
141
|
+
export declare function isRecordSourceV1(value: unknown): value is RecordSourceV1;
|
|
142
|
+
export declare function validateRecordReferenceV1(value: unknown): RecordReferenceV1;
|
|
143
|
+
export declare function isRecordReferenceV1(value: unknown): value is RecordReferenceV1;
|
|
144
|
+
export declare function validateViewItemReferenceV1(value: unknown): ViewItemReferenceV1;
|
|
145
|
+
export declare function isViewItemReferenceV1(value: unknown): value is ViewItemReferenceV1;
|
|
146
|
+
export declare function validateRecordSortV1(value: unknown): RecordSortV1;
|
|
147
|
+
export declare function isRecordSortV1(value: unknown): value is RecordSortV1;
|
|
148
|
+
export declare function validateRecordTileLayoutV1(value: unknown): RecordTileLayoutV1;
|
|
149
|
+
export declare function isRecordTileLayoutV1(value: unknown): value is RecordTileLayoutV1;
|
|
150
|
+
export declare function validateListPresetV1(value: unknown): ListPresetV1;
|
|
151
|
+
export declare function isListPresetV1(value: unknown): value is ListPresetV1;
|
|
152
|
+
export declare function validateDataGridPresetV1(value: unknown): DataGridPresetV1;
|
|
153
|
+
export declare function isDataGridPresetV1(value: unknown): value is DataGridPresetV1;
|
|
154
|
+
export declare function validateBoardPresetV1(value: unknown): BoardPresetV1;
|
|
155
|
+
export declare function isBoardPresetV1(value: unknown): value is BoardPresetV1;
|
|
156
|
+
export declare function validateInboxPresetV1(value: unknown): InboxPresetV1;
|
|
157
|
+
export declare function isInboxPresetV1(value: unknown): value is InboxPresetV1;
|
|
158
|
+
export declare function validateRecordViewPresetV1(value: unknown): RecordViewPresetV1;
|
|
159
|
+
export declare function isRecordViewPresetV1(value: unknown): value is RecordViewPresetV1;
|
|
160
|
+
export declare function validateViewPresetSetV1(value: unknown): ViewPresetSetV1;
|
|
161
|
+
export declare function isViewPresetSetV1(value: unknown): value is ViewPresetSetV1;
|
|
162
|
+
export declare function validateControlledFilterPropsV1(props: unknown): ControlledFilterPropsV1;
|
|
163
|
+
export declare function isControlledFilterPropsV1(props: unknown): props is ControlledFilterPropsV1;
|
|
164
|
+
//# sourceMappingURL=views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/contracts/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAE9D,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAEhD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,mBAA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