bmdl-sdk 1.5.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +37 -0
- package/bin/dev.js +5 -4
- package/bin/init.js +2 -1
- package/bmdl-sdk-2.0.0.tgz +0 -0
- package/global.d.ts +9 -0
- package/next.config.ts +27 -0
- package/package.json +36 -15
- 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 +107 -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/templates/App.tsx +1 -1
- package/templates/config.ts +1 -1
- package/templates/dataOptions.ts +1 -1
- package/templates/viewOptions.ts +1 -1
- package/tsconfig.json +40 -6
- package/bmdl-sdk-1.5.8.tgz +0 -0
- package/index.html +0 -12
- package/src/App.tsx +0 -187
- package/src/main.tsx +0 -15
package/.prettierrc
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"trailingComma": "none",
|
|
3
|
+
"tabWidth": 4,
|
|
4
|
+
"useTabs": true,
|
|
5
|
+
"semi": false,
|
|
6
|
+
"singleQuote": true,
|
|
7
|
+
"jsxSingleQuote": true,
|
|
8
|
+
"arrowParens": "avoid",
|
|
9
|
+
"printWidth": 80,
|
|
10
|
+
"importOrderSeparation": true,
|
|
11
|
+
"importOrderSortSpecifiers": true,
|
|
12
|
+
"importOrderCaseInsensitive": true,
|
|
13
|
+
"importOrder": [
|
|
14
|
+
"<THIRD_PARTY_MODULES>",
|
|
15
|
+
"^@/constants/?(.*)$",
|
|
16
|
+
"^@/graphql$",
|
|
17
|
+
"^radix-ui$",
|
|
18
|
+
"^@/app/(.*)$",
|
|
19
|
+
"^react-icons/(.*)$",
|
|
20
|
+
"^@/components/atoms/icons$",
|
|
21
|
+
"^@/components/atoms/?(.*)$",
|
|
22
|
+
"^@/components/molecules/?(.*)$",
|
|
23
|
+
"^@/components/organisms/?(.*)$",
|
|
24
|
+
"^@/components/templates/?(.*)$",
|
|
25
|
+
"^@/providers/?(.*)$",
|
|
26
|
+
"^@/store/?(.*)$",
|
|
27
|
+
"^@/types/?(.*)$",
|
|
28
|
+
"^..$",
|
|
29
|
+
"^./(.*)(.styles)$",
|
|
30
|
+
"^../(.*)$",
|
|
31
|
+
"^./(.*)$"
|
|
32
|
+
],
|
|
33
|
+
"plugins": [
|
|
34
|
+
"@trivago/prettier-plugin-sort-imports",
|
|
35
|
+
"prettier-plugin-tailwindcss"
|
|
36
|
+
]
|
|
37
|
+
}
|
package/bin/dev.js
CHANGED
|
@@ -48,9 +48,9 @@ console.log('🌐 http://localhost:3000')
|
|
|
48
48
|
console.log('')
|
|
49
49
|
|
|
50
50
|
// Запускаем Vite - убираем --root, используем только --config
|
|
51
|
-
const
|
|
51
|
+
const next = spawn(
|
|
52
52
|
'npx',
|
|
53
|
-
['
|
|
53
|
+
['next', 'dev', '--port', '3000'],
|
|
54
54
|
{
|
|
55
55
|
stdio: 'inherit',
|
|
56
56
|
shell: true,
|
|
@@ -58,13 +58,14 @@ const vite = spawn(
|
|
|
58
58
|
env: {
|
|
59
59
|
...process.env,
|
|
60
60
|
PROJECT_ROOT: projectRoot,
|
|
61
|
+
NODE_ENV: 'development',
|
|
61
62
|
},
|
|
62
63
|
},
|
|
63
64
|
)
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
next.on('close', code => {
|
|
66
67
|
if (code !== 0) {
|
|
67
|
-
console.log(`❌
|
|
68
|
+
console.log(`❌ Next.js process exited with code ${code}`)
|
|
68
69
|
}
|
|
69
70
|
process.exit(code)
|
|
70
71
|
})
|
package/bin/init.js
CHANGED
|
@@ -41,6 +41,7 @@ const templateFiles = {
|
|
|
41
41
|
'src/viewOptions.ts': 'viewOptions.ts',
|
|
42
42
|
'public/icon.svg': 'icon.svg',
|
|
43
43
|
'tsconfig.json': 'tsconfig.json',
|
|
44
|
+
'.gitignore': '.gitignore',
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
for (const [dest, template] of Object.entries(templateFiles)) {
|
|
@@ -71,7 +72,7 @@ function updatePackageJson(projectRoot) {
|
|
|
71
72
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'))
|
|
72
73
|
|
|
73
74
|
packageJson.scripts = {
|
|
74
|
-
dev: 'bmdl-sdk dev',
|
|
75
|
+
'start:dev': 'bmdl-sdk dev',
|
|
75
76
|
build: 'bmdl-sdk build',
|
|
76
77
|
}
|
|
77
78
|
|
|
Binary file
|
package/global.d.ts
ADDED
package/next.config.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { NextConfig } from 'next'
|
|
2
|
+
import createNextIntlPlugin from 'next-intl/plugin'
|
|
3
|
+
import packageJson from './package.json'
|
|
4
|
+
|
|
5
|
+
const withNextIntl = createNextIntlPlugin('./src/config/i18n.config.ts')
|
|
6
|
+
|
|
7
|
+
const nextConfig: NextConfig = {
|
|
8
|
+
reactStrictMode: false,
|
|
9
|
+
transpilePackages: ['bmdl-sdk'],
|
|
10
|
+
webpack: (config, { isServer }) => {
|
|
11
|
+
// Добавляем поддержку импорта из проекта разработчика
|
|
12
|
+
config.resolve.alias['@project'] = process.env.PROJECT_ROOT
|
|
13
|
+
? `${process.env.PROJECT_ROOT}/src`
|
|
14
|
+
: '../line/src'
|
|
15
|
+
|
|
16
|
+
return config
|
|
17
|
+
},
|
|
18
|
+
// Включаем экспериментальные функции для динамических импортов
|
|
19
|
+
experimental: {
|
|
20
|
+
esmExternals: true
|
|
21
|
+
},
|
|
22
|
+
env: {
|
|
23
|
+
NEXT_PUBLIC_APP_VERSION: packageJson.version,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default withNextIntl(nextConfig)
|
package/package.json
CHANGED
|
@@ -1,34 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bmdl-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"bmdl-sdk": "./bin/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"dev": "
|
|
11
|
-
"build": "vite build"
|
|
12
|
-
"preview": "vite preview"
|
|
10
|
+
"start:dev": "next dev",
|
|
11
|
+
"build": "vite build"
|
|
13
12
|
},
|
|
14
13
|
"keywords": [],
|
|
15
14
|
"author": "",
|
|
16
15
|
"license": "ISC",
|
|
17
16
|
"dependencies": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"@
|
|
17
|
+
"@dnd-kit/core": "^6.3.1",
|
|
18
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
19
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
20
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
21
|
+
"@radix-ui/react-checkbox": "^1.3.7",
|
|
22
|
+
"@radix-ui/react-dropdown-menu": "^2.1.20",
|
|
23
|
+
"@radix-ui/react-label": "^2.1.11",
|
|
24
|
+
"@radix-ui/react-popover": "^1.1.19",
|
|
25
|
+
"@radix-ui/react-select": "^2.3.3",
|
|
26
|
+
"@radix-ui/react-slot": "^1.3.0",
|
|
27
|
+
"@radix-ui/react-tooltip": "^1.2.12",
|
|
28
|
+
"@react-input/mask": "^2.0.4",
|
|
23
29
|
"@types/react": "^19.2.17",
|
|
24
30
|
"@types/react-dom": "^19.2.3",
|
|
25
31
|
"@vitejs/plugin-react": "^4.0.0",
|
|
26
|
-
"
|
|
32
|
+
"class-variance-authority": "^0.7.1",
|
|
33
|
+
"clsx": "^2.1.1",
|
|
34
|
+
"dayjs": "^1.11.21",
|
|
35
|
+
"next": "^16.2.10",
|
|
36
|
+
"next-intl": "^4.13.1",
|
|
37
|
+
"next-themes": "^0.4.6",
|
|
38
|
+
"radix-ui": "^1.6.2",
|
|
39
|
+
"react": "^19.2.7",
|
|
40
|
+
"react-day-picker": "^10.0.1",
|
|
41
|
+
"react-dom": "^19.2.7",
|
|
42
|
+
"react-icons": "^5.7.0",
|
|
43
|
+
"sonner": "^2.0.7",
|
|
44
|
+
"tailwind-merge": "^3.6.0",
|
|
45
|
+
"vite": "^4.0.0",
|
|
46
|
+
"zustand": "^5.0.14"
|
|
27
47
|
},
|
|
28
|
-
"
|
|
29
|
-
"@
|
|
30
|
-
"@types/
|
|
31
|
-
"
|
|
32
|
-
"
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@tailwindcss/postcss": "^4.3.2",
|
|
50
|
+
"@types/node": "^26.1.1",
|
|
51
|
+
"tailwindcss": "^4.3.2",
|
|
52
|
+
"tw-animate-css": "^1.4.0",
|
|
53
|
+
"typescript": "7.0.2"
|
|
33
54
|
}
|
|
34
55
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"seo": {
|
|
3
|
+
"title": "Dataset list"
|
|
4
|
+
},
|
|
5
|
+
"add": "Add Dataset",
|
|
6
|
+
"columns": {
|
|
7
|
+
"type": "Type",
|
|
8
|
+
"name": "Name",
|
|
9
|
+
"items": "Items",
|
|
10
|
+
"connects": "Connects",
|
|
11
|
+
"source": "Source",
|
|
12
|
+
"author": "Author",
|
|
13
|
+
"create": "Create",
|
|
14
|
+
"edit": "Edit",
|
|
15
|
+
"update": "Update",
|
|
16
|
+
"status": "Status"
|
|
17
|
+
},
|
|
18
|
+
"items": "Showing {from} to {to} of {total, plural, other {# datasets}}",
|
|
19
|
+
"type": {
|
|
20
|
+
"local": "Local",
|
|
21
|
+
"joined": "Joined"
|
|
22
|
+
},
|
|
23
|
+
"source": {
|
|
24
|
+
"db": "Database - {name}",
|
|
25
|
+
"api": "API - {name}",
|
|
26
|
+
"csv": "CSV file - {name}",
|
|
27
|
+
"xml": "XML file - {name}",
|
|
28
|
+
"xls": "XLS file - {name}",
|
|
29
|
+
"json": "JOSN file - {name}"
|
|
30
|
+
},
|
|
31
|
+
"creation": {
|
|
32
|
+
"title": "Create Dataset",
|
|
33
|
+
"info": "Provide data with this form to create dataset.",
|
|
34
|
+
"steps": {
|
|
35
|
+
"one": {
|
|
36
|
+
"btn": {
|
|
37
|
+
"name": "Data",
|
|
38
|
+
"desc": "Data source"
|
|
39
|
+
},
|
|
40
|
+
"title": "Source type",
|
|
41
|
+
"source": {
|
|
42
|
+
"name": "Source",
|
|
43
|
+
"desc": "From connected"
|
|
44
|
+
},
|
|
45
|
+
"file": {
|
|
46
|
+
"name": "File",
|
|
47
|
+
"desc": "csv, xlsx, json, xml"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"two": {
|
|
51
|
+
"btn": {
|
|
52
|
+
"name": "Select",
|
|
53
|
+
"desc": "Source/file"
|
|
54
|
+
},
|
|
55
|
+
"source": {
|
|
56
|
+
"title": "Sources"
|
|
57
|
+
},
|
|
58
|
+
"file": {
|
|
59
|
+
"title": "File",
|
|
60
|
+
"fields": {
|
|
61
|
+
"format": "Format",
|
|
62
|
+
"encoding": "Encoding",
|
|
63
|
+
"separator": "Separator"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"three": {
|
|
68
|
+
"btn": {
|
|
69
|
+
"name": "Columns",
|
|
70
|
+
"desc": "Setting up columns"
|
|
71
|
+
},
|
|
72
|
+
"title": "Checking the columns",
|
|
73
|
+
"columns": {
|
|
74
|
+
"name": "Name",
|
|
75
|
+
"type": "Type"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"four": {
|
|
79
|
+
"btn": {
|
|
80
|
+
"name": "Information",
|
|
81
|
+
"desc": "Setting up details"
|
|
82
|
+
},
|
|
83
|
+
"title": "Settings",
|
|
84
|
+
"fields": {
|
|
85
|
+
"name": "Dataset name",
|
|
86
|
+
"description": "Description of the dataset",
|
|
87
|
+
"access-rights": "Access rights"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|