@owp/core 2.5.53 → 2.5.54

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.
Files changed (39) hide show
  1. package/dist/_virtual/index16.js +4 -4
  2. package/dist/_virtual/index17.js +4 -4
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/components/OwpPicker/OwpTimePicker.js +223 -212
  6. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  7. package/dist/components/OwpPicker/internal/DatePickerInput.js +56 -55
  8. package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
  9. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +230 -228
  10. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +189 -187
  12. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1097 -1018
  14. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  15. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +207 -182
  16. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  17. package/dist/constants/gridTheme.js +37 -36
  18. package/dist/constants/gridTheme.js.map +1 -1
  19. package/dist/constants/treeGrid.js +69 -49
  20. package/dist/constants/treeGrid.js.map +1 -1
  21. package/dist/constants.js +53 -33
  22. package/dist/features/themePreview/configs/grid.js +26 -24
  23. package/dist/features/themePreview/configs/grid.js.map +1 -1
  24. package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
  25. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  26. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  30. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  31. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  32. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +5 -1
  33. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
  34. package/dist/types/constants/gridTheme.d.ts +2 -0
  35. package/dist/types/constants/treeGrid.d.ts +40 -0
  36. package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
  37. package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
  38. package/dist/types/types/OwpGridThemeTypes.d.ts +2 -0
  39. package/package.json +1 -1
@@ -1,24 +1,24 @@
1
- var Fn = Object.defineProperty;
2
- var a = (t, m) => Fn(t, "name", { value: m, configurable: !0 });
3
- import { jsx as w, jsxs as cn } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
- import { useOwpTranslation as Pn } from "../../hooks/useOwpTranslation.js";
5
- import Rn from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Clear.js";
6
- import { Popper as ne, Paper as ee, InputAdornment as Sn, IconButton as On } from "@mui/material";
7
- import { TimePicker as te, MultiSectionDigitalClock as re, LocalizationProvider as ie } from "@mui/x-date-pickers";
8
- import { AdapterDayjs as ae } from "@mui/x-date-pickers/AdapterDayjs";
9
- import { clsx as ce } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
10
- import { owpDayjs as K } from "../../dayjs.js";
11
- import { useMemo as J, useState as Q, useRef as O, useCallback as u, useEffect as on } from "react";
12
- import { TIME_PICKER_EDITOR_SECTION_WIDTH as oe, VALUE_TIME_SECOND_FORMATTER as x, VALUE_TIME_FORMATTER as F, PICKER_TRANSITION_DURATION as _n, PICKER_EXIT_TRANSFORM_DELAY as ue, PICKER_TRANSFORM_TRANSITION_DURATION as se, PICKER_INVALID_INPUT_MESSAGE_KEY as de, TIME_PICKER_SELECTED_ITEM_SX as le } from "./constants/index.js";
13
- import { getOwpPickerEditorPaperSx as fe, getOwpPickerEditorInputSx as me, getOwpTimePickerClockSx as Ie } from "./styles/pickerEditorStyles.js";
14
- import { useOwpPickerPopperTransition as Te } from "./hooks/useOwpPickerPopperTransition.js";
15
- import { getAdjacentFocusableElement as we, getPickerInputMask as ke } from "./utils/index.js";
16
- import { OwpTextMaskField as ye } from "../OwpTextField/OwpTextMaskField.js";
17
- const Z = "––", pe = [
1
+ var Pn = Object.defineProperty;
2
+ var a = (t, f) => Pn(t, "name", { value: f, configurable: !0 });
3
+ import { jsx as w, jsxs as un } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
+ import { useOwpTranslation as ne } from "../../hooks/useOwpTranslation.js";
5
+ import Sn from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Clear.js";
6
+ import { Popper as ee, Paper as te, InputAdornment as On, IconButton as _n } from "@mui/material";
7
+ import { TimePicker as re, MultiSectionDigitalClock as ie, LocalizationProvider as ae } from "@mui/x-date-pickers";
8
+ import { AdapterDayjs as ce } from "@mui/x-date-pickers/AdapterDayjs";
9
+ import { clsx as oe } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
10
+ import { owpDayjs as g } from "../../dayjs.js";
11
+ import { useMemo as $, useState as x, useRef as O, useCallback as u, useEffect as sn } from "react";
12
+ import { TIME_PICKER_EDITOR_SECTION_WIDTH as ue, VALUE_TIME_SECOND_FORMATTER as F, VALUE_TIME_FORMATTER as P, PICKER_TRANSITION_DURATION as hn, PICKER_EXIT_TRANSFORM_DELAY as se, PICKER_TRANSFORM_TRANSITION_DURATION as de, PICKER_INVALID_INPUT_MESSAGE_KEY as le, TIME_PICKER_SELECTED_ITEM_SX as me } from "./constants/index.js";
13
+ import { getOwpPickerEditorPaperSx as fe, getOwpPickerEditorInputSx as Ie, getOwpTimePickerClockSx as Te } from "./styles/pickerEditorStyles.js";
14
+ import { useOwpPickerPopperTransition as we } from "./hooks/useOwpPickerPopperTransition.js";
15
+ import { getAdjacentFocusableElement as ye, getPickerInputMask as ke } from "./utils/index.js";
16
+ import { OwpTextMaskField as pe } from "../OwpTextField/OwpTextMaskField.js";
17
+ const Ee = [
18
18
  '[role="spinbutton"]:not([tabindex="-1"]):not([aria-disabled="true"])',
19
19
  '[role="group"] [tabindex="0"]:not([aria-disabled="true"])',
20
20
  '[contenteditable="true"]:not([tabindex="-1"]):not([aria-disabled="true"])'
21
- ].join(","), Ee = {
21
+ ].join(","), De = {
22
22
  "& .MuiInputBase-root": {
23
23
  alignItems: "center"
24
24
  },
@@ -44,242 +44,253 @@ const Z = "––", pe = [
44
44
  visibility: "visible"
45
45
  }
46
46
  }
47
- }, De = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey ? !1 : t.key.length === 1 || t.key === "Backspace" || t.key === "Delete", "isValueEditingKey"), be = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey || t.key === "Escape" || t.key === "Enter" || t.key === "Tab" ? !1 : t.key.length === 1 || t.key.startsWith("Arrow"), "isTimePickerOpenKey"), un = /* @__PURE__ */ a((t, m) => {
48
- const E = t.trim(), s = m ? "(\\d{2}):(\\d{2}):(\\d{2})" : "(\\d{2}):(\\d{2})", y = E.match(new RegExp(`^${s}$`));
49
- if (!y)
47
+ }, be = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey ? !1 : t.key.length === 1 || t.key === "Backspace" || t.key === "Delete", "isValueEditingKey"), Ae = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey || t.key === "Escape" || t.key === "Enter" || t.key === "Tab" ? !1 : t.key.length === 1 || t.key.startsWith("Arrow"), "isTimePickerOpenKey"), dn = /* @__PURE__ */ a((t, f) => {
48
+ const D = t.trim(), s = f ? "(\\d{2}):(\\d{2}):(\\d{2})" : "(\\d{2}):(\\d{2})", k = D.match(new RegExp(`^${s}$`));
49
+ if (!k)
50
50
  return null;
51
- const D = Number(y[1]), _ = Number(y[2]), b = m ? Number(y[3]) : 0;
52
- if (_ > 59 || b > 59 || D > 24 || D === 24 && (_ > 0 || b > 0))
51
+ const b = Number(k[1]), _ = Number(k[2]), A = f ? Number(k[3]) : 0;
52
+ if (_ > 59 || A > 59 || b > 24 || b === 24 && (_ > 0 || A > 0))
53
53
  return null;
54
- const z = [D, _, ...m ? [b] : []].map((c) => String(c).padStart(2, "0")).join(":");
54
+ const z = [b, _, ...f ? [A] : []].map((c) => String(c).padStart(2, "0")).join(":");
55
55
  return {
56
- dateValue: D === 24 ? K("00:00:00", x, !0).add(1, "day") : K(z, m ? x : F, !0),
56
+ dateValue: b === 24 ? g("00:00:00", F, !0).add(1, "day") : g(z, f ? F : P, !0),
57
57
  valueText: z
58
58
  };
59
- }, "parseTimePickerInput"), sn = /* @__PURE__ */ a((t, m) => t.format(m ? x : F), "formatTimePickerDisplayInput"), Ae = /* @__PURE__ */ a((t) => (t == null ? void 0 : t.querySelector(pe)) ?? null, "getTimePickerFocusTarget"), Re = /* @__PURE__ */ a((t, m) => {
60
- const E = m ? t.indexOf(" ") : -1, s = E >= 0 ? t.slice(0, E) : "", y = E >= 0 ? t.slice(E + 1) : t, [D, _, b] = y.split(":");
59
+ }, "parseTimePickerInput"), ln = /* @__PURE__ */ a((t, f) => t.format(f ? F : P), "formatTimePickerDisplayInput"), Re = /* @__PURE__ */ a((t) => (t == null ? void 0 : t.querySelector(Ee)) ?? null, "getTimePickerFocusTarget"), Mn = /* @__PURE__ */ a((t, f) => {
60
+ const D = f ? t.indexOf(" ") : -1, s = D >= 0 ? t.slice(0, D) : "", k = D >= 0 ? t.slice(D + 1) : t, [b, _, A] = k.split(":");
61
61
  return {
62
- hours: D || Z,
63
- minutes: _ || Z,
64
- seconds: b || Z,
65
- meridiem: s || Z
62
+ hours: b ?? "",
63
+ minutes: _ ?? "",
64
+ seconds: A ?? "",
65
+ meridiem: s
66
66
  };
67
- }, "getTimePickerPlaceholderSections"), Se = /* @__PURE__ */ a((t, m) => {
67
+ }, "parseTimePickerPlaceholderSections"), Se = /* @__PURE__ */ a((t, f) => {
68
68
  if (t) {
69
69
  if (typeof t == "function") {
70
- t(m);
70
+ t(f);
71
71
  return;
72
72
  }
73
- t.current = m;
73
+ t.current = f;
74
74
  }
75
- }, "assignInputRef"), Xe = /* @__PURE__ */ a(({
75
+ }, "assignInputRef"), $e = /* @__PURE__ */ a(({
76
76
  label: t,
77
- variant: m = "standard",
78
- sx: E,
77
+ variant: f = "standard",
78
+ sx: D,
79
79
  value: s,
80
- format: y = F,
81
- useAmPm: D,
80
+ format: k = P,
81
+ useAmPm: b,
82
82
  placeholder: _,
83
- clearable: b = !0,
83
+ clearable: A = !0,
84
84
  fullWidth: z,
85
85
  onChange: c,
86
86
  textFieldProps: r,
87
- localeText: Mn,
88
- open: dn,
89
- onOpen: $,
90
- onClose: W,
87
+ localeText: Kn,
88
+ open: mn,
89
+ onOpen: X,
90
+ onClose: H,
91
91
  slots: gn,
92
92
  slotProps: i,
93
93
  ...l
94
94
  }) => {
95
- var bn;
96
- const I = /s/i.test(y), T = I ? x : F, A = D ?? /a/i.test(y), hn = A ? I ? "A hh:mm:ss" : "A hh:mm" : T, Kn = l.closeOnSelect ?? !1, ln = {
95
+ var An;
96
+ const I = /s/i.test(k), T = I ? F : P, p = b ?? /a/i.test(k), v = p ? I ? "A hh:mm:ss" : "A hh:mm" : T, Nn = l.closeOnSelect ?? !1, fn = {
97
97
  minutes: 1,
98
98
  seconds: 1,
99
99
  ...l.timeSteps
100
- }, N = J(
100
+ }, N = $(
101
101
  () => I ? ["hours", "minutes", "seconds"] : ["hours", "minutes"],
102
102
  [I]
103
- ), fn = N.length - 1, P = oe * (N.length + (A ? 1 : 0)), [Nn, mn] = Q(!1), [B, Bn] = Q(""), [In, Tn] = Q(!1), [Ln, L] = Q(null), j = O(null), wn = O(null), kn = O(null), nn = O(null), X = O(!1), v = O(!1), p = O(0), en = O(!1), { t: tn, i18n: yn } = Pn(), Vn = (yn.resolvedLanguage ?? yn.language ?? "kr") === "kr" ? "ko" : "en", rn = _ ?? (A ? "–– ––:––" : "––:––"), H = J(
104
- () => Re(rn, A),
105
- [rn, A]
106
- ), an = {
107
- okButtonLabel: tn("Button.확인"),
108
- clearButtonLabel: tn("Button.초기화"),
109
- fieldHoursPlaceholder: /* @__PURE__ */ a(() => H.hours, "fieldHoursPlaceholder"),
110
- fieldMinutesPlaceholder: /* @__PURE__ */ a(() => H.minutes, "fieldMinutesPlaceholder"),
111
- fieldSecondsPlaceholder: /* @__PURE__ */ a(() => H.seconds, "fieldSecondsPlaceholder"),
112
- fieldMeridiemPlaceholder: /* @__PURE__ */ a(() => H.meridiem, "fieldMeridiemPlaceholder"),
113
- ...Mn
114
- }, zn = [Ee, E, r == null ? void 0 : r.sx].filter(
103
+ ), In = N.length - 1, nn = ue * (N.length + (p ? 1 : 0)), [Bn, Tn] = x(!1), [B, Ln] = x(""), [wn, yn] = x(!1), [Vn, L] = x(null), j = O(null), kn = O(null), pn = O(null), en = O(null), G = O(!1), Y = O(!1), E = O(0), tn = O(!1), { t: rn, i18n: an } = ne(), zn = !an.language || an.language === "kr" || an.language.startsWith("ko") ? "ko" : "en", cn = _ ?? v, U = $(
104
+ () => Mn(v, p),
105
+ [v, p]
106
+ ), J = $(
107
+ () => {
108
+ const n = Mn(cn, p);
109
+ return {
110
+ hours: n.hours || U.hours,
111
+ minutes: n.minutes || U.minutes,
112
+ seconds: n.seconds || U.seconds || "",
113
+ meridiem: n.meridiem || U.meridiem || ""
114
+ };
115
+ },
116
+ [U, cn, p]
117
+ ), on = {
118
+ okButtonLabel: rn("Button.확인"),
119
+ clearButtonLabel: rn("Button.초기화"),
120
+ fieldHoursPlaceholder: /* @__PURE__ */ a(() => J.hours, "fieldHoursPlaceholder"),
121
+ fieldMinutesPlaceholder: /* @__PURE__ */ a(() => J.minutes, "fieldMinutesPlaceholder"),
122
+ fieldSecondsPlaceholder: /* @__PURE__ */ a(() => J.seconds, "fieldSecondsPlaceholder"),
123
+ fieldMeridiemPlaceholder: /* @__PURE__ */ a(() => J.meridiem, "fieldMeridiemPlaceholder"),
124
+ ...Kn
125
+ }, jn = [De, D, r == null ? void 0 : r.sx].filter(
115
126
  Boolean
116
- ), jn = !!(!b || l.disabled || l.readOnly), Cn = !!c && b, C = dn !== void 0, d = C ? dn : Nn, Y = Te(d), f = u((n) => {
117
- Bn(n), Tn(!1);
118
- }, []), M = u(() => {
127
+ ), Un = !!(!A || l.disabled || l.readOnly), Cn = !!c && A, C = mn !== void 0, d = C ? mn : Bn, Q = we(d), m = u((n) => {
128
+ Ln(n), yn(!1);
129
+ }, []), h = u(() => {
119
130
  var n;
120
- (n = nn.current) == null || n.focus();
121
- }, []), g = J(() => {
131
+ (n = en.current) == null || n.focus();
132
+ }, []), M = $(() => {
122
133
  if (!s)
123
134
  return null;
124
- if (K.isDayjs(s))
135
+ if (g.isDayjs(s))
125
136
  return s;
126
137
  if (typeof s == "string") {
127
- const e = un(s, I);
138
+ const e = dn(s, I);
128
139
  if (e != null && e.dateValue.isValid())
129
140
  return e.dateValue;
130
- const o = K(s, T, !0);
141
+ const o = g(s, T, !0);
131
142
  return o.isValid() ? o : null;
132
143
  }
133
- const n = K(s);
144
+ const n = g(s);
134
145
  return n.isValid() ? n : null;
135
- }, [I, T, s]), V = J(() => {
146
+ }, [I, T, s]), V = $(() => {
136
147
  if (!s)
137
148
  return "";
138
149
  if (typeof s == "string") {
139
- const e = K(s, T, !0);
140
- return e.isValid() ? sn(e, I) : s;
150
+ const e = g(s, T, !0);
151
+ return e.isValid() ? ln(e, I) : s;
141
152
  }
142
- const n = K(s);
143
- return n.isValid() ? sn(n, I) : "";
144
- }, [I, T, s]), Un = /* @__PURE__ */ a((n) => {
153
+ const n = g(s);
154
+ return n.isValid() ? ln(n, I) : "";
155
+ }, [I, T, s]), qn = /* @__PURE__ */ a((n) => {
145
156
  const e = n != null && n.isValid() ? n.format(T) : void 0;
146
- f(
147
- n != null && n.isValid() ? sn(n, I) : ""
157
+ m(
158
+ n != null && n.isValid() ? ln(n, I) : ""
148
159
  ), c == null || c(e);
149
- }, "handleChange"), h = u(
160
+ }, "handleChange"), K = u(
150
161
  (n) => {
151
162
  if (!B)
152
- return f(""), c == null || c(""), !0;
153
- const e = un(B, I);
154
- return e != null && e.dateValue.isValid() ? (f(e.valueText), c == null || c(e.valueText), !0) : (n && B && Tn(!0), !1);
163
+ return m(""), c == null || c(""), !0;
164
+ const e = dn(B, I);
165
+ return e != null && e.dateValue.isValid() ? (m(e.valueText), c == null || c(e.valueText), !0) : (n && B && yn(!0), !1);
155
166
  },
156
- [I, B, c, f]
167
+ [I, B, c, m]
157
168
  ), R = u(() => {
158
- if (v.current || Date.now() < p.current) {
159
- v.current = !1;
169
+ if (Y.current || Date.now() < E.current) {
170
+ Y.current = !1;
160
171
  return;
161
172
  }
162
- C || mn(!0), f(V), L(g), $ == null || $();
163
- }, [C, $, V, g, f]), k = u(() => {
164
- C || mn(!1), W == null || W();
165
- }, [C, W]), S = u(() => {
166
- h(), k();
167
- }, [k, h]), pn = u(() => {
168
- p.current = Date.now() + 200, S();
169
- }, [S]), En = u(() => {
170
- p.current = Date.now() + 200, k();
171
- }, [k]), G = u((n) => {
173
+ C || Tn(!0), m(V), L(M), X == null || X();
174
+ }, [C, X, V, M, m]), y = u(() => {
175
+ C || Tn(!1), H == null || H();
176
+ }, [C, H]), S = u(() => {
177
+ K(), y();
178
+ }, [y, K]), En = u(() => {
179
+ E.current = Date.now() + 200, S();
180
+ }, [S]), Dn = u(() => {
181
+ E.current = Date.now() + 200, y();
182
+ }, [y]), Z = u((n) => {
172
183
  const e = j.current;
173
184
  e && window.requestAnimationFrame(() => {
174
185
  var o;
175
- (o = we(e, n)) == null || o.focus();
186
+ (o = ye(e, n)) == null || o.focus();
176
187
  });
177
- }, []), U = u(() => {
188
+ }, []), q = u(() => {
178
189
  window.requestAnimationFrame(() => {
179
190
  var n;
180
- (n = Ae(j.current) ?? kn.current) == null || n.focus();
191
+ (n = Re(j.current) ?? pn.current) == null || n.focus();
181
192
  });
182
- }, []), qn = u(
193
+ }, []), Wn = u(
183
194
  (n) => {
184
- kn.current = n, Se(r == null ? void 0 : r.inputRef, n);
195
+ pn.current = n, Se(r == null ? void 0 : r.inputRef, n);
185
196
  },
186
197
  [r == null ? void 0 : r.inputRef]
187
198
  ), $n = u(
188
199
  (n) => {
189
- nn.current = n, !(!n || !d) && (window.requestAnimationFrame(() => {
190
- M();
200
+ en.current = n, !(!n || !d) && (window.requestAnimationFrame(() => {
201
+ h();
191
202
  }), window.setTimeout(() => {
192
- M();
203
+ h();
193
204
  }));
194
205
  },
195
- [M, d]
196
- ), Wn = /* @__PURE__ */ a(() => {
197
- c == null || c(""), f("");
198
- }, "handleClear"), Xn = u(
206
+ [h, d]
207
+ ), Xn = /* @__PURE__ */ a(() => {
208
+ c == null || c(""), m("");
209
+ }, "handleClear"), Hn = u(
199
210
  (n) => {
200
- const e = n.target.value, o = un(e, I);
201
- f(e), o != null && o.dateValue.isValid() && L(o.dateValue);
211
+ const e = n.target.value, o = dn(e, I);
212
+ m(e), o != null && o.dateValue.isValid() && L(o.dateValue);
202
213
  },
203
- [I, f]
204
- ), Dn = u(
214
+ [I, m]
215
+ ), bn = u(
205
216
  (n) => {
206
217
  n.stopPropagation(), n.nativeEvent.stopImmediatePropagation();
207
218
  },
208
219
  []
209
220
  ), vn = u(
210
221
  (n) => {
211
- if (Dn(n), n.key === "Escape") {
212
- n.preventDefault(), p.current = Date.now() + 200, f(V), L(g), k(), U();
222
+ if (bn(n), n.key === "Escape") {
223
+ n.preventDefault(), E.current = Date.now() + 200, m(V), L(M), y(), q();
213
224
  return;
214
225
  }
215
226
  if (n.key === "Tab") {
216
- if (n.preventDefault(), !h(!0))
227
+ if (n.preventDefault(), !K(!0))
217
228
  return;
218
- p.current = Date.now() + 200, k(), G(n.shiftKey);
229
+ E.current = Date.now() + 200, y(), Z(n.shiftKey);
219
230
  return;
220
231
  }
221
- n.key === "Enter" && (n.preventDefault(), h(!0) && (p.current = Date.now() + 200, k(), U()));
232
+ n.key === "Enter" && (n.preventDefault(), K(!0) && (E.current = Date.now() + 200, y(), q()));
222
233
  },
223
234
  [
224
- k,
225
- h,
226
- G,
227
- U,
235
+ y,
236
+ K,
237
+ Z,
238
+ q,
228
239
  V,
229
- g,
230
- f,
231
- Dn
240
+ M,
241
+ m,
242
+ bn
232
243
  ]
233
- ), Hn = u(
244
+ ), Gn = u(
234
245
  (n) => {
235
- n.stopPropagation(), n.key === "Tab" && (n.preventDefault(), h(!0) && (p.current = Date.now() + 200, k(), G(n.shiftKey)));
246
+ n.stopPropagation(), n.key === "Tab" && (n.preventDefault(), K(!0) && (E.current = Date.now() + 200, y(), Z(n.shiftKey)));
236
247
  },
237
- [k, h, G]
248
+ [y, K, Z]
238
249
  ), Yn = u(
239
250
  (n) => {
240
251
  var e;
241
- n.preventDefault(), n.stopPropagation(), c == null || c(""), f(""), L(null), (e = nn.current) == null || e.focus();
252
+ n.preventDefault(), n.stopPropagation(), c == null || c(""), m(""), L(null), (e = en.current) == null || e.focus();
242
253
  },
243
- [c, f]
244
- ), Gn = u(
254
+ [c, m]
255
+ ), Jn = u(
245
256
  (n, e) => {
246
257
  if (!(n != null && n.isValid()))
247
258
  return;
248
259
  const o = n.format(T);
249
- L(n), f(o), e === N[fn] && (p.current = Date.now() + 200, c == null || c(o), En(), U());
260
+ L(n), m(o), e === N[In] && (E.current = Date.now() + 200, c == null || c(o), Dn(), q());
250
261
  },
251
262
  [
252
- fn,
253
- En,
254
- U,
263
+ In,
264
+ Dn,
265
+ q,
255
266
  T,
256
267
  c,
257
- f,
268
+ m,
258
269
  N
259
270
  ]
260
- ), Jn = u(
271
+ ), Qn = u(
261
272
  (n) => {
262
273
  var e;
263
- (e = r == null ? void 0 : r.onMouseDown) == null || e.call(r, n), X.current = !0;
274
+ (e = r == null ? void 0 : r.onMouseDown) == null || e.call(r, n), G.current = !0;
264
275
  },
265
276
  [r]
266
- ), Qn = u(
277
+ ), Zn = u(
267
278
  (n) => {
268
279
  var e;
269
- (e = r == null ? void 0 : r.onFocus) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly || d) && (en.current = X.current, R());
280
+ (e = r == null ? void 0 : r.onFocus) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly || d) && (tn.current = G.current, R());
270
281
  },
271
282
  [R, d, r, l.disabled, l.readOnly]
272
- ), Zn = u(
283
+ ), xn = u(
273
284
  (n) => {
274
285
  var e;
275
286
  if ((e = r == null ? void 0 : r.onClick) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly)) {
276
- if (en.current) {
277
- en.current = !1, X.current = !1;
287
+ if (tn.current) {
288
+ tn.current = !1, G.current = !1;
278
289
  return;
279
290
  }
280
- if (X.current = !1, d) {
281
- v.current = !0, S(), queueMicrotask(() => {
282
- v.current = !1;
291
+ if (G.current = !1, d) {
292
+ Y.current = !0, S(), queueMicrotask(() => {
293
+ Y.current = !1;
283
294
  });
284
295
  return;
285
296
  }
@@ -294,19 +305,19 @@ const Z = "––", pe = [
294
305
  l.disabled,
295
306
  l.readOnly
296
307
  ]
297
- ), xn = u(
308
+ ), Fn = u(
298
309
  (n) => {
299
310
  var e;
300
311
  if ((e = r == null ? void 0 : r.onKeyDown) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly)) {
301
- if (!d && be(n)) {
312
+ if (!d && Ae(n)) {
302
313
  n.preventDefault(), R();
303
314
  return;
304
315
  }
305
316
  if (d && n.key === "Tab") {
306
- p.current = Date.now() + 200, S();
317
+ E.current = Date.now() + 200, S();
307
318
  return;
308
319
  }
309
- !d || !De(n) || S();
320
+ !d || !be(n) || S();
310
321
  }
311
322
  },
312
323
  [
@@ -318,64 +329,64 @@ const Z = "––", pe = [
318
329
  l.readOnly
319
330
  ]
320
331
  );
321
- return on(() => {
322
- d && (f(V), L(g));
323
- }, [d, V, g, f]), on(() => {
324
- if (!d || Y.state !== "open")
332
+ return sn(() => {
333
+ d && (m(V), L(M));
334
+ }, [d, V, M, m]), sn(() => {
335
+ if (!d || Q.state !== "open")
325
336
  return;
326
337
  const n = window.requestAnimationFrame(() => {
327
- M();
338
+ h();
328
339
  }), e = window.setTimeout(() => {
329
- M();
340
+ h();
330
341
  }), o = window.setTimeout(() => {
331
- M();
332
- }, _n);
342
+ h();
343
+ }, hn);
333
344
  return () => {
334
345
  window.cancelAnimationFrame(n), window.clearTimeout(e), window.clearTimeout(o);
335
346
  };
336
- }, [M, d, Y.state]), on(() => {
347
+ }, [h, d, Q.state]), sn(() => {
337
348
  if (!d)
338
349
  return;
339
350
  const n = /* @__PURE__ */ a((e) => {
340
- var q, An;
351
+ var W, Rn;
341
352
  const o = e.target;
342
- o instanceof Node && ((q = j.current) != null && q.contains(o) || (An = wn.current) != null && An.contains(o) || pn());
353
+ o instanceof Node && ((W = j.current) != null && W.contains(o) || (Rn = kn.current) != null && Rn.contains(o) || En());
343
354
  }, "handleDocumentMouseDown");
344
355
  return document.addEventListener("mousedown", n, !0), () => {
345
356
  document.removeEventListener("mousedown", n, !0);
346
357
  };
347
- }, [pn, d]), /* @__PURE__ */ w(ie, { dateAdapter: ae, adapterLocale: Vn, children: /* @__PURE__ */ cn("div", { ref: j, children: [
358
+ }, [En, d]), /* @__PURE__ */ w(ae, { dateAdapter: ce, adapterLocale: zn, children: /* @__PURE__ */ un("div", { ref: j, children: [
348
359
  /* @__PURE__ */ w(
349
- te,
360
+ re,
350
361
  {
351
362
  ...l,
352
- ampm: A,
363
+ ampm: p,
353
364
  open: !1,
354
- closeOnSelect: Kn,
355
- timeSteps: ln,
365
+ closeOnSelect: Nn,
366
+ timeSteps: fn,
356
367
  label: t,
357
- value: g,
368
+ value: M,
358
369
  views: N,
359
- format: hn,
360
- localeText: an,
361
- onChange: Un,
370
+ format: v,
371
+ localeText: on,
372
+ onChange: qn,
362
373
  onOpen: R,
363
374
  onClose: S,
364
375
  slots: {
365
376
  ...gn,
366
- inputAdornment: /* @__PURE__ */ a(({ position: n, children: e, ...o }) => /* @__PURE__ */ cn(Sn, { position: n, ...o, children: [
377
+ inputAdornment: /* @__PURE__ */ a(({ position: n, children: e, ...o }) => /* @__PURE__ */ un(On, { position: n, ...o, children: [
367
378
  n === "end" && Cn && /* @__PURE__ */ w(
368
- On,
379
+ _n,
369
380
  {
370
381
  className: "clearButton",
371
382
  size: "small",
372
383
  tabIndex: -1,
373
- "aria-label": an.clearButtonLabel,
374
- disabled: jn,
375
- onClick: /* @__PURE__ */ a((q) => {
376
- q.preventDefault(), q.stopPropagation(), Wn();
384
+ "aria-label": on.clearButtonLabel,
385
+ disabled: Un,
386
+ onClick: /* @__PURE__ */ a((W) => {
387
+ W.preventDefault(), W.stopPropagation(), Xn();
377
388
  }, "onClick"),
378
- children: /* @__PURE__ */ w(Rn, { fontSize: "small" })
389
+ children: /* @__PURE__ */ w(Sn, { fontSize: "small" })
379
390
  }
380
391
  ),
381
392
  e
@@ -405,35 +416,35 @@ const Z = "––", pe = [
405
416
  marginBottom: 0,
406
417
  marginLeft: 0,
407
418
  gap: 0,
408
- ...typeof (i == null ? void 0 : i.inputAdornment) == "function" || (bn = i == null ? void 0 : i.inputAdornment) == null ? void 0 : bn.sx
419
+ ...typeof (i == null ? void 0 : i.inputAdornment) == "function" || (An = i == null ? void 0 : i.inputAdornment) == null ? void 0 : An.sx
409
420
  }
410
421
  },
411
422
  textField: {
412
- variant: m,
423
+ variant: f,
413
424
  fullWidth: z,
414
425
  ...r,
415
- className: ce(
416
- !z && (A ? "w-[160px]" : "w-[140px]"),
426
+ className: oe(
427
+ !z && (p ? "w-[160px]" : "w-[140px]"),
417
428
  r == null ? void 0 : r.className
418
429
  ),
419
- onMouseDown: Jn,
420
- onFocus: Qn,
421
- onClick: Zn,
422
- onKeyDown: xn,
423
- inputRef: qn,
424
- placeholder: rn,
425
- sx: zn
430
+ onMouseDown: Qn,
431
+ onFocus: Zn,
432
+ onClick: xn,
433
+ onKeyDown: Fn,
434
+ inputRef: Wn,
435
+ placeholder: cn,
436
+ sx: jn
426
437
  }
427
438
  }
428
439
  }
429
440
  ),
430
- Y.shouldRender && /* @__PURE__ */ w(
431
- ne,
441
+ Q.shouldRender && /* @__PURE__ */ w(
442
+ ee,
432
443
  {
433
444
  open: !0,
434
445
  anchorEl: j.current,
435
446
  placement: "bottom-end",
436
- ref: wn,
447
+ ref: kn,
437
448
  modifiers: [
438
449
  {
439
450
  name: "offset",
@@ -447,30 +458,30 @@ const Z = "––", pe = [
447
458
  "div",
448
459
  {
449
460
  className: "owp-animated-picker-popper",
450
- "data-state": Y.state,
461
+ "data-state": Q.state,
451
462
  style: {
452
- "--owp-calendar-transition-duration": `${_n}ms`,
453
- "--owp-calendar-transform-transition-duration": `${se}ms`,
454
- "--owp-calendar-exit-transform-delay": `${ue}ms`
463
+ "--owp-calendar-transition-duration": `${hn}ms`,
464
+ "--owp-calendar-transform-transition-duration": `${de}ms`,
465
+ "--owp-calendar-exit-transform-delay": `${se}ms`
455
466
  },
456
- children: /* @__PURE__ */ cn(
457
- ee,
467
+ children: /* @__PURE__ */ un(
468
+ te,
458
469
  {
459
470
  elevation: 8,
460
471
  onClick: /* @__PURE__ */ a((n) => {
461
472
  n.stopPropagation();
462
473
  }, "onClick"),
463
- onKeyDown: Hn,
474
+ onKeyDown: Gn,
464
475
  onKeyUp: /* @__PURE__ */ a((n) => {
465
476
  n.stopPropagation();
466
477
  }, "onKeyUp"),
467
478
  onMouseDown: /* @__PURE__ */ a((n) => {
468
479
  n.stopPropagation();
469
480
  }, "onMouseDown"),
470
- sx: fe(P),
481
+ sx: fe(nn),
471
482
  children: [
472
483
  /* @__PURE__ */ w(
473
- ye,
484
+ pe,
474
485
  {
475
486
  autoFocus: !0,
476
487
  inputRef: $n,
@@ -478,29 +489,29 @@ const Z = "––", pe = [
478
489
  size: "small",
479
490
  variant: "outlined",
480
491
  value: B,
481
- error: In,
482
- helperText: In ? tn(de) : void 0,
492
+ error: wn,
493
+ helperText: wn ? rn(le) : void 0,
483
494
  mask: ke(T),
484
495
  placeholder: T,
485
- onChange: Xn,
496
+ onChange: Hn,
486
497
  onKeyDown: vn,
487
498
  inputProps: {
488
499
  inputMode: "numeric",
489
500
  "aria-label": T
490
501
  },
491
502
  endAdornment: /* @__PURE__ */ w(
492
- Sn,
503
+ On,
493
504
  {
494
505
  position: "end",
495
506
  sx: {
496
507
  marginLeft: 0
497
508
  },
498
509
  children: /* @__PURE__ */ w(
499
- On,
510
+ _n,
500
511
  {
501
512
  size: "small",
502
513
  tabIndex: -1,
503
- "aria-label": an.clearButtonLabel,
514
+ "aria-label": on.clearButtonLabel,
504
515
  disabled: !B,
505
516
  onClick: Yn,
506
517
  onMouseDown: /* @__PURE__ */ a((n) => {
@@ -510,28 +521,28 @@ const Z = "––", pe = [
510
521
  margin: 0,
511
522
  padding: 0.25
512
523
  },
513
- children: /* @__PURE__ */ w(Rn, { fontSize: "small" })
524
+ children: /* @__PURE__ */ w(Sn, { fontSize: "small" })
514
525
  }
515
526
  )
516
527
  }
517
528
  ),
518
- sx: me(P)
529
+ sx: Ie(nn)
519
530
  }
520
531
  ),
521
532
  /* @__PURE__ */ w(
522
- re,
533
+ ie,
523
534
  {
524
- ampm: A,
525
- value: Ln,
535
+ ampm: p,
536
+ value: Vn,
526
537
  views: N,
527
- onChange: /* @__PURE__ */ a((n, e, o) => Gn(n, o), "onChange"),
528
- timeSteps: ln,
538
+ onChange: /* @__PURE__ */ a((n, e, o) => Jn(n, o), "onChange"),
539
+ timeSteps: fn,
529
540
  slotProps: {
530
541
  digitalClockSectionItem: {
531
- sx: le
542
+ sx: me
532
543
  }
533
544
  },
534
- sx: Ie(P)
545
+ sx: Te(nn)
535
546
  }
536
547
  )
537
548
  ]
@@ -544,6 +555,6 @@ const Z = "––", pe = [
544
555
  ] }) });
545
556
  }, "OwpTimePicker");
546
557
  export {
547
- Xe as OwpTimePicker
558
+ $e as OwpTimePicker
548
559
  };
549
560
  //# sourceMappingURL=OwpTimePicker.js.map