@panneau/protocol 5.0.0-alpha.0 → 5.0.0-alpha.10

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 (120) hide show
  1. package/README.md +13 -8
  2. package/dist/conditions.d.ts +1 -1
  3. package/dist/conformance/index.d.ts.map +1 -1
  4. package/dist/conformance/index.js +310 -4
  5. package/dist/conformance/index.js.map +1 -1
  6. package/dist/constants.d.ts +44 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/constants.js +128 -0
  9. package/dist/constants.js.map +1 -0
  10. package/dist/index.d.ts +4 -9
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +22 -15
  13. package/dist/libraries.d.ts +16 -0
  14. package/dist/libraries.d.ts.map +1 -0
  15. package/dist/libraries.js +15 -0
  16. package/dist/libraries.js.map +1 -0
  17. package/dist/lint.d.ts +4 -3
  18. package/dist/lint.d.ts.map +1 -1
  19. package/dist/lint.js +34 -2
  20. package/dist/lint.js.map +1 -1
  21. package/dist/mock/example.d.ts +3 -2
  22. package/dist/mock/example.d.ts.map +1 -1
  23. package/dist/mock/example.js +223 -138
  24. package/dist/mock/example.js.map +1 -1
  25. package/dist/mock/index.d.ts +19 -5
  26. package/dist/mock/index.d.ts.map +1 -1
  27. package/dist/mock/index.js +383 -19
  28. package/dist/mock/index.js.map +1 -1
  29. package/dist/openapi.d.ts +2 -0
  30. package/dist/openapi.d.ts.map +1 -1
  31. package/dist/openapi.js +113 -109
  32. package/dist/openapi.js.map +1 -1
  33. package/dist/problem.d.ts +7 -0
  34. package/dist/problem.d.ts.map +1 -0
  35. package/dist/problem.js +22 -0
  36. package/dist/problem.js.map +1 -0
  37. package/dist/query.d.ts +40 -2
  38. package/dist/query.d.ts.map +1 -1
  39. package/dist/query.js +47 -6
  40. package/dist/query.js.map +1 -1
  41. package/dist/rules.d.ts +6 -3
  42. package/dist/rules.d.ts.map +1 -1
  43. package/dist/rules.js +51 -9
  44. package/dist/rules.js.map +1 -1
  45. package/dist/runtime/index.d.ts +14 -0
  46. package/dist/runtime/index.d.ts.map +1 -0
  47. package/dist/runtime/index.js +13 -0
  48. package/dist/schemas/action.d.ts +69 -13
  49. package/dist/schemas/action.d.ts.map +1 -1
  50. package/dist/schemas/action.js +21 -14
  51. package/dist/schemas/action.js.map +1 -1
  52. package/dist/schemas/api.d.ts +224 -39
  53. package/dist/schemas/api.d.ts.map +1 -1
  54. package/dist/schemas/api.js +125 -31
  55. package/dist/schemas/api.js.map +1 -1
  56. package/dist/schemas/boot.d.ts +24 -6
  57. package/dist/schemas/boot.d.ts.map +1 -1
  58. package/dist/schemas/boot.js +3 -7
  59. package/dist/schemas/boot.js.map +1 -1
  60. package/dist/schemas/common.d.ts +1 -0
  61. package/dist/schemas/common.d.ts.map +1 -1
  62. package/dist/schemas/common.js +2 -1
  63. package/dist/schemas/common.js.map +1 -1
  64. package/dist/schemas/definition.d.ts +222 -20
  65. package/dist/schemas/definition.d.ts.map +1 -1
  66. package/dist/schemas/definition.js +16 -11
  67. package/dist/schemas/definition.js.map +1 -1
  68. package/dist/schemas/field.d.ts +162 -8
  69. package/dist/schemas/field.d.ts.map +1 -1
  70. package/dist/schemas/field.js +69 -49
  71. package/dist/schemas/field.js.map +1 -1
  72. package/dist/schemas/index.d.ts +955 -63
  73. package/dist/schemas/index.d.ts.map +1 -1
  74. package/dist/schemas/index.js +41 -12
  75. package/dist/schemas/index.js.map +1 -1
  76. package/dist/schemas/jsonRules.d.ts +83 -0
  77. package/dist/schemas/jsonRules.d.ts.map +1 -0
  78. package/dist/schemas/jsonRules.js +46 -0
  79. package/dist/schemas/jsonRules.js.map +1 -0
  80. package/dist/schemas/layout.d.ts +1 -4
  81. package/dist/schemas/layout.d.ts.map +1 -1
  82. package/dist/schemas/layout.js +1 -13
  83. package/dist/schemas/layout.js.map +1 -1
  84. package/dist/schemas/list.d.ts +6 -3
  85. package/dist/schemas/list.d.ts.map +1 -1
  86. package/dist/schemas/list.js +3 -9
  87. package/dist/schemas/list.js.map +1 -1
  88. package/dist/schemas/resource.d.ts +144 -14
  89. package/dist/schemas/resource.d.ts.map +1 -1
  90. package/dist/schemas/resource.js +6 -1
  91. package/dist/schemas/resource.js.map +1 -1
  92. package/dist/schemas/theme.d.ts +179 -0
  93. package/dist/schemas/theme.d.ts.map +1 -0
  94. package/dist/schemas/theme.js +66 -0
  95. package/dist/schemas/theme.js.map +1 -0
  96. package/dist/search.d.ts +51 -0
  97. package/dist/search.d.ts.map +1 -0
  98. package/dist/search.js +53 -0
  99. package/dist/search.js.map +1 -0
  100. package/dist/themes.d.ts +11 -0
  101. package/dist/themes.d.ts.map +1 -0
  102. package/dist/themes.js +80 -0
  103. package/dist/themes.js.map +1 -0
  104. package/dist/transforms.d.ts +17 -0
  105. package/dist/transforms.d.ts.map +1 -0
  106. package/dist/transforms.js +34 -0
  107. package/dist/transforms.js.map +1 -0
  108. package/dist/validate.d.ts +4 -6
  109. package/dist/validate.d.ts.map +1 -1
  110. package/dist/validate.js +24 -9
  111. package/dist/validate.js.map +1 -1
  112. package/dist/values.d.ts +5 -1
  113. package/dist/values.d.ts.map +1 -1
  114. package/dist/values.js +16 -2
  115. package/dist/values.js.map +1 -1
  116. package/package.json +12 -3
  117. package/schema/boot.schema.json +580 -16
  118. package/schema/definition.schema.json +577 -16
  119. package/schema/openapi.json +1818 -543
  120. package/schema/theme.schema.json +234 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,OAAO,EAAa,SAAS,EAA8B,MAAM,UAAU,CAAC;AAC5E,OAAO,EAIH,QAAQ,EAKX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAQ,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,cAAc,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEY,CAAC;AAEtC,0FAA0F;AAC1F,wBAAgB,oBAAoB;QACE,MAAM;4GAK3C"}
@@ -1,12 +1,14 @@
1
1
  import { Abilities, Condition, Id, Option, RouteReference } from "./common.js";
2
- import { BUILT_IN_FIELD_TYPES, BlockType, Field, PORTABLE_RULES, Rule } from "./field.js";
3
- import { BUILT_IN_LAYOUT_NODE_TYPES, LayoutNode } from "./layout.js";
4
- import { Action, ActionConfirm, ActionPlacement, ActionScope, BUILT_IN_ACTIONS } from "./action.js";
5
- import { BUILT_IN_LIST_LAYOUTS, Column, Filter, ListDefinition } from "./list.js";
2
+ import { BlockType, Field, RichTextSettings, RichTextStyle, Rule } from "./field.js";
3
+ import { actionJsonRules } from "./jsonRules.js";
4
+ import { LayoutNode } from "./layout.js";
5
+ import { Action, ActionConfirm, ActionPlacement, ActionScope } from "./action.js";
6
+ import { Column, Filter, ListDefinition } from "./list.js";
6
7
  import { Resource, ResourceFeatures } from "./resource.js";
7
- import { Auth, AuthProvider, Definition, MenuItem, Page, Uploads, User, Widget } from "./definition.js";
8
- import { ActionItemResult, ActionRequest, ActionResult, ActionRun, ActionRunResponse, Item, ItemResponse, ListResponse, Media, MediaListResponse, MediaResponse, MediaTransform, Pagination, PreviewResponse, Problem, SearchResponse, Selection, Session } from "./api.js";
9
- import { BOOT_CONFIG_ELEMENT_ID, BootConfig } from "./boot.js";
8
+ import { DefinitionTheme, Theme, ThemeFont, ThemeFontFace, ThemeFontStylesheet, ThemeTokens, ToneInput, ToneValues } from "./theme.js";
9
+ import { Auth, AuthProvider, AuthToken, Definition, MenuItem, Page, Uploads, User, Widget } from "./definition.js";
10
+ import { ActionItemResult, ActionRequest, ActionResult, ActionRun, ActionRunResponse, CursorPagination, EmbedResponse, EmbedValue, FieldCheckRequest, FieldCheckResponse, Item, ItemResponse, ListResponse, LocationValue, MediaInfo, MediaItem, MediaReference, MediaTransform, Pagination, PreviewResponse, Problem, SearchResponse, Selection, Session, StoredFile, Upload, UploadReference, UploadResponse, UploadSignRequest, UploadSignResponse } from "./api.js";
11
+ import { BootConfig } from "./boot.js";
10
12
  import { z } from "zod";
11
13
  //#region src/schemas/index.ts
12
14
  /** The named schemas of the protocol, as they appear in the generated JSON Schema and OpenAPI files. */
@@ -19,6 +21,8 @@ var namedSchemas = {
19
21
  Rule,
20
22
  BlockType,
21
23
  Field,
24
+ RichTextStyle,
25
+ RichTextSettings,
22
26
  LayoutNode,
23
27
  Column,
24
28
  Filter,
@@ -31,14 +35,24 @@ var namedSchemas = {
31
35
  Resource,
32
36
  User,
33
37
  AuthProvider,
38
+ AuthToken,
34
39
  Auth,
35
40
  MenuItem,
36
41
  Page,
37
42
  Widget,
38
43
  Uploads,
44
+ ThemeTokens,
45
+ ToneValues,
46
+ ToneInput,
47
+ ThemeFontFace,
48
+ ThemeFontStylesheet,
49
+ ThemeFont,
50
+ Theme,
51
+ DefinitionTheme,
39
52
  Definition,
40
53
  Item,
41
54
  Pagination,
55
+ CursorPagination,
42
56
  ItemResponse,
43
57
  ListResponse,
44
58
  Problem,
@@ -49,20 +63,35 @@ var namedSchemas = {
49
63
  ActionRun,
50
64
  ActionRunResponse,
51
65
  MediaTransform,
52
- Media,
53
- MediaResponse,
54
- MediaListResponse,
66
+ StoredFile,
67
+ UploadReference,
68
+ Upload,
69
+ UploadResponse,
70
+ UploadSignRequest,
71
+ UploadSignResponse,
72
+ FieldCheckRequest,
73
+ FieldCheckResponse,
74
+ MediaInfo,
75
+ MediaItem,
76
+ MediaReference,
55
77
  Session,
56
78
  SearchResponse,
57
- PreviewResponse
79
+ PreviewResponse,
80
+ EmbedValue,
81
+ EmbedResponse,
82
+ LocationValue
58
83
  };
59
84
  /** A registry of the named schemas, used to reference them by name in generated files. */
60
85
  function createSchemaRegistry() {
61
86
  const registry = z.registry();
62
87
  Object.entries(namedSchemas).forEach(([id, schema]) => registry.add(schema, { id }));
88
+ registry.add(Action, {
89
+ id: "Action",
90
+ ...actionJsonRules
91
+ });
63
92
  return registry;
64
93
  }
65
94
  //#endregion
66
- export { Abilities, Action, ActionConfirm, ActionItemResult, ActionPlacement, ActionRequest, ActionResult, ActionRun, ActionRunResponse, ActionScope, Auth, AuthProvider, BOOT_CONFIG_ELEMENT_ID, BUILT_IN_ACTIONS, BUILT_IN_FIELD_TYPES, BUILT_IN_LAYOUT_NODE_TYPES, BUILT_IN_LIST_LAYOUTS, BlockType, BootConfig, Column, Condition, Definition, Field, Filter, Id, Item, ItemResponse, LayoutNode, ListDefinition, ListResponse, Media, MediaListResponse, MediaResponse, MediaTransform, MenuItem, Option, PORTABLE_RULES, Page, Pagination, PreviewResponse, Problem, Resource, ResourceFeatures, RouteReference, Rule, SearchResponse, Selection, Session, Uploads, User, Widget, createSchemaRegistry, namedSchemas };
95
+ export { Abilities, Action, ActionConfirm, ActionItemResult, ActionPlacement, ActionRequest, ActionResult, ActionRun, ActionRunResponse, ActionScope, Auth, AuthProvider, AuthToken, BlockType, BootConfig, Column, Condition, CursorPagination, Definition, DefinitionTheme, EmbedResponse, EmbedValue, Field, FieldCheckRequest, FieldCheckResponse, Filter, Id, Item, ItemResponse, LayoutNode, ListDefinition, ListResponse, LocationValue, MediaInfo, MediaItem, MediaReference, MediaTransform, MenuItem, Option, Page, Pagination, PreviewResponse, Problem, Resource, ResourceFeatures, RichTextSettings, RichTextStyle, RouteReference, Rule, SearchResponse, Selection, Session, StoredFile, Theme, ThemeFont, ThemeFontFace, ThemeFontStylesheet, ThemeTokens, ToneInput, ToneValues, Upload, UploadReference, UploadResponse, UploadSignRequest, UploadSignResponse, Uploads, User, Widget, createSchemaRegistry, namedSchemas };
67
96
 
68
97
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Action, ActionConfirm, ActionPlacement, ActionScope } from './action';\nimport {\n ActionItemResult,\n ActionRequest,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n Item,\n ItemResponse,\n ListResponse,\n Media,\n MediaListResponse,\n MediaResponse,\n MediaTransform,\n Pagination,\n PreviewResponse,\n Problem,\n SearchResponse,\n Selection,\n Session,\n} from './api';\nimport { Abilities, Condition, Id, Option, RouteReference } from './common';\nimport {\n Auth,\n AuthProvider,\n Definition,\n MenuItem,\n Page,\n Uploads,\n User,\n Widget,\n} from './definition';\nimport { BlockType, Field, Rule } from './field';\nimport { LayoutNode } from './layout';\nimport { Column, Filter, ListDefinition } from './list';\nimport { Resource, ResourceFeatures } from './resource';\n\nexport * from './common';\nexport * from './field';\nexport * from './layout';\nexport * from './list';\nexport * from './action';\nexport * from './resource';\nexport * from './definition';\nexport * from './api';\nexport * from './boot';\n\n/** The named schemas of the protocol, as they appear in the generated JSON Schema and OpenAPI files. */\nexport const namedSchemas = {\n Id,\n Abilities,\n RouteReference,\n Condition,\n Option,\n Rule,\n BlockType,\n Field,\n LayoutNode,\n Column,\n Filter,\n ListDefinition,\n ActionScope,\n ActionPlacement,\n ActionConfirm,\n Action,\n ResourceFeatures,\n Resource,\n User,\n AuthProvider,\n Auth,\n MenuItem,\n Page,\n Widget,\n Uploads,\n Definition,\n Item,\n Pagination,\n ItemResponse,\n ListResponse,\n Problem,\n Selection,\n ActionRequest,\n ActionItemResult,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n MediaTransform,\n Media,\n MediaResponse,\n MediaListResponse,\n Session,\n SearchResponse,\n PreviewResponse,\n} satisfies Record<string, z.ZodType>;\n\n/** A registry of the named schemas, used to reference them by name in generated files. */\nexport function createSchemaRegistry() {\n const registry = z.registry<{ id: string }>();\n Object.entries(namedSchemas).forEach(([id, schema]) => registry.add(schema, { id }));\n return registry;\n}\n"],"mappings":";;;;;;;;;;;;AAkDA,IAAa,eAAe;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;;AAGA,SAAgB,uBAAuB;CACnC,MAAM,WAAW,EAAE,SAAyB;CAC5C,OAAO,QAAQ,YAAY,CAAC,CAAC,SAAS,CAAC,IAAI,YAAY,SAAS,IAAI,QAAQ,EAAE,GAAG,CAAC,CAAC;CACnF,OAAO;AACX"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Action, ActionConfirm, ActionPlacement, ActionScope } from './action';\nimport {\n ActionItemResult,\n ActionRequest,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n CursorPagination,\n EmbedResponse,\n EmbedValue,\n FieldCheckRequest,\n FieldCheckResponse,\n Item,\n ItemResponse,\n ListResponse,\n LocationValue,\n MediaInfo,\n MediaItem,\n MediaReference,\n MediaTransform,\n Pagination,\n PreviewResponse,\n Problem,\n SearchResponse,\n Selection,\n Session,\n StoredFile,\n Upload,\n UploadReference,\n UploadResponse,\n UploadSignRequest,\n UploadSignResponse,\n} from './api';\nimport { Abilities, Condition, Id, Option, RouteReference } from './common';\nimport {\n Auth,\n AuthProvider,\n AuthToken,\n Definition,\n MenuItem,\n Page,\n Uploads,\n User,\n Widget,\n} from './definition';\nimport { BlockType, Field, RichTextSettings, RichTextStyle, Rule } from './field';\nimport { actionJsonRules } from './jsonRules';\nimport { LayoutNode } from './layout';\nimport { Column, Filter, ListDefinition } from './list';\nimport { Resource, ResourceFeatures } from './resource';\nimport {\n DefinitionTheme,\n Theme,\n ThemeFont,\n ThemeFontFace,\n ThemeFontStylesheet,\n ThemeTokens,\n ToneInput,\n ToneValues,\n} from './theme';\n\nexport * from './common';\nexport * from './field';\nexport * from './layout';\nexport * from './list';\nexport * from './action';\nexport * from './resource';\nexport * from './theme';\nexport * from './definition';\nexport * from './api';\nexport * from './boot';\n\n/** The named schemas of the protocol, as they appear in the generated JSON Schema and OpenAPI files. */\nexport const namedSchemas = {\n Id,\n Abilities,\n RouteReference,\n Condition,\n Option,\n Rule,\n BlockType,\n Field,\n RichTextStyle,\n RichTextSettings,\n LayoutNode,\n Column,\n Filter,\n ListDefinition,\n ActionScope,\n ActionPlacement,\n ActionConfirm,\n Action,\n ResourceFeatures,\n Resource,\n User,\n AuthProvider,\n AuthToken,\n Auth,\n MenuItem,\n Page,\n Widget,\n Uploads,\n ThemeTokens,\n ToneValues,\n ToneInput,\n ThemeFontFace,\n ThemeFontStylesheet,\n ThemeFont,\n Theme,\n DefinitionTheme,\n Definition,\n Item,\n Pagination,\n CursorPagination,\n ItemResponse,\n ListResponse,\n Problem,\n Selection,\n ActionRequest,\n ActionItemResult,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n MediaTransform,\n StoredFile,\n UploadReference,\n Upload,\n UploadResponse,\n UploadSignRequest,\n UploadSignResponse,\n FieldCheckRequest,\n FieldCheckResponse,\n MediaInfo,\n MediaItem,\n MediaReference,\n Session,\n SearchResponse,\n PreviewResponse,\n EmbedValue,\n EmbedResponse,\n LocationValue,\n} satisfies Record<string, z.ZodType>;\n\n/** A registry of the named schemas, used to reference them by name in generated files. */\nexport function createSchemaRegistry() {\n const registry = z.registry<{ id: string } & Record<string, unknown>>();\n Object.entries(namedSchemas).forEach(([id, schema]) => registry.add(schema, { id }));\n // Checks that Zod makes in code, which the JSON Schema of the definition must make too.\n registry.add(Action, { id: 'Action', ...actionJsonRules });\n return registry;\n}\n"],"mappings":";;;;;;;;;;;;;;AA2EA,IAAa,eAAe;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;;AAGA,SAAgB,uBAAuB;CACnC,MAAM,WAAW,EAAE,SAAmD;CACtE,OAAO,QAAQ,YAAY,CAAC,CAAC,SAAS,CAAC,IAAI,YAAY,SAAS,IAAI,QAAQ,EAAE,GAAG,CAAC,CAAC;CAEnF,SAAS,IAAI,QAAQ;EAAE,IAAI;EAAU,GAAG;CAAgB,CAAC;CACzD,OAAO;AACX"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * The checks of `Action` that its `superRefine` makes in Zod, as JSON Schema keywords, so that the
3
+ * generated files check them too: backends validate their definitions against those files.
4
+ */
5
+ export declare const actionJsonRules: {
6
+ allOf: ({
7
+ if: {
8
+ properties: {
9
+ id: {
10
+ enum: ("show" | "edit" | "duplicate" | "delete")[];
11
+ not?: undefined;
12
+ };
13
+ kind?: undefined;
14
+ };
15
+ required: string[];
16
+ };
17
+ else: {
18
+ required: string[];
19
+ };
20
+ then?: undefined;
21
+ } | {
22
+ if: {
23
+ properties: {
24
+ id: {
25
+ enum: ("show" | "edit")[];
26
+ not?: undefined;
27
+ };
28
+ kind?: undefined;
29
+ };
30
+ required: string[];
31
+ };
32
+ then: {
33
+ properties: {
34
+ kind: {
35
+ const: string;
36
+ };
37
+ };
38
+ required: string[];
39
+ anyOf?: undefined;
40
+ };
41
+ else?: undefined;
42
+ } | {
43
+ if: {
44
+ properties: {
45
+ kind: {
46
+ const: string;
47
+ };
48
+ id: {
49
+ not: {
50
+ enum: ("show" | "edit")[];
51
+ };
52
+ enum?: undefined;
53
+ };
54
+ };
55
+ required: string[];
56
+ };
57
+ then: {
58
+ anyOf: {
59
+ required: string[];
60
+ }[];
61
+ properties?: undefined;
62
+ required?: undefined;
63
+ };
64
+ else?: undefined;
65
+ } | {
66
+ if: {
67
+ properties: {
68
+ kind: {
69
+ const: string;
70
+ };
71
+ id?: undefined;
72
+ };
73
+ required: string[];
74
+ };
75
+ then: {
76
+ required: string[];
77
+ properties?: undefined;
78
+ anyOf?: undefined;
79
+ };
80
+ else?: undefined;
81
+ })[];
82
+ };
83
+ //# sourceMappingURL=jsonRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonRules.d.ts","sourceRoot":"","sources":["../../src/schemas/jsonRules.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B3B,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { BUILT_IN_ITEM_ACTIONS, BUILT_IN_LINK_ACTIONS } from "../constants.js";
2
+ //#region src/schemas/jsonRules.ts
3
+ /**
4
+ * The checks of `Action` that its `superRefine` makes in Zod, as JSON Schema keywords, so that the
5
+ * generated files check them too: backends validate their definitions against those files.
6
+ */
7
+ var actionJsonRules = { allOf: [
8
+ {
9
+ if: {
10
+ properties: { id: { enum: [...BUILT_IN_ITEM_ACTIONS] } },
11
+ required: ["id"]
12
+ },
13
+ else: { required: ["label"] }
14
+ },
15
+ {
16
+ if: {
17
+ properties: { id: { enum: [...BUILT_IN_LINK_ACTIONS] } },
18
+ required: ["id"]
19
+ },
20
+ then: {
21
+ properties: { kind: { const: "link" } },
22
+ required: ["kind"]
23
+ }
24
+ },
25
+ {
26
+ if: {
27
+ properties: {
28
+ kind: { const: "link" },
29
+ id: { not: { enum: [...BUILT_IN_LINK_ACTIONS] } }
30
+ },
31
+ required: ["kind", "id"]
32
+ },
33
+ then: { anyOf: [{ required: ["url"] }, { required: ["route"] }] }
34
+ },
35
+ {
36
+ if: {
37
+ properties: { kind: { const: "client" } },
38
+ required: ["kind"]
39
+ },
40
+ then: { required: ["component"] }
41
+ }
42
+ ] };
43
+ //#endregion
44
+ export { actionJsonRules };
45
+
46
+ //# sourceMappingURL=jsonRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonRules.js","names":[],"sources":["../../src/schemas/jsonRules.ts"],"sourcesContent":["import { BUILT_IN_ITEM_ACTIONS, BUILT_IN_LINK_ACTIONS } from '../constants';\n\n/**\n * The checks of `Action` that its `superRefine` makes in Zod, as JSON Schema keywords, so that the\n * generated files check them too: backends validate their definitions against those files.\n */\nexport const actionJsonRules = {\n allOf: [\n {\n // The built-in item actions need no label: the client labels them.\n if: { properties: { id: { enum: [...BUILT_IN_ITEM_ACTIONS] } }, required: ['id'] },\n else: { required: ['label'] },\n },\n {\n // The ids of the built-in links are only for links.\n if: { properties: { id: { enum: [...BUILT_IN_LINK_ACTIONS] } }, required: ['id'] },\n then: { properties: { kind: { const: 'link' } }, required: ['kind'] },\n },\n {\n if: {\n properties: {\n kind: { const: 'link' },\n id: { not: { enum: [...BUILT_IN_LINK_ACTIONS] } },\n },\n required: ['kind', 'id'],\n },\n then: { anyOf: [{ required: ['url'] }, { required: ['route'] }] },\n },\n {\n if: { properties: { kind: { const: 'client' } }, required: ['kind'] },\n then: { required: ['component'] },\n },\n ],\n};\n"],"mappings":";;;;;;AAMA,IAAa,kBAAkB,EAC3B,OAAO;CACH;EAEI,IAAI;GAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,qBAAqB,EAAE,EAAE;GAAG,UAAU,CAAC,IAAI;EAAE;EACjF,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE;CAChC;CACA;EAEI,IAAI;GAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,qBAAqB,EAAE,EAAE;GAAG,UAAU,CAAC,IAAI;EAAE;EACjF,MAAM;GAAE,YAAY,EAAE,MAAM,EAAE,OAAO,OAAO,EAAE;GAAG,UAAU,CAAC,MAAM;EAAE;CACxE;CACA;EACI,IAAI;GACA,YAAY;IACR,MAAM,EAAE,OAAO,OAAO;IACtB,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,qBAAqB,EAAE,EAAE;GACpD;GACA,UAAU,CAAC,QAAQ,IAAI;EAC3B;EACA,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE;CACpE;CACA;EACI,IAAI;GAAE,YAAY,EAAE,MAAM,EAAE,OAAO,SAAS,EAAE;GAAG,UAAU,CAAC,MAAM;EAAE;EACpE,MAAM,EAAE,UAAU,CAAC,WAAW,EAAE;CACpC;AACJ,EACJ"}
@@ -1,7 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Condition } from './common';
3
- /** Layout node types every Panneau frontend renders. */
4
- export declare const BUILT_IN_LAYOUT_NODE_TYPES: readonly ["row", "column", "section", "tabs", "tab", "sidebar", "field", "text", "component"];
2
+ import { Condition } from './common.js';
5
3
  export declare const LayoutNode: z.ZodObject<{
6
4
  type: z.ZodString;
7
5
  name: z.ZodOptional<z.ZodString>;
@@ -24,6 +22,5 @@ export declare const LayoutNode: z.ZodObject<{
24
22
  }, z.core.$loose>>;
25
23
  children: z.ZodOptional<z.ZodArray<typeof LayoutNode>>;
26
24
  }, z.core.$loose>;
27
- export type BuiltInLayoutNodeType = (typeof BUILT_IN_LAYOUT_NODE_TYPES)[number];
28
25
  export type LayoutNode = z.infer<typeof LayoutNode>;
29
26
  //# sourceMappingURL=layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schemas/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wDAAwD;AACxD,eAAO,MAAM,0BAA0B,+FAU7B,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;cA0BC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;iBAO9D,CAAC;AAEP,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schemas/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;cA0BC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;iBAO9D,CAAC;AAEP,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,18 +1,6 @@
1
1
  import { Condition } from "./common.js";
2
2
  import { z } from "zod";
3
3
  //#region src/schemas/layout.ts
4
- /** Layout node types every Panneau frontend renders. */
5
- var BUILT_IN_LAYOUT_NODE_TYPES = [
6
- "row",
7
- "column",
8
- "section",
9
- "tabs",
10
- "tab",
11
- "sidebar",
12
- "field",
13
- "text",
14
- "component"
15
- ];
16
4
  var LayoutNode = z.looseObject({
17
5
  type: z.string().min(1).meta({ description: "A built-in node type, or a type provided by a plugin." }),
18
6
  name: z.string().min(1).optional().meta({ description: "`field`: the name of the field." }),
@@ -30,6 +18,6 @@ var LayoutNode = z.looseObject({
30
18
  }
31
19
  }).meta({ description: "A node of a form layout. Containers (`row`, `column`, `section`, `tabs`, `tab`, `sidebar`) have `children`. Fields that no node references are appended at the end of the form." });
32
20
  //#endregion
33
- export { BUILT_IN_LAYOUT_NODE_TYPES, LayoutNode };
21
+ export { LayoutNode };
34
22
 
35
23
  //# sourceMappingURL=layout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","names":[],"sources":["../../src/schemas/layout.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Condition } from './common';\n\n/** Layout node types every Panneau frontend renders. */\nexport const BUILT_IN_LAYOUT_NODE_TYPES = [\n 'row',\n 'column',\n 'section',\n 'tabs',\n 'tab',\n 'sidebar',\n 'field',\n 'text',\n 'component',\n] as const;\n\nexport const LayoutNode = z\n .looseObject({\n type: z\n .string()\n .min(1)\n .meta({ description: 'A built-in node type, or a type provided by a plugin.' }),\n name: z.string().min(1).optional().meta({ description: '`field`: the name of the field.' }),\n label: z.string().optional().meta({ description: '`section`, `tab`: the title.' }),\n description: z.string().optional(),\n text: z.string().optional().meta({ description: '`text`: a static paragraph.' }),\n component: z\n .string()\n .optional()\n .meta({ description: '`component`: a component provided by a plugin.' }),\n props: z.record(z.string(), z.unknown()).optional(),\n width: z\n .number()\n .int()\n .min(1)\n .max(12)\n .optional()\n .meta({ description: 'Width on a 12-column grid, inside a `row`.' }),\n collapsible: z.boolean().optional(),\n collapsed: z.boolean().optional(),\n visibleWhen: Condition.optional(),\n // The return type is written out so that declaration files keep the recursion.\n get children(): z.ZodOptional<z.ZodArray<typeof LayoutNode>> {\n return z.array(LayoutNode).optional();\n },\n })\n .meta({\n description:\n 'A node of a form layout. Containers (`row`, `column`, `section`, `tabs`, `tab`, `sidebar`) have `children`. Fields that no node references are appended at the end of the form.',\n });\n\nexport type BuiltInLayoutNodeType = (typeof BUILT_IN_LAYOUT_NODE_TYPES)[number];\nexport type LayoutNode = z.infer<typeof LayoutNode>;\n"],"mappings":";;;;AAKA,IAAa,6BAA6B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAEA,IAAa,aAAa,EACrB,YAAY;CACT,MAAM,EACD,OAAO,CAAC,CACR,IAAI,CAAC,CAAC,CACN,KAAK,EAAE,aAAa,wDAAwD,CAAC;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,kCAAkC,CAAC;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,+BAA+B,CAAC;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,8BAA8B,CAAC;CAC/E,WAAW,EACN,OAAO,CAAC,CACR,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,iDAAiD,CAAC;CAC3E,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;CAClD,OAAO,EACF,OAAO,CAAC,CACR,IAAI,CAAC,CACL,IAAI,CAAC,CAAC,CACN,IAAI,EAAE,CAAC,CACP,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,6CAA6C,CAAC;CACvE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChC,aAAa,UAAU,SAAS;CAEhC,IAAI,WAAyD;EACzD,OAAO,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS;CACxC;AACJ,CAAC,CAAC,CACD,KAAK,EACF,aACI,kLACR,CAAC"}
1
+ {"version":3,"file":"layout.js","names":[],"sources":["../../src/schemas/layout.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Condition } from './common';\n\nexport const LayoutNode = z\n .looseObject({\n type: z\n .string()\n .min(1)\n .meta({ description: 'A built-in node type, or a type provided by a plugin.' }),\n name: z.string().min(1).optional().meta({ description: '`field`: the name of the field.' }),\n label: z.string().optional().meta({ description: '`section`, `tab`: the title.' }),\n description: z.string().optional(),\n text: z.string().optional().meta({ description: '`text`: a static paragraph.' }),\n component: z\n .string()\n .optional()\n .meta({ description: '`component`: a component provided by a plugin.' }),\n props: z.record(z.string(), z.unknown()).optional(),\n width: z\n .number()\n .int()\n .min(1)\n .max(12)\n .optional()\n .meta({ description: 'Width on a 12-column grid, inside a `row`.' }),\n collapsible: z.boolean().optional(),\n collapsed: z.boolean().optional(),\n visibleWhen: Condition.optional(),\n // The return type is written out so that declaration files keep the recursion.\n get children(): z.ZodOptional<z.ZodArray<typeof LayoutNode>> {\n return z.array(LayoutNode).optional();\n },\n })\n .meta({\n description:\n 'A node of a form layout. Containers (`row`, `column`, `section`, `tabs`, `tab`, `sidebar`) have `children`. Fields that no node references are appended at the end of the form.',\n });\n\nexport type LayoutNode = z.infer<typeof LayoutNode>;\n"],"mappings":";;;AAIA,IAAa,aAAa,EACrB,YAAY;CACT,MAAM,EACD,OAAO,CAAC,CACR,IAAI,CAAC,CAAC,CACN,KAAK,EAAE,aAAa,wDAAwD,CAAC;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,kCAAkC,CAAC;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,+BAA+B,CAAC;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,8BAA8B,CAAC;CAC/E,WAAW,EACN,OAAO,CAAC,CACR,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,iDAAiD,CAAC;CAC3E,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;CAClD,OAAO,EACF,OAAO,CAAC,CACR,IAAI,CAAC,CACL,IAAI,CAAC,CAAC,CACN,IAAI,EAAE,CAAC,CACP,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,6CAA6C,CAAC;CACvE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChC,aAAa,UAAU,SAAS;CAEhC,IAAI,WAAyD;EACzD,OAAO,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS;CACxC;AACJ,CAAC,CAAC,CACD,KAAK,EACF,aACI,kLACR,CAAC"}
@@ -1,6 +1,4 @@
1
1
  import { z } from 'zod';
2
- /** List layouts every Panneau frontend renders. Plugins add others. */
3
- export declare const BUILT_IN_LIST_LAYOUTS: readonly ["table", "cards", "gallery", "calendar"];
4
2
  export declare const Column: z.ZodObject<{
5
3
  field: z.ZodOptional<z.ZodString>;
6
4
  id: z.ZodOptional<z.ZodString>;
@@ -23,6 +21,7 @@ export declare const Filter: z.ZodObject<{
23
21
  label: z.ZodString;
24
22
  description: z.ZodOptional<z.ZodString>;
25
23
  disabled: z.ZodOptional<z.ZodBoolean>;
24
+ tone: z.ZodOptional<z.ZodString>;
26
25
  }, z.core.$loose>>>;
27
26
  resource: z.ZodOptional<z.ZodString>;
28
27
  multiple: z.ZodOptional<z.ZodBoolean>;
@@ -51,6 +50,7 @@ export declare const ListDefinition: z.ZodObject<{
51
50
  label: z.ZodString;
52
51
  description: z.ZodOptional<z.ZodString>;
53
52
  disabled: z.ZodOptional<z.ZodBoolean>;
53
+ tone: z.ZodOptional<z.ZodString>;
54
54
  }, z.core.$loose>>>;
55
55
  resource: z.ZodOptional<z.ZodString>;
56
56
  multiple: z.ZodOptional<z.ZodBoolean>;
@@ -62,10 +62,13 @@ export declare const ListDefinition: z.ZodObject<{
62
62
  layouts: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
63
  perPage: z.ZodOptional<z.ZodNumber>;
64
64
  perPageOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
65
+ pagination: z.ZodOptional<z.ZodEnum<{
66
+ pages: "pages";
67
+ cursor: "cursor";
68
+ }>>;
65
69
  inlineEdit: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
70
  selectable: z.ZodOptional<z.ZodBoolean>;
67
71
  }, z.core.$loose>;
68
- export type BuiltInListLayout = (typeof BUILT_IN_LIST_LAYOUTS)[number];
69
72
  export type Column = z.infer<typeof Column>;
70
73
  export type Filter = z.infer<typeof Filter>;
71
74
  export type ListDefinition = z.infer<typeof ListDefinition>;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/schemas/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,oDAAqD,CAAC;AAExF,eAAO,MAAM,MAAM;;;;;;;;;;;;iBAgBb,CAAC;AAEP,eAAO,MAAM,MAAM;;;;;;;;;;;;;iBAUjB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBzB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAC5C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAC5C,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/schemas/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,MAAM;;;;;;;;;;;;iBAgBb,CAAC;AAEP,eAAO,MAAM,MAAM;;;;;;;;;;;;;;iBAWjB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBzB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAC5C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAC5C,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -1,13 +1,6 @@
1
1
  import { Option } from "./common.js";
2
2
  import { z } from "zod";
3
3
  //#region src/schemas/list.ts
4
- /** List layouts every Panneau frontend renders. Plugins add others. */
5
- var BUILT_IN_LIST_LAYOUTS = [
6
- "table",
7
- "cards",
8
- "gallery",
9
- "calendar"
10
- ];
11
4
  var Column = z.looseObject({
12
5
  field: z.string().min(1).optional().meta({ description: "The field shown in the column." }),
13
6
  id: z.string().min(1).optional().meta({ description: "Id of a column that is not a field." }),
@@ -23,7 +16,7 @@ var Column = z.looseObject({
23
16
  }).refine((column) => column.field !== void 0 || column.id !== void 0, { message: "A column needs a `field` or an `id`." });
24
17
  var Filter = z.looseObject({
25
18
  id: z.string().min(1).meta({ description: "Sent as `filter[id]`." }),
26
- type: z.string().min(1).meta({ description: "Built-in: `text`, `select`, `toggle`, `date`, `date-range`, `relation`." }),
19
+ type: z.string().min(1).meta({ description: "Built-in: `text`, `select`, `toggle`, `date`, `date-range`, `relation`. A `date-range` value is the bounds of a range: `filter[id][from]` and `filter[id][to]`, days (`2026-01-31`), both inclusive and both optional." }),
27
20
  label: z.string().optional(),
28
21
  options: z.array(Option).optional(),
29
22
  resource: z.string().optional(),
@@ -39,10 +32,11 @@ var ListDefinition = z.looseObject({
39
32
  layouts: z.array(z.string().min(1)).optional(),
40
33
  perPage: z.number().int().positive().optional(),
41
34
  perPageOptions: z.array(z.number().int().positive()).optional(),
35
+ pagination: z.enum(["pages", "cursor"]).optional().meta({ description: "`pages` (the default): numbered pages, with a total. `cursor`: the list follows `nextCursor` of each page with the `cursor` parameter, without page numbers, for large lists that the backend can't count (decision 0039)." }),
42
36
  inlineEdit: z.array(z.string().min(1)).optional().meta({ description: "Fields editable in the list." }),
43
37
  selectable: z.boolean().optional()
44
38
  });
45
39
  //#endregion
46
- export { BUILT_IN_LIST_LAYOUTS, Column, Filter, ListDefinition };
40
+ export { Column, Filter, ListDefinition };
47
41
 
48
42
  //# sourceMappingURL=list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","names":[],"sources":["../../src/schemas/list.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Option } from './common';\n\n/** List layouts every Panneau frontend renders. Plugins add others. */\nexport const BUILT_IN_LIST_LAYOUTS = ['table', 'cards', 'gallery', 'calendar'] as const;\n\nexport const Column = z\n .looseObject({\n field: z.string().min(1).optional().meta({ description: 'The field shown in the column.' }),\n id: z\n .string()\n .min(1)\n .optional()\n .meta({ description: 'Id of a column that is not a field.' }),\n label: z.string().optional(),\n display: z.string().optional().meta({ description: 'How the value is displayed.' }),\n sortable: z.boolean().optional(),\n width: z.union([z.number(), z.string()]).optional(),\n align: z.enum(['start', 'center', 'end']).optional(),\n })\n .refine((column) => column.field !== undefined || column.id !== undefined, {\n message: 'A column needs a `field` or an `id`.',\n });\n\nexport const Filter = z.looseObject({\n id: z.string().min(1).meta({ description: 'Sent as `filter[id]`.' }),\n type: z.string().min(1).meta({\n description: 'Built-in: `text`, `select`, `toggle`, `date`, `date-range`, `relation`.',\n }),\n label: z.string().optional(),\n options: z.array(Option).optional(),\n resource: z.string().optional(),\n multiple: z.boolean().optional(),\n default: z.unknown().optional(),\n});\n\nexport const ListDefinition = z.looseObject({\n columns: z.array(Column).optional(),\n filters: z.array(Filter).optional(),\n sorts: z\n .array(z.string().min(1))\n .optional()\n .meta({ description: 'Fields the list can be sorted by.' }),\n defaultSort: z\n .string()\n .optional()\n .meta({ description: 'Same format as the `sort` query parameter: `-published_at,title`.' }),\n search: z.boolean().optional().meta({ description: 'Whether the `q` parameter is supported.' }),\n layouts: z.array(z.string().min(1)).optional(),\n perPage: z.number().int().positive().optional(),\n perPageOptions: z.array(z.number().int().positive()).optional(),\n inlineEdit: z\n .array(z.string().min(1))\n .optional()\n .meta({ description: 'Fields editable in the list.' }),\n selectable: z.boolean().optional(),\n});\n\nexport type BuiltInListLayout = (typeof BUILT_IN_LIST_LAYOUTS)[number];\nexport type Column = z.infer<typeof Column>;\nexport type Filter = z.infer<typeof Filter>;\nexport type ListDefinition = z.infer<typeof ListDefinition>;\n"],"mappings":";;;;AAKA,IAAa,wBAAwB;CAAC;CAAS;CAAS;CAAW;AAAU;AAE7E,IAAa,SAAS,EACjB,YAAY;CACT,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,iCAAiC,CAAC;CAC1F,IAAI,EACC,OAAO,CAAC,CACR,IAAI,CAAC,CAAC,CACN,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,sCAAsC,CAAC;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,SAAS,EAAE,OAAO,CAAC,CAAC,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0C,CAAC;CAC9F,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;CAC9D,YAAY,EACP,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACxB,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,+BAA+B,CAAC;CACzD,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS;AACrC,CAAC"}
1
+ {"version":3,"file":"list.js","names":[],"sources":["../../src/schemas/list.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Option } from './common';\n\nexport const Column = z\n .looseObject({\n field: z.string().min(1).optional().meta({ description: 'The field shown in the column.' }),\n id: z\n .string()\n .min(1)\n .optional()\n .meta({ description: 'Id of a column that is not a field.' }),\n label: z.string().optional(),\n display: z.string().optional().meta({ description: 'How the value is displayed.' }),\n sortable: z.boolean().optional(),\n width: z.union([z.number(), z.string()]).optional(),\n align: z.enum(['start', 'center', 'end']).optional(),\n })\n .refine((column) => column.field !== undefined || column.id !== undefined, {\n message: 'A column needs a `field` or an `id`.',\n });\n\nexport const Filter = z.looseObject({\n id: z.string().min(1).meta({ description: 'Sent as `filter[id]`.' }),\n type: z.string().min(1).meta({\n description:\n 'Built-in: `text`, `select`, `toggle`, `date`, `date-range`, `relation`. A `date-range` value is the bounds of a range: `filter[id][from]` and `filter[id][to]`, days (`2026-01-31`), both inclusive and both optional.',\n }),\n label: z.string().optional(),\n options: z.array(Option).optional(),\n resource: z.string().optional(),\n multiple: z.boolean().optional(),\n default: z.unknown().optional(),\n});\n\nexport const ListDefinition = z.looseObject({\n columns: z.array(Column).optional(),\n filters: z.array(Filter).optional(),\n sorts: z\n .array(z.string().min(1))\n .optional()\n .meta({ description: 'Fields the list can be sorted by.' }),\n defaultSort: z\n .string()\n .optional()\n .meta({ description: 'Same format as the `sort` query parameter: `-published_at,title`.' }),\n search: z.boolean().optional().meta({ description: 'Whether the `q` parameter is supported.' }),\n layouts: z.array(z.string().min(1)).optional(),\n perPage: z.number().int().positive().optional(),\n perPageOptions: z.array(z.number().int().positive()).optional(),\n pagination: z.enum(['pages', 'cursor']).optional().meta({\n description:\n \"`pages` (the default): numbered pages, with a total. `cursor`: the list follows `nextCursor` of each page with the `cursor` parameter, without page numbers, for large lists that the backend can't count (decision 0039).\",\n }),\n inlineEdit: z\n .array(z.string().min(1))\n .optional()\n .meta({ description: 'Fields editable in the list.' }),\n selectable: z.boolean().optional(),\n});\n\nexport type Column = z.infer<typeof Column>;\nexport type Filter = z.infer<typeof Filter>;\nexport type ListDefinition = z.infer<typeof ListDefinition>;\n"],"mappings":";;;AAIA,IAAa,SAAS,EACjB,YAAY;CACT,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,iCAAiC,CAAC;CAC1F,IAAI,EACC,OAAO,CAAC,CACR,IAAI,CAAC,CAAC,CACN,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,sCAAsC,CAAC;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,aAAa,8BAA8B,CAAC;CAClF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC/B,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAClD,OAAO,EAAE,KAAK;EAAC;EAAS;EAAU;CAAK,CAAC,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CACD,QAAQ,WAAW,OAAO,UAAU,KAAA,KAAa,OAAO,OAAO,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