ywana-core8 0.0.929 → 0.0.931

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.929",
3
+ "version": "0.0.931",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -16,8 +16,12 @@
16
16
  background-color: var(--paper-color);
17
17
  }
18
18
 
19
+ .task-manager.minimized>main {
20
+ display: none !important;
21
+ }
19
22
 
20
23
  .linear-progress>progress {
24
+ appearance: none;
21
25
  -webkit-appearance: none;
22
26
  }
23
27
 
@@ -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="task-manager">
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} />
@@ -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">