@revolist/ui 4.0.2-rc → 4.0.2
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/LICENSE +21 -0
- package/MIGRATION.md +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +405 -265
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-CpaUK7w1.js → calendar-CgXQgkga.js} +28 -18
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/choice-chips-SkllS5Kl.js +126 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BBMFmUNA.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/{color-picker-D90Jg-M8.js → color-picker-BpCTuIdm.js} +77 -72
- package/_chunks/{component-YDcfoOLz.js → component-CfeHXgIw.js} +301 -282
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
- package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-Dcrjsunl.js +118 -0
- package/_chunks/{controls-DIum-E66.js → controls-B_6NJarZ.js} +217 -182
- package/_chunks/{date-control-BJSzu79z.js → date-control-C4h4m75W.js} +1 -1
- package/_chunks/{date-time-BxPJusp9.js → date-time-CTOSbzb0.js} +344 -307
- package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
- package/_chunks/dialog.parts-3w5FR06n.js +131 -0
- package/_chunks/{duration-87U2EoMS.js → duration-Bf2OS1V5.js} +19 -18
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-D5dZRhDe.js +288 -0
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount-Bk4O_T7T.js} +1 -1
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-BRdcG60g.js +267 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/native-control-B_fVA5bL.js +649 -0
- package/_chunks/{number-input-BeIadZuL.js → number-input-CmM6_2vR.js} +7 -7
- package/_chunks/{picker-DpP7iQLA.js → picker-DTqET-2W.js} +2 -2
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/popup-C35Isk7p.js +378 -0
- package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-C-6wcb9U.js} +1 -1
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-DIl1gkV6.js} +1 -1
- package/_chunks/request-trail-DrhdpWiH.js +762 -0
- package/_chunks/rich-text-BnilBbhU.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_chunks/selection-list-tooltips-C5oMJe26.js +42 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/_dialog.scss +55 -21
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_shared/data-query/index.d.ts +2 -2
- package/_shared/data-query/load-options.d.ts +2 -2
- package/_variables.scss +34 -32
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/ai/_chat.scss +227 -0
- package/ai/_style.scss +170 -39
- package/ai/chat.d.ts +65 -0
- package/ai/components.d.ts +34 -5
- package/ai/index.d.ts +3 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +59 -6
- package/ai/prompt-history.d.ts +13 -0
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +83 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +27 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -10
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +34 -35
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +33 -32
- package/badge.d.ts +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +27 -27
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +1 -1
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +2 -1
- package/buttons/svg-button.js +19 -19
- package/calendar/_calendar.scss +27 -26
- package/calendar/calendar.js +1 -1
- package/calendar/header.js +1 -2
- package/calendar/index.js +2 -2
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +6 -24
- package/choice-chips/index.d.ts +3 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +24 -11
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +63 -0
- package/configurator-drop-zone.d.ts +39 -0
- package/configurator-drop-zone.js +66 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-attributes.js +7 -7
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +25 -20
- package/controls.d.ts +19 -7
- package/controls.js +4 -3
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +242 -39
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.d.ts +5 -2
- package/distribution-chart/bar-chart.js +7 -3
- package/distribution-chart/chart-frame.d.ts +2 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.d.ts +2 -1
- package/dropdown/content.js +1 -142
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.types.d.ts +5 -1
- package/dropdown/editor-dropdown.style.scss +54 -16
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.d.ts +5 -0
- package/dropdown/lookup-field.js +2 -1
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -141
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.js +1 -1
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +39 -34
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +39 -1
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +9 -10
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +4 -9
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +53 -45
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +40 -35
- package/formatting/styles.scss +14 -57
- package/framework.js +237 -226
- package/history-controls.d.ts +14 -0
- package/history-controls.js +27 -0
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +1 -1
- package/legend.d.ts +1 -1
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +6 -5
- package/native-control.js +3 -26
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +41 -37
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +88 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +50 -40
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +1 -1
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +205 -45
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +15 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.d.ts +1 -0
- package/react.d.ts +20 -11
- package/react.js +72 -88
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +73 -71
- package/resource-picker/resource-picker.scss +66 -35
- package/rich-text/engine.d.ts +17 -19
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +11 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +6 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +295 -55
- package/rich-text/syntax.d.ts +5 -2
- package/rich-text/toolbar.d.ts +6 -6
- package/rich-text/translations.d.ts +5 -15
- package/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- package/select.d.ts +22 -0
- package/select.js +1 -0
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +1 -1
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +9 -9
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +130 -34
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +78 -17
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +404 -82
- package/styles/_control.scss +42 -12
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -4
- package/styles/_field-configurator.scss +321 -23
- package/styles/_fields-grid.scss +49 -0
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +376 -116
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/configurator-actions.scss +241 -0
- package/styles/pagination.css +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +38 -2
- package/surfaces.js +37 -134
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +44 -32
- package/svelte.d.ts +1 -1
- package/svelte.js +33 -68
- package/switch/index.js +15 -14
- package/time-grid.d.ts +0 -1
- package/time-grid.js +38 -37
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +71 -54
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue.d.ts +51 -35
- package/vue.js +149 -178
- package/_chunks/chart-frame-BC99KjGa.js +0 -127
- package/_chunks/choice-chips-Cs4D-3nH.js +0 -110
- package/_chunks/compat.module-DDB2pm9O.js +0 -229
- package/_chunks/control-tooltip-ztgmsG7H.js +0 -100
- package/_chunks/dialog.parts-DBqo3Qwb.js +0 -134
- package/_chunks/dropdown-voWqmwAe.js +0 -357
- package/_chunks/editor-popup-D3JdS8l3.js +0 -81
- package/_chunks/mount-DZe_6VtR.js +0 -90
- package/_chunks/request-trail-IdNiFvKH.js +0 -347
- package/_chunks/rich-text-BzI1DyfF.js +0 -477
- package/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -12
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/react-native-select.d.ts +0 -6
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
- package/vue-native-select.d.ts +0 -9
|
@@ -1,54 +1,56 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as t, i as n, n as r, r as i, t as a } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as o } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as d
|
|
8
|
-
import
|
|
4
|
+
import { createPreactElement as s, releasePreactElement as c } from "../preact-mount.js";
|
|
5
|
+
import { createControlId as l } from "../core/control-id.js";
|
|
6
|
+
import { SvgIcon as u } from "../icons/icon.js";
|
|
7
|
+
import { n as d } from "./native-control-B_fVA5bL.js";
|
|
8
|
+
import "./chevron-down-GbplLa6s.js";
|
|
9
|
+
import { R as f, t as p } from "./controls-B_6NJarZ.js";
|
|
9
10
|
import { EditorList as m, EditorListItem as h } from "../editor-layout/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as w } from "./
|
|
14
|
-
import { t as T } from "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { t as g } from "./clock-BOhPNlW3.js";
|
|
12
|
+
import { i as _, s as v } from "./iso-B0YHBK7m.js";
|
|
13
|
+
import { f as y, h as b, m as x, p as S } from "./model-mPO2tG2f.js";
|
|
14
|
+
import { n as C, t as w } from "./date-control-C4h4m75W.js";
|
|
15
|
+
import { t as T } from "./picker-DTqET-2W.js";
|
|
16
|
+
import { t as E } from "./editor-popup-ByU7qiub.js";
|
|
17
|
+
import { n as D } from "./editor-commit-Bq3wSgvr.js";
|
|
18
|
+
import { EditorActions as O } from "../editor-actions.js";
|
|
17
19
|
//#region ../dates/src/date-controls.ts
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
+
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}))?$/;
|
|
21
|
+
function M(e, t, n = "minute") {
|
|
20
22
|
if (Number.isNaN(t.getTime())) return "";
|
|
21
|
-
let r = `${
|
|
23
|
+
let r = `${P(t.getHours())}:${P(t.getMinutes())}${n === "second" ? `:${P(t.getSeconds())}` : ""}`;
|
|
22
24
|
if (e === "time") return r;
|
|
23
|
-
let i =
|
|
25
|
+
let i = _(t);
|
|
24
26
|
return e === "date" ? i : `${i}T${r}`;
|
|
25
27
|
}
|
|
26
|
-
function
|
|
28
|
+
function N(e, t, n = /* @__PURE__ */ new Date()) {
|
|
27
29
|
if (e === "time") {
|
|
28
|
-
let e =
|
|
30
|
+
let e = j.exec(t);
|
|
29
31
|
if (!e) return;
|
|
30
32
|
let r = Number(e[1]), i = Number(e[2]), a = Number(e[3] ?? 0);
|
|
31
33
|
if (r > 23 || i > 59 || a > 59 || Number.isNaN(n.getTime())) return;
|
|
32
34
|
let o = new Date(n.getTime());
|
|
33
35
|
return o.setHours(r, i, a, 0), o;
|
|
34
36
|
}
|
|
35
|
-
let r = e === "date" ?
|
|
37
|
+
let r = e === "date" ? k.exec(t) : A.exec(t);
|
|
36
38
|
if (!r) return;
|
|
37
39
|
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);
|
|
38
40
|
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;
|
|
39
41
|
}
|
|
40
|
-
function
|
|
42
|
+
function P(e) {
|
|
41
43
|
return String(e).padStart(2, "0");
|
|
42
44
|
}
|
|
43
45
|
//#endregion
|
|
44
46
|
//#region ../dates/src/civil-time.ts
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
+
var F = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/;
|
|
48
|
+
function I(e) {
|
|
47
49
|
let t = /* @__PURE__ */ new Date(0);
|
|
48
50
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, 0), t.getTime();
|
|
49
51
|
}
|
|
50
|
-
function
|
|
51
|
-
let t =
|
|
52
|
+
function L(e) {
|
|
53
|
+
let t = F.exec(e);
|
|
52
54
|
if (!t) return;
|
|
53
55
|
let n = {
|
|
54
56
|
year: Number(t[1]),
|
|
@@ -57,7 +59,7 @@ function I(e) {
|
|
|
57
59
|
hour: Number(t[4]),
|
|
58
60
|
minute: Number(t[5]),
|
|
59
61
|
second: Number(t[6] ?? 0)
|
|
60
|
-
}, r = new Date(
|
|
62
|
+
}, r = new Date(I(n)), i = {
|
|
61
63
|
year: r.getUTCFullYear(),
|
|
62
64
|
month: r.getUTCMonth() + 1,
|
|
63
65
|
day: r.getUTCDate(),
|
|
@@ -69,23 +71,23 @@ function I(e) {
|
|
|
69
71
|
}
|
|
70
72
|
//#endregion
|
|
71
73
|
//#region ../dates/src/temporal-controls.ts
|
|
72
|
-
function
|
|
74
|
+
function R(e) {
|
|
73
75
|
return e.split("T")[0];
|
|
74
76
|
}
|
|
75
|
-
function
|
|
77
|
+
function z(e) {
|
|
76
78
|
return e.includes("T") ? e.split("T")[1] : e;
|
|
77
79
|
}
|
|
78
|
-
function z(e, t, n) {
|
|
79
|
-
return n === "datetime" ? `${e}T${t.includes("T") ? R(t) : "00:00"}` : e;
|
|
80
|
-
}
|
|
81
80
|
function B(e, t, n) {
|
|
82
|
-
return n === "datetime" ? `${
|
|
81
|
+
return n === "datetime" ? `${e}T${t.includes("T") ? z(t) : "00:00"}` : e;
|
|
83
82
|
}
|
|
84
|
-
function V(e, t) {
|
|
85
|
-
return
|
|
83
|
+
function V(e, t, n) {
|
|
84
|
+
return n === "datetime" ? `${R(e)}T${t}` : t;
|
|
85
|
+
}
|
|
86
|
+
function ee(e, t) {
|
|
87
|
+
return e === "date" ? v(t) : e === "datetime" ? !!L(t.replace(/(\d{2}:\d{2}:\d{2})\.\d{1,3}$/, "$1")) : !!N(e, t);
|
|
86
88
|
}
|
|
87
89
|
function H(e) {
|
|
88
|
-
let t =
|
|
90
|
+
let t = N("time", e);
|
|
89
91
|
return t ? t.getHours() * 3600 + t.getMinutes() * 60 + t.getSeconds() : void 0;
|
|
90
92
|
}
|
|
91
93
|
function U(e, t) {
|
|
@@ -95,7 +97,7 @@ function U(e, t) {
|
|
|
95
97
|
return (r === void 0 || n >= r) && (i === void 0 || n <= i) && (t.step === void 0 || t.step > 0 && (n - (r ?? 0)) % t.step === 0);
|
|
96
98
|
}
|
|
97
99
|
function W(e, t, n = "minute", r) {
|
|
98
|
-
let i =
|
|
100
|
+
let i = N("time", e);
|
|
99
101
|
return i ? new Intl.DateTimeFormat(r ?? (t === "12h" ? "en-US" : "en-GB"), {
|
|
100
102
|
hour: "2-digit",
|
|
101
103
|
minute: "2-digit",
|
|
@@ -124,14 +126,14 @@ function G(e, t = "minute", n) {
|
|
|
124
126
|
for (let t of i) t.type === "literal" && t.value.trim() && (e = e.split(t.value).join(":"));
|
|
125
127
|
e = e.replace(/^\s*(AM|PM)\s*(.*)$/i, "$2 $1");
|
|
126
128
|
}
|
|
127
|
-
let r =
|
|
128
|
-
if (r) return
|
|
129
|
+
let r = N("time", e.trim());
|
|
130
|
+
if (r) return M("time", r, t);
|
|
129
131
|
let i = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*([ap])\.?m\.?$/i.exec(e.trim());
|
|
130
132
|
if (!i) return;
|
|
131
133
|
let a = Number(i[1]);
|
|
132
134
|
if (a < 1 || a > 12) return;
|
|
133
|
-
let o =
|
|
134
|
-
return o ?
|
|
135
|
+
let o = N("time", `${String(a % 12 + (i[4].toLowerCase() === "p" ? 12 : 0)).padStart(2, "0")}:${i[2]}:${i[3] ?? "00"}`);
|
|
136
|
+
return o ? M("time", o, t) : void 0;
|
|
135
137
|
}
|
|
136
138
|
//#endregion
|
|
137
139
|
//#region ../dates/src/time-selection.ts
|
|
@@ -149,13 +151,13 @@ function q(e, t = "minute") {
|
|
|
149
151
|
function J(e, t) {
|
|
150
152
|
return e === "12h" || e === "locale" && !!new Intl.DateTimeFormat(t, { hour: "numeric" }).resolvedOptions().hour12;
|
|
151
153
|
}
|
|
152
|
-
function
|
|
154
|
+
function te(e, t) {
|
|
153
155
|
return new Intl.DateTimeFormat(t, {
|
|
154
156
|
hour: "numeric",
|
|
155
157
|
hourCycle: "h12"
|
|
156
158
|
}).formatToParts(new Date(2e3, 0, 1, e ? 13 : 1)).find((e) => e.type === "dayPeriod")?.value ?? (e ? "PM" : "AM");
|
|
157
159
|
}
|
|
158
|
-
function
|
|
160
|
+
function ne(e, t, n) {
|
|
159
161
|
let r = H(t), i = r ?? e[0] ?? 0, a = Math.floor(i / 3600), o = Math.floor(i / 60) % 60, s = i % 60, c = {
|
|
160
162
|
hour: /* @__PURE__ */ new Map(),
|
|
161
163
|
minute: /* @__PURE__ */ new Map(),
|
|
@@ -206,61 +208,61 @@ var Y = {
|
|
|
206
208
|
chooseTime: "Choose time"
|
|
207
209
|
};
|
|
208
210
|
function X(e, t) {
|
|
209
|
-
return (e === "time" ? t?.chooseTime
|
|
211
|
+
return (e === "time" ? t?.chooseTime : t?.chooseDate) ?? (e === "time" ? Y.chooseTime : Y.chooseDate);
|
|
210
212
|
}
|
|
211
213
|
//#endregion
|
|
212
214
|
//#region src/date-time/validation.ts
|
|
213
|
-
function
|
|
215
|
+
function re(e, t, n = "") {
|
|
214
216
|
let { kind: r = "date", selection: i = "single", value: a, calendar: o = {} } = e, s = {
|
|
215
217
|
...Y,
|
|
216
218
|
...e.text
|
|
217
|
-
}, c = a && !Array.isArray(a) && typeof a == "object" ? a : void 0, l = typeof a == "string" ? a : "", u = c?.from ?? "", d = c?.to ?? "", f = e.required ?? o.required ?? !1, p = c ? [u, d] : Array.isArray(a) ? a : l ? [l] : [], m = (e) =>
|
|
219
|
+
}, c = a && !Array.isArray(a) && typeof a == "object" ? a : void 0, l = typeof a == "string" ? a : "", u = c?.from ?? "", d = c?.to ?? "", f = e.required ?? o.required ?? !1, p = c ? [u, d] : Array.isArray(a) ? a : l ? [l] : [], m = (e) => v(e) && (!o.minDate || e >= o.minDate) && (!o.maxDate || e <= o.maxDate) && !o.isDateDisabled?.(e) && !o.isMonthDisabled?.(y(e, o.calendarSystem)), h = (t) => ee(r, t) && (r === "time" || m(R(t))) && (r === "date" || U(z(t), {
|
|
218
220
|
min: e.minTime,
|
|
219
221
|
max: e.maxTime,
|
|
220
222
|
step: e.timeStep
|
|
221
|
-
})), g = c && d ?
|
|
223
|
+
})), g = c && d ? x(R(u), R(d)) : 0, _ = i === "multiple" ? p.length : g, b = !p.length && !f || i === "single" || (!o.min || _ >= o.min) && (o.max === void 0 || _ <= o.max), C = (() => {
|
|
222
224
|
if (r === "time" || !c?.to || !o.excludeDisabled || !p.every(h)) return !0;
|
|
223
225
|
if (g > 366e3) return !1;
|
|
224
|
-
for (let e =
|
|
226
|
+
for (let e = R(u); e <= R(d); e = S(e, 1)) if (!m(e)) return !1;
|
|
225
227
|
return !0;
|
|
226
228
|
})(), w = "", T = r === "time" || p.every((e) => {
|
|
227
|
-
let n =
|
|
228
|
-
if (!
|
|
229
|
+
let n = R(e);
|
|
230
|
+
if (!v(n)) return !1;
|
|
229
231
|
let r = o.validateSelection?.(n, {
|
|
230
232
|
month: o.month ?? t,
|
|
231
233
|
view: o.defaultView ?? "month",
|
|
232
234
|
referenceDate: o.referenceDate,
|
|
233
235
|
selection: c ? {
|
|
234
|
-
from:
|
|
235
|
-
to:
|
|
236
|
+
from: R(u),
|
|
237
|
+
to: R(d || u)
|
|
236
238
|
} : {
|
|
237
239
|
from: n,
|
|
238
240
|
to: n
|
|
239
241
|
}
|
|
240
242
|
});
|
|
241
243
|
return typeof r == "string" && (w = r), r !== !1 && typeof r != "string";
|
|
242
|
-
}), E = !n &&
|
|
244
|
+
}), E = !n && b && T && C && (!f || p.length > 0) && p.every(h) && (i !== "multiple" || new Set(p).size === p.length) && (!c || !!d && u <= d) && (i !== "multiple" || r === "date"), D = (t) => e.text?.[t] ?? e.text?.invalid ?? s[t] ?? s.invalid, O = r === "time" ? [] : p.map(R);
|
|
243
245
|
return {
|
|
244
246
|
valid: E,
|
|
245
|
-
errorMessage: n || w || (!p.length && f ? D("requiredValue") : c && (!u || !d) ? D("invalidRange") : O.some((e) => !
|
|
247
|
+
errorMessage: n || w || (!p.length && f ? D("requiredValue") : c && (!u || !d) ? D("invalidRange") : O.some((e) => !v(e)) ? D("invalidDate") : O.some((e) => o.minDate && e < o.minDate || o.maxDate && e > o.maxDate) ? D("outOfRange") : O.some((e) => !m(e)) || !C ? D("disabledDate") : c && (!d || u > d) ? D("invalidRange") : !b || i === "multiple" && new Set(p).size !== p.length ? D("selectionCount") : s.invalid),
|
|
246
248
|
validDate: m
|
|
247
249
|
};
|
|
248
250
|
}
|
|
249
251
|
//#endregion
|
|
250
252
|
//#region src/date-time/time-control.tsx
|
|
251
|
-
function
|
|
253
|
+
function ie({ value: e, label: t, format: r = "locale", precision: i = "minute", locale: a, min: s, max: c, step: l, onChange: u }) {
|
|
252
254
|
let [f, p] = n(!1), [m, h] = n("");
|
|
253
|
-
if (r === "locale") return /* @__PURE__ */ o(
|
|
255
|
+
if (r === "locale") return /* @__PURE__ */ o(d, {
|
|
254
256
|
type: "time",
|
|
255
257
|
"aria-label": t,
|
|
256
258
|
value: e,
|
|
257
259
|
min: s,
|
|
258
260
|
max: c,
|
|
259
261
|
step: l ?? (i === "second" ? 1 : 60),
|
|
260
|
-
onInput: (e) =>
|
|
262
|
+
onInput: (e) => u(e.currentTarget.value)
|
|
261
263
|
});
|
|
262
264
|
let g = W(e, r, i, a);
|
|
263
|
-
return /* @__PURE__ */ o(
|
|
265
|
+
return /* @__PURE__ */ o(d, {
|
|
264
266
|
type: "text",
|
|
265
267
|
"aria-label": t,
|
|
266
268
|
value: f ? m : g,
|
|
@@ -276,13 +278,13 @@ function ne({ value: e, label: t, format: r = "locale", precision: i = "minute",
|
|
|
276
278
|
onBlur: () => p(!1),
|
|
277
279
|
onInput: (e) => {
|
|
278
280
|
let t = e.currentTarget.value;
|
|
279
|
-
h(t),
|
|
281
|
+
h(t), u(t ? G(t, i, a) ?? t : "");
|
|
280
282
|
}
|
|
281
283
|
});
|
|
282
284
|
}
|
|
283
285
|
//#endregion
|
|
284
286
|
//#region src/date-time/time-selection.tsx
|
|
285
|
-
function
|
|
287
|
+
function ae({ label: e, accessibleLabel: t, values: n, selected: r, choices: s, display: c, onSelect: l }) {
|
|
286
288
|
let u = a(null), d = r !== void 0 && s.has(r), f = d ? r : n.find((e) => s.has(e));
|
|
287
289
|
i(() => {
|
|
288
290
|
let e = u.current;
|
|
@@ -301,7 +303,7 @@ function re({ label: e, accessibleLabel: t, values: n, selected: r, choices: s,
|
|
|
301
303
|
};
|
|
302
304
|
return /* @__PURE__ */ o("div", {
|
|
303
305
|
class: "rv-time-selection__column",
|
|
304
|
-
children: [/* @__PURE__ */ o("span", {
|
|
306
|
+
children: [e && /* @__PURE__ */ o("span", {
|
|
305
307
|
class: "rv-time-selection__label",
|
|
306
308
|
children: e
|
|
307
309
|
}), /* @__PURE__ */ o(m, {
|
|
@@ -321,401 +323,432 @@ function re({ label: e, accessibleLabel: t, values: n, selected: r, choices: s,
|
|
|
321
323
|
})]
|
|
322
324
|
});
|
|
323
325
|
}
|
|
324
|
-
function
|
|
325
|
-
let
|
|
326
|
-
min:
|
|
327
|
-
max:
|
|
328
|
-
step:
|
|
329
|
-
precision:
|
|
326
|
+
function Z({ value: e, label: i, text: a, onChange: s, format: c = "locale", precision: l = "minute", locale: d, min: f, max: m, step: h, collapsible: g = !1 }) {
|
|
327
|
+
let [_, v] = n(!1), y = t(), b = J(c, d), x = r(() => K({
|
|
328
|
+
min: f,
|
|
329
|
+
max: m,
|
|
330
|
+
step: h,
|
|
331
|
+
precision: l
|
|
330
332
|
}), [
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
]),
|
|
336
|
-
|
|
333
|
+
f,
|
|
334
|
+
m,
|
|
335
|
+
h,
|
|
336
|
+
l
|
|
337
|
+
]), S = r(() => ne(x, e, b), [
|
|
338
|
+
x,
|
|
337
339
|
e,
|
|
338
|
-
|
|
339
|
-
]),
|
|
340
|
+
b
|
|
341
|
+
]), C = r(() => new Intl.NumberFormat(d, {
|
|
340
342
|
minimumIntegerDigits: 2,
|
|
341
343
|
useGrouping: !1
|
|
342
|
-
}), [
|
|
343
|
-
label:
|
|
344
|
-
accessibleLabel: `${
|
|
345
|
-
values:
|
|
346
|
-
selected:
|
|
347
|
-
choices:
|
|
348
|
-
display:
|
|
349
|
-
onSelect:
|
|
350
|
-
}),
|
|
344
|
+
}), [d]), w = (e) => s(q(e, l)), T = (e, t, n, r = (e) => C.format(e)) => /* @__PURE__ */ o(ae, {
|
|
345
|
+
label: e === "period" ? void 0 : t,
|
|
346
|
+
accessibleLabel: `${i}: ${t}`,
|
|
347
|
+
values: n,
|
|
348
|
+
selected: S.hasValue ? S[e] : void 0,
|
|
349
|
+
choices: S.columns[e],
|
|
350
|
+
display: r,
|
|
351
|
+
onSelect: w
|
|
352
|
+
}), E = (e, t = 0) => Array.from({ length: e }, (e, n) => t + n);
|
|
351
353
|
return /* @__PURE__ */ o("section", {
|
|
352
354
|
class: "rv-time-selection",
|
|
353
|
-
children: [
|
|
354
|
-
|
|
355
|
+
children: [/* @__PURE__ */ o("div", {
|
|
356
|
+
class: "rv-time-selection__entry-row",
|
|
357
|
+
children: [/* @__PURE__ */ o("label", {
|
|
355
358
|
class: "rv-time-selection__entry",
|
|
356
|
-
children: [/* @__PURE__ */ o("span", { children:
|
|
359
|
+
children: [/* @__PURE__ */ o("span", { children: i }), /* @__PURE__ */ o(ie, {
|
|
357
360
|
value: e,
|
|
358
|
-
label:
|
|
359
|
-
format:
|
|
360
|
-
precision:
|
|
361
|
-
locale:
|
|
362
|
-
min:
|
|
363
|
-
max:
|
|
364
|
-
step:
|
|
365
|
-
onChange:
|
|
361
|
+
label: i,
|
|
362
|
+
format: c,
|
|
363
|
+
precision: l,
|
|
364
|
+
locale: d,
|
|
365
|
+
min: f,
|
|
366
|
+
max: m,
|
|
367
|
+
step: h,
|
|
368
|
+
onChange: s
|
|
366
369
|
})]
|
|
367
|
-
}),
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
})
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
370
|
+
}), g && /* @__PURE__ */ o(p, {
|
|
371
|
+
variant: "ghost",
|
|
372
|
+
className: "rv-time-selection__toggle",
|
|
373
|
+
"aria-label": a.chooseTime ?? a.time,
|
|
374
|
+
"aria-expanded": _,
|
|
375
|
+
"aria-controls": _ ? y : void 0,
|
|
376
|
+
onClick: () => v(!_),
|
|
377
|
+
children: /* @__PURE__ */ o(u, { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 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=\"M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z\"/></svg>" })
|
|
378
|
+
})]
|
|
379
|
+
}), (!g || _) && /* @__PURE__ */ o("div", {
|
|
380
|
+
id: y,
|
|
381
|
+
class: "rv-time-selection__clock",
|
|
382
|
+
children: [
|
|
383
|
+
/* @__PURE__ */ o("div", {
|
|
384
|
+
class: `rv-time-selection__columns${l === "second" ? " rv-time-selection__columns--seconds" : ""}`,
|
|
385
|
+
children: [
|
|
386
|
+
T("hour", a.hours, E(b ? 12 : 24, b ? S.period * 12 : 0), (e) => C.format(b ? e % 12 || 12 : e)),
|
|
387
|
+
T("minute", a.minutes, E(60)),
|
|
388
|
+
l === "second" && T("second", a.seconds, E(60))
|
|
389
|
+
]
|
|
390
|
+
}),
|
|
391
|
+
b && /* @__PURE__ */ o("div", {
|
|
392
|
+
class: "rv-time-selection__period",
|
|
393
|
+
children: T("period", a.dayPeriod, [0, 1], (e) => te(e, d))
|
|
394
|
+
}),
|
|
395
|
+
!x.length && /* @__PURE__ */ o("p", {
|
|
396
|
+
class: "rv-time-selection__empty",
|
|
397
|
+
role: "status",
|
|
398
|
+
children: a.noTimes
|
|
399
|
+
})
|
|
400
|
+
]
|
|
401
|
+
})]
|
|
386
402
|
});
|
|
387
403
|
}
|
|
388
404
|
//#endregion
|
|
389
405
|
//#region src/date-time/picker.tsx
|
|
390
|
-
function
|
|
391
|
-
let { kind:
|
|
406
|
+
function oe(t) {
|
|
407
|
+
let { kind: r = "date", selection: a = "single", value: s, onChange: c, calendar: u = {} } = t, d = (u.numberOfMonths ?? 1) >= 2, m = {
|
|
392
408
|
...Y,
|
|
393
|
-
...
|
|
394
|
-
}, [
|
|
395
|
-
locale:
|
|
396
|
-
...typeof
|
|
397
|
-
}, [
|
|
398
|
-
|
|
399
|
-
let H = (e) => {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
H(e), i === "date" && a !== "multiple" && Z({
|
|
403
|
-
...r,
|
|
409
|
+
...t.text
|
|
410
|
+
}, [h] = n(() => l("rv-date-error")), g = (e) => r === "date" ? e : R(e), _ = {
|
|
411
|
+
locale: u.locale,
|
|
412
|
+
...typeof t.dateInput == "object" ? t.dateInput : {}
|
|
413
|
+
}, [x, S] = n(t.endpoint === "to" ? "to" : void 0), [C, E] = n(""), D = s && !Array.isArray(s) && typeof s == "object" ? s : void 0, O = typeof s == "string" ? s : "", k = Array.isArray(s) ? s : [], A = D?.from ?? "", j = D?.to ?? "", M = R(r === "time" ? b() : t.endpoint === "to" ? j : A || O || k[0] || ""), [N, P] = n(() => u.defaultMonth ?? y(v(M) ? M : b(), u.calendarSystem)), F = t.required ?? u.required ?? !1, { valid: I, errorMessage: L, validDate: ee } = re(t, N, C);
|
|
414
|
+
i(() => t.onValidityChange?.(!!I), [I]);
|
|
415
|
+
let H = (e, n = !1) => {
|
|
416
|
+
E(""), c(e), (t.onValidChange || n) && re({
|
|
417
|
+
...t,
|
|
404
418
|
value: e
|
|
405
|
-
},
|
|
419
|
+
}, N).valid && (t.onValidChange?.(e), n && t.onSelectionComplete?.(e));
|
|
420
|
+
}, U = (e) => {
|
|
421
|
+
H(e, r === "date" && a !== "multiple");
|
|
406
422
|
}, W = (e) => {
|
|
407
|
-
if (!
|
|
408
|
-
let t =
|
|
409
|
-
t !== (
|
|
423
|
+
if (!ee(e)) return;
|
|
424
|
+
let t = y(e, u.calendarSystem);
|
|
425
|
+
t !== (u.month ?? N) && (P(t), u.onMonthChange?.(t));
|
|
410
426
|
}, G = (e, t) => {
|
|
411
427
|
if (typeof t != "string") return;
|
|
412
428
|
W(t);
|
|
413
429
|
let n = {
|
|
414
|
-
from:
|
|
415
|
-
to:
|
|
416
|
-
[e]: t ?
|
|
430
|
+
from: A,
|
|
431
|
+
to: j,
|
|
432
|
+
[e]: t ? B(t, e === "from" ? A : j, r) : ""
|
|
417
433
|
};
|
|
418
434
|
H(!n.from && !n.to ? null : n);
|
|
419
|
-
}, K = (e,
|
|
435
|
+
}, K = (e, n, r, i = !0) => /* @__PURE__ */ o("label", {
|
|
420
436
|
class: `rv-temporal-picker__time${i ? "" : " rv-temporal-picker__time--single"}`,
|
|
421
|
-
children: [i && /* @__PURE__ */ o("span", { children:
|
|
422
|
-
label:
|
|
423
|
-
value: e ?
|
|
424
|
-
min:
|
|
425
|
-
max:
|
|
426
|
-
step:
|
|
427
|
-
precision:
|
|
428
|
-
format:
|
|
429
|
-
locale:
|
|
430
|
-
onChange:
|
|
437
|
+
children: [i && /* @__PURE__ */ o("span", { children: n }), /* @__PURE__ */ o(ie, {
|
|
438
|
+
label: n,
|
|
439
|
+
value: e ? z(e) : "",
|
|
440
|
+
min: t.minTime,
|
|
441
|
+
max: t.maxTime,
|
|
442
|
+
step: t.timeStep,
|
|
443
|
+
precision: t.precision,
|
|
444
|
+
format: t.timeFormat,
|
|
445
|
+
locale: u.locale,
|
|
446
|
+
onChange: r
|
|
431
447
|
})]
|
|
432
448
|
}), q = {
|
|
433
|
-
...
|
|
434
|
-
month:
|
|
449
|
+
...u,
|
|
450
|
+
month: u.month ?? N,
|
|
435
451
|
onMonthChange: (e) => {
|
|
436
|
-
|
|
452
|
+
P(e), u.onMonthChange?.(e);
|
|
437
453
|
},
|
|
438
|
-
required:
|
|
454
|
+
required: F,
|
|
439
455
|
onInvalidSelection: (e, t) => {
|
|
440
|
-
|
|
456
|
+
E(e || m.invalid), u.onInvalidSelection?.(e, t);
|
|
441
457
|
}
|
|
442
458
|
}, J;
|
|
443
459
|
if (a === "multiple") J = {
|
|
444
460
|
...q,
|
|
445
461
|
mode: "multiple",
|
|
446
|
-
selected:
|
|
462
|
+
selected: k.filter(v),
|
|
447
463
|
onSelectionChange: (e) => U([...e])
|
|
448
464
|
};
|
|
449
|
-
else if (a === "range" && !
|
|
465
|
+
else if (a === "range" && !x) J = {
|
|
450
466
|
...q,
|
|
451
467
|
mode: "range",
|
|
452
|
-
selected:
|
|
453
|
-
from:
|
|
454
|
-
...
|
|
468
|
+
selected: A && v(R(A)) ? {
|
|
469
|
+
from: R(A),
|
|
470
|
+
...j && v(R(j)) ? { to: R(j) } : {}
|
|
455
471
|
} : void 0,
|
|
456
472
|
onSelectionChange: (e) => U(e ? {
|
|
457
|
-
from:
|
|
458
|
-
...e.to ? { to:
|
|
473
|
+
from: B(e.from, A, r),
|
|
474
|
+
...e.to ? { to: B(e.to, j, r) } : {}
|
|
459
475
|
} : null)
|
|
460
476
|
};
|
|
461
477
|
else {
|
|
462
|
-
let e = a === "range" ?
|
|
478
|
+
let e = a === "range" ? x === "to" ? j : A : O;
|
|
463
479
|
J = {
|
|
464
480
|
...q,
|
|
465
481
|
mode: "single",
|
|
466
|
-
selected: e &&
|
|
482
|
+
selected: e && v(R(e)) ? R(e) : void 0,
|
|
467
483
|
onSelectionChange: (t) => {
|
|
468
484
|
U(a === "range" ? t ? {
|
|
469
|
-
from:
|
|
470
|
-
to:
|
|
471
|
-
[
|
|
472
|
-
} : null : t ?
|
|
485
|
+
from: A,
|
|
486
|
+
to: j,
|
|
487
|
+
[x ?? "from"]: B(t, e, r)
|
|
488
|
+
} : null : t ? B(t, O, r) : null);
|
|
473
489
|
}
|
|
474
490
|
};
|
|
475
491
|
}
|
|
476
492
|
return /* @__PURE__ */ o("div", {
|
|
477
|
-
class: `rv-temporal-picker rv-temporal-picker--${
|
|
493
|
+
class: `rv-temporal-picker rv-temporal-picker--${r}${d ? " rv-temporal-picker--multi-month" : ""}`,
|
|
478
494
|
children: [
|
|
479
|
-
|
|
480
|
-
class: `rv-temporal-picker__endpoints ${
|
|
481
|
-
children: [/* @__PURE__ */ o(
|
|
482
|
-
"aria-label": `${
|
|
483
|
-
"aria-pressed":
|
|
495
|
+
t.dateInput === !1 && a === "range" && r !== "time" && /* @__PURE__ */ o("div", {
|
|
496
|
+
class: `rv-temporal-picker__endpoints ${t.classNames?.endpoints ?? ""}`,
|
|
497
|
+
children: [/* @__PURE__ */ o(p, {
|
|
498
|
+
"aria-label": `${m.startDate}: ${A}`,
|
|
499
|
+
"aria-pressed": x !== "to",
|
|
484
500
|
onClick: () => {
|
|
485
|
-
|
|
501
|
+
S(void 0), A && P(y(R(A), u.calendarSystem)), E("");
|
|
486
502
|
},
|
|
487
|
-
children:
|
|
488
|
-
}), /* @__PURE__ */ o(
|
|
489
|
-
"aria-label": `${
|
|
490
|
-
"aria-pressed":
|
|
503
|
+
children: A ? R(A) : "—"
|
|
504
|
+
}), /* @__PURE__ */ o(p, {
|
|
505
|
+
"aria-label": `${m.endDate}: ${j}`,
|
|
506
|
+
"aria-pressed": x === "to",
|
|
491
507
|
onClick: () => {
|
|
492
|
-
|
|
508
|
+
S("to"), j && P(y(R(j), u.calendarSystem)), E("");
|
|
493
509
|
},
|
|
494
|
-
children:
|
|
510
|
+
children: j ? R(j) : "—"
|
|
495
511
|
})]
|
|
496
512
|
}),
|
|
497
513
|
/* @__PURE__ */ o("div", {
|
|
498
514
|
class: "rv-temporal-picker__header",
|
|
499
|
-
children:
|
|
500
|
-
class: `rv-temporal-picker__dates ${a === "range" ? `rv-temporal-picker__endpoints ${
|
|
515
|
+
children: r !== "time" && t.dateInput !== !1 && /* @__PURE__ */ o("div", {
|
|
516
|
+
class: `rv-temporal-picker__dates ${a === "range" ? `rv-temporal-picker__endpoints ${t.classNames?.endpoints ?? ""}` : ""}`,
|
|
501
517
|
children: a === "range" ? /* @__PURE__ */ o(e, { children: [/* @__PURE__ */ o("div", {
|
|
502
518
|
class: "rv-temporal-picker__endpoint",
|
|
503
519
|
role: "group",
|
|
504
|
-
"aria-label":
|
|
505
|
-
children: [/* @__PURE__ */ o(
|
|
506
|
-
label:
|
|
507
|
-
value:
|
|
508
|
-
options:
|
|
509
|
-
invalid: !
|
|
510
|
-
errorId:
|
|
511
|
-
onFocus: () =>
|
|
520
|
+
"aria-label": m.startDate,
|
|
521
|
+
children: [/* @__PURE__ */ o(w, {
|
|
522
|
+
label: m.startDate,
|
|
523
|
+
value: g(A),
|
|
524
|
+
options: _,
|
|
525
|
+
invalid: !I,
|
|
526
|
+
errorId: h,
|
|
527
|
+
onFocus: () => S(void 0),
|
|
512
528
|
onChange: (e) => G("from", e)
|
|
513
|
-
}),
|
|
514
|
-
from:
|
|
515
|
-
...
|
|
529
|
+
}), r === "datetime" && K(A, m.startTime, (e) => H({
|
|
530
|
+
from: V(A, e, r),
|
|
531
|
+
...j ? { to: j } : {}
|
|
516
532
|
}), !1)]
|
|
517
533
|
}), /* @__PURE__ */ o("div", {
|
|
518
534
|
class: "rv-temporal-picker__endpoint",
|
|
519
535
|
role: "group",
|
|
520
|
-
"aria-label":
|
|
521
|
-
children: [/* @__PURE__ */ o(
|
|
522
|
-
label:
|
|
523
|
-
value:
|
|
524
|
-
options:
|
|
525
|
-
invalid: !
|
|
526
|
-
errorId:
|
|
527
|
-
onFocus: () =>
|
|
536
|
+
"aria-label": m.endDate,
|
|
537
|
+
children: [/* @__PURE__ */ o(w, {
|
|
538
|
+
label: m.endDate,
|
|
539
|
+
value: g(j),
|
|
540
|
+
options: _,
|
|
541
|
+
invalid: !I,
|
|
542
|
+
errorId: h,
|
|
543
|
+
onFocus: () => S("to"),
|
|
528
544
|
onChange: (e) => G("to", e)
|
|
529
|
-
}),
|
|
530
|
-
from:
|
|
531
|
-
to:
|
|
545
|
+
}), r === "datetime" && K(j, m.endTime, (e) => H({
|
|
546
|
+
from: A,
|
|
547
|
+
to: V(j, e, r)
|
|
532
548
|
}), !1)]
|
|
533
|
-
})] }) : /* @__PURE__ */ o(
|
|
534
|
-
label: a === "multiple" ?
|
|
535
|
-
value: a === "multiple" ?
|
|
549
|
+
})] }) : /* @__PURE__ */ o(w, {
|
|
550
|
+
label: a === "multiple" ? m.dates : m.date,
|
|
551
|
+
value: a === "multiple" ? k : g(O),
|
|
536
552
|
multiple: a === "multiple",
|
|
537
|
-
options:
|
|
538
|
-
invalid: !
|
|
539
|
-
errorId:
|
|
553
|
+
options: _,
|
|
554
|
+
invalid: !I,
|
|
555
|
+
errorId: h,
|
|
540
556
|
onChange: (e) => {
|
|
541
|
-
typeof e == "string" && W(e), H(Array.isArray(e) ? e : e ?
|
|
557
|
+
typeof e == "string" && W(e), H(Array.isArray(e) ? e : e ? B(e, O, r) : null);
|
|
542
558
|
}
|
|
543
559
|
})
|
|
544
560
|
})
|
|
545
561
|
}),
|
|
546
562
|
/* @__PURE__ */ o("div", {
|
|
547
563
|
class: "rv-temporal-picker__body",
|
|
548
|
-
children: [
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
564
|
+
children: [r !== "time" && /* @__PURE__ */ o(T, { ...J }), r !== "date" && a !== "range" && /* @__PURE__ */ o(Z, {
|
|
565
|
+
collapsible: r === "datetime" && d,
|
|
566
|
+
value: z(O),
|
|
567
|
+
label: m.time,
|
|
568
|
+
text: m,
|
|
569
|
+
format: t.timeFormat,
|
|
570
|
+
precision: t.precision,
|
|
571
|
+
locale: u.locale,
|
|
572
|
+
min: t.minTime,
|
|
573
|
+
max: t.maxTime,
|
|
574
|
+
step: t.timeStep,
|
|
575
|
+
onChange: (e) => H(V(O, e, r))
|
|
559
576
|
})]
|
|
560
577
|
}),
|
|
561
|
-
|
|
578
|
+
r !== "date" && a === "range" && (r === "time" || t.dateInput === !1) && /* @__PURE__ */ o("div", {
|
|
562
579
|
class: "rv-temporal-picker__times",
|
|
563
|
-
children: [
|
|
564
|
-
value:
|
|
565
|
-
label:
|
|
566
|
-
text:
|
|
567
|
-
format:
|
|
568
|
-
precision:
|
|
569
|
-
locale:
|
|
570
|
-
min:
|
|
571
|
-
max:
|
|
572
|
-
step:
|
|
580
|
+
children: [r === "time" ? /* @__PURE__ */ o(Z, {
|
|
581
|
+
value: z(A),
|
|
582
|
+
label: m.startTime,
|
|
583
|
+
text: m,
|
|
584
|
+
format: t.timeFormat,
|
|
585
|
+
precision: t.precision,
|
|
586
|
+
locale: u.locale,
|
|
587
|
+
min: t.minTime,
|
|
588
|
+
max: t.maxTime,
|
|
589
|
+
step: t.timeStep,
|
|
573
590
|
onChange: (e) => H({
|
|
574
591
|
from: e,
|
|
575
|
-
...
|
|
592
|
+
...j ? { to: j } : {}
|
|
576
593
|
})
|
|
577
|
-
}) : K(
|
|
578
|
-
from:
|
|
579
|
-
...
|
|
580
|
-
})),
|
|
581
|
-
value:
|
|
582
|
-
label:
|
|
583
|
-
text:
|
|
584
|
-
format:
|
|
585
|
-
precision:
|
|
586
|
-
locale:
|
|
587
|
-
min:
|
|
588
|
-
max:
|
|
589
|
-
step:
|
|
594
|
+
}) : K(A, m.startTime, (e) => H({
|
|
595
|
+
from: V(A, e, r),
|
|
596
|
+
...j ? { to: j } : {}
|
|
597
|
+
})), r === "time" ? /* @__PURE__ */ o(Z, {
|
|
598
|
+
value: z(j),
|
|
599
|
+
label: m.endTime,
|
|
600
|
+
text: m,
|
|
601
|
+
format: t.timeFormat,
|
|
602
|
+
precision: t.precision,
|
|
603
|
+
locale: u.locale,
|
|
604
|
+
min: t.minTime,
|
|
605
|
+
max: t.maxTime,
|
|
606
|
+
step: t.timeStep,
|
|
590
607
|
onChange: (e) => H({
|
|
591
|
-
from:
|
|
608
|
+
from: A,
|
|
592
609
|
to: e
|
|
593
610
|
})
|
|
594
|
-
}) : K(
|
|
595
|
-
from:
|
|
596
|
-
to:
|
|
611
|
+
}) : K(j, m.endTime, (e) => H({
|
|
612
|
+
from: A,
|
|
613
|
+
to: V(j, e, r)
|
|
597
614
|
}))]
|
|
598
615
|
}),
|
|
599
|
-
!
|
|
616
|
+
!I && /* @__PURE__ */ o(f, {
|
|
600
617
|
tone: "danger",
|
|
601
618
|
children: /* @__PURE__ */ o("span", {
|
|
602
|
-
id:
|
|
603
|
-
children:
|
|
619
|
+
id: h,
|
|
620
|
+
children: L
|
|
604
621
|
})
|
|
605
622
|
})
|
|
606
623
|
]
|
|
607
624
|
});
|
|
608
625
|
}
|
|
609
626
|
//#endregion
|
|
610
|
-
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/regular/clock.svg?raw
|
|
611
|
-
var ae = "<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>";
|
|
612
|
-
//#endregion
|
|
613
627
|
//#region src/date-time/field.tsx
|
|
614
|
-
function
|
|
615
|
-
let [
|
|
616
|
-
|
|
617
|
-
},
|
|
628
|
+
function Q({ value: e, options: t, apply: r, cancel: i, onValidChange: a, clearable: s = !0 }) {
|
|
629
|
+
let [c, l] = n(e), [u, d] = n(!1), [p, m] = n(""), h = (e) => {
|
|
630
|
+
l(e), m("");
|
|
631
|
+
}, g = t.autoApply !== !1, _ = JSON.stringify(c) !== JSON.stringify(e), v = (e) => {
|
|
618
632
|
let t = r(e) || "";
|
|
619
|
-
return
|
|
620
|
-
},
|
|
621
|
-
return
|
|
633
|
+
return m(t), !t;
|
|
634
|
+
}, y = () => u ? v(c) : !1;
|
|
635
|
+
return D(() => !_ || y(), g), /* @__PURE__ */ o("div", {
|
|
622
636
|
class: `rv-temporal-draft${t.kind === "time" ? " rv-temporal-draft--time" : ""}`,
|
|
623
637
|
onKeyDown: (e) => {
|
|
624
|
-
e.key === "Enter" && !e.isComposing && (e.ctrlKey || e.metaKey ||
|
|
638
|
+
e.key === "Enter" && !e.isComposing && (e.ctrlKey || e.metaKey || g && e.target instanceof HTMLInputElement) && (e.preventDefault(), y());
|
|
625
639
|
},
|
|
626
640
|
children: [
|
|
627
|
-
/* @__PURE__ */ o(
|
|
641
|
+
/* @__PURE__ */ o(oe, {
|
|
628
642
|
...t,
|
|
629
|
-
value:
|
|
630
|
-
onChange:
|
|
631
|
-
|
|
632
|
-
|
|
643
|
+
value: c,
|
|
644
|
+
onChange: h,
|
|
645
|
+
onValidChange: a,
|
|
646
|
+
onValidityChange: d,
|
|
647
|
+
onSelectionComplete: g ? v : void 0
|
|
633
648
|
}),
|
|
634
|
-
|
|
649
|
+
p && /* @__PURE__ */ o(f, {
|
|
635
650
|
tone: "danger",
|
|
636
|
-
children:
|
|
651
|
+
children: p
|
|
637
652
|
}),
|
|
638
|
-
/* @__PURE__ */ o(
|
|
653
|
+
/* @__PURE__ */ o(O, {
|
|
639
654
|
text: t.actions,
|
|
640
|
-
showConfirm: t.showActions ?? !
|
|
641
|
-
disabled: !
|
|
642
|
-
apply:
|
|
655
|
+
showConfirm: t.showActions ?? !g,
|
|
656
|
+
disabled: !u,
|
|
657
|
+
apply: y,
|
|
643
658
|
cancel: i,
|
|
644
|
-
clear: !
|
|
659
|
+
clear: !s || (t.required ?? t.calendar?.required) ? void 0 : () => {
|
|
645
660
|
let e = t.selection === "multiple" ? [] : null;
|
|
646
|
-
|
|
661
|
+
h(e), g && v(e);
|
|
647
662
|
}
|
|
648
663
|
})
|
|
649
664
|
]
|
|
650
665
|
});
|
|
651
666
|
}
|
|
652
|
-
function
|
|
653
|
-
let
|
|
667
|
+
function se({ value: e, kind: t = "date", picker: n, livePickerUpdates: r, onValueChange: s, onInput: c, formatValue: l, parseValue: f, ...m }) {
|
|
668
|
+
let h = a(null), _ = a(), v = a({
|
|
654
669
|
value: e,
|
|
655
670
|
kind: t,
|
|
656
671
|
picker: n,
|
|
657
|
-
onValueChange:
|
|
658
|
-
input:
|
|
672
|
+
onValueChange: s,
|
|
673
|
+
input: m
|
|
659
674
|
});
|
|
660
|
-
return
|
|
675
|
+
return v.current = {
|
|
661
676
|
value: e,
|
|
662
677
|
kind: t,
|
|
663
678
|
picker: n,
|
|
664
|
-
onValueChange:
|
|
665
|
-
input:
|
|
666
|
-
}, i(() => () =>
|
|
667
|
-
(
|
|
668
|
-
}, [
|
|
679
|
+
onValueChange: s,
|
|
680
|
+
input: m
|
|
681
|
+
}, i(() => () => _.current?.close(), []), i(() => {
|
|
682
|
+
(m.disabled || m.readOnly) && _.current?.close();
|
|
683
|
+
}, [m.disabled, m.readOnly]), /* @__PURE__ */ o("span", {
|
|
669
684
|
class: "rv-date-time-field",
|
|
670
|
-
children: [/* @__PURE__ */ o(
|
|
671
|
-
...
|
|
685
|
+
children: [/* @__PURE__ */ o(d, {
|
|
686
|
+
...m,
|
|
672
687
|
type: "text",
|
|
673
688
|
value: l?.(e) ?? e,
|
|
674
|
-
placeholder:
|
|
689
|
+
placeholder: m.placeholder ?? (t === "date" ? "YYYY-MM-DD" : t === "time" ? "HH:mm" : "YYYY-MM-DDTHH:mm"),
|
|
675
690
|
onInput: (e) => {
|
|
676
691
|
c?.(e);
|
|
677
692
|
let t = f ? f(e.currentTarget.value) : e.currentTarget.value;
|
|
678
|
-
t !== void 0 &&
|
|
693
|
+
t !== void 0 && s?.(t);
|
|
679
694
|
}
|
|
680
|
-
}), /* @__PURE__ */ o(
|
|
681
|
-
ref:
|
|
695
|
+
}), /* @__PURE__ */ o(p, {
|
|
696
|
+
ref: h,
|
|
682
697
|
variant: "ghost",
|
|
683
698
|
"aria-label": X(t, n?.text),
|
|
684
|
-
disabled:
|
|
699
|
+
disabled: m.disabled || m.readOnly,
|
|
685
700
|
onClick: () => {
|
|
686
|
-
|
|
701
|
+
if (!h.current) return;
|
|
702
|
+
if (_.current) {
|
|
703
|
+
_.current.close();
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
let i, a = (e) => {
|
|
707
|
+
let t = typeof e == "string" ? e : "";
|
|
708
|
+
t === i || v.current.input.disabled || v.current.input.readOnly || (i = t, v.current.onValueChange?.(t));
|
|
709
|
+
};
|
|
710
|
+
_.current = E(h.current, (i) => /* @__PURE__ */ o(Q, {
|
|
687
711
|
value: e || null,
|
|
688
712
|
options: {
|
|
689
713
|
...n,
|
|
690
|
-
|
|
714
|
+
calendar: {
|
|
715
|
+
fixedWeeks: !0,
|
|
716
|
+
...n?.calendar
|
|
717
|
+
},
|
|
718
|
+
required: n?.required ?? m.required,
|
|
691
719
|
kind: t,
|
|
692
720
|
selection: "single"
|
|
693
721
|
},
|
|
694
|
-
cancel:
|
|
722
|
+
cancel: i,
|
|
723
|
+
onValidChange: r && n?.autoApply !== !1 ? a : void 0,
|
|
695
724
|
apply: (e) => {
|
|
696
|
-
|
|
725
|
+
a(e), i();
|
|
697
726
|
}
|
|
698
727
|
}), {
|
|
699
728
|
label: X(t, n?.text),
|
|
729
|
+
fitViewport: t === "datetime",
|
|
700
730
|
className: t === "time" ? "rv-editor-popup--time" : t === "datetime" ? "rv-editor-popup--datetime" : void 0,
|
|
701
731
|
onClose: () => {
|
|
702
|
-
|
|
732
|
+
_.current = void 0;
|
|
703
733
|
}
|
|
704
|
-
})
|
|
734
|
+
});
|
|
705
735
|
},
|
|
706
|
-
children: /* @__PURE__ */ o(
|
|
736
|
+
children: /* @__PURE__ */ o(u, { svg: t === "time" ? g : C })
|
|
707
737
|
})]
|
|
708
738
|
});
|
|
709
739
|
}
|
|
710
740
|
//#endregion
|
|
711
741
|
//#region src/date-time/attach.tsx
|
|
712
|
-
|
|
713
|
-
|
|
742
|
+
var $ = /* @__PURE__ */ new WeakMap();
|
|
743
|
+
function ce(e, t, n) {
|
|
744
|
+
$.get(e)?.();
|
|
745
|
+
let r, i = s(e.ownerDocument, /* @__PURE__ */ o(p, {
|
|
746
|
+
className: "rv-temporal-picker-trigger",
|
|
714
747
|
variant: "ghost",
|
|
715
748
|
disabled: e.disabled || e.readOnly,
|
|
716
749
|
"aria-label": X(t.kind ?? "date", t.text),
|
|
717
750
|
onClick: () => {
|
|
718
|
-
e.disabled || e.readOnly || r
|
|
751
|
+
e.disabled || e.readOnly || (r ? r.close() : r = E(e, (r) => /* @__PURE__ */ o(Q, {
|
|
719
752
|
value: e.value || null,
|
|
720
753
|
options: {
|
|
721
754
|
...t,
|
|
@@ -727,29 +760,33 @@ function se(e, t, n) {
|
|
|
727
760
|
!e.disabled && !e.readOnly && n(typeof t == "string" ? t : ""), r();
|
|
728
761
|
}
|
|
729
762
|
}), {
|
|
763
|
+
fitViewport: t.kind === "datetime",
|
|
730
764
|
className: t.kind === "time" ? "rv-editor-popup--time" : t.kind === "datetime" ? "rv-editor-popup--datetime" : void 0,
|
|
731
765
|
label: X(t.kind ?? "date", t.text),
|
|
766
|
+
trigger: i,
|
|
732
767
|
onClose: () => {
|
|
733
768
|
r = void 0;
|
|
734
769
|
}
|
|
735
770
|
}));
|
|
736
771
|
},
|
|
737
|
-
children: /* @__PURE__ */ o(
|
|
772
|
+
children: /* @__PURE__ */ o(u, { svg: t.kind === "time" ? g : C })
|
|
738
773
|
}));
|
|
739
774
|
e.after(i);
|
|
740
|
-
let a = e.ownerDocument.defaultView?.MutationObserver,
|
|
775
|
+
let a = e.ownerDocument.defaultView?.MutationObserver, l = a ? new a(() => {
|
|
741
776
|
i.disabled = e.disabled || e.readOnly, i.disabled && r?.close();
|
|
742
777
|
}) : void 0;
|
|
743
|
-
|
|
778
|
+
l?.observe(e, {
|
|
744
779
|
attributes: !0,
|
|
745
780
|
attributeFilter: ["disabled", "readonly"]
|
|
746
|
-
})
|
|
747
|
-
|
|
781
|
+
});
|
|
782
|
+
let d = () => {
|
|
783
|
+
$.get(e) === d && ($.delete(e), l?.disconnect(), r?.close(), c(i), i.remove());
|
|
748
784
|
};
|
|
785
|
+
return $.set(e, d), d;
|
|
749
786
|
}
|
|
750
787
|
//#endregion
|
|
751
788
|
//#region src/date-time/value.tsx
|
|
752
|
-
function
|
|
789
|
+
function le(e, t) {
|
|
753
790
|
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;
|
|
754
791
|
return e("span", {
|
|
755
792
|
class: "rv-temporal-value",
|
|
@@ -767,4 +804,4 @@ function ce(e, t) {
|
|
|
767
804
|
}, `+${i}`) : null]);
|
|
768
805
|
}
|
|
769
806
|
//#endregion
|
|
770
|
-
export {
|
|
807
|
+
export { oe as a, Q as i, ce as n, Y as o, se as r, X as s, le as t };
|