@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.
- package/es/application/WebSocketClient.mjs +1 -1
- package/es/application/schema-settings/SchemaSettingsDefaults.mjs +10 -15
- package/es/block-provider/hooks/index.mjs +26 -7
- package/es/built-in/acl/Configuration/RolesResourcesActions.d.ts +1 -1
- package/es/built-in/acl/Configuration/StrategyActions.d.ts +1 -1
- package/es/collection-manager/interfaces/properties/index.mjs +1 -1
- package/es/data-source/collection-field/CollectionField.d.ts +1 -1
- package/es/data-source/data-source/DataSource.d.ts +3 -0
- package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +1 -1
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +1 -1
- package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +1 -1
- package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +12 -12
- package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +2 -2
- package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +2 -2
- package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +1 -1
- package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +1 -1
- package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +1 -1
- package/es/modules/dialog/__e2e__/templatesOfBug.mjs +9 -9
- package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.d.ts +2 -0
- package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +65 -0
- package/es/modules/fields/component/Select/selectComponentFieldSettings.d.ts +30 -0
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +62 -6
- package/es/schema-component/antd/action/Action.Designer.mjs +5 -7
- package/es/schema-component/antd/association-cascader/AssociationCascader.d.ts +1 -1
- package/es/schema-component/antd/association-cascader/AssociationCascader.mjs +1 -1
- package/es/schema-component/antd/association-field/AssociationSelect.d.ts +1 -1
- package/es/schema-component/antd/association-field/Editable.mjs +1 -1
- package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
- package/es/schema-component/antd/association-field/InternalCascader.mjs +2 -2
- package/es/schema-component/antd/association-field/InternalViewer.mjs +59 -4
- package/es/schema-component/antd/association-field/ReadPretty.mjs +2 -1
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -2
- package/es/schema-component/antd/association-field/schema.mjs +1 -1
- package/es/schema-component/antd/auto-complete/AutoComplete.d.ts +1 -1
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
- package/es/schema-component/antd/cascader/Cascader.d.ts +1 -1
- package/es/schema-component/antd/checkbox/Checkbox.d.ts +1 -1
- package/es/schema-component/antd/collection-select/CollectionSelect.d.ts +5 -5
- package/es/schema-component/antd/color-picker/ColorPicker.d.ts +1 -1
- package/es/schema-component/antd/color-select/ColorSelect.d.ts +1 -1
- package/es/schema-component/antd/cron/CronSet.d.ts +1 -1
- package/es/schema-component/antd/custom-cascader/CustomCascader.d.ts +1 -1
- package/es/schema-component/antd/filter/FilterGroup.d.ts +1 -1
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +83 -2
- package/es/schema-component/antd/icon-picker/IconPicker.d.ts +1 -1
- package/es/schema-component/antd/menu/Menu.styles.mjs +4 -2
- package/es/schema-component/antd/nanoIDInput/NanoIDInput.d.ts +1 -1
- package/es/schema-component/antd/password/Password.d.ts +1 -1
- package/es/schema-component/antd/percent/Percent.d.ts +1 -1
- package/es/schema-component/antd/preview/Preview.d.ts +1 -1
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +4 -4
- package/es/schema-component/antd/remote-select/RemoteSelect.mjs +7 -5
- package/es/schema-component/antd/rich-text/RichText.d.ts +1 -1
- package/es/schema-component/antd/select/FormulaSelect.mjs +3 -3
- package/es/schema-component/antd/select/Select.mjs +3 -1
- package/es/schema-component/antd/unixTimestamp/UnixTimestamp.d.ts +1 -1
- package/es/schema-component/antd/variable/TextArea.mjs +3 -1
- package/es/schema-component/antd/variable/Variable.d.ts +5 -5
- package/es/schema-component/hooks/useFieldModeOptions.mjs +8 -0
- package/es/schema-initializer/SchemaInitializerPlugin.mjs +1 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.mjs +9 -1
- package/es/schema-settings/DateFormat/ExpiresRadio.d.ts +1 -1
- package/es/schema-settings/EditFormulaTitleField.mjs +7 -2
- package/es/schema-settings/SchemaSettingsPlugin.mjs +2 -0
- package/lib/application/WebSocketClient.js +1 -1
- package/lib/application/schema-settings/SchemaSettingsDefaults.js +10 -15
- package/lib/block-provider/hooks/index.js +26 -7
- package/lib/collection-manager/interfaces/properties/index.js +1 -1
- package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +1 -1
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +1 -1
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +1 -1
- package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +1 -1
- package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +1 -1
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1 -1
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +12 -12
- package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +1 -1
- package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +1 -1
- package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +2 -2
- package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +1 -1
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +2 -2
- package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +1 -1
- package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +1 -1
- package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +1 -1
- package/lib/modules/dialog/__e2e__/templatesOfBug.js +9 -9
- package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +99 -0
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +69 -6
- package/lib/schema-component/antd/action/Action.Designer.js +5 -7
- package/lib/schema-component/antd/association-cascader/AssociationCascader.js +1 -1
- package/lib/schema-component/antd/association-field/Editable.js +1 -1
- package/lib/schema-component/antd/association-field/InternalCascader.js +2 -2
- package/lib/schema-component/antd/association-field/InternalViewer.js +59 -4
- package/lib/schema-component/antd/association-field/ReadPretty.js +2 -1
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -2
- package/lib/schema-component/antd/association-field/schema.js +1 -1
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +83 -2
- package/lib/schema-component/antd/menu/Menu.styles.js +4 -2
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +7 -5
- package/lib/schema-component/antd/select/FormulaSelect.js +3 -3
- package/lib/schema-component/antd/select/Select.js +3 -1
- package/lib/schema-component/antd/variable/TextArea.js +3 -1
- package/lib/schema-component/hooks/useFieldModeOptions.js +8 -0
- package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
- package/lib/schema-settings/EditFormulaTitleField.js +7 -2
- package/lib/schema-settings/SchemaSettingsPlugin.js +2 -0
- 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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
|
1104
|
-
__WEBPACK_EXTERNAL_MODULE_lodash__["default"].forEach(null === (
|
|
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 === (
|
|
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
|
|
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 === (
|
|
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<
|
|
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<
|
|
2
|
+
export declare const StrategyActions: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -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<
|
|
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 {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__createDetailsWithPaginationUISchema_mjs__ from "../createDetailsWithPaginationUISchema.mjs";
|
|
2
|
-
vi.mock('@
|
|
2
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
3
3
|
uid: vi.fn().mockReturnValue('mocked-uid')
|
|
4
4
|
}));
|
|
5
5
|
describe('createDetailsBlockWithPaginationUISchema', ()=>{
|
|
@@ -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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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('@
|
|
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('@
|
|
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': '
|
|
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': '
|
|
853
|
+
'x-initializer': 'popup:addTab',
|
|
854
854
|
properties: {
|
|
855
855
|
tab1: {
|
|
856
856
|
_isJSONSchemaObject: true,
|
|
@@ -148,7 +148,7 @@ const tableSelectorDataScopeVariable = {
|
|
|
148
148
|
type: 'void',
|
|
149
149
|
'x-component': 'Tabs',
|
|
150
150
|
'x-component-props': {},
|
|
151
|
-
'x-initializer': '
|
|
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': '
|
|
383
|
+
'x-initializer': 'popup:addTab',
|
|
384
384
|
properties: {
|
|
385
385
|
tab1: {
|
|
386
386
|
_isJSONSchemaObject: true,
|
package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__createFilterCollapseBlockSchema_mjs__ from "../createFilterCollapseBlockSchema.mjs";
|
|
2
|
-
vi.mock('@
|
|
2
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
3
3
|
uid: vi.fn().mockReturnValue('mocked-uid')
|
|
4
4
|
}));
|
|
5
5
|
describe('createCollapseBlockSchema', ()=>{
|
|
@@ -144,7 +144,7 @@ const T2797 = {
|
|
|
144
144
|
type: 'void',
|
|
145
145
|
'x-component': 'Tabs',
|
|
146
146
|
'x-component-props': {},
|
|
147
|
-
'x-initializer': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
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': '
|
|
2040
|
+
'x-initializer': 'popup:addTab',
|
|
2041
2041
|
properties: {
|
|
2042
2042
|
tab1: {
|
|
2043
2043
|
_isJSONSchemaObject: true,
|