@stndrds/schema 1.0.0-alpha.303 → 1.0.0-alpha.306

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 (67) hide show
  1. package/dist/{all-EX5romwn.d.mts → all-B5F4Ucq4.d.mts} +25 -3
  2. package/dist/{all-BV7tFgtR.d.ts → all-D9yoIfEk.d.ts} +25 -3
  3. package/dist/{attributes-CJNqalP0.d.mts → attributes-B_khA3fi.d.mts} +12 -4
  4. package/dist/{attributes-CJNqalP0.d.ts → attributes-B_khA3fi.d.ts} +12 -4
  5. package/dist/chunk-D7GNAYHI.mjs +2 -0
  6. package/dist/chunk-GL4DMIU4.mjs +2 -0
  7. package/dist/chunk-INYZJR7M.js +2 -0
  8. package/dist/chunk-NJQVVPC5.js +2 -0
  9. package/dist/exceptions.d.mts +1 -1
  10. package/dist/exceptions.d.ts +1 -1
  11. package/dist/{helpers-DIWzq1cf.d.ts → helpers-BKinvyuR.d.ts} +3 -3
  12. package/dist/{helpers-BnyKRb4x.d.mts → helpers-BqSFb28c.d.mts} +3 -3
  13. package/dist/{index-DcXCAPHR.d.mts → index-BjQ1n6i2.d.mts} +21 -4
  14. package/dist/{index-B36J5GDI.d.ts → index-DkJ7IaQx.d.ts} +21 -4
  15. package/dist/index.d.mts +271 -35
  16. package/dist/index.d.ts +271 -35
  17. package/dist/index.js +19 -19
  18. package/dist/index.mjs +18 -18
  19. package/dist/{objects-DglxOigU.d.mts → objects-DLkL-wPr.d.mts} +1 -1
  20. package/dist/{objects-CfJvQbZc.d.ts → objects-F9rhbUPZ.d.ts} +1 -1
  21. package/dist/{types-Co8cq3dM.d.mts → types-B6oO_Fkh.d.mts} +1 -1
  22. package/dist/{types-CEwRsyh0.d.ts → types-ce2p4cgi.d.ts} +1 -1
  23. package/dist/utils.d.mts +1 -1
  24. package/dist/utils.d.ts +1 -1
  25. package/dist/utils.js +1 -1
  26. package/dist/utils.mjs +1 -1
  27. package/dist/validation/all.d.mts +6 -6
  28. package/dist/validation/all.d.ts +6 -6
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/dist/validation/complex/currency.d.mts +2 -2
  32. package/dist/validation/complex/currency.d.ts +2 -2
  33. package/dist/validation/complex/location.d.mts +2 -2
  34. package/dist/validation/complex/location.d.ts +2 -2
  35. package/dist/validation/complex/phone.d.mts +2 -2
  36. package/dist/validation/complex/phone.d.ts +2 -2
  37. package/dist/validation/complex/relation.d.mts +2 -2
  38. package/dist/validation/complex/relation.d.ts +2 -2
  39. package/dist/validation/complex/richtext.d.mts +2 -2
  40. package/dist/validation/complex/richtext.d.ts +2 -2
  41. package/dist/validation/complex/select.d.mts +2 -2
  42. package/dist/validation/complex/select.d.ts +2 -2
  43. package/dist/validation/complex/user.d.mts +2 -2
  44. package/dist/validation/complex/user.d.ts +2 -2
  45. package/dist/validation/computed/formula.d.mts +2 -2
  46. package/dist/validation/computed/formula.d.ts +2 -2
  47. package/dist/validation/computed/rollup.d.mts +2 -2
  48. package/dist/validation/computed/rollup.d.ts +2 -2
  49. package/dist/validation/config/index.d.mts +3 -3
  50. package/dist/validation/config/index.d.ts +3 -3
  51. package/dist/validation/core/index.d.mts +3 -3
  52. package/dist/validation/core/index.d.ts +3 -3
  53. package/dist/validation/object/index.d.mts +4 -4
  54. package/dist/validation/object/index.d.ts +4 -4
  55. package/dist/validation/primitives/checkbox.d.mts +2 -2
  56. package/dist/validation/primitives/checkbox.d.ts +2 -2
  57. package/dist/validation/primitives/date.d.mts +2 -2
  58. package/dist/validation/primitives/date.d.ts +2 -2
  59. package/dist/validation/primitives/number.d.mts +2 -2
  60. package/dist/validation/primitives/number.d.ts +2 -2
  61. package/dist/validation/primitives/text.d.mts +2 -2
  62. package/dist/validation/primitives/text.d.ts +2 -2
  63. package/package.json +2 -2
  64. package/dist/chunk-CCB4E55H.mjs +0 -2
  65. package/dist/chunk-JKGRSRRX.js +0 -2
  66. package/dist/chunk-VY5UBDTO.js +0 -2
  67. package/dist/chunk-WBFUAEWU.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, k as AttributeType, f as RollupAttribute } from './attributes-CJNqalP0.js';
2
+ import { A as Attribute, k as AttributeType, f as RollupAttribute } from './attributes-B_khA3fi.js';
3
3
  import { IconName } from '@stndrds/constants';
4
- import { L as ListViewTabVisibility } from './objects-CfJvQbZc.js';
4
+ import { L as ListViewTabVisibility } from './objects-F9rhbUPZ.js';
5
5
 
6
6
  /** Operators for text-based attributes */
7
7
  type TextFilterOperator = "is" | "is_not" | "contains" | "not_contains" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty";
@@ -196,6 +196,14 @@ type ViewType = "detail" | "list";
196
196
  * - `peek`: Create a draft immediately and open it in the record stack side panel
197
197
  */
198
198
  type CreateMode = "redirect" | "inline" | "peek";
199
+ /**
200
+ * Where a record opens from this tab: the record-stack side panel, or its own
201
+ * page. Absent means the surface's own default — an existing view must not
202
+ * change how its records open because a field gained a value (#3158).
203
+ *
204
+ * Center peek is deliberately not offered (Karl, 2026-09-04).
205
+ */
206
+ type RecordOpenMode = "side" | "page";
199
207
  /**
200
208
  * Inline attribute group configuration
201
209
  * Groups multiple attributes into a single composite field with dropdown editing
@@ -333,6 +341,8 @@ interface TableTab extends BaseTab {
333
341
  allowCreate?: boolean;
334
342
  /** Creation behavior when allowCreate is true. Default: "redirect" */
335
343
  createMode?: CreateMode;
344
+ /** Where a record from this tab opens. Absent = the surface's default. */
345
+ openMode?: RecordOpenMode;
336
346
  /** Allow inline editing */
337
347
  allowEdit?: boolean;
338
348
  /** Allow deleting records */
@@ -377,6 +387,11 @@ interface DocumentsTab extends BaseTab {
377
387
  allowUpload?: boolean;
378
388
  allowRemove?: boolean;
379
389
  hideAttachments?: boolean;
390
+ /**
391
+ * Names of relation attributes on the current object whose target records'
392
+ * drives are listed beside the record's own. Absent = single drive.
393
+ */
394
+ relations?: string[];
380
395
  }
381
396
  /**
382
397
  * Forms tab - displays available forms for creating related records
@@ -464,6 +479,8 @@ interface ListViewTab {
464
479
  readOnly?: boolean;
465
480
  /** Creation behavior when clicking "+". Default: "redirect" */
466
481
  createMode?: CreateMode;
482
+ /** Where a record from this tab opens. Absent = the surface's default. */
483
+ openMode?: RecordOpenMode;
467
484
  /** @deprecated Use displayAttributes. Legacy user attribute on Kanban cards. */
468
485
  cardUserAttribute?: string;
469
486
  /** @deprecated Use displayAttributes. Legacy date attribute on Kanban cards. */
@@ -496,7 +513,7 @@ type SidePanelPane = {
496
513
  } | {
497
514
  kind: "documents";
498
515
  /**
499
- * Required, unlike the other kinds: `DocumentsTabContent` keys its
516
+ * Required, unlike the other kinds: `RecordDriveContent` keys its
500
517
  * sort-mode persistence on it, so a pane without one would share the
501
518
  * main-column documents tab's stored sort.
502
519
  */
@@ -852,4 +869,4 @@ declare function parseAttributeConfigForCreate(type: AttributeType, input: unkno
852
869
  */
853
870
  declare function parseAttributeConfigForUpdate(stored: Attribute, patch: Partial<AddAttributeInput>): Record<string, unknown>;
854
871
 
855
- export { type RelationSource as $, type AttributeGroupField as A, type FilterCombinator as B, type ConfigOverrides as C, type DetailViewConfig as D, type EmailsTab as E, type FilterState as F, type Group as G, type FilterGroup as H, type FormDensity as I, type FormTab as J, type FormsTab as K, type ListViewTab as L, type MeetingsTab as M, type InverseSource as N, type ListViewPresentationOverrides as O, type ListViewPresentationTabOverrides as P, NO_VALUE_OPERATORS as Q, type RelativeDateValue as R, type SortRule as S, type TableTab as T, type NoValueOperator as U, type ViewType as V, OPERATORS_BY_TYPE as W, type PhoneFilterValue as X, type QueryState as Y, type RelationOption as Z, type RelationOptionsResponse as _, type ViewConfig as a, type RichtextTab as a0, type SidePanelPane as a1, type SortDirection as a2, type TabType as a3, type TableSource as a4, type UpdateObjectInput as a5, type UpdateViewInput as a6, type ViewOverlay as a7, getRollupFilterOperators as a8, isDetailView as a9, isFieldGroup as aa, isListView as ab, isNoValueOperator as ac, multiselectOptionWriteSchema as ad, parseAttributeConfig as ae, parseAttributeConfigForCreate as af, parseAttributeConfigForUpdate as ag, selectOptionWriteSchema as ah, statusGroupSchema as ai, statusOptionWriteSchema as aj, attributeConfigSchemas as ak, getAttributeConfigSchema as al, getAttributeConfigWriteSchema as am, type FilterOperator as b, type DetailViewDefinition as c, type SidePanelConfig as d, type Field as e, type FieldGroup as f, type CreateMode as g, type Tab as h, type ListViewConfig as i, type ListViewDefinition as j, type ListViewLayout as k, type ViewDefinition as l, type FilterValue as m, type FilterRule as n, type DynamicValue as o, type ActivityTab as p, type AddAttributeInput as q, type AdvancedFilterState as r, type CreateCustomObjectInput as s, type CreateViewInput as t, type CurrencyFilterValue as u, type CustomTab as v, type DayMonthValue as w, type DocumentsTab as x, type EdgeQuantifier as y, type ExtendedFilterRule as z };
872
+ export { type RelationOptionsResponse as $, type AttributeGroupField as A, type ExtendedFilterRule as B, type ConfigOverrides as C, type DetailViewConfig as D, type EmailsTab as E, type FilterState as F, type Group as G, type FilterCombinator as H, type FilterGroup as I, type FormDensity as J, type FormTab as K, type ListViewTab as L, type MeetingsTab as M, type FormsTab as N, type InverseSource as O, type ListViewPresentationOverrides as P, type ListViewPresentationTabOverrides as Q, type RecordOpenMode as R, type SortRule as S, type TableTab as T, NO_VALUE_OPERATORS as U, type ViewType as V, type NoValueOperator as W, OPERATORS_BY_TYPE as X, type PhoneFilterValue as Y, type QueryState as Z, type RelationOption as _, type ViewConfig as a, type RelationSource as a0, type RichtextTab as a1, type SidePanelPane as a2, type SortDirection as a3, type TabType as a4, type TableSource as a5, type UpdateObjectInput as a6, type UpdateViewInput as a7, type ViewOverlay as a8, getRollupFilterOperators as a9, isDetailView as aa, isFieldGroup as ab, isListView as ac, isNoValueOperator as ad, multiselectOptionWriteSchema as ae, parseAttributeConfig as af, parseAttributeConfigForCreate as ag, parseAttributeConfigForUpdate as ah, selectOptionWriteSchema as ai, statusGroupSchema as aj, statusOptionWriteSchema as ak, attributeConfigSchemas as al, getAttributeConfigSchema as am, getAttributeConfigWriteSchema as an, type FilterOperator as b, type DetailViewDefinition as c, type SidePanelConfig as d, type Field as e, type FieldGroup as f, type CreateMode as g, type Tab as h, type ListViewConfig as i, type ListViewDefinition as j, type ListViewLayout as k, type ViewDefinition as l, type FilterValue as m, type FilterRule as n, type DynamicValue as o, type RelativeDateValue as p, type ActivityTab as q, type AddAttributeInput as r, type AdvancedFilterState as s, type CreateCustomObjectInput as t, type CreateViewInput as u, type CurrencyFilterValue as v, type CustomTab as w, type DayMonthValue as x, type DocumentsTab as y, type EdgeQuantifier as z };