@bfrs/agentic-components 0.7.4 → 0.7.6
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/assets/loader/loader-brand-watermark.svg.js +5 -0
- package/dist/assets/loader/loader-brand-watermark.svg.js.map +1 -0
- package/dist/assets/loader/loader-grid-horizontal.svg.js +5 -0
- package/dist/assets/loader/loader-grid-horizontal.svg.js.map +1 -0
- package/dist/assets/loader/loader-grid-vertical.svg.js +5 -0
- package/dist/assets/loader/loader-grid-vertical.svg.js.map +1 -0
- package/dist/components/data-display/DataTable/DataTable.js +686 -0
- package/dist/components/data-display/DataTable/DataTable.js.map +1 -0
- package/dist/components/data-display/DataTable/TableBulkActions.js +46 -0
- package/dist/components/data-display/DataTable/TableBulkActions.js.map +1 -0
- package/dist/components/data-display/DataTable/TableColumnVisibility.js +252 -0
- package/dist/components/data-display/DataTable/TableColumnVisibility.js.map +1 -0
- package/dist/components/data-display/DataTable/TableEmptyState.js +9 -0
- package/dist/components/data-display/DataTable/TableEmptyState.js.map +1 -0
- package/dist/components/data-display/DataTable/TableErrorState.js +9 -0
- package/dist/components/data-display/DataTable/TableErrorState.js.map +1 -0
- package/dist/components/data-display/DataTable/TablePagination.js +195 -0
- package/dist/components/data-display/DataTable/TablePagination.js.map +1 -0
- package/dist/components/data-display/DataTable/TableRowActions.js +17 -0
- package/dist/components/data-display/DataTable/TableRowActions.js.map +1 -0
- package/dist/components/data-display/DataTable/TableSaveView.js +410 -0
- package/dist/components/data-display/DataTable/TableSaveView.js.map +1 -0
- package/dist/components/data-display/DataTable/TableSkeleton.js +62 -0
- package/dist/components/data-display/DataTable/TableSkeleton.js.map +1 -0
- package/dist/components/data-display/DataTable/TableToolbar.js +81 -0
- package/dist/components/data-display/DataTable/TableToolbar.js.map +1 -0
- package/dist/components/data-display/DataTable/TableViewSelector.js +661 -0
- package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -0
- package/dist/components/data-display/DataTable/saveViewApi.js +202 -0
- package/dist/components/data-display/DataTable/saveViewApi.js.map +1 -0
- package/dist/components/data-display/DataTable/useSavedViews.js +65 -0
- package/dist/components/data-display/DataTable/useSavedViews.js.map +1 -0
- package/dist/components/data-display/DataTable/viewStore.js +278 -0
- package/dist/components/data-display/DataTable/viewStore.js.map +1 -0
- package/dist/components/data-display/MetricCard/MetricCard.js +176 -0
- package/dist/components/data-display/MetricCard/MetricCard.js.map +1 -0
- package/dist/components/data-display/Table/Table.js +158 -0
- package/dist/components/data-display/Table/Table.js.map +1 -0
- package/dist/components/feedback/EmptyState/EmptyState.js +118 -0
- package/dist/components/feedback/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/feedback/ErrorState/ErrorState.js +111 -0
- package/dist/components/feedback/ErrorState/ErrorState.js.map +1 -0
- package/dist/components/feedback/LoadingState/LoadingState.js +78 -0
- package/dist/components/feedback/LoadingState/LoadingState.js.map +1 -0
- package/dist/components/feedback/Toast/Toast.context.js +13 -0
- package/dist/components/feedback/Toast/Toast.context.js.map +1 -0
- package/dist/components/feedback/Toast/Toast.js +246 -0
- package/dist/components/feedback/Toast/Toast.js.map +1 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.js +1109 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.utils.js +111 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.utils.js.map +1 -0
- package/dist/components/filters/FilterBar/FilterBar.js +134 -0
- package/dist/components/filters/FilterBar/FilterBar.js.map +1 -0
- package/dist/components/filters/FilterDrawer/FilterDrawer.js +64 -0
- package/dist/components/filters/FilterDrawer/FilterDrawer.js.map +1 -0
- package/dist/components/layout/FormSection/FormSection.js +107 -0
- package/dist/components/layout/FormSection/FormSection.js.map +1 -0
- package/dist/components/layout/ListPageLayout/ListPageLayout.js +163 -0
- package/dist/components/layout/ListPageLayout/ListPageLayout.js.map +1 -0
- package/dist/components/layout/PageHeader/PageHeader.js +107 -0
- package/dist/components/layout/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/layout/SectionHeader/SectionHeader.js +67 -0
- package/dist/components/layout/SectionHeader/SectionHeader.js.map +1 -0
- package/dist/components/navigation/ActionMenu/ActionMenu.js +141 -0
- package/dist/components/navigation/ActionMenu/ActionMenu.js.map +1 -0
- package/dist/components/navigation/Tabs/Tabs.js +166 -0
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -0
- package/dist/components/overlays/ConfirmDialog/ConfirmDialog.js +67 -0
- package/dist/components/overlays/ConfirmDialog/ConfirmDialog.js.map +1 -0
- package/dist/components/overlays/Drawer/Drawer.js +188 -0
- package/dist/components/overlays/Drawer/Drawer.js.map +1 -0
- package/dist/components/overlays/Modal/Modal.js +184 -0
- package/dist/components/overlays/Modal/Modal.js.map +1 -0
- package/dist/components/primitives/Badge/Badge.js +82 -0
- package/dist/components/primitives/Badge/Badge.js.map +1 -0
- package/dist/components/primitives/Button/Button.js +321 -0
- package/dist/components/primitives/Button/Button.js.map +1 -0
- package/dist/components/primitives/Button/ButtonGroup.js +33 -0
- package/dist/components/primitives/Button/ButtonGroup.js.map +1 -0
- package/dist/components/primitives/Card/Card.js +153 -0
- package/dist/components/primitives/Card/Card.js.map +1 -0
- package/dist/components/primitives/Chip/Chip.js +199 -0
- package/dist/components/primitives/Chip/Chip.js.map +1 -0
- package/dist/components/primitives/Input/Input.js +415 -0
- package/dist/components/primitives/Input/Input.js.map +1 -0
- package/dist/components/ui/data-display/Avatar/Avatar.js +73 -0
- package/dist/components/ui/data-display/Avatar/Avatar.js.map +1 -0
- package/dist/components/ui/data-display/KpiCard/KpiCard.js +73 -0
- package/dist/components/ui/data-display/KpiCard/KpiCard.js.map +1 -0
- package/dist/components/ui/feedback/Alert/Alert.js +113 -0
- package/dist/components/ui/feedback/Alert/Alert.js.map +1 -0
- package/dist/components/ui/feedback/InfoCard/InfoCard.js +86 -0
- package/dist/components/ui/feedback/InfoCard/InfoCard.js.map +1 -0
- package/dist/components/ui/feedback/ProgressBar/ProgressBar.js +148 -0
- package/dist/components/ui/feedback/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ui/feedback/Skeleton/Skeleton.js +55 -0
- package/dist/components/ui/feedback/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/ui/feedback/Spinner/Spinner.js +29 -0
- package/dist/components/ui/feedback/Spinner/Spinner.js.map +1 -0
- package/dist/components/ui/feedback/Tip/Tip.js +48 -0
- package/dist/components/ui/feedback/Tip/Tip.js.map +1 -0
- package/dist/components/ui/feedback/warningVisual.js +36 -0
- package/dist/components/ui/feedback/warningVisual.js.map +1 -0
- package/dist/components/ui/forms/Checkbox/Checkbox.js +137 -0
- package/dist/components/ui/forms/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/ui/forms/ColorPicker/ColorPicker.js +222 -0
- package/dist/components/ui/forms/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/ui/forms/ColorSwatchGroup/ColorSwatchGroup.js +168 -0
- package/dist/components/ui/forms/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -0
- package/dist/components/ui/forms/FileDropzone/FileDropzone.js +354 -0
- package/dist/components/ui/forms/FileDropzone/FileDropzone.js.map +1 -0
- package/dist/components/ui/forms/FormField/FormField.js +55 -0
- package/dist/components/ui/forms/FormField/FormField.js.map +1 -0
- package/dist/components/ui/forms/Label/Label.js +34 -0
- package/dist/components/ui/forms/Label/Label.js.map +1 -0
- package/dist/components/ui/forms/MultiSelect/MultiSelect.js +546 -0
- package/dist/components/ui/forms/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/ui/forms/NumberStepper/NumberStepper.js +146 -0
- package/dist/components/ui/forms/NumberStepper/NumberStepper.js.map +1 -0
- package/dist/components/ui/forms/OptionCardGroup/OptionCardGroup.js +179 -0
- package/dist/components/ui/forms/OptionCardGroup/OptionCardGroup.js.map +1 -0
- package/dist/components/ui/forms/Radio/Radio.js +137 -0
- package/dist/components/ui/forms/Radio/Radio.js.map +1 -0
- package/dist/components/ui/forms/RevealField/RevealField.js +67 -0
- package/dist/components/ui/forms/RevealField/RevealField.js.map +1 -0
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js +394 -0
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js.map +1 -0
- package/dist/components/ui/forms/Select/Select.js +296 -0
- package/dist/components/ui/forms/Select/Select.js.map +1 -0
- package/dist/components/ui/forms/SelectableChipGroup/SelectableChipGroup.js +125 -0
- package/dist/components/ui/forms/SelectableChipGroup/SelectableChipGroup.js.map +1 -0
- package/dist/components/ui/forms/Slider/Slider.js +172 -0
- package/dist/components/ui/forms/Slider/Slider.js.map +1 -0
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js +266 -0
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js.map +1 -0
- package/dist/components/ui/forms/Switch/Switch.js +83 -0
- package/dist/components/ui/forms/Switch/Switch.js.map +1 -0
- package/dist/components/ui/forms/TagInput/TagInput.js +253 -0
- package/dist/components/ui/forms/TagInput/TagInput.js.map +1 -0
- package/dist/components/ui/forms/Textarea/Textarea.js +113 -0
- package/dist/components/ui/forms/Textarea/Textarea.js.map +1 -0
- package/dist/components/ui/navigation/Breadcrumbs/Breadcrumbs.js +58 -0
- package/dist/components/ui/navigation/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/components/ui/overlays/Dropdown/Dropdown.js +130 -0
- package/dist/components/ui/overlays/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/ui/overlays/Popover/Popover.js +46 -0
- package/dist/components/ui/overlays/Popover/Popover.js.map +1 -0
- package/dist/components/ui/overlays/Tooltip/Tooltip.js +73 -0
- package/dist/components/ui/overlays/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/ui/overlays/overlayPositioning.js +5 -0
- package/dist/components/ui/overlays/overlayPositioning.js.map +1 -0
- package/dist/components/ui/patterns/Accordion/Accordion.js +132 -0
- package/dist/components/ui/patterns/Accordion/Accordion.js.map +1 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCard.js +384 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCard.js.map +1 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCardSkeleton.js +152 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCardSkeleton.js.map +1 -0
- package/dist/components/ui/patterns/ChatBubble/ChatBubble.js +133 -0
- package/dist/components/ui/patterns/ChatBubble/ChatBubble.js.map +1 -0
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js +205 -0
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js.map +1 -0
- package/dist/components/ui/patterns/Collapsible/Collapsible.js +95 -0
- package/dist/components/ui/patterns/Collapsible/Collapsible.js.map +1 -0
- package/dist/components/ui/patterns/CommandMenu/CommandMenu.js +155 -0
- package/dist/components/ui/patterns/CommandMenu/CommandMenu.js.map +1 -0
- package/dist/components/ui/patterns/EntityDisplayCard/EntityDisplayCard.js +120 -0
- package/dist/components/ui/patterns/EntityDisplayCard/EntityDisplayCard.js.map +1 -0
- package/dist/components/ui/patterns/FullPageLoader/FullPageLoader.js +151 -0
- package/dist/components/ui/patterns/FullPageLoader/FullPageLoader.js.map +1 -0
- package/dist/components/ui/patterns/FullPageLoader/FullPageLoaderSpinner.js +49 -0
- package/dist/components/ui/patterns/FullPageLoader/FullPageLoaderSpinner.js.map +1 -0
- package/dist/components/ui/patterns/HorizontalStepper/HorizontalStepper.js +619 -0
- package/dist/components/ui/patterns/HorizontalStepper/HorizontalStepper.js.map +1 -0
- package/dist/components/ui/patterns/LayoutShell/LayoutShell.js +67 -0
- package/dist/components/ui/patterns/LayoutShell/LayoutShell.js.map +1 -0
- package/dist/components/ui/patterns/RevealAndCopy/RevealAndCopy.js +190 -0
- package/dist/components/ui/patterns/RevealAndCopy/RevealAndCopy.js.map +1 -0
- package/dist/components/ui/patterns/SideNav/SideNav.js +311 -0
- package/dist/components/ui/patterns/SideNav/SideNav.js.map +1 -0
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCard.js +271 -0
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCard.js.map +1 -0
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCardSkeleton.js +100 -0
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCardSkeleton.js.map +1 -0
- package/dist/components/ui/patterns/SummaryBar/SummaryBar.js +89 -0
- package/dist/components/ui/patterns/SummaryBar/SummaryBar.js.map +1 -0
- package/dist/components/ui/patterns/WorkspaceHeader/WorkspaceHeader.js +153 -0
- package/dist/components/ui/patterns/WorkspaceHeader/WorkspaceHeader.js.map +1 -0
- package/dist/components/ui/primitives/Box/Box.js +12 -0
- package/dist/components/ui/primitives/Box/Box.js.map +1 -0
- package/dist/components/ui/primitives/Container/Container.js +27 -0
- package/dist/components/ui/primitives/Container/Container.js.map +1 -0
- package/dist/components/ui/primitives/Grid/Grid.js +55 -0
- package/dist/components/ui/primitives/Grid/Grid.js.map +1 -0
- package/dist/components/ui/primitives/Icon/Icon.js +22 -0
- package/dist/components/ui/primitives/Icon/Icon.js.map +1 -0
- package/dist/components/ui/primitives/Paper/Paper.js +109 -0
- package/dist/components/ui/primitives/Paper/Paper.js.map +1 -0
- package/dist/components/ui/primitives/Stack/Stack.js +39 -0
- package/dist/components/ui/primitives/Stack/Stack.js.map +1 -0
- package/dist/components/ui/primitives/Text/Text.js +101 -0
- package/dist/components/ui/primitives/Text/Text.js.map +1 -0
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js +73 -0
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js.map +1 -0
- package/dist/custom-elements.js +633 -634
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +266 -25477
- package/dist/index.js.map +1 -1
- package/dist/lib/cn.js +24 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/documentStyles.js +14 -0
- package/dist/lib/documentStyles.js.map +1 -0
- package/dist/lib/emotionTw.js +69 -0
- package/dist/lib/emotionTw.js.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +533 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +404 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +233 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowDown.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowDown.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowLeft.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowLeft.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowUp.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowUp.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowsDownUp.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowsDownUp.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CalendarBlank.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CalendarBlank.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretLeft.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretLeft.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretRight.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretRight.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretUp.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CaretUp.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Check.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Check.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CheckCircle.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/CheckCircle.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Copy.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Copy.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Cube.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Cube.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Funnel.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Funnel.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Info.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Info.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/MagnifyingGlass.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/MagnifyingGlass.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Minus.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Minus.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Plus.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Plus.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Question.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Question.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/SquareSplitHorizontal.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/SquareSplitHorizontal.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Star.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Star.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/StarFour.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/StarFour.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Storefront.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Storefront.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Trash.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Trash.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Tray.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Tray.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/UploadSimple.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/UploadSimple.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/WarningCircle.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/WarningCircle.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/X.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/X.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowCounterClockwise.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowCounterClockwise.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowDown.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowDown.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowLeft.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowLeft.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowUp.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowUp.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowsDownUp.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowsDownUp.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/BookmarkSimple.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/BookmarkSimple.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CalendarBlank.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CalendarBlank.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretDown.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretDown.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretLeft.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretLeft.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretRight.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretRight.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretUp.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CaretUp.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Check.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Check.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CheckCircle.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/CheckCircle.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Copy.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Copy.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Cube.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Cube.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/DotsThreeVertical.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/DotsThreeVertical.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Funnel.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Funnel.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Info.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Info.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/MagnifyingGlass.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/MagnifyingGlass.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Minus.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Minus.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/PencilSimple.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/PencilSimple.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Plus.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Plus.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Question.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Question.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/SquareSplitHorizontal.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/SquareSplitHorizontal.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Star.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Star.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/StarFour.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/StarFour.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Storefront.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Storefront.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Trash.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Trash.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Tray.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Tray.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/UploadSimple.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/UploadSimple.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/WarningCircle.es.js +31 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/WarningCircle.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/X.es.js +37 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/X.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/lib/IconBase.es.js +44 -0
- package/dist/node_modules/@phosphor-icons/react/dist/lib/IconBase.es.js.map +1 -0
- package/dist/node_modules/@phosphor-icons/react/dist/lib/context.es.js +11 -0
- package/dist/node_modules/@phosphor-icons/react/dist/lib/context.es.js.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +252 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +71 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +262 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +212 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +138 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +625 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +245 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +37 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +239 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +184 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +860 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +57 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +133 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +164 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +340 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +33 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +53 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +116 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +32 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +69 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +72 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +12 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +16 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +31 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +3016 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +28 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +7 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +68 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/styles/globals.css2.js +5 -0
- package/dist/styles/globals.css2.js.map +1 -0
- package/dist/theme/overrides.js +295 -0
- package/dist/theme/overrides.js.map +1 -0
- package/dist/theme.js +35 -534
- package/dist/theme.js.map +1 -1
- package/dist/tokens/colors.js +85 -0
- package/dist/tokens/colors.js.map +1 -0
- package/dist/tokens/motion.js +11 -0
- package/dist/tokens/motion.js.map +1 -0
- package/dist/tokens/radius.js +23 -0
- package/dist/tokens/radius.js.map +1 -0
- package/dist/tokens/shadows.js +15 -0
- package/dist/tokens/shadows.js.map +1 -0
- package/dist/tokens/sizes.js +80 -0
- package/dist/tokens/sizes.js.map +1 -0
- package/dist/tokens/spacing.js +30 -0
- package/dist/tokens/spacing.js.map +1 -0
- package/dist/tokens/typography.js +17 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/tokens/zIndex.js +13 -0
- package/dist/tokens/zIndex.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import { Root as xe, Portal as Se, Overlay as xt, Content as St, Title as Tt, Description as _t } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
3
|
+
import { Root as Rt, Trigger as Ct, Portal as kt, Content as zt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
|
+
import { ArrowCounterClockwise as At } from "../../../node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js";
|
|
5
|
+
import { BookmarkSimple as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
|
|
6
|
+
import { CaretDown as Vt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
|
|
7
|
+
import { DotsThreeVertical as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
|
|
8
|
+
import { PencilSimple as Ot } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
|
|
9
|
+
import { Star as le } from "../../../node_modules/@phosphor-icons/react/dist/csr/Star.es.js";
|
|
10
|
+
import { Trash as Lt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
|
|
11
|
+
import { useRef as k, useMemo as ie, useState as f, useId as Ht, useEffect as E, useCallback as F } from "react";
|
|
12
|
+
import i from "@emotion/styled";
|
|
13
|
+
import { IconButton as Dt, Button as j } from "../../primitives/Button/Button.js";
|
|
14
|
+
import { twRing as N, twTransform as We, kfContentIn as Pt, kfOverlayIn as Bt, kfModalContentIn as Et } from "../../../lib/emotionTw.js";
|
|
15
|
+
import { floatingCollisionPadding as Ft } from "../../ui/overlays/overlayPositioning.js";
|
|
16
|
+
import { createTableViewSelectorStore as jt } from "./viewStore.js";
|
|
17
|
+
import { BfrsPortalScope as ae } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
|
|
18
|
+
import { ActionMenu as Nt } from "../../navigation/ActionMenu/ActionMenu.js";
|
|
19
|
+
const z = {
|
|
20
|
+
"--tw-text-opacity": "1",
|
|
21
|
+
color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
|
|
22
|
+
}, Ve = {
|
|
23
|
+
"--tw-text-opacity": "1",
|
|
24
|
+
color: "hsl(var(--bfrs-color-text-secondary) / var(--tw-text-opacity, 1))"
|
|
25
|
+
}, O = {
|
|
26
|
+
"--tw-text-opacity": "1",
|
|
27
|
+
color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
|
|
28
|
+
}, M = {
|
|
29
|
+
"--tw-bg-opacity": "1",
|
|
30
|
+
backgroundColor: "hsl(var(--bfrs-color-surface-card) / var(--tw-bg-opacity, 1))"
|
|
31
|
+
}, Ie = {
|
|
32
|
+
"--tw-bg-opacity": "1",
|
|
33
|
+
backgroundColor: "hsl(var(--bfrs-color-primary-soft) / var(--tw-bg-opacity, 1))"
|
|
34
|
+
}, se = {
|
|
35
|
+
"--tw-border-opacity": "1",
|
|
36
|
+
borderColor: "hsl(var(--bfrs-color-border) / var(--tw-border-opacity, 1))"
|
|
37
|
+
}, Mt = /* @__PURE__ */ i("div", {
|
|
38
|
+
label: "AgenticTableViewSelector-root"
|
|
39
|
+
})({
|
|
40
|
+
display: "inline-flex",
|
|
41
|
+
minWidth: "0px"
|
|
42
|
+
}), Kt = /* @__PURE__ */ i("button", {
|
|
43
|
+
label: "AgenticTableViewSelector-trigger",
|
|
44
|
+
shouldForwardProp: (n) => n !== "ownerState"
|
|
45
|
+
})(({ ownerState: n }) => [
|
|
46
|
+
{
|
|
47
|
+
display: "inline-flex",
|
|
48
|
+
minWidth: "0px",
|
|
49
|
+
maxWidth: "12rem",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
justifyContent: "space-between",
|
|
52
|
+
gap: ".5rem",
|
|
53
|
+
borderRadius: "7px",
|
|
54
|
+
borderWidth: "1px",
|
|
55
|
+
...M,
|
|
56
|
+
paddingLeft: ".75rem",
|
|
57
|
+
paddingRight: ".75rem",
|
|
58
|
+
fontSize: "12px",
|
|
59
|
+
lineHeight: "normal",
|
|
60
|
+
fontWeight: 400,
|
|
61
|
+
...z,
|
|
62
|
+
outline: "2px solid transparent",
|
|
63
|
+
outlineOffset: "2px",
|
|
64
|
+
transitionProperty: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
|
|
65
|
+
transitionTimingFunction: "cubic-bezier(0,0,.2,1)",
|
|
66
|
+
transitionDuration: ".15s",
|
|
67
|
+
"&:hover": Ie,
|
|
68
|
+
"&:focus-visible": N("2px", "hsl(var(--bfrs-color-border-focus) / .25)"),
|
|
69
|
+
"&:disabled": {
|
|
70
|
+
pointerEvents: "none",
|
|
71
|
+
opacity: ".55"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
n.size === "sm" ? { height: "1.75rem" } : { height: "2.25rem" },
|
|
75
|
+
n.open ? {
|
|
76
|
+
"--tw-border-opacity": "1",
|
|
77
|
+
borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))"
|
|
78
|
+
} : se,
|
|
79
|
+
n.empty && O
|
|
80
|
+
]), $t = /* @__PURE__ */ i("span", {
|
|
81
|
+
label: "AgenticTableViewSelector-triggerLabel"
|
|
82
|
+
})({
|
|
83
|
+
minWidth: "0px",
|
|
84
|
+
flex: "0 1 auto",
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
textOverflow: "ellipsis",
|
|
87
|
+
whiteSpace: "nowrap"
|
|
88
|
+
}), Te = /* @__PURE__ */ i(le, {
|
|
89
|
+
label: "AgenticTableViewSelector-primaryStar"
|
|
90
|
+
})({
|
|
91
|
+
flexShrink: 0,
|
|
92
|
+
"--tw-text-opacity": "1",
|
|
93
|
+
color: "hsl(var(--bfrs-color-warning) / var(--tw-text-opacity, 1))"
|
|
94
|
+
}), qt = /* @__PURE__ */ i(Vt, {
|
|
95
|
+
label: "AgenticTableViewSelector-caret",
|
|
96
|
+
shouldForwardProp: (n) => n !== "ownerState"
|
|
97
|
+
})(({ ownerState: n }) => [
|
|
98
|
+
{
|
|
99
|
+
flexShrink: 0,
|
|
100
|
+
...O,
|
|
101
|
+
transitionProperty: "transform",
|
|
102
|
+
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
|
|
103
|
+
transitionDuration: ".15s"
|
|
104
|
+
},
|
|
105
|
+
n.open && We({ "--tw-rotate": "180deg" })
|
|
106
|
+
]), Ut = /* @__PURE__ */ i(zt, {
|
|
107
|
+
label: "AgenticTableViewSelector-content"
|
|
108
|
+
})({
|
|
109
|
+
zIndex: 1e3,
|
|
110
|
+
width: "min(calc(100vw - 1rem),16rem)",
|
|
111
|
+
overflow: "hidden",
|
|
112
|
+
borderRadius: "var(--bfrs-radius-lg)",
|
|
113
|
+
borderWidth: "1px",
|
|
114
|
+
...se,
|
|
115
|
+
...M,
|
|
116
|
+
"--tw-shadow": "var(--bfrs-shadow-elevated)",
|
|
117
|
+
"--tw-shadow-colored": "var(--bfrs-shadow-elevated)",
|
|
118
|
+
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
|
|
119
|
+
outline: "2px solid transparent",
|
|
120
|
+
outlineOffset: "2px",
|
|
121
|
+
...Pt,
|
|
122
|
+
animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
|
|
123
|
+
}), Yt = /* @__PURE__ */ i("div", {
|
|
124
|
+
label: "AgenticTableViewSelector-header"
|
|
125
|
+
})({
|
|
126
|
+
paddingLeft: ".75rem",
|
|
127
|
+
paddingRight: "1rem",
|
|
128
|
+
paddingTop: ".625rem",
|
|
129
|
+
paddingBottom: ".375rem",
|
|
130
|
+
fontSize: "10px",
|
|
131
|
+
lineHeight: "1rem",
|
|
132
|
+
fontWeight: 700,
|
|
133
|
+
letterSpacing: ".08em",
|
|
134
|
+
textTransform: "uppercase",
|
|
135
|
+
...O
|
|
136
|
+
}), Gt = /* @__PURE__ */ i("div", {
|
|
137
|
+
label: "AgenticTableViewSelector-list"
|
|
138
|
+
})({
|
|
139
|
+
display: "flex",
|
|
140
|
+
maxHeight: "14rem",
|
|
141
|
+
flexDirection: "column",
|
|
142
|
+
overflowY: "auto",
|
|
143
|
+
paddingBottom: ".25rem"
|
|
144
|
+
}), Jt = /* @__PURE__ */ i("div", {
|
|
145
|
+
label: "AgenticTableViewSelector-row"
|
|
146
|
+
})({
|
|
147
|
+
display: "flex",
|
|
148
|
+
minHeight: "2.25rem",
|
|
149
|
+
alignItems: "center",
|
|
150
|
+
gap: ".375rem",
|
|
151
|
+
paddingLeft: ".5rem",
|
|
152
|
+
paddingRight: ".625rem"
|
|
153
|
+
}), Qt = /* @__PURE__ */ i("button", {
|
|
154
|
+
label: "AgenticTableViewSelector-viewButton",
|
|
155
|
+
shouldForwardProp: (n) => n !== "ownerState"
|
|
156
|
+
})(({ ownerState: n }) => [
|
|
157
|
+
{
|
|
158
|
+
display: "flex",
|
|
159
|
+
minWidth: "0px",
|
|
160
|
+
flex: "1 1 0%",
|
|
161
|
+
alignItems: "center",
|
|
162
|
+
gap: ".5rem",
|
|
163
|
+
minHeight: "1.75rem",
|
|
164
|
+
borderRadius: "var(--bfrs-radius-sm)",
|
|
165
|
+
paddingLeft: ".5rem",
|
|
166
|
+
paddingRight: ".5rem",
|
|
167
|
+
paddingTop: ".375rem",
|
|
168
|
+
paddingBottom: ".375rem",
|
|
169
|
+
textAlign: "left",
|
|
170
|
+
fontSize: "12px",
|
|
171
|
+
lineHeight: "1rem",
|
|
172
|
+
fontWeight: 500,
|
|
173
|
+
...z,
|
|
174
|
+
outline: "2px solid transparent",
|
|
175
|
+
outlineOffset: "2px",
|
|
176
|
+
"&:hover": Ve,
|
|
177
|
+
"&:focus-visible": N("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
|
|
178
|
+
},
|
|
179
|
+
n.selected && {
|
|
180
|
+
fontWeight: 700
|
|
181
|
+
}
|
|
182
|
+
]), Xt = /* @__PURE__ */ i("span", {
|
|
183
|
+
label: "AgenticTableViewSelector-name"
|
|
184
|
+
})({
|
|
185
|
+
minWidth: "0px",
|
|
186
|
+
flex: "0 1 auto",
|
|
187
|
+
overflow: "hidden",
|
|
188
|
+
textOverflow: "ellipsis",
|
|
189
|
+
whiteSpace: "nowrap"
|
|
190
|
+
}), Zt = /* @__PURE__ */ i("div", {
|
|
191
|
+
label: "AgenticTableViewSelector-divider"
|
|
192
|
+
})({
|
|
193
|
+
height: "1px",
|
|
194
|
+
"--tw-bg-opacity": "1",
|
|
195
|
+
backgroundColor: "hsl(var(--bfrs-color-border-light) / var(--tw-bg-opacity, 1))"
|
|
196
|
+
}), er = /* @__PURE__ */ i("button", {
|
|
197
|
+
label: "AgenticTableViewSelector-resetButton"
|
|
198
|
+
})({
|
|
199
|
+
display: "flex",
|
|
200
|
+
width: "100%",
|
|
201
|
+
minHeight: "2.25rem",
|
|
202
|
+
alignItems: "center",
|
|
203
|
+
gap: ".5rem",
|
|
204
|
+
paddingLeft: ".75rem",
|
|
205
|
+
paddingRight: "1rem",
|
|
206
|
+
fontSize: ".75rem",
|
|
207
|
+
lineHeight: "1rem",
|
|
208
|
+
fontWeight: 500,
|
|
209
|
+
...Ve,
|
|
210
|
+
outline: "2px solid transparent",
|
|
211
|
+
outlineOffset: "2px",
|
|
212
|
+
"&:hover": Ie,
|
|
213
|
+
"&:focus-visible": N("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
|
|
214
|
+
}), _e = /* @__PURE__ */ i("div", {
|
|
215
|
+
label: "AgenticTableViewSelector-empty"
|
|
216
|
+
})({
|
|
217
|
+
paddingLeft: ".75rem",
|
|
218
|
+
paddingRight: ".75rem",
|
|
219
|
+
paddingTop: ".375rem",
|
|
220
|
+
paddingBottom: ".75rem",
|
|
221
|
+
fontSize: ".75rem",
|
|
222
|
+
lineHeight: "1rem",
|
|
223
|
+
...O
|
|
224
|
+
}), Re = /* @__PURE__ */ i(xt, {
|
|
225
|
+
label: "AgenticTableViewSelector-renameOverlay"
|
|
226
|
+
})({
|
|
227
|
+
position: "fixed",
|
|
228
|
+
inset: 0,
|
|
229
|
+
zIndex: 1050,
|
|
230
|
+
backgroundColor: "hsl(var(--bfrs-color-text-primary) / .45)",
|
|
231
|
+
...Bt,
|
|
232
|
+
animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
|
|
233
|
+
}), Ce = /* @__PURE__ */ i(St, {
|
|
234
|
+
label: "AgenticTableViewSelector-renameContent"
|
|
235
|
+
})({
|
|
236
|
+
position: "fixed",
|
|
237
|
+
left: "50%",
|
|
238
|
+
top: "50%",
|
|
239
|
+
zIndex: 1050,
|
|
240
|
+
width: "calc(100% - 2rem)",
|
|
241
|
+
maxWidth: "420px",
|
|
242
|
+
maxHeight: "calc(100dvh - 2rem)",
|
|
243
|
+
overflow: "auto",
|
|
244
|
+
borderRadius: "var(--bfrs-radius-lg)",
|
|
245
|
+
borderWidth: "1px",
|
|
246
|
+
...se,
|
|
247
|
+
...M,
|
|
248
|
+
padding: "1.25rem",
|
|
249
|
+
...z,
|
|
250
|
+
"--tw-shadow": "var(--bfrs-shadow-overlay)",
|
|
251
|
+
"--tw-shadow-colored": "var(--bfrs-shadow-overlay)",
|
|
252
|
+
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
|
|
253
|
+
outline: "2px solid transparent",
|
|
254
|
+
outlineOffset: "2px",
|
|
255
|
+
...We({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
|
|
256
|
+
...Et,
|
|
257
|
+
animation: "bfrs-bfrs-modal-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
|
|
258
|
+
}), ke = /* @__PURE__ */ i(Tt, {
|
|
259
|
+
label: "AgenticTableViewSelector-renameTitle"
|
|
260
|
+
})({
|
|
261
|
+
fontSize: "1.125rem",
|
|
262
|
+
lineHeight: "1.5rem",
|
|
263
|
+
fontWeight: 700,
|
|
264
|
+
...z
|
|
265
|
+
}), ze = /* @__PURE__ */ i(_t, {
|
|
266
|
+
label: "AgenticTableViewSelector-renameDescription"
|
|
267
|
+
})({
|
|
268
|
+
marginTop: ".25rem",
|
|
269
|
+
fontSize: ".75rem",
|
|
270
|
+
lineHeight: "1.25rem",
|
|
271
|
+
...O
|
|
272
|
+
}), tr = /* @__PURE__ */ i("label", {
|
|
273
|
+
label: "AgenticTableViewSelector-renameLabel"
|
|
274
|
+
})({
|
|
275
|
+
display: "block",
|
|
276
|
+
marginTop: "1.25rem",
|
|
277
|
+
fontSize: ".75rem",
|
|
278
|
+
lineHeight: "1rem",
|
|
279
|
+
fontWeight: 700,
|
|
280
|
+
...z
|
|
281
|
+
}), rr = /* @__PURE__ */ i("input", {
|
|
282
|
+
label: "AgenticTableViewSelector-renameInput"
|
|
283
|
+
})({
|
|
284
|
+
marginTop: ".5rem",
|
|
285
|
+
height: "2.5rem",
|
|
286
|
+
width: "100%",
|
|
287
|
+
borderRadius: "var(--bfrs-radius-md)",
|
|
288
|
+
borderWidth: "1.5px",
|
|
289
|
+
"--tw-border-opacity": "1",
|
|
290
|
+
borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))",
|
|
291
|
+
...M,
|
|
292
|
+
paddingLeft: ".75rem",
|
|
293
|
+
paddingRight: ".75rem",
|
|
294
|
+
fontSize: ".875rem",
|
|
295
|
+
lineHeight: "1.25rem",
|
|
296
|
+
fontWeight: 500,
|
|
297
|
+
...z,
|
|
298
|
+
outline: "2px solid transparent",
|
|
299
|
+
outlineOffset: "2px",
|
|
300
|
+
"&:focus-visible": N("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
|
|
301
|
+
}), Ae = /* @__PURE__ */ i("div", {
|
|
302
|
+
label: "AgenticTableViewSelector-renameFooter"
|
|
303
|
+
})({
|
|
304
|
+
marginTop: "1.5rem",
|
|
305
|
+
display: "flex",
|
|
306
|
+
justifyContent: "flex-end",
|
|
307
|
+
gap: ".625rem"
|
|
308
|
+
});
|
|
309
|
+
function I(n, o) {
|
|
310
|
+
return o ? n.find((t) => t.view_id === o) ?? null : null;
|
|
311
|
+
}
|
|
312
|
+
function nr(n, o, t) {
|
|
313
|
+
var b;
|
|
314
|
+
const w = [], y = /* @__PURE__ */ new Set(), x = o ?? ((b = n.find((c) => c.is_default)) == null ? void 0 : b.view_id) ?? null, p = (c) => {
|
|
315
|
+
if (!c || y.has(c)) return;
|
|
316
|
+
const h = I(n, c);
|
|
317
|
+
h && (w.push(h), y.add(h.view_id));
|
|
318
|
+
};
|
|
319
|
+
p(x), p(t);
|
|
320
|
+
for (const c of n)
|
|
321
|
+
y.has(c.view_id) || (w.push(c), y.add(c.view_id));
|
|
322
|
+
return w;
|
|
323
|
+
}
|
|
324
|
+
function or(n) {
|
|
325
|
+
return n ? [
|
|
326
|
+
"api",
|
|
327
|
+
n.viewType && n.tab ? "scoped" : "local",
|
|
328
|
+
n.saveEndpoint || n.endpoint ? "remote-save" : "local-save"
|
|
329
|
+
].join(":") : "none";
|
|
330
|
+
}
|
|
331
|
+
function ir(n) {
|
|
332
|
+
const o = () => n.current;
|
|
333
|
+
return {
|
|
334
|
+
get baseUrl() {
|
|
335
|
+
var t;
|
|
336
|
+
return (t = o()) == null ? void 0 : t.baseUrl;
|
|
337
|
+
},
|
|
338
|
+
get endpoint() {
|
|
339
|
+
var t;
|
|
340
|
+
return (t = o()) == null ? void 0 : t.endpoint;
|
|
341
|
+
},
|
|
342
|
+
get saveEndpoint() {
|
|
343
|
+
var t;
|
|
344
|
+
return (t = o()) == null ? void 0 : t.saveEndpoint;
|
|
345
|
+
},
|
|
346
|
+
get listEndpoint() {
|
|
347
|
+
var t;
|
|
348
|
+
return (t = o()) == null ? void 0 : t.listEndpoint;
|
|
349
|
+
},
|
|
350
|
+
get getEndpoint() {
|
|
351
|
+
var t;
|
|
352
|
+
return (t = o()) == null ? void 0 : t.getEndpoint;
|
|
353
|
+
},
|
|
354
|
+
get updateEndpoint() {
|
|
355
|
+
var t;
|
|
356
|
+
return (t = o()) == null ? void 0 : t.updateEndpoint;
|
|
357
|
+
},
|
|
358
|
+
get deleteEndpoint() {
|
|
359
|
+
var t;
|
|
360
|
+
return (t = o()) == null ? void 0 : t.deleteEndpoint;
|
|
361
|
+
},
|
|
362
|
+
get viewType() {
|
|
363
|
+
var t;
|
|
364
|
+
return (t = o()) == null ? void 0 : t.viewType;
|
|
365
|
+
},
|
|
366
|
+
get tab() {
|
|
367
|
+
var t;
|
|
368
|
+
return (t = o()) == null ? void 0 : t.tab;
|
|
369
|
+
},
|
|
370
|
+
get token() {
|
|
371
|
+
var t;
|
|
372
|
+
return (t = o()) == null ? void 0 : t.token;
|
|
373
|
+
},
|
|
374
|
+
get headers() {
|
|
375
|
+
var t;
|
|
376
|
+
return (t = o()) == null ? void 0 : t.headers;
|
|
377
|
+
},
|
|
378
|
+
get credentials() {
|
|
379
|
+
var t;
|
|
380
|
+
return (t = o()) == null ? void 0 : t.credentials;
|
|
381
|
+
},
|
|
382
|
+
get fetcher() {
|
|
383
|
+
var t;
|
|
384
|
+
return (t = o()) == null ? void 0 : t.fetcher;
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function _r({
|
|
389
|
+
screenName: n,
|
|
390
|
+
store: o,
|
|
391
|
+
saveApi: t,
|
|
392
|
+
value: w,
|
|
393
|
+
defaultValue: y,
|
|
394
|
+
selectPrimaryByDefault: x = !0,
|
|
395
|
+
onValueChange: p,
|
|
396
|
+
onViewSelect: b,
|
|
397
|
+
onPrimaryViewChange: c,
|
|
398
|
+
onUnsetPrimaryView: h,
|
|
399
|
+
onRenameView: K,
|
|
400
|
+
onDeleteView: $,
|
|
401
|
+
onResetSavedFilters: q,
|
|
402
|
+
onError: L,
|
|
403
|
+
triggerLabel: Oe,
|
|
404
|
+
placeholder: Le = "Views",
|
|
405
|
+
viewsLabel: He = "VIEWS",
|
|
406
|
+
emptyLabel: De = "No saved views",
|
|
407
|
+
loadingLabel: Pe = "Loading views",
|
|
408
|
+
resetLabel: Be = "Switch to default",
|
|
409
|
+
defaultViewLabel: Ee = "Default",
|
|
410
|
+
setPrimaryLabel: Fe = "Set as Primary View",
|
|
411
|
+
unsetPrimaryLabel: je = "Unset as Primary",
|
|
412
|
+
renameLabel: Ne = "Rename",
|
|
413
|
+
deleteLabel: Me = "Delete",
|
|
414
|
+
renameTitle: Ke = "Rename view",
|
|
415
|
+
renameDescription: ce = "Update the saved view name.",
|
|
416
|
+
renameInputLabel: $e = "View name",
|
|
417
|
+
renameCancelLabel: qe = "Cancel",
|
|
418
|
+
renameSaveLabel: Ue = "Save",
|
|
419
|
+
deleteTitle: Ye = "Delete view",
|
|
420
|
+
deleteDescription: Ge,
|
|
421
|
+
deleteCancelLabel: Je = "Cancel",
|
|
422
|
+
deleteConfirmLabel: Qe = "Delete",
|
|
423
|
+
size: Xe = "sm",
|
|
424
|
+
disabled: Ze = !1,
|
|
425
|
+
className: et,
|
|
426
|
+
triggerClassName: tt,
|
|
427
|
+
contentClassName: rt,
|
|
428
|
+
actionMenuClassName: nt
|
|
429
|
+
}) {
|
|
430
|
+
const de = k(t);
|
|
431
|
+
de.current = t;
|
|
432
|
+
const ue = or(t), U = ie(
|
|
433
|
+
() => ue === "none" ? void 0 : ir(de),
|
|
434
|
+
[ue]
|
|
435
|
+
), u = ie(
|
|
436
|
+
() => o ?? jt(n, U ? { saveApi: U } : void 0),
|
|
437
|
+
[n, o, U]
|
|
438
|
+
), H = w !== void 0, [Y, G] = f(!1), [A, ot] = f([]), [J, it] = f(null), [at, me] = f(y ?? null), [fe, pe] = f(!1), [D, be] = f(null), [Q, X] = f(""), [g, he] = f(null), W = w ?? at, V = k(W), P = k(H), Z = k(!1), v = k(!1), S = k(null), ge = Ht();
|
|
439
|
+
E(() => {
|
|
440
|
+
V.current = W, W && (v.current = !1);
|
|
441
|
+
}, [W]), E(() => {
|
|
442
|
+
P.current = H;
|
|
443
|
+
}, [H]), E(() => {
|
|
444
|
+
S.current = null, Z.current = !1, v.current = !1;
|
|
445
|
+
}, [u, n]);
|
|
446
|
+
const T = F(
|
|
447
|
+
(e) => {
|
|
448
|
+
L == null || L(e);
|
|
449
|
+
},
|
|
450
|
+
[L]
|
|
451
|
+
), m = F(
|
|
452
|
+
(e) => {
|
|
453
|
+
e && (v.current = !1), P.current || me((e == null ? void 0 : e.view_id) ?? null), p == null || p((e == null ? void 0 : e.view_id) ?? null, e), e && (b == null || b(e));
|
|
454
|
+
},
|
|
455
|
+
[p, b]
|
|
456
|
+
), ee = F(
|
|
457
|
+
(e) => {
|
|
458
|
+
u.get(e.view_id).then((a) => m(a ?? e)).catch(() => m(e));
|
|
459
|
+
},
|
|
460
|
+
[u, m]
|
|
461
|
+
), _ = F(
|
|
462
|
+
async (e) => {
|
|
463
|
+
var ve;
|
|
464
|
+
const a = e === void 0 ? "__default__" : e ?? "__none__";
|
|
465
|
+
if (((ve = S.current) == null ? void 0 : ve.key) === a) return S.current.promise;
|
|
466
|
+
const d = { key: a, promise: Promise.resolve(null) };
|
|
467
|
+
return S.current = d, d.promise = (async () => {
|
|
468
|
+
pe(!0);
|
|
469
|
+
try {
|
|
470
|
+
const R = await u.list(), C = R.find((yt) => yt.is_default) ?? null, vt = e !== void 0 ? e : V.current, we = I(R, vt), wt = !v.current && (e !== void 0 || x || !P.current), oe = we || !wt ? null : I(R, C == null ? void 0 : C.view_id), B = we ?? oe ?? null;
|
|
471
|
+
return ot(R), it((C == null ? void 0 : C.view_id) ?? null), P.current || me((B == null ? void 0 : B.view_id) ?? null), x && oe && e === void 0 && !V.current && !Z.current && (Z.current = !0, ee(oe)), B;
|
|
472
|
+
} catch (R) {
|
|
473
|
+
return T(R), null;
|
|
474
|
+
} finally {
|
|
475
|
+
pe(!1), S.current === d && (S.current = null);
|
|
476
|
+
}
|
|
477
|
+
})(), d.promise;
|
|
478
|
+
},
|
|
479
|
+
[ee, T, u, x, m]
|
|
480
|
+
);
|
|
481
|
+
E(() => {
|
|
482
|
+
const e = () => {
|
|
483
|
+
_();
|
|
484
|
+
};
|
|
485
|
+
return e(), u.subscribe(e);
|
|
486
|
+
}, [_, u]);
|
|
487
|
+
const l = I(A, W) ?? (!v.current && (x || !H) ? I(A, J) : null), lt = ie(
|
|
488
|
+
() => nr(A, J, l == null ? void 0 : l.view_id),
|
|
489
|
+
[J, l == null ? void 0 : l.view_id, A]
|
|
490
|
+
), st = !l && v.current, ct = Oe ?? (l == null ? void 0 : l.name) ?? (st ? Ee : Le), te = A.length > 0, dt = (e) => {
|
|
491
|
+
G(!1), ee(e);
|
|
492
|
+
}, ut = (e) => {
|
|
493
|
+
u.setPrimary(e.view_id).then(async (a) => {
|
|
494
|
+
const d = await _(e.view_id);
|
|
495
|
+
m(d ?? a), c == null || c(a);
|
|
496
|
+
}).catch(T);
|
|
497
|
+
}, mt = (e) => {
|
|
498
|
+
u.unsetPrimary(e.view_id).then(async (a) => {
|
|
499
|
+
const d = await _(e.view_id);
|
|
500
|
+
m(d ?? a), h == null || h(a);
|
|
501
|
+
}).catch(T);
|
|
502
|
+
}, re = () => he(null), ft = (e) => {
|
|
503
|
+
const a = V.current === e.view_id;
|
|
504
|
+
u.remove(e.view_id).then(async () => {
|
|
505
|
+
const d = await _(a ? null : V.current);
|
|
506
|
+
a && m(d), $ == null || $(e.view_id);
|
|
507
|
+
}).catch(T).finally(re);
|
|
508
|
+
}, pt = () => {
|
|
509
|
+
g && ft(g);
|
|
510
|
+
}, bt = () => {
|
|
511
|
+
v.current = !0, m(null), q == null || q(), G(!1);
|
|
512
|
+
}, ht = (e) => {
|
|
513
|
+
be(e), X(e.name);
|
|
514
|
+
}, ne = () => {
|
|
515
|
+
be(null), X("");
|
|
516
|
+
}, gt = (e) => {
|
|
517
|
+
e.preventDefault();
|
|
518
|
+
const a = Q.trim();
|
|
519
|
+
!D || !a || u.rename(D.view_id, a).then(async (d) => {
|
|
520
|
+
await _(D.view_id), K == null || K(d), ne();
|
|
521
|
+
}).catch(T);
|
|
522
|
+
};
|
|
523
|
+
return te ? /* @__PURE__ */ s(Mt, { className: et, children: [
|
|
524
|
+
/* @__PURE__ */ s(Rt, { open: Y, onOpenChange: G, children: [
|
|
525
|
+
/* @__PURE__ */ r(Ct, { asChild: !0, children: /* @__PURE__ */ s(
|
|
526
|
+
Kt,
|
|
527
|
+
{
|
|
528
|
+
type: "button",
|
|
529
|
+
"aria-label": "Saved views",
|
|
530
|
+
className: tt,
|
|
531
|
+
disabled: Ze,
|
|
532
|
+
ownerState: { open: Y, empty: !l, size: Xe },
|
|
533
|
+
children: [
|
|
534
|
+
/* @__PURE__ */ r(Wt, { size: 13 }),
|
|
535
|
+
/* @__PURE__ */ r($t, { children: ct }),
|
|
536
|
+
l != null && l.is_default ? /* @__PURE__ */ r(Te, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
|
|
537
|
+
/* @__PURE__ */ r(qt, { size: 13, ownerState: { open: Y } })
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
) }),
|
|
541
|
+
/* @__PURE__ */ r(kt, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
|
|
542
|
+
Ut,
|
|
543
|
+
{
|
|
544
|
+
align: "start",
|
|
545
|
+
sideOffset: 8,
|
|
546
|
+
collisionPadding: Ft,
|
|
547
|
+
className: rt,
|
|
548
|
+
children: [
|
|
549
|
+
/* @__PURE__ */ r(Yt, { children: He }),
|
|
550
|
+
/* @__PURE__ */ s(Gt, { children: [
|
|
551
|
+
fe && !te ? /* @__PURE__ */ r(_e, { children: Pe }) : null,
|
|
552
|
+
!fe && !te ? /* @__PURE__ */ r(_e, { children: De }) : null,
|
|
553
|
+
lt.map((e) => {
|
|
554
|
+
const a = (l == null ? void 0 : l.view_id) === e.view_id;
|
|
555
|
+
return /* @__PURE__ */ s(Jt, { children: [
|
|
556
|
+
/* @__PURE__ */ s(Qt, { type: "button", ownerState: { selected: a }, onClick: () => dt(e), children: [
|
|
557
|
+
/* @__PURE__ */ r(Xt, { children: e.name }),
|
|
558
|
+
e.is_default ? /* @__PURE__ */ r(Te, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
|
|
559
|
+
] }),
|
|
560
|
+
/* @__PURE__ */ r(
|
|
561
|
+
Nt,
|
|
562
|
+
{
|
|
563
|
+
align: "start",
|
|
564
|
+
side: "right",
|
|
565
|
+
size: "sm",
|
|
566
|
+
className: nt,
|
|
567
|
+
trigger: /* @__PURE__ */ r(
|
|
568
|
+
Dt,
|
|
569
|
+
{
|
|
570
|
+
variant: "secondary",
|
|
571
|
+
size: "sm",
|
|
572
|
+
icon: /* @__PURE__ */ r(It, { size: 14, weight: "bold" }),
|
|
573
|
+
"aria-label": `View actions for ${e.name}`
|
|
574
|
+
}
|
|
575
|
+
),
|
|
576
|
+
items: [
|
|
577
|
+
e.is_default ? {
|
|
578
|
+
label: je,
|
|
579
|
+
icon: /* @__PURE__ */ r(le, { size: 16 }),
|
|
580
|
+
onSelect: () => mt(e)
|
|
581
|
+
} : {
|
|
582
|
+
label: Fe,
|
|
583
|
+
icon: /* @__PURE__ */ r(le, { size: 16 }),
|
|
584
|
+
onSelect: () => ut(e)
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
label: Ne,
|
|
588
|
+
icon: /* @__PURE__ */ r(Ot, { size: 16 }),
|
|
589
|
+
onSelect: () => ht(e)
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
label: Me,
|
|
593
|
+
icon: /* @__PURE__ */ r(Lt, { size: 16 }),
|
|
594
|
+
destructive: !0,
|
|
595
|
+
onSelect: () => he(e)
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
}
|
|
599
|
+
)
|
|
600
|
+
] }, e.view_id);
|
|
601
|
+
})
|
|
602
|
+
] }),
|
|
603
|
+
/* @__PURE__ */ r(Zt, {}),
|
|
604
|
+
/* @__PURE__ */ s(er, { type: "button", onClick: bt, children: [
|
|
605
|
+
/* @__PURE__ */ r(At, { size: 16 }),
|
|
606
|
+
/* @__PURE__ */ r("span", { children: Be })
|
|
607
|
+
] })
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
) }) })
|
|
611
|
+
] }),
|
|
612
|
+
/* @__PURE__ */ r(xe, { open: !!D, onOpenChange: (e) => {
|
|
613
|
+
e || ne();
|
|
614
|
+
}, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ s(ae, { children: [
|
|
615
|
+
/* @__PURE__ */ r(Re, {}),
|
|
616
|
+
/* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s("form", { onSubmit: gt, children: [
|
|
617
|
+
/* @__PURE__ */ r(ke, { children: Ke }),
|
|
618
|
+
ce ? /* @__PURE__ */ r(ze, { children: ce }) : null,
|
|
619
|
+
/* @__PURE__ */ r(tr, { htmlFor: ge, children: $e }),
|
|
620
|
+
/* @__PURE__ */ r(
|
|
621
|
+
rr,
|
|
622
|
+
{
|
|
623
|
+
id: ge,
|
|
624
|
+
autoFocus: !0,
|
|
625
|
+
value: Q,
|
|
626
|
+
onChange: (e) => X(e.currentTarget.value)
|
|
627
|
+
}
|
|
628
|
+
),
|
|
629
|
+
/* @__PURE__ */ s(Ae, { children: [
|
|
630
|
+
/* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: ne, children: qe }),
|
|
631
|
+
/* @__PURE__ */ r(j, { type: "submit", disabled: Q.trim().length === 0, children: Ue })
|
|
632
|
+
] })
|
|
633
|
+
] }) })
|
|
634
|
+
] }) }) }),
|
|
635
|
+
/* @__PURE__ */ r(xe, { open: !!g, onOpenChange: (e) => {
|
|
636
|
+
e || re();
|
|
637
|
+
}, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ s(ae, { children: [
|
|
638
|
+
/* @__PURE__ */ r(Re, {}),
|
|
639
|
+
/* @__PURE__ */ s(Ce, { children: [
|
|
640
|
+
/* @__PURE__ */ r(ke, { children: Ye }),
|
|
641
|
+
/* @__PURE__ */ r(ze, { children: Ge ?? /* @__PURE__ */ s(ye, { children: [
|
|
642
|
+
"Are you sure you want to delete",
|
|
643
|
+
g != null && g.name ? /* @__PURE__ */ s(ye, { children: [
|
|
644
|
+
" “",
|
|
645
|
+
/* @__PURE__ */ r("strong", { children: g.name }),
|
|
646
|
+
"”"
|
|
647
|
+
] }) : " this view",
|
|
648
|
+
"? This can’t be undone."
|
|
649
|
+
] }) }),
|
|
650
|
+
/* @__PURE__ */ s(Ae, { children: [
|
|
651
|
+
/* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: re, children: Je }),
|
|
652
|
+
/* @__PURE__ */ r(j, { type: "button", variant: "danger", onClick: pt, children: Qe })
|
|
653
|
+
] })
|
|
654
|
+
] })
|
|
655
|
+
] }) }) })
|
|
656
|
+
] }) : null;
|
|
657
|
+
}
|
|
658
|
+
export {
|
|
659
|
+
_r as TableViewSelector
|
|
660
|
+
};
|
|
661
|
+
//# sourceMappingURL=TableViewSelector.js.map
|