@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
package/editor-actions.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { t as n } from "./_chunks/controls-DD1qvPfE.js";
|
|
3
4
|
//#region src/editor-actions.tsx
|
|
4
|
-
var
|
|
5
|
+
var r = {
|
|
5
6
|
apply: "Apply",
|
|
6
7
|
cancel: "Cancel",
|
|
7
8
|
clear: "Clear"
|
|
8
9
|
};
|
|
9
|
-
function
|
|
10
|
-
if (!
|
|
11
|
-
let
|
|
12
|
-
apply:
|
|
13
|
-
cancel:
|
|
14
|
-
clear:
|
|
10
|
+
function i({ apply: i, cancel: a, clear: o, disabled: s, text: c = r, showConfirm: l = !0 }) {
|
|
11
|
+
if (!l && !o) return null;
|
|
12
|
+
let u = {
|
|
13
|
+
apply: c.apply ?? r.apply,
|
|
14
|
+
cancel: c.cancel ?? r.cancel,
|
|
15
|
+
clear: c.clear ?? r.clear
|
|
15
16
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t("div", {
|
|
17
18
|
class: "rv-editor-actions",
|
|
18
|
-
children: [
|
|
19
|
+
children: [o && /* @__PURE__ */ t(n, {
|
|
19
20
|
variant: "ghost",
|
|
20
21
|
className: "rv-editor-actions__clear",
|
|
21
|
-
onClick: s,
|
|
22
|
-
children: d.clear
|
|
23
|
-
}), u && /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
|
|
24
22
|
onClick: o,
|
|
25
|
-
children:
|
|
26
|
-
}), /* @__PURE__ */
|
|
27
|
-
variant: "primary",
|
|
28
|
-
disabled: c,
|
|
23
|
+
children: u.clear
|
|
24
|
+
}), l && /* @__PURE__ */ t(e, { children: [/* @__PURE__ */ t(n, {
|
|
29
25
|
onClick: a,
|
|
30
|
-
children:
|
|
26
|
+
children: u.cancel
|
|
27
|
+
}), /* @__PURE__ */ t(n, {
|
|
28
|
+
variant: "primary",
|
|
29
|
+
disabled: s,
|
|
30
|
+
onClick: i,
|
|
31
|
+
children: u.apply
|
|
31
32
|
})] })]
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
//#endregion
|
|
35
|
-
export {
|
|
36
|
+
export { i as EditorActions, r as defaultEditorActionText };
|
package/editor-layout/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h, ComponentChildren, JSX, Ref } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX, Ref } from '../_vendor/preact/src/index';
|
|
2
2
|
type ShellProps = {
|
|
3
3
|
readonly children: ComponentChildren;
|
|
4
4
|
readonly className?: string;
|
|
5
5
|
};
|
|
6
6
|
/** Shared editor geometry. Consumers supply column widths and feature policy. */
|
|
7
7
|
export declare function EditorSplitLayout({ children, className }: ShellProps): h.JSX.Element;
|
|
8
|
-
export declare function EditorPane({ children, className, scrollable }: ShellProps & {
|
|
8
|
+
export declare function EditorPane({ children, className, scrollable, }: ShellProps & {
|
|
9
9
|
readonly scrollable?: boolean;
|
|
10
10
|
}): h.JSX.Element;
|
|
11
11
|
export interface EditorListProps extends ShellProps {
|
|
@@ -18,7 +18,7 @@ export interface EditorListProps extends ShellProps {
|
|
|
18
18
|
readonly spacing?: 'default' | 'comfortable';
|
|
19
19
|
}
|
|
20
20
|
/** Single-selection listbox with one keyboard/focus owner across editors. */
|
|
21
|
-
export declare function EditorList({ children, className, label, onSelect, listRef, variant, spacing }: EditorListProps): h.JSX.Element;
|
|
21
|
+
export declare function EditorList({ children, className, label, onSelect, listRef, variant, spacing, }: EditorListProps): h.JSX.Element;
|
|
22
22
|
export type EditorListItemProps = Omit<JSX.IntrinsicElements['button'], 'value' | 'className'> & {
|
|
23
23
|
readonly value: string;
|
|
24
24
|
readonly selected: boolean;
|
|
@@ -41,8 +41,8 @@ export interface EditorListItemContentProps {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
/** Reusable row presentation; the enclosing list item owns selection and focus. */
|
|
44
|
-
export declare function EditorListItemContent({ icon, label, description, classNames }: EditorListItemContentProps): h.JSX.Element;
|
|
45
|
-
export declare function EditorListGroup({ label, children, className, labelClassName }: ShellProps & {
|
|
44
|
+
export declare function EditorListItemContent({ icon, label, description, classNames, }: EditorListItemContentProps): h.JSX.Element;
|
|
45
|
+
export declare function EditorListGroup({ label, children, className, labelClassName, }: ShellProps & {
|
|
46
46
|
readonly label: string;
|
|
47
47
|
readonly labelClassName?: string;
|
|
48
48
|
}): h.JSX.Element;
|
package/editor-layout/index.js
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { t as n } from "../_chunks/selection-list-tooltips-BtWjpP6M.js";
|
|
2
4
|
//#region src/editor-layout/index.tsx
|
|
3
|
-
function
|
|
4
|
-
return /* @__PURE__ */
|
|
5
|
+
function r({ children: e, className: n = "" }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
5
7
|
class: `rv-editor-split ${n}`,
|
|
6
|
-
children:
|
|
8
|
+
children: e
|
|
7
9
|
});
|
|
8
10
|
}
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
function i({ children: e, className: n = "", scrollable: r = !1 }) {
|
|
12
|
+
return /* @__PURE__ */ t("section", {
|
|
11
13
|
class: `rv-editor-pane${r ? " rv-editor-pane--scrollable" : ""} ${n}`,
|
|
12
|
-
children:
|
|
14
|
+
children: e
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
function a({ children: r, className: i = "", label: a, onSelect: o, listRef: s, variant: c = "default", spacing: l = "default" }) {
|
|
18
|
+
let u = n(), d = e((e) => {
|
|
19
|
+
u(e), typeof s == "function" ? s(e) : s && (s.current = e);
|
|
20
|
+
}, [u, s]);
|
|
21
|
+
return /* @__PURE__ */ t("div", {
|
|
22
|
+
ref: d,
|
|
23
|
+
class: `rv-editor-list${c === "plain" ? " rv-editor-list--plain" : ""}${l === "comfortable" ? " rv-editor-list--comfortable" : ""} ${i}`,
|
|
19
24
|
role: "listbox",
|
|
20
|
-
"aria-label":
|
|
25
|
+
"aria-label": a,
|
|
21
26
|
onKeyDown: (e) => {
|
|
22
27
|
if (![
|
|
23
28
|
"ArrowDown",
|
|
@@ -28,57 +33,57 @@ function i({ children: t, className: n = "", label: r, onSelect: i, listRef: a,
|
|
|
28
33
|
let t = Array.from(e.currentTarget.querySelectorAll("[data-editor-value]:not(:disabled)"));
|
|
29
34
|
if (!t.length) return;
|
|
30
35
|
let n = Math.max(0, t.indexOf(e.target)), r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length;
|
|
31
|
-
e.preventDefault(), t[r].focus(),
|
|
36
|
+
e.preventDefault(), t[r].focus(), o(t[r].dataset.editorValue);
|
|
32
37
|
},
|
|
33
|
-
children:
|
|
38
|
+
children: r
|
|
34
39
|
});
|
|
35
40
|
}
|
|
36
|
-
function
|
|
37
|
-
return /* @__PURE__ */
|
|
41
|
+
function o({ value: e, selected: n, icon: r, label: i, description: a, contentClassNames: o, children: c, className: l = "", ...u }) {
|
|
42
|
+
return /* @__PURE__ */ t("button", {
|
|
38
43
|
...u,
|
|
39
44
|
type: "button",
|
|
40
45
|
role: "option",
|
|
41
|
-
"data-editor-value":
|
|
46
|
+
"data-editor-value": e,
|
|
42
47
|
"aria-selected": n,
|
|
43
48
|
tabIndex: u.tabIndex ?? (n ? 0 : -1),
|
|
44
49
|
class: `rv-editor-list__item${n ? " rv-editor-list__item--selected" : ""} ${l}`,
|
|
45
|
-
children: i === void 0 ? c : /* @__PURE__ */
|
|
50
|
+
children: i === void 0 ? c : /* @__PURE__ */ t(s, {
|
|
46
51
|
icon: r,
|
|
47
52
|
label: i,
|
|
48
53
|
description: a,
|
|
49
|
-
classNames:
|
|
54
|
+
classNames: o
|
|
50
55
|
})
|
|
51
56
|
});
|
|
52
57
|
}
|
|
53
|
-
function
|
|
58
|
+
function s({ icon: e, label: n, description: r, classNames: i = {} }) {
|
|
54
59
|
return /* @__PURE__ */ t("span", {
|
|
55
|
-
class: `rv-editor-list__content${
|
|
56
|
-
children: [
|
|
57
|
-
class: `rv-editor-list__icon ${
|
|
60
|
+
class: `rv-editor-list__content${e ? "" : " rv-editor-list__content--text"}`,
|
|
61
|
+
children: [e && /* @__PURE__ */ t("span", {
|
|
62
|
+
class: `rv-editor-list__icon ${i.icon ?? ""}`,
|
|
58
63
|
"aria-hidden": "true",
|
|
59
|
-
children:
|
|
64
|
+
children: e
|
|
60
65
|
}), /* @__PURE__ */ t("span", {
|
|
61
|
-
class: `rv-editor-list__copy ${
|
|
62
|
-
children: [/* @__PURE__ */
|
|
63
|
-
class: `rv-editor-list__label ${
|
|
66
|
+
class: `rv-editor-list__copy ${i.copy ?? ""}`,
|
|
67
|
+
children: [/* @__PURE__ */ t("span", {
|
|
68
|
+
class: `rv-editor-list__label ${i.label ?? ""}`,
|
|
69
|
+
children: n
|
|
70
|
+
}), r !== void 0 && /* @__PURE__ */ t("span", {
|
|
71
|
+
class: `rv-editor-list__description ${i.description ?? ""}`,
|
|
64
72
|
children: r
|
|
65
|
-
}), i !== void 0 && /* @__PURE__ */ e("span", {
|
|
66
|
-
class: `rv-editor-list__description ${a.description ?? ""}`,
|
|
67
|
-
children: i
|
|
68
73
|
})]
|
|
69
74
|
})]
|
|
70
75
|
});
|
|
71
76
|
}
|
|
72
|
-
function
|
|
77
|
+
function c({ label: e, children: n, className: r = "", labelClassName: i = "" }) {
|
|
73
78
|
return /* @__PURE__ */ t("div", {
|
|
74
|
-
class: `rv-editor-list__group ${
|
|
79
|
+
class: `rv-editor-list__group ${r}`,
|
|
75
80
|
role: "group",
|
|
76
|
-
"aria-label":
|
|
77
|
-
children: [/* @__PURE__ */
|
|
78
|
-
class: `rv-editor-list__group-label ${
|
|
79
|
-
children:
|
|
80
|
-
}),
|
|
81
|
+
"aria-label": e,
|
|
82
|
+
children: [/* @__PURE__ */ t("div", {
|
|
83
|
+
class: `rv-editor-list__group-label ${i}`,
|
|
84
|
+
children: e
|
|
85
|
+
}), n]
|
|
81
86
|
});
|
|
82
87
|
}
|
|
83
88
|
//#endregion
|
|
84
|
-
export {
|
|
89
|
+
export { a as EditorList, c as EditorListGroup, o as EditorListItem, s as EditorListItemContent, i as EditorPane, r as EditorSplitLayout };
|
package/editor-layout/style.scss
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
.rv-editor-split {
|
|
4
4
|
display: grid;
|
|
5
|
-
grid-template-columns: var(
|
|
5
|
+
grid-template-columns: var(
|
|
6
|
+
--rv-editor-columns,
|
|
7
|
+
minmax(0, 1fr) minmax(0, 1fr)
|
|
8
|
+
);
|
|
6
9
|
gap: var(--rv-editor-gap, 12px);
|
|
7
10
|
min-width: 0;
|
|
8
11
|
min-height: 0;
|
|
@@ -11,7 +14,8 @@
|
|
|
11
14
|
min-width: 0;
|
|
12
15
|
min-height: 0;
|
|
13
16
|
overflow: hidden;
|
|
14
|
-
border: 1px solid
|
|
17
|
+
border: 1px solid
|
|
18
|
+
var(--rv-editor-divider, var(--rv-dialog-border, var(--rv-ui-border)));
|
|
15
19
|
border-radius: var(--rv-editor-radius, 10px);
|
|
16
20
|
background: var(--rv-dialog-bg, var(--rv-ui-surface));
|
|
17
21
|
}
|
|
@@ -61,24 +65,84 @@
|
|
|
61
65
|
}
|
|
62
66
|
.rv-editor-list__item {
|
|
63
67
|
transition:
|
|
64
|
-
background-color var(--rv-ui-motion-fast, 120ms)
|
|
68
|
+
background-color var(--rv-ui-motion-fast, 120ms)
|
|
69
|
+
var(--rv-ui-motion-ease, ease-out),
|
|
65
70
|
color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out),
|
|
66
71
|
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
|
|
67
72
|
}
|
|
68
|
-
.rv-editor-list__item:hover {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
.rv-editor-list__item:hover {
|
|
74
|
+
background: var(--rv-ui-surface-hover);
|
|
75
|
+
}
|
|
76
|
+
.rv-editor-list__item.rv-editor-list__item--selected {
|
|
77
|
+
background: var(--rv-ui-selected-bg);
|
|
78
|
+
color: var(--rv-ui-selected-fg);
|
|
79
|
+
}
|
|
80
|
+
.rv-editor-list__item:focus-visible {
|
|
81
|
+
outline: 2px solid var(--rv-ui-accent);
|
|
82
|
+
outline-offset: -2px;
|
|
83
|
+
}
|
|
84
|
+
@media (forced-colors: active) {
|
|
85
|
+
.rv-editor-list__item--selected {
|
|
86
|
+
outline: 2px solid Highlight;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
72
89
|
|
|
73
|
-
.rv-editor-list__item:disabled {
|
|
90
|
+
.rv-editor-list__item:disabled {
|
|
91
|
+
opacity: 0.55;
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
}
|
|
74
94
|
|
|
75
|
-
.rv-editor-list__content {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
95
|
+
.rv-editor-list__content {
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 20px minmax(0, 1fr);
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 9px;
|
|
100
|
+
font-size: 12px;
|
|
101
|
+
line-height: 1.4;
|
|
102
|
+
grid-column: 1 / -1;
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
.rv-editor-list__content--text {
|
|
106
|
+
grid-template-columns: minmax(0, 1fr);
|
|
107
|
+
}
|
|
108
|
+
.rv-editor-list__icon {
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
width: 16px;
|
|
113
|
+
height: 16px;
|
|
114
|
+
}
|
|
115
|
+
.rv-editor-list__icon svg {
|
|
116
|
+
display: block;
|
|
117
|
+
width: 13px;
|
|
118
|
+
height: 13px;
|
|
119
|
+
fill: currentColor;
|
|
120
|
+
}
|
|
121
|
+
.rv-editor-list__copy {
|
|
122
|
+
display: grid;
|
|
123
|
+
min-width: 0;
|
|
124
|
+
gap: 0;
|
|
125
|
+
}
|
|
126
|
+
.rv-editor-list__label,
|
|
127
|
+
.rv-editor-list__description {
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
}
|
|
132
|
+
.rv-editor-list__label {
|
|
133
|
+
font-weight: var(--rv-editor-list-font-weight, 500);
|
|
134
|
+
}
|
|
135
|
+
.rv-editor-list__description {
|
|
136
|
+
font-size: 11px;
|
|
137
|
+
color: var(--rv-ui-text-muted);
|
|
138
|
+
}
|
|
139
|
+
.rv-editor-list__group {
|
|
140
|
+
display: grid;
|
|
141
|
+
gap: 2px;
|
|
142
|
+
}
|
|
143
|
+
.rv-editor-list__group-label {
|
|
144
|
+
font-weight: var(--rv-editor-list-font-weight, inherit);
|
|
145
|
+
padding: 8px 8px 4px;
|
|
146
|
+
font-size: 11px;
|
|
147
|
+
color: var(--rv-ui-text-muted);
|
|
148
|
+
}
|
package/field-configurator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RemoveButton } from './buttons/remove-button';
|
|
2
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
2
|
+
import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
3
3
|
export declare function FieldIcon({ svg, className, }: {
|
|
4
4
|
svg: string;
|
|
5
5
|
className?: string;
|
|
@@ -8,8 +8,9 @@ export declare function FieldSummary({ children, className, ...attributes }: Omi
|
|
|
8
8
|
children: ComponentChildren;
|
|
9
9
|
className?: string;
|
|
10
10
|
}): h.JSX.Element;
|
|
11
|
-
export declare function FieldLibrary({ title, count, children, className, }: {
|
|
11
|
+
export declare function FieldLibrary({ title, id, count, children, className, }: {
|
|
12
12
|
title: string;
|
|
13
|
+
id?: string;
|
|
13
14
|
count?: ComponentChildren;
|
|
14
15
|
children: ComponentChildren;
|
|
15
16
|
className?: string;
|
|
@@ -74,16 +75,53 @@ export declare function FieldDropIndicator({ position, index, className, }: {
|
|
|
74
75
|
className?: string;
|
|
75
76
|
}): h.JSX.Element;
|
|
76
77
|
export interface CollapsibleSectionProps {
|
|
78
|
+
/** Heading displayed in the keyboard-accessible expand/collapse trigger. */
|
|
77
79
|
title: ComponentChildren;
|
|
80
|
+
/** Supporting text displayed above the expanded content. */
|
|
78
81
|
description?: ComponentChildren;
|
|
82
|
+
/** Expand initially. Later toggles are owned by the native disclosure. */
|
|
79
83
|
defaultOpen?: boolean;
|
|
84
|
+
/** Section content; stays mounted when collapsed to preserve drafts. */
|
|
80
85
|
children: ComponentChildren;
|
|
86
|
+
/** Additional CSS classes on the outer disclosure. */
|
|
81
87
|
className?: string;
|
|
88
|
+
/** Additional CSS classes on the summary trigger. */
|
|
82
89
|
summaryClassName?: string;
|
|
90
|
+
/** Additional CSS classes on the content container. */
|
|
83
91
|
contentClassName?: string;
|
|
92
|
+
/** Additional CSS classes on the supporting description. */
|
|
84
93
|
descriptionClassName?: string;
|
|
85
94
|
/** Host policies can wrap the native details without owning its presentation. */
|
|
86
95
|
renderRoot?: (props: JSX.IntrinsicElements['details']) => ComponentChildren;
|
|
87
96
|
}
|
|
88
97
|
/** Native disclosure; collapsed content stays mounted to preserve draft edits. */
|
|
89
98
|
export declare function CollapsibleSection({ title, description, defaultOpen, children, className, summaryClassName, contentClassName, descriptionClassName, renderRoot, }: CollapsibleSectionProps): ComponentChildren;
|
|
99
|
+
export interface ConfiguratorCompactItem {
|
|
100
|
+
id: string;
|
|
101
|
+
label: string;
|
|
102
|
+
icon?: string;
|
|
103
|
+
count?: number;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
/** Optional section to focus after opening. */
|
|
106
|
+
targetId?: string;
|
|
107
|
+
/** Activate the corresponding product tab when reopening. */
|
|
108
|
+
onOpen?: () => void;
|
|
109
|
+
}
|
|
110
|
+
export interface ConfiguratorMiniModeConfig {
|
|
111
|
+
/** Starts the configurator as a narrow rail. Users can expand and collapse it. */
|
|
112
|
+
miniMode?: boolean;
|
|
113
|
+
/** Enables width resizing. Shrinking below 200px collapses to the rail. */
|
|
114
|
+
resizable?: boolean;
|
|
115
|
+
}
|
|
116
|
+
/** Shared panel shell. Collapsing preserves mounted controls and their drafts. */
|
|
117
|
+
export declare function ConfiguratorPanel({ panelRef, standalone, children, compactItems, compact: compactProp, onExpand, miniMode, resizable, resizeParent, ...props }: Omit<JSX.HTMLAttributes<HTMLDivElement>, 'ref'> & ConfiguratorMiniModeConfig & {
|
|
118
|
+
panelRef?: import('./_vendor/preact/src/index').Ref<HTMLDivElement>;
|
|
119
|
+
standalone?: boolean;
|
|
120
|
+
compactItems?: readonly ConfiguratorCompactItem[];
|
|
121
|
+
/** Presentation state is owned by the host; the panel adds no toggle button. */
|
|
122
|
+
compact?: boolean;
|
|
123
|
+
onExpand?: () => void;
|
|
124
|
+
/** Apply the resized width to the product-owned parent as well. */
|
|
125
|
+
resizeParent?: boolean;
|
|
126
|
+
}): h.JSX.Element;
|
|
127
|
+
export { createFieldExpansion, fieldExpansionIds, recordFieldExpansion, type FieldExpansionState, } from './field-expansion';
|
package/field-configurator.js
CHANGED
|
@@ -1,170 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { DisclosureSummary as i } from "./form-controls/presentation.js";
|
|
6
|
-
import { fieldDropIndex as a, reorderFields as o } from "./field-reorder.js";
|
|
7
|
-
import { useFieldDropTarget as s, useFieldReorder as c } from "./field-reorder.hook.js";
|
|
8
|
-
import { h as l } from "preact";
|
|
9
|
-
import { useRef as u } from "preact/hooks";
|
|
10
|
-
import { jsx as d, jsxs as f } from "preact/jsx-runtime";
|
|
11
|
-
//#region src/field-configurator.tsx
|
|
12
|
-
function p({ svg: t, className: n = "" }) {
|
|
13
|
-
return /* @__PURE__ */ d(e, {
|
|
14
|
-
svg: t,
|
|
15
|
-
className: `rv-configurator-icon ${n}`
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function m({ children: e, className: n = "", ...r }) {
|
|
19
|
-
return /* @__PURE__ */ d(i, {
|
|
20
|
-
...r,
|
|
21
|
-
className: `rv-configurator-summary ${n}`,
|
|
22
|
-
iconPosition: "after",
|
|
23
|
-
icon: /* @__PURE__ */ d(p, { svg: t }),
|
|
24
|
-
children: e
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function h({ title: e, count: t, children: n, className: r = "" }) {
|
|
28
|
-
return /* @__PURE__ */ f("details", {
|
|
29
|
-
class: `rv-configurator-available-fields ${r}`,
|
|
30
|
-
open: !0,
|
|
31
|
-
children: [/* @__PURE__ */ f(m, { children: [e, t != null && /* @__PURE__ */ d("span", {
|
|
32
|
-
class: "rv-configurator-field-count",
|
|
33
|
-
children: t
|
|
34
|
-
})] }), /* @__PURE__ */ d("div", {
|
|
35
|
-
class: "rv-configurator-library-content",
|
|
36
|
-
children: n
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function g({ children: e, actions: t, className: n = "" }) {
|
|
41
|
-
return /* @__PURE__ */ f("div", {
|
|
42
|
-
class: `rv-configurator-zone-heading ${n}`,
|
|
43
|
-
children: [/* @__PURE__ */ d("span", {
|
|
44
|
-
class: "rv-configurator-zone-label",
|
|
45
|
-
children: e
|
|
46
|
-
}), t && /* @__PURE__ */ d("span", {
|
|
47
|
-
class: "rv-configurator-zone-actions",
|
|
48
|
-
children: t
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function _({ heading: e, actions: t, headingClassName: n, className: r = "", children: i, ...a }) {
|
|
53
|
-
return /* @__PURE__ */ f("section", {
|
|
54
|
-
...a,
|
|
55
|
-
className: `rv-configurator-zone ${r}`,
|
|
56
|
-
children: [/* @__PURE__ */ d(g, {
|
|
57
|
-
className: n,
|
|
58
|
-
actions: t,
|
|
59
|
-
children: e
|
|
60
|
-
}), i]
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function v({ empty: e, placeholder: t, className: n = "", children: r, ...i }) {
|
|
64
|
-
return /* @__PURE__ */ d("ul", {
|
|
65
|
-
...i,
|
|
66
|
-
className: `rv-configurator-field-list ${e ? "empty" : ""} ${n}`,
|
|
67
|
-
children: e ? /* @__PURE__ */ d("li", {
|
|
68
|
-
className: "rv-configurator-empty-zone empty",
|
|
69
|
-
children: t
|
|
70
|
-
}) : r
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function y({ className: e = "", children: t, indicator: n, dropPosition: r, ...i }) {
|
|
74
|
-
return /* @__PURE__ */ f("li", {
|
|
75
|
-
...i,
|
|
76
|
-
className: `rv-configurator-field rv-configurator-field-row ${e}`,
|
|
77
|
-
children: [
|
|
78
|
-
n ?? (r && /* @__PURE__ */ d(O, { position: r })),
|
|
79
|
-
/* @__PURE__ */ d("span", {
|
|
80
|
-
className: "rv-configurator-drag-handle",
|
|
81
|
-
"aria-hidden": "true"
|
|
82
|
-
}),
|
|
83
|
-
t
|
|
84
|
-
]
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function b({ icon: e, children: t, className: n = "" }) {
|
|
88
|
-
return /* @__PURE__ */ f("span", {
|
|
89
|
-
class: `rv-configurator-field-content ${n}`,
|
|
90
|
-
children: [e, /* @__PURE__ */ d("span", {
|
|
91
|
-
class: "rv-configurator-field-caption",
|
|
92
|
-
children: t
|
|
93
|
-
})]
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function x({ as: e = "div", children: t, className: n = "", ...r }) {
|
|
97
|
-
return l(e, {
|
|
98
|
-
...r,
|
|
99
|
-
class: `rv-configurator-field ${n}`
|
|
100
|
-
}, t);
|
|
101
|
-
}
|
|
102
|
-
function S({ children: e, ...t }) {
|
|
103
|
-
return /* @__PURE__ */ d("div", {
|
|
104
|
-
...t,
|
|
105
|
-
className: `rv-configurator-library-list ${t.className ?? ""}`,
|
|
106
|
-
children: e
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function C({ label: e, icon: t, actions: n, contentClassName: r, ...i }) {
|
|
110
|
-
return /* @__PURE__ */ f(y, {
|
|
111
|
-
...i,
|
|
112
|
-
children: [/* @__PURE__ */ d(b, {
|
|
113
|
-
className: r,
|
|
114
|
-
icon: t,
|
|
115
|
-
children: e
|
|
116
|
-
}), n]
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function w({ children: e, className: t = "", ...n }) {
|
|
120
|
-
return /* @__PURE__ */ d("div", {
|
|
121
|
-
...n,
|
|
122
|
-
className: `rv-configurator-field-actions ${t}`,
|
|
123
|
-
children: e
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
function T({ children: e, active: t = !1, label: n, className: r = "" }) {
|
|
127
|
-
return /* @__PURE__ */ d("span", {
|
|
128
|
-
className: `rv-configurator-status-badge ${r}`,
|
|
129
|
-
"data-active": t ? "true" : void 0,
|
|
130
|
-
title: n,
|
|
131
|
-
"aria-label": n,
|
|
132
|
-
children: e
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function E(e) {
|
|
136
|
-
return /* @__PURE__ */ d(r, {
|
|
137
|
-
...e,
|
|
138
|
-
className: `rv-configurator-remove-button ${e.className ?? ""}`
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function D() {
|
|
142
|
-
return /* @__PURE__ */ d(e, { svg: n });
|
|
143
|
-
}
|
|
144
|
-
function O({ position: e, index: t, className: n = "" }) {
|
|
145
|
-
return /* @__PURE__ */ d("span", {
|
|
146
|
-
className: `rv-configurator-drop-indicator ${n}`,
|
|
147
|
-
"data-position": e,
|
|
148
|
-
"data-drop-index": t,
|
|
149
|
-
"aria-hidden": "true"
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function k({ title: e, description: t, defaultOpen: n = !1, children: r, className: i = "", summaryClassName: a = "", contentClassName: o = "", descriptionClassName: s = "", renderRoot: c }) {
|
|
153
|
-
let l = u(n), p = {
|
|
154
|
-
class: `rv-collapsible-section rv-configurator-section ${i}`.trim(),
|
|
155
|
-
open: l.current,
|
|
156
|
-
children: [/* @__PURE__ */ d(m, {
|
|
157
|
-
className: a,
|
|
158
|
-
children: e
|
|
159
|
-
}), /* @__PURE__ */ f("div", {
|
|
160
|
-
class: `rv-collapsible-section__content ${o}`.trim(),
|
|
161
|
-
children: [t && /* @__PURE__ */ d("p", {
|
|
162
|
-
class: `rv-collapsible-section__description ${s}`.trim(),
|
|
163
|
-
children: t
|
|
164
|
-
}), r]
|
|
165
|
-
})]
|
|
166
|
-
};
|
|
167
|
-
return c ? c(p) : /* @__PURE__ */ d("details", { ...p });
|
|
168
|
-
}
|
|
169
|
-
//#endregion
|
|
170
|
-
export { k as CollapsibleSection, w as FieldActions, b as FieldContent, O as FieldDropIndicator, _ as FieldGroup, g as FieldGroupHeading, p as FieldIcon, x as FieldItem, h as FieldLibrary, S as FieldLibraryList, v as FieldList, E as FieldRemoveButton, D as FieldRemoveIcon, y as FieldRow, T as FieldStatusBadge, m as FieldSummary, C as SelectedField, a as fieldDropIndex, o as reorderFields, s as useFieldDropTarget, c as useFieldReorder };
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./_chunks/field-configurator-B-qtIwx1.js";
|
|
2
|
+
import { fieldDropIndex as x, reorderFields as S } from "./field-reorder.js";
|
|
3
|
+
import { useFieldDropTarget as C, useFieldReorder as w } from "./field-reorder.hook.js";
|
|
4
|
+
export { g as CollapsibleSection, d as ConfiguratorPanel, m as FieldActions, c as FieldContent, t as FieldDropIndicator, f as FieldGroup, h as FieldGroupHeading, r as FieldIcon, l as FieldItem, _ as FieldLibrary, i as FieldLibraryList, a as FieldList, p as FieldRemoveButton, u as FieldRemoveIcon, s as FieldRow, o as FieldStatusBadge, e as FieldSummary, v as SelectedField, b as createFieldExpansion, x as fieldDropIndex, n as fieldExpansionIds, y as recordFieldExpansion, S as reorderFields, C as useFieldDropTarget, w as useFieldReorder };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Expansion overlay shared by nested field libraries; searching never overwrites it. */
|
|
2
|
+
export interface FieldExpansionState {
|
|
3
|
+
known: Set<string>;
|
|
4
|
+
expanded: Set<string>;
|
|
5
|
+
collapsed: Set<string>;
|
|
6
|
+
}
|
|
7
|
+
export declare function createFieldExpansion(): FieldExpansionState;
|
|
8
|
+
export declare function fieldExpansionIds(state: FieldExpansionState, ids: readonly string[], searching: boolean): Set<string>;
|
|
9
|
+
export declare function recordFieldExpansion(state: FieldExpansionState, expanded: Iterable<unknown>): void;
|