@revolist/ui 4.0.6-rc → 4.0.6
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 +7 -7
- package/OWNERSHIP.md +33 -33
- package/README.md +65 -410
- package/_button.scss +6 -2
- package/_chunks/{calendar-QWDyYzdo.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-GprenwEg.js} +4 -4
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-BK4W1nd6.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-CMkF17YZ.js → component-C3k_8uIq.js} +44 -45
- package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
- package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-mlH7l0Uq.js → control-BRfF5DWQ.js} +3 -3
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-FUU-MUKC.js → controls-B3EgM_DS.js} +137 -102
- package/_chunks/{date-control-Dup_P3w5.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-9z6pAG5T.js → date-time-CfiFYodx.js} +20 -20
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-NqEEVc9P.js} +4 -4
- package/_chunks/{duration-D7oRjsmP.js → duration-BGZ_qJ99.js} +6 -6
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-NNP9Fh9U.js} +4 -4
- package/_chunks/field-configurator-DPulsY3l.js +288 -0
- package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
- package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-BAAdEvr9.js} +2 -2
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-C8CnIW9k.js +267 -0
- package/_chunks/{native-Blr3byjO.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-pFMuHf3G.js → native-control-um1L1wgZ.js} +143 -138
- package/_chunks/{number-input-DqXV6vgP.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-gEGTu1Ki.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-C35Isk7p.js → popup-DECYM9FI.js} +2 -2
- package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-CCSK6TJA.js → request-trail-B1zVRPEf.js} +151 -142
- package/_chunks/{rich-text-5rnc8lpI.js → rich-text-Ci4d6dHn.js} +11 -11
- package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-ncldbUwS.js} +2 -2
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-h-Z8yFBY.js} +2 -2
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-CBtRMBPr.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-BN5WdGHn.js} +2 -2
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-CKJ7VJOF.js} +3 -3
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_variables.scss +2 -1
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +1 -1
- package/ai/_chat.scss +7 -0
- package/ai/_style.scss +27 -20
- package/ai/components.d.ts +3 -1
- package/ai/index.js +2 -2
- package/ai/mount.d.ts +15 -7
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/index.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +24 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +2 -2
- package/badge.d.ts +1 -1
- package/badge.js +1 -1
- package/badge.view.d.ts +1 -1
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.js +2 -2
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.js +2 -2
- package/buttons/svg-button.js +3 -3
- package/calendar/_calendar.scss +19 -23
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +2 -2
- package/calendar/header.js +2 -3
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +2 -2
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +2 -2
- package/cell-input.js +1 -1
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/index.js +1 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +5 -2
- package/checkbox/index.js +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/configurator-actions.d.ts +6 -6
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.d.ts +1 -1
- package/configurator-aggregation-list.js +19 -17
- package/configurator-drop-zone.d.ts +2 -1
- package/configurator-drop-zone.js +34 -32
- package/configurator-focus.js +1 -1
- package/configurator-sections.d.ts +3 -3
- package/configurator-sections.js +1 -1
- package/control-attributes.js +1 -1
- package/control-presentation.js +2 -2
- package/controls.d.ts +11 -0
- package/controls.js +4 -4
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/tooltip.d.ts +1 -1
- package/core/top-layer-popup.d.ts +1 -1
- package/core/top-layer-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +1 -0
- package/date-time/index.js +1 -1
- package/date-time/style.scss +192 -46
- package/date-time/time-selection.d.ts +1 -1
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +106 -28
- package/distribution-chart/area-chart.js +2 -2
- package/distribution-chart/bar-chart.js +2 -2
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.js +1 -1
- package/distribution-chart/line-chart.js +2 -2
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +14 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +3 -3
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +2 -2
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +40 -35
- package/editor-layout/style.scss +82 -18
- package/favicon.svg +9 -0
- package/field-configurator.d.ts +14 -3
- package/field-configurator.js +1 -1
- package/field-reorder.hook.js +1 -1
- package/field-reorder.js +1 -1
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +35 -10
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +1 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +1 -1
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +2 -2
- package/filter-badge.js +2 -2
- package/filter-controls.js +2 -2
- package/form-controls/index.js +3 -3
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +2 -2
- package/formatting/index.js +7 -7
- package/formatting/styles.scss +13 -11
- package/framework.js +76 -77
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +1 -1
- package/icon-toolbar.js +1 -1
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +1 -1
- package/masked-input/index.js +4 -4
- package/native-control.js +1 -1
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +16 -16
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +2 -2
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +3 -3
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +203 -42
- package/preact-mount.js +1 -1
- package/preact.d.ts +5 -4
- package/preact.js +105 -67
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.js +1 -1
- package/react.d.ts +2 -2
- package/react.js +30 -31
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.js +1 -1
- package/resource-picker/resource-picker-option.js +1 -1
- package/resource-picker/resource-picker-popup.js +2 -2
- package/resource-picker/resource-picker.js +74 -72
- package/resource-picker/resource-picker.scss +62 -34
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/style.scss +203 -49
- package/rich-text/toolbar.d.ts +1 -1
- package/robots.txt +4 -0
- package/search-input/index.js +2 -2
- package/segmented-switch/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +2 -2
- package/status-feedback/header.js +2 -2
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +2 -2
- package/status-feedback/render.js +1 -1
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +61 -14
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +399 -79
- package/styles/_control.scss +30 -8
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -2
- package/styles/_field-configurator.scss +192 -41
- package/styles/_fields-grid.scss +16 -4
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_primitives.scss +346 -96
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/color-roles.js +1 -1
- package/styles/configurator-actions.scss +126 -26
- package/styles/pagination.css +114 -30
- package/styles/rating.css +8 -3
- package/styles.css +1 -1
- package/styles.scss +1 -3
- package/surfaces.d.ts +4 -2
- package/surfaces.js +8 -8
- package/svelte/UiComponent.svelte +44 -11
- package/svelte-control.js +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +2 -2
- package/time-grid.js +3 -3
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +3 -3
- package/timeline-track/model.js +1 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.d.ts +3 -2
- package/vue.js +43 -44
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/field-configurator-BCINdXpU.js +0 -223
- package/_chunks/mount-Cw2zk58T.js +0 -266
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
|
@@ -2,23 +2,24 @@ import { c as e, i as t, u as n } from "./preact.module-BBM36DnO.js";
|
|
|
2
2
|
import { c as r, i, n as a, o, r as s, s as c, t as l } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
4
|
import { renderPreactInto as d } from "../preact-mount.js";
|
|
5
|
-
import { i as f } from "./top-layer-popup-
|
|
6
|
-
import { t as p } from "./title-tooltip-
|
|
7
|
-
import { t as m } from "./field-context-
|
|
8
|
-
import { r as h, t as g } from "./popup-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import { i as f } from "./top-layer-popup-CKJ7VJOF.js";
|
|
6
|
+
import { t as p } from "./title-tooltip-ncldbUwS.js";
|
|
7
|
+
import { t as m } from "./field-context-C4_WrO2z.js";
|
|
8
|
+
import { r as h, t as g } from "./popup-DECYM9FI.js";
|
|
9
|
+
import { t as _ } from "./selection-list-tooltips-m00U3L6z.js";
|
|
10
|
+
import { useDropdownService as v } from "../dropdown/dropdown.service.js";
|
|
11
|
+
import { RemoveButton as y } from "../buttons/remove-button.js";
|
|
12
|
+
import { t as b } from "./chevron-down-GbplLa6s.js";
|
|
13
|
+
import { registerControl as x, renderControl as S } from "../control-presentation.js";
|
|
14
|
+
//#region package/dropdown/remote.ts
|
|
15
|
+
var C = {
|
|
15
16
|
loading: "Loading…",
|
|
16
17
|
empty: "No results found",
|
|
17
18
|
error: "Unable to load options.",
|
|
18
19
|
retry: "Retry",
|
|
19
20
|
loadMore: "Load more",
|
|
20
21
|
unavailable: (e) => `Unavailable (${String(e)})`
|
|
21
|
-
},
|
|
22
|
+
}, w = class {
|
|
22
23
|
source;
|
|
23
24
|
context;
|
|
24
25
|
changed;
|
|
@@ -41,7 +42,7 @@ var S = {
|
|
|
41
42
|
failedCursor;
|
|
42
43
|
resolveFailed = !1;
|
|
43
44
|
opened = !1;
|
|
44
|
-
constructor(e, t, n, r =
|
|
45
|
+
constructor(e, t, n, r = C, i = {}) {
|
|
45
46
|
this.source = e, this.context = t, this.changed = n, this.text = r, this.settings = i;
|
|
46
47
|
}
|
|
47
48
|
remember(e) {
|
|
@@ -118,10 +119,10 @@ var S = {
|
|
|
118
119
|
}
|
|
119
120
|
};
|
|
120
121
|
//#endregion
|
|
121
|
-
//#region
|
|
122
|
-
function
|
|
122
|
+
//#region package/dropdown/remote-hook.ts
|
|
123
|
+
function T(e) {
|
|
123
124
|
let t = a(() => ({
|
|
124
|
-
...
|
|
125
|
+
...C,
|
|
125
126
|
...e.remoteText
|
|
126
127
|
}), [e.remoteText]), [n, o] = i({
|
|
127
128
|
items: [],
|
|
@@ -141,7 +142,7 @@ function w(e) {
|
|
|
141
142
|
});
|
|
142
143
|
return;
|
|
143
144
|
}
|
|
144
|
-
let n = new
|
|
145
|
+
let n = new w(e.dataSource, e.dataContext, o, t);
|
|
145
146
|
return c.current = n, () => {
|
|
146
147
|
n.destroy(), c.current === n && (c.current = void 0);
|
|
147
148
|
};
|
|
@@ -177,39 +178,43 @@ function w(e) {
|
|
|
177
178
|
};
|
|
178
179
|
}
|
|
179
180
|
//#endregion
|
|
180
|
-
//#region
|
|
181
|
-
function
|
|
182
|
-
let
|
|
181
|
+
//#region package/dropdown/content.tsx
|
|
182
|
+
function E({ options: e, selectedValues: t, remote: n, value: i, onChange: a, config: c, multiSelect: d, search: f, searchPlaceholder: p, listboxId: m, searchId: h, renderOption: g, renderNoResults: y, onClose: b, onTabNavigation: x, theme: S }) {
|
|
183
|
+
let C = l(null), w = l(null), T = l(null), E = l(!1), { searchValue: ee, focusedIndex: O, selectedOptions: k, filteredOptions: A, handleSelect: j, handleKeyDown: M, handleSearchChange: N, setFocusedIndex: P } = v(e, i, a, c, b, n && {
|
|
183
184
|
selected: t ?? [],
|
|
184
185
|
search: n.search
|
|
185
|
-
}),
|
|
186
|
-
|
|
187
|
-
let e =
|
|
188
|
-
if (!
|
|
189
|
-
|
|
190
|
-
let t = e.ownerDocument.getElementById(
|
|
186
|
+
}), F = O >= 0 && O < A.length && !A[O].disabled ? `${m}-option-${O}` : void 0;
|
|
187
|
+
s(() => {
|
|
188
|
+
let e = T.current;
|
|
189
|
+
if (!E.current || !e || !F) return;
|
|
190
|
+
E.current = !1;
|
|
191
|
+
let t = e.ownerDocument.getElementById(F);
|
|
191
192
|
if (!t) return;
|
|
192
193
|
let n = e.getBoundingClientRect(), { top: r, bottom: i } = t.getBoundingClientRect();
|
|
193
194
|
r < n.top ? e.scrollTop += r - n.top : i > n.bottom && (e.scrollTop += i - n.bottom);
|
|
194
|
-
})
|
|
195
|
-
|
|
195
|
+
});
|
|
196
|
+
let I = _(), L = o((e) => {
|
|
197
|
+
w.current = e, I(e);
|
|
198
|
+
}, [I]);
|
|
199
|
+
return r(() => {
|
|
200
|
+
if (!c.autoFocus) return;
|
|
196
201
|
let e = () => {
|
|
197
|
-
|
|
198
|
-
}, t =
|
|
202
|
+
f && C.current ? C.current.focus({ preventScroll: !0 }) : w.current?.focus({ preventScroll: !0 });
|
|
203
|
+
}, t = w.current?.ownerDocument.defaultView ?? (typeof window < "u" ? window : void 0);
|
|
199
204
|
if (!t) return;
|
|
200
205
|
e();
|
|
201
206
|
let n = t.setTimeout(e, 0), r = t.requestAnimationFrame(e), i = t.setTimeout(e, 16);
|
|
202
207
|
return () => {
|
|
203
208
|
t.clearTimeout(n), t.cancelAnimationFrame(r), t.clearTimeout(i);
|
|
204
209
|
};
|
|
205
|
-
}, [
|
|
206
|
-
ref:
|
|
210
|
+
}, [c.autoFocus, f]), /* @__PURE__ */ u("div", {
|
|
211
|
+
ref: L,
|
|
207
212
|
className: "dropdown-listbox",
|
|
208
|
-
"data-theme":
|
|
213
|
+
"data-theme": S ?? "default",
|
|
209
214
|
role: "listbox",
|
|
210
|
-
id:
|
|
211
|
-
"aria-multiselectable":
|
|
212
|
-
"aria-activedescendant":
|
|
215
|
+
id: m,
|
|
216
|
+
"aria-multiselectable": d,
|
|
217
|
+
"aria-activedescendant": F,
|
|
213
218
|
tabIndex: -1,
|
|
214
219
|
"aria-busy": n?.loading,
|
|
215
220
|
onScrollCapture: (e) => {
|
|
@@ -218,28 +223,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
218
223
|
},
|
|
219
224
|
onKeyUp: (e) => e.stopPropagation(),
|
|
220
225
|
onKeyDown: (e) => {
|
|
221
|
-
if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(),
|
|
226
|
+
if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(), b(!1);
|
|
222
227
|
else if (e.key === "Tab") {
|
|
223
|
-
if (
|
|
224
|
-
|
|
228
|
+
if (c.nativeTabNavigation && x) {
|
|
229
|
+
x();
|
|
225
230
|
return;
|
|
226
231
|
}
|
|
227
|
-
e.preventDefault(), e.stopPropagation(),
|
|
228
|
-
} else (e.key !== " " || e.target !==
|
|
232
|
+
e.preventDefault(), e.stopPropagation(), c.closeOnTab && b(!0);
|
|
233
|
+
} else (e.key !== " " || e.target !== C.current) && (E.current = e.key === "ArrowDown" || e.key === "ArrowUp", M(e));
|
|
229
234
|
},
|
|
230
235
|
children: [
|
|
231
|
-
|
|
236
|
+
f && /* @__PURE__ */ u("div", {
|
|
232
237
|
className: "dropdown-search",
|
|
233
238
|
children: /* @__PURE__ */ u("input", {
|
|
234
|
-
ref:
|
|
239
|
+
ref: C,
|
|
235
240
|
type: "text",
|
|
236
|
-
id:
|
|
237
|
-
className: `dropdown-search-input ${
|
|
238
|
-
placeholder:
|
|
239
|
-
value:
|
|
240
|
-
onChange:
|
|
241
|
-
onInput:
|
|
242
|
-
"aria-label":
|
|
241
|
+
id: h,
|
|
242
|
+
className: `dropdown-search-input ${S ? `theme-${S}` : ""}`,
|
|
243
|
+
placeholder: p,
|
|
244
|
+
value: ee,
|
|
245
|
+
onChange: N,
|
|
246
|
+
onInput: N,
|
|
247
|
+
"aria-label": c.searchAriaLabel ?? "Search options"
|
|
243
248
|
})
|
|
244
249
|
}),
|
|
245
250
|
n?.loading && /* @__PURE__ */ u("div", {
|
|
@@ -251,28 +256,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
251
256
|
children: [
|
|
252
257
|
n.text.error,
|
|
253
258
|
" ",
|
|
254
|
-
/* @__PURE__ */ u(
|
|
259
|
+
/* @__PURE__ */ u(H, {
|
|
255
260
|
onClick: n.retry,
|
|
256
261
|
children: n.text.retry
|
|
257
262
|
})
|
|
258
263
|
]
|
|
259
264
|
}),
|
|
260
|
-
/* @__PURE__ */ u(
|
|
265
|
+
/* @__PURE__ */ u(D, {
|
|
261
266
|
options: e,
|
|
262
|
-
filteredOptions:
|
|
263
|
-
multiSelect:
|
|
264
|
-
focusedIndex:
|
|
265
|
-
selectedOptions:
|
|
266
|
-
onKeyDown:
|
|
267
|
-
onSelect:
|
|
268
|
-
onFocusChange:
|
|
269
|
-
renderOption:
|
|
270
|
-
renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty :
|
|
271
|
-
dropdownListRef:
|
|
272
|
-
theme:
|
|
273
|
-
optionIdPrefix:
|
|
267
|
+
filteredOptions: A,
|
|
268
|
+
multiSelect: d,
|
|
269
|
+
focusedIndex: O,
|
|
270
|
+
selectedOptions: k,
|
|
271
|
+
onKeyDown: M,
|
|
272
|
+
onSelect: j,
|
|
273
|
+
onFocusChange: P,
|
|
274
|
+
renderOption: g,
|
|
275
|
+
renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty : y,
|
|
276
|
+
dropdownListRef: T,
|
|
277
|
+
theme: S,
|
|
278
|
+
optionIdPrefix: m
|
|
274
279
|
}),
|
|
275
|
-
n?.hasMore && /* @__PURE__ */ u(
|
|
280
|
+
n?.hasMore && /* @__PURE__ */ u(H, {
|
|
276
281
|
disabled: n.loading,
|
|
277
282
|
onClick: n.loadMore,
|
|
278
283
|
children: n.text.loadMore
|
|
@@ -280,7 +285,7 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
280
285
|
]
|
|
281
286
|
});
|
|
282
287
|
}
|
|
283
|
-
function
|
|
288
|
+
function D({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, selectedOptions: s, onKeyDown: c, onSelect: l, onFocusChange: d, renderOption: f, renderNoResults: p, dropdownListRef: m, theme: h, optionIdPrefix: g }) {
|
|
284
289
|
let _ = o((e) => s.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), [s]), v = o((t, n) => {
|
|
285
290
|
let r = _(t), o = a === n;
|
|
286
291
|
return /* @__PURE__ */ u("li", {
|
|
@@ -328,15 +333,15 @@ function E({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, se
|
|
|
328
333
|
}) });
|
|
329
334
|
}
|
|
330
335
|
//#endregion
|
|
331
|
-
//#region
|
|
332
|
-
var
|
|
336
|
+
//#region package/dropdown/index.tsx
|
|
337
|
+
var ee = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("span", {
|
|
333
338
|
className: `selected-value ${n}`,
|
|
334
339
|
children: r ? r(e, t[0]) : t[0].label
|
|
335
|
-
}),
|
|
340
|
+
}), O = ({ options: t, removeOption: n, className: r, renderValue: i, disabled: a, removeLabel: o }) => /* @__PURE__ */ u("div", {
|
|
336
341
|
className: `selected-values ${r}`,
|
|
337
342
|
children: t.map((t, r) => /* @__PURE__ */ u("span", {
|
|
338
343
|
className: "selected-tag",
|
|
339
|
-
children: [i ? i(e, t) : t.label, !a && !t.disabled && /* @__PURE__ */ u(
|
|
344
|
+
children: [i ? i(e, t) : t.label, !a && !t.disabled && /* @__PURE__ */ u(y, {
|
|
340
345
|
compact: !0,
|
|
341
346
|
onClick: (e) => {
|
|
342
347
|
e.stopPropagation(), n(t);
|
|
@@ -347,22 +352,22 @@ var D = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("spa
|
|
|
347
352
|
}
|
|
348
353
|
})]
|
|
349
354
|
}, r))
|
|
350
|
-
}),
|
|
355
|
+
}), k = ({ className: e }) => /* @__PURE__ */ u("span", {
|
|
351
356
|
className: `dropdown-arrow ${e}`,
|
|
352
357
|
"aria-hidden": "true",
|
|
353
|
-
dangerouslySetInnerHTML: { __html:
|
|
354
|
-
}),
|
|
358
|
+
dangerouslySetInnerHTML: { __html: b }
|
|
359
|
+
}), A = ({ placeholder: e, className: t }) => [/* @__PURE__ */ u("span", {
|
|
355
360
|
className: `placeholder px-2 ${t}`,
|
|
356
361
|
children: e
|
|
357
|
-
}), /* @__PURE__ */ u(
|
|
358
|
-
function
|
|
359
|
-
let { search:
|
|
362
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })];
|
|
363
|
+
function j({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, remoteText: c, value: d, onChange: m, placeholder: h = "Select an option", disabled: _ = !1, name: v, id: y, className: b = "", style: x, config: S = {}, renderContent: C, renderOption: w, renderValue: D, renderPlaceholder: j, renderSelectedValue: M, renderNoResults: N, onClose: P, beforeOutsideClose: F, environment: I }) {
|
|
364
|
+
let { search: L = !1, searchPlaceholder: R = "Search...", closeOnClickOutside: z = !0, autoOpen: B = !1, multiSelect: V = !1, portalTarget: H, ariaLabel: te, ariaLabelledBy: ne, ariaDescribedBy: re, popupClassName: ie, maxHeight: ae } = S, { title: oe, ...se } = n ?? {}, U = p(typeof oe == "string" ? oe : void 0), W = H ?? (S.topLayer ? U.current?.closest("dialog[open], [role=dialog], revo-grid") : void 0) ?? (typeof document < "u" ? document.body : null), G = a(() => y || `dropdown-${Math.random().toString(36).substring(2, 9)}`, [y]), K = `${G}-listbox`, ce = `${G}-search`, q = `${G}-menu`, [J, Y] = i(B && !_), [le, ue] = i(!_ && (B || !!S.autoFocus)), de = l(B), fe = S.theme ?? "default";
|
|
360
365
|
r(() => {
|
|
361
|
-
|
|
362
|
-
}, [
|
|
363
|
-
_ && J && (Y(!1),
|
|
366
|
+
B && !de.current && !_ && (ue(!0), Y(!0)), de.current = B;
|
|
367
|
+
}, [B, _]), r(() => {
|
|
368
|
+
_ && J && (Y(!1), P?.(!1));
|
|
364
369
|
}, [_, J]);
|
|
365
|
-
let X =
|
|
370
|
+
let X = T({
|
|
366
371
|
dataSource: o,
|
|
367
372
|
dataContext: s,
|
|
368
373
|
remoteText: c,
|
|
@@ -373,7 +378,7 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
373
378
|
initialQuery: S.initialSearch ?? ""
|
|
374
379
|
}), Z = o ? [...new Map([...X.selected, ...X.items].map((e) => [e.value, e])).values()] : t, Q = a(() => {
|
|
375
380
|
if (d === void 0) return [];
|
|
376
|
-
if (
|
|
381
|
+
if (V && Array.isArray(d)) return Z.filter((e) => d.some((t) => JSON.stringify(t) === JSON.stringify(e.value)));
|
|
377
382
|
{
|
|
378
383
|
let e = Z.find((e) => JSON.stringify(e.value) === JSON.stringify(d));
|
|
379
384
|
return e ? [e] : [];
|
|
@@ -381,66 +386,66 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
381
386
|
}, [
|
|
382
387
|
d,
|
|
383
388
|
Z,
|
|
384
|
-
|
|
389
|
+
V
|
|
385
390
|
]), pe = () => {
|
|
386
391
|
_ || Y((e) => {
|
|
387
392
|
let t = !e;
|
|
388
393
|
return t && ue(!0), t;
|
|
389
394
|
});
|
|
390
395
|
}, $ = (e = !1) => {
|
|
391
|
-
Y((t) => (t &&
|
|
396
|
+
Y((t) => (t && P?.(e), !1));
|
|
392
397
|
};
|
|
393
398
|
r(() => {
|
|
394
399
|
if (!J) return;
|
|
395
400
|
let e = U.current;
|
|
396
|
-
if (e) return
|
|
401
|
+
if (e) return I?.onOpen?.(e, $);
|
|
397
402
|
}, [J]);
|
|
398
403
|
let me = (e) => {
|
|
399
404
|
if (!(_ || e.disabled)) {
|
|
400
|
-
if (
|
|
405
|
+
if (V) {
|
|
401
406
|
let t = Q.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), n;
|
|
402
407
|
n = t ? Q.filter((t) => JSON.stringify(t.value) !== JSON.stringify(e.value)) : [...Q, e], m && m(n.map((e) => e.value));
|
|
403
408
|
} else m && m(e.value), $();
|
|
404
409
|
}
|
|
405
410
|
};
|
|
406
411
|
r(() => {
|
|
407
|
-
if (!
|
|
412
|
+
if (!z || !J) return;
|
|
408
413
|
let e = W?.ownerDocument ?? U.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
|
|
409
414
|
if (!e) return;
|
|
410
415
|
let t = (t) => {
|
|
411
416
|
let n = e.getElementById(q), r = t.target;
|
|
412
417
|
if (n && r && !f(n, r) && U.current && !U.current.contains(r)) {
|
|
413
|
-
if (
|
|
418
|
+
if (F?.() === !1) {
|
|
414
419
|
t.preventDefault(), t.stopImmediatePropagation();
|
|
415
420
|
return;
|
|
416
421
|
}
|
|
417
422
|
$();
|
|
418
423
|
}
|
|
419
|
-
}, n = !!
|
|
424
|
+
}, n = !!F;
|
|
420
425
|
return e.addEventListener("pointerdown", t, n), () => {
|
|
421
426
|
e.removeEventListener("pointerdown", t, n);
|
|
422
427
|
};
|
|
423
428
|
}, [
|
|
424
|
-
|
|
429
|
+
z,
|
|
425
430
|
J,
|
|
426
431
|
q,
|
|
427
432
|
W,
|
|
428
|
-
|
|
433
|
+
F
|
|
429
434
|
]);
|
|
430
435
|
let he = () => {
|
|
431
|
-
let t = [
|
|
432
|
-
return
|
|
436
|
+
let t = [k({})];
|
|
437
|
+
return M ? M(e, Q, t) : Q.length > 0 ? V ? [/* @__PURE__ */ u(O, {
|
|
433
438
|
options: Q,
|
|
434
439
|
removeOption: me,
|
|
435
|
-
renderValue:
|
|
440
|
+
renderValue: D,
|
|
436
441
|
disabled: _,
|
|
437
442
|
removeLabel: S.removeLabel
|
|
438
|
-
}), /* @__PURE__ */ u(
|
|
443
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })] : [/* @__PURE__ */ u(ee, {
|
|
439
444
|
options: Q,
|
|
440
|
-
renderValue:
|
|
441
|
-
}), /* @__PURE__ */ u(
|
|
445
|
+
renderValue: D
|
|
446
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })] : j ? j(e, h, t) : /* @__PURE__ */ u(A, { placeholder: h });
|
|
442
447
|
}, ge = () => /* @__PURE__ */ u(g, {
|
|
443
|
-
onPointerRelease:
|
|
448
|
+
onPointerRelease: I?.onPointerRelease,
|
|
444
449
|
topLayer: S.topLayer,
|
|
445
450
|
triggerRef: U,
|
|
446
451
|
portalTarget: W,
|
|
@@ -451,13 +456,13 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
451
456
|
children: C ? C({
|
|
452
457
|
id: K,
|
|
453
458
|
close: $
|
|
454
|
-
}) : /* @__PURE__ */ u(
|
|
459
|
+
}) : /* @__PURE__ */ u(E, {
|
|
455
460
|
options: o ? X.items : Z,
|
|
456
461
|
selectedValues: o ? X.selected : void 0,
|
|
457
462
|
remote: o ? X : void 0,
|
|
458
463
|
value: d,
|
|
459
464
|
onChange: (e) => {
|
|
460
|
-
if (!_ && (m?.(e), !
|
|
465
|
+
if (!_ && (m?.(e), !V)) {
|
|
461
466
|
let e = U.current;
|
|
462
467
|
e?.ownerDocument.defaultView?.requestAnimationFrame(() => {
|
|
463
468
|
let t = e.ownerDocument.activeElement;
|
|
@@ -469,13 +474,13 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
469
474
|
...S,
|
|
470
475
|
autoFocus: S.autoFocus || le
|
|
471
476
|
},
|
|
472
|
-
multiSelect:
|
|
473
|
-
search: !!o ||
|
|
474
|
-
searchPlaceholder:
|
|
477
|
+
multiSelect: V,
|
|
478
|
+
search: !!o || L,
|
|
479
|
+
searchPlaceholder: R,
|
|
475
480
|
listboxId: K,
|
|
476
481
|
searchId: ce,
|
|
477
|
-
renderOption:
|
|
478
|
-
renderNoResults:
|
|
482
|
+
renderOption: w,
|
|
483
|
+
renderNoResults: N,
|
|
479
484
|
onClose: $,
|
|
480
485
|
onTabNavigation: () => {
|
|
481
486
|
$(), U.current?.focus();
|
|
@@ -498,7 +503,7 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
498
503
|
"aria-disabled": _,
|
|
499
504
|
"aria-owns": K,
|
|
500
505
|
"aria-controls": K,
|
|
501
|
-
"aria-label":
|
|
506
|
+
"aria-label": te,
|
|
502
507
|
"aria-labelledby": ne,
|
|
503
508
|
"aria-describedby": re,
|
|
504
509
|
tabIndex: _ ? -1 : 0,
|
|
@@ -512,32 +517,32 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
512
517
|
v && /* @__PURE__ */ u("input", {
|
|
513
518
|
type: "hidden",
|
|
514
519
|
name: v,
|
|
515
|
-
value: JSON.stringify(
|
|
520
|
+
value: JSON.stringify(V ? Q.map((e) => e.value) : Q[0]?.value || "")
|
|
516
521
|
})
|
|
517
522
|
]
|
|
518
523
|
});
|
|
519
524
|
}
|
|
520
|
-
var
|
|
521
|
-
d(e, /* @__PURE__ */ u(
|
|
522
|
-
},
|
|
525
|
+
var M = (e, t) => {
|
|
526
|
+
d(e, /* @__PURE__ */ u(j, { ...t }));
|
|
527
|
+
}, N = (e) => {
|
|
523
528
|
d(e, null);
|
|
524
529
|
};
|
|
525
530
|
//#endregion
|
|
526
|
-
//#region
|
|
527
|
-
function
|
|
528
|
-
return Array.isArray(e) ? e.map(
|
|
531
|
+
//#region package/select.tsx
|
|
532
|
+
function P(e) {
|
|
533
|
+
return Array.isArray(e) ? e.map(P).join("") : n(e) ? P(e.props.children) : e == null || typeof e == "boolean" ? "" : String(e);
|
|
529
534
|
}
|
|
530
|
-
function
|
|
531
|
-
if (Array.isArray(e)) return e.flatMap((e) =>
|
|
535
|
+
function F(e, r, i = "", a = !1) {
|
|
536
|
+
if (Array.isArray(e)) return e.flatMap((e) => F(e, r, i, a));
|
|
532
537
|
if (!n(e)) return [];
|
|
533
538
|
let o = e.props;
|
|
534
|
-
if (e.type === t) return
|
|
535
|
-
if (e.type === "optgroup") return
|
|
539
|
+
if (e.type === t) return F(o.children, r, i, a);
|
|
540
|
+
if (e.type === "optgroup") return F(o.children, r, o.label ?? "", a || !!o.disabled);
|
|
536
541
|
let s = r ? r(o) : o, c = {
|
|
537
542
|
...s,
|
|
538
543
|
disabled: o.disabled || s.disabled,
|
|
539
544
|
hidden: o.hidden || s.hidden
|
|
540
|
-
}, l = String(c.label ??
|
|
545
|
+
}, l = String(c.label ?? P(c.children)).trim();
|
|
541
546
|
return [{
|
|
542
547
|
value: String(c.value ?? l),
|
|
543
548
|
label: i ? `${i}: ${l}` : l,
|
|
@@ -546,12 +551,12 @@ function N(e, r, i = "", a = !1) {
|
|
|
546
551
|
selected: !!c.selected
|
|
547
552
|
}];
|
|
548
553
|
}
|
|
549
|
-
function
|
|
550
|
-
let { children: n, environment: r, value: a, defaultValue: o, onValueChange: s, optionPolicy: l, multiple: d, disabled: f, name: p, class: h, className: g, style: _, ...v } = e, y = c(m), b = y.disabled || !!f, x =
|
|
554
|
+
function I(e) {
|
|
555
|
+
let { children: n, environment: r, value: a, defaultValue: o, onValueChange: s, optionPolicy: l, multiple: d, disabled: f, name: p, class: h, className: g, style: _, ...v } = e, y = c(m), b = y.disabled || !!f, x = F(n, l), [S, C] = i(() => {
|
|
551
556
|
let e = o ?? (d ? x.filter((e) => e.selected).map((e) => e.value) : x.find((e) => e.selected)?.value ?? x[0]?.value ?? "");
|
|
552
557
|
return Array.isArray(e) ? [...e] : String(e);
|
|
553
558
|
}), w = a === void 0 ? S : Array.isArray(a) ? [...a] : String(a), T = Array.isArray(w) ? w : [w], E = x.filter((e) => !e.hidden || T.includes(e.value)), D = `rv-select rv-select-control ${typeof h == "string" ? h : ""} ${g ?? ""}`.replace(/\brv-control\b/g, "").trim();
|
|
554
|
-
return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(
|
|
559
|
+
return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(j, {
|
|
555
560
|
environment: r,
|
|
556
561
|
renderOption: (e, t) => /* @__PURE__ */ u("span", {
|
|
557
562
|
"data-select-option": t.value,
|
|
@@ -586,8 +591,8 @@ function P(e) {
|
|
|
586
591
|
}))] });
|
|
587
592
|
}
|
|
588
593
|
//#endregion
|
|
589
|
-
//#region
|
|
590
|
-
function
|
|
594
|
+
//#region package/fieldset.tsx
|
|
595
|
+
function L(e) {
|
|
591
596
|
let t = c(m), n = t.disabled || !!e.disabled;
|
|
592
597
|
return /* @__PURE__ */ u(m.Provider, {
|
|
593
598
|
value: {
|
|
@@ -601,44 +606,44 @@ function F(e) {
|
|
|
601
606
|
});
|
|
602
607
|
}
|
|
603
608
|
//#endregion
|
|
604
|
-
//#region
|
|
605
|
-
function
|
|
606
|
-
let { onChange: i, ...a } = n, o =
|
|
609
|
+
//#region package/native-control.tsx
|
|
610
|
+
function R(t, n, ...r) {
|
|
611
|
+
let { onChange: i, ...a } = n, o = S(e, t, a, ...r);
|
|
607
612
|
return i && !(t === "button" && n.busy) && Object.assign(o.props, { onChange: i }), o;
|
|
608
613
|
}
|
|
609
|
-
function
|
|
614
|
+
function z(e, t) {
|
|
610
615
|
let n = p(typeof e == "string" ? e : void 0);
|
|
611
616
|
return o((e) => {
|
|
612
617
|
n.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
613
618
|
}, [t]);
|
|
614
619
|
}
|
|
615
|
-
var
|
|
616
|
-
let r =
|
|
617
|
-
return
|
|
620
|
+
var B = x(h(({ title: e, ...t }, n) => {
|
|
621
|
+
let r = z(e, n);
|
|
622
|
+
return R("input", {
|
|
618
623
|
...t,
|
|
619
624
|
ref: r
|
|
620
625
|
});
|
|
621
|
-
}), "input"),
|
|
622
|
-
let i =
|
|
623
|
-
return
|
|
626
|
+
}), "input"), V = x(h(({ children: e, title: t, ...n }, r) => {
|
|
627
|
+
let i = z(t, r);
|
|
628
|
+
return R("textarea", {
|
|
624
629
|
...n,
|
|
625
630
|
ref: i
|
|
626
631
|
}, e);
|
|
627
|
-
}), "textarea"),
|
|
632
|
+
}), "textarea"), H = x(h(({ children: e, title: t, ...n }, r) => {
|
|
628
633
|
let i = p(typeof t == "string" ? t : void 0), a = o((e) => {
|
|
629
634
|
i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
630
635
|
}, [r]);
|
|
631
|
-
return
|
|
636
|
+
return R("button", {
|
|
632
637
|
...n,
|
|
633
638
|
ref: a,
|
|
634
639
|
"aria-label": n["aria-label"] ?? (!e && typeof t == "string" ? t : void 0)
|
|
635
640
|
}, e);
|
|
636
|
-
}), "button"),
|
|
637
|
-
let i =
|
|
638
|
-
return
|
|
641
|
+
}), "button"), te = x(h(({ children: e, title: t, ...n }, r) => {
|
|
642
|
+
let i = z(t, r);
|
|
643
|
+
return R("summary", {
|
|
639
644
|
...n,
|
|
640
645
|
ref: i
|
|
641
646
|
}, e);
|
|
642
|
-
}), "summary"),
|
|
647
|
+
}), "summary"), ne = x(I, "select");
|
|
643
648
|
//#endregion
|
|
644
|
-
export {
|
|
649
|
+
export { V as a, F as c, N as d, D as f, te as i, j as l, B as n, L as o, E as p, ne as r, I as s, H as t, M as u };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
-
import { n as a } from "./native-control-
|
|
5
|
-
import { t as o } from "./controls-
|
|
4
|
+
import { n as a } from "./native-control-um1L1wgZ.js";
|
|
5
|
+
import { t as o } from "./controls-B3EgM_DS.js";
|
|
6
6
|
import { EditorActions as s } from "../editor-actions.js";
|
|
7
|
-
//#region
|
|
7
|
+
//#region package/number-input/model.ts
|
|
8
8
|
var c = {
|
|
9
9
|
invalid: "Enter a valid number in the configured locale.",
|
|
10
10
|
configuration: "The number input configuration is unsupported or invalid.",
|
|
@@ -150,7 +150,7 @@ function _(e, t, n = {}) {
|
|
|
150
150
|
return !Number.isFinite(l) || Math.abs(l) > 2 ** 53 - 1 ? { error: n.text?.invalid ?? c.invalid } : h(m(l, n), n);
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
|
-
//#region
|
|
153
|
+
//#region package/number-input/index.tsx
|
|
154
154
|
function v({ value: l, options: u, apply: d, cancel: f, initialSelection: p = "all" }) {
|
|
155
155
|
let [g, v] = t(() => {
|
|
156
156
|
try {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as t } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { t as r } from "./native-control-
|
|
4
|
+
import { t as r } from "./native-control-um1L1wgZ.js";
|
|
5
5
|
import { DEFAULT_CALENDAR_TRANSLATIONS as i } from "../calendar/translations.js";
|
|
6
|
-
import { n as a } from "./iso-
|
|
7
|
-
import { f as o, h as s, m as c, o as l, p as u } from "./model-
|
|
8
|
-
import { t as d } from "./calendar-
|
|
9
|
-
//#region
|
|
6
|
+
import { n as a } from "./iso-CJQl2kmq.js";
|
|
7
|
+
import { f as o, h as s, m as c, o as l, p as u } from "./model-CFrBgRHm.js";
|
|
8
|
+
import { t as d } from "./calendar-BQYQLu8Q.js";
|
|
9
|
+
//#region package/calendar/picker.tsx
|
|
10
10
|
function f(f) {
|
|
11
11
|
let { selected: p, onSelectionChange: ee, presets: m, mode: h = "single", min: g = 0, max: _ = Infinity, required: v = !1, excludeDisabled: y = !1, month: b, defaultMonth: x, onMonthChange: S, ...C } = f, w = typeof p == "string" ? p : Array.isArray(p) ? p[0] : p?.from, [T, E] = t(x ?? w ?? f.referenceDate ?? s()), [D, O] = t(w ?? T), [k, A] = t(), [j, M] = t(), N = (e) => {
|
|
12
12
|
A(e), M(void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as e, i as t, l as n, n as r, r as i, t as a } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { c as o, i as s, r as c, t as l } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { i as d, r as f, t as p } from "./top-layer-popup-
|
|
4
|
+
import { i as d, r as f, t as p } from "./top-layer-popup-CKJ7VJOF.js";
|
|
5
5
|
import { inheritUiMotion as m } from "../core/motion.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
|
|
7
7
|
function h(e, t) {
|
|
@@ -229,7 +229,7 @@ n.diffed = function(e) {
|
|
|
229
229
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
|
|
230
230
|
};
|
|
231
231
|
//#endregion
|
|
232
|
-
//#region
|
|
232
|
+
//#region package/dropdown/popup.tsx
|
|
233
233
|
var U = 5, W = 4;
|
|
234
234
|
function G(e, t, n) {
|
|
235
235
|
let r = e.ownerDocument.defaultView;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
-
import { t as n } from "./native-control-
|
|
3
|
+
import { t as n } from "./native-control-um1L1wgZ.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/star.svg?raw
|
|
5
5
|
var r = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>", i = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>";
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region
|
|
7
|
+
//#region package/rating-choice.tsx
|
|
8
8
|
function a({ filled: n }) {
|
|
9
9
|
return /* @__PURE__ */ e("span", {
|
|
10
10
|
class: "rv-rating__star",
|
|
@@ -3,7 +3,7 @@ import { c as t, i as n, t as r } from "./hooks.module-CG3gN83z.js";
|
|
|
3
3
|
import { renderHeader as i } from "../status-feedback/header.js";
|
|
4
4
|
import { renderItem as a } from "../status-feedback/item.js";
|
|
5
5
|
import { renderStatusBadge as o } from "../status-feedback/badge.js";
|
|
6
|
-
//#region
|
|
6
|
+
//#region package/status-feedback/use-auto-dismiss.ts
|
|
7
7
|
function s(e, i = 0, a) {
|
|
8
8
|
let [o, s] = n(/* @__PURE__ */ new Set()), c = r(a);
|
|
9
9
|
c.current = a;
|
|
@@ -37,7 +37,7 @@ function s(e, i = 0, a) {
|
|
|
37
37
|
} : e);
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region
|
|
40
|
+
//#region package/status-feedback/render.ts
|
|
41
41
|
function c(e, t) {
|
|
42
42
|
let { title: n, items: r, ariaLabel: o, className: s, popover: c, onCollapsedChange: l } = t;
|
|
43
43
|
if (!r.length) return c?.hide(!0), null;
|