@dxs-ts/eveli-ide 0.0.421 → 0.0.423
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/build/api-dialob-form/DialobFormsProvider.d.ts +7 -4
- package/build/api-dialob-form/types-dashboard.d.ts +2 -2
- package/build/api-dialob-form/visitors/Visitor_OpenForm.d.ts +14 -0
- package/build/api-dialob-form/visitors/index.d.ts +1 -0
- package/build/dialob-dashboard-smart/form-table-download-all/FormTableDownloadAll.d.ts +5 -0
- package/build/dialob-dashboard-smart/form-table-download-all/index.d.ts +1 -0
- package/build/dialob-dashboard-smart/form-table-filters/index.d.ts +3 -3
- package/build/dialob-dashboard-smart/form-table-title-row/FormTableTitleRow.d.ts +5 -0
- package/build/dialob-dashboard-smart/form-table-title-row/index.d.ts +1 -0
- package/build/dialob-dashboard-smart/form-table-toolbar/IconWithText.d.ts +3 -0
- package/build/dialob-dashboard-smart/form-table-toolbar-row/FormTableToolbarRow.d.ts +5 -0
- package/build/dialob-dashboard-smart/form-table-toolbar-row/index.d.ts +1 -0
- package/build/eveli-table/WithTableStyles.d.ts +9 -1
- package/build/eveli-table/table/EveliTable.d.ts +2 -2
- package/build/index.js +9098 -8924
- package/package.json +1 -1
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DashboardItem } from './types-dashboard';
|
|
3
3
|
import { Visitor_DeleteForm, Visitor_CopyForm, Visitor_CreateNewForm } from './visitors';
|
|
4
|
+
import { DialobRestApi } from './types-rest-api';
|
|
4
5
|
export interface DialobFormsOperationResult {
|
|
5
6
|
success: boolean;
|
|
6
7
|
message: string;
|
|
7
8
|
}
|
|
8
9
|
export interface DialobFormsContextType {
|
|
9
|
-
forms:
|
|
10
|
+
forms: DashboardItem[];
|
|
10
11
|
uploadJsonForm: (file: File) => Promise<DialobFormsOperationResult>;
|
|
11
12
|
uploadCsvForm: (file: File) => Promise<DialobFormsOperationResult>;
|
|
12
|
-
downloadAllForms: () => Promise<{
|
|
13
|
+
downloadAllForms: (forms: DialobRestApi.FormListItem[]) => Promise<{
|
|
13
14
|
blob: Blob;
|
|
14
15
|
fileName: string;
|
|
15
16
|
}>;
|
|
16
17
|
createForm: (props: Visitor_CreateNewForm.Input) => Promise<Visitor_CreateNewForm.Result>;
|
|
17
18
|
copyForm: (props: Visitor_CopyForm.Input) => Promise<Visitor_CopyForm.Result>;
|
|
18
19
|
deleteForm: (props: Visitor_DeleteForm.Input) => Promise<Visitor_DeleteForm.Result>;
|
|
20
|
+
openForm: (props: DashboardItem) => void;
|
|
19
21
|
}
|
|
20
22
|
export declare const DialobFormsContext: React.Context<DialobFormsContextType>;
|
|
21
23
|
export interface DialobFormsProviderProps {
|
|
22
24
|
tenantId?: string | undefined;
|
|
23
25
|
dialobApiUrl?: string | undefined;
|
|
24
|
-
fetch?: typeof window.fetch | undefined;
|
|
25
26
|
children: React.ReactNode;
|
|
27
|
+
fetch?: typeof window.fetch | undefined;
|
|
28
|
+
onOpen?: (props: DashboardItem) => void;
|
|
26
29
|
}
|
|
27
30
|
export declare const DialobFormsProvider: React.FC<DialobFormsProviderProps>;
|
|
28
31
|
export declare const useDialobForms: () => DialobFormsContextType;
|
|
@@ -2,10 +2,10 @@ import { DialobRestApi } from './types-rest-api';
|
|
|
2
2
|
export interface DashboardState {
|
|
3
3
|
forms: DialobRestApi.FormListItem[];
|
|
4
4
|
tags: DialobRestApi.FormTag[];
|
|
5
|
-
items:
|
|
5
|
+
items: DashboardItem[];
|
|
6
6
|
loadedAt: Date;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface DashboardItem {
|
|
9
9
|
id: string;
|
|
10
10
|
metadata: DialobRestApi.FormMetadata;
|
|
11
11
|
latestTagName?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DashboardItem } from '../types-dashboard';
|
|
2
|
+
export declare namespace Visitor_OpenForm {
|
|
3
|
+
interface Input {
|
|
4
|
+
form: DashboardItem;
|
|
5
|
+
tenantId?: string | undefined;
|
|
6
|
+
dialobApiUrl?: string | undefined;
|
|
7
|
+
onOpen?: (props: DashboardItem) => void;
|
|
8
|
+
}
|
|
9
|
+
interface Result {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class Visitor_OpenForm {
|
|
13
|
+
accept(context: Visitor_OpenForm.Input): Promise<Visitor_OpenForm.Result>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormTableDownloadAll';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DashboardItem } from '../../api-dialob-form';
|
|
2
2
|
import { FilterFnOption } from '@tanstack/react-table';
|
|
3
|
-
export declare const filterDateGte_latestTagDate: FilterFnOption<
|
|
4
|
-
export declare const filterDateGte_lastSaved: FilterFnOption<
|
|
3
|
+
export declare const filterDateGte_latestTagDate: FilterFnOption<DashboardItem>;
|
|
4
|
+
export declare const filterDateGte_lastSaved: FilterFnOption<DashboardItem>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormTableTitleRow';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const IconButtonWithText: import('@emotion/styled').StyledComponent<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
+
}, "children" | "disabled" | "style" | "className" | "tabIndex" | "color" | "classes" | "sx" | "action" | "size" | "loading" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormTableToolbarRow';
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ColumnDef, RowData } from '@tanstack/react-table';
|
|
2
|
+
import { ColumnDef, RowData, Table } from '@tanstack/react-table';
|
|
3
3
|
declare module "@tanstack/react-table" {
|
|
4
4
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
5
5
|
enableSelection?: boolean;
|
|
6
6
|
enableDateGTE?: boolean;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
export interface TableSlots<DataType extends object> {
|
|
10
|
+
drawer?: {
|
|
11
|
+
'export-data'?: React.ElementType<{
|
|
12
|
+
table: Table<DataType>;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
9
16
|
export declare function WithTableStyles<DataType extends object>(props: {
|
|
10
17
|
columns: ColumnDef<DataType, unknown>[];
|
|
11
18
|
data: DataType[];
|
|
@@ -13,4 +20,5 @@ export declare function WithTableStyles<DataType extends object>(props: {
|
|
|
13
20
|
initialPageSize?: number;
|
|
14
21
|
tableId: string;
|
|
15
22
|
};
|
|
23
|
+
slots?: TableSlots<DataType>;
|
|
16
24
|
}): React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export type EveliTableDrawerType = 'filters' | 'columns' | 'saved-filters';
|
|
2
|
+
export type EveliTableDrawerType = 'filters' | 'columns' | 'saved-filters' | 'export-data';
|
|
3
3
|
export interface EveliTableProps {
|
|
4
4
|
slotProps: {
|
|
5
5
|
root: {
|
|
@@ -25,7 +25,7 @@ export interface EveliTableProps {
|
|
|
25
25
|
children: React.ReactNode;
|
|
26
26
|
};
|
|
27
27
|
drawer: {
|
|
28
|
-
body:
|
|
28
|
+
body: Record<EveliTableDrawerType, React.ReactNode | undefined>;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
}
|