@tachybase/client 0.23.40 → 0.23.47

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 (114) hide show
  1. package/es/application/WebSocketClient.mjs +1 -1
  2. package/es/application/schema-settings/SchemaSettingsDefaults.mjs +10 -15
  3. package/es/block-provider/hooks/index.mjs +26 -7
  4. package/es/built-in/acl/Configuration/RolesResourcesActions.d.ts +1 -1
  5. package/es/built-in/acl/Configuration/StrategyActions.d.ts +1 -1
  6. package/es/collection-manager/interfaces/properties/index.mjs +1 -1
  7. package/es/data-source/collection-field/CollectionField.d.ts +1 -1
  8. package/es/data-source/data-source/DataSource.d.ts +3 -0
  9. package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +1 -1
  10. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +1 -1
  11. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +1 -1
  12. package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +1 -1
  13. package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +1 -1
  14. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1 -1
  15. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +12 -12
  16. package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +1 -1
  17. package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +1 -1
  18. package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +2 -2
  19. package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +1 -1
  20. package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +2 -2
  21. package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +1 -1
  22. package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +1 -1
  23. package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +1 -1
  24. package/es/modules/dialog/__e2e__/templatesOfBug.mjs +9 -9
  25. package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.d.ts +2 -0
  26. package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +65 -0
  27. package/es/modules/fields/component/Select/selectComponentFieldSettings.d.ts +30 -0
  28. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +62 -6
  29. package/es/schema-component/antd/action/Action.Designer.mjs +5 -7
  30. package/es/schema-component/antd/association-cascader/AssociationCascader.d.ts +1 -1
  31. package/es/schema-component/antd/association-cascader/AssociationCascader.mjs +1 -1
  32. package/es/schema-component/antd/association-field/AssociationSelect.d.ts +1 -1
  33. package/es/schema-component/antd/association-field/Editable.mjs +1 -1
  34. package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
  35. package/es/schema-component/antd/association-field/InternalCascader.mjs +2 -2
  36. package/es/schema-component/antd/association-field/InternalViewer.mjs +59 -4
  37. package/es/schema-component/antd/association-field/ReadPretty.mjs +2 -1
  38. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -2
  39. package/es/schema-component/antd/association-field/schema.mjs +1 -1
  40. package/es/schema-component/antd/auto-complete/AutoComplete.d.ts +1 -1
  41. package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
  42. package/es/schema-component/antd/cascader/Cascader.d.ts +1 -1
  43. package/es/schema-component/antd/checkbox/Checkbox.d.ts +1 -1
  44. package/es/schema-component/antd/collection-select/CollectionSelect.d.ts +5 -5
  45. package/es/schema-component/antd/color-picker/ColorPicker.d.ts +1 -1
  46. package/es/schema-component/antd/color-select/ColorSelect.d.ts +1 -1
  47. package/es/schema-component/antd/cron/CronSet.d.ts +1 -1
  48. package/es/schema-component/antd/custom-cascader/CustomCascader.d.ts +1 -1
  49. package/es/schema-component/antd/filter/FilterGroup.d.ts +1 -1
  50. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +83 -2
  51. package/es/schema-component/antd/icon-picker/IconPicker.d.ts +1 -1
  52. package/es/schema-component/antd/menu/Menu.styles.mjs +4 -2
  53. package/es/schema-component/antd/nanoIDInput/NanoIDInput.d.ts +1 -1
  54. package/es/schema-component/antd/password/Password.d.ts +1 -1
  55. package/es/schema-component/antd/percent/Percent.d.ts +1 -1
  56. package/es/schema-component/antd/preview/Preview.d.ts +1 -1
  57. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +4 -4
  58. package/es/schema-component/antd/remote-select/RemoteSelect.mjs +7 -5
  59. package/es/schema-component/antd/rich-text/RichText.d.ts +1 -1
  60. package/es/schema-component/antd/select/FormulaSelect.mjs +3 -3
  61. package/es/schema-component/antd/select/Select.mjs +3 -1
  62. package/es/schema-component/antd/unixTimestamp/UnixTimestamp.d.ts +1 -1
  63. package/es/schema-component/antd/variable/TextArea.mjs +3 -1
  64. package/es/schema-component/antd/variable/Variable.d.ts +5 -5
  65. package/es/schema-component/hooks/useFieldModeOptions.mjs +8 -0
  66. package/es/schema-initializer/SchemaInitializerPlugin.mjs +1 -0
  67. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  68. package/es/schema-initializer/buttons/TabPaneInitializers.mjs +9 -1
  69. package/es/schema-settings/DateFormat/ExpiresRadio.d.ts +1 -1
  70. package/es/schema-settings/EditFormulaTitleField.mjs +7 -2
  71. package/es/schema-settings/SchemaSettingsPlugin.mjs +2 -0
  72. package/lib/application/WebSocketClient.js +1 -1
  73. package/lib/application/schema-settings/SchemaSettingsDefaults.js +10 -15
  74. package/lib/block-provider/hooks/index.js +26 -7
  75. package/lib/collection-manager/interfaces/properties/index.js +1 -1
  76. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +1 -1
  77. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +1 -1
  78. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +1 -1
  79. package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +1 -1
  80. package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +1 -1
  81. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1 -1
  82. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +12 -12
  83. package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +1 -1
  84. package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +1 -1
  85. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +2 -2
  86. package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +1 -1
  87. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +2 -2
  88. package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +1 -1
  89. package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +1 -1
  90. package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +1 -1
  91. package/lib/modules/dialog/__e2e__/templatesOfBug.js +9 -9
  92. package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +99 -0
  93. package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +69 -6
  94. package/lib/schema-component/antd/action/Action.Designer.js +5 -7
  95. package/lib/schema-component/antd/association-cascader/AssociationCascader.js +1 -1
  96. package/lib/schema-component/antd/association-field/Editable.js +1 -1
  97. package/lib/schema-component/antd/association-field/InternalCascader.js +2 -2
  98. package/lib/schema-component/antd/association-field/InternalViewer.js +59 -4
  99. package/lib/schema-component/antd/association-field/ReadPretty.js +2 -1
  100. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -2
  101. package/lib/schema-component/antd/association-field/schema.js +1 -1
  102. package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
  103. package/lib/schema-component/antd/form-item/FormItem.Settings.js +83 -2
  104. package/lib/schema-component/antd/menu/Menu.styles.js +4 -2
  105. package/lib/schema-component/antd/remote-select/RemoteSelect.js +7 -5
  106. package/lib/schema-component/antd/select/FormulaSelect.js +3 -3
  107. package/lib/schema-component/antd/select/Select.js +3 -1
  108. package/lib/schema-component/antd/variable/TextArea.js +3 -1
  109. package/lib/schema-component/hooks/useFieldModeOptions.js +8 -0
  110. package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
  111. package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
  112. package/lib/schema-settings/EditFormulaTitleField.js +7 -2
  113. package/lib/schema-settings/SchemaSettingsPlugin.js +2 -0
  114. package/package.json +8 -8
@@ -18,7 +18,7 @@ class WebSocketClient {
18
18
  const apiBaseURL = null == options ? void 0 : null === (_options_apiClient = options.apiClient) || void 0 === _options_apiClient ? void 0 : _options_apiClient['baseURL'];
19
19
  if (!apiBaseURL) return;
20
20
  const subApp = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_sdk__.getSubAppName)(this.app.getPublicPath());
21
- const queryString = subApp ? "?__appName=".concat(subApp) : '';
21
+ const queryString = subApp ? "?__appName=".concat(subApp) : "?__hostname=".concat(window.location.hostname);
22
22
  const wsPath = this.options.basename || '/ws';
23
23
  if (this.options.url) {
24
24
  const url = new URL(this.options.url);
@@ -132,20 +132,17 @@ const defaultSettingItems = [
132
132
  refresh,
133
133
  fieldSchema
134
134
  ]);
135
- const { data } = (0, __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useRequest)(async ()=>{
136
- const { data } = await api.request({
137
- url: "/uiSchemas:getJsonSchema/".concat(fieldSchema['x-uid'], "?includeAsyncNode=true")
138
- });
139
- return data;
140
- });
141
135
  return {
142
136
  width: '800px',
143
- disabled: !data,
144
- schema: ()=>{
145
- if (!data) return {
146
- title: t('Edit loading.')
147
- };
137
+ asyncGetInitialValues: async ()=>{
138
+ const { data } = await api.request({
139
+ url: "/uiSchemas:getJsonSchema/".concat(fieldSchema['x-uid'], "?includeAsyncNode=true")
140
+ });
148
141
  return {
142
+ schema: JSON.stringify((null == data ? void 0 : data.data) || {}, null, 2)
143
+ };
144
+ },
145
+ schema: ()=>({
149
146
  type: 'object',
150
147
  title: t('Edit'),
151
148
  properties: {
@@ -153,7 +150,6 @@ const defaultSettingItems = [
153
150
  type: 'string',
154
151
  title: '{{ t("Schema") }}',
155
152
  required: true,
156
- default: JSON.stringify((null == data ? void 0 : data.data) || {}, null, 2),
157
153
  'x-decorator': 'FormItem',
158
154
  'x-component': 'CodeMirror',
159
155
  'x-component-props': {
@@ -162,9 +158,8 @@ const defaultSettingItems = [
162
158
  }
163
159
  }
164
160
  }
165
- };
166
- },
167
- title: data ? t('Edit') : t('Loading'),
161
+ }),
162
+ title: t('Edit'),
168
163
  onSubmit: async (param)=>{
169
164
  let { schema } = param;
170
165
  dn.emit('patch', {
@@ -385,6 +385,7 @@ const useFilterBlockActionProps = ()=>{
385
385
  async onClick () {
386
386
  const { targets = [], uid } = findFilterTargets(fieldSchema);
387
387
  actionField.data.loading = true;
388
+ let prevMergedFilter = {};
388
389
  try {
389
390
  await Promise.all(getDataBlocks().map(async (block)=>{
390
391
  var _block_service_params, _block_service_params_, _block_service_params1, _Object_keys;
@@ -415,8 +416,10 @@ const useFilterBlockActionProps = ()=>{
415
416
  const mergedFilter = (0, __WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.mergeFilter)([
416
417
  ...Object.values(storedFilter).map((filter)=>(0, __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.removeNullCondition)(filter)),
417
418
  block.defaultFilter,
418
- filter.customFilter
419
+ filter.customFilter,
420
+ prevMergedFilter
419
421
  ]);
422
+ prevMergedFilter = mergedFilter;
420
423
  if ('manual' === block.dataLoadingMode && __WEBPACK_EXTERNAL_MODULE_lodash__["default"].isEmpty(mergedFilter)) return block.clearData();
421
424
  return block.doFilter({
422
425
  ...param,
@@ -1089,7 +1092,7 @@ const useAssociationNames = (dataSource)=>{
1089
1092
  const fieldSchema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
1090
1093
  const _getAssociationAppends = (schema, str)=>{
1091
1094
  schema.reduceProperties((pre, s)=>{
1092
- var _s_xcomponentprops, _s_xcomponentprops1, _getCollection;
1095
+ var _s_xcomponentprops, _s_xcomponentprops_fieldNames, _s_xcomponentprops1, _s_xcomponentprops2, _getCollection;
1093
1096
  const prefix = pre || str;
1094
1097
  const collectionField = s['x-collection-field'] && getCollectionJoinField(s['x-collection-field'], dataSource);
1095
1098
  const isAssociationSubfield = s.name.includes('.');
@@ -1100,11 +1103,27 @@ const useAssociationNames = (dataSource)=>{
1100
1103
  'belongsToMany'
1101
1104
  ].includes(collectionField.type);
1102
1105
  if (null === (_s_xcomponentprops = s['x-component-props']) || void 0 === _s_xcomponentprops ? void 0 : _s_xcomponentprops['appends']) {
1103
- var _s_xcomponentprops2;
1104
- __WEBPACK_EXTERNAL_MODULE_lodash__["default"].forEach(null === (_s_xcomponentprops2 = s['x-component-props']) || void 0 === _s_xcomponentprops2 ? void 0 : _s_xcomponentprops2['appends'], (append)=>{
1106
+ var _s_xcomponentprops3;
1107
+ __WEBPACK_EXTERNAL_MODULE_lodash__["default"].forEach(null === (_s_xcomponentprops3 = s['x-component-props']) || void 0 === _s_xcomponentprops3 ? void 0 : _s_xcomponentprops3['appends'], (append)=>{
1105
1108
  appends.add(append);
1106
1109
  });
1107
1110
  }
1111
+ if (null === (_s_xcomponentprops1 = s['x-component-props']) || void 0 === _s_xcomponentprops1 ? void 0 : null === (_s_xcomponentprops_fieldNames = _s_xcomponentprops1.fieldNames) || void 0 === _s_xcomponentprops_fieldNames ? void 0 : _s_xcomponentprops_fieldNames.formula) {
1112
+ var _s_xcomponentprops_fieldNames1, _s_xcomponentprops4;
1113
+ appends.add(s['name']);
1114
+ const regex = /{{(.*?)}}/g;
1115
+ const formula = null === (_s_xcomponentprops4 = s['x-component-props']) || void 0 === _s_xcomponentprops4 ? void 0 : null === (_s_xcomponentprops_fieldNames1 = _s_xcomponentprops4.fieldNames) || void 0 === _s_xcomponentprops_fieldNames1 ? void 0 : _s_xcomponentprops_fieldNames1.formula;
1116
+ let match;
1117
+ while(match = regex.exec(formula))if (match[1].includes('.')) {
1118
+ const matchList = match[1].split('.');
1119
+ let appendsValue = s['name'];
1120
+ matchList.forEach((item, index)=>{
1121
+ if (index === matchList.length - 1) return;
1122
+ appendsValue += '.' + item;
1123
+ appends.add(appendsValue);
1124
+ });
1125
+ }
1126
+ }
1108
1127
  if (s['x-linkage-rules']) {
1109
1128
  const collectAppends = (obj)=>{
1110
1129
  const type = Object.keys(obj)[0] || '$and';
@@ -1121,7 +1140,7 @@ const useAssociationNames = (dataSource)=>{
1121
1140
  collectAppends(condition);
1122
1141
  });
1123
1142
  }
1124
- if (null === (_s_xcomponentprops1 = s['x-component-props']) || void 0 === _s_xcomponentprops1 ? void 0 : _s_xcomponentprops1['x-next-title']) {
1143
+ if (null === (_s_xcomponentprops2 = s['x-component-props']) || void 0 === _s_xcomponentprops2 ? void 0 : _s_xcomponentprops2['x-next-title']) {
1125
1144
  const pre = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
1126
1145
  const title = s['x-component-props']['x-next-title'];
1127
1146
  const path = pre + '.' + title.label;
@@ -1129,7 +1148,7 @@ const useAssociationNames = (dataSource)=>{
1129
1148
  }
1130
1149
  const isTreeCollection = isAssociationField && (null === (_getCollection = getCollection(collectionField.target, dataSource)) || void 0 === _getCollection ? void 0 : _getCollection.template) === 'tree';
1131
1150
  if (collectionField && (isAssociationField || isAssociationSubfield) && 'TableField' !== s['x-component']) {
1132
- var _s_xcomponentprops3;
1151
+ var _s_xcomponentprops5;
1133
1152
  const fieldPath = !isAssociationField && isAssociationSubfield ? getAssociationPath(s.name) : s.name;
1134
1153
  const path = '' !== prefix && prefix ? prefix + '.' + fieldPath : fieldPath;
1135
1154
  if (isTreeCollection) {
@@ -1140,7 +1159,7 @@ const useAssociationNames = (dataSource)=>{
1140
1159
  'Nester',
1141
1160
  'SubTable',
1142
1161
  'PopoverNester'
1143
- ].includes(null === (_s_xcomponentprops3 = s['x-component-props']) || void 0 === _s_xcomponentprops3 ? void 0 : _s_xcomponentprops3.mode)) {
1162
+ ].includes(null === (_s_xcomponentprops5 = s['x-component-props']) || void 0 === _s_xcomponentprops5 ? void 0 : _s_xcomponentprops5.mode)) {
1144
1163
  updateAssociationValues.add(path);
1145
1164
  const bufPrefix = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
1146
1165
  _getAssociationAppends(s, bufPrefix);
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  export declare const RoleResourceCollectionContext: React.Context<any>;
3
- export declare const RolesResourcesActions: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
3
+ export declare const RolesResourcesActions: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const StrategyActions: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
2
+ export declare const StrategyActions: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
@@ -459,7 +459,7 @@ const recordPickerViewer = {
459
459
  type: 'void',
460
460
  'x-component': 'Tabs',
461
461
  'x-component-props': {},
462
- 'x-initializer': 'TabPaneInitializers',
462
+ 'x-initializer': 'popup:addTab',
463
463
  properties: {
464
464
  tab1: {
465
465
  type: 'void',
@@ -7,5 +7,5 @@ type Props = {
7
7
  * @internal
8
8
  */
9
9
  export declare const CollectionFieldInternalField: (props: Props) => import("react/jsx-runtime").JSX.Element;
10
- export declare const CollectionField: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
10
+ export declare const CollectionField: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
11
11
  export {};
@@ -8,6 +8,9 @@ export interface DataSourceOptions {
8
8
  errorMessage?: string;
9
9
  status?: 'loaded' | 'loading-failed' | 'loading' | 'reloading';
10
10
  isDBInstance?: boolean;
11
+ options?: {
12
+ baseUrl?: string;
13
+ };
11
14
  }
12
15
  export type DataSourceFactory = new (options: DataSourceOptions, dataSourceManager: DataSourceManager) => DataSource;
13
16
  export declare abstract class DataSource {
@@ -155,7 +155,7 @@ const disassociatePage = {
155
155
  type: 'void',
156
156
  'x-component': 'Tabs',
157
157
  'x-component-props': {},
158
- 'x-initializer': 'TabPaneInitializers',
158
+ 'x-initializer': 'popup:addTab',
159
159
  properties: {
160
160
  tab1: {
161
161
  _isJSONSchemaObject: true,
@@ -26,7 +26,7 @@ const PopupActionInitializer = (props)=>{
26
26
  type: 'void',
27
27
  'x-component': 'Tabs',
28
28
  'x-component-props': {},
29
- 'x-initializer': 'TabPaneInitializers',
29
+ 'x-initializer': 'popup:addTab',
30
30
  properties: {
31
31
  tab1: {
32
32
  type: 'void',
@@ -26,7 +26,7 @@ const UpdateActionInitializer = (props)=>{
26
26
  type: 'void',
27
27
  'x-component': 'Tabs',
28
28
  'x-component-props': {},
29
- 'x-initializer': 'TabPaneInitializers',
29
+ 'x-initializer': 'popup:addTab',
30
30
  properties: {
31
31
  tab1: {
32
32
  type: 'void',
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createDetailsWithPaginationUISchema_mjs__ from "../createDetailsWithPaginationUISchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: vi.fn().mockReturnValue('mocked-uid')
4
4
  }));
5
5
  describe('createDetailsBlockWithPaginationUISchema', ()=>{
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createDetailsUISchema_mjs__ from "../createDetailsUISchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: ()=>'fixed-uid'
4
4
  }));
5
5
  describe('createDetailsBlockWithoutPagingUISchema', ()=>{
@@ -1058,7 +1058,7 @@ __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test.describe('creation form blo
1058
1058
  type: 'void',
1059
1059
  'x-component': 'Tabs',
1060
1060
  'x-component-props': {},
1061
- 'x-initializer': 'TabPaneInitializers',
1061
+ 'x-initializer': 'popup:addTab',
1062
1062
  properties: {
1063
1063
  tab1: {
1064
1064
  _isJSONSchemaObject: true,
@@ -423,7 +423,7 @@ const T2174 = {
423
423
  type: 'void',
424
424
  'x-component': 'Tabs',
425
425
  'x-component-props': {},
426
- 'x-initializer': 'TabPaneInitializers',
426
+ 'x-initializer': 'popup:addTab',
427
427
  'x-index': 1,
428
428
  properties: {
429
429
  tab1: {
@@ -706,7 +706,7 @@ const T2174 = {
706
706
  type: 'void',
707
707
  'x-component': 'Tabs',
708
708
  'x-component-props': {},
709
- 'x-initializer': 'TabPaneInitializers',
709
+ 'x-initializer': 'popup:addTab',
710
710
  'x-index': 1,
711
711
  properties: {
712
712
  tab1: {
@@ -1010,7 +1010,7 @@ const T2614 = {
1010
1010
  type: 'void',
1011
1011
  'x-component': 'Tabs',
1012
1012
  'x-component-props': {},
1013
- 'x-initializer': 'TabPaneInitializers',
1013
+ 'x-initializer': 'popup:addTab',
1014
1014
  properties: {
1015
1015
  tab1: {
1016
1016
  _isJSONSchemaObject: true,
@@ -1307,7 +1307,7 @@ const T2614 = {
1307
1307
  type: 'void',
1308
1308
  'x-component': 'Tabs',
1309
1309
  'x-component-props': {},
1310
- 'x-initializer': 'TabPaneInitializers',
1310
+ 'x-initializer': 'popup:addTab',
1311
1311
  properties: {
1312
1312
  tab1: {
1313
1313
  _isJSONSchemaObject: true,
@@ -2562,7 +2562,7 @@ const T2615 = {
2562
2562
  type: 'void',
2563
2563
  'x-component': 'Tabs',
2564
2564
  'x-component-props': {},
2565
- 'x-initializer': 'TabPaneInitializers',
2565
+ 'x-initializer': 'popup:addTab',
2566
2566
  properties: {
2567
2567
  tab1: {
2568
2568
  _isJSONSchemaObject: true,
@@ -2804,7 +2804,7 @@ const T2615 = {
2804
2804
  type: 'void',
2805
2805
  'x-component': 'Tabs',
2806
2806
  'x-component-props': {},
2807
- 'x-initializer': 'TabPaneInitializers',
2807
+ 'x-initializer': 'popup:addTab',
2808
2808
  properties: {
2809
2809
  tab1: {
2810
2810
  _isJSONSchemaObject: true,
@@ -3395,7 +3395,7 @@ const T2845 = {
3395
3395
  type: 'void',
3396
3396
  'x-component': 'Tabs',
3397
3397
  'x-component-props': {},
3398
- 'x-initializer': 'TabPaneInitializers',
3398
+ 'x-initializer': 'popup:addTab',
3399
3399
  properties: {
3400
3400
  tab1: {
3401
3401
  _isJSONSchemaObject: true,
@@ -3471,7 +3471,7 @@ const T2845 = {
3471
3471
  type: 'void',
3472
3472
  'x-component': 'Tabs',
3473
3473
  'x-component-props': {},
3474
- 'x-initializer': 'TabPaneInitializers',
3474
+ 'x-initializer': 'popup:addTab',
3475
3475
  properties: {
3476
3476
  tab1: {
3477
3477
  _isJSONSchemaObject: true,
@@ -3740,7 +3740,7 @@ const T2845 = {
3740
3740
  type: 'void',
3741
3741
  'x-component': 'Tabs',
3742
3742
  'x-component-props': {},
3743
- 'x-initializer': 'TabPaneInitializers',
3743
+ 'x-initializer': 'popup:addTab',
3744
3744
  'x-index': 1,
3745
3745
  properties: {
3746
3746
  tab1: {
@@ -4079,7 +4079,7 @@ const T2845 = {
4079
4079
  type: 'void',
4080
4080
  'x-component': 'Tabs',
4081
4081
  'x-component-props': {},
4082
- 'x-initializer': 'TabPaneInitializers',
4082
+ 'x-initializer': 'popup:addTab',
4083
4083
  'x-index': 1,
4084
4084
  properties: {
4085
4085
  tab1: {
@@ -4544,7 +4544,7 @@ const T2200 = {
4544
4544
  type: 'void',
4545
4545
  'x-component': 'Tabs',
4546
4546
  'x-component-props': {},
4547
- 'x-initializer': 'TabPaneInitializers',
4547
+ 'x-initializer': 'popup:addTab',
4548
4548
  properties: {
4549
4549
  tab1: {
4550
4550
  _isJSONSchemaObject: true,
@@ -5562,7 +5562,7 @@ const T3529 = {
5562
5562
  type: 'void',
5563
5563
  'x-component': 'Tabs',
5564
5564
  'x-component-props': {},
5565
- 'x-initializer': 'TabPaneInitializers',
5565
+ 'x-initializer': 'popup:addTab',
5566
5566
  properties: {
5567
5567
  tab1: {
5568
5568
  _isJSONSchemaObject: true,
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createCreateFormBlockUISchema_mjs__ from "../createCreateFormBlockUISchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: ()=>'mocked-uid'
4
4
  }));
5
5
  describe('createCreateFormBlockUISchema', ()=>{
@@ -1,6 +1,6 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_vitest__ from "vitest";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE__createEditFormBlockUISchema_mjs__ from "../createEditFormBlockUISchema.mjs";
3
- __WEBPACK_EXTERNAL_MODULE_vitest__.vi.mock('@formily/shared', ()=>({
3
+ __WEBPACK_EXTERNAL_MODULE_vitest__.vi.mock('@tachybase/schema', ()=>({
4
4
  uid: ()=>'uniqueId'
5
5
  }));
6
6
  describe('createEditFormBlockUISchema', ()=>{
@@ -456,7 +456,7 @@ const T2187 = {
456
456
  type: 'void',
457
457
  'x-component': 'Tabs',
458
458
  'x-component-props': {},
459
- 'x-initializer': 'TabPaneInitializers',
459
+ 'x-initializer': 'popup:addTab',
460
460
  properties: {
461
461
  tab1: {
462
462
  _isJSONSchemaObject: true,
@@ -850,7 +850,7 @@ const T3686 = {
850
850
  type: 'void',
851
851
  'x-component': 'Tabs',
852
852
  'x-component-props': {},
853
- 'x-initializer': 'TabPaneInitializers',
853
+ 'x-initializer': 'popup:addTab',
854
854
  properties: {
855
855
  tab1: {
856
856
  _isJSONSchemaObject: true,
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createTableBlockUISchema_mjs__ from "../createTableBlockUISchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: ()=>'mocked-uid'
4
4
  }));
5
5
  describe('createTableBLockSchemaV2', ()=>{
@@ -148,7 +148,7 @@ const tableSelectorDataScopeVariable = {
148
148
  type: 'void',
149
149
  'x-component': 'Tabs',
150
150
  'x-component-props': {},
151
- 'x-initializer': 'TabPaneInitializers',
151
+ 'x-initializer': 'popup:addTab',
152
152
  properties: {
153
153
  tab1: {
154
154
  _isJSONSchemaObject: true,
@@ -380,7 +380,7 @@ const tableSelectorDataScopeVariable = {
380
380
  type: 'void',
381
381
  'x-component': 'Tabs',
382
382
  'x-component-props': {},
383
- 'x-initializer': 'TabPaneInitializers',
383
+ 'x-initializer': 'popup:addTab',
384
384
  properties: {
385
385
  tab1: {
386
386
  _isJSONSchemaObject: true,
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createTableSelectorUISchema_mjs__ from "../createTableSelectorUISchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: ()=>'mocked-uid'
4
4
  }));
5
5
  describe('createTableSelectorSchema', ()=>{
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createFilterCollapseBlockSchema_mjs__ from "../createFilterCollapseBlockSchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: vi.fn().mockReturnValue('mocked-uid')
4
4
  }));
5
5
  describe('createCollapseBlockSchema', ()=>{
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE__createFilterFormBlockSchema_mjs__ from "../createFilterFormBlockSchema.mjs";
2
- vi.mock('@formily/shared', ()=>({
2
+ vi.mock('@tachybase/schema', ()=>({
3
3
  uid: ()=>'mocked-uid'
4
4
  }));
5
5
  describe('createFilterFormBlockSchema', ()=>{
@@ -144,7 +144,7 @@ const T2797 = {
144
144
  type: 'void',
145
145
  'x-component': 'Tabs',
146
146
  'x-component-props': {},
147
- 'x-initializer': 'TabPaneInitializers',
147
+ 'x-initializer': 'popup:addTab',
148
148
  'x-index': 1,
149
149
  properties: {
150
150
  tab1: {
@@ -267,7 +267,7 @@ const T2797 = {
267
267
  type: 'void',
268
268
  'x-component': 'Tabs',
269
269
  'x-component-props': {},
270
- 'x-initializer': 'TabPaneInitializers',
270
+ 'x-initializer': 'popup:addTab',
271
271
  'x-index': 1,
272
272
  properties: {
273
273
  tab1: {
@@ -660,7 +660,7 @@ const T2838 = {
660
660
  type: 'void',
661
661
  'x-component': 'Tabs',
662
662
  'x-component-props': {},
663
- 'x-initializer': 'TabPaneInitializers',
663
+ 'x-initializer': 'popup:addTab',
664
664
  'x-index': 1,
665
665
  properties: {
666
666
  tab1: {
@@ -773,7 +773,7 @@ const T2838 = {
773
773
  type: 'void',
774
774
  'x-component': 'Tabs',
775
775
  'x-component-props': {},
776
- 'x-initializer': 'TabPaneInitializers',
776
+ 'x-initializer': 'popup:addTab',
777
777
  'x-index': 1,
778
778
  properties: {
779
779
  tab1: {
@@ -886,7 +886,7 @@ const T2838 = {
886
886
  type: 'void',
887
887
  'x-component': 'Tabs',
888
888
  'x-component-props': {},
889
- 'x-initializer': 'TabPaneInitializers',
889
+ 'x-initializer': 'popup:addTab',
890
890
  'x-index': 1,
891
891
  properties: {
892
892
  tab1: {
@@ -1344,7 +1344,7 @@ const tableWithRoles = {
1344
1344
  type: 'void',
1345
1345
  'x-component': 'Tabs',
1346
1346
  'x-component-props': {},
1347
- 'x-initializer': 'TabPaneInitializers',
1347
+ 'x-initializer': 'popup:addTab',
1348
1348
  properties: {
1349
1349
  tab1: {
1350
1350
  _isJSONSchemaObject: true,
@@ -1558,7 +1558,7 @@ const tableWithUsers = {
1558
1558
  type: 'void',
1559
1559
  'x-component': 'Tabs',
1560
1560
  'x-component-props': {},
1561
- 'x-initializer': 'TabPaneInitializers',
1561
+ 'x-initializer': 'popup:addTab',
1562
1562
  properties: {
1563
1563
  tab1: {
1564
1564
  _isJSONSchemaObject: true,
@@ -1805,7 +1805,7 @@ const tableWithInherit = {
1805
1805
  type: 'void',
1806
1806
  'x-component': 'Tabs',
1807
1807
  'x-component-props': {},
1808
- 'x-initializer': 'TabPaneInitializers',
1808
+ 'x-initializer': 'popup:addTab',
1809
1809
  properties: {
1810
1810
  tab1: {
1811
1811
  _isJSONSchemaObject: true,
@@ -2037,7 +2037,7 @@ const tableWithInheritWithoutAssociation = {
2037
2037
  type: 'void',
2038
2038
  'x-component': 'Tabs',
2039
2039
  'x-component-props': {},
2040
- 'x-initializer': 'TabPaneInitializers',
2040
+ 'x-initializer': 'popup:addTab',
2041
2041
  properties: {
2042
2042
  tab1: {
2043
2043
  _isJSONSchemaObject: true,
@@ -0,0 +1,2 @@
1
+ import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings';
2
+ export declare const CustomTitleComponentFieldSettings: SchemaSettings<{}>;