@deskhero/dh_ui 1.59.0 → 1.59.2
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/dh_ui.es.js +144 -80
- package/dist/dh_ui.umd.js +12 -12
- package/dist/src/components/FileUpload.vue.d.ts +10 -0
- package/dist/src/components/TextEditor.vue.d.ts +0 -1
- package/dist/src/tools/{editorFile.d.ts → editorFiles.d.ts} +13 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dh_ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive, ref, defineComponent, useSlots, toRef, provide, computed, onMounted, onUnmounted, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps, isRef, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, createCommentVNode, inject, withKeys, withModifiers, Transition, createElementVNode, Fragment, normalizeStyle, createTextVNode, toDisplayString, resolveDynamicComponent, nextTick, withDirectives, vShow, onBeforeUpdate, getCurrentScope, onScopeDispose, vModelCheckbox, shallowRef, onBeforeUnmount, toRaw, h, isProxy, resolveComponent, pushScopeId, popScopeId, vModelText, useCssVars, toRefs, getCurrentInstance, vModelDynamic, onUpdated } from "vue";
|
|
1
|
+
import { reactive, ref, defineComponent, useSlots, toRef, provide, computed, onMounted, onUnmounted, watch, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps, isRef, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, createCommentVNode, inject, withKeys, withModifiers, Transition, createElementVNode, Fragment, normalizeStyle, createTextVNode, toDisplayString, resolveDynamicComponent, nextTick, withDirectives, vShow, onBeforeUpdate, getCurrentScope, onScopeDispose, vModelCheckbox, shallowRef, onBeforeUnmount, toRaw, h, isProxy, resolveComponent, pushScopeId, popScopeId, vModelText, useCssVars, onBeforeMount, toRefs, getCurrentInstance, vModelDynamic, onUpdated } from "vue";
|
|
2
2
|
var main$1 = "";
|
|
3
3
|
function toInteger(dirtyNumber) {
|
|
4
4
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -10741,7 +10741,7 @@ var __glob_1_60 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTg
|
|
|
10741
10741
|
var __glob_1_61 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE4LjIyMjIgNEg1Ljc3Nzc4QzQuNzk1OTQgNCA0IDQuNzk1OTQgNCA1Ljc3Nzc4VjE4LjIyMjJDNCAxOS4yMDQxIDQuNzk1OTQgMjAgNS43Nzc3OCAyMEgxOC4yMjIyQzE5LjIwNDEgMjAgMjAgMTkuMjA0MSAyMCAxOC4yMjIyVjUuNzc3NzhDMjAgNC43OTU5NCAxOS4yMDQxIDQgMTguMjIyMiA0WiIgc3Ryb2tlPSIjQkZCRkJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTExIDdIN1YxN0gxMVY3WiIgc3Ryb2tlPSIjQkZCRkJGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE3IDdIMTNWMTJIMTdWN1oiIHN0cm9rZT0iI0JGQkZCRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=";
|
|
10742
10742
|
var __glob_1_62 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9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TQgOS4xMTEyNiAxNy40Njg4IDkuMTExOTcgMTcuMjc0IDkuMzA3NjZDMTcuMDc5MiA5LjUwMzM2IDE3LjA3OTkgOS44MTk5NCAxNy4yNzU2IDEwLjAxNDhMMTguNzg4OSAxMS41MjE0SDEwLjI0NzlDOS45NzE3OCAxMS41MjE0IDkuNzQ3OTIgMTEuNzQ1MyA5Ljc0NzkyIDEyLjAyMTRDOS43NDc5MiAxMi4yOTc1IDkuOTcxNzggMTIuNTIxNCAxMC4yNDc5IDEyLjUyMTRIMTguNzg5TDE3LjI3NTUgMTQuMDI4N0MxNy4wNzk5IDE0LjIyMzUgMTcuMDc5MiAxNC41NDAxIDE3LjI3NDEgMTQuNzM1OEMxNy40Njg5IDE0LjkzMTUgMTcuNzg1NSAxNC45MzIxIDE3Ljk4MTIgMTQuNzM3MkwyMC4zNDIzIDEyLjM4NThDMjAuNDM5MyAxMi4yOTQ2IDIwLjQ5OTkgMTIuMTY1MSAyMC40OTk5IDEyLjAyMTRDMjAuNDk5OSAxMS44Nzk5IDIwLjQ0MTIgMTEuNzUyMiAyMC4zNDY4IDExLjY2MTJMMTcuOTgxMSA5LjMwNjA5WiIgZmlsbD0iI0JGQkZCRiIvPgo8L3N2Zz4K";
|
|
@@ -10874,12 +10874,12 @@ const _sfc_main$r = defineComponent({
|
|
|
10874
10874
|
}
|
|
10875
10875
|
});
|
|
10876
10876
|
const _hoisted_1$r = { class: "dp__options" };
|
|
10877
|
-
const _hoisted_2$
|
|
10877
|
+
const _hoisted_2$p = { class: "dp__options_switch" };
|
|
10878
10878
|
const _hoisted_3$h = /* @__PURE__ */ createElementVNode("span", { class: "dp__options_slider" }, null, -1);
|
|
10879
10879
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10880
10880
|
return openBlock(), createElementBlock("label", _hoisted_1$r, [
|
|
10881
10881
|
createElementVNode("span", null, toDisplayString(_ctx.label), 1),
|
|
10882
|
-
createElementVNode("div", _hoisted_2$
|
|
10882
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
10883
10883
|
withDirectives(createElementVNode("input", {
|
|
10884
10884
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.checkedValue = $event),
|
|
10885
10885
|
name: "switch",
|
|
@@ -23092,7 +23092,7 @@ const _sfc_main$q = {
|
|
|
23092
23092
|
}
|
|
23093
23093
|
};
|
|
23094
23094
|
const _hoisted_1$q = { class: "bar" };
|
|
23095
|
-
const _hoisted_2$
|
|
23095
|
+
const _hoisted_2$o = ["min", "max", "step", "value"];
|
|
23096
23096
|
const _hoisted_3$g = { class: "caption" };
|
|
23097
23097
|
const _hoisted_4$c = { class: "min-caption" };
|
|
23098
23098
|
const _hoisted_5$8 = { class: "bar-inner" };
|
|
@@ -23130,7 +23130,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23130
23130
|
step: $props.step,
|
|
23131
23131
|
value: $data.valueMin,
|
|
23132
23132
|
onInput: _cache[1] || (_cache[1] = withModifiers((...args) => $options.onInputMinChange && $options.onInputMinChange(...args), ["stop", "prevent"]))
|
|
23133
|
-
}, null, 40, _hoisted_2$
|
|
23133
|
+
}, null, 40, _hoisted_2$o),
|
|
23134
23134
|
createElementVNode("div", {
|
|
23135
23135
|
class: "thumb thumb-left",
|
|
23136
23136
|
onMousedown: _cache[2] || (_cache[2] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args)),
|
|
@@ -23411,7 +23411,7 @@ const _sfc_main$p = defineComponent({
|
|
|
23411
23411
|
}
|
|
23412
23412
|
});
|
|
23413
23413
|
const _hoisted_1$p = { class: "dh-range-container" };
|
|
23414
|
-
const _hoisted_2$
|
|
23414
|
+
const _hoisted_2$n = { class: "bar-chart" };
|
|
23415
23415
|
const _hoisted_3$f = {
|
|
23416
23416
|
key: 0,
|
|
23417
23417
|
class: "input-group-section"
|
|
@@ -23424,7 +23424,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23424
23424
|
const _component_Bar = resolveComponent("Bar");
|
|
23425
23425
|
const _component_MultiRangeSlider = resolveComponent("MultiRangeSlider");
|
|
23426
23426
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
23427
|
-
createElementVNode("div", _hoisted_2$
|
|
23427
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
23428
23428
|
createVNode(_component_Bar, {
|
|
23429
23429
|
"chart-data": _ctx.chartData,
|
|
23430
23430
|
"chart-id": _ctx.chartId,
|
|
@@ -23492,7 +23492,7 @@ var main = "";
|
|
|
23492
23492
|
var AdvancedDatePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23493
23493
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-f12ea7b0"), n = n(), popScopeId(), n);
|
|
23494
23494
|
const _hoisted_1$o = { id: "dp-container" };
|
|
23495
|
-
const _hoisted_2$
|
|
23495
|
+
const _hoisted_2$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "dp__calendar_range" }, [
|
|
23496
23496
|
/* @__PURE__ */ createElementVNode("p", null, "From"),
|
|
23497
23497
|
/* @__PURE__ */ createElementVNode("p", null, "To")
|
|
23498
23498
|
], -1));
|
|
@@ -23606,7 +23606,7 @@ const _sfc_main$o = {
|
|
|
23606
23606
|
}
|
|
23607
23607
|
return (_ctx, _cache) => {
|
|
23608
23608
|
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23609
|
-
_hoisted_2$
|
|
23609
|
+
_hoisted_2$m,
|
|
23610
23610
|
createVNode(unref(ca), {
|
|
23611
23611
|
ref_key: "datePicker",
|
|
23612
23612
|
ref: datePicker,
|
|
@@ -23805,7 +23805,7 @@ const _sfc_main$n = defineComponent({
|
|
|
23805
23805
|
}
|
|
23806
23806
|
});
|
|
23807
23807
|
const _hoisted_1$n = { class: "dh-advanced-filter-container" };
|
|
23808
|
-
const _hoisted_2$
|
|
23808
|
+
const _hoisted_2$l = { class: "advance_section" };
|
|
23809
23809
|
const _hoisted_3$d = { key: 0 };
|
|
23810
23810
|
const _hoisted_4$9 = { class: "list-none" };
|
|
23811
23811
|
const _hoisted_5$5 = ["checked"];
|
|
@@ -23814,7 +23814,7 @@ const _hoisted_7$4 = ["checked"];
|
|
|
23814
23814
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23815
23815
|
const _component_dh_icon = resolveComponent("dh-icon");
|
|
23816
23816
|
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
23817
|
-
createElementVNode("div", _hoisted_2$
|
|
23817
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
23818
23818
|
createElementVNode("span", {
|
|
23819
23819
|
class: "toggle-icon",
|
|
23820
23820
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFilter())
|
|
@@ -23867,7 +23867,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23867
23867
|
var AdvancedFilter = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$4]]);
|
|
23868
23868
|
var Button_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23869
23869
|
const _hoisted_1$m = ["disabled"];
|
|
23870
|
-
const _hoisted_2$
|
|
23870
|
+
const _hoisted_2$k = {
|
|
23871
23871
|
key: 1,
|
|
23872
23872
|
class: "prepend-icon"
|
|
23873
23873
|
};
|
|
@@ -23950,7 +23950,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23950
23950
|
}),
|
|
23951
23951
|
iconName: "loader"
|
|
23952
23952
|
}, null, 8, ["class"])) : createCommentVNode("", true),
|
|
23953
|
-
!__props.loading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
23953
|
+
!__props.loading ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
|
|
23954
23954
|
renderSlot(_ctx.$slots, "prepend-icon", {}, void 0, true)
|
|
23955
23955
|
])) : createCommentVNode("", true),
|
|
23956
23956
|
!__props.icon ? renderSlot(_ctx.$slots, "default", { key: 2 }, void 0, true) : createCommentVNode("", true),
|
|
@@ -23997,7 +23997,7 @@ const _sfc_main$l = defineComponent({
|
|
|
23997
23997
|
}
|
|
23998
23998
|
});
|
|
23999
23999
|
const _hoisted_1$l = ["placement", "target", "tooltipText", "trigger"];
|
|
24000
|
-
const _hoisted_2$
|
|
24000
|
+
const _hoisted_2$j = ["id"];
|
|
24001
24001
|
const _hoisted_3$b = { class: "text" };
|
|
24002
24002
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24003
24003
|
return openBlock(), createElementBlock("div", {
|
|
@@ -24018,13 +24018,13 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24018
24018
|
class: normalizeClass(`tooltiptext ${_ctx.show}`)
|
|
24019
24019
|
}, [
|
|
24020
24020
|
createElementVNode("span", _hoisted_3$b, toDisplayString(_ctx.tooltipText), 1)
|
|
24021
|
-
], 10, _hoisted_2$
|
|
24021
|
+
], 10, _hoisted_2$j)
|
|
24022
24022
|
], 40, _hoisted_1$l);
|
|
24023
24023
|
}
|
|
24024
24024
|
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$3]]);
|
|
24025
24025
|
var Copiable_vue_vue_type_style_index_0_lang = "";
|
|
24026
24026
|
const _hoisted_1$k = { class: "copy__text" };
|
|
24027
|
-
const _hoisted_2$
|
|
24027
|
+
const _hoisted_2$i = ["readonly"];
|
|
24028
24028
|
const _sfc_main$k = {
|
|
24029
24029
|
__name: "Copiable",
|
|
24030
24030
|
props: {
|
|
@@ -24062,7 +24062,7 @@ const _sfc_main$k = {
|
|
|
24062
24062
|
readonly: __props.readonly,
|
|
24063
24063
|
type: "text",
|
|
24064
24064
|
onInput: resetCopyText
|
|
24065
|
-
}, null, 40, _hoisted_2$
|
|
24065
|
+
}, null, 40, _hoisted_2$i), [
|
|
24066
24066
|
[vModelText, inputText.value]
|
|
24067
24067
|
]),
|
|
24068
24068
|
createVNode(Tooltip, {
|
|
@@ -24087,7 +24087,7 @@ const _sfc_main$k = {
|
|
|
24087
24087
|
};
|
|
24088
24088
|
var DatePicker_vue_vue_type_style_index_0_lang = "";
|
|
24089
24089
|
const _hoisted_1$j = /* @__PURE__ */ createTextVNode(" Back ");
|
|
24090
|
-
const _hoisted_2$
|
|
24090
|
+
const _hoisted_2$h = /* @__PURE__ */ createElementVNode("div", null, "today", -1);
|
|
24091
24091
|
const _sfc_main$j = {
|
|
24092
24092
|
__name: "DatePicker",
|
|
24093
24093
|
props: {
|
|
@@ -24165,7 +24165,7 @@ const _sfc_main$j = {
|
|
|
24165
24165
|
"clear-icon": withCtx(() => []),
|
|
24166
24166
|
"action-preview": withCtx(() => []),
|
|
24167
24167
|
"marker-tooltip": withCtx(() => [
|
|
24168
|
-
_hoisted_2$
|
|
24168
|
+
_hoisted_2$h
|
|
24169
24169
|
]),
|
|
24170
24170
|
_: 1
|
|
24171
24171
|
}, 8, ["modelValue", "enable-time-picker", "inline", "markers", "multi-calendars", "range"])
|
|
@@ -24175,7 +24175,7 @@ const _sfc_main$j = {
|
|
|
24175
24175
|
};
|
|
24176
24176
|
var DropdownMenuItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24177
24177
|
const _hoisted_1$i = ["src"];
|
|
24178
|
-
const _hoisted_2$
|
|
24178
|
+
const _hoisted_2$g = {
|
|
24179
24179
|
key: 3,
|
|
24180
24180
|
class: "menu-item-text-wrapper"
|
|
24181
24181
|
};
|
|
@@ -24218,7 +24218,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24218
24218
|
key: 2,
|
|
24219
24219
|
class: normalizeClass(["dh-body-2", __props.textEllipsisStyle])
|
|
24220
24220
|
}, toDisplayString(__props.item.text), 3)) : createCommentVNode("", true),
|
|
24221
|
-
__props.item.subText ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24221
|
+
__props.item.subText ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
24222
24222
|
createElementVNode("span", {
|
|
24223
24223
|
class: normalizeClass(["dh-body-1", __props.textEllipsisStyle])
|
|
24224
24224
|
}, toDisplayString(__props.item.text), 3),
|
|
@@ -24239,10 +24239,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24239
24239
|
var DhDropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-5820c7e5"]]);
|
|
24240
24240
|
var DropdownMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24241
24241
|
const _hoisted_1$h = ["data-e2e", "onClick"];
|
|
24242
|
-
const _hoisted_2$g = {
|
|
24243
|
-
key: 1,
|
|
24244
|
-
class: "center-vertical"
|
|
24245
|
-
};
|
|
24246
24242
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24247
24243
|
__name: "DropdownMenu",
|
|
24248
24244
|
props: {
|
|
@@ -24288,7 +24284,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24288
24284
|
setup(__props, { emit }) {
|
|
24289
24285
|
const props = __props;
|
|
24290
24286
|
useCssVars((_ctx) => ({
|
|
24291
|
-
"
|
|
24287
|
+
"0e047e18": __props.widthProp
|
|
24292
24288
|
}));
|
|
24293
24289
|
onMounted(() => {
|
|
24294
24290
|
document.addEventListener("click", (event) => {
|
|
@@ -24335,20 +24331,23 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24335
24331
|
}, null, 8, ["icon-size", "item", "text-ellipsis-style"])
|
|
24336
24332
|
]),
|
|
24337
24333
|
_: 2
|
|
24338
|
-
}, 1032, ["class", "to"])) : (openBlock(), createElementBlock("div",
|
|
24334
|
+
}, 1032, ["class", "to"])) : (openBlock(), createElementBlock("div", {
|
|
24335
|
+
key: 1,
|
|
24336
|
+
class: normalizeClass({ "center-vertical": true, disabled: item.disabled })
|
|
24337
|
+
}, [
|
|
24339
24338
|
createVNode(DhDropdownMenuItem, {
|
|
24340
24339
|
"icon-size": __props.iconSize,
|
|
24341
24340
|
item,
|
|
24342
24341
|
"text-ellipsis-style": __props.textEllipsisStyle
|
|
24343
24342
|
}, null, 8, ["icon-size", "item", "text-ellipsis-style"])
|
|
24344
|
-
]))
|
|
24343
|
+
], 2))
|
|
24345
24344
|
], 8, _hoisted_1$h);
|
|
24346
24345
|
}), 128))
|
|
24347
24346
|
], 4);
|
|
24348
24347
|
};
|
|
24349
24348
|
}
|
|
24350
24349
|
});
|
|
24351
|
-
var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
24350
|
+
var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f2460dfc"]]);
|
|
24352
24351
|
var Error_vue_vue_type_style_index_0_lang = "";
|
|
24353
24352
|
const _hoisted_1$g = {
|
|
24354
24353
|
key: 0,
|
|
@@ -24469,6 +24468,30 @@ const _hoisted_17$1 = /* @__PURE__ */ createElementVNode("button", { class: "fil
|
|
|
24469
24468
|
const _sfc_main$e = {
|
|
24470
24469
|
__name: "FileUpload",
|
|
24471
24470
|
props: {
|
|
24471
|
+
fileList: {
|
|
24472
|
+
type: Array,
|
|
24473
|
+
required: false,
|
|
24474
|
+
default: () => {
|
|
24475
|
+
return [];
|
|
24476
|
+
}
|
|
24477
|
+
},
|
|
24478
|
+
fileFormats: {
|
|
24479
|
+
type: Array,
|
|
24480
|
+
required: false,
|
|
24481
|
+
default: () => {
|
|
24482
|
+
return [
|
|
24483
|
+
".pdf",
|
|
24484
|
+
".csv",
|
|
24485
|
+
".doc",
|
|
24486
|
+
".jpeg",
|
|
24487
|
+
".jpg",
|
|
24488
|
+
".mp4",
|
|
24489
|
+
".png",
|
|
24490
|
+
".txt",
|
|
24491
|
+
".xls"
|
|
24492
|
+
];
|
|
24493
|
+
}
|
|
24494
|
+
},
|
|
24472
24495
|
uploadProgress: {
|
|
24473
24496
|
type: Array,
|
|
24474
24497
|
required: true
|
|
@@ -24619,7 +24642,10 @@ const _sfc_main$e = {
|
|
|
24619
24642
|
}
|
|
24620
24643
|
}
|
|
24621
24644
|
function saveFile() {
|
|
24622
|
-
|
|
24645
|
+
if (files.value.length) {
|
|
24646
|
+
console.log(files.value);
|
|
24647
|
+
emit("save:modelValue", files.value);
|
|
24648
|
+
}
|
|
24623
24649
|
}
|
|
24624
24650
|
function generateLink(file) {
|
|
24625
24651
|
return URL.createObjectURL(file);
|
|
@@ -24628,6 +24654,13 @@ const _sfc_main$e = {
|
|
|
24628
24654
|
e2.preventDefault();
|
|
24629
24655
|
emit("reload");
|
|
24630
24656
|
}
|
|
24657
|
+
onBeforeMount(() => {
|
|
24658
|
+
if (props.fileList.length) {
|
|
24659
|
+
files.value = props.fileList;
|
|
24660
|
+
fileSelected.value = true;
|
|
24661
|
+
saveFile();
|
|
24662
|
+
}
|
|
24663
|
+
});
|
|
24631
24664
|
return (_ctx, _cache) => {
|
|
24632
24665
|
return openBlock(), createElementBlock("div", {
|
|
24633
24666
|
class: normalizeClass(["file__upload", {
|
|
@@ -43317,9 +43350,10 @@ class ImageTool {
|
|
|
43317
43350
|
this.wrapper = document.createElement("div");
|
|
43318
43351
|
this.wrapper.classList.add("picture__upload_btn");
|
|
43319
43352
|
this.fileInput = document.createElement("input");
|
|
43320
|
-
|
|
43353
|
+
const uniqueId = `upload_image_${Date.now()}`;
|
|
43354
|
+
this.fileInput.id = uniqueId;
|
|
43321
43355
|
this.fileInput.type = "file";
|
|
43322
|
-
this.fileInput.name = "
|
|
43356
|
+
this.fileInput.name = "image";
|
|
43323
43357
|
this.fileInput.accept = "image/*";
|
|
43324
43358
|
this.icon = document.createElement("IMG");
|
|
43325
43359
|
this.icon.classList.add("picture__upload_btn_icon");
|
|
@@ -43329,7 +43363,7 @@ class ImageTool {
|
|
|
43329
43363
|
};
|
|
43330
43364
|
this.icon.height = "24";
|
|
43331
43365
|
this.label = document.createElement("label");
|
|
43332
|
-
this.label.setAttribute("for",
|
|
43366
|
+
this.label.setAttribute("for", uniqueId);
|
|
43333
43367
|
this.label.textContent = "Drag & drop image file or ";
|
|
43334
43368
|
this.browse = document.createElement("span");
|
|
43335
43369
|
this.browse.textContent = "browse";
|
|
@@ -43449,21 +43483,14 @@ class FileTool {
|
|
|
43449
43483
|
}
|
|
43450
43484
|
constructor({ data, config, api }) {
|
|
43451
43485
|
this.data = {
|
|
43452
|
-
|
|
43453
|
-
|
|
43454
|
-
width: data.width !== void 0 ? data.width : "WidthFull",
|
|
43455
|
-
position: data.position !== void 0 ? data.position : "AlignCenter"
|
|
43486
|
+
fileLinks: data.fileLinks || [],
|
|
43487
|
+
fileIds: data.fileIds || []
|
|
43456
43488
|
};
|
|
43457
43489
|
this.api = api;
|
|
43458
43490
|
this.config = config || {};
|
|
43459
43491
|
this.wrapper = null;
|
|
43460
43492
|
this.fileInput = null;
|
|
43461
|
-
this.
|
|
43462
|
-
this.name = null;
|
|
43463
|
-
this.img = null;
|
|
43464
|
-
this.label = null;
|
|
43465
|
-
this.icon = null;
|
|
43466
|
-
this.browse = null;
|
|
43493
|
+
this.resultContainer = null;
|
|
43467
43494
|
this.uploading = false;
|
|
43468
43495
|
}
|
|
43469
43496
|
render() {
|
|
@@ -43472,7 +43499,8 @@ class FileTool {
|
|
|
43472
43499
|
this.wrapper = document.createElement("div");
|
|
43473
43500
|
this.wrapper.classList.add("picture__upload_btn");
|
|
43474
43501
|
this.fileInput = document.createElement("input");
|
|
43475
|
-
|
|
43502
|
+
const uniqueId = `upload_file_${Date.now()}`;
|
|
43503
|
+
this.fileInput.id = uniqueId;
|
|
43476
43504
|
this.fileInput.type = "file";
|
|
43477
43505
|
this.fileInput.name = "file";
|
|
43478
43506
|
this.fileInput.multiple = true;
|
|
@@ -43484,7 +43512,7 @@ class FileTool {
|
|
|
43484
43512
|
};
|
|
43485
43513
|
this.icon.height = "24";
|
|
43486
43514
|
this.label = document.createElement("label");
|
|
43487
|
-
this.label.setAttribute("for",
|
|
43515
|
+
this.label.setAttribute("for", uniqueId);
|
|
43488
43516
|
this.label.textContent = "Drag & drop file(s) or ";
|
|
43489
43517
|
this.browse = document.createElement("span");
|
|
43490
43518
|
this.browse.textContent = "browse";
|
|
@@ -43493,22 +43521,18 @@ class FileTool {
|
|
|
43493
43521
|
this.wrapper.prepend(this.icon);
|
|
43494
43522
|
this.wrapper.appendChild(this.label);
|
|
43495
43523
|
this.wrapper.appendChild(this.fileInput);
|
|
43496
|
-
this.
|
|
43497
|
-
this.
|
|
43498
|
-
this.
|
|
43499
|
-
this.
|
|
43500
|
-
|
|
43501
|
-
|
|
43502
|
-
this.name.classList.add("file__result_name");
|
|
43503
|
-
this.result.style.display = "none";
|
|
43504
|
-
this.result.appendChild(this.img);
|
|
43505
|
-
this.result.appendChild(this.name);
|
|
43524
|
+
this.resultContainer = document.createElement("div");
|
|
43525
|
+
this.resultContainer.classList.add("file__results");
|
|
43526
|
+
this.resultContainer.style.gap = "7px";
|
|
43527
|
+
if (!this.data.fileIds.length) {
|
|
43528
|
+
this.resultContainer.style.display = "none";
|
|
43529
|
+
}
|
|
43506
43530
|
this.container.appendChild(this.wrapper);
|
|
43507
|
-
this.container.appendChild(this.
|
|
43508
|
-
|
|
43509
|
-
|
|
43510
|
-
this.result.style.display = "flex";
|
|
43531
|
+
this.container.appendChild(this.resultContainer);
|
|
43532
|
+
this.populateExistingFiles();
|
|
43533
|
+
if (this.data && this.data.fileIds.length) {
|
|
43511
43534
|
this.wrapper.style.display = "none";
|
|
43535
|
+
this.resultContainer.style.display = "flex";
|
|
43512
43536
|
}
|
|
43513
43537
|
if (this.api.readOnly.isEnabled) {
|
|
43514
43538
|
this._acceptTuneView();
|
|
@@ -43519,44 +43543,80 @@ class FileTool {
|
|
|
43519
43543
|
});
|
|
43520
43544
|
this.wrapper.addEventListener("drop", (e2) => {
|
|
43521
43545
|
e2.preventDefault();
|
|
43522
|
-
const
|
|
43523
|
-
this.
|
|
43546
|
+
const files = Array.from(e2.dataTransfer.files);
|
|
43547
|
+
this.handleFiles(files);
|
|
43524
43548
|
});
|
|
43525
43549
|
this.fileInput.addEventListener("input", (e2) => {
|
|
43526
43550
|
e2.stopPropagation();
|
|
43527
|
-
const
|
|
43528
|
-
this.
|
|
43551
|
+
const files = Array.from(this.fileInput.files);
|
|
43552
|
+
this.handleFiles(files);
|
|
43529
43553
|
});
|
|
43530
43554
|
return this.container;
|
|
43531
43555
|
}
|
|
43532
|
-
|
|
43533
|
-
|
|
43556
|
+
populateExistingFiles() {
|
|
43557
|
+
for (let i2 = 0; i2 < this.data.fileLinks.length; i2++) {
|
|
43558
|
+
const fileLink = this.data.fileLinks[i2];
|
|
43559
|
+
const fileId = this.data.fileIds[i2];
|
|
43560
|
+
const result = this.createResultElement(fileLink, fileId);
|
|
43561
|
+
this.resultContainer.appendChild(result);
|
|
43562
|
+
}
|
|
43563
|
+
}
|
|
43564
|
+
createResultElement(fileLink, fileId) {
|
|
43565
|
+
const result = document.createElement("div");
|
|
43566
|
+
result.classList.add("file__result");
|
|
43567
|
+
const img = document.createElement("IMG");
|
|
43568
|
+
img.classList.add("file__result_icon");
|
|
43569
|
+
img.src = FileIcon;
|
|
43570
|
+
const name = document.createElement("a");
|
|
43571
|
+
name.classList.add("file__result_name");
|
|
43572
|
+
name.href = fileLink;
|
|
43573
|
+
name.innerHTML = fileId.toString();
|
|
43574
|
+
name.download = fileId.toString();
|
|
43575
|
+
result.appendChild(img);
|
|
43576
|
+
result.appendChild(name);
|
|
43577
|
+
return result;
|
|
43578
|
+
}
|
|
43579
|
+
handleFiles(files) {
|
|
43580
|
+
if (files.length > 0) {
|
|
43534
43581
|
this.wrapper.style.display = "none";
|
|
43535
|
-
|
|
43536
|
-
|
|
43537
|
-
|
|
43538
|
-
|
|
43539
|
-
|
|
43582
|
+
this.resultContainer.style.display = "flex";
|
|
43583
|
+
for (const file of files) {
|
|
43584
|
+
const url = URL.createObjectURL(file);
|
|
43585
|
+
const fileId = this.generateFileId();
|
|
43586
|
+
const result = this.createResultElement(url, fileId);
|
|
43587
|
+
this.resultContainer.appendChild(result);
|
|
43588
|
+
this.uploadFile(file, fileId);
|
|
43589
|
+
}
|
|
43540
43590
|
this.uploading = true;
|
|
43541
|
-
this.uploadFile(file);
|
|
43542
43591
|
} else {
|
|
43543
43592
|
alert("Invalid file type. Please select a valid file.");
|
|
43544
43593
|
}
|
|
43545
43594
|
}
|
|
43595
|
+
generateFileId() {
|
|
43596
|
+
return Math.floor(Math.random() * 1e6);
|
|
43597
|
+
}
|
|
43546
43598
|
save(blockContent) {
|
|
43547
|
-
const
|
|
43548
|
-
if (
|
|
43599
|
+
const files = blockContent.querySelectorAll(".file__result");
|
|
43600
|
+
if (files.length === 0) {
|
|
43549
43601
|
return this.data;
|
|
43550
43602
|
}
|
|
43603
|
+
const fileLinks = [];
|
|
43604
|
+
const fileIds = [];
|
|
43605
|
+
for (const file of files) {
|
|
43606
|
+
const name = file.querySelector(".file__result_name");
|
|
43607
|
+
fileLinks.push(name.href);
|
|
43608
|
+
fileIds.push(name.innerHTML);
|
|
43609
|
+
}
|
|
43551
43610
|
return Object.assign(this.data, {
|
|
43552
|
-
|
|
43553
|
-
|
|
43611
|
+
fileLinks,
|
|
43612
|
+
fileIds
|
|
43554
43613
|
});
|
|
43555
43614
|
}
|
|
43556
|
-
uploadFile(file) {
|
|
43615
|
+
uploadFile(file, fileId) {
|
|
43557
43616
|
const uploadFile = new CustomEvent("uploadFile", {
|
|
43558
43617
|
detail: {
|
|
43559
|
-
file
|
|
43618
|
+
file,
|
|
43619
|
+
fileId
|
|
43560
43620
|
}
|
|
43561
43621
|
});
|
|
43562
43622
|
document.dispatchEvent(uploadFile);
|
|
@@ -43695,14 +43755,18 @@ const _sfc_main$2 = {
|
|
|
43695
43755
|
return words.value > 300 ? true : false;
|
|
43696
43756
|
});
|
|
43697
43757
|
expose({
|
|
43698
|
-
editorJS,
|
|
43699
43758
|
toggleReadOnly,
|
|
43700
43759
|
save,
|
|
43701
43760
|
reset: reset2,
|
|
43702
43761
|
editBlock
|
|
43703
43762
|
});
|
|
43704
43763
|
function toggleReadOnly() {
|
|
43705
|
-
editorJS.value.
|
|
43764
|
+
if (editorJS.value.configuration.data.blocks.length) {
|
|
43765
|
+
console.log(editorJS.value.configuration.data.blocks);
|
|
43766
|
+
editorJS.value.readOnly.toggle();
|
|
43767
|
+
} else {
|
|
43768
|
+
alert("You must at least have one block to toggle preview");
|
|
43769
|
+
}
|
|
43706
43770
|
}
|
|
43707
43771
|
function save() {
|
|
43708
43772
|
return editorJS.value.save();
|