@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,41 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
/*
|
|
9
|
+
* These are actually used by tree item, but we define them here so they can more easily be set and all tree items
|
|
10
|
+
* stay consistent.
|
|
11
|
+
*/
|
|
12
|
+
--indent-guide-color: var(--flow-ui-color-neutral-200);
|
|
13
|
+
--indent-guide-offset: 0;
|
|
14
|
+
--indent-guide-style: solid;
|
|
15
|
+
--indent-guide-width: 0;
|
|
16
|
+
--indent-size: var(--flow-ui-spacing-large);
|
|
17
|
+
|
|
18
|
+
--selected-background-color: var(--flow-ui-color-neutral-100);
|
|
19
|
+
--selected-marker-color: var(--flow-ui-color-primary-500);
|
|
20
|
+
|
|
21
|
+
display: block;
|
|
22
|
+
isolation: isolate;
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Tree item indentation uses the "em" unit to increment its width on each level, so setting the font size to zero
|
|
26
|
+
* here removes the indentation for all the nodes on the first level.
|
|
27
|
+
*/
|
|
28
|
+
font-size: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tree--multiple {
|
|
32
|
+
--selected-background-color: transparent;
|
|
33
|
+
--selected-marker-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tree--small {
|
|
37
|
+
--indent-size: var(--flow-ui-spacing-medium);
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
export { styles as default };
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { state, property, query } from 'lit/decorators.js';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { live } from 'lit/directives/live.js';
|
|
5
|
+
import { when } from 'lit/directives/when.js';
|
|
6
|
+
import { stopAnimations, animateTo, shimKeyframesHeightAuto } from '../../internal/animate.mjs';
|
|
7
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
8
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
9
|
+
import { watch } from '../../internal/watch.mjs';
|
|
10
|
+
import { setDefaultAnimation, getAnimation } from '../../utilities/animation-registry.mjs';
|
|
11
|
+
import { LocalizeController } from '../../utilities/localize.mjs';
|
|
12
|
+
import styles from './tree-item.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
|
+
const _FlowUiTreeItem = class _FlowUiTreeItem extends FlowRdfElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.localize = new LocalizeController(this);
|
|
29
|
+
this.indeterminate = false;
|
|
30
|
+
this.isLeaf = false;
|
|
31
|
+
this.loading = false;
|
|
32
|
+
this.selectable = false;
|
|
33
|
+
this.value = "";
|
|
34
|
+
this.expanded = false;
|
|
35
|
+
this.selected = false;
|
|
36
|
+
this.disabled = false;
|
|
37
|
+
this.lazy = false;
|
|
38
|
+
this.size = "medium";
|
|
39
|
+
}
|
|
40
|
+
/** @internal */
|
|
41
|
+
static isTreeItem(node) {
|
|
42
|
+
return node instanceof Element && node.getAttribute("role") === "treeitem";
|
|
43
|
+
}
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
this.expanded = boolean(this.expanded, true);
|
|
47
|
+
this.selected = boolean(this.selected, true);
|
|
48
|
+
this.disabled = boolean(this.disabled, true);
|
|
49
|
+
this.lazy = boolean(this.lazy, true);
|
|
50
|
+
this.setAttribute("role", "treeitem");
|
|
51
|
+
this.setAttribute("tabindex", "-1");
|
|
52
|
+
if (this.isNestedItem()) {
|
|
53
|
+
this.slot = "children";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
firstUpdated() {
|
|
57
|
+
this.childrenContainer.hidden = !this.expanded;
|
|
58
|
+
this.childrenContainer.style.height = this.expanded ? "auto" : "0";
|
|
59
|
+
this.isLeaf = !this.lazy && this.getChildrenItems().length === 0;
|
|
60
|
+
this.handleExpandedChange();
|
|
61
|
+
}
|
|
62
|
+
handleValueChange() {
|
|
63
|
+
if (typeof this.value !== "string") {
|
|
64
|
+
this.value = String(this.value);
|
|
65
|
+
}
|
|
66
|
+
if (this.value.includes(" ")) {
|
|
67
|
+
console.error(`Option values cannot include a space. All spaces have been replaced with underscores.`, this);
|
|
68
|
+
this.value = this.value.replace(/ /g, "_");
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async animateCollapse() {
|
|
72
|
+
this.emit("flow-ui-collapse");
|
|
73
|
+
await stopAnimations(this.childrenContainer);
|
|
74
|
+
const { keyframes, options } = getAnimation(this, "tree-item.collapse", { dir: this.localize.dir() });
|
|
75
|
+
await animateTo(
|
|
76
|
+
this.childrenContainer,
|
|
77
|
+
shimKeyframesHeightAuto(keyframes, this.childrenContainer.scrollHeight),
|
|
78
|
+
options
|
|
79
|
+
);
|
|
80
|
+
this.childrenContainer.hidden = true;
|
|
81
|
+
this.emit("flow-ui-after-collapse");
|
|
82
|
+
}
|
|
83
|
+
// Checks whether the item is nested into an item
|
|
84
|
+
isNestedItem() {
|
|
85
|
+
const parent = this.parentElement;
|
|
86
|
+
return !!parent && _FlowUiTreeItem.isTreeItem(parent);
|
|
87
|
+
}
|
|
88
|
+
handleChildrenSlotChange() {
|
|
89
|
+
this.loading = false;
|
|
90
|
+
this.isLeaf = !this.lazy && this.getChildrenItems().length === 0;
|
|
91
|
+
}
|
|
92
|
+
willUpdate(changedProperties) {
|
|
93
|
+
if (changedProperties.has("selected") && !changedProperties.has("indeterminate")) {
|
|
94
|
+
this.indeterminate = false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
async animateExpand() {
|
|
98
|
+
this.emit("flow-ui-expand");
|
|
99
|
+
await stopAnimations(this.childrenContainer);
|
|
100
|
+
this.childrenContainer.hidden = false;
|
|
101
|
+
const { keyframes, options } = getAnimation(this, "tree-item.expand", { dir: this.localize.dir() });
|
|
102
|
+
await animateTo(
|
|
103
|
+
this.childrenContainer,
|
|
104
|
+
shimKeyframesHeightAuto(keyframes, this.childrenContainer.scrollHeight),
|
|
105
|
+
options
|
|
106
|
+
);
|
|
107
|
+
this.childrenContainer.style.height = "auto";
|
|
108
|
+
this.emit("flow-ui-after-expand");
|
|
109
|
+
}
|
|
110
|
+
handleLoadingChange() {
|
|
111
|
+
this.setAttribute("aria-busy", this.loading ? "true" : "false");
|
|
112
|
+
if (!this.loading) {
|
|
113
|
+
this.animateExpand();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
handleDisabledChange() {
|
|
117
|
+
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
118
|
+
}
|
|
119
|
+
handleSelectedChange() {
|
|
120
|
+
this.setAttribute("aria-selected", this.selected ? "true" : "false");
|
|
121
|
+
}
|
|
122
|
+
handleExpandedChange() {
|
|
123
|
+
if (!this.isLeaf) {
|
|
124
|
+
this.setAttribute("aria-expanded", this.expanded ? "true" : "false");
|
|
125
|
+
} else {
|
|
126
|
+
this.removeAttribute("aria-expanded");
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
handleExpandAnimation() {
|
|
130
|
+
if (this.expanded) {
|
|
131
|
+
if (this.lazy) {
|
|
132
|
+
this.loading = true;
|
|
133
|
+
this.emit("flow-ui-lazy-load");
|
|
134
|
+
} else {
|
|
135
|
+
this.animateExpand();
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
this.animateCollapse();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
handleLazyChange() {
|
|
142
|
+
this.emit("flow-ui-lazy-change");
|
|
143
|
+
}
|
|
144
|
+
/** Gets all the nested tree items in this node. */
|
|
145
|
+
getChildrenItems({ includeDisabled = true } = {}) {
|
|
146
|
+
return this.childrenSlot ? [...this.childrenSlot.assignedElements({ flatten: true })].filter(
|
|
147
|
+
(item) => _FlowUiTreeItem.isTreeItem(item) && (includeDisabled || !item.disabled)
|
|
148
|
+
) : [];
|
|
149
|
+
}
|
|
150
|
+
render() {
|
|
151
|
+
const isRtl = this.localize.dir() === "rtl";
|
|
152
|
+
const showExpandButton = !this.loading && (!this.isLeaf || this.lazy);
|
|
153
|
+
return html`
|
|
154
|
+
<div
|
|
155
|
+
part="base"
|
|
156
|
+
class="${classMap({
|
|
157
|
+
"tree-item": true,
|
|
158
|
+
"tree-item--expanded": this.expanded,
|
|
159
|
+
"tree-item--selected": this.selected,
|
|
160
|
+
"tree-item--disabled": this.disabled,
|
|
161
|
+
"tree-item--small": this.size === "small",
|
|
162
|
+
"tree-item--medium": this.size === "medium",
|
|
163
|
+
"tree-item--large": this.size === "large",
|
|
164
|
+
"tree-item--leaf": this.isLeaf,
|
|
165
|
+
"tree-item--has-expand-button": showExpandButton,
|
|
166
|
+
"tree-item--rtl": this.localize.dir() === "rtl"
|
|
167
|
+
})}"
|
|
168
|
+
>
|
|
169
|
+
<div
|
|
170
|
+
class="tree-item__item"
|
|
171
|
+
part="
|
|
172
|
+
item
|
|
173
|
+
${this.disabled ? "item--disabled" : ""}
|
|
174
|
+
${this.expanded ? "item--expanded" : ""}
|
|
175
|
+
${this.indeterminate ? "item--indeterminate" : ""}
|
|
176
|
+
${this.selected ? "item--selected" : ""}
|
|
177
|
+
"
|
|
178
|
+
>
|
|
179
|
+
<div class="tree-item__indentation" part="indentation"></div>
|
|
180
|
+
|
|
181
|
+
<div
|
|
182
|
+
part="expand-button"
|
|
183
|
+
class=${classMap({
|
|
184
|
+
"tree-item__expand-button": true,
|
|
185
|
+
"tree-item__expand-button--visible": showExpandButton
|
|
186
|
+
})}
|
|
187
|
+
aria-hidden="true"
|
|
188
|
+
>
|
|
189
|
+
${when(
|
|
190
|
+
this.loading,
|
|
191
|
+
() => html`
|
|
192
|
+
<flow-ui-spinner></flow-ui-spinner>
|
|
193
|
+
`
|
|
194
|
+
)}
|
|
195
|
+
<slot class="tree-item__expand-icon-slot" name="expand-icon">
|
|
196
|
+
<flow-ui-icon library="system" name=${isRtl ? "chevron-left" : "chevron-right"}></flow-ui-icon>
|
|
197
|
+
</slot>
|
|
198
|
+
<slot class="tree-item__expand-icon-slot" name="collapse-icon">
|
|
199
|
+
<flow-ui-icon library="system" name=${isRtl ? "chevron-left" : "chevron-right"}></flow-ui-icon>
|
|
200
|
+
</slot>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
${when(
|
|
204
|
+
this.selectable,
|
|
205
|
+
() => html`
|
|
206
|
+
<flow-ui-checkbox
|
|
207
|
+
part="checkbox"
|
|
208
|
+
exportparts="
|
|
209
|
+
base:checkbox__base,
|
|
210
|
+
control:checkbox__control,
|
|
211
|
+
control--checked:checkbox__control--checked,
|
|
212
|
+
control--indeterminate:checkbox__control--indeterminate,
|
|
213
|
+
checked-icon:checkbox__checked-icon,
|
|
214
|
+
indeterminate-icon:checkbox__indeterminate-icon,
|
|
215
|
+
label:checkbox__label
|
|
216
|
+
"
|
|
217
|
+
class="tree-item__checkbox"
|
|
218
|
+
?disabled="${this.disabled}"
|
|
219
|
+
?checked="${live(this.selected)}"
|
|
220
|
+
?indeterminate="${this.indeterminate}"
|
|
221
|
+
tabindex="-1"
|
|
222
|
+
size="${this.size}"
|
|
223
|
+
></flow-ui-checkbox>
|
|
224
|
+
`
|
|
225
|
+
)}
|
|
226
|
+
|
|
227
|
+
<slot class="tree-item__label" part="label"></slot>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<slot
|
|
231
|
+
name="children"
|
|
232
|
+
class="tree-item__children"
|
|
233
|
+
part="children"
|
|
234
|
+
role="group"
|
|
235
|
+
@slotchange="${this.handleChildrenSlotChange}"
|
|
236
|
+
></slot>
|
|
237
|
+
</div>
|
|
238
|
+
`;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
_FlowUiTreeItem.styles = styles;
|
|
242
|
+
__decorateClass([
|
|
243
|
+
state()
|
|
244
|
+
], _FlowUiTreeItem.prototype, "indeterminate", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
state()
|
|
247
|
+
], _FlowUiTreeItem.prototype, "isLeaf", 2);
|
|
248
|
+
__decorateClass([
|
|
249
|
+
state()
|
|
250
|
+
], _FlowUiTreeItem.prototype, "loading", 2);
|
|
251
|
+
__decorateClass([
|
|
252
|
+
state()
|
|
253
|
+
], _FlowUiTreeItem.prototype, "selectable", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
property({ reflect: true })
|
|
256
|
+
], _FlowUiTreeItem.prototype, "value", 2);
|
|
257
|
+
__decorateClass([
|
|
258
|
+
property({ type: Boolean, reflect: true })
|
|
259
|
+
], _FlowUiTreeItem.prototype, "expanded", 2);
|
|
260
|
+
__decorateClass([
|
|
261
|
+
property({ type: Boolean, reflect: true })
|
|
262
|
+
], _FlowUiTreeItem.prototype, "selected", 2);
|
|
263
|
+
__decorateClass([
|
|
264
|
+
property({ type: Boolean, reflect: true })
|
|
265
|
+
], _FlowUiTreeItem.prototype, "disabled", 2);
|
|
266
|
+
__decorateClass([
|
|
267
|
+
property({ type: Boolean, reflect: true })
|
|
268
|
+
], _FlowUiTreeItem.prototype, "lazy", 2);
|
|
269
|
+
__decorateClass([
|
|
270
|
+
property({ reflect: true })
|
|
271
|
+
], _FlowUiTreeItem.prototype, "size", 2);
|
|
272
|
+
__decorateClass([
|
|
273
|
+
query("slot:not([name])")
|
|
274
|
+
], _FlowUiTreeItem.prototype, "defaultSlot", 2);
|
|
275
|
+
__decorateClass([
|
|
276
|
+
query("slot[name=children]")
|
|
277
|
+
], _FlowUiTreeItem.prototype, "childrenSlot", 2);
|
|
278
|
+
__decorateClass([
|
|
279
|
+
query(".tree-item__item")
|
|
280
|
+
], _FlowUiTreeItem.prototype, "itemElement", 2);
|
|
281
|
+
__decorateClass([
|
|
282
|
+
query(".tree-item__children")
|
|
283
|
+
], _FlowUiTreeItem.prototype, "childrenContainer", 2);
|
|
284
|
+
__decorateClass([
|
|
285
|
+
query(".tree-item__expand-button slot")
|
|
286
|
+
], _FlowUiTreeItem.prototype, "expandButtonSlot", 2);
|
|
287
|
+
__decorateClass([
|
|
288
|
+
watch("value")
|
|
289
|
+
], _FlowUiTreeItem.prototype, "handleValueChange", 1);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
watch("loading", { waitUntilFirstUpdate: true })
|
|
292
|
+
], _FlowUiTreeItem.prototype, "handleLoadingChange", 1);
|
|
293
|
+
__decorateClass([
|
|
294
|
+
watch("disabled")
|
|
295
|
+
], _FlowUiTreeItem.prototype, "handleDisabledChange", 1);
|
|
296
|
+
__decorateClass([
|
|
297
|
+
watch("selected")
|
|
298
|
+
], _FlowUiTreeItem.prototype, "handleSelectedChange", 1);
|
|
299
|
+
__decorateClass([
|
|
300
|
+
watch("expanded", { waitUntilFirstUpdate: true })
|
|
301
|
+
], _FlowUiTreeItem.prototype, "handleExpandedChange", 1);
|
|
302
|
+
__decorateClass([
|
|
303
|
+
watch("expanded", { waitUntilFirstUpdate: true })
|
|
304
|
+
], _FlowUiTreeItem.prototype, "handleExpandAnimation", 1);
|
|
305
|
+
__decorateClass([
|
|
306
|
+
watch("lazy", { waitUntilFirstUpdate: true })
|
|
307
|
+
], _FlowUiTreeItem.prototype, "handleLazyChange", 1);
|
|
308
|
+
let FlowUiTreeItem = _FlowUiTreeItem;
|
|
309
|
+
setDefaultAnimation("tree-item.expand", {
|
|
310
|
+
keyframes: [
|
|
311
|
+
{ height: "0", opacity: "0", overflow: "hidden" },
|
|
312
|
+
{ height: "auto", opacity: "1", overflow: "hidden" }
|
|
313
|
+
],
|
|
314
|
+
options: { duration: 250, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
|
|
315
|
+
});
|
|
316
|
+
setDefaultAnimation("tree-item.collapse", {
|
|
317
|
+
keyframes: [
|
|
318
|
+
{ height: "auto", opacity: "1", overflow: "hidden" },
|
|
319
|
+
{ height: "0", opacity: "0", overflow: "hidden" }
|
|
320
|
+
],
|
|
321
|
+
options: { duration: 200, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
export { FlowUiTreeItem as default };
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
outline: 0;
|
|
10
|
+
z-index: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host(:focus) {
|
|
14
|
+
outline: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
slot:not([name])::slotted(flow-ui-icon) {
|
|
18
|
+
margin-inline-end: var(--flow-ui-spacing-x-small);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.tree-item {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: stretch;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
color: var(--flow-ui-color-neutral-700);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
user-select: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tree-item__checkbox {
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tree-item__expand-button,
|
|
36
|
+
.tree-item__checkbox,
|
|
37
|
+
.tree-item__label {
|
|
38
|
+
font-family: var(--flow-ui-font-sans);
|
|
39
|
+
font-size: var(--flow-ui-font-size-medium);
|
|
40
|
+
font-weight: var(--flow-ui-font-weight-normal);
|
|
41
|
+
line-height: var(--flow-ui-line-height-dense);
|
|
42
|
+
letter-spacing: var(--flow-ui-letter-spacing-normal);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tree-item--small .tree-item__expand-button,
|
|
46
|
+
.tree-item--small .tree-item__checkbox,
|
|
47
|
+
.tree-item--small .tree-item__label {
|
|
48
|
+
font-size: var(--flow-ui-font-size-small);
|
|
49
|
+
line-height: var(--flow-ui-line-height-denser);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tree-item--small .tree-item__expand-button {
|
|
53
|
+
padding: var(--flow-ui-spacing-2x-small);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tree-item--large .tree-item__expand-button,
|
|
57
|
+
.tree-item--large .tree-item__checkbox,
|
|
58
|
+
.tree-item--large .tree-item__label {
|
|
59
|
+
font-size: var(--flow-ui-font-size-large);
|
|
60
|
+
line-height: var(--flow-ui-line-height-normal);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tree-item__checkbox::part(base) {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
margin-right: var(--flow-ui-spacing-x-small);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.tree-item__indentation {
|
|
70
|
+
display: block;
|
|
71
|
+
width: 1em;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.tree-item__expand-button {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
box-sizing: content-box;
|
|
80
|
+
color: var(--flow-ui-color-neutral-500);
|
|
81
|
+
padding: var(--flow-ui-spacing-x-small);
|
|
82
|
+
width: 1rem;
|
|
83
|
+
height: 1rem;
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tree-item__expand-button {
|
|
89
|
+
transition: var(--flow-ui-transition-medium) rotate ease;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.tree-item--expanded .tree-item__expand-button {
|
|
93
|
+
rotate: 90deg;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tree-item--expanded.tree-item--rtl .tree-item__expand-button {
|
|
97
|
+
rotate: -90deg;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tree-item--expanded slot[name='expand-icon'],
|
|
101
|
+
.tree-item:not(.tree-item--expanded) slot[name='collapse-icon'] {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.tree-item__expand-button--visible {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.tree-item__item {
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
border-inline-start: solid 3px transparent;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tree-item--disabled .tree-item__item {
|
|
120
|
+
opacity: 0.5;
|
|
121
|
+
outline: none;
|
|
122
|
+
cursor: not-allowed;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:host(:focus-visible) .tree-item__item {
|
|
126
|
+
outline: var(--flow-ui-focus-ring);
|
|
127
|
+
outline-offset: var(--flow-ui-focus-ring-offset);
|
|
128
|
+
z-index: 2;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
|
|
132
|
+
background-color: var(--selected-background-color);
|
|
133
|
+
border-inline-start-color: var(--selected-marker-color);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:host(:not([aria-disabled='true'])) .tree-item__expand-button {
|
|
137
|
+
color: var(--flow-ui-color-neutral-600);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.tree-item__label {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
transition: var(--flow-ui-transition-fast) color;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.tree-item__children {
|
|
147
|
+
display: block;
|
|
148
|
+
font-size: calc(1em + var(--indent-size, var(--flow-ui-spacing-medium)));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Indentation lines */
|
|
152
|
+
.tree-item__children {
|
|
153
|
+
position: relative;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.tree-item__children::before {
|
|
157
|
+
content: '';
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: var(--indent-guide-offset);
|
|
160
|
+
bottom: var(--indent-guide-offset);
|
|
161
|
+
left: calc(1em - (var(--indent-guide-width) / 2) - 1px);
|
|
162
|
+
border-inline-end: var(--indent-guide-width) var(--indent-guide-style) var(--indent-guide-color);
|
|
163
|
+
z-index: 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.tree-item--rtl .tree-item__children::before {
|
|
167
|
+
left: auto;
|
|
168
|
+
right: 1em;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media (forced-colors: active) {
|
|
172
|
+
:host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
|
|
173
|
+
outline: dashed 1px SelectedItem;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
`;
|
|
177
|
+
|
|
178
|
+
export { styles as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
3
|
+
import styles from './visually-hidden.styles.mjs';
|
|
4
|
+
|
|
5
|
+
class FlowUiVisuallyHidden extends FlowRdfElement {
|
|
6
|
+
render() {
|
|
7
|
+
return html`
|
|
8
|
+
<slot></slot>
|
|
9
|
+
`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
FlowUiVisuallyHidden.styles = styles;
|
|
13
|
+
|
|
14
|
+
export { FlowUiVisuallyHidden as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host(:not(:focus-within)) {
|
|
8
|
+
position: absolute !important;
|
|
9
|
+
width: 1px !important;
|
|
10
|
+
height: 1px !important;
|
|
11
|
+
clip: rect(0 0 0 0) !important;
|
|
12
|
+
clip-path: inset(50%) !important;
|
|
13
|
+
border: none !important;
|
|
14
|
+
overflow: hidden !important;
|
|
15
|
+
white-space: nowrap !important;
|
|
16
|
+
padding: 0 !important;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
export { styles as default };
|