@steedos-widgets/sortable 1.3.13 → 1.3.14
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/sortable.esm.js
CHANGED
|
@@ -54138,6 +54138,7 @@ var frontend_record_detail_tab_detailed$1 = "Details";
|
|
|
54138
54138
|
var frontend_record_detail_tab_related$1 = "Related";
|
|
54139
54139
|
var frontend_all_apps$1 = "All apps";
|
|
54140
54140
|
var frontend_all_projects$1 = "All projects";
|
|
54141
|
+
var frontend_open_app_launcher$1 = "Open App Launcher";
|
|
54141
54142
|
var frontend_application_launcher$1 = "Application launcher";
|
|
54142
54143
|
var frontend_menu$1 = "Menu";
|
|
54143
54144
|
var frontend_help$1 = "Help";
|
|
@@ -54223,6 +54224,7 @@ var en_us = {
|
|
|
54223
54224
|
frontend_record_detail_tab_related: frontend_record_detail_tab_related$1,
|
|
54224
54225
|
frontend_all_apps: frontend_all_apps$1,
|
|
54225
54226
|
frontend_all_projects: frontend_all_projects$1,
|
|
54227
|
+
frontend_open_app_launcher: frontend_open_app_launcher$1,
|
|
54226
54228
|
frontend_application_launcher: frontend_application_launcher$1,
|
|
54227
54229
|
frontend_menu: frontend_menu$1,
|
|
54228
54230
|
frontend_help: frontend_help$1,
|
|
@@ -54310,6 +54312,7 @@ var frontend_record_detail_tab_detailed = "详细";
|
|
|
54310
54312
|
var frontend_record_detail_tab_related = "相关";
|
|
54311
54313
|
var frontend_all_apps = "所有应用";
|
|
54312
54314
|
var frontend_all_projects = "所有项目";
|
|
54315
|
+
var frontend_open_app_launcher = "打开应用程序启动器";
|
|
54313
54316
|
var frontend_application_launcher = "应用程序启动器";
|
|
54314
54317
|
var frontend_menu = "菜单";
|
|
54315
54318
|
var frontend_help = "帮助";
|
|
@@ -54396,6 +54399,7 @@ var zh_cn = {
|
|
|
54396
54399
|
frontend_record_detail_tab_related: frontend_record_detail_tab_related,
|
|
54397
54400
|
frontend_all_apps: frontend_all_apps,
|
|
54398
54401
|
frontend_all_projects: frontend_all_projects,
|
|
54402
|
+
frontend_open_app_launcher: frontend_open_app_launcher,
|
|
54399
54403
|
frontend_application_launcher: frontend_application_launcher,
|
|
54400
54404
|
frontend_menu: frontend_menu,
|
|
54401
54405
|
frontend_help: frontend_help,
|
|
@@ -58037,8 +58041,8 @@ function getAmisStaticFieldType(type, readonly, options){
|
|
|
58037
58041
|
/*
|
|
58038
58042
|
* @Author: baozhoutao@steedos.com
|
|
58039
58043
|
* @Date: 2022-10-28 14:15:09
|
|
58040
|
-
* @LastEditors:
|
|
58041
|
-
* @LastEditTime: 2023-
|
|
58044
|
+
* @LastEditors: 孙浩林 sunhaolin@steedos.com
|
|
58045
|
+
* @LastEditTime: 2023-11-24 13:45:24
|
|
58042
58046
|
* @Description:
|
|
58043
58047
|
*/
|
|
58044
58048
|
|
|
@@ -58075,7 +58079,7 @@ const getAmisFileReadonlySchema = (steedosField)=>{
|
|
|
58075
58079
|
<% let fileData = data._display.${steedosField.name}; if (fileData) { %>
|
|
58076
58080
|
<% if(!Array.isArray(fileData)){ fileData = [fileData]} %>
|
|
58077
58081
|
<% fileData.forEach(function(item) { %>
|
|
58078
|
-
<a href='<%= item.url %>' target='_self' class='block'><%= item.name %></a>
|
|
58082
|
+
<a href='<%= item.url+"?download=1" %>' target='_self' class='block'><%= item.name %></a>
|
|
58079
58083
|
<% });} %>`
|
|
58080
58084
|
}
|
|
58081
58085
|
}
|
|
@@ -65632,6 +65636,12 @@ function MultipleContainers(props) {
|
|
|
65632
65636
|
"type": "tpl",
|
|
65633
65637
|
"tpl": "${label}",
|
|
65634
65638
|
}] : _r, _s = props.boardFooter, boardFooter = _s === void 0 ? [] : _s, _t = props.wrapperClassName, wrapperClassName = _t === void 0 ? "gap-2" : _t, _u = props.boardClassName, boardClassName = _u === void 0 ? "border rounded" : _u, _v = props.cardClassName, cardClassName = _v === void 0 ? "" : _v;
|
|
65639
|
+
if (!props.data) {
|
|
65640
|
+
// 为了解决3.2 dispatchevent不生效的问题, https://github.com/baidu/amis/issues/7488
|
|
65641
|
+
// 如果data为undefined,dispatchEvent时第三个参数传入的current的data为undefined会报错
|
|
65642
|
+
props.data = {};
|
|
65643
|
+
}
|
|
65644
|
+
var MultipleContainersRef = react.exports.useRef();
|
|
65635
65645
|
value && delete (value.$$id);
|
|
65636
65646
|
var _w = __read(react.exports.useState(function () {
|
|
65637
65647
|
var _a;
|
|
@@ -65656,7 +65666,7 @@ function MultipleContainers(props) {
|
|
|
65656
65666
|
value = newItems || items;
|
|
65657
65667
|
return [4 /*yield*/, amisDispatchEvent('change', createObject(amisData, {
|
|
65658
65668
|
value: value
|
|
65659
|
-
}))];
|
|
65669
|
+
}), MultipleContainersRef.current)];
|
|
65660
65670
|
case 1:
|
|
65661
65671
|
rendererEvent = _a.sent();
|
|
65662
65672
|
if (rendererEvent === null || rendererEvent === void 0 ? void 0 : rendererEvent.prevented) {
|
|
@@ -65753,7 +65763,7 @@ function MultipleContainers(props) {
|
|
|
65753
65763
|
recentlyMovedToNewContainer.current = false;
|
|
65754
65764
|
});
|
|
65755
65765
|
}, [items]);
|
|
65756
|
-
|
|
65766
|
+
var multipleContainers = (React.createElement(DndContext, __assign$1({ sensors: sensors, collisionDetection: collisionDetectionStrategy, measuring: {
|
|
65757
65767
|
droppable: {
|
|
65758
65768
|
strategy: MeasuringStrategy.Always,
|
|
65759
65769
|
},
|
|
@@ -65879,7 +65889,7 @@ function MultipleContainers(props) {
|
|
|
65879
65889
|
setActiveId(null);
|
|
65880
65890
|
// console.log('拖动结束2,更新form value')
|
|
65881
65891
|
handleChange(newItems);
|
|
65882
|
-
}, cancelDrop: cancelDrop, onDragCancel: onDragCancel, modifiers: modifiers },
|
|
65892
|
+
}, cancelDrop: cancelDrop, onDragCancel: onDragCancel, modifiers: modifiers }, props),
|
|
65883
65893
|
React.createElement("div", { style: {
|
|
65884
65894
|
display: 'inline-grid',
|
|
65885
65895
|
boxSizing: 'border-box',
|
|
@@ -65911,6 +65921,10 @@ function MultipleContainers(props) {
|
|
|
65911
65921
|
: renderSortableItemDragOverlay(activeId)
|
|
65912
65922
|
: null), document.body),
|
|
65913
65923
|
trashable && activeId && !containers.includes(activeId) ? (React.createElement(Trash, { id: TRASH_ID })) : null)));
|
|
65924
|
+
// 为了解决3.2 dispatchevent不生效的问题, https://github.com/baidu/amis/issues/7488
|
|
65925
|
+
// dispatchEvent时第三个参数传入的current必须是一个带props属性的对象
|
|
65926
|
+
MultipleContainersRef.current = multipleContainers;
|
|
65927
|
+
return multipleContainers;
|
|
65914
65928
|
function renderSortableItemDragOverlay(id) {
|
|
65915
65929
|
var item = lodash.exports.cloneDeep(lodash.exports.keyBy(cardSource, 'id')[id]) || { id: id, label: '' + id, columnSpan: 1 };
|
|
65916
65930
|
if (item.columnSpan && item.columnSpan > columns)
|