react-luminus-components 1.3.32 → 1.3.34

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 (197) hide show
  1. package/README.md +0 -6
  2. package/dist/.vite/manifest.json +60 -60
  3. package/dist/FromToDatePickerDropdownToggle-DhzBIJXw.cjs +253 -0
  4. package/dist/{FromToDatePickerDropdownToggle-DDOxJCc2.js → FromToDatePickerDropdownToggle-Dk7MFcJp.js} +2761 -2615
  5. package/dist/{PrimaryButton-B64e5vBv.js → PrimaryButton-Bbl06m-g.js} +135 -145
  6. package/dist/PrimaryButton-D33g-RWP.cjs +1 -0
  7. package/dist/{SimpleTooltip-DIqIPx0H.cjs → SimpleTooltip-Bz22xxXa.cjs} +1 -1
  8. package/dist/{SimpleTooltip-BgRjtr0d.js → SimpleTooltip-C32Faxrc.js} +1 -1
  9. package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +2 -1
  10. package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
  11. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
  12. package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +1 -0
  13. package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
  14. package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
  15. package/dist/components/Dropdown/Dropdown.d.ts +1 -1
  16. package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +2 -1
  17. package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
  18. package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
  19. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +1 -1
  20. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +5 -4
  21. package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +2 -1
  22. package/dist/components/Form/CheckInput/CheckInput.d.ts +2 -2
  23. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +2 -2
  24. package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +2 -2
  25. package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -2
  26. package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +2 -2
  27. package/dist/components/Form/TextInput/TextInput.d.ts +2 -2
  28. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +2 -2
  29. package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +2 -2
  30. package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +3 -2
  31. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +2 -2
  32. package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +1 -0
  33. package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +2 -2
  34. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +2 -2
  35. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +2 -2
  36. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +2 -2
  37. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +2 -2
  38. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +22 -23
  39. package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +2 -2
  40. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +22 -23
  41. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +22 -23
  42. package/dist/components/Layout/MessageBoard/MessageBoard.d.ts +2 -1
  43. package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +2 -2
  44. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
  45. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +2 -2
  46. package/dist/components/NewTabs/Tab/Tab.d.ts +1 -0
  47. package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
  48. package/dist/components/NewTabs/Tabs/Tabs.d.ts +2 -2
  49. package/dist/components/Tabs/Tabs.d.ts +1 -1
  50. package/dist/components/Tabs/comps/Tab/Tab.d.ts +1 -1
  51. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +1 -0
  52. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -0
  53. package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
  54. package/dist/components/common/Alert/Alert.d.ts +1 -1
  55. package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
  56. package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +2 -1
  57. package/dist/components/common/AppSearch/AppSearch.d.ts +2 -2
  58. package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +2 -2
  59. package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +3 -2
  60. package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +2 -1
  61. package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +2 -1
  62. package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
  63. package/dist/components/common/Badge/Badge.d.ts +0 -1
  64. package/dist/components/common/Card/Card.d.ts +0 -1
  65. package/dist/components/common/Collapse/Collapse.d.ts +0 -1
  66. package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
  67. package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +2 -1
  68. package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
  69. package/dist/components/common/FromToDatePicker/FromToDatePicker.d.ts +3 -2
  70. package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +2 -1
  71. package/dist/components/common/FromToDatePicker/hooks/useFromToDatePicker.d.ts +2 -1
  72. package/dist/components/common/FromToDatePicker/utils/utilsFromToDatePicker.d.ts +1 -0
  73. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +3 -3
  74. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +2 -2
  75. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +2 -2
  76. package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +2 -1
  77. package/dist/components/common/ImgApi/ImgApi.d.ts +2 -2
  78. package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +2 -2
  79. package/dist/components/common/ImgDirect/ImgDirect.d.ts +2 -2
  80. package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
  81. package/dist/components/common/Loading/Loading.d.ts +0 -1
  82. package/dist/components/common/Loading/LoadingBlock.d.ts +1 -0
  83. package/dist/components/common/MonthPicker/MonthPicker.d.ts +1 -1
  84. package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +2 -2
  85. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +2 -2
  86. package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
  87. package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
  88. package/dist/components/common/Timeline/Timeline.d.ts +2 -2
  89. package/dist/components/common/Typography/Typography.d.ts +0 -1
  90. package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
  91. package/dist/components/common/Widget/WidgetCard.d.ts +1 -0
  92. package/dist/components/common/Widget/WidgetWrapper.d.ts +1 -0
  93. package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
  94. package/dist/contexts/auth/AuthContext.d.ts +3 -3
  95. package/dist/contexts/auth/AuthProvider.d.ts +2 -2
  96. package/dist/contexts/confirm/ConfirmContext.d.ts +1 -2
  97. package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
  98. package/dist/contexts/delegation/DelegationContext.d.ts +3 -2
  99. package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
  100. package/dist/contexts/loading/LoadingContext.d.ts +1 -2
  101. package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
  102. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +3 -16
  103. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +4 -17
  104. package/dist/contexts/prompt/PromptContext.d.ts +3 -3
  105. package/dist/contexts/prompt/PromptProvider.d.ts +1 -0
  106. package/dist/contexts/user/UserContext.d.ts +4 -4
  107. package/dist/contexts/user/UserProvider.d.ts +0 -1
  108. package/dist/contexts.cjs.js +1 -1
  109. package/dist/contexts.d.ts +1 -257
  110. package/dist/contexts.es.js +129 -158
  111. package/dist/{dateUtils-C8trxO28.js → dateUtils-B9-rf1Eh.js} +11 -21
  112. package/dist/{dateUtils-ChS-y8JY.cjs → dateUtils-Bs39Qj7k.cjs} +1 -1
  113. package/dist/hooks/useAxios/useAxios.d.ts +2 -1
  114. package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
  115. package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
  116. package/dist/hooks/useGetApiData/useGetApiData.d.ts +3 -3
  117. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +1 -2
  118. package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
  119. package/dist/hooks/usePrompt/usePrompt.d.ts +2 -1
  120. package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +2 -1
  121. package/dist/hooks.cjs.js +1 -1
  122. package/dist/hooks.d.ts +1 -162
  123. package/dist/hooks.es.js +22 -22
  124. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +2 -2
  125. package/dist/layout/MainContainer/MainContainer.d.ts +2 -2
  126. package/dist/layout/PageTitle/PageTitle.d.ts +1 -0
  127. package/dist/layout/SideContentBar/SideContentBar.d.ts +1 -0
  128. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -2
  129. package/dist/layout/SideMenu/SideMenu.d.ts +2 -2
  130. package/dist/layout/TopBar/TopBar.d.ts +0 -1
  131. package/dist/layout.cjs.js +1 -1
  132. package/dist/layout.d.ts +1 -56
  133. package/dist/layout.es.js +92 -95
  134. package/dist/main.cjs.js +1 -1
  135. package/dist/main.d.ts +1 -1
  136. package/dist/main.es.js +1149 -1171
  137. package/dist/models/luminus-context-types/ILocalizationContext.d.ts +1 -0
  138. package/dist/models/prop-types/ContainerProps.d.ts +1 -0
  139. package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +1 -0
  140. package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +2 -1
  141. package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +2 -1
  142. package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +2 -1
  143. package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +2 -1
  144. package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +2 -1
  145. package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +2 -1
  146. package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +2 -1
  147. package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +3 -2
  148. package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +3 -2
  149. package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +3 -2
  150. package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +2 -1
  151. package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +2 -1
  152. package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +3 -2
  153. package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +3 -2
  154. package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +3 -2
  155. package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +3 -2
  156. package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +3 -2
  157. package/dist/models/prop-types/ImgProps.d.ts +1 -0
  158. package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
  159. package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +2 -1
  160. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +5 -5
  161. package/dist/models/prop-types/InputProps/FileInputProps.d.ts +2 -1
  162. package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -1
  163. package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +2 -1
  164. package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +3 -2
  165. package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +3 -2
  166. package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +2 -1
  167. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +2 -2
  168. package/dist/models/texts/ComponentsContextTexts.d.ts +21 -2
  169. package/dist/models/texts/ErrorBoundaryTexts.d.ts +1 -0
  170. package/dist/models/types/ApiErrorResult.d.ts +2 -1
  171. package/dist/models/types/DashboardConfig.d.ts +2 -1
  172. package/dist/models/types/DashboardWidget.d.ts +2 -1
  173. package/dist/models/types/DropdownPickerOption.d.ts +2 -1
  174. package/dist/models/types/HookFormInputProps.d.ts +2 -1
  175. package/dist/models/types/MenuItemType.d.ts +0 -1
  176. package/dist/models/types/MenuItemTypeExtended.d.ts +2 -1
  177. package/dist/models/types/PhotoAction.d.ts +0 -1
  178. package/dist/models/types/SearchResultGroupModel.d.ts +3 -2
  179. package/dist/models/types/SearchResultModel.d.ts +2 -1
  180. package/dist/models/types/TimelineStep.d.ts +2 -2
  181. package/dist/models/types/UserLoginState.d.ts +3 -2
  182. package/dist/models/types/UserModel.d.ts +2 -1
  183. package/dist/{searchUtils-C38WM_G8.js → searchUtils-BCxOKHVq.js} +1 -1
  184. package/dist/{searchUtils-BdYnxcy0.cjs → searchUtils-CxNriHg_.cjs} +1 -1
  185. package/dist/{useLocalStorageState-asgEpnUg.cjs → useLocalStorageState-3ebV2Hf5.cjs} +1 -1
  186. package/dist/{useLocalStorageState-CFe9QRz0.js → useLocalStorageState-Cs1tOpr1.js} +3 -3
  187. package/dist/{usePermissions-Ce0AAKj1.cjs → usePermissions-BZPN1OT2.cjs} +1 -1
  188. package/dist/{usePermissions-55of2QBH.js → usePermissions-CfJgVLTi.js} +3 -3
  189. package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +2 -1
  190. package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
  191. package/dist/utils/hookForm/hookFormUtils.d.ts +2 -1
  192. package/dist/utils.cjs.js +1 -1
  193. package/dist/utils.d.ts +1 -153
  194. package/dist/utils.es.js +7 -7
  195. package/package.json +2 -2
  196. package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +0 -253
  197. package/dist/PrimaryButton-BnrFH2PB.cjs +0 -1
@@ -1,4 +1,5 @@
1
1
  import { Locale } from 'date-fns';
2
+
2
3
  interface ILocalizationContext {
3
4
  language: string;
4
5
  setLanguage: (lng: string) => void;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  type ContainerProps = {
3
4
  title?: string | ReactNode;
4
5
  children?: ReactNode;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  type DashboardWidgetCommonProps = {
3
4
  title: ReactNode;
4
5
  };
@@ -1,4 +1,5 @@
1
- import CheckInputProps from '../InputProps/CheckInputProps';
1
+ import { default as CheckInputProps } from '../InputProps/CheckInputProps';
2
+
2
3
  type FormCheckInputProps = CheckInputProps & {
3
4
  value: boolean;
4
5
  onChange?: (value: boolean) => void;
@@ -1,4 +1,5 @@
1
- import FileInputProps from '../InputProps/FileInputProps';
1
+ import { default as FileInputProps } from '../InputProps/FileInputProps';
2
+
2
3
  type FormFileInputProps = FileInputProps & ({
3
4
  multiple?: false;
4
5
  value: File | null;
@@ -1,4 +1,5 @@
1
- import NumericInputProps from '../InputProps/NumericInputProps';
1
+ import { default as NumericInputProps } from '../InputProps/NumericInputProps';
2
+
2
3
  type FormNumericStepperInputProps = NumericInputProps & {
3
4
  value: number | null;
4
5
  onChange?: (value: number | null) => void;
@@ -1,4 +1,5 @@
1
- import RadioInputProps from '../InputProps/RadioInputProps';
1
+ import { default as RadioInputProps } from '../InputProps/RadioInputProps';
2
+
2
3
  type FormRadioInputProps = RadioInputProps & {
3
4
  value: string | null;
4
5
  onChange?: (value: string | null) => void;
@@ -1,4 +1,5 @@
1
- import SelectInputProps from '../InputProps/SelectInputProps';
1
+ import { default as SelectInputProps } from '../InputProps/SelectInputProps';
2
+
2
3
  type FormSelectInputProps = SelectInputProps & {
3
4
  value: string | number | null;
4
5
  onChange?: (value: string | number | null) => void;
@@ -1,4 +1,5 @@
1
- import TextAreaInputProps from '../InputProps/TextAreaInputProps';
1
+ import { default as TextAreaInputProps } from '../InputProps/TextAreaInputProps';
2
+
2
3
  type FormTextAreaInputProps = TextAreaInputProps & {
3
4
  value: string | null;
4
5
  onChange?: (value: string | null) => void;
@@ -1,4 +1,5 @@
1
- import TextInputProps from '../InputProps/TextInputProps';
1
+ import { default as TextInputProps } from '../InputProps/TextInputProps';
2
+
2
3
  type FormTextInputProps = TextInputProps & {
3
4
  value: string | number | null;
4
5
  onChange?: (value: string | number | null) => void;
@@ -1,4 +1,5 @@
1
- import CheckInputProps from '../InputProps/CheckInputProps';
2
- import HookFormInputBaseProps from './HookFormInputBaseProps';
1
+ import { default as CheckInputProps } from '../InputProps/CheckInputProps';
2
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
3
+
3
4
  type HookFormCheckInputProps = HookFormInputBaseProps & CheckInputProps;
4
5
  export default HookFormCheckInputProps;
@@ -1,4 +1,5 @@
1
- import DropdownPickerProps from '../InputProps/DropdownPickerProps';
2
- import HookFormInputBaseProps from './HookFormInputBaseProps';
1
+ import { default as DropdownPickerProps } from '../InputProps/DropdownPickerProps';
2
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
3
+
3
4
  type HookFormDropdownPickerProps = HookFormInputBaseProps & DropdownPickerProps;
4
5
  export default HookFormDropdownPickerProps;
@@ -1,4 +1,5 @@
1
- import FileInputProps from '../InputProps/FileInputProps';
2
- import HookFormInputBaseProps from './HookFormInputBaseProps';
1
+ import { default as FileInputProps } from '../InputProps/FileInputProps';
2
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
3
+
3
4
  type HookFormFileInputProps = HookFormInputBaseProps & FileInputProps;
4
5
  export default HookFormFileInputProps;
@@ -1,4 +1,5 @@
1
- import InputBaseProps from '../InputProps/InputBaseProps';
1
+ import { default as InputBaseProps } from '../InputProps/InputBaseProps';
2
+
2
3
  type HookFormInputBaseProps = InputBaseProps & {
3
4
  formField: string;
4
5
  resetsFields?: string[];
@@ -1,4 +1,5 @@
1
- import { FieldValues, FormState, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from 'react-hook-form';
1
+ import { FieldValues, FormState, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from '../../../../node_modules/react-hook-form';
2
+
2
3
  type HookFormInputProps = {
3
4
  register: UseFormRegister<FieldValues>;
4
5
  formState: FormState<FieldValues>;
@@ -1,4 +1,5 @@
1
- import HookFormInputBaseProps from './HookFormInputBaseProps';
2
- import NumericInputProps from '../InputProps/NumericInputProps';
1
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
2
+ import { default as NumericInputProps } from '../InputProps/NumericInputProps';
3
+
3
4
  type HookFormNumericStepperInputProps = HookFormInputBaseProps & NumericInputProps;
4
5
  export default HookFormNumericStepperInputProps;
@@ -1,4 +1,5 @@
1
- import HookFormInputBaseProps from './HookFormInputBaseProps';
2
- import RadioInputProps from '../InputProps/RadioInputProps';
1
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
2
+ import { default as RadioInputProps } from '../InputProps/RadioInputProps';
3
+
3
4
  type HookFormRadioInputProps = HookFormInputBaseProps & RadioInputProps;
4
5
  export default HookFormRadioInputProps;
@@ -1,4 +1,5 @@
1
- import HookFormInputBaseProps from './HookFormInputBaseProps';
2
- import SelectInputProps from '../InputProps/SelectInputProps';
1
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
2
+ import { default as SelectInputProps } from '../InputProps/SelectInputProps';
3
+
3
4
  type HookFormSelectInputProps = HookFormInputBaseProps & SelectInputProps;
4
5
  export default HookFormSelectInputProps;
@@ -1,6 +1,7 @@
1
1
  import { FormControlProps } from 'react-bootstrap';
2
- import TextAreaInputProps from '../InputProps/TextAreaInputProps';
3
- import HookFormInputBaseProps from './HookFormInputBaseProps';
2
+ import { default as TextAreaInputProps } from '../InputProps/TextAreaInputProps';
3
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
4
+
4
5
  type HookFormTextAreaInputProps = HookFormInputBaseProps & TextAreaInputProps & {
5
6
  customFormControlProps?: Partial<FormControlProps>;
6
7
  };
@@ -1,4 +1,5 @@
1
- import HookFormInputBaseProps from './HookFormInputBaseProps';
2
- import TextInputProps from '../InputProps/TextInputProps';
1
+ import { default as HookFormInputBaseProps } from './HookFormInputBaseProps';
2
+ import { default as TextInputProps } from '../InputProps/TextInputProps';
3
+
3
4
  type HookFormTextInputProps = HookFormInputBaseProps & TextInputProps;
4
5
  export default HookFormTextInputProps;
@@ -1,4 +1,5 @@
1
1
  import { HTMLProps } from 'react';
2
+
2
3
  type ImgProps = Partial<HTMLProps<HTMLImageElement>> & Required<Pick<HTMLProps<HTMLImageElement>, 'src'>> & {
3
4
  baseUrl?: string;
4
5
  customToken?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type InputContainerBaseProps = {
3
2
  hidden?: boolean;
4
3
  children: React.ReactNode;
@@ -1,4 +1,5 @@
1
- import InputBaseProps from './InputBaseProps';
1
+ import { default as InputBaseProps } from './InputBaseProps';
2
+
2
3
  type CheckInputProps = InputBaseProps & {
3
4
  type?: 'switch' | 'checkbox';
4
5
  };
@@ -1,8 +1,8 @@
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';
1
+ import { default as DropdownPickerTexts } from '../../texts/DropdownPickerTexts';
2
+ import { default as DropdownPickerOption } from '../../types/DropdownPickerOption';
3
+ import { default as FormSelectOption } from '../../types/FormSelectOption';
4
+ import { default as InputBaseProps } from './InputBaseProps';
5
+
6
6
  type DropdownPickerProps = InputBaseProps & {
7
7
  items: DropdownPickerOption[];
8
8
  defaultSelection: FormSelectOption | null;
@@ -1,4 +1,5 @@
1
- import InputBaseProps from './InputBaseProps';
1
+ import { default as InputBaseProps } from './InputBaseProps';
2
+
2
3
  type FileInputProps = InputBaseProps & {
3
4
  accept: string[];
4
5
  multiple?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { ForwardRefExoticComponent } from 'react';
2
- import InputContainerProps from '../InputContainerProps';
2
+ import { default as InputContainerProps } from '../InputContainerProps';
3
+
3
4
  type InputBaseProps = {
4
5
  InputContainer?: ForwardRefExoticComponent<InputContainerProps>;
5
6
  label?: string;
@@ -1,4 +1,5 @@
1
- import InputBaseProps from './InputBaseProps';
1
+ import { default as InputBaseProps } from './InputBaseProps';
2
+
2
3
  type TextInputProps = InputBaseProps & {
3
4
  stepperStep?: number;
4
5
  step?: number | string;
@@ -1,5 +1,6 @@
1
- import NameIdStringModel from '@models/types/NameIdStringModel';
2
- import InputBaseProps from './InputBaseProps';
1
+ import { default as NameIdStringModel } from '../../types/NameIdStringModel';
2
+ import { default as InputBaseProps } from './InputBaseProps';
3
+
3
4
  type RadioInputProps = InputBaseProps & {
4
5
  options: NameIdStringModel[];
5
6
  };
@@ -1,5 +1,6 @@
1
- import FormSelectOption from '../../types/FormSelectOption';
2
- import InputBaseProps from './InputBaseProps';
1
+ import { default as FormSelectOption } from '../../types/FormSelectOption';
2
+ import { default as InputBaseProps } from './InputBaseProps';
3
+
3
4
  type SelectInputProps = InputBaseProps & {
4
5
  options: FormSelectOption[];
5
6
  isNumber?: boolean;
@@ -1,4 +1,5 @@
1
- import InputBaseProps from './InputBaseProps';
1
+ import { default as InputBaseProps } from './InputBaseProps';
2
+
2
3
  type TextAreaInputProps = InputBaseProps & {
3
4
  rows?: number;
4
5
  };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import InputBaseProps from './InputBaseProps';
1
+ import { default as InputBaseProps } from './InputBaseProps';
2
+
3
3
  type TextInputProps = InputBaseProps & {
4
4
  type: 'text' | 'number' | 'password' | 'date' | 'datetime-local';
5
5
  list?: string;
@@ -1,6 +1,25 @@
1
- import DateTexts from './DateTexts';
2
- import MessageBoardTexts from './MessageBoardTexts';
1
+ import { default as AppSearchTexts } from './AppSearchTexts';
2
+ import { default as AxiosTexts } from './AxiosTexts';
3
+ import { default as ConfirmTexts } from './ConfirmTexts';
4
+ import { default as CustomSelectTexts } from './CustomSelectTexts';
5
+ import { default as DateTexts } from './DateTexts';
6
+ import { default as ErrorBoundaryTexts } from './ErrorBoundaryTexts';
7
+ import { default as FormSubmitTexts } from './FormSubmitTexts';
8
+ import { default as FormValidationTexts } from './FormValidationTexts';
9
+ import { default as HomeDashboardTexts } from './HomeDashboardTexts';
10
+ import { default as MessageBoardTexts } from './MessageBoardTexts';
11
+ import { default as WidgetTexts } from './WidgetTexts';
12
+
3
13
  type ComponentsContextTexts = {
14
+ axios: AxiosTexts;
15
+ confirm: ConfirmTexts;
16
+ formValidation: FormValidationTexts;
17
+ homeDashboard: HomeDashboardTexts;
18
+ formSubmit: FormSubmitTexts;
19
+ appSearch: AppSearchTexts;
20
+ customSelect: CustomSelectTexts;
21
+ errorBoundary: ErrorBoundaryTexts;
22
+ widget: WidgetTexts;
4
23
  messageBoard: MessageBoardTexts;
5
24
  date: DateTexts;
6
25
  };
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  type ErrorBoundaryTexts = {
3
4
  reloadButtonContent: ReactNode;
4
5
  };
@@ -1,4 +1,5 @@
1
- import ErrorField from './ErrorField';
1
+ import { default as ErrorField } from './ErrorField';
2
+
2
3
  type ApiErrorResult = {
3
4
  message: string;
4
5
  statusCode: number;
@@ -1,4 +1,5 @@
1
- import DashboardWidgetConfig from './DashboardWidgetConfig';
1
+ import { default as DashboardWidgetConfig } from './DashboardWidgetConfig';
2
+
2
3
  type DashboardConfig = {
3
4
  widgets: DashboardWidgetConfig[];
4
5
  };
@@ -1,5 +1,6 @@
1
- import DashboardWidgetCommonProps from '@models/prop-types/DashboardWidgetCommonProps';
1
+ import { default as DashboardWidgetCommonProps } from '../prop-types/DashboardWidgetCommonProps';
2
2
  import { ElementType, ReactNode } from 'react';
3
+
3
4
  type DashboardWidget = {
4
5
  id: number;
5
6
  name: string;
@@ -1,4 +1,5 @@
1
- import FormSelectOption from './FormSelectOption';
1
+ import { default as FormSelectOption } from './FormSelectOption';
2
+
2
3
  type DropdownPickerOption = FormSelectOption & {
3
4
  additionalColumns?: {
4
5
  [key: string]: string | number | boolean;
@@ -1,4 +1,5 @@
1
- import { FieldValues, FormState, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from 'react-hook-form';
1
+ import { FieldValues, FormState, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from '../../../node_modules/react-hook-form';
2
+
2
3
  type HookFormInputProps = {
3
4
  register: UseFormRegister<FieldValues>;
4
5
  formState: FormState<FieldValues>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type MenuItemType = {
3
2
  title: string;
4
3
  tooltip?: string;
@@ -1,4 +1,5 @@
1
- import MenuItemType from './MenuItemType';
1
+ import { default as MenuItemType } from './MenuItemType';
2
+
2
3
  type MenuItemTypeExtended = Omit<MenuItemType, 'children'> & {
3
4
  notPermitted?: boolean;
4
5
  children?: MenuItemTypeExtended[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type PhotoAction = {
3
2
  label: string;
4
3
  onClick: (photoId: string) => void;
@@ -1,5 +1,6 @@
1
- import SearchResultGroupKeyModel from './SearchResultGroupKeyModel';
2
- import SearchResultModel from './SearchResultModel';
1
+ import { default as SearchResultGroupKeyModel } from './SearchResultGroupKeyModel';
2
+ import { default as SearchResultModel } from './SearchResultModel';
3
+
3
4
  type SearchResultGroupModel = {
4
5
  key: SearchResultGroupKeyModel;
5
6
  items: SearchResultModel[];
@@ -1,4 +1,5 @@
1
- import SearchResultGroupKeyModel from './SearchResultGroupKeyModel';
1
+ import { default as SearchResultGroupKeyModel } from './SearchResultGroupKeyModel';
2
+
2
3
  type SearchResultModel = {
3
4
  searchKey: string | null;
4
5
  name: string | null;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import NameIdIntModel from './NameIdIntModel';
1
+ import { default as NameIdIntModel } from './NameIdIntModel';
3
2
  import { TimelineStepState } from './TimelineStepState';
3
+
4
4
  export default interface TimelineStep {
5
5
  date?: Date;
6
6
  person?: NameIdIntModel;
@@ -1,5 +1,6 @@
1
- import LoginState from './LoginState';
2
- import UserModel from './UserModel';
1
+ import { default as LoginState } from './LoginState';
2
+ import { default as UserModel } from './UserModel';
3
+
3
4
  type UserLoginState = {
4
5
  state: LoginState;
5
6
  user: UserModel | null;
@@ -1,4 +1,5 @@
1
- import NameIdStringModel from './NameIdStringModel';
1
+ import { default as NameIdStringModel } from './NameIdStringModel';
2
+
2
3
  type UserModel = {
3
4
  personalNumber: number;
4
5
  kid: string | null;
@@ -1,4 +1,4 @@
1
- import { aR as e } from "./FromToDatePickerDropdownToggle-DDOxJCc2.js";
1
+ import { aR as e } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
2
2
  const n = (r, t) => t ? r ? e(r).toLowerCase().includes(e(t.toLowerCase())) : !1 : !0, i = (r, t) => t ? r ? e(r).toLowerCase().startsWith(e(t.toLowerCase())) : !1 : !0, o = (r, t) => t ? t.startsWith("*") ? n(r, t.substring(1)) : i(r, t) : !0;
3
3
  export {
4
4
  n as a,
@@ -1 +1 @@
1
- "use strict";const e=require("./FromToDatePickerDropdownToggle-BPfviPUU.cjs"),i=(r,t)=>t?r?e.latinize(r).toLowerCase().includes(e.latinize(t.toLowerCase())):!1:!0,n=(r,t)=>t?r?e.latinize(r).toLowerCase().startsWith(e.latinize(t.toLowerCase())):!1:!0,a=(r,t)=>t?t.startsWith("*")?i(r,t.substring(1)):n(r,t):!0;exports.stringContains=i;exports.stringSearchWithin=a;exports.stringStartsWith=n;
1
+ "use strict";const e=require("./FromToDatePickerDropdownToggle-DhzBIJXw.cjs"),i=(r,t)=>t?r?e.latinize(r).toLowerCase().includes(e.latinize(t.toLowerCase())):!1:!0,n=(r,t)=>t?r?e.latinize(r).toLowerCase().startsWith(e.latinize(t.toLowerCase())):!1:!0,a=(r,t)=>t?t.startsWith("*")?i(r,t.substring(1)):n(r,t):!0;exports.stringContains=i;exports.stringSearchWithin=a;exports.stringStartsWith=n;
@@ -1 +1 @@
1
- "use strict";const n=require("react"),S=require("./FromToDatePickerDropdownToggle-BPfviPUU.cjs");require("@azure/msal-react");require("@azure/msal-browser");require("zod");require("react-hook-form");require("react-router-dom");const D=()=>{const{isShown:t,text:s,showPrompt:r,hidePrompt:e,resolveRef:o,setOptions:a}=n.useContext(S.PromptContext),l=n.useCallback(c=>{e(),o.current(c)},[e,o]),C=n.useCallback(async(c,u)=>(a(i=>({...i,...u})),r(c),new Promise(i=>{o.current=i})),[o,a,r]);return{isShown:t,text:s,prompt:C,onFinish:l}};let b;const P=()=>{const{show:t,text:s,showConfirm:r,hideConfirm:e}=n.useContext(S.ConfirmContext),o=()=>{e()};return{confirm:async c=>(r(c),new Promise(u=>{b=u})),onConfirm:()=>{o(),b(!0)},onCancel:()=>{o(),b(!1)},show:t,text:s}},f={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},q=(t,{loadOnInit:s=f.loadOnInit,enabled:r=f.enabled,silent:e=f.silent,nullStateBeforeLoad:o=f.nullStateBeforeLoad,nullStateOnFail:a=f.nullStateOnFail,customApiUrl:l,customBearerToken:C}=f)=>{const c=S.useAxios({silent:e,customToken:C,differentBaseUrl:l}),{startLoading:u,stopLoading:i}=n.useContext(S.LoadingContext),x=n.useRef(0),[h,m]=n.useState(null),g=n.useCallback(async(d,w)=>{if(r!==!1){!e&&u(`loadData-${t}-${w}`),o&&m(null);try{const p=await c.get(t,{signal:d});m(p.data)}catch(p){throw a&&m(null),p}finally{!e&&i(`loadData-${t}-${w}`)}}},[r,e,u,t,o,c,a,i]);return n.useEffect(()=>{if(s===!1)return;const d=new AbortController;return g(d.signal,++x.current),()=>{d.abort()}},[g,s]),{data:h,setData:m,reloadData:g}},L=(t,s)=>{const r=n.useCallback(()=>{const l=localStorage.getItem(t);return l?JSON.parse(l):s},[s,t]),[e,o]=n.useState(r);n.useEffect(()=>{localStorage.setItem(t,JSON.stringify(e))},[t,e]);const a=n.useCallback(()=>{o(r)},[r]);return[e,o,a]};exports.useConfirm=P;exports.useGetApiData=q;exports.useLocalStorageState=L;exports.usePrompt=D;
1
+ "use strict";const n=require("react"),S=require("./FromToDatePickerDropdownToggle-DhzBIJXw.cjs");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("zod");require("react-hook-form");const D=()=>{const{isShown:t,text:s,showPrompt:r,hidePrompt:e,resolveRef:o,setOptions:a}=n.useContext(S.PromptContext),l=n.useCallback(c=>{e(),o.current(c)},[e,o]),C=n.useCallback(async(c,u)=>(a(i=>({...i,...u})),r(c),new Promise(i=>{o.current=i})),[o,a,r]);return{isShown:t,text:s,prompt:C,onFinish:l}};let b;const P=()=>{const{show:t,text:s,showConfirm:r,hideConfirm:e}=n.useContext(S.ConfirmContext),o=()=>{e()};return{confirm:async c=>(r(c),new Promise(u=>{b=u})),onConfirm:()=>{o(),b(!0)},onCancel:()=>{o(),b(!1)},show:t,text:s}},f={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},q=(t,{loadOnInit:s=f.loadOnInit,enabled:r=f.enabled,silent:e=f.silent,nullStateBeforeLoad:o=f.nullStateBeforeLoad,nullStateOnFail:a=f.nullStateOnFail,customApiUrl:l,customBearerToken:C}=f)=>{const c=S.useAxios({silent:e,customToken:C,differentBaseUrl:l}),{startLoading:u,stopLoading:i}=n.useContext(S.LoadingContext),x=n.useRef(0),[h,m]=n.useState(null),g=n.useCallback(async(d,w)=>{if(r!==!1){!e&&u(`loadData-${t}-${w}`),o&&m(null);try{const p=await c.get(t,{signal:d});m(p.data)}catch(p){throw a&&m(null),p}finally{!e&&i(`loadData-${t}-${w}`)}}},[r,e,u,t,o,c,a,i]);return n.useEffect(()=>{if(s===!1)return;const d=new AbortController;return g(d.signal,++x.current),()=>{d.abort()}},[g,s]),{data:h,setData:m,reloadData:g}},L=(t,s)=>{const r=n.useCallback(()=>{const l=localStorage.getItem(t);return l?JSON.parse(l):s},[s,t]),[e,o]=n.useState(r);n.useEffect(()=>{localStorage.setItem(t,JSON.stringify(e))},[t,e]);const a=n.useCallback(()=>{o(r)},[r]);return[e,o,a]};exports.useConfirm=P;exports.useGetApiData=q;exports.useLocalStorageState=L;exports.usePrompt=D;
@@ -1,10 +1,10 @@
1
1
  import { useContext as h, useCallback as f, useRef as P, useState as x, useEffect as b } from "react";
2
- import { am as I, al as L, a4 as $, ao as v } from "./FromToDatePickerDropdownToggle-DDOxJCc2.js";
3
- import "@azure/msal-react";
2
+ import { am as I, al as L, a4 as $, ao as v } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
3
+ import "react-router-dom";
4
4
  import "@azure/msal-browser";
5
+ import "@azure/msal-react";
5
6
  import "zod";
6
7
  import "react-hook-form";
7
- import "react-router-dom";
8
8
  const E = () => {
9
9
  const { isShown: t, text: a, showPrompt: n, hidePrompt: o, resolveRef: e, setOptions: r } = h(I), l = f((s) => {
10
10
  o(), e.current(s);
@@ -1 +1 @@
1
- "use strict";const r=require("react"),n=require("./FromToDatePickerDropdownToggle-BPfviPUU.cjs");require("@azure/msal-react");require("@azure/msal-browser");require("zod");require("react-hook-form");require("react-router-dom");const t=()=>{const{user:e}=r.useContext(n.UserContext);return{checkUserHasPermissions:r.useCallback(i=>i.every(o=>{var s;return(s=e==null?void 0:e.permissions)==null?void 0:s.includes(o)}),[e])}};exports.usePermissions=t;
1
+ "use strict";const r=require("react"),n=require("./FromToDatePickerDropdownToggle-DhzBIJXw.cjs");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("zod");require("react-hook-form");const t=()=>{const{user:e}=r.useContext(n.UserContext);return{checkUserHasPermissions:r.useCallback(i=>i.every(o=>{var s;return(s=e==null?void 0:e.permissions)==null?void 0:s.includes(o)}),[e])}};exports.usePermissions=t;
@@ -1,10 +1,10 @@
1
1
  import { useContext as t, useCallback as i } from "react";
2
- import { af as m } from "./FromToDatePickerDropdownToggle-DDOxJCc2.js";
3
- import "@azure/msal-react";
2
+ import { af as m } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
3
+ import "react-router-dom";
4
4
  import "@azure/msal-browser";
5
+ import "@azure/msal-react";
5
6
  import "zod";
6
7
  import "react-hook-form";
7
- import "react-router-dom";
8
8
  const x = () => {
9
9
  const { user: s } = t(m);
10
10
  return { checkUserHasPermissions: i((e) => e.every((o) => {
@@ -1,4 +1,5 @@
1
- import { ErrorField } from '@models/index';
1
+ import { ErrorField } from '../../models/index';
2
+
2
3
  export declare const extractErrorsFromResponse: (error: any) => ErrorField[];
3
4
  export declare const hookFormSetServerErrors: (formMethods: any, error: any) => void;
4
5
  export declare const extractPermissionsFromResponse: (error: any) => string[] | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const valueTooltip: ({ cell: { value } }: any) => import("react").JSX.Element;
3
2
  /**
4
3
  * Formats numbers to czech format separating numbers by thousands etc..
@@ -1,3 +1,4 @@
1
- import { UseFormReturn } from 'react-hook-form';
1
+ import { UseFormReturn } from '../../../node_modules/react-hook-form';
2
+
2
3
  export declare function hookFormSetNull(formMethods: UseFormReturn<any>, formField: string): void;
3
4
  export declare function hookFormSetNulls(formMethods: UseFormReturn<any>, formField: string[]): void;
package/dist/utils.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./FromToDatePickerDropdownToggle-BPfviPUU.cjs"),r=require("./dateUtils-ChS-y8JY.cjs"),c=require("./searchUtils-BdYnxcy0.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("zod");require("react-hook-form");require("react-router-dom");const h=require("./SimpleTooltip-DIqIPx0H.cjs");function u(t,s){t.setValue(s,null)}function S(t,s){s.forEach(o=>{u(t,o)})}const d=(t,s)=>{let o=!1,n=t;t[0]==="#"&&(n=t.slice(1),o=!0);let e=parseInt(n.substring(0,2),16),a=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);e+=s,a+=s,l+=s,e>255?e=255:e<0&&(e=0),a>255?a=255:a<0&&(a=0),l>255?l=255:l<0&&(l=0);const m=e.toString(16).length===1?"0"+e.toString(16):e.toString(16),g=a.toString(16).length===1?"0"+a.toString(16):a.toString(16),f=l.toString(16).length===1?"0"+l.toString(16):l.toString(16);return(o?"#":"")+m+g+f},D=t=>{const s=t.slice(3),o=[];for(let e=0;e<s.length;e+=2)o.push(s.slice(e,e+2));return`#${o.reverse().join("")}`},p=({cell:{value:t}})=>i.jsxRuntimeExports.jsx(h.SimpleTooltip,{text:t,placement:"bottom",children:i.jsxRuntimeExports.jsx("div",{className:"w-100 text-truncate",children:t})}),y=({cell:{value:t}})=>i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:t==null?void 0:t.toLocaleString("cs-CZ")}),x=({cell:{value:t}})=>{const s=r.format(new Date(t),"dd.MM.yyyy");return i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:t?s:""})};function O(t,s,o){const n=URL.createObjectURL(t),e=document.createElement("a");e.href=n,e.setAttribute("download",s),e.setAttribute("style","display: none"),o&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(n)}exports.extractErrorsFromResponse=i.extractErrorsFromResponse;exports.extractPermissionsFromResponse=i.extractPermissionsFromResponse;exports.fixNameIdNulls=i.fixNameIdNulls;exports.formatFileSize=i.formatFileSize;exports.hasOnlyNullValues=i.hasOnlyNullValues;exports.hookFormSetServerErrors=i.hookFormSetServerErrors;exports.isPrimitive=i.isPrimitive;exports.joinStrings=i.joinStrings;exports.replaceNullValuesOnlyObjectsWithNulls=i.replaceNullValuesOnlyObjectsWithNulls;exports.shortenText=i.shortenText;exports.truncateText=i.truncateText;exports.urlfyArray=i.urlfyArray;exports.buildEmployeeNameString=r.buildEmployeeNameString;exports.buildOrgUnitString=r.buildOrgUnitString;exports.buildVehicleNameString=r.buildVehicleNameString;exports.capitalizeFirstLetter=r.capitalizeFirstLetter;exports.compareDate=r.compareDate;exports.compareDateTime=r.compareDateTime;exports.formatDate=r.formatDate;exports.formatDateTime=r.formatDateTime;exports.getDateString=r.getDateString;exports.getDaysDifference=r.getDaysDifference;exports.getFirstDayOfMonth=r.getFirstDayOfMonth;exports.getFirstDayOfOffsetMonth=r.getFirstDayOfOffsetMonth;exports.getFirstDayOfYear=r.getFirstDayOfYear;exports.getLastDayOfMonth=r.getLastDayOfMonth;exports.getLastDayOfOffsetMonth=r.getLastDayOfOffsetMonth;exports.getLastDayOfYear=r.getLastDayOfYear;exports.isISODate=r.isISODate;exports.isValidDate=r.isValidDate;exports.msToStartOfNextDay=r.msToStartOfNextDay;exports.trimIsoDate=r.trimIsoDate;exports.stringContains=c.stringContains;exports.stringSearchWithin=c.stringSearchWithin;exports.stringStartsWith=c.stringStartsWith;exports.adjustBrightness=d;exports.dateValueFormat=x;exports.hookFormSetNull=u;exports.hookFormSetNulls=S;exports.numFormat=y;exports.saveFile=O;exports.valueTooltip=p;exports.vclToHex=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./FromToDatePickerDropdownToggle-DhzBIJXw.cjs"),r=require("./dateUtils-Bs39Qj7k.cjs"),c=require("./searchUtils-CxNriHg_.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("zod");require("react-router-dom");require("react-hook-form");const h=require("./SimpleTooltip-Bz22xxXa.cjs");function u(t,s){t.setValue(s,null)}function S(t,s){s.forEach(o=>{u(t,o)})}const d=(t,s)=>{let o=!1,n=t;t[0]==="#"&&(n=t.slice(1),o=!0);let e=parseInt(n.substring(0,2),16),a=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);e+=s,a+=s,l+=s,e>255?e=255:e<0&&(e=0),a>255?a=255:a<0&&(a=0),l>255?l=255:l<0&&(l=0);const m=e.toString(16).length===1?"0"+e.toString(16):e.toString(16),g=a.toString(16).length===1?"0"+a.toString(16):a.toString(16),f=l.toString(16).length===1?"0"+l.toString(16):l.toString(16);return(o?"#":"")+m+g+f},D=t=>{const s=t.slice(3),o=[];for(let e=0;e<s.length;e+=2)o.push(s.slice(e,e+2));return`#${o.reverse().join("")}`},p=({cell:{value:t}})=>i.jsxRuntimeExports.jsx(h.SimpleTooltip,{text:t,placement:"bottom",children:i.jsxRuntimeExports.jsx("div",{className:"w-100 text-truncate",children:t})}),y=({cell:{value:t}})=>i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:t==null?void 0:t.toLocaleString("cs-CZ")}),x=({cell:{value:t}})=>{const s=r.format(new Date(t),"dd.MM.yyyy");return i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:t?s:""})};function O(t,s,o){const n=URL.createObjectURL(t),e=document.createElement("a");e.href=n,e.setAttribute("download",s),e.setAttribute("style","display: none"),o&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(n)}exports.extractErrorsFromResponse=i.extractErrorsFromResponse;exports.extractPermissionsFromResponse=i.extractPermissionsFromResponse;exports.fixNameIdNulls=i.fixNameIdNulls;exports.formatFileSize=i.formatFileSize;exports.hasOnlyNullValues=i.hasOnlyNullValues;exports.hookFormSetServerErrors=i.hookFormSetServerErrors;exports.isPrimitive=i.isPrimitive;exports.joinStrings=i.joinStrings;exports.replaceNullValuesOnlyObjectsWithNulls=i.replaceNullValuesOnlyObjectsWithNulls;exports.shortenText=i.shortenText;exports.truncateText=i.truncateText;exports.urlfyArray=i.urlfyArray;exports.buildEmployeeNameString=r.buildEmployeeNameString;exports.buildOrgUnitString=r.buildOrgUnitString;exports.buildVehicleNameString=r.buildVehicleNameString;exports.capitalizeFirstLetter=r.capitalizeFirstLetter;exports.compareDate=r.compareDate;exports.compareDateTime=r.compareDateTime;exports.formatDate=r.formatDate;exports.formatDateTime=r.formatDateTime;exports.getDateString=r.getDateString;exports.getDaysDifference=r.getDaysDifference;exports.getFirstDayOfMonth=r.getFirstDayOfMonth;exports.getFirstDayOfOffsetMonth=r.getFirstDayOfOffsetMonth;exports.getFirstDayOfYear=r.getFirstDayOfYear;exports.getLastDayOfMonth=r.getLastDayOfMonth;exports.getLastDayOfOffsetMonth=r.getLastDayOfOffsetMonth;exports.getLastDayOfYear=r.getLastDayOfYear;exports.isISODate=r.isISODate;exports.isValidDate=r.isValidDate;exports.msToStartOfNextDay=r.msToStartOfNextDay;exports.trimIsoDate=r.trimIsoDate;exports.stringContains=c.stringContains;exports.stringSearchWithin=c.stringSearchWithin;exports.stringStartsWith=c.stringStartsWith;exports.adjustBrightness=d;exports.dateValueFormat=x;exports.hookFormSetNull=u;exports.hookFormSetNulls=S;exports.numFormat=y;exports.saveFile=O;exports.valueTooltip=p;exports.vclToHex=D;