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.

Files changed (138) hide show
  1. flowfile/__init__.py +1 -1
  2. flowfile/api.py +0 -1
  3. flowfile/web/static/assets/{CloudConnectionManager-c97c25f8.js → CloudConnectionManager-d7c2c028.js} +2 -2
  4. flowfile/web/static/assets/{CloudStorageReader-f1ff509e.js → CloudStorageReader-d467329f.js} +11 -78
  5. flowfile/web/static/assets/{CloudStorageWriter-034f8b78.js → CloudStorageWriter-071b8b00.js} +12 -79
  6. flowfile/web/static/assets/{CloudStorageWriter-49c9a4b2.css → CloudStorageWriter-b0ee067f.css} +24 -24
  7. flowfile/web/static/assets/ContextMenu-2dea5e27.js +41 -0
  8. flowfile/web/static/assets/{SettingsSection-9c836ecc.css → ContextMenu-4c74eef1.css} +0 -21
  9. flowfile/web/static/assets/ContextMenu-63cfa99b.css +26 -0
  10. flowfile/web/static/assets/ContextMenu-785554c4.js +41 -0
  11. flowfile/web/static/assets/ContextMenu-a51e19ea.js +41 -0
  12. flowfile/web/static/assets/ContextMenu-c13f91d0.css +26 -0
  13. flowfile/web/static/assets/{CrossJoin-41efa4cb.css → CrossJoin-1119d18e.css} +18 -18
  14. flowfile/web/static/assets/{CrossJoin-9e156ebe.js → CrossJoin-cf68ec7a.js} +14 -84
  15. flowfile/web/static/assets/{DatabaseConnectionSettings-d5c625b3.js → DatabaseConnectionSettings-435c5dd8.js} +3 -3
  16. flowfile/web/static/assets/{DatabaseManager-265adc5e.js → DatabaseManager-349e33a8.js} +2 -2
  17. flowfile/web/static/assets/{DatabaseReader-0b10551e.js → DatabaseReader-8075bd28.js} +14 -114
  18. flowfile/web/static/assets/{DatabaseReader-f50c6558.css → DatabaseReader-ae61773c.css} +0 -27
  19. flowfile/web/static/assets/{DatabaseWriter-c17c6916.js → DatabaseWriter-3e2dda89.js} +13 -74
  20. flowfile/web/static/assets/{ExploreData-5bdae813.css → ExploreData-2d0cf4db.css} +8 -14
  21. flowfile/web/static/assets/ExploreData-76ec698c.js +192 -0
  22. flowfile/web/static/assets/{ExternalSource-3a66556c.js → ExternalSource-609a265c.js} +8 -79
  23. flowfile/web/static/assets/{Filter-91ad87e7.js → Filter-97cff793.js} +12 -85
  24. flowfile/web/static/assets/{Filter-a9d08ba1.css → Filter-f62091b3.css} +3 -3
  25. flowfile/web/static/assets/{Formula-3c395ab1.js → Formula-09de0ec9.js} +18 -85
  26. flowfile/web/static/assets/{Formula-29f19d21.css → Formula-bb96803d.css} +4 -4
  27. flowfile/web/static/assets/{FuzzyMatch-6857de82.css → FuzzyMatch-1010f966.css} +42 -42
  28. flowfile/web/static/assets/{FuzzyMatch-2df0d230.js → FuzzyMatch-bdf70248.js} +16 -87
  29. flowfile/web/static/assets/{GraphSolver-d285877f.js → GraphSolver-0b5a0e05.js} +13 -159
  30. flowfile/web/static/assets/GraphSolver-f0cb7bfb.css +22 -0
  31. flowfile/web/static/assets/{Unique-b5615727.css → GroupBy-b9505323.css} +8 -8
  32. flowfile/web/static/assets/{GroupBy-0bd1cc6b.js → GroupBy-eaddadde.js} +12 -75
  33. flowfile/web/static/assets/{Join-5a78a203.js → Join-3313371b.js} +15 -85
  34. flowfile/web/static/assets/{Join-f45eff22.css → Join-fd79b451.css} +20 -20
  35. flowfile/web/static/assets/{ManualInput-a71b52c6.css → ManualInput-3246a08d.css} +20 -20
  36. flowfile/web/static/assets/{ManualInput-93aef9d6.js → ManualInput-e8bfc0be.js} +11 -82
  37. flowfile/web/static/assets/{Output-411ecaee.js → Output-7303bb09.js} +13 -243
  38. flowfile/web/static/assets/Output-ddc9079f.css +37 -0
  39. flowfile/web/static/assets/{Pivot-89db4b04.js → Pivot-3b1c54ef.js} +14 -138
  40. flowfile/web/static/assets/Pivot-cf333e3d.css +22 -0
  41. flowfile/web/static/assets/PivotValidation-3bb36c8f.js +61 -0
  42. flowfile/web/static/assets/PivotValidation-891ddfb0.css +13 -0
  43. flowfile/web/static/assets/PivotValidation-c46cd420.css +13 -0
  44. flowfile/web/static/assets/PivotValidation-eaa819c0.js +61 -0
  45. flowfile/web/static/assets/{PolarsCode-a9f974f8.js → PolarsCode-aa12e25d.js} +13 -80
  46. flowfile/web/static/assets/Read-6b17491f.css +62 -0
  47. flowfile/web/static/assets/Read-a2bfc618.js +243 -0
  48. flowfile/web/static/assets/RecordCount-aa0dc082.js +53 -0
  49. flowfile/web/static/assets/{RecordId-55ae7d36.js → RecordId-48ee1a3b.js} +8 -80
  50. flowfile/web/static/assets/SQLQueryComponent-36cef432.css +27 -0
  51. flowfile/web/static/assets/SQLQueryComponent-e149dbf2.js +38 -0
  52. flowfile/web/static/assets/{Sample-b4a18476.js → Sample-f06cb97a.js} +8 -77
  53. flowfile/web/static/assets/{SecretManager-b066d13a.js → SecretManager-37f34886.js} +2 -2
  54. flowfile/web/static/assets/{Select-727688dc.js → Select-b60e6c47.js} +11 -85
  55. flowfile/web/static/assets/SettingsSection-2e4d03c4.css +21 -0
  56. flowfile/web/static/assets/SettingsSection-5c696bee.css +20 -0
  57. flowfile/web/static/assets/SettingsSection-70e5a7b1.js +53 -0
  58. flowfile/web/static/assets/SettingsSection-71e6b7e3.css +21 -0
  59. flowfile/web/static/assets/{SettingsSection-695ac487.js → SettingsSection-75b6cf4f.js} +2 -40
  60. flowfile/web/static/assets/SettingsSection-e57a672e.js +45 -0
  61. flowfile/web/static/assets/{GroupBy-ab1ea74b.css → Sort-3643d625.css} +8 -8
  62. flowfile/web/static/assets/{Sort-be3339a8.js → Sort-51b1ee4d.js} +12 -97
  63. flowfile/web/static/assets/{TextToRows-7b8998da.js → TextToRows-26835f8f.js} +14 -83
  64. flowfile/web/static/assets/{TextToRows-c92d1ec2.css → TextToRows-5d2c1190.css} +9 -9
  65. flowfile/web/static/assets/{UnavailableFields-8b0cb48e.js → UnavailableFields-88a4cd0c.js} +2 -2
  66. flowfile/web/static/assets/Union-4d0088eb.js +77 -0
  67. flowfile/web/static/assets/{Union-8d9ac7f9.css → Union-af6c3d9b.css} +6 -6
  68. flowfile/web/static/assets/{Unique-af5a80b4.js → Unique-7d554a62.js} +22 -91
  69. flowfile/web/static/assets/{Sort-7ccfa0fe.css → Unique-f9fb0809.css} +8 -8
  70. flowfile/web/static/assets/Unpivot-1e422df3.css +30 -0
  71. flowfile/web/static/assets/{Unpivot-5195d411.js → Unpivot-4668595c.js} +12 -166
  72. flowfile/web/static/assets/UnpivotValidation-0d240eeb.css +13 -0
  73. flowfile/web/static/assets/UnpivotValidation-d4f0e0e8.js +51 -0
  74. flowfile/web/static/assets/{ExploreData-18a4fe52.js → VueGraphicWalker-5324d566.js} +4 -264
  75. flowfile/web/static/assets/VueGraphicWalker-ed5ab88b.css +6 -0
  76. flowfile/web/static/assets/{api-cb00cce6.js → api-271ed117.js} +1 -1
  77. flowfile/web/static/assets/{api-023d1733.js → api-31e4fea6.js} +1 -1
  78. flowfile/web/static/assets/{designer-2197d782.css → designer-091bdc3f.css} +819 -184
  79. flowfile/web/static/assets/{designer-6c322d8e.js → designer-bf3d9487.js} +2191 -703
  80. flowfile/web/static/assets/{documentation-4d1fafe1.js → documentation-4d0a1cea.js} +1 -1
  81. flowfile/web/static/assets/{dropDown-0b46dd77.js → dropDown-025888df.js} +1 -1
  82. flowfile/web/static/assets/{fullEditor-ec4e4f95.js → fullEditor-1df991ec.js} +2 -2
  83. flowfile/web/static/assets/{genericNodeSettings-def5879b.js → genericNodeSettings-d3b2b2ac.js} +3 -3
  84. flowfile/web/static/assets/{index-683fc198.js → index-d0518598.js} +210 -31
  85. flowfile/web/static/assets/{Output-48f81019.css → outputCsv-9cc59e0b.css} +0 -143
  86. flowfile/web/static/assets/outputCsv-d8457527.js +86 -0
  87. flowfile/web/static/assets/outputExcel-b41305c0.css +102 -0
  88. flowfile/web/static/assets/outputExcel-be89153e.js +56 -0
  89. flowfile/web/static/assets/outputParquet-cf8cf3f2.css +4 -0
  90. flowfile/web/static/assets/outputParquet-fabb445a.js +31 -0
  91. flowfile/web/static/assets/readCsv-bca3ed53.css +52 -0
  92. flowfile/web/static/assets/readCsv-e8359522.js +178 -0
  93. flowfile/web/static/assets/readExcel-dabaf51b.js +203 -0
  94. flowfile/web/static/assets/readExcel-e1b381ea.css +64 -0
  95. flowfile/web/static/assets/readParquet-cee068e2.css +19 -0
  96. flowfile/web/static/assets/readParquet-e0771ef2.js +26 -0
  97. flowfile/web/static/assets/{secretApi-baceb6f9.js → secretApi-ce823eee.js} +1 -1
  98. flowfile/web/static/assets/{selectDynamic-de91449a.js → selectDynamic-5476546e.js} +7 -7
  99. flowfile/web/static/assets/{selectDynamic-b062bc9b.css → selectDynamic-aa913ff4.css} +16 -16
  100. flowfile/web/static/assets/{vue-codemirror.esm-dc5e3348.js → vue-codemirror.esm-9ed00d50.js} +29 -33
  101. flowfile/web/static/assets/{vue-content-loader.es-ba94b82f.js → vue-content-loader.es-7bca2d9b.js} +1 -1
  102. flowfile/web/static/index.html +1 -1
  103. {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/METADATA +1 -1
  104. {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/RECORD +129 -97
  105. flowfile_core/configs/flow_logger.py +5 -13
  106. flowfile_core/configs/node_store/nodes.py +303 -44
  107. flowfile_core/configs/settings.py +2 -1
  108. flowfile_core/database/connection.py +5 -21
  109. flowfile_core/fileExplorer/funcs.py +239 -121
  110. flowfile_core/flowfile/flow_data_engine/subprocess_operations/subprocess_operations.py +28 -8
  111. flowfile_core/flowfile/flow_graph.py +97 -33
  112. flowfile_core/flowfile/flow_node/flow_node.py +41 -9
  113. flowfile_core/flowfile/handler.py +22 -3
  114. flowfile_core/flowfile/schema_callbacks.py +8 -4
  115. flowfile_core/flowfile/setting_generator/settings.py +0 -1
  116. flowfile_core/main.py +4 -1
  117. flowfile_core/routes/routes.py +59 -10
  118. flowfile_core/schemas/input_schema.py +0 -1
  119. flowfile_core/schemas/output_model.py +5 -2
  120. flowfile_core/schemas/schemas.py +2 -0
  121. flowfile_core/schemas/transform_schema.py +1 -0
  122. flowfile_worker/__init__.py +6 -35
  123. flowfile_worker/main.py +5 -2
  124. flowfile_worker/routes.py +47 -5
  125. shared/__init__.py +15 -0
  126. shared/storage_config.py +243 -0
  127. flowfile/web/static/assets/GraphSolver-17fd26db.css +0 -68
  128. flowfile/web/static/assets/Pivot-f415e85f.css +0 -35
  129. flowfile/web/static/assets/Read-80dc1675.css +0 -197
  130. flowfile/web/static/assets/Read-c3b1929c.js +0 -701
  131. flowfile/web/static/assets/RecordCount-4e95f98e.js +0 -122
  132. flowfile/web/static/assets/Union-89fd73dc.js +0 -146
  133. flowfile/web/static/assets/Unpivot-246e9bbd.css +0 -77
  134. flowfile/web/static/assets/nodeTitle-a16db7c3.js +0 -227
  135. flowfile/web/static/assets/nodeTitle-f4b12bcb.css +0 -134
  136. {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/LICENSE +0 -0
  137. {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/WHEEL +0 -0
  138. {flowfile-0.3.9.dist-info → flowfile-0.3.10.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,27 @@
1
+
2
+ .query-section[data-v-29602f2f] {
3
+ margin-top: 1rem;
4
+ padding-top: 1rem;
5
+ border-top: 1px solid #edf2f7;
6
+ }
7
+ .section-subtitle[data-v-29602f2f] {
8
+ margin: 0 0 0.75rem 0;
9
+ font-size: 0.95rem;
10
+ font-weight: 600;
11
+ color: #4a5568;
12
+ }
13
+ .form-group[data-v-29602f2f] {
14
+ margin-bottom: 1rem;
15
+ }
16
+ .form-control[data-v-29602f2f] {
17
+ width: 100%;
18
+ padding: 0.5rem;
19
+ border: 1px solid #e2e8f0;
20
+ border-radius: 4px;
21
+ font-size: 0.875rem;
22
+ }
23
+ .textarea[data-v-29602f2f] {
24
+ resize: vertical;
25
+ min-height: 100px;
26
+ font-family: monospace;
27
+ }
@@ -0,0 +1,38 @@
1
+ import { d as defineComponent, c as openBlock, e as createElementBlock, p as createBaseVNode, _ as _export_sfc } from "./index-d0518598.js";
2
+ const _hoisted_1 = { class: "query-section" };
3
+ const _hoisted_2 = { class: "form-group" };
4
+ const _hoisted_3 = ["value"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "SQLQueryComponent",
7
+ props: {
8
+ modelValue: {}
9
+ },
10
+ emits: ["update:modelValue"],
11
+ setup(__props, { emit: __emit }) {
12
+ const emit = __emit;
13
+ const onInput = (event) => {
14
+ const target = event.target;
15
+ emit("update:modelValue", target.value);
16
+ };
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("div", _hoisted_1, [
19
+ _cache[0] || (_cache[0] = createBaseVNode("h4", { class: "section-subtitle" }, "SQL Query", -1)),
20
+ createBaseVNode("div", _hoisted_2, [
21
+ createBaseVNode("textarea", {
22
+ id: "query",
23
+ value: _ctx.modelValue,
24
+ class: "form-control textarea",
25
+ placeholder: "Enter SQL query",
26
+ rows: "4",
27
+ onInput
28
+ }, null, 40, _hoisted_3)
29
+ ])
30
+ ]);
31
+ };
32
+ }
33
+ });
34
+ const SQLQueryComponent_vue_vue_type_style_index_0_scoped_29602f2f_lang = "";
35
+ const SqlQueryComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-29602f2f"]]);
36
+ export {
37
+ SqlQueryComponent as default
38
+ };
@@ -1,15 +1,14 @@
1
- import { d as defineComponent, r as ref, n as onMounted, R as nextTick, o as onUnmounted, b as resolveComponent, c as openBlock, e as createElementBlock, f as createVNode, w as withCtx, p as createBaseVNode, g as createTextVNode, a5 as withDirectives, a6 as vModelText, i as createCommentVNode, h as createBlock, a7 as Teleport } from "./index-683fc198.js";
2
- import { u as useNodeStore } from "./vue-codemirror.esm-dc5e3348.js";
3
- import { G as GenericNodeSettings } from "./genericNodeSettings-def5879b.js";
4
- import { N as NodeButton, a as NodeTitle } from "./nodeTitle-a16db7c3.js";
5
- import "./designer-6c322d8e.js";
6
- const _hoisted_1$1 = {
1
+ import { d as defineComponent, r as ref, n as onMounted, R as nextTick, o as onUnmounted, b as resolveComponent, c as openBlock, e as createElementBlock, f as createVNode, w as withCtx, p as createBaseVNode, g as createTextVNode, a8 as withDirectives, a9 as vModelText, i as createCommentVNode } from "./index-d0518598.js";
2
+ import { u as useNodeStore } from "./vue-codemirror.esm-9ed00d50.js";
3
+ import { G as GenericNodeSettings } from "./genericNodeSettings-d3b2b2ac.js";
4
+ import "./designer-bf3d9487.js";
5
+ const _hoisted_1 = {
7
6
  key: 0,
8
7
  class: "listbox-wrapper"
9
8
  };
10
9
  const _hoisted_2 = { class: "listbox-wrapper" };
11
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
12
- __name: "sample",
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "Sample",
13
12
  setup(__props, { expose: __expose }) {
14
13
  const nodeStore = useNodeStore();
15
14
  const showContextMenu = ref(false);
@@ -50,7 +49,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
50
49
  }
51
50
  nodeStore.updateSettings(nodeSample);
52
51
  dataLoaded.value = false;
53
- nodeStore.isDrawerOpen = false;
54
52
  };
55
53
  __expose({
56
54
  loadNodeData,
@@ -66,7 +64,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
66
64
  return (_ctx, _cache) => {
67
65
  const _component_el_col = resolveComponent("el-col");
68
66
  const _component_el_row = resolveComponent("el-row");
69
- return dataLoaded.value && nodeSample.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
67
+ return dataLoaded.value && nodeSample.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
70
68
  createVNode(GenericNodeSettings, {
71
69
  modelValue: nodeSample.value,
72
70
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => nodeSample.value = $event)
@@ -113,73 +111,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
113
111
  };
114
112
  }
115
113
  });
116
- const _hoisted_1 = { ref: "el" };
117
- const _sfc_main = /* @__PURE__ */ defineComponent({
118
- __name: "Sample",
119
- props: {
120
- nodeId: {
121
- type: Number,
122
- required: true
123
- }
124
- },
125
- setup(__props) {
126
- const nodeStore = useNodeStore();
127
- const childComp = ref(null);
128
- const props = __props;
129
- const drawer = ref(false);
130
- const closeOnDrawer = () => {
131
- var _a;
132
- (_a = childComp.value) == null ? void 0 : _a.pushNodeData();
133
- drawer.value = false;
134
- nodeStore.isDrawerOpen = false;
135
- };
136
- const openDrawer = async () => {
137
- if (nodeStore.node_id === props.nodeId) {
138
- return;
139
- }
140
- nodeStore.closeDrawer();
141
- drawer.value = true;
142
- const drawerOpen = nodeStore.isDrawerOpen;
143
- nodeStore.isDrawerOpen = true;
144
- await nextTick();
145
- if (nodeStore.node_id === props.nodeId && drawerOpen) {
146
- return;
147
- }
148
- if (childComp.value) {
149
- childComp.value.loadNodeData(props.nodeId);
150
- nodeStore.openDrawer(closeOnDrawer);
151
- }
152
- };
153
- onMounted(async () => {
154
- await nextTick();
155
- });
156
- return (_ctx, _cache) => {
157
- return openBlock(), createElementBlock("div", _hoisted_1, [
158
- createVNode(NodeButton, {
159
- ref: "nodeButton",
160
- "node-id": __props.nodeId,
161
- "image-src": "sample.png",
162
- title: `${__props.nodeId}: Sample`,
163
- onClick: openDrawer
164
- }, null, 8, ["node-id", "title"]),
165
- drawer.value ? (openBlock(), createBlock(Teleport, {
166
- key: 0,
167
- to: "#nodesettings"
168
- }, [
169
- createVNode(NodeTitle, {
170
- title: "Sample",
171
- intro: "When taking a sample, the most crucial factor to consider is the size of the sample. The size refers to the number of items or observations included in the sample from a larger population. This number is pivotal because it influences the accuracy and reliability of the results obtained from the sample. By carefully determining the sample size, we ensure that our findings are representative of the larger group, allowing us to make informed decisions or predictions based on the sample data"
172
- }),
173
- createVNode(_sfc_main$1, {
174
- ref_key: "childComp",
175
- ref: childComp,
176
- "node-id": __props.nodeId
177
- }, null, 8, ["node-id"])
178
- ])) : createCommentVNode("", true)
179
- ], 512);
180
- };
181
- }
182
- });
183
114
  export {
184
115
  _sfc_main as default
185
116
  };
@@ -1,5 +1,5 @@
1
- import { r as ref, l as computed, d as defineComponent, n as onMounted, e as createElementBlock, p as createBaseVNode, v as withModifiers, a5 as withDirectives, a6 as vModelText, ah as vModelDynamic, s as normalizeClass, g as createTextVNode, t as toDisplayString, u as unref, O as isRef, i as createCommentVNode, F as Fragment, q as renderList, c as openBlock } from "./index-683fc198.js";
2
- import { f as fetchSecretsApi, a as addSecretApi, g as getSecretValueApi, d as deleteSecretApi } from "./secretApi-baceb6f9.js";
1
+ import { r as ref, l as computed, d as defineComponent, n as onMounted, e as createElementBlock, p as createBaseVNode, v as withModifiers, a8 as withDirectives, a9 as vModelText, al as vModelDynamic, s as normalizeClass, g as createTextVNode, t as toDisplayString, u as unref, O as isRef, i as createCommentVNode, F as Fragment, q as renderList, c as openBlock } from "./index-d0518598.js";
2
+ import { f as fetchSecretsApi, a as addSecretApi, g as getSecretValueApi, d as deleteSecretApi } from "./secretApi-ce823eee.js";
3
3
  function useSecretManager() {
4
4
  const secrets = ref([]);
5
5
  const isLoading = ref(true);
@@ -1,11 +1,10 @@
1
- import { r as ref, d as defineComponent, c as openBlock, e as createElementBlock, f as createVNode, w as withCtx, h as createBlock, u as unref, n as onMounted, R as nextTick, a7 as Teleport, i as createCommentVNode } from "./index-683fc198.js";
2
- import { C as CodeLoader } from "./vue-content-loader.es-ba94b82f.js";
3
- import { u as useNodeStore } from "./vue-codemirror.esm-dc5e3348.js";
4
- import { s as selectDynamic } from "./selectDynamic-de91449a.js";
5
- import { G as GenericNodeSettings } from "./genericNodeSettings-def5879b.js";
6
- import { N as NodeButton, a as NodeTitle } from "./nodeTitle-a16db7c3.js";
7
- import "./UnavailableFields-8b0cb48e.js";
8
- import "./designer-6c322d8e.js";
1
+ import { r as ref, d as defineComponent, c as openBlock, e as createElementBlock, f as createVNode, w as withCtx, h as createBlock, u as unref } from "./index-d0518598.js";
2
+ import { C as CodeLoader } from "./vue-content-loader.es-7bca2d9b.js";
3
+ import { u as useNodeStore } from "./vue-codemirror.esm-9ed00d50.js";
4
+ import { s as selectDynamic } from "./selectDynamic-5476546e.js";
5
+ import { G as GenericNodeSettings } from "./genericNodeSettings-d3b2b2ac.js";
6
+ import "./UnavailableFields-88a4cd0c.js";
7
+ import "./designer-bf3d9487.js";
9
8
  const createSelectInput = (column_name, data_type = void 0, position = void 0, original_position = void 0) => {
10
9
  const selectInput = {
11
10
  old_name: column_name,
@@ -60,12 +59,12 @@ const createNodeSelect = (flowId = -1, nodeId = -1, pos_x = 0, pos_y = 0, cache_
60
59
  });
61
60
  return nodeSelectRef;
62
61
  };
63
- const _hoisted_1$1 = {
62
+ const _hoisted_1 = {
64
63
  key: 0,
65
64
  class: "listbox-wrapper"
66
65
  };
67
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
68
- __name: "select",
66
+ const _sfc_main = /* @__PURE__ */ defineComponent({
67
+ __name: "Select",
69
68
  setup(__props, { expose: __expose }) {
70
69
  const keepMissing = ref(false);
71
70
  const nodeStore = useNodeStore();
@@ -73,7 +72,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73
72
  const dataLoaded = ref(false);
74
73
  const loadNodeData = async (nodeId) => {
75
74
  const result = await nodeStore.getNodeData(nodeId, false);
76
- console.log("got result data");
77
75
  if (result) {
78
76
  const main_input = result.main_input;
79
77
  try {
@@ -85,7 +83,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
85
83
  throw new Error("Setting input not available");
86
84
  }
87
85
  } catch (error) {
88
- console.log("doing this");
89
86
  if (main_input && nodeSelect.value) {
90
87
  nodeSelect.value = createNodeSelect(nodeStore.flow_id, nodeStore.node_id).value;
91
88
  nodeSelect.value.depending_on_id = main_input.node_id;
@@ -128,7 +125,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
128
125
  pushNodeData
129
126
  });
130
127
  return (_ctx, _cache) => {
131
- return dataLoaded.value ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
128
+ return dataLoaded.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
132
129
  createVNode(GenericNodeSettings, {
133
130
  modelValue: nodeSelect.value,
134
131
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => nodeSelect.value = $event)
@@ -155,77 +152,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
155
152
  };
156
153
  }
157
154
  });
158
- const _hoisted_1 = { ref: "el" };
159
- const _sfc_main = /* @__PURE__ */ defineComponent({
160
- __name: "Select",
161
- props: {
162
- nodeId: {
163
- type: Number,
164
- required: true
165
- }
166
- },
167
- setup(__props) {
168
- const nodeStore = useNodeStore();
169
- const childComp = ref(null);
170
- const drawer = ref(false);
171
- let isSelected = ref(false);
172
- const props = __props;
173
- onMounted(async () => {
174
- await nextTick();
175
- });
176
- const closeOnDrawer = () => {
177
- var _a;
178
- if (drawer.value) {
179
- isSelected.value = false;
180
- (_a = childComp.value) == null ? void 0 : _a.pushNodeData();
181
- drawer.value = false;
182
- nodeStore.isDrawerOpen = false;
183
- }
184
- };
185
- const openDrawer = async () => {
186
- if (nodeStore.node_id === props.nodeId) {
187
- return;
188
- }
189
- nodeStore.closeDrawer();
190
- drawer.value = true;
191
- const drawerOpen = nodeStore.isDrawerOpen;
192
- nodeStore.isDrawerOpen = true;
193
- await nextTick();
194
- if (nodeStore.node_id === props.nodeId && drawerOpen) {
195
- return;
196
- }
197
- if (childComp.value) {
198
- childComp.value.loadNodeData(props.nodeId);
199
- nodeStore.openDrawer(closeOnDrawer);
200
- }
201
- };
202
- return (_ctx, _cache) => {
203
- return openBlock(), createElementBlock("div", _hoisted_1, [
204
- createVNode(NodeButton, {
205
- ref: "nodeButton",
206
- "node-id": __props.nodeId,
207
- "image-src": "select.png",
208
- title: `${__props.nodeId}: Select data`,
209
- onClick: openDrawer
210
- }, null, 8, ["node-id", "title"]),
211
- drawer.value ? (openBlock(), createBlock(Teleport, {
212
- key: 0,
213
- to: "#nodesettings"
214
- }, [
215
- createVNode(NodeTitle, {
216
- title: "Select data",
217
- intro: "Select columns from the data"
218
- }),
219
- createVNode(_sfc_main$1, {
220
- ref_key: "childComp",
221
- ref: childComp,
222
- "node-id": __props.nodeId
223
- }, null, 8, ["node-id"])
224
- ])) : createCommentVNode("", true)
225
- ], 512);
226
- };
227
- }
228
- });
229
155
  export {
230
156
  _sfc_main as default
231
157
  };
@@ -0,0 +1,21 @@
1
+
2
+ .items-container[data-v-fd7e6af1] {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 10px; /* Space between items */
6
+ }
7
+ .item-box[data-v-fd7e6af1] {
8
+ display: flex;
9
+ align-items: center;
10
+ padding: 5px 10px;
11
+ background-color: #f0f0f0;
12
+ border-radius: 4px;
13
+ font-size: 12px; /* Font size set to 12px */
14
+ position: relative;
15
+ }
16
+ .remove-btn[data-v-fd7e6af1] {
17
+ margin-left: 8px;
18
+ cursor: pointer;
19
+ color: #100f0f72;
20
+ font-weight: bold;
21
+ }
@@ -0,0 +1,20 @@
1
+
2
+ .items-container[data-v-43acf78a] {
3
+ display: flex;
4
+ gap: 10px; /* Space between items */
5
+ }
6
+ .item-box[data-v-43acf78a] {
7
+ display: flex;
8
+ align-items: center;
9
+ padding: 5px 10px;
10
+ background-color: #f0f0f0;
11
+ border-radius: 4px;
12
+ font-size: 12px; /* Font size set to 12px */
13
+ position: relative;
14
+ }
15
+ .remove-btn[data-v-43acf78a] {
16
+ margin-left: 8px;
17
+ cursor: pointer;
18
+ color: #100f0f72;
19
+ font-weight: bold;
20
+ }
@@ -0,0 +1,53 @@
1
+ import { d as defineComponent, c as openBlock, e as createElementBlock, p as createBaseVNode, T as normalizeStyle, t as toDisplayString, F as Fragment, q as renderList, g as createTextVNode, i as createCommentVNode, _ as _export_sfc } from "./index-d0518598.js";
2
+ const _hoisted_1 = { class: "listbox-wrapper" };
3
+ const _hoisted_2 = { class: "listbox-row" };
4
+ const _hoisted_3 = { class: "items-container" };
5
+ const _hoisted_4 = { key: 0 };
6
+ const _hoisted_5 = ["onClick"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "SettingsSection",
9
+ props: {
10
+ title: { type: String, required: true },
11
+ titleFontSize: { type: String, default: "15px" },
12
+ items: { type: Array, required: true }
13
+ },
14
+ emits: ["removeItem"],
15
+ setup(__props, { emit: __emit }) {
16
+ const props = __props;
17
+ const emit = __emit;
18
+ const emitRemove = (item) => {
19
+ emit("removeItem", item);
20
+ };
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createElementBlock("div", _hoisted_1, [
23
+ createBaseVNode("div", _hoisted_2, [
24
+ createBaseVNode("div", {
25
+ class: "listbox-title",
26
+ style: normalizeStyle({ fontSize: props.titleFontSize })
27
+ }, toDisplayString(__props.title), 5),
28
+ createBaseVNode("div", _hoisted_3, [
29
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
30
+ return openBlock(), createElementBlock("div", {
31
+ key: index,
32
+ class: "item-box"
33
+ }, [
34
+ item !== "" ? (openBlock(), createElementBlock("div", _hoisted_4, [
35
+ createTextVNode(toDisplayString(item) + " ", 1),
36
+ createBaseVNode("span", {
37
+ class: "remove-btn",
38
+ onClick: ($event) => emitRemove(item)
39
+ }, "x", 8, _hoisted_5)
40
+ ])) : createCommentVNode("", true)
41
+ ]);
42
+ }), 128))
43
+ ])
44
+ ])
45
+ ]);
46
+ };
47
+ }
48
+ });
49
+ const SettingsSection_vue_vue_type_style_index_0_scoped_fd7e6af1_lang = "";
50
+ const SettingsSection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fd7e6af1"]]);
51
+ export {
52
+ SettingsSection as default
53
+ };
@@ -0,0 +1,21 @@
1
+
2
+ .items-container[data-v-89e3a043] {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 10px; /* Space between items */
6
+ }
7
+ .item-box[data-v-89e3a043] {
8
+ display: flex;
9
+ align-items: center;
10
+ padding: 5px 10px;
11
+ background-color: #f0f0f0;
12
+ border-radius: 4px;
13
+ font-size: 12px; /* Font size set to 12px */
14
+ position: relative;
15
+ }
16
+ .remove-btn[data-v-89e3a043] {
17
+ margin-left: 8px;
18
+ cursor: pointer;
19
+ color: #100f0f72;
20
+ font-weight: bold;
21
+ }
@@ -1,41 +1,4 @@
1
- import { d as defineComponent, c as openBlock, e as createElementBlock, p as createBaseVNode, F as Fragment, q as renderList, s as normalizeClass, t as toDisplayString, T as normalizeStyle, _ as _export_sfc, g as createTextVNode, i as createCommentVNode } from "./index-683fc198.js";
2
- const _hoisted_1$1 = ["onClick"];
3
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
- __name: "ContextMenu",
5
- props: {
6
- position: { type: Object, required: true },
7
- options: {
8
- type: Array,
9
- required: true
10
- }
11
- },
12
- emits: ["select", "close"],
13
- setup(__props, { emit: __emit }) {
14
- const emit = __emit;
15
- const selectOption = (action) => {
16
- emit("select", action);
17
- emit("close");
18
- };
19
- return (_ctx, _cache) => {
20
- return openBlock(), createElementBlock("div", {
21
- class: "context-menu",
22
- style: normalizeStyle({ top: __props.position.y + "px", left: __props.position.x + "px" })
23
- }, [
24
- createBaseVNode("ul", null, [
25
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
26
- return openBlock(), createElementBlock("li", {
27
- key: option.action,
28
- class: normalizeClass({ disabled: option.disabled }),
29
- onClick: ($event) => !option.disabled && selectOption(option.action)
30
- }, toDisplayString(option.label), 11, _hoisted_1$1);
31
- }), 128))
32
- ])
33
- ], 4);
34
- };
35
- }
36
- });
37
- const ContextMenu_vue_vue_type_style_index_0_scoped_a562ba5e_lang = "";
38
- const ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a562ba5e"]]);
1
+ import { d as defineComponent, c as openBlock, e as createElementBlock, p as createBaseVNode, t as toDisplayString, F as Fragment, q as renderList, g as createTextVNode, i as createCommentVNode, _ as _export_sfc } from "./index-d0518598.js";
39
2
  const _hoisted_1 = { class: "listbox-wrapper" };
40
3
  const _hoisted_2 = { class: "listbox-row" };
41
4
  const _hoisted_3 = { class: "listbox-subtitle" };
@@ -82,6 +45,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
45
  const SettingsSection_vue_vue_type_style_index_0_scoped_89e3a043_lang = "";
83
46
  const SettingsSection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-89e3a043"]]);
84
47
  export {
85
- ContextMenu as C,
86
- SettingsSection as S
48
+ SettingsSection as default
87
49
  };
@@ -0,0 +1,45 @@
1
+ import { d as defineComponent, c as openBlock, e as createElementBlock, p as createBaseVNode, t as toDisplayString, g as createTextVNode, i as createCommentVNode, _ as _export_sfc } from "./index-d0518598.js";
2
+ const _hoisted_1 = { class: "listbox-wrapper" };
3
+ const _hoisted_2 = { class: "listbox-row" };
4
+ const _hoisted_3 = { class: "listbox-subtitle" };
5
+ const _hoisted_4 = { class: "items-container" };
6
+ const _hoisted_5 = {
7
+ key: 0,
8
+ class: "item-box"
9
+ };
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "SettingsSection",
12
+ props: {
13
+ title: { type: String, required: true },
14
+ item: { type: String, required: true }
15
+ // Changed to a single item
16
+ },
17
+ emits: ["removeItem"],
18
+ setup(__props, { emit: __emit }) {
19
+ const emit = __emit;
20
+ const emitRemove = (item) => {
21
+ emit("removeItem", item);
22
+ };
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("div", _hoisted_1, [
25
+ createBaseVNode("div", _hoisted_2, [
26
+ createBaseVNode("div", _hoisted_3, toDisplayString(__props.title), 1),
27
+ createBaseVNode("div", _hoisted_4, [
28
+ __props.item !== "" ? (openBlock(), createElementBlock("div", _hoisted_5, [
29
+ createTextVNode(toDisplayString(__props.item) + " ", 1),
30
+ createBaseVNode("span", {
31
+ class: "remove-btn",
32
+ onClick: _cache[0] || (_cache[0] = ($event) => emitRemove(__props.item))
33
+ }, "x")
34
+ ])) : createCommentVNode("", true)
35
+ ])
36
+ ])
37
+ ]);
38
+ };
39
+ }
40
+ });
41
+ const SettingsSection_vue_vue_type_style_index_0_scoped_43acf78a_lang = "";
42
+ const SettingsSection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-43acf78a"]]);
43
+ export {
44
+ SettingsSection as default
45
+ };
@@ -1,5 +1,5 @@
1
1
 
2
- .context-menu[data-v-f29b10dc] {
2
+ .context-menu[data-v-0177dec6] {
3
3
  position: fixed;
4
4
  z-index: 1000;
5
5
  border: 1px solid #ccc;
@@ -9,7 +9,7 @@
9
9
  border-radius: 4px;
10
10
  user-select: none;
11
11
  }
12
- .context-menu button[data-v-f29b10dc] {
12
+ .context-menu button[data-v-0177dec6] {
13
13
  display: block;
14
14
  background: none;
15
15
  border: none;
@@ -19,17 +19,17 @@
19
19
  cursor: pointer;
20
20
  z-index: 100;
21
21
  }
22
- .context-menu button[data-v-f29b10dc]:hover {
22
+ .context-menu button[data-v-0177dec6]:hover {
23
23
  background-color: #f0f0f0;
24
24
  }
25
- .table-wrapper[data-v-f29b10dc] {
25
+ .table-wrapper[data-v-0177dec6] {
26
26
  max-height: 300px; /* Adjust this value as needed */
27
27
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
28
28
  border-radius: 8px; /* rounded corners */
29
29
  overflow: auto; /* ensures the rounded corners are applied to the child elements */
30
30
  margin: 5px; /* adds a small margin around the table */
31
31
  }
32
- .context-menu[data-v-f29b10dc] {
32
+ .context-menu[data-v-0177dec6] {
33
33
  position: fixed;
34
34
  z-index: 1000;
35
35
  border: 1px solid #ccc;
@@ -37,15 +37,15 @@
37
37
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
38
38
  border-radius: 4px;
39
39
  }
40
- .context-menu ul[data-v-f29b10dc] {
40
+ .context-menu ul[data-v-0177dec6] {
41
41
  list-style: none;
42
42
  padding: 0;
43
43
  margin: 0;
44
44
  }
45
- .context-menu li[data-v-f29b10dc] {
45
+ .context-menu li[data-v-0177dec6] {
46
46
  padding: 8px 16px;
47
47
  cursor: pointer;
48
48
  }
49
- .context-menu li[data-v-f29b10dc]:hover {
49
+ .context-menu li[data-v-0177dec6]:hover {
50
50
  background-color: #f0f0f0;
51
51
  }