@deskhero/dh_ui 1.48.9 → 1.49.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
@@ -10871,7 +10871,7 @@ const _sfc_main$q = defineComponent({
10871
10871
  });
10872
10872
  const _hoisted_1$q = { class: "dp__options" };
10873
10873
  const _hoisted_2$p = { class: "dp__options_switch" };
10874
- const _hoisted_3$g = /* @__PURE__ */ createElementVNode("span", { class: "dp__options_slider" }, null, -1);
10874
+ const _hoisted_3$h = /* @__PURE__ */ createElementVNode("span", { class: "dp__options_slider" }, null, -1);
10875
10875
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10876
10876
  return openBlock(), createElementBlock("label", _hoisted_1$q, [
10877
10877
  createElementVNode("span", null, toDisplayString(_ctx.label), 1),
@@ -10883,7 +10883,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10883
10883
  }, null, 512), [
10884
10884
  [vModelCheckbox, _ctx.checkedValue]
10885
10885
  ]),
10886
- _hoisted_3$g
10886
+ _hoisted_3$h
10887
10887
  ])
10888
10888
  ]);
10889
10889
  }
@@ -23089,7 +23089,7 @@ const _sfc_main$p = {
23089
23089
  };
23090
23090
  const _hoisted_1$p = { class: "bar" };
23091
23091
  const _hoisted_2$o = ["min", "max", "step", "value"];
23092
- const _hoisted_3$f = { class: "caption" };
23092
+ const _hoisted_3$g = { class: "caption" };
23093
23093
  const _hoisted_4$d = { class: "min-caption" };
23094
23094
  const _hoisted_5$8 = { class: "bar-inner" };
23095
23095
  const _hoisted_6$8 = ["min", "max", "step", "value"];
@@ -23132,7 +23132,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23132
23132
  onMousedown: _cache[2] || (_cache[2] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args)),
23133
23133
  onTouchstart: _cache[3] || (_cache[3] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args))
23134
23134
  }, [
23135
- createElementVNode("div", _hoisted_3$f, [
23135
+ createElementVNode("div", _hoisted_3$g, [
23136
23136
  createElementVNode("span", _hoisted_4$d, toDisplayString($props.minCaption || $options.barMinVal), 1)
23137
23137
  ])
23138
23138
  ], 32),
@@ -23256,7 +23256,7 @@ const _sfc_main$o = defineComponent({
23256
23256
  });
23257
23257
  const _hoisted_1$o = { class: "dh-advanced-filter-container" };
23258
23258
  const _hoisted_2$n = { class: "advance_section" };
23259
- const _hoisted_3$e = { key: 0 };
23259
+ const _hoisted_3$f = { key: 0 };
23260
23260
  const _hoisted_4$c = { class: "list-none" };
23261
23261
  const _hoisted_5$7 = ["checked"];
23262
23262
  const _hoisted_6$7 = ["checked"];
@@ -23275,7 +23275,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
23275
23275
  size: 20
23276
23276
  }, null, 8, ["icon-name"])
23277
23277
  ]),
23278
- _ctx.activeFilter ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
23278
+ _ctx.activeFilter ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
23279
23279
  renderSlot(_ctx.$slots, "default"),
23280
23280
  createElementVNode("ul", _hoisted_4$c, [
23281
23281
  createElementVNode("li", null, [
@@ -23573,7 +23573,7 @@ const _sfc_main$n = defineComponent({
23573
23573
  });
23574
23574
  const _hoisted_1$n = { class: "dh-range-container" };
23575
23575
  const _hoisted_2$m = { class: "bar-chart" };
23576
- const _hoisted_3$d = {
23576
+ const _hoisted_3$e = {
23577
23577
  key: 0,
23578
23578
  class: "input-group-section"
23579
23579
  };
@@ -23611,7 +23611,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
23611
23611
  onInput: _ctx.updateBarChart
23612
23612
  }, null, 8, ["base-class-name", "labels", "max", "max-caption", "max-value", "min-caption", "min-value", "step", "onInput"])
23613
23613
  ]),
23614
- _ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
23614
+ _ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
23615
23615
  createElementVNode("div", _hoisted_4$b, [
23616
23616
  createElementVNode("label", {
23617
23617
  class: normalizeClass(`dh-body-2 input-to ${_ctx.validated ? "disable" : ""}`)
@@ -23664,7 +23664,7 @@ const _hoisted_2$l = /* @__PURE__ */ createElementVNode("div", { class: "dp__cal
23664
23664
  /* @__PURE__ */ createElementVNode("p", null, "From"),
23665
23665
  /* @__PURE__ */ createElementVNode("p", null, "To")
23666
23666
  ], -1);
23667
- const _hoisted_3$c = { class: "dp__multi" };
23667
+ const _hoisted_3$d = { class: "dp__multi" };
23668
23668
  const _hoisted_4$a = ["value"];
23669
23669
  const _hoisted_5$5 = ["value"];
23670
23670
  const _hoisted_6$5 = /* @__PURE__ */ createTextVNode(" Back ");
@@ -23800,7 +23800,7 @@ const _sfc_main$m = {
23800
23800
  onClosed: reOpen
23801
23801
  }, {
23802
23802
  "dp-input": withCtx(() => [
23803
- createElementVNode("div", _hoisted_3$c, [
23803
+ createElementVNode("div", _hoisted_3$d, [
23804
23804
  createElementVNode("input", {
23805
23805
  class: "dp__input dp__multi_input",
23806
23806
  placeholder: "MM/DD/YYYY",
@@ -23945,7 +23945,7 @@ const _sfc_main$l = defineComponent({
23945
23945
  });
23946
23946
  const _hoisted_1$l = ["placement", "target", "tooltipText", "trigger"];
23947
23947
  const _hoisted_2$k = ["id"];
23948
- const _hoisted_3$b = { class: "text" };
23948
+ const _hoisted_3$c = { class: "text" };
23949
23949
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23950
23950
  return openBlock(), createElementBlock("div", {
23951
23951
  id: "main-contain",
@@ -23964,7 +23964,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23964
23964
  ref: _ctx.target,
23965
23965
  class: normalizeClass(`tooltiptext ${_ctx.show}`)
23966
23966
  }, [
23967
- createElementVNode("span", _hoisted_3$b, toDisplayString(_ctx.tooltipText), 1)
23967
+ createElementVNode("span", _hoisted_3$c, toDisplayString(_ctx.tooltipText), 1)
23968
23968
  ], 10, _hoisted_2$k)
23969
23969
  ], 40, _hoisted_1$l);
23970
23970
  }
@@ -24041,6 +24041,18 @@ const _sfc_main$j = {
24041
24041
  inline: {
24042
24042
  type: Boolean,
24043
24043
  default: true
24044
+ },
24045
+ multiCalendars: {
24046
+ type: Boolean,
24047
+ default: false
24048
+ },
24049
+ range: {
24050
+ type: Boolean,
24051
+ default: false
24052
+ },
24053
+ enableTimePicker: {
24054
+ type: Boolean,
24055
+ default: false
24044
24056
  }
24045
24057
  },
24046
24058
  emits: ["update"],
@@ -24069,15 +24081,18 @@ const _sfc_main$j = {
24069
24081
  handleDate
24070
24082
  ],
24071
24083
  "day-names": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
24072
- "enable-time-picker": false,
24073
24084
  inline: __props.inline,
24074
24085
  markers: markers.value,
24086
+ "enable-time-picker": __props.enableTimePicker,
24075
24087
  "month-name-format": "short",
24076
24088
  offset: 12,
24077
24089
  placeholder: "MM/DD/YYYY",
24090
+ format: "MM/dd/yyyy",
24078
24091
  "select-text": "Apply",
24079
24092
  "text-input": "",
24080
- uid: "base"
24093
+ uid: "base",
24094
+ "multi-calendars": __props.multiCalendars,
24095
+ range: __props.range || __props.multiCalendars
24081
24096
  }, {
24082
24097
  "arrow-left": withCtx(() => [
24083
24098
  createVNode(DhIcon, {
@@ -24100,7 +24115,7 @@ const _sfc_main$j = {
24100
24115
  _hoisted_2$i
24101
24116
  ]),
24102
24117
  _: 1
24103
- }, 8, ["modelValue", "inline", "markers"])
24118
+ }, 8, ["modelValue", "inline", "markers", "enable-time-picker", "multi-calendars", "range"])
24104
24119
  ]);
24105
24120
  };
24106
24121
  }
@@ -24360,7 +24375,7 @@ const _hoisted_2$e = {
24360
24375
  key: 1,
24361
24376
  class: "file__upload_items"
24362
24377
  };
24363
- const _hoisted_3$a = { class: "file__upload_list_item" };
24378
+ const _hoisted_3$b = { class: "file__upload_list_item" };
24364
24379
  const _hoisted_4$9 = { class: "file__upload_list_item_label" };
24365
24380
  const _hoisted_5$4 = ["title"];
24366
24381
  const _hoisted_6$4 = {
@@ -24597,7 +24612,7 @@ const _sfc_main$e = {
24597
24612
  size: 20,
24598
24613
  style: normalizeStyle({ "z-index": props.zIndex })
24599
24614
  }, null, 8, ["style"])) : createCommentVNode("", true),
24600
- createElementVNode("div", _hoisted_3$a, [
24615
+ createElementVNode("div", _hoisted_3$b, [
24601
24616
  createElementVNode("div", _hoisted_4$9, [
24602
24617
  createElementVNode("div", null, [
24603
24618
  createElementVNode("span", {
@@ -24683,7 +24698,7 @@ const _sfc_main$e = {
24683
24698
  var InputDropdown_vue_vue_type_style_index_0_lang = "";
24684
24699
  const _hoisted_1$d = { class: "input__dropdown" };
24685
24700
  const _hoisted_2$d = ["placeholder", "value"];
24686
- const _hoisted_3$9 = { class: "input__dropdown_second" };
24701
+ const _hoisted_3$a = { class: "input__dropdown_second" };
24687
24702
  const _hoisted_4$8 = ["tabindex"];
24688
24703
  const _hoisted_5$3 = ["onClick"];
24689
24704
  const _hoisted_6$3 = ["onClick"];
@@ -24760,7 +24775,7 @@ const _sfc_main$d = {
24760
24775
  value: __props.inputValue,
24761
24776
  onInput: update
24762
24777
  }, null, 44, _hoisted_2$d),
24763
- createElementVNode("div", _hoisted_3$9, [
24778
+ createElementVNode("div", _hoisted_3$a, [
24764
24779
  createVNode(DhIcon, {
24765
24780
  "icon-name": __props.icon,
24766
24781
  size: 18
@@ -24911,8 +24926,12 @@ const _sfc_main$c = {
24911
24926
  }
24912
24927
  };
24913
24928
  var InputGroup_vue_vue_type_style_index_0_lang = "";
24914
- const _hoisted_1$b = { class: "input__group" };
24915
- const _hoisted_2$b = ["placeholder", "type", "value"];
24929
+ const _hoisted_1$b = ["placeholder", "value"];
24930
+ const _hoisted_2$b = {
24931
+ key: 1,
24932
+ class: "input__group"
24933
+ };
24934
+ const _hoisted_3$9 = ["placeholder", "type", "value"];
24916
24935
  const _sfc_main$b = {
24917
24936
  __name: "InputGroup",
24918
24937
  props: {
@@ -24949,9 +24968,9 @@ const _sfc_main$b = {
24949
24968
  setup(__props) {
24950
24969
  const props = __props;
24951
24970
  useCssVars((_ctx) => ({
24952
- "9bbc973e": flexDir.value,
24953
- "17a45996": __props.widthProp,
24954
- "d5af8106": __props.heightProp
24971
+ "22ddfa82": flexDir.value,
24972
+ "4a679b77": __props.widthProp,
24973
+ "8a658c88": __props.heightProp
24955
24974
  }));
24956
24975
  const flexDir = ref("row");
24957
24976
  onMounted(() => {
@@ -24960,19 +24979,41 @@ const _sfc_main$b = {
24960
24979
  }
24961
24980
  });
24962
24981
  return (_ctx, _cache) => {
24963
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
24982
+ return __props.inputType == "multi-line" ? (openBlock(), createElementBlock("div", {
24983
+ key: 0,
24984
+ class: normalizeClass(["text__area", __props.direction == "left" ? "text__area--left" : "text__area--right"])
24985
+ }, [
24986
+ createElementVNode("textarea", {
24987
+ class: "text__area_field",
24988
+ cols: "30",
24989
+ placeholder: __props.placeholder,
24990
+ rows: "10",
24991
+ value: __props.modelValue,
24992
+ onInput: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
24993
+ }, null, 40, _hoisted_1$b),
24994
+ __props.direction == "left" ? (openBlock(), createBlock(DhIcon, {
24995
+ key: 0,
24996
+ class: "text__area_icon text__area_icon--left",
24997
+ "icon-name": __props.iconName
24998
+ }, null, 8, ["icon-name"])) : createCommentVNode("", true),
24999
+ __props.direction == "right" ? (openBlock(), createBlock(DhIcon, {
25000
+ key: 1,
25001
+ class: "text__area_icon text__area_icon--right",
25002
+ "icon-name": __props.iconName
25003
+ }, null, 8, ["icon-name"])) : createCommentVNode("", true)
25004
+ ], 2)) : (openBlock(), createElementBlock("div", _hoisted_2$b, [
24964
25005
  createElementVNode("input", {
24965
25006
  class: "input__group_field",
24966
25007
  placeholder: __props.placeholder,
24967
25008
  type: __props.inputType,
24968
25009
  value: __props.modelValue,
24969
- onInput: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
24970
- }, null, 40, _hoisted_2$b),
25010
+ onInput: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event.target.value))
25011
+ }, null, 40, _hoisted_3$9),
24971
25012
  createVNode(DhIcon, {
24972
25013
  class: "input__group_icon",
24973
25014
  "icon-name": __props.iconName
24974
25015
  }, null, 8, ["icon-name"])
24975
- ]);
25016
+ ]));
24976
25017
  };
24977
25018
  }
24978
25019
  };
@@ -27618,7 +27659,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
27618
27659
  "data-e2e": "password-input",
27619
27660
  placeholder: props.placeholder,
27620
27661
  type: showPassword.value ? "text" : "password",
27621
- onChange: emitChanged,
27662
+ onInput: emitChanged,
27622
27663
  onFocus,
27623
27664
  onFocusout: outFocus
27624
27665
  }, null, 40, _hoisted_2$6), [
@@ -27673,7 +27714,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
27673
27714
  };
27674
27715
  }
27675
27716
  });
27676
- var PasswordField = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5ec7ff50"]]);
27717
+ var PasswordField = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-93d2f9fc"]]);
27677
27718
  var RadioBox_vue_vue_type_style_index_0_scoped_true_lang = "";
27678
27719
  const _hoisted_1$5 = { class: "radio" };
27679
27720
  const _hoisted_2$5 = ["for"];
@@ -43253,7 +43294,7 @@ const _hoisted_7$1 = {
43253
43294
  href: "https://deskhero.com",
43254
43295
  target: "_blank"
43255
43296
  };
43256
- const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", { id: "codex-editor" }, null, -1);
43297
+ const _hoisted_8 = ["id"];
43257
43298
  const _sfc_main$1 = {
43258
43299
  __name: "TextEditor",
43259
43300
  props: {
@@ -43294,6 +43335,10 @@ const _sfc_main$1 = {
43294
43335
  default: "Start typing...",
43295
43336
  required: false
43296
43337
  },
43338
+ holder: {
43339
+ type: String,
43340
+ required: true
43341
+ },
43297
43342
  wordCount: {
43298
43343
  type: Boolean,
43299
43344
  default: false,
@@ -43306,13 +43351,14 @@ const _sfc_main$1 = {
43306
43351
  }
43307
43352
  },
43308
43353
  emits: ["change"],
43309
- setup(__props, { emit }) {
43354
+ setup(__props, { expose, emit }) {
43310
43355
  const props = __props;
43311
43356
  const isReady = ref(false);
43312
43357
  const words = ref(0);
43313
43358
  const addFirstBlock = ref(false);
43359
+ const editorJS = ref({});
43314
43360
  const configurationMail = ref({
43315
- holder: "codex-editor",
43361
+ holder: props.holder,
43316
43362
  autofocus: true,
43317
43363
  minHeight: 0,
43318
43364
  defaultBlock: "paragraph",
@@ -43358,9 +43404,19 @@ const _sfc_main$1 = {
43358
43404
  const limitExceeded = computed(() => {
43359
43405
  return words.value > 300 ? true : false;
43360
43406
  });
43407
+ expose({
43408
+ toggleReadOnly,
43409
+ save
43410
+ });
43411
+ function toggleReadOnly() {
43412
+ editorJS.value.readOnly.toggle();
43413
+ }
43414
+ function save() {
43415
+ return editorJS.value.save();
43416
+ }
43361
43417
  function myEditor() {
43362
43418
  if (props.featureSet == "Full") {
43363
- window.editor = new EditorJS({
43419
+ editorJS.value = new EditorJS({
43364
43420
  ...configurationMail.value,
43365
43421
  data: props.data,
43366
43422
  minHeight: props.minHeight,
@@ -43402,7 +43458,7 @@ const _sfc_main$1 = {
43402
43458
  }
43403
43459
  });
43404
43460
  } else if (props.featureSet == "Mail") {
43405
- window.editor = new EditorJS({
43461
+ editorJS.value = new EditorJS({
43406
43462
  ...configurationMail.value,
43407
43463
  data: props.data,
43408
43464
  minHeight: props.minHeight,
@@ -43419,7 +43475,7 @@ const _sfc_main$1 = {
43419
43475
  }
43420
43476
  });
43421
43477
  } else {
43422
- window.editor = new EditorJS({
43478
+ editorJS.value = new EditorJS({
43423
43479
  ...configurationMail.value,
43424
43480
  data: props.data,
43425
43481
  minHeight: props.minHeight,
@@ -43519,7 +43575,7 @@ const _sfc_main$1 = {
43519
43575
  createElementVNode("p", _hoisted_6$1, toDisplayString(__props.firstBlockText), 1),
43520
43576
  createElementVNode("a", _hoisted_7$1, toDisplayString(__props.learnMoreText), 1)
43521
43577
  ])) : createCommentVNode("", true),
43522
- _hoisted_8
43578
+ createElementVNode("div", { id: __props.holder }, null, 8, _hoisted_8)
43523
43579
  ])
43524
43580
  ]);
43525
43581
  };