@stndrds/schema 0.1.0-alpha.15 → 0.1.0-alpha.17
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/chunk-4D23X5XN.mjs +7257 -0
- package/dist/chunk-6RPWHMTH.mjs +7101 -0
- package/dist/chunk-BTVPMGYW.mjs +6327 -0
- package/dist/chunk-C7HZ55GJ.mjs +6882 -0
- package/dist/chunk-CMO3JEJL.mjs +7259 -0
- package/dist/chunk-JDUTFH3J.mjs +6940 -0
- package/dist/chunk-JWRGX3UW.mjs +7265 -0
- package/dist/chunk-OUSLILLE.mjs +7259 -0
- package/dist/chunk-PMJZPJDP.mjs +7265 -0
- package/dist/chunk-QAGN53HE.mjs +6327 -0
- package/dist/chunk-UUOAVXAI.mjs +6327 -0
- package/dist/chunk-VYZ3BOSB.mjs +6946 -0
- package/dist/chunk-XAX75NSP.mjs +6321 -0
- package/dist/chunk-YEV46K3M.mjs +7259 -0
- package/dist/chunk-ZG3PT3RL.mjs +6944 -0
- package/dist/index.d.mts +268 -4
- package/dist/index.d.ts +268 -4
- package/dist/index.js +1136 -168
- package/dist/index.mjs +35 -1
- package/dist/runtime--rp-TG-h.d.mts +5181 -0
- package/dist/runtime--rp-TG-h.d.ts +5181 -0
- package/dist/runtime-BPYJWZfC.d.mts +5130 -0
- package/dist/runtime-BPYJWZfC.d.ts +5130 -0
- package/dist/runtime-DRc_OhnM.d.mts +5142 -0
- package/dist/runtime-DRc_OhnM.d.ts +5142 -0
- package/dist/runtime-D_S3m9jf.d.mts +5142 -0
- package/dist/runtime-D_S3m9jf.d.ts +5142 -0
- package/dist/runtime-Db3rRxbJ.d.mts +4821 -0
- package/dist/runtime-Db3rRxbJ.d.ts +4821 -0
- package/dist/runtime-DlCiIIfr.d.mts +5130 -0
- package/dist/runtime-DlCiIIfr.d.ts +5130 -0
- package/dist/runtime-WqYxjhjJ.d.mts +5125 -0
- package/dist/runtime-WqYxjhjJ.d.ts +5125 -0
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +855 -222
- package/dist/runtime.mjs +5 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5,8 +5,13 @@ import {
|
|
|
5
5
|
CustomTabConfig,
|
|
6
6
|
DEFAULT_LABEL_FALLBACK,
|
|
7
7
|
DuplicateError,
|
|
8
|
+
EMPTY_VALUE_PLACEHOLDER,
|
|
8
9
|
FileNotFoundError,
|
|
9
10
|
FileService,
|
|
11
|
+
FlowBuilder,
|
|
12
|
+
FlowPageBuilder,
|
|
13
|
+
FlowRowBuilder,
|
|
14
|
+
FlowService,
|
|
10
15
|
ForbiddenError,
|
|
11
16
|
GeocodingService,
|
|
12
17
|
GlobalSearchService,
|
|
@@ -67,9 +72,12 @@ import {
|
|
|
67
72
|
currencyConfigSchema,
|
|
68
73
|
date,
|
|
69
74
|
dateConfigSchema,
|
|
75
|
+
enrichValuesWithSelectLabels,
|
|
70
76
|
extractAttributeNames,
|
|
71
77
|
file,
|
|
72
78
|
fileConfigSchema,
|
|
79
|
+
flow,
|
|
80
|
+
formatAttributeValue,
|
|
73
81
|
generateId,
|
|
74
82
|
generatePrefixedId,
|
|
75
83
|
getAttributeConfigSchema,
|
|
@@ -125,7 +133,7 @@ import {
|
|
|
125
133
|
verifyNativeObjectsSync,
|
|
126
134
|
verifyNativeViewsSync,
|
|
127
135
|
view
|
|
128
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-PMJZPJDP.mjs";
|
|
129
137
|
import {
|
|
130
138
|
ALL_SYSTEM_RESOURCES,
|
|
131
139
|
DEFAULT_ROLES,
|
|
@@ -232,6 +240,17 @@ function isNoValueOperator(operator) {
|
|
|
232
240
|
return NO_VALUE_OPERATORS.includes(operator);
|
|
233
241
|
}
|
|
234
242
|
|
|
243
|
+
// src/types/flows.ts
|
|
244
|
+
function isFlowDefinition(obj) {
|
|
245
|
+
return typeof obj === "object" && obj !== null && "slots" in obj && "pages" in obj && "relations" in obj && "status" in obj;
|
|
246
|
+
}
|
|
247
|
+
function isFlowPublished(flow2) {
|
|
248
|
+
return flow2.status === "published";
|
|
249
|
+
}
|
|
250
|
+
function isSystemFlow(flow2) {
|
|
251
|
+
return flow2.system === true;
|
|
252
|
+
}
|
|
253
|
+
|
|
235
254
|
// src/types/views.ts
|
|
236
255
|
function isFormTab(tab) {
|
|
237
256
|
return tab.type === "form";
|
|
@@ -242,6 +261,9 @@ function isTableTab(tab) {
|
|
|
242
261
|
function isCustomTab(tab) {
|
|
243
262
|
return tab.type === "custom";
|
|
244
263
|
}
|
|
264
|
+
function isActivityTab(tab) {
|
|
265
|
+
return tab.type === "activity";
|
|
266
|
+
}
|
|
245
267
|
|
|
246
268
|
// src/views/registry.ts
|
|
247
269
|
var ViewRegistry = class {
|
|
@@ -392,8 +414,13 @@ export {
|
|
|
392
414
|
DEFAULT_ROLE_LABELS,
|
|
393
415
|
DEFAULT_ROLE_PERMISSIONS,
|
|
394
416
|
DuplicateError,
|
|
417
|
+
EMPTY_VALUE_PLACEHOLDER,
|
|
395
418
|
FileNotFoundError,
|
|
396
419
|
FileService,
|
|
420
|
+
FlowBuilder,
|
|
421
|
+
FlowPageBuilder,
|
|
422
|
+
FlowRowBuilder,
|
|
423
|
+
FlowService,
|
|
397
424
|
ForbiddenError,
|
|
398
425
|
GeocodingService,
|
|
399
426
|
GlobalSearchService,
|
|
@@ -458,9 +485,12 @@ export {
|
|
|
458
485
|
currencyConfigSchema,
|
|
459
486
|
date,
|
|
460
487
|
dateConfigSchema,
|
|
488
|
+
enrichValuesWithSelectLabels,
|
|
461
489
|
extractAttributeNames,
|
|
462
490
|
file,
|
|
463
491
|
fileConfigSchema,
|
|
492
|
+
flow,
|
|
493
|
+
formatAttributeValue,
|
|
464
494
|
generateId,
|
|
465
495
|
generatePrefixedId,
|
|
466
496
|
getAttributeConfigSchema,
|
|
@@ -468,9 +498,12 @@ export {
|
|
|
468
498
|
getSyncPreview,
|
|
469
499
|
getViewSyncPreview,
|
|
470
500
|
group,
|
|
501
|
+
isActivityTab,
|
|
471
502
|
isAdvancedFilterState,
|
|
472
503
|
isCustomTab,
|
|
473
504
|
isDefaultRole,
|
|
505
|
+
isFlowDefinition,
|
|
506
|
+
isFlowPublished,
|
|
474
507
|
isForbiddenError,
|
|
475
508
|
isFormTab,
|
|
476
509
|
isLabelExpression,
|
|
@@ -479,6 +512,7 @@ export {
|
|
|
479
512
|
isProtectedResourceError,
|
|
480
513
|
isRecordComplete,
|
|
481
514
|
isSchemaError,
|
|
515
|
+
isSystemFlow,
|
|
482
516
|
isTableTab,
|
|
483
517
|
isValidationError,
|
|
484
518
|
location,
|