Flowfile 0.5.1__py3-none-any.whl → 0.5.4__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.
- build_backends/main.py +25 -22
- build_backends/main_prd.py +10 -19
- flowfile/__init__.py +194 -74
- flowfile/__main__.py +10 -7
- flowfile/api.py +51 -57
- flowfile/web/__init__.py +14 -9
- flowfile/web/static/assets/AdminView-f53bad23.css +129 -0
- flowfile/web/static/assets/AdminView-f9847d67.js +713 -0
- flowfile/web/static/assets/CloudConnectionView-cf85f943.css +72 -0
- flowfile/web/static/assets/{CloudConnectionManager-0dfba9f2.js → CloudConnectionView-faace55b.js} +11 -11
- flowfile/web/static/assets/{CloudStorageReader-29d14fcc.css → CloudStorageReader-24c54524.css} +27 -27
- flowfile/web/static/assets/{CloudStorageReader-d5b1b6c9.js → CloudStorageReader-d86ecaa7.js} +10 -8
- flowfile/web/static/assets/{CloudStorageWriter-00d87aad.js → CloudStorageWriter-0f4d9a44.js} +10 -8
- flowfile/web/static/assets/{CloudStorageWriter-b0ee067f.css → CloudStorageWriter-60547855.css} +26 -26
- flowfile/web/static/assets/ColumnActionInput-c44b7aee.css +159 -0
- flowfile/web/static/assets/ColumnActionInput-f4189ae0.js +330 -0
- flowfile/web/static/assets/{ColumnSelector-47996a16.css → ColumnSelector-371637fb.css} +2 -2
- flowfile/web/static/assets/{ColumnSelector-4685e75d.js → ColumnSelector-e66b33da.js} +3 -5
- flowfile/web/static/assets/ContextMenu-49463352.js +9 -0
- flowfile/web/static/assets/ContextMenu-dd5f3f25.js +9 -0
- flowfile/web/static/assets/ContextMenu-f709b884.js +9 -0
- flowfile/web/static/assets/ContextMenu.vue_vue_type_script_setup_true_lang-a1bd6314.js +59 -0
- flowfile/web/static/assets/{CrossJoin-702a3edd.js → CrossJoin-24694b8f.js} +12 -10
- flowfile/web/static/assets/{CrossJoin-1119d18e.css → CrossJoin-71b4cc10.css} +20 -20
- flowfile/web/static/assets/{CustomNode-b1519993.js → CustomNode-569d45ff.js} +43 -24
- flowfile/web/static/assets/CustomNode-edb9b939.css +42 -0
- flowfile/web/static/assets/{DatabaseConnectionSettings-0c04b2e5.css → DatabaseConnectionSettings-c20a1e16.css} +23 -21
- flowfile/web/static/assets/{DatabaseConnectionSettings-6f3e4ea5.js → DatabaseConnectionSettings-cfc08938.js} +5 -4
- flowfile/web/static/assets/{DatabaseReader-ae61773c.css → DatabaseReader-5bf8c75b.css} +41 -46
- flowfile/web/static/assets/{DatabaseReader-d38c7295.js → DatabaseReader-701feabb.js} +25 -15
- flowfile/web/static/assets/{DatabaseManager-cf5ef661.js → DatabaseView-0482e5b5.js} +11 -11
- flowfile/web/static/assets/DatabaseView-6655afd6.css +57 -0
- flowfile/web/static/assets/{DatabaseWriter-b04ef46a.js → DatabaseWriter-16721989.js} +17 -10
- flowfile/web/static/assets/{DatabaseWriter-2f570e53.css → DatabaseWriter-bdcf2c8b.css} +29 -27
- flowfile/web/static/assets/{designer-8da3ba3a.css → DesignerView-49abb835.css} +783 -663
- flowfile/web/static/assets/{designer-9633482a.js → DesignerView-f64749fb.js} +1292 -3253
- flowfile/web/static/assets/{documentation-ca400224.js → DocumentationView-61bd2990.js} +5 -5
- flowfile/web/static/assets/{documentation-12216a74.css → DocumentationView-9ea6e871.css} +9 -9
- flowfile/web/static/assets/{ExploreData-2d0cf4db.css → ExploreData-10c5acc8.css} +13 -12
- flowfile/web/static/assets/{ExploreData-5fa10ed8.js → ExploreData-e2735b13.js} +18 -9
- flowfile/web/static/assets/{ExternalSource-d39af878.js → ExternalSource-2535c3b2.js} +9 -7
- flowfile/web/static/assets/{ExternalSource-e37b6275.css → ExternalSource-7ac7373f.css} +20 -20
- flowfile/web/static/assets/Filter-2cdbc93c.js +287 -0
- flowfile/web/static/assets/Filter-7494ea97.css +48 -0
- flowfile/web/static/assets/{Formula-bb96803d.css → Formula-53d58c43.css} +7 -7
- flowfile/web/static/assets/{Formula-6b04fb1d.js → Formula-fcda3c2c.js} +13 -11
- flowfile/web/static/assets/{FuzzyMatch-1010f966.css → FuzzyMatch-ad6361d6.css} +68 -69
- flowfile/web/static/assets/{FuzzyMatch-999521f4.js → FuzzyMatch-f8d3b7d3.js} +12 -10
- flowfile/web/static/assets/{Pivot-cf333e3d.css → GraphSolver-4b4d7db9.css} +5 -5
- flowfile/web/static/assets/{GraphSolver-17dd2198.js → GraphSolver-72eaa695.js} +14 -12
- flowfile/web/static/assets/GroupBy-5792782d.css +9 -0
- flowfile/web/static/assets/{GroupBy-6b039e18.js → GroupBy-8aa0598b.js} +9 -7
- flowfile/web/static/assets/{Join-fd79b451.css → Join-28b5e18f.css} +22 -22
- flowfile/web/static/assets/{Join-24d0f113.js → Join-e40f0ffa.js} +13 -11
- flowfile/web/static/assets/LoginView-5111c9ae.js +134 -0
- flowfile/web/static/assets/LoginView-d325d632.css +172 -0
- flowfile/web/static/assets/ManualInput-3702e677.css +293 -0
- flowfile/web/static/assets/{ManualInput-34639209.js → ManualInput-9b6f3224.js} +170 -116
- flowfile/web/static/assets/{MultiSelect-0e8724a3.js → MultiSelect-ef28e19e.js} +2 -2
- flowfile/web/static/assets/{MultiSelect.vue_vue_type_script_setup_true_lang-b0e538c2.js → MultiSelect.vue_vue_type_script_setup_true_lang-83b3bbfd.js} +1 -1
- flowfile/web/static/assets/NodeDesigner-94cd4dd3.css +1429 -0
- flowfile/web/static/assets/NodeDesigner-d2b7ee2b.js +2712 -0
- flowfile/web/static/assets/{NumericInput-3d63a470.js → NumericInput-1d789794.js} +2 -2
- flowfile/web/static/assets/{NumericInput.vue_vue_type_script_setup_true_lang-e0edeccc.js → NumericInput.vue_vue_type_script_setup_true_lang-7775f83e.js} +5 -2
- flowfile/web/static/assets/Output-692dd25d.css +37 -0
- flowfile/web/static/assets/{Output-edea9802.js → Output-cefef801.js} +14 -10
- flowfile/web/static/assets/{GraphSolver-f0cb7bfb.css → Pivot-0eda81b4.css} +5 -5
- flowfile/web/static/assets/{Pivot-61d19301.js → Pivot-bab1b75b.js} +12 -10
- flowfile/web/static/assets/PivotValidation-0e905b1a.css +13 -0
- flowfile/web/static/assets/PivotValidation-41b57ad6.css +13 -0
- flowfile/web/static/assets/{PivotValidation-f97fec5b.js → PivotValidation-e7941f91.js} +3 -3
- flowfile/web/static/assets/{PivotValidation-de9f43fe.js → PivotValidation-fba09336.js} +3 -3
- flowfile/web/static/assets/{PolarsCode-650322d1.css → PolarsCode-2b1f1f23.css} +4 -4
- flowfile/web/static/assets/{PolarsCode-bc3c9984.js → PolarsCode-740e40fa.js} +18 -9
- flowfile/web/static/assets/PopOver-862d7e28.js +939 -0
- flowfile/web/static/assets/PopOver-d96599db.css +33 -0
- flowfile/web/static/assets/{Read-64a3f259.js → Read-225cc63f.js} +16 -12
- flowfile/web/static/assets/{Read-e808b239.css → Read-90f366bc.css} +15 -15
- flowfile/web/static/assets/{RecordCount-3d5039be.js → RecordCount-ffc71eca.js} +6 -4
- flowfile/web/static/assets/{RecordId-597510e0.js → RecordId-a70bb8df.js} +9 -7
- flowfile/web/static/assets/{SQLQueryComponent-df51adbe.js → SQLQueryComponent-15a421f5.js} +3 -3
- flowfile/web/static/assets/SQLQueryComponent-edb90b98.css +29 -0
- flowfile/web/static/assets/{Sample-4be0a507.js → Sample-6c26afc7.js} +6 -4
- flowfile/web/static/assets/SecretSelector-6329f743.css +43 -0
- flowfile/web/static/assets/SecretSelector-ceed9496.js +113 -0
- flowfile/web/static/assets/{SecretManager-4839be57.js → SecretsView-214d255a.js} +35 -36
- flowfile/web/static/assets/SecretsView-aa291340.css +38 -0
- flowfile/web/static/assets/{Select-9b72f201.js → Select-8fc29999.js} +9 -7
- flowfile/web/static/assets/{SettingsSection-71e6b7e3.css → SettingsSection-07fbbc39.css} +4 -4
- flowfile/web/static/assets/{SettingsSection-5c696bee.css → SettingsSection-26fe48d4.css} +4 -4
- flowfile/web/static/assets/{SettingsSection-7ded385d.js → SettingsSection-3f70e4c3.js} +3 -3
- flowfile/web/static/assets/{SettingsSection-f0f75a42.js → SettingsSection-83090218.js} +3 -3
- flowfile/web/static/assets/{SettingsSection-2e4d03c4.css → SettingsSection-8f980839.css} +4 -4
- flowfile/web/static/assets/{SettingsSection-e1e9c953.js → SettingsSection-9f0d1725.js} +3 -3
- flowfile/web/static/assets/SetupView-3fa0aa03.js +160 -0
- flowfile/web/static/assets/SetupView-e2da3442.css +230 -0
- flowfile/web/static/assets/{SingleSelect-6c777aac.js → SingleSelect-a4a568cb.js} +2 -2
- flowfile/web/static/assets/{SingleSelect.vue_vue_type_script_setup_true_lang-33e3ff9b.js → SingleSelect.vue_vue_type_script_setup_true_lang-c8ebdd33.js} +1 -1
- flowfile/web/static/assets/{SliderInput-7cb93e62.js → SliderInput-be533e71.js} +7 -4
- flowfile/web/static/assets/SliderInput-f2e4f23c.css +4 -0
- flowfile/web/static/assets/{Sort-6cbde21a.js → Sort-154dad81.js} +9 -7
- flowfile/web/static/assets/Sort-4abb7fae.css +9 -0
- flowfile/web/static/assets/{TextInput-d9a40c11.js → TextInput-454e2bda.js} +2 -2
- flowfile/web/static/assets/{TextInput.vue_vue_type_script_setup_true_lang-5896c375.js → TextInput.vue_vue_type_script_setup_true_lang-e86510d0.js} +5 -2
- flowfile/web/static/assets/{TextToRows-5d2c1190.css → TextToRows-12afb4f4.css} +10 -10
- flowfile/web/static/assets/{TextToRows-c4fcbf4d.js → TextToRows-ea73433d.js} +11 -10
- flowfile/web/static/assets/{ToggleSwitch-4ef91d19.js → ToggleSwitch-9d7b30f1.js} +2 -2
- flowfile/web/static/assets/{ToggleSwitch.vue_vue_type_script_setup_true_lang-38478c20.js → ToggleSwitch.vue_vue_type_script_setup_true_lang-00f2580e.js} +1 -1
- flowfile/web/static/assets/{UnavailableFields-5edd5322.css → UnavailableFields-394a1f78.css} +14 -14
- flowfile/web/static/assets/{UnavailableFields-a03f512c.js → UnavailableFields-b72a2c72.js} +4 -4
- flowfile/web/static/assets/{Union-bfe9b996.js → Union-1e44f263.js} +8 -6
- flowfile/web/static/assets/{Union-af6c3d9b.css → Union-d6a8d7d5.css} +7 -7
- flowfile/web/static/assets/Unique-2b705521.css +3 -0
- flowfile/web/static/assets/{Unique-5d023a27.js → Unique-a3bc6d0a.js} +13 -10
- flowfile/web/static/assets/{Unpivot-1e422df3.css → Unpivot-b6ad6427.css} +7 -7
- flowfile/web/static/assets/{Unpivot-91cc5354.js → Unpivot-e27935fc.js} +11 -9
- flowfile/web/static/assets/{UnpivotValidation-7ee2de44.js → UnpivotValidation-72497680.js} +3 -3
- flowfile/web/static/assets/UnpivotValidation-d5ca3b7b.css +13 -0
- flowfile/web/static/assets/{VueGraphicWalker-ed5ab88b.css → VueGraphicWalker-430f0b86.css} +1 -1
- flowfile/web/static/assets/{VueGraphicWalker-e51b9924.js → VueGraphicWalker-d9ab70a3.js} +4 -4
- flowfile/web/static/assets/{api-cf1221f0.js → api-a2102880.js} +1 -1
- flowfile/web/static/assets/{api-c1bad5ca.js → api-f75042b0.js} +1 -1
- flowfile/web/static/assets/{dropDown-35135ba8.css → dropDown-1d6acbd9.css} +41 -41
- flowfile/web/static/assets/{dropDown-614b998d.js → dropDown-2798a109.js} +3 -3
- flowfile/web/static/assets/{fullEditor-f7971590.js → fullEditor-cf7d7d93.js} +11 -10
- flowfile/web/static/assets/{fullEditor-178376bb.css → fullEditor-fe9f7e18.css} +77 -65
- flowfile/web/static/assets/{genericNodeSettings-4fe5f36b.js → genericNodeSettings-14eac1c3.js} +5 -5
- flowfile/web/static/assets/{genericNodeSettings-924759c7.css → genericNodeSettings-3b2507ea.css} +10 -10
- flowfile/web/static/assets/{index-5429bbf8.js → index-387a6f18.js} +41806 -40958
- flowfile/web/static/assets/index-6b367bb5.js +38 -0
- flowfile/web/static/assets/{index-50508d4d.css → index-e96ab018.css} +2184 -569
- flowfile/web/static/assets/index-f0a6e5a5.js +2696 -0
- flowfile/web/static/assets/node.types-2c15bb7e.js +82 -0
- flowfile/web/static/assets/nodeInput-ed2ae8d7.js +2 -0
- flowfile/web/static/assets/{outputCsv-076b85ab.js → outputCsv-3c1757e8.js} +3 -3
- flowfile/web/static/assets/outputCsv-b9a072af.css +2499 -0
- flowfile/web/static/assets/{outputExcel-0fd17dbe.js → outputExcel-686e1f48.js} +3 -3
- flowfile/web/static/assets/{outputExcel-b41305c0.css → outputExcel-f5d272b2.css} +26 -26
- flowfile/web/static/assets/outputParquet-54597c3c.css +4 -0
- flowfile/web/static/assets/{outputParquet-b61e0847.js → outputParquet-df28faa7.js} +4 -4
- flowfile/web/static/assets/{readCsv-c767cb37.css → readCsv-3bfac4c3.css} +15 -15
- flowfile/web/static/assets/{readCsv-a8bb8b61.js → readCsv-e37eee21.js} +3 -3
- flowfile/web/static/assets/{readExcel-806d2826.css → readExcel-3db6b763.css} +13 -13
- flowfile/web/static/assets/{readExcel-67b4aee0.js → readExcel-a13f14bb.js} +5 -5
- flowfile/web/static/assets/{readParquet-92ce1dbc.js → readParquet-344cf746.js} +3 -3
- flowfile/web/static/assets/{readParquet-48c81530.css → readParquet-c5244ad5.css} +4 -4
- flowfile/web/static/assets/secrets.api-ae198c5c.js +65 -0
- flowfile/web/static/assets/{selectDynamic-92e25ee3.js → selectDynamic-6b4b0767.js} +5 -5
- flowfile/web/static/assets/{selectDynamic-aa913ff4.css → selectDynamic-f2fb394f.css} +21 -20
- flowfile/web/static/assets/{vue-codemirror.esm-41b0e0d7.js → vue-codemirror.esm-31ba0e0b.js} +31 -640
- flowfile/web/static/assets/{vue-content-loader.es-2c8e608f.js → vue-content-loader.es-4469c8ff.js} +1 -1
- flowfile/web/static/index.html +2 -2
- {flowfile-0.5.1.dist-info → flowfile-0.5.4.dist-info}/METADATA +3 -4
- flowfile-0.5.4.dist-info/RECORD +407 -0
- flowfile_core/__init__.py +13 -6
- flowfile_core/auth/jwt.py +51 -16
- flowfile_core/auth/models.py +32 -7
- flowfile_core/auth/password.py +89 -0
- flowfile_core/auth/secrets.py +64 -19
- flowfile_core/configs/__init__.py +9 -7
- flowfile_core/configs/flow_logger.py +15 -14
- flowfile_core/configs/node_store/__init__.py +72 -4
- flowfile_core/configs/node_store/nodes.py +155 -172
- flowfile_core/configs/node_store/user_defined_node_registry.py +108 -27
- flowfile_core/configs/settings.py +28 -15
- flowfile_core/database/connection.py +7 -6
- flowfile_core/database/init_db.py +96 -2
- flowfile_core/database/models.py +3 -1
- flowfile_core/fileExplorer/__init__.py +17 -0
- flowfile_core/fileExplorer/funcs.py +145 -57
- flowfile_core/fileExplorer/utils.py +10 -11
- flowfile_core/flowfile/_extensions/real_time_interface.py +10 -8
- flowfile_core/flowfile/analytics/analytics_processor.py +26 -24
- flowfile_core/flowfile/analytics/graphic_walker.py +11 -12
- flowfile_core/flowfile/analytics/utils.py +1 -1
- flowfile_core/flowfile/code_generator/__init__.py +11 -0
- flowfile_core/flowfile/code_generator/code_generator.py +706 -247
- flowfile_core/flowfile/connection_manager/_connection_manager.py +6 -5
- flowfile_core/flowfile/connection_manager/models.py +1 -1
- flowfile_core/flowfile/database_connection_manager/db_connections.py +60 -44
- flowfile_core/flowfile/database_connection_manager/models.py +1 -1
- flowfile_core/flowfile/extensions.py +17 -12
- flowfile_core/flowfile/flow_data_engine/cloud_storage_reader.py +34 -32
- flowfile_core/flowfile/flow_data_engine/create/funcs.py +115 -83
- flowfile_core/flowfile/flow_data_engine/flow_data_engine.py +493 -423
- flowfile_core/flowfile/flow_data_engine/flow_file_column/interface.py +2 -2
- flowfile_core/flowfile/flow_data_engine/flow_file_column/main.py +92 -52
- flowfile_core/flowfile/flow_data_engine/flow_file_column/polars_type.py +12 -11
- flowfile_core/flowfile/flow_data_engine/flow_file_column/type_registry.py +6 -6
- flowfile_core/flowfile/flow_data_engine/flow_file_column/utils.py +26 -30
- flowfile_core/flowfile/flow_data_engine/fuzzy_matching/prepare_for_fuzzy_match.py +31 -20
- flowfile_core/flowfile/flow_data_engine/join/__init__.py +1 -1
- flowfile_core/flowfile/flow_data_engine/join/utils.py +11 -9
- flowfile_core/flowfile/flow_data_engine/join/verify_integrity.py +14 -15
- flowfile_core/flowfile/flow_data_engine/pivot_table.py +5 -7
- flowfile_core/flowfile/flow_data_engine/polars_code_parser.py +95 -82
- flowfile_core/flowfile/flow_data_engine/read_excel_tables.py +66 -65
- flowfile_core/flowfile/flow_data_engine/sample_data.py +27 -21
- flowfile_core/flowfile/flow_data_engine/subprocess_operations/__init__.py +1 -1
- flowfile_core/flowfile/flow_data_engine/subprocess_operations/models.py +13 -11
- flowfile_core/flowfile/flow_data_engine/subprocess_operations/subprocess_operations.py +190 -127
- flowfile_core/flowfile/flow_data_engine/threaded_processes.py +8 -8
- flowfile_core/flowfile/flow_data_engine/utils.py +99 -67
- flowfile_core/flowfile/flow_graph.py +920 -571
- flowfile_core/flowfile/flow_graph_utils.py +31 -49
- flowfile_core/flowfile/flow_node/flow_node.py +379 -258
- flowfile_core/flowfile/flow_node/models.py +53 -41
- flowfile_core/flowfile/flow_node/schema_callback.py +14 -19
- flowfile_core/flowfile/graph_tree/graph_tree.py +41 -41
- flowfile_core/flowfile/handler.py +80 -30
- flowfile_core/flowfile/manage/compatibility_enhancements.py +209 -126
- flowfile_core/flowfile/manage/io_flowfile.py +54 -57
- flowfile_core/flowfile/node_designer/__init__.py +19 -13
- flowfile_core/flowfile/node_designer/_type_registry.py +34 -37
- flowfile_core/flowfile/node_designer/custom_node.py +162 -36
- flowfile_core/flowfile/node_designer/ui_components.py +278 -34
- flowfile_core/flowfile/schema_callbacks.py +71 -51
- flowfile_core/flowfile/setting_generator/__init__.py +0 -1
- flowfile_core/flowfile/setting_generator/setting_generator.py +6 -5
- flowfile_core/flowfile/setting_generator/settings.py +64 -53
- flowfile_core/flowfile/sources/external_sources/base_class.py +12 -10
- flowfile_core/flowfile/sources/external_sources/custom_external_sources/external_source.py +27 -17
- flowfile_core/flowfile/sources/external_sources/custom_external_sources/sample_users.py +9 -9
- flowfile_core/flowfile/sources/external_sources/factory.py +0 -1
- flowfile_core/flowfile/sources/external_sources/sql_source/models.py +45 -31
- flowfile_core/flowfile/sources/external_sources/sql_source/sql_source.py +198 -73
- flowfile_core/flowfile/sources/external_sources/sql_source/utils.py +250 -196
- flowfile_core/flowfile/util/calculate_layout.py +9 -13
- flowfile_core/flowfile/util/execution_orderer.py +25 -17
- flowfile_core/flowfile/util/node_skipper.py +4 -4
- flowfile_core/flowfile/utils.py +19 -21
- flowfile_core/main.py +26 -19
- flowfile_core/routes/auth.py +284 -11
- flowfile_core/routes/cloud_connections.py +25 -25
- flowfile_core/routes/logs.py +21 -29
- flowfile_core/routes/public.py +46 -4
- flowfile_core/routes/routes.py +70 -34
- flowfile_core/routes/secrets.py +25 -27
- flowfile_core/routes/user_defined_components.py +483 -4
- flowfile_core/run_lock.py +0 -1
- flowfile_core/schemas/__init__.py +4 -6
- flowfile_core/schemas/analysis_schemas/graphic_walker_schemas.py +55 -55
- flowfile_core/schemas/cloud_storage_schemas.py +96 -66
- flowfile_core/schemas/input_schema.py +231 -144
- flowfile_core/schemas/output_model.py +49 -34
- flowfile_core/schemas/schemas.py +116 -89
- flowfile_core/schemas/transform_schema.py +518 -263
- flowfile_core/schemas/yaml_types.py +21 -7
- flowfile_core/secret_manager/secret_manager.py +123 -18
- flowfile_core/types.py +29 -9
- flowfile_core/utils/arrow_reader.py +7 -6
- flowfile_core/utils/excel_file_manager.py +3 -3
- flowfile_core/utils/fileManager.py +7 -7
- flowfile_core/utils/fl_executor.py +8 -10
- flowfile_core/utils/utils.py +4 -4
- flowfile_core/utils/validate_setup.py +5 -4
- flowfile_frame/__init__.py +117 -51
- flowfile_frame/adapters.py +2 -9
- flowfile_frame/adding_expr.py +73 -32
- flowfile_frame/cloud_storage/frame_helpers.py +27 -23
- flowfile_frame/cloud_storage/secret_manager.py +12 -26
- flowfile_frame/config.py +2 -5
- flowfile_frame/database/__init__.py +36 -0
- flowfile_frame/database/connection_manager.py +205 -0
- flowfile_frame/database/frame_helpers.py +249 -0
- flowfile_frame/expr.py +311 -218
- flowfile_frame/expr.pyi +160 -159
- flowfile_frame/expr_name.py +23 -23
- flowfile_frame/flow_frame.py +571 -476
- flowfile_frame/flow_frame.pyi +123 -104
- flowfile_frame/flow_frame_methods.py +227 -246
- flowfile_frame/group_frame.py +50 -20
- flowfile_frame/join.py +2 -2
- flowfile_frame/lazy.py +129 -87
- flowfile_frame/lazy_methods.py +83 -30
- flowfile_frame/list_name_space.py +55 -50
- flowfile_frame/selectors.py +148 -68
- flowfile_frame/series.py +9 -7
- flowfile_frame/utils.py +19 -21
- flowfile_worker/__init__.py +12 -7
- flowfile_worker/configs.py +41 -33
- flowfile_worker/create/__init__.py +14 -9
- flowfile_worker/create/funcs.py +114 -77
- flowfile_worker/create/models.py +46 -43
- flowfile_worker/create/pl_types.py +14 -15
- flowfile_worker/create/read_excel_tables.py +34 -41
- flowfile_worker/create/utils.py +22 -19
- flowfile_worker/external_sources/s3_source/main.py +18 -51
- flowfile_worker/external_sources/s3_source/models.py +34 -27
- flowfile_worker/external_sources/sql_source/main.py +8 -5
- flowfile_worker/external_sources/sql_source/models.py +13 -9
- flowfile_worker/flow_logger.py +10 -8
- flowfile_worker/funcs.py +214 -155
- flowfile_worker/main.py +11 -17
- flowfile_worker/models.py +35 -28
- flowfile_worker/process_manager.py +2 -3
- flowfile_worker/routes.py +121 -90
- flowfile_worker/secrets.py +114 -21
- flowfile_worker/spawner.py +89 -54
- flowfile_worker/utils.py +3 -2
- shared/__init__.py +2 -7
- shared/storage_config.py +25 -13
- test_utils/postgres/commands.py +3 -2
- test_utils/postgres/fixtures.py +9 -9
- test_utils/s3/commands.py +1 -1
- test_utils/s3/data_generator.py +3 -4
- test_utils/s3/demo_data_generator.py +4 -7
- test_utils/s3/fixtures.py +7 -5
- tools/migrate/__init__.py +1 -1
- tools/migrate/__main__.py +16 -29
- tools/migrate/legacy_schemas.py +251 -190
- tools/migrate/migrate.py +193 -181
- tools/migrate/tests/conftest.py +1 -3
- tools/migrate/tests/test_migrate.py +36 -41
- tools/migrate/tests/test_migration_e2e.py +28 -29
- tools/migrate/tests/test_node_migrations.py +50 -20
- flowfile/web/static/assets/CloudConnectionManager-2dfdce2f.css +0 -86
- flowfile/web/static/assets/ContextMenu-23e909da.js +0 -41
- flowfile/web/static/assets/ContextMenu-4c74eef1.css +0 -26
- flowfile/web/static/assets/ContextMenu-63cfa99b.css +0 -26
- flowfile/web/static/assets/ContextMenu-70ae0c79.js +0 -41
- flowfile/web/static/assets/ContextMenu-c13f91d0.css +0 -26
- flowfile/web/static/assets/ContextMenu-f149cf7c.js +0 -41
- flowfile/web/static/assets/CustomNode-74a37f74.css +0 -32
- flowfile/web/static/assets/DatabaseManager-30fa27e5.css +0 -64
- flowfile/web/static/assets/Filter-9b6d08db.js +0 -164
- flowfile/web/static/assets/Filter-f62091b3.css +0 -20
- flowfile/web/static/assets/GroupBy-b9505323.css +0 -51
- flowfile/web/static/assets/ManualInput-3246a08d.css +0 -96
- flowfile/web/static/assets/Output-283fe388.css +0 -37
- flowfile/web/static/assets/PivotValidation-891ddfb0.css +0 -13
- flowfile/web/static/assets/PivotValidation-c46cd420.css +0 -13
- flowfile/web/static/assets/SQLQueryComponent-36cef432.css +0 -27
- flowfile/web/static/assets/SliderInput-b8fb6a8c.css +0 -4
- flowfile/web/static/assets/Sort-3643d625.css +0 -51
- flowfile/web/static/assets/Unique-f9fb0809.css +0 -51
- flowfile/web/static/assets/UnpivotValidation-0d240eeb.css +0 -13
- flowfile/web/static/assets/nodeInput-5d0d6b79.js +0 -41
- flowfile/web/static/assets/outputCsv-9cc59e0b.css +0 -2499
- flowfile/web/static/assets/outputParquet-cf8cf3f2.css +0 -4
- flowfile/web/static/assets/secretApi-68435402.js +0 -46
- flowfile/web/static/assets/vue-codemirror-bccfde04.css +0 -32
- flowfile-0.5.1.dist-info/RECORD +0 -388
- {flowfile-0.5.1.dist-info → flowfile-0.5.4.dist-info}/WHEEL +0 -0
- {flowfile-0.5.1.dist-info → flowfile-0.5.4.dist-info}/entry_points.txt +0 -0
- {flowfile-0.5.1.dist-info → flowfile-0.5.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
1
|
+
import { d as defineComponent, B as computed, c as createElementBlock, a as createBaseVNode, o as openBlock, g as _export_sfc } from "./index-387a6f18.js";
|
|
2
2
|
const _hoisted_1 = { class: "doc-wrapper" };
|
|
3
3
|
const _hoisted_2 = ["src"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "
|
|
5
|
+
__name: "DocumentationView",
|
|
6
6
|
setup(__props) {
|
|
7
7
|
const docsUrl = computed(
|
|
8
8
|
() => "https://edwardvaneechoud.github.io/Flowfile/"
|
|
@@ -26,8 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
const
|
|
30
|
-
const
|
|
29
|
+
const DocumentationView_vue_vue_type_style_index_0_scoped_93c4b98d_lang = "";
|
|
30
|
+
const DocumentationView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93c4b98d"]]);
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
DocumentationView as default
|
|
33
33
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
.doc-wrapper[data-v-
|
|
2
|
+
.doc-wrapper[data-v-93c4b98d] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 99vh;
|
|
5
5
|
}
|
|
6
|
-
.iframe-docs[data-v-
|
|
6
|
+
.iframe-docs[data-v-93c4b98d] {
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
9
9
|
border: none;
|
|
10
10
|
}
|
|
11
|
-
.flowfile-button[data-v-
|
|
11
|
+
.flowfile-button[data-v-93c4b98d] {
|
|
12
12
|
background-color: var(--color-primary);
|
|
13
13
|
color: var(--color-background);
|
|
14
14
|
border: none;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
bottom: 20px; /* Distance from bottom */
|
|
25
25
|
right: 20px; /* Distance from right */
|
|
26
26
|
z-index: 1000; /* Make sure it’s above the iframe */
|
|
27
|
-
box-shadow:
|
|
27
|
+
box-shadow: var(--shadow-lg);
|
|
28
28
|
transition:
|
|
29
29
|
background-color 0.3s ease,
|
|
30
30
|
transform 0.2s ease,
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* Hover & Active effects */
|
|
35
|
-
.flowfile-button[data-v-
|
|
35
|
+
.flowfile-button[data-v-93c4b98d]:hover {
|
|
36
36
|
background-color: var(--color-primary-dark);
|
|
37
37
|
transform: scale(1.1);
|
|
38
38
|
}
|
|
39
|
-
.flowfile-button[data-v-
|
|
39
|
+
.flowfile-button[data-v-93c4b98d]:active {
|
|
40
40
|
transform: scale(1);
|
|
41
41
|
}
|
|
42
|
-
.flowfile-button[data-v-
|
|
42
|
+
.flowfile-button[data-v-93c4b98d]:focus {
|
|
43
43
|
outline: none;
|
|
44
|
-
box-shadow: 0 0 0 3px
|
|
44
|
+
box-shadow: 0 0 0 3px var(--color-focus-ring-primary);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/* Adjust icon size */
|
|
48
|
-
.flowfile-button i[data-v-
|
|
48
|
+
.flowfile-button i[data-v-93c4b98d] {
|
|
49
49
|
font-size: 20px;
|
|
50
50
|
}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
|
|
2
|
-
.explore-data-container[data-v-
|
|
2
|
+
.explore-data-container[data-v-b6998854] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
+
background-color: var(--color-background-primary);
|
|
6
7
|
}
|
|
7
|
-
.graphic-walker-wrapper[data-v-
|
|
8
|
+
.graphic-walker-wrapper[data-v-b6998854] {
|
|
8
9
|
flex-grow: 1; /* Allow wrapper to fill space */
|
|
9
10
|
min-height: 300px; /* Ensure minimum size */
|
|
10
11
|
overflow: hidden; /* Prevent content spillover if needed */
|
|
11
12
|
}
|
|
12
13
|
/* Ensure the child fills the wrapper if necessary */
|
|
13
|
-
[data-v-
|
|
14
|
+
[data-v-b6998854] .graphic-walker-wrapper > div {
|
|
14
15
|
height: 100%;
|
|
15
16
|
}
|
|
16
|
-
.error-display[data-v-
|
|
17
|
+
.error-display[data-v-b6998854] {
|
|
17
18
|
padding: 1rem;
|
|
18
|
-
color:
|
|
19
|
-
border: 1px solid
|
|
20
|
-
background-color:
|
|
19
|
+
color: var(--color-danger);
|
|
20
|
+
border: 1px solid var(--color-danger-light);
|
|
21
|
+
background-color: var(--color-danger-light);
|
|
21
22
|
margin: 1rem;
|
|
22
23
|
border-radius: 4px;
|
|
23
24
|
}
|
|
24
|
-
.empty-data-message[data-v-
|
|
25
|
-
.fallback-message[data-v-
|
|
25
|
+
.empty-data-message[data-v-b6998854],
|
|
26
|
+
.fallback-message[data-v-b6998854] {
|
|
26
27
|
padding: 1rem;
|
|
27
28
|
text-align: center;
|
|
28
|
-
color:
|
|
29
|
+
color: var(--color-text-secondary);
|
|
29
30
|
}
|
|
30
31
|
/* Add styles for the button if needed */
|
|
31
|
-
button[data-v-
|
|
32
|
+
button[data-v-b6998854] {
|
|
32
33
|
margin: 0.5rem 1rem;
|
|
33
34
|
padding: 0.5rem 1rem;
|
|
34
35
|
cursor: pointer;
|
|
35
36
|
}
|
|
36
|
-
button[data-v-
|
|
37
|
+
button[data-v-b6998854]:disabled {
|
|
37
38
|
cursor: not-allowed;
|
|
38
39
|
opacity: 0.6;
|
|
39
40
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { C as CodeLoader } from "./vue-content-loader.es-
|
|
2
|
-
import VueGraphicWalker from "./VueGraphicWalker-
|
|
3
|
-
import {
|
|
4
|
-
import { u as useNodeStore } from "./
|
|
5
|
-
import { u as useItemStore } from "./
|
|
1
|
+
import { C as CodeLoader } from "./vue-content-loader.es-4469c8ff.js";
|
|
2
|
+
import VueGraphicWalker from "./VueGraphicWalker-d9ab70a3.js";
|
|
3
|
+
import { k as axios, d as defineComponent, r as ref, av as useThemeStore, B as computed, o as openBlock, c as createElementBlock, y as createBlock, x as unref, a as createBaseVNode, t as toDisplayString, g as _export_sfc } from "./index-387a6f18.js";
|
|
4
|
+
import { u as useNodeStore } from "./PopOver-862d7e28.js";
|
|
5
|
+
import { u as useItemStore } from "./DesignerView-f64749fb.js";
|
|
6
|
+
import "./index-f0a6e5a5.js";
|
|
7
|
+
import "./vue-codemirror.esm-31ba0e0b.js";
|
|
6
8
|
const fetchGraphicWalkerData = async (flowId, nodeId) => {
|
|
7
9
|
var _a, _b;
|
|
8
10
|
console.log(`[GraphicWalker] Fetching data for flow ${flowId}, node ${nodeId}`);
|
|
@@ -60,7 +62,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
62
|
const nodeStore = useNodeStore();
|
|
61
63
|
const globalNodeId = ref(-1);
|
|
62
64
|
const windowStore = useItemStore();
|
|
65
|
+
const themeStore = useThemeStore();
|
|
63
66
|
const vueGraphicWalkerRef = ref(null);
|
|
67
|
+
const graphicWalkerAppearance = computed(() => {
|
|
68
|
+
const theme = themeStore.mode;
|
|
69
|
+
if (theme === "system")
|
|
70
|
+
return "media";
|
|
71
|
+
return theme;
|
|
72
|
+
});
|
|
64
73
|
const canDisplayVisualization = computed(() => !isLoading.value && !errorMessage.value);
|
|
65
74
|
const loadNodeData = async (nodeId) => {
|
|
66
75
|
var _a, _b;
|
|
@@ -175,18 +184,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
184
|
key: 0,
|
|
176
185
|
ref_key: "vueGraphicWalkerRef",
|
|
177
186
|
ref: vueGraphicWalkerRef,
|
|
178
|
-
appearance:
|
|
187
|
+
appearance: graphicWalkerAppearance.value,
|
|
179
188
|
data: data.value,
|
|
180
189
|
fields: fields.value,
|
|
181
190
|
"spec-list": chartList.value
|
|
182
|
-
}, null, 8, ["data", "fields", "spec-list"])) : (openBlock(), createElementBlock("div", _hoisted_4, " Data loaded, but the dataset appears to be empty or lacks defined fields. "))
|
|
191
|
+
}, null, 8, ["appearance", "data", "fields", "spec-list"])) : (openBlock(), createElementBlock("div", _hoisted_4, " Data loaded, but the dataset appears to be empty or lacks defined fields. "))
|
|
183
192
|
])) : (openBlock(), createElementBlock("div", _hoisted_5, "Please load data for the node."))
|
|
184
193
|
]);
|
|
185
194
|
};
|
|
186
195
|
}
|
|
187
196
|
});
|
|
188
|
-
const
|
|
189
|
-
const ExploreData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
197
|
+
const ExploreData_vue_vue_type_style_index_0_scoped_b6998854_lang = "";
|
|
198
|
+
const ExploreData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b6998854"]]);
|
|
190
199
|
export {
|
|
191
200
|
ExploreData as default
|
|
192
201
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { C as CodeLoader } from "./vue-content-loader.es-
|
|
2
|
-
import { u as useNodeStore } from "./
|
|
3
|
-
import { G as
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
1
|
+
import { C as CodeLoader } from "./vue-content-loader.es-4469c8ff.js";
|
|
2
|
+
import { u as useNodeStore } from "./PopOver-862d7e28.js";
|
|
3
|
+
import { d as defineComponent, r as ref, ab as watchEffect, m as resolveComponent, o as openBlock, c as createElementBlock, p as createVNode, q as withCtx, a as createBaseVNode, G as Fragment, H as renderList, e as createCommentVNode, y as createBlock, x as unref, g as _export_sfc } from "./index-387a6f18.js";
|
|
4
|
+
import { G as GenericNodeSettings } from "./genericNodeSettings-14eac1c3.js";
|
|
5
|
+
import "./DesignerView-f64749fb.js";
|
|
6
|
+
import "./index-f0a6e5a5.js";
|
|
7
|
+
import "./vue-codemirror.esm-31ba0e0b.js";
|
|
6
8
|
function get_template_source_type(type, options) {
|
|
7
9
|
switch (type) {
|
|
8
10
|
case "SAMPLE_USERS":
|
|
@@ -134,8 +136,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
134
136
|
};
|
|
135
137
|
}
|
|
136
138
|
});
|
|
137
|
-
const
|
|
138
|
-
const ExternalSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
139
|
+
const ExternalSource_vue_vue_type_style_index_0_scoped_c95ed46a_lang = "";
|
|
140
|
+
const ExternalSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c95ed46a"]]);
|
|
139
141
|
export {
|
|
140
142
|
ExternalSource as default
|
|
141
143
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.context-menu[data-v-
|
|
2
|
+
.context-menu[data-v-c95ed46a] {
|
|
3
3
|
position: fixed;
|
|
4
4
|
z-index: 1000;
|
|
5
5
|
border: 1px solid #ccc;
|
|
6
|
-
background-color:
|
|
6
|
+
background-color: var(--color-background-primary);
|
|
7
7
|
padding: 8px;
|
|
8
8
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
9
9
|
border-radius: 4px;
|
|
10
10
|
user-select: none;
|
|
11
11
|
}
|
|
12
|
-
.context-menu button[data-v-
|
|
12
|
+
.context-menu button[data-v-c95ed46a] {
|
|
13
13
|
display: block;
|
|
14
14
|
background: none;
|
|
15
15
|
border: none;
|
|
@@ -19,41 +19,41 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
z-index: 100;
|
|
21
21
|
}
|
|
22
|
-
.context-menu button[data-v-
|
|
22
|
+
.context-menu button[data-v-c95ed46a]:hover {
|
|
23
23
|
background-color: #f0f0f0;
|
|
24
24
|
}
|
|
25
|
-
.table-wrapper[data-v-
|
|
25
|
+
.table-wrapper[data-v-c95ed46a] {
|
|
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-
|
|
32
|
+
.context-menu[data-v-c95ed46a] {
|
|
33
33
|
position: fixed;
|
|
34
34
|
z-index: 1000;
|
|
35
35
|
border: 1px solid #ccc;
|
|
36
|
-
background-color:
|
|
36
|
+
background-color: var(--color-background-primary);
|
|
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-
|
|
40
|
+
.context-menu ul[data-v-c95ed46a] {
|
|
41
41
|
list-style: none;
|
|
42
42
|
padding: 0;
|
|
43
43
|
margin: 0;
|
|
44
44
|
}
|
|
45
|
-
.context-menu li[data-v-
|
|
45
|
+
.context-menu li[data-v-c95ed46a] {
|
|
46
46
|
padding: 8px 16px;
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
}
|
|
49
|
-
.context-menu li[data-v-
|
|
50
|
-
background-color:
|
|
49
|
+
.context-menu li[data-v-c95ed46a]:hover {
|
|
50
|
+
background-color: var(--color-background-secondary);
|
|
51
51
|
}
|
|
52
|
-
.file-upload-wrapper[data-v-
|
|
52
|
+
.file-upload-wrapper[data-v-c95ed46a] {
|
|
53
53
|
position: relative;
|
|
54
54
|
width: 100%;
|
|
55
55
|
}
|
|
56
|
-
.file-upload-input[data-v-
|
|
56
|
+
.file-upload-input[data-v-c95ed46a] {
|
|
57
57
|
width: 100%;
|
|
58
58
|
height: 40px;
|
|
59
59
|
opacity: 0;
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
z-index: 1;
|
|
64
64
|
cursor: pointer;
|
|
65
65
|
}
|
|
66
|
-
.file-upload-label[data-v-
|
|
66
|
+
.file-upload-label[data-v-c95ed46a] {
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: flex-start;
|
|
70
|
-
background-color:
|
|
70
|
+
background-color: var(--color-background-secondary);
|
|
71
71
|
border: 1px solid #ddd;
|
|
72
72
|
border-radius: 4px;
|
|
73
73
|
padding: 10px 15px;
|
|
74
|
-
color:
|
|
74
|
+
color: var(--color-text-primary);
|
|
75
75
|
font-size: 16px;
|
|
76
76
|
font-weight: 500;
|
|
77
77
|
text-align: left;
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
cursor: pointer;
|
|
80
80
|
transition: background-color 0.3s ease;
|
|
81
81
|
}
|
|
82
|
-
.file-upload-label[data-v-
|
|
83
|
-
background-color:
|
|
82
|
+
.file-upload-label[data-v-c95ed46a]:hover {
|
|
83
|
+
background-color: var(--color-background-secondary);
|
|
84
84
|
}
|
|
85
|
-
.file-icon[data-v-
|
|
85
|
+
.file-icon[data-v-c95ed46a] {
|
|
86
86
|
margin-right: 10px;
|
|
87
87
|
font-size: 20px; /* Slightly larger icon for better visual balance */
|
|
88
88
|
}
|
|
89
|
-
.file-label-text[data-v-
|
|
89
|
+
.file-label-text[data-v-c95ed46a] {
|
|
90
90
|
flex-grow: 1; /* Ensures text takes the available space */
|
|
91
91
|
margin-left: 10px; /* Spacing between icon and text */
|
|
92
92
|
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { d as defineComponent, r as ref, B as computed, m as resolveComponent, o as openBlock, c as createElementBlock, p as createVNode, q as withCtx, a as createBaseVNode, f as createTextVNode, e as createCommentVNode, x as unref, i as withDirectives, v as vModelText, t as toDisplayString, y as createBlock, g as _export_sfc } from "./index-387a6f18.js";
|
|
2
|
+
import { C as CodeLoader } from "./vue-content-loader.es-4469c8ff.js";
|
|
3
|
+
import { C as ColumnSelector } from "./dropDown-2798a109.js";
|
|
4
|
+
import { u as useNodeStore } from "./PopOver-862d7e28.js";
|
|
5
|
+
import mainEditorRef from "./fullEditor-cf7d7d93.js";
|
|
6
|
+
import { G as GenericNodeSettings } from "./genericNodeSettings-14eac1c3.js";
|
|
7
|
+
import { F as FILTER_OPERATOR_LABELS, g as getFilterOperatorLabel, O as OPERATORS_NO_VALUE, a as OPERATORS_WITH_VALUE2 } from "./node.types-2c15bb7e.js";
|
|
8
|
+
import "./vue-codemirror.esm-31ba0e0b.js";
|
|
9
|
+
import "./DesignerView-f64749fb.js";
|
|
10
|
+
import "./index-f0a6e5a5.js";
|
|
11
|
+
const _hoisted_1 = { key: 0 };
|
|
12
|
+
const _hoisted_2 = { class: "listbox-wrapper" };
|
|
13
|
+
const _hoisted_3 = { style: { "border-radius": "20px" } };
|
|
14
|
+
const _hoisted_4 = { key: 0 };
|
|
15
|
+
const _hoisted_5 = { key: 1 };
|
|
16
|
+
const _hoisted_6 = { class: "filter-section" };
|
|
17
|
+
const _hoisted_7 = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "filter-row"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_8 = { class: "filter-field" };
|
|
22
|
+
const _hoisted_9 = { class: "filter-field" };
|
|
23
|
+
const _hoisted_10 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "filter-field"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_11 = ["placeholder"];
|
|
28
|
+
const _hoisted_12 = {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: "filter-field"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_13 = {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: "help-text"
|
|
35
|
+
};
|
|
36
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
|
+
__name: "Filter",
|
|
38
|
+
setup(__props, { expose: __expose }) {
|
|
39
|
+
const editorString = ref("");
|
|
40
|
+
const isLoaded = ref(false);
|
|
41
|
+
const isAdvancedFilter = ref(false);
|
|
42
|
+
const nodeStore = useNodeStore();
|
|
43
|
+
const nodeFilter = ref(null);
|
|
44
|
+
const nodeData = ref(null);
|
|
45
|
+
const editorChild = ref(null);
|
|
46
|
+
const operatorLabels = Object.keys(FILTER_OPERATOR_LABELS);
|
|
47
|
+
const currentOperator = computed(() => {
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
const op = (_c = (_b = (_a = nodeFilter.value) == null ? void 0 : _a.filter_input) == null ? void 0 : _b.basic_filter) == null ? void 0 : _c.operator;
|
|
50
|
+
if (!op)
|
|
51
|
+
return "equals";
|
|
52
|
+
if (typeof op === "string") {
|
|
53
|
+
if (Object.values(FILTER_OPERATOR_LABELS).includes(op)) {
|
|
54
|
+
return op;
|
|
55
|
+
}
|
|
56
|
+
return convertLegacyOperator(op);
|
|
57
|
+
}
|
|
58
|
+
return op;
|
|
59
|
+
});
|
|
60
|
+
const operatorDisplayValue = computed({
|
|
61
|
+
get: () => {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
return getOperatorLabel((_c = (_b = (_a = nodeFilter.value) == null ? void 0 : _a.filter_input) == null ? void 0 : _b.basic_filter) == null ? void 0 : _c.operator);
|
|
64
|
+
},
|
|
65
|
+
set: (val) => handleOperatorChange(val)
|
|
66
|
+
});
|
|
67
|
+
function convertLegacyOperator(symbol) {
|
|
68
|
+
const legacyMapping = {
|
|
69
|
+
"=": "equals",
|
|
70
|
+
"==": "equals",
|
|
71
|
+
"!=": "not_equals",
|
|
72
|
+
"<>": "not_equals",
|
|
73
|
+
">": "greater_than",
|
|
74
|
+
">=": "greater_than_or_equals",
|
|
75
|
+
"<": "less_than",
|
|
76
|
+
"<=": "less_than_or_equals",
|
|
77
|
+
contains: "contains",
|
|
78
|
+
not_contains: "not_contains",
|
|
79
|
+
starts_with: "starts_with",
|
|
80
|
+
ends_with: "ends_with",
|
|
81
|
+
is_null: "is_null",
|
|
82
|
+
is_not_null: "is_not_null",
|
|
83
|
+
in: "in",
|
|
84
|
+
not_in: "not_in",
|
|
85
|
+
between: "between",
|
|
86
|
+
not_equals: "not_equals",
|
|
87
|
+
greater_than: "greater_than",
|
|
88
|
+
greater_than_or_equals: "greater_than_or_equals",
|
|
89
|
+
less_than: "less_than",
|
|
90
|
+
less_than_or_equals: "less_than_or_equals"
|
|
91
|
+
};
|
|
92
|
+
return legacyMapping[symbol] || "equals";
|
|
93
|
+
}
|
|
94
|
+
function getOperatorLabel(operator) {
|
|
95
|
+
if (!operator)
|
|
96
|
+
return "Equals";
|
|
97
|
+
const op = typeof operator === "string" ? convertLegacyOperator(operator) : operator;
|
|
98
|
+
return getFilterOperatorLabel(op);
|
|
99
|
+
}
|
|
100
|
+
const showValueInput = computed(() => {
|
|
101
|
+
return !OPERATORS_NO_VALUE.includes(currentOperator.value);
|
|
102
|
+
});
|
|
103
|
+
const showValue2Input = computed(() => {
|
|
104
|
+
return OPERATORS_WITH_VALUE2.includes(currentOperator.value);
|
|
105
|
+
});
|
|
106
|
+
const valuePlaceholder = computed(() => {
|
|
107
|
+
switch (currentOperator.value) {
|
|
108
|
+
case "in":
|
|
109
|
+
case "not_in":
|
|
110
|
+
return "value1, value2, value3";
|
|
111
|
+
case "between":
|
|
112
|
+
return "Start value";
|
|
113
|
+
default:
|
|
114
|
+
return "Enter value";
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
const operatorHelpText = computed(() => {
|
|
118
|
+
switch (currentOperator.value) {
|
|
119
|
+
case "in":
|
|
120
|
+
case "not_in":
|
|
121
|
+
return "Enter comma-separated values";
|
|
122
|
+
case "between":
|
|
123
|
+
return "Enter the range boundaries (inclusive)";
|
|
124
|
+
case "is_null":
|
|
125
|
+
return "Filters rows where the column value is null";
|
|
126
|
+
case "is_not_null":
|
|
127
|
+
return "Filters rows where the column value is not null";
|
|
128
|
+
default:
|
|
129
|
+
return "";
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const handleFieldChange = (newValue) => {
|
|
133
|
+
var _a;
|
|
134
|
+
if ((_a = nodeFilter.value) == null ? void 0 : _a.filter_input.basic_filter) {
|
|
135
|
+
nodeFilter.value.filter_input.basic_filter.field = newValue;
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const handleOperatorChange = (newLabel) => {
|
|
139
|
+
var _a;
|
|
140
|
+
if ((_a = nodeFilter.value) == null ? void 0 : _a.filter_input.basic_filter) {
|
|
141
|
+
const operator = FILTER_OPERATOR_LABELS[newLabel];
|
|
142
|
+
if (operator) {
|
|
143
|
+
nodeFilter.value.filter_input.basic_filter.operator = operator;
|
|
144
|
+
if (!OPERATORS_WITH_VALUE2.includes(operator)) {
|
|
145
|
+
nodeFilter.value.filter_input.basic_filter.value2 = void 0;
|
|
146
|
+
}
|
|
147
|
+
if (OPERATORS_NO_VALUE.includes(operator)) {
|
|
148
|
+
nodeFilter.value.filter_input.basic_filter.value = "";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const loadNodeData = async (nodeId) => {
|
|
154
|
+
var _a, _b, _c, _d, _e;
|
|
155
|
+
nodeData.value = await nodeStore.getNodeData(nodeId, false);
|
|
156
|
+
if (nodeData.value) {
|
|
157
|
+
nodeFilter.value = nodeData.value.setting_input;
|
|
158
|
+
if ((_a = nodeFilter.value) == null ? void 0 : _a.filter_input.advanced_filter) {
|
|
159
|
+
editorString.value = (_b = nodeFilter.value) == null ? void 0 : _b.filter_input.advanced_filter;
|
|
160
|
+
}
|
|
161
|
+
const mode = ((_c = nodeFilter.value) == null ? void 0 : _c.filter_input.mode) || ((_d = nodeFilter.value) == null ? void 0 : _d.filter_input.filter_type);
|
|
162
|
+
isAdvancedFilter.value = mode === "advanced";
|
|
163
|
+
if ((_e = nodeFilter.value) == null ? void 0 : _e.filter_input.basic_filter) {
|
|
164
|
+
const bf = nodeFilter.value.filter_input.basic_filter;
|
|
165
|
+
if (bf.filter_type && !bf.operator) {
|
|
166
|
+
bf.operator = convertLegacyOperator(bf.filter_type);
|
|
167
|
+
}
|
|
168
|
+
if (bf.filter_value && !bf.value) {
|
|
169
|
+
bf.value = bf.filter_value;
|
|
170
|
+
}
|
|
171
|
+
if (!bf.operator) {
|
|
172
|
+
bf.operator = "equals";
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
isLoaded.value = true;
|
|
177
|
+
};
|
|
178
|
+
const updateAdvancedFilter = () => {
|
|
179
|
+
if (nodeFilter.value) {
|
|
180
|
+
nodeFilter.value.filter_input.advanced_filter = nodeStore.inputCode;
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
const pushNodeData = async () => {
|
|
184
|
+
if (nodeFilter.value) {
|
|
185
|
+
if (isAdvancedFilter.value) {
|
|
186
|
+
updateAdvancedFilter();
|
|
187
|
+
nodeFilter.value.filter_input.mode = "advanced";
|
|
188
|
+
nodeFilter.value.filter_input.filter_type = "advanced";
|
|
189
|
+
} else {
|
|
190
|
+
nodeFilter.value.filter_input.mode = "basic";
|
|
191
|
+
nodeFilter.value.filter_input.filter_type = "basic";
|
|
192
|
+
}
|
|
193
|
+
nodeStore.updateSettings(nodeFilter);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
__expose({ loadNodeData, pushNodeData });
|
|
197
|
+
return (_ctx, _cache) => {
|
|
198
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
199
|
+
return isLoaded.value && nodeFilter.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
200
|
+
createVNode(GenericNodeSettings, {
|
|
201
|
+
modelValue: nodeFilter.value,
|
|
202
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => nodeFilter.value = $event)
|
|
203
|
+
}, {
|
|
204
|
+
default: withCtx(() => {
|
|
205
|
+
var _a, _b, _c;
|
|
206
|
+
return [
|
|
207
|
+
createBaseVNode("div", _hoisted_2, [
|
|
208
|
+
createBaseVNode("div", _hoisted_3, [
|
|
209
|
+
createVNode(_component_el_switch, {
|
|
210
|
+
modelValue: isAdvancedFilter.value,
|
|
211
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isAdvancedFilter.value = $event),
|
|
212
|
+
class: "mb-2",
|
|
213
|
+
"active-text": "Advanced filter options",
|
|
214
|
+
"inactive-text": "Basic filter"
|
|
215
|
+
}, null, 8, ["modelValue"])
|
|
216
|
+
]),
|
|
217
|
+
isAdvancedFilter.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
218
|
+
_cache[8] || (_cache[8] = createTextVNode(" Advanced filter ")),
|
|
219
|
+
createVNode(mainEditorRef, {
|
|
220
|
+
ref_key: "editorChild",
|
|
221
|
+
ref: editorChild,
|
|
222
|
+
"editor-string": editorString.value
|
|
223
|
+
}, null, 8, ["editor-string"])
|
|
224
|
+
])) : createCommentVNode("", true),
|
|
225
|
+
!isAdvancedFilter.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
226
|
+
createBaseVNode("div", _hoisted_6, [
|
|
227
|
+
((_a = nodeFilter.value) == null ? void 0 : _a.filter_input.basic_filter) ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
228
|
+
createBaseVNode("div", _hoisted_8, [
|
|
229
|
+
_cache[9] || (_cache[9] = createBaseVNode("label", { class: "filter-label" }, "Column", -1)),
|
|
230
|
+
createVNode(ColumnSelector, {
|
|
231
|
+
modelValue: nodeFilter.value.filter_input.basic_filter.field,
|
|
232
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => nodeFilter.value.filter_input.basic_filter.field = $event),
|
|
233
|
+
value: nodeFilter.value.filter_input.basic_filter.field,
|
|
234
|
+
"column-options": (_c = (_b = nodeData.value) == null ? void 0 : _b.main_input) == null ? void 0 : _c.columns,
|
|
235
|
+
"onUpdate:value": _cache[2] || (_cache[2] = (value) => handleFieldChange(value))
|
|
236
|
+
}, null, 8, ["modelValue", "value", "column-options"])
|
|
237
|
+
]),
|
|
238
|
+
createBaseVNode("div", _hoisted_9, [
|
|
239
|
+
_cache[10] || (_cache[10] = createBaseVNode("label", { class: "filter-label" }, "Operator", -1)),
|
|
240
|
+
createVNode(ColumnSelector, {
|
|
241
|
+
modelValue: operatorDisplayValue.value,
|
|
242
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => operatorDisplayValue.value = $event),
|
|
243
|
+
value: getOperatorLabel(nodeFilter.value.filter_input.basic_filter.operator),
|
|
244
|
+
"column-options": unref(operatorLabels),
|
|
245
|
+
"onUpdate:value": _cache[4] || (_cache[4] = (value) => handleOperatorChange(value))
|
|
246
|
+
}, null, 8, ["modelValue", "value", "column-options"])
|
|
247
|
+
]),
|
|
248
|
+
showValueInput.value ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
249
|
+
_cache[11] || (_cache[11] = createBaseVNode("label", { class: "filter-label" }, "Value", -1)),
|
|
250
|
+
withDirectives(createBaseVNode("input", {
|
|
251
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => nodeFilter.value.filter_input.basic_filter.value = $event),
|
|
252
|
+
type: "text",
|
|
253
|
+
class: "input-field",
|
|
254
|
+
placeholder: valuePlaceholder.value
|
|
255
|
+
}, null, 8, _hoisted_11), [
|
|
256
|
+
[vModelText, nodeFilter.value.filter_input.basic_filter.value]
|
|
257
|
+
])
|
|
258
|
+
])) : createCommentVNode("", true),
|
|
259
|
+
showValue2Input.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
260
|
+
_cache[12] || (_cache[12] = createBaseVNode("label", { class: "filter-label" }, "And", -1)),
|
|
261
|
+
withDirectives(createBaseVNode("input", {
|
|
262
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => nodeFilter.value.filter_input.basic_filter.value2 = $event),
|
|
263
|
+
type: "text",
|
|
264
|
+
class: "input-field",
|
|
265
|
+
placeholder: "End value"
|
|
266
|
+
}, null, 512), [
|
|
267
|
+
[vModelText, nodeFilter.value.filter_input.basic_filter.value2]
|
|
268
|
+
])
|
|
269
|
+
])) : createCommentVNode("", true)
|
|
270
|
+
])) : createCommentVNode("", true),
|
|
271
|
+
operatorHelpText.value ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(operatorHelpText.value), 1)) : createCommentVNode("", true)
|
|
272
|
+
])
|
|
273
|
+
])) : createCommentVNode("", true)
|
|
274
|
+
])
|
|
275
|
+
];
|
|
276
|
+
}),
|
|
277
|
+
_: 1
|
|
278
|
+
}, 8, ["modelValue"])
|
|
279
|
+
])) : (openBlock(), createBlock(unref(CodeLoader), { key: 1 }));
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
const Filter_vue_vue_type_style_index_0_scoped_f2933c98_lang = "";
|
|
284
|
+
const Filter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f2933c98"]]);
|
|
285
|
+
export {
|
|
286
|
+
Filter as default
|
|
287
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.filter-section[data-v-f2933c98] {
|
|
2
|
+
padding: 10px 0;
|
|
3
|
+
}
|
|
4
|
+
.filter-row[data-v-f2933c98] {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
gap: 12px;
|
|
8
|
+
align-items: flex-end;
|
|
9
|
+
}
|
|
10
|
+
.filter-field[data-v-f2933c98] {
|
|
11
|
+
flex: 1;
|
|
12
|
+
min-width: 150px;
|
|
13
|
+
max-width: 250px;
|
|
14
|
+
}
|
|
15
|
+
.filter-label[data-v-f2933c98] {
|
|
16
|
+
display: block;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
color: #606266;
|
|
20
|
+
margin-bottom: 4px;
|
|
21
|
+
}
|
|
22
|
+
.input-field[data-v-f2933c98] {
|
|
23
|
+
width: 100%;
|
|
24
|
+
padding: 8px 12px;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
line-height: 1.4;
|
|
27
|
+
border: 1px solid #dcdfe6;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
outline: none;
|
|
31
|
+
transition: border-color 0.2s, box-shadow 0.2s;
|
|
32
|
+
}
|
|
33
|
+
.input-field[data-v-f2933c98]:focus {
|
|
34
|
+
border-color: #409eff;
|
|
35
|
+
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
|
|
36
|
+
}
|
|
37
|
+
.input-field[data-v-f2933c98]::placeholder {
|
|
38
|
+
color: #c0c4cc;
|
|
39
|
+
}
|
|
40
|
+
.help-text[data-v-f2933c98] {
|
|
41
|
+
margin-top: 8px;
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
color: #909399;
|
|
44
|
+
font-style: italic;
|
|
45
|
+
}
|
|
46
|
+
.x-flip[data-v-f2933c98] {
|
|
47
|
+
transform: scaleX(-100%);
|
|
48
|
+
}
|