@deskhero/dh_ui 1.35.7 → 1.35.9

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
@@ -23593,7 +23593,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
23593
23593
  _ctx.includeForm ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
23594
23594
  createElementVNode("div", _hoisted_4$7, [
23595
23595
  createElementVNode("label", {
23596
- class: normalizeClass(`text-2 input-to ${_ctx.validated ? "disable" : ""}`)
23596
+ class: normalizeClass(`dh-body-2 input-to ${_ctx.validated ? "disable" : ""}`)
23597
23597
  }, " From ", 2),
23598
23598
  createElementVNode("input", {
23599
23599
  class: "form-input text",
@@ -23608,7 +23608,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
23608
23608
  ]),
23609
23609
  createElementVNode("div", _hoisted_6$4, [
23610
23610
  createElementVNode("label", {
23611
- class: normalizeClass(`text-2 input-to ${_ctx.validated ? "disable" : ""}`)
23611
+ class: normalizeClass(`dh-body-2 input-to ${_ctx.validated ? "disable" : ""}`)
23612
23612
  }, " To ", 2),
23613
23613
  createElementVNode("input", {
23614
23614
  class: "form-input text",
@@ -23978,10 +23978,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23978
23978
  type: Object,
23979
23979
  required: true
23980
23980
  },
23981
- textEllipsis: {
23982
- type: Boolean,
23981
+ textEllipsisStyle: {
23982
+ type: String,
23983
23983
  required: false,
23984
- default: false
23984
+ default: "none",
23985
+ validator: (value) => {
23986
+ return ["none", "ellipsis", "fit-content"].includes(value);
23987
+ }
23985
23988
  },
23986
23989
  iconSize: {
23987
23990
  type: Number,
@@ -24005,14 +24008,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24005
24008
  }, { ...__props.item, size: props.iconSize }), null, 16)) : createCommentVNode("", true),
24006
24009
  !__props.item.subText ? (openBlock(), createElementBlock("span", {
24007
24010
  key: 2,
24008
- class: normalizeClass(["dh-body-2", { "text-ellipsis": props.textEllipsis }])
24011
+ class: normalizeClass(["dh-body-2", __props.textEllipsisStyle])
24009
24012
  }, toDisplayString(__props.item.text), 3)) : createCommentVNode("", true),
24010
24013
  __props.item.subText ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
24011
24014
  createElementVNode("span", {
24012
- class: normalizeClass(["dh-body-1", { "text-ellipsis": props.textEllipsis }])
24015
+ class: normalizeClass(["dh-body-1", __props.textEllipsisStyle])
24013
24016
  }, toDisplayString(__props.item.text), 3),
24014
24017
  createElementVNode("span", {
24015
- class: normalizeClass(["dh-body-4-medium", { "text-ellipsis": props.textEllipsis }])
24018
+ class: normalizeClass(["dh-body-4-medium", __props.textEllipsisStyle])
24016
24019
  }, toDisplayString(__props.item.subText), 3)
24017
24020
  ])) : createCommentVNode("", true),
24018
24021
  __props.item.isSelected ? (openBlock(), createBlock(DhIcon, {
@@ -24025,7 +24028,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24025
24028
  };
24026
24029
  }
24027
24030
  });
24028
- var DhDropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-72dc9f17"]]);
24031
+ var DhDropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-35071082"]]);
24029
24032
  var DropdownMenu_vue_vue_type_style_index_0_scoped_true_lang = "";
24030
24033
  const _hoisted_1$e = ["data-e2e", "onClick"];
24031
24034
  const _hoisted_2$c = ["onClick"];
@@ -24036,10 +24039,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24036
24039
  type: Object,
24037
24040
  required: true
24038
24041
  },
24039
- textEllipsis: {
24040
- type: Boolean,
24042
+ textEllipsisStyle: {
24043
+ type: String,
24041
24044
  required: false,
24042
- default: false
24045
+ default: "none",
24046
+ validator: (value) => {
24047
+ return ["none", "ellipsis", "fit-content"].includes(value);
24048
+ }
24043
24049
  },
24044
24050
  iconSize: {
24045
24051
  type: Number,
@@ -24107,8 +24113,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24107
24113
  createVNode(DhDropdownMenuItem, {
24108
24114
  "icon-size": __props.iconSize,
24109
24115
  item,
24110
- "text-ellipsis": __props.textEllipsis
24111
- }, null, 8, ["icon-size", "item", "text-ellipsis"])
24116
+ "text-ellipsis-style": __props.textEllipsisStyle
24117
+ }, null, 8, ["icon-size", "item", "text-ellipsis-style"])
24112
24118
  ]),
24113
24119
  _: 2
24114
24120
  }, 1032, ["to", "onClick"])) : (openBlock(), createElementBlock("div", {
@@ -24119,8 +24125,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24119
24125
  createVNode(DhDropdownMenuItem, {
24120
24126
  "icon-size": __props.iconSize,
24121
24127
  item,
24122
- "text-ellipsis": __props.textEllipsis
24123
- }, null, 8, ["icon-size", "item", "text-ellipsis"])
24128
+ "text-ellipsis-style": __props.textEllipsisStyle
24129
+ }, null, 8, ["icon-size", "item", "text-ellipsis-style"])
24124
24130
  ], 8, _hoisted_2$c))
24125
24131
  ], 8, _hoisted_1$e);
24126
24132
  }), 128))
@@ -24128,7 +24134,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24128
24134
  };
24129
24135
  }
24130
24136
  });
24131
- var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-61362fef"]]);
24137
+ var DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f922f7ec"]]);
24132
24138
  var Error_vue_vue_type_style_index_0_lang = "";
24133
24139
  const _hoisted_1$d = {
24134
24140
  key: 0,
@@ -24169,7 +24175,7 @@ const _sfc_main$c = defineComponent({
24169
24175
  };
24170
24176
  }
24171
24177
  });
24172
- const _hoisted_1$c = { class: "text-1" };
24178
+ const _hoisted_1$c = { class: "dh-body-1-medium" };
24173
24179
  const _hoisted_2$b = /* @__PURE__ */ createTextVNode(" Content ");
24174
24180
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
24175
24181
  const _component_dh_icon = resolveComponent("dh-icon");