@revolist/ui 4.0.9 → 4.0.12
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/README.md +37 -1
- package/_chunks/{calendar-C4zH4Ppn.js → calendar-CQHVwHLW.js} +1 -1
- package/_chunks/{chart-frame-DzvJooS2.js → chart-frame-pj5EQxXr.js} +1 -1
- package/_chunks/{choice-chips-D2cJju-g.js → choice-chips-BIGT7gjO.js} +1 -1
- package/_chunks/{color-palette-D7AS20M1.js → color-palette-DL0f3igd.js} +1 -1
- package/_chunks/{color-picker-BanAQVfz.js → color-picker-BWBM9GE1.js} +3 -3
- package/_chunks/{component-B8SvtSaB.js → component-B22CtP21.js} +49 -34
- package/_chunks/{component-metadata-DlVkpW3h.js → component-metadata-B_hLjtM0.js} +4 -1
- package/_chunks/{configurator-actions-CvZf5nYp.js → configurator-actions-BhIk4oM_.js} +11 -11
- package/_chunks/{control-Dj7IR-i0.js → control-zCLB1tGz.js} +1 -1
- package/_chunks/{controls-BF6WlGT4.js → controls-Ip2E6jIu.js} +5 -4
- package/_chunks/{date-control-BNj2FBF2.js → date-control-UmJvxQ5C.js} +1 -1
- package/_chunks/{date-time-Ucx1ep76.js → date-time-B9YGqree.js} +52 -52
- package/_chunks/{dialog.parts-BqkmnhIL.js → dialog.parts-CpMwNhTM.js} +2 -2
- package/_chunks/{duration-BIESsyLI.js → duration-BrsE4QgL.js} +11 -11
- package/_chunks/{editor-popup-BTmjGg2_.js → editor-popup-Ds0GPAcn.js} +1 -1
- package/_chunks/{field-configurator-BWZnm3gE.js → field-configurator-BMQnmWNd.js} +3 -2
- package/_chunks/{framework-mount-DQ4opSL0.js → framework-mount-CX0oj05W.js} +1 -1
- package/_chunks/{mount-DTCXtKfT.js → mount-BgI_QV2H.js} +3 -3
- package/_chunks/native-C9tJWAXF.js +52 -0
- package/_chunks/{native-control-xc_B4vfn.js → native-control-DjJ8Na3T.js} +43 -38
- package/_chunks/{number-input-C_TPzAJq.js → number-input-Bb5guKP4.js} +2 -2
- package/_chunks/{picker-0h5TwXGT.js → picker-DDUmhT93.js} +2 -2
- package/_chunks/{popup-CISbXDnE.js → popup-HEUnOeq-.js} +1 -1
- package/_chunks/{rating-choice-FhWNdsiC.js → rating-choice-CtrABPp-.js} +1 -1
- package/_chunks/{reorder-list-CR1DO4EG.js → reorder-list-DvwZcFPH.js} +1 -1
- package/_chunks/{request-trail-ay92DQpo.js → request-trail-D5PKrBlC.js} +2 -2
- package/_chunks/{rich-text-ByjXFv1S.js → rich-text-DW1vcBAY.js} +27 -27
- package/_chunks/{selection-list-tooltips-DqqLeO_m.js → selection-list-tooltips-j84Wufjj.js} +7 -3
- package/_chunks/tooltip-BkuH0JdW.js +93 -0
- package/_chunks/tooltip-session-BBKkwhLZ.js +244 -0
- package/_chunks/top-layer-popup-DU1r_2v5.js +107 -0
- package/ai/index.js +2 -2
- package/angular/angular.d.ts +2 -0
- package/angular/angular.js +1 -0
- package/assignee/index.js +26 -26
- package/browser/favicon.svg +9 -0
- package/browser/pdf-viewer.css +2 -0
- package/browser/pdf.worker.min.mjs +28 -0
- package/browser/pdfjs-LICENSE +177 -0
- package/browser/revo-ui.global.js +671 -0
- package/browser/revo-ui.js +35538 -0
- package/browser/robots.txt +4 -0
- package/browser.d.ts +3 -0
- package/browser.js +34 -0
- package/buttons/svg-button.js +3 -3
- package/calendar/_calendar.scss +12 -4
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.js +2 -2
- package/configurator-drop-zone.js +1 -1
- package/controls.js +2 -2
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +31 -6
- package/core/popover-controller.js +171 -46
- package/core/popup-ownership.d.ts +1 -1
- package/core/tooltip-options.d.ts +143 -0
- package/core/tooltip-options.js +20 -0
- package/core/tooltip-session.d.ts +32 -8
- package/core/tooltip-surface.d.ts +14 -3
- package/core/tooltip.d.ts +20 -19
- package/core/top-layer-popup.d.ts +2 -1
- package/core/top-layer-popup.js +1 -1
- package/date-time/index.js +1 -1
- package/dialog/dialog.dom.js +2 -2
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.js +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.d.ts +3 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +56 -56
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +5 -5
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +1 -1
- package/editor-layout/index.js +1 -1
- package/field-configurator.js +1 -1
- package/filter/filters/slider/runtime.js +1 -1
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.js +1 -1
- package/form-controls/index.js +2 -2
- package/formatting/index.js +2 -2
- package/framework.js +133 -133
- package/masked-input/index.js +1 -1
- package/native-control.js +1 -1
- package/native.js +29 -79
- package/number-input/index.js +1 -1
- package/package.json +19 -3
- package/pagination.js +1 -1
- package/pdf-viewer/index.js +1 -1
- package/pickers.d.ts +11 -4
- package/preact.d.ts +2 -0
- package/preact.js +64 -63
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.d.ts +2 -0
- package/react.js +63 -62
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +1 -1
- package/rich-text/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.js +1 -1
- package/status-feedback/exit-snapshot.js +1 -1
- package/status-feedback/popover.js +1 -1
- package/styles.css +1 -1
- package/surfaces.d.ts +1 -0
- package/surfaces.js +24 -23
- package/svelte.d.ts +2 -0
- package/svelte.js +30 -29
- package/switch/index.js +1 -1
- package/time-grid.js +1 -1
- package/timeline-track/_style.scss +33 -2
- package/timeline-track/component.d.ts +10 -1
- package/timeline-track/index.js +136 -74
- package/ui.css +1 -1
- package/vue.d.ts +11 -13
- package/vue.js +91 -87
- package/_chunks/tooltip-B5ziciEP.js +0 -54
- package/_chunks/tooltip-session-D74h-uqu.js +0 -110
- package/_chunks/top-layer-popup-BHajfliG.js +0 -59
|
@@ -4,25 +4,25 @@ import { t as o } from "./jsxRuntime.module-ksX_VSbv.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-DjJ8Na3T.js";
|
|
8
8
|
import "./chevron-down-BkrpxJYD.js";
|
|
9
|
-
import { R as f, t as p } from "./controls-
|
|
9
|
+
import { R as f, t as p } from "./controls-Ip2E6jIu.js";
|
|
10
10
|
import { EditorList as m, EditorListItem as h } from "../editor-layout/index.js";
|
|
11
11
|
import { t as g } from "./clock-DTfr4p2S.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as E } from "./
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
12
|
+
import { EditorActions as _ } from "../editor-actions.js";
|
|
13
|
+
import { n as v } from "./editor-commit-BXIUX0As.js";
|
|
14
|
+
import { i as y, s as b } from "./iso-CJQl2kmq.js";
|
|
15
|
+
import { f as x, h as S, m as C, p as w } from "./model-CFrBgRHm.js";
|
|
16
|
+
import { n as T, t as E } from "./date-control-UmJvxQ5C.js";
|
|
17
|
+
import { t as D } from "./picker-DDUmhT93.js";
|
|
18
|
+
import { t as O } from "./editor-popup-Ds0GPAcn.js";
|
|
19
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 "";
|
|
23
23
|
let r = `${P(t.getHours())}:${P(t.getMinutes())}${n === "second" ? `:${P(t.getSeconds())}` : ""}`;
|
|
24
24
|
if (e === "time") return r;
|
|
25
|
-
let i =
|
|
25
|
+
let i = y(t);
|
|
26
26
|
return e === "date" ? i : `${i}T${r}`;
|
|
27
27
|
}
|
|
28
28
|
function N(e, t, n = /* @__PURE__ */ new Date()) {
|
|
@@ -84,7 +84,7 @@ function V(e, t, n) {
|
|
|
84
84
|
return n === "datetime" ? `${R(e)}T${t}` : t;
|
|
85
85
|
}
|
|
86
86
|
function ee(e, t) {
|
|
87
|
-
return e === "date" ?
|
|
87
|
+
return e === "date" ? b(t) : e === "datetime" ? !!L(t.replace(/(\d{2}:\d{2}:\d{2})\.\d{1,3}$/, "$1")) : !!N(e, t);
|
|
88
88
|
}
|
|
89
89
|
function H(e) {
|
|
90
90
|
let t = N("time", e);
|
|
@@ -216,18 +216,18 @@ function re(e, t, n = "") {
|
|
|
216
216
|
let { kind: r = "date", selection: i = "single", value: a, calendar: o = {} } = e, s = {
|
|
217
217
|
...Y,
|
|
218
218
|
...e.text
|
|
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) =>
|
|
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) => b(e) && (!o.minDate || e >= o.minDate) && (!o.maxDate || e <= o.maxDate) && !o.isDateDisabled?.(e) && !o.isMonthDisabled?.(x(e, o.calendarSystem)), h = (t) => ee(r, t) && (r === "time" || m(R(t))) && (r === "date" || U(z(t), {
|
|
220
220
|
min: e.minTime,
|
|
221
221
|
max: e.maxTime,
|
|
222
222
|
step: e.timeStep
|
|
223
|
-
})), g = c && d ?
|
|
223
|
+
})), g = c && d ? C(R(u), R(d)) : 0, _ = i === "multiple" ? p.length : g, v = !p.length && !f || i === "single" || (!o.min || _ >= o.min) && (o.max === void 0 || _ <= o.max), y = (() => {
|
|
224
224
|
if (r === "time" || !c?.to || !o.excludeDisabled || !p.every(h)) return !0;
|
|
225
225
|
if (g > 366e3) return !1;
|
|
226
|
-
for (let e = R(u); e <= R(d); e =
|
|
226
|
+
for (let e = R(u); e <= R(d); e = w(e, 1)) if (!m(e)) return !1;
|
|
227
227
|
return !0;
|
|
228
|
-
})(),
|
|
228
|
+
})(), S = "", T = r === "time" || p.every((e) => {
|
|
229
229
|
let n = R(e);
|
|
230
|
-
if (!
|
|
230
|
+
if (!b(n)) return !1;
|
|
231
231
|
let r = o.validateSelection?.(n, {
|
|
232
232
|
month: o.month ?? t,
|
|
233
233
|
view: o.defaultView ?? "month",
|
|
@@ -240,11 +240,11 @@ function re(e, t, n = "") {
|
|
|
240
240
|
to: n
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
return typeof r == "string" && (
|
|
244
|
-
}), E = !n &&
|
|
243
|
+
return typeof r == "string" && (S = r), r !== !1 && typeof r != "string";
|
|
244
|
+
}), E = !n && v && T && y && (!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);
|
|
245
245
|
return {
|
|
246
246
|
valid: E,
|
|
247
|
-
errorMessage: n ||
|
|
247
|
+
errorMessage: n || S || (!p.length && f ? D("requiredValue") : c && (!u || !d) ? D("invalidRange") : O.some((e) => !b(e)) ? D("invalidDate") : O.some((e) => o.minDate && e < o.minDate || o.maxDate && e > o.maxDate) ? D("outOfRange") : O.some((e) => !m(e)) || !y ? D("disabledDate") : c && (!d || u > d) ? D("invalidRange") : !v || i === "multiple" && new Set(p).size !== p.length ? D("selectionCount") : s.invalid),
|
|
248
248
|
validDate: m
|
|
249
249
|
};
|
|
250
250
|
}
|
|
@@ -410,10 +410,10 @@ function oe(t) {
|
|
|
410
410
|
}, [h] = n(() => l("rv-date-error")), g = (e) => r === "date" ? e : R(e), _ = {
|
|
411
411
|
locale: u.locale,
|
|
412
412
|
...typeof t.dateInput == "object" ? t.dateInput : {}
|
|
413
|
-
}, [
|
|
413
|
+
}, [v, y] = n(t.endpoint === "to" ? "to" : void 0), [C, w] = n(""), T = s && !Array.isArray(s) && typeof s == "object" ? s : void 0, O = typeof s == "string" ? s : "", k = Array.isArray(s) ? s : [], A = T?.from ?? "", j = T?.to ?? "", M = R(r === "time" ? S() : t.endpoint === "to" ? j : A || O || k[0] || ""), [N, P] = n(() => u.defaultMonth ?? x(b(M) ? M : S(), u.calendarSystem)), F = t.required ?? u.required ?? !1, { valid: I, errorMessage: L, validDate: ee } = re(t, N, C);
|
|
414
414
|
i(() => t.onValidityChange?.(!!I), [I]);
|
|
415
415
|
let H = (e, n = !1) => {
|
|
416
|
-
|
|
416
|
+
w(""), c(e), (t.onValidChange || n) && re({
|
|
417
417
|
...t,
|
|
418
418
|
value: e
|
|
419
419
|
}, N).valid && (t.onValidChange?.(e), n && t.onSelectionComplete?.(e));
|
|
@@ -421,7 +421,7 @@ function oe(t) {
|
|
|
421
421
|
H(e, r === "date" && a !== "multiple");
|
|
422
422
|
}, W = (e) => {
|
|
423
423
|
if (!ee(e)) return;
|
|
424
|
-
let t =
|
|
424
|
+
let t = x(e, u.calendarSystem);
|
|
425
425
|
t !== (u.month ?? N) && (P(t), u.onMonthChange?.(t));
|
|
426
426
|
}, G = (e, t) => {
|
|
427
427
|
if (typeof t != "string") return;
|
|
@@ -453,21 +453,21 @@ function oe(t) {
|
|
|
453
453
|
},
|
|
454
454
|
required: F,
|
|
455
455
|
onInvalidSelection: (e, t) => {
|
|
456
|
-
|
|
456
|
+
w(e || m.invalid), u.onInvalidSelection?.(e, t);
|
|
457
457
|
}
|
|
458
458
|
}, J;
|
|
459
459
|
if (a === "multiple") J = {
|
|
460
460
|
...q,
|
|
461
461
|
mode: "multiple",
|
|
462
|
-
selected: k.filter(
|
|
462
|
+
selected: k.filter(b),
|
|
463
463
|
onSelectionChange: (e) => U([...e])
|
|
464
464
|
};
|
|
465
|
-
else if (a === "range" && !
|
|
465
|
+
else if (a === "range" && !v) J = {
|
|
466
466
|
...q,
|
|
467
467
|
mode: "range",
|
|
468
|
-
selected: A &&
|
|
468
|
+
selected: A && b(R(A)) ? {
|
|
469
469
|
from: R(A),
|
|
470
|
-
...j &&
|
|
470
|
+
...j && b(R(j)) ? { to: R(j) } : {}
|
|
471
471
|
} : void 0,
|
|
472
472
|
onSelectionChange: (e) => U(e ? {
|
|
473
473
|
from: B(e.from, A, r),
|
|
@@ -475,16 +475,16 @@ function oe(t) {
|
|
|
475
475
|
} : null)
|
|
476
476
|
};
|
|
477
477
|
else {
|
|
478
|
-
let e = a === "range" ?
|
|
478
|
+
let e = a === "range" ? v === "to" ? j : A : O;
|
|
479
479
|
J = {
|
|
480
480
|
...q,
|
|
481
481
|
mode: "single",
|
|
482
|
-
selected: e &&
|
|
482
|
+
selected: e && b(R(e)) ? R(e) : void 0,
|
|
483
483
|
onSelectionChange: (t) => {
|
|
484
484
|
U(a === "range" ? t ? {
|
|
485
485
|
from: A,
|
|
486
486
|
to: j,
|
|
487
|
-
[
|
|
487
|
+
[v ?? "from"]: B(t, e, r)
|
|
488
488
|
} : null : t ? B(t, O, r) : null);
|
|
489
489
|
}
|
|
490
490
|
};
|
|
@@ -496,16 +496,16 @@ function oe(t) {
|
|
|
496
496
|
class: `rv-temporal-picker__endpoints ${t.classNames?.endpoints ?? ""}`,
|
|
497
497
|
children: [/* @__PURE__ */ o(p, {
|
|
498
498
|
"aria-label": `${m.startDate}: ${A}`,
|
|
499
|
-
"aria-pressed":
|
|
499
|
+
"aria-pressed": v !== "to",
|
|
500
500
|
onClick: () => {
|
|
501
|
-
|
|
501
|
+
y(void 0), A && P(x(R(A), u.calendarSystem)), w("");
|
|
502
502
|
},
|
|
503
503
|
children: A ? R(A) : "—"
|
|
504
504
|
}), /* @__PURE__ */ o(p, {
|
|
505
505
|
"aria-label": `${m.endDate}: ${j}`,
|
|
506
|
-
"aria-pressed":
|
|
506
|
+
"aria-pressed": v === "to",
|
|
507
507
|
onClick: () => {
|
|
508
|
-
|
|
508
|
+
y("to"), j && P(x(R(j), u.calendarSystem)), w("");
|
|
509
509
|
},
|
|
510
510
|
children: j ? R(j) : "—"
|
|
511
511
|
})]
|
|
@@ -518,13 +518,13 @@ function oe(t) {
|
|
|
518
518
|
class: "rv-temporal-picker__endpoint",
|
|
519
519
|
role: "group",
|
|
520
520
|
"aria-label": m.startDate,
|
|
521
|
-
children: [/* @__PURE__ */ o(
|
|
521
|
+
children: [/* @__PURE__ */ o(E, {
|
|
522
522
|
label: m.startDate,
|
|
523
523
|
value: g(A),
|
|
524
524
|
options: _,
|
|
525
525
|
invalid: !I,
|
|
526
526
|
errorId: h,
|
|
527
|
-
onFocus: () =>
|
|
527
|
+
onFocus: () => y(void 0),
|
|
528
528
|
onChange: (e) => G("from", e)
|
|
529
529
|
}), r === "datetime" && K(A, m.startTime, (e) => H({
|
|
530
530
|
from: V(A, e, r),
|
|
@@ -534,19 +534,19 @@ function oe(t) {
|
|
|
534
534
|
class: "rv-temporal-picker__endpoint",
|
|
535
535
|
role: "group",
|
|
536
536
|
"aria-label": m.endDate,
|
|
537
|
-
children: [/* @__PURE__ */ o(
|
|
537
|
+
children: [/* @__PURE__ */ o(E, {
|
|
538
538
|
label: m.endDate,
|
|
539
539
|
value: g(j),
|
|
540
540
|
options: _,
|
|
541
541
|
invalid: !I,
|
|
542
542
|
errorId: h,
|
|
543
|
-
onFocus: () =>
|
|
543
|
+
onFocus: () => y("to"),
|
|
544
544
|
onChange: (e) => G("to", e)
|
|
545
545
|
}), r === "datetime" && K(j, m.endTime, (e) => H({
|
|
546
546
|
from: A,
|
|
547
547
|
to: V(j, e, r)
|
|
548
548
|
}), !1)]
|
|
549
|
-
})] }) : /* @__PURE__ */ o(
|
|
549
|
+
})] }) : /* @__PURE__ */ o(E, {
|
|
550
550
|
label: a === "multiple" ? m.dates : m.date,
|
|
551
551
|
value: a === "multiple" ? k : g(O),
|
|
552
552
|
multiple: a === "multiple",
|
|
@@ -561,7 +561,7 @@ function oe(t) {
|
|
|
561
561
|
}),
|
|
562
562
|
/* @__PURE__ */ o("div", {
|
|
563
563
|
class: "rv-temporal-picker__body",
|
|
564
|
-
children: [r !== "time" && /* @__PURE__ */ o(
|
|
564
|
+
children: [r !== "time" && /* @__PURE__ */ o(D, { ...J }), r !== "date" && a !== "range" && /* @__PURE__ */ o(Z, {
|
|
565
565
|
collapsible: r === "datetime" && d,
|
|
566
566
|
value: z(O),
|
|
567
567
|
label: m.time,
|
|
@@ -628,14 +628,14 @@ function oe(t) {
|
|
|
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("");
|
|
631
|
-
}, g = t.autoApply !== !1,
|
|
631
|
+
}, g = t.autoApply !== !1, y = JSON.stringify(c) !== JSON.stringify(e), b = (e) => {
|
|
632
632
|
let t = r(e) || "";
|
|
633
633
|
return m(t), !t;
|
|
634
|
-
},
|
|
635
|
-
return
|
|
634
|
+
}, x = () => u ? b(c) : !1;
|
|
635
|
+
return v(() => !y || x(), g), /* @__PURE__ */ o("div", {
|
|
636
636
|
class: `rv-temporal-draft${t.kind === "time" ? " rv-temporal-draft--time" : ""}`,
|
|
637
637
|
onKeyDown: (e) => {
|
|
638
|
-
e.key === "Enter" && !e.isComposing && (e.ctrlKey || e.metaKey || g && e.target instanceof HTMLInputElement) && (e.preventDefault(),
|
|
638
|
+
e.key === "Enter" && !e.isComposing && (e.ctrlKey || e.metaKey || g && e.target instanceof HTMLInputElement) && (e.preventDefault(), x());
|
|
639
639
|
},
|
|
640
640
|
children: [
|
|
641
641
|
/* @__PURE__ */ o(oe, {
|
|
@@ -644,21 +644,21 @@ function Q({ value: e, options: t, apply: r, cancel: i, onValidChange: a, cleara
|
|
|
644
644
|
onChange: h,
|
|
645
645
|
onValidChange: a,
|
|
646
646
|
onValidityChange: d,
|
|
647
|
-
onSelectionComplete: g ?
|
|
647
|
+
onSelectionComplete: g ? b : void 0
|
|
648
648
|
}),
|
|
649
649
|
p && /* @__PURE__ */ o(f, {
|
|
650
650
|
tone: "danger",
|
|
651
651
|
children: p
|
|
652
652
|
}),
|
|
653
|
-
/* @__PURE__ */ o(
|
|
653
|
+
/* @__PURE__ */ o(_, {
|
|
654
654
|
text: t.actions,
|
|
655
655
|
showConfirm: t.showActions ?? !g,
|
|
656
656
|
disabled: !u,
|
|
657
|
-
apply:
|
|
657
|
+
apply: x,
|
|
658
658
|
cancel: i,
|
|
659
659
|
clear: !s || (t.required ?? t.calendar?.required) ? void 0 : () => {
|
|
660
660
|
let e = t.selection === "multiple" ? [] : null;
|
|
661
|
-
h(e), g &&
|
|
661
|
+
h(e), g && b(e);
|
|
662
662
|
}
|
|
663
663
|
})
|
|
664
664
|
]
|
|
@@ -707,7 +707,7 @@ function se({ value: e, kind: t = "date", picker: n, livePickerUpdates: r, onVal
|
|
|
707
707
|
let t = typeof e == "string" ? e : "";
|
|
708
708
|
t === i || v.current.input.disabled || v.current.input.readOnly || (i = t, v.current.onValueChange?.(t));
|
|
709
709
|
};
|
|
710
|
-
_.current =
|
|
710
|
+
_.current = O(h.current, (i) => /* @__PURE__ */ o(Q, {
|
|
711
711
|
value: e || null,
|
|
712
712
|
options: {
|
|
713
713
|
...n,
|
|
@@ -733,7 +733,7 @@ function se({ value: e, kind: t = "date", picker: n, livePickerUpdates: r, onVal
|
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
},
|
|
736
|
-
children: /* @__PURE__ */ o(u, { svg: t === "time" ? g :
|
|
736
|
+
children: /* @__PURE__ */ o(u, { svg: t === "time" ? g : T })
|
|
737
737
|
})]
|
|
738
738
|
});
|
|
739
739
|
}
|
|
@@ -748,7 +748,7 @@ function ce(e, t, n) {
|
|
|
748
748
|
disabled: e.disabled || e.readOnly,
|
|
749
749
|
"aria-label": X(t.kind ?? "date", t.text),
|
|
750
750
|
onClick: () => {
|
|
751
|
-
e.disabled || e.readOnly || (r ? r.close() : r =
|
|
751
|
+
e.disabled || e.readOnly || (r ? r.close() : r = O(e, (r) => /* @__PURE__ */ o(Q, {
|
|
752
752
|
value: e.value || null,
|
|
753
753
|
options: {
|
|
754
754
|
...t,
|
|
@@ -769,7 +769,7 @@ function ce(e, t, n) {
|
|
|
769
769
|
}
|
|
770
770
|
}));
|
|
771
771
|
},
|
|
772
|
-
children: /* @__PURE__ */ o(u, { svg: t.kind === "time" ? g :
|
|
772
|
+
children: /* @__PURE__ */ o(u, { svg: t.kind === "time" ? g : T })
|
|
773
773
|
}));
|
|
774
774
|
e.after(i);
|
|
775
775
|
let a = e.ownerDocument.defaultView?.MutationObserver, l = a ? new a(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-DzTStiZX.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
3
3
|
import { createPreactElement as n, releasePreactElement as r } from "../preact-mount.js";
|
|
4
|
-
import { n as i, t as a } from "./native-control-
|
|
5
|
-
import { r as o } from "./popup-
|
|
4
|
+
import { n as i, t as a } from "./native-control-DjJ8Na3T.js";
|
|
5
|
+
import { r as o } from "./popup-HEUnOeq-.js";
|
|
6
6
|
import { t as s } from "./xmark-DQRQfXZI.js";
|
|
7
7
|
//#region package/dialog/dialog-action-footer.tsx
|
|
8
8
|
function c({ cancel: e = {}, save: n = {}, deleteAction: r = !1, reset: i = !1, start: o, end: s, children: c, actionsClass: l = "", class: u = "", ...d }) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-DzTStiZX.js";
|
|
2
2
|
import { c as t, i as n, t as r } from "./hooks.module-CXpO2xq6.js";
|
|
3
3
|
import { t as i } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
4
|
-
import { l as a, n as o } from "./native-control-
|
|
4
|
+
import { l as a, n as o } from "./native-control-DjJ8Na3T.js";
|
|
5
5
|
import { SegmentedSwitch as s } from "../segmented-switch/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { EditorActions as c } from "../editor-actions.js";
|
|
7
7
|
import { n as l } from "./editor-commit-BXIUX0As.js";
|
|
8
|
-
import {
|
|
8
|
+
import { SingleValueSlider as u } from "../filter/filters/slider/single.js";
|
|
9
9
|
//#region internal/dates/src/duration.ts
|
|
10
10
|
var d = {
|
|
11
11
|
m: "minute",
|
|
@@ -112,10 +112,10 @@ var v = {
|
|
|
112
112
|
year: "year"
|
|
113
113
|
};
|
|
114
114
|
function y(t) {
|
|
115
|
-
let { unit: n, amount: r } = t, o = t.onCommit ?? t.onChange,
|
|
115
|
+
let { unit: n, amount: r } = t, o = t.onCommit ?? t.onChange, c = [...new Set(t.allowedUnits ?? Object.keys(v))], l = typeof t.slider == "object" ? t.slider : {}, d = Number.isFinite(t.min) ? Math.max(0, t.min) : 0, f = Math.max(d + 100, r), p = Number.isFinite(t.max) ? t.max : Number.isFinite(l.max) ? l.max : f, m = Number.isFinite(l.step) && l.step > 0 ? l.step : 1;
|
|
116
116
|
return /* @__PURE__ */ i(e, { children: [t.slider && /* @__PURE__ */ i("span", {
|
|
117
117
|
class: "rv-duration-field__slider",
|
|
118
|
-
children: [/* @__PURE__ */ i(
|
|
118
|
+
children: [/* @__PURE__ */ i(u, {
|
|
119
119
|
min: d,
|
|
120
120
|
max: p,
|
|
121
121
|
step: m,
|
|
@@ -136,13 +136,13 @@ function y(t) {
|
|
|
136
136
|
})]
|
|
137
137
|
}), t.unitButtons && /* @__PURE__ */ i("span", {
|
|
138
138
|
class: "rv-duration-field__modes",
|
|
139
|
-
children: [
|
|
139
|
+
children: [c.length === 0 ? null : c.length > 5 ? /* @__PURE__ */ i(a, {
|
|
140
140
|
className: "rv-select",
|
|
141
141
|
config: {
|
|
142
142
|
ariaLabel: t.unitLabel ?? "Duration unit",
|
|
143
143
|
topLayer: !0
|
|
144
144
|
},
|
|
145
|
-
source:
|
|
145
|
+
source: c.map((e) => ({
|
|
146
146
|
value: e,
|
|
147
147
|
label: t.unitLabels?.[e] ?? v[e]
|
|
148
148
|
})),
|
|
@@ -153,7 +153,7 @@ function y(t) {
|
|
|
153
153
|
role: "radiogroup",
|
|
154
154
|
ariaLabel: t.unitLabel ?? "Duration unit",
|
|
155
155
|
value: n,
|
|
156
|
-
options:
|
|
156
|
+
options: c.map((e) => ({
|
|
157
157
|
value: e,
|
|
158
158
|
label: t.unitLabels?.[e] ?? v[e],
|
|
159
159
|
ariaLabel: t.unitLabels?.[e] ?? e
|
|
@@ -237,7 +237,7 @@ function b(e) {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
function x({ value: e, options: t, apply: a, cancel: o }) {
|
|
240
|
-
let [s,
|
|
240
|
+
let [s, u] = n(!1), [d, f] = n(e), [p, m] = n(0), h = t.autoApply !== !1, g = r(!1), v = r(e), y = (e = !1) => {
|
|
241
241
|
let n = _(v.current, t);
|
|
242
242
|
return n.valid ? ((e || !h || g.current) && (g.current = !1, a(n.value)), !0) : !1;
|
|
243
243
|
};
|
|
@@ -255,8 +255,8 @@ function x({ value: e, options: t, apply: a, cancel: o }) {
|
|
|
255
255
|
onDraftChange: (e) => {
|
|
256
256
|
g.current = !0, v.current = e;
|
|
257
257
|
},
|
|
258
|
-
onValidityChange:
|
|
259
|
-
}, p), /* @__PURE__ */ i(
|
|
258
|
+
onValidityChange: u
|
|
259
|
+
}, p), /* @__PURE__ */ i(c, {
|
|
260
260
|
showConfirm: t.showActions ?? !h,
|
|
261
261
|
text: t.actions,
|
|
262
262
|
disabled: !s,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateAnchoredPopoverPosition as e } from "../core/anchored-popover.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
3
3
|
import { createPreactElement as n, releasePreactElement as r } from "../preact-mount.js";
|
|
4
|
-
import { i, r as a, t as o } from "./top-layer-popup-
|
|
4
|
+
import { i, r as a, t as o } from "./top-layer-popup-DU1r_2v5.js";
|
|
5
5
|
import { t as s } from "./editor-commit-BXIUX0As.js";
|
|
6
6
|
//#region package/core/editor-popup-position.ts
|
|
7
7
|
function c(t, n, r, { gap: i = 4, inset: a = 8, fitViewport: o = !1 } = {}) {
|
|
@@ -2,10 +2,10 @@ import { c as e } from "./preact.module-DzTStiZX.js";
|
|
|
2
2
|
import { a as t, i as n, r, t as i } from "./hooks.module-CXpO2xq6.js";
|
|
3
3
|
import { t as a } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
4
4
|
import { SvgIcon as o } from "../icons/icon.js";
|
|
5
|
-
import { t as s } from "./native-control-
|
|
5
|
+
import { t as s } from "./native-control-DjJ8Na3T.js";
|
|
6
6
|
import { n as c } from "./delete-button-DQSK6G-4.js";
|
|
7
7
|
import { RemoveButton as l } from "../buttons/remove-button.js";
|
|
8
|
-
import { B as u, S as d } from "./controls-
|
|
8
|
+
import { B as u, S as d } from "./controls-Ip2E6jIu.js";
|
|
9
9
|
import { t as f } from "./chevron-right-DZ79RmYV.js";
|
|
10
10
|
import { t as p } from "./tooltip-text-CH_c2J-J.js";
|
|
11
11
|
import { DisclosureSummary as m } from "../form-controls/presentation.js";
|
|
@@ -148,6 +148,7 @@ function A({ children: e, className: t = "", ...n }) {
|
|
|
148
148
|
function j({ children: e, active: t = !1, label: n, className: r = "" }) {
|
|
149
149
|
return /* @__PURE__ */ a(p, {
|
|
150
150
|
className: `rv-configurator-status-badge ${r}`,
|
|
151
|
+
role: "img",
|
|
151
152
|
"data-active": t ? "true" : void 0,
|
|
152
153
|
title: n,
|
|
153
154
|
"aria-label": n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, r as t } from "./preact.module-DzTStiZX.js";
|
|
2
2
|
import { r as n, t as r } from "./hooks.module-CXpO2xq6.js";
|
|
3
|
-
import { n as i } from "./component-metadata-
|
|
3
|
+
import { n as i } from "./component-metadata-B_hLjtM0.js";
|
|
4
4
|
//#region package/framework-mount.ts
|
|
5
5
|
function a(i, a) {
|
|
6
6
|
let o = /* @__PURE__ */ new Map(), s = !1, c = 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e, r as t } from "./preact.module-DzTStiZX.js";
|
|
2
2
|
import { c as n, i as r, r as i, t as a } from "./hooks.module-CXpO2xq6.js";
|
|
3
|
-
import { E as o, _ as s, a as c, c as l, i as u, m as d, n as f, o as p, p as m, r as h, t as g, u as _, v, y } from "./request-trail-
|
|
3
|
+
import { E as o, _ as s, a as c, c as l, i as u, m as d, n as f, o as p, p as m, r as h, t as g, u as _, v, y } from "./request-trail-D5PKrBlC.js";
|
|
4
4
|
import { t as b } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
5
|
-
import { n as x } from "./popup-
|
|
6
|
-
import { p as S, t as C } from "./controls-
|
|
5
|
+
import { n as x } from "./popup-HEUnOeq-.js";
|
|
6
|
+
import { p as S, t as C } from "./controls-Ip2E6jIu.js";
|
|
7
7
|
import { HistoryControls as w } from "../history-controls.js";
|
|
8
8
|
import { n as T } from "./render-C6PFWlqh.js";
|
|
9
9
|
//#region package/ai/transcript.ts
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { i as e } from "./hooks.module-CXpO2xq6.js";
|
|
2
|
+
import { t } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
3
|
+
import { createPreactElement as n, releasePreactElement as r, renderPreactInto as i } from "../preact-mount.js";
|
|
4
|
+
import { R as a } from "./controls-Ip2E6jIu.js";
|
|
5
|
+
import { t as o } from "./color-picker-BWBM9GE1.js";
|
|
6
|
+
//#region package/icons/drawing-tools.ts
|
|
7
|
+
var s = {
|
|
8
|
+
link: "M10 13a5 5 0 0 0 7 .5l3-3a5 5 0 0 0-7-7l-2 2 M14 11a5 5 0 0 0-7-.5l-3 3a5 5 0 0 0 7 7l2-2",
|
|
9
|
+
select: "M5 3 19 12 12 13 9 20Z M12 13l5 7",
|
|
10
|
+
rectangle: "M4 5h16v14H4Z",
|
|
11
|
+
line: "M5 19 19 5 M4 18l2 2 M18 4l2 2",
|
|
12
|
+
arrow: "M5 19 19 5 M9 5h10v10",
|
|
13
|
+
note: "M5 3h14v14l-4 4H5Z M15 21v-4h4 M8 8h8 M8 12h6"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region package/color-palette/native.tsx
|
|
17
|
+
function c(n) {
|
|
18
|
+
let [r, i] = e(n.value);
|
|
19
|
+
return /* @__PURE__ */ t(o, {
|
|
20
|
+
...n,
|
|
21
|
+
value: r,
|
|
22
|
+
customHexLabel: n.customLabel,
|
|
23
|
+
onChange: (e) => {
|
|
24
|
+
i(e), n.onChange(e);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function l(e, i) {
|
|
29
|
+
let a = n(e.ownerDocument, /* @__PURE__ */ t(c, { ...i }));
|
|
30
|
+
return e.append(a), { destroy() {
|
|
31
|
+
r(a);
|
|
32
|
+
} };
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region package/alert-native.tsx
|
|
36
|
+
function u(e, { content: n, ...r }) {
|
|
37
|
+
i(e, /* @__PURE__ */ t(a, {
|
|
38
|
+
...r,
|
|
39
|
+
children: n === void 0 ? r.children : typeof n == "string" ? n : /* @__PURE__ */ t("span", { ref: (e) => {
|
|
40
|
+
e && e.replaceChildren(n);
|
|
41
|
+
} })
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
function d(e, r) {
|
|
45
|
+
let i = n(e, /* @__PURE__ */ t("div", {}));
|
|
46
|
+
return u(i, r), i;
|
|
47
|
+
}
|
|
48
|
+
function f(e) {
|
|
49
|
+
i(e, null), r(e);
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { s as a, l as i, f as n, u as r, d as t };
|