@cayuse-test/react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +346 -0
- package/dist/chunk-2K3CWMLR.js +108 -0
- package/dist/chunk-2K3CWMLR.js.map +1 -0
- package/dist/chunk-B2Z63U4D.js +10398 -0
- package/dist/chunk-B2Z63U4D.js.map +1 -0
- package/dist/chunk-EPGO6B3U.js +3 -0
- package/dist/chunk-EPGO6B3U.js.map +1 -0
- package/dist/chunk-LFWPG3ND.js +97 -0
- package/dist/chunk-LFWPG3ND.js.map +1 -0
- package/dist/chunk-M2L7SQBQ.js +205 -0
- package/dist/chunk-M2L7SQBQ.js.map +1 -0
- package/dist/chunk-MJBMK4OG.js +143 -0
- package/dist/chunk-MJBMK4OG.js.map +1 -0
- package/dist/chunk-RG4GEORO.js +194 -0
- package/dist/chunk-RG4GEORO.js.map +1 -0
- package/dist/chunk-SZMEZFAR.js +193 -0
- package/dist/chunk-SZMEZFAR.js.map +1 -0
- package/dist/chunk-TYZPOXN5.js +243 -0
- package/dist/chunk-TYZPOXN5.js.map +1 -0
- package/dist/chunk-XRUFEGUC.js +225 -0
- package/dist/chunk-XRUFEGUC.js.map +1 -0
- package/dist/components/index.d.ts +1471 -0
- package/dist/components/index.js +144 -0
- package/dist/components/index.js.map +1 -0
- package/dist/context/tenant/index.d.ts +200 -0
- package/dist/context/tenant/index.js +14 -0
- package/dist/context/tenant/index.js.map +1 -0
- package/dist/globals/constants/index.d.ts +83 -0
- package/dist/globals/constants/index.js +31 -0
- package/dist/globals/constants/index.js.map +1 -0
- package/dist/globals/css/index.d.ts +2 -0
- package/dist/globals/css/index.js +2 -0
- package/dist/globals/css/index.js.map +1 -0
- package/dist/hooks/index.d.ts +125 -0
- package/dist/hooks/index.js +30 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index-4NH7IW34.css +47 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +302 -0
- package/dist/index.js.map +1 -0
- package/dist/modal-dialog-IH5SI4CF.css +93 -0
- package/dist/services/upload-s3/index.d.ts +35 -0
- package/dist/services/upload-s3/index.js +11 -0
- package/dist/services/upload-s3/index.js.map +1 -0
- package/dist/styles-2WZORUGA.css +106 -0
- package/dist/styles-32VHTPIA.css +20 -0
- package/dist/styles-3A5DZ5R7.css +70 -0
- package/dist/styles-3PFCZALV.css +60 -0
- package/dist/styles-3SNYRDO2.css +100 -0
- package/dist/styles-4FHUBUVF.css +150 -0
- package/dist/styles-4KAVAZFG.css +5 -0
- package/dist/styles-4OFM6DY5.css +22 -0
- package/dist/styles-5OXZHQGW.css +14 -0
- package/dist/styles-6XZTUN3B.css +68 -0
- package/dist/styles-73WOPK6M.css +6 -0
- package/dist/styles-7AV26IBF.css +35 -0
- package/dist/styles-7DWK55L2.css +71 -0
- package/dist/styles-7GWPZSR2.css +222 -0
- package/dist/styles-7QBPXFSY.css +6 -0
- package/dist/styles-7T6DSZIY.css +27 -0
- package/dist/styles-AUI7W2SW.css +408 -0
- package/dist/styles-AZSHBXJQ.css +85 -0
- package/dist/styles-BTXJVGNW.css +99 -0
- package/dist/styles-BUPIQG5C.css +74 -0
- package/dist/styles-CLK36LUK.css +27 -0
- package/dist/styles-CSKYCMD4.css +123 -0
- package/dist/styles-CWCX26BQ.css +13 -0
- package/dist/styles-GAIKDZU6.css +47 -0
- package/dist/styles-GB7S5BAZ.css +36 -0
- package/dist/styles-GVPT6A2Z.css +45 -0
- package/dist/styles-IUBOTHBR.css +581 -0
- package/dist/styles-IZPTZRKW.css +78 -0
- package/dist/styles-LS2YWO5W.css +39 -0
- package/dist/styles-M5BEFS4G.css +148 -0
- package/dist/styles-MHNICXOS.css +18 -0
- package/dist/styles-P6IOJDNI.css +47 -0
- package/dist/styles-Q7XE2QVU.css +55 -0
- package/dist/styles-R7IS5IGF.css +7 -0
- package/dist/styles-RDYYTTBU.css +218 -0
- package/dist/styles-RTHIZL5W.css +48 -0
- package/dist/styles-RUY4EKZW.css +9 -0
- package/dist/styles-T5QJAAUY.css +184 -0
- package/dist/styles-VBXWGFCK.css +96 -0
- package/dist/styles-VE76CGRO.css +6 -0
- package/dist/styles-VLCZ7JYV.css +140 -0
- package/dist/styles-W5HDD3YQ.css +71 -0
- package/dist/styles-X7BJCSFV.css +86 -0
- package/dist/styles-XVRR5GIG.css +42 -0
- package/dist/styles-YBC6BJBD.css +83 -0
- package/dist/styles-YXNJHPDZ.css +74 -0
- package/dist/styles-Z276IEVM.css +264 -0
- package/dist/utils/index.d.ts +145 -0
- package/dist/utils/index.js +98 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +113 -0
- package/packages/eslint-config/README.md +69 -0
- package/packages/eslint-config/base.js +25 -0
- package/packages/eslint-config/next.js +49 -0
- package/packages/eslint-config/react-internal.js +44 -0
- package/packages/typescript-config/README.md +70 -0
- package/packages/typescript-config/base.json +21 -0
- package/packages/typescript-config/nextjs.json +12 -0
- package/packages/typescript-config/react-library.json +7 -0
|
@@ -0,0 +1,1471 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, CSSProperties, MouseEvent as MouseEvent$1, ComponentType, InputHTMLAttributes, ChangeEvent, FocusEvent, RefObject } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { ToastContent, ToastOptions as ToastOptions$1, TypeOptions as TypeOptions$1, ToastContainerProps } from 'react-toastify';
|
|
5
|
+
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
6
|
+
import { DatePickerProps } from 'react-datepicker';
|
|
7
|
+
import { MenuProps, MenuTriggerProps, MenuItemProps, PopoverProps, Dialog } from 'react-aria-components';
|
|
8
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
9
|
+
import Quill, { Sources } from 'quill';
|
|
10
|
+
import { FIELD_TYPES } from '../globals/constants/index.js';
|
|
11
|
+
import { NavLinkProps as NavLinkProps$1 } from 'react-router-dom';
|
|
12
|
+
|
|
13
|
+
declare const baseDictionary$2: {
|
|
14
|
+
description: string;
|
|
15
|
+
fileInput: {
|
|
16
|
+
dropFilesText: string;
|
|
17
|
+
divider: string;
|
|
18
|
+
buttonText: string;
|
|
19
|
+
uploadingText: string;
|
|
20
|
+
};
|
|
21
|
+
tableFileList: {
|
|
22
|
+
columns: string[];
|
|
23
|
+
removeFileButtonLabel: string;
|
|
24
|
+
};
|
|
25
|
+
fileUploaderHook: {
|
|
26
|
+
exceedsSize: string;
|
|
27
|
+
exeFileTypeRestriction: string;
|
|
28
|
+
};
|
|
29
|
+
removeFileDialog: {
|
|
30
|
+
title: string;
|
|
31
|
+
description: string;
|
|
32
|
+
cancelText: string;
|
|
33
|
+
confirmText: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
interface UploadResource {
|
|
38
|
+
id: string;
|
|
39
|
+
tenantId?: string;
|
|
40
|
+
fileName: string;
|
|
41
|
+
createdAt: string | Date;
|
|
42
|
+
finalizedAt?: Date;
|
|
43
|
+
completedAt?: Date;
|
|
44
|
+
uploadedBy: string;
|
|
45
|
+
uploadedByInfo?: {
|
|
46
|
+
firstName?: string;
|
|
47
|
+
lastName?: string;
|
|
48
|
+
};
|
|
49
|
+
fileSize?: number;
|
|
50
|
+
referenceId?: string;
|
|
51
|
+
state: {
|
|
52
|
+
status: 'preparing' | 'uploading' | 'completed' | 'error';
|
|
53
|
+
error?: Error;
|
|
54
|
+
progress?: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
interface FileData {
|
|
58
|
+
id: string;
|
|
59
|
+
url: string;
|
|
60
|
+
name: string;
|
|
61
|
+
userId: string;
|
|
62
|
+
type: string;
|
|
63
|
+
taskUrl: string;
|
|
64
|
+
processInstanceUrl: string | null;
|
|
65
|
+
externalUrl: string;
|
|
66
|
+
contentUrl: string | null;
|
|
67
|
+
time: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
user?: {
|
|
70
|
+
firstName?: string;
|
|
71
|
+
lastName?: string;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
interface UseUploadServiceReturn {
|
|
75
|
+
files: UploadResource[];
|
|
76
|
+
rejections: UploadResource[];
|
|
77
|
+
loading: boolean;
|
|
78
|
+
add: (files: File[]) => Promise<void>;
|
|
79
|
+
remove: (file: UploadResource | null) => void;
|
|
80
|
+
}
|
|
81
|
+
interface AttachmentsFormProps {
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
files?: FileData[];
|
|
84
|
+
setFiles: (files: UploadResource[]) => void;
|
|
85
|
+
setRejections(rejections: UploadResource[]): void;
|
|
86
|
+
dictionary?: Partial<typeof baseDictionary$2>;
|
|
87
|
+
allowToRemoveByRoles?: string[];
|
|
88
|
+
onLoading?: (loading: boolean) => void;
|
|
89
|
+
}
|
|
90
|
+
declare const AttachmentsForm: React__default.ForwardRefExoticComponent<AttachmentsFormProps & React__default.RefAttributes<unknown>>;
|
|
91
|
+
|
|
92
|
+
interface Dictionary$1 {
|
|
93
|
+
description?: string;
|
|
94
|
+
fileInput?: {
|
|
95
|
+
dropFilesText?: string;
|
|
96
|
+
divider?: string;
|
|
97
|
+
buttonText?: string;
|
|
98
|
+
uploadingText?: string;
|
|
99
|
+
};
|
|
100
|
+
tableFileList?: {
|
|
101
|
+
columns?: string[];
|
|
102
|
+
removeFileButtonLabel?: string;
|
|
103
|
+
};
|
|
104
|
+
fileUploaderHook?: {
|
|
105
|
+
exceedsSize?: string;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
interface AccordionAttachmentsFormProps {
|
|
109
|
+
files: File[];
|
|
110
|
+
setFiles: React__default.Dispatch<React__default.SetStateAction<File[]>>;
|
|
111
|
+
setRejections: React__default.Dispatch<React__default.SetStateAction<FileRejection[]>>;
|
|
112
|
+
label?: string;
|
|
113
|
+
defaultOpen?: boolean;
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
fileUploaderOptions?: Record<string, unknown>;
|
|
116
|
+
allowToRemoveByRoles?: string[];
|
|
117
|
+
onLoading?: () => void;
|
|
118
|
+
dictionary?: Dictionary$1;
|
|
119
|
+
}
|
|
120
|
+
interface FileRejection {
|
|
121
|
+
file: File;
|
|
122
|
+
errors: Array<{
|
|
123
|
+
code: string;
|
|
124
|
+
message: string;
|
|
125
|
+
}>;
|
|
126
|
+
}
|
|
127
|
+
declare const AccordionAttachmentsForm: React__default.ForwardRefExoticComponent<AccordionAttachmentsFormProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
128
|
+
|
|
129
|
+
interface AccordionFormWrapperProps {
|
|
130
|
+
label: string;
|
|
131
|
+
defaultOpen?: boolean;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
children: React__default.ReactNode;
|
|
134
|
+
}
|
|
135
|
+
declare const AccordionFormWrapper: React__default.ForwardRefExoticComponent<AccordionFormWrapperProps & React__default.RefAttributes<{
|
|
136
|
+
isOpen: boolean;
|
|
137
|
+
setOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
138
|
+
}>>;
|
|
139
|
+
|
|
140
|
+
type TypeOptions = TypeOptions$1 | 'login';
|
|
141
|
+
type ToastOptions = Omit<ToastOptions$1, 'type'> & {
|
|
142
|
+
type?: TypeOptions;
|
|
143
|
+
};
|
|
144
|
+
declare const defaultMessageConst: {
|
|
145
|
+
errorMsg: string;
|
|
146
|
+
sessionExpired: string;
|
|
147
|
+
loginButtonLabel: string;
|
|
148
|
+
};
|
|
149
|
+
declare function setDictionary(updatedDictionary: typeof defaultMessageConst): void;
|
|
150
|
+
declare function setLoginTenantId(updatedTenantId: string): void;
|
|
151
|
+
declare function notify(message: ToastContent, options?: ToastOptions): void;
|
|
152
|
+
|
|
153
|
+
interface BannerNotificationProps extends ToastContainerProps {
|
|
154
|
+
className?: string;
|
|
155
|
+
dictionary?: typeof defaultMessageConst;
|
|
156
|
+
tenantId: string;
|
|
157
|
+
}
|
|
158
|
+
declare function BannerNotifications({ className, dictionary, tenantId, role, ...rest }: BannerNotificationProps): react_jsx_runtime.JSX.Element;
|
|
159
|
+
|
|
160
|
+
interface BasePaddingProps {
|
|
161
|
+
children?: ReactNode;
|
|
162
|
+
desktop?: {
|
|
163
|
+
disabled?: boolean;
|
|
164
|
+
};
|
|
165
|
+
mobile?: {
|
|
166
|
+
disabled?: boolean;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
declare function BasePadding({ children, desktop, mobile, className, }: BasePaddingProps & React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
170
|
+
|
|
171
|
+
interface BreadcrumbProps {
|
|
172
|
+
isLoading?: boolean;
|
|
173
|
+
breadcrumbs: {
|
|
174
|
+
link?: string;
|
|
175
|
+
text: string;
|
|
176
|
+
}[];
|
|
177
|
+
}
|
|
178
|
+
declare const Breadcrumbs: React__default.ForwardRefExoticComponent<BreadcrumbProps & React__default.RefAttributes<HTMLElement>>;
|
|
179
|
+
|
|
180
|
+
interface ButtonProps extends React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
181
|
+
busy?: boolean;
|
|
182
|
+
children?: React$1.ReactNode;
|
|
183
|
+
className?: string;
|
|
184
|
+
custom?: boolean;
|
|
185
|
+
primary?: boolean;
|
|
186
|
+
secondary?: boolean;
|
|
187
|
+
tertiary?: boolean;
|
|
188
|
+
success?: boolean;
|
|
189
|
+
danger?: boolean;
|
|
190
|
+
small?: boolean;
|
|
191
|
+
disabled?: boolean;
|
|
192
|
+
icon?: string;
|
|
193
|
+
ariaLabel?: string;
|
|
194
|
+
loadingMessage?: string;
|
|
195
|
+
tooltip?: string;
|
|
196
|
+
}
|
|
197
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
198
|
+
|
|
199
|
+
interface ButtonGroupProps {
|
|
200
|
+
className?: string;
|
|
201
|
+
children: React__default.ReactNode;
|
|
202
|
+
orientation?: 'horizontal' | 'vertical';
|
|
203
|
+
}
|
|
204
|
+
declare const ButtonGroup: ({ className, children, orientation, }: ButtonGroupProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
interface CayuseCommonHeaderProps {
|
|
207
|
+
authenticationToken: string;
|
|
208
|
+
customerImage?: string;
|
|
209
|
+
logoutRoute: string;
|
|
210
|
+
logoutRedirectTo: string;
|
|
211
|
+
product?: string;
|
|
212
|
+
scriptBranch?: string;
|
|
213
|
+
scriptEnv?: string;
|
|
214
|
+
targetWebComponentsBucket?: string;
|
|
215
|
+
userId: string;
|
|
216
|
+
}
|
|
217
|
+
declare function CayuseCommonHeader(props: CayuseCommonHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
218
|
+
|
|
219
|
+
interface IconProps extends Omit<FontAwesomeIconProps, 'icon'> {
|
|
220
|
+
name: string;
|
|
221
|
+
removeMargin?: boolean;
|
|
222
|
+
noMargin?: boolean;
|
|
223
|
+
className?: string;
|
|
224
|
+
}
|
|
225
|
+
declare const Icon: React__default.NamedExoticComponent<IconProps>;
|
|
226
|
+
|
|
227
|
+
interface IconButtonProps extends ButtonProps {
|
|
228
|
+
icon: string;
|
|
229
|
+
children?: React__default.ReactNode;
|
|
230
|
+
labelPosition?: 'left' | 'right';
|
|
231
|
+
}
|
|
232
|
+
declare const IconButton: ({ children, icon, labelPosition, className, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
233
|
+
|
|
234
|
+
interface Dictionary {
|
|
235
|
+
cancelButtonLabel?: string;
|
|
236
|
+
confirmButtonLabel?: string;
|
|
237
|
+
}
|
|
238
|
+
interface ConfirmationModalProps {
|
|
239
|
+
cancelButtonLabel?: string;
|
|
240
|
+
cancelButtonOptions?: Partial<IconButtonProps>;
|
|
241
|
+
className?: string;
|
|
242
|
+
confirmButtonLabel?: string;
|
|
243
|
+
confirmButtonOptions?: Partial<IconButtonProps>;
|
|
244
|
+
dictionary?: Dictionary;
|
|
245
|
+
icon?: IconProps['name'];
|
|
246
|
+
message: React__default.ReactNode;
|
|
247
|
+
onCancel?(event: React__default.MouseEvent<HTMLButtonElement>): void;
|
|
248
|
+
onConfirm?: () => void;
|
|
249
|
+
title: string;
|
|
250
|
+
visible: boolean;
|
|
251
|
+
}
|
|
252
|
+
declare function ConfirmationModal({ cancelButtonLabel, cancelButtonOptions, className, confirmButtonLabel, confirmButtonOptions, dictionary, icon, message, onCancel, onConfirm, title, visible, ...rest }: ConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
253
|
+
|
|
254
|
+
declare const CovertButton: React__default.ForwardRefExoticComponent<React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
255
|
+
|
|
256
|
+
interface Option$1 {
|
|
257
|
+
value?: string | number;
|
|
258
|
+
label?: string;
|
|
259
|
+
content?: React__default.ReactNode;
|
|
260
|
+
disabled?: boolean;
|
|
261
|
+
className?: string;
|
|
262
|
+
onClick?: (value: string | number) => void;
|
|
263
|
+
}
|
|
264
|
+
type OnChange = (value: Option$1['value'], event?: React__default.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
265
|
+
type CustomOnChange = (event: React__default.MouseEvent<HTMLLIElement, MouseEvent>, option: {
|
|
266
|
+
value?: string | number;
|
|
267
|
+
}) => void;
|
|
268
|
+
interface CustomDropdownProps {
|
|
269
|
+
label?: string;
|
|
270
|
+
options: Option$1[];
|
|
271
|
+
isCustomized?: boolean;
|
|
272
|
+
labelSuffix?: string;
|
|
273
|
+
value?: string | number;
|
|
274
|
+
onChange?: OnChange | CustomOnChange;
|
|
275
|
+
ariaLabel?: string;
|
|
276
|
+
customClassname?: string;
|
|
277
|
+
isCustomStyling?: boolean;
|
|
278
|
+
disabled?: boolean;
|
|
279
|
+
isCustomOnChange?: boolean;
|
|
280
|
+
}
|
|
281
|
+
declare const CustomDropdown: React__default.NamedExoticComponent<CustomDropdownProps>;
|
|
282
|
+
|
|
283
|
+
type DateSelectorProps = {
|
|
284
|
+
customInputClass?: string;
|
|
285
|
+
customWrapperClass?: string;
|
|
286
|
+
onChange?: (date: Date | null) => void;
|
|
287
|
+
selectedDate?: Date | null;
|
|
288
|
+
showTime?: boolean;
|
|
289
|
+
label?: string;
|
|
290
|
+
description?: string;
|
|
291
|
+
validationMessage?: string;
|
|
292
|
+
required?: boolean;
|
|
293
|
+
disabled?: boolean;
|
|
294
|
+
} & DatePickerProps;
|
|
295
|
+
declare const DateSelector: React__default.ForwardRefExoticComponent<DateSelectorProps & React__default.RefAttributes<unknown>>;
|
|
296
|
+
|
|
297
|
+
declare function Divider({ className, ...props }: React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLHRElement>, HTMLHRElement>): react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
interface DropdownMenuProps<T> extends MenuProps<T>, Omit<MenuTriggerProps, 'children'> {
|
|
300
|
+
label: string;
|
|
301
|
+
icon?: string;
|
|
302
|
+
options?: MenuItemProps[];
|
|
303
|
+
onClick?(id: string): void;
|
|
304
|
+
primary?: boolean;
|
|
305
|
+
disabled?: boolean;
|
|
306
|
+
buttonProps?: ButtonProps;
|
|
307
|
+
className?: string;
|
|
308
|
+
children?: React__default.ReactNode;
|
|
309
|
+
}
|
|
310
|
+
declare function DropdownMenu<T extends object>(props: DropdownMenuProps<T>): react_jsx_runtime.JSX.Element;
|
|
311
|
+
|
|
312
|
+
declare const baseDictionary$1: {
|
|
313
|
+
items: string;
|
|
314
|
+
perPage: string;
|
|
315
|
+
showing: string;
|
|
316
|
+
xOfYSeparator: string;
|
|
317
|
+
};
|
|
318
|
+
interface PaginationProps {
|
|
319
|
+
totalItems: number;
|
|
320
|
+
limit: number;
|
|
321
|
+
currentPage: number;
|
|
322
|
+
onPageChange(page: number): void;
|
|
323
|
+
dictionary?: typeof baseDictionary$1;
|
|
324
|
+
showPageSizeControl?: boolean;
|
|
325
|
+
onLimitChange?(limit: number): void;
|
|
326
|
+
}
|
|
327
|
+
declare const Pagination: React__default.FC<PaginationProps>;
|
|
328
|
+
|
|
329
|
+
declare function getValueFromObjectByKeys<R extends Row>(obj: R, keys: DynamicTableColumn['keys']): ReactNode;
|
|
330
|
+
|
|
331
|
+
type DynamicTableColumn = {
|
|
332
|
+
keys: string[];
|
|
333
|
+
columnHeader: string;
|
|
334
|
+
id: string;
|
|
335
|
+
sortKey?: string;
|
|
336
|
+
active?: boolean;
|
|
337
|
+
type?: string;
|
|
338
|
+
styleHeader?: CSSProperties;
|
|
339
|
+
} & React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
|
|
340
|
+
type Row<R = any> = {
|
|
341
|
+
_id: string;
|
|
342
|
+
_isSelectable: boolean;
|
|
343
|
+
_isSelected: boolean;
|
|
344
|
+
_isDisabledForSelection: boolean;
|
|
345
|
+
subRows?: DynamicTableRow<R>[];
|
|
346
|
+
} & Record<string, any>;
|
|
347
|
+
type DynamicTableRow<T> = T & Row<T>;
|
|
348
|
+
type SortDirection = 'ascending' | 'descending' | null;
|
|
349
|
+
type RenderCellCallback<T> = (args: {
|
|
350
|
+
index: number;
|
|
351
|
+
column: DynamicTableColumn;
|
|
352
|
+
row: T;
|
|
353
|
+
value: ReactNode;
|
|
354
|
+
getValueFromObjectByKeys: typeof getValueFromObjectByKeys;
|
|
355
|
+
}) => ReactNode;
|
|
356
|
+
type OnSortChange = (column: DynamicTableColumn['id'], direction: SortDirection) => void;
|
|
357
|
+
interface DynamicTableProps<R> {
|
|
358
|
+
headers: DynamicTableColumn[];
|
|
359
|
+
rows: R[];
|
|
360
|
+
onRowClick?(row: DynamicTableRow<R>, args: {
|
|
361
|
+
event: MouseEvent$1<HTMLTableRowElement>;
|
|
362
|
+
isSubRow: boolean;
|
|
363
|
+
subRowIndex: number | null;
|
|
364
|
+
}): void;
|
|
365
|
+
isLoading?: boolean;
|
|
366
|
+
isRefresh?: boolean;
|
|
367
|
+
isSelectable?: boolean;
|
|
368
|
+
isMultiSelect?: boolean;
|
|
369
|
+
onRowSelectionChange?(arg: RowSelectionChangeArgs<R>): void;
|
|
370
|
+
selectOnRowClick?: boolean;
|
|
371
|
+
selectableBy?(row: R): R;
|
|
372
|
+
isExpandable?: boolean;
|
|
373
|
+
totalItems?: number;
|
|
374
|
+
pageOffset?: number;
|
|
375
|
+
onPageChange?(pageNumber: number): void;
|
|
376
|
+
pageSize?: number;
|
|
377
|
+
onPageSizeChange?(pageSize: number): void;
|
|
378
|
+
paginationProps?: ComponentType<typeof Pagination>;
|
|
379
|
+
sortColumn?: string;
|
|
380
|
+
sortDirection?: SortDirection;
|
|
381
|
+
onSortChange?: OnSortChange;
|
|
382
|
+
renderCell?: RenderCellCallback<DynamicTableRow<R>>;
|
|
383
|
+
rowAriaLabel?(args: {
|
|
384
|
+
row: DynamicTableRow<R>;
|
|
385
|
+
}): string;
|
|
386
|
+
id?: string;
|
|
387
|
+
caption?: string;
|
|
388
|
+
noResultsLabel?: string;
|
|
389
|
+
className?: string;
|
|
390
|
+
children?: ReactNode;
|
|
391
|
+
}
|
|
392
|
+
type RowSelectionChangeArgs<R> = {
|
|
393
|
+
rows: DynamicTableRow<R>[];
|
|
394
|
+
isSelected: boolean;
|
|
395
|
+
selectedRows?: DynamicTableRow<R>[];
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
declare const DynamicTable: <R = any>(props: DynamicTableProps<R> & {
|
|
399
|
+
ref?: React__default.Ref<HTMLDivElement>;
|
|
400
|
+
}) => React__default.ReactElement;
|
|
401
|
+
|
|
402
|
+
interface NumberProps extends React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
403
|
+
/**
|
|
404
|
+
* If true, only integer values are allowed.
|
|
405
|
+
*/
|
|
406
|
+
integer?: boolean;
|
|
407
|
+
}
|
|
408
|
+
declare function Number({ integer, ...rest }: NumberProps): react_jsx_runtime.JSX.Element;
|
|
409
|
+
|
|
410
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
411
|
+
label?: string;
|
|
412
|
+
inputClassName?: string;
|
|
413
|
+
description?: string;
|
|
414
|
+
onClear?(): void;
|
|
415
|
+
}
|
|
416
|
+
declare const Input: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>>;
|
|
417
|
+
|
|
418
|
+
interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
419
|
+
label?: string;
|
|
420
|
+
}
|
|
421
|
+
declare const Checkbox: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>>;
|
|
422
|
+
|
|
423
|
+
interface RadioProps<T = HTMLInputElement> {
|
|
424
|
+
value: string;
|
|
425
|
+
label: string;
|
|
426
|
+
name: string;
|
|
427
|
+
checked?: boolean;
|
|
428
|
+
defaultChecked?: boolean;
|
|
429
|
+
helpText?: string;
|
|
430
|
+
optionData?: any;
|
|
431
|
+
disabled?: boolean;
|
|
432
|
+
required?: boolean;
|
|
433
|
+
invalid?: boolean;
|
|
434
|
+
className?: string;
|
|
435
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
436
|
+
containerProps?: React__default.HTMLAttributes<HTMLDivElement>;
|
|
437
|
+
onChange?: (value: string, optionData: any, event: ChangeEvent<T>) => void;
|
|
438
|
+
onFocus?: (event: FocusEvent<T>) => void;
|
|
439
|
+
onBlur?: (event: FocusEvent<T>) => void;
|
|
440
|
+
}
|
|
441
|
+
declare const Radio: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<RadioProps<HTMLInputElement> & React__default.RefAttributes<HTMLDivElement>>>;
|
|
442
|
+
|
|
443
|
+
interface Option {
|
|
444
|
+
label: string;
|
|
445
|
+
value: string;
|
|
446
|
+
helpText?: string;
|
|
447
|
+
}
|
|
448
|
+
interface RadioGroupProps<T = HTMLInputElement> {
|
|
449
|
+
label: string;
|
|
450
|
+
options: Option[];
|
|
451
|
+
value?: string;
|
|
452
|
+
defaultValue?: string;
|
|
453
|
+
name?: string;
|
|
454
|
+
disabled?: boolean;
|
|
455
|
+
required?: boolean;
|
|
456
|
+
description?: string;
|
|
457
|
+
errorMessage?: string;
|
|
458
|
+
className?: string;
|
|
459
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
460
|
+
containerProps?: React__default.HTMLAttributes<HTMLFieldSetElement>;
|
|
461
|
+
onChange?: (value: string, optionData: Option, event: React__default.ChangeEvent<T>) => void;
|
|
462
|
+
onFocus?: (event: React__default.FocusEvent<T>) => void;
|
|
463
|
+
onBlur?: (event: React__default.FocusEvent<T>) => void;
|
|
464
|
+
}
|
|
465
|
+
declare const RadioGroup: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<RadioGroupProps<HTMLInputElement> & React__default.RefAttributes<HTMLFieldSetElement>>>;
|
|
466
|
+
|
|
467
|
+
interface ToggleProps {
|
|
468
|
+
id?: string;
|
|
469
|
+
label: string;
|
|
470
|
+
name?: string;
|
|
471
|
+
checked?: boolean;
|
|
472
|
+
defaultChecked?: boolean;
|
|
473
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => Promise<void> | void;
|
|
474
|
+
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
475
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
476
|
+
disabled?: boolean;
|
|
477
|
+
className?: string;
|
|
478
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
479
|
+
containerProps?: React__default.HTMLAttributes<HTMLLabelElement>;
|
|
480
|
+
withLoading?: boolean;
|
|
481
|
+
}
|
|
482
|
+
declare const Toggle: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<ToggleProps & React__default.RefAttributes<HTMLLabelElement>>>;
|
|
483
|
+
|
|
484
|
+
interface ComboboxOption {
|
|
485
|
+
[key: string]: any;
|
|
486
|
+
label?: string;
|
|
487
|
+
value?: any;
|
|
488
|
+
subType?: string;
|
|
489
|
+
}
|
|
490
|
+
interface ComboboxProps {
|
|
491
|
+
id?: string;
|
|
492
|
+
label?: string;
|
|
493
|
+
description?: string;
|
|
494
|
+
errorMessage?: string;
|
|
495
|
+
required?: boolean;
|
|
496
|
+
className?: string;
|
|
497
|
+
containerProps?: React__default.FieldsetHTMLAttributes<HTMLFieldSetElement>;
|
|
498
|
+
disabled?: boolean;
|
|
499
|
+
invalid?: boolean;
|
|
500
|
+
loadOptions?: (inputValue: string) => Promise<ComboboxOption[] | {
|
|
501
|
+
options: ComboboxOption[];
|
|
502
|
+
hiddenOptionsCount: number;
|
|
503
|
+
}>;
|
|
504
|
+
options?: ComboboxOption[];
|
|
505
|
+
components?: Record<string, React__default.ComponentType<any>>;
|
|
506
|
+
allExpanded?: boolean;
|
|
507
|
+
onExpandAllToggle?: () => void;
|
|
508
|
+
inputClassName?: string;
|
|
509
|
+
noOptionsMessage?: string | ((obj: {
|
|
510
|
+
inputValue: string;
|
|
511
|
+
}) => string);
|
|
512
|
+
loadingMessage?: string | ((obj: {
|
|
513
|
+
inputValue: string;
|
|
514
|
+
}) => string);
|
|
515
|
+
showNarrowCriteriaHint?: boolean;
|
|
516
|
+
hiddenOptionsCount?: number;
|
|
517
|
+
hiddenOptionsMessage?: string;
|
|
518
|
+
onKeyDown?: (event: React__default.KeyboardEvent<HTMLElement>) => void;
|
|
519
|
+
placeholder?: string;
|
|
520
|
+
isSearchable?: boolean;
|
|
521
|
+
isClearable?: boolean;
|
|
522
|
+
isMulti?: boolean;
|
|
523
|
+
cacheOptions?: boolean;
|
|
524
|
+
defaultOptions?: boolean;
|
|
525
|
+
[key: string]: any;
|
|
526
|
+
}
|
|
527
|
+
declare const Combobox: React__default.ForwardRefExoticComponent<Omit<ComboboxProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
528
|
+
|
|
529
|
+
declare const baseClearIcon: react_jsx_runtime.JSX.Element;
|
|
530
|
+
|
|
531
|
+
declare const defaultDictionary$2: {
|
|
532
|
+
dropFilesText: string;
|
|
533
|
+
divider: string;
|
|
534
|
+
buttonText: string;
|
|
535
|
+
uploadingText: string;
|
|
536
|
+
};
|
|
537
|
+
interface FileUploadProps {
|
|
538
|
+
children?: React__default.ReactNode;
|
|
539
|
+
className?: string;
|
|
540
|
+
dictionary?: typeof defaultDictionary$2;
|
|
541
|
+
disabled?: boolean;
|
|
542
|
+
onDrop?: (acceptedFiles: File[], fileRejections: any[], event: any) => void;
|
|
543
|
+
loading?: boolean;
|
|
544
|
+
dropzoneOptions?: Record<string, any>;
|
|
545
|
+
onFocus?: () => void;
|
|
546
|
+
onBlur?: () => void;
|
|
547
|
+
id?: string;
|
|
548
|
+
}
|
|
549
|
+
declare const FileUpload: React__default.ForwardRefExoticComponent<FileUploadProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
550
|
+
|
|
551
|
+
interface MultiFileUploadProps {
|
|
552
|
+
dictionary?: typeof defaultDictionary$1;
|
|
553
|
+
dropzoneProps?: DropzoneOptions;
|
|
554
|
+
files: File[];
|
|
555
|
+
removeFileByName: (fileName: string) => void;
|
|
556
|
+
}
|
|
557
|
+
declare const defaultDictionary$1: {
|
|
558
|
+
button: string;
|
|
559
|
+
textOr: string;
|
|
560
|
+
textDropFiles: string;
|
|
561
|
+
};
|
|
562
|
+
declare function MultiFileUpload({ dictionary, dropzoneProps, files, removeFileByName, }: MultiFileUploadProps): react_jsx_runtime.JSX.Element;
|
|
563
|
+
|
|
564
|
+
interface RichTextProps {
|
|
565
|
+
className?: string;
|
|
566
|
+
formats?: string[];
|
|
567
|
+
maxLength?: number;
|
|
568
|
+
modules?: {
|
|
569
|
+
toolbar?: Array<Array<string | object>>;
|
|
570
|
+
clipboard?: {
|
|
571
|
+
matchVisual?: boolean;
|
|
572
|
+
};
|
|
573
|
+
[key: string]: unknown;
|
|
574
|
+
};
|
|
575
|
+
onChange?: (args: {
|
|
576
|
+
value: string;
|
|
577
|
+
}, delta: any, source: Sources) => void;
|
|
578
|
+
onBlur?: (delta: any, source: any, editor: any) => void;
|
|
579
|
+
value: string;
|
|
580
|
+
[key: string]: unknown;
|
|
581
|
+
}
|
|
582
|
+
declare const RichText: React__default.ForwardRefExoticComponent<Omit<RichTextProps, "ref"> & React__default.RefAttributes<Quill | null>>;
|
|
583
|
+
|
|
584
|
+
interface TextAreaProps extends Omit<InputHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
|
|
585
|
+
label?: string;
|
|
586
|
+
resizable?: boolean;
|
|
587
|
+
incomingClassName?: string;
|
|
588
|
+
onChange(event: React__default.ChangeEvent<HTMLTextAreaElement>, data: {
|
|
589
|
+
value: string;
|
|
590
|
+
}): void;
|
|
591
|
+
rows?: number | undefined;
|
|
592
|
+
}
|
|
593
|
+
declare function TextArea({ resizable, incomingClassName, className, onChange, rows, ...rest }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
594
|
+
|
|
595
|
+
interface UserOption extends Record<string, unknown> {
|
|
596
|
+
id?: string;
|
|
597
|
+
firstName: string;
|
|
598
|
+
lastName: string;
|
|
599
|
+
fullName?: string;
|
|
600
|
+
unitName: string;
|
|
601
|
+
profileTypes?: string[];
|
|
602
|
+
userAccountId?: string;
|
|
603
|
+
personId?: string;
|
|
604
|
+
contactEmail?: string;
|
|
605
|
+
email?: string;
|
|
606
|
+
affiliations?: Array<{
|
|
607
|
+
primaryAppointment: boolean;
|
|
608
|
+
unitName?: string;
|
|
609
|
+
}>;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
interface UserSelectProps<T> extends ComboboxProps {
|
|
613
|
+
load(params: {
|
|
614
|
+
searchText: string;
|
|
615
|
+
}): Promise<{
|
|
616
|
+
items: T[];
|
|
617
|
+
totalPages: number;
|
|
618
|
+
totalElements: number;
|
|
619
|
+
}>;
|
|
620
|
+
}
|
|
621
|
+
declare function UserSelect<T extends UserOption>(props: UserSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
622
|
+
|
|
623
|
+
interface AttachmentType {
|
|
624
|
+
active: boolean;
|
|
625
|
+
hash: string;
|
|
626
|
+
value: string;
|
|
627
|
+
}
|
|
628
|
+
interface Note {
|
|
629
|
+
createdBy: string;
|
|
630
|
+
createdOn: string;
|
|
631
|
+
message: string;
|
|
632
|
+
noteId: string;
|
|
633
|
+
projectId: string;
|
|
634
|
+
submissionId: string;
|
|
635
|
+
tenantId: string;
|
|
636
|
+
updatedBy: string | null;
|
|
637
|
+
updatedOn: string;
|
|
638
|
+
updatedByFullName?: string;
|
|
639
|
+
createdByFullName?: string;
|
|
640
|
+
}
|
|
641
|
+
interface Attachment {
|
|
642
|
+
name?: string;
|
|
643
|
+
attachmentId: string;
|
|
644
|
+
attachmentSource: string;
|
|
645
|
+
attachmentType: string;
|
|
646
|
+
deletedBy: string | null;
|
|
647
|
+
deletedOn: string | null;
|
|
648
|
+
fileName: string;
|
|
649
|
+
filePath: string;
|
|
650
|
+
hash: string | null;
|
|
651
|
+
noteId: string;
|
|
652
|
+
projectId: string;
|
|
653
|
+
submissionId: string;
|
|
654
|
+
tenantId: string;
|
|
655
|
+
uploadedBy: string;
|
|
656
|
+
uploadedOn: string;
|
|
657
|
+
}
|
|
658
|
+
type NoteWithAttachments = {
|
|
659
|
+
note: Note;
|
|
660
|
+
attachments: Attachment[];
|
|
661
|
+
};
|
|
662
|
+
interface FormNoteAttachmentsViewProps {
|
|
663
|
+
/** List of available attachment types */
|
|
664
|
+
attachmentTypes?: AttachmentType[];
|
|
665
|
+
/** Function to determine if a note can be edited based on createdBy userId */
|
|
666
|
+
canEditNotes: (createdBy?: string) => boolean;
|
|
667
|
+
/** Format string for displaying dates */
|
|
668
|
+
datetimeFormat: string;
|
|
669
|
+
/** Function to delete an attachment by ID */
|
|
670
|
+
deleteAttachment: (attachmentId: string) => Promise<void>;
|
|
671
|
+
/** Function to delete a note item by ID */
|
|
672
|
+
deleteItem: (noteId: string) => Promise<void>;
|
|
673
|
+
/** Dictionary for i18n labels and messages */
|
|
674
|
+
dictionary?: typeof baseDictionary;
|
|
675
|
+
/** Function to download a file by attachment ID */
|
|
676
|
+
downloadFile: (attachmentId: string) => Promise<void>;
|
|
677
|
+
/** Function to fetch paginated note items */
|
|
678
|
+
fetchItems: (pageNumber: number, itemsPerPage: number) => Promise<Array<{
|
|
679
|
+
note: Note;
|
|
680
|
+
attachments: Attachment[];
|
|
681
|
+
}>>;
|
|
682
|
+
/** Function to save a new note */
|
|
683
|
+
saveItem: (message: string) => Promise<{
|
|
684
|
+
noteId: string;
|
|
685
|
+
}>;
|
|
686
|
+
/** Timezone for date formatting */
|
|
687
|
+
timezone: string;
|
|
688
|
+
/** Function to update an existing note */
|
|
689
|
+
updateItem: (noteId: string, noteData: Partial<Note>) => Promise<void>;
|
|
690
|
+
/** Function to upload an attachment */
|
|
691
|
+
uploadAttachment: (payload: {
|
|
692
|
+
attachment: File;
|
|
693
|
+
attachmentType: string;
|
|
694
|
+
noteId?: string;
|
|
695
|
+
}) => Promise<void>;
|
|
696
|
+
/** Callback for uploading state changes */
|
|
697
|
+
uploadingStateChanged?: (state: {
|
|
698
|
+
isUploading: boolean;
|
|
699
|
+
}) => void;
|
|
700
|
+
}
|
|
701
|
+
declare const findFirstActiveAttachmentType: (attachmentTypes: AttachmentType[]) => string | undefined;
|
|
702
|
+
declare const baseDictionary: {
|
|
703
|
+
attachmentTypeSelector: {
|
|
704
|
+
label: string;
|
|
705
|
+
placeholder: string;
|
|
706
|
+
};
|
|
707
|
+
multiFileUpload: {
|
|
708
|
+
button: string;
|
|
709
|
+
textOr: string;
|
|
710
|
+
textDropFiles: string;
|
|
711
|
+
};
|
|
712
|
+
addNoteAttachment: string;
|
|
713
|
+
lengthError: string;
|
|
714
|
+
notePlaceholder: string;
|
|
715
|
+
cancelButtonLabel: string;
|
|
716
|
+
cancelEditNote: string;
|
|
717
|
+
confirmationModal: {
|
|
718
|
+
title: string;
|
|
719
|
+
};
|
|
720
|
+
confirmButtonLabel: string;
|
|
721
|
+
error: string;
|
|
722
|
+
noteModal: {
|
|
723
|
+
editTitle: string;
|
|
724
|
+
viewTitle: string;
|
|
725
|
+
};
|
|
726
|
+
saveEditNote: string;
|
|
727
|
+
};
|
|
728
|
+
declare function FormNoteAttachmentsView({ attachmentTypes, canEditNotes, deleteAttachment, deleteItem, dictionary: externalDictionary, downloadFile, fetchItems, saveItem, updateItem, uploadAttachment, uploadingStateChanged, }: FormNoteAttachmentsViewProps): react_jsx_runtime.JSX.Element;
|
|
729
|
+
|
|
730
|
+
interface FormattedDateProps {
|
|
731
|
+
date: Date | string;
|
|
732
|
+
format?: string;
|
|
733
|
+
timezone?: string;
|
|
734
|
+
fallback?: string;
|
|
735
|
+
isDateTime?: boolean;
|
|
736
|
+
tenantFormat?: string;
|
|
737
|
+
tenantTimezone?: string;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Renders a formatted date component.
|
|
741
|
+
*
|
|
742
|
+
* @param props - The component props.
|
|
743
|
+
* @returns - The formatted date component.
|
|
744
|
+
*/
|
|
745
|
+
declare const FormattedDate: React__default.NamedExoticComponent<FormattedDateProps>;
|
|
746
|
+
|
|
747
|
+
interface FormattedRichTextProps {
|
|
748
|
+
className?: string;
|
|
749
|
+
maxLength?: string | number;
|
|
750
|
+
singleLine?: boolean;
|
|
751
|
+
plainText?: boolean;
|
|
752
|
+
value?: string;
|
|
753
|
+
showLinks?: boolean;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare const FormattedRichText: React__default.NamedExoticComponent<FormattedRichTextProps>;
|
|
757
|
+
|
|
758
|
+
interface FormattedDatetimeProps {
|
|
759
|
+
date: Date | string;
|
|
760
|
+
format?: string;
|
|
761
|
+
tenantFormat?: string;
|
|
762
|
+
fallback?: string;
|
|
763
|
+
tenantTimezone?: string;
|
|
764
|
+
timezone?: string;
|
|
765
|
+
[key: string]: any;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Component to display a formatted date and time.
|
|
769
|
+
*
|
|
770
|
+
* @component
|
|
771
|
+
* @param props - The component props.
|
|
772
|
+
* @returns - The rendered FormattedDate component.
|
|
773
|
+
*/
|
|
774
|
+
declare const FormattedDatetime: React__default.FC<FormattedDatetimeProps>;
|
|
775
|
+
|
|
776
|
+
type FieldType = typeof FIELD_TYPES.DATE | typeof FIELD_TYPES.DATETIME | typeof FIELD_TYPES.RICH_TEXT;
|
|
777
|
+
interface FormattedValueProps {
|
|
778
|
+
type: FieldType;
|
|
779
|
+
value?: unknown;
|
|
780
|
+
fallback?: string;
|
|
781
|
+
[key: string]: unknown;
|
|
782
|
+
}
|
|
783
|
+
declare const FormattedValue: React__default.NamedExoticComponent<FormattedValueProps>;
|
|
784
|
+
|
|
785
|
+
declare const defaultDictionary: {
|
|
786
|
+
comboboxPlaceholder: undefined;
|
|
787
|
+
comboboxLoadingMessage: string;
|
|
788
|
+
comboboxLabel: string;
|
|
789
|
+
comboboxDescription: string;
|
|
790
|
+
cancel: string;
|
|
791
|
+
confirm: string;
|
|
792
|
+
modalHeader: string;
|
|
793
|
+
triggerButtonLabel: string;
|
|
794
|
+
removeTaskButtonLabel: string;
|
|
795
|
+
successMessage: string;
|
|
796
|
+
};
|
|
797
|
+
declare function adminLoadOptions({ sort, order, searchText, milestoneCategory, submissionId, }: {
|
|
798
|
+
sort: string;
|
|
799
|
+
order?: string;
|
|
800
|
+
searchText: string;
|
|
801
|
+
milestoneCategory: string;
|
|
802
|
+
submissionId?: string;
|
|
803
|
+
}): Promise<any>;
|
|
804
|
+
declare function linkTasksToMilestone(milestoneId: string, data: {
|
|
805
|
+
taskId: string;
|
|
806
|
+
link: boolean;
|
|
807
|
+
}[]): Promise<any>;
|
|
808
|
+
|
|
809
|
+
type MilestoneOption = {
|
|
810
|
+
value: string;
|
|
811
|
+
label: string;
|
|
812
|
+
taskCounter: string;
|
|
813
|
+
taskName: string;
|
|
814
|
+
};
|
|
815
|
+
interface TaskWithVariables {
|
|
816
|
+
id: string;
|
|
817
|
+
owner: string;
|
|
818
|
+
assignee: string;
|
|
819
|
+
name: string;
|
|
820
|
+
description: string;
|
|
821
|
+
createTime: string;
|
|
822
|
+
dueDate: string;
|
|
823
|
+
priority: number;
|
|
824
|
+
suspended: boolean;
|
|
825
|
+
tenantId: string;
|
|
826
|
+
category: string;
|
|
827
|
+
rootScopeId: string;
|
|
828
|
+
rootScopeType: string;
|
|
829
|
+
rootScopeName: string;
|
|
830
|
+
rootScopeBusinessKey: string;
|
|
831
|
+
rootScopeDefinitionId: string;
|
|
832
|
+
rootScopeDefinitionKey: string;
|
|
833
|
+
rootScopeDefinitionName: string;
|
|
834
|
+
rootScopeDefinitionCategory: string;
|
|
835
|
+
parentScopeId?: string;
|
|
836
|
+
parentScopeType?: string;
|
|
837
|
+
parentScopeName?: string;
|
|
838
|
+
parentScopeBusinessKey?: string;
|
|
839
|
+
parentScopeDefinitionId?: string;
|
|
840
|
+
parentScopeDefinitionKey?: string;
|
|
841
|
+
parentScopeDefinitionName?: string;
|
|
842
|
+
parentScopeDefinitionCategory?: string;
|
|
843
|
+
root: object;
|
|
844
|
+
parent: object;
|
|
845
|
+
variables: TaskVariables;
|
|
846
|
+
}
|
|
847
|
+
interface TaskVariables {
|
|
848
|
+
lastUpdated: string;
|
|
849
|
+
lastUpdatedBy: string;
|
|
850
|
+
assignedFrom: string;
|
|
851
|
+
taskCounter: string;
|
|
852
|
+
milestoneId: string;
|
|
853
|
+
taskCounterNumeric: number;
|
|
854
|
+
assignee: string;
|
|
855
|
+
category: string;
|
|
856
|
+
milestoneCounter: string;
|
|
857
|
+
url?: string;
|
|
858
|
+
teamName?: string;
|
|
859
|
+
toTeam?: string;
|
|
860
|
+
completedBy?: string;
|
|
861
|
+
status: string;
|
|
862
|
+
}
|
|
863
|
+
interface Task {
|
|
864
|
+
id: string;
|
|
865
|
+
taskCounter: string;
|
|
866
|
+
taskCounterNumeric: number;
|
|
867
|
+
task: string;
|
|
868
|
+
userCategory: string;
|
|
869
|
+
assignee: string;
|
|
870
|
+
category: string;
|
|
871
|
+
}
|
|
872
|
+
interface LinkToMilestoneProps<T extends Task> {
|
|
873
|
+
milestoneCategory: string;
|
|
874
|
+
tasks: T[];
|
|
875
|
+
dictionary?: typeof defaultDictionary;
|
|
876
|
+
tableColumns?: DynamicTableColumn[];
|
|
877
|
+
tableRenderCell?: RenderCellCallback<DynamicTableRow<T>>;
|
|
878
|
+
onSuccess?: () => Promise<void>;
|
|
879
|
+
loadMilestoneOptions?(searchValue: string): Promise<MilestoneOption[]>;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
declare const LinkToMilestone: React__default.MemoExoticComponent<(<T extends Task>(props: LinkToMilestoneProps<T>) => react_jsx_runtime.JSX.Element)>;
|
|
883
|
+
|
|
884
|
+
declare function LoadingIndicator(props: React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
885
|
+
|
|
886
|
+
interface AlertDialogProps {
|
|
887
|
+
title: React__default.ReactNode;
|
|
888
|
+
description: React__default.ReactNode;
|
|
889
|
+
isOpen: boolean;
|
|
890
|
+
onCancel: () => void;
|
|
891
|
+
hideCancel?: boolean;
|
|
892
|
+
onConfirm: () => void;
|
|
893
|
+
cancelText?: string;
|
|
894
|
+
confirmText?: string;
|
|
895
|
+
}
|
|
896
|
+
declare const AlertDialog: React__default.ForwardRefExoticComponent<AlertDialogProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
897
|
+
|
|
898
|
+
interface ModalDialogProps {
|
|
899
|
+
/** The title of the modal dialog */
|
|
900
|
+
title: string | React__default.ReactElement | React__default.ReactNode;
|
|
901
|
+
/** Whether the modal dialog is open */
|
|
902
|
+
isOpen: boolean;
|
|
903
|
+
/** A callback function called when the cancel button is clicked */
|
|
904
|
+
onCancel: (event: React__default.SyntheticEvent) => void;
|
|
905
|
+
/** A callback function called when the confirm button is clicked */
|
|
906
|
+
onConfirm: (event: React__default.SyntheticEvent) => void;
|
|
907
|
+
/** The text for the cancel button */
|
|
908
|
+
cancelText?: string;
|
|
909
|
+
/** The text for the confirm button */
|
|
910
|
+
confirmText?: string;
|
|
911
|
+
/** The id CSS selector for the element to focus when the modal dialog opens */
|
|
912
|
+
initialFocus?: string;
|
|
913
|
+
/** Additional CSS class names for the presentation element */
|
|
914
|
+
presentationClassName?: string;
|
|
915
|
+
/** Additional CSS class names for the dialog element */
|
|
916
|
+
dialogClassName?: string;
|
|
917
|
+
/** Additional props to pass to the confirm button */
|
|
918
|
+
confirmButtonProps?: ButtonProps;
|
|
919
|
+
/** ARIA describedby attribute for accessibility */
|
|
920
|
+
ariaDescribedBy?: string;
|
|
921
|
+
/** Content to be rendered inside the modal */
|
|
922
|
+
children?: React__default.ReactNode;
|
|
923
|
+
/** Actions to be rendered inside the modal */
|
|
924
|
+
actions?: React__default.ReactNode;
|
|
925
|
+
}
|
|
926
|
+
declare const ModalDialog: React__default.ForwardRefExoticComponent<ModalDialogProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
927
|
+
|
|
928
|
+
interface NavLinkProps extends Omit<NavLinkProps$1, 'to'> {
|
|
929
|
+
path: string;
|
|
930
|
+
text: string;
|
|
931
|
+
}
|
|
932
|
+
declare function NavLink({ path, text, ...props }: NavLinkProps): react_jsx_runtime.JSX.Element;
|
|
933
|
+
|
|
934
|
+
interface BorderProps {
|
|
935
|
+
all?: boolean;
|
|
936
|
+
top?: boolean;
|
|
937
|
+
right?: boolean;
|
|
938
|
+
bottom?: boolean;
|
|
939
|
+
left?: boolean;
|
|
940
|
+
}
|
|
941
|
+
interface RadiusProps {
|
|
942
|
+
all?: boolean;
|
|
943
|
+
top?: boolean;
|
|
944
|
+
topLeft?: boolean;
|
|
945
|
+
topRight?: boolean;
|
|
946
|
+
bottom?: boolean;
|
|
947
|
+
bottomLeft?: boolean;
|
|
948
|
+
bottomRight?: boolean;
|
|
949
|
+
}
|
|
950
|
+
interface PaddedCellProps {
|
|
951
|
+
/** Content to be rendered inside the cell */
|
|
952
|
+
children?: React__default.ReactNode;
|
|
953
|
+
/** Additional CSS class name for the cell */
|
|
954
|
+
className?: string;
|
|
955
|
+
/** Border configuration for the cell */
|
|
956
|
+
border?: BorderProps;
|
|
957
|
+
/** Border radius configuration for the cell */
|
|
958
|
+
radius?: RadiusProps;
|
|
959
|
+
}
|
|
960
|
+
declare function PaddedCell(props: PaddedCellProps): react_jsx_runtime.JSX.Element;
|
|
961
|
+
|
|
962
|
+
interface PendoProps {
|
|
963
|
+
apiKey: string;
|
|
964
|
+
product: string;
|
|
965
|
+
userId: string;
|
|
966
|
+
hostname: string;
|
|
967
|
+
email?: string;
|
|
968
|
+
zendeskKey: string;
|
|
969
|
+
}
|
|
970
|
+
declare const Pendo: ({ apiKey, product, userId, hostname, email, zendeskKey, }: PendoProps) => null;
|
|
971
|
+
|
|
972
|
+
interface PopupProps extends PopoverProps {
|
|
973
|
+
children: React__default.ReactNode;
|
|
974
|
+
dialogProps?: React__default.ComponentProps<typeof Dialog>;
|
|
975
|
+
closeButton?: React__default.ReactNode;
|
|
976
|
+
closeButtonProps?: React__default.ComponentProps<typeof Button>;
|
|
977
|
+
}
|
|
978
|
+
declare function Popup({ isOpen, onOpenChange, triggerRef, className, children, dialogProps, closeButton, closeButtonProps, ...popupProps }: PopupProps): react_jsx_runtime.JSX.Element;
|
|
979
|
+
|
|
980
|
+
interface PreventLeaveDialogProps {
|
|
981
|
+
prevent?: boolean;
|
|
982
|
+
message?: string;
|
|
983
|
+
}
|
|
984
|
+
declare const PreventLeaveDialog: React$1.NamedExoticComponent<PreventLeaveDialogProps>;
|
|
985
|
+
|
|
986
|
+
interface BreadcrumbItem {
|
|
987
|
+
text: string;
|
|
988
|
+
link?: string;
|
|
989
|
+
}
|
|
990
|
+
interface SectionHeaderProps {
|
|
991
|
+
className?: string;
|
|
992
|
+
style?: React__default.CSSProperties;
|
|
993
|
+
/** Loading state for the header */
|
|
994
|
+
isLoading?: boolean;
|
|
995
|
+
/** The main header text or node */
|
|
996
|
+
header?: React__default.ReactNode;
|
|
997
|
+
/** Array of breadcrumb items or a single React node */
|
|
998
|
+
breadcrumbs?: BreadcrumbItem[] | React__default.ReactNode;
|
|
999
|
+
/** Array of button elements */
|
|
1000
|
+
buttons?: React__default.ReactNode[];
|
|
1001
|
+
/** Heading type for SubHeader (e.g., 'h1', 'h2') */
|
|
1002
|
+
headingType?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
1003
|
+
}
|
|
1004
|
+
declare const SectionHeader: React__default.ForwardRefExoticComponent<SectionHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1005
|
+
|
|
1006
|
+
type Column = {
|
|
1007
|
+
keys?: string[];
|
|
1008
|
+
columnHeader: string;
|
|
1009
|
+
id: string;
|
|
1010
|
+
sortKey?: string;
|
|
1011
|
+
disabled?: boolean;
|
|
1012
|
+
active?: boolean;
|
|
1013
|
+
};
|
|
1014
|
+
type SetViewProps = {
|
|
1015
|
+
initialColumns: Column[];
|
|
1016
|
+
columns: Column[];
|
|
1017
|
+
onChangeColumns(columns: Column[]): void;
|
|
1018
|
+
dictionary?: Record<string, ReactNode>;
|
|
1019
|
+
};
|
|
1020
|
+
declare const SetView: React__default.NamedExoticComponent<SetViewProps>;
|
|
1021
|
+
|
|
1022
|
+
declare function useActiveColumns({ tableColumns, storageKey, userId, }: {
|
|
1023
|
+
tableColumns: Column[];
|
|
1024
|
+
storageKey: string;
|
|
1025
|
+
userId: string;
|
|
1026
|
+
}): {
|
|
1027
|
+
columns: Column[];
|
|
1028
|
+
onChangeColumns: (columns: Column[]) => void;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
interface SubHeaderProps {
|
|
1032
|
+
children: React__default.ReactNode;
|
|
1033
|
+
className?: string;
|
|
1034
|
+
headingType?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
1035
|
+
}
|
|
1036
|
+
declare function SubHeader({ children, className, headingType, }: SubHeaderProps): React__default.DetailedReactHTMLElement<{
|
|
1037
|
+
className: string;
|
|
1038
|
+
children: React__default.ReactNode;
|
|
1039
|
+
}, HTMLElement>;
|
|
1040
|
+
|
|
1041
|
+
declare function Submenu({ label, options }: {
|
|
1042
|
+
label: any;
|
|
1043
|
+
options: any;
|
|
1044
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1045
|
+
|
|
1046
|
+
interface Pane {
|
|
1047
|
+
menuItem: string;
|
|
1048
|
+
ref: RefObject<HTMLLIElement>;
|
|
1049
|
+
render: () => React__default.ReactNode;
|
|
1050
|
+
className?: string;
|
|
1051
|
+
}
|
|
1052
|
+
interface TabsProps {
|
|
1053
|
+
className?: string;
|
|
1054
|
+
panes: Pane[];
|
|
1055
|
+
disabled?: boolean;
|
|
1056
|
+
}
|
|
1057
|
+
declare function Tabs({ className, panes, disabled }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
1058
|
+
|
|
1059
|
+
declare const taskDictionary: {
|
|
1060
|
+
entityId: string;
|
|
1061
|
+
task: string;
|
|
1062
|
+
nameLabel: string;
|
|
1063
|
+
actionButtonLabels: {
|
|
1064
|
+
assignAndSend: string;
|
|
1065
|
+
saveChanges: string;
|
|
1066
|
+
close: string;
|
|
1067
|
+
cancel: string;
|
|
1068
|
+
busy: string;
|
|
1069
|
+
};
|
|
1070
|
+
notifications: {
|
|
1071
|
+
sent: string;
|
|
1072
|
+
updated: string;
|
|
1073
|
+
};
|
|
1074
|
+
internalDueDateLabel: string;
|
|
1075
|
+
dueDate: string;
|
|
1076
|
+
attachmentsDialogError: string;
|
|
1077
|
+
attachmentsDialogMessage: string;
|
|
1078
|
+
confirmCancelTitle: string;
|
|
1079
|
+
confirmCancel: string;
|
|
1080
|
+
description: string;
|
|
1081
|
+
open: string;
|
|
1082
|
+
inProgress: string;
|
|
1083
|
+
onHold: string;
|
|
1084
|
+
closed: string;
|
|
1085
|
+
createdBy: string;
|
|
1086
|
+
assignTo: {
|
|
1087
|
+
groupLabel: string;
|
|
1088
|
+
placeholderPrefix: string;
|
|
1089
|
+
team: string;
|
|
1090
|
+
person: string;
|
|
1091
|
+
teamMember: string;
|
|
1092
|
+
error: string;
|
|
1093
|
+
};
|
|
1094
|
+
category: string;
|
|
1095
|
+
inactiveUser: string;
|
|
1096
|
+
urlPlaceholder: string;
|
|
1097
|
+
url: string;
|
|
1098
|
+
invalidUrl: string;
|
|
1099
|
+
comments: {
|
|
1100
|
+
label: string;
|
|
1101
|
+
charLimitInfo: string;
|
|
1102
|
+
charLimitExceeded: string;
|
|
1103
|
+
emptyComment: string;
|
|
1104
|
+
addCommentButton: string;
|
|
1105
|
+
saveCommentButton: string;
|
|
1106
|
+
cancelCommentButton: string;
|
|
1107
|
+
};
|
|
1108
|
+
nameCharLimitInfo: string;
|
|
1109
|
+
descriptionCharLimitInfo: string;
|
|
1110
|
+
nameCharLimitExceeded: string;
|
|
1111
|
+
descriptionCharLimitExceeded: string;
|
|
1112
|
+
status: string;
|
|
1113
|
+
attachmentsLabel: string;
|
|
1114
|
+
search: {
|
|
1115
|
+
searchingMessage: string;
|
|
1116
|
+
};
|
|
1117
|
+
categorySearch: {
|
|
1118
|
+
searchingMessage: string;
|
|
1119
|
+
placeholder: string;
|
|
1120
|
+
};
|
|
1121
|
+
attachmentsForm: {
|
|
1122
|
+
description: string;
|
|
1123
|
+
fileInput: {
|
|
1124
|
+
dropFilesText: string;
|
|
1125
|
+
divider: string;
|
|
1126
|
+
buttonText: string;
|
|
1127
|
+
uploadingText: string;
|
|
1128
|
+
};
|
|
1129
|
+
tableFileList: {
|
|
1130
|
+
columns: string[];
|
|
1131
|
+
removeFileButtonLabel: string;
|
|
1132
|
+
};
|
|
1133
|
+
fileUploaderHook: {
|
|
1134
|
+
exceedsSize: string;
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
reminders: {
|
|
1138
|
+
dueDate: string;
|
|
1139
|
+
label: string;
|
|
1140
|
+
addButton: string;
|
|
1141
|
+
statusSent: string;
|
|
1142
|
+
statusError: string;
|
|
1143
|
+
statusUnknown: string;
|
|
1144
|
+
formLabel: string;
|
|
1145
|
+
pastDateError: string;
|
|
1146
|
+
singleReminderPastDateError: string;
|
|
1147
|
+
internalDateEmptyError: string;
|
|
1148
|
+
externalDateEmptyError: string;
|
|
1149
|
+
remindBeforeLabel: string;
|
|
1150
|
+
remindAfterLabel: string;
|
|
1151
|
+
internalLabel: string;
|
|
1152
|
+
externalLabel: string;
|
|
1153
|
+
remindBeforeInternalLabel: string;
|
|
1154
|
+
remindAfterInternalLabel: string;
|
|
1155
|
+
remindBeforeExternalLabel: string;
|
|
1156
|
+
remindAfterExternalLabel: string;
|
|
1157
|
+
saveNewReminder: string;
|
|
1158
|
+
cancelNewReminder: string;
|
|
1159
|
+
emptyList: string;
|
|
1160
|
+
};
|
|
1161
|
+
unsavedChangesBeforeSaveDialog: {
|
|
1162
|
+
title: string;
|
|
1163
|
+
description: string;
|
|
1164
|
+
};
|
|
1165
|
+
milestone: {
|
|
1166
|
+
label: string;
|
|
1167
|
+
placeholder: string;
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
declare const milestoneDictionary: {
|
|
1171
|
+
entityId: string;
|
|
1172
|
+
nameLabel: string;
|
|
1173
|
+
internalDueDateLabel: string;
|
|
1174
|
+
dueDate: string;
|
|
1175
|
+
notifications: {
|
|
1176
|
+
sent: string;
|
|
1177
|
+
updated: string;
|
|
1178
|
+
};
|
|
1179
|
+
actionButtonLabels: {
|
|
1180
|
+
assignAndSend: string;
|
|
1181
|
+
saveChanges: string;
|
|
1182
|
+
close: string;
|
|
1183
|
+
cancel: string;
|
|
1184
|
+
busy: string;
|
|
1185
|
+
};
|
|
1186
|
+
linkedTasks: {
|
|
1187
|
+
accordionLabel: string;
|
|
1188
|
+
addTaskButtonLabel: string;
|
|
1189
|
+
createTaskButtonLabel: string;
|
|
1190
|
+
comboboxPlaceholder: string;
|
|
1191
|
+
comboboxLoadingMessage: string;
|
|
1192
|
+
removeLinkButtonLabel: string;
|
|
1193
|
+
};
|
|
1194
|
+
attachmentsDialogError: string;
|
|
1195
|
+
attachmentsDialogMessage: string;
|
|
1196
|
+
confirmCancelTitle: string;
|
|
1197
|
+
confirmCancel: string;
|
|
1198
|
+
description: string;
|
|
1199
|
+
open: string;
|
|
1200
|
+
inProgress: string;
|
|
1201
|
+
onHold: string;
|
|
1202
|
+
closed: string;
|
|
1203
|
+
createdBy: string;
|
|
1204
|
+
assignTo: {
|
|
1205
|
+
groupLabel: string;
|
|
1206
|
+
placeholderPrefix: string;
|
|
1207
|
+
team: string;
|
|
1208
|
+
person: string;
|
|
1209
|
+
teamMember: string;
|
|
1210
|
+
error: string;
|
|
1211
|
+
};
|
|
1212
|
+
category: string;
|
|
1213
|
+
inactiveUser: string;
|
|
1214
|
+
urlPlaceholder: string;
|
|
1215
|
+
url: string;
|
|
1216
|
+
invalidUrl: string;
|
|
1217
|
+
comments: {
|
|
1218
|
+
label: string;
|
|
1219
|
+
charLimitInfo: string;
|
|
1220
|
+
charLimitExceeded: string;
|
|
1221
|
+
emptyComment: string;
|
|
1222
|
+
addCommentButton: string;
|
|
1223
|
+
saveCommentButton: string;
|
|
1224
|
+
cancelCommentButton: string;
|
|
1225
|
+
};
|
|
1226
|
+
nameCharLimitInfo: string;
|
|
1227
|
+
descriptionCharLimitInfo: string;
|
|
1228
|
+
nameCharLimitExceeded: string;
|
|
1229
|
+
descriptionCharLimitExceeded: string;
|
|
1230
|
+
status: string;
|
|
1231
|
+
attachmentsLabel: string;
|
|
1232
|
+
search: {
|
|
1233
|
+
searchingMessage: string;
|
|
1234
|
+
};
|
|
1235
|
+
categorySearch: {
|
|
1236
|
+
searchingMessage: string;
|
|
1237
|
+
placeholder: string;
|
|
1238
|
+
};
|
|
1239
|
+
attachmentsForm: {
|
|
1240
|
+
description: string;
|
|
1241
|
+
fileInput: {
|
|
1242
|
+
dropFilesText: string;
|
|
1243
|
+
divider: string;
|
|
1244
|
+
buttonText: string;
|
|
1245
|
+
uploadingText: string;
|
|
1246
|
+
};
|
|
1247
|
+
tableFileList: {
|
|
1248
|
+
columns: string[];
|
|
1249
|
+
removeFileButtonLabel: string;
|
|
1250
|
+
};
|
|
1251
|
+
fileUploaderHook: {
|
|
1252
|
+
exceedsSize: string;
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
reminders: {
|
|
1256
|
+
dueDate: string;
|
|
1257
|
+
label: string;
|
|
1258
|
+
addButton: string;
|
|
1259
|
+
statusSent: string;
|
|
1260
|
+
statusError: string;
|
|
1261
|
+
statusUnknown: string;
|
|
1262
|
+
formLabel: string;
|
|
1263
|
+
pastDateError: string;
|
|
1264
|
+
singleReminderPastDateError: string;
|
|
1265
|
+
internalDateEmptyError: string;
|
|
1266
|
+
externalDateEmptyError: string;
|
|
1267
|
+
remindBeforeLabel: string;
|
|
1268
|
+
remindAfterLabel: string;
|
|
1269
|
+
internalLabel: string;
|
|
1270
|
+
externalLabel: string;
|
|
1271
|
+
remindBeforeInternalLabel: string;
|
|
1272
|
+
remindAfterInternalLabel: string;
|
|
1273
|
+
remindBeforeExternalLabel: string;
|
|
1274
|
+
remindAfterExternalLabel: string;
|
|
1275
|
+
saveNewReminder: string;
|
|
1276
|
+
cancelNewReminder: string;
|
|
1277
|
+
emptyList: string;
|
|
1278
|
+
};
|
|
1279
|
+
unsavedChangesBeforeSaveDialog: {
|
|
1280
|
+
title: string;
|
|
1281
|
+
description: string;
|
|
1282
|
+
};
|
|
1283
|
+
milestone: {
|
|
1284
|
+
label: string;
|
|
1285
|
+
placeholder: string;
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
|
|
1289
|
+
interface FieldProp$1 {
|
|
1290
|
+
disabled?: boolean;
|
|
1291
|
+
value?: string;
|
|
1292
|
+
categoryGroup?: string;
|
|
1293
|
+
isAdmin?: boolean;
|
|
1294
|
+
}
|
|
1295
|
+
interface LinkedTasksFieldProps {
|
|
1296
|
+
onCreateTaskClick?(): void;
|
|
1297
|
+
}
|
|
1298
|
+
interface FormProps {
|
|
1299
|
+
enableComments?: boolean;
|
|
1300
|
+
enableLinkedTasks?: boolean;
|
|
1301
|
+
id?: string;
|
|
1302
|
+
submissionId?: string;
|
|
1303
|
+
onEntityLoaded?: (data: Partial<EntityFormValues>) => EntityFormValues;
|
|
1304
|
+
onConfirm?: <E>(payload: E) => Promise<E>;
|
|
1305
|
+
onSuccess?: (successMessage: string, response: unknown) => void;
|
|
1306
|
+
onBeforeSuccess?: (response: unknown) => Promise<void>;
|
|
1307
|
+
onError?: (errorMessage: string, error: Error) => void;
|
|
1308
|
+
onCancel?: (info: {
|
|
1309
|
+
unsavedChanges: boolean;
|
|
1310
|
+
}, event: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
1311
|
+
fieldProps?: {
|
|
1312
|
+
linkedTasks?: LinkedTasksFieldProps;
|
|
1313
|
+
url?: FieldProp$1;
|
|
1314
|
+
search?: FieldProp$1;
|
|
1315
|
+
permissions?: FieldProp$1;
|
|
1316
|
+
category?: FieldProp$1;
|
|
1317
|
+
};
|
|
1318
|
+
renderActions?: (node: ReactNode) => ReactNode;
|
|
1319
|
+
allowToRemoveAttachmentsByRoles?: string[];
|
|
1320
|
+
allowToRemoveCommentsByRoles?: string[];
|
|
1321
|
+
dictionary?: typeof milestoneDictionary;
|
|
1322
|
+
type?: 'SP_ADHOC' | 'ADMIN_ADHOC';
|
|
1323
|
+
}
|
|
1324
|
+
type ReminderStatus = 'PENDING' | 'SENT' | 'ERROR' | 'NOT_COMPLETED';
|
|
1325
|
+
type Reminder = {
|
|
1326
|
+
id: string;
|
|
1327
|
+
taskId: string;
|
|
1328
|
+
status: ReminderStatus;
|
|
1329
|
+
daysTillExecute: number;
|
|
1330
|
+
isAfter: boolean;
|
|
1331
|
+
isForInternalDueDate: boolean;
|
|
1332
|
+
createdBy: string;
|
|
1333
|
+
updatedBy: string | null;
|
|
1334
|
+
createdAt: string;
|
|
1335
|
+
updatedAt: string | null;
|
|
1336
|
+
deletedAt: string | null;
|
|
1337
|
+
remindAt: Date;
|
|
1338
|
+
error?: string;
|
|
1339
|
+
};
|
|
1340
|
+
type Comment = {
|
|
1341
|
+
id: string;
|
|
1342
|
+
content: string;
|
|
1343
|
+
createdAt: string;
|
|
1344
|
+
updatedAt: string;
|
|
1345
|
+
createdBy: string;
|
|
1346
|
+
updatedBy: string;
|
|
1347
|
+
author: string;
|
|
1348
|
+
taskId: string;
|
|
1349
|
+
};
|
|
1350
|
+
interface EntityFormValues {
|
|
1351
|
+
name: string;
|
|
1352
|
+
description: string;
|
|
1353
|
+
url: string | null;
|
|
1354
|
+
dueOn: Date | null;
|
|
1355
|
+
id?: string;
|
|
1356
|
+
ownerId?: string;
|
|
1357
|
+
tenantId?: string;
|
|
1358
|
+
assigneeId: string | null;
|
|
1359
|
+
assigneeName?: string | null;
|
|
1360
|
+
assigneeEmail?: string | null;
|
|
1361
|
+
assignedFromId?: string;
|
|
1362
|
+
status: string | null;
|
|
1363
|
+
completedBy: string | null;
|
|
1364
|
+
from: string | null;
|
|
1365
|
+
lastUpdated: string | null;
|
|
1366
|
+
lastUpdatedBy?: string | null;
|
|
1367
|
+
createdOn: Date | null;
|
|
1368
|
+
reminders: Reminder[];
|
|
1369
|
+
linkedTasksSort: [string, string];
|
|
1370
|
+
loadingLinkedTasks: boolean;
|
|
1371
|
+
linkedTasks: TaskWithVariables[];
|
|
1372
|
+
tasksToLink: TaskWithVariables[];
|
|
1373
|
+
tasksIdsToRemove: string[];
|
|
1374
|
+
userCategoryId: string | null;
|
|
1375
|
+
userCategory: string | null;
|
|
1376
|
+
teamId: string | null;
|
|
1377
|
+
teamName: string | null;
|
|
1378
|
+
category: string | null;
|
|
1379
|
+
newComment: string;
|
|
1380
|
+
commentsToRemove: string[];
|
|
1381
|
+
newComments: Partial<Comment>[];
|
|
1382
|
+
editedComments: Record<string, Comment>;
|
|
1383
|
+
attachments: any[];
|
|
1384
|
+
lastStatusUpdatedBy?: string;
|
|
1385
|
+
lastStatusUpdated?: string;
|
|
1386
|
+
taskCounterId?: string;
|
|
1387
|
+
internalDueOn: Date | null;
|
|
1388
|
+
milestoneId?: string;
|
|
1389
|
+
milestoneCounter?: string;
|
|
1390
|
+
submissionId?: string;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
interface FieldProp {
|
|
1394
|
+
value?: string;
|
|
1395
|
+
categoryGroup?: string;
|
|
1396
|
+
isAdmin?: boolean;
|
|
1397
|
+
disabled?: boolean;
|
|
1398
|
+
searchingMessage?: string;
|
|
1399
|
+
placeholder?: string;
|
|
1400
|
+
milestoneId?: string;
|
|
1401
|
+
}
|
|
1402
|
+
interface TaskFormFieldProps {
|
|
1403
|
+
url?: FieldProp;
|
|
1404
|
+
search?: FieldProp;
|
|
1405
|
+
permissions?: FieldProp;
|
|
1406
|
+
category?: FieldProp;
|
|
1407
|
+
milestoneInput?: FieldProp;
|
|
1408
|
+
}
|
|
1409
|
+
interface TaskFormProps {
|
|
1410
|
+
id?: string;
|
|
1411
|
+
onEntityLoaded?: (taskObject: EntityFormValues) => EntityFormValues;
|
|
1412
|
+
onConfirm?: (payload: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
1413
|
+
onSuccess?: (successMessage: string, response: unknown) => void;
|
|
1414
|
+
onBeforeSuccess?: (response: unknown) => Promise<void>;
|
|
1415
|
+
onError?: (errorMessage: string, error: Error) => void;
|
|
1416
|
+
onCancel?: (params: {
|
|
1417
|
+
unsavedChanges: boolean;
|
|
1418
|
+
}, event: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
1419
|
+
fieldProps?: TaskFormFieldProps;
|
|
1420
|
+
renderActions?: (node: React__default.ReactNode) => React__default.ReactNode | React__default.ReactPortal;
|
|
1421
|
+
allowToRemoveAttachmentsByRoles?: string[];
|
|
1422
|
+
allowToRemoveCommentsByRoles?: string[];
|
|
1423
|
+
dictionary?: Partial<typeof taskDictionary>;
|
|
1424
|
+
type?: 'SP_ADHOC' | 'ADMIN_ADHOC';
|
|
1425
|
+
enableComments?: boolean;
|
|
1426
|
+
}
|
|
1427
|
+
declare const MemoizedTaskFormComponent: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TaskFormProps & React__default.RefAttributes<HTMLFormElement>>>;
|
|
1428
|
+
|
|
1429
|
+
declare const MilestoneForm: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<FormProps & React__default.RefAttributes<unknown>>>;
|
|
1430
|
+
|
|
1431
|
+
interface MilestoneProgressProps {
|
|
1432
|
+
label?: string;
|
|
1433
|
+
}
|
|
1434
|
+
declare const MilestoneProgress: React__default.NamedExoticComponent<MilestoneProgressProps>;
|
|
1435
|
+
|
|
1436
|
+
interface MilestoneProgressViewProps {
|
|
1437
|
+
label?: string;
|
|
1438
|
+
completePercent?: number;
|
|
1439
|
+
isLoading?: boolean;
|
|
1440
|
+
}
|
|
1441
|
+
declare const MilestoneProgressView: React__default.NamedExoticComponent<MilestoneProgressViewProps>;
|
|
1442
|
+
|
|
1443
|
+
interface ClockIconProps {
|
|
1444
|
+
externalDueDate: Date | string;
|
|
1445
|
+
}
|
|
1446
|
+
declare const ClockIcon: React__default.NamedExoticComponent<ClockIconProps>;
|
|
1447
|
+
|
|
1448
|
+
interface TaskFormHeaderProps {
|
|
1449
|
+
title: string;
|
|
1450
|
+
externalDueDate: Date;
|
|
1451
|
+
}
|
|
1452
|
+
declare const TaskFormHeader: React__default.NamedExoticComponent<TaskFormHeaderProps>;
|
|
1453
|
+
|
|
1454
|
+
interface TaskTitleCellProps {
|
|
1455
|
+
title: string;
|
|
1456
|
+
externalDueDate: Date | string;
|
|
1457
|
+
}
|
|
1458
|
+
declare const TaskTitleCell: React__default.NamedExoticComponent<TaskTitleCellProps>;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Convert a date to a timezone-specific date.
|
|
1462
|
+
* If a timezone is provided, the date will be converted to the corresponding timezone.
|
|
1463
|
+
* If no timezone is provided, the date will remain unchanged.
|
|
1464
|
+
*
|
|
1465
|
+
* @param {Date | null} date - The date to convert.
|
|
1466
|
+
* @param {string} [timezone] - The timezone to convert the date to.
|
|
1467
|
+
* @returns {Date} - The converted date.
|
|
1468
|
+
*/
|
|
1469
|
+
declare const dateToTimezoneDate: (date: Date | null, timezone?: string) => Date | null;
|
|
1470
|
+
|
|
1471
|
+
export { AccordionAttachmentsForm, AccordionFormWrapper, type AccordionFormWrapperProps, AlertDialog, type Attachment, type AttachmentType, AttachmentsForm, type AttachmentsFormProps, BannerNotifications, BasePadding, type BreadcrumbItem, type BreadcrumbProps, Breadcrumbs, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CayuseCommonHeader, Checkbox, type CheckboxProps, ClockIcon, type Column, Combobox, type ComboboxOption, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, CovertButton, CustomDropdown, type CustomDropdownProps, DateSelector, Divider, DropdownMenu, type DropdownMenuProps, DynamicTable, type DynamicTableColumn, type DynamicTableProps, type DynamicTableRow, type FileData, FileUpload, type FileUploadProps, FormNoteAttachmentsView, type FormNoteAttachmentsViewProps, FormattedDate, type FormattedDateProps, FormattedDatetime, type FormattedDatetimeProps, FormattedRichText, type FormattedRichTextProps, FormattedValue, type FormattedValueProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, LinkToMilestone, LoadingIndicator, MilestoneForm, MilestoneProgress, MilestoneProgressView, ModalDialog, MultiFileUpload, type MultiFileUploadProps, NavLink, type Note, type NoteWithAttachments, Number, type NumberProps, type OnSortChange, type Option$1 as Option, PaddedCell, Pagination, Pendo, Popup, type PopupProps, PreventLeaveDialog, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RenderCellCallback, RichText, type RichTextProps, type Row, type RowSelectionChangeArgs, SectionHeader, type SectionHeaderProps, SetView, type SetViewProps, type SortDirection, SubHeader, Submenu, Tabs, MemoizedTaskFormComponent as TaskForm, TaskFormHeader, TaskTitleCell, type TaskWithVariables, TextArea, type TextAreaProps, Toggle, type UploadResource, type UseUploadServiceReturn, UserSelect, type UserSelectProps, adminLoadOptions, baseClearIcon, dateToTimezoneDate, findFirstActiveAttachmentType, linkTasksToMilestone, notify, setDictionary, setLoginTenantId, useActiveColumns };
|