@tachybase/client 0.23.58 → 1.0.18
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/es/api-client/APIClient.d.ts +5 -2
- package/es/api-client/APIClient.mjs +93 -49
- package/es/api-client/hooks/useRequest.d.ts +2 -0
- package/es/application/Application.d.ts +3 -0
- package/es/application/Application.mjs +11 -0
- package/es/application/CustomRouterContextProvider.d.ts +54 -0
- package/es/application/CustomRouterContextProvider.mjs +209 -0
- package/es/application/NoticesManager.d.ts +12 -3
- package/es/application/NoticesManager.mjs +27 -3
- package/es/application/RouterManager.d.ts +8 -3
- package/es/application/RouterManager.mjs +48 -15
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/block-provider/hooks/index.d.ts +2 -0
- package/es/block-provider/hooks/index.mjs +25 -21
- package/es/built-in/context-menu/ContextMenu.provider.mjs +6 -6
- package/es/built-in/context-menu/ContextMenuItemsProps.d.ts +4 -4
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +6 -6
- package/es/built-in/context-menu/index.mjs +1 -1
- package/es/built-in/context-menu/useContextMenu.d.ts +2 -2
- package/es/built-in/index.mjs +5 -0
- package/es/built-in/page-style/PageStyle.provider.mjs +2 -2
- package/es/built-in/pm/PluginManager.mjs +45 -45
- package/es/collection-manager/interfaces/email.d.ts +0 -1
- package/es/collection-manager/interfaces/input.d.ts +0 -2
- package/es/collection-manager/interfaces/integer.d.ts +0 -2
- package/es/collection-manager/interfaces/number.d.ts +0 -1
- package/es/collection-manager/interfaces/password.d.ts +0 -1
- package/es/collection-manager/interfaces/percent.d.ts +0 -1
- package/es/collection-manager/interfaces/phone.d.ts +0 -1
- package/es/collection-manager/interfaces/properties/index.d.ts +0 -2
- package/es/collection-manager/interfaces/properties/index.mjs +0 -2
- package/es/collection-manager/templates/sql.d.ts +1 -1
- package/es/collection-manager/templates/view.d.ts +1 -1
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +18 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.d.ts +8 -1
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +20 -0
- package/es/data-source/commonsSettingsItem/fieldComponent.mjs +3 -1
- package/es/data-source/data-source/DataSource.d.ts +1 -1
- package/es/filter-provider/utils.mjs +6 -0
- package/es/i18n/i18n.mjs +7 -12
- package/es/modules/actions/delete/deleteActionSettings.mjs +10 -0
- package/es/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +9 -4
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +4 -0
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +44 -0
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +4 -0
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +9 -0
- package/es/modules/fields/component/SubTable/secondLevelSelect.d.ts +11 -0
- package/es/modules/fields/component/SubTable/secondLevelSelect.mjs +102 -0
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +79 -41
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +103 -100
- package/es/powered-by/index.mjs +4 -7
- package/es/schema-component/antd/action/Action.Designer.mjs +38 -3
- package/es/schema-component/antd/action/Action.Modal.mjs +0 -1
- package/es/schema-component/antd/action/Action.mjs +1 -3
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -1
- package/es/schema-component/antd/checkbox/Checkbox.mjs +6 -4
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/index.mjs +1 -0
- package/es/schema-component/antd/media-card/MediaCard.d.ts +11 -0
- package/es/schema-component/antd/media-card/MediaCard.mjs +35 -0
- package/es/schema-component/antd/media-card/index.d.ts +1 -0
- package/es/schema-component/antd/media-card/index.mjs +1 -0
- package/es/schema-component/antd/media-card/style.d.ts +3 -0
- package/es/schema-component/antd/media-card/style.mjs +25 -0
- package/es/schema-component/antd/page/Page.mjs +34 -24
- package/es/schema-component/antd/password/utils.d.ts +1 -1
- package/es/schema-component/common/dnd-context/index.mjs +1 -7
- package/es/schema-component/common/sortable-item/DragHandlePageTab.d.ts +1 -0
- package/es/schema-component/common/sortable-item/DragHandlePageTab.mjs +71 -0
- package/es/schema-component/common/sortable-item/DragHandlePageTab.style.d.ts +3 -0
- package/es/schema-component/common/sortable-item/DragHandlePageTab.style.mjs +25 -0
- package/es/schema-items/GeneralSettings.mjs +5 -0
- package/es/schema-settings/EditCustomDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettings.mjs +1 -1
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +2 -0
- package/es/schema-settings/utils/createModalSettingsItem.d.ts +26 -0
- package/es/schema-settings/utils/createModalSettingsItem.mjs +46 -0
- package/es/schema-settings/utils/createSelectSettingsItem.d.ts +25 -0
- package/es/schema-settings/utils/createSelectSettingsItem.mjs +40 -0
- package/es/schema-settings/utils/createSwitchSettingsItem.d.ts +21 -0
- package/es/schema-settings/utils/createSwitchSettingsItem.mjs +38 -0
- package/es/schema-settings/utils/createTextSettingsItem.d.ts +9 -0
- package/es/schema-settings/utils/createTextSettingsItem.mjs +21 -0
- package/es/schema-settings/utils/index.d.ts +4 -0
- package/es/schema-settings/utils/index.mjs +4 -0
- package/es/schema-settings/utils/util.d.ts +12 -0
- package/es/schema-settings/utils/util.mjs +24 -0
- package/es/user/CurrentUserProvider.mjs +6 -3
- package/lib/api-client/APIClient.js +93 -49
- package/lib/application/Application.js +11 -0
- package/lib/application/CustomRouterContextProvider.js +276 -0
- package/lib/application/NoticesManager.js +27 -3
- package/lib/application/RouterManager.js +49 -15
- package/lib/block-provider/hooks/index.js +76 -58
- package/lib/built-in/context-menu/ContextMenu.provider.js +6 -6
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +6 -6
- package/lib/built-in/context-menu/index.js +1 -1
- package/lib/built-in/index.js +5 -0
- package/lib/built-in/page-style/PageStyle.provider.js +2 -2
- package/lib/built-in/pm/PluginManager.js +45 -45
- package/lib/collection-manager/interfaces/properties/index.js +0 -2
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +18 -0
- package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.js +20 -0
- package/lib/data-source/commonsSettingsItem/fieldComponent.js +3 -1
- package/lib/filter-provider/utils.js +6 -0
- package/lib/i18n/i18n.js +7 -12
- package/lib/locale/en_US.js +4 -0
- package/lib/locale/zh-CN.js +13 -1
- package/lib/modules/actions/delete/deleteActionSettings.js +10 -0
- package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.js +1 -1
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +9 -4
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +2 -2
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +4 -0
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +44 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +4 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +9 -0
- package/lib/modules/fields/component/SubTable/secondLevelSelect.js +136 -0
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +104 -103
- package/lib/powered-by/index.js +4 -7
- package/lib/schema-component/antd/action/Action.Designer.js +38 -3
- package/lib/schema-component/antd/action/Action.Modal.js +0 -1
- package/lib/schema-component/antd/action/Action.js +1 -3
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -1
- package/lib/schema-component/antd/checkbox/Checkbox.js +6 -4
- package/lib/schema-component/antd/index.js +18 -4
- package/lib/schema-component/antd/media-card/MediaCard.js +69 -0
- package/lib/schema-component/antd/media-card/index.js +65 -0
- package/lib/schema-component/antd/media-card/style.js +59 -0
- package/lib/schema-component/antd/page/Page.js +34 -24
- package/lib/schema-component/common/dnd-context/index.js +1 -7
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.js +105 -0
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.style.js +59 -0
- package/lib/schema-items/GeneralSettings.js +5 -0
- package/lib/schema-settings/EditCustomDefaultValue.js +1 -1
- package/lib/schema-settings/SchemaSettings.js +1 -1
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +2 -0
- package/lib/schema-settings/utils/createModalSettingsItem.js +94 -0
- package/lib/schema-settings/utils/createSelectSettingsItem.js +88 -0
- package/lib/schema-settings/utils/createSwitchSettingsItem.js +86 -0
- package/lib/schema-settings/utils/createTextSettingsItem.js +55 -0
- package/lib/schema-settings/utils/index.js +92 -0
- package/lib/schema-settings/utils/util.js +74 -0
- package/lib/user/CurrentUserProvider.js +6 -3
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentType } from 'react';
|
|
1
|
+
import React, { ComponentType, PropsWithChildren } from 'react';
|
|
2
2
|
import { BrowserRouterProps, HashRouterProps, MemoryRouterProps, RouteObject } from 'react-router-dom';
|
|
3
3
|
import { Application } from './Application';
|
|
4
4
|
export interface BrowserRouterOptions extends Omit<BrowserRouterProps, 'children'> {
|
|
@@ -12,6 +12,7 @@ export interface MemoryRouterOptions extends Omit<MemoryRouterProps, 'children'>
|
|
|
12
12
|
}
|
|
13
13
|
export type RouterOptions = (HashRouterOptions | BrowserRouterOptions | MemoryRouterOptions) & {
|
|
14
14
|
renderComponent?: RenderComponentType;
|
|
15
|
+
routes?: Record<string, RouteType>;
|
|
15
16
|
};
|
|
16
17
|
export type ComponentTypeAndString<T = any> = ComponentType<T> | string;
|
|
17
18
|
export interface RouteType extends Omit<RouteObject, 'children' | 'Component'> {
|
|
@@ -22,6 +23,10 @@ export declare class RouterManager {
|
|
|
22
23
|
protected routes: Record<string, RouteType>;
|
|
23
24
|
protected options: RouterOptions;
|
|
24
25
|
app: Application;
|
|
26
|
+
private router;
|
|
27
|
+
get basename(): any;
|
|
28
|
+
get state(): any;
|
|
29
|
+
get navigate(): any;
|
|
25
30
|
constructor(options: RouterOptions, app: Application);
|
|
26
31
|
/**
|
|
27
32
|
* @internal
|
|
@@ -34,8 +39,8 @@ export declare class RouterManager {
|
|
|
34
39
|
/**
|
|
35
40
|
* @internal
|
|
36
41
|
*/
|
|
37
|
-
getRouterComponent(): ({ BaseLayout, }: {
|
|
38
|
-
BaseLayout?: ComponentType<any
|
|
42
|
+
getRouterComponent(children?: React.ReactNode): ({ BaseLayout, }: {
|
|
43
|
+
BaseLayout?: React.ComponentType<PropsWithChildren<any>>;
|
|
39
44
|
children?: React.ReactNode;
|
|
40
45
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
41
46
|
add(name: string, route: RouteType): void;
|
|
@@ -2,7 +2,9 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtim
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react_router_dom__ from "react-router-dom";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__variables_VariablesProvider_mjs__ from "../variables/VariablesProvider.mjs";
|
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE__components_index_mjs__ from "./components/index.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__CustomRouterContextProvider_mjs__ from "./CustomRouterContextProvider.mjs";
|
|
6
8
|
function _define_property(obj, key, value) {
|
|
7
9
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
8
10
|
value: value,
|
|
@@ -14,6 +16,15 @@ function _define_property(obj, key, value) {
|
|
|
14
16
|
return obj;
|
|
15
17
|
}
|
|
16
18
|
class RouterManager {
|
|
19
|
+
get basename() {
|
|
20
|
+
return this.router.basename;
|
|
21
|
+
}
|
|
22
|
+
get state() {
|
|
23
|
+
return this.router.state;
|
|
24
|
+
}
|
|
25
|
+
get navigate() {
|
|
26
|
+
return this.router.navigate;
|
|
27
|
+
}
|
|
17
28
|
getRoutesTree() {
|
|
18
29
|
const routes = {};
|
|
19
30
|
for (const [name, route] of Object.entries(this.routes))(0, __WEBPACK_EXTERNAL_MODULE_lodash__.set)(routes, name.split('.').join('.children.'), {
|
|
@@ -49,26 +60,46 @@ class RouterManager {
|
|
|
49
60
|
setBasename(basename) {
|
|
50
61
|
this.options.basename = basename;
|
|
51
62
|
}
|
|
52
|
-
getRouterComponent() {
|
|
63
|
+
getRouterComponent(children) {
|
|
53
64
|
const { type = 'browser', ...opts } = this.options;
|
|
54
|
-
const
|
|
55
|
-
hash: __WEBPACK_EXTERNAL_MODULE_react_router_dom__.
|
|
56
|
-
browser: __WEBPACK_EXTERNAL_MODULE_react_router_dom__.
|
|
57
|
-
memory: __WEBPACK_EXTERNAL_MODULE_react_router_dom__.
|
|
65
|
+
const routerCreators = {
|
|
66
|
+
hash: __WEBPACK_EXTERNAL_MODULE_react_router_dom__.createHashRouter,
|
|
67
|
+
browser: __WEBPACK_EXTERNAL_MODULE_react_router_dom__.createBrowserRouter,
|
|
68
|
+
memory: __WEBPACK_EXTERNAL_MODULE_react_router_dom__.createMemoryRouter
|
|
69
|
+
};
|
|
70
|
+
const routes = this.getRoutesTree();
|
|
71
|
+
const BaseLayoutContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
|
|
72
|
+
const Provider = ()=>{
|
|
73
|
+
const BaseLayout = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(BaseLayoutContext);
|
|
74
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__CustomRouterContextProvider_mjs__.CustomRouterContextProvider, {
|
|
75
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(BaseLayout, {
|
|
76
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__variables_VariablesProvider_mjs__["default"], {
|
|
77
|
+
children: [
|
|
78
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_router_dom__.Outlet, {}),
|
|
79
|
+
children
|
|
80
|
+
]
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
});
|
|
58
84
|
};
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const element = (0, __WEBPACK_EXTERNAL_MODULE_react_router_dom__.useRoutes)(routes);
|
|
63
|
-
return element;
|
|
85
|
+
const ErrorElement = ()=>{
|
|
86
|
+
const error = (0, __WEBPACK_EXTERNAL_MODULE_react_router_dom__.useRouteError)();
|
|
87
|
+
throw error;
|
|
64
88
|
};
|
|
89
|
+
this.router = routerCreators[type]([
|
|
90
|
+
{
|
|
91
|
+
element: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Provider, {}),
|
|
92
|
+
errorElement: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(ErrorElement, {}),
|
|
93
|
+
children: routes
|
|
94
|
+
}
|
|
95
|
+
], opts);
|
|
65
96
|
const RenderRouter = (param)=>{
|
|
66
97
|
let { BaseLayout = __WEBPACK_EXTERNAL_MODULE__components_index_mjs__.BlankComponent } = param;
|
|
67
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(
|
|
71
|
-
|
|
98
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(BaseLayoutContext.Provider, {
|
|
99
|
+
value: BaseLayout,
|
|
100
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__components_index_mjs__.RouterContextCleaner, {
|
|
101
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_router_dom__.RouterProvider, {
|
|
102
|
+
router: this.router
|
|
72
103
|
})
|
|
73
104
|
})
|
|
74
105
|
});
|
|
@@ -91,8 +122,10 @@ class RouterManager {
|
|
|
91
122
|
_define_property(this, "routes", {});
|
|
92
123
|
_define_property(this, "options", void 0);
|
|
93
124
|
_define_property(this, "app", void 0);
|
|
125
|
+
_define_property(this, "router", void 0);
|
|
94
126
|
this.options = options;
|
|
95
127
|
this.app = app;
|
|
128
|
+
this.routes = options.routes || {};
|
|
96
129
|
}
|
|
97
130
|
}
|
|
98
131
|
function createRouterManager(options, app) {
|
|
@@ -12,5 +12,5 @@ export declare const useSchemaInitializer: () => {
|
|
|
12
12
|
visible: boolean;
|
|
13
13
|
setVisible: (v: boolean) => void;
|
|
14
14
|
};
|
|
15
|
-
export declare const SchemaInitializerItemContext: React.Context<Omit<SchemaInitializerItemType, "type" | "component" | "
|
|
15
|
+
export declare const SchemaInitializerItemContext: React.Context<Omit<SchemaInitializerItemType, "type" | "component" | "sort" | "componentProps" | "Component" | "useVisible" | "useChildren" | "hideIfNoChildren">>;
|
|
16
16
|
export declare const useSchemaInitializerItem: <T = any>() => T;
|
|
@@ -17,6 +17,8 @@ export declare const useInsertSchema: () => (ss: any) => void;
|
|
|
17
17
|
export declare const useCancelActionProps: () => {
|
|
18
18
|
onClick(): Promise<void>;
|
|
19
19
|
};
|
|
20
|
+
export declare function getAfterWorkflows(triggerWorkflows: any[]): string | undefined;
|
|
21
|
+
export declare function getBeforeWorkflows(triggerWorkflows: any[]): string | undefined;
|
|
20
22
|
export declare const useCreateActionProps: () => {
|
|
21
23
|
onClick(): Promise<void>;
|
|
22
24
|
};
|
|
@@ -196,6 +196,20 @@ const useJumpDetails = ()=>{
|
|
|
196
196
|
})));
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
+
function getAfterWorkflows(triggerWorkflows) {
|
|
200
|
+
if (!(null == triggerWorkflows ? void 0 : triggerWorkflows.length)) return;
|
|
201
|
+
return triggerWorkflows.filter((row)=>row && 'before' !== row.order).map((row)=>[
|
|
202
|
+
row.workflowKey,
|
|
203
|
+
row.context
|
|
204
|
+
].join('!')).join(',');
|
|
205
|
+
}
|
|
206
|
+
function getBeforeWorkflows(triggerWorkflows) {
|
|
207
|
+
if (!(null == triggerWorkflows ? void 0 : triggerWorkflows.length)) return;
|
|
208
|
+
return triggerWorkflows.filter((row)=>row && 'before' === row.order).map((row)=>[
|
|
209
|
+
row.workflowKey,
|
|
210
|
+
row.context
|
|
211
|
+
].join('!')).join(',');
|
|
212
|
+
}
|
|
199
213
|
const useCreateActionProps = ()=>{
|
|
200
214
|
var _actionField_componentProps_filterKeys;
|
|
201
215
|
const record = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionRecord)();
|
|
@@ -225,10 +239,8 @@ const useCreateActionProps = ()=>{
|
|
|
225
239
|
const data = await resource[action]({
|
|
226
240
|
values: await collectValues(),
|
|
227
241
|
filterKeys: filterKeys,
|
|
228
|
-
triggerWorkflows: (
|
|
229
|
-
|
|
230
|
-
row.context
|
|
231
|
-
].filter(Boolean).join('!')).join(',') : void 0,
|
|
242
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
243
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows),
|
|
232
244
|
updateAssociationValues
|
|
233
245
|
});
|
|
234
246
|
actionField.data.loading = false;
|
|
@@ -336,10 +348,8 @@ const useAssociationCreateActionProps = ()=>{
|
|
|
336
348
|
...assignedValues
|
|
337
349
|
},
|
|
338
350
|
filterKeys: filterKeys,
|
|
339
|
-
triggerWorkflows: (
|
|
340
|
-
|
|
341
|
-
row.context
|
|
342
|
-
].filter(Boolean).join('!')).join(',') : void 0
|
|
351
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
352
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
343
353
|
});
|
|
344
354
|
actionField.data.loading = false;
|
|
345
355
|
actionField.data.data = data;
|
|
@@ -514,10 +524,8 @@ const useCustomizeUpdateActionProps = ()=>{
|
|
|
514
524
|
values: {
|
|
515
525
|
...assignedValues
|
|
516
526
|
},
|
|
517
|
-
triggerWorkflows: (
|
|
518
|
-
|
|
519
|
-
row.context
|
|
520
|
-
].filter(Boolean).join('!')).join(',') : void 0
|
|
527
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
528
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
521
529
|
});
|
|
522
530
|
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
523
531
|
if (!(resource instanceof __WEBPACK_EXTERNAL_MODULE__TableFieldProvider_mjs__.TableFieldResource)) {
|
|
@@ -707,10 +715,8 @@ const useUpdateActionProps = ()=>{
|
|
|
707
715
|
values: isDeltaChanged ? filterValues(rawValues) : rawValues,
|
|
708
716
|
...data,
|
|
709
717
|
updateAssociationValues,
|
|
710
|
-
triggerWorkflows: (
|
|
711
|
-
|
|
712
|
-
row.context
|
|
713
|
-
].filter(Boolean).join('!')).join(',') : void 0
|
|
718
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
719
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
714
720
|
});
|
|
715
721
|
actionField.data.loading = false;
|
|
716
722
|
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
@@ -752,10 +758,8 @@ const useDestroyActionProps = ()=>{
|
|
|
752
758
|
const { triggerWorkflows } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
753
759
|
await resource.destroy({
|
|
754
760
|
filterByTk,
|
|
755
|
-
triggerWorkflows: (
|
|
756
|
-
|
|
757
|
-
row.context
|
|
758
|
-
].filter(Boolean).join('!')).join(',') : void 0,
|
|
761
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
762
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows),
|
|
759
763
|
...data
|
|
760
764
|
});
|
|
761
765
|
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null === (_service_data = service.data) || void 0 === _service_data ? void 0 : _service_data.meta) || {};
|
|
@@ -1225,4 +1229,4 @@ async function resetFormCorrectly(form) {
|
|
|
1225
1229
|
});
|
|
1226
1230
|
await form.reset();
|
|
1227
1231
|
}
|
|
1228
|
-
export { findFilterTargets, getAssociationPath, getFormValues, updateFilterTargets, useAssociationCreateActionProps, useAssociationFilterBlockProps, useAssociationFilterProps, useAssociationNames, useBulkDestroyActionProps, useCancelActionProps, useCollectValuesToSubmit, useCreateActionProps, useCustomizeRequestActionProps, useCustomizeUpdateActionProps, useDestroyActionProps, useDetailPrintActionProps, useDetailsPaginationProps, useDisassociateActionProps, useFilterBlockActionProps, useInsertSchema, useOptionalFieldList, useRefreshActionProps, useRemoveActionProps, useResetBlockActionProps, useUpdateActionProps };
|
|
1232
|
+
export { findFilterTargets, getAfterWorkflows, getAssociationPath, getBeforeWorkflows, getFormValues, updateFilterTargets, useAssociationCreateActionProps, useAssociationFilterBlockProps, useAssociationFilterProps, useAssociationNames, useBulkDestroyActionProps, useCancelActionProps, useCollectValuesToSubmit, useCreateActionProps, useCustomizeRequestActionProps, useCustomizeUpdateActionProps, useDestroyActionProps, useDetailPrintActionProps, useDetailsPaginationProps, useDisassociateActionProps, useFilterBlockActionProps, useInsertSchema, useOptionalFieldList, useRefreshActionProps, useRemoveActionProps, useResetBlockActionProps, useUpdateActionProps };
|
|
@@ -8,7 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../
|
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__pinned_list_index_mjs__ from "../pinned-list/index.mjs";
|
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE__useContextMenu_mjs__ from "./useContextMenu.mjs";
|
|
10
10
|
const STORAGE_KEYS = {
|
|
11
|
-
|
|
11
|
+
SHOW_SCROLL_AREA: 'show-scroll-area',
|
|
12
12
|
CONTEXT_MENU_ENABLED: 'context-menu-enabled'
|
|
13
13
|
};
|
|
14
14
|
const ContextMenuProvider = (param)=>{
|
|
@@ -16,7 +16,7 @@ const ContextMenuProvider = (param)=>{
|
|
|
16
16
|
const [enable, setEnable] = (0, __WEBPACK_EXTERNAL_MODULE_ahooks__.useLocalStorageState)(STORAGE_KEYS.CONTEXT_MENU_ENABLED, {
|
|
17
17
|
defaultValue: true
|
|
18
18
|
});
|
|
19
|
-
const [
|
|
19
|
+
const [showScrollArea, setShowScrollArea] = (0, __WEBPACK_EXTERNAL_MODULE_ahooks__.useLocalStorageState)(STORAGE_KEYS.SHOW_SCROLL_AREA, {
|
|
20
20
|
defaultValue: false
|
|
21
21
|
});
|
|
22
22
|
const contextItems = (0, __WEBPACK_EXTERNAL_MODULE__application_index_mjs__.useApp)().pluginContextMenu.get();
|
|
@@ -30,8 +30,8 @@ const ContextMenuProvider = (param)=>{
|
|
|
30
30
|
const { actionProps, title, icon } = item.useLoadMethod({
|
|
31
31
|
enable,
|
|
32
32
|
setEnable,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
showScrollArea,
|
|
34
|
+
setShowScrollArea,
|
|
35
35
|
position
|
|
36
36
|
});
|
|
37
37
|
items.push({
|
|
@@ -45,8 +45,8 @@ const ContextMenuProvider = (param)=>{
|
|
|
45
45
|
value: {
|
|
46
46
|
contextMenuEnabled: enable,
|
|
47
47
|
setContextMenuEnable: setEnable,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
showScrollArea,
|
|
49
|
+
setShowScrollArea,
|
|
50
50
|
position
|
|
51
51
|
},
|
|
52
52
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Dropdown, {
|
|
@@ -31,12 +31,12 @@ export declare const disableRightMenu: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const showScrollArea: {
|
|
35
35
|
name: string;
|
|
36
36
|
sort: number;
|
|
37
|
-
useLoadMethod: ({
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
useLoadMethod: ({ showScrollArea, setShowScrollArea }: {
|
|
38
|
+
showScrollArea: any;
|
|
39
|
+
setShowScrollArea: any;
|
|
40
40
|
}) => {
|
|
41
41
|
title: string;
|
|
42
42
|
actionProps: {
|
|
@@ -49,17 +49,17 @@ const disableRightMenu = {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
const
|
|
53
|
-
name: '
|
|
52
|
+
const ContextMenuItemsProps_rslib_entry_showScrollArea = {
|
|
53
|
+
name: 'showScrollArea',
|
|
54
54
|
sort: 3,
|
|
55
55
|
useLoadMethod: (param)=>{
|
|
56
|
-
let {
|
|
56
|
+
let { showScrollArea, setShowScrollArea } = param;
|
|
57
57
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
58
58
|
return {
|
|
59
|
-
title:
|
|
59
|
+
title: showScrollArea ? t('Hidden scroll area') : t('Show scroll area'),
|
|
60
60
|
actionProps: {
|
|
61
61
|
onClick: ()=>{
|
|
62
|
-
|
|
62
|
+
setShowScrollArea(!showScrollArea);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -143,4 +143,4 @@ const removeNode = (param)=>{
|
|
|
143
143
|
const autoPage = document.querySelector('.autoPage' + classId);
|
|
144
144
|
if (autoPage) autoPage.parentNode.removeChild(autoPage);
|
|
145
145
|
};
|
|
146
|
-
export { designerMode, disableRightMenu, fullScreen,
|
|
146
|
+
export { designerMode, disableRightMenu, fullScreen, ContextMenuItemsProps_rslib_entry_showScrollArea as showScrollArea };
|
|
@@ -11,7 +11,7 @@ class PluginContextMenu extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mj
|
|
|
11
11
|
this.app.pluginContextMenu.add(__WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.designerMode.name, __WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.designerMode);
|
|
12
12
|
this.app.pluginContextMenu.add(__WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.fullScreen.name, __WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.fullScreen);
|
|
13
13
|
this.app.pluginContextMenu.add(__WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.disableRightMenu.name, __WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.disableRightMenu);
|
|
14
|
-
this.app.pluginContextMenu.add(__WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.
|
|
14
|
+
this.app.pluginContextMenu.add(__WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.showScrollArea.name, __WEBPACK_EXTERNAL_MODULE__ContextMenuItemsProps_mjs__.showScrollArea);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
var __webpack_exports__ContextMenuContext = __WEBPACK_EXTERNAL_MODULE__useContextMenu_mjs__.ContextMenuContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface ContextMenuContextProps {
|
|
2
2
|
contextMenuEnabled: boolean;
|
|
3
3
|
setContextMenuEnable: (enabled: boolean) => void;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
showScrollArea: boolean;
|
|
5
|
+
setShowScrollArea: (isShow: boolean) => void;
|
|
6
6
|
position: any;
|
|
7
7
|
setPosition: (any: any) => void;
|
|
8
8
|
}
|
package/es/built-in/index.mjs
CHANGED
|
@@ -314,6 +314,11 @@ class BuiltInPlugin extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__.
|
|
|
314
314
|
icon: 'BlockOutlined',
|
|
315
315
|
sort: -30
|
|
316
316
|
});
|
|
317
|
+
this.app.systemSettingsManager.add('security', {
|
|
318
|
+
title: this.t('Security'),
|
|
319
|
+
icon: 'SafetyOutlined',
|
|
320
|
+
sort: -20
|
|
321
|
+
});
|
|
317
322
|
this.app.systemSettingsManager.add('system-services', {
|
|
318
323
|
title: this.t('System Services'),
|
|
319
324
|
icon: 'CloudServerOutlined',
|
|
@@ -7,7 +7,7 @@ const PageStyleContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.cre
|
|
|
7
7
|
});
|
|
8
8
|
const PageStyleProvider = (param)=>{
|
|
9
9
|
let { children } = param;
|
|
10
|
-
var _currentUser_data_data_systemSettings;
|
|
10
|
+
var _currentUser_data_data_systemSettings, _currentUser_data_data, _currentUser_data;
|
|
11
11
|
const currentUser = (0, __WEBPACK_EXTERNAL_MODULE__user_index_mjs__.useCurrentUserContext)();
|
|
12
12
|
const tabItem = (0, __WEBPACK_EXTERNAL_MODULE__useTabSettings_mjs__.useTabSettings)();
|
|
13
13
|
const [items, setItems] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
|
|
@@ -22,7 +22,7 @@ const PageStyleProvider = (param)=>{
|
|
|
22
22
|
]);
|
|
23
23
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(PageStyleContext.Provider, {
|
|
24
24
|
value: {
|
|
25
|
-
style: (null === (
|
|
25
|
+
style: (null == currentUser ? void 0 : null === (_currentUser_data = currentUser.data) || void 0 === _currentUser_data ? void 0 : null === (_currentUser_data_data = _currentUser_data.data) || void 0 === _currentUser_data_data ? void 0 : null === (_currentUser_data_data_systemSettings = _currentUser_data_data.systemSettings) || void 0 === _currentUser_data_data_systemSettings ? void 0 : _currentUser_data_data_systemSettings.pageStyle) || 'classical',
|
|
26
26
|
items,
|
|
27
27
|
setItems
|
|
28
28
|
},
|
|
@@ -39,51 +39,6 @@ const PluginDescription = (param)=>{
|
|
|
39
39
|
children: record.isCompatible ? description : __WEBPACK_EXTERNAL_MODULE__i18n_index_mjs__.i18n.t('Plugin dependencies check failed')
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
const columns = [
|
|
43
|
-
{
|
|
44
|
-
title: __WEBPACK_EXTERNAL_MODULE__i18n_index_mjs__.i18n.t('Name'),
|
|
45
|
-
dataIndex: 'name',
|
|
46
|
-
key: 'name',
|
|
47
|
-
render: (_, param)=>{
|
|
48
|
-
let { displayName, name, packageName } = param;
|
|
49
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("span", {
|
|
50
|
-
children: displayName || name || packageName
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
title: __WEBPACK_EXTERNAL_MODULE__i18n_index_mjs__.i18n.t('Keywords'),
|
|
56
|
-
dataIndex: 'keywords',
|
|
57
|
-
key: 'keywords',
|
|
58
|
-
render: (keywords)=>null == keywords ? void 0 : keywords.map((keyword)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Tag, {
|
|
59
|
-
children: __WEBPACK_EXTERNAL_MODULE__i18n_index_mjs__.i18n.t(keyword)
|
|
60
|
-
}, keyword))
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: __WEBPACK_EXTERNAL_MODULE__i18n_index_mjs__.i18n.t('Description'),
|
|
64
|
-
dataIndex: 'description',
|
|
65
|
-
key: 'description',
|
|
66
|
-
render: (description, record)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(PluginDescription, {
|
|
67
|
-
description: description,
|
|
68
|
-
record: record
|
|
69
|
-
})
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
title: __WEBPACK_EXTERNAL_MODULE__i18n_index_mjs__.i18n.t('Action'),
|
|
73
|
-
key: 'action',
|
|
74
|
-
render: (_, record)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd__.Space, {
|
|
75
|
-
size: "middle",
|
|
76
|
-
children: [
|
|
77
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(ViewAction, {
|
|
78
|
-
record: record
|
|
79
|
-
}),
|
|
80
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__PluginCard_mjs__.SwitchAction, {
|
|
81
|
-
...record
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
})
|
|
85
|
-
}
|
|
86
|
-
];
|
|
87
42
|
const LocalPlugins = ()=>{
|
|
88
43
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
89
44
|
const { theme } = (0, __WEBPACK_EXTERNAL_MODULE__style_mjs__.useStyles)();
|
|
@@ -93,6 +48,51 @@ const LocalPlugins = ()=>{
|
|
|
93
48
|
const [searchValue, setSearchValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
|
|
94
49
|
const [enabled, setEnabled] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('all');
|
|
95
50
|
const [keywords, setKeywords] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)([]);
|
|
51
|
+
const columns = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>[
|
|
52
|
+
{
|
|
53
|
+
title: t('Name'),
|
|
54
|
+
dataIndex: 'name',
|
|
55
|
+
key: 'name',
|
|
56
|
+
render: (_, param)=>{
|
|
57
|
+
let { displayName, name, packageName } = param;
|
|
58
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("span", {
|
|
59
|
+
children: displayName || name || packageName
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: t('Keywords'),
|
|
65
|
+
dataIndex: 'keywords',
|
|
66
|
+
key: 'keywords',
|
|
67
|
+
render: (keywords)=>null == keywords ? void 0 : keywords.map((keyword)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Tag, {
|
|
68
|
+
children: t(keyword)
|
|
69
|
+
}, keyword))
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title: t('Description'),
|
|
73
|
+
dataIndex: 'description',
|
|
74
|
+
key: 'description',
|
|
75
|
+
render: (description, record)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(PluginDescription, {
|
|
76
|
+
description: description,
|
|
77
|
+
record: record
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: t('Action'),
|
|
82
|
+
key: 'action',
|
|
83
|
+
render: (_, record)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd__.Space, {
|
|
84
|
+
size: "middle",
|
|
85
|
+
children: [
|
|
86
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(ViewAction, {
|
|
87
|
+
record: record
|
|
88
|
+
}),
|
|
89
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__PluginCard_mjs__.SwitchAction, {
|
|
90
|
+
...record
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
], []);
|
|
96
96
|
const filteredList = ((null == data ? void 0 : data.data) || []).filter((data)=>{
|
|
97
97
|
var _data_description;
|
|
98
98
|
return (0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(searchValue, data.name) || (0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(searchValue, data.packageName) || (0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(searchValue, null !== (_data_description = data.description) && void 0 !== _data_description ? _data_description : '') || (0, __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client__.fuzzysearch)(searchValue, data.displayName);
|
|
@@ -34,7 +34,6 @@ export declare class InputFieldInterface extends CollectionFieldInterface {
|
|
|
34
34
|
'x-content': string;
|
|
35
35
|
'x-decorator': string;
|
|
36
36
|
'x-component': string;
|
|
37
|
-
'x-disabled': string;
|
|
38
37
|
'x-reactions': {
|
|
39
38
|
dependencies: string[];
|
|
40
39
|
when: string;
|
|
@@ -50,7 +49,6 @@ export declare class InputFieldInterface extends CollectionFieldInterface {
|
|
|
50
49
|
'x-content': string;
|
|
51
50
|
'x-decorator': string;
|
|
52
51
|
'x-component': string;
|
|
53
|
-
'x-disabled': string;
|
|
54
52
|
'x-reactions': {
|
|
55
53
|
dependencies: string[];
|
|
56
54
|
when: string;
|
|
@@ -37,7 +37,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
|
|
|
37
37
|
'x-content': string;
|
|
38
38
|
'x-decorator': string;
|
|
39
39
|
'x-component': string;
|
|
40
|
-
'x-disabled': string;
|
|
41
40
|
'x-reactions': {
|
|
42
41
|
dependencies: string[];
|
|
43
42
|
when: string;
|
|
@@ -53,7 +52,6 @@ export declare class IntegerFieldInterface extends CollectionFieldInterface {
|
|
|
53
52
|
'x-content': string;
|
|
54
53
|
'x-decorator': string;
|
|
55
54
|
'x-component': string;
|
|
56
|
-
'x-disabled': string;
|
|
57
55
|
'x-reactions': {
|
|
58
56
|
dependencies: string[];
|
|
59
57
|
when: string;
|
|
@@ -6,7 +6,6 @@ export declare const unique: {
|
|
|
6
6
|
'x-content': string;
|
|
7
7
|
'x-decorator': string;
|
|
8
8
|
'x-component': string;
|
|
9
|
-
'x-disabled': string;
|
|
10
9
|
'x-reactions': {
|
|
11
10
|
dependencies: string[];
|
|
12
11
|
when: string;
|
|
@@ -22,7 +21,6 @@ export declare const primaryKey: {
|
|
|
22
21
|
'x-content': string;
|
|
23
22
|
'x-decorator': string;
|
|
24
23
|
'x-component': string;
|
|
25
|
-
'x-disabled': string;
|
|
26
24
|
'x-reactions': {
|
|
27
25
|
dependencies: string[];
|
|
28
26
|
when: string;
|
|
@@ -91,7 +91,6 @@ const unique = {
|
|
|
91
91
|
'x-content': '{{t("Unique")}}',
|
|
92
92
|
'x-decorator': 'FormItem',
|
|
93
93
|
'x-component': 'Checkbox',
|
|
94
|
-
'x-disabled': '{{ !createMainOnly }}',
|
|
95
94
|
'x-reactions': [
|
|
96
95
|
{
|
|
97
96
|
dependencies: [
|
|
@@ -111,7 +110,6 @@ const primaryKey = {
|
|
|
111
110
|
'x-content': '{{t("Primary")}}',
|
|
112
111
|
'x-decorator': 'FormItem',
|
|
113
112
|
'x-component': 'Checkbox',
|
|
114
|
-
'x-disabled': '{{ !createMainOnly }}',
|
|
115
113
|
'x-reactions': [
|
|
116
114
|
{
|
|
117
115
|
dependencies: [
|
|
@@ -48,4 +48,5 @@ export declare abstract class CollectionFieldInterface {
|
|
|
48
48
|
validateSchema?(fieldSchema: ISchema): Record<string, ISchema>;
|
|
49
49
|
usePathOptions?(field: CollectionFieldOptions): any;
|
|
50
50
|
schemaInitialize?(schema: ISchema, data: any): void;
|
|
51
|
+
addComponentOption(componentOption: CollectionFieldInterfaceComponentOption): void;
|
|
51
52
|
}
|