@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,10 +0,0 @@
|
|
|
1
|
-
import type FlowMenuItem from '../components/menu-item/menu-item';
|
|
2
|
-
type FlowSelectEvent = CustomEvent<{
|
|
3
|
-
item: FlowMenuItem;
|
|
4
|
-
}>;
|
|
5
|
-
declare global {
|
|
6
|
-
interface GlobalEventHandlersEventMap {
|
|
7
|
-
'flow-ui-select': FlowSelectEvent;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export default FlowSelectEvent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type FlowTreeItem from '../components/tree-item/tree-item';
|
|
2
|
-
type FlowSelectionChangeEvent = CustomEvent<{
|
|
3
|
-
selection: FlowTreeItem[];
|
|
4
|
-
}>;
|
|
5
|
-
declare global {
|
|
6
|
-
interface GlobalEventHandlersEventMap {
|
|
7
|
-
'flow-ui-selection-change': FlowSelectionChangeEvent;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export default FlowSelectionChangeEvent;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type FlowCarouselItem from '../components/carousel-item/carousel-item';
|
|
2
|
-
type FlowSlideChange = CustomEvent<{
|
|
3
|
-
index: number;
|
|
4
|
-
slide: FlowCarouselItem;
|
|
5
|
-
}>;
|
|
6
|
-
declare global {
|
|
7
|
-
interface GlobalEventHandlersEventMap {
|
|
8
|
-
'flow-ui-slide-change': FlowSlideChange;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export default FlowSlideChange;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export { default as FlowAlert } from './components/alert/alert';
|
|
2
|
-
export { default as FlowAnimation } from './components/animation/animation';
|
|
3
|
-
export { default as FlowAvatar } from './components/avatar/avatar';
|
|
4
|
-
export { default as FlowBadge } from './components/badge/badge';
|
|
5
|
-
export { default as FlowBreadcrumbItem } from './components/breadcrumb-item/breadcrumb-item';
|
|
6
|
-
export { default as FlowBreadcrumb } from './components/breadcrumb/breadcrumb';
|
|
7
|
-
export { default as FlowButtonGroup } from './components/button-group/button-group';
|
|
8
|
-
export { default as FlowButton } from './components/button/button';
|
|
9
|
-
export { default as FlowCard } from './components/card/card';
|
|
10
|
-
export { default as FlowCarouselItem } from './components/carousel-item/carousel-item';
|
|
11
|
-
export { default as FlowCarousel } from './components/carousel/carousel';
|
|
12
|
-
export { default as FlowCheckbox } from './components/checkbox/checkbox';
|
|
13
|
-
export { default as FlowColorPicker } from './components/color-picker/color-picker';
|
|
14
|
-
export { default as FlowDetails } from './components/details/details';
|
|
15
|
-
export { default as FlowDialog } from './components/dialog/dialog';
|
|
16
|
-
export { default as FlowDivider } from './components/divider/divider';
|
|
17
|
-
export { default as FlowDrawer } from './components/drawer/drawer';
|
|
18
|
-
export { default as FlowDropdown } from './components/dropdown/dropdown';
|
|
19
|
-
export { default as FlowIconButton } from './components/icon-button/icon-button';
|
|
20
|
-
export { default as FlowIcon } from './components/icon/icon';
|
|
21
|
-
export { default as FlowInput } from './components/input/input';
|
|
22
|
-
export { default as FlowMenuItem } from './components/menu-item/menu-item';
|
|
23
|
-
export { default as FlowMenuLabel } from './components/menu-label/menu-label';
|
|
24
|
-
export { default as FlowMenu } from './components/menu/menu';
|
|
25
|
-
export { default as FlowMutationObserver } from './components/mutation-observer/mutation-observer';
|
|
26
|
-
export { default as FlowOption } from './components/option/option';
|
|
27
|
-
export { default as FlowPopup } from './components/popup/popup';
|
|
28
|
-
export { default as FlowProgressBar } from './components/progress-bar/progress-bar';
|
|
29
|
-
export { default as FlowProgressRing } from './components/progress-ring/progress-ring';
|
|
30
|
-
export { default as FlowRadioButton } from './components/radio-button/radio-button';
|
|
31
|
-
export { default as FlowRadioGroup } from './components/radio-group/radio-group';
|
|
32
|
-
export { default as FlowRadio } from './components/radio/radio';
|
|
33
|
-
export { default as FlowRange } from './components/range/range';
|
|
34
|
-
export { default as FlowResizeObserver } from './components/resize-observer/resize-observer';
|
|
35
|
-
export { default as FlowSelect } from './components/select/select';
|
|
36
|
-
export { default as FlowSpinner } from './components/spinner/spinner';
|
|
37
|
-
export { default as FlowSplitPanel } from './components/split-panel/split-panel';
|
|
38
|
-
export { default as FlowSwitch } from './components/switch/switch';
|
|
39
|
-
export { default as FlowTabGroup } from './components/tab-group/tab-group';
|
|
40
|
-
export { default as FlowTabPanel } from './components/tab-panel/tab-panel';
|
|
41
|
-
export { default as FlowTab } from './components/tab/tab';
|
|
42
|
-
export { default as FlowTag } from './components/tag/tag';
|
|
43
|
-
export { default as FlowTextarea } from './components/textarea/textarea';
|
|
44
|
-
export { default as FlowTooltip } from './components/tooltip/tooltip';
|
|
45
|
-
export { default as FlowTreeItem } from './components/tree-item/tree-item';
|
|
46
|
-
export { default as FlowTree } from './components/tree/tree';
|
|
47
|
-
export { default as FlowVisuallyHidden } from './components/visually-hidden/visually-hidden';
|
|
48
|
-
export * from './components/color-mapper';
|
|
49
|
-
export * from './events/events';
|
|
50
|
-
export * from './utilities/animation';
|
|
51
|
-
export * from './utilities/base-path';
|
|
52
|
-
export * from './utilities/icon-library';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.
|
|
3
|
-
*/
|
|
4
|
-
export declare function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: KeyframeAnimationOptions): Promise<unknown>;
|
|
5
|
-
/** Parses a CSS duration and returns the number of milliseconds. */
|
|
6
|
-
export declare function parseDuration(delay: number | string): number;
|
|
7
|
-
/** Tells if the user has enabled the "reduced motion" setting in their browser or OS. */
|
|
8
|
-
export declare function prefersReducedMotion(): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Stops all active animations on the target element. Returns a promise that resolves after all animations are canceled.
|
|
11
|
-
*/
|
|
12
|
-
export declare function stopAnimations(el: HTMLElement): Promise<unknown[]>;
|
|
13
|
-
/**
|
|
14
|
-
* We can't animate `height: auto`, but we can calculate the height and shim keyframes by replacing it with the
|
|
15
|
-
* element's scrollHeight before the animation.
|
|
16
|
-
*/
|
|
17
|
-
export declare function shimKeyframesHeightAuto(keyframes: Keyframe[], calculatedHeight: number): {
|
|
18
|
-
height: string | number | null | undefined;
|
|
19
|
-
composite?: CompositeOperationOrAuto | undefined;
|
|
20
|
-
easing?: string | undefined;
|
|
21
|
-
offset?: number | null | undefined;
|
|
22
|
-
}[];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type-checking utilities
|
|
3
|
-
*/
|
|
4
|
-
export declare const isUndefined: (val: any) => boolean;
|
|
5
|
-
export declare const isNull: (val: any) => boolean;
|
|
6
|
-
export declare const isNil: (val: any) => boolean;
|
|
7
|
-
export declare const isString: (val: any) => boolean;
|
|
8
|
-
export declare const hasLength: (val: any) => boolean;
|
|
9
|
-
export declare const isStringFull: (val: any) => boolean;
|
|
10
|
-
export declare const isArray: (val: any) => boolean;
|
|
11
|
-
export declare const isArrayFull: (val: any) => boolean;
|
|
12
|
-
export declare const isArrayStrings: (val: any) => boolean;
|
|
13
|
-
export declare const isObject: (val: any) => boolean;
|
|
14
|
-
export declare const isObjectFull: (val: any) => boolean;
|
|
15
|
-
export declare const isNumber: (val: any) => boolean;
|
|
16
|
-
export declare const isEqual: (val: any, eq: any) => boolean;
|
|
17
|
-
export declare const isFalse: (val: any) => boolean;
|
|
18
|
-
export declare const isTrue: (val: any) => boolean;
|
|
19
|
-
export declare const isIn: (val: any, arr?: any[]) => boolean;
|
|
20
|
-
export declare const isBoolean: (val: any) => boolean;
|
|
21
|
-
export declare const isNumeric: (val: any) => boolean;
|
|
22
|
-
export declare const isDateString: (val: any) => boolean;
|
|
23
|
-
export declare const isDate: (val: any) => val is Date;
|
|
24
|
-
export declare const isValue: (val: any) => boolean;
|
|
25
|
-
export declare const hasValue: (val: any) => boolean;
|
|
26
|
-
export declare const isFunction: (val: any) => boolean;
|
|
27
|
-
export declare function isPlainObject(o: any): boolean;
|
|
28
|
-
export declare function isURL(str: any): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const debounce: (delay: number) => <T>(_target: T, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface DragOptions {
|
|
2
|
-
/** Callback that runs as dragging occurs. */
|
|
3
|
-
onMove: (x: number, y: number) => void;
|
|
4
|
-
/** Callback that runs when dragging stops. */
|
|
5
|
-
onStop: () => void;
|
|
6
|
-
/**
|
|
7
|
-
* When an initial event is passed, the first drag will be triggered immediately using the coordinates therein. This
|
|
8
|
-
* is useful when the drag is initiated by a mousedown/touchstart event but you want the initial "click" to activate
|
|
9
|
-
* a drag (e.g. positioning a handle initially at the click target).
|
|
10
|
-
*/
|
|
11
|
-
initialEvent: PointerEvent;
|
|
12
|
-
}
|
|
13
|
-
/** Begins listening for dragging. */
|
|
14
|
-
export declare function drag(container: HTMLElement, options?: Partial<DragOptions>): void;
|
|
15
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
|
|
3
|
-
type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
|
|
4
|
-
type EventTypesWithRequiredDetail = {
|
|
5
|
-
[EventType in keyof GlobalEventHandlersEventMap as EventTypeRequiresDetail<EventType>]: true;
|
|
6
|
-
};
|
|
7
|
-
type EventTypesWithoutRequiredDetail = {
|
|
8
|
-
[EventType in keyof GlobalEventHandlersEventMap as EventTypeDoesNotRequireDetail<EventType>]: true;
|
|
9
|
-
};
|
|
10
|
-
type WithRequired<T, K extends keyof T> = T & {
|
|
11
|
-
[P in K]-?: T[P];
|
|
12
|
-
};
|
|
13
|
-
type SlEventInit<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']> : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? CustomEventInit<GlobalEventHandlersEventMap[T]['detail']> : WithRequired<CustomEventInit<GlobalEventHandlersEventMap[T]['detail']>, 'detail'> : CustomEventInit : CustomEventInit;
|
|
14
|
-
type GetCustomEventType<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<unknown> ? GlobalEventHandlersEventMap[T] : CustomEvent<unknown> : CustomEvent<unknown>;
|
|
15
|
-
export default class FlowRdfElement extends LitElement {
|
|
16
|
-
dir: string;
|
|
17
|
-
lang: string;
|
|
18
|
-
/** Emits a custom event with more convenient defaults. */
|
|
19
|
-
emit<T extends string & keyof EventTypesWithoutRequiredDetail>(name: EventTypeDoesNotRequireDetail<T>, options?: SlEventInit<T> | undefined): GetCustomEventType<T>;
|
|
20
|
-
emit<T extends string & keyof EventTypesWithRequiredDetail>(name: EventTypeRequiresDetail<T>, options: SlEventInit<T>): GetCustomEventType<T>;
|
|
21
|
-
}
|
|
22
|
-
export interface FlowRdfFormControl extends FlowRdfElement {
|
|
23
|
-
name: string;
|
|
24
|
-
value: unknown;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
defaultValue?: unknown;
|
|
27
|
-
defaultChecked?: boolean;
|
|
28
|
-
form?: string;
|
|
29
|
-
pattern?: string;
|
|
30
|
-
min?: number | string | Date;
|
|
31
|
-
max?: number | string | Date;
|
|
32
|
-
step?: number | 'any';
|
|
33
|
-
required?: boolean;
|
|
34
|
-
minlength?: number;
|
|
35
|
-
maxlength?: number;
|
|
36
|
-
readonly validity: ValidityState;
|
|
37
|
-
readonly validationMessage: string;
|
|
38
|
-
checkValidity: () => boolean;
|
|
39
|
-
getForm: () => HTMLFormElement | null;
|
|
40
|
-
reportValidity: () => boolean;
|
|
41
|
-
setCustomValidity: (message: string) => void;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
-
import type SlButton from '../components/button/button';
|
|
3
|
-
import type { FlowRdfFormControl } from './flow-ui-rdf-element';
|
|
4
|
-
export declare const formCollections: WeakMap<HTMLFormElement, Set<FlowRdfFormControl>>;
|
|
5
|
-
export interface FormControlControllerOptions {
|
|
6
|
-
/** A function that returns the form containing the form control. */
|
|
7
|
-
form: (input: FlowRdfFormControl) => HTMLFormElement | null;
|
|
8
|
-
/** A function that returns the form control's name, which will be submitted with the form data. */
|
|
9
|
-
name: (input: FlowRdfFormControl) => string;
|
|
10
|
-
/** A function that returns the form control's current value. */
|
|
11
|
-
value: (input: FlowRdfFormControl) => unknown | unknown[];
|
|
12
|
-
/** A function that returns the form control's default value. */
|
|
13
|
-
defaultValue: (input: FlowRdfFormControl) => unknown | unknown[];
|
|
14
|
-
/** A function that returns the form control's current disabled state. If disabled, the value won't be submitted. */
|
|
15
|
-
disabled: (input: FlowRdfFormControl) => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* A function that maps to the form control's reportValidity() function. When the control is invalid, this will
|
|
18
|
-
* prevent submission and trigger the browser's constraint violation warning.
|
|
19
|
-
*/
|
|
20
|
-
reportValidity: (input: FlowRdfFormControl) => boolean;
|
|
21
|
-
/** A function that sets the form control's value */
|
|
22
|
-
setValue: (input: FlowRdfFormControl, value: unknown) => void;
|
|
23
|
-
/**
|
|
24
|
-
* An array of event names to listen to. When all events in the list are emitted, the control will receive validity
|
|
25
|
-
* states such as user-valid and user-invalid.user interacted validity states. */
|
|
26
|
-
assumeInteractionOn: string[];
|
|
27
|
-
}
|
|
28
|
-
/** A reactive controller to allow form controls to participate in form submission, validation, etc. */
|
|
29
|
-
export declare class FormControlController implements ReactiveController {
|
|
30
|
-
host: FlowRdfFormControl & ReactiveControllerHost;
|
|
31
|
-
form?: HTMLFormElement | null;
|
|
32
|
-
options: FormControlControllerOptions;
|
|
33
|
-
constructor(host: ReactiveControllerHost & FlowRdfFormControl, options?: Partial<FormControlControllerOptions>);
|
|
34
|
-
hostConnected(): void;
|
|
35
|
-
hostDisconnected(): void;
|
|
36
|
-
hostUpdated(): void;
|
|
37
|
-
private attachForm;
|
|
38
|
-
private detachForm;
|
|
39
|
-
private handleFormData;
|
|
40
|
-
private handleFormSubmit;
|
|
41
|
-
private handleFormReset;
|
|
42
|
-
private handleInteraction;
|
|
43
|
-
private reportFormValidity;
|
|
44
|
-
private setUserInteracted;
|
|
45
|
-
private doAction;
|
|
46
|
-
/** Returns the associated `<form>` element, if one exists. */
|
|
47
|
-
getForm(): HTMLFormElement | null;
|
|
48
|
-
/** Resets the form, restoring all the control to their default value */
|
|
49
|
-
reset(submitter?: HTMLInputElement | SlButton): void;
|
|
50
|
-
/** Submits the form, triggering validation and form data injection. */
|
|
51
|
-
submit(submitter?: HTMLInputElement | SlButton): void;
|
|
52
|
-
/**
|
|
53
|
-
* Synchronously sets the form control's validity. Call this when you know the future validity but need to update
|
|
54
|
-
* the host element immediately, i.e. before Lit updates the component in the next update.
|
|
55
|
-
*/
|
|
56
|
-
setValidity(isValid: boolean): void;
|
|
57
|
-
/**
|
|
58
|
-
* Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything
|
|
59
|
-
* that affects constraint validation changes so the component receives the correct validity states.
|
|
60
|
-
*/
|
|
61
|
-
updateValidity(): void;
|
|
62
|
-
/**
|
|
63
|
-
* Dispatches a non-bubbling, cancelable custom event of type `flow-ui-invalid`.
|
|
64
|
-
* If the `flow-ui-invalid` event will be cancelled then the original `invalid`
|
|
65
|
-
* event (which may have been passed as argument) will also be cancelled.
|
|
66
|
-
* If no original `invalid` event has been passed then the `flow-ui-invalid`
|
|
67
|
-
* event will be cancelled before being dispatched.
|
|
68
|
-
*/
|
|
69
|
-
emitInvalidEvent(originalInvalidEvent?: Event): void;
|
|
70
|
-
}
|
|
71
|
-
export declare const validValidityState: ValidityState;
|
|
72
|
-
export declare const valueMissingValidityState: ValidityState;
|
|
73
|
-
export declare const customErrorValidityState: ValidityState;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default class Modal {
|
|
2
|
-
element: HTMLElement;
|
|
3
|
-
tabDirection: 'forward' | 'backward';
|
|
4
|
-
constructor(element: HTMLElement);
|
|
5
|
-
activate(): void;
|
|
6
|
-
deactivate(): void;
|
|
7
|
-
isActive(): boolean;
|
|
8
|
-
checkFocus(): void;
|
|
9
|
-
handleFocusIn(): void;
|
|
10
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
11
|
-
handleKeyUp(): void;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns an element's offset relative to its parent. Similar to element.offsetTop and element.offsetLeft, except the
|
|
3
|
-
* parent doesn't have to be positioned relative or absolute.
|
|
4
|
-
*
|
|
5
|
-
* NOTE: This was created to work around what appears to be a bug in Chrome where a slotted element's offsetParent seems
|
|
6
|
-
* to ignore elements inside the surrounding shadow DOM: https://bugs.chromium.org/p/chromium/issues/detail?id=920069
|
|
7
|
-
*/
|
|
8
|
-
export declare function getOffset(element: HTMLElement, parent: HTMLElement): {
|
|
9
|
-
top: number;
|
|
10
|
-
left: number;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function orderBy<TValue>(array: TValue[], fields: (keyof TValue)[], directions: ('asc' | 'desc')[]): TValue[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible
|
|
3
|
-
* without premature unlocking.
|
|
4
|
-
*/
|
|
5
|
-
export declare function lockBodyScrolling(lockingEl: HTMLElement): void;
|
|
6
|
-
/**
|
|
7
|
-
* Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.
|
|
8
|
-
*/
|
|
9
|
-
export declare function unlockBodyScrolling(lockingEl: HTMLElement): void;
|
|
10
|
-
/** Scrolls an element into view of its container. If the element is already in view, nothing will happen. */
|
|
11
|
-
export declare function scrollIntoView(element: HTMLElement, container: HTMLElement, direction?: 'horizontal' | 'vertical' | 'both', behavior?: 'smooth' | 'auto'): void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
-
/** A reactive controller that determines when slots exist. */
|
|
3
|
-
export declare class HasSlotController implements ReactiveController {
|
|
4
|
-
host: ReactiveControllerHost & Element;
|
|
5
|
-
slotNames: string[];
|
|
6
|
-
constructor(host: ReactiveControllerHost & Element, ...slotNames: string[]);
|
|
7
|
-
private hasDefaultSlot;
|
|
8
|
-
private hasNamedSlot;
|
|
9
|
-
test(slotName: string): boolean;
|
|
10
|
-
hostConnected(): void;
|
|
11
|
-
hostDisconnected(): void;
|
|
12
|
-
handleSlotChange(event: Event): void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Given a slot, this function iterates over all of its assigned element and text nodes and returns the concatenated
|
|
16
|
-
* HTML as a string. This is useful because we can't use slot.innerHTML as an alternative.
|
|
17
|
-
*/
|
|
18
|
-
export declare function getInnerHTML(slot: HTMLSlotElement): string;
|
|
19
|
-
/**
|
|
20
|
-
* Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a
|
|
21
|
-
* string. This is useful because we can't use slot.textContent as an alternative.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getTextContent(slot: HTMLSlotElement | undefined | null): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the first and last bounding elements that are tabbable. This is more performant than checking every single
|
|
3
|
-
* element because it short-circuits after finding the first and last ones.
|
|
4
|
-
*/
|
|
5
|
-
export declare function getTabbableBoundary(root: HTMLElement | ShadowRoot): {
|
|
6
|
-
start: HTMLElement | null;
|
|
7
|
-
end: HTMLElement | null;
|
|
8
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allows you to find a DOM element based on the value of its `data-testid` attribute.
|
|
3
|
-
* This attribute can be used to decouple identifying dom elements for testing from
|
|
4
|
-
* styling (which is typically done via class selectors) or other ids which serve
|
|
5
|
-
* different purposes.
|
|
6
|
-
* See also https://kentcdodds.com/blog/making-your-ui-tests-resilient-to-change
|
|
7
|
-
* Inspired by https://testing-library.com/docs/queries/bytestid/
|
|
8
|
-
* @param {HTMLElement} container - A parent element of the DOM element to find
|
|
9
|
-
* @param {string} testId - The value of the `data-testid` attribute of the component to find.
|
|
10
|
-
* @returns The found element or null if there was no such element
|
|
11
|
-
*/
|
|
12
|
-
export declare const queryByTestId: <T extends Element>(container: HTMLElement, testId: string) => T | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Given a parent element featuring `overflow: hidden` and a child element inside the parent, this
|
|
3
|
-
* function determines whether the child will be visible taking only the overflow of the parent into account
|
|
4
|
-
* Id does NOT check whether it is hidden or overlapped by another element
|
|
5
|
-
* It basically checks whether the bounding rects of the parent and the child overlap
|
|
6
|
-
*
|
|
7
|
-
* @param {HTMLElement} outerElement - The parent element
|
|
8
|
-
* @param {HTMLElement} innerElement - the child element
|
|
9
|
-
* @returns {Boolean} whether the two elements overlap
|
|
10
|
-
*/
|
|
11
|
-
export declare const isElementVisibleFromOverflow: (outerElement: Element, innerElement: Element) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FlowRdfFormControl } from '../flow-ui-rdf-element';
|
|
2
|
-
/** Runs a set of generic tests for Shoelace form controls */
|
|
3
|
-
export declare function runFormControlBaseTests<T extends FlowRdfFormControl = FlowRdfFormControl>(tagNameOrConfig: string | {
|
|
4
|
-
tagName: string;
|
|
5
|
-
init?: (control: T) => void;
|
|
6
|
-
variantName: string;
|
|
7
|
-
}): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wait until an element has stopped scrolling
|
|
3
|
-
* This considers the element to have stopped scrolling, as soon as it did not change its
|
|
4
|
-
* scroll position for 20 successive animation frames
|
|
5
|
-
* @param {HTMLElement} element - The element which is scrolled
|
|
6
|
-
* @param {numeric} timeoutInMs - A timeout in ms. If the timeout has elapsed, the promise rejects
|
|
7
|
-
* @returns A promise which resolves after the scrolling has stopped
|
|
8
|
-
*/
|
|
9
|
-
export declare const waitForScrollingToEnd: (element: Element, timeoutInMs?: number) => Promise<void>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** A testing utility that measures an element's position and clicks on it. */
|
|
2
|
-
export declare function clickOnElement(
|
|
3
|
-
/** The element to click */
|
|
4
|
-
el: Element,
|
|
5
|
-
/** The location of the element to click */
|
|
6
|
-
position?: 'top' | 'right' | 'bottom' | 'left' | 'center',
|
|
7
|
-
/** The horizontal offset to apply to the position when clicking */
|
|
8
|
-
offsetX?: number,
|
|
9
|
-
/** The vertical offset to apply to the position when clicking */
|
|
10
|
-
offsetY?: number): Promise<void>;
|
|
11
|
-
/** A testing utility that moves the mouse onto an element. */
|
|
12
|
-
export declare function moveMouseOnElement(
|
|
13
|
-
/** The element to click */
|
|
14
|
-
el: Element,
|
|
15
|
-
/** The location of the element to click */
|
|
16
|
-
position?: 'top' | 'right' | 'bottom' | 'left' | 'center',
|
|
17
|
-
/** The horizontal offset to apply to the position when clicking */
|
|
18
|
-
offsetX?: number,
|
|
19
|
-
/** The vertical offset to apply to the position when clicking */
|
|
20
|
-
offsetY?: number): Promise<void>;
|
|
21
|
-
/** A testing utility that drags an element with the mouse. */
|
|
22
|
-
export declare function dragElement(
|
|
23
|
-
/** The element to drag */
|
|
24
|
-
el: Element,
|
|
25
|
-
/** The horizontal distance to drag in pixels */
|
|
26
|
-
deltaX?: number,
|
|
27
|
-
/** The vertical distance to drag in pixels */
|
|
28
|
-
deltaY?: number): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const throttle: (delay: number) => <T>(_target: T, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { LitElement } from 'lit';
|
|
2
|
-
type UpdateHandler = (prev?: unknown, next?: unknown) => void;
|
|
3
|
-
type NonUndefined<A> = A extends undefined ? never : A;
|
|
4
|
-
type UpdateHandlerFunctionKeys<T extends object> = {
|
|
5
|
-
[K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;
|
|
6
|
-
}[keyof T];
|
|
7
|
-
interface WatchOptions {
|
|
8
|
-
/**
|
|
9
|
-
* If true, will only start watching after the initial update/render
|
|
10
|
-
*/
|
|
11
|
-
waitUntilFirstUpdate?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Runs when observed properties change, e.g. @property or @state, but before the component updates. To wait for an
|
|
15
|
-
* update to complete after a change occurs, use `await this.updateComplete` in the handler. To start watching after the
|
|
16
|
-
* initial update/render, use `{ waitUntilFirstUpdate: true }` or `this.hasUpdated` in the handler.
|
|
17
|
-
*
|
|
18
|
-
* Usage:
|
|
19
|
-
*
|
|
20
|
-
* @watch('propName')
|
|
21
|
-
* handlePropChange(oldValue, newValue) {
|
|
22
|
-
* ...
|
|
23
|
-
* }
|
|
24
|
-
*/
|
|
25
|
-
export declare function watch(propertyName: string | string[], options?: WatchOptions): <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => void;
|
|
26
|
-
export {};
|