@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,260 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
import { query, property } from 'lit/decorators.js';
|
|
3
|
+
import FlowRdfElement, { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
4
|
+
import styles from './color-mapper.styles.mjs';
|
|
5
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
6
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
7
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
8
|
+
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
|
+
import { throttle } from '../../internal/throttle.mjs';
|
|
10
|
+
import { watch } from '../../internal/watch.mjs';
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
15
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators[i])
|
|
18
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
+
if (kind && result)
|
|
20
|
+
__defProp(target, key, result);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
class FlowUiColorMapper extends FlowRdfElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.hasSlotController = new HasSlotController(this, "info");
|
|
27
|
+
this.value = {
|
|
28
|
+
mode: "fixed",
|
|
29
|
+
field: void 0,
|
|
30
|
+
defaultColor: "gray",
|
|
31
|
+
colorStops: []
|
|
32
|
+
};
|
|
33
|
+
this.size = "small";
|
|
34
|
+
this.defaultColorStop = false;
|
|
35
|
+
this.swatches = [
|
|
36
|
+
"#d7191c",
|
|
37
|
+
"#ffa500",
|
|
38
|
+
"#ffe909",
|
|
39
|
+
"#a6d96a",
|
|
40
|
+
"#1a9641",
|
|
41
|
+
"#3c58fd",
|
|
42
|
+
"white",
|
|
43
|
+
"black"
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
super.connectedCallback();
|
|
48
|
+
this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
|
|
49
|
+
this.defaultColorStop = boolean(this.defaultColorStop, true);
|
|
50
|
+
}
|
|
51
|
+
handleClassChange() {
|
|
52
|
+
this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
|
|
53
|
+
}
|
|
54
|
+
handleFixedPickerClick(event) {
|
|
55
|
+
event.stopPropagation();
|
|
56
|
+
}
|
|
57
|
+
handleChange(event) {
|
|
58
|
+
const field = this.fieldSelect.value;
|
|
59
|
+
if (this.currentField && this.currentField !== field) {
|
|
60
|
+
this.value.colorStops.forEach((stop) => {
|
|
61
|
+
stop.value = "";
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
this.currentField = field;
|
|
65
|
+
const colorStops = this.getAllColorStops();
|
|
66
|
+
const colorStopPlaceholder = this.getColorStopPlaceholder();
|
|
67
|
+
const stopValues = colorStops.map((colorStop) => colorStop.value);
|
|
68
|
+
this.value = {
|
|
69
|
+
mode: this.modeRadioGroup.value,
|
|
70
|
+
field,
|
|
71
|
+
type: field ? this.options.fields[field].type : void 0,
|
|
72
|
+
defaultColor: this.fixedColorPicker.value,
|
|
73
|
+
colorStops: stopValues
|
|
74
|
+
};
|
|
75
|
+
if (event.target === colorStopPlaceholder) {
|
|
76
|
+
const lastStop = colorStops[colorStops.length - 1];
|
|
77
|
+
this.value.colorStops.push({
|
|
78
|
+
value: colorStopPlaceholder.value.value,
|
|
79
|
+
color: lastStop?.value.color ?? "#ccc",
|
|
80
|
+
options: lastStop?.value.options
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
event.stopPropagation();
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
this.emitChange();
|
|
86
|
+
}
|
|
87
|
+
emitChange() {
|
|
88
|
+
this.emit("flow-ui-change");
|
|
89
|
+
}
|
|
90
|
+
handleColorStopRemove(event) {
|
|
91
|
+
const stops = this.getAllColorStops();
|
|
92
|
+
const colorStopElement = event.target;
|
|
93
|
+
const colorStopIndex = stops.indexOf(colorStopElement);
|
|
94
|
+
if (colorStopIndex >= 0) {
|
|
95
|
+
this.value.colorStops.splice(colorStopIndex, 1);
|
|
96
|
+
this.requestUpdate();
|
|
97
|
+
this.emit("flow-ui-change");
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
getAllColorStops() {
|
|
101
|
+
return [...this.shadowRoot.querySelectorAll("flow-ui-color-stop:not([placeholder])")];
|
|
102
|
+
}
|
|
103
|
+
getColorStopPlaceholder() {
|
|
104
|
+
return this.shadowRoot.querySelector("flow-ui-color-stop[placeholder]");
|
|
105
|
+
}
|
|
106
|
+
// Color mode radio button for 'fixed' mode with associated color picker
|
|
107
|
+
fixedColorTemplate() {
|
|
108
|
+
return html`
|
|
109
|
+
Fixed Color:
|
|
110
|
+
<flow-ui-color-picker
|
|
111
|
+
class="color-mode-control"
|
|
112
|
+
size=${this.size}
|
|
113
|
+
id="fixed-color-picker"
|
|
114
|
+
format="hex"
|
|
115
|
+
placement="bottom-end"
|
|
116
|
+
skidding="0"
|
|
117
|
+
distance="4"
|
|
118
|
+
opacity
|
|
119
|
+
.swatches=${this.swatches}
|
|
120
|
+
.value=${this.value.defaultColor}
|
|
121
|
+
@click=${this.handleFixedPickerClick}
|
|
122
|
+
></flow-ui-color-picker>
|
|
123
|
+
`;
|
|
124
|
+
}
|
|
125
|
+
// Color mode radio button for 'data-driven' mode with associated field selector
|
|
126
|
+
dataDrivenColorTemplate() {
|
|
127
|
+
return html`
|
|
128
|
+
Color By:
|
|
129
|
+
<flow-ui-select
|
|
130
|
+
id="field-select"
|
|
131
|
+
class="color-mode-control"
|
|
132
|
+
value=${ifDefined(this.value.field)}
|
|
133
|
+
size=${this.size}
|
|
134
|
+
placeholder="Data Attribute"
|
|
135
|
+
>
|
|
136
|
+
${Object.keys(this.options?.fields || {}).map(
|
|
137
|
+
(field) => html`
|
|
138
|
+
<flow-ui-option value="${field}">${this.options.fields[field].name ?? field}</flow-ui-option>
|
|
139
|
+
`
|
|
140
|
+
)}
|
|
141
|
+
</flow-ui-select>
|
|
142
|
+
${this.hasSlotController.test("info") ? html`
|
|
143
|
+
<flow-ui-icon-button
|
|
144
|
+
library="system"
|
|
145
|
+
name="info-circle"
|
|
146
|
+
@click=${() => this.infoDialog.show()}
|
|
147
|
+
></flow-ui-icon-button>
|
|
148
|
+
` : nothing}
|
|
149
|
+
`;
|
|
150
|
+
}
|
|
151
|
+
// Color stops for 'data-driven' mode
|
|
152
|
+
colorStopsTemplate() {
|
|
153
|
+
const fieldOptions = this.options.fields[this.value.field];
|
|
154
|
+
if (!fieldOptions)
|
|
155
|
+
return nothing;
|
|
156
|
+
return html`
|
|
157
|
+
<div
|
|
158
|
+
part="color-stops"
|
|
159
|
+
class=${classMap({
|
|
160
|
+
"color-stops": true
|
|
161
|
+
})}
|
|
162
|
+
@flow-ui-remove=${this.handleColorStopRemove}
|
|
163
|
+
>
|
|
164
|
+
${this.value.colorStops.map(
|
|
165
|
+
(value) => html`
|
|
166
|
+
<flow-ui-color-stop
|
|
167
|
+
.options=${fieldOptions}
|
|
168
|
+
.value=${value}
|
|
169
|
+
size=${this.size}
|
|
170
|
+
.swatches=${this.swatches}
|
|
171
|
+
></flow-ui-color-stop>
|
|
172
|
+
`
|
|
173
|
+
)}
|
|
174
|
+
<flow-ui-color-stop
|
|
175
|
+
class="color-stop-placeholder"
|
|
176
|
+
placeholder
|
|
177
|
+
.options=${fieldOptions}
|
|
178
|
+
.value=${{ type: "string", value: "", color: "gray" }}
|
|
179
|
+
size=${this.size}
|
|
180
|
+
></flow-ui-color-stop>
|
|
181
|
+
</div>
|
|
182
|
+
`;
|
|
183
|
+
}
|
|
184
|
+
infoDialogTemplate() {
|
|
185
|
+
return html`
|
|
186
|
+
<flow-ui-dialog label="Color Mapping" class="dialog-info">
|
|
187
|
+
<slot name="info"></slot>
|
|
188
|
+
<flow-ui-button autofocus slot="footer" variant="primary" @click=${() => this.infoDialog.hide()}>
|
|
189
|
+
OK
|
|
190
|
+
</flow-ui-button>
|
|
191
|
+
</flow-ui-dialog>
|
|
192
|
+
`;
|
|
193
|
+
}
|
|
194
|
+
render() {
|
|
195
|
+
return html`
|
|
196
|
+
<div
|
|
197
|
+
part="base"
|
|
198
|
+
class=${classMap({
|
|
199
|
+
"color-mapper": true,
|
|
200
|
+
"color-mapper--small": this.size === "small",
|
|
201
|
+
"color-mapper--medium": this.size === "medium",
|
|
202
|
+
"color-mapper--large": this.size === "large",
|
|
203
|
+
"color-mapper--fixed": this.value.mode === "fixed",
|
|
204
|
+
"color-mapper--data-driven": this.value.mode === "data-driven"
|
|
205
|
+
})}
|
|
206
|
+
@flow-ui-change=${this.handleChange}
|
|
207
|
+
>
|
|
208
|
+
<div part="mode-selector">
|
|
209
|
+
<flow-ui-radio-group id="mode-radio-group" size=${this.size} value=${this.value.mode}>
|
|
210
|
+
<flow-ui-radio value="fixed" class="color-mode-radio">${this.fixedColorTemplate()}</flow-ui-radio>
|
|
211
|
+
<flow-ui-radio value="data-driven" class="color-mode-radio">
|
|
212
|
+
${this.dataDrivenColorTemplate()}
|
|
213
|
+
</flow-ui-radio>
|
|
214
|
+
</flow-ui-radio-group>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
${this.colorStopsTemplate()} ${this.hasSlotController.test("info") ? this.infoDialogTemplate() : nothing}
|
|
218
|
+
</div>
|
|
219
|
+
`;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
FlowUiColorMapper.styles = styles;
|
|
223
|
+
__decorateClass([
|
|
224
|
+
query("#mode-radio-group")
|
|
225
|
+
], FlowUiColorMapper.prototype, "modeRadioGroup", 2);
|
|
226
|
+
__decorateClass([
|
|
227
|
+
query("#fixed-color-picker")
|
|
228
|
+
], FlowUiColorMapper.prototype, "fixedColorPicker", 2);
|
|
229
|
+
__decorateClass([
|
|
230
|
+
query("#field-select")
|
|
231
|
+
], FlowUiColorMapper.prototype, "fieldSelect", 2);
|
|
232
|
+
__decorateClass([
|
|
233
|
+
query(".dialog-info")
|
|
234
|
+
], FlowUiColorMapper.prototype, "infoDialog", 2);
|
|
235
|
+
__decorateClass([
|
|
236
|
+
property({ reflect: true })
|
|
237
|
+
], FlowUiColorMapper.prototype, "class", 2);
|
|
238
|
+
__decorateClass([
|
|
239
|
+
property({ type: Object })
|
|
240
|
+
], FlowUiColorMapper.prototype, "options", 2);
|
|
241
|
+
__decorateClass([
|
|
242
|
+
property({ type: Object })
|
|
243
|
+
], FlowUiColorMapper.prototype, "value", 2);
|
|
244
|
+
__decorateClass([
|
|
245
|
+
property()
|
|
246
|
+
], FlowUiColorMapper.prototype, "size", 2);
|
|
247
|
+
__decorateClass([
|
|
248
|
+
property({ type: Boolean })
|
|
249
|
+
], FlowUiColorMapper.prototype, "defaultColorStop", 2);
|
|
250
|
+
__decorateClass([
|
|
251
|
+
property()
|
|
252
|
+
], FlowUiColorMapper.prototype, "swatches", 2);
|
|
253
|
+
__decorateClass([
|
|
254
|
+
watch("class")
|
|
255
|
+
], FlowUiColorMapper.prototype, "handleClassChange", 1);
|
|
256
|
+
__decorateClass([
|
|
257
|
+
throttle(100)
|
|
258
|
+
], FlowUiColorMapper.prototype, "emitChange", 1);
|
|
259
|
+
|
|
260
|
+
export { FlowUiColorMapper as default };
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
--grid-width: 300px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/*------- Color mode radio styles ------ */
|
|
13
|
+
|
|
14
|
+
.color-mode-radio {
|
|
15
|
+
margin-bottom: var(--flow-ui-spacing-x-small);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.color-mode-radio:last-child {
|
|
19
|
+
margin-bottom: var(--flow-ui-spacing-small);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.color-mode-radio::part(base) {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.color-mode-radio::part(label) {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex: 1;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--flow-ui-spacing-x-small);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.color-mode-control {
|
|
35
|
+
/* Right-align color mode controls */
|
|
36
|
+
margin-inline-start: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
flow-ui-select.color-mode-control {
|
|
40
|
+
/* Stretch attribute selector to fill available space */
|
|
41
|
+
flex: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/*------- Fixed color picker styles ------ */
|
|
45
|
+
|
|
46
|
+
#fixed-color-picker::part(trigger) {
|
|
47
|
+
/* match input box styling */
|
|
48
|
+
border-radius: var(--flow-ui-input-border-radius-small);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
flow-ui-color-picker {
|
|
52
|
+
--grid-width: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* ------- Color stops styles ------- */
|
|
56
|
+
|
|
57
|
+
.color-stops {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.color-mapper--small .color-stops {
|
|
63
|
+
gap: var(--flow-ui-spacing-x-small);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.color-mapper--medium .color-stops {
|
|
67
|
+
gap: var(--flow-ui-spacing-x-small);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.color-mapper--large .color-stops {
|
|
71
|
+
gap: var(--flow-ui-spacing-small);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
flow-ui-color-stop::part(color-picker) {
|
|
75
|
+
--grid-width: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Hide color stop placeholder when color-mode is fixed */
|
|
79
|
+
.color-mapper--fixed .color-stop-placeholder {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.color-mapper--data-driven flow-ui-color-stop[data-user-invalid]::part(input) {
|
|
84
|
+
--flow-ui-input-border-color: var(--flow-ui-color-danger-500);
|
|
85
|
+
--flow-ui-input-border-color-hover: var(--flow-ui-color-danger-500);
|
|
86
|
+
--flow-ui-input-border-color-focus: var(--flow-ui-color-danger-500);
|
|
87
|
+
--flow-ui-input-focus-ring-color: var(--flow-ui-color-danger-100);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
export { styles as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { orderBy } from '../../internal/orderby.mjs';
|
|
2
|
+
import { isArrayFull } from '../../internal/type-checks.mjs';
|
|
3
|
+
|
|
4
|
+
function colorMapperValueToMaplibreExpression(value) {
|
|
5
|
+
if (value.mode === "fixed") {
|
|
6
|
+
return `'${value.defaultColor}'`;
|
|
7
|
+
} else {
|
|
8
|
+
if (!value.field) {
|
|
9
|
+
return `'${value.defaultColor}'`;
|
|
10
|
+
}
|
|
11
|
+
if (!isArrayFull(value.colorStops)) {
|
|
12
|
+
return `'${value.defaultColor}'`;
|
|
13
|
+
}
|
|
14
|
+
if (value.type === "string" || value.type === "select") {
|
|
15
|
+
const cases = value.colorStops.map((stop) => {
|
|
16
|
+
let operator;
|
|
17
|
+
let stopValue = stop.value;
|
|
18
|
+
if (stop.options?.regex) {
|
|
19
|
+
operator = stop.options?.caseSensitive ? "~" : "~*";
|
|
20
|
+
try {
|
|
21
|
+
new RegExp(stopValue);
|
|
22
|
+
} catch (e) {
|
|
23
|
+
stopValue = "invalid_regex";
|
|
24
|
+
}
|
|
25
|
+
} else {
|
|
26
|
+
operator = stop.options?.caseSensitive ? "==" : "=*";
|
|
27
|
+
}
|
|
28
|
+
return `@${value.field} ${operator} '${escapeMaplibreString(stopValue)}', '${stop.color}'`;
|
|
29
|
+
}).join(",\n");
|
|
30
|
+
return `
|
|
31
|
+
case(
|
|
32
|
+
${cases},
|
|
33
|
+
'${value.defaultColor}'
|
|
34
|
+
)
|
|
35
|
+
`;
|
|
36
|
+
} else if (value.type === "number") {
|
|
37
|
+
const cases = orderBy(value.colorStops, ["value"], ["desc"]).map((stop) => {
|
|
38
|
+
return `@${value.field} >= to-number('${escapeMaplibreString(stop.value.toString())}', 0), '${stop.color}'`;
|
|
39
|
+
}).join(",\n");
|
|
40
|
+
return `
|
|
41
|
+
case(
|
|
42
|
+
@${value.field} == null, '${value.defaultColor}',
|
|
43
|
+
${cases},
|
|
44
|
+
'${value.defaultColor}'
|
|
45
|
+
)`;
|
|
46
|
+
} else {
|
|
47
|
+
return `'${value.defaultColor}'`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function escapeMaplibreString(value) {
|
|
52
|
+
return value.replace(/['\\]/g, "\\$&");
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { colorMapperValueToMaplibreExpression, escapeMaplibreString };
|