@scmlatam/web-ui 0.2.44 → 0.2.49
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/src/components/rb.d.ts +4 -4
- package/dist/src/rb-components/feedback/empty-state/EmptyState.d.ts +6 -1
- package/dist/src/rb-components/feedback/empty-state/index.d.ts +1 -1
- package/dist/src/rb-components/ui/primitives/AutoCustomCompleteField.d.ts +9 -0
- package/dist/web-ui.js +4941 -4182
- package/dist/web-ui.umd.cjs +80 -73
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { MessageAlert } from '../rb-components/feedback';
|
|
2
|
-
export type { MessageAlertAction, MessageAlertProps, MessageAlertType, } from '../rb-components/feedback';
|
|
1
|
+
export { EmptyState, MessageAlert } from '../rb-components/feedback';
|
|
2
|
+
export type { EmptyStateAction, EmptyStateContext, EmptyStateProps, EmptyStateVariant, MessageAlertAction, MessageAlertProps, MessageAlertType, } from '../rb-components/feedback';
|
|
3
3
|
export { SystemAlert } from '../rb-components/feedback/system-alert';
|
|
4
4
|
export { useSystemAlert as useRbSystemAlert } from '../rb-components/feedback/system-alert';
|
|
5
5
|
export type { SystemAlertKey, SystemAlertOptions, SystemAlertSeverity, } from '../rb-components/feedback/system-alert';
|
|
@@ -10,8 +10,8 @@ export { RbList, RbListItem } from '../rb-components/list';
|
|
|
10
10
|
export type { RbListItemProps, RbListProps, RbListSize, RbListVariant, } from '../rb-components/list';
|
|
11
11
|
export { PillsTabs, PillsTabs as RbPillsTabs, TabPanel, TabPanel as RbTabPanel, } from '../rb-components/navigation';
|
|
12
12
|
export type { PillsTabItem, PillsTabsProps, TabPanelItem, TabPanelProps, } from '../rb-components/navigation';
|
|
13
|
-
export { Button as RBButton, Input, AutoCustomCompleteField, CustomDatefield, CustomDatePicker, CustomTimefield, CustomDateRangefield, CustomDateRangePicker, CustomDateRangeCalendar, CustomIndefiniteDatePicker, CustomDateControl, RbInlineChipField, CalendarChipIcon, ClockChipIcon, Card, CardHeader, CardTitle, CardContent, CardFooter, IconButton as RbIconButton, Tooltip, Portal, ConfirmDialog, RbContextMenu, Checkbox, Radio, RbStepper, cn, } from '../rb-components/ui';
|
|
14
|
-
export type { AutoValueItem, ButtonProps as RBButtonProps, InputProps, CustomAutoCompleteFieldProps, CustomDatefieldProps, CustomDatePickerProps, CustomTimefieldProps, CustomDateRangefieldProps, CustomDateRangePickerProps, CustomDateRangeCalendarProps, CustomIndefiniteDatePickerProps, CustomDateControlProps, RbInlineChipFieldProps, RbInlineChipFieldAction, RbContextMenuAlign, RbContextMenuItem, RbContextMenuPosition, RbContextMenuProps, RbContextMenuVariant, CardProps, IconButtonProps as RbIconButtonProps, CheckboxProps, CheckboxSize, RadioProps, RbStepperProps, RbStepperStep, PortalProps, TooltipProps, ConfirmDialogProps, ConfirmDialogInitialFocus, ConfirmDialogIconType, } from '../rb-components/ui';
|
|
13
|
+
export { Button as RBButton, Input, AutoCustomCompleteField, CustomDatefield, CustomDatePicker, CustomTimefield, CustomDateRangefield, CustomDateRangePicker, CustomDateRangeCalendar, CustomIndefiniteDatePicker, CustomDateControl, Calendario, RbInlineChipField, CalendarChipIcon, ClockChipIcon, Card, CardHeader, CardTitle, CardContent, CardFooter, IconButton as RbIconButton, Tooltip, Portal, ConfirmDialog, RbContextMenu, Checkbox, Radio, RbStepper, cn, } from '../rb-components/ui';
|
|
14
|
+
export type { AutoValueItem, ButtonProps as RBButtonProps, InputProps, CustomAutoCompleteFieldProps, CustomDatefieldProps, CustomDatePickerProps, CustomTimefieldProps, CustomDateRangefieldProps, CustomDateRangePickerProps, CustomDateRangeCalendarProps, CustomIndefiniteDatePickerProps, CustomDateControlProps, CalendarioProps, CalendarioSingleProps, CalendarioRangeProps, CalendarioRange, CalendarioMonths, CalendarioCaptionLayout, CalendarioTimeFormat, CalendarioLocale, CalendarioDateFormat, RbInlineChipFieldProps, RbInlineChipFieldAction, RbContextMenuAlign, RbContextMenuItem, RbContextMenuPosition, RbContextMenuProps, RbContextMenuVariant, CardProps, IconButtonProps as RbIconButtonProps, CheckboxProps, CheckboxSize, RadioProps, RbStepperProps, RbStepperStep, PortalProps, TooltipProps, ConfirmDialogProps, ConfirmDialogInitialFocus, ConfirmDialogIconType, } from '../rb-components/ui';
|
|
15
15
|
export { RbTable, RbExcelTable, RbTableToolbar, RbToolbarActionButton, RbToolbarActions, RbToolbarDateRangeField, RbToolbarMultiSelectField, RbToolbarSearchField, RbToolbarSelectField, formatRbExcelDate, formatRbExcelTime, getRbExcelValueAtPath, isRbExcelEmptyValue, isValidRbExcelDate, isValidRbExcelNumber, isValidRbExcelTime, parseRbExcelValue, setRbExcelValueAtPath, } from '../rb-components/table';
|
|
16
16
|
export type { RbExcelCellContext, RbExcelCreateRowContext, RbExcelEditorContext, RbExcelFieldType, RbExcelImportContext, RbExcelParseContext, RbExcelRenderContext, RbExcelRowsChangeMeta, RbExcelRowsChangeSource, RbExcelTableActions, RbExcelTableColumn, RbExcelTableLabels, RbExcelTableProps, RbExcelTableRef, RbExcelValidationError, RbExcelValidationErrorInput, RbExcelValidationErrorSource, RbExcelValidationResult, RbExcelValueSource, RbTableColumn, RbTableRowId, RbTableProps, RbTableCellParams, RbTableRowParams, RbTableInitialState, RbTablePinnedColumns, RbTableBaseRow, RbTableSize, RbTableDensity, RbTableAlign, RbTableCellContextMenuParams, RbTableCellContextMenuPosition, RbTablePaginationMode, RbTablePaginationModel, RbRowSelectionModel, RbRowsPerPageOption, RbToolbarActionsProps, RbToolbarDateRangeFieldProps, RbToolbarDateRangeValue, RbAnyTableColumn, RbLegacyGridColumn, } from '../rb-components/table';
|
|
17
17
|
export { Breadcrumbs, DashboardShell, ShellContent, } from '../rb-components/shell';
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type EmptyStateContext = "form" | "page";
|
|
3
|
+
export type EmptyStateVariant = "empty" | "no-permission" | "not-found";
|
|
3
4
|
export interface EmptyStateAction {
|
|
4
5
|
label: ReactNode;
|
|
5
6
|
onClick: () => void;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export interface EmptyStateProps {
|
|
10
|
+
variant?: EmptyStateVariant;
|
|
9
11
|
context?: EmptyStateContext;
|
|
10
12
|
icon?: ReactNode;
|
|
11
13
|
title?: ReactNode;
|
|
12
14
|
description?: ReactNode;
|
|
13
15
|
primaryAction?: EmptyStateAction;
|
|
14
16
|
secondaryAction?: EmptyStateAction;
|
|
17
|
+
permissions?: string[];
|
|
18
|
+
onGoHome?: () => void;
|
|
19
|
+
homePath?: string;
|
|
15
20
|
hideIcon?: boolean;
|
|
16
21
|
hideTitle?: boolean;
|
|
17
22
|
hideDescription?: boolean;
|
|
@@ -19,5 +24,5 @@ export interface EmptyStateProps {
|
|
|
19
24
|
hideSecondaryAction?: boolean;
|
|
20
25
|
className?: string;
|
|
21
26
|
}
|
|
22
|
-
export declare function EmptyState({ context, icon, title, description, primaryAction, secondaryAction, hideIcon, hideTitle, hideDescription, hidePrimaryAction, hideSecondaryAction, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
27
|
+
export declare function EmptyState({ variant, context, icon, title, description, primaryAction, secondaryAction, permissions, onGoHome, homePath, hideIcon, hideTitle, hideDescription, hidePrimaryAction, hideSecondaryAction, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
23
28
|
export default EmptyState;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { EmptyState } from './EmptyState';
|
|
2
|
-
export type { EmptyStateAction, EmptyStateContext, EmptyStateProps, } from './EmptyState';
|
|
2
|
+
export type { EmptyStateAction, EmptyStateContext, EmptyStateProps, EmptyStateVariant, } from './EmptyState';
|
|
@@ -14,6 +14,15 @@ export interface AutoValueItem {
|
|
|
14
14
|
active?: boolean;
|
|
15
15
|
tooltip?: string;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Agrupa la opción bajo un encabezado.
|
|
19
|
+
*
|
|
20
|
+
* Se asume que 'values' ya viene ordenado
|
|
21
|
+
* por grupo, el encabezado
|
|
22
|
+
* se muestra al detectar un cambio de grupo
|
|
23
|
+
* respecto a la opción anterior.
|
|
24
|
+
*/
|
|
25
|
+
groupLabel?: string;
|
|
17
26
|
}
|
|
18
27
|
export type AutoCompleteSearchMode = "local" | "external";
|
|
19
28
|
export interface AutoCompleteSearchConfig {
|