@emuanalytics/flow-rdf-ui 4.0.4 → 4.0.6
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 +293 -0
- package/dist/components/timer/timer.mjs +5 -0
- package/dist/components/timer/timer.styles.mjs +94 -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 +6494 -6508
- package/dist/index.d.mts +141 -132
- package/dist/index.d.ts +141 -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 +429 -429
- package/package.json +5 -8
- 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,239 @@
|
|
|
1
|
+
import { query, state, property } from 'lit/decorators.js';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
3
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
|
+
import { html, literal } from 'lit/static-html.js';
|
|
5
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
6
|
+
import { waitForEvent } from '../../internal/event.mjs';
|
|
7
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
8
|
+
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
|
+
import styles from './icon-button.styles.mjs';
|
|
10
|
+
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result)
|
|
19
|
+
__defProp(target, key, result);
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
class FlowUiIconButton extends FlowRdfElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.hasSlotController = new HasSlotController(this, "tooltip");
|
|
26
|
+
this.tooltipAnimating = false;
|
|
27
|
+
this.hasFocus = false;
|
|
28
|
+
this.label = "";
|
|
29
|
+
this.tooltip = "";
|
|
30
|
+
this.tooltipPlacement = "top";
|
|
31
|
+
this.tooltipDistance = 8;
|
|
32
|
+
this.tooltipSkidding = 0;
|
|
33
|
+
this.disabled = false;
|
|
34
|
+
this.confirm = "";
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
super.connectedCallback();
|
|
38
|
+
this.disabled = boolean(this.disabled, true);
|
|
39
|
+
}
|
|
40
|
+
handleBlur() {
|
|
41
|
+
this.hasFocus = false;
|
|
42
|
+
this.emit("flow-ui-blur");
|
|
43
|
+
}
|
|
44
|
+
handleFocus() {
|
|
45
|
+
this.hasFocus = true;
|
|
46
|
+
this.emit("flow-ui-focus");
|
|
47
|
+
}
|
|
48
|
+
handleClick(event) {
|
|
49
|
+
const hasConfirm = this.confirm || this.hasSlotController.test("confirm");
|
|
50
|
+
if (this.disabled || hasConfirm) {
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
event.stopPropagation();
|
|
53
|
+
}
|
|
54
|
+
if (hasConfirm) {
|
|
55
|
+
this.showConfirm();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** Simulates a click on the icon button. */
|
|
59
|
+
click() {
|
|
60
|
+
this.button.click();
|
|
61
|
+
}
|
|
62
|
+
/** Sets focus on the icon button. */
|
|
63
|
+
focus(options) {
|
|
64
|
+
this.button.focus(options);
|
|
65
|
+
}
|
|
66
|
+
/** Removes focus from the icon button. */
|
|
67
|
+
blur() {
|
|
68
|
+
this.button.blur();
|
|
69
|
+
}
|
|
70
|
+
/** Hide the confirmation tooltip if it is showing */
|
|
71
|
+
hideConfirm() {
|
|
72
|
+
if (this.tooltipElem && this.tooltipElem.open && !this.tooltipAnimating) {
|
|
73
|
+
waitForEvent(this.tooltipElem, "flow-ui-after-hide").then(() => {
|
|
74
|
+
this.tooltipAnimating = false;
|
|
75
|
+
});
|
|
76
|
+
this.tooltipAnimating = true;
|
|
77
|
+
this.tooltipElem.hide();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/** Show the confirmation tooltip */
|
|
81
|
+
showConfirm() {
|
|
82
|
+
if (this.tooltipElem && !this.tooltipElem.open && !this.tooltipAnimating) {
|
|
83
|
+
waitForEvent(this.tooltipElem, "flow-ui-after-show").then(() => {
|
|
84
|
+
this.tooltipAnimating = false;
|
|
85
|
+
this.confirmButton.focus();
|
|
86
|
+
});
|
|
87
|
+
this.tooltipAnimating = true;
|
|
88
|
+
this.tooltipElem.show();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
handleConfirmClick() {
|
|
92
|
+
this.hideConfirm();
|
|
93
|
+
this.click();
|
|
94
|
+
}
|
|
95
|
+
renderWithTooltip(contents) {
|
|
96
|
+
return html`
|
|
97
|
+
<flow-ui-tooltip
|
|
98
|
+
class=${classMap({
|
|
99
|
+
"icon-button__tooltip": true
|
|
100
|
+
})}
|
|
101
|
+
trigger="hover"
|
|
102
|
+
placement=${this.tooltipPlacement}
|
|
103
|
+
distance=${this.tooltipDistance}
|
|
104
|
+
skidding=${this.tooltipSkidding}
|
|
105
|
+
hoist
|
|
106
|
+
>
|
|
107
|
+
<slot name="tooltip" slot="content">${this.tooltip}</slot>
|
|
108
|
+
${contents}
|
|
109
|
+
</flow-ui-tooltip>
|
|
110
|
+
`;
|
|
111
|
+
}
|
|
112
|
+
renderWithConfirmation(contents) {
|
|
113
|
+
return html`
|
|
114
|
+
<flow-ui-tooltip
|
|
115
|
+
class=${classMap({
|
|
116
|
+
"icon-button__tooltip": true,
|
|
117
|
+
"icon-button__tooltip--confirm": true
|
|
118
|
+
})}
|
|
119
|
+
trigger="manual"
|
|
120
|
+
placement=${this.tooltipPlacement}
|
|
121
|
+
distance=${this.tooltipDistance}
|
|
122
|
+
skidding=${this.tooltipSkidding}
|
|
123
|
+
hoist
|
|
124
|
+
>
|
|
125
|
+
<div class="confirm__wrapper" slot="content">
|
|
126
|
+
<span class="confirm__label"><slot name="confirm">${this.confirm}</slot></span>
|
|
127
|
+
<flow-ui-button
|
|
128
|
+
variant="danger"
|
|
129
|
+
size="small"
|
|
130
|
+
class="icon-button__confirm_button"
|
|
131
|
+
@focusout=${this.hideConfirm}
|
|
132
|
+
@click=${this.handleConfirmClick}
|
|
133
|
+
>
|
|
134
|
+
OK
|
|
135
|
+
</flow-ui-button>
|
|
136
|
+
</div>
|
|
137
|
+
${contents}
|
|
138
|
+
</flow-ui-tooltip>
|
|
139
|
+
`;
|
|
140
|
+
}
|
|
141
|
+
render() {
|
|
142
|
+
const isLink = this.href ? true : false;
|
|
143
|
+
const tag = isLink ? literal`a` : literal`button`;
|
|
144
|
+
const hasTooltip = this.tooltip || this.hasSlotController.test("tooltip");
|
|
145
|
+
const hasConfirm = this.confirm || this.hasSlotController.test("confirm");
|
|
146
|
+
const iconButton = html`
|
|
147
|
+
<${tag}
|
|
148
|
+
part="base"
|
|
149
|
+
class=${classMap({
|
|
150
|
+
"icon-button": true,
|
|
151
|
+
"icon-button--disabled": !isLink && this.disabled,
|
|
152
|
+
"icon-button--focused": this.hasFocus
|
|
153
|
+
})}
|
|
154
|
+
?disabled=${ifDefined(isLink ? void 0 : this.disabled)}
|
|
155
|
+
type=${ifDefined(isLink ? void 0 : "button")}
|
|
156
|
+
href=${ifDefined(isLink ? this.href : void 0)}
|
|
157
|
+
target=${ifDefined(isLink ? this.target : void 0)}
|
|
158
|
+
download=${ifDefined(isLink ? this.download : void 0)}
|
|
159
|
+
rel=${ifDefined(isLink && this.target ? "noreferrer noopener" : void 0)}
|
|
160
|
+
role=${ifDefined(isLink ? void 0 : "button")}
|
|
161
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
162
|
+
aria-label="${this.label}"
|
|
163
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
164
|
+
@blur=${this.handleBlur}
|
|
165
|
+
@focus=${this.handleFocus}
|
|
166
|
+
@click=${this.handleClick}
|
|
167
|
+
>
|
|
168
|
+
<flow-ui-icon
|
|
169
|
+
class="icon-button__icon"
|
|
170
|
+
name=${ifDefined(this.name)}
|
|
171
|
+
library=${ifDefined(this.library)}
|
|
172
|
+
src=${ifDefined(this.src)}
|
|
173
|
+
aria-hidden="true"
|
|
174
|
+
></flow-ui-icon>
|
|
175
|
+
</${tag}>
|
|
176
|
+
`;
|
|
177
|
+
if (hasTooltip) {
|
|
178
|
+
return this.renderWithTooltip(iconButton);
|
|
179
|
+
} else if (hasConfirm) {
|
|
180
|
+
return this.renderWithConfirmation(iconButton);
|
|
181
|
+
} else {
|
|
182
|
+
return iconButton;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
FlowUiIconButton.styles = styles;
|
|
187
|
+
__decorateClass([
|
|
188
|
+
query(".icon-button")
|
|
189
|
+
], FlowUiIconButton.prototype, "button", 2);
|
|
190
|
+
__decorateClass([
|
|
191
|
+
query(".icon-button__tooltip")
|
|
192
|
+
], FlowUiIconButton.prototype, "tooltipElem", 2);
|
|
193
|
+
__decorateClass([
|
|
194
|
+
query(".icon-button__confirm_button")
|
|
195
|
+
], FlowUiIconButton.prototype, "confirmButton", 2);
|
|
196
|
+
__decorateClass([
|
|
197
|
+
state()
|
|
198
|
+
], FlowUiIconButton.prototype, "hasFocus", 2);
|
|
199
|
+
__decorateClass([
|
|
200
|
+
property()
|
|
201
|
+
], FlowUiIconButton.prototype, "name", 2);
|
|
202
|
+
__decorateClass([
|
|
203
|
+
property()
|
|
204
|
+
], FlowUiIconButton.prototype, "library", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
property()
|
|
207
|
+
], FlowUiIconButton.prototype, "src", 2);
|
|
208
|
+
__decorateClass([
|
|
209
|
+
property()
|
|
210
|
+
], FlowUiIconButton.prototype, "href", 2);
|
|
211
|
+
__decorateClass([
|
|
212
|
+
property()
|
|
213
|
+
], FlowUiIconButton.prototype, "target", 2);
|
|
214
|
+
__decorateClass([
|
|
215
|
+
property()
|
|
216
|
+
], FlowUiIconButton.prototype, "download", 2);
|
|
217
|
+
__decorateClass([
|
|
218
|
+
property()
|
|
219
|
+
], FlowUiIconButton.prototype, "label", 2);
|
|
220
|
+
__decorateClass([
|
|
221
|
+
property()
|
|
222
|
+
], FlowUiIconButton.prototype, "tooltip", 2);
|
|
223
|
+
__decorateClass([
|
|
224
|
+
property({ attribute: "tooltip-placement" })
|
|
225
|
+
], FlowUiIconButton.prototype, "tooltipPlacement", 2);
|
|
226
|
+
__decorateClass([
|
|
227
|
+
property({ attribute: "tooltip-distance", type: Number })
|
|
228
|
+
], FlowUiIconButton.prototype, "tooltipDistance", 2);
|
|
229
|
+
__decorateClass([
|
|
230
|
+
property({ attribute: "tooltip-skidding", type: Number })
|
|
231
|
+
], FlowUiIconButton.prototype, "tooltipSkidding", 2);
|
|
232
|
+
__decorateClass([
|
|
233
|
+
property({ type: Boolean, reflect: true })
|
|
234
|
+
], FlowUiIconButton.prototype, "disabled", 2);
|
|
235
|
+
__decorateClass([
|
|
236
|
+
property()
|
|
237
|
+
], FlowUiIconButton.prototype, "confirm", 2);
|
|
238
|
+
|
|
239
|
+
export { FlowUiIconButton as default };
|
|
@@ -0,0 +1,81 @@
|
|
|
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: inline-block;
|
|
9
|
+
color: var(--flow-ui-color-neutral-600);
|
|
10
|
+
|
|
11
|
+
--hover-color: var(--flow-ui-color-primary-500);
|
|
12
|
+
--active-color: var(--flow-ui-color-primary-400);
|
|
13
|
+
--icon-size: inherit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.icon-button {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
/* Start new stacking context to allow z-index: -1 on :before pseudo-element */
|
|
20
|
+
isolation: isolate;
|
|
21
|
+
flex: 0 0 auto;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: var(--flow-ui-spacing-x-small);
|
|
25
|
+
align-items: center;
|
|
26
|
+
background: none;
|
|
27
|
+
border: none;
|
|
28
|
+
border-radius: var(--flow-ui-border-radius-medium);
|
|
29
|
+
font-size: inherit;
|
|
30
|
+
color: inherit;
|
|
31
|
+
padding: var(--flow-ui-spacing-x-small);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
transition: var(--flow-ui-transition-x-fast) color;
|
|
34
|
+
-webkit-appearance: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.icon-button:hover:not(.icon-button--disabled),
|
|
38
|
+
.icon-button:focus-visible:not(.icon-button--disabled) {
|
|
39
|
+
color: var(--hover-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.icon-button:active:not(.icon-button--disabled) {
|
|
43
|
+
color: var(--active-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.icon-button:focus {
|
|
47
|
+
outline: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon-button--disabled {
|
|
51
|
+
opacity: 0.5;
|
|
52
|
+
cursor: not-allowed;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.icon-button:focus-visible {
|
|
56
|
+
outline: var(--flow-ui-focus-ring);
|
|
57
|
+
outline-offset: var(--flow-ui-focus-ring-offset);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.icon-button__icon {
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
font-size: var(--icon-size);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Tooltip */
|
|
66
|
+
.icon-button__tooltip {
|
|
67
|
+
--show-delay: var(--flow-ui-button-tooltip-delay);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Icon button with confirmation */
|
|
71
|
+
.icon-button__tooltip--confirm::part(body) {
|
|
72
|
+
padding: var(--flow-ui-spacing-2x-small);
|
|
73
|
+
pointer-events: all;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.icon-button__tooltip--confirm .confirm__label {
|
|
77
|
+
margin-inline: var(--flow-ui-spacing-x-small);
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
export { styles as default };
|