@uzum-tech/ui 2.4.8 → 2.4.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/index.js CHANGED
@@ -125368,6 +125368,7 @@ img.ProseMirror-separator {
125368
125368
  inline: Boolean,
125369
125369
  labelWidth: [Number, String],
125370
125370
  labelAlign: String,
125371
+ ellipsisLabel: Boolean,
125371
125372
  labelPlacement: {
125372
125373
  type: String,
125373
125374
  default: "top"
@@ -126678,7 +126679,8 @@ img.ProseMirror-separator {
126678
126679
  "text mark"
126679
126680
  "text .";
126680
126681
  `), cE("text", `
126681
- grid-area: text;
126682
+ grid-area: text;
126683
+ min-width: 0;
126682
126684
  `), cE("asterisk", `
126683
126685
  grid-area: mark;
126684
126686
  align-self: end;
@@ -126781,6 +126783,10 @@ img.ProseMirror-separator {
126781
126783
  if (UForm?.props.labelAlign) return UForm.props.labelAlign;
126782
126784
  return void 0;
126783
126785
  });
126786
+ const mergedEllipsisLabelRef = vue.computed(() => {
126787
+ if (props.ellipsisLabel !== void 0) return props.ellipsisLabel;
126788
+ return UForm?.props.ellipsisLabel ?? false;
126789
+ });
126784
126790
  const mergedLabelStyleRef = vue.computed(() => {
126785
126791
  return [props.labelProps?.style, props.labelStyle, {
126786
126792
  width: mergedLabelWidthRef.value
@@ -126838,6 +126844,7 @@ img.ProseMirror-separator {
126838
126844
  mergedValidationStatus: mergedValidationStatusRef,
126839
126845
  mergedShowFeedback: mergedShowFeedbackRef,
126840
126846
  mergedShowLabel: mergedShowLabelRef,
126847
+ mergedEllipsisLabel: mergedEllipsisLabelRef,
126841
126848
  isAutoLabelWidth: isAutoLabelWidthRef
126842
126849
  };
126843
126850
  }
@@ -126910,6 +126917,10 @@ img.ProseMirror-separator {
126910
126917
  const formItemProps = {
126911
126918
  ...useTheme.props,
126912
126919
  label: String,
126920
+ ellipsisLabel: {
126921
+ type: Boolean,
126922
+ default: void 0
126923
+ },
126913
126924
  labelWidth: [Number, String],
126914
126925
  labelStyle: [String, Object],
126915
126926
  labelAlign: String,
@@ -127314,7 +127325,7 @@ img.ProseMirror-separator {
127314
127325
  const labelText = this.$slots.label ? this.$slots.label() : this.label;
127315
127326
  if (!labelText)
127316
127327
  return null;
127317
- const textNode = /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-form-item-label__text` }, labelText);
127328
+ const textNode = /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-form-item-label__text` }, this.mergedEllipsisLabel ? /* @__PURE__ */ vue.h(_UEllipsis, null, { default: () => labelText }) : labelText);
127318
127329
  const markNode = renderedShowRequireMark ? /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-form-item-label__asterisk` }, mergedRequireMarkPlacement !== "left" ? "\xA0*" : "*\xA0") : mergedRequireMarkPlacement === "right-hanging" && /* @__PURE__ */ vue.h(
127319
127330
  "span",
127320
127331
  {
@@ -155327,7 +155338,7 @@ ${icon.label}`.toLowerCase()
155327
155338
  });
155328
155339
  }
155329
155340
 
155330
- var version = "2.4.8";
155341
+ var version = "2.4.9";
155331
155342
 
155332
155343
  function create({
155333
155344
  componentPrefix = "U",
package/dist/index.mjs CHANGED
@@ -125364,6 +125364,7 @@ const formProps = {
125364
125364
  inline: Boolean,
125365
125365
  labelWidth: [Number, String],
125366
125366
  labelAlign: String,
125367
+ ellipsisLabel: Boolean,
125367
125368
  labelPlacement: {
125368
125369
  type: String,
125369
125370
  default: "top"
@@ -126674,7 +126675,8 @@ var style$I = cB("form-item", `
126674
126675
  "text mark"
126675
126676
  "text .";
126676
126677
  `), cE("text", `
126677
- grid-area: text;
126678
+ grid-area: text;
126679
+ min-width: 0;
126678
126680
  `), cE("asterisk", `
126679
126681
  grid-area: mark;
126680
126682
  align-self: end;
@@ -126777,6 +126779,10 @@ function formItemMisc(props) {
126777
126779
  if (UForm?.props.labelAlign) return UForm.props.labelAlign;
126778
126780
  return void 0;
126779
126781
  });
126782
+ const mergedEllipsisLabelRef = computed(() => {
126783
+ if (props.ellipsisLabel !== void 0) return props.ellipsisLabel;
126784
+ return UForm?.props.ellipsisLabel ?? false;
126785
+ });
126780
126786
  const mergedLabelStyleRef = computed(() => {
126781
126787
  return [props.labelProps?.style, props.labelStyle, {
126782
126788
  width: mergedLabelWidthRef.value
@@ -126834,6 +126840,7 @@ function formItemMisc(props) {
126834
126840
  mergedValidationStatus: mergedValidationStatusRef,
126835
126841
  mergedShowFeedback: mergedShowFeedbackRef,
126836
126842
  mergedShowLabel: mergedShowLabelRef,
126843
+ mergedEllipsisLabel: mergedEllipsisLabelRef,
126837
126844
  isAutoLabelWidth: isAutoLabelWidthRef
126838
126845
  };
126839
126846
  }
@@ -126906,6 +126913,10 @@ function findInputValue(vnodes) {
126906
126913
  const formItemProps = {
126907
126914
  ...useTheme.props,
126908
126915
  label: String,
126916
+ ellipsisLabel: {
126917
+ type: Boolean,
126918
+ default: void 0
126919
+ },
126909
126920
  labelWidth: [Number, String],
126910
126921
  labelStyle: [String, Object],
126911
126922
  labelAlign: String,
@@ -127310,7 +127321,7 @@ var _UFormItem = defineComponent({
127310
127321
  const labelText = this.$slots.label ? this.$slots.label() : this.label;
127311
127322
  if (!labelText)
127312
127323
  return null;
127313
- const textNode = /* @__PURE__ */ h$1("span", { class: `${mergedClsPrefix}-form-item-label__text` }, labelText);
127324
+ const textNode = /* @__PURE__ */ h$1("span", { class: `${mergedClsPrefix}-form-item-label__text` }, this.mergedEllipsisLabel ? /* @__PURE__ */ h$1(_UEllipsis, null, { default: () => labelText }) : labelText);
127314
127325
  const markNode = renderedShowRequireMark ? /* @__PURE__ */ h$1("span", { class: `${mergedClsPrefix}-form-item-label__asterisk` }, mergedRequireMarkPlacement !== "left" ? "\xA0*" : "*\xA0") : mergedRequireMarkPlacement === "right-hanging" && /* @__PURE__ */ h$1(
127315
127326
  "span",
127316
127327
  {
@@ -155323,7 +155334,7 @@ function useThemeVars() {
155323
155334
  });
155324
155335
  }
155325
155336
 
155326
- var version = "2.4.8";
155337
+ var version = "2.4.9";
155327
155338
 
155328
155339
  function create({
155329
155340
  componentPrefix = "U",