@ai-matrx/records 0.93.3 → 0.93.5

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{client-icpxhaRE.d.cts → client-CEX4WdvX.d.cts} +1 -1
  3. package/dist/{client-DM3dRewB.d.ts → client-DQWdJeFM.d.ts} +1 -1
  4. package/dist/core/index.d.cts +4 -4
  5. package/dist/core/index.d.ts +4 -4
  6. package/dist/data/index.d.cts +2 -2
  7. package/dist/data/index.d.ts +2 -2
  8. package/dist/{declareTable-MN4WuhWK.d.ts → declareTable-Bkh3C1Ao.d.ts} +2 -2
  9. package/dist/{declareTable-BtpsSJCr.d.cts → declareTable-DeQ9_TMb.d.cts} +2 -2
  10. package/dist/first-page/index.cjs +20 -6
  11. package/dist/first-page/index.cjs.map +1 -1
  12. package/dist/first-page/index.d.cts +5 -1
  13. package/dist/first-page/index.d.ts +5 -1
  14. package/dist/first-page/index.js +20 -6
  15. package/dist/first-page/index.js.map +1 -1
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/questions/index.d.cts +2 -2
  19. package/dist/questions/index.d.ts +2 -2
  20. package/dist/react/index.d.cts +32 -1
  21. package/dist/react/index.d.ts +32 -1
  22. package/dist/setup/index.d.cts +2 -2
  23. package/dist/setup/index.d.ts +2 -2
  24. package/dist/{table-kind-C5ZLyOxE.d.cts → table-kind-CMXvN5Kb.d.cts} +32 -1
  25. package/dist/{table-kind-BGokuDJj.d.ts → table-kind-CjTL6PyT.d.ts} +32 -1
  26. package/dist/typed-table/index.d.cts +3 -3
  27. package/dist/typed-table/index.d.ts +3 -3
  28. package/dist/views/index.cjs +32 -7
  29. package/dist/views/index.cjs.map +1 -1
  30. package/dist/views/index.d.cts +14 -6
  31. package/dist/views/index.d.ts +14 -6
  32. package/dist/views/index.js +32 -7
  33. package/dist/views/index.js.map +1 -1
  34. package/package.json +4 -4
@@ -2268,6 +2268,8 @@ type AutomationValue = string | number | boolean | null | {
2268
2268
  from: Uuid;
2269
2269
  } | {
2270
2270
  now: true;
2271
+ } | {
2272
+ in_days: number;
2271
2273
  } | {
2272
2274
  me: true;
2273
2275
  } | {
@@ -2277,6 +2279,8 @@ type AutomationValue = string | number | boolean | null | {
2277
2279
  type AutomationValues = Record<Uuid, AutomationValue>;
2278
2280
  /** A filter in the store's one rule shape; inside an `edit_rows.where`, `{ trigger: <field id> }` means that value on the triggering row. */
2279
2281
  type AutomationFilter = Record<string, unknown>;
2282
+ /** Days of the week as the store counts them: 1 Monday … 7 Sunday. */
2283
+ type AutomationWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
2280
2284
  type AutomationTrigger = {
2281
2285
  on: "row_added";
2282
2286
  } | {
@@ -2285,6 +2289,29 @@ type AutomationTrigger = {
2285
2289
  to?: unknown;
2286
2290
  } | {
2287
2291
  on: "form_answered";
2292
+ }
2293
+ /**
2294
+ * AUTOMATION-TIME: a date or date-time property reaching now, `offset_days` before (negative) or after
2295
+ * (positive), at `at` (HH:MM, default 09:00) in the person's own zone, else the organization's. Fires once per row
2296
+ * per date value; the date changing re-arms it.
2297
+ */
2298
+ | {
2299
+ on: "date_arrives";
2300
+ field: Uuid;
2301
+ offset_days?: number;
2302
+ at?: string;
2303
+ }
2304
+ /**
2305
+ * AUTOMATION-TIME: the table acts with no row, every day / week (`weekday`) / month (`day`, 1-31, a short month
2306
+ * runs on its last day) at `at`. `set`, a person property, `{from}` and `{trigger}` have no row to read and are
2307
+ * refused; `add_row` is the repeating row and `edit_rows` the scheduled bulk edit.
2308
+ */
2309
+ | {
2310
+ on: "schedule";
2311
+ every: "day" | "week" | "month";
2312
+ at?: string;
2313
+ weekday?: AutomationWeekday;
2314
+ day?: number;
2288
2315
  };
2289
2316
  type AutomationAction = {
2290
2317
  do: "set";
@@ -2387,6 +2414,10 @@ interface AutomationRun {
2387
2414
  operation: string;
2388
2415
  via: string | null;
2389
2416
  changed_field_ids: Uuid[];
2417
+ /** A time trigger's own facts: the moment it was due, and (date arrives) the date it read. */
2418
+ fires_at?: string;
2419
+ date_value?: string;
2420
+ every?: "day" | "week" | "month";
2390
2421
  } | null;
2391
2422
  steps: AutomationStep[];
2392
2423
  started_at: string | null;
@@ -3806,4 +3837,4 @@ declare function tableJsonSchema(facts: TableKindFacts, mode: TableSchemaMode):
3806
3837
  */
3807
3838
  declare function tableRenderSchema(facts: TableKindFacts): TableRenderSchema;
3808
3839
 
3809
- export { type ImportRun as $, type ArchiveLane as A, type PipelineMoveResult as B, type ChoiceNudge as C, type PipelineMoveManyItem as D, type EntityTableFacts as E, type FieldDrift as F, type PipelineMoveMany as G, type PipelineSpec as H, type PipelineDeclared as I, type StageRuleEnforcement as J, type StagePending as K, type StagePendingOnBoard as L, type MigrationUndone as M, type NewEntityFieldDeclaration as N, type PipelineGate as O, type Pipeline as P, type PipelineGatePreview as Q, type RecordsMerged as R, type StageRuleOnFail as S, type TableArchiveProgress as T, type ImportPlan as U, type ImportPolicy as V, type ImportOpened as W, type ImportColumnsDeclared as X, type ImportBatchResult as Y, type ImportFinished as Z, type ImportReport as _, type TableRestoreProgress as a, type WorkApprovalDecision as a$, type InboundDeclared as a0, type InboundAddress as a1, type FormArchiveAnswer as a2, type ArchivedForm as a3, type ArchivedChecklistTemplate as a4, type TableRowDefaults as a5, type TableRowDefaultsPatch as a6, type RowDefaultsApplied as a7, type RecordRowControls as a8, type CaptureSheetSummary as a9, type CommentWritten as aA, type AnonTokenBinding as aB, type ChecklistSpec as aC, type ChecklistDeclared as aD, type ChecklistTemplateSummary as aE, type ChecklistTemplateShape as aF, type ChecklistRunStarted as aG, type ChecklistRunStep as aH, type ChecklistRunSummary as aI, type ChecklistStepCompleted as aJ, type WorkState as aK, type WorkGraph as aL, type WorkInstantiation as aM, type WorkTurn as aN, type WorkAssignmentField as aO, type WorkSlotHold as aP, type WorkInboxView as aQ, type WorkInboxItem as aR, type InboxStateChange as aS, type InboxCounts as aT, type WorkListFlavour as aU, type WorkListItem as aV, type WorkAssignment as aW, type WorkRecordState as aX, type WorkApprover as aY, type WorkChange as aZ, type WorkApprovalFiled as a_, type CaptureSheetFace as aa, type CaptureFileRef as ab, type CaptureOutcome as ac, type EnrichmentSummary as ad, type EnrichDeclared as ae, type EnrichDueRow as af, type EnrichCell as ag, type EnrichRun as ah, type DrillSource as ai, type DrillDefinition as aj, type DrillQuestion as ak, type DrillAnswer as al, type DrillRowsPage as am, type DocToken as an, type DocUnresolvedToken as ao, type DocTemplateRow as ap, type DocRenderRow as aq, type DocSignatureRow as ar, type RecordHistoryEntry as as, type RecordScopeContext as at, type ConversationScope as au, type ConversationScopeContext as av, type FieldHistoryEntry as aw, type RestorePreview as ax, type RestoreResult as ay, type CommentThreadRead as az, type TableDuplicateProgress as b, DRILL_SCHEMA as b$, type WorkDecideManyItem as b0, type WorkDecideMany as b1, type ExternalPrincipalCard as b2, type PublishBinding as b3, type ResolvedPublishBinding as b4, type ResolvedPublishBindingKind as b5, type DecorationPath as b6, type TableDecorations as b7, type GridLayout as b8, type FormulaParse as b9, type AutomationAction as bA, type AutomationFilter as bB, type AutomationItem as bC, type AutomationLastRun as bD, type AutomationRun as bE, type AutomationRunStatus as bF, type AutomationStep as bG, type AutomationTrigger as bH, type AutomationValue as bI, type AutomationValues as bJ, BUILT_KIND_WORD as bK, CHOICE_NUDGES as bL, type CaptureField as bM, type CaptureQuestion as bN, type ChecklistRequirement as bO, type ChecklistRequirementKind as bP, type ChecklistRoleSpec as bQ, type ChecklistStepSpec as bR, type ChecklistTrigger as bS, type ChecklistTriggerKind as bT, type ChoiceLike as bU, type ChoiceOption as bV, type CustomFieldTableType as bW, DEFAULT_ARCHIVE_LANE as bX, DRILL_CHART_TOKENS as bY, DRILL_DESCRIPTION_MAX as bZ, DRILL_DOORS as b_, type FormulaPreview as ba, type RowAction as bb, type ActionRunResult as bc, type AutomationSpec as bd, type AutomationDeclared as be, type AutomationList as bf, type AutomationFlipped as bg, type AutomationRuns as bh, type RecordEvent as bi, type TableWebhookDeclared as bj, type TableWebhook as bk, type IoExportPage as bl, type TableListEntry as bm, type DataHomeTable as bn, type AdminTable as bo, type TableSyncSpec as bp, type TableSyncResult as bq, type TableRowCount as br, type RecordHeader as bs, type OutsideShareAnswer as bt, type ViewOrderSet as bu, ARCHIVE_LANES as bv, ARCHIVE_LANE_LABEL as bw, ARCHIVE_LANE_MEANS as bx, type ActionRefusal as by, type ArchivedDoorRow as bz, type TableDuplicated as c, type StageRuleWarning as c$, type DecorationColor as c0, type DecorationRule as c1, type DecorationRuleOp as c2, type DecorationTarget as c3, type DocSignatureCheck as c4, type DrillAdHocOp as c5, type DrillAnswerRow as c6, type DrillChartToken as c7, type DrillDeclaration as c8, type DrillDimension as c9, type ImportProposal as cA, PIPELINE_RULE_KINDS as cB, type PipelineMissingField as cC, type PipelineMoveManyResult as cD, type PipelineMoveVerdict as cE, type PipelineRule as cF, type PipelineRuleKind as cG, type PipelineStage as cH, type PublishBindingKind as cI, ROW_WEB_NOT_READY as cJ, type RecordChangeAction as cK, type RecordComment as cL, type RecordScopeComment as cM, type RecordScopeField as cN, type RecordScopeHistoryEntry as cO, type RecordScopeRelation as cP, type RecordScopeWithheld as cQ, type RegisteredTable as cR, type RetypeBehaviour as cS, type RetypePreview as cT, type RowActionStep as cU, SHOWN_TO_LABEL as cV, SHOWN_TO_VALUES as cW, SHOWN_TO_WHO_MAY_CHANGE as cX, STAGE_RULE_ENFORCEMENT as cY, STAGE_RULE_ON_FAIL as cZ, type ShownTo as c_, type DrillFinding as ca, type DrillGrain as cb, type DrillHaving as cc, type DrillLane as cd, type DrillLevel as ce, type DrillMeasure as cf, type DrillMeasureOp as cg, type DrillMeasureWhereValue as ch, type DrillPath as ci, type DrillRecords as cj, type DrillView as ck, type EnrichAlternate as cl, type EnrichSource as cm, type Enrichment as cn, type EntityBackLinkItem as co, type EntityFieldValue as cp, type EntityRecordMatch as cq, type FieldDriftAspect as cr, type GridLayoutMode as cs, type GridRowHeight as ct, type HistoryActor as cu, type HistoryActorKind as cv, type HistoryChange as cw, type Home as cx, type ImportColumnPlan as cy, type ImportOutcome as cz, type TableCopyInProgress as d, rehomeSentence as d$, TABLE_KIND_PREFIX as d0, type TableHomeDestination as d1, type TableLevel as d2, type TableLevelApproval as d3, type TablePlacement as d4, type TablePlacementFact as d5, type TableRenderSchema as d6, type TableSchemaMode as d7, type TableSyncSource as d8, type TypedChoiceDecision as d9, isFoundation as dA, isShownTo as dB, isTableKind as dC, isTheChosen as dD, keptGroups as dE, keptOutOfSight as dF, keptTableHref as dG, levelHasShownTo as dH, looksLikeAnId as dI, mayDrag as dJ, moveConsequence as dK, moveInOrder as dL, offeredAsContext as dM, optionKey as dN, optionLabel as dO, parseFieldDrift as dP, parseTableCopiesInProgress as dQ, parseTableDuplicateProgress as dR, parseTableDuplicated as dS, parseTableHome as dT, parseTableMoved as dU, previewRetype as dV, previewRuleChange as dW, recordChangeTrigger as dX, recordSourceKey as dY, recordSourceTable as dZ, recordsUseSentence as d_, type ViewLayout as da, type WorkApprovalState as db, type WorkDecideManyResult as dc, type WorkDecideVerdict as dd, type WorkDueState as de, type WorkInboxKind as df, type WorkOrigin as dg, type WorkTemplateNode as dh, type WorkTemplateRelation as di, actionRefusals as dj, archivedByLine as dk, archivedWhen as dl, asChoiceNudge as dm, choiceSlug as dn, choiceValuesOf as dp, choicesOf as dq, decideTypedChoice as dr, declareDrillDefinition as ds, drillAnswerOf as dt, drillFindingKnob as du, emptyArchiveLine as dv, exportPageXlsx as dw, fieldKindOf as dx, holdsARetiredChoice as dy, isArchiveLane as dz, type ArchivedRow as e, removedChoicesInUse as e0, ruleThatRefuses as e1, rulesWithTopStar as e2, sameDocument as e3, scopeChip as e4, sheetSyncSpec as e5, tableIdOf as e6, tableJsonSchema as e7, tableKindMapping as e8, tableKindSlug as e9, tableRenderSchema as ea, valueConverts as eb, withRowCounts as ec, withTablePlacement as ed, type Table as f, type TableHome as g, type TableMoved as h, type ChoiceUsage as i, type ChoiceRehome as j, type ChoiceCellBack as k, type ChoicesRehomed as l, type TableCapacity as m, type FieldRetyped as n, type TableKindFacts as o, type TableLevelFacts as p, type TableReaderRule as q, type TableLevelSet as r, type EntityFieldsAcross as s, type EntityFieldRights as t, type EntityRecordRead as u, type EntityBackLinks as v, type EntityRowWritten as w, type EntityRecordsFound as x, type PipelineColumn as y, type PipelineVerdict as z };
3840
+ export { type ImportRun as $, type ArchiveLane as A, type PipelineMoveResult as B, type ChoiceNudge as C, type PipelineMoveManyItem as D, type EntityTableFacts as E, type FieldDrift as F, type PipelineMoveMany as G, type PipelineSpec as H, type PipelineDeclared as I, type StageRuleEnforcement as J, type StagePending as K, type StagePendingOnBoard as L, type MigrationUndone as M, type NewEntityFieldDeclaration as N, type PipelineGate as O, type Pipeline as P, type PipelineGatePreview as Q, type RecordsMerged as R, type StageRuleOnFail as S, type TableArchiveProgress as T, type ImportPlan as U, type ImportPolicy as V, type ImportOpened as W, type ImportColumnsDeclared as X, type ImportBatchResult as Y, type ImportFinished as Z, type ImportReport as _, type TableRestoreProgress as a, type WorkApprovalDecision as a$, type InboundDeclared as a0, type InboundAddress as a1, type FormArchiveAnswer as a2, type ArchivedForm as a3, type ArchivedChecklistTemplate as a4, type TableRowDefaults as a5, type TableRowDefaultsPatch as a6, type RowDefaultsApplied as a7, type RecordRowControls as a8, type CaptureSheetSummary as a9, type CommentWritten as aA, type AnonTokenBinding as aB, type ChecklistSpec as aC, type ChecklistDeclared as aD, type ChecklistTemplateSummary as aE, type ChecklistTemplateShape as aF, type ChecklistRunStarted as aG, type ChecklistRunStep as aH, type ChecklistRunSummary as aI, type ChecklistStepCompleted as aJ, type WorkState as aK, type WorkGraph as aL, type WorkInstantiation as aM, type WorkTurn as aN, type WorkAssignmentField as aO, type WorkSlotHold as aP, type WorkInboxView as aQ, type WorkInboxItem as aR, type InboxStateChange as aS, type InboxCounts as aT, type WorkListFlavour as aU, type WorkListItem as aV, type WorkAssignment as aW, type WorkRecordState as aX, type WorkApprover as aY, type WorkChange as aZ, type WorkApprovalFiled as a_, type CaptureSheetFace as aa, type CaptureFileRef as ab, type CaptureOutcome as ac, type EnrichmentSummary as ad, type EnrichDeclared as ae, type EnrichDueRow as af, type EnrichCell as ag, type EnrichRun as ah, type DrillSource as ai, type DrillDefinition as aj, type DrillQuestion as ak, type DrillAnswer as al, type DrillRowsPage as am, type DocToken as an, type DocUnresolvedToken as ao, type DocTemplateRow as ap, type DocRenderRow as aq, type DocSignatureRow as ar, type RecordHistoryEntry as as, type RecordScopeContext as at, type ConversationScope as au, type ConversationScopeContext as av, type FieldHistoryEntry as aw, type RestorePreview as ax, type RestoreResult as ay, type CommentThreadRead as az, type TableDuplicateProgress as b, DRILL_DOORS as b$, type WorkDecideManyItem as b0, type WorkDecideMany as b1, type ExternalPrincipalCard as b2, type PublishBinding as b3, type ResolvedPublishBinding as b4, type ResolvedPublishBindingKind as b5, type DecorationPath as b6, type TableDecorations as b7, type GridLayout as b8, type FormulaParse as b9, type AutomationAction as bA, type AutomationFilter as bB, type AutomationItem as bC, type AutomationLastRun as bD, type AutomationRun as bE, type AutomationRunStatus as bF, type AutomationStep as bG, type AutomationTrigger as bH, type AutomationValue as bI, type AutomationValues as bJ, type AutomationWeekday as bK, BUILT_KIND_WORD as bL, CHOICE_NUDGES as bM, type CaptureField as bN, type CaptureQuestion as bO, type ChecklistRequirement as bP, type ChecklistRequirementKind as bQ, type ChecklistRoleSpec as bR, type ChecklistStepSpec as bS, type ChecklistTrigger as bT, type ChecklistTriggerKind as bU, type ChoiceLike as bV, type ChoiceOption as bW, type CustomFieldTableType as bX, DEFAULT_ARCHIVE_LANE as bY, DRILL_CHART_TOKENS as bZ, DRILL_DESCRIPTION_MAX as b_, type FormulaPreview as ba, type RowAction as bb, type ActionRunResult as bc, type AutomationSpec as bd, type AutomationDeclared as be, type AutomationList as bf, type AutomationFlipped as bg, type AutomationRuns as bh, type RecordEvent as bi, type TableWebhookDeclared as bj, type TableWebhook as bk, type IoExportPage as bl, type TableListEntry as bm, type DataHomeTable as bn, type AdminTable as bo, type TableSyncSpec as bp, type TableSyncResult as bq, type TableRowCount as br, type RecordHeader as bs, type OutsideShareAnswer as bt, type ViewOrderSet as bu, ARCHIVE_LANES as bv, ARCHIVE_LANE_LABEL as bw, ARCHIVE_LANE_MEANS as bx, type ActionRefusal as by, type ArchivedDoorRow as bz, type TableDuplicated as c, type ShownTo as c$, DRILL_SCHEMA as c0, type DecorationColor as c1, type DecorationRule as c2, type DecorationRuleOp as c3, type DecorationTarget as c4, type DocSignatureCheck as c5, type DrillAdHocOp as c6, type DrillAnswerRow as c7, type DrillChartToken as c8, type DrillDeclaration as c9, type ImportOutcome as cA, type ImportProposal as cB, PIPELINE_RULE_KINDS as cC, type PipelineMissingField as cD, type PipelineMoveManyResult as cE, type PipelineMoveVerdict as cF, type PipelineRule as cG, type PipelineRuleKind as cH, type PipelineStage as cI, type PublishBindingKind as cJ, ROW_WEB_NOT_READY as cK, type RecordChangeAction as cL, type RecordComment as cM, type RecordScopeComment as cN, type RecordScopeField as cO, type RecordScopeHistoryEntry as cP, type RecordScopeRelation as cQ, type RecordScopeWithheld as cR, type RegisteredTable as cS, type RetypeBehaviour as cT, type RetypePreview as cU, type RowActionStep as cV, SHOWN_TO_LABEL as cW, SHOWN_TO_VALUES as cX, SHOWN_TO_WHO_MAY_CHANGE as cY, STAGE_RULE_ENFORCEMENT as cZ, STAGE_RULE_ON_FAIL as c_, type DrillDimension as ca, type DrillFinding as cb, type DrillGrain as cc, type DrillHaving as cd, type DrillLane as ce, type DrillLevel as cf, type DrillMeasure as cg, type DrillMeasureOp as ch, type DrillMeasureWhereValue as ci, type DrillPath as cj, type DrillRecords as ck, type DrillView as cl, type EnrichAlternate as cm, type EnrichSource as cn, type Enrichment as co, type EntityBackLinkItem as cp, type EntityFieldValue as cq, type EntityRecordMatch as cr, type FieldDriftAspect as cs, type GridLayoutMode as ct, type GridRowHeight as cu, type HistoryActor as cv, type HistoryActorKind as cw, type HistoryChange as cx, type Home as cy, type ImportColumnPlan as cz, type TableCopyInProgress as d, recordsUseSentence as d$, type StageRuleWarning as d0, TABLE_KIND_PREFIX as d1, type TableHomeDestination as d2, type TableLevel as d3, type TableLevelApproval as d4, type TablePlacement as d5, type TablePlacementFact as d6, type TableRenderSchema as d7, type TableSchemaMode as d8, type TableSyncSource as d9, isArchiveLane as dA, isFoundation as dB, isShownTo as dC, isTableKind as dD, isTheChosen as dE, keptGroups as dF, keptOutOfSight as dG, keptTableHref as dH, levelHasShownTo as dI, looksLikeAnId as dJ, mayDrag as dK, moveConsequence as dL, moveInOrder as dM, offeredAsContext as dN, optionKey as dO, optionLabel as dP, parseFieldDrift as dQ, parseTableCopiesInProgress as dR, parseTableDuplicateProgress as dS, parseTableDuplicated as dT, parseTableHome as dU, parseTableMoved as dV, previewRetype as dW, previewRuleChange as dX, recordChangeTrigger as dY, recordSourceKey as dZ, recordSourceTable as d_, type TypedChoiceDecision as da, type ViewLayout as db, type WorkApprovalState as dc, type WorkDecideManyResult as dd, type WorkDecideVerdict as de, type WorkDueState as df, type WorkInboxKind as dg, type WorkOrigin as dh, type WorkTemplateNode as di, type WorkTemplateRelation as dj, actionRefusals as dk, archivedByLine as dl, archivedWhen as dm, asChoiceNudge as dn, choiceSlug as dp, choiceValuesOf as dq, choicesOf as dr, decideTypedChoice as ds, declareDrillDefinition as dt, drillAnswerOf as du, drillFindingKnob as dv, emptyArchiveLine as dw, exportPageXlsx as dx, fieldKindOf as dy, holdsARetiredChoice as dz, type ArchivedRow as e, rehomeSentence as e0, removedChoicesInUse as e1, ruleThatRefuses as e2, rulesWithTopStar as e3, sameDocument as e4, scopeChip as e5, sheetSyncSpec as e6, tableIdOf as e7, tableJsonSchema as e8, tableKindMapping as e9, tableKindSlug as ea, tableRenderSchema as eb, valueConverts as ec, withRowCounts as ed, withTablePlacement as ee, type Table as f, type TableHome as g, type TableMoved as h, type ChoiceUsage as i, type ChoiceRehome as j, type ChoiceCellBack as k, type ChoicesRehomed as l, type TableCapacity as m, type FieldRetyped as n, type TableKindFacts as o, type TableLevelFacts as p, type TableReaderRule as q, type TableLevelSet as r, type EntityFieldsAcross as s, type EntityFieldRights as t, type EntityRecordRead as u, type EntityBackLinks as v, type EntityRowWritten as w, type EntityRecordsFound as x, type PipelineColumn as y, type PipelineVerdict as z };
@@ -1,7 +1,7 @@
1
- import { N as NewFieldSpec } from '../declareTable-BtpsSJCr.cjs';
1
+ import { N as NewFieldSpec } from '../declareTable-DeQ9_TMb.cjs';
2
2
  import { U as Uuid, R as RecordsResult, r as RecordPageSort } from '../record-zwSBU5PQ.cjs';
3
- import { R as RecordsClient } from '../client-icpxhaRE.cjs';
4
- import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-C5ZLyOxE.cjs';
3
+ import { R as RecordsClient } from '../client-CEX4WdvX.cjs';
4
+ import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-CMXvN5Kb.cjs';
5
5
  import '../field-DjS7iId2.cjs';
6
6
  import '../subscription-ycCVo9e2.cjs';
7
7
  import '../rule-CbBXN-FW.cjs';
@@ -1,7 +1,7 @@
1
- import { N as NewFieldSpec } from '../declareTable-MN4WuhWK.js';
1
+ import { N as NewFieldSpec } from '../declareTable-Bkh3C1Ao.js';
2
2
  import { U as Uuid, R as RecordsResult, r as RecordPageSort } from '../record-zwSBU5PQ.js';
3
- import { R as RecordsClient } from '../client-DM3dRewB.js';
4
- import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-BGokuDJj.js';
3
+ import { R as RecordsClient } from '../client-DQWdJeFM.js';
4
+ import { F as FieldDrift, T as TableArchiveProgress } from '../table-kind-CjTL6PyT.js';
5
5
  import '../field-D-1OKy5r.js';
6
6
  import '../subscription-DucBLG-Y.js';
7
7
  import '../rule-BVX1C83I.js';
@@ -71,17 +71,20 @@ function plainCodec() {
71
71
  return plainPresentation;
72
72
  }
73
73
  var STORE_KEEPS_TIMELINE = true;
74
- var ALL = ["grid", "kanban", "calendar", "gallery", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "list"];
74
+ var ALL = ["grid", "kanban", "calendar", "gallery", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "list", "chart"];
75
75
  var HIDES = ["grid", "gallery", "kanban", "calendar", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "list"];
76
76
  var GRIDS = ["grid"];
77
+ var BOARD = ["kanban"];
77
78
  var VIEW_KEYS = [
78
79
  { path: "layout", shape: "kind", layouts: ALL, writer: "caller" },
79
80
  { path: "filters", shape: "filter", layouts: ALL, writer: "caller" },
80
81
  { path: "where", shape: "rule", layouts: ALL, writer: "caller" },
81
- { path: "group_field", shape: "field", layouts: ["kanban", ...STORE_KEEPS_TIMELINE ? ["timeline"] : []], writer: "caller" },
82
+ { path: "group_field", shape: "field", layouts: ["kanban", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "chart"], writer: "caller" },
82
83
  { path: "swimlane_field", shape: "field:lane", layouts: ["kanban"], writer: "caller" },
83
84
  { path: "collapsed_columns", shape: "values", layouts: ["kanban"], writer: "caller" },
84
- { path: "measure", shape: "field:number", layouts: ["kanban"], writer: "caller" },
85
+ { path: "measure", shape: "field:number", layouts: ["kanban", "chart"], writer: "caller" },
86
+ { path: "chart_kind", shape: "chart_kind", layouts: ["chart"], writer: "caller" },
87
+ { path: "chart_measure", shape: "chart_measure", layouts: ["chart"], writer: "caller" },
85
88
  { path: "date_field", shape: "field:date", layouts: ["calendar"], writer: "caller" },
86
89
  ...STORE_KEEPS_TIMELINE ? [
87
90
  { path: "start_field", shape: "field:date", layouts: ["timeline"], writer: "caller" },
@@ -102,6 +105,12 @@ var VIEW_KEYS = [
102
105
  { path: "presentation.cardHidden", shape: "fields", layouts: ["kanban", "calendar", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "list", "gallery"], writer: "caller" },
103
106
  { path: "presentation.columnOrder", shape: "fields", layouts: GRIDS, writer: "caller" },
104
107
  { path: "presentation.gallerySize", shape: "gallery_size", layouts: ["gallery"], writer: "caller" },
108
+ { path: "presentation.boardSize", shape: "gallery_size", layouts: BOARD, writer: "caller" },
109
+ { path: "presentation.boardPreview", shape: "field", layouts: BOARD, writer: "caller" },
110
+ { path: "presentation.boardHideEmpty", shape: "boolean", layouts: BOARD, writer: "caller" },
111
+ { path: "presentation.boardColorColumns", shape: "boolean", layouts: BOARD, writer: "caller" },
112
+ { path: "presentation.boardCounts", shape: "boolean", layouts: BOARD, writer: "caller" },
113
+ { path: "presentation.boardLanesShut", shape: "values", layouts: BOARD, writer: "caller" },
105
114
  { path: "presentation.wrap", shape: "boolean", layouts: GRIDS, writer: "caller" },
106
115
  { path: "presentation.wrapColumns", shape: "fields", layouts: GRIDS, writer: "caller" },
107
116
  { path: "presentation.fit", shape: "fit", layouts: GRIDS, writer: "caller" },
@@ -114,7 +123,7 @@ var VIEW_KEYS = [
114
123
  { path: "order", shape: "server", layouts: GRIDS, writer: "server" },
115
124
  { path: "moved_from", shape: "server", layouts: ALL, writer: "server" }
116
125
  ];
117
- var STORE_KEPT_LAYOUTS = ["grid", "kanban", "calendar", "gallery", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "list"];
126
+ var STORE_KEPT_LAYOUTS = ["grid", "kanban", "calendar", "gallery", ...STORE_KEEPS_TIMELINE ? ["timeline"] : [], "list", "chart"];
118
127
  function storeKeepsLayout(layout) {
119
128
  return STORE_KEPT_LAYOUTS.includes(layout);
120
129
  }
@@ -139,6 +148,8 @@ function viewSettings(definition, rowFilters, codec = plainCodec()) {
139
148
  swimlaneField: text("swimlane_field"),
140
149
  collapsedColumns: Array.isArray(data["collapsed_columns"]) ? data["collapsed_columns"].filter((v) => ["string", "number", "boolean"].includes(typeof v)).map(String) : [],
141
150
  measure: text("measure"),
151
+ chartKind: text("chart_kind"),
152
+ chartMeasure: text("chart_measure"),
142
153
  dateField: text("date_field"),
143
154
  startField: text("start_field"),
144
155
  endField: text("end_field"),
@@ -162,6 +173,8 @@ function viewSettingsFor(settings, layout) {
162
173
  take("swimlaneField", "swimlane_field");
163
174
  take("collapsedColumns", "collapsed_columns");
164
175
  take("measure", "measure");
176
+ take("chartKind", "chart_kind");
177
+ take("chartMeasure", "chart_measure");
165
178
  take("dateField", "date_field");
166
179
  take("startField", "start_field");
167
180
  take("endField", "end_field");
@@ -186,6 +199,8 @@ function viewSettingsPatch(patch, codec = plainCodec()) {
186
199
  field("groupField", "group_field");
187
200
  field("swimlaneField", "swimlane_field");
188
201
  field("measure", "measure");
202
+ field("chartKind", "chart_kind");
203
+ field("chartMeasure", "chart_measure");
189
204
  field("dateField", "date_field");
190
205
  if (STORE_KEEPS_TIMELINE) {
191
206
  field("startField", "start_field");
@@ -227,14 +242,15 @@ function parseSorts(raw) {
227
242
  function plainCodec2() {
228
243
  return plainPresentation;
229
244
  }
230
- var VIEW_LAYOUTS = ["grid", "kanban", "calendar", "gallery", "timeline", "list"];
245
+ var VIEW_LAYOUTS = ["grid", "kanban", "calendar", "gallery", "timeline", "list", "chart"];
231
246
  var LAYOUT_LABEL = {
232
247
  grid: "Grid",
233
248
  kanban: "Kanban",
234
249
  calendar: "Calendar",
235
250
  gallery: "Gallery",
236
251
  timeline: "Timeline",
237
- list: "List"
252
+ list: "List",
253
+ chart: "Chart"
238
254
  };
239
255
  function wordsList(words) {
240
256
  const clean = words.map((w) => w.trim()).filter((w) => w !== "");
@@ -245,6 +261,8 @@ var VIEW_NEEDS = {
245
261
  grid: null,
246
262
  // A list reads nothing a table can lack: rows, titled, grouped only when the person chooses.
247
263
  list: null,
264
+ // A chart groups by any column or counts the whole table: it can always draw, and says how to group.
265
+ chart: null,
248
266
  kanban: {
249
267
  kind: "choice",
250
268
  viewKey: "groupField",
@@ -309,7 +327,8 @@ var LAYOUT_FIELD_KIND = {
309
327
  calendar: "date",
310
328
  gallery: "file",
311
329
  timeline: "date",
312
- list: null
330
+ list: null,
331
+ chart: null
313
332
  };
314
333
  var PAGE_VIEWS = [...VIEW_LAYOUTS, "dashboards", "archived"];
315
334
  var PAGE_VIEW_LABEL = {
@@ -332,6 +351,8 @@ var PAGE_VIEW_SPELLINGS = {
332
351
  cards: "gallery",
333
352
  timeline: "timeline",
334
353
  gantt: "timeline",
354
+ chart: "chart",
355
+ graph: "chart",
335
356
  dashboards: "dashboards",
336
357
  dashboard: "dashboards",
337
358
  charts: "dashboards",
@@ -364,6 +385,8 @@ function viewDocument(spec, codec = plainCodec2()) {
364
385
  if (spec.swimlaneField) out["swimlane_field"] = spec.swimlaneField;
365
386
  if (spec.collapsedColumns && spec.collapsedColumns.length > 0) out["collapsed_columns"] = spec.collapsedColumns;
366
387
  if (spec.measure) out["measure"] = spec.measure;
388
+ if (spec.chartKind) out["chart_kind"] = spec.chartKind;
389
+ if (spec.chartMeasure) out["chart_measure"] = spec.chartMeasure;
367
390
  if (spec.dateField) out["date_field"] = spec.dateField;
368
391
  if (STORE_KEEPS_TIMELINE && spec.startField) out["start_field"] = spec.startField;
369
392
  if (STORE_KEEPS_TIMELINE && spec.endField) out["end_field"] = spec.endField;
@@ -388,6 +411,8 @@ function viewFromRow(row, codec = plainCodec2()) {
388
411
  swimlaneField: k.swimlaneField,
389
412
  collapsedColumns: k.collapsedColumns,
390
413
  measure: k.measure,
414
+ chartKind: k.chartKind,
415
+ chartMeasure: k.chartMeasure,
391
416
  dateField: k.dateField,
392
417
  startField: k.startField,
393
418
  endField: k.endField,