@sustaina/shared-ui 1.44.0 → 1.45.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/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +73 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -136,7 +136,7 @@ type RowState = {
|
|
|
136
136
|
allowRegex?: RegExp;
|
|
137
137
|
};
|
|
138
138
|
interface Params {
|
|
139
|
-
AND:
|
|
139
|
+
AND: object[];
|
|
140
140
|
}
|
|
141
141
|
interface AdvanceSearchProps {
|
|
142
142
|
fields: FieldSchema[];
|
|
@@ -147,6 +147,13 @@ interface AdvanceSearchProps {
|
|
|
147
147
|
onClear?: () => void;
|
|
148
148
|
shortDateFormat?: string;
|
|
149
149
|
filterFieldMap?: Record<string, string>;
|
|
150
|
+
customParamsBuilderHook?: (args: {
|
|
151
|
+
defaultBuildFunc: ParamsBuilder["build"];
|
|
152
|
+
row: RowState;
|
|
153
|
+
}) => object;
|
|
154
|
+
}
|
|
155
|
+
interface ParamsBuilder {
|
|
156
|
+
build(row: RowState): object;
|
|
150
157
|
}
|
|
151
158
|
|
|
152
159
|
declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
|
|
@@ -824,6 +831,8 @@ declare const UserIcon: React__default.FC<IconProps>;
|
|
|
824
831
|
|
|
825
832
|
declare const SuiWarningIcon: React__default.FC<IconProps>;
|
|
826
833
|
|
|
834
|
+
declare const FactoryIcon: React.FC<IconProps>;
|
|
835
|
+
|
|
827
836
|
type ImageLoaderProps = {
|
|
828
837
|
src: string;
|
|
829
838
|
width: number;
|
|
@@ -1768,4 +1777,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1768
1777
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1769
1778
|
};
|
|
1770
1779
|
|
|
1771
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
|
1780
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ type RowState = {
|
|
|
136
136
|
allowRegex?: RegExp;
|
|
137
137
|
};
|
|
138
138
|
interface Params {
|
|
139
|
-
AND:
|
|
139
|
+
AND: object[];
|
|
140
140
|
}
|
|
141
141
|
interface AdvanceSearchProps {
|
|
142
142
|
fields: FieldSchema[];
|
|
@@ -147,6 +147,13 @@ interface AdvanceSearchProps {
|
|
|
147
147
|
onClear?: () => void;
|
|
148
148
|
shortDateFormat?: string;
|
|
149
149
|
filterFieldMap?: Record<string, string>;
|
|
150
|
+
customParamsBuilderHook?: (args: {
|
|
151
|
+
defaultBuildFunc: ParamsBuilder["build"];
|
|
152
|
+
row: RowState;
|
|
153
|
+
}) => object;
|
|
154
|
+
}
|
|
155
|
+
interface ParamsBuilder {
|
|
156
|
+
build(row: RowState): object;
|
|
150
157
|
}
|
|
151
158
|
|
|
152
159
|
declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
|
|
@@ -824,6 +831,8 @@ declare const UserIcon: React__default.FC<IconProps>;
|
|
|
824
831
|
|
|
825
832
|
declare const SuiWarningIcon: React__default.FC<IconProps>;
|
|
826
833
|
|
|
834
|
+
declare const FactoryIcon: React.FC<IconProps>;
|
|
835
|
+
|
|
827
836
|
type ImageLoaderProps = {
|
|
828
837
|
src: string;
|
|
829
838
|
width: number;
|
|
@@ -1768,4 +1777,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
|
|
|
1768
1777
|
[K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
|
|
1769
1778
|
};
|
|
1770
1779
|
|
|
1771
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
|
1780
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdministrationIcon, AdvanceSearch, AnalyticsIcon, ApplicationLogIcon, ArrowIcon, AuditFooter, type AuditFooterProps, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Combobox, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, CustomActionStatusIcon, CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DashboardIcon, DataEntryIcon, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DataTableVirtual, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, DecreaseIcon, type DeepPartial, type DeepPartialNullish, Dialog$1 as Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type DraftGuardState, type DraftSource, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, FactoryIcon, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HamburgerMenuIcon, HandymanIcon, HeaderCell, type HeaderCellProps, HomeIcon, HomePlusIcon, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, InformationIcon, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, LookupSelect, type LookupSelectOption, type LookupSelectProps, MailIcon, MainListContainer, type MainListContainerClassNames, type MainListContainerProps, type MainListContainerSlots, ManIcon, ManagementIcon, MenuIcon, MessageIcon, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type OptionData, type Params, type PermissionString, PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PowerIcon, type PrefixMap, PreventPageLeave, QuestionIcon, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, RightPanelContainer, type RightPanelContainerClassNames, type RightPanelContainerHeaderProps, type RightPanelContainerProps, type RightPanelContainerSlots, RoleIcon, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SetupIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, TabSelect, type TabSelectItem, type TemplateKeys, Textarea, ToolBoxIcon, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, Truncated, TruncatedMouseEnterDiv, type TruncatedMouseEnterDivProps, type TruncatedProps, index as UI, type UseBindRefProps, type UseControllableStateOptions, type UseControllableStateResult, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, UserAloneIcon, UserFriendIcon, UserGroupIcon, UserIcon, UserProtectIcon, VirtualizedCommand, type VirtualizedCommandFieldNames, type VirtualizedCommandOption, type VirtualizedCommandProps, type Virtualizer, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useBindRef, useControllableState, useDraftGuardStore, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useSafeBlocker, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
|
package/dist/index.js
CHANGED
|
@@ -2285,6 +2285,55 @@ var SuiWarningIcon = ({ size = "1em", className, ...props }) => /* @__PURE__ */
|
|
|
2285
2285
|
}
|
|
2286
2286
|
);
|
|
2287
2287
|
var warning_default = SuiWarningIcon;
|
|
2288
|
+
var FactoryIcon = ({ size = "1em", className, ...props }) => {
|
|
2289
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2290
|
+
"svg",
|
|
2291
|
+
{
|
|
2292
|
+
viewBox: "0 0 11 9",
|
|
2293
|
+
fill: "none",
|
|
2294
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2295
|
+
width: size,
|
|
2296
|
+
height: size,
|
|
2297
|
+
className,
|
|
2298
|
+
"aria-hidden": true,
|
|
2299
|
+
...props,
|
|
2300
|
+
children: [
|
|
2301
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_4362_106915)", children: [
|
|
2302
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2303
|
+
"path",
|
|
2304
|
+
{
|
|
2305
|
+
d: "M4.09997 2.18649L7.16802 0.884405C7.28199 0.818433 7.53766 1.01288 7.53766 1.1344V2.16218L7.6424 2.14482C8.59115 1.8219 9.59843 1.19343 10.541 0.90871C10.7567 0.842738 10.8983 0.90871 10.9877 1.14482L11 8.51982C10.9815 8.72121 10.8675 8.84968 10.6889 8.87052L0.25259 8.86357C0.110893 8.81496 0.0277233 8.71079 0 8.54413V2.70385C0.00308037 2.58579 0.0462056 2.4851 0.129376 2.41565L3.69028 0.887877C3.87202 0.821905 4.09997 1.01982 4.09997 1.22815V2.18302V2.18649ZM1.45393 4.51635C1.28143 4.5476 1.20134 4.70732 1.18286 4.88788C1.15514 5.17607 1.15822 5.73163 1.17978 6.02329C1.19518 6.24899 1.27527 6.41913 1.4909 6.4469C1.74041 6.47815 2.35956 6.47815 2.60907 6.4469C2.75693 6.42954 2.88015 6.31496 2.89863 6.14482C2.92635 5.87399 2.92635 5.08232 2.89863 4.81149C2.88015 4.64135 2.75385 4.52677 2.60907 4.5094C2.38421 4.48163 1.66648 4.47468 1.45393 4.51635ZM6.26239 4.61357C6.22235 4.56843 6.1207 4.51635 6.06525 4.5094C5.82498 4.47468 5.1935 4.48163 4.94707 4.5094C4.77457 4.53024 4.65136 4.66565 4.63596 4.8601C4.61131 5.13788 4.60823 5.84968 4.63596 6.12052C4.65136 6.25593 4.74377 6.38788 4.85774 6.42954C4.97172 6.47121 5.91123 6.47121 6.06525 6.4469C6.21003 6.42607 6.33632 6.28718 6.3548 6.12052C6.38561 5.84968 6.37945 5.13788 6.3548 4.8601C6.34864 4.78024 6.31168 4.6726 6.25931 4.61357H6.26239Z",
|
|
2306
|
+
fill: "currentColor"
|
|
2307
|
+
}
|
|
2308
|
+
),
|
|
2309
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2310
|
+
"path",
|
|
2311
|
+
{
|
|
2312
|
+
d: "M1.45516 4.5178C1.6677 4.47613 2.38543 4.48307 2.6103 4.51085C2.75507 4.52821 2.88137 4.6428 2.89985 4.81293C2.92757 5.08377 2.92757 5.87543 2.89985 6.14627C2.88137 6.31641 2.75507 6.43099 2.6103 6.44835C2.36079 6.4796 1.74163 6.4796 1.49212 6.44835C1.2765 6.42057 1.19641 6.25043 1.181 6.02474C1.15944 5.73307 1.15636 5.17405 1.18408 4.88932C1.20257 4.70877 1.28266 4.54905 1.45516 4.5178Z",
|
|
2313
|
+
fill: "white"
|
|
2314
|
+
}
|
|
2315
|
+
),
|
|
2316
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2317
|
+
"path",
|
|
2318
|
+
{
|
|
2319
|
+
d: "M8.35268 4.51606C8.54982 4.47786 9.32299 4.48134 9.5263 4.51259C9.7296 4.54384 9.80353 4.72092 9.81893 4.93273C9.8405 5.22786 9.8405 5.75564 9.81893 6.04731C9.80045 6.26259 9.71112 6.42231 9.50782 6.44661C9.25831 6.47786 8.63915 6.47786 8.38964 6.44661C8.24486 6.42925 8.11857 6.31467 8.10009 6.14453C8.07236 5.898 8.06928 5.02648 8.10009 4.79036C8.11857 4.65842 8.23562 4.53689 8.3496 4.51606H8.35268Z",
|
|
2320
|
+
fill: "white"
|
|
2321
|
+
}
|
|
2322
|
+
),
|
|
2323
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2324
|
+
"path",
|
|
2325
|
+
{
|
|
2326
|
+
d: "M6.26921 4.6146C6.3185 4.67016 6.35546 4.78127 6.3647 4.86113C6.38935 5.13891 6.39243 5.85071 6.3647 6.12155C6.34622 6.28821 6.21993 6.4271 6.07515 6.44794C5.91805 6.46877 4.98162 6.47224 4.86764 6.43057C4.75367 6.38891 4.66126 6.25696 4.64586 6.12155C4.61505 5.85071 4.62121 5.13891 4.64586 4.86113C4.66434 4.66669 4.78447 4.5278 4.95697 4.51044C5.2034 4.48266 5.83488 4.47919 6.07515 4.51044C6.13059 4.51738 6.23225 4.57294 6.27229 4.6146H6.26921Z",
|
|
2327
|
+
fill: "white"
|
|
2328
|
+
}
|
|
2329
|
+
)
|
|
2330
|
+
] }),
|
|
2331
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_4362_106915", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "11", height: "8", fill: "white", transform: "translate(0 0.871094)" }) }) })
|
|
2332
|
+
]
|
|
2333
|
+
}
|
|
2334
|
+
);
|
|
2335
|
+
};
|
|
2336
|
+
var factory_default = FactoryIcon;
|
|
2288
2337
|
var AuditFooter = ({
|
|
2289
2338
|
createdAt,
|
|
2290
2339
|
createdBy,
|
|
@@ -5439,7 +5488,8 @@ var AdvanceSearch = ({
|
|
|
5439
5488
|
onSearch,
|
|
5440
5489
|
onClear,
|
|
5441
5490
|
shortDateFormat,
|
|
5442
|
-
filterFieldMap = FILTER_FIELD_MAP
|
|
5491
|
+
filterFieldMap = FILTER_FIELD_MAP,
|
|
5492
|
+
customParamsBuilderHook
|
|
5443
5493
|
}) => {
|
|
5444
5494
|
const fieldsData = React27.useMemo(() => {
|
|
5445
5495
|
if (fields.length === 0) throw new Error("fields cannot be an empty array");
|
|
@@ -5548,10 +5598,25 @@ var AdvanceSearch = ({
|
|
|
5548
5598
|
});
|
|
5549
5599
|
if (hasError) return;
|
|
5550
5600
|
const cleanedRows = processedRows.filter(Boolean);
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5601
|
+
let params;
|
|
5602
|
+
if (customParamsBuilderHook) {
|
|
5603
|
+
params = {
|
|
5604
|
+
AND: cleanedRows.map(
|
|
5605
|
+
(r) => customParamsBuilderHook({
|
|
5606
|
+
defaultBuildFunc: (r2) => getBuilder(r2.fieldType).build(r2),
|
|
5607
|
+
row: r
|
|
5608
|
+
})
|
|
5609
|
+
)
|
|
5610
|
+
};
|
|
5611
|
+
} else {
|
|
5612
|
+
params = transformFilterKeys(
|
|
5613
|
+
{
|
|
5614
|
+
AND: cleanedRows.map((r) => getBuilder(r.fieldType).build(r)).filter(Boolean)
|
|
5615
|
+
},
|
|
5616
|
+
filterFieldMap
|
|
5617
|
+
);
|
|
5618
|
+
}
|
|
5619
|
+
if (onSearch) onSearch(params);
|
|
5555
5620
|
}, [
|
|
5556
5621
|
rows,
|
|
5557
5622
|
operatorsForField,
|
|
@@ -5560,7 +5625,8 @@ var AdvanceSearch = ({
|
|
|
5560
5625
|
setError,
|
|
5561
5626
|
setOperatorErrors,
|
|
5562
5627
|
filterFieldMap,
|
|
5563
|
-
onSearch
|
|
5628
|
+
onSearch,
|
|
5629
|
+
customParamsBuilderHook
|
|
5564
5630
|
]);
|
|
5565
5631
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5566
5632
|
ExpandCollapse_default,
|
|
@@ -13514,6 +13580,7 @@ exports.ErrorCreateCanvas = ErrorCreateCanvas;
|
|
|
13514
13580
|
exports.ErrorGeneratingBlob = ErrorGeneratingBlob;
|
|
13515
13581
|
exports.ErrorInvalidSVG = ErrorInvalidSVG;
|
|
13516
13582
|
exports.ErrorSVGExceedSize = ErrorSVGExceedSize;
|
|
13583
|
+
exports.FactoryIcon = factory_default;
|
|
13517
13584
|
exports.FiltersIcon = filters_default;
|
|
13518
13585
|
exports.Form = Form;
|
|
13519
13586
|
exports.FormControl = FormControl;
|