@revolist/ui 4.0.4-rc → 4.0.6-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/MIGRATION.md +36 -0
- package/OWNERSHIP.md +10 -10
- package/README.md +22 -4
- 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-QWDyYzdo.js} +19 -19
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/check-BwI7iCAm.js +4 -0
- package/_chunks/choice-chips-A6WR-WJe.js +126 -0
- package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/color-picker-BK4W1nd6.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-CMkF17YZ.js} +281 -265
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-BKd7U8OW.js} +0 -8
- package/_chunks/configurator-actions-By8WSL2m.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/{control-AHKXD5Eu.js → control-mlH7l0Uq.js} +42 -17
- package/_chunks/{controls-DsNi8V8I.js → controls-FUU-MUKC.js} +171 -186
- package/_chunks/{date-control-DrVFX13g.js → date-control-Dup_P3w5.js} +1 -1
- package/_chunks/{date-time-qIhp5vaX.js → date-time-9z6pAG5T.js} +317 -278
- package/_chunks/dialog.parts-Bi7YbXqS.js +131 -0
- package/_chunks/{duration-CL68Em0o.js → duration-D7oRjsmP.js} +5 -5
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-BCINdXpU.js +223 -0
- package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-Bk4O_T7T.js} +1 -1
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-Cw2zk58T.js +266 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/native-control-pFMuHf3G.js +644 -0
- package/_chunks/{number-input-BKwA5FnM.js → number-input-DqXV6vgP.js} +7 -7
- package/_chunks/{picker-h1P5RUgp.js → picker-gEGTu1Ki.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-C35Isk7p.js} +115 -104
- package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-DbxdUJr-.js} +1 -1
- package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-B0_13Sja.js} +1 -1
- package/_chunks/request-trail-CCSK6TJA.js +753 -0
- package/_chunks/rich-text-5rnc8lpI.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/_variables.scss +33 -32
- 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 +83 -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/assignee.scss +5 -1
- package/assignee/index.js +2 -2
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +33 -32
- package/badge.view.d.ts +8 -0
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +27 -27
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.style.scss +1 -1
- 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/checkbox/checkbox.scss +1 -22
- 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/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +9 -7
- 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.d.ts +8 -2
- package/control-presentation.js +25 -20
- package/controls.d.ts +1 -2
- package/controls.js +4 -3
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- 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/attach.d.ts +1 -1
- package/date-time/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +64 -7
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +9 -9
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +12 -54
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.js +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/editor-dropdown.style.scss +5 -0
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- 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 +27 -0
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/filter/filters/slider/_slider.scss +8 -25
- 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.d.ts +0 -1
- package/filter-controls.js +5 -6
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +7 -7
- package/form-controls/presentation.js +12 -12
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +22 -21
- package/formatting/styles.scss +2 -47
- package/framework.js +226 -222
- package/history-controls.js +27 -1
- package/icon-toolbar.d.ts +62 -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-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native.js +46 -43
- package/number-input/index.js +1 -1
- package/package.json +36 -1
- package/pagination.js +11 -11
- package/pdf-viewer/index.js +1 -1
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +8 -6
- package/preact.js +71 -64
- package/rating-choice.js +1 -1
- package/react-control.d.ts +2 -0
- package/react-control.js +2 -2
- package/react.d.ts +5 -6
- package/react.js +68 -66
- 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/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- 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/_alert.scss +18 -4
- package/styles/_compositions.scss +3 -3
- package/styles/_editor-slider.scss +0 -2
- package/styles/_field-configurator.scss +147 -0
- package/styles/_fields-grid.scss +37 -0
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +28 -19
- package/styles/configurator-actions.scss +141 -0
- package/styles/{legacy-pagination.css → pagination.css} +19 -2
- package/styles.css +1 -1
- package/styles.scss +2 -2
- package/surfaces.d.ts +36 -2
- package/surfaces.js +35 -132
- package/svelte.js +3 -3
- package/switch/index.js +15 -14
- package/time-grid.d.ts +0 -1
- package/time-grid.js +38 -37
- package/timeline-track/index.js +2 -2
- package/ui.css +1 -1
- package/vue.d.ts +26 -30
- package/vue.js +117 -121
- 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/dialog.parts-CKGkC5zP.js +0 -134
- 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/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -10
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/surfaces.view.d.ts +0 -63
- /package/styles/{legacy-rating.css → rating.css} +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { n as t } from "./
|
|
3
|
-
import {
|
|
2
|
+
import { n as t } from "./tooltip-D4xkio5G.js";
|
|
3
|
+
import { t as n } from "./check-BwI7iCAm.js";
|
|
4
|
+
import { DEFAULT_COLOR_PALETTE_OPTIONS as r } from "../color-palette/palette.js";
|
|
4
5
|
//#region src/color-palette/color-model.ts
|
|
5
|
-
function
|
|
6
|
+
function i(e) {
|
|
6
7
|
if (!e) return;
|
|
7
8
|
let t = e.trim().toLowerCase(), n = /^#([\da-f])([\da-f])([\da-f])$/i.exec(t);
|
|
8
9
|
return n ? `#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}` : /^#[\da-f]{6}$/i.test(t) ? t : void 0;
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function a(e) {
|
|
11
12
|
if (![
|
|
12
13
|
"ArrowRight",
|
|
13
14
|
"ArrowDown",
|
|
@@ -22,38 +23,35 @@ function i(e) {
|
|
|
22
23
|
e.preventDefault(), r[a]?.focus();
|
|
23
24
|
}
|
|
24
25
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/check.svg?raw
|
|
26
|
-
var a = "<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>";
|
|
27
|
-
//#endregion
|
|
28
26
|
//#region src/color-palette/color-palette.tsx
|
|
29
|
-
function o({ value: t, options:
|
|
30
|
-
let m =
|
|
27
|
+
function o({ value: t, options: i = r, ariaLabel: o, defaultLabel: c, colorAriaLabel: l, disabled: u = !1, includeDefault: d = !0, defaultDisabled: f = !1, onChange: p }) {
|
|
28
|
+
let m = i.findIndex((e) => e.value === t && !e.disabled), h = i.findIndex((e) => !e.disabled), g = d && !f, _ = a;
|
|
31
29
|
return /* @__PURE__ */ e("div", {
|
|
32
30
|
class: "rv-color-palette",
|
|
33
31
|
role: "radiogroup",
|
|
34
32
|
"aria-label": o,
|
|
35
33
|
children: [/* @__PURE__ */ e("div", {
|
|
36
34
|
class: "rv-color-palette__swatches",
|
|
37
|
-
children:
|
|
38
|
-
let
|
|
35
|
+
children: i.map((r, i) => {
|
|
36
|
+
let a = r.value === t, o = l(r);
|
|
39
37
|
return /* @__PURE__ */ e(s, {
|
|
40
38
|
type: "button",
|
|
41
39
|
role: "radio",
|
|
42
40
|
class: "rv-color-palette__swatch",
|
|
43
|
-
"data-rv-color-palette-value":
|
|
41
|
+
"data-rv-color-palette-value": r.value,
|
|
44
42
|
label: o,
|
|
45
|
-
"aria-checked":
|
|
46
|
-
disabled: u ||
|
|
47
|
-
tabIndex: !u && (
|
|
48
|
-
style: { "--rv-color-palette-color":
|
|
43
|
+
"aria-checked": a ? "true" : "false",
|
|
44
|
+
disabled: u || r.disabled,
|
|
45
|
+
tabIndex: !u && (i === m || m < 0 && (!g || t !== null) && i === h) ? 0 : -1,
|
|
46
|
+
style: { "--rv-color-palette-color": r.value },
|
|
49
47
|
onKeyDown: _,
|
|
50
|
-
onClick: () => p(
|
|
51
|
-
children:
|
|
48
|
+
onClick: () => p(r.value),
|
|
49
|
+
children: a ? /* @__PURE__ */ e("span", {
|
|
52
50
|
class: "rv-color-palette__check",
|
|
53
51
|
"aria-hidden": "true",
|
|
54
|
-
dangerouslySetInnerHTML: { __html:
|
|
52
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
55
53
|
}) : null
|
|
56
|
-
},
|
|
54
|
+
}, r.value);
|
|
57
55
|
})
|
|
58
56
|
}), d ? /* @__PURE__ */ e(s, {
|
|
59
57
|
type: "button",
|
|
@@ -69,7 +67,7 @@ function o({ value: t, options: r = n, ariaLabel: o, defaultLabel: c, colorAriaL
|
|
|
69
67
|
children: [t === null ? /* @__PURE__ */ e("span", {
|
|
70
68
|
class: "rv-color-palette__default-check",
|
|
71
69
|
"aria-hidden": "true",
|
|
72
|
-
dangerouslySetInnerHTML: { __html:
|
|
70
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
73
71
|
}) : null, /* @__PURE__ */ e("span", {
|
|
74
72
|
class: "rv-color-palette__default-label",
|
|
75
73
|
children: c
|
|
@@ -91,4 +89,4 @@ function s({ label: n, children: r, onKeyDown: i, disabled: a, ...o }) {
|
|
|
91
89
|
});
|
|
92
90
|
}
|
|
93
91
|
//#endregion
|
|
94
|
-
export {
|
|
92
|
+
export { i as n, o as t };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
+
import { n as a, t as o } from "./native-control-pFMuHf3G.js";
|
|
5
|
+
import { t as s } from "./chevron-down-GbplLa6s.js";
|
|
6
|
+
import { n as c } from "./tooltip-D4xkio5G.js";
|
|
7
|
+
import { n as l, t as u } from "./color-palette-DMJUChWC.js";
|
|
8
|
+
import { COLOR_PICKER_DEFAULT_COLOR as d } from "../color-palette/color-picker.constants.js";
|
|
9
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/ban.svg?raw
|
|
10
|
+
var f = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 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=\"M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z\"/></svg>", p = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 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=\"M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"/></svg>";
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/color-palette/color-picker.tsx
|
|
13
|
+
function m({ icon: e, className: t = "rv-format-icon rv-format-color-picker__icon" }) {
|
|
14
|
+
return /* @__PURE__ */ r("span", {
|
|
15
|
+
class: t,
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
dangerouslySetInnerHTML: { __html: e }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function h({ label: h, value: g, defaultLabel: _, customLabel: v, customHexLabel: y, invalidColor: b, colorLabels: x, optional: S = !0, allowHexInput: C = !0, disabled: w = !1, onChange: T }) {
|
|
21
|
+
let [E] = t(i), D = c(h, !0, {
|
|
22
|
+
className: "rv-control-tooltip",
|
|
23
|
+
placement: "above"
|
|
24
|
+
}), O = `rv-format-color-popover-${E}`, k = `rv-format-color-custom-${E}`, A = `rv-format-color-error-${E}`, j = `--rv-format-color-anchor-${E}`, M = n(null), [N, P] = t(!1), [F, I] = t(!1), [L, R] = t(g ?? d), [z, B] = t(!1);
|
|
25
|
+
e(() => {
|
|
26
|
+
R(g ?? d), B(!1);
|
|
27
|
+
}, [g]);
|
|
28
|
+
let V = (e) => {
|
|
29
|
+
let t = l(e);
|
|
30
|
+
t ? (B(!1), R(t), w || T(t)) : B(!0);
|
|
31
|
+
}, H = () => M.current?.hidePopover?.();
|
|
32
|
+
return e(() => {
|
|
33
|
+
w && (H(), P(!1));
|
|
34
|
+
}, [w]), /* @__PURE__ */ r("div", {
|
|
35
|
+
class: "rv-format-color-picker",
|
|
36
|
+
onKeyDownCapture: (e) => {
|
|
37
|
+
e.key === "Escape" && M.current?.matches(":popover-open") && (e.preventDefault(), e.stopPropagation(), H());
|
|
38
|
+
},
|
|
39
|
+
children: [/* @__PURE__ */ r(o, {
|
|
40
|
+
unstyled: !0,
|
|
41
|
+
type: "button",
|
|
42
|
+
class: "rv-format-color-picker__trigger",
|
|
43
|
+
"aria-label": `${h}: ${g?.toUpperCase() ?? _}`,
|
|
44
|
+
"aria-haspopup": "dialog",
|
|
45
|
+
"aria-expanded": N,
|
|
46
|
+
"aria-controls": O,
|
|
47
|
+
...D.triggerProps,
|
|
48
|
+
disabled: w,
|
|
49
|
+
popovertarget: O,
|
|
50
|
+
style: `anchor-name: ${j}`,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ r("span", {
|
|
53
|
+
class: `rv-format-color-picker__trigger-swatch${g ? "" : " rv-format-color-picker__trigger-swatch--empty"}`,
|
|
54
|
+
style: g ? { backgroundColor: g } : void 0,
|
|
55
|
+
children: g ? null : /* @__PURE__ */ r(m, {
|
|
56
|
+
icon: f,
|
|
57
|
+
className: "rv-format-color-picker__empty-icon"
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ r("span", {
|
|
61
|
+
class: "rv-format-color-picker__trigger-value",
|
|
62
|
+
children: g?.toUpperCase() ?? _
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ r(m, { icon: s }),
|
|
65
|
+
D.tooltip
|
|
66
|
+
]
|
|
67
|
+
}), /* @__PURE__ */ r("div", {
|
|
68
|
+
id: O,
|
|
69
|
+
ref: M,
|
|
70
|
+
class: "rv-format-color-picker__popover",
|
|
71
|
+
role: "dialog",
|
|
72
|
+
"aria-label": h,
|
|
73
|
+
popover: "auto",
|
|
74
|
+
style: `position-anchor: ${j}`,
|
|
75
|
+
onToggle: (e) => P(e.currentTarget.matches(":popover-open")),
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ r(u, {
|
|
78
|
+
value: l(g) ?? g ?? null,
|
|
79
|
+
ariaLabel: h,
|
|
80
|
+
defaultLabel: _,
|
|
81
|
+
colorAriaLabel: (e) => x[e.value] ?? e.label,
|
|
82
|
+
includeDefault: S,
|
|
83
|
+
disabled: w,
|
|
84
|
+
onChange: (e) => {
|
|
85
|
+
w || (T(e ?? void 0), H());
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ r("div", {
|
|
89
|
+
id: k,
|
|
90
|
+
class: "rv-format-color-picker__custom-controls",
|
|
91
|
+
"data-selection-only": !C || void 0,
|
|
92
|
+
hidden: !F,
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ r(a, {
|
|
95
|
+
type: "color",
|
|
96
|
+
disabled: w,
|
|
97
|
+
class: "rv-format-color-picker__native",
|
|
98
|
+
"aria-label": v,
|
|
99
|
+
title: v,
|
|
100
|
+
value: l(L) ?? d,
|
|
101
|
+
onInput: (e) => V(e.currentTarget.value)
|
|
102
|
+
}),
|
|
103
|
+
C ? /* @__PURE__ */ r(a, {
|
|
104
|
+
type: "text",
|
|
105
|
+
disabled: w,
|
|
106
|
+
class: "rv-control rv-format-color-picker__hex",
|
|
107
|
+
inputMode: "text",
|
|
108
|
+
maxLength: 7,
|
|
109
|
+
"aria-label": y,
|
|
110
|
+
"aria-invalid": z,
|
|
111
|
+
"aria-describedby": z ? A : void 0,
|
|
112
|
+
title: y,
|
|
113
|
+
value: L.toUpperCase(),
|
|
114
|
+
onInput: (e) => {
|
|
115
|
+
R(e.currentTarget.value), z && B(!1);
|
|
116
|
+
},
|
|
117
|
+
onChange: (e) => V(e.currentTarget.value)
|
|
118
|
+
}) : null,
|
|
119
|
+
C && z ? /* @__PURE__ */ r("span", {
|
|
120
|
+
id: A,
|
|
121
|
+
class: "rv-format-color-picker__error",
|
|
122
|
+
role: "alert",
|
|
123
|
+
children: b
|
|
124
|
+
}) : null
|
|
125
|
+
]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ r(o, {
|
|
128
|
+
unstyled: !0,
|
|
129
|
+
type: "button",
|
|
130
|
+
class: "rv-format-color-picker__custom-action",
|
|
131
|
+
disabled: w,
|
|
132
|
+
"aria-expanded": F,
|
|
133
|
+
"aria-controls": k,
|
|
134
|
+
title: v,
|
|
135
|
+
onClick: () => I((e) => !e),
|
|
136
|
+
children: [/* @__PURE__ */ r(m, { icon: p }), v]
|
|
137
|
+
})
|
|
138
|
+
]
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
export { h as t };
|