@revolist/ui 4.0.4-rc → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +36 -0
- package/OWNERSHIP.md +36 -36
- package/README.md +65 -392
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-xpZ0v3xf.js → calendar-BQYQLu8Q.js} +23 -23
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/chart-frame-GprenwEg.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-C5OxD0GV.js +126 -0
- package/_chunks/{color-palette-D8vyPfld.js → color-palette-7siNch__.js} +22 -24
- package/_chunks/color-picker-Cfc9eqZb.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-C3k_8uIq.js} +290 -275
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-DlVkpW3h.js} +1 -9
- package/_chunks/configurator-actions-vRnI54mO.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-BRfF5DWQ.js +118 -0
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/controls-B3EgM_DS.js +650 -0
- package/_chunks/{date-control-DrVFX13g.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-qIhp5vaX.js → date-time-CfiFYodx.js} +332 -293
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/dialog.parts-NqEEVc9P.js +131 -0
- package/_chunks/{duration-CL68Em0o.js → duration-BGZ_qJ99.js} +10 -10
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/editor-popup-NNP9Fh9U.js +82 -0
- package/_chunks/field-configurator-DPulsY3l.js +288 -0
- package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
- package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/icon-toolbar-BAAdEvr9.js +134 -0
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-C8CnIW9k.js +267 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/native-control-um1L1wgZ.js +649 -0
- package/_chunks/{number-input-BKwA5FnM.js → number-input-CKiA4d1N.js} +9 -9
- package/_chunks/{picker-h1P5RUgp.js → picker-igNshTRC.js} +5 -5
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/{popup-CT2uD3go.js → popup-DECYM9FI.js} +116 -105
- package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/request-trail-B1zVRPEf.js +762 -0
- package/_chunks/rich-text-Ci4d6dHn.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
- package/_chunks/title-tooltip-ncldbUwS.js +11 -0
- package/_chunks/tooltip-h-Z8yFBY.js +54 -0
- package/_chunks/tooltip-owner-BYho-vJl.js +19 -0
- package/_chunks/tooltip-session-CBtRMBPr.js +110 -0
- package/_chunks/tooltip-text-BN5WdGHn.js +12 -0
- package/_chunks/top-layer-popup-CKJ7VJOF.js +59 -0
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_variables.scss +34 -32
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +1 -1
- package/ai/_chat.scss +35 -3
- package/ai/_style.scss +76 -16
- package/ai/chat.d.ts +3 -1
- package/ai/components.d.ts +16 -3
- package/ai/index.d.ts +1 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +30 -6
- 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 +2 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +33 -32
- package/badge.d.ts +1 -1
- package/badge.js +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +28 -28
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +2 -2
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +17 -17
- package/calendar/_calendar.scss +21 -25
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +2 -2
- package/calendar/header.js +2 -3
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +2 -2
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +2 -2
- package/cell-input.js +1 -1
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/index.js +1 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +6 -24
- package/checkbox/index.js +1 -1
- package/choice-chips/index.d.ts +3 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/component-catalog.d.ts +9 -7
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +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 +1 -1
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +25 -20
- package/controls.d.ts +12 -2
- package/controls.js +4 -3
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popover-controller.js +102 -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 +1 -1
- package/date-time/field.d.ts +4 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +239 -36
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +9 -9
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.js +2 -2
- package/distribution-chart/bar-chart.js +2 -2
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +1 -1
- package/distribution-chart/line-chart.js +2 -2
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +19 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- package/dropdown/lookup-field.js +4 -3
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +2 -2
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +40 -35
- package/editor-layout/style.scss +82 -18
- package/favicon.svg +9 -0
- package/field-configurator.d.ts +39 -1
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/field-reorder.hook.js +1 -1
- package/field-reorder.js +1 -1
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +3 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +1 -1
- package/filter/filters/slider/runtime.js +50 -23
- package/filter/filters/slider/single.js +2 -2
- package/filter-badge.js +2 -2
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +6 -7
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +7 -7
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +13 -13
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +26 -25
- package/formatting/styles.scss +14 -57
- package/framework.js +228 -225
- package/history-controls.js +27 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +1 -1
- package/masked-input/index.js +4 -4
- package/native-control.d.ts +1 -2
- package/native-control.js +1 -1
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +48 -45
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +84 -1
- package/pagination.js +12 -12
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +3 -3
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +203 -42
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +13 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.d.ts +2 -0
- package/react-control.js +3 -3
- package/react.d.ts +7 -8
- package/react.js +69 -68
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.js +1 -1
- package/resource-picker/resource-picker-option.js +1 -1
- package/resource-picker/resource-picker-popup.js +2 -2
- package/resource-picker/resource-picker.js +75 -73
- package/resource-picker/resource-picker.scss +62 -34
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/engine.d.ts +1 -0
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +4 -0
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +2 -0
- package/rich-text/style.scss +293 -44
- package/rich-text/syntax.d.ts +5 -0
- package/rich-text/toolbar.d.ts +1 -1
- package/rich-text/translations.d.ts +2 -0
- package/robots.txt +4 -0
- package/search-input/index.js +2 -2
- package/search-input/native.d.ts +21 -2
- package/segmented-switch/index.js +1 -1
- package/select.d.ts +3 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +5 -5
- package/status-feedback/header.js +2 -2
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +5 -5
- package/status-feedback/render.js +1 -1
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +78 -17
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +400 -80
- package/styles/_control.scss +30 -8
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -4
- package/styles/_field-configurator.scss +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 +369 -110
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/color-roles.js +1 -1
- package/styles/configurator-actions.scss +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.svelte +44 -11
- package/svelte-control.js +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +16 -15
- package/time-grid.d.ts +0 -1
- package/time-grid.js +39 -38
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +3 -3
- package/timeline-track/model.js +1 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.d.ts +29 -32
- package/vue.js +118 -123
- package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
- package/_chunks/choice-chips-CHQTUdLs.js +0 -110
- package/_chunks/color-picker-CudqPYZo.js +0 -138
- package/_chunks/control-AHKXD5Eu.js +0 -93
- package/_chunks/control-tooltip-uscKfAnV.js +0 -100
- package/_chunks/controls-DsNi8V8I.js +0 -630
- package/_chunks/dialog.parts-CKGkC5zP.js +0 -134
- package/_chunks/editor-popup-WDdtVDNA.js +0 -81
- package/_chunks/history-controls-B3u3INEK.js +0 -27
- package/_chunks/mount-DQ1cpppK.js +0 -257
- package/_chunks/native-control-C_yok8_-.js +0 -605
- package/_chunks/request-trail-DSlFix6i.js +0 -618
- package/_chunks/rich-text-CH7gIqOS.js +0 -636
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
- package/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -10
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/icons/cancel.svg?raw
|
|
3
3
|
var t = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill=\"currentColor\" d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/></svg>", n = ({ onClick: n, disabled: r, rounded: i, className: a, onMouseDown: o, onDblClick: s, locale: c = {
|
|
4
4
|
title: "Remove",
|
|
5
5
|
ariaLabel: "Remove"
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createPreactElement as n, releasePreactElement as r } from "../preact-mount.js";
|
|
4
|
+
import { n as i, t as a } from "./native-control-um1L1wgZ.js";
|
|
5
|
+
import { r as o } from "./popup-DECYM9FI.js";
|
|
6
|
+
import { t as s } from "./xmark-DD_PBvZI.js";
|
|
7
|
+
//#region package/dialog/dialog-action-footer.tsx
|
|
8
|
+
function c({ cancel: e = {}, save: n = {}, deleteAction: r = !1, reset: i = !1, start: o, end: s, children: c, actionsClass: l = "", class: u = "", ...d }) {
|
|
9
|
+
let f = (e, n, r, i = "", o = "button") => {
|
|
10
|
+
if (n === !1) return null;
|
|
11
|
+
let { label: s = r, class: c = "", ...l } = n;
|
|
12
|
+
return /* @__PURE__ */ t(a, {
|
|
13
|
+
type: o,
|
|
14
|
+
...l,
|
|
15
|
+
class: `rv-btn ${i} ${c}`,
|
|
16
|
+
"data-dialog-action": e,
|
|
17
|
+
children: s
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ t("footer", {
|
|
21
|
+
...d,
|
|
22
|
+
class: `rv-dialog__footer rv-dialog__action-footer ${u}`,
|
|
23
|
+
children: [c, /* @__PURE__ */ t("div", {
|
|
24
|
+
class: "rv-dialog__action-panel",
|
|
25
|
+
children: [/* @__PURE__ */ t("div", {
|
|
26
|
+
class: "rv-dialog__action-start",
|
|
27
|
+
children: [
|
|
28
|
+
o,
|
|
29
|
+
f("delete", r, "Delete", "rv-btn-danger-outline"),
|
|
30
|
+
f("reset", i, "Reset")
|
|
31
|
+
]
|
|
32
|
+
}), /* @__PURE__ */ t("div", {
|
|
33
|
+
class: `rv-dialog__actions ${l}`,
|
|
34
|
+
children: [
|
|
35
|
+
s,
|
|
36
|
+
f("cancel", e, "Cancel"),
|
|
37
|
+
f("save", n, "Save", "rv-btn-primary", "submit")
|
|
38
|
+
]
|
|
39
|
+
})]
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function l(e, i) {
|
|
44
|
+
let a = n(e.ownerDocument, /* @__PURE__ */ t(c, { ...i }));
|
|
45
|
+
return e.append(a), { destroy() {
|
|
46
|
+
r(a);
|
|
47
|
+
} };
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region package/dialog/dialog.parts.tsx
|
|
51
|
+
var u = o(({ class: e = "", ...n }, r) => /* @__PURE__ */ t("header", {
|
|
52
|
+
...n,
|
|
53
|
+
ref: r,
|
|
54
|
+
class: `rv-dialog__header ${e}`
|
|
55
|
+
}));
|
|
56
|
+
function d({ class: e = "", ...n }) {
|
|
57
|
+
return /* @__PURE__ */ t("form", {
|
|
58
|
+
...n,
|
|
59
|
+
class: `rv-dialog__surface ${e}`
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
var f = o(({ class: e = "", ...n }, r) => /* @__PURE__ */ t("div", {
|
|
63
|
+
...n,
|
|
64
|
+
ref: r,
|
|
65
|
+
class: `rv-dialog__body ${e}`
|
|
66
|
+
})), p = o(({ class: e = "", ...n }, r) => /* @__PURE__ */ t("footer", {
|
|
67
|
+
...n,
|
|
68
|
+
ref: r,
|
|
69
|
+
class: `rv-dialog__footer ${e}`
|
|
70
|
+
})), m = o(({ class: e = "", ...n }, r) => /* @__PURE__ */ t("div", {
|
|
71
|
+
...n,
|
|
72
|
+
ref: r,
|
|
73
|
+
class: `rv-dialog__actions ${e}`
|
|
74
|
+
}));
|
|
75
|
+
function h({ class: e = "", iconClass: n = "", ...r }) {
|
|
76
|
+
return /* @__PURE__ */ t(a, {
|
|
77
|
+
...r,
|
|
78
|
+
unstyled: !0,
|
|
79
|
+
type: "button",
|
|
80
|
+
class: `rv-dialog__close ${e}`,
|
|
81
|
+
children: /* @__PURE__ */ t("span", {
|
|
82
|
+
class: `rv-dialog__close-icon ${n}`,
|
|
83
|
+
"aria-hidden": "true",
|
|
84
|
+
dangerouslySetInnerHTML: { __html: s }
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
var g = o(({ class: e = "", ...n }, r) => /* @__PURE__ */ t(i, {
|
|
89
|
+
...n,
|
|
90
|
+
ref: r,
|
|
91
|
+
class: `rv-dialog__title-input ${e}`
|
|
92
|
+
})), _ = o(({ titleId: n, title: r, name: i, description: a, inputLabel: o, titleHidden: s, headingClass: c = "", kickerClass: l = "", titleClass: d = "", inputProps: f, closeLabel: p, closeProps: m, onClose: _, class: v = "", ...y }, b) => /* @__PURE__ */ t(u, {
|
|
93
|
+
...y,
|
|
94
|
+
ref: b,
|
|
95
|
+
class: `rv-dialog__header--editable ${v}`,
|
|
96
|
+
children: [/* @__PURE__ */ t("div", {
|
|
97
|
+
class: `rv-dialog__heading ${c}`,
|
|
98
|
+
children: [
|
|
99
|
+
!s && i && /* @__PURE__ */ t("span", {
|
|
100
|
+
class: `rv-dialog__kicker ${l}`,
|
|
101
|
+
children: i
|
|
102
|
+
}),
|
|
103
|
+
!s && (f === !1 ? /* @__PURE__ */ t("h3", {
|
|
104
|
+
id: n,
|
|
105
|
+
class: `rv-dialog__title ${d}`,
|
|
106
|
+
children: r
|
|
107
|
+
}) : /* @__PURE__ */ t(e, { children: [/* @__PURE__ */ t("h3", {
|
|
108
|
+
id: n,
|
|
109
|
+
class: `rv-dialog__sr-only ${d}`,
|
|
110
|
+
children: r
|
|
111
|
+
}), /* @__PURE__ */ t(g, {
|
|
112
|
+
"aria-label": o,
|
|
113
|
+
value: r,
|
|
114
|
+
...f
|
|
115
|
+
})] })),
|
|
116
|
+
a && /* @__PURE__ */ t("div", {
|
|
117
|
+
class: "rv-dialog__description",
|
|
118
|
+
children: a
|
|
119
|
+
})
|
|
120
|
+
]
|
|
121
|
+
}), _ && /* @__PURE__ */ t(h, {
|
|
122
|
+
...m,
|
|
123
|
+
"aria-label": p,
|
|
124
|
+
onClick: _
|
|
125
|
+
})]
|
|
126
|
+
}));
|
|
127
|
+
function v(e) {
|
|
128
|
+
return /* @__PURE__ */ t(c, { ...e });
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { p as a, g as c, l as d, h as i, _ as l, m as n, d as o, f as r, u as s, v as t, c as u };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { c as t, i as n, t as r } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as i } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { l as a, n as o } from "./native-control-
|
|
4
|
+
import { l as a, n as o } from "./native-control-um1L1wgZ.js";
|
|
5
5
|
import { SegmentedSwitch as s } from "../segmented-switch/index.js";
|
|
6
6
|
import { SingleValueSlider as c } from "../filter/filters/slider/single.js";
|
|
7
|
-
import { n as l } from "./editor-commit-
|
|
7
|
+
import { n as l } from "./editor-commit-Dyo-FMgD.js";
|
|
8
8
|
import { EditorActions as u } from "../editor-actions.js";
|
|
9
|
-
//#region
|
|
9
|
+
//#region internal/dates/src/duration.ts
|
|
10
10
|
var d = {
|
|
11
11
|
m: "minute",
|
|
12
12
|
min: "minute",
|
|
@@ -85,7 +85,7 @@ function g(e, t, n) {
|
|
|
85
85
|
return `${r} ${n?.elapsed ? "elapsed " : ""}${a}`;
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
|
-
//#region
|
|
88
|
+
//#region internal/dates/src/duration-control.ts
|
|
89
89
|
function _(e, t) {
|
|
90
90
|
if (e == null || typeof e == "string" && !e.trim()) return {
|
|
91
91
|
valid: !t.required,
|
|
@@ -101,7 +101,7 @@ function _(e, t) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
|
-
//#region
|
|
104
|
+
//#region package/duration/controls.tsx
|
|
105
105
|
var v = {
|
|
106
106
|
minute: "min",
|
|
107
107
|
hour: "hour",
|
|
@@ -138,7 +138,10 @@ function y(t) {
|
|
|
138
138
|
class: "rv-duration-field__modes",
|
|
139
139
|
children: [l.length === 0 ? null : l.length > 5 ? /* @__PURE__ */ i(a, {
|
|
140
140
|
className: "rv-select",
|
|
141
|
-
config: {
|
|
141
|
+
config: {
|
|
142
|
+
ariaLabel: t.unitLabel ?? "Duration unit",
|
|
143
|
+
topLayer: !0
|
|
144
|
+
},
|
|
142
145
|
source: l.map((e) => ({
|
|
143
146
|
value: e,
|
|
144
147
|
label: t.unitLabels?.[e] ?? v[e]
|
|
@@ -174,7 +177,7 @@ function y(t) {
|
|
|
174
177
|
})] });
|
|
175
178
|
}
|
|
176
179
|
//#endregion
|
|
177
|
-
//#region
|
|
180
|
+
//#region package/duration/index.tsx
|
|
178
181
|
function b(e) {
|
|
179
182
|
let a = (t) => t && typeof t == "object" ? g(t.value, t.unit, {
|
|
180
183
|
elapsed: t.elapsed,
|
|
@@ -252,9 +255,6 @@ function x({ value: e, options: t, apply: a, cancel: o }) {
|
|
|
252
255
|
onDraftChange: (e) => {
|
|
253
256
|
g.current = !0, v.current = e;
|
|
254
257
|
},
|
|
255
|
-
onCommit: h ? (e) => {
|
|
256
|
-
g.current = !1, a(e);
|
|
257
|
-
} : void 0,
|
|
258
258
|
onValidityChange: c
|
|
259
259
|
}, p), /* @__PURE__ */ i(u, {
|
|
260
260
|
showConfirm: t.showActions ?? !h,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { r as t, s as n, t as r } from "./hooks.module-CG3gN83z.js";
|
|
3
|
-
//#region
|
|
3
|
+
//#region package/core/editor-commit.tsx
|
|
4
4
|
var i = e(void 0);
|
|
5
5
|
function a(e, a = !0) {
|
|
6
6
|
let o = n(i), s = r(e);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { calculateAnchoredPopoverPosition as e } from "../core/anchored-popover.js";
|
|
2
|
+
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createPreactElement as n, releasePreactElement as r } from "../preact-mount.js";
|
|
4
|
+
import { i, r as a, t as o } from "./top-layer-popup-CKJ7VJOF.js";
|
|
5
|
+
import { t as s } from "./editor-commit-Dyo-FMgD.js";
|
|
6
|
+
//#region package/core/editor-popup-position.ts
|
|
7
|
+
function c(t, n, r, { gap: i = 4, inset: a = 8, fitViewport: o = !1 } = {}) {
|
|
8
|
+
let s = Math.max(0, r.height - a - t.bottom - i), c = Math.max(0, t.top - a - i), l = n.height <= s || s >= c ? "below" : "above", u = l === "below" ? s : c, d = o && n.height > u ? Math.max(u, r.height - 2 * a) : u, f = Math.min(n.height, d), p = l === "below" ? t.bottom + i : t.top - f - i;
|
|
9
|
+
return {
|
|
10
|
+
...e(t, n, r, i, a),
|
|
11
|
+
placementY: l,
|
|
12
|
+
maxHeight: d,
|
|
13
|
+
top: d > u ? Math.max(a, Math.min(p, r.height - a - f)) : p
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region package/core/editor-popup.tsx
|
|
18
|
+
var l = /* @__PURE__ */ new WeakMap();
|
|
19
|
+
function u(e, u, d) {
|
|
20
|
+
let f = e.ownerDocument, p = f.defaultView;
|
|
21
|
+
l.get(f)?.close();
|
|
22
|
+
let m = !1, h, g = (e) => (h = e, () => {
|
|
23
|
+
h === e && (h = void 0);
|
|
24
|
+
}), _ = () => {
|
|
25
|
+
m || (m = !0, E.disconnect(), T?.disconnect(), f.removeEventListener("pointerdown", y, !0), f.removeEventListener("keydown", b, !0), f.removeEventListener("scroll", x, !0), p.removeEventListener("resize", _), o(S, C), r(S), S.remove(), l.get(f)?.element === S && l.delete(f), d.onClose?.(), e.isConnected && e.focus({ preventScroll: !0 }));
|
|
26
|
+
}, v = (e) => e ? i(S, e) : !1, y = (t) => {
|
|
27
|
+
let n = t.target;
|
|
28
|
+
v(n) || e.contains(n) || d.trigger?.contains(n) || (d.isAvailable && !d.isAvailable() ? _() : h?.() === !1 ? (t.preventDefault(), t.stopPropagation()) : _());
|
|
29
|
+
}, b = (e) => {
|
|
30
|
+
if (e.key === "Escape") {
|
|
31
|
+
if (S.querySelector("[aria-expanded=\"true\"]")) return;
|
|
32
|
+
e.preventDefault(), e.stopPropagation(), _();
|
|
33
|
+
}
|
|
34
|
+
if (e.key === "Tab" && S.contains(e.target)) {
|
|
35
|
+
let t = [...S.querySelectorAll("button:not(:disabled),input:not(:disabled),textarea:not(:disabled),select:not(:disabled),[contenteditable=\"true\"],[tabindex=\"0\"]")].filter((e) => e.tabIndex >= 0 && e.getClientRects().length), n = t[0], r = t.at(-1);
|
|
36
|
+
e.shiftKey && f.activeElement === n ? (e.preventDefault(), r?.focus()) : !e.shiftKey && f.activeElement === r && (e.preventDefault(), n?.focus());
|
|
37
|
+
}
|
|
38
|
+
}, x = (t) => {
|
|
39
|
+
let n = t.target;
|
|
40
|
+
v(n) || n && (n.contains(e) || D?.contains(n)) && w();
|
|
41
|
+
}, S = n(f, /* @__PURE__ */ t("div", {
|
|
42
|
+
class: `rv-editor-popup ${d.className ?? ""}`,
|
|
43
|
+
role: "dialog",
|
|
44
|
+
"aria-label": d.label,
|
|
45
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
46
|
+
onKeyUp: (e) => e.stopPropagation(),
|
|
47
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
48
|
+
onClick: (e) => e.stopPropagation(),
|
|
49
|
+
children: /* @__PURE__ */ t(s.Provider, {
|
|
50
|
+
value: g,
|
|
51
|
+
children: u(_)
|
|
52
|
+
})
|
|
53
|
+
}));
|
|
54
|
+
S.style.direction = p.getComputedStyle(e).direction, (e.closest("dialog, [role=\"dialog\"], [role=\"menu\"]") ?? e.closest("revo-grid") ?? f.body).append(S);
|
|
55
|
+
let C = a(S, "block"), w = () => {
|
|
56
|
+
S.style.maxHeight = "";
|
|
57
|
+
let t = c(e.getBoundingClientRect(), S.getBoundingClientRect(), {
|
|
58
|
+
width: p.innerWidth,
|
|
59
|
+
height: p.innerHeight
|
|
60
|
+
}, { fitViewport: d.fitViewport });
|
|
61
|
+
S.style.maxHeight = `${t.maxHeight}px`, S.style.left = `${t.left}px`, S.style.top = `${t.top}px`, S.dataset.placement = t.placementY;
|
|
62
|
+
};
|
|
63
|
+
w();
|
|
64
|
+
let T = typeof p.ResizeObserver == "function" ? new p.ResizeObserver(w) : void 0;
|
|
65
|
+
T?.observe(S), T?.observe(e);
|
|
66
|
+
let E = new MutationObserver(() => {
|
|
67
|
+
(!e.isConnected || !S.isConnected || d.isAvailable && !d.isAvailable()) && _();
|
|
68
|
+
});
|
|
69
|
+
E.observe(f.body, {
|
|
70
|
+
childList: !0,
|
|
71
|
+
subtree: !0
|
|
72
|
+
});
|
|
73
|
+
let D = e.closest("revo-grid");
|
|
74
|
+
D && d.isAvailable && E.observe(D, { attributes: !0 }), f.addEventListener("pointerdown", y, !0), f.addEventListener("keydown", b, !0), f.addEventListener("scroll", x, !0), p.addEventListener("resize", _);
|
|
75
|
+
let O = {
|
|
76
|
+
element: S,
|
|
77
|
+
close: _
|
|
78
|
+
};
|
|
79
|
+
return l.set(f, O), S.querySelector("[autofocus],input,textarea,button,[tabindex=\"0\"]")?.focus({ preventScroll: !0 }), O;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { u as t };
|
|
@@ -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-um1L1wgZ.js";
|
|
6
|
+
import { n as c } from "./delete-button-jneO24wa.js";
|
|
7
|
+
import { RemoveButton as l } from "../buttons/remove-button.js";
|
|
8
|
+
import { B as u, S as d } from "./controls-B3EgM_DS.js";
|
|
9
|
+
import { t as f } from "./chevron-right-CM3ljziP.js";
|
|
10
|
+
import { t as p } from "./tooltip-text-BN5WdGHn.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 package/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 package/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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as e, r as t } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { r as n, t as r } from "./hooks.module-CG3gN83z.js";
|
|
3
|
-
import { n as i } from "./component-metadata-
|
|
4
|
-
//#region
|
|
3
|
+
import { n as i } from "./component-metadata-DlVkpW3h.js";
|
|
4
|
+
//#region package/framework-mount.ts
|
|
5
5
|
function a(i, a) {
|
|
6
6
|
let o = /* @__PURE__ */ new Map(), s = !1, c = 0;
|
|
7
7
|
function l({ content: t, scope: i }) {
|