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.
Files changed (341) hide show
  1. package/.prettierrc +37 -0
  2. package/bin/dev.js +10 -8
  3. package/bin/init.js +2 -1
  4. package/bmdl-sdk-2.0.1.tgz +0 -0
  5. package/global.d.ts +9 -0
  6. package/next.config.ts +35 -0
  7. package/package.json +35 -8
  8. package/postcss.config.mjs +5 -0
  9. package/public/favicon.ico +0 -0
  10. package/public/images/bg/404.bg.dark.png +0 -0
  11. package/public/images/bg/404.bg.png +0 -0
  12. package/public/images/bg/maintenance.bg.dark.png +0 -0
  13. package/public/images/bg/maintenance.bg.png +0 -0
  14. package/public/images/bg/not-authorized.bg.dark.png +0 -0
  15. package/public/images/bg/not-authorized.bg.png +0 -0
  16. package/public/images/bg/redirect.bg.dark.png +0 -0
  17. package/public/images/bg/redirect.bg.png +0 -0
  18. package/public/images/cover/email-verify.cover.dark.png +0 -0
  19. package/public/images/cover/email-verify.cover.png +0 -0
  20. package/public/images/cover/login.cover.dark.png +0 -0
  21. package/public/images/cover/login.cover.png +0 -0
  22. package/public/images/cover/password-forgot.cover.dark.png +0 -0
  23. package/public/images/cover/password-forgot.cover.png +0 -0
  24. package/public/images/cover/password-reset.cover.dark.png +0 -0
  25. package/public/images/cover/password-reset.cover.png +0 -0
  26. package/public/images/cover/register.cover.dark.png +0 -0
  27. package/public/images/cover/register.cover.png +0 -0
  28. package/public/images/cover/two-factor-verify.cover.dark.png +0 -0
  29. package/public/images/cover/two-factor-verify.cover.png +0 -0
  30. package/public/images/lang/en.png +0 -0
  31. package/public/images/lang/ru.png +0 -0
  32. package/public/locales/en/datasets.json +92 -0
  33. package/public/locales/en/errors.json +402 -0
  34. package/public/locales/en/general.json +139 -0
  35. package/public/locales/ru/datasets.json +92 -0
  36. package/public/locales/ru/errors.json +406 -0
  37. package/public/locales/ru/general.json +139 -0
  38. package/src/app/datasets/page.tsx +25 -0
  39. package/src/app/layout.tsx +45 -0
  40. package/src/app/not-found.tsx +34 -0
  41. package/src/app/page.tsx +24 -0
  42. package/src/components/atoms/Actions/Actions.styles.ts +31 -0
  43. package/src/components/atoms/Actions/Actions.tsx +45 -0
  44. package/src/components/atoms/Actions/index.ts +1 -0
  45. package/src/components/atoms/Avatar/Avatar.styles.ts +95 -0
  46. package/src/components/atoms/Avatar/Avatar.tsx +46 -0
  47. package/src/components/atoms/Avatar/index.ts +1 -0
  48. package/src/components/atoms/Badge/Badge.styles.ts +93 -0
  49. package/src/components/atoms/Badge/Badge.tsx +31 -0
  50. package/src/components/atoms/Badge/index.ts +1 -0
  51. package/src/components/atoms/Button/Button.styles.ts +189 -0
  52. package/src/components/atoms/Button/Button.tsx +29 -0
  53. package/src/components/atoms/Button/index.ts +1 -0
  54. package/src/components/atoms/Calendar/Calendar.styles.ts +227 -0
  55. package/src/components/atoms/Calendar/Calendar.tsx +96 -0
  56. package/src/components/atoms/Calendar/index.ts +1 -0
  57. package/src/components/atoms/Checkbox/Checkbox.styles.ts +37 -0
  58. package/src/components/atoms/Checkbox/Checkbox.tsx +26 -0
  59. package/src/components/atoms/Checkbox/index.ts +1 -0
  60. package/src/components/atoms/Date/Date.styles.ts +6 -0
  61. package/src/components/atoms/Date/Date.tsx +27 -0
  62. package/src/components/atoms/Date/index.ts +1 -0
  63. package/src/components/atoms/DatePicker/DatePicker.styles.ts +53 -0
  64. package/src/components/atoms/DatePicker/DatePicker.tsx +114 -0
  65. package/src/components/atoms/DatePicker/DatePicker.utils.tsx +49 -0
  66. package/src/components/atoms/DatePicker/index.ts +1 -0
  67. package/src/components/atoms/Dialog/Dialog.styles.ts +71 -0
  68. package/src/components/atoms/Dialog/Dialog.tsx +55 -0
  69. package/src/components/atoms/Dialog/index.ts +1 -0
  70. package/src/components/atoms/Dropdown/Divider/Divider.styles.ts +8 -0
  71. package/src/components/atoms/Dropdown/Divider/Divider.tsx +14 -0
  72. package/src/components/atoms/Dropdown/Divider/index.ts +1 -0
  73. package/src/components/atoms/Dropdown/Dropdown.styles.ts +31 -0
  74. package/src/components/atoms/Dropdown/Dropdown.tsx +48 -0
  75. package/src/components/atoms/Dropdown/Item/Item.styles.ts +12 -0
  76. package/src/components/atoms/Dropdown/Item/Item.tsx +18 -0
  77. package/src/components/atoms/Dropdown/Item/index.ts +1 -0
  78. package/src/components/atoms/Dropdown/index.ts +1 -0
  79. package/src/components/atoms/Form/Form.styles.ts +23 -0
  80. package/src/components/atoms/Form/Form.tsx +21 -0
  81. package/src/components/atoms/Form/Item/Item.styles.ts +23 -0
  82. package/src/components/atoms/Form/Item/Item.tsx +11 -0
  83. package/src/components/atoms/Form/Item/index.ts +1 -0
  84. package/src/components/atoms/Form/Label/Label.tsx +11 -0
  85. package/src/components/atoms/Form/Label/index.ts +1 -0
  86. package/src/components/atoms/Form/Message/Message.tsx +29 -0
  87. package/src/components/atoms/Form/Message/index.ts +1 -0
  88. package/src/components/atoms/Form/index.ts +1 -0
  89. package/src/components/atoms/Input/Email/Email.tsx +11 -0
  90. package/src/components/atoms/Input/Email/index.ts +1 -0
  91. package/src/components/atoms/Input/Input.styles.ts +77 -0
  92. package/src/components/atoms/Input/Input.tsx +29 -0
  93. package/src/components/atoms/Input/Number/Number.tsx +12 -0
  94. package/src/components/atoms/Input/Number/index.ts +1 -0
  95. package/src/components/atoms/Input/OTP/OTP.styles.ts +30 -0
  96. package/src/components/atoms/Input/OTP/OTP.tsx +23 -0
  97. package/src/components/atoms/Input/OTP/index.ts +1 -0
  98. package/src/components/atoms/Input/Password/Password.tsx +11 -0
  99. package/src/components/atoms/Input/Password/index.ts +1 -0
  100. package/src/components/atoms/Input/Search/Search.tsx +12 -0
  101. package/src/components/atoms/Input/Search/index.ts +1 -0
  102. package/src/components/atoms/Input/index.ts +1 -0
  103. package/src/components/atoms/Label/Label.styles.ts +29 -0
  104. package/src/components/atoms/Label/Label.tsx +18 -0
  105. package/src/components/atoms/Label/index.ts +1 -0
  106. package/src/components/atoms/Logo/Logo.styles.ts +16 -0
  107. package/src/components/atoms/Logo/Logo.tsx +20 -0
  108. package/src/components/atoms/Logo/index.ts +1 -0
  109. package/src/components/atoms/Pagination/Pagination.styles.ts +77 -0
  110. package/src/components/atoms/Pagination/Pagination.tsx +131 -0
  111. package/src/components/atoms/Pagination/index.ts +1 -0
  112. package/src/components/atoms/Popover/Popover.styles.ts +28 -0
  113. package/src/components/atoms/Popover/Popover.tsx +46 -0
  114. package/src/components/atoms/Popover/index.ts +1 -0
  115. package/src/components/atoms/Radio/Item/Item.styles.ts +35 -0
  116. package/src/components/atoms/Radio/Item/Item.tsx +18 -0
  117. package/src/components/atoms/Radio/Item/index.ts +1 -0
  118. package/src/components/atoms/Radio/Radio.styles.ts +25 -0
  119. package/src/components/atoms/Radio/Radio.tsx +21 -0
  120. package/src/components/atoms/Radio/index.ts +1 -0
  121. package/src/components/atoms/RangeNumber/RangeNumber.tsx +33 -0
  122. package/src/components/atoms/RangeNumber/index.ts +1 -0
  123. package/src/components/atoms/Select/Item/Item.styles.ts +22 -0
  124. package/src/components/atoms/Select/Item/Item.tsx +17 -0
  125. package/src/components/atoms/Select/Item/index.ts +1 -0
  126. package/src/components/atoms/Select/Select.styles.ts +149 -0
  127. package/src/components/atoms/Select/Select.tsx +68 -0
  128. package/src/components/atoms/Select/index.ts +1 -0
  129. package/src/components/atoms/Separator/Separator.styles.ts +13 -0
  130. package/src/components/atoms/Separator/Separator.tsx +20 -0
  131. package/src/components/atoms/Separator/index.ts +1 -0
  132. package/src/components/atoms/Sheet/Sheet.styles.ts +100 -0
  133. package/src/components/atoms/Sheet/Sheet.tsx +53 -0
  134. package/src/components/atoms/Sheet/index.ts +1 -0
  135. package/src/components/atoms/Skeleton/Skeleton.styles.ts +30 -0
  136. package/src/components/atoms/Skeleton/Skeleton.tsx +11 -0
  137. package/src/components/atoms/Skeleton/index.ts +1 -0
  138. package/src/components/atoms/Spin/Spin.styles.ts +17 -0
  139. package/src/components/atoms/Spin/Spin.tsx +19 -0
  140. package/src/components/atoms/Spin/index.ts +1 -0
  141. package/src/components/atoms/Switch/Switch.styles.ts +34 -0
  142. package/src/components/atoms/Switch/Switch.tsx +20 -0
  143. package/src/components/atoms/Switch/index.ts +1 -0
  144. package/src/components/atoms/Table/FilterContent/FilterContent.styles.ts +33 -0
  145. package/src/components/atoms/Table/FilterContent/FilterContent.tsx +300 -0
  146. package/src/components/atoms/Table/FilterContent/index.ts +1 -0
  147. package/src/components/atoms/Table/FilterIcon/FilterIcon.tsx +16 -0
  148. package/src/components/atoms/Table/FilterIcon/index.ts +1 -0
  149. package/src/components/atoms/Table/SortIcon/SortIcon.tsx +32 -0
  150. package/src/components/atoms/Table/SortIcon/index.ts +1 -0
  151. package/src/components/atoms/Table/Table.styles.ts +178 -0
  152. package/src/components/atoms/Table/Table.tsx +484 -0
  153. package/src/components/atoms/Table/Table.utils.tsx +19 -0
  154. package/src/components/atoms/Table/index.ts +1 -0
  155. package/src/components/atoms/Tabs/Tabs.tsx +15 -0
  156. package/src/components/atoms/Tabs/index.ts +1 -0
  157. package/src/components/atoms/Textarea/Textarea.styles.ts +64 -0
  158. package/src/components/atoms/Textarea/Textarea.tsx +15 -0
  159. package/src/components/atoms/Textarea/index.ts +1 -0
  160. package/src/components/atoms/Toast/Toast.styles.ts +35 -0
  161. package/src/components/atoms/Toast/Toast.tsx +85 -0
  162. package/src/components/atoms/Toast/Toast.utils.tsx +43 -0
  163. package/src/components/atoms/Toast/index.ts +1 -0
  164. package/src/components/atoms/Tooltip/Tooltip.styles.ts +33 -0
  165. package/src/components/atoms/Tooltip/Tooltip.tsx +32 -0
  166. package/src/components/atoms/Tooltip/index.ts +1 -0
  167. package/src/components/atoms/Typography/Display/Display.styles.ts +26 -0
  168. package/src/components/atoms/Typography/Display/Display.tsx +11 -0
  169. package/src/components/atoms/Typography/Display/index.ts +1 -0
  170. package/src/components/atoms/Typography/Link/Link.styles.ts +32 -0
  171. package/src/components/atoms/Typography/Link/Link.tsx +25 -0
  172. package/src/components/atoms/Typography/Link/index.ts +1 -0
  173. package/src/components/atoms/Typography/Paragraph/Paragraph.styles.ts +32 -0
  174. package/src/components/atoms/Typography/Paragraph/Paragraph.tsx +11 -0
  175. package/src/components/atoms/Typography/Paragraph/index.ts +1 -0
  176. package/src/components/atoms/Typography/Text/Text.styles.ts +39 -0
  177. package/src/components/atoms/Typography/Text/Text.tsx +25 -0
  178. package/src/components/atoms/Typography/Text/index.ts +1 -0
  179. package/src/components/atoms/Typography/Title/Title.styles.ts +28 -0
  180. package/src/components/atoms/Typography/Title/Title.tsx +15 -0
  181. package/src/components/atoms/Typography/Title/index.ts +1 -0
  182. package/src/components/atoms/Typography/Typography.tsx +21 -0
  183. package/src/components/atoms/Typography/index.ts +1 -0
  184. package/src/components/atoms/icons/AvanpostIcon.tsx +31 -0
  185. package/src/components/atoms/icons/CheckIcon.tsx +22 -0
  186. package/src/components/atoms/icons/EmptyIcon.tsx +56 -0
  187. package/src/components/atoms/icons/LogoIcon.tsx +141 -0
  188. package/src/components/atoms/icons/NumberTypeIcon.tsx +25 -0
  189. package/src/components/atoms/icons/SidebarCloseIcon.tsx +75 -0
  190. package/src/components/atoms/icons/index.ts +6 -0
  191. package/src/components/atoms/index.ts +31 -0
  192. package/src/components/molecules/DataTable/CreationModal/CreationModal.tsx +31 -0
  193. package/src/components/molecules/DataTable/CreationModal/index.ts +1 -0
  194. package/src/components/molecules/DataTable/DataTable.styles.ts +23 -0
  195. package/src/components/molecules/DataTable/DataTable.tsx +167 -0
  196. package/src/components/molecules/DataTable/Name/Name.tsx +20 -0
  197. package/src/components/molecules/DataTable/Name/index.ts +1 -0
  198. package/src/components/molecules/DataTable/Skeleton/Skeleton.tsx +27 -0
  199. package/src/components/molecules/DataTable/Skeleton/index.ts +6 -0
  200. package/src/components/molecules/DataTable/index.ts +8 -0
  201. package/src/components/molecules/Header/Button/Button.styles.ts +24 -0
  202. package/src/components/molecules/Header/Button/Button.tsx +20 -0
  203. package/src/components/molecules/Header/Button/index.ts +1 -0
  204. package/src/components/molecules/Header/Header.styles.ts +16 -0
  205. package/src/components/molecules/Header/Header.tsx +20 -0
  206. package/src/components/molecules/Header/Navigate/Navigate.tsx +40 -0
  207. package/src/components/molecules/Header/Navigate/index.ts +1 -0
  208. package/src/components/molecules/Header/SelectLang/SelectLang.tsx +47 -0
  209. package/src/components/molecules/Header/SelectLang/index.ts +2 -0
  210. package/src/components/molecules/Header/SelectTheme/SelectTheme.tsx +43 -0
  211. package/src/components/molecules/Header/SelectTheme/index.ts +1 -0
  212. package/src/components/molecules/Header/index.ts +2 -0
  213. package/src/components/molecules/ProjectIcon/ProjectIcon.styles.ts +23 -0
  214. package/src/components/molecules/ProjectIcon/ProjectIcon.tsx +37 -0
  215. package/src/components/molecules/ProjectIcon/index.ts +1 -0
  216. package/src/components/molecules/Sidebar/Item/Item.styles.ts +52 -0
  217. package/src/components/molecules/Sidebar/Item/Item.tsx +30 -0
  218. package/src/components/molecules/Sidebar/Item/index.ts +1 -0
  219. package/src/components/molecules/Sidebar/Sidebar.styles.ts +97 -0
  220. package/src/components/molecules/Sidebar/Sidebar.tsx +122 -0
  221. package/src/components/molecules/Sidebar/Sidebar.utils.tsx +36 -0
  222. package/src/components/molecules/Sidebar/Trigger/Trigger.tsx +23 -0
  223. package/src/components/molecules/Sidebar/Trigger/index.ts +1 -0
  224. package/src/components/molecules/Sidebar/index.ts +1 -0
  225. package/src/components/molecules/Widget/Content/Content.tsx +80 -0
  226. package/src/components/molecules/Widget/Content/index.ts +1 -0
  227. package/src/components/molecules/Widget/Toolbox/Toolbox.tsx +0 -0
  228. package/src/components/molecules/Widget/Toolbox/index.ts +0 -0
  229. package/src/components/molecules/Widget/Widget.tsx +26 -0
  230. package/src/components/molecules/Widget/Widget.utils.tsx +31 -0
  231. package/src/components/molecules/Widget/index.ts +2 -0
  232. package/src/components/molecules/index.ts +6 -0
  233. package/src/components/organisms/ComponentWidget/ComponentWidget.tsx +9 -0
  234. package/src/components/organisms/ComponentWidget/index.ts +2 -0
  235. package/src/components/organisms/DatasetsTable/Creation/Creation.tsx +105 -0
  236. package/src/components/organisms/DatasetsTable/Creation/Navigate/Navigate.tsx +59 -0
  237. package/src/components/organisms/DatasetsTable/Creation/Navigate/index.ts +1 -0
  238. package/src/components/organisms/DatasetsTable/Creation/Step/Step.styles.ts +12 -0
  239. package/src/components/organisms/DatasetsTable/Creation/Step/Step.tsx +43 -0
  240. package/src/components/organisms/DatasetsTable/Creation/Step/index.ts +1 -0
  241. package/src/components/organisms/DatasetsTable/Creation/Steps/Step1/Step1.styles.ts +41 -0
  242. package/src/components/organisms/DatasetsTable/Creation/Steps/Step1/Step1.tsx +67 -0
  243. package/src/components/organisms/DatasetsTable/Creation/Steps/Step1/index.ts +1 -0
  244. package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/SelectSource/SelectSource.tsx +252 -0
  245. package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/SelectSource/index.ts +1 -0
  246. package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/Step2.tsx +11 -0
  247. package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/UploadFile/UploadFile.tsx +112 -0
  248. package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/UploadFile/index.ts +1 -0
  249. package/src/components/organisms/DatasetsTable/Creation/Steps/Step2/index.ts +1 -0
  250. package/src/components/organisms/DatasetsTable/Creation/Steps/Step3/Step3.tsx +145 -0
  251. package/src/components/organisms/DatasetsTable/Creation/Steps/Step3/index.ts +1 -0
  252. package/src/components/organisms/DatasetsTable/Creation/Steps/Step4/Step4.tsx +120 -0
  253. package/src/components/organisms/DatasetsTable/Creation/Steps/Step4/index.ts +1 -0
  254. package/src/components/organisms/DatasetsTable/Creation/Steps/index.ts +4 -0
  255. package/src/components/organisms/DatasetsTable/Creation/index.ts +1 -0
  256. package/src/components/organisms/DatasetsTable/DatasetsTable.tsx +81 -0
  257. package/src/components/organisms/DatasetsTable/DatasetsTable.utils.tsx +125 -0
  258. package/src/components/organisms/DatasetsTable/Source/Source.styles.ts +7 -0
  259. package/src/components/organisms/DatasetsTable/Source/Source.tsx +39 -0
  260. package/src/components/organisms/DatasetsTable/Source/Source.utils.tsx +45 -0
  261. package/src/components/organisms/DatasetsTable/Source/index.ts +1 -0
  262. package/src/components/organisms/DatasetsTable/Status/Status.styles.ts +25 -0
  263. package/src/components/organisms/DatasetsTable/Status/Status.tsx +29 -0
  264. package/src/components/organisms/DatasetsTable/Status/Status.utils.tsx +29 -0
  265. package/src/components/organisms/DatasetsTable/Status/index.ts +1 -0
  266. package/src/components/organisms/DatasetsTable/Type/Type.styles.ts +7 -0
  267. package/src/components/organisms/DatasetsTable/Type/Type.tsx +32 -0
  268. package/src/components/organisms/DatasetsTable/Type/Type.utils.tsx +14 -0
  269. package/src/components/organisms/DatasetsTable/Type/index.ts +1 -0
  270. package/src/components/organisms/DatasetsTable/index.ts +1 -0
  271. package/src/components/organisms/index.ts +3 -0
  272. package/src/components/templates/DefaultLayout/DefaultLayout.styles.ts +26 -0
  273. package/src/components/templates/DefaultLayout/DefaultLayout.tsx +41 -0
  274. package/src/components/templates/DefaultLayout/index.ts +1 -0
  275. package/src/components/templates/PageLayout/PageLayout.styles.ts +25 -0
  276. package/src/components/templates/PageLayout/PageLayout.tsx +28 -0
  277. package/src/components/templates/PageLayout/index.ts +1 -0
  278. package/src/components/templates/index.ts +3 -0
  279. package/src/config/i18n.config.ts +46 -0
  280. package/src/constants/index.ts +10 -0
  281. package/src/contexts/CreateComponentContext/CreateComponentContext.tsx +17 -0
  282. package/src/contexts/CreateComponentContext/index.ts +4 -0
  283. package/src/contexts/CreateDatasetContext/CreateDatasetContext.tsx +25 -0
  284. package/src/contexts/CreateDatasetContext/index.ts +4 -0
  285. package/src/contexts/ProjectContext/ProjectContext.tsx +32 -0
  286. package/src/contexts/ProjectContext/index.ts +1 -0
  287. package/src/contexts/SidebarContext/SidebarContext.tsx +10 -0
  288. package/src/contexts/SidebarContext/index.ts +1 -0
  289. package/src/contexts/index.ts +10 -0
  290. package/src/hooks/index.ts +9 -0
  291. package/src/hooks/useCreateComponent.ts +15 -0
  292. package/src/hooks/useCreateDataset.ts +15 -0
  293. package/src/hooks/useDebounce.ts +17 -0
  294. package/src/hooks/useDebounced.ts +31 -0
  295. package/src/hooks/useIsMobile.ts +27 -0
  296. package/src/hooks/useSidebar.ts +15 -0
  297. package/src/hooks/useStickyHeader.ts +35 -0
  298. package/src/hooks/useWindowSize.ts +27 -0
  299. package/src/providers/CreateComponentProvider/CreateComponentProvider.tsx +53 -0
  300. package/src/providers/CreateComponentProvider/index.ts +1 -0
  301. package/src/providers/CreateDatasetProvider/CreateDatasetProvider.tsx +73 -0
  302. package/src/providers/CreateDatasetProvider/index.ts +1 -0
  303. package/src/providers/LangProvider/LangProvider.tsx +15 -0
  304. package/src/providers/LangProvider/index.ts +1 -0
  305. package/src/providers/ProjectProvider/ProjectProvider.tsx +110 -0
  306. package/src/providers/ProjectProvider/index.ts +1 -0
  307. package/src/providers/SidebarProvider/SidebarProvider.tsx +51 -0
  308. package/src/providers/SidebarProvider/index.ts +1 -0
  309. package/src/providers/ThemeProvider/ThemeProvider.tsx +20 -0
  310. package/src/providers/ThemeProvider/index.ts +1 -0
  311. package/src/providers/index.ts +6 -0
  312. package/src/store/index.ts +2 -0
  313. package/src/store/sidebar/sidebar.store.ts +17 -0
  314. package/src/store/sidebar/sidebar.type.ts +4 -0
  315. package/src/styles/globals.css +202 -0
  316. package/src/types/component.type.ts +13 -0
  317. package/src/types/dataset.type.ts +25 -0
  318. package/src/types/file.type.ts +13 -0
  319. package/src/types/general.type.ts +86 -0
  320. package/src/types/index.ts +9 -0
  321. package/src/types/layer.type.ts +7 -0
  322. package/src/types/project.type.ts +15 -0
  323. package/src/types/user.type.ts +6 -0
  324. package/src/types/widget.type.ts +12 -0
  325. package/src/utils/bm.util.ts +150 -0
  326. package/src/utils/bytes.util.ts +110 -0
  327. package/src/utils/date.util.ts +49 -0
  328. package/src/utils/dynamicMessage.util.ts +9 -0
  329. package/src/utils/getInitials.util.ts +10 -0
  330. package/src/utils/hideEmail.util.ts +14 -0
  331. package/src/utils/index.ts +12 -0
  332. package/src/utils/pagination.util.ts +144 -0
  333. package/src/utils/twJoin.util.ts +49 -0
  334. package/src/utils/twMerge.util.ts +6 -0
  335. package/src/utils/upload.util.ts +26 -0
  336. package/src/utils/url.util.ts +29 -0
  337. package/tsconfig.json +40 -6
  338. package/bmdl-sdk-1.5.9.tgz +0 -0
  339. package/index.html +0 -12
  340. package/src/App.tsx +0 -187
  341. package/src/main.tsx +0 -15
@@ -0,0 +1,402 @@
1
+ {
2
+ "code": {
3
+ "client": {
4
+ "length": "6 characters required"
5
+ },
6
+ "invalid": "Invalid two-factor authentication code",
7
+ "is_expired": "Two-factor authentication code has expired",
8
+ "is_not_empty": "Code is required",
9
+ "length": "Code must be 6 characters long"
10
+ },
11
+ "column": {
12
+ "from_file": {
13
+ "encoding": {
14
+ "is_enum": "Invalid encoding value"
15
+ },
16
+ "separator": {
17
+ "is_string": "Separator must be a string",
18
+ "max_length": "Separator must be 1 character long"
19
+ }
20
+ },
21
+ "id": {
22
+ "is_int": "Column ID must be a number",
23
+ "is_not_empty": "Column ID is required",
24
+ "max": "Column ID cannot be greater than 999999",
25
+ "min": "Column ID cannot be less than 1"
26
+ },
27
+ "is_not_empty": "Column name is required",
28
+ "is_string": "Column name must be a string",
29
+ "many": {
30
+ "not_found": "Columns with ids: {missingIds} not found"
31
+ },
32
+ "name": {
33
+ "already_exists": "A column with this name already exists"
34
+ },
35
+ "not_found": "Column not found",
36
+ "path": {
37
+ "is_not_empty": "Path is required",
38
+ "is_string": "Path must be a string"
39
+ },
40
+ "type": {
41
+ "is_enum": "Invalid type value",
42
+ "is_not_empty": "Type is required",
43
+ "is_string": "Type must be a string"
44
+ }
45
+ },
46
+ "component": {
47
+ "is_system_component": {
48
+ "is_boolean": "The system component flag must be a boolean value"
49
+ },
50
+ "many": {
51
+ "not_found": "Components with ids: {missingIds} not found"
52
+ },
53
+ "name": {
54
+ "already_exists": "A component with this name already exists"
55
+ },
56
+ "not_found": "Component not found"
57
+ },
58
+ "cooldown": {
59
+ "not_expired": "Please wait {difference} sec. before sending again"
60
+ },
61
+ "dataset": {
62
+ "id": {
63
+ "is_int": "Dataset ID must be a number",
64
+ "is_not_empty": "Dataset ID is required",
65
+ "max": "Dataset ID cannot be greater than 9999",
66
+ "min": "Dataset ID cannot be less than 1"
67
+ },
68
+ "many": {
69
+ "not_found": "Datasets with ids: {missingIds} not found"
70
+ },
71
+ "name": {
72
+ "already_exists": "Dataset with this name already exists"
73
+ }
74
+ },
75
+ "description": {
76
+ "client": {
77
+ "max_length": "Maximum 350 characters",
78
+ "min_length": "Minimum 2 characters"
79
+ },
80
+ "is_string": "Description must be a string",
81
+ "length": "Description must be between 2 and 350 characters long"
82
+ },
83
+ "email": {
84
+ "already_exists": "User with this email already exists",
85
+ "client": {
86
+ "is_email": "Please enter a valid email address."
87
+ },
88
+ "is_email": "Invalid email format",
89
+ "is_not_empty": "Email is required",
90
+ "is_string": "Email must be a string"
91
+ },
92
+ "email_or_username": {
93
+ "is_not_empty": "Email or username is required",
94
+ "is_string": "Email or username must be a string"
95
+ },
96
+ "file": {
97
+ "category": {
98
+ "is_enum": "Invalid category value"
99
+ },
100
+ "id": {
101
+ "is_not_empty": "The file ID is required",
102
+ "is_uuid_v4": "The file ID must be in UUID version 4 format"
103
+ },
104
+ "many": {
105
+ "not_found": "Files with ids: {missingIds} not found"
106
+ },
107
+ "name": {
108
+ "already_exists": "File with this name already exists"
109
+ },
110
+ "not_found": "File not found",
111
+ "path": {
112
+ "is_not_empty": "File path is required",
113
+ "is_string": "File path must be a string",
114
+ "length": "File path must be between 5 and 150 characters long"
115
+ },
116
+ "size": {
117
+ "is_int": "File size must be a number",
118
+ "is_not_empty": "File size is required",
119
+ "max": "File size cannot be greater than {maxSize}",
120
+ "min": "File size cannot be less than 1"
121
+ },
122
+ "upload": {
123
+ "id": {
124
+ "is_not_empty": "The upload ID is required",
125
+ "is_uuid_v4": "The upload ID must be in UUID version 4 format"
126
+ }
127
+ }
128
+ },
129
+ "first_name": {
130
+ "client": {
131
+ "max_length": "Maximum 15 characters",
132
+ "min_length": "Minimum 2 characters"
133
+ },
134
+ "is_string": "First name must be a string",
135
+ "length": "First name must be between 2 and 15 characters"
136
+ },
137
+ "group": {
138
+ "many": {
139
+ "not_found": "Groups with ids: {missingIds} not found"
140
+ },
141
+ "name": {
142
+ "already_exists": "A group with this name already exists"
143
+ },
144
+ "not_found": "Group not found"
145
+ },
146
+ "guard": {
147
+ "groups": {
148
+ "is_array": "Group list must be provided as an array",
149
+ "max_size": "Maximum of 10 groups"
150
+ },
151
+ "id": {
152
+ "is_int": "ID must be a number",
153
+ "max": "ID cannot be greater than 9,999",
154
+ "min": "ID cannot be less than 1"
155
+ },
156
+ "type": {
157
+ "is_enum": "Invalid access type value"
158
+ },
159
+ "users": {
160
+ "is_array": "User list must be provided as an array",
161
+ "max_size": "Maximum of 100 users"
162
+ }
163
+ },
164
+ "icon": {
165
+ "is_string": "Icon must be a string",
166
+ "length": "Icon must be between 2 and 35 characters long"
167
+ },
168
+ "isUpdateEnabled": {
169
+ "is_boolean": "Update enabled flag must be a boolean value"
170
+ },
171
+ "last_name": {
172
+ "client": {
173
+ "max_length": "Maximum 45 characters"
174
+ },
175
+ "is_string": "Last name must be a string",
176
+ "length": "Last name must be between 2 and 45 characters"
177
+ },
178
+ "limit": {
179
+ "is_int": "Number of records must be a number",
180
+ "max": "Number of records cannot be greater than 1,000",
181
+ "min": "Number of records cannot be less than 1"
182
+ },
183
+ "login": {
184
+ "invalid": "Invalid login credentials"
185
+ },
186
+ "middle_name": {
187
+ "client": {
188
+ "max_length": "Maximum 45 characters",
189
+ "min_length": "Minimum 6 characters"
190
+ },
191
+ "is_string": "Middle name must be a string",
192
+ "length": "Middle name must be between 6 and 45 characters"
193
+ },
194
+ "name": {
195
+ "client": {
196
+ "invalid": "Invalid name format",
197
+ "max_length": "Maximum 60 characters",
198
+ "min_length": "Minimum 2 characters"
199
+ },
200
+ "is_not_empty": "Name is required",
201
+ "is_string": "Name must be a string",
202
+ "is_uuid_v4": "Name must be in UUID version 4 format",
203
+ "length": "Name must be between 2 and 60 characters long",
204
+ "matches": {
205
+ "after_dot": "After a dot, there must be at least 4 characters, the first of which must be a letter",
206
+ "phone": "Name must not resemble a phone number",
207
+ "start_with_number": "Name must not start with three or more digits",
208
+ "symbols": "Name can only contain letters, numbers, dots, and underscores",
209
+ "trim_underscore": "Name must not start or end with an underscore"
210
+ },
211
+ "max_length": "Name must be a maximum of 60 characters"
212
+ },
213
+ "order": {
214
+ "is_not_empty": "Sort order is required",
215
+ "is_string": "Sort order must be a string"
216
+ },
217
+ "page": {
218
+ "is_int": "Page number must be a number",
219
+ "max": "Page number cannot be greater than 99,999",
220
+ "min": "Page number cannot be less than 1"
221
+ },
222
+ "password": {
223
+ "client": {
224
+ "is_field_matching": "Passwords must match",
225
+ "matches": "The password must contain uppercase and lowercase Latin letters, numbers and special characters.",
226
+ "min_length": "Minimum 6 characters"
227
+ },
228
+ "is_field_matching": "Passwords do not match",
229
+ "is_not_empty": "Password is required",
230
+ "is_string": "Password must be a string",
231
+ "matches": {
232
+ "contain_digit": "Password must contain at least 1 digit",
233
+ "contain_lowercase_letter": "Password must contain at least 1 lowercase letter",
234
+ "contain_special_character": "Password must contain at least 1 special character",
235
+ "contain_uppercase_letter": "Password must contain at least 1 uppercase letter"
236
+ },
237
+ "min_length": "Password must be at least 6 characters long"
238
+ },
239
+ "preview_path": {
240
+ "is_string": "Preview path must be a string",
241
+ "length": "Preview path must be between 5 and 150 characters long"
242
+ },
243
+ "privacy_policy_terms": {
244
+ "client": {
245
+ "is_true": "You must agree to the terms to continue"
246
+ },
247
+ "is_boolean": "Terms agreement must be a boolean value",
248
+ "is_true": "You must agree to the {privacy-policy-terms} to continue"
249
+ },
250
+ "project": {
251
+ "name": {
252
+ "already_exists": "A project with this name already exists"
253
+ },
254
+ "not_found": "Project not found"
255
+ },
256
+ "q": {
257
+ "is_string": "Search query must be a string"
258
+ },
259
+ "required": "This field is required",
260
+ "session": {
261
+ "failed_to_complete": "Failed to complete session",
262
+ "failed_to_save": "Failed to save session",
263
+ "is_boolean": "Session persistence must be a boolean value",
264
+ "is_current": "Cannot delete current session",
265
+ "not_found": "Session not found",
266
+ "user_not_found": "User not found in session"
267
+ },
268
+ "shortcut": {
269
+ "id": {
270
+ "is_uuid_v4": "The ID must be in UUID version 4 format"
271
+ },
272
+ "limit": "Maximum number of shortcuts reached",
273
+ "link": {
274
+ "already_exists": "A shortcut with this link already exists",
275
+ "ivalid": "Invalid format for shortcut link"
276
+ },
277
+ "name": {
278
+ "already_exists": "A shortcut with this name already exists",
279
+ "is_not_empty": "Name is required",
280
+ "is_string": "Name must be a string",
281
+ "min_length": "Name must contain at least 2 characters"
282
+ },
283
+ "order": {
284
+ "is_int": "The order number must be a number",
285
+ "max": "The order number cannot be greater than 15",
286
+ "min": "The order number cannot be less than 0"
287
+ }
288
+ },
289
+ "sort": {
290
+ "is_array": "Sort list must be provided as an array",
291
+ "max_size": "Maximum of 10 sorts"
292
+ },
293
+ "theme": {
294
+ "id": {
295
+ "is_int": "Theme ID must be a number",
296
+ "is_not_empty": "Theme ID is required",
297
+ "max": "Theme ID cannot be greater than 999",
298
+ "min": "Theme ID cannot be less than 1"
299
+ },
300
+ "many": {
301
+ "not_found": "Themes with ids: {missingIds} not found"
302
+ }
303
+ },
304
+ "token": {
305
+ "is_expired": "Token has expired",
306
+ "is_not_empty": "Token is required",
307
+ "is_uuid_v4": "Token must be in UUID v4 format",
308
+ "not_found": "Token not found"
309
+ },
310
+ "updateInterval": {
311
+ "is_int": "Interval must be a number",
312
+ "max": "Interval cannot be greater than 99,999",
313
+ "min": "Interval cannot be less than 1"
314
+ },
315
+ "user": {
316
+ "many": {
317
+ "not_found": "Users with ids: {missingIds} not found"
318
+ },
319
+ "no_permissions": "Insufficient permissions",
320
+ "not_authorized": "User not authorized",
321
+ "not_found": "User not found",
322
+ "photo_path": {
323
+ "is_string": "Avatar path must be a string",
324
+ "length": "Avatar path must be between 5 and 150 characters long"
325
+ }
326
+ },
327
+ "username": {
328
+ "already_exists": "User with this username already exists",
329
+ "client": {
330
+ "invalid": "Invalid login format",
331
+ "max_length": "Maximum 32 characters",
332
+ "min_length": "Minimum 5 characters"
333
+ },
334
+ "is_string": "Username must be a string",
335
+ "length": "Username must be between 5 and 32 characters",
336
+ "matches": {
337
+ "after_dot": "After a dot there must be at least 4 characters, the first of which must be a letter",
338
+ "phone": "Username must not resemble a phone number",
339
+ "start_with_number": "Username must not start with three or more digits",
340
+ "symbols": "Username can only contain Latin letters, numbers, dots and underscores",
341
+ "trim_underscore": "Username must not start or end with an underscore"
342
+ }
343
+ },
344
+ "widget": {
345
+ "column": {
346
+ "aggregate": {
347
+ "is_enum": "Invalid aggregation value"
348
+ },
349
+ "direction": {
350
+ "is_enum": "Invalid sort direction value"
351
+ },
352
+ "type": {
353
+ "is_enum": "Invalid type value"
354
+ }
355
+ },
356
+ "filter": {
357
+ "operator": {
358
+ "is_enum": "Invalid operator value"
359
+ }
360
+ },
361
+ "id": {
362
+ "is_not_empty": "The widget ID is required",
363
+ "is_uuid_v4": "The widget ID must be in UUID version 4 format"
364
+ },
365
+ "many": {
366
+ "not_found": "Widgets with ids: {missingIds} not found"
367
+ },
368
+ "name": {
369
+ "already_exists": "A widget with this name already exists"
370
+ },
371
+ "not_found": "Widget not found"
372
+ },
373
+ "layer": {
374
+ "id": {
375
+ "is_int": "Layer ID must be a number",
376
+ "is_not_empty": "Layer ID is required",
377
+ "max": "Layer ID cannot be greater than 9999",
378
+ "min": "Layer ID cannot be less than 1"
379
+ },
380
+ "name": {
381
+ "already_exists": "A layer with this name already exists"
382
+ },
383
+ "not_found": "Layer not found"
384
+ },
385
+ "layout": {
386
+ "coords": {
387
+ "is_int": "Coord must be a number",
388
+ "is_not_empty": "Coord is required"
389
+ },
390
+ "sizes": {
391
+ "is_int": "Size must be a number",
392
+ "is_not_empty": "Size is required"
393
+ },
394
+ "static": {
395
+ "is_boolean": "The static flag must be a boolean value."
396
+ },
397
+ "items": {
398
+ "is_array": "Widget list must be provided as an array",
399
+ "max_size": "Maximum of 25 widgets"
400
+ }
401
+ }
402
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "seo": {
3
+ "title": "Control Panel",
4
+ "description": "BiModal combines the power of a BI system with the simplicity of configuring modal widgets. Upload your data and get a ready-to-use dashboard with various charts tailored to your business tasks in just a few clicks."
5
+ },
6
+ "send-mail": {
7
+ "success": "Email sent successfully!",
8
+ "error": "Error sending!"
9
+ },
10
+ "home": "Component",
11
+ "search": "Search",
12
+ "no-data": "Data not found",
13
+ "close": "Close",
14
+ "light": "Light",
15
+ "dark": "Dark",
16
+ "system": "System",
17
+ "settings": "Settings",
18
+ "сonfigure": "Configure",
19
+ "help": "Help",
20
+ "faq": "FAQ",
21
+ "my-profile": "My profile",
22
+ "logout": "Logout",
23
+ "version": "Version",
24
+ "username": "Username",
25
+ "email": "Email",
26
+ "back": "Back",
27
+ "create": "Create",
28
+ "go-back": "Go back",
29
+ "go-auth": "Go to auth",
30
+ "back-to-home": "Back to home",
31
+ "continue": "Continue",
32
+ "further": "Further",
33
+ "all": "All",
34
+ "only-mine": "Only mine",
35
+ "besides-mine": "Besides mine",
36
+ "add": "Add",
37
+ "edit": "Edit",
38
+ "update": "Update",
39
+ "delete": "Delete",
40
+ "reset": "Reset",
41
+ "select-all": "Select all",
42
+ "not-found": {
43
+ "seo": {
44
+ "title": "Page Not Found",
45
+ "description": "The requested URL was not found."
46
+ },
47
+ "title": "Page Not Found :(",
48
+ "description": "Oops! 😖 The requested URL was not found."
49
+ },
50
+ "redirect": {
51
+ "title": "Redirect page",
52
+ "description": "Wait a second... 🚀 We're already redirecting you to where you need to go."
53
+ },
54
+ "not-authorized": {
55
+ "title": "You are not authorized!",
56
+ "description": "You do not have permission to view this page."
57
+ },
58
+ "shortcuts": {
59
+ "title": "Shortcuts",
60
+ "not-found": "The shortcut list is empty"
61
+ },
62
+ "notifications": {
63
+ "title": "Notifications",
64
+ "read": "Read all",
65
+ "view": "View all notifications",
66
+ "not-found": "The notification list is empty"
67
+ },
68
+ "categories": {
69
+ "datasets": "Datasets",
70
+ "filters": "Filters",
71
+ "sources": "Sources",
72
+ "projects": "Projects",
73
+ "widgets": "Widgets",
74
+ "components": "Components",
75
+ "files": "Files",
76
+ "designs": "Design themes",
77
+ "themes": "Projects themes",
78
+ "users": "Users",
79
+ "groups": "Groups",
80
+ "roles": "Roles",
81
+ "faq": "FAQ",
82
+ "wiki": "Wiki",
83
+ "logs": "Logs"
84
+ },
85
+ "status": {
86
+ "pending": "Pending",
87
+ "success": "Success",
88
+ "error": "Error"
89
+ },
90
+ "calendar": {
91
+ "placeholder": {
92
+ "single": "Select date",
93
+ "multiple": "Select dates",
94
+ "range": "Select period"
95
+ }
96
+ },
97
+ "pagination": {
98
+ "prev": "Prev",
99
+ "next": "Next",
100
+ "items": "Showing {from} to {to} of {total, plural, other {# items}}"
101
+ },
102
+ "sort": {
103
+ "string": {
104
+ "asc": "In alphabetical order",
105
+ "desc": "In reverse alphabetical order"
106
+ },
107
+ "number": {
108
+ "asc": "Ascending",
109
+ "desc": "Descending"
110
+ },
111
+ "date": {
112
+ "asc": "First the old ones",
113
+ "desc": "New ones first"
114
+ },
115
+ "cancel": "Cancel sorting"
116
+ },
117
+ "upload": {
118
+ "files": "Files",
119
+ "bytes": "Bytes",
120
+ "label": {
121
+ "one": "Drop file here or click to upload",
122
+ "many": "Drop files here or click to upload"
123
+ },
124
+ "format": "Format",
125
+ "max-size": "Max size",
126
+ "types": {
127
+ "all": "All types"
128
+ },
129
+ "errors": {
130
+ "more-than-one-file": "You can select only one file"
131
+ }
132
+ },
133
+ "typeof": {
134
+ "number": "Number",
135
+ "string": "String",
136
+ "date": "Date",
137
+ "boolean": "Boolean"
138
+ }
139
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "seo": {
3
+ "title": "Список датасетов"
4
+ },
5
+ "add": "Добавить датасет",
6
+ "columns": {
7
+ "type": "Тип",
8
+ "name": "Название",
9
+ "items": "Записи",
10
+ "connects": "Связи",
11
+ "source": "Источник",
12
+ "author": "Автор",
13
+ "created": "Создание",
14
+ "edited": "Изменение",
15
+ "updated": "Обновление",
16
+ "status": "Статус"
17
+ },
18
+ "items": "Показано с {from} по {to} из {total, plural, =1 {# датасета} other {# датасетов}}",
19
+ "type": {
20
+ "local": "Локальный",
21
+ "joined": "Объединенный"
22
+ },
23
+ "source": {
24
+ "db": "База данных - {name}",
25
+ "api": "API - {name}",
26
+ "csv": "CSV файл - {name}",
27
+ "xml": "XML файл - {name}",
28
+ "xls": "XLS файл - {name}",
29
+ "json": "JOSN файл - {name}"
30
+ },
31
+ "creation": {
32
+ "title": "Создание датасета",
33
+ "info": "Предоставление данных для создания датасета.",
34
+ "steps": {
35
+ "one": {
36
+ "btn": {
37
+ "name": "Данные",
38
+ "desc": "Источник данных"
39
+ },
40
+ "title": "Тип источника",
41
+ "source": {
42
+ "name": "Источник",
43
+ "desc": "Из подключенных"
44
+ },
45
+ "file": {
46
+ "name": "Файл",
47
+ "desc": "csv, xlsx, json, xml"
48
+ }
49
+ },
50
+ "two": {
51
+ "btn": {
52
+ "name": "Выбор",
53
+ "desc": "Источника/файла"
54
+ },
55
+ "source": {
56
+ "title": "Источники"
57
+ },
58
+ "file": {
59
+ "title": "Файл",
60
+ "fields": {
61
+ "format": "Формат",
62
+ "encoding": "Кодировка",
63
+ "separator": "Разделитель"
64
+ }
65
+ }
66
+ },
67
+ "three": {
68
+ "btn": {
69
+ "name": "Колонки",
70
+ "desc": "Настройка колонок"
71
+ },
72
+ "title": "Проверка колонок",
73
+ "columns": {
74
+ "name": "Название",
75
+ "type": "Тип"
76
+ }
77
+ },
78
+ "four": {
79
+ "btn": {
80
+ "name": "Информация",
81
+ "desc": "Настройка деталей"
82
+ },
83
+ "title": "Настройки",
84
+ "fields": {
85
+ "name": "Название датасета",
86
+ "description": "Описание датасета",
87
+ "access-rights": "Права доступа"
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }