@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/control-presentation.js
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { c as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createPreactElement as n } from "./preact-mount.js";
|
|
4
|
+
import { n as r } from "./_chunks/popover-controller-D-AvKQ7B.js";
|
|
5
|
+
import { controlAttributes as i, controlClassName as a } from "./control-attributes.js";
|
|
6
|
+
//#region src/control-presentation.tsx
|
|
7
|
+
function o(e, t, n, ...r) {
|
|
8
|
+
let a = n ?? {};
|
|
9
|
+
if (t === "button" && a.busy === !0) {
|
|
10
|
+
let n = r.length ? r : [a.children];
|
|
11
|
+
return e(t, i(t, a), e("span", {
|
|
11
12
|
class: "rv-button-spinner",
|
|
12
13
|
"aria-hidden": "true"
|
|
13
|
-
}), ...
|
|
14
|
+
}), ...n);
|
|
14
15
|
}
|
|
15
|
-
return e(
|
|
16
|
+
return e(t, i(t, a), ...r);
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
return i.onChange && !(
|
|
18
|
+
function s(t, r, i = {}) {
|
|
19
|
+
let a = o(e, r, i);
|
|
20
|
+
return i.onChange && !(r === "button" && i.busy) && Object.assign(a.props, { onChange: i.onChange }), n(t, a);
|
|
20
21
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
22
|
+
var c = /* @__PURE__ */ new WeakMap();
|
|
23
|
+
function l(e, t) {
|
|
24
|
+
return c.set(e, t), e;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
return typeof e == "string" ? e : e && (typeof e == "function" || typeof e == "object") ?
|
|
26
|
+
function u(e) {
|
|
27
|
+
return typeof e == "string" ? e : e && (typeof e == "function" || typeof e == "object") ? c.get(e) : void 0;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
var d = /* @__PURE__ */ new WeakMap();
|
|
30
|
+
function f(e, i) {
|
|
31
|
+
e.classList.add("rv-btn", "rv-btn-ghost", "rv-btn-icon"), e.setAttribute("aria-label", i), d.get(e)?.(), e.removeAttribute("title"), e.querySelector(".rv-control-tooltip")?.remove();
|
|
32
|
+
let a = n(e.ownerDocument, /* @__PURE__ */ t("span", {
|
|
30
33
|
class: "rv-control-tooltip",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
role: "tooltip",
|
|
35
|
+
hidden: !0,
|
|
36
|
+
children: i
|
|
37
|
+
}));
|
|
38
|
+
e.append(a), d.set(e, new r().bind(e, i, { surface: a }));
|
|
34
39
|
}
|
|
35
40
|
//#endregion
|
|
36
|
-
export {
|
|
41
|
+
export { i as controlAttributes, a as controlClassName, s as createControl, f as decorateIconAction, u as nativeControlTag, l as registerControl, o as renderControl };
|
package/controls.d.ts
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
3
2
|
import { SegmentedSwitchProps, SegmentedSwitchValue } from './segmented-switch';
|
|
4
3
|
import { EditorPane, EditorSplitLayout } from './editor-layout';
|
|
5
4
|
import { ResizeOptions } from './surfaces';
|
|
6
5
|
type ButtonAttributes = Omit<JSX.IntrinsicElements['button'], 'className'>;
|
|
7
6
|
export type ButtonProps = ButtonAttributes & {
|
|
7
|
+
/** Pill-shaped corners for any button variant. */
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
/** Render navigation with native anchor semantics. */
|
|
10
|
+
href?: string;
|
|
11
|
+
target?: JSX.IntrinsicElements['a']['target'];
|
|
12
|
+
rel?: string;
|
|
8
13
|
/** Show progress and block activation until cleared, preserving variant colors. */
|
|
9
14
|
busy?: boolean;
|
|
10
15
|
className?: string;
|
|
11
16
|
variant?: 'default' | 'primary' | 'secondary' | 'danger' | 'danger-outline' | 'ghost' | 'link' | 'solid';
|
|
12
17
|
size?: 'compact' | 'default';
|
|
13
18
|
};
|
|
14
|
-
export declare const Button: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ButtonProps> & {
|
|
15
|
-
ref?: import('preact').Ref<HTMLButtonElement> | undefined;
|
|
19
|
+
export declare const Button: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ButtonProps> & {
|
|
20
|
+
ref?: import('./_vendor/preact/src/index').Ref<HTMLButtonElement> | undefined;
|
|
16
21
|
}>;
|
|
17
22
|
/** Preact convenience composition of the shared SVG command button owner. */
|
|
18
23
|
export declare function IconButton({ label, icon, badge, children, className, variant, size, ...props }: ButtonProps & {
|
|
@@ -79,10 +84,6 @@ export declare function NumberStepper({ value, min, max, step, onChange, label,
|
|
|
79
84
|
export declare function DateInput(props: Omit<TextInputProps, 'type'>): h.JSX.Element;
|
|
80
85
|
export declare function TimeInput(props: Omit<TextInputProps, 'type'>): h.JSX.Element;
|
|
81
86
|
export declare function DateTimeInput(props: Omit<TextInputProps, 'type'>): h.JSX.Element;
|
|
82
|
-
export declare function NativeSelect({ className, class: nativeClass, onValueChange, onChange, ...props }: Omit<JSX.IntrinsicElements['select'], 'className'> & {
|
|
83
|
-
className?: string;
|
|
84
|
-
onValueChange?: (value: string) => void;
|
|
85
|
-
}): h.JSX.Element;
|
|
86
87
|
export declare function Chip({ children, className }: ShellProps): h.JSX.Element;
|
|
87
88
|
export declare function FieldHint({ children, id }: ShellProps & {
|
|
88
89
|
id?: string;
|
|
@@ -99,12 +100,12 @@ export declare function Disclosure({ children, className, summary, open, onToggl
|
|
|
99
100
|
open?: boolean;
|
|
100
101
|
onToggle?: JSX.GenericEventHandler<HTMLDetailsElement>;
|
|
101
102
|
}): h.JSX.Element;
|
|
102
|
-
export { EditorPane as Pane, EditorSplitLayout as SplitLayout
|
|
103
|
+
export { EditorPane as Pane, EditorSplitLayout as SplitLayout };
|
|
103
104
|
export declare function Panel({ children, className, label }: ShellProps): h.JSX.Element;
|
|
104
105
|
export declare function Toolbar({ children, className, label }: ShellProps): h.JSX.Element;
|
|
105
106
|
export declare function ToolbarGroup({ children, className, label }: ShellProps): h.JSX.Element;
|
|
106
107
|
export declare function ToolbarSeparator(): h.JSX.Element;
|
|
107
|
-
export
|
|
108
|
+
export { Badge } from './badge.view';
|
|
108
109
|
export declare function CountBadge({ count, label }: {
|
|
109
110
|
count: number;
|
|
110
111
|
label: string;
|
|
@@ -112,7 +113,7 @@ export declare function CountBadge({ count, label }: {
|
|
|
112
113
|
export { Alert } from './alert';
|
|
113
114
|
export declare function Spinner({ label }: {
|
|
114
115
|
label: string;
|
|
115
|
-
}): import('preact').VNode<import('preact').Attributes>;
|
|
116
|
+
}): import('./_vendor/preact/src/index').VNode<import('./_vendor/preact/src/index').Attributes>;
|
|
116
117
|
export declare function LoadingOverlay({ busy, label, children, }: {
|
|
117
118
|
busy: boolean;
|
|
118
119
|
label: string;
|
|
@@ -132,6 +133,17 @@ export declare function Submenu({ label, children }: ShellProps & {
|
|
|
132
133
|
label: string;
|
|
133
134
|
}): h.JSX.Element;
|
|
134
135
|
export declare function ResizeHandle(props: ResizeOptions): h.JSX.Element;
|
|
136
|
+
export interface PanelResizeHandleProps extends Omit<ResizeOptions, 'value' | 'direction'> {
|
|
137
|
+
edge: 'left' | 'right';
|
|
138
|
+
initialWidth: number;
|
|
139
|
+
anchorRef?: {
|
|
140
|
+
current: HTMLDivElement | null;
|
|
141
|
+
};
|
|
142
|
+
/** Measure the outer host when it owns the resized width. */
|
|
143
|
+
resizeParent?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/** Measures the containing panel and places a width control on its physical edge. */
|
|
146
|
+
export declare function PanelResizeHandle({ edge, initialWidth, anchorRef, resizeParent, max, ...props }: PanelResizeHandleProps): h.JSX.Element;
|
|
135
147
|
export type PaginationDirection = 'first' | 'previous' | 'next' | 'last';
|
|
136
148
|
export type PaginationButtonOptions = Pick<ButtonProps, 'disabled' | 'variant' | 'className' | 'title'>;
|
|
137
149
|
export interface PaginationProps {
|
package/controls.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { t as e } from "./_chunks/selection-list-tooltips-BtWjpP6M.js";
|
|
2
|
+
import { A as t, B as n, C as r, D as i, E as a, F as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, j as T, k as E, l as D, m as O, n as k, o as A, p as j, r as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z } from "./_chunks/controls-DD1qvPfE.js";
|
|
3
|
+
import { EditorList as B, EditorListGroup as V, EditorListItem as H, EditorListItemContent as U, EditorPane as W, EditorSplitLayout as G } from "./editor-layout/index.js";
|
|
4
|
+
export { p as Alert, n as Badge, P as Button, k as ButtonGroup, M as Chip, w as CircularProgress, _ as CountBadge, A as DateInput, N as DateTimeInput, y as Disclosure, D as EmptyState, F as FieldError, b as FieldHint, x as FormSection, j as IconButton, B as Listbox, V as ListboxGroup, H as ListboxOption, U as ListboxOptionContent, O as LoadingOverlay, C as Menu, S as MenuItem, g as MenuSeparator, I as NumberInput, z as NumberStepper, v as Pagination, W as Pane, R as Panel, m as PanelResizeHandle, r as RadioGroup, L as Rating, h as ResizeHandle, a as SegmentedControl, i as Spinner, G as SplitLayout, d as Submenu, E as TabPanel, t as Tabs, T as TextInput, l as Textarea, u as TimeInput, f as ToggleButton, o as Toolbar, s as ToolbarGroup, c as ToolbarSeparator, e as useSelectionListTooltips };
|
package/core/editor-commit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type EditorCommit = () => boolean | void;
|
|
2
2
|
/** A popup registers one draft owner. Programmatic close and Escape never commit. */
|
|
3
|
-
export declare const EditorCommitContext: import('preact').Context<((commit: EditorCommit) => () => void) | undefined>;
|
|
3
|
+
export declare const EditorCommitContext: import('../_vendor/preact/src/index').Context<((commit: EditorCommit) => () => void) | undefined>;
|
|
4
4
|
export declare function useEditorAutoApply(commit: EditorCommit, enabled?: boolean): void;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Prefer keeping the field visible, with an optional viewport fit for larger editors. */
|
|
2
2
|
export declare function calculateEditorPopupPosition(anchor: Pick<DOMRect, 'left' | 'right' | 'top' | 'bottom'>, popup: Pick<DOMRect, 'width' | 'height'>, viewport: {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
|
-
}, gap
|
|
5
|
+
}, { gap, inset, fitViewport }?: {
|
|
6
|
+
gap?: number | undefined;
|
|
7
|
+
inset?: number | undefined;
|
|
8
|
+
fitViewport?: boolean | undefined;
|
|
9
|
+
}): {
|
|
6
10
|
placementY: string;
|
|
7
11
|
maxHeight: number;
|
|
8
12
|
top: number;
|
package/core/editor-popup.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentChildren } from 'preact';
|
|
1
|
+
import { ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
export interface EditorPopupHandle {
|
|
3
3
|
readonly element: HTMLElement;
|
|
4
4
|
close(): void;
|
|
@@ -6,6 +6,10 @@ export interface EditorPopupHandle {
|
|
|
6
6
|
export interface EditorPopupOptions {
|
|
7
7
|
label: string;
|
|
8
8
|
className?: string;
|
|
9
|
+
/** Allow overlap with the anchor when the popup needs more vertical room. */
|
|
10
|
+
fitViewport?: boolean;
|
|
11
|
+
/** A separate trigger can toggle the popup without applying the draft. */
|
|
12
|
+
trigger?: HTMLElement;
|
|
9
13
|
onClose?: () => void;
|
|
10
14
|
isAvailable?: () => boolean;
|
|
11
15
|
}
|
package/core/editor-popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as mountEditorPopup } from "../_chunks/editor-popup-
|
|
1
|
+
export { t as mountEditorPopup } from "../_chunks/editor-popup-ByU7qiub.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface PopoverOptions {
|
|
2
|
+
anchor: HTMLElement | SVGElement;
|
|
3
|
+
placement?: 'above';
|
|
4
|
+
content: HTMLElement;
|
|
5
|
+
/** Defaults to the document body. */
|
|
6
|
+
appendTo?: HTMLElement;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
restoreFocus?: boolean;
|
|
9
|
+
closeOnOutside?: boolean;
|
|
10
|
+
closeOnEscape?: boolean;
|
|
11
|
+
display?: string;
|
|
12
|
+
}
|
|
13
|
+
/** One owner for native top-layer promotion, viewport positioning and disposal. */
|
|
14
|
+
export declare class PopoverController {
|
|
15
|
+
private active?;
|
|
16
|
+
get isOpen(): boolean;
|
|
17
|
+
open(options: PopoverOptions): {
|
|
18
|
+
close: (restoreFocus?: boolean) => void;
|
|
19
|
+
refresh: () => void;
|
|
20
|
+
};
|
|
21
|
+
refresh(): void;
|
|
22
|
+
close(restoreFocus?: boolean): void;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
25
|
+
export declare function createTooltipElement(document: Document, className?: string): HTMLDivElement;
|
|
26
|
+
/** Imperative binding adapter over the same session used by useTooltip. */
|
|
27
|
+
export declare class TooltipController {
|
|
28
|
+
private release?;
|
|
29
|
+
bind(anchor: HTMLElement | SVGElement, text: string, options?: {
|
|
30
|
+
trigger?: 'hover' | 'click';
|
|
31
|
+
surface?: HTMLElement;
|
|
32
|
+
onEscape?: () => void;
|
|
33
|
+
}): () => void;
|
|
34
|
+
destroy(): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type TooltipAnchor = HTMLElement | SVGElement;
|
|
2
|
+
/** One lifecycle for declarative and imperative tooltip adapters. */
|
|
3
|
+
export declare class TooltipSession {
|
|
4
|
+
private anchor?;
|
|
5
|
+
private surface?;
|
|
6
|
+
private timer?;
|
|
7
|
+
private mode?;
|
|
8
|
+
private cleanup?;
|
|
9
|
+
private mounted;
|
|
10
|
+
private pointerFocus;
|
|
11
|
+
private open;
|
|
12
|
+
private addedDescription;
|
|
13
|
+
onHide?: () => void;
|
|
14
|
+
onEscape?: () => void;
|
|
15
|
+
delay: number;
|
|
16
|
+
get isOpen(): boolean;
|
|
17
|
+
get isPending(): boolean;
|
|
18
|
+
setSurface(surface: HTMLElement | null): void;
|
|
19
|
+
show(anchor: TooltipAnchor): void;
|
|
20
|
+
private present;
|
|
21
|
+
hide(): void;
|
|
22
|
+
focus(anchor: TooltipAnchor): void;
|
|
23
|
+
blur(): void;
|
|
24
|
+
pointerDown(): void;
|
|
25
|
+
leave(anchor?: TooltipAnchor): void;
|
|
26
|
+
keyDown(event: KeyboardEvent): void;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
private listen;
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Shared presentation for text hints and rich product/chart tooltip content. */
|
|
2
|
+
export declare const TOOLTIP_STYLES = "\n.rv-tooltip.rv-tooltip {\n box-sizing: border-box;\n position: fixed;\n z-index: 100000;\n margin: 0;\n inset: auto;\n transform: none;\n opacity: 1;\n visibility: visible;\n padding: 6px 10px;\n border: 0;\n border-radius: 6px;\n background: var(--rv-tooltip-bg, #191919);\n color: var(--rv-tooltip-fg, #fff);\n box-shadow: 0 4px 14px var(--rv-ui-shadow, rgb(0 0 0 / 18%));\n font: 12px/1.4 var(--rv-ui-font-family, Inter, ui-sans-serif, system-ui, sans-serif);\n font-weight: 400;\n text-align: start;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n max-width: min(360px, calc(100vw - 16px));\n max-height: calc(100dvh - 16px);\n overflow: auto;\n pointer-events: none;\n}\n.rv-tooltip[hidden], .rv-tooltip[data-visible=\"false\"] { display: none; }\n.rv-tooltip[data-overflow] { pointer-events: auto; }\n@media (forced-colors: active) {\n .rv-tooltip.rv-tooltip { color: CanvasText; background: Canvas; border: 1px solid CanvasText; }\n}\n";
|
|
3
|
+
/** Also installs into shadow roots/fullscreen roots used by standalone charts. */
|
|
4
|
+
export declare function ensureTooltipStyles(root: Document | ShadowRoot): void;
|
|
5
|
+
export declare function prepareTooltipSurface(element: HTMLElement): void;
|
|
6
|
+
/** Shared hint placement: centered above the trigger, with a bounded below fallback. */
|
|
7
|
+
export declare function calculateTooltipPosition(anchor: DOMRect, popup: DOMRect, viewport: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}): import('./anchored-popover').AnchoredPopoverPosition | {
|
|
11
|
+
left: number;
|
|
12
|
+
top: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX } from '../_vendor/preact/src/index';
|
|
2
|
+
/** Wrapper-free shared hint for otherwise native text and label elements. */
|
|
3
|
+
export declare function TooltipText({ as, title, children, ...attributes }: Omit<JSX.HTMLAttributes<HTMLElement>, 'title'> & {
|
|
4
|
+
as?: 'span' | 'label' | 'div';
|
|
5
|
+
title?: string;
|
|
6
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { h, ComponentChildren, TargetedEvent } from '../_vendor/preact/src/index';
|
|
2
|
+
type TooltipPresentation = {
|
|
3
|
+
className?: string;
|
|
4
|
+
placement?: 'above';
|
|
5
|
+
delay?: number;
|
|
6
|
+
content?: ComponentChildren;
|
|
7
|
+
};
|
|
8
|
+
/** Preact adapter; the session owns all tooltip behavior and DOM lifecycle. */
|
|
9
|
+
export declare function useControlTooltip(text: string, _floating?: boolean, presentation?: TooltipPresentation): {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly hide: () => void;
|
|
12
|
+
readonly triggerProps: {
|
|
13
|
+
readonly 'aria-describedby': string;
|
|
14
|
+
readonly onFocus: (event: TargetedEvent<HTMLElement>) => void;
|
|
15
|
+
readonly onBlur: () => void;
|
|
16
|
+
readonly onMouseEnter: (event: TargetedEvent<HTMLElement>) => void;
|
|
17
|
+
readonly onMouseLeave: (event?: TargetedEvent<HTMLElement>) => void;
|
|
18
|
+
readonly onPointerDown: (_event: TargetedEvent<HTMLElement>) => void;
|
|
19
|
+
readonly onPointerCancel: () => void;
|
|
20
|
+
readonly onKeyDown: (event: KeyboardEvent) => void;
|
|
21
|
+
};
|
|
22
|
+
readonly tooltip: h.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
/** Controlled surface adapter retained for existing consumers. */
|
|
25
|
+
export declare function ControlTooltip({ id, text, content, visible, anchor, className, }: {
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly text: string;
|
|
28
|
+
readonly content?: ComponentChildren;
|
|
29
|
+
readonly visible: boolean;
|
|
30
|
+
readonly anchor?: HTMLElement | null;
|
|
31
|
+
readonly className?: string;
|
|
32
|
+
readonly placement?: 'above';
|
|
33
|
+
}): h.JSX.Element;
|
|
34
|
+
export declare const useTooltip: typeof useControlTooltip;
|
|
35
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { ensureTooltipStyles, prepareTooltipSurface, TOOLTIP_STYLES, } from './tooltip-surface';
|
|
2
|
+
export { ownsPopupTarget } from './popup-ownership';
|
|
1
3
|
export type TopLayerPopupMode = 'popover' | 'fallback';
|
|
2
4
|
export type TopLayerPopupElement = HTMLElement & {
|
|
3
5
|
showPopover?: () => void;
|
|
@@ -7,3 +9,5 @@ export type TopLayerPopupElement = HTMLElement & {
|
|
|
7
9
|
export declare function showTopLayerPopup(element: TopLayerPopupElement, visibleDisplay?: string): TopLayerPopupMode;
|
|
8
10
|
/** Hides an overlay opened by `showTopLayerPopup`; safe to call repeatedly. */
|
|
9
11
|
export declare function hideTopLayerPopup(element: TopLayerPopupElement, mode?: TopLayerPopupMode): void;
|
|
12
|
+
/** Includes portalled popup content linked by descendant aria-controls triggers. */
|
|
13
|
+
export declare function popupOwnsTarget(panel: HTMLElement, target: Node | null): boolean;
|
package/core/top-layer-popup.js
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var e = /* @__PURE__ */ new WeakMap();
|
|
3
|
-
function t(t, n = "flex") {
|
|
4
|
-
if (e.has(t) || e.set(t, t.getAttribute("data-rv-ui-surface")), t.setAttribute("data-rv-ui-surface", ""), t.style.display = n, typeof t.showPopover == "function") {
|
|
5
|
-
t.setAttribute("popover", "manual");
|
|
6
|
-
try {
|
|
7
|
-
return t.showPopover(), "popover";
|
|
8
|
-
} catch {
|
|
9
|
-
t.removeAttribute("popover");
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return t.style.display = n, "fallback";
|
|
13
|
-
}
|
|
14
|
-
function n(t, n) {
|
|
15
|
-
let r = e.get(t);
|
|
16
|
-
if (r !== void 0 && (r === null ? t.removeAttribute("data-rv-ui-surface") : t.setAttribute("data-rv-ui-surface", r), e.delete(t)), n === "popover" && typeof t.hidePopover == "function") try {
|
|
17
|
-
t.hidePopover(), t.style.removeProperty("display");
|
|
18
|
-
return;
|
|
19
|
-
} catch {}
|
|
20
|
-
t.style.display = "none";
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { n as hideTopLayerPopup, t as showTopLayerPopup };
|
|
1
|
+
export { a as TOOLTIP_STYLES, s as ensureTooltipStyles, t as hideTopLayerPopup, i as ownsPopupTarget, n as popupOwnsTarget, c as prepareTooltipSurface, r as showTopLayerPopup } from "../_chunks/top-layer-popup-CNSDdfJV.js";
|
package/date-time/attach.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TemporalPickerOptions } from './types';
|
|
2
|
-
/** Adds the shared picker
|
|
2
|
+
/** Adds or replaces the shared picker on an existing native input. */
|
|
3
3
|
export declare function attachTemporalPicker(input: HTMLInputElement, options: TemporalPickerOptions, commit: (value: string) => void): () => void;
|
|
@@ -4,7 +4,7 @@ export interface DateInputOptions extends DateEntryOptions {
|
|
|
4
4
|
/** Date-only multiple selection uses a semicolon-separated list by default. */
|
|
5
5
|
multipleSeparator?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function DateControl({ value, label, options, multiple, invalid, errorId, disabled, readOnly, minDate, maxDate, onChange, onFocus }: {
|
|
7
|
+
export declare function DateControl({ value, label, options, multiple, invalid, errorId, disabled, readOnly, minDate, maxDate, onChange, onFocus, }: {
|
|
8
8
|
value: string | string[];
|
|
9
9
|
label: string;
|
|
10
10
|
options?: DateInputOptions;
|
|
@@ -17,4 +17,4 @@ export declare function DateControl({ value, label, options, multiple, invalid,
|
|
|
17
17
|
errorId?: string;
|
|
18
18
|
onFocus?: () => void;
|
|
19
19
|
onChange: (date: string | string[]) => void;
|
|
20
|
-
}): import("preact").JSX.Element;
|
|
20
|
+
}): import("../_vendor/preact/src/index").JSX.Element;
|
package/date-time/field.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DateTimeFieldProps, TemporalPickerOptions } from './types';
|
|
2
2
|
import { TemporalControlValue } from '../_shared/dates/index';
|
|
3
|
-
export declare function TemporalDraft({ value, options, apply, cancel, clearable, }: {
|
|
3
|
+
export declare function TemporalDraft({ value, options, apply, cancel, onValidChange, clearable, }: {
|
|
4
4
|
clearable?: boolean;
|
|
5
5
|
value: TemporalControlValue;
|
|
6
6
|
options: TemporalPickerOptions;
|
|
7
7
|
apply: (value: TemporalControlValue) => void | string;
|
|
8
8
|
cancel: () => void;
|
|
9
|
-
|
|
9
|
+
onValidChange?: (value: TemporalControlValue) => void;
|
|
10
|
+
}): import("../_vendor/preact/src/index").JSX.Element;
|
|
10
11
|
/** Native text entry plus the original shared CalendarPicker, usable in any product form. */
|
|
11
|
-
export declare function DateTimeField({ value, kind, picker, onValueChange, onInput, formatValue, parseValue, ...input }: DateTimeFieldProps): import("preact").JSX.Element;
|
|
12
|
+
export declare function DateTimeField({ value, kind, picker, livePickerUpdates, onValueChange, onInput, formatValue, parseValue, ...input }: DateTimeFieldProps): import("../_vendor/preact/src/index").JSX.Element;
|
package/date-time/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as DateTimeField, i as TemporalDraft, a as TemporalPicker, n as attachTemporalPicker, o as defaultTemporalPickerText, t as renderTemporalValue, s as temporalPickerLabel } from "../_chunks/date-time-
|
|
1
|
+
export { r as DateTimeField, i as TemporalDraft, a as TemporalPicker, n as attachTemporalPicker, o as defaultTemporalPickerText, t as renderTemporalValue, s as temporalPickerLabel } from "../_chunks/date-time-CGJdC1Qa.js";
|
package/date-time/picker.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TemporalPickerProps } from './types';
|
|
2
|
-
export declare function TemporalPicker(props: TemporalPickerProps): import("preact").JSX.Element;
|
|
2
|
+
export declare function TemporalPicker(props: TemporalPickerProps): import("../_vendor/preact/src/index").JSX.Element;
|