@tachybase/client 0.23.41 → 0.23.48
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/data-source/collection-field/CollectionField.d.ts +1 -1
- package/es/data-source/data-source/DataSource.d.ts +3 -0
- 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/__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/__tests__/createTableBLockSchema.test.mjs +1 -1
- 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/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/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/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-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 +28 -9
- 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/__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/__tests__/createTableBLockSchema.test.js +1 -1
- 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/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/auto-complete/AutoComplete.js +1 -1
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +83 -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-settings/EditFormulaTitleField.js +7 -2
- package/lib/schema-settings/SchemaSettingsPlugin.js +2 -0
- package/package.json +8 -8
|
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"../../filter-provider/utils": function(module) {
|
|
16
16
|
module.exports = require("../../filter-provider/utils.js");
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"../../": function(module) {
|
|
19
19
|
module.exports = require("../../index.js");
|
|
20
20
|
},
|
|
21
21
|
"../../record-provider": function(module) {
|
|
@@ -229,7 +229,7 @@ var lodash_omit__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_r
|
|
|
229
229
|
var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("react-i18next");
|
|
230
230
|
var react_router_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("react-router-dom");
|
|
231
231
|
var react_to_print__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("react-to-print");
|
|
232
|
-
var ___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("
|
|
232
|
+
var ___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../../");
|
|
233
233
|
var _api_client__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../../api-client");
|
|
234
234
|
var _built_in_dynamic_page_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../built-in/dynamic-page/utils");
|
|
235
235
|
var _collection_manager__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../collection-manager");
|
|
@@ -734,6 +734,7 @@ const useFilterBlockActionProps = ()=>{
|
|
|
734
734
|
async onClick () {
|
|
735
735
|
const { targets = [], uid } = findFilterTargets(fieldSchema);
|
|
736
736
|
actionField.data.loading = true;
|
|
737
|
+
let prevMergedFilter = {};
|
|
737
738
|
try {
|
|
738
739
|
await Promise.all(getDataBlocks().map(async (block)=>{
|
|
739
740
|
var _block_service_params, _block_service_params_, _block_service_params1, _Object_keys;
|
|
@@ -764,8 +765,10 @@ const useFilterBlockActionProps = ()=>{
|
|
|
764
765
|
const mergedFilter = (0, _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__.mergeFilter)([
|
|
765
766
|
...Object.values(storedFilter).map((filter)=>(0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.removeNullCondition)(filter)),
|
|
766
767
|
block.defaultFilter,
|
|
767
|
-
filter.customFilter
|
|
768
|
+
filter.customFilter,
|
|
769
|
+
prevMergedFilter
|
|
768
770
|
]);
|
|
771
|
+
prevMergedFilter = mergedFilter;
|
|
769
772
|
if ('manual' === block.dataLoadingMode && lodash__WEBPACK_IMPORTED_MODULE_4___default().isEmpty(mergedFilter)) return block.clearData();
|
|
770
773
|
return block.doFilter({
|
|
771
774
|
...param,
|
|
@@ -1438,7 +1441,7 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1438
1441
|
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
1439
1442
|
const _getAssociationAppends = (schema, str)=>{
|
|
1440
1443
|
schema.reduceProperties((pre, s)=>{
|
|
1441
|
-
var _s_xcomponentprops, _s_xcomponentprops1, _getCollection;
|
|
1444
|
+
var _s_xcomponentprops, _s_xcomponentprops_fieldNames, _s_xcomponentprops1, _s_xcomponentprops2, _getCollection;
|
|
1442
1445
|
const prefix = pre || str;
|
|
1443
1446
|
const collectionField = s['x-collection-field'] && getCollectionJoinField(s['x-collection-field'], dataSource);
|
|
1444
1447
|
const isAssociationSubfield = s.name.includes('.');
|
|
@@ -1449,11 +1452,27 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1449
1452
|
'belongsToMany'
|
|
1450
1453
|
].includes(collectionField.type);
|
|
1451
1454
|
if (null === (_s_xcomponentprops = s['x-component-props']) || void 0 === _s_xcomponentprops ? void 0 : _s_xcomponentprops['appends']) {
|
|
1452
|
-
var
|
|
1453
|
-
lodash__WEBPACK_IMPORTED_MODULE_4___default().forEach(null === (
|
|
1455
|
+
var _s_xcomponentprops3;
|
|
1456
|
+
lodash__WEBPACK_IMPORTED_MODULE_4___default().forEach(null === (_s_xcomponentprops3 = s['x-component-props']) || void 0 === _s_xcomponentprops3 ? void 0 : _s_xcomponentprops3['appends'], (append)=>{
|
|
1454
1457
|
appends.add(append);
|
|
1455
1458
|
});
|
|
1456
1459
|
}
|
|
1460
|
+
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) {
|
|
1461
|
+
var _s_xcomponentprops_fieldNames1, _s_xcomponentprops4;
|
|
1462
|
+
appends.add(s['name']);
|
|
1463
|
+
const regex = /{{(.*?)}}/g;
|
|
1464
|
+
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;
|
|
1465
|
+
let match;
|
|
1466
|
+
while(match = regex.exec(formula))if (match[1].includes('.')) {
|
|
1467
|
+
const matchList = match[1].split('.');
|
|
1468
|
+
let appendsValue = s['name'];
|
|
1469
|
+
matchList.forEach((item, index)=>{
|
|
1470
|
+
if (index === matchList.length - 1) return;
|
|
1471
|
+
appendsValue += '.' + item;
|
|
1472
|
+
appends.add(appendsValue);
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1457
1476
|
if (s['x-linkage-rules']) {
|
|
1458
1477
|
const collectAppends = (obj)=>{
|
|
1459
1478
|
const type = Object.keys(obj)[0] || '$and';
|
|
@@ -1470,7 +1489,7 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1470
1489
|
collectAppends(condition);
|
|
1471
1490
|
});
|
|
1472
1491
|
}
|
|
1473
|
-
if (null === (
|
|
1492
|
+
if (null === (_s_xcomponentprops2 = s['x-component-props']) || void 0 === _s_xcomponentprops2 ? void 0 : _s_xcomponentprops2['x-next-title']) {
|
|
1474
1493
|
const pre = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
|
|
1475
1494
|
const title = s['x-component-props']['x-next-title'];
|
|
1476
1495
|
const path = pre + '.' + title.label;
|
|
@@ -1478,7 +1497,7 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1478
1497
|
}
|
|
1479
1498
|
const isTreeCollection = isAssociationField && (null === (_getCollection = getCollection(collectionField.target, dataSource)) || void 0 === _getCollection ? void 0 : _getCollection.template) === 'tree';
|
|
1480
1499
|
if (collectionField && (isAssociationField || isAssociationSubfield) && 'TableField' !== s['x-component']) {
|
|
1481
|
-
var
|
|
1500
|
+
var _s_xcomponentprops5;
|
|
1482
1501
|
const fieldPath = !isAssociationField && isAssociationSubfield ? getAssociationPath(s.name) : s.name;
|
|
1483
1502
|
const path = '' !== prefix && prefix ? prefix + '.' + fieldPath : fieldPath;
|
|
1484
1503
|
if (isTreeCollection) {
|
|
@@ -1489,7 +1508,7 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1489
1508
|
'Nester',
|
|
1490
1509
|
'SubTable',
|
|
1491
1510
|
'PopoverNester'
|
|
1492
|
-
].includes(null === (
|
|
1511
|
+
].includes(null === (_s_xcomponentprops5 = s['x-component-props']) || void 0 === _s_xcomponentprops5 ? void 0 : _s_xcomponentprops5.mode)) {
|
|
1493
1512
|
updateAssociationValues.add(path);
|
|
1494
1513
|
const bufPrefix = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
|
|
1495
1514
|
_getAssociationAppends(s, bufPrefix);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createDetailsWithPaginationUISchema_js_namespaceObject = require("../createDetailsWithPaginationUISchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: vi.fn().mockReturnValue('mocked-uid')
|
|
6
6
|
}));
|
|
7
7
|
describe('createDetailsBlockWithPaginationUISchema', ()=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createDetailsUISchema_js_namespaceObject = require("../createDetailsUISchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: ()=>'fixed-uid'
|
|
6
6
|
}));
|
|
7
7
|
describe('createDetailsBlockWithoutPagingUISchema', ()=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createCreateFormBlockUISchema_js_namespaceObject = require("../createCreateFormBlockUISchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: ()=>'mocked-uid'
|
|
6
6
|
}));
|
|
7
7
|
describe('createCreateFormBlockUISchema', ()=>{
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_vitest_namespaceObject = require("vitest");
|
|
4
4
|
const external_createEditFormBlockUISchema_js_namespaceObject = require("../createEditFormBlockUISchema.js");
|
|
5
|
-
external_vitest_namespaceObject.vi.mock('@
|
|
5
|
+
external_vitest_namespaceObject.vi.mock('@tachybase/schema', ()=>({
|
|
6
6
|
uid: ()=>'uniqueId'
|
|
7
7
|
}));
|
|
8
8
|
describe('createEditFormBlockUISchema', ()=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createTableBlockUISchema_js_namespaceObject = require("../createTableBlockUISchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: ()=>'mocked-uid'
|
|
6
6
|
}));
|
|
7
7
|
describe('createTableBLockSchemaV2', ()=>{
|
package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createTableSelectorUISchema_js_namespaceObject = require("../createTableSelectorUISchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: ()=>'mocked-uid'
|
|
6
6
|
}));
|
|
7
7
|
describe('createTableSelectorSchema', ()=>{
|
package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createFilterCollapseBlockSchema_js_namespaceObject = require("../createFilterCollapseBlockSchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: vi.fn().mockReturnValue('mocked-uid')
|
|
6
6
|
}));
|
|
7
7
|
describe('createCollapseBlockSchema', ()=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_exports__ = {};
|
|
3
3
|
const external_createFilterFormBlockSchema_js_namespaceObject = require("../createFilterFormBlockSchema.js");
|
|
4
|
-
vi.mock('@
|
|
4
|
+
vi.mock('@tachybase/schema', ()=>({
|
|
5
5
|
uid: ()=>'mocked-uid'
|
|
6
6
|
}));
|
|
7
7
|
describe('createFilterFormBlockSchema', ()=>{
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __webpack_exports__ = {};
|
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
CustomTitleComponentFieldSettings: ()=>CustomTitleComponentFieldSettings
|
|
30
|
+
});
|
|
31
|
+
const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
|
|
32
|
+
const FormItem_Settings_js_namespaceObject = require("../../../../schema-component/antd/form-item/FormItem.Settings.js");
|
|
33
|
+
const Table_Column_Decorator_js_namespaceObject = require("../../../../schema-component/antd/table-v2/Table.Column.Decorator.js");
|
|
34
|
+
const useIsShowMultipleSwitch_js_namespaceObject = require("../../../../schema-settings/hooks/useIsShowMultipleSwitch.js");
|
|
35
|
+
const selectComponentFieldSettings_js_namespaceObject = require("../Select/selectComponentFieldSettings.js");
|
|
36
|
+
const CustomTitleComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
|
|
37
|
+
name: 'fieldSettings:component:CustomTitle',
|
|
38
|
+
items: [
|
|
39
|
+
{
|
|
40
|
+
...selectComponentFieldSettings_js_namespaceObject.fieldComponent,
|
|
41
|
+
useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
...selectComponentFieldSettings_js_namespaceObject.CustomTitle,
|
|
45
|
+
useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
...selectComponentFieldSettings_js_namespaceObject.setTheDataScope,
|
|
49
|
+
useVisible () {
|
|
50
|
+
const isSelectFieldMode = (0, FormItem_Settings_js_namespaceObject.useIsSelectFieldMode)();
|
|
51
|
+
const isFieldReadPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
|
|
52
|
+
return isSelectFieldMode && !isFieldReadPretty;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
...selectComponentFieldSettings_js_namespaceObject.setDefaultSortingRules,
|
|
57
|
+
useComponentProps () {
|
|
58
|
+
const { fieldSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
|
|
59
|
+
return {
|
|
60
|
+
fieldSchema
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
useVisible () {
|
|
64
|
+
const isSelectFieldMode = (0, FormItem_Settings_js_namespaceObject.useIsSelectFieldMode)();
|
|
65
|
+
const isFieldReadPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
|
|
66
|
+
return isSelectFieldMode && !isFieldReadPretty;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
...selectComponentFieldSettings_js_namespaceObject.quickCreate,
|
|
71
|
+
useVisible () {
|
|
72
|
+
const isAssociationField = (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)();
|
|
73
|
+
const readPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
|
|
74
|
+
const { fieldSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
|
|
75
|
+
return isAssociationField && !fieldSchema && !readPretty;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
...selectComponentFieldSettings_js_namespaceObject.allowMultiple,
|
|
80
|
+
useVisible () {
|
|
81
|
+
const isAssociationField = (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)();
|
|
82
|
+
const IsShowMultipleSwitch = (0, useIsShowMultipleSwitch_js_namespaceObject.useIsShowMultipleSwitch)();
|
|
83
|
+
return isAssociationField && IsShowMultipleSwitch();
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
...selectComponentFieldSettings_js_namespaceObject.enableLink,
|
|
88
|
+
useVisible () {
|
|
89
|
+
const readPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
|
|
90
|
+
return (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)() && readPretty;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
var __webpack_export_target__ = exports;
|
|
96
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
97
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
98
|
+
value: true
|
|
99
|
+
});
|
|
@@ -39,8 +39,15 @@ var __webpack_require__ = {};
|
|
|
39
39
|
var __webpack_exports__ = {};
|
|
40
40
|
__webpack_require__.r(__webpack_exports__);
|
|
41
41
|
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
allowMultiple: ()=>allowMultiple,
|
|
43
|
+
fieldComponent: ()=>fieldComponent,
|
|
44
|
+
quickCreate: ()=>quickCreate,
|
|
45
|
+
setDefaultSortingRules: ()=>setDefaultSortingRules,
|
|
46
|
+
titleField: ()=>titleField,
|
|
47
|
+
CustomTitle: ()=>CustomTitle,
|
|
48
|
+
enableLink: ()=>enableLink,
|
|
42
49
|
selectComponentFieldSettings: ()=>selectComponentFieldSettings,
|
|
43
|
-
|
|
50
|
+
setTheDataScope: ()=>setTheDataScope
|
|
44
51
|
});
|
|
45
52
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
46
53
|
require("react");
|
|
@@ -370,6 +377,67 @@ const fieldComponent = {
|
|
|
370
377
|
};
|
|
371
378
|
}
|
|
372
379
|
};
|
|
380
|
+
const CustomTitle = {
|
|
381
|
+
name: 'customTitle',
|
|
382
|
+
type: 'modal',
|
|
383
|
+
useComponentProps () {
|
|
384
|
+
var _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops;
|
|
385
|
+
const schema = (0, schema_namespaceObject.useFieldSchema)();
|
|
386
|
+
const { fieldSchema: tableColumnSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
|
|
387
|
+
const fieldSchema = tableColumnSchema || schema;
|
|
388
|
+
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
389
|
+
const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
|
|
390
|
+
const options = (0, external_schema_settings_index_js_namespaceObject.useFormulaTitleOptions)();
|
|
391
|
+
const def = null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : null === (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) || void 0 === _fieldSchema_xcomponentprops_fieldNames ? void 0 : _fieldSchema_xcomponentprops_fieldNames.formula;
|
|
392
|
+
const field = (0, schema_namespaceObject.useField)();
|
|
393
|
+
return {
|
|
394
|
+
title: t('Custom option label'),
|
|
395
|
+
schema: {
|
|
396
|
+
type: 'object',
|
|
397
|
+
title: t('Custom option label'),
|
|
398
|
+
properties: {
|
|
399
|
+
formula: {
|
|
400
|
+
required: true,
|
|
401
|
+
'x-decorator': 'FormItem',
|
|
402
|
+
'x-component': 'Variable.TextArea',
|
|
403
|
+
'x-component-props': {
|
|
404
|
+
scope: options
|
|
405
|
+
},
|
|
406
|
+
default: def
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
onSubmit: (param)=>{
|
|
411
|
+
let { formula } = param;
|
|
412
|
+
if (formula) {
|
|
413
|
+
var _fieldSchema_xcomponentprops, _field_componentProps;
|
|
414
|
+
const componentProps = {
|
|
415
|
+
...fieldSchema['x-component-props'],
|
|
416
|
+
fieldNames: {
|
|
417
|
+
...null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops['fieldNames'],
|
|
418
|
+
formula
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
field.componentProps = {
|
|
422
|
+
...field.componentProps,
|
|
423
|
+
fieldNames: {
|
|
424
|
+
...null === (_field_componentProps = field.componentProps) || void 0 === _field_componentProps ? void 0 : _field_componentProps.fieldNames,
|
|
425
|
+
formula
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
fieldSchema['x-component-props'] = componentProps;
|
|
429
|
+
dn.emit('patch', {
|
|
430
|
+
schema: {
|
|
431
|
+
'x-uid': fieldSchema['x-uid'],
|
|
432
|
+
'x-component-props': componentProps
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
dn.refresh();
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
};
|
|
373
441
|
const selectComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
|
|
374
442
|
name: 'fieldSettings:component:Select',
|
|
375
443
|
items: [
|
|
@@ -426,11 +494,6 @@ const selectComponentFieldSettings = new SchemaSettings_js_namespaceObject.Schem
|
|
|
426
494
|
const readPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
|
|
427
495
|
return (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)() && readPretty;
|
|
428
496
|
}
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
name: 'formulatitleField',
|
|
432
|
-
Component: external_schema_settings_index_js_namespaceObject.EditFormulaTitleField,
|
|
433
|
-
useVisible: external_schema_settings_index_js_namespaceObject.useFormulaTitleVisible
|
|
434
497
|
}
|
|
435
498
|
]
|
|
436
499
|
});
|
|
@@ -301,7 +301,7 @@ function WorkflowSelectComponent(param) {
|
|
|
301
301
|
const [workflowCollection, setWorkflowCollection] = (0, external_react_namespaceObject.useState)((0, external_collection_manager_index_js_namespaceObject.joinCollectionName)(dataSourceKey, baseCollection.name));
|
|
302
302
|
const compile = (0, external_index_js_namespaceObject.useCompile)();
|
|
303
303
|
const workflowPlugin = (0, hooks_index_js_namespaceObject.usePlugin)('workflow');
|
|
304
|
-
|
|
304
|
+
(0, external_react_namespaceObject.useMemo)(()=>workflowPlugin.getTriggersOptions().filter((item)=>'function' == typeof item.options.isActionTriggerable || true === item.options.isActionTriggerable).map((item)=>item.value), [
|
|
305
305
|
workflowPlugin
|
|
306
306
|
]);
|
|
307
307
|
(0, schema_namespaceObject.useFormEffects)(()=>{
|
|
@@ -354,13 +354,11 @@ function WorkflowSelectComponent(param) {
|
|
|
354
354
|
action: 'list',
|
|
355
355
|
params: {
|
|
356
356
|
filter: {
|
|
357
|
-
type:
|
|
358
|
-
enabled:
|
|
357
|
+
type: void 0 === props.filterType ? void 0 : props.filterType,
|
|
358
|
+
enabled: void 0 === props.filterEnabled || props.filterEnabled,
|
|
359
359
|
'config.collection': noCollection ? void 0 : workflowCollection,
|
|
360
|
-
sync:
|
|
361
|
-
key: props.
|
|
362
|
-
$ne: props.parentKey
|
|
363
|
-
} : void 0
|
|
360
|
+
sync: void 0 === props.filterSync ? void 0 : props.filterSync,
|
|
361
|
+
key: void 0 === props.filterKey ? void 0 : props.filterKey
|
|
364
362
|
}
|
|
365
363
|
}
|
|
366
364
|
},
|
|
@@ -49,7 +49,7 @@ const AssociationCascader = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
49
49
|
fields: [
|
|
50
50
|
titleField
|
|
51
51
|
],
|
|
52
|
-
|
|
52
|
+
paginate: false,
|
|
53
53
|
filter: (null == props ? void 0 : null === (_props_params = props.params) || void 0 === _props_params ? void 0 : _props_params.filter) ? {
|
|
54
54
|
...null == props ? void 0 : null === (_props_params1 = props.params) || void 0 === _props_params1 ? void 0 : _props_params1.filter
|
|
55
55
|
} : {}
|
|
@@ -114,7 +114,7 @@ const EditableAssociationField = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
114
114
|
'PopoverNester' === currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InternalPopoverNester_js_namespaceObject.InternaPopoverNester, {
|
|
115
115
|
...props
|
|
116
116
|
}),
|
|
117
|
-
'Select' === currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AssociationSelect, {
|
|
117
|
+
('Select' === currentMode || 'CustomTitle' === currentMode) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AssociationSelect, {
|
|
118
118
|
...props
|
|
119
119
|
}),
|
|
120
120
|
'SubTable' === currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InternalSubTable_js_namespaceObject.InternalSubTable, {
|
|
@@ -122,7 +122,7 @@ const Cascade = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
122
122
|
onDropdownVisibleChange(true);
|
|
123
123
|
setSelectedOptions(defaultData);
|
|
124
124
|
} else resource.list({
|
|
125
|
-
|
|
125
|
+
paginate: false,
|
|
126
126
|
filter: propsValue.id ? {
|
|
127
127
|
id: {
|
|
128
128
|
$eq: propsValue.id
|
|
@@ -148,7 +148,7 @@ const Cascade = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
148
148
|
const handleGetOptions = async ()=>{
|
|
149
149
|
var _response_data;
|
|
150
150
|
const response = await resource.list({
|
|
151
|
-
|
|
151
|
+
paginate: false,
|
|
152
152
|
filter: (0, utils_js_namespaceObject.mergeFilter)([
|
|
153
153
|
fieldFilter,
|
|
154
154
|
filter
|
|
@@ -74,7 +74,7 @@ const ReadPrettyInternalViewer = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
74
74
|
const { getCollection } = (0, external_collection_manager_index_js_namespaceObject.useCollectionManager_deprecated)();
|
|
75
75
|
const { enableLink } = fieldSchema['x-component-props'] || {};
|
|
76
76
|
const field = (0, schema_namespaceObject.useField)();
|
|
77
|
-
const
|
|
77
|
+
const defFieldNames = (0, external_hooks_js_namespaceObject.useFieldNames)(props);
|
|
78
78
|
const [visible, setVisible] = (0, external_react_namespaceObject.useState)(false);
|
|
79
79
|
const insertViewer = (0, external_hooks_js_namespaceObject.useInsertSchema)('Viewer');
|
|
80
80
|
const { options: collectionField } = (0, external_hooks_js_namespaceObject.useAssociationFieldContext)();
|
|
@@ -86,7 +86,8 @@ const ReadPrettyInternalViewer = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
86
86
|
const isTreeCollection = (null == targetCollection ? void 0 : targetCollection.template) === 'tree';
|
|
87
87
|
const ellipsisWithTooltipRef = (0, external_react_namespaceObject.useRef)();
|
|
88
88
|
const getLabelUiSchema = (0, external_util_js_namespaceObject.useLabelUiSchemaV2)();
|
|
89
|
-
const
|
|
89
|
+
const { formulaRecord, fieldNames } = customTitle(recordCtx, fieldSchema, defFieldNames);
|
|
90
|
+
const renderRecords = ()=>(0, schema_namespaceObject.toArr)(formulaRecord[fieldSchema['name']] || props.value).map((record, index, arr)=>{
|
|
90
91
|
var _getCollection_options, _getCollection, _targetCollection_fieldsMap_, _targetCollection_fieldsMap, _getCollection_options1, _getCollection1, _targetCollection_fieldsMap_1, _targetCollection_fieldsMap1;
|
|
91
92
|
const value = null == record ? void 0 : record[(null == fieldNames ? void 0 : fieldNames.label) || 'label'];
|
|
92
93
|
const label = isTreeCollection ? (0, external_InternalCascadeSelect_js_namespaceObject.transformNestedData)(record).map((o)=>null == o ? void 0 : o[(null == fieldNames ? void 0 : fieldNames.label) || 'label']).join(' / ') : isObject(value) ? (null === (_getCollection = getCollection(null == targetCollection ? void 0 : null === (_targetCollection_fieldsMap = targetCollection.fieldsMap) || void 0 === _targetCollection_fieldsMap ? void 0 : null === (_targetCollection_fieldsMap_ = _targetCollection_fieldsMap[(null == fieldNames ? void 0 : fieldNames.label) || 'label']) || void 0 === _targetCollection_fieldsMap_ ? void 0 : _targetCollection_fieldsMap_.target)) || void 0 === _getCollection ? void 0 : null === (_getCollection_options = _getCollection.options) || void 0 === _getCollection_options ? void 0 : _getCollection_options.titleField) ? value[null === (_getCollection1 = getCollection(null == targetCollection ? void 0 : null === (_targetCollection_fieldsMap1 = targetCollection.fieldsMap) || void 0 === _targetCollection_fieldsMap1 ? void 0 : null === (_targetCollection_fieldsMap_1 = _targetCollection_fieldsMap1[(null == fieldNames ? void 0 : fieldNames.label) || 'label']) || void 0 === _targetCollection_fieldsMap_1 ? void 0 : _targetCollection_fieldsMap_1.target)) || void 0 === _getCollection1 ? void 0 : null === (_getCollection_options1 = _getCollection1.options) || void 0 === _getCollection_options1 ? void 0 : _getCollection_options1.titleField] : JSON.stringify(value) : value;
|
|
@@ -141,11 +142,11 @@ const ReadPrettyInternalViewer = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
141
142
|
const collectionFieldNames = null == fieldSchema ? void 0 : null === (_fieldSchema_xcollectionfield = fieldSchema['x-collection-field']) || void 0 === _fieldSchema_xcollectionfield ? void 0 : _fieldSchema_xcollectionfield.split('.');
|
|
142
143
|
return collectionFieldNames && collectionFieldNames.length > 2 ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_record_provider_index_js_namespaceObject.RecordProvider, {
|
|
143
144
|
record: record,
|
|
144
|
-
parent:
|
|
145
|
+
parent: formulaRecord[collectionFieldNames[1]],
|
|
145
146
|
children: renderWithoutTableFieldResourceProvider()
|
|
146
147
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_record_provider_index_js_namespaceObject.RecordProvider, {
|
|
147
148
|
record: record,
|
|
148
|
-
parent:
|
|
149
|
+
parent: formulaRecord,
|
|
149
150
|
children: renderWithoutTableFieldResourceProvider()
|
|
150
151
|
});
|
|
151
152
|
};
|
|
@@ -178,6 +179,60 @@ const ReadPrettyInternalViewer = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
178
179
|
}, {
|
|
179
180
|
displayName: 'ReadPrettyInternalViewer'
|
|
180
181
|
});
|
|
182
|
+
const customTitle = (record, schema, fieldNames)=>{
|
|
183
|
+
var _schema_xcomponentprops, _schema_xcomponentprops_fieldNames, _schema_xcomponentprops1;
|
|
184
|
+
if ((null === (_schema_xcomponentprops = schema['x-component-props']) || void 0 === _schema_xcomponentprops ? void 0 : _schema_xcomponentprops.mode) === 'CustomTitle' && (null === (_schema_xcomponentprops1 = schema['x-component-props']) || void 0 === _schema_xcomponentprops1 ? void 0 : null === (_schema_xcomponentprops_fieldNames = _schema_xcomponentprops1.fieldNames) || void 0 === _schema_xcomponentprops_fieldNames ? void 0 : _schema_xcomponentprops_fieldNames.formula)) {
|
|
185
|
+
var _schema_xcomponentprops_fieldNames1, _schema_xcomponentprops2;
|
|
186
|
+
const regex = /{{(.*?)}}/g;
|
|
187
|
+
const valueOject = {};
|
|
188
|
+
let outputStr = '';
|
|
189
|
+
let match;
|
|
190
|
+
const formula = null === (_schema_xcomponentprops2 = schema['x-component-props']) || void 0 === _schema_xcomponentprops2 ? void 0 : null === (_schema_xcomponentprops_fieldNames1 = _schema_xcomponentprops2.fieldNames) || void 0 === _schema_xcomponentprops_fieldNames1 ? void 0 : _schema_xcomponentprops_fieldNames1.formula;
|
|
191
|
+
while(match = regex.exec(formula))if (match[1].includes('.')) {
|
|
192
|
+
const fieldList = [
|
|
193
|
+
schema.name
|
|
194
|
+
];
|
|
195
|
+
fieldList.push(...match[1].split('.'));
|
|
196
|
+
const result = {
|
|
197
|
+
currRecord: record,
|
|
198
|
+
value: ''
|
|
199
|
+
};
|
|
200
|
+
fieldList.forEach((value, index)=>{
|
|
201
|
+
var _result_currRecord;
|
|
202
|
+
if (fieldList.length - 1 !== index) {
|
|
203
|
+
var _result_currRecord1;
|
|
204
|
+
result.currRecord = null === (_result_currRecord1 = result.currRecord) || void 0 === _result_currRecord1 ? void 0 : _result_currRecord1[value];
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
result.value = null === (_result_currRecord = result.currRecord) || void 0 === _result_currRecord ? void 0 : _result_currRecord[value];
|
|
208
|
+
});
|
|
209
|
+
var _result_value;
|
|
210
|
+
valueOject[match[1]] = null !== (_result_value = result.value) && void 0 !== _result_value ? _result_value : '';
|
|
211
|
+
} else {
|
|
212
|
+
var _record_schema_name;
|
|
213
|
+
valueOject[match[1]] = (null === (_record_schema_name = record[schema['name']]) || void 0 === _record_schema_name ? void 0 : _record_schema_name[match[1]]) || '';
|
|
214
|
+
}
|
|
215
|
+
outputStr = replacePlaceholders(formula, valueOject);
|
|
216
|
+
record[schema['name']] = {
|
|
217
|
+
...record[schema['name']],
|
|
218
|
+
customLabel: outputStr
|
|
219
|
+
};
|
|
220
|
+
return {
|
|
221
|
+
formulaRecord: record,
|
|
222
|
+
fieldNames: {
|
|
223
|
+
...fieldNames,
|
|
224
|
+
label: 'customLabel'
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
return {
|
|
229
|
+
formulaRecord: record,
|
|
230
|
+
fieldNames
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
const replacePlaceholders = (inputStr, values)=>inputStr.replace(/{{(.*?)}}/g, function(match, placeholder) {
|
|
234
|
+
return Object.prototype.hasOwnProperty.call(values, placeholder) ? values[placeholder] : match;
|
|
235
|
+
});
|
|
181
236
|
var __webpack_export_target__ = exports;
|
|
182
237
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
183
238
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
@@ -46,7 +46,8 @@ const ReadPrettyAssociationField = (0, schema_namespaceObject.observer)((props)=
|
|
|
46
46
|
'Select',
|
|
47
47
|
'Picker',
|
|
48
48
|
'CascadeSelect',
|
|
49
|
-
'Cascader'
|
|
49
|
+
'Cascader',
|
|
50
|
+
'CustomTitle'
|
|
50
51
|
].includes(currentMode) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InternalViewer_js_namespaceObject.ReadPrettyInternalViewer, {
|
|
51
52
|
...props
|
|
52
53
|
}),
|
|
@@ -126,7 +126,7 @@ const InternalTabs = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
126
126
|
if ((null == tabparams ? void 0 : tabparams.filter) && !fieldServiceFilter) return;
|
|
127
127
|
if ((quickAddField || 'none' !== quickAddField || !isQuickAdd) && fieldSchema.properties) {
|
|
128
128
|
const params = {
|
|
129
|
-
|
|
129
|
+
paginate: false,
|
|
130
130
|
filter: JSON.stringify(fieldServiceFilter)
|
|
131
131
|
};
|
|
132
132
|
if (quickAddParentField && (null == quickAddParentField ? void 0 : quickAddParentField.value) !== 'none') {
|
|
@@ -138,7 +138,7 @@ const InternalTabs = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
138
138
|
const parentItem = await api.request({
|
|
139
139
|
url: collection.name + ':list',
|
|
140
140
|
params: {
|
|
141
|
-
|
|
141
|
+
paginate: false
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
itemParams['parentTitleField'] = collection.titleField;
|
|
@@ -51,7 +51,7 @@ const AutoComplete = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
51
51
|
const { data: { data: rawOptions } } = await api.request({
|
|
52
52
|
url: fieldSchema['collectionName'] + ':list',
|
|
53
53
|
params: {
|
|
54
|
-
|
|
54
|
+
paginate: false,
|
|
55
55
|
filter: fieldFilter ? {
|
|
56
56
|
...fieldFilter.filter
|
|
57
57
|
} : {}
|