@steedos-widgets/sortable 6.3.4 → 6.3.6
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/assets.json +5 -5
- package/dist/sortable.cjs.js +33 -8
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +33 -8
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +33 -8
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -54499,12 +54499,18 @@ function getAmisStaticFieldType(type, readonly, options){
|
|
|
54499
54499
|
* @Author: baozhoutao@steedos.com
|
|
54500
54500
|
* @Date: 2022-07-13 15:18:03
|
|
54501
54501
|
* @LastEditors: baozhoutao@steedos.com
|
|
54502
|
-
* @LastEditTime:
|
|
54502
|
+
* @LastEditTime: 2024-08-15 12:12:08
|
|
54503
54503
|
* @Description:
|
|
54504
54504
|
*/
|
|
54505
|
+
let pageCache = {};
|
|
54505
54506
|
|
|
54506
54507
|
async function getPage({type, pageId = '', appId, objectName = '', recordId = '', formFactor = 'LARGE'}){
|
|
54507
54508
|
const api = `/api/pageSchema/${type}?app=${appId}&objectApiName=${objectName}&recordId=${recordId}&pageId=${pageId}&formFactor=${formFactor}`;
|
|
54509
|
+
|
|
54510
|
+
if(lodash.exports.has(pageCache, api)) {
|
|
54511
|
+
return pageCache[api];
|
|
54512
|
+
}
|
|
54513
|
+
|
|
54508
54514
|
const page = await fetchAPI(api);
|
|
54509
54515
|
if (page && page.schema) {
|
|
54510
54516
|
page.schema = JSON.parse(page.schema);
|
|
@@ -54514,15 +54520,17 @@ async function getPage({type, pageId = '', appId, objectName = '', recordId = ''
|
|
|
54514
54520
|
delete page.schema.data.context;
|
|
54515
54521
|
delete page.schema.data.global;
|
|
54516
54522
|
}
|
|
54517
|
-
|
|
54523
|
+
pageCache[api] = page;
|
|
54524
|
+
return JSON.parse(JSON.stringify(page)); //clone page;
|
|
54518
54525
|
}
|
|
54526
|
+
pageCache[api] = null;
|
|
54519
54527
|
}
|
|
54520
54528
|
|
|
54521
54529
|
/*
|
|
54522
54530
|
* @Author: baozhoutao@steedos.com
|
|
54523
54531
|
* @Date: 2022-10-28 14:15:09
|
|
54524
|
-
* @LastEditors:
|
|
54525
|
-
* @LastEditTime:
|
|
54532
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
54533
|
+
* @LastEditTime: 2024-08-19 16:26:58
|
|
54526
54534
|
* @Description:
|
|
54527
54535
|
*/
|
|
54528
54536
|
|
|
@@ -54728,6 +54736,11 @@ const getAmisFileEditSchema = (steedosField)=>{
|
|
|
54728
54736
|
convertData.multiple = true;
|
|
54729
54737
|
convertData.joinValues = false;
|
|
54730
54738
|
convertData.extractValue = true;
|
|
54739
|
+
if(steedosField.type === 'image'){
|
|
54740
|
+
if(Steedos.isCordova() && Steedos.isCordova()){
|
|
54741
|
+
convertData.accept = "";
|
|
54742
|
+
}
|
|
54743
|
+
}
|
|
54731
54744
|
}
|
|
54732
54745
|
return convertData;
|
|
54733
54746
|
};
|
|
@@ -58323,7 +58336,7 @@ const getSettingListviewToolbarButtonSchema = ()=>{
|
|
|
58323
58336
|
// "tooltip": i18next.t('frontend_button_listview_control_tooltip'),
|
|
58324
58337
|
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded text-gray-500",
|
|
58325
58338
|
"align": "right",
|
|
58326
|
-
"visibleOn": "${!isLookup}",
|
|
58339
|
+
"visibleOn": "${!isLookup && !!isObjectListview}",
|
|
58327
58340
|
"buttons": [
|
|
58328
58341
|
{
|
|
58329
58342
|
"label": instance.t('frontend_button_listview_control_label'),
|
|
@@ -58368,7 +58381,7 @@ const getDisplayAsButton = function(objectName, defaultEnableSplit){
|
|
|
58368
58381
|
// "tooltip": `${i18next.t('frontend_display_as')} ${displayAsLabel}`,
|
|
58369
58382
|
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded text-gray-500",
|
|
58370
58383
|
"align": "right",
|
|
58371
|
-
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
58384
|
+
"visibleOn": "${window:innerWidth > 768 && !!!isLookup && !!isObjectListview}",
|
|
58372
58385
|
"buttons": [
|
|
58373
58386
|
{
|
|
58374
58387
|
"label": instance.t('frontend_display_as'),
|
|
@@ -61201,9 +61214,21 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
61201
61214
|
break;
|
|
61202
61215
|
case 'percent':
|
|
61203
61216
|
if(readonly){
|
|
61217
|
+
// convertData = {
|
|
61218
|
+
// type: 'static-tpl',
|
|
61219
|
+
// tpl: Tpl.getUiFieldTpl(field)
|
|
61220
|
+
// }
|
|
61204
61221
|
convertData = {
|
|
61205
|
-
type:
|
|
61206
|
-
|
|
61222
|
+
"type": "static-progress",
|
|
61223
|
+
"name": "progress",
|
|
61224
|
+
pipeIn: (value, data) => {
|
|
61225
|
+
if(value){
|
|
61226
|
+
// 因为例如 1.11 * 100 的值不是111,所以调整下。
|
|
61227
|
+
const result = value*100;
|
|
61228
|
+
return Number(result.toFixed(field.scale));
|
|
61229
|
+
}
|
|
61230
|
+
return value;
|
|
61231
|
+
}
|
|
61207
61232
|
};
|
|
61208
61233
|
}else {
|
|
61209
61234
|
convertData = {
|