@simpleplatform/ui-kit 0.2.1 → 0.3.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 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` and `RecordActivity` are pre-release interfaces and still require deployed
11
- browser-parity approval. Record-header actions are exposed by the companion
12
- Space SDK as `simple.ui.header`; they are not a UI Kit export.
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,14 @@ released with an explicit support policy.
19
21
  pnpm add @simpleplatform/ui-kit @simpleplatform/sdk
20
22
  ```
21
23
 
22
- The kit needs version 3 of `@simpleplatform/sdk`, and React 18.3 or 19 for its
23
- React bridges. Its peer range also accepts `0.0.0`, the number the SDK carries
24
- inside this repository, so a Space that links both packages by folder path
25
- installs without a warning.
24
+ Managed views require the SDK's private managed-view bridge. The peer and
25
+ scaffold requirement is `@simpleplatform/sdk@^4.0.0`; 4.0.0 is the first
26
+ published release with the bridge. SDK 3.2.0 was never released; SDK 3.1.0 lacks the
27
+ bridge. Publish the compatible SDK before the UI Kit; the UI Kit release check
28
+ verifies the published SDK artifact's bridge. For local review, use matching
29
+ SDK/UI Kit feature builds. React bridges support React 18.3 or 19. The `0.0.0`
30
+ peer exception supports linked workspace builds and does not prove registry
31
+ compatibility.
26
32
 
27
33
  Releases are tagged `v<version>-kit`. The package is below 1.0: a breaking
28
34
  change raises the minor, and the default range `^0.1.0` never moves onto `0.2`
@@ -121,30 +127,28 @@ with other UI that uses the platform theme; they are not component-local
121
127
  ### Runtime boundary
122
128
 
123
129
  The Simple host supplies the exact UI Runtime to the managed component bridge
124
- during the Space handshake. `<RecordForm />` and `<RecordActivity />` load it automatically; the runtime
125
- loader and URL are private implementation details, not supported Space APIs.
130
+ during the Space handshake. `RecordForm`, `RecordActivity`, and the managed
131
+ database-backed views load it automatically; the runtime loader and URL are
132
+ private implementation details, not supported Space APIs.
126
133
  Space authors should never choose or hard-code a runtime URL.
127
134
 
128
- The UI Kit reads host metadata and authorized callbacks from SDK-created record
129
- handles through a versioned symbol. Space authors use the `RecordForm` and
130
- `RecordActivity` components; there is no managed UI adapter package entry point.
135
+ `RecordForm` and `RecordActivity` use a bridge on SDK-created record handles.
136
+ Managed views take the SDK client, a table source, and a validated preset. The
137
+ public adapter entry point is `@simpleplatform/ui-kit/react`; runtime elements
138
+ and bridge metadata remain private.
131
139
 
132
140
  ### Framework support
133
141
 
134
- The managed `RecordForm` and `RecordActivity` exports are currently available only from
135
- `@simpleplatform/ui-kit/react`. Simple's renderer itself runs inside the Space
136
- iframe, so React is not an architectural requirement for customer Spaces; the
137
- current limitation is that a public framework-neutral form or activity element has not
138
- been shipped. The private runtime elements are not supported HTML APIs.
139
-
140
- The intended direction is to expose a public element from
141
- `@simpleplatform/ui-kit/elements` and make the React component a thin adapter
142
- over it. Vue, Svelte, or plain JavaScript could then pass a `RecordHandle` as an
143
- element property and use the same managed form. Until that element has a
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.
142
+ Managed `RecordForm`, `RecordActivity`, and record-view components are currently
143
+ available only from `@simpleplatform/ui-kit/react`. Simple's renderer itself runs
144
+ inside the Space iframe, so React is not an architectural requirement for customer
145
+ Spaces; no public framework-neutral managed form, activity, or view element has
146
+ shipped. Private runtime elements are not supported HTML APIs.
147
+
148
+ `StatusBadge` has a public Web Component entry. Non-React Spaces can use
149
+ `@simpleplatform/sdk/space` to build their own record and view controls with the
150
+ authorized SDK APIs. The private managed UI runtime elements are not a supported
151
+ cross-framework contract.
148
152
 
149
153
  ## RecordForm
150
154
 
@@ -237,8 +241,9 @@ Simple and are not supported extension APIs:
237
241
  - field editor registry or per-field renderer replacement;
238
242
  - RecordForm's document attachment/promotion lifecycle, reference search,
239
243
  secret decryption, and JSON-editor internals. Document upload and promotion
240
- are handled by the managed form's private host adapter; a standalone file
241
- staging API is not currently exposed to Spaces.
244
+ are handled by the managed form's private host adapter. Customer-owned
245
+ uploads can use the separate public `simple.documents.stage({ file })` API;
246
+ staging does not attach the file to a record.
242
247
  - Record Behavior scheduling and host session events.
243
248
 
244
249
  This boundary lets Simple improve complex field workflows without requiring
@@ -267,7 +272,7 @@ export function ActivityView() {
267
272
  useEffect(() => {
268
273
  let active = true
269
274
  void client
270
- .then(simple => simple.record())
275
+ .then(simple => simple.records.current())
271
276
  .then((value) => {
272
277
  if (active)
273
278
  setRecord(value)
@@ -293,9 +298,9 @@ export function ActivityView() {
293
298
  }
294
299
  ```
295
300
 
296
- | Prop | Type | Required | Purpose |
297
- | -------- | -------------- | -------- | ------------------------------------------------------------------ |
298
- | `record` | `RecordHandle` | Yes | A record handle from `simple.record()` or `simple.records.open()`. |
301
+ | Prop | Type | Required | Purpose |
302
+ | -------- | -------------- | -------- | --------------------------------------------------------------------------- |
303
+ | `record` | `RecordHandle` | Yes | A record handle from `simple.records.current()` or `simple.records.open()`. |
299
304
 
300
305
  ### Supported context and behavior
301
306
 
@@ -327,7 +332,230 @@ It receives `applicationId`, `tableId`, `recordId`, `fields`, `graphql`, and the
327
332
  existing optional decrypt capability from the private record UI bridge. The
328
333
  runtime descriptor, loader, and underlying GraphQL operations are
329
334
  private implementation details and not customer extension points. This integration
330
- is pre-release and subject to deployed browser-parity approval.
335
+ remains pre-release; local browser parity has been verified in the fixture.
336
+
337
+ ## Managed database-backed views
338
+
339
+ Managed views render authorized records from a table through the existing host
340
+ bridge. They accept configuration rather than row arrays, GraphQL documents, or
341
+ render callbacks. The platform validates preset fields against the current
342
+ readable schema and keeps authorization, filtering, ordering, paging, and field
343
+ formatting in its existing record path.
344
+
345
+ The package exports `ListView`, `DataGrid`, and `Board` from
346
+ `@simpleplatform/ui-kit/react`. Their contracts are exported from
347
+ `@simpleplatform/ui-kit/contracts`.
348
+
349
+ `ListView` uses the same tile preset for grid cards in a wide container and
350
+ continuous rows in a narrow container. The layout follows the component's
351
+ container width, including when it sits in a narrow Space on a wide screen.
352
+
353
+ Inbox remains a platform Custom View preset and renderer. Spaces do not expose
354
+ an `InboxView`; they can use List, DataGrid, and Board while platform routes
355
+ continue to use Inbox.
356
+
357
+ List, DataGrid, and Board provide their platform-owned filter controls.
358
+ Standalone `ConditionBuilder` and `ConditionSummary` components are not public
359
+ Space APIs yet.
360
+
361
+ ### Maintaining the shared contract fixtures
362
+
363
+ `test/fixtures/record-view-contract-v1.json` in this package is the authority;
364
+ the platform keeps a tracked mirror so each repo can run its tests independently.
365
+ Edit the authority, then run these commands from the SDK repo with both checkouts available:
366
+
367
+ ```sh
368
+ node scripts/sync-record-view-contract.mjs ../simple
369
+ node scripts/sync-record-view-contract.mjs ../simple --check
370
+ ```
371
+
372
+ Commit both copies together. The corpus covers legacy Board page-size normalization
373
+ and current Show more with numeric summaries.
374
+
375
+ Public TypeScript names omit a version suffix. The saved `views` preset-set
376
+ envelope, filter expressions, and tile layouts retain their `version: 1` fields.
377
+
378
+ ```tsx
379
+ import type { SimpleClient } from '@simpleplatform/sdk/space'
380
+ import type {
381
+ FilterExpression,
382
+ ListPreset,
383
+ TableRecordSource,
384
+ ViewItemReference,
385
+ } from '@simpleplatform/ui-kit/contracts'
386
+ import { ListView } from '@simpleplatform/ui-kit/react'
387
+ import { useState } from 'react'
388
+
389
+ const source: TableRecordSource = {
390
+ appId: 'com.example.crm',
391
+ kind: 'table',
392
+ tableId: 'TBL000123',
393
+ }
394
+
395
+ const preset: ListPreset = {
396
+ config: {
397
+ tile: {
398
+ presentation: 'row',
399
+ subtitleFieldName: 'status',
400
+ titleFieldName: 'title',
401
+ version: 1,
402
+ },
403
+ },
404
+ id: 'open-tickets',
405
+ kind: 'list',
406
+ title: 'Open tickets',
407
+ }
408
+
409
+ export function TicketList({ client, openTicket }: {
410
+ client: SimpleClient
411
+ openTicket: (reference: ViewItemReference) => void
412
+ }) {
413
+ const [filter, setFilter] = useState<FilterExpression | undefined>(preset.filter)
414
+
415
+ return (
416
+ <ListView
417
+ client={client}
418
+ source={source}
419
+ preset={preset}
420
+ filter={filter}
421
+ onFilterChange={setFilter}
422
+ onItemOpen={openTicket}
423
+ />
424
+ )
425
+ }
426
+ ```
427
+
428
+ Import `ViewItemReference` from `@simpleplatform/ui-kit/contracts` for the
429
+ callback type in this example. The source is `{ kind: 'table', appId, tableId }`;
430
+ `tableId` is the platform table metadata record ID, not the logical SCL table
431
+ name. The platform resolves it and verifies app ownership before using its
432
+ existing record hooks. Presets are versioned and discriminated as `list`, `table`,
433
+ `board`, or `inbox`; Inbox is platform-only. Fields use logical SCL names. `onItemOpen` receives only
434
+ `{ kind: 'record', appId, tableName, recordId }`. Navigation and record actions
435
+ stay with the Space. Controlled views pass both `filter` and
436
+ `onFilterChange`; otherwise the preset's filter initializes view state.
437
+
438
+ The view's built-in filter controls share the versioned `FilterExpression`
439
+ with saved preset filters. A Space may control that view state with `filter`
440
+ and `onFilterChange`; filter-builder components remain platform-owned. Preset
441
+ icons are derived from `kind`. Tile visuals use provider-qualified IDs from
442
+ `RECORD_VIEW_ICON_IDS`, such as `lucide:star`.
443
+ QuickFilterBar is excluded from the first phase.
444
+ `DataGrid` mounts the existing platform TanStack GenericTable, including its
445
+ column configuration, sorting/resizing/pinning, cell menus, filter dialog,
446
+ refresh, page export and pager. Narrow containers use platform tiles with the
447
+ same fetched rows and sorting state. With no tile configured, the first visible
448
+ selected column becomes the labeled title and every other selected column is
449
+ shown as a labeled value. A configured tile emphasizes its bound fields and
450
+ appends the remaining visible columns once. Filter changes preserve user sort;
451
+ changed sort defaults apply intentionally. `onItemOpen` handles record and reference
452
+ opens; omitting it makes navigation unavailable. Route-only New/custom actions
453
+ are supplied by the platform route host.
454
+
455
+ Configured email tiles also retain the remaining selected DataGrid columns as
456
+ labeled values. Ordinary List/Inbox email tiles keep their sender/date,
457
+ subject, and preview layout.
458
+
459
+ Simple and advanced filters reject numeric input that JavaScript cannot
460
+ represent without changing its value; invalid text stays visible for correction.
461
+ JSON key operands remain strings, including keys such as `"123"` or `"true"`.
462
+ Nested AND/OR groups and multi-value operands retain their complete meaning
463
+ when opening the advanced editor or adding a simple field filter.
464
+
465
+ `Board` may call `onMoveRequest`; it does not persist a move by itself.
466
+ Use `client.records.open()`, check `update()` and `submit()` results, and reject
467
+ the callback when the managed workflow fails. Lanes must use an enum field.
468
+ Narrow boards load cards only for the selected lane and keep each lane's Show
469
+ more limit when switching. Lane totals are queried independently for all lanes,
470
+ even when no numeric summaries are configured. Pending totals show a loading
471
+ indicator; failed totals show unavailable rather than zero. At narrow widths
472
+ the Board uses horizontally scrollable lane tabs, a full-width vertical record
473
+ stack, and a per-card **Move** action listing every destination lane. Wider
474
+ boards retain multi-lane drag-and-drop. Configure the per-lane batch with
475
+ `lanePageSize`; it defaults to 50, matching List and DataGrid. Optional `summaries` display up to
476
+ three database-backed numeric aggregates over all matching authorized records
477
+ in each lane after its preset and active filters, using `sum`, `average`,
478
+ `min`, or `max`. The platform validates summary fields against the table
479
+ schema. Set preset `orderBy` to sort cards within each lane by up to five fields;
480
+ `laneOrder` controls the lane order.
481
+
482
+ ```ts
483
+ import type { BoardPreset } from '@simpleplatform/ui-kit/contracts'
484
+
485
+ const boardPreset: BoardPreset = {
486
+ config: {
487
+ laneFieldName: 'stage',
488
+ lanePageSize: 50,
489
+ summaries: [
490
+ { fieldName: 'amount', operation: 'sum' },
491
+ { fieldName: 'amount', operation: 'average' },
492
+ ],
493
+ tile: { presentation: 'row', titleFieldName: 'name', version: 1 },
494
+ },
495
+ id: 'opportunities',
496
+ kind: 'board',
497
+ orderBy: [{ direction: 'desc', fieldName: 'amount' }],
498
+ title: 'Opportunities',
499
+ }
500
+ ```
501
+
502
+ Preset selectors on the platform and fixture show the family icon beside the
503
+ title. On a platform Custom View route, the most recently selected preset is
504
+ stored in local browser preferences per application and Custom View. An
505
+ explicit `?preset=<id>` URL selection takes precedence; if a remembered preset
506
+ was removed, the platform uses `defaultPresetId`. A Space receives an explicit
507
+ `preset` prop and owns preset selection state.
508
+
509
+ Space tiles use the same `RecordTileLayout` in List/Table/Board `config.tile`.
510
+ The platform Inbox uses `config.listTile`. Its `detail` defaults to `fields`,
511
+ which requires `detailFieldNames`; `detail: 'record'` renders the platform
512
+ RecordPage and does not accept `detailFieldNames`. The compositions are `row`,
513
+ `person`, `media`, `editorial`, `email`, `status`, and `spotlight`. Email uses `titleFieldName` for
514
+ the subject, `eyebrowFieldName` for the sender, `subtitleFieldName` for a
515
+ two-line plain-text preview, and `trailingFieldName` for the received date/time.
516
+ The platform Inbox displays sender and relative date together above the subject.
517
+ List/Inbox email tiles omit generic badges, detail fields, and icons; DataGrid
518
+ retains selected fields as labeled values. Bind
519
+ title/subtitle/eyebrow/trailing, badge/detail fields, a safe catalog icon, an
520
+ enum icon map, or an authorized document image. Values stay inline and safe inside the parent open action;
521
+ references request only the target ID/display field and fall back to the ID
522
+ when unavailable. Arbitrary HTML/CSS, image URLs, row arrays and render callbacks
523
+ are not supported.
524
+
525
+ `InboxPreset` describes platform Custom View configuration only. The
526
+ Space UI Kit does not export an Inbox renderer.
527
+
528
+ The Space collection components do not expose an imperative ref. Space code
529
+ owns source, preset, and navigation state; managed List, DataGrid, and Board do
530
+ not host an editable record-detail session.
531
+
532
+ Public components take an explicit preset. To reuse a saved Custom View, load
533
+ its active List-type record with the existing SDK query, verify target table,
534
+ call `validateViewPresetSet(customization.views)`, and choose a List, Table, or
535
+ Board preset. Skip platform-only Inbox presets. Initialize controlled filters from `selected.filter` when
536
+ desired; controlled `filter={undefined}` deliberately means unfiltered. The
537
+ fixture uses this approach rather than separate hardcoded presets.
538
+
539
+ Contract bounds are 20 presets, 80-character IDs, 120-character titles, 200-character
540
+ unpadded field names, 40 fields per column/detail/badge array, 5 sort fields,
541
+ 80–800px column widths, and 20 total Board lanes with batches of at most 50
542
+ records per lane. Enum icon maps allow 100 unpadded nonempty values of at most 200
543
+ characters and only exported catalog icons. Portable SDK and schema-aware
544
+ platform validators remain separate and run matching versioned conformance
545
+ fixtures. Container width selects the responsive DataGrid presentation; it is
546
+ not configurable in the preset.
547
+
548
+ The `dev.simple.ui_fixtures` Space API Demo includes a database-backed tile
549
+ playground: saved presets, Apply/Reset tile JSON, List/Table/Board previews,
550
+ phone/full widths, simple/advanced filters, and generated component code. Its
551
+ 14 scenario families are seeded database records; preview JSON supplies layout
552
+ only. Final deployed visual/device acceptance for these additions is tracked
553
+ separately from passing unit/package checks.
554
+
555
+ See `simple/architecture_history/space-views.md` for the current platform
556
+ contract, implementation status, verification, and release gates. Future view
557
+ API designs are in `simple/architecture_history/space-view-roadmap.md`.
558
+ This API is pre-release.
331
559
 
332
560
  ## Build a custom form instead
333
561
 
@@ -510,10 +738,12 @@ the `onChange` callback once, deduplicating the response and event.
510
738
 
511
739
  ## Multiple records
512
740
 
513
- The first release supports the route-owned primary record only. A future
514
- secondary-record API will let a Space explicitly define a multi-record save
515
- plan. `RecordForm` does not infer a save order from the forms on screen, and a
516
- header action never silently submits every visible form.
741
+ `simple.records.current()` returns the route-owned primary record;
742
+ `simple.records.open({ appId, tableName, recordId })` opens an independently
743
+ authorized session for another record. Opened sessions live until the Space
744
+ connection ends. Each handle submits independently; the SDK does not provide an
745
+ atomic multi-record transaction or infer save order from the forms on screen.
746
+ A header action never silently submits every visible form.
517
747
 
518
748
  For all-or-nothing multi-record workflows, use a server-side transactional
519
749
  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 { FILTER_OPERATORS_V1 as FILTER_OPERATORS, isBoardPresetV1 as isBoardPreset, isControlledFilterPropsV1 as isControlledFilterProps, isDataGridPresetV1 as isDataGridPreset, isFilterExpressionV1 as isFilterExpression, 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, validateFilterExpressionV1 as validateFilterExpression, validateInboxPresetV1 as validateInboxPreset, validateListPresetV1 as validateListPreset, validateRecordReferenceV1 as validateRecordReference, validateRecordSortV1 as validateRecordSort, validateRecordSourceV1 as validateRecordSource, validateRecordTileLayoutV1 as validateRecordTileLayout, validateRecordViewPresetV1 as validateRecordViewPreset, validateSourceFilterExpressionV1 as validateSourceFilterExpression, 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, FilterExpressionV1 as FilterExpression, FilterNodeV1 as FilterNode, FilterOperatorV1 as FilterOperator, FilterValueV1 as FilterValue, 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, 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.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,mBAAmB,IAAI,gBAAgB,EACvC,eAAe,IAAI,aAAa,EAChC,yBAAyB,IAAI,uBAAuB,EACpD,kBAAkB,IAAI,gBAAgB,EACtC,oBAAoB,IAAI,kBAAkB,EAC1C,eAAe,IAAI,aAAa,EAChC,cAAc,IAAI,YAAY,EAC9B,mBAAmB,IAAI,iBAAiB,EACxC,cAAc,IAAI,YAAY,EAC9B,gBAAgB,IAAI,cAAc,EAClC,oBAAoB,IAAI,kBAAkB,EAC1C,oBAAoB,IAAI,kBAAkB,EAC1C,qBAAqB,IAAI,mBAAmB,EAC5C,iBAAiB,IAAI,eAAe,EACpC,4BAA4B,IAAI,yBAAyB,EACzD,uBAAuB,IAAI,oBAAoB,EAC/C,oBAAoB,IAAI,iBAAiB,EACzC,uBAAuB,EACvB,qBAAqB,IAAI,mBAAmB,EAC5C,+BAA+B,IAAI,6BAA6B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ER_OPERATORS_V1 as FILTER_OPERATORS, isBoardPresetV1 as isBoardPreset, isControlledFilterPropsV1 as isControlledFilterProps, isDataGridPresetV1 as isDataGridPreset, isFilterExpressionV1 as isFilterExpression, 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, validateFilterExpressionV1 as validateFilterExpression, validateInboxPresetV1 as validateInboxPreset, validateListPresetV1 as validateListPreset, validateRecordReferenceV1 as validateRecordReference, validateRecordSortV1 as validateRecordSort, validateRecordSourceV1 as validateRecordSource, validateRecordTileLayoutV1 as validateRecordTileLayout, validateRecordViewPresetV1 as validateRecordViewPreset, validateSourceFilterExpressionV1 as validateSourceFilterExpression, validateTableRecordSourceV1 as validateTableRecordSource, validateViewItemReferenceV1 as validateViewItemReference, validateViewPresetSetV1 as validateViewPresetSet, } from './views.js';
@@ -0,0 +1,181 @@
1
+ import type { SimpleClient } from '@simpleplatform/sdk/space';
2
+ export interface TableRecordSourceV1 {
3
+ appId: string;
4
+ kind: 'table';
5
+ tableId: string;
6
+ }
7
+ export type RecordSourceV1 = TableRecordSourceV1;
8
+ export interface RecordReferenceV1 {
9
+ appId: string;
10
+ recordId: string;
11
+ tableName: string;
12
+ }
13
+ export type ViewItemReferenceV1 = RecordReferenceV1 & {
14
+ kind: 'record';
15
+ };
16
+ export declare const FILTER_OPERATORS_V1: readonly ["between", "contained_in", "contains", "ends_with", "eq", "future", "gt", "gte", "has_key", "has_keys_all", "has_keys_any", "in", "is_empty", "is_false", "is_not_empty", "is_not_null", "is_null", "is_true", "last_month", "last_n_days", "last_week", "last_year", "lt", "lte", "neq", "next_n_days", "nin", "past", "path_exists", "regex", "starts_with", "this_month", "this_week", "this_year", "today", "yesterday"];
17
+ export type FilterOperatorV1 = typeof FILTER_OPERATORS_V1[number];
18
+ export type FilterValueV1 = boolean | null | number | string | FilterValueV1[] | {
19
+ [key: string]: FilterValueV1;
20
+ };
21
+ export type FilterNodeV1 = {
22
+ children: FilterNodeV1[];
23
+ kind: 'group';
24
+ operator: 'and' | 'or';
25
+ } | {
26
+ fieldName: string;
27
+ kind: 'predicate';
28
+ operator: FilterOperatorV1;
29
+ value?: FilterValueV1 | FilterValueV1[];
30
+ value2?: FilterValueV1;
31
+ };
32
+ export interface FilterExpressionV1 {
33
+ root: FilterNodeV1;
34
+ version: 1;
35
+ }
36
+ 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"];
37
+ export type RecordViewIconIdV1 = typeof RECORD_VIEW_ICON_IDS_V1[number];
38
+ export interface RecordSortV1 {
39
+ direction: 'asc' | 'desc';
40
+ fieldName: string;
41
+ }
42
+ export interface RecordViewSummaryV1 {
43
+ fieldName: string;
44
+ operation: 'average' | 'max' | 'min' | 'sum';
45
+ }
46
+ export declare const RECORD_TILE_PRESENTATIONS_V1: readonly ["editorial", "email", "media", "person", "row", "spotlight", "status"];
47
+ export type RecordTilePresentationV1 = typeof RECORD_TILE_PRESENTATIONS_V1[number];
48
+ export type RecordTileVisualV1 = {
49
+ altFieldName?: string;
50
+ fieldName: string;
51
+ fit?: 'contain' | 'cover';
52
+ kind: 'image';
53
+ } | {
54
+ iconId: RecordViewIconIdV1;
55
+ kind: 'icon';
56
+ } | {
57
+ fallbackIconId: RecordViewIconIdV1;
58
+ fieldName: string;
59
+ iconsByValue: Record<string, RecordViewIconIdV1>;
60
+ kind: 'enum-icon';
61
+ };
62
+ export interface RecordTileLayoutV1 {
63
+ badgeFieldNames?: string[];
64
+ detailFieldNames?: string[];
65
+ eyebrowFieldName?: string;
66
+ presentation: RecordTilePresentationV1;
67
+ subtitleFieldName?: string;
68
+ titleFieldName: string;
69
+ trailingFieldName?: string;
70
+ version: 1;
71
+ visual?: RecordTileVisualV1;
72
+ }
73
+ export declare const RECORD_VIEW_KINDS_V1: readonly ["board", "inbox", "list", "table"];
74
+ export type RecordViewKindV1 = typeof RECORD_VIEW_KINDS_V1[number];
75
+ export interface RecordViewPresetBaseV1 {
76
+ filter?: FilterExpressionV1;
77
+ id: string;
78
+ orderBy?: RecordSortV1[];
79
+ title: string;
80
+ }
81
+ export type ListPresetV1 = RecordViewPresetBaseV1 & {
82
+ config: {
83
+ tile: RecordTileLayoutV1;
84
+ };
85
+ kind: 'list';
86
+ };
87
+ export type DataGridPresetV1 = RecordViewPresetBaseV1 & {
88
+ config: {
89
+ columns: Array<{
90
+ fieldName: string;
91
+ width?: number;
92
+ }>;
93
+ tile?: RecordTileLayoutV1;
94
+ };
95
+ kind: 'table';
96
+ };
97
+ export type BoardPresetV1 = RecordViewPresetBaseV1 & {
98
+ config: {
99
+ laneFieldName: string;
100
+ lanePageSize?: number;
101
+ laneOrder?: string[];
102
+ summaries?: RecordViewSummaryV1[];
103
+ tile: RecordTileLayoutV1;
104
+ };
105
+ kind: 'board';
106
+ };
107
+ export type InboxPresetV1 = RecordViewPresetBaseV1 & {
108
+ kind: 'inbox';
109
+ config: {
110
+ detail: 'record';
111
+ detailFieldNames?: never;
112
+ listTile: RecordTileLayoutV1;
113
+ } | {
114
+ detail?: 'fields';
115
+ detailFieldNames: string[];
116
+ listTile: RecordTileLayoutV1;
117
+ };
118
+ };
119
+ export type RecordViewPresetV1 = DataGridPresetV1 | InboxPresetV1 | BoardPresetV1 | ListPresetV1;
120
+ export interface ViewPresetSetV1 {
121
+ defaultPresetId: string;
122
+ presets: RecordViewPresetV1[];
123
+ version: 1;
124
+ }
125
+ export type ControlledFilterPropsV1 = {
126
+ filter?: never;
127
+ onFilterChange?: never;
128
+ } | {
129
+ filter: FilterExpressionV1 | undefined;
130
+ onFilterChange: (filter: FilterExpressionV1 | undefined) => void;
131
+ };
132
+ export interface RecordViewPropsV1<TPreset extends RecordViewPresetV1> {
133
+ client: SimpleClient;
134
+ onItemOpen?: (reference: ViewItemReferenceV1) => void;
135
+ preset: TPreset;
136
+ source: RecordSourceV1;
137
+ }
138
+ export type ListViewProps = RecordViewPropsV1<ListPresetV1> & ControlledFilterPropsV1;
139
+ export type DataGridProps = RecordViewPropsV1<DataGridPresetV1> & ControlledFilterPropsV1;
140
+ export interface BoardMoveRequestV1 {
141
+ from: string | null;
142
+ item: ViewItemReferenceV1;
143
+ laneFieldName: string;
144
+ to: string | null;
145
+ }
146
+ export type BoardProps = RecordViewPropsV1<BoardPresetV1> & ControlledFilterPropsV1 & {
147
+ onMoveRequest?: (request: BoardMoveRequestV1) => Promise<void>;
148
+ };
149
+ export declare class RecordViewContractError extends Error {
150
+ constructor(message: string);
151
+ }
152
+ export declare function validateTableRecordSourceV1(value: unknown): TableRecordSourceV1;
153
+ export declare function validateRecordSourceV1(value: unknown): RecordSourceV1;
154
+ export declare function isRecordSourceV1(value: unknown): value is RecordSourceV1;
155
+ export declare function validateRecordReferenceV1(value: unknown): RecordReferenceV1;
156
+ export declare function isRecordReferenceV1(value: unknown): value is RecordReferenceV1;
157
+ export declare function validateViewItemReferenceV1(value: unknown): ViewItemReferenceV1;
158
+ export declare function isViewItemReferenceV1(value: unknown): value is ViewItemReferenceV1;
159
+ export declare function validateFilterExpressionV1(value: unknown): FilterExpressionV1;
160
+ /** Validates filter shape for the authorized record source. */
161
+ export declare function validateSourceFilterExpressionV1(source: RecordSourceV1, value: unknown): FilterExpressionV1;
162
+ export declare function isFilterExpressionV1(value: unknown): value is FilterExpressionV1;
163
+ export declare function validateRecordSortV1(value: unknown): RecordSortV1;
164
+ export declare function isRecordSortV1(value: unknown): value is RecordSortV1;
165
+ export declare function validateRecordTileLayoutV1(value: unknown): RecordTileLayoutV1;
166
+ export declare function isRecordTileLayoutV1(value: unknown): value is RecordTileLayoutV1;
167
+ export declare function validateListPresetV1(value: unknown): ListPresetV1;
168
+ export declare function isListPresetV1(value: unknown): value is ListPresetV1;
169
+ export declare function validateDataGridPresetV1(value: unknown): DataGridPresetV1;
170
+ export declare function isDataGridPresetV1(value: unknown): value is DataGridPresetV1;
171
+ export declare function validateBoardPresetV1(value: unknown): BoardPresetV1;
172
+ export declare function isBoardPresetV1(value: unknown): value is BoardPresetV1;
173
+ export declare function validateInboxPresetV1(value: unknown): InboxPresetV1;
174
+ export declare function isInboxPresetV1(value: unknown): value is InboxPresetV1;
175
+ export declare function validateRecordViewPresetV1(value: unknown): RecordViewPresetV1;
176
+ export declare function isRecordViewPresetV1(value: unknown): value is RecordViewPresetV1;
177
+ export declare function validateViewPresetSetV1(value: unknown): ViewPresetSetV1;
178
+ export declare function isViewPresetSetV1(value: unknown): value is ViewPresetSetV1;
179
+ export declare function validateControlledFilterPropsV1(props: unknown): ControlledFilterPropsV1;
180
+ export declare function isControlledFilterPropsV1(props: unknown): props is ControlledFilterPropsV1;
181
+ //# 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,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;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