@tachybase/client 0.23.20 → 0.23.35
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/application/schema-initializer/components/SchemaInitializerChildren.mjs +1 -1
- package/es/built-in/admin-layout/InternalAdminLayout.mjs +4 -2
- package/es/built-in/admin-layout/MenuEditor.mjs +2 -2
- package/es/built-in/admin-layout/style.d.ts +1 -1
- package/es/built-in/admin-layout/style.mjs +4 -4
- package/es/built-in/assistant/Assistant.provider.d.ts +0 -6
- package/es/built-in/assistant/Assistant.provider.mjs +15 -112
- package/es/built-in/assistant/index.d.ts +0 -1
- package/es/built-in/assistant/index.mjs +0 -7
- package/es/built-in/attachment-preview/previewers/file-pdf.mjs +4 -2
- package/es/built-in/context-menu/ContextMenu.provider.d.ts +1 -0
- package/es/built-in/context-menu/ContextMenu.provider.mjs +29 -1
- package/es/built-in/context-menu/index.mjs +1 -0
- package/es/built-in/index.mjs +44 -5
- package/es/built-in/page-style/TabHeader.d.ts +1 -1
- package/es/built-in/page-style/TabHeader.mjs +26 -33
- package/es/built-in/page-style/TabHeader.style.d.ts +4 -0
- package/es/built-in/page-style/TabHeader.style.mjs +35 -0
- package/es/built-in/pinned-list/PinnedPluginListProvider.d.ts +3 -1
- package/es/built-in/pinned-list/PinnedPluginListProvider.mjs +5 -4
- package/es/built-in/scroll-assistant/useJoystick.mjs +3 -1
- package/es/built-in/setting-layout/SettingLayout.mjs +10 -1
- package/es/built-in/{assistant/calculator → setting-layout}/style.d.ts +1 -1
- package/es/built-in/setting-layout/style.mjs +25 -0
- package/es/collection-manager/action-hooks.d.ts +1 -4
- package/es/collection-manager/action-hooks.mjs +39 -11
- package/es/icon/preloaded.mjs +4 -4
- package/es/modules/actions/associate/AssociateActionInitializer.d.ts +1 -0
- package/es/modules/actions/associate/AssociateActionInitializer.mjs +71 -0
- package/es/modules/actions/associate/AssociateActionProvider.d.ts +7 -0
- package/es/modules/actions/associate/AssociateActionProvider.mjs +82 -0
- package/es/modules/actions/associate/AssociateActionSettings.d.ts +2 -0
- package/es/modules/actions/associate/AssociateActionSettings.mjs +57 -0
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +2 -1
- package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +21 -14
- package/es/modules/blocks/data-blocks/form/createEditFormBlockUISchema.d.ts +1 -2
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +2 -1
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +2 -1
- package/es/modules/blocks/data-blocks/table/TableActionInitializers.mjs +15 -0
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +2 -1
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +2 -2
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +2 -1
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +2 -1
- package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +4 -0
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +16 -2
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +2 -1
- package/es/modules/menu/GroupItem.mjs +5 -1
- package/es/modules/menu/LinkMenuItem.mjs +7 -3
- package/es/modules/menu/PageMenuItem.mjs +5 -1
- package/es/modules/menu/UploadMenuItem.d.ts +1 -0
- package/es/modules/menu/UploadMenuItem.mjs +81 -0
- package/es/modules/menu/menuItemInitializer.d.ts +0 -4
- package/es/modules/menu/menuItemInitializer.mjs +3 -23
- package/es/schema-component/antd/action/Action.Designer.mjs +4 -1
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +4 -2
- package/es/schema-component/antd/checkbox/Checkbox.mjs +11 -6
- package/es/schema-component/antd/date-picker/DatePicker.mjs +4 -0
- package/es/schema-component/antd/form-item/FormItem.Settings.d.ts +2 -0
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +14 -1
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +2 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +2 -1
- package/es/schema-component/antd/list/List.Designer.mjs +2 -1
- package/es/schema-component/antd/menu/AdminMenu.d.ts +1 -0
- package/es/schema-component/antd/menu/AdminMenu.mjs +71 -0
- package/es/schema-component/antd/menu/AdminMenu.style.d.ts +4 -0
- package/es/schema-component/antd/menu/AdminMenu.style.mjs +36 -0
- package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -1
- package/es/schema-component/antd/menu/Menu.Designer.mjs +59 -40
- package/es/schema-component/antd/menu/Menu.mjs +108 -141
- package/es/schema-component/antd/menu/Menu.styles.d.ts +1 -2
- package/es/schema-component/antd/menu/Menu.styles.mjs +8 -20
- package/es/schema-component/antd/menu/MenuSearch.d.ts +5 -0
- package/es/schema-component/antd/menu/MenuSearch.mjs +32 -0
- package/es/schema-component/antd/menu/tools.d.ts +9 -0
- package/es/schema-component/antd/menu/tools.mjs +36 -0
- package/es/schema-component/antd/scroll-area/ScrollArea.mjs +0 -17
- package/es/schema-component/antd/select/Select.d.ts +3 -13
- package/es/schema-component/antd/select/Select.mjs +33 -2
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +2 -1
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +2 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +2 -1
- package/es/schema-component/common/dnd-context/index.d.ts +1 -2
- package/es/schema-component/common/sortable-item/DragHandleMenu.d.ts +1 -0
- package/es/schema-component/common/sortable-item/DragHandleMenu.mjs +78 -0
- package/es/schema-component/common/sortable-item/DragHandleMenu.style.d.ts +3 -0
- package/es/schema-component/common/sortable-item/DragHandleMenu.style.mjs +25 -0
- package/es/schema-initializer/SchemaInitializerPlugin.mjs +5 -2
- package/es/schema-initializer/utils.mjs +24 -12
- package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
- package/es/schema-settings/GeneralSchemaDesigner.mjs +9 -1
- package/es/schema-settings/SchemaSettings.d.ts +3 -1
- package/es/schema-settings/SchemaSettings.mjs +16 -4
- package/es/schema-settings/SchemaSettingsPlugin.mjs +2 -0
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +2 -1
- package/es/schema-settings/styles.mjs +2 -2
- package/lib/application/schema-initializer/components/SchemaInitializerChildren.js +1 -1
- package/lib/built-in/admin-layout/InternalAdminLayout.js +4 -2
- package/lib/built-in/admin-layout/MenuEditor.js +2 -2
- package/lib/built-in/admin-layout/style.js +4 -4
- package/lib/built-in/assistant/Assistant.provider.js +16 -115
- package/lib/built-in/assistant/index.js +3 -16
- package/lib/built-in/attachment-preview/previewers/file-pdf.js +4 -2
- package/lib/built-in/context-menu/ContextMenu.provider.js +29 -0
- package/lib/built-in/context-menu/index.js +1 -0
- package/lib/built-in/index.js +44 -5
- package/lib/built-in/page-style/TabHeader.js +26 -33
- package/lib/built-in/page-style/TabHeader.style.js +69 -0
- package/lib/built-in/pinned-list/PinnedPluginListProvider.js +5 -4
- package/lib/built-in/scroll-assistant/useJoystick.js +17 -1
- package/lib/built-in/setting-layout/SettingLayout.js +10 -1
- package/lib/built-in/{assistant/calculator/CalculatorKey.js → setting-layout/style.js} +25 -11
- package/lib/collection-manager/action-hooks.js +39 -11
- package/lib/icon/preloaded.js +4 -4
- package/lib/locale/en_US.js +8 -0
- package/lib/locale/zh-CN.js +8 -0
- package/lib/modules/actions/associate/AssociateActionInitializer.js +105 -0
- package/lib/modules/actions/associate/AssociateActionProvider.js +116 -0
- package/lib/modules/actions/associate/AssociateActionSettings.js +91 -0
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -1
- package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.js +21 -14
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -1
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -1
- package/lib/modules/blocks/data-blocks/table/TableActionInitializers.js +15 -0
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -1
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -1
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -1
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +4 -0
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +16 -2
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +2 -1
- package/lib/modules/menu/GroupItem.js +5 -1
- package/lib/modules/menu/LinkMenuItem.js +7 -3
- package/lib/modules/menu/PageMenuItem.js +5 -1
- package/lib/modules/menu/UploadMenuItem.js +115 -0
- package/lib/modules/menu/menuItemInitializer.js +2 -23
- package/lib/schema-component/antd/action/Action.Designer.js +4 -1
- package/lib/schema-component/antd/association-select/AssociationSelect.js +4 -2
- package/lib/schema-component/antd/checkbox/Checkbox.js +11 -6
- package/lib/schema-component/antd/date-picker/DatePicker.js +4 -0
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +16 -1
- package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -1
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -1
- package/lib/schema-component/antd/list/List.Designer.js +2 -1
- package/lib/schema-component/antd/menu/AdminMenu.js +105 -0
- package/lib/schema-component/antd/menu/AdminMenu.style.js +70 -0
- package/lib/schema-component/antd/menu/Menu.Designer.js +59 -40
- package/lib/schema-component/antd/menu/Menu.js +108 -141
- package/lib/schema-component/antd/menu/Menu.styles.js +8 -20
- package/lib/schema-component/antd/menu/MenuSearch.js +80 -0
- package/lib/schema-component/antd/menu/tools.js +72 -0
- package/lib/schema-component/antd/scroll-area/ScrollArea.js +0 -17
- package/lib/schema-component/antd/select/Select.js +33 -2
- package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -1
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -1
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -1
- package/lib/schema-component/common/sortable-item/DragHandleMenu.js +112 -0
- package/lib/schema-component/common/sortable-item/DragHandleMenu.style.js +59 -0
- package/lib/schema-initializer/SchemaInitializerPlugin.js +5 -2
- package/lib/schema-initializer/utils.js +24 -12
- package/lib/schema-settings/GeneralSchemaDesigner.js +9 -1
- package/lib/schema-settings/SchemaSettings.js +16 -4
- package/lib/schema-settings/SchemaSettingsPlugin.js +2 -0
- package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -1
- package/lib/schema-settings/styles.js +2 -2
- package/package.json +8 -7
- package/es/built-in/assistant/calculator/AutoScalingText.d.ts +0 -3
- package/es/built-in/assistant/calculator/AutoScalingText.mjs +0 -33
- package/es/built-in/assistant/calculator/Calculator.d.ts +0 -2
- package/es/built-in/assistant/calculator/Calculator.mjs +0 -235
- package/es/built-in/assistant/calculator/CalculatorDisplay.d.ts +0 -4
- package/es/built-in/assistant/calculator/CalculatorDisplay.mjs +0 -21
- package/es/built-in/assistant/calculator/CalculatorKey.d.ts +0 -5
- package/es/built-in/assistant/calculator/CalculatorKey.mjs +0 -11
- package/es/built-in/assistant/calculator/CalculatorProvider.d.ts +0 -10
- package/es/built-in/assistant/calculator/CalculatorProvider.mjs +0 -29
- package/es/built-in/assistant/calculator/Draggable.d.ts +0 -8
- package/es/built-in/assistant/calculator/Draggable.mjs +0 -54
- package/es/built-in/assistant/calculator/style.mjs +0 -25
- package/es/built-in/assistant/search-and-jump/index.d.ts +0 -16
- package/es/built-in/assistant/search-and-jump/index.mjs +0 -59
- package/lib/built-in/assistant/calculator/AutoScalingText.js +0 -67
- package/lib/built-in/assistant/calculator/Calculator.js +0 -283
- package/lib/built-in/assistant/calculator/CalculatorDisplay.js +0 -55
- package/lib/built-in/assistant/calculator/CalculatorProvider.js +0 -65
- package/lib/built-in/assistant/calculator/Draggable.js +0 -102
- package/lib/built-in/assistant/calculator/style.js +0 -59
- package/lib/built-in/assistant/search-and-jump/index.js +0 -96
|
@@ -273,6 +273,7 @@ const fieldComponent = {
|
|
|
273
273
|
useComponentProps () {
|
|
274
274
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
275
275
|
const field = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
|
|
276
|
+
const collectionFieldCurrent = (0, __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionField)();
|
|
276
277
|
const { fieldSchema: tableColumnSchema, collectionField } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_table_v2_Table_Column_Decorator_mjs__.useColumnSchema)();
|
|
277
278
|
const schema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
|
|
278
279
|
const fieldSchema = tableColumnSchema || schema;
|
|
@@ -283,9 +284,22 @@ const fieldComponent = {
|
|
|
283
284
|
const isAddNewForm = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useIsAddNewForm)();
|
|
284
285
|
const fieldMode = (0, __WEBPACK_EXTERNAL_MODULE__common_useFieldComponentName_mjs__.useFieldComponentName)();
|
|
285
286
|
const { dn } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useDesignable)();
|
|
287
|
+
const isMuiltipleSelect = [
|
|
288
|
+
'select'
|
|
289
|
+
].includes(null == collectionFieldCurrent ? void 0 : collectionFieldCurrent.interface);
|
|
290
|
+
const optionsMuiltipleSelect = [
|
|
291
|
+
{
|
|
292
|
+
label: t('Select'),
|
|
293
|
+
value: 'Select'
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
label: t('Radio group'),
|
|
297
|
+
value: 'Radio group'
|
|
298
|
+
}
|
|
299
|
+
];
|
|
286
300
|
return {
|
|
287
301
|
title: t('Field component'),
|
|
288
|
-
options: fieldModeOptions,
|
|
302
|
+
options: isMuiltipleSelect ? optionsMuiltipleSelect : fieldModeOptions,
|
|
289
303
|
value: fieldMode,
|
|
290
304
|
onChange (mode) {
|
|
291
305
|
const schema = {
|
|
@@ -316,7 +330,7 @@ const selectComponentFieldSettings = new __WEBPACK_EXTERNAL_MODULE__application_
|
|
|
316
330
|
items: [
|
|
317
331
|
{
|
|
318
332
|
...fieldComponent,
|
|
319
|
-
useVisible: __WEBPACK_EXTERNAL_MODULE__schema_component_antd_form_item_FormItem_Settings_mjs__.
|
|
333
|
+
useVisible: __WEBPACK_EXTERNAL_MODULE__schema_component_antd_form_item_FormItem_Settings_mjs__.useIsMuiltipleAble
|
|
320
334
|
},
|
|
321
335
|
{
|
|
322
336
|
...setTheDataScope,
|
|
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/c
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../application/index.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_mjs__ from "../../icon/index.mjs";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../schema-component/index.mjs";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_menu_MenuItemInitializers_index_mjs__ from "../../schema-component/antd/menu/MenuItemInitializers/index.mjs";
|
|
9
10
|
import * as __WEBPACK_EXTERNAL_MODULE__style_theme_index_mjs__ from "../../style/theme/index.mjs";
|
|
@@ -70,7 +71,10 @@ const GroupItem = ()=>{
|
|
|
70
71
|
theme
|
|
71
72
|
]);
|
|
72
73
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__application_index_mjs__.SchemaInitializerItem, {
|
|
73
|
-
|
|
74
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__icon_index_mjs__.Icon, {
|
|
75
|
+
type: 'FolderAddOutlined'
|
|
76
|
+
}),
|
|
77
|
+
title: t('Create group'),
|
|
74
78
|
onClick: handleClick,
|
|
75
79
|
className: styles.menuItem
|
|
76
80
|
});
|
|
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/c
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../application/index.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_mjs__ from "../../icon/index.mjs";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../schema-component/index.mjs";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_menu_MenuItemInitializers_index_mjs__ from "../../schema-component/antd/menu/MenuItemInitializers/index.mjs";
|
|
9
10
|
import * as __WEBPACK_EXTERNAL_MODULE__style_theme_index_mjs__ from "../../style/theme/index.mjs";
|
|
@@ -76,9 +77,12 @@ const LinkMenuItem = ()=>{
|
|
|
76
77
|
theme
|
|
77
78
|
]);
|
|
78
79
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__application_index_mjs__.SchemaInitializerItem, {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
className: styles.menuItem,
|
|
81
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__icon_index_mjs__.Icon, {
|
|
82
|
+
type: 'GlobalOutlined'
|
|
83
|
+
}),
|
|
84
|
+
title: t('Create link'),
|
|
85
|
+
onClick: handleClick
|
|
82
86
|
});
|
|
83
87
|
};
|
|
84
88
|
export { LinkMenuItem };
|
|
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/c
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../application/index.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_mjs__ from "../../icon/index.mjs";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../schema-component/index.mjs";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_menu_MenuItemInitializers_index_mjs__ from "../../schema-component/antd/menu/MenuItemInitializers/index.mjs";
|
|
9
10
|
import * as __WEBPACK_EXTERNAL_MODULE__style_theme_index_mjs__ from "../../style/theme/index.mjs";
|
|
@@ -85,7 +86,10 @@ const PageMenuItem = ()=>{
|
|
|
85
86
|
theme
|
|
86
87
|
]);
|
|
87
88
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__application_index_mjs__.SchemaInitializerItem, {
|
|
88
|
-
|
|
89
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__icon_index_mjs__.Icon, {
|
|
90
|
+
type: 'FileOutlined'
|
|
91
|
+
}),
|
|
92
|
+
title: t('Create page'),
|
|
89
93
|
onClick: handleClick,
|
|
90
94
|
className: styles.menuItem
|
|
91
95
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UploadMenuItem: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/components";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__api_client_hooks_useAPIClient_mjs__ from "../../api-client/hooks/useAPIClient.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../application/index.mjs";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_index_mjs__ from "../../icon/index.mjs";
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../schema-component/index.mjs";
|
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_menu_MenuItemInitializers_index_mjs__ from "../../schema-component/antd/menu/MenuItemInitializers/index.mjs";
|
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE__style_theme_index_mjs__ from "../../style/theme/index.mjs";
|
|
12
|
+
const UploadMenuItem = ()=>{
|
|
13
|
+
const { insert } = (0, __WEBPACK_EXTERNAL_MODULE__application_index_mjs__.useSchemaInitializer)();
|
|
14
|
+
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
15
|
+
const options = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaOptionsContext);
|
|
16
|
+
const { theme } = (0, __WEBPACK_EXTERNAL_MODULE__style_theme_index_mjs__.useGlobalTheme)();
|
|
17
|
+
const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_menu_MenuItemInitializers_index_mjs__.useStyles)();
|
|
18
|
+
(0, __WEBPACK_EXTERNAL_MODULE__api_client_hooks_useAPIClient_mjs__.useAPIClient)();
|
|
19
|
+
const handleClick = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(async ()=>{
|
|
20
|
+
const values = await (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.FormDialog)(t('Load menu config'), ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.SchemaComponentOptions, {
|
|
21
|
+
scope: options.scope,
|
|
22
|
+
components: {
|
|
23
|
+
...options.components
|
|
24
|
+
},
|
|
25
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormLayout, {
|
|
26
|
+
layout: 'vertical',
|
|
27
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.SchemaComponent, {
|
|
28
|
+
schema: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
title: t('Load menu config'),
|
|
31
|
+
properties: {
|
|
32
|
+
title: {
|
|
33
|
+
'x-decorator': 'FormItem',
|
|
34
|
+
'x-component': 'Input',
|
|
35
|
+
title: t('Menu item title'),
|
|
36
|
+
required: true,
|
|
37
|
+
'x-component-props': {}
|
|
38
|
+
},
|
|
39
|
+
bindMenuToRole: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
title: '{{ t("Automatically assign permissions to all matching roles") }}',
|
|
42
|
+
'x-decorator': 'FormItem',
|
|
43
|
+
'x-component': 'Checkbox',
|
|
44
|
+
default: true
|
|
45
|
+
},
|
|
46
|
+
file: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
title: '{{ t("File") }}',
|
|
49
|
+
required: true,
|
|
50
|
+
'x-decorator': 'FormItem',
|
|
51
|
+
'x-component': 'Upload.Attachment',
|
|
52
|
+
'x-component-props': {
|
|
53
|
+
action: 'attachments:create',
|
|
54
|
+
multiple: false
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
}), theme).open({
|
|
62
|
+
initialValues: {}
|
|
63
|
+
});
|
|
64
|
+
const { title, icon } = values;
|
|
65
|
+
}, [
|
|
66
|
+
insert,
|
|
67
|
+
options.components,
|
|
68
|
+
options.scope,
|
|
69
|
+
t,
|
|
70
|
+
theme
|
|
71
|
+
]);
|
|
72
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__application_index_mjs__.SchemaInitializerItem, {
|
|
73
|
+
className: styles.menuItem,
|
|
74
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__icon_index_mjs__.Icon, {
|
|
75
|
+
type: 'UploadOutlined'
|
|
76
|
+
}),
|
|
77
|
+
title: t('Load menu config'),
|
|
78
|
+
onClick: handleClick
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
export { UploadMenuItem };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import { SchemaInitializer } from '../../application/schema-initializer/SchemaInitializer';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
*/
|
|
5
|
-
export declare const menuItemInitializer_deprecated: SchemaInitializer<import("antd").ButtonProps, {}>;
|
|
6
2
|
export declare const menuItemInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
|
|
@@ -2,8 +2,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__application_schema_initializer_SchemaInit
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__GroupItem_mjs__ from "./GroupItem.mjs";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__LinkMenuItem_mjs__ from "./LinkMenuItem.mjs";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__PageMenuItem_mjs__ from "./PageMenuItem.mjs";
|
|
5
|
-
const
|
|
6
|
-
name: '
|
|
5
|
+
const menuItemInitializer = new __WEBPACK_EXTERNAL_MODULE__application_schema_initializer_SchemaInitializer_mjs__.SchemaInitializer({
|
|
6
|
+
name: 'menuInitializers:menuItem',
|
|
7
7
|
insertPosition: 'beforeEnd',
|
|
8
8
|
icon: 'PlusOutlined',
|
|
9
9
|
title: '{{t("Add menu item")}}',
|
|
@@ -25,24 +25,4 @@ const menuItemInitializer_deprecated = new __WEBPACK_EXTERNAL_MODULE__applicatio
|
|
|
25
25
|
}
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
name: 'menuInitializers:menuItem',
|
|
30
|
-
insertPosition: 'beforeEnd',
|
|
31
|
-
icon: 'PlusOutlined',
|
|
32
|
-
title: '{{t("Add menu item")}}',
|
|
33
|
-
items: [
|
|
34
|
-
{
|
|
35
|
-
name: 'submenu',
|
|
36
|
-
Component: __WEBPACK_EXTERNAL_MODULE__GroupItem_mjs__.GroupItem
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'page',
|
|
40
|
-
Component: __WEBPACK_EXTERNAL_MODULE__PageMenuItem_mjs__.PageMenuItem
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'link',
|
|
44
|
-
Component: __WEBPACK_EXTERNAL_MODULE__LinkMenuItem_mjs__.LinkMenuItem
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
});
|
|
48
|
-
export { menuItemInitializer, menuItemInitializer_deprecated };
|
|
28
|
+
export { menuItemInitializer };
|
|
@@ -189,7 +189,10 @@ function SkipValidation() {
|
|
|
189
189
|
}
|
|
190
190
|
const findSchema = (schema)=>{
|
|
191
191
|
if (!schema) return;
|
|
192
|
-
if ('ACLActionProvider' === schema['x-decorator'])
|
|
192
|
+
if ('ACLActionProvider' === schema['x-decorator']) {
|
|
193
|
+
var _schema_xcomponentprops;
|
|
194
|
+
return null === (_schema_xcomponentprops = schema['x-component-props']) || void 0 === _schema_xcomponentprops ? void 0 : _schema_xcomponentprops.openMode;
|
|
195
|
+
}
|
|
193
196
|
return findSchema(null == schema ? void 0 : schema.parent);
|
|
194
197
|
};
|
|
195
198
|
function AfterSuccess() {
|
|
@@ -385,7 +385,8 @@ AssociationSelect.Designer = function() {
|
|
|
385
385
|
'x-component-props': {
|
|
386
386
|
style: {
|
|
387
387
|
width: 260
|
|
388
|
-
}
|
|
388
|
+
},
|
|
389
|
+
optionLabelProp: 'fullLabel'
|
|
389
390
|
}
|
|
390
391
|
},
|
|
391
392
|
direction: {
|
|
@@ -768,7 +769,8 @@ AssociationSelect.FilterDesigner = function() {
|
|
|
768
769
|
'x-component-props': {
|
|
769
770
|
style: {
|
|
770
771
|
width: 260
|
|
771
|
-
}
|
|
772
|
+
},
|
|
773
|
+
optionLabelProp: 'fullLabel'
|
|
772
774
|
}
|
|
773
775
|
},
|
|
774
776
|
direction: {
|
|
@@ -53,12 +53,17 @@ const InternalRadioGroup = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.con
|
|
|
53
53
|
});
|
|
54
54
|
}, (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.mapReadPretty)(ReadPretty));
|
|
55
55
|
const Checkbox = (props)=>{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
switch(props.mode){
|
|
57
|
+
case 'Radio group':
|
|
58
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(InternalRadioGroup, {
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
case 'Checkbox':
|
|
62
|
+
default:
|
|
63
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(InternalCheckbox, {
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
}
|
|
62
67
|
};
|
|
63
68
|
Checkbox.ReadPretty = ReadPretty;
|
|
64
69
|
Checkbox.__ANT_CHECKBOX = true;
|
|
@@ -40,6 +40,10 @@ DatePicker.RangePicker = function(props) {
|
|
|
40
40
|
(0, __WEBPACK_EXTERNAL_MODULE_dayjs__["default"])(originValue[1].value).add(-1, 'd').toISOString()
|
|
41
41
|
];
|
|
42
42
|
props.onChange = (value)=>{
|
|
43
|
+
if (!value || !value.length) {
|
|
44
|
+
originOnChange(null);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
43
47
|
originOnChange([
|
|
44
48
|
{
|
|
45
49
|
value: (0, __WEBPACK_EXTERNAL_MODULE_dayjs__["default"])(value[0]).toISOString(),
|
|
@@ -7,6 +7,8 @@ export declare function useIsAddNewForm(): boolean;
|
|
|
7
7
|
export declare function useIsFormReadPretty(): boolean;
|
|
8
8
|
export declare function useIsFieldReadPretty(): any;
|
|
9
9
|
export declare function useIsAssociationField(): boolean;
|
|
10
|
+
export declare function useIsMultipleSelect(): boolean;
|
|
11
|
+
export declare function useIsMuiltipleAble(): boolean;
|
|
10
12
|
export declare function useIsFileField(): boolean;
|
|
11
13
|
export declare function useFieldMode(): any;
|
|
12
14
|
export declare function useIsSelectFieldMode(): boolean;
|
|
@@ -1149,6 +1149,19 @@ function useIsAssociationField() {
|
|
|
1149
1149
|
].includes(null == collectionField ? void 0 : collectionField.interface);
|
|
1150
1150
|
return isAssociationField;
|
|
1151
1151
|
}
|
|
1152
|
+
function useIsMultipleSelect() {
|
|
1153
|
+
const collectionField = useFormItemCollectionField();
|
|
1154
|
+
const isMultipleSelect = [
|
|
1155
|
+
'select',
|
|
1156
|
+
'radioGroup'
|
|
1157
|
+
].includes(null == collectionField ? void 0 : collectionField.interface);
|
|
1158
|
+
return isMultipleSelect;
|
|
1159
|
+
}
|
|
1160
|
+
function useIsMuiltipleAble() {
|
|
1161
|
+
const isAssociationField = useIsAssociationField();
|
|
1162
|
+
const isMultipleSelect = useIsMultipleSelect();
|
|
1163
|
+
return isAssociationField || isMultipleSelect;
|
|
1164
|
+
}
|
|
1152
1165
|
function useIsFileField() {
|
|
1153
1166
|
const { getCollection } = (0, __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
1154
1167
|
const collectionField = useFormItemCollectionField();
|
|
@@ -1201,4 +1214,4 @@ function useTitleFieldOptions() {
|
|
|
1201
1214
|
});
|
|
1202
1215
|
return options;
|
|
1203
1216
|
}
|
|
1204
|
-
export { formItemSettings, useFieldMode, useIsAddNewForm, useIsAssociationField, useIsFieldReadPretty, useIsFileField, useIsFormReadPretty, useIsSelectFieldMode, useTitleFieldOptions, useValidateSchema };
|
|
1217
|
+
export { formItemSettings, useFieldMode, useIsAddNewForm, useIsAssociationField, useIsFieldReadPretty, useIsFileField, useIsFormReadPretty, useIsMuiltipleAble, useIsMultipleSelect, useIsSelectFieldMode, useTitleFieldOptions, useValidateSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdminMenu: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../index.mjs";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../../index.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__common_sortable_item_DragHandleMenu_mjs__ from "../../common/sortable-item/DragHandleMenu.mjs";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__AdminMenu_style_mjs__ from "./AdminMenu.style.mjs";
|
|
9
|
+
const AdminMenu = (props)=>{
|
|
10
|
+
const { items, onClick } = props;
|
|
11
|
+
const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__AdminMenu_style_mjs__.useStyles)();
|
|
12
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Card, {
|
|
13
|
+
className: styles.adminMenuStyle,
|
|
14
|
+
children: null == items ? void 0 : items.map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(AdminMenuCard, {
|
|
15
|
+
item: item,
|
|
16
|
+
onClick: onClick
|
|
17
|
+
}, item.key))
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const AdminMenuCard = (props)=>{
|
|
21
|
+
const { item, onClick } = props;
|
|
22
|
+
const { icon, field, Designer, schema } = (null == item ? void 0 : item.menu) || {};
|
|
23
|
+
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
24
|
+
const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__AdminMenu_style_mjs__.useStyles)();
|
|
25
|
+
const handleClick = ()=>onClick(item);
|
|
26
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Card.Grid, {
|
|
27
|
+
className: styles.adminMenuCardStyle,
|
|
28
|
+
onClick: handleClick,
|
|
29
|
+
children: item.menu ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaContext.Provider, {
|
|
30
|
+
value: schema,
|
|
31
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.FieldContext.Provider, {
|
|
32
|
+
value: field,
|
|
33
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SortableItem, {
|
|
34
|
+
role: "button",
|
|
35
|
+
"aria-label": t(field.title),
|
|
36
|
+
removeParentsIfNoChildren: false,
|
|
37
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__common_sortable_item_DragHandleMenu_mjs__.DragHandleMenu, {
|
|
38
|
+
className: "drag-handle-menu",
|
|
39
|
+
isAdminMenu: true,
|
|
40
|
+
children: [
|
|
41
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("a", {
|
|
42
|
+
className: "field-link",
|
|
43
|
+
role: "button",
|
|
44
|
+
"aria-label": t(field.title),
|
|
45
|
+
title: t(field.title),
|
|
46
|
+
children: [
|
|
47
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
|
|
48
|
+
className: "icon-wrapper",
|
|
49
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.Icon, {
|
|
50
|
+
type: null != icon ? icon : 'QuestionCircleOutlined'
|
|
51
|
+
})
|
|
52
|
+
}),
|
|
53
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
|
|
54
|
+
className: "field-title",
|
|
55
|
+
children: t(field.title)
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
}),
|
|
59
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Designer, {
|
|
60
|
+
isAdminMenu: true
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
}) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
|
|
67
|
+
children: item.label
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
export { AdminMenu };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ from "antd-style";
|
|
2
|
+
function _tagged_template_literal(strings, raw) {
|
|
3
|
+
if (!raw) raw = strings.slice(0);
|
|
4
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
5
|
+
raw: {
|
|
6
|
+
value: Object.freeze(raw)
|
|
7
|
+
}
|
|
8
|
+
}));
|
|
9
|
+
}
|
|
10
|
+
function _templateObject() {
|
|
11
|
+
const data = _tagged_template_literal([
|
|
12
|
+
"\n border: none;\n border-radius: 8px 8px 8px 8px;\n background: #ffffff;\n box-shadow:\n 0px 4px 8px 0px rgba(0, 5, 26, 0.15),\n 0px 0px 8px 0px rgba(0, 5, 26, 0.05);\n\n .ant-card-body {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n justify-items: center;\n gap: 10px;\n grid-row-gap: 10px;\n }\n\n .ant-card-body::before {\n display: none;\n }\n "
|
|
13
|
+
]);
|
|
14
|
+
_templateObject = function() {
|
|
15
|
+
return data;
|
|
16
|
+
};
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
function _templateObject1() {
|
|
20
|
+
const data = _tagged_template_literal([
|
|
21
|
+
"\n &.ant-card-grid {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 100%;\n height: 5rem;\n color: inherit;\n border: 0;\n border-radius: 8px;\n box-shadow: none;\n\n &:hover {\n background-color: #f4f4f4;\n box-shadow: none;\n }\n }\n\n &.ant-card-grid .ant-btn {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n width: 100%;\n padding: 0;\n border: none;\n box-shadow: none;\n }\n\n .field-link {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n color: inherit;\n\n &:hover {\n color: inherit;\n }\n }\n\n .icon-wrapper {\n font-size: 1.2rem;\n text-align: center;\n margin-bottom: 0.3rem;\n }\n\n .field-title {\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: ",
|
|
22
|
+
";\n }\n\n .tb-sortable-designer {\n width: 100%;\n height: 5rem;\n }\n\n .drag-handle-menu {\n width: 100%;\n height: 100%;\n }\n\n .general-schema-designer {\n position: absolute;\n left: 0;\n bottom: 0;\n\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n\n width: 100%;\n height: 45%;\n border-radius: 1px 1px 8px 8px;\n background: rgba(0, 0, 0, 0.5);\n visibility: hidden;\n }\n\n &.ant-card-grid:hover .general-schema-designer {\n visibility: visible;\n }\n\n .general-schema-designer .anticon-menu {\n padding: 1px;\n border-radius: 2px;\n background-color: #ffffff;\n color: #2f2f2f;\n }\n "
|
|
23
|
+
]);
|
|
24
|
+
_templateObject1 = function() {
|
|
25
|
+
return data;
|
|
26
|
+
};
|
|
27
|
+
return data;
|
|
28
|
+
}
|
|
29
|
+
const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((param)=>{
|
|
30
|
+
let { css, token } = param;
|
|
31
|
+
return {
|
|
32
|
+
adminMenuStyle: css(_templateObject()),
|
|
33
|
+
adminMenuCardStyle: css(_templateObject1(), token.fontSizeSM)
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
export { useStyles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MenuDesigner: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const MenuDesigner: (props: any) => import("react/jsx-runtime").JSX.Element;
|