@revolist/ui 4.0.3 → 4.0.4
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/OWNERSHIP.md +5 -5
- package/README.md +65 -450
- package/_chunks/{calendar-CgXQgkga.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-GprenwEg.js} +4 -4
- package/_chunks/{choice-chips-SkllS5Kl.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-BpCTuIdm.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-CfeHXgIw.js → component-C3k_8uIq.js} +24 -24
- package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
- package/_chunks/{configurator-actions-DnStE6Yl.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-Dcrjsunl.js → control-BRfF5DWQ.js} +3 -3
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-B_6NJarZ.js → controls-B3EgM_DS.js} +9 -9
- package/_chunks/{date-control-C4h4m75W.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-CTOSbzb0.js → date-time-CfiFYodx.js} +20 -20
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/{dialog.parts-3w5FR06n.js → dialog.parts-NqEEVc9P.js} +4 -4
- package/_chunks/{duration-Bf2OS1V5.js → duration-BGZ_qJ99.js} +6 -6
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-NNP9Fh9U.js} +4 -4
- package/_chunks/{field-configurator-D5dZRhDe.js → field-configurator-DPulsY3l.js} +6 -6
- package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
- package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-BAAdEvr9.js} +2 -2
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/{mount-BRdcG60g.js → mount-C8CnIW9k.js} +6 -6
- package/_chunks/{native-Blr3byjO.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-B_fVA5bL.js → native-control-um1L1wgZ.js} +12 -12
- package/_chunks/{number-input-CmM6_2vR.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-DTqET-2W.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-C35Isk7p.js → popup-DECYM9FI.js} +2 -2
- package/_chunks/{rating-choice-C-6wcb9U.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-DIl1gkV6.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-DrhdpWiH.js → request-trail-B1zVRPEf.js} +15 -15
- package/_chunks/{rich-text-BnilBbhU.js → rich-text-Ci4d6dHn.js} +11 -11
- package/_chunks/{selection-list-tooltips-C5oMJe26.js → selection-list-tooltips-m00U3L6z.js} +3 -3
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-ncldbUwS.js} +2 -2
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-h-Z8yFBY.js} +2 -2
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-CBtRMBPr.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-BN5WdGHn.js} +2 -2
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-CKJ7VJOF.js} +3 -3
- package/activity-message.js +1 -1
- package/ai/index.js +2 -2
- package/assignee/index.js +6 -6
- package/avatar/index.js +2 -2
- package/badge.js +1 -1
- package/brush-range/component.js +2 -2
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.js +2 -2
- package/buttons/svg-button.js +3 -3
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +2 -2
- package/calendar/header.js +1 -1
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +2 -2
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +2 -2
- package/cell-input.js +1 -1
- package/cell-visuals/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.js +3 -3
- package/configurator-drop-zone.js +2 -2
- package/configurator-focus.js +1 -1
- package/configurator-sections.js +1 -1
- package/control-attributes.js +1 -1
- package/control-presentation.js +2 -2
- package/controls.js +2 -2
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
- package/core/top-layer-popup.js +1 -1
- package/date-time/field.d.ts +1 -0
- package/date-time/index.js +1 -1
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/area-chart.js +2 -2
- package/distribution-chart/bar-chart.js +2 -2
- package/distribution-chart/index.js +1 -1
- package/distribution-chart/line-chart.js +2 -2
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +1 -1
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +3 -3
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +2 -2
- package/editor-layout/index.js +2 -2
- package/favicon.svg +9 -0
- package/field-configurator.js +1 -1
- package/field-reorder.hook.js +1 -1
- package/field-reorder.js +1 -1
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +1 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +1 -1
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +2 -2
- package/filter-badge.js +2 -2
- package/filter-controls.js +2 -2
- package/form-controls/index.js +3 -3
- package/form-controls/presentation.js +2 -2
- package/formatting/index.js +7 -7
- package/framework.js +25 -25
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.js +1 -1
- package/icons/icon.js +1 -1
- package/legend.js +1 -1
- package/masked-input/index.js +4 -4
- package/native-control.js +1 -1
- package/native.js +15 -15
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +2 -2
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/index.js +3 -3
- package/preact-mount.js +1 -1
- package/preact.js +24 -24
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-control.js +1 -1
- package/react.js +25 -25
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.js +1 -1
- package/resource-picker/resource-picker-option.js +1 -1
- package/resource-picker/resource-picker-popup.js +2 -2
- package/resource-picker/resource-picker.js +2 -2
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/index.js +1 -1
- package/robots.txt +4 -0
- package/search-input/index.js +2 -2
- package/segmented-switch/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.js +1 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +2 -2
- package/status-feedback/header.js +2 -2
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +2 -2
- package/status-feedback/render.js +1 -1
- package/styles/color-roles.js +1 -1
- package/surfaces.js +6 -6
- package/svelte-control.js +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +2 -2
- package/time-grid.js +3 -3
- package/timeline-track/index.js +3 -3
- package/timeline-track/model.js +1 -1
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.js +25 -25
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as e, n as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
-
import { l as a, t as o } from "./native-control-
|
|
4
|
+
import { l as a, t as o } from "./native-control-um1L1wgZ.js";
|
|
5
5
|
import { DEFAULT_CALENDAR_TRANSLATIONS as s } from "../calendar/translations.js";
|
|
6
|
-
import { a as c, n as l } from "./iso-
|
|
7
|
-
import { a as u, c as d, d as f, f as p, l as m, n as h, p as g, r as _, s as v, t as y, u as b } from "./model-
|
|
6
|
+
import { a as c, n as l } from "./iso-CJQl2kmq.js";
|
|
7
|
+
import { a as u, c as d, d as f, f as p, l as m, n as h, p as g, r as _, s as v, t as y, u as b } from "./model-CFrBgRHm.js";
|
|
8
8
|
import { CalendarHeader as ee, CalendarWeekdays as te } from "../calendar/header.js";
|
|
9
9
|
import { CalendarMonthGrid as x } from "../calendar/month-grid.js";
|
|
10
10
|
import { CalendarYearGrid as ne } from "../calendar/year-grid.js";
|
|
11
|
-
//#region
|
|
11
|
+
//#region package/calendar/caption.tsx
|
|
12
12
|
function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disabled: l, labels: u, onChange: d }) {
|
|
13
13
|
let h = m(e, n), g = f(e, n), _ = t(() => {
|
|
14
14
|
let t = m(e, n)[0], r = s ? m(s, n)[0] : v(t, -600, n), i = c ? m(c, n)[0] : v(t, 120, n), a = [];
|
|
@@ -58,7 +58,7 @@ function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disab
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region
|
|
61
|
+
//#region package/calendar/calendar.tsx
|
|
62
62
|
var ie = "2026-08-02";
|
|
63
63
|
function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1, allowOutsideMonthSelection: S = !1, fixedWeeks: ae = !0, showTodayButton: oe = !1, showHeader: se = !0, showNavigation: C = !0, showPreviousButton: ce = C, showNextButton: le = C, showMonthLabel: ue = !0, showWeekdays: de = !0, enableYearView: w = !0, translations: fe = {}, ...T }) {
|
|
64
64
|
let [E] = e(() => i("rv-calendar-feedback")), D = T.calendarSystem ?? "gregory", O = Math.max(1, Math.min(12, Math.trunc(T.numberOfMonths || 1))), k = t(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { controlClassName as e } from "../control-attributes.js";
|
|
2
2
|
import { renderProgressBar as t } from "../progress/bar.js";
|
|
3
|
-
//#region
|
|
3
|
+
//#region package/cell-visuals/presentation.ts
|
|
4
4
|
function n(e, n) {
|
|
5
5
|
return e("div", { class: "progress-line-container" }, [t(e, {
|
|
6
6
|
value: n.percent,
|
|
@@ -72,7 +72,7 @@ function u(e, t) {
|
|
|
72
72
|
return e("div", { class: "summary-aggregate-content" }, t.map((t) => e("div", { class: "summary-aggregate-item" }, t)));
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region
|
|
75
|
+
//#region package/cell-visuals/sparkline.ts
|
|
76
76
|
function d(t, n) {
|
|
77
77
|
let { value: r } = n, i = Array.isArray(r) ? Array.from(r).filter((e) => e == null || typeof e == "number" && Number.isFinite(e)).map((e) => e ?? null) : [], a = i.filter((e) => e !== null);
|
|
78
78
|
if (a.length === 0) return t("div", { class: "sparkline-container" }, "");
|
|
@@ -99,7 +99,7 @@ function d(t, n) {
|
|
|
99
99
|
}, d)]);
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
|
-
//#region
|
|
102
|
+
//#region package/cell-visuals/mini-bars.ts
|
|
103
103
|
function f(t, n) {
|
|
104
104
|
let { value: r } = n, i = Array.isArray(r) ? r : [];
|
|
105
105
|
if (i.length === 0) return t("div", { class: "bar-chart-container" }, "");
|
|
@@ -116,7 +116,7 @@ function f(t, n) {
|
|
|
116
116
|
})])]);
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
|
-
//#region
|
|
119
|
+
//#region internal/chart-utils/src/colors.ts
|
|
120
120
|
function p(e) {
|
|
121
121
|
let t = /^#([\da-f]{6}|[\da-f]{3})$/i.exec(e.trim());
|
|
122
122
|
if (!t) return;
|
|
@@ -139,7 +139,7 @@ function h(e, t, n) {
|
|
|
139
139
|
return `rgb(${e.map((e, n) => Math.round(e + (t[n] - e) * r)).join(", ")})`;
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
|
-
//#region
|
|
142
|
+
//#region package/cell-visuals/heatmap.ts
|
|
143
143
|
function g(e) {
|
|
144
144
|
return e <= .5 ? `rgb(255, ${Math.round(e / .5 * 255)}, 0)` : `rgb(${Math.round(255 * ((1 - e) / .5))}, ${Math.round(150 + 105 * ((1 - e) / .5))}, 0)`;
|
|
145
145
|
}
|
|
@@ -173,7 +173,7 @@ function b(e, t) {
|
|
|
173
173
|
}, String(n));
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region
|
|
176
|
+
//#region package/cell-visuals/timeline.ts
|
|
177
177
|
function x(e) {
|
|
178
178
|
let t = `${e.start}–${e.end}`;
|
|
179
179
|
return e.label ? `${e.label}: ${t}` : t;
|
|
@@ -226,7 +226,7 @@ function D(e, t) {
|
|
|
226
226
|
}, [e("div", { class: "rv-timeline-track" }, [e("div", { class: "rv-timeline-bar" }, []), ...C(e, r, t.range)])]);
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
-
//#region
|
|
229
|
+
//#region package/cell-visuals/pie.ts
|
|
230
230
|
function O(e, t) {
|
|
231
231
|
return `hsl(${e / t * 360}, 70%, 50%)`;
|
|
232
232
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { r as i } from "./tooltip-
|
|
5
|
-
import { t as a } from "./tooltip-text-
|
|
6
|
-
//#region
|
|
4
|
+
import { r as i } from "./tooltip-h-Z8yFBY.js";
|
|
5
|
+
import { t as a } from "./tooltip-text-BN5WdGHn.js";
|
|
6
|
+
//#region package/distribution-chart/geometry.ts
|
|
7
7
|
function o(e) {
|
|
8
8
|
let t = e.map(({ value: e }) => Number.isFinite(e) ? Math.max(0, e) : 0), n = Math.max(1, ...t);
|
|
9
9
|
return {
|
|
@@ -22,7 +22,7 @@ function c(e, t, n = "linear") {
|
|
|
22
22
|
return `M ${e.x} ${e.y} ${s(t, n)}`;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region
|
|
25
|
+
//#region package/distribution-chart/chart-frame.tsx
|
|
26
26
|
function l({ title: e, details: t = [] }) {
|
|
27
27
|
return [e, ...t].filter(Boolean).join(". ");
|
|
28
28
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TooltipController as i } from "../core/popover-controller.js";
|
|
4
4
|
import { SvgIcon as a } from "../icons/icon.js";
|
|
5
|
-
import { t as o } from "./native-control-
|
|
5
|
+
import { t as o } from "./native-control-um1L1wgZ.js";
|
|
6
6
|
import { RemoveButton as s } from "../buttons/remove-button.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-info.svg?raw
|
|
8
8
|
var c = "<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=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z\"/></svg>";
|
|
9
9
|
//#endregion
|
|
10
|
-
//#region
|
|
10
|
+
//#region package/choice-chips/index.tsx
|
|
11
11
|
function l({ value: i, options: a, onChange: o, ariaLabel: s, appearance: c = "soft", scrollable: l = !1, size: u = "medium", className: f = "", itemClassName: p = "", disabled: m = !1, testId: h }) {
|
|
12
12
|
let g = n(null), [_, v] = e(""), y = () => {
|
|
13
13
|
let e = g.current;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { n as t } from "./tooltip-
|
|
2
|
+
import { n as t } from "./tooltip-h-Z8yFBY.js";
|
|
3
3
|
import { t as n } from "./check-BwI7iCAm.js";
|
|
4
4
|
import { DEFAULT_COLOR_PALETTE_OPTIONS as r } from "../color-palette/palette.js";
|
|
5
|
-
//#region
|
|
5
|
+
//#region package/color-palette/color-model.ts
|
|
6
6
|
function i(e) {
|
|
7
7
|
if (!e) return;
|
|
8
8
|
let t = e.trim().toLowerCase(), n = /^#([\da-f])([\da-f])([\da-f])$/i.exec(t);
|
|
@@ -23,7 +23,7 @@ function a(e) {
|
|
|
23
23
|
e.preventDefault(), r[a]?.focus();
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region
|
|
26
|
+
//#region package/color-palette/color-palette.tsx
|
|
27
27
|
function o({ value: t, options: i = r, ariaLabel: o, defaultLabel: c, colorAriaLabel: l, disabled: u = !1, includeDefault: d = !0, defaultDisabled: f = !1, onChange: p }) {
|
|
28
28
|
let m = i.findIndex((e) => e.value === t && !e.disabled), h = i.findIndex((e) => !e.disabled), g = d && !f, _ = a;
|
|
29
29
|
return /* @__PURE__ */ e("div", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
-
import { n as a, t as o } from "./native-control-
|
|
4
|
+
import { n as a, t as o } from "./native-control-um1L1wgZ.js";
|
|
5
5
|
import { t as s } from "./chevron-down-GbplLa6s.js";
|
|
6
|
-
import { n as c } from "./tooltip-
|
|
7
|
-
import { n as l, t as u } from "./color-palette-
|
|
6
|
+
import { n as c } from "./tooltip-h-Z8yFBY.js";
|
|
7
|
+
import { n as l, t as u } from "./color-palette-7siNch__.js";
|
|
8
8
|
import { COLOR_PICKER_DEFAULT_COLOR as d } from "../color-palette/color-picker.constants.js";
|
|
9
9
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/ban.svg?raw
|
|
10
10
|
var f = "<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=\"M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z\"/></svg>", p = "<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=\"M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"/></svg>";
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region
|
|
12
|
+
//#region package/color-palette/color-picker.tsx
|
|
13
13
|
function m({ icon: e, className: t = "rv-format-icon rv-format-color-picker__icon" }) {
|
|
14
14
|
return /* @__PURE__ */ r("span", {
|
|
15
15
|
class: t,
|
|
@@ -2,15 +2,15 @@ import { c as e, i as t } from "./preact.module-BBM36DnO.js";
|
|
|
2
2
|
import { 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
4
|
import { createControlId as s } from "../core/control-id.js";
|
|
5
|
-
import {
|
|
5
|
+
import { PopoverController as c, TooltipController as l } from "../core/popover-controller.js";
|
|
6
6
|
import { SvgIcon as u } from "../icons/icon.js";
|
|
7
|
-
import { l as d, n as f } from "./native-control-
|
|
8
|
-
import { n as p } from "./popup-
|
|
7
|
+
import { l as d, n as f } from "./native-control-um1L1wgZ.js";
|
|
8
|
+
import { n as p } from "./popup-DECYM9FI.js";
|
|
9
9
|
import { t as m } from "./chevron-down-GbplLa6s.js";
|
|
10
|
-
import { D as h, F as g, I as _, R as v, b as y, g as b, l as x, p as S, t as C } from "./controls-
|
|
10
|
+
import { D as h, F as g, I as _, R as v, b as y, g as b, l as x, p as S, t as C } from "./controls-B3EgM_DS.js";
|
|
11
11
|
import { n as w, t as T } from "./chevron-right-CM3ljziP.js";
|
|
12
12
|
import { t as E } from "./xmark-DD_PBvZI.js";
|
|
13
|
-
import { t as D } from "./tooltip-text-
|
|
13
|
+
import { t as D } from "./tooltip-text-BN5WdGHn.js";
|
|
14
14
|
import { DialogController as O, attachMenuKeyboard as k } from "../surfaces.js";
|
|
15
15
|
import { t as A } from "./rotate-right-Iha5ScJ1.js";
|
|
16
16
|
import { t as j } from "./chevron-up-BLuNMPDn.js";
|
|
@@ -19,13 +19,13 @@ import { renderProgressBar as ee } from "../progress/bar.js";
|
|
|
19
19
|
import { t as te } from "./plus-CbGRkIGl.js";
|
|
20
20
|
import { t as ne } from "./minus-BOAR3A1C.js";
|
|
21
21
|
import { SearchInput as re } from "../search-input/index.js";
|
|
22
|
-
import { s as N } from "./iso-
|
|
23
|
-
import { f as P, h as F, o as I } from "./model-
|
|
24
|
-
import { n as L, t as R } from "./date-control-
|
|
25
|
-
import { t as z } from "./calendar-
|
|
22
|
+
import { s as N } from "./iso-CJQl2kmq.js";
|
|
23
|
+
import { f as P, h as F, o as I } from "./model-CFrBgRHm.js";
|
|
24
|
+
import { n as L, t as R } from "./date-control-87dcA5br.js";
|
|
25
|
+
import { t as z } from "./calendar-BQYQLu8Q.js";
|
|
26
26
|
import { t as B } from "./magnifying-glass-CvrTDSkB.js";
|
|
27
|
-
import { t as V } from "./controller-
|
|
28
|
-
//#region
|
|
27
|
+
import { t as V } from "./controller-BbiQuRt-.js";
|
|
28
|
+
//#region package/pickers.tsx
|
|
29
29
|
function H(e) {
|
|
30
30
|
return /* @__PURE__ */ o(d, {
|
|
31
31
|
...e,
|
|
@@ -53,16 +53,16 @@ function ie(t) {
|
|
|
53
53
|
function ae(t) {
|
|
54
54
|
return ee(e, t);
|
|
55
55
|
}
|
|
56
|
-
function W({ open: e, anchor: t, appendTo: n, closeOnOutside: r, closeOnEscape: s, onClose:
|
|
57
|
-
let m = a(null), h = a(
|
|
58
|
-
h.current =
|
|
56
|
+
function W({ open: e, anchor: t, appendTo: n, closeOnOutside: r, closeOnEscape: s, onClose: l, children: u, label: d, className: f = "", role: p = "dialog" }) {
|
|
57
|
+
let m = a(null), h = a(l);
|
|
58
|
+
h.current = l;
|
|
59
59
|
let g = a({
|
|
60
60
|
closeOnOutside: r,
|
|
61
61
|
closeOnEscape: s
|
|
62
62
|
}).current;
|
|
63
63
|
return g.closeOnOutside = r, g.closeOnEscape = s, i(() => {
|
|
64
64
|
if (!e || !t || !m.current) return;
|
|
65
|
-
let r = m.current, i = new
|
|
65
|
+
let r = m.current, i = new c(), a = !0;
|
|
66
66
|
i.open({
|
|
67
67
|
anchor: t,
|
|
68
68
|
appendTo: n,
|
|
@@ -101,7 +101,7 @@ function oe({ text: e, children: t }) {
|
|
|
101
101
|
return i(() => {
|
|
102
102
|
let t = n.current;
|
|
103
103
|
if (!t) return;
|
|
104
|
-
let r = new
|
|
104
|
+
let r = new l(), i, a = () => {
|
|
105
105
|
let n = t.querySelector("button, input, a[href], [tabindex]") ?? t;
|
|
106
106
|
n !== i && (r.bind(n, e), i = n);
|
|
107
107
|
};
|
|
@@ -307,7 +307,7 @@ function le({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
|
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
//#endregion
|
|
310
|
-
//#region
|
|
310
|
+
//#region package/pdf-viewer/translations.ts
|
|
311
311
|
var K = {
|
|
312
312
|
viewer: "PDF document",
|
|
313
313
|
pages: "Document pages",
|
|
@@ -360,7 +360,7 @@ function J(e) {
|
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
362
|
//#endregion
|
|
363
|
-
//#region
|
|
363
|
+
//#region package/pdf-viewer/toolbar-options.ts
|
|
364
364
|
function Y(e) {
|
|
365
365
|
return e === !1 ? { tools: [] } : Array.isArray(e) ? { tools: e } : e ?? {};
|
|
366
366
|
}
|
|
@@ -375,7 +375,7 @@ function X(e, t) {
|
|
|
375
375
|
].includes(t) || n.buttons?.[t] !== !1);
|
|
376
376
|
}
|
|
377
377
|
//#endregion
|
|
378
|
-
//#region
|
|
378
|
+
//#region package/pdf-viewer/icons.ts
|
|
379
379
|
var Z = {
|
|
380
380
|
previous: w,
|
|
381
381
|
next: T,
|
|
@@ -393,7 +393,7 @@ var Z = {
|
|
|
393
393
|
more: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 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=\"M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z\"/></svg>"
|
|
394
394
|
};
|
|
395
395
|
//#endregion
|
|
396
|
-
//#region
|
|
396
|
+
//#region package/pdf-viewer/toolbar.tsx
|
|
397
397
|
function Q(e) {
|
|
398
398
|
let { controller: r, state: s } = e, c = J(e.text), l = Y(e.config), p = s.status === "ready", m = (e) => l.buttons?.[e] !== !1, h = (e) => {
|
|
399
399
|
let t = l.buttons?.[e];
|
|
@@ -639,7 +639,7 @@ function Q(e) {
|
|
|
639
639
|
})] }) : null;
|
|
640
640
|
}
|
|
641
641
|
//#endregion
|
|
642
|
-
//#region
|
|
642
|
+
//#region package/pdf-viewer/search-bar.tsx
|
|
643
643
|
function ue({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: s }) {
|
|
644
644
|
let c = n.status === "ready";
|
|
645
645
|
return i(() => {
|
|
@@ -700,7 +700,7 @@ function ue({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: s }
|
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
702
|
//#endregion
|
|
703
|
-
//#region
|
|
703
|
+
//#region package/pdf-viewer/header.tsx
|
|
704
704
|
function de({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
|
|
705
705
|
let a = e.status === "ready";
|
|
706
706
|
return /* @__PURE__ */ o("header", {
|
|
@@ -733,7 +733,7 @@ function de({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
|
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
735
|
//#endregion
|
|
736
|
-
//#region
|
|
736
|
+
//#region package/pdf-viewer/status.tsx
|
|
737
737
|
function fe({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
|
|
738
738
|
return e.status === "loading" ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(h, { label: n.loading }), /* @__PURE__ */ o("span", { children: n.loading })] }) : e.status === "error" ? /* @__PURE__ */ o(v, {
|
|
739
739
|
tone: "danger",
|
|
@@ -759,7 +759,7 @@ function fe({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
//#endregion
|
|
762
|
-
//#region
|
|
762
|
+
//#region package/pdf-viewer/component.tsx
|
|
763
763
|
function pe(e) {
|
|
764
764
|
let t = r(() => new V(e), [
|
|
765
765
|
e.workerSrc,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as e, i as t, n } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { SvgIcon as i } from "../icons/icon.js";
|
|
4
|
-
import { t as a } from "./native-control-
|
|
5
|
-
import { t as o } from "./popup-
|
|
4
|
+
import { t as a } from "./native-control-um1L1wgZ.js";
|
|
5
|
+
import { t as o } from "./popup-DECYM9FI.js";
|
|
6
6
|
import { renderControl as s } from "../control-presentation.js";
|
|
7
7
|
import "./check-BwI7iCAm.js";
|
|
8
8
|
import { t as c } from "./plus-CbGRkIGl.js";
|
|
9
9
|
import { SearchInput as l } from "../search-input/index.js";
|
|
10
|
-
import { S as u, c as d, p as f, r as p } from "./field-configurator-
|
|
10
|
+
import { S as u, c as d, p as f, r as p } from "./field-configurator-DPulsY3l.js";
|
|
11
11
|
import { t as m } from "./calculator-CDWOuAcp.js";
|
|
12
12
|
import "./magnifying-glass-CvrTDSkB.js";
|
|
13
13
|
import { t as h } from "./configurator-field-icon-CmcM_sPs.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
|
|
3
|
-
import { d as r, u as i } from "./native-control-
|
|
4
|
-
//#region
|
|
3
|
+
import { d as r, u as i } from "./native-control-um1L1wgZ.js";
|
|
4
|
+
//#region package/dropdown/control.view.tsx
|
|
5
5
|
function a(r) {
|
|
6
6
|
let i, a, o = t(r, /* @__PURE__ */ e("div", { children: [/* @__PURE__ */ e("div", {
|
|
7
7
|
style: { display: "contents" },
|
|
@@ -22,7 +22,7 @@ function a(r) {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region
|
|
25
|
+
//#region package/dropdown/control.ts
|
|
26
26
|
function o(e, t) {
|
|
27
27
|
let { element: n, mount: o, input: s, release: c } = a(e), l = { ...t }, u = !1, d = () => {
|
|
28
28
|
u || (s.name = l.name ?? "", s.disabled = !!l.disabled || !l.name, s.value = l.value == null ? "" : String(l.value), i(o, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
|
|
3
|
-
//#region
|
|
3
|
+
//#region package/pdf-viewer/runtime.ts
|
|
4
4
|
async function r() {
|
|
5
5
|
let e = await import("pdfjs-dist"), t = await import("pdfjs-dist/web/pdf_viewer.mjs");
|
|
6
6
|
return await import("pdfjs-dist/web/pdf_viewer.css"), {
|
|
@@ -9,7 +9,7 @@ async function r() {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region
|
|
12
|
+
//#region package/pdf-viewer/model.ts
|
|
13
13
|
function i(e) {
|
|
14
14
|
return e === "page-fit" || e === "page-width" ? e : Number.isFinite(e) ? Math.min(5, Math.max(.25, e)) : 1;
|
|
15
15
|
}
|
|
@@ -32,7 +32,7 @@ async function s(e) {
|
|
|
32
32
|
return { data: t instanceof Uint8Array ? t.slice() : new Uint8Array(t.slice(0)) };
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region
|
|
35
|
+
//#region package/pdf-viewer/surfaces.view.tsx
|
|
36
36
|
var c = (n) => t(n, /* @__PURE__ */ e("div", { class: "pdfViewer" })), l = (n, r, i) => t(n, /* @__PURE__ */ e("a", {
|
|
37
37
|
href: r,
|
|
38
38
|
download: i
|
|
@@ -44,7 +44,7 @@ var c = (n) => t(n, /* @__PURE__ */ e("div", { class: "pdfViewer" })), l = (n, r
|
|
|
44
44
|
height: i
|
|
45
45
|
}));
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region
|
|
47
|
+
//#region package/pdf-viewer/print.ts
|
|
48
48
|
async function p(e, t, r, i = "PDF print document") {
|
|
49
49
|
r.throwIfAborted();
|
|
50
50
|
let a = u(t, i), o = [], s, c = !1;
|
|
@@ -84,7 +84,7 @@ async function p(e, t, r, i = "PDF print document") {
|
|
|
84
84
|
return l;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region
|
|
87
|
+
//#region package/pdf-viewer/controller.ts
|
|
88
88
|
var m = class {
|
|
89
89
|
state;
|
|
90
90
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -3,10 +3,10 @@ import { i as n, r, t as i } from "./hooks.module-CG3gN83z.js";
|
|
|
3
3
|
import { t as a } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
4
|
import { createPreactElement as o } from "../preact-mount.js";
|
|
5
5
|
import { createControlId as s } from "../core/control-id.js";
|
|
6
|
-
import { t as c } from "./title-tooltip-
|
|
7
|
-
import { n as l } from "./rating-choice-
|
|
8
|
-
import { a as u, n as d, t as f } from "./native-control-
|
|
9
|
-
import { r as p } from "./popup-
|
|
6
|
+
import { t as c } from "./title-tooltip-ncldbUwS.js";
|
|
7
|
+
import { n as l } from "./rating-choice-CepVfGUq.js";
|
|
8
|
+
import { a as u, n as d, t as f } from "./native-control-um1L1wgZ.js";
|
|
9
|
+
import { r as p } from "./popup-DECYM9FI.js";
|
|
10
10
|
import { registerControl as m, renderControl as h } from "../control-presentation.js";
|
|
11
11
|
import { paginationItems as g, renderPaginationButton as _ } from "../pagination.js";
|
|
12
12
|
import { n as v, t as y } from "./chevron-right-CM3ljziP.js";
|
|
@@ -16,7 +16,7 @@ import { attachMenuKeyboard as S, attachResizeHandle as C } from "../surfaces.js
|
|
|
16
16
|
import { normalizeProgressRange as w } from "../progress/range.js";
|
|
17
17
|
import { badgeClassName as ee } from "../badge.js";
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region
|
|
19
|
+
//#region package/icons/pagination.ts
|
|
20
20
|
var te = {
|
|
21
21
|
first: "<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=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L269.3 256 406.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z\"/></svg>",
|
|
22
22
|
previous: v,
|
|
@@ -24,7 +24,7 @@ var te = {
|
|
|
24
24
|
last: "<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=\"M439.1 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L371.2 256 233.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L179.2 256 41.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z\"/></svg>"
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region
|
|
27
|
+
//#region package/native-controls.tsx
|
|
28
28
|
function T(e, t) {
|
|
29
29
|
return e("div", {
|
|
30
30
|
class: t.className ?? "rv-spinner",
|
|
@@ -113,7 +113,7 @@ function A(e, t) {
|
|
|
113
113
|
]);
|
|
114
114
|
}
|
|
115
115
|
//#endregion
|
|
116
|
-
//#region
|
|
116
|
+
//#region package/badge.view.tsx
|
|
117
117
|
function j({ children: e, className: t = "", variant: n, shape: r }) {
|
|
118
118
|
return /* @__PURE__ */ a("span", {
|
|
119
119
|
class: `${ee({
|
|
@@ -124,7 +124,7 @@ function j({ children: e, className: t = "", variant: n, shape: r }) {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region
|
|
127
|
+
//#region package/alert.tsx
|
|
128
128
|
function M(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, description: o, actions: s, className: c = "", class: l = "", ...u }) {
|
|
129
129
|
let d = (t, n, ...r) => e(t, n, r);
|
|
130
130
|
return /* @__PURE__ */ d("div", {
|
|
@@ -141,7 +141,7 @@ function ne(t) {
|
|
|
141
141
|
return M(e, t);
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
|
-
//#region
|
|
144
|
+
//#region package/controls.tsx
|
|
145
145
|
var N = m(p(function({ href: e, target: t, rel: n, rounded: r = !1, variant: i = "default", size: o = "default", className: s = "", class: l, ...u }, d) {
|
|
146
146
|
let p = c(e !== void 0 && typeof u.title == "string" ? u.title : void 0), m = [
|
|
147
147
|
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { n } from "./native-control-
|
|
4
|
-
import { s as r } from "./iso-
|
|
5
|
-
import { u as i } from "./model-
|
|
6
|
-
//#region
|
|
3
|
+
import { n } from "./native-control-um1L1wgZ.js";
|
|
4
|
+
import { s as r } from "./iso-CJQl2kmq.js";
|
|
5
|
+
import { u as i } from "./model-CFrBgRHm.js";
|
|
6
|
+
//#region internal/dates/src/date-entry.ts
|
|
7
7
|
function a(e) {
|
|
8
8
|
return e.format === "eu" ? "en-GB" : e.format === "us" ? "en-US" : e.locale;
|
|
9
9
|
}
|
|
@@ -51,7 +51,7 @@ function l(e, t = {}) {
|
|
|
51
51
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/regular/calendar.svg?raw
|
|
52
52
|
var u = "<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=\"M120 0c13.3 0 24 10.7 24 24l0 40 160 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-40c0-13.3 10.7-24 24-24zm0 112l-56 0c-8.8 0-16 7.2-16 16l0 48 352 0 0-48c0-8.8-7.2-16-16-16l-264 0zM48 224l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192-352 0z\"/></svg>";
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region
|
|
54
|
+
//#region package/date-time/date-control.tsx
|
|
55
55
|
function d({ value: r, label: i, options: a = {}, multiple: o, invalid: u, errorId: d, disabled: f, readOnly: p, minDate: m, maxDate: h, onChange: g, onFocus: _ }) {
|
|
56
56
|
let [v, y] = e(!1), [b, x] = e(""), S = a.multipleSeparator?.trim() || ";", C = Array.isArray(r) ? r.map((e) => c(e, a)).join(`${S} `) : c(r, a), w = v ? b : C, T = (o ? w.split(S) : [w]).some((e) => {
|
|
57
57
|
if (!e.trim()) return !1;
|
|
@@ -4,19 +4,19 @@ import { t as o } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
|
4
4
|
import { createPreactElement as s, releasePreactElement as c } from "../preact-mount.js";
|
|
5
5
|
import { createControlId as l } from "../core/control-id.js";
|
|
6
6
|
import { SvgIcon as u } from "../icons/icon.js";
|
|
7
|
-
import { n as d } from "./native-control-
|
|
7
|
+
import { n as d } from "./native-control-um1L1wgZ.js";
|
|
8
8
|
import "./chevron-down-GbplLa6s.js";
|
|
9
|
-
import { R as f, t as p } from "./controls-
|
|
9
|
+
import { R as f, t as p } from "./controls-B3EgM_DS.js";
|
|
10
10
|
import { EditorList as m, EditorListItem as h } from "../editor-layout/index.js";
|
|
11
11
|
import { t as g } from "./clock-BOhPNlW3.js";
|
|
12
|
-
import { i as _, s as v } from "./iso-
|
|
13
|
-
import { f as y, h as b, m as x, p as S } from "./model-
|
|
14
|
-
import { n as C, t as w } from "./date-control-
|
|
15
|
-
import { t as T } from "./picker-
|
|
16
|
-
import { t as E } from "./editor-popup-
|
|
17
|
-
import { n as D } from "./editor-commit-
|
|
12
|
+
import { i as _, s as v } from "./iso-CJQl2kmq.js";
|
|
13
|
+
import { f as y, h as b, m as x, p as S } from "./model-CFrBgRHm.js";
|
|
14
|
+
import { n as C, t as w } from "./date-control-87dcA5br.js";
|
|
15
|
+
import { t as T } from "./picker-igNshTRC.js";
|
|
16
|
+
import { t as E } from "./editor-popup-NNP9Fh9U.js";
|
|
17
|
+
import { n as D } from "./editor-commit-Dyo-FMgD.js";
|
|
18
18
|
import { EditorActions as O } from "../editor-actions.js";
|
|
19
|
-
//#region
|
|
19
|
+
//#region internal/dates/src/date-controls.ts
|
|
20
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
21
|
function M(e, t, n = "minute") {
|
|
22
22
|
if (Number.isNaN(t.getTime())) return "";
|
|
@@ -43,7 +43,7 @@ function P(e) {
|
|
|
43
43
|
return String(e).padStart(2, "0");
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
|
-
//#region
|
|
46
|
+
//#region internal/dates/src/civil-time.ts
|
|
47
47
|
var F = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/;
|
|
48
48
|
function I(e) {
|
|
49
49
|
let t = /* @__PURE__ */ new Date(0);
|
|
@@ -70,7 +70,7 @@ function L(e) {
|
|
|
70
70
|
return Object.keys(n).every((e) => n[e] === i[e]) ? n : void 0;
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region
|
|
73
|
+
//#region internal/dates/src/temporal-controls.ts
|
|
74
74
|
function R(e) {
|
|
75
75
|
return e.split("T")[0];
|
|
76
76
|
}
|
|
@@ -136,7 +136,7 @@ function G(e, t = "minute", n) {
|
|
|
136
136
|
return o ? M("time", o, t) : void 0;
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
|
-
//#region
|
|
139
|
+
//#region internal/dates/src/time-selection.ts
|
|
140
140
|
function K(e) {
|
|
141
141
|
let t = e.min ? H(e.min) : void 0, n = e.max ? H(e.max) : void 0, r = e.step ?? (e.precision === "second" ? 1 : 60);
|
|
142
142
|
if (!Number.isFinite(r) || r <= 0) return [];
|
|
@@ -183,7 +183,7 @@ function ne(e, t, n) {
|
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
|
-
//#region
|
|
186
|
+
//#region package/date-time/types.ts
|
|
187
187
|
var Y = {
|
|
188
188
|
date: "Date",
|
|
189
189
|
dates: "Dates",
|
|
@@ -211,7 +211,7 @@ function X(e, t) {
|
|
|
211
211
|
return (e === "time" ? t?.chooseTime : t?.chooseDate) ?? (e === "time" ? Y.chooseTime : Y.chooseDate);
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region
|
|
214
|
+
//#region package/date-time/validation.ts
|
|
215
215
|
function re(e, t, n = "") {
|
|
216
216
|
let { kind: r = "date", selection: i = "single", value: a, calendar: o = {} } = e, s = {
|
|
217
217
|
...Y,
|
|
@@ -249,7 +249,7 @@ function re(e, t, n = "") {
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
//#endregion
|
|
252
|
-
//#region
|
|
252
|
+
//#region package/date-time/time-control.tsx
|
|
253
253
|
function ie({ value: e, label: t, format: r = "locale", precision: i = "minute", locale: a, min: s, max: c, step: l, onChange: u }) {
|
|
254
254
|
let [f, p] = n(!1), [m, h] = n("");
|
|
255
255
|
if (r === "locale") return /* @__PURE__ */ o(d, {
|
|
@@ -283,7 +283,7 @@ function ie({ value: e, label: t, format: r = "locale", precision: i = "minute",
|
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
//#endregion
|
|
286
|
-
//#region
|
|
286
|
+
//#region package/date-time/time-selection.tsx
|
|
287
287
|
function ae({ label: e, accessibleLabel: t, values: n, selected: r, choices: s, display: c, onSelect: l }) {
|
|
288
288
|
let u = a(null), d = r !== void 0 && s.has(r), f = d ? r : n.find((e) => s.has(e));
|
|
289
289
|
i(() => {
|
|
@@ -402,7 +402,7 @@ function Z({ value: e, label: i, text: a, onChange: s, format: c = "locale", pre
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
//#endregion
|
|
405
|
-
//#region
|
|
405
|
+
//#region package/date-time/picker.tsx
|
|
406
406
|
function oe(t) {
|
|
407
407
|
let { kind: r = "date", selection: a = "single", value: s, onChange: c, calendar: u = {} } = t, d = (u.numberOfMonths ?? 1) >= 2, m = {
|
|
408
408
|
...Y,
|
|
@@ -624,7 +624,7 @@ function oe(t) {
|
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
626
|
//#endregion
|
|
627
|
-
//#region
|
|
627
|
+
//#region package/date-time/field.tsx
|
|
628
628
|
function Q({ value: e, options: t, apply: r, cancel: i, onValidChange: a, clearable: s = !0 }) {
|
|
629
629
|
let [c, l] = n(e), [u, d] = n(!1), [p, m] = n(""), h = (e) => {
|
|
630
630
|
l(e), m("");
|
|
@@ -738,7 +738,7 @@ function se({ value: e, kind: t = "date", picker: n, livePickerUpdates: r, onVal
|
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
740
|
//#endregion
|
|
741
|
-
//#region
|
|
741
|
+
//#region package/date-time/attach.tsx
|
|
742
742
|
var $ = /* @__PURE__ */ new WeakMap();
|
|
743
743
|
function ce(e, t, n) {
|
|
744
744
|
$.get(e)?.();
|
|
@@ -785,7 +785,7 @@ function ce(e, t, n) {
|
|
|
785
785
|
return $.set(e, d), d;
|
|
786
786
|
}
|
|
787
787
|
//#endregion
|
|
788
|
-
//#region
|
|
788
|
+
//#region package/date-time/value.tsx
|
|
789
789
|
function le(e, t) {
|
|
790
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;
|
|
791
791
|
return e("span", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/icons/cancel.svg?raw
|
|
3
3
|
var t = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/></svg>", n = ({ onClick: n, disabled: r, rounded: i, className: a, onMouseDown: o, onDblClick: s, locale: c = {
|
|
4
4
|
title: "Remove",
|
|
5
5
|
ariaLabel: "Remove"
|