Flowfile 0.3.9__py3-none-any.whl → 0.3.10__py3-none-any.whl
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.
Potentially problematic release.
This version of Flowfile might be problematic. Click here for more details.
- flowfile/__init__.py +1 -1
- flowfile/api.py +0 -1
- flowfile/web/static/assets/{CloudConnectionManager-c97c25f8.js → CloudConnectionManager-d7c2c028.js} +2 -2
- flowfile/web/static/assets/{CloudStorageReader-f1ff509e.js → CloudStorageReader-d467329f.js} +11 -78
- flowfile/web/static/assets/{CloudStorageWriter-034f8b78.js → CloudStorageWriter-071b8b00.js} +12 -79
- flowfile/web/static/assets/{CloudStorageWriter-49c9a4b2.css → CloudStorageWriter-b0ee067f.css} +24 -24
- flowfile/web/static/assets/ContextMenu-2dea5e27.js +41 -0
- flowfile/web/static/assets/{SettingsSection-9c836ecc.css → ContextMenu-4c74eef1.css} +0 -21
- flowfile/web/static/assets/ContextMenu-63cfa99b.css +26 -0
- flowfile/web/static/assets/ContextMenu-785554c4.js +41 -0
- flowfile/web/static/assets/ContextMenu-a51e19ea.js +41 -0
- flowfile/web/static/assets/ContextMenu-c13f91d0.css +26 -0
- flowfile/web/static/assets/{CrossJoin-41efa4cb.css → CrossJoin-1119d18e.css} +18 -18
- flowfile/web/static/assets/{CrossJoin-9e156ebe.js → CrossJoin-cf68ec7a.js} +14 -84
- flowfile/web/static/assets/{DatabaseConnectionSettings-d5c625b3.js → DatabaseConnectionSettings-435c5dd8.js} +3 -3
- flowfile/web/static/assets/{DatabaseManager-265adc5e.js → DatabaseManager-349e33a8.js} +2 -2
- flowfile/web/static/assets/{DatabaseReader-0b10551e.js → DatabaseReader-8075bd28.js} +14 -114
- flowfile/web/static/assets/{DatabaseReader-f50c6558.css → DatabaseReader-ae61773c.css} +0 -27
- flowfile/web/static/assets/{DatabaseWriter-c17c6916.js → DatabaseWriter-3e2dda89.js} +13 -74
- flowfile/web/static/assets/{ExploreData-5bdae813.css → ExploreData-2d0cf4db.css} +8 -14
- flowfile/web/static/assets/ExploreData-76ec698c.js +192 -0
- flowfile/web/static/assets/{ExternalSource-3a66556c.js → ExternalSource-609a265c.js} +8 -79
- flowfile/web/static/assets/{Filter-91ad87e7.js → Filter-97cff793.js} +12 -85
- flowfile/web/static/assets/{Filter-a9d08ba1.css → Filter-f62091b3.css} +3 -3
- flowfile/web/static/assets/{Formula-3c395ab1.js → Formula-09de0ec9.js} +18 -85
- flowfile/web/static/assets/{Formula-29f19d21.css → Formula-bb96803d.css} +4 -4
- flowfile/web/static/assets/{FuzzyMatch-6857de82.css → FuzzyMatch-1010f966.css} +42 -42
- flowfile/web/static/assets/{FuzzyMatch-2df0d230.js → FuzzyMatch-bdf70248.js} +16 -87
- flowfile/web/static/assets/{GraphSolver-d285877f.js → GraphSolver-0b5a0e05.js} +13 -159
- flowfile/web/static/assets/GraphSolver-f0cb7bfb.css +22 -0
- flowfile/web/static/assets/{Unique-b5615727.css → GroupBy-b9505323.css} +8 -8
- flowfile/web/static/assets/{GroupBy-0bd1cc6b.js → GroupBy-eaddadde.js} +12 -75
- flowfile/web/static/assets/{Join-5a78a203.js → Join-3313371b.js} +15 -85
- flowfile/web/static/assets/{Join-f45eff22.css → Join-fd79b451.css} +20 -20
- flowfile/web/static/assets/{ManualInput-a71b52c6.css → ManualInput-3246a08d.css} +20 -20
- flowfile/web/static/assets/{ManualInput-93aef9d6.js → ManualInput-e8bfc0be.js} +11 -82
- flowfile/web/static/assets/{Output-411ecaee.js → Output-7303bb09.js} +13 -243
- flowfile/web/static/assets/Output-ddc9079f.css +37 -0
- flowfile/web/static/assets/{Pivot-89db4b04.js → Pivot-3b1c54ef.js} +14 -138
- flowfile/web/static/assets/Pivot-cf333e3d.css +22 -0
- flowfile/web/static/assets/PivotValidation-3bb36c8f.js +61 -0
- flowfile/web/static/assets/PivotValidation-891ddfb0.css +13 -0
- flowfile/web/static/assets/PivotValidation-c46cd420.css +13 -0
- flowfile/web/static/assets/PivotValidation-eaa819c0.js +61 -0
- flowfile/web/static/assets/{PolarsCode-a9f974f8.js → PolarsCode-aa12e25d.js} +13 -80
- flowfile/web/static/assets/Read-6b17491f.css +62 -0
- flowfile/web/static/assets/Read-a2bfc618.js +243 -0
- flowfile/web/static/assets/RecordCount-aa0dc082.js +53 -0
- flowfile/web/static/assets/{RecordId-55ae7d36.js → RecordId-48ee1a3b.js} +8 -80
- flowfile/web/static/assets/SQLQueryComponent-36cef432.css +27 -0
- flowfile/web/static/assets/SQLQueryComponent-e149dbf2.js +38 -0
- flowfile/web/static/assets/{Sample-b4a18476.js → Sample-f06cb97a.js} +8 -77
- flowfile/web/static/assets/{SecretManager-b066d13a.js → SecretManager-37f34886.js} +2 -2
- flowfile/web/static/assets/{Select-727688dc.js → Select-b60e6c47.js} +11 -85
- flowfile/web/static/assets/SettingsSection-2e4d03c4.css +21 -0
- flowfile/web/static/assets/SettingsSection-5c696bee.css +20 -0
- flowfile/web/static/assets/SettingsSection-70e5a7b1.js +53 -0
- flowfile/web/static/assets/SettingsSection-71e6b7e3.css +21 -0
- flowfile/web/static/assets/{SettingsSection-695ac487.js → SettingsSection-75b6cf4f.js} +2 -40
- flowfile/web/static/assets/SettingsSection-e57a672e.js +45 -0
- flowfile/web/static/assets/{GroupBy-ab1ea74b.css → Sort-3643d625.css} +8 -8
- flowfile/web/static/assets/{Sort-be3339a8.js → Sort-51b1ee4d.js} +12 -97
- flowfile/web/static/assets/{TextToRows-7b8998da.js → TextToRows-26835f8f.js} +14 -83
- flowfile/web/static/assets/{TextToRows-c92d1ec2.css → TextToRows-5d2c1190.css} +9 -9
- flowfile/web/static/assets/{UnavailableFields-8b0cb48e.js → UnavailableFields-88a4cd0c.js} +2 -2
- flowfile/web/static/assets/Union-4d0088eb.js +77 -0
- flowfile/web/static/assets/{Union-8d9ac7f9.css → Union-af6c3d9b.css} +6 -6
- flowfile/web/static/assets/{Unique-af5a80b4.js → Unique-7d554a62.js} +22 -91
- flowfile/web/static/assets/{Sort-7ccfa0fe.css → Unique-f9fb0809.css} +8 -8
- flowfile/web/static/assets/Unpivot-1e422df3.css +30 -0
- flowfile/web/static/assets/{Unpivot-5195d411.js → Unpivot-4668595c.js} +12 -166
- flowfile/web/static/assets/UnpivotValidation-0d240eeb.css +13 -0
- flowfile/web/static/assets/UnpivotValidation-d4f0e0e8.js +51 -0
- flowfile/web/static/assets/{ExploreData-18a4fe52.js → VueGraphicWalker-5324d566.js} +4 -264
- flowfile/web/static/assets/VueGraphicWalker-ed5ab88b.css +6 -0
- flowfile/web/static/assets/{api-cb00cce6.js → api-271ed117.js} +1 -1
- flowfile/web/static/assets/{api-023d1733.js → api-31e4fea6.js} +1 -1
- flowfile/web/static/assets/{designer-2197d782.css → designer-091bdc3f.css} +819 -184
- flowfile/web/static/assets/{designer-6c322d8e.js → designer-bf3d9487.js} +2191 -703
- flowfile/web/static/assets/{documentation-4d1fafe1.js → documentation-4d0a1cea.js} +1 -1
- flowfile/web/static/assets/{dropDown-0b46dd77.js → dropDown-025888df.js} +1 -1
- flowfile/web/static/assets/{fullEditor-ec4e4f95.js → fullEditor-1df991ec.js} +2 -2
- flowfile/web/static/assets/{genericNodeSettings-def5879b.js → genericNodeSettings-d3b2b2ac.js} +3 -3
- flowfile/web/static/assets/{index-683fc198.js → index-d0518598.js} +210 -31
- flowfile/web/static/assets/{Output-48f81019.css → outputCsv-9cc59e0b.css} +0 -143
- flowfile/web/static/assets/outputCsv-d8457527.js +86 -0
- flowfile/web/static/assets/outputExcel-b41305c0.css +102 -0
- flowfile/web/static/assets/outputExcel-be89153e.js +56 -0
- flowfile/web/static/assets/outputParquet-cf8cf3f2.css +4 -0
- flowfile/web/static/assets/outputParquet-fabb445a.js +31 -0
- flowfile/web/static/assets/readCsv-bca3ed53.css +52 -0
- flowfile/web/static/assets/readCsv-e8359522.js +178 -0
- flowfile/web/static/assets/readExcel-dabaf51b.js +203 -0
- flowfile/web/static/assets/readExcel-e1b381ea.css +64 -0
- flowfile/web/static/assets/readParquet-cee068e2.css +19 -0
- flowfile/web/static/assets/readParquet-e0771ef2.js +26 -0
- flowfile/web/static/assets/{secretApi-baceb6f9.js → secretApi-ce823eee.js} +1 -1
- flowfile/web/static/assets/{selectDynamic-de91449a.js → selectDynamic-5476546e.js} +7 -7
- flowfile/web/static/assets/{selectDynamic-b062bc9b.css → selectDynamic-aa913ff4.css} +16 -16
- flowfile/web/static/assets/{vue-codemirror.esm-dc5e3348.js → vue-codemirror.esm-9ed00d50.js} +29 -33
- flowfile/web/static/assets/{vue-content-loader.es-ba94b82f.js → vue-content-loader.es-7bca2d9b.js} +1 -1
- flowfile/web/static/index.html +1 -1
- {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/METADATA +1 -1
- {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/RECORD +129 -97
- flowfile_core/configs/flow_logger.py +5 -13
- flowfile_core/configs/node_store/nodes.py +303 -44
- flowfile_core/configs/settings.py +2 -1
- flowfile_core/database/connection.py +5 -21
- flowfile_core/fileExplorer/funcs.py +239 -121
- flowfile_core/flowfile/flow_data_engine/subprocess_operations/subprocess_operations.py +28 -8
- flowfile_core/flowfile/flow_graph.py +97 -33
- flowfile_core/flowfile/flow_node/flow_node.py +41 -9
- flowfile_core/flowfile/handler.py +22 -3
- flowfile_core/flowfile/schema_callbacks.py +8 -4
- flowfile_core/flowfile/setting_generator/settings.py +0 -1
- flowfile_core/main.py +4 -1
- flowfile_core/routes/routes.py +59 -10
- flowfile_core/schemas/input_schema.py +0 -1
- flowfile_core/schemas/output_model.py +5 -2
- flowfile_core/schemas/schemas.py +2 -0
- flowfile_core/schemas/transform_schema.py +1 -0
- flowfile_worker/__init__.py +6 -35
- flowfile_worker/main.py +5 -2
- flowfile_worker/routes.py +47 -5
- shared/__init__.py +15 -0
- shared/storage_config.py +243 -0
- flowfile/web/static/assets/GraphSolver-17fd26db.css +0 -68
- flowfile/web/static/assets/Pivot-f415e85f.css +0 -35
- flowfile/web/static/assets/Read-80dc1675.css +0 -197
- flowfile/web/static/assets/Read-c3b1929c.js +0 -701
- flowfile/web/static/assets/RecordCount-4e95f98e.js +0 -122
- flowfile/web/static/assets/Union-89fd73dc.js +0 -146
- flowfile/web/static/assets/Unpivot-246e9bbd.css +0 -77
- flowfile/web/static/assets/nodeTitle-a16db7c3.js +0 -227
- flowfile/web/static/assets/nodeTitle-f4b12bcb.css +0 -134
- {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/LICENSE +0 -0
- {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/WHEEL +0 -0
- {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/entry_points.txt +0 -0
|
@@ -1,701 +0,0 @@
|
|
|
1
|
-
import { C as CodeLoader } from "./vue-content-loader.es-ba94b82f.js";
|
|
2
|
-
import { a as axios, d as defineComponent, r as ref, l as computed, n as onMounted, m as watch, b as resolveComponent, c as openBlock, e as createElementBlock, p as createBaseVNode, f as createVNode, w as withCtx, i as createCommentVNode, t as toDisplayString, a5 as withDirectives, a6 as vModelText, h as createBlock, u as unref, _ as _export_sfc, ar as ElCheckbox, F as Fragment, q as renderList, an as ElOption, ao as ElSelect, as as ElSlider, R as nextTick, a7 as Teleport } from "./index-683fc198.js";
|
|
3
|
-
import { C as ColumnSelector } from "./dropDown-0b46dd77.js";
|
|
4
|
-
import { u as useNodeStore } from "./vue-codemirror.esm-dc5e3348.js";
|
|
5
|
-
import { F as FileBrowser } from "./designer-6c322d8e.js";
|
|
6
|
-
import { N as NodeButton, a as NodeTitle } from "./nodeTitle-a16db7c3.js";
|
|
7
|
-
const getXlsxSheetNamesForPath = async (path) => {
|
|
8
|
-
const response = await axios.get(`/api/get_xlsx_sheet_names?path=${path}`);
|
|
9
|
-
return response.data;
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_1$3 = { key: 0 };
|
|
12
|
-
const _hoisted_2$2 = { class: "table" };
|
|
13
|
-
const _hoisted_3$2 = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "selectors"
|
|
16
|
-
};
|
|
17
|
-
const _hoisted_4$2 = { class: "row" };
|
|
18
|
-
const _hoisted_5$2 = { class: "input-wrapper" };
|
|
19
|
-
const _hoisted_6$2 = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "warning-sign"
|
|
22
|
-
};
|
|
23
|
-
const _hoisted_7$2 = { class: "row" };
|
|
24
|
-
const _hoisted_8$1 = { class: "button-container" };
|
|
25
|
-
const _hoisted_9$1 = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "optional-section"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_10 = { class: "row" };
|
|
30
|
-
const _hoisted_11 = { class: "input-wrapper" };
|
|
31
|
-
const _hoisted_12 = { class: "input-wrapper" };
|
|
32
|
-
const _hoisted_13 = { class: "row" };
|
|
33
|
-
const _hoisted_14 = { class: "input-wrapper" };
|
|
34
|
-
const _hoisted_15 = { class: "input-wrapper" };
|
|
35
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
36
|
-
__name: "readExcel",
|
|
37
|
-
props: {
|
|
38
|
-
modelValue: {
|
|
39
|
-
type: Object,
|
|
40
|
-
required: true
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
emits: ["update:modelValue"],
|
|
44
|
-
setup(__props, { emit: __emit }) {
|
|
45
|
-
const props = __props;
|
|
46
|
-
const isLoaded = ref(false);
|
|
47
|
-
const emit = __emit;
|
|
48
|
-
const localExcelTable = ref({ ...props.modelValue });
|
|
49
|
-
const showOptionalSettings = ref(false);
|
|
50
|
-
const sheetNames = ref([]);
|
|
51
|
-
const sheetNamesLoaded = ref(false);
|
|
52
|
-
const getSheetNames = async () => {
|
|
53
|
-
sheetNames.value = await getXlsxSheetNamesForPath(localExcelTable.value.path);
|
|
54
|
-
sheetNamesLoaded.value = true;
|
|
55
|
-
};
|
|
56
|
-
const toggleOptionalSettings = () => {
|
|
57
|
-
showOptionalSettings.value = !showOptionalSettings.value;
|
|
58
|
-
};
|
|
59
|
-
const showWarning = computed(() => {
|
|
60
|
-
if (!sheetNamesLoaded.value) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
return !sheetNames.value.includes(localExcelTable.value.sheet_name);
|
|
64
|
-
});
|
|
65
|
-
onMounted(() => {
|
|
66
|
-
if (localExcelTable.value.path) {
|
|
67
|
-
getSheetNames();
|
|
68
|
-
}
|
|
69
|
-
isLoaded.value = true;
|
|
70
|
-
});
|
|
71
|
-
watch(
|
|
72
|
-
() => localExcelTable.value,
|
|
73
|
-
(newValue) => {
|
|
74
|
-
emit("update:modelValue", { ...newValue });
|
|
75
|
-
},
|
|
76
|
-
{ deep: true }
|
|
77
|
-
);
|
|
78
|
-
return (_ctx, _cache) => {
|
|
79
|
-
const _component_el_row = resolveComponent("el-row");
|
|
80
|
-
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
81
|
-
return isLoaded.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
82
|
-
createBaseVNode("div", _hoisted_2$2, [
|
|
83
|
-
localExcelTable.value ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
84
|
-
createBaseVNode("div", _hoisted_4$2, [
|
|
85
|
-
createVNode(_component_el_row, null, {
|
|
86
|
-
default: withCtx(() => [
|
|
87
|
-
createBaseVNode("div", _hoisted_5$2, [
|
|
88
|
-
_cache[7] || (_cache[7] = createBaseVNode("label", null, "Sheet Name", -1)),
|
|
89
|
-
createVNode(ColumnSelector, {
|
|
90
|
-
modelValue: localExcelTable.value.sheet_name,
|
|
91
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localExcelTable.value.sheet_name = $event),
|
|
92
|
-
placeholder: "Select or type sheet name",
|
|
93
|
-
"column-options": sheetNames.value,
|
|
94
|
-
"is-loading": !sheetNamesLoaded.value
|
|
95
|
-
}, null, 8, ["modelValue", "column-options", "is-loading"]),
|
|
96
|
-
showWarning.value ? (openBlock(), createElementBlock("span", _hoisted_6$2, "⚠️")) : createCommentVNode("", true)
|
|
97
|
-
])
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
})
|
|
101
|
-
]),
|
|
102
|
-
createBaseVNode("div", _hoisted_7$2, [
|
|
103
|
-
createVNode(_component_el_checkbox, {
|
|
104
|
-
modelValue: localExcelTable.value.has_headers,
|
|
105
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => localExcelTable.value.has_headers = $event),
|
|
106
|
-
label: "Has headers",
|
|
107
|
-
size: "large"
|
|
108
|
-
}, null, 8, ["modelValue"]),
|
|
109
|
-
createVNode(_component_el_checkbox, {
|
|
110
|
-
modelValue: localExcelTable.value.type_inference,
|
|
111
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => localExcelTable.value.type_inference = $event),
|
|
112
|
-
label: "Type inference",
|
|
113
|
-
size: "large"
|
|
114
|
-
}, null, 8, ["modelValue"])
|
|
115
|
-
]),
|
|
116
|
-
_cache[15] || (_cache[15] = createBaseVNode("hr", { class: "section-divider" }, null, -1)),
|
|
117
|
-
createBaseVNode("div", _hoisted_8$1, [
|
|
118
|
-
createBaseVNode("button", {
|
|
119
|
-
class: "toggle-button",
|
|
120
|
-
onClick: toggleOptionalSettings
|
|
121
|
-
}, toDisplayString(showOptionalSettings.value ? "Hide" : "Show") + " Optional Settings ", 1)
|
|
122
|
-
]),
|
|
123
|
-
showOptionalSettings.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
124
|
-
_cache[12] || (_cache[12] = createBaseVNode("hr", { class: "section-divider" }, null, -1)),
|
|
125
|
-
_cache[13] || (_cache[13] = createBaseVNode("div", { class: "table-sizes" }, "Table sizes", -1)),
|
|
126
|
-
createBaseVNode("div", _hoisted_10, [
|
|
127
|
-
createBaseVNode("div", _hoisted_11, [
|
|
128
|
-
_cache[8] || (_cache[8] = createBaseVNode("label", { for: "start-row" }, "Start Row", -1)),
|
|
129
|
-
withDirectives(createBaseVNode("input", {
|
|
130
|
-
id: "start-row",
|
|
131
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => localExcelTable.value.start_row = $event),
|
|
132
|
-
type: "number",
|
|
133
|
-
class: "compact-input"
|
|
134
|
-
}, null, 512), [
|
|
135
|
-
[
|
|
136
|
-
vModelText,
|
|
137
|
-
localExcelTable.value.start_row,
|
|
138
|
-
void 0,
|
|
139
|
-
{ number: true }
|
|
140
|
-
]
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
createBaseVNode("div", _hoisted_12, [
|
|
144
|
-
_cache[9] || (_cache[9] = createBaseVNode("label", { for: "end-row" }, "End Row", -1)),
|
|
145
|
-
withDirectives(createBaseVNode("input", {
|
|
146
|
-
id: "end-row",
|
|
147
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => localExcelTable.value.end_row = $event),
|
|
148
|
-
type: "number",
|
|
149
|
-
class: "compact-input"
|
|
150
|
-
}, null, 512), [
|
|
151
|
-
[
|
|
152
|
-
vModelText,
|
|
153
|
-
localExcelTable.value.end_row,
|
|
154
|
-
void 0,
|
|
155
|
-
{ number: true }
|
|
156
|
-
]
|
|
157
|
-
])
|
|
158
|
-
])
|
|
159
|
-
]),
|
|
160
|
-
_cache[14] || (_cache[14] = createBaseVNode("hr", { class: "section-divider" }, null, -1)),
|
|
161
|
-
createBaseVNode("div", _hoisted_13, [
|
|
162
|
-
createBaseVNode("div", _hoisted_14, [
|
|
163
|
-
_cache[10] || (_cache[10] = createBaseVNode("label", { for: "start-column" }, "Start Column", -1)),
|
|
164
|
-
withDirectives(createBaseVNode("input", {
|
|
165
|
-
id: "start-column",
|
|
166
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => localExcelTable.value.start_column = $event),
|
|
167
|
-
type: "number",
|
|
168
|
-
class: "compact-input"
|
|
169
|
-
}, null, 512), [
|
|
170
|
-
[
|
|
171
|
-
vModelText,
|
|
172
|
-
localExcelTable.value.start_column,
|
|
173
|
-
void 0,
|
|
174
|
-
{ number: true }
|
|
175
|
-
]
|
|
176
|
-
])
|
|
177
|
-
]),
|
|
178
|
-
createBaseVNode("div", _hoisted_15, [
|
|
179
|
-
_cache[11] || (_cache[11] = createBaseVNode("label", { for: "end-column" }, "End Column", -1)),
|
|
180
|
-
withDirectives(createBaseVNode("input", {
|
|
181
|
-
id: "end-column",
|
|
182
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => localExcelTable.value.end_column = $event),
|
|
183
|
-
type: "number",
|
|
184
|
-
class: "compact-input"
|
|
185
|
-
}, null, 512), [
|
|
186
|
-
[
|
|
187
|
-
vModelText,
|
|
188
|
-
localExcelTable.value.end_column,
|
|
189
|
-
void 0,
|
|
190
|
-
{ number: true }
|
|
191
|
-
]
|
|
192
|
-
])
|
|
193
|
-
])
|
|
194
|
-
])
|
|
195
|
-
])) : createCommentVNode("", true)
|
|
196
|
-
])) : createCommentVNode("", true)
|
|
197
|
-
])
|
|
198
|
-
])) : (openBlock(), createBlock(unref(CodeLoader), { key: 1 }));
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
const readExcel_vue_vue_type_style_index_0_scoped_e7395814_lang = "";
|
|
203
|
-
const ExcelTableConfig = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e7395814"]]);
|
|
204
|
-
const _hoisted_1$2 = { class: "csv-table-settings" };
|
|
205
|
-
const _hoisted_2$1 = { class: "row" };
|
|
206
|
-
const _hoisted_3$1 = { class: "row" };
|
|
207
|
-
const _hoisted_4$1 = { class: "row" };
|
|
208
|
-
const _hoisted_5$1 = { class: "row" };
|
|
209
|
-
const _hoisted_6$1 = { class: "row" };
|
|
210
|
-
const _hoisted_7$1 = { class: "row" };
|
|
211
|
-
const _hoisted_8 = { class: "row" };
|
|
212
|
-
const _hoisted_9 = { class: "row" };
|
|
213
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
214
|
-
__name: "readCsv",
|
|
215
|
-
props: {
|
|
216
|
-
modelValue: {
|
|
217
|
-
type: Object,
|
|
218
|
-
required: true
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
emits: ["update:modelValue"],
|
|
222
|
-
setup(__props, { emit: __emit }) {
|
|
223
|
-
const props = __props;
|
|
224
|
-
const emit = __emit;
|
|
225
|
-
const localCsvTable = ref(props.modelValue);
|
|
226
|
-
const updateParent = () => {
|
|
227
|
-
emit("update:modelValue", localCsvTable.value);
|
|
228
|
-
};
|
|
229
|
-
const csv_settings = {
|
|
230
|
-
delimiter_options: [",", ";", "|", "tab"],
|
|
231
|
-
encoding_options: ["utf-8", "ISO-8859-1", "ASCII"],
|
|
232
|
-
row_delimiter: ["\\n", "\\r\\n", "\\r"],
|
|
233
|
-
quote_char: ['"', "'", "auto"]
|
|
234
|
-
};
|
|
235
|
-
watch(
|
|
236
|
-
() => props.modelValue,
|
|
237
|
-
(newVal) => {
|
|
238
|
-
localCsvTable.value = newVal;
|
|
239
|
-
},
|
|
240
|
-
{ deep: true }
|
|
241
|
-
);
|
|
242
|
-
return (_ctx, _cache) => {
|
|
243
|
-
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
244
|
-
createBaseVNode("div", _hoisted_2$1, [
|
|
245
|
-
_cache[8] || (_cache[8] = createBaseVNode("label", { for: "has-headers" }, "Has Headers:", -1)),
|
|
246
|
-
createVNode(unref(ElCheckbox), {
|
|
247
|
-
modelValue: localCsvTable.value.has_headers,
|
|
248
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localCsvTable.value.has_headers = $event),
|
|
249
|
-
size: "large",
|
|
250
|
-
onChange: updateParent
|
|
251
|
-
}, null, 8, ["modelValue"])
|
|
252
|
-
]),
|
|
253
|
-
createBaseVNode("div", _hoisted_3$1, [
|
|
254
|
-
_cache[9] || (_cache[9] = createBaseVNode("label", { for: "delimiter" }, "Delimiter:", -1)),
|
|
255
|
-
createVNode(unref(ElSelect), {
|
|
256
|
-
modelValue: localCsvTable.value.delimiter,
|
|
257
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => localCsvTable.value.delimiter = $event),
|
|
258
|
-
placeholder: "Select delimiter",
|
|
259
|
-
clearable: "",
|
|
260
|
-
size: "small",
|
|
261
|
-
onChange: updateParent
|
|
262
|
-
}, {
|
|
263
|
-
default: withCtx(() => [
|
|
264
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(csv_settings.delimiter_options, (option) => {
|
|
265
|
-
return openBlock(), createBlock(unref(ElOption), {
|
|
266
|
-
key: option,
|
|
267
|
-
label: option,
|
|
268
|
-
value: option
|
|
269
|
-
}, null, 8, ["label", "value"]);
|
|
270
|
-
}), 128))
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
}, 8, ["modelValue"])
|
|
274
|
-
]),
|
|
275
|
-
createBaseVNode("div", _hoisted_4$1, [
|
|
276
|
-
_cache[10] || (_cache[10] = createBaseVNode("label", { for: "encoding" }, "Encoding:", -1)),
|
|
277
|
-
createVNode(unref(ElSelect), {
|
|
278
|
-
modelValue: localCsvTable.value.encoding,
|
|
279
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => localCsvTable.value.encoding = $event),
|
|
280
|
-
placeholder: "Select encoding",
|
|
281
|
-
clearable: "",
|
|
282
|
-
size: "small",
|
|
283
|
-
onChange: updateParent
|
|
284
|
-
}, {
|
|
285
|
-
default: withCtx(() => [
|
|
286
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(csv_settings.encoding_options, (option) => {
|
|
287
|
-
return openBlock(), createBlock(unref(ElOption), {
|
|
288
|
-
key: option,
|
|
289
|
-
label: option,
|
|
290
|
-
value: option
|
|
291
|
-
}, null, 8, ["label", "value"]);
|
|
292
|
-
}), 128))
|
|
293
|
-
]),
|
|
294
|
-
_: 1
|
|
295
|
-
}, 8, ["modelValue"])
|
|
296
|
-
]),
|
|
297
|
-
createBaseVNode("div", _hoisted_5$1, [
|
|
298
|
-
_cache[11] || (_cache[11] = createBaseVNode("label", { for: "quote-char" }, "Quote Character:", -1)),
|
|
299
|
-
createVNode(unref(ElSelect), {
|
|
300
|
-
modelValue: localCsvTable.value.quote_char,
|
|
301
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => localCsvTable.value.quote_char = $event),
|
|
302
|
-
placeholder: "Select quote character",
|
|
303
|
-
clearable: "",
|
|
304
|
-
size: "small",
|
|
305
|
-
onChange: updateParent
|
|
306
|
-
}, {
|
|
307
|
-
default: withCtx(() => [
|
|
308
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(csv_settings.quote_char, (option) => {
|
|
309
|
-
return openBlock(), createBlock(unref(ElOption), {
|
|
310
|
-
key: option,
|
|
311
|
-
label: option,
|
|
312
|
-
value: option
|
|
313
|
-
}, null, 8, ["label", "value"]);
|
|
314
|
-
}), 128))
|
|
315
|
-
]),
|
|
316
|
-
_: 1
|
|
317
|
-
}, 8, ["modelValue"])
|
|
318
|
-
]),
|
|
319
|
-
createBaseVNode("div", _hoisted_6$1, [
|
|
320
|
-
_cache[12] || (_cache[12] = createBaseVNode("label", { for: "row-delimiter" }, "New Line Delimiter:", -1)),
|
|
321
|
-
createVNode(unref(ElSelect), {
|
|
322
|
-
modelValue: localCsvTable.value.row_delimiter,
|
|
323
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => localCsvTable.value.row_delimiter = $event),
|
|
324
|
-
placeholder: "Select new line delimiter",
|
|
325
|
-
clearable: "",
|
|
326
|
-
size: "small",
|
|
327
|
-
onChange: updateParent
|
|
328
|
-
}, {
|
|
329
|
-
default: withCtx(() => [
|
|
330
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(csv_settings.row_delimiter, (option) => {
|
|
331
|
-
return openBlock(), createBlock(unref(ElOption), {
|
|
332
|
-
key: option,
|
|
333
|
-
label: option,
|
|
334
|
-
value: option
|
|
335
|
-
}, null, 8, ["label", "value"]);
|
|
336
|
-
}), 128))
|
|
337
|
-
]),
|
|
338
|
-
_: 1
|
|
339
|
-
}, 8, ["modelValue"])
|
|
340
|
-
]),
|
|
341
|
-
createBaseVNode("div", _hoisted_7$1, [
|
|
342
|
-
_cache[13] || (_cache[13] = createBaseVNode("label", { for: "infer-schema-length" }, "Schema Infer Length:", -1)),
|
|
343
|
-
createVNode(unref(ElSlider), {
|
|
344
|
-
modelValue: localCsvTable.value.infer_schema_length,
|
|
345
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => localCsvTable.value.infer_schema_length = $event),
|
|
346
|
-
step: 1e3,
|
|
347
|
-
max: 1e5,
|
|
348
|
-
min: 0,
|
|
349
|
-
"show-stops": "",
|
|
350
|
-
size: "small",
|
|
351
|
-
onChange: updateParent
|
|
352
|
-
}, null, 8, ["modelValue"])
|
|
353
|
-
]),
|
|
354
|
-
createBaseVNode("div", _hoisted_8, [
|
|
355
|
-
_cache[14] || (_cache[14] = createBaseVNode("label", { for: "truncate-long-lines" }, "Truncate Long Lines:", -1)),
|
|
356
|
-
createVNode(unref(ElCheckbox), {
|
|
357
|
-
modelValue: localCsvTable.value.truncate_ragged_lines,
|
|
358
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => localCsvTable.value.truncate_ragged_lines = $event),
|
|
359
|
-
size: "large",
|
|
360
|
-
onChange: updateParent
|
|
361
|
-
}, null, 8, ["modelValue"])
|
|
362
|
-
]),
|
|
363
|
-
createBaseVNode("div", _hoisted_9, [
|
|
364
|
-
_cache[15] || (_cache[15] = createBaseVNode("label", { for: "ignore-errors" }, "Ignore Errors:", -1)),
|
|
365
|
-
createVNode(unref(ElCheckbox), {
|
|
366
|
-
modelValue: localCsvTable.value.ignore_errors,
|
|
367
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => localCsvTable.value.ignore_errors = $event),
|
|
368
|
-
size: "large",
|
|
369
|
-
onChange: updateParent
|
|
370
|
-
}, null, 8, ["modelValue"])
|
|
371
|
-
])
|
|
372
|
-
]);
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
const readCsv_vue_vue_type_style_index_0_scoped_d0b76f7b_lang = "";
|
|
377
|
-
const CsvTableConfig = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d0b76f7b"]]);
|
|
378
|
-
const _hoisted_1$1 = { class: "parquet-table-settings" };
|
|
379
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
380
|
-
__name: "readParquet",
|
|
381
|
-
props: {
|
|
382
|
-
modelValue: {
|
|
383
|
-
type: Object,
|
|
384
|
-
required: true
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
setup(__props) {
|
|
388
|
-
return (_ctx, _cache) => {
|
|
389
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, _cache[0] || (_cache[0] = [
|
|
390
|
-
createBaseVNode("div", { class: "message" }, [
|
|
391
|
-
createBaseVNode("h2", null, "You are ready to flow!"),
|
|
392
|
-
createBaseVNode("p", null, "Your Parquet table setup is complete. Enjoy the smooth data processing experience.")
|
|
393
|
-
], -1)
|
|
394
|
-
]));
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
const readParquet_vue_vue_type_style_index_0_scoped_0faf0508_lang = "";
|
|
399
|
-
const ParquetTableConfig = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-0faf0508"]]);
|
|
400
|
-
const _hoisted_1 = {
|
|
401
|
-
key: 0,
|
|
402
|
-
class: "listbox-wrapper"
|
|
403
|
-
};
|
|
404
|
-
const _hoisted_2 = { class: "listbox-wrapper" };
|
|
405
|
-
const _hoisted_3 = { class: "file-upload-container" };
|
|
406
|
-
const _hoisted_4 = {
|
|
407
|
-
for: "file-upload",
|
|
408
|
-
class: "file-upload-label"
|
|
409
|
-
};
|
|
410
|
-
const _hoisted_5 = { class: "file-label-text" };
|
|
411
|
-
const _hoisted_6 = { key: 0 };
|
|
412
|
-
const _hoisted_7 = { class: "listbox-wrapper" };
|
|
413
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
414
|
-
__name: "read",
|
|
415
|
-
setup(__props, { expose: __expose }) {
|
|
416
|
-
const nodeStore = useNodeStore();
|
|
417
|
-
const selectedFile = ref(null);
|
|
418
|
-
const isExcelFile = ref(false);
|
|
419
|
-
const isCsvFile = ref(false);
|
|
420
|
-
const isParquetFile = ref(false);
|
|
421
|
-
const nodeRead = ref(null);
|
|
422
|
-
const dataLoaded = ref(false);
|
|
423
|
-
const selectedPath = ref("");
|
|
424
|
-
const modalVisibleForOpen = ref(false);
|
|
425
|
-
const getDisplayFileName = computed(() => {
|
|
426
|
-
var _a, _b, _c;
|
|
427
|
-
if ((_a = selectedFile.value) == null ? void 0 : _a.name) {
|
|
428
|
-
return selectedFile.value.name;
|
|
429
|
-
}
|
|
430
|
-
if ((_c = (_b = nodeRead.value) == null ? void 0 : _b.received_file) == null ? void 0 : _c.name) {
|
|
431
|
-
return nodeRead.value.received_file.name;
|
|
432
|
-
}
|
|
433
|
-
return "Choose a file...";
|
|
434
|
-
});
|
|
435
|
-
const receivedExcelTable = ref({
|
|
436
|
-
name: "",
|
|
437
|
-
path: "",
|
|
438
|
-
file_type: "excel",
|
|
439
|
-
sheet_name: "",
|
|
440
|
-
start_row: 0,
|
|
441
|
-
start_column: 0,
|
|
442
|
-
end_row: 0,
|
|
443
|
-
end_column: 0,
|
|
444
|
-
has_headers: true,
|
|
445
|
-
type_inference: false
|
|
446
|
-
});
|
|
447
|
-
const receivedCsvTable = ref({
|
|
448
|
-
name: "",
|
|
449
|
-
path: "",
|
|
450
|
-
file_type: "csv",
|
|
451
|
-
reference: "",
|
|
452
|
-
starting_from_line: 0,
|
|
453
|
-
delimiter: ",",
|
|
454
|
-
has_headers: true,
|
|
455
|
-
encoding: "utf-8",
|
|
456
|
-
row_delimiter: "",
|
|
457
|
-
quote_char: "",
|
|
458
|
-
infer_schema_length: 1e3,
|
|
459
|
-
truncate_ragged_lines: false,
|
|
460
|
-
ignore_errors: false
|
|
461
|
-
});
|
|
462
|
-
const receivedParquetTable = ref({
|
|
463
|
-
name: "",
|
|
464
|
-
path: "",
|
|
465
|
-
file_type: "parquet"
|
|
466
|
-
});
|
|
467
|
-
const handleFileChange = (fileInfo) => {
|
|
468
|
-
var _a;
|
|
469
|
-
try {
|
|
470
|
-
if (!fileInfo) {
|
|
471
|
-
console.warn("No file info provided");
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
-
const fileType = (_a = fileInfo.name.split(".").pop()) == null ? void 0 : _a.toLowerCase();
|
|
475
|
-
if (!fileType) {
|
|
476
|
-
console.warn("No file type detected");
|
|
477
|
-
return;
|
|
478
|
-
}
|
|
479
|
-
isExcelFile.value = false;
|
|
480
|
-
isCsvFile.value = false;
|
|
481
|
-
isParquetFile.value = false;
|
|
482
|
-
switch (fileType) {
|
|
483
|
-
case "xlsx":
|
|
484
|
-
isExcelFile.value = true;
|
|
485
|
-
receivedExcelTable.value.path = fileInfo.path;
|
|
486
|
-
receivedExcelTable.value.name = fileInfo.name;
|
|
487
|
-
break;
|
|
488
|
-
case "csv":
|
|
489
|
-
case "txt":
|
|
490
|
-
isCsvFile.value = true;
|
|
491
|
-
receivedCsvTable.value.path = fileInfo.path;
|
|
492
|
-
receivedCsvTable.value.name = fileInfo.name;
|
|
493
|
-
break;
|
|
494
|
-
case "parquet":
|
|
495
|
-
isParquetFile.value = true;
|
|
496
|
-
receivedParquetTable.value.path = fileInfo.path;
|
|
497
|
-
receivedParquetTable.value.name = fileInfo.name;
|
|
498
|
-
break;
|
|
499
|
-
default:
|
|
500
|
-
console.warn("Unsupported file type:", fileType);
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
selectedFile.value = fileInfo;
|
|
504
|
-
selectedPath.value = fileInfo.path;
|
|
505
|
-
modalVisibleForOpen.value = false;
|
|
506
|
-
} catch (error) {
|
|
507
|
-
console.error("Error handling file change:", error);
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
const loadNodeData = async (nodeId) => {
|
|
511
|
-
var _a;
|
|
512
|
-
try {
|
|
513
|
-
const nodeResult = await nodeStore.getNodeData(nodeId, false);
|
|
514
|
-
if (!nodeResult) {
|
|
515
|
-
console.warn("No node result received");
|
|
516
|
-
dataLoaded.value = true;
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
nodeRead.value = nodeResult.setting_input;
|
|
520
|
-
if (((_a = nodeResult.setting_input) == null ? void 0 : _a.is_setup) && nodeResult.setting_input.received_file) {
|
|
521
|
-
const { file_type } = nodeResult.setting_input.received_file;
|
|
522
|
-
isExcelFile.value = false;
|
|
523
|
-
isCsvFile.value = false;
|
|
524
|
-
isParquetFile.value = false;
|
|
525
|
-
switch (file_type) {
|
|
526
|
-
case "excel":
|
|
527
|
-
isExcelFile.value = true;
|
|
528
|
-
receivedExcelTable.value = nodeResult.setting_input.received_file;
|
|
529
|
-
break;
|
|
530
|
-
case "csv":
|
|
531
|
-
isCsvFile.value = true;
|
|
532
|
-
receivedCsvTable.value = nodeResult.setting_input.received_file;
|
|
533
|
-
break;
|
|
534
|
-
case "parquet":
|
|
535
|
-
isParquetFile.value = true;
|
|
536
|
-
receivedParquetTable.value = nodeResult.setting_input.received_file;
|
|
537
|
-
break;
|
|
538
|
-
}
|
|
539
|
-
selectedPath.value = nodeResult.setting_input.received_file.path;
|
|
540
|
-
}
|
|
541
|
-
dataLoaded.value = true;
|
|
542
|
-
} catch (error) {
|
|
543
|
-
console.error("Error loading node data:", error);
|
|
544
|
-
dataLoaded.value = true;
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
const pushNodeData = async () => {
|
|
548
|
-
try {
|
|
549
|
-
dataLoaded.value = false;
|
|
550
|
-
if (!nodeRead.value) {
|
|
551
|
-
console.warn("No node read value available");
|
|
552
|
-
dataLoaded.value = true;
|
|
553
|
-
return;
|
|
554
|
-
}
|
|
555
|
-
nodeRead.value.is_setup = true;
|
|
556
|
-
if (isExcelFile.value) {
|
|
557
|
-
nodeRead.value.received_file = receivedExcelTable.value;
|
|
558
|
-
} else if (isCsvFile.value) {
|
|
559
|
-
nodeRead.value.received_file = receivedCsvTable.value;
|
|
560
|
-
} else if (isParquetFile.value) {
|
|
561
|
-
nodeRead.value.cache_results = false;
|
|
562
|
-
nodeRead.value.received_file = receivedParquetTable.value;
|
|
563
|
-
}
|
|
564
|
-
await nodeStore.updateSettings(nodeRead);
|
|
565
|
-
} catch (error) {
|
|
566
|
-
console.error("Error pushing node data:", error);
|
|
567
|
-
} finally {
|
|
568
|
-
dataLoaded.value = true;
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
__expose({
|
|
572
|
-
loadNodeData,
|
|
573
|
-
pushNodeData
|
|
574
|
-
});
|
|
575
|
-
return (_ctx, _cache) => {
|
|
576
|
-
const _component_el_dialog = resolveComponent("el-dialog");
|
|
577
|
-
return dataLoaded.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
578
|
-
createBaseVNode("div", _hoisted_2, [
|
|
579
|
-
createBaseVNode("div", _hoisted_3, [
|
|
580
|
-
createBaseVNode("div", {
|
|
581
|
-
class: "file-upload-wrapper",
|
|
582
|
-
onClick: _cache[0] || (_cache[0] = ($event) => modalVisibleForOpen.value = true)
|
|
583
|
-
}, [
|
|
584
|
-
createBaseVNode("label", _hoisted_4, [
|
|
585
|
-
_cache[5] || (_cache[5] = createBaseVNode("i", { class: "fas fa-table file-icon" }, null, -1)),
|
|
586
|
-
createBaseVNode("span", _hoisted_5, toDisplayString(getDisplayFileName.value), 1)
|
|
587
|
-
])
|
|
588
|
-
])
|
|
589
|
-
])
|
|
590
|
-
]),
|
|
591
|
-
isCsvFile.value || isExcelFile.value || isParquetFile.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
592
|
-
createBaseVNode("div", _hoisted_7, [
|
|
593
|
-
_cache[6] || (_cache[6] = createBaseVNode("div", { class: "listbox-subtitle" }, "File Specs", -1)),
|
|
594
|
-
isExcelFile.value ? (openBlock(), createBlock(ExcelTableConfig, {
|
|
595
|
-
key: 0,
|
|
596
|
-
modelValue: receivedExcelTable.value,
|
|
597
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => receivedExcelTable.value = $event)
|
|
598
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
599
|
-
isCsvFile.value ? (openBlock(), createBlock(CsvTableConfig, {
|
|
600
|
-
key: 1,
|
|
601
|
-
modelValue: receivedCsvTable.value,
|
|
602
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => receivedCsvTable.value = $event)
|
|
603
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
604
|
-
isParquetFile.value ? (openBlock(), createBlock(ParquetTableConfig, {
|
|
605
|
-
key: 2,
|
|
606
|
-
modelValue: receivedParquetTable.value,
|
|
607
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => receivedParquetTable.value = $event)
|
|
608
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
609
|
-
])
|
|
610
|
-
])) : createCommentVNode("", true),
|
|
611
|
-
createVNode(_component_el_dialog, {
|
|
612
|
-
modelValue: modalVisibleForOpen.value,
|
|
613
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => modalVisibleForOpen.value = $event),
|
|
614
|
-
title: "Select a file to Read",
|
|
615
|
-
width: "70%"
|
|
616
|
-
}, {
|
|
617
|
-
default: withCtx(() => [
|
|
618
|
-
createVNode(FileBrowser, {
|
|
619
|
-
"allowed-file-types": ["csv", "txt", "parquet", "xlsx"],
|
|
620
|
-
mode: "open",
|
|
621
|
-
onFileSelected: handleFileChange
|
|
622
|
-
})
|
|
623
|
-
]),
|
|
624
|
-
_: 1
|
|
625
|
-
}, 8, ["modelValue"])
|
|
626
|
-
])) : (openBlock(), createBlock(unref(CodeLoader), { key: 1 }));
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
const read_vue_vue_type_style_index_0_scoped_221ad292_lang = "";
|
|
631
|
-
const readInput = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-221ad292"]]);
|
|
632
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
633
|
-
__name: "Read",
|
|
634
|
-
props: {
|
|
635
|
-
nodeId: {
|
|
636
|
-
type: Number,
|
|
637
|
-
required: true
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
setup(__props) {
|
|
641
|
-
const props = __props;
|
|
642
|
-
const nodeStore = useNodeStore();
|
|
643
|
-
const childComp = ref(null);
|
|
644
|
-
const closeOnDrawer = () => {
|
|
645
|
-
var _a;
|
|
646
|
-
if (drawer.value) {
|
|
647
|
-
(_a = childComp.value) == null ? void 0 : _a.pushNodeData();
|
|
648
|
-
drawer.value = false;
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
const drawer = ref(false);
|
|
652
|
-
const openDrawer = async () => {
|
|
653
|
-
if (nodeStore.node_id === props.nodeId) {
|
|
654
|
-
return;
|
|
655
|
-
}
|
|
656
|
-
nodeStore.closeDrawer();
|
|
657
|
-
drawer.value = true;
|
|
658
|
-
const drawerOpen = nodeStore.isDrawerOpen;
|
|
659
|
-
nodeStore.isDrawerOpen = true;
|
|
660
|
-
await nextTick();
|
|
661
|
-
if (nodeStore.node_id === props.nodeId && drawerOpen) {
|
|
662
|
-
return;
|
|
663
|
-
}
|
|
664
|
-
if (childComp.value) {
|
|
665
|
-
childComp.value.loadNodeData(props.nodeId);
|
|
666
|
-
nodeStore.openDrawer(closeOnDrawer);
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
|
-
onMounted(async () => {
|
|
670
|
-
await nextTick();
|
|
671
|
-
});
|
|
672
|
-
return (_ctx, _cache) => {
|
|
673
|
-
return openBlock(), createElementBlock("div", null, [
|
|
674
|
-
createVNode(NodeButton, {
|
|
675
|
-
ref: "nodeButton",
|
|
676
|
-
"node-id": __props.nodeId,
|
|
677
|
-
"image-src": "input_data.png",
|
|
678
|
-
title: `${__props.nodeId}: Read data`,
|
|
679
|
-
onClick: openDrawer
|
|
680
|
-
}, null, 8, ["node-id", "title"]),
|
|
681
|
-
drawer.value ? (openBlock(), createBlock(Teleport, {
|
|
682
|
-
key: 0,
|
|
683
|
-
to: "#nodesettings"
|
|
684
|
-
}, [
|
|
685
|
-
createVNode(NodeTitle, {
|
|
686
|
-
title: "Read data",
|
|
687
|
-
intro: "Read data from a file"
|
|
688
|
-
}),
|
|
689
|
-
createVNode(readInput, {
|
|
690
|
-
ref_key: "childComp",
|
|
691
|
-
ref: childComp,
|
|
692
|
-
"node-id": __props.nodeId
|
|
693
|
-
}, null, 8, ["node-id"])
|
|
694
|
-
])) : createCommentVNode("", true)
|
|
695
|
-
]);
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
});
|
|
699
|
-
export {
|
|
700
|
-
_sfc_main as default
|
|
701
|
-
};
|