@steedos-widgets/amis-object 6.10.1-beta.35 → 6.10.1-beta.36
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/amis/AmisInstanceDetail.d.ts +6 -0
- package/dist/amis-object.cjs.css +32 -7
- package/dist/amis-object.cjs.js +189 -121
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +32 -7
- package/dist/amis-object.esm.js +189 -121
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +32 -7
- package/dist/amis-object.umd.js +25 -23
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +19 -19
- package/dist/meta.js +8 -11
- package/dist/pages/PageObject.d.ts +24 -1
- package/package.json +3 -3
|
@@ -15,6 +15,9 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
15
15
|
className: string;
|
|
16
16
|
};
|
|
17
17
|
css: {
|
|
18
|
+
".steedos-amis-instance-view-body": {
|
|
19
|
+
height: string;
|
|
20
|
+
};
|
|
18
21
|
".instance-approve-history .antd-Table-table thead": {
|
|
19
22
|
display: string;
|
|
20
23
|
};
|
|
@@ -36,6 +39,9 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
36
39
|
".antd-List-placeholder": {
|
|
37
40
|
display: string;
|
|
38
41
|
};
|
|
42
|
+
".steedos-amis-instance-view .antd-Table-fixedTop": {
|
|
43
|
+
top: string;
|
|
44
|
+
};
|
|
39
45
|
".steedos-amis-instance-view .antd-Table-fixedTop:after": {
|
|
40
46
|
"box-shadow": string;
|
|
41
47
|
};
|
package/dist/amis-object.cjs.css
CHANGED
|
@@ -430,6 +430,10 @@ fieldset.antd-Collapse > legend{
|
|
|
430
430
|
--Nav-item-onActive-color: var(--Layout-light--onActive);
|
|
431
431
|
--Nav-Item-maxWidth--tabs: 200px;
|
|
432
432
|
}
|
|
433
|
+
.antd-Nav-Menu.antd-Nav-Menu-horizontal {
|
|
434
|
+
--Menu-light-backgroundColor-onHover: rgba(151, 151, 151, 0.1);
|
|
435
|
+
--Menu-light-fontColor-onHover: var(--Layout-fontColor--onHover);
|
|
436
|
+
}
|
|
433
437
|
|
|
434
438
|
.antd-Nav {
|
|
435
439
|
--Nav-item-onActive-color: #000;
|
|
@@ -459,7 +463,7 @@ fieldset.antd-Collapse > legend{
|
|
|
459
463
|
}
|
|
460
464
|
|
|
461
465
|
.antd-Nav-Menu-horizontal .antd-Nav-Menu-item.antd-Nav-Menu-item-selected:after {
|
|
462
|
-
height:
|
|
466
|
+
height: 8px;
|
|
463
467
|
top: 0;
|
|
464
468
|
bottom: unset;
|
|
465
469
|
background: rgb(14 165 233);
|
|
@@ -469,6 +473,21 @@ fieldset.antd-Collapse > legend{
|
|
|
469
473
|
padding-right: 0.5rem;
|
|
470
474
|
}
|
|
471
475
|
|
|
476
|
+
.antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected {
|
|
477
|
+
background: rgba(21,137,238,.1);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected.antd-Nav-Menu-item-active {
|
|
481
|
+
background: var(--Menu-light-backgroundColor-onHover);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected .antd-Nav-Menu-item-label{
|
|
485
|
+
color: var(--Menu-light-fontColor-onHover);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-active .antd-Nav-Menu-item-label{
|
|
489
|
+
color: var(--Menu-light-fontColor-onHover);
|
|
490
|
+
}
|
|
472
491
|
|
|
473
492
|
.antd-Nav-Menu-horizontal > .antd-Nav-Menu-item-tooltip-wrap > .antd-Nav-Menu-item {
|
|
474
493
|
padding: 0 15px;
|
|
@@ -2275,16 +2294,19 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
2275
2294
|
height: 50px;
|
|
2276
2295
|
}
|
|
2277
2296
|
|
|
2278
|
-
.lookup-left {
|
|
2297
|
+
.amis-object-field-lookup .lookup-left {
|
|
2279
2298
|
max-width: 50% !important;
|
|
2280
2299
|
}
|
|
2281
|
-
.lookup-left .antd-Select-popover {
|
|
2300
|
+
.amis-object-field-lookup .lookup-left .antd-Select-popover {
|
|
2282
2301
|
width: auto !important;
|
|
2283
2302
|
}
|
|
2284
|
-
.antd-InputGroup .antd-SelectControl.lookup-left .antd-Select {
|
|
2285
|
-
border-right-
|
|
2286
|
-
border-
|
|
2287
|
-
|
|
2303
|
+
.amis-object-field-lookup .antd-InputGroup .antd-SelectControl.lookup-left .antd-Select {
|
|
2304
|
+
border-top-right-radius: 0;
|
|
2305
|
+
border-bottom-right-radius: 0;
|
|
2306
|
+
}
|
|
2307
|
+
.amis-object-field-lookup .antd-InputGroup .antd-PickerControl .antd-Picker-input {
|
|
2308
|
+
border-top-left-radius: 0;
|
|
2309
|
+
border-bottom-left-radius: 0;
|
|
2288
2310
|
}
|
|
2289
2311
|
|
|
2290
2312
|
@media (min-width: 767px) {
|
|
@@ -3015,6 +3037,9 @@ body.sidebar #sidebar {
|
|
|
3015
3037
|
}
|
|
3016
3038
|
.steedos-amis-instance-view .instance-name {
|
|
3017
3039
|
font-size: 20px;
|
|
3040
|
+
position: sticky;
|
|
3041
|
+
top: -13px;
|
|
3042
|
+
background: #fff;
|
|
3018
3043
|
}
|
|
3019
3044
|
.steedos-amis-instance-view .instance-form-view {
|
|
3020
3045
|
width: 100%;
|
package/dist/amis-object.cjs.js
CHANGED
|
@@ -6338,7 +6338,7 @@ async function getTableApi(mainObject, fields, options){
|
|
|
6338
6338
|
let valueField = mainObject.key_field || '_id';
|
|
6339
6339
|
const api = await getApi$1(mainObject, null, fields, {count: options.queryCount, alias: 'rows', limit: top, queryOptions: `filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"`});
|
|
6340
6340
|
|
|
6341
|
-
api.url;//设计器上对象表格组件需要切换对象重新请求列表数据
|
|
6341
|
+
// api.url;//设计器上对象表格组件需要切换对象重新请求列表数据
|
|
6342
6342
|
// if(options.isRelated){
|
|
6343
6343
|
// api.url += "&recordId=${_master.recordId}";
|
|
6344
6344
|
// }
|
|
@@ -8095,7 +8095,7 @@ const parseSingleExpression$1 = function (func, formData, dataPath, global, user
|
|
|
8095
8095
|
* @Author: baozhoutao@steedos.com
|
|
8096
8096
|
* @Date: 2022-11-01 15:51:00
|
|
8097
8097
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
8098
|
-
* @LastEditTime: 2025-07-14
|
|
8098
|
+
* @LastEditTime: 2025-07-22 14:29:15
|
|
8099
8099
|
* @Description:
|
|
8100
8100
|
*/
|
|
8101
8101
|
|
|
@@ -8169,7 +8169,8 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
8169
8169
|
}
|
|
8170
8170
|
const uiSchema = event.data.uiSchema;
|
|
8171
8171
|
const objectName = event.data.objectName;
|
|
8172
|
-
const
|
|
8172
|
+
const crudId = event.data.crudId || "listview_" + objectName;
|
|
8173
|
+
const listViewRef = event.context.scoped.getComponentById(crudId);
|
|
8173
8174
|
const selectedItems = listViewRef && listViewRef.props.store.toJSON().selectedItems || [];
|
|
8174
8175
|
event.data.selectedIds = _.map(selectedItems, uiSchema.idFieldName || '_id');
|
|
8175
8176
|
`;
|
|
@@ -8714,8 +8715,8 @@ const getSchema$6 = async (uiSchema, ctx) => {
|
|
|
8714
8715
|
/*
|
|
8715
8716
|
* @Author: baozhoutao@steedos.com
|
|
8716
8717
|
* @Date: 2022-11-01 15:53:07
|
|
8717
|
-
* @LastEditors:
|
|
8718
|
-
* @LastEditTime:
|
|
8718
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
8719
|
+
* @LastEditTime: 2025-07-22 14:12:01
|
|
8719
8720
|
* @Description:
|
|
8720
8721
|
*/
|
|
8721
8722
|
|
|
@@ -8745,10 +8746,12 @@ const StandardButtons = {
|
|
|
8745
8746
|
const {
|
|
8746
8747
|
appId,
|
|
8747
8748
|
objectName,
|
|
8748
|
-
uiSchema
|
|
8749
|
+
uiSchema,
|
|
8750
|
+
record
|
|
8749
8751
|
} = this;
|
|
8752
|
+
const crudId = record?.crudId || `listview_${uiSchema.name}`;
|
|
8750
8753
|
const scope = this.scope;
|
|
8751
|
-
const listViewRef = scope.parent?.getComponentById(
|
|
8754
|
+
const listViewRef = scope.parent?.getComponentById(crudId);
|
|
8752
8755
|
if(_.isEmpty(listViewRef.props.store.toJSON().selectedItems)){
|
|
8753
8756
|
listViewRef.handleAction({}, {
|
|
8754
8757
|
"actionType": "toast",
|
|
@@ -9376,19 +9379,11 @@ async function getObjectFieldsFilterFormSchema(ctx) {
|
|
|
9376
9379
|
},
|
|
9377
9380
|
"schemaApi": {
|
|
9378
9381
|
method: 'post',
|
|
9379
|
-
url: `\${context.rootUrl}/graphql?reload=\${filterFormSearchableFields|join}`,
|
|
9380
9382
|
data: {
|
|
9381
9383
|
$self: "$$",
|
|
9382
|
-
query: "
|
|
9384
|
+
query: ""
|
|
9383
9385
|
},
|
|
9384
|
-
|
|
9385
|
-
return {
|
|
9386
|
-
...api,
|
|
9387
|
-
data: {
|
|
9388
|
-
query: api.data.query
|
|
9389
|
-
}
|
|
9390
|
-
};
|
|
9391
|
-
`,
|
|
9386
|
+
url: `/api/amis/health_check?reload=\${filterFormSearchableFields|join}`,
|
|
9392
9387
|
adaptor: `
|
|
9393
9388
|
if(payload.errors){
|
|
9394
9389
|
payload.status = 2;
|
|
@@ -15947,11 +15942,8 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
15947
15942
|
}else {
|
|
15948
15943
|
apiInfo = {
|
|
15949
15944
|
method: "post",
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
"headers": {
|
|
15953
|
-
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
15954
|
-
}
|
|
15945
|
+
data: {$: "$$", query: ""},
|
|
15946
|
+
url: "/api/amis/health_check?reload=\${additionalFilters|join}&listName=\${listName}"
|
|
15955
15947
|
};
|
|
15956
15948
|
}
|
|
15957
15949
|
|
|
@@ -17397,9 +17389,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
17397
17389
|
// if(ctx.mode === 'edit'){
|
|
17398
17390
|
let convertDataResult;
|
|
17399
17391
|
if(convertData.type == "steedos-field"){
|
|
17400
|
-
// 如果是steedos-field,不能把amis属性合并到steedos-field根属性中,要合并也是合并到steedos-field的config.amis中
|
|
17401
|
-
// 而steedos-field字段的amis
|
|
17402
|
-
// 目前测试到受影响的是,把字段的amis属性配置为{"type": "checkboxes"}时,ObjectForm只读模式下,lookup字段返回的是type为steedos-field
|
|
17392
|
+
// 如果是steedos-field,不能把field.amis属性合并到steedos-field根属性中,要合并也是合并到steedos-field的config.amis中
|
|
17393
|
+
// 而steedos-field字段的config属性中的amis属性已经有了这里的field.amis,所以这里不需要再合并field.amis
|
|
17394
|
+
// 目前测试到受影响的是,把字段的amis属性配置为{"type": "checkboxes"}时,ObjectForm只读模式下,lookup字段返回的是type为steedos-field的组件,此时如果在这里合并field.amis,那么其type就变成了checkboxes,导致lookup字段显示为复选框
|
|
17403
17395
|
convertDataResult = Object.assign({}, baseData, convertData, { labelClassName: 'text-left', clearValueOnHidden: true, fieldName: field.name}, {name: baseData.name});
|
|
17404
17396
|
}
|
|
17405
17397
|
else {
|
|
@@ -20234,7 +20226,7 @@ const getNextStepUsersInput = async (instance) => {
|
|
|
20234
20226
|
"messages": {
|
|
20235
20227
|
},
|
|
20236
20228
|
"requestAdaptor": "\nconst { context, next_step, $scopeId } = api.data;\nconst formValues = SteedosUI.getRef($scopeId).getComponentById(\"instance_form\").getValues();\n\napi.data = {\n instanceId: context._id,\n nextStepId: next_step._id,\n values: formValues\n}\n\n\n return api;",
|
|
20237
|
-
"adaptor": "
|
|
20229
|
+
"adaptor": "\npayload.data = {value: payload.nextStepUsers.length === 1 ? payload.nextStepUsers[0].id : null, options: payload.nextStepUsers};\nreturn payload;",
|
|
20238
20230
|
"data": {
|
|
20239
20231
|
"&": "$$",
|
|
20240
20232
|
"$scopeId": "$scopeId",
|
|
@@ -20427,10 +20419,10 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20427
20419
|
console.log("=============getApprovalDrawerSchema=============", instance);
|
|
20428
20420
|
return {
|
|
20429
20421
|
type: "drawer",
|
|
20430
|
-
overlay:
|
|
20422
|
+
overlay: false,
|
|
20431
20423
|
resizable: false,
|
|
20432
20424
|
closeOnEsc: true,
|
|
20433
|
-
closeOnOutside:
|
|
20425
|
+
closeOnOutside: false,
|
|
20434
20426
|
size: "sm",
|
|
20435
20427
|
title: `${instance.step.name}`,
|
|
20436
20428
|
className: "approval-drawer absolute",
|
|
@@ -21490,7 +21482,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21490
21482
|
type: "page",
|
|
21491
21483
|
name: "instancePage",
|
|
21492
21484
|
className: "steedos-amis-instance-view",
|
|
21493
|
-
bodyClassName: "overflow-y-auto h-full",
|
|
21485
|
+
bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
|
|
21494
21486
|
headerClassName: "p-0",
|
|
21495
21487
|
"title": {
|
|
21496
21488
|
"type": "steedos-record-detail-header",
|
|
@@ -21502,6 +21494,9 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21502
21494
|
"className": "p-0 m-0 p0 m0 bg-gray-50"
|
|
21503
21495
|
},
|
|
21504
21496
|
"css": {
|
|
21497
|
+
".steedos-amis-instance-view-body": {
|
|
21498
|
+
"height": "calc(100% - 65px)"
|
|
21499
|
+
},
|
|
21505
21500
|
".instance-approve-history .antd-Table-table thead": {
|
|
21506
21501
|
"display": "none"
|
|
21507
21502
|
},
|
|
@@ -21523,6 +21518,9 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21523
21518
|
".antd-List-placeholder": {
|
|
21524
21519
|
"display": "none"
|
|
21525
21520
|
},
|
|
21521
|
+
".steedos-amis-instance-view .antd-Table-fixedTop":{
|
|
21522
|
+
"top": "-13px"
|
|
21523
|
+
},
|
|
21526
21524
|
".steedos-amis-instance-view .antd-Table-fixedTop:after":{
|
|
21527
21525
|
"box-shadow": "none"
|
|
21528
21526
|
},
|
|
@@ -25427,6 +25425,9 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
25427
25425
|
if (_$1.has(props, '$$editor')) {
|
|
25428
25426
|
_data = serviceData;
|
|
25429
25427
|
}
|
|
25428
|
+
if (_$1.has(crud, 'id')) {
|
|
25429
|
+
_data.crudId = crud.id;
|
|
25430
|
+
}
|
|
25430
25431
|
schema = {
|
|
25431
25432
|
type: "service",
|
|
25432
25433
|
id: 'u:steedos-object-listview',
|
|
@@ -25461,7 +25462,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
25461
25462
|
"schemaApi": {
|
|
25462
25463
|
// 这里url上加objectApiName属性是因为设计器中切换对象时不会变更列表视图界面,不可以用objectName=${objectName}使用作用域中objectName变量是因为设计器那边不会监听识别data变化来render组件
|
|
25463
25464
|
"url": "${context.rootUrl}/graphql?objectName=" + objectApiName + "&listName=${listName}&display=${display}&rebuildOn=" + rebuildOn + _reloadKey,
|
|
25464
|
-
"trackExpression": "${_reloadKey
|
|
25465
|
+
"trackExpression": "${_reloadKey}",
|
|
25465
25466
|
"method": "post",
|
|
25466
25467
|
"messages": {},
|
|
25467
25468
|
"headers": {
|
|
@@ -25957,7 +25958,7 @@ var AmisProvider = function (props) { return __awaiter(void 0, void 0, void 0, f
|
|
|
25957
25958
|
* @Description:
|
|
25958
25959
|
*/
|
|
25959
25960
|
var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
25960
|
-
var app, data, className, _a, showAppName, _b, appNameClassName, _c, customElements, _d, showAppIcon, isSpaceAdmin, formFactor, isMobile, on_click_script, mobile_blank_script, convertAppVisibleOnScript, pcInitApiAdaptorScript, mobileInitApiAdaptorScript, dialogSchema, badgeText, overlaySchema;
|
|
25961
|
+
var app, data, className, _a, showAppName, _b, appNameClassName, _c, customElements, _d, showAppIcon, isSpaceAdmin, formFactor, isMobile, on_click_script, mobile_blank_script, convertAppVisibleOnScript, pcInitApiAdaptorScript, mobileInitApiAdaptorScript, dialogSchema, badgeText, overlaySchema, amisSchema;
|
|
25961
25962
|
return __generator(this, function (_e) {
|
|
25962
25963
|
app = props.app, data = props.data, className = props.className, _a = props.showAppName, showAppName = _a === void 0 ? true : _a, _b = props.appNameClassName, appNameClassName = _b === void 0 ? '' : _b, _c = props.customElements, customElements = _c === void 0 ? [] : _c, _d = props.showAppIcon, showAppIcon = _d === void 0 ? true : _d;
|
|
25963
25964
|
if (!app) {
|
|
@@ -25975,7 +25976,7 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
25975
25976
|
pcInitApiAdaptorScript = "\n let app_items = payload;\n let object_items = [];\n let objects = [];\n app_items.forEach((item) => {\n item.children.forEach((i) => {\n if (objects.indexOf(i.id) < 0) {\n objects.push(i.id);\n if(i.type != 'url' && i.type != 'page'){object_items.push(i);}\n }\n })\n })\n ".concat(convertAppVisibleOnScript, "\n payload = {\n app_items,\n object_items\n }\n return payload;\n ");
|
|
25976
25977
|
mobileInitApiAdaptorScript = "\n let app_items = payload;\n ".concat(convertAppVisibleOnScript, "\n payload = {\n app_items\n }\n return payload;\n ");
|
|
25977
25978
|
dialogSchema = {};
|
|
25978
|
-
badgeText = "${IF(${id} == 'approve_workflow',${
|
|
25979
|
+
badgeText = "${IF(${id} == 'approve_workflow',${badge|pick:'workflow'},${badge|pick:${id}}) | toInt}";
|
|
25979
25980
|
if (!isMobile) {
|
|
25980
25981
|
dialogSchema = {
|
|
25981
25982
|
"type": "service",
|
|
@@ -26345,98 +26346,100 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
26345
26346
|
},
|
|
26346
26347
|
"id": "u:2c8bd22d4ea8"
|
|
26347
26348
|
};
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
},
|
|
26369
|
-
"hiddenOn": "".concat(!showAppIcon)
|
|
26370
|
-
},
|
|
26371
|
-
{
|
|
26372
|
-
type: 'tpl',
|
|
26373
|
-
className: "text-xl ml-4 mr-4 text-black nowrap ".concat(appNameClassName, " "),
|
|
26374
|
-
tpl: '${app.name}',
|
|
26375
|
-
hiddenOn: "".concat(!!app || !!!showAppName),
|
|
26376
|
-
visibleOn: '${!!appId}',
|
|
26377
|
-
}
|
|
26378
|
-
], __read(customElements), false),
|
|
26379
|
-
"dialog": {
|
|
26380
|
-
"size": "xl",
|
|
26381
|
-
"title": {
|
|
26382
|
-
"type": "tpl",
|
|
26383
|
-
"tpl": instance.t('frontend_application_launcher'),
|
|
26384
|
-
"className": "block text-xl text-center"
|
|
26349
|
+
amisSchema = {
|
|
26350
|
+
"type": "service",
|
|
26351
|
+
className: className,
|
|
26352
|
+
"body": [
|
|
26353
|
+
isMobile ? {
|
|
26354
|
+
"type": "button",
|
|
26355
|
+
"actionType": "dialog",
|
|
26356
|
+
"className": "flex items-center",
|
|
26357
|
+
"body": __spreadArray([
|
|
26358
|
+
{
|
|
26359
|
+
"type": "tpl",
|
|
26360
|
+
"className": "flex items-center",
|
|
26361
|
+
"tpl": "<div aria-haspopup='true' title='".concat(instance.t('frontend_open_app_launcher'), "' class='slds-icon-waffle_container slds-context-bar__button' type='button'><span class='slds-icon-waffle'><span class='slds-r1'></span><span class='slds-r2'></span><span class='slds-r3'></span><span class='slds-r4'></span><span class='slds-r5'></span><span class='slds-r6'></span><span class='slds-r7'></span><span class='slds-r8'></span><span class='slds-r9'></span></span></div>"),
|
|
26362
|
+
"badge": {
|
|
26363
|
+
"visibleOn": "${badge.workflow | toInt}",
|
|
26364
|
+
"offset": [3, -3],
|
|
26365
|
+
"style": {
|
|
26366
|
+
"width": "8px",
|
|
26367
|
+
"height": "8px"
|
|
26368
|
+
}
|
|
26385
26369
|
},
|
|
26386
|
-
"
|
|
26387
|
-
"body": [
|
|
26388
|
-
overlaySchema
|
|
26389
|
-
]
|
|
26370
|
+
"hiddenOn": "".concat(!showAppIcon)
|
|
26390
26371
|
},
|
|
26391
|
-
|
|
26392
|
-
|
|
26393
|
-
|
|
26394
|
-
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
|
|
26398
|
-
|
|
26399
|
-
|
|
26400
|
-
|
|
26401
|
-
|
|
26402
|
-
|
|
26403
|
-
|
|
26404
|
-
|
|
26405
|
-
|
|
26406
|
-
|
|
26407
|
-
|
|
26408
|
-
"height": "8px"
|
|
26409
|
-
}
|
|
26410
|
-
},
|
|
26411
|
-
"hiddenOn": "".concat(!showAppIcon)
|
|
26412
|
-
},
|
|
26413
|
-
{
|
|
26414
|
-
type: 'tpl',
|
|
26415
|
-
className: "text-xl ml-4 mr-4 text-black nowrap ".concat(appNameClassName, " "),
|
|
26416
|
-
tpl: '${app.name}',
|
|
26417
|
-
hiddenOn: "".concat(!!app || !!!showAppName),
|
|
26418
|
-
visibleOn: '${!!appId}',
|
|
26419
|
-
}
|
|
26420
|
-
], __read(customElements), false),
|
|
26421
|
-
"overlay": [
|
|
26372
|
+
{
|
|
26373
|
+
type: 'tpl',
|
|
26374
|
+
className: "text-xl ml-4 mr-4 text-black nowrap ".concat(appNameClassName, " "),
|
|
26375
|
+
tpl: '${app.name}',
|
|
26376
|
+
hiddenOn: "".concat(!!app || !!!showAppName),
|
|
26377
|
+
visibleOn: '${!!appId}',
|
|
26378
|
+
}
|
|
26379
|
+
], __read(customElements), false),
|
|
26380
|
+
"dialog": {
|
|
26381
|
+
"size": "xl",
|
|
26382
|
+
"title": {
|
|
26383
|
+
"type": "tpl",
|
|
26384
|
+
"tpl": instance.t('frontend_application_launcher'),
|
|
26385
|
+
"className": "block text-xl text-center"
|
|
26386
|
+
},
|
|
26387
|
+
"actions": [],
|
|
26388
|
+
"body": [
|
|
26422
26389
|
overlaySchema
|
|
26423
|
-
],
|
|
26424
|
-
"className": "flex items-center",
|
|
26425
|
-
"open": false
|
|
26426
|
-
}
|
|
26427
|
-
],
|
|
26428
|
-
"id": "u:06ee48db134a",
|
|
26429
|
-
"messages": {},
|
|
26430
|
-
"onEvent": {
|
|
26431
|
-
"@data.changed.steedos_keyvalues": {
|
|
26432
|
-
"actions": [
|
|
26433
|
-
{
|
|
26434
|
-
"actionType": "reload"
|
|
26435
|
-
}
|
|
26436
26390
|
]
|
|
26437
|
-
}
|
|
26391
|
+
},
|
|
26392
|
+
"id": "u:b5dc095e1c11"
|
|
26393
|
+
} : {
|
|
26394
|
+
"type": "steedos-dropdown",
|
|
26395
|
+
"placement": "bottomRight",
|
|
26396
|
+
"trigger": [
|
|
26397
|
+
"click"
|
|
26398
|
+
],
|
|
26399
|
+
"body": __spreadArray([
|
|
26400
|
+
{
|
|
26401
|
+
"type": "tpl",
|
|
26402
|
+
"className": "flex items-center",
|
|
26403
|
+
"tpl": "<div aria-haspopup='true' title='".concat(instance.t('frontend_open_app_launcher'), "' class='slds-icon-waffle_container slds-context-bar__button' type='button'><span class='slds-icon-waffle'><span class='slds-r1'></span><span class='slds-r2'></span><span class='slds-r3'></span><span class='slds-r4'></span><span class='slds-r5'></span><span class='slds-r6'></span><span class='slds-r7'></span><span class='slds-r8'></span><span class='slds-r9'></span></span></div>"),
|
|
26404
|
+
"badge": {
|
|
26405
|
+
"visibleOn": "${badge.workflow | toInt}",
|
|
26406
|
+
"offset": [3, -3],
|
|
26407
|
+
"style": {
|
|
26408
|
+
"width": "8px",
|
|
26409
|
+
"height": "8px"
|
|
26410
|
+
}
|
|
26411
|
+
},
|
|
26412
|
+
"hiddenOn": "".concat(!showAppIcon)
|
|
26413
|
+
},
|
|
26414
|
+
{
|
|
26415
|
+
type: 'tpl',
|
|
26416
|
+
className: "text-xl ml-4 mr-4 text-black nowrap ".concat(appNameClassName, " "),
|
|
26417
|
+
tpl: '${app.name}',
|
|
26418
|
+
hiddenOn: "".concat(!!app || !!!showAppName),
|
|
26419
|
+
visibleOn: '${!!appId}',
|
|
26420
|
+
}
|
|
26421
|
+
], __read(customElements), false),
|
|
26422
|
+
"overlay": [
|
|
26423
|
+
overlaySchema
|
|
26424
|
+
],
|
|
26425
|
+
"className": "flex items-center",
|
|
26426
|
+
"open": false
|
|
26438
26427
|
}
|
|
26439
|
-
|
|
26428
|
+
],
|
|
26429
|
+
"id": "u:06ee48db134a",
|
|
26430
|
+
"messages": {},
|
|
26431
|
+
"onEvent": {
|
|
26432
|
+
"@data.changed.steedos_keyvalues": {
|
|
26433
|
+
"actions": [
|
|
26434
|
+
{
|
|
26435
|
+
"actionType": "reload"
|
|
26436
|
+
}
|
|
26437
|
+
]
|
|
26438
|
+
}
|
|
26439
|
+
}
|
|
26440
|
+
};
|
|
26441
|
+
// console.log(`AmisAppLauncher`, amisSchema)
|
|
26442
|
+
return [2 /*return*/, amisSchema];
|
|
26440
26443
|
});
|
|
26441
26444
|
}); };
|
|
26442
26445
|
|
|
@@ -28574,11 +28577,22 @@ var PageListView = function (props) { return __awaiter(void 0, void 0, void 0, f
|
|
|
28574
28577
|
"objectApiName": objectApiName,
|
|
28575
28578
|
"columnsTogglable": false,
|
|
28576
28579
|
"showHeader": true,
|
|
28577
|
-
"_reloadKey": _reloadKey
|
|
28578
28580
|
// "showDisplayAs": (formFactor !== 'SMALL'),
|
|
28579
28581
|
// "formFactor": formFactor,
|
|
28580
28582
|
// "className": (displayAs === 'split')? 'w-full': 'p-0 flex-1 m-0 sm:border sm:shadow sm:rounded border-gray-300 border-solid bg-gray-100'
|
|
28581
28583
|
};
|
|
28584
|
+
listSchema._reloadKey = _reloadKey;
|
|
28585
|
+
if (page && page.schema) {
|
|
28586
|
+
if (page.schema.data) {
|
|
28587
|
+
listSchema.data._reloadKey = _reloadKey;
|
|
28588
|
+
}
|
|
28589
|
+
else {
|
|
28590
|
+
listSchema.data = {
|
|
28591
|
+
_reloadKey: _reloadKey
|
|
28592
|
+
};
|
|
28593
|
+
}
|
|
28594
|
+
listSchema = JSON.parse(JSON.stringify(listSchema).replaceAll('"type":"steedos-object-listview"', "\"type\":\"steedos-object-listview\",\"_reloadKey\":\"".concat(_reloadKey, "\"")));
|
|
28595
|
+
}
|
|
28582
28596
|
schema = {
|
|
28583
28597
|
type: 'service',
|
|
28584
28598
|
id: 'u:steedos-page-object-listview',
|
|
@@ -28667,7 +28681,7 @@ var PageObject = function (props) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
28667
28681
|
type: "service",
|
|
28668
28682
|
data: $schema.data,
|
|
28669
28683
|
id: 'u:steedos-page-object',
|
|
28670
|
-
className: "h-full",
|
|
28684
|
+
className: "h-full steedos-page-object",
|
|
28671
28685
|
body: {
|
|
28672
28686
|
type: 'service',
|
|
28673
28687
|
className: {
|
|
@@ -28678,6 +28692,51 @@ var PageObject = function (props) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
28678
28692
|
uiSchema: uiSchema
|
|
28679
28693
|
},
|
|
28680
28694
|
body: [
|
|
28695
|
+
{
|
|
28696
|
+
"type": "button",
|
|
28697
|
+
"label": "刷新",
|
|
28698
|
+
"className": "hidden btn-reload-page-object-detail",
|
|
28699
|
+
"onEvent": {
|
|
28700
|
+
"click": {
|
|
28701
|
+
"actions": [
|
|
28702
|
+
{
|
|
28703
|
+
"componentId": "u:steedos-page-object-detail",
|
|
28704
|
+
"actionType": "reload"
|
|
28705
|
+
}
|
|
28706
|
+
]
|
|
28707
|
+
}
|
|
28708
|
+
}
|
|
28709
|
+
},
|
|
28710
|
+
{
|
|
28711
|
+
"type": "button",
|
|
28712
|
+
"label": "刷新",
|
|
28713
|
+
"className": "hidden btn-reload-page-object-listview",
|
|
28714
|
+
"onEvent": {
|
|
28715
|
+
"click": {
|
|
28716
|
+
"actions": [
|
|
28717
|
+
{
|
|
28718
|
+
"componentId": "u:steedos-page-object-listview",
|
|
28719
|
+
"actionType": "reload"
|
|
28720
|
+
}
|
|
28721
|
+
]
|
|
28722
|
+
}
|
|
28723
|
+
}
|
|
28724
|
+
},
|
|
28725
|
+
{
|
|
28726
|
+
"type": "button",
|
|
28727
|
+
"label": "刷新",
|
|
28728
|
+
"className": "hidden btn-reload-object-listview",
|
|
28729
|
+
"onEvent": {
|
|
28730
|
+
"click": {
|
|
28731
|
+
"actions": [
|
|
28732
|
+
{
|
|
28733
|
+
"componentId": "u:steedos-object-listview",
|
|
28734
|
+
"actionType": "reload"
|
|
28735
|
+
}
|
|
28736
|
+
]
|
|
28737
|
+
}
|
|
28738
|
+
}
|
|
28739
|
+
},
|
|
28681
28740
|
{
|
|
28682
28741
|
"type": "wrapper",
|
|
28683
28742
|
"size": "none",
|
|
@@ -28724,6 +28783,15 @@ var PageObject = function (props) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
28724
28783
|
}
|
|
28725
28784
|
]
|
|
28726
28785
|
},
|
|
28786
|
+
dataProvider: function (data, setData) {
|
|
28787
|
+
window.addEventListener('message', function (event) {
|
|
28788
|
+
var data = event.data;
|
|
28789
|
+
if (data && data.type === 'page.dataProvider.setData') {
|
|
28790
|
+
// console.log('dataProvider====>setData', data);
|
|
28791
|
+
setData(data.data);
|
|
28792
|
+
}
|
|
28793
|
+
});
|
|
28794
|
+
}
|
|
28727
28795
|
// onEvent: {
|
|
28728
28796
|
// "recordLoaded": {
|
|
28729
28797
|
// "actions": [
|