@deskhero/dh_ui 1.35.2 → 1.35.4

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
@@ -10775,7 +10775,7 @@ var _export_sfc = (sfc, props) => {
10775
10775
  }
10776
10776
  return target;
10777
10777
  };
10778
- const _sfc_main$l = defineComponent({
10778
+ const _sfc_main$m = defineComponent({
10779
10779
  props: {
10780
10780
  iconName: {
10781
10781
  type: String,
@@ -10804,7 +10804,7 @@ const _sfc_main$l = defineComponent({
10804
10804
  }
10805
10805
  }
10806
10806
  });
10807
- const _hoisted_1$l = ["height", "src", "width"];
10807
+ const _hoisted_1$m = ["height", "src", "width"];
10808
10808
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
10809
10809
  return openBlock(), createElementBlock("img", {
10810
10810
  alt: "icon",
@@ -10815,10 +10815,10 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
10815
10815
  height: _ctx.size,
10816
10816
  src: _ctx.getIconUrl(),
10817
10817
  width: _ctx.size
10818
- }, null, 10, _hoisted_1$l);
10818
+ }, null, 10, _hoisted_1$m);
10819
10819
  }
10820
- var DhIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$8], ["__scopeId", "data-v-201309a0"]]);
10821
- const _sfc_main$k = defineComponent({
10820
+ var DhIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$8], ["__scopeId", "data-v-201309a0"]]);
10821
+ const _sfc_main$l = defineComponent({
10822
10822
  props: {
10823
10823
  data: {
10824
10824
  type: Boolean,
@@ -10848,13 +10848,13 @@ const _sfc_main$k = defineComponent({
10848
10848
  }
10849
10849
  }
10850
10850
  });
10851
- const _hoisted_1$k = { class: "dp__options" };
10852
- const _hoisted_2$i = { class: "dp__options_switch" };
10851
+ const _hoisted_1$l = { class: "dp__options" };
10852
+ const _hoisted_2$j = { class: "dp__options_switch" };
10853
10853
  const _hoisted_3$d = /* @__PURE__ */ createElementVNode("span", { class: "dp__options_slider" }, null, -1);
10854
10854
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10855
- return openBlock(), createElementBlock("label", _hoisted_1$k, [
10855
+ return openBlock(), createElementBlock("label", _hoisted_1$l, [
10856
10856
  createElementVNode("span", null, toDisplayString(_ctx.label), 1),
10857
- createElementVNode("div", _hoisted_2$i, [
10857
+ createElementVNode("div", _hoisted_2$j, [
10858
10858
  withDirectives(createElementVNode("input", {
10859
10859
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.checkedValue = $event),
10860
10860
  name: "switch",
@@ -10866,7 +10866,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10866
10866
  ])
10867
10867
  ]);
10868
10868
  }
10869
- var DhSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$7]]);
10869
+ var DhSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$7]]);
10870
10870
  /*!
10871
10871
  * Chart.js v3.9.1
10872
10872
  * https://www.chartjs.org
@@ -22768,7 +22768,7 @@ const generateChart = (chartId, chartType, chartController) => {
22768
22768
  };
22769
22769
  const Bar = /* @__PURE__ */ generateChart("bar-chart", "bar", BarController);
22770
22770
  var MultiRangeSlider_vue_vue_type_style_index_0_lang = "";
22771
- const _sfc_main$j = {
22771
+ const _sfc_main$k = {
22772
22772
  name: "MultiRangeSlider",
22773
22773
  props: {
22774
22774
  baseClassName: {
@@ -23066,8 +23066,8 @@ const _sfc_main$j = {
23066
23066
  mounted() {
23067
23067
  }
23068
23068
  };
23069
- const _hoisted_1$j = { class: "bar" };
23070
- const _hoisted_2$h = ["min", "max", "step", "value"];
23069
+ const _hoisted_1$k = { class: "bar" };
23070
+ const _hoisted_2$i = ["min", "max", "step", "value"];
23071
23071
  const _hoisted_3$c = { class: "caption" };
23072
23072
  const _hoisted_4$9 = { class: "min-caption" };
23073
23073
  const _hoisted_5$6 = { class: "bar-inner" };
@@ -23091,7 +23091,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23091
23091
  class: normalizeClass([$props.baseClassName, $data.rangeMarginValue === 0 ? "zero-ranage-margin" : ""]),
23092
23092
  onMousewheel: _cache[10] || (_cache[10] = withModifiers((...args) => $options.onMouseWheel && $options.onMouseWheel(...args), ["prevent", "stop"]))
23093
23093
  }, [
23094
- createElementVNode("div", _hoisted_1$j, [
23094
+ createElementVNode("div", _hoisted_1$k, [
23095
23095
  createElementVNode("div", {
23096
23096
  class: "bar-left",
23097
23097
  style: normalizeStyle({ width: $options.barMin + "%" }),
@@ -23105,7 +23105,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23105
23105
  step: $props.step,
23106
23106
  value: $data.valueMin,
23107
23107
  onInput: _cache[1] || (_cache[1] = withModifiers((...args) => $options.onInputMinChange && $options.onInputMinChange(...args), ["stop", "prevent"]))
23108
- }, null, 40, _hoisted_2$h),
23108
+ }, null, 40, _hoisted_2$i),
23109
23109
  createElementVNode("div", {
23110
23110
  class: "thumb thumb-left",
23111
23111
  onMousedown: _cache[2] || (_cache[2] = (...args) => $options.onLeftThumbMousedown && $options.onLeftThumbMousedown(...args)),
@@ -23175,8 +23175,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
23175
23175
  ])) : createCommentVNode("", true)
23176
23176
  ], 34);
23177
23177
  }
23178
- var MultiRangeSlider = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$6]]);
23179
- const _sfc_main$i = defineComponent({
23178
+ var MultiRangeSlider = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$6]]);
23179
+ const _sfc_main$j = defineComponent({
23180
23180
  components: { DhIcon },
23181
23181
  props: {
23182
23182
  mainText: {
@@ -23233,8 +23233,8 @@ const _sfc_main$i = defineComponent({
23233
23233
  }
23234
23234
  }
23235
23235
  });
23236
- const _hoisted_1$i = { class: "dh-advanced-filter-container" };
23237
- const _hoisted_2$g = { class: "advance_section" };
23236
+ const _hoisted_1$j = { class: "dh-advanced-filter-container" };
23237
+ const _hoisted_2$h = { class: "advance_section" };
23238
23238
  const _hoisted_3$b = { key: 0 };
23239
23239
  const _hoisted_4$8 = { class: "list-none" };
23240
23240
  const _hoisted_5$5 = ["checked"];
@@ -23242,8 +23242,8 @@ const _hoisted_6$5 = ["checked"];
23242
23242
  const _hoisted_7$4 = ["checked"];
23243
23243
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
23244
23244
  const _component_dh_icon = resolveComponent("dh-icon");
23245
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
23246
- createElementVNode("div", _hoisted_2$g, [
23245
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
23246
+ createElementVNode("div", _hoisted_2$h, [
23247
23247
  createElementVNode("span", {
23248
23248
  class: "toggle-icon",
23249
23249
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.toggleFilter())
@@ -23293,10 +23293,10 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
23293
23293
  ])
23294
23294
  ]);
23295
23295
  }
23296
- var DhAdvancedFilter = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$5]]);
23296
+ var DhAdvancedFilter = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$5]]);
23297
23297
  var MultiRangeSliderBarOnly = "";
23298
23298
  Chart.register(plugin_tooltip, BarElement, CategoryScale, LinearScale);
23299
- const _sfc_main$h = defineComponent({
23299
+ const _sfc_main$i = defineComponent({
23300
23300
  components: { Bar, MultiRangeSlider, DhAdvancedFilter },
23301
23301
  props: {
23302
23302
  numberRange: {
@@ -23550,8 +23550,8 @@ const _sfc_main$h = defineComponent({
23550
23550
  }
23551
23551
  }
23552
23552
  });
23553
- const _hoisted_1$h = { class: "dh-range-container" };
23554
- const _hoisted_2$f = { class: "bar-chart" };
23553
+ const _hoisted_1$i = { class: "dh-range-container" };
23554
+ const _hoisted_2$g = { class: "bar-chart" };
23555
23555
  const _hoisted_3$a = {
23556
23556
  key: 0,
23557
23557
  class: "input-group-section"
@@ -23564,8 +23564,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
23564
23564
  const _component_Bar = resolveComponent("Bar");
23565
23565
  const _component_MultiRangeSlider = resolveComponent("MultiRangeSlider");
23566
23566
  const _component_dh_advanced_filter = resolveComponent("dh-advanced-filter");
23567
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
23568
- createElementVNode("div", _hoisted_2$f, [
23567
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
23568
+ createElementVNode("div", _hoisted_2$g, [
23569
23569
  createVNode(_component_Bar, {
23570
23570
  "chart-data": _ctx.chartData,
23571
23571
  "chart-id": _ctx.chartId,
@@ -23635,11 +23635,11 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
23635
23635
  }, 8, ["onExclude", "onFilter_missing", "onMatch"])
23636
23636
  ]);
23637
23637
  }
23638
- var DhNumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$4]]);
23638
+ var DhNumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$4]]);
23639
23639
  var main = "";
23640
23640
  var AdvancedDatePicker_vue_vue_type_style_index_0_lang = "";
23641
- const _hoisted_1$g = { id: "dp-container" };
23642
- const _hoisted_2$e = /* @__PURE__ */ createElementVNode("div", { class: "dp__calendar_range" }, [
23641
+ const _hoisted_1$h = { id: "dp-container" };
23642
+ const _hoisted_2$f = /* @__PURE__ */ createElementVNode("div", { class: "dp__calendar_range" }, [
23643
23643
  /* @__PURE__ */ createElementVNode("p", null, "From"),
23644
23644
  /* @__PURE__ */ createElementVNode("p", null, "To")
23645
23645
  ], -1);
@@ -23659,7 +23659,7 @@ const _hoisted_15$2 = /* @__PURE__ */ createElementVNode("div", {
23659
23659
  id: "tags",
23660
23660
  class: "dp__calendar_tags"
23661
23661
  }, null, -1);
23662
- const _sfc_main$g = {
23662
+ const _sfc_main$h = {
23663
23663
  __name: "AdvancedDatePicker",
23664
23664
  props: {
23665
23665
  numberRange: {
@@ -23752,8 +23752,8 @@ const _sfc_main$g = {
23752
23752
  datePicker.value.openMenu();
23753
23753
  }
23754
23754
  return (_ctx, _cache) => {
23755
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
23756
- _hoisted_2$e,
23755
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
23756
+ _hoisted_2$f,
23757
23757
  createVNode(unref(ca), {
23758
23758
  ref_key: "datePicker",
23759
23759
  ref: datePicker,
@@ -23893,9 +23893,9 @@ const _sfc_main$g = {
23893
23893
  }
23894
23894
  };
23895
23895
  var DatePicker_vue_vue_type_style_index_0_lang = "";
23896
- const _hoisted_1$f = /* @__PURE__ */ createTextVNode(" Back ");
23897
- const _hoisted_2$d = /* @__PURE__ */ createElementVNode("div", null, "today", -1);
23898
- const _sfc_main$f = {
23896
+ const _hoisted_1$g = /* @__PURE__ */ createTextVNode(" Back ");
23897
+ const _hoisted_2$e = /* @__PURE__ */ createElementVNode("div", null, "today", -1);
23898
+ const _sfc_main$g = {
23899
23899
  __name: "DatePicker",
23900
23900
  props: {
23901
23901
  inline: {
@@ -23952,12 +23952,12 @@ const _sfc_main$f = {
23952
23952
  })
23953
23953
  ]),
23954
23954
  "calendar-icon": withCtx(() => [
23955
- _hoisted_1$f
23955
+ _hoisted_1$g
23956
23956
  ]),
23957
23957
  "clear-icon": withCtx(() => []),
23958
23958
  "action-preview": withCtx(() => []),
23959
23959
  "marker-tooltip": withCtx(() => [
23960
- _hoisted_2$d
23960
+ _hoisted_2$e
23961
23961
  ]),
23962
23962
  _: 1
23963
23963
  }, 8, ["modelValue", "inline", "markers"])
@@ -23965,12 +23965,70 @@ const _sfc_main$f = {
23965
23965
  };
23966
23966
  }
23967
23967
  };
23968
- var DropdownMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
23969
- const _hoisted_1$e = ["src"];
23970
- const _hoisted_2$c = {
23968
+ var DropdownMenuItem_vue_vue_type_style_index_0_scoped_true_lang = "";
23969
+ const _hoisted_1$f = ["src"];
23970
+ const _hoisted_2$d = {
23971
23971
  key: 3,
23972
23972
  class: "menu-item-text-wrapper"
23973
23973
  };
23974
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23975
+ __name: "DropdownMenuItem",
23976
+ props: {
23977
+ item: {
23978
+ type: Object,
23979
+ required: true
23980
+ },
23981
+ textEllipsis: {
23982
+ type: Boolean,
23983
+ required: false,
23984
+ default: false
23985
+ },
23986
+ iconSize: {
23987
+ type: Number,
23988
+ required: false,
23989
+ default: 24
23990
+ }
23991
+ },
23992
+ setup(__props) {
23993
+ const props = __props;
23994
+ return (_ctx, _cache) => {
23995
+ return openBlock(), createElementBlock(Fragment, null, [
23996
+ __props.item.iconUrl ? (openBlock(), createElementBlock("img", {
23997
+ key: 0,
23998
+ alt: "icon image",
23999
+ class: "icon icon-url",
24000
+ src: __props.item.iconUrl
24001
+ }, null, 8, _hoisted_1$f)) : createCommentVNode("", true),
24002
+ !__props.item.iconUrl ? (openBlock(), createBlock(DhIcon, mergeProps({
24003
+ key: 1,
24004
+ class: "icon"
24005
+ }, { ...__props.item, size: props.iconSize }), null, 16)) : createCommentVNode("", true),
24006
+ !__props.item.subText ? (openBlock(), createElementBlock("span", {
24007
+ key: 2,
24008
+ class: normalizeClass(["body-2", { "text-ellipsis": props.textEllipsis }])
24009
+ }, toDisplayString(__props.item.text), 3)) : createCommentVNode("", true),
24010
+ __props.item.subText ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
24011
+ createElementVNode("span", {
24012
+ class: normalizeClass(["body-4-medium", { "text-ellipsis": props.textEllipsis }])
24013
+ }, toDisplayString(__props.item.text), 3),
24014
+ createElementVNode("span", {
24015
+ class: normalizeClass(["body-1", { "text-ellipsis": props.textEllipsis }])
24016
+ }, toDisplayString(__props.item.subText), 3)
24017
+ ])) : createCommentVNode("", true),
24018
+ __props.item.isSelected ? (openBlock(), createBlock(DhIcon, {
24019
+ key: 4,
24020
+ class: "icon-blue icon-accept",
24021
+ "icon-name": "accept",
24022
+ size: 16
24023
+ })) : createCommentVNode("", true)
24024
+ ], 64);
24025
+ };
24026
+ }
24027
+ });
24028
+ var DhDropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a4d6fb5c"]]);
24029
+ var DropdownMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
24030
+ const _hoisted_1$e = ["data-e2e", "onClick"];
24031
+ const _hoisted_2$c = ["onClick"];
23974
24032
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
23975
24033
  __name: "DropdownMenu",
23976
24034
  props: {
@@ -24033,51 +24091,44 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24033
24091
  style: normalizeStyle({ "z-index": props.zIndex })
24034
24092
  }, [
24035
24093
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
24036
- return openBlock(), createBlock(_component_router_link, {
24094
+ return openBlock(), createElementBlock("div", {
24037
24095
  key: item.iconName,
24038
24096
  class: "menu-item",
24039
24097
  "data-e2e": item.dataE2eTag,
24040
- to: { path: item.url },
24041
24098
  onClick: ($event) => itemSelected(item)
24042
- }, {
24043
- default: withCtx(() => [
24044
- item.iconUrl ? (openBlock(), createElementBlock("img", {
24045
- key: 0,
24046
- alt: "icon image",
24047
- class: "icon icon-url",
24048
- src: item.iconUrl
24049
- }, null, 8, _hoisted_1$e)) : createCommentVNode("", true),
24050
- !item.iconUrl ? (openBlock(), createBlock(DhIcon, mergeProps({
24051
- key: 1,
24052
- class: "icon"
24053
- }, { ...item, size: props.iconSize }), null, 16)) : createCommentVNode("", true),
24054
- !item.subText ? (openBlock(), createElementBlock("span", {
24055
- key: 2,
24056
- class: normalizeClass(["text-2", { "text-ellipsis": props.textEllipsis }])
24057
- }, toDisplayString(item.text), 3)) : createCommentVNode("", true),
24058
- item.subText ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
24059
- createElementVNode("span", {
24060
- class: normalizeClass(["text-4", { "text-ellipsis": props.textEllipsis }])
24061
- }, toDisplayString(item.text), 3),
24062
- createElementVNode("span", {
24063
- class: normalizeClass(["text-1", { "text-ellipsis": props.textEllipsis }])
24064
- }, toDisplayString(item.subText), 3)
24065
- ])) : createCommentVNode("", true),
24066
- item.isSelected ? (openBlock(), createBlock(DhIcon, {
24067
- key: 4,
24068
- class: "icon-blue icon-accept",
24069
- "icon-name": "accept",
24070
- size: 16
24071
- })) : createCommentVNode("", true)
24072
- ]),
24073
- _: 2
24074
- }, 1032, ["data-e2e", "to", "onClick"]);
24099
+ }, [
24100
+ item.url ? (openBlock(), createBlock(_component_router_link, {
24101
+ key: 0,
24102
+ class: "center-vertical",
24103
+ to: { path: item.url },
24104
+ onClick: ($event) => itemSelected(item)
24105
+ }, {
24106
+ default: withCtx(() => [
24107
+ createVNode(DhDropdownMenuItem, {
24108
+ "icon-size": __props.iconSize,
24109
+ item,
24110
+ "text-ellipsis": __props.textEllipsis
24111
+ }, null, 8, ["icon-size", "item", "text-ellipsis"])
24112
+ ]),
24113
+ _: 2
24114
+ }, 1032, ["to", "onClick"])) : (openBlock(), createElementBlock("div", {
24115
+ key: 1,
24116
+ class: "center-vertical",
24117
+ onClick: ($event) => itemSelected(item)
24118
+ }, [
24119
+ createVNode(DhDropdownMenuItem, {
24120
+ "icon-size": __props.iconSize,
24121
+ item,
24122
+ "text-ellipsis": __props.textEllipsis
24123
+ }, null, 8, ["icon-size", "item", "text-ellipsis"])
24124
+ ], 8, _hoisted_2$c))
24125
+ ], 8, _hoisted_1$e);
24075
24126
  }), 128))
24076
24127
  ], 4);
24077
24128
  };
24078
24129
  }
24079
24130
  });
24080
- var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5a15fe7d"]]);
24131
+ var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-61362fef"]]);
24081
24132
  var Error_vue_vue_type_style_index_0_lang = "";
24082
24133
  const _hoisted_1$d = {
24083
24134
  key: 0,
@@ -27661,4 +27712,4 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27661
27712
  }
27662
27713
  });
27663
27714
  var VerificationCode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7d5513ee"]]);
27664
- export { _sfc_main$g as DhAdvancedDatePicker, DhAdvancedFilter, _sfc_main$f as DhDatePicker, DropdownMenu as DhDropdownMenu, _sfc_main$d as DhError, ExpansionPanel as DhExpansionPanel, _sfc_main$b as DhFileUpload, DhIcon, _sfc_main$a as DhInputDropdown, _sfc_main$9 as DhInputList, Modal as DhModal, Notification as DhNotification, DhNumberRange, PasswordField as DhPasswordField, DhRadioBox, _sfc_main$4 as DhRadioBoxGroup, SearchInput as DhSearchInput, Stepper as DhStepper, DhSwitch, Tooltip as DhTooltip, VerificationCode as DhVerificationCode };
27715
+ export { _sfc_main$h as DhAdvancedDatePicker, DhAdvancedFilter, _sfc_main$g as DhDatePicker, DropdownMenu as DhDropdownMenu, _sfc_main$d as DhError, ExpansionPanel as DhExpansionPanel, _sfc_main$b as DhFileUpload, DhIcon, _sfc_main$a as DhInputDropdown, _sfc_main$9 as DhInputList, Modal as DhModal, Notification as DhNotification, DhNumberRange, PasswordField as DhPasswordField, DhRadioBox, _sfc_main$4 as DhRadioBoxGroup, SearchInput as DhSearchInput, Stepper as DhStepper, DhSwitch, Tooltip as DhTooltip, VerificationCode as DhVerificationCode };