@turnit-ou/shared 0.0.0-stage → 2.18.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.
Files changed (690) hide show
  1. package/@types/@mui/index.d.ts +125 -0
  2. package/@types/axios/index.d.ts +7 -0
  3. package/@types/openapi-client-axios/index.d.ts +5 -0
  4. package/@types/openapi-typescript/index.d.ts +71 -0
  5. package/@types/react-final-form-arrays/index.d.ts +75 -0
  6. package/@types/react-table/index.d.ts +292 -0
  7. package/components/Alert/AlertTemplate.d.ts +3 -0
  8. package/components/Alert/AlertTemplate.js +66 -0
  9. package/components/Alert/index.d.ts +4 -0
  10. package/components/Alert/index.js +17 -0
  11. package/components/ConfirmButton.d.ts +15 -0
  12. package/components/ConfirmButton.js +47 -0
  13. package/components/Drawer.d.ts +4 -0
  14. package/components/Drawer.js +24 -0
  15. package/components/DrawerForm/DrawerFormCardActions.d.ts +5 -0
  16. package/components/DrawerForm/DrawerFormCardActions.js +21 -0
  17. package/components/DrawerForm/DrawerFormCloseButton.d.ts +3 -0
  18. package/components/DrawerForm/DrawerFormCloseButton.js +5 -0
  19. package/components/DrawerForm/DrawerFormContext.d.ts +7 -0
  20. package/components/DrawerForm/DrawerFormContext.js +4 -0
  21. package/components/DrawerForm.d.ts +10 -0
  22. package/components/DrawerForm.js +84 -0
  23. package/components/Editor/Editor.d.ts +9 -0
  24. package/components/Editor/Editor.js +36 -0
  25. package/components/Editor/Toolbar.d.ts +7 -0
  26. package/components/Editor/Toolbar.js +31 -0
  27. package/components/Editor/buttons/FormatLinkButton.d.ts +5 -0
  28. package/components/Editor/buttons/FormatLinkButton.js +64 -0
  29. package/components/Editor/buttons/InsertImageButton.d.ts +5 -0
  30. package/components/Editor/buttons/InsertImageButton.js +59 -0
  31. package/components/Editor/buttons.d.ts +15 -0
  32. package/components/Editor/buttons.js +70 -0
  33. package/components/Editor/createButton.d.ts +28 -0
  34. package/components/Editor/createButton.js +68 -0
  35. package/components/Editor/editor.scss +45 -0
  36. package/components/Ellipsis.d.ts +9 -0
  37. package/components/Ellipsis.js +22 -0
  38. package/components/EllipsisText.d.ts +8 -0
  39. package/components/EllipsisText.js +25 -0
  40. package/components/EnvironmentBanner.d.ts +8 -0
  41. package/components/EnvironmentBanner.js +25 -0
  42. package/components/Header/AccessibilityModal.d.ts +5 -0
  43. package/components/Header/AccessibilityModal.js +28 -0
  44. package/components/Header/AllowedBusinessEntityModal.d.ts +9 -0
  45. package/components/Header/AllowedBusinessEntityModal.js +24 -0
  46. package/components/Header/LanguageSelect.d.ts +2 -0
  47. package/components/Header/LanguageSelect.js +80 -0
  48. package/components/Header/MenuItems.d.ts +9 -0
  49. package/components/Header/MenuItems.js +55 -0
  50. package/components/Header/ModuleIcon.d.ts +7 -0
  51. package/components/Header/ModuleIcon.js +119 -0
  52. package/components/Header/index.d.ts +44 -0
  53. package/components/Header/index.js +89 -0
  54. package/components/Layout/LayoutCol.d.ts +8 -0
  55. package/components/Layout/LayoutCol.js +26 -0
  56. package/components/Layout/index.d.ts +32 -0
  57. package/components/Layout/index.js +56 -0
  58. package/components/Loadable.d.ts +11 -0
  59. package/components/Loadable.js +3 -0
  60. package/components/SearchCard.d.ts +8 -0
  61. package/components/SearchCard.js +81 -0
  62. package/components/SearchForm.d.ts +14 -0
  63. package/components/SearchForm.js +51 -0
  64. package/components/SearchFormTable.d.ts +8 -0
  65. package/components/SearchFormTable.js +32 -0
  66. package/components/SearchResult.d.ts +13 -0
  67. package/components/SearchResult.js +67 -0
  68. package/components/Table/TableCaption.d.ts +6 -0
  69. package/components/Table/TableCaption.js +25 -0
  70. package/components/Table/TableCell.d.ts +17 -0
  71. package/components/Table/TableCell.js +45 -0
  72. package/components/Table/TableCellEditable.d.ts +28 -0
  73. package/components/Table/TableCellEditable.js +151 -0
  74. package/components/Table/TableCellEditableAction.d.ts +13 -0
  75. package/components/Table/TableCellEditableAction.js +70 -0
  76. package/components/Table/TableCellEditableField.d.ts +17 -0
  77. package/components/Table/TableCellEditableField.js +1 -0
  78. package/components/Table/TableCellEditableTimeDuration.d.ts +13 -0
  79. package/components/Table/TableCellEditableTimeDuration.js +12 -0
  80. package/components/Table/TableContext.d.ts +11 -0
  81. package/components/Table/TableContext.js +4 -0
  82. package/components/Table/TablePagination.d.ts +5 -0
  83. package/components/Table/TablePagination.js +84 -0
  84. package/components/Table.d.ts +53 -0
  85. package/components/Table.js +389 -0
  86. package/components/Version.d.ts +5 -0
  87. package/components/Version.js +23 -0
  88. package/dto/businessEntity.d.ts +15 -0
  89. package/dto/businessEntity.js +1 -0
  90. package/dto/classification.d.ts +9 -0
  91. package/dto/classification.js +1 -0
  92. package/dto/classifier.d.ts +13 -0
  93. package/dto/classifier.js +4 -0
  94. package/dto/common.d.ts +5 -0
  95. package/dto/common.js +1 -0
  96. package/dto/fare.d.ts +11 -0
  97. package/dto/fare.js +1 -0
  98. package/dto/line-network.d.ts +23 -0
  99. package/dto/line-network.js +1 -0
  100. package/dto/option.d.ts +7 -0
  101. package/dto/option.js +1 -0
  102. package/dto/pagination.d.ts +10 -0
  103. package/dto/pagination.js +1 -0
  104. package/fields/FormCheckbox.d.ts +11 -0
  105. package/fields/FormCheckbox.js +5 -0
  106. package/fields/FormCheckboxGroup.d.ts +6 -0
  107. package/fields/FormCheckboxGroup.js +20 -0
  108. package/fields/FormController.d.ts +7 -0
  109. package/fields/FormController.js +16 -0
  110. package/fields/FormDatepicker.d.ts +8 -0
  111. package/fields/FormDatepicker.js +7 -0
  112. package/fields/FormInput.d.ts +8 -0
  113. package/fields/FormInput.js +4 -0
  114. package/fields/FormRadioGroup.d.ts +10 -0
  115. package/fields/FormRadioGroup.js +6 -0
  116. package/fields/FormSelect.d.ts +11 -0
  117. package/fields/FormSelect.js +9 -0
  118. package/fields/FormSwitch.d.ts +11 -0
  119. package/fields/FormSwitch.js +5 -0
  120. package/fields/FormTimeZoneSelect.d.ts +4 -0
  121. package/fields/FormTimeZoneSelect.js +8 -0
  122. package/fields/index.d.ts +9 -0
  123. package/fields/index.js +9 -0
  124. package/form/ArrayField.d.ts +27 -0
  125. package/form/ArrayField.js +69 -0
  126. package/form/CheckboxField.d.ts +8 -0
  127. package/form/CheckboxField.js +14 -0
  128. package/form/CheckboxGroupField.d.ts +6 -0
  129. package/form/CheckboxGroupField.js +15 -0
  130. package/form/ConditionField.d.ts +7 -0
  131. package/form/ConditionField.js +20 -0
  132. package/form/ContentField.d.ts +7 -0
  133. package/form/ContentField.js +15 -0
  134. package/form/CounterField.d.ts +5 -0
  135. package/form/CounterField.js +7 -0
  136. package/form/DateField.d.ts +8 -0
  137. package/form/DateField.js +52 -0
  138. package/form/DatesArrayField.d.ts +8 -0
  139. package/form/DatesArrayField.js +79 -0
  140. package/form/DependSelectField.d.ts +8 -0
  141. package/form/DependSelectField.js +12 -0
  142. package/form/EditorField.d.ts +5 -0
  143. package/form/EditorField.js +7 -0
  144. package/form/FileField.d.ts +12 -0
  145. package/form/FileField.js +9 -0
  146. package/form/FormField.d.ts +15 -0
  147. package/form/FormField.js +22 -0
  148. package/form/ModalFieldArray.d.ts +13 -0
  149. package/form/ModalFieldArray.js +62 -0
  150. package/form/PeriodField.d.ts +24 -0
  151. package/form/PeriodField.js +111 -0
  152. package/form/RadioGroupField.d.ts +10 -0
  153. package/form/RadioGroupField.js +21 -0
  154. package/form/SearchField.d.ts +19 -0
  155. package/form/SearchField.js +51 -0
  156. package/form/SelectField.d.ts +8 -0
  157. package/form/SelectField.js +13 -0
  158. package/form/SelectOwnerField.d.ts +11 -0
  159. package/form/SelectOwnerField.js +11 -0
  160. package/form/StopsSelect/StopSelectWithSearch.d.ts +28 -0
  161. package/form/StopsSelect/StopSelectWithSearch.js +181 -0
  162. package/form/StopsSelect/StopsSelect.d.ts +19 -0
  163. package/form/StopsSelect/StopsSelect.js +65 -0
  164. package/form/StopsSelect/StopsSelectModal.d.ts +26 -0
  165. package/form/StopsSelect/StopsSelectModal.js +280 -0
  166. package/form/StopsSelect/StopsSelectSearchForm.d.ts +22 -0
  167. package/form/StopsSelect/StopsSelectSearchForm.js +43 -0
  168. package/form/SwitchField.d.ts +9 -0
  169. package/form/SwitchField.js +16 -0
  170. package/form/TextField.d.ts +6 -0
  171. package/form/TextField.js +21 -0
  172. package/form/TimeDurationField.d.ts +6 -0
  173. package/form/TimeDurationField.js +54 -0
  174. package/form/TimeZoneField.d.ts +6 -0
  175. package/form/TimeZoneField.js +8 -0
  176. package/form/ToggleButtonGroupField.d.ts +12 -0
  177. package/form/ToggleButtonGroupField.js +16 -0
  178. package/form/hooks/addLazyFieldMetaState.d.ts +3 -0
  179. package/form/hooks/addLazyFieldMetaState.js +55 -0
  180. package/form/hooks/getValue.d.ts +3 -0
  181. package/form/hooks/getValue.js +60 -0
  182. package/form/hooks/useConstant.d.ts +13 -0
  183. package/form/hooks/useConstant.js +20 -0
  184. package/form/hooks/useConstantCallback.d.ts +7 -0
  185. package/form/hooks/useConstantCallback.js +14 -0
  186. package/form/hooks/useField.d.ts +3 -0
  187. package/form/hooks/useField.js +175 -0
  188. package/form/hooks/useFieldArray.d.ts +6 -0
  189. package/form/hooks/useFieldArray.js +87 -0
  190. package/form/hooks/useLatest.d.ts +3 -0
  191. package/form/hooks/useLatest.js +8 -0
  192. package/form/hooks/useModalTableSelectedRows.d.ts +12 -0
  193. package/form/hooks/useModalTableSelectedRows.js +66 -0
  194. package/form/hooks/useWatch.d.ts +12 -0
  195. package/form/hooks/useWatch.js +16 -0
  196. package/form/index.d.ts +45 -0
  197. package/form/index.js +58 -0
  198. package/form/mutators/change.d.ts +2 -0
  199. package/form/mutators/change.js +9 -0
  200. package/form/validate.d.ts +14 -0
  201. package/form/validate.js +39 -0
  202. package/helpers/capitalize.d.ts +1 -0
  203. package/helpers/capitalize.js +1 -0
  204. package/helpers/filter.d.ts +4 -0
  205. package/helpers/filter.js +21 -0
  206. package/helpers/formSubmit.d.ts +5 -0
  207. package/helpers/formSubmit.js +21 -0
  208. package/helpers/index.d.ts +7 -0
  209. package/helpers/index.js +7 -0
  210. package/helpers/makeClassificationOptions.d.ts +30 -0
  211. package/helpers/makeClassificationOptions.js +29 -0
  212. package/helpers/map.d.ts +1 -0
  213. package/helpers/map.js +1 -0
  214. package/helpers/openapi.d.ts +10 -0
  215. package/helpers/openapi.js +10 -0
  216. package/helpers/renderRangeError.d.ts +1 -0
  217. package/helpers/renderRangeError.js +20 -0
  218. package/helpers/sentry/assertEnvVariable.d.ts +1 -0
  219. package/helpers/sentry/assertEnvVariable.js +7 -0
  220. package/helpers/sentry/sentryConfig.d.ts +2 -0
  221. package/helpers/sentry/sentryConfig.js +18 -0
  222. package/helpers/serializeErrors.d.ts +2 -0
  223. package/helpers/serializeErrors.js +13 -0
  224. package/hooks/index.d.ts +26 -0
  225. package/hooks/index.js +26 -0
  226. package/hooks/useAllowedBusinessEntities.d.ts +4 -0
  227. package/hooks/useAllowedBusinessEntities.js +9 -0
  228. package/hooks/useBusinessEntitiesByType.d.ts +8 -0
  229. package/hooks/useBusinessEntitiesByType.js +17 -0
  230. package/hooks/useChangePassword.d.ts +14 -0
  231. package/hooks/useChangePassword.js +48 -0
  232. package/hooks/useClassification.d.ts +9 -0
  233. package/hooks/useClassification.js +16 -0
  234. package/hooks/useDraggable.d.ts +5 -0
  235. package/hooks/useDraggable.js +11 -0
  236. package/hooks/useEllipsis.d.ts +10 -0
  237. package/hooks/useEllipsis.js +79 -0
  238. package/hooks/useFavicon.d.ts +1 -0
  239. package/hooks/useFavicon.js +13 -0
  240. package/hooks/useFormTable.d.ts +24 -0
  241. package/hooks/useFormTable.js +105 -0
  242. package/hooks/useFormTableControls.d.ts +31 -0
  243. package/hooks/useFormTableControls.js +34 -0
  244. package/hooks/useInertBackground.d.ts +20 -0
  245. package/hooks/useInertBackground.js +57 -0
  246. package/hooks/useIsMounted.d.ts +2 -0
  247. package/hooks/useIsMounted.js +11 -0
  248. package/hooks/useLanguage.d.ts +1 -0
  249. package/hooks/useLanguage.js +2 -0
  250. package/hooks/useLoaded.d.ts +1 -0
  251. package/hooks/useLoaded.js +19 -0
  252. package/hooks/useLocale.d.ts +1 -0
  253. package/hooks/useLocale.js +7 -0
  254. package/hooks/useModal.d.ts +307 -0
  255. package/hooks/useModal.js +12 -0
  256. package/hooks/useOptions.d.ts +13 -0
  257. package/hooks/useOptions.js +24 -0
  258. package/hooks/usePrevious.d.ts +1 -0
  259. package/hooks/usePrevious.js +12 -0
  260. package/hooks/usePrompt.d.ts +8 -0
  261. package/hooks/usePrompt.js +17 -0
  262. package/hooks/useRowActive.d.ts +6 -0
  263. package/hooks/useRowActive.js +104 -0
  264. package/hooks/useRowEditActions.d.ts +5 -0
  265. package/hooks/useRowEditActions.js +12 -0
  266. package/hooks/useRowExpandToggle.d.ts +5 -0
  267. package/hooks/useRowExpandToggle.js +13 -0
  268. package/hooks/useRowHidden.d.ts +4 -0
  269. package/hooks/useRowHidden.js +6 -0
  270. package/hooks/useRowSelectCheckbox.d.ts +27 -0
  271. package/hooks/useRowSelectCheckbox.js +48 -0
  272. package/hooks/useTable.d.ts +4 -0
  273. package/hooks/useTable.js +38 -0
  274. package/hooks/useTableRowHighlight.d.ts +4 -0
  275. package/hooks/useTableRowHighlight.js +16 -0
  276. package/hooks/useTranslation.d.ts +3 -0
  277. package/hooks/useTranslation.js +3 -0
  278. package/hooks/useWeekdayOptions.d.ts +40 -0
  279. package/hooks/useWeekdayOptions.js +66 -0
  280. package/i18n/index.d.ts +13 -0
  281. package/i18n/index.js +82 -0
  282. package/i18n/resources/de.json +115 -0
  283. package/i18n/resources/el.json +116 -0
  284. package/i18n/resources/en-AE.json +115 -0
  285. package/i18n/resources/en.json +118 -0
  286. package/i18n/resources/es.json +115 -0
  287. package/i18n/resources/fr.json +115 -0
  288. package/i18n/resources/index.d.ts +1295 -0
  289. package/i18n/resources/index.js +24 -0
  290. package/i18n/resources/it.json +115 -0
  291. package/i18n/resources/lt.json +115 -0
  292. package/i18n/resources/pt.json +115 -0
  293. package/i18n/resources/sk.json +115 -0
  294. package/i18n/resources/sv.json +116 -0
  295. package/i18n/trans/alert.d.ts +8 -0
  296. package/i18n/trans/alert.js +10 -0
  297. package/i18n/trans/button.d.ts +24 -0
  298. package/i18n/trans/button.js +26 -0
  299. package/i18n/trans/error.d.ts +10 -0
  300. package/i18n/trans/error.js +12 -0
  301. package/i18n/trans/field.d.ts +19 -0
  302. package/i18n/trans/field.js +21 -0
  303. package/i18n/trans/index.d.ts +13 -0
  304. package/i18n/trans/index.js +20 -0
  305. package/i18n/trans/label.d.ts +18 -0
  306. package/i18n/trans/label.js +20 -0
  307. package/i18n/trans/option.d.ts +6 -0
  308. package/i18n/trans/option.js +8 -0
  309. package/i18n/trans/qty.d.ts +5 -0
  310. package/i18n/trans/qty.js +7 -0
  311. package/i18n/trans/table.d.ts +8 -0
  312. package/i18n/trans/table.js +10 -0
  313. package/i18n/trans/title.d.ts +6 -0
  314. package/i18n/trans/title.js +8 -0
  315. package/i18n/trans/tooltip.d.ts +8 -0
  316. package/i18n/trans/tooltip.js +10 -0
  317. package/icons/1-class.svg +4 -0
  318. package/icons/2-class-calm.svg +5 -0
  319. package/icons/2-class-crossed.svg +5 -0
  320. package/icons/2-class.svg +4 -0
  321. package/icons/3-class.svg +4 -0
  322. package/icons/4-class.svg +4 -0
  323. package/icons/ac-crossed.svg +6 -0
  324. package/icons/ac.svg +9 -0
  325. package/icons/accessibility.svg +5 -0
  326. package/icons/add-journey-segment.svg +9 -0
  327. package/icons/add-person.svg +6 -0
  328. package/icons/add.svg +4 -0
  329. package/icons/air-condition.svg +11 -0
  330. package/icons/airport.svg +4 -0
  331. package/icons/alert-circle.svg +5 -0
  332. package/icons/arrow-down.svg +4 -0
  333. package/icons/arrow-left-circle.svg +5 -0
  334. package/icons/arrow-left.svg +4 -0
  335. package/icons/arrow-right.svg +4 -0
  336. package/icons/arrow-up.svg +4 -0
  337. package/icons/baby-care.svg +7 -0
  338. package/icons/bar.svg +6 -0
  339. package/icons/bed.svg +3 -0
  340. package/icons/bicycle-crossed.svg +6 -0
  341. package/icons/bicycle.svg +8 -0
  342. package/icons/bin.svg +6 -0
  343. package/icons/break.svg +5 -0
  344. package/icons/breakfast-1-class.svg +5 -0
  345. package/icons/breakfast-2-class.svg +5 -0
  346. package/icons/breakfast.svg +3 -0
  347. package/icons/bus.svg +7 -0
  348. package/icons/business-area.svg +6 -0
  349. package/icons/by-aisle.svg +8 -0
  350. package/icons/by-window.svg +6 -0
  351. package/icons/cafe-1-class.svg +5 -0
  352. package/icons/calendar.svg +6 -0
  353. package/icons/cancel.svg +5 -0
  354. package/icons/cargo.svg +4 -0
  355. package/icons/carriage-bot.svg +6 -0
  356. package/icons/carriage-mid.svg +4 -0
  357. package/icons/carriage-top.svg +12 -0
  358. package/icons/carriage.svg +3 -0
  359. package/icons/cart.svg +3 -0
  360. package/icons/cd.svg +4 -0
  361. package/icons/check-circle.svg +4 -0
  362. package/icons/check.svg +3 -0
  363. package/icons/checkbox-checked.svg +4 -0
  364. package/icons/checkbox-indeterminate.svg +5 -0
  365. package/icons/checkbox-mark.svg +3 -0
  366. package/icons/checkbox.svg +3 -0
  367. package/icons/chevron-down.svg +3 -0
  368. package/icons/chevron-left.svg +3 -0
  369. package/icons/chevron-right.svg +3 -0
  370. package/icons/chevron-up.svg +3 -0
  371. package/icons/circle.svg +3 -0
  372. package/icons/clock.svg +5 -0
  373. package/icons/clone.svg +4 -0
  374. package/icons/close-bold.svg +4 -0
  375. package/icons/close.svg +4 -0
  376. package/icons/coffee-machine-crossed.svg +6 -0
  377. package/icons/coffee-machine.svg +7 -0
  378. package/icons/coin.svg +4 -0
  379. package/icons/comment.svg +3 -0
  380. package/icons/compartment.svg +6 -0
  381. package/icons/couchette.svg +6 -0
  382. package/icons/cube.svg +1 -0
  383. package/icons/currency.svg +4 -0
  384. package/icons/deactivate.svg +4 -0
  385. package/icons/delete.svg +4 -0
  386. package/icons/dining.svg +7 -0
  387. package/icons/direction-bottom.svg +4 -0
  388. package/icons/direction-forward-v.svg +4 -0
  389. package/icons/direction-forward.svg +4 -0
  390. package/icons/direction-left.svg +4 -0
  391. package/icons/direction-reverse-v.svg +4 -0
  392. package/icons/direction-reverse.svg +4 -0
  393. package/icons/direction-right.svg +4 -0
  394. package/icons/direction-top.svg +4 -0
  395. package/icons/dots.svg +5 -0
  396. package/icons/download.svg +5 -0
  397. package/icons/drag-n-drop.svg +3 -0
  398. package/icons/draggable.svg +5 -0
  399. package/icons/duplicate.svg +4 -0
  400. package/icons/dvd.svg +5 -0
  401. package/icons/edit.svg +3 -0
  402. package/icons/empty-search.svg +9 -0
  403. package/icons/empty-state.svg +13 -0
  404. package/icons/empty.svg +9 -0
  405. package/icons/empty_search_purple.svg +6 -0
  406. package/icons/error-circle.svg +4 -0
  407. package/icons/eu-law.svg +5 -0
  408. package/icons/external_link.svg +5 -0
  409. package/icons/family-area.svg +7 -0
  410. package/icons/file-settings.svg +3 -0
  411. package/icons/file.svg +11 -0
  412. package/icons/filter.svg +3 -0
  413. package/icons/flip.svg +11 -0
  414. package/icons/food-1-class.svg +5 -0
  415. package/icons/food-plus.svg +5 -0
  416. package/icons/food.svg +7 -0
  417. package/icons/grid-cell.svg +1 -0
  418. package/icons/grid.svg +6 -0
  419. package/icons/headphones.svg +5 -0
  420. package/icons/helping-hand-crossed.svg +12 -0
  421. package/icons/helping-hand.svg +3 -0
  422. package/icons/hide.svg +4 -0
  423. package/icons/home.svg +4 -0
  424. package/icons/index.json +228 -0
  425. package/icons/info-circle.svg +5 -0
  426. package/icons/insurance.svg +6 -0
  427. package/icons/journey-changeover.svg +5 -0
  428. package/icons/journey-light.svg +5 -0
  429. package/icons/journey.svg +5 -0
  430. package/icons/key.svg +4 -0
  431. package/icons/language.svg +3 -0
  432. package/icons/link.svg +4 -0
  433. package/icons/list.svg +8 -0
  434. package/icons/locker.svg +8 -0
  435. package/icons/logout.svg +5 -0
  436. package/icons/luggage.svg +9 -0
  437. package/icons/mail.svg +4 -0
  438. package/icons/meeting-lounge.svg +10 -0
  439. package/icons/metro.svg +3 -0
  440. package/icons/middle-seat.svg +7 -0
  441. package/icons/minus.svg +3 -0
  442. package/icons/minus24.svg +3 -0
  443. package/icons/mobile-crossed.svg +7 -0
  444. package/icons/mobile.svg +6 -0
  445. package/icons/movingo.svg +3 -0
  446. package/icons/multimedia.svg +9 -0
  447. package/icons/near-bicycle.svg +5 -0
  448. package/icons/near-pet.svg +5 -0
  449. package/icons/near-wheelchair.svg +8 -0
  450. package/icons/night-train.svg +4 -0
  451. package/icons/nonstop.svg +3 -0
  452. package/icons/occupancy-seat-hover.svg +11 -0
  453. package/icons/occupancy-seat-selected.svg +11 -0
  454. package/icons/occupancy-seat.svg +4 -0
  455. package/icons/oneway.svg +4 -0
  456. package/icons/pet-crossed.svg +5 -0
  457. package/icons/pet.svg +7 -0
  458. package/icons/pic.svg +5 -0
  459. package/icons/playground.svg +7 -0
  460. package/icons/plus.svg +4 -0
  461. package/icons/plus24.svg +4 -0
  462. package/icons/popup-controls.svg +15 -0
  463. package/icons/power-socket.svg +6 -0
  464. package/icons/preview.svg +3 -0
  465. package/icons/print.svg +5 -0
  466. package/icons/priority-seat-elderly.svg +6 -0
  467. package/icons/priority-seat-pregnant.svg +5 -0
  468. package/icons/profile.svg +4 -0
  469. package/icons/question.svg +5 -0
  470. package/icons/radio-filled.svg +4 -0
  471. package/icons/radio.svg +3 -0
  472. package/icons/reclining-seat.svg +9 -0
  473. package/icons/refresh.svg +6 -0
  474. package/icons/reload.svg +4 -0
  475. package/icons/remove-circle.svg +3 -0
  476. package/icons/replace.svg +6 -0
  477. package/icons/reservation-crossed.svg +4 -0
  478. package/icons/reservation-mandatory.svg +4 -0
  479. package/icons/reservation-optional.svg +5 -0
  480. package/icons/resplus-horizontal.svg +1 -0
  481. package/icons/resplus.svg +3 -0
  482. package/icons/restaurant.svg +3 -0
  483. package/icons/roundtrip.svg +6 -0
  484. package/icons/save.svg +5 -0
  485. package/icons/search.svg +4 -0
  486. package/icons/seat-compartment.svg +8 -0
  487. package/icons/seat-selected.svg +3 -0
  488. package/icons/seat.svg +5 -0
  489. package/icons/sent.svg +34 -0
  490. package/icons/service-dog.svg +4 -0
  491. package/icons/settings.svg +4 -0
  492. package/icons/shift.svg +3 -0
  493. package/icons/ship.svg +3 -0
  494. package/icons/show.svg +4 -0
  495. package/icons/shower.svg +9 -0
  496. package/icons/silence.svg +6 -0
  497. package/icons/sink.svg +5 -0
  498. package/icons/skis.svg +8 -0
  499. package/icons/sleeper-car-bedding.svg +6 -0
  500. package/icons/sleeper-car.svg +5 -0
  501. package/icons/smoking-crossed.svg +6 -0
  502. package/icons/sort.svg +6 -0
  503. package/icons/stairs-down.svg +5 -0
  504. package/icons/stairs-up.svg +5 -0
  505. package/icons/star-filled.svg +3 -0
  506. package/icons/star.svg +3 -0
  507. package/icons/stroller.svg +6 -0
  508. package/icons/sw-law.svg +5 -0
  509. package/icons/switch.svg +3 -0
  510. package/icons/table.svg +6 -0
  511. package/icons/tag.svg +4 -0
  512. package/icons/taxi.svg +3 -0
  513. package/icons/tick.svg +3 -0
  514. package/icons/ticket-cancel.svg +8 -0
  515. package/icons/ticket-change.svg +3 -0
  516. package/icons/ticket-manage.svg +7 -0
  517. package/icons/ticket-refund.svg +8 -0
  518. package/icons/ticket-travel-pass.svg +4 -0
  519. package/icons/ticket.svg +6 -0
  520. package/icons/tickets.svg +4 -0
  521. package/icons/train.svg +3 -0
  522. package/icons/transfer.svg +3 -0
  523. package/icons/trash.svg +6 -0
  524. package/icons/triange.svg +17 -0
  525. package/icons/tv.svg +5 -0
  526. package/icons/unaccompanied-minor.svg +8 -0
  527. package/icons/upload.svg +5 -0
  528. package/icons/usb.svg +9 -0
  529. package/icons/visibility-off.svg +4 -0
  530. package/icons/visibility-on.svg +4 -0
  531. package/icons/voucher.svg +5 -0
  532. package/icons/wardrobe.svg +4 -0
  533. package/icons/warning.svg +3 -0
  534. package/icons/water.svg +5 -0
  535. package/icons/wc.svg +4 -0
  536. package/icons/wheelchair-lift-reservation.svg +8 -0
  537. package/icons/wheelchair-lift.svg +6 -0
  538. package/icons/wheelchair-ramp.svg +8 -0
  539. package/icons/wheelchair-space-reservation.svg +13 -0
  540. package/icons/wheelchair-space.svg +4 -0
  541. package/icons/wheelchair.svg +5 -0
  542. package/icons/wifi-crossed.svg +9 -0
  543. package/icons/wifi.svg +6 -0
  544. package/index.css +327 -0
  545. package/index.d.ts +31 -0
  546. package/index.js +32 -0
  547. package/mui/Accordion.d.ts +17 -0
  548. package/mui/Accordion.js +46 -0
  549. package/mui/Button/index.d.ts +16 -0
  550. package/mui/Button/index.js +35 -0
  551. package/mui/Card/CardHeader.d.ts +7 -0
  552. package/mui/Card/CardHeader.js +43 -0
  553. package/mui/Card/index.d.ts +4 -0
  554. package/mui/Card/index.js +4 -0
  555. package/mui/Checkbox/CheckboxGroup.d.ts +26 -0
  556. package/mui/Checkbox/CheckboxGroup.js +81 -0
  557. package/mui/Checkbox/index.d.ts +18 -0
  558. package/mui/Checkbox/index.js +40 -0
  559. package/mui/Chip/ChipSecondarySmall.d.ts +10 -0
  560. package/mui/Chip/ChipSecondarySmall.js +40 -0
  561. package/mui/CircularProgress/index.d.ts +3 -0
  562. package/mui/CircularProgress/index.js +36 -0
  563. package/mui/Collapsible/index.d.ts +9 -0
  564. package/mui/Collapsible/index.js +66 -0
  565. package/mui/Counter/index.d.ts +9 -0
  566. package/mui/Counter/index.js +37 -0
  567. package/mui/DatePicker/DatePicker.scss +276 -0
  568. package/mui/DatePicker/DatePickerContext.d.ts +8 -0
  569. package/mui/DatePicker/DatePickerContext.js +2 -0
  570. package/mui/DatePicker/DatePickerHeader.d.ts +3 -0
  571. package/mui/DatePicker/DatePickerHeader.js +63 -0
  572. package/mui/DatePicker/DatePickerHeaderSelect.d.ts +10 -0
  573. package/mui/DatePicker/DatePickerHeaderSelect.js +72 -0
  574. package/mui/DatePicker/DatePickerInput.d.ts +6 -0
  575. package/mui/DatePicker/DatePickerInput.js +28 -0
  576. package/mui/DatePicker/TimeInput.d.ts +10 -0
  577. package/mui/DatePicker/TimeInput.js +63 -0
  578. package/mui/DatePicker/index.d.ts +52 -0
  579. package/mui/DatePicker/index.js +187 -0
  580. package/mui/Dropdown/index.d.ts +22 -0
  581. package/mui/Dropdown/index.js +90 -0
  582. package/mui/EditableLabel/index.d.ts +7 -0
  583. package/mui/EditableLabel/index.js +81 -0
  584. package/mui/ExternalLink/index.d.ts +8 -0
  585. package/mui/ExternalLink/index.js +11 -0
  586. package/mui/FileInput/index.d.ts +27 -0
  587. package/mui/FileInput/index.js +66 -0
  588. package/mui/FormControl/index.d.ts +23 -0
  589. package/mui/FormControl/index.js +36 -0
  590. package/mui/FormField/index.d.ts +8 -0
  591. package/mui/FormField/index.js +12 -0
  592. package/mui/Icon/index.d.ts +21 -0
  593. package/mui/Icon/index.js +47 -0
  594. package/mui/Input/index.d.ts +28 -0
  595. package/mui/Input/index.js +102 -0
  596. package/mui/Loader/index.d.ts +9 -0
  597. package/mui/Loader/index.js +47 -0
  598. package/mui/Modal/index.d.ts +16 -0
  599. package/mui/Modal/index.js +64 -0
  600. package/mui/Pagination/index.d.ts +6 -0
  601. package/mui/Pagination/index.js +23 -0
  602. package/mui/Paper/index.d.ts +4 -0
  603. package/mui/Paper/index.js +3 -0
  604. package/mui/Popper/index.d.ts +13 -0
  605. package/mui/Popper/index.js +139 -0
  606. package/mui/RadioGroup/index.d.ts +26 -0
  607. package/mui/RadioGroup/index.js +41 -0
  608. package/mui/ReadOnlyField/index.d.ts +8 -0
  609. package/mui/ReadOnlyField/index.js +35 -0
  610. package/mui/Select/index.d.ts +47 -0
  611. package/mui/Select/index.js +164 -0
  612. package/mui/Stepper/StepIconComponent.d.ts +6 -0
  613. package/mui/Stepper/StepIconComponent.js +93 -0
  614. package/mui/Stepper/index.d.ts +6 -0
  615. package/mui/Stepper/index.js +13 -0
  616. package/mui/Switch/index.d.ts +3 -0
  617. package/mui/Switch/index.js +2 -0
  618. package/mui/Tab/index.d.ts +60 -0
  619. package/mui/Tab/index.js +12 -0
  620. package/mui/Tabs/index.d.ts +22 -0
  621. package/mui/Tabs/index.js +70 -0
  622. package/mui/TimeDurationLabel/index.d.ts +7 -0
  623. package/mui/TimeDurationLabel/index.js +13 -0
  624. package/mui/ToggleButton/index.d.ts +4 -0
  625. package/mui/ToggleButton/index.js +57 -0
  626. package/mui/ToggleButtonGroup/index.d.ts +25 -0
  627. package/mui/ToggleButtonGroup/index.js +61 -0
  628. package/mui/ToggleList/index.d.ts +11 -0
  629. package/mui/ToggleList/index.js +54 -0
  630. package/mui/Tooltip/index.d.ts +11 -0
  631. package/mui/Tooltip/index.js +36 -0
  632. package/mui/index.d.ts +36 -0
  633. package/mui/index.js +36 -0
  634. package/mui/provider.d.ts +9 -0
  635. package/mui/provider.js +22 -0
  636. package/mui/theme.d.ts +17 -0
  637. package/mui/theme.js +1228 -0
  638. package/package.json +197 -4
  639. package/services/api.d.ts +28 -0
  640. package/services/api.js +141 -0
  641. package/services/index.d.ts +2 -0
  642. package/services/index.js +2 -0
  643. package/services/openapi.d.ts +6 -0
  644. package/services/openapi.js +112 -0
  645. package/store/index.d.ts +6 -0
  646. package/store/index.js +1 -0
  647. package/store/useClassificationOptions.d.ts +3 -0
  648. package/store/useClassificationOptions.js +2 -0
  649. package/types.d.ts +2423 -0
  650. package/utils/array.d.ts +2 -0
  651. package/utils/array.js +21 -0
  652. package/utils/auth.d.ts +2 -0
  653. package/utils/auth.js +31 -0
  654. package/utils/color.d.ts +29 -0
  655. package/utils/color.js +132 -0
  656. package/utils/date.d.ts +40 -0
  657. package/utils/date.js +51 -0
  658. package/utils/filter.d.ts +3 -0
  659. package/utils/filter.js +11 -0
  660. package/utils/getScrollbarSize.d.ts +1 -0
  661. package/utils/getScrollbarSize.js +8 -0
  662. package/utils/index.d.ts +12 -0
  663. package/utils/index.js +12 -0
  664. package/utils/input.d.ts +2 -0
  665. package/utils/input.js +2 -0
  666. package/utils/knowledge-owl-script.d.ts +64 -0
  667. package/utils/knowledge-owl-script.js +226 -0
  668. package/utils/locales.d.ts +3 -0
  669. package/utils/locales.js +24 -0
  670. package/utils/noop.d.ts +1 -0
  671. package/utils/noop.js +1 -0
  672. package/utils/percentage.d.ts +6 -0
  673. package/utils/percentage.js +43 -0
  674. package/utils/redirect.d.ts +1 -0
  675. package/utils/redirect.js +6 -0
  676. package/utils/sort.d.ts +21 -0
  677. package/utils/sort.js +32 -0
  678. package/utils/storage.d.ts +2 -0
  679. package/utils/storage.js +2 -0
  680. package/utils/timeDuration.d.ts +26 -0
  681. package/utils/timeDuration.js +78 -0
  682. package/utils/wallClock.d.ts +17 -0
  683. package/utils/wallClock.js +178 -0
  684. package/wrappers/ApiInitializer.d.ts +9 -0
  685. package/wrappers/ApiInitializer.js +21 -0
  686. package/wrappers/AuthWrapper.d.ts +6 -0
  687. package/wrappers/AuthWrapper.js +38 -0
  688. package/wrappers/AxiosErrorsInterceptorWrapper.d.ts +2 -0
  689. package/wrappers/AxiosErrorsInterceptorWrapper.js +30 -0
  690. package/README.md +0 -3
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PluginHook, CellProps, TableOptions } from 'react-table';
3
+ export declare const TableCell: <D extends object>({ cell }: CellProps<D, any>) => JSX.Element;
4
+ export declare const useTable: <D extends object>({ total, offset, limit, sortBy, manualPagination, useControlledState, onSortingChange, ...options }: TableOptions<D, {}>, ...plugins: PluginHook<D>[]) => import("react-table").TableInstance<D>;
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback } from 'react';
3
+ import { useTable as useReactTable, } from 'react-table';
4
+ import { Ellipsis } from "../components/Ellipsis";
5
+ export const TableCell = ({ cell }) => (_jsx(Ellipsis, { ellipsis: true, tooltip: true, content: cell.value, lines: cell.column.ellipsisLines ?? 2 }));
6
+ const defaultColumn = {
7
+ Cell: TableCell,
8
+ };
9
+ // BR-45564 Global UI: update table row colors in different states
10
+ // feat: probably use this hook in future for truncate text inside each cell,
11
+ // but, some tables have an accessor property instead of Cell,
12
+ // then we have an [object object] on render
13
+ export const useTable = ({ total, offset = 0, limit = 10, sortBy, manualPagination, useControlledState, onSortingChange, ...options }, ...plugins) => {
14
+ const page = useCallback((size) => (offset ? offset / size : 0), [offset]);
15
+ return useReactTable({
16
+ defaultColumn,
17
+ total,
18
+ onSortingChange,
19
+ ...options,
20
+ useControlledState,
21
+ ...(total && {
22
+ pageCount: -1,
23
+ manualPagination: true,
24
+ useControlledState: (state, meta) => ({
25
+ ...state,
26
+ pageIndex: page(limit ?? state.pageSize),
27
+ pageSize: limit,
28
+ ...(sortBy && {
29
+ sortBy,
30
+ }),
31
+ // eslint-disable-next-line react-hooks/rules-of-hooks
32
+ ...useControlledState?.(state, meta),
33
+ }),
34
+ }),
35
+ ...(onSortingChange && { manualSortBy: true }),
36
+ ...(manualPagination !== undefined && { manualPagination }),
37
+ }, ...plugins);
38
+ };
@@ -0,0 +1,4 @@
1
+ import { MouseEvent } from 'react';
2
+ import { TableInstance } from 'react-table';
3
+ export declare const useTableRowHighlight: <T extends {}>(id: string | undefined, table: TableInstance<T>) => void;
4
+ export declare const tableRowClickEventWrapper: (event: MouseEvent, callback?: () => void) => void;
@@ -0,0 +1,16 @@
1
+ import { useEffect } from 'react';
2
+ export const useTableRowHighlight = (id, table) => {
3
+ const { rowsById, resetRowActive, toggleRowActive } = table;
4
+ useEffect(() => {
5
+ if (id && rowsById[id]) {
6
+ toggleRowActive(id, true);
7
+ }
8
+ else {
9
+ resetRowActive();
10
+ }
11
+ }, [id, resetRowActive, rowsById, toggleRowActive]);
12
+ };
13
+ export const tableRowClickEventWrapper = (event, callback) => {
14
+ event.stopPropagation();
15
+ callback && callback();
16
+ };
@@ -0,0 +1,3 @@
1
+ import type { UseTranslationOptions, UseTranslationResponse } from 'react-i18next';
2
+ import { Namespace } from 'i18next';
3
+ export declare const useTranslation: <N extends Namespace<string> = "shared">(options?: UseTranslationOptions) => UseTranslationResponse<N, undefined>;
@@ -0,0 +1,3 @@
1
+ import { useTranslation as useI18nextTranslation } from 'react-i18next';
2
+ import { i18nInstance, NAMESPACE } from "../i18n";
3
+ export const useTranslation = (options) => useI18nextTranslation(NAMESPACE, { ...options, i18n: i18nInstance });
@@ -0,0 +1,40 @@
1
+ export declare const weekDayOptions: readonly [{
2
+ readonly id: 0;
3
+ readonly lowercase: "sunday";
4
+ readonly capitalized: "Sunday";
5
+ readonly capitalized_short: "Sun";
6
+ }, {
7
+ readonly id: 1;
8
+ readonly lowercase: "monday";
9
+ readonly capitalized: "Monday";
10
+ readonly capitalized_short: "Mon";
11
+ }, {
12
+ readonly id: 2;
13
+ readonly lowercase: "tuesday";
14
+ readonly capitalized: "Tuesday";
15
+ readonly capitalized_short: "Tue";
16
+ }, {
17
+ readonly id: 3;
18
+ readonly lowercase: "wednesday";
19
+ readonly capitalized: "Wednesday";
20
+ readonly capitalized_short: "Wed";
21
+ }, {
22
+ readonly id: 4;
23
+ readonly lowercase: "thursday";
24
+ readonly capitalized: "Thursday";
25
+ readonly capitalized_short: "Thu";
26
+ }, {
27
+ readonly id: 5;
28
+ readonly lowercase: "friday";
29
+ readonly capitalized: "Friday";
30
+ readonly capitalized_short: "Fri";
31
+ }, {
32
+ readonly id: 6;
33
+ readonly lowercase: "saturday";
34
+ readonly capitalized: "Saturday";
35
+ readonly capitalized_short: "Sat";
36
+ }];
37
+ export declare const useWeekdayOptions: (valueType: 'LOWERCASE' | 'CAPITALIZED' | 'CAPITALIZED_SHORT' | 'NUMERIC') => {
38
+ value: 0 | 1 | 2 | 3 | 5 | 6 | 4 | "sunday" | "Sunday" | "Sun" | "monday" | "Monday" | "Mon" | "tuesday" | "Tuesday" | "Tue" | "wednesday" | "Wednesday" | "Wed" | "thursday" | "Thursday" | "Thu" | "friday" | "Friday" | "Fri" | "saturday" | "Saturday" | "Sat";
39
+ label: any;
40
+ }[];
@@ -0,0 +1,66 @@
1
+ import { useLocale } from "./useLocale";
2
+ import { useCallback } from 'react';
3
+ export const weekDayOptions = [
4
+ {
5
+ id: 0,
6
+ lowercase: 'sunday',
7
+ capitalized: 'Sunday',
8
+ capitalized_short: 'Sun',
9
+ },
10
+ {
11
+ id: 1,
12
+ lowercase: 'monday',
13
+ capitalized: 'Monday',
14
+ capitalized_short: 'Mon',
15
+ },
16
+ {
17
+ id: 2,
18
+ lowercase: 'tuesday',
19
+ capitalized: 'Tuesday',
20
+ capitalized_short: 'Tue',
21
+ },
22
+ {
23
+ id: 3,
24
+ lowercase: 'wednesday',
25
+ capitalized: 'Wednesday',
26
+ capitalized_short: 'Wed',
27
+ },
28
+ {
29
+ id: 4,
30
+ lowercase: 'thursday',
31
+ capitalized: 'Thursday',
32
+ capitalized_short: 'Thu',
33
+ },
34
+ {
35
+ id: 5,
36
+ lowercase: 'friday',
37
+ capitalized: 'Friday',
38
+ capitalized_short: 'Fri',
39
+ },
40
+ {
41
+ id: 6,
42
+ lowercase: 'saturday',
43
+ capitalized: 'Saturday',
44
+ capitalized_short: 'Sat',
45
+ },
46
+ ];
47
+ export const useWeekdayOptions = (valueType) => {
48
+ const locale = useLocale();
49
+ const getDayValue = useCallback(({ lowercase, capitalized, capitalized_short, id, }) => {
50
+ switch (valueType) {
51
+ case 'LOWERCASE':
52
+ return lowercase;
53
+ case 'CAPITALIZED':
54
+ return capitalized;
55
+ case 'CAPITALIZED_SHORT':
56
+ return capitalized_short;
57
+ case 'NUMERIC':
58
+ return id;
59
+ }
60
+ }, [valueType]);
61
+ const weekdays = weekDayOptions.map((day, i) => ({
62
+ value: getDayValue(day),
63
+ label: locale.localize?.day(i, { width: 'abbreviated' }),
64
+ }));
65
+ return [...weekdays.slice(1), weekdays[0]];
66
+ };
@@ -0,0 +1,13 @@
1
+ export declare const NAMESPACE = "shared";
2
+ export declare const localeConfigurations: Record<string, {
3
+ label: string;
4
+ dateFormat: string;
5
+ timeFormat: string;
6
+ }>;
7
+ export declare const i18nInstance: import("i18next").i18n;
8
+ export declare const currentLocaleConfiguration: {
9
+ label: string;
10
+ dateFormat: string;
11
+ timeFormat: string;
12
+ };
13
+ export declare const getLanguage: () => string;
package/i18n/index.js ADDED
@@ -0,0 +1,82 @@
1
+ import i18n from 'i18next';
2
+ import LanguageDetector from 'i18next-browser-languagedetector';
3
+ import { initReactI18next } from 'react-i18next';
4
+ import intervalPlural from 'i18next-intervalplural-postprocessor';
5
+ import resources from './resources';
6
+ export const NAMESPACE = 'shared';
7
+ export const localeConfigurations = {
8
+ en: { label: 'English', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
9
+ ['en-AE']: {
10
+ label: 'English (AE)',
11
+ dateFormat: 'dd/MM/yyyy',
12
+ timeFormat: 'HH:mm',
13
+ },
14
+ el: { label: 'Ελληνικά', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
15
+ et: { label: 'Eesti', dateFormat: 'dd.MM.yyyy', timeFormat: 'HH:mm' },
16
+ lt: { label: 'Lietuvių', dateFormat: 'yyyy-MM-dd', timeFormat: 'HH:mm' },
17
+ sv: { label: 'Svenska', dateFormat: 'yyyy-MM-dd', timeFormat: 'HH:mm' },
18
+ it: { label: 'Italiano', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
19
+ fr: { label: 'Française', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
20
+ es: { label: 'Español', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
21
+ de: { label: 'Deutsch', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
22
+ sk: { label: 'Slovak', dateFormat: 'dd/MM/yyyy', timeFormat: 'HH:mm' },
23
+ pt: {
24
+ label: 'Portuguese',
25
+ dateFormat: 'dd/MM/yyyy',
26
+ timeFormat: 'HH:mm',
27
+ },
28
+ };
29
+ export const i18nInstance = i18n.createInstance({
30
+ resources,
31
+ fallbackLng: 'en',
32
+ supportedLngs: Object.keys(localeConfigurations),
33
+ defaultNS: NAMESPACE,
34
+ load: 'currentOnly',
35
+ interpolation: {
36
+ escapeValue: false,
37
+ },
38
+ initImmediate: false,
39
+ // debug: true,
40
+ });
41
+ const getOidcProfileLanguage = () => {
42
+ try {
43
+ const oidcKey = Object.keys(sessionStorage).find((key) => key.startsWith('oidc.user'));
44
+ if (!oidcKey)
45
+ return undefined;
46
+ const language = JSON.parse(sessionStorage.getItem(oidcKey) ?? '{}')
47
+ ?.profile?.language;
48
+ if (typeof language !== 'string' || !language)
49
+ return undefined;
50
+ const supported = Object.keys(localeConfigurations);
51
+ if (supported.includes(language))
52
+ return language; // exact, e.g. 'en-AE'
53
+ const base = language.split('-')[0]; // normalize 'en-US' -> 'en'
54
+ return supported.includes(base) ? base : undefined;
55
+ }
56
+ catch {
57
+ return undefined;
58
+ }
59
+ };
60
+ const languageDetector = new LanguageDetector();
61
+ languageDetector.addDetector({
62
+ name: 'oidcProfile',
63
+ lookup: getOidcProfileLanguage,
64
+ // Required by the detector interface; global caching is handled by the
65
+ // localStorage detector via `caches` below.
66
+ cacheUserLanguage: () => { },
67
+ });
68
+ i18nInstance
69
+ .use(languageDetector)
70
+ .use(initReactI18next)
71
+ .use(intervalPlural)
72
+ .init({
73
+ detection: {
74
+ // Resolution order: the `i18nextLng` key in localStorage, then
75
+ // `profile.language` from the OIDC token, then the browser/OS language.
76
+ // If none resolve, `fallbackLng` ('en') applies.
77
+ order: ['localStorage', 'oidcProfile', 'navigator'],
78
+ caches: ['localStorage'],
79
+ },
80
+ });
81
+ export const currentLocaleConfiguration = localeConfigurations[i18nInstance.language] || localeConfigurations['en'];
82
+ export const getLanguage = () => i18nInstance.language ?? 'en';
@@ -0,0 +1,115 @@
1
+ {
2
+ "alert": {
3
+ "fillAtLeastOne": "Mindestens ein Filter muss ausgewählt sein",
4
+ "generalError": "Etwas ist schiefgelaufen",
5
+ "generalPermissionsError": "Für die ausgewählte Aktion verfügt dieses Benutzerprofil nicht über die erforderliche Berechtigung",
6
+ "noAccess": "Kein Zugriff",
7
+ "unknownError": "Unbekannter Fehler"
8
+ },
9
+ "button": {
10
+ "add": "Hinzufügen",
11
+ "addEdit": "Hinzufügen/Bearbeiten",
12
+ "addNew": "Neu hinzufügen",
13
+ "cancel": "Abbrechen",
14
+ "close": "Schließen",
15
+ "collapse": "Einklappen",
16
+ "collapseSearch": "Suche einklappen",
17
+ "confirm": "Bestätigen",
18
+ "delete": "Löschen",
19
+ "disable": "Deaktivieren",
20
+ "enable": "Aktivieren",
21
+ "expand": "Erweitern",
22
+ "expandSearch": "Suche erweitern",
23
+ "filter": "Filter",
24
+ "reset": "Zurücksetzen",
25
+ "resetFilters": "Filter zurücksetzen",
26
+ "restart": "Neustart ",
27
+ "save": "Speichern ",
28
+ "search": "Suchen",
29
+ "selectAll": "Alle auswählen",
30
+ "submit": "Absenden"
31
+ },
32
+ "error": {
33
+ "email": "Falsches E-Mail-Format",
34
+ "integer": "Bitte geben sie eine vollständige Zahl ein",
35
+ "maxDecimalPlaces": "Maximal {{maxValue}} Dezimalstellen erlaubt",
36
+ "positive": "Wert muss positiv sein",
37
+ "required": "Feld ist erforderlich",
38
+ "valueShouldBeBetweenMinAndMax": "{{unit}} muss zwischen {{minValue}} und {{maxValue}} liegen",
39
+ "valueShouldBeMoreMin": "{{unit}} muss mehr als {{minValue}} sein"
40
+ },
41
+ "field": {
42
+ "city": "Stadt",
43
+ "country": "Land",
44
+ "county": "Region",
45
+ "displaySelectedStops": "Ausgewählte Haltestellen anzeigen",
46
+ "externalReference": "Externe Referenz",
47
+ "filteringMethod": "Filtermethode",
48
+ "name": "Name",
49
+ "nameSearchBehaviour": {
50
+ "option": {
51
+ "CONTAINS": "Suche nach teilweiser Übereinstimmung",
52
+ "EXACT": "Suche nach exakter Übereinstimmung",
53
+ "STARTS_WITH": "Suche nach Anfang des Namens"
54
+ }
55
+ },
56
+ "owner": "Eigentümer",
57
+ "shortFormDay": "Tg",
58
+ "shortFormHour": "Std",
59
+ "shortFormMinute": "Min",
60
+ "shortFormSecond": "Sek",
61
+ "streetAndHouseNumber": "Straße, Hausnummer"
62
+ },
63
+ "hint": {
64
+ "plusMore": "+ {{num}} weitere"
65
+ },
66
+ "label": {
67
+ "accessibility": "Der Barrierefreiheitsmodus verbessert die Benutzerfreundlichkeit der Applikation durch kontrastreiche Darstellungen, deutliche Trennlinien zwischen verschiedenen Elementen und einige zusätzliche Verbesserungen. Dies kann jederzeit aktiviert und deaktiviert werden. Die Konfiguration des Barrierefreiheitsmodus wird pro Modul gespeichert.",
68
+ "enterLink": "Link eingeben...",
69
+ "inactive": "(inaktiv)",
70
+ "link": "Link",
71
+ "noDataAdded": "Keine Daten hinzugefügt.",
72
+ "noResultsFound": "Keine Ergebnisse gefunden. Bitte passen sie Ihre Suchkriterien an und versuchen Sie es nochmals.",
73
+ "perPage": "<s>{{count}}</s> pro Seite",
74
+ "plusMore": "+ {{count}} weitere",
75
+ "submitToSeeResults": "Drücken Sie auf Suchen, um die Ergebnisse anzuzeigen.",
76
+ "time": "Zeit:",
77
+ "timeFrom": "Zeit von:",
78
+ "timeTo": "Zeit bis:",
79
+ "uploadFile": "Datei hochladen",
80
+ "week": "Wo"
81
+ },
82
+ "modal": {
83
+ "title": {
84
+ "selectStops": "Haltestellen auswählen"
85
+ }
86
+ },
87
+ "option": {
88
+ "all": "Alle",
89
+ "no": "Nein",
90
+ "yes": "Ja"
91
+ },
92
+ "qty": {
93
+ "showingFromToOf": "(0)[{{count}} Einträge];(1-inf)[Zeige {{from}} bis {{to}} von {{count}} Einträgen];"
94
+ },
95
+ "table": {
96
+ "head": {
97
+ "city": "Stadt",
98
+ "country": "Land",
99
+ "county": "Region",
100
+ "name": "Name",
101
+ "streetAndHouseNumber": "Straße, Hausnummer"
102
+ }
103
+ },
104
+ "title": {
105
+ "accessibilityMode": "Barrierefreiheitsmodus",
106
+ "chooseBusinessEntityToContinueWith": "Wählen Sie eine Geschäftseinheit, um fortzufahren:"
107
+ },
108
+ "tooltip": {
109
+ "accessibility": "Barrierefreiheit",
110
+ "help": "Hilfe",
111
+ "logout": "Abmelden",
112
+ "next": "Weiter",
113
+ "previous": "Zurück"
114
+ }
115
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "alert": {
3
+ "fillAtLeastOne": "Πρέπει να συμπληρωθεί τουλάχιστον ένα φίλτρο",
4
+ "generalError": "Κάτι πήγε στραβά",
5
+ "generalPermissionsError": "Το προφίλ χρήστη δεν έχει την απαραίτητη άδεια για την επιλεγμένη ενέργεια",
6
+ "noAccess": "Δεν υπάρχει πρόσβαση",
7
+ "unknownError": "Άγνωστο σφάλμα"
8
+ },
9
+ "button": {
10
+ "add": "Προσθήκη",
11
+ "addEdit": "Προσθήκη/επεξεργασία",
12
+ "addNew": "Προσθήκη νέου",
13
+ "cancel": "Ακύρωση",
14
+ "close": "Κλείσιμο",
15
+ "collapse": "Σύμπτυξη",
16
+ "collapseSearch": "Σύμπτυξη αναζήτησης",
17
+ "confirm": "Επιβεβαίωση",
18
+ "delete": "Διαγραφή",
19
+ "disable": "Απενεργοποίηση",
20
+ "enable": "Ενεργοποίηση",
21
+ "expand": "Ανάπτυξη",
22
+ "expandSearch": "Ανάπτυξη αναζήτησης",
23
+ "filter": "Φίλτρο",
24
+ "reset": "Επαναφορά",
25
+ "resetFilters": "Επαναφορά φίλτρων",
26
+ "restart": "Επανεκκίνηση",
27
+ "save": "Αποθήκευση",
28
+ "search": "Αναζήτηση",
29
+ "selectAll": "Επιλογή όλων",
30
+ "submit": "Υποβολή"
31
+ },
32
+ "error": {
33
+ "email": "Λάθος μορφή email",
34
+ "integer": "Παρακαλώ εισάγετε ακέραιο αριθμό",
35
+ "maxDecimalPlaces": "Επιτρέπονται το πολύ {{maxValue}} δεκαδικά ψηφία",
36
+ "positive": "Η τιμή πρέπει να είναι θετική",
37
+ "required": "Το πεδίο είναι υποχρεωτικό",
38
+ "valueShouldBeBetweenMinAndMax": "{{unit}} πρέπει να είναι μεταξύ {{minValue}} και {{maxValue}}",
39
+ "valueShouldBeMoreMin": "{{unit}} πρέπει να είναι μεγαλύτερο από {{minValue}}"
40
+ },
41
+ "field": {
42
+ "city": "Πόλη",
43
+ "country": "Χώρα",
44
+ "county": "Νομός",
45
+ "displaySelectedStops": "Εμφάνιση επιλεγμένων στάσεων",
46
+ "externalReference": "Εξωτερική αναφορά",
47
+ "filteringMethod": "Μέθοδος φιλτραρίσματος",
48
+ "name": "Όνομα",
49
+ "nameSearchBehaviour": {
50
+ "option": {
51
+ "CONTAINS": "Αναζήτηση υποσυμβολοσειράς",
52
+ "EXACT": "Αναζήτηση ακριβούς αντιστοιχίας",
53
+ "STARTS_WITH": "Αναζήτηση υποσυμβολοσειράς από την αρχή του ονόματος"
54
+ }
55
+ },
56
+ "owner": "Ιδιοκτήτης",
57
+ "shortFormDay": "η",
58
+ "shortFormHour": "ω",
59
+ "shortFormMinute": "λ",
60
+ "shortFormSecond": "δ",
61
+ "streetAndHouseNumber": "Οδός, αριθμός"
62
+ },
63
+ "hint": {
64
+ "plusMore": "+ {{num}} ακόμα"
65
+ },
66
+ "label": {
67
+ "accessibility": "Η λειτουργία προσβασιμότητας βελτιώνει τη χρηστικότητα της εφαρμογής παρέχοντας οπτικά υψηλής αντίθεσης, διακριτούς διαχωριστές μεταξύ διαφορετικών στοιχείων και ορισμένες επιπλέον βελτιώσεις. Η λειτουργία προσβασιμότητας μπορεί να ενεργοποιηθεί και να απενεργοποιηθεί ανά πάσα στιγμή. Η ρύθμιση της λειτουργίας προσβασιμότητας αποθηκεύεται ανά ενότητα.",
68
+ "enterLink": "Εισάγετε σύνδεσμο...",
69
+ "inactive": "(ανενεργό)",
70
+ "link": "Σύνδεσμος",
71
+ "noDataAdded": "Δεν προστέθηκαν δεδομένα.",
72
+ "noResultsFound": "Δεν βρέθηκαν αποτελέσματα. Δοκιμάστε να προσαρμόσετε τα κριτήρια αναζήτησης για να βρείτε αυτό που ψάχνετε.",
73
+ "perPage": "<s>{{count}}</s> ανά σελίδα",
74
+ "plusMore": "+ {{count}} ακόμα",
75
+ "submitToSeeResults": "Πατήστε αναζήτηση για να δείτε τα αποτελέσματα.",
76
+ "time": "Ώρα:",
77
+ "timeFrom": "Ώρα από:",
78
+ "timeTo": "Ώρα έως:",
79
+ "uploadFile": "Μεταφόρτωση αρχείου",
80
+ "week": "Εβδ",
81
+ "typeToSearchStops": "Πληκτρολογήστε για αναζήτηση στάσεων..."
82
+ },
83
+ "modal": {
84
+ "title": {
85
+ "selectStops": "Επιλογή στάσεων"
86
+ }
87
+ },
88
+ "option": {
89
+ "all": "Όλα",
90
+ "no": "Όχι",
91
+ "yes": "Ναι"
92
+ },
93
+ "qty": {
94
+ "showingFromToOf": "(0)[{{count}} εγγραφές];(1-inf)[Εμφάνιση {{from}} έως {{to}} από {{count}} εγγραφές];"
95
+ },
96
+ "table": {
97
+ "head": {
98
+ "city": "Πόλη",
99
+ "country": "Χώρα",
100
+ "county": "Νομός",
101
+ "name": "Όνομα",
102
+ "streetAndHouseNumber": "Οδός, αριθμός"
103
+ }
104
+ },
105
+ "title": {
106
+ "accessibilityMode": "Λειτουργία προσβασιμότητας",
107
+ "chooseBusinessEntityToContinueWith": "Επιλέξτε επιχειρηματική οντότητα για να συνεχίσετε:"
108
+ },
109
+ "tooltip": {
110
+ "accessibility": "Προσβασιμότητα",
111
+ "help": "Βοήθεια",
112
+ "logout": "Αποσύνδεση",
113
+ "next": "Επόμενο",
114
+ "previous": "Προηγούμενο"
115
+ }
116
+ }
@@ -0,0 +1,115 @@
1
+ {
2
+ "alert": {
3
+ "fillAtLeastOne": "At least one filter must be filled",
4
+ "generalError": "Something went wrong",
5
+ "generalPermissionsError": "The user profile lacks the necessary permission for the selected action",
6
+ "noAccess": "No access",
7
+ "unknownError": "Unknown error"
8
+ },
9
+ "button": {
10
+ "add": "Add",
11
+ "addEdit": "Add/edit",
12
+ "addNew": "Add new",
13
+ "cancel": "Cancel",
14
+ "close": "Close",
15
+ "collapse": "Collapse",
16
+ "collapseSearch": "Collapse search",
17
+ "confirm": "Confirm",
18
+ "delete": "Delete",
19
+ "disable": "Disable",
20
+ "enable": "Enable",
21
+ "expand": "Expand",
22
+ "expandSearch": "Expand search",
23
+ "filter": "Filter",
24
+ "reset": "Reset",
25
+ "resetFilters": "Reset filters",
26
+ "restart": "Restart",
27
+ "save": "Save",
28
+ "search": "Search",
29
+ "selectAll": "Select all",
30
+ "submit": "Submit"
31
+ },
32
+ "error": {
33
+ "email": "Wrong email format",
34
+ "integer": "Please insert an integral number",
35
+ "maxDecimalPlaces": "Maximum {{maxValue}} decimal places allowed",
36
+ "positive": "Value must be positive",
37
+ "required": "Field is required",
38
+ "valueShouldBeBetweenMinAndMax": "{{unit}} must be between {{minValue}} and {{maxValue}}",
39
+ "valueShouldBeMoreMin": "{{unit}} must be more {{minValue}}"
40
+ },
41
+ "field": {
42
+ "city": "City",
43
+ "country": "Country",
44
+ "county": "County",
45
+ "displaySelectedStops": "Display selected stops",
46
+ "externalReference": "External reference",
47
+ "filteringMethod": "Filtering method",
48
+ "name": "Name",
49
+ "nameSearchBehaviour": {
50
+ "option": {
51
+ "CONTAINS": "Substring search",
52
+ "EXACT": "Exact match search",
53
+ "STARTS_WITH": "Substring search from the beginning of the name"
54
+ }
55
+ },
56
+ "owner": "Owner",
57
+ "shortFormDay": "d",
58
+ "shortFormHour": "h",
59
+ "shortFormMinute": "m",
60
+ "shortFormSecond": "s",
61
+ "streetAndHouseNumber": "Street, house number"
62
+ },
63
+ "hint": {
64
+ "plusMore": "+ {{num}} more"
65
+ },
66
+ "label": {
67
+ "accessibility": "Accessibility mode enhances the usability of the application by providing high-contrast visuals, distinctive dividers between different elements and some additional improvements. Accessibility mode can be enabled and disabled at all times. Accessibility mode configuration is stored per module.",
68
+ "enterLink": "Enter link...",
69
+ "inactive": "(inactive)",
70
+ "link": "Link",
71
+ "noDataAdded": "No data added.",
72
+ "noResultsFound": "No results found. Try adjusting your search criteria to find what you are looking for.",
73
+ "perPage": "<s>{{count}}</s> per page",
74
+ "plusMore": "+ {{count}} more",
75
+ "submitToSeeResults": "Press search to see the results.",
76
+ "time": "Time:",
77
+ "timeFrom": "Time from:",
78
+ "timeTo": "Time to:",
79
+ "uploadFile": "Upload file",
80
+ "week": "Wk"
81
+ },
82
+ "modal": {
83
+ "title": {
84
+ "selectStops": "Select stops"
85
+ }
86
+ },
87
+ "option": {
88
+ "all": "All",
89
+ "no": "No",
90
+ "yes": "Yes"
91
+ },
92
+ "qty": {
93
+ "showingFromToOf": "(0)[{{count}} entries];(1-inf)[Showing {{from}} to {{to}} of {{count}} entries];"
94
+ },
95
+ "table": {
96
+ "head": {
97
+ "city": "City",
98
+ "country": "Country",
99
+ "county": "County",
100
+ "name": "Name",
101
+ "streetAndHouseNumber": "Street, house number"
102
+ }
103
+ },
104
+ "title": {
105
+ "accessibilityMode": "Accessibility mode",
106
+ "chooseBusinessEntityToContinueWith": "Choose business entity to continue with:"
107
+ },
108
+ "tooltip": {
109
+ "accessibility": "Accessibility",
110
+ "help": "Help",
111
+ "logout": "Logout",
112
+ "next": "Next",
113
+ "previous": "Previous"
114
+ }
115
+ }