@mcurros2/microm 1.1.394-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 +791 -777
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +152 -84
- 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,305 +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
|
-
entityProcName?: string;
|
|
1331
|
-
excludedImportDestinations?: string[];
|
|
1332
|
-
}
|
|
1333
|
-
export interface useTextTransformProps {
|
|
1334
|
-
entityForm: UseEntityFormReturnType;
|
|
1335
|
-
column: EntityColumn<Value>;
|
|
1336
|
-
transform?: "uppercase" | "lowercase" | "capitalize" | "titlecase";
|
|
1337
|
-
autoTrim?: boolean;
|
|
1328
|
+
export interface ImageCropOptions {
|
|
1329
|
+
aspectRatio?: number;
|
|
1338
1330
|
}
|
|
1339
|
-
export
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
column: EntityColumn<Value>;
|
|
1344
|
-
entityForm: UseEntityFormReturnType;
|
|
1345
|
-
validate?: TextAreaFieldValidatorConfiguration;
|
|
1346
|
-
requiredMessage?: ReactNode;
|
|
1347
|
-
validationContainer?: React.ComponentType<{
|
|
1348
|
-
children: ReactNode;
|
|
1349
|
-
}>;
|
|
1350
|
-
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1331
|
+
export interface ImageResizeOptions {
|
|
1332
|
+
maxWidth?: number;
|
|
1333
|
+
maxHeight?: number;
|
|
1334
|
+
allowUpscale?: boolean;
|
|
1351
1335
|
}
|
|
1352
|
-
export
|
|
1353
|
-
|
|
1354
|
-
column: EntityColumn<Value>;
|
|
1355
|
-
entityForm: UseEntityFormReturnType;
|
|
1356
|
-
validate?: ValidatorConfiguration;
|
|
1357
|
-
requiredMessage?: ReactNode;
|
|
1358
|
-
validationContainer?: React.ComponentType<{
|
|
1359
|
-
children: ReactNode;
|
|
1360
|
-
}>;
|
|
1361
|
-
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1362
|
-
autoMaxWidth?: {
|
|
1363
|
-
columnLenghtLessThanOrEqual: number;
|
|
1364
|
-
maxWidth: string;
|
|
1365
|
-
};
|
|
1366
|
-
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
1367
|
-
minWidth?: keyof typeof MicroMWidthSizes;
|
|
1336
|
+
export interface ImageManualRotationOptions {
|
|
1337
|
+
stepDegrees?: 90 | -90;
|
|
1368
1338
|
}
|
|
1369
|
-
export
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1339
|
+
export interface ImageCompressionOptions {
|
|
1340
|
+
thresholdBytes?: number;
|
|
1341
|
+
quality?: number;
|
|
1342
|
+
fallbackFormat?: string;
|
|
1373
1343
|
}
|
|
1374
|
-
export
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
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;
|
|
1380
1352
|
}
|
|
1381
|
-
export
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
autoFocus?: boolean;
|
|
1390
|
-
iconVariant?: ActionIconVariant;
|
|
1391
|
-
[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;
|
|
1392
1361
|
}
|
|
1393
|
-
export const
|
|
1394
|
-
export function
|
|
1395
|
-
export
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
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;
|
|
1408
1381
|
}
|
|
1409
|
-
export
|
|
1410
|
-
export
|
|
1411
|
-
export function
|
|
1412
|
-
export
|
|
1413
|
-
|
|
1414
|
-
|
|
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();
|
|
1415
1412
|
}
|
|
1416
|
-
export
|
|
1417
|
-
client: MicroMClient;
|
|
1418
|
-
modalProps?: ModalSettings;
|
|
1419
|
-
onClose?: () => void;
|
|
1420
|
-
title?: string;
|
|
1413
|
+
export class FileStoreClient extends Entity<FileStoreClientDef> {
|
|
1414
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
1421
1415
|
}
|
|
1422
|
-
export
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
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
|
+
};
|
|
1439
1433
|
};
|
|
1434
|
+
constructor();
|
|
1440
1435
|
}
|
|
1441
|
-
export
|
|
1442
|
-
|
|
1443
|
-
status: OperationStatus<TReturn>;
|
|
1444
|
-
execute: (values?: ValuesObject) => Promise<OperationStatus<TReturn> | undefined>;
|
|
1445
|
-
abort: () => void;
|
|
1446
|
-
};
|
|
1447
|
-
export function useExecuteServerAction<T extends EntityDefinition, TReturn extends ValuesObject>(entity: Entity<T>, actionName: string, doNotExecuteIfEntityValuesUnchanged?: boolean): useExecuteServerActionReturnType<TReturn>;
|
|
1448
|
-
export const NotifySuccessDefaultProps: Partial<NotificationProps>;
|
|
1449
|
-
export function NotifySuccess(props: NotificationProps): JSX.Element;
|
|
1450
|
-
export function NotifyError(props: NotificationProps): JSX.Element;
|
|
1451
|
-
export const NotifyInfoDefaultProps: Partial<NotificationProps>;
|
|
1452
|
-
export function NotifyInfo(props: NotificationProps): JSX.Element;
|
|
1453
|
-
export interface NotifyBitFieldProps extends NotificationProps {
|
|
1454
|
-
column: EntityColumn<boolean>;
|
|
1455
|
-
trueIcon?: ReactNode;
|
|
1456
|
-
falseIcon?: ReactNode;
|
|
1457
|
-
trueMessage: ReactNode;
|
|
1458
|
-
falseMessage: ReactNode;
|
|
1459
|
-
trueColor?: MantineColor;
|
|
1460
|
-
falseColor?: MantineColor;
|
|
1436
|
+
export class FileStoreProcess extends Entity<FileStoreProcessDef> {
|
|
1437
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
1461
1438
|
}
|
|
1462
|
-
export
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
entityForm: UseEntityFormReturnType;
|
|
1467
|
-
loading?: boolean;
|
|
1468
|
-
disableOnLoading?: boolean;
|
|
1469
|
-
requiredMessage?: ReactNode;
|
|
1439
|
+
export interface FullImagePreviewProps {
|
|
1440
|
+
source: HTMLCanvasElement;
|
|
1441
|
+
rotation: number;
|
|
1442
|
+
label: string;
|
|
1470
1443
|
}
|
|
1471
|
-
export function
|
|
1472
|
-
export interface
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
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;
|
|
1476
1458
|
}
|
|
1477
|
-
export
|
|
1478
|
-
|
|
1479
|
-
status: OperationStatus<T>;
|
|
1480
|
-
};
|
|
1481
|
-
export function useOperationStatusCallback<T>(props: UseOperationStatusCallback<T>): UseOperationStatusCallbackReturnType<T>;
|
|
1482
|
-
export interface ConfirmPanelProps {
|
|
1483
|
-
content: ReactNode;
|
|
1484
|
-
loadingContent?: ReactNode;
|
|
1485
|
-
operation: DataOperationType;
|
|
1486
|
-
onOK: () => Promise<unknown>;
|
|
1459
|
+
export interface WebcamCaptureProps {
|
|
1460
|
+
onCapture: (file: File) => Promise<void> | void;
|
|
1487
1461
|
onCancel: () => Promise<void> | void;
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
}
|
|
1494
|
-
export const ConfirmAndExecutePanelDefaultProps: Partial<ConfirmPanelProps>;
|
|
1495
|
-
export function ConfirmAndExecutePanel(props: ConfirmPanelProps): JSX.Element;
|
|
1496
|
-
export interface EmailFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
1497
|
-
invalidMessage?: string;
|
|
1498
|
-
}
|
|
1499
|
-
export const EmailFieldDefaultProps: Partial<EmailFieldProps>;
|
|
1500
|
-
export function EmailField(props: EmailFieldProps): JSX.Element;
|
|
1501
|
-
export interface UrlFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
1502
|
-
invalidMessage?: string;
|
|
1503
|
-
}
|
|
1504
|
-
export const UrlFieldDefaultProps: Partial<UrlFieldProps>;
|
|
1505
|
-
export function UrlField(props: UrlFieldProps): JSX.Element;
|
|
1506
|
-
export interface UseDynamicContentProps {
|
|
1507
|
-
contentState: ReturnType<typeof useState<ReactNode>>;
|
|
1508
|
-
dynamicContent: Promise<ReactNode>;
|
|
1509
|
-
loading?: ReactNode;
|
|
1510
|
-
}
|
|
1511
|
-
export function useDynamicContent(props: UseDynamicContentProps): void;
|
|
1512
|
-
export interface CopyToClipboardProps extends ActionIconProps {
|
|
1513
|
-
valueToCopy: unknown;
|
|
1514
|
-
timeout?: number;
|
|
1515
|
-
copiedColor?: MantineColor;
|
|
1516
|
-
iconSize?: string | number;
|
|
1462
|
+
labels?: WebcamCaptureLabels;
|
|
1463
|
+
videoConstraints?: MediaTrackConstraints;
|
|
1464
|
+
fileName?: string;
|
|
1465
|
+
outputType?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
1466
|
+
outputQuality?: number;
|
|
1517
1467
|
}
|
|
1518
|
-
export
|
|
1519
|
-
export
|
|
1520
|
-
|
|
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;
|
|
1521
1484
|
}
|
|
1522
|
-
export const
|
|
1523
|
-
export
|
|
1524
|
-
export interface
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
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;
|
|
1535
1498
|
}
|
|
1536
|
-
export
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
autoFocus?: 'autoFocusOnAdd' | 'autoFocusOnEdit' | boolean;
|
|
1549
|
-
maxWidth?: keyof typeof MicroMWidthSizes;
|
|
1550
|
-
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;
|
|
1551
1511
|
}
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
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;
|
|
1557
1524
|
}
|
|
1558
|
-
export
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
showCallIcon?: boolean;
|
|
1562
|
-
showWhatsappIcon?: boolean;
|
|
1525
|
+
export interface UseFileUploadReturnType extends UseFileUploadSnapshot, UseFileUploadActions {
|
|
1526
|
+
subscribe: (listener: () => void) => () => void;
|
|
1527
|
+
getSnapshot: () => UseFileUploadSnapshot;
|
|
1563
1528
|
}
|
|
1564
|
-
export
|
|
1565
|
-
export
|
|
1566
|
-
|
|
1567
|
-
|
|
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']>;
|
|
1568
1539
|
}
|
|
1569
|
-
export
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
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;
|
|
1575
1566
|
}
|
|
1576
|
-
export
|
|
1577
|
-
export
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
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;
|
|
1589
1590
|
}
|
|
1590
|
-
export const
|
|
1591
|
-
|
|
1592
|
-
|
|
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;
|
|
1593
1602
|
}
|
|
1594
|
-
export const
|
|
1595
|
-
export function
|
|
1596
|
-
export interface
|
|
1603
|
+
export const FilesUploadFormDefaultProps: Partial<FilesUploadFormProps>;
|
|
1604
|
+
export function FilesUploadForm(props: FilesUploadFormProps): JSX.Element;
|
|
1605
|
+
export interface ModalFileUploadProps {
|
|
1597
1606
|
client: MicroMClient;
|
|
1598
|
-
|
|
1599
|
-
|
|
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'>;
|
|
1600
1616
|
}
|
|
1601
|
-
export
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
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();
|
|
1618
1648
|
}
|
|
1619
|
-
export const UseLocaleFormatDefaultProps: Partial<UseLocaleFormatProps>;
|
|
1620
|
-
export function useLocaleFormat(props: UseLocaleFormatProps): {
|
|
1621
|
-
locale: string | undefined;
|
|
1622
|
-
setLocale: Dispatch<SetStateAction<string | undefined>>;
|
|
1623
|
-
formatValue: (value: Value, sqlType: SQLType) => string;
|
|
1624
|
-
getNativeValue: (value: Value, sqlType: SQLType) => Value;
|
|
1625
|
-
formatColumnValue: (col: EntityColumn<Value>) => string;
|
|
1626
|
-
};
|
|
1627
1649
|
export interface ImportFileSheet {
|
|
1628
1650
|
name: string | null;
|
|
1629
1651
|
rows: string[][];
|
|
@@ -1702,11 +1724,128 @@ export interface ImportDataMappingEditorProps {
|
|
|
1702
1724
|
}
|
|
1703
1725
|
export const ImportDataMappingEditorDefaultProps: Partial<ImportDataMappingEditorProps>;
|
|
1704
1726
|
export function ImportDataMappingEditor(props: ImportDataMappingEditorProps): JSX.Element | null;
|
|
1705
|
-
export
|
|
1706
|
-
|
|
1707
|
-
|
|
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;
|
|
1801
|
+
export const ACTDownloadImportedFileDefaultProps: {
|
|
1802
|
+
downloadImportedFileLabel: string;
|
|
1803
|
+
downloadImportedFileErrorLabel: string;
|
|
1708
1804
|
};
|
|
1709
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;
|
|
1710
1849
|
export const ApplyFiltersDefaultLabel = "Apply Filters";
|
|
1711
1850
|
export function AutoFiltersForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
1712
1851
|
export function createEntityForm<T extends FormOptions<Entity<EntityDefinition>>>(props: T): Promise<ReactNode>;
|
|
@@ -1722,30 +1861,12 @@ export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefiniti
|
|
|
1722
1861
|
formProps: T;
|
|
1723
1862
|
}
|
|
1724
1863
|
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
1725
|
-
export
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
vc_insuser: EntityColumn<string>;
|
|
1732
|
-
vc_luuser: EntityColumn<string>;
|
|
1733
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
1734
|
-
};
|
|
1735
|
-
views: {
|
|
1736
|
-
fsp_brwStandard: {
|
|
1737
|
-
name: string;
|
|
1738
|
-
keyMappings: {
|
|
1739
|
-
c_fileprocess_id: number;
|
|
1740
|
-
};
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
constructor();
|
|
1744
|
-
}
|
|
1745
|
-
export class FileStoreProcess extends Entity<FileStoreProcessDef> {
|
|
1746
|
-
constructor(client: MicroMClient, parentKeys?: {});
|
|
1747
|
-
}
|
|
1748
|
-
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;
|
|
1749
1870
|
columns: {
|
|
1750
1871
|
dt_inserttime: EntityColumn<Date>;
|
|
1751
1872
|
dt_lu: EntityColumn<Date>;
|
|
@@ -1753,534 +1874,427 @@ export class ImportEntityDataDef extends EntityDefinition {
|
|
|
1753
1874
|
vc_webluuser: EntityColumn<string>;
|
|
1754
1875
|
vc_insuser: EntityColumn<string>;
|
|
1755
1876
|
vc_luuser: EntityColumn<string>;
|
|
1877
|
+
c_import_process_id: EntityColumn<string>;
|
|
1756
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>;
|
|
1757
1885
|
};
|
|
1758
1886
|
views: {
|
|
1759
1887
|
ipr_brwStandard: {
|
|
1760
1888
|
name: string;
|
|
1761
1889
|
keyMappings: {
|
|
1762
|
-
|
|
1890
|
+
c_import_process_id: number;
|
|
1891
|
+
vc_fileguid: number;
|
|
1763
1892
|
};
|
|
1764
1893
|
};
|
|
1765
1894
|
};
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
keyIndex: number;
|
|
1771
|
-
descriptionIndex: number;
|
|
1772
|
-
};
|
|
1773
|
-
entityConstructor: (client: MicroMClient, parentKeys?: ValuesObject) => FileStoreProcess;
|
|
1774
|
-
};
|
|
1895
|
+
clientActions: {
|
|
1896
|
+
ACTImportData: _EntityClientAction1;
|
|
1897
|
+
ACTDownloadImportedFile: _EntityClientAction1;
|
|
1898
|
+
ACTViewImportErrors: _EntityClientAction1;
|
|
1775
1899
|
};
|
|
1776
|
-
constructor();
|
|
1900
|
+
constructor(destinationProps: ImportDataDestinationProps);
|
|
1777
1901
|
}
|
|
1778
|
-
export
|
|
1779
|
-
|
|
1902
|
+
export class ImportProcess extends Entity<ImportProcessDef> {
|
|
1903
|
+
constructor(client: MicroMClient, parentKeys: ValuesObject | undefined, destinationProps: ImportDataDestinationProps);
|
|
1780
1904
|
}
|
|
1781
|
-
export
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
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[];
|
|
1785
1919
|
}
|
|
1786
|
-
export
|
|
1787
|
-
|
|
1920
|
+
export function useExportToExcel(props: UseExportToExcelProps): {
|
|
1921
|
+
exportToExcel: () => Promise<void>;
|
|
1922
|
+
};
|
|
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;
|
|
1928
|
+
};
|
|
1929
|
+
export interface MicroMClientClaimTypes {
|
|
1930
|
+
username: string;
|
|
1931
|
+
useremail?: string;
|
|
1932
|
+
userinitials?: string;
|
|
1933
|
+
[k: string]: unknown;
|
|
1788
1934
|
}
|
|
1789
|
-
export
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
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;
|
|
1793
1944
|
}
|
|
1794
|
-
export interface
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
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;
|
|
1802
1955
|
}
|
|
1803
|
-
export
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
outputFormat?: string;
|
|
1810
|
-
jpegBackgroundColor: 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;
|
|
1811
1962
|
}
|
|
1812
|
-
export
|
|
1813
|
-
export
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
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>;
|
|
1974
|
+
}
|
|
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>;
|
|
1821
1977
|
};
|
|
1822
|
-
export
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1978
|
+
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
1979
|
+
importEntity?: Entity<EntityDefinition>;
|
|
1980
|
+
destinationEntityExportViewName?: string;
|
|
1981
|
+
entityProcName?: string;
|
|
1982
|
+
excludedImportDestinations?: string[];
|
|
1983
|
+
importFileStepProps?: ImportFileStepCustomizationProps;
|
|
1984
|
+
onImportSuccess?: () => Promise<void>;
|
|
1985
|
+
instructionsStepLabel?: string;
|
|
1986
|
+
instructionsStepDescription?: string;
|
|
1987
|
+
uploadStepLabel?: string;
|
|
1988
|
+
uploadStepDescription?: string;
|
|
1989
|
+
dataMappingStepLabel?: string;
|
|
1990
|
+
dataMappingStepDescription?: string;
|
|
1991
|
+
summaryStepLabel?: string;
|
|
1992
|
+
summaryStepDescription?: string;
|
|
1993
|
+
instructionsLabel?: string;
|
|
1994
|
+
columnHeaderLabel?: string;
|
|
1995
|
+
dataNameLabel?: string;
|
|
1996
|
+
contentLabel?: string;
|
|
1997
|
+
dataTypeLabel?: string;
|
|
1998
|
+
dateFormatLabel?: string;
|
|
1999
|
+
numberFormatLabel?: string;
|
|
2000
|
+
downloadExcelSampleLabel?: string;
|
|
2001
|
+
downloadCSVSampleLabel?: string;
|
|
2002
|
+
exportExistingDataLabel?: string;
|
|
2003
|
+
exportExistingDataErrorLabel?: string;
|
|
2004
|
+
errorReadingFileLabel?: string;
|
|
2005
|
+
emptyFileLabel?: string;
|
|
2006
|
+
uploadRequiredLabel?: string;
|
|
2007
|
+
mappingRequiredLabel?: string;
|
|
2008
|
+
importButtonLabel?: string;
|
|
2009
|
+
submitAndImportLabel?: string;
|
|
2010
|
+
importingDataLabel?: string;
|
|
2011
|
+
importedFileLabel?: string;
|
|
2012
|
+
recordsImportedSuccessfullyLabel?: string;
|
|
2013
|
+
recordsNotImportedDueToErrorsLabel?: string;
|
|
2014
|
+
errorColumnTitle?: string;
|
|
2015
|
+
rowColumnTitle?: string;
|
|
1831
2016
|
}
|
|
1832
|
-
export
|
|
1833
|
-
export
|
|
1834
|
-
export
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
dt_lu: EntityColumn<Date>;
|
|
1839
|
-
vc_webinsuser: EntityColumn<string>;
|
|
1840
|
-
vc_webluuser: EntityColumn<string>;
|
|
1841
|
-
vc_insuser: EntityColumn<string>;
|
|
1842
|
-
vc_luuser: EntityColumn<string>;
|
|
1843
|
-
vc_fileguid: EntityColumn<string>;
|
|
1844
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
1845
|
-
vc_filename: EntityColumn<string>;
|
|
1846
|
-
vc_filefolder: EntityColumn<string>;
|
|
1847
|
-
bi_filesize: EntityColumn<number>;
|
|
1848
|
-
vc_file_tag: EntityColumn<string>;
|
|
1849
|
-
c_fileuploadstatus_id: EntityColumn<string>;
|
|
1850
|
-
c_filestoragetype_id: EntityColumn<string>;
|
|
1851
|
-
};
|
|
1852
|
-
views: {
|
|
1853
|
-
fcc_brwFiles: {
|
|
1854
|
-
name: string;
|
|
1855
|
-
keyMappings: {
|
|
1856
|
-
vc_fileguid: number;
|
|
1857
|
-
c_fileprocess_id: number;
|
|
1858
|
-
};
|
|
1859
|
-
};
|
|
1860
|
-
};
|
|
1861
|
-
constructor();
|
|
2017
|
+
export const ImportEntityDataFormDefaultProps: Partial<ImportEntityDataFormProps>;
|
|
2018
|
+
export function ImportEntityDataForm(props: ImportEntityDataFormProps): JSX.Element;
|
|
2019
|
+
export interface ImportEntityDataLabels {
|
|
2020
|
+
Icon?: (props: IconProps) => ReactNode;
|
|
2021
|
+
Title?: string;
|
|
2022
|
+
HelpText?: string;
|
|
1862
2023
|
}
|
|
1863
|
-
export
|
|
2024
|
+
export const ImportEntityDataLabels: Partial<ImportEntityDataLabels>;
|
|
2025
|
+
export class ImportEntityData extends Entity<ImportEntityDataDef> {
|
|
1864
2026
|
constructor(client: MicroMClient, parentKeys?: {});
|
|
1865
2027
|
}
|
|
1866
|
-
export
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
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>;
|
|
1870
2038
|
}
|
|
1871
|
-
export
|
|
1872
|
-
export
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
cancelLabel?: string;
|
|
1880
|
-
unsupportedMessage?: string;
|
|
1881
|
-
insecureContextMessage?: string;
|
|
1882
|
-
permissionDeniedMessage?: string;
|
|
1883
|
-
noCameraMessage?: string;
|
|
1884
|
-
cameraUnavailableMessage?: string;
|
|
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;
|
|
1885
2047
|
}
|
|
1886
|
-
export interface
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
videoConstraints?: MediaTrackConstraints;
|
|
1891
|
-
fileName?: string;
|
|
1892
|
-
outputType?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
1893
|
-
outputQuality?: number;
|
|
2048
|
+
export interface ModalFormOptions {
|
|
2049
|
+
entity: Entity<EntityDefinition>;
|
|
2050
|
+
onSaved: (entity: Entity<EntityDefinition>) => void;
|
|
2051
|
+
onCancel: (entity: Entity<EntityDefinition>) => void;
|
|
1894
2052
|
}
|
|
1895
|
-
export
|
|
1896
|
-
export
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
cancelLabel?: string;
|
|
1907
|
-
rotateClockwiseLabel?: string;
|
|
1908
|
-
rotateCounterClockwiseLabel?: string;
|
|
1909
|
-
takePhotoLabel?: string;
|
|
1910
|
-
camera?: boolean | ImageEditorCameraConfiguration;
|
|
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;
|
|
1911
2064
|
}
|
|
1912
|
-
export const
|
|
1913
|
-
export
|
|
1914
|
-
export interface
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
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;
|
|
1925
2080
|
}
|
|
1926
|
-
export
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
errorNotification?: string;
|
|
1933
|
-
cancelledNotification?: boolean;
|
|
1934
|
-
uploadingNotification?: boolean;
|
|
1935
|
-
loadingNotification?: boolean;
|
|
1936
|
-
processing: boolean;
|
|
1937
|
-
editorEnabled: boolean;
|
|
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;
|
|
1938
2087
|
}
|
|
1939
|
-
interface
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
captureImage: () => Promise<UploadProgressReport | null>;
|
|
1945
|
-
canEditImage: (file: string | UploadProgressReport) => boolean;
|
|
1946
|
-
refreshFiles: () => Promise<Record<string, UploadProgressReport>>;
|
|
1947
|
-
deleteFile: (fileGUID: string) => Promise<DBStatusResult>;
|
|
1948
|
-
downloadFile: (fileUrl: string, fileName?: string) => Promise<void>;
|
|
1949
|
-
clearNotifications: () => void;
|
|
1950
|
-
cancelUpload: () => void;
|
|
2088
|
+
export interface useLoginOptions {
|
|
2089
|
+
client: MicroMClient;
|
|
2090
|
+
modalProps?: ModalSettings;
|
|
2091
|
+
onClose?: () => void;
|
|
2092
|
+
title?: string;
|
|
1951
2093
|
}
|
|
1952
|
-
export
|
|
1953
|
-
|
|
1954
|
-
|
|
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
|
+
};
|
|
1955
2112
|
}
|
|
1956
|
-
export function
|
|
1957
|
-
export type
|
|
1958
|
-
|
|
1959
|
-
|
|
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;
|
|
1960
2118
|
};
|
|
1961
|
-
export
|
|
1962
|
-
export
|
|
1963
|
-
export
|
|
1964
|
-
|
|
1965
|
-
|
|
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;
|
|
1966
2133
|
}
|
|
1967
|
-
export
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
exceedMaximumIndividualSizeText?: string;
|
|
1976
|
-
unspecifiedErrorWhenUploadingFileText?: string;
|
|
1977
|
-
totalUploadExceedsMaximumSizeText?: string;
|
|
1978
|
-
onCancel?: () => void;
|
|
1979
|
-
editor?: boolean;
|
|
1980
|
-
imageProcessing?: BrowserImageProcessingOptions;
|
|
1981
|
-
imageEditorTitle?: ReactNode;
|
|
1982
|
-
imageEditorProps?: ImageEditorConfigurationProps;
|
|
1983
|
-
imageEditorModalProps?: MicroMModalSettings;
|
|
1984
|
-
onValidateFile?: (file: File) => Promise<ValidateFileReturnType>;
|
|
1985
|
-
onProcessFile?: (file: File) => Promise<File | null>;
|
|
1986
|
-
onBeforeUpload?: (file: File) => Promise<boolean>;
|
|
1987
|
-
onBeforeReplace?: (currentFile: UploadProgressReport, replacementFile?: File) => Promise<boolean>;
|
|
1988
|
-
onUploadComplete?: (report: UploadProgressReport) => Promise<UploadCompletionResult | void>;
|
|
1989
|
-
onDeleteComplete?: (fileGUID: string) => Promise<void> | void;
|
|
1990
|
-
thumbnailMaxSize?: number;
|
|
1991
|
-
thumbnailQuality?: number;
|
|
1992
|
-
loadFilesOnMount?: boolean;
|
|
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;
|
|
1993
2142
|
}
|
|
1994
|
-
export
|
|
1995
|
-
export
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
UploadText?: string;
|
|
2000
|
-
AttachUpToText?: string;
|
|
2001
|
-
FilesText?: string;
|
|
2002
|
-
EachFileShouldNotExceedText?: string;
|
|
2003
|
-
uploadAPI: UseFileUploadReturnType;
|
|
2004
|
-
onDelete?: (fileGUID: string) => boolean | Promise<boolean>;
|
|
2005
|
-
imageProps?: ImageProps;
|
|
2006
|
-
closeText?: string;
|
|
2007
|
-
cancelledText?: string;
|
|
2008
|
-
operationCancelledText?: string;
|
|
2009
|
-
pdfCannotBeViewedText?: string;
|
|
2010
|
-
showCancelButton?: boolean;
|
|
2011
|
-
cancelLabel?: string;
|
|
2012
|
-
parentFormAPI?: UseEntityFormReturnType;
|
|
2013
|
-
editor?: boolean;
|
|
2014
|
-
editImageLabel?: string;
|
|
2015
|
-
replaceFileGUID?: string;
|
|
2016
|
-
replaceExistingFile?: boolean;
|
|
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;
|
|
2017
2148
|
}
|
|
2018
|
-
export
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2149
|
+
export type UseOperationStatusCallbackReturnType<T> = {
|
|
2150
|
+
operationCallback: (...args: any[]) => Promise<OperationStatus<T>>;
|
|
2151
|
+
status: OperationStatus<T>;
|
|
2152
|
+
};
|
|
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;
|
|
2029
2165
|
}
|
|
2030
|
-
export const
|
|
2031
|
-
export function
|
|
2032
|
-
export interface
|
|
2033
|
-
|
|
2034
|
-
fileProcessColumn: EntityColumn<string>;
|
|
2035
|
-
onOK?: (fileprocess_id: string, files: readonly UploadProgressReport[]) => void;
|
|
2036
|
-
onCancel?: () => void;
|
|
2037
|
-
onClosed?: () => void;
|
|
2038
|
-
modalProps?: ModalSettings;
|
|
2039
|
-
modalTitle?: string;
|
|
2040
|
-
uploadAPI?: UseFileUploadReturnType;
|
|
2041
|
-
filesUploadFormProps: Omit<FilesUploadFormProps, 'fileProcessColumn' | 'uploaderProps' | 'client' | 'onOK' | 'onCancel' | 'uploadAPI'>;
|
|
2042
|
-
uploaderProps?: Omit<FileUploaderProps, 'uploadAPI' | 'editor'>;
|
|
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;
|
|
2043
2170
|
}
|
|
2044
|
-
export const
|
|
2045
|
-
export function
|
|
2046
|
-
export interface
|
|
2047
|
-
|
|
2048
|
-
color?: MantineColor;
|
|
2049
|
-
width?: string | number;
|
|
2050
|
-
minWidth?: string | number;
|
|
2051
|
-
icon: ReactNode;
|
|
2052
|
-
mr?: string;
|
|
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;
|
|
2053
2175
|
}
|
|
2054
|
-
export const
|
|
2055
|
-
export
|
|
2056
|
-
export interface
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
importedFileLabel?: string;
|
|
2061
|
-
recordsImportedSuccessfullyLabel?: string;
|
|
2062
|
-
recordsNotImportedDueToErrorsLabel?: string;
|
|
2063
|
-
errorColumnTitle?: string;
|
|
2064
|
-
rowColumnTitle?: string;
|
|
2065
|
-
closeLabel?: ReactNode;
|
|
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;
|
|
2066
2182
|
}
|
|
2067
|
-
export
|
|
2068
|
-
export
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
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;
|
|
2073
2189
|
}
|
|
2074
|
-
export
|
|
2075
|
-
export
|
|
2076
|
-
|
|
2077
|
-
entity: ImportEntityData;
|
|
2078
|
-
disabled?: boolean;
|
|
2079
|
-
validationError?: string;
|
|
2080
|
-
onValidateFile: (file: File) => Promise<ValidateFileReturnType>;
|
|
2081
|
-
onDelete: (fileGUID: string) => boolean | Promise<boolean>;
|
|
2082
|
-
onUploadComplete: (report: UploadProgressReport) => Promise<UploadCompletionResult | void>;
|
|
2190
|
+
export function CopyToClipboard(props: CopyToClipboardProps): JSX.Element;
|
|
2191
|
+
export interface CodeBlockProps extends Omit<PrismProps, 'children'> {
|
|
2192
|
+
codeText: string;
|
|
2083
2193
|
}
|
|
2084
|
-
export
|
|
2085
|
-
export
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
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;
|
|
2097
2207
|
}
|
|
2098
|
-
export
|
|
2099
|
-
export
|
|
2100
|
-
export interface
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
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;
|
|
2213
|
+
loading?: boolean;
|
|
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;
|
|
2104
2223
|
}
|
|
2105
|
-
export const
|
|
2106
|
-
export
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
mappingAPI?: ImportDataMappingAPI;
|
|
2111
|
-
importStatus?: OperationStatus<ImpDataResult>;
|
|
2112
|
-
summaryTitleLabel?: string;
|
|
2113
|
-
fileLabel?: string;
|
|
2114
|
-
worksheetLabel?: string;
|
|
2115
|
-
headerRowLabel?: string;
|
|
2116
|
-
columnMappingCorrectLabel?: string;
|
|
2117
|
-
columnMappingIncorrectLabel?: string;
|
|
2118
|
-
viewSampleDataLabel?: string;
|
|
2119
|
-
sampleDataModalTitle?: string;
|
|
2120
|
-
submitAndImportLabel?: string;
|
|
2121
|
-
importingDataLabel?: string;
|
|
2224
|
+
export const NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<HTMLInputElement>>;
|
|
2225
|
+
export interface UseHierarchyKeysProps {
|
|
2226
|
+
formAPI: UseEntityFormReturnType;
|
|
2227
|
+
hierarchy: string[];
|
|
2228
|
+
mappedHierarchy?: string[];
|
|
2122
2229
|
}
|
|
2123
|
-
export
|
|
2124
|
-
export
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
excludedImportDestinations?: string[];
|
|
2129
|
-
onImportSuccess?: () => Promise<void>;
|
|
2130
|
-
instructionsStepLabel?: string;
|
|
2131
|
-
instructionsStepDescription?: string;
|
|
2132
|
-
uploadStepLabel?: string;
|
|
2133
|
-
uploadStepDescription?: string;
|
|
2134
|
-
dataMappingStepLabel?: string;
|
|
2135
|
-
dataMappingStepDescription?: string;
|
|
2136
|
-
summaryStepLabel?: string;
|
|
2137
|
-
summaryStepDescription?: string;
|
|
2138
|
-
instructionsLabel?: string;
|
|
2139
|
-
columnHeaderLabel?: string;
|
|
2140
|
-
dataNameLabel?: string;
|
|
2141
|
-
contentLabel?: string;
|
|
2142
|
-
dataTypeLabel?: string;
|
|
2143
|
-
dateFormatLabel?: string;
|
|
2144
|
-
numberFormatLabel?: string;
|
|
2145
|
-
downloadExcelSampleLabel?: string;
|
|
2146
|
-
downloadCSVSampleLabel?: string;
|
|
2147
|
-
errorReadingFileLabel?: string;
|
|
2148
|
-
emptyFileLabel?: string;
|
|
2149
|
-
uploadRequiredLabel?: string;
|
|
2150
|
-
mappingRequiredLabel?: string;
|
|
2151
|
-
importButtonLabel?: string;
|
|
2152
|
-
submitAndImportLabel?: string;
|
|
2153
|
-
importingDataLabel?: string;
|
|
2154
|
-
importedFileLabel?: string;
|
|
2155
|
-
recordsImportedSuccessfullyLabel?: string;
|
|
2156
|
-
recordsNotImportedDueToErrorsLabel?: string;
|
|
2157
|
-
errorColumnTitle?: string;
|
|
2158
|
-
rowColumnTitle?: string;
|
|
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;
|
|
2159
2235
|
}
|
|
2160
|
-
export const
|
|
2161
|
-
export function
|
|
2162
|
-
export interface
|
|
2163
|
-
|
|
2164
|
-
Title?: string;
|
|
2165
|
-
HelpText?: string;
|
|
2236
|
+
export const PhoneFieldDefaultProps: Partial<PhoneFieldProps>;
|
|
2237
|
+
export function PhoneField(props: PhoneFieldProps): JSX.Element;
|
|
2238
|
+
export interface CUITFieldProps extends TextFieldProps {
|
|
2239
|
+
invalidMessage?: string;
|
|
2166
2240
|
}
|
|
2167
|
-
export const
|
|
2168
|
-
export
|
|
2169
|
-
|
|
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>;
|
|
2170
2247
|
}
|
|
2171
|
-
export
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
c_import_process_id: EntityColumn<string>;
|
|
2185
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
2186
|
-
i_total_records: EntityColumn<number>;
|
|
2187
|
-
i_errors: EntityColumn<number>;
|
|
2188
|
-
vc_assemblytypename: EntityColumn<string>;
|
|
2189
|
-
vc_import_procname: EntityColumn<string>;
|
|
2190
|
-
c_import_status_id: EntityColumn<string>;
|
|
2191
|
-
vc_fileguid: EntityColumn<string>;
|
|
2192
|
-
};
|
|
2193
|
-
views: {
|
|
2194
|
-
ipr_brwStandard: {
|
|
2195
|
-
name: string;
|
|
2196
|
-
keyMappings: {
|
|
2197
|
-
c_import_process_id: number;
|
|
2198
|
-
vc_fileguid: number;
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
};
|
|
2202
|
-
clientActions: {
|
|
2203
|
-
ACTImportData: _EntityClientAction1;
|
|
2204
|
-
ACTDownloadImportedFile: _EntityClientAction1;
|
|
2205
|
-
ACTViewImportErrors: _EntityClientAction1;
|
|
2206
|
-
};
|
|
2207
|
-
constructor(destinationProps: ImportDataDestinationProps);
|
|
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;
|
|
2208
2261
|
}
|
|
2209
|
-
export
|
|
2210
|
-
|
|
2262
|
+
export const TimeFieldDefaultProps: Partial<TimeFieldProps>;
|
|
2263
|
+
interface TimeFieldRef {
|
|
2264
|
+
showPicker: () => void;
|
|
2211
2265
|
}
|
|
2212
|
-
export
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
export const UseImportDataDefaultProps: {
|
|
2219
|
-
noFileProcessLabel: string;
|
|
2220
|
-
errorImportingDataLabel: string;
|
|
2221
|
-
};
|
|
2222
|
-
export interface UseExportToExcelProps {
|
|
2223
|
-
data: DataResult[];
|
|
2224
|
-
dataResultNames?: string[];
|
|
2225
|
-
notExportableColumns?: number[];
|
|
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[];
|
|
2226
2272
|
}
|
|
2227
|
-
export
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
importStatus: OperationStatus<ImpDataResult>;
|
|
2233
|
-
readonly cancellation: AbortController;
|
|
2234
|
-
cancel: () => void;
|
|
2273
|
+
export type useIsLoggedInReturnType = {
|
|
2274
|
+
isLoggedIn: boolean | undefined;
|
|
2275
|
+
setIsLoggedIn: Dispatch<SetStateAction<boolean | undefined>>;
|
|
2276
|
+
checkIsLoggedIn: () => Promise<void>;
|
|
2277
|
+
loggedInInfo: Partial<MicroMClientClaimTypes>;
|
|
2235
2278
|
};
|
|
2236
|
-
export
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
export
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
token_type: string;
|
|
2248
|
-
claims: Partial<MicroMClientClaimTypes>;
|
|
2249
|
-
constructor(access_token?: string, expires_in?: number, refresh_token?: string, token_type?: string, claims?: {});
|
|
2250
|
-
className(): string;
|
|
2251
|
-
}
|
|
2252
|
-
export interface TwoFactorLoginResult {
|
|
2253
|
-
requires_two_factor: true;
|
|
2254
|
-
two_factor_challenge_id: string;
|
|
2255
|
-
two_factor_provider?: string;
|
|
2256
|
-
two_factor_flow?: "authenticator" | "email_setup" | "email_recovery" | "support_required" | "sql_admin_setup" | "sql_admin_authenticator";
|
|
2257
|
-
two_factor_setup_required?: boolean;
|
|
2258
|
-
authenticator_management_required?: boolean;
|
|
2259
|
-
qr_code_data_url?: string;
|
|
2260
|
-
username: string;
|
|
2261
|
-
email?: string;
|
|
2262
|
-
}
|
|
2263
|
-
export type DataOperationType = "add" | "edit" | "delete" | "get" | "lookup" | "view" | "action" | "login" | "refresh" | "proc" | "import" | "export" | "other";
|
|
2264
|
-
export interface OperationStatus<T> {
|
|
2265
|
-
loading?: boolean;
|
|
2266
|
-
error?: MicroMError;
|
|
2267
|
-
operationType?: DataOperationType;
|
|
2268
|
-
data?: T;
|
|
2269
|
-
}
|
|
2270
|
-
export type StatusCompletedHandler<T extends MicroMToken | TwoFactorLoginResult | DBStatusResult | DataResult | ValuesObject | null> = (status: OperationStatus<T>) => void;
|
|
2271
|
-
export interface UseImportDataProps {
|
|
2272
|
-
initialFormMode: FormMode;
|
|
2273
|
-
title?: string;
|
|
2274
|
-
element?: HTMLElement;
|
|
2275
|
-
getDataOnInit?: boolean;
|
|
2276
|
-
modalFormSize?: MicroMModalSize;
|
|
2277
|
-
handleModalSaved: (newStatus: OperationStatus<DBStatusResult | null>) => Promise<void>;
|
|
2278
|
-
handleModalCancel: () => Promise<void>;
|
|
2279
|
-
handleModalClosed?: () => void;
|
|
2280
|
-
handleImportSuccess?: () => Promise<void>;
|
|
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;
|
|
2281
2290
|
}
|
|
2282
|
-
export
|
|
2283
|
-
|
|
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;
|
|
2284
2298
|
};
|
|
2285
2299
|
export interface EntityUILabels {
|
|
2286
2300
|
addLabel: string;
|