@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/brush-range/component.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { t } from "../_chunks/tooltip-text-BXsUEmBH.js";
|
|
3
|
+
import { PreactRangeSlider as n } from "../filter/filters/slider/preact.js";
|
|
4
|
+
import { DistributionChart as r } from "../distribution-chart/index.js";
|
|
4
5
|
//#region src/brush-range/component.tsx
|
|
5
6
|
function i(...e) {
|
|
6
7
|
return e.filter(Boolean).join(" ");
|
|
@@ -8,37 +9,36 @@ function i(...e) {
|
|
|
8
9
|
function a(e) {
|
|
9
10
|
return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
|
|
10
11
|
}
|
|
11
|
-
function o({ chart: o, slider: s, startLabel: c, selectionLabel: l, endLabel: u
|
|
12
|
-
|
|
13
|
-
return /* @__PURE__ */ r("div", {
|
|
12
|
+
function o({ chart: o, slider: s, startLabel: c, selectionLabel: l, endLabel: u }) {
|
|
13
|
+
return /* @__PURE__ */ e("div", {
|
|
14
14
|
class: "brush-range",
|
|
15
15
|
children: [
|
|
16
|
-
o ? /* @__PURE__ */
|
|
16
|
+
o ? /* @__PURE__ */ e(r, {
|
|
17
17
|
...o,
|
|
18
|
-
className: i("brush-range__chart",
|
|
18
|
+
className: i("brush-range__chart", o.className)
|
|
19
19
|
}) : null,
|
|
20
|
-
/* @__PURE__ */ n
|
|
20
|
+
/* @__PURE__ */ e(n, {
|
|
21
21
|
...s,
|
|
22
|
-
className: i("brush-range__range",
|
|
23
|
-
controlClassName: i("brush-range__controls",
|
|
24
|
-
fromClassName:
|
|
25
|
-
toClassName:
|
|
22
|
+
className: i("brush-range__range", s.className),
|
|
23
|
+
controlClassName: i("brush-range__controls", s.controlClassName),
|
|
24
|
+
fromClassName: s.fromClassName,
|
|
25
|
+
toClassName: s.toClassName
|
|
26
26
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
class:
|
|
27
|
+
/* @__PURE__ */ e("div", {
|
|
28
|
+
class: "brush-range__labels",
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ e(t, {
|
|
31
31
|
class: "brush-range__label brush-range__label--start",
|
|
32
32
|
title: a(c),
|
|
33
33
|
children: c
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
class: i("brush-range__label", "brush-range__selection"
|
|
35
|
+
/* @__PURE__ */ e(t, {
|
|
36
|
+
class: i("brush-range__label", "brush-range__selection"),
|
|
37
37
|
role: "status",
|
|
38
38
|
title: a(l),
|
|
39
39
|
children: l
|
|
40
40
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ e(t, {
|
|
42
42
|
class: "brush-range__label brush-range__label--end",
|
|
43
43
|
title: a(u),
|
|
44
44
|
children: u
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const DeleteButton: ({ onClick, disabled, className, onMouseDown, onDblClick, locale, }: {
|
|
1
|
+
export declare const DeleteButton: ({ onClick, disabled, rounded, className, onMouseDown, onDblClick, locale, }: {
|
|
2
2
|
onClick: (e: MouseEvent) => void;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
+
rounded?: boolean;
|
|
4
5
|
onMouseDown?: (event: MouseEvent) => void;
|
|
5
6
|
onDblClick?: (event: MouseEvent) => void;
|
|
6
7
|
className?: string;
|
package/buttons/delete-button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DeleteButton } from "../_chunks/delete-button-
|
|
1
|
+
export { t as DeleteButton } from "../_chunks/delete-button-CW9vjLnk.js";
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
color: var(--rv-ui-btn-danger-outline);
|
|
10
10
|
background: transparent;
|
|
11
11
|
border-radius: var(--rv-ui-radius, 6px);
|
|
12
|
-
&:hover:not(:disabled) {
|
|
13
|
-
|
|
12
|
+
&:hover:not(:disabled) {
|
|
13
|
+
background: var(--rv-ui-btn-danger-outline-hover);
|
|
14
|
+
}
|
|
15
|
+
svg {
|
|
16
|
+
fill: currentColor;
|
|
17
|
+
}
|
|
14
18
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { DeleteButton } from './delete-button';
|
|
3
3
|
export type RemoveButtonProps = Parameters<typeof DeleteButton>[0] & {
|
|
4
4
|
/** Compact hit area for an action embedded inside a selected-value chip. */
|
|
5
5
|
compact?: boolean;
|
|
6
6
|
};
|
|
7
|
-
/** Neutral close/remove action; DeleteButton
|
|
7
|
+
/** Neutral close/remove action; DeleteButton uses destructive action styling. */
|
|
8
8
|
export declare function RemoveButton({ compact, className, ...props }: RemoveButtonProps): h.JSX.Element;
|
package/buttons/remove-button.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { t } from "../_chunks/delete-button-CW9vjLnk.js";
|
|
3
3
|
//#region src/buttons/remove-button.tsx
|
|
4
4
|
function n({ compact: n = !1, className: r = "", ...i }) {
|
|
5
|
-
return /* @__PURE__ */ t
|
|
5
|
+
return /* @__PURE__ */ e(t, {
|
|
6
6
|
...i,
|
|
7
7
|
className: `rv-remove-button${n ? " rv-remove-button--compact" : ""} ${r}`
|
|
8
8
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use '../styles/icon-action';
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// Neutral remove actions override destructive button styling.
|
|
4
4
|
button.remove-btn.rv-remove-button {
|
|
5
5
|
@include icon-action.neutral;
|
|
6
6
|
&.rv-remove-button--compact {
|
package/buttons/svg-button.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX } from '../_vendor/preact/src/index';
|
|
2
2
|
export interface SvgButtonProps extends Omit<JSX.IntrinsicElements['button'], 'className' | 'children'> {
|
|
3
3
|
readonly label: string;
|
|
4
|
+
readonly rounded?: boolean;
|
|
4
5
|
readonly busy?: boolean;
|
|
5
6
|
/** Explicit variants retain shared appearance when consumer classes are supplied. */
|
|
6
7
|
readonly variant?: 'link' | 'ghost' | 'solid';
|
|
@@ -15,4 +16,4 @@ export interface SvgButtonProps extends Omit<JSX.IntrinsicElements['button'], 'c
|
|
|
15
16
|
readonly children?: ComponentChildren;
|
|
16
17
|
}
|
|
17
18
|
/** Shared native button presentation for trusted bundled SVG controls. */
|
|
18
|
-
export declare function SvgButton({ label, variant, icon, visibleLabel, className, iconClassName, labelClassName, children, iconContent, badge, badgeClassName, class: nativeClass, disabled, ...attributes }: SvgButtonProps): h.JSX.Element;
|
|
19
|
+
export declare function SvgButton({ label, variant, icon, visibleLabel, className, iconClassName, labelClassName, children, iconContent, badge, badgeClassName, class: nativeClass, disabled, title, ...attributes }: SvgButtonProps): h.JSX.Element;
|
package/buttons/svg-button.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
+
import { t as n } from "../_chunks/native-control-B9MNibfa.js";
|
|
4
|
+
import { controlClassName as r } from "../control-attributes.js";
|
|
5
|
+
import { n as i } from "../_chunks/tooltip-D4xkio5G.js";
|
|
6
6
|
//#region src/buttons/svg-button.tsx
|
|
7
|
-
function
|
|
8
|
-
let b =
|
|
7
|
+
function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _, title: v, ...y }) {
|
|
8
|
+
let b = i(typeof v == "string" ? v : a, !0, {
|
|
9
9
|
className: "rv-control-tooltip",
|
|
10
10
|
placement: "above"
|
|
11
11
|
});
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ e(n, {
|
|
13
13
|
type: "button",
|
|
14
|
-
"aria-label":
|
|
14
|
+
"aria-label": m === void 0 ? a : `${a} ${m}`,
|
|
15
15
|
...y,
|
|
16
|
-
disabled:
|
|
16
|
+
disabled: _,
|
|
17
17
|
...b.triggerProps,
|
|
18
18
|
"aria-describedby": [y["aria-describedby"], b.id].filter(Boolean).join(" "),
|
|
19
19
|
onFocus: (e) => {
|
|
@@ -40,25 +40,25 @@ function o({ label: o, variant: s, icon: c, visibleLabel: l, className: u, iconC
|
|
|
40
40
|
onClick: (e) => {
|
|
41
41
|
b.hide(), y.onClick?.(e);
|
|
42
42
|
},
|
|
43
|
-
class:
|
|
43
|
+
class: r(l ?? (o ? "" : "rv-btn-ghost"), o && `rv-btn-${o}`, g, "rv-icon-action", !c && "rv-btn-icon"),
|
|
44
44
|
children: [
|
|
45
|
-
|
|
46
|
-
svg:
|
|
47
|
-
className:
|
|
48
|
-
}) :
|
|
49
|
-
|
|
50
|
-
class:
|
|
51
|
-
children:
|
|
45
|
+
s ? /* @__PURE__ */ e(t, {
|
|
46
|
+
svg: s,
|
|
47
|
+
className: u
|
|
48
|
+
}) : p,
|
|
49
|
+
c ? /* @__PURE__ */ e("span", {
|
|
50
|
+
class: d,
|
|
51
|
+
children: c
|
|
52
52
|
}) : null,
|
|
53
|
-
|
|
54
|
-
class: `rv-badge ${
|
|
53
|
+
m !== void 0 && /* @__PURE__ */ e("span", {
|
|
54
|
+
class: `rv-badge ${h}`,
|
|
55
55
|
"aria-hidden": "true",
|
|
56
|
-
children:
|
|
56
|
+
children: m
|
|
57
57
|
}),
|
|
58
|
-
|
|
58
|
+
f,
|
|
59
59
|
b.tooltip
|
|
60
60
|
]
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
|
-
export {
|
|
64
|
+
export { a as SvgButton };
|
package/calendar/_calendar.scss
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
font: inherit;
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
transition:
|
|
36
|
-
background-color var(--rv-ui-motion-fast, 120ms)
|
|
36
|
+
background-color var(--rv-ui-motion-fast, 120ms)
|
|
37
|
+
var(--rv-ui-motion-ease, ease-out),
|
|
37
38
|
color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out),
|
|
38
39
|
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
|
|
39
40
|
}
|
|
@@ -114,11 +115,11 @@
|
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
.revo-calendar__month.active {
|
|
117
|
-
background: var(
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
background: var(--revo-grid-filter-active-badge-bg, var(--rv-ui-selected-bg));
|
|
119
|
+
color: var(
|
|
120
|
+
--rv-filter-active-icon-color,
|
|
121
|
+
var(--rv-ui-selected-accent-fg, var(--rv-ui-accent-text))
|
|
120
122
|
);
|
|
121
|
-
color: var(--rv-filter-active-icon-color, var(--rv-ui-selected-accent-fg, var(--rv-ui-accent-text)));
|
|
122
123
|
font-weight: 500;
|
|
123
124
|
}
|
|
124
125
|
|
|
@@ -142,10 +143,7 @@
|
|
|
142
143
|
|
|
143
144
|
.revo-calendar__weekdays span {
|
|
144
145
|
min-height: 18px;
|
|
145
|
-
color: var(
|
|
146
|
-
--revo-grid-filter-popup-label-color,
|
|
147
|
-
var(--rv-ui-text-muted)
|
|
148
|
-
);
|
|
146
|
+
color: var(--revo-grid-filter-popup-label-color, var(--rv-ui-text-muted));
|
|
149
147
|
font-size: 11px;
|
|
150
148
|
font-weight: 500;
|
|
151
149
|
line-height: 18px;
|
|
@@ -163,10 +161,7 @@
|
|
|
163
161
|
}
|
|
164
162
|
|
|
165
163
|
.revo-calendar__day.outside {
|
|
166
|
-
color: var(
|
|
167
|
-
--revo-grid-filter-popup-label-color,
|
|
168
|
-
var(--rv-ui-text-muted)
|
|
169
|
-
);
|
|
164
|
+
color: var(--revo-grid-filter-popup-label-color, var(--rv-ui-text-muted));
|
|
170
165
|
opacity: 1;
|
|
171
166
|
}
|
|
172
167
|
|
|
@@ -181,10 +176,7 @@
|
|
|
181
176
|
}
|
|
182
177
|
|
|
183
178
|
.revo-calendar__day.in-range {
|
|
184
|
-
background: var(
|
|
185
|
-
--revo-grid-filter-active-badge-bg,
|
|
186
|
-
var(--rv-ui-selected-bg)
|
|
187
|
-
);
|
|
179
|
+
background: var(--revo-grid-filter-active-badge-bg, var(--rv-ui-selected-bg));
|
|
188
180
|
}
|
|
189
181
|
|
|
190
182
|
.revo-calendar__day.in-preview:not(.in-range) {
|
|
@@ -248,8 +240,7 @@
|
|
|
248
240
|
.revo-calendar__month:focus-visible,
|
|
249
241
|
.revo-calendar__today:focus-visible {
|
|
250
242
|
z-index: 1;
|
|
251
|
-
outline: 2px solid
|
|
252
|
-
var(--rv-filter-active-icon-color, var(--rv-ui-accent));
|
|
243
|
+
outline: 2px solid var(--rv-filter-active-icon-color, var(--rv-ui-accent));
|
|
253
244
|
outline-offset: 1px;
|
|
254
245
|
}
|
|
255
246
|
|
|
@@ -292,15 +283,20 @@
|
|
|
292
283
|
gap: 2px;
|
|
293
284
|
min-width: 0;
|
|
294
285
|
}
|
|
295
|
-
.revo-calendar__caption .
|
|
286
|
+
.revo-calendar__caption .dropdown-container {
|
|
287
|
+
flex: 1 1 0;
|
|
296
288
|
min-width: 0;
|
|
297
|
-
width: auto;
|
|
298
289
|
max-width: 58%;
|
|
290
|
+
}
|
|
291
|
+
.revo-calendar__caption .rv-select .dropdown-trigger {
|
|
292
|
+
min-width: 0;
|
|
293
|
+
width: 100%;
|
|
294
|
+
max-width: 100%;
|
|
299
295
|
min-height: var(--calendar-cell-size);
|
|
300
296
|
height: var(--calendar-cell-size);
|
|
301
297
|
padding-block: 2px;
|
|
302
298
|
padding-inline-start: 4px;
|
|
303
|
-
font-size:
|
|
299
|
+
font-size: var(--rv-control-font-size, 0.875rem);
|
|
304
300
|
background-color: transparent;
|
|
305
301
|
border-color: transparent;
|
|
306
302
|
}
|
|
@@ -341,21 +337,26 @@
|
|
|
341
337
|
color: var(--rv-ui-danger);
|
|
342
338
|
// Keep disabled dates from punching faded holes through the preview band.
|
|
343
339
|
opacity: 1;
|
|
344
|
-
&.disabled {
|
|
340
|
+
&.disabled {
|
|
341
|
+
text-decoration: line-through;
|
|
342
|
+
}
|
|
345
343
|
// A connected band: shared horizontal edges, caps only at the real endpoints.
|
|
346
344
|
box-shadow: none;
|
|
347
345
|
border-radius: 0;
|
|
348
|
-
border-block: 1px solid
|
|
346
|
+
border-block: 1px solid
|
|
347
|
+
color-mix(in srgb, var(--rv-ui-danger) 32%, transparent);
|
|
349
348
|
border-inline: 0;
|
|
350
349
|
&.preview-start {
|
|
351
350
|
border-start-start-radius: 7px;
|
|
352
351
|
border-end-start-radius: 7px;
|
|
353
|
-
border-inline-start: 1px solid
|
|
352
|
+
border-inline-start: 1px solid
|
|
353
|
+
color-mix(in srgb, var(--rv-ui-danger) 32%, transparent);
|
|
354
354
|
}
|
|
355
355
|
&.preview-end {
|
|
356
356
|
border-start-end-radius: 7px;
|
|
357
357
|
border-end-end-radius: 7px;
|
|
358
|
-
border-inline-end: 1px solid
|
|
358
|
+
border-inline-end: 1px solid
|
|
359
|
+
color-mix(in srgb, var(--rv-ui-danger) 32%, transparent);
|
|
359
360
|
}
|
|
360
361
|
}
|
|
361
362
|
.revo-calendar__feedback {
|
package/calendar/calendar.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { CalendarProps } from './types';
|
|
3
3
|
export declare function Calendar({ locale, weekStartsOn, showOutsideDays, allowOutsideMonthSelection, fixedWeeks, showTodayButton, showHeader, showNavigation, showPreviousButton, showNextButton, showMonthLabel, showWeekdays, enableYearView, translations, ...props }: CalendarProps): h.JSX.Element;
|
package/calendar/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Calendar } from "../_chunks/calendar-
|
|
1
|
+
export { t as Calendar } from "../_chunks/calendar-DJqiFwFT.js";
|
package/calendar/caption.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString, DisplayCalendarSystem } from '../_shared/dates/index';
|
|
3
3
|
import { CalendarProps, CalendarTranslations } from './types';
|
|
4
4
|
export declare function CalendarCaption({ month, system, locale, layout, start, end, disabled, labels, onChange, }: {
|
package/calendar/day.d.ts
CHANGED
package/calendar/day.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { c as t } from "../_chunks/iso-B0YHBK7m.js";
|
|
3
3
|
//#region src/calendar/day.tsx
|
|
4
4
|
function n(n) {
|
|
5
5
|
let r = [
|
|
@@ -15,7 +15,7 @@ function n(n) {
|
|
|
15
15
|
n.previewStart && "preview-start",
|
|
16
16
|
n.previewEnd && "preview-end"
|
|
17
17
|
].filter(Boolean).join(" ");
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ e("button", {
|
|
19
19
|
ref: (e) => n.setRef(n.date, e),
|
|
20
20
|
type: "button",
|
|
21
21
|
role: "gridcell",
|
|
@@ -36,7 +36,7 @@ function n(n) {
|
|
|
36
36
|
onMouseLeave: () => n.onPreview(),
|
|
37
37
|
onKeyDown: (e) => n.onKeyDown(e, n.date),
|
|
38
38
|
onClick: () => n.onSelect(n.date),
|
|
39
|
-
children: n.content ??
|
|
39
|
+
children: n.content ?? t(n.date).getUTCDate()
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
package/calendar/header.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren } from 'preact';
|
|
1
|
+
import { h, ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString } from '../_shared/dates/index';
|
|
3
3
|
export declare function CalendarHeader({ label, previousLabel, nextLabel, labelAction, caption, showLabel, showPrevious, showNext, previousDisabled, nextDisabled, onPrevious, onNext, }: {
|
|
4
4
|
label: string;
|
package/calendar/header.js
CHANGED
|
@@ -1,61 +1,60 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/
|
|
2
|
-
import { t } from "../_chunks/chevron-right-
|
|
3
|
-
import { jsx as n, jsxs as r } from "preact/jsx-runtime";
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { n as t, t as n } from "../_chunks/chevron-right-CM3ljziP.js";
|
|
4
3
|
//#region src/calendar/header.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
4
|
+
function r({ label: r, previousLabel: i, nextLabel: a, labelAction: o, caption: s, showLabel: c = !0, showPrevious: l = !0, showNext: u = !0, previousDisabled: d = !1, nextDisabled: f = !1, onPrevious: p, onNext: m }) {
|
|
5
|
+
return /* @__PURE__ */ e("header", {
|
|
7
6
|
class: "revo-calendar__header",
|
|
8
7
|
children: [
|
|
9
|
-
|
|
8
|
+
l ? /* @__PURE__ */ e("button", {
|
|
10
9
|
type: "button",
|
|
11
|
-
"aria-label":
|
|
12
|
-
disabled:
|
|
13
|
-
onClick:
|
|
14
|
-
children: /* @__PURE__ */
|
|
10
|
+
"aria-label": i,
|
|
11
|
+
disabled: d,
|
|
12
|
+
onClick: p,
|
|
13
|
+
children: /* @__PURE__ */ e("span", {
|
|
15
14
|
"aria-hidden": "true",
|
|
16
|
-
dangerouslySetInnerHTML: { __html:
|
|
15
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
17
16
|
})
|
|
18
|
-
}) : /* @__PURE__ */
|
|
19
|
-
|
|
17
|
+
}) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
|
|
18
|
+
c && s ? s : c && o ? /* @__PURE__ */ e("button", {
|
|
20
19
|
type: "button",
|
|
21
20
|
class: "revo-calendar__month-label revo-calendar__month-label-button",
|
|
22
|
-
"aria-label":
|
|
23
|
-
onClick:
|
|
24
|
-
children: /* @__PURE__ */
|
|
21
|
+
"aria-label": o.ariaLabel,
|
|
22
|
+
onClick: o.onClick,
|
|
23
|
+
children: /* @__PURE__ */ e("span", {
|
|
25
24
|
"aria-live": "polite",
|
|
26
|
-
children:
|
|
25
|
+
children: r
|
|
27
26
|
})
|
|
28
|
-
}) :
|
|
27
|
+
}) : c ? /* @__PURE__ */ e("strong", {
|
|
29
28
|
class: "revo-calendar__month-label",
|
|
30
29
|
"aria-live": "polite",
|
|
31
|
-
children:
|
|
32
|
-
}) : /* @__PURE__ */
|
|
33
|
-
|
|
30
|
+
children: r
|
|
31
|
+
}) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
|
|
32
|
+
u ? /* @__PURE__ */ e("button", {
|
|
34
33
|
type: "button",
|
|
35
|
-
"aria-label":
|
|
36
|
-
disabled:
|
|
37
|
-
onClick:
|
|
38
|
-
children: /* @__PURE__ */
|
|
34
|
+
"aria-label": a,
|
|
35
|
+
disabled: f,
|
|
36
|
+
onClick: m,
|
|
37
|
+
children: /* @__PURE__ */ e("span", {
|
|
39
38
|
"aria-hidden": "true",
|
|
40
|
-
dangerouslySetInnerHTML: { __html:
|
|
39
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
41
40
|
})
|
|
42
|
-
}) : /* @__PURE__ */
|
|
41
|
+
}) : /* @__PURE__ */ e("span", { "aria-hidden": "true" })
|
|
43
42
|
]
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
|
-
function
|
|
47
|
-
return /* @__PURE__ */
|
|
45
|
+
function i({ dates: t, locale: n, format: r, weekNumberLabel: i }) {
|
|
46
|
+
return /* @__PURE__ */ e("div", {
|
|
48
47
|
class: "revo-calendar__weekdays",
|
|
49
48
|
role: "row",
|
|
50
|
-
children: [
|
|
49
|
+
children: [i && /* @__PURE__ */ e("span", {
|
|
51
50
|
role: "columnheader",
|
|
52
|
-
"aria-label":
|
|
51
|
+
"aria-label": i,
|
|
53
52
|
children: "#"
|
|
54
|
-
}),
|
|
53
|
+
}), t.map((t) => /* @__PURE__ */ e("span", {
|
|
55
54
|
role: "columnheader",
|
|
56
|
-
children:
|
|
57
|
-
},
|
|
55
|
+
children: r(t, n)
|
|
56
|
+
}, t))]
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
//#endregion
|
|
61
|
-
export {
|
|
60
|
+
export { r as CalendarHeader, i as CalendarWeekdays };
|
package/calendar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_CALENDAR_TRANSLATIONS as e } from "./translations.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "../_chunks/model-mPO2tG2f.js";
|
|
3
3
|
import { CalendarHeader as s, CalendarWeekdays as c } from "./header.js";
|
|
4
|
-
import { t as l } from "../_chunks/calendar-
|
|
4
|
+
import { t as l } from "../_chunks/calendar-DJqiFwFT.js";
|
|
5
5
|
import { CalendarDay as u } from "./day.js";
|
|
6
6
|
import { CalendarMonthGrid as d } from "./month-grid.js";
|
|
7
7
|
import { CalendarYearGrid as f } from "./year-grid.js";
|
|
8
|
-
import { t as p } from "../_chunks/picker-
|
|
8
|
+
import { t as p } from "../_chunks/picker-DqpjDC90.js";
|
|
9
9
|
export { l as Calendar, u as CalendarDay, s as CalendarHeader, d as CalendarMonthGrid, p as CalendarPicker, c as CalendarWeekdays, f as CalendarYearGrid, e as DEFAULT_CALENDAR_TRANSLATIONS, o as createCalendarMonth, r as isCalendarDateDisabled, a as isCalendarMonthDisabled, n as isDateInCalendarRange, t as moveCalendarFocus, i as orderCalendarRange };
|
package/calendar/month-grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren } from 'preact';
|
|
1
|
+
import { h, ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString, DisplayCalendarSystem } from '../_shared/dates/index';
|
|
3
3
|
import { CalendarDateRange, CalendarDayContext } from './types';
|
|
4
4
|
export declare function CalendarMonthGrid({ dates, system, selectedDates, visibleMonths, weekNumber, weekNumberLabel, month, focusedDate, referenceDate, selection, preview, previewInvalid, previewDescriptionId, showOutsideDays, allowOutsideMonthSelection, dayClassName, renderDay, isDisabled, formatDayLabel, setDayRef, onFocus, onPreview, onKeyDown, onSelect, }: {
|
package/calendar/month-grid.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { f as t, i as n } from "../_chunks/model-mPO2tG2f.js";
|
|
3
|
+
import { CalendarDay as r } from "./day.js";
|
|
4
4
|
//#region src/calendar/month-grid.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function i({ dates: i, system: a = "gregory", selectedDates: o, visibleMonths: s, weekNumber: c, weekNumberLabel: l = "Week number", month: u, focusedDate: d, referenceDate: f, selection: p, preview: m, previewInvalid: h, previewDescriptionId: g, showOutsideDays: _, allowOutsideMonthSelection: v, dayClassName: y, renderDay: b, isDisabled: x, formatDayLabel: S, setDayRef: C, onFocus: w, onPreview: T, onKeyDown: E, onSelect: D }) {
|
|
6
|
+
return /* @__PURE__ */ e("div", {
|
|
7
7
|
class: "revo-calendar__month-grid",
|
|
8
|
-
children: Array.from({ length:
|
|
8
|
+
children: Array.from({ length: i.length / 7 }, (O, k) => /* @__PURE__ */ e("div", {
|
|
9
9
|
class: "revo-calendar__week",
|
|
10
10
|
role: "row",
|
|
11
|
-
"aria-hidden": !
|
|
12
|
-
children: [
|
|
11
|
+
"aria-hidden": !c && i.slice(k * 7, k * 7 + 7).every((e) => t(e, a) !== u && (!_ || s?.includes(t(e, a)))) || void 0,
|
|
12
|
+
children: [c && /* @__PURE__ */ e("span", {
|
|
13
13
|
class: "revo-calendar__week-number",
|
|
14
14
|
role: "rowheader",
|
|
15
|
-
"aria-label": `${
|
|
16
|
-
children:
|
|
17
|
-
}),
|
|
18
|
-
let
|
|
19
|
-
outside:
|
|
20
|
-
disabled:
|
|
21
|
-
selected: !!
|
|
22
|
-
previewed:
|
|
23
|
-
today: i ===
|
|
15
|
+
"aria-label": `${l} ${c(i[k * 7])}`,
|
|
16
|
+
children: c(i[k * 7])
|
|
17
|
+
}), i.slice(k * 7, k * 7 + 7).map((i) => {
|
|
18
|
+
let c = t(i, a) !== u, l = c && (!_ || !!s?.includes(t(i, a))), O = x(i) || c && !v, k = {
|
|
19
|
+
outside: c,
|
|
20
|
+
disabled: O,
|
|
21
|
+
selected: !!o?.includes(i) || n(i, p),
|
|
22
|
+
previewed: n(i, m),
|
|
23
|
+
today: i === f
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */ r
|
|
25
|
+
return /* @__PURE__ */ e(r, {
|
|
26
26
|
date: i,
|
|
27
|
-
label:
|
|
28
|
-
className: typeof
|
|
29
|
-
outside:
|
|
27
|
+
label: S(i),
|
|
28
|
+
className: typeof y == "function" ? y(i, k) : y,
|
|
29
|
+
outside: c,
|
|
30
30
|
hidden: l,
|
|
31
|
-
disabled:
|
|
32
|
-
focused: i ===
|
|
31
|
+
disabled: O,
|
|
32
|
+
focused: i === d,
|
|
33
33
|
selected: k.selected,
|
|
34
34
|
previewed: k.previewed,
|
|
35
|
-
previewInvalid: k.previewed &&
|
|
36
|
-
previewDescriptionId:
|
|
37
|
-
rangeStart:
|
|
38
|
-
rangeEnd:
|
|
39
|
-
previewStart:
|
|
40
|
-
previewEnd:
|
|
35
|
+
previewInvalid: k.previewed && h,
|
|
36
|
+
previewDescriptionId: g,
|
|
37
|
+
rangeStart: o?.includes(i) || p?.from === i,
|
|
38
|
+
rangeEnd: o?.includes(i) || p?.to === i,
|
|
39
|
+
previewStart: m?.from === i,
|
|
40
|
+
previewEnd: m?.to === i,
|
|
41
41
|
today: k.today,
|
|
42
|
-
content:
|
|
42
|
+
content: b?.(i, k),
|
|
43
43
|
setRef: (e, t) => {
|
|
44
|
-
|
|
44
|
+
c || C(e, t);
|
|
45
45
|
},
|
|
46
|
-
onFocus:
|
|
47
|
-
onPreview:
|
|
48
|
-
onKeyDown:
|
|
49
|
-
onSelect:
|
|
46
|
+
onFocus: w,
|
|
47
|
+
onPreview: T,
|
|
48
|
+
onKeyDown: E,
|
|
49
|
+
onSelect: D
|
|
50
50
|
}, i);
|
|
51
51
|
})]
|
|
52
|
-
},
|
|
52
|
+
}, k))
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
export {
|
|
56
|
+
export { i as CalendarMonthGrid };
|
package/calendar/picker.d.ts
CHANGED
package/calendar/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentChildren } from 'preact';
|
|
1
|
+
import { ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { DisplayCalendarSystem, ISODateString } from '../_shared/dates/index';
|
|
3
3
|
export type CalendarWeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
4
|
export type CalendarView = 'month' | 'year';
|
package/calendar/year-grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { DisplayCalendarSystem, ISODateString } from '../_shared/dates/index';
|
|
3
3
|
export declare function CalendarYearGrid({ month, system, referenceDate, minDate, maxDate, isMonthDisabled, locale, ariaLabel, onSelect, onEscape, }: {
|
|
4
4
|
month: ISODateString;
|