@fctc/widget-logic 1.4.2 → 1.4.3
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.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -0
- package/dist/index.mjs +16 -0
- package/dist/types.d.mts +31 -0
- package/dist/types.d.ts +31 -0
- package/dist/types.js +24 -0
- package/dist/types.mjs +2 -0
- package/dist/widget.d.mts +2 -28
- package/dist/widget.d.ts +2 -28
- package/package.json +12 -2
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,8 @@ export * from '@fctc/interface-logic/hooks';
|
|
|
3
3
|
export * from '@fctc/interface-logic/configs';
|
|
4
4
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
|
|
5
5
|
export { ISelctionStateProps, ITableBodyProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController } from './widget.mjs';
|
|
6
|
+
export * from '@fctc/interface-logic/types';
|
|
7
|
+
export { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
6
8
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.mjs';
|
|
7
9
|
export * from '@fctc/interface-logic/utils';
|
|
8
10
|
export * from '@fctc/interface-logic/store';
|
|
@@ -10,6 +12,7 @@ export * from '@fctc/interface-logic/constants';
|
|
|
10
12
|
export * from '@fctc/interface-logic/environment';
|
|
11
13
|
export * from '@fctc/interface-logic/provider';
|
|
12
14
|
export * from '@fctc/interface-logic/services';
|
|
15
|
+
export * from '@fctc/interface-logic/models';
|
|
13
16
|
import '@tanstack/react-query';
|
|
14
17
|
import '@tanstack/query-core';
|
|
15
18
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export * from '@fctc/interface-logic/hooks';
|
|
|
3
3
|
export * from '@fctc/interface-logic/configs';
|
|
4
4
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
|
|
5
5
|
export { ISelctionStateProps, ITableBodyProps, ITableHeadProps, ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, floatController, floatTimeFiledController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController } from './widget.js';
|
|
6
|
+
export * from '@fctc/interface-logic/types';
|
|
7
|
+
export { IInputFieldProps, ValuePropsType } from './types.js';
|
|
6
8
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.js';
|
|
7
9
|
export * from '@fctc/interface-logic/utils';
|
|
8
10
|
export * from '@fctc/interface-logic/store';
|
|
@@ -10,6 +12,7 @@ export * from '@fctc/interface-logic/constants';
|
|
|
10
12
|
export * from '@fctc/interface-logic/environment';
|
|
11
13
|
export * from '@fctc/interface-logic/provider';
|
|
12
14
|
export * from '@fctc/interface-logic/services';
|
|
15
|
+
export * from '@fctc/interface-logic/models';
|
|
13
16
|
import '@tanstack/react-query';
|
|
14
17
|
import '@tanstack/query-core';
|
|
15
18
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -7301,6 +7301,20 @@ __reExport(services_exports, require("@fctc/interface-logic/services"));
|
|
|
7301
7301
|
|
|
7302
7302
|
// src/index.ts
|
|
7303
7303
|
__reExport(index_exports, services_exports, module.exports);
|
|
7304
|
+
|
|
7305
|
+
// src/models.ts
|
|
7306
|
+
var models_exports = {};
|
|
7307
|
+
__reExport(models_exports, require("@fctc/interface-logic/models"));
|
|
7308
|
+
|
|
7309
|
+
// src/index.ts
|
|
7310
|
+
__reExport(index_exports, models_exports, module.exports);
|
|
7311
|
+
|
|
7312
|
+
// src/types.ts
|
|
7313
|
+
var types_exports = {};
|
|
7314
|
+
__reExport(types_exports, require("@fctc/interface-logic/types"));
|
|
7315
|
+
|
|
7316
|
+
// src/index.ts
|
|
7317
|
+
__reExport(index_exports, types_exports, module.exports);
|
|
7304
7318
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7305
7319
|
0 && (module.exports = {
|
|
7306
7320
|
API_APP_URL,
|
package/dist/index.mjs
CHANGED
|
@@ -7364,6 +7364,22 @@ import * as services_star from "@fctc/interface-logic/services";
|
|
|
7364
7364
|
|
|
7365
7365
|
// src/index.ts
|
|
7366
7366
|
__reExport(index_exports, services_exports);
|
|
7367
|
+
|
|
7368
|
+
// src/models.ts
|
|
7369
|
+
var models_exports = {};
|
|
7370
|
+
__reExport(models_exports, models_star);
|
|
7371
|
+
import * as models_star from "@fctc/interface-logic/models";
|
|
7372
|
+
|
|
7373
|
+
// src/index.ts
|
|
7374
|
+
__reExport(index_exports, models_exports);
|
|
7375
|
+
|
|
7376
|
+
// src/types.ts
|
|
7377
|
+
var types_exports = {};
|
|
7378
|
+
__reExport(types_exports, types_star);
|
|
7379
|
+
import * as types_star from "@fctc/interface-logic/types";
|
|
7380
|
+
|
|
7381
|
+
// src/index.ts
|
|
7382
|
+
__reExport(index_exports, types_exports);
|
|
7367
7383
|
export {
|
|
7368
7384
|
API_APP_URL,
|
|
7369
7385
|
API_PRESCHOOL_URL,
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/types';
|
|
2
|
+
|
|
3
|
+
interface ValuePropsType {
|
|
4
|
+
id: number | string;
|
|
5
|
+
display_name: number | string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
interface IInputFieldProps {
|
|
9
|
+
name?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
defaultValue?: string | number | ValuePropsType;
|
|
15
|
+
invisible?: boolean;
|
|
16
|
+
methods?: any;
|
|
17
|
+
onChange?: (name: string, value: any) => void;
|
|
18
|
+
onBlur?: Function;
|
|
19
|
+
onRefetch?: Function;
|
|
20
|
+
isForm?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
value?: string | number | ValuePropsType | null | Record<any, any> | any;
|
|
23
|
+
string?: string;
|
|
24
|
+
isEditTable?: boolean;
|
|
25
|
+
formValues?: any;
|
|
26
|
+
model?: string;
|
|
27
|
+
relation?: string;
|
|
28
|
+
domain?: any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type { IInputFieldProps, ValuePropsType };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/types';
|
|
2
|
+
|
|
3
|
+
interface ValuePropsType {
|
|
4
|
+
id: number | string;
|
|
5
|
+
display_name: number | string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
interface IInputFieldProps {
|
|
9
|
+
name?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
defaultValue?: string | number | ValuePropsType;
|
|
15
|
+
invisible?: boolean;
|
|
16
|
+
methods?: any;
|
|
17
|
+
onChange?: (name: string, value: any) => void;
|
|
18
|
+
onBlur?: Function;
|
|
19
|
+
onRefetch?: Function;
|
|
20
|
+
isForm?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
value?: string | number | ValuePropsType | null | Record<any, any> | any;
|
|
23
|
+
string?: string;
|
|
24
|
+
isEditTable?: boolean;
|
|
25
|
+
formValues?: any;
|
|
26
|
+
model?: string;
|
|
27
|
+
relation?: string;
|
|
28
|
+
domain?: any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type { IInputFieldProps, ValuePropsType };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/types.ts
|
|
18
|
+
var types_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(types_exports);
|
|
20
|
+
__reExport(types_exports, require("@fctc/interface-logic/types"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/types")
|
|
24
|
+
});
|
package/dist/types.mjs
ADDED
package/dist/widget.d.mts
CHANGED
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ChangeEvent } from 'react';
|
|
3
|
+
import { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
3
4
|
import moment from 'moment';
|
|
4
|
-
|
|
5
|
-
interface ValuePropsType {
|
|
6
|
-
id: number | string;
|
|
7
|
-
display_name: number | string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
interface IInputFieldProps {
|
|
11
|
-
name?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
readonly?: boolean;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
defaultValue?: string | number | ValuePropsType;
|
|
17
|
-
invisible?: boolean;
|
|
18
|
-
methods?: any;
|
|
19
|
-
onChange?: (name: string, value: any) => void;
|
|
20
|
-
onBlur?: Function;
|
|
21
|
-
onRefetch?: Function;
|
|
22
|
-
isForm?: boolean;
|
|
23
|
-
className?: string;
|
|
24
|
-
value?: string | number | ValuePropsType | null | Record<any, any> | any;
|
|
25
|
-
string?: string;
|
|
26
|
-
isEditTable?: boolean;
|
|
27
|
-
formValues?: any;
|
|
28
|
-
model?: string;
|
|
29
|
-
relation?: string;
|
|
30
|
-
domain?: any;
|
|
31
|
-
}
|
|
5
|
+
import '@fctc/interface-logic/types';
|
|
32
6
|
|
|
33
7
|
type TStatus = 'normal' | 'done' | 'blocked';
|
|
34
8
|
interface TStatusDropdownFieldProps extends IInputFieldProps {
|
package/dist/widget.d.ts
CHANGED
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ChangeEvent } from 'react';
|
|
3
|
+
import { IInputFieldProps, ValuePropsType } from './types.js';
|
|
3
4
|
import moment from 'moment';
|
|
4
|
-
|
|
5
|
-
interface ValuePropsType {
|
|
6
|
-
id: number | string;
|
|
7
|
-
display_name: number | string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
interface IInputFieldProps {
|
|
11
|
-
name?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
readonly?: boolean;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
defaultValue?: string | number | ValuePropsType;
|
|
17
|
-
invisible?: boolean;
|
|
18
|
-
methods?: any;
|
|
19
|
-
onChange?: (name: string, value: any) => void;
|
|
20
|
-
onBlur?: Function;
|
|
21
|
-
onRefetch?: Function;
|
|
22
|
-
isForm?: boolean;
|
|
23
|
-
className?: string;
|
|
24
|
-
value?: string | number | ValuePropsType | null | Record<any, any> | any;
|
|
25
|
-
string?: string;
|
|
26
|
-
isEditTable?: boolean;
|
|
27
|
-
formValues?: any;
|
|
28
|
-
model?: string;
|
|
29
|
-
relation?: string;
|
|
30
|
-
domain?: any;
|
|
31
|
-
}
|
|
5
|
+
import '@fctc/interface-logic/types';
|
|
32
6
|
|
|
33
7
|
type TStatus = 'normal' | 'done' | 'blocked';
|
|
34
8
|
interface TStatusDropdownFieldProps extends IInputFieldProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -59,6 +59,16 @@
|
|
|
59
59
|
"types": "./dist/services.d.ts",
|
|
60
60
|
"import": "./dist/services.mjs",
|
|
61
61
|
"require": "./dist/services.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./models": {
|
|
64
|
+
"types": "./dist/models.d.ts",
|
|
65
|
+
"import": "./dist/models.mjs",
|
|
66
|
+
"require": "./dist/models.cjs"
|
|
67
|
+
},
|
|
68
|
+
"./types": {
|
|
69
|
+
"types": "./dist/types.d.ts",
|
|
70
|
+
"import": "./dist/types.mjs",
|
|
71
|
+
"require": "./dist/types.cjs"
|
|
62
72
|
}
|
|
63
73
|
},
|
|
64
74
|
"files": [
|
|
@@ -69,7 +79,7 @@
|
|
|
69
79
|
"test": "jest"
|
|
70
80
|
},
|
|
71
81
|
"dependencies": {
|
|
72
|
-
"@fctc/interface-logic": "^1.3.
|
|
82
|
+
"@fctc/interface-logic": "^1.3.3",
|
|
73
83
|
"@headlessui/react": "^2.2.6",
|
|
74
84
|
"@tanstack/react-query": "^5.84.0",
|
|
75
85
|
"@types/react-dom": "^19.1.7",
|