@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
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emuanalytics/flow-rdf-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/flow-rdf-ui.umd.cjs",
|
|
6
6
|
"module": "dist/flow-rdf-ui.js",
|
|
7
|
-
"types": "dist/
|
|
7
|
+
"types": "dist/flow-rdf-ui.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
@@ -17,14 +17,18 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@ctrl/tinycolor": "^3.6.0",
|
|
19
19
|
"@floating-ui/dom": "^1.2.9",
|
|
20
|
+
"@lit-labs/motion": "^1.0.4",
|
|
20
21
|
"@shoelace-style/animations": "^1.1.0",
|
|
21
22
|
"@shoelace-style/localize": "^3.1.1",
|
|
22
23
|
"@turf/great-circle": "^6.5.0",
|
|
23
24
|
"composed-offset-position": "^0.0.4",
|
|
24
|
-
"lit": "^2.7.2"
|
|
25
|
+
"lit": "^2.7.2",
|
|
26
|
+
"ora": "^7.0.1",
|
|
27
|
+
"s3-node-client": "^4.4.4"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"@custom-elements-manifest/analyzer": "^0.8.3",
|
|
31
|
+
"@fortawesome/fontawesome-free": "^6.4.2",
|
|
28
32
|
"@open-wc/lit-helpers": "^0.5.1",
|
|
29
33
|
"@open-wc/testing": "^3.2.0",
|
|
30
34
|
"@remcovaes/web-test-runner-vite-plugin": "^1.2.0",
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Alerts are used to display important messages inline or as toast notifications.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/alert
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @dependency flow-ui-icon-button
|
|
10
|
-
*
|
|
11
|
-
* @slot - The alert's main content.
|
|
12
|
-
* @slot icon - An icon to show in the alert. Works best with `<flow-ui-icon>`.
|
|
13
|
-
*
|
|
14
|
-
* @event flow-ui-show - Emitted when the alert opens.
|
|
15
|
-
* @event flow-ui-after-show - Emitted after the alert opens and all animations are complete.
|
|
16
|
-
* @event flow-ui-hide - Emitted when the alert closes.
|
|
17
|
-
* @event flow-ui-after-hide - Emitted after the alert closes and all animations are complete.
|
|
18
|
-
*
|
|
19
|
-
* @csspart base - The component's base wrapper.
|
|
20
|
-
* @csspart icon - The container that wraps the optional icon.
|
|
21
|
-
* @csspart message - The container that wraps the alert's main content.
|
|
22
|
-
* @csspart close-button - The close button, an `<flow-ui-icon-button>`.
|
|
23
|
-
* @csspart close-button__base - The close button's exported `base` part.
|
|
24
|
-
*
|
|
25
|
-
* @animation alert.show - The animation to use when showing the alert.
|
|
26
|
-
* @animation alert.hide - The animation to use when hiding the alert.
|
|
27
|
-
*/
|
|
28
|
-
export default class FlowAlert extends FlowRdfElement {
|
|
29
|
-
static styles: CSSResultGroup;
|
|
30
|
-
private autoHideTimeout;
|
|
31
|
-
private readonly hasSlotController;
|
|
32
|
-
private readonly localize;
|
|
33
|
-
base: HTMLElement;
|
|
34
|
-
/**
|
|
35
|
-
* Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can
|
|
36
|
-
* use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.
|
|
37
|
-
*/
|
|
38
|
-
open: boolean;
|
|
39
|
-
/** Enables a close button that allows the user to dismiss the alert. */
|
|
40
|
-
closable: boolean;
|
|
41
|
-
/** The alert's theme variant. */
|
|
42
|
-
variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
|
|
43
|
-
/**
|
|
44
|
-
* The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with
|
|
45
|
-
* the alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning
|
|
46
|
-
* the alert will not close on its own.
|
|
47
|
-
*/
|
|
48
|
-
duration: number;
|
|
49
|
-
firstUpdated(): void;
|
|
50
|
-
private restartAutoHide;
|
|
51
|
-
private handleCloseClick;
|
|
52
|
-
private handleMouseMove;
|
|
53
|
-
handleOpenChange(): Promise<void>;
|
|
54
|
-
handleDurationChange(): void;
|
|
55
|
-
/** Shows the alert. */
|
|
56
|
-
show(): Promise<void>;
|
|
57
|
-
/** Hides the alert */
|
|
58
|
-
hide(): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when
|
|
61
|
-
* dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by
|
|
62
|
-
* calling this method again. The returned promise will resolve after the alert is hidden.
|
|
63
|
-
*/
|
|
64
|
-
toast(): Promise<void>;
|
|
65
|
-
render(): import("lit").TemplateResult<1>;
|
|
66
|
-
}
|
|
67
|
-
declare global {
|
|
68
|
-
interface HTMLElementTagNameMap {
|
|
69
|
-
'flow-ui-alert': FlowAlert;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Animate elements declaratively with nearly 100 baked-in presets, or roll your own with custom keyframes. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/animation
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @event flow-ui-cancel - Emitted when the animation is canceled.
|
|
10
|
-
* @event flow-ui-finish - Emitted when the animation finishes.
|
|
11
|
-
* @event flow-ui-start - Emitted when the animation starts or restarts.
|
|
12
|
-
*
|
|
13
|
-
* @slot - The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To
|
|
14
|
-
* animate multiple elements, either wrap them in a single container or use multiple `<flow-ui-animation>` elements.
|
|
15
|
-
*/
|
|
16
|
-
export default class FlowAnimation extends FlowRdfElement {
|
|
17
|
-
static styles: CSSResultGroup;
|
|
18
|
-
private animation?;
|
|
19
|
-
private hasStarted;
|
|
20
|
-
defaultSlot: Promise<HTMLSlotElement>;
|
|
21
|
-
/** The name of the built-in animation to use. For custom animations, use the `keyframes` prop. */
|
|
22
|
-
name: string;
|
|
23
|
-
/**
|
|
24
|
-
* Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when
|
|
25
|
-
* the animation finishes or gets canceled.
|
|
26
|
-
*/
|
|
27
|
-
play: boolean;
|
|
28
|
-
/** The number of milliseconds to delay the start of the animation. */
|
|
29
|
-
delay: number;
|
|
30
|
-
/**
|
|
31
|
-
* Determines the direction of playback as well as the behavior when reaching the end of an iteration.
|
|
32
|
-
* [Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)
|
|
33
|
-
*/
|
|
34
|
-
direction: PlaybackDirection;
|
|
35
|
-
/** The number of milliseconds each iteration of the animation takes to complete. */
|
|
36
|
-
duration: number;
|
|
37
|
-
/**
|
|
38
|
-
* The easing function to use for the animation. This can be a Flo.w RDF UI easing function or a custom easing function
|
|
39
|
-
* such as `cubic-bezier(0, 1, .76, 1.14)`.
|
|
40
|
-
*/
|
|
41
|
-
easing: string;
|
|
42
|
-
/** The number of milliseconds to delay after the active period of an animation sequence. */
|
|
43
|
-
endDelay: number;
|
|
44
|
-
/** Sets how the animation applies styles to its target before and after its execution. */
|
|
45
|
-
fill: FillMode;
|
|
46
|
-
/** The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops. */
|
|
47
|
-
iterations: number;
|
|
48
|
-
/** The offset at which to start the animation, usually between 0 (start) and 1 (end). */
|
|
49
|
-
iterationStart: number;
|
|
50
|
-
/** The keyframes to use for the animation. If this is set, `name` will be ignored. */
|
|
51
|
-
keyframes?: Keyframe[];
|
|
52
|
-
/**
|
|
53
|
-
* Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this
|
|
54
|
-
* to `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This
|
|
55
|
-
* value can be changed without causing the animation to restart.
|
|
56
|
-
*/
|
|
57
|
-
playbackRate: number;
|
|
58
|
-
/** Gets and sets the current animation time. */
|
|
59
|
-
get currentTime(): number;
|
|
60
|
-
set currentTime(time: number);
|
|
61
|
-
connectedCallback(): void;
|
|
62
|
-
disconnectedCallback(): void;
|
|
63
|
-
private handleAnimationFinish;
|
|
64
|
-
private handleAnimationCancel;
|
|
65
|
-
private handleSlotChange;
|
|
66
|
-
private createAnimation;
|
|
67
|
-
private destroyAnimation;
|
|
68
|
-
handleAnimationChange(): void;
|
|
69
|
-
handlePlayChange(): boolean;
|
|
70
|
-
handlePlaybackRateChange(): void;
|
|
71
|
-
/** Clears all keyframe effects caused by this animation and aborts its playback. */
|
|
72
|
-
cancel(): void;
|
|
73
|
-
/** Sets the playback time to the end of the animation corresponding to the current playback direction. */
|
|
74
|
-
finish(): void;
|
|
75
|
-
render(): import("lit").TemplateResult<1>;
|
|
76
|
-
}
|
|
77
|
-
declare global {
|
|
78
|
-
interface HTMLElementTagNameMap {
|
|
79
|
-
'flow-ui-animation': FlowAnimation;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as animations from '@shoelace-style/animations';
|
|
2
|
-
export { animations };
|
|
3
|
-
/** Gets a list of all supported animation names. */
|
|
4
|
-
export declare function getAnimationNames(): string[];
|
|
5
|
-
/** Gets a list of all supported easing function names. */
|
|
6
|
-
export declare function getEasingNames(): string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FlowAnimation } from './animation';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Avatars are used to represent a person or object.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/avatar
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @dependency flow-ui-icon
|
|
10
|
-
*
|
|
11
|
-
* @slot icon - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.
|
|
12
|
-
*
|
|
13
|
-
* @csspart base - The component's base wrapper.
|
|
14
|
-
* @csspart icon - The container that wraps the avatar's icon.
|
|
15
|
-
* @csspart initials - The container that wraps the avatar's initials.
|
|
16
|
-
* @csspart image - The avatar image. Only shown when the `image` attribute is set.
|
|
17
|
-
*
|
|
18
|
-
* @cssproperty --size - The size of the avatar.
|
|
19
|
-
*/
|
|
20
|
-
export default class FlowAvatar extends FlowRdfElement {
|
|
21
|
-
static styles: CSSResultGroup;
|
|
22
|
-
private hasError;
|
|
23
|
-
/** The image source to use for the avatar. */
|
|
24
|
-
image: string;
|
|
25
|
-
/** A label to use to describe the avatar to assistive devices. */
|
|
26
|
-
label: string;
|
|
27
|
-
/** Initials to use as a fallback when no image is available (1-2 characters max recommended). */
|
|
28
|
-
initials: string;
|
|
29
|
-
/** Indicates how the browser should load the image. */
|
|
30
|
-
loading: 'eager' | 'lazy';
|
|
31
|
-
/** The shape of the avatar. */
|
|
32
|
-
shape: 'circle' | 'square' | 'rounded';
|
|
33
|
-
handleImageChange(): void;
|
|
34
|
-
render(): import("lit").TemplateResult<1>;
|
|
35
|
-
}
|
|
36
|
-
declare global {
|
|
37
|
-
interface HTMLElementTagNameMap {
|
|
38
|
-
'flow-ui-avatar': FlowAvatar;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Badges are used to draw attention and display statuses or counts.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/badge
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - The badge's content.
|
|
10
|
-
*
|
|
11
|
-
* @csspart base - The component's base wrapper.
|
|
12
|
-
*/
|
|
13
|
-
export default class FlowBadge extends FlowRdfElement {
|
|
14
|
-
static styles: CSSResultGroup;
|
|
15
|
-
/** The badge's theme variant. */
|
|
16
|
-
variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
|
|
17
|
-
/** Draws a pill-style badge with rounded edges. */
|
|
18
|
-
pill: boolean;
|
|
19
|
-
/** Makes the badge pulsate to draw attention. */
|
|
20
|
-
pulse: boolean;
|
|
21
|
-
render(): import("lit").TemplateResult<1>;
|
|
22
|
-
}
|
|
23
|
-
declare global {
|
|
24
|
-
interface HTMLElementTagNameMap {
|
|
25
|
-
'flow-ui-badge': FlowBadge;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/breadcrumb
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - One or more breadcrumb items to display.
|
|
10
|
-
* @slot separator - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.
|
|
11
|
-
*
|
|
12
|
-
* @dependency flow-ui-icon
|
|
13
|
-
*
|
|
14
|
-
* @csspart base - The component's base wrapper.
|
|
15
|
-
*/
|
|
16
|
-
export default class FlowBreadcrumb extends FlowRdfElement {
|
|
17
|
-
static styles: CSSResultGroup;
|
|
18
|
-
private readonly localize;
|
|
19
|
-
private separatorDir;
|
|
20
|
-
defaultSlot: HTMLSlotElement;
|
|
21
|
-
separatorSlot: HTMLSlotElement;
|
|
22
|
-
/**
|
|
23
|
-
* The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by
|
|
24
|
-
* screen readers and other assistive devices to provide more context for users.
|
|
25
|
-
*/
|
|
26
|
-
label: string;
|
|
27
|
-
private getSeparator;
|
|
28
|
-
private handleSlotChange;
|
|
29
|
-
render(): import("lit").TemplateResult<1>;
|
|
30
|
-
}
|
|
31
|
-
declare global {
|
|
32
|
-
interface HTMLElementTagNameMap {
|
|
33
|
-
'flow-ui-breadcrumb': FlowBreadcrumb;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/breadcrumb-item
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - The breadcrumb item's label.
|
|
10
|
-
* @slot prefix - An optional prefix, usually an icon or icon button.
|
|
11
|
-
* @slot suffix - An optional suffix, usually an icon or icon button.
|
|
12
|
-
* @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If
|
|
13
|
-
* you want to change it for all items in the group, set the separator on `<flow-ui-breadcrumb>` instead.
|
|
14
|
-
*
|
|
15
|
-
* @csspart base - The component's base wrapper.
|
|
16
|
-
* @csspart label - The breadcrumb item's label.
|
|
17
|
-
* @csspart prefix - The container that wraps the prefix.
|
|
18
|
-
* @csspart suffix - The container that wraps the suffix.
|
|
19
|
-
* @csspart separator - The container that wraps the separator.
|
|
20
|
-
*/
|
|
21
|
-
export default class FlowBreadcrumbItem extends FlowRdfElement {
|
|
22
|
-
static styles: CSSResultGroup;
|
|
23
|
-
private readonly hasSlotController;
|
|
24
|
-
/**
|
|
25
|
-
* Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered
|
|
26
|
-
* internally. When unset, a button will be rendered instead.
|
|
27
|
-
*/
|
|
28
|
-
href?: string;
|
|
29
|
-
/** Tells the browser where to open the link. Only used when `href` is set. */
|
|
30
|
-
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
31
|
-
/** The `rel` attribute to use on the link. Only used when `href` is set. */
|
|
32
|
-
rel: string;
|
|
33
|
-
render(): import("lit").TemplateResult<1>;
|
|
34
|
-
}
|
|
35
|
-
declare global {
|
|
36
|
-
interface HTMLElementTagNameMap {
|
|
37
|
-
'flow-ui-breadcrumb-item': FlowBreadcrumbItem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,133 +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 Buttons represent actions that are available to the user.
|
|
6
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/button
|
|
7
|
-
* @status stable
|
|
8
|
-
* @since 2.0
|
|
9
|
-
*
|
|
10
|
-
* @dependency flow-ui-icon
|
|
11
|
-
* @dependency flow-ui-spinner
|
|
12
|
-
*
|
|
13
|
-
* @event flow-ui-blur - Emitted when the button loses focus.
|
|
14
|
-
* @event flow-ui-focus - Emitted when the button gains focus.
|
|
15
|
-
* @event flow-ui-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
16
|
-
*
|
|
17
|
-
* @slot - The button's label.
|
|
18
|
-
* @slot prefix - A presentational prefix icon or similar element.
|
|
19
|
-
* @slot suffix - A presentational suffix icon or similar element.
|
|
20
|
-
*
|
|
21
|
-
* @csspart base - The component's base wrapper.
|
|
22
|
-
* @csspart prefix - The container that wraps the prefix.
|
|
23
|
-
* @csspart label - The button's label.
|
|
24
|
-
* @csspart suffix - The container that wraps the suffix.
|
|
25
|
-
* @csspart caret - The button's caret icon, an `<flow-ui-icon>` element.
|
|
26
|
-
*/
|
|
27
|
-
export default class FlowButton extends FlowRdfElement implements FlowRdfFormControl {
|
|
28
|
-
static styles: CSSResultGroup;
|
|
29
|
-
private readonly formControlController;
|
|
30
|
-
private readonly hasSlotController;
|
|
31
|
-
private readonly localize;
|
|
32
|
-
button: HTMLButtonElement | HTMLLinkElement;
|
|
33
|
-
private hasFocus;
|
|
34
|
-
invalid: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
/** The button's theme variant. */
|
|
37
|
-
variant: 'default' | 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
|
|
38
|
-
/** The button's size. */
|
|
39
|
-
size: 'small' | 'medium' | 'large';
|
|
40
|
-
/** Draws the button with a caret. Used to indicate that the button triggers a dropdown menu or similar behavior. */
|
|
41
|
-
caret: boolean;
|
|
42
|
-
/** Disables the button. */
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
/** Draws the button in a loading state. */
|
|
45
|
-
loading: boolean;
|
|
46
|
-
/** Draws an outlined button. */
|
|
47
|
-
outline: boolean;
|
|
48
|
-
/** Draws a pill-style button with rounded edges. */
|
|
49
|
-
pill: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Draws a circular icon button. When this attribute is present, the button expects a single `<flow-ui-icon>` in the
|
|
52
|
-
* default slot.
|
|
53
|
-
*/
|
|
54
|
-
circle: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* The type of button. Note that the default value is `button` instead of `submit`, which is opposite of how native
|
|
57
|
-
* `<button>` elements behave. When the type is `submit`, the button will submit the surrounding form.
|
|
58
|
-
*/
|
|
59
|
-
type: 'button' | 'submit' | 'reset';
|
|
60
|
-
/**
|
|
61
|
-
* The name of the button, submitted as a name/value pair with form data, but only when this button is the submitter.
|
|
62
|
-
* This attribute is ignored when `href` is present.
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
/**
|
|
66
|
-
* The value of the button, submitted as a pair with the button's name as part of the form data, but only when this
|
|
67
|
-
* button is the submitter. This attribute is ignored when `href` is present.
|
|
68
|
-
*/
|
|
69
|
-
value: string;
|
|
70
|
-
/** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */
|
|
71
|
-
href: string;
|
|
72
|
-
/** Tells the browser where to open the link. Only used when `href` is present. */
|
|
73
|
-
target: '_blank' | '_parent' | '_self' | '_top';
|
|
74
|
-
/**
|
|
75
|
-
* When using `href`, this attribute will map to the underlying link's `rel` attribute. Unlike regular links, the
|
|
76
|
-
* default is `noreferrer noopener` to prevent security exploits. However, if you're using `target` to point to a
|
|
77
|
-
* specific tab/window, this will prevent that from working correctly. You can remove or change the default value by
|
|
78
|
-
* setting the attribute to an empty string or a value of your choice, respectively.
|
|
79
|
-
*/
|
|
80
|
-
rel: string;
|
|
81
|
-
/** Tells the browser to download the linked file as this filename. Only used when `href` is present. */
|
|
82
|
-
download?: string;
|
|
83
|
-
/**
|
|
84
|
-
* The "form owner" to associate the button with. If omitted, the closest containing form will be used instead. The
|
|
85
|
-
* value of this attribute must be an id of a form in the same document or shadow root as the button.
|
|
86
|
-
*/
|
|
87
|
-
form: string;
|
|
88
|
-
/** Used to override the form owner's `action` attribute. */
|
|
89
|
-
formAction: string;
|
|
90
|
-
/** Used to override the form owner's `enctype` attribute. */
|
|
91
|
-
formEnctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
92
|
-
/** Used to override the form owner's `method` attribute. */
|
|
93
|
-
formMethod: 'post' | 'get';
|
|
94
|
-
/** Used to override the form owner's `novalidate` attribute. */
|
|
95
|
-
formNoValidate: boolean;
|
|
96
|
-
/** Used to override the form owner's `target` attribute. */
|
|
97
|
-
formTarget: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
98
|
-
/** Gets the validity state object */
|
|
99
|
-
get validity(): ValidityState;
|
|
100
|
-
/** Gets the validation message */
|
|
101
|
-
get validationMessage(): string;
|
|
102
|
-
connectedCallback(): void;
|
|
103
|
-
disconnectedCallback(): void;
|
|
104
|
-
firstUpdated(): void;
|
|
105
|
-
private handleBlur;
|
|
106
|
-
private handleFocus;
|
|
107
|
-
private handleClick;
|
|
108
|
-
private handleHostClick;
|
|
109
|
-
private handleInvalid;
|
|
110
|
-
private isButton;
|
|
111
|
-
private isLink;
|
|
112
|
-
handleDisabledChange(): void;
|
|
113
|
-
/** Simulates a click on the button. */
|
|
114
|
-
click(): void;
|
|
115
|
-
/** Sets focus on the button. */
|
|
116
|
-
focus(options?: FocusOptions): void;
|
|
117
|
-
/** Removes focus from the button. */
|
|
118
|
-
blur(): void;
|
|
119
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
120
|
-
checkValidity(): boolean;
|
|
121
|
-
/** Gets the associated form, if one exists. */
|
|
122
|
-
getForm(): HTMLFormElement | null;
|
|
123
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
124
|
-
reportValidity(): boolean;
|
|
125
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
126
|
-
setCustomValidity(message: string): void;
|
|
127
|
-
render(): import("lit").TemplateResult;
|
|
128
|
-
}
|
|
129
|
-
declare global {
|
|
130
|
-
interface HTMLElementTagNameMap {
|
|
131
|
-
'flow-ui-button': FlowButton;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Button groups can be used to group related buttons into sections.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/button-group
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - One or more `<flow-ui-button>` elements to display in the button group.
|
|
10
|
-
*
|
|
11
|
-
* @csspart base - The component's base wrapper.
|
|
12
|
-
*/
|
|
13
|
-
export default class FlowButtonGroup extends FlowRdfElement {
|
|
14
|
-
static styles: CSSResultGroup;
|
|
15
|
-
defaultSlot: HTMLSlotElement;
|
|
16
|
-
disableRole: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive
|
|
19
|
-
* devices when interacting with the control and is strongly recommended.
|
|
20
|
-
*/
|
|
21
|
-
label: string;
|
|
22
|
-
private handleFocus;
|
|
23
|
-
private handleBlur;
|
|
24
|
-
private handleMouseOver;
|
|
25
|
-
private handleMouseOut;
|
|
26
|
-
private handleSlotChange;
|
|
27
|
-
render(): import("lit").TemplateResult<1>;
|
|
28
|
-
}
|
|
29
|
-
declare global {
|
|
30
|
-
interface HTMLElementTagNameMap {
|
|
31
|
-
'flow-ui-button-group': FlowButtonGroup;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { CSSResultGroup } from 'lit';
|
|
2
|
-
import FlowRdfElement from '../../internal/flow-ui-rdf-element';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Cards can be used to group related subjects in a container.
|
|
5
|
-
* @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/card
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @slot - The card's main content.
|
|
10
|
-
* @slot header - An optional header for the card.
|
|
11
|
-
* @slot footer - An optional footer for the card.
|
|
12
|
-
* @slot image - An optional image to render at the start of the card.
|
|
13
|
-
*
|
|
14
|
-
* @csspart base - The component's base wrapper.
|
|
15
|
-
* @csspart image - The container that wraps the card's image.
|
|
16
|
-
* @csspart header - The container that wraps the card's header.
|
|
17
|
-
* @csspart body - The container that wraps the card's main content.
|
|
18
|
-
* @csspart footer - The container that wraps the card's footer.
|
|
19
|
-
*
|
|
20
|
-
* @cssproperty --border-color - The card's border color, including borders that occur inside the card.
|
|
21
|
-
* @cssproperty --border-radius - The border radius for the card's edges.
|
|
22
|
-
* @cssproperty --border-width - The width of the card's borders.
|
|
23
|
-
* @cssproperty --padding - The padding to use for the card's sections.
|
|
24
|
-
*/
|
|
25
|
-
export default class FlowCard extends FlowRdfElement {
|
|
26
|
-
static styles: CSSResultGroup;
|
|
27
|
-
private readonly hasSlotController;
|
|
28
|
-
render(): import("lit").TemplateResult<1>;
|
|
29
|
-
}
|
|
30
|
-
declare global {
|
|
31
|
-
interface HTMLElementTagNameMap {
|
|
32
|
-
'flow-ui-card': FlowCard;
|
|
33
|
-
}
|
|
34
|
-
}
|