@deskhero/dh_ui 1.41.8 → 1.42.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
@@ -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, useCssVars, toRefs, getCurrentInstance, vModelDynamic, vModelText, pushScopeId, popScopeId } 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, vModelText, useCssVars, toRefs, getCurrentInstance, vModelDynamic, pushScopeId, popScopeId } from "vue";
2
2
  var main$1 = "";
3
3
  function toInteger(dirtyNumber) {
4
4
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
@@ -10853,12 +10853,12 @@ const _sfc_main$o = defineComponent({
10853
10853
  }
10854
10854
  });
10855
10855
  const _hoisted_1$o = { class: "dp__options" };
10856
- const _hoisted_2$m = { class: "dp__options_switch" };
10856
+ const _hoisted_2$n = { class: "dp__options_switch" };
10857
10857
  const _hoisted_3$f = /* @__PURE__ */ createElementVNode("span", { class: "dp__options_slider" }, null, -1);
10858
10858
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10859
10859
  return openBlock(), createElementBlock("label", _hoisted_1$o, [
10860
10860
  createElementVNode("span", null, toDisplayString(_ctx.label), 1),
10861
- createElementVNode("div", _hoisted_2$m, [
10861
+ createElementVNode("div", _hoisted_2$n, [
10862
10862
  withDirectives(createElementVNode("input", {
10863
10863
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.checkedValue = $event),
10864
10864
  name: "switch",
@@ -23071,7 +23071,7 @@ const _sfc_main$n = {
23071
23071
  }
23072
23072
  };
23073
23073
  const _hoisted_1$n = { class: "bar" };
23074
- const _hoisted_2$l = ["min", "max", "step", "value"];
23074
+ const _hoisted_2$m = ["min", "max", "step", "value"];
23075
23075
  const _hoisted_3$e = { class: "caption" };
23076
23076
  const _hoisted_4$b = { class: "min-caption" };
23077
23077
  const _hoisted_5$8 = { class: "bar-inner" };
@@ -23109,7 +23109,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23109
23109
  step: $props.step,
23110
23110
  value: $data.valueMin,
23111
23111
  onInput: _cache[1] || (_cache[1] = withModifiers((...args) => $options.onInputMinChange && $options.onInputMinChange(...args), ["stop", "prevent"]))
23112
- }, null, 40, _hoisted_2$l),
23112
+ }, null, 40, _hoisted_2$m),
23113
23113
  createElementVNode("div", {
23114
23114
  class: "thumb thumb-left",
23115
23115
  onMousedown: _cache[2] || (_cache[2] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args)),
@@ -23238,7 +23238,7 @@ const _sfc_main$m = defineComponent({
23238
23238
  }
23239
23239
  });
23240
23240
  const _hoisted_1$m = { class: "dh-advanced-filter-container" };
23241
- const _hoisted_2$k = { class: "advance_section" };
23241
+ const _hoisted_2$l = { class: "advance_section" };
23242
23242
  const _hoisted_3$d = { key: 0 };
23243
23243
  const _hoisted_4$a = { class: "list-none" };
23244
23244
  const _hoisted_5$7 = ["checked"];
@@ -23247,7 +23247,7 @@ const _hoisted_7$6 = ["checked"];
23247
23247
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
23248
23248
  const _component_dh_icon = resolveComponent("dh-icon");
23249
23249
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
23250
- createElementVNode("div", _hoisted_2$k, [
23250
+ createElementVNode("div", _hoisted_2$l, [
23251
23251
  createElementVNode("span", {
23252
23252
  class: "toggle-icon",
23253
23253
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFilter())
@@ -23555,7 +23555,7 @@ const _sfc_main$l = defineComponent({
23555
23555
  }
23556
23556
  });
23557
23557
  const _hoisted_1$l = { class: "dh-range-container" };
23558
- const _hoisted_2$j = { class: "bar-chart" };
23558
+ const _hoisted_2$k = { class: "bar-chart" };
23559
23559
  const _hoisted_3$c = {
23560
23560
  key: 0,
23561
23561
  class: "input-group-section"
@@ -23569,7 +23569,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
23569
23569
  const _component_MultiRangeSlider = resolveComponent("MultiRangeSlider");
23570
23570
  const _component_dh_advanced_filter = resolveComponent("dh-advanced-filter");
23571
23571
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
23572
- createElementVNode("div", _hoisted_2$j, [
23572
+ createElementVNode("div", _hoisted_2$k, [
23573
23573
  createVNode(_component_Bar, {
23574
23574
  "chart-data": _ctx.chartData,
23575
23575
  "chart-id": _ctx.chartId,
@@ -23643,7 +23643,7 @@ var DhNumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_re
23643
23643
  var main = "";
23644
23644
  var AdvancedDatePicker_vue_vue_type_style_index_0_lang = "";
23645
23645
  const _hoisted_1$k = { id: "dp-container" };
23646
- const _hoisted_2$i = /* @__PURE__ */ createElementVNode("div", { class: "dp__calendar_range" }, [
23646
+ const _hoisted_2$j = /* @__PURE__ */ createElementVNode("div", { class: "dp__calendar_range" }, [
23647
23647
  /* @__PURE__ */ createElementVNode("p", null, "From"),
23648
23648
  /* @__PURE__ */ createElementVNode("p", null, "To")
23649
23649
  ], -1);
@@ -23757,7 +23757,7 @@ const _sfc_main$k = {
23757
23757
  }
23758
23758
  return (_ctx, _cache) => {
23759
23759
  return openBlock(), createElementBlock("div", _hoisted_1$k, [
23760
- _hoisted_2$i,
23760
+ _hoisted_2$j,
23761
23761
  createVNode(unref(ca), {
23762
23762
  ref_key: "datePicker",
23763
23763
  ref: datePicker,
@@ -23902,8 +23902,8 @@ const _sfc_main$j = defineComponent({
23902
23902
  target: { type: String, required: true },
23903
23903
  trigger: { type: String, required: true },
23904
23904
  placement: {
23905
- type: Object,
23906
- default: () => ({ placement: "bottom" }),
23905
+ type: String,
23906
+ default: () => "bottom",
23907
23907
  required: false
23908
23908
  },
23909
23909
  tooltipText: { type: String, required: true }
@@ -23927,7 +23927,7 @@ const _sfc_main$j = defineComponent({
23927
23927
  }
23928
23928
  });
23929
23929
  const _hoisted_1$j = ["placement", "target", "tooltipText", "trigger"];
23930
- const _hoisted_2$h = ["id"];
23930
+ const _hoisted_2$i = ["id"];
23931
23931
  const _hoisted_3$a = { class: "text" };
23932
23932
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23933
23933
  return openBlock(), createElementBlock("div", {
@@ -23948,12 +23948,13 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23948
23948
  class: normalizeClass(`tooltiptext ${_ctx.show}`)
23949
23949
  }, [
23950
23950
  createElementVNode("span", _hoisted_3$a, toDisplayString(_ctx.tooltipText), 1)
23951
- ], 10, _hoisted_2$h)
23951
+ ], 10, _hoisted_2$i)
23952
23952
  ], 40, _hoisted_1$j);
23953
23953
  }
23954
23954
  var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$3]]);
23955
23955
  var Copiable_vue_vue_type_style_index_0_lang = "";
23956
23956
  const _hoisted_1$i = { class: "copy__text" };
23957
+ const _hoisted_2$h = ["readonly"];
23957
23958
  const _sfc_main$i = {
23958
23959
  __name: "Copiable",
23959
23960
  props: {
@@ -23964,29 +23965,48 @@ const _sfc_main$i = {
23964
23965
  placement: {
23965
23966
  type: String,
23966
23967
  default: "bottom"
23968
+ },
23969
+ readonly: {
23970
+ type: Boolean,
23971
+ default: true
23967
23972
  }
23968
23973
  },
23969
23974
  setup(__props) {
23975
+ const props = __props;
23976
+ const inputText = ref("");
23970
23977
  const copied = ref("copy text");
23971
23978
  function copyText(data) {
23972
23979
  navigator.clipboard.writeText(data);
23973
23980
  copied.value = "copied !";
23974
23981
  }
23982
+ function resetCopyText() {
23983
+ copied.value = "copy text";
23984
+ }
23985
+ onMounted(() => {
23986
+ inputText.value = props.text;
23987
+ });
23975
23988
  return (_ctx, _cache) => {
23976
23989
  return openBlock(), createElementBlock("span", _hoisted_1$i, [
23977
- createTextVNode(toDisplayString(__props.text) + " ", 1),
23990
+ withDirectives(createElementVNode("input", {
23991
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputText.value = $event),
23992
+ readonly: __props.readonly,
23993
+ type: "text",
23994
+ onInput: resetCopyText
23995
+ }, null, 40, _hoisted_2$h), [
23996
+ [vModelText, inputText.value]
23997
+ ]),
23978
23998
  createVNode(Tooltip, {
23979
23999
  placement: __props.placement,
23980
24000
  target: "tooltiptext",
23981
24001
  "tooltip-text": copied.value,
23982
24002
  trigger: "hover",
23983
- onClick: _cache[0] || (_cache[0] = ($event) => copyText(__props.text))
24003
+ onClick: _cache[1] || (_cache[1] = ($event) => copyText(inputText.value))
23984
24004
  }, {
23985
24005
  default: withCtx(() => [
23986
24006
  createVNode(DhIcon, {
23987
24007
  class: "copy__text_icon",
23988
24008
  "icon-name": "copy",
23989
- size: "18"
24009
+ size: 18
23990
24010
  })
23991
24011
  ]),
23992
24012
  _: 1
@@ -27299,7 +27319,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
27299
27319
  ], 2),
27300
27320
  createElementVNode("div", _hoisted_3$4, [
27301
27321
  createElementVNode("div", {
27302
- class: normalizeClass(`title title-${_ctx.notificationType}`)
27322
+ class: normalizeClass(`body-section-title title-${_ctx.notificationType}`)
27303
27323
  }, toDisplayString(_ctx.limitTitle(_ctx.title, _ctx.notificationType)), 3),
27304
27324
  !["bottom-message"].includes(_ctx.notificationType) ? (openBlock(), createElementBlock("div", _hoisted_4$4, toDisplayString(_ctx.message.length >= 280 ? `${_ctx.message.substring(0, 280)}..` : _ctx.message), 1)) : createCommentVNode("", true)
27305
27325
  ]),