@uigraph/sdk 1.1.34
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/README.md +7 -0
- package/dist/__animated-nodes.CUxruu-b.cjs +1 -0
- package/dist/__animated-nodes.C_COfaOh.mjs +94 -0
- package/dist/__animated-nodes.CrIWsAOl.cjs +99 -0
- package/dist/__animated-nodes.DI0XYTuw.mjs +2 -0
- package/dist/__aws-icons.BEeU8uCn.cjs +1 -0
- package/dist/__aws-icons.Vs3L4Tqu.cjs +5920 -0
- package/dist/__aws-icons.agWBtDk7.mjs +2 -0
- package/dist/__aws-icons.d3E71nM8.mjs +5915 -0
- package/dist/__azure-icons.BpVFW8Gy.cjs +5552 -0
- package/dist/__azure-icons.CHjqkspj.mjs +5547 -0
- package/dist/__azure-icons.DJJasII-.cjs +1 -0
- package/dist/__azure-icons.DgR1F6C6.mjs +2 -0
- package/dist/__component-type.69UkUMKl.cjs +54 -0
- package/dist/__component-type.CO8FgnQE.d.mts +24 -0
- package/dist/__component-type.CYmD-KIu.mjs +23 -0
- package/dist/__component-type.tW2Xh7Xk.d.cts +24 -0
- package/dist/__headless.AhKww75N.cjs +110 -0
- package/dist/__headless.B7jwmaZK.d.cts +127 -0
- package/dist/__headless.CP3up7Jj.mjs +104 -0
- package/dist/__headless.DiJZCsKx.d.mts +127 -0
- package/dist/__index.BC7AYPW7.d.cts +116 -0
- package/dist/__index.Banqjcwy.d.mts +116 -0
- package/dist/animated-nodes.cjs +3 -0
- package/dist/animated-nodes.d.cts +16 -0
- package/dist/animated-nodes.d.mts +16 -0
- package/dist/animated-nodes.mjs +3 -0
- package/dist/aws-icons.cjs +3 -0
- package/dist/aws-icons.d.cts +11 -0
- package/dist/aws-icons.d.mts +11 -0
- package/dist/aws-icons.mjs +3 -0
- package/dist/azure-icons.cjs +3 -0
- package/dist/azure-icons.d.cts +11 -0
- package/dist/azure-icons.d.mts +11 -0
- package/dist/azure-icons.mjs +3 -0
- package/dist/browser.cjs +81 -0
- package/dist/browser.d.cts +10 -0
- package/dist/browser.d.mts +10 -0
- package/dist/browser.mjs +79 -0
- package/dist/headless.cjs +3 -0
- package/dist/headless.d.cts +3 -0
- package/dist/headless.d.mts +3 -0
- package/dist/headless.mjs +3 -0
- package/dist/index.cjs +4629 -0
- package/dist/index.d.cts +767 -0
- package/dist/index.d.mts +767 -0
- package/dist/index.mjs +4589 -0
- package/package.json +109 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_azure_icons = require("./__azure-icons.BpVFW8Gy.cjs");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
9
|
+
key = keys[i];
|
|
10
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
11
|
+
get: ((k) => from[k]).bind(null, key),
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
18
|
+
value: mod,
|
|
19
|
+
enumerable: true
|
|
20
|
+
}) : target, mod));
|
|
21
|
+
let ComponentInputType = /* @__PURE__ */ function(ComponentInputType$1) {
|
|
22
|
+
ComponentInputType$1["TextInput"] = "Text Input";
|
|
23
|
+
ComponentInputType$1["URLInput"] = "URL Input";
|
|
24
|
+
ComponentInputType$1["NumberInput"] = "Number Input";
|
|
25
|
+
ComponentInputType$1["TextBox"] = "Text Editor";
|
|
26
|
+
ComponentInputType$1["DatePicker"] = "Date Picker";
|
|
27
|
+
ComponentInputType$1["DropdownSelect"] = "Dropdown";
|
|
28
|
+
ComponentInputType$1["MultiSelect"] = "Multi Select";
|
|
29
|
+
ComponentInputType$1["BooleanToggle"] = "Boolean Toggle";
|
|
30
|
+
ComponentInputType$1["LinkOrFileUpload"] = "Link or File Upload";
|
|
31
|
+
ComponentInputType$1["RichTextEditor"] = "Rich Text Editor";
|
|
32
|
+
ComponentInputType$1["CodeEditor"] = "Code Editor";
|
|
33
|
+
ComponentInputType$1["KeyValueList"] = "Key-Value List";
|
|
34
|
+
ComponentInputType$1["TagInput"] = "Tag Input";
|
|
35
|
+
ComponentInputType$1["DateRangePicker"] = "Date Range Picker";
|
|
36
|
+
ComponentInputType$1["ColorPicker"] = "Color Picker";
|
|
37
|
+
ComponentInputType$1["Slider"] = "Slider";
|
|
38
|
+
ComponentInputType$1["FileUpload"] = "File Upload";
|
|
39
|
+
ComponentInputType$1["SearchSelect"] = "Search Select";
|
|
40
|
+
ComponentInputType$1["CheckboxGroup"] = "Checkbox Group";
|
|
41
|
+
return ComponentInputType$1;
|
|
42
|
+
}({});
|
|
43
|
+
Object.defineProperty(exports, "ComponentInputType", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function() {
|
|
46
|
+
return ComponentInputType;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "__toESM", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function() {
|
|
52
|
+
return __toESM;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/components/component-type.d.ts
|
|
2
|
+
declare enum ComponentInputType {
|
|
3
|
+
TextInput = "Text Input",
|
|
4
|
+
URLInput = "URL Input",
|
|
5
|
+
NumberInput = "Number Input",
|
|
6
|
+
TextBox = "Text Editor",
|
|
7
|
+
DatePicker = "Date Picker",
|
|
8
|
+
DropdownSelect = "Dropdown",
|
|
9
|
+
MultiSelect = "Multi Select",
|
|
10
|
+
BooleanToggle = "Boolean Toggle",
|
|
11
|
+
LinkOrFileUpload = "Link or File Upload",
|
|
12
|
+
RichTextEditor = "Rich Text Editor",
|
|
13
|
+
CodeEditor = "Code Editor",
|
|
14
|
+
KeyValueList = "Key-Value List",
|
|
15
|
+
TagInput = "Tag Input",
|
|
16
|
+
DateRangePicker = "Date Range Picker",
|
|
17
|
+
ColorPicker = "Color Picker",
|
|
18
|
+
Slider = "Slider",
|
|
19
|
+
FileUpload = "File Upload",
|
|
20
|
+
SearchSelect = "Search Select",
|
|
21
|
+
CheckboxGroup = "Checkbox Group",
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ComponentInputType as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
let ComponentInputType = /* @__PURE__ */ function(ComponentInputType$1) {
|
|
2
|
+
ComponentInputType$1["TextInput"] = "Text Input";
|
|
3
|
+
ComponentInputType$1["URLInput"] = "URL Input";
|
|
4
|
+
ComponentInputType$1["NumberInput"] = "Number Input";
|
|
5
|
+
ComponentInputType$1["TextBox"] = "Text Editor";
|
|
6
|
+
ComponentInputType$1["DatePicker"] = "Date Picker";
|
|
7
|
+
ComponentInputType$1["DropdownSelect"] = "Dropdown";
|
|
8
|
+
ComponentInputType$1["MultiSelect"] = "Multi Select";
|
|
9
|
+
ComponentInputType$1["BooleanToggle"] = "Boolean Toggle";
|
|
10
|
+
ComponentInputType$1["LinkOrFileUpload"] = "Link or File Upload";
|
|
11
|
+
ComponentInputType$1["RichTextEditor"] = "Rich Text Editor";
|
|
12
|
+
ComponentInputType$1["CodeEditor"] = "Code Editor";
|
|
13
|
+
ComponentInputType$1["KeyValueList"] = "Key-Value List";
|
|
14
|
+
ComponentInputType$1["TagInput"] = "Tag Input";
|
|
15
|
+
ComponentInputType$1["DateRangePicker"] = "Date Range Picker";
|
|
16
|
+
ComponentInputType$1["ColorPicker"] = "Color Picker";
|
|
17
|
+
ComponentInputType$1["Slider"] = "Slider";
|
|
18
|
+
ComponentInputType$1["FileUpload"] = "File Upload";
|
|
19
|
+
ComponentInputType$1["SearchSelect"] = "Search Select";
|
|
20
|
+
ComponentInputType$1["CheckboxGroup"] = "Checkbox Group";
|
|
21
|
+
return ComponentInputType$1;
|
|
22
|
+
}({});
|
|
23
|
+
export { ComponentInputType as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/components/component-type.d.ts
|
|
2
|
+
declare enum ComponentInputType {
|
|
3
|
+
TextInput = "Text Input",
|
|
4
|
+
URLInput = "URL Input",
|
|
5
|
+
NumberInput = "Number Input",
|
|
6
|
+
TextBox = "Text Editor",
|
|
7
|
+
DatePicker = "Date Picker",
|
|
8
|
+
DropdownSelect = "Dropdown",
|
|
9
|
+
MultiSelect = "Multi Select",
|
|
10
|
+
BooleanToggle = "Boolean Toggle",
|
|
11
|
+
LinkOrFileUpload = "Link or File Upload",
|
|
12
|
+
RichTextEditor = "Rich Text Editor",
|
|
13
|
+
CodeEditor = "Code Editor",
|
|
14
|
+
KeyValueList = "Key-Value List",
|
|
15
|
+
TagInput = "Tag Input",
|
|
16
|
+
DateRangePicker = "Date Range Picker",
|
|
17
|
+
ColorPicker = "Color Picker",
|
|
18
|
+
Slider = "Slider",
|
|
19
|
+
FileUpload = "File Upload",
|
|
20
|
+
SearchSelect = "Search Select",
|
|
21
|
+
CheckboxGroup = "Checkbox Group",
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ComponentInputType as t };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const require_component_type = require("./__component-type.69UkUMKl.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
zod = require_component_type.__toESM(zod);
|
|
4
|
+
const contextSchema = zod.default.object({
|
|
5
|
+
name: zod.default.string().optional(),
|
|
6
|
+
description: zod.default.string().optional(),
|
|
7
|
+
nodes: zod.default.record(zod.default.string(), zod.default.object({
|
|
8
|
+
type: zod.default.string().optional(),
|
|
9
|
+
name: zod.default.string().optional(),
|
|
10
|
+
value: zod.default.string().optional(),
|
|
11
|
+
cloud: zod.default.string().optional(),
|
|
12
|
+
service: zod.default.string().optional(),
|
|
13
|
+
src: zod.default.string().optional(),
|
|
14
|
+
animatedIcon: zod.default.string().optional(),
|
|
15
|
+
componentId: zod.default.string().optional(),
|
|
16
|
+
shape: zod.default.enum([
|
|
17
|
+
"rectangle",
|
|
18
|
+
"rounded-rect",
|
|
19
|
+
"ellipse",
|
|
20
|
+
"diamond",
|
|
21
|
+
"triangle",
|
|
22
|
+
"parallelogram",
|
|
23
|
+
"trapezoid",
|
|
24
|
+
"hexagon",
|
|
25
|
+
"document",
|
|
26
|
+
"cylinder",
|
|
27
|
+
"delay",
|
|
28
|
+
"off-page-connector",
|
|
29
|
+
"display",
|
|
30
|
+
"collate",
|
|
31
|
+
"sort",
|
|
32
|
+
"terminator",
|
|
33
|
+
"or",
|
|
34
|
+
"database",
|
|
35
|
+
"multiple-documents",
|
|
36
|
+
"subroutine",
|
|
37
|
+
"manual-input",
|
|
38
|
+
"summing-junction",
|
|
39
|
+
"internal-storage"
|
|
40
|
+
]).optional(),
|
|
41
|
+
data: zod.default.record(zod.default.string(), zod.default.object({
|
|
42
|
+
type: zod.default.enum(Object.values(require_component_type.ComponentInputType)),
|
|
43
|
+
options: zod.default.array(zod.default.string()).optional(),
|
|
44
|
+
value: zod.default.unknown()
|
|
45
|
+
})).optional(),
|
|
46
|
+
style: zod.default.object({
|
|
47
|
+
width: zod.default.number().optional(),
|
|
48
|
+
height: zod.default.number().optional(),
|
|
49
|
+
fill: zod.default.string().optional(),
|
|
50
|
+
stroke: zod.default.string().optional(),
|
|
51
|
+
strokeWidth: zod.default.number().optional(),
|
|
52
|
+
borderRadius: zod.default.number().optional(),
|
|
53
|
+
strokeStyle: zod.default.enum([
|
|
54
|
+
"solid",
|
|
55
|
+
"dashed",
|
|
56
|
+
"dotted"
|
|
57
|
+
]).optional(),
|
|
58
|
+
borderAnimationEnabled: zod.default.boolean().optional()
|
|
59
|
+
}).optional(),
|
|
60
|
+
dbConfig: zod.default.object({
|
|
61
|
+
service: zod.default.string(),
|
|
62
|
+
database: zod.default.string(),
|
|
63
|
+
tableName: zod.default.string()
|
|
64
|
+
}).optional(),
|
|
65
|
+
table: zod.default.object({
|
|
66
|
+
columns: zod.default.string().array(),
|
|
67
|
+
rows: zod.default.array(zod.default.array(zod.default.string()))
|
|
68
|
+
}).optional(),
|
|
69
|
+
___internal: zod.default.record(zod.default.string(), zod.default.unknown()).optional(),
|
|
70
|
+
___position: zod.default.object({
|
|
71
|
+
x: zod.default.number(),
|
|
72
|
+
y: zod.default.number()
|
|
73
|
+
}).optional()
|
|
74
|
+
})).optional(),
|
|
75
|
+
edges: zod.default.record(zod.default.string(), zod.default.object({
|
|
76
|
+
type: zod.default.string().optional(),
|
|
77
|
+
sourceHandle: zod.default.string().optional(),
|
|
78
|
+
targetHandle: zod.default.string().optional(),
|
|
79
|
+
label: zod.default.string().optional(),
|
|
80
|
+
style: zod.default.object({
|
|
81
|
+
stroke: zod.default.string().optional(),
|
|
82
|
+
strokeWidth: zod.default.number().optional(),
|
|
83
|
+
strokeStyle: zod.default.enum([
|
|
84
|
+
"solid",
|
|
85
|
+
"dashed",
|
|
86
|
+
"dotted"
|
|
87
|
+
]).optional(),
|
|
88
|
+
borderAnimationEnabled: zod.default.boolean().optional()
|
|
89
|
+
}).optional(),
|
|
90
|
+
markerStart: zod.default.object({
|
|
91
|
+
type: zod.default.string(),
|
|
92
|
+
color: zod.default.string().optional()
|
|
93
|
+
}).optional(),
|
|
94
|
+
markerEnd: zod.default.object({
|
|
95
|
+
type: zod.default.string(),
|
|
96
|
+
color: zod.default.string().optional()
|
|
97
|
+
}).optional(),
|
|
98
|
+
___internal: zod.default.record(zod.default.string(), zod.default.unknown()).optional()
|
|
99
|
+
})).optional(),
|
|
100
|
+
groups: zod.default.record(zod.default.string(), zod.default.object({
|
|
101
|
+
name: zod.default.string().optional(),
|
|
102
|
+
nodes: zod.default.string().array().optional()
|
|
103
|
+
})).optional()
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "contextSchema", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function() {
|
|
108
|
+
return contextSchema;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { t as ComponentInputType } from "./__component-type.tW2Xh7Xk.cjs";
|
|
2
|
+
import z$1 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/mermaid-converter/context/context-schema.d.ts
|
|
5
|
+
declare const contextSchema: z$1.ZodObject<{
|
|
6
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
7
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
8
|
+
nodes: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
9
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
10
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
11
|
+
value: z$1.ZodOptional<z$1.ZodString>;
|
|
12
|
+
cloud: z$1.ZodOptional<z$1.ZodString>;
|
|
13
|
+
service: z$1.ZodOptional<z$1.ZodString>;
|
|
14
|
+
src: z$1.ZodOptional<z$1.ZodString>;
|
|
15
|
+
animatedIcon: z$1.ZodOptional<z$1.ZodString>;
|
|
16
|
+
componentId: z$1.ZodOptional<z$1.ZodString>;
|
|
17
|
+
shape: z$1.ZodOptional<z$1.ZodEnum<{
|
|
18
|
+
rectangle: "rectangle";
|
|
19
|
+
"rounded-rect": "rounded-rect";
|
|
20
|
+
ellipse: "ellipse";
|
|
21
|
+
diamond: "diamond";
|
|
22
|
+
triangle: "triangle";
|
|
23
|
+
parallelogram: "parallelogram";
|
|
24
|
+
trapezoid: "trapezoid";
|
|
25
|
+
hexagon: "hexagon";
|
|
26
|
+
document: "document";
|
|
27
|
+
cylinder: "cylinder";
|
|
28
|
+
delay: "delay";
|
|
29
|
+
"off-page-connector": "off-page-connector";
|
|
30
|
+
display: "display";
|
|
31
|
+
collate: "collate";
|
|
32
|
+
sort: "sort";
|
|
33
|
+
terminator: "terminator";
|
|
34
|
+
or: "or";
|
|
35
|
+
database: "database";
|
|
36
|
+
"multiple-documents": "multiple-documents";
|
|
37
|
+
subroutine: "subroutine";
|
|
38
|
+
"manual-input": "manual-input";
|
|
39
|
+
"summing-junction": "summing-junction";
|
|
40
|
+
"internal-storage": "internal-storage";
|
|
41
|
+
}>>;
|
|
42
|
+
data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
43
|
+
type: z$1.ZodEnum<{
|
|
44
|
+
"Text Input": ComponentInputType.TextInput;
|
|
45
|
+
"URL Input": ComponentInputType.URLInput;
|
|
46
|
+
"Number Input": ComponentInputType.NumberInput;
|
|
47
|
+
"Text Editor": ComponentInputType.TextBox;
|
|
48
|
+
"Date Picker": ComponentInputType.DatePicker;
|
|
49
|
+
Dropdown: ComponentInputType.DropdownSelect;
|
|
50
|
+
"Multi Select": ComponentInputType.MultiSelect;
|
|
51
|
+
"Boolean Toggle": ComponentInputType.BooleanToggle;
|
|
52
|
+
"Link or File Upload": ComponentInputType.LinkOrFileUpload;
|
|
53
|
+
"Rich Text Editor": ComponentInputType.RichTextEditor;
|
|
54
|
+
"Code Editor": ComponentInputType.CodeEditor;
|
|
55
|
+
"Key-Value List": ComponentInputType.KeyValueList;
|
|
56
|
+
"Tag Input": ComponentInputType.TagInput;
|
|
57
|
+
"Date Range Picker": ComponentInputType.DateRangePicker;
|
|
58
|
+
"Color Picker": ComponentInputType.ColorPicker;
|
|
59
|
+
Slider: ComponentInputType.Slider;
|
|
60
|
+
"File Upload": ComponentInputType.FileUpload;
|
|
61
|
+
"Search Select": ComponentInputType.SearchSelect;
|
|
62
|
+
"Checkbox Group": ComponentInputType.CheckboxGroup;
|
|
63
|
+
}>;
|
|
64
|
+
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
65
|
+
value: z$1.ZodUnknown;
|
|
66
|
+
}, z$1.core.$strip>>>;
|
|
67
|
+
style: z$1.ZodOptional<z$1.ZodObject<{
|
|
68
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
69
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
70
|
+
fill: z$1.ZodOptional<z$1.ZodString>;
|
|
71
|
+
stroke: z$1.ZodOptional<z$1.ZodString>;
|
|
72
|
+
strokeWidth: z$1.ZodOptional<z$1.ZodNumber>;
|
|
73
|
+
borderRadius: z$1.ZodOptional<z$1.ZodNumber>;
|
|
74
|
+
strokeStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
75
|
+
solid: "solid";
|
|
76
|
+
dashed: "dashed";
|
|
77
|
+
dotted: "dotted";
|
|
78
|
+
}>>;
|
|
79
|
+
borderAnimationEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
80
|
+
}, z$1.core.$strip>>;
|
|
81
|
+
dbConfig: z$1.ZodOptional<z$1.ZodObject<{
|
|
82
|
+
service: z$1.ZodString;
|
|
83
|
+
database: z$1.ZodString;
|
|
84
|
+
tableName: z$1.ZodString;
|
|
85
|
+
}, z$1.core.$strip>>;
|
|
86
|
+
table: z$1.ZodOptional<z$1.ZodObject<{
|
|
87
|
+
columns: z$1.ZodArray<z$1.ZodString>;
|
|
88
|
+
rows: z$1.ZodArray<z$1.ZodArray<z$1.ZodString>>;
|
|
89
|
+
}, z$1.core.$strip>>;
|
|
90
|
+
___internal: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
91
|
+
___position: z$1.ZodOptional<z$1.ZodObject<{
|
|
92
|
+
x: z$1.ZodNumber;
|
|
93
|
+
y: z$1.ZodNumber;
|
|
94
|
+
}, z$1.core.$strip>>;
|
|
95
|
+
}, z$1.core.$strip>>>;
|
|
96
|
+
edges: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
97
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
98
|
+
sourceHandle: z$1.ZodOptional<z$1.ZodString>;
|
|
99
|
+
targetHandle: z$1.ZodOptional<z$1.ZodString>;
|
|
100
|
+
label: z$1.ZodOptional<z$1.ZodString>;
|
|
101
|
+
style: z$1.ZodOptional<z$1.ZodObject<{
|
|
102
|
+
stroke: z$1.ZodOptional<z$1.ZodString>;
|
|
103
|
+
strokeWidth: z$1.ZodOptional<z$1.ZodNumber>;
|
|
104
|
+
strokeStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
105
|
+
solid: "solid";
|
|
106
|
+
dashed: "dashed";
|
|
107
|
+
dotted: "dotted";
|
|
108
|
+
}>>;
|
|
109
|
+
borderAnimationEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
110
|
+
}, z$1.core.$strip>>;
|
|
111
|
+
markerStart: z$1.ZodOptional<z$1.ZodObject<{
|
|
112
|
+
type: z$1.ZodString;
|
|
113
|
+
color: z$1.ZodOptional<z$1.ZodString>;
|
|
114
|
+
}, z$1.core.$strip>>;
|
|
115
|
+
markerEnd: z$1.ZodOptional<z$1.ZodObject<{
|
|
116
|
+
type: z$1.ZodString;
|
|
117
|
+
color: z$1.ZodOptional<z$1.ZodString>;
|
|
118
|
+
}, z$1.core.$strip>>;
|
|
119
|
+
___internal: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
120
|
+
}, z$1.core.$strip>>>;
|
|
121
|
+
groups: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
122
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
123
|
+
nodes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
124
|
+
}, z$1.core.$strip>>>;
|
|
125
|
+
}, z$1.core.$strip>;
|
|
126
|
+
//#endregion
|
|
127
|
+
export { contextSchema as t };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { t as ComponentInputType } from "./__component-type.CYmD-KIu.mjs";
|
|
2
|
+
import z$1 from "zod";
|
|
3
|
+
const contextSchema = z$1.object({
|
|
4
|
+
name: z$1.string().optional(),
|
|
5
|
+
description: z$1.string().optional(),
|
|
6
|
+
nodes: z$1.record(z$1.string(), z$1.object({
|
|
7
|
+
type: z$1.string().optional(),
|
|
8
|
+
name: z$1.string().optional(),
|
|
9
|
+
value: z$1.string().optional(),
|
|
10
|
+
cloud: z$1.string().optional(),
|
|
11
|
+
service: z$1.string().optional(),
|
|
12
|
+
src: z$1.string().optional(),
|
|
13
|
+
animatedIcon: z$1.string().optional(),
|
|
14
|
+
componentId: z$1.string().optional(),
|
|
15
|
+
shape: z$1.enum([
|
|
16
|
+
"rectangle",
|
|
17
|
+
"rounded-rect",
|
|
18
|
+
"ellipse",
|
|
19
|
+
"diamond",
|
|
20
|
+
"triangle",
|
|
21
|
+
"parallelogram",
|
|
22
|
+
"trapezoid",
|
|
23
|
+
"hexagon",
|
|
24
|
+
"document",
|
|
25
|
+
"cylinder",
|
|
26
|
+
"delay",
|
|
27
|
+
"off-page-connector",
|
|
28
|
+
"display",
|
|
29
|
+
"collate",
|
|
30
|
+
"sort",
|
|
31
|
+
"terminator",
|
|
32
|
+
"or",
|
|
33
|
+
"database",
|
|
34
|
+
"multiple-documents",
|
|
35
|
+
"subroutine",
|
|
36
|
+
"manual-input",
|
|
37
|
+
"summing-junction",
|
|
38
|
+
"internal-storage"
|
|
39
|
+
]).optional(),
|
|
40
|
+
data: z$1.record(z$1.string(), z$1.object({
|
|
41
|
+
type: z$1.enum(Object.values(ComponentInputType)),
|
|
42
|
+
options: z$1.array(z$1.string()).optional(),
|
|
43
|
+
value: z$1.unknown()
|
|
44
|
+
})).optional(),
|
|
45
|
+
style: z$1.object({
|
|
46
|
+
width: z$1.number().optional(),
|
|
47
|
+
height: z$1.number().optional(),
|
|
48
|
+
fill: z$1.string().optional(),
|
|
49
|
+
stroke: z$1.string().optional(),
|
|
50
|
+
strokeWidth: z$1.number().optional(),
|
|
51
|
+
borderRadius: z$1.number().optional(),
|
|
52
|
+
strokeStyle: z$1.enum([
|
|
53
|
+
"solid",
|
|
54
|
+
"dashed",
|
|
55
|
+
"dotted"
|
|
56
|
+
]).optional(),
|
|
57
|
+
borderAnimationEnabled: z$1.boolean().optional()
|
|
58
|
+
}).optional(),
|
|
59
|
+
dbConfig: z$1.object({
|
|
60
|
+
service: z$1.string(),
|
|
61
|
+
database: z$1.string(),
|
|
62
|
+
tableName: z$1.string()
|
|
63
|
+
}).optional(),
|
|
64
|
+
table: z$1.object({
|
|
65
|
+
columns: z$1.string().array(),
|
|
66
|
+
rows: z$1.array(z$1.array(z$1.string()))
|
|
67
|
+
}).optional(),
|
|
68
|
+
___internal: z$1.record(z$1.string(), z$1.unknown()).optional(),
|
|
69
|
+
___position: z$1.object({
|
|
70
|
+
x: z$1.number(),
|
|
71
|
+
y: z$1.number()
|
|
72
|
+
}).optional()
|
|
73
|
+
})).optional(),
|
|
74
|
+
edges: z$1.record(z$1.string(), z$1.object({
|
|
75
|
+
type: z$1.string().optional(),
|
|
76
|
+
sourceHandle: z$1.string().optional(),
|
|
77
|
+
targetHandle: z$1.string().optional(),
|
|
78
|
+
label: z$1.string().optional(),
|
|
79
|
+
style: z$1.object({
|
|
80
|
+
stroke: z$1.string().optional(),
|
|
81
|
+
strokeWidth: z$1.number().optional(),
|
|
82
|
+
strokeStyle: z$1.enum([
|
|
83
|
+
"solid",
|
|
84
|
+
"dashed",
|
|
85
|
+
"dotted"
|
|
86
|
+
]).optional(),
|
|
87
|
+
borderAnimationEnabled: z$1.boolean().optional()
|
|
88
|
+
}).optional(),
|
|
89
|
+
markerStart: z$1.object({
|
|
90
|
+
type: z$1.string(),
|
|
91
|
+
color: z$1.string().optional()
|
|
92
|
+
}).optional(),
|
|
93
|
+
markerEnd: z$1.object({
|
|
94
|
+
type: z$1.string(),
|
|
95
|
+
color: z$1.string().optional()
|
|
96
|
+
}).optional(),
|
|
97
|
+
___internal: z$1.record(z$1.string(), z$1.unknown()).optional()
|
|
98
|
+
})).optional(),
|
|
99
|
+
groups: z$1.record(z$1.string(), z$1.object({
|
|
100
|
+
name: z$1.string().optional(),
|
|
101
|
+
nodes: z$1.string().array().optional()
|
|
102
|
+
})).optional()
|
|
103
|
+
});
|
|
104
|
+
export { contextSchema as t };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { t as ComponentInputType } from "./__component-type.CO8FgnQE.mjs";
|
|
2
|
+
import z$1 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/mermaid-converter/context/context-schema.d.ts
|
|
5
|
+
declare const contextSchema: z$1.ZodObject<{
|
|
6
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
7
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
8
|
+
nodes: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
9
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
10
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
11
|
+
value: z$1.ZodOptional<z$1.ZodString>;
|
|
12
|
+
cloud: z$1.ZodOptional<z$1.ZodString>;
|
|
13
|
+
service: z$1.ZodOptional<z$1.ZodString>;
|
|
14
|
+
src: z$1.ZodOptional<z$1.ZodString>;
|
|
15
|
+
animatedIcon: z$1.ZodOptional<z$1.ZodString>;
|
|
16
|
+
componentId: z$1.ZodOptional<z$1.ZodString>;
|
|
17
|
+
shape: z$1.ZodOptional<z$1.ZodEnum<{
|
|
18
|
+
rectangle: "rectangle";
|
|
19
|
+
"rounded-rect": "rounded-rect";
|
|
20
|
+
ellipse: "ellipse";
|
|
21
|
+
diamond: "diamond";
|
|
22
|
+
triangle: "triangle";
|
|
23
|
+
parallelogram: "parallelogram";
|
|
24
|
+
trapezoid: "trapezoid";
|
|
25
|
+
hexagon: "hexagon";
|
|
26
|
+
document: "document";
|
|
27
|
+
cylinder: "cylinder";
|
|
28
|
+
delay: "delay";
|
|
29
|
+
"off-page-connector": "off-page-connector";
|
|
30
|
+
display: "display";
|
|
31
|
+
collate: "collate";
|
|
32
|
+
sort: "sort";
|
|
33
|
+
terminator: "terminator";
|
|
34
|
+
or: "or";
|
|
35
|
+
database: "database";
|
|
36
|
+
"multiple-documents": "multiple-documents";
|
|
37
|
+
subroutine: "subroutine";
|
|
38
|
+
"manual-input": "manual-input";
|
|
39
|
+
"summing-junction": "summing-junction";
|
|
40
|
+
"internal-storage": "internal-storage";
|
|
41
|
+
}>>;
|
|
42
|
+
data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
43
|
+
type: z$1.ZodEnum<{
|
|
44
|
+
"Text Input": ComponentInputType.TextInput;
|
|
45
|
+
"URL Input": ComponentInputType.URLInput;
|
|
46
|
+
"Number Input": ComponentInputType.NumberInput;
|
|
47
|
+
"Text Editor": ComponentInputType.TextBox;
|
|
48
|
+
"Date Picker": ComponentInputType.DatePicker;
|
|
49
|
+
Dropdown: ComponentInputType.DropdownSelect;
|
|
50
|
+
"Multi Select": ComponentInputType.MultiSelect;
|
|
51
|
+
"Boolean Toggle": ComponentInputType.BooleanToggle;
|
|
52
|
+
"Link or File Upload": ComponentInputType.LinkOrFileUpload;
|
|
53
|
+
"Rich Text Editor": ComponentInputType.RichTextEditor;
|
|
54
|
+
"Code Editor": ComponentInputType.CodeEditor;
|
|
55
|
+
"Key-Value List": ComponentInputType.KeyValueList;
|
|
56
|
+
"Tag Input": ComponentInputType.TagInput;
|
|
57
|
+
"Date Range Picker": ComponentInputType.DateRangePicker;
|
|
58
|
+
"Color Picker": ComponentInputType.ColorPicker;
|
|
59
|
+
Slider: ComponentInputType.Slider;
|
|
60
|
+
"File Upload": ComponentInputType.FileUpload;
|
|
61
|
+
"Search Select": ComponentInputType.SearchSelect;
|
|
62
|
+
"Checkbox Group": ComponentInputType.CheckboxGroup;
|
|
63
|
+
}>;
|
|
64
|
+
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
65
|
+
value: z$1.ZodUnknown;
|
|
66
|
+
}, z$1.core.$strip>>>;
|
|
67
|
+
style: z$1.ZodOptional<z$1.ZodObject<{
|
|
68
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
69
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
70
|
+
fill: z$1.ZodOptional<z$1.ZodString>;
|
|
71
|
+
stroke: z$1.ZodOptional<z$1.ZodString>;
|
|
72
|
+
strokeWidth: z$1.ZodOptional<z$1.ZodNumber>;
|
|
73
|
+
borderRadius: z$1.ZodOptional<z$1.ZodNumber>;
|
|
74
|
+
strokeStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
75
|
+
solid: "solid";
|
|
76
|
+
dashed: "dashed";
|
|
77
|
+
dotted: "dotted";
|
|
78
|
+
}>>;
|
|
79
|
+
borderAnimationEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
80
|
+
}, z$1.core.$strip>>;
|
|
81
|
+
dbConfig: z$1.ZodOptional<z$1.ZodObject<{
|
|
82
|
+
service: z$1.ZodString;
|
|
83
|
+
database: z$1.ZodString;
|
|
84
|
+
tableName: z$1.ZodString;
|
|
85
|
+
}, z$1.core.$strip>>;
|
|
86
|
+
table: z$1.ZodOptional<z$1.ZodObject<{
|
|
87
|
+
columns: z$1.ZodArray<z$1.ZodString>;
|
|
88
|
+
rows: z$1.ZodArray<z$1.ZodArray<z$1.ZodString>>;
|
|
89
|
+
}, z$1.core.$strip>>;
|
|
90
|
+
___internal: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
91
|
+
___position: z$1.ZodOptional<z$1.ZodObject<{
|
|
92
|
+
x: z$1.ZodNumber;
|
|
93
|
+
y: z$1.ZodNumber;
|
|
94
|
+
}, z$1.core.$strip>>;
|
|
95
|
+
}, z$1.core.$strip>>>;
|
|
96
|
+
edges: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
97
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
98
|
+
sourceHandle: z$1.ZodOptional<z$1.ZodString>;
|
|
99
|
+
targetHandle: z$1.ZodOptional<z$1.ZodString>;
|
|
100
|
+
label: z$1.ZodOptional<z$1.ZodString>;
|
|
101
|
+
style: z$1.ZodOptional<z$1.ZodObject<{
|
|
102
|
+
stroke: z$1.ZodOptional<z$1.ZodString>;
|
|
103
|
+
strokeWidth: z$1.ZodOptional<z$1.ZodNumber>;
|
|
104
|
+
strokeStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
105
|
+
solid: "solid";
|
|
106
|
+
dashed: "dashed";
|
|
107
|
+
dotted: "dotted";
|
|
108
|
+
}>>;
|
|
109
|
+
borderAnimationEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
110
|
+
}, z$1.core.$strip>>;
|
|
111
|
+
markerStart: z$1.ZodOptional<z$1.ZodObject<{
|
|
112
|
+
type: z$1.ZodString;
|
|
113
|
+
color: z$1.ZodOptional<z$1.ZodString>;
|
|
114
|
+
}, z$1.core.$strip>>;
|
|
115
|
+
markerEnd: z$1.ZodOptional<z$1.ZodObject<{
|
|
116
|
+
type: z$1.ZodString;
|
|
117
|
+
color: z$1.ZodOptional<z$1.ZodString>;
|
|
118
|
+
}, z$1.core.$strip>>;
|
|
119
|
+
___internal: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
120
|
+
}, z$1.core.$strip>>>;
|
|
121
|
+
groups: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
122
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
123
|
+
nodes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
124
|
+
}, z$1.core.$strip>>>;
|
|
125
|
+
}, z$1.core.$strip>;
|
|
126
|
+
//#endregion
|
|
127
|
+
export { contextSchema as t };
|