@duxweb/dvha-pro 1.1.27 → 1.1.28
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("@duxweb/dvha-core"),y=require("@vueuse/core"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("@duxweb/dvha-core"),y=require("@vueuse/core"),A=require("mime"),l=require("naive-ui");require("vue-router");require("@overlastic/vue");const M=require("../media/media.cjs");require("vue-echarts");require("vue3-ace-editor");require("ace-builds/src-noconflict/mode-vue");require("ace-builds/src-noconflict/mode-javascript");require("ace-builds/src-noconflict/mode-html");require("ace-builds/src-noconflict/mode-json");require("ace-builds/src-noconflict/mode-json5");require("ace-builds/src-noconflict/theme-tomorrow_night");require("ace-builds/src-noconflict/theme-tomorrow");require("ace-builds/src-noconflict/ext-searchbox");require("ace-builds/src-noconflict/ext-language_tools");require("ace-builds/src-noconflict/mode-snippets");require("vue-cropper");require("clsx");require("jinrishici");require("lodash-es");require("@vee-validate/i18n");require("colorizr");require("echarts");require("highlight.js/lib/core");require("highlight.js/lib/languages/bash");require("highlight.js/lib/languages/css");require("highlight.js/lib/languages/go");require("highlight.js/lib/languages/java");require("highlight.js/lib/languages/javascript");require("highlight.js/lib/languages/json");require("highlight.js/lib/languages/markdown");require("highlight.js/lib/languages/php");require("highlight.js/lib/languages/python");require("highlight.js/lib/languages/shell");require("highlight.js/lib/languages/sql");require("highlight.js/lib/languages/typescript");require("highlight.js/lib/languages/xml");require("@ant-design/colors");require("@unocss/preset-icons/browser");require("@unocss/preset-typography");require("unocss/preset-wind4");require("@vee-validate/i18n/dist/locale/en.json");require("@vee-validate/i18n/dist/locale/zh_CN.json");require("vee-validate");require("vue-command-palette");require("@duxweb/dvha-naiveui");require("../../pages/page404.cjs");require("vue-draggable-plus");require("short-unique-id");require("aieditor");const U=require("./config.cjs");require("@vue-flow/core");require("lodash-es/cloneDeep");require("@vue-flow/background");;/* empty css */const j=require("../../hooks/modal.cjs");require("@iconify-json/tabler/icons.json");require("../posterEditor/elements/index.cjs");require("fabric");require("../schemaEditor/schemaEditor.cjs");require("dayjs");require("@tanstack/vue-query");require("pinia");function b(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const d={"image/*":"JPG, PNG, GIF, BMP, WEBP","video/*":"MP4, AVI, MOV, WMV, FLV","audio/*":"MP3, WAV, AAC, FLAC","text/*":"TXT, CSV, JSON, XML","application/pdf":"PDF","application/msword":"DOC","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.ms-excel":"XLS","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"},i={container:"flex flex-col gap-2",dropZone:{base:"flex items-center justify-center p-6 rounded bg-muted border border-dashed transition-all cursor-pointer group",active:"border-primary bg-primary/5",hover:"border-accented hover:bg-primary/5 hover:border-primary"},content:"flex flex-col items-center gap-1",icon:{wrapper:"size-10 flex items-center justify-center rounded-full border border-dashed border-accented group-hover:border-primary transition-all cursor-pointer",icon:"i-tabler:device-desktop-up size-5"},text:{title:"mt-3 text-base font-medium",desc:"text-sm text-muted text-center",highlight:"text-primary font-medium"},table:{empty:"flex items-center justify-center h-full text-muted",actions:"flex gap-2"}},O=e.defineComponent({name:"DuxFileUpload",props:{path:{type:String,default:""},managePath:{type:String,default:""},signPath:{type:String,default:""},signCallback:Function,driver:{type:String,default:"local"},maxNum:Number,maxSize:Number,multiple:Boolean,manager:Boolean,accept:String,value:[String,Array,Object],defaultValue:[String,Array,Object],onUpdateValue:Function,method:String},setup(r,{emit:V}){const p=y.useVModel(r,"value",V,{passive:!0,deep:!0,defaultValue:r.defaultValue}),N=l.useMessage(),{t:a}=x.useI18n(),m=e.ref(),s=e.computed(()=>r.maxSize||5),F=j.useModal(),{uploadPath:f,managePath:P,driver:S,method:q}=U.useUploadConfig({driver:r?.driver,signPath:r?.signPath,signCallback:r?.signCallback,uploadPath:r?.path,managePath:r?.managePath,method:r?.method}),n=x.useUpload({path:f.value,multiple:r.multiple,maxFileCount:r.maxNum,maxFileSize:s.value*1024*1024,autoUpload:!0,accept:r.accept,onError:t=>N.error(t.message||a("components.upload.error")),driver:S.value,method:q.value}),{isOverDropZone:g}=y.useDropZone(m,{onDrop:t=>{t&&t.length>0&&n.addFiles(Array.from(t),"file")}}),c=e.ref(!1);e.watch(n.dataFiles,t=>{const o=r.multiple?t:t[0];c.value=!0,p.value=o,r.onUpdateValue?.(o),e.nextTick(()=>{c.value=!1})});const v=e.computed(()=>r.accept?r.accept.split(",").map(t=>{const o=t.trim();if(d[o])return d[o];if(o.includes("*")){const D=o.split("/")[0];return d[o]||D.toUpperCase()}const u=A.getExtension(o);return u?u.toUpperCase():o}).filter(Boolean).join(", "):""),C=e.computed(()=>({pending:e.createVNode("div",{class:"text-info"},[a("components.upload.status.pending")]),uploading:e.createVNode("div",{class:"text-info"},[a("components.upload.status.uploading")]),success:e.createVNode("div",{class:"text-success"},[a("components.upload.status.success")]),error:e.createVNode("div",{class:"text-error"},[a("components.upload.status.error")])})),k=e.computed(()=>[i.dropZone.base,g.value?i.dropZone.active:i.dropZone.hover]),z=e.computed(()=>[n.uploadFiles.value.length===0&&"border-b border-muted"]),h=e.ref(!1);return e.watch(p,t=>{if(c.value||h.value||!(Array.isArray(t)?t.length>0:!!t))return;h.value=!0;const u=Array.isArray(t)?t:[t];n.addDataFiles(u)},{immediate:!0}),()=>e.createVNode("div",{class:i.container},[e.createVNode("div",{ref:m,class:k.value,onClick:()=>n.open()},[e.createVNode("div",{class:i.content},[e.createVNode("div",{class:i.icon.wrapper,onClick:t=>{r.manager&&(t.stopPropagation(),F.show({title:a("components.upload.title"),width:800,component:()=>Promise.resolve().then(()=>require("./manager.cjs")),componentProps:{path:P.value,multiple:r.multiple,uploadParams:{path:f.value,accept:r.accept,maxNum:r.maxNum,maxSize:s.value,method:q.value}}}).then(o=>{n.addDataFiles(o)}))}},[e.createVNode("div",{class:i.icon.icon},null)]),e.createVNode("div",{class:i.text.title},[a("components.upload.desc")]),e.createVNode("div",{class:i.text.desc},[g.value?e.createVNode("span",{class:i.text.highlight},[a("components.upload.dropHere")]):e.createVNode(e.Fragment,null,[v.value?a("components.upload.supportFormats",{formats:v.value}):a("components.upload.allFormats"),e.createTextVNode(",")," ",a("components.upload.maxSize",{size:s.value})])])])]),e.createVNode(l.NDataTable,{bordered:!1,class:z.value,columns:[{key:"filename",title:a("components.upload.file.name"),minWidth:200,render:t=>e.createVNode(M.DuxMedia,{title:t.filename,desc:t.filetype},null)},{key:"filesizeText",title:a("components.upload.file.size"),width:120},{key:"status",title:a("components.upload.file.status"),width:120,render:t=>t.status==="uploading"?e.createVNode("div",{class:"flex items-center"},[e.createVNode(l.NProgress,{type:"line",style:{width:"24px",height:"24px"},color:"rgb(var(--ui-color-primary))","indicator-placement":"inside",percentage:t.progress?.percent,showIndicator:!1,height:14},null)]):C.value[t.status]},{key:"actions",title:a("components.upload.actions"),width:120,render:t=>{let o,u;return e.createVNode("div",{class:i.table.actions},[e.createVNode(l.NButton,{type:"warning",size:"small",text:!0,disabled:["success","error","cancelled"].includes(t.status),onClick:()=>n.cancelFiles([t.id])},b(o=a("components.upload.cancel"))?o:{default:()=>[o]}),e.createVNode(l.NButton,{type:"error",size:"small",text:!0,onClick:()=>n.removeFiles([t.id])},b(u=a("components.upload.delete"))?u:{default:()=>[u]})])}}],data:n.uploadFiles.value},{empty:()=>e.createVNode("div",{class:i.table.empty},[a("components.upload.empty")])})])}});exports.DuxFileUpload=O;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=`/*
|
|
2
|
-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=`/* Source: /Volumes/Web/dux-vue/packages/pro/src/components/flowEditor/style.css */
|
|
2
|
+
.vue-flow__handle {
|
|
3
|
+
transition: box-shadow 0.2s ease;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vue-flow__handle:hover {
|
|
7
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
|
|
8
|
+
}
|
|
9
|
+
/* layer: properties */
|
|
10
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-space-y-reverse:initial;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-ease:initial;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
|
|
3
11
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
12
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
13
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -1092,17 +1100,9 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1092
1100
|
.m-0\\.7{margin:calc(var(--spacing) * 0.7);}
|
|
1093
1101
|
.m-118\\.2{margin:calc(var(--spacing) * 118.2);}
|
|
1094
1102
|
.m-302\\.2{margin:calc(var(--spacing) * 302.2);}
|
|
1095
|
-
.m12{margin:calc(var(--spacing) * 12);}
|
|
1096
|
-
.m14{margin:calc(var(--spacing) * 14);}
|
|
1097
1103
|
.m146\\.8{margin:calc(var(--spacing) * 146.8);}
|
|
1098
|
-
.m15{margin:calc(var(--spacing) * 15);}
|
|
1099
|
-
.m18{margin:calc(var(--spacing) * 18);}
|
|
1100
1104
|
.m29\\.3{margin:calc(var(--spacing) * 29.3);}
|
|
1101
|
-
.m3{margin:calc(var(--spacing) * 3);}
|
|
1102
|
-
.m5{margin:calc(var(--spacing) * 5);}
|
|
1103
|
-
.m7{margin:calc(var(--spacing) * 7);}
|
|
1104
1105
|
.m7\\.6{margin:calc(var(--spacing) * 7.6);}
|
|
1105
|
-
.m9{margin:calc(var(--spacing) * 9);}
|
|
1106
1106
|
.mx-auto{margin-inline:auto;}
|
|
1107
1107
|
.my-2{margin-block:calc(var(--spacing) * 2);}
|
|
1108
1108
|
.my-6{margin-block:calc(var(--spacing) * 6);}
|
|
@@ -1173,7 +1173,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1173
1173
|
.text-left{text-align:left;}
|
|
1174
1174
|
.text-right{text-align:right;}
|
|
1175
1175
|
.outline-0{outline-style:var(--un-outline-style);outline-width:0px;}
|
|
1176
|
-
.outline{outline-style:var(--un-outline-style);outline-width:1px;}
|
|
1177
1176
|
.\\!border-2{border-width:2px !important;}
|
|
1178
1177
|
.b,
|
|
1179
1178
|
.border,
|
|
@@ -1335,8 +1334,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1335
1334
|
.h-40{height:calc(var(--spacing) * 40);}
|
|
1336
1335
|
.h-5{height:calc(var(--spacing) * 5);}
|
|
1337
1336
|
.h-500px{height:500px;}
|
|
1338
|
-
.h-6
|
|
1339
|
-
.h6{height:calc(var(--spacing) * 6);}
|
|
1337
|
+
.h-6{height:calc(var(--spacing) * 6);}
|
|
1340
1338
|
.h-60{height:calc(var(--spacing) * 60);}
|
|
1341
1339
|
.h-96px{height:96px;}
|
|
1342
1340
|
.h-auto{height:auto;}
|
|
@@ -1388,16 +1386,13 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1388
1386
|
.block,
|
|
1389
1387
|
.group:hover .group-hover\\:block{display:block;}
|
|
1390
1388
|
.contents{display:contents;}
|
|
1391
|
-
.list-item{display:list-item;}
|
|
1392
1389
|
.hidden{display:none;}
|
|
1393
1390
|
.visible{visibility:visible;}
|
|
1394
|
-
.collapse{visibility:collapse;}
|
|
1395
1391
|
.cursor-pointer{cursor:pointer;}
|
|
1396
1392
|
.cursor-move{cursor:move;}
|
|
1397
1393
|
.cursor-not-allowed{cursor:not-allowed;}
|
|
1398
1394
|
.pointer-events-auto{pointer-events:auto;}
|
|
1399
1395
|
.pointer-events-none{pointer-events:none;}
|
|
1400
|
-
.resize{resize:both;}
|
|
1401
1396
|
.select-none{-webkit-user-select:none;user-select:none;}
|
|
1402
1397
|
.whitespace-nowrap{white-space:nowrap;}
|
|
1403
1398
|
.break-words{overflow-wrap:break-word;}
|
|
@@ -1435,7 +1430,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1435
1430
|
.duration-150{--un-duration:150ms;transition-duration:150ms;}
|
|
1436
1431
|
.duration-200{--un-duration:200ms;transition-duration:200ms;}
|
|
1437
1432
|
.duration-300{--un-duration:300ms;transition-duration:300ms;}
|
|
1438
|
-
.ease{--un-ease:var(--ease-DEFAULT);transition-timing-function:var(--ease-DEFAULT);}
|
|
1439
1433
|
.ease-in{--un-ease:var(--ease-in);transition-timing-function:var(--ease-in);}
|
|
1440
1434
|
.ease-in-out{--un-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out);}
|
|
1441
1435
|
.ease-out{--un-ease:var(--ease-out);transition-timing-function:var(--ease-out);}
|
|
@@ -1514,7 +1508,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1514
1508
|
.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur,) var(--un-backdrop-brightness,) var(--un-backdrop-contrast,) var(--un-backdrop-grayscale,) var(--un-backdrop-hue-rotate,) var(--un-backdrop-invert,) var(--un-backdrop-opacity,) var(--un-backdrop-saturate,) var(--un-backdrop-sepia,);backdrop-filter:var(--un-backdrop-blur,) var(--un-backdrop-brightness,) var(--un-backdrop-contrast,) var(--un-backdrop-grayscale,) var(--un-backdrop-hue-rotate,) var(--un-backdrop-invert,) var(--un-backdrop-opacity,) var(--un-backdrop-saturate,) var(--un-backdrop-sepia,);}
|
|
1515
1509
|
.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
|
|
1516
1510
|
.table{display:table;}
|
|
1517
|
-
.border-collapse{border-collapse:collapse;}
|
|
1518
1511
|
.text-default{color:color-mix(in oklab, rgb(var(--ui-text)) var(--un-text-opacity, 100%), transparent);--un-text-opacity:100%;}
|
|
1519
1512
|
.text-dimmed{color:color-mix(in oklab, rgb(var(--ui-text-dimmed)) var(--un-text-opacity, 100%), transparent);--un-text-opacity:100%;}
|
|
1520
1513
|
.placeholder\\:text-dimmed::placeholder{color:color-mix(in oklab, rgb(var(--ui-text-dimmed)) var(--un-text-opacity, 100%), transparent);--un-text-opacity:100%;}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as U, ref as c, computed as s, watch as b, nextTick as
|
|
1
|
+
import { defineComponent as U, ref as c, computed as s, watch as b, nextTick as j, createVNode as o, Fragment as O, createTextVNode as w, isVNode as Z } from "vue";
|
|
2
2
|
import { useI18n as B, useUpload as T } from "@duxweb/dvha-core";
|
|
3
3
|
import { useVModel as X, useDropZone as L } from "@vueuse/core";
|
|
4
4
|
import E from "mime";
|
|
@@ -66,7 +66,7 @@ import "dayjs";
|
|
|
66
66
|
import "@tanstack/vue-query";
|
|
67
67
|
import "pinia";
|
|
68
68
|
function P(t) {
|
|
69
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
69
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !Z(t);
|
|
70
70
|
}
|
|
71
71
|
const d = {
|
|
72
72
|
"image/*": "JPG, PNG, GIF, BMP, WEBP",
|
|
@@ -78,7 +78,7 @@ const d = {
|
|
|
78
78
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "DOCX",
|
|
79
79
|
"application/vnd.ms-excel": "XLS",
|
|
80
80
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "XLSX"
|
|
81
|
-
},
|
|
81
|
+
}, i = {
|
|
82
82
|
container: "flex flex-col gap-2",
|
|
83
83
|
dropZone: {
|
|
84
84
|
base: "flex items-center justify-center p-6 rounded bg-muted border border-dashed transition-all cursor-pointer group",
|
|
@@ -124,8 +124,8 @@ const d = {
|
|
|
124
124
|
multiple: Boolean,
|
|
125
125
|
manager: Boolean,
|
|
126
126
|
accept: String,
|
|
127
|
-
value: [String, Array],
|
|
128
|
-
defaultValue: [String, Array],
|
|
127
|
+
value: [String, Array, Object],
|
|
128
|
+
defaultValue: [String, Array, Object],
|
|
129
129
|
onUpdateValue: Function,
|
|
130
130
|
method: String
|
|
131
131
|
},
|
|
@@ -138,11 +138,11 @@ const d = {
|
|
|
138
138
|
defaultValue: t.defaultValue
|
|
139
139
|
}), C = I(), {
|
|
140
140
|
t: a
|
|
141
|
-
} = B(), f = c(), m = s(() => t.maxSize || 5),
|
|
141
|
+
} = B(), f = c(), m = s(() => t.maxSize || 5), V = H(), {
|
|
142
142
|
uploadPath: g,
|
|
143
|
-
managePath:
|
|
143
|
+
managePath: N,
|
|
144
144
|
driver: k,
|
|
145
|
-
method:
|
|
145
|
+
method: h
|
|
146
146
|
} = J({
|
|
147
147
|
driver: t?.driver,
|
|
148
148
|
signPath: t?.signPath,
|
|
@@ -159,29 +159,29 @@ const d = {
|
|
|
159
159
|
accept: t.accept,
|
|
160
160
|
onError: (e) => C.error(e.message || a("components.upload.error")),
|
|
161
161
|
driver: k.value,
|
|
162
|
-
method:
|
|
162
|
+
method: h.value
|
|
163
163
|
}), {
|
|
164
|
-
isOverDropZone:
|
|
164
|
+
isOverDropZone: v
|
|
165
165
|
} = L(f, {
|
|
166
166
|
onDrop: (e) => {
|
|
167
167
|
e && e.length > 0 && n.addFiles(Array.from(e), "file");
|
|
168
168
|
}
|
|
169
169
|
}), p = c(!1);
|
|
170
170
|
b(n.dataFiles, (e) => {
|
|
171
|
-
const
|
|
172
|
-
p.value = !0, u.value =
|
|
171
|
+
const r = t.multiple ? e : e[0];
|
|
172
|
+
p.value = !0, u.value = r, t.onUpdateValue?.(r), j(() => {
|
|
173
173
|
p.value = !1;
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
const x = s(() => t.accept ? t.accept.split(",").map((e) => {
|
|
177
|
-
const
|
|
178
|
-
if (d[
|
|
179
|
-
if (
|
|
180
|
-
const
|
|
181
|
-
return d[
|
|
177
|
+
const r = e.trim();
|
|
178
|
+
if (d[r]) return d[r];
|
|
179
|
+
if (r.includes("*")) {
|
|
180
|
+
const M = r.split("/")[0];
|
|
181
|
+
return d[r] || M.toUpperCase();
|
|
182
182
|
}
|
|
183
|
-
const l = E.getExtension(
|
|
184
|
-
return l ? l.toUpperCase() :
|
|
183
|
+
const l = E.getExtension(r);
|
|
184
|
+
return l ? l.toUpperCase() : r;
|
|
185
185
|
}).filter(Boolean).join(", ") : ""), z = s(() => ({
|
|
186
186
|
pending: o("div", {
|
|
187
187
|
class: "text-info"
|
|
@@ -195,60 +195,60 @@ const d = {
|
|
|
195
195
|
error: o("div", {
|
|
196
196
|
class: "text-error"
|
|
197
197
|
}, [a("components.upload.status.error")])
|
|
198
|
-
})),
|
|
198
|
+
})), A = s(() => [i.dropZone.base, v.value ? i.dropZone.active : i.dropZone.hover]), D = s(() => [n.uploadFiles.value.length === 0 && "border-b border-muted"]), y = c(!1);
|
|
199
199
|
return b(u, (e) => {
|
|
200
|
-
if (p.value ||
|
|
200
|
+
if (p.value || y.value || !(Array.isArray(e) ? e.length > 0 : !!e))
|
|
201
201
|
return;
|
|
202
202
|
y.value = !0;
|
|
203
|
-
const
|
|
204
|
-
n.addDataFiles(
|
|
203
|
+
const l = Array.isArray(e) ? e : [e];
|
|
204
|
+
n.addDataFiles(l);
|
|
205
205
|
}, {
|
|
206
206
|
immediate: !0
|
|
207
207
|
}), () => o("div", {
|
|
208
|
-
class:
|
|
208
|
+
class: i.container
|
|
209
209
|
}, [o("div", {
|
|
210
210
|
ref: f,
|
|
211
|
-
class:
|
|
211
|
+
class: A.value,
|
|
212
212
|
onClick: () => n.open()
|
|
213
213
|
}, [o("div", {
|
|
214
|
-
class:
|
|
214
|
+
class: i.content
|
|
215
215
|
}, [o("div", {
|
|
216
|
-
class:
|
|
216
|
+
class: i.icon.wrapper,
|
|
217
217
|
onClick: (e) => {
|
|
218
|
-
t.manager && (e.stopPropagation(),
|
|
218
|
+
t.manager && (e.stopPropagation(), V.show({
|
|
219
219
|
title: a("components.upload.title"),
|
|
220
220
|
width: 800,
|
|
221
221
|
component: () => import("./manager.js"),
|
|
222
222
|
componentProps: {
|
|
223
|
-
path:
|
|
223
|
+
path: N.value,
|
|
224
224
|
multiple: t.multiple,
|
|
225
225
|
uploadParams: {
|
|
226
226
|
path: g.value,
|
|
227
227
|
accept: t.accept,
|
|
228
228
|
maxNum: t.maxNum,
|
|
229
229
|
maxSize: m.value,
|
|
230
|
-
method:
|
|
230
|
+
method: h.value
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
}).then((
|
|
234
|
-
n.addDataFiles(
|
|
233
|
+
}).then((r) => {
|
|
234
|
+
n.addDataFiles(r);
|
|
235
235
|
}));
|
|
236
236
|
}
|
|
237
237
|
}, [o("div", {
|
|
238
|
-
class:
|
|
238
|
+
class: i.icon.icon
|
|
239
239
|
}, null)]), o("div", {
|
|
240
|
-
class:
|
|
240
|
+
class: i.text.title
|
|
241
241
|
}, [a("components.upload.desc")]), o("div", {
|
|
242
|
-
class:
|
|
243
|
-
}, [
|
|
244
|
-
class:
|
|
245
|
-
}, [a("components.upload.dropHere")]) : o(
|
|
242
|
+
class: i.text.desc
|
|
243
|
+
}, [v.value ? o("span", {
|
|
244
|
+
class: i.text.highlight
|
|
245
|
+
}, [a("components.upload.dropHere")]) : o(O, null, [x.value ? a("components.upload.supportFormats", {
|
|
246
246
|
formats: x.value
|
|
247
|
-
}) : a("components.upload.allFormats"),
|
|
247
|
+
}) : a("components.upload.allFormats"), w(","), " ", a("components.upload.maxSize", {
|
|
248
248
|
size: m.value
|
|
249
249
|
})])])])]), o(W, {
|
|
250
250
|
bordered: !1,
|
|
251
|
-
class:
|
|
251
|
+
class: D.value,
|
|
252
252
|
columns: [{
|
|
253
253
|
key: "filename",
|
|
254
254
|
title: a("components.upload.file.name"),
|
|
@@ -284,17 +284,17 @@ const d = {
|
|
|
284
284
|
title: a("components.upload.actions"),
|
|
285
285
|
width: 120,
|
|
286
286
|
render: (e) => {
|
|
287
|
-
let
|
|
287
|
+
let r, l;
|
|
288
288
|
return o("div", {
|
|
289
|
-
class:
|
|
289
|
+
class: i.table.actions
|
|
290
290
|
}, [o(F, {
|
|
291
291
|
type: "warning",
|
|
292
292
|
size: "small",
|
|
293
293
|
text: !0,
|
|
294
294
|
disabled: ["success", "error", "cancelled"].includes(e.status),
|
|
295
295
|
onClick: () => n.cancelFiles([e.id])
|
|
296
|
-
}, P(
|
|
297
|
-
default: () => [
|
|
296
|
+
}, P(r = a("components.upload.cancel")) ? r : {
|
|
297
|
+
default: () => [r]
|
|
298
298
|
}), o(F, {
|
|
299
299
|
type: "error",
|
|
300
300
|
size: "small",
|
|
@@ -308,7 +308,7 @@ const d = {
|
|
|
308
308
|
data: n.uploadFiles.value
|
|
309
309
|
}, {
|
|
310
310
|
empty: () => o("div", {
|
|
311
|
-
class:
|
|
311
|
+
class: i.table.empty
|
|
312
312
|
}, [a("components.upload.empty")])
|
|
313
313
|
})]);
|
|
314
314
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
const r = `/*
|
|
2
|
-
|
|
1
|
+
const r = `/* Source: /Volumes/Web/dux-vue/packages/pro/src/components/flowEditor/style.css */
|
|
2
|
+
.vue-flow__handle {
|
|
3
|
+
transition: box-shadow 0.2s ease;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.vue-flow__handle:hover {
|
|
7
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
|
|
8
|
+
}
|
|
9
|
+
/* layer: properties */
|
|
10
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-space-y-reverse:initial;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-ease:initial;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
|
|
3
11
|
@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
4
12
|
@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
5
13
|
@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
@@ -1092,17 +1100,9 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1092
1100
|
.m-0\\.7{margin:calc(var(--spacing) * 0.7);}
|
|
1093
1101
|
.m-118\\.2{margin:calc(var(--spacing) * 118.2);}
|
|
1094
1102
|
.m-302\\.2{margin:calc(var(--spacing) * 302.2);}
|
|
1095
|
-
.m12{margin:calc(var(--spacing) * 12);}
|
|
1096
|
-
.m14{margin:calc(var(--spacing) * 14);}
|
|
1097
1103
|
.m146\\.8{margin:calc(var(--spacing) * 146.8);}
|
|
1098
|
-
.m15{margin:calc(var(--spacing) * 15);}
|
|
1099
|
-
.m18{margin:calc(var(--spacing) * 18);}
|
|
1100
1104
|
.m29\\.3{margin:calc(var(--spacing) * 29.3);}
|
|
1101
|
-
.m3{margin:calc(var(--spacing) * 3);}
|
|
1102
|
-
.m5{margin:calc(var(--spacing) * 5);}
|
|
1103
|
-
.m7{margin:calc(var(--spacing) * 7);}
|
|
1104
1105
|
.m7\\.6{margin:calc(var(--spacing) * 7.6);}
|
|
1105
|
-
.m9{margin:calc(var(--spacing) * 9);}
|
|
1106
1106
|
.mx-auto{margin-inline:auto;}
|
|
1107
1107
|
.my-2{margin-block:calc(var(--spacing) * 2);}
|
|
1108
1108
|
.my-6{margin-block:calc(var(--spacing) * 6);}
|
|
@@ -1173,7 +1173,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1173
1173
|
.text-left{text-align:left;}
|
|
1174
1174
|
.text-right{text-align:right;}
|
|
1175
1175
|
.outline-0{outline-style:var(--un-outline-style);outline-width:0px;}
|
|
1176
|
-
.outline{outline-style:var(--un-outline-style);outline-width:1px;}
|
|
1177
1176
|
.\\!border-2{border-width:2px !important;}
|
|
1178
1177
|
.b,
|
|
1179
1178
|
.border,
|
|
@@ -1335,8 +1334,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1335
1334
|
.h-40{height:calc(var(--spacing) * 40);}
|
|
1336
1335
|
.h-5{height:calc(var(--spacing) * 5);}
|
|
1337
1336
|
.h-500px{height:500px;}
|
|
1338
|
-
.h-6
|
|
1339
|
-
.h6{height:calc(var(--spacing) * 6);}
|
|
1337
|
+
.h-6{height:calc(var(--spacing) * 6);}
|
|
1340
1338
|
.h-60{height:calc(var(--spacing) * 60);}
|
|
1341
1339
|
.h-96px{height:96px;}
|
|
1342
1340
|
.h-auto{height:auto;}
|
|
@@ -1388,16 +1386,13 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1388
1386
|
.block,
|
|
1389
1387
|
.group:hover .group-hover\\:block{display:block;}
|
|
1390
1388
|
.contents{display:contents;}
|
|
1391
|
-
.list-item{display:list-item;}
|
|
1392
1389
|
.hidden{display:none;}
|
|
1393
1390
|
.visible{visibility:visible;}
|
|
1394
|
-
.collapse{visibility:collapse;}
|
|
1395
1391
|
.cursor-pointer{cursor:pointer;}
|
|
1396
1392
|
.cursor-move{cursor:move;}
|
|
1397
1393
|
.cursor-not-allowed{cursor:not-allowed;}
|
|
1398
1394
|
.pointer-events-auto{pointer-events:auto;}
|
|
1399
1395
|
.pointer-events-none{pointer-events:none;}
|
|
1400
|
-
.resize{resize:both;}
|
|
1401
1396
|
.select-none{-webkit-user-select:none;user-select:none;}
|
|
1402
1397
|
.whitespace-nowrap{white-space:nowrap;}
|
|
1403
1398
|
.break-words{overflow-wrap:break-word;}
|
|
@@ -1435,7 +1430,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1435
1430
|
.duration-150{--un-duration:150ms;transition-duration:150ms;}
|
|
1436
1431
|
.duration-200{--un-duration:200ms;transition-duration:200ms;}
|
|
1437
1432
|
.duration-300{--un-duration:300ms;transition-duration:300ms;}
|
|
1438
|
-
.ease{--un-ease:var(--ease-DEFAULT);transition-timing-function:var(--ease-DEFAULT);}
|
|
1439
1433
|
.ease-in{--un-ease:var(--ease-in);transition-timing-function:var(--ease-in);}
|
|
1440
1434
|
.ease-in-out{--un-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out);}
|
|
1441
1435
|
.ease-out{--un-ease:var(--ease-out);transition-timing-function:var(--ease-out);}
|
|
@@ -1514,7 +1508,6 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
|
1514
1508
|
.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur,) var(--un-backdrop-brightness,) var(--un-backdrop-contrast,) var(--un-backdrop-grayscale,) var(--un-backdrop-hue-rotate,) var(--un-backdrop-invert,) var(--un-backdrop-opacity,) var(--un-backdrop-saturate,) var(--un-backdrop-sepia,);backdrop-filter:var(--un-backdrop-blur,) var(--un-backdrop-brightness,) var(--un-backdrop-contrast,) var(--un-backdrop-grayscale,) var(--un-backdrop-hue-rotate,) var(--un-backdrop-invert,) var(--un-backdrop-opacity,) var(--un-backdrop-saturate,) var(--un-backdrop-sepia,);}
|
|
1515
1509
|
.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
|
|
1516
1510
|
.table{display:table;}
|
|
1517
|
-
.border-collapse{border-collapse:collapse;}
|
|
1518
1511
|
.text-default{color:color-mix(in oklab, rgb(var(--ui-text)) var(--un-text-opacity, 100%), transparent);--un-text-opacity:100%;}
|
|
1519
1512
|
.text-dimmed{color:color-mix(in oklab, rgb(var(--ui-text-dimmed)) var(--un-text-opacity, 100%), transparent);--un-text-opacity:100%;}
|
|
1520
1513
|
.placeholder\\:text-dimmed::placeholder{color:color-mix(in oklab, rgb(var(--ui-text-dimmed)) var(--un-text-opacity, 100%), transparent);--un-text-opacity:100%;}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duxweb/dvha-pro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.28",
|
|
5
5
|
"author": "DuxWeb",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ant-design/colors": "^7.2.1",
|
|
39
|
-
"@duxweb/dvha-core": "^1.1.
|
|
40
|
-
"@duxweb/dvha-naiveui": "^1.1.
|
|
39
|
+
"@duxweb/dvha-core": "^1.1.28",
|
|
40
|
+
"@duxweb/dvha-naiveui": "^1.1.28",
|
|
41
41
|
"@iconify-json/tabler": "^1.2.23",
|
|
42
42
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
43
43
|
"@overlastic/vue": "^0.8.3",
|