@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,96 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--divider-width: 2px;
|
|
9
|
+
--divider-hit-area: 12px;
|
|
10
|
+
--color: var(--flow-ui-divider-color);
|
|
11
|
+
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.divider {
|
|
16
|
+
height: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
position: relative;
|
|
19
|
+
background-color: var(--color);
|
|
20
|
+
color: var(--flow-ui-color-neutral-900);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host(:not([vertical])) .divider {
|
|
24
|
+
width: var(--divider-width);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([vertical]) .divider {
|
|
28
|
+
height: var(--divider-width);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.divider-highlight {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
background-color: var(--flow-ui-color-primary-500);
|
|
35
|
+
transition: transform var(--flow-ui-transition-fast) ease-in-out;
|
|
36
|
+
transition-delay: var(--flow-ui-transition-x-fast);
|
|
37
|
+
transform: scale(0);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([dragging]) .divider-highlight,
|
|
41
|
+
.divider:hover .divider-highlight {
|
|
42
|
+
transform: scale(1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.divider:focus {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host(:not([disabled])) .divider:focus-visible {
|
|
50
|
+
background-color: var(--flow-ui-color-primary-500);
|
|
51
|
+
color: var(--flow-ui-color-neutral-0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([disabled]) .divider {
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([hidden]) .divider {
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([dragging]) {
|
|
63
|
+
transition: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Horizontal */
|
|
67
|
+
:host(:not([vertical], [disabled])) .divider {
|
|
68
|
+
cursor: col-resize;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host(:not([vertical])) .divider::after {
|
|
72
|
+
display: flex;
|
|
73
|
+
content: '';
|
|
74
|
+
position: absolute;
|
|
75
|
+
height: 100%;
|
|
76
|
+
left: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
|
|
77
|
+
width: var(--divider-hit-area);
|
|
78
|
+
z-index: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Vertical */
|
|
82
|
+
:host([vertical]:not([disabled])) .divider {
|
|
83
|
+
cursor: row-resize;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([vertical]) .divider::after {
|
|
87
|
+
content: '';
|
|
88
|
+
position: absolute;
|
|
89
|
+
width: 100%;
|
|
90
|
+
top: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
|
|
91
|
+
height: var(--divider-hit-area);
|
|
92
|
+
z-index: 1;
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
export { styles as default };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
import { query, property } from 'lit/decorators.js';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
5
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
6
|
+
import { setDefaultAnimation } from '../../utilities/animation-registry.mjs';
|
|
7
|
+
import styles from './split-view-pane.styles.mjs';
|
|
8
|
+
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
+
if (kind && result)
|
|
17
|
+
__defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
class FlowUiSplitViewPane extends FlowRdfElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.vertical = false;
|
|
24
|
+
this.closed = false;
|
|
25
|
+
this.divider = false;
|
|
26
|
+
this.hidden = false;
|
|
27
|
+
}
|
|
28
|
+
connectedCallback() {
|
|
29
|
+
super.connectedCallback();
|
|
30
|
+
this.vertical = boolean(this.vertical, true);
|
|
31
|
+
this.closed = boolean(this.closed, true);
|
|
32
|
+
this.divider = boolean(this.divider, true);
|
|
33
|
+
this.hidden = boolean(this.hidden, true);
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
super.disconnectedCallback();
|
|
37
|
+
}
|
|
38
|
+
/** @internal */
|
|
39
|
+
cancelDrag() {
|
|
40
|
+
if (this.dividerComponent) {
|
|
41
|
+
this.dividerComponent.cancelDrag();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** Open the split pane. */
|
|
45
|
+
async expand(emitEvent = true) {
|
|
46
|
+
if (this.closed) {
|
|
47
|
+
this.closed = false;
|
|
48
|
+
if (emitEvent) {
|
|
49
|
+
this.emit("flow-ui-expand");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/** Close the split pane. */
|
|
54
|
+
async collapse(emitEvent = true) {
|
|
55
|
+
if (!this.closed) {
|
|
56
|
+
this.closed = true;
|
|
57
|
+
if (emitEvent) {
|
|
58
|
+
this.emit("flow-ui-collapse");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return html`
|
|
64
|
+
<div
|
|
65
|
+
class=${classMap({
|
|
66
|
+
"split-view-pane": true,
|
|
67
|
+
"split-view-pane--vertical": this.vertical,
|
|
68
|
+
"split-view-pane--horizontal": !this.vertical,
|
|
69
|
+
"split-view-pane--hidden": this.hidden,
|
|
70
|
+
"split-view-pane--closed": this.closed
|
|
71
|
+
})}
|
|
72
|
+
@flow-ui-expand=${this.expand}
|
|
73
|
+
@flow-ui-collapse=${this.collapse}
|
|
74
|
+
>
|
|
75
|
+
<div part="contents" class="split-view-pane__contents">
|
|
76
|
+
<slot></slot>
|
|
77
|
+
</div>
|
|
78
|
+
${this.divider ? html`
|
|
79
|
+
<flow-ui-split-view-divider
|
|
80
|
+
part="divider"
|
|
81
|
+
?vertical=${this.vertical}
|
|
82
|
+
class="split-view-pane__divider"
|
|
83
|
+
></flow-ui-split-view-divider>
|
|
84
|
+
` : nothing}
|
|
85
|
+
</div>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
FlowUiSplitViewPane.styles = styles;
|
|
90
|
+
__decorateClass([
|
|
91
|
+
query(".split-view-pane__divider")
|
|
92
|
+
], FlowUiSplitViewPane.prototype, "dividerComponent", 2);
|
|
93
|
+
__decorateClass([
|
|
94
|
+
property({ type: Boolean, reflect: true })
|
|
95
|
+
], FlowUiSplitViewPane.prototype, "vertical", 2);
|
|
96
|
+
__decorateClass([
|
|
97
|
+
property({ reflect: true })
|
|
98
|
+
], FlowUiSplitViewPane.prototype, "size", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
property({ attribute: "min-size", reflect: true })
|
|
101
|
+
], FlowUiSplitViewPane.prototype, "minSize", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
property({ attribute: "max-size", reflect: true })
|
|
104
|
+
], FlowUiSplitViewPane.prototype, "maxSize", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
property({ attribute: "closed-size", reflect: true })
|
|
107
|
+
], FlowUiSplitViewPane.prototype, "closedSize", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
property({ type: Boolean, reflect: true })
|
|
110
|
+
], FlowUiSplitViewPane.prototype, "closed", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
property({ type: Boolean, reflect: true })
|
|
113
|
+
], FlowUiSplitViewPane.prototype, "divider", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
property({ type: Boolean, reflect: true })
|
|
116
|
+
], FlowUiSplitViewPane.prototype, "hidden", 2);
|
|
117
|
+
setDefaultAnimation("split-view-pane.expand", {
|
|
118
|
+
keyframes: [{ height: "0" }, { height: "auto" }],
|
|
119
|
+
options: { duration: 250, easing: "linear" }
|
|
120
|
+
});
|
|
121
|
+
setDefaultAnimation("split-view-pane.collapse", {
|
|
122
|
+
keyframes: [{ height: "auto" }, { height: "0" }],
|
|
123
|
+
options: { duration: 250, easing: "linear" }
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export { FlowUiSplitViewPane as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
min-height: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([hidden]) {
|
|
13
|
+
min-height: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.split-view-pane {
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([vertical]) .split-view-pane {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.split-view-pane--hidden {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Body */
|
|
31
|
+
|
|
32
|
+
.split-view-pane__contents {
|
|
33
|
+
flex: 1;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.split-view-pane--vertical .split-view-pane__contents {
|
|
39
|
+
/* Ensure panel ignores minimum content height */
|
|
40
|
+
min-height: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.split-view-pane--horizontal .split-view-pane__contents {
|
|
44
|
+
/* Ensure panel ignores minimum content height */
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
export { styles as default };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { property } from 'lit/decorators.js';
|
|
2
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
3
|
+
import FlowUiIconButton from '../icon-button/icon-button.component.mjs';
|
|
4
|
+
import styles from './split-view-toggle-button.styles.mjs';
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
+
if (kind && result)
|
|
14
|
+
__defProp(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
class FlowUiSplitViewToggleButton extends FlowUiIconButton {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.parentPane = null;
|
|
21
|
+
this.parentPanelObserver = null;
|
|
22
|
+
this.name = "chevron-right";
|
|
23
|
+
this.library = "system";
|
|
24
|
+
this.closed = false;
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
super.connectedCallback();
|
|
28
|
+
this.closed = boolean(this.closed, true);
|
|
29
|
+
this.parentPane = this.closestElement("flow-ui-split-view-pane");
|
|
30
|
+
if (this.parentPane) {
|
|
31
|
+
this.parentPanelObserver = new MutationObserver(() => {
|
|
32
|
+
this.closed = this.parentPane.closed;
|
|
33
|
+
});
|
|
34
|
+
this.parentPanelObserver.observe(this.parentPane, {
|
|
35
|
+
attributes: true,
|
|
36
|
+
attributeFilter: ["closed"]
|
|
37
|
+
});
|
|
38
|
+
this.closed = this.parentPane.closed;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
super.disconnectedCallback();
|
|
43
|
+
if (this.parentPanelObserver) {
|
|
44
|
+
this.parentPanelObserver.disconnect();
|
|
45
|
+
this.parentPanelObserver = null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
handleClick(event) {
|
|
49
|
+
super.handleClick(event);
|
|
50
|
+
this.closed = !this.closed;
|
|
51
|
+
this.emit(this.closed ? "flow-ui-collapse" : "flow-ui-expand");
|
|
52
|
+
}
|
|
53
|
+
closestElement(selector, base = this) {
|
|
54
|
+
function __closestFrom(el) {
|
|
55
|
+
if (!el || el === document || el === window)
|
|
56
|
+
return null;
|
|
57
|
+
if (el.assignedSlot)
|
|
58
|
+
el = el.assignedSlot;
|
|
59
|
+
const found = el.closest(selector);
|
|
60
|
+
return found ? found : __closestFrom(el.getRootNode().host);
|
|
61
|
+
}
|
|
62
|
+
return __closestFrom(base);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
FlowUiSplitViewToggleButton.styles = [FlowUiIconButton.styles, styles];
|
|
66
|
+
__decorateClass([
|
|
67
|
+
property()
|
|
68
|
+
], FlowUiSplitViewToggleButton.prototype, "name", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
property()
|
|
71
|
+
], FlowUiSplitViewToggleButton.prototype, "library", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
property({ type: Boolean, reflect: true })
|
|
74
|
+
], FlowUiSplitViewToggleButton.prototype, "closed", 2);
|
|
75
|
+
|
|
76
|
+
export { FlowUiSplitViewToggleButton as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--closed-rotation: 0deg;
|
|
9
|
+
--open-rotation: 180deg;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([position='right']) {
|
|
13
|
+
--closed-rotation: 180deg;
|
|
14
|
+
--open-rotation: 0deg;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([position='top']) {
|
|
18
|
+
--closed-rotation: 0deg;
|
|
19
|
+
--open-rotation: 90deg;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([position='bottom']) {
|
|
23
|
+
--closed-rotation: 0deg;
|
|
24
|
+
--open-rotation: 90deg;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([closed]) .icon-button {
|
|
28
|
+
transform: rotate(var(--closed-rotation));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host(:not([closed])) .icon-button {
|
|
32
|
+
transform: rotate(var(--open-rotation));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.icon-button {
|
|
36
|
+
transition: transform var(--flow-ui-transition-medium) ease-in-out;
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
export { styles as default };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
import { query, state } from 'lit/decorators.js';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
5
|
+
import { scrollIntoView } from '../../internal/scroll.mjs';
|
|
6
|
+
import styles from './stepper.styles.mjs';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
+
if (decorator = decorators[i])
|
|
14
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
+
if (kind && result)
|
|
16
|
+
__defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
let id = 0;
|
|
20
|
+
class FlowUiStepper extends FlowRdfElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.attrId = ++id;
|
|
24
|
+
this.componentId = `flow-ui-stepper-${this.attrId}`;
|
|
25
|
+
this.panels = [];
|
|
26
|
+
}
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
super.connectedCallback();
|
|
29
|
+
this.id = this.id.length > 0 ? this.id : this.componentId;
|
|
30
|
+
this.mutationObserver = new MutationObserver((_mutations) => {
|
|
31
|
+
this.syncPanels();
|
|
32
|
+
});
|
|
33
|
+
this.updateComplete.then(() => {
|
|
34
|
+
this.mutationObserver.observe(this, { attributes: true, childList: true, subtree: true });
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/** Mark the specified panel as `complete` */
|
|
38
|
+
setComplete(panelName, complete = true) {
|
|
39
|
+
const panel = this.panels.find((el) => el.name === panelName);
|
|
40
|
+
if (panel && panel.complete !== complete) {
|
|
41
|
+
panel.complete = complete;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
show(panelName) {
|
|
45
|
+
const panel = this.panels.find((el) => el.name === panelName);
|
|
46
|
+
if (panel) {
|
|
47
|
+
this.setActivePanel(panel);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
syncPanels() {
|
|
51
|
+
this.panels = this.getAllPanels();
|
|
52
|
+
this.activePanel = this.panels.find((el) => el.active);
|
|
53
|
+
if (!this.activePanel) {
|
|
54
|
+
this.activePanel = this.panels[0];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
getAllPanels() {
|
|
58
|
+
return [...this.bodySlot.assignedElements()].filter(
|
|
59
|
+
(el) => el.tagName.toLowerCase() === "flow-ui-stepper-panel"
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
setActivePanel(panel, options) {
|
|
63
|
+
options = {
|
|
64
|
+
emitEvents: true,
|
|
65
|
+
scrollBehavior: "auto",
|
|
66
|
+
...options
|
|
67
|
+
};
|
|
68
|
+
if (panel !== this.activePanel) {
|
|
69
|
+
const previousPanel = this.activePanel;
|
|
70
|
+
this.activePanel = panel;
|
|
71
|
+
this.panels.forEach((el) => el.active = el === this.activePanel);
|
|
72
|
+
const panelIndex = this.panels.indexOf(this.activePanel);
|
|
73
|
+
const panelHeaderItem = this.headerScrollContainer.getElementsByClassName("stepper__header-item").item(panelIndex);
|
|
74
|
+
scrollIntoView(panelHeaderItem, this.headerScrollContainer, "horizontal", options.scrollBehavior);
|
|
75
|
+
if (options.emitEvents) {
|
|
76
|
+
if (previousPanel) {
|
|
77
|
+
this.emit("flow-ui-tab-hide", { detail: { name: previousPanel.name } });
|
|
78
|
+
}
|
|
79
|
+
this.emit("flow-ui-tab-show", { detail: { name: this.activePanel.name } });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
renderHeaderItem(panel, index) {
|
|
84
|
+
return html`
|
|
85
|
+
<div
|
|
86
|
+
class=${classMap({
|
|
87
|
+
"stepper__header-item": true,
|
|
88
|
+
"stepper__header-item--active": panel.active,
|
|
89
|
+
"stepper__header-item--complete": panel.complete
|
|
90
|
+
})}
|
|
91
|
+
>
|
|
92
|
+
<div class="stepper__header-item-icon">
|
|
93
|
+
<div class="stepper__header-item-icon-content">${index + 1}</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="stepper__header-item-label">
|
|
96
|
+
<div class="stepper__header-item-title">${panel.title}</div>
|
|
97
|
+
${panel.subTitle ? html`
|
|
98
|
+
<div class="stepper__header-item-subtitle">${panel.subTitle}</div>
|
|
99
|
+
` : nothing}
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
`;
|
|
103
|
+
}
|
|
104
|
+
renderHeader() {
|
|
105
|
+
return this.panels.map((panel, index) => {
|
|
106
|
+
const template = [this.renderHeaderItem(panel, index)];
|
|
107
|
+
if (index > 0) {
|
|
108
|
+
template.unshift(html`
|
|
109
|
+
<div class="stepper__header-line"></div>
|
|
110
|
+
`);
|
|
111
|
+
}
|
|
112
|
+
return template;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
return html`
|
|
117
|
+
<div part="base" class="stepper">
|
|
118
|
+
<div class="stepper_header-scroll-container">
|
|
119
|
+
<div part="header" class="stepper__header">${this.renderHeader()}</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div part="body" class="stepper__body">
|
|
122
|
+
<slot class="stepper__body-slot" @slotchange=${this.syncPanels}></slot>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
FlowUiStepper.styles = styles;
|
|
129
|
+
__decorateClass([
|
|
130
|
+
query(".stepper__body-slot")
|
|
131
|
+
], FlowUiStepper.prototype, "bodySlot", 2);
|
|
132
|
+
__decorateClass([
|
|
133
|
+
query(".stepper_header-scroll-container")
|
|
134
|
+
], FlowUiStepper.prototype, "headerScrollContainer", 2);
|
|
135
|
+
__decorateClass([
|
|
136
|
+
state()
|
|
137
|
+
], FlowUiStepper.prototype, "panels", 2);
|
|
138
|
+
|
|
139
|
+
export { FlowUiStepper as default };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
--header-height: 56px;
|
|
10
|
+
--header-icon-size: 24px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.stepper_header-scroll-container {
|
|
14
|
+
overflow-x: auto;
|
|
15
|
+
|
|
16
|
+
/* Hide scrollbar in Firefox */
|
|
17
|
+
scrollbar-width: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Hide scrollbar in webkit */
|
|
21
|
+
.stepper_header-scroll-container::-webkit-scrollbar {
|
|
22
|
+
width: 0;
|
|
23
|
+
height: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.stepper__header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.stepper__header-item {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
padding-inline: var(--flow-ui-spacing-large);
|
|
36
|
+
height: var(--header-height);
|
|
37
|
+
box-sizing: content-box;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.stepper__header-item--active {
|
|
41
|
+
background-color: var(--flow-ui-color-neutral-200);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.stepper__header-item-icon {
|
|
45
|
+
position: relative;
|
|
46
|
+
width: var(--header-icon-size);
|
|
47
|
+
height: var(--header-icon-size);
|
|
48
|
+
margin-right: var(--flow-ui-spacing-x-small);
|
|
49
|
+
flex: none;
|
|
50
|
+
border-radius: var(--flow-ui-border-radius-circle);
|
|
51
|
+
color: var(--flow-ui-color-neutral-800);
|
|
52
|
+
background-color: var(--flow-ui-color-neutral-400);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.stepper__header-item--active .stepper__header-item-icon, .stepper__header-item--complete .stepper__header-item-icon {
|
|
56
|
+
color: var(--flow-ui-color-primary-contrast);
|
|
57
|
+
background-color: var(--flow-ui-color-primary-500);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.stepper__header-item-icon-content {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 50%;
|
|
63
|
+
left: 50%;
|
|
64
|
+
transform: translate(-50%, -50%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.stepper__header-item-label {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
min-width: 50px;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
line-height: var(--flow-ui-line-height-dense);
|
|
75
|
+
color: var(--flow-ui-color-neutral-700);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.stepper__header-item--active .stepper__header-item-label {
|
|
79
|
+
font-weight: var(--flow-ui-font-weight-semibold);
|
|
80
|
+
color: var(--flow-ui-color-neutral-1000);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.stepper__header-item-title {
|
|
84
|
+
font-size: var(--flow-ui-font-size-medium);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.stepper__header-item-subtitle {
|
|
88
|
+
font-size: var(--flow-ui-font-size-small);
|
|
89
|
+
color: var(--flow-ui-color-neutral-700);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.stepper__header-line {
|
|
93
|
+
border-top-width: 1px;
|
|
94
|
+
border-top-style: solid;
|
|
95
|
+
flex: auto;
|
|
96
|
+
height: 0;
|
|
97
|
+
margin: 0 calc(var(--flow-ui-spacing-large) / -2);
|
|
98
|
+
min-width: 32px;
|
|
99
|
+
border-top-color: var(--flow-ui-color-neutral-300);
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
|
|
103
|
+
export { styles as default };
|