@revolist/ui 4.0.1-rc → 4.0.2-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/_chunks/calendar-CpaUK7w1.js +248 -0
- package/_chunks/chart-frame-BC99KjGa.js +127 -0
- package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
- package/_chunks/color-picker-D90Jg-M8.js +138 -0
- package/_chunks/compat.module-DDB2pm9O.js +229 -0
- package/_chunks/component-YDcfoOLz.js +859 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
- package/_chunks/date-time-BxPJusp9.js +770 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
- package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
- package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
- package/_chunks/duration-87U2EoMS.js +271 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
- package/_chunks/framework-mount-C-Zwm44H.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DZe_6VtR.js +90 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
- package/_chunks/picker-DpP7iQLA.js +122 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
- package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
- package/_chunks/request-trail-IdNiFvKH.js +347 -0
- package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +16 -16
- package/ai/components.d.ts +1 -1
- package/ai/index.js +2 -2
- package/ai/request-trail.d.ts +1 -1
- package/ai/translation-context.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +87 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/index.js +25 -25
- package/avatar/index.view.d.ts +1 -1
- package/brush-range/component.d.ts +1 -1
- package/brush-range/component.js +30 -30
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +35 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +19 -19
- package/control-presentation.js +18 -18
- package/controls.d.ts +4 -4
- package/controls.js +1 -1
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup.d.ts +1 -1
- package/core/editor-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +2 -2
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/dialog/dialog-action-footer.view.d.ts +1 -1
- package/dialog/dialog.dom.js +52 -52
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +1 -1
- package/distribution-chart/bar-chart.js +6 -6
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +1 -1
- package/dropdown/content.js +83 -82
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/index.js +1 -1
- package/dropdown/lookup-field.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +17 -16
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +1 -1
- package/editor-layout/index.js +27 -27
- package/field-configurator.d.ts +1 -1
- package/field-configurator.js +93 -93
- package/field-reorder.hook.js +32 -32
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -1
- package/filter-controls.js +31 -31
- package/form-controls/index.js +20 -20
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +44 -44
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/control-tooltip.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.js +99 -98
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +19 -19
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +11 -11
- package/native-control.js +12 -12
- package/native.js +39 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +1 -2
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +1 -1
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +1 -1
- package/preact.js +14 -14
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.js +19 -19
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +88 -88
- package/rich-text/index.d.ts +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/toolbar.d.ts +1 -1
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +13 -13
- package/surfaces.js +34 -34
- package/svelte.js +2 -2
- package/switch/index.js +15 -15
- package/time-grid.d.ts +1 -1
- package/time-grid.js +58 -58
- package/timeline-track/component.d.ts +1 -1
- package/timeline-track/index.js +75 -75
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +116 -116
- package/vue.js +121 -121
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-picker-BRv-__AM.js +0 -138
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
package/duration/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DurationDraft, n as DurationField } from "../_chunks/duration-
|
|
1
|
+
export { t as DurationDraft, n as DurationField } from "../_chunks/duration-87U2EoMS.js";
|
package/editor-actions.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export declare function EditorActions({ apply, cancel, clear, disabled, text, sh
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
text?: Partial<EditorActionText>;
|
|
19
19
|
showConfirm?: boolean;
|
|
20
|
-
}): import("preact").JSX.Element | null;
|
|
20
|
+
}): import("./_vendor/preact/src/index").JSX.Element | null;
|
package/editor-actions.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { n } from "./_chunks/controls-DIum-E66.js";
|
|
3
4
|
//#region src/editor-actions.tsx
|
|
4
|
-
var
|
|
5
|
+
var r = {
|
|
5
6
|
apply: "Apply",
|
|
6
7
|
cancel: "Cancel",
|
|
7
8
|
clear: "Clear"
|
|
8
9
|
};
|
|
9
|
-
function
|
|
10
|
-
if (!
|
|
11
|
-
let
|
|
12
|
-
apply:
|
|
13
|
-
cancel:
|
|
14
|
-
clear:
|
|
10
|
+
function i({ apply: i, cancel: a, clear: o, disabled: s, text: c = r, showConfirm: l = !0 }) {
|
|
11
|
+
if (!l && !o) return null;
|
|
12
|
+
let u = {
|
|
13
|
+
apply: c.apply ?? r.apply,
|
|
14
|
+
cancel: c.cancel ?? r.cancel,
|
|
15
|
+
clear: c.clear ?? r.clear
|
|
15
16
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t("div", {
|
|
17
18
|
class: "rv-editor-actions",
|
|
18
|
-
children: [
|
|
19
|
+
children: [o && /* @__PURE__ */ t(n, {
|
|
19
20
|
variant: "ghost",
|
|
20
21
|
className: "rv-editor-actions__clear",
|
|
21
|
-
onClick: s,
|
|
22
|
-
children: d.clear
|
|
23
|
-
}), u && /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
|
|
24
22
|
onClick: o,
|
|
25
|
-
children:
|
|
26
|
-
}), /* @__PURE__ */
|
|
27
|
-
variant: "primary",
|
|
28
|
-
disabled: c,
|
|
23
|
+
children: u.clear
|
|
24
|
+
}), l && /* @__PURE__ */ t(e, { children: [/* @__PURE__ */ t(n, {
|
|
29
25
|
onClick: a,
|
|
30
|
-
children:
|
|
26
|
+
children: u.cancel
|
|
27
|
+
}), /* @__PURE__ */ t(n, {
|
|
28
|
+
variant: "primary",
|
|
29
|
+
disabled: s,
|
|
30
|
+
onClick: i,
|
|
31
|
+
children: u.apply
|
|
31
32
|
})] })]
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
//#endregion
|
|
35
|
-
export {
|
|
36
|
+
export { i as EditorActions, r as defaultEditorActionText };
|
package/editor-layout/index.d.ts
CHANGED
package/editor-layout/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
//#region src/editor-layout/index.tsx
|
|
3
|
-
function
|
|
3
|
+
function t({ children: t, className: n = "" }) {
|
|
4
4
|
return /* @__PURE__ */ e("div", {
|
|
5
5
|
class: `rv-editor-split ${n}`,
|
|
6
6
|
children: t
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function n({ children: t, className: n = "", scrollable: r = !1 }) {
|
|
10
10
|
return /* @__PURE__ */ e("section", {
|
|
11
11
|
class: `rv-editor-pane${r ? " rv-editor-pane--scrollable" : ""} ${n}`,
|
|
12
12
|
children: t
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function r({ children: t, className: n = "", label: r, onSelect: i, listRef: a, variant: o = "default", spacing: s = "default" }) {
|
|
16
16
|
return /* @__PURE__ */ e("div", {
|
|
17
17
|
ref: a,
|
|
18
18
|
class: `rv-editor-list${o === "plain" ? " rv-editor-list--plain" : ""}${s === "comfortable" ? " rv-editor-list--comfortable" : ""} ${n}`,
|
|
@@ -33,7 +33,7 @@ function i({ children: t, className: n = "", label: r, onSelect: i, listRef: a,
|
|
|
33
33
|
children: t
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function i({ value: t, selected: n, icon: r, label: i, description: o, contentClassNames: s, children: c, className: l = "", ...u }) {
|
|
37
37
|
return /* @__PURE__ */ e("button", {
|
|
38
38
|
...u,
|
|
39
39
|
type: "button",
|
|
@@ -42,43 +42,43 @@ function a({ value: t, selected: n, icon: r, label: i, description: a, contentCl
|
|
|
42
42
|
"aria-selected": n,
|
|
43
43
|
tabIndex: u.tabIndex ?? (n ? 0 : -1),
|
|
44
44
|
class: `rv-editor-list__item${n ? " rv-editor-list__item--selected" : ""} ${l}`,
|
|
45
|
-
children: i === void 0 ? c : /* @__PURE__ */ e(
|
|
45
|
+
children: i === void 0 ? c : /* @__PURE__ */ e(a, {
|
|
46
46
|
icon: r,
|
|
47
47
|
label: i,
|
|
48
|
-
description:
|
|
48
|
+
description: o,
|
|
49
49
|
classNames: s
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
class: `rv-editor-list__content${
|
|
56
|
-
children: [
|
|
57
|
-
class: `rv-editor-list__icon ${
|
|
53
|
+
function a({ icon: t, label: n, description: r, classNames: i = {} }) {
|
|
54
|
+
return /* @__PURE__ */ e("span", {
|
|
55
|
+
class: `rv-editor-list__content${t ? "" : " rv-editor-list__content--text"}`,
|
|
56
|
+
children: [t && /* @__PURE__ */ e("span", {
|
|
57
|
+
class: `rv-editor-list__icon ${i.icon ?? ""}`,
|
|
58
58
|
"aria-hidden": "true",
|
|
59
|
-
children:
|
|
60
|
-
}), /* @__PURE__ */
|
|
61
|
-
class: `rv-editor-list__copy ${
|
|
59
|
+
children: t
|
|
60
|
+
}), /* @__PURE__ */ e("span", {
|
|
61
|
+
class: `rv-editor-list__copy ${i.copy ?? ""}`,
|
|
62
62
|
children: [/* @__PURE__ */ e("span", {
|
|
63
|
-
class: `rv-editor-list__label ${
|
|
63
|
+
class: `rv-editor-list__label ${i.label ?? ""}`,
|
|
64
|
+
children: n
|
|
65
|
+
}), r !== void 0 && /* @__PURE__ */ e("span", {
|
|
66
|
+
class: `rv-editor-list__description ${i.description ?? ""}`,
|
|
64
67
|
children: r
|
|
65
|
-
}), i !== void 0 && /* @__PURE__ */ e("span", {
|
|
66
|
-
class: `rv-editor-list__description ${a.description ?? ""}`,
|
|
67
|
-
children: i
|
|
68
68
|
})]
|
|
69
69
|
})]
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
class: `rv-editor-list__group ${
|
|
72
|
+
function o({ label: t, children: n, className: r = "", labelClassName: i = "" }) {
|
|
73
|
+
return /* @__PURE__ */ e("div", {
|
|
74
|
+
class: `rv-editor-list__group ${r}`,
|
|
75
75
|
role: "group",
|
|
76
|
-
"aria-label":
|
|
76
|
+
"aria-label": t,
|
|
77
77
|
children: [/* @__PURE__ */ e("div", {
|
|
78
|
-
class: `rv-editor-list__group-label ${
|
|
79
|
-
children:
|
|
80
|
-
}),
|
|
78
|
+
class: `rv-editor-list__group-label ${i}`,
|
|
79
|
+
children: t
|
|
80
|
+
}), n]
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
|
-
export {
|
|
84
|
+
export { r as EditorList, o as EditorListGroup, i as EditorListItem, a as EditorListItemContent, n as EditorPane, t as EditorSplitLayout };
|
package/field-configurator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoveButton } from './buttons/remove-button';
|
|
2
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
2
|
+
import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
3
3
|
export declare function FieldIcon({ svg, className, }: {
|
|
4
4
|
svg: string;
|
|
5
5
|
className?: string;
|
package/field-configurator.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./_chunks/
|
|
3
|
-
import { n } from "./_chunks/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { c as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
3
|
+
import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { SvgIcon as r } from "./icons/icon.js";
|
|
5
|
+
import { t as i } from "./_chunks/chevron-right-sxHQMSkq.js";
|
|
6
|
+
import { n as a } from "./_chunks/delete-button-Bblyah10.js";
|
|
7
|
+
import { RemoveButton as o } from "./buttons/remove-button.js";
|
|
8
|
+
import { DisclosureSummary as s } from "./form-controls/presentation.js";
|
|
9
|
+
import { fieldDropIndex as c, reorderFields as l } from "./field-reorder.js";
|
|
10
|
+
import { useFieldDropTarget as u, useFieldReorder as d } from "./field-reorder.hook.js";
|
|
11
11
|
//#region src/field-configurator.tsx
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
svg:
|
|
15
|
-
className: `rv-configurator-icon ${
|
|
12
|
+
function f({ svg: e, className: t = "" }) {
|
|
13
|
+
return /* @__PURE__ */ n(r, {
|
|
14
|
+
svg: e,
|
|
15
|
+
className: `rv-configurator-icon ${t}`
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
function p({ children: e, className: t = "", ...r }) {
|
|
19
|
+
return /* @__PURE__ */ n(s, {
|
|
20
20
|
...r,
|
|
21
|
-
className: `rv-configurator-summary ${
|
|
21
|
+
className: `rv-configurator-summary ${t}`,
|
|
22
22
|
iconPosition: "after",
|
|
23
|
-
icon: /* @__PURE__ */
|
|
23
|
+
icon: /* @__PURE__ */ n(f, { svg: i }),
|
|
24
24
|
children: e
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
class: `rv-configurator-available-fields ${
|
|
27
|
+
function m({ title: e, count: t, children: r, className: i = "" }) {
|
|
28
|
+
return /* @__PURE__ */ n("details", {
|
|
29
|
+
class: `rv-configurator-available-fields ${i}`,
|
|
30
30
|
open: !0,
|
|
31
|
-
children: [/* @__PURE__ */
|
|
31
|
+
children: [/* @__PURE__ */ n(p, { children: [e, t != null && /* @__PURE__ */ n("span", {
|
|
32
32
|
class: "rv-configurator-field-count",
|
|
33
33
|
children: t
|
|
34
|
-
})] }), /* @__PURE__ */
|
|
34
|
+
})] }), /* @__PURE__ */ n("div", {
|
|
35
35
|
class: "rv-configurator-library-content",
|
|
36
|
-
children:
|
|
36
|
+
children: r
|
|
37
37
|
})]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
class: `rv-configurator-zone-heading ${
|
|
43
|
-
children: [/* @__PURE__ */
|
|
40
|
+
function h({ children: e, actions: t, className: r = "" }) {
|
|
41
|
+
return /* @__PURE__ */ n("div", {
|
|
42
|
+
class: `rv-configurator-zone-heading ${r}`,
|
|
43
|
+
children: [/* @__PURE__ */ n("span", {
|
|
44
44
|
class: "rv-configurator-zone-label",
|
|
45
45
|
children: e
|
|
46
|
-
}), t && /* @__PURE__ */
|
|
46
|
+
}), t && /* @__PURE__ */ n("span", {
|
|
47
47
|
class: "rv-configurator-zone-actions",
|
|
48
48
|
children: t
|
|
49
49
|
})]
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
...
|
|
55
|
-
className: `rv-configurator-zone ${
|
|
56
|
-
children: [/* @__PURE__ */
|
|
57
|
-
className:
|
|
52
|
+
function g({ heading: e, actions: t, headingClassName: r, className: i = "", children: a, ...o }) {
|
|
53
|
+
return /* @__PURE__ */ n("section", {
|
|
54
|
+
...o,
|
|
55
|
+
className: `rv-configurator-zone ${i}`,
|
|
56
|
+
children: [/* @__PURE__ */ n(h, {
|
|
57
|
+
className: r,
|
|
58
58
|
actions: t,
|
|
59
59
|
children: e
|
|
60
|
-
}),
|
|
60
|
+
}), a]
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
...
|
|
66
|
-
className: `rv-configurator-field-list ${e ? "empty" : ""} ${
|
|
67
|
-
children: e ? /* @__PURE__ */
|
|
63
|
+
function _({ empty: e, placeholder: t, className: r = "", children: i, ...a }) {
|
|
64
|
+
return /* @__PURE__ */ n("ul", {
|
|
65
|
+
...a,
|
|
66
|
+
className: `rv-configurator-field-list ${e ? "empty" : ""} ${r}`,
|
|
67
|
+
children: e ? /* @__PURE__ */ n("li", {
|
|
68
68
|
className: "rv-configurator-empty-zone empty",
|
|
69
69
|
children: t
|
|
70
|
-
}) :
|
|
70
|
+
}) : i
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
...
|
|
73
|
+
function v({ className: e = "", children: t, indicator: r, dropPosition: i, ...a }) {
|
|
74
|
+
return /* @__PURE__ */ n("li", {
|
|
75
|
+
...a,
|
|
76
76
|
className: `rv-configurator-field rv-configurator-field-row ${e}`,
|
|
77
77
|
children: [
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */
|
|
78
|
+
r ?? (i && /* @__PURE__ */ n(D, { position: i })),
|
|
79
|
+
/* @__PURE__ */ n("span", {
|
|
80
80
|
className: "rv-configurator-drag-handle",
|
|
81
81
|
"aria-hidden": "true"
|
|
82
82
|
}),
|
|
@@ -84,87 +84,87 @@ function y({ className: e = "", children: t, indicator: n, dropPosition: r, ...i
|
|
|
84
84
|
]
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
class: `rv-configurator-field-content ${
|
|
90
|
-
children: [e, /* @__PURE__ */
|
|
87
|
+
function y({ icon: e, children: t, className: r = "" }) {
|
|
88
|
+
return /* @__PURE__ */ n("span", {
|
|
89
|
+
class: `rv-configurator-field-content ${r}`,
|
|
90
|
+
children: [e, /* @__PURE__ */ n("span", {
|
|
91
91
|
class: "rv-configurator-field-caption",
|
|
92
92
|
children: t
|
|
93
93
|
})]
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
...
|
|
99
|
-
class: `rv-configurator-field ${
|
|
100
|
-
},
|
|
96
|
+
function b({ as: t = "div", children: n, className: r = "", ...i }) {
|
|
97
|
+
return e(t, {
|
|
98
|
+
...i,
|
|
99
|
+
class: `rv-configurator-field ${r}`
|
|
100
|
+
}, n);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return /* @__PURE__ */
|
|
102
|
+
function x({ children: e, ...t }) {
|
|
103
|
+
return /* @__PURE__ */ n("div", {
|
|
104
104
|
...t,
|
|
105
105
|
className: `rv-configurator-library-list ${t.className ?? ""}`,
|
|
106
106
|
children: e
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
...
|
|
112
|
-
children: [/* @__PURE__ */
|
|
113
|
-
className:
|
|
109
|
+
function S({ label: e, icon: t, actions: r, contentClassName: i, ...a }) {
|
|
110
|
+
return /* @__PURE__ */ n(v, {
|
|
111
|
+
...a,
|
|
112
|
+
children: [/* @__PURE__ */ n(y, {
|
|
113
|
+
className: i,
|
|
114
114
|
icon: t,
|
|
115
115
|
children: e
|
|
116
|
-
}),
|
|
116
|
+
}), r]
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
...
|
|
119
|
+
function C({ children: e, className: t = "", ...r }) {
|
|
120
|
+
return /* @__PURE__ */ n("div", {
|
|
121
|
+
...r,
|
|
122
122
|
className: `rv-configurator-field-actions ${t}`,
|
|
123
123
|
children: e
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
className: `rv-configurator-status-badge ${
|
|
126
|
+
function w({ children: e, active: t = !1, label: r, className: i = "" }) {
|
|
127
|
+
return /* @__PURE__ */ n("span", {
|
|
128
|
+
className: `rv-configurator-status-badge ${i}`,
|
|
129
129
|
"data-active": t ? "true" : void 0,
|
|
130
|
-
title:
|
|
131
|
-
"aria-label":
|
|
130
|
+
title: r,
|
|
131
|
+
"aria-label": r,
|
|
132
132
|
children: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
return /* @__PURE__ */
|
|
135
|
+
function T(e) {
|
|
136
|
+
return /* @__PURE__ */ n(o, {
|
|
137
137
|
...e,
|
|
138
138
|
className: `rv-configurator-remove-button ${e.className ?? ""}`
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return /* @__PURE__ */
|
|
141
|
+
function E() {
|
|
142
|
+
return /* @__PURE__ */ n(r, { svg: a });
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
className: `rv-configurator-drop-indicator ${
|
|
144
|
+
function D({ position: e, index: t, className: r = "" }) {
|
|
145
|
+
return /* @__PURE__ */ n("span", {
|
|
146
|
+
className: `rv-configurator-drop-indicator ${r}`,
|
|
147
147
|
"data-position": e,
|
|
148
148
|
"data-drop-index": t,
|
|
149
149
|
"aria-hidden": "true"
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
let
|
|
154
|
-
class: `rv-collapsible-section rv-configurator-section ${
|
|
155
|
-
open:
|
|
156
|
-
children: [/* @__PURE__ */
|
|
157
|
-
className:
|
|
152
|
+
function O({ title: e, description: r, defaultOpen: i = !1, children: a, className: o = "", summaryClassName: s = "", contentClassName: c = "", descriptionClassName: l = "", renderRoot: u }) {
|
|
153
|
+
let d = t(i), f = {
|
|
154
|
+
class: `rv-collapsible-section rv-configurator-section ${o}`.trim(),
|
|
155
|
+
open: d.current,
|
|
156
|
+
children: [/* @__PURE__ */ n(p, {
|
|
157
|
+
className: s,
|
|
158
158
|
children: e
|
|
159
|
-
}), /* @__PURE__ */
|
|
160
|
-
class: `rv-collapsible-section__content ${
|
|
161
|
-
children: [
|
|
162
|
-
class: `rv-collapsible-section__description ${
|
|
163
|
-
children:
|
|
164
|
-
}),
|
|
159
|
+
}), /* @__PURE__ */ n("div", {
|
|
160
|
+
class: `rv-collapsible-section__content ${c}`.trim(),
|
|
161
|
+
children: [r && /* @__PURE__ */ n("p", {
|
|
162
|
+
class: `rv-collapsible-section__description ${l}`.trim(),
|
|
163
|
+
children: r
|
|
164
|
+
}), a]
|
|
165
165
|
})]
|
|
166
166
|
};
|
|
167
|
-
return
|
|
167
|
+
return u ? u(f) : /* @__PURE__ */ n("details", { ...f });
|
|
168
168
|
}
|
|
169
169
|
//#endregion
|
|
170
|
-
export {
|
|
170
|
+
export { O as CollapsibleSection, C as FieldActions, y as FieldContent, D as FieldDropIndicator, g as FieldGroup, h as FieldGroupHeading, f as FieldIcon, b as FieldItem, m as FieldLibrary, x as FieldLibraryList, _ as FieldList, T as FieldRemoveButton, E as FieldRemoveIcon, v as FieldRow, w as FieldStatusBadge, p as FieldSummary, S as SelectedField, c as fieldDropIndex, l as reorderFields, u as useFieldDropTarget, d as useFieldReorder };
|
package/field-reorder.hook.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e, r as t, t as n } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { fieldDropIndex as r, fieldListDropIndex as i, reorderFields as a } from "./field-reorder.js";
|
|
3
3
|
//#region src/field-reorder.hook.ts
|
|
4
|
-
function o(
|
|
5
|
-
let s =
|
|
6
|
-
count:
|
|
4
|
+
function o(a, o) {
|
|
5
|
+
let s = n({
|
|
6
|
+
count: a,
|
|
7
7
|
...o
|
|
8
8
|
});
|
|
9
9
|
s.current = {
|
|
10
|
-
count:
|
|
10
|
+
count: a,
|
|
11
11
|
...o
|
|
12
12
|
};
|
|
13
|
-
let c =
|
|
13
|
+
let c = n(null), l = n(null), [u, d] = e(null), f = () => {
|
|
14
14
|
c.current = null, l.current = null, d(null);
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
t(() => {
|
|
17
17
|
(o.enabled === !1 || o.active === !1) && f();
|
|
18
18
|
}, [o.enabled, o.active]);
|
|
19
|
-
let p = (e) => s.current.enabled !== !1 && (s.current.canDrop?.(e) ?? !0), m = (
|
|
20
|
-
let
|
|
21
|
-
if (
|
|
22
|
-
let
|
|
23
|
-
return e
|
|
19
|
+
let p = (e) => s.current.enabled !== !1 && (s.current.canDrop?.(e) ?? !0), m = (e, t) => {
|
|
20
|
+
let n = e.currentTarget;
|
|
21
|
+
if (t !== void 0) {
|
|
22
|
+
let i = n.getBoundingClientRect();
|
|
23
|
+
return r(e.clientY, i.top, i.height, t, l.current);
|
|
24
24
|
}
|
|
25
|
-
let a = Array.from(
|
|
26
|
-
return
|
|
25
|
+
let a = Array.from(n.querySelectorAll(":scope > .rv-configurator-field-row, :scope > .rv-configurator-field-list > .rv-configurator-field-row"));
|
|
26
|
+
return i(e.clientY, a.map((e) => e.getBoundingClientRect()), l.current, s.current.count);
|
|
27
27
|
}, h = (e, t, n) => {
|
|
28
28
|
p(e) ? (e.preventDefault(), e.stopPropagation(), l.current = n ?? m(e, t), d(l.current), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), s.current.onDragOver?.(e)) : (l.current = null, d(null));
|
|
29
29
|
}, g = (e, t, n) => {
|
|
@@ -37,7 +37,7 @@ function o(n, o) {
|
|
|
37
37
|
}, _ = (e) => {
|
|
38
38
|
if (u !== null && (c.current === null || u !== c.current && u !== c.current + 1)) {
|
|
39
39
|
if (u === e) return "before";
|
|
40
|
-
if (u ===
|
|
40
|
+
if (u === a && e === a - 1) return "after";
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
return {
|
|
@@ -67,41 +67,41 @@ function o(n, o) {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function s(
|
|
71
|
-
let l =
|
|
72
|
-
items:
|
|
73
|
-
onChange:
|
|
70
|
+
function s(r, i, s = !0, c = {}) {
|
|
71
|
+
let l = n({
|
|
72
|
+
items: r,
|
|
73
|
+
onChange: i,
|
|
74
74
|
enabled: s,
|
|
75
75
|
...c
|
|
76
76
|
});
|
|
77
77
|
l.current = {
|
|
78
|
-
items:
|
|
79
|
-
onChange:
|
|
78
|
+
items: r,
|
|
79
|
+
onChange: i,
|
|
80
80
|
enabled: s,
|
|
81
81
|
...c
|
|
82
82
|
};
|
|
83
|
-
let [u, d] =
|
|
83
|
+
let [u, d] = e(null), f = n(null), p = () => {
|
|
84
84
|
let e = f.current, t = l.current;
|
|
85
85
|
return !e || !t.enabled || e.items.length !== t.items.length || e.items.some((e, n) => e !== t.items[n]) ? (f.current = null, null) : e;
|
|
86
|
-
}, m = o(
|
|
86
|
+
}, m = o(r.length, {
|
|
87
87
|
enabled: s,
|
|
88
88
|
canDrop: () => !!p(),
|
|
89
89
|
onDrop(e) {
|
|
90
90
|
let t = p();
|
|
91
91
|
if (!t) return;
|
|
92
92
|
f.current = null, d(null);
|
|
93
|
-
let
|
|
94
|
-
|
|
93
|
+
let n = a(l.current.items, t.from, e);
|
|
94
|
+
n !== l.current.items && (l.current.onChange(n), l.current.onMove?.(t.items[t.from]));
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
|
|
97
|
+
t(() => {
|
|
98
98
|
p() || (m.clear(), d(null));
|
|
99
|
-
}, [
|
|
99
|
+
}, [r, s]);
|
|
100
100
|
let h = (e, t) => {
|
|
101
|
-
let
|
|
102
|
-
if (!
|
|
103
|
-
let
|
|
104
|
-
|
|
101
|
+
let n = l.current;
|
|
102
|
+
if (!n.enabled) return;
|
|
103
|
+
let r = a(n.items, e, t);
|
|
104
|
+
r !== n.items && (n.onChange(r), n.onMove?.(n.items[e]));
|
|
105
105
|
};
|
|
106
106
|
return {
|
|
107
107
|
move: h,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as e } from "../../../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { renderRangeSlider as t } from "./component.js";
|
|
3
3
|
//#region src/filter/filters/slider/preact.tsx
|
|
4
4
|
function n(n) {
|
|
5
|
-
return e
|
|
5
|
+
return t(e, n);
|
|
6
6
|
}
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as PreactRangeSlider };
|