@codeplex-sac/selectores-fecha 0.0.18

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/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-bP4PDa0v.cjs");exports.CodeplexProveedorFechas=e.CodeplexProveedorFechas;exports.CodeplexRelojDigital=e.CodeplexRelojDigital;exports.CodeplexSelectorFecha=e.CodeplexSelectorFecha;exports.CodeplexSelectorFechaHora=e.CodeplexSelectorFechaHora;exports.CodeplexSelectorHora=e.CodeplexSelectorHora;exports.CodeplexSelectorRangoFecha=e.CodeplexSelectorRangoFecha;
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from './lib/proveedor/proveedor';
2
+ export * from './lib/selector-fecha/selector-fecha';
3
+ export * from './lib/selector-hora/selector-hora';
4
+ export * from './lib/selector-fecha-hora/selector-fecha-hora';
5
+ export * from './lib/reloj-digital/reloj-digital';
6
+ export * from './lib/selector-rango-fecha/selector-rango-fecha';
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { C as a, d as l, a as r, c, b as d, e as p } from "./index-D_EidE9r.js";
2
+ export {
3
+ a as CodeplexProveedorFechas,
4
+ l as CodeplexRelojDigital,
5
+ r as CodeplexSelectorFecha,
6
+ c as CodeplexSelectorFechaHora,
7
+ d as CodeplexSelectorHora,
8
+ p as CodeplexSelectorRangoFecha
9
+ };
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Propiedades para el componente CodeplexProveedorFechas.
4
+ */
5
+ export interface CodeplexProveedorFechasProps {
6
+ /** Contenido que se envolverá con el proveedor de fechas. */
7
+ children: React.ReactNode;
8
+ /**
9
+ * El idioma a utilizar para el formateo y localización de fechas.
10
+ * Por defecto es 'es' (español).
11
+ */
12
+ idioma?: string;
13
+ }
14
+ /**
15
+ * Proveedor de contexto para la gestión de fechas y localización en componentes de Codeplex.
16
+ * Basado en MUI X Date Pickers y Dayjs.
17
+ */
18
+ export declare const CodeplexProveedorFechas: ({ children, idioma }: CodeplexProveedorFechasProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { DigitalClockProps } from '@mui/x-date-pickers/DigitalClock';
2
+ import { Dayjs } from 'dayjs';
3
+ import { SxProps, Theme } from '@mui/material';
4
+ export interface CodeplexRelojDigitalProps extends Omit<DigitalClockProps, 'value' | 'onChange' | 'disabled' | 'readOnly' | 'timeSteps' | 'minTime' | 'maxTime'> {
5
+ conPapel?: boolean;
6
+ sx?: SxProps<Theme>;
7
+ valor?: Dayjs | null;
8
+ alCambiar?: (nuevoValor: Dayjs | null) => void;
9
+ deshabilitado?: boolean;
10
+ lecturaSola?: boolean;
11
+ pasoTiempo?: number;
12
+ horaMinima?: Dayjs;
13
+ horaMaxima?: Dayjs;
14
+ value?: Dayjs | null;
15
+ onChange?: (value: Dayjs | null) => void;
16
+ disabled?: boolean;
17
+ readOnly?: boolean;
18
+ timeStep?: number;
19
+ minTime?: Dayjs;
20
+ maxTime?: Dayjs;
21
+ }
22
+ export declare const CodeplexRelojDigital: ({ conPapel, sx, valor, alCambiar, deshabilitado, lecturaSola, pasoTiempo, horaMinima, horaMaxima, value, onChange, disabled, readOnly, timeStep, minTime, maxTime, ...props }: CodeplexRelojDigitalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ export interface CodeplexSelectorFechaProps extends Omit<DatePickerProps, 'label' | 'value' | 'onChange' | 'disabled' | 'readOnly' | 'format'> {
4
+ etiqueta?: string;
5
+ valor?: Dayjs | null;
6
+ alCambiar?: (nuevoValor: Dayjs | null) => void;
7
+ textoAyuda?: string;
8
+ error?: boolean;
9
+ anchoCompleto?: boolean;
10
+ deshabilitado?: boolean;
11
+ lecturaSola?: boolean;
12
+ minFecha?: Dayjs;
13
+ maxFecha?: Dayjs;
14
+ deshabilitarPasado?: boolean;
15
+ deshabilitarFuturo?: boolean;
16
+ vistas?: Array<'year' | 'month' | 'day'>;
17
+ formato?: string;
18
+ marcador?: string;
19
+ value?: Dayjs | null;
20
+ onChange?: (value: Dayjs | null) => void;
21
+ disabled?: boolean;
22
+ readOnly?: boolean;
23
+ format?: string;
24
+ disablePast?: boolean;
25
+ disableFuture?: boolean;
26
+ views?: Array<'year' | 'month' | 'day'>;
27
+ }
28
+ export declare const CodeplexSelectorFecha: ({ slotProps, textoAyuda, error, anchoCompleto, etiqueta, sx, valor, alCambiar, deshabilitado, lecturaSola, minFecha, maxFecha, deshabilitarPasado, deshabilitarFuturo, vistas, formato, marcador, value, onChange, disabled, readOnly, format, disablePast, disableFuture, views, ...props }: CodeplexSelectorFechaProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ export interface CodeplexSelectorFechaHoraProps extends Omit<DateTimePickerProps, 'label' | 'value' | 'onChange' | 'disabled' | 'readOnly' | 'format'> {
4
+ etiqueta?: string;
5
+ valor?: Dayjs | null;
6
+ alCambiar?: (nuevoValor: Dayjs | null) => void;
7
+ textoAyuda?: string;
8
+ error?: boolean;
9
+ anchoCompleto?: boolean;
10
+ deshabilitado?: boolean;
11
+ lecturaSola?: boolean;
12
+ minFechaHora?: Dayjs;
13
+ maxFechaHora?: Dayjs;
14
+ deshabilitarPasado?: boolean;
15
+ deshabilitarFuturo?: boolean;
16
+ vistas?: Array<'year' | 'month' | 'day' | 'hours' | 'minutes'>;
17
+ formato?: string;
18
+ marcador?: string;
19
+ value?: Dayjs | null;
20
+ onChange?: (value: Dayjs | null) => void;
21
+ disabled?: boolean;
22
+ readOnly?: boolean;
23
+ format?: string;
24
+ disablePast?: boolean;
25
+ disableFuture?: boolean;
26
+ views?: Array<'year' | 'month' | 'day' | 'hours' | 'minutes'>;
27
+ }
28
+ export declare const CodeplexSelectorFechaHora: ({ slotProps, textoAyuda, error, anchoCompleto, etiqueta, sx, valor, alCambiar, deshabilitado, lecturaSola, minFechaHora, maxFechaHora, deshabilitarPasado, deshabilitarFuturo, vistas, formato, marcador, value, onChange, disabled, readOnly, format, disablePast, disableFuture, views, ...props }: CodeplexSelectorFechaHoraProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { TimePickerProps } from '@mui/x-date-pickers/TimePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ export interface CodeplexSelectorHoraProps extends Omit<TimePickerProps, 'label' | 'value' | 'onChange' | 'disabled' | 'readOnly' | 'format'> {
4
+ etiqueta?: string;
5
+ valor?: Dayjs | null;
6
+ alCambiar?: (nuevoValor: Dayjs | null) => void;
7
+ textoAyuda?: string;
8
+ error?: boolean;
9
+ anchoCompleto?: boolean;
10
+ deshabilitado?: boolean;
11
+ lecturaSola?: boolean;
12
+ minHora?: Dayjs;
13
+ maxHora?: Dayjs;
14
+ deshabilitarPasado?: boolean;
15
+ deshabilitarFuturo?: boolean;
16
+ formato?: string;
17
+ marcador?: string;
18
+ value?: Dayjs | null;
19
+ onChange?: (value: Dayjs | null) => void;
20
+ disabled?: boolean;
21
+ readOnly?: boolean;
22
+ format?: string;
23
+ disablePast?: boolean;
24
+ disableFuture?: boolean;
25
+ }
26
+ export declare const CodeplexSelectorHora: ({ slotProps, textoAyuda, error, anchoCompleto, etiqueta, sx, valor, alCambiar, deshabilitado, lecturaSola, minHora, maxHora, deshabilitarPasado, deshabilitarFuturo, formato, marcador, value, onChange, disabled, readOnly, format, disablePast, disableFuture, ...props }: CodeplexSelectorHoraProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ import { DateRangePickerProps } from '@mui/x-date-pickers-pro/DateRangePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ import { DateRange } from '@mui/x-date-pickers-pro';
4
+ export interface CodeplexSelectorRangoFechaProps extends Omit<DateRangePickerProps, 'label' | 'value' | 'onChange' | 'disabled' | 'readOnly' | 'format'> {
5
+ etiqueta?: string;
6
+ valor?: DateRange<Dayjs>;
7
+ alCambiar?: (nuevoValor: DateRange<Dayjs>) => void;
8
+ textoAyuda?: string;
9
+ error?: boolean;
10
+ anchoCompleto?: boolean;
11
+ deshabilitado?: boolean;
12
+ lecturaSola?: boolean;
13
+ minFecha?: Dayjs;
14
+ maxFecha?: Dayjs;
15
+ deshabilitarPasado?: boolean;
16
+ deshabilitarFuturo?: boolean;
17
+ formato?: string;
18
+ marcador?: string;
19
+ value?: DateRange<Dayjs> | null;
20
+ onChange?: (value: DateRange<Dayjs>) => void;
21
+ disabled?: boolean;
22
+ readOnly?: boolean;
23
+ format?: string;
24
+ disablePast?: boolean;
25
+ disableFuture?: boolean;
26
+ }
27
+ export declare const CodeplexSelectorRangoFecha: ({ slotProps, textoAyuda, error, anchoCompleto, etiqueta, sx, valor, alCambiar, deshabilitado, lecturaSola, minFecha, maxFecha, deshabilitarPasado, deshabilitarFuturo, formato, marcador, value, onChange, disabled, readOnly, format, disablePast, disableFuture, ...props }: CodeplexSelectorRangoFechaProps) => import("react/jsx-runtime").JSX.Element;
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@codeplex-sac/selectores-fecha",
3
+ "version": "0.0.18",
4
+ "type": "module",
5
+ "main": "./index.js",
6
+ "module": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.js",
12
+ "require": "./index.js"
13
+ }
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "peerDependencies": {
19
+ "react": "^19.0.0",
20
+ "react-dom": "^19.0.0"
21
+ },
22
+ "dependencies": {
23
+ "@mui/material": "^7.3.6",
24
+ "@mui/x-date-pickers": "^8.23.0",
25
+ "@mui/x-date-pickers-pro": "^8.23.0",
26
+ "dayjs": "^1.11.19"
27
+ }
28
+ }