componentes-sinco 1.1.30 → 1.1.32
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/dist/index.cjs +166 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +241 -177
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -26,9 +26,10 @@ interface AttachmentProps<T> {
|
|
|
26
26
|
downloadAction?: (name: string) => void;
|
|
27
27
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
28
28
|
initialFiles?: UploadedFile$1[];
|
|
29
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
|
+
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
33
|
|
|
33
34
|
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
34
35
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
@@ -66,9 +67,10 @@ interface AttachmentMobileProps<T> {
|
|
|
66
67
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
67
68
|
downloadAction?: (file: UploadedFile) => Promise<void> | void;
|
|
68
69
|
view?: 'file' | 'button';
|
|
70
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
73
|
+
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
72
74
|
|
|
73
75
|
type CalendarView = 'month' | 'week' | 'day';
|
|
74
76
|
type EventState = 'En progreso' | 'Finalizada' | 'Vencida' | 'Asignada' | 'Aplazada' | 'Generada';
|
|
@@ -512,8 +514,9 @@ interface SCAutocompleteProps<T> {
|
|
|
512
514
|
};
|
|
513
515
|
inputChange?: (value: string) => void;
|
|
514
516
|
maxCheck?: number;
|
|
517
|
+
width?: string;
|
|
515
518
|
}
|
|
516
|
-
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
519
|
+
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, width, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
517
520
|
|
|
518
521
|
interface SCCalendarSwipeableProps {
|
|
519
522
|
background?: string;
|
|
@@ -563,13 +566,14 @@ interface SCDataGridInitialProps<T> {
|
|
|
563
566
|
maxHeight?: number;
|
|
564
567
|
density?: "compact" | "standard" | "comfortable";
|
|
565
568
|
disableColumnMenu?: boolean;
|
|
569
|
+
disableHeader?: boolean;
|
|
566
570
|
disableColumnSorting?: boolean;
|
|
567
571
|
setSelectedIndex?: (index: number) => void;
|
|
568
572
|
selectedIndex?: number;
|
|
569
573
|
setSelectedRow?: (any: any) => void;
|
|
570
574
|
selectedRow?: any;
|
|
571
575
|
}
|
|
572
|
-
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
576
|
+
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
573
577
|
declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
|
|
574
578
|
|
|
575
579
|
interface SCDatePickerProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -26,9 +26,10 @@ interface AttachmentProps<T> {
|
|
|
26
26
|
downloadAction?: (name: string) => void;
|
|
27
27
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
28
28
|
initialFiles?: UploadedFile$1[];
|
|
29
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
|
+
declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, }: AttachmentProps<any>) => React__default.JSX.Element;
|
|
32
33
|
|
|
33
34
|
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
|
|
34
35
|
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
@@ -66,9 +67,10 @@ interface AttachmentMobileProps<T> {
|
|
|
66
67
|
deleteAction?: (name: string) => Promise<void> | void;
|
|
67
68
|
downloadAction?: (file: UploadedFile) => Promise<void> | void;
|
|
68
69
|
view?: 'file' | 'button';
|
|
70
|
+
iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
73
|
+
declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, iconFileItem, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
|
|
72
74
|
|
|
73
75
|
type CalendarView = 'month' | 'week' | 'day';
|
|
74
76
|
type EventState = 'En progreso' | 'Finalizada' | 'Vencida' | 'Asignada' | 'Aplazada' | 'Generada';
|
|
@@ -512,8 +514,9 @@ interface SCAutocompleteProps<T> {
|
|
|
512
514
|
};
|
|
513
515
|
inputChange?: (value: string) => void;
|
|
514
516
|
maxCheck?: number;
|
|
517
|
+
width?: string;
|
|
515
518
|
}
|
|
516
|
-
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
519
|
+
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, width, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
517
520
|
|
|
518
521
|
interface SCCalendarSwipeableProps {
|
|
519
522
|
background?: string;
|
|
@@ -563,13 +566,14 @@ interface SCDataGridInitialProps<T> {
|
|
|
563
566
|
maxHeight?: number;
|
|
564
567
|
density?: "compact" | "standard" | "comfortable";
|
|
565
568
|
disableColumnMenu?: boolean;
|
|
569
|
+
disableHeader?: boolean;
|
|
566
570
|
disableColumnSorting?: boolean;
|
|
567
571
|
setSelectedIndex?: (index: number) => void;
|
|
568
572
|
selectedIndex?: number;
|
|
569
573
|
setSelectedRow?: (any: any) => void;
|
|
570
574
|
selectedRow?: any;
|
|
571
575
|
}
|
|
572
|
-
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
576
|
+
declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, titleRowsPage, rowsTable, rowSelection, checkboxSelection, width, maxHeight, density, disableColumnMenu, disableHeader, disableColumnSorting, setSelectedIndex, selectedIndex, setSelectedRow, selectedRow }: SCDataGridInitialProps<T>): React__default.JSX.Element;
|
|
573
577
|
declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
|
|
574
578
|
|
|
575
579
|
interface SCDatePickerProps {
|