@revolist/ui 4.0.3-rc → 4.0.5-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/OWNERSHIP.md +1 -1
- package/README.md +16 -0
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/badge.view-D30pMUfi.js +14 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-xpZ0v3xf.js → calendar-DsXIhybL.js} +19 -19
- package/_chunks/chart-frame-CuZABXVI.js +141 -0
- package/_chunks/check-BwI7iCAm.js +4 -0
- package/_chunks/choice-chips-BhP8MZjs.js +126 -0
- package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/color-picker-B4TQvxxB.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-qKctqdzk.js} +281 -265
- package/_chunks/configurator-actions-C19O1rda.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/{control-AHKXD5Eu.js → control-BkWukVt9.js} +13 -13
- package/_chunks/{controls-DsNi8V8I.js → controls-BLQnWEd7.js} +147 -155
- package/_chunks/{date-control-DrVFX13g.js → date-control-Cgw5PwlZ.js} +1 -1
- package/_chunks/date-time-B8rK5gpC.js +784 -0
- package/_chunks/{dialog.parts-CKGkC5zP.js → dialog.parts-BSbvnEwX.js} +21 -21
- package/_chunks/{duration-CL68Em0o.js → duration-DwFXonEV.js} +1 -4
- package/_chunks/editor-popup-BaaxL89T.js +81 -0
- package/_chunks/field-configurator-1eQP0tKy.js +223 -0
- package/_chunks/icon-toolbar-xbqa0hu9.js +128 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-D1i5DLRn.js +266 -0
- package/_chunks/native-control-DO0d1kgx.js +636 -0
- package/_chunks/{number-input-BKwA5FnM.js → number-input-s9ddPwX6.js} +7 -7
- package/_chunks/{picker-h1P5RUgp.js → picker-AY05b41W.js} +2 -2
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/{popup-CT2uD3go.js → popup-UXGCiv3n.js} +97 -97
- package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-BEs_QFZC.js} +1 -1
- package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-A49l172e.js} +1 -1
- package/_chunks/request-trail-DCOfa5zw.js +753 -0
- package/_chunks/rich-text-xfMWadGi.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -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/ai/_chat.scss +28 -3
- package/ai/_style.scss +55 -2
- package/ai/chat.d.ts +3 -1
- package/ai/components.d.ts +13 -2
- package/ai/index.d.ts +1 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +17 -1
- package/ai/results/_style.scss +80 -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 +2 -0
- package/ai/translations.d.ts +1 -1
- package/assignee/index.js +2 -2
- package/avatar/index.js +32 -31
- package/badge.view.d.ts +8 -0
- package/brush-range/component.js +28 -27
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +16 -16
- package/calendar/_calendar.scss +2 -2
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- 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 +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +6 -1
- 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 +61 -0
- package/configurator-drop-zone.d.ts +38 -0
- package/configurator-drop-zone.js +64 -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-presentation.js +24 -19
- package/controls.d.ts +1 -2
- package/controls.js +4 -3
- 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/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/index.js +1 -1
- package/date-time/style.scss +50 -7
- package/date-time/time-selection.d.ts +3 -1
- package/dialog/dialog.dom.js +8 -8
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +1 -57
- 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.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +2 -1
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +1 -1
- package/field-configurator.d.ts +19 -0
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/filter/filters/slider/_slider.scss +0 -17
- 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.js +1 -1
- package/form-controls/index.js +6 -6
- package/form-controls/presentation.js +12 -12
- package/formatting/control-tooltip.d.ts +2 -27
- package/formatting/index.js +22 -21
- package/formatting/styles.scss +2 -47
- package/framework.js +215 -208
- package/history-controls.js +27 -1
- package/icon-toolbar.d.ts +58 -0
- package/icon-toolbar.js +1 -0
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +1 -2
- package/native-control.js +1 -1
- package/native-styles.css +1 -1
- package/native.js +45 -42
- package/number-input/index.js +1 -1
- package/package.json +71 -2
- package/pagination.js +1 -1
- package/pdf-viewer/index.js +1 -1
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +7 -0
- package/preact.js +68 -61
- package/rating-choice.js +1 -1
- package/react.d.ts +5 -0
- package/react.js +67 -65
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +4 -4
- package/rich-text/engine.d.ts +1 -0
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +4 -0
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +2 -0
- package/rich-text/style.scss +165 -70
- package/rich-text/syntax.d.ts +5 -0
- package/rich-text/translations.d.ts +2 -0
- package/select.d.ts +3 -1
- package/select.js +1 -1
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/popover.js +4 -4
- package/styles/_compositions.scss +3 -3
- package/styles/_field-configurator.scss +146 -0
- package/styles/_fields-grid.scss +35 -0
- package/styles/_primitives.scss +25 -18
- package/styles/configurator-actions.scss +141 -0
- package/styles/legacy-pagination.css +19 -2
- package/styles.css +1 -1
- package/surfaces.d.ts +3 -0
- package/surfaces.js +34 -131
- package/surfaces.view.d.ts +4 -34
- package/svelte.js +1 -1
- package/switch/index.js +15 -14
- package/time-grid.js +37 -36
- package/timeline-track/index.js +2 -2
- package/ui.css +1 -1
- package/vue.d.ts +24 -9
- package/vue.js +118 -116
- package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
- package/_chunks/choice-chips-CHQTUdLs.js +0 -110
- package/_chunks/color-picker-CudqPYZo.js +0 -138
- package/_chunks/control-tooltip-uscKfAnV.js +0 -100
- package/_chunks/date-time-qIhp5vaX.js +0 -768
- package/_chunks/editor-popup-WDdtVDNA.js +0 -81
- package/_chunks/history-controls-B3u3INEK.js +0 -27
- package/_chunks/mount-DQ1cpppK.js +0 -257
- package/_chunks/native-control-C_yok8_-.js +0 -605
- package/_chunks/request-trail-DSlFix6i.js +0 -618
- package/_chunks/rich-text-CH7gIqOS.js +0 -636
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { calculateAnchoredPopoverPosition as e } from "../core/anchored-popover.js";
|
|
2
|
+
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createPreactElement as n, releasePreactElement as r } from "../preact-mount.js";
|
|
4
|
+
import { o as i, r as a, t as o } from "./top-layer-popup-CNSDdfJV.js";
|
|
5
|
+
import { t as s } from "./tooltip-session-B6X6x8G_.js";
|
|
6
|
+
import { createControlId as c } from "../core/control-id.js";
|
|
7
|
+
import { inheritUiMotion as l } from "../core/motion.js";
|
|
8
|
+
//#region src/core/popover-controller.tsx
|
|
9
|
+
var u = /* @__PURE__ */ new WeakMap(), d = class {
|
|
10
|
+
active;
|
|
11
|
+
get isOpen() {
|
|
12
|
+
return !!this.active;
|
|
13
|
+
}
|
|
14
|
+
open(t) {
|
|
15
|
+
this.close(!1);
|
|
16
|
+
let { anchor: n, content: r } = t, s = n.ownerDocument, c = s.defaultView, d = u.get(s) ?? [];
|
|
17
|
+
u.set(s, d);
|
|
18
|
+
let f = r.parentNode, p = r.nextSibling, m = r.hidden, h = r.getAttribute("style"), g = r.getAttribute("popover"), _ = l(n, r), v = () => {
|
|
19
|
+
if (!n.isConnected) {
|
|
20
|
+
x(!1);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
let a = (t.placement === "above" ? i : e)(n.getBoundingClientRect(), r.getBoundingClientRect(), {
|
|
24
|
+
width: s.documentElement.clientWidth || c?.innerWidth || 0,
|
|
25
|
+
height: s.documentElement.clientHeight || c?.innerHeight || 0
|
|
26
|
+
});
|
|
27
|
+
Object.assign(r.style, {
|
|
28
|
+
left: `${a.left}px`,
|
|
29
|
+
top: `${a.top}px`
|
|
30
|
+
});
|
|
31
|
+
}, y, b = !1, x = (e = t.restoreFocus !== !1) => {
|
|
32
|
+
if (b) return;
|
|
33
|
+
b = !0, s.removeEventListener("pointerdown", S, !0), r.removeEventListener("keydown", C), s.removeEventListener("keydown", C), c?.removeEventListener("resize", v), s.removeEventListener("scroll", v, !0), w?.disconnect();
|
|
34
|
+
let i = d.indexOf(r);
|
|
35
|
+
i !== -1 && d.splice(i, 1), o(r, y), _(), f?.isConnected ? f.insertBefore(r, p?.parentNode === f ? p : null) : r.remove(), h === null ? r.removeAttribute("style") : r.setAttribute("style", h), r.hidden = m, g === null ? r.removeAttribute("popover") : r.setAttribute("popover", g), this.active?.content === r && (this.active = void 0), e && n.isConnected && n.focus({ preventScroll: !0 }), t.onClose?.();
|
|
36
|
+
}, S = (e) => {
|
|
37
|
+
if (d.at(-1) !== r) return;
|
|
38
|
+
let i = e.composedPath();
|
|
39
|
+
t.closeOnOutside !== !1 && !i.includes(n) && !i.includes(r) && x(!1);
|
|
40
|
+
}, C = (e) => {
|
|
41
|
+
d.at(-1) === r && e.key === "Escape" && t.closeOnEscape !== !1 && !e.defaultPrevented && (e.preventDefault(), e.stopPropagation(), x());
|
|
42
|
+
};
|
|
43
|
+
(t.appendTo ?? s.body).append(r), r.hidden = !1, Object.assign(r.style, {
|
|
44
|
+
position: "fixed",
|
|
45
|
+
inset: "auto",
|
|
46
|
+
margin: "0"
|
|
47
|
+
}), y = a(r, t.display ?? "block");
|
|
48
|
+
let w = c?.ResizeObserver ? new c.ResizeObserver(v) : void 0;
|
|
49
|
+
return w?.observe(n), w?.observe(r), this.active = {
|
|
50
|
+
content: r,
|
|
51
|
+
close: x,
|
|
52
|
+
position: v
|
|
53
|
+
}, d.push(r), s.addEventListener("pointerdown", S, !0), r.addEventListener("keydown", C), s.addEventListener("keydown", C), c?.addEventListener("resize", v), s.addEventListener("scroll", v, !0), v(), {
|
|
54
|
+
close: x,
|
|
55
|
+
refresh: v
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
refresh() {
|
|
59
|
+
this.active?.position();
|
|
60
|
+
}
|
|
61
|
+
close(e) {
|
|
62
|
+
this.active?.close(e);
|
|
63
|
+
}
|
|
64
|
+
destroy() {
|
|
65
|
+
this.close(!1);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
function f(e, r = "grid-tooltip") {
|
|
69
|
+
return n(e, /* @__PURE__ */ t("div", {
|
|
70
|
+
id: c("rv-tooltip"),
|
|
71
|
+
class: r,
|
|
72
|
+
role: "tooltip",
|
|
73
|
+
hidden: !0
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
var p = class {
|
|
77
|
+
release;
|
|
78
|
+
bind(e, t, n = {}) {
|
|
79
|
+
this.destroy();
|
|
80
|
+
let i = n.surface ?? f(e.ownerDocument, "rv-tooltip");
|
|
81
|
+
i.textContent = t;
|
|
82
|
+
let a = new s();
|
|
83
|
+
a.setSurface(i), a.onEscape = n.onEscape;
|
|
84
|
+
let o = n.trigger === "click", c = e.getAttribute("aria-expanded");
|
|
85
|
+
o && e.setAttribute("aria-expanded", "false"), a.onHide = () => {
|
|
86
|
+
o && e.setAttribute("aria-expanded", "false");
|
|
87
|
+
};
|
|
88
|
+
let l = () => {
|
|
89
|
+
a.show(e), o && e.setAttribute("aria-expanded", String(a.isOpen));
|
|
90
|
+
}, u = () => a.isOpen ? a.hide() : l(), d = () => a.focus(e), p = () => a.blur(), m = () => a.leave(e), h = () => {
|
|
91
|
+
a.pointerDown(), a.hide();
|
|
92
|
+
}, g = (e) => a.keyDown(e);
|
|
93
|
+
return o ? e.addEventListener("click", u) : (e.addEventListener("pointerenter", l), e.addEventListener("pointerleave", m), e.addEventListener("focus", d), e.addEventListener("blur", p), e.addEventListener("pointerdown", h), e.addEventListener("keydown", g)), this.release = () => {
|
|
94
|
+
a.destroy(), e.removeEventListener("click", u), e.removeEventListener("pointerenter", l), e.removeEventListener("pointerleave", m), e.removeEventListener("focus", d), e.removeEventListener("blur", p), e.removeEventListener("pointerdown", h), e.removeEventListener("keydown", g), o && (c === null ? e.removeAttribute("aria-expanded") : e.setAttribute("aria-expanded", c)), n.surface || r(i);
|
|
95
|
+
}, () => this.destroy();
|
|
96
|
+
}
|
|
97
|
+
destroy() {
|
|
98
|
+
this.release?.(), this.release = void 0;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
export { p as n, f as r, d as t };
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import { c as e, i as t, l as n, n as r, r as i, t as a } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { c as o, i as s, r as c, t as l } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { i as d, r as f, t as p } from "./top-layer-popup-CNSDdfJV.js";
|
|
5
|
+
import { inheritUiMotion as m } from "../core/motion.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
|
|
7
|
-
function
|
|
7
|
+
function h(e, t) {
|
|
8
8
|
for (var n in t) e[n] = t[n];
|
|
9
9
|
return e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function g(e, t) {
|
|
12
12
|
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
13
13
|
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
14
14
|
return !1;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function _(e, t) {
|
|
17
17
|
this.props = e, this.context = t;
|
|
18
18
|
}
|
|
19
|
-
(
|
|
20
|
-
return
|
|
19
|
+
(_.prototype = new a()).isPureReactComponent = !0, _.prototype.shouldComponentUpdate = function(e, t) {
|
|
20
|
+
return g(this.props, e) || g(this.state, t);
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var v = n.__b;
|
|
23
23
|
n.__b = function(e) {
|
|
24
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
24
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), v && v(e);
|
|
25
25
|
};
|
|
26
|
-
var
|
|
27
|
-
function
|
|
26
|
+
var y = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
27
|
+
function b(e) {
|
|
28
28
|
function t(t) {
|
|
29
|
-
var n =
|
|
29
|
+
var n = h({}, t);
|
|
30
30
|
return delete n.ref, e(n, t.ref || null);
|
|
31
31
|
}
|
|
32
|
-
return t.$$typeof =
|
|
32
|
+
return t.$$typeof = y, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var x = n.__e;
|
|
35
35
|
n.__e = function(e, t, n, r) {
|
|
36
36
|
if (e.then) {
|
|
37
37
|
for (var i, a = t; a = a.__;) if ((i = a.__c) && i.__c) return t.__e ?? (t.__e = n.__e, t.__k = n.__k), i.__c(e, t);
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
x(e, t, n, r);
|
|
40
40
|
};
|
|
41
|
-
var
|
|
42
|
-
function
|
|
41
|
+
var S = n.unmount;
|
|
42
|
+
function C(e, t, n) {
|
|
43
43
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(e) {
|
|
44
44
|
typeof e.__c == "function" && e.__c();
|
|
45
|
-
}), e.__c.__H = null), (e =
|
|
46
|
-
return
|
|
45
|
+
}), e.__c.__H = null), (e = h({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(e) {
|
|
46
|
+
return C(e, t, n);
|
|
47
47
|
})), e;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function w(e, t, n) {
|
|
50
50
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(e) {
|
|
51
|
-
return
|
|
51
|
+
return w(e, t, n);
|
|
52
52
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function T() {
|
|
55
55
|
this.__u = 0, this.o = null, this.__b = null;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function E(e) {
|
|
58
58
|
var t = e.__ && e.__.__c;
|
|
59
59
|
return t && t.__a && t.__a(e);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function D() {
|
|
62
62
|
this.i = null, this.l = null;
|
|
63
63
|
}
|
|
64
64
|
n.unmount = function(e) {
|
|
65
65
|
var t = e.__c;
|
|
66
|
-
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
67
|
-
}, (
|
|
66
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), S && S(e);
|
|
67
|
+
}, (T.prototype = new a()).__c = function(e, t) {
|
|
68
68
|
var n = t.__c, r = this;
|
|
69
69
|
r.o ??= [], r.o.push(n);
|
|
70
|
-
var i =
|
|
70
|
+
var i = E(r.__v), a = !1, o = function() {
|
|
71
71
|
a || r.__z || (a = !0, n.__R = null, i ? i(c) : c());
|
|
72
72
|
};
|
|
73
73
|
n.__R = o;
|
|
@@ -77,39 +77,39 @@ n.unmount = function(e) {
|
|
|
77
77
|
if (!--r.__u) {
|
|
78
78
|
if (r.state.__a) {
|
|
79
79
|
var e = r.state.__a;
|
|
80
|
-
r.__v.__k[0] =
|
|
80
|
+
r.__v.__k[0] = w(e, e.__c.__P, e.__c.__O);
|
|
81
81
|
}
|
|
82
82
|
var t;
|
|
83
83
|
for (r.setState({ __a: r.__b = null }); t = r.o.pop();) t.__P = s, t.forceUpdate();
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(o, o);
|
|
87
|
-
},
|
|
87
|
+
}, T.prototype.componentWillUnmount = function() {
|
|
88
88
|
this.o = [];
|
|
89
|
-
},
|
|
89
|
+
}, T.prototype.render = function(n, r) {
|
|
90
90
|
if (this.__b) {
|
|
91
91
|
if (this.__v.__k) {
|
|
92
92
|
var i = document.createElement("div"), a = this.__v.__k[0].__c;
|
|
93
|
-
this.__v.__k[0] =
|
|
93
|
+
this.__v.__k[0] = C(this.__b, i, a.__O = a.__P);
|
|
94
94
|
}
|
|
95
95
|
this.__b = null;
|
|
96
96
|
}
|
|
97
97
|
var o = r.__a && e(t, null, n.fallback);
|
|
98
98
|
return o && (o.__u &= -33), [e(t, null, r.__a ? null : n.children), o];
|
|
99
99
|
};
|
|
100
|
-
var
|
|
100
|
+
var O = function(e, t, n) {
|
|
101
101
|
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n;) {
|
|
102
102
|
for (; n.length > 3;) n.pop()();
|
|
103
103
|
if (n[1] < n[0]) break;
|
|
104
104
|
e.i = n = n[2];
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function k(e) {
|
|
108
108
|
return this.getChildContext = function() {
|
|
109
109
|
return e.context;
|
|
110
110
|
}, e.children;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function A(t) {
|
|
113
113
|
var n = this, r = t.h;
|
|
114
114
|
if (n.componentWillUnmount = function() {
|
|
115
115
|
i(null, n.v), n.v = null, n.h = null;
|
|
@@ -132,24 +132,24 @@ function k(t) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
i(e(
|
|
135
|
+
i(e(k, { context: n.context }, t.__v), n.v);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
var r = e(
|
|
137
|
+
function j(t, n) {
|
|
138
|
+
var r = e(A, {
|
|
139
139
|
__v: t,
|
|
140
140
|
h: n
|
|
141
141
|
});
|
|
142
142
|
return r.containerInfo = n, r;
|
|
143
143
|
}
|
|
144
|
-
(
|
|
145
|
-
var t = this, n =
|
|
144
|
+
(D.prototype = new a()).__a = function(e) {
|
|
145
|
+
var t = this, n = E(t.__v), r = t.l.get(e);
|
|
146
146
|
return r[0]++, function(i) {
|
|
147
147
|
var a = function() {
|
|
148
|
-
t.props.revealOrder ? (r.push(i),
|
|
148
|
+
t.props.revealOrder ? (r.push(i), O(t, e, r)) : i();
|
|
149
149
|
};
|
|
150
150
|
n ? n(a) : a();
|
|
151
151
|
};
|
|
152
|
-
},
|
|
152
|
+
}, D.prototype.render = function(e) {
|
|
153
153
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
154
154
|
var t = r(e.children);
|
|
155
155
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
@@ -159,13 +159,13 @@ function A(t, n) {
|
|
|
159
159
|
this.i
|
|
160
160
|
]);
|
|
161
161
|
return e.children;
|
|
162
|
-
},
|
|
162
|
+
}, D.prototype.componentDidUpdate = D.prototype.componentDidMount = function() {
|
|
163
163
|
var e = this;
|
|
164
164
|
this.l.forEach(function(t, n) {
|
|
165
|
-
|
|
165
|
+
O(e, n, t);
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
-
var
|
|
168
|
+
var M = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, N = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, P = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, F = /[A-Z0-9]/g, I = typeof document < "u", L = function(e) {
|
|
169
169
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
170
170
|
};
|
|
171
171
|
a.prototype.isReactComponent = !0, [
|
|
@@ -187,51 +187,51 @@ a.prototype.isReactComponent = !0, [
|
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
|
-
var
|
|
190
|
+
var R = n.event;
|
|
191
191
|
n.event = function(e) {
|
|
192
|
-
return
|
|
192
|
+
return R && (e = R(e)), e.persist = function() {}, e.isPropagationStopped = function() {
|
|
193
193
|
return this.cancelBubble;
|
|
194
194
|
}, e.isDefaultPrevented = function() {
|
|
195
195
|
return this.defaultPrevented;
|
|
196
196
|
}, e.nativeEvent = e;
|
|
197
197
|
};
|
|
198
|
-
var
|
|
198
|
+
var z = {
|
|
199
199
|
configurable: !0,
|
|
200
200
|
get: function() {
|
|
201
201
|
return this.class;
|
|
202
202
|
}
|
|
203
|
-
},
|
|
203
|
+
}, B = n.vnode;
|
|
204
204
|
n.vnode = function(e) {
|
|
205
205
|
typeof e.type == "string" && function(e) {
|
|
206
206
|
var t = e.props, n = e.type, i = {}, a = n.indexOf("-") == -1;
|
|
207
207
|
for (var o in t) {
|
|
208
208
|
var s = t[o];
|
|
209
|
-
if (!(o === "value" && "defaultValue" in t && s == null ||
|
|
209
|
+
if (!(o === "value" && "defaultValue" in t && s == null || I && o === "children" && n === "noscript" || o === "class" || o === "className")) {
|
|
210
210
|
var c = o.toLowerCase();
|
|
211
|
-
o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && !0 === s ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? o = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" ||
|
|
211
|
+
o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && !0 === s ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? o = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || L(t.type) ? c === "onfocus" ? o = "onfocusin" : c === "onblur" ? o = "onfocusout" : P.test(o) && (o = c) : c = o = "oninput" : a && N.test(o) ? o = o.replace(F, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && i[o = c] && (o = "oninputCapture"), i[o] = s;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
n == "select" && (i.multiple && Array.isArray(i.value) && (i.value = r(t.children).forEach(function(e) {
|
|
215
215
|
e.props.selected = i.value.indexOf(e.props.value) != -1;
|
|
216
216
|
})), i.defaultValue != null && (i.value = r(t.children).forEach(function(e) {
|
|
217
217
|
e.props.selected = i.multiple ? i.defaultValue.indexOf(e.props.value) != -1 : i.defaultValue == e.props.value;
|
|
218
|
-
}))), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className",
|
|
219
|
-
}(e), e.$$typeof =
|
|
218
|
+
}))), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", z)) : t.className && (i.class = i.className = t.className), e.props = i;
|
|
219
|
+
}(e), e.$$typeof = M, B && B(e);
|
|
220
220
|
};
|
|
221
|
-
var
|
|
221
|
+
var V = n.__r;
|
|
222
222
|
n.__r = function(e) {
|
|
223
|
-
|
|
223
|
+
V && V(e), e.__c;
|
|
224
224
|
};
|
|
225
|
-
var
|
|
225
|
+
var H = n.diffed;
|
|
226
226
|
n.diffed = function(e) {
|
|
227
|
-
|
|
227
|
+
H && H(e);
|
|
228
228
|
var t = e.props, n = e.__e;
|
|
229
229
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
|
|
230
230
|
};
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region src/dropdown/popup.tsx
|
|
233
|
-
var
|
|
234
|
-
function
|
|
233
|
+
var U = 5, W = 4;
|
|
234
|
+
function G(e, t, n) {
|
|
235
235
|
let r = e.ownerDocument.defaultView;
|
|
236
236
|
if (!r || r.getComputedStyle(e).position === "fixed") return {
|
|
237
237
|
top: t,
|
|
@@ -254,44 +254,44 @@ function W(e, t, n) {
|
|
|
254
254
|
scaleY: d
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
let
|
|
257
|
+
function K({ onPointerRelease: e, triggerRef: t, children: n, portalTarget: r, theme: i, dropdownMenuId: a, popupClassName: h, closeOnClickOutside: g = !1, onClose: _, align: v = "start", matchTriggerWidth: y = !1, maxHeight: b, observePopupResize: x = !0, topLayer: S = !1 }) {
|
|
258
|
+
let C = l(null), [w, T] = s({
|
|
259
259
|
top: 0,
|
|
260
260
|
left: 0,
|
|
261
261
|
display: "none"
|
|
262
262
|
});
|
|
263
263
|
c(() => {
|
|
264
|
-
let e = t.current, n =
|
|
265
|
-
if (e && n) return
|
|
264
|
+
let e = t.current, n = C.current;
|
|
265
|
+
if (e && n) return m(e, n);
|
|
266
266
|
}, [r, t]), o(() => {
|
|
267
267
|
let e = t.current;
|
|
268
268
|
if (!e) return;
|
|
269
269
|
let n = e.ownerDocument.defaultView ?? window, r = () => {
|
|
270
|
-
let t =
|
|
270
|
+
let t = C.current;
|
|
271
271
|
if (!t) return;
|
|
272
|
-
let n = e.getBoundingClientRect(), r =
|
|
273
|
-
|
|
272
|
+
let n = e.getBoundingClientRect(), r = G(t, n.bottom + W, n.left);
|
|
273
|
+
T({
|
|
274
274
|
top: r.top,
|
|
275
275
|
left: r.left,
|
|
276
276
|
display: "flex",
|
|
277
|
-
...
|
|
277
|
+
...y ? { width: n.width / r.scaleX } : {}
|
|
278
278
|
});
|
|
279
279
|
}, i = () => {
|
|
280
|
-
let t =
|
|
280
|
+
let t = C.current;
|
|
281
281
|
if (!t) return;
|
|
282
282
|
let r = e.getBoundingClientRect(), i = t.style.maxHeight;
|
|
283
283
|
t.style.maxHeight = "";
|
|
284
|
-
let a = t.getBoundingClientRect(), o =
|
|
284
|
+
let a = t.getBoundingClientRect(), o = G(t, 0, 0), s = Math.max(a.height, t.offsetHeight * o.scaleY, t.scrollHeight * o.scaleY);
|
|
285
285
|
t.style.maxHeight = i;
|
|
286
|
-
let c = Math.max(a.width, t.offsetWidth * o.scaleX), l = Math.min(s, typeof
|
|
287
|
-
g = Math.max(
|
|
288
|
-
let x =
|
|
289
|
-
|
|
286
|
+
let c = Math.max(a.width, t.offsetWidth * o.scaleX), l = Math.min(s, typeof b == "number" ? Math.max(0, b * o.scaleY) : Infinity), u = n.innerHeight, d = n.innerWidth, f = Math.max(0, r.top - W - U), p = Math.max(0, u - r.bottom - W - U), m = l > p && f > p, h = Math.min(l, m ? f : p), g = m ? r.top - W - h : r.bottom + W, _ = v === "end" ? r.right - c : r.left;
|
|
287
|
+
g = Math.max(U, Math.min(g, u - U - h)), _ = Math.max(U, Math.min(_, d - c - U));
|
|
288
|
+
let x = G(t, g, _);
|
|
289
|
+
T({
|
|
290
290
|
top: x.top,
|
|
291
291
|
left: x.left,
|
|
292
292
|
display: "flex",
|
|
293
293
|
maxHeight: h / x.scaleY,
|
|
294
|
-
...
|
|
294
|
+
...y ? { width: r.width / x.scaleX } : {}
|
|
295
295
|
});
|
|
296
296
|
};
|
|
297
297
|
r();
|
|
@@ -300,68 +300,68 @@ function G({ onPointerRelease: e, triggerRef: t, children: n, portalTarget: r, t
|
|
|
300
300
|
let o = n.ResizeObserver, s = o ? new o(i) : void 0;
|
|
301
301
|
s?.observe(e);
|
|
302
302
|
let c = e.closest(".rv-dialog__surface, dialog");
|
|
303
|
-
return c && s?.observe(c),
|
|
303
|
+
return c && s?.observe(c), x && C.current && s?.observe(C.current), () => {
|
|
304
304
|
n.clearTimeout(a), n.removeEventListener("resize", i), n.removeEventListener("scroll", i, !0), s?.disconnect();
|
|
305
305
|
};
|
|
306
306
|
}, [
|
|
307
|
-
_,
|
|
308
307
|
v,
|
|
309
308
|
y,
|
|
310
309
|
b,
|
|
310
|
+
x,
|
|
311
311
|
r,
|
|
312
312
|
t
|
|
313
313
|
]), c(() => {
|
|
314
|
-
let e =
|
|
315
|
-
if (!
|
|
316
|
-
let t =
|
|
314
|
+
let e = C.current;
|
|
315
|
+
if (!S || !e) return;
|
|
316
|
+
let t = f(e);
|
|
317
317
|
return () => {
|
|
318
|
-
|
|
318
|
+
p(e, t);
|
|
319
319
|
};
|
|
320
|
-
}, [r,
|
|
321
|
-
if (!
|
|
322
|
-
let e = r?.ownerDocument ??
|
|
320
|
+
}, [r, S]), c(() => {
|
|
321
|
+
if (!g || !_) return;
|
|
322
|
+
let e = r?.ownerDocument ?? C.current?.ownerDocument ?? t.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
|
|
323
323
|
if (!e) return;
|
|
324
324
|
let n = (e) => {
|
|
325
325
|
let n = e.target;
|
|
326
|
-
n && (
|
|
326
|
+
n && (d(C.current, n) || t.current?.contains(n) || _());
|
|
327
327
|
};
|
|
328
328
|
e.addEventListener("mousedown", n);
|
|
329
329
|
let i = (n) => {
|
|
330
|
-
if (n.key !== "Escape") return;
|
|
330
|
+
if (n.key !== "Escape" || C.current?.querySelector("[aria-expanded=\"true\"]")) return;
|
|
331
331
|
let r = e.activeElement;
|
|
332
|
-
r && (
|
|
332
|
+
r && (C.current?.contains(r) || t.current?.contains(r)) && (n.preventDefault(), n.stopPropagation(), _(), t.current?.querySelector("button, input, select")?.focus());
|
|
333
333
|
};
|
|
334
334
|
return e.addEventListener("keydown", i), () => {
|
|
335
335
|
e.removeEventListener("mousedown", n), e.removeEventListener("keydown", i);
|
|
336
336
|
};
|
|
337
337
|
}, [
|
|
338
|
-
h,
|
|
339
338
|
g,
|
|
339
|
+
_,
|
|
340
340
|
r,
|
|
341
341
|
t
|
|
342
342
|
]);
|
|
343
|
-
let
|
|
344
|
-
ref:
|
|
343
|
+
let E = /* @__PURE__ */ u("div", {
|
|
344
|
+
ref: C,
|
|
345
345
|
id: a,
|
|
346
|
-
className: `revo-dropdown-menu ${
|
|
346
|
+
className: `revo-dropdown-menu ${h || ""}`,
|
|
347
347
|
"data-theme": i ?? "default",
|
|
348
348
|
onMouseUp: e,
|
|
349
349
|
onTouchEnd: e,
|
|
350
350
|
style: {
|
|
351
|
-
top: `${
|
|
352
|
-
left: `${
|
|
353
|
-
...
|
|
351
|
+
top: `${w.top}px`,
|
|
352
|
+
left: `${w.left}px`,
|
|
353
|
+
...S ? {
|
|
354
354
|
right: "auto",
|
|
355
355
|
bottom: "auto",
|
|
356
356
|
margin: "0"
|
|
357
357
|
} : {},
|
|
358
|
-
display:
|
|
359
|
-
maxHeight:
|
|
360
|
-
width:
|
|
358
|
+
display: w.display,
|
|
359
|
+
maxHeight: w.maxHeight === void 0 ? void 0 : `${w.maxHeight}px`,
|
|
360
|
+
width: w.width === void 0 ? void 0 : `${w.width}px`
|
|
361
361
|
},
|
|
362
362
|
children: n
|
|
363
363
|
});
|
|
364
|
-
return r ?
|
|
364
|
+
return r ? j(E, r) : E;
|
|
365
365
|
}
|
|
366
366
|
//#endregion
|
|
367
|
-
export {
|
|
367
|
+
export { j as n, b as r, K as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
-
import { t as n } from "./native-control-
|
|
3
|
+
import { t as n } from "./native-control-DO0d1kgx.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/star.svg?raw
|
|
5
5
|
var r = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>", i = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>";
|
|
6
6
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as n } from "./native-control-
|
|
3
|
+
import { t as n } from "./native-control-DO0d1kgx.js";
|
|
4
4
|
import { fieldDropIndex as r, fieldListDropIndex as i } from "../field-reorder.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/grip-vertical.svg?raw
|
|
6
6
|
var a = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 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=\"M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z\"/></svg>";
|