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
package/dist/utils.d.ts
CHANGED
|
@@ -1,153 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { JSX as JSX_2 } from 'react';
|
|
4
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
5
|
-
|
|
6
|
-
export declare const adjustBrightness: (col: string, amt: number) => string;
|
|
7
|
-
|
|
8
|
-
export declare const buildEmployeeNameString: (id: number | undefined | null, name: string | undefined | null) => string;
|
|
9
|
-
|
|
10
|
-
export declare const buildOrgUnitString: (number: number | string | undefined, name: string | undefined) => string;
|
|
11
|
-
|
|
12
|
-
export declare const buildVehicleNameString: (spz: string | undefined | null, name: string | undefined | null) => string;
|
|
13
|
-
|
|
14
|
-
export declare function capitalizeFirstLetter(str: string): string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param date1
|
|
19
|
-
* @param date2
|
|
20
|
-
* @returns Positive number if date1 is after date2, 0 if it's the same date and negative otherwise.
|
|
21
|
-
*/
|
|
22
|
-
export declare function compareDate(date1: string | number | Date, date2: string | number | Date): number;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @param dateTime1
|
|
27
|
-
* @param dateTime2
|
|
28
|
-
* @returns Positive number if dateTime1 is after dateTime2, 0 if it's the same dateTime and negative otherwise.
|
|
29
|
-
*/
|
|
30
|
-
export declare function compareDateTime(dateTime1: string | number | Date, dateTime2: string | number | Date): number;
|
|
31
|
-
|
|
32
|
-
export declare const dateValueFormat: ({ cell: { value } }: any) => JSX_2.Element;
|
|
33
|
-
|
|
34
|
-
declare type ErrorField = {
|
|
35
|
-
name: string;
|
|
36
|
-
errors: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export declare const extractErrorsFromResponse: (error: any) => ErrorField[];
|
|
40
|
-
|
|
41
|
-
export declare const extractPermissionsFromResponse: (error: any) => string[] | null;
|
|
42
|
-
|
|
43
|
-
export declare const fixNameIdNulls: (obj: any) => void;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @param date date in any format that Date ctor accepts
|
|
48
|
-
* @returns localeDateString
|
|
49
|
-
*/
|
|
50
|
-
export declare function formatDate(date: string | undefined | null): string;
|
|
51
|
-
|
|
52
|
-
export declare function formatDateTime(date: string | undefined | null): string;
|
|
53
|
-
|
|
54
|
-
export declare const formatFileSize: (size: number) => string;
|
|
55
|
-
|
|
56
|
-
export declare function getDateString(date: Date): string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Calculates the difference in days between two dates.
|
|
60
|
-
* If no dates are provided, the current date is used for both.
|
|
61
|
-
*
|
|
62
|
-
* @param dateFrom The starting date for the calculation. Defaults to the current date.
|
|
63
|
-
* @param dateTo The ending date for the calculation. Defaults to the current date.
|
|
64
|
-
* @returns The difference in days between the two dates. Returns a negative number if dateFrom is after dateTo.
|
|
65
|
-
*/
|
|
66
|
-
export declare function getDaysDifference(dateFrom?: string | number | Date, dateTo?: string | number | Date): number;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Returns the first day of the month for the given input date.
|
|
70
|
-
* If no input date is provided, the current date is used.
|
|
71
|
-
*
|
|
72
|
-
* @param inputDate The input date for which to get the first day of the month.
|
|
73
|
-
* @returns A Date object representing the first day of the month for the input date.
|
|
74
|
-
*/
|
|
75
|
-
export declare function getFirstDayOfMonth(inputDate?: string | number | Date): Date;
|
|
76
|
-
|
|
77
|
-
export declare function getFirstDayOfOffsetMonth(offset: number): Date;
|
|
78
|
-
|
|
79
|
-
export declare function getFirstDayOfYear(year?: number): Date;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Returns the last day of the month for the given input date.
|
|
83
|
-
* If no input date is provided, the current date is used.
|
|
84
|
-
*
|
|
85
|
-
* @param inputDate The input date for which to get the last day of the month.
|
|
86
|
-
* @returns A Date object representing the last day of the month for the input date.
|
|
87
|
-
*/
|
|
88
|
-
export declare function getLastDayOfMonth(inputDate?: string | number | Date): Date;
|
|
89
|
-
|
|
90
|
-
export declare function getLastDayOfOffsetMonth(offset: number): Date;
|
|
91
|
-
|
|
92
|
-
export declare function getLastDayOfYear(year?: number): Date;
|
|
93
|
-
|
|
94
|
-
export declare const hasOnlyNullValues: (obj: object) => boolean;
|
|
95
|
-
|
|
96
|
-
export declare function hookFormSetNull(formMethods: UseFormReturn<any>, formField: string): void;
|
|
97
|
-
|
|
98
|
-
export declare function hookFormSetNulls(formMethods: UseFormReturn<any>, formField: string[]): void;
|
|
99
|
-
|
|
100
|
-
export declare const hookFormSetServerErrors: (formMethods: any, error: any) => void;
|
|
101
|
-
|
|
102
|
-
export declare const isISODate: (dateString: string) => boolean;
|
|
103
|
-
|
|
104
|
-
export declare const isPrimitive: (val: any) => boolean;
|
|
105
|
-
|
|
106
|
-
export declare function isValidDate(d: object): d is Date;
|
|
107
|
-
|
|
108
|
-
export declare function joinStrings(separator?: string, ...args: (string | undefined | null)[]): string;
|
|
109
|
-
|
|
110
|
-
export declare function msToStartOfNextDay(): number;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Formats numbers to czech format separating numbers by thousands etc..
|
|
114
|
-
* @returns
|
|
115
|
-
*/
|
|
116
|
-
export declare const numFormat: ({ cell: { value } }: any) => JSX_2.Element;
|
|
117
|
-
|
|
118
|
-
export declare const replaceNullValuesOnlyObjectsWithNulls: (obj: object) => {
|
|
119
|
-
[key: string]: unknown;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export declare function saveFile(blob: Blob, fileName: string, tryToOpen?: boolean): void;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @param text text to shorten or null
|
|
127
|
-
* @param targetLength to which length should the text be shortened
|
|
128
|
-
* @returns 'text' if it's not longer than 'targetLenght', otherwise trimmed to 'targetLength' and followed by ellipsis
|
|
129
|
-
*/
|
|
130
|
-
export declare const shortenText: (text: string | null, targetLength: number) => string | null;
|
|
131
|
-
|
|
132
|
-
export declare const stringContains: (str: string | undefined | null, substr: string | undefined | null) => boolean;
|
|
133
|
-
|
|
134
|
-
export declare const stringSearchWithin: (str: string | undefined | null, substr: string | undefined | null) => boolean;
|
|
135
|
-
|
|
136
|
-
export declare const stringStartsWith: (str: string | undefined | null, substr: string | undefined | null) => boolean;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @param date date in ISO format // Date.toIsoString()
|
|
141
|
-
* @returns date part of the date
|
|
142
|
-
*/
|
|
143
|
-
export declare function trimIsoDate(date: string | undefined | null): string;
|
|
144
|
-
|
|
145
|
-
export declare const truncateText: (str: string) => string;
|
|
146
|
-
|
|
147
|
-
export declare const urlfyArray: (a: Array<unknown>, paramName: string) => string;
|
|
148
|
-
|
|
149
|
-
export declare const valueTooltip: ({ cell: { value } }: any) => JSX_2.Element;
|
|
150
|
-
|
|
151
|
-
export declare const vclToHex: (vcl: string) => string;
|
|
152
|
-
|
|
153
|
-
export { }
|
|
1
|
+
export * from './utils/index'
|
package/dist/utils.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as n } from "./FromToDatePickerDropdownToggle-
|
|
2
|
-
import { aG as M, aI as E, aK as V, aD as v, aL as w, aH as P, aJ as U, aO as A, aM as B, aQ as G, aN as W, aP as z } from "./FromToDatePickerDropdownToggle-
|
|
3
|
-
import { f } from "./dateUtils-
|
|
4
|
-
import { k as Y, l as q, j as J, h as K, o as Q, q as Z, c as _, e as $, y as X, r as tt, a as et, v as st, b as rt, u as at, w as ot, x as it, i as nt, n as lt, m as ct, t as mt } from "./dateUtils-
|
|
5
|
-
import { a as gt, s as ut, b as pt } from "./searchUtils-
|
|
1
|
+
import { j as n } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
|
|
2
|
+
import { aG as M, aI as E, aK as V, aD as v, aL as w, aH as P, aJ as U, aO as A, aM as B, aQ as G, aN as W, aP as z } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
|
|
3
|
+
import { f } from "./dateUtils-B9-rf1Eh.js";
|
|
4
|
+
import { k as Y, l as q, j as J, h as K, o as Q, q as Z, c as _, e as $, y as X, r as tt, a as et, v as st, b as rt, u as at, w as ot, x as it, i as nt, n as lt, m as ct, t as mt } from "./dateUtils-B9-rf1Eh.js";
|
|
5
|
+
import { a as gt, s as ut, b as pt } from "./searchUtils-BCxOKHVq.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "@azure/msal-browser";
|
|
8
8
|
import "@azure/msal-react";
|
|
9
9
|
import "zod";
|
|
10
|
-
import "react-hook-form";
|
|
11
10
|
import "react-router-dom";
|
|
12
|
-
import
|
|
11
|
+
import "react-hook-form";
|
|
12
|
+
import { S as g } from "./SimpleTooltip-C32Faxrc.js";
|
|
13
13
|
function u(t, s) {
|
|
14
14
|
t.setValue(s, null);
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-luminus-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.34",
|
|
4
4
|
"description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@azure/msal-browser": "^3.14.0",
|
|
56
|
+
"@azure/msal-react": "^2.0.16",
|
|
56
57
|
"axios": "^1.6.8",
|
|
57
58
|
"bootstrap": "^5.3.3",
|
|
58
59
|
"react": ">=18",
|
|
@@ -63,7 +64,6 @@
|
|
|
63
64
|
"zod": ">=3.22.4"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
|
-
"@azure/msal-react": "^2.0.16",
|
|
67
67
|
"classnames": "^2.5.1",
|
|
68
68
|
"date-fns": "^3.6.0",
|
|
69
69
|
"latinize": "^2.0.0",
|