@yoyoboot/yoyo-admin-schema 10.5.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.
- package/dist/action-contract.d.ts +50 -0
- package/dist/action-contract.d.ts.map +1 -0
- package/dist/action-contract.js +185 -0
- package/dist/action-registry.d.ts +12 -0
- package/dist/action-registry.d.ts.map +1 -0
- package/dist/action-registry.js +23 -0
- package/dist/compiler.d.ts +17 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +1300 -0
- package/dist/contract-drift.d.ts +18 -0
- package/dist/contract-drift.d.ts.map +1 -0
- package/dist/contract-drift.js +32 -0
- package/dist/diagnostics.d.ts +19 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +8 -0
- package/dist/extension-registry.d.ts +13 -0
- package/dist/extension-registry.d.ts.map +1 -0
- package/dist/extension-registry.js +23 -0
- package/dist/field-registry.d.ts +12 -0
- package/dist/field-registry.d.ts.map +1 -0
- package/dist/field-registry.js +30 -0
- package/dist/generated/action-contract/action-contract-keys.d.ts +3 -0
- package/dist/generated/action-contract/action-contract-keys.d.ts.map +1 -0
- package/dist/generated/action-contract/action-contract-keys.js +50 -0
- package/dist/generated/action-contract/index.d.ts +534 -0
- package/dist/generated/action-contract/index.d.ts.map +1 -0
- package/dist/generated/action-contract/index.js +579 -0
- package/dist/generated-validation-contract.d.ts +36 -0
- package/dist/generated-validation-contract.d.ts.map +1 -0
- package/dist/generated-validation-contract.js +124 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/page-contract-linking.d.ts +36 -0
- package/dist/page-contract-linking.d.ts.map +1 -0
- package/dist/page-contract-linking.js +78 -0
- package/dist/project-check.d.ts +34 -0
- package/dist/project-check.d.ts.map +1 -0
- package/dist/project-check.js +151 -0
- package/dist/registry-diagnostics.d.ts +15 -0
- package/dist/registry-diagnostics.d.ts.map +1 -0
- package/dist/registry-diagnostics.js +41 -0
- package/dist/renderer-registry.d.ts +22 -0
- package/dist/renderer-registry.d.ts.map +1 -0
- package/dist/renderer-registry.js +33 -0
- package/dist/types.d.ts +290 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +49 -0
- package/package.json +30 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
export declare const YOYO_PAGE_KINDS: readonly ["query", "crud", "crud-ex"];
|
|
2
|
+
export type YoyoPageKind = (typeof YOYO_PAGE_KINDS)[number];
|
|
3
|
+
export declare const YOYO_FIELD_KINDS: readonly ["text", "password", "textarea", "number", "select", "multi-select", "switch", "date", "date-range", "remote-select", "tree-select"];
|
|
4
|
+
export type YoyoFieldKind = (typeof YOYO_FIELD_KINDS)[number];
|
|
5
|
+
export declare const YOYO_FILTER_OPERATORS: readonly ["contains", "equals", "startsWith", "gt", "gte", "lt", "lte", "between", "in", "on", "before", "after", "descendantOf"];
|
|
6
|
+
export type YoyoFilterOperator = (typeof YOYO_FILTER_OPERATORS)[number];
|
|
7
|
+
export declare const YOYO_RENDERERS: readonly ["text", "booleanBadge", "dateTime", "enum", "link"];
|
|
8
|
+
export type YoyoRenderer = (typeof YOYO_RENDERERS)[number];
|
|
9
|
+
export declare const YOYO_COLUMN_ROLES: readonly ["identity", "key", "status", "meta", "media", "action"];
|
|
10
|
+
export type YoyoColumnRole = (typeof YOYO_COLUMN_ROLES)[number];
|
|
11
|
+
export declare const YOYO_COLUMN_PRIORITIES: readonly ["high", "medium", "low"];
|
|
12
|
+
export type YoyoColumnPriority = (typeof YOYO_COLUMN_PRIORITIES)[number];
|
|
13
|
+
export declare const YOYO_MOBILE_PLACEMENTS: readonly ["headline", "supporting", "details", "hidden"];
|
|
14
|
+
export type YoyoMobilePlacement = (typeof YOYO_MOBILE_PLACEMENTS)[number];
|
|
15
|
+
export declare const YOYO_GRID_PRESENTATIONS: readonly ["grid", "priority-table", "record-list"];
|
|
16
|
+
export type YoyoGridPresentation = (typeof YOYO_GRID_PRESENTATIONS)[number];
|
|
17
|
+
export declare const YOYO_RENDERER_INPUT_KINDS: readonly ["cell-value", "record", "state"];
|
|
18
|
+
export type YoyoRendererInputKind = (typeof YOYO_RENDERER_INPUT_KINDS)[number];
|
|
19
|
+
export declare const YOYO_RENDERER_SLOTS: readonly ["cell", "record", "state"];
|
|
20
|
+
export type YoyoRendererSlot = (typeof YOYO_RENDERER_SLOTS)[number];
|
|
21
|
+
export interface YoyoRendererCapability {
|
|
22
|
+
key: string;
|
|
23
|
+
inputKind: YoyoRendererInputKind;
|
|
24
|
+
presentations: readonly YoyoGridPresentation[];
|
|
25
|
+
slots: readonly YoyoRendererSlot[];
|
|
26
|
+
}
|
|
27
|
+
export declare const YOYO_ACTION_KINDS: readonly ["refresh", "reset", "create", "edit", "delete", "disable", "addChild", "updateChild", "removeChild", "replaceRoles", "command"];
|
|
28
|
+
export type YoyoActionKind = (typeof YOYO_ACTION_KINDS)[number];
|
|
29
|
+
/**
|
|
30
|
+
* Serializable field lifecycle intent. The runtime must derive editability and
|
|
31
|
+
* defaults from this declaration, never from the field `key` (e.g. a `code`
|
|
32
|
+
* field must not trigger hidden read-only rules by name).
|
|
33
|
+
*/
|
|
34
|
+
export type YoyoFieldLifecyclePhase = 'create' | 'edit';
|
|
35
|
+
export interface YoyoFieldLifecycle {
|
|
36
|
+
/** Phases during which the field is editable. Default both create and edit. `never` = read-only everywhere. */
|
|
37
|
+
editableOn?: 'create' | 'edit' | 'both' | 'never';
|
|
38
|
+
/** Serialized default value applied only at create. Ignored when not editable at create. */
|
|
39
|
+
createDefault?: unknown;
|
|
40
|
+
/** Serialized default value applied only at edit. Ignored when not editable at edit. */
|
|
41
|
+
editDefault?: unknown;
|
|
42
|
+
/** Echo the server-loaded value in an update request while the field remains non-editable. */
|
|
43
|
+
submitOnEdit?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface YoyoFieldOption {
|
|
46
|
+
value: string;
|
|
47
|
+
label: string;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
children?: readonly YoyoFieldOption[];
|
|
50
|
+
}
|
|
51
|
+
export interface YoyoFieldSchema {
|
|
52
|
+
key: string;
|
|
53
|
+
kind: YoyoFieldKind | (string & {});
|
|
54
|
+
label: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
required?: boolean;
|
|
57
|
+
lifecycle?: YoyoFieldLifecycle;
|
|
58
|
+
/** Static option catalog for select, multi-select, or tree-select query fields. */
|
|
59
|
+
options?: readonly YoyoFieldOption[];
|
|
60
|
+
/** Typed Data Workbench option-source key. Required by remote-select; optional for tree-select. */
|
|
61
|
+
optionSource?: string;
|
|
62
|
+
/** Optional P1B query-workspace declaration. Omitted fields remain quick filters with their default operator. */
|
|
63
|
+
filter?: {
|
|
64
|
+
readonly quick?: boolean;
|
|
65
|
+
readonly operators?: readonly YoyoFilterOperator[];
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface YoyoColumnSchema {
|
|
69
|
+
key: string;
|
|
70
|
+
title: string;
|
|
71
|
+
renderer?: YoyoRenderer | (string & {});
|
|
72
|
+
sortable?: boolean;
|
|
73
|
+
role?: YoyoColumnRole;
|
|
74
|
+
priority?: YoyoColumnPriority;
|
|
75
|
+
mobilePlacement?: YoyoMobilePlacement;
|
|
76
|
+
recordRendererKey?: string;
|
|
77
|
+
/** CSV disclosure policy. Sensitive and disabled columns fail closed or remain excluded. */
|
|
78
|
+
export?: {
|
|
79
|
+
readonly mode: 'allowed' | 'sensitive' | 'disabled';
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface YoyoResponsiveColumnProvenance {
|
|
83
|
+
role: 'declared' | 'defaulted';
|
|
84
|
+
priority: 'declared' | 'defaulted';
|
|
85
|
+
mobilePlacement: 'declared' | 'defaulted';
|
|
86
|
+
recordRendererKey?: 'declared';
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Structured danger-action confirmation intent. Separate from the backend
|
|
90
|
+
* action contract (operation/permission/concurrency). The runtime requests
|
|
91
|
+
* confirmation through the confirm port; it must not carry UI copy or DTO
|
|
92
|
+
* strings here (see design Non-Goals).
|
|
93
|
+
*/
|
|
94
|
+
export type YoyoActionConfirmationIntent = 'destructive' | 'warning';
|
|
95
|
+
export type YoyoActionPlacement = 'page' | 'row' | 'bulk' | 'form';
|
|
96
|
+
export interface YoyoActionConfirmation {
|
|
97
|
+
intent: YoyoActionConfirmationIntent;
|
|
98
|
+
/** Entity field keys to surface in the confirmation dialog (e.g. code, name). */
|
|
99
|
+
subjectFields?: readonly string[];
|
|
100
|
+
}
|
|
101
|
+
export interface YoyoActionSchema {
|
|
102
|
+
key: string;
|
|
103
|
+
kind: YoyoActionKind | (string & {});
|
|
104
|
+
label?: string;
|
|
105
|
+
/** Optional authoring override; the compiler assigns a stable canonical default. */
|
|
106
|
+
placement?: YoyoActionPlacement;
|
|
107
|
+
permission?: string;
|
|
108
|
+
feature?: string;
|
|
109
|
+
contractKey?: string;
|
|
110
|
+
confirmation?: YoyoActionConfirmation;
|
|
111
|
+
/**
|
|
112
|
+
* Row-overlay extension key opened instead of a mutation when this action is
|
|
113
|
+
* invoked. Only valid for row placement, and the key must be declared in
|
|
114
|
+
* page.extensions with slot 'row-overlay'.
|
|
115
|
+
*/
|
|
116
|
+
rowOverlay?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface YoyoExtensionSchema {
|
|
119
|
+
key: string;
|
|
120
|
+
slot: YoyoExtensionSlot;
|
|
121
|
+
overlay?: 'dialog' | 'drawer';
|
|
122
|
+
}
|
|
123
|
+
export interface YoyoQuerySortSpec {
|
|
124
|
+
key: string;
|
|
125
|
+
direction: 'asc' | 'desc';
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Serializable query presentation intent. The single input for reset and URL
|
|
129
|
+
* hydrate; the runtime must not infer default sort, page size, or allowed URL
|
|
130
|
+
* parameters from business DTOs or route conventions.
|
|
131
|
+
*/
|
|
132
|
+
export interface YoyoQueryPresentation {
|
|
133
|
+
defaultSort?: YoyoQuerySortSpec;
|
|
134
|
+
pageSize?: number;
|
|
135
|
+
/** Filter field keys (plus reserved `page`/`pageSize`/`sort`) permitted in the address-bar URL. */
|
|
136
|
+
allowedUrlParams?: readonly string[];
|
|
137
|
+
}
|
|
138
|
+
export interface YoyoQuerySchema {
|
|
139
|
+
datasource: string;
|
|
140
|
+
fields?: readonly YoyoFieldSchema[];
|
|
141
|
+
defaultValues?: Record<string, unknown>;
|
|
142
|
+
presentation?: YoyoQueryPresentation;
|
|
143
|
+
}
|
|
144
|
+
export interface YoyoTableSchema {
|
|
145
|
+
rowKey: string;
|
|
146
|
+
columns: readonly YoyoColumnSchema[];
|
|
147
|
+
/** Client-side grouping of the currently loaded datasource result. */
|
|
148
|
+
grouping?: YoyoTableGroupingSchema;
|
|
149
|
+
/**
|
|
150
|
+
* Opt-in fixed-row virtualization capability. Omission preserves the
|
|
151
|
+
* ordinary semantic table and its complete DOM projection; pixel budgets
|
|
152
|
+
* remain an internal Data Workbench implementation detail.
|
|
153
|
+
*/
|
|
154
|
+
virtualization?: YoyoTableVirtualizationSchema;
|
|
155
|
+
}
|
|
156
|
+
export interface YoyoTableVirtualizationSchema {
|
|
157
|
+
mode: 'fixed';
|
|
158
|
+
}
|
|
159
|
+
export interface YoyoTableGroupingSchema {
|
|
160
|
+
mode: 'client';
|
|
161
|
+
columnKey: string;
|
|
162
|
+
defaultExpanded?: boolean;
|
|
163
|
+
}
|
|
164
|
+
export type YoyoRequestFixedValue = null | boolean | number | string | readonly YoyoRequestFixedValue[] | {
|
|
165
|
+
readonly [key: string]: YoyoRequestFixedValue;
|
|
166
|
+
};
|
|
167
|
+
export interface YoyoFormSchema {
|
|
168
|
+
fields: readonly YoyoFieldSchema[];
|
|
169
|
+
/** Static ownership of generated request fields; never an ignore list or executable mapping. */
|
|
170
|
+
request?: Partial<Record<'create' | 'update', {
|
|
171
|
+
fixedValues: Readonly<Record<string, YoyoRequestFixedValue>>;
|
|
172
|
+
}>>;
|
|
173
|
+
}
|
|
174
|
+
export interface YoyoPageSchemaCommon {
|
|
175
|
+
schemaVersion: 1;
|
|
176
|
+
pageKey: string;
|
|
177
|
+
title: string;
|
|
178
|
+
query: YoyoQuerySchema;
|
|
179
|
+
actions?: readonly YoyoActionSchema[];
|
|
180
|
+
}
|
|
181
|
+
export interface YoyoQueryPageSchema extends YoyoPageSchemaCommon {
|
|
182
|
+
pageKind: 'query';
|
|
183
|
+
table: YoyoTableSchema;
|
|
184
|
+
form?: never;
|
|
185
|
+
extensions?: never;
|
|
186
|
+
}
|
|
187
|
+
export interface YoyoCrudPageSchema extends YoyoPageSchemaCommon {
|
|
188
|
+
pageKind: 'crud';
|
|
189
|
+
table: YoyoTableSchema;
|
|
190
|
+
form: YoyoFormSchema;
|
|
191
|
+
extensions?: never;
|
|
192
|
+
}
|
|
193
|
+
export interface YoyoCrudExPageSchema extends YoyoPageSchemaCommon {
|
|
194
|
+
pageKind: 'crud-ex';
|
|
195
|
+
table: YoyoTableSchema;
|
|
196
|
+
form: YoyoFormSchema;
|
|
197
|
+
extensions: readonly YoyoExtensionSchema[];
|
|
198
|
+
}
|
|
199
|
+
export type YoyoPageSchema = YoyoQueryPageSchema | YoyoCrudPageSchema | YoyoCrudExPageSchema;
|
|
200
|
+
export type YoyoPageKindFromSchema = YoyoPageSchema['pageKind'];
|
|
201
|
+
export interface YoyoActionIR extends YoyoActionSchema {
|
|
202
|
+
placement: YoyoActionPlacement;
|
|
203
|
+
contract?: YoyoLinkedActionContract;
|
|
204
|
+
validation?: YoyoLinkedGeneratedValidationContract;
|
|
205
|
+
}
|
|
206
|
+
export interface YoyoSourceManifest {
|
|
207
|
+
schemaVersion: string;
|
|
208
|
+
generatorVersion: string;
|
|
209
|
+
sourceHash: string;
|
|
210
|
+
generatedBy: string;
|
|
211
|
+
generatedCommand: string;
|
|
212
|
+
}
|
|
213
|
+
export interface YoyoSourceLocation {
|
|
214
|
+
kind: 'typescript';
|
|
215
|
+
pageKey: string;
|
|
216
|
+
path?: string;
|
|
217
|
+
line?: number;
|
|
218
|
+
column?: number;
|
|
219
|
+
}
|
|
220
|
+
export interface YoyoSchemaCompileContext {
|
|
221
|
+
source: {
|
|
222
|
+
path: string;
|
|
223
|
+
line: number;
|
|
224
|
+
column: number;
|
|
225
|
+
};
|
|
226
|
+
manifest: YoyoSourceManifest;
|
|
227
|
+
registry: YoyoSchemaRegistryInput;
|
|
228
|
+
}
|
|
229
|
+
export interface YoyoPageIR extends Omit<YoyoPageSchema, 'query' | 'table' | 'form' | 'actions'> {
|
|
230
|
+
pageKind: YoyoPageKindFromSchema;
|
|
231
|
+
query: YoyoQuerySchema & {
|
|
232
|
+
fields: readonly YoyoFieldSchema[];
|
|
233
|
+
};
|
|
234
|
+
table?: YoyoTableSchema & {
|
|
235
|
+
columns: readonly (YoyoColumnSchema & {
|
|
236
|
+
renderer: string;
|
|
237
|
+
sortable: boolean;
|
|
238
|
+
role: YoyoColumnRole;
|
|
239
|
+
priority: YoyoColumnPriority;
|
|
240
|
+
mobilePlacement: YoyoMobilePlacement;
|
|
241
|
+
responsiveProvenance: YoyoResponsiveColumnProvenance;
|
|
242
|
+
})[];
|
|
243
|
+
};
|
|
244
|
+
form?: YoyoFormSchema;
|
|
245
|
+
actions: readonly YoyoActionIR[];
|
|
246
|
+
extensions: readonly YoyoExtensionSchema[];
|
|
247
|
+
source: YoyoSourceLocation;
|
|
248
|
+
}
|
|
249
|
+
export interface YoyoSchemaRegistryInput {
|
|
250
|
+
datasources?: readonly string[];
|
|
251
|
+
permissions?: readonly string[];
|
|
252
|
+
features?: readonly string[];
|
|
253
|
+
fields?: readonly string[];
|
|
254
|
+
renderers?: readonly string[];
|
|
255
|
+
rendererDefinitions?: readonly YoyoRendererCapability[];
|
|
256
|
+
actions?: readonly string[];
|
|
257
|
+
actionContracts?: YoyoActionContractCatalog;
|
|
258
|
+
validationContracts?: YoyoGeneratedValidationContractCatalog;
|
|
259
|
+
/** Generated validator keys available to the runtime adapter. */
|
|
260
|
+
validationContractExecutables?: readonly string[];
|
|
261
|
+
/** Typed lookup sources available to remote/tree query filters. */
|
|
262
|
+
filterOptionSources?: readonly string[];
|
|
263
|
+
extensions?: readonly YoyoExtensionDefinition[];
|
|
264
|
+
}
|
|
265
|
+
export interface YoyoSchemaUsageReport {
|
|
266
|
+
pageKey: string;
|
|
267
|
+
datasources: readonly string[];
|
|
268
|
+
permissions: readonly string[];
|
|
269
|
+
features: readonly string[];
|
|
270
|
+
fields: readonly string[];
|
|
271
|
+
renderers: readonly string[];
|
|
272
|
+
actions: readonly string[];
|
|
273
|
+
filterOptionSources: readonly string[];
|
|
274
|
+
}
|
|
275
|
+
export type YoyoSchemaCompileMode = 'project' | 'fixture';
|
|
276
|
+
export interface YoyoSchemaCompilerOptions {
|
|
277
|
+
mode?: YoyoSchemaCompileMode;
|
|
278
|
+
context?: YoyoSchemaCompileContext;
|
|
279
|
+
registry?: YoyoSchemaRegistryInput;
|
|
280
|
+
}
|
|
281
|
+
export interface YoyoSchemaDiffEntry {
|
|
282
|
+
kind: 'added' | 'removed' | 'changed';
|
|
283
|
+
path: string;
|
|
284
|
+
before?: unknown;
|
|
285
|
+
after?: unknown;
|
|
286
|
+
}
|
|
287
|
+
import type { YoyoActionContractCatalog, YoyoLinkedActionContract } from './action-contract.js';
|
|
288
|
+
import type { YoyoGeneratedValidationContractCatalog, YoyoLinkedGeneratedValidationContract } from './generated-validation-contract.js';
|
|
289
|
+
import type { YoyoExtensionDefinition, YoyoExtensionSlot } from './extension-registry.js';
|
|
290
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,uCAAwC,CAAA;AACpE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D,eAAO,MAAM,gBAAgB,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MAAM,EAAE,CAAA;CACvC;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEzD,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,qBAAqB,CAAA;IAC5B,OAAO,CAAC,EAAE,wBAAwB,CAAA;IAClC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AACD,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,KAAK,EACV,sCAAsC,EACtC,qCAAqC,EACtC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const YOYO_PAGE_KINDS = ['query', 'crud', 'crud-ex'];
|
|
2
|
+
export const YOYO_FIELD_KINDS = [
|
|
3
|
+
'text',
|
|
4
|
+
'password',
|
|
5
|
+
'textarea',
|
|
6
|
+
'number',
|
|
7
|
+
'select',
|
|
8
|
+
'multi-select',
|
|
9
|
+
'switch',
|
|
10
|
+
'date',
|
|
11
|
+
'date-range',
|
|
12
|
+
'remote-select',
|
|
13
|
+
'tree-select',
|
|
14
|
+
];
|
|
15
|
+
export const YOYO_FILTER_OPERATORS = [
|
|
16
|
+
'contains',
|
|
17
|
+
'equals',
|
|
18
|
+
'startsWith',
|
|
19
|
+
'gt',
|
|
20
|
+
'gte',
|
|
21
|
+
'lt',
|
|
22
|
+
'lte',
|
|
23
|
+
'between',
|
|
24
|
+
'in',
|
|
25
|
+
'on',
|
|
26
|
+
'before',
|
|
27
|
+
'after',
|
|
28
|
+
'descendantOf',
|
|
29
|
+
];
|
|
30
|
+
export const YOYO_RENDERERS = ['text', 'booleanBadge', 'dateTime', 'enum', 'link'];
|
|
31
|
+
export const YOYO_COLUMN_ROLES = ['identity', 'key', 'status', 'meta', 'media', 'action'];
|
|
32
|
+
export const YOYO_COLUMN_PRIORITIES = ['high', 'medium', 'low'];
|
|
33
|
+
export const YOYO_MOBILE_PLACEMENTS = ['headline', 'supporting', 'details', 'hidden'];
|
|
34
|
+
export const YOYO_GRID_PRESENTATIONS = ['grid', 'priority-table', 'record-list'];
|
|
35
|
+
export const YOYO_RENDERER_INPUT_KINDS = ['cell-value', 'record', 'state'];
|
|
36
|
+
export const YOYO_RENDERER_SLOTS = ['cell', 'record', 'state'];
|
|
37
|
+
export const YOYO_ACTION_KINDS = [
|
|
38
|
+
'refresh',
|
|
39
|
+
'reset',
|
|
40
|
+
'create',
|
|
41
|
+
'edit',
|
|
42
|
+
'delete',
|
|
43
|
+
'disable',
|
|
44
|
+
'addChild',
|
|
45
|
+
'updateChild',
|
|
46
|
+
'removeChild',
|
|
47
|
+
'replaceRoles',
|
|
48
|
+
'command',
|
|
49
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yoyoboot/yoyo-admin-schema",
|
|
3
|
+
"version": "10.5.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"zod": "^4.4.3"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/yoyoboot/YoyoBoot.git",
|
|
21
|
+
"directory": "packages/yoyo-admin/admin-schema"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/yoyoboot/YoyoBoot#readme",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/yoyoboot/YoyoBoot/issues"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
}
|
|
30
|
+
}
|