bmdl-sdk 1.5.9 → 2.0.1
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/.prettierrc +37 -0
- package/bin/dev.js +10 -8
- package/bin/init.js +2 -1
- package/bmdl-sdk-2.0.1.tgz +0 -0
- package/global.d.ts +9 -0
- package/next.config.ts +35 -0
- package/package.json +35 -8
- package/postcss.config.mjs +5 -0
- package/public/favicon.ico +0 -0
- package/public/images/bg/404.bg.dark.png +0 -0
- package/public/images/bg/404.bg.png +0 -0
- package/public/images/bg/maintenance.bg.dark.png +0 -0
- package/public/images/bg/maintenance.bg.png +0 -0
- package/public/images/bg/not-authorized.bg.dark.png +0 -0
- package/public/images/bg/not-authorized.bg.png +0 -0
- package/public/images/bg/redirect.bg.dark.png +0 -0
- package/public/images/bg/redirect.bg.png +0 -0
- package/public/images/cover/email-verify.cover.dark.png +0 -0
- package/public/images/cover/email-verify.cover.png +0 -0
- package/public/images/cover/login.cover.dark.png +0 -0
- package/public/images/cover/login.cover.png +0 -0
- package/public/images/cover/password-forgot.cover.dark.png +0 -0
- package/public/images/cover/password-forgot.cover.png +0 -0
- package/public/images/cover/password-reset.cover.dark.png +0 -0
- package/public/images/cover/password-reset.cover.png +0 -0
- package/public/images/cover/register.cover.dark.png +0 -0
- package/public/images/cover/register.cover.png +0 -0
- package/public/images/cover/two-factor-verify.cover.dark.png +0 -0
- package/public/images/cover/two-factor-verify.cover.png +0 -0
- package/public/images/lang/en.png +0 -0
- package/public/images/lang/ru.png +0 -0
- package/public/locales/en/datasets.json +92 -0
- package/public/locales/en/errors.json +402 -0
- package/public/locales/en/general.json +139 -0
- package/public/locales/ru/datasets.json +92 -0
- package/public/locales/ru/errors.json +406 -0
- package/public/locales/ru/general.json +139 -0
- package/src/app/datasets/page.tsx +25 -0
- package/src/app/layout.tsx +45 -0
- package/src/app/not-found.tsx +34 -0
- package/src/app/page.tsx +24 -0
- package/src/components/atoms/Actions/Actions.styles.ts +31 -0
- package/src/components/atoms/Actions/Actions.tsx +45 -0
- package/src/components/atoms/Actions/index.ts +1 -0
- package/src/components/atoms/Avatar/Avatar.styles.ts +95 -0
- package/src/components/atoms/Avatar/Avatar.tsx +46 -0
- package/src/components/atoms/Avatar/index.ts +1 -0
- package/src/components/atoms/Badge/Badge.styles.ts +93 -0
- package/src/components/atoms/Badge/Badge.tsx +31 -0
- package/src/components/atoms/Badge/index.ts +1 -0
- package/src/components/atoms/Button/Button.styles.ts +189 -0
- package/src/components/atoms/Button/Button.tsx +29 -0
- package/src/components/atoms/Button/index.ts +1 -0
- package/src/components/atoms/Calendar/Calendar.styles.ts +227 -0
- package/src/components/atoms/Calendar/Calendar.tsx +96 -0
- package/src/components/atoms/Calendar/index.ts +1 -0
- package/src/components/atoms/Checkbox/Checkbox.styles.ts +37 -0
- package/src/components/atoms/Checkbox/Checkbox.tsx +26 -0
- package/src/components/atoms/Checkbox/index.ts +1 -0
- package/src/components/atoms/Date/Date.styles.ts +6 -0
- package/src/components/atoms/Date/Date.tsx +27 -0
- package/src/components/atoms/Date/index.ts +1 -0
- package/src/components/atoms/DatePicker/DatePicker.styles.ts +53 -0
- package/src/components/atoms/DatePicker/DatePicker.tsx +114 -0
- package/src/components/atoms/DatePicker/DatePicker.utils.tsx +49 -0
- package/src/components/atoms/DatePicker/index.ts +1 -0
- package/src/components/atoms/Dialog/Dialog.styles.ts +71 -0
- package/src/components/atoms/Dialog/Dialog.tsx +55 -0
- package/src/components/atoms/Dialog/index.ts +1 -0
- package/src/components/atoms/Dropdown/Divider/Divider.styles.ts +8 -0
- package/src/components/atoms/Dropdown/Divider/Divider.tsx +14 -0
- package/src/components/atoms/Dropdown/Divider/index.ts +1 -0
- package/src/components/atoms/Dropdown/Dropdown.styles.ts +31 -0
- package/src/components/atoms/Dropdown/Dropdown.tsx +48 -0
- package/src/components/atoms/Dropdown/Item/Item.styles.ts +12 -0
- package/src/components/atoms/Dropdown/Item/Item.tsx +18 -0
- package/src/components/atoms/Dropdown/Item/index.ts +1 -0
- package/src/components/atoms/Dropdown/index.ts +1 -0
- package/src/components/atoms/Form/Form.styles.ts +23 -0
- package/src/components/atoms/Form/Form.tsx +21 -0
- package/src/components/atoms/Form/Item/Item.styles.ts +23 -0
- package/src/components/atoms/Form/Item/Item.tsx +11 -0
- package/src/components/atoms/Form/Item/index.ts +1 -0
- package/src/components/atoms/Form/Label/Label.tsx +11 -0
- package/src/components/atoms/Form/Label/index.ts +1 -0
- package/src/components/atoms/Form/Message/Message.tsx +29 -0
- package/src/components/atoms/Form/Message/index.ts +1 -0
- package/src/components/atoms/Form/index.ts +1 -0
- package/src/components/atoms/Input/Email/Email.tsx +11 -0
- package/src/components/atoms/Input/Email/index.ts +1 -0
- package/src/components/atoms/Input/Input.styles.ts +77 -0
- package/src/components/atoms/Input/Input.tsx +29 -0
- package/src/components/atoms/Input/Number/Number.tsx +12 -0
- package/src/components/atoms/Input/Number/index.ts +1 -0
- package/src/components/atoms/Input/OTP/OTP.styles.ts +30 -0
- package/src/components/atoms/Input/OTP/OTP.tsx +23 -0
- package/src/components/atoms/Input/OTP/index.ts +1 -0
- package/src/components/atoms/Input/Password/Password.tsx +11 -0
- package/src/components/atoms/Input/Password/index.ts +1 -0
- package/src/components/atoms/Input/Search/Search.tsx +12 -0
- package/src/components/atoms/Input/Search/index.ts +1 -0
- package/src/components/atoms/Input/index.ts +1 -0
- package/src/components/atoms/Label/Label.styles.ts +29 -0
- package/src/components/atoms/Label/Label.tsx +18 -0
- package/src/components/atoms/Label/index.ts +1 -0
- package/src/components/atoms/Logo/Logo.styles.ts +16 -0
- package/src/components/atoms/Logo/Logo.tsx +20 -0
- package/src/components/atoms/Logo/index.ts +1 -0
- package/src/components/atoms/Pagination/Pagination.styles.ts +77 -0
- package/src/components/atoms/Pagination/Pagination.tsx +131 -0
- package/src/components/atoms/Pagination/index.ts +1 -0
- package/src/components/atoms/Popover/Popover.styles.ts +28 -0
- package/src/components/atoms/Popover/Popover.tsx +46 -0
- package/src/components/atoms/Popover/index.ts +1 -0
- package/src/components/atoms/Radio/Item/Item.styles.ts +35 -0
- package/src/components/atoms/Radio/Item/Item.tsx +18 -0
- package/src/components/atoms/Radio/Item/index.ts +1 -0
- package/src/components/atoms/Radio/Radio.styles.ts +25 -0
- package/src/components/atoms/Radio/Radio.tsx +21 -0
- package/src/components/atoms/Radio/index.ts +1 -0
- package/src/components/atoms/RangeNumber/RangeNumber.tsx +33 -0
- package/src/components/atoms/RangeNumber/index.ts +1 -0
- package/src/components/atoms/Select/Item/Item.styles.ts +22 -0
- package/src/components/atoms/Select/Item/Item.tsx +17 -0
- package/src/components/atoms/Select/Item/index.ts +1 -0
- package/src/components/atoms/Select/Select.styles.ts +149 -0
- package/src/components/atoms/Select/Select.tsx +68 -0
- package/src/components/atoms/Select/index.ts +1 -0
- package/src/components/atoms/Separator/Separator.styles.ts +13 -0
- package/src/components/atoms/Separator/Separator.tsx +20 -0
- package/src/components/atoms/Separator/index.ts +1 -0
- package/src/components/atoms/Sheet/Sheet.styles.ts +100 -0
- package/src/components/atoms/Sheet/Sheet.tsx +53 -0
- package/src/components/atoms/Sheet/index.ts +1 -0
- package/src/components/atoms/Skeleton/Skeleton.styles.ts +30 -0
- package/src/components/atoms/Skeleton/Skeleton.tsx +11 -0
- package/src/components/atoms/Skeleton/index.ts +1 -0
- package/src/components/atoms/Spin/Spin.styles.ts +17 -0
- package/src/components/atoms/Spin/Spin.tsx +19 -0
- package/src/components/atoms/Spin/index.ts +1 -0
- package/src/components/atoms/Switch/Switch.styles.ts +34 -0
- package/src/components/atoms/Switch/Switch.tsx +20 -0
- package/src/components/atoms/Switch/index.ts +1 -0
- package/src/components/atoms/Table/FilterContent/FilterContent.styles.ts +33 -0
- package/src/components/atoms/Table/FilterContent/FilterContent.tsx +300 -0
- package/src/components/atoms/Table/FilterContent/index.ts +1 -0
- package/src/components/atoms/Table/FilterIcon/FilterIcon.tsx +16 -0
- package/src/components/atoms/Table/FilterIcon/index.ts +1 -0
- package/src/components/atoms/Table/SortIcon/SortIcon.tsx +32 -0
- package/src/components/atoms/Table/SortIcon/index.ts +1 -0
- package/src/components/atoms/Table/Table.styles.ts +178 -0
- package/src/components/atoms/Table/Table.tsx +484 -0
- package/src/components/atoms/Table/Table.utils.tsx +19 -0
- package/src/components/atoms/Table/index.ts +1 -0
- package/src/components/atoms/Tabs/Tabs.tsx +15 -0
- package/src/components/atoms/Tabs/index.ts +1 -0
- package/src/components/atoms/Textarea/Textarea.styles.ts +64 -0
- package/src/components/atoms/Textarea/Textarea.tsx +15 -0
- package/src/components/atoms/Textarea/index.ts +1 -0
- package/src/components/atoms/Toast/Toast.styles.ts +35 -0
- package/src/components/atoms/Toast/Toast.tsx +85 -0
- package/src/components/atoms/Toast/Toast.utils.tsx +43 -0
- package/src/components/atoms/Toast/index.ts +1 -0
- package/src/components/atoms/Tooltip/Tooltip.styles.ts +33 -0
- package/src/components/atoms/Tooltip/Tooltip.tsx +32 -0
- package/src/components/atoms/Tooltip/index.ts +1 -0
- package/src/components/atoms/Typography/Display/Display.styles.ts +26 -0
- package/src/components/atoms/Typography/Display/Display.tsx +11 -0
- package/src/components/atoms/Typography/Display/index.ts +1 -0
- package/src/components/atoms/Typography/Link/Link.styles.ts +32 -0
- package/src/components/atoms/Typography/Link/Link.tsx +25 -0
- package/src/components/atoms/Typography/Link/index.ts +1 -0
- package/src/components/atoms/Typography/Paragraph/Paragraph.styles.ts +32 -0
- package/src/components/atoms/Typography/Paragraph/Paragraph.tsx +11 -0
- package/src/components/atoms/Typography/Paragraph/index.ts +1 -0
- package/src/components/atoms/Typography/Text/Text.styles.ts +39 -0
- package/src/components/atoms/Typography/Text/Text.tsx +25 -0
- package/src/components/atoms/Typography/Text/index.ts +1 -0
- package/src/components/atoms/Typography/Title/Title.styles.ts +28 -0
- package/src/components/atoms/Typography/Title/Title.tsx +15 -0
- package/src/components/atoms/Typography/Title/index.ts +1 -0
- package/src/components/atoms/Typography/Typography.tsx +21 -0
- package/src/components/atoms/Typography/index.ts +1 -0
- package/src/components/atoms/icons/AvanpostIcon.tsx +31 -0
- package/src/components/atoms/icons/CheckIcon.tsx +22 -0
- package/src/components/atoms/icons/EmptyIcon.tsx +56 -0
- package/src/components/atoms/icons/LogoIcon.tsx +141 -0
- package/src/components/atoms/icons/NumberTypeIcon.tsx +25 -0
- package/src/components/atoms/icons/SidebarCloseIcon.tsx +75 -0
- package/src/components/atoms/icons/index.ts +6 -0
- package/src/components/atoms/index.ts +31 -0
- package/src/components/molecules/DataTable/CreationModal/CreationModal.tsx +31 -0
- package/src/components/molecules/DataTable/CreationModal/index.ts +1 -0
- package/src/components/molecules/DataTable/DataTable.styles.ts +23 -0
- package/src/components/molecules/DataTable/DataTable.tsx +167 -0
- package/src/components/molecules/DataTable/Name/Name.tsx +20 -0
- package/src/components/molecules/DataTable/Name/index.ts +1 -0
- package/src/components/molecules/DataTable/Skeleton/Skeleton.tsx +27 -0
- package/src/components/molecules/DataTable/Skeleton/index.ts +6 -0
- package/src/components/molecules/DataTable/index.ts +8 -0
- package/src/components/molecules/Header/Button/Button.styles.ts +24 -0
- package/src/components/molecules/Header/Button/Button.tsx +20 -0
- package/src/components/molecules/Header/Button/index.ts +1 -0
- package/src/components/molecules/Header/Header.styles.ts +16 -0
- package/src/components/molecules/Header/Header.tsx +20 -0
- package/src/components/molecules/Header/Navigate/Navigate.tsx +40 -0
- package/src/components/molecules/Header/Navigate/index.ts +1 -0
- package/src/components/molecules/Header/SelectLang/SelectLang.tsx +47 -0
- package/src/components/molecules/Header/SelectLang/index.ts +2 -0
- package/src/components/molecules/Header/SelectTheme/SelectTheme.tsx +43 -0
- package/src/components/molecules/Header/SelectTheme/index.ts +1 -0
- package/src/components/molecules/Header/index.ts +2 -0
- package/src/components/molecules/ProjectIcon/ProjectIcon.styles.ts +23 -0
- package/src/components/molecules/ProjectIcon/ProjectIcon.tsx +37 -0
- package/src/components/molecules/ProjectIcon/index.ts +1 -0
- package/src/components/molecules/Sidebar/Item/Item.styles.ts +52 -0
- package/src/components/molecules/Sidebar/Item/Item.tsx +30 -0
- package/src/components/molecules/Sidebar/Item/index.ts +1 -0
- package/src/components/molecules/Sidebar/Sidebar.styles.ts +97 -0
- package/src/components/molecules/Sidebar/Sidebar.tsx +122 -0
- package/src/components/molecules/Sidebar/Sidebar.utils.tsx +36 -0
- package/src/components/molecules/Sidebar/Trigger/Trigger.tsx +23 -0
- package/src/components/molecules/Sidebar/Trigger/index.ts +1 -0
- package/src/components/molecules/Sidebar/index.ts +1 -0
- package/src/components/molecules/Widget/Content/Content.tsx +80 -0
- package/src/components/molecules/Widget/Content/index.ts +1 -0
- package/src/components/molecules/Widget/Toolbox/Toolbox.tsx +0 -0
- package/src/components/molecules/Widget/Toolbox/index.ts +0 -0
- package/src/components/molecules/Widget/Widget.tsx +26 -0
- package/src/components/molecules/Widget/Widget.utils.tsx +31 -0
- package/src/components/molecules/Widget/index.ts +2 -0
- package/src/components/molecules/index.ts +6 -0
- package/src/components/organisms/ComponentWidget/ComponentWidget.tsx +9 -0
- package/src/components/organisms/ComponentWidget/index.ts +2 -0
- package/src/components/organisms/DatasetsTable/Creation/Creation.tsx +105 -0
- package/src/components/organisms/DatasetsTable/Creation/Navigate/Navigate.tsx +59 -0
- package/src/components/organisms/DatasetsTable/Creation/Navigate/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Step/Step.styles.ts +12 -0
- package/src/components/organisms/DatasetsTable/Creation/Step/Step.tsx +43 -0
- package/src/components/organisms/DatasetsTable/Creation/Step/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step1/Step1.styles.ts +41 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step1/Step1.tsx +67 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step1/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/SelectSource/SelectSource.tsx +252 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/SelectSource/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/Step2.tsx +11 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/UploadFile/UploadFile.tsx +112 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/UploadFile/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step3/Step3.tsx +145 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step3/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step4/Step4.tsx +120 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/Step4/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Creation/Steps/index.ts +4 -0
- package/src/components/organisms/DatasetsTable/Creation/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/DatasetsTable.tsx +81 -0
- package/src/components/organisms/DatasetsTable/DatasetsTable.utils.tsx +125 -0
- package/src/components/organisms/DatasetsTable/Source/Source.styles.ts +7 -0
- package/src/components/organisms/DatasetsTable/Source/Source.tsx +39 -0
- package/src/components/organisms/DatasetsTable/Source/Source.utils.tsx +45 -0
- package/src/components/organisms/DatasetsTable/Source/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Status/Status.styles.ts +25 -0
- package/src/components/organisms/DatasetsTable/Status/Status.tsx +29 -0
- package/src/components/organisms/DatasetsTable/Status/Status.utils.tsx +29 -0
- package/src/components/organisms/DatasetsTable/Status/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/Type/Type.styles.ts +7 -0
- package/src/components/organisms/DatasetsTable/Type/Type.tsx +32 -0
- package/src/components/organisms/DatasetsTable/Type/Type.utils.tsx +14 -0
- package/src/components/organisms/DatasetsTable/Type/index.ts +1 -0
- package/src/components/organisms/DatasetsTable/index.ts +1 -0
- package/src/components/organisms/index.ts +3 -0
- package/src/components/templates/DefaultLayout/DefaultLayout.styles.ts +26 -0
- package/src/components/templates/DefaultLayout/DefaultLayout.tsx +41 -0
- package/src/components/templates/DefaultLayout/index.ts +1 -0
- package/src/components/templates/PageLayout/PageLayout.styles.ts +25 -0
- package/src/components/templates/PageLayout/PageLayout.tsx +28 -0
- package/src/components/templates/PageLayout/index.ts +1 -0
- package/src/components/templates/index.ts +3 -0
- package/src/config/i18n.config.ts +46 -0
- package/src/constants/index.ts +10 -0
- package/src/contexts/CreateComponentContext/CreateComponentContext.tsx +17 -0
- package/src/contexts/CreateComponentContext/index.ts +4 -0
- package/src/contexts/CreateDatasetContext/CreateDatasetContext.tsx +25 -0
- package/src/contexts/CreateDatasetContext/index.ts +4 -0
- package/src/contexts/ProjectContext/ProjectContext.tsx +32 -0
- package/src/contexts/ProjectContext/index.ts +1 -0
- package/src/contexts/SidebarContext/SidebarContext.tsx +10 -0
- package/src/contexts/SidebarContext/index.ts +1 -0
- package/src/contexts/index.ts +10 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useCreateComponent.ts +15 -0
- package/src/hooks/useCreateDataset.ts +15 -0
- package/src/hooks/useDebounce.ts +17 -0
- package/src/hooks/useDebounced.ts +31 -0
- package/src/hooks/useIsMobile.ts +27 -0
- package/src/hooks/useSidebar.ts +15 -0
- package/src/hooks/useStickyHeader.ts +35 -0
- package/src/hooks/useWindowSize.ts +27 -0
- package/src/providers/CreateComponentProvider/CreateComponentProvider.tsx +53 -0
- package/src/providers/CreateComponentProvider/index.ts +1 -0
- package/src/providers/CreateDatasetProvider/CreateDatasetProvider.tsx +73 -0
- package/src/providers/CreateDatasetProvider/index.ts +1 -0
- package/src/providers/LangProvider/LangProvider.tsx +15 -0
- package/src/providers/LangProvider/index.ts +1 -0
- package/src/providers/ProjectProvider/ProjectProvider.tsx +110 -0
- package/src/providers/ProjectProvider/index.ts +1 -0
- package/src/providers/SidebarProvider/SidebarProvider.tsx +51 -0
- package/src/providers/SidebarProvider/index.ts +1 -0
- package/src/providers/ThemeProvider/ThemeProvider.tsx +20 -0
- package/src/providers/ThemeProvider/index.ts +1 -0
- package/src/providers/index.ts +6 -0
- package/src/store/index.ts +2 -0
- package/src/store/sidebar/sidebar.store.ts +17 -0
- package/src/store/sidebar/sidebar.type.ts +4 -0
- package/src/styles/globals.css +202 -0
- package/src/types/component.type.ts +13 -0
- package/src/types/dataset.type.ts +25 -0
- package/src/types/file.type.ts +13 -0
- package/src/types/general.type.ts +86 -0
- package/src/types/index.ts +9 -0
- package/src/types/layer.type.ts +7 -0
- package/src/types/project.type.ts +15 -0
- package/src/types/user.type.ts +6 -0
- package/src/types/widget.type.ts +12 -0
- package/src/utils/bm.util.ts +150 -0
- package/src/utils/bytes.util.ts +110 -0
- package/src/utils/date.util.ts +49 -0
- package/src/utils/dynamicMessage.util.ts +9 -0
- package/src/utils/getInitials.util.ts +10 -0
- package/src/utils/hideEmail.util.ts +14 -0
- package/src/utils/index.ts +12 -0
- package/src/utils/pagination.util.ts +144 -0
- package/src/utils/twJoin.util.ts +49 -0
- package/src/utils/twMerge.util.ts +6 -0
- package/src/utils/upload.util.ts +26 -0
- package/src/utils/url.util.ts +29 -0
- package/tsconfig.json +40 -6
- package/bmdl-sdk-1.5.9.tgz +0 -0
- package/index.html +0 -12
- package/src/App.tsx +0 -187
- package/src/main.tsx +0 -15
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WidgetModel } from '@/graphql'
|
|
2
|
+
|
|
3
|
+
import { Content } from './Content'
|
|
4
|
+
|
|
5
|
+
interface WidgetProps {
|
|
6
|
+
data: WidgetModel & { i: string }
|
|
7
|
+
className?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function Widget({ data, className }: WidgetProps) {
|
|
11
|
+
const { name, description, componentId, viewOptions, dataOptions } = data
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div className={className}>
|
|
15
|
+
<h3>{name}</h3>
|
|
16
|
+
{description && <p>{description}</p>}
|
|
17
|
+
{componentId && (
|
|
18
|
+
<Content
|
|
19
|
+
componentId={componentId}
|
|
20
|
+
viewOptions={viewOptions}
|
|
21
|
+
dataOptions={dataOptions}
|
|
22
|
+
/>
|
|
23
|
+
)}
|
|
24
|
+
</div>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import clsx from 'clsx'
|
|
2
|
+
import { ReactNode } from 'react'
|
|
3
|
+
|
|
4
|
+
import { Button, Typography } from '@/components/atoms'
|
|
5
|
+
|
|
6
|
+
const { Text } = Typography
|
|
7
|
+
|
|
8
|
+
interface WidgetEmptyProps {
|
|
9
|
+
icon: ReactNode
|
|
10
|
+
text: string
|
|
11
|
+
className?: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const WidgetEmpty = ({ icon, text, className }: WidgetEmptyProps) => {
|
|
15
|
+
return (
|
|
16
|
+
<div className='bg-secondary/8 flex size-full flex-col items-center justify-center gap-y-2'>
|
|
17
|
+
<Button
|
|
18
|
+
asChild
|
|
19
|
+
size='icon'
|
|
20
|
+
variant='label'
|
|
21
|
+
color='secondary'
|
|
22
|
+
className={clsx('pointer-events-none', className)}
|
|
23
|
+
>
|
|
24
|
+
<span>{icon}</span>
|
|
25
|
+
</Button>
|
|
26
|
+
<Text strong accent>
|
|
27
|
+
{text}
|
|
28
|
+
</Text>
|
|
29
|
+
</div>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import { useTranslations } from 'next-intl'
|
|
4
|
+
import { useState } from 'react'
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
TbColumns3,
|
|
8
|
+
TbFileAnalytics,
|
|
9
|
+
TbInfoOctagon,
|
|
10
|
+
TbIrregularPolyhedron
|
|
11
|
+
} from 'react-icons/tb'
|
|
12
|
+
|
|
13
|
+
import { Tabs, Typography } from '@/components/atoms'
|
|
14
|
+
|
|
15
|
+
import { CreateDatasetProvider } from '@/providers'
|
|
16
|
+
|
|
17
|
+
import { Navigate } from './Navigate'
|
|
18
|
+
import { Step } from './Step'
|
|
19
|
+
import { Step1, Step2, Step3, Step4 } from './Steps'
|
|
20
|
+
|
|
21
|
+
const { Title, Paragraph } = Typography
|
|
22
|
+
|
|
23
|
+
type DatasetCreationProps = {}
|
|
24
|
+
|
|
25
|
+
function DatasetCreation({}: DatasetCreationProps) {
|
|
26
|
+
const t = useTranslations('datasets.creation')
|
|
27
|
+
//
|
|
28
|
+
const [activeTab, setActiveTab] = useState('step1')
|
|
29
|
+
//
|
|
30
|
+
const prevTabHandler = () => {
|
|
31
|
+
const currentTab = activeTab[activeTab.length - 1]
|
|
32
|
+
setActiveTab('step' + (+currentTab - 1))
|
|
33
|
+
}
|
|
34
|
+
//
|
|
35
|
+
const nextTabHandler = () => {
|
|
36
|
+
const currentTab = activeTab[activeTab.length - 1]
|
|
37
|
+
setActiveTab('step' + (+currentTab + 1))
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<div className='p-10'>
|
|
42
|
+
<div className='mb-3 text-center'>
|
|
43
|
+
<Title level={3} className='mb-3'>
|
|
44
|
+
{t('title')}
|
|
45
|
+
</Title>
|
|
46
|
+
<Paragraph className='mb-6'>{t('info')}</Paragraph>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<Tabs value={activeTab} onValueChange={setActiveTab}>
|
|
50
|
+
<div className='flex gap-x-15'>
|
|
51
|
+
<div className='flex flex-col gap-y-6'>
|
|
52
|
+
<Step
|
|
53
|
+
num={'one'}
|
|
54
|
+
icon={<TbIrregularPolyhedron />}
|
|
55
|
+
isActive={activeTab === 'step1'}
|
|
56
|
+
/>
|
|
57
|
+
<Step
|
|
58
|
+
num={'two'}
|
|
59
|
+
icon={<TbFileAnalytics />}
|
|
60
|
+
isActive={activeTab === 'step2'}
|
|
61
|
+
/>
|
|
62
|
+
<Step
|
|
63
|
+
num={'three'}
|
|
64
|
+
icon={<TbColumns3 />}
|
|
65
|
+
isActive={activeTab === 'step3'}
|
|
66
|
+
/>
|
|
67
|
+
<Step
|
|
68
|
+
num={'four'}
|
|
69
|
+
icon={<TbInfoOctagon />}
|
|
70
|
+
isActive={activeTab === 'step4'}
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
<div className='flex w-md flex-col'>
|
|
74
|
+
<CreateDatasetProvider>
|
|
75
|
+
<div>
|
|
76
|
+
<Tabs.Content value='step1'>
|
|
77
|
+
<Step1 />
|
|
78
|
+
</Tabs.Content>
|
|
79
|
+
{/* */}
|
|
80
|
+
<Tabs.Content value='step2'>
|
|
81
|
+
<Step2 />
|
|
82
|
+
</Tabs.Content>
|
|
83
|
+
{/* */}
|
|
84
|
+
<Tabs.Content value='step3'>
|
|
85
|
+
<Step3 />
|
|
86
|
+
</Tabs.Content>
|
|
87
|
+
{/* */}
|
|
88
|
+
<Tabs.Content value='step4'>
|
|
89
|
+
<Step4 prevTabHandler={prevTabHandler} />
|
|
90
|
+
</Tabs.Content>
|
|
91
|
+
</div>
|
|
92
|
+
<Navigate
|
|
93
|
+
activeTab={activeTab}
|
|
94
|
+
prevTabHandler={prevTabHandler}
|
|
95
|
+
nextTabHandler={nextTabHandler}
|
|
96
|
+
/>
|
|
97
|
+
</CreateDatasetProvider>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</Tabs>
|
|
101
|
+
</div>
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { DatasetCreation }
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useTranslations } from 'next-intl'
|
|
2
|
+
|
|
3
|
+
import { TbChevronLeft, TbChevronRight } from 'react-icons/tb'
|
|
4
|
+
|
|
5
|
+
import { Button } from '@/components/atoms'
|
|
6
|
+
|
|
7
|
+
import { useCreateDataset } from '@/hooks'
|
|
8
|
+
|
|
9
|
+
type NavigateProps = {
|
|
10
|
+
activeTab: string
|
|
11
|
+
prevTabHandler: any
|
|
12
|
+
nextTabHandler: any
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function Navigate({
|
|
16
|
+
activeTab,
|
|
17
|
+
prevTabHandler,
|
|
18
|
+
nextTabHandler
|
|
19
|
+
}: NavigateProps) {
|
|
20
|
+
const t = useTranslations('')
|
|
21
|
+
//
|
|
22
|
+
const { sourceType, fileInfo, columns } = useCreateDataset()
|
|
23
|
+
//
|
|
24
|
+
const hasDisabled = () => {
|
|
25
|
+
switch (activeTab) {
|
|
26
|
+
case 'step2': {
|
|
27
|
+
return sourceType === 'file' && !fileInfo
|
|
28
|
+
}
|
|
29
|
+
case 'step3': {
|
|
30
|
+
return !columns.length
|
|
31
|
+
}
|
|
32
|
+
default: {
|
|
33
|
+
return false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<div
|
|
40
|
+
className='mt-auto flex justify-between'
|
|
41
|
+
hidden={activeTab === 'step4'}
|
|
42
|
+
>
|
|
43
|
+
<Button
|
|
44
|
+
color='secondary'
|
|
45
|
+
variant='label'
|
|
46
|
+
onClick={prevTabHandler}
|
|
47
|
+
disabled={activeTab === 'step1'}
|
|
48
|
+
>
|
|
49
|
+
<TbChevronLeft />
|
|
50
|
+
{t('back')}
|
|
51
|
+
</Button>
|
|
52
|
+
<Button onClick={nextTabHandler} disabled={hasDisabled()}>
|
|
53
|
+
{t('further')} <TbChevronRight />
|
|
54
|
+
</Button>
|
|
55
|
+
</div>
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { Navigate }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Navigate } from './Navigate'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { twJoin } from '@/utils'
|
|
2
|
+
|
|
3
|
+
export const stepStyles = twJoin({
|
|
4
|
+
display: 'flex items-center gap-x-4'
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
// /////////////////////////
|
|
8
|
+
|
|
9
|
+
export const stepLabelStyles = twJoin({
|
|
10
|
+
display: 'flex flex-col items-start',
|
|
11
|
+
text: 'whitespace-nowrap'
|
|
12
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useTranslations } from 'next-intl'
|
|
2
|
+
import { ReactNode } from 'react'
|
|
3
|
+
|
|
4
|
+
import { Button, Typography } from '@/components/atoms'
|
|
5
|
+
|
|
6
|
+
import { stepLabelStyles, stepStyles } from './Step.styles'
|
|
7
|
+
|
|
8
|
+
const { Text } = Typography
|
|
9
|
+
|
|
10
|
+
type StepProps = {
|
|
11
|
+
num: string
|
|
12
|
+
icon: ReactNode
|
|
13
|
+
isActive: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function Step({ num, icon, isActive }: StepProps) {
|
|
17
|
+
const t = useTranslations('datasets.creation')
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div className={stepStyles}>
|
|
21
|
+
<Button
|
|
22
|
+
asChild
|
|
23
|
+
className='pointer-events-none'
|
|
24
|
+
size='icon'
|
|
25
|
+
variant={isActive ? 'default' : 'label'}
|
|
26
|
+
color={isActive ? 'primary' : 'secondary'}
|
|
27
|
+
>
|
|
28
|
+
<span>{icon}</span>
|
|
29
|
+
</Button>
|
|
30
|
+
|
|
31
|
+
<div className={stepLabelStyles}>
|
|
32
|
+
<Text accent strong className='uppercase'>
|
|
33
|
+
{t(`steps.${num}.btn.name`)}
|
|
34
|
+
</Text>
|
|
35
|
+
<Text strong muted>
|
|
36
|
+
{t(`steps.${num}.btn.desc`)}
|
|
37
|
+
</Text>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Step }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Step } from './Step'
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority'
|
|
2
|
+
|
|
3
|
+
import { twJoin } from '@/utils'
|
|
4
|
+
|
|
5
|
+
export const labelStyles = twJoin({
|
|
6
|
+
display: 'flex items-center justify-between'
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
// /////////////////////////
|
|
10
|
+
|
|
11
|
+
export const labelBodyStyles = twJoin({
|
|
12
|
+
display: 'flex w-full items-center gap-x-4'
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
// /////////////////////////
|
|
16
|
+
|
|
17
|
+
export const labelIconStyles = cva(
|
|
18
|
+
twJoin({
|
|
19
|
+
display: 'flex size-12 items-center justify-center',
|
|
20
|
+
visual: 'rounded-lg',
|
|
21
|
+
childs: '[&_svg]:size-7'
|
|
22
|
+
}),
|
|
23
|
+
{
|
|
24
|
+
variants: {
|
|
25
|
+
type: {
|
|
26
|
+
source: 'bg-green/15 text-green',
|
|
27
|
+
file: 'bg-info/15 text-info'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
type: 'source'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
// /////////////////////////
|
|
37
|
+
|
|
38
|
+
export const labelTextStyles = twJoin({
|
|
39
|
+
display: 'flex flex-col',
|
|
40
|
+
text: 'whitespace-nowrap'
|
|
41
|
+
})
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useTranslations } from 'next-intl'
|
|
2
|
+
|
|
3
|
+
import { TbFileInvoice, TbSitemap } from 'react-icons/tb'
|
|
4
|
+
|
|
5
|
+
import { Label, Radio, Typography } from '@/components/atoms'
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
labelBodyStyles,
|
|
9
|
+
labelIconStyles,
|
|
10
|
+
labelStyles,
|
|
11
|
+
labelTextStyles
|
|
12
|
+
} from './Step1.styles'
|
|
13
|
+
|
|
14
|
+
import { useCreateDataset } from '@/hooks'
|
|
15
|
+
|
|
16
|
+
const { Title, Text } = Typography
|
|
17
|
+
|
|
18
|
+
function Step1() {
|
|
19
|
+
const t = useTranslations('datasets.creation.steps.one')
|
|
20
|
+
//
|
|
21
|
+
const { sourceType, setSourceType } = useCreateDataset()
|
|
22
|
+
//
|
|
23
|
+
return (
|
|
24
|
+
<div className='flex flex-col gap-y-4'>
|
|
25
|
+
<Title level={5}>{t('title')}</Title>
|
|
26
|
+
<Radio
|
|
27
|
+
value={sourceType}
|
|
28
|
+
className='flex flex-col gap-y-4'
|
|
29
|
+
onValueChange={setSourceType}
|
|
30
|
+
>
|
|
31
|
+
<Label htmlFor='type-sourse' className={labelStyles}>
|
|
32
|
+
<div className={labelBodyStyles}>
|
|
33
|
+
<div className={labelIconStyles()}>
|
|
34
|
+
<TbSitemap />
|
|
35
|
+
</div>
|
|
36
|
+
<div className={labelTextStyles}>
|
|
37
|
+
<Text accent>{t('source.name')}</Text>
|
|
38
|
+
<Text muted size={'sm'}>
|
|
39
|
+
{t('source.desc')}
|
|
40
|
+
</Text>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<Radio.Item value='source' id='type-sourse' />
|
|
45
|
+
</Label>
|
|
46
|
+
|
|
47
|
+
<Label htmlFor='type-file' className={labelStyles}>
|
|
48
|
+
<div className={labelBodyStyles}>
|
|
49
|
+
<div className={labelIconStyles({ type: 'file' })}>
|
|
50
|
+
<TbFileInvoice />
|
|
51
|
+
</div>
|
|
52
|
+
<div className={labelTextStyles}>
|
|
53
|
+
<Text accent>{t('file.name')}</Text>
|
|
54
|
+
<Text muted size={'sm'}>
|
|
55
|
+
{t('file.desc')}
|
|
56
|
+
</Text>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<Radio.Item value='file' id='type-file' />
|
|
61
|
+
</Label>
|
|
62
|
+
</Radio>
|
|
63
|
+
</div>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { Step1 }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Step1 } from './Step1'
|
package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/SelectSource/SelectSource.tsx
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { useTranslations } from 'next-intl'
|
|
2
|
+
|
|
3
|
+
import { TbApi, TbDatabase } from 'react-icons/tb'
|
|
4
|
+
|
|
5
|
+
import { Input, Label, Radio, Typography } from '@/components/atoms'
|
|
6
|
+
|
|
7
|
+
const { Title, Text } = Typography
|
|
8
|
+
|
|
9
|
+
function SelectSource() {
|
|
10
|
+
const tg = useTranslations()
|
|
11
|
+
const t = useTranslations('datasets.creation.steps.two.source')
|
|
12
|
+
//
|
|
13
|
+
return (
|
|
14
|
+
<div className='flex flex-col gap-y-4'>
|
|
15
|
+
<Input.Search placeholder={tg('search')} />
|
|
16
|
+
<Title level={5}>{t('title')}</Title>
|
|
17
|
+
<div className='-mr-6 mb-4 max-h-95 overflow-y-auto pr-4'>
|
|
18
|
+
<Radio className='flex flex-col gap-y-3'>
|
|
19
|
+
<Label
|
|
20
|
+
htmlFor='sourse-1'
|
|
21
|
+
className='flex items-center justify-between'
|
|
22
|
+
>
|
|
23
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
24
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
25
|
+
<TbDatabase />
|
|
26
|
+
</div>
|
|
27
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
28
|
+
<Text accent>1C_ЗУП</Text>
|
|
29
|
+
<Text muted size={'sm'}>
|
|
30
|
+
Postgres
|
|
31
|
+
</Text>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<Radio.Item value='sourse-1' id='sourse-1' />
|
|
36
|
+
</Label>
|
|
37
|
+
|
|
38
|
+
<Label
|
|
39
|
+
htmlFor='sourse-2'
|
|
40
|
+
className='flex items-center justify-between'
|
|
41
|
+
>
|
|
42
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
43
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
44
|
+
<TbApi />
|
|
45
|
+
</div>
|
|
46
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
47
|
+
<Text accent>srv-obvp-243.bft.local:8080</Text>
|
|
48
|
+
<Text muted size={'sm'}>
|
|
49
|
+
ПА
|
|
50
|
+
</Text>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<Radio.Item value='sourse-2' id='sourse-2' />
|
|
55
|
+
</Label>
|
|
56
|
+
|
|
57
|
+
<Label
|
|
58
|
+
htmlFor='sourse-3'
|
|
59
|
+
className='flex items-center justify-between'
|
|
60
|
+
>
|
|
61
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
62
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
63
|
+
<TbApi />
|
|
64
|
+
</div>
|
|
65
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
66
|
+
<Text accent>Тестовый стенд полиматики</Text>
|
|
67
|
+
<Text muted size={'sm'}>
|
|
68
|
+
ПА
|
|
69
|
+
</Text>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<Radio.Item value='sourse-3' id='sourse-3' />
|
|
74
|
+
</Label>
|
|
75
|
+
|
|
76
|
+
<Label
|
|
77
|
+
htmlFor='sourse-4'
|
|
78
|
+
className='flex items-center justify-between'
|
|
79
|
+
>
|
|
80
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
81
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
82
|
+
<TbDatabase />
|
|
83
|
+
</div>
|
|
84
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
85
|
+
<Text accent>БД. НО</Text>
|
|
86
|
+
<Text muted size={'sm'}>
|
|
87
|
+
ClickHouse
|
|
88
|
+
</Text>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<Radio.Item value='sourse-4' id='sourse-4' />
|
|
93
|
+
</Label>
|
|
94
|
+
|
|
95
|
+
<Label
|
|
96
|
+
htmlFor='sourse-5'
|
|
97
|
+
className='flex items-center justify-between'
|
|
98
|
+
>
|
|
99
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
100
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
101
|
+
<TbDatabase />
|
|
102
|
+
</div>
|
|
103
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
104
|
+
<Text accent>БД. УО</Text>
|
|
105
|
+
<Text muted size={'sm'}>
|
|
106
|
+
Postgres
|
|
107
|
+
</Text>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<Radio.Item value='sourse-5' id='sourse-5' />
|
|
112
|
+
</Label>
|
|
113
|
+
|
|
114
|
+
<Label
|
|
115
|
+
htmlFor='sourse-6'
|
|
116
|
+
className='flex items-center justify-between'
|
|
117
|
+
>
|
|
118
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
119
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
120
|
+
<TbApi />
|
|
121
|
+
</div>
|
|
122
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
123
|
+
<Text accent>Источник ПА</Text>
|
|
124
|
+
<Text muted size={'sm'}>
|
|
125
|
+
ПА
|
|
126
|
+
</Text>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<Radio.Item value='sourse-6' id='sourse-6' />
|
|
131
|
+
</Label>
|
|
132
|
+
|
|
133
|
+
<Label
|
|
134
|
+
htmlFor='sourse-7'
|
|
135
|
+
className='flex items-center justify-between'
|
|
136
|
+
>
|
|
137
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
138
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
139
|
+
<TbDatabase />
|
|
140
|
+
</div>
|
|
141
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
142
|
+
<Text accent>1C_ЗУП</Text>
|
|
143
|
+
<Text muted size={'sm'}>
|
|
144
|
+
Postgres
|
|
145
|
+
</Text>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<Radio.Item value='sourse-7' id='sourse-7' />
|
|
150
|
+
</Label>
|
|
151
|
+
|
|
152
|
+
<Label
|
|
153
|
+
htmlFor='sourse-8'
|
|
154
|
+
className='flex items-center justify-between'
|
|
155
|
+
>
|
|
156
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
157
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
158
|
+
<TbApi />
|
|
159
|
+
</div>
|
|
160
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
161
|
+
<Text accent>srv-obvp-243.bft.local:8080</Text>
|
|
162
|
+
<Text muted size={'sm'}>
|
|
163
|
+
ПА
|
|
164
|
+
</Text>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<Radio.Item value='sourse-8' id='sourse-8' />
|
|
169
|
+
</Label>
|
|
170
|
+
|
|
171
|
+
<Label
|
|
172
|
+
htmlFor='sourse-9'
|
|
173
|
+
className='flex items-center justify-between'
|
|
174
|
+
>
|
|
175
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
176
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
177
|
+
<TbApi />
|
|
178
|
+
</div>
|
|
179
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
180
|
+
<Text accent>Тестовый стенд полиматики</Text>
|
|
181
|
+
<Text muted size={'sm'}>
|
|
182
|
+
ПА
|
|
183
|
+
</Text>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<Radio.Item value='sourse-9' id='sourse-9' />
|
|
188
|
+
</Label>
|
|
189
|
+
|
|
190
|
+
<Label
|
|
191
|
+
htmlFor='sourse-10'
|
|
192
|
+
className='flex items-center justify-between'
|
|
193
|
+
>
|
|
194
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
195
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
196
|
+
<TbDatabase />
|
|
197
|
+
</div>
|
|
198
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
199
|
+
<Text accent>БД. НО</Text>
|
|
200
|
+
<Text muted size={'sm'}>
|
|
201
|
+
ClickHouse
|
|
202
|
+
</Text>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
<Radio.Item value='sourse-10' id='sourse-10' />
|
|
207
|
+
</Label>
|
|
208
|
+
|
|
209
|
+
<Label
|
|
210
|
+
htmlFor='sourse-11'
|
|
211
|
+
className='flex items-center justify-between'
|
|
212
|
+
>
|
|
213
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
214
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
215
|
+
<TbDatabase />
|
|
216
|
+
</div>
|
|
217
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
218
|
+
<Text accent>БД. УО</Text>
|
|
219
|
+
<Text muted size={'sm'}>
|
|
220
|
+
Postgres
|
|
221
|
+
</Text>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<Radio.Item value='sourse-11' id='sourse-11' />
|
|
226
|
+
</Label>
|
|
227
|
+
|
|
228
|
+
<Label
|
|
229
|
+
htmlFor='sourse-12'
|
|
230
|
+
className='flex items-center justify-between'
|
|
231
|
+
>
|
|
232
|
+
<div className='flex w-full items-center gap-x-4'>
|
|
233
|
+
<div className='bg-gray/15 text-gray flex size-9.5 items-center justify-center rounded-lg [&_svg]:size-6'>
|
|
234
|
+
<TbApi />
|
|
235
|
+
</div>
|
|
236
|
+
<div className='flex flex-col whitespace-nowrap'>
|
|
237
|
+
<Text accent>Источник ПА</Text>
|
|
238
|
+
<Text muted size={'sm'}>
|
|
239
|
+
ПА
|
|
240
|
+
</Text>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
<Radio.Item value='sourse-12' id='sourse-12' />
|
|
245
|
+
</Label>
|
|
246
|
+
</Radio>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
)
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export { SelectSource }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectSource } from './SelectSource'
|