@emuanalytics/flow-rdf-ui 4.0.5 → 4.0.7
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/dist/components/alert/alert.component.mjs +202 -0
- package/dist/components/alert/alert.mjs +5 -0
- package/dist/components/alert/alert.styles.mjs +107 -0
- package/dist/components/animation/animation.component.mjs +207 -0
- package/dist/components/animation/animation.mjs +5 -0
- package/dist/components/animation/animation.styles.mjs +12 -0
- package/dist/components/animation/animations.mjs +11 -0
- package/dist/components/avatar/avatar.component.mjs +95 -0
- package/dist/components/avatar/avatar.mjs +5 -0
- package/dist/components/avatar/avatar.styles.mjs +70 -0
- package/dist/components/badge/badge.component.mjs +62 -0
- package/dist/components/badge/badge.mjs +5 -0
- package/dist/components/badge/badge.styles.mjs +105 -0
- package/dist/components/breadcrumb/breadcrumb.component.mjs +82 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -0
- package/dist/components/breadcrumb/breadcrumb.styles.mjs +14 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +73 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.mjs +5 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.mjs +90 -0
- package/dist/components/button/button.component.mjs +310 -0
- package/dist/components/button/button.mjs +5 -0
- package/dist/components/button/button.styles.mjs +690 -0
- package/dist/components/button-group/button-group.component.mjs +108 -0
- package/dist/components/button-group/button-group.mjs +5 -0
- package/dist/components/button-group/button-group.styles.mjs +21 -0
- package/dist/components/calendar/calendar.component.mjs +320 -0
- package/dist/components/calendar/calendar.mjs +5 -0
- package/dist/components/calendar/calendar.styles.mjs +145 -0
- package/dist/components/card/card.component.mjs +33 -0
- package/dist/components/card/card.mjs +5 -0
- package/dist/components/card/card.styles.mjs +73 -0
- package/dist/components/carousel/autoplay-controller.mjs +56 -0
- package/dist/components/carousel/carousel.component.mjs +406 -0
- package/dist/components/carousel/carousel.mjs +5 -0
- package/dist/components/carousel/carousel.styles.mjs +162 -0
- package/dist/components/carousel/scroll-controller.mjs +148 -0
- package/dist/components/carousel-item/carousel-item.component.mjs +22 -0
- package/dist/components/carousel-item/carousel-item.mjs +5 -0
- package/dist/components/carousel-item/carousel-item.styles.mjs +28 -0
- package/dist/components/chart/chart.component.mjs +82 -0
- package/dist/components/chart/chart.mjs +5 -0
- package/dist/components/chart/chart.styles.mjs +80 -0
- package/dist/components/chart/chartjs-plugins/interaction.interpolate.mjs +80 -0
- package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +135 -0
- package/dist/components/chart/chartjs-plugins/positioner.cursor.mjs +14 -0
- package/dist/components/chart/chartjs-plugins/symlog.scale.mjs +42 -0
- package/dist/components/chart/chartjs-support.mjs +59 -0
- package/dist/components/checkbox/checkbox.component.mjs +246 -0
- package/dist/components/checkbox/checkbox.mjs +5 -0
- package/dist/components/checkbox/checkbox.styles.mjs +177 -0
- package/dist/components/color-mapper/color-mapper.component.mjs +260 -0
- package/dist/components/color-mapper/color-mapper.mjs +5 -0
- package/dist/components/color-mapper/color-mapper.styles.mjs +92 -0
- package/dist/components/color-mapper/helpers.mjs +55 -0
- package/dist/components/color-picker/color-picker.component.mjs +919 -0
- package/dist/components/color-picker/color-picker.mjs +5 -0
- package/dist/components/color-picker/color-picker.styles.mjs +337 -0
- package/dist/components/color-stop/color-stop.component.mjs +289 -0
- package/dist/components/color-stop/color-stop.mjs +5 -0
- package/dist/components/color-stop/color-stop.styles.mjs +103 -0
- package/dist/components/date-time-picker/date-time-picker.component.mjs +532 -0
- package/dist/components/date-time-picker/date-time-picker.mjs +5 -0
- package/dist/components/date-time-picker/date-time-picker.styles.mjs +260 -0
- package/dist/components/details/details.component.mjs +194 -0
- package/dist/components/details/details.mjs +5 -0
- package/dist/components/details/details.styles.mjs +85 -0
- package/dist/components/dialog/dialog.component.mjs +256 -0
- package/dist/components/dialog/dialog.mjs +5 -0
- package/dist/components/dialog/dialog.styles.mjs +125 -0
- package/dist/components/divider/divider.component.mjs +45 -0
- package/dist/components/divider/divider.mjs +5 -0
- package/dist/components/divider/divider.styles.mjs +34 -0
- package/dist/components/drawer/drawer.component.mjs +354 -0
- package/dist/components/drawer/drawer.mjs +5 -0
- package/dist/components/drawer/drawer.styles.mjs +161 -0
- package/dist/components/dropdown/dropdown.component.mjs +381 -0
- package/dist/components/dropdown/dropdown.mjs +5 -0
- package/dist/components/dropdown/dropdown.styles.mjs +56 -0
- package/dist/components/gauge/gauge.component.mjs +151 -0
- package/dist/components/gauge/gauge.mjs +5 -0
- package/dist/components/gauge/gauge.styles.mjs +127 -0
- package/dist/components/icon/icon.component.mjs +146 -0
- package/dist/components/icon/icon.mjs +5 -0
- package/dist/components/icon/icon.styles.mjs +35 -0
- package/dist/components/icon/library.default.mjs +38 -0
- package/dist/components/icon/library.mjs +38 -0
- package/dist/components/icon/library.system.mjs +158 -0
- package/dist/components/icon-button/icon-button.component.mjs +239 -0
- package/dist/components/icon-button/icon-button.mjs +5 -0
- package/dist/components/icon-button/icon-button.styles.mjs +81 -0
- package/dist/components/input/input.component.mjs +574 -0
- package/dist/components/input/input.mjs +5 -0
- package/dist/components/input/input.styles.mjs +310 -0
- package/dist/components/map/map.component.mjs +196 -0
- package/dist/components/map/map.mjs +5 -0
- package/dist/components/map/map.styles.mjs +90 -0
- package/dist/components/menu/menu.component.mjs +125 -0
- package/dist/components/menu/menu.mjs +5 -0
- package/dist/components/menu/menu.styles.mjs +23 -0
- package/dist/components/menu-item/menu-item.component.mjs +143 -0
- package/dist/components/menu-item/menu-item.mjs +5 -0
- package/dist/components/menu-item/menu-item.styles.mjs +103 -0
- package/dist/components/menu-label/menu-label.component.mjs +14 -0
- package/dist/components/menu-label/menu-label.mjs +5 -0
- package/dist/components/menu-label/menu-label.styles.mjs +24 -0
- package/dist/components/mutation-observer/mutation-observer.component.mjs +115 -0
- package/dist/components/mutation-observer/mutation-observer.mjs +5 -0
- package/dist/components/mutation-observer/mutation-observer.styles.mjs +12 -0
- package/dist/components/option/option.component.mjs +152 -0
- package/dist/components/option/option.mjs +5 -0
- package/dist/components/option/option.styles.mjs +102 -0
- package/dist/components/panel/panel.component.mjs +90 -0
- package/dist/components/panel/panel.mjs +5 -0
- package/dist/components/panel/panel.styles.mjs +51 -0
- package/dist/components/panel-header/panel-header.component.mjs +131 -0
- package/dist/components/panel-header/panel-header.mjs +5 -0
- package/dist/components/panel-header/panel-header.styles.mjs +67 -0
- package/dist/components/popup/popup.component.mjs +420 -0
- package/dist/components/popup/popup.mjs +5 -0
- package/dist/components/popup/popup.styles.mjs +63 -0
- package/dist/components/progress-bar/progress-bar.component.mjs +70 -0
- package/dist/components/progress-bar/progress-bar.mjs +5 -0
- package/dist/components/progress-bar/progress-bar.styles.mjs +87 -0
- package/dist/components/progress-ring/progress-ring.component.mjs +71 -0
- package/dist/components/progress-ring/progress-ring.mjs +5 -0
- package/dist/components/progress-ring/progress-ring.styles.mjs +72 -0
- package/dist/components/query-builder/converters/flow-query-converters.mjs +111 -0
- package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +99 -0
- package/dist/components/query-builder/default-value-templates.mjs +151 -0
- package/dist/components/query-builder/helpers.mjs +42 -0
- package/dist/components/query-builder/query-builder.component.mjs +466 -0
- package/dist/components/query-builder/query-builder.mjs +5 -0
- package/dist/components/query-builder/query-builder.styles.mjs +261 -0
- package/dist/components/radio/radio.component.mjs +144 -0
- package/dist/components/radio/radio.mjs +5 -0
- package/dist/components/radio/radio.styles.mjs +164 -0
- package/dist/components/radio-group/radio-group.component.mjs +310 -0
- package/dist/components/radio-group/radio-group.mjs +5 -0
- package/dist/components/radio-group/radio-group.styles.mjs +49 -0
- package/dist/components/range/range.component.mjs +324 -0
- package/dist/components/range/range.mjs +5 -0
- package/dist/components/range/range.styles.mjs +233 -0
- package/dist/components/resize-observer/resize-observer.component.mjs +80 -0
- package/dist/components/resize-observer/resize-observer.mjs +5 -0
- package/dist/components/resize-observer/resize-observer.styles.mjs +12 -0
- package/dist/components/scroll-view/overlay-scrollbar.styles.mjs +686 -0
- package/dist/components/scroll-view/scroll-view.component.mjs +128 -0
- package/dist/components/scroll-view/scroll-view.mjs +5 -0
- package/dist/components/scroll-view/scroll-view.styles.mjs +57 -0
- package/dist/components/select/select.component.mjs +785 -0
- package/dist/components/select/select.mjs +5 -0
- package/dist/components/select/select.styles.mjs +339 -0
- package/dist/components/spinner/spinner.component.mjs +22 -0
- package/dist/components/spinner/spinner.mjs +5 -0
- package/dist/components/spinner/spinner.styles.mjs +64 -0
- package/dist/components/split-view/split-view.component.mjs +500 -0
- package/dist/components/split-view/split-view.mjs +5 -0
- package/dist/components/split-view/split-view.styles.mjs +33 -0
- package/dist/components/split-view-divider/split-view-divider.component.mjs +98 -0
- package/dist/components/split-view-divider/split-view-divider.mjs +5 -0
- package/dist/components/split-view-divider/split-view-divider.styles.mjs +96 -0
- package/dist/components/split-view-pane/split-view-pane.component.mjs +126 -0
- package/dist/components/split-view-pane/split-view-pane.mjs +5 -0
- package/dist/components/split-view-pane/split-view-pane.styles.mjs +49 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.component.mjs +76 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.mjs +5 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.styles.mjs +40 -0
- package/dist/components/stepper/stepper.component.mjs +139 -0
- package/dist/components/stepper/stepper.mjs +5 -0
- package/dist/components/stepper/stepper.styles.mjs +103 -0
- package/dist/components/stepper-panel/stepper-panel.component.mjs +76 -0
- package/dist/components/stepper-panel/stepper-panel.mjs +5 -0
- package/dist/components/stepper-panel/stepper-panel.styles.mjs +22 -0
- package/dist/components/switch/switch.component.mjs +211 -0
- package/dist/components/switch/switch.mjs +5 -0
- package/dist/components/switch/switch.styles.mjs +166 -0
- package/dist/components/tab/tab.component.mjs +159 -0
- package/dist/components/tab/tab.mjs +5 -0
- package/dist/components/tab/tab.styles.mjs +107 -0
- package/dist/components/tab-group/tab-group.component.mjs +402 -0
- package/dist/components/tab-group/tab-group.mjs +5 -0
- package/dist/components/tab-group/tab-group.styles.mjs +386 -0
- package/dist/components/tab-panel/tab-panel.component.mjs +72 -0
- package/dist/components/tab-panel/tab-panel.mjs +5 -0
- package/dist/components/tab-panel/tab-panel.styles.mjs +55 -0
- package/dist/components/tag/tag.component.mjs +94 -0
- package/dist/components/tag/tag.mjs +5 -0
- package/dist/components/tag/tag.styles.mjs +130 -0
- package/dist/components/textarea/textarea.component.mjs +359 -0
- package/dist/components/textarea/textarea.mjs +5 -0
- package/dist/components/textarea/textarea.styles.mjs +171 -0
- package/dist/components/timer/ticker.mjs +78 -0
- package/dist/components/timer/timer.component.mjs +297 -0
- package/dist/components/timer/timer.mjs +5 -0
- package/dist/components/timer/timer.styles.mjs +95 -0
- package/dist/components/tool-button/tool-button.component.mjs +208 -0
- package/dist/components/tool-button/tool-button.mjs +5 -0
- package/dist/components/tool-button/tool-button.styles.mjs +251 -0
- package/dist/components/tool-button-group/tool-button-group.component.mjs +347 -0
- package/dist/components/tool-button-group/tool-button-group.mjs +5 -0
- package/dist/components/tool-button-group/tool-button-group.styles.mjs +59 -0
- package/dist/components/tooltip/tooltip.component.mjs +259 -0
- package/dist/components/tooltip/tooltip.mjs +5 -0
- package/dist/components/tooltip/tooltip.styles.mjs +57 -0
- package/dist/components/tree/tree.component.mjs +368 -0
- package/dist/components/tree/tree.mjs +5 -0
- package/dist/components/tree/tree.styles.mjs +41 -0
- package/dist/components/tree-item/tree-item.component.mjs +324 -0
- package/dist/components/tree-item/tree-item.mjs +5 -0
- package/dist/components/tree-item/tree-item.styles.mjs +178 -0
- package/dist/components/visually-hidden/visually-hidden.component.mjs +14 -0
- package/dist/components/visually-hidden/visually-hidden.mjs +5 -0
- package/dist/components/visually-hidden/visually-hidden.styles.mjs +20 -0
- package/dist/custom-elements.json +1535 -1530
- package/dist/index.d.mts +145 -132
- package/dist/index.d.ts +145 -132
- package/dist/index.mjs +78 -25094
- package/dist/internal/animate.mjs +47 -0
- package/dist/internal/animations/attention_seekers/bounce.mjs +17 -0
- package/dist/internal/animations/attention_seekers/flash.mjs +9 -0
- package/dist/internal/animations/attention_seekers/headShake.mjs +10 -0
- package/dist/internal/animations/attention_seekers/heartBeat.mjs +9 -0
- package/dist/internal/animations/attention_seekers/jello.mjs +14 -0
- package/dist/internal/animations/attention_seekers/pulse.mjs +7 -0
- package/dist/internal/animations/attention_seekers/rubberBand.mjs +11 -0
- package/dist/internal/animations/attention_seekers/shake.mjs +15 -0
- package/dist/internal/animations/attention_seekers/shakeX.mjs +15 -0
- package/dist/internal/animations/attention_seekers/shakeY.mjs +15 -0
- package/dist/internal/animations/attention_seekers/swing.mjs +9 -0
- package/dist/internal/animations/attention_seekers/tada.mjs +15 -0
- package/dist/internal/animations/attention_seekers/wobble.mjs +11 -0
- package/dist/internal/animations/back_entrances/backInDown.mjs +7 -0
- package/dist/internal/animations/back_entrances/backInLeft.mjs +7 -0
- package/dist/internal/animations/back_entrances/backInRight.mjs +7 -0
- package/dist/internal/animations/back_entrances/backInUp.mjs +7 -0
- package/dist/internal/animations/back_exits/backOutDown.mjs +7 -0
- package/dist/internal/animations/back_exits/backOutLeft.mjs +7 -0
- package/dist/internal/animations/back_exits/backOutRight.mjs +7 -0
- package/dist/internal/animations/back_exits/backOutUp.mjs +7 -0
- package/dist/internal/animations/bouncing_entrances/bounceIn.mjs +16 -0
- package/dist/internal/animations/bouncing_entrances/bounceInDown.mjs +14 -0
- package/dist/internal/animations/bouncing_entrances/bounceInLeft.mjs +14 -0
- package/dist/internal/animations/bouncing_entrances/bounceInRight.mjs +14 -0
- package/dist/internal/animations/bouncing_entrances/bounceInUp.mjs +14 -0
- package/dist/internal/animations/bouncing_exits/bounceOut.mjs +8 -0
- package/dist/internal/animations/bouncing_exits/bounceOutDown.mjs +8 -0
- package/dist/internal/animations/bouncing_exits/bounceOutLeft.mjs +6 -0
- package/dist/internal/animations/bouncing_exits/bounceOutRight.mjs +6 -0
- package/dist/internal/animations/bouncing_exits/bounceOutUp.mjs +8 -0
- package/dist/internal/animations/easings/easings.mjs +33 -0
- package/dist/internal/animations/fading_entrances/fadeIn.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInBottomLeft.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInBottomRight.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInDown.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInDownBig.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInLeft.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInLeftBig.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInRight.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInRightBig.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInTopLeft.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInTopRight.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInUp.mjs +6 -0
- package/dist/internal/animations/fading_entrances/fadeInUpBig.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOut.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutBottomLeft.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutBottomRight.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutDown.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutDownBig.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutLeft.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutLeftBig.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutRight.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutRightBig.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutTopLeft.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutTopRight.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutUp.mjs +6 -0
- package/dist/internal/animations/fading_exits/fadeOutUpBig.mjs +6 -0
- package/dist/internal/animations/flippers/flip.mjs +29 -0
- package/dist/internal/animations/flippers/flipInX.mjs +9 -0
- package/dist/internal/animations/flippers/flipInY.mjs +9 -0
- package/dist/internal/animations/flippers/flipOutX.mjs +7 -0
- package/dist/internal/animations/flippers/flipOutY.mjs +7 -0
- package/dist/internal/animations/index.mjs +99 -0
- package/dist/internal/animations/lightspeed/lightSpeedInLeft.mjs +8 -0
- package/dist/internal/animations/lightspeed/lightSpeedInRight.mjs +8 -0
- package/dist/internal/animations/lightspeed/lightSpeedOutLeft.mjs +6 -0
- package/dist/internal/animations/lightspeed/lightSpeedOutRight.mjs +6 -0
- package/dist/internal/animations/rotating_entrances/rotateIn.mjs +6 -0
- package/dist/internal/animations/rotating_entrances/rotateInDownLeft.mjs +6 -0
- package/dist/internal/animations/rotating_entrances/rotateInDownRight.mjs +6 -0
- package/dist/internal/animations/rotating_entrances/rotateInUpLeft.mjs +6 -0
- package/dist/internal/animations/rotating_entrances/rotateInUpRight.mjs +6 -0
- package/dist/internal/animations/rotating_exits/rotateOut.mjs +6 -0
- package/dist/internal/animations/rotating_exits/rotateOutDownLeft.mjs +6 -0
- package/dist/internal/animations/rotating_exits/rotateOutDownRight.mjs +6 -0
- package/dist/internal/animations/rotating_exits/rotateOutUpLeft.mjs +6 -0
- package/dist/internal/animations/rotating_exits/rotateOutUpRight.mjs +6 -0
- package/dist/internal/animations/sliding_entrances/slideInDown.mjs +6 -0
- package/dist/internal/animations/sliding_entrances/slideInLeft.mjs +6 -0
- package/dist/internal/animations/sliding_entrances/slideInRight.mjs +6 -0
- package/dist/internal/animations/sliding_entrances/slideInUp.mjs +6 -0
- package/dist/internal/animations/sliding_exits/slideOutDown.mjs +6 -0
- package/dist/internal/animations/sliding_exits/slideOutLeft.mjs +6 -0
- package/dist/internal/animations/sliding_exits/slideOutRight.mjs +6 -0
- package/dist/internal/animations/sliding_exits/slideOutUp.mjs +6 -0
- package/dist/internal/animations/specials/hinge.mjs +10 -0
- package/dist/internal/animations/specials/jackInTheBox.mjs +8 -0
- package/dist/internal/animations/specials/rollIn.mjs +6 -0
- package/dist/internal/animations/specials/rollOut.mjs +6 -0
- package/dist/internal/animations/zooming_entrances/zoomIn.mjs +6 -0
- package/dist/internal/animations/zooming_entrances/zoomInDown.mjs +16 -0
- package/dist/internal/animations/zooming_entrances/zoomInLeft.mjs +16 -0
- package/dist/internal/animations/zooming_entrances/zoomInRight.mjs +16 -0
- package/dist/internal/animations/zooming_entrances/zoomInUp.mjs +16 -0
- package/dist/internal/animations/zooming_exits/zoomOut.mjs +7 -0
- package/dist/internal/animations/zooming_exits/zoomOutDown.mjs +16 -0
- package/dist/internal/animations/zooming_exits/zoomOutLeft.mjs +6 -0
- package/dist/internal/animations/zooming_exits/zoomOutRight.mjs +6 -0
- package/dist/internal/animations/zooming_exits/zoomOutUp.mjs +16 -0
- package/dist/internal/boolean.mjs +17 -0
- package/dist/internal/datetime.mjs +65 -0
- package/dist/internal/debounce.mjs +14 -0
- package/dist/internal/default-value.mjs +21 -0
- package/dist/internal/drag.mjs +30 -0
- package/dist/internal/ensure-array.mjs +16 -0
- package/dist/internal/event.mjs +13 -0
- package/dist/internal/flow-ui-rdf-element.mjs +61 -0
- package/dist/internal/form.mjs +264 -0
- package/dist/internal/localize.mjs +124 -0
- package/dist/internal/math.mjs +12 -0
- package/dist/internal/modal.mjs +52 -0
- package/dist/internal/offset.mjs +8 -0
- package/dist/internal/orderby.mjs +18 -0
- package/dist/internal/scroll.mjs +47 -0
- package/dist/internal/slot.mjs +59 -0
- package/dist/internal/string.mjs +5 -0
- package/dist/internal/tabbable.mjs +49 -0
- package/dist/internal/throttle.mjs +28 -0
- package/dist/internal/type-checks.mjs +16 -0
- package/dist/internal/watch.mjs +27 -0
- package/dist/package.json.mjs +3 -0
- package/dist/public-api.mjs +10 -0
- package/dist/styles/component.styles.mjs +19 -0
- package/dist/styles/form-control.styles.mjs +63 -0
- package/dist/translations/en.mjs +34 -0
- package/dist/utilities/animation-registry.mjs +33 -0
- package/dist/utilities/announce.mjs +12 -0
- package/dist/utilities/locale.mjs +10 -0
- package/dist/utilities/localize.mjs +7 -0
- package/dist/utilities/register-components.mjs +203 -0
- package/dist/vscode.html-custom-data.json +193 -181
- package/package.json +5 -8
- package/themes/dark.css +6 -2
- package/themes/dark.styles.js +6 -2
- package/themes/light.css +6 -2
- package/themes/light.styles.js +6 -2
- package/dist/icons/index.cjs +0 -4053
- package/dist/icons/index.d.cts +0 -2027
- package/dist/index.cjs +0 -25187
- package/dist/index.d.cts +0 -5678
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.color-stop {
|
|
12
|
+
--spacing: var(--flow-ui-spacing-small);
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: var(--spacing);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.color-stop * {
|
|
20
|
+
flex: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.color-stop__input {
|
|
24
|
+
flex: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.color-stop__input::part(base) {
|
|
28
|
+
min-width: 15em;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.color-stop__input::part(input) {
|
|
32
|
+
/* remove 180px from input */
|
|
33
|
+
width: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.color-stop__input::part(suffix) {
|
|
37
|
+
/* remove excessive space from suffix */
|
|
38
|
+
--flow-ui-input-spacing-small: var(--flow-ui-spacing-2x-small);
|
|
39
|
+
--flow-ui-input-spacing-medium: var(--flow-ui-spacing-x-small);
|
|
40
|
+
--flow-ui-input-spacing-large: var(--flow-ui-spacing-x-small);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Sizes */
|
|
44
|
+
|
|
45
|
+
.color-stop--small {
|
|
46
|
+
font-size: var(--flow-ui-input-font-size-small);
|
|
47
|
+
--spacing: var(--flow-ui-spacing-x-small);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.color-stop--medium {
|
|
51
|
+
font-size: var(--flow-ui-input-font-size-medium);
|
|
52
|
+
--spacing: var(--flow-ui-spacing-x-small);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.color-stop--large {
|
|
56
|
+
font-size: var(--flow-ui-input-font-size-large);
|
|
57
|
+
--spacing: var(--flow-ui-spacing-small);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Color picker styling */
|
|
61
|
+
|
|
62
|
+
.color-stop__picker::part(trigger) {
|
|
63
|
+
/* match input box styling */
|
|
64
|
+
border-radius: var(--flow-ui-input-border-radius-small);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Default variant */
|
|
68
|
+
.color-stop--fixed .color-stop__input::part(base) {
|
|
69
|
+
background-color: initial;
|
|
70
|
+
cursor: initial;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.color-stop--fixed .confirm__tooltip {
|
|
74
|
+
visibility: hidden;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.color-stop--fixed .toolbar-button,
|
|
78
|
+
.color-stop--fixed .units {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Buttons */
|
|
83
|
+
|
|
84
|
+
.color-stop__remove-button {
|
|
85
|
+
margin-inline-start: calc(var(--flow-ui-spacing-x-small) * -1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.toolbar-button {
|
|
89
|
+
margin-inline-end: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Placeholder & default variants */
|
|
93
|
+
.color-stop--placeholder .color-stop__remove-button {
|
|
94
|
+
visibility: hidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.color-stop--placeholder .text-options-button-group,
|
|
98
|
+
.color-stop--placeholder .units {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
|
|
103
|
+
export { styles as default };
|
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
import { query, state, property } from 'lit/decorators.js';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
|
+
import { DateTime } from 'luxon';
|
|
6
|
+
import { stopAnimations, animateTo } from '../../internal/animate.mjs';
|
|
7
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
8
|
+
import { defaultValue } from '../../internal/default-value.mjs';
|
|
9
|
+
import { waitForEvent } from '../../internal/event.mjs';
|
|
10
|
+
import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
11
|
+
import { FormControlController } from '../../internal/form.mjs';
|
|
12
|
+
import { HasSlotController } from '../../internal/slot.mjs';
|
|
13
|
+
import { isStringFull } from '../../internal/type-checks.mjs';
|
|
14
|
+
import { watch } from '../../internal/watch.mjs';
|
|
15
|
+
import { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.mjs';
|
|
16
|
+
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
17
|
+
import styles from './date-time-picker.styles.mjs';
|
|
18
|
+
|
|
19
|
+
var __defProp = Object.defineProperty;
|
|
20
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
21
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
22
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
23
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
24
|
+
if (decorator = decorators[i])
|
|
25
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
26
|
+
if (kind && result)
|
|
27
|
+
__defProp(target, key, result);
|
|
28
|
+
return result;
|
|
29
|
+
};
|
|
30
|
+
const popupOptions = {
|
|
31
|
+
small: { distance: -1, skidding: -4 },
|
|
32
|
+
medium: { distance: -3, skidding: -9 },
|
|
33
|
+
large: { distance: -5, skidding: -15 }
|
|
34
|
+
};
|
|
35
|
+
class FlowUiDateTimePicker extends FlowRdfFormControl {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
this.formControlController = new FormControlController(this, {
|
|
39
|
+
assumeInteractionOn: ["flow-ui-blur", "flow-ui-input"]
|
|
40
|
+
});
|
|
41
|
+
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
42
|
+
this.localize = new LocalizeController(this);
|
|
43
|
+
this.hasFocus = false;
|
|
44
|
+
this.displayLabel = "";
|
|
45
|
+
this.name = "";
|
|
46
|
+
this.value = "";
|
|
47
|
+
this.displayMode = "datetime";
|
|
48
|
+
this.format = "FFF";
|
|
49
|
+
this.defaultValue = "";
|
|
50
|
+
this.size = "medium";
|
|
51
|
+
this.placeholder = "";
|
|
52
|
+
this.disabled = false;
|
|
53
|
+
this.clearable = false;
|
|
54
|
+
this.open = false;
|
|
55
|
+
this.hoist = false;
|
|
56
|
+
this.filled = false;
|
|
57
|
+
this.pill = false;
|
|
58
|
+
this.label = "";
|
|
59
|
+
this.placement = "bottom-end";
|
|
60
|
+
this.helpText = "";
|
|
61
|
+
this.form = "";
|
|
62
|
+
this.required = false;
|
|
63
|
+
}
|
|
64
|
+
/** Gets the validity state object */
|
|
65
|
+
get validity() {
|
|
66
|
+
return this.valueInput.validity;
|
|
67
|
+
}
|
|
68
|
+
/** Gets the validation message */
|
|
69
|
+
get validationMessage() {
|
|
70
|
+
return this.valueInput.validationMessage;
|
|
71
|
+
}
|
|
72
|
+
connectedCallback() {
|
|
73
|
+
super.connectedCallback();
|
|
74
|
+
this.clearable = boolean(this.clearable, true);
|
|
75
|
+
this.disabled = boolean(this.disabled, true);
|
|
76
|
+
this.hoist = boolean(this.hoist, true);
|
|
77
|
+
this.required = boolean(this.required, true);
|
|
78
|
+
this.filled = boolean(this.filled, true);
|
|
79
|
+
this.pill = boolean(this.pill, true);
|
|
80
|
+
this.handleDocumentFocusIn = this.handleDocumentFocusIn.bind(this);
|
|
81
|
+
this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
|
|
82
|
+
this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this);
|
|
83
|
+
this.open = false;
|
|
84
|
+
}
|
|
85
|
+
addOpenListeners() {
|
|
86
|
+
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
87
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
88
|
+
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
89
|
+
}
|
|
90
|
+
removeOpenListeners() {
|
|
91
|
+
document.removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
92
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
93
|
+
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
94
|
+
}
|
|
95
|
+
updateDisplayLabel() {
|
|
96
|
+
try {
|
|
97
|
+
if (isStringFull(this.value)) {
|
|
98
|
+
const zone = isStringFull(this.timezone) ? this.timezone : void 0;
|
|
99
|
+
const locale = isStringFull(this.locale) ? this.locale : void 0;
|
|
100
|
+
this.displayLabel = DateTime.fromISO(this.value, { zone, locale }).toFormat(this.format);
|
|
101
|
+
} else {
|
|
102
|
+
this.displayLabel = "";
|
|
103
|
+
}
|
|
104
|
+
} catch (e) {
|
|
105
|
+
console.warn(e.message);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
handleFocus() {
|
|
109
|
+
this.hasFocus = true;
|
|
110
|
+
this.displayInput.setSelectionRange(0, 0);
|
|
111
|
+
this.emit("flow-ui-focus");
|
|
112
|
+
}
|
|
113
|
+
handleBlur() {
|
|
114
|
+
this.hasFocus = false;
|
|
115
|
+
this.emit("flow-ui-blur");
|
|
116
|
+
}
|
|
117
|
+
handleDocumentFocusIn(event) {
|
|
118
|
+
const path = event.composedPath();
|
|
119
|
+
if (this && !path.includes(this)) {
|
|
120
|
+
this.hide();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
handleDocumentKeyDown(event) {
|
|
124
|
+
const target = event.target;
|
|
125
|
+
const isClearButton = target.closest(".datepicker__clear") !== null;
|
|
126
|
+
const isIconButton = target.closest("flow-ui-icon-button") !== null;
|
|
127
|
+
if (isClearButton || isIconButton) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
if (event.key === "Escape" && this.open) {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
event.stopPropagation();
|
|
133
|
+
this.hide();
|
|
134
|
+
this.displayInput.focus({ preventScroll: true });
|
|
135
|
+
}
|
|
136
|
+
if (event.key === "Enter") {
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
event.stopImmediatePropagation();
|
|
139
|
+
if (!this.open) {
|
|
140
|
+
this.show();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
handleDocumentMouseDown(event) {
|
|
147
|
+
const path = event.composedPath();
|
|
148
|
+
if (this && !path.includes(this)) {
|
|
149
|
+
this.hide();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
handleLabelClick() {
|
|
153
|
+
this.displayInput.focus();
|
|
154
|
+
}
|
|
155
|
+
handleComboboxMouseDown(event) {
|
|
156
|
+
const path = event.composedPath();
|
|
157
|
+
const isIconButton = path.some((el) => el instanceof Element && el.tagName.toLowerCase() === "flow-ui-icon-button");
|
|
158
|
+
if (this.disabled || isIconButton) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
event.preventDefault();
|
|
162
|
+
this.displayInput.focus({ preventScroll: true });
|
|
163
|
+
this.open = !this.open;
|
|
164
|
+
}
|
|
165
|
+
handleComboboxKeyDown(event) {
|
|
166
|
+
event.stopPropagation();
|
|
167
|
+
this.handleDocumentKeyDown(event);
|
|
168
|
+
}
|
|
169
|
+
handleClearClick(event) {
|
|
170
|
+
event.stopPropagation();
|
|
171
|
+
if (this.value !== "") {
|
|
172
|
+
this.value = "";
|
|
173
|
+
this.displayInput.focus({ preventScroll: true });
|
|
174
|
+
this.updateComplete.then(() => {
|
|
175
|
+
this.emit("flow-ui-clear");
|
|
176
|
+
this.emit("flow-ui-input");
|
|
177
|
+
this.emit("flow-ui-change");
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
handleClearMouseDown(event) {
|
|
182
|
+
event.stopPropagation();
|
|
183
|
+
event.preventDefault();
|
|
184
|
+
}
|
|
185
|
+
handleCalendarChange(event) {
|
|
186
|
+
event.stopPropagation();
|
|
187
|
+
const target = event.target;
|
|
188
|
+
if (this.value !== target.value) {
|
|
189
|
+
this.value = target.value;
|
|
190
|
+
this.updateComplete.then(() => {
|
|
191
|
+
this.formControlController.updateValidity();
|
|
192
|
+
this.emit("flow-ui-input");
|
|
193
|
+
this.emit("flow-ui-change");
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
handleInvalid(event) {
|
|
198
|
+
this.formControlController.setValidity(false);
|
|
199
|
+
this.formControlController.emitInvalidEvent(event);
|
|
200
|
+
}
|
|
201
|
+
handleDisabledChange() {
|
|
202
|
+
if (this.disabled) {
|
|
203
|
+
this.open = false;
|
|
204
|
+
this.handleOpenChange();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
handleValueChange() {
|
|
208
|
+
}
|
|
209
|
+
async handleOpenChange() {
|
|
210
|
+
if (this.open && !this.disabled) {
|
|
211
|
+
this.emit("flow-ui-show");
|
|
212
|
+
this.addOpenListeners();
|
|
213
|
+
await stopAnimations(this);
|
|
214
|
+
this.calendarContainer.hidden = false;
|
|
215
|
+
this.popup.active = true;
|
|
216
|
+
const { keyframes, options } = getAnimation(this, "select.show", { dir: this.localize.dir() });
|
|
217
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
218
|
+
this.emit("flow-ui-after-show");
|
|
219
|
+
} else {
|
|
220
|
+
this.emit("flow-ui-hide");
|
|
221
|
+
this.removeOpenListeners();
|
|
222
|
+
await stopAnimations(this);
|
|
223
|
+
const { keyframes, options } = getAnimation(this, "select.hide", { dir: this.localize.dir() });
|
|
224
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
225
|
+
this.calendarContainer.hidden = true;
|
|
226
|
+
this.popup.active = false;
|
|
227
|
+
this.emit("flow-ui-after-hide");
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
/** Shows the calendar. */
|
|
231
|
+
async show() {
|
|
232
|
+
if (this.open || this.disabled) {
|
|
233
|
+
this.open = false;
|
|
234
|
+
return void 0;
|
|
235
|
+
}
|
|
236
|
+
this.open = true;
|
|
237
|
+
return waitForEvent(this, "flow-ui-after-show");
|
|
238
|
+
}
|
|
239
|
+
/** Hides the calendar. */
|
|
240
|
+
async hide() {
|
|
241
|
+
if (!this.open || this.disabled) {
|
|
242
|
+
this.open = false;
|
|
243
|
+
return void 0;
|
|
244
|
+
}
|
|
245
|
+
this.open = false;
|
|
246
|
+
return waitForEvent(this, "flow-ui-after-hide");
|
|
247
|
+
}
|
|
248
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
249
|
+
checkValidity() {
|
|
250
|
+
return this.valueInput.checkValidity();
|
|
251
|
+
}
|
|
252
|
+
/** Gets the associated form, if one exists. */
|
|
253
|
+
getForm() {
|
|
254
|
+
return this.formControlController.getForm();
|
|
255
|
+
}
|
|
256
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
257
|
+
reportValidity() {
|
|
258
|
+
return this.valueInput.reportValidity();
|
|
259
|
+
}
|
|
260
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
261
|
+
setCustomValidity(message) {
|
|
262
|
+
this.valueInput.setCustomValidity(message);
|
|
263
|
+
this.formControlController.updateValidity();
|
|
264
|
+
}
|
|
265
|
+
/** Sets focus on the control. */
|
|
266
|
+
focus(options) {
|
|
267
|
+
this.displayInput.focus(options);
|
|
268
|
+
}
|
|
269
|
+
/** Removes focus from the control. */
|
|
270
|
+
blur() {
|
|
271
|
+
this.displayInput.blur();
|
|
272
|
+
}
|
|
273
|
+
render() {
|
|
274
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
275
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
276
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
277
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
278
|
+
const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;
|
|
279
|
+
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
|
280
|
+
const popupOption = popupOptions[this.size] ?? popupOptions.medium;
|
|
281
|
+
return html`
|
|
282
|
+
<div
|
|
283
|
+
part="form-control"
|
|
284
|
+
class=${classMap({
|
|
285
|
+
"form-control": true,
|
|
286
|
+
"form-control--small": this.size === "small",
|
|
287
|
+
"form-control--medium": this.size === "medium",
|
|
288
|
+
"form-control--large": this.size === "large",
|
|
289
|
+
"form-control--has-label": hasLabel,
|
|
290
|
+
"form-control--has-help-text": hasHelpText
|
|
291
|
+
})}
|
|
292
|
+
>
|
|
293
|
+
<label
|
|
294
|
+
id="label"
|
|
295
|
+
part="form-control-label"
|
|
296
|
+
class="form-control__label"
|
|
297
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
298
|
+
@click=${this.handleLabelClick}
|
|
299
|
+
>
|
|
300
|
+
<slot name="label">${this.label}</slot>
|
|
301
|
+
</label>
|
|
302
|
+
|
|
303
|
+
<div part="form-control-input" class="form-control-input">
|
|
304
|
+
<flow-ui-popup
|
|
305
|
+
class=${classMap({
|
|
306
|
+
datepicker: true,
|
|
307
|
+
"datepicker--standard": true,
|
|
308
|
+
"datepicker--filled": this.filled,
|
|
309
|
+
"datepicker--pill": this.pill,
|
|
310
|
+
"datepicker--open": this.open,
|
|
311
|
+
"datepicker--disabled": this.disabled,
|
|
312
|
+
"datepicker--focused": this.hasFocus,
|
|
313
|
+
"datepicker--placeholder-visible": isPlaceholderVisible,
|
|
314
|
+
"datepicker--top": this.placement === "top",
|
|
315
|
+
"datepicker--bottom": this.placement === "bottom",
|
|
316
|
+
"datepicker--small": this.size === "small",
|
|
317
|
+
"datepicker--medium": this.size === "medium",
|
|
318
|
+
"datepicker--large": this.size === "large"
|
|
319
|
+
})}
|
|
320
|
+
placement=${this.placement}
|
|
321
|
+
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
322
|
+
flip
|
|
323
|
+
shift
|
|
324
|
+
auto-size="both"
|
|
325
|
+
arrow
|
|
326
|
+
distance=${popupOption.distance}
|
|
327
|
+
skidding=${popupOption.skidding}
|
|
328
|
+
arrow-placement="end"
|
|
329
|
+
>
|
|
330
|
+
<div
|
|
331
|
+
part="combobox"
|
|
332
|
+
class="datepicker__combobox"
|
|
333
|
+
slot="anchor"
|
|
334
|
+
@keydown=${this.handleComboboxKeyDown}
|
|
335
|
+
@mousedown=${this.handleComboboxMouseDown}
|
|
336
|
+
>
|
|
337
|
+
<slot part="prefix" name="prefix" class="datepicker__prefix"></slot>
|
|
338
|
+
|
|
339
|
+
<input
|
|
340
|
+
part="display-input"
|
|
341
|
+
class="datepicker__display-input"
|
|
342
|
+
type="text"
|
|
343
|
+
placeholder=${this.placeholder}
|
|
344
|
+
.disabled=${this.disabled}
|
|
345
|
+
.value=${this.displayLabel}
|
|
346
|
+
autocomplete="off"
|
|
347
|
+
spellcheck="false"
|
|
348
|
+
autocapitalize="off"
|
|
349
|
+
readonly
|
|
350
|
+
aria-controls="listbox"
|
|
351
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
352
|
+
aria-haspopup="listbox"
|
|
353
|
+
aria-labelledby="label"
|
|
354
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
355
|
+
aria-describedby="help-text"
|
|
356
|
+
role="combobox"
|
|
357
|
+
tabindex="0"
|
|
358
|
+
@focus=${this.handleFocus}
|
|
359
|
+
@blur=${this.handleBlur}
|
|
360
|
+
/>
|
|
361
|
+
|
|
362
|
+
<input
|
|
363
|
+
class="datepicker__value-input"
|
|
364
|
+
type="text"
|
|
365
|
+
?disabled=${this.disabled}
|
|
366
|
+
?required=${this.required}
|
|
367
|
+
.value=${this.value}
|
|
368
|
+
tabindex="-1"
|
|
369
|
+
aria-hidden="true"
|
|
370
|
+
@focus=${() => this.focus()}
|
|
371
|
+
@invalid=${this.handleInvalid}
|
|
372
|
+
/>
|
|
373
|
+
|
|
374
|
+
${hasClearIcon ? html`
|
|
375
|
+
<button
|
|
376
|
+
part="clear-button"
|
|
377
|
+
class="datepicker__clear"
|
|
378
|
+
type="button"
|
|
379
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
380
|
+
@mousedown=${this.handleClearMouseDown}
|
|
381
|
+
@click=${this.handleClearClick}
|
|
382
|
+
tabindex="-1"
|
|
383
|
+
>
|
|
384
|
+
<slot name="clear-icon">
|
|
385
|
+
<flow-ui-icon name="x-circle-fill" library="system"></flow-ui-icon>
|
|
386
|
+
</slot>
|
|
387
|
+
</button>
|
|
388
|
+
` : ""}
|
|
389
|
+
|
|
390
|
+
<slot name="mode-icon" part="mode-icon" class="datepicker__mode-icon">
|
|
391
|
+
<flow-ui-icon
|
|
392
|
+
library="system"
|
|
393
|
+
name=${this.displayMode === "time" ? "clock" : "calendar"}
|
|
394
|
+
></flow-ui-icon>
|
|
395
|
+
</slot>
|
|
396
|
+
</div>
|
|
397
|
+
|
|
398
|
+
<div part="calendar-container" class="datepicker__calendar-container" tabindex="-1">
|
|
399
|
+
${this.open ? html`
|
|
400
|
+
<flow-ui-calendar
|
|
401
|
+
value=${this.value}
|
|
402
|
+
display-mode=${this.displayMode}
|
|
403
|
+
size=${this.size}
|
|
404
|
+
timezone=${ifDefined(this.timezone)}
|
|
405
|
+
locale=${ifDefined(this.locale)}
|
|
406
|
+
@flow-ui-change=${this.handleCalendarChange}
|
|
407
|
+
></flow-ui-calendar>
|
|
408
|
+
` : nothing}
|
|
409
|
+
</div>
|
|
410
|
+
</flow-ui-popup>
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
<slot
|
|
414
|
+
name="help-text"
|
|
415
|
+
part="form-control-help-text"
|
|
416
|
+
id="help-text"
|
|
417
|
+
class="form-control__help-text"
|
|
418
|
+
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
419
|
+
>
|
|
420
|
+
${this.helpText}
|
|
421
|
+
</slot>
|
|
422
|
+
</div>
|
|
423
|
+
`;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
FlowUiDateTimePicker.styles = styles;
|
|
427
|
+
__decorateClass([
|
|
428
|
+
query(".datepicker")
|
|
429
|
+
], FlowUiDateTimePicker.prototype, "popup", 2);
|
|
430
|
+
__decorateClass([
|
|
431
|
+
query(".datepicker__display-input")
|
|
432
|
+
], FlowUiDateTimePicker.prototype, "displayInput", 2);
|
|
433
|
+
__decorateClass([
|
|
434
|
+
query(".datepicker__value-input")
|
|
435
|
+
], FlowUiDateTimePicker.prototype, "valueInput", 2);
|
|
436
|
+
__decorateClass([
|
|
437
|
+
query(".datepicker__calendar-container")
|
|
438
|
+
], FlowUiDateTimePicker.prototype, "calendarContainer", 2);
|
|
439
|
+
__decorateClass([
|
|
440
|
+
state()
|
|
441
|
+
], FlowUiDateTimePicker.prototype, "hasFocus", 2);
|
|
442
|
+
__decorateClass([
|
|
443
|
+
state()
|
|
444
|
+
], FlowUiDateTimePicker.prototype, "displayLabel", 2);
|
|
445
|
+
__decorateClass([
|
|
446
|
+
property()
|
|
447
|
+
], FlowUiDateTimePicker.prototype, "name", 2);
|
|
448
|
+
__decorateClass([
|
|
449
|
+
property({ reflect: true })
|
|
450
|
+
], FlowUiDateTimePicker.prototype, "value", 2);
|
|
451
|
+
__decorateClass([
|
|
452
|
+
property({ attribute: "display-mode" })
|
|
453
|
+
], FlowUiDateTimePicker.prototype, "displayMode", 2);
|
|
454
|
+
__decorateClass([
|
|
455
|
+
property()
|
|
456
|
+
], FlowUiDateTimePicker.prototype, "format", 2);
|
|
457
|
+
__decorateClass([
|
|
458
|
+
property()
|
|
459
|
+
], FlowUiDateTimePicker.prototype, "timezone", 2);
|
|
460
|
+
__decorateClass([
|
|
461
|
+
property()
|
|
462
|
+
], FlowUiDateTimePicker.prototype, "locale", 2);
|
|
463
|
+
__decorateClass([
|
|
464
|
+
defaultValue()
|
|
465
|
+
], FlowUiDateTimePicker.prototype, "defaultValue", 2);
|
|
466
|
+
__decorateClass([
|
|
467
|
+
property({ reflect: true })
|
|
468
|
+
], FlowUiDateTimePicker.prototype, "size", 2);
|
|
469
|
+
__decorateClass([
|
|
470
|
+
property()
|
|
471
|
+
], FlowUiDateTimePicker.prototype, "placeholder", 2);
|
|
472
|
+
__decorateClass([
|
|
473
|
+
property({ type: Boolean, reflect: true })
|
|
474
|
+
], FlowUiDateTimePicker.prototype, "disabled", 2);
|
|
475
|
+
__decorateClass([
|
|
476
|
+
property({ type: Boolean })
|
|
477
|
+
], FlowUiDateTimePicker.prototype, "clearable", 2);
|
|
478
|
+
__decorateClass([
|
|
479
|
+
property({ type: Boolean, reflect: true })
|
|
480
|
+
], FlowUiDateTimePicker.prototype, "open", 2);
|
|
481
|
+
__decorateClass([
|
|
482
|
+
property({ type: Boolean })
|
|
483
|
+
], FlowUiDateTimePicker.prototype, "hoist", 2);
|
|
484
|
+
__decorateClass([
|
|
485
|
+
property({ type: Boolean, reflect: true })
|
|
486
|
+
], FlowUiDateTimePicker.prototype, "filled", 2);
|
|
487
|
+
__decorateClass([
|
|
488
|
+
property({ type: Boolean, reflect: true })
|
|
489
|
+
], FlowUiDateTimePicker.prototype, "pill", 2);
|
|
490
|
+
__decorateClass([
|
|
491
|
+
property()
|
|
492
|
+
], FlowUiDateTimePicker.prototype, "label", 2);
|
|
493
|
+
__decorateClass([
|
|
494
|
+
property({ reflect: true })
|
|
495
|
+
], FlowUiDateTimePicker.prototype, "placement", 2);
|
|
496
|
+
__decorateClass([
|
|
497
|
+
property({ attribute: "help-text" })
|
|
498
|
+
], FlowUiDateTimePicker.prototype, "helpText", 2);
|
|
499
|
+
__decorateClass([
|
|
500
|
+
property({ reflect: true })
|
|
501
|
+
], FlowUiDateTimePicker.prototype, "form", 2);
|
|
502
|
+
__decorateClass([
|
|
503
|
+
property({ type: Boolean, reflect: true })
|
|
504
|
+
], FlowUiDateTimePicker.prototype, "required", 2);
|
|
505
|
+
__decorateClass([
|
|
506
|
+
watch(["value", "format", "timezone", "locale"])
|
|
507
|
+
], FlowUiDateTimePicker.prototype, "updateDisplayLabel", 1);
|
|
508
|
+
__decorateClass([
|
|
509
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
510
|
+
], FlowUiDateTimePicker.prototype, "handleDisabledChange", 1);
|
|
511
|
+
__decorateClass([
|
|
512
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
513
|
+
], FlowUiDateTimePicker.prototype, "handleValueChange", 1);
|
|
514
|
+
__decorateClass([
|
|
515
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
516
|
+
], FlowUiDateTimePicker.prototype, "handleOpenChange", 1);
|
|
517
|
+
setDefaultAnimation("datetimepicker.show", {
|
|
518
|
+
keyframes: [
|
|
519
|
+
{ opacity: 0, scale: 0.9 },
|
|
520
|
+
{ opacity: 1, scale: 1 }
|
|
521
|
+
],
|
|
522
|
+
options: { duration: 100, easing: "ease" }
|
|
523
|
+
});
|
|
524
|
+
setDefaultAnimation("datetimepicker.hide", {
|
|
525
|
+
keyframes: [
|
|
526
|
+
{ opacity: 1, scale: 1 },
|
|
527
|
+
{ opacity: 0, scale: 0.9 }
|
|
528
|
+
],
|
|
529
|
+
options: { duration: 100, easing: "ease" }
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
export { FlowUiDateTimePicker as default };
|