@dxs-ts/eveli-ide 0.0.422 → 0.0.424

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,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DasboardItem } from './types-dashboard';
2
+ import { DashboardItem } from './types-dashboard';
3
3
  import { Visitor_DeleteForm, Visitor_CopyForm, Visitor_CreateNewForm } from './visitors';
4
4
  import { DialobRestApi } from './types-rest-api';
5
5
  export interface DialobFormsOperationResult {
@@ -7,7 +7,7 @@ export interface DialobFormsOperationResult {
7
7
  message: string;
8
8
  }
9
9
  export interface DialobFormsContextType {
10
- forms: DasboardItem[];
10
+ forms: DashboardItem[];
11
11
  uploadJsonForm: (file: File) => Promise<DialobFormsOperationResult>;
12
12
  uploadCsvForm: (file: File) => Promise<DialobFormsOperationResult>;
13
13
  downloadAllForms: (forms: DialobRestApi.FormListItem[]) => Promise<{
@@ -17,13 +17,15 @@ export interface DialobFormsContextType {
17
17
  createForm: (props: Visitor_CreateNewForm.Input) => Promise<Visitor_CreateNewForm.Result>;
18
18
  copyForm: (props: Visitor_CopyForm.Input) => Promise<Visitor_CopyForm.Result>;
19
19
  deleteForm: (props: Visitor_DeleteForm.Input) => Promise<Visitor_DeleteForm.Result>;
20
+ openForm: (props: DashboardItem) => void;
20
21
  }
21
22
  export declare const DialobFormsContext: React.Context<DialobFormsContextType>;
22
23
  export interface DialobFormsProviderProps {
23
24
  tenantId?: string | undefined;
24
25
  dialobApiUrl?: string | undefined;
25
- fetch?: typeof window.fetch | undefined;
26
26
  children: React.ReactNode;
27
+ fetch?: typeof window.fetch | undefined;
28
+ onOpen?: (props: DashboardItem) => void;
27
29
  }
28
30
  export declare const DialobFormsProvider: React.FC<DialobFormsProviderProps>;
29
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: DasboardItem[];
5
+ items: DashboardItem[];
6
6
  loadedAt: Date;
7
7
  }
8
- export interface DasboardItem {
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
+ }
@@ -6,3 +6,4 @@ export * from './Visitor_RestApi';
6
6
  export * from './Visitor_UploadFormCsv';
7
7
  export * from './Visitor_UploadFormJson';
8
8
  export * from './Visitor_DeleteForm';
9
+ export * from './Visitor_OpenForm';
@@ -1,5 +1,5 @@
1
1
  import { Table } from '@tanstack/react-table';
2
- import { DasboardItem } from '../../api-dialob-form';
2
+ import { DashboardItem } from '../../api-dialob-form';
3
3
  export declare const FormTableDownloadAll: React.FC<{
4
- table: Table<DasboardItem>;
4
+ table: Table<DashboardItem>;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import { DasboardItem } from '../../api-dialob-form';
1
+ import { DashboardItem } from '../../api-dialob-form';
2
2
  import { FilterFnOption } from '@tanstack/react-table';
3
- export declare const filterDateGte_latestTagDate: FilterFnOption<DasboardItem>;
4
- export declare const filterDateGte_lastSaved: FilterFnOption<DasboardItem>;
3
+ export declare const filterDateGte_latestTagDate: FilterFnOption<DashboardItem>;
4
+ export declare const filterDateGte_lastSaved: FilterFnOption<DashboardItem>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { DashboardItem } from '../../api-dialob-form';
3
+ export declare const FormTableTitleRow: React.FC<{
4
+ value: DashboardItem;
5
+ }>;
@@ -0,0 +1 @@
1
+ export * from './FormTableTitleRow';
@@ -1,5 +1,5 @@
1
- import { DasboardItem } from '../../api-dialob-form';
1
+ import { DashboardItem } from '../../api-dialob-form';
2
2
  import { default as React } from 'react';
3
3
  export declare const FormTableToolbarRow: React.FC<{
4
- value: DasboardItem;
4
+ value: DashboardItem;
5
5
  }>;