@fctc/widget-logic 1.3.3 → 1.3.5

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 CHANGED
@@ -1,23 +1,47 @@
1
1
  export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
2
2
  export * from '@fctc/interface-logic/hooks';
3
- export * from '@fctc/interface-logic/config';
3
+ export * from '@fctc/interface-logic/configs';
4
4
  export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
5
5
  import * as react from 'react';
6
6
  import { ChangeEvent } from 'react';
7
- import { IInputFieldProps, ValuePropsType } from './types.js';
8
- export * from '@fctc/interface-logic/types';
9
7
  import moment from 'moment';
10
8
  export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.js';
11
9
  export * from '@fctc/interface-logic/utils';
12
10
  export * from '@fctc/interface-logic/store';
13
11
  export * from '@fctc/interface-logic/constants';
14
12
  export * from '@fctc/interface-logic/environment';
15
- export * from '@fctc/interface-logic/model';
16
13
  export * from '@fctc/interface-logic/provider';
17
14
  export * from '@fctc/interface-logic/services';
18
15
  import '@tanstack/react-query';
19
16
  import '@tanstack/query-core';
20
- import '@fctc/interface-logic';
17
+
18
+ interface ValuePropsType {
19
+ id: number | string;
20
+ display_name: number | string;
21
+ [key: string]: any;
22
+ }
23
+ interface IInputFieldProps {
24
+ name?: string;
25
+ type?: string;
26
+ readonly?: boolean;
27
+ required?: boolean;
28
+ placeholder?: string;
29
+ defaultValue?: string | number | ValuePropsType;
30
+ invisible?: boolean;
31
+ methods?: any;
32
+ onChange?: (name: string, value: any) => void;
33
+ onBlur?: Function;
34
+ onRefetch?: Function;
35
+ isForm?: boolean;
36
+ className?: string;
37
+ value?: string | number | ValuePropsType | null | Record<any, any> | any;
38
+ string?: string;
39
+ isEditTable?: boolean;
40
+ formValues?: any;
41
+ model?: string;
42
+ relation?: string;
43
+ domain?: any;
44
+ }
21
45
 
22
46
  type TStatus = 'normal' | 'done' | 'blocked';
23
47
  interface TStatusDropdownFieldProps extends IInputFieldProps {
@@ -71,7 +95,7 @@ type Option = {
71
95
  value: number;
72
96
  label: string;
73
97
  };
74
- declare const many2oneButtonController: (props: IInputFieldProps) => {
98
+ declare const many2oneButtonController: (props: any) => {
75
99
  options: Option[];
76
100
  };
77
101
 
@@ -311,4 +335,4 @@ declare const tableGroupController: (props: any) => {
311
335
  setPageGroup: react.Dispatch<any>;
312
336
  };
313
337
 
314
- export { IInputFieldProps, type ISelctionStateProps, type ITableBodyProps, type ITableHeadProps, type ITableProps, ValuePropsType, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };
338
+ export { type ISelctionStateProps, type ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };