@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/assets.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{
|
|
4
4
|
"package": "@steedos-widgets/sortable",
|
|
5
5
|
"urls": [
|
|
6
|
-
"https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.14/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.14/dist/sortable.umd.css"
|
|
8
8
|
],
|
|
9
9
|
"library": "BuilderSortable"
|
|
10
10
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"npm": {
|
|
16
16
|
"package": "@steedos-widgets/sortable"
|
|
17
17
|
},
|
|
18
|
-
"url": "https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@1.3.14/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.14/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.14/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54142,6 +54142,7 @@ var frontend_record_detail_tab_detailed$1 = "Details";
|
|
|
54142
54142
|
var frontend_record_detail_tab_related$1 = "Related";
|
|
54143
54143
|
var frontend_all_apps$1 = "All apps";
|
|
54144
54144
|
var frontend_all_projects$1 = "All projects";
|
|
54145
|
+
var frontend_open_app_launcher$1 = "Open App Launcher";
|
|
54145
54146
|
var frontend_application_launcher$1 = "Application launcher";
|
|
54146
54147
|
var frontend_menu$1 = "Menu";
|
|
54147
54148
|
var frontend_help$1 = "Help";
|
|
@@ -54227,6 +54228,7 @@ var en_us = {
|
|
|
54227
54228
|
frontend_record_detail_tab_related: frontend_record_detail_tab_related$1,
|
|
54228
54229
|
frontend_all_apps: frontend_all_apps$1,
|
|
54229
54230
|
frontend_all_projects: frontend_all_projects$1,
|
|
54231
|
+
frontend_open_app_launcher: frontend_open_app_launcher$1,
|
|
54230
54232
|
frontend_application_launcher: frontend_application_launcher$1,
|
|
54231
54233
|
frontend_menu: frontend_menu$1,
|
|
54232
54234
|
frontend_help: frontend_help$1,
|
|
@@ -54314,6 +54316,7 @@ var frontend_record_detail_tab_detailed = "详细";
|
|
|
54314
54316
|
var frontend_record_detail_tab_related = "相关";
|
|
54315
54317
|
var frontend_all_apps = "所有应用";
|
|
54316
54318
|
var frontend_all_projects = "所有项目";
|
|
54319
|
+
var frontend_open_app_launcher = "打开应用程序启动器";
|
|
54317
54320
|
var frontend_application_launcher = "应用程序启动器";
|
|
54318
54321
|
var frontend_menu = "菜单";
|
|
54319
54322
|
var frontend_help = "帮助";
|
|
@@ -54400,6 +54403,7 @@ var zh_cn = {
|
|
|
54400
54403
|
frontend_record_detail_tab_related: frontend_record_detail_tab_related,
|
|
54401
54404
|
frontend_all_apps: frontend_all_apps,
|
|
54402
54405
|
frontend_all_projects: frontend_all_projects,
|
|
54406
|
+
frontend_open_app_launcher: frontend_open_app_launcher,
|
|
54403
54407
|
frontend_application_launcher: frontend_application_launcher,
|
|
54404
54408
|
frontend_menu: frontend_menu,
|
|
54405
54409
|
frontend_help: frontend_help,
|
|
@@ -58041,8 +58045,8 @@ function getAmisStaticFieldType(type, readonly, options){
|
|
|
58041
58045
|
/*
|
|
58042
58046
|
* @Author: baozhoutao@steedos.com
|
|
58043
58047
|
* @Date: 2022-10-28 14:15:09
|
|
58044
|
-
* @LastEditors:
|
|
58045
|
-
* @LastEditTime: 2023-
|
|
58048
|
+
* @LastEditors: 孙浩林 sunhaolin@steedos.com
|
|
58049
|
+
* @LastEditTime: 2023-11-24 13:45:24
|
|
58046
58050
|
* @Description:
|
|
58047
58051
|
*/
|
|
58048
58052
|
|
|
@@ -58079,7 +58083,7 @@ const getAmisFileReadonlySchema = (steedosField)=>{
|
|
|
58079
58083
|
<% let fileData = data._display.${steedosField.name}; if (fileData) { %>
|
|
58080
58084
|
<% if(!Array.isArray(fileData)){ fileData = [fileData]} %>
|
|
58081
58085
|
<% fileData.forEach(function(item) { %>
|
|
58082
|
-
<a href='<%= item.url %>' target='_self' class='block'><%= item.name %></a>
|
|
58086
|
+
<a href='<%= item.url+"?download=1" %>' target='_self' class='block'><%= item.name %></a>
|
|
58083
58087
|
<% });} %>`
|
|
58084
58088
|
}
|
|
58085
58089
|
}
|
|
@@ -65636,6 +65640,12 @@ function MultipleContainers(props) {
|
|
|
65636
65640
|
"type": "tpl",
|
|
65637
65641
|
"tpl": "${label}",
|
|
65638
65642
|
}] : _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;
|
|
65643
|
+
if (!props.data) {
|
|
65644
|
+
// 为了解决3.2 dispatchevent不生效的问题, https://github.com/baidu/amis/issues/7488
|
|
65645
|
+
// 如果data为undefined,dispatchEvent时第三个参数传入的current的data为undefined会报错
|
|
65646
|
+
props.data = {};
|
|
65647
|
+
}
|
|
65648
|
+
var MultipleContainersRef = react.exports.useRef();
|
|
65639
65649
|
value && delete (value.$$id);
|
|
65640
65650
|
var _w = __read(react.exports.useState(function () {
|
|
65641
65651
|
var _a;
|
|
@@ -65660,7 +65670,7 @@ function MultipleContainers(props) {
|
|
|
65660
65670
|
value = newItems || items;
|
|
65661
65671
|
return [4 /*yield*/, amisDispatchEvent('change', createObject(amisData, {
|
|
65662
65672
|
value: value
|
|
65663
|
-
}))];
|
|
65673
|
+
}), MultipleContainersRef.current)];
|
|
65664
65674
|
case 1:
|
|
65665
65675
|
rendererEvent = _a.sent();
|
|
65666
65676
|
if (rendererEvent === null || rendererEvent === void 0 ? void 0 : rendererEvent.prevented) {
|
|
@@ -65757,7 +65767,7 @@ function MultipleContainers(props) {
|
|
|
65757
65767
|
recentlyMovedToNewContainer.current = false;
|
|
65758
65768
|
});
|
|
65759
65769
|
}, [items]);
|
|
65760
|
-
|
|
65770
|
+
var multipleContainers = (React.createElement(DndContext, __assign$1({ sensors: sensors, collisionDetection: collisionDetectionStrategy, measuring: {
|
|
65761
65771
|
droppable: {
|
|
65762
65772
|
strategy: MeasuringStrategy.Always,
|
|
65763
65773
|
},
|
|
@@ -65883,7 +65893,7 @@ function MultipleContainers(props) {
|
|
|
65883
65893
|
setActiveId(null);
|
|
65884
65894
|
// console.log('拖动结束2,更新form value')
|
|
65885
65895
|
handleChange(newItems);
|
|
65886
|
-
}, cancelDrop: cancelDrop, onDragCancel: onDragCancel, modifiers: modifiers },
|
|
65896
|
+
}, cancelDrop: cancelDrop, onDragCancel: onDragCancel, modifiers: modifiers }, props),
|
|
65887
65897
|
React.createElement("div", { style: {
|
|
65888
65898
|
display: 'inline-grid',
|
|
65889
65899
|
boxSizing: 'border-box',
|
|
@@ -65915,6 +65925,10 @@ function MultipleContainers(props) {
|
|
|
65915
65925
|
: renderSortableItemDragOverlay(activeId)
|
|
65916
65926
|
: null), document.body),
|
|
65917
65927
|
trashable && activeId && !containers.includes(activeId) ? (React.createElement(Trash, { id: TRASH_ID })) : null)));
|
|
65928
|
+
// 为了解决3.2 dispatchevent不生效的问题, https://github.com/baidu/amis/issues/7488
|
|
65929
|
+
// dispatchEvent时第三个参数传入的current必须是一个带props属性的对象
|
|
65930
|
+
MultipleContainersRef.current = multipleContainers;
|
|
65931
|
+
return multipleContainers;
|
|
65918
65932
|
function renderSortableItemDragOverlay(id) {
|
|
65919
65933
|
var item = lodash.exports.cloneDeep(lodash.exports.keyBy(cardSource, 'id')[id]) || { id: id, label: '' + id, columnSpan: 1 };
|
|
65920
65934
|
if (item.columnSpan && item.columnSpan > columns)
|