@deskhero/dh_ui 1.43.3 → 1.43.5

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
@@ -23090,15 +23090,15 @@ const _hoisted_5$8 = { class: "bar-inner" };
23090
23090
  const _hoisted_6$8 = ["min", "max", "step", "value"];
23091
23091
  const _hoisted_7$7 = { class: "caption" };
23092
23092
  const _hoisted_8$4 = { class: "max-caption" };
23093
- const _hoisted_9$4 = {
23093
+ const _hoisted_9$3 = {
23094
23094
  key: 0,
23095
23095
  class: "ruler"
23096
23096
  };
23097
- const _hoisted_10$4 = {
23097
+ const _hoisted_10$3 = {
23098
23098
  key: 1,
23099
23099
  class: "sub-ruler"
23100
23100
  };
23101
- const _hoisted_11$4 = {
23101
+ const _hoisted_11$3 = {
23102
23102
  key: 2,
23103
23103
  class: "labels"
23104
23104
  };
@@ -23165,7 +23165,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23165
23165
  onClick: _cache[9] || (_cache[9] = (...args) => $options.onBarRightClick && $options.onBarRightClick(...args))
23166
23166
  }, null, 4)
23167
23167
  ]),
23168
- $props.ruler ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
23168
+ $props.ruler ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
23169
23169
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.stepCount, (n) => {
23170
23170
  return openBlock(), createElementBlock("div", {
23171
23171
  key: n,
@@ -23173,7 +23173,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23173
23173
  });
23174
23174
  }), 128))
23175
23175
  ])) : createCommentVNode("", true),
23176
- $options.subStepCount ? (openBlock(), createElementBlock("div", _hoisted_10$4, [
23176
+ $options.subStepCount ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
23177
23177
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.subStepCount, (n) => {
23178
23178
  return openBlock(), createElementBlock("div", {
23179
23179
  key: n,
@@ -23181,7 +23181,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23181
23181
  });
23182
23182
  }), 128))
23183
23183
  ])) : createCommentVNode("", true),
23184
- $props.label ? (openBlock(), createElementBlock("div", _hoisted_11$4, [
23184
+ $props.label ? (openBlock(), createElementBlock("div", _hoisted_11$3, [
23185
23185
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.scaleLabels, (label) => {
23186
23186
  return openBlock(), createElementBlock("div", {
23187
23187
  class: "label",
@@ -23665,10 +23665,10 @@ const _hoisted_5$5 = ["value"];
23665
23665
  const _hoisted_6$5 = /* @__PURE__ */ createTextVNode(" Back ");
23666
23666
  const _hoisted_7$4 = ["onClick"];
23667
23667
  const _hoisted_8$3 = ["onClick"];
23668
- const _hoisted_9$3 = ["onClick"];
23669
- const _hoisted_10$3 = ["onClick"];
23670
- const _hoisted_11$3 = ["onClick"];
23671
- const _hoisted_12$3 = ["onClick"];
23668
+ const _hoisted_9$2 = ["onClick"];
23669
+ const _hoisted_10$2 = ["onClick"];
23670
+ const _hoisted_11$2 = ["onClick"];
23671
+ const _hoisted_12$2 = ["onClick"];
23672
23672
  const _hoisted_13$2 = ["onClick"];
23673
23673
  const _hoisted_14$2 = ["onClick"];
23674
23674
  const _hoisted_15$2 = /* @__PURE__ */ createElementVNode("div", {
@@ -23848,28 +23848,28 @@ const _sfc_main$k = {
23848
23848
  (openBlock(), createBlock(Teleport, { to: "#tags" }, [
23849
23849
  createElementVNode("span", {
23850
23850
  onClick: ($event) => presetDateRange(range)
23851
- }, toDisplayString(label), 9, _hoisted_9$3)
23851
+ }, toDisplayString(label), 9, _hoisted_9$2)
23852
23852
  ]))
23853
23853
  ]),
23854
23854
  currentMonth: withCtx(({ label, range, presetDateRange }) => [
23855
23855
  (openBlock(), createBlock(Teleport, { to: "#tags" }, [
23856
23856
  createElementVNode("span", {
23857
23857
  onClick: ($event) => presetDateRange(range)
23858
- }, toDisplayString(label), 9, _hoisted_10$3)
23858
+ }, toDisplayString(label), 9, _hoisted_10$2)
23859
23859
  ]))
23860
23860
  ]),
23861
23861
  previousMonth: withCtx(({ label, range, presetDateRange }) => [
23862
23862
  (openBlock(), createBlock(Teleport, { to: "#tags" }, [
23863
23863
  createElementVNode("span", {
23864
23864
  onClick: ($event) => presetDateRange(range)
23865
- }, toDisplayString(label), 9, _hoisted_11$3)
23865
+ }, toDisplayString(label), 9, _hoisted_11$2)
23866
23866
  ]))
23867
23867
  ]),
23868
23868
  threeMonths: withCtx(({ label, range, presetDateRange }) => [
23869
23869
  (openBlock(), createBlock(Teleport, { to: "#tags" }, [
23870
23870
  createElementVNode("span", {
23871
23871
  onClick: ($event) => presetDateRange(range)
23872
- }, toDisplayString(label), 9, _hoisted_12$3)
23872
+ }, toDisplayString(label), 9, _hoisted_12$2)
23873
23873
  ]))
23874
23874
  ]),
23875
23875
  sixMonths: withCtx(({ label, range, presetDateRange }) => [
@@ -24163,7 +24163,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24163
24163
  };
24164
24164
  }
24165
24165
  });
24166
- var DhDropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-35071082"]]);
24166
+ var DhDropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3a3f37c0"]]);
24167
24167
  var DropdownMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
24168
24168
  const _hoisted_1$f = ["data-e2e", "onClick"];
24169
24169
  const _hoisted_2$e = ["onClick"];
@@ -24269,7 +24269,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24269
24269
  };
24270
24270
  }
24271
24271
  });
24272
- var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-0c809d82"]]);
24272
+ var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-2fa20f7b"]]);
24273
24273
  var Error_vue_vue_type_style_index_0_lang = "";
24274
24274
  const _hoisted_1$e = {
24275
24275
  key: 0,
@@ -24372,10 +24372,10 @@ const _hoisted_8$2 = {
24372
24372
  key: 2,
24373
24373
  class: "label__antivirus label__antivirus--detected"
24374
24374
  };
24375
- const _hoisted_9$2 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
24376
- const _hoisted_10$2 = { key: 3 };
24377
- const _hoisted_11$2 = { key: 4 };
24378
- const _hoisted_12$2 = { key: 0 };
24375
+ const _hoisted_9$1 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
24376
+ const _hoisted_10$1 = { key: 3 };
24377
+ const _hoisted_11$1 = { key: 4 };
24378
+ const _hoisted_12$1 = { key: 0 };
24379
24379
  const _hoisted_13$1 = ["value"];
24380
24380
  const _hoisted_14$1 = ["href"];
24381
24381
  const _hoisted_15$1 = {
@@ -24609,11 +24609,11 @@ const _sfc_main$c = {
24609
24609
  ])) : createCommentVNode("", true),
24610
24610
  props.uploadProgress[id] == 100 && __props.fileSaved && __props.virusCheck[id] == "failed" ? (openBlock(), createElementBlock("span", _hoisted_7$3, toDisplayString(__props.virusCheckFailedText), 1)) : createCommentVNode("", true),
24611
24611
  props.uploadProgress[id] == 100 && __props.fileSaved && __props.virusCheck[id] == "detected" ? (openBlock(), createElementBlock("span", _hoisted_8$2, toDisplayString(__props.virusDetectedText), 1)) : createCommentVNode("", true),
24612
- _hoisted_9$2,
24613
- __props.fileSaved && !__props.errorOccurred[id] || !__props.errorOccurred[id] && __props.virusCheck[id] ? (openBlock(), createElementBlock("span", _hoisted_10$2, toDisplayString(formatBytes(file.size)), 1)) : createCommentVNode("", true),
24614
- __props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createElementBlock("span", _hoisted_11$2, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
24612
+ _hoisted_9$1,
24613
+ __props.fileSaved && !__props.errorOccurred[id] || !__props.errorOccurred[id] && __props.virusCheck[id] ? (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(formatBytes(file.size)), 1)) : createCommentVNode("", true),
24614
+ __props.fileSaved && __props.errorOccurred[id] ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(__props.errorMessage), 1)) : createCommentVNode("", true)
24615
24615
  ]),
24616
- !__props.fileSaved ? (openBlock(), createElementBlock("span", _hoisted_12$2, toDisplayString(props.uploadProgress[id]) + "%", 1)) : createCommentVNode("", true)
24616
+ !__props.fileSaved ? (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(props.uploadProgress[id]) + "%", 1)) : createCommentVNode("", true)
24617
24617
  ]),
24618
24618
  !__props.fileSaved ? (openBlock(), createElementBlock("progress", {
24619
24619
  key: 0,
@@ -26687,10 +26687,10 @@ const _hoisted_5$2 = ["onClick"];
26687
26687
  const _hoisted_6$2 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"];
26688
26688
  const _hoisted_7$2 = ["innerHTML"];
26689
26689
  const _hoisted_8$1 = ["id"];
26690
- const _hoisted_9$1 = ["id", "aria-label", "aria-selected"];
26691
- const _hoisted_10$1 = ["data-pointed", "onMouseenter", "onClick"];
26692
- const _hoisted_11$1 = ["innerHTML"];
26693
- const _hoisted_12$1 = ["aria-label"];
26690
+ const _hoisted_9 = ["id", "aria-label", "aria-selected"];
26691
+ const _hoisted_10 = ["data-pointed", "onMouseenter", "onClick"];
26692
+ const _hoisted_11 = ["innerHTML"];
26693
+ const _hoisted_12 = ["aria-label"];
26694
26694
  const _hoisted_13 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"];
26695
26695
  const _hoisted_14 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"];
26696
26696
  const _hoisted_15 = ["innerHTML"];
@@ -26909,9 +26909,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
26909
26909
  }, () => [
26910
26910
  createElementVNode("span", {
26911
26911
  innerHTML: group[$props.groupLabel]
26912
- }, null, 8, _hoisted_11$1)
26912
+ }, null, 8, _hoisted_11)
26913
26913
  ])
26914
- ], 42, _hoisted_10$1),
26914
+ ], 42, _hoisted_10),
26915
26915
  createElementVNode("ul", {
26916
26916
  class: normalizeClass(_ctx.classList.groupOptions),
26917
26917
  "aria-label": _ctx.ariaGroupLabel(group),
@@ -26940,8 +26940,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
26940
26940
  ])
26941
26941
  ], 42, _hoisted_13);
26942
26942
  }), 128))
26943
- ], 10, _hoisted_12$1)
26944
- ], 10, _hoisted_9$1);
26943
+ ], 10, _hoisted_12)
26944
+ ], 10, _hoisted_9);
26945
26945
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.fo, (option, i2, key) => {
26946
26946
  return openBlock(), createElementBlock("li", {
26947
26947
  class: normalizeClass(_ctx.classList.option(option)),
@@ -27712,7 +27712,7 @@ var Stepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-02
27712
27712
  function getDefaultExportFromCjs(x2) {
27713
27713
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
27714
27714
  }
27715
- var editor$1 = { exports: {} };
27715
+ var editor = { exports: {} };
27716
27716
  /*! For license information please see editor.js.LICENSE.txt */
27717
27717
  (function(module, exports) {
27718
27718
  !function(e2, t2) {
@@ -39368,8 +39368,8 @@ var editor$1 = { exports: {} };
39368
39368
  };
39369
39369
  }]);
39370
39370
  });
39371
- })(editor$1);
39372
- var EditorJS = /* @__PURE__ */ getDefaultExportFromCjs(editor$1.exports);
39371
+ })(editor);
39372
+ var EditorJS = /* @__PURE__ */ getDefaultExportFromCjs(editor.exports);
39373
39373
  var bundle$a = { exports: {} };
39374
39374
  (function(module, exports) {
39375
39375
  !function(t2, e2) {
@@ -43548,54 +43548,41 @@ var TextEditor_vue_vue_type_style_index_0_lang = "";
43548
43548
  const _hoisted_1$1 = { class: "editor__wrapper" };
43549
43549
  const _hoisted_2$1 = {
43550
43550
  key: 0,
43551
- class: "editor__btns"
43552
- };
43553
- const _hoisted_3$1 = ["disabled"];
43554
- const _hoisted_4$1 = /* @__PURE__ */ createTextVNode(" Save draft ");
43555
- const _hoisted_5$1 = {
43556
- class: "editor__btn editor__btn_edit",
43557
- name: "button",
43558
- type: "button"
43559
- };
43560
- const _hoisted_6$1 = {
43561
- key: 1,
43562
43551
  class: "editor__count"
43563
43552
  };
43564
- const _hoisted_7$1 = /* @__PURE__ */ createTextVNode(" /300 ");
43565
- const _hoisted_8 = { class: "editor__body" };
43566
- const _hoisted_9 = {
43553
+ const _hoisted_3$1 = /* @__PURE__ */ createTextVNode(" /300 ");
43554
+ const _hoisted_4$1 = { class: "editor__body" };
43555
+ const _hoisted_5$1 = {
43567
43556
  key: 0,
43568
43557
  class: "editor__first"
43569
43558
  };
43570
- const _hoisted_10 = { class: "editor__first_text" };
43571
- const _hoisted_11 = {
43559
+ const _hoisted_6$1 = { class: "editor__first_text" };
43560
+ const _hoisted_7$1 = {
43572
43561
  class: "editor__first_link",
43573
43562
  href: "https://deskhero.com",
43574
43563
  target: "_blank"
43575
43564
  };
43576
- const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { id: "codex-editor" }, null, -1);
43565
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", { id: "codex-editor" }, null, -1);
43577
43566
  const _sfc_main$1 = {
43578
43567
  __name: "TextEditor",
43579
43568
  props: {
43580
- firstBlock: {
43569
+ data: {
43570
+ type: Object,
43571
+ default: () => {
43572
+ return { blocks: [] };
43573
+ }
43574
+ },
43575
+ readOnly: {
43581
43576
  type: Boolean,
43582
43577
  default: true
43583
43578
  },
43584
- wordCount: {
43585
- type: Boolean,
43586
- default: false
43579
+ featureSet: {
43580
+ type: String,
43581
+ default: "Default"
43587
43582
  },
43588
- showControls: {
43583
+ firstBlock: {
43589
43584
  type: Boolean,
43590
- default: false
43591
- },
43592
- minHeight: {
43593
- type: Number,
43594
- default: 50
43595
- },
43596
- placeholder: {
43597
- type: String,
43598
- default: "Start typing..."
43585
+ default: true
43599
43586
  },
43600
43587
  firstBlockText: {
43601
43588
  type: String,
@@ -43605,25 +43592,23 @@ const _sfc_main$1 = {
43605
43592
  type: String,
43606
43593
  default: "Learn more about the text editor"
43607
43594
  },
43608
- featureSet: {
43595
+ placeholder: {
43609
43596
  type: String,
43610
- default: "Default"
43611
- },
43612
- data: {
43613
- type: Object,
43614
- default: () => {
43615
- return { blocks: [] };
43616
- }
43597
+ default: "Start typing..."
43617
43598
  },
43618
- editMode: {
43599
+ wordCount: {
43619
43600
  type: Boolean,
43620
- default: true
43601
+ default: false
43602
+ },
43603
+ minHeight: {
43604
+ type: Number,
43605
+ default: 50
43621
43606
  }
43622
43607
  },
43623
43608
  emits: ["saveData", "toggleEdit"],
43624
43609
  setup(__props, { emit }) {
43625
43610
  const props = __props;
43626
- const jsonRes = ref(null);
43611
+ ref(null);
43627
43612
  const isEdit = ref(true);
43628
43613
  const isSaved = ref(false);
43629
43614
  const isReady = ref(false);
@@ -43633,7 +43618,7 @@ const _sfc_main$1 = {
43633
43618
  autofocus: true,
43634
43619
  minHeight: 0,
43635
43620
  initialBlock: "paragraph",
43636
- readOnly: !isEdit.value,
43621
+ readOnly: props.readOnly,
43637
43622
  onReady: () => {
43638
43623
  isReady.value = true;
43639
43624
  },
@@ -43773,90 +43758,34 @@ const _sfc_main$1 = {
43773
43758
  });
43774
43759
  }
43775
43760
  }
43776
- function edit() {
43777
- editor.readOnly.toggle();
43778
- isEdit.value = !isEdit.value;
43779
- }
43780
- function save() {
43781
- editor.save().then((savedData) => {
43782
- jsonRes.value = savedData;
43783
- emit("saveData", savedData);
43784
- });
43785
- editor.readOnly.toggle();
43786
- isEdit.value = false;
43787
- isSaved.value = true;
43788
- }
43789
- function clear() {
43790
- editor.clear();
43791
- }
43792
43761
  function toggleEditor() {
43793
43762
  emit("toggleEdit");
43794
43763
  myEditor();
43795
43764
  }
43796
43765
  onMounted(() => {
43797
- isEdit.value = props.editMode;
43766
+ isEdit.value = !props.readOnly;
43798
43767
  if (props.firstBlock) {
43799
43768
  myEditor();
43800
43769
  }
43801
43770
  });
43802
43771
  return (_ctx, _cache) => {
43803
43772
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
43804
- __props.showControls ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
43805
- createElementVNode("button", {
43806
- class: normalizeClass(["editor__btn editor__btn_save", isSaved.value ? "editor__btn--inactive" : ""]),
43807
- disabled: isSaved.value,
43808
- name: "button",
43809
- type: "button",
43810
- onClick: _cache[0] || (_cache[0] = ($event) => save())
43811
- }, [
43812
- createVNode(DhIcon, {
43813
- class: normalizeClass(["editor__btn_save_icon", isSaved.value ? "" : "editor__btn_save_icon--blue"]),
43814
- "icon-name": "save",
43815
- size: 18
43816
- }, null, 8, ["class"]),
43817
- _hoisted_4$1
43818
- ], 10, _hoisted_3$1),
43819
- createElementVNode("button", _hoisted_5$1, [
43820
- isEdit.value ? (openBlock(), createBlock(DhIcon, {
43821
- key: 0,
43822
- "icon-name": "visible",
43823
- size: 18,
43824
- onClick: _cache[1] || (_cache[1] = ($event) => edit())
43825
- })) : (openBlock(), createBlock(DhIcon, {
43826
- key: 1,
43827
- "icon-name": "invisible",
43828
- size: 18,
43829
- onClick: _cache[2] || (_cache[2] = ($event) => edit())
43830
- }))
43831
- ]),
43832
- createElementVNode("button", {
43833
- class: "editor__btn editor__btn_clear",
43834
- name: "button",
43835
- type: "button",
43836
- onClick: _cache[3] || (_cache[3] = ($event) => clear())
43837
- }, [
43838
- createVNode(DhIcon, {
43839
- "icon-name": "delete",
43840
- size: 18
43841
- })
43842
- ])
43843
- ])) : createCommentVNode("", true),
43844
- __props.wordCount ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
43773
+ __props.wordCount ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
43845
43774
  createElementVNode("span", {
43846
43775
  class: normalizeClass(unref(limitExceeded) ? "editor__count--danger" : "")
43847
43776
  }, toDisplayString(words.value), 3),
43848
- _hoisted_7$1
43777
+ _hoisted_3$1
43849
43778
  ])) : createCommentVNode("", true),
43850
- createElementVNode("div", _hoisted_8, [
43851
- !__props.firstBlock ? (openBlock(), createElementBlock("div", _hoisted_9, [
43779
+ createElementVNode("div", _hoisted_4$1, [
43780
+ !__props.firstBlock ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
43852
43781
  createElementVNode("button", {
43853
43782
  class: "editor__first_btn",
43854
43783
  onClick: toggleEditor
43855
43784
  }, "+"),
43856
- createElementVNode("p", _hoisted_10, toDisplayString(__props.firstBlockText), 1),
43857
- createElementVNode("a", _hoisted_11, toDisplayString(__props.learnMoreText), 1)
43785
+ createElementVNode("p", _hoisted_6$1, toDisplayString(__props.firstBlockText), 1),
43786
+ createElementVNode("a", _hoisted_7$1, toDisplayString(__props.learnMoreText), 1)
43858
43787
  ])) : createCommentVNode("", true),
43859
- _hoisted_12
43788
+ _hoisted_8
43860
43789
  ])
43861
43790
  ]);
43862
43791
  };