Flowfile 0.2.2__py3-none-any.whl → 0.3.0.1__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 +14 -7
- flowfile/__main__.py +51 -15
- flowfile/api.py +379 -0
- flowfile/web/__init__.py +155 -0
- flowfile/web/static/assets/AirbyteReader-1ac35765.css +314 -0
- flowfile/web/static/assets/AirbyteReader-cb0c1d4a.js +921 -0
- flowfile/web/static/assets/CrossJoin-41efa4cb.css +100 -0
- flowfile/web/static/assets/CrossJoin-a514fa59.js +153 -0
- flowfile/web/static/assets/DatabaseConnectionSettings-0c04b2e5.css +77 -0
- flowfile/web/static/assets/DatabaseConnectionSettings-f2cecf33.js +151 -0
- flowfile/web/static/assets/DatabaseManager-30fa27e5.css +64 -0
- flowfile/web/static/assets/DatabaseManager-83ee3c98.js +484 -0
- flowfile/web/static/assets/DatabaseReader-dc0c6881.js +426 -0
- flowfile/web/static/assets/DatabaseReader-f50c6558.css +158 -0
- flowfile/web/static/assets/DatabaseWriter-2f570e53.css +96 -0
- flowfile/web/static/assets/DatabaseWriter-5afe9f8d.js +312 -0
- flowfile/web/static/assets/ExploreData-5bdae813.css +45 -0
- flowfile/web/static/assets/ExploreData-c7ee19cf.js +118306 -0
- flowfile/web/static/assets/ExternalSource-17b23a01.js +225 -0
- flowfile/web/static/assets/ExternalSource-e37b6275.css +94 -0
- flowfile/web/static/assets/Filter-90856b4f.js +238 -0
- flowfile/web/static/assets/Filter-a9d08ba1.css +20 -0
- flowfile/web/static/assets/Formula-38b71e9e.js +197 -0
- flowfile/web/static/assets/Formula-d60a74f4.css +17 -0
- flowfile/web/static/assets/FuzzyMatch-6857de82.css +254 -0
- flowfile/web/static/assets/FuzzyMatch-d0f1fe81.js +422 -0
- flowfile/web/static/assets/GoogleSheet-854294a4.js +2616 -0
- flowfile/web/static/assets/GoogleSheet-92084da7.css +233 -0
- flowfile/web/static/assets/GraphSolver-0c86bbc6.js +382 -0
- flowfile/web/static/assets/GraphSolver-17fd26db.css +68 -0
- flowfile/web/static/assets/GroupBy-ab1ea74b.css +51 -0
- flowfile/web/static/assets/GroupBy-f2772e9f.js +413 -0
- flowfile/web/static/assets/Join-41c0f331.css +109 -0
- flowfile/web/static/assets/Join-bc3e1cf7.js +247 -0
- flowfile/web/static/assets/ManualInput-03aa0245.js +391 -0
- flowfile/web/static/assets/ManualInput-ac7b9972.css +84 -0
- flowfile/web/static/assets/Output-48f81019.css +2642 -0
- flowfile/web/static/assets/Output-5b35eee8.js +536 -0
- flowfile/web/static/assets/Pivot-7164087c.js +408 -0
- flowfile/web/static/assets/Pivot-f415e85f.css +35 -0
- flowfile/web/static/assets/PolarsCode-3abf6507.js +2863 -0
- flowfile/web/static/assets/PolarsCode-650322d1.css +35 -0
- flowfile/web/static/assets/PopOver-b37ff9be.js +577 -0
- flowfile/web/static/assets/PopOver-bccfde04.css +32 -0
- flowfile/web/static/assets/Read-65966a3e.js +701 -0
- flowfile/web/static/assets/Read-80dc1675.css +197 -0
- flowfile/web/static/assets/RecordCount-c66c6d6d.js +121 -0
- flowfile/web/static/assets/RecordId-826dc095.js +339 -0
- flowfile/web/static/assets/Sample-4ed555c8.js +184 -0
- flowfile/web/static/assets/SecretManager-eac1e97d.js +382 -0
- flowfile/web/static/assets/Select-085f05cc.js +231 -0
- flowfile/web/static/assets/SettingsSection-1f5e79c1.js +87 -0
- flowfile/web/static/assets/SettingsSection-9c836ecc.css +47 -0
- flowfile/web/static/assets/Sort-3e6cb414.js +309 -0
- flowfile/web/static/assets/Sort-7ccfa0fe.css +51 -0
- flowfile/web/static/assets/TextToRows-606349bc.js +307 -0
- flowfile/web/static/assets/TextToRows-c92d1ec2.css +48 -0
- flowfile/web/static/assets/UnavailableFields-5edd5322.css +49 -0
- flowfile/web/static/assets/UnavailableFields-b41976ed.js +36 -0
- flowfile/web/static/assets/Union-8d9ac7f9.css +30 -0
- flowfile/web/static/assets/Union-fca91665.js +145 -0
- flowfile/web/static/assets/Unique-a59f830e.js +273 -0
- flowfile/web/static/assets/Unique-b5615727.css +51 -0
- flowfile/web/static/assets/Unpivot-246e9bbd.css +77 -0
- flowfile/web/static/assets/Unpivot-c3815565.js +441 -0
- flowfile/web/static/assets/airbyte-292aa232.png +0 -0
- flowfile/web/static/assets/api-22b338bd.js +60 -0
- flowfile/web/static/assets/cross_join-d30c0290.png +0 -0
- flowfile/web/static/assets/database_reader-ce1e55f3.svg +24 -0
- flowfile/web/static/assets/database_writer-b4ad0753.svg +23 -0
- flowfile/web/static/assets/designer-2394122a.css +10697 -0
- flowfile/web/static/assets/designer-e5bbe26f.js +69712 -0
- flowfile/web/static/assets/documentation-08045cf2.js +33 -0
- flowfile/web/static/assets/documentation-12216a74.css +50 -0
- flowfile/web/static/assets/dropDown-35135ba8.css +143 -0
- flowfile/web/static/assets/dropDown-5e7e9a5a.js +319 -0
- flowfile/web/static/assets/dropDownGeneric-50a91b99.js +72 -0
- flowfile/web/static/assets/dropDownGeneric-895680d6.css +10 -0
- flowfile/web/static/assets/element-icons-9c88a535.woff +0 -0
- flowfile/web/static/assets/element-icons-de5eb258.ttf +0 -0
- flowfile/web/static/assets/explore_data-8a0a2861.png +0 -0
- flowfile/web/static/assets/fa-brands-400-808443ae.ttf +0 -0
- flowfile/web/static/assets/fa-brands-400-d7236a19.woff2 +0 -0
- flowfile/web/static/assets/fa-regular-400-54cf6086.ttf +0 -0
- flowfile/web/static/assets/fa-regular-400-e3456d12.woff2 +0 -0
- flowfile/web/static/assets/fa-solid-900-aa759986.woff2 +0 -0
- flowfile/web/static/assets/fa-solid-900-d2f05935.ttf +0 -0
- flowfile/web/static/assets/fa-v4compatibility-0ce9033c.woff2 +0 -0
- flowfile/web/static/assets/fa-v4compatibility-30f6abf6.ttf +0 -0
- flowfile/web/static/assets/filter-d7708bda.png +0 -0
- flowfile/web/static/assets/formula-eeeb1611.png +0 -0
- flowfile/web/static/assets/fullEditor-178376bb.css +256 -0
- flowfile/web/static/assets/fullEditor-705c6ccb.js +630 -0
- flowfile/web/static/assets/fuzzy_match-40c161b2.png +0 -0
- flowfile/web/static/assets/genericNodeSettings-65587f20.js +137 -0
- flowfile/web/static/assets/genericNodeSettings-924759c7.css +46 -0
- flowfile/web/static/assets/graph_solver-8b7888b8.png +0 -0
- flowfile/web/static/assets/group_by-80561fc3.png +0 -0
- flowfile/web/static/assets/index-552863fd.js +58652 -0
- flowfile/web/static/assets/index-681a3ed0.css +8843 -0
- flowfile/web/static/assets/input_data-ab2eb678.png +0 -0
- flowfile/web/static/assets/join-349043ae.png +0 -0
- flowfile/web/static/assets/manual_input-ae98f31d.png +0 -0
- flowfile/web/static/assets/nodeTitle-cf9bae3c.js +227 -0
- flowfile/web/static/assets/nodeTitle-f4b12bcb.css +134 -0
- flowfile/web/static/assets/old_join-5d0eb604.png +0 -0
- flowfile/web/static/assets/output-06ec0371.png +0 -0
- flowfile/web/static/assets/pivot-9660df51.png +0 -0
- flowfile/web/static/assets/polars_code-05ce5dc6.png +0 -0
- flowfile/web/static/assets/record_count-dab44eb5.png +0 -0
- flowfile/web/static/assets/record_id-0b15856b.png +0 -0
- flowfile/web/static/assets/sample-693a88b5.png +0 -0
- flowfile/web/static/assets/secretApi-3ad510e1.js +46 -0
- flowfile/web/static/assets/select-b0d0437a.png +0 -0
- flowfile/web/static/assets/selectDynamic-b062bc9b.css +107 -0
- flowfile/web/static/assets/selectDynamic-bd644891.js +302 -0
- flowfile/web/static/assets/sort-2aa579f0.png +0 -0
- flowfile/web/static/assets/summarize-2a099231.png +0 -0
- flowfile/web/static/assets/text_to_rows-859b29ea.png +0 -0
- flowfile/web/static/assets/union-2d8609f4.png +0 -0
- flowfile/web/static/assets/unique-1958b98a.png +0 -0
- flowfile/web/static/assets/unpivot-d3cb4b5b.png +0 -0
- flowfile/web/static/assets/view-7a0f0be1.png +0 -0
- flowfile/web/static/assets/vue-codemirror.esm-dd17b478.js +22281 -0
- flowfile/web/static/assets/vue-content-loader.es-6b36f05e.js +210 -0
- flowfile/web/static/flowfile.svg +47 -0
- flowfile/web/static/icons/flowfile.png +0 -0
- flowfile/web/static/images/airbyte.png +0 -0
- flowfile/web/static/images/flowfile.svg +47 -0
- flowfile/web/static/images/google.svg +1 -0
- flowfile/web/static/images/sheets.png +0 -0
- flowfile/web/static/index.html +22 -0
- flowfile/web/static/vite.svg +1 -0
- flowfile/web/static/vue.svg +1 -0
- flowfile-0.3.0.1.dist-info/METADATA +219 -0
- {flowfile-0.2.2.dist-info → flowfile-0.3.0.1.dist-info}/RECORD +147 -16
- {flowfile-0.2.2.dist-info → flowfile-0.3.0.1.dist-info}/entry_points.txt +1 -1
- flowfile_core/configs/settings.py +7 -32
- flowfile_core/flowfile/FlowfileFlow.py +4 -2
- flowfile_core/flowfile/analytics/analytics_processor.py +1 -1
- flowfile_core/main.py +4 -1
- flowfile_core/schemas/input_schema.py +1 -8
- flowfile_frame/__init__.py +1 -2
- flowfile_frame/flow_frame.py +6 -6
- flowfile_frame/utils.py +1 -140
- flowfile-0.2.2.dist-info/METADATA +0 -225
- flowfile_frame/__main__.py +0 -12
- {flowfile-0.2.2.dist-info → flowfile-0.3.0.1.dist-info}/LICENSE +0 -0
- {flowfile-0.2.2.dist-info → flowfile-0.3.0.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { d as defineComponent, r as ref, a2 as watchEffect, l as computed, n as onMounted, o as onUnmounted, b as resolveComponent, c as openBlock, e as createElementBlock, f as createVNode, p as createBaseVNode, i as createCommentVNode, t as toDisplayString, T as normalizeStyle, g as createTextVNode, F as Fragment, q as renderList, s as normalizeClass, v as withModifiers, w as withCtx, u as unref, h as createBlock, _ as _export_sfc } from "./index-552863fd.js";
|
|
2
|
+
import { u as useNodeStore } from "./PopOver-b37ff9be.js";
|
|
3
|
+
import { u as unavailableField } from "./UnavailableFields-b41976ed.js";
|
|
4
|
+
const _hoisted_1 = { key: 0 };
|
|
5
|
+
const _hoisted_2 = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "listbox-subtitle"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = { class: "listbox-wrapper" };
|
|
10
|
+
const _hoisted_4 = { class: "table-wrapper" };
|
|
11
|
+
const _hoisted_5 = { class: "styled-table" };
|
|
12
|
+
const _hoisted_6 = { key: 0 };
|
|
13
|
+
const _hoisted_7 = { key: 0 };
|
|
14
|
+
const _hoisted_8 = { key: 1 };
|
|
15
|
+
const _hoisted_9 = { id: "selectable-container" };
|
|
16
|
+
const _hoisted_10 = ["onDragstart", "onDragover", "onDrop"];
|
|
17
|
+
const _hoisted_11 = ["onClick", "onContextmenu"];
|
|
18
|
+
const _hoisted_12 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "unavailable-field"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_13 = { style: { "margin-left": "20px" } };
|
|
23
|
+
const _hoisted_14 = { key: 1 };
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "selectDynamic",
|
|
26
|
+
props: {
|
|
27
|
+
selectInputs: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
showOldColumns: { type: Boolean, default: true },
|
|
32
|
+
showNewColumns: { type: Boolean, default: true },
|
|
33
|
+
showKeepOption: { type: Boolean, default: false },
|
|
34
|
+
showDataType: { type: Boolean, default: false },
|
|
35
|
+
title: { type: String, default: "Select columns" },
|
|
36
|
+
showOptionKeepUnseen: { type: Boolean, default: false },
|
|
37
|
+
showHeaders: { type: Boolean, default: true },
|
|
38
|
+
showData: { type: Boolean, default: true },
|
|
39
|
+
showTitle: { type: Boolean, default: true },
|
|
40
|
+
draggable: { type: Boolean, default: false },
|
|
41
|
+
showMissing: { type: Boolean, default: true },
|
|
42
|
+
originalColumnHeader: { type: String, default: "Original column name" },
|
|
43
|
+
sortedBy: { type: String, default: "none" }
|
|
44
|
+
},
|
|
45
|
+
emits: ["updateSelectInputs", "update:sortedBy"],
|
|
46
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
47
|
+
const sortState = ref("none");
|
|
48
|
+
const initializeOrder = () => {
|
|
49
|
+
const sortedInputs = [...props.selectInputs].sort(
|
|
50
|
+
(a, b) => a.is_available === b.is_available ? 0 : a.is_available ? -1 : 1
|
|
51
|
+
);
|
|
52
|
+
if (sortState.value === "none") {
|
|
53
|
+
localSelectInputs.value = [...sortedInputs];
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const toggleSort = () => {
|
|
57
|
+
if (props.sortedBy === "none") {
|
|
58
|
+
emit("update:sortedBy", "asc");
|
|
59
|
+
localSelectInputs.value.sort((a, b) => a.old_name.localeCompare(b.old_name));
|
|
60
|
+
} else if (props.sortedBy === "asc") {
|
|
61
|
+
emit("update:sortedBy", "desc");
|
|
62
|
+
localSelectInputs.value.sort((a, b) => b.old_name.localeCompare(a.old_name));
|
|
63
|
+
} else {
|
|
64
|
+
emit("update:sortedBy", "none");
|
|
65
|
+
localSelectInputs.value.sort((a, b) => a.original_position - b.original_position);
|
|
66
|
+
}
|
|
67
|
+
localSelectInputs.value.forEach((input, i) => input.position = i);
|
|
68
|
+
};
|
|
69
|
+
const props = __props;
|
|
70
|
+
const dataLoaded = ref(true);
|
|
71
|
+
const selectedColumns = ref([]);
|
|
72
|
+
const firstSelectedIndex = ref(null);
|
|
73
|
+
const contextMenuPosition = ref({ x: 0, y: 0 });
|
|
74
|
+
const showContextMenu = ref(false);
|
|
75
|
+
const draggingIndex = ref(-1);
|
|
76
|
+
const dragOverIndex = ref(-1);
|
|
77
|
+
const nodeStore = useNodeStore();
|
|
78
|
+
const dataTypes = nodeStore.getDataTypes();
|
|
79
|
+
const localSelectInputs = ref(
|
|
80
|
+
[...props.selectInputs].sort(
|
|
81
|
+
(a, b) => a.is_available === b.is_available ? 0 : a.is_available ? -1 : 1
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
watchEffect(() => {
|
|
85
|
+
localSelectInputs.value = [...props.selectInputs].sort(
|
|
86
|
+
(a, b) => a.is_available === b.is_available ? 0 : a.is_available ? -1 : 1
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
const standardColumnCount = computed(
|
|
90
|
+
() => [props.showOldColumns, props.showNewColumns, props.showDataType].filter(Boolean).length
|
|
91
|
+
);
|
|
92
|
+
const standardColumnWidth = computed(() => {
|
|
93
|
+
const totalColumns = standardColumnCount.value + 0.5;
|
|
94
|
+
return totalColumns > 0 ? 100 / totalColumns + "%" : "0%";
|
|
95
|
+
});
|
|
96
|
+
const selectColumnWidth = computed(
|
|
97
|
+
() => standardColumnCount.value > 0 ? 50 / (standardColumnCount.value + 0.5) + "%" : "0%"
|
|
98
|
+
);
|
|
99
|
+
const isSelected = (columnName) => selectedColumns.value.includes(columnName);
|
|
100
|
+
const getRange = (start, end) => start < end ? Array.from({ length: end - start + 1 }, (_, i) => i + start) : Array.from({ length: start - end + 1 }, (_, i) => i + end);
|
|
101
|
+
const handleDragStart = (index, event) => {
|
|
102
|
+
var _a;
|
|
103
|
+
draggingIndex.value = index;
|
|
104
|
+
(_a = event.dataTransfer) == null ? void 0 : _a.setData("text", "");
|
|
105
|
+
if (event.dataTransfer)
|
|
106
|
+
event.dataTransfer.effectAllowed = "move";
|
|
107
|
+
};
|
|
108
|
+
const handleDragOver = (index) => {
|
|
109
|
+
dragOverIndex.value = index;
|
|
110
|
+
};
|
|
111
|
+
const handleDrop = (index) => {
|
|
112
|
+
const itemToMove = localSelectInputs.value.splice(draggingIndex.value, 1)[0];
|
|
113
|
+
localSelectInputs.value.splice(index, 0, itemToMove);
|
|
114
|
+
draggingIndex.value = -1;
|
|
115
|
+
dragOverIndex.value = -1;
|
|
116
|
+
localSelectInputs.value.forEach((input, i) => input.position = i);
|
|
117
|
+
};
|
|
118
|
+
const handleItemClick = (clickedIndex, columnName, event) => {
|
|
119
|
+
if (event.shiftKey && firstSelectedIndex.value !== null) {
|
|
120
|
+
const range = getRange(firstSelectedIndex.value, clickedIndex);
|
|
121
|
+
selectedColumns.value = range.map((index) => localSelectInputs.value[index].old_name).filter(Boolean);
|
|
122
|
+
} else {
|
|
123
|
+
firstSelectedIndex.value = clickedIndex;
|
|
124
|
+
selectedColumns.value = [localSelectInputs.value[clickedIndex].old_name];
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const openContextMenu = (clickedIndex, columnName, event) => {
|
|
128
|
+
showContextMenu.value = true;
|
|
129
|
+
event.stopPropagation();
|
|
130
|
+
if (!selectedColumns.value.includes(columnName)) {
|
|
131
|
+
handleItemClick(clickedIndex, columnName, event);
|
|
132
|
+
}
|
|
133
|
+
contextMenuPosition.value = { x: event.clientX, y: event.clientY };
|
|
134
|
+
};
|
|
135
|
+
const selectAllSelected = () => {
|
|
136
|
+
localSelectInputs.value.forEach((column) => {
|
|
137
|
+
if (selectedColumns.value.includes(column.old_name)) {
|
|
138
|
+
column.keep = true;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
const deselectAllSelected = () => {
|
|
143
|
+
localSelectInputs.value.forEach((column) => {
|
|
144
|
+
if (selectedColumns.value.includes(column.old_name)) {
|
|
145
|
+
column.keep = false;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
const hasMissingFields = computed(
|
|
150
|
+
() => localSelectInputs.value.some((column) => !column.is_available)
|
|
151
|
+
);
|
|
152
|
+
const handleClickOutside = (event) => {
|
|
153
|
+
const container = document.getElementById("selectable-container");
|
|
154
|
+
if (container && !container.contains(event.target)) {
|
|
155
|
+
selectedColumns.value = [];
|
|
156
|
+
showContextMenu.value = false;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
onMounted(() => {
|
|
160
|
+
window.addEventListener("click", handleClickOutside);
|
|
161
|
+
initializeOrder();
|
|
162
|
+
});
|
|
163
|
+
onUnmounted(() => {
|
|
164
|
+
window.removeEventListener("click", handleClickOutside);
|
|
165
|
+
});
|
|
166
|
+
const emit = __emit;
|
|
167
|
+
const removeMissingFields = () => {
|
|
168
|
+
const availableColumns = localSelectInputs.value.filter((column) => column.is_available);
|
|
169
|
+
localSelectInputs.value = availableColumns;
|
|
170
|
+
emit("updateSelectInputs", availableColumns);
|
|
171
|
+
};
|
|
172
|
+
__expose({ localSelectInputs });
|
|
173
|
+
return (_ctx, _cache) => {
|
|
174
|
+
const _component_el_input = resolveComponent("el-input");
|
|
175
|
+
const _component_el_option = resolveComponent("el-option");
|
|
176
|
+
const _component_el_select = resolveComponent("el-select");
|
|
177
|
+
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
178
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
179
|
+
dataLoaded.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
180
|
+
hasMissingFields.value ? (openBlock(), createElementBlock("div", {
|
|
181
|
+
key: 0,
|
|
182
|
+
class: "remove-missing-fields",
|
|
183
|
+
onClick: removeMissingFields
|
|
184
|
+
}, [
|
|
185
|
+
createVNode(unavailableField, { "tooltip-text": "Field not available click for removing them for memory" }),
|
|
186
|
+
_cache[0] || (_cache[0] = createBaseVNode("span", null, "Remove Missing Fields", -1))
|
|
187
|
+
])) : createCommentVNode("", true),
|
|
188
|
+
props.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(props.title), 1)) : createCommentVNode("", true),
|
|
189
|
+
createBaseVNode("div", _hoisted_3, [
|
|
190
|
+
createBaseVNode("div", _hoisted_4, [
|
|
191
|
+
createBaseVNode("table", _hoisted_5, [
|
|
192
|
+
createBaseVNode("thead", null, [
|
|
193
|
+
props.showHeaders ? (openBlock(), createElementBlock("tr", _hoisted_6, [
|
|
194
|
+
props.showOldColumns ? (openBlock(), createElementBlock("th", {
|
|
195
|
+
key: 0,
|
|
196
|
+
style: normalizeStyle({ width: standardColumnWidth.value }),
|
|
197
|
+
onClick: toggleSort
|
|
198
|
+
}, [
|
|
199
|
+
createTextVNode(toDisplayString(__props.originalColumnHeader) + " ", 1),
|
|
200
|
+
props.sortedBy === "asc" ? (openBlock(), createElementBlock("span", _hoisted_7, "▲")) : props.sortedBy === "desc" ? (openBlock(), createElementBlock("span", _hoisted_8, "▼")) : createCommentVNode("", true)
|
|
201
|
+
], 4)) : createCommentVNode("", true),
|
|
202
|
+
props.showNewColumns ? (openBlock(), createElementBlock("th", {
|
|
203
|
+
key: 1,
|
|
204
|
+
style: normalizeStyle({ width: standardColumnWidth.value })
|
|
205
|
+
}, " New column name ", 4)) : createCommentVNode("", true),
|
|
206
|
+
props.showDataType ? (openBlock(), createElementBlock("th", {
|
|
207
|
+
key: 2,
|
|
208
|
+
style: normalizeStyle({ width: standardColumnWidth.value })
|
|
209
|
+
}, "Data type", 4)) : createCommentVNode("", true),
|
|
210
|
+
props.showKeepOption ? (openBlock(), createElementBlock("th", {
|
|
211
|
+
key: 3,
|
|
212
|
+
style: normalizeStyle({ width: selectColumnWidth.value })
|
|
213
|
+
}, "Select", 4)) : createCommentVNode("", true)
|
|
214
|
+
])) : createCommentVNode("", true)
|
|
215
|
+
]),
|
|
216
|
+
createBaseVNode("tbody", _hoisted_9, [
|
|
217
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(localSelectInputs.value, (column, index) => {
|
|
218
|
+
return openBlock(), createElementBlock("tr", {
|
|
219
|
+
key: column.old_name,
|
|
220
|
+
class: normalizeClass({ "drag-over": dragOverIndex.value === index }),
|
|
221
|
+
style: normalizeStyle({ opacity: column.is_available ? 1 : 0.6 }),
|
|
222
|
+
draggable: "true",
|
|
223
|
+
onDragstart: ($event) => handleDragStart(index, $event),
|
|
224
|
+
onDragover: withModifiers(($event) => handleDragOver(index), ["prevent"]),
|
|
225
|
+
onDrop: ($event) => handleDrop(index)
|
|
226
|
+
}, [
|
|
227
|
+
props.showOldColumns ? (openBlock(), createElementBlock("td", {
|
|
228
|
+
key: 0,
|
|
229
|
+
class: normalizeClass({ "highlight-row": isSelected(column.old_name) }),
|
|
230
|
+
onClick: ($event) => handleItemClick(index, column.old_name, $event),
|
|
231
|
+
onContextmenu: withModifiers(($event) => openContextMenu(index, column.old_name, $event), ["prevent"])
|
|
232
|
+
}, [
|
|
233
|
+
!column.is_available ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
234
|
+
createVNode(unavailableField),
|
|
235
|
+
createBaseVNode("span", _hoisted_13, toDisplayString(column.old_name), 1)
|
|
236
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_14, toDisplayString(column.old_name), 1))
|
|
237
|
+
], 42, _hoisted_11)) : createCommentVNode("", true),
|
|
238
|
+
props.showNewColumns ? (openBlock(), createElementBlock("td", {
|
|
239
|
+
key: 1,
|
|
240
|
+
class: normalizeClass({ "highlight-row": isSelected(column.old_name) })
|
|
241
|
+
}, [
|
|
242
|
+
createVNode(_component_el_input, {
|
|
243
|
+
modelValue: column.new_name,
|
|
244
|
+
"onUpdate:modelValue": ($event) => column.new_name = $event,
|
|
245
|
+
size: "small",
|
|
246
|
+
class: "smaller-el-input"
|
|
247
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
248
|
+
], 2)) : createCommentVNode("", true),
|
|
249
|
+
props.showDataType ? (openBlock(), createElementBlock("td", {
|
|
250
|
+
key: 2,
|
|
251
|
+
class: normalizeClass({ "highlight-row": isSelected(column.old_name) })
|
|
252
|
+
}, [
|
|
253
|
+
createVNode(_component_el_select, {
|
|
254
|
+
modelValue: column.data_type,
|
|
255
|
+
"onUpdate:modelValue": ($event) => column.data_type = $event,
|
|
256
|
+
size: "small"
|
|
257
|
+
}, {
|
|
258
|
+
default: withCtx(() => [
|
|
259
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataTypes), (dataType) => {
|
|
260
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
261
|
+
key: dataType,
|
|
262
|
+
label: dataType,
|
|
263
|
+
value: dataType
|
|
264
|
+
}, null, 8, ["label", "value"]);
|
|
265
|
+
}), 128))
|
|
266
|
+
]),
|
|
267
|
+
_: 2
|
|
268
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
269
|
+
], 2)) : createCommentVNode("", true),
|
|
270
|
+
props.showKeepOption ? (openBlock(), createElementBlock("td", {
|
|
271
|
+
key: 3,
|
|
272
|
+
class: normalizeClass({ "highlight-row": isSelected(column.old_name) })
|
|
273
|
+
}, [
|
|
274
|
+
createVNode(_component_el_checkbox, {
|
|
275
|
+
modelValue: column.keep,
|
|
276
|
+
"onUpdate:modelValue": ($event) => column.keep = $event
|
|
277
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
278
|
+
], 2)) : createCommentVNode("", true)
|
|
279
|
+
], 46, _hoisted_10);
|
|
280
|
+
}), 128))
|
|
281
|
+
])
|
|
282
|
+
])
|
|
283
|
+
])
|
|
284
|
+
])
|
|
285
|
+
])) : createCommentVNode("", true),
|
|
286
|
+
showContextMenu.value ? (openBlock(), createElementBlock("div", {
|
|
287
|
+
key: 1,
|
|
288
|
+
class: "context-menu",
|
|
289
|
+
style: normalizeStyle({ top: contextMenuPosition.value.y + "px", left: contextMenuPosition.value.x + "px" })
|
|
290
|
+
}, [
|
|
291
|
+
createBaseVNode("button", { onClick: selectAllSelected }, "Select"),
|
|
292
|
+
createBaseVNode("button", { onClick: deselectAllSelected }, "Deselect")
|
|
293
|
+
], 4)) : createCommentVNode("", true)
|
|
294
|
+
], 64);
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
const selectDynamic_vue_vue_type_style_index_0_scoped_86b67fdf_lang = "";
|
|
299
|
+
const selectDynamic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-86b67fdf"]]);
|
|
300
|
+
export {
|
|
301
|
+
selectDynamic as s
|
|
302
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|