@rebilly/revel 6.31.4 → 6.31.5

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/CHANGELOG.md CHANGED
@@ -1 +1,6 @@
1
- ## [6.31.4](https://github.com/Rebilly/rebilly/compare/revel-v6.31.3...revel-v6.31.4) (2024-09-09)
1
+ ## [6.31.5](https://github.com/Rebilly/rebilly/compare/revel-v6.31.4...revel-v6.31.5) (2024-09-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **recomm:** Set default time on time select ([#7455](https://github.com/Rebilly/rebilly/issues/7455)) ([3cbcb5a](https://github.com/Rebilly/rebilly/commit/3cbcb5aca8a6f48b857cad9c922a145b45f5a9ad))
package/dist/revel.mjs CHANGED
@@ -9359,17 +9359,23 @@ const nN = ["aria-checked"], rN = ["for"], qN = ["id", "disabled", "value", "che
9359
9359
  type: "object",
9360
9360
  mask: "YYYY-MM-DD",
9361
9361
  ...z.modelConfig
9362
- } : z.modelConfig), O = (c) => {
9363
- c && b("update:modelValue", c);
9364
- }, e = pe({ attrs: p });
9365
- return (c, A) => {
9366
- const t = X0("r-input");
9362
+ } : z.modelConfig), O = (t) => {
9363
+ t && b("update:modelValue", t);
9364
+ }, e = (t) => {
9365
+ const a = new Date(t);
9366
+ return a instanceof Date && !isNaN(a.getTime());
9367
+ }, c = () => {
9368
+ if ((z.type === "datetime" || z.type === "time") && (!z.modelValue || !e(z.modelValue)))
9369
+ return b("update:modelValue", /* @__PURE__ */ new Date());
9370
+ }, A = pe({ attrs: p });
9371
+ return (t, a) => {
9372
+ const n = X0("r-input");
9367
9373
  return s(), f("div", lN, [
9368
- H(W(nO), P0(c.$attrs, {
9374
+ H(W(nO), P0(t.$attrs, {
9369
9375
  mode: M.type,
9370
9376
  "popover-visibility": "focus",
9371
9377
  "popover-content-offset": 4,
9372
- popover: W(e),
9378
+ popover: W(A),
9373
9379
  color: "blue",
9374
9380
  "theme-styles": W(ze),
9375
9381
  timezone: M.timezone,
@@ -9378,13 +9384,14 @@ const nN = ["aria-checked"], rN = ["for"], qN = ["id", "disabled", "value", "che
9378
9384
  masks: M.masks,
9379
9385
  "onUpdate:modelValue": O
9380
9386
  }), {
9381
- default: z0(({ inputValue: a, inputEvents: n }) => [
9382
- H(t, {
9383
- value: a,
9384
- "input-events": n,
9387
+ default: z0(({ inputValue: r, inputEvents: q }) => [
9388
+ H(n, {
9389
+ value: r,
9390
+ "input-events": q,
9385
9391
  disabled: M.disabled,
9386
- placeholder: c.$attrs.placeholder,
9387
- "right-icon": "calendar"
9392
+ placeholder: t.$attrs.placeholder,
9393
+ "right-icon": "calendar",
9394
+ onFocus: c
9388
9395
  }, null, 8, ["value", "input-events", "disabled", "placeholder"])
9389
9396
  ]),
9390
9397
  _: 1