tsv2-library 0.2.5 → 0.2.6

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.
@@ -51,6 +51,11 @@ export interface TSCalendarProps {
51
51
  * Defines the calendar to use hour picker.
52
52
  */
53
53
  showTime?: boolean;
54
+ /**
55
+ * Formats the hour picker to 12 hour format.
56
+ * @default true
57
+ */
58
+ useTimeFormat?: boolean;
54
59
  }
55
60
 
56
61
  /**
@@ -60780,7 +60780,8 @@ const IA = /* @__PURE__ */ De({
60780
60780
  mandatory: { type: Boolean },
60781
60781
  invalid: { type: Boolean },
60782
60782
  validatorMessage: {},
60783
- showTime: { type: Boolean }
60783
+ showTime: { type: Boolean },
60784
+ useTimeFormat: { type: Boolean, default: !0 }
60784
60785
  },
60785
60786
  emits: ["update:modelValue"],
60786
60787
  setup(e, { emit: t }) {
@@ -60835,7 +60836,7 @@ const IA = /* @__PURE__ */ De({
60835
60836
  ],
60836
60837
  "date-format": b.view === "date" ? "dd/mm/yy" : "mm/yy",
60837
60838
  "hide-on-range-selection": !0,
60838
- "hour-format": (V = s.value) != null && V.timeFormat ? "12" : "24",
60839
+ "hour-format": (V = s.value) != null && V.timeFormat && n.useTimeFormat ? "12" : "24",
60839
60840
  invalid: l.value,
60840
60841
  placeholder: b.view === "month" ? "Select month" : "Select date",
60841
60842
  "selection-mode": b.mode ?? "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "author": "fixedassetv2-fe",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
@@ -51,6 +51,11 @@ export interface TSCalendarProps {
51
51
  * Defines the calendar to use hour picker.
52
52
  */
53
53
  showTime?: boolean;
54
+ /**
55
+ * Formats the hour picker to 12 hour format.
56
+ * @default true
57
+ */
58
+ useTimeFormat?: boolean;
54
59
  }
55
60
 
56
61
  /**