@tachybase/client 0.23.48 → 1.0.6

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.
Files changed (215) hide show
  1. package/es/api-client/APIClient.d.ts +5 -2
  2. package/es/api-client/APIClient.mjs +93 -49
  3. package/es/api-client/hooks/useRequest.d.ts +2 -0
  4. package/es/application/Application.d.ts +6 -0
  5. package/es/application/Application.mjs +19 -0
  6. package/es/application/CustomRouterContextProvider.d.ts +54 -0
  7. package/es/application/CustomRouterContextProvider.mjs +209 -0
  8. package/es/application/RouterManager.d.ts +8 -3
  9. package/es/application/RouterManager.mjs +48 -15
  10. package/es/application/hooks/index.d.ts +1 -0
  11. package/es/application/hooks/index.mjs +1 -0
  12. package/es/application/hooks/useGlobalVariable.d.ts +1 -0
  13. package/es/application/hooks/useGlobalVariable.mjs +18 -0
  14. package/es/application/schema-initializer/context/index.d.ts +1 -1
  15. package/es/application/schema-settings/hooks/index.d.ts +1 -1
  16. package/es/application/schema-settings/hooks/index.mjs +6 -8
  17. package/es/block-provider/hooks/index.d.ts +2 -0
  18. package/es/block-provider/hooks/index.mjs +29 -22
  19. package/es/built-in/context-menu/ContextMenu.provider.mjs +6 -6
  20. package/es/built-in/context-menu/ContextMenuItemsProps.d.ts +4 -4
  21. package/es/built-in/context-menu/ContextMenuItemsProps.mjs +6 -6
  22. package/es/built-in/context-menu/index.mjs +1 -1
  23. package/es/built-in/context-menu/useContextMenu.d.ts +2 -2
  24. package/es/built-in/index.mjs +8 -0
  25. package/es/built-in/locale/LocalePlugin.mjs +5 -1
  26. package/es/built-in/page-style/PageStyle.provider.mjs +2 -2
  27. package/es/built-in/system-settings/SystemSettingsProvider.d.ts +2 -3
  28. package/es/built-in/system-settings/SystemSettingsProvider.mjs +4 -3
  29. package/es/built-in/system-settings/SystemSettingsShortcut.mjs +11 -8
  30. package/es/collection-manager/Configuration/AddCollectionAction.mjs +12 -2
  31. package/es/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.d.ts +2 -0
  32. package/es/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.mjs +255 -0
  33. package/es/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.d.ts +89 -0
  34. package/es/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.mjs +96 -0
  35. package/es/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.d.ts +3 -0
  36. package/es/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.mjs +47 -0
  37. package/es/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.d.ts +3 -0
  38. package/es/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.mjs +44 -0
  39. package/es/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.d.ts +1 -0
  40. package/es/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.mjs +380 -0
  41. package/es/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.d.ts +8 -0
  42. package/es/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.mjs +4 -0
  43. package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.d.ts +1 -0
  44. package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +187 -0
  45. package/es/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.d.ts +1 -0
  46. package/es/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.mjs +30 -0
  47. package/es/collection-manager/collectionPlugin.mjs +3 -1
  48. package/es/collection-manager/templates/import.mjs +1 -1
  49. package/es/collection-manager/templates/sql.d.ts +1 -1
  50. package/es/collection-manager/templates/view.d.ts +1 -1
  51. package/es/collection-manager/templates/xlsx.d.ts +11 -0
  52. package/es/collection-manager/templates/xlsx.mjs +19 -0
  53. package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
  54. package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +18 -0
  55. package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.d.ts +8 -1
  56. package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +20 -0
  57. package/es/data-source/commonsSettingsItem/fieldComponent.mjs +3 -1
  58. package/es/data-source/data-source/DataSource.d.ts +1 -1
  59. package/es/filter-provider/utils.mjs +6 -0
  60. package/es/i18n/i18n.mjs +7 -12
  61. package/es/modules/actions/delete/deleteActionSettings.mjs +10 -0
  62. package/es/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +1 -1
  63. package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +9 -4
  64. package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +6 -4
  65. package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +4 -0
  66. package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +44 -0
  67. package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +4 -0
  68. package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +9 -0
  69. package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +0 -4
  70. package/es/modules/fields/component/SubTable/secondLevelSelect.d.ts +11 -0
  71. package/es/modules/fields/component/SubTable/secondLevelSelect.mjs +102 -0
  72. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +79 -41
  73. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +103 -100
  74. package/es/powered-by/index.mjs +4 -7
  75. package/es/schema-component/antd/action/Action.Designer.mjs +43 -5
  76. package/es/schema-component/antd/action/Action.Modal.mjs +19 -31
  77. package/es/schema-component/antd/action/Action.Modal.style.d.ts +4 -0
  78. package/es/schema-component/antd/action/Action.Modal.style.mjs +35 -0
  79. package/es/schema-component/antd/action/Action.mjs +1 -3
  80. package/es/schema-component/antd/action/utils.d.ts +1 -1
  81. package/es/schema-component/antd/action/utils.mjs +70 -70
  82. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -1
  83. package/es/schema-component/antd/checkbox/Checkbox.mjs +9 -2
  84. package/es/schema-component/antd/index.d.ts +1 -0
  85. package/es/schema-component/antd/index.mjs +1 -0
  86. package/es/schema-component/antd/media-card/MediaCard.d.ts +11 -0
  87. package/es/schema-component/antd/media-card/MediaCard.mjs +35 -0
  88. package/es/schema-component/antd/media-card/index.d.ts +1 -0
  89. package/es/schema-component/antd/media-card/index.mjs +1 -0
  90. package/es/schema-component/antd/media-card/style.d.ts +3 -0
  91. package/es/schema-component/antd/media-card/style.mjs +25 -0
  92. package/es/schema-component/antd/page/Page.d.ts +1 -5
  93. package/es/schema-component/antd/page/Page.mjs +235 -144
  94. package/es/schema-component/antd/page/Page.style.d.ts +5 -0
  95. package/es/schema-component/antd/page/Page.style.mjs +45 -0
  96. package/es/schema-component/antd/page/PageDesigner.d.ts +3 -0
  97. package/es/schema-component/antd/page/PageDesigner.mjs +28 -0
  98. package/es/schema-component/antd/page/PageTabDesigner.d.ts +0 -3
  99. package/es/schema-component/antd/page/PageTabDesigner.mjs +3 -50
  100. package/es/schema-component/antd/page/style.d.ts +1 -1
  101. package/es/schema-component/antd/page/style.mjs +3 -13
  102. package/es/schema-component/antd/password/Password.d.ts +1 -1
  103. package/es/schema-component/antd/password/utils.d.ts +1 -1
  104. package/es/schema-component/antd/scroll-area/ScrollArea.d.ts +1 -1
  105. package/es/schema-component/antd/scroll-area/ScrollArea.mjs +2 -1
  106. package/es/schema-component/antd/variable/TextArea.mjs +1 -1
  107. package/es/schema-component/antd/variable/TextAreaWithGlobalScope.d.ts +13 -0
  108. package/es/schema-component/antd/variable/TextAreaWithGlobalScope.mjs +59 -0
  109. package/es/schema-component/antd/variable/index.d.ts +1 -0
  110. package/es/schema-component/antd/variable/index.mjs +3 -0
  111. package/es/schema-component/common/dnd-context/index.mjs +1 -7
  112. package/es/schema-component/common/sortable-item/DragHandlePageTab.d.ts +1 -0
  113. package/es/schema-component/common/sortable-item/DragHandlePageTab.mjs +71 -0
  114. package/es/schema-component/common/sortable-item/DragHandlePageTab.style.d.ts +3 -0
  115. package/es/schema-component/common/sortable-item/DragHandlePageTab.style.mjs +25 -0
  116. package/es/schema-items/GeneralSettings.mjs +5 -0
  117. package/es/schema-settings/EditCustomDefaultValue.mjs +1 -1
  118. package/es/schema-settings/SchemaSettings.mjs +1 -1
  119. package/es/schema-settings/SchemaSettingsDefaultValue.mjs +2 -0
  120. package/es/schema-settings/utils/createModalSettingsItem.d.ts +26 -0
  121. package/es/schema-settings/utils/createModalSettingsItem.mjs +46 -0
  122. package/es/schema-settings/utils/createSelectSettingsItem.d.ts +25 -0
  123. package/es/schema-settings/utils/createSelectSettingsItem.mjs +40 -0
  124. package/es/schema-settings/utils/createSwitchSettingsItem.d.ts +21 -0
  125. package/es/schema-settings/utils/createSwitchSettingsItem.mjs +38 -0
  126. package/es/schema-settings/utils/createTextSettingsItem.d.ts +9 -0
  127. package/es/schema-settings/utils/createTextSettingsItem.mjs +21 -0
  128. package/es/schema-settings/utils/index.d.ts +4 -0
  129. package/es/schema-settings/utils/index.mjs +4 -0
  130. package/es/schema-settings/utils/util.d.ts +12 -0
  131. package/es/schema-settings/utils/util.mjs +24 -0
  132. package/es/user/CurrentUserProvider.mjs +6 -3
  133. package/lib/api-client/APIClient.js +93 -49
  134. package/lib/application/Application.js +19 -0
  135. package/lib/application/CustomRouterContextProvider.js +276 -0
  136. package/lib/application/RouterManager.js +49 -15
  137. package/lib/application/hooks/index.js +9 -0
  138. package/lib/application/hooks/useGlobalVariable.js +52 -0
  139. package/lib/application/schema-initializer/hooks/index.js +2 -2
  140. package/lib/application/schema-settings/hooks/index.js +6 -8
  141. package/lib/block-provider/hooks/index.js +80 -59
  142. package/lib/built-in/context-menu/ContextMenu.provider.js +6 -6
  143. package/lib/built-in/context-menu/ContextMenuItemsProps.js +6 -6
  144. package/lib/built-in/context-menu/index.js +1 -1
  145. package/lib/built-in/index.js +8 -0
  146. package/lib/built-in/locale/LocalePlugin.js +5 -1
  147. package/lib/built-in/page-style/PageStyle.provider.js +2 -2
  148. package/lib/built-in/system-settings/SystemSettingsProvider.js +4 -3
  149. package/lib/built-in/system-settings/SystemSettingsShortcut.js +11 -8
  150. package/lib/collection-manager/Configuration/AddCollectionAction.js +12 -2
  151. package/lib/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.js +304 -0
  152. package/lib/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.js +130 -0
  153. package/lib/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.js +81 -0
  154. package/lib/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.js +78 -0
  155. package/lib/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.js +414 -0
  156. package/lib/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.js +53 -0
  157. package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +235 -0
  158. package/lib/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.js +64 -0
  159. package/lib/collection-manager/collectionPlugin.js +3 -1
  160. package/lib/collection-manager/templates/import.js +1 -1
  161. package/lib/collection-manager/templates/xlsx.js +53 -0
  162. package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +18 -0
  163. package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.js +20 -0
  164. package/lib/data-source/commonsSettingsItem/fieldComponent.js +3 -1
  165. package/lib/filter-provider/utils.js +6 -0
  166. package/lib/i18n/i18n.js +7 -12
  167. package/lib/locale/en_US.js +1 -0
  168. package/lib/locale/zh-CN.js +14 -2
  169. package/lib/modules/actions/delete/deleteActionSettings.js +10 -0
  170. package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.js +1 -1
  171. package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +9 -4
  172. package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +6 -4
  173. package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +4 -0
  174. package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +44 -0
  175. package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +4 -0
  176. package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +9 -0
  177. package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +0 -4
  178. package/lib/modules/fields/component/SubTable/secondLevelSelect.js +136 -0
  179. package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +104 -103
  180. package/lib/powered-by/index.js +4 -7
  181. package/lib/schema-component/antd/action/Action.Designer.js +43 -5
  182. package/lib/schema-component/antd/action/Action.Modal.js +19 -31
  183. package/lib/schema-component/antd/action/Action.Modal.style.js +69 -0
  184. package/lib/schema-component/antd/action/Action.js +1 -3
  185. package/lib/schema-component/antd/action/utils.js +70 -70
  186. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -1
  187. package/lib/schema-component/antd/checkbox/Checkbox.js +9 -2
  188. package/lib/schema-component/antd/index.js +18 -4
  189. package/lib/schema-component/antd/media-card/MediaCard.js +69 -0
  190. package/lib/schema-component/antd/media-card/index.js +65 -0
  191. package/lib/schema-component/antd/media-card/style.js +59 -0
  192. package/lib/schema-component/antd/page/Page.js +235 -144
  193. package/lib/schema-component/antd/page/Page.style.js +79 -0
  194. package/lib/schema-component/antd/page/PageDesigner.js +62 -0
  195. package/lib/schema-component/antd/page/PageTabDesigner.js +2 -50
  196. package/lib/schema-component/antd/page/style.js +3 -13
  197. package/lib/schema-component/antd/scroll-area/ScrollArea.js +2 -1
  198. package/lib/schema-component/antd/variable/TextArea.js +1 -1
  199. package/lib/schema-component/antd/variable/TextAreaWithGlobalScope.js +94 -0
  200. package/lib/schema-component/antd/variable/index.js +13 -1
  201. package/lib/schema-component/common/dnd-context/index.js +1 -7
  202. package/lib/schema-component/common/sortable-item/DragHandlePageTab.js +105 -0
  203. package/lib/schema-component/common/sortable-item/DragHandlePageTab.style.js +59 -0
  204. package/lib/schema-items/GeneralSettings.js +5 -0
  205. package/lib/schema-settings/EditCustomDefaultValue.js +1 -1
  206. package/lib/schema-settings/SchemaSettings.js +1 -1
  207. package/lib/schema-settings/SchemaSettingsDefaultValue.js +2 -0
  208. package/lib/schema-settings/utils/createModalSettingsItem.js +94 -0
  209. package/lib/schema-settings/utils/createSelectSettingsItem.js +88 -0
  210. package/lib/schema-settings/utils/createSwitchSettingsItem.js +86 -0
  211. package/lib/schema-settings/utils/createTextSettingsItem.js +55 -0
  212. package/lib/schema-settings/utils/index.js +92 -0
  213. package/lib/schema-settings/utils/util.js +74 -0
  214. package/lib/user/CurrentUserProvider.js +6 -3
  215. package/package.json +7 -7
@@ -1,5 +1,6 @@
1
1
  import { ISchema } from '@tachybase/schema';
2
2
  import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings';
3
+ import { FieldNames } from '../../../../schema-component';
3
4
  export declare const setDefaultSortingRules: {
4
5
  name: string;
5
6
  type: string;
@@ -29,52 +30,89 @@ export declare const allowAddNewData: {
29
30
  onChange(value: any): void;
30
31
  };
31
32
  };
32
- export declare const isQuickAddTabs: {
33
+ export declare const clickToSelect: {
33
34
  name: string;
34
35
  type: string;
35
36
  useVisible(): boolean;
36
37
  useComponentProps(): {
38
+ components: {
39
+ Switch: import("react").ForwardRefExoticComponent<Omit<import("antd").SwitchProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
40
+ SecondLevelSelect: import("react").ForwardRefExoticComponent<import("antd").SelectProps<any, any> & {
41
+ objectValue?: boolean;
42
+ onChange?: (v: any) => void;
43
+ multiple: boolean;
44
+ rawOptions: any[];
45
+ fieldNames: FieldNames;
46
+ firstLevelValue: string;
47
+ collectionField: string;
48
+ } & import("react").RefAttributes<never>>;
49
+ };
37
50
  title: string;
38
- checked: any;
39
- onChange(value: any): void;
40
- };
41
- };
42
- export declare const setQuickAddTabs: {
43
- name: string;
44
- type: string;
45
- useComponentProps(): {
46
- title: string;
47
- options: {
48
- label: any;
49
- value: any;
50
- name?: any;
51
- collectionName?: string;
52
- sourceKey?: string;
53
- uiSchema?: any;
54
- target?: string;
55
- }[];
56
- value: any;
57
- onChange(mode: any): void;
58
- };
59
- useVisible(): any;
60
- };
61
- export declare const setQuickAddParentTabs: {
62
- name: string;
63
- type: string;
64
- useComponentProps(): {
65
- title: string;
66
- options: {
67
- label: any;
68
- value: any;
69
- name?: any;
70
- collectionName?: string;
71
- sourceKey?: string;
72
- uiSchema?: any;
73
- target?: string;
74
- }[];
75
- value: any;
76
- onChange(mode: any): void;
51
+ schema: {
52
+ type: string;
53
+ title: string;
54
+ properties: {
55
+ isquickaddtabs: {
56
+ title: string;
57
+ type: string;
58
+ default: any;
59
+ 'x-decorator': string;
60
+ 'x-component': string;
61
+ 'x-component-props': {};
62
+ };
63
+ firstLevelselection: {
64
+ title: string;
65
+ default: any;
66
+ 'x-decorator': string;
67
+ 'x-component': string;
68
+ enum: {
69
+ label: any;
70
+ value: any;
71
+ name?: any;
72
+ collectionName?: string;
73
+ sourceKey?: string;
74
+ uiSchema?: any;
75
+ target?: string;
76
+ }[];
77
+ 'x-reactions': {
78
+ dependencies: string[];
79
+ fulfill: {
80
+ state: {
81
+ visible: string;
82
+ };
83
+ };
84
+ }[];
85
+ 'x-component-props': {
86
+ onChange(value: any): void;
87
+ };
88
+ };
89
+ secondLevelselection: {
90
+ title: string;
91
+ default: any;
92
+ 'x-decorator': string;
93
+ 'x-component': string;
94
+ 'x-reactions': {
95
+ dependencies: string[];
96
+ fulfill: {
97
+ state: {
98
+ visible: string;
99
+ };
100
+ schema: {
101
+ 'x-component-props': {
102
+ firstLevelValue: string;
103
+ collectionField: any;
104
+ };
105
+ };
106
+ };
107
+ }[];
108
+ };
109
+ };
110
+ };
111
+ onSubmit: ({ isquickaddtabs, firstLevelselection, secondLevelselection }: {
112
+ isquickaddtabs: any;
113
+ firstLevelselection: any;
114
+ secondLevelselection: any;
115
+ }) => Promise<void>;
77
116
  };
78
- useVisible(): boolean;
79
117
  };
80
118
  export declare const subTablePopoverComponentFieldSettings: SchemaSettings<{}>;
@@ -1,3 +1,4 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
1
2
  import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/components";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
@@ -8,6 +9,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__ from "../../../..
8
9
  import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../../../schema-component/index.mjs";
9
10
  import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_field_util_mjs__ from "../../../../schema-component/antd/association-field/util.mjs";
10
11
  import * as __WEBPACK_EXTERNAL_MODULE__schema_component_antd_form_item_index_mjs__ from "../../../../schema-component/antd/form-item/index.mjs";
12
+ import * as __WEBPACK_EXTERNAL_MODULE__secondLevelSelect_mjs__ from "./secondLevelSelect.mjs";
11
13
  const fieldComponent = {
12
14
  name: 'fieldComponent',
13
15
  type: 'select',
@@ -233,51 +235,24 @@ const allowAddNewData = {
233
235
  };
234
236
  }
235
237
  };
236
- const isQuickAddTabs = {
237
- name: 'isquickaddtabs',
238
- type: 'switch',
238
+ const clickToSelect = {
239
+ name: 'clicktoselect',
240
+ type: 'modal',
239
241
  useVisible () {
240
242
  const readPretty = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_form_item_index_mjs__.useIsFieldReadPretty)();
241
243
  const isAssociationField = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_form_item_index_mjs__.useIsAssociationField)();
242
244
  return !readPretty && isAssociationField;
243
245
  },
244
246
  useComponentProps () {
245
- var _fieldSchema_xcomponentprops;
247
+ var _fieldSchema_xcomponentprops_quickAddField, _fieldSchema_xcomponentprops_quickAddParentCollection, _fieldSchema_xcomponentprops, _fieldSchema_xcomponentprops1;
246
248
  const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
247
249
  const field = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
248
250
  const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
249
251
  const { dn, refresh } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useDesignable)();
250
- return {
251
- title: t('Is Quick Add Tabs'),
252
- checked: (null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops.isQuickAdd) || false,
253
- onChange (value) {
254
- const schema = {
255
- ['x-uid']: fieldSchema['x-uid']
256
- };
257
- field.componentProps['isQuickAdd'] = value;
258
- fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
259
- fieldSchema['x-component-props']['isQuickAdd'] = value;
260
- schema['x-component-props'] = fieldSchema['x-component-props'];
261
- dn.emit('patch', {
262
- schema
263
- });
264
- refresh();
265
- }
266
- };
267
- }
268
- };
269
- const setQuickAddTabs = {
270
- name: 'setquickaddtabs',
271
- type: 'select',
272
- useComponentProps () {
273
- const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
274
- const field = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
275
252
  const compile = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useCompile)();
276
- const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
277
253
  const cm = (0, __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionManager)();
254
+ const [firstLevelValue, setFirstLevelValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)((null === (_fieldSchema_xcomponentprops_quickAddField = fieldSchema['x-component-props']['quickAddField']) || void 0 === _fieldSchema_xcomponentprops_quickAddField ? void 0 : _fieldSchema_xcomponentprops_quickAddField.value) || 'none');
278
255
  const options = cm.getCollection(fieldSchema['x-collection-field']);
279
- const defVal = fieldSchema['x-component-props']['quickAddField'] || 'none';
280
- const { dn } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useDesignable)();
281
256
  const isAddNewForm = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useIsAddNewForm)();
282
257
  const fieldTabsOptions = options.fields.map((item)=>{
283
258
  if ('m2o' === item.interface || 'select' === item.interface) {
@@ -293,84 +268,117 @@ const setQuickAddTabs = {
293
268
  label: 'none',
294
269
  value: 'none'
295
270
  });
296
- return {
297
- title: t('Set Quick Add Tabs'),
298
- options: fieldTabsOptions,
299
- value: defVal,
300
- onChange (mode) {
301
- const schema = {
302
- ['x-uid']: fieldSchema['x-uid']
303
- };
304
- fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
305
- fieldSchema['x-component-props']['quickAddField'] = {
306
- fieldInterface: fieldTabsOptions.find((item)=>item.value === mode)['interface'] || 'none',
307
- value: mode
308
- };
309
- schema['x-component-props'] = fieldSchema['x-component-props'];
310
- field.componentProps = field.componentProps || {};
311
- field.componentProps['quickAddField'] = fieldSchema['x-component-props']['quickAddField'];
312
- if ((0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_field_util_mjs__.isSubMode)(fieldSchema) && isAddNewForm) {
313
- schema.default = null;
314
- fieldSchema.default = null;
315
- field.setInitialValue(null);
316
- field.setValue(null);
317
- }
318
- dn.emit('patch', {
319
- schema
320
- });
321
- dn.refresh();
322
- }
323
- };
324
- },
325
- useVisible () {
326
- const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
327
- return fieldSchema['x-component-props']['isQuickAdd'];
328
- }
329
- };
330
- const setQuickAddParentTabs = {
331
- name: 'setquickaddparenttabs',
332
- type: 'select',
333
- useComponentProps () {
334
- var _fieldSchema_xcomponentprops, _fieldSchema_xcomponentprops_quickAddParentCollection, _fieldSchema_xcomponentprops1;
335
- const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
336
- const field = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
337
- const compile = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useCompile)();
338
- const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
339
- const cm = (0, __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.useCollectionManager)();
340
- const { value: quickField } = (null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops['quickAddField']) || {};
341
- const options = cm.getCollectionFields("".concat(fieldSchema['x-collection-field'], ".").concat(quickField));
342
- const { dn } = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useDesignable)();
343
- const isAddNewForm = (0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useIsAddNewForm)();
344
- const fieldTabsOptions = options.map((item)=>{
271
+ const Parentoptions = cm.getCollectionFields("".concat(fieldSchema['x-collection-field'], ".").concat(firstLevelValue));
272
+ const fieldParentTabsOptions = Parentoptions.map((item)=>{
345
273
  if ('m2o' === item.interface) return {
346
274
  ...item,
347
275
  label: compile(item.uiSchema.title),
348
276
  value: item.name
349
277
  };
350
278
  }).filter(Boolean);
351
- fieldTabsOptions.unshift({
279
+ fieldParentTabsOptions.unshift({
352
280
  label: t('none'),
353
281
  value: 'none'
354
282
  });
355
- const defValue = (null === (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops1 ? void 0 : null === (_fieldSchema_xcomponentprops_quickAddParentCollection = _fieldSchema_xcomponentprops1['quickAddParentCollection']) || void 0 === _fieldSchema_xcomponentprops_quickAddParentCollection ? void 0 : _fieldSchema_xcomponentprops_quickAddParentCollection.value) || 'none';
283
+ const defParentVal = (null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : null === (_fieldSchema_xcomponentprops_quickAddParentCollection = _fieldSchema_xcomponentprops['quickAddParentCollection']) || void 0 === _fieldSchema_xcomponentprops_quickAddParentCollection ? void 0 : _fieldSchema_xcomponentprops_quickAddParentCollection.value) || 'none';
284
+ const schema = {
285
+ type: 'object',
286
+ title: t('Click to select'),
287
+ properties: {
288
+ isquickaddtabs: {
289
+ title: t('Enable quick create'),
290
+ type: 'boolean',
291
+ default: (null === (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops1 ? void 0 : _fieldSchema_xcomponentprops1.isQuickAdd) || false,
292
+ 'x-decorator': 'FormItem',
293
+ 'x-component': 'Switch',
294
+ 'x-component-props': {}
295
+ },
296
+ firstLevelselection: {
297
+ title: t('Set Quick Add Tabs'),
298
+ default: firstLevelValue,
299
+ 'x-decorator': 'FormItem',
300
+ 'x-component': 'Select',
301
+ enum: fieldTabsOptions,
302
+ 'x-reactions': [
303
+ {
304
+ dependencies: [
305
+ 'isquickaddtabs'
306
+ ],
307
+ fulfill: {
308
+ state: {
309
+ visible: '{{$deps[0] === true}}'
310
+ }
311
+ }
312
+ }
313
+ ],
314
+ 'x-component-props': {
315
+ onChange (value) {
316
+ setFirstLevelValue(value);
317
+ }
318
+ }
319
+ },
320
+ secondLevelselection: {
321
+ title: t('Set Quick Add Parent Tabs'),
322
+ default: defParentVal,
323
+ 'x-decorator': 'FormItem',
324
+ 'x-component': 'SecondLevelSelect',
325
+ 'x-reactions': [
326
+ {
327
+ dependencies: [
328
+ 'firstLevelselection',
329
+ 'isquickaddtabs'
330
+ ],
331
+ fulfill: {
332
+ state: {
333
+ visible: '{{$deps[0] !== "none" && $deps[1] === true}}'
334
+ },
335
+ schema: {
336
+ 'x-component-props': {
337
+ firstLevelValue: '{{$deps[0]}}',
338
+ collectionField: fieldSchema['x-collection-field']
339
+ }
340
+ }
341
+ }
342
+ }
343
+ ]
344
+ }
345
+ }
346
+ };
356
347
  return {
357
- title: t('Set Quick Add Parent Tabs'),
358
- options: fieldTabsOptions,
359
- value: defValue,
360
- onChange (mode) {
348
+ components: {
349
+ Switch: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.Switch,
350
+ SecondLevelSelect: __WEBPACK_EXTERNAL_MODULE__secondLevelSelect_mjs__.SecondLevelSelect
351
+ },
352
+ title: t('Quick create'),
353
+ schema,
354
+ onSubmit: async (param)=>{
355
+ let { isquickaddtabs, firstLevelselection, secondLevelselection } = param;
356
+ var _fieldTabsOptions_find;
361
357
  const schema = {
362
358
  ['x-uid']: fieldSchema['x-uid']
363
359
  };
360
+ field.componentProps['isQuickAdd'] = isquickaddtabs;
361
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
362
+ fieldSchema['x-component-props']['isQuickAdd'] = isquickaddtabs;
363
+ schema['x-component-props'] = fieldSchema['x-component-props'];
364
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
365
+ fieldSchema['x-component-props']['quickAddField'] = {
366
+ fieldInterface: (null === (_fieldTabsOptions_find = fieldTabsOptions.find((item)=>item.value === firstLevelselection)) || void 0 === _fieldTabsOptions_find ? void 0 : _fieldTabsOptions_find['interface']) || 'none',
367
+ value: firstLevelselection
368
+ };
369
+ schema['x-component-props'] = fieldSchema['x-component-props'];
370
+ field.componentProps = field.componentProps || {};
371
+ field.componentProps['quickAddField'] = fieldSchema['x-component-props']['quickAddField'];
364
372
  fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
365
373
  fieldSchema['x-component-props']['quickAddParentCollection'] = {
366
- collectionField: "".concat(fieldSchema['x-collection-field'], ".").concat(quickField, ".").concat(mode),
367
- value: mode
374
+ collectionField: "".concat(fieldSchema['x-collection-field'], ".").concat(firstLevelselection, ".").concat(secondLevelselection),
375
+ value: secondLevelselection
368
376
  };
369
377
  schema['x-component-props'] = fieldSchema['x-component-props'];
370
378
  field.componentProps = field.componentProps || {};
371
379
  field.componentProps['quickAddParentCollection'] = {
372
- collectionField: "".concat(fieldSchema['x-collection-field'], ".").concat(quickField, ".").concat(mode),
373
- value: mode
380
+ collectionField: "".concat(fieldSchema['x-collection-field'], ".").concat(firstLevelselection, ".").concat(secondLevelselection),
381
+ value: secondLevelselection
374
382
  };
375
383
  if ((0, __WEBPACK_EXTERNAL_MODULE__schema_component_antd_association_field_util_mjs__.isSubMode)(fieldSchema) && isAddNewForm) {
376
384
  schema.default = null;
@@ -379,15 +387,12 @@ const setQuickAddParentTabs = {
379
387
  field.setValue(null);
380
388
  }
381
389
  dn.emit('patch', {
382
- schema
390
+ schema: schema
383
391
  });
392
+ refresh();
384
393
  dn.refresh();
385
394
  }
386
395
  };
387
- },
388
- useVisible () {
389
- const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
390
- return fieldSchema['x-component-props']['isQuickAdd'] && fieldSchema['x-component-props']['quickAddField'] && 'none' !== fieldSchema['x-component-props']['quickAddField'];
391
396
  }
392
397
  };
393
398
  const subTablePopoverComponentFieldSettings = new __WEBPACK_EXTERNAL_MODULE__application_schema_settings_SchemaSettings_mjs__.SchemaSettings({
@@ -397,9 +402,7 @@ const subTablePopoverComponentFieldSettings = new __WEBPACK_EXTERNAL_MODULE__app
397
402
  allowAddNewData,
398
403
  allowSelectExistingRecord,
399
404
  setDefaultSortingRules,
400
- isQuickAddTabs,
401
- setQuickAddTabs,
402
- setQuickAddParentTabs
405
+ clickToSelect
403
406
  ]
404
407
  });
405
- export { allowAddNewData, isQuickAddTabs, setDefaultSortingRules, setQuickAddParentTabs, setQuickAddTabs, subTablePopoverComponentFieldSettings };
408
+ export { allowAddNewData, clickToSelect, setDefaultSortingRules, subTablePopoverComponentFieldSettings };
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
2
- import "react";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__style_index_mjs__ from "../style/index.mjs";
4
4
  function _tagged_template_literal(strings, raw) {
5
5
  if (!raw) raw = strings.slice(0);
@@ -31,13 +31,10 @@ const PoweredBy = ()=>{
31
31
  const { styles } = useStyles();
32
32
  const date = new Date();
33
33
  const year = date.getFullYear();
34
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
34
+ const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
35
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
35
36
  className: styles.powerBy,
36
- children: [
37
- "\xa92023-",
38
- year,
39
- " TachyBase Team"
40
- ]
37
+ children: "\xa92023-".concat(year, " ").concat(t('TachyBase Team'))
41
38
  });
42
39
  };
43
40
  export { PoweredBy };
@@ -204,7 +204,7 @@ function AfterSuccess() {
204
204
  const openMode = findSchema(ctx.fieldSchema);
205
205
  const component = fieldSchema.parent.parent['x-component'];
206
206
  const schema = {
207
- ...__WEBPACK_EXTERNAL_MODULE__utils_mjs__.afterSuccessSchema
207
+ ...(0, __WEBPACK_EXTERNAL_MODULE__utils_mjs__.afterSuccessSchema)(t)
208
208
  };
209
209
  if ((!openMode || 'page' === openMode) && component.includes('Form') || !component.includes('Form')) delete schema.properties.popupClose;
210
210
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettings_mjs__.SchemaSettingsModalItem, {
@@ -312,7 +312,10 @@ function WorkflowSelectComponent(param) {
312
312
  'config.collection': noCollection ? void 0 : workflowCollection,
313
313
  sync: void 0 === props.filterSync ? void 0 : props.filterSync,
314
314
  key: void 0 === props.filterKey ? void 0 : props.filterKey
315
- }
315
+ },
316
+ sort: [
317
+ '-updatedAt'
318
+ ]
316
319
  }
317
320
  },
318
321
  optionFilter: optionFilter,
@@ -348,19 +351,53 @@ function WorkflowConfig() {
348
351
  const formAction = null == formBlock ? void 0 : formBlock.type;
349
352
  const buttonAction = fieldSchema['x-action'];
350
353
  const description = {
351
- submit: t('Workflow will be triggered before or after submitting succeeded based on workflow type.', {
354
+ submit: t('Workflow will be triggered before or after submitting succeeded.', {
352
355
  ns: 'workflow'
353
356
  }),
354
- 'customize:save': t('Workflow will be triggered before or after submitting succeeded based on workflow type.', {
357
+ 'customize:save': t('Workflow will be triggered before or after submitting succeeded.', {
355
358
  ns: 'workflow'
356
359
  }),
357
360
  'customize:triggerWorkflows': t('Workflow will be triggered directly once the button clicked, without data saving.', {
358
361
  ns: 'workflow'
359
362
  }),
360
- destroy: t('Workflow will be triggered before deleting succeeded.', {
363
+ destroy: t('Workflow will be triggered before or after submitting succeeded.', {
361
364
  ns: 'workflow'
362
365
  })
363
366
  }[null == fieldSchema ? void 0 : fieldSchema['x-action']];
367
+ let orderColumn = {};
368
+ if ([
369
+ 'submit',
370
+ 'customize:save',
371
+ 'destroy'
372
+ ].includes(null == fieldSchema ? void 0 : fieldSchema['x-action'])) orderColumn = {
373
+ order: {
374
+ type: 'void',
375
+ 'x-component': 'ArrayTable.Column',
376
+ 'x-component-props': {
377
+ title: t('Sequentially', {
378
+ ns: 'workflow'
379
+ })
380
+ },
381
+ properties: {
382
+ order: {
383
+ type: 'string',
384
+ 'x-decorator': 'FormItem',
385
+ 'x-component': 'Select',
386
+ default: 'after',
387
+ enum: [
388
+ {
389
+ label: t('After'),
390
+ value: 'after'
391
+ },
392
+ {
393
+ label: t('Before'),
394
+ value: 'before'
395
+ }
396
+ ]
397
+ }
398
+ }
399
+ }
400
+ };
364
401
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettings_mjs__.SchemaSettingsActionModalItem, {
365
402
  title: t('Bind workflows', {
366
403
  ns: 'workflow'
@@ -461,6 +498,7 @@ function WorkflowConfig() {
461
498
  }
462
499
  }
463
500
  },
501
+ ...orderColumn,
464
502
  operations: {
465
503
  type: 'void',
466
504
  'x-component': 'ArrayTable.Column',
@@ -4,9 +4,9 @@ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schem
4
4
  import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE__emotion_css__ from "@emotion/css";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
7
- import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ from "antd-style";
8
7
  import * as __WEBPACK_EXTERNAL_MODULE_classnames__ from "classnames";
9
8
  import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "./index.mjs";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__Action_Modal_style_mjs__ from "./Action.Modal.style.mjs";
10
10
  import "./hooks/useSetAriaLabelForModal.mjs";
11
11
  function _tagged_template_literal(strings, raw) {
12
12
  if (!raw) raw = strings.slice(0);
@@ -18,7 +18,7 @@ function _tagged_template_literal(strings, raw) {
18
18
  }
19
19
  function _templateObject() {
20
20
  const data = _tagged_template_literal([
21
- "\n &.tb-action-popup {\n .ant-modal-header {\n // TODO: theme variables\n margin-top: -20px;\n margin-left: -24px;\n margin-right: -24px;\n padding-top: 20px;\n padding-left: 24px;\n padding-right: 24px;\n padding-bottom: 20px;\n }\n .ant-modal-content {\n background: var(--tb-box-bg);\n }\n }\n "
21
+ "\n background: none;\n border: none;\n "
22
22
  ]);
23
23
  _templateObject = function() {
24
24
  return data;
@@ -26,29 +26,14 @@ function _templateObject() {
26
26
  return data;
27
27
  }
28
28
  function _templateObject1() {
29
- const data = _tagged_template_literal([
30
- "\n background: none;\n border: none;\n "
31
- ]);
32
- _templateObject1 = function() {
33
- return data;
34
- };
35
- return data;
36
- }
37
- function _templateObject2() {
38
29
  const data = _tagged_template_literal([
39
30
  "\n background: none;\n border: none;\n "
40
31
  ]);
41
- _templateObject2 = function() {
32
+ _templateObject1 = function() {
42
33
  return data;
43
34
  };
44
35
  return data;
45
36
  }
46
- const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((param)=>{
47
- let { css } = param;
48
- return {
49
- container: css(_templateObject())
50
- };
51
- });
52
37
  const openSizeWidthMap = new Map([
53
38
  [
54
39
  'small',
@@ -65,7 +50,7 @@ const openSizeWidthMap = new Map([
65
50
  ]);
66
51
  const ActionModal = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>{
67
52
  const { footerNodeName = 'Action.Modal.Footer', width, ...others } = props;
68
- const { styles } = useStyles();
53
+ const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__Action_Modal_style_mjs__.useStyles)();
69
54
  const { visible, setVisible, openSize = 'middle', modalProps } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useActionContext)();
70
55
  const actualWidth = null != width ? width : openSizeWidthMap.get(openSize);
71
56
  const schema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
@@ -75,6 +60,11 @@ const ActionModal = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)(
75
60
  return buf;
76
61
  });
77
62
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Modal, {
63
+ className: (0, __WEBPACK_EXTERNAL_MODULE_classnames__["default"])(others.className, null == modalProps ? void 0 : modalProps.className, styles.container, 'amplifier-block'),
64
+ style: {
65
+ ...null == modalProps ? void 0 : modalProps.style,
66
+ ...null == others ? void 0 : others.style
67
+ },
78
68
  width: actualWidth,
79
69
  title: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
80
70
  style: {
@@ -93,7 +83,7 @@ const ActionModal = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)(
93
83
  /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
94
84
  type: "text",
95
85
  icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.CloseOutlined, {}),
96
- className: (0, __WEBPACK_EXTERNAL_MODULE__emotion_css__.css)(_templateObject1()),
86
+ className: (0, __WEBPACK_EXTERNAL_MODULE__emotion_css__.css)(_templateObject()),
97
87
  onClick: ()=>setVisible(false, true)
98
88
  })
99
89
  ]
@@ -102,25 +92,23 @@ const ActionModal = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)(
102
92
  }),
103
93
  ...others,
104
94
  ...modalProps,
105
- style: {
106
- ...null == modalProps ? void 0 : modalProps.style,
107
- ...null == others ? void 0 : others.style
108
- },
109
95
  destroyOnClose: true,
110
96
  open: visible,
111
97
  closable: false,
112
- className: (0, __WEBPACK_EXTERNAL_MODULE_classnames__["default"])(others.className, null == modalProps ? void 0 : modalProps.className, styles.container, 'amplifier-block'),
113
98
  footer: !!footerSchema && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.RecursionField, {
114
99
  basePath: field.address,
115
100
  schema: schema,
116
101
  onlyRenderProperties: true,
117
102
  filterProperties: (s)=>s['x-component'] === footerNodeName
118
103
  }),
119
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.RecursionField, {
120
- basePath: field.address,
121
- schema: schema,
122
- onlyRenderProperties: true,
123
- filterProperties: (s)=>s['x-component'] !== footerNodeName
104
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
105
+ className: styles.modalClassName,
106
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.RecursionField, {
107
+ basePath: field.address,
108
+ schema: schema,
109
+ onlyRenderProperties: true,
110
+ filterProperties: (s)=>s['x-component'] !== footerNodeName
111
+ })
124
112
  })
125
113
  });
126
114
  }, {
@@ -144,7 +132,7 @@ const Amplifier = ()=>{
144
132
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
145
133
  icon: isAmplifier ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.FullscreenExitOutlined, {}) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.FullscreenOutlined, {}),
146
134
  type: "text",
147
- className: (0, __WEBPACK_EXTERNAL_MODULE__emotion_css__.css)(_templateObject2()),
135
+ className: (0, __WEBPACK_EXTERNAL_MODULE__emotion_css__.css)(_templateObject1()),
148
136
  onClick: (e)=>{
149
137
  const element = e.target.closest('.ant-modal-content');
150
138
  const modal = document.querySelector('.ant-modal');
@@ -0,0 +1,4 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ container: import("antd-style").SerializedStyles;
3
+ modalClassName: import("antd-style").SerializedStyles;
4
+ }>;