@steedos-widgets/amis-lib 1.2.11 → 1.2.12
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 +19 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/header.d.ts +5 -0
- package/dist/types/lib/converter/amis/index.d.ts +2 -5
- package/dist/types/lib/objects.d.ts +2 -5
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -2442,7 +2442,14 @@
|
|
|
2442
2442
|
className: `button_${button.name}`
|
|
2443
2443
|
}
|
|
2444
2444
|
});
|
|
2445
|
-
let
|
|
2445
|
+
let moreButtonsVisibleOn = '';
|
|
2446
|
+
let dropdownButtons = ___default["default"].map(moreButtons, (button, index) => {
|
|
2447
|
+
if(index === 0){
|
|
2448
|
+
moreButtonsVisibleOn = getButtonVisibleOn$1(button);
|
|
2449
|
+
}else {
|
|
2450
|
+
moreButtonsVisibleOn = moreButtonsVisibleOn + ' || ' +getButtonVisibleOn$1(button);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2446
2453
|
return {
|
|
2447
2454
|
type: 'steedos-object-button',
|
|
2448
2455
|
name: button.name,
|
|
@@ -2452,12 +2459,13 @@
|
|
|
2452
2459
|
});
|
|
2453
2460
|
return {
|
|
2454
2461
|
buttons: amisButtonsSchema,
|
|
2455
|
-
moreButtons: dropdownButtons
|
|
2462
|
+
moreButtons: dropdownButtons,
|
|
2463
|
+
moreButtonsVisibleOn
|
|
2456
2464
|
};
|
|
2457
2465
|
};
|
|
2458
2466
|
|
|
2459
2467
|
const getObjectDetailButtonsSchemas = (objectSchema, recordId, ctx)=>{
|
|
2460
|
-
const { buttons, moreButtons } = getObjectDetailHeaderButtons(objectSchema, recordId);
|
|
2468
|
+
const { buttons, moreButtons, moreButtonsVisibleOn } = getObjectDetailHeaderButtons(objectSchema, recordId);
|
|
2461
2469
|
if(ctx.formFactor === 'SMALL'){
|
|
2462
2470
|
return {
|
|
2463
2471
|
"type": "button",
|
|
@@ -2512,7 +2520,8 @@
|
|
|
2512
2520
|
type: "steedos-dropdown-button",
|
|
2513
2521
|
label: "",
|
|
2514
2522
|
buttons: moreButtons,
|
|
2515
|
-
className: 'slds-icon'
|
|
2523
|
+
className: 'slds-icon',
|
|
2524
|
+
visibleOn: moreButtonsVisibleOn
|
|
2516
2525
|
};
|
|
2517
2526
|
buttons.push(dropdownButtonsSchema);
|
|
2518
2527
|
}
|
|
@@ -7550,11 +7559,12 @@ else{
|
|
|
7550
7559
|
"expression": "this.__deletedRecord != true"
|
|
7551
7560
|
},
|
|
7552
7561
|
{
|
|
7553
|
-
"args": {
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
},
|
|
7557
|
-
"actionType": "
|
|
7562
|
+
// "args": {
|
|
7563
|
+
// "url": "/app/${appId}/${objectName}/grid/${side_listview_id}",
|
|
7564
|
+
// "blank": false
|
|
7565
|
+
// },
|
|
7566
|
+
"actionType": "custom",
|
|
7567
|
+
"script": "Steedos.goBack()",
|
|
7558
7568
|
"expression": "this.__deletedRecord === true"
|
|
7559
7569
|
}
|
|
7560
7570
|
]
|