componentes-sinco 1.1.10 → 1.1.12

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.d.cts CHANGED
@@ -319,11 +319,6 @@ declare const SCCalendarSwipeable: ({ background, setState, state, }: SCCalendar
319
319
  interface SCDataGridInitialProps<T> {
320
320
  data: T[];
321
321
  columns: any;
322
- rowsTable?: number;
323
- checkboxSelection?: boolean;
324
- width?: string | number;
325
- maxHeight?: number;
326
- density?: "compact" | "standard" | "comfortable";
327
322
  groupColumns?: (item: any) => {
328
323
  textGroup1?: string;
329
324
  valueGroup1?: string;
@@ -332,8 +327,14 @@ interface SCDataGridInitialProps<T> {
332
327
  headerNameFirstColumn?: string;
333
328
  fieldFirstColumn?: string;
334
329
  };
330
+ getRowId?: (row: T) => string | number;
331
+ rowsTable?: number;
332
+ checkboxSelection?: boolean;
333
+ width?: string | number;
334
+ maxHeight?: number;
335
+ density?: "compact" | "standard" | "comfortable";
335
336
  }
336
- declare function SCDataGridInitial<T>({ data, columns, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }: SCDataGridInitialProps<T>): React__default.JSX.Element;
337
+ declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }: SCDataGridInitialProps<T>): React__default.JSX.Element;
337
338
  declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
338
339
 
339
340
  interface SCAutocompleteProps<T> {
@@ -663,9 +664,11 @@ interface AttachmentMobileProps<T> {
663
664
  fileAccepted?: string;
664
665
  onChange?: (archivos: File[]) => void;
665
666
  deleteAction?: (name: string) => Promise<void> | void;
667
+ downloadAction?: (file: UploadedFile) => Promise<void> | void;
668
+ view?: 'file' | 'button';
666
669
  }
667
670
 
668
- declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, children, onChange, sx }: AttachmentMobileProps<any>) => React__default.JSX.Element;
671
+ declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
669
672
 
670
673
  interface SCSnackBarProps {
671
674
  type?: 'success' | 'error' | 'warning' | 'info';
@@ -695,8 +698,19 @@ interface SCAppBarProps {
695
698
  }
696
699
  declare const SCAppBar: ({ background, contenidoExtra, options, fnVolver, visibleVolver, visibleConexion, visibleMenu, }: SCAppBarProps) => React__default.JSX.Element;
697
700
 
701
+ interface SCDatePickerProps {
702
+ label?: string;
703
+ required?: boolean;
704
+ disabled?: boolean;
705
+ background?: string;
706
+ state: Dayjs | null;
707
+ setState: (value: Dayjs | null) => void;
708
+ width?: string;
709
+ }
710
+ declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width }: SCDatePickerProps) => React__default.JSX.Element;
711
+
698
712
  declare const SincoTheme: _mui_material_styles.Theme;
699
713
  declare let AdproSincoTheme: _mui_material_styles.Theme;
700
714
  declare let ADCSincoTheme: _mui_material_styles.Theme;
701
715
 
702
- export { ADCSincoTheme, AdproSincoTheme, Attachment, AttachmentMobile, BasicMenu, type BasicMenuProps, CALENDAR_CONSTANTS, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, type CellBorderType, DayEventsList, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, type EventState, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, type NavigationAction, PageHeader, type PageheaderProperties, type ReplyButtonVariants, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyAnchorPositions, type RepplySizeVariants, SCActivityCalendar, SCAppBar, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCListContent, SCMenu, SCModal, SCSelect, SCSnackBar, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, clampEventToVisibleRange, filterEventsForDay, getButtonColor, getCellBorderType, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useCalendarNavigation, useFilteredItems, useMultiSelectHandlers, useProgress };
716
+ export { ADCSincoTheme, AdproSincoTheme, Attachment, AttachmentMobile, BasicMenu, type BasicMenuProps, CALENDAR_CONSTANTS, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, type CellBorderType, DayEventsList, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, type EventState, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, type NavigationAction, PageHeader, type PageheaderProperties, type ReplyButtonVariants, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyAnchorPositions, type RepplySizeVariants, SCActivityCalendar, SCAppBar, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDatePicker, SCDateRange, SCDialog, SCDrawer, SCListContent, SCMenu, SCModal, SCSelect, SCSnackBar, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, clampEventToVisibleRange, filterEventsForDay, getButtonColor, getCellBorderType, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useCalendarNavigation, useFilteredItems, useMultiSelectHandlers, useProgress };
package/dist/index.d.ts CHANGED
@@ -319,11 +319,6 @@ declare const SCCalendarSwipeable: ({ background, setState, state, }: SCCalendar
319
319
  interface SCDataGridInitialProps<T> {
320
320
  data: T[];
321
321
  columns: any;
322
- rowsTable?: number;
323
- checkboxSelection?: boolean;
324
- width?: string | number;
325
- maxHeight?: number;
326
- density?: "compact" | "standard" | "comfortable";
327
322
  groupColumns?: (item: any) => {
328
323
  textGroup1?: string;
329
324
  valueGroup1?: string;
@@ -332,8 +327,14 @@ interface SCDataGridInitialProps<T> {
332
327
  headerNameFirstColumn?: string;
333
328
  fieldFirstColumn?: string;
334
329
  };
330
+ getRowId?: (row: T) => string | number;
331
+ rowsTable?: number;
332
+ checkboxSelection?: boolean;
333
+ width?: string | number;
334
+ maxHeight?: number;
335
+ density?: "compact" | "standard" | "comfortable";
335
336
  }
336
- declare function SCDataGridInitial<T>({ data, columns, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }: SCDataGridInitialProps<T>): React__default.JSX.Element;
337
+ declare function SCDataGridInitial<T>({ data, columns, getRowId, groupColumns, rowsTable, checkboxSelection, width, maxHeight, density }: SCDataGridInitialProps<T>): React__default.JSX.Element;
337
338
  declare const SCDataGrid: React__default.MemoExoticComponent<typeof SCDataGridInitial>;
338
339
 
339
340
  interface SCAutocompleteProps<T> {
@@ -663,9 +664,11 @@ interface AttachmentMobileProps<T> {
663
664
  fileAccepted?: string;
664
665
  onChange?: (archivos: File[]) => void;
665
666
  deleteAction?: (name: string) => Promise<void> | void;
667
+ downloadAction?: (file: UploadedFile) => Promise<void> | void;
668
+ view?: 'file' | 'button';
666
669
  }
667
670
 
668
- declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, children, onChange, sx }: AttachmentMobileProps<any>) => React__default.JSX.Element;
671
+ declare const AttachmentMobile: ({ buttonAttachment, maxSize, fileAccepted, initialFiles, deleteAction, downloadAction, onChange, children, sx, view, }: AttachmentMobileProps<any>) => React__default.JSX.Element;
669
672
 
670
673
  interface SCSnackBarProps {
671
674
  type?: 'success' | 'error' | 'warning' | 'info';
@@ -695,8 +698,19 @@ interface SCAppBarProps {
695
698
  }
696
699
  declare const SCAppBar: ({ background, contenidoExtra, options, fnVolver, visibleVolver, visibleConexion, visibleMenu, }: SCAppBarProps) => React__default.JSX.Element;
697
700
 
701
+ interface SCDatePickerProps {
702
+ label?: string;
703
+ required?: boolean;
704
+ disabled?: boolean;
705
+ background?: string;
706
+ state: Dayjs | null;
707
+ setState: (value: Dayjs | null) => void;
708
+ width?: string;
709
+ }
710
+ declare const SCDatePicker: ({ label, required, disabled, background, state, setState, width }: SCDatePickerProps) => React__default.JSX.Element;
711
+
698
712
  declare const SincoTheme: _mui_material_styles.Theme;
699
713
  declare let AdproSincoTheme: _mui_material_styles.Theme;
700
714
  declare let ADCSincoTheme: _mui_material_styles.Theme;
701
715
 
702
- export { ADCSincoTheme, AdproSincoTheme, Attachment, AttachmentMobile, BasicMenu, type BasicMenuProps, CALENDAR_CONSTANTS, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, type CellBorderType, DayEventsList, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, type EventState, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, type NavigationAction, PageHeader, type PageheaderProperties, type ReplyButtonVariants, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyAnchorPositions, type RepplySizeVariants, SCActivityCalendar, SCAppBar, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDateRange, SCDialog, SCDrawer, SCListContent, SCMenu, SCModal, SCSelect, SCSnackBar, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, clampEventToVisibleRange, filterEventsForDay, getButtonColor, getCellBorderType, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useCalendarNavigation, useFilteredItems, useMultiSelectHandlers, useProgress };
716
+ export { ADCSincoTheme, AdproSincoTheme, Attachment, AttachmentMobile, BasicMenu, type BasicMenuProps, CALENDAR_CONSTANTS, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, type CellBorderType, DayEventsList, EmptyState, type EmptyStateProperties, type EmptyStateSize, type EmptyStateStates, type EventState, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, MultiSelect, type MultiSelectProps, type NavigationAction, PageHeader, type PageheaderProperties, type ReplyButtonVariants, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyAnchorPositions, type RepplySizeVariants, SCActivityCalendar, SCAppBar, SCAutocomplete, SCCalendarSwipeable, SCCard, SCDataGrid, SCDataGridInitial, SCDatePicker, SCDateRange, SCDialog, SCDrawer, SCListContent, SCMenu, SCModal, SCSelect, SCSnackBar, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCTime, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, clampEventToVisibleRange, filterEventsForDay, getButtonColor, getCellBorderType, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useCalendarNavigation, useFilteredItems, useMultiSelectHandlers, useProgress };