@dxs-ts/eveli-ide 0.0.420 → 0.0.422

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.
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { DasboardItem } 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;
@@ -9,7 +10,7 @@ export interface DialobFormsContextType {
9
10
  forms: DasboardItem[];
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
  }>;
@@ -0,0 +1,5 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ import { DasboardItem } from '../../api-dialob-form';
3
+ export declare const FormTableDownloadAll: React.FC<{
4
+ table: Table<DasboardItem>;
5
+ }>;
@@ -0,0 +1 @@
1
+ export * from './FormTableDownloadAll';
@@ -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,5 @@
1
+ import { DasboardItem } from '../../api-dialob-form';
2
+ import { default as React } from 'react';
3
+ export declare const FormTableToolbarRow: React.FC<{
4
+ value: DasboardItem;
5
+ }>;
@@ -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: (type: EveliTableDrawerType) => React.ReactNode;
28
+ body: Record<EveliTableDrawerType, React.ReactNode | undefined>;
29
29
  };
30
30
  };
31
31
  }
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { TaskApi } from '../api-task';
3
+ import { TaskCardStyleDefinition } from './cardThemeConfig';
4
+ export declare const CustomerFeedback: React.FC<{
5
+ task: TaskApi.Task;
6
+ style: TaskCardStyleDefinition;
7
+ }>;
8
+ export declare const useUtilityClasses: () => Record<"root" | "publishedNotifier" | "feedbackCategories", string>;
@@ -24,6 +24,8 @@ export declare const TaskCardDataRowElement: React.FC<{
24
24
  value: React.ReactNode;
25
25
  style: TaskCardStyleDefinition;
26
26
  }>;
27
- export declare const StartAdornmentIcon: (Icon: React.ElementType) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const StartAdornmentIcon: React.FC<{
28
+ icon: React.ElementType;
29
+ }>;
28
30
  export declare const useUtilityClasses: () => Record<"title" | "dataCard" | "cardBody", string>;
29
31
  export {};
@@ -1,5 +1,8 @@
1
1
  import { default as React } from 'react';
2
+ import { TaskCardStyleDefinition } from './cardThemeConfig';
2
3
  import { TaskApi } from '../api-task';
3
- export declare const TaskOverdueWarning: React.FC<{
4
+ export interface TaskOverdueWarningProps {
4
5
  task: TaskApi.Task;
5
- }>;
6
+ style: TaskCardStyleDefinition;
7
+ }
8
+ export declare const TaskOverdueWarning: React.FC<TaskOverdueWarningProps>;