@revolist/ui 4.0.5-rc → 4.0.5
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 +36 -36
- package/README.md +65 -408
- package/_button.scss +6 -2
- package/_chunks/{calendar-DsXIhybL.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-CuZABXVI.js → chart-frame-GprenwEg.js} +17 -13
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/{choice-chips-BhP8MZjs.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-B4TQvxxB.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-qKctqdzk.js → component-C3k_8uIq.js} +44 -45
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-DlVkpW3h.js} +1 -9
- package/_chunks/{configurator-actions-C19O1rda.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-BkWukVt9.js → control-BRfF5DWQ.js} +32 -7
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-BLQnWEd7.js → controls-B3EgM_DS.js} +160 -132
- package/_chunks/{date-control-Cgw5PwlZ.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-B8rK5gpC.js → date-time-CfiFYodx.js} +316 -293
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/dialog.parts-NqEEVc9P.js +131 -0
- package/_chunks/{duration-DwFXonEV.js → duration-BGZ_qJ99.js} +10 -7
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-BaaxL89T.js → editor-popup-NNP9Fh9U.js} +12 -11
- 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--RTLIqE-.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-xbqa0hu9.js → icon-toolbar-BAAdEvr9.js} +41 -35
- 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.view-ByyZ1CT5.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-DO0d1kgx.js → native-control-um1L1wgZ.js} +124 -111
- package/_chunks/{number-input-s9ddPwX6.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-AY05b41W.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-UXGCiv3n.js → popup-DECYM9FI.js} +21 -10
- package/_chunks/{rating-choice-BEs_QFZC.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-A49l172e.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-DCOfa5zw.js → request-trail-B1zVRPEf.js} +151 -142
- package/_chunks/{rich-text-xfMWadGi.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 +34 -32
- 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/_style.scss +3 -0
- 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 +28 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- 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.d.ts +1 -3
- package/brush-range/component.js +10 -11
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +2 -2
- package/buttons/remove-button.style.scss +1 -1
- 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 +6 -24
- 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/native.d.ts +15 -2
- 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/component-catalog.d.ts +3 -6
- 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 +3 -2
- 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.d.ts +8 -2
- 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-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- 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/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +4 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +206 -46
- package/date-time/time-selection.d.ts +1 -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 +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +115 -23
- 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.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 +19 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- 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 +22 -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 +41 -16
- 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.d.ts +0 -1
- package/filter-controls.js +6 -7
- package/form-controls/index.d.ts +10 -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.d.ts +1 -1
- package/formatting/index.js +7 -7
- package/formatting/styles.scss +13 -11
- package/framework.js +201 -205
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +6 -2
- 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-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +35 -35
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +12 -12
- 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 +6 -10
- package/preact.js +108 -70
- 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.d.ts +2 -0
- package/react-control.js +3 -3
- package/react.d.ts +2 -8
- package/react.js +55 -56
- 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/search-input/native.d.ts +21 -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 +78 -17
- 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 -4
- package/styles/_field-configurator.scss +194 -42
- package/styles/_fields-grid.scss +18 -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/_palette.scss +0 -24
- package/styles/_primitives.scss +348 -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 +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +37 -4
- 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.d.ts +0 -1
- package/time-grid.js +6 -6
- 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 +5 -23
- package/vue.js +84 -91
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/dialog.parts-BSbvnEwX.js +0 -134
- package/_chunks/field-configurator-1eQP0tKy.js +0 -223
- package/_chunks/mount-D1i5DLRn.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
- 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 -2
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -129
- package/surfaces.view.d.ts +0 -33
|
@@ -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,31 +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
|
+
}), 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);
|
|
192
|
+
if (!t) return;
|
|
193
|
+
let n = e.getBoundingClientRect(), { top: r, bottom: i } = t.getBoundingClientRect();
|
|
194
|
+
r < n.top ? e.scrollTop += r - n.top : i > n.bottom && (e.scrollTop += i - n.bottom);
|
|
195
|
+
});
|
|
196
|
+
let I = _(), L = o((e) => {
|
|
197
|
+
w.current = e, I(e);
|
|
198
|
+
}, [I]);
|
|
186
199
|
return r(() => {
|
|
187
|
-
if (!
|
|
200
|
+
if (!c.autoFocus) return;
|
|
188
201
|
let e = () => {
|
|
189
|
-
|
|
190
|
-
}, 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);
|
|
191
204
|
if (!t) return;
|
|
192
205
|
e();
|
|
193
206
|
let n = t.setTimeout(e, 0), r = t.requestAnimationFrame(e), i = t.setTimeout(e, 16);
|
|
194
207
|
return () => {
|
|
195
208
|
t.clearTimeout(n), t.cancelAnimationFrame(r), t.clearTimeout(i);
|
|
196
209
|
};
|
|
197
|
-
}, [
|
|
198
|
-
ref:
|
|
210
|
+
}, [c.autoFocus, f]), /* @__PURE__ */ u("div", {
|
|
211
|
+
ref: L,
|
|
199
212
|
className: "dropdown-listbox",
|
|
200
|
-
"data-theme":
|
|
213
|
+
"data-theme": S ?? "default",
|
|
201
214
|
role: "listbox",
|
|
202
|
-
id:
|
|
203
|
-
"aria-multiselectable":
|
|
204
|
-
"aria-activedescendant":
|
|
215
|
+
id: m,
|
|
216
|
+
"aria-multiselectable": d,
|
|
217
|
+
"aria-activedescendant": F,
|
|
205
218
|
tabIndex: -1,
|
|
206
219
|
"aria-busy": n?.loading,
|
|
207
220
|
onScrollCapture: (e) => {
|
|
@@ -210,28 +223,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
210
223
|
},
|
|
211
224
|
onKeyUp: (e) => e.stopPropagation(),
|
|
212
225
|
onKeyDown: (e) => {
|
|
213
|
-
if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(),
|
|
226
|
+
if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(), b(!1);
|
|
214
227
|
else if (e.key === "Tab") {
|
|
215
|
-
if (
|
|
216
|
-
|
|
228
|
+
if (c.nativeTabNavigation && x) {
|
|
229
|
+
x();
|
|
217
230
|
return;
|
|
218
231
|
}
|
|
219
|
-
e.preventDefault(), e.stopPropagation(),
|
|
220
|
-
} 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));
|
|
221
234
|
},
|
|
222
235
|
children: [
|
|
223
|
-
|
|
236
|
+
f && /* @__PURE__ */ u("div", {
|
|
224
237
|
className: "dropdown-search",
|
|
225
238
|
children: /* @__PURE__ */ u("input", {
|
|
226
|
-
ref:
|
|
239
|
+
ref: C,
|
|
227
240
|
type: "text",
|
|
228
|
-
id:
|
|
229
|
-
className: `dropdown-search-input ${
|
|
230
|
-
placeholder:
|
|
231
|
-
value:
|
|
232
|
-
onChange:
|
|
233
|
-
onInput:
|
|
234
|
-
"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"
|
|
235
248
|
})
|
|
236
249
|
}),
|
|
237
250
|
n?.loading && /* @__PURE__ */ u("div", {
|
|
@@ -243,28 +256,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
243
256
|
children: [
|
|
244
257
|
n.text.error,
|
|
245
258
|
" ",
|
|
246
|
-
/* @__PURE__ */ u(
|
|
259
|
+
/* @__PURE__ */ u(H, {
|
|
247
260
|
onClick: n.retry,
|
|
248
261
|
children: n.text.retry
|
|
249
262
|
})
|
|
250
263
|
]
|
|
251
264
|
}),
|
|
252
|
-
/* @__PURE__ */ u(
|
|
265
|
+
/* @__PURE__ */ u(D, {
|
|
253
266
|
options: e,
|
|
254
|
-
filteredOptions:
|
|
255
|
-
multiSelect:
|
|
256
|
-
focusedIndex:
|
|
257
|
-
selectedOptions:
|
|
258
|
-
onKeyDown:
|
|
259
|
-
onSelect:
|
|
260
|
-
onFocusChange:
|
|
261
|
-
renderOption:
|
|
262
|
-
renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty :
|
|
263
|
-
dropdownListRef:
|
|
264
|
-
theme:
|
|
265
|
-
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
|
|
266
279
|
}),
|
|
267
|
-
n?.hasMore && /* @__PURE__ */ u(
|
|
280
|
+
n?.hasMore && /* @__PURE__ */ u(H, {
|
|
268
281
|
disabled: n.loading,
|
|
269
282
|
onClick: n.loadMore,
|
|
270
283
|
children: n.text.loadMore
|
|
@@ -272,7 +285,7 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
272
285
|
]
|
|
273
286
|
});
|
|
274
287
|
}
|
|
275
|
-
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 }) {
|
|
276
289
|
let _ = o((e) => s.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), [s]), v = o((t, n) => {
|
|
277
290
|
let r = _(t), o = a === n;
|
|
278
291
|
return /* @__PURE__ */ u("li", {
|
|
@@ -320,15 +333,15 @@ function E({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, se
|
|
|
320
333
|
}) });
|
|
321
334
|
}
|
|
322
335
|
//#endregion
|
|
323
|
-
//#region
|
|
324
|
-
var
|
|
336
|
+
//#region package/dropdown/index.tsx
|
|
337
|
+
var ee = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("span", {
|
|
325
338
|
className: `selected-value ${n}`,
|
|
326
339
|
children: r ? r(e, t[0]) : t[0].label
|
|
327
|
-
}),
|
|
340
|
+
}), O = ({ options: t, removeOption: n, className: r, renderValue: i, disabled: a, removeLabel: o }) => /* @__PURE__ */ u("div", {
|
|
328
341
|
className: `selected-values ${r}`,
|
|
329
342
|
children: t.map((t, r) => /* @__PURE__ */ u("span", {
|
|
330
343
|
className: "selected-tag",
|
|
331
|
-
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, {
|
|
332
345
|
compact: !0,
|
|
333
346
|
onClick: (e) => {
|
|
334
347
|
e.stopPropagation(), n(t);
|
|
@@ -339,22 +352,22 @@ var D = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("spa
|
|
|
339
352
|
}
|
|
340
353
|
})]
|
|
341
354
|
}, r))
|
|
342
|
-
}),
|
|
355
|
+
}), k = ({ className: e }) => /* @__PURE__ */ u("span", {
|
|
343
356
|
className: `dropdown-arrow ${e}`,
|
|
344
357
|
"aria-hidden": "true",
|
|
345
|
-
dangerouslySetInnerHTML: { __html:
|
|
346
|
-
}),
|
|
358
|
+
dangerouslySetInnerHTML: { __html: b }
|
|
359
|
+
}), A = ({ placeholder: e, className: t }) => [/* @__PURE__ */ u("span", {
|
|
347
360
|
className: `placeholder px-2 ${t}`,
|
|
348
361
|
children: e
|
|
349
|
-
}), /* @__PURE__ */ u(
|
|
350
|
-
function
|
|
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 }) {
|
|
351
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";
|
|
352
365
|
r(() => {
|
|
353
366
|
B && !de.current && !_ && (ue(!0), Y(!0)), de.current = B;
|
|
354
367
|
}, [B, _]), r(() => {
|
|
355
368
|
_ && J && (Y(!1), P?.(!1));
|
|
356
369
|
}, [_, J]);
|
|
357
|
-
let X =
|
|
370
|
+
let X = T({
|
|
358
371
|
dataSource: o,
|
|
359
372
|
dataContext: s,
|
|
360
373
|
remoteText: c,
|
|
@@ -420,17 +433,17 @@ function A({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
420
433
|
F
|
|
421
434
|
]);
|
|
422
435
|
let he = () => {
|
|
423
|
-
let t = [
|
|
424
|
-
return M ? M(e, Q, t) : Q.length > 0 ? V ? [/* @__PURE__ */ u(
|
|
436
|
+
let t = [k({})];
|
|
437
|
+
return M ? M(e, Q, t) : Q.length > 0 ? V ? [/* @__PURE__ */ u(O, {
|
|
425
438
|
options: Q,
|
|
426
439
|
removeOption: me,
|
|
427
|
-
renderValue:
|
|
440
|
+
renderValue: D,
|
|
428
441
|
disabled: _,
|
|
429
442
|
removeLabel: S.removeLabel
|
|
430
|
-
}), /* @__PURE__ */ u(
|
|
443
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })] : [/* @__PURE__ */ u(ee, {
|
|
431
444
|
options: Q,
|
|
432
|
-
renderValue:
|
|
433
|
-
}), /* @__PURE__ */ u(
|
|
445
|
+
renderValue: D
|
|
446
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })] : j ? j(e, h, t) : /* @__PURE__ */ u(A, { placeholder: h });
|
|
434
447
|
}, ge = () => /* @__PURE__ */ u(g, {
|
|
435
448
|
onPointerRelease: I?.onPointerRelease,
|
|
436
449
|
topLayer: S.topLayer,
|
|
@@ -443,7 +456,7 @@ function A({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
443
456
|
children: C ? C({
|
|
444
457
|
id: K,
|
|
445
458
|
close: $
|
|
446
|
-
}) : /* @__PURE__ */ u(
|
|
459
|
+
}) : /* @__PURE__ */ u(E, {
|
|
447
460
|
options: o ? X.items : Z,
|
|
448
461
|
selectedValues: o ? X.selected : void 0,
|
|
449
462
|
remote: o ? X : void 0,
|
|
@@ -466,7 +479,7 @@ function A({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
466
479
|
searchPlaceholder: R,
|
|
467
480
|
listboxId: K,
|
|
468
481
|
searchId: ce,
|
|
469
|
-
renderOption:
|
|
482
|
+
renderOption: w,
|
|
470
483
|
renderNoResults: N,
|
|
471
484
|
onClose: $,
|
|
472
485
|
onTabNavigation: () => {
|
|
@@ -496,7 +509,7 @@ function A({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
496
509
|
tabIndex: _ ? -1 : 0,
|
|
497
510
|
onClick: _ ? void 0 : pe,
|
|
498
511
|
onKeyDown: (e) => {
|
|
499
|
-
_ || e.target !== e.currentTarget || (J && e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), $()) : !J && (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), e.stopPropagation(), pe()));
|
|
512
|
+
_ || e.target !== e.currentTarget || (J && e.key === "Tab" && S.nativeTabNavigation ? (e.stopPropagation(), $()) : J && e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), $()) : !J && (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), e.stopPropagation(), pe()));
|
|
500
513
|
},
|
|
501
514
|
children: he()
|
|
502
515
|
}),
|
|
@@ -509,27 +522,27 @@ function A({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
509
522
|
]
|
|
510
523
|
});
|
|
511
524
|
}
|
|
512
|
-
var
|
|
513
|
-
d(e, /* @__PURE__ */ u(
|
|
514
|
-
},
|
|
525
|
+
var M = (e, t) => {
|
|
526
|
+
d(e, /* @__PURE__ */ u(j, { ...t }));
|
|
527
|
+
}, N = (e) => {
|
|
515
528
|
d(e, null);
|
|
516
529
|
};
|
|
517
530
|
//#endregion
|
|
518
|
-
//#region
|
|
519
|
-
function
|
|
520
|
-
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);
|
|
521
534
|
}
|
|
522
|
-
function
|
|
523
|
-
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));
|
|
524
537
|
if (!n(e)) return [];
|
|
525
538
|
let o = e.props;
|
|
526
|
-
if (e.type === t) return
|
|
527
|
-
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);
|
|
528
541
|
let s = r ? r(o) : o, c = {
|
|
529
542
|
...s,
|
|
530
543
|
disabled: o.disabled || s.disabled,
|
|
531
544
|
hidden: o.hidden || s.hidden
|
|
532
|
-
}, l = String(c.label ??
|
|
545
|
+
}, l = String(c.label ?? P(c.children)).trim();
|
|
533
546
|
return [{
|
|
534
547
|
value: String(c.value ?? l),
|
|
535
548
|
label: i ? `${i}: ${l}` : l,
|
|
@@ -538,12 +551,12 @@ function P(e, r, i = "", a = !1) {
|
|
|
538
551
|
selected: !!c.selected
|
|
539
552
|
}];
|
|
540
553
|
}
|
|
541
|
-
function
|
|
542
|
-
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(() => {
|
|
543
556
|
let e = o ?? (d ? x.filter((e) => e.selected).map((e) => e.value) : x.find((e) => e.selected)?.value ?? x[0]?.value ?? "");
|
|
544
557
|
return Array.isArray(e) ? [...e] : String(e);
|
|
545
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();
|
|
546
|
-
return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(
|
|
559
|
+
return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(j, {
|
|
547
560
|
environment: r,
|
|
548
561
|
renderOption: (e, t) => /* @__PURE__ */ u("span", {
|
|
549
562
|
"data-select-option": t.value,
|
|
@@ -578,8 +591,8 @@ function F(e) {
|
|
|
578
591
|
}))] });
|
|
579
592
|
}
|
|
580
593
|
//#endregion
|
|
581
|
-
//#region
|
|
582
|
-
function
|
|
594
|
+
//#region package/fieldset.tsx
|
|
595
|
+
function L(e) {
|
|
583
596
|
let t = c(m), n = t.disabled || !!e.disabled;
|
|
584
597
|
return /* @__PURE__ */ u(m.Provider, {
|
|
585
598
|
value: {
|
|
@@ -593,44 +606,44 @@ function I(e) {
|
|
|
593
606
|
});
|
|
594
607
|
}
|
|
595
608
|
//#endregion
|
|
596
|
-
//#region
|
|
597
|
-
function
|
|
598
|
-
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);
|
|
599
612
|
return i && !(t === "button" && n.busy) && Object.assign(o.props, { onChange: i }), o;
|
|
600
613
|
}
|
|
601
|
-
function
|
|
614
|
+
function z(e, t) {
|
|
602
615
|
let n = p(typeof e == "string" ? e : void 0);
|
|
603
616
|
return o((e) => {
|
|
604
617
|
n.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
605
618
|
}, [t]);
|
|
606
619
|
}
|
|
607
|
-
var
|
|
608
|
-
let r =
|
|
609
|
-
return
|
|
620
|
+
var B = x(h(({ title: e, ...t }, n) => {
|
|
621
|
+
let r = z(e, n);
|
|
622
|
+
return R("input", {
|
|
610
623
|
...t,
|
|
611
624
|
ref: r
|
|
612
625
|
});
|
|
613
|
-
}), "input"),
|
|
614
|
-
let i =
|
|
615
|
-
return
|
|
626
|
+
}), "input"), V = x(h(({ children: e, title: t, ...n }, r) => {
|
|
627
|
+
let i = z(t, r);
|
|
628
|
+
return R("textarea", {
|
|
616
629
|
...n,
|
|
617
630
|
ref: i
|
|
618
631
|
}, e);
|
|
619
|
-
}), "textarea"),
|
|
632
|
+
}), "textarea"), H = x(h(({ children: e, title: t, ...n }, r) => {
|
|
620
633
|
let i = p(typeof t == "string" ? t : void 0), a = o((e) => {
|
|
621
634
|
i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
622
635
|
}, [r]);
|
|
623
|
-
return
|
|
636
|
+
return R("button", {
|
|
624
637
|
...n,
|
|
625
638
|
ref: a,
|
|
626
639
|
"aria-label": n["aria-label"] ?? (!e && typeof t == "string" ? t : void 0)
|
|
627
640
|
}, e);
|
|
628
|
-
}), "button"),
|
|
629
|
-
let i =
|
|
630
|
-
return
|
|
641
|
+
}), "button"), te = x(h(({ children: e, title: t, ...n }, r) => {
|
|
642
|
+
let i = z(t, r);
|
|
643
|
+
return R("summary", {
|
|
631
644
|
...n,
|
|
632
645
|
ref: i
|
|
633
646
|
}, e);
|
|
634
|
-
}), "summary"),
|
|
647
|
+
}), "summary"), ne = x(I, "select");
|
|
635
648
|
//#endregion
|
|
636
|
-
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,16 +229,25 @@ 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;
|
|
236
|
-
if (!r
|
|
236
|
+
if (!r) return {
|
|
237
237
|
top: t,
|
|
238
238
|
left: n,
|
|
239
239
|
scaleX: 1,
|
|
240
240
|
scaleY: 1
|
|
241
241
|
};
|
|
242
|
+
if (r.getComputedStyle(e).position === "fixed") {
|
|
243
|
+
let r = e.currentCSSZoom, i = Number.isFinite(r) && r > 0 ? r : 1;
|
|
244
|
+
return {
|
|
245
|
+
top: t / i,
|
|
246
|
+
left: n / i,
|
|
247
|
+
scaleX: i,
|
|
248
|
+
scaleY: i
|
|
249
|
+
};
|
|
250
|
+
}
|
|
242
251
|
let i = e.offsetParent, a = e.ownerDocument;
|
|
243
252
|
if (!i || i === a.body || i === a.documentElement) return {
|
|
244
253
|
top: t + r.scrollY,
|
|
@@ -293,15 +302,17 @@ function K({ onPointerRelease: e, triggerRef: t, children: n, portalTarget: r, t
|
|
|
293
302
|
maxHeight: h / x.scaleY,
|
|
294
303
|
...y ? { width: r.width / x.scaleX } : {}
|
|
295
304
|
});
|
|
305
|
+
}, a = (e) => {
|
|
306
|
+
e.target instanceof n.Node && d(C.current, e.target) || i();
|
|
296
307
|
};
|
|
297
308
|
r();
|
|
298
|
-
let
|
|
299
|
-
n.addEventListener("resize", i), n.addEventListener("scroll",
|
|
300
|
-
let
|
|
301
|
-
|
|
302
|
-
let
|
|
303
|
-
return
|
|
304
|
-
n.clearTimeout(
|
|
309
|
+
let o = n.setTimeout(i, 0);
|
|
310
|
+
n.addEventListener("resize", i), n.addEventListener("scroll", a, !0);
|
|
311
|
+
let s = n.ResizeObserver, c = s ? new s(i) : void 0;
|
|
312
|
+
c?.observe(e);
|
|
313
|
+
let l = e.closest(".rv-dialog__surface, dialog");
|
|
314
|
+
return l && c?.observe(l), x && C.current && c?.observe(C.current), () => {
|
|
315
|
+
n.clearTimeout(o), n.removeEventListener("resize", i), n.removeEventListener("scroll", a, !0), c?.disconnect();
|
|
305
316
|
};
|
|
306
317
|
}, [
|
|
307
318
|
v,
|
|
@@ -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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as n } from "./native-control-
|
|
3
|
+
import { t as n } from "./native-control-um1L1wgZ.js";
|
|
4
4
|
import { fieldDropIndex as r, fieldListDropIndex as i } from "../field-reorder.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/grip-vertical.svg?raw
|
|
6
6
|
var a = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 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=\"M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z\"/></svg>";
|
|
7
7
|
//#endregion
|
|
8
|
-
//#region
|
|
8
|
+
//#region package/reorder-list.tsx
|
|
9
9
|
function o({ items: n, itemKey: a, renderItem: o, renderHandle: s, itemAttributes: c, className: l = "", rowClassName: u = "", endClassName: d = "", draggedKey: f, dropIndex: p, empty: m, onDragOver: h, onDrop: g }) {
|
|
10
10
|
let _ = (e, t) => {
|
|
11
11
|
let n = e.currentTarget.getBoundingClientRect();
|