2021-01-14 23:24:55 +00:00
|
|
|
import { estilosGlobales } from "../Estilos";
|
|
|
|
import { StyleSheet, css } from "aphrodite";
|
2021-01-15 00:49:21 +00:00
|
|
|
import { Tabla } from "./Tabla";
|
2021-01-15 13:34:24 +00:00
|
|
|
import { mostrarDescansos, setMostrarDescansos } from "../Store";
|
2021-03-03 14:56:22 +00:00
|
|
|
import { EstadoLayout } from "./ContenedorHorarios";
|
|
|
|
import { Switch, Match } from "solid-js";
|
2021-01-14 23:24:55 +00:00
|
|
|
|
2021-03-03 14:56:22 +00:00
|
|
|
export function MiHorario(props: { estadoLayout: EstadoLayout }) {
|
2021-01-14 23:24:55 +00:00
|
|
|
const e = StyleSheet.create({
|
2021-01-15 13:34:24 +00:00
|
|
|
horario: {},
|
|
|
|
boton: {
|
|
|
|
textDecoration: "none",
|
|
|
|
// paddingRight: "0.5rem",
|
|
|
|
"::before": {
|
|
|
|
fontSize: "1rem",
|
|
|
|
// transform: "translateY(0.2rem)",
|
|
|
|
textDecoration: "none"
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 23:24:55 +00:00
|
|
|
});
|
|
|
|
|
2021-03-03 14:56:22 +00:00
|
|
|
const iconoBoton = () => props.estadoLayout === "Normal" ? "ph-arrows-in" : "ph-arrows-out";
|
|
|
|
|
2021-01-15 13:34:24 +00:00
|
|
|
const claseBotonMostrarDescansos = () =>
|
|
|
|
mostrarDescansos()
|
|
|
|
? "ph-check " + css(e.boton)
|
|
|
|
: "ph-circle " + css(e.boton);
|
|
|
|
|
2021-01-14 23:24:55 +00:00
|
|
|
return <div>
|
2021-03-03 14:56:22 +00:00
|
|
|
|
|
|
|
<Switch>
|
|
|
|
<Match when={props.estadoLayout === "Normal"}>
|
|
|
|
<div>
|
|
|
|
<div className={css(
|
|
|
|
estilosGlobales.inlineBlock,
|
|
|
|
estilosGlobales.contenedor
|
|
|
|
)}>
|
|
|
|
Mi horario
|
|
|
|
</div>
|
|
|
|
{/*
|
|
|
|
<div
|
|
|
|
className={css(
|
|
|
|
estilosGlobales.inlineBlock,
|
|
|
|
estilosGlobales.contenedor,
|
|
|
|
estilosGlobales.contenedorCursor,
|
|
|
|
estilosGlobales.contenedorCursorSoft
|
|
|
|
)}
|
|
|
|
onClick={() => setMostrarDescansos(!mostrarDescansos())}
|
|
|
|
>
|
|
|
|
<i className={claseBotonMostrarDescansos()}/>
|
|
|
|
Mostrar descansos
|
|
|
|
</div>
|
|
|
|
*/}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className={css(
|
|
|
|
e.horario,
|
|
|
|
estilosGlobales.contenedor
|
|
|
|
)}>
|
|
|
|
<Tabla data={{}} anio={"Mi horario"} version={1}/>
|
|
|
|
</div>
|
|
|
|
</Match>
|
|
|
|
<Match when={props.estadoLayout === "MaxHorarios"}>
|
|
|
|
<div
|
|
|
|
className={css(
|
|
|
|
estilosGlobales.contenedor,
|
|
|
|
estilosGlobales.inlineBlock,
|
|
|
|
estilosGlobales.contenedorCursor,
|
|
|
|
estilosGlobales.contenedorCursorSoft,
|
|
|
|
estilosGlobales.contenedorPhospor
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
<i className={css(estilosGlobales.botonPhospor) + " " + iconoBoton()}/>
|
|
|
|
</div>
|
|
|
|
</Match>
|
|
|
|
</Switch>
|
2021-02-23 02:05:01 +00:00
|
|
|
|
|
|
|
|
2021-01-14 23:24:55 +00:00
|
|
|
</div>;
|
|
|
|
}
|