@revolist/ui 4.0.2-rc → 4.0.2
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 -265
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-CpaUK7w1.js → calendar-CgXQgkga.js} +28 -18
- 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-SkllS5Kl.js +126 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BBMFmUNA.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/{color-picker-D90Jg-M8.js → color-picker-BpCTuIdm.js} +77 -72
- package/_chunks/{component-YDcfoOLz.js → component-CfeHXgIw.js} +301 -282
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
- package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-Dcrjsunl.js +118 -0
- package/_chunks/{controls-DIum-E66.js → controls-B_6NJarZ.js} +217 -182
- package/_chunks/{date-control-BJSzu79z.js → date-control-C4h4m75W.js} +1 -1
- package/_chunks/{date-time-BxPJusp9.js → date-time-CTOSbzb0.js} +344 -307
- package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
- package/_chunks/dialog.parts-3w5FR06n.js +131 -0
- package/_chunks/{duration-87U2EoMS.js → duration-Bf2OS1V5.js} +19 -18
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-D5dZRhDe.js +288 -0
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount-Bk4O_T7T.js} +1 -1
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-BRdcG60g.js +267 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/native-control-B_fVA5bL.js +649 -0
- package/_chunks/{number-input-BeIadZuL.js → number-input-CmM6_2vR.js} +7 -7
- package/_chunks/{picker-DpP7iQLA.js → picker-DTqET-2W.js} +2 -2
- 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/{rating-choice-Ca8ZBty3.js → rating-choice-C-6wcb9U.js} +1 -1
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-DIl1gkV6.js} +1 -1
- package/_chunks/request-trail-DrhdpWiH.js +762 -0
- package/_chunks/rich-text-BnilBbhU.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_chunks/selection-list-tooltips-C5oMJe26.js +42 -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/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/ai/_chat.scss +227 -0
- package/ai/_style.scss +170 -39
- package/ai/chat.d.ts +65 -0
- package/ai/components.d.ts +34 -5
- 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/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -10
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +34 -35
- 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.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 +27 -27
- 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 +1 -1
- package/buttons/remove-button.js +1 -1
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +2 -1
- package/buttons/svg-button.js +19 -19
- package/calendar/_calendar.scss +27 -26
- package/calendar/calendar.js +1 -1
- package/calendar/header.js +1 -2
- package/calendar/index.js +2 -2
- 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/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/choice-chips/index.d.ts +3 -1
- package/choice-chips/index.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.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 +24 -11
- 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 +25 -20
- package/controls.d.ts +19 -7
- package/controls.js +4 -3
- 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/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 +1 -1
- package/date-time/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +242 -39
- 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 +3 -3
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.d.ts +5 -2
- package/distribution-chart/bar-chart.js +7 -3
- package/distribution-chart/chart-frame.d.ts +2 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.d.ts +2 -1
- package/dropdown/content.js +1 -142
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- 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 +5 -0
- package/dropdown/lookup-field.js +2 -1
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -141
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.js +1 -1
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +39 -34
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +39 -1
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- 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/runtime.js +49 -22
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +9 -10
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +4 -9
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +53 -45
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +40 -35
- package/formatting/styles.scss +14 -57
- 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 +1 -1
- package/legend.d.ts +1 -1
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +6 -5
- 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 +41 -37
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +88 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +50 -40
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +1 -1
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +205 -45
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- 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.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.d.ts +1 -0
- package/react.d.ts +20 -11
- package/react.js +72 -88
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +73 -71
- 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 +6 -6
- package/rich-text/translations.d.ts +5 -15
- package/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- 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.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 +15 -14
- package/time-grid.d.ts +0 -1
- package/time-grid.js +38 -37
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +71 -54
- 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.d.ts +51 -35
- package/vue.js +149 -178
- package/_chunks/chart-frame-BC99KjGa.js +0 -127
- package/_chunks/choice-chips-Cs4D-3nH.js +0 -110
- package/_chunks/compat.module-DDB2pm9O.js +0 -229
- package/_chunks/control-tooltip-ztgmsG7H.js +0 -100
- package/_chunks/dialog.parts-DBqo3Qwb.js +0 -134
- package/_chunks/dropdown-voWqmwAe.js +0 -357
- package/_chunks/editor-popup-D3JdS8l3.js +0 -81
- package/_chunks/mount-DZe_6VtR.js +0 -90
- package/_chunks/request-trail-IdNiFvKH.js +0 -347
- package/_chunks/rich-text-BzI1DyfF.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/_button.scss
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
background-color: var(--rv-ui-btn-outline-bg, transparent);
|
|
12
12
|
color: var(--rv-ui-btn-outline-fg, inherit);
|
|
13
13
|
transition:
|
|
14
|
-
background-color var(--rv-ui-motion-fast, 120ms)
|
|
14
|
+
background-color var(--rv-ui-motion-fast, 120ms)
|
|
15
|
+
var(--rv-ui-motion-ease, ease),
|
|
15
16
|
color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease),
|
|
16
17
|
border-color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease),
|
|
17
18
|
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease);
|
|
@@ -36,7 +37,10 @@
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
&:not(.disabled):hover {
|
|
39
|
-
background-color: var(
|
|
40
|
+
background-color: var(
|
|
41
|
+
--rv-ui-btn-outline-bg-hover,
|
|
42
|
+
$button-alt-bg-light-hover
|
|
43
|
+
);
|
|
40
44
|
border-color: var(--rv-ui-btn-outline-border-hover);
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/arrow-down.svg?raw
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 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=\"M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"/></svg>", t = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 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=\"M214.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 109.3 160 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z\"/></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as n, t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/calculator.svg?raw
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 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=\"M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zM96 64l192 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32zm16 168a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zm80 24a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm128-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM88 352a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm128-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zm80 24a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM64 424c0-13.3 10.7-24 24-24l112 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm232-24c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z\"/></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e, n as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
+
import { l as a, t as o } from "./native-control-B_fVA5bL.js";
|
|
5
5
|
import { DEFAULT_CALENDAR_TRANSLATIONS as s } from "../calendar/translations.js";
|
|
6
6
|
import { a as c, n as l } from "./iso-B0YHBK7m.js";
|
|
7
7
|
import { a as u, c as d, d as f, f as p, l as m, n as h, p as g, r as _, s as v, t as y, u as b } from "./model-mPO2tG2f.js";
|
|
@@ -23,27 +23,37 @@ function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disab
|
|
|
23
23
|
return /* @__PURE__ */ r("div", {
|
|
24
24
|
class: "revo-calendar__caption",
|
|
25
25
|
children: [o === "dropdown-years" ? /* @__PURE__ */ r("span", { children: b(e, i, { month: "long" }, n) }) : /* @__PURE__ */ r(a, {
|
|
26
|
-
"
|
|
26
|
+
className: "rv-select",
|
|
27
|
+
config: {
|
|
28
|
+
ariaLabel: u.chooseMonth,
|
|
29
|
+
topLayer: !0,
|
|
30
|
+
nativeTabNavigation: !0
|
|
31
|
+
},
|
|
27
32
|
disabled: l,
|
|
28
33
|
value: String(g.month),
|
|
29
|
-
|
|
30
|
-
children: h.map((e, t) => /* @__PURE__ */ r("option", {
|
|
34
|
+
source: h.map((e, t) => ({
|
|
31
35
|
value: String(t + 1),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
36
|
+
label: b(e, i, { month: "short" }, n),
|
|
37
|
+
disabled: !!(s && e < p(s, n) || c && e > p(c, n))
|
|
38
|
+
})),
|
|
39
|
+
onChange: (e) => d(h[Number(e) - 1])
|
|
35
40
|
}), o === "dropdown-months" ? /* @__PURE__ */ r("span", { children: b(e, i, { year: "numeric" }, n) }) : /* @__PURE__ */ r(a, {
|
|
36
|
-
"
|
|
41
|
+
className: "rv-select",
|
|
42
|
+
config: {
|
|
43
|
+
ariaLabel: u.chooseYear,
|
|
44
|
+
topLayer: !0,
|
|
45
|
+
nativeTabNavigation: !0
|
|
46
|
+
},
|
|
37
47
|
disabled: l,
|
|
38
48
|
value: h[0],
|
|
39
|
-
|
|
40
|
-
let t = e.currentTarget.value, r = v(t, g.month - 1, n);
|
|
41
|
-
s && r < p(s, n) && (r = p(s, n)), c && r > p(c, n) && (r = p(c, n)), d(r);
|
|
42
|
-
},
|
|
43
|
-
children: _.map((e) => /* @__PURE__ */ r("option", {
|
|
49
|
+
source: _.map((e) => ({
|
|
44
50
|
value: e,
|
|
45
|
-
|
|
46
|
-
}
|
|
51
|
+
label: b(e, i, { year: "numeric" }, n)
|
|
52
|
+
})),
|
|
53
|
+
onChange: (e) => {
|
|
54
|
+
let t = v(e, g.month - 1, n);
|
|
55
|
+
s && t < p(s, n) && (t = p(s, n)), c && t > p(c, n) && (t = p(c, n)), d(t);
|
|
56
|
+
}
|
|
47
57
|
})]
|
|
48
58
|
});
|
|
49
59
|
}
|
|
@@ -51,7 +61,7 @@ function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disab
|
|
|
51
61
|
//#region src/calendar/calendar.tsx
|
|
52
62
|
var ie = "2026-08-02";
|
|
53
63
|
function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1, allowOutsideMonthSelection: S = !1, fixedWeeks: ae = !0, showTodayButton: oe = !1, showHeader: se = !0, showNavigation: C = !0, showPreviousButton: ce = C, showNextButton: le = C, showMonthLabel: ue = !0, showWeekdays: de = !0, enableYearView: w = !0, translations: fe = {}, ...T }) {
|
|
54
|
-
let [E] = e(() =>
|
|
64
|
+
let [E] = e(() => i("rv-calendar-feedback")), D = T.calendarSystem ?? "gregory", O = Math.max(1, Math.min(12, Math.trunc(T.numberOfMonths || 1))), k = t(() => {
|
|
55
65
|
let e = T.views ? [...new Set(T.views.filter((e) => e === "month" || e === "year"))] : w ? ["month", "year"] : ["month"];
|
|
56
66
|
return e.length ? e : ["month"];
|
|
57
67
|
}, [T.views, w]), [A, pe] = e(T.defaultView && k.includes(T.defaultView) ? T.defaultView : k[0]), j = k.includes(A) ? A : k[0], M = p(T.month, D), N = t(() => Array.from({ length: O }, (e, t) => v(M, t, D)), [
|
|
@@ -216,7 +226,7 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
|
|
|
216
226
|
}),
|
|
217
227
|
T.presets?.length ? /* @__PURE__ */ r("div", {
|
|
218
228
|
class: "revo-calendar__presets",
|
|
219
|
-
children: T.presets.map((e) => /* @__PURE__ */ r(
|
|
229
|
+
children: T.presets.map((e) => /* @__PURE__ */ r(o, {
|
|
220
230
|
disabled: W(e.date),
|
|
221
231
|
onClick: () => $(e.date),
|
|
222
232
|
children: e.label
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
3
|
+
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { r as i } from "./tooltip-D4xkio5G.js";
|
|
5
|
+
import { t as a } from "./tooltip-text-BXsUEmBH.js";
|
|
6
|
+
//#region src/distribution-chart/geometry.ts
|
|
7
|
+
function o(e) {
|
|
8
|
+
let t = e.map(({ value: e }) => Number.isFinite(e) ? Math.max(0, e) : 0), n = Math.max(1, ...t);
|
|
9
|
+
return {
|
|
10
|
+
values: t,
|
|
11
|
+
max: n,
|
|
12
|
+
points: t.map((t, r) => ({
|
|
13
|
+
x: e.length <= 1 ? 50 : r / (e.length - 1) * 100,
|
|
14
|
+
y: 96 - t / n * 88
|
|
15
|
+
}))
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function s(e, t) {
|
|
19
|
+
return t === "step" ? `H ${e.x} V ${e.y}` : `L ${e.x} ${e.y}`;
|
|
20
|
+
}
|
|
21
|
+
function c(e, t, n = "linear") {
|
|
22
|
+
return `M ${e.x} ${e.y} ${s(t, n)}`;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/distribution-chart/chart-frame.tsx
|
|
26
|
+
function l({ title: e, details: t = [] }) {
|
|
27
|
+
return [e, ...t].filter(Boolean).join(". ");
|
|
28
|
+
}
|
|
29
|
+
function u({ title: t, details: n = [] }) {
|
|
30
|
+
return /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r("strong", { children: t }), n.map((e) => /* @__PURE__ */ r("span", { children: e }, e))] });
|
|
31
|
+
}
|
|
32
|
+
function d({ data: e, ariaLabel: i, variant: s, height: c = 72, className: d = "", showGrid: f = !1, showLabels: m = !1, showValues: h = !1, legend: g, formatValue: _ = String, tooltip: v = !0, tooltipIndicator: y = "none", renderTooltip: b, positions: x, datumColors: S, renderDatum: C, children: w }) {
|
|
33
|
+
let { values: T, max: E } = o(e), [D, O] = t(0), k = n([]), A = Math.min(D, Math.max(0, e.length - 1)), j = (t) => {
|
|
34
|
+
if (!e.length) return;
|
|
35
|
+
let n = Math.max(0, Math.min(t, e.length - 1));
|
|
36
|
+
O(n), k.current[n]?.focus();
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ r("div", {
|
|
39
|
+
class: `rv-distribution-chart rv-distribution-chart--${s} ${d}`.trim(),
|
|
40
|
+
role: "group",
|
|
41
|
+
"aria-label": i,
|
|
42
|
+
"data-empty": e.length ? void 0 : "true",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ r("div", {
|
|
45
|
+
class: "rv-distribution-chart__region",
|
|
46
|
+
style: { height: `${Math.max(40, Math.min(240, c))}px` },
|
|
47
|
+
children: [
|
|
48
|
+
f && /* @__PURE__ */ r("div", {
|
|
49
|
+
class: "rv-distribution-chart__grid",
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
children: [
|
|
52
|
+
0,
|
|
53
|
+
1,
|
|
54
|
+
2,
|
|
55
|
+
3,
|
|
56
|
+
4
|
|
57
|
+
].map((e) => /* @__PURE__ */ r("span", {}, e))
|
|
58
|
+
}),
|
|
59
|
+
w,
|
|
60
|
+
/* @__PURE__ */ r("div", {
|
|
61
|
+
class: "rv-distribution-chart__data",
|
|
62
|
+
role: "list",
|
|
63
|
+
children: e.map((t, n) => {
|
|
64
|
+
let i = x?.[n], a = !i;
|
|
65
|
+
return /* @__PURE__ */ r(p, {
|
|
66
|
+
indicator: y,
|
|
67
|
+
tooltipText: v ? l(t.tooltip) : void 0,
|
|
68
|
+
tooltipContent: b ? b(t, n) : u(t.tooltip),
|
|
69
|
+
datumRef: (e) => {
|
|
70
|
+
k.current[n] = e;
|
|
71
|
+
},
|
|
72
|
+
class: `rv-distribution-chart__datum${t.selected ? " is-selected" : ""}${a ? " is-bar" : " is-point"}`,
|
|
73
|
+
role: "listitem",
|
|
74
|
+
tabIndex: n === A ? 0 : -1,
|
|
75
|
+
"aria-label": l(t.tooltip),
|
|
76
|
+
style: {
|
|
77
|
+
"--rv-distribution-accent": S?.[n],
|
|
78
|
+
...a ? {} : {
|
|
79
|
+
left: `${i.x}%`,
|
|
80
|
+
top: `${i.y}%`
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
onFocus: () => O(n),
|
|
84
|
+
onKeyDown: (t) => {
|
|
85
|
+
t.key === "ArrowRight" || t.key === "ArrowDown" ? (t.preventDefault(), j(n + 1)) : t.key === "ArrowLeft" || t.key === "ArrowUp" ? (t.preventDefault(), j(n - 1)) : t.key === "Home" ? (t.preventDefault(), j(0)) : t.key === "End" && (t.preventDefault(), j(e.length - 1));
|
|
86
|
+
},
|
|
87
|
+
children: [C(t, n), h && /* @__PURE__ */ r("span", {
|
|
88
|
+
class: "rv-distribution-chart__value",
|
|
89
|
+
style: a ? {
|
|
90
|
+
top: `${100 - Math.max(3, T[n] / E * 100)}%`,
|
|
91
|
+
transform: "translate(-50%, -100%)"
|
|
92
|
+
} : void 0,
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
children: _(t.value)
|
|
95
|
+
})]
|
|
96
|
+
}, t.key);
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
}),
|
|
101
|
+
m && /* @__PURE__ */ r("div", {
|
|
102
|
+
class: `rv-distribution-chart__labels${s === "bar" ? " is-bar" : ""}`,
|
|
103
|
+
"aria-hidden": "true",
|
|
104
|
+
children: e.map((e) => /* @__PURE__ */ r(a, {
|
|
105
|
+
title: e.tooltip.title,
|
|
106
|
+
children: e.tooltip.title
|
|
107
|
+
}, e.key))
|
|
108
|
+
}),
|
|
109
|
+
g && /* @__PURE__ */ r("div", {
|
|
110
|
+
class: "rv-distribution-chart__legend",
|
|
111
|
+
children: [/* @__PURE__ */ r("i", { "aria-hidden": "true" }), g]
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function f({ children: e }) {
|
|
117
|
+
return /* @__PURE__ */ r("svg", {
|
|
118
|
+
class: "rv-distribution-chart__plot",
|
|
119
|
+
viewBox: "0 0 100 100",
|
|
120
|
+
preserveAspectRatio: "none",
|
|
121
|
+
"aria-hidden": "true",
|
|
122
|
+
focusable: "false",
|
|
123
|
+
children: e
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function p({ tooltipText: t, tooltipContent: n, indicator: a, children: o, onFocus: s, onKeyDown: c, datumRef: l, ...u }) {
|
|
127
|
+
let d = i(t ?? "", !0, {
|
|
128
|
+
className: `rv-distribution-chart__tooltip rv-distribution-chart__tooltip--${a}`,
|
|
129
|
+
content: /* @__PURE__ */ r(e, { children: [a !== "none" && /* @__PURE__ */ r("i", { "aria-hidden": "true" }), n] })
|
|
130
|
+
});
|
|
131
|
+
return /* @__PURE__ */ r("span", {
|
|
132
|
+
ref: l,
|
|
133
|
+
...u,
|
|
134
|
+
...t ? d.triggerProps : {},
|
|
135
|
+
onKeyDown: (e) => {
|
|
136
|
+
d.triggerProps.onKeyDown(e), e.defaultPrevented || c?.(e);
|
|
137
|
+
},
|
|
138
|
+
onFocus: (e) => {
|
|
139
|
+
s?.(e), t && d.triggerProps.onFocus(e);
|
|
140
|
+
},
|
|
141
|
+
children: [o, t && d.tooltip]
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
export { c as i, f as n, o as r, d as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/
|
|
2
|
-
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0
|
|
1
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/check.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=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/chevron-left.svg?raw
|
|
2
|
-
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>";
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>", t = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>";
|
|
3
3
|
//#endregion
|
|
4
|
-
export { e as t };
|
|
4
|
+
export { e as n, t };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { i as e, r as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { n as i } from "./popover-controller-D-AvKQ7B.js";
|
|
4
|
+
import { SvgIcon as a } from "../icons/icon.js";
|
|
5
|
+
import { t as o } from "./native-control-B_fVA5bL.js";
|
|
6
|
+
import { RemoveButton as s } from "../buttons/remove-button.js";
|
|
7
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-info.svg?raw
|
|
8
|
+
var c = "<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=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z\"/></svg>";
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/choice-chips/index.tsx
|
|
11
|
+
function l({ value: i, options: a, onChange: o, ariaLabel: s, appearance: c = "soft", scrollable: l = !1, size: u = "medium", className: f = "", itemClassName: p = "", disabled: m = !1, testId: h }) {
|
|
12
|
+
let g = n(null), [_, v] = e(""), y = () => {
|
|
13
|
+
let e = g.current;
|
|
14
|
+
if (!l || !e) return;
|
|
15
|
+
let t = e.scrollLeft > 1, n = e.scrollWidth - e.clientWidth - e.scrollLeft > 1;
|
|
16
|
+
v(`${t ? "left" : ""} ${n ? "right" : ""}`.trim());
|
|
17
|
+
};
|
|
18
|
+
t(() => {
|
|
19
|
+
if (!l || !g.current || (y(), typeof ResizeObserver > "u")) return;
|
|
20
|
+
let e = new ResizeObserver(y);
|
|
21
|
+
e.observe(g.current);
|
|
22
|
+
for (let t of g.current.children) e.observe(t);
|
|
23
|
+
return () => e.disconnect();
|
|
24
|
+
}, [l, a]);
|
|
25
|
+
let b = Array.isArray(i) ? i : i === void 0 ? [] : [i];
|
|
26
|
+
return /* @__PURE__ */ r("div", {
|
|
27
|
+
ref: g,
|
|
28
|
+
onScroll: l ? y : void 0,
|
|
29
|
+
"data-scroll-edges": l ? _ : void 0,
|
|
30
|
+
class: `rv-choice-chips rv-choice-chips--${c} rv-choice-chips--${u}${l ? " rv-choice-chips--scrollable" : ""} ${f}`.trim(),
|
|
31
|
+
role: "group",
|
|
32
|
+
"aria-label": s,
|
|
33
|
+
"data-testid": h,
|
|
34
|
+
children: a.map((e) => {
|
|
35
|
+
let t = b.includes(e.value), n = m || !!e.disabled;
|
|
36
|
+
return /* @__PURE__ */ r(d, {
|
|
37
|
+
className: `${p} ${e.className ?? ""}`.trim(),
|
|
38
|
+
style: e.style,
|
|
39
|
+
color: e.color,
|
|
40
|
+
selected: t,
|
|
41
|
+
"aria-label": e.ariaLabel,
|
|
42
|
+
title: e.title,
|
|
43
|
+
disabled: n,
|
|
44
|
+
"data-value": String(e.value),
|
|
45
|
+
"data-testid": e.testId,
|
|
46
|
+
onSelect: () => {
|
|
47
|
+
n || o(e.value, e);
|
|
48
|
+
},
|
|
49
|
+
info: e.info,
|
|
50
|
+
onRemove: e.onRemove,
|
|
51
|
+
removeLabel: e.removeLabel,
|
|
52
|
+
children: e.label
|
|
53
|
+
}, String(e.value));
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function u({ "data-tooltip": e, title: s, ref: l, ...u }) {
|
|
58
|
+
let d = n(null), f = e ?? (typeof s == "object" ? s.value : s);
|
|
59
|
+
return t(() => {
|
|
60
|
+
if (!d.current || !f) return;
|
|
61
|
+
let e = new i();
|
|
62
|
+
return e.bind(d.current, f, { trigger: "click" }), () => e.destroy();
|
|
63
|
+
}, [f]), /* @__PURE__ */ r(o, {
|
|
64
|
+
...u,
|
|
65
|
+
type: "button",
|
|
66
|
+
ref: (e) => {
|
|
67
|
+
d.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
68
|
+
},
|
|
69
|
+
class: `rv-choice-chip-info ${u.className ?? u.class ?? ""}`.trim(),
|
|
70
|
+
children: /* @__PURE__ */ r(a, {
|
|
71
|
+
svg: c,
|
|
72
|
+
size: 12
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function d({ children: e, color: t, selected: n, onSelect: i, info: a, onRemove: o, removeLabel: c, removeClassName: l = "", className: u = "", disabled: d, ...f }) {
|
|
77
|
+
let p = t ? typeof f.style == "string" ? `${f.style};--rv-choice-chip-color:${t}` : {
|
|
78
|
+
...f.style,
|
|
79
|
+
"--rv-choice-chip-color": t
|
|
80
|
+
} : f.style;
|
|
81
|
+
return !a && !o && i ? /* @__PURE__ */ r("button", {
|
|
82
|
+
...f,
|
|
83
|
+
style: p,
|
|
84
|
+
"data-color": t ? "true" : void 0,
|
|
85
|
+
type: "button",
|
|
86
|
+
class: `rv-choice-chip ${u}`.trim(),
|
|
87
|
+
"aria-pressed": n,
|
|
88
|
+
disabled: d,
|
|
89
|
+
onClick: i,
|
|
90
|
+
children: e
|
|
91
|
+
}) : /* @__PURE__ */ r("span", {
|
|
92
|
+
class: `rv-choice-chip rv-choice-chip--composite ${u}`.trim(),
|
|
93
|
+
role: f.role,
|
|
94
|
+
style: p,
|
|
95
|
+
"data-color": t ? "true" : void 0,
|
|
96
|
+
"data-selected": n ? "true" : void 0,
|
|
97
|
+
"aria-disabled": d || void 0,
|
|
98
|
+
children: [
|
|
99
|
+
i ? /* @__PURE__ */ r("button", {
|
|
100
|
+
...f,
|
|
101
|
+
type: "button",
|
|
102
|
+
class: "rv-choice-chip-label",
|
|
103
|
+
"aria-pressed": n,
|
|
104
|
+
disabled: d,
|
|
105
|
+
onClick: i,
|
|
106
|
+
children: e
|
|
107
|
+
}) : /* @__PURE__ */ r("span", {
|
|
108
|
+
class: "rv-choice-chip-label",
|
|
109
|
+
children: e
|
|
110
|
+
}),
|
|
111
|
+
a,
|
|
112
|
+
o && /* @__PURE__ */ r(s, {
|
|
113
|
+
compact: !0,
|
|
114
|
+
className: l,
|
|
115
|
+
disabled: typeof d == "object" ? d.value : d,
|
|
116
|
+
locale: {
|
|
117
|
+
title: c ?? "Remove",
|
|
118
|
+
ariaLabel: c ?? "Remove"
|
|
119
|
+
},
|
|
120
|
+
onClick: o
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
export { u as n, l as r, d as t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/regular/clock.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=\"M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as t };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { n as t } from "./
|
|
3
|
-
import {
|
|
2
|
+
import { n as t } from "./tooltip-D4xkio5G.js";
|
|
3
|
+
import { t as n } from "./check-BwI7iCAm.js";
|
|
4
|
+
import { DEFAULT_COLOR_PALETTE_OPTIONS as r } from "../color-palette/palette.js";
|
|
4
5
|
//#region src/color-palette/color-model.ts
|
|
5
|
-
function
|
|
6
|
+
function i(e) {
|
|
6
7
|
if (!e) return;
|
|
7
8
|
let t = e.trim().toLowerCase(), n = /^#([\da-f])([\da-f])([\da-f])$/i.exec(t);
|
|
8
9
|
return n ? `#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}` : /^#[\da-f]{6}$/i.test(t) ? t : void 0;
|
|
9
10
|
}
|
|
10
|
-
function
|
|
11
|
+
function a(e) {
|
|
11
12
|
if (![
|
|
12
13
|
"ArrowRight",
|
|
13
14
|
"ArrowDown",
|
|
@@ -22,38 +23,35 @@ function i(e) {
|
|
|
22
23
|
e.preventDefault(), r[a]?.focus();
|
|
23
24
|
}
|
|
24
25
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/check.svg?raw
|
|
26
|
-
var a = "<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=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>";
|
|
27
|
-
//#endregion
|
|
28
26
|
//#region src/color-palette/color-palette.tsx
|
|
29
|
-
function o({ value: t, options:
|
|
30
|
-
let m =
|
|
27
|
+
function o({ value: t, options: i = r, ariaLabel: o, defaultLabel: c, colorAriaLabel: l, disabled: u = !1, includeDefault: d = !0, defaultDisabled: f = !1, onChange: p }) {
|
|
28
|
+
let m = i.findIndex((e) => e.value === t && !e.disabled), h = i.findIndex((e) => !e.disabled), g = d && !f, _ = a;
|
|
31
29
|
return /* @__PURE__ */ e("div", {
|
|
32
30
|
class: "rv-color-palette",
|
|
33
31
|
role: "radiogroup",
|
|
34
32
|
"aria-label": o,
|
|
35
33
|
children: [/* @__PURE__ */ e("div", {
|
|
36
34
|
class: "rv-color-palette__swatches",
|
|
37
|
-
children:
|
|
38
|
-
let
|
|
35
|
+
children: i.map((r, i) => {
|
|
36
|
+
let a = r.value === t, o = l(r);
|
|
39
37
|
return /* @__PURE__ */ e(s, {
|
|
40
38
|
type: "button",
|
|
41
39
|
role: "radio",
|
|
42
40
|
class: "rv-color-palette__swatch",
|
|
43
|
-
"data-rv-color-palette-value":
|
|
41
|
+
"data-rv-color-palette-value": r.value,
|
|
44
42
|
label: o,
|
|
45
|
-
"aria-checked":
|
|
46
|
-
disabled: u ||
|
|
47
|
-
tabIndex: !u && (
|
|
48
|
-
style: { "--rv-color-palette-color":
|
|
43
|
+
"aria-checked": a ? "true" : "false",
|
|
44
|
+
disabled: u || r.disabled,
|
|
45
|
+
tabIndex: !u && (i === m || m < 0 && (!g || t !== null) && i === h) ? 0 : -1,
|
|
46
|
+
style: { "--rv-color-palette-color": r.value },
|
|
49
47
|
onKeyDown: _,
|
|
50
|
-
onClick: () => p(
|
|
51
|
-
children:
|
|
48
|
+
onClick: () => p(r.value),
|
|
49
|
+
children: a ? /* @__PURE__ */ e("span", {
|
|
52
50
|
class: "rv-color-palette__check",
|
|
53
51
|
"aria-hidden": "true",
|
|
54
|
-
dangerouslySetInnerHTML: { __html:
|
|
52
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
55
53
|
}) : null
|
|
56
|
-
},
|
|
54
|
+
}, r.value);
|
|
57
55
|
})
|
|
58
56
|
}), d ? /* @__PURE__ */ e(s, {
|
|
59
57
|
type: "button",
|
|
@@ -69,7 +67,7 @@ function o({ value: t, options: r = n, ariaLabel: o, defaultLabel: c, colorAriaL
|
|
|
69
67
|
children: [t === null ? /* @__PURE__ */ e("span", {
|
|
70
68
|
class: "rv-color-palette__default-check",
|
|
71
69
|
"aria-hidden": "true",
|
|
72
|
-
dangerouslySetInnerHTML: { __html:
|
|
70
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
73
71
|
}) : null, /* @__PURE__ */ e("span", {
|
|
74
72
|
class: "rv-color-palette__default-label",
|
|
75
73
|
children: c
|
|
@@ -91,4 +89,4 @@ function s({ label: n, children: r, onKeyDown: i, disabled: a, ...o }) {
|
|
|
91
89
|
});
|
|
92
90
|
}
|
|
93
91
|
//#endregion
|
|
94
|
-
export {
|
|
92
|
+
export { i as n, o as t };
|