react-luminus-components 1.3.21 → 1.3.23

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 (242) hide show
  1. package/dist/.vite/manifest.json +187 -0
  2. package/dist/PrimaryButton-Cx3E5x2b.cjs +1 -0
  3. package/dist/PrimaryButton-DJLMLJJ7.js +712 -0
  4. package/dist/SimpleTooltip-CIPtCvs1.js +5 -0
  5. package/dist/SimpleTooltip-Dtb0OmTb.cjs +1 -0
  6. package/dist/UserAvatarToggle-CsTHq7yG.js +7009 -0
  7. package/dist/UserAvatarToggle-DJWp7_0z.cjs +253 -0
  8. package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +3 -0
  9. package/dist/components/BnfTableValueFormats/index.d.ts +1 -0
  10. package/dist/components/Buttons/ContextButton/ContextButton.d.ts +14 -0
  11. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +12 -0
  12. package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +8 -0
  13. package/dist/components/Buttons/IconButton/IconButton.d.ts +13 -0
  14. package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +14 -0
  15. package/dist/components/Buttons/index.d.ts +5 -0
  16. package/dist/components/Dropdown/Dropdown.d.ts +8 -0
  17. package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +6 -0
  18. package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +9 -0
  19. package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +12 -0
  20. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +7 -0
  21. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +10 -0
  22. package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +8 -0
  23. package/dist/components/Dropdown/comps/index.d.ts +6 -0
  24. package/dist/components/Dropdown/index.d.ts +2 -0
  25. package/dist/components/Form/CheckInput/CheckInput.d.ts +4 -0
  26. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +4 -0
  27. package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +4 -0
  28. package/dist/components/Form/SelectInput/SelectInput.d.ts +4 -0
  29. package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +4 -0
  30. package/dist/components/Form/TextInput/TextInput.d.ts +4 -0
  31. package/dist/components/Form/index.d.ts +6 -0
  32. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +4 -0
  33. package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +4 -0
  34. package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +4 -0
  35. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +4 -0
  36. package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +8 -0
  37. package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +4 -0
  38. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +4 -0
  39. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +4 -0
  40. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +4 -0
  41. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -0
  42. package/dist/components/HookForm/index.d.ts +10 -0
  43. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +34 -0
  44. package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +9 -0
  45. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +34 -0
  46. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +34 -0
  47. package/dist/components/InputContainers/index.d.ts +4 -0
  48. package/dist/components/NewTabs/Tab/Tab.d.ts +10 -0
  49. package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +11 -0
  50. package/dist/components/NewTabs/Tabs/Tabs.d.ts +9 -0
  51. package/dist/components/NewTabs/index.d.ts +3 -0
  52. package/dist/components/Tabs/Tabs.d.ts +9 -0
  53. package/dist/components/Tabs/comps/Tab/Tab.d.ts +7 -0
  54. package/dist/components/Tabs/comps/index.d.ts +1 -0
  55. package/dist/components/Tabs/index.d.ts +2 -0
  56. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +23 -0
  57. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +8 -0
  58. package/dist/components/Tooltip/index.d.ts +2 -0
  59. package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +8 -0
  60. package/dist/components/UserAvatar/index.d.ts +1 -0
  61. package/dist/components/common/Alert/Alert.d.ts +8 -0
  62. package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +8 -0
  63. package/dist/components/common/AppSearch/AppSearch.d.ts +9 -0
  64. package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +12 -0
  65. package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +9 -0
  66. package/dist/components/common/AppSearch/comps/index.d.ts +2 -0
  67. package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +6 -0
  68. package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +7 -0
  69. package/dist/components/common/Backdrop/Backdrop.d.ts +7 -0
  70. package/dist/components/common/Badge/Badge.d.ts +9 -0
  71. package/dist/components/common/Card/Card.d.ts +28 -0
  72. package/dist/components/common/Collapse/Collapse.d.ts +20 -0
  73. package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +3 -0
  74. package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +9 -0
  75. package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +7 -0
  76. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +10 -0
  77. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +9 -0
  78. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +11 -0
  79. package/dist/components/common/HomeDashboard/comps/index.d.ts +1 -0
  80. package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +6 -0
  81. package/dist/components/common/ImgApi/ImgApi.d.ts +4 -0
  82. package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +9 -0
  83. package/dist/components/common/ImgDirect/ImgDirect.d.ts +4 -0
  84. package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +6 -0
  85. package/dist/components/common/Loading/Loading.d.ts +3 -0
  86. package/dist/components/common/Loading/LoadingBlock.d.ts +4 -0
  87. package/dist/components/common/MonthPicker/MonthPicker.d.ts +11 -0
  88. package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +14 -0
  89. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +18 -0
  90. package/dist/components/common/PromptDialog/PromptDialog.d.ts +3 -0
  91. package/dist/components/common/SimplePicker/SimplePicker.d.ts +25 -0
  92. package/dist/components/common/Timeline/Timeline.d.ts +7 -0
  93. package/dist/components/common/Typography/Typography.d.ts +9 -0
  94. package/dist/components/common/VersionInfo/VersionInfo.d.ts +6 -0
  95. package/dist/components/common/Widget/WidgetCard.d.ts +8 -0
  96. package/dist/components/common/Widget/WidgetWrapper.d.ts +7 -0
  97. package/dist/components/common/YearPicker/YearPicker.d.ts +10 -0
  98. package/dist/components/common/index.d.ts +27 -0
  99. package/dist/contexts/auth/AuthContext.d.ts +9 -0
  100. package/dist/contexts/auth/AuthProvider.d.ts +16 -0
  101. package/dist/contexts/confirm/ConfirmContext.d.ts +9 -0
  102. package/dist/contexts/confirm/ConfirmProvider.d.ts +6 -0
  103. package/dist/contexts/delegation/DelegationContext.d.ts +8 -0
  104. package/dist/contexts/delegation/DelegationProvider.d.ts +6 -0
  105. package/dist/contexts/index.d.ts +11 -0
  106. package/dist/contexts/loading/LoadingContext.d.ts +8 -0
  107. package/dist/contexts/loading/LoadingProvider.d.ts +6 -0
  108. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +24 -0
  109. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +25 -0
  110. package/dist/contexts/prompt/PromptContext.d.ts +13 -0
  111. package/dist/contexts/prompt/PromptProvider.d.ts +6 -0
  112. package/dist/contexts/user/UserContext.d.ts +11 -0
  113. package/dist/contexts/user/UserProvider.d.ts +6 -0
  114. package/dist/contexts.cjs.js +1 -0
  115. package/dist/contexts.d.ts +1 -0
  116. package/dist/contexts.es.js +366 -0
  117. package/dist/dateUtils-7nL2BXlo.js +131 -0
  118. package/dist/dateUtils-DUA3CKds.cjs +1 -0
  119. package/dist/hooks/index.d.ts +13 -0
  120. package/dist/hooks/useAuth/hooks/useDevAuth.d.ts +7 -0
  121. package/dist/hooks/useAuth/hooks/useMsalAuth.d.ts +8 -0
  122. package/dist/hooks/useAuth/useAuth.d.ts +8 -0
  123. package/dist/hooks/useAxios/useAxios.d.ts +10 -0
  124. package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -0
  125. package/dist/hooks/useConfirm/useConfirm.d.ts +8 -0
  126. package/dist/hooks/useFormControlType/useFormControlType.d.ts +2 -0
  127. package/dist/hooks/useGetApiData/useGetApiData.d.ts +9 -0
  128. package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +2 -0
  129. package/dist/hooks/useKeyPress/useKeyPress.d.ts +2 -0
  130. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +3 -0
  131. package/dist/hooks/useNotifications/useNotifications.d.ts +4 -0
  132. package/dist/hooks/usePermissions/usePermissions.d.ts +4 -0
  133. package/dist/hooks/usePrompt/usePrompt.d.ts +8 -0
  134. package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +74 -0
  135. package/dist/hooks.cjs.js +1 -0
  136. package/dist/hooks.d.ts +1 -0
  137. package/dist/hooks.es.js +2989 -0
  138. package/dist/latinize-BQrinury.js +950 -0
  139. package/dist/latinize-DaqzUOla.cjs +1 -0
  140. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +4 -0
  141. package/dist/layout/MainContainer/MainContainer.d.ts +4 -0
  142. package/dist/layout/PageTitle/PageTitle.d.ts +6 -0
  143. package/dist/layout/SideContentBar/SideContentBar.d.ts +7 -0
  144. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +11 -0
  145. package/dist/layout/SideMenu/SideMenu.d.ts +12 -0
  146. package/dist/layout/TopBar/TopBar.d.ts +9 -0
  147. package/dist/layout/index.d.ts +5 -0
  148. package/dist/layout.cjs.js +1 -0
  149. package/dist/layout.d.ts +1 -0
  150. package/dist/layout.es.js +132 -0
  151. package/dist/main.cjs.js +1 -0
  152. package/dist/main.d.ts +32 -0
  153. package/dist/main.es.js +4269 -0
  154. package/dist/models/index.d.ts +65 -0
  155. package/dist/models/prop-types/ContainerProps.d.ts +10 -0
  156. package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +5 -0
  157. package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +6 -0
  158. package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +11 -0
  159. package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +8 -0
  160. package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +6 -0
  161. package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +7 -0
  162. package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +7 -0
  163. package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +7 -0
  164. package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +4 -0
  165. package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +4 -0
  166. package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +4 -0
  167. package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +7 -0
  168. package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +9 -0
  169. package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +4 -0
  170. package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +4 -0
  171. package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +4 -0
  172. package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +7 -0
  173. package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +4 -0
  174. package/dist/models/prop-types/ImgProps.d.ts +7 -0
  175. package/dist/models/prop-types/InputContainerProps.d.ts +26 -0
  176. package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +5 -0
  177. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +24 -0
  178. package/dist/models/prop-types/InputProps/FileInputProps.d.ts +6 -0
  179. package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +15 -0
  180. package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +6 -0
  181. package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +6 -0
  182. package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +9 -0
  183. package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +5 -0
  184. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +10 -0
  185. package/dist/models/texts/AppSearchTexts.d.ts +5 -0
  186. package/dist/models/texts/AxiosTexts.d.ts +8 -0
  187. package/dist/models/texts/ConfirmTexts.d.ts +7 -0
  188. package/dist/models/texts/CustomSelectTexts.d.ts +5 -0
  189. package/dist/models/texts/DropdownPickerTexts.d.ts +5 -0
  190. package/dist/models/texts/ErrorBoundaryTexts.d.ts +5 -0
  191. package/dist/models/texts/FormSubmitTexts.d.ts +4 -0
  192. package/dist/models/texts/FormValidationTexts.d.ts +5 -0
  193. package/dist/models/texts/HomeDashboardTexts.d.ts +6 -0
  194. package/dist/models/texts/WidgetTexts.d.ts +4 -0
  195. package/dist/models/types/ApiErrorResult.d.ts +8 -0
  196. package/dist/models/types/DashboardConfig.d.ts +5 -0
  197. package/dist/models/types/DashboardWidget.d.ts +9 -0
  198. package/dist/models/types/DashboardWidgetConfig.d.ts +5 -0
  199. package/dist/models/types/DropdownPickerOption.d.ts +7 -0
  200. package/dist/models/types/EmployeeIndexModel.d.ts +14 -0
  201. package/dist/models/types/ErrorField.d.ts +5 -0
  202. package/dist/models/types/FormSelectOption.d.ts +5 -0
  203. package/dist/models/types/HookFormInputProps.d.ts +9 -0
  204. package/dist/models/types/LoginState.d.ts +7 -0
  205. package/dist/models/types/MenuItemType.d.ts +11 -0
  206. package/dist/models/types/MenuItemTypeExtended.d.ts +6 -0
  207. package/dist/models/types/NameIdIntModel.d.ts +5 -0
  208. package/dist/models/types/NameIdIntOptionalModel.d.ts +5 -0
  209. package/dist/models/types/NameIdStringModel.d.ts +5 -0
  210. package/dist/models/types/NameIdStringOptionalModel.d.ts +5 -0
  211. package/dist/models/types/PhotoAction.d.ts +9 -0
  212. package/dist/models/types/PhotoLibraryItemModel.d.ts +7 -0
  213. package/dist/models/types/PromptOptions.d.ts +7 -0
  214. package/dist/models/types/SearchResultGroupKeyModel.d.ts +6 -0
  215. package/dist/models/types/SearchResultGroupModel.d.ts +7 -0
  216. package/dist/models/types/SearchResultModel.d.ts +8 -0
  217. package/dist/models/types/SearchType.d.ts +6 -0
  218. package/dist/models/types/TimelineStep.d.ts +11 -0
  219. package/dist/models/types/TimelineStepState.d.ts +5 -0
  220. package/dist/models/types/UseGetApiDataOptions.d.ts +9 -0
  221. package/dist/models/types/UserLoginState.d.ts +7 -0
  222. package/dist/models/types/UserModel.d.ts +11 -0
  223. package/dist/searchUtils-Do20vjZW.cjs +1 -0
  224. package/dist/searchUtils-Du4JnXdQ.js +7 -0
  225. package/dist/style.css +1 -0
  226. package/dist/useFormControlType-Dqz8sV4J.cjs +1 -0
  227. package/dist/useFormControlType-oJGqgThz.js +20 -0
  228. package/dist/useLocalStorageState-Cg6ipags.js +40 -0
  229. package/dist/useLocalStorageState-CkEIA-gx.cjs +1 -0
  230. package/dist/usePermissions-B1eRrluF.js +14 -0
  231. package/dist/usePermissions-DUTyAK35.cjs +1 -0
  232. package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +4 -0
  233. package/dist/utils/date/dateUtils.d.ts +1 -0
  234. package/dist/utils/hookForm/hookFormUtils.d.ts +3 -0
  235. package/dist/utils/index.d.ts +6 -0
  236. package/dist/utils/object/objectUtils.d.ts +2 -0
  237. package/dist/utils/search/searchUtils.d.ts +3 -0
  238. package/dist/utils/text/textUtils.d.ts +3 -0
  239. package/dist/utils.cjs.js +1 -0
  240. package/dist/utils.d.ts +1 -0
  241. package/dist/utils.es.js +27 -0
  242. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ export type { default as InputContainerProps } from './prop-types/InputContainerProps';
2
+ export type { default as InputBaseProps } from './prop-types/InputProps/InputBaseProps';
3
+ export type { default as HookFormInputBaseProps } from './prop-types/HookFormInputProps/HookFormInputBaseProps';
4
+ export type { default as TextInputProps } from './prop-types/InputProps/TextInputProps';
5
+ export type { default as FormTextInputProps } from './prop-types/FormInputProps/FormTextInputProps';
6
+ export type { default as HookFormTextInputProps } from './prop-types/HookFormInputProps/HookFormTextInputProps';
7
+ export type { default as SelectInputProps } from './prop-types/InputProps/SelectInputProps';
8
+ export type { default as FormSelectInputProps } from './prop-types/FormInputProps/FormSelectInputProps';
9
+ export type { default as HookFormSelectInputProps } from './prop-types/HookFormInputProps/HookFormSelectInputProps';
10
+ export type { default as DropdownPickerProps } from './prop-types/InputProps/DropdownPickerProps';
11
+ export type { default as HookFormDropdownPickerProps } from './prop-types/HookFormInputProps/HookFormDropdownPickerProps';
12
+ export type { default as CheckInputProps } from './prop-types/InputProps/CheckInputProps';
13
+ export type { default as FormCheckInputProps } from './prop-types/FormInputProps/FormCheckInputProps';
14
+ export type { default as HookFormCheckInputProps } from './prop-types/HookFormInputProps/HookFormCheckInputProps';
15
+ export type { default as TextAreaInputProps } from './prop-types/InputProps/TextAreaInputProps';
16
+ export type { default as FormTextAreaInputProps } from './prop-types/FormInputProps/FormTextAreaInputProps';
17
+ export type { default as HookFormTextAreaInputProps } from './prop-types/HookFormInputProps/HookFormTextAreaInputProps';
18
+ export type { default as RadioInputProps } from './prop-types/InputProps/RadioInputProps';
19
+ export type { default as FormRadioInputProps } from './prop-types/FormInputProps/FormRadioInputProps';
20
+ export type { default as HookFormRadioInputProps } from './prop-types/HookFormInputProps/HookFormRadioInputProps';
21
+ export type { default as FileInputProps } from './prop-types/InputProps/FileInputProps';
22
+ export type { default as FormFileInputProps } from './prop-types/FormInputProps/FormFileInputProps';
23
+ export type { default as HookFormFileInputProps } from './prop-types/HookFormInputProps/HookFormFileInputProps';
24
+ export type { default as NumericInputProps } from './prop-types/InputProps/NumericInputProps';
25
+ export type { default as FormNumericStepperInputProps } from './prop-types/FormInputProps/FormNumericStepperInputProps';
26
+ export type { default as HookFormNumericStepperInputProps } from './prop-types/HookFormInputProps/HookFormNumericStepperInputProps';
27
+ export type { default as HookFormInputProps } from './prop-types/HookFormInputProps/HookFormInputProps';
28
+ export type { default as ContainerProps } from './prop-types/ContainerProps';
29
+ export type { default as ImgProps } from './prop-types/ImgProps';
30
+ export type { default as DashboardWidgetCommonProps } from './prop-types/DashboardWidgetCommonProps';
31
+ export type { default as NameIdStringModel } from './types/NameIdStringModel';
32
+ export type { default as NameIdIntModel } from './types/NameIdIntModel';
33
+ export type { default as NameIdStringOptionalModel } from './types/NameIdStringOptionalModel';
34
+ export type { default as NameIdIntOptionalModel } from './types/NameIdIntOptionalModel';
35
+ export type { default as PhotoLibraryItemModel } from './types/PhotoLibraryItemModel';
36
+ export type { default as PhotoAction } from './types/PhotoAction';
37
+ export type { default as EmployeeIndexModel } from './types/EmployeeIndexModel';
38
+ export type { default as DashboardConfig } from './types/DashboardConfig';
39
+ export type { default as DashboardWidget } from './types/DashboardWidget';
40
+ export type { default as DashboardWidgetConfig } from './types/DashboardWidgetConfig';
41
+ export type { default as FormSelectOption } from './types/FormSelectOption';
42
+ export type { default as MenuItemType } from './types/MenuItemType';
43
+ export type { default as MenuItemTypeExtended } from './types/MenuItemTypeExtended';
44
+ export type { default as ErrorField } from './types/ErrorField';
45
+ export type { default as ApiErrorResult } from './types/ApiErrorResult';
46
+ export type { default as SearchType } from './types/SearchType';
47
+ export type { default as SearchResultModel } from './types/SearchResultModel';
48
+ export type { default as SearchResultGroupModel } from './types/SearchResultGroupModel';
49
+ export type { default as SearchResultGroupKeyModel } from './types/SearchResultGroupKeyModel';
50
+ export type { default as AxiosTexts } from './texts/AxiosTexts';
51
+ export type { default as HomeDashboardTexts } from './texts/HomeDashboardTexts';
52
+ export type { default as DropdownPickerTexts } from './texts/DropdownPickerTexts';
53
+ export type { default as ConfirmTexts } from './texts/ConfirmTexts';
54
+ export type { default as FormValidationTexts } from './texts/FormValidationTexts';
55
+ export type { default as FormSubmitTexts } from './texts/FormSubmitTexts';
56
+ export type { default as AppSearchTexts } from './texts/AppSearchTexts';
57
+ export type { default as CustomSelectTexts } from './texts/CustomSelectTexts';
58
+ export type { default as WidgetTexts } from './texts/WidgetTexts';
59
+ export type { default as ErrorBoundaryTexts } from './texts/ErrorBoundaryTexts';
60
+ export type { default as PromptOptions } from './types/PromptOptions';
61
+ export type { default as UseGetApiDataOptions } from './types/UseGetApiDataOptions';
62
+ export type { default as DropdownPickerOption } from './types/DropdownPickerOption';
63
+ export type { default as UserModel } from './types/UserModel';
64
+ export { default as LoginState } from './types/LoginState';
65
+ export type { default as UserLoginState } from './types/UserLoginState';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ type ContainerProps = {
3
+ title?: string | ReactNode;
4
+ children?: ReactNode;
5
+ sideContent?: React.ReactNode;
6
+ sideContentWidth?: number;
7
+ noPadding?: boolean;
8
+ className?: string;
9
+ };
10
+ export default ContainerProps;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ type DashboardWidgetCommonProps = {
3
+ title: ReactNode;
4
+ };
5
+ export default DashboardWidgetCommonProps;
@@ -0,0 +1,6 @@
1
+ import CheckInputProps from '../InputProps/CheckInputProps';
2
+ type FormCheckInputProps = CheckInputProps & {
3
+ value: boolean;
4
+ onChange?: (value: boolean) => void;
5
+ };
6
+ export default FormCheckInputProps;
@@ -0,0 +1,11 @@
1
+ import FileInputProps from '../InputProps/FileInputProps';
2
+ type FormFileInputProps = FileInputProps & ({
3
+ multiple?: false;
4
+ value: File | null;
5
+ onChange?: (value: File | null) => void;
6
+ } | {
7
+ multiple: true;
8
+ value: Array<File>;
9
+ onChange?: (value: Array<File>) => void;
10
+ });
11
+ export default FormFileInputProps;
@@ -0,0 +1,8 @@
1
+ import NumericInputProps from '../InputProps/NumericInputProps';
2
+ type FormNumericStepperInputProps = NumericInputProps & {
3
+ value: number | null;
4
+ onChange?: (value: number | null) => void;
5
+ debounceMs?: number;
6
+ stepperStep?: number;
7
+ };
8
+ export default FormNumericStepperInputProps;
@@ -0,0 +1,6 @@
1
+ import RadioInputProps from '../InputProps/RadioInputProps';
2
+ type FormRadioInputProps = RadioInputProps & {
3
+ value: string | null;
4
+ onChange?: (value: string | null) => void;
5
+ };
6
+ export default FormRadioInputProps;
@@ -0,0 +1,7 @@
1
+ import SelectInputProps from '../InputProps/SelectInputProps';
2
+ type FormSelectInputProps = SelectInputProps & {
3
+ value: string | number | null;
4
+ onChange?: (value: string | number | null) => void;
5
+ noEmptyOption?: boolean;
6
+ };
7
+ export default FormSelectInputProps;
@@ -0,0 +1,7 @@
1
+ import TextAreaInputProps from '../InputProps/TextAreaInputProps';
2
+ type FormTextAreaInputProps = TextAreaInputProps & {
3
+ value: string | null;
4
+ onChange?: (value: string | null) => void;
5
+ debounceMs?: number;
6
+ };
7
+ export default FormTextAreaInputProps;
@@ -0,0 +1,7 @@
1
+ import TextInputProps from '../InputProps/TextInputProps';
2
+ type FormTextInputProps = TextInputProps & {
3
+ value: string | number | null;
4
+ onChange?: (value: string | number | null) => void;
5
+ debounceMs?: number;
6
+ };
7
+ export default FormTextInputProps;
@@ -0,0 +1,4 @@
1
+ import CheckInputProps from '../InputProps/CheckInputProps';
2
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
3
+ type HookFormCheckInputProps = HookFormInputBaseProps & CheckInputProps;
4
+ export default HookFormCheckInputProps;
@@ -0,0 +1,4 @@
1
+ import DropdownPickerProps from '../InputProps/DropdownPickerProps';
2
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
3
+ type HookFormDropdownPickerProps = HookFormInputBaseProps & DropdownPickerProps;
4
+ export default HookFormDropdownPickerProps;
@@ -0,0 +1,4 @@
1
+ import FileInputProps from '../InputProps/FileInputProps';
2
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
3
+ type HookFormFileInputProps = HookFormInputBaseProps & FileInputProps;
4
+ export default HookFormFileInputProps;
@@ -0,0 +1,7 @@
1
+ import InputBaseProps from '../InputProps/InputBaseProps';
2
+ type HookFormInputBaseProps = InputBaseProps & {
3
+ formField: string;
4
+ resetsFields?: string[];
5
+ required?: boolean;
6
+ };
7
+ export default HookFormInputBaseProps;
@@ -0,0 +1,9 @@
1
+ import { FieldValues, FormState, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
+ type HookFormInputProps = {
3
+ register: UseFormRegister<FieldValues>;
4
+ formState: FormState<FieldValues>;
5
+ getValues: UseFormGetValues<FieldValues>;
6
+ setValue: UseFormSetValue<FieldValues>;
7
+ watch: UseFormWatch<FieldValues>;
8
+ };
9
+ export default HookFormInputProps;
@@ -0,0 +1,4 @@
1
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
2
+ import NumericInputProps from '../InputProps/NumericInputProps';
3
+ type HookFormNumericStepperInputProps = HookFormInputBaseProps & NumericInputProps;
4
+ export default HookFormNumericStepperInputProps;
@@ -0,0 +1,4 @@
1
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
2
+ import RadioInputProps from '../InputProps/RadioInputProps';
3
+ type HookFormRadioInputProps = HookFormInputBaseProps & RadioInputProps;
4
+ export default HookFormRadioInputProps;
@@ -0,0 +1,4 @@
1
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
2
+ import SelectInputProps from '../InputProps/SelectInputProps';
3
+ type HookFormSelectInputProps = HookFormInputBaseProps & SelectInputProps;
4
+ export default HookFormSelectInputProps;
@@ -0,0 +1,7 @@
1
+ import { FormControlProps } from 'react-bootstrap';
2
+ import TextAreaInputProps from '../InputProps/TextAreaInputProps';
3
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
4
+ type HookFormTextAreaInputProps = HookFormInputBaseProps & TextAreaInputProps & {
5
+ customFormControlProps?: Partial<FormControlProps>;
6
+ };
7
+ export default HookFormTextAreaInputProps;
@@ -0,0 +1,4 @@
1
+ import HookFormInputBaseProps from './HookFormInputBaseProps';
2
+ import TextInputProps from '../InputProps/TextInputProps';
3
+ type HookFormTextInputProps = HookFormInputBaseProps & TextInputProps;
4
+ export default HookFormTextInputProps;
@@ -0,0 +1,7 @@
1
+ import { HTMLProps } from 'react';
2
+ type ImgProps = Partial<HTMLProps<HTMLImageElement>> & Required<Pick<HTMLProps<HTMLImageElement>, 'src'>> & {
3
+ baseUrl?: string;
4
+ customToken?: string;
5
+ placeholder?: string;
6
+ };
7
+ export default ImgProps;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ type InputContainerBaseProps = {
3
+ hidden?: boolean;
4
+ children: React.ReactNode;
5
+ isInvalid?: boolean;
6
+ isForCheckInput?: boolean;
7
+ isForRadioInput?: boolean;
8
+ isForTextAreaInput?: boolean;
9
+ inputContainerClassName?: string;
10
+ className?: string;
11
+ } & {
12
+ ref?: React.LegacyRef<HTMLDivElement>;
13
+ };
14
+ type InputContainerWithLabelProps = {
15
+ withoutLabel?: false;
16
+ label: string;
17
+ };
18
+ type InputContainerWithoutLabelProps = {
19
+ withoutLabel: true;
20
+ };
21
+ type InputContainerProps = InputContainerBaseProps & ((InputContainerWithLabelProps & {
22
+ withoutLabel?: false;
23
+ }) | (InputContainerWithoutLabelProps & {
24
+ withoutLabel: true;
25
+ }));
26
+ export default InputContainerProps;
@@ -0,0 +1,5 @@
1
+ import InputBaseProps from './InputBaseProps';
2
+ type CheckInputProps = InputBaseProps & {
3
+ type?: 'switch' | 'checkbox';
4
+ };
5
+ export default CheckInputProps;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import DropdownPickerTexts from '@models/texts/DropdownPickerTexts';
3
+ import DropdownPickerOption from '@models/types/DropdownPickerOption';
4
+ import FormSelectOption from '@models/types/FormSelectOption';
5
+ import InputBaseProps from './InputBaseProps';
6
+ type DropdownPickerProps = InputBaseProps & {
7
+ items: DropdownPickerOption[];
8
+ defaultSelection: FormSelectOption | null;
9
+ selectedItemNavigateTo: (item: FormSelectOption) => string;
10
+ onSearchQueryChange: (query: string) => void;
11
+ texts: DropdownPickerTexts;
12
+ dropdownItemsNameWidth?: number;
13
+ additionalColumns?: {
14
+ key: string;
15
+ name: string;
16
+ width: number | null;
17
+ }[];
18
+ isLoading?: boolean;
19
+ isNumber?: boolean;
20
+ onSelect?: (item: DropdownPickerOption | null) => void;
21
+ CustomOnChangeComponent?: React.ReactElement;
22
+ displayIdAsName?: boolean;
23
+ };
24
+ export default DropdownPickerProps;
@@ -0,0 +1,6 @@
1
+ import InputBaseProps from './InputBaseProps';
2
+ type FileInputProps = InputBaseProps & {
3
+ accept: string[];
4
+ multiple?: boolean;
5
+ };
6
+ export default FileInputProps;
@@ -0,0 +1,15 @@
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import InputContainerProps from '../InputContainerProps';
3
+ type InputBaseProps = {
4
+ InputContainer?: ForwardRefExoticComponent<InputContainerProps>;
5
+ label?: string;
6
+ withoutLabel?: boolean;
7
+ placeholder?: string;
8
+ size?: 'sm' | 'lg';
9
+ hidden?: boolean;
10
+ disabled?: boolean;
11
+ showClearIcon?: boolean;
12
+ clearValue?: string | number;
13
+ className?: string;
14
+ };
15
+ export default InputBaseProps;
@@ -0,0 +1,6 @@
1
+ import InputBaseProps from './InputBaseProps';
2
+ type TextInputProps = InputBaseProps & {
3
+ stepperStep?: number;
4
+ step?: number | string;
5
+ };
6
+ export default TextInputProps;
@@ -0,0 +1,6 @@
1
+ import NameIdStringModel from '@models/types/NameIdStringModel';
2
+ import InputBaseProps from './InputBaseProps';
3
+ type RadioInputProps = InputBaseProps & {
4
+ options: NameIdStringModel[];
5
+ };
6
+ export default RadioInputProps;
@@ -0,0 +1,9 @@
1
+ import FormSelectOption from '../../types/FormSelectOption';
2
+ import InputBaseProps from './InputBaseProps';
3
+ type SelectInputProps = InputBaseProps & {
4
+ options: FormSelectOption[];
5
+ isNumber?: boolean;
6
+ noSortOptions?: boolean;
7
+ suffixIdToName?: boolean;
8
+ };
9
+ export default SelectInputProps;
@@ -0,0 +1,5 @@
1
+ import InputBaseProps from './InputBaseProps';
2
+ type TextAreaInputProps = InputBaseProps & {
3
+ rows?: number;
4
+ };
5
+ export default TextAreaInputProps;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import InputBaseProps from './InputBaseProps';
3
+ type TextInputProps = InputBaseProps & {
4
+ type: 'text' | 'number' | 'password' | 'date' | 'datetime-local';
5
+ list?: string;
6
+ step?: number | string;
7
+ CustomOnChangeComponent?: React.ReactElement;
8
+ noSelectOnFocus?: boolean;
9
+ };
10
+ export default TextInputProps;
@@ -0,0 +1,5 @@
1
+ type AppSearchTexts = {
2
+ searchPlaceholder: string;
3
+ amountFrom: string;
4
+ };
5
+ export default AppSearchTexts;
@@ -0,0 +1,8 @@
1
+ type AxiosTexts = {
2
+ validationError: string;
3
+ networkError: string;
4
+ unexpectedError: string;
5
+ forbiddenError: string;
6
+ permissionError: string;
7
+ };
8
+ export default AxiosTexts;
@@ -0,0 +1,7 @@
1
+ type ConfirmTexts = {
2
+ yes: string;
3
+ no: string;
4
+ cancel: string;
5
+ confirm: string;
6
+ };
7
+ export default ConfirmTexts;
@@ -0,0 +1,5 @@
1
+ type CustomSelectTexts = {
2
+ searchPlaceholder: string;
3
+ clearSelection: string;
4
+ };
5
+ export default CustomSelectTexts;
@@ -0,0 +1,5 @@
1
+ type DropdownPickerTexts = {
2
+ searchPlaceholder: string;
3
+ clearSelection: string;
4
+ };
5
+ export default DropdownPickerTexts;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ type ErrorBoundaryTexts = {
3
+ reloadButtonContent: ReactNode;
4
+ };
5
+ export default ErrorBoundaryTexts;
@@ -0,0 +1,4 @@
1
+ type FormSubmitTexts = {
2
+ storno: string;
3
+ };
4
+ export default FormSubmitTexts;
@@ -0,0 +1,5 @@
1
+ type FormValidationTexts = {
2
+ required: string;
3
+ invalidDate: string;
4
+ };
5
+ export default FormValidationTexts;
@@ -0,0 +1,6 @@
1
+ type HomeDashboardTexts = {
2
+ dashboardEdit: string;
3
+ dashboardEditDone: string;
4
+ pickWidgetToAdd: string;
5
+ };
6
+ export default HomeDashboardTexts;
@@ -0,0 +1,4 @@
1
+ type WidgetTexts = {
2
+ fallbackError: string;
3
+ };
4
+ export default WidgetTexts;
@@ -0,0 +1,8 @@
1
+ import ErrorField from './ErrorField';
2
+ type ApiErrorResult = {
3
+ message: string;
4
+ statusCode: number;
5
+ errorFields: ErrorField[];
6
+ permissions: string[];
7
+ };
8
+ export default ApiErrorResult;
@@ -0,0 +1,5 @@
1
+ import DashboardWidgetConfig from './DashboardWidgetConfig';
2
+ type DashboardConfig = {
3
+ widgets: DashboardWidgetConfig[];
4
+ };
5
+ export default DashboardConfig;
@@ -0,0 +1,9 @@
1
+ import DashboardWidgetCommonProps from '@models/prop-types/DashboardWidgetCommonProps';
2
+ import { ElementType, ReactNode } from 'react';
3
+ type DashboardWidget = {
4
+ id: number;
5
+ name: string;
6
+ title: ReactNode;
7
+ WidgetElement: ElementType<DashboardWidgetCommonProps>;
8
+ };
9
+ export default DashboardWidget;
@@ -0,0 +1,5 @@
1
+ type DashboardWidgetConfig = {
2
+ widgetId: number;
3
+ fullWidth: boolean;
4
+ };
5
+ export default DashboardWidgetConfig;
@@ -0,0 +1,7 @@
1
+ import FormSelectOption from './FormSelectOption';
2
+ type DropdownPickerOption = FormSelectOption & {
3
+ additionalColumns?: {
4
+ [key: string]: string | number | boolean;
5
+ };
6
+ };
7
+ export default DropdownPickerOption;
@@ -0,0 +1,14 @@
1
+ type EmployeeIndexModel = {
2
+ id: number;
3
+ firstName: string | null;
4
+ lastName: string | null;
5
+ fullName: string | null;
6
+ kid: string | null;
7
+ email: string | null;
8
+ phoneNumber: string | null;
9
+ profession: string | null;
10
+ department: string | null;
11
+ orgUnitId: string | null;
12
+ orgUnitName: string | null;
13
+ };
14
+ export default EmployeeIndexModel;
@@ -0,0 +1,5 @@
1
+ type ErrorField = {
2
+ name: string;
3
+ errors: string;
4
+ };
5
+ export default ErrorField;
@@ -0,0 +1,5 @@
1
+ type FormSelectOption = {
2
+ id: number | string | null;
3
+ name: string | null;
4
+ };
5
+ export default FormSelectOption;
@@ -0,0 +1,9 @@
1
+ import { FieldValues, FormState, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
+ type HookFormInputProps = {
3
+ register: UseFormRegister<FieldValues>;
4
+ formState: FormState<FieldValues>;
5
+ getValues: UseFormGetValues<FieldValues>;
6
+ setValue: UseFormSetValue<FieldValues>;
7
+ watch: UseFormWatch<FieldValues>;
8
+ };
9
+ export default HookFormInputProps;
@@ -0,0 +1,7 @@
1
+ declare enum LoginState {
2
+ LOGGING_IN = 0,
3
+ LOGGED_IN = 1,
4
+ LOGGED_OUT = 2,
5
+ LOGIN_FAILED = 3
6
+ }
7
+ export default LoginState;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ type MenuItemType = {
3
+ title: string;
4
+ tooltip?: string;
5
+ linkTo?: string;
6
+ icon?: React.ReactNode;
7
+ permissions?: string[];
8
+ disabled?: boolean;
9
+ children?: MenuItemType[];
10
+ };
11
+ export default MenuItemType;
@@ -0,0 +1,6 @@
1
+ import MenuItemType from './MenuItemType';
2
+ type MenuItemTypeExtended = Omit<MenuItemType, 'children'> & {
3
+ notPermitted?: boolean;
4
+ children?: MenuItemTypeExtended[];
5
+ };
6
+ export default MenuItemTypeExtended;
@@ -0,0 +1,5 @@
1
+ type NameIdIntModel = {
2
+ id: number;
3
+ name: string | null;
4
+ };
5
+ export default NameIdIntModel;
@@ -0,0 +1,5 @@
1
+ type NameIdIntOptionalModel = {
2
+ id: number | null;
3
+ name: string | null;
4
+ };
5
+ export default NameIdIntOptionalModel;
@@ -0,0 +1,5 @@
1
+ type NameIdStringModel = {
2
+ id: string;
3
+ name: string | null;
4
+ };
5
+ export default NameIdStringModel;
@@ -0,0 +1,5 @@
1
+ type NameIdStringOptionalModel = {
2
+ id: string | null;
3
+ name: string | null;
4
+ };
5
+ export default NameIdStringOptionalModel;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ type PhotoAction = {
3
+ label: string;
4
+ onClick: (photoId: string) => void;
5
+ icon?: React.ReactNode;
6
+ color?: 'primary' | 'success' | 'danger' | 'warning';
7
+ className?: string;
8
+ };
9
+ export default PhotoAction;
@@ -0,0 +1,7 @@
1
+ export default interface PhotoLibraryItemModel {
2
+ id: string;
3
+ smSrc: string;
4
+ lgSrc: string;
5
+ alt: string;
6
+ isDefault: boolean;
7
+ }
@@ -0,0 +1,7 @@
1
+ type PromptOptions = {
2
+ required?: boolean;
3
+ input?: 'input' | 'textarea';
4
+ type?: 'text' | 'date';
5
+ defaultValue?: string;
6
+ };
7
+ export default PromptOptions;
@@ -0,0 +1,6 @@
1
+ type SearchResultGroupKeyModel = {
2
+ category: string | null;
3
+ categoryName: string | null;
4
+ totalCount: number;
5
+ };
6
+ export default SearchResultGroupKeyModel;
@@ -0,0 +1,7 @@
1
+ import SearchResultGroupKeyModel from './SearchResultGroupKeyModel';
2
+ import SearchResultModel from './SearchResultModel';
3
+ type SearchResultGroupModel = {
4
+ key: SearchResultGroupKeyModel;
5
+ items: SearchResultModel[];
6
+ };
7
+ export default SearchResultGroupModel;