@steedos-widgets/amis-lib 6.10.28 → 6.10.30
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 +51 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +51 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +86 -83
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/input_table.d.ts +1 -0
- package/dist/types/workflow/approve.d.ts +9 -1
- package/dist/types/workflow/flow.d.ts +31 -6
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -2439,7 +2439,7 @@ async function getMobileTableColumns(fields, options){
|
|
|
2439
2439
|
link: url,
|
|
2440
2440
|
innerClassName: {
|
|
2441
2441
|
"steedos-listview-item block text-gray-500":"true",
|
|
2442
|
-
"
|
|
2442
|
+
"w-full": "${display == 'split'}",
|
|
2443
2443
|
},
|
|
2444
2444
|
body: {
|
|
2445
2445
|
"type": "wrapper",
|
|
@@ -6636,7 +6636,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
6636
6636
|
"className": "slds-filters__footer slds-grid slds-shrink-none flex justify-between p-0"
|
|
6637
6637
|
}],
|
|
6638
6638
|
"size": "xs",
|
|
6639
|
-
"className": "slds-filters px-
|
|
6639
|
+
"className": "slds-filters px-3"
|
|
6640
6640
|
},
|
|
6641
6641
|
"size": "xs",
|
|
6642
6642
|
"className": `p-0`,
|
|
@@ -9136,12 +9136,12 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
9136
9136
|
// if(toolbarCount){
|
|
9137
9137
|
// toolbars.push(toolbarCount);
|
|
9138
9138
|
// }
|
|
9139
|
-
toolbars.push(toolbarReloadButton);
|
|
9140
|
-
toolbars.push(toolbarDQuickSearchBox);
|
|
9141
9139
|
if(toolbarFilter){
|
|
9142
9140
|
toolbars.push(toolbarFilter);
|
|
9143
9141
|
}
|
|
9142
|
+
toolbars.push(toolbarReloadButton);
|
|
9144
9143
|
toolbars.push(toolbarDisplayAsButton);
|
|
9144
|
+
toolbars.push(toolbarDQuickSearchBox);
|
|
9145
9145
|
return [
|
|
9146
9146
|
// "bulkActions",
|
|
9147
9147
|
...(headerToolbarItems || []),
|
|
@@ -9456,7 +9456,7 @@ async function getObjectCRUD(objectSchema, fields, options){
|
|
|
9456
9456
|
const bodyProps = {
|
|
9457
9457
|
// toolbar: getToolbar(),
|
|
9458
9458
|
// headerToolbar: getObjectHeaderToolbar(objectSchema, options.formFactor, {showDisplayAs}),
|
|
9459
|
-
headerToolbarClassName: "px-
|
|
9459
|
+
headerToolbarClassName: "px-3 py-2 border-b",
|
|
9460
9460
|
footerToolbar: getObjectFooterToolbar(objectSchema, options.formFactor, {
|
|
9461
9461
|
...options,
|
|
9462
9462
|
disableStatistics: options.queryCount === false
|
|
@@ -10448,7 +10448,7 @@ async function getObjectRelatedListsMiniSchema(objectApiName){
|
|
|
10448
10448
|
* @Author: baozhoutao@steedos.com
|
|
10449
10449
|
* @Date: 2022-07-05 15:55:39
|
|
10450
10450
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
10451
|
-
* @LastEditTime: 2025-12-04
|
|
10451
|
+
* @LastEditTime: 2025-12-04 23:20:29
|
|
10452
10452
|
* @Description:
|
|
10453
10453
|
*/
|
|
10454
10454
|
|
|
@@ -10734,6 +10734,10 @@ async function getViewSchema(objectName, recordId, ctx) {
|
|
|
10734
10734
|
|
|
10735
10735
|
function isListViewSupported(listView) {
|
|
10736
10736
|
if(listView.type === "calendar" || listView.type === "timeline"){
|
|
10737
|
+
var isEnterprise = window.Builder?.settings.platform && ["platform-standard", "platform-enterprise", "platform-professional"].includes(window.Builder.settings.platform.product);
|
|
10738
|
+
if (!isEnterprise) {
|
|
10739
|
+
return false;
|
|
10740
|
+
}
|
|
10737
10741
|
return listView.type === "timeline" ? (!!window.BuilderFullCalendarScheduler) : (!!window.BuilderFullCalendar || !!window.BuilderFullCalendarScheduler);
|
|
10738
10742
|
}
|
|
10739
10743
|
return true;
|
|
@@ -14580,7 +14584,7 @@ function uuidv4() {
|
|
|
14580
14584
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
14581
14585
|
* @Date: 2023-11-15 09:50:22
|
|
14582
14586
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
14583
|
-
* @LastEditTime: 2025-
|
|
14587
|
+
* @LastEditTime: 2025-12-04 22:52:15
|
|
14584
14588
|
*/
|
|
14585
14589
|
|
|
14586
14590
|
/**
|
|
@@ -16181,10 +16185,11 @@ const getAmisInputTableSchema = async (props) => {
|
|
|
16181
16185
|
"visible": props.$schema.visible,
|
|
16182
16186
|
"hiddenOn": props.$schema.hiddenOn,
|
|
16183
16187
|
"hidden": props.$schema.hidden,
|
|
16188
|
+
"requiredOn": props.$schema.requiredOn,
|
|
16184
16189
|
"required": props.required,
|
|
16185
16190
|
className,
|
|
16186
16191
|
};
|
|
16187
|
-
// console.log("
|
|
16192
|
+
// console.log("=inputtable==schema===", schema);
|
|
16188
16193
|
return schema;
|
|
16189
16194
|
};
|
|
16190
16195
|
|
|
@@ -17622,7 +17627,7 @@ const getApprovalDrawerSchema = async (instance, events) => {
|
|
|
17622
17627
|
bodyClassName: 'p-2',
|
|
17623
17628
|
footerClassName: 'p-2 pt-0',
|
|
17624
17629
|
drawerContainer: ()=>{
|
|
17625
|
-
return document.body;
|
|
17630
|
+
return document.querySelector(".steedos-amis-instance-view");//document.body;
|
|
17626
17631
|
},
|
|
17627
17632
|
body: [
|
|
17628
17633
|
{
|
|
@@ -17720,6 +17725,21 @@ const getApprovalDrawerSchema = async (instance, events) => {
|
|
|
17720
17725
|
],
|
|
17721
17726
|
id: "u:approve_8861156e0b23",
|
|
17722
17727
|
position: "bottom",
|
|
17728
|
+
"onEvent": {
|
|
17729
|
+
"cancel": {
|
|
17730
|
+
"actions": [
|
|
17731
|
+
{
|
|
17732
|
+
"actionType": "custom",
|
|
17733
|
+
"script": (context, doAction, event)=>{
|
|
17734
|
+
var instancePageContent = document.querySelector(".steedos-amis-instance-view .antd-Page-content");
|
|
17735
|
+
if (instancePageContent){
|
|
17736
|
+
$(instancePageContent).css("paddingBottom", "0px");
|
|
17737
|
+
}
|
|
17738
|
+
}
|
|
17739
|
+
}
|
|
17740
|
+
]
|
|
17741
|
+
}
|
|
17742
|
+
},
|
|
17723
17743
|
actions: [
|
|
17724
17744
|
{
|
|
17725
17745
|
type: "button",
|
|
@@ -17990,8 +18010,8 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17990
18010
|
/*
|
|
17991
18011
|
* @Author: baozhoutao@steedos.com
|
|
17992
18012
|
* @Date: 2022-09-07 16:20:45
|
|
17993
|
-
* @LastEditors:
|
|
17994
|
-
* @LastEditTime: 2025-12-
|
|
18013
|
+
* @LastEditors: yinlianghui yinlianghui@hotoa.com
|
|
18014
|
+
* @LastEditTime: 2025-12-09 15:28:25
|
|
17995
18015
|
* @Description:
|
|
17996
18016
|
*/
|
|
17997
18017
|
|
|
@@ -18927,6 +18947,23 @@ const getApproveButton = async (instance, events)=>{
|
|
|
18927
18947
|
actionType: "drawer",
|
|
18928
18948
|
drawer: await getApprovalDrawerSchema(instance, events),
|
|
18929
18949
|
},
|
|
18950
|
+
{
|
|
18951
|
+
"actionType": "wait",
|
|
18952
|
+
"args": {
|
|
18953
|
+
"time": 1000 //延时等底部签批栏drawer弹出再执行下面的添加审批单内部底边距脚本,不等的话拿不到drawer高度
|
|
18954
|
+
}
|
|
18955
|
+
},
|
|
18956
|
+
{
|
|
18957
|
+
"actionType": "custom",
|
|
18958
|
+
"script": (context, doAction, event) => {
|
|
18959
|
+
// 每次点开底部签批栏添加审批单内部底边距以解决签批栏会挡住申请单内容的问题
|
|
18960
|
+
var instancePageContent = document.querySelector(".steedos-amis-instance-view .antd-Page-content");
|
|
18961
|
+
var approvalDrawerContent = document.querySelector(".approval-drawer .antd-Drawer-content");
|
|
18962
|
+
if (instancePageContent && approvalDrawerContent) {
|
|
18963
|
+
$(instancePageContent).css("paddingBottom", `${approvalDrawerContent.clientHeight + 10}px`);
|
|
18964
|
+
}
|
|
18965
|
+
}
|
|
18966
|
+
}
|
|
18930
18967
|
],
|
|
18931
18968
|
},
|
|
18932
18969
|
},
|
|
@@ -19035,7 +19072,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
19035
19072
|
"recordId": instance._id,
|
|
19036
19073
|
"id": "u:e6b2adbe0e21",
|
|
19037
19074
|
"showRecordTitle": false,
|
|
19038
|
-
"className": "
|
|
19075
|
+
"className": "sm:rounded-tl sm:rounded-tr"
|
|
19039
19076
|
},
|
|
19040
19077
|
"css": {
|
|
19041
19078
|
".steedos-amis-instance-view-body": {
|
|
@@ -19053,8 +19090,8 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
19053
19090
|
"font-size": "14px",
|
|
19054
19091
|
"font-weight": "500"
|
|
19055
19092
|
},
|
|
19056
|
-
".steedos-
|
|
19057
|
-
"
|
|
19093
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
19094
|
+
"width": "1024px"
|
|
19058
19095
|
},
|
|
19059
19096
|
".antd-List-placeholder": {
|
|
19060
19097
|
"display": "none"
|