@inf-monkeys-tech/monkeys-design 1.0.109 → 1.0.111
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/{WorkbenchRadarMatrix-2ec5e4970f24.d.ts → WorkbenchRadarMatrix-39609aaa90a8.d.ts} +31 -2
- package/dist/{WorkbenchRadarMatrix-b50483af5a5d.d.mts → WorkbenchRadarMatrix-90d4af493e98.d.mts} +31 -2
- package/dist/components/workbench/index.d.mts +1 -1
- package/dist/components/workbench/index.d.ts +1 -1
- package/dist/components/workbench/index.js +168 -68
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +168 -69
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +168 -68
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +168 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWo
|
|
|
9
9
|
export { A as AGENT_WORKBENCH_SHELL_BREAKPOINTS, a as AgentWorkbenchActivity, b as AgentWorkbenchActivityClassNames, c as AgentWorkbenchActivityModel, d as AgentWorkbenchActivityProps, e as AgentWorkbenchApprovalIntent, f as AgentWorkbenchArtifactIntent, g as AgentWorkbenchDetailsIntent, h as AgentWorkbenchDetailsModel, i as AgentWorkbenchDetailsState, j as AgentWorkbenchDetailsTab, k as AgentWorkbenchEventOf, l as AgentWorkbenchExploreGroup, m as AgentWorkbenchExploreItem, n as AgentWorkbenchExploreSidebar, o as AgentWorkbenchExploreSidebarIntent, p as AgentWorkbenchExploreSidebarLabels, q as AgentWorkbenchExploreSidebarProps, r as AgentWorkbenchQuickStart, s as AgentWorkbenchQuickStartIntent, t as AgentWorkbenchQuickStartProps, u as AgentWorkbenchShell, v as AgentWorkbenchShellBreakpoints, w as AgentWorkbenchShellClassNames, x as AgentWorkbenchShellLabels, y as AgentWorkbenchShellLayout, z as AgentWorkbenchShellMeasurement, B as AgentWorkbenchShellProps, C as AgentWorkbenchSidebar, D as AgentWorkbenchSidebarClassNames, E as AgentWorkbenchSidebarContainer, F as AgentWorkbenchSidebarContainerBodyProps, G as AgentWorkbenchSidebarContainerClassNames, H as AgentWorkbenchSidebarContainerProps, I as AgentWorkbenchSidebarIntent, J as AgentWorkbenchSidebarProps, K as AgentWorkbenchTaskDetails, L as AgentWorkbenchTaskDetailsClassNames, M as AgentWorkbenchTaskDetailsProps, N as AgentWorkbenchTerminalModel, O as AgentWorkbenchTool, P as AgentWorkbenchToolClassNames, Q as AgentWorkbenchToolProps, R as createAgentWorkbenchActivityModel, S as createAgentWorkbenchDetailsModel, T as resolveAgentWorkbenchShellLayout } from './details-model-c55c1c493c48.mjs';
|
|
10
10
|
export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.mjs';
|
|
11
11
|
export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.mjs';
|
|
12
|
-
export { I as InteractiveTable, a as InteractiveTableClassNames, b as InteractiveTableColumn, c as InteractiveTableColumnMenuLabels, d as InteractiveTableEditableTextCell, e as InteractiveTableEditableTextCellProps, f as InteractiveTableHeaderContext, g as InteractiveTableHeaderProps, h as InteractiveTableProps, i as InteractiveTableReadonlyCell, j as InteractiveTableReadonlyCellProps, k as InteractiveTableRenderContext, l as InteractiveTableRowState, m as InteractiveTableSelectCell, n as InteractiveTableSelectCellProps, o as InteractiveTableSelectOption, W as WorkbenchAssetGallery, p as WorkbenchAssetGalleryItem, q as WorkbenchAssetGalleryProps, r as WorkbenchCollection, s as WorkbenchCollectionActivationEvent, t as WorkbenchCollectionAppearanceConfig, u as WorkbenchCollectionCallbacks, v as WorkbenchCollectionClassNames, w as WorkbenchCollectionConfig, x as WorkbenchCollectionGroupContext, y as WorkbenchCollectionGroupingConfig, z as WorkbenchCollectionHoverEffect, A as WorkbenchCollectionItemConfig, B as WorkbenchCollectionItemContext, C as WorkbenchCollectionItemSize, D as WorkbenchCollectionItemSlotName, E as WorkbenchCollectionItemSlots, F as WorkbenchCollectionItemStatus, G as WorkbenchCollectionItemTitleConfig, H as WorkbenchCollectionKey, J as WorkbenchCollectionLabels, K as WorkbenchCollectionLayoutConfig, L as WorkbenchCollectionLayoutContext, M as WorkbenchCollectionLayoutMode, N as WorkbenchCollectionLayoutSnapshot, O as WorkbenchCollectionLoadingConfig, P as WorkbenchCollectionLoadingVariant, Q as WorkbenchCollectionProps, R as WorkbenchCollectionResponsive, S as WorkbenchCollectionSelectionBehavior, T as WorkbenchCollectionSelectionConfig,
|
|
12
|
+
export { I as InteractiveTable, a as InteractiveTableClassNames, b as InteractiveTableColumn, c as InteractiveTableColumnMenuLabels, d as InteractiveTableEditableTextCell, e as InteractiveTableEditableTextCellProps, f as InteractiveTableHeaderContext, g as InteractiveTableHeaderProps, h as InteractiveTableProps, i as InteractiveTableReadonlyCell, j as InteractiveTableReadonlyCellProps, k as InteractiveTableRenderContext, l as InteractiveTableRowState, m as InteractiveTableSelectCell, n as InteractiveTableSelectCellProps, o as InteractiveTableSelectOption, U as UseWorkbenchCollectionSelectionOptions, W as WorkbenchAssetGallery, p as WorkbenchAssetGalleryItem, q as WorkbenchAssetGalleryProps, r as WorkbenchCollection, s as WorkbenchCollectionActivationEvent, t as WorkbenchCollectionAppearanceConfig, u as WorkbenchCollectionCallbacks, v as WorkbenchCollectionClassNames, w as WorkbenchCollectionConfig, x as WorkbenchCollectionGroupContext, y as WorkbenchCollectionGroupingConfig, z as WorkbenchCollectionHoverEffect, A as WorkbenchCollectionItemConfig, B as WorkbenchCollectionItemContext, C as WorkbenchCollectionItemSize, D as WorkbenchCollectionItemSlotName, E as WorkbenchCollectionItemSlots, F as WorkbenchCollectionItemStatus, G as WorkbenchCollectionItemTitleConfig, H as WorkbenchCollectionKey, J as WorkbenchCollectionLabels, K as WorkbenchCollectionLayoutConfig, L as WorkbenchCollectionLayoutContext, M as WorkbenchCollectionLayoutMode, N as WorkbenchCollectionLayoutSnapshot, O as WorkbenchCollectionLoadingConfig, P as WorkbenchCollectionLoadingVariant, Q as WorkbenchCollectionProps, R as WorkbenchCollectionResponsive, S as WorkbenchCollectionSelectionBehavior, T as WorkbenchCollectionSelectionChangeDetails, V as WorkbenchCollectionSelectionConfig, X as WorkbenchCollectionSelectionController, Y as WorkbenchCollectionSelectionIntent, Z as WorkbenchCollectionSelectionMode, _ as WorkbenchCollectionSkeletonConfig, $ as WorkbenchCollectionSlotContext, a0 as WorkbenchCollectionSlots, a1 as WorkbenchCollectionStateConfig, a2 as WorkbenchCollectionTitlePlacement, a3 as WorkbenchCollectionTitleVisibility, a4 as WorkbenchCollectionVirtualizationAdapter, a5 as WorkbenchCollectionVirtualizationConfig, a6 as WorkbenchCollectionVirtualizationRenderOptions, a7 as WorkbenchContentPane, a8 as WorkbenchContentPaneBodyProps, a9 as WorkbenchContentPaneClassNames, aa as WorkbenchContentPaneProps, ab as WorkbenchContentToolbar, ac as WorkbenchContentToolbarClassNames, ad as WorkbenchContentToolbarProps, ae as WorkbenchContentToolbarViewModeOption, af as WorkbenchDetailSidebar, ag as WorkbenchDetailSidebarBodyProps, ah as WorkbenchDetailSidebarClassNames, ai as WorkbenchDetailSidebarField, aj as WorkbenchDetailSidebarProps, ak as WorkbenchDetailSidebarRenderContext, al as WorkbenchDetailSidebarSection, am as WorkbenchEvidenceItem, an as WorkbenchEvidenceList, ao as WorkbenchEvidenceListProps, ap as WorkbenchGalleryCard, aq as WorkbenchGalleryCardMetaContext, ar as WorkbenchGalleryCardProps, as as WorkbenchGalleryCardRenderContext, at as WorkbenchGalleryColumn, au as WorkbenchGalleryLabels, av as WorkbenchGalleryRecordVisual, aw as WorkbenchGallerySettingsButton, ax as WorkbenchGallerySettingsButtonClassNames, ay as WorkbenchGallerySettingsButtonProps, az as WorkbenchGallerySettingsLabels, aA as WorkbenchGallerySettingsOption, aB as WorkbenchGallerySettingsPanel, aC as WorkbenchGallerySettingsPanelClassNames, aD as WorkbenchGallerySettingsPanelProps, aE as WorkbenchGallerySettingsValue, aF as WorkbenchGalleryView, aG as WorkbenchGalleryViewProps, aH as WorkbenchJourneyItem, aI as WorkbenchJourneyItemState, aJ as WorkbenchJourneyNavigation, aK as WorkbenchJourneyNavigationProps, aL as WorkbenchLaneClassNames, aM as WorkbenchLaneColumn, aN as WorkbenchLaneRenderCardContext, aO as WorkbenchLaneView, aP as WorkbenchLaneViewProps, aQ as WorkbenchMasonryItemSize, aR as WorkbenchMasonryLayout, aS as WorkbenchMasonryLayoutContext, aT as WorkbenchMasonryLayoutProps, aU as WorkbenchMetricGrid, aV as WorkbenchMetricGridDensity, aW as WorkbenchMetricGridProps, aX as WorkbenchMetricGridVariant, aY as WorkbenchMetricItem, aZ as WorkbenchRadarFilterChip, a_ as WorkbenchRadarFilterChipProps, a$ as WorkbenchRadarFilterRow, b0 as WorkbenchRadarFilterRowDisclosureBase, b1 as WorkbenchRadarFilterRowIntegratedDisclosure, b2 as WorkbenchRadarFilterRowProps, b3 as WorkbenchRadarFilterRowSeparateDisclosure, b4 as WorkbenchRadarInspectorSection, b5 as WorkbenchRadarLegendItem, b6 as WorkbenchRadarMatrix, b7 as WorkbenchRadarMatrixProps, b8 as WorkbenchRadarNavigation, b9 as WorkbenchRadarNavigationChild, ba as WorkbenchRadarNavigationItem, bb as WorkbenchRadarNavigationProps, bc as WorkbenchRadarQuadrant, bd as WorkbenchRadarWorkspace, be as WorkbenchRadarWorkspaceProps, bf as WorkbenchRankedList, bg as WorkbenchRankedListItem, bh as WorkbenchRankedListMetric, bi as WorkbenchRankedListProps, bj as WorkbenchRelationshipEdge, bk as WorkbenchRelationshipGraph, bl as WorkbenchRelationshipGraphProps, bm as WorkbenchRelationshipNode, bn as WorkbenchResizableSidebar, bo as WorkbenchResizableSidebarClassNames, bp as WorkbenchResizableSidebarItem, bq as WorkbenchResizableSidebarProps, br as WorkbenchResizableSidebarSection, bs as WorkbenchScatterAxis, bt as WorkbenchScatterPlot, bu as WorkbenchScatterPlotProps, bv as WorkbenchScatterPoint, bw as WorkbenchScatterThresholds, bx as WorkbenchSelectionTray, by as WorkbenchSelectionTrayItem, bz as WorkbenchSelectionTrayProps, bA as WorkbenchTableView, bB as WorkbenchTableViewClassNames, bC as WorkbenchTableViewColumn, bD as WorkbenchTableViewHeaderContext, bE as WorkbenchTableViewProps, bF as WorkbenchTableViewRenderContext, bG as WorkbenchVisualizationTone, bH as useWorkbenchCollectionSelection } from './WorkbenchRadarMatrix-90d4af493e98.mjs';
|
|
13
13
|
export { MonkeysToastApi, MonkeysToastProvider, MonkeysToastProviderProps, MonkeysToaster, MonkeysToasterProps, ToastInput, MonkeysToastProvider as ToastProvider, ToastVariant, MonkeysToaster as Toaster, extractToastMessage, resolveToastVariantForMessage, toast, useToastFeed, useToastOnValue } from './components/toast/index.mjs';
|
|
14
14
|
export { B as BaseAccordion, a as BaseAspectRatio, b as BaseAvatar, c as BaseBadge, d as BaseBreadcrumb, e as BaseButton, f as BaseCheckbox, g as BaseCode, h as BaseContainer, i as BaseContextMenu, j as BaseContextMenuCheckboxItem, k as BaseContextMenuContent, l as BaseContextMenuItem, m as BaseContextMenuLabel, n as BaseContextMenuRadioGroup, o as BaseContextMenuRadioItem, p as BaseContextMenuSeparator, q as BaseContextMenuSub, r as BaseContextMenuSubContent, s as BaseContextMenuSubTrigger, t as BaseContextMenuTrigger, u as BaseDescriptionList, v as BaseDialog, w as BaseDivider, x as BaseDropdownMenu, y as BaseEmptyState, z as BaseField, A as BaseFieldset, C as BaseGrid, D as BaseHeading, E as BaseInline, F as BaseInput, G as BaseInputGroup, H as BaseKbd, I as BaseLayout, J as BaseLayoutPane, K as BaseLayoutResizeHandle, L as BaseLayoutSplit, M as BaseLink, N as BaseList, O as BaseListFooter, P as BaseListItem, Q as BaseLoadingState, R as BaseMultiSelect, S as BaseNotice, T as BaseNumberInput, U as BasePagination, V as BasePanel, W as BasePasswordInput, X as BasePortal, Y as BaseProgress, Z as BaseRadioGroup, _ as BaseScrollArea, $ as BaseSectionHeader, a0 as BaseSegmentedControl, a1 as BaseSelect, a2 as BaseSkeleton, a3 as BaseSpinner, a4 as BaseStack, a5 as BaseSteps, a6 as BaseSwitch, a7 as BaseSystemState, a8 as BaseTable, a9 as BaseTableBody, aa as BaseTableCaption, ab as BaseTableCell, ac as BaseTableContainer, ad as BaseTableEmpty, ae as BaseTableFooter, af as BaseTableFooterBar, ag as BaseTableHead, ah as BaseTableHeader, ai as BaseTableLoading, aj as BaseTableRow, ak as BaseTabs, al as BaseText, am as BaseTextarea, an as BaseToolbar, ao as BaseTooltip, ap as BaseVisuallyHidden, aq as getBaseBadgeToneClassName, ar as getBaseButtonToneClassName, as as getBaseMenuItemToneClassName, at as getBaseNoticeToneClassName, au as resolveBaseAppearance } from './theme-860f405c9d2d.mjs';
|
|
15
15
|
export { B as BaseAccordionClassNames, a as BaseAccordionItem, b as BaseAccordionProps, c as BaseAppearance, d as BaseAspectRatioClassNames, e as BaseAspectRatioProps, f as BaseAvatarClassNames, g as BaseAvatarProps, h as BaseBackground, i as BaseBadgeClassNames, j as BaseBadgeProps, k as BaseBorder, l as BaseBreadcrumbClassNames, m as BaseBreadcrumbItem, n as BaseBreadcrumbProps, o as BaseButtonClassNames, p as BaseButtonProps, q as BaseCheckboxClassNames, r as BaseCheckboxProps, s as BaseCodeClassNames, t as BaseCodeDisplay, u as BaseCodeProps, v as BaseComponentState, w as BaseContainerClassNames, x as BaseContainerProps, y as BaseContextMenuCheckboxItemProps, z as BaseContextMenuClassNames, A as BaseContextMenuContentClassNames, C as BaseContextMenuContentProps, D as BaseContextMenuItemClassNames, E as BaseContextMenuItemProps, F as BaseContextMenuLabelProps, G as BaseContextMenuProps, H as BaseContextMenuRadioGroupProps, I as BaseContextMenuRadioItemProps, J as BaseContextMenuSeparatorProps, K as BaseContextMenuSubContentProps, L as BaseContextMenuSubProps, M as BaseContextMenuSubTriggerProps, N as BaseContextMenuTriggerProps, O as BaseControlClassNames, P as BaseControlSize, Q as BaseControlTone, R as BaseDensity, S as BaseDescriptionListClassNames, T as BaseDescriptionListItem, U as BaseDescriptionListProps, V as BaseDialogClassNames, W as BaseDialogProps, X as BaseDividerClassNames, Y as BaseDividerProps, Z as BaseDropdownMenuClassNames, _ as BaseDropdownMenuItem, $ as BaseDropdownMenuPlacement, a0 as BaseDropdownMenuProps, a1 as BaseEmptyStateProps, a2 as BaseFieldClassNames, a3 as BaseFieldControlProps, a4 as BaseFieldProps, a5 as BaseFieldValidate, a6 as BaseFieldValidationMode, a7 as BaseFieldValidationResult, a8 as BaseFieldsetClassNames, a9 as BaseFieldsetProps, aa as BaseGridClassNames, ab as BaseGridColumns, ac as BaseGridProps, ad as BaseHeadingClassNames, ae as BaseHeadingLevel, af as BaseHeadingProps, ag as BaseHeadingSize, ah as BaseInlineClassNames, ai as BaseInlineProps, aj as BaseInputGroupClassNames, ak as BaseInputGroupProps, al as BaseInputProps, am as BaseKbdClassNames, an as BaseKbdProps, ao as BaseLayoutAlign, ap as BaseLayoutClassNames, aq as BaseLayoutGap, ar as BaseLayoutJustify, as as BaseLayoutLength, at as BaseLayoutOrientation, au as BaseLayoutPaneClassNames, av as BaseLayoutPaneProps, aw as BaseLayoutPaneSurface, ax as BaseLayoutProps, ay as BaseLayoutResizeHandleClassNames, az as BaseLayoutResizeHandleProps, aA as BaseLayoutSize, aB as BaseLayoutSplitClassNames, aC as BaseLayoutSplitProps, aD as BaseLinkClassNames, aE as BaseLinkProps, aF as BaseListClassNames, aG as BaseListFooterClassNames, aH as BaseListFooterProps, aI as BaseListItemClassNames, aJ as BaseListItemProps, aK as BaseListMarker, aL as BaseListProps, aM as BaseListSpacing, aN as BaseLoadingStateProps, aO as BaseMultiSelectClassNames, aP as BaseMultiSelectOption, aQ as BaseMultiSelectProps, aR as BaseNoticeClassNames, aS as BaseNoticeProps, aT as BaseNumberInputChangeReason, aU as BaseNumberInputClassNames, aV as BaseNumberInputProps, aW as BaseNumberInputValueChangeDetails, aX as BasePaginationClassNames, aY as BasePaginationProps, aZ as BasePanelClassNames, a_ as BasePanelProps, a$ as BasePasswordInputClassNames, b0 as BasePasswordInputProps, b1 as BasePortalContainer, b2 as BasePortalProps, b3 as BaseProgressClassNames, b4 as BaseProgressProps, b5 as BaseRadioGroupClassNames, b6 as BaseRadioGroupProps, b7 as BaseRadioOption, b8 as BaseRadius, b9 as BaseResolvedTheme, ba as BaseScrollAreaAxis, bb as BaseScrollAreaClassNames, bc as BaseScrollAreaProps, bd as BaseSectionHeaderClassNames, be as BaseSectionHeaderProps, bf as BaseSegmentedControlClassNames, bg as BaseSegmentedControlOption, bh as BaseSegmentedControlProps, bi as BaseSelectOption, bj as BaseSelectProps, bk as BaseSkeletonClassNames, bl as BaseSkeletonProps, bm as BaseSpinnerClassNames, bn as BaseSpinnerProps, bo as BaseStackClassNames, bp as BaseStackProps, bq as BaseStateClassNames, br as BaseStepItem, bs as BaseStepStatus, bt as BaseStepsClassNames, bu as BaseStepsProps, bv as BaseStepsStatusLabels, bw as BaseSwitchClassNames, bx as BaseSwitchProps, by as BaseSystemStateKind, bz as BaseSystemStateProps, bA as BaseTableAlign, bB as BaseTableBodyProps, bC as BaseTableCaptionClassNames, bD as BaseTableCaptionProps, bE as BaseTableCellClassNames, bF as BaseTableCellProps, bG as BaseTableClassNames, bH as BaseTableColumnDefinition, bI as BaseTableColumnInteractionOptions, bJ as BaseTableColumnOrderChangeDetail, bK as BaseTableColumnSizeChangeDetail, bL as BaseTableColumnSizes, bM as BaseTableContainerClassNames, bN as BaseTableContainerProps, bO as BaseTableEmptyClassNames, bP as BaseTableEmptyProps, bQ as BaseTableFooterBarClassNames, bR as BaseTableFooterBarProps, bS as BaseTableFooterProps, bT as BaseTableHeadClassNames, bU as BaseTableHeadProps, bV as BaseTableHeaderProps, bW as BaseTableLayout, bX as BaseTableLoadingClassNames, bY as BaseTableLoadingProps, bZ as BaseTableProps, b_ as BaseTableRowClassNames, b$ as BaseTableRowProps, c0 as BaseTableSectionClassNames, c1 as BaseTableSortDirection, c2 as BaseTableVerticalAlign, c3 as BaseTabsClassNames, c4 as BaseTabsItem, c5 as BaseTabsProps, c6 as BaseTextClassNames, c7 as BaseTextProps, c8 as BaseTextareaProps, c9 as BaseThemePresetId, ca as BaseThemeSlots, cb as BaseThemeStyles, cc as BaseToolbarClassNames, cd as BaseToolbarProps, ce as BaseTooltipClassNames, cf as BaseTooltipPlacement, cg as BaseTooltipProps, ch as BaseTypographySize, ci as BaseTypographyTone, cj as BaseVariant, ck as BaseVisuallyHiddenClassNames, cl as BaseVisuallyHiddenProps } from './types-c6ec8b90925b.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWo
|
|
|
9
9
|
export { A as AGENT_WORKBENCH_SHELL_BREAKPOINTS, a as AgentWorkbenchActivity, b as AgentWorkbenchActivityClassNames, c as AgentWorkbenchActivityModel, d as AgentWorkbenchActivityProps, e as AgentWorkbenchApprovalIntent, f as AgentWorkbenchArtifactIntent, g as AgentWorkbenchDetailsIntent, h as AgentWorkbenchDetailsModel, i as AgentWorkbenchDetailsState, j as AgentWorkbenchDetailsTab, k as AgentWorkbenchEventOf, l as AgentWorkbenchExploreGroup, m as AgentWorkbenchExploreItem, n as AgentWorkbenchExploreSidebar, o as AgentWorkbenchExploreSidebarIntent, p as AgentWorkbenchExploreSidebarLabels, q as AgentWorkbenchExploreSidebarProps, r as AgentWorkbenchQuickStart, s as AgentWorkbenchQuickStartIntent, t as AgentWorkbenchQuickStartProps, u as AgentWorkbenchShell, v as AgentWorkbenchShellBreakpoints, w as AgentWorkbenchShellClassNames, x as AgentWorkbenchShellLabels, y as AgentWorkbenchShellLayout, z as AgentWorkbenchShellMeasurement, B as AgentWorkbenchShellProps, C as AgentWorkbenchSidebar, D as AgentWorkbenchSidebarClassNames, E as AgentWorkbenchSidebarContainer, F as AgentWorkbenchSidebarContainerBodyProps, G as AgentWorkbenchSidebarContainerClassNames, H as AgentWorkbenchSidebarContainerProps, I as AgentWorkbenchSidebarIntent, J as AgentWorkbenchSidebarProps, K as AgentWorkbenchTaskDetails, L as AgentWorkbenchTaskDetailsClassNames, M as AgentWorkbenchTaskDetailsProps, N as AgentWorkbenchTerminalModel, O as AgentWorkbenchTool, P as AgentWorkbenchToolClassNames, Q as AgentWorkbenchToolProps, R as createAgentWorkbenchActivityModel, S as createAgentWorkbenchDetailsModel, T as resolveAgentWorkbenchShellLayout } from './details-model-c55c1c493c48.js';
|
|
10
10
|
export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.js';
|
|
11
11
|
export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.js';
|
|
12
|
-
export { I as InteractiveTable, a as InteractiveTableClassNames, b as InteractiveTableColumn, c as InteractiveTableColumnMenuLabels, d as InteractiveTableEditableTextCell, e as InteractiveTableEditableTextCellProps, f as InteractiveTableHeaderContext, g as InteractiveTableHeaderProps, h as InteractiveTableProps, i as InteractiveTableReadonlyCell, j as InteractiveTableReadonlyCellProps, k as InteractiveTableRenderContext, l as InteractiveTableRowState, m as InteractiveTableSelectCell, n as InteractiveTableSelectCellProps, o as InteractiveTableSelectOption, W as WorkbenchAssetGallery, p as WorkbenchAssetGalleryItem, q as WorkbenchAssetGalleryProps, r as WorkbenchCollection, s as WorkbenchCollectionActivationEvent, t as WorkbenchCollectionAppearanceConfig, u as WorkbenchCollectionCallbacks, v as WorkbenchCollectionClassNames, w as WorkbenchCollectionConfig, x as WorkbenchCollectionGroupContext, y as WorkbenchCollectionGroupingConfig, z as WorkbenchCollectionHoverEffect, A as WorkbenchCollectionItemConfig, B as WorkbenchCollectionItemContext, C as WorkbenchCollectionItemSize, D as WorkbenchCollectionItemSlotName, E as WorkbenchCollectionItemSlots, F as WorkbenchCollectionItemStatus, G as WorkbenchCollectionItemTitleConfig, H as WorkbenchCollectionKey, J as WorkbenchCollectionLabels, K as WorkbenchCollectionLayoutConfig, L as WorkbenchCollectionLayoutContext, M as WorkbenchCollectionLayoutMode, N as WorkbenchCollectionLayoutSnapshot, O as WorkbenchCollectionLoadingConfig, P as WorkbenchCollectionLoadingVariant, Q as WorkbenchCollectionProps, R as WorkbenchCollectionResponsive, S as WorkbenchCollectionSelectionBehavior, T as WorkbenchCollectionSelectionConfig,
|
|
12
|
+
export { I as InteractiveTable, a as InteractiveTableClassNames, b as InteractiveTableColumn, c as InteractiveTableColumnMenuLabels, d as InteractiveTableEditableTextCell, e as InteractiveTableEditableTextCellProps, f as InteractiveTableHeaderContext, g as InteractiveTableHeaderProps, h as InteractiveTableProps, i as InteractiveTableReadonlyCell, j as InteractiveTableReadonlyCellProps, k as InteractiveTableRenderContext, l as InteractiveTableRowState, m as InteractiveTableSelectCell, n as InteractiveTableSelectCellProps, o as InteractiveTableSelectOption, U as UseWorkbenchCollectionSelectionOptions, W as WorkbenchAssetGallery, p as WorkbenchAssetGalleryItem, q as WorkbenchAssetGalleryProps, r as WorkbenchCollection, s as WorkbenchCollectionActivationEvent, t as WorkbenchCollectionAppearanceConfig, u as WorkbenchCollectionCallbacks, v as WorkbenchCollectionClassNames, w as WorkbenchCollectionConfig, x as WorkbenchCollectionGroupContext, y as WorkbenchCollectionGroupingConfig, z as WorkbenchCollectionHoverEffect, A as WorkbenchCollectionItemConfig, B as WorkbenchCollectionItemContext, C as WorkbenchCollectionItemSize, D as WorkbenchCollectionItemSlotName, E as WorkbenchCollectionItemSlots, F as WorkbenchCollectionItemStatus, G as WorkbenchCollectionItemTitleConfig, H as WorkbenchCollectionKey, J as WorkbenchCollectionLabels, K as WorkbenchCollectionLayoutConfig, L as WorkbenchCollectionLayoutContext, M as WorkbenchCollectionLayoutMode, N as WorkbenchCollectionLayoutSnapshot, O as WorkbenchCollectionLoadingConfig, P as WorkbenchCollectionLoadingVariant, Q as WorkbenchCollectionProps, R as WorkbenchCollectionResponsive, S as WorkbenchCollectionSelectionBehavior, T as WorkbenchCollectionSelectionChangeDetails, V as WorkbenchCollectionSelectionConfig, X as WorkbenchCollectionSelectionController, Y as WorkbenchCollectionSelectionIntent, Z as WorkbenchCollectionSelectionMode, _ as WorkbenchCollectionSkeletonConfig, $ as WorkbenchCollectionSlotContext, a0 as WorkbenchCollectionSlots, a1 as WorkbenchCollectionStateConfig, a2 as WorkbenchCollectionTitlePlacement, a3 as WorkbenchCollectionTitleVisibility, a4 as WorkbenchCollectionVirtualizationAdapter, a5 as WorkbenchCollectionVirtualizationConfig, a6 as WorkbenchCollectionVirtualizationRenderOptions, a7 as WorkbenchContentPane, a8 as WorkbenchContentPaneBodyProps, a9 as WorkbenchContentPaneClassNames, aa as WorkbenchContentPaneProps, ab as WorkbenchContentToolbar, ac as WorkbenchContentToolbarClassNames, ad as WorkbenchContentToolbarProps, ae as WorkbenchContentToolbarViewModeOption, af as WorkbenchDetailSidebar, ag as WorkbenchDetailSidebarBodyProps, ah as WorkbenchDetailSidebarClassNames, ai as WorkbenchDetailSidebarField, aj as WorkbenchDetailSidebarProps, ak as WorkbenchDetailSidebarRenderContext, al as WorkbenchDetailSidebarSection, am as WorkbenchEvidenceItem, an as WorkbenchEvidenceList, ao as WorkbenchEvidenceListProps, ap as WorkbenchGalleryCard, aq as WorkbenchGalleryCardMetaContext, ar as WorkbenchGalleryCardProps, as as WorkbenchGalleryCardRenderContext, at as WorkbenchGalleryColumn, au as WorkbenchGalleryLabels, av as WorkbenchGalleryRecordVisual, aw as WorkbenchGallerySettingsButton, ax as WorkbenchGallerySettingsButtonClassNames, ay as WorkbenchGallerySettingsButtonProps, az as WorkbenchGallerySettingsLabels, aA as WorkbenchGallerySettingsOption, aB as WorkbenchGallerySettingsPanel, aC as WorkbenchGallerySettingsPanelClassNames, aD as WorkbenchGallerySettingsPanelProps, aE as WorkbenchGallerySettingsValue, aF as WorkbenchGalleryView, aG as WorkbenchGalleryViewProps, aH as WorkbenchJourneyItem, aI as WorkbenchJourneyItemState, aJ as WorkbenchJourneyNavigation, aK as WorkbenchJourneyNavigationProps, aL as WorkbenchLaneClassNames, aM as WorkbenchLaneColumn, aN as WorkbenchLaneRenderCardContext, aO as WorkbenchLaneView, aP as WorkbenchLaneViewProps, aQ as WorkbenchMasonryItemSize, aR as WorkbenchMasonryLayout, aS as WorkbenchMasonryLayoutContext, aT as WorkbenchMasonryLayoutProps, aU as WorkbenchMetricGrid, aV as WorkbenchMetricGridDensity, aW as WorkbenchMetricGridProps, aX as WorkbenchMetricGridVariant, aY as WorkbenchMetricItem, aZ as WorkbenchRadarFilterChip, a_ as WorkbenchRadarFilterChipProps, a$ as WorkbenchRadarFilterRow, b0 as WorkbenchRadarFilterRowDisclosureBase, b1 as WorkbenchRadarFilterRowIntegratedDisclosure, b2 as WorkbenchRadarFilterRowProps, b3 as WorkbenchRadarFilterRowSeparateDisclosure, b4 as WorkbenchRadarInspectorSection, b5 as WorkbenchRadarLegendItem, b6 as WorkbenchRadarMatrix, b7 as WorkbenchRadarMatrixProps, b8 as WorkbenchRadarNavigation, b9 as WorkbenchRadarNavigationChild, ba as WorkbenchRadarNavigationItem, bb as WorkbenchRadarNavigationProps, bc as WorkbenchRadarQuadrant, bd as WorkbenchRadarWorkspace, be as WorkbenchRadarWorkspaceProps, bf as WorkbenchRankedList, bg as WorkbenchRankedListItem, bh as WorkbenchRankedListMetric, bi as WorkbenchRankedListProps, bj as WorkbenchRelationshipEdge, bk as WorkbenchRelationshipGraph, bl as WorkbenchRelationshipGraphProps, bm as WorkbenchRelationshipNode, bn as WorkbenchResizableSidebar, bo as WorkbenchResizableSidebarClassNames, bp as WorkbenchResizableSidebarItem, bq as WorkbenchResizableSidebarProps, br as WorkbenchResizableSidebarSection, bs as WorkbenchScatterAxis, bt as WorkbenchScatterPlot, bu as WorkbenchScatterPlotProps, bv as WorkbenchScatterPoint, bw as WorkbenchScatterThresholds, bx as WorkbenchSelectionTray, by as WorkbenchSelectionTrayItem, bz as WorkbenchSelectionTrayProps, bA as WorkbenchTableView, bB as WorkbenchTableViewClassNames, bC as WorkbenchTableViewColumn, bD as WorkbenchTableViewHeaderContext, bE as WorkbenchTableViewProps, bF as WorkbenchTableViewRenderContext, bG as WorkbenchVisualizationTone, bH as useWorkbenchCollectionSelection } from './WorkbenchRadarMatrix-39609aaa90a8.js';
|
|
13
13
|
export { MonkeysToastApi, MonkeysToastProvider, MonkeysToastProviderProps, MonkeysToaster, MonkeysToasterProps, ToastInput, MonkeysToastProvider as ToastProvider, ToastVariant, MonkeysToaster as Toaster, extractToastMessage, resolveToastVariantForMessage, toast, useToastFeed, useToastOnValue } from './components/toast/index.js';
|
|
14
14
|
export { B as BaseAccordion, a as BaseAspectRatio, b as BaseAvatar, c as BaseBadge, d as BaseBreadcrumb, e as BaseButton, f as BaseCheckbox, g as BaseCode, h as BaseContainer, i as BaseContextMenu, j as BaseContextMenuCheckboxItem, k as BaseContextMenuContent, l as BaseContextMenuItem, m as BaseContextMenuLabel, n as BaseContextMenuRadioGroup, o as BaseContextMenuRadioItem, p as BaseContextMenuSeparator, q as BaseContextMenuSub, r as BaseContextMenuSubContent, s as BaseContextMenuSubTrigger, t as BaseContextMenuTrigger, u as BaseDescriptionList, v as BaseDialog, w as BaseDivider, x as BaseDropdownMenu, y as BaseEmptyState, z as BaseField, A as BaseFieldset, C as BaseGrid, D as BaseHeading, E as BaseInline, F as BaseInput, G as BaseInputGroup, H as BaseKbd, I as BaseLayout, J as BaseLayoutPane, K as BaseLayoutResizeHandle, L as BaseLayoutSplit, M as BaseLink, N as BaseList, O as BaseListFooter, P as BaseListItem, Q as BaseLoadingState, R as BaseMultiSelect, S as BaseNotice, T as BaseNumberInput, U as BasePagination, V as BasePanel, W as BasePasswordInput, X as BasePortal, Y as BaseProgress, Z as BaseRadioGroup, _ as BaseScrollArea, $ as BaseSectionHeader, a0 as BaseSegmentedControl, a1 as BaseSelect, a2 as BaseSkeleton, a3 as BaseSpinner, a4 as BaseStack, a5 as BaseSteps, a6 as BaseSwitch, a7 as BaseSystemState, a8 as BaseTable, a9 as BaseTableBody, aa as BaseTableCaption, ab as BaseTableCell, ac as BaseTableContainer, ad as BaseTableEmpty, ae as BaseTableFooter, af as BaseTableFooterBar, ag as BaseTableHead, ah as BaseTableHeader, ai as BaseTableLoading, aj as BaseTableRow, ak as BaseTabs, al as BaseText, am as BaseTextarea, an as BaseToolbar, ao as BaseTooltip, ap as BaseVisuallyHidden, aq as getBaseBadgeToneClassName, ar as getBaseButtonToneClassName, as as getBaseMenuItemToneClassName, at as getBaseNoticeToneClassName, au as resolveBaseAppearance } from './theme-2d676ff768b3.js';
|
|
15
15
|
export { B as BaseAccordionClassNames, a as BaseAccordionItem, b as BaseAccordionProps, c as BaseAppearance, d as BaseAspectRatioClassNames, e as BaseAspectRatioProps, f as BaseAvatarClassNames, g as BaseAvatarProps, h as BaseBackground, i as BaseBadgeClassNames, j as BaseBadgeProps, k as BaseBorder, l as BaseBreadcrumbClassNames, m as BaseBreadcrumbItem, n as BaseBreadcrumbProps, o as BaseButtonClassNames, p as BaseButtonProps, q as BaseCheckboxClassNames, r as BaseCheckboxProps, s as BaseCodeClassNames, t as BaseCodeDisplay, u as BaseCodeProps, v as BaseComponentState, w as BaseContainerClassNames, x as BaseContainerProps, y as BaseContextMenuCheckboxItemProps, z as BaseContextMenuClassNames, A as BaseContextMenuContentClassNames, C as BaseContextMenuContentProps, D as BaseContextMenuItemClassNames, E as BaseContextMenuItemProps, F as BaseContextMenuLabelProps, G as BaseContextMenuProps, H as BaseContextMenuRadioGroupProps, I as BaseContextMenuRadioItemProps, J as BaseContextMenuSeparatorProps, K as BaseContextMenuSubContentProps, L as BaseContextMenuSubProps, M as BaseContextMenuSubTriggerProps, N as BaseContextMenuTriggerProps, O as BaseControlClassNames, P as BaseControlSize, Q as BaseControlTone, R as BaseDensity, S as BaseDescriptionListClassNames, T as BaseDescriptionListItem, U as BaseDescriptionListProps, V as BaseDialogClassNames, W as BaseDialogProps, X as BaseDividerClassNames, Y as BaseDividerProps, Z as BaseDropdownMenuClassNames, _ as BaseDropdownMenuItem, $ as BaseDropdownMenuPlacement, a0 as BaseDropdownMenuProps, a1 as BaseEmptyStateProps, a2 as BaseFieldClassNames, a3 as BaseFieldControlProps, a4 as BaseFieldProps, a5 as BaseFieldValidate, a6 as BaseFieldValidationMode, a7 as BaseFieldValidationResult, a8 as BaseFieldsetClassNames, a9 as BaseFieldsetProps, aa as BaseGridClassNames, ab as BaseGridColumns, ac as BaseGridProps, ad as BaseHeadingClassNames, ae as BaseHeadingLevel, af as BaseHeadingProps, ag as BaseHeadingSize, ah as BaseInlineClassNames, ai as BaseInlineProps, aj as BaseInputGroupClassNames, ak as BaseInputGroupProps, al as BaseInputProps, am as BaseKbdClassNames, an as BaseKbdProps, ao as BaseLayoutAlign, ap as BaseLayoutClassNames, aq as BaseLayoutGap, ar as BaseLayoutJustify, as as BaseLayoutLength, at as BaseLayoutOrientation, au as BaseLayoutPaneClassNames, av as BaseLayoutPaneProps, aw as BaseLayoutPaneSurface, ax as BaseLayoutProps, ay as BaseLayoutResizeHandleClassNames, az as BaseLayoutResizeHandleProps, aA as BaseLayoutSize, aB as BaseLayoutSplitClassNames, aC as BaseLayoutSplitProps, aD as BaseLinkClassNames, aE as BaseLinkProps, aF as BaseListClassNames, aG as BaseListFooterClassNames, aH as BaseListFooterProps, aI as BaseListItemClassNames, aJ as BaseListItemProps, aK as BaseListMarker, aL as BaseListProps, aM as BaseListSpacing, aN as BaseLoadingStateProps, aO as BaseMultiSelectClassNames, aP as BaseMultiSelectOption, aQ as BaseMultiSelectProps, aR as BaseNoticeClassNames, aS as BaseNoticeProps, aT as BaseNumberInputChangeReason, aU as BaseNumberInputClassNames, aV as BaseNumberInputProps, aW as BaseNumberInputValueChangeDetails, aX as BasePaginationClassNames, aY as BasePaginationProps, aZ as BasePanelClassNames, a_ as BasePanelProps, a$ as BasePasswordInputClassNames, b0 as BasePasswordInputProps, b1 as BasePortalContainer, b2 as BasePortalProps, b3 as BaseProgressClassNames, b4 as BaseProgressProps, b5 as BaseRadioGroupClassNames, b6 as BaseRadioGroupProps, b7 as BaseRadioOption, b8 as BaseRadius, b9 as BaseResolvedTheme, ba as BaseScrollAreaAxis, bb as BaseScrollAreaClassNames, bc as BaseScrollAreaProps, bd as BaseSectionHeaderClassNames, be as BaseSectionHeaderProps, bf as BaseSegmentedControlClassNames, bg as BaseSegmentedControlOption, bh as BaseSegmentedControlProps, bi as BaseSelectOption, bj as BaseSelectProps, bk as BaseSkeletonClassNames, bl as BaseSkeletonProps, bm as BaseSpinnerClassNames, bn as BaseSpinnerProps, bo as BaseStackClassNames, bp as BaseStackProps, bq as BaseStateClassNames, br as BaseStepItem, bs as BaseStepStatus, bt as BaseStepsClassNames, bu as BaseStepsProps, bv as BaseStepsStatusLabels, bw as BaseSwitchClassNames, bx as BaseSwitchProps, by as BaseSystemStateKind, bz as BaseSystemStateProps, bA as BaseTableAlign, bB as BaseTableBodyProps, bC as BaseTableCaptionClassNames, bD as BaseTableCaptionProps, bE as BaseTableCellClassNames, bF as BaseTableCellProps, bG as BaseTableClassNames, bH as BaseTableColumnDefinition, bI as BaseTableColumnInteractionOptions, bJ as BaseTableColumnOrderChangeDetail, bK as BaseTableColumnSizeChangeDetail, bL as BaseTableColumnSizes, bM as BaseTableContainerClassNames, bN as BaseTableContainerProps, bO as BaseTableEmptyClassNames, bP as BaseTableEmptyProps, bQ as BaseTableFooterBarClassNames, bR as BaseTableFooterBarProps, bS as BaseTableFooterProps, bT as BaseTableHeadClassNames, bU as BaseTableHeadProps, bV as BaseTableHeaderProps, bW as BaseTableLayout, bX as BaseTableLoadingClassNames, bY as BaseTableLoadingProps, bZ as BaseTableProps, b_ as BaseTableRowClassNames, b$ as BaseTableRowProps, c0 as BaseTableSectionClassNames, c1 as BaseTableSortDirection, c2 as BaseTableVerticalAlign, c3 as BaseTabsClassNames, c4 as BaseTabsItem, c5 as BaseTabsProps, c6 as BaseTextClassNames, c7 as BaseTextProps, c8 as BaseTextareaProps, c9 as BaseThemePresetId, ca as BaseThemeSlots, cb as BaseThemeStyles, cc as BaseToolbarClassNames, cd as BaseToolbarProps, ce as BaseTooltipClassNames, cf as BaseTooltipPlacement, cg as BaseTooltipProps, ch as BaseTypographySize, ci as BaseTypographyTone, cj as BaseVariant, ck as BaseVisuallyHiddenClassNames, cl as BaseVisuallyHiddenProps } from './types-c6ec8b90925b.js';
|
package/dist/index.js
CHANGED
|
@@ -30780,6 +30780,142 @@ function WorkbenchCollectionSkeleton({
|
|
|
30780
30780
|
}
|
|
30781
30781
|
);
|
|
30782
30782
|
}
|
|
30783
|
+
function setsEqual(left, right) {
|
|
30784
|
+
if (left.size !== right.size) return false;
|
|
30785
|
+
for (const value of left) {
|
|
30786
|
+
if (!right.has(value)) return false;
|
|
30787
|
+
}
|
|
30788
|
+
return true;
|
|
30789
|
+
}
|
|
30790
|
+
function getComparableKey(key) {
|
|
30791
|
+
return String(key);
|
|
30792
|
+
}
|
|
30793
|
+
function getDefaultBehavior(mode) {
|
|
30794
|
+
return mode === "multiple" ? "toggle" : "replace";
|
|
30795
|
+
}
|
|
30796
|
+
function useWorkbenchCollectionSelection({
|
|
30797
|
+
items,
|
|
30798
|
+
getItemKey,
|
|
30799
|
+
mode = "none",
|
|
30800
|
+
behavior,
|
|
30801
|
+
selectedKeys: controlledSelectedKeys,
|
|
30802
|
+
defaultSelectedKeys,
|
|
30803
|
+
isItemDisabled,
|
|
30804
|
+
onSelectionChange
|
|
30805
|
+
}) {
|
|
30806
|
+
const controlled = controlledSelectedKeys !== void 0;
|
|
30807
|
+
const [internalSelectedKeys, setInternalSelectedKeys] = React4.useState(
|
|
30808
|
+
() => new Set(defaultSelectedKeys ?? [])
|
|
30809
|
+
);
|
|
30810
|
+
const anchorKeyRef = React4.useRef(null);
|
|
30811
|
+
const onSelectionChangeRef = React4.useRef(onSelectionChange);
|
|
30812
|
+
onSelectionChangeRef.current = onSelectionChange;
|
|
30813
|
+
const normalizedItems = React4.useMemo(() => {
|
|
30814
|
+
const seenKeys = /* @__PURE__ */ new Map();
|
|
30815
|
+
return items.map((item, index) => {
|
|
30816
|
+
const key = getItemKey(item, index);
|
|
30817
|
+
const comparableKey = getComparableKey(key);
|
|
30818
|
+
const duplicateIndex = seenKeys.get(comparableKey);
|
|
30819
|
+
if (duplicateIndex !== void 0) {
|
|
30820
|
+
throw new TypeError(
|
|
30821
|
+
`useWorkbenchCollectionSelection received duplicate item key "${comparableKey}" at indices ${duplicateIndex} and ${index}.`
|
|
30822
|
+
);
|
|
30823
|
+
}
|
|
30824
|
+
seenKeys.set(comparableKey, index);
|
|
30825
|
+
return { item, index, key };
|
|
30826
|
+
});
|
|
30827
|
+
}, [getItemKey, items]);
|
|
30828
|
+
const itemByKey = React4.useMemo(() => {
|
|
30829
|
+
const entries = /* @__PURE__ */ new Map();
|
|
30830
|
+
normalizedItems.forEach((entry) => entries.set(entry.key, entry));
|
|
30831
|
+
return entries;
|
|
30832
|
+
}, [normalizedItems]);
|
|
30833
|
+
const selectedKeys = React4.useMemo(
|
|
30834
|
+
() => mode === "none" ? /* @__PURE__ */ new Set() : controlled ? new Set(controlledSelectedKeys ?? []) : internalSelectedKeys,
|
|
30835
|
+
[controlled, controlledSelectedKeys, internalSelectedKeys, mode]
|
|
30836
|
+
);
|
|
30837
|
+
const selectedKeysRef = React4.useRef(selectedKeys);
|
|
30838
|
+
selectedKeysRef.current = selectedKeys;
|
|
30839
|
+
const resetAnchor = React4.useCallback(() => {
|
|
30840
|
+
anchorKeyRef.current = null;
|
|
30841
|
+
}, []);
|
|
30842
|
+
React4.useEffect(() => {
|
|
30843
|
+
if (controlled) return;
|
|
30844
|
+
const availableKeys = new Set(normalizedItems.map(({ key }) => key));
|
|
30845
|
+
setInternalSelectedKeys((previous) => {
|
|
30846
|
+
const next = new Set(Array.from(previous).filter((key) => availableKeys.has(key)));
|
|
30847
|
+
if (setsEqual(previous, next)) return previous;
|
|
30848
|
+
selectedKeysRef.current = next;
|
|
30849
|
+
return next;
|
|
30850
|
+
});
|
|
30851
|
+
}, [controlled, normalizedItems]);
|
|
30852
|
+
React4.useEffect(() => {
|
|
30853
|
+
const anchorKey = anchorKeyRef.current;
|
|
30854
|
+
if (mode !== "multiple" || selectedKeys.size === 0 || anchorKey === null) {
|
|
30855
|
+
resetAnchor();
|
|
30856
|
+
return;
|
|
30857
|
+
}
|
|
30858
|
+
const anchor = itemByKey.get(anchorKey);
|
|
30859
|
+
if (!anchor || isItemDisabled?.(anchor.item, anchor.index)) resetAnchor();
|
|
30860
|
+
}, [isItemDisabled, itemByKey, mode, resetAnchor, selectedKeys.size]);
|
|
30861
|
+
const selectKey = React4.useCallback((key, intent = {}) => {
|
|
30862
|
+
if (mode === "none") return;
|
|
30863
|
+
const entry = itemByKey.get(key);
|
|
30864
|
+
if (!entry || isItemDisabled?.(entry.item, entry.index)) return;
|
|
30865
|
+
const current = new Set(selectedKeysRef.current);
|
|
30866
|
+
const configuredBehavior = behavior ?? getDefaultBehavior(mode);
|
|
30867
|
+
let effectiveBehavior = intent.shiftKey && mode === "multiple" ? "range" : intent.behavior ?? configuredBehavior;
|
|
30868
|
+
if (mode === "single") {
|
|
30869
|
+
effectiveBehavior = effectiveBehavior === "toggle" ? "toggle" : "replace";
|
|
30870
|
+
}
|
|
30871
|
+
const anchor = anchorKeyRef.current === null ? void 0 : itemByKey.get(anchorKeyRef.current);
|
|
30872
|
+
const hasValidAnchor = Boolean(
|
|
30873
|
+
anchor && !isItemDisabled?.(anchor.item, anchor.index)
|
|
30874
|
+
);
|
|
30875
|
+
if (mode === "multiple" && effectiveBehavior === "range" && !hasValidAnchor) {
|
|
30876
|
+
effectiveBehavior = configuredBehavior === "range" ? "toggle" : configuredBehavior;
|
|
30877
|
+
}
|
|
30878
|
+
const next = /* @__PURE__ */ new Set();
|
|
30879
|
+
if (mode === "single") {
|
|
30880
|
+
if (!(effectiveBehavior === "toggle" && current.has(entry.key))) next.add(entry.key);
|
|
30881
|
+
} else if (effectiveBehavior === "range" && anchor) {
|
|
30882
|
+
current.forEach((selectedKey) => next.add(selectedKey));
|
|
30883
|
+
const start = Math.min(anchor.index, entry.index);
|
|
30884
|
+
const end = Math.max(anchor.index, entry.index);
|
|
30885
|
+
normalizedItems.slice(start, end + 1).forEach((candidate) => {
|
|
30886
|
+
if (!isItemDisabled?.(candidate.item, candidate.index)) next.add(candidate.key);
|
|
30887
|
+
});
|
|
30888
|
+
} else if (effectiveBehavior === "replace") {
|
|
30889
|
+
next.add(entry.key);
|
|
30890
|
+
} else {
|
|
30891
|
+
current.forEach((selectedKey) => next.add(selectedKey));
|
|
30892
|
+
if (next.has(entry.key)) next.delete(entry.key);
|
|
30893
|
+
else next.add(entry.key);
|
|
30894
|
+
}
|
|
30895
|
+
anchorKeyRef.current = mode === "multiple" ? entry.key : null;
|
|
30896
|
+
if (!controlled) {
|
|
30897
|
+
selectedKeysRef.current = next;
|
|
30898
|
+
setInternalSelectedKeys(next);
|
|
30899
|
+
}
|
|
30900
|
+
onSelectionChangeRef.current?.(next, {
|
|
30901
|
+
item: entry.item,
|
|
30902
|
+
index: entry.index,
|
|
30903
|
+
key: entry.key,
|
|
30904
|
+
behavior: effectiveBehavior
|
|
30905
|
+
});
|
|
30906
|
+
}, [behavior, controlled, isItemDisabled, itemByKey, mode, normalizedItems]);
|
|
30907
|
+
const isSelected = React4.useCallback(
|
|
30908
|
+
(key) => selectedKeys.has(key),
|
|
30909
|
+
[selectedKeys]
|
|
30910
|
+
);
|
|
30911
|
+
return {
|
|
30912
|
+
mode,
|
|
30913
|
+
selectedKeys,
|
|
30914
|
+
isSelected,
|
|
30915
|
+
selectKey,
|
|
30916
|
+
resetAnchor
|
|
30917
|
+
};
|
|
30918
|
+
}
|
|
30783
30919
|
var DEFAULT_GAP_PX = 12;
|
|
30784
30920
|
var DEFAULT_ROW_HEIGHT_PX = 8;
|
|
30785
30921
|
var DEFAULT_CARD_WIDTH_PX = 280;
|
|
@@ -30903,13 +31039,6 @@ function getParentScrollOwner(node) {
|
|
|
30903
31039
|
}
|
|
30904
31040
|
return null;
|
|
30905
31041
|
}
|
|
30906
|
-
function setsEqual(left, right) {
|
|
30907
|
-
if (left.size !== right.size) return false;
|
|
30908
|
-
for (const value of left) {
|
|
30909
|
-
if (!right.has(value)) return false;
|
|
30910
|
-
}
|
|
30911
|
-
return true;
|
|
30912
|
-
}
|
|
30913
31042
|
function isInteractiveEventTarget(target, currentTarget) {
|
|
30914
31043
|
if (typeof Element === "undefined" || !(target instanceof Element) || target === currentTarget) return false;
|
|
30915
31044
|
const control = target.closest(
|
|
@@ -30917,19 +31046,6 @@ function isInteractiveEventTarget(target, currentTarget) {
|
|
|
30917
31046
|
);
|
|
30918
31047
|
return Boolean(control && currentTarget.contains(control));
|
|
30919
31048
|
}
|
|
30920
|
-
function warnOnDuplicateKeys(keys) {
|
|
30921
|
-
if (typeof process !== "undefined" && process.env?.NODE_ENV === "production") return;
|
|
30922
|
-
const seen = /* @__PURE__ */ new Set();
|
|
30923
|
-
const duplicates = /* @__PURE__ */ new Set();
|
|
30924
|
-
keys.forEach((key) => {
|
|
30925
|
-
const stringKey = String(key);
|
|
30926
|
-
if (seen.has(stringKey)) duplicates.add(stringKey);
|
|
30927
|
-
seen.add(stringKey);
|
|
30928
|
-
});
|
|
30929
|
-
if (duplicates.size) {
|
|
30930
|
-
console.warn(`WorkbenchCollection received duplicate item keys: ${Array.from(duplicates).join(", ")}`);
|
|
30931
|
-
}
|
|
30932
|
-
}
|
|
30933
31049
|
function normalizeTitleMaxLines(value) {
|
|
30934
31050
|
if (!Number.isFinite(value) || Number(value) <= 0) return void 0;
|
|
30935
31051
|
return clamp7(Math.round(Number(value)), 1, 12);
|
|
@@ -30952,7 +31068,6 @@ function WorkbenchCollection({
|
|
|
30952
31068
|
const rootRef = React4.useRef(null);
|
|
30953
31069
|
const itemsRef = React4.useRef(null);
|
|
30954
31070
|
const loadMoreRef = React4.useRef(null);
|
|
30955
|
-
const lastSelectedIndexRef = React4.useRef(null);
|
|
30956
31071
|
const loadMoreRequestPendingRef = React4.useRef(false);
|
|
30957
31072
|
const loadMoreIntersectionActiveRef = React4.useRef(false);
|
|
30958
31073
|
const loadMoreIntersectionConsumedRef = React4.useRef(false);
|
|
@@ -30961,9 +31076,6 @@ function WorkbenchCollection({
|
|
|
30961
31076
|
const layoutReadyRef = React4.useRef(false);
|
|
30962
31077
|
const [containerWidth, setContainerWidth] = React4.useState(0);
|
|
30963
31078
|
const [itemsNode, setItemsNode] = React4.useState(null);
|
|
30964
|
-
const [internalSelectedKeys, setInternalSelectedKeys] = React4.useState(
|
|
30965
|
-
() => new Set(config.selection?.defaultSelectedKeys ?? [])
|
|
30966
|
-
);
|
|
30967
31079
|
const callbacksRef = React4.useRef(callbacks);
|
|
30968
31080
|
callbacksRef.current = callbacks;
|
|
30969
31081
|
const registerItemsNode = React4.useCallback((node) => {
|
|
@@ -30981,10 +31093,6 @@ function WorkbenchCollection({
|
|
|
30981
31093
|
const key = getItemKey(item, index);
|
|
30982
31094
|
return { item, index, key, stringKey: String(key) };
|
|
30983
31095
|
}), [getItemKey, items]);
|
|
30984
|
-
const keys = React4.useMemo(
|
|
30985
|
-
() => normalizedItems.map(({ key }) => key),
|
|
30986
|
-
[normalizedItems]
|
|
30987
|
-
);
|
|
30988
31096
|
const keysSignature = normalizedItems.map(({ stringKey }) => stringKey).join("");
|
|
30989
31097
|
const state = config.state;
|
|
30990
31098
|
const loading = state?.loading === true;
|
|
@@ -30992,21 +31100,32 @@ function WorkbenchCollection({
|
|
|
30992
31100
|
const hasMore = state?.hasMore === true;
|
|
30993
31101
|
const loadingVariant = resolveWorkbenchCollectionLoadingVariant(config.loading?.variant);
|
|
30994
31102
|
const layoutItemCount = loading && normalizedItems.length === 0 && loadingVariant === "skeleton" ? resolveWorkbenchCollectionSkeletonCapacity(config.loading?.skeleton) : normalizedItems.length;
|
|
30995
|
-
React4.useEffect(() => warnOnDuplicateKeys(keys), [keys, keysSignature]);
|
|
30996
31103
|
const selectionMode = config.selection?.mode ?? "none";
|
|
30997
|
-
const
|
|
30998
|
-
|
|
30999
|
-
|
|
31000
|
-
[config.selection?.selectedKeys, controlledSelection, internalSelectedKeys, selectionMode]
|
|
31104
|
+
const isSelectionItemDisabled = React4.useCallback(
|
|
31105
|
+
(entry) => config.selection?.isItemDisabled?.(entry.item, entry.index) ?? false,
|
|
31106
|
+
[config.selection?.isItemDisabled]
|
|
31001
31107
|
);
|
|
31002
|
-
React4.
|
|
31003
|
-
|
|
31004
|
-
|
|
31005
|
-
|
|
31006
|
-
|
|
31007
|
-
|
|
31108
|
+
const getSelectionItemKey = React4.useCallback(
|
|
31109
|
+
(entry) => entry.key,
|
|
31110
|
+
[]
|
|
31111
|
+
);
|
|
31112
|
+
const handleSelectionChange = React4.useCallback((next, details) => {
|
|
31113
|
+
callbacksRef.current?.onSelectionChange?.(next, {
|
|
31114
|
+
item: details.item.item,
|
|
31115
|
+
key: details.key,
|
|
31116
|
+
behavior: details.behavior
|
|
31008
31117
|
});
|
|
31009
|
-
}, [
|
|
31118
|
+
}, []);
|
|
31119
|
+
const { selectedKeys, selectKey } = useWorkbenchCollectionSelection({
|
|
31120
|
+
items: normalizedItems,
|
|
31121
|
+
getItemKey: getSelectionItemKey,
|
|
31122
|
+
mode: selectionMode,
|
|
31123
|
+
behavior: config.selection?.behavior,
|
|
31124
|
+
selectedKeys: config.selection?.selectedKeys,
|
|
31125
|
+
defaultSelectedKeys: config.selection?.defaultSelectedKeys,
|
|
31126
|
+
isItemDisabled: isSelectionItemDisabled,
|
|
31127
|
+
onSelectionChange: handleSelectionChange
|
|
31128
|
+
});
|
|
31010
31129
|
React4.useEffect(() => {
|
|
31011
31130
|
const node = itemsNode;
|
|
31012
31131
|
if (!node) return void 0;
|
|
@@ -31244,30 +31363,6 @@ function WorkbenchCollection({
|
|
|
31244
31363
|
});
|
|
31245
31364
|
return Array.from(grouped.values());
|
|
31246
31365
|
}, [config.grouping, normalizedItems]);
|
|
31247
|
-
const setSelection = React4.useCallback((entry, behavior = config.selection?.behavior ?? (selectionMode === "multiple" ? "toggle" : "replace")) => {
|
|
31248
|
-
if (selectionMode === "none" || config.selection?.isItemDisabled?.(entry.item, entry.index)) return;
|
|
31249
|
-
const current = new Set(selectedKeys);
|
|
31250
|
-
const next = /* @__PURE__ */ new Set();
|
|
31251
|
-
if (selectionMode === "single") {
|
|
31252
|
-
if (!(behavior === "toggle" && current.has(entry.key))) next.add(entry.key);
|
|
31253
|
-
} else if (behavior === "range" && lastSelectedIndexRef.current !== null) {
|
|
31254
|
-
current.forEach((key) => next.add(key));
|
|
31255
|
-
const start = Math.min(lastSelectedIndexRef.current, entry.index);
|
|
31256
|
-
const end = Math.max(lastSelectedIndexRef.current, entry.index);
|
|
31257
|
-
normalizedItems.slice(start, end + 1).forEach((candidate) => {
|
|
31258
|
-
if (!config.selection?.isItemDisabled?.(candidate.item, candidate.index)) next.add(candidate.key);
|
|
31259
|
-
});
|
|
31260
|
-
} else if (behavior === "replace") {
|
|
31261
|
-
next.add(entry.key);
|
|
31262
|
-
} else {
|
|
31263
|
-
current.forEach((key) => next.add(key));
|
|
31264
|
-
if (next.has(entry.key)) next.delete(entry.key);
|
|
31265
|
-
else next.add(entry.key);
|
|
31266
|
-
}
|
|
31267
|
-
lastSelectedIndexRef.current = entry.index;
|
|
31268
|
-
if (!controlledSelection) setInternalSelectedKeys(next);
|
|
31269
|
-
callbacks?.onSelectionChange?.(next, { item: entry.item, key: entry.key, behavior });
|
|
31270
|
-
}, [callbacks, config.selection, controlledSelection, normalizedItems, selectedKeys, selectionMode]);
|
|
31271
31366
|
const createItemContext = React4.useCallback((entry, layout) => {
|
|
31272
31367
|
const disabled = config.selection?.isItemDisabled?.(entry.item, entry.index) ?? false;
|
|
31273
31368
|
const context = {
|
|
@@ -31279,7 +31374,11 @@ function WorkbenchCollection({
|
|
|
31279
31374
|
selected: selectedKeys.has(entry.key),
|
|
31280
31375
|
selectionMode,
|
|
31281
31376
|
layout,
|
|
31282
|
-
select: (behavior) =>
|
|
31377
|
+
select: (behavior) => selectKey(entry.key, { behavior }),
|
|
31378
|
+
selectFromEvent: (event, behavior) => selectKey(entry.key, {
|
|
31379
|
+
behavior,
|
|
31380
|
+
shiftKey: event.shiftKey
|
|
31381
|
+
}),
|
|
31283
31382
|
preview: () => callbacks?.onItemPreview?.(entry.item, context),
|
|
31284
31383
|
detail: () => callbacks?.onItemDetail?.(entry.item, context),
|
|
31285
31384
|
renderSlot: (name) => {
|
|
@@ -31289,12 +31388,12 @@ function WorkbenchCollection({
|
|
|
31289
31388
|
notifyMediaError: (error) => callbacks?.onMediaError?.(entry.item, context, error)
|
|
31290
31389
|
};
|
|
31291
31390
|
return context;
|
|
31292
|
-
}, [callbacks, config.getItemStatus, config.selection, selectedKeys,
|
|
31391
|
+
}, [callbacks, config.getItemStatus, config.selection, selectedKeys, selectKey, selectionMode, slots?.item]);
|
|
31293
31392
|
const getItemInteractionProps = React4.useCallback((entry, context) => {
|
|
31294
31393
|
const handleKeyboard = (event) => {
|
|
31295
31394
|
if (event.target !== event.currentTarget || event.key !== "Enter" && event.key !== " ") return;
|
|
31296
31395
|
event.preventDefault();
|
|
31297
|
-
if (selectionMode !== "none") context.
|
|
31396
|
+
if (selectionMode !== "none") context.selectFromEvent(event);
|
|
31298
31397
|
else callbacks?.onItemClick?.(entry.item, context, event);
|
|
31299
31398
|
};
|
|
31300
31399
|
return {
|
|
@@ -31323,7 +31422,7 @@ function WorkbenchCollection({
|
|
|
31323
31422
|
),
|
|
31324
31423
|
onClick: (event) => {
|
|
31325
31424
|
if (isInteractiveEventTarget(event.target, event.currentTarget)) return;
|
|
31326
|
-
if (selectionMode !== "none") context.
|
|
31425
|
+
if (selectionMode !== "none") context.selectFromEvent(event);
|
|
31327
31426
|
callbacks?.onItemClick?.(entry.item, context, event);
|
|
31328
31427
|
},
|
|
31329
31428
|
onDoubleClick: (event) => {
|
|
@@ -34951,6 +35050,7 @@ exports.useMonkeysResolvedTheme = useMonkeysResolvedTheme;
|
|
|
34951
35050
|
exports.useMonkeysStatusStates = useMonkeysStatusStates;
|
|
34952
35051
|
exports.useToastFeed = useToastFeed;
|
|
34953
35052
|
exports.useToastOnValue = useToastOnValue;
|
|
35053
|
+
exports.useWorkbenchCollectionSelection = useWorkbenchCollectionSelection;
|
|
34954
35054
|
exports.zhCN = zhCN;
|
|
34955
35055
|
//# sourceMappingURL=index.js.map
|
|
34956
35056
|
//# sourceMappingURL=index.js.map
|