@mcurros2/microm 1.1.386-0 → 1.1.388-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 +9 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ModalSettings } from "@mantine/modals/lib/context";
|
|
|
6
6
|
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
|
-
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,
|
|
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
10
|
import { PrismProps } from "@mantine/prism";
|
|
11
11
|
import { DateInputProps, TimeInputProps, CalendarProps } from "@mantine/dates";
|
|
12
12
|
import { DropzoneProps } from "@mantine/dropzone";
|
|
@@ -1092,7 +1092,6 @@ export interface EntityClientActionOnClickProps {
|
|
|
1092
1092
|
selectedKeys?: ValuesObject[];
|
|
1093
1093
|
element?: HTMLElement;
|
|
1094
1094
|
onClose?: (result?: boolean) => Promise<boolean>;
|
|
1095
|
-
others?: any;
|
|
1096
1095
|
}
|
|
1097
1096
|
export interface EntityClientAction {
|
|
1098
1097
|
name: string;
|
|
@@ -1149,7 +1148,7 @@ export class EntityDefinition {
|
|
|
1149
1148
|
addLookup(lookup: EntityLookup): EntityLookup;
|
|
1150
1149
|
addServerAction(action: EntityServerAction): EntityServerAction;
|
|
1151
1150
|
addClientAction(action: EntityClientAction): EntityClientAction;
|
|
1152
|
-
static clone(entity_def:
|
|
1151
|
+
static clone<TDefinition extends EntityDefinition>(entity_def: TDefinition): TDefinition;
|
|
1153
1152
|
}
|
|
1154
1153
|
export interface ViewMapping {
|
|
1155
1154
|
keyIndex: number;
|
|
@@ -1323,7 +1322,7 @@ export function splitCompoundKey(rawValue: string, group: CompoundKeyGroup): {
|
|
|
1323
1322
|
export function composeCompoundKey(values: readonly Value[], group: CompoundKeyGroup): string;
|
|
1324
1323
|
export function extractCompoundKeyValues(keys: ValuesObject, group: CompoundKeyGroup): Value[] | undefined;
|
|
1325
1324
|
export function extractCompoundRecordKeys(record: object, group: CompoundKeyGroup): ValuesObject | undefined;
|
|
1326
|
-
export interface
|
|
1325
|
+
export interface ImportDataDestinationProps {
|
|
1327
1326
|
destinationEntity: Entity<any>;
|
|
1328
1327
|
entityProcName?: string;
|
|
1329
1328
|
excludedImportDestinations?: string[];
|
|
@@ -2034,6 +2033,7 @@ export const ACTImportDataLabels: {
|
|
|
2034
2033
|
};
|
|
2035
2034
|
export const ACTImportData: EntityClientAction;
|
|
2036
2035
|
export class ImportProcessDef extends EntityDefinition {
|
|
2036
|
+
destinationProps: ImportDataDestinationProps;
|
|
2037
2037
|
columns: {
|
|
2038
2038
|
dt_inserttime: EntityColumn<Date>;
|
|
2039
2039
|
dt_lu: EntityColumn<Date>;
|
|
@@ -2063,25 +2063,14 @@ export class ImportProcessDef extends EntityDefinition {
|
|
|
2063
2063
|
ACTImportData: _EntityClientAction1;
|
|
2064
2064
|
ACTDownloadImportedFile: _EntityClientAction1;
|
|
2065
2065
|
};
|
|
2066
|
-
constructor();
|
|
2066
|
+
constructor(destinationProps: ImportDataDestinationProps);
|
|
2067
2067
|
}
|
|
2068
2068
|
export class ImportProcess extends Entity<ImportProcessDef> {
|
|
2069
|
-
constructor(client: MicroMClient, parentKeys
|
|
2069
|
+
constructor(client: MicroMClient, parentKeys: ValuesObject | undefined, destinationProps: ImportDataDestinationProps);
|
|
2070
2070
|
}
|
|
2071
|
-
type
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
destinationEntityConstructor: NonNullable<EntityGridSourceProps['entityConstructor']>;
|
|
2075
|
-
destinationEntityLoader?: never;
|
|
2076
|
-
} | {
|
|
2077
|
-
destinationEntityConstructor?: never;
|
|
2078
|
-
/** Loads the entity that receives the imported records asynchronously. */
|
|
2079
|
-
destinationEntityLoader: NonNullable<EntityGridSourceProps['entityLoader']>;
|
|
2080
|
-
};
|
|
2081
|
-
export type ImportDataPanelProps = Omit<DataGridPanelProps, ControlledDataGridPanelProps> & ImportDataPanelDestinationSourceProps & {
|
|
2082
|
-
parentKeys?: ValuesObject;
|
|
2083
|
-
entityProcName?: string;
|
|
2084
|
-
excludedImportDestinations?: string[];
|
|
2071
|
+
export type ImportDataPanelProps = DataGridPanelProps & {
|
|
2072
|
+
importDataLabel?: string;
|
|
2073
|
+
downloadImportedFileLabel?: string;
|
|
2085
2074
|
};
|
|
2086
2075
|
export const ImportDataPanelDefaultProps: Partial<ImportDataPanelProps>;
|
|
2087
2076
|
export function ImportDataPanel(props: ImportDataPanelProps): JSX.Element;
|
|
@@ -2200,7 +2189,6 @@ export interface UseEntityUIProps {
|
|
|
2200
2189
|
entityProcName?: string;
|
|
2201
2190
|
excludedImportDestinations?: string[];
|
|
2202
2191
|
onImportSuccess?: () => void;
|
|
2203
|
-
clientActionOthers?: EntityClientActionOnClickProps['others'];
|
|
2204
2192
|
}
|
|
2205
2193
|
export function useEntityUI(props: UseEntityUIProps): {
|
|
2206
2194
|
handleAddClick: (element?: HTMLElement, onClosed?: (cancelled?: boolean) => void) => Promise<void>;
|
|
@@ -3545,7 +3533,6 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3545
3533
|
initialSelectRowsToggle: boolean;
|
|
3546
3534
|
entityProcName: string;
|
|
3547
3535
|
excludedImportDestinations: string[];
|
|
3548
|
-
clientActionOthers: _EntityClientActionOnClickProps1["others"];
|
|
3549
3536
|
onRecordsDeleted: () => void;
|
|
3550
3537
|
onActionRefreshOnClose: () => void;
|
|
3551
3538
|
renderOnlyWhenVisible: boolean;
|