@emuanalytics/flow-rdf-ui 0.0.2 → 0.0.4
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/custom-elements.json +10664 -9154
- package/dist/flow-rdf-ui.d.ts +3591 -0
- package/dist/flow-rdf-ui.js +2523 -1454
- package/dist/flow-rdf-ui.umd.cjs +2551 -1479
- package/dist/themes/dark.css +13 -0
- package/dist/themes/dark.styles.js +13 -0
- package/dist/themes/light.css +13 -0
- package/dist/themes/light.styles.js +13 -0
- package/dist/vscode.html-custom-data.json +391 -524
- package/package.json +7 -3
- package/dist/types/components/alert/alert.d.ts +0 -71
- package/dist/types/components/alert/alert.stories.d.ts +0 -5
- package/dist/types/components/alert/alert.styles.d.ts +0 -2
- package/dist/types/components/animation/animation.d.ts +0 -81
- package/dist/types/components/animation/animation.stories.d.ts +0 -5
- package/dist/types/components/animation/animation.styles.d.ts +0 -2
- package/dist/types/components/animation/animations.d.ts +0 -6
- package/dist/types/components/animation/index.d.ts +0 -1
- package/dist/types/components/avatar/avatar.d.ts +0 -40
- package/dist/types/components/avatar/avatar.stories.d.ts +0 -5
- package/dist/types/components/avatar/avatar.styles.d.ts +0 -2
- package/dist/types/components/badge/badge.d.ts +0 -27
- package/dist/types/components/badge/badge.stories.d.ts +0 -5
- package/dist/types/components/badge/badge.styles.d.ts +0 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +0 -35
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +0 -5
- package/dist/types/components/breadcrumb/breadcrumb.styles.d.ts +0 -2
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +0 -39
- package/dist/types/components/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -2
- package/dist/types/components/button/button.d.ts +0 -133
- package/dist/types/components/button/button.stories.d.ts +0 -6
- package/dist/types/components/button/button.styles.d.ts +0 -2
- package/dist/types/components/button-group/button-group.d.ts +0 -33
- package/dist/types/components/button-group/button-group.stories.d.ts +0 -5
- package/dist/types/components/button-group/button-group.styles.d.ts +0 -2
- package/dist/types/components/card/card.d.ts +0 -34
- package/dist/types/components/card/card.stories.d.ts +0 -5
- package/dist/types/components/card/card.styles.d.ts +0 -2
- package/dist/types/components/carousel/autoplay-controller.d.ts +0 -20
- package/dist/types/components/carousel/carousel.d.ts +0 -105
- package/dist/types/components/carousel/carousel.styles.d.ts +0 -2
- package/dist/types/components/carousel/scroll-controller.d.ts +0 -28
- package/dist/types/components/carousel-item/carousel-item.d.ts +0 -24
- package/dist/types/components/carousel-item/carousel-item.styles.d.ts +0 -2
- package/dist/types/components/checkbox/checkbox.d.ts +0 -94
- package/dist/types/components/checkbox/checkbox.styles.d.ts +0 -2
- package/dist/types/components/checkbox/index.d.ts +0 -1
- package/dist/types/components/color-mapper/color-mapper.component.d.ts +0 -39
- package/dist/types/components/color-mapper/color-mapper.stories.d.ts +0 -68
- package/dist/types/components/color-mapper/color-mapper.styles.d.ts +0 -2
- package/dist/types/components/color-mapper/color-stop.component.d.ts +0 -54
- package/dist/types/components/color-mapper/color-stop.styles.d.ts +0 -2
- package/dist/types/components/color-mapper/helpers.d.ts +0 -3
- package/dist/types/components/color-mapper/index.d.ts +0 -4
- package/dist/types/components/color-mapper/types.d.ts +0 -54
- package/dist/types/components/color-picker/color-picker.d.ts +0 -193
- package/dist/types/components/color-picker/color-picker.stories.d.ts +0 -5
- package/dist/types/components/color-picker/color-picker.styles.d.ts +0 -2
- package/dist/types/components/details/details.d.ts +0 -60
- package/dist/types/components/details/details.stories.d.ts +0 -5
- package/dist/types/components/details/details.styles.d.ts +0 -2
- package/dist/types/components/dialog/dialog.d.ts +0 -91
- package/dist/types/components/dialog/dialog.styles.d.ts +0 -2
- package/dist/types/components/divider/divider.d.ts +0 -24
- package/dist/types/components/divider/divider.styles.d.ts +0 -2
- package/dist/types/components/drawer/drawer.d.ts +0 -106
- package/dist/types/components/drawer/drawer.styles.d.ts +0 -2
- package/dist/types/components/dropdown/dropdown.d.ts +0 -98
- package/dist/types/components/dropdown/dropdown.styles.d.ts +0 -2
- package/dist/types/components/icon/icon.d.ts +0 -45
- package/dist/types/components/icon/icon.stories.d.ts +0 -5
- package/dist/types/components/icon/icon.styles.d.ts +0 -2
- package/dist/types/components/icon/library.d.ts +0 -21
- package/dist/types/components/icon/library.default.d.ts +0 -3
- package/dist/types/components/icon/library.system.d.ts +0 -3
- package/dist/types/components/icon-button/icon-button.d.ts +0 -92
- package/dist/types/components/icon-button/icon-button.stories.d.ts +0 -29
- package/dist/types/components/icon-button/icon-button.styles.d.ts +0 -2
- package/dist/types/components/icon-button/index.d.ts +0 -1
- package/dist/types/components/input/input.d.ts +0 -176
- package/dist/types/components/input/input.styles.d.ts +0 -2
- package/dist/types/components/menu/menu.d.ts +0 -44
- package/dist/types/components/menu/menu.styles.d.ts +0 -2
- package/dist/types/components/menu-item/menu-item.d.ts +0 -50
- package/dist/types/components/menu-item/menu-item.styles.d.ts +0 -2
- package/dist/types/components/menu-label/menu-label.d.ts +0 -21
- package/dist/types/components/menu-label/menu-label.styles.d.ts +0 -2
- package/dist/types/components/mutation-observer/mutation-observer.d.ts +0 -44
- package/dist/types/components/mutation-observer/mutation-observer.styles.d.ts +0 -2
- package/dist/types/components/option/option.d.ts +0 -52
- package/dist/types/components/option/option.stories.d.ts +0 -7
- package/dist/types/components/option/option.styles.d.ts +0 -2
- package/dist/types/components/popup/popup.d.ts +0 -140
- package/dist/types/components/popup/popup.stories.d.ts +0 -5
- package/dist/types/components/popup/popup.styles.d.ts +0 -2
- package/dist/types/components/progress-bar/progress-bar.d.ts +0 -35
- package/dist/types/components/progress-bar/progress-bar.styles.d.ts +0 -2
- package/dist/types/components/progress-ring/progress-ring.d.ts +0 -37
- package/dist/types/components/progress-ring/progress-ring.styles.d.ts +0 -2
- package/dist/types/components/radio/radio.d.ts +0 -53
- package/dist/types/components/radio/radio.stories.d.ts +0 -5
- package/dist/types/components/radio/radio.styles.d.ts +0 -2
- package/dist/types/components/radio-button/radio-button.d.ts +0 -60
- package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -5
- package/dist/types/components/radio-button/radio-button.styles.d.ts +0 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -89
- package/dist/types/components/radio-group/radio-group.stories.d.ts +0 -5
- package/dist/types/components/radio-group/radio-group.styles.d.ts +0 -2
- package/dist/types/components/range/range.d.ts +0 -116
- package/dist/types/components/range/range.styles.d.ts +0 -2
- package/dist/types/components/resize-observer/resize-observer.d.ts +0 -31
- package/dist/types/components/resize-observer/resize-observer.styles.d.ts +0 -2
- package/dist/types/components/select/select.d.ts +0 -174
- package/dist/types/components/select/select.stories.d.ts +0 -5
- package/dist/types/components/select/select.styles.d.ts +0 -2
- package/dist/types/components/spinner/spinner.d.ts +0 -25
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -5
- package/dist/types/components/spinner/spinner.styles.d.ts +0 -2
- package/dist/types/components/split-panel/split-panel.d.ts +0 -74
- package/dist/types/components/split-panel/split-panel.stories.d.ts +0 -5
- package/dist/types/components/split-panel/split-panel.styles.d.ts +0 -2
- package/dist/types/components/switch/switch.d.ts +0 -86
- package/dist/types/components/switch/switch.stories.d.ts +0 -5
- package/dist/types/components/switch/switch.styles.d.ts +0 -2
- package/dist/types/components/tab/tab.d.ts +0 -47
- package/dist/types/components/tab/tab.styles.d.ts +0 -2
- package/dist/types/components/tab-group/tab-group.d.ts +0 -76
- package/dist/types/components/tab-group/tab-group.stories.d.ts +0 -5
- package/dist/types/components/tab-group/tab-group.styles.d.ts +0 -2
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -31
- package/dist/types/components/tab-panel/tab-panel.styles.d.ts +0 -2
- package/dist/types/components/tag/tag.d.ts +0 -38
- package/dist/types/components/tag/tag.stories.d.ts +0 -5
- package/dist/types/components/tag/tag.styles.d.ts +0 -2
- package/dist/types/components/textarea/textarea.d.ts +0 -138
- package/dist/types/components/textarea/textarea.stories.d.ts +0 -5
- package/dist/types/components/textarea/textarea.styles.d.ts +0 -2
- package/dist/types/components/tooltip/tooltip.d.ts +0 -89
- package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -5
- package/dist/types/components/tooltip/tooltip.styles.d.ts +0 -2
- package/dist/types/components/tree/tree.d.ts +0 -65
- package/dist/types/components/tree/tree.stories.d.ts +0 -5
- package/dist/types/components/tree/tree.styles.d.ts +0 -2
- package/dist/types/components/tree-item/tree-item.d.ts +0 -89
- package/dist/types/components/tree-item/tree-item.styles.d.ts +0 -2
- package/dist/types/components/visually-hidden/visually-hidden.d.ts +0 -19
- package/dist/types/components/visually-hidden/visually-hidden.stories.d.ts +0 -5
- package/dist/types/components/visually-hidden/visually-hidden.styles.d.ts +0 -2
- package/dist/types/events/events.d.ts +0 -34
- package/dist/types/events/flow-after-collapse.d.ts +0 -7
- package/dist/types/events/flow-after-expand.d.ts +0 -7
- package/dist/types/events/flow-after-hide.d.ts +0 -7
- package/dist/types/events/flow-after-show.d.ts +0 -7
- package/dist/types/events/flow-blur.d.ts +0 -7
- package/dist/types/events/flow-cancel.d.ts +0 -7
- package/dist/types/events/flow-change.d.ts +0 -7
- package/dist/types/events/flow-clear.d.ts +0 -7
- package/dist/types/events/flow-close.d.ts +0 -7
- package/dist/types/events/flow-collapse.d.ts +0 -7
- package/dist/types/events/flow-error.d.ts +0 -9
- package/dist/types/events/flow-expand.d.ts +0 -7
- package/dist/types/events/flow-finish.d.ts +0 -7
- package/dist/types/events/flow-focus.d.ts +0 -7
- package/dist/types/events/flow-hide.d.ts +0 -7
- package/dist/types/events/flow-hover.d.ts +0 -10
- package/dist/types/events/flow-initial-focus.d.ts +0 -7
- package/dist/types/events/flow-input.d.ts +0 -7
- package/dist/types/events/flow-invalid.d.ts +0 -7
- package/dist/types/events/flow-lazy-change.d.ts +0 -7
- package/dist/types/events/flow-lazy-load.d.ts +0 -7
- package/dist/types/events/flow-load.d.ts +0 -7
- package/dist/types/events/flow-mutation.d.ts +0 -9
- package/dist/types/events/flow-remove.d.ts +0 -7
- package/dist/types/events/flow-reposition.d.ts +0 -7
- package/dist/types/events/flow-request-close.d.ts +0 -9
- package/dist/types/events/flow-resize.d.ts +0 -9
- package/dist/types/events/flow-select.d.ts +0 -10
- package/dist/types/events/flow-selection-change.d.ts +0 -10
- package/dist/types/events/flow-show.d.ts +0 -7
- package/dist/types/events/flow-slide-change.d.ts +0 -11
- package/dist/types/events/flow-start.d.ts +0 -7
- package/dist/types/events/flow-tab-hide.d.ts +0 -9
- package/dist/types/events/flow-tab-show.d.ts +0 -9
- package/dist/types/flow-autoloader.d.ts +0 -4
- package/dist/types/index.d.ts +0 -52
- package/dist/types/internal/animate.d.ts +0 -22
- package/dist/types/internal/checks.util.d.ts +0 -28
- package/dist/types/internal/debounce.d.ts +0 -1
- package/dist/types/internal/default-value.d.ts +0 -2
- package/dist/types/internal/drag.d.ts +0 -15
- package/dist/types/internal/event.d.ts +0 -2
- package/dist/types/internal/flow-ui-rdf-element.d.ts +0 -43
- package/dist/types/internal/form.d.ts +0 -73
- package/dist/types/internal/math.d.ts +0 -2
- package/dist/types/internal/modal.d.ts +0 -12
- package/dist/types/internal/offset.d.ts +0 -11
- package/dist/types/internal/orderby.d.ts +0 -1
- package/dist/types/internal/scroll.d.ts +0 -11
- package/dist/types/internal/slot.d.ts +0 -23
- package/dist/types/internal/string.d.ts +0 -2
- package/dist/types/internal/tabbable.d.ts +0 -8
- package/dist/types/internal/test/data-testid-helpers.d.ts +0 -12
- package/dist/types/internal/test/element-visible-overflow.d.ts +0 -11
- package/dist/types/internal/test/form-control-base-tests.d.ts +0 -7
- package/dist/types/internal/test/wait-for-scrolling.d.ts +0 -9
- package/dist/types/internal/test.d.ts +0 -28
- package/dist/types/internal/throttle.d.ts +0 -1
- package/dist/types/internal/watch.d.ts +0 -26
- package/dist/types/styles/component.styles.d.ts +0 -2
- package/dist/types/styles/form-control.styles.d.ts +0 -2
- package/dist/types/translations/da.d.ts +0 -3
- package/dist/types/translations/de-ch.d.ts +0 -3
- package/dist/types/translations/de.d.ts +0 -3
- package/dist/types/translations/en-gb.d.ts +0 -3
- package/dist/types/translations/en.d.ts +0 -3
- package/dist/types/translations/es.d.ts +0 -3
- package/dist/types/translations/fa.d.ts +0 -3
- package/dist/types/translations/fr.d.ts +0 -3
- package/dist/types/translations/he.d.ts +0 -3
- package/dist/types/translations/hu.d.ts +0 -3
- package/dist/types/translations/ja.d.ts +0 -3
- package/dist/types/translations/nl.d.ts +0 -3
- package/dist/types/translations/pl.d.ts +0 -3
- package/dist/types/translations/pt.d.ts +0 -3
- package/dist/types/translations/ru.d.ts +0 -3
- package/dist/types/translations/sv.d.ts +0 -3
- package/dist/types/translations/tr.d.ts +0 -3
- package/dist/types/translations/zh-tw.d.ts +0 -3
- package/dist/types/utilities/animation-registry.d.ts +0 -24
- package/dist/types/utilities/animation.d.ts +0 -1
- package/dist/types/utilities/announce.d.ts +0 -1
- package/dist/types/utilities/base-path.d.ts +0 -18
- package/dist/types/utilities/form.d.ts +0 -11
- package/dist/types/utilities/icon-library.d.ts +0 -1
- package/dist/types/utilities/localize.d.ts +0 -30
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Popup is a utility that lets you declaratively anchor "popup" containers to another element.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/popup
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @event flow-ui-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive
|
|
10
|
-
* operations in your listener or consider debouncing it.
|
|
11
|
-
*
|
|
12
|
-
* @slot - The popup's content.
|
|
13
|
-
* @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the
|
|
14
|
-
* `anchor` attribute or property instead.
|
|
15
|
-
*
|
|
16
|
-
* @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are
|
|
17
|
-
* assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and
|
|
18
|
-
* maybe a border or box shadow.
|
|
19
|
-
* @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.
|
|
20
|
-
*
|
|
21
|
-
* @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`
|
|
22
|
-
* attribute is used.
|
|
23
|
-
* @cssproperty [--arrow-color=var(--flow-ui-color-neutral-0)] - The color of the arrow.
|
|
24
|
-
* @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the
|
|
25
|
-
* popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
|
|
26
|
-
* available when using `auto-size`.
|
|
27
|
-
* @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the
|
|
28
|
-
* popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
|
|
29
|
-
* available when using `auto-size`.
|
|
30
|
-
*/
|
|
31
|
-
export default class FlowPopup extends FlowRdfElement {
|
|
32
|
-
static styles: CSSResultGroup;
|
|
33
|
-
private anchorEl;
|
|
34
|
-
private cleanup;
|
|
35
|
-
/** A reference to the internal popup container. Useful for animating and styling the popup with JavaScript. */
|
|
36
|
-
popup: HTMLElement;
|
|
37
|
-
private arrowEl;
|
|
38
|
-
/**
|
|
39
|
-
* The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a
|
|
40
|
-
* reference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.
|
|
41
|
-
*/
|
|
42
|
-
anchor: Element | string;
|
|
43
|
-
/**
|
|
44
|
-
* Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn
|
|
45
|
-
* down and the popup will be hidden.
|
|
46
|
-
*/
|
|
47
|
-
active: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* The preferred placement of the popup. Note that the actual placement will vary as configured to keep the
|
|
50
|
-
* panel inside of the viewport.
|
|
51
|
-
*/
|
|
52
|
-
placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
53
|
-
/**
|
|
54
|
-
* Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is
|
|
55
|
-
* clipped, using a `fixed` position strategy can often workaround it.
|
|
56
|
-
*/
|
|
57
|
-
strategy: 'absolute' | 'fixed';
|
|
58
|
-
/** The distance in pixels from which to offset the panel away from its anchor. */
|
|
59
|
-
distance: number;
|
|
60
|
-
/** The distance in pixels from which to offset the panel along its anchor. */
|
|
61
|
-
skidding: number;
|
|
62
|
-
/**
|
|
63
|
-
* Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and
|
|
64
|
-
* `--arrow-color` custom properties. For additional customizations, you can also target the arrow using
|
|
65
|
-
* `::part(arrow)` in your stylesheet.
|
|
66
|
-
*/
|
|
67
|
-
arrow: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the
|
|
70
|
-
* anchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will
|
|
71
|
-
* align the arrow to the start, end, or center of the popover instead.
|
|
72
|
-
*/
|
|
73
|
-
arrowPlacement: 'start' | 'end' | 'center' | 'anchor';
|
|
74
|
-
/**
|
|
75
|
-
* The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,
|
|
76
|
-
* this will prevent it from overflowing the corners.
|
|
77
|
-
*/
|
|
78
|
-
arrowPadding: number;
|
|
79
|
-
/**
|
|
80
|
-
* When set, placement of the popup will flip to the opposite site to keep it in view. You can use
|
|
81
|
-
* `flipFallbackPlacements` to further configure how the fallback placement is determined.
|
|
82
|
-
*/
|
|
83
|
-
flip: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a
|
|
86
|
-
* string of any number of placements separated by a space, e.g. "top bottom left". If no placement fits, the flip
|
|
87
|
-
* fallback strategy will be used instead.
|
|
88
|
-
* */
|
|
89
|
-
flipFallbackPlacements: string;
|
|
90
|
-
/**
|
|
91
|
-
* When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether
|
|
92
|
-
* the popup should be positioned using the best available fit based on available space or as it was initially
|
|
93
|
-
* preferred.
|
|
94
|
-
*/
|
|
95
|
-
flipFallbackStrategy: 'best-fit' | 'initial';
|
|
96
|
-
/**
|
|
97
|
-
* The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By
|
|
98
|
-
* default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
|
|
99
|
-
* change the boundary by passing a reference to one or more elements to this property.
|
|
100
|
-
*/
|
|
101
|
-
flipBoundary: Element | Element[];
|
|
102
|
-
/** The amount of padding, in pixels, to exceed before the flip behavior will occur. */
|
|
103
|
-
flipPadding: number;
|
|
104
|
-
/** Moves the popup along the axis to keep it in view when clipped. */
|
|
105
|
-
shift: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By
|
|
108
|
-
* default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
|
|
109
|
-
* change the boundary by passing a reference to one or more elements to this property.
|
|
110
|
-
*/
|
|
111
|
-
shiftBoundary: Element | Element[];
|
|
112
|
-
/** The amount of padding, in pixels, to exceed before the shift behavior will occur. */
|
|
113
|
-
shiftPadding: number;
|
|
114
|
-
/** When set, this will cause the popup to automatically resize itself to prevent it from overflowing. */
|
|
115
|
-
autoSize: 'horizontal' | 'vertical' | 'both';
|
|
116
|
-
/** Syncs the popup's width or height to that of the anchor element. */
|
|
117
|
-
sync: 'width' | 'height' | 'both';
|
|
118
|
-
/**
|
|
119
|
-
* The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By
|
|
120
|
-
* default, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can
|
|
121
|
-
* change the boundary by passing a reference to one or more elements to this property.
|
|
122
|
-
*/
|
|
123
|
-
autoSizeBoundary: Element | Element[];
|
|
124
|
-
/** The amount of padding, in pixels, to exceed before the auto-size behavior will occur. */
|
|
125
|
-
autoSizePadding: number;
|
|
126
|
-
connectedCallback(): Promise<void>;
|
|
127
|
-
disconnectedCallback(): void;
|
|
128
|
-
updated(changedProps: Map<string, unknown>): Promise<void>;
|
|
129
|
-
private handleAnchorChange;
|
|
130
|
-
private start;
|
|
131
|
-
private stop;
|
|
132
|
-
/** Forces the popup to recalculate and reposition itself. */
|
|
133
|
-
reposition(): void;
|
|
134
|
-
render(): import("lit").TemplateResult<1>;
|
|
135
|
-
}
|
|
136
|
-
declare global {
|
|
137
|
-
interface HTMLElementTagNameMap {
|
|
138
|
-
'flow-ui-popup': FlowPopup;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Progress bars are used to show the status of an ongoing operation.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/progress-bar
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - A label to show inside the progress indicator.
|
|
10
|
-
*
|
|
11
|
-
* @csspart base - The component's base wrapper.
|
|
12
|
-
* @csspart indicator - The progress bar's indicator.
|
|
13
|
-
* @csspart label - The progress bar's label.
|
|
14
|
-
*
|
|
15
|
-
* @cssproperty --height - The progress bar's height.
|
|
16
|
-
* @cssproperty --track-color - The color of the track.
|
|
17
|
-
* @cssproperty --indicator-color - The color of the indicator.
|
|
18
|
-
* @cssproperty --label-color - The color of the label.
|
|
19
|
-
*/
|
|
20
|
-
export default class FlowProgressBar extends FlowRdfElement {
|
|
21
|
-
static styles: CSSResultGroup;
|
|
22
|
-
private readonly localize;
|
|
23
|
-
/** The current progress as a percentage, 0 to 100. */
|
|
24
|
-
value: number;
|
|
25
|
-
/** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */
|
|
26
|
-
indeterminate: boolean;
|
|
27
|
-
/** A custom label for assistive devices. */
|
|
28
|
-
label: string;
|
|
29
|
-
render(): import("lit").TemplateResult<1>;
|
|
30
|
-
}
|
|
31
|
-
declare global {
|
|
32
|
-
interface HTMLElementTagNameMap {
|
|
33
|
-
'flow-ui-progress-bar': FlowProgressBar;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Progress rings are used to show the progress of a determinate operation in a circular fashion.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/progress-ring
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - A label to show inside the ring.
|
|
10
|
-
*
|
|
11
|
-
* @csspart base - The component's base wrapper.
|
|
12
|
-
* @csspart label - The progress ring label.
|
|
13
|
-
*
|
|
14
|
-
* @cssproperty --size - The diameter of the progress ring (cannot be a percentage).
|
|
15
|
-
* @cssproperty --track-width - The width of the track.
|
|
16
|
-
* @cssproperty --track-color - The color of the track.
|
|
17
|
-
* @cssproperty --indicator-width - The width of the indicator. Defaults to the track width.
|
|
18
|
-
* @cssproperty --indicator-color - The color of the indicator.
|
|
19
|
-
* @cssproperty --indicator-transition-duration - The duration of the indicator's transition when the value changes.
|
|
20
|
-
*/
|
|
21
|
-
export default class FlowProgressRing extends FlowRdfElement {
|
|
22
|
-
static styles: CSSResultGroup;
|
|
23
|
-
private readonly localize;
|
|
24
|
-
indicator: SVGCircleElement;
|
|
25
|
-
indicatorOffset: string;
|
|
26
|
-
/** The current progress as a percentage, 0 to 100. */
|
|
27
|
-
value: number;
|
|
28
|
-
/** A custom label for assistive devices. */
|
|
29
|
-
label: string;
|
|
30
|
-
updated(changedProps: Map<string, unknown>): void;
|
|
31
|
-
render(): import("lit").TemplateResult<1>;
|
|
32
|
-
}
|
|
33
|
-
declare global {
|
|
34
|
-
interface HTMLElementTagNameMap {
|
|
35
|
-
'flow-ui-progress-ring': FlowProgressRing;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* fdfd
|
|
5
|
-
*
|
|
6
|
-
* @summary Radios allow the user to select a single option from a group.
|
|
7
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/radio
|
|
8
|
-
* @status stable
|
|
9
|
-
* @since 2.0
|
|
10
|
-
*
|
|
11
|
-
* @dependency flow-ui-icon
|
|
12
|
-
*
|
|
13
|
-
* @slot - The radio's label.
|
|
14
|
-
*
|
|
15
|
-
* @event flow-ui-blur - Emitted when the control loses focus.
|
|
16
|
-
* @event flow-ui-focus - Emitted when the control gains focus.
|
|
17
|
-
*
|
|
18
|
-
* @csspart base - The component's base wrapper.
|
|
19
|
-
* @csspart control - The circular container that wraps the radio's checked state.
|
|
20
|
-
* @csspart control--checked - The radio control when the radio is checked.
|
|
21
|
-
* @csspart checked-icon - The checked icon, an `<flow-ui-icon>` element.
|
|
22
|
-
* @csspart label - The container that wraps the radio's label.
|
|
23
|
-
*/
|
|
24
|
-
export default class FlowRadio extends FlowRdfElement {
|
|
25
|
-
static styles: CSSResultGroup;
|
|
26
|
-
checked: boolean;
|
|
27
|
-
protected hasFocus: boolean;
|
|
28
|
-
/** The radio's value. When selected, the radio group will receive this value. */
|
|
29
|
-
value: string;
|
|
30
|
-
/**
|
|
31
|
-
* The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
32
|
-
* attribute can typically be omitted.
|
|
33
|
-
*/
|
|
34
|
-
size: 'small' | 'medium' | 'large';
|
|
35
|
-
/** Disables the radio. */
|
|
36
|
-
disabled: boolean;
|
|
37
|
-
connectedCallback(): void;
|
|
38
|
-
disconnectedCallback(): void;
|
|
39
|
-
private addEventListeners;
|
|
40
|
-
private removeEventListeners;
|
|
41
|
-
private handleBlur;
|
|
42
|
-
private handleClick;
|
|
43
|
-
private handleFocus;
|
|
44
|
-
private setInitialAttributes;
|
|
45
|
-
handleCheckedChange(): void;
|
|
46
|
-
handleDisabledChange(): void;
|
|
47
|
-
render(): import("lit").TemplateResult<1>;
|
|
48
|
-
}
|
|
49
|
-
declare global {
|
|
50
|
-
interface HTMLElementTagNameMap {
|
|
51
|
-
'flow-ui-radio': FlowRadio;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Radios buttons allow the user to select a single option from a group using a button-like control.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/radio-button
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - The radio button's label.
|
|
10
|
-
* @slot prefix - A presentational prefix icon or similar element.
|
|
11
|
-
* @slot suffix - A presentational suffix icon or similar element.
|
|
12
|
-
*
|
|
13
|
-
* @event flow-ui-blur - Emitted when the button loses focus.
|
|
14
|
-
* @event flow-ui-focus - Emitted when the button gains focus.
|
|
15
|
-
*
|
|
16
|
-
* @csspart base - The component's base wrapper.
|
|
17
|
-
* @csspart button - The internal `<button>` element.
|
|
18
|
-
* @csspart button--checked - The internal button element when the radio button is checked.
|
|
19
|
-
* @csspart prefix - The container that wraps the prefix.
|
|
20
|
-
* @csspart label - The container that wraps the radio button's label.
|
|
21
|
-
* @csspart suffix - The container that wraps the suffix.
|
|
22
|
-
*/
|
|
23
|
-
export default class FlowRadioButton extends FlowRdfElement {
|
|
24
|
-
static styles: CSSResultGroup;
|
|
25
|
-
private readonly hasSlotController;
|
|
26
|
-
input: HTMLInputElement;
|
|
27
|
-
hiddenInput: HTMLInputElement;
|
|
28
|
-
protected hasFocus: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @internal The radio button's checked state. This is exposed as an "internal" attribute so we can reflect it, making
|
|
31
|
-
* it easier to style in button groups.
|
|
32
|
-
*/
|
|
33
|
-
checked: boolean;
|
|
34
|
-
/** The radio's value. When selected, the radio group will receive this value. */
|
|
35
|
-
value: string;
|
|
36
|
-
/** Disables the radio button. */
|
|
37
|
-
disabled: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The radio button's size. When used inside a radio group, the size will be determined by the radio group's size so
|
|
40
|
-
* this attribute can typically be omitted.
|
|
41
|
-
*/
|
|
42
|
-
size: 'small' | 'medium' | 'large';
|
|
43
|
-
/** Draws a pill-style radio button with rounded edges. */
|
|
44
|
-
pill: boolean;
|
|
45
|
-
connectedCallback(): void;
|
|
46
|
-
private handleBlur;
|
|
47
|
-
private handleClick;
|
|
48
|
-
private handleFocus;
|
|
49
|
-
handleDisabledChange(): void;
|
|
50
|
-
/** Sets focus on the radio button. */
|
|
51
|
-
focus(options?: FocusOptions): void;
|
|
52
|
-
/** Removes focus from the radio button. */
|
|
53
|
-
blur(): void;
|
|
54
|
-
render(): import("lit").TemplateResult;
|
|
55
|
-
}
|
|
56
|
-
declare global {
|
|
57
|
-
interface HTMLElementTagNameMap {
|
|
58
|
-
'flow-ui-radio-button': FlowRadioButton;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import type { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
4
|
-
import { FormControlController } from '../../internal/form';
|
|
5
|
-
/**
|
|
6
|
-
* @summary Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.
|
|
7
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/radio-group
|
|
8
|
-
* @status stable
|
|
9
|
-
* @since 2.0
|
|
10
|
-
*
|
|
11
|
-
* @dependency flow-ui-button-group
|
|
12
|
-
*
|
|
13
|
-
* @slot - The default slot where `<flow-ui-radio>` or `<flow-ui-radio-button>` elements are placed.
|
|
14
|
-
* @slot label - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`
|
|
15
|
-
* attribute.
|
|
16
|
-
*
|
|
17
|
-
* @event flow-ui-change - Emitted when the radio group's selected value changes.
|
|
18
|
-
* @event flow-ui-input - Emitted when the radio group receives user input.
|
|
19
|
-
* @event flow-ui-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
20
|
-
*
|
|
21
|
-
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
22
|
-
* @csspart form-control-label - The label's wrapper.
|
|
23
|
-
* @csspart form-control-input - The input's wrapper.
|
|
24
|
-
* @csspart form-control-help-text - The help text's wrapper.
|
|
25
|
-
* @csspart button-group - The button group that wraps radio buttons.
|
|
26
|
-
* @csspart button-group__base - The button group's `base` part.
|
|
27
|
-
*/
|
|
28
|
-
export default class FlowRadioGroup extends FlowRdfElement implements FlowRdfFormControl {
|
|
29
|
-
static styles: CSSResultGroup;
|
|
30
|
-
protected readonly formControlController: FormControlController;
|
|
31
|
-
private readonly hasSlotController;
|
|
32
|
-
private customValidityMessage;
|
|
33
|
-
private validationTimeout;
|
|
34
|
-
defaultSlot: HTMLSlotElement;
|
|
35
|
-
validationInput: HTMLInputElement;
|
|
36
|
-
private hasButtonGroup;
|
|
37
|
-
private errorMessage;
|
|
38
|
-
defaultValue: string;
|
|
39
|
-
/**
|
|
40
|
-
* The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
41
|
-
* instead.
|
|
42
|
-
*/
|
|
43
|
-
label: string;
|
|
44
|
-
/** The radio groups's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
45
|
-
helpText: string;
|
|
46
|
-
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
47
|
-
name: string;
|
|
48
|
-
/** The current value of the radio group, submitted as a name/value pair with form data. */
|
|
49
|
-
value: string;
|
|
50
|
-
/** The radio group's size. This size will be applied to all child radios and radio buttons. */
|
|
51
|
-
size: 'small' | 'medium' | 'large';
|
|
52
|
-
/**
|
|
53
|
-
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
54
|
-
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
55
|
-
* the same document or shadow root for this to work.
|
|
56
|
-
*/
|
|
57
|
-
form: string;
|
|
58
|
-
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
59
|
-
required: boolean;
|
|
60
|
-
/** Gets the validity state object */
|
|
61
|
-
get validity(): ValidityState;
|
|
62
|
-
/** Gets the validation message */
|
|
63
|
-
get validationMessage(): string;
|
|
64
|
-
connectedCallback(): void;
|
|
65
|
-
firstUpdated(): void;
|
|
66
|
-
private getAllRadios;
|
|
67
|
-
private handleRadioClick;
|
|
68
|
-
private handleKeyDown;
|
|
69
|
-
private handleLabelClick;
|
|
70
|
-
private handleInvalid;
|
|
71
|
-
private syncRadios;
|
|
72
|
-
private updateCheckedRadio;
|
|
73
|
-
handleSizeChange(): void;
|
|
74
|
-
handleValueChange(): void;
|
|
75
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
76
|
-
checkValidity(): boolean;
|
|
77
|
-
/** Gets the associated form, if one exists. */
|
|
78
|
-
getForm(): HTMLFormElement | null;
|
|
79
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
80
|
-
reportValidity(): boolean;
|
|
81
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
82
|
-
setCustomValidity(message?: string): void;
|
|
83
|
-
render(): import("lit").TemplateResult<1>;
|
|
84
|
-
}
|
|
85
|
-
declare global {
|
|
86
|
-
interface HTMLElementTagNameMap {
|
|
87
|
-
'flow-ui-radio-group': FlowRadioGroup;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import type { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
4
|
-
/**
|
|
5
|
-
* @summary Ranges allow the user to select a single value within a given range using a slider.
|
|
6
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/range
|
|
7
|
-
* @status stable
|
|
8
|
-
* @since 2.0
|
|
9
|
-
*
|
|
10
|
-
* @slot label - The range's label. Alternatively, you can use the `label` attribute.
|
|
11
|
-
* @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
|
|
12
|
-
*
|
|
13
|
-
* @event flow-ui-blur - Emitted when the control loses focus.
|
|
14
|
-
* @event flow-ui-change - Emitted when an alteration to the control's value is committed by the user.
|
|
15
|
-
* @event flow-ui-focus - Emitted when the control gains focus.
|
|
16
|
-
* @event flow-ui-input - Emitted when the control receives input.
|
|
17
|
-
* @event flow-ui-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
18
|
-
*
|
|
19
|
-
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
20
|
-
* @csspart form-control-label - The label's wrapper.
|
|
21
|
-
* @csspart form-control-input - The range's wrapper.
|
|
22
|
-
* @csspart form-control-help-text - The help text's wrapper.
|
|
23
|
-
* @csspart base - The component's base wrapper.
|
|
24
|
-
* @csspart input - The internal `<input>` element.
|
|
25
|
-
* @csspart tooltip - The range's tooltip.
|
|
26
|
-
*
|
|
27
|
-
* @cssproperty --thumb-size - The size of the thumb.
|
|
28
|
-
* @cssproperty --tooltip-offset - The vertical distance the tooltip is offset from the track.
|
|
29
|
-
* @cssproperty --track-color-active - The color of the portion of the track that represents the current value.
|
|
30
|
-
* @cssproperty --track-color-inactive - The of the portion of the track that represents the remaining value.
|
|
31
|
-
* @cssproperty --track-height - The height of the track.
|
|
32
|
-
* @cssproperty --track-active-offset - The point of origin of the active track.
|
|
33
|
-
*/
|
|
34
|
-
export default class FlowRange extends FlowRdfElement implements FlowRdfFormControl {
|
|
35
|
-
static styles: CSSResultGroup;
|
|
36
|
-
private readonly formControlController;
|
|
37
|
-
private readonly hasSlotController;
|
|
38
|
-
private readonly localize;
|
|
39
|
-
private resizeObserver;
|
|
40
|
-
input: HTMLInputElement;
|
|
41
|
-
output: HTMLOutputElement | null;
|
|
42
|
-
private hasFocus;
|
|
43
|
-
private hasTooltip;
|
|
44
|
-
title: string;
|
|
45
|
-
/** The name of the range, submitted as a name/value pair with form data. */
|
|
46
|
-
name: string;
|
|
47
|
-
/** The current value of the range, submitted as a name/value pair with form data. */
|
|
48
|
-
value: number;
|
|
49
|
-
/** The range's label. If you need to display HTML, use the `label` slot instead. */
|
|
50
|
-
label: string;
|
|
51
|
-
/** The range's help text. If you need to display HTML, use the help-text slot instead. */
|
|
52
|
-
helpText: string;
|
|
53
|
-
/** Disables the range. */
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
/** The minimum acceptable value of the range. */
|
|
56
|
-
min: number;
|
|
57
|
-
/** The maximum acceptable value of the range. */
|
|
58
|
-
max: number;
|
|
59
|
-
/** The interval at which the range will increase and decrease. */
|
|
60
|
-
step: number;
|
|
61
|
-
/** The preferred placement of the range's tooltip. */
|
|
62
|
-
tooltip: 'top' | 'bottom' | 'none';
|
|
63
|
-
/**
|
|
64
|
-
* A function used to format the tooltip's value. The range's value is passed as the first and only argument. The
|
|
65
|
-
* function should return a string to display in the tooltip.
|
|
66
|
-
*/
|
|
67
|
-
tooltipFormatter: (value: number) => string;
|
|
68
|
-
/**
|
|
69
|
-
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
70
|
-
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
71
|
-
* the same document or shadow root for this to work.
|
|
72
|
-
*/
|
|
73
|
-
form: string;
|
|
74
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
75
|
-
defaultValue: number;
|
|
76
|
-
/** Gets the validity state object */
|
|
77
|
-
get validity(): ValidityState;
|
|
78
|
-
/** Gets the validation message */
|
|
79
|
-
get validationMessage(): string;
|
|
80
|
-
connectedCallback(): void;
|
|
81
|
-
disconnectedCallback(): void;
|
|
82
|
-
private handleChange;
|
|
83
|
-
private handleInput;
|
|
84
|
-
private handleBlur;
|
|
85
|
-
private handleFocus;
|
|
86
|
-
private handleThumbDragStart;
|
|
87
|
-
private handleThumbDragEnd;
|
|
88
|
-
private syncProgress;
|
|
89
|
-
private syncTooltip;
|
|
90
|
-
handleValueChange(): void;
|
|
91
|
-
handleDisabledChange(): void;
|
|
92
|
-
syncRange(): void;
|
|
93
|
-
private handleInvalid;
|
|
94
|
-
/** Sets focus on the range. */
|
|
95
|
-
focus(options?: FocusOptions): void;
|
|
96
|
-
/** Removes focus from the range. */
|
|
97
|
-
blur(): void;
|
|
98
|
-
/** Increments the value of the range by the value of the step attribute. */
|
|
99
|
-
stepUp(): void;
|
|
100
|
-
/** Decrements the value of the range by the value of the step attribute. */
|
|
101
|
-
stepDown(): void;
|
|
102
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
103
|
-
checkValidity(): boolean;
|
|
104
|
-
/** Gets the associated form, if one exists. */
|
|
105
|
-
getForm(): HTMLFormElement | null;
|
|
106
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
107
|
-
reportValidity(): boolean;
|
|
108
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
109
|
-
setCustomValidity(message: string): void;
|
|
110
|
-
render(): import("lit").TemplateResult<1>;
|
|
111
|
-
}
|
|
112
|
-
declare global {
|
|
113
|
-
interface HTMLElementTagNameMap {
|
|
114
|
-
'flow-ui-range': FlowRange;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary The Resize Observer component offers a thin, declarative interface to the [`ResizeObserver API`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver).
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/resize-observer
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - One or more elements to watch for resizing.
|
|
10
|
-
*
|
|
11
|
-
* @event {{ entries: ResizeObserverEntry[] }} flow-ui-resize - Emitted when the element is resized.
|
|
12
|
-
*/
|
|
13
|
-
export default class FlowResizeObserver extends FlowRdfElement {
|
|
14
|
-
static styles: CSSResultGroup;
|
|
15
|
-
private resizeObserver;
|
|
16
|
-
private observedElements;
|
|
17
|
-
/** Disables the observer. */
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
connectedCallback(): void;
|
|
20
|
-
disconnectedCallback(): void;
|
|
21
|
-
private handleSlotChange;
|
|
22
|
-
private startObserver;
|
|
23
|
-
private stopObserver;
|
|
24
|
-
handleDisabledChange(): void;
|
|
25
|
-
render(): import("lit").TemplateResult<1>;
|
|
26
|
-
}
|
|
27
|
-
declare global {
|
|
28
|
-
interface HTMLElementTagNameMap {
|
|
29
|
-
'flow-ui-resize-observer': FlowResizeObserver;
|
|
30
|
-
}
|
|
31
|
-
}
|