@steedos-widgets/amis-lib 6.3.0-beta.22 → 6.3.0-beta.24
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/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +19 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +19 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +105 -105
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/file.d.ts +1 -1
- package/dist/types/lib/input_table.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1259,7 +1259,7 @@ async function getLookupLinkOnClick(field, options) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
|
-
const getAmisFileReadonlySchema = async (steedosField,ctx)=>{
|
|
1262
|
+
const getAmisFileReadonlySchema = async (steedosField,ctx = {})=>{
|
|
1263
1263
|
const type = steedosField.type;
|
|
1264
1264
|
const { appId, formFactor } = ctx.amisData || {};
|
|
1265
1265
|
const amisFieldType = getAmisFieldType$1(steedosField, true);
|
|
@@ -2418,7 +2418,7 @@ async function getTableColumns(object, fields, options){
|
|
|
2418
2418
|
toggled: field.toggled,
|
|
2419
2419
|
static: true,
|
|
2420
2420
|
className,
|
|
2421
|
-
...getAmisFileReadonlySchema(field)
|
|
2421
|
+
...await getAmisFileReadonlySchema(field)
|
|
2422
2422
|
}, fieldAmis, {name: field.name});
|
|
2423
2423
|
}
|
|
2424
2424
|
else if(field.type === 'select'){
|
|
@@ -6931,7 +6931,7 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
|
|
|
6931
6931
|
},
|
|
6932
6932
|
{
|
|
6933
6933
|
"type": "button",
|
|
6934
|
-
"className": "steedos-listview-edit-button",
|
|
6934
|
+
"className": "steedos-listview-edit-button ml-3",
|
|
6935
6935
|
"icon": "fa fa-edit",
|
|
6936
6936
|
"actionType": "dialog",
|
|
6937
6937
|
"hiddenOn": `!((global.user.is_space_admin || global.userId == '${listView.owner || ""}') && !!'${listView.owner || ""}')`,
|
|
@@ -7366,6 +7366,13 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
|
|
|
7366
7366
|
"btnClassName": "!bg-transparent !border-none !hover:border-none text-lg h-5 font-bold p-0 text-black leading-none",
|
|
7367
7367
|
"buttons": [
|
|
7368
7368
|
...listViewButtonOptions,
|
|
7369
|
+
{
|
|
7370
|
+
"children": [
|
|
7371
|
+
{
|
|
7372
|
+
"type": "divider"
|
|
7373
|
+
}
|
|
7374
|
+
]
|
|
7375
|
+
},
|
|
7369
7376
|
listviewNewButton
|
|
7370
7377
|
]
|
|
7371
7378
|
}
|
|
@@ -11967,7 +11974,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
11967
11974
|
}
|
|
11968
11975
|
|
|
11969
11976
|
var fieldFilters = ${JSON.stringify(field.filters)};
|
|
11970
|
-
var currentAmis = amisRequire('amis');
|
|
11977
|
+
var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
|
|
11971
11978
|
//递归fieldFilters数组,检查每一个元素,判断若是公式,就仅把它解析
|
|
11972
11979
|
function traverseNestedArray(arr) {
|
|
11973
11980
|
for (let i = 0; i < arr.length; i++) {
|
|
@@ -12388,7 +12395,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
12388
12395
|
// }
|
|
12389
12396
|
|
|
12390
12397
|
var fieldFilters = ${JSON.stringify(field.filters)};
|
|
12391
|
-
var currentAmis = amisRequire('amis');
|
|
12398
|
+
var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
|
|
12392
12399
|
//递归fieldFilters数组,检查每一个元素,判断若是公式,就仅把它解析
|
|
12393
12400
|
function traverseNestedArray(arr) {
|
|
12394
12401
|
for (let i = 0; i < arr.length; i++) {
|
|
@@ -14161,7 +14168,7 @@ function uuidv4() {
|
|
|
14161
14168
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
14162
14169
|
* @Date: 2023-11-15 09:50:22
|
|
14163
14170
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
14164
|
-
* @LastEditTime: 2024-06-
|
|
14171
|
+
* @LastEditTime: 2024-06-14 06:31:33
|
|
14165
14172
|
*/
|
|
14166
14173
|
|
|
14167
14174
|
/**
|
|
@@ -14380,7 +14387,8 @@ function getInputTableCell(field, showAsInlineEditMode) {
|
|
|
14380
14387
|
return {
|
|
14381
14388
|
"type": "steedos-field",
|
|
14382
14389
|
"config": Object.assign({}, field, {
|
|
14383
|
-
label: false
|
|
14390
|
+
label: false,
|
|
14391
|
+
description: null
|
|
14384
14392
|
}),
|
|
14385
14393
|
// quickEdit: {
|
|
14386
14394
|
// "type": "steedos-field",
|
|
@@ -14397,7 +14405,8 @@ function getInputTableCell(field, showAsInlineEditMode) {
|
|
|
14397
14405
|
return {
|
|
14398
14406
|
"type": "steedos-field",
|
|
14399
14407
|
"config": Object.assign({}, field, {
|
|
14400
|
-
label: false
|
|
14408
|
+
label: false,
|
|
14409
|
+
description: null
|
|
14401
14410
|
}),
|
|
14402
14411
|
inInputTable: true,
|
|
14403
14412
|
"static": true,
|
|
@@ -15643,7 +15652,8 @@ const getAmisInputTableSchema = async (props) => {
|
|
|
15643
15652
|
}
|
|
15644
15653
|
return value;
|
|
15645
15654
|
},
|
|
15646
|
-
"required": props.required
|
|
15655
|
+
"required": props.required,
|
|
15656
|
+
"description": props.description
|
|
15647
15657
|
};
|
|
15648
15658
|
if (buttonsForColumnOperations.length) {
|
|
15649
15659
|
inputTableSchema.columns.unshift({
|