@gct-paas/core-web 0.1.4-dev.14 → 0.1.4-dev.16
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/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-DKwtDu2R.js → monaco-editor-CF-NJ0C2.js} +1 -1
- package/dist/useMonacoEditor-DWGwLehS.js +1 -0
- package/es/components/app-modal/app-modal-component.mjs +4 -2
- package/es/components/base-button/base-button.vue.mjs +2 -2
- package/es/components/base-button/base-button.vue_vue_type_script_setup_true_name_BaseButton_lang.mjs +5 -5
- package/es/components/base-button/{base-button.vue_vue_type_style_index_0_scoped_5375ec2b_lang.css → base-button.vue_vue_type_style_index_0_scoped_5b7fe5af_lang.css} +18 -18
- package/es/components/basic-button/basic-button.vue.mjs +2 -2
- package/es/components/basic-button/basic-button.vue_vue_type_script_setup_true_name_BasicButton_lang.mjs +3 -3
- package/es/components/basic-button/{basic-button.vue_vue_type_style_index_0_scoped_1dbcb2fa_lang.css → basic-button.vue_vue_type_style_index_0_scoped_22131025_lang.css} +5 -5
- package/es/hooks/index.d.ts +0 -1
- package/es/hooks/index.mjs +0 -1
- package/es/index.mjs +6 -7
- package/es/loader.mjs +4 -5
- package/es/modules/Cropper/src/CopperFreeModal.vue.mjs +2 -2
- package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +4 -6
- package/es/modules/Cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_28afc2ab_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_d24895d3_lang.css} +10 -10
- package/es/modules/Cropper/src/CopperModal.vue.mjs +2 -2
- package/es/modules/Cropper/src/CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +5 -7
- package/es/modules/Cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_f42f8311_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_a65b9ff7_lang.css} +14 -14
- package/es/modules/Cropper/src/Cropper.vue_vue_type_script_lang.mjs +4 -5
- package/es/modules/Cropper/src/CropperAvatar.vue.mjs +2 -2
- package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +6 -7
- package/es/modules/Cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_66052c52_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_683cf5bb_lang.css} +7 -7
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +14 -10
- package/dist/useMonacoEditor-DrIqFqr0.js +0 -1
- package/es/hooks/useDesign.d.ts +0 -4
- package/es/hooks/useDesign.mjs +0 -10
- /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default from "./CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs";
|
|
3
|
-
import './CopperModal.
|
|
3
|
+
import './CopperModal.vue_vue_type_style_index_0_scoped_a65b9ff7_lang.css';/* empty css */
|
|
4
4
|
//#region src/modules/Cropper/src/CopperModal.vue
|
|
5
|
-
var CopperModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var CopperModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default, [["__scopeId", "data-v-a65b9ff7"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { CopperModal_default as default };
|
package/es/modules/Cropper/src/CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { useDesign } from "../../../hooks/useDesign.mjs";
|
|
2
|
-
import "../../../hooks/index.mjs";
|
|
3
1
|
import { useModalInner } from "../../global-modal/src/hooks/useModal.mjs";
|
|
4
2
|
import { BasicModal } from "../../global-modal/index.mjs";
|
|
5
3
|
import Cropper_default from "./Cropper.vue.mjs";
|
|
6
4
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
7
5
|
import { isFunction } from "lodash-es";
|
|
8
|
-
import { dataURLtoBlob, t } from "@gct-paas/core";
|
|
6
|
+
import { dataURLtoBlob, t, useNamespace } from "@gct-paas/core";
|
|
9
7
|
import { Space, Tooltip, Upload, message } from "ant-design-vue";
|
|
10
8
|
import { ReloadOutlined } from "@ant-design/icons-vue";
|
|
11
9
|
//#region src/modules/Cropper/src/CopperModal.vue?vue&type=script&setup=true&name=CropperModal&lang.ts
|
|
@@ -39,7 +37,7 @@ var CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default =
|
|
|
39
37
|
let scaleX = 1;
|
|
40
38
|
let scaleY = 1;
|
|
41
39
|
let filename = "";
|
|
42
|
-
const
|
|
40
|
+
const ns = useNamespace("cropper-am");
|
|
43
41
|
const [register, { closeModal, setModalProps }] = useModalInner();
|
|
44
42
|
function handleBeforeUpload(file) {
|
|
45
43
|
if (file.size / 1024 / 1024 > 4) {
|
|
@@ -111,7 +109,7 @@ var CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default =
|
|
|
111
109
|
onRegister: unref(register),
|
|
112
110
|
onOk: handleOk
|
|
113
111
|
}), {
|
|
114
|
-
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(
|
|
112
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(ns).b()) }, [createElementVNode("div", { class: normalizeClass(unref(ns).b("left")) }, [createElementVNode("div", { class: normalizeClass(unref(ns).b("cropper")) }, [src.value ? (openBlock(), createBlock(Cropper_default, {
|
|
115
113
|
key: 0,
|
|
116
114
|
src: src.value,
|
|
117
115
|
height: "360px",
|
|
@@ -133,7 +131,7 @@ var CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default =
|
|
|
133
131
|
_: 1
|
|
134
132
|
})])) : createCommentVNode("", true)], 2), __props.sourceUrlValue || src.value !== "/404.png" ? (openBlock(), createElementBlock("div", {
|
|
135
133
|
key: 0,
|
|
136
|
-
class: normalizeClass(
|
|
134
|
+
class: normalizeClass(unref(ns).b("toolbar"))
|
|
137
135
|
}, [createVNode(unref(Upload), {
|
|
138
136
|
"file-list": [],
|
|
139
137
|
accept: "image/*",
|
|
@@ -253,7 +251,7 @@ var CopperModal_vue_vue_type_script_setup_true_name_CropperModal_lang_default =
|
|
|
253
251
|
}, 8, ["title"])
|
|
254
252
|
]),
|
|
255
253
|
_: 1
|
|
256
|
-
})], 2)) : createCommentVNode("", true)], 2), createElementVNode("div", { class: normalizeClass([
|
|
254
|
+
})], 2)) : createCommentVNode("", true)], 2), createElementVNode("div", { class: normalizeClass([unref(ns).b("right"), "text-center"]) }, [_cache[22] || (_cache[22] = createTextVNode(" 预览 ", -1)), createElementVNode("div", { class: normalizeClass(unref(ns).b("group")) }, [
|
|
257
255
|
createElementVNode("div", _hoisted_4, [createVNode(_component_Avatar, {
|
|
258
256
|
src: previewSource.value,
|
|
259
257
|
size: 102
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.gct-cropper-am[data-v-
|
|
1
|
+
.gct-cropper-am[data-v-a65b9ff7] {
|
|
2
2
|
display: flex;
|
|
3
3
|
}
|
|
4
|
-
.gct-cropper-am-left[data-v-
|
|
5
|
-
.gct-cropper-am-right[data-v-
|
|
4
|
+
.gct-cropper-am-left[data-v-a65b9ff7],
|
|
5
|
+
.gct-cropper-am-right[data-v-a65b9ff7] {
|
|
6
6
|
height: 340px;
|
|
7
7
|
}
|
|
8
|
-
.gct-cropper-am-left[data-v-
|
|
8
|
+
.gct-cropper-am-left[data-v-a65b9ff7] {
|
|
9
9
|
width: 400px;
|
|
10
10
|
}
|
|
11
|
-
.gct-cropper-am-right[data-v-
|
|
11
|
+
.gct-cropper-am-right[data-v-a65b9ff7] {
|
|
12
12
|
width: 150px;
|
|
13
13
|
}
|
|
14
|
-
.gct-cropper-am-cropper[data-v-
|
|
14
|
+
.gct-cropper-am-cropper[data-v-a65b9ff7] {
|
|
15
15
|
position: relative;
|
|
16
16
|
width: 360px;
|
|
17
17
|
height: 360px;
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
12px 12px;
|
|
22
22
|
background-size: 24px 24px;
|
|
23
23
|
}
|
|
24
|
-
.gct-cropper-am-toolbar[data-v-
|
|
24
|
+
.gct-cropper-am-toolbar[data-v-a65b9ff7] {
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: space-between;
|
|
28
28
|
width: 360px;
|
|
29
29
|
margin-top: 10px;
|
|
30
30
|
}
|
|
31
|
-
.gct-cropper-am-preview[data-v-
|
|
31
|
+
.gct-cropper-am-preview[data-v-a65b9ff7] {
|
|
32
32
|
width: 220px;
|
|
33
33
|
height: 220px;
|
|
34
34
|
margin: 0 auto;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
border: 1px solid var(--gct-color-border);
|
|
37
37
|
border-radius: 50%;
|
|
38
38
|
}
|
|
39
|
-
.gct-cropper-am-preview img[data-v-
|
|
39
|
+
.gct-cropper-am-preview img[data-v-a65b9ff7] {
|
|
40
40
|
width: 100%;
|
|
41
41
|
height: 100%;
|
|
42
42
|
}
|
|
43
|
-
.gct-cropper-am-group[data-v-
|
|
43
|
+
.gct-cropper-am-group[data-v-a65b9ff7] {
|
|
44
44
|
display: flex;
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
align-items: center;
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
margin-top: 8px;
|
|
50
50
|
padding-top: 8px;
|
|
51
51
|
}
|
|
52
|
-
.empty[data-v-
|
|
52
|
+
.empty[data-v-a65b9ff7] {
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: 0;
|
|
55
55
|
left: 0;
|
|
56
56
|
width: 100%;
|
|
57
57
|
height: 100%;
|
|
58
58
|
}
|
|
59
|
-
.empty span[data-v-
|
|
59
|
+
.empty span[data-v-a65b9ff7] {
|
|
60
60
|
display: inline-block;
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
63
63
|
}
|
|
64
|
-
.empty span[data-v-
|
|
64
|
+
.empty span[data-v-a65b9ff7] .ant-upload-list {
|
|
65
65
|
width: 100%;
|
|
66
66
|
height: 100%;
|
|
67
67
|
}
|
|
68
|
-
.empty span[data-v-
|
|
68
|
+
.empty span[data-v-a65b9ff7] .ant-upload-list .ant-upload-select-picture-card {
|
|
69
69
|
width: 100%;
|
|
70
70
|
height: 100%;
|
|
71
71
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { useDesign } from "../../../hooks/useDesign.mjs";
|
|
2
|
-
import "../../../hooks/index.mjs";
|
|
3
1
|
import { computed, defineComponent, onMounted, onUnmounted, ref, unref } from "vue";
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
4
3
|
import { useDebounceFn } from "@vueuse/core";
|
|
5
4
|
import Cropper from "cropperjs";
|
|
6
5
|
import "cropperjs/dist/cropper.css";
|
|
@@ -73,7 +72,7 @@ var Cropper_vue_vue_type_script_lang_default = defineComponent({
|
|
|
73
72
|
const imgElRef = ref();
|
|
74
73
|
const cropper = ref();
|
|
75
74
|
const isReady = ref(false);
|
|
76
|
-
const
|
|
75
|
+
const ns = useNamespace("cropper-image");
|
|
77
76
|
const debounceRealTimeCroppered = useDebounceFn(realTimeCroppered, 80);
|
|
78
77
|
const getImageStyle = computed(() => {
|
|
79
78
|
return {
|
|
@@ -85,9 +84,9 @@ var Cropper_vue_vue_type_script_lang_default = defineComponent({
|
|
|
85
84
|
});
|
|
86
85
|
const getClass = computed(() => {
|
|
87
86
|
return [
|
|
88
|
-
|
|
87
|
+
ns.b(),
|
|
89
88
|
attrs.class,
|
|
90
|
-
{ [
|
|
89
|
+
{ [ns.m("circled")]: props.circled }
|
|
91
90
|
];
|
|
92
91
|
});
|
|
93
92
|
const getWrapperStyle = computed(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default from "./CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs";
|
|
3
|
-
import './CropperAvatar.
|
|
3
|
+
import './CropperAvatar.vue_vue_type_style_index_0_scoped_683cf5bb_lang.css';/* empty css */
|
|
4
4
|
//#region src/modules/Cropper/src/CropperAvatar.vue
|
|
5
|
-
var CropperAvatar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var CropperAvatar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default, [["__scopeId", "data-v-683cf5bb"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { CropperAvatar_default as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { useDesign } from "../../../hooks/useDesign.mjs";
|
|
2
1
|
import { transformUrl } from "../../../hooks/useFile.mjs";
|
|
3
2
|
import "../../../hooks/index.mjs";
|
|
4
3
|
import { useModal as useModal$1 } from "../../global-modal/src/hooks/useModal.mjs";
|
|
5
4
|
import "../../global-modal/index.mjs";
|
|
6
5
|
import CopperModal_default from "./CopperModal.vue.mjs";
|
|
7
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, resolveComponent, toDisplayString, unref, watch, watchEffect, withCtx } from "vue";
|
|
8
|
-
import { t } from "@gct-paas/core";
|
|
7
|
+
import { t, useNamespace } from "@gct-paas/core";
|
|
9
8
|
//#region src/modules/Cropper/src/CropperAvatar.vue?vue&type=script&setup=true&name=CropperAvatar&lang.ts
|
|
10
9
|
var _hoisted_1 = ["src"];
|
|
11
10
|
var CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default = /* @__PURE__ */ defineComponent({
|
|
@@ -34,9 +33,9 @@ var CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default
|
|
|
34
33
|
const defaultSrc = ref("");
|
|
35
34
|
const sourceValue = ref(transformUrl(props.value) || "");
|
|
36
35
|
const sourceUrlValue = ref(props.value || "");
|
|
37
|
-
const
|
|
36
|
+
const ns = useNamespace("cropper-avatar");
|
|
38
37
|
const [register, { openModal, closeModal }] = useModal$1();
|
|
39
|
-
const getClass = computed(() => [
|
|
38
|
+
const getClass = computed(() => [ns.b()]);
|
|
40
39
|
const getWidth = computed(() => `${props.width}`.replace(/px/, "") + "px");
|
|
41
40
|
const getIconWidth = computed(() => parseInt(`${props.width}`.replace(/px/, "")) / 2 + "px");
|
|
42
41
|
const getStyle = computed(() => ({ width: unref(getWidth) }));
|
|
@@ -74,11 +73,11 @@ var CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default
|
|
|
74
73
|
style: normalizeStyle(getStyle.value)
|
|
75
74
|
}, [
|
|
76
75
|
createElementVNode("div", {
|
|
77
|
-
class: normalizeClass(
|
|
76
|
+
class: normalizeClass(unref(ns).b("image-wrapper")),
|
|
78
77
|
style: normalizeStyle(getImageWrapperStyle.value),
|
|
79
78
|
onClick: handleClick
|
|
80
79
|
}, [createElementVNode("div", {
|
|
81
|
-
class: normalizeClass(
|
|
80
|
+
class: normalizeClass(unref(ns).b("image-mask")),
|
|
82
81
|
style: normalizeStyle(getImageWrapperStyle.value)
|
|
83
82
|
}, [createVNode(_component_Icon, {
|
|
84
83
|
icon: "ant-design:edit-outlined",
|
|
@@ -91,7 +90,7 @@ var CropperAvatar_vue_vue_type_script_setup_true_name_CropperAvatar_lang_default
|
|
|
91
90
|
}, null, 8, _hoisted_1)], 6),
|
|
92
91
|
__props.showBtn ? (openBlock(), createBlock(_component_a_button, mergeProps({
|
|
93
92
|
key: 0,
|
|
94
|
-
class:
|
|
93
|
+
class: unref(ns).b("upload-btn")
|
|
95
94
|
}, __props.btnProps, { onClick: unref(openModal) }), {
|
|
96
95
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.btnText ? __props.btnText : unref(t)("sys.component.cropper.selectImage")), 1)]),
|
|
97
96
|
_: 1
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.gct-cropper-avatar[data-v-
|
|
1
|
+
.gct-cropper-avatar[data-v-683cf5bb] {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
text-align: center;
|
|
4
4
|
}
|
|
5
|
-
.gct-cropper-avatar-image-wrapper[data-v-
|
|
5
|
+
.gct-cropper-avatar-image-wrapper[data-v-683cf5bb] {
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
border: 1px solid var(--gct-color-border);
|
|
8
8
|
border-radius: 50%;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
position: relative;
|
|
12
12
|
}
|
|
13
|
-
.gct-cropper-avatar-image-wrapper img[data-v-
|
|
13
|
+
.gct-cropper-avatar-image-wrapper img[data-v-683cf5bb] {
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|
|
16
|
-
.gct-cropper-avatar-image-mask[data-v-
|
|
16
|
+
.gct-cropper-avatar-image-mask[data-v-683cf5bb] {
|
|
17
17
|
position: absolute;
|
|
18
18
|
width: inherit;
|
|
19
19
|
height: inherit;
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
left: -1px;
|
|
27
27
|
top: -1px;
|
|
28
28
|
}
|
|
29
|
-
.gct-cropper-avatar-image-mask[data-v-
|
|
29
|
+
.gct-cropper-avatar-image-mask[data-v-683cf5bb] svg {
|
|
30
30
|
margin: auto;
|
|
31
31
|
width: 24px;
|
|
32
32
|
height: 24px;
|
|
33
33
|
}
|
|
34
|
-
.gct-cropper-avatar-image-mask[data-v-
|
|
34
|
+
.gct-cropper-avatar-image-mask[data-v-683cf5bb]:hover {
|
|
35
35
|
opacity: 40;
|
|
36
36
|
}
|
|
37
|
-
.gct-cropper-avatar-upload-btn[data-v-
|
|
37
|
+
.gct-cropper-avatar-upload-btn[data-v-683cf5bb] {
|
|
38
38
|
margin: 10px auto;
|
|
39
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValue } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import '../gct-table-text/gct-table-text.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-date/gct-table-date.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValueByText } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import './gct-table-text.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-text/gct-table-text.tsx
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
|
-
"
|
|
7
|
-
"module": "es/index.mjs",
|
|
6
|
+
"loader": "dist/loader.esm.min.js",
|
|
8
7
|
"types": "es/index.d.ts",
|
|
9
|
-
"system": "dist/index.system.min.js",
|
|
10
8
|
"exports": {
|
|
11
9
|
".": {
|
|
12
10
|
"types": "./es/index.d.ts",
|
|
13
|
-
"import": "./es/index.mjs"
|
|
14
|
-
"require": "./dist/index.min.cjs"
|
|
11
|
+
"import": "./es/index.mjs"
|
|
15
12
|
},
|
|
16
13
|
"./types": {
|
|
17
14
|
"types": "./es/types/index.d.ts"
|
|
@@ -49,10 +46,10 @@
|
|
|
49
46
|
},
|
|
50
47
|
"dependencies": {
|
|
51
48
|
"@ant-design/icons-vue": "^6.1.0",
|
|
52
|
-
"@gct-paas/api": "^0.1.1",
|
|
53
|
-
"@gct-paas/core": "0.1.4-dev.
|
|
49
|
+
"@gct-paas/api": "^0.1.2-dev.1",
|
|
50
|
+
"@gct-paas/core": "0.1.4-dev.16",
|
|
54
51
|
"@gct-paas/platform-icons": "^0.0.2",
|
|
55
|
-
"@gct-paas/scss": "0.1.4-dev.
|
|
52
|
+
"@gct-paas/scss": "0.1.4-dev.16",
|
|
56
53
|
"@icon-park/vue-next": "^1.4.2",
|
|
57
54
|
"@monaco-editor/loader": "^1.7.0",
|
|
58
55
|
"@vueuse/core": "^14.1.0",
|
|
@@ -73,5 +70,12 @@
|
|
|
73
70
|
"wujie": "^1.0.29",
|
|
74
71
|
"wujie-vue3": "^1.0.29"
|
|
75
72
|
},
|
|
76
|
-
"
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@gct-paas/api": "*",
|
|
75
|
+
"@gct-paas/core": "*",
|
|
76
|
+
"@gct-paas/scss": "*",
|
|
77
|
+
"vant": ">=4",
|
|
78
|
+
"vue": ">=3"
|
|
79
|
+
},
|
|
80
|
+
"gitHead": "cee8da739039182f4df08a2c0126cdd578fbc33b"
|
|
77
81
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Modal as e,OverlayContainer as t,useNamespace as r}from"@gct-paas/core";import*as n from"vue";import{createVNode as o,defineComponent as i,h as a,isVNode as s,provide as c,ref as u,resolveComponent as l}from"vue";import{isFunction as d,isString as f}from"lodash-es";import{ConfigProvider as h,message as g}from"ant-design-vue";var p=Object.create,v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,b=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),D=(e,t)=>{let r={};for(var n in e)v(r,n,{get:e[n],enumerable:!0});return t||v(r,Symbol.toStringTag,{value:"Module"}),r},S=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,i=m(t),a=0,s=i.length;a<s;a++)o=i[a],O.call(e,o)||o===r||v(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(n=y(t,o))||n.enumerable});return e},I=(e,t,r)=>(r=null!=e?p(b(e)):{},S(!t&&e&&e.__esModule?r:v(r,"default",{value:e,enumerable:!0}),e)),T=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},E=class{info(e,t){return new Promise(r=>{g.info(e,t?.duration,r)})}success(e,t){return new Promise(r=>{g.success(e,t?.duration,r)})}warning(e,t){return new Promise(r=>{g.warning(e,t?.duration,r)})}error(e,t){return new Promise(r=>{g.error(e,t?.duration,r)})}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function M(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function _(e){return{}.toString.call(e).includes("Object")}function k(e){return"function"==typeof e}var L=M(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),H=function(e,t){return _(t)||L("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&L("changeField"),t},U=function(e){k(e)||L("selectorType")},F=function(e){k(e)||_(e)||L("handlerType"),_(e)&&Object.values(e).some(function(e){return!k(e)})&&L("handlersType")},q=function(e){var t;e||L("initialIsRequired"),_(e)||L("initialType"),t=e,Object.keys(t).length||L("initialContent")};function B(e,t){return k(t)?t(e.current):t}function V(e,t){return e.current=R(R({},e.current),t),t}function G(e,t,r){return k(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var X,$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(e),F(t);var r={current:e},n=M(G)(r,t),o=M(V)(r),i=M(H)(e),a=M(B)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return U(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,i,a)(e)}]},W={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},Y=(X=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=X.length?X.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(W),z=function(e){var t;return e||Y("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||Y("configType"),e.urls?(console.warn(W.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function K(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],K(e[r],t[r]))}),N(N({},e),t)}var J={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(J):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var Z,ee=["monaco"],te=function(e){if(Array.isArray(e))return e}(Z=$({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(r=o.call(t)).done)&&(a.push(r.value),2!==a.length);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw n}}return a}}(Z)||function(e){if(e){if("string"==typeof e)return C(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?C(e,2):void 0}}(Z)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),re=te[0],ne=te[1];function oe(e){return document.body.appendChild(e)}function ie(e){var t,r,n=re(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function ae(){var e=re(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;se(r),e.resolve(r)},function(t){e.reject(t)})}function se(e){re().monaco||ne({monaco:e})}var ce=new Promise(function(e,t){return ne({resolve:e,reject:t})}),ue={config:function(e){var t=z(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,ee);ne(function(e){return{config:K(e.config,n),monaco:r}})},init:function(){var e=re(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(ne({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(ce);if(window.monaco&&window.monaco.editor)return se(window.monaco),e.resolve(window.monaco),Q(ce);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(oe,ie)(ae)}return Q(ce)},__getMonacoInstance:function(){return re(function(e){return e.monaco})}},le=new class{_monacoInstance=null;_loadingPromise=null;constructor(){this._configureLoader()}_configureLoader(){ue.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=ue.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,r){return(await this.loadMonaco()).editor.createModel(e,t,r)}},de=/* @__PURE__ */D({Vue:()=>n,Vue2:()=>{},del:()=>pe,install:()=>he,isVue2:()=>!1,isVue3:()=>!0,set:()=>ge});import*as fe from"vue";function he(){}function ge(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function pe(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}S(de,fe,"default");var ve=Symbol.for("DndContextType");function ye(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var me="function"==typeof Symbol&&Symbol.observable||"@@observable",be=function(){return Math.random().toString(36).substring(7).split("").join(".")},Oe={INIT:"@@redux/INIT"+be(),REPLACE:"@@redux/REPLACE"+be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+be()}};function we(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(ye(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(ye(1));return r(we)(e,t)}if("function"!=typeof e)throw new Error(ye(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(ye(3));return i}function d(e){if("function"!=typeof e)throw new Error(ye(4));if(c)throw new Error(ye(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(ye(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ye(7));if(void 0===e.type)throw new Error(ye(8));if(c)throw new Error(ye(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++)(0,t[r])();return e}return f({type:Oe.INIT}),(n={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ye(10));o=e,f({type:Oe.REPLACE})}})[me]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ye(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[me]=function(){return this},e},n}function De(e,t,...r){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,function(){return r[n++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Se(e){return"object"==typeof e}var Ie="dnd-core/INIT_COORDS",Te="dnd-core/BEGIN_DRAG",Ee="dnd-core/PUBLISH_DRAG_SOURCE",Ce="dnd-core/HOVER",Pe="dnd-core/DROP",je="dnd-core/END_DRAG";function Ne(e,t){return{type:Ie,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var xe={type:Ie,payload:{clientOffset:null,sourceClientOffset:null}};function Ae(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:o,getSourceClientOffset:i}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Ne(o)),function(e,t,r){De(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){De(r.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,a);if(null==c)return void e.dispatch(xe);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){De("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Ne(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){De(Se(e),"Item must be an object.")}(l),s.pinSource(c),{type:Te,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!n}}):void 0}}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Re(e,t,r[t])})}return e}function _e(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){De(e.isDragging(),"Cannot call drop while not dragging."),De(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r).forEach((o,i)=>{const a={type:Pe,payload:{dropResult:Me({},t,ke(o,i,n,r))}};e.dispatch(a)})}}function ke(e,t,r,n){const o=r.getTarget(e);let i=o?o.drop(n,e):void 0;return function(e){De(void 0===e||Se(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function Le(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){De(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();return null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:je}}}function He(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function Ue(e){return function(t,{clientOffset:r}={}){!function(e){De(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const o=e[n];He(t.getTargetType(o),r)||e.splice(n,1)}}(n,i,o.getItemType()),function(e,t,r){De(t.isDragging(),"Cannot call hover while not dragging."),De(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const t=e[n];De(e.lastIndexOf(t)===n,"Expected targetIds to be unique in the passed array."),De(r.getTarget(t),"Expected targetIds to be registered.")}}(n,o,i),function(e,t,r){e.forEach(function(e){r.getTarget(e).hover(t,e)})}(n,o,i),{type:Ce,payload:{targetIds:n,clientOffset:r||null}}}}function Fe(e){return function(){if(e.getMonitor().isDragging())return{type:Ee}}}var qe=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,r=function(e){return{beginDrag:Ae(e),publishDragSource:Fe(e),hover:Ue(e),drop:_e(e),endDrag:Le(e)}}(this);return Object.keys(r).reduce((n,o)=>{const i=r[o];var a;return n[o]=(a=i,(...r)=>{const n=a.apply(e,r);void 0!==n&&t(n)}),n},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Be(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Ve=[],Ge=[];Ve.__IS_NONE__=!0,Ge.__IS_ALL__=!0;var Xe=class{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;De("function"==typeof e,"listener must be a function."),De(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===n||o===n+1&&!function(e,t){return e!==Ve&&(e===Ge||void 0===t||(r=t,n=e,r.filter(e=>n.indexOf(e)>-1)).length>0);var r,n}(t.dirtyHandlerIds,r)||e()}finally{n=o}})}subscribeToOffsetChange(e){De("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return De(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return De(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&He(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return De(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!He(n,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return r?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Be((i=n,{x:(o=t).x+i.x,y:o.y+i.y}),r):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Be(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},$e="undefined"!=typeof global?global:self,We=$e.MutationObserver||$e.WebKitMutationObserver;function Ye(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}var ze,Ke="function"==typeof We?function(e){let t=1;const r=new We(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:Ye,Je=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},Qe=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ke(this.flush),this.requestErrorThrow=Ye(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Ze=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new Je(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Qe.registerPendingError),et="dnd-core/ADD_SOURCE",tt="dnd-core/ADD_TARGET",rt="dnd-core/REMOVE_SOURCE",nt="dnd-core/REMOVE_TARGET";function ot(e,t){t&&Array.isArray(e)?e.forEach(e=>ot(e,!1)):De("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(ze||(ze={}));var it=0;function at(e){switch(e[0]){case"S":return ze.SOURCE;case"T":return ze.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function st(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,o]}=r.next();if(o===t)return!0;n=!!e}while(!n);return!1}var ct=class{addSource(e,t){ot(e),function(e){De("function"==typeof e.canDrag,"Expected canDrag to be a function."),De("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),De("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(ze.SOURCE,e,t);return this.store.dispatch(function(e){return{type:et,payload:{sourceId:e}}}(r)),r}addTarget(e,t){ot(e,!0),function(e){De("function"==typeof e.canDrop,"Expected canDrop to be a function."),De("function"==typeof e.hover,"Expected hover to be a function."),De("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(ze.TARGET,e,t);return this.store.dispatch(function(e){return{type:tt,payload:{targetId:e}}}(r)),r}containsHandler(e){return st(this.dragSources,e)||st(this.dropTargets,e)}getSource(e,t=!1){return De(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return De(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return De(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return De(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return at(e)===ze.SOURCE}isTargetId(e){return at(e)===ze.TARGET}removeSource(e){var t;De(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:rt,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Qe.enqueueTask(Ze.create(t))}removeTarget(e){De(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:nt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);De(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){De(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=function(e){const t=(it++).toString();switch(e){case ze.SOURCE:return`S${t}`;case ze.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(n,t),e===ze.SOURCE?this.dragSources.set(n,r):e===ze.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},ut=(e,t)=>e===t;function lt(e=Ve,t){switch(t.type){case Ce:break;case et:case tt:case nt:case rt:return Ve;default:return Ge}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,o=function(e,t){const r=/* @__PURE__ */new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const o=[];return r.forEach((e,t)=>{1===e&&o.push(t)}),o}(r,n);if(!(o.length>0)&&function(e,t,r=ut){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n))return Ve;const i=n[n.length-1],a=r[r.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ft={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ht(e=ft,t){const{payload:r}=t;switch(t.type){case Ie:case Te:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ce:return n=e.clientOffset,o=r.clientOffset,!n&&!o||n&&o&&n.x===o.x&&n.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){dt(e,t,r[t])})}return e}({},e,{clientOffset:r.clientOffset});case je:case Pe:return ft;default:return e}var n,o}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gt(e,t,r[t])})}return e}var vt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function yt(e=vt,t){const{payload:r}=t;switch(t.type){case Te:return pt({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Ee:return pt({},e,{isSourcePublic:!0});case Ce:return pt({},e,{targetIds:r.targetIds});case nt:return-1===e.targetIds.indexOf(r.targetId)?e:pt({},e,{targetIds:(n=e.targetIds,o=r.targetId,n.filter(e=>e!==o))});case Pe:return pt({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case je:return pt({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,o}function mt(e=0,t){switch(t.type){case et:case tt:return e+1;case rt:case nt:return e-1;default:return e}}function bt(e=0){return e+1}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ot(e,t,r[t])})}return e}function Dt(e={},t){return{dirtyHandlerIds:lt(e.dirtyHandlerIds,{type:t.type,payload:wt({},t.payload,{prevTargetIds:(r=e,n=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,r))})}),dragOffset:ht(e.dragOffset,t),refCount:mt(e.refCount,t),dragOperation:yt(e.dragOperation,t),stateId:bt(e.stateId)};var r,n}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var It=0,Tt=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ct(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;return o[Tt]||(o[Tt]=function(e,t,r={},n=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return we(Dt,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),i=new qe(o,new Xe(o,new ct(o))),a=e(i,t,r);return i.receiveBackend(a),i}(e,t,r,n)),o[Tt]}function Ct(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var Pt=(0,de.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var r,n,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[Et(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?St(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return u&&++It,(0,de.onUnmounted)(function(){if(u){var e=Ct();0===--It&&(e[Tt]=null)}}),r=c,(0,de.provide)(ve,r),function(){var e;return null!==(n=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==n?n:null}}});(0,de.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,de.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,r=new Image;return r.src=e.src,r.onload=function(){e.connect(r),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var jt=!1,Nt=!1,xt=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){De(!jt,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return jt=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{jt=!1}},t.isDragging=function(){if(!this.sourceId)return!1;De(!Nt,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Nt=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Nt=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),At=!1,Rt=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;De(!At,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return At=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{At=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function Mt(e){return function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=r)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(r=e)&&!0===r.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,r}(r)){var o=r;return e(o,n),o}}}function _t(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=Mt(n);t[r]=function(){return o}}}),t}function kt(e,t,r,n){let o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=r?r.call(n,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function Lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ht=/* @__PURE__ */function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=_t({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n=e.prototype;return n.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},n.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},n.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},n.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},n.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},n.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},n.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},n.didDragSourceOptionsChange=function(){return!kt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},n.didDragPreviewOptionsChange=function(){return!kt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},n.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},n.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},n.clearDragSource=function(){this.dragSourceNode=null},n.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(r=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&Lt(t.prototype,r),e}();function Ut(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ft=/* @__PURE__ */function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=_t({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,de.isRef)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n=e.prototype;return n.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},n.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},n.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},n.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},n.didOptionsChange=function(){return!kt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},n.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},n.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(r=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&Ut(t.prototype,r),e}(),qt=/* @__PURE__ */function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r,this.connector=n}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,r=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(r):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var r=this.spec,n=this.monitor,o=r.isDragging;return o?o(n):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,r=this.connector,n=e.end;n&&n(t.getItem(),t),r.reconnect()},e}();function Bt(){var e=(0,de.inject)(ve);return De(null!=e,"Expected drag drop context"),e}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gt(e,t,r){var n=Bt(),o=function(e,t,r){var n=(0,de.computed)(function(){return new qt((0,de.unref)(e),(0,de.unref)(t),(0,de.unref)(r))});return(0,de.watchEffect)(function(){n.value.spec=(0,de.unref)(e)}),n}(e,t,r),i=function(e){return(0,de.computed)(function(){var t=(0,de.unref)(e).type;return De(null!=t,"spec.type must be defined"),t})}(e);(0,de.watchEffect)(function(e){if(null!=(0,de.unref)(i)){var a=(u=function(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}((0,de.unref)(i),(0,de.unref)(o),(0,de.unref)(n)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(e,t):void 0}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];(0,de.unref)(t).receiveHandlerId(s),(0,de.unref)(r).receiveHandlerId(s),e(c)}var u,l})}function Xt(e){return(0,de.computed)(function(){return"function"==typeof e?e():e})}var $t=/* @__PURE__ */I(/* @__PURE__ */w((e,t)=>{t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!==o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}})());function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yt(e,t,r){var n,o,i=(n=function(e,t,r){var n=(0,de.ref)((0,de.unref)(t)((0,de.unref)(e))),o=function(){var o=(0,de.unref)(t)((0,de.unref)(e));(0,$t.default)(n.value,o)||(n.value=o,r&&r())};return(0,de.watchEffect)(o),[n,o]}(e,t,r),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(n,o)||function(e,t){if(e){if("string"==typeof e)return Wt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wt(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,de.watchEffect)(function(t){var r=(0,de.unref)(e).getHandlerId();null!=r&&t((0,de.unref)(e).subscribeToStateChange(s,{handlerIds:[r]}))}),a}function zt(e,t,r){return Yt(t,e||function(){return{}},function(){return(0,de.unref)(r).reconnect()})}function Kt(e,t){var r=(0,de.reactive)({el:null,options:(0,de.unref)(t)});return(0,de.watchEffect)(function(){e(r)},{flush:"post"}),function(e,n){ge(r,"el",e);var o=(0,de.unref)(t)||n;return(0,$t.default)(r.options,o)||ge(r,"options",o),(0,de.unref)(e)}}function Jt(e,t){return Kt(function(t){(0,de.unref)(e).hooks.dragSource()(t.el,t.options)},(0,de.computed)(function(){return(0,de.unref)(t).options}))}function Qt(e,t){return Kt(function(t){(0,de.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,de.computed)(function(){return(0,de.unref)(t).previewOptions}))}function Zt(e){var t,r=Xt(e),n=(t=Bt(),(0,de.computed)(function(){return new xt((0,de.unref)(t))})),o=function(e,t){var r=Bt(),n=(0,de.computed)(function(){return new Ht((0,de.unref)(r).getBackend())});return(0,de.watchEffect)(function(t){n.value.dragSourceOptions=(0,de.unref)(e)||null,(0,de.unref)(n).reconnect(),t(function(){n.value.disconnectDragSource()})}),(0,de.watchEffect)(function(e){n.value.dragPreviewOptions=(0,de.unref)(t)||null,(0,de.unref)(n).reconnect(),e(function(){n.value.disconnectDragPreview()})}),n}((0,de.computed)(function(){return(0,de.unref)(r).options}),(0,de.computed)(function(){return(0,de.unref)(r).previewOptions}));return Gt(r,n,o),[zt((0,de.computed)(function(){return(0,de.unref)(r).collect||function(){return{}}}),n,o),Jt(o,r),Qt(o,r)]}var er=/* @__PURE__ */function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rr(e,t,r){var n=Bt(),o=function(e,t){var r=(0,de.computed)(function(){return new er((0,de.unref)(e),(0,de.unref)(t))});return(0,de.watchEffect)(function(){r.value.spec=(0,de.unref)(e)}),r}(e,t),i=function(e){return(0,de.computed)(function(){var t=(0,de.unref)(e).accept;return De(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,de.watchEffect)(function(e){var a,s,c=(a=function(e,t,r){var n=(0,de.unref)(r).getRegistry(),o=n.addTarget((0,de.unref)(e),(0,de.unref)(t));return[o,function(){return n.removeTarget(o)}]}(i,o,n),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return tr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tr(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,de.unref)(t).receiveHandlerId(u),(0,de.unref)(r).receiveHandlerId(u),e(l)})}function nr(e,t){return Kt(function(t){(0,de.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,de.computed)(function(){return(0,de.unref)(t).options}))}function or(e){var t,r=Xt(e),n=(t=Bt(),(0,de.computed)(function(){return new Rt((0,de.unref)(t))})),o=function(e){var t=Bt(),r=(0,de.computed)(function(){return new Ft((0,de.unref)(t).getBackend())});return(0,de.watchEffect)(function(t){r.value.dropTargetOptions=(0,de.unref)(e)||null,r.value.reconnect(),t(function(){return r.value.disconnectDropTarget()})}),r}((0,de.computed)(function(){return(0,de.unref)(r).options}));return rr(r,n,o),[zt((0,de.computed)(function(){return(0,de.unref)(r).collect||function(){return{}}}),n,o),nr(o,r)]}function ir(e){let t=null;return()=>(null==t&&(t=e()),t)}var ar=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=/* @__PURE__ */new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const o=[];return r.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter(e=>e!==n)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},sr=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},cr=/* @__PURE__ */D({FILE:()=>ur,HTML:()=>fr,TEXT:()=>dr,URL:()=>lr}),ur="__NATIVE_FILE__",lr="__NATIVE_URL__",dr="__NATIVE_TEXT__",fr="__NATIVE_HTML__";function hr(e,t,r){const n=t.reduce((t,r)=>t||e.getData(r),"");return null!=n?n:r}var gr={[ur]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[fr]:{exposeProperties:{html:(e,t)=>hr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[lr]:{exposeProperties:{urls:(e,t)=>hr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[dr]:{exposeProperties:{text:(e,t)=>hr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function pr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(gr).filter(e=>{const r=gr[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var vr=ir(()=>/firefox/i.test(navigator.userAgent)),yr=ir(()=>Boolean(window.safari)),mr=class{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return r[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return r[a]+n[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:r}=e,n=[];for(let h=0;h<r;h++)n.push(h);n.sort((t,r)=>e[t]<e[r]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<r-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const r=i[h+1],n=s+r;u.push(3*n/((n+r)/e+(n+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],r=e+u[h+1]-f-f;l.push((f-e-r)*t),d.push(r*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}};function br(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Or(e){return{x:e.clientX,y:e.clientY}}var wr=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Dr(e,t,r[t])})}return e}var Ir=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Sr({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Sr({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(cr).some(t=>cr[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=gr[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new sr(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&br(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=Or(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,o=pr(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,r,n,o){const i=function(e){var t;return"IMG"===e.nodeName&&(vr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=br(i?e:t),s={x:r.x-a.x,y:r.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=n,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,r,n){let o=e?t.width:r,i=e?t.height:n;return yr()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new mr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:v?p:(()=>{let e=new mr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return yr()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,r,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});n.setDragImage(o,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=pr(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Or(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Or(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):pr(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Or(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new wr(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new ar(this.isNodeInDocument)}},Tr=function(e,t,r){return new Ir(e,t,r)},Er=/* @__PURE__ */i({props:{opts:{type:Object,default:()=>({})}},setup(t,n){const i=r("modal"),d=u(!1),f=u(!!t.opts.defaultFullscreen),g=()=>{f.value=!f.value},p=u({});t.opts&&Object.assign(p.value,t.opts);let v=null;const y=new e({dismiss:e=>{d.value=!1,v=e,n.emit("dismiss",v)},setOptions(e){Object.assign(p.value,e)}});c("modal",y);const m=e=>y.dismiss(e);n.expose({present:()=>{d.value=!0},dismiss:m});const b=u(!1),O=async()=>{if(y.ok)try{b.value=!0;const e=await y.ok();b.value=!1,!e||!0!==e.ok&&!0!==e.close||m(e)}finally{b.value=!1}else console.warn("打开模态未实现ok方法")},w=async()=>{y.cancel&&!1===await y.cancel()||m()},{getAntdLocale:D}={getAntdLocale:{locale:{}}};return()=>{let e;const t=n.slots.default?.();return t&&t.length>0&&(t[0].props.modal=y),o(h,{locale:D},{default:()=>{return[o(Pt,{backend:Tr},(r=e=a(l("a-modal"),{visible:d.value,class:[i.b(),p.value.placement&&i.m(p.value.placement),p.value.modalClass,i.is("hidden-footer",!1===p.value.showFooter),i.is("hidden-close-btn",!1===p.value.showCloseBtn),i.is("hidden-cancel-btn",!1===p.value.showCancelBtn),i.is("full-screen",f.value)],centered:!0,onOk:O,confirmLoading:b.value,onCancel:w,okText:"确认",okButtonProps:{disabled:y.state.okDisabled},...p.value},[!1!==p.value.canFullscreen?o("div",{class:i.e("full-screen"),onClick:g},[o("i",{class:"iconfont "+(f.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,t]),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?e:{default:()=>[e]}))];var r}})}}}),Cr=class{async modal(e,t,r){const n=this.createModal(e,t,r);return n.present(),n.onWillDismiss()}createModal(e,r,n){return function(e,r){return new t(Er,e,r)}(d(e)?e:()=>a(function(e){return f(e)?l(e):e}(e),{...r}),n)}},Pr=new Cr,jr=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),Nr={VS:"vs",BLACK:"hc-black",DARK:"vs-dark"},xr={JS:"javascript",SQL:"sql",PWSH:"powershell",JAVA:"java",C_SHARP:"csharp",JSON:"json"},Ar=class{value;title;language;theme;readonly};export{Cr as a,Zt as c,E as d,T as f,jr as i,le as l,I as m,Ar as n,Pr as o,w as p,Nr as r,or as s,xr as t,ue as u};
|
package/es/hooks/useDesign.d.ts
DELETED
package/es/hooks/useDesign.mjs
DELETED
|
File without changes
|