ywana-core8 0.0.928 → 0.0.930
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/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +16 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain2/DynamicForm.css +5 -0
- package/src/incubator/task.css +4 -0
- package/src/incubator/task.js +10 -2
- package/src/incubator/wizard.js +0 -1
package/package.json
CHANGED
package/src/incubator/task.css
CHANGED
package/src/incubator/task.js
CHANGED
@@ -163,6 +163,7 @@ export const TaskMonitor = (props) => {
|
|
163
163
|
const { title = "Task Monitor", filters = {}, editors, frequency = 5000 } = props
|
164
164
|
const context = useContext(TaskContext)
|
165
165
|
const [tasks = [], setTasks] = useState([])
|
166
|
+
cont [minimized, setMinimized] = useState(false)
|
166
167
|
|
167
168
|
useEffect(() => {
|
168
169
|
refresh()
|
@@ -220,10 +221,17 @@ export const TaskMonitor = (props) => {
|
|
220
221
|
})
|
221
222
|
}
|
222
223
|
|
224
|
+
function toggleView() {
|
225
|
+
setMinimized(!minimized)
|
226
|
+
}
|
227
|
+
|
228
|
+
const toggleIcon = () => minimized ? "maximize" : "minimize" //
|
229
|
+
const viewStyle = minimized ? "minimized" : "" //
|
230
|
+
|
223
231
|
return (
|
224
|
-
<div className=
|
232
|
+
<div className={`task-manager ${viewStyle}`}>
|
225
233
|
<Header icon="list" title={title} >
|
226
|
-
|
234
|
+
<Icon size="small" icon={toggleIcon} clickable action={toggleView} />
|
227
235
|
</Header>
|
228
236
|
<main>
|
229
237
|
<DataTable {...table} />
|
package/src/incubator/wizard.js
CHANGED
@@ -53,7 +53,6 @@ export const Wizard = (props) => {
|
|
53
53
|
const currentStep = React.cloneElement(steps[current], { ref: stepRef, onChange: validate, next: next })
|
54
54
|
const nextButton = current < steps.length - 1 ? <Button label="Siguiente" action={next} raised disabled={!valid}/> : <Button label="Finish" action={finish} disabled={!valid}/>
|
55
55
|
const prevButton = current > 0 ? <Button label="Atrás" action={prev} /> : null
|
56
|
-
|
57
56
|
return (
|
58
57
|
<WizardProvider form={form}>
|
59
58
|
<div className="wizard">
|