@revolist/ui 4.0.1-rc → 4.0.1
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/LICENSE +21 -0
- package/MIGRATION.md +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +405 -264
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/calendar-DJqiFwFT.js +258 -0
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/choice-chips-yr6Uzmof.js +126 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/color-palette-DMJUChWC.js +92 -0
- package/_chunks/{color-picker-BRv-__AM.js → color-picker-CMWxQlWt.js} +61 -56
- package/_chunks/component-DyWiItBR.js +878 -0
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
- package/_chunks/configurator-actions-DCodxcUw.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-CbOYUakE.js +118 -0
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/controls-DD1qvPfE.js +650 -0
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-XI2cpKI_.js} +21 -21
- package/_chunks/date-time-CGJdC1Qa.js +807 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
- package/_chunks/dialog.parts-CJ3FVxC9.js +131 -0
- package/_chunks/duration-CBJWK82T.js +272 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-B-qtIwx1.js +288 -0
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/framework-mount-Bk4O_T7T.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-C7i5gsKI.js +267 -0
- package/_chunks/native-Blr3byjO.js +32 -0
- package/_chunks/native-control-B9MNibfa.js +649 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-CgbZes5B.js} +89 -89
- package/_chunks/picker-DqpjDC90.js +122 -0
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/popup-C35Isk7p.js +378 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-WDrfiluf.js} +10 -10
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/reorder-list-C4HSda4n.js +59 -0
- package/_chunks/request-trail-SHynDFdM.js +762 -0
- package/_chunks/rich-text-CtjqRvv8.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_chunks/selection-list-tooltips-BtWjpP6M.js +41 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/_dialog.scss +55 -21
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_shared/data-query/index.d.ts +2 -2
- package/_shared/data-query/load-options.d.ts +2 -2
- package/_variables.scss +34 -32
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +2 -2
- package/activity-message.js +16 -16
- package/ai/_chat.scss +227 -0
- package/ai/_style.scss +170 -39
- package/ai/chat.d.ts +65 -0
- package/ai/components.d.ts +35 -6
- package/ai/index.d.ts +3 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +59 -6
- package/ai/prompt-history.d.ts +13 -0
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +83 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +27 -0
- package/ai/translation-context.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -10
- package/assignee/assignee.scss +28 -6
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +86 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +42 -41
- package/badge.d.ts +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +2 -4
- package/brush-range/component.js +19 -19
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +2 -2
- package/buttons/remove-button.js +3 -3
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +3 -2
- package/buttons/svg-button.js +23 -23
- package/calendar/_calendar.scss +27 -26
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +34 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/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/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.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +4 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.d.ts +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 +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +42 -29
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +63 -0
- package/configurator-drop-zone.d.ts +39 -0
- package/configurator-drop-zone.js +66 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-attributes.js +7 -7
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +31 -26
- package/controls.d.ts +23 -11
- package/controls.js +4 -3
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +5 -1
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +2 -2
- package/date-time/field.d.ts +4 -3
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/style.scss +242 -39
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +6 -2
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +53 -53
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +6 -3
- package/distribution-chart/bar-chart.js +10 -6
- package/distribution-chart/chart-frame.d.ts +3 -2
- package/distribution-chart/index.d.ts +2 -2
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +3 -2
- package/dropdown/content.js +1 -141
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/dropdown.types.d.ts +5 -1
- package/dropdown/editor-dropdown.style.scss +54 -16
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.d.ts +6 -1
- package/dropdown/lookup-field.js +42 -41
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -140
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +5 -5
- package/editor-layout/index.js +43 -38
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +40 -2
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/field-reorder.hook.js +32 -32
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -2
- package/filter-controls.js +29 -30
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +17 -22
- package/form-controls/presentation.d.ts +2 -2
- package/form-controls/presentation.js +59 -51
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +106 -100
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/styles.scss +14 -57
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +237 -226
- package/history-controls.d.ts +14 -0
- package/history-controls.js +27 -0
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +2 -2
- package/icons/icon.js +1 -1
- package/legend.d.ts +2 -2
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +14 -13
- package/native-control.js +3 -26
- 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 +49 -45
- package/number-input/index.d.ts +2 -2
- package/number-input/index.js +1 -1
- package/package.json +88 -15
- package/pagination.d.ts +3 -0
- package/pagination.js +50 -40
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +2 -2
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +2 -2
- package/pdf-viewer/status.d.ts +2 -2
- package/pdf-viewer/style.scss +205 -45
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +6 -2
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +2 -2
- package/preact.d.ts +15 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +5 -3
- package/react-control.d.ts +1 -0
- package/react.d.ts +20 -11
- package/react.js +72 -88
- package/reorder-list.d.ts +2 -2
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +68 -66
- package/resource-picker/resource-picker.scss +66 -35
- package/rich-text/engine.d.ts +17 -19
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +11 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +6 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +295 -55
- package/rich-text/syntax.d.ts +5 -2
- package/rich-text/toolbar.d.ts +7 -7
- package/rich-text/translations.d.ts +5 -15
- package/search-input/index.js +12 -12
- package/search-input/native.d.ts +21 -2
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/select.d.ts +22 -0
- package/select.js +1 -0
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +1 -1
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +9 -9
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +130 -34
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- 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 +404 -82
- package/styles/_control.scss +42 -12
- 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 +321 -23
- package/styles/_fields-grid.scss +49 -0
- 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 +376 -116
- 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/configurator-actions.scss +241 -0
- 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 +38 -2
- package/surfaces.js +37 -134
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +44 -32
- package/svelte.d.ts +1 -1
- package/svelte.js +33 -68
- package/switch/index.js +3 -2
- package/time-grid.d.ts +1 -2
- package/time-grid.js +43 -42
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +91 -74
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +160 -144
- package/vue.js +149 -178
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-palette-BmZ7kH9R.js +0 -94
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/control-tooltip-BCNzQCXE.js +0 -100
- package/_chunks/controls-NEL5tDaz.js +0 -615
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/dropdown-CkGQBm1Q.js +0 -357
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/editor-popup-B7fu_A_T.js +0 -81
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
- package/_chunks/rich-text-2Rla349o.js +0 -477
- 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 -12
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/react-native-select.d.ts +0 -6
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
- package/vue-native-select.d.ts +0 -9
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { c as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { a as t, i as n, r, t as i } from "./hooks.module-CG3gN83z.js";
|
|
3
|
+
import { t as a } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { SvgIcon as o } from "../icons/icon.js";
|
|
5
|
+
import { t as s } from "./native-control-B9MNibfa.js";
|
|
6
|
+
import { n as c } from "./delete-button-CW9vjLnk.js";
|
|
7
|
+
import { RemoveButton as l } from "../buttons/remove-button.js";
|
|
8
|
+
import { B as u, S as d } from "./controls-DD1qvPfE.js";
|
|
9
|
+
import { t as f } from "./chevron-right-CM3ljziP.js";
|
|
10
|
+
import { t as p } from "./tooltip-text-BXsUEmBH.js";
|
|
11
|
+
import { DisclosureSummary as m } from "../form-controls/presentation.js";
|
|
12
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/table-columns.svg?raw
|
|
13
|
+
var h = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z\"/></svg>";
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/field-expansion.ts
|
|
16
|
+
function g() {
|
|
17
|
+
return {
|
|
18
|
+
known: /* @__PURE__ */ new Set(),
|
|
19
|
+
expanded: /* @__PURE__ */ new Set(),
|
|
20
|
+
collapsed: /* @__PURE__ */ new Set()
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function _(e, t, n) {
|
|
24
|
+
for (let n of t) e.known.has(n) || (e.known.add(n), e.expanded.add(n));
|
|
25
|
+
return new Set(n ? t : e.expanded);
|
|
26
|
+
}
|
|
27
|
+
function v(e, t) {
|
|
28
|
+
e.expanded = new Set([...t].map(String)), e.collapsed = new Set([...e.known].filter((t) => !e.expanded.has(t)));
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/field-configurator.tsx
|
|
32
|
+
function y({ svg: e, className: t = "" }) {
|
|
33
|
+
return /* @__PURE__ */ a(o, {
|
|
34
|
+
svg: e,
|
|
35
|
+
className: `rv-configurator-icon ${t}`
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function b({ children: e, className: t = "", ...n }) {
|
|
39
|
+
return /* @__PURE__ */ a(m, {
|
|
40
|
+
...n,
|
|
41
|
+
className: `rv-configurator-summary ${t}`,
|
|
42
|
+
iconPosition: "after",
|
|
43
|
+
icon: /* @__PURE__ */ a(y, { svg: f }),
|
|
44
|
+
children: e
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function x({ title: e, id: t, count: n, children: r, className: i = "" }) {
|
|
48
|
+
return /* @__PURE__ */ a("details", {
|
|
49
|
+
id: t,
|
|
50
|
+
tabIndex: t ? -1 : void 0,
|
|
51
|
+
class: `rv-configurator-available-fields ${i}`,
|
|
52
|
+
open: !0,
|
|
53
|
+
children: [/* @__PURE__ */ a(b, { children: [e, n != null && /* @__PURE__ */ a("span", {
|
|
54
|
+
class: "rv-configurator-field-count",
|
|
55
|
+
children: n
|
|
56
|
+
})] }), /* @__PURE__ */ a("div", {
|
|
57
|
+
class: "rv-configurator-library-content",
|
|
58
|
+
children: r
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function S({ children: e, actions: t, className: n = "" }) {
|
|
63
|
+
return /* @__PURE__ */ a("div", {
|
|
64
|
+
class: `rv-configurator-zone-heading ${n}`,
|
|
65
|
+
children: [/* @__PURE__ */ a("span", {
|
|
66
|
+
class: "rv-configurator-zone-label",
|
|
67
|
+
children: e
|
|
68
|
+
}), t && /* @__PURE__ */ a("span", {
|
|
69
|
+
class: "rv-configurator-zone-actions",
|
|
70
|
+
children: t
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function C({ heading: e, actions: t, headingClassName: n, className: r = "", children: i, ...o }) {
|
|
75
|
+
return /* @__PURE__ */ a("section", {
|
|
76
|
+
...o,
|
|
77
|
+
className: `rv-configurator-zone ${r}`,
|
|
78
|
+
children: [/* @__PURE__ */ a(S, {
|
|
79
|
+
className: n,
|
|
80
|
+
actions: t,
|
|
81
|
+
children: e
|
|
82
|
+
}), i]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function w({ empty: e, placeholder: t, className: n = "", children: r, ...i }) {
|
|
86
|
+
return /* @__PURE__ */ a("ul", {
|
|
87
|
+
...i,
|
|
88
|
+
className: `rv-configurator-field-list ${e ? "empty" : ""} ${n}`,
|
|
89
|
+
children: e ? /* @__PURE__ */ a("li", {
|
|
90
|
+
className: "rv-configurator-empty-zone empty",
|
|
91
|
+
children: t
|
|
92
|
+
}) : r
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function T({ className: e = "", children: t, indicator: n, dropPosition: r, ...i }) {
|
|
96
|
+
return /* @__PURE__ */ a("li", {
|
|
97
|
+
...i,
|
|
98
|
+
className: `rv-configurator-field rv-configurator-field-row ${e}`,
|
|
99
|
+
children: [
|
|
100
|
+
n ?? (r && /* @__PURE__ */ a(P, { position: r })),
|
|
101
|
+
/* @__PURE__ */ a("span", {
|
|
102
|
+
className: "rv-configurator-drag-handle",
|
|
103
|
+
"aria-hidden": "true"
|
|
104
|
+
}),
|
|
105
|
+
t
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function E({ icon: e, children: t, className: n = "" }) {
|
|
110
|
+
return /* @__PURE__ */ a("span", {
|
|
111
|
+
class: `rv-configurator-field-content ${n}`,
|
|
112
|
+
children: [e, /* @__PURE__ */ a("span", {
|
|
113
|
+
class: "rv-configurator-field-caption",
|
|
114
|
+
children: t
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function D({ as: t = "div", children: n, className: r = "", ...i }) {
|
|
119
|
+
return e(t, {
|
|
120
|
+
...i,
|
|
121
|
+
class: `rv-configurator-field ${r}`
|
|
122
|
+
}, n);
|
|
123
|
+
}
|
|
124
|
+
function O({ children: e, ...t }) {
|
|
125
|
+
return /* @__PURE__ */ a("div", {
|
|
126
|
+
...t,
|
|
127
|
+
className: `rv-configurator-library-list ${t.className ?? ""}`,
|
|
128
|
+
children: e
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function k({ label: e, icon: t, actions: n, contentClassName: r, ...i }) {
|
|
132
|
+
return /* @__PURE__ */ a(T, {
|
|
133
|
+
...i,
|
|
134
|
+
children: [/* @__PURE__ */ a(E, {
|
|
135
|
+
className: r,
|
|
136
|
+
icon: t,
|
|
137
|
+
children: e
|
|
138
|
+
}), n]
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function A({ children: e, className: t = "", ...n }) {
|
|
142
|
+
return /* @__PURE__ */ a("div", {
|
|
143
|
+
...n,
|
|
144
|
+
className: `rv-configurator-field-actions ${t}`,
|
|
145
|
+
children: e
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function j({ children: e, active: t = !1, label: n, className: r = "" }) {
|
|
149
|
+
return /* @__PURE__ */ a(p, {
|
|
150
|
+
className: `rv-configurator-status-badge ${r}`,
|
|
151
|
+
"data-active": t ? "true" : void 0,
|
|
152
|
+
title: n,
|
|
153
|
+
"aria-label": n,
|
|
154
|
+
children: e
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function M(e) {
|
|
158
|
+
return /* @__PURE__ */ a(l, {
|
|
159
|
+
...e,
|
|
160
|
+
className: `rv-configurator-remove-button ${e.className ?? ""}`
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
function N() {
|
|
164
|
+
return /* @__PURE__ */ a(o, { svg: c });
|
|
165
|
+
}
|
|
166
|
+
function P({ position: e, index: t, className: n = "" }) {
|
|
167
|
+
return /* @__PURE__ */ a("span", {
|
|
168
|
+
className: `rv-configurator-drop-indicator ${n}`,
|
|
169
|
+
"data-position": e,
|
|
170
|
+
"data-drop-index": t,
|
|
171
|
+
"aria-hidden": "true"
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function F({ title: e, description: t, defaultOpen: n = !1, children: r, className: o = "", summaryClassName: s = "", contentClassName: c = "", descriptionClassName: l = "", renderRoot: u }) {
|
|
175
|
+
let d = i(n), f = {
|
|
176
|
+
class: `rv-collapsible-section rv-configurator-section ${o}`.trim(),
|
|
177
|
+
open: d.current,
|
|
178
|
+
children: [/* @__PURE__ */ a(b, {
|
|
179
|
+
className: s,
|
|
180
|
+
children: e
|
|
181
|
+
}), /* @__PURE__ */ a("div", {
|
|
182
|
+
class: `rv-collapsible-section__content ${c}`.trim(),
|
|
183
|
+
children: [t && /* @__PURE__ */ a("p", {
|
|
184
|
+
class: `rv-collapsible-section__description ${l}`.trim(),
|
|
185
|
+
children: t
|
|
186
|
+
}), r]
|
|
187
|
+
})]
|
|
188
|
+
};
|
|
189
|
+
return u ? u(f) : /* @__PURE__ */ a("details", { ...f });
|
|
190
|
+
}
|
|
191
|
+
function I({ panelRef: e, standalone: o = !1, children: c, compactItems: l, compact: f = !1, onExpand: p, miniMode: m = !1, resizable: h = !1, resizeParent: g = !1, ..._ }) {
|
|
192
|
+
let [v, b] = n(), x = m || h, S = x ? !(v ?? !m) : f, [C, w] = n(), T = i(null);
|
|
193
|
+
r(() => {
|
|
194
|
+
let e = T.current?.parentElement?.parentElement;
|
|
195
|
+
if (h && g && !S && C !== void 0 && e) return e.style.setProperty("--rv-configurator-resized-width", `${C}px`), () => e.style.removeProperty("--rv-configurator-resized-width");
|
|
196
|
+
}, [
|
|
197
|
+
h,
|
|
198
|
+
g,
|
|
199
|
+
S,
|
|
200
|
+
C
|
|
201
|
+
]);
|
|
202
|
+
let E = t(), D = i(null), O = i(null), k = i(!1), A = i();
|
|
203
|
+
r(() => {
|
|
204
|
+
k.current && (k.current = !1, S ? D.current?.querySelector("button:not(:disabled)")?.focus() : (A.current && O.current?.ownerDocument.getElementById(A.current) || O.current)?.focus());
|
|
205
|
+
}, [S]);
|
|
206
|
+
let j = (e) => {
|
|
207
|
+
x && (A.current = e.targetId, k.current = !0, b(!0)), p?.(), e.onOpen?.();
|
|
208
|
+
}, M = x && !l?.some((e) => !e.disabled) ? [{
|
|
209
|
+
id: "expand",
|
|
210
|
+
label: "Expand configurator"
|
|
211
|
+
}] : l, N = () => {
|
|
212
|
+
k.current = !0, b(!1);
|
|
213
|
+
}, P = h && !g && C !== void 0 ? typeof _.style == "string" ? `${_.style};width:${C}px` : {
|
|
214
|
+
..._.style,
|
|
215
|
+
width: C
|
|
216
|
+
} : _.style;
|
|
217
|
+
return /* @__PURE__ */ a("div", {
|
|
218
|
+
..._,
|
|
219
|
+
style: P,
|
|
220
|
+
ref: e,
|
|
221
|
+
"data-compact": S ? "true" : void 0,
|
|
222
|
+
"data-mini-mode": x ? "true" : void 0,
|
|
223
|
+
"data-resizable": h ? "true" : void 0,
|
|
224
|
+
className: `rv-configurator-panel ${o ? "rv-configurator-panel--standalone" : ""} ${_.className ?? ""}`,
|
|
225
|
+
children: [
|
|
226
|
+
S && M && /* @__PURE__ */ a("div", {
|
|
227
|
+
ref: D,
|
|
228
|
+
className: "rv-configurator-rail",
|
|
229
|
+
role: "group",
|
|
230
|
+
"aria-label": _["aria-label"] ?? "Configurator",
|
|
231
|
+
children: M.map((e) => /* @__PURE__ */ a(s, {
|
|
232
|
+
unstyled: !0,
|
|
233
|
+
class: "rv-btn rv-btn-ghost rv-configurator-rail__button",
|
|
234
|
+
"aria-label": `${e.label}${e.count === void 0 ? "" : ` (${e.count})`}`,
|
|
235
|
+
title: `${e.label}${e.count === void 0 ? "" : ` (${e.count})`}`,
|
|
236
|
+
"aria-expanded": !x && void 0,
|
|
237
|
+
"aria-controls": x ? E : void 0,
|
|
238
|
+
disabled: e.disabled,
|
|
239
|
+
onClick: () => j(e),
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ a(y, { svg: e.icon ?? "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z\"/></svg>" }),
|
|
242
|
+
x && /* @__PURE__ */ a("span", {
|
|
243
|
+
class: "rv-configurator-rail__label",
|
|
244
|
+
children: e.label
|
|
245
|
+
}),
|
|
246
|
+
e.count !== void 0 && /* @__PURE__ */ a(u, {
|
|
247
|
+
className: "rv-configurator-rail__count",
|
|
248
|
+
variant: e.count ? "accent" : "neutral",
|
|
249
|
+
children: e.count
|
|
250
|
+
})
|
|
251
|
+
]
|
|
252
|
+
}, e.id))
|
|
253
|
+
}),
|
|
254
|
+
h && !S && /* @__PURE__ */ a(d, {
|
|
255
|
+
anchorRef: T,
|
|
256
|
+
resizeParent: g,
|
|
257
|
+
label: "Resize configurator",
|
|
258
|
+
edge: g ? "left" : "right",
|
|
259
|
+
initialWidth: 360,
|
|
260
|
+
min: 56,
|
|
261
|
+
max: 720,
|
|
262
|
+
onChange: (e) => {
|
|
263
|
+
e < 200 ? N() : w(e);
|
|
264
|
+
}
|
|
265
|
+
}),
|
|
266
|
+
x && !S && /* @__PURE__ */ a("div", {
|
|
267
|
+
class: "rv-configurator-panel__toggle",
|
|
268
|
+
children: /* @__PURE__ */ a(s, {
|
|
269
|
+
ref: O,
|
|
270
|
+
class: "rv-btn-ghost",
|
|
271
|
+
"aria-label": "Collapse configurator",
|
|
272
|
+
"aria-expanded": !0,
|
|
273
|
+
"aria-controls": E,
|
|
274
|
+
onClick: N,
|
|
275
|
+
children: "Collapse"
|
|
276
|
+
})
|
|
277
|
+
}),
|
|
278
|
+
l || x ? /* @__PURE__ */ a("div", {
|
|
279
|
+
id: x ? E : void 0,
|
|
280
|
+
class: "rv-configurator-panel__content",
|
|
281
|
+
hidden: S,
|
|
282
|
+
children: c
|
|
283
|
+
}) : c
|
|
284
|
+
]
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
export { h as S, b as _, P as a, _ as b, y as c, O as d, w as f, j as g, T as h, E as i, D as l, N as m, I as n, C as o, M as p, A as r, S as s, F as t, x as u, k as v, v as x, g as y };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { c as e, r as t } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { r as n, t as r } from "./hooks.module-CG3gN83z.js";
|
|
3
|
+
import { n as i } from "./component-metadata-BKd7U8OW.js";
|
|
4
|
+
//#region src/framework-mount.ts
|
|
5
|
+
function a(i, a) {
|
|
6
|
+
let o = /* @__PURE__ */ new Map(), s = !1, c = 0;
|
|
7
|
+
function l({ content: t, scope: i }) {
|
|
8
|
+
let l = r(null);
|
|
9
|
+
return n(() => {
|
|
10
|
+
let e = l.current;
|
|
11
|
+
if (!e || s) return;
|
|
12
|
+
let n = o.get(e)?.id ?? c++;
|
|
13
|
+
o.set(e, {
|
|
14
|
+
id: n,
|
|
15
|
+
element: e,
|
|
16
|
+
content: t,
|
|
17
|
+
scope: i
|
|
18
|
+
}), a([...o.values()]);
|
|
19
|
+
}, [t, i]), n(() => {
|
|
20
|
+
let e = l.current;
|
|
21
|
+
return () => {
|
|
22
|
+
e && o.delete(e), s || a([...o.values()]);
|
|
23
|
+
};
|
|
24
|
+
}, []), e("span", {
|
|
25
|
+
ref: l,
|
|
26
|
+
style: { display: "contents" },
|
|
27
|
+
"data-rv-framework-content": ""
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
let u = (t, n = {}) => e(l, {
|
|
31
|
+
content: t,
|
|
32
|
+
scope: n
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
render(n, r, a) {
|
|
36
|
+
if (s) throw Error("Cannot update a destroyed UI mount");
|
|
37
|
+
t(e(n, a ? a(r, u) : r), i);
|
|
38
|
+
},
|
|
39
|
+
destroy() {
|
|
40
|
+
s || (s = !0, t(null, i), o.clear());
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function o(e, t, n, r) {
|
|
45
|
+
let a = { ...t }, o = i(e);
|
|
46
|
+
for (let [e, t] of Object.entries(n)) {
|
|
47
|
+
if (t == null) continue;
|
|
48
|
+
let n = o[e];
|
|
49
|
+
n ? a[n.prop] = (...e) => (n.skipFactory && (e = e.slice(1)), r(t, Object.fromEntries(n.args.map((t, n) => [t, e[n]])))) : a[e === "default" ? "children" : e] = r(t);
|
|
50
|
+
}
|
|
51
|
+
return a;
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { o as n, a as t };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { l as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/hooks/dist/hooks.module.js
|
|
3
|
+
var t, n, r, i, a = 0, o = [], s = e, c = s.__b, l = s.__r, u = s.diffed, d = s.__c, f = s.unmount, p = s.__;
|
|
4
|
+
function m(e, t) {
|
|
5
|
+
s.__h && s.__h(n, e, a || t), a = 0;
|
|
6
|
+
var r = n.__H || (n.__H = {
|
|
7
|
+
__: [],
|
|
8
|
+
__h: []
|
|
9
|
+
});
|
|
10
|
+
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
11
|
+
}
|
|
12
|
+
function h(e) {
|
|
13
|
+
return a = 1, g(A, e);
|
|
14
|
+
}
|
|
15
|
+
function g(e, r, i) {
|
|
16
|
+
var a = m(t++, 2);
|
|
17
|
+
if (a.t = e, !a.__c && (a.__ = [i ? i(r) : A(void 0, r), function(e) {
|
|
18
|
+
var t = a.__N ? a.__N[0] : a.__[0], n = a.t(t, e);
|
|
19
|
+
t !== n && (a.__N = [n, a.__[1]], a.__c.setState({}));
|
|
20
|
+
}], a.__c = n, !n.__f)) {
|
|
21
|
+
var o = function(e, t, n) {
|
|
22
|
+
if (!a.__c.__H) return !0;
|
|
23
|
+
var r = a.__c.__H.__.filter(function(e) {
|
|
24
|
+
return e.__c;
|
|
25
|
+
});
|
|
26
|
+
if (r.every(function(e) {
|
|
27
|
+
return !e.__N;
|
|
28
|
+
})) return !s || s.call(this, e, t, n);
|
|
29
|
+
var i = a.__c.props !== e;
|
|
30
|
+
return r.some(function(e) {
|
|
31
|
+
if (e.__N) {
|
|
32
|
+
var t = e.__[0];
|
|
33
|
+
e.__ = e.__N, e.__N = void 0, t !== e.__[0] && (i = !0);
|
|
34
|
+
}
|
|
35
|
+
}), s && s.call(this, e, t, n) || i;
|
|
36
|
+
};
|
|
37
|
+
n.__f = !0;
|
|
38
|
+
var s = n.shouldComponentUpdate, c = n.componentWillUpdate;
|
|
39
|
+
n.componentWillUpdate = function(e, t, n) {
|
|
40
|
+
if (this.__e) {
|
|
41
|
+
var r = s;
|
|
42
|
+
s = void 0, o(e, t, n), s = r;
|
|
43
|
+
}
|
|
44
|
+
c && c.call(this, e, t, n);
|
|
45
|
+
}, n.shouldComponentUpdate = o;
|
|
46
|
+
}
|
|
47
|
+
return a.__N || a.__;
|
|
48
|
+
}
|
|
49
|
+
function _(e, r) {
|
|
50
|
+
var i = m(t++, 3);
|
|
51
|
+
!s.__s && k(i.__H, r) && (i.__ = e, i.u = r, n.__H.__h.push(i));
|
|
52
|
+
}
|
|
53
|
+
function v(e, r) {
|
|
54
|
+
var i = m(t++, 4);
|
|
55
|
+
!s.__s && k(i.__H, r) && (i.__ = e, i.u = r, n.__h.push(i));
|
|
56
|
+
}
|
|
57
|
+
function y(e) {
|
|
58
|
+
return a = 5, b(function() {
|
|
59
|
+
return { current: e };
|
|
60
|
+
}, []);
|
|
61
|
+
}
|
|
62
|
+
function b(e, n) {
|
|
63
|
+
var r = m(t++, 7);
|
|
64
|
+
return k(r.__H, n) && (r.__ = e(), r.__H = n, r.__h = e), r.__;
|
|
65
|
+
}
|
|
66
|
+
function x(e, t) {
|
|
67
|
+
return a = 8, b(function() {
|
|
68
|
+
return e;
|
|
69
|
+
}, t);
|
|
70
|
+
}
|
|
71
|
+
function S(e) {
|
|
72
|
+
var r = n.context[e.__c], i = m(t++, 9);
|
|
73
|
+
return i.c = e, r ? (i.__ ?? (i.__ = !0, r.sub(n)), r.props.value) : e.__;
|
|
74
|
+
}
|
|
75
|
+
function C() {
|
|
76
|
+
var e = m(t++, 11);
|
|
77
|
+
if (!e.__) {
|
|
78
|
+
for (var r = n.__v; r !== null && !r.__m && r.__ !== null;) r = r.__;
|
|
79
|
+
var i = r.__m || (r.__m = [0, 0]);
|
|
80
|
+
e.__ = "P" + i[0] + "-" + i[1]++;
|
|
81
|
+
}
|
|
82
|
+
return e.__;
|
|
83
|
+
}
|
|
84
|
+
function w() {
|
|
85
|
+
for (var e; e = o.shift();) {
|
|
86
|
+
var t = e.__H;
|
|
87
|
+
if (e.__P && t) try {
|
|
88
|
+
t.__h.some(D), t.__h.some(O), t.__h = [];
|
|
89
|
+
} catch (n) {
|
|
90
|
+
t.__h = [], s.__e(n, e.__v);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
s.__b = function(e) {
|
|
95
|
+
n = null, c && c(e);
|
|
96
|
+
}, s.__ = function(e, t) {
|
|
97
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), p && p(e, t);
|
|
98
|
+
}, s.__r = function(e) {
|
|
99
|
+
l && l(e), t = 0;
|
|
100
|
+
var i = (n = e.__c).__H;
|
|
101
|
+
i && (r === n ? (i.__h = [], n.__h = [], i.__.some(function(e) {
|
|
102
|
+
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
|
|
103
|
+
})) : (i.__h.some(D), i.__h.some(O), i.__h = [], t = 0)), r = n;
|
|
104
|
+
}, s.diffed = function(e) {
|
|
105
|
+
u && u(e);
|
|
106
|
+
var t = e.__c;
|
|
107
|
+
t && t.__H && (t.__H.__h.length && (o.push(t) !== 1 && i === s.requestAnimationFrame || ((i = s.requestAnimationFrame) || E)(w)), t.__H.__.some(function(e) {
|
|
108
|
+
e.u && (e.__H = e.u), e.u = void 0;
|
|
109
|
+
})), r = n = null;
|
|
110
|
+
}, s.__c = function(e, t) {
|
|
111
|
+
t.some(function(e) {
|
|
112
|
+
try {
|
|
113
|
+
e.__h.some(D), e.__h = e.__h.filter(function(e) {
|
|
114
|
+
return !e.__ || O(e);
|
|
115
|
+
});
|
|
116
|
+
} catch (n) {
|
|
117
|
+
t.some(function(e) {
|
|
118
|
+
e.__h &&= [];
|
|
119
|
+
}), t = [], s.__e(n, e.__v);
|
|
120
|
+
}
|
|
121
|
+
}), d && d(e, t);
|
|
122
|
+
}, s.unmount = function(e) {
|
|
123
|
+
f && f(e);
|
|
124
|
+
var t, n = e.__c;
|
|
125
|
+
n && n.__H && (n.__H.__.some(function(e) {
|
|
126
|
+
try {
|
|
127
|
+
D(e);
|
|
128
|
+
} catch (e) {
|
|
129
|
+
t = e;
|
|
130
|
+
}
|
|
131
|
+
}), n.__H = void 0, t && s.__e(t, n.__v));
|
|
132
|
+
};
|
|
133
|
+
var T = typeof requestAnimationFrame == "function";
|
|
134
|
+
function E(e) {
|
|
135
|
+
var t, n = function() {
|
|
136
|
+
clearTimeout(r), T && cancelAnimationFrame(t), setTimeout(e);
|
|
137
|
+
}, r = setTimeout(n, 35);
|
|
138
|
+
T && (t = requestAnimationFrame(n));
|
|
139
|
+
}
|
|
140
|
+
function D(e) {
|
|
141
|
+
var t = n, r = e.__c;
|
|
142
|
+
typeof r == "function" && (e.__c = void 0, r()), n = t;
|
|
143
|
+
}
|
|
144
|
+
function O(e) {
|
|
145
|
+
var t = n;
|
|
146
|
+
e.__c = e.__(), n = t;
|
|
147
|
+
}
|
|
148
|
+
function k(e, t) {
|
|
149
|
+
return !e || e.length !== t.length || t.some(function(t, n) {
|
|
150
|
+
return t !== e[n];
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function A(e, t) {
|
|
154
|
+
return typeof t == "function" ? t(e) : t;
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { C as a, _ as c, h as i, b as n, x as o, v as r, S as s, y as t };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { t } from "./title-tooltip-Cw6LOZhb.js";
|
|
3
|
+
import { n, t as r } from "./arrow-up-Cw8hW9vp.js";
|
|
4
|
+
import { t as i } from "./rotate-left-BF6G883o.js";
|
|
5
|
+
import { t as a } from "./plus-CbGRkIGl.js";
|
|
6
|
+
import { t as o } from "./minus-BOAR3A1C.js";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/icon-toolbar.tsx
|
|
9
|
+
var s = {
|
|
10
|
+
plus: a,
|
|
11
|
+
minus: o,
|
|
12
|
+
arrowLeft: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>",
|
|
13
|
+
arrowRight: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z\"/></svg>",
|
|
14
|
+
arrowUp: r,
|
|
15
|
+
arrowDown: n,
|
|
16
|
+
reset: i
|
|
17
|
+
}, c = "\n .rv-svg-toolbar-button { cursor: pointer; }\n .rv-svg-toolbar-button[aria-pressed=\"true\"] > rect { fill: currentColor; fill-opacity: .14; }\n .rv-svg-toolbar-button[aria-disabled=\"true\"] { opacity: .4; cursor: default; }\n .rv-svg-toolbar-button:not([aria-disabled=\"true\"]):hover > rect { fill: currentColor; fill-opacity: .1; }\n .rv-svg-toolbar-button:focus-visible { outline: none; }\n .rv-svg-toolbar-button:focus-visible > rect { stroke: currentColor; stroke-width: 2; }\n";
|
|
18
|
+
function l(n) {
|
|
19
|
+
let r = t(n.title ?? n.label, n.onEscape);
|
|
20
|
+
return /* @__PURE__ */ e(u, {
|
|
21
|
+
...n,
|
|
22
|
+
buttonRef: r
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function u(t) {
|
|
26
|
+
return /* @__PURE__ */ e("g", {
|
|
27
|
+
ref: t.buttonRef,
|
|
28
|
+
...t.attributes,
|
|
29
|
+
class: "rv-svg-toolbar-button",
|
|
30
|
+
role: "button",
|
|
31
|
+
tabindex: t.enabled ? 0 : -1,
|
|
32
|
+
"aria-label": t.label,
|
|
33
|
+
"aria-disabled": !t.enabled,
|
|
34
|
+
"aria-pressed": t.pressed,
|
|
35
|
+
"data-rv-svg-toolbar-button": t.action,
|
|
36
|
+
onClick: t.onActivate ? () => {
|
|
37
|
+
t.enabled && t.onActivate?.(t.action);
|
|
38
|
+
} : void 0,
|
|
39
|
+
onKeyDown: t.onActivate ? (e) => {
|
|
40
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), t.enabled && t.onActivate?.(t.action));
|
|
41
|
+
} : void 0,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ e("rect", {
|
|
44
|
+
ref: (e) => {
|
|
45
|
+
e && t.onRectangle?.(e);
|
|
46
|
+
},
|
|
47
|
+
x: t.x,
|
|
48
|
+
y: t.y,
|
|
49
|
+
width: 28,
|
|
50
|
+
height: 28,
|
|
51
|
+
rx: 6,
|
|
52
|
+
fill: "transparent",
|
|
53
|
+
stroke: "transparent"
|
|
54
|
+
}),
|
|
55
|
+
t.icon && /* @__PURE__ */ e("svg", {
|
|
56
|
+
"data-rv-toolbar-icon": "",
|
|
57
|
+
x: t.x + (t.suffixIcon ? 5 : 8),
|
|
58
|
+
y: t.y + 8,
|
|
59
|
+
width: 12,
|
|
60
|
+
height: 12,
|
|
61
|
+
visibility: t.showText ? "hidden" : void 0,
|
|
62
|
+
"aria-hidden": "true",
|
|
63
|
+
focusable: "false",
|
|
64
|
+
fill: "currentColor",
|
|
65
|
+
style: { color: t.foreground ?? (t.pressed ? "var(--rv-ui-accent-text, Highlight)" : "var(--rv-ui-text, CanvasText)") },
|
|
66
|
+
dangerouslySetInnerHTML: { __html: t.icon }
|
|
67
|
+
}),
|
|
68
|
+
t.suffixIcon && /* @__PURE__ */ e("svg", {
|
|
69
|
+
x: t.x + 18,
|
|
70
|
+
y: t.y + 12,
|
|
71
|
+
width: 6,
|
|
72
|
+
height: 8,
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
focusable: "false",
|
|
75
|
+
fill: "currentColor",
|
|
76
|
+
style: { color: t.foreground ?? (t.pressed ? "var(--rv-ui-accent-text, Highlight)" : "var(--rv-ui-text, CanvasText)") },
|
|
77
|
+
dangerouslySetInnerHTML: { __html: t.suffixIcon }
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ e("text", {
|
|
80
|
+
visibility: t.icon && !t.showText ? "hidden" : void 0,
|
|
81
|
+
ref: (e) => {
|
|
82
|
+
e && t.onText?.(e);
|
|
83
|
+
},
|
|
84
|
+
x: t.x + 14,
|
|
85
|
+
y: t.y + 19,
|
|
86
|
+
fill: t.foreground ?? "var(--rv-ui-text, currentColor)",
|
|
87
|
+
"font-size": 16,
|
|
88
|
+
"text-anchor": "middle",
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
children: t.text
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function d({ actions: t, label: n = "Actions", onAction: r, onEscape: i }) {
|
|
96
|
+
let a = Math.max(10, t.length * 33 + 5);
|
|
97
|
+
return /* @__PURE__ */ e("svg", {
|
|
98
|
+
class: "rv-icon-toolbar",
|
|
99
|
+
role: "group",
|
|
100
|
+
"aria-label": n,
|
|
101
|
+
width: a,
|
|
102
|
+
height: 38,
|
|
103
|
+
viewBox: `0 0 ${a} 38`,
|
|
104
|
+
style: {
|
|
105
|
+
color: "var(--rv-ui-accent, Highlight)",
|
|
106
|
+
maxWidth: "100%"
|
|
107
|
+
},
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ e("style", { children: c }),
|
|
110
|
+
/* @__PURE__ */ e("rect", {
|
|
111
|
+
width: a,
|
|
112
|
+
height: 38,
|
|
113
|
+
rx: 12,
|
|
114
|
+
fill: "var(--rv-ui-surface-sunken, transparent)"
|
|
115
|
+
}),
|
|
116
|
+
t.map((t, n) => /* @__PURE__ */ e(l, {
|
|
117
|
+
action: t.id,
|
|
118
|
+
label: t.label,
|
|
119
|
+
title: t.title,
|
|
120
|
+
text: t.text,
|
|
121
|
+
icon: t.icon,
|
|
122
|
+
suffixIcon: t.suffixIcon,
|
|
123
|
+
pressed: t.pressed,
|
|
124
|
+
enabled: !t.disabled,
|
|
125
|
+
x: 5 + n * 33,
|
|
126
|
+
y: 5,
|
|
127
|
+
onActivate: r,
|
|
128
|
+
onEscape: i
|
|
129
|
+
}, t.id))
|
|
130
|
+
]
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
export { u as a, l as i, d as n, c as r, s as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { l as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
|
3
|
+
var t = 0;
|
|
4
|
+
Array.isArray;
|
|
5
|
+
function n(n, r, i, a, o, s) {
|
|
6
|
+
r ||= {};
|
|
7
|
+
var c, l, u = r;
|
|
8
|
+
if ("ref" in u) for (l in u = {}, r) l == "ref" ? c = r[l] : u[l] = r[l];
|
|
9
|
+
var d = {
|
|
10
|
+
type: n,
|
|
11
|
+
props: u,
|
|
12
|
+
key: i,
|
|
13
|
+
ref: c,
|
|
14
|
+
__k: null,
|
|
15
|
+
__: null,
|
|
16
|
+
__b: 0,
|
|
17
|
+
__e: null,
|
|
18
|
+
__c: null,
|
|
19
|
+
constructor: void 0,
|
|
20
|
+
__v: --t,
|
|
21
|
+
__i: -1,
|
|
22
|
+
__u: 0,
|
|
23
|
+
__source: o,
|
|
24
|
+
__self: s
|
|
25
|
+
};
|
|
26
|
+
if (typeof n == "function" && (c = n.defaultProps)) for (l in c) u[l] === void 0 && (u[l] = c[l]);
|
|
27
|
+
return e.vnode && e.vnode(d), d;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { n as t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/magnifying-glass.svg?raw
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/minus.svg?raw
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as t };
|