windmill-components 1.22.42 → 1.28.1
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/components/AppConnect.svelte +93 -47
- package/components/AppConnect.svelte.d.ts +2 -2
- package/components/ArgInfo.svelte +0 -5
- package/components/ArgInput.svelte +91 -64
- package/components/ArgInput.svelte.d.ts +8 -3
- package/components/Button.svelte +4 -4
- package/components/CenteredPage.svelte +1 -1
- package/components/CollapseLink.svelte +12 -0
- package/components/CollapseLink.svelte.d.ts +19 -0
- package/components/CronInput.svelte +84 -0
- package/components/CronInput.svelte.d.ts +18 -0
- package/components/DisplayResult.svelte +23 -7
- package/components/Editor.svelte +136 -66
- package/components/Editor.svelte.d.ts +2 -0
- package/components/EditorBar.svelte +56 -45
- package/components/FlowBuilder.svelte +150 -71
- package/components/FlowEditor.svelte +75 -200
- package/components/FlowEditor.svelte.d.ts +3 -2
- package/components/FlowJobResult.svelte +1 -1
- package/components/FlowPreview.svelte +18 -24
- package/components/FlowPreviewContent.svelte +68 -0
- package/components/FlowPreviewContent.svelte.d.ts +21 -0
- package/components/FlowStatusViewer.svelte +85 -37
- package/components/FlowStatusViewer.svelte.d.ts +3 -2
- package/components/FlowViewer.svelte +77 -45
- package/components/FlowViewer.svelte.d.ts +1 -1
- package/components/IconedResourceType.svelte +30 -5
- package/components/InputTransformForm.svelte +209 -0
- package/components/InputTransformForm.svelte.d.ts +26 -0
- package/components/InviteGlobalUser.svelte +2 -2
- package/components/InviteUser.svelte +2 -2
- package/components/JobStatus.svelte +32 -25
- package/components/Modal.svelte +44 -42
- package/components/ModuleStep.svelte +94 -79
- package/components/ObjectResourceInput.svelte +58 -38
- package/components/ObjectTypeNarrowing.svelte +4 -19
- package/components/Path.svelte +1 -0
- package/components/Path.svelte.d.ts +1 -1
- package/components/RadioButton.svelte +11 -96
- package/components/RadioButton.svelte.d.ts +4 -2
- package/components/ResourceEditor.svelte +4 -5
- package/components/ResourceEditor.svelte.d.ts +2 -2
- package/components/ResourcePicker.svelte +25 -2
- package/components/ResourcePicker.svelte.d.ts +3 -0
- package/components/ResourceTypePicker.svelte +17 -29
- package/components/ResourceTypePicker.svelte.d.ts +1 -0
- package/components/RunForm.svelte +14 -15
- package/components/RunForm.svelte.d.ts +1 -1
- package/components/SchemaEditor.svelte +87 -71
- package/components/SchemaEditor.svelte.d.ts +2 -0
- package/components/SchemaEditorProperty.svelte +11 -0
- package/components/SchemaEditorProperty.svelte.d.ts +17 -0
- package/components/SchemaForm.svelte +21 -127
- package/components/SchemaForm.svelte.d.ts +3 -4
- package/components/SchemaModal.svelte +20 -33
- package/components/SchemaModal.svelte.d.ts +1 -1
- package/components/SchemaViewer.svelte +4 -6
- package/components/ScriptBuilder.svelte +40 -43
- package/components/ScriptEditor.svelte +71 -66
- package/components/ScriptPicker.svelte +10 -12
- package/components/ScriptPicker.svelte.d.ts +1 -1
- package/components/ScriptSchema.svelte +0 -5
- package/components/ShareModal.svelte +1 -1
- package/components/SharedBadge.svelte +12 -10
- package/components/StringTypeNarrowing.svelte +8 -4
- package/components/StringTypeNarrowing.svelte.d.ts +1 -0
- package/components/TableCustom.svelte +7 -9
- package/components/TableSimple.svelte +1 -1
- package/components/Toggle.svelte +8 -10
- package/components/Toggle.svelte.d.ts +5 -11
- package/components/Tooltip.svelte +3 -2
- package/components/VariableEditor.svelte +21 -6
- package/components/flows/CopyFirstStepSchema.svelte +7 -5
- package/components/flows/DynamicInputHelpBox.svelte +1 -1
- package/components/flows/FlowBox.svelte +3 -0
- package/components/flows/FlowBox.svelte.d.ts +23 -0
- package/components/flows/FlowBoxHeader.svelte +9 -0
- package/components/flows/FlowBoxHeader.svelte.d.ts +18 -0
- package/components/flows/FlowInput.svelte +20 -0
- package/components/flows/FlowInput.svelte.d.ts +14 -0
- package/components/flows/FlowInputs.svelte +7 -3
- package/components/flows/FlowModuleHeader.svelte +42 -40
- package/components/flows/FlowModuleHeader.svelte.d.ts +1 -1
- package/components/flows/FlowSettings.svelte +174 -0
- package/components/flows/FlowSettings.svelte.d.ts +21 -0
- package/components/flows/flowStore.d.ts +5 -2
- package/components/flows/flowStore.js +65 -9
- package/components/flows/pickers/FlowScriptPicker.svelte +6 -1
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +1 -0
- package/components/flows/utils.d.ts +11 -7
- package/components/flows/utils.js +104 -43
- package/components/icons/AirtableIcon.svelte +17 -0
- package/components/icons/AirtableIcon.svelte.d.ts +17 -0
- package/components/icons/GCloudIcon.svelte +16 -0
- package/components/icons/GCloudIcon.svelte.d.ts +17 -0
- package/components/icons/GItlabIcon.svelte +16 -0
- package/components/icons/GItlabIcon.svelte.d.ts +17 -0
- package/components/icons/GSheetsIcon.svelte +16 -0
- package/components/icons/GSheetsIcon.svelte.d.ts +17 -0
- package/components/icons/GcalIcon.svelte +16 -0
- package/components/icons/GcalIcon.svelte.d.ts +17 -0
- package/components/icons/GdriveIcon.svelte +16 -0
- package/components/icons/GdriveIcon.svelte.d.ts +17 -0
- package/components/icons/GmailIcon.svelte +16 -0
- package/components/icons/GmailIcon.svelte.d.ts +17 -0
- package/components/icons/PostgresIcon.svelte +8 -49
- package/components/icons/Slack.svelte +9 -18
- package/components/icons/TogglIcon.svelte +59 -0
- package/components/icons/TogglIcon.svelte.d.ts +17 -0
- package/components/propertyPicker/ObjectViewer.svelte +35 -37
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +1 -0
- package/components/propertyPicker/OverlayPropertyPicker.svelte +53 -53
- package/components/propertyPicker/OverlayPropertyPicker.svelte.d.ts +5 -2
- package/components/propertyPicker/PropPicker.svelte +13 -15
- package/components/propertyPicker/PropPicker.svelte.d.ts +1 -1
- package/components/propertyPicker/WarningMessage.svelte +14 -41
- package/components/propertyPicker/WarningMessage.svelte.d.ts +11 -8
- package/components/propertyPicker/utils.d.ts +1 -0
- package/components/propertyPicker/utils.js +25 -0
- package/gen/core/OpenAPI.js +1 -1
- package/gen/index.d.ts +11 -2
- package/gen/index.js +1 -2
- package/gen/models/CompletedJob.d.ts +1 -1
- package/gen/models/Flow.d.ts +3 -13
- package/gen/models/FlowMetadata.d.ts +9 -0
- package/gen/models/FlowMetadata.js +4 -0
- package/gen/models/FlowModuleValue.d.ts +5 -22
- package/gen/models/FlowModuleValue.js +1 -15
- package/gen/models/ForloopFlow.d.ts +8 -0
- package/gen/models/ForloopFlow.js +4 -0
- package/gen/models/InputTransform.d.ts +3 -12
- package/gen/models/InputTransform.js +1 -8
- package/gen/models/JavascriptTransform.d.ts +4 -0
- package/gen/models/JavascriptTransform.js +4 -0
- package/gen/models/MainArgSignature.d.ts +1 -1
- package/gen/models/NewSchedule.d.ts +1 -0
- package/gen/models/OpenFlowWPath.d.ts +4 -0
- package/gen/models/OpenFlowWPath.js +4 -0
- package/gen/models/PathFlow.d.ts +4 -0
- package/gen/models/PathFlow.js +4 -0
- package/gen/models/PathScript.d.ts +4 -0
- package/gen/models/PathScript.js +4 -0
- package/gen/models/RawScript.d.ts +12 -0
- package/gen/models/RawScript.js +11 -0
- package/gen/models/Schedule.d.ts +1 -1
- package/gen/models/StaticTransform.d.ts +4 -0
- package/gen/models/StaticTransform.js +4 -0
- package/gen/models/TokenResponse.d.ts +3 -3
- package/gen/models/Usage.d.ts +5 -0
- package/gen/models/Usage.js +4 -0
- package/gen/models/User.d.ts +2 -0
- package/gen/schemas/$AuditLog.d.ts +32 -0
- package/gen/schemas/$AuditLog.js +35 -0
- package/gen/schemas/$CompletedJob.d.ts +98 -0
- package/gen/schemas/$CompletedJob.js +103 -0
- package/gen/schemas/$ContextualVariable.d.ts +16 -0
- package/gen/schemas/$ContextualVariable.js +19 -0
- package/gen/schemas/$CreateResource.d.ts +22 -0
- package/gen/schemas/$CreateResource.js +25 -0
- package/gen/schemas/$CreateVariable.d.ts +26 -0
- package/gen/schemas/$CreateVariable.js +29 -0
- package/gen/schemas/$CreateWorkspace.d.ts +20 -0
- package/gen/schemas/$CreateWorkspace.js +23 -0
- package/gen/schemas/$EditResource.d.ts +13 -0
- package/gen/schemas/$EditResource.js +16 -0
- package/gen/schemas/$EditResourceType.d.ts +10 -0
- package/gen/schemas/$EditResourceType.js +13 -0
- package/gen/schemas/$EditSchedule.d.ts +20 -0
- package/gen/schemas/$EditSchedule.js +23 -0
- package/gen/schemas/$EditVariable.d.ts +16 -0
- package/gen/schemas/$EditVariable.js +19 -0
- package/gen/schemas/$EditWorkspaceUser.d.ts +7 -0
- package/gen/schemas/$EditWorkspaceUser.js +10 -0
- package/gen/schemas/$Flow.d.ts +23 -0
- package/gen/schemas/$Flow.js +26 -0
- package/gen/schemas/$FlowMetadata.d.ts +31 -0
- package/gen/schemas/$FlowMetadata.js +34 -0
- package/gen/schemas/$FlowPreview.d.ts +80 -0
- package/gen/schemas/$FlowPreview.js +83 -0
- package/gen/schemas/$GlobalUserInfo.d.ts +26 -0
- package/gen/schemas/$GlobalUserInfo.js +29 -0
- package/gen/schemas/$Group.d.ts +23 -0
- package/gen/schemas/$Group.js +26 -0
- package/gen/schemas/$Job.d.ts +17 -0
- package/gen/schemas/$Job.js +20 -0
- package/gen/schemas/$ListableVariable.d.ts +35 -0
- package/gen/schemas/$ListableVariable.js +38 -0
- package/gen/schemas/$Login.d.ts +12 -0
- package/gen/schemas/$Login.js +15 -0
- package/gen/schemas/$MainArgSignature.d.ts +50 -0
- package/gen/schemas/$MainArgSignature.js +53 -0
- package/gen/schemas/$NewSchedule.d.ts +30 -0
- package/gen/schemas/$NewSchedule.js +33 -0
- package/gen/schemas/$NewToken.d.ts +11 -0
- package/gen/schemas/$NewToken.js +14 -0
- package/gen/schemas/$NewUser.d.ts +16 -0
- package/gen/schemas/$NewUser.js +19 -0
- package/gen/schemas/$Preview.d.ts +19 -0
- package/gen/schemas/$Preview.js +22 -0
- package/gen/schemas/$QueuedJob.d.ts +139 -0
- package/gen/schemas/$QueuedJob.js +144 -0
- package/gen/schemas/$Resource.d.ts +31 -0
- package/gen/schemas/$Resource.js +34 -0
- package/gen/schemas/$ResourceType.d.ts +17 -0
- package/gen/schemas/$ResourceType.js +20 -0
- package/gen/schemas/$Schedule.d.ts +47 -0
- package/gen/schemas/$Schedule.js +50 -0
- package/gen/schemas/$Script.d.ts +77 -0
- package/gen/schemas/$Script.js +80 -0
- package/gen/schemas/$ScriptArgs.d.ts +6 -0
- package/gen/schemas/$ScriptArgs.js +9 -0
- package/gen/schemas/$SlackToken.d.ts +24 -0
- package/gen/schemas/$SlackToken.js +27 -0
- package/gen/schemas/$TokenResponse.d.ts +23 -0
- package/gen/schemas/$TokenResponse.js +26 -0
- package/gen/schemas/$TruncatedToken.d.ts +25 -0
- package/gen/schemas/$TruncatedToken.js +28 -0
- package/gen/schemas/$Usage.d.ts +13 -0
- package/gen/schemas/$Usage.js +16 -0
- package/gen/schemas/$User.d.ts +42 -0
- package/gen/schemas/$User.js +45 -0
- package/gen/schemas/$UserWorkspaceList.d.ts +28 -0
- package/gen/schemas/$UserWorkspaceList.js +31 -0
- package/gen/schemas/$WorkerPing.d.ts +31 -0
- package/gen/schemas/$WorkerPing.js +34 -0
- package/gen/schemas/$Workspace.d.ts +19 -0
- package/gen/schemas/$Workspace.js +22 -0
- package/gen/schemas/$WorkspaceInvite.d.ts +16 -0
- package/gen/schemas/$WorkspaceInvite.js +19 -0
- package/gen/services/FlowService.d.ts +24 -23
- package/gen/services/FlowService.js +14 -0
- package/gen/services/JobService.d.ts +1 -1
- package/gen/services/ScriptService.d.ts +13 -19
- package/gen/services/ScriptService.js +0 -14
- package/gen/services/WorkspaceService.d.ts +1 -1
- package/gen/services/WorkspaceService.js +1 -1
- package/infer.js +8 -1
- package/package.json +83 -15
- package/script_helpers.d.ts +1 -1
- package/script_helpers.js +7 -6
- package/sql.d.ts +89 -0
- package/sql.js +817 -0
- package/stores.d.ts +0 -1
- package/stores.js +0 -6
- package/utils.d.ts +12 -5
- package/utils.js +55 -9
- package/components/RadioButtonV2.svelte +0 -33
- package/components/RadioButtonV2.svelte.d.ts +0 -20
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RawScript, ScriptService } from '../../gen';
|
|
2
2
|
import { initialCode } from '../../script_helpers';
|
|
3
3
|
import { userStore, workspaceStore } from '../../stores';
|
|
4
|
+
import { emptySchema } from '../../utils';
|
|
4
5
|
import { derived, get, writable } from 'svelte/store';
|
|
5
6
|
import { createInlineScriptModuleFromPath, getFirstStepSchema, loadSchemaFromModule, scrollIntoView } from './utils';
|
|
7
|
+
export const mode = writable('push');
|
|
6
8
|
export const flowStore = writable(undefined);
|
|
7
9
|
export const schemasStore = writable([]);
|
|
8
10
|
export function initFlow(flow) {
|
|
11
|
+
const newMode = flow.value.modules[1]?.value.type === 'forloopflow' ? 'pull' : 'push';
|
|
12
|
+
mode.set(newMode);
|
|
13
|
+
flow = flattenForloopFlows(flow);
|
|
14
|
+
flow.value.modules.forEach((mod) => {
|
|
15
|
+
Object.values(mod.input_transform).forEach((inp) => {
|
|
16
|
+
if (inp.type == 'javascript') {
|
|
17
|
+
// for now we use the value for dynamic expression when done in the static editor so we have to resort to this
|
|
18
|
+
//@ts-ignore
|
|
19
|
+
inp.value = codeToStaticTemplate(inp.expr);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
});
|
|
9
23
|
schemasStore.set([]);
|
|
10
24
|
flowStore.set(flow);
|
|
11
25
|
// For each module in flow, we should load the corresponding schema
|
|
@@ -13,11 +27,36 @@ export function initFlow(flow) {
|
|
|
13
27
|
loadSchema(index);
|
|
14
28
|
});
|
|
15
29
|
}
|
|
30
|
+
export function codeToStaticTemplate(code) {
|
|
31
|
+
if (!code)
|
|
32
|
+
return undefined;
|
|
33
|
+
const lines = code
|
|
34
|
+
.split('\n')
|
|
35
|
+
.slice(1)
|
|
36
|
+
.filter((x) => x != '');
|
|
37
|
+
if (lines.length == 1) {
|
|
38
|
+
const line = lines[0].trim();
|
|
39
|
+
if (line[0] == '`' && line.charAt(line.length - 1) == '`') {
|
|
40
|
+
return line.slice(1, line.length - 1);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
export function flattenForloopFlows(flow) {
|
|
46
|
+
let newFlow = JSON.parse(JSON.stringify(flow));
|
|
47
|
+
const mod = newFlow.value.modules[1]?.value;
|
|
48
|
+
if (mod?.type === 'forloopflow') {
|
|
49
|
+
const oldModules = mod.value?.modules ?? [];
|
|
50
|
+
newFlow.value.modules = newFlow.value.modules.slice(0, 1);
|
|
51
|
+
newFlow.value.modules.push(...oldModules);
|
|
52
|
+
}
|
|
53
|
+
return newFlow;
|
|
54
|
+
}
|
|
16
55
|
export const isCopyFirstStepSchemaDisabled = derived(flowStore, (flow) => {
|
|
17
56
|
if (flow) {
|
|
18
57
|
const modules = flow.value.modules;
|
|
19
58
|
const [firstModule] = modules;
|
|
20
|
-
return (modules.length === 0 || (firstModule.value.
|
|
59
|
+
return (modules.length === 0 || (firstModule.value.type === 'script' && firstModule.value.path === ''));
|
|
21
60
|
}
|
|
22
61
|
else {
|
|
23
62
|
return true;
|
|
@@ -25,7 +64,7 @@ export const isCopyFirstStepSchemaDisabled = derived(flowStore, (flow) => {
|
|
|
25
64
|
});
|
|
26
65
|
export function addModule(i) {
|
|
27
66
|
const newModule = {
|
|
28
|
-
value: { type:
|
|
67
|
+
value: { type: 'script', path: '' },
|
|
29
68
|
input_transform: {}
|
|
30
69
|
};
|
|
31
70
|
flowStore.update((flow) => {
|
|
@@ -35,23 +74,34 @@ export function addModule(i) {
|
|
|
35
74
|
setTimeout(() => scrollIntoView(document.querySelector(`#module-${insertAt}`)), 100);
|
|
36
75
|
return flow;
|
|
37
76
|
});
|
|
77
|
+
schemasStore.update((schemas) => {
|
|
78
|
+
if (typeof i !== 'undefined') {
|
|
79
|
+
const previousSchema = schemas[i];
|
|
80
|
+
const hadSchema = Boolean(previousSchema);
|
|
81
|
+
if (hadSchema) {
|
|
82
|
+
schemas[i] = emptySchema();
|
|
83
|
+
schemas[i + 1] = previousSchema;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return schemas;
|
|
87
|
+
});
|
|
38
88
|
}
|
|
39
89
|
export async function pickScript(path, step) {
|
|
40
90
|
flowStore.update((flow) => {
|
|
41
91
|
if (flow.value.modules[step]) {
|
|
42
|
-
flow.value.modules[step].value
|
|
92
|
+
flow.value.modules[step].value = { type: 'script', path };
|
|
43
93
|
}
|
|
44
94
|
return flow;
|
|
45
95
|
});
|
|
46
96
|
await loadSchema(step);
|
|
47
97
|
}
|
|
48
98
|
export async function createInlineScriptModule(language, step, mode) {
|
|
49
|
-
const code = initialCode(language,
|
|
99
|
+
const code = initialCode(language, mode === 'pull' && step == 0);
|
|
50
100
|
flowStore.update((flow) => {
|
|
51
101
|
flow.value.modules[step].value = {
|
|
52
|
-
type:
|
|
102
|
+
type: 'rawscript',
|
|
53
103
|
content: code,
|
|
54
|
-
language
|
|
104
|
+
language
|
|
55
105
|
};
|
|
56
106
|
return flow;
|
|
57
107
|
});
|
|
@@ -73,6 +123,9 @@ export async function loadSchema(step) {
|
|
|
73
123
|
export async function fork(step) {
|
|
74
124
|
const flow = get(flowStore);
|
|
75
125
|
const flowModuleValue = flow.value.modules[step].value;
|
|
126
|
+
if (flowModuleValue.type !== 'script') {
|
|
127
|
+
throw new Error('Can only fork a script module');
|
|
128
|
+
}
|
|
76
129
|
if (flowModuleValue.path) {
|
|
77
130
|
const moduleValue = await createInlineScriptModuleFromPath(flowModuleValue.path);
|
|
78
131
|
flowStore.update((flow) => {
|
|
@@ -86,6 +139,9 @@ export async function createScriptFromInlineScript(step) {
|
|
|
86
139
|
const schemas = get(schemasStore);
|
|
87
140
|
const user = get(userStore);
|
|
88
141
|
const flowModuleValue = flow.value.modules[step].value;
|
|
142
|
+
if (flowModuleValue.type != 'rawscript') {
|
|
143
|
+
throw new Error("Can't create script from non-inline script");
|
|
144
|
+
}
|
|
89
145
|
const originalScriptPath = flowModuleValue.path;
|
|
90
146
|
const wasForked = Boolean(originalScriptPath);
|
|
91
147
|
let suffix = `step-${step}`;
|
|
@@ -112,7 +168,7 @@ export async function createScriptFromInlineScript(step) {
|
|
|
112
168
|
});
|
|
113
169
|
flowStore.update((flow) => {
|
|
114
170
|
flow.value.modules[step].value = {
|
|
115
|
-
type:
|
|
171
|
+
type: 'script',
|
|
116
172
|
path: availablePath
|
|
117
173
|
};
|
|
118
174
|
return flow;
|
|
@@ -157,5 +213,5 @@ export async function findNextAvailablePath(path) {
|
|
|
157
213
|
}
|
|
158
214
|
export function shouldPickOrCreateScript(flow, step) {
|
|
159
215
|
const module = flow.value.modules[step];
|
|
160
|
-
return module.value.
|
|
216
|
+
return module.value.type === 'script' && module.value.path === '';
|
|
161
217
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import { Tooltip } from 'flowbite-svelte';
|
|
2
|
+
import Icon from 'svelte-awesome';
|
|
2
3
|
export let disabled = false;
|
|
3
4
|
export let icon;
|
|
4
5
|
export let label;
|
|
5
6
|
export let iconColor;
|
|
7
|
+
export let tooltip = undefined;
|
|
6
8
|
</script>
|
|
7
9
|
|
|
8
10
|
<button {disabled} type="button" on:click class="default-secondary-button-v2 mb-2 w-full">
|
|
9
11
|
<Icon data={icon} class={`w-4 h-4 mr-2 -ml-2 ${iconColor}`} />
|
|
10
12
|
{label}
|
|
13
|
+
{#if tooltip}
|
|
14
|
+
<Tooltip placement="bottom" content={tooltip}>(?)</Tooltip>
|
|
15
|
+
{/if}
|
|
11
16
|
</button>
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Schema } from '../../common';
|
|
2
|
-
import {
|
|
3
|
-
import type
|
|
4
|
-
export declare function flowToMode(flow: Flow, mode: FlowMode): Flow;
|
|
5
|
-
export declare function flattenForloopFlows(flow: Flow): Flow;
|
|
2
|
+
import { type Flow, type FlowModule, type FlowModuleValue, type InputTransform, type Job } from '../../gen';
|
|
3
|
+
import { type FlowMode } from './flowStore';
|
|
4
|
+
export declare function flowToMode(flow: Flow | any, mode: FlowMode): Flow;
|
|
6
5
|
export declare function getTypeAsString(arg: any): string;
|
|
7
|
-
export declare function formatValue(arg: any): any;
|
|
8
6
|
export declare function getFirstStepSchema(flow: Flow): Promise<Schema>;
|
|
9
7
|
export declare function createInlineScriptModuleFromPath(path: string): Promise<FlowModuleValue>;
|
|
10
8
|
export declare function scrollIntoView(el: any): void;
|
|
@@ -13,5 +11,11 @@ export declare function loadSchemaFromModule(module: FlowModule): Promise<{
|
|
|
13
11
|
schema: Schema;
|
|
14
12
|
}>;
|
|
15
13
|
export declare function isCodeInjection(expr: string | undefined): boolean;
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
14
|
+
export declare function getDefaultExpr(i: number, key?: string, previousExpr?: string): string;
|
|
15
|
+
export declare function getPickableProperties(schema: Schema, args: Record<string, any>, previewResults: Record<number, Object>, mode: FlowMode, i: number): {
|
|
16
|
+
flow_input: any;
|
|
17
|
+
previous_result: any;
|
|
18
|
+
step: any[];
|
|
19
|
+
};
|
|
20
|
+
export declare function jobsToResults(jobs: Job[]): any;
|
|
21
|
+
export declare function runFlowPreview(args: Record<string, any>, flow: Flow): Promise<string>;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JobService } from '../../gen';
|
|
2
2
|
import { inferArgs } from '../../infer';
|
|
3
3
|
import { loadSchema } from '../../scripts';
|
|
4
|
-
import {
|
|
4
|
+
import { workspaceStore } from '../../stores';
|
|
5
|
+
import { emptySchema, getScriptByPath, schemaToObject } from '../../utils';
|
|
6
|
+
import { get } from 'svelte/store';
|
|
7
|
+
import { mode } from './flowStore';
|
|
5
8
|
export function flowToMode(flow, mode) {
|
|
9
|
+
const newFlow = JSON.parse(JSON.stringify(flow));
|
|
10
|
+
newFlow.value.modules.forEach((mod) => {
|
|
11
|
+
Object.values(mod.input_transform).forEach((inp) => {
|
|
12
|
+
// for now we use the value for dynamic expression when done in the static editor so we have to resort to this
|
|
13
|
+
if (inp.type == 'javascript') {
|
|
14
|
+
//@ts-ignore
|
|
15
|
+
inp.value = undefined;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
//@ts-ignore
|
|
19
|
+
inp.expr = undefined;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
});
|
|
6
23
|
if (mode == 'pull') {
|
|
7
|
-
const newFlow = JSON.parse(JSON.stringify(flow));
|
|
8
24
|
const triggerModule = newFlow.value.modules[0];
|
|
9
25
|
const oldModules = newFlow.value.modules.slice(1);
|
|
10
26
|
if (triggerModule) {
|
|
@@ -16,24 +32,15 @@ export function flowToMode(flow, mode) {
|
|
|
16
32
|
newFlow.value.modules.push({
|
|
17
33
|
input_transform: oldModules[0].input_transform,
|
|
18
34
|
value: {
|
|
19
|
-
type:
|
|
20
|
-
iterator: { type:
|
|
35
|
+
type: 'forloopflow',
|
|
36
|
+
iterator: { type: 'javascript', expr: 'result.res1' },
|
|
21
37
|
value: {
|
|
22
38
|
modules: oldModules
|
|
23
|
-
}
|
|
39
|
+
},
|
|
40
|
+
skip_failures: true
|
|
24
41
|
}
|
|
25
42
|
});
|
|
26
43
|
}
|
|
27
|
-
return newFlow;
|
|
28
|
-
}
|
|
29
|
-
return flow;
|
|
30
|
-
}
|
|
31
|
-
export function flattenForloopFlows(flow) {
|
|
32
|
-
let newFlow = JSON.parse(JSON.stringify(flow));
|
|
33
|
-
if (newFlow.value.modules[1]?.value.type == FlowModuleValue.type.FORLOOPFLOW) {
|
|
34
|
-
const oldModules = newFlow.value.modules[1].value.value?.modules ?? [];
|
|
35
|
-
newFlow.value.modules = newFlow.value.modules.slice(0, 1);
|
|
36
|
-
newFlow.value.modules.push(...oldModules);
|
|
37
44
|
}
|
|
38
45
|
return newFlow;
|
|
39
46
|
}
|
|
@@ -41,17 +48,14 @@ export function getTypeAsString(arg) {
|
|
|
41
48
|
if (arg === null) {
|
|
42
49
|
return 'null';
|
|
43
50
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export function formatValue(arg) {
|
|
47
|
-
if (getTypeAsString(arg) === 'string') {
|
|
48
|
-
return `"${arg}"`;
|
|
51
|
+
if (arg === undefined) {
|
|
52
|
+
return 'undefined';
|
|
49
53
|
}
|
|
50
|
-
return arg;
|
|
54
|
+
return typeof arg;
|
|
51
55
|
}
|
|
52
56
|
export async function getFirstStepSchema(flow) {
|
|
53
57
|
const [firstModule] = flow.value.modules;
|
|
54
|
-
if (firstModule.value.type ===
|
|
58
|
+
if (firstModule.value.type === 'rawscript') {
|
|
55
59
|
const { language, content } = firstModule.value;
|
|
56
60
|
if (language && content) {
|
|
57
61
|
const schema = emptySchema();
|
|
@@ -59,7 +63,7 @@ export async function getFirstStepSchema(flow) {
|
|
|
59
63
|
return schema;
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
|
-
else if (firstModule.value.
|
|
66
|
+
else if (firstModule.value.type == 'script') {
|
|
63
67
|
return await loadSchema(firstModule.value.path);
|
|
64
68
|
}
|
|
65
69
|
return emptySchema();
|
|
@@ -67,7 +71,7 @@ export async function getFirstStepSchema(flow) {
|
|
|
67
71
|
export async function createInlineScriptModuleFromPath(path) {
|
|
68
72
|
const { content, language } = await getScriptByPath(path);
|
|
69
73
|
return {
|
|
70
|
-
type:
|
|
74
|
+
type: 'rawscript',
|
|
71
75
|
language: language,
|
|
72
76
|
content: content,
|
|
73
77
|
path
|
|
@@ -83,25 +87,25 @@ export function scrollIntoView(el) {
|
|
|
83
87
|
});
|
|
84
88
|
}
|
|
85
89
|
export async function loadSchemaFromModule(module) {
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
90
|
+
const mod = module.value;
|
|
91
|
+
if (mod.type == 'rawscript' || mod.type === 'script') {
|
|
88
92
|
let schema;
|
|
89
|
-
if (
|
|
93
|
+
if (mod.type === 'rawscript') {
|
|
90
94
|
schema = emptySchema();
|
|
91
|
-
await inferArgs(
|
|
95
|
+
await inferArgs(mod.language, mod.content, schema);
|
|
92
96
|
}
|
|
93
97
|
else {
|
|
94
|
-
schema = await loadSchema(
|
|
98
|
+
schema = await loadSchema(mod.path);
|
|
95
99
|
}
|
|
96
100
|
const keys = Object.keys(schema?.properties ?? {});
|
|
97
101
|
let input_transform = module.input_transform;
|
|
98
|
-
if (JSON.stringify(Object.keys(
|
|
99
|
-
JSON.stringify(Object.keys(module.input_transform).sort())) {
|
|
102
|
+
if (JSON.stringify(keys.sort()) !== JSON.stringify(Object.keys(module.input_transform).sort())) {
|
|
100
103
|
input_transform = keys.reduce((accu, key) => {
|
|
101
|
-
|
|
104
|
+
let nv = module.input_transform[key] ?? {
|
|
102
105
|
type: 'static',
|
|
103
106
|
value: undefined
|
|
104
107
|
};
|
|
108
|
+
accu[key] = nv;
|
|
105
109
|
return accu;
|
|
106
110
|
}, {});
|
|
107
111
|
}
|
|
@@ -128,16 +132,73 @@ export function isCodeInjection(expr) {
|
|
|
128
132
|
}
|
|
129
133
|
return false;
|
|
130
134
|
}
|
|
131
|
-
export function
|
|
132
|
-
|
|
133
|
-
if (isRaw) {
|
|
134
|
-
expr = `JSON.parse(${expr})`;
|
|
135
|
-
}
|
|
136
|
-
return `import { previous_result, flow_input, step, variable, resource, params } from 'windmill'
|
|
137
|
-
${expr}`;
|
|
138
|
-
}
|
|
139
|
-
export function getDefaultExpr(i, key = 'myfield') {
|
|
135
|
+
export function getDefaultExpr(i, key = 'myfield', previousExpr) {
|
|
136
|
+
const expr = previousExpr ?? `previous_result.${key}`;
|
|
140
137
|
return `import { previous_result, flow_input, step, variable, resource, params } from 'windmill@${i}'
|
|
141
138
|
|
|
142
|
-
|
|
139
|
+
${expr}`;
|
|
140
|
+
}
|
|
141
|
+
export function getPickableProperties(schema, args, previewResults, mode, i) {
|
|
142
|
+
const flowInputAsObject = schemaToObject(schema, args);
|
|
143
|
+
const flowInput = mode === 'pull' && i >= 1
|
|
144
|
+
? computeFlowInputPull(previewResults[0], flowInputAsObject)
|
|
145
|
+
: flowInputAsObject;
|
|
146
|
+
let previous_result;
|
|
147
|
+
if (i === 0 || (i == 1 && mode == 'pull')) {
|
|
148
|
+
previous_result = flowInput;
|
|
149
|
+
}
|
|
150
|
+
else if (mode == 'pull') {
|
|
151
|
+
previous_result = previewResults[1] ? previewResults[1][i - 2] : undefined;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
previous_result = previewResults[i - 1];
|
|
155
|
+
}
|
|
156
|
+
let step;
|
|
157
|
+
if (i >= 1 && mode == 'push') {
|
|
158
|
+
step = Object.values(previewResults).slice(0, i);
|
|
159
|
+
}
|
|
160
|
+
else if (i >= 2 && mode == 'pull') {
|
|
161
|
+
step = Object.values(previewResults[1] ?? {}).slice(0, i - 1);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
step = [];
|
|
165
|
+
}
|
|
166
|
+
const pickableProperties = {
|
|
167
|
+
flow_input: flowInput,
|
|
168
|
+
previous_result,
|
|
169
|
+
step
|
|
170
|
+
};
|
|
171
|
+
return pickableProperties;
|
|
172
|
+
}
|
|
173
|
+
export function jobsToResults(jobs) {
|
|
174
|
+
return jobs.map((job) => {
|
|
175
|
+
if ('result' in job) {
|
|
176
|
+
return job.result;
|
|
177
|
+
}
|
|
178
|
+
else if (Array.isArray(job)) {
|
|
179
|
+
return jobsToResults(job);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
export async function runFlowPreview(args, flow) {
|
|
184
|
+
const newFlow = flowToMode(flow, get(mode));
|
|
185
|
+
return await JobService.runFlowPreview({
|
|
186
|
+
workspace: get(workspaceStore) ?? '',
|
|
187
|
+
requestBody: {
|
|
188
|
+
args,
|
|
189
|
+
value: newFlow.value,
|
|
190
|
+
path: newFlow.path
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function computeFlowInputPull(previewResult, flowInputAsObject) {
|
|
195
|
+
const iteratorValues = (previewResult?.res1 && Array.isArray(previewResult.res1)) ?
|
|
196
|
+
{
|
|
197
|
+
_value: previewResult.res1[0],
|
|
198
|
+
_index: `The current index of the iteration as a number (here from 0 to ${previewResult.res1.length - 1})`
|
|
199
|
+
} : {
|
|
200
|
+
_value: 'The current value of the iteration as an object',
|
|
201
|
+
_index: 'The current index of the iteration as a number'
|
|
202
|
+
};
|
|
203
|
+
return Object.assign(Object.assign(flowInputAsObject, previewResult), iteratorValues);
|
|
143
204
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 50 50"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
d="M 24.505859 4.0078125 C 23.980484 4.0080625 23.454344 4.1114062 22.964844 4.3164062 L 4.2226562 11.646484 C 3.4796562 11.959484 3 12.683281 3 13.488281 C 2.999 14.293281 3.4771406 15.017797 4.2441406 15.341797 L 23.236328 22.775391 C 23.613328 22.935391 24.018969 23.013672 24.417969 23.013672 C 24.802969 23.013672 25.181391 22.939875 25.525391 22.796875 L 45.771484 15.330078 C 46.519484 15.018078 47.001953 14.292422 47.001953 13.482422 C 47.000953 12.672422 46.516422 11.949047 45.732422 11.623047 L 26.046875 4.3144531 C 25.556875 4.1104531 25.031234 4.0075625 24.505859 4.0078125 z M 24.498047 6.0097656 C 24.770047 6.0097656 25.0455 6.0647813 25.3125 6.1757812 L 45.041016 13.46875 L 24.794922 20.935547 C 24.551922 21.039547 24.266188 21.039828 23.992188 20.923828 L 4.9765625 13.5 L 23.705078 6.1738281 L 23.728516 6.1640625 C 23.972516 6.0610625 24.233047 6.0097656 24.498047 6.0097656 z M 1.9980469 17.001953 C 0.94204687 17.001953 -2.9605947e-16 17.853906 0 19.003906 L 0 34.970703 C 0 36.129703 0.95195312 36.972656 2.0019531 36.972656 C 2.2979531 36.972656 2.6015312 36.906766 2.8945312 36.759766 L 20.894531 27.998047 C 22.425531 27.232047 22.349531 25.022281 20.769531 24.363281 L 2.7695312 17.15625 C 2.5135313 17.05125 2.2520469 17.001953 1.9980469 17.001953 z M 48.001953 17.001953 C 47.760953 17.001953 47.514484 17.045625 47.271484 17.140625 L 28.271484 24.505859 C 27.505484 24.806859 27 25.544188 27 26.367188 L 27 42.998047 C 27 44.146047 27.940047 45 28.998047 45 C 29.239047 45 29.485516 44.956328 29.728516 44.861328 L 48.728516 37.425781 C 49.495516 37.125781 50 36.387453 50 35.564453 L 50 19.003906 C 50 17.855906 49.059953 17.001953 48.001953 17.001953 z M 2.0058594 19.003906 L 2.0253906 19.013672 L 20.017578 26.201172 L 2 34.970703 L 2.0058594 19.003906 z M 48 19.003906 L 48 35.564453 L 29 42.998047 L 28.994141 26.371094 L 48 19.003906 z"
|
|
16
|
+
/></svg
|
|
17
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type AirtableIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type AirtableIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type AirtableIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class AirtableIcon extends SvelteComponentTyped<AirtableIconProps, AirtableIconEvents, AirtableIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 50 50"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 15.6875 4 C 14.113281 4 12.652344 4.867188 11.875 6.25 L 2.59375 22.78125 C 1.816406 24.160156 1.816406 25.839844 2.59375 27.21875 L 11.875 43.75 C 12.652344 45.132813 14.113281 46 15.6875 46 L 34.3125 46 C 35.886719 46 37.347656 45.132813 38.125 43.75 L 47.40625 27.21875 C 48.183594 25.839844 48.183594 24.160156 47.40625 22.78125 L 38.125 6.25 C 37.347656 4.867188 35.886719 4 34.3125 4 Z M 15.6875 6 L 34.3125 6 C 35.15625 6 35.941406 6.449219 36.375 7.21875 L 39.0625 12 L 17.5 12 L 17.21875 12.5 L 11.15625 23 L 7.90625 17.375 L 13.625 7.21875 C 14.058594 6.449219 14.84375 6 15.6875 6 Z M 18.65625 14 L 31.34375 14 L 37.71875 25 L 34.125 31.21875 L 31.34375 36 L 18.65625 36 L 17.5 34.03125 L 14.90625 29.53125 L 12.28125 25 Z M 33.65625 14 L 40.1875 14 L 45.6875 23.75 C 46.121094 24.519531 46.121094 25.480469 45.6875 26.25 L 36.375 42.78125 C 35.941406 43.550781 35.15625 44 34.3125 44 L 29.0625 44 L 32.5 38 L 32.78125 37.5 L 39.71875 25.5 L 40 25 L 39.71875 24.5 Z M 25 19 C 21.699219 19 19 21.699219 19 25 C 19 28.300781 21.699219 31 25 31 C 28.300781 31 31 28.300781 31 25 C 31 21.699219 28.300781 19 25 19 Z M 6.75 19.40625 L 10 25 L 10.28125 25.5 L 15.78125 35.03125 L 17.21875 37.5 L 17.5 38 L 30.1875 38 L 26.71875 44 L 15.6875 44 C 14.84375 44 14.058594 43.550781 13.625 42.78125 L 4.3125 26.25 C 3.878906 25.480469 3.878906 24.519531 4.3125 23.75 Z M 25 21 C 27.222656 21 29 22.777344 29 25 C 29 27.222656 27.222656 29 25 29 C 22.777344 29 21 27.222656 21 25 C 21 22.777344 22.777344 21 25 21 Z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type GCloudIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type GCloudIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type GCloudIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class GCloudIcon extends SvelteComponentTyped<GCloudIconProps, GCloudIconEvents, GCloudIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 50 50"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 38.011719 4 C 37.574219 3.996094 37.183594 4.273438 37.046875 4.691406 L 32.074219 20 L 17.925781 20 L 12.953125 4.691406 C 12.820313 4.289063 12.449219 4.011719 12.023438 4 C 11.597656 3.992188 11.214844 4.25 11.0625 4.648438 L 5.070313 20.640625 C 5.066406 20.640625 5.066406 20.644531 5.0625 20.648438 L 2.0625 28.648438 C 1.90625 29.070313 2.046875 29.542969 2.414063 29.808594 L 24.40625 45.800781 L 24.410156 45.808594 C 24.414063 45.808594 24.414063 45.808594 24.414063 45.8125 C 24.425781 45.820313 24.441406 45.828125 24.453125 45.835938 C 24.46875 45.84375 24.480469 45.855469 24.496094 45.863281 C 24.5 45.863281 24.5 45.867188 24.503906 45.867188 C 24.503906 45.867188 24.507813 45.871094 24.511719 45.871094 C 24.515625 45.875 24.519531 45.878906 24.527344 45.878906 C 24.53125 45.882813 24.539063 45.886719 24.542969 45.890625 C 24.5625 45.898438 24.585938 45.910156 24.609375 45.917969 C 24.609375 45.917969 24.609375 45.917969 24.609375 45.921875 C 24.632813 45.929688 24.65625 45.9375 24.675781 45.945313 C 24.679688 45.945313 24.679688 45.945313 24.683594 45.949219 C 24.699219 45.953125 24.714844 45.957031 24.734375 45.964844 C 24.742188 45.964844 24.75 45.96875 24.761719 45.96875 C 24.761719 45.972656 24.761719 45.972656 24.761719 45.96875 C 24.78125 45.976563 24.800781 45.980469 24.820313 45.984375 C 24.847656 45.988281 24.871094 45.992188 24.898438 45.996094 C 24.9375 45.996094 24.980469 46 25.019531 46 C 25.058594 45.996094 25.09375 45.996094 25.128906 45.988281 C 25.144531 45.988281 25.15625 45.988281 25.171875 45.984375 C 25.171875 45.984375 25.175781 45.984375 25.179688 45.984375 C 25.1875 45.980469 25.191406 45.980469 25.199219 45.980469 C 25.203125 45.980469 25.207031 45.976563 25.214844 45.976563 C 25.222656 45.972656 25.234375 45.972656 25.242188 45.96875 C 25.257813 45.964844 25.269531 45.960938 25.28125 45.957031 C 25.289063 45.957031 25.292969 45.957031 25.296875 45.953125 C 25.300781 45.953125 25.304688 45.953125 25.308594 45.953125 C 25.324219 45.945313 25.34375 45.9375 25.359375 45.933594 C 25.378906 45.925781 25.394531 45.917969 25.410156 45.910156 C 25.414063 45.910156 25.414063 45.910156 25.417969 45.90625 C 25.421875 45.90625 25.425781 45.90625 25.429688 45.902344 C 25.4375 45.898438 25.445313 45.894531 25.453125 45.890625 C 25.476563 45.878906 25.496094 45.867188 25.515625 45.855469 C 25.523438 45.851563 25.527344 45.847656 25.53125 45.84375 C 25.535156 45.84375 25.539063 45.839844 25.542969 45.839844 C 25.558594 45.828125 25.574219 45.820313 25.589844 45.808594 L 25.597656 45.796875 L 47.589844 29.808594 C 47.953125 29.542969 48.09375 29.070313 47.9375 28.648438 L 44.945313 20.675781 C 44.941406 20.667969 44.9375 20.65625 44.9375 20.648438 L 38.9375 4.648438 C 38.789063 4.261719 38.425781 4.003906 38.011719 4 Z M 11.933594 8.027344 L 15.824219 20 L 7.445313 20 Z M 38.066406 8.027344 L 42.558594 20 L 34.175781 20 Z M 8.066406 22 L 16.472656 22 L 22.328125 40.015625 Z M 18.578125 22 L 31.421875 22 L 25 41.765625 Z M 33.527344 22 L 41.933594 22 L 27.671875 40.015625 Z M 6.3125 23.007813 L 19.6875 39.902344 L 4.203125 28.640625 Z M 43.6875 23.007813 L 45.796875 28.640625 L 30.3125 39.902344 Z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type GItlabIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type GItlabIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type GItlabIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class GItlabIcon extends SvelteComponentTyped<GItlabIconProps, GItlabIconEvents, GItlabIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 50 50"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 28.90625 1.96875 C 28.863281 1.976563 28.820313 1.988281 28.78125 2 L 11.5 2 C 9.585938 2 8 3.558594 8 5.46875 L 8 43.90625 C 8 46.160156 9.867188 48 12.125 48 L 37.875 48 C 40.132813 48 42 46.160156 42 43.90625 L 42 15.1875 C 42.027344 15.054688 42.027344 14.914063 42 14.78125 L 42 14.5 C 42.007813 14.234375 41.90625 13.972656 41.71875 13.78125 L 30.21875 2.28125 C 30.027344 2.09375 29.765625 1.992188 29.5 2 L 29.1875 2 C 29.097656 1.976563 29 1.964844 28.90625 1.96875 Z M 11.5 4 L 28 4 L 28 12.34375 C 28 14.355469 29.644531 16 31.65625 16 L 40 16 L 40 43.90625 C 40 45.074219 39.054688 46 37.875 46 L 12.125 46 C 10.945313 46 10 45.074219 10 43.90625 L 10 5.46875 C 10 4.644531 10.660156 4 11.5 4 Z M 30 4.9375 L 39.0625 14 L 31.65625 14 C 30.722656 14 30 13.277344 30 12.34375 Z M 17 24 L 17 38 L 33 38 L 33 24 Z M 19 26 L 24 26 L 24 28 L 19 28 Z M 26 26 L 31 26 L 31 28 L 26 28 Z M 19 30 L 24 30 L 24 32 L 19 32 Z M 26 30 L 31 30 L 31 32 L 26 32 Z M 19 34 L 24 34 L 24 36 L 19 36 Z M 26 34 L 31 34 L 31 36 L 26 36 Z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type GSheetsIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type GSheetsIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type GSheetsIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class GSheetsIcon extends SvelteComponentTyped<GSheetsIconProps, GSheetsIconEvents, GSheetsIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 32 32"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 6.9667969 4 C 5.8922226 4 5 4.8922226 5 5.9667969 L 5 8.3867188 C 4.6700827 8.5693007 4.3668503 8.8022905 4.1230469 9.1015625 C 3.5561678 9.7967647 3.3299502 10.7122 3.5097656 11.591797 L 3.5097656 11.59375 C 4.0409792 14.178038 4.7794422 17.772026 4.8261719 18 C 4.7795089 18.227574 4.0439586 21.806083 3.5136719 24.390625 C 3.33239 25.274562 3.5603689 26.193876 4.1289062 26.892578 L 4.1289062 26.894531 C 4.6989448 27.593193 5.5544182 28 6.4570312 28 L 25.501953 28 C 26.414029 28 27.27875 27.588847 27.855469 26.882812 L 27.855469 26.880859 C 28.431397 26.174017 28.661627 25.244791 28.478516 24.351562 C 27.948342 21.768542 27.220293 18.226607 27.173828 18 C 27.220578 17.771923 27.959908 14.172625 28.490234 11.587891 C 28.670205 10.710536 28.445474 9.7948488 27.878906 9.0996094 L 27.876953 9.0976562 C 27.633016 8.7986233 27.330145 8.566746 27 8.3847656 L 27 5.9667969 C 27 4.8922226 26.107777 4 25.033203 4 L 6.9667969 4 z M 7 6 L 25 6 L 25 8 L 7 8 L 7 6 z M 6.4414062 10 L 25 10 L 25 10.003906 L 25.580078 10.003906 C 25.870925 10.00932 26.145127 10.138539 26.328125 10.363281 C 26.516313 10.593787 26.591101 10.893775 26.53125 11.185547 C 25.98421 13.851742 25.173828 17.798828 25.173828 17.798828 L 25.132812 18 L 25.173828 18.201172 C 25.173828 18.201172 25.970539 22.088714 26.517578 24.753906 C 26.579608 25.059411 26.503358 25.374804 26.306641 25.617188 C 26.107355 25.861152 25.815878 26 25.501953 26 L 6.4570312 26 C 6.1536443 26 5.871649 25.864198 5.6796875 25.628906 C 5.4891549 25.393814 5.4120715 25.088382 5.4726562 24.792969 C 6.0196814 22.126846 6.8261719 18.201172 6.8261719 18.201172 L 6.8671875 18 L 6.8261719 17.798828 C 6.8261719 17.798828 6.0168603 13.857943 5.46875 11.191406 L 5.4707031 11.191406 C 5.4106381 10.897589 5.4835861 10.595863 5.671875 10.365234 L 5.6738281 10.365234 C 5.8620903 10.134148 6.1432948 10 6.4414062 10 z M 13.294922 13 C 12.044922 13 10.909797 13.341641 10.341797 13.681641 L 10.796875 15.271484 C 11.250875 15.044484 12.046797 14.703125 12.841797 14.703125 C 13.750797 14.703125 14.205078 15.158563 14.205078 15.726562 C 14.205078 16.521563 13.295 16.863281 12.5 16.863281 L 11.591797 16.863281 L 11.591797 18.453125 L 12.501953 18.453125 C 13.524953 18.453125 14.433594 18.909359 14.433594 19.818359 C 14.433594 20.500359 13.864516 21.068359 12.728516 21.068359 C 11.819516 21.068359 10.910078 20.727 10.455078 20.5 L 9.9980469 22.318359 C 10.566047 22.659359 11.589844 23 12.839844 23 C 15.339844 23 16.816406 21.749922 16.816406 20.044922 C 16.816406 18.681922 15.907484 17.885203 14.771484 17.658203 C 15.908484 17.203203 16.476562 16.409719 16.476562 15.386719 C 16.476562 14.023719 15.339922 13 13.294922 13 z M 19 13 L 19 23 L 21 23 L 21 13 L 19 13 z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type GcalIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type GcalIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type GcalIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class GcalIcon extends SvelteComponentTyped<GcalIconProps, GcalIconEvents, GcalIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 32 32"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 11.4375 5 L 11.15625 5.46875 L 3.15625 18.46875 L 2.84375 18.96875 L 3.125 19.5 L 7.125 26.5 L 7.40625 27 L 24.59375 27 L 24.875 26.5 L 28.875 19.5 L 29.15625 18.96875 L 28.84375 18.46875 L 20.84375 5.46875 L 20.5625 5 Z M 13.78125 7 L 19.4375 7 L 26.21875 18 L 20.5625 18 Z M 12 7.90625 L 14.96875 12.75 L 8.03125 24.03125 L 5.15625 19 Z M 16.15625 14.65625 L 18.21875 18 L 14.09375 18 Z M 12.875 20 L 26.28125 20 L 23.40625 25 L 9.78125 25 Z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type GdriveIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type GdriveIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type GdriveIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class GdriveIcon extends SvelteComponentTyped<GdriveIconProps, GdriveIconEvents, GdriveIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|