@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,59 @@
|
|
|
1
|
+
import { Chart, BarController, LineController, ScatterController, LineElement, PointElement, BarElement, CategoryScale, LinearScale, LogarithmicScale, TimeScale, TimeSeriesScale, Legend, Tooltip, Title, Interaction } from 'chart.js';
|
|
2
|
+
export { Chart as ChartJs } from 'chart.js';
|
|
3
|
+
import { MatrixController, MatrixElement } from 'chartjs-chart-matrix';
|
|
4
|
+
import AnnotationPlugin from 'chartjs-plugin-annotation';
|
|
5
|
+
import Interpolate from './chartjs-plugins/interaction.interpolate.mjs';
|
|
6
|
+
import FlowUiColorsPlugin from './chartjs-plugins/plugin.flow-ui-colors.mjs';
|
|
7
|
+
import CursorPositioner from './chartjs-plugins/positioner.cursor.mjs';
|
|
8
|
+
import SymlogAxis from './chartjs-plugins/symlog.scale.mjs';
|
|
9
|
+
|
|
10
|
+
let chartJsInitialized = false;
|
|
11
|
+
function initializeChartJs() {
|
|
12
|
+
if (chartJsInitialized) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
chartJsInitialized = true;
|
|
16
|
+
Chart.register(
|
|
17
|
+
FlowUiColorsPlugin,
|
|
18
|
+
BarController,
|
|
19
|
+
LineController,
|
|
20
|
+
ScatterController,
|
|
21
|
+
LineElement,
|
|
22
|
+
PointElement,
|
|
23
|
+
BarElement,
|
|
24
|
+
CategoryScale,
|
|
25
|
+
LinearScale,
|
|
26
|
+
LogarithmicScale,
|
|
27
|
+
TimeScale,
|
|
28
|
+
TimeSeriesScale,
|
|
29
|
+
SymlogAxis,
|
|
30
|
+
Legend,
|
|
31
|
+
Tooltip,
|
|
32
|
+
Title,
|
|
33
|
+
AnnotationPlugin,
|
|
34
|
+
MatrixController,
|
|
35
|
+
MatrixElement
|
|
36
|
+
);
|
|
37
|
+
Tooltip.positioners.cursor = CursorPositioner;
|
|
38
|
+
Interaction.modes.interpolate = Interpolate;
|
|
39
|
+
Chart.defaults.animation = false;
|
|
40
|
+
Chart.defaults.responsive = true;
|
|
41
|
+
Chart.defaults.maintainAspectRatio = false;
|
|
42
|
+
Chart.defaults.layout.padding = {
|
|
43
|
+
top: 5,
|
|
44
|
+
right: 10,
|
|
45
|
+
bottom: 5,
|
|
46
|
+
left: 5
|
|
47
|
+
};
|
|
48
|
+
Chart.defaults.plugins.legend.position = "bottom";
|
|
49
|
+
Chart.defaults.plugins.legend.align = "start";
|
|
50
|
+
Chart.defaults.plugins.tooltip.position = "cursor";
|
|
51
|
+
Chart.defaults.plugins.title.font = { size: 12 };
|
|
52
|
+
Chart.defaults.plugins.title.align = "start";
|
|
53
|
+
Chart.defaults.plugins.title.padding = { top: 0, bottom: 10 };
|
|
54
|
+
}
|
|
55
|
+
function registerChartComponent(...components) {
|
|
56
|
+
Chart.register(...components);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { initializeChartJs, registerChartComponent };
|
|
@@ -0,0 +1,246 @@
|
|
|
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 { live } from 'lit/directives/live.js';
|
|
6
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
7
|
+
import { defaultValue } from '../../internal/default-value.mjs';
|
|
8
|
+
import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
9
|
+
import { FormControlController } from '../../internal/form.mjs';
|
|
10
|
+
import { HasSlotController } from '../../internal/slot.mjs';
|
|
11
|
+
import { watch } from '../../internal/watch.mjs';
|
|
12
|
+
import styles from './checkbox.styles.mjs';
|
|
13
|
+
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
16
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
17
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
18
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
19
|
+
if (decorator = decorators[i])
|
|
20
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
21
|
+
if (kind && result)
|
|
22
|
+
__defProp(target, key, result);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
class FlowUiCheckbox extends FlowRdfFormControl {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
29
|
+
this.formControlController = new FormControlController(this, {
|
|
30
|
+
value: (control) => control.checked ? control.value || "on" : void 0,
|
|
31
|
+
defaultValue: (control) => control.defaultChecked,
|
|
32
|
+
setValue: (control, checked) => control.checked = checked
|
|
33
|
+
});
|
|
34
|
+
this.hasFocus = false;
|
|
35
|
+
this.title = "";
|
|
36
|
+
this.name = "";
|
|
37
|
+
this.size = "medium";
|
|
38
|
+
this.disabled = false;
|
|
39
|
+
this.checked = false;
|
|
40
|
+
this.indeterminate = false;
|
|
41
|
+
this.defaultChecked = false;
|
|
42
|
+
this.form = "";
|
|
43
|
+
this.required = false;
|
|
44
|
+
this.fullWidth = false;
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
super.connectedCallback();
|
|
48
|
+
this.checked = boolean(this.checked, true);
|
|
49
|
+
this.indeterminate = boolean(this.indeterminate, true);
|
|
50
|
+
this.disabled = boolean(this.disabled, true);
|
|
51
|
+
this.required = boolean(this.required, true);
|
|
52
|
+
this.fullWidth = boolean(this.fullWidth, true);
|
|
53
|
+
}
|
|
54
|
+
/** Gets the validity state object */
|
|
55
|
+
get validity() {
|
|
56
|
+
return this.input.validity;
|
|
57
|
+
}
|
|
58
|
+
/** Gets the validation message */
|
|
59
|
+
get validationMessage() {
|
|
60
|
+
return this.input.validationMessage;
|
|
61
|
+
}
|
|
62
|
+
firstUpdated() {
|
|
63
|
+
this.formControlController.updateValidity();
|
|
64
|
+
}
|
|
65
|
+
handleClick() {
|
|
66
|
+
this.checked = !this.checked;
|
|
67
|
+
this.indeterminate = false;
|
|
68
|
+
this.emit("flow-ui-change");
|
|
69
|
+
}
|
|
70
|
+
handleBlur() {
|
|
71
|
+
this.hasFocus = false;
|
|
72
|
+
this.emit("flow-ui-blur");
|
|
73
|
+
}
|
|
74
|
+
handleInput() {
|
|
75
|
+
this.emit("flow-ui-input");
|
|
76
|
+
}
|
|
77
|
+
handleInvalid(event) {
|
|
78
|
+
this.formControlController.setValidity(false);
|
|
79
|
+
this.formControlController.emitInvalidEvent(event);
|
|
80
|
+
}
|
|
81
|
+
handleFocus() {
|
|
82
|
+
this.hasFocus = true;
|
|
83
|
+
this.emit("flow-ui-focus");
|
|
84
|
+
}
|
|
85
|
+
handleDisabledChange() {
|
|
86
|
+
this.formControlController.setValidity(this.disabled);
|
|
87
|
+
}
|
|
88
|
+
handleStateChange() {
|
|
89
|
+
this.input.checked = this.checked;
|
|
90
|
+
this.input.indeterminate = this.indeterminate;
|
|
91
|
+
this.formControlController.updateValidity();
|
|
92
|
+
}
|
|
93
|
+
/** Simulates a click on the checkbox. */
|
|
94
|
+
click() {
|
|
95
|
+
this.input.click();
|
|
96
|
+
}
|
|
97
|
+
/** Sets focus on the checkbox. */
|
|
98
|
+
focus(options) {
|
|
99
|
+
this.input.focus(options);
|
|
100
|
+
}
|
|
101
|
+
/** Removes focus from the checkbox. */
|
|
102
|
+
blur() {
|
|
103
|
+
this.input.blur();
|
|
104
|
+
}
|
|
105
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
106
|
+
checkValidity() {
|
|
107
|
+
return this.input.checkValidity();
|
|
108
|
+
}
|
|
109
|
+
/** Gets the associated form, if one exists. */
|
|
110
|
+
getForm() {
|
|
111
|
+
return this.formControlController.getForm();
|
|
112
|
+
}
|
|
113
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
114
|
+
reportValidity() {
|
|
115
|
+
return this.input.reportValidity();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear
|
|
119
|
+
* the custom validation message, call this method with an empty string.
|
|
120
|
+
*/
|
|
121
|
+
setCustomValidity(message) {
|
|
122
|
+
this.input.setCustomValidity(message);
|
|
123
|
+
this.formControlController.updateValidity();
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
return html`
|
|
127
|
+
<label
|
|
128
|
+
part="base"
|
|
129
|
+
class=${classMap({
|
|
130
|
+
checkbox: true,
|
|
131
|
+
"checkbox--checked": this.checked,
|
|
132
|
+
"checkbox--disabled": this.disabled,
|
|
133
|
+
"checkbox--focused": this.hasFocus,
|
|
134
|
+
"checkbox--indeterminate": this.indeterminate,
|
|
135
|
+
"checkbox--small": this.size === "small",
|
|
136
|
+
"checkbox--medium": this.size === "medium",
|
|
137
|
+
"checkbox--large": this.size === "large",
|
|
138
|
+
"checkbox--primary": this.variant === "primary",
|
|
139
|
+
"checkbox--secondary": this.variant === "secondary",
|
|
140
|
+
"checkbox--success": this.variant === "success",
|
|
141
|
+
"checkbox--warning": this.variant === "warning",
|
|
142
|
+
"checkbox--danger": this.variant === "danger",
|
|
143
|
+
"checkbox--neutral": this.variant === "neutral",
|
|
144
|
+
"checkbox--full-width": this.fullWidth
|
|
145
|
+
})}
|
|
146
|
+
>
|
|
147
|
+
<input
|
|
148
|
+
class="checkbox__input"
|
|
149
|
+
type="checkbox"
|
|
150
|
+
title=${this.title}
|
|
151
|
+
name=${this.name}
|
|
152
|
+
value=${ifDefined(this.value)}
|
|
153
|
+
.indeterminate=${live(this.indeterminate)}
|
|
154
|
+
.checked=${live(this.checked)}
|
|
155
|
+
.disabled=${this.disabled}
|
|
156
|
+
.required=${this.required}
|
|
157
|
+
aria-checked=${this.checked ? "true" : "false"}
|
|
158
|
+
@click=${this.handleClick}
|
|
159
|
+
@input=${this.handleInput}
|
|
160
|
+
@invalid=${this.handleInvalid}
|
|
161
|
+
@blur=${this.handleBlur}
|
|
162
|
+
@focus=${this.handleFocus}
|
|
163
|
+
/>
|
|
164
|
+
|
|
165
|
+
<span
|
|
166
|
+
part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
|
|
167
|
+
class="checkbox__control"
|
|
168
|
+
>
|
|
169
|
+
${this.checked ? html`
|
|
170
|
+
<flow-ui-icon
|
|
171
|
+
part="checked-icon"
|
|
172
|
+
class="checkbox__checked-icon"
|
|
173
|
+
library="system"
|
|
174
|
+
name="check"
|
|
175
|
+
></flow-ui-icon>
|
|
176
|
+
` : ""}
|
|
177
|
+
${!this.checked && this.indeterminate ? html`
|
|
178
|
+
<flow-ui-icon
|
|
179
|
+
part="indeterminate-icon"
|
|
180
|
+
class="checkbox__indeterminate-icon"
|
|
181
|
+
library="system"
|
|
182
|
+
name="indeterminate"
|
|
183
|
+
></flow-ui-icon>
|
|
184
|
+
` : ""}
|
|
185
|
+
</span>
|
|
186
|
+
|
|
187
|
+
${this.hasSlotController.test("[default]") ? html`
|
|
188
|
+
<div part="label" class="checkbox__label">
|
|
189
|
+
<slot></slot>
|
|
190
|
+
</div>
|
|
191
|
+
` : nothing}
|
|
192
|
+
</label>
|
|
193
|
+
`;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
FlowUiCheckbox.styles = styles;
|
|
197
|
+
__decorateClass([
|
|
198
|
+
query('input[type="checkbox"]')
|
|
199
|
+
], FlowUiCheckbox.prototype, "input", 2);
|
|
200
|
+
__decorateClass([
|
|
201
|
+
state()
|
|
202
|
+
], FlowUiCheckbox.prototype, "hasFocus", 2);
|
|
203
|
+
__decorateClass([
|
|
204
|
+
property()
|
|
205
|
+
], FlowUiCheckbox.prototype, "title", 2);
|
|
206
|
+
__decorateClass([
|
|
207
|
+
property()
|
|
208
|
+
], FlowUiCheckbox.prototype, "name", 2);
|
|
209
|
+
__decorateClass([
|
|
210
|
+
property()
|
|
211
|
+
], FlowUiCheckbox.prototype, "value", 2);
|
|
212
|
+
__decorateClass([
|
|
213
|
+
property({ reflect: true })
|
|
214
|
+
], FlowUiCheckbox.prototype, "size", 2);
|
|
215
|
+
__decorateClass([
|
|
216
|
+
property({ type: Boolean, reflect: true })
|
|
217
|
+
], FlowUiCheckbox.prototype, "disabled", 2);
|
|
218
|
+
__decorateClass([
|
|
219
|
+
property({ type: Boolean, reflect: true })
|
|
220
|
+
], FlowUiCheckbox.prototype, "checked", 2);
|
|
221
|
+
__decorateClass([
|
|
222
|
+
property({ type: Boolean, reflect: true })
|
|
223
|
+
], FlowUiCheckbox.prototype, "indeterminate", 2);
|
|
224
|
+
__decorateClass([
|
|
225
|
+
defaultValue("checked")
|
|
226
|
+
], FlowUiCheckbox.prototype, "defaultChecked", 2);
|
|
227
|
+
__decorateClass([
|
|
228
|
+
property({ reflect: true })
|
|
229
|
+
], FlowUiCheckbox.prototype, "form", 2);
|
|
230
|
+
__decorateClass([
|
|
231
|
+
property({ type: Boolean, reflect: true })
|
|
232
|
+
], FlowUiCheckbox.prototype, "required", 2);
|
|
233
|
+
__decorateClass([
|
|
234
|
+
property()
|
|
235
|
+
], FlowUiCheckbox.prototype, "variant", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
property({ type: Boolean, reflect: true, attribute: "full-width" })
|
|
238
|
+
], FlowUiCheckbox.prototype, "fullWidth", 2);
|
|
239
|
+
__decorateClass([
|
|
240
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
241
|
+
], FlowUiCheckbox.prototype, "handleDisabledChange", 1);
|
|
242
|
+
__decorateClass([
|
|
243
|
+
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
244
|
+
], FlowUiCheckbox.prototype, "handleStateChange", 1);
|
|
245
|
+
|
|
246
|
+
export { FlowUiCheckbox as default };
|
|
@@ -0,0 +1,177 @@
|
|
|
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
|
+
|
|
10
|
+
--checkbox-color: var(--flow-ui-color-secondary-500);
|
|
11
|
+
--checkbox-check-color: var(--flow-ui-color-secondary-contrast);
|
|
12
|
+
--checkbox-hover-color: var(--flow-ui-color-secondary-400);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.checkbox {
|
|
16
|
+
position: relative;
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
font-family: var(--flow-ui-input-font-family);
|
|
20
|
+
font-weight: var(--flow-ui-input-font-weight);
|
|
21
|
+
color: var(--flow-ui-input-label-color);
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Sizes */
|
|
27
|
+
.checkbox--small {
|
|
28
|
+
--toggle-size: var(--flow-ui-toggle-size-small);
|
|
29
|
+
font-size: var(--flow-ui-input-font-size-small);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.checkbox--medium {
|
|
33
|
+
--toggle-size: var(--flow-ui-toggle-size-medium);
|
|
34
|
+
font-size: var(--flow-ui-input-font-size-medium);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.checkbox--large {
|
|
38
|
+
--toggle-size: var(--flow-ui-toggle-size-large);
|
|
39
|
+
font-size: var(--flow-ui-input-font-size-large);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Color variants */
|
|
43
|
+
.checkbox--primary {
|
|
44
|
+
--checkbox-color: var(--flow-ui-color-primary-500);
|
|
45
|
+
--checkbox-hover-color: var(--flow-ui-color-primary-400);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.checkbox--secondary {
|
|
49
|
+
--checkbox-color: var(--flow-ui-color-secondary-500);
|
|
50
|
+
--checkbox-hover-color: var(--flow-ui-color-secondary-400);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.checkbox--success {
|
|
54
|
+
--checkbox-color: var(--flow-ui-color-success-500);
|
|
55
|
+
--checkbox-hover-color: var(--flow-ui-color-success-400);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.checkbox--warning {
|
|
59
|
+
--checkbox-color: var(--flow-ui-color-warning-500);
|
|
60
|
+
--checkbox-hover-color: var(--flow-ui-color-warning-400);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.checkbox--danger {
|
|
64
|
+
--checkbox-color: var(--flow-ui-color-danger-500);
|
|
65
|
+
--checkbox-hover-color: var(--flow-ui-color-danger-400);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.checkbox--neutral {
|
|
69
|
+
--checkbox-color: var(--flow-ui-color-neutral-500);
|
|
70
|
+
--checkbox-hover-color: var(--flow-ui-color-neutral-400);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Alternative 'full-width' style */
|
|
74
|
+
:host([full-width]) {
|
|
75
|
+
display: block;
|
|
76
|
+
margin-top: var(--flow-ui-spacing-small);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.checkbox--full-width {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: row-reverse;
|
|
82
|
+
align-items: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.checkbox--full-width .checkbox__label {
|
|
86
|
+
flex: 1;
|
|
87
|
+
margin: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.checkbox__control {
|
|
91
|
+
flex: 0 0 auto;
|
|
92
|
+
position: relative;
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
width: var(--toggle-size);
|
|
97
|
+
height: var(--toggle-size);
|
|
98
|
+
border: solid var(--flow-ui-input-border-width) var(--flow-ui-input-border-color);
|
|
99
|
+
border-radius: 2px;
|
|
100
|
+
background-color: var(--flow-ui-input-background-color);
|
|
101
|
+
color: var(--checkbox-check-color);
|
|
102
|
+
transition:
|
|
103
|
+
var(--flow-ui-transition-fast) border-color,
|
|
104
|
+
var(--flow-ui-transition-fast) background-color,
|
|
105
|
+
var(--flow-ui-transition-fast) color,
|
|
106
|
+
var(--flow-ui-transition-fast) box-shadow;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.checkbox__input {
|
|
110
|
+
position: absolute;
|
|
111
|
+
opacity: 0;
|
|
112
|
+
padding: 0;
|
|
113
|
+
margin: 0;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.checkbox__checked-icon,
|
|
118
|
+
.checkbox__indeterminate-icon {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
width: var(--toggle-size);
|
|
121
|
+
height: var(--toggle-size);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Hover */
|
|
125
|
+
.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {
|
|
126
|
+
border-color: var(--flow-ui-input-border-color-hover);
|
|
127
|
+
background-color: var(--flow-ui-input-background-color-hover);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Focus */
|
|
131
|
+
.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {
|
|
132
|
+
outline: var(--flow-ui-focus-ring);
|
|
133
|
+
outline-offset: var(--flow-ui-focus-ring-offset);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Checked/indeterminate */
|
|
137
|
+
.checkbox--checked .checkbox__control,
|
|
138
|
+
.checkbox--indeterminate .checkbox__control {
|
|
139
|
+
border-color: var(--checkbox-color);
|
|
140
|
+
background-color: var(--checkbox-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Checked/indeterminate + hover */
|
|
144
|
+
.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,
|
|
145
|
+
.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {
|
|
146
|
+
border-color: var(--checkbox-hover-color);
|
|
147
|
+
background-color: var(--checkbox-hover-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Checked/indeterminate + focus */
|
|
151
|
+
.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control,
|
|
152
|
+
.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {
|
|
153
|
+
outline: var(--flow-ui-focus-ring);
|
|
154
|
+
outline-offset: var(--flow-ui-focus-ring-offset);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Disabled */
|
|
158
|
+
.checkbox--disabled {
|
|
159
|
+
opacity: 0.5;
|
|
160
|
+
cursor: not-allowed;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.checkbox__label {
|
|
164
|
+
display: inline-block;
|
|
165
|
+
color: var(--flow-ui-input-label-color);
|
|
166
|
+
line-height: var(--toggle-size);
|
|
167
|
+
margin-inline-start: 0.5em;
|
|
168
|
+
user-select: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host([required]) .checkbox__label::after {
|
|
172
|
+
content: var(--flow-ui-input-required-content);
|
|
173
|
+
margin-inline-start: var(--flow-ui-input-required-content-offset);
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
|
|
177
|
+
export { styles as default };
|