@mcurros2/microm 1.1.395-0 → 1.1.396-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/dist/index.d.ts +763 -756
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -72
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertProps, DefaultMantineColor, ProgressProps, MantineNumberSize, Variants, StepperProps, SelectItem, BadgeVariant, MantineSize, CardProps, MantineTheme, TextareaProps, TextInputProps,
|
|
1
|
+
import { AlertProps, DefaultMantineColor, ProgressProps, MantineNumberSize, Variants, StepperProps, SelectItem, BadgeVariant, MantineSize, CardProps, MantineTheme, ImageProps, MantineColor, TextareaProps, TextInputProps, PasswordInputProps, NotificationProps, CheckboxProps, ButtonProps, ActionIconProps, NumberInputProps, MultiSelectProps, SimpleGridProps, OverlayProps, TransitionProps, AccordionProps, PinInputProps, SwitchProps, Radio, SelectProps, GroupProps, AvatarProps, AnchorProps, AutocompleteItem, AutocompleteProps, DefaultProps, BadgeProps, BreadcrumbsProps, MenuProps as _MenuProps1, TitleOrder, CSSObject, StackProps, NavbarProps, TooltipProps } from "@mantine/core";
|
|
2
2
|
import { JSX } from "react/jsx-runtime";
|
|
3
3
|
import React, { JSXElementConstructor, ReactElement, ReactNode, PropsWithChildren, RefAttributes, ForwardRefExoticComponent, Dispatch, RefObject, SetStateAction, ComponentType, CSSProperties, MutableRefObject, useState, KeyboardEvent, ComponentPropsWithoutRef, Context, ReactPortal } from "react";
|
|
4
4
|
import { hasLength, isNotEmpty, matches, UseFormReturnType } from "@mantine/form";
|
|
@@ -7,9 +7,9 @@ import { IconProps, Icon } from "@tabler/icons-react";
|
|
|
7
7
|
import { LooseKeys } from "@mantine/form/lib/types";
|
|
8
8
|
import { AccordionVariant } from "@mantine/core/lib/Accordion/Accordion.types";
|
|
9
9
|
import { UseEntityFormReturnType as _UseEntityFormReturnType1, EntityClientAction as _EntityClientAction1, DataResult as _DataResult1, OperationStatus as _OperationStatus1, DataMapInfoWindowRenderer as _DataMapInfoWindowRenderer1, DataMapSelectRecordsRenderer as _DataMapSelectRecordsRenderer1, DataMapMarkerRenderer as _DataMapMarkerRenderer1, DataMapGroupMarkerRenderer as _DataMapGroupMarkerRenderer1, EntityDefinition as _EntityDefinition1, Entity as _Entity1, ValuesObject as _ValuesObject1, DBStatusResult as _DBStatusResult1, GridColumnsOverrides as _GridColumnsOverrides1, DataGridSelectionChangedCallback as _DataGridSelectionChangedCallback1, DataViewSearchCallback as _DataViewSearchCallback1, DataGridLabels as _DataGridLabels1, GridRecord as _GridRecord1, GridSelectionChangedCallback as _GridSelectionChangedCallback1, GridDoubleClickCallback as _GridDoubleClickCallback1, GridColumn as _GridColumn1 } from "src";
|
|
10
|
+
import { DropzoneProps } from "@mantine/dropzone";
|
|
10
11
|
import { PrismProps } from "@mantine/prism";
|
|
11
12
|
import { DateInputProps, TimeInputProps, CalendarProps } from "@mantine/dates";
|
|
12
|
-
import { DropzoneProps } from "@mantine/dropzone";
|
|
13
13
|
import { SpotlightAction } from "@mantine/spotlight";
|
|
14
14
|
import { Loader, LoaderOptions } from "@googlemaps/js-api-loader";
|
|
15
15
|
import { Cluster, ClusterStats, Marker, MarkerClustererOptions } from "@googlemaps/markerclusterer";
|
|
@@ -1325,306 +1325,327 @@ export function splitCompoundKey(rawValue: string, group: CompoundKeyGroup): {
|
|
|
1325
1325
|
export function composeCompoundKey(values: readonly Value[], group: CompoundKeyGroup): string;
|
|
1326
1326
|
export function extractCompoundKeyValues(keys: ValuesObject, group: CompoundKeyGroup): Value[] | undefined;
|
|
1327
1327
|
export function extractCompoundRecordKeys(record: object, group: CompoundKeyGroup): ValuesObject | undefined;
|
|
1328
|
-
export interface
|
|
1329
|
-
|
|
1330
|
-
destinationEntityExportViewName?: string;
|
|
1331
|
-
entityProcName?: string;
|
|
1332
|
-
excludedImportDestinations?: string[];
|
|
1333
|
-
}
|
|
1334
|
-
export interface useTextTransformProps {
|
|
1335
|
-
entityForm: UseEntityFormReturnType;
|
|
1336
|
-
column: EntityColumn<Value>;
|
|
1337
|
-
transform?: "uppercase" | "lowercase" | "capitalize" | "titlecase";
|
|
1338
|
-
autoTrim?: boolean;
|
|
1328
|
+
export interface ImageCropOptions {
|
|
1329
|
+
aspectRatio?: number;
|
|
1339
1330
|
}
|
|
1340
|
-
export
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
column: EntityColumn<Value>;
|
|
1345
|
-
entityForm: UseEntityFormReturnType;
|
|
1346
|
-
validate?: TextAreaFieldValidatorConfiguration;
|
|
1347
|
-
requiredMessage?: ReactNode;
|
|
1348
|
-
validationContainer?: React.ComponentType<{
|
|
1349
|
-
children: ReactNode;
|
|
1350
|
-
}>;
|
|
1351
|
-
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1331
|
+
export interface ImageResizeOptions {
|
|
1332
|
+
maxWidth?: number;
|
|
1333
|
+
maxHeight?: number;
|
|
1334
|
+
allowUpscale?: boolean;
|
|
1352
1335
|
}
|
|
1353
|
-
export
|
|
1354
|
-
|
|
1355
|
-
column: EntityColumn<Value>;
|
|
1356
|
-
entityForm: UseEntityFormReturnType;
|
|
1357
|
-
validate?: ValidatorConfiguration;
|
|
1358
|
-
requiredMessage?: ReactNode;
|
|
1359
|
-
validationContainer?: React.ComponentType<{
|
|
1360
|
-
children: ReactNode;
|
|
1361
|
-
}>;
|
|
1362
|
-
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1363
|
-
autoMaxWidth?: {
|
|
1364
|
-
columnLenghtLessThanOrEqual: number;
|
|
1365
|
-
maxWidth: string;
|
|
1366
|
-
};
|
|
1367
|
-
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
1368
|
-
minWidth?: keyof typeof MicroMWidthSizes;
|
|
1336
|
+
export interface ImageManualRotationOptions {
|
|
1337
|
+
stepDegrees?: 90 | -90;
|
|
1369
1338
|
}
|
|
1370
|
-
export
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1339
|
+
export interface ImageCompressionOptions {
|
|
1340
|
+
thresholdBytes?: number;
|
|
1341
|
+
quality?: number;
|
|
1342
|
+
fallbackFormat?: string;
|
|
1374
1343
|
}
|
|
1375
|
-
export
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1344
|
+
export interface BrowserImageProcessingOptions {
|
|
1345
|
+
exifOrientation?: boolean;
|
|
1346
|
+
crop?: boolean | ImageCropOptions;
|
|
1347
|
+
resize?: boolean | ImageResizeOptions;
|
|
1348
|
+
manualRotation?: boolean | ImageManualRotationOptions;
|
|
1349
|
+
compression?: boolean | ImageCompressionOptions;
|
|
1350
|
+
outputFormat?: string;
|
|
1351
|
+
jpegBackgroundColor?: string;
|
|
1381
1352
|
}
|
|
1382
|
-
export
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
autoFocus?: boolean;
|
|
1391
|
-
iconVariant?: ActionIconVariant;
|
|
1392
|
-
[x: string]: any;
|
|
1353
|
+
export interface ResolvedBrowserImageProcessingOptions {
|
|
1354
|
+
exifOrientation: boolean;
|
|
1355
|
+
crop: false | Required<ImageCropOptions>;
|
|
1356
|
+
resize: false | Required<ImageResizeOptions>;
|
|
1357
|
+
manualRotation: false | Required<ImageManualRotationOptions>;
|
|
1358
|
+
compression: false | Required<ImageCompressionOptions>;
|
|
1359
|
+
outputFormat?: string;
|
|
1360
|
+
jpegBackgroundColor: string;
|
|
1393
1361
|
}
|
|
1394
|
-
export const
|
|
1395
|
-
export function
|
|
1396
|
-
export
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1362
|
+
export const BrowserImageProcessingDefaults: ResolvedBrowserImageProcessingOptions;
|
|
1363
|
+
export function resolveImageProcessingOptions(options?: BrowserImageProcessingOptions): ResolvedBrowserImageProcessingOptions;
|
|
1364
|
+
export function getSupportedImageMimeType(fileName: string, declaredType?: string): string | undefined;
|
|
1365
|
+
export function isSupportedImageFile(fileName: string, declaredType?: string): boolean;
|
|
1366
|
+
export function getImageOutputSettings(file: File, options: ResolvedBrowserImageProcessingOptions): {
|
|
1367
|
+
sourceFormat: string;
|
|
1368
|
+
outputFormat: string;
|
|
1369
|
+
shouldCompress: boolean;
|
|
1370
|
+
quality: number | undefined;
|
|
1371
|
+
};
|
|
1372
|
+
export function canvasToProcessedFile(canvas: HTMLCanvasElement, source: File, options: ResolvedBrowserImageProcessingOptions): Promise<File>;
|
|
1373
|
+
export function processImageFileAutomatically(file: File, options: ResolvedBrowserImageProcessingOptions): Promise<File>;
|
|
1374
|
+
export type PreviewFileTypes = 'image' | 'pdf' | 'other';
|
|
1375
|
+
export const getFileType: (file_name: string) => PreviewFileTypes;
|
|
1376
|
+
export interface FilePreviewProps {
|
|
1377
|
+
documentURL: string;
|
|
1378
|
+
onClose: () => void;
|
|
1379
|
+
closeText: string;
|
|
1380
|
+
filePreviewError?: string;
|
|
1409
1381
|
}
|
|
1410
|
-
export
|
|
1411
|
-
export
|
|
1412
|
-
export function
|
|
1413
|
-
export
|
|
1414
|
-
|
|
1415
|
-
|
|
1382
|
+
export function ImagePreview({ documentURL, onClose, closeText }: FilePreviewProps): JSX.Element;
|
|
1383
|
+
export const PDFPreviewDefaultProps: Partial<FilePreviewProps>;
|
|
1384
|
+
export function PDFPreview(props: FilePreviewProps): JSX.Element;
|
|
1385
|
+
export class FileStoreClientDef extends EntityDefinition {
|
|
1386
|
+
columns: {
|
|
1387
|
+
dt_inserttime: EntityColumn<Date>;
|
|
1388
|
+
dt_lu: EntityColumn<Date>;
|
|
1389
|
+
vc_webinsuser: EntityColumn<string>;
|
|
1390
|
+
vc_webluuser: EntityColumn<string>;
|
|
1391
|
+
vc_insuser: EntityColumn<string>;
|
|
1392
|
+
vc_luuser: EntityColumn<string>;
|
|
1393
|
+
vc_fileguid: EntityColumn<string>;
|
|
1394
|
+
c_fileprocess_id: EntityColumn<string>;
|
|
1395
|
+
vc_filename: EntityColumn<string>;
|
|
1396
|
+
vc_filefolder: EntityColumn<string>;
|
|
1397
|
+
bi_filesize: EntityColumn<number>;
|
|
1398
|
+
vc_file_tag: EntityColumn<string>;
|
|
1399
|
+
c_fileuploadstatus_id: EntityColumn<string>;
|
|
1400
|
+
c_filestoragetype_id: EntityColumn<string>;
|
|
1401
|
+
};
|
|
1402
|
+
views: {
|
|
1403
|
+
fcc_brwFiles: {
|
|
1404
|
+
name: string;
|
|
1405
|
+
keyMappings: {
|
|
1406
|
+
vc_fileguid: number;
|
|
1407
|
+
c_fileprocess_id: number;
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
constructor();
|
|
1416
1412
|
}
|
|
1417
|
-
export
|
|
1418
|
-
client: MicroMClient;
|
|
1419
|
-
modalProps?: ModalSettings;
|
|
1420
|
-
onClose?: () => void;
|
|
1421
|
-
title?: string;
|
|
1413
|
+
export class FileStoreClient extends Entity<FileStoreClientDef> {
|
|
1414
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
1422
1415
|
}
|
|
1423
|
-
export
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1416
|
+
export class FileStoreProcessDef extends EntityDefinition {
|
|
1417
|
+
columns: {
|
|
1418
|
+
dt_inserttime: EntityColumn<Date>;
|
|
1419
|
+
dt_lu: EntityColumn<Date>;
|
|
1420
|
+
vc_webinsuser: EntityColumn<string>;
|
|
1421
|
+
vc_webluuser: EntityColumn<string>;
|
|
1422
|
+
vc_insuser: EntityColumn<string>;
|
|
1423
|
+
vc_luuser: EntityColumn<string>;
|
|
1424
|
+
c_fileprocess_id: EntityColumn<string>;
|
|
1425
|
+
};
|
|
1426
|
+
views: {
|
|
1427
|
+
fsp_brwStandard: {
|
|
1428
|
+
name: string;
|
|
1429
|
+
keyMappings: {
|
|
1430
|
+
c_fileprocess_id: number;
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1440
1433
|
};
|
|
1434
|
+
constructor();
|
|
1441
1435
|
}
|
|
1442
|
-
export
|
|
1443
|
-
|
|
1444
|
-
status: OperationStatus<TReturn>;
|
|
1445
|
-
execute: (values?: ValuesObject) => Promise<OperationStatus<TReturn> | undefined>;
|
|
1446
|
-
abort: () => void;
|
|
1447
|
-
};
|
|
1448
|
-
export function useExecuteServerAction<T extends EntityDefinition, TReturn extends ValuesObject>(entity: Entity<T>, actionName: string, doNotExecuteIfEntityValuesUnchanged?: boolean): useExecuteServerActionReturnType<TReturn>;
|
|
1449
|
-
export const NotifySuccessDefaultProps: Partial<NotificationProps>;
|
|
1450
|
-
export function NotifySuccess(props: NotificationProps): JSX.Element;
|
|
1451
|
-
export function NotifyError(props: NotificationProps): JSX.Element;
|
|
1452
|
-
export const NotifyInfoDefaultProps: Partial<NotificationProps>;
|
|
1453
|
-
export function NotifyInfo(props: NotificationProps): JSX.Element;
|
|
1454
|
-
export interface NotifyBitFieldProps extends NotificationProps {
|
|
1455
|
-
column: EntityColumn<boolean>;
|
|
1456
|
-
trueIcon?: ReactNode;
|
|
1457
|
-
falseIcon?: ReactNode;
|
|
1458
|
-
trueMessage: ReactNode;
|
|
1459
|
-
falseMessage: ReactNode;
|
|
1460
|
-
trueColor?: MantineColor;
|
|
1461
|
-
falseColor?: MantineColor;
|
|
1436
|
+
export class FileStoreProcess extends Entity<FileStoreProcessDef> {
|
|
1437
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
1462
1438
|
}
|
|
1463
|
-
export
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
entityForm: UseEntityFormReturnType;
|
|
1468
|
-
loading?: boolean;
|
|
1469
|
-
disableOnLoading?: boolean;
|
|
1470
|
-
requiredMessage?: ReactNode;
|
|
1439
|
+
export interface FullImagePreviewProps {
|
|
1440
|
+
source: HTMLCanvasElement;
|
|
1441
|
+
rotation: number;
|
|
1442
|
+
label: string;
|
|
1471
1443
|
}
|
|
1472
|
-
export function
|
|
1473
|
-
export interface
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1444
|
+
export function FullImagePreview({ source, rotation, label }: FullImagePreviewProps): JSX.Element;
|
|
1445
|
+
export interface WebcamCaptureLabels {
|
|
1446
|
+
permissionMessage?: string;
|
|
1447
|
+
enableCameraLabel?: string;
|
|
1448
|
+
cameraLabel?: string;
|
|
1449
|
+
captureLabel?: string;
|
|
1450
|
+
retakeLabel?: string;
|
|
1451
|
+
usePhotoLabel?: string;
|
|
1452
|
+
cancelLabel?: string;
|
|
1453
|
+
unsupportedMessage?: string;
|
|
1454
|
+
insecureContextMessage?: string;
|
|
1455
|
+
permissionDeniedMessage?: string;
|
|
1456
|
+
noCameraMessage?: string;
|
|
1457
|
+
cameraUnavailableMessage?: string;
|
|
1477
1458
|
}
|
|
1478
|
-
export
|
|
1479
|
-
|
|
1480
|
-
status: OperationStatus<T>;
|
|
1481
|
-
};
|
|
1482
|
-
export function useOperationStatusCallback<T>(props: UseOperationStatusCallback<T>): UseOperationStatusCallbackReturnType<T>;
|
|
1483
|
-
export interface ConfirmPanelProps {
|
|
1484
|
-
content: ReactNode;
|
|
1485
|
-
loadingContent?: ReactNode;
|
|
1486
|
-
operation: DataOperationType;
|
|
1487
|
-
onOK: () => Promise<unknown>;
|
|
1459
|
+
export interface WebcamCaptureProps {
|
|
1460
|
+
onCapture: (file: File) => Promise<void> | void;
|
|
1488
1461
|
onCancel: () => Promise<void> | void;
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
}
|
|
1495
|
-
export const ConfirmAndExecutePanelDefaultProps: Partial<ConfirmPanelProps>;
|
|
1496
|
-
export function ConfirmAndExecutePanel(props: ConfirmPanelProps): JSX.Element;
|
|
1497
|
-
export interface EmailFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
1498
|
-
invalidMessage?: string;
|
|
1499
|
-
}
|
|
1500
|
-
export const EmailFieldDefaultProps: Partial<EmailFieldProps>;
|
|
1501
|
-
export function EmailField(props: EmailFieldProps): JSX.Element;
|
|
1502
|
-
export interface UrlFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
1503
|
-
invalidMessage?: string;
|
|
1504
|
-
}
|
|
1505
|
-
export const UrlFieldDefaultProps: Partial<UrlFieldProps>;
|
|
1506
|
-
export function UrlField(props: UrlFieldProps): JSX.Element;
|
|
1507
|
-
export interface UseDynamicContentProps {
|
|
1508
|
-
contentState: ReturnType<typeof useState<ReactNode>>;
|
|
1509
|
-
dynamicContent: Promise<ReactNode>;
|
|
1510
|
-
loading?: ReactNode;
|
|
1511
|
-
}
|
|
1512
|
-
export function useDynamicContent(props: UseDynamicContentProps): void;
|
|
1513
|
-
export interface CopyToClipboardProps extends ActionIconProps {
|
|
1514
|
-
valueToCopy: unknown;
|
|
1515
|
-
timeout?: number;
|
|
1516
|
-
copiedColor?: MantineColor;
|
|
1517
|
-
iconSize?: string | number;
|
|
1462
|
+
labels?: WebcamCaptureLabels;
|
|
1463
|
+
videoConstraints?: MediaTrackConstraints;
|
|
1464
|
+
fileName?: string;
|
|
1465
|
+
outputType?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
1466
|
+
outputQuality?: number;
|
|
1518
1467
|
}
|
|
1519
|
-
export
|
|
1520
|
-
export
|
|
1521
|
-
|
|
1468
|
+
export const WebcamCaptureDefaultProps: Partial<WebcamCaptureProps>;
|
|
1469
|
+
export function WebcamCapture(props: WebcamCaptureProps): JSX.Element;
|
|
1470
|
+
export type ImageEditorCameraConfiguration = Omit<WebcamCaptureProps, 'onCapture' | 'onCancel'>;
|
|
1471
|
+
export interface ImageEditorProps {
|
|
1472
|
+
sourceFile?: File;
|
|
1473
|
+
options: ResolvedBrowserImageProcessingOptions;
|
|
1474
|
+
onSave: (file: File) => Promise<void> | void;
|
|
1475
|
+
onBeforeSave?: (file: File) => boolean | Promise<boolean>;
|
|
1476
|
+
onCancel: () => Promise<void> | void;
|
|
1477
|
+
initiallyDirty?: boolean;
|
|
1478
|
+
saveLabel?: string;
|
|
1479
|
+
cancelLabel?: string;
|
|
1480
|
+
rotateClockwiseLabel?: string;
|
|
1481
|
+
rotateCounterClockwiseLabel?: string;
|
|
1482
|
+
takePhotoLabel?: string;
|
|
1483
|
+
camera?: boolean | ImageEditorCameraConfiguration;
|
|
1522
1484
|
}
|
|
1523
|
-
export const
|
|
1524
|
-
export
|
|
1525
|
-
export interface
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1485
|
+
export const ImageEditorDefaultProps: Partial<ImageEditorProps>;
|
|
1486
|
+
export const ImageEditor: (props: ImageEditorProps) => JSX.Element;
|
|
1487
|
+
export interface UploadProgressReport {
|
|
1488
|
+
errorMessage?: string;
|
|
1489
|
+
status_id: string;
|
|
1490
|
+
progress: number;
|
|
1491
|
+
done?: boolean;
|
|
1492
|
+
cancelled?: boolean;
|
|
1493
|
+
documentURL?: string;
|
|
1494
|
+
file_name: string;
|
|
1495
|
+
file_size: number;
|
|
1496
|
+
vc_fileguid?: string;
|
|
1497
|
+
thumbnailURL?: string;
|
|
1536
1498
|
}
|
|
1537
|
-
export
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1550
|
-
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
1551
|
-
minWidth?: keyof typeof MicroMWidthSizes;
|
|
1499
|
+
export interface UseFileUploadSnapshot {
|
|
1500
|
+
files: readonly UploadProgressReport[];
|
|
1501
|
+
fileProcessID: string;
|
|
1502
|
+
maxIndividualFileSize?: number;
|
|
1503
|
+
maxTotalFilesSize?: number;
|
|
1504
|
+
maxFilesCount?: number;
|
|
1505
|
+
errorNotification?: string;
|
|
1506
|
+
cancelledNotification?: boolean;
|
|
1507
|
+
uploadingNotification?: boolean;
|
|
1508
|
+
loadingNotification?: boolean;
|
|
1509
|
+
processing: boolean;
|
|
1510
|
+
editorEnabled: boolean;
|
|
1552
1511
|
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1512
|
+
interface UseFileUploadActions {
|
|
1513
|
+
uploadFiles: (selectedFiles: File[]) => Promise<UploadProgressReport[]>;
|
|
1514
|
+
replaceFile: (fileGUID: string, replacementFile: File) => Promise<UploadProgressReport | null>;
|
|
1515
|
+
editImage: (file: string | UploadProgressReport) => Promise<UploadProgressReport | null>;
|
|
1516
|
+
openImageEditor: (file?: File, options?: OpenImageEditorOptions) => Promise<File | null>;
|
|
1517
|
+
captureImage: () => Promise<UploadProgressReport | null>;
|
|
1518
|
+
canEditImage: (file: string | UploadProgressReport) => boolean;
|
|
1519
|
+
refreshFiles: () => Promise<Record<string, UploadProgressReport>>;
|
|
1520
|
+
deleteFile: (fileGUID: string) => Promise<DBStatusResult>;
|
|
1521
|
+
downloadFile: (fileUrl: string, fileName?: string) => Promise<void>;
|
|
1522
|
+
clearNotifications: () => void;
|
|
1523
|
+
cancelUpload: () => void;
|
|
1558
1524
|
}
|
|
1559
|
-
export
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
showCallIcon?: boolean;
|
|
1563
|
-
showWhatsappIcon?: boolean;
|
|
1525
|
+
export interface UseFileUploadReturnType extends UseFileUploadSnapshot, UseFileUploadActions {
|
|
1526
|
+
subscribe: (listener: () => void) => () => void;
|
|
1527
|
+
getSnapshot: () => UseFileUploadSnapshot;
|
|
1564
1528
|
}
|
|
1565
|
-
export
|
|
1566
|
-
export
|
|
1567
|
-
|
|
1568
|
-
|
|
1529
|
+
export function useFileUploadSnapshot(uploadAPI: UseFileUploadReturnType): UseFileUploadSnapshot;
|
|
1530
|
+
export type ValidateFileReturnType = {
|
|
1531
|
+
error: boolean;
|
|
1532
|
+
message?: string;
|
|
1533
|
+
};
|
|
1534
|
+
export type UploadCompletionResult = ValidateFileReturnType;
|
|
1535
|
+
export type ImageEditorConfigurationProps = Partial<Pick<ImageEditorProps, 'saveLabel' | 'cancelLabel' | 'rotateClockwiseLabel' | 'rotateCounterClockwiseLabel' | 'takePhotoLabel' | 'camera'>>;
|
|
1536
|
+
export interface OpenImageEditorOptions {
|
|
1537
|
+
initiallyDirty?: boolean;
|
|
1538
|
+
onBeforeSave?: NonNullable<ImageEditorProps['onBeforeSave']>;
|
|
1569
1539
|
}
|
|
1570
|
-
export
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1540
|
+
export interface UseFileUploadProps {
|
|
1541
|
+
client: MicroMClient;
|
|
1542
|
+
fileProcessColumn: EntityColumn<string>;
|
|
1543
|
+
maxIndividualFileSize?: number;
|
|
1544
|
+
maxTotalFilesSize?: number;
|
|
1545
|
+
maxFilesCount?: number;
|
|
1546
|
+
youCanUploadAMaximumOfText?: string;
|
|
1547
|
+
filesText?: string;
|
|
1548
|
+
exceedMaximumIndividualSizeText?: string;
|
|
1549
|
+
unspecifiedErrorWhenUploadingFileText?: string;
|
|
1550
|
+
totalUploadExceedsMaximumSizeText?: string;
|
|
1551
|
+
onCancel?: () => void;
|
|
1552
|
+
editor?: boolean;
|
|
1553
|
+
imageProcessing?: BrowserImageProcessingOptions;
|
|
1554
|
+
imageEditorTitle?: ReactNode;
|
|
1555
|
+
imageEditorProps?: ImageEditorConfigurationProps;
|
|
1556
|
+
imageEditorModalProps?: MicroMModalSettings;
|
|
1557
|
+
onValidateFile?: (file: File) => Promise<ValidateFileReturnType>;
|
|
1558
|
+
onProcessFile?: (file: File) => Promise<File | null>;
|
|
1559
|
+
onBeforeUpload?: (file: File) => Promise<boolean>;
|
|
1560
|
+
onBeforeReplace?: (currentFile: UploadProgressReport, replacementFile?: File) => Promise<boolean>;
|
|
1561
|
+
onUploadComplete?: (report: UploadProgressReport) => Promise<UploadCompletionResult | void>;
|
|
1562
|
+
onDeleteComplete?: (fileGUID: string) => Promise<void> | void;
|
|
1563
|
+
thumbnailMaxSize?: number;
|
|
1564
|
+
thumbnailQuality?: number;
|
|
1565
|
+
loadFilesOnMount?: boolean;
|
|
1576
1566
|
}
|
|
1577
|
-
export
|
|
1578
|
-
export
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1567
|
+
export const UseFileUploadDefaultProps: Partial<UseFileUploadProps>;
|
|
1568
|
+
export type UploadStatus = 'Pending' | 'Uploading' | 'Uploaded' | 'Failed' | 'Cancelled';
|
|
1569
|
+
export function useFileUpload(props: UseFileUploadProps): UseFileUploadReturnType;
|
|
1570
|
+
export interface FileUploaderProps extends Omit<DropzoneProps, 'children' | 'onDrop' | 'maxSize' | 'maxFiles'> {
|
|
1571
|
+
IdleIcon?: (props: IconProps) => ReactNode;
|
|
1572
|
+
UploadText?: string;
|
|
1573
|
+
AttachUpToText?: string;
|
|
1574
|
+
FilesText?: string;
|
|
1575
|
+
EachFileShouldNotExceedText?: string;
|
|
1576
|
+
uploadAPI: UseFileUploadReturnType;
|
|
1577
|
+
onDelete?: (fileGUID: string) => boolean | Promise<boolean>;
|
|
1578
|
+
imageProps?: ImageProps;
|
|
1579
|
+
closeText?: string;
|
|
1580
|
+
cancelledText?: string;
|
|
1581
|
+
operationCancelledText?: string;
|
|
1582
|
+
pdfCannotBeViewedText?: string;
|
|
1583
|
+
showCancelButton?: boolean;
|
|
1584
|
+
cancelLabel?: string;
|
|
1585
|
+
parentFormAPI?: UseEntityFormReturnType;
|
|
1586
|
+
editor?: boolean;
|
|
1587
|
+
editImageLabel?: string;
|
|
1588
|
+
replaceFileGUID?: string;
|
|
1589
|
+
replaceExistingFile?: boolean;
|
|
1590
1590
|
}
|
|
1591
|
-
export const
|
|
1592
|
-
|
|
1593
|
-
|
|
1591
|
+
export const FileUploaderDefaultProps: Partial<FileUploaderProps>;
|
|
1592
|
+
export function FileUploader(props: FileUploaderProps): JSX.Element;
|
|
1593
|
+
export interface FilesUploadFormProps extends UseFileUploadProps {
|
|
1594
|
+
fileProcessColumn: EntityColumn<string>;
|
|
1595
|
+
onOK?: (fileprocess_id: string, files: readonly UploadProgressReport[]) => void;
|
|
1596
|
+
onDelete?: (fileGUID: string) => boolean | Promise<boolean>;
|
|
1597
|
+
helpMessage?: string;
|
|
1598
|
+
uploaderProps?: Omit<FileUploaderProps, 'uploadAPI' | 'editor'>;
|
|
1599
|
+
okLabel?: string;
|
|
1600
|
+
showOKButton?: boolean;
|
|
1601
|
+
uploadAPI?: UseFileUploadReturnType;
|
|
1594
1602
|
}
|
|
1595
|
-
export const
|
|
1596
|
-
export function
|
|
1597
|
-
export interface
|
|
1603
|
+
export const FilesUploadFormDefaultProps: Partial<FilesUploadFormProps>;
|
|
1604
|
+
export function FilesUploadForm(props: FilesUploadFormProps): JSX.Element;
|
|
1605
|
+
export interface ModalFileUploadProps {
|
|
1598
1606
|
client: MicroMClient;
|
|
1599
|
-
|
|
1600
|
-
|
|
1607
|
+
fileProcessColumn: EntityColumn<string>;
|
|
1608
|
+
onOK?: (fileprocess_id: string, files: readonly UploadProgressReport[]) => void;
|
|
1609
|
+
onCancel?: () => void;
|
|
1610
|
+
onClosed?: () => void;
|
|
1611
|
+
modalProps?: ModalSettings;
|
|
1612
|
+
modalTitle?: string;
|
|
1613
|
+
uploadAPI?: UseFileUploadReturnType;
|
|
1614
|
+
filesUploadFormProps: Omit<FilesUploadFormProps, 'fileProcessColumn' | 'uploaderProps' | 'client' | 'onOK' | 'onCancel' | 'uploadAPI'>;
|
|
1615
|
+
uploaderProps?: Omit<FileUploaderProps, 'uploadAPI' | 'editor'>;
|
|
1601
1616
|
}
|
|
1602
|
-
export
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1617
|
+
export const UseFileUploadFormOpenDefaultProps: Partial<ModalFileUploadProps>;
|
|
1618
|
+
export function useFilesUploadForm(): (props: ModalFileUploadProps) => Promise<void>;
|
|
1619
|
+
export class ImportEntityDataDef extends EntityDefinition {
|
|
1620
|
+
columns: {
|
|
1621
|
+
dt_inserttime: EntityColumn<Date>;
|
|
1622
|
+
dt_lu: EntityColumn<Date>;
|
|
1623
|
+
vc_webinsuser: EntityColumn<string>;
|
|
1624
|
+
vc_webluuser: EntityColumn<string>;
|
|
1625
|
+
vc_insuser: EntityColumn<string>;
|
|
1626
|
+
vc_luuser: EntityColumn<string>;
|
|
1627
|
+
c_fileprocess_id: EntityColumn<string>;
|
|
1628
|
+
};
|
|
1629
|
+
views: {
|
|
1630
|
+
ipr_brwStandard: {
|
|
1631
|
+
name: string;
|
|
1632
|
+
keyMappings: {
|
|
1633
|
+
c_import_process: number;
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
lookups: {
|
|
1638
|
+
FileStoreProcess: {
|
|
1639
|
+
name: string;
|
|
1640
|
+
viewMapping: {
|
|
1641
|
+
keyIndex: number;
|
|
1642
|
+
descriptionIndex: number;
|
|
1643
|
+
};
|
|
1644
|
+
entityConstructor: (client: MicroMClient, parentKeys?: ValuesObject) => FileStoreProcess;
|
|
1645
|
+
};
|
|
1646
|
+
};
|
|
1647
|
+
constructor();
|
|
1619
1648
|
}
|
|
1620
|
-
export const UseLocaleFormatDefaultProps: Partial<UseLocaleFormatProps>;
|
|
1621
|
-
export function useLocaleFormat(props: UseLocaleFormatProps): {
|
|
1622
|
-
locale: string | undefined;
|
|
1623
|
-
setLocale: Dispatch<SetStateAction<string | undefined>>;
|
|
1624
|
-
formatValue: (value: Value, sqlType: SQLType) => string;
|
|
1625
|
-
getNativeValue: (value: Value, sqlType: SQLType) => Value;
|
|
1626
|
-
formatColumnValue: (col: EntityColumn<Value>) => string;
|
|
1627
|
-
};
|
|
1628
1649
|
export interface ImportFileSheet {
|
|
1629
1650
|
name: string | null;
|
|
1630
1651
|
rows: string[][];
|
|
@@ -1703,11 +1724,128 @@ export interface ImportDataMappingEditorProps {
|
|
|
1703
1724
|
}
|
|
1704
1725
|
export const ImportDataMappingEditorDefaultProps: Partial<ImportDataMappingEditorProps>;
|
|
1705
1726
|
export function ImportDataMappingEditor(props: ImportDataMappingEditorProps): JSX.Element | null;
|
|
1727
|
+
export interface CircleFilledIconProps {
|
|
1728
|
+
backColor?: MantineColor;
|
|
1729
|
+
color?: MantineColor;
|
|
1730
|
+
width?: string | number;
|
|
1731
|
+
minWidth?: string | number;
|
|
1732
|
+
icon: ReactNode;
|
|
1733
|
+
mr?: string;
|
|
1734
|
+
}
|
|
1735
|
+
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
1736
|
+
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
1737
|
+
export interface ImportCompletedContentProps {
|
|
1738
|
+
fileName: string;
|
|
1739
|
+
result: ImpDataResult;
|
|
1740
|
+
onClose?: () => void | Promise<void>;
|
|
1741
|
+
importedFileLabel?: string;
|
|
1742
|
+
recordsImportedSuccessfullyLabel?: string;
|
|
1743
|
+
recordsNotImportedDueToErrorsLabel?: string;
|
|
1744
|
+
errorColumnTitle?: string;
|
|
1745
|
+
rowColumnTitle?: string;
|
|
1746
|
+
closeLabel?: ReactNode;
|
|
1747
|
+
}
|
|
1748
|
+
export const ImportCompletedContentDefaultProps: Partial<ImportCompletedContentProps>;
|
|
1749
|
+
export function ImportCompletedContent(props: ImportCompletedContentProps): JSX.Element;
|
|
1750
|
+
export interface ImportDataMappingStepProps {
|
|
1751
|
+
mappingAPI: ImportDataMappingAPI;
|
|
1752
|
+
destinations: readonly string[];
|
|
1753
|
+
validationError?: string;
|
|
1754
|
+
}
|
|
1755
|
+
export const ImportDataMappingStepDefaultProps: Partial<ImportDataMappingStepProps>;
|
|
1756
|
+
export function ImportDataMappingStep(props: ImportDataMappingStepProps): JSX.Element;
|
|
1757
|
+
export interface ImportInstructionsStepProps {
|
|
1758
|
+
importEntity?: Entity<EntityDefinition>;
|
|
1759
|
+
requiredColumns: readonly string[];
|
|
1760
|
+
exportViewName?: string;
|
|
1761
|
+
instructionsLabel?: string;
|
|
1762
|
+
columnHeaderLabel?: string;
|
|
1763
|
+
dataNameLabel?: string;
|
|
1764
|
+
dataTypeLabel?: string;
|
|
1765
|
+
contentLabel?: string;
|
|
1766
|
+
dateFormatLabel?: string;
|
|
1767
|
+
numberFormatLabel?: string;
|
|
1768
|
+
downloadExcelSampleLabel?: string;
|
|
1769
|
+
downloadCSVSampleLabel?: string;
|
|
1770
|
+
exportExistingDataLabel?: string;
|
|
1771
|
+
exportExistingDataErrorLabel?: string;
|
|
1772
|
+
}
|
|
1773
|
+
export const ImportInstructionsStepDefaultProps: Partial<ImportInstructionsStepProps>;
|
|
1774
|
+
export function getFriendlyImportDataType(type: SQLType): "Integer" | "Number" | "Date" | "Alphanumeric";
|
|
1775
|
+
export function ImportInstructionsStep(props: ImportInstructionsStepProps): JSX.Element;
|
|
1776
|
+
export interface ImportSampleDataStepProps {
|
|
1777
|
+
mappingAPI: ImportDataMappingAPI;
|
|
1778
|
+
confirmationLabel?: string;
|
|
1779
|
+
noSampleDataLabel?: string;
|
|
1780
|
+
}
|
|
1781
|
+
export const ImportSampleDataStepDefaultProps: Partial<ImportSampleDataStepProps>;
|
|
1782
|
+
export function ImportSampleDataStep(props: ImportSampleDataStepProps): JSX.Element;
|
|
1783
|
+
export interface ImportSummaryStepProps {
|
|
1784
|
+
file: File | null;
|
|
1785
|
+
mappingState?: ImportDataMappingState;
|
|
1786
|
+
mappingAPI?: ImportDataMappingAPI;
|
|
1787
|
+
importStatus?: OperationStatus<ImpDataResult>;
|
|
1788
|
+
summaryTitleLabel?: string;
|
|
1789
|
+
fileLabel?: string;
|
|
1790
|
+
worksheetLabel?: string;
|
|
1791
|
+
headerRowLabel?: string;
|
|
1792
|
+
columnMappingCorrectLabel?: string;
|
|
1793
|
+
columnMappingIncorrectLabel?: string;
|
|
1794
|
+
viewSampleDataLabel?: string;
|
|
1795
|
+
sampleDataModalTitle?: string;
|
|
1796
|
+
submitAndImportLabel?: string;
|
|
1797
|
+
importingDataLabel?: string;
|
|
1798
|
+
}
|
|
1799
|
+
export const ImportSummaryStepDefaultProps: Partial<ImportSummaryStepProps>;
|
|
1800
|
+
export function ImportSummaryStep(props: ImportSummaryStepProps): JSX.Element | null;
|
|
1706
1801
|
export const ACTDownloadImportedFileDefaultProps: {
|
|
1707
1802
|
downloadImportedFileLabel: string;
|
|
1708
1803
|
downloadImportedFileErrorLabel: string;
|
|
1709
1804
|
};
|
|
1710
1805
|
export const ACTDownloadImportedFile: EntityClientAction;
|
|
1806
|
+
export interface useTextTransformProps {
|
|
1807
|
+
entityForm: UseEntityFormReturnType;
|
|
1808
|
+
column: EntityColumn<Value>;
|
|
1809
|
+
transform?: "uppercase" | "lowercase" | "capitalize" | "titlecase";
|
|
1810
|
+
autoTrim?: boolean;
|
|
1811
|
+
}
|
|
1812
|
+
export function useTextTransform(props: useTextTransformProps): (text: string) => void;
|
|
1813
|
+
type TextAreaFieldAllowedValidators = 'regex' | 'length' | 'field' | 'required';
|
|
1814
|
+
export type TextAreaFieldValidatorConfiguration = Partial<Record<TextAreaFieldAllowedValidators, ValidatorConfigurationParms>>;
|
|
1815
|
+
export interface TextAreaFieldProps extends Omit<TextareaProps, 'autoFocus'>, Omit<useTextTransformProps, 'entityForm' | 'column' | 'onBlur' | 'mantineOnBlur'> {
|
|
1816
|
+
column: EntityColumn<Value>;
|
|
1817
|
+
entityForm: UseEntityFormReturnType;
|
|
1818
|
+
validate?: TextAreaFieldValidatorConfiguration;
|
|
1819
|
+
requiredMessage?: ReactNode;
|
|
1820
|
+
validationContainer?: React.ComponentType<{
|
|
1821
|
+
children: ReactNode;
|
|
1822
|
+
}>;
|
|
1823
|
+
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1824
|
+
}
|
|
1825
|
+
export const TextAreaField: ForwardRefExoticComponent<TextAreaFieldProps & RefAttributes<HTMLTextAreaElement>>;
|
|
1826
|
+
export interface TextFieldProps extends Omit<TextInputProps, 'autoFocus'>, Omit<useTextTransformProps, 'entityForm' | 'column'> {
|
|
1827
|
+
column: EntityColumn<Value>;
|
|
1828
|
+
entityForm: UseEntityFormReturnType;
|
|
1829
|
+
validate?: ValidatorConfiguration;
|
|
1830
|
+
requiredMessage?: ReactNode;
|
|
1831
|
+
validationContainer?: React.ComponentType<{
|
|
1832
|
+
children: ReactNode;
|
|
1833
|
+
}>;
|
|
1834
|
+
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1835
|
+
autoMaxWidth?: {
|
|
1836
|
+
columnLenghtLessThanOrEqual: number;
|
|
1837
|
+
maxWidth: string;
|
|
1838
|
+
};
|
|
1839
|
+
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
1840
|
+
minWidth?: keyof typeof MicroMWidthSizes;
|
|
1841
|
+
}
|
|
1842
|
+
export const TextField: ForwardRefExoticComponent<TextFieldProps & RefAttributes<HTMLInputElement>>;
|
|
1843
|
+
export interface AutoFormFieldsProps<T extends Entity<EntityDefinition>> {
|
|
1844
|
+
entity: T;
|
|
1845
|
+
entityForm: UseEntityFormReturnType;
|
|
1846
|
+
}
|
|
1847
|
+
export function AutoFormFields(props: AutoFormFieldsProps<Entity<EntityDefinition>>): (ReactElement<any, string | JSXElementConstructor<any>> | undefined)[];
|
|
1848
|
+
export function AutoForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
1711
1849
|
export const ApplyFiltersDefaultLabel = "Apply Filters";
|
|
1712
1850
|
export function AutoFiltersForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
1713
1851
|
export function createEntityForm<T extends FormOptions<Entity<EntityDefinition>>>(props: T): Promise<ReactNode>;
|
|
@@ -1723,30 +1861,12 @@ export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefiniti
|
|
|
1723
1861
|
formProps: T;
|
|
1724
1862
|
}
|
|
1725
1863
|
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
1726
|
-
export
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
vc_insuser: EntityColumn<string>;
|
|
1733
|
-
vc_luuser: EntityColumn<string>;
|
|
1734
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
1735
|
-
};
|
|
1736
|
-
views: {
|
|
1737
|
-
fsp_brwStandard: {
|
|
1738
|
-
name: string;
|
|
1739
|
-
keyMappings: {
|
|
1740
|
-
c_fileprocess_id: number;
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
};
|
|
1744
|
-
constructor();
|
|
1745
|
-
}
|
|
1746
|
-
export class FileStoreProcess extends Entity<FileStoreProcessDef> {
|
|
1747
|
-
constructor(client: MicroMClient, parentKeys?: {});
|
|
1748
|
-
}
|
|
1749
|
-
export class ImportEntityDataDef extends EntityDefinition {
|
|
1864
|
+
export const ACTImportDataDefaultProps: {
|
|
1865
|
+
importDataLabel: string;
|
|
1866
|
+
};
|
|
1867
|
+
export const ACTImportData: EntityClientAction;
|
|
1868
|
+
export class ImportProcessDef extends EntityDefinition {
|
|
1869
|
+
destinationProps: ImportDataDestinationProps;
|
|
1750
1870
|
columns: {
|
|
1751
1871
|
dt_inserttime: EntityColumn<Date>;
|
|
1752
1872
|
dt_lu: EntityColumn<Date>;
|
|
@@ -1754,384 +1874,113 @@ export class ImportEntityDataDef extends EntityDefinition {
|
|
|
1754
1874
|
vc_webluuser: EntityColumn<string>;
|
|
1755
1875
|
vc_insuser: EntityColumn<string>;
|
|
1756
1876
|
vc_luuser: EntityColumn<string>;
|
|
1877
|
+
c_import_process_id: EntityColumn<string>;
|
|
1757
1878
|
c_fileprocess_id: EntityColumn<string>;
|
|
1879
|
+
i_total_records: EntityColumn<number>;
|
|
1880
|
+
i_errors: EntityColumn<number>;
|
|
1881
|
+
vc_assemblytypename: EntityColumn<string>;
|
|
1882
|
+
vc_import_procname: EntityColumn<string>;
|
|
1883
|
+
c_import_status_id: EntityColumn<string>;
|
|
1884
|
+
vc_fileguid: EntityColumn<string>;
|
|
1758
1885
|
};
|
|
1759
1886
|
views: {
|
|
1760
1887
|
ipr_brwStandard: {
|
|
1761
1888
|
name: string;
|
|
1762
1889
|
keyMappings: {
|
|
1763
|
-
|
|
1890
|
+
c_import_process_id: number;
|
|
1891
|
+
vc_fileguid: number;
|
|
1764
1892
|
};
|
|
1765
1893
|
};
|
|
1766
1894
|
};
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
keyIndex: number;
|
|
1772
|
-
descriptionIndex: number;
|
|
1773
|
-
};
|
|
1774
|
-
entityConstructor: (client: MicroMClient, parentKeys?: ValuesObject) => FileStoreProcess;
|
|
1775
|
-
};
|
|
1895
|
+
clientActions: {
|
|
1896
|
+
ACTImportData: _EntityClientAction1;
|
|
1897
|
+
ACTDownloadImportedFile: _EntityClientAction1;
|
|
1898
|
+
ACTViewImportErrors: _EntityClientAction1;
|
|
1776
1899
|
};
|
|
1777
|
-
constructor();
|
|
1778
|
-
}
|
|
1779
|
-
export interface ImageCropOptions {
|
|
1780
|
-
aspectRatio?: number;
|
|
1781
|
-
}
|
|
1782
|
-
export interface ImageResizeOptions {
|
|
1783
|
-
maxWidth?: number;
|
|
1784
|
-
maxHeight?: number;
|
|
1785
|
-
allowUpscale?: boolean;
|
|
1900
|
+
constructor(destinationProps: ImportDataDestinationProps);
|
|
1786
1901
|
}
|
|
1787
|
-
export
|
|
1788
|
-
|
|
1902
|
+
export class ImportProcess extends Entity<ImportProcessDef> {
|
|
1903
|
+
constructor(client: MicroMClient, parentKeys: ValuesObject | undefined, destinationProps: ImportDataDestinationProps);
|
|
1789
1904
|
}
|
|
1790
|
-
export
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1905
|
+
export type ImportDataPanelProps = DataGridPanelProps & {
|
|
1906
|
+
destinationEntityExportViewName?: string;
|
|
1907
|
+
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
1908
|
+
};
|
|
1909
|
+
export const ImportDataPanelDefaultProps: Partial<ImportDataPanelProps>;
|
|
1910
|
+
export function ImportDataPanel(props: ImportDataPanelProps): JSX.Element;
|
|
1911
|
+
export const UseImportDataDefaultProps: {
|
|
1912
|
+
noFileProcessLabel: string;
|
|
1913
|
+
errorImportingDataLabel: string;
|
|
1914
|
+
};
|
|
1915
|
+
export interface UseExportToExcelProps {
|
|
1916
|
+
data: DataResult[];
|
|
1917
|
+
dataResultNames?: string[];
|
|
1918
|
+
notExportableColumns?: number[];
|
|
1794
1919
|
}
|
|
1795
|
-
export
|
|
1796
|
-
|
|
1797
|
-
crop?: boolean | ImageCropOptions;
|
|
1798
|
-
resize?: boolean | ImageResizeOptions;
|
|
1799
|
-
manualRotation?: boolean | ImageManualRotationOptions;
|
|
1800
|
-
compression?: boolean | ImageCompressionOptions;
|
|
1801
|
-
outputFormat?: string;
|
|
1802
|
-
jpegBackgroundColor?: string;
|
|
1803
|
-
}
|
|
1804
|
-
export interface ResolvedBrowserImageProcessingOptions {
|
|
1805
|
-
exifOrientation: boolean;
|
|
1806
|
-
crop: false | Required<ImageCropOptions>;
|
|
1807
|
-
resize: false | Required<ImageResizeOptions>;
|
|
1808
|
-
manualRotation: false | Required<ImageManualRotationOptions>;
|
|
1809
|
-
compression: false | Required<ImageCompressionOptions>;
|
|
1810
|
-
outputFormat?: string;
|
|
1811
|
-
jpegBackgroundColor: string;
|
|
1812
|
-
}
|
|
1813
|
-
export const BrowserImageProcessingDefaults: ResolvedBrowserImageProcessingOptions;
|
|
1814
|
-
export function resolveImageProcessingOptions(options?: BrowserImageProcessingOptions): ResolvedBrowserImageProcessingOptions;
|
|
1815
|
-
export function getSupportedImageMimeType(fileName: string, declaredType?: string): string | undefined;
|
|
1816
|
-
export function isSupportedImageFile(fileName: string, declaredType?: string): boolean;
|
|
1817
|
-
export function getImageOutputSettings(file: File, options: ResolvedBrowserImageProcessingOptions): {
|
|
1818
|
-
sourceFormat: string;
|
|
1819
|
-
outputFormat: string;
|
|
1820
|
-
shouldCompress: boolean;
|
|
1821
|
-
quality: number | undefined;
|
|
1920
|
+
export function useExportToExcel(props: UseExportToExcelProps): {
|
|
1921
|
+
exportToExcel: () => Promise<void>;
|
|
1822
1922
|
};
|
|
1823
|
-
export function
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
documentURL: string;
|
|
1829
|
-
onClose: () => void;
|
|
1830
|
-
closeText: string;
|
|
1831
|
-
filePreviewError?: string;
|
|
1832
|
-
}
|
|
1833
|
-
export function ImagePreview({ documentURL, onClose, closeText }: FilePreviewProps): JSX.Element;
|
|
1834
|
-
export const PDFPreviewDefaultProps: Partial<FilePreviewProps>;
|
|
1835
|
-
export function PDFPreview(props: FilePreviewProps): JSX.Element;
|
|
1836
|
-
export class FileStoreClientDef extends EntityDefinition {
|
|
1837
|
-
columns: {
|
|
1838
|
-
dt_inserttime: EntityColumn<Date>;
|
|
1839
|
-
dt_lu: EntityColumn<Date>;
|
|
1840
|
-
vc_webinsuser: EntityColumn<string>;
|
|
1841
|
-
vc_webluuser: EntityColumn<string>;
|
|
1842
|
-
vc_insuser: EntityColumn<string>;
|
|
1843
|
-
vc_luuser: EntityColumn<string>;
|
|
1844
|
-
vc_fileguid: EntityColumn<string>;
|
|
1845
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
1846
|
-
vc_filename: EntityColumn<string>;
|
|
1847
|
-
vc_filefolder: EntityColumn<string>;
|
|
1848
|
-
bi_filesize: EntityColumn<number>;
|
|
1849
|
-
vc_file_tag: EntityColumn<string>;
|
|
1850
|
-
c_fileuploadstatus_id: EntityColumn<string>;
|
|
1851
|
-
c_filestoragetype_id: EntityColumn<string>;
|
|
1852
|
-
};
|
|
1853
|
-
views: {
|
|
1854
|
-
fcc_brwFiles: {
|
|
1855
|
-
name: string;
|
|
1856
|
-
keyMappings: {
|
|
1857
|
-
vc_fileguid: number;
|
|
1858
|
-
c_fileprocess_id: number;
|
|
1859
|
-
};
|
|
1860
|
-
};
|
|
1861
|
-
};
|
|
1862
|
-
constructor();
|
|
1863
|
-
}
|
|
1864
|
-
export class FileStoreClient extends Entity<FileStoreClientDef> {
|
|
1865
|
-
constructor(client: MicroMClient, parentKeys?: {});
|
|
1866
|
-
}
|
|
1867
|
-
export interface FullImagePreviewProps {
|
|
1868
|
-
source: HTMLCanvasElement;
|
|
1869
|
-
rotation: number;
|
|
1870
|
-
label: string;
|
|
1871
|
-
}
|
|
1872
|
-
export function FullImagePreview({ source, rotation, label }: FullImagePreviewProps): JSX.Element;
|
|
1873
|
-
export interface WebcamCaptureLabels {
|
|
1874
|
-
permissionMessage?: string;
|
|
1875
|
-
enableCameraLabel?: string;
|
|
1876
|
-
cameraLabel?: string;
|
|
1877
|
-
captureLabel?: string;
|
|
1878
|
-
retakeLabel?: string;
|
|
1879
|
-
usePhotoLabel?: string;
|
|
1880
|
-
cancelLabel?: string;
|
|
1881
|
-
unsupportedMessage?: string;
|
|
1882
|
-
insecureContextMessage?: string;
|
|
1883
|
-
permissionDeniedMessage?: string;
|
|
1884
|
-
noCameraMessage?: string;
|
|
1885
|
-
cameraUnavailableMessage?: string;
|
|
1886
|
-
}
|
|
1887
|
-
export interface WebcamCaptureProps {
|
|
1888
|
-
onCapture: (file: File) => Promise<void> | void;
|
|
1889
|
-
onCancel: () => Promise<void> | void;
|
|
1890
|
-
labels?: WebcamCaptureLabels;
|
|
1891
|
-
videoConstraints?: MediaTrackConstraints;
|
|
1892
|
-
fileName?: string;
|
|
1893
|
-
outputType?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
1894
|
-
outputQuality?: number;
|
|
1895
|
-
}
|
|
1896
|
-
export const WebcamCaptureDefaultProps: Partial<WebcamCaptureProps>;
|
|
1897
|
-
export function WebcamCapture(props: WebcamCaptureProps): JSX.Element;
|
|
1898
|
-
export type ImageEditorCameraConfiguration = Omit<WebcamCaptureProps, 'onCapture' | 'onCancel'>;
|
|
1899
|
-
export interface ImageEditorProps {
|
|
1900
|
-
sourceFile?: File;
|
|
1901
|
-
options: ResolvedBrowserImageProcessingOptions;
|
|
1902
|
-
onSave: (file: File) => Promise<void> | void;
|
|
1903
|
-
onBeforeSave?: (file: File) => boolean | Promise<boolean>;
|
|
1904
|
-
onCancel: () => Promise<void> | void;
|
|
1905
|
-
initiallyDirty?: boolean;
|
|
1906
|
-
saveLabel?: string;
|
|
1907
|
-
cancelLabel?: string;
|
|
1908
|
-
rotateClockwiseLabel?: string;
|
|
1909
|
-
rotateCounterClockwiseLabel?: string;
|
|
1910
|
-
takePhotoLabel?: string;
|
|
1911
|
-
camera?: boolean | ImageEditorCameraConfiguration;
|
|
1912
|
-
}
|
|
1913
|
-
export const ImageEditorDefaultProps: Partial<ImageEditorProps>;
|
|
1914
|
-
export const ImageEditor: (props: ImageEditorProps) => JSX.Element;
|
|
1915
|
-
export interface UploadProgressReport {
|
|
1916
|
-
errorMessage?: string;
|
|
1917
|
-
status_id: string;
|
|
1918
|
-
progress: number;
|
|
1919
|
-
done?: boolean;
|
|
1920
|
-
cancelled?: boolean;
|
|
1921
|
-
documentURL?: string;
|
|
1922
|
-
file_name: string;
|
|
1923
|
-
file_size: number;
|
|
1924
|
-
vc_fileguid?: string;
|
|
1925
|
-
thumbnailURL?: string;
|
|
1926
|
-
}
|
|
1927
|
-
export interface UseFileUploadSnapshot {
|
|
1928
|
-
files: readonly UploadProgressReport[];
|
|
1929
|
-
fileProcessID: string;
|
|
1930
|
-
maxIndividualFileSize?: number;
|
|
1931
|
-
maxTotalFilesSize?: number;
|
|
1932
|
-
maxFilesCount?: number;
|
|
1933
|
-
errorNotification?: string;
|
|
1934
|
-
cancelledNotification?: boolean;
|
|
1935
|
-
uploadingNotification?: boolean;
|
|
1936
|
-
loadingNotification?: boolean;
|
|
1937
|
-
processing: boolean;
|
|
1938
|
-
editorEnabled: boolean;
|
|
1939
|
-
}
|
|
1940
|
-
interface UseFileUploadActions {
|
|
1941
|
-
uploadFiles: (selectedFiles: File[]) => Promise<UploadProgressReport[]>;
|
|
1942
|
-
replaceFile: (fileGUID: string, replacementFile: File) => Promise<UploadProgressReport | null>;
|
|
1943
|
-
editImage: (file: string | UploadProgressReport) => Promise<UploadProgressReport | null>;
|
|
1944
|
-
openImageEditor: (file?: File, options?: OpenImageEditorOptions) => Promise<File | null>;
|
|
1945
|
-
captureImage: () => Promise<UploadProgressReport | null>;
|
|
1946
|
-
canEditImage: (file: string | UploadProgressReport) => boolean;
|
|
1947
|
-
refreshFiles: () => Promise<Record<string, UploadProgressReport>>;
|
|
1948
|
-
deleteFile: (fileGUID: string) => Promise<DBStatusResult>;
|
|
1949
|
-
downloadFile: (fileUrl: string, fileName?: string) => Promise<void>;
|
|
1950
|
-
clearNotifications: () => void;
|
|
1951
|
-
cancelUpload: () => void;
|
|
1952
|
-
}
|
|
1953
|
-
export interface UseFileUploadReturnType extends UseFileUploadSnapshot, UseFileUploadActions {
|
|
1954
|
-
subscribe: (listener: () => void) => () => void;
|
|
1955
|
-
getSnapshot: () => UseFileUploadSnapshot;
|
|
1956
|
-
}
|
|
1957
|
-
export function useFileUploadSnapshot(uploadAPI: UseFileUploadReturnType): UseFileUploadSnapshot;
|
|
1958
|
-
export type ValidateFileReturnType = {
|
|
1959
|
-
error: boolean;
|
|
1960
|
-
message?: string;
|
|
1923
|
+
export function useImportData(importEntity?: Entity<EntityDefinition>): {
|
|
1924
|
+
execute: (fileprocess_id: string, importProcedureName?: string, fileImportMapping?: FileImportMapping, initialRow?: number) => Promise<OperationStatus<ImpDataResult> | undefined>;
|
|
1925
|
+
importStatus: OperationStatus<ImpDataResult>;
|
|
1926
|
+
readonly cancellation: AbortController;
|
|
1927
|
+
cancel: () => void;
|
|
1961
1928
|
};
|
|
1962
|
-
export
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
}
|
|
1968
|
-
export interface UseFileUploadProps {
|
|
1969
|
-
client: MicroMClient;
|
|
1970
|
-
fileProcessColumn: EntityColumn<string>;
|
|
1971
|
-
maxIndividualFileSize?: number;
|
|
1972
|
-
maxTotalFilesSize?: number;
|
|
1973
|
-
maxFilesCount?: number;
|
|
1974
|
-
youCanUploadAMaximumOfText?: string;
|
|
1975
|
-
filesText?: string;
|
|
1976
|
-
exceedMaximumIndividualSizeText?: string;
|
|
1977
|
-
unspecifiedErrorWhenUploadingFileText?: string;
|
|
1978
|
-
totalUploadExceedsMaximumSizeText?: string;
|
|
1979
|
-
onCancel?: () => void;
|
|
1980
|
-
editor?: boolean;
|
|
1981
|
-
imageProcessing?: BrowserImageProcessingOptions;
|
|
1982
|
-
imageEditorTitle?: ReactNode;
|
|
1983
|
-
imageEditorProps?: ImageEditorConfigurationProps;
|
|
1984
|
-
imageEditorModalProps?: MicroMModalSettings;
|
|
1985
|
-
onValidateFile?: (file: File) => Promise<ValidateFileReturnType>;
|
|
1986
|
-
onProcessFile?: (file: File) => Promise<File | null>;
|
|
1987
|
-
onBeforeUpload?: (file: File) => Promise<boolean>;
|
|
1988
|
-
onBeforeReplace?: (currentFile: UploadProgressReport, replacementFile?: File) => Promise<boolean>;
|
|
1989
|
-
onUploadComplete?: (report: UploadProgressReport) => Promise<UploadCompletionResult | void>;
|
|
1990
|
-
onDeleteComplete?: (fileGUID: string) => Promise<void> | void;
|
|
1991
|
-
thumbnailMaxSize?: number;
|
|
1992
|
-
thumbnailQuality?: number;
|
|
1993
|
-
loadFilesOnMount?: boolean;
|
|
1994
|
-
}
|
|
1995
|
-
export const UseFileUploadDefaultProps: Partial<UseFileUploadProps>;
|
|
1996
|
-
export type UploadStatus = 'Pending' | 'Uploading' | 'Uploaded' | 'Failed' | 'Cancelled';
|
|
1997
|
-
export function useFileUpload(props: UseFileUploadProps): UseFileUploadReturnType;
|
|
1998
|
-
export interface FileUploaderProps extends Omit<DropzoneProps, 'children' | 'onDrop' | 'maxSize' | 'maxFiles'> {
|
|
1999
|
-
IdleIcon?: (props: IconProps) => ReactNode;
|
|
2000
|
-
UploadText?: string;
|
|
2001
|
-
AttachUpToText?: string;
|
|
2002
|
-
FilesText?: string;
|
|
2003
|
-
EachFileShouldNotExceedText?: string;
|
|
2004
|
-
uploadAPI: UseFileUploadReturnType;
|
|
2005
|
-
onDelete?: (fileGUID: string) => boolean | Promise<boolean>;
|
|
2006
|
-
imageProps?: ImageProps;
|
|
2007
|
-
closeText?: string;
|
|
2008
|
-
cancelledText?: string;
|
|
2009
|
-
operationCancelledText?: string;
|
|
2010
|
-
pdfCannotBeViewedText?: string;
|
|
2011
|
-
showCancelButton?: boolean;
|
|
2012
|
-
cancelLabel?: string;
|
|
2013
|
-
parentFormAPI?: UseEntityFormReturnType;
|
|
2014
|
-
editor?: boolean;
|
|
2015
|
-
editImageLabel?: string;
|
|
2016
|
-
replaceFileGUID?: string;
|
|
2017
|
-
replaceExistingFile?: boolean;
|
|
2018
|
-
}
|
|
2019
|
-
export const FileUploaderDefaultProps: Partial<FileUploaderProps>;
|
|
2020
|
-
export function FileUploader(props: FileUploaderProps): JSX.Element;
|
|
2021
|
-
export interface FilesUploadFormProps extends UseFileUploadProps {
|
|
2022
|
-
fileProcessColumn: EntityColumn<string>;
|
|
2023
|
-
onOK?: (fileprocess_id: string, files: readonly UploadProgressReport[]) => void;
|
|
2024
|
-
onDelete?: (fileGUID: string) => boolean | Promise<boolean>;
|
|
2025
|
-
helpMessage?: string;
|
|
2026
|
-
uploaderProps?: Omit<FileUploaderProps, 'uploadAPI' | 'editor'>;
|
|
2027
|
-
okLabel?: string;
|
|
2028
|
-
showOKButton?: boolean;
|
|
2029
|
-
uploadAPI?: UseFileUploadReturnType;
|
|
2030
|
-
}
|
|
2031
|
-
export const FilesUploadFormDefaultProps: Partial<FilesUploadFormProps>;
|
|
2032
|
-
export function FilesUploadForm(props: FilesUploadFormProps): JSX.Element;
|
|
2033
|
-
export interface ModalFileUploadProps {
|
|
2034
|
-
client: MicroMClient;
|
|
2035
|
-
fileProcessColumn: EntityColumn<string>;
|
|
2036
|
-
onOK?: (fileprocess_id: string, files: readonly UploadProgressReport[]) => void;
|
|
2037
|
-
onCancel?: () => void;
|
|
2038
|
-
onClosed?: () => void;
|
|
2039
|
-
modalProps?: ModalSettings;
|
|
2040
|
-
modalTitle?: string;
|
|
2041
|
-
uploadAPI?: UseFileUploadReturnType;
|
|
2042
|
-
filesUploadFormProps: Omit<FilesUploadFormProps, 'fileProcessColumn' | 'uploaderProps' | 'client' | 'onOK' | 'onCancel' | 'uploadAPI'>;
|
|
2043
|
-
uploaderProps?: Omit<FileUploaderProps, 'uploadAPI' | 'editor'>;
|
|
2044
|
-
}
|
|
2045
|
-
export const UseFileUploadFormOpenDefaultProps: Partial<ModalFileUploadProps>;
|
|
2046
|
-
export function useFilesUploadForm(): (props: ModalFileUploadProps) => Promise<void>;
|
|
2047
|
-
export interface CircleFilledIconProps {
|
|
2048
|
-
backColor?: MantineColor;
|
|
2049
|
-
color?: MantineColor;
|
|
2050
|
-
width?: string | number;
|
|
2051
|
-
minWidth?: string | number;
|
|
2052
|
-
icon: ReactNode;
|
|
2053
|
-
mr?: string;
|
|
2054
|
-
}
|
|
2055
|
-
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
2056
|
-
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
2057
|
-
export interface ImportCompletedContentProps {
|
|
2058
|
-
fileName: string;
|
|
2059
|
-
result: ImpDataResult;
|
|
2060
|
-
onClose?: () => void | Promise<void>;
|
|
2061
|
-
importedFileLabel?: string;
|
|
2062
|
-
recordsImportedSuccessfullyLabel?: string;
|
|
2063
|
-
recordsNotImportedDueToErrorsLabel?: string;
|
|
2064
|
-
errorColumnTitle?: string;
|
|
2065
|
-
rowColumnTitle?: string;
|
|
2066
|
-
closeLabel?: ReactNode;
|
|
2067
|
-
}
|
|
2068
|
-
export const ImportCompletedContentDefaultProps: Partial<ImportCompletedContentProps>;
|
|
2069
|
-
export function ImportCompletedContent(props: ImportCompletedContentProps): JSX.Element;
|
|
2070
|
-
export interface ImportDataMappingStepProps {
|
|
2071
|
-
mappingAPI: ImportDataMappingAPI;
|
|
2072
|
-
destinations: readonly string[];
|
|
2073
|
-
validationError?: string;
|
|
1929
|
+
export interface MicroMClientClaimTypes {
|
|
1930
|
+
username: string;
|
|
1931
|
+
useremail?: string;
|
|
1932
|
+
userinitials?: string;
|
|
1933
|
+
[k: string]: unknown;
|
|
2074
1934
|
}
|
|
2075
|
-
export
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
1935
|
+
export class MicroMToken {
|
|
1936
|
+
expiration: string;
|
|
1937
|
+
expires_in: number;
|
|
1938
|
+
access_token: string;
|
|
1939
|
+
refresh_token: string;
|
|
1940
|
+
token_type: string;
|
|
1941
|
+
claims: Partial<MicroMClientClaimTypes>;
|
|
1942
|
+
constructor(access_token?: string, expires_in?: number, refresh_token?: string, token_type?: string, claims?: {});
|
|
1943
|
+
className(): string;
|
|
2084
1944
|
}
|
|
2085
|
-
export
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
dateFormatLabel?: string;
|
|
2096
|
-
numberFormatLabel?: string;
|
|
2097
|
-
downloadExcelSampleLabel?: string;
|
|
2098
|
-
downloadCSVSampleLabel?: string;
|
|
2099
|
-
exportExistingDataLabel?: string;
|
|
2100
|
-
exportExistingDataErrorLabel?: string;
|
|
1945
|
+
export interface TwoFactorLoginResult {
|
|
1946
|
+
requires_two_factor: true;
|
|
1947
|
+
two_factor_challenge_id: string;
|
|
1948
|
+
two_factor_provider?: string;
|
|
1949
|
+
two_factor_flow?: "authenticator" | "email_setup" | "email_recovery" | "support_required" | "sql_admin_setup" | "sql_admin_authenticator";
|
|
1950
|
+
two_factor_setup_required?: boolean;
|
|
1951
|
+
authenticator_management_required?: boolean;
|
|
1952
|
+
qr_code_data_url?: string;
|
|
1953
|
+
username: string;
|
|
1954
|
+
email?: string;
|
|
2101
1955
|
}
|
|
2102
|
-
export
|
|
2103
|
-
export
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
noSampleDataLabel?: string;
|
|
1956
|
+
export type DataOperationType = "add" | "edit" | "delete" | "get" | "lookup" | "view" | "action" | "login" | "refresh" | "proc" | "import" | "export" | "other";
|
|
1957
|
+
export interface OperationStatus<T> {
|
|
1958
|
+
loading?: boolean;
|
|
1959
|
+
error?: MicroMError;
|
|
1960
|
+
operationType?: DataOperationType;
|
|
1961
|
+
data?: T;
|
|
2109
1962
|
}
|
|
2110
|
-
export
|
|
2111
|
-
export
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
columnMappingCorrectLabel?: string;
|
|
2122
|
-
columnMappingIncorrectLabel?: string;
|
|
2123
|
-
viewSampleDataLabel?: string;
|
|
2124
|
-
sampleDataModalTitle?: string;
|
|
2125
|
-
submitAndImportLabel?: string;
|
|
2126
|
-
importingDataLabel?: string;
|
|
1963
|
+
export type StatusCompletedHandler<T extends MicroMToken | TwoFactorLoginResult | DBStatusResult | DataResult | ValuesObject | null> = (status: OperationStatus<T>) => void;
|
|
1964
|
+
export interface UseImportDataProps {
|
|
1965
|
+
initialFormMode: FormMode;
|
|
1966
|
+
title?: string;
|
|
1967
|
+
element?: HTMLElement;
|
|
1968
|
+
getDataOnInit?: boolean;
|
|
1969
|
+
modalFormSize?: MicroMModalSize;
|
|
1970
|
+
handleModalSaved: (newStatus: OperationStatus<DBStatusResult | null>) => Promise<void>;
|
|
1971
|
+
handleModalCancel: () => Promise<void>;
|
|
1972
|
+
handleModalClosed?: () => void;
|
|
1973
|
+
handleImportSuccess?: () => Promise<void>;
|
|
2127
1974
|
}
|
|
2128
|
-
export
|
|
2129
|
-
|
|
1975
|
+
export function useImportDataForm({ initialFormMode, title, element, getDataOnInit, modalFormSize, handleModalCancel, handleModalClosed, handleModalSaved, handleImportSuccess }: UseImportDataProps): {
|
|
1976
|
+
openImportDataForm: (importEntity: Entity<EntityDefinition>, entityProcName?: string, excludedImportDestinations?: string[]) => Promise<void>;
|
|
1977
|
+
};
|
|
2130
1978
|
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
2131
1979
|
importEntity?: Entity<EntityDefinition>;
|
|
2132
1980
|
destinationEntityExportViewName?: string;
|
|
2133
1981
|
entityProcName?: string;
|
|
2134
1982
|
excludedImportDestinations?: string[];
|
|
1983
|
+
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
2135
1984
|
onImportSuccess?: () => Promise<void>;
|
|
2136
1985
|
instructionsStepLabel?: string;
|
|
2137
1986
|
instructionsStepDescription?: string;
|
|
@@ -2172,122 +2021,280 @@ export interface ImportEntityDataLabels {
|
|
|
2172
2021
|
Title?: string;
|
|
2173
2022
|
HelpText?: string;
|
|
2174
2023
|
}
|
|
2175
|
-
export const ImportEntityDataLabels: Partial<ImportEntityDataLabels>;
|
|
2176
|
-
export class ImportEntityData extends Entity<ImportEntityDataDef> {
|
|
2177
|
-
constructor(client: MicroMClient, parentKeys?: {});
|
|
2024
|
+
export const ImportEntityDataLabels: Partial<ImportEntityDataLabels>;
|
|
2025
|
+
export class ImportEntityData extends Entity<ImportEntityDataDef> {
|
|
2026
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
2027
|
+
}
|
|
2028
|
+
export type ImportFileStepCustomizationProps = Omit<FilesUploadFormProps, 'client' | 'fileProcessColumn' | 'maxFilesCount' | 'onDelete' | 'onOK' | 'onUploadComplete' | 'onValidateFile' | 'showOKButton' | 'uploaderProps' | 'uploadAPI'> & {
|
|
2029
|
+
uploaderProps?: Omit<NonNullable<FilesUploadFormProps['uploaderProps']>, 'accept' | 'disabled'>;
|
|
2030
|
+
};
|
|
2031
|
+
export interface ImportFileStepProps extends ImportFileStepCustomizationProps {
|
|
2032
|
+
entity: ImportEntityData;
|
|
2033
|
+
disabled?: boolean;
|
|
2034
|
+
validationError?: string;
|
|
2035
|
+
onValidateFile: (file: File) => Promise<ValidateFileReturnType>;
|
|
2036
|
+
onDelete: (fileGUID: string) => boolean | Promise<boolean>;
|
|
2037
|
+
onUploadComplete: (report: UploadProgressReport) => Promise<UploadCompletionResult | void>;
|
|
2038
|
+
}
|
|
2039
|
+
export const ImportFileStepDefaultProps: Partial<ImportFileStepProps>;
|
|
2040
|
+
export function ImportFileStep(props: ImportFileStepProps): JSX.Element;
|
|
2041
|
+
export interface ImportDataDestinationProps {
|
|
2042
|
+
destinationEntity: Entity<EntityDefinition>;
|
|
2043
|
+
destinationEntityExportViewName?: string;
|
|
2044
|
+
entityProcName?: string;
|
|
2045
|
+
excludedImportDestinations?: string[];
|
|
2046
|
+
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
2047
|
+
}
|
|
2048
|
+
export interface ModalFormOptions {
|
|
2049
|
+
entity: Entity<EntityDefinition>;
|
|
2050
|
+
onSaved: (entity: Entity<EntityDefinition>) => void;
|
|
2051
|
+
onCancel: (entity: Entity<EntityDefinition>) => void;
|
|
2052
|
+
}
|
|
2053
|
+
export function ModalForm({ entity, onSaved, onCancel }: ModalFormOptions): JSX.Element;
|
|
2054
|
+
export interface SearchInputProps extends TextInputProps {
|
|
2055
|
+
onSearchClick: React.MouseEventHandler;
|
|
2056
|
+
size: string;
|
|
2057
|
+
iconsSize: string;
|
|
2058
|
+
value: string;
|
|
2059
|
+
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
2060
|
+
placeholder?: string;
|
|
2061
|
+
autoFocus?: boolean;
|
|
2062
|
+
iconVariant?: ActionIconVariant;
|
|
2063
|
+
[x: string]: any;
|
|
2064
|
+
}
|
|
2065
|
+
export const SearchInputDefaultProps: Partial<SearchInputProps>;
|
|
2066
|
+
export function SearchInput(props: SearchInputProps): JSX.Element;
|
|
2067
|
+
export interface ToggleActionIconOptions {
|
|
2068
|
+
hidden: boolean;
|
|
2069
|
+
size: string;
|
|
2070
|
+
onColor: MantineColor;
|
|
2071
|
+
offColor: MantineColor;
|
|
2072
|
+
onVariant?: ActionIconVariant;
|
|
2073
|
+
offVariant?: ActionIconVariant;
|
|
2074
|
+
onIcon: ReactNode;
|
|
2075
|
+
offIcon: ReactNode;
|
|
2076
|
+
initialStatus?: 'on' | 'off';
|
|
2077
|
+
onClick?: () => void;
|
|
2078
|
+
radius?: MantineNumberSize;
|
|
2079
|
+
title?: string;
|
|
2080
|
+
}
|
|
2081
|
+
export const ToggleActionIcon: ForwardRefExoticComponent<ToggleActionIconOptions & RefAttributes<HTMLButtonElement>>;
|
|
2082
|
+
export function useExecuteView(entity?: Entity<EntityDefinition>, values?: ValuesObject, viewName?: string, search?: string[] | undefined, limit?: string | null, refresh?: boolean, filters?: ValuesObject, enabled?: boolean): OperationStatus<DataResult[]>;
|
|
2083
|
+
export function useDebugProps<T>(propsObject: T, dependencies: any[], componentName: string): void;
|
|
2084
|
+
export function useEnterAsTab<T extends HTMLElement>(): MutableRefObject<T | null>;
|
|
2085
|
+
export interface useLoginType {
|
|
2086
|
+
login: () => void;
|
|
2087
|
+
}
|
|
2088
|
+
export interface useLoginOptions {
|
|
2089
|
+
client: MicroMClient;
|
|
2090
|
+
modalProps?: ModalSettings;
|
|
2091
|
+
onClose?: () => void;
|
|
2092
|
+
title?: string;
|
|
2093
|
+
}
|
|
2094
|
+
export const UseLoginDefaultProps: Partial<useLoginOptions>;
|
|
2095
|
+
export function useLogin(props: useLoginOptions): () => Promise<void>;
|
|
2096
|
+
type PasswordFieldAllowedValidators = 'regex' | 'length' | 'field' | 'required';
|
|
2097
|
+
export type PasswordFieldValidatorConfiguration = Partial<Record<PasswordFieldAllowedValidators, ValidatorConfigurationParms>>;
|
|
2098
|
+
export interface PasswordFieldProps extends PasswordInputProps {
|
|
2099
|
+
column: EntityColumn<string>;
|
|
2100
|
+
entityForm: UseEntityFormReturnType;
|
|
2101
|
+
loading?: boolean;
|
|
2102
|
+
disableOnLoading?: boolean;
|
|
2103
|
+
validate?: PasswordFieldValidatorConfiguration;
|
|
2104
|
+
requiredMessage?: ReactNode;
|
|
2105
|
+
validationContainer?: React.ComponentType<{
|
|
2106
|
+
children: ReactNode;
|
|
2107
|
+
}>;
|
|
2108
|
+
autoMaxWidth?: {
|
|
2109
|
+
columnLenghtLessThanOrEqual: number;
|
|
2110
|
+
maxWidth: string;
|
|
2111
|
+
};
|
|
2112
|
+
}
|
|
2113
|
+
export function PasswordField(props: PasswordFieldProps): JSX.Element;
|
|
2114
|
+
export type useExecuteServerActionReturnType<TReturn extends ValuesObject> = {
|
|
2115
|
+
status: OperationStatus<TReturn>;
|
|
2116
|
+
execute: (values?: ValuesObject) => Promise<OperationStatus<TReturn> | undefined>;
|
|
2117
|
+
abort: () => void;
|
|
2118
|
+
};
|
|
2119
|
+
export function useExecuteServerAction<T extends EntityDefinition, TReturn extends ValuesObject>(entity: Entity<T>, actionName: string, doNotExecuteIfEntityValuesUnchanged?: boolean): useExecuteServerActionReturnType<TReturn>;
|
|
2120
|
+
export const NotifySuccessDefaultProps: Partial<NotificationProps>;
|
|
2121
|
+
export function NotifySuccess(props: NotificationProps): JSX.Element;
|
|
2122
|
+
export function NotifyError(props: NotificationProps): JSX.Element;
|
|
2123
|
+
export const NotifyInfoDefaultProps: Partial<NotificationProps>;
|
|
2124
|
+
export function NotifyInfo(props: NotificationProps): JSX.Element;
|
|
2125
|
+
export interface NotifyBitFieldProps extends NotificationProps {
|
|
2126
|
+
column: EntityColumn<boolean>;
|
|
2127
|
+
trueIcon?: ReactNode;
|
|
2128
|
+
falseIcon?: ReactNode;
|
|
2129
|
+
trueMessage: ReactNode;
|
|
2130
|
+
falseMessage: ReactNode;
|
|
2131
|
+
trueColor?: MantineColor;
|
|
2132
|
+
falseColor?: MantineColor;
|
|
2133
|
+
}
|
|
2134
|
+
export const NotifyBitFieldDefaultProps: Partial<NotifyBitFieldProps>;
|
|
2135
|
+
export function NotifyBitField(props: NotifyBitFieldProps): JSX.Element;
|
|
2136
|
+
export interface CheckboxFieldProps extends CheckboxProps {
|
|
2137
|
+
column: EntityColumn<Value>;
|
|
2138
|
+
entityForm: UseEntityFormReturnType;
|
|
2139
|
+
loading?: boolean;
|
|
2140
|
+
disableOnLoading?: boolean;
|
|
2141
|
+
requiredMessage?: ReactNode;
|
|
2142
|
+
}
|
|
2143
|
+
export function CheckboxField(props: CheckboxFieldProps): JSX.Element;
|
|
2144
|
+
export interface UseOperationStatusCallback<T> {
|
|
2145
|
+
callback: (...args: any[]) => Promise<T>;
|
|
2146
|
+
operation: DataOperationType;
|
|
2147
|
+
deps: React.DependencyList;
|
|
2178
2148
|
}
|
|
2179
|
-
export
|
|
2180
|
-
|
|
2149
|
+
export type UseOperationStatusCallbackReturnType<T> = {
|
|
2150
|
+
operationCallback: (...args: any[]) => Promise<OperationStatus<T>>;
|
|
2151
|
+
status: OperationStatus<T>;
|
|
2181
2152
|
};
|
|
2182
|
-
export
|
|
2183
|
-
export
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
i_total_records: EntityColumn<number>;
|
|
2195
|
-
i_errors: EntityColumn<number>;
|
|
2196
|
-
vc_assemblytypename: EntityColumn<string>;
|
|
2197
|
-
vc_import_procname: EntityColumn<string>;
|
|
2198
|
-
c_import_status_id: EntityColumn<string>;
|
|
2199
|
-
vc_fileguid: EntityColumn<string>;
|
|
2200
|
-
};
|
|
2201
|
-
views: {
|
|
2202
|
-
ipr_brwStandard: {
|
|
2203
|
-
name: string;
|
|
2204
|
-
keyMappings: {
|
|
2205
|
-
c_import_process_id: number;
|
|
2206
|
-
vc_fileguid: number;
|
|
2207
|
-
};
|
|
2208
|
-
};
|
|
2209
|
-
};
|
|
2210
|
-
clientActions: {
|
|
2211
|
-
ACTImportData: _EntityClientAction1;
|
|
2212
|
-
ACTDownloadImportedFile: _EntityClientAction1;
|
|
2213
|
-
ACTViewImportErrors: _EntityClientAction1;
|
|
2214
|
-
};
|
|
2215
|
-
constructor(destinationProps: ImportDataDestinationProps);
|
|
2153
|
+
export function useOperationStatusCallback<T>(props: UseOperationStatusCallback<T>): UseOperationStatusCallbackReturnType<T>;
|
|
2154
|
+
export interface ConfirmPanelProps {
|
|
2155
|
+
content: ReactNode;
|
|
2156
|
+
loadingContent?: ReactNode;
|
|
2157
|
+
operation: DataOperationType;
|
|
2158
|
+
onOK: () => Promise<unknown>;
|
|
2159
|
+
onCancel: () => Promise<void> | void;
|
|
2160
|
+
cancelButtonText?: string;
|
|
2161
|
+
okButtonText?: string;
|
|
2162
|
+
okButtonProps?: ButtonProps;
|
|
2163
|
+
cancelButtonProps?: ButtonProps;
|
|
2164
|
+
runOnOpen?: boolean;
|
|
2216
2165
|
}
|
|
2217
|
-
export
|
|
2218
|
-
|
|
2166
|
+
export const ConfirmAndExecutePanelDefaultProps: Partial<ConfirmPanelProps>;
|
|
2167
|
+
export function ConfirmAndExecutePanel(props: ConfirmPanelProps): JSX.Element;
|
|
2168
|
+
export interface EmailFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
2169
|
+
invalidMessage?: string;
|
|
2219
2170
|
}
|
|
2220
|
-
export
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
export function ImportDataPanel(props: ImportDataPanelProps): JSX.Element;
|
|
2225
|
-
export const UseImportDataDefaultProps: {
|
|
2226
|
-
noFileProcessLabel: string;
|
|
2227
|
-
errorImportingDataLabel: string;
|
|
2228
|
-
};
|
|
2229
|
-
export interface UseExportToExcelProps {
|
|
2230
|
-
data: DataResult[];
|
|
2231
|
-
dataResultNames?: string[];
|
|
2232
|
-
notExportableColumns?: number[];
|
|
2171
|
+
export const EmailFieldDefaultProps: Partial<EmailFieldProps>;
|
|
2172
|
+
export function EmailField(props: EmailFieldProps): JSX.Element;
|
|
2173
|
+
export interface UrlFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
2174
|
+
invalidMessage?: string;
|
|
2233
2175
|
}
|
|
2234
|
-
export
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
readonly cancellation: AbortController;
|
|
2241
|
-
cancel: () => void;
|
|
2242
|
-
};
|
|
2243
|
-
export interface MicroMClientClaimTypes {
|
|
2244
|
-
username: string;
|
|
2245
|
-
useremail?: string;
|
|
2246
|
-
userinitials?: string;
|
|
2247
|
-
[k: string]: unknown;
|
|
2176
|
+
export const UrlFieldDefaultProps: Partial<UrlFieldProps>;
|
|
2177
|
+
export function UrlField(props: UrlFieldProps): JSX.Element;
|
|
2178
|
+
export interface UseDynamicContentProps {
|
|
2179
|
+
contentState: ReturnType<typeof useState<ReactNode>>;
|
|
2180
|
+
dynamicContent: Promise<ReactNode>;
|
|
2181
|
+
loading?: ReactNode;
|
|
2248
2182
|
}
|
|
2249
|
-
export
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
claims: Partial<MicroMClientClaimTypes>;
|
|
2256
|
-
constructor(access_token?: string, expires_in?: number, refresh_token?: string, token_type?: string, claims?: {});
|
|
2257
|
-
className(): string;
|
|
2183
|
+
export function useDynamicContent(props: UseDynamicContentProps): void;
|
|
2184
|
+
export interface CopyToClipboardProps extends ActionIconProps {
|
|
2185
|
+
valueToCopy: unknown;
|
|
2186
|
+
timeout?: number;
|
|
2187
|
+
copiedColor?: MantineColor;
|
|
2188
|
+
iconSize?: string | number;
|
|
2258
2189
|
}
|
|
2259
|
-
export
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
two_factor_provider?: string;
|
|
2263
|
-
two_factor_flow?: "authenticator" | "email_setup" | "email_recovery" | "support_required" | "sql_admin_setup" | "sql_admin_authenticator";
|
|
2264
|
-
two_factor_setup_required?: boolean;
|
|
2265
|
-
authenticator_management_required?: boolean;
|
|
2266
|
-
qr_code_data_url?: string;
|
|
2267
|
-
username: string;
|
|
2268
|
-
email?: string;
|
|
2190
|
+
export function CopyToClipboard(props: CopyToClipboardProps): JSX.Element;
|
|
2191
|
+
export interface CodeBlockProps extends Omit<PrismProps, 'children'> {
|
|
2192
|
+
codeText: string;
|
|
2269
2193
|
}
|
|
2270
|
-
export
|
|
2271
|
-
export
|
|
2194
|
+
export const CodeBlockDefaultProps: Partial<CodeBlockProps>;
|
|
2195
|
+
export function CodeBlock(props: CodeBlockProps): JSX.Element;
|
|
2196
|
+
export interface DateInputFieldProps extends Omit<DateInputProps, 'autoFocus'> {
|
|
2197
|
+
column: EntityColumn<Value>;
|
|
2198
|
+
entityForm: UseEntityFormReturnType;
|
|
2199
|
+
validate?: ValidatorConfiguration;
|
|
2200
|
+
requiredMessage?: ReactNode;
|
|
2201
|
+
validationContainer?: React.ComponentType<{
|
|
2202
|
+
children: ReactNode;
|
|
2203
|
+
}>;
|
|
2204
|
+
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
2205
|
+
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
2206
|
+
minWidth?: keyof typeof MicroMWidthSizes;
|
|
2207
|
+
}
|
|
2208
|
+
export const DateInputFieldDefaultProps: Partial<DateInputFieldProps>;
|
|
2209
|
+
export const DateInputField: ForwardRefExoticComponent<DateInputFieldProps & RefAttributes<HTMLInputElement>>;
|
|
2210
|
+
export interface NumberFieldProps extends Omit<NumberInputProps, 'autoFocus'> {
|
|
2211
|
+
column: EntityColumn<Value>;
|
|
2212
|
+
entityForm: UseEntityFormReturnType;
|
|
2272
2213
|
loading?: boolean;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2214
|
+
disableOnLoading?: boolean;
|
|
2215
|
+
validate?: ValidatorConfiguration;
|
|
2216
|
+
requiredMessage?: ReactNode;
|
|
2217
|
+
validationContainer?: React.ComponentType<{
|
|
2218
|
+
children: ReactNode;
|
|
2219
|
+
}>;
|
|
2220
|
+
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
2221
|
+
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
2222
|
+
minWidth?: keyof typeof MicroMWidthSizes;
|
|
2276
2223
|
}
|
|
2277
|
-
export
|
|
2278
|
-
export interface
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
getDataOnInit?: boolean;
|
|
2283
|
-
modalFormSize?: MicroMModalSize;
|
|
2284
|
-
handleModalSaved: (newStatus: OperationStatus<DBStatusResult | null>) => Promise<void>;
|
|
2285
|
-
handleModalCancel: () => Promise<void>;
|
|
2286
|
-
handleModalClosed?: () => void;
|
|
2287
|
-
handleImportSuccess?: () => Promise<void>;
|
|
2224
|
+
export const NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<HTMLInputElement>>;
|
|
2225
|
+
export interface UseHierarchyKeysProps {
|
|
2226
|
+
formAPI: UseEntityFormReturnType;
|
|
2227
|
+
hierarchy: string[];
|
|
2228
|
+
mappedHierarchy?: string[];
|
|
2288
2229
|
}
|
|
2289
|
-
export function
|
|
2290
|
-
|
|
2230
|
+
export function useHierarchyKeys(props: UseHierarchyKeysProps): Record<string, Value>[];
|
|
2231
|
+
export interface PhoneFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
2232
|
+
invalidMessage?: string;
|
|
2233
|
+
showCallIcon?: boolean;
|
|
2234
|
+
showWhatsappIcon?: boolean;
|
|
2235
|
+
}
|
|
2236
|
+
export const PhoneFieldDefaultProps: Partial<PhoneFieldProps>;
|
|
2237
|
+
export function PhoneField(props: PhoneFieldProps): JSX.Element;
|
|
2238
|
+
export interface CUITFieldProps extends TextFieldProps {
|
|
2239
|
+
invalidMessage?: string;
|
|
2240
|
+
}
|
|
2241
|
+
export const CUITFieldDefaultProps: Partial<CUITFieldProps>;
|
|
2242
|
+
export function CUITField(props: CUITFieldProps): JSX.Element;
|
|
2243
|
+
export interface UseParentKeysProps {
|
|
2244
|
+
formAPI: UseEntityFormReturnType;
|
|
2245
|
+
columnNames: string[];
|
|
2246
|
+
entity: Entity<EntityDefinition>;
|
|
2247
|
+
}
|
|
2248
|
+
export function useParentKeys(props: UseParentKeysProps): ValuesObject;
|
|
2249
|
+
export interface TimeFieldProps extends Omit<TimeInputProps, 'validate' | 'autoFocus'> {
|
|
2250
|
+
column: EntityColumn<Value>;
|
|
2251
|
+
entityForm: UseEntityFormReturnType;
|
|
2252
|
+
validate?: ValidatorConfiguration;
|
|
2253
|
+
requiredMessage?: React.ReactNode;
|
|
2254
|
+
validationContainer?: React.ComponentType<{
|
|
2255
|
+
children: ReactNode;
|
|
2256
|
+
}>;
|
|
2257
|
+
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
2258
|
+
showTimePicker?: boolean;
|
|
2259
|
+
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
2260
|
+
minWidth?: keyof typeof MicroMWidthSizes;
|
|
2261
|
+
}
|
|
2262
|
+
export const TimeFieldDefaultProps: Partial<TimeFieldProps>;
|
|
2263
|
+
interface TimeFieldRef {
|
|
2264
|
+
showPicker: () => void;
|
|
2265
|
+
}
|
|
2266
|
+
export const TimeField: ForwardRefExoticComponent<TimeFieldProps & RefAttributes<TimeFieldRef>>;
|
|
2267
|
+
export function getInitials(input: string): string;
|
|
2268
|
+
export interface useIsLoggedInProps {
|
|
2269
|
+
client: MicroMClient;
|
|
2270
|
+
useLocalLoggedInCheck?: boolean;
|
|
2271
|
+
userInitialsClientClaimsNames?: string[];
|
|
2272
|
+
}
|
|
2273
|
+
export type useIsLoggedInReturnType = {
|
|
2274
|
+
isLoggedIn: boolean | undefined;
|
|
2275
|
+
setIsLoggedIn: Dispatch<SetStateAction<boolean | undefined>>;
|
|
2276
|
+
checkIsLoggedIn: () => Promise<void>;
|
|
2277
|
+
loggedInInfo: Partial<MicroMClientClaimTypes>;
|
|
2278
|
+
};
|
|
2279
|
+
export function useIsLoggedIn({ client, useLocalLoggedInCheck, userInitialsClientClaimsNames }: useIsLoggedInProps): useIsLoggedInReturnType;
|
|
2280
|
+
export const usePreventEnterSubmission: () => (event: KeyboardEvent) => void;
|
|
2281
|
+
export function formatDate(value: Value, locale?: string, dateOptions?: Intl.DateTimeFormatOptions): string;
|
|
2282
|
+
export function formatTime(value: Value, locale?: string, dateOptions?: Intl.DateTimeFormatOptions): string;
|
|
2283
|
+
export function formatNumber(value: Value, locale?: string): string;
|
|
2284
|
+
export function convertDateToNative(value: string, serverTimeZoneOffset: number): Date;
|
|
2285
|
+
export function formatSQLValue(value: Value, sqlType: SQLType, locale?: string): string;
|
|
2286
|
+
export function convertToNativeValue(value: Value, sqlType: SQLType, serverTimezoneOffset: number): Value;
|
|
2287
|
+
export interface UseLocaleFormatProps {
|
|
2288
|
+
timeZoneOffset: number;
|
|
2289
|
+
initialLocale?: string;
|
|
2290
|
+
}
|
|
2291
|
+
export const UseLocaleFormatDefaultProps: Partial<UseLocaleFormatProps>;
|
|
2292
|
+
export function useLocaleFormat(props: UseLocaleFormatProps): {
|
|
2293
|
+
locale: string | undefined;
|
|
2294
|
+
setLocale: Dispatch<SetStateAction<string | undefined>>;
|
|
2295
|
+
formatValue: (value: Value, sqlType: SQLType) => string;
|
|
2296
|
+
getNativeValue: (value: Value, sqlType: SQLType) => Value;
|
|
2297
|
+
formatColumnValue: (col: EntityColumn<Value>) => string;
|
|
2291
2298
|
};
|
|
2292
2299
|
export interface EntityUILabels {
|
|
2293
2300
|
addLabel: string;
|