@fluxo-dev/shell-workflow 26.1.2 → 26.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +16845 -17852
- package/package.json +4 -4
- package/src/lib/etl/browse/etl-browse.d.ts +1 -3
- package/src/lib/etl/utils/config-field-utils.d.ts +26 -0
- package/src/lib/etl/utils/index.d.ts +1 -0
- package/src/lib/workflow/browse/workflow-browse.d.ts +1 -3
- package/src/lib/workflow/designer-v2/hooks/useWorkflowActions.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/shell-workflow",
|
|
3
|
-
"version": "26.1.
|
|
3
|
+
"version": "26.1.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^18.3.1",
|
|
6
6
|
"@mantine/core": "^7.12.2",
|
|
7
7
|
"react-router-dom": "^6.11.2",
|
|
8
8
|
"react-redux": "^8.0.5",
|
|
9
9
|
"@reduxjs/toolkit": "^1.9.1",
|
|
10
|
-
"@fluxo-dev/api-client-base": "^26.1.
|
|
11
|
-
"@fluxo-dev/state": "^26.1.
|
|
12
|
-
"@fluxo-dev/ui-components": "^26.1.
|
|
10
|
+
"@fluxo-dev/api-client-base": "^26.1.3",
|
|
11
|
+
"@fluxo-dev/state": "^26.1.3",
|
|
12
|
+
"@fluxo-dev/ui-components": "^26.1.3"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.esm.js",
|
|
15
15
|
"type": "module",
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ShellPageRef } from '@fluxo-dev/ui-components';
|
|
3
3
|
export interface EtlBrowseProps {
|
|
4
|
-
onNewPipeline: () => void;
|
|
5
|
-
onEditPipeline: (pipelineId: string) => void;
|
|
6
4
|
shellPageRef: React.RefObject<ShellPageRef>;
|
|
7
5
|
}
|
|
8
|
-
export declare function EtlBrowse({
|
|
6
|
+
export declare function EtlBrowse({ shellPageRef }: EtlBrowseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BlockConfigField } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Determina se un campo deve essere visibile in base alla condizione visibleWhen.
|
|
4
|
+
* Se visibleWhen non è definito, il campo è sempre visibile.
|
|
5
|
+
*
|
|
6
|
+
* @param field - Il campo da valutare
|
|
7
|
+
* @param config - La configurazione corrente del blocco
|
|
8
|
+
* @returns true se il campo deve essere visibile, false altrimenti
|
|
9
|
+
*/
|
|
10
|
+
export declare function isFieldVisible(field: BlockConfigField, config: Record<string, unknown>): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Filtra i campi restituendo solo quelli visibili in base alla configurazione corrente.
|
|
13
|
+
*
|
|
14
|
+
* @param fields - Array di campi da filtrare
|
|
15
|
+
* @param config - La configurazione corrente del blocco
|
|
16
|
+
* @returns Array di campi visibili
|
|
17
|
+
*/
|
|
18
|
+
export declare function getVisibleFields(fields: BlockConfigField[], config: Record<string, unknown>): BlockConfigField[];
|
|
19
|
+
/**
|
|
20
|
+
* Filtra i campi obbligatori restituendo solo quelli visibili in base alla configurazione corrente.
|
|
21
|
+
*
|
|
22
|
+
* @param fields - Array di campi da filtrare
|
|
23
|
+
* @param config - La configurazione corrente del blocco
|
|
24
|
+
* @returns Array di campi obbligatori e visibili
|
|
25
|
+
*/
|
|
26
|
+
export declare function getVisibleRequiredFields(fields: BlockConfigField[], config: Record<string, unknown>): BlockConfigField[];
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ShellPageRef } from '@fluxo-dev/ui-components';
|
|
3
3
|
export interface WorkflowBrowseProps {
|
|
4
|
-
onNewWorkflow: () => void;
|
|
5
|
-
onEditWorkflow: (workflowId: number) => void;
|
|
6
4
|
shellPageRef: React.RefObject<ShellPageRef>;
|
|
7
5
|
}
|
|
8
|
-
export declare function WorkflowBrowse({
|
|
6
|
+
export declare function WorkflowBrowse({ shellPageRef }: WorkflowBrowseProps): import("react/jsx-runtime").JSX.Element;
|