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.
- package/README.md +0 -6
- package/dist/.vite/manifest.json +60 -60
- package/dist/FromToDatePickerDropdownToggle-DhzBIJXw.cjs +253 -0
- package/dist/{FromToDatePickerDropdownToggle-DDOxJCc2.js → FromToDatePickerDropdownToggle-Dk7MFcJp.js} +2761 -2615
- package/dist/{PrimaryButton-B64e5vBv.js → PrimaryButton-Bbl06m-g.js} +135 -145
- package/dist/PrimaryButton-D33g-RWP.cjs +1 -0
- package/dist/{SimpleTooltip-DIqIPx0H.cjs → SimpleTooltip-Bz22xxXa.cjs} +1 -1
- package/dist/{SimpleTooltip-BgRjtr0d.js → SimpleTooltip-C32Faxrc.js} +1 -1
- package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +2 -1
- package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
- package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +1 -0
- package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +2 -1
- package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +5 -4
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +2 -1
- package/dist/components/Form/CheckInput/CheckInput.d.ts +2 -2
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +2 -2
- package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +2 -2
- package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -2
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +2 -2
- package/dist/components/Form/TextInput/TextInput.d.ts +2 -2
- package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +2 -2
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +2 -2
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +3 -2
- package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +2 -2
- package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +1 -0
- package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +2 -2
- package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +2 -2
- package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +2 -2
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +2 -2
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +2 -2
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +22 -23
- package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +2 -2
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +22 -23
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +22 -23
- package/dist/components/Layout/MessageBoard/MessageBoard.d.ts +2 -1
- package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +2 -2
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +2 -2
- package/dist/components/NewTabs/Tab/Tab.d.ts +1 -0
- package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
- package/dist/components/NewTabs/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/comps/Tab/Tab.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +1 -0
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -0
- package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
- package/dist/components/common/Alert/Alert.d.ts +1 -1
- package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
- package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +2 -1
- package/dist/components/common/AppSearch/AppSearch.d.ts +2 -2
- package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +2 -2
- package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +3 -2
- package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +2 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +2 -1
- package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
- package/dist/components/common/Badge/Badge.d.ts +0 -1
- package/dist/components/common/Card/Card.d.ts +0 -1
- package/dist/components/common/Collapse/Collapse.d.ts +0 -1
- package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
- package/dist/components/common/FromToDatePicker/FromToDatePicker.d.ts +3 -2
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +2 -1
- package/dist/components/common/FromToDatePicker/hooks/useFromToDatePicker.d.ts +2 -1
- package/dist/components/common/FromToDatePicker/utils/utilsFromToDatePicker.d.ts +1 -0
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +3 -3
- package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +2 -2
- package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +2 -2
- package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +2 -1
- package/dist/components/common/ImgApi/ImgApi.d.ts +2 -2
- package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +2 -2
- package/dist/components/common/ImgDirect/ImgDirect.d.ts +2 -2
- package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
- package/dist/components/common/Loading/Loading.d.ts +0 -1
- package/dist/components/common/Loading/LoadingBlock.d.ts +1 -0
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +1 -1
- package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +2 -2
- package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +2 -2
- package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
- package/dist/components/common/Timeline/Timeline.d.ts +2 -2
- package/dist/components/common/Typography/Typography.d.ts +0 -1
- package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
- package/dist/components/common/Widget/WidgetCard.d.ts +1 -0
- package/dist/components/common/Widget/WidgetWrapper.d.ts +1 -0
- package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
- package/dist/contexts/auth/AuthContext.d.ts +3 -3
- package/dist/contexts/auth/AuthProvider.d.ts +2 -2
- package/dist/contexts/confirm/ConfirmContext.d.ts +1 -2
- package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
- package/dist/contexts/delegation/DelegationContext.d.ts +3 -2
- package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
- package/dist/contexts/loading/LoadingContext.d.ts +1 -2
- package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +3 -16
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +4 -17
- package/dist/contexts/prompt/PromptContext.d.ts +3 -3
- package/dist/contexts/prompt/PromptProvider.d.ts +1 -0
- package/dist/contexts/user/UserContext.d.ts +4 -4
- package/dist/contexts/user/UserProvider.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.d.ts +1 -257
- package/dist/contexts.es.js +129 -158
- package/dist/{dateUtils-C8trxO28.js → dateUtils-B9-rf1Eh.js} +11 -21
- package/dist/{dateUtils-ChS-y8JY.cjs → dateUtils-Bs39Qj7k.cjs} +1 -1
- package/dist/hooks/useAxios/useAxios.d.ts +2 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
- package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +3 -3
- package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +1 -2
- package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
- package/dist/hooks/usePrompt/usePrompt.d.ts +2 -1
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +2 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.d.ts +1 -162
- package/dist/hooks.es.js +22 -22
- package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +2 -2
- package/dist/layout/MainContainer/MainContainer.d.ts +2 -2
- package/dist/layout/PageTitle/PageTitle.d.ts +1 -0
- package/dist/layout/SideContentBar/SideContentBar.d.ts +1 -0
- package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -2
- package/dist/layout/SideMenu/SideMenu.d.ts +2 -2
- package/dist/layout/TopBar/TopBar.d.ts +0 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.d.ts +1 -56
- package/dist/layout.es.js +92 -95
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +1149 -1171
- package/dist/models/luminus-context-types/ILocalizationContext.d.ts +1 -0
- package/dist/models/prop-types/ContainerProps.d.ts +1 -0
- package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +1 -0
- package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +3 -2
- package/dist/models/prop-types/ImgProps.d.ts +1 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
- package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +5 -5
- package/dist/models/prop-types/InputProps/FileInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +3 -2
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +3 -2
- package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +2 -2
- package/dist/models/texts/ComponentsContextTexts.d.ts +21 -2
- package/dist/models/texts/ErrorBoundaryTexts.d.ts +1 -0
- package/dist/models/types/ApiErrorResult.d.ts +2 -1
- package/dist/models/types/DashboardConfig.d.ts +2 -1
- package/dist/models/types/DashboardWidget.d.ts +2 -1
- package/dist/models/types/DropdownPickerOption.d.ts +2 -1
- package/dist/models/types/HookFormInputProps.d.ts +2 -1
- package/dist/models/types/MenuItemType.d.ts +0 -1
- package/dist/models/types/MenuItemTypeExtended.d.ts +2 -1
- package/dist/models/types/PhotoAction.d.ts +0 -1
- package/dist/models/types/SearchResultGroupModel.d.ts +3 -2
- package/dist/models/types/SearchResultModel.d.ts +2 -1
- package/dist/models/types/TimelineStep.d.ts +2 -2
- package/dist/models/types/UserLoginState.d.ts +3 -2
- package/dist/models/types/UserModel.d.ts +2 -1
- package/dist/{searchUtils-C38WM_G8.js → searchUtils-BCxOKHVq.js} +1 -1
- package/dist/{searchUtils-BdYnxcy0.cjs → searchUtils-CxNriHg_.cjs} +1 -1
- package/dist/{useLocalStorageState-asgEpnUg.cjs → useLocalStorageState-3ebV2Hf5.cjs} +1 -1
- package/dist/{useLocalStorageState-CFe9QRz0.js → useLocalStorageState-Cs1tOpr1.js} +3 -3
- package/dist/{usePermissions-Ce0AAKj1.cjs → usePermissions-BZPN1OT2.cjs} +1 -1
- package/dist/{usePermissions-55of2QBH.js → usePermissions-CfJgVLTi.js} +3 -3
- package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +2 -1
- package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
- package/dist/utils/hookForm/hookFormUtils.d.ts +2 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +1 -153
- package/dist/utils.es.js +7 -7
- package/package.json +2 -2
- package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +0 -253
- package/dist/PrimaryButton-BnrFH2PB.cjs +0 -1
|
@@ -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 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 { 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,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
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,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,5 +1,6 @@
|
|
|
1
|
-
import NameIdStringModel from '
|
|
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,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
2
|
-
import
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import DashboardWidgetCommonProps from '
|
|
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 { 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,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,6 +1,6 @@
|
|
|
1
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { aR as e } from "./FromToDatePickerDropdownToggle-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import "
|
|
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-
|
|
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-
|
|
3
|
-
import "
|
|
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 '
|
|
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,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-
|
|
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;
|