@revolist/ui 4.0.1-rc → 4.0.2-rc

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 (218) hide show
  1. package/README.md +6 -5
  2. package/_chunks/calendar-CpaUK7w1.js +248 -0
  3. package/_chunks/chart-frame-BC99KjGa.js +127 -0
  4. package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
  5. package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
  6. package/_chunks/color-picker-D90Jg-M8.js +138 -0
  7. package/_chunks/compat.module-DDB2pm9O.js +229 -0
  8. package/_chunks/component-YDcfoOLz.js +859 -0
  9. package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
  10. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  11. package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
  12. package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
  13. package/_chunks/date-time-BxPJusp9.js +770 -0
  14. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
  15. package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
  16. package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
  17. package/_chunks/duration-87U2EoMS.js +271 -0
  18. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  19. package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
  20. package/_chunks/framework-mount-C-Zwm44H.js +54 -0
  21. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  22. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  23. package/_chunks/mount-DZe_6VtR.js +90 -0
  24. package/_chunks/native.view-ByyZ1CT5.js +32 -0
  25. package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
  26. package/_chunks/picker-DpP7iQLA.js +122 -0
  27. package/_chunks/preact.module-BBM36DnO.js +290 -0
  28. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
  29. package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
  30. package/_chunks/request-trail-IdNiFvKH.js +347 -0
  31. package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
  32. package/_vendor/preact/LICENSE +21 -0
  33. package/_vendor/preact/compat/src/index.d.ts +353 -0
  34. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  35. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  36. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  37. package/_vendor/preact/src/dom.d.ts +2548 -0
  38. package/_vendor/preact/src/index.d.ts +373 -0
  39. package/_vendor/preact/src/jsx.d.ts +2958 -0
  40. package/activity-message.d.ts +1 -1
  41. package/activity-message.js +16 -16
  42. package/ai/components.d.ts +1 -1
  43. package/ai/index.js +2 -2
  44. package/ai/request-trail.d.ts +1 -1
  45. package/ai/translation-context.d.ts +1 -1
  46. package/alert.d.ts +2 -2
  47. package/assignee/field.d.ts +2 -2
  48. package/assignee/index.js +87 -87
  49. package/assignee/layout.d.ts +2 -2
  50. package/assignee/picker.d.ts +1 -1
  51. package/avatar/index.js +25 -25
  52. package/avatar/index.view.d.ts +1 -1
  53. package/brush-range/component.d.ts +1 -1
  54. package/brush-range/component.js +30 -30
  55. package/buttons/delete-button.js +1 -1
  56. package/buttons/remove-button.d.ts +1 -1
  57. package/buttons/remove-button.js +3 -3
  58. package/buttons/svg-button.d.ts +1 -1
  59. package/buttons/svg-button.js +35 -35
  60. package/calendar/calendar.d.ts +1 -1
  61. package/calendar/calendar.js +1 -1
  62. package/calendar/caption.d.ts +1 -1
  63. package/calendar/day.d.ts +1 -1
  64. package/calendar/day.js +4 -4
  65. package/calendar/header.d.ts +1 -1
  66. package/calendar/header.js +35 -35
  67. package/calendar/index.js +2 -2
  68. package/calendar/month-grid.d.ts +1 -1
  69. package/calendar/month-grid.js +37 -37
  70. package/calendar/picker.d.ts +1 -1
  71. package/calendar/types.d.ts +1 -1
  72. package/calendar/year-grid.d.ts +1 -1
  73. package/calendar/year-grid.js +12 -12
  74. package/checkbox/index.d.ts +2 -2
  75. package/checkbox/index.js +9 -9
  76. package/choice-chips/index.d.ts +1 -1
  77. package/choice-chips/index.js +1 -1
  78. package/color-palette/color-palette.d.ts +1 -1
  79. package/color-palette/color-palette.js +1 -1
  80. package/color-palette/color-picker.d.ts +1 -1
  81. package/color-palette/color-picker.js +2 -2
  82. package/component-catalog.d.ts +19 -19
  83. package/control-presentation.js +18 -18
  84. package/controls.d.ts +4 -4
  85. package/controls.js +1 -1
  86. package/core/editor-commit.d.ts +1 -1
  87. package/core/editor-popup.d.ts +1 -1
  88. package/core/editor-popup.js +1 -1
  89. package/date-time/date-control.d.ts +1 -1
  90. package/date-time/field.d.ts +2 -2
  91. package/date-time/index.js +1 -1
  92. package/date-time/picker.d.ts +1 -1
  93. package/date-time/time-control.d.ts +1 -1
  94. package/date-time/time-selection.d.ts +1 -1
  95. package/date-time/types.d.ts +1 -1
  96. package/dialog/dialog-action-footer.view.d.ts +1 -1
  97. package/dialog/dialog.dom.js +52 -52
  98. package/dialog/dialog.parts.d.ts +18 -18
  99. package/dialog/dialog.parts.js +1 -1
  100. package/dialog/dialog.preact.d.ts +1 -1
  101. package/dialog/dialog.preact.js +6 -6
  102. package/distribution-chart/area-chart.d.ts +1 -1
  103. package/distribution-chart/area-chart.js +25 -25
  104. package/distribution-chart/bar-chart.d.ts +1 -1
  105. package/distribution-chart/bar-chart.js +6 -6
  106. package/distribution-chart/chart-frame.d.ts +1 -1
  107. package/distribution-chart/index.d.ts +1 -1
  108. package/distribution-chart/index.js +6 -6
  109. package/distribution-chart/line-chart.d.ts +1 -1
  110. package/distribution-chart/line-chart.js +9 -9
  111. package/distribution-chart/types.d.ts +1 -1
  112. package/dropdown/content.d.ts +1 -1
  113. package/dropdown/content.js +83 -82
  114. package/dropdown/dropdown.service.d.ts +1 -1
  115. package/dropdown/dropdown.service.js +9 -9
  116. package/dropdown/index.js +1 -1
  117. package/dropdown/lookup-field.d.ts +1 -1
  118. package/dropdown/lookup-field.js +41 -41
  119. package/dropdown/popup.d.ts +1 -1
  120. package/dropdown/popup.js +17 -16
  121. package/duration/controls.d.ts +1 -1
  122. package/duration/index.d.ts +2 -2
  123. package/duration/index.js +1 -1
  124. package/editor-actions.d.ts +1 -1
  125. package/editor-actions.js +21 -20
  126. package/editor-layout/index.d.ts +1 -1
  127. package/editor-layout/index.js +27 -27
  128. package/field-configurator.d.ts +1 -1
  129. package/field-configurator.js +93 -93
  130. package/field-reorder.hook.js +32 -32
  131. package/filter/filters/slider/preact.js +3 -3
  132. package/filter/filters/slider/single.d.ts +1 -1
  133. package/filter/filters/slider/single.js +23 -23
  134. package/filter-badge.d.ts +1 -1
  135. package/filter-badge.js +23 -22
  136. package/filter-controls.d.ts +1 -1
  137. package/filter-controls.js +31 -31
  138. package/form-controls/index.js +20 -20
  139. package/form-controls/presentation.d.ts +1 -1
  140. package/form-controls/presentation.js +44 -44
  141. package/formatting/comparison-preview.d.ts +1 -1
  142. package/formatting/control-tooltip.d.ts +1 -1
  143. package/formatting/icon-controls.d.ts +1 -1
  144. package/formatting/index.js +99 -98
  145. package/formatting/inspector-section.d.ts +1 -1
  146. package/formatting/typography-controls.d.ts +1 -1
  147. package/framework-mount.d.ts +1 -1
  148. package/framework.js +19 -19
  149. package/icons/icon.d.ts +1 -1
  150. package/icons/icon.js +1 -1
  151. package/legend.d.ts +1 -1
  152. package/legend.js +12 -12
  153. package/masked-input/index.d.ts +1 -1
  154. package/masked-input/index.js +109 -109
  155. package/native-control.d.ts +11 -11
  156. package/native-control.js +12 -12
  157. package/native.js +39 -39
  158. package/number-input/index.d.ts +1 -1
  159. package/number-input/index.js +1 -1
  160. package/package.json +1 -2
  161. package/pdf-viewer/component.d.ts +1 -1
  162. package/pdf-viewer/controller.js +1 -1
  163. package/pdf-viewer/header.d.ts +1 -1
  164. package/pdf-viewer/index.js +13 -13
  165. package/pdf-viewer/search-bar.d.ts +1 -1
  166. package/pdf-viewer/status.d.ts +1 -1
  167. package/pdf-viewer/toolbar.d.ts +1 -1
  168. package/pickers.d.ts +1 -1
  169. package/preact-mount.d.ts +1 -1
  170. package/preact-mount.js +1 -1
  171. package/preact.js +14 -14
  172. package/rating-choice.d.ts +1 -1
  173. package/rating-choice.js +1 -1
  174. package/react-adapter.d.ts +1 -1
  175. package/react.js +19 -19
  176. package/reorder-list.d.ts +1 -1
  177. package/reorder-list.js +1 -1
  178. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  179. package/resource-picker/resource-picker-avatar.js +14 -14
  180. package/resource-picker/resource-picker-option.d.ts +1 -1
  181. package/resource-picker/resource-picker-option.js +28 -28
  182. package/resource-picker/resource-picker-popup.d.ts +1 -1
  183. package/resource-picker/resource-picker-popup.js +3 -3
  184. package/resource-picker/resource-picker.d.ts +1 -1
  185. package/resource-picker/resource-picker.js +88 -88
  186. package/rich-text/index.d.ts +1 -1
  187. package/rich-text/index.js +1 -1
  188. package/rich-text/toolbar.d.ts +1 -1
  189. package/search-input/index.js +12 -12
  190. package/segmented-switch/index.d.ts +1 -1
  191. package/segmented-switch/index.js +1 -1
  192. package/status-feedback/render.d.ts +2 -2
  193. package/status-feedback/render.js +13 -13
  194. package/surfaces.js +34 -34
  195. package/svelte.js +2 -2
  196. package/switch/index.js +15 -15
  197. package/time-grid.d.ts +1 -1
  198. package/time-grid.js +58 -58
  199. package/timeline-track/component.d.ts +1 -1
  200. package/timeline-track/index.js +75 -75
  201. package/vue-adapter.d.ts +1 -1
  202. package/vue.d.ts +116 -116
  203. package/vue.js +121 -121
  204. package/_chunks/calendar-BsDxCYhI.js +0 -248
  205. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  206. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  207. package/_chunks/color-picker-BRv-__AM.js +0 -138
  208. package/_chunks/component-D4PH5UZT.js +0 -859
  209. package/_chunks/date-time-DjucJmbc.js +0 -769
  210. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  211. package/_chunks/duration-BCaktcvz.js +0 -270
  212. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  213. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  214. package/_chunks/mount-0-8opf1j.js +0 -90
  215. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  216. package/_chunks/picker-oazJ7sO_.js +0 -121
  217. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  218. package/_chunks/request-trail-D0oVzdRd.js +0 -347
@@ -1,769 +0,0 @@
1
- import { SvgIcon as e } from "../icons/icon.js";
2
- import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
3
- import { Input as r } from "../native-control.js";
4
- import { n as i, z as a } from "./controls-NEL5tDaz.js";
5
- import { createControlId as o } from "../core/control-id.js";
6
- import { EditorList as s, EditorListItem as c } from "../editor-layout/index.js";
7
- import { i as l, s as u } from "./iso-B0YHBK7m.js";
8
- import { f as d, h as f, m as p, p as m } from "./model-mPO2tG2f.js";
9
- import { n as h, t as g } from "./date-control-CYCkb1aQ.js";
10
- import { t as _ } from "./picker-oazJ7sO_.js";
11
- import { t as v } from "./editor-popup-B7fu_A_T.js";
12
- import { n as y } from "./editor-commit-D6Rf5rGz.js";
13
- import { EditorActions as b } from "../editor-actions.js";
14
- import { useEffect as x, useLayoutEffect as S, useMemo as C, useRef as w, useState as T } from "preact/hooks";
15
- import { Fragment as E, jsx as D, jsxs as O } from "preact/jsx-runtime";
16
- //#region ../dates/src/date-controls.ts
17
- var k = /^(\d{4})-(\d{2})-(\d{2})$/, A = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?$/, j = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
18
- function M(e, t, n = "minute") {
19
- if (Number.isNaN(t.getTime())) return "";
20
- let r = `${P(t.getHours())}:${P(t.getMinutes())}${n === "second" ? `:${P(t.getSeconds())}` : ""}`;
21
- if (e === "time") return r;
22
- let i = l(t);
23
- return e === "date" ? i : `${i}T${r}`;
24
- }
25
- function N(e, t, n = /* @__PURE__ */ new Date()) {
26
- if (e === "time") {
27
- let e = j.exec(t);
28
- if (!e) return;
29
- let r = Number(e[1]), i = Number(e[2]), a = Number(e[3] ?? 0);
30
- if (r > 23 || i > 59 || a > 59 || Number.isNaN(n.getTime())) return;
31
- let o = new Date(n.getTime());
32
- return o.setHours(r, i, a, 0), o;
33
- }
34
- let r = e === "date" ? k.exec(t) : A.exec(t);
35
- if (!r) return;
36
- let i = Number(r[1]), a = Number(r[2]), o = Number(r[3]), s = Number(r[4] ?? 0), c = Number(r[5] ?? 0), l = Number(r[6] ?? 0), u = Number((r[7] ?? "").padEnd(3, "0")), d = /* @__PURE__ */ new Date(0);
37
- if (d.setFullYear(i, a - 1, o), d.setHours(s, c, l, u), !(a < 1 || a > 12 || o < 1 || d.getFullYear() !== i || d.getMonth() !== a - 1 || d.getDate() !== o || d.getHours() !== s || d.getMinutes() !== c || d.getSeconds() !== l || d.getMilliseconds() !== u)) return d;
38
- }
39
- function P(e) {
40
- return String(e).padStart(2, "0");
41
- }
42
- //#endregion
43
- //#region ../dates/src/civil-time.ts
44
- var F = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/;
45
- function I(e) {
46
- let t = /* @__PURE__ */ new Date(0);
47
- return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, 0), t.getTime();
48
- }
49
- function L(e) {
50
- let t = F.exec(e);
51
- if (!t) return;
52
- let n = {
53
- year: Number(t[1]),
54
- month: Number(t[2]),
55
- day: Number(t[3]),
56
- hour: Number(t[4]),
57
- minute: Number(t[5]),
58
- second: Number(t[6] ?? 0)
59
- }, r = new Date(I(n)), i = {
60
- year: r.getUTCFullYear(),
61
- month: r.getUTCMonth() + 1,
62
- day: r.getUTCDate(),
63
- hour: r.getUTCHours(),
64
- minute: r.getUTCMinutes(),
65
- second: r.getUTCSeconds()
66
- };
67
- return Object.keys(n).every((e) => n[e] === i[e]) ? n : void 0;
68
- }
69
- //#endregion
70
- //#region ../dates/src/temporal-controls.ts
71
- function R(e) {
72
- return e.split("T")[0];
73
- }
74
- function z(e) {
75
- return e.includes("T") ? e.split("T")[1] : e;
76
- }
77
- function B(e, t, n) {
78
- return n === "datetime" ? `${e}T${t.includes("T") ? z(t) : "00:00"}` : e;
79
- }
80
- function V(e, t, n) {
81
- return n === "datetime" ? `${R(e)}T${t}` : t;
82
- }
83
- function H(e, t) {
84
- return e === "date" ? u(t) : e === "datetime" ? !!L(t.replace(/(\d{2}:\d{2}:\d{2})\.\d{1,3}$/, "$1")) : !!N(e, t);
85
- }
86
- function U(e) {
87
- let t = N("time", e);
88
- return t ? t.getHours() * 3600 + t.getMinutes() * 60 + t.getSeconds() : void 0;
89
- }
90
- function W(e, t) {
91
- let n = U(e);
92
- if (n === void 0) return !1;
93
- let r = t.min ? U(t.min) : void 0, i = t.max ? U(t.max) : void 0;
94
- return (r === void 0 || n >= r) && (i === void 0 || n <= i) && (t.step === void 0 || t.step > 0 && (n - (r ?? 0)) % t.step === 0);
95
- }
96
- function G(e, t, n = "minute", r) {
97
- let i = N("time", e);
98
- return i ? new Intl.DateTimeFormat(r ?? (t === "12h" ? "en-US" : "en-GB"), {
99
- hour: "2-digit",
100
- minute: "2-digit",
101
- ...n === "second" ? { second: "2-digit" } : {},
102
- hourCycle: t === "12h" ? "h12" : "h23"
103
- }).format(i) : e;
104
- }
105
- function K(e, t = "minute", n) {
106
- if (e = e.replace(/[\u200e\u200f\u061c]/g, "").trim(), n) {
107
- let t = new Intl.NumberFormat(n, { useGrouping: !1 });
108
- for (let n = 0; n < 10; n++) e = e.split(t.format(n)).join(String(n));
109
- let r = new Intl.DateTimeFormat(n, {
110
- hour: "numeric",
111
- hourCycle: "h12"
112
- });
113
- for (let [t, n] of [[1, "AM"], [13, "PM"]]) {
114
- let i = r.formatToParts(new Date(2e3, 0, 1, t)).find((e) => e.type === "dayPeriod")?.value;
115
- i && (e = e.replace(i, n));
116
- }
117
- let i = new Intl.DateTimeFormat(n, {
118
- hour: "2-digit",
119
- minute: "2-digit",
120
- second: "2-digit",
121
- hourCycle: "h23"
122
- }).formatToParts(new Date(2e3, 0, 1, 13, 45, 20));
123
- for (let t of i) t.type === "literal" && t.value.trim() && (e = e.split(t.value).join(":"));
124
- e = e.replace(/^\s*(AM|PM)\s*(.*)$/i, "$2 $1");
125
- }
126
- let r = N("time", e.trim());
127
- if (r) return M("time", r, t);
128
- let i = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*([ap])\.?m\.?$/i.exec(e.trim());
129
- if (!i) return;
130
- let a = Number(i[1]);
131
- if (a < 1 || a > 12) return;
132
- let o = N("time", `${String(a % 12 + (i[4].toLowerCase() === "p" ? 12 : 0)).padStart(2, "0")}:${i[2]}:${i[3] ?? "00"}`);
133
- return o ? M("time", o, t) : void 0;
134
- }
135
- //#endregion
136
- //#region ../dates/src/time-selection.ts
137
- function q(e) {
138
- let t = e.min ? U(e.min) : void 0, n = e.max ? U(e.max) : void 0, r = e.step ?? (e.precision === "second" ? 1 : 60);
139
- if (!Number.isFinite(r) || r <= 0) return [];
140
- let i = e.precision === "second" ? 1 : 60, a = [];
141
- for (let e = 0; e < 86400; e += i) (t === void 0 || e >= t) && (n === void 0 || e <= n) && (e - (t ?? 0)) % r === 0 && a.push(e);
142
- return a;
143
- }
144
- function J(e, t = "minute") {
145
- let n = (e) => String(e).padStart(2, "0");
146
- return `${n(Math.floor(e / 3600))}:${n(Math.floor(e / 60) % 60)}${t === "second" ? `:${n(e % 60)}` : ""}`;
147
- }
148
- function Y(e, t) {
149
- return e === "12h" || e === "locale" && !!new Intl.DateTimeFormat(t, { hour: "numeric" }).resolvedOptions().hour12;
150
- }
151
- function ee(e, t) {
152
- return new Intl.DateTimeFormat(t, {
153
- hour: "numeric",
154
- hourCycle: "h12"
155
- }).formatToParts(new Date(2e3, 0, 1, e ? 13 : 1)).find((e) => e.type === "dayPeriod")?.value ?? (e ? "PM" : "AM");
156
- }
157
- function te(e, t, n) {
158
- let r = U(t), i = r ?? e[0] ?? 0, a = Math.floor(i / 3600), o = Math.floor(i / 60) % 60, s = i % 60, c = {
159
- hour: /* @__PURE__ */ new Map(),
160
- minute: /* @__PURE__ */ new Map(),
161
- second: /* @__PURE__ */ new Map(),
162
- period: /* @__PURE__ */ new Map()
163
- }, l = (e, t, n, r) => {
164
- let i = c[e].get(t);
165
- (i === void 0 || Math.abs(n - r) < Math.abs(i - r)) && c[e].set(t, n);
166
- };
167
- for (let t of e) {
168
- let e = Math.floor(t / 3600), r = Math.floor(t / 60) % 60, i = t % 60;
169
- (!n || Math.floor(e / 12) === Math.floor(a / 12)) && l("hour", e, t, e * 3600 + o * 60 + s), e === a && l("minute", r, t, a * 3600 + r * 60 + s), e === a && r === o && l("second", i, t, a * 3600 + o * 60 + i);
170
- let c = Math.floor(e / 12);
171
- l("period", c, t, (a % 12 + c * 12) * 3600 + o * 60 + s);
172
- }
173
- return {
174
- columns: c,
175
- hour: a,
176
- minute: o,
177
- second: s,
178
- period: Math.floor(a / 12),
179
- hasValue: r !== void 0
180
- };
181
- }
182
- //#endregion
183
- //#region src/date-time/types.ts
184
- var X = {
185
- date: "Date",
186
- dates: "Dates",
187
- invalidDate: "Enter a valid date in the indicated format.",
188
- outOfRange: "The date is outside the allowed range.",
189
- disabledDate: "This date is unavailable.",
190
- invalidRange: "Enter a complete range with the start before or equal to the end.",
191
- selectionCount: "The selection does not meet the allowed count or length.",
192
- requiredValue: "A value is required.",
193
- startDate: "Start date",
194
- endDate: "End date",
195
- startTime: "Start time",
196
- endTime: "End time",
197
- time: "Time",
198
- hours: "Hour",
199
- minutes: "Minute",
200
- seconds: "Second",
201
- dayPeriod: "Period",
202
- noTimes: "No available times.",
203
- invalid: "Enter a valid value within the allowed range.",
204
- chooseDate: "Choose date",
205
- chooseTime: "Choose time"
206
- };
207
- function Z(e, t) {
208
- return (e === "time" ? t?.chooseTime ?? t?.chooseDate : t?.chooseDate) ?? (e === "time" ? X.chooseTime : X.chooseDate);
209
- }
210
- //#endregion
211
- //#region src/date-time/validation.ts
212
- function ne(e, t, n = "") {
213
- let { kind: r = "date", selection: i = "single", value: a, calendar: o = {} } = e, s = {
214
- ...X,
215
- ...e.text
216
- }, c = a && !Array.isArray(a) && typeof a == "object" ? a : void 0, l = typeof a == "string" ? a : "", f = c?.from ?? "", h = c?.to ?? "", g = e.required ?? o.required ?? !1, _ = c ? [f, h] : Array.isArray(a) ? a : l ? [l] : [], v = (e) => u(e) && (!o.minDate || e >= o.minDate) && (!o.maxDate || e <= o.maxDate) && !o.isDateDisabled?.(e) && !o.isMonthDisabled?.(d(e, o.calendarSystem)), y = (t) => H(r, t) && (r === "time" || v(R(t))) && (r === "date" || W(z(t), {
217
- min: e.minTime,
218
- max: e.maxTime,
219
- step: e.timeStep
220
- })), b = c && h ? p(R(f), R(h)) : 0, x = i === "multiple" ? _.length : b, S = !_.length && !g || i === "single" || (!o.min || x >= o.min) && (o.max === void 0 || x <= o.max), C = (() => {
221
- if (r === "time" || !c?.to || !o.excludeDisabled || !_.every(y)) return !0;
222
- if (b > 366e3) return !1;
223
- for (let e = R(f); e <= R(h); e = m(e, 1)) if (!v(e)) return !1;
224
- return !0;
225
- })(), w = "", T = r === "time" || _.every((e) => {
226
- let n = R(e);
227
- if (!u(n)) return !1;
228
- let r = o.validateSelection?.(n, {
229
- month: o.month ?? t,
230
- view: o.defaultView ?? "month",
231
- referenceDate: o.referenceDate,
232
- selection: c ? {
233
- from: R(f),
234
- to: R(h || f)
235
- } : {
236
- from: n,
237
- to: n
238
- }
239
- });
240
- return typeof r == "string" && (w = r), r !== !1 && typeof r != "string";
241
- }), E = !n && S && T && C && (!g || _.length > 0) && _.every(y) && (i !== "multiple" || new Set(_).size === _.length) && (!c || !!h && f <= h) && (i !== "multiple" || r === "date"), D = (t) => e.text?.[t] ?? e.text?.invalid ?? s[t] ?? s.invalid, O = r === "time" ? [] : _.map(R);
242
- return {
243
- valid: E,
244
- errorMessage: n || w || (!_.length && g ? D("requiredValue") : c && (!f || !h) ? D("invalidRange") : O.some((e) => !u(e)) ? D("invalidDate") : O.some((e) => o.minDate && e < o.minDate || o.maxDate && e > o.maxDate) ? D("outOfRange") : O.some((e) => !v(e)) || !C ? D("disabledDate") : c && (!h || f > h) ? D("invalidRange") : !S || i === "multiple" && new Set(_).size !== _.length ? D("selectionCount") : s.invalid),
245
- validDate: v
246
- };
247
- }
248
- //#endregion
249
- //#region src/date-time/time-control.tsx
250
- function re({ value: e, label: t, format: n = "locale", precision: i = "minute", locale: a, min: o, max: s, step: c, onChange: l }) {
251
- let [u, d] = T(!1), [f, p] = T("");
252
- if (n === "locale") return /* @__PURE__ */ D(r, {
253
- type: "time",
254
- "aria-label": t,
255
- value: e,
256
- min: o,
257
- max: s,
258
- step: c ?? (i === "second" ? 1 : 60),
259
- onInput: (e) => l(e.currentTarget.value)
260
- });
261
- let m = G(e, n, i, a);
262
- return /* @__PURE__ */ D(r, {
263
- type: "text",
264
- "aria-label": t,
265
- value: u ? f : m,
266
- "aria-invalid": !!e && !W(e, {
267
- min: o,
268
- max: s,
269
- step: c
270
- }),
271
- placeholder: n === "12h" ? "09:00 AM" : "09:00",
272
- onFocus: () => {
273
- d(!0), p(m);
274
- },
275
- onBlur: () => d(!1),
276
- onInput: (e) => {
277
- let t = e.currentTarget.value;
278
- p(t), l(t ? K(t, i, a) ?? t : "");
279
- }
280
- });
281
- }
282
- //#endregion
283
- //#region src/date-time/time-selection.tsx
284
- function ie({ label: e, accessibleLabel: t, values: n, selected: r, choices: i, display: a, onSelect: o }) {
285
- let l = w(null), u = r !== void 0 && i.has(r), d = u ? r : n.find((e) => i.has(e));
286
- S(() => {
287
- let e = l.current;
288
- if (!e) return;
289
- let t = () => {
290
- let t = e.querySelector("[aria-selected=\"true\"], [tabindex=\"0\"]");
291
- t && e.clientHeight && (e.scrollTop = t.offsetTop - (e.clientHeight - t.clientHeight) / 2);
292
- };
293
- t();
294
- let n = new ResizeObserver(t);
295
- return n.observe(e), () => n.disconnect();
296
- }, [r, d]);
297
- let f = (e) => {
298
- let t = i.get(Number(e));
299
- t !== void 0 && o(t);
300
- };
301
- return /* @__PURE__ */ O("div", {
302
- class: "rv-time-selection__column",
303
- children: [/* @__PURE__ */ D("span", {
304
- class: "rv-time-selection__label",
305
- children: e
306
- }), /* @__PURE__ */ D(s, {
307
- label: t,
308
- listRef: l,
309
- variant: "plain",
310
- className: "rv-time-selection__list",
311
- onSelect: f,
312
- children: n.map((e) => /* @__PURE__ */ D(c, {
313
- value: String(e),
314
- selected: r === e && u,
315
- disabled: !i.has(e),
316
- tabIndex: e === d ? 0 : -1,
317
- onClick: () => f(String(e)),
318
- children: a(e)
319
- }, e))
320
- })]
321
- });
322
- }
323
- function Q({ value: e, label: t, text: n, onChange: r, format: i = "locale", precision: a = "minute", locale: o, min: s, max: c, step: l }) {
324
- let u = Y(i, o), d = C(() => q({
325
- min: s,
326
- max: c,
327
- step: l,
328
- precision: a
329
- }), [
330
- s,
331
- c,
332
- l,
333
- a
334
- ]), f = C(() => te(d, e, u), [
335
- d,
336
- e,
337
- u
338
- ]), p = C(() => new Intl.NumberFormat(o, {
339
- minimumIntegerDigits: 2,
340
- useGrouping: !1
341
- }), [o]), m = (e) => r(J(e, a)), h = (e, n, r, i = (e) => p.format(e)) => /* @__PURE__ */ D(ie, {
342
- label: n,
343
- accessibleLabel: `${t}: ${n}`,
344
- values: r,
345
- selected: f.hasValue ? f[e] : void 0,
346
- choices: f.columns[e],
347
- display: i,
348
- onSelect: m
349
- }), g = (e, t = 0) => Array.from({ length: e }, (e, n) => t + n);
350
- return /* @__PURE__ */ O("section", {
351
- class: "rv-time-selection",
352
- children: [
353
- /* @__PURE__ */ O("label", {
354
- class: "rv-time-selection__entry",
355
- children: [/* @__PURE__ */ D("span", { children: t }), /* @__PURE__ */ D(re, {
356
- value: e,
357
- label: t,
358
- format: i,
359
- precision: a,
360
- locale: o,
361
- min: s,
362
- max: c,
363
- step: l,
364
- onChange: r
365
- })]
366
- }),
367
- /* @__PURE__ */ O("div", {
368
- class: `rv-time-selection__columns${a === "second" ? " rv-time-selection__columns--seconds" : ""}`,
369
- children: [
370
- h("hour", n.hours, g(u ? 12 : 24, u ? f.period * 12 : 0), (e) => p.format(u ? e % 12 || 12 : e)),
371
- h("minute", n.minutes, g(60)),
372
- a === "second" && h("second", n.seconds, g(60))
373
- ]
374
- }),
375
- u && /* @__PURE__ */ D("div", {
376
- class: "rv-time-selection__period",
377
- children: h("period", n.dayPeriod, [0, 1], (e) => ee(e, o))
378
- }),
379
- !d.length && /* @__PURE__ */ D("p", {
380
- class: "rv-time-selection__empty",
381
- role: "status",
382
- children: n.noTimes
383
- })
384
- ]
385
- });
386
- }
387
- //#endregion
388
- //#region src/date-time/picker.tsx
389
- function ae(e) {
390
- let { kind: t = "date", selection: n = "single", value: r, onChange: s, calendar: c = {} } = e, l = {
391
- ...X,
392
- ...e.text
393
- }, [p] = T(() => o("rv-date-error")), m = (e) => t === "date" ? e : R(e), h = {
394
- locale: c.locale,
395
- ...typeof e.dateInput == "object" ? e.dateInput : {}
396
- }, [v, y] = T(e.endpoint === "to" ? "to" : void 0), [b, S] = T(""), C = r && !Array.isArray(r) && typeof r == "object" ? r : void 0, w = typeof r == "string" ? r : "", k = Array.isArray(r) ? r : [], A = C?.from ?? "", j = C?.to ?? "", M = R(t === "time" ? f() : e.endpoint === "to" ? j : A || w || k[0] || ""), [N, P] = T(() => c.defaultMonth ?? d(u(M) ? M : f(), c.calendarSystem)), F = e.required ?? c.required ?? !1, { valid: I, errorMessage: L, validDate: H } = ne(e, N, b);
397
- x(() => e.onValidityChange?.(!!I), [I]);
398
- let U = (e) => {
399
- S(""), s(e);
400
- }, W = (r) => {
401
- U(r), t === "date" && n !== "multiple" && ne({
402
- ...e,
403
- value: r
404
- }, N).valid && e.onSelectionComplete?.(r);
405
- }, G = (e) => {
406
- if (!H(e)) return;
407
- let t = d(e, c.calendarSystem);
408
- t !== (c.month ?? N) && (P(t), c.onMonthChange?.(t));
409
- }, K = (e, n) => {
410
- if (typeof n != "string") return;
411
- G(n);
412
- let r = {
413
- from: A,
414
- to: j,
415
- [e]: n ? B(n, e === "from" ? A : j, t) : ""
416
- };
417
- U(!r.from && !r.to ? null : r);
418
- }, q = (t, n, r, i = !0) => /* @__PURE__ */ O("label", {
419
- class: `rv-temporal-picker__time${i ? "" : " rv-temporal-picker__time--single"}`,
420
- children: [i && /* @__PURE__ */ D("span", { children: n }), /* @__PURE__ */ D(re, {
421
- label: n,
422
- value: t ? z(t) : "",
423
- min: e.minTime,
424
- max: e.maxTime,
425
- step: e.timeStep,
426
- precision: e.precision,
427
- format: e.timeFormat,
428
- locale: c.locale,
429
- onChange: r
430
- })]
431
- }), J = {
432
- ...c,
433
- month: c.month ?? N,
434
- onMonthChange: (e) => {
435
- P(e), c.onMonthChange?.(e);
436
- },
437
- required: F,
438
- onInvalidSelection: (e, t) => {
439
- S(e || l.invalid), c.onInvalidSelection?.(e, t);
440
- }
441
- }, Y;
442
- if (n === "multiple") Y = {
443
- ...J,
444
- mode: "multiple",
445
- selected: k.filter(u),
446
- onSelectionChange: (e) => W([...e])
447
- };
448
- else if (n === "range" && !v) Y = {
449
- ...J,
450
- mode: "range",
451
- selected: A && u(R(A)) ? {
452
- from: R(A),
453
- ...j && u(R(j)) ? { to: R(j) } : {}
454
- } : void 0,
455
- onSelectionChange: (e) => W(e ? {
456
- from: B(e.from, A, t),
457
- ...e.to ? { to: B(e.to, j, t) } : {}
458
- } : null)
459
- };
460
- else {
461
- let e = n === "range" ? v === "to" ? j : A : w;
462
- Y = {
463
- ...J,
464
- mode: "single",
465
- selected: e && u(R(e)) ? R(e) : void 0,
466
- onSelectionChange: (r) => {
467
- W(n === "range" ? r ? {
468
- from: A,
469
- to: j,
470
- [v ?? "from"]: B(r, e, t)
471
- } : null : r ? B(r, w, t) : null);
472
- }
473
- };
474
- }
475
- return /* @__PURE__ */ O("div", {
476
- class: `rv-temporal-picker rv-temporal-picker--${t}`,
477
- children: [
478
- e.dateInput === !1 && n === "range" && t !== "time" && /* @__PURE__ */ O("div", {
479
- class: `rv-temporal-picker__endpoints ${e.classNames?.endpoints ?? ""}`,
480
- children: [/* @__PURE__ */ D(i, {
481
- "aria-label": `${l.startDate}: ${A}`,
482
- "aria-pressed": v !== "to",
483
- onClick: () => {
484
- y(void 0), A && P(d(R(A), c.calendarSystem)), S("");
485
- },
486
- children: A ? R(A) : "—"
487
- }), /* @__PURE__ */ D(i, {
488
- "aria-label": `${l.endDate}: ${j}`,
489
- "aria-pressed": v === "to",
490
- onClick: () => {
491
- y("to"), j && P(d(R(j), c.calendarSystem)), S("");
492
- },
493
- children: j ? R(j) : "—"
494
- })]
495
- }),
496
- /* @__PURE__ */ D("div", {
497
- class: "rv-temporal-picker__header",
498
- children: t !== "time" && e.dateInput !== !1 && /* @__PURE__ */ D("div", {
499
- class: `rv-temporal-picker__dates ${n === "range" ? `rv-temporal-picker__endpoints ${e.classNames?.endpoints ?? ""}` : ""}`,
500
- children: n === "range" ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O("div", {
501
- class: "rv-temporal-picker__endpoint",
502
- role: "group",
503
- "aria-label": l.startDate,
504
- children: [/* @__PURE__ */ D(g, {
505
- label: l.startDate,
506
- value: m(A),
507
- options: h,
508
- invalid: !I,
509
- errorId: p,
510
- onFocus: () => y(void 0),
511
- onChange: (e) => K("from", e)
512
- }), t === "datetime" && q(A, l.startTime, (e) => U({
513
- from: V(A, e, t),
514
- ...j ? { to: j } : {}
515
- }), !1)]
516
- }), /* @__PURE__ */ O("div", {
517
- class: "rv-temporal-picker__endpoint",
518
- role: "group",
519
- "aria-label": l.endDate,
520
- children: [/* @__PURE__ */ D(g, {
521
- label: l.endDate,
522
- value: m(j),
523
- options: h,
524
- invalid: !I,
525
- errorId: p,
526
- onFocus: () => y("to"),
527
- onChange: (e) => K("to", e)
528
- }), t === "datetime" && q(j, l.endTime, (e) => U({
529
- from: A,
530
- to: V(j, e, t)
531
- }), !1)]
532
- })] }) : /* @__PURE__ */ D(g, {
533
- label: n === "multiple" ? l.dates : l.date,
534
- value: n === "multiple" ? k : m(w),
535
- multiple: n === "multiple",
536
- options: h,
537
- invalid: !I,
538
- errorId: p,
539
- onChange: (e) => {
540
- typeof e == "string" && G(e), U(Array.isArray(e) ? e : e ? B(e, w, t) : null);
541
- }
542
- })
543
- })
544
- }),
545
- /* @__PURE__ */ O("div", {
546
- class: "rv-temporal-picker__body",
547
- children: [t !== "time" && /* @__PURE__ */ D(_, { ...Y }), t !== "date" && n !== "range" && /* @__PURE__ */ D(Q, {
548
- value: z(w),
549
- label: l.time,
550
- text: l,
551
- format: e.timeFormat,
552
- precision: e.precision,
553
- locale: c.locale,
554
- min: e.minTime,
555
- max: e.maxTime,
556
- step: e.timeStep,
557
- onChange: (e) => U(V(w, e, t))
558
- })]
559
- }),
560
- t !== "date" && n === "range" && (t === "time" || e.dateInput === !1) && /* @__PURE__ */ O("div", {
561
- class: "rv-temporal-picker__times",
562
- children: [t === "time" ? /* @__PURE__ */ D(Q, {
563
- value: z(A),
564
- label: l.startTime,
565
- text: l,
566
- format: e.timeFormat,
567
- precision: e.precision,
568
- locale: c.locale,
569
- min: e.minTime,
570
- max: e.maxTime,
571
- step: e.timeStep,
572
- onChange: (e) => U({
573
- from: e,
574
- ...j ? { to: j } : {}
575
- })
576
- }) : q(A, l.startTime, (e) => U({
577
- from: V(A, e, t),
578
- ...j ? { to: j } : {}
579
- })), t === "time" ? /* @__PURE__ */ D(Q, {
580
- value: z(j),
581
- label: l.endTime,
582
- text: l,
583
- format: e.timeFormat,
584
- precision: e.precision,
585
- locale: c.locale,
586
- min: e.minTime,
587
- max: e.maxTime,
588
- step: e.timeStep,
589
- onChange: (e) => U({
590
- from: A,
591
- to: e
592
- })
593
- }) : q(j, l.endTime, (e) => U({
594
- from: A,
595
- to: V(j, e, t)
596
- }))]
597
- }),
598
- !I && /* @__PURE__ */ D(a, {
599
- tone: "danger",
600
- children: /* @__PURE__ */ D("span", {
601
- id: p,
602
- children: L
603
- })
604
- })
605
- ]
606
- });
607
- }
608
- //#endregion
609
- //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/regular/clock.svg?raw
610
- var oe = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/></svg>";
611
- //#endregion
612
- //#region src/date-time/field.tsx
613
- function $({ value: e, options: t, apply: n, cancel: r, clearable: i = !0 }) {
614
- let [o, s] = T(e), [c, l] = T(!1), [u, d] = T(""), f = (e) => {
615
- s(e), d("");
616
- }, p = t.autoApply !== !1, m = JSON.stringify(o) !== JSON.stringify(e), h = (e) => {
617
- let t = n(e) || "";
618
- return d(t), !t;
619
- }, g = () => c ? h(o) : !1;
620
- return y(() => !m || g(), p), /* @__PURE__ */ O("div", {
621
- class: `rv-temporal-draft${t.kind === "time" ? " rv-temporal-draft--time" : ""}`,
622
- onKeyDown: (e) => {
623
- e.key === "Enter" && !e.isComposing && (e.ctrlKey || e.metaKey || p && e.target instanceof HTMLInputElement) && (e.preventDefault(), g());
624
- },
625
- children: [
626
- /* @__PURE__ */ D(ae, {
627
- ...t,
628
- value: o,
629
- onChange: f,
630
- onValidityChange: l,
631
- onSelectionComplete: p ? h : void 0
632
- }),
633
- u && /* @__PURE__ */ D(a, {
634
- tone: "danger",
635
- children: u
636
- }),
637
- /* @__PURE__ */ D(b, {
638
- text: t.actions,
639
- showConfirm: t.showActions ?? !p,
640
- disabled: !c,
641
- apply: g,
642
- cancel: r,
643
- clear: !i || (t.required ?? t.calendar?.required) ? void 0 : () => {
644
- let e = t.selection === "multiple" ? [] : null;
645
- f(e), p && h(e);
646
- }
647
- })
648
- ]
649
- });
650
- }
651
- function se({ value: t, kind: n = "date", picker: a, onValueChange: o, onInput: s, formatValue: c, parseValue: l, ...u }) {
652
- let d = w(null), f = w(), p = w({
653
- value: t,
654
- kind: n,
655
- picker: a,
656
- onValueChange: o,
657
- input: u
658
- });
659
- return p.current = {
660
- value: t,
661
- kind: n,
662
- picker: a,
663
- onValueChange: o,
664
- input: u
665
- }, S(() => () => f.current?.close(), []), S(() => {
666
- (u.disabled || u.readOnly) && f.current?.close();
667
- }, [u.disabled, u.readOnly]), /* @__PURE__ */ O("span", {
668
- class: "rv-date-time-field",
669
- children: [/* @__PURE__ */ D(r, {
670
- ...u,
671
- type: "text",
672
- value: c?.(t) ?? t,
673
- placeholder: u.placeholder ?? (n === "date" ? "YYYY-MM-DD" : n === "time" ? "HH:mm" : "YYYY-MM-DDTHH:mm"),
674
- onInput: (e) => {
675
- s?.(e);
676
- let t = l ? l(e.currentTarget.value) : e.currentTarget.value;
677
- t !== void 0 && o?.(t);
678
- }
679
- }), /* @__PURE__ */ D(i, {
680
- ref: d,
681
- variant: "ghost",
682
- "aria-label": Z(n, a?.text),
683
- disabled: u.disabled || u.readOnly,
684
- onClick: () => {
685
- d.current && !f.current && (f.current = v(d.current, (e) => /* @__PURE__ */ D($, {
686
- value: t || null,
687
- options: {
688
- ...a,
689
- required: a?.required ?? u.required,
690
- kind: n,
691
- selection: "single"
692
- },
693
- cancel: e,
694
- apply: (t) => {
695
- !p.current.input.disabled && !p.current.input.readOnly && p.current.onValueChange?.(typeof t == "string" ? t : ""), e();
696
- }
697
- }), {
698
- label: Z(n, a?.text),
699
- className: n === "time" ? "rv-editor-popup--time" : n === "datetime" ? "rv-editor-popup--datetime" : void 0,
700
- onClose: () => {
701
- f.current = void 0;
702
- }
703
- }));
704
- },
705
- children: /* @__PURE__ */ D(e, { svg: n === "time" ? oe : h })
706
- })]
707
- });
708
- }
709
- //#endregion
710
- //#region src/date-time/attach.tsx
711
- function ce(r, a, o) {
712
- let s, c = t(r.ownerDocument, /* @__PURE__ */ D(i, {
713
- variant: "ghost",
714
- disabled: r.disabled || r.readOnly,
715
- "aria-label": Z(a.kind ?? "date", a.text),
716
- onClick: () => {
717
- r.disabled || r.readOnly || s || (s = v(r, (e) => /* @__PURE__ */ D($, {
718
- value: r.value || null,
719
- options: {
720
- ...a,
721
- selection: "single",
722
- required: a.required ?? a.calendar?.required ?? r.required
723
- },
724
- cancel: e,
725
- apply: (t) => {
726
- !r.disabled && !r.readOnly && o(typeof t == "string" ? t : ""), e();
727
- }
728
- }), {
729
- className: a.kind === "time" ? "rv-editor-popup--time" : a.kind === "datetime" ? "rv-editor-popup--datetime" : void 0,
730
- label: Z(a.kind ?? "date", a.text),
731
- onClose: () => {
732
- s = void 0;
733
- }
734
- }));
735
- },
736
- children: /* @__PURE__ */ D(e, { svg: a.kind === "time" ? oe : h })
737
- }));
738
- r.after(c);
739
- let l = r.ownerDocument.defaultView?.MutationObserver, u = l ? new l(() => {
740
- c.disabled = r.disabled || r.readOnly, c.disabled && s?.close();
741
- }) : void 0;
742
- return u?.observe(r, {
743
- attributes: !0,
744
- attributeFilter: ["disabled", "readonly"]
745
- }), () => {
746
- u?.disconnect(), s?.close(), n(c), c.remove();
747
- };
748
- }
749
- //#endregion
750
- //#region src/date-time/value.tsx
751
- function le(e, t) {
752
- let n = Number.isFinite(t.maxVisibleDates) ? Math.max(1, Math.floor(t.maxVisibleDates)) : 2, r = t.multiple ? t.values.slice(0, n) : t.values, i = t.values.length - r.length;
753
- return e("span", {
754
- class: "rv-temporal-value",
755
- role: t.fullValue ? "group" : void 0,
756
- dir: t.dir ?? "auto",
757
- title: t.fullValue || void 0,
758
- "data-tooltip": t.fullValue || void 0,
759
- "aria-label": t.fullValue || void 0
760
- }, [...r.map((t) => e("span", {
761
- class: "rv-badge rv-temporal-value__item",
762
- "aria-hidden": "true"
763
- }, t)), i > 0 ? e("span", {
764
- class: "rv-badge rv-temporal-value__more",
765
- "aria-hidden": "true"
766
- }, `+${i}`) : null]);
767
- }
768
- //#endregion
769
- export { ae as a, $ as i, ce as n, X as o, se as r, Z as s, le as t };