@uzum-tech/ui 2.1.2 → 2.1.3

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
@@ -78668,6 +78668,7 @@
78668
78668
  const { type } = props;
78669
78669
  switch (type) {
78670
78670
  case "date":
78671
+ case "daterange":
78671
78672
  return localeRef.value.datePlaceholder;
78672
78673
  case "datetime":
78673
78674
  return localeRef.value.datetimePlaceholder;
@@ -79459,14 +79460,16 @@
79459
79460
  value: this.displayTime || this.localizedPlacehoder
79460
79461
  });
79461
79462
  }
79463
+ const hasDisplayTime = this.isRange ? this.displayStartTime && this.displayEndTime : this.displayTime;
79464
+ const displayValue = this.isRange ? `${this.displayStartTime} - ${this.displayEndTime}` : this.displayTime;
79462
79465
  if (this.triggerPreset === "select") {
79463
79466
  return /* @__PURE__ */ vue.h(
79464
79467
  UInternalSelection,
79465
79468
  {
79466
79469
  ref: "inputInstRef",
79467
- selectedOption: this.displayTime ? {
79468
- label: this.displayTime,
79469
- value: this.displayTime
79470
+ selectedOption: hasDisplayTime ? {
79471
+ label: displayValue,
79472
+ value: displayValue
79470
79473
  } : null,
79471
79474
  round: this.round,
79472
79475
  status: this.mergedStatus,
@@ -79490,6 +79493,7 @@
79490
79493
  );
79491
79494
  }
79492
79495
  if (this.triggerPreset === "button") {
79496
+ const buttonText = hasDisplayTime ? displayValue : this.localizedPlacehoder;
79493
79497
  return /* @__PURE__ */ vue.h(
79494
79498
  Button,
79495
79499
  {
@@ -79500,7 +79504,7 @@
79500
79504
  onClick: this.handleTriggerClick
79501
79505
  },
79502
79506
  {
79503
- default: () => this.displayTime || this.localizedPlacehoder
79507
+ default: () => buttonText
79504
79508
  }
79505
79509
  );
79506
79510
  }
@@ -115662,7 +115666,7 @@
115662
115666
  });
115663
115667
  }
115664
115668
 
115665
- var version = "2.1.2";
115669
+ var version = "2.1.3";
115666
115670
 
115667
115671
  function create({
115668
115672
  componentPrefix = "U",
package/dist/index.mjs CHANGED
@@ -78664,6 +78664,7 @@ var _UDatePicker = defineComponent({
78664
78664
  const { type } = props;
78665
78665
  switch (type) {
78666
78666
  case "date":
78667
+ case "daterange":
78667
78668
  return localeRef.value.datePlaceholder;
78668
78669
  case "datetime":
78669
78670
  return localeRef.value.datetimePlaceholder;
@@ -79455,14 +79456,16 @@ var _UDatePicker = defineComponent({
79455
79456
  value: this.displayTime || this.localizedPlacehoder
79456
79457
  });
79457
79458
  }
79459
+ const hasDisplayTime = this.isRange ? this.displayStartTime && this.displayEndTime : this.displayTime;
79460
+ const displayValue = this.isRange ? `${this.displayStartTime} - ${this.displayEndTime}` : this.displayTime;
79458
79461
  if (this.triggerPreset === "select") {
79459
79462
  return /* @__PURE__ */ h(
79460
79463
  UInternalSelection,
79461
79464
  {
79462
79465
  ref: "inputInstRef",
79463
- selectedOption: this.displayTime ? {
79464
- label: this.displayTime,
79465
- value: this.displayTime
79466
+ selectedOption: hasDisplayTime ? {
79467
+ label: displayValue,
79468
+ value: displayValue
79466
79469
  } : null,
79467
79470
  round: this.round,
79468
79471
  status: this.mergedStatus,
@@ -79486,6 +79489,7 @@ var _UDatePicker = defineComponent({
79486
79489
  );
79487
79490
  }
79488
79491
  if (this.triggerPreset === "button") {
79492
+ const buttonText = hasDisplayTime ? displayValue : this.localizedPlacehoder;
79489
79493
  return /* @__PURE__ */ h(
79490
79494
  Button,
79491
79495
  {
@@ -79496,7 +79500,7 @@ var _UDatePicker = defineComponent({
79496
79500
  onClick: this.handleTriggerClick
79497
79501
  },
79498
79502
  {
79499
- default: () => this.displayTime || this.localizedPlacehoder
79503
+ default: () => buttonText
79500
79504
  }
79501
79505
  );
79502
79506
  }
@@ -115658,7 +115662,7 @@ function useThemeVars() {
115658
115662
  });
115659
115663
  }
115660
115664
 
115661
- var version = "2.1.2";
115665
+ var version = "2.1.3";
115662
115666
 
115663
115667
  function create({
115664
115668
  componentPrefix = "U",