kelt-ui-kit-react 1.7.9 → 1.8.0
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 +1 -1
- package/src/sidebar/Sidebar.tsx +21 -2
- package/src/sidebar/sidebar.css +12 -1
- package/dist/App.d.ts +0 -3
- package/dist/App.menu.d.ts +0 -10
- package/dist/App.routes.d.ts +0 -1
- package/dist/_core/hooks/HistoryProvider.d.ts +0 -5
- package/dist/_core/hooks/ImageChecker.d.ts +0 -7
- package/dist/_core/hooks/imageExist.d.ts +0 -7
- package/dist/_core/hooks/isEAN13.d.ts +0 -1
- package/dist/_core/hooks/objectToQueryParams.d.ts +0 -1
- package/dist/_core/hooks/useCurrency.d.ts +0 -3
- package/dist/_core/hooks/useDateutils.d.ts +0 -4
- package/dist/_core/hooks/useIsMobile.d.ts +0 -1
- package/dist/_core/hooks/useToken.d.ts +0 -3
- package/dist/_core/hooks/useValidate.d.ts +0 -5
- package/dist/_core/hooks/widgetSupport.d.ts +0 -1
- package/dist/action/Action.view.d.ts +0 -1
- package/dist/action/ButtonAction.d.ts +0 -10
- package/dist/badge/Badge.d.ts +0 -10
- package/dist/badge/Badge.view.d.ts +0 -1
- package/dist/button/Button.d.ts +0 -3
- package/dist/button/Button.view.d.ts +0 -1
- package/dist/button/button.interface.d.ts +0 -21
- package/dist/button/buttonActions/ButtonActions.d.ts +0 -14
- package/dist/button/buttonFile/ButtonFile.d.ts +0 -9
- package/dist/button/buttonFile/ButtonFile.view.d.ts +0 -1
- package/dist/button/buttonFilters/ButtonFilters.d.ts +0 -19
- package/dist/card/Card.d.ts +0 -16
- package/dist/card/Card.view.d.ts +0 -1
- package/dist/card/card.interface.d.ts +0 -10
- package/dist/card/cardAction/CardAction.d.ts +0 -16
- package/dist/card/cardAction.interface.d.ts +0 -10
- package/dist/card/hook/useCardInteractions.d.ts +0 -8
- package/dist/carousel/Carousel.d.ts +0 -16
- package/dist/carousel/Carousel.view.d.ts +0 -1
- package/dist/damier/Damier.d.ts +0 -11
- package/dist/damier/Damier.view.d.ts +0 -1
- package/dist/damier/damierCell/DamierCell.d.ts +0 -8
- package/dist/damier/damierCell/damierCell.interface.d.ts +0 -6
- package/dist/dataTable/DataTable.d.ts +0 -23
- package/dist/dataTable/DataTable.view.d.ts +0 -1
- package/dist/dataTable/dataTable.interface.d.ts +0 -33
- package/dist/dataTable/dataTableActions/DataTableAction.d.ts +0 -9
- package/dist/dataTable/dataTableColumn/DataTableColumn.d.ts +0 -9
- package/dist/dataTable/dataTableLoading/DataTableLoading.d.ts +0 -7
- package/dist/dataTable/dataTableRow/DataTableRow.d.ts +0 -9
- package/dist/datePicker/DatePicker.d.ts +0 -9
- package/dist/datePicker/DatePicker.view.d.ts +0 -1
- package/dist/expands/Expands.d.ts +0 -11
- package/dist/expands/Expands.view.d.ts +0 -1
- package/dist/expands/expand/expand.d.ts +0 -10
- package/dist/expands/expand/expand.interface.d.ts +0 -9
- package/dist/favicon.ico +0 -0
- package/dist/filAriane/FilAriane.d.ts +0 -10
- package/dist/filAriane/FilAriane.view.d.ts +0 -1
- package/dist/filAriane/filAriane.interface.d.ts +0 -6
- package/dist/form/Form.d.ts +0 -31
- package/dist/form/Form.view.d.ts +0 -1
- package/dist/form/form.enum.d.ts +0 -13
- package/dist/form/form.interface.d.ts +0 -36
- package/dist/form/input/Input.d.ts +0 -26
- package/dist/form/inputNumber/InputNumber.d.ts +0 -22
- package/dist/form/inputNumber/InputNumber.view.d.ts +0 -1
- package/dist/form/inputPrice/InputPrice.d.ts +0 -16
- package/dist/form/inputPrice/InputPrice.view.d.ts +0 -1
- package/dist/form/textArea/TextArea.d.ts +0 -15
- package/dist/form/textArea/TextArea.view.d.ts +0 -1
- package/dist/grid/Grid.d.ts +0 -9
- package/dist/grid/Grid.view.d.ts +0 -1
- package/dist/grid/col/Col.d.ts +0 -10
- package/dist/grid/col/colStyled/ColStyled.d.ts +0 -9
- package/dist/grid/container/Container.d.ts +0 -7
- package/dist/grid/grid.interface.d.ts +0 -8
- package/dist/grid/row/Row.d.ts +0 -8
- package/dist/header/Header.d.ts +0 -3
- package/dist/header/Header.view.d.ts +0 -1
- package/dist/header/header.interface.d.ts +0 -11
- package/dist/home/Home.d.ts +0 -1
- package/dist/icon/Icon.d.ts +0 -3
- package/dist/icon/Icons.view.d.ts +0 -1
- package/dist/icon/icon.interface.d.ts +0 -6
- package/dist/icon/iconSize.enum.d.ts +0 -7
- package/dist/index.d.ts +0 -49
- package/dist/index.html +0 -18
- package/dist/index.js +0 -5325
- package/dist/loader/Loader.d.ts +0 -9
- package/dist/loader/Loader.view.d.ts +0 -1
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/main.d.ts +0 -1
- package/dist/manifest.json +0 -25
- package/dist/menus/Menus.d.ts +0 -7
- package/dist/menus/Menus.view.d.ts +0 -1
- package/dist/menus/menu/Menu.d.ts +0 -8
- package/dist/menus/menu/menu.interface.d.ts +0 -10
- package/dist/message/Message.d.ts +0 -7
- package/dist/message/Message.view.d.ts +0 -1
- package/dist/modal/Modal.d.ts +0 -15
- package/dist/modal/Modal.view.d.ts +0 -1
- package/dist/notFound/NotFound.d.ts +0 -1
- package/dist/overlayPanel/OverlayPanel.d.ts +0 -21
- package/dist/overlayPanel/OverlayPanel.view.d.ts +0 -1
- package/dist/overlayPanel/overlay.context.d.ts +0 -11
- package/dist/overlayPanel/overlayPanelStyled/OverlayPanelStyled.d.ts +0 -7
- package/dist/pdfViewer/PdfViewer.d.ts +0 -12
- package/dist/pdfViewer/PdfViewer.view.d.ts +0 -1
- package/dist/quantity/Quantity.d.ts +0 -12
- package/dist/quantity/Quantity.view.d.ts +0 -0
- package/dist/robots.txt +0 -3
- package/dist/search/Search.d.ts +0 -23
- package/dist/search/Search.view.d.ts +0 -1
- package/dist/select/Select.d.ts +0 -19
- package/dist/select/Select.view.d.ts +0 -1
- package/dist/select/selectOption.interface.d.ts +0 -4
- package/dist/sidebar/Sidebar.d.ts +0 -13
- package/dist/sidebar/Sidebar.view.d.ts +0 -1
- package/dist/sidebarData/SidebarData.d.ts +0 -8
- package/dist/sidebarData/SidebarData.view.d.ts +0 -1
- package/dist/style.css +0 -5
- package/dist/tabs/Tabs.d.ts +0 -18
- package/dist/tabs/Tabs.view.d.ts +0 -1
- package/dist/toaster/Toaster.d.ts +0 -2
- package/dist/toaster/Toaster.view.d.ts +0 -1
- package/dist/toaster/store/useToasterStore.d.ts +0 -19
package/package.json
CHANGED
package/src/sidebar/Sidebar.tsx
CHANGED
|
@@ -62,7 +62,7 @@ export const Sidebar = ({
|
|
|
62
62
|
}, [onClose]);
|
|
63
63
|
|
|
64
64
|
const handleClickOutside = useCallback(
|
|
65
|
-
(event: MouseEvent) => {
|
|
65
|
+
(event: MouseEvent | TouchEvent) => {
|
|
66
66
|
if (!closeOnClickOutside) return;
|
|
67
67
|
if (
|
|
68
68
|
sidebarRef.current &&
|
|
@@ -96,15 +96,28 @@ export const Sidebar = ({
|
|
|
96
96
|
[isOpen, toggleSidebar],
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
+
const handleOverlayTouchEnd = useCallback(
|
|
100
|
+
(event: React.TouchEvent) => {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
toggleSidebar();
|
|
103
|
+
},
|
|
104
|
+
[toggleSidebar],
|
|
105
|
+
);
|
|
106
|
+
|
|
99
107
|
useEffect(() => {
|
|
100
108
|
if (isOpen) {
|
|
101
109
|
document.addEventListener("mousedown", handleClickOutside);
|
|
110
|
+
document.addEventListener("touchstart", handleClickOutside, {
|
|
111
|
+
passive: true,
|
|
112
|
+
});
|
|
102
113
|
} else {
|
|
103
114
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
115
|
+
document.removeEventListener("touchstart", handleClickOutside);
|
|
104
116
|
}
|
|
105
117
|
|
|
106
118
|
return () => {
|
|
107
119
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
120
|
+
document.removeEventListener("touchstart", handleClickOutside);
|
|
108
121
|
};
|
|
109
122
|
}, [isOpen, handleClickOutside]);
|
|
110
123
|
|
|
@@ -114,7 +127,13 @@ export const Sidebar = ({
|
|
|
114
127
|
|
|
115
128
|
return ReactDOM.createPortal(
|
|
116
129
|
<>
|
|
117
|
-
{isOpen && displayOverlay &&
|
|
130
|
+
{isOpen && displayOverlay && (
|
|
131
|
+
<div
|
|
132
|
+
className="overlay"
|
|
133
|
+
onClick={toggleSidebar}
|
|
134
|
+
onTouchEnd={handleOverlayTouchEnd}
|
|
135
|
+
></div>
|
|
136
|
+
)}
|
|
118
137
|
<div
|
|
119
138
|
ref={sidebarRef}
|
|
120
139
|
style={width ? { width: width } : {}}
|
package/src/sidebar/sidebar.css
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
.overlay {
|
|
2
|
+
touch-action: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.toggle-btn {
|
|
6
|
+
-webkit-tap-highlight-color: transparent;
|
|
7
|
+
touch-action: manipulation;
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
.sidebar {
|
|
2
11
|
width: 200px;
|
|
3
12
|
height: 100vh;
|
|
@@ -10,6 +19,8 @@
|
|
|
10
19
|
transform: translateX(0);
|
|
11
20
|
z-index: 2;
|
|
12
21
|
|
|
22
|
+
|
|
23
|
+
|
|
13
24
|
&:not(.full) {
|
|
14
25
|
inset: 0;
|
|
15
26
|
}
|
|
@@ -84,4 +95,4 @@
|
|
|
84
95
|
width: 40vw;
|
|
85
96
|
}
|
|
86
97
|
}
|
|
87
|
-
}
|
|
98
|
+
}
|
package/dist/App.d.ts
DELETED
package/dist/App.menu.d.ts
DELETED
package/dist/App.routes.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const AppRoutes: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isValidEAN13: (value: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const objectToQueryParams: (obj: Record<string, any>, prefix?: string) => string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function FormatDate(date: Date, format: string): string;
|
|
2
|
-
export declare function LocalDateStringToUTC(dateStr: string): string;
|
|
3
|
-
export declare function localDateStartToUTC(dateStr: string): Date;
|
|
4
|
-
export declare function localDateEndToUTC(dateStr: string): Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsMobile: (maxWidth?: number) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WidgetSupport: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ActionView: () => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BadgeInterface } from '../badge/Badge';
|
|
2
|
-
|
|
3
|
-
export type ButtonActionProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
6
|
-
title?: string;
|
|
7
|
-
classIcon?: string;
|
|
8
|
-
badge?: BadgeInterface;
|
|
9
|
-
};
|
|
10
|
-
export declare const ButtonAction: ({ className, onClick, title, classIcon, badge, }: ButtonActionProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/badge/Badge.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconSizeEnum } from '../icon/iconSize.enum';
|
|
2
|
-
|
|
3
|
-
export type BadgeInterface = {
|
|
4
|
-
className?: string;
|
|
5
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
6
|
-
title?: string;
|
|
7
|
-
sizeIcon?: IconSizeEnum;
|
|
8
|
-
classIcon?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const Badge: ({ className, onClick, title, sizeIcon, classIcon, }: BadgeInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const BadgeView: () => JSX.Element;
|
package/dist/button/Button.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ButtonView: () => JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BadgeInterface } from '../badge/Badge';
|
|
2
|
-
import { IconSizeEnum } from '../icon/iconSize.enum';
|
|
3
|
-
|
|
4
|
-
export interface ButtonInterface {
|
|
5
|
-
className?: string;
|
|
6
|
-
badge?: BadgeInterface;
|
|
7
|
-
id?: string;
|
|
8
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
-
title: string;
|
|
10
|
-
classIcon?: string;
|
|
11
|
-
positionicon?: number;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
sizeIcon?: IconSizeEnum;
|
|
14
|
-
}
|
|
15
|
-
export interface buttonActionInterface {
|
|
16
|
-
icon?: string;
|
|
17
|
-
id?: number | string;
|
|
18
|
-
label: string;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
onClick: (a: buttonActionInterface) => void;
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PositionOverlay } from '../../overlayPanel/OverlayPanel';
|
|
2
|
-
import { buttonActionInterface } from '../button.interface';
|
|
3
|
-
|
|
4
|
-
export type ButtonActionsProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
7
|
-
title: string;
|
|
8
|
-
actions?: buttonActionInterface[];
|
|
9
|
-
classIcon?: string;
|
|
10
|
-
positionActions?: PositionOverlay;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
id?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const ButtonActions: ({ className, onClick, title, actions, positionActions, disabled, id, }: ButtonActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface ButtonFileProps {
|
|
2
|
-
onFileSelected?: (file: File, buffer: ArrayBuffer) => void;
|
|
3
|
-
accept?: string;
|
|
4
|
-
buttonText?: string;
|
|
5
|
-
buttonClassName?: string;
|
|
6
|
-
containerClassName?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const ButtonFile: ({ onFileSelected, accept, buttonText, buttonClassName, containerClassName, }: ButtonFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ButtonFileView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FormInterface, FormValuesInterface } from '../../form/form.interface';
|
|
2
|
-
import { IconSizeEnum } from '../../icon/iconSize.enum';
|
|
3
|
-
|
|
4
|
-
export type ButtonActionsProps<T extends {
|
|
5
|
-
[key: string]: string | number | boolean | Date | string[];
|
|
6
|
-
}> = {
|
|
7
|
-
className?: string;
|
|
8
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
-
title: string;
|
|
10
|
-
classIcon?: string;
|
|
11
|
-
sizeIcon?: IconSizeEnum;
|
|
12
|
-
dataForm: FormInterface[];
|
|
13
|
-
onChange?: (values: FormValuesInterface<T>) => void;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
id?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const ButtonFilters: <T extends {
|
|
18
|
-
[key: string]: string | number | boolean | string[] | Date;
|
|
19
|
-
}>({ className, onClick, title, classIcon, sizeIcon, disabled, id, dataForm, onChange, }: ButtonActionsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/card/Card.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PositionOverlay } from '../overlayPanel/OverlayPanel';
|
|
2
|
-
import { CardInterface } from './card.interface';
|
|
3
|
-
import { CardActionInterface } from './cardAction.interface';
|
|
4
|
-
|
|
5
|
-
type CardProps = {
|
|
6
|
-
item: CardInterface;
|
|
7
|
-
actions?: CardActionInterface[];
|
|
8
|
-
className?: string;
|
|
9
|
-
handleClick?: (item: CardInterface) => void;
|
|
10
|
-
onClose?: (item: CardInterface) => void;
|
|
11
|
-
children?: JSX.Element;
|
|
12
|
-
customAction?: JSX.Element;
|
|
13
|
-
positionOverlay?: PositionOverlay;
|
|
14
|
-
};
|
|
15
|
-
export declare const Card: ({ item, actions, className, handleClick, onClose, customAction, positionOverlay, children, }: CardProps) => JSX.Element;
|
|
16
|
-
export {};
|
package/dist/card/Card.view.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CardView: () => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CardInterface } from '../card.interface';
|
|
2
|
-
import { CardActionInterface } from '../cardAction.interface';
|
|
3
|
-
|
|
4
|
-
export type PositionOverlay = "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
5
|
-
export type CardActionProps = {
|
|
6
|
-
actions: CardActionInterface[];
|
|
7
|
-
item?: CardInterface;
|
|
8
|
-
openActions?: boolean;
|
|
9
|
-
positions?: {
|
|
10
|
-
top: number;
|
|
11
|
-
left: number;
|
|
12
|
-
};
|
|
13
|
-
positionOverlay?: PositionOverlay;
|
|
14
|
-
setOpenActions?: (open: boolean) => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const CardAction: ({ actions, openActions, item, positions, positionOverlay, setOpenActions, }: CardActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CardInterface } from './card.interface';
|
|
2
|
-
|
|
3
|
-
export interface CardActionInterface {
|
|
4
|
-
icon: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
disabled?: (item: CardInterface) => boolean;
|
|
7
|
-
onClick: (item: CardInterface) => void;
|
|
8
|
-
setLabel?: (item: CardInterface) => string;
|
|
9
|
-
type?: "menu" | "link";
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
interface Breakpoints {
|
|
4
|
-
sm?: number;
|
|
5
|
-
md?: number;
|
|
6
|
-
lg?: number;
|
|
7
|
-
xl?: number;
|
|
8
|
-
}
|
|
9
|
-
interface CarouselProps {
|
|
10
|
-
children: ReactNode[];
|
|
11
|
-
showControls?: boolean;
|
|
12
|
-
itemsToScroll?: number;
|
|
13
|
-
breakpoints?: Breakpoints;
|
|
14
|
-
}
|
|
15
|
-
export declare const Carousel: React.FC<CarouselProps>;
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CarouselView: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/damier/Damier.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DamierCellInterface } from './damierCell/damierCell.interface';
|
|
2
|
-
|
|
3
|
-
interface DamierProps {
|
|
4
|
-
cols?: number;
|
|
5
|
-
rows?: number;
|
|
6
|
-
page?: number;
|
|
7
|
-
damierCells?: DamierCellInterface[];
|
|
8
|
-
onClick?: (cell: DamierCellInterface) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Damier: ({ cols, rows, damierCells, page, onClick, }: DamierProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DamierView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DamierCellInterface } from './damierCell.interface';
|
|
2
|
-
|
|
3
|
-
interface DamierCellProps {
|
|
4
|
-
cell: DamierCellInterface;
|
|
5
|
-
onClick?: (cell: DamierCellInterface) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const DamierCell: ({ cell, onClick }: DamierCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { dataTableActionsInterface, dataTableColumnsInterface } from './dataTable.interface';
|
|
2
|
-
|
|
3
|
-
export type DataTableProps<T> = {
|
|
4
|
-
id: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
children?: JSX.Element;
|
|
8
|
-
element?: JSX.Element;
|
|
9
|
-
data: T[];
|
|
10
|
-
emptyMessage?: string;
|
|
11
|
-
actions?: dataTableActionsInterface<T>[];
|
|
12
|
-
columns: dataTableColumnsInterface<T>[];
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
onRowClick?: (row: any) => void;
|
|
15
|
-
onColumnClick?: (column: any) => void;
|
|
16
|
-
onLoadMore?: () => void;
|
|
17
|
-
hasMore?: boolean;
|
|
18
|
-
onSelectionChange?: (selectedRows: T[]) => void;
|
|
19
|
-
hideToggleAll?: boolean;
|
|
20
|
-
limitSelect?: number;
|
|
21
|
-
getRowId?: (row: T) => string | number;
|
|
22
|
-
};
|
|
23
|
-
export declare function DataTable<T>(props: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DataTableView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface dataTableColumnsInterface<T> {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
minWidth?: number;
|
|
7
|
-
maxWidth?: number;
|
|
8
|
-
width?: number;
|
|
9
|
-
align?: "right" | "left" | "center";
|
|
10
|
-
format?: (value: any) => string;
|
|
11
|
-
sortable?: boolean;
|
|
12
|
-
filterable?: boolean;
|
|
13
|
-
filterValue?: string;
|
|
14
|
-
editable?: boolean;
|
|
15
|
-
options?: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
onEdit?: (value: any, row: T) => void;
|
|
20
|
-
onRowStyle?: (row: T) => React.CSSProperties;
|
|
21
|
-
type: HTMLInputTypeAttribute | "select";
|
|
22
|
-
}
|
|
23
|
-
export interface dataTableActionsInterface<T> {
|
|
24
|
-
id: string;
|
|
25
|
-
label: string;
|
|
26
|
-
type: "button" | "link" | "icon";
|
|
27
|
-
classIcon?: string;
|
|
28
|
-
onClick: (row: T) => void;
|
|
29
|
-
shouldDisplay?: (row: T) => boolean;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
labelButton?: (row: T) => string;
|
|
32
|
-
visible?: boolean;
|
|
33
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { dataTableActionsInterface } from '../dataTable.interface';
|
|
2
|
-
|
|
3
|
-
type DataTableActionProps = {
|
|
4
|
-
action: dataTableActionsInterface<any>;
|
|
5
|
-
row: any;
|
|
6
|
-
index?: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const DataTableAction: ({ action, row, index, }: DataTableActionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { dataTableColumnsInterface } from '../dataTable.interface';
|
|
2
|
-
|
|
3
|
-
type DataTableColumnProps = {
|
|
4
|
-
column: dataTableColumnsInterface<any>;
|
|
5
|
-
idx: number;
|
|
6
|
-
onColumnClick?: (column: dataTableColumnsInterface<any>) => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const DataTableColumn: ({ column, idx, onColumnClick, }: DataTableColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { dataTableColumnsInterface } from '../dataTable.interface';
|
|
2
|
-
|
|
3
|
-
type DataTableRowProps = {
|
|
4
|
-
column: dataTableColumnsInterface<any>;
|
|
5
|
-
idx: number;
|
|
6
|
-
row: any;
|
|
7
|
-
};
|
|
8
|
-
export declare const DataTableRow: ({ column, idx, row }: DataTableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Value } from 'react-calendar/dist/cjs/shared/types';
|
|
2
|
-
|
|
3
|
-
export type DatePickerProps = {
|
|
4
|
-
value?: Value;
|
|
5
|
-
maxDate?: Date;
|
|
6
|
-
onChange?: (date: Value) => void;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const DatePicker: ({ value, onChange, maxDate, children, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DatePickerView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ExpandInterface } from './expand/expand.interface';
|
|
2
|
-
|
|
3
|
-
type ExpandProps = {
|
|
4
|
-
items: ExpandInterface[];
|
|
5
|
-
className?: string;
|
|
6
|
-
onChange?: (item: ExpandInterface) => void;
|
|
7
|
-
currentItem?: ExpandInterface;
|
|
8
|
-
showArrow?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const Expands: (props: ExpandProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export type { ExpandProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ExpandsView: () => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ExpandInterface } from './expand.interface';
|
|
2
|
-
|
|
3
|
-
export type ExpandProps = {
|
|
4
|
-
currentExpand?: ExpandInterface;
|
|
5
|
-
item: ExpandInterface;
|
|
6
|
-
className?: string;
|
|
7
|
-
showArrow?: boolean;
|
|
8
|
-
onChange: (item: ExpandInterface) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const Expand: ({ currentExpand, item, className, showArrow, onChange, }: ExpandProps) => JSX.Element;
|
package/dist/favicon.ico
DELETED
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FilArianeInterface } from './filAriane.interface';
|
|
2
|
-
|
|
3
|
-
type FilArianeProps = {
|
|
4
|
-
filArianes?: FilArianeInterface[];
|
|
5
|
-
currentFil?: number;
|
|
6
|
-
title?: string;
|
|
7
|
-
onClick?: (fil?: FilArianeInterface) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const FilAriane: ({ filArianes, onClick, currentFil, title, }: FilArianeProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FilArianeView: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/form/Form.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FormInterface, FormValuesInterface } from './form.interface';
|
|
3
|
-
|
|
4
|
-
export type FormProps<T extends {
|
|
5
|
-
[key: string]: string | number | boolean | Date | string[];
|
|
6
|
-
}> = {
|
|
7
|
-
id?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
hideSubmit?: boolean;
|
|
11
|
-
autoComplete?: string;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
initialForm: FormInterface[];
|
|
14
|
-
disabledSubmit?: boolean;
|
|
15
|
-
onSubmit?: (values: FormValuesInterface<T>) => void;
|
|
16
|
-
onChange?: (values: FormValuesInterface<T>) => void;
|
|
17
|
-
};
|
|
18
|
-
export declare const DynamicForm: React.ForwardRefExoticComponent<FormProps<{
|
|
19
|
-
[key: string]: string | number | boolean | string[] | Date;
|
|
20
|
-
}> & React.RefAttributes<{
|
|
21
|
-
clearInput?: ((name: string) => void) | undefined;
|
|
22
|
-
resetForm?: (() => void) | undefined;
|
|
23
|
-
focusInitialElement?: (() => void) | undefined;
|
|
24
|
-
getValues?: (() => Partial<{
|
|
25
|
-
[x: string]: string | number | boolean | string[] | Date;
|
|
26
|
-
}>) | undefined;
|
|
27
|
-
updateFormValue?: ((values: Partial<{
|
|
28
|
-
[x: string]: string | number | boolean | string[] | Date;
|
|
29
|
-
}>) => void) | undefined;
|
|
30
|
-
setBtnDisabledSubmit?: ((disabled: boolean) => void) | undefined;
|
|
31
|
-
}>>;
|
package/dist/form/Form.view.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FormView: () => JSX.Element;
|
package/dist/form/form.enum.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum TypeInputEnum {
|
|
2
|
-
TEXT = "text",
|
|
3
|
-
BUTTON = "button",
|
|
4
|
-
EMAIL = "email",
|
|
5
|
-
HIDDEN = "hidden",
|
|
6
|
-
PASSWORD = "password",
|
|
7
|
-
NUMBER = "number",
|
|
8
|
-
CHECKBOX = "checkbox",
|
|
9
|
-
RADIO = "radio",
|
|
10
|
-
DATE = "date",
|
|
11
|
-
SELECT = "select",
|
|
12
|
-
TEXTAREA = "textarea"
|
|
13
|
-
}
|