@deskhero/dh_ui 1.58.0 → 1.59.0

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 CHANGED
@@ -24288,7 +24288,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24288
24288
  setup(__props, { emit }) {
24289
24289
  const props = __props;
24290
24290
  useCssVars((_ctx) => ({
24291
- "92529aa8": __props.widthProp
24291
+ "1a734eac": __props.widthProp
24292
24292
  }));
24293
24293
  onMounted(() => {
24294
24294
  document.addEventListener("click", (event) => {
@@ -24324,7 +24324,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24324
24324
  }, [
24325
24325
  item.url ? (openBlock(), createBlock(_component_router_link, {
24326
24326
  key: 0,
24327
- class: "center-vertical",
24327
+ class: normalizeClass({ "center-vertical": true, disabled: item.disabled }),
24328
24328
  to: { path: item.url }
24329
24329
  }, {
24330
24330
  default: withCtx(() => [
@@ -24335,7 +24335,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24335
24335
  }, null, 8, ["icon-size", "item", "text-ellipsis-style"])
24336
24336
  ]),
24337
24337
  _: 2
24338
- }, 1032, ["to"])) : (openBlock(), createElementBlock("div", _hoisted_2$g, [
24338
+ }, 1032, ["class", "to"])) : (openBlock(), createElementBlock("div", _hoisted_2$g, [
24339
24339
  createVNode(DhDropdownMenuItem, {
24340
24340
  "icon-size": __props.iconSize,
24341
24341
  item,
@@ -24348,7 +24348,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24348
24348
  };
24349
24349
  }
24350
24350
  });
24351
- var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f709127c"]]);
24351
+ var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-ab80a4fa"]]);
24352
24352
  var Error_vue_vue_type_style_index_0_lang = "";
24353
24353
  const _hoisted_1$g = {
24354
24354
  key: 0,
@@ -24433,7 +24433,7 @@ const _hoisted_1$e = /* @__PURE__ */ createElementVNode("label", { for: "upload_
24433
24433
  /* @__PURE__ */ createElementVNode("span", { id: "upload" }, "browse")
24434
24434
  ], -1);
24435
24435
  const _hoisted_2$e = {
24436
- key: 1,
24436
+ key: 0,
24437
24437
  class: "file__upload_items"
24438
24438
  };
24439
24439
  const _hoisted_3$a = { class: "file__upload_list_item" };
@@ -24458,11 +24458,11 @@ const _hoisted_12$1 = { key: 0 };
24458
24458
  const _hoisted_13$1 = ["value"];
24459
24459
  const _hoisted_14$1 = ["href"];
24460
24460
  const _hoisted_15$1 = {
24461
- key: 2,
24461
+ key: 1,
24462
24462
  class: "file__upload_placeholder"
24463
24463
  };
24464
24464
  const _hoisted_16$1 = {
24465
- key: 3,
24465
+ key: 2,
24466
24466
  class: "file__upload_action"
24467
24467
  };
24468
24468
  const _hoisted_17$1 = /* @__PURE__ */ createElementVNode("button", { class: "file__upload_action_cancel" }, "Cancel", -1);
@@ -24579,7 +24579,10 @@ const _sfc_main$e = {
24579
24579
  }
24580
24580
  function uploadFile(e2) {
24581
24581
  e2.stopPropagation();
24582
- files.value = upload.value.files;
24582
+ for (let i2 = 0; i2 < upload.value.files.length; i2++) {
24583
+ const file = upload.value.files[i2];
24584
+ files.value.push(file);
24585
+ }
24583
24586
  if (files.value) {
24584
24587
  fileSelected.value = true;
24585
24588
  }
@@ -24592,7 +24595,10 @@ const _sfc_main$e = {
24592
24595
  function dropFile(e2) {
24593
24596
  e2.stopPropagation();
24594
24597
  fileSelected.value = true;
24595
- files.value = e2.dataTransfer.files;
24598
+ for (let i2 = 0; i2 < e2.dataTransfer.files.length; i2++) {
24599
+ const file = e2.dataTransfer.files[i2];
24600
+ files.value.push(file);
24601
+ }
24596
24602
  emit("update:modelValue", files.value);
24597
24603
  }
24598
24604
  function deleteFile(index) {
@@ -24624,13 +24630,12 @@ const _sfc_main$e = {
24624
24630
  }
24625
24631
  return (_ctx, _cache) => {
24626
24632
  return openBlock(), createElementBlock("div", {
24627
- class: normalizeClass([
24628
- "file__upload",
24629
- (__props.inline ? "" : "file__upload_box", __props.large && __props.inline ? "file__upload_large" : "")
24630
- ])
24633
+ class: normalizeClass(["file__upload", {
24634
+ file__upload_box: !__props.inline,
24635
+ file__upload_large: __props.large && __props.inline
24636
+ }])
24631
24637
  }, [
24632
- !__props.fileSaved ? (openBlock(), createElementBlock("div", {
24633
- key: 0,
24638
+ createElementVNode("div", {
24634
24639
  class: "file__upload_btn",
24635
24640
  onDragover: _cache[1] || (_cache[1] = withModifiers(($event) => dragFile($event), ["prevent"])),
24636
24641
  onDrop: _cache[2] || (_cache[2] = withModifiers(($event) => dropFile($event), ["prevent"]))
@@ -24645,12 +24650,13 @@ const _sfc_main$e = {
24645
24650
  id: "upload_pdf",
24646
24651
  ref_key: "upload",
24647
24652
  ref: upload,
24653
+ enctype: "multipart/form-data",
24648
24654
  multiple: "",
24649
24655
  name: "file",
24650
24656
  type: "file",
24651
24657
  onInput: _cache[0] || (_cache[0] = ($event) => uploadFile($event))
24652
24658
  }, null, 544)
24653
- ], 32)) : createCommentVNode("", true),
24659
+ ], 32),
24654
24660
  fileSelected.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
24655
24661
  (openBlock(true), createElementBlock(Fragment, null, renderList(files.value, (file, id) => {
24656
24662
  return openBlock(), createElementBlock("div", {
@@ -43822,7 +43828,7 @@ const _sfc_main$2 = {
43822
43828
  return openBlock(), createElementBlock("div", {
43823
43829
  class: normalizeClass([
43824
43830
  "editor__wrapper",
43825
- __props.toolbarPosition == "right" ? "editor__wrapper--right" : "editor__wrapper--left"
43831
+ !__props.readOnly && __props.toolbarPosition == "right" ? "editor__wrapper--right" : !__props.readOnly ? "editor__wrapper--left" : ""
43826
43832
  ])
43827
43833
  }, [
43828
43834
  __props.wordCount ? (openBlock(), createElementBlock("div", _hoisted_1$2, [