@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/component-catalog.d.ts
CHANGED
|
@@ -18,11 +18,11 @@ export declare const uiComponents: {
|
|
|
18
18
|
readonly RangeSlider: typeof ui.PreactRangeSlider;
|
|
19
19
|
readonly ResourcePicker: typeof ui.SharedResourcePicker;
|
|
20
20
|
readonly FeedbackPanel: typeof ui.StatusFeedbackPanel;
|
|
21
|
-
readonly Input: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<import("preact").JSX.InputHTMLAttributes<HTMLInputElement>, "className" | "class" | "ref"> & {
|
|
22
|
-
class?: import("preact").JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
|
|
23
|
-
className?: import("preact").JSX.Signalish<string | undefined>;
|
|
21
|
+
readonly Input: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "className" | "class" | "ref"> & {
|
|
22
|
+
class?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
|
|
23
|
+
className?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined>;
|
|
24
24
|
}> & {
|
|
25
|
-
ref?: import('preact').Ref<HTMLInputElement> | undefined;
|
|
25
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
readonly SvgIcon: typeof ui.SvgIcon;
|
|
28
28
|
readonly SvgButton: typeof ui.SvgButton;
|
|
@@ -107,8 +107,8 @@ export declare const uiComponents: {
|
|
|
107
107
|
readonly Pagination: typeof ui.Pagination;
|
|
108
108
|
readonly CircularProgress: typeof ui.CircularProgress;
|
|
109
109
|
readonly Rating: typeof ui.Rating;
|
|
110
|
-
readonly Button: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ui.ButtonProps> & {
|
|
111
|
-
ref?: import('preact').Ref<HTMLButtonElement> | undefined;
|
|
110
|
+
readonly Button: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ui.ButtonProps> & {
|
|
111
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLButtonElement> | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
readonly Pane: typeof ui.EditorPane;
|
|
114
114
|
readonly SplitLayout: typeof ui.EditorSplitLayout;
|
|
@@ -129,14 +129,14 @@ export declare const uiComponents: {
|
|
|
129
129
|
readonly ConfirmDialog: typeof ui.ConfirmDialog;
|
|
130
130
|
readonly DatePicker: typeof ui.DatePicker;
|
|
131
131
|
readonly DateRangePicker: typeof ui.DateRangePicker;
|
|
132
|
-
readonly DialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLElement>> & {
|
|
133
|
-
ref?: import('preact').Ref<HTMLElement> | undefined;
|
|
132
|
+
readonly DialogHeader: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLElement>> & {
|
|
133
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
|
|
134
134
|
}>;
|
|
135
|
-
readonly DialogBody: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
136
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
135
|
+
readonly DialogBody: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
136
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
|
|
137
137
|
}>;
|
|
138
|
-
readonly DialogFooter: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLElement>> & {
|
|
139
|
-
ref?: import('preact').Ref<HTMLElement> | undefined;
|
|
138
|
+
readonly DialogFooter: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLElement>> & {
|
|
139
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
|
|
140
140
|
}>;
|
|
141
141
|
readonly DistributionChart: typeof ui.DistributionChart;
|
|
142
142
|
readonly BarChart: typeof ui.BarChart;
|
|
@@ -167,14 +167,14 @@ export declare const uiComponents: {
|
|
|
167
167
|
readonly DialogForm: typeof ui.DialogForm;
|
|
168
168
|
readonly DialogCloseButton: typeof ui.DialogCloseButton;
|
|
169
169
|
readonly DialogActionFooter: typeof ui.DialogActionFooter;
|
|
170
|
-
readonly DialogActions: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
171
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
170
|
+
readonly DialogActions: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
171
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
|
|
172
172
|
}>;
|
|
173
|
-
readonly DialogTitleInput: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<import("preact").JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
|
|
174
|
-
ref?: import('preact').Ref<HTMLInputElement> | undefined;
|
|
173
|
+
readonly DialogTitleInput: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
|
|
174
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
|
|
175
175
|
}>;
|
|
176
|
-
readonly EditableDialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ui.EditableDialogHeaderProps> & {
|
|
177
|
-
ref?: import('preact').Ref<HTMLElement> | undefined;
|
|
176
|
+
readonly EditableDialogHeader: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ui.EditableDialogHeaderProps> & {
|
|
177
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
|
|
178
178
|
}>;
|
|
179
179
|
readonly ControlTooltip: typeof ui.ControlTooltip;
|
|
180
180
|
readonly InspectorSection: typeof ui.InspectorSection;
|
|
@@ -206,4 +206,4 @@ export declare const uiComponents: {
|
|
|
206
206
|
readonly NativeSelect: typeof ui.NativeSelect;
|
|
207
207
|
};
|
|
208
208
|
export type UiComponentName = keyof typeof uiComponents;
|
|
209
|
-
export type UiComponentProps<K extends UiComponentName> = import('preact').ComponentProps<(typeof uiComponents)[K]>;
|
|
209
|
+
export type UiComponentProps<K extends UiComponentName> = import('./_vendor/preact/src/index').ComponentProps<(typeof uiComponents)[K]>;
|
package/control-presentation.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { c as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createPreactElement as n } from "./preact-mount.js";
|
|
4
|
+
import { controlAttributes as r, controlClassName as i } from "./control-attributes.js";
|
|
5
5
|
//#region src/control-presentation.view.tsx
|
|
6
|
-
function a(e,
|
|
7
|
-
let a =
|
|
8
|
-
if (
|
|
9
|
-
let
|
|
10
|
-
return e(
|
|
6
|
+
function a(e, t, n, ...i) {
|
|
7
|
+
let a = n ?? {};
|
|
8
|
+
if (t === "button" && a.busy === !0) {
|
|
9
|
+
let n = i.length ? i : [a.children];
|
|
10
|
+
return e(t, r(t, a), e("span", {
|
|
11
11
|
class: "rv-button-spinner",
|
|
12
12
|
"aria-hidden": "true"
|
|
13
|
-
}), ...
|
|
13
|
+
}), ...n);
|
|
14
14
|
}
|
|
15
|
-
return e(
|
|
15
|
+
return e(t, r(t, a), ...i);
|
|
16
16
|
}
|
|
17
|
-
function o(t,
|
|
18
|
-
let o = a(
|
|
19
|
-
return i.onChange && !(
|
|
17
|
+
function o(t, r, i = {}) {
|
|
18
|
+
let o = a(e, r, i);
|
|
19
|
+
return i.onChange && !(r === "button" && i.busy) && Object.assign(o.props, { onChange: i.onChange }), n(t, o);
|
|
20
20
|
}
|
|
21
21
|
var s = /* @__PURE__ */ new WeakMap();
|
|
22
22
|
function c(e, t) {
|
|
@@ -25,12 +25,12 @@ function c(e, t) {
|
|
|
25
25
|
function l(e) {
|
|
26
26
|
return typeof e == "string" ? e : e && (typeof e == "function" || typeof e == "object") ? s.get(e) : void 0;
|
|
27
27
|
}
|
|
28
|
-
function u(
|
|
29
|
-
|
|
28
|
+
function u(e, r) {
|
|
29
|
+
e.classList.add("rv-btn", "rv-btn-ghost", "rv-btn-icon"), e.setAttribute("aria-label", r), e.title = r, e.querySelector(".rv-control-tooltip")?.remove(), e.append(n(e.ownerDocument, /* @__PURE__ */ t("span", {
|
|
30
30
|
class: "rv-control-tooltip",
|
|
31
31
|
"aria-hidden": "true",
|
|
32
|
-
children:
|
|
32
|
+
children: r
|
|
33
33
|
})));
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
36
|
+
export { r as controlAttributes, i as controlClassName, o as createControl, u as decorateIconAction, l as nativeControlTag, c as registerControl, a as renderControl };
|
package/controls.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BadgeOptions } from './badge';
|
|
2
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
2
|
+
import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
3
3
|
import { SegmentedSwitchProps, SegmentedSwitchValue } from './segmented-switch';
|
|
4
4
|
import { EditorPane, EditorSplitLayout } from './editor-layout';
|
|
5
5
|
import { ResizeOptions } from './surfaces';
|
|
@@ -11,8 +11,8 @@ export type ButtonProps = ButtonAttributes & {
|
|
|
11
11
|
variant?: 'default' | 'primary' | 'secondary' | 'danger' | 'danger-outline' | 'ghost' | 'link' | 'solid';
|
|
12
12
|
size?: 'compact' | 'default';
|
|
13
13
|
};
|
|
14
|
-
export declare const Button: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ButtonProps> & {
|
|
15
|
-
ref?: import('preact').Ref<HTMLButtonElement> | undefined;
|
|
14
|
+
export declare const Button: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ButtonProps> & {
|
|
15
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLButtonElement> | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
/** Preact convenience composition of the shared SVG command button owner. */
|
|
18
18
|
export declare function IconButton({ label, icon, badge, children, className, variant, size, ...props }: ButtonProps & {
|
|
@@ -112,7 +112,7 @@ export declare function CountBadge({ count, label }: {
|
|
|
112
112
|
export { Alert } from './alert';
|
|
113
113
|
export declare function Spinner({ label }: {
|
|
114
114
|
label: string;
|
|
115
|
-
}): import('preact').VNode<import('preact').Attributes>;
|
|
115
|
+
}): import('./_vendor/preact/src/index').VNode<import('./_vendor/preact/src/index').Attributes>;
|
|
116
116
|
export declare function LoadingOverlay({ busy, label, children, }: {
|
|
117
117
|
busy: boolean;
|
|
118
118
|
label: string;
|
package/controls.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L, z as R } from "./_chunks/controls-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L, z as R } from "./_chunks/controls-DIum-E66.js";
|
|
2
2
|
import { EditorList as z, EditorListGroup as B, EditorListItem as V, EditorListItemContent as H, EditorPane as U, EditorSplitLayout as W } from "./editor-layout/index.js";
|
|
3
3
|
export { R as Alert, M as Badge, D as Button, A as ButtonGroup, S as Chip, h as CircularProgress, O as CountBadge, j as DateInput, _ as DateTimeInput, T as Disclosure, N as EmptyState, v as FieldError, y as FieldHint, k as FormSection, E as IconButton, z as Listbox, B as ListboxGroup, V as ListboxOption, H as ListboxOptionContent, x as LoadingOverlay, b as Menu, m as MenuItem, P as MenuSeparator, L as NativeSelect, g as NumberInput, I as NumberStepper, f as Pagination, U as Pane, t as Panel, F as RadioGroup, p as Rating, r as ResizeHandle, n as SegmentedControl, l as Spinner, W as SplitLayout, w as Submenu, e as TabPanel, C as Tabs, s as TextInput, c as Textarea, u as TimeInput, i as ToggleButton, a as Toolbar, o as ToolbarGroup, d as ToolbarSeparator };
|
package/core/editor-commit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type EditorCommit = () => boolean | void;
|
|
2
2
|
/** A popup registers one draft owner. Programmatic close and Escape never commit. */
|
|
3
|
-
export declare const EditorCommitContext: import('preact').Context<((commit: EditorCommit) => () => void) | undefined>;
|
|
3
|
+
export declare const EditorCommitContext: import('../_vendor/preact/src/index').Context<((commit: EditorCommit) => () => void) | undefined>;
|
|
4
4
|
export declare function useEditorAutoApply(commit: EditorCommit, enabled?: boolean): void;
|
package/core/editor-popup.d.ts
CHANGED
package/core/editor-popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as mountEditorPopup } from "../_chunks/editor-popup-
|
|
1
|
+
export { t as mountEditorPopup } from "../_chunks/editor-popup-D3JdS8l3.js";
|
package/date-time/field.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export declare function TemporalDraft({ value, options, apply, cancel, clearable
|
|
|
6
6
|
options: TemporalPickerOptions;
|
|
7
7
|
apply: (value: TemporalControlValue) => void | string;
|
|
8
8
|
cancel: () => void;
|
|
9
|
-
}): import("preact").JSX.Element;
|
|
9
|
+
}): import("../_vendor/preact/src/index").JSX.Element;
|
|
10
10
|
/** Native text entry plus the original shared CalendarPicker, usable in any product form. */
|
|
11
|
-
export declare function DateTimeField({ value, kind, picker, onValueChange, onInput, formatValue, parseValue, ...input }: DateTimeFieldProps): import("preact").JSX.Element;
|
|
11
|
+
export declare function DateTimeField({ value, kind, picker, onValueChange, onInput, formatValue, parseValue, ...input }: DateTimeFieldProps): import("../_vendor/preact/src/index").JSX.Element;
|
package/date-time/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as DateTimeField, i as TemporalDraft, a as TemporalPicker, n as attachTemporalPicker, o as defaultTemporalPickerText, t as renderTemporalValue, s as temporalPickerLabel } from "../_chunks/date-time-
|
|
1
|
+
export { r as DateTimeField, i as TemporalDraft, a as TemporalPicker, n as attachTemporalPicker, o as defaultTemporalPickerText, t as renderTemporalValue, s as temporalPickerLabel } from "../_chunks/date-time-BxPJusp9.js";
|
package/date-time/picker.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TemporalPickerProps } from './types';
|
|
2
|
-
export declare function TemporalPicker(props: TemporalPickerProps): import("preact").JSX.Element;
|
|
2
|
+
export declare function TemporalPicker(props: TemporalPickerProps): import("../_vendor/preact/src/index").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export interface TimeSelectionProps {
|
|
|
12
12
|
step?: number;
|
|
13
13
|
}
|
|
14
14
|
/** Shared typed entry and bounded clock columns for time-only and date-time pickers. */
|
|
15
|
-
export declare function TimeSelection({ value, label, text, onChange, format, precision, locale, min, max, step }: TimeSelectionProps): import("preact").JSX.Element;
|
|
15
|
+
export declare function TimeSelection({ value, label, text, onChange, format, precision, locale, min, max, step }: TimeSelectionProps): import("../_vendor/preact/src/index").JSX.Element;
|
package/date-time/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateInputOptions } from './date-control';
|
|
2
|
-
import { JSX } from 'preact';
|
|
2
|
+
import { JSX } from '../_vendor/preact/src/index';
|
|
3
3
|
import { CalendarPickerProps } from '../calendar/picker';
|
|
4
4
|
import { LocalDateControlKind, TemporalControlValue } from '../_shared/dates/index';
|
|
5
5
|
import { EditorActionText, EditorCommitOptions } from '../editor-actions';
|
package/dialog/dialog.dom.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { createPreactElement as t } from "../preact-mount.js";
|
|
3
|
+
import { ButtonControl as n } from "../native-control.js";
|
|
4
|
+
import { a as r, i, n as a, r as o, s } from "../_chunks/dialog.parts-DBqo3Qwb.js";
|
|
5
5
|
//#region src/dialog/dialog.dom.view.tsx
|
|
6
|
-
function
|
|
7
|
-
let
|
|
6
|
+
function c(n, c, l) {
|
|
7
|
+
let u = f(), d, p, m, h, g;
|
|
8
8
|
return {
|
|
9
|
-
root:
|
|
10
|
-
class: ["rv-dialog-overlay",
|
|
9
|
+
root: t(n, /* @__PURE__ */ e("div", {
|
|
10
|
+
class: ["rv-dialog-overlay", c.overlayClass].filter(Boolean).join(" "),
|
|
11
11
|
role: "dialog",
|
|
12
12
|
"aria-modal": "true",
|
|
13
|
-
"aria-labelledby":
|
|
14
|
-
"aria-describedby":
|
|
13
|
+
"aria-labelledby": u,
|
|
14
|
+
"aria-describedby": c.ariaDescribedBy,
|
|
15
15
|
tabIndex: -1,
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ e("section", {
|
|
17
17
|
ref: (e) => {
|
|
18
|
-
|
|
18
|
+
d = e;
|
|
19
19
|
},
|
|
20
|
-
class: ["rv-dialog__surface",
|
|
20
|
+
class: ["rv-dialog__surface", c.surfaceClass].filter(Boolean).join(" "),
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ e(s, {
|
|
23
23
|
ref: (e) => {
|
|
24
|
-
|
|
24
|
+
p = e;
|
|
25
25
|
},
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ e("div", {
|
|
27
27
|
class: "rv-dialog__heading",
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
-
id:
|
|
28
|
+
children: /* @__PURE__ */ e("h3", {
|
|
29
|
+
id: u,
|
|
30
30
|
class: "rv-dialog__title",
|
|
31
|
-
children:
|
|
31
|
+
children: c.title
|
|
32
32
|
})
|
|
33
|
-
}), /* @__PURE__ */
|
|
34
|
-
"aria-label":
|
|
35
|
-
title:
|
|
36
|
-
onClick:
|
|
33
|
+
}), /* @__PURE__ */ e(i, {
|
|
34
|
+
"aria-label": c.closeLabel,
|
|
35
|
+
title: c.closeLabel,
|
|
36
|
+
onClick: l
|
|
37
37
|
})]
|
|
38
38
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
/* @__PURE__ */ e(o, { ref: (e) => {
|
|
40
|
+
m = e;
|
|
41
41
|
} }),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ e(r, {
|
|
43
43
|
ref: (e) => {
|
|
44
|
-
|
|
44
|
+
h = e;
|
|
45
45
|
},
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
children: /* @__PURE__ */ e(a, { ref: (e) => {
|
|
47
|
+
g = e;
|
|
48
48
|
} })
|
|
49
49
|
})
|
|
50
50
|
]
|
|
51
51
|
})
|
|
52
52
|
})),
|
|
53
|
-
surface:
|
|
54
|
-
header:
|
|
55
|
-
body:
|
|
56
|
-
footer:
|
|
57
|
-
actions:
|
|
53
|
+
surface: d,
|
|
54
|
+
header: p,
|
|
55
|
+
body: m,
|
|
56
|
+
footer: h,
|
|
57
|
+
actions: g
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
62
|
-
"aria-label":
|
|
63
|
-
title:
|
|
64
|
-
onClick:
|
|
60
|
+
function l(n, r, a) {
|
|
61
|
+
return t(n, /* @__PURE__ */ e(i, {
|
|
62
|
+
"aria-label": r,
|
|
63
|
+
title: r,
|
|
64
|
+
onClick: a
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
69
|
-
title:
|
|
70
|
-
class:
|
|
71
|
-
onClick:
|
|
72
|
-
children:
|
|
67
|
+
function u(r, i, a, o = "default") {
|
|
68
|
+
return t(r, /* @__PURE__ */ e(n, {
|
|
69
|
+
title: i || void 0,
|
|
70
|
+
class: o === "default" ? "rv-btn" : `rv-btn-${o}`,
|
|
71
|
+
onClick: a,
|
|
72
|
+
children: i
|
|
73
73
|
}));
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
77
|
-
return
|
|
75
|
+
var d = 0;
|
|
76
|
+
function f() {
|
|
77
|
+
return d += 1, `rv-dialog-title-${d}`;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
let n =
|
|
79
|
+
function p(e, t) {
|
|
80
|
+
let n = m(e);
|
|
81
81
|
if (!n.length) {
|
|
82
82
|
t.preventDefault(), e.focus();
|
|
83
83
|
return;
|
|
@@ -85,8 +85,8 @@ function m(e, t) {
|
|
|
85
85
|
let r = e.ownerDocument.activeElement, i = n.findIndex((e) => e === r), a = i < 0 ? t.shiftKey ? n.length - 1 : 0 : t.shiftKey ? (i - 1 + n.length) % n.length : (i + 1) % n.length;
|
|
86
86
|
t.preventDefault(), n[a].focus();
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function m(e) {
|
|
89
89
|
return Array.from(e.querySelectorAll("a[href], area[href], button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), iframe, object, embed, summary, audio[controls], video[controls], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])")).filter((e) => !e.hidden && !e.closest("[hidden], [inert], [aria-hidden=\"true\"]") && !e.matches("[tabindex=\"-1\"], :disabled, input[type=\"hidden\"]"));
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
export {
|
|
92
|
+
export { u as createDialogButton, l as createDialogCloseButton, c as createDialogElements, m as getDialogFocusableElements, p as trapDialogFocus };
|
package/dialog/dialog.parts.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { h, JSX } from 'preact';
|
|
1
|
+
import { h, JSX } from '../_vendor/preact/src/index';
|
|
2
2
|
/** Composable chrome: consumers retain native dialog lifecycle and form policy. */
|
|
3
|
-
export declare const DialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
|
|
4
|
-
ref?: import('preact').Ref<HTMLElement> | undefined;
|
|
3
|
+
export declare const DialogHeader: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
|
|
4
|
+
ref?: import('../_vendor/preact/src/index').Ref<HTMLElement> | undefined;
|
|
5
5
|
}>;
|
|
6
6
|
export declare function DialogForm({ class: className, ...props }: JSX.IntrinsicElements['form']): h.JSX.Element;
|
|
7
|
-
export declare const DialogBody: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
8
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
7
|
+
export declare const DialogBody: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
8
|
+
ref?: import('../_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const DialogFooter: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
|
|
11
|
-
ref?: import('preact').Ref<HTMLElement> | undefined;
|
|
10
|
+
export declare const DialogFooter: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
|
|
11
|
+
ref?: import('../_vendor/preact/src/index').Ref<HTMLElement> | undefined;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const DialogActions: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
-
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
13
|
+
export declare const DialogActions: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
+
ref?: import('../_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export declare function DialogCloseButton({ class: className, iconClass, ...props }: Omit<JSX.IntrinsicElements['button'], 'ref'> & {
|
|
17
17
|
'aria-label': string;
|
|
18
18
|
iconClass?: string;
|
|
19
19
|
}): h.JSX.Element;
|
|
20
20
|
/** A native input with shared title styling; labels and commit policy stay explicit. */
|
|
21
|
-
export declare const DialogTitleInput: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<h.JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
|
|
22
|
-
ref?: import('preact').Ref<HTMLInputElement> | undefined;
|
|
21
|
+
export declare const DialogTitleInput: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<Omit<h.JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
|
|
22
|
+
ref?: import('../_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export interface EditableDialogHeaderProps extends Omit<JSX.IntrinsicElements['header'], 'title'> {
|
|
25
25
|
readonly titleId: string;
|
|
26
26
|
readonly title: string;
|
|
27
27
|
/** Optional dialog name above the editable item title. */
|
|
28
28
|
readonly name?: string;
|
|
29
|
-
readonly description?: import('preact').ComponentChildren;
|
|
29
|
+
readonly description?: import('../_vendor/preact/src/index').ComponentChildren;
|
|
30
30
|
readonly inputLabel: string;
|
|
31
31
|
readonly titleHidden?: boolean;
|
|
32
32
|
readonly headingClass?: string;
|
|
@@ -41,11 +41,11 @@ export interface EditableDialogHeaderProps extends Omit<JSX.IntrinsicElements['h
|
|
|
41
41
|
readonly onClose?: () => void;
|
|
42
42
|
}
|
|
43
43
|
/** One owner for editable item names, dialog captions, close actions and spacing. */
|
|
44
|
-
export declare const EditableDialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<EditableDialogHeaderProps> & {
|
|
45
|
-
ref?: import('preact').Ref<HTMLElement> | undefined;
|
|
44
|
+
export declare const EditableDialogHeader: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<EditableDialogHeaderProps> & {
|
|
45
|
+
ref?: import('../_vendor/preact/src/index').Ref<HTMLElement> | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type DialogAction = Omit<JSX.IntrinsicElements['button'], 'children' | 'ref'> & {
|
|
48
|
-
readonly label?: import('preact').ComponentChildren;
|
|
48
|
+
readonly label?: import('../_vendor/preact/src/index').ComponentChildren;
|
|
49
49
|
[attribute: `data-${string}`]: unknown;
|
|
50
50
|
};
|
|
51
51
|
export type DialogActionFooterProps = JSX.IntrinsicElements['footer'] & {
|
|
@@ -54,9 +54,9 @@ export type DialogActionFooterProps = JSX.IntrinsicElements['footer'] & {
|
|
|
54
54
|
readonly deleteAction?: DialogAction | false;
|
|
55
55
|
readonly reset?: DialogAction | false;
|
|
56
56
|
/** Custom actions on either side of the standard bottom panel. */
|
|
57
|
-
readonly start?: import('preact').ComponentChildren;
|
|
58
|
-
readonly end?: import('preact').ComponentChildren;
|
|
57
|
+
readonly start?: import('../_vendor/preact/src/index').ComponentChildren;
|
|
58
|
+
readonly end?: import('../_vendor/preact/src/index').ComponentChildren;
|
|
59
59
|
readonly actionsClass?: string;
|
|
60
60
|
};
|
|
61
61
|
/** Default Cancel/Save, opt-in Delete/Reset; false hides any standard action. */
|
|
62
|
-
export declare function DialogActionFooter(props: DialogActionFooterProps): import('preact').VNode<import('preact').Attributes>;
|
|
62
|
+
export declare function DialogActionFooter(props: DialogActionFooterProps): import('../_vendor/preact/src/index').VNode<import('../_vendor/preact/src/index').Attributes>;
|
package/dialog/dialog.parts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DialogActionFooter, n as DialogActions, r as DialogBody, i as DialogCloseButton, a as DialogFooter, o as DialogForm, s as DialogHeader, c as DialogTitleInput, l as EditableDialogHeader } from "../_chunks/dialog.parts-
|
|
1
|
+
export { t as DialogActionFooter, n as DialogActions, r as DialogBody, i as DialogCloseButton, a as DialogFooter, o as DialogForm, s as DialogHeader, c as DialogTitleInput, l as EditableDialogHeader } from "../_chunks/dialog.parts-DBqo3Qwb.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from 'preact';
|
|
1
|
+
import { RefObject } from '../_vendor/preact/src/index';
|
|
2
2
|
export interface UseDialogDragOptions<Target extends HTMLElement, Handle extends HTMLElement> {
|
|
3
3
|
readonly targetRef: RefObject<Target>;
|
|
4
4
|
readonly handleRef: RefObject<Handle>;
|
package/dialog/dialog.preact.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { attachDialogDrag as t } from "./dialog.drag.js";
|
|
3
3
|
//#region src/dialog/dialog.preact.ts
|
|
4
4
|
function n({ targetRef: n, handleRef: r, enabled: i = !0 }) {
|
|
5
|
-
|
|
6
|
-
let
|
|
7
|
-
if (i &&
|
|
8
|
-
target:
|
|
5
|
+
e(() => {
|
|
6
|
+
let e = n.current, a = r.current;
|
|
7
|
+
if (i && e && a) return t({
|
|
8
|
+
target: e,
|
|
9
9
|
handle: a
|
|
10
10
|
});
|
|
11
11
|
}, [
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../_chunks/chart-frame-BC99KjGa.js";
|
|
4
4
|
//#region src/distribution-chart/area-chart.tsx
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
let r =
|
|
5
|
+
function o(o) {
|
|
6
|
+
let s = `rv-area-${e().replace(/[^a-zA-Z0-9_-]/g, "")}`, { points: c } = i(o.data), l = o.data.some((e) => e.selected !== void 0), u = c.slice(1).map((e, t) => {
|
|
7
|
+
let r = c[t], i = n(r, e, o.interpolation);
|
|
8
8
|
return {
|
|
9
|
-
key:
|
|
10
|
-
selected: !
|
|
9
|
+
key: o.data[t].key,
|
|
10
|
+
selected: !l || !!(o.data[t].selected && o.data[t + 1].selected),
|
|
11
11
|
line: i,
|
|
12
|
-
area: `${i} L ${
|
|
12
|
+
area: `${i} L ${e.x} 100 L ${r.x} 100 Z`
|
|
13
13
|
};
|
|
14
14
|
});
|
|
15
|
-
return /* @__PURE__ */ a
|
|
16
|
-
...
|
|
15
|
+
return /* @__PURE__ */ t(a, {
|
|
16
|
+
...o,
|
|
17
17
|
variant: "area",
|
|
18
|
-
positions:
|
|
19
|
-
renderDatum: () =>
|
|
18
|
+
positions: c,
|
|
19
|
+
renderDatum: () => o.showPoints === !1 ? null : /* @__PURE__ */ t("span", {
|
|
20
20
|
class: "rv-distribution-chart__point",
|
|
21
21
|
"aria-hidden": "true"
|
|
22
22
|
}),
|
|
23
|
-
children:
|
|
24
|
-
let
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
id: `${
|
|
23
|
+
children: c.length > 0 && /* @__PURE__ */ t(r, { children: [o.areaFill === "gradient" && /* @__PURE__ */ t("defs", { children: [!0, !1].map((e) => {
|
|
24
|
+
let n = e ? "var(--rv-distribution-accent, var(--rv-ui-accent))" : "var(--rv-distribution-muted, var(--rv-ui-border))";
|
|
25
|
+
return /* @__PURE__ */ t("linearGradient", {
|
|
26
|
+
id: `${s}${e ? "" : "-muted"}`,
|
|
27
27
|
gradientUnits: "userSpaceOnUse",
|
|
28
28
|
x1: "0",
|
|
29
29
|
y1: "8",
|
|
30
30
|
x2: "0",
|
|
31
31
|
y2: "100",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
33
33
|
offset: "0%",
|
|
34
|
-
"stop-color":
|
|
34
|
+
"stop-color": n,
|
|
35
35
|
"stop-opacity": "0.4"
|
|
36
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ t("stop", {
|
|
37
37
|
offset: "100%",
|
|
38
|
-
"stop-color":
|
|
38
|
+
"stop-color": n,
|
|
39
39
|
"stop-opacity": "0.02"
|
|
40
40
|
})]
|
|
41
41
|
}, String(e));
|
|
42
|
-
}) }),
|
|
42
|
+
}) }), u.map((e) => /* @__PURE__ */ t("g", { children: [/* @__PURE__ */ t("path", {
|
|
43
43
|
class: `rv-distribution-chart__area${e.selected ? " is-selected" : ""}`,
|
|
44
44
|
d: e.area,
|
|
45
|
-
style:
|
|
46
|
-
}), /* @__PURE__ */
|
|
45
|
+
style: o.areaFill === "gradient" ? { fill: `url(#${s}${e.selected ? "" : "-muted"})` } : void 0
|
|
46
|
+
}), /* @__PURE__ */ t("path", {
|
|
47
47
|
class: `rv-distribution-chart__series rv-distribution-chart__segment${e.selected ? " is-selected" : ""}`,
|
|
48
48
|
d: e.line,
|
|
49
49
|
"vector-effect": "non-scaling-stroke"
|
|
@@ -51,4 +51,4 @@ function s(s) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
export {
|
|
54
|
+
export { o as AreaChart };
|