change utils location
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s

This commit is contained in:
2026-04-19 17:38:49 +02:00
parent 949be7939d
commit 600c78510a
50 changed files with 429 additions and 233 deletions

View File

@@ -1,6 +1,6 @@
// components/Datepicker.js
import { $, Tag, If } from "sigpro";
import { val, ui, getIcon } from "../core/utils.js";
import { val, ui, getIcon } from "../utils.js";
import { Input } from "./Input.js";
/**
@@ -69,7 +69,6 @@ export const Datepicker = (props) => {
}
};
// FIX CRÍTICO: Señal manual y Watch para displayValue
const displayValue = $("");
Watch(() => {
@@ -110,7 +109,7 @@ export const Datepicker = (props) => {
type: "range",
min: 0,
max: 23,
value: hVal, // Sincronizado con hVal
value: hVal,
class: "range range-xs flex-1",
oninput: (e) => {
const newHour = parseInt(e.target.value);
@@ -128,7 +127,7 @@ export const Datepicker = (props) => {
Input({
label,
placeholder: placeholder || (isRangeMode() ? "Seleccionar rango..." : "Seleccionar fecha..."),
value: displayValue, // Ahora es una señal que actualizamos manualmente
value: displayValue,
readonly: true,
icon: getIcon("icon-[lucide--calendar]"),
onclick: (e) => {