@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
package/ai/transcript.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AiAssistantMountState } from './mount';
|
|
2
|
+
import { AiResultContent } from './results';
|
|
2
3
|
export interface AiTranscriptMessage {
|
|
3
4
|
id: string;
|
|
4
5
|
group: string;
|
|
@@ -6,6 +7,7 @@ export interface AiTranscriptMessage {
|
|
|
6
7
|
text: string;
|
|
7
8
|
phase?: AiAssistantMountState['phase'];
|
|
8
9
|
details?: string;
|
|
10
|
+
result?: AiResultContent;
|
|
9
11
|
pending?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/** Local presentation state only. Never supplies model context or persists values. */
|
package/ai/translations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** English message IDs and fallbacks; hosts supply translated values. */
|
|
2
|
-
export declare const AI_UI_MESSAGES: readonly ["AI chat", "Clear chat", "Conversation messages", "Jump to latest", "You", "Assistant", "System", "Message actions", "Start a conversation", "Ask a question to get started.", "Message", "Type a message…", "Working…", "Reasoning summary", "Pending", "Running", "Completed", "Failed", "Cancelled", "{seconds}s", "Data history", "Review changes", "Apply changes", "Cancel changes", "Undo data change", "Redo data change", "Ask AI to change this view", "Filter or sort your data…", "Send", "Stop", "Enter to send · Shift+Enter for a new line", "Suggested requests", "More", "Activity", "Collapse activity", "Expand activity", "AI view assistant", "View steps", "Clear all", "Restore the starting view", "Restore previous view", "Reset view", "The view changed manually. Start a new request to continue.", "Remove request: {label}", "{count} step", "{count} steps", "{count} applied request", "{count} applied requests", "{count} matching rows"];
|
|
2
|
+
export declare const AI_UI_MESSAGES: readonly ["AI chat", "No results", "Clear chat", "Conversation messages", "Jump to latest", "You", "Assistant", "System", "Message actions", "Start a conversation", "Ask a question to get started.", "Message", "Type a message…", "Working…", "Reasoning summary", "Pending", "Running", "Completed", "Failed", "Cancelled", "{seconds}s", "Data history", "Review changes", "Proposed changes", "Change", "Current", "Proposed", "Apply changes", "Cancel changes", "Undo data change", "Redo data change", "Ask AI to change this view", "Filter or sort your data…", "Send", "Stop", "Enter to send · Shift+Enter for a new line", "Suggested requests", "More", "Activity", "Collapse activity", "Expand activity", "AI view assistant", "View steps", "Clear all", "Restore the starting view", "Restore previous view", "Reset view", "The view changed manually. Start a new request to continue.", "Remove request: {label}", "{count} step", "{count} steps", "{count} applied request", "{count} applied requests", "{count} matching rows"];
|
|
3
3
|
export type AiUiTranslations = Partial<Record<(typeof AI_UI_MESSAGES)[number], string>>;
|
|
4
4
|
export declare function translateAiText(text: string, translations?: Readonly<Record<string, string | undefined>>, values?: Readonly<Record<string, string | number>>): string;
|
package/assignee/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e, t } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { l as r, n as i } from "../_chunks/native-control-
|
|
4
|
-
import {
|
|
3
|
+
import { l as r, n as i } from "../_chunks/native-control-DO0d1kgx.js";
|
|
4
|
+
import { L as a } from "../_chunks/controls-BLQnWEd7.js";
|
|
5
5
|
import { SearchInput as o } from "../search-input/index.js";
|
|
6
6
|
import { SharedResourcePicker as s } from "../resource-picker/resource-picker.js";
|
|
7
7
|
import { EditorActions as c } from "../editor-actions.js";
|
package/avatar/index.js
CHANGED
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
import { i as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createPreactElement as n } from "../preact-mount.js";
|
|
4
|
-
import {
|
|
4
|
+
import { t as r } from "../_chunks/tooltip-text-BXsUEmBH.js";
|
|
5
|
+
import { AVATAR_CELL_BACKGROUNDS as i } from "../color-palette/common-palettes.js";
|
|
5
6
|
//#region src/avatar/index.view.tsx
|
|
6
|
-
function
|
|
7
|
-
let [
|
|
7
|
+
function a({ options: n = {} }) {
|
|
8
|
+
let [a, o] = e(!1), { index: s = 0, initials: u, rectangular: f = !1, size: p, value: m } = n, h = [
|
|
8
9
|
"avatar-cell",
|
|
9
|
-
`avatar-cell--${Math.max(
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
`avatar-cell--${Math.max(s, 0) % i.length}`,
|
|
11
|
+
f ? "avatar-cell--rectangular rectangular" : "",
|
|
12
|
+
d(p),
|
|
12
13
|
n.className
|
|
13
14
|
].filter(Boolean).join(" ");
|
|
14
|
-
return /* @__PURE__ */ t(
|
|
15
|
-
class:
|
|
16
|
-
title: n.label || String(
|
|
15
|
+
return /* @__PURE__ */ t(r, {
|
|
16
|
+
class: h,
|
|
17
|
+
title: n.label || String(m ?? ""),
|
|
17
18
|
role: "img",
|
|
18
19
|
"aria-label": n.ariaLabel || n.label || void 0,
|
|
19
20
|
style: n.style,
|
|
20
|
-
children:
|
|
21
|
+
children: l(m) && !a ? /* @__PURE__ */ t("img", {
|
|
21
22
|
class: "avatar-cell__image",
|
|
22
|
-
src: String(
|
|
23
|
+
src: String(m),
|
|
23
24
|
alt: n.label || "",
|
|
24
|
-
onError: () =>
|
|
25
|
-
}) :
|
|
25
|
+
onError: () => o(!0)
|
|
26
|
+
}) : u ?? c(m)
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
return n(e, /* @__PURE__ */ t(
|
|
29
|
+
function o(e, r = {}) {
|
|
30
|
+
return n(e, /* @__PURE__ */ t(a, { options: r }));
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
32
|
+
function s(e = 0) {
|
|
33
|
+
return i[Math.max(e, 0) % i.length];
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function c(e) {
|
|
35
36
|
return String(e ?? "").split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function l(e) {
|
|
38
39
|
return typeof e == "string" && /^(https?:|data:image\/|blob:|\/|\.\.?\/)/.test(e);
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function u(e) {
|
|
41
42
|
let t = Number(e);
|
|
42
43
|
return Number.isFinite(t) ? Math.max(t - 1, 0) : 0;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function d(e) {
|
|
45
46
|
if (e) return e <= 16 ? "avatar-cell--size-16" : e <= 20 ? "avatar-cell--size-20" : e <= 32 ? "avatar-cell--size-32" : e <= 40 ? "avatar-cell--size-40" : "avatar-cell--size-48";
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
let { index: n = 0, initials:
|
|
48
|
+
function f(e, t = {}) {
|
|
49
|
+
let { index: n = 0, initials: r, rectangular: a = !1, size: o, value: s } = t, u = l(s), f = d(o), p = {
|
|
49
50
|
class: [
|
|
50
51
|
"avatar-cell",
|
|
51
|
-
`avatar-cell--${Math.max(n, 0) %
|
|
52
|
+
`avatar-cell--${Math.max(n, 0) % i.length}`,
|
|
52
53
|
a ? "avatar-cell--rectangular rectangular" : "",
|
|
53
54
|
f,
|
|
54
55
|
t.className
|
|
55
56
|
].filter(Boolean).join(" "),
|
|
56
|
-
title: t.label || String(
|
|
57
|
+
title: t.label || String(s ?? "")
|
|
57
58
|
};
|
|
58
|
-
return t.key !== void 0 && (p.key = t.key), t.style !== void 0 && (p.style = t.style), t.ariaLabel !== void 0 && (p["aria-label"] = t.ariaLabel),
|
|
59
|
+
return t.key !== void 0 && (p.key = t.key), t.style !== void 0 && (p.style = t.style), t.ariaLabel !== void 0 && (p["aria-label"] = t.ariaLabel), u ? e("span", p, [e("img", {
|
|
59
60
|
class: "avatar-cell__image",
|
|
60
|
-
src: String(
|
|
61
|
+
src: String(s),
|
|
61
62
|
alt: t.label || ""
|
|
62
|
-
})]) : e("span", p,
|
|
63
|
+
})]) : e("span", p, r ?? c(s));
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
return e("span", { class: "avatar-cell-with-text" }, [
|
|
65
|
+
function p(e, t = {}) {
|
|
66
|
+
return e("span", { class: "avatar-cell-with-text" }, [f(e, t), e("span", { class: "avatar-cell-with-text__label" }, String(t.label ?? t.value ?? ""))]);
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
|
-
export {
|
|
69
|
+
export { i as AVATAR_CELL_BACKGROUNDS, a as AvatarElement, f as avatarTemplate, p as avatarWithTextTemplate, o as createAvatarElement, s as getAvatarCellBackground, u as getAvatarIndex, c as getAvatarInitials };
|
package/badge.view.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h, ComponentChildren } from './_vendor/preact/src/index';
|
|
2
|
+
import { BadgeOptions } from './badge';
|
|
3
|
+
/** Shared badge presentation, independent of toolbar and form controls. */
|
|
4
|
+
export declare function Badge({ children, className, variant, shape }: BadgeOptions & {
|
|
5
|
+
children?: ComponentChildren;
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
}): h.JSX.Element;
|
package/brush-range/component.js
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t } from "../_chunks/tooltip-text-BXsUEmBH.js";
|
|
3
|
+
import { PreactRangeSlider as n } from "../filter/filters/slider/preact.js";
|
|
4
|
+
import { DistributionChart as r } from "../distribution-chart/index.js";
|
|
4
5
|
//#region src/brush-range/component.tsx
|
|
5
|
-
function
|
|
6
|
+
function i(...e) {
|
|
6
7
|
return e.filter(Boolean).join(" ");
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function a(e) {
|
|
9
10
|
return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
-
let
|
|
12
|
+
function o({ chart: o, slider: s, startLabel: c, selectionLabel: l, endLabel: u, legacyClassPrefix: d }) {
|
|
13
|
+
let f = (e) => d ? `${d}__${e}` : void 0;
|
|
13
14
|
return /* @__PURE__ */ e("div", {
|
|
14
15
|
class: "brush-range",
|
|
15
16
|
children: [
|
|
16
|
-
|
|
17
|
-
...a,
|
|
18
|
-
className: r("brush-range__chart", d("chart"), a.className)
|
|
19
|
-
}) : null,
|
|
20
|
-
/* @__PURE__ */ e(t, {
|
|
17
|
+
o ? /* @__PURE__ */ e(r, {
|
|
21
18
|
...o,
|
|
22
|
-
className:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
className: i("brush-range__chart", f("chart"), o.className)
|
|
20
|
+
}) : null,
|
|
21
|
+
/* @__PURE__ */ e(n, {
|
|
22
|
+
...s,
|
|
23
|
+
className: i("brush-range__range", f("range"), s.className),
|
|
24
|
+
controlClassName: i("brush-range__controls", f("controls"), s.controlClassName),
|
|
25
|
+
fromClassName: i(f("lower"), s.fromClassName),
|
|
26
|
+
toClassName: i(f("upper"), s.toClassName)
|
|
26
27
|
}),
|
|
27
28
|
/* @__PURE__ */ e("div", {
|
|
28
|
-
class:
|
|
29
|
+
class: i("brush-range__labels", f("labels")),
|
|
29
30
|
children: [
|
|
30
|
-
/* @__PURE__ */ e(
|
|
31
|
+
/* @__PURE__ */ e(t, {
|
|
31
32
|
class: "brush-range__label brush-range__label--start",
|
|
32
|
-
title:
|
|
33
|
-
children:
|
|
33
|
+
title: a(c),
|
|
34
|
+
children: c
|
|
34
35
|
}),
|
|
35
|
-
/* @__PURE__ */ e(
|
|
36
|
-
class:
|
|
36
|
+
/* @__PURE__ */ e(t, {
|
|
37
|
+
class: i("brush-range__label", "brush-range__selection", f("selection")),
|
|
37
38
|
role: "status",
|
|
38
|
-
title:
|
|
39
|
-
children:
|
|
39
|
+
title: a(l),
|
|
40
|
+
children: l
|
|
40
41
|
}),
|
|
41
|
-
/* @__PURE__ */ e(
|
|
42
|
+
/* @__PURE__ */ e(t, {
|
|
42
43
|
class: "brush-range__label brush-range__label--end",
|
|
43
|
-
title:
|
|
44
|
-
children:
|
|
44
|
+
title: a(u),
|
|
45
|
+
children: u
|
|
45
46
|
})
|
|
46
47
|
]
|
|
47
48
|
})
|
|
@@ -49,4 +50,4 @@ function a({ chart: a, slider: o, startLabel: s, selectionLabel: c, endLabel: l,
|
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
//#endregion
|
|
52
|
-
export {
|
|
53
|
+
export { o as BrushRange };
|
package/buttons/svg-button.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ export interface SvgButtonProps extends Omit<JSX.IntrinsicElements['button'], 'c
|
|
|
16
16
|
readonly children?: ComponentChildren;
|
|
17
17
|
}
|
|
18
18
|
/** Shared native button presentation for trusted bundled SVG controls. */
|
|
19
|
-
export declare function SvgButton({ label, variant, icon, visibleLabel, className, iconClassName, labelClassName, children, iconContent, badge, badgeClassName, class: nativeClass, disabled, ...attributes }: SvgButtonProps): h.JSX.Element;
|
|
19
|
+
export declare function SvgButton({ label, variant, icon, visibleLabel, className, iconClassName, labelClassName, children, iconContent, badge, badgeClassName, class: nativeClass, disabled, title, ...attributes }: SvgButtonProps): h.JSX.Element;
|
package/buttons/svg-button.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
-
import { t as n } from "../_chunks/native-control-
|
|
3
|
+
import { t as n } from "../_chunks/native-control-DO0d1kgx.js";
|
|
4
4
|
import { controlClassName as r } from "../control-attributes.js";
|
|
5
|
-
import { n as i } from "../_chunks/
|
|
5
|
+
import { n as i } from "../_chunks/tooltip-D4xkio5G.js";
|
|
6
6
|
//#region src/buttons/svg-button.tsx
|
|
7
|
-
function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _,
|
|
8
|
-
let
|
|
7
|
+
function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _, title: v, ...y }) {
|
|
8
|
+
let b = i(typeof v == "string" ? v : a, !0, {
|
|
9
9
|
className: "rv-control-tooltip",
|
|
10
10
|
placement: "above"
|
|
11
11
|
});
|
|
12
12
|
return /* @__PURE__ */ e(n, {
|
|
13
13
|
type: "button",
|
|
14
14
|
"aria-label": m === void 0 ? a : `${a} ${m}`,
|
|
15
|
-
...
|
|
15
|
+
...y,
|
|
16
16
|
disabled: _,
|
|
17
|
-
...
|
|
18
|
-
"aria-describedby": [
|
|
17
|
+
...b.triggerProps,
|
|
18
|
+
"aria-describedby": [y["aria-describedby"], b.id].filter(Boolean).join(" "),
|
|
19
19
|
onFocus: (e) => {
|
|
20
|
-
|
|
20
|
+
b.triggerProps.onFocus(e), y.onFocus?.(e);
|
|
21
21
|
},
|
|
22
22
|
onBlur: (e) => {
|
|
23
|
-
|
|
23
|
+
b.triggerProps.onBlur(), y.onBlur?.(e);
|
|
24
24
|
},
|
|
25
25
|
onMouseEnter: (e) => {
|
|
26
|
-
|
|
26
|
+
b.triggerProps.onMouseEnter(e), y.onMouseEnter?.(e);
|
|
27
27
|
},
|
|
28
28
|
onMouseLeave: (e) => {
|
|
29
|
-
|
|
29
|
+
b.triggerProps.onMouseLeave(), y.onMouseLeave?.(e);
|
|
30
30
|
},
|
|
31
31
|
onPointerDown: (e) => {
|
|
32
|
-
|
|
32
|
+
b.triggerProps.onPointerDown(e), y.onPointerDown?.(e);
|
|
33
33
|
},
|
|
34
34
|
onPointerCancel: (e) => {
|
|
35
|
-
|
|
35
|
+
b.triggerProps.onPointerCancel(), y.onPointerCancel?.(e);
|
|
36
36
|
},
|
|
37
37
|
onKeyDown: (e) => {
|
|
38
|
-
|
|
38
|
+
b.triggerProps.onKeyDown(e), y.onKeyDown?.(e);
|
|
39
39
|
},
|
|
40
40
|
onClick: (e) => {
|
|
41
|
-
|
|
41
|
+
b.hide(), y.onClick?.(e);
|
|
42
42
|
},
|
|
43
43
|
class: r(l ?? (o ? "" : "rv-btn-ghost"), o && `rv-btn-${o}`, g, "rv-icon-action", !c && "rv-btn-icon"),
|
|
44
44
|
children: [
|
|
@@ -56,7 +56,7 @@ function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconC
|
|
|
56
56
|
children: m
|
|
57
57
|
}),
|
|
58
58
|
f,
|
|
59
|
-
|
|
59
|
+
b.tooltip
|
|
60
60
|
]
|
|
61
61
|
});
|
|
62
62
|
}
|
package/calendar/_calendar.scss
CHANGED
|
@@ -299,8 +299,8 @@
|
|
|
299
299
|
}
|
|
300
300
|
.revo-calendar__caption .rv-select .dropdown-trigger {
|
|
301
301
|
min-width: 0;
|
|
302
|
-
width:
|
|
303
|
-
max-width:
|
|
302
|
+
width: 100%;
|
|
303
|
+
max-width: 100%;
|
|
304
304
|
min-height: var(--calendar-cell-size);
|
|
305
305
|
height: var(--calendar-cell-size);
|
|
306
306
|
padding-block: 2px;
|
package/calendar/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Calendar } from "../_chunks/calendar-
|
|
1
|
+
export { t as Calendar } from "../_chunks/calendar-DsXIhybL.js";
|
package/calendar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_CALENDAR_TRANSLATIONS as e } from "./translations.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "../_chunks/model-mPO2tG2f.js";
|
|
3
3
|
import { CalendarHeader as s, CalendarWeekdays as c } from "./header.js";
|
|
4
|
-
import { t as l } from "../_chunks/calendar-
|
|
4
|
+
import { t as l } from "../_chunks/calendar-DsXIhybL.js";
|
|
5
5
|
import { CalendarDay as u } from "./day.js";
|
|
6
6
|
import { CalendarMonthGrid as d } from "./month-grid.js";
|
|
7
7
|
import { CalendarYearGrid as f } from "./year-grid.js";
|
|
8
|
-
import { t as p } from "../_chunks/picker-
|
|
8
|
+
import { t as p } from "../_chunks/picker-AY05b41W.js";
|
|
9
9
|
export { l as Calendar, u as CalendarDay, s as CalendarHeader, d as CalendarMonthGrid, p as CalendarPicker, c as CalendarWeekdays, f as CalendarYearGrid, e as DEFAULT_CALENDAR_TRANSLATIONS, o as createCalendarMonth, r as isCalendarDateDisabled, a as isCalendarMonthDisabled, n as isDateInCalendarRange, t as moveCalendarFocus, i as orderCalendarRange };
|
package/choice-chips/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export type ChoiceChipsProps<T extends ChoiceChipValue = ChoiceChipValue> = {
|
|
|
20
20
|
onChange: (value: T, option: ChoiceChipOption<T>) => void;
|
|
21
21
|
ariaLabel: string;
|
|
22
22
|
appearance?: 'soft' | 'outlined';
|
|
23
|
+
/** Keep choices on one scrollable row, with hidden scrollbars and soft edge fades. */
|
|
24
|
+
scrollable?: boolean;
|
|
23
25
|
size?: 'small' | 'medium';
|
|
24
26
|
className?: string;
|
|
25
27
|
itemClassName?: string;
|
|
@@ -27,7 +29,7 @@ export type ChoiceChipsProps<T extends ChoiceChipValue = ChoiceChipValue> = {
|
|
|
27
29
|
testId?: string;
|
|
28
30
|
};
|
|
29
31
|
/** Shared wrapping choice control for compact presets and granularities. */
|
|
30
|
-
export declare function ChoiceChips<T extends ChoiceChipValue = ChoiceChipValue>({ value, options, onChange, ariaLabel, appearance, size, className, itemClassName, disabled, testId, }: ChoiceChipsProps<T>): any;
|
|
32
|
+
export declare function ChoiceChips<T extends ChoiceChipValue = ChoiceChipValue>({ value, options, onChange, ariaLabel, appearance, scrollable, size, className, itemClassName, disabled, testId, }: ChoiceChipsProps<T>): any;
|
|
31
33
|
export declare function ChoiceChipInfoButton({ 'data-tooltip': details, title, ref: forwardedRef, ...props }: JSX.IntrinsicElements['button'] & {
|
|
32
34
|
'data-tooltip'?: string;
|
|
33
35
|
}): h.JSX.Element;
|
package/choice-chips/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-
|
|
1
|
+
export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-BhP8MZjs.js";
|
|
@@ -242,7 +242,7 @@ revo-grid .rv-context-menu .rv-color-palette-menu__swatch-item[aria-checked='tru
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.rv-color-palette-menu[aria-expanded='true'] > .rv-context-menu__submenu {
|
|
245
|
-
grid-template-columns: repeat(5, 32px); gap: 10px 14px; width:
|
|
245
|
+
grid-template-columns: repeat(5, 32px); gap: 10px 14px; width: 242px;
|
|
246
246
|
}
|
|
247
247
|
.rv-color-palette-menu__default-item {
|
|
248
248
|
grid-column: auto; width: 32px; min-width: 32px; min-height: 32px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e } from "../_chunks/color-palette-
|
|
2
|
-
import { t } from "../_chunks/color-picker-
|
|
1
|
+
import { n as e } from "../_chunks/color-palette-DMJUChWC.js";
|
|
2
|
+
import { t } from "../_chunks/color-picker-B4TQvxxB.js";
|
|
3
3
|
export { t as ColorPicker, e as normalizeHexColor };
|
package/component-catalog.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export declare const uiComponents: {
|
|
|
20
20
|
readonly AiSuggestions: typeof ui.AiSuggestions;
|
|
21
21
|
readonly AiActionStatus: typeof ui.AiActionStatus;
|
|
22
22
|
readonly AiResult: typeof ui.AiResult;
|
|
23
|
+
readonly AiResultView: typeof ui.AiResultView;
|
|
24
|
+
readonly AiResultTable: typeof ui.AiResultTable;
|
|
25
|
+
readonly AiResultMetrics: typeof ui.AiResultMetrics;
|
|
26
|
+
readonly AiResultText: typeof ui.AiResultText;
|
|
23
27
|
readonly AiChangePreview: typeof ui.AiChangePreview;
|
|
24
28
|
readonly AiAssistant: typeof ui.AiAssistant;
|
|
25
29
|
readonly AiRequestTrail: typeof ui.AiRequestTrail;
|
|
@@ -29,7 +33,7 @@ export declare const uiComponents: {
|
|
|
29
33
|
readonly RangeSlider: typeof ui.PreactRangeSlider;
|
|
30
34
|
readonly ResourcePicker: typeof ui.SharedResourcePicker;
|
|
31
35
|
readonly FeedbackPanel: typeof ui.StatusFeedbackPanel;
|
|
32
|
-
readonly Input: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "
|
|
36
|
+
readonly Input: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "ref" | "className" | "class"> & {
|
|
33
37
|
class?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
|
|
34
38
|
className?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined>;
|
|
35
39
|
}> & {
|
|
@@ -201,6 +205,7 @@ export declare const uiComponents: {
|
|
|
201
205
|
readonly ReorderList: typeof ui.ReorderList;
|
|
202
206
|
readonly ReorderHandle: typeof ui.ReorderHandle;
|
|
203
207
|
readonly TimelineTrack: typeof ui.TimelineTrack;
|
|
208
|
+
readonly IconToolbar: typeof ui.IconToolbar;
|
|
204
209
|
readonly ActivityMessage: typeof ui.ActivityMessage;
|
|
205
210
|
readonly PdfViewer: typeof ui.PdfViewer;
|
|
206
211
|
readonly PdfViewerToolbar: typeof ui.PdfViewerToolbar;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { FieldRemoveButton as DeleteButton } from './field-configurator';
|
|
2
|
+
import { h, ComponentChildren, ComponentProps, JSX, Ref } from './_vendor/preact/src/index';
|
|
3
|
+
import { DropdownPopup } from './dropdown/popup';
|
|
4
|
+
import { SearchInput } from './search-input/index';
|
|
5
|
+
type ElementRenderer = (...args: any[]) => any;
|
|
6
|
+
export declare const CONFIGURATOR_AREA_ICONS: {
|
|
7
|
+
rows: string;
|
|
8
|
+
columns: string;
|
|
9
|
+
values: string;
|
|
10
|
+
filters: string;
|
|
11
|
+
};
|
|
12
|
+
type ActionTriggerProps = Omit<JSX.IntrinsicElements['button'], 'children' | 'ref'> & {
|
|
13
|
+
icon: 'plus' | 'gear';
|
|
14
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
15
|
+
};
|
|
16
|
+
/** The same control renders in Core Fields cells and Preact panels. */
|
|
17
|
+
export declare function renderConfiguratorActionTrigger(createElement: ElementRenderer, { icon, buttonRef, ...props }: ActionTriggerProps): any;
|
|
18
|
+
/** Native button refs and event handlers stay with the adapter. */
|
|
19
|
+
export declare function ConfiguratorActionTrigger(props: ActionTriggerProps): JSX.Element;
|
|
20
|
+
export declare function ConfiguratorRemoveButton(props: ComponentProps<typeof DeleteButton>): h.JSX.Element;
|
|
21
|
+
/** Shared menu row; integrations supply policy, labels and callbacks. */
|
|
22
|
+
export declare function ConfiguratorActionButton({ text, icon, explanation, checked, ...props }: Omit<JSX.IntrinsicElements['button'], 'children'> & {
|
|
23
|
+
text: string;
|
|
24
|
+
icon?: ComponentChildren;
|
|
25
|
+
explanation?: string;
|
|
26
|
+
checked?: boolean;
|
|
27
|
+
}): h.JSX.Element;
|
|
28
|
+
export declare function ConfiguratorActionIcon({ svg }: {
|
|
29
|
+
svg: string;
|
|
30
|
+
}): h.JSX.Element;
|
|
31
|
+
export declare function ConfiguratorZoneActions({ add, clear, children }: {
|
|
32
|
+
add: ComponentProps<typeof ConfiguratorActionTrigger>;
|
|
33
|
+
clear?: ComponentProps<typeof ConfiguratorRemoveButton>;
|
|
34
|
+
children?: ComponentChildren;
|
|
35
|
+
}): h.JSX.Element;
|
|
36
|
+
export declare function ConfiguratorFilterStatus({ label }: {
|
|
37
|
+
label: string;
|
|
38
|
+
}): h.JSX.Element;
|
|
39
|
+
export declare function ConfiguratorFieldCaption({ children, annotation }: {
|
|
40
|
+
children: ComponentChildren;
|
|
41
|
+
annotation?: string;
|
|
42
|
+
}): h.JSX.Element;
|
|
43
|
+
export declare function ConfiguratorHint({ children }: {
|
|
44
|
+
children: ComponentChildren;
|
|
45
|
+
}): h.JSX.Element;
|
|
46
|
+
export declare function ConfiguratorFieldSearch(props: ComponentProps<typeof SearchInput>): h.JSX.Element;
|
|
47
|
+
export declare function ConfiguratorFieldPicker({ children, emptyText }: {
|
|
48
|
+
children?: ComponentChildren;
|
|
49
|
+
emptyText?: string;
|
|
50
|
+
}): h.JSX.Element;
|
|
51
|
+
export declare function ConfiguratorActionGroup({ section, children }: {
|
|
52
|
+
section: 'settings' | 'layout' | 'removal';
|
|
53
|
+
children: ComponentChildren;
|
|
54
|
+
}): h.JSX.Element | null;
|
|
55
|
+
export declare function ConfiguratorActionPanel({ title, accessibleLabel, header, panelRef, onKeyDown, children, ...popup }: Omit<ComponentProps<typeof DropdownPopup>, 'children' | 'popupClassName' | 'topLayer' | 'closeOnClickOutside'> & {
|
|
56
|
+
title: string;
|
|
57
|
+
accessibleLabel?: string;
|
|
58
|
+
header?: ComponentChildren;
|
|
59
|
+
panelRef?: Ref<HTMLDivElement>;
|
|
60
|
+
onKeyDown?: JSX.HTMLAttributes<HTMLDivElement>['onKeyDown'];
|
|
61
|
+
children: ComponentChildren;
|
|
62
|
+
}): h.JSX.Element;
|
|
63
|
+
/** Field identity shared by grid and report authoring controls. */
|
|
64
|
+
export declare function ConfiguratorFieldTypeIcon({ field }: {
|
|
65
|
+
field?: import('./configurator-field-icon').ConfiguratorFieldMetadata;
|
|
66
|
+
}): h.JSX.Element;
|
|
67
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as CONFIGURATOR_AREA_ICONS, n as ConfiguratorActionButton, r as ConfiguratorActionGroup, i as ConfiguratorActionIcon, a as ConfiguratorActionPanel, o as ConfiguratorActionTrigger, s as ConfiguratorFieldCaption, c as ConfiguratorFieldPicker, l as ConfiguratorFieldSearch, u as ConfiguratorFieldTypeIcon, d as ConfiguratorFilterStatus, f as ConfiguratorHint, p as ConfiguratorRemoveButton, m as ConfiguratorZoneActions, h as renderConfiguratorActionTrigger } from "./_chunks/configurator-actions-C19O1rda.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { h } from './_vendor/preact/src/index';
|
|
2
|
+
export interface AggregationListLabels {
|
|
3
|
+
measureAggregation: string;
|
|
4
|
+
aggregationNames: Record<string, string>;
|
|
5
|
+
measureCurrentUnavailable: (operation: string) => string;
|
|
6
|
+
}
|
|
7
|
+
/** Arrow keys explore choices; Enter/Space commit through the existing configuration owner. */
|
|
8
|
+
export declare function ConfiguratorAggregationList({ value, aggregators, i18n, disabled, onChange }: {
|
|
9
|
+
value: string;
|
|
10
|
+
aggregators: string[];
|
|
11
|
+
i18n: AggregationListLabels;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onChange: (value: string, origin: HTMLButtonElement) => void;
|
|
14
|
+
}): h.JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { i as e } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { t as n } from "./_chunks/native-control-DO0d1kgx.js";
|
|
4
|
+
import "./_chunks/check-BwI7iCAm.js";
|
|
5
|
+
import { t as r } from "./_chunks/calculator-CDWOuAcp.js";
|
|
6
|
+
//#region src/configurator-aggregation-list.tsx
|
|
7
|
+
function i({ value: i, aggregators: a, i18n: o, disabled: s, onChange: c }) {
|
|
8
|
+
let l = a.includes(i) ? a : [i, ...a], [u, d] = e(), f = u && a.includes(u) ? u : a.includes(i) ? i : a[0];
|
|
9
|
+
return /* @__PURE__ */ t("section", {
|
|
10
|
+
className: "pivot-aggregation-menu",
|
|
11
|
+
children: [/* @__PURE__ */ t("div", {
|
|
12
|
+
className: "pivot-aggregation-heading",
|
|
13
|
+
children: o.measureAggregation
|
|
14
|
+
}), /* @__PURE__ */ t("div", {
|
|
15
|
+
role: "menu",
|
|
16
|
+
"aria-label": o.measureAggregation,
|
|
17
|
+
children: l.map((e) => /* @__PURE__ */ t(n, {
|
|
18
|
+
type: "button",
|
|
19
|
+
role: "menuitemradio",
|
|
20
|
+
className: "rv-btn pivot-aggregation-option",
|
|
21
|
+
"data-value": e,
|
|
22
|
+
"aria-checked": e === i,
|
|
23
|
+
disabled: s || !a.includes(e),
|
|
24
|
+
tabIndex: !s && e === f ? 0 : -1,
|
|
25
|
+
onFocus: () => d(e),
|
|
26
|
+
onKeyDown: (e) => {
|
|
27
|
+
if (![
|
|
28
|
+
"ArrowUp",
|
|
29
|
+
"ArrowDown",
|
|
30
|
+
"ArrowLeft",
|
|
31
|
+
"ArrowRight",
|
|
32
|
+
"Home",
|
|
33
|
+
"End"
|
|
34
|
+
].includes(e.key)) return;
|
|
35
|
+
e.preventDefault(), e.stopPropagation();
|
|
36
|
+
let t = [...e.currentTarget.parentElement.querySelectorAll("button:not(:disabled)")], n = t.indexOf(e.currentTarget);
|
|
37
|
+
t[e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + (e.key === "ArrowUp" || e.key === "ArrowLeft" ? -1 : 1) + t.length) % t.length]?.focus();
|
|
38
|
+
},
|
|
39
|
+
onClick: (t) => c(e, t.currentTarget),
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ t("span", {
|
|
42
|
+
className: "pivot-field-action-symbol",
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
dangerouslySetInnerHTML: { __html: r }
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ t("span", {
|
|
47
|
+
className: "pivot-aggregation-name",
|
|
48
|
+
children: a.includes(e) ? o.aggregationNames[e] ?? e : o.measureCurrentUnavailable(e)
|
|
49
|
+
}),
|
|
50
|
+
e === i && /* @__PURE__ */ t("span", {
|
|
51
|
+
className: "pivot-aggregation-check",
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
dangerouslySetInnerHTML: { __html: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>" }
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}, e))
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { i as ConfiguratorAggregationList };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { h, JSX, ComponentChildren } from './_vendor/preact/src/index';
|
|
2
|
+
export interface ConfiguratorDropZoneProps<Prop extends string | number, Field extends {
|
|
3
|
+
prop: Prop;
|
|
4
|
+
name?: string;
|
|
5
|
+
}, Area extends string> {
|
|
6
|
+
label?: string;
|
|
7
|
+
footer?: ComponentChildren;
|
|
8
|
+
removeLabel?: (index: number, prop: Prop) => string;
|
|
9
|
+
title: string | JSX.Element;
|
|
10
|
+
headerActions?: JSX.Element | null;
|
|
11
|
+
renderActions?: (index: number, prop: Prop) => JSX.Element | null;
|
|
12
|
+
allowFieldRemoving?: boolean;
|
|
13
|
+
panel: Area;
|
|
14
|
+
items: Prop[];
|
|
15
|
+
/** Optional stable identities for repeated measure instances; other zones retain legacy keys. */
|
|
16
|
+
itemKeys?: readonly (string | number)[];
|
|
17
|
+
dimensions: ReadonlyMap<Prop, Field>;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
i18n: {
|
|
20
|
+
dragHere: string;
|
|
21
|
+
remove: string;
|
|
22
|
+
};
|
|
23
|
+
onRemove: (index: number) => void;
|
|
24
|
+
onDrop: (target: Area, index?: number, event?: DragEvent) => void;
|
|
25
|
+
canDrop?: (event: DragEvent) => boolean;
|
|
26
|
+
onDragOver: (e: Event) => void;
|
|
27
|
+
onDragEnter: (e: Event) => void;
|
|
28
|
+
onItemDragStart: (index: number, prop: Prop, event?: DragEvent) => void;
|
|
29
|
+
onItemDragEnd: () => void;
|
|
30
|
+
renderItem?: (index: number, item?: Field) => ComponentChildren;
|
|
31
|
+
allowFieldDragging?: boolean;
|
|
32
|
+
dragActive?: boolean;
|
|
33
|
+
renderIcon?: (field?: Field) => ComponentChildren;
|
|
34
|
+
}
|
|
35
|
+
export declare function ConfiguratorDropZone<Prop extends string | number, Field extends {
|
|
36
|
+
prop: Prop;
|
|
37
|
+
name?: string;
|
|
38
|
+
}, Area extends string>({ title, label, footer, removeLabel, headerActions, renderActions, allowFieldRemoving, panel, items, itemKeys, dimensions, placeholder, i18n, renderItem, onRemove, onDrop, onDragOver, canDrop, onDragEnter, onItemDragStart, onItemDragEnd, allowFieldDragging, dragActive, renderIcon, }: ConfiguratorDropZoneProps<Prop, Field, Area>): h.JSX.Element;
|