@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,466 @@
|
|
|
1
|
+
import cloneDeep from 'clone-deep';
|
|
2
|
+
import { html, nothing } from 'lit';
|
|
3
|
+
import { state, property } from 'lit/decorators.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
+
import { boolean } from '../../internal/boolean.mjs';
|
|
7
|
+
import FlowRdfElement, { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
8
|
+
import { HasSlotController } from '../../internal/slot.mjs';
|
|
9
|
+
import { isNil, isFunction, isDefined, isUndefined } from '../../internal/type-checks.mjs';
|
|
10
|
+
import { watch } from '../../internal/watch.mjs';
|
|
11
|
+
import { defaultStringTemplate, defaultNumberTemplate, defaultDateTimeTemplate, defaultDateTemplate, defaultTimeTemplate, defaultSelectTemplate } from './default-value-templates.mjs';
|
|
12
|
+
import styles from './query-builder.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 _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this._value = { condition: "and", rules: [] };
|
|
29
|
+
this.hasSlotController = new HasSlotController(this, "help-text", "label", "footer");
|
|
30
|
+
this.value = { condition: "and", rules: [] };
|
|
31
|
+
this.config = { fields: {} };
|
|
32
|
+
this.size = "medium";
|
|
33
|
+
this.disabled = false;
|
|
34
|
+
this.label = "";
|
|
35
|
+
this.helpText = "";
|
|
36
|
+
this.treeLines = false;
|
|
37
|
+
this.subQueryBuilder = false;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Register a custom field definition.
|
|
41
|
+
*
|
|
42
|
+
* A field definition is used to add support for a custom field type. A field type comprises:
|
|
43
|
+
*
|
|
44
|
+
* - a field `type` string
|
|
45
|
+
* - a `template` function that returns the template for the field's value control
|
|
46
|
+
* - an array of `operators` that are valid for the field
|
|
47
|
+
*
|
|
48
|
+
* @param type
|
|
49
|
+
* @param fieldDefinition
|
|
50
|
+
*/
|
|
51
|
+
static registerFieldDefinition(type, fieldDefinition) {
|
|
52
|
+
_FlowUiQueryBuilder.fieldDefinitions.set(type, fieldDefinition);
|
|
53
|
+
}
|
|
54
|
+
connectedCallback() {
|
|
55
|
+
super.connectedCallback();
|
|
56
|
+
this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
|
|
57
|
+
this.disabled = boolean(this.disabled, true);
|
|
58
|
+
}
|
|
59
|
+
handleClassChange() {
|
|
60
|
+
this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
|
|
61
|
+
}
|
|
62
|
+
handleValueChange() {
|
|
63
|
+
this._value = this.subQueryBuilder ? this.value : cloneDeep(this.value);
|
|
64
|
+
if (isNil(this._value)) {
|
|
65
|
+
this._value = { condition: "and", rules: [] };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
valueTemplateForRule(_rule, field) {
|
|
69
|
+
const fieldDef = field?.type && _FlowUiQueryBuilder.fieldDefinitions.get(field.type);
|
|
70
|
+
if (fieldDef?.template) {
|
|
71
|
+
return fieldDef.template;
|
|
72
|
+
} else {
|
|
73
|
+
return (_rule2, _field, _qb, _update) => {
|
|
74
|
+
return html`
|
|
75
|
+
<flow-ui-input
|
|
76
|
+
class="query-builder__rule-value-control"
|
|
77
|
+
size=${this.size}
|
|
78
|
+
placeholder="Value"
|
|
79
|
+
disabled
|
|
80
|
+
></flow-ui-input>
|
|
81
|
+
`;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
getDefault(defaultVal, fallback) {
|
|
86
|
+
if (isFunction(defaultVal)) {
|
|
87
|
+
return defaultVal();
|
|
88
|
+
}
|
|
89
|
+
return isDefined(defaultVal) ? defaultVal : fallback;
|
|
90
|
+
}
|
|
91
|
+
handleAddRule(ev) {
|
|
92
|
+
ev.stopPropagation();
|
|
93
|
+
this._value.rules.push({
|
|
94
|
+
enabled: true
|
|
95
|
+
});
|
|
96
|
+
this.requestUpdate();
|
|
97
|
+
this.updateComplete.then(() => {
|
|
98
|
+
this.emitValueChange();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
handleAddRuleSet(ev) {
|
|
102
|
+
ev.stopPropagation();
|
|
103
|
+
this._value.rules.push({
|
|
104
|
+
condition: "and",
|
|
105
|
+
rules: [{ field: "", enabled: true }]
|
|
106
|
+
});
|
|
107
|
+
this.requestUpdate();
|
|
108
|
+
this.updateComplete.then(() => {
|
|
109
|
+
this.emitValueChange();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Handles removal of a rule set (displayed by a sub-query builder) in response to a remove event.
|
|
114
|
+
*
|
|
115
|
+
* @param ev
|
|
116
|
+
* @param index
|
|
117
|
+
*/
|
|
118
|
+
handleRemoveRule(ev, index) {
|
|
119
|
+
ev.stopPropagation();
|
|
120
|
+
this._value.rules.splice(index, 1);
|
|
121
|
+
this.requestUpdate();
|
|
122
|
+
this.updateComplete.then(() => {
|
|
123
|
+
this.emitValueChange();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
handleSubQueryValueChange(ev) {
|
|
127
|
+
ev.stopPropagation();
|
|
128
|
+
this.emitValueChange();
|
|
129
|
+
}
|
|
130
|
+
handleFieldChanged(ev, rule) {
|
|
131
|
+
ev.stopPropagation();
|
|
132
|
+
const target = ev.target;
|
|
133
|
+
const field = target.value;
|
|
134
|
+
const fieldConfig = this.config.fields[field];
|
|
135
|
+
if (!rule.field) {
|
|
136
|
+
rule.operator = this.getDefault(fieldConfig.defaultOperator, "=");
|
|
137
|
+
rule.value = this.getDefault(fieldConfig.defaultValue);
|
|
138
|
+
}
|
|
139
|
+
rule.field = field;
|
|
140
|
+
this.emitValueChange();
|
|
141
|
+
}
|
|
142
|
+
handleOperatorChanged(ev, rule) {
|
|
143
|
+
ev.stopPropagation();
|
|
144
|
+
const target = ev.target;
|
|
145
|
+
rule.operator = target.value;
|
|
146
|
+
this.emitValueChange();
|
|
147
|
+
}
|
|
148
|
+
handleEnabledChanged(ev, rule) {
|
|
149
|
+
ev.stopPropagation();
|
|
150
|
+
const target = ev.target;
|
|
151
|
+
rule.enabled = target.checked;
|
|
152
|
+
this.emitValueChange();
|
|
153
|
+
}
|
|
154
|
+
handleConditionChange(ev) {
|
|
155
|
+
ev.stopPropagation();
|
|
156
|
+
const target = ev.target;
|
|
157
|
+
this._value.condition = target.value;
|
|
158
|
+
this.emitValueChange();
|
|
159
|
+
}
|
|
160
|
+
emitValueChange() {
|
|
161
|
+
this.value = this._value;
|
|
162
|
+
this.emit("flow-ui-input");
|
|
163
|
+
this.emit("flow-ui-change");
|
|
164
|
+
}
|
|
165
|
+
operatorsForField(field) {
|
|
166
|
+
const fieldConfig = this.config.fields[field];
|
|
167
|
+
if (fieldConfig.operators) {
|
|
168
|
+
return this.config.fields[field].operators;
|
|
169
|
+
}
|
|
170
|
+
return this.defaultOperatorsForFieldType(fieldConfig.type);
|
|
171
|
+
}
|
|
172
|
+
defaultOperatorsForFieldType(type) {
|
|
173
|
+
const fieldDef = _FlowUiQueryBuilder.fieldDefinitions.get(type);
|
|
174
|
+
if (fieldDef?.operators) {
|
|
175
|
+
return fieldDef.operators;
|
|
176
|
+
} else {
|
|
177
|
+
return ["=", "!="];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
toolbarTemplate(ruleSet) {
|
|
181
|
+
const andOrSize = this.size === "large" ? "small" : "x-small";
|
|
182
|
+
return html`
|
|
183
|
+
<div class="query-builder__toolbar">
|
|
184
|
+
<flow-ui-tool-button-group
|
|
185
|
+
mode="radio"
|
|
186
|
+
size=${andOrSize}
|
|
187
|
+
pill
|
|
188
|
+
outline
|
|
189
|
+
variant="secondary"
|
|
190
|
+
class="query-builder-and-or-button-group"
|
|
191
|
+
value=${ruleSet.condition}
|
|
192
|
+
@flow-ui-change=${this.handleConditionChange}
|
|
193
|
+
>
|
|
194
|
+
<flow-ui-tool-button value="and">And</flow-ui-tool-button>
|
|
195
|
+
<flow-ui-tool-button value="or">Or</flow-ui-tool-button>
|
|
196
|
+
</flow-ui-tool-button-group>
|
|
197
|
+
|
|
198
|
+
<div class="spacer"></div>
|
|
199
|
+
|
|
200
|
+
<flow-ui-icon-button
|
|
201
|
+
class="query-builder__toolbar-button"
|
|
202
|
+
library="system"
|
|
203
|
+
name="plus"
|
|
204
|
+
tooltip="Add rule"
|
|
205
|
+
size="small"
|
|
206
|
+
@click=${this.handleAddRule}
|
|
207
|
+
></flow-ui-icon-button>
|
|
208
|
+
<flow-ui-icon-button
|
|
209
|
+
class="query-builder__toolbar-button"
|
|
210
|
+
library="system"
|
|
211
|
+
name="square-plus"
|
|
212
|
+
tooltip="Add rule set"
|
|
213
|
+
size="small"
|
|
214
|
+
@click=${this.handleAddRuleSet}
|
|
215
|
+
></flow-ui-icon-button>
|
|
216
|
+
${this.subQueryBuilder ? html`
|
|
217
|
+
<flow-ui-icon-button
|
|
218
|
+
class="query-builder__toolbar-button"
|
|
219
|
+
library="system"
|
|
220
|
+
name="square-minus"
|
|
221
|
+
size="small"
|
|
222
|
+
tooltip-placement="left"
|
|
223
|
+
confirm="Are you sure?"
|
|
224
|
+
@click=${() => this.emit("flow-ui-remove")}
|
|
225
|
+
></flow-ui-icon-button>
|
|
226
|
+
` : nothing}
|
|
227
|
+
</div>
|
|
228
|
+
`;
|
|
229
|
+
}
|
|
230
|
+
ruleTemplate(rule, fieldConfig, index) {
|
|
231
|
+
return html`
|
|
232
|
+
<div
|
|
233
|
+
class=${classMap({
|
|
234
|
+
"query-builder__rule": true,
|
|
235
|
+
"query-builder__rule--disabled": !rule.enabled
|
|
236
|
+
})}
|
|
237
|
+
>
|
|
238
|
+
<div class="query-builder__rule-control-container">
|
|
239
|
+
<flow-ui-select
|
|
240
|
+
class="query-builder__field-select"
|
|
241
|
+
value=${ifDefined(rule.field)}
|
|
242
|
+
size=${this.size}
|
|
243
|
+
placeholder="Select field"
|
|
244
|
+
hoist
|
|
245
|
+
?disabled=${!rule.enabled}
|
|
246
|
+
@flow-ui-change=${(ev) => this.handleFieldChanged(ev, rule)}
|
|
247
|
+
>
|
|
248
|
+
${Object.keys(this.config.fields).map((key) => {
|
|
249
|
+
const field = this.config.fields[key];
|
|
250
|
+
return html`
|
|
251
|
+
<flow-ui-option value=${key}>${field.name}</flow-ui-option>
|
|
252
|
+
`;
|
|
253
|
+
})}
|
|
254
|
+
</flow-ui-select>
|
|
255
|
+
<flow-ui-select
|
|
256
|
+
class="query-builder__operator-select"
|
|
257
|
+
value=${ifDefined(rule.operator)}
|
|
258
|
+
size=${this.size}
|
|
259
|
+
placeholder="Operator"
|
|
260
|
+
hoist
|
|
261
|
+
?disabled=${!rule.enabled || isUndefined(rule.field)}
|
|
262
|
+
@flow-ui-change=${(ev) => this.handleOperatorChanged(ev, rule)}
|
|
263
|
+
>
|
|
264
|
+
${rule.field ? this.operatorsForField(rule.field).map((operator) => {
|
|
265
|
+
return html`
|
|
266
|
+
<flow-ui-option value=${operator}>${operator}</flow-ui-option>
|
|
267
|
+
`;
|
|
268
|
+
}) : nothing}
|
|
269
|
+
</flow-ui-select>
|
|
270
|
+
|
|
271
|
+
${this.ruleValueTemplate(rule, fieldConfig)}
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
<flow-ui-tooltip content="Enable/disable this rule" trigger="hover" style="--show-delay: 1000;">
|
|
275
|
+
<flow-ui-checkbox
|
|
276
|
+
class="query-builder__rule-checkbox"
|
|
277
|
+
size="small"
|
|
278
|
+
?checked=${rule.enabled}
|
|
279
|
+
@flow-ui-change=${(ev) => this.handleEnabledChanged(ev, rule)}
|
|
280
|
+
></flow-ui-checkbox>
|
|
281
|
+
</flow-ui-tooltip>
|
|
282
|
+
<flow-ui-icon-button
|
|
283
|
+
class="query-builder__rule-remove-button"
|
|
284
|
+
label="Remove rule"
|
|
285
|
+
library="system"
|
|
286
|
+
name="dash-circle"
|
|
287
|
+
confirm="Are you sure?"
|
|
288
|
+
tooltip-placement="left"
|
|
289
|
+
tooltip-distance="1"
|
|
290
|
+
@click=${(ev) => this.handleRemoveRule(ev, index)}
|
|
291
|
+
></flow-ui-icon-button>
|
|
292
|
+
</div>
|
|
293
|
+
`;
|
|
294
|
+
}
|
|
295
|
+
ruleValueTemplate(rule, fieldConfig) {
|
|
296
|
+
const template = this.valueTemplateForRule(rule, fieldConfig);
|
|
297
|
+
return html`
|
|
298
|
+
<div
|
|
299
|
+
class="query-builder__rule-value-wrapper"
|
|
300
|
+
@flow-ui-change=${(ev) => ev.stopPropagation()}
|
|
301
|
+
@flow-ui-input=${(ev) => ev.stopPropagation()}
|
|
302
|
+
>
|
|
303
|
+
${template(rule, fieldConfig, this, this.emitValueChange.bind(this))}
|
|
304
|
+
</div>
|
|
305
|
+
`;
|
|
306
|
+
}
|
|
307
|
+
subQueryBuilderTemplate(ruleSet, index) {
|
|
308
|
+
return html`
|
|
309
|
+
<flow-ui-query-builder
|
|
310
|
+
sub-query-builder
|
|
311
|
+
class=${classMap({
|
|
312
|
+
"query-builder__rule": true,
|
|
313
|
+
"query-builder--child": true,
|
|
314
|
+
"query-builder--no-rules": ruleSet.rules.length === 0
|
|
315
|
+
})}
|
|
316
|
+
.value=${ruleSet}
|
|
317
|
+
.config=${this.config}
|
|
318
|
+
size=${this.size}
|
|
319
|
+
?tree-lines=${this.treeLines}
|
|
320
|
+
@flow-ui-change=${this.handleSubQueryValueChange}
|
|
321
|
+
@flow-ui-remove=${(ev) => this.handleRemoveRule(ev, index)}
|
|
322
|
+
></flow-ui-query-builder>
|
|
323
|
+
`;
|
|
324
|
+
}
|
|
325
|
+
emptyRulesetTemplate() {
|
|
326
|
+
return html`
|
|
327
|
+
<div class="query-builder__empty-ruleset">
|
|
328
|
+
<i>A rule set cannot be empty. Please add a rule or remove the set.</i>
|
|
329
|
+
</div>
|
|
330
|
+
`;
|
|
331
|
+
}
|
|
332
|
+
render() {
|
|
333
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
334
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
335
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
336
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
337
|
+
return html`
|
|
338
|
+
<div
|
|
339
|
+
part="form-control"
|
|
340
|
+
class=${classMap({
|
|
341
|
+
"form-control": true,
|
|
342
|
+
"form-control--small": this.size === "small",
|
|
343
|
+
"form-control--medium": this.size === "medium",
|
|
344
|
+
"form-control--large": this.size === "large",
|
|
345
|
+
"form-control--has-label": hasLabel,
|
|
346
|
+
"form-control--has-help-text": hasHelpText,
|
|
347
|
+
"query-builder--has-footer": this.hasSlotController.test("footer")
|
|
348
|
+
})}
|
|
349
|
+
>
|
|
350
|
+
<label
|
|
351
|
+
id="label"
|
|
352
|
+
part="form-control-label"
|
|
353
|
+
class="form-control__label"
|
|
354
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
355
|
+
>
|
|
356
|
+
<slot name="label">${this.label}</slot>
|
|
357
|
+
</label>
|
|
358
|
+
|
|
359
|
+
<div
|
|
360
|
+
class=${classMap({
|
|
361
|
+
"query-builder": true,
|
|
362
|
+
"query-builder--small": this.size === "small",
|
|
363
|
+
"query-builder--medium": this.size === "medium",
|
|
364
|
+
"query-builder--large": this.size === "large",
|
|
365
|
+
"query-builder--disabled": this.disabled,
|
|
366
|
+
"query-builder--tree-lines": this.treeLines,
|
|
367
|
+
"query-builder--no-rules": this.subQueryBuilder && this._value.rules.length === 0
|
|
368
|
+
})}
|
|
369
|
+
>
|
|
370
|
+
${this.toolbarTemplate(this._value)}
|
|
371
|
+
|
|
372
|
+
<div class="query-builder__rules">
|
|
373
|
+
${this._value.rules.length ? this._value.rules.map((rule, index) => {
|
|
374
|
+
if ("rules" in rule) {
|
|
375
|
+
return this.subQueryBuilderTemplate(rule, index);
|
|
376
|
+
} else {
|
|
377
|
+
return this.ruleTemplate(rule, rule.field ? this.config.fields[rule.field] : void 0, index);
|
|
378
|
+
}
|
|
379
|
+
}) : this.subQueryBuilder ? this.emptyRulesetTemplate() : nothing}
|
|
380
|
+
</div>
|
|
381
|
+
|
|
382
|
+
<slot
|
|
383
|
+
name="help-text"
|
|
384
|
+
part="form-control-help-text"
|
|
385
|
+
id="help-text"
|
|
386
|
+
class="form-control__help-text"
|
|
387
|
+
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
388
|
+
>
|
|
389
|
+
${this.helpText}
|
|
390
|
+
</slot>
|
|
391
|
+
|
|
392
|
+
${this.hasSlotController.test("footer") ? html`
|
|
393
|
+
<footer part="footer" class="query-builder__footer">
|
|
394
|
+
<slot name="footer"></slot>
|
|
395
|
+
</footer>
|
|
396
|
+
` : nothing}
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
`;
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
_FlowUiQueryBuilder.styles = styles;
|
|
403
|
+
_FlowUiQueryBuilder.fieldDefinitions = /* @__PURE__ */ new Map();
|
|
404
|
+
__decorateClass([
|
|
405
|
+
state()
|
|
406
|
+
], _FlowUiQueryBuilder.prototype, "_value", 2);
|
|
407
|
+
__decorateClass([
|
|
408
|
+
property({ reflect: true })
|
|
409
|
+
], _FlowUiQueryBuilder.prototype, "class", 2);
|
|
410
|
+
__decorateClass([
|
|
411
|
+
property({ attribute: false })
|
|
412
|
+
], _FlowUiQueryBuilder.prototype, "value", 2);
|
|
413
|
+
__decorateClass([
|
|
414
|
+
property({ attribute: false })
|
|
415
|
+
], _FlowUiQueryBuilder.prototype, "config", 2);
|
|
416
|
+
__decorateClass([
|
|
417
|
+
property({ reflect: true })
|
|
418
|
+
], _FlowUiQueryBuilder.prototype, "size", 2);
|
|
419
|
+
__decorateClass([
|
|
420
|
+
property({ type: Boolean, reflect: true })
|
|
421
|
+
], _FlowUiQueryBuilder.prototype, "disabled", 2);
|
|
422
|
+
__decorateClass([
|
|
423
|
+
property()
|
|
424
|
+
], _FlowUiQueryBuilder.prototype, "label", 2);
|
|
425
|
+
__decorateClass([
|
|
426
|
+
property({ attribute: "help-text" })
|
|
427
|
+
], _FlowUiQueryBuilder.prototype, "helpText", 2);
|
|
428
|
+
__decorateClass([
|
|
429
|
+
property({ type: Boolean, attribute: "tree-lines" })
|
|
430
|
+
], _FlowUiQueryBuilder.prototype, "treeLines", 2);
|
|
431
|
+
__decorateClass([
|
|
432
|
+
property({ type: Boolean, attribute: "sub-query-builder" })
|
|
433
|
+
], _FlowUiQueryBuilder.prototype, "subQueryBuilder", 2);
|
|
434
|
+
__decorateClass([
|
|
435
|
+
watch("class")
|
|
436
|
+
], _FlowUiQueryBuilder.prototype, "handleClassChange", 1);
|
|
437
|
+
__decorateClass([
|
|
438
|
+
watch("value")
|
|
439
|
+
], _FlowUiQueryBuilder.prototype, "handleValueChange", 1);
|
|
440
|
+
let FlowUiQueryBuilder = _FlowUiQueryBuilder;
|
|
441
|
+
FlowUiQueryBuilder.registerFieldDefinition("string", {
|
|
442
|
+
template: defaultStringTemplate,
|
|
443
|
+
operators: ["=", "!=", "like", "contains"]
|
|
444
|
+
});
|
|
445
|
+
FlowUiQueryBuilder.registerFieldDefinition("number", {
|
|
446
|
+
template: defaultNumberTemplate,
|
|
447
|
+
operators: ["=", "!=", "<", "<=", ">=", ">"]
|
|
448
|
+
});
|
|
449
|
+
FlowUiQueryBuilder.registerFieldDefinition("datetime", {
|
|
450
|
+
template: defaultDateTimeTemplate,
|
|
451
|
+
operators: ["=", "!=", "<", "<=", ">=", ">", "between"]
|
|
452
|
+
});
|
|
453
|
+
FlowUiQueryBuilder.registerFieldDefinition("date", {
|
|
454
|
+
template: defaultDateTemplate,
|
|
455
|
+
operators: ["=", "!=", "<", "<=", ">=", ">"]
|
|
456
|
+
});
|
|
457
|
+
FlowUiQueryBuilder.registerFieldDefinition("time", {
|
|
458
|
+
template: defaultTimeTemplate,
|
|
459
|
+
operators: ["=", "!=", "<", "<=", ">=", ">"]
|
|
460
|
+
});
|
|
461
|
+
FlowUiQueryBuilder.registerFieldDefinition("select", {
|
|
462
|
+
template: defaultSelectTemplate,
|
|
463
|
+
operators: ["=", "!=", "in", "!in"]
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
export { FlowUiQueryBuilder as default };
|