@emuanalytics/flow-rdf-ui 0.0.2 → 0.0.3
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 +8391 -7539
- package/dist/flow-rdf-ui.d.ts +3566 -0
- package/dist/flow-rdf-ui.js +2407 -1432
- package/dist/flow-rdf-ui.umd.cjs +2417 -1440
- 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 +327 -369
- 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,20 +0,0 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* A controller that repeatedly calls the specified callback with the provided interval time.
|
|
4
|
-
* The timer is automatically paused while the user is interacting with the component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AutoplayController implements ReactiveController {
|
|
7
|
-
private host;
|
|
8
|
-
private timerId;
|
|
9
|
-
private tickCallback;
|
|
10
|
-
private activeInteractions;
|
|
11
|
-
paused: boolean;
|
|
12
|
-
stopped: boolean;
|
|
13
|
-
constructor(host: ReactiveElement, tickCallback: () => void);
|
|
14
|
-
hostConnected(): void;
|
|
15
|
-
hostDisconnected(): void;
|
|
16
|
-
start(interval: number): void;
|
|
17
|
-
stop(): void;
|
|
18
|
-
pause: () => void;
|
|
19
|
-
resume: () => void;
|
|
20
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Carousels display an arbitrary number of content slides along a horizontal or vertical axis.
|
|
5
|
-
*
|
|
6
|
-
* @since 2.2
|
|
7
|
-
* @status experimental
|
|
8
|
-
*
|
|
9
|
-
* @dependency flow-ui-icon
|
|
10
|
-
*
|
|
11
|
-
* @event {{ index: number, slide: FlowCarouselItem }} flow-ui-slide-change - Emitted when the active slide changes.
|
|
12
|
-
*
|
|
13
|
-
* @slot - The carousel's main content, one or more `<flow-ui-carousel-item>` elements.
|
|
14
|
-
* @slot next-icon - Optional next icon to use instead of the default. Works best with `<flow-ui-icon>`.
|
|
15
|
-
* @slot previous-icon - Optional previous icon to use instead of the default. Works best with `<flow-ui-icon>`.
|
|
16
|
-
*
|
|
17
|
-
* @csspart base - The carousel's internal wrapper.
|
|
18
|
-
* @csspart scroll-container - The scroll container that wraps the slides.
|
|
19
|
-
* @csspart pagination - The pagination indicators wrapper.
|
|
20
|
-
* @csspart pagination-item - The pagination indicator.
|
|
21
|
-
* @csspart pagination-item--active - Applied when the item is active.
|
|
22
|
-
* @csspart navigation - The navigation wrapper.
|
|
23
|
-
* @csspart navigation-button - The navigation button.
|
|
24
|
-
* @csspart navigation-button--previous - Applied to the previous button.
|
|
25
|
-
* @csspart navigation-button--next - Applied to the next button.
|
|
26
|
-
*
|
|
27
|
-
* @cssproperty --slide-gap - The space between each slide.
|
|
28
|
-
* @cssproperty --aspect-ratio - The aspect ratio of each slide.
|
|
29
|
-
* @cssproperty --scroll-hint - The amount of padding to apply to the scroll area, allowing adjacent slides to become
|
|
30
|
-
* partially visible as a scroll hint.
|
|
31
|
-
*/
|
|
32
|
-
export default class FlowCarousel extends FlowRdfElement {
|
|
33
|
-
static styles: CSSResultGroup;
|
|
34
|
-
/** When set, allows the user to navigate the carousel in the same direction indefinitely. */
|
|
35
|
-
loop: boolean;
|
|
36
|
-
/** When set, show the carousel's navigation. */
|
|
37
|
-
navigation: boolean;
|
|
38
|
-
/** When set, show the carousel's pagination indicators. */
|
|
39
|
-
pagination: boolean;
|
|
40
|
-
/** When set, the slides will scroll automatically when the user is not interacting with them. */
|
|
41
|
-
autoplay: boolean;
|
|
42
|
-
/** Specifies the amount of time, in milliseconds, between each automatic scroll. */
|
|
43
|
-
autoplayInterval: number;
|
|
44
|
-
/** Specifies how many slides should be shown at a given time. */
|
|
45
|
-
slidesPerPage: number;
|
|
46
|
-
/**
|
|
47
|
-
* Specifies the number of slides the carousel will advance when scrolling, useful when specifying a `slides-per-page`
|
|
48
|
-
* greater than one.
|
|
49
|
-
*/
|
|
50
|
-
slidesPerMove: number;
|
|
51
|
-
/** Specifies the orientation in which the carousel will lay out. */
|
|
52
|
-
orientation: 'horizontal' | 'vertical';
|
|
53
|
-
/** When set, it is possible to scroll through the slides by dragging them with the mouse. */
|
|
54
|
-
mouseDragging: boolean;
|
|
55
|
-
defaultSlot: HTMLSlotElement;
|
|
56
|
-
scrollContainer: HTMLElement;
|
|
57
|
-
paginationContainer: HTMLElement;
|
|
58
|
-
activeSlide: number;
|
|
59
|
-
private autoplayController;
|
|
60
|
-
private scrollController;
|
|
61
|
-
private readonly slides;
|
|
62
|
-
private intersectionObserver;
|
|
63
|
-
private readonly intersectionObserverEntries;
|
|
64
|
-
private readonly localize;
|
|
65
|
-
private mutationObserver;
|
|
66
|
-
connectedCallback(): void;
|
|
67
|
-
disconnectedCallback(): void;
|
|
68
|
-
protected firstUpdated(): void;
|
|
69
|
-
private getPageCount;
|
|
70
|
-
private getCurrentPage;
|
|
71
|
-
private getSlides;
|
|
72
|
-
private handleKeyDown;
|
|
73
|
-
private handleScrollEnd;
|
|
74
|
-
private handleSlotChange;
|
|
75
|
-
initializeSlides(): void;
|
|
76
|
-
handelSlideChange(): void;
|
|
77
|
-
handleSlidesPerMoveChange(): void;
|
|
78
|
-
handleAutoplayChange(): void;
|
|
79
|
-
handleMouseDraggingChange(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Move the carousel backward by `slides-per-move` slides.
|
|
82
|
-
*
|
|
83
|
-
* @param behavior - The behavior used for scrolling.
|
|
84
|
-
*/
|
|
85
|
-
previous(behavior?: ScrollBehavior): void;
|
|
86
|
-
/**
|
|
87
|
-
* Move the carousel forward by `slides-per-move` slides.
|
|
88
|
-
*
|
|
89
|
-
* @param behavior - The behavior used for scrolling.
|
|
90
|
-
*/
|
|
91
|
-
next(behavior?: ScrollBehavior): void;
|
|
92
|
-
/**
|
|
93
|
-
* Scrolls the carousel to the slide specified by `index`.
|
|
94
|
-
*
|
|
95
|
-
* @param index - The slide index.
|
|
96
|
-
* @param behavior - The behavior used for scrolling.
|
|
97
|
-
*/
|
|
98
|
-
goToSlide(index: number, behavior?: ScrollBehavior): void;
|
|
99
|
-
render(): import("lit").TemplateResult<1>;
|
|
100
|
-
}
|
|
101
|
-
declare global {
|
|
102
|
-
interface HTMLElementTagNameMap {
|
|
103
|
-
'flow-ui-carousel': FlowCarousel;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
interface ScrollHost extends ReactiveElement {
|
|
3
|
-
scrollContainer: HTMLElement;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* A controller for handling scrolling and mouse dragging.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ScrollController<T extends ScrollHost> implements ReactiveController {
|
|
9
|
-
private host;
|
|
10
|
-
private pointers;
|
|
11
|
-
dragging: boolean;
|
|
12
|
-
scrolling: boolean;
|
|
13
|
-
mouseDragging: boolean;
|
|
14
|
-
constructor(host: T);
|
|
15
|
-
hostConnected(): Promise<void>;
|
|
16
|
-
hostDisconnected(): void;
|
|
17
|
-
handleScroll(): void;
|
|
18
|
-
handleScrollEnd(): void;
|
|
19
|
-
handlePointerDown(event: PointerEvent): void;
|
|
20
|
-
handlePointerMove(event: PointerEvent): void;
|
|
21
|
-
handlePointerUp(event: PointerEvent): void;
|
|
22
|
-
handleTouchEnd(event: TouchEvent): void;
|
|
23
|
-
handleTouchStart(event: TouchEvent): void;
|
|
24
|
-
handleDragStart(): void;
|
|
25
|
-
handleDrag(event: PointerEvent): void;
|
|
26
|
-
handleDragEnd(): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary A carousel item represent a slide within a [carousel](/components/carousel).
|
|
5
|
-
*
|
|
6
|
-
* @since 2.0
|
|
7
|
-
* @status experimental
|
|
8
|
-
*
|
|
9
|
-
* @slot - The carousel item's content..
|
|
10
|
-
*
|
|
11
|
-
* @cssproperty --aspect-ratio - The slide's aspect ratio. Inherited from the carousel by default.
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export default class FlowCarouselItem extends FlowRdfElement {
|
|
15
|
-
static styles: CSSResultGroup;
|
|
16
|
-
static isCarouselItem(node: Node): boolean;
|
|
17
|
-
connectedCallback(): void;
|
|
18
|
-
render(): import("lit").TemplateResult<1>;
|
|
19
|
-
}
|
|
20
|
-
declare global {
|
|
21
|
-
interface HTMLElementTagNameMap {
|
|
22
|
-
'flow-ui-carousel-item': FlowCarouselItem;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,94 +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 Checkboxes allow the user to toggle an option on or off.
|
|
6
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/checkbox
|
|
7
|
-
* @status stable
|
|
8
|
-
* @since 2.0
|
|
9
|
-
*
|
|
10
|
-
* @dependency flow-ui-icon
|
|
11
|
-
*
|
|
12
|
-
* @slot - The checkbox's label.
|
|
13
|
-
*
|
|
14
|
-
* @event flow-ui-blur - Emitted when the checkbox loses focus.
|
|
15
|
-
* @event flow-ui-change - Emitted when the checked state changes.
|
|
16
|
-
* @event flow-ui-focus - Emitted when the checkbox gains focus.
|
|
17
|
-
* @event flow-ui-input - Emitted when the checkbox receives input.
|
|
18
|
-
* @event flow-ui-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
19
|
-
*
|
|
20
|
-
* @csspart base - The component's base wrapper.
|
|
21
|
-
* @csspart control - The square container that wraps the checkbox's checked state.
|
|
22
|
-
* @csspart control--checked - Matches the control part when the checkbox is checked.
|
|
23
|
-
* @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.
|
|
24
|
-
* @csspart checked-icon - The checked icon, an `<flow-ui-icon>` element.
|
|
25
|
-
* @csspart indeterminate-icon - The indeterminate icon, an `<flow-ui-icon>` element.
|
|
26
|
-
* @csspart label - The container that wraps the checkbox's label.
|
|
27
|
-
*/
|
|
28
|
-
export default class FlowCheckbox extends FlowRdfElement implements FlowRdfFormControl {
|
|
29
|
-
static styles: CSSResultGroup;
|
|
30
|
-
private readonly formControlController;
|
|
31
|
-
input: HTMLInputElement;
|
|
32
|
-
private hasFocus;
|
|
33
|
-
title: string;
|
|
34
|
-
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
35
|
-
name: string;
|
|
36
|
-
/** The current value of the checkbox, submitted as a name/value pair with form data. */
|
|
37
|
-
value: string;
|
|
38
|
-
/** The checkbox's size. */
|
|
39
|
-
size: 'small' | 'medium' | 'large';
|
|
40
|
-
/** Disables the checkbox. */
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
/** Draws the checkbox in a checked state. */
|
|
43
|
-
checked: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
46
|
-
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
47
|
-
*/
|
|
48
|
-
indeterminate: boolean;
|
|
49
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
50
|
-
defaultChecked: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
53
|
-
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
54
|
-
* the same document or shadow root for this to work.
|
|
55
|
-
*/
|
|
56
|
-
form: string;
|
|
57
|
-
/** Makes the checkbox a required field. */
|
|
58
|
-
required: boolean;
|
|
59
|
-
/** Gets the validity state object */
|
|
60
|
-
get validity(): ValidityState;
|
|
61
|
-
/** Gets the validation message */
|
|
62
|
-
get validationMessage(): string;
|
|
63
|
-
firstUpdated(): void;
|
|
64
|
-
private handleClick;
|
|
65
|
-
private handleBlur;
|
|
66
|
-
private handleInput;
|
|
67
|
-
private handleInvalid;
|
|
68
|
-
private handleFocus;
|
|
69
|
-
handleDisabledChange(): void;
|
|
70
|
-
handleStateChange(): void;
|
|
71
|
-
/** Simulates a click on the checkbox. */
|
|
72
|
-
click(): void;
|
|
73
|
-
/** Sets focus on the checkbox. */
|
|
74
|
-
focus(options?: FocusOptions): void;
|
|
75
|
-
/** Removes focus from the checkbox. */
|
|
76
|
-
blur(): void;
|
|
77
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
78
|
-
checkValidity(): boolean;
|
|
79
|
-
/** Gets the associated form, if one exists. */
|
|
80
|
-
getForm(): HTMLFormElement | null;
|
|
81
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
82
|
-
reportValidity(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear
|
|
85
|
-
* the custom validation message, call this method with an empty string.
|
|
86
|
-
*/
|
|
87
|
-
setCustomValidity(message: string): void;
|
|
88
|
-
render(): import("lit").TemplateResult<1>;
|
|
89
|
-
}
|
|
90
|
-
declare global {
|
|
91
|
-
interface HTMLElementTagNameMap {
|
|
92
|
-
'flow-ui-checkbox': FlowCheckbox;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FlowCheckbox } from './checkbox';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
import { ColorMapperOptions, ColorMapperValue } from './types';
|
|
4
|
-
import { FlowDialog } from '../..';
|
|
5
|
-
import FlowColorPicker from '../color-picker/color-picker';
|
|
6
|
-
import FlowRadioGroup from '../radio-group/radio-group';
|
|
7
|
-
import FlowSelect from '../select/select';
|
|
8
|
-
export default class FlowColorMapper extends FlowRdfElement {
|
|
9
|
-
static styles: CSSResultGroup;
|
|
10
|
-
private currentField?;
|
|
11
|
-
private readonly hasSlotController;
|
|
12
|
-
modeRadioGroup: FlowRadioGroup;
|
|
13
|
-
fixedColorPicker: FlowColorPicker;
|
|
14
|
-
fieldSelect: FlowSelect;
|
|
15
|
-
infoDialog: FlowDialog;
|
|
16
|
-
field: string;
|
|
17
|
-
options: ColorMapperOptions;
|
|
18
|
-
value: ColorMapperValue;
|
|
19
|
-
size: 'small' | 'medium' | 'large';
|
|
20
|
-
defaultColorStop: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* One or more predefined color swatches to display as presets in the color picker. Can include any format the color
|
|
23
|
-
* picker can parse, including HEX(A), RGB(A), HSL(A), HSV(A), and CSS color names. Each color must be separated by a
|
|
24
|
-
* semicolon (`;`). Alternatively, you can pass an array of color values to this property using JavaScript.
|
|
25
|
-
*/
|
|
26
|
-
swatches: string | string[];
|
|
27
|
-
private handleFixedPickerClick;
|
|
28
|
-
private handleChange;
|
|
29
|
-
private emitChange;
|
|
30
|
-
private handleColorStopRemove;
|
|
31
|
-
handleInfoClick(): void;
|
|
32
|
-
private getAllColorStops;
|
|
33
|
-
private getColorStopPlaceholder;
|
|
34
|
-
private fixedColorTemplate;
|
|
35
|
-
private dataDrivenColorTemplate;
|
|
36
|
-
private colorStopsTemplate;
|
|
37
|
-
private infoDialogTemplate;
|
|
38
|
-
render(): import("lit").TemplateResult<1>;
|
|
39
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/web-components';
|
|
2
|
-
import { ColorMapperOptions, ColorMapperValue } from './types';
|
|
3
|
-
interface Props {
|
|
4
|
-
width?: string;
|
|
5
|
-
size?: 'small' | 'medium' | 'large';
|
|
6
|
-
showInfo: boolean;
|
|
7
|
-
field: string;
|
|
8
|
-
options: ColorMapperOptions;
|
|
9
|
-
value: ColorMapperValue;
|
|
10
|
-
onChange: (e: CustomEvent) => void;
|
|
11
|
-
onRemove: (e: CustomEvent) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const meta: {
|
|
14
|
-
title: string;
|
|
15
|
-
component: string;
|
|
16
|
-
argTypes: {
|
|
17
|
-
size: {
|
|
18
|
-
options: string[];
|
|
19
|
-
control: {
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
onChange: {
|
|
24
|
-
action: string;
|
|
25
|
-
};
|
|
26
|
-
onRemove: {
|
|
27
|
-
action: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
args: {
|
|
31
|
-
width: string;
|
|
32
|
-
size: "small";
|
|
33
|
-
options: {
|
|
34
|
-
fields: {
|
|
35
|
-
group: {
|
|
36
|
-
field: string;
|
|
37
|
-
name: string;
|
|
38
|
-
type: "select";
|
|
39
|
-
options: {
|
|
40
|
-
name: string;
|
|
41
|
-
value: string;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
altitude: {
|
|
45
|
-
field: string;
|
|
46
|
-
name: string;
|
|
47
|
-
type: "number";
|
|
48
|
-
min: number;
|
|
49
|
-
max: number;
|
|
50
|
-
step: number;
|
|
51
|
-
units: string;
|
|
52
|
-
};
|
|
53
|
-
flight_number: {
|
|
54
|
-
name: string;
|
|
55
|
-
field: string;
|
|
56
|
-
type: "string";
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
render: (args: Props) => import("lit").TemplateResult<1>;
|
|
62
|
-
};
|
|
63
|
-
export default meta;
|
|
64
|
-
type Story = StoryObj<Props>;
|
|
65
|
-
export declare const Select: Story;
|
|
66
|
-
export declare const Strings: Story;
|
|
67
|
-
export declare const Numbers: Story;
|
|
68
|
-
export declare const MappingInfoDialog: Story;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import { FlowColorPicker, FlowIconButton, FlowTooltip } from '../..';
|
|
3
|
-
import FlowRdfElement, { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element';
|
|
4
|
-
import { ColorStopOptions, ColorStopValue } from './types';
|
|
5
|
-
export default class FlowColorStopComponent extends FlowRdfElement implements FlowRdfFormControl {
|
|
6
|
-
static styles: CSSResultGroup;
|
|
7
|
-
private readonly formControlController;
|
|
8
|
-
input: HTMLInputElement;
|
|
9
|
-
picker: FlowColorPicker;
|
|
10
|
-
tooltip: FlowTooltip;
|
|
11
|
-
caseSensitiveButton: FlowIconButton;
|
|
12
|
-
regexButton: FlowIconButton;
|
|
13
|
-
/** The name of the color stop, submitted as a name/value pair with form data. */
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
17
|
-
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
18
|
-
* the same document or shadow root for this to work.
|
|
19
|
-
*/
|
|
20
|
-
form: string;
|
|
21
|
-
/** Makes the color stop as a required field. */
|
|
22
|
-
required: boolean;
|
|
23
|
-
options: ColorStopOptions;
|
|
24
|
-
value: ColorStopValue;
|
|
25
|
-
size: 'small' | 'medium' | 'large';
|
|
26
|
-
placeholder: boolean;
|
|
27
|
-
fixed?: string;
|
|
28
|
-
/**
|
|
29
|
-
* One or more predefined color swatches to display as presets in the color picker. Can include any format the color
|
|
30
|
-
* picker can parse, including HEX(A), RGB(A), HSL(A), HSV(A), and CSS color names. Each color must be separated by a
|
|
31
|
-
* semicolon (`;`). Alternatively, you can pass an array of color values to this property using JavaScript.
|
|
32
|
-
*/
|
|
33
|
-
swatches: string | string[];
|
|
34
|
-
get validity(): ValidityState;
|
|
35
|
-
get validationMessage(): "" | "Invalid regular expression";
|
|
36
|
-
checkValidity(): boolean;
|
|
37
|
-
getForm(): HTMLFormElement | null;
|
|
38
|
-
reportValidity(): boolean;
|
|
39
|
-
setCustomValidity(message: string): void;
|
|
40
|
-
private handleRemove;
|
|
41
|
-
private handleChange;
|
|
42
|
-
private emitChange;
|
|
43
|
-
private validate;
|
|
44
|
-
private textInputTemplate;
|
|
45
|
-
private numberInputTemplate;
|
|
46
|
-
private fixedInputTemplate;
|
|
47
|
-
private selectInputTemplate;
|
|
48
|
-
render(): import("lit").TemplateResult<1>;
|
|
49
|
-
}
|
|
50
|
-
declare global {
|
|
51
|
-
interface HTMLElementTagNameMap {
|
|
52
|
-
'flow-ui-color-stop': FlowColorStopComponent;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export interface BaseColorStopOptions {
|
|
2
|
-
type: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface StringColorStopOptions {
|
|
6
|
-
type: 'string';
|
|
7
|
-
}
|
|
8
|
-
export interface NumberColorStopOptions {
|
|
9
|
-
type: 'number';
|
|
10
|
-
min?: number;
|
|
11
|
-
max?: number;
|
|
12
|
-
step?: number;
|
|
13
|
-
units?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface SelectColorStopOptions {
|
|
16
|
-
type: 'select';
|
|
17
|
-
options: Array<string | {
|
|
18
|
-
value: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
export type ColorStopOptions = StringColorStopOptions | NumberColorStopOptions | SelectColorStopOptions;
|
|
23
|
-
export interface ColorStopValue {
|
|
24
|
-
value: string | number;
|
|
25
|
-
color: string;
|
|
26
|
-
options?: {
|
|
27
|
-
regex: boolean;
|
|
28
|
-
caseSensitive: boolean;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface BaseColorMapperField {
|
|
32
|
-
name?: string;
|
|
33
|
-
field: string;
|
|
34
|
-
}
|
|
35
|
-
export interface StringColorMapperField extends StringColorStopOptions, BaseColorMapperField {
|
|
36
|
-
type: 'string';
|
|
37
|
-
}
|
|
38
|
-
export interface NumberColorMapperField extends NumberColorStopOptions, BaseColorMapperField {
|
|
39
|
-
type: 'number';
|
|
40
|
-
}
|
|
41
|
-
export interface SelectColorMapperField extends SelectColorStopOptions, BaseColorMapperField {
|
|
42
|
-
type: 'select';
|
|
43
|
-
}
|
|
44
|
-
export type ColorMapperField = StringColorMapperField | NumberColorMapperField | SelectColorMapperField;
|
|
45
|
-
export interface ColorMapperOptions {
|
|
46
|
-
fields: Record<string, ColorMapperField>;
|
|
47
|
-
}
|
|
48
|
-
export interface ColorMapperValue {
|
|
49
|
-
mode: 'fixed' | 'data-driven';
|
|
50
|
-
field: string | undefined;
|
|
51
|
-
type?: 'string' | 'number' | 'select';
|
|
52
|
-
defaultColor?: string;
|
|
53
|
-
colorStops: ColorStopValue[];
|
|
54
|
-
}
|