@topconsultnpm/sdkui-react 6.21.0-dev3.36 → 6.21.0-dev3.38
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.
|
@@ -51,6 +51,17 @@ const StyledFileManagerWrapper = styled.div `
|
|
|
51
51
|
display: inline-block;
|
|
52
52
|
z-index: 1;
|
|
53
53
|
}
|
|
54
|
+
/* Nodi foglia: nascondiamo il toggle (stato incoerente in DevExtreme) e riserviamo lo stesso spazio della freccia (16px expander + 8px gap = 24px). */
|
|
55
|
+
.dx-filemanager .dx-treeview-node-is-leaf
|
|
56
|
+
> .dx-treeview-item
|
|
57
|
+
> [class*="dx-treeview-toggle-item-visibility"] {
|
|
58
|
+
display: none !important;
|
|
59
|
+
}
|
|
60
|
+
.dx-filemanager .dx-treeview-node-is-leaf
|
|
61
|
+
> .dx-treeview-item
|
|
62
|
+
> .dx-treeview-item-content {
|
|
63
|
+
margin-inline-start: 24px;
|
|
64
|
+
}
|
|
54
65
|
`;
|
|
55
66
|
const TMAreaManager = (props = { selectionMode: 'multiple', isPathChooser: false }) => {
|
|
56
67
|
// State to store the instance of CustomFileSystemProvider. It is initialized once and used for managing file system operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// TMWizard.tsx
|
|
3
|
-
import React, { useState } from 'react';
|
|
3
|
+
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { ResultTypes } from '@topconsultnpm/sdk-ts';
|
|
6
6
|
import TMButton from '../base/TMButton';
|
|
@@ -40,9 +40,11 @@ const ControlsContainer = styled.div `
|
|
|
40
40
|
padding: 15px 20px;
|
|
41
41
|
border-top: 1px solid #eee;
|
|
42
42
|
`;
|
|
43
|
-
const TMWizard = ({ steps, validateOnlyCurrentStep = true, onClose, onFinish, initialData, title, description }) => {
|
|
44
|
-
const [currentStep, setCurrentStep] = useState(
|
|
43
|
+
const TMWizard = ({ steps, validateOnlyCurrentStep = true, onClose, onFinish, initialData, title, description, initialStep = 0 }) => {
|
|
44
|
+
const [currentStep, setCurrentStep] = useState(initialStep);
|
|
45
45
|
const [formData, setFormData] = useState(initialData);
|
|
46
|
+
useEffect(() => { setCurrentStep(initialStep); }, [initialStep]);
|
|
47
|
+
useEffect(() => { setFormData(initialData); }, [initialData]);
|
|
46
48
|
const stepValidationErrors = steps.map((step, index) => {
|
|
47
49
|
if (validateOnlyCurrentStep) {
|
|
48
50
|
if (index <= currentStep) {
|