@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.
Files changed (235) hide show
  1. package/dist/custom-elements.json +8391 -7539
  2. package/dist/flow-rdf-ui.d.ts +3566 -0
  3. package/dist/flow-rdf-ui.js +2407 -1432
  4. package/dist/flow-rdf-ui.umd.cjs +2417 -1440
  5. package/dist/themes/dark.css +13 -0
  6. package/dist/themes/dark.styles.js +13 -0
  7. package/dist/themes/light.css +13 -0
  8. package/dist/themes/light.styles.js +13 -0
  9. package/dist/vscode.html-custom-data.json +327 -369
  10. package/package.json +7 -3
  11. package/dist/types/components/alert/alert.d.ts +0 -71
  12. package/dist/types/components/alert/alert.stories.d.ts +0 -5
  13. package/dist/types/components/alert/alert.styles.d.ts +0 -2
  14. package/dist/types/components/animation/animation.d.ts +0 -81
  15. package/dist/types/components/animation/animation.stories.d.ts +0 -5
  16. package/dist/types/components/animation/animation.styles.d.ts +0 -2
  17. package/dist/types/components/animation/animations.d.ts +0 -6
  18. package/dist/types/components/animation/index.d.ts +0 -1
  19. package/dist/types/components/avatar/avatar.d.ts +0 -40
  20. package/dist/types/components/avatar/avatar.stories.d.ts +0 -5
  21. package/dist/types/components/avatar/avatar.styles.d.ts +0 -2
  22. package/dist/types/components/badge/badge.d.ts +0 -27
  23. package/dist/types/components/badge/badge.stories.d.ts +0 -5
  24. package/dist/types/components/badge/badge.styles.d.ts +0 -2
  25. package/dist/types/components/breadcrumb/breadcrumb.d.ts +0 -35
  26. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +0 -5
  27. package/dist/types/components/breadcrumb/breadcrumb.styles.d.ts +0 -2
  28. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +0 -39
  29. package/dist/types/components/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -2
  30. package/dist/types/components/button/button.d.ts +0 -133
  31. package/dist/types/components/button/button.stories.d.ts +0 -6
  32. package/dist/types/components/button/button.styles.d.ts +0 -2
  33. package/dist/types/components/button-group/button-group.d.ts +0 -33
  34. package/dist/types/components/button-group/button-group.stories.d.ts +0 -5
  35. package/dist/types/components/button-group/button-group.styles.d.ts +0 -2
  36. package/dist/types/components/card/card.d.ts +0 -34
  37. package/dist/types/components/card/card.stories.d.ts +0 -5
  38. package/dist/types/components/card/card.styles.d.ts +0 -2
  39. package/dist/types/components/carousel/autoplay-controller.d.ts +0 -20
  40. package/dist/types/components/carousel/carousel.d.ts +0 -105
  41. package/dist/types/components/carousel/carousel.styles.d.ts +0 -2
  42. package/dist/types/components/carousel/scroll-controller.d.ts +0 -28
  43. package/dist/types/components/carousel-item/carousel-item.d.ts +0 -24
  44. package/dist/types/components/carousel-item/carousel-item.styles.d.ts +0 -2
  45. package/dist/types/components/checkbox/checkbox.d.ts +0 -94
  46. package/dist/types/components/checkbox/checkbox.styles.d.ts +0 -2
  47. package/dist/types/components/checkbox/index.d.ts +0 -1
  48. package/dist/types/components/color-mapper/color-mapper.component.d.ts +0 -39
  49. package/dist/types/components/color-mapper/color-mapper.stories.d.ts +0 -68
  50. package/dist/types/components/color-mapper/color-mapper.styles.d.ts +0 -2
  51. package/dist/types/components/color-mapper/color-stop.component.d.ts +0 -54
  52. package/dist/types/components/color-mapper/color-stop.styles.d.ts +0 -2
  53. package/dist/types/components/color-mapper/helpers.d.ts +0 -3
  54. package/dist/types/components/color-mapper/index.d.ts +0 -4
  55. package/dist/types/components/color-mapper/types.d.ts +0 -54
  56. package/dist/types/components/color-picker/color-picker.d.ts +0 -193
  57. package/dist/types/components/color-picker/color-picker.stories.d.ts +0 -5
  58. package/dist/types/components/color-picker/color-picker.styles.d.ts +0 -2
  59. package/dist/types/components/details/details.d.ts +0 -60
  60. package/dist/types/components/details/details.stories.d.ts +0 -5
  61. package/dist/types/components/details/details.styles.d.ts +0 -2
  62. package/dist/types/components/dialog/dialog.d.ts +0 -91
  63. package/dist/types/components/dialog/dialog.styles.d.ts +0 -2
  64. package/dist/types/components/divider/divider.d.ts +0 -24
  65. package/dist/types/components/divider/divider.styles.d.ts +0 -2
  66. package/dist/types/components/drawer/drawer.d.ts +0 -106
  67. package/dist/types/components/drawer/drawer.styles.d.ts +0 -2
  68. package/dist/types/components/dropdown/dropdown.d.ts +0 -98
  69. package/dist/types/components/dropdown/dropdown.styles.d.ts +0 -2
  70. package/dist/types/components/icon/icon.d.ts +0 -45
  71. package/dist/types/components/icon/icon.stories.d.ts +0 -5
  72. package/dist/types/components/icon/icon.styles.d.ts +0 -2
  73. package/dist/types/components/icon/library.d.ts +0 -21
  74. package/dist/types/components/icon/library.default.d.ts +0 -3
  75. package/dist/types/components/icon/library.system.d.ts +0 -3
  76. package/dist/types/components/icon-button/icon-button.d.ts +0 -92
  77. package/dist/types/components/icon-button/icon-button.stories.d.ts +0 -29
  78. package/dist/types/components/icon-button/icon-button.styles.d.ts +0 -2
  79. package/dist/types/components/icon-button/index.d.ts +0 -1
  80. package/dist/types/components/input/input.d.ts +0 -176
  81. package/dist/types/components/input/input.styles.d.ts +0 -2
  82. package/dist/types/components/menu/menu.d.ts +0 -44
  83. package/dist/types/components/menu/menu.styles.d.ts +0 -2
  84. package/dist/types/components/menu-item/menu-item.d.ts +0 -50
  85. package/dist/types/components/menu-item/menu-item.styles.d.ts +0 -2
  86. package/dist/types/components/menu-label/menu-label.d.ts +0 -21
  87. package/dist/types/components/menu-label/menu-label.styles.d.ts +0 -2
  88. package/dist/types/components/mutation-observer/mutation-observer.d.ts +0 -44
  89. package/dist/types/components/mutation-observer/mutation-observer.styles.d.ts +0 -2
  90. package/dist/types/components/option/option.d.ts +0 -52
  91. package/dist/types/components/option/option.stories.d.ts +0 -7
  92. package/dist/types/components/option/option.styles.d.ts +0 -2
  93. package/dist/types/components/popup/popup.d.ts +0 -140
  94. package/dist/types/components/popup/popup.stories.d.ts +0 -5
  95. package/dist/types/components/popup/popup.styles.d.ts +0 -2
  96. package/dist/types/components/progress-bar/progress-bar.d.ts +0 -35
  97. package/dist/types/components/progress-bar/progress-bar.styles.d.ts +0 -2
  98. package/dist/types/components/progress-ring/progress-ring.d.ts +0 -37
  99. package/dist/types/components/progress-ring/progress-ring.styles.d.ts +0 -2
  100. package/dist/types/components/radio/radio.d.ts +0 -53
  101. package/dist/types/components/radio/radio.stories.d.ts +0 -5
  102. package/dist/types/components/radio/radio.styles.d.ts +0 -2
  103. package/dist/types/components/radio-button/radio-button.d.ts +0 -60
  104. package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -5
  105. package/dist/types/components/radio-button/radio-button.styles.d.ts +0 -2
  106. package/dist/types/components/radio-group/radio-group.d.ts +0 -89
  107. package/dist/types/components/radio-group/radio-group.stories.d.ts +0 -5
  108. package/dist/types/components/radio-group/radio-group.styles.d.ts +0 -2
  109. package/dist/types/components/range/range.d.ts +0 -116
  110. package/dist/types/components/range/range.styles.d.ts +0 -2
  111. package/dist/types/components/resize-observer/resize-observer.d.ts +0 -31
  112. package/dist/types/components/resize-observer/resize-observer.styles.d.ts +0 -2
  113. package/dist/types/components/select/select.d.ts +0 -174
  114. package/dist/types/components/select/select.stories.d.ts +0 -5
  115. package/dist/types/components/select/select.styles.d.ts +0 -2
  116. package/dist/types/components/spinner/spinner.d.ts +0 -25
  117. package/dist/types/components/spinner/spinner.stories.d.ts +0 -5
  118. package/dist/types/components/spinner/spinner.styles.d.ts +0 -2
  119. package/dist/types/components/split-panel/split-panel.d.ts +0 -74
  120. package/dist/types/components/split-panel/split-panel.stories.d.ts +0 -5
  121. package/dist/types/components/split-panel/split-panel.styles.d.ts +0 -2
  122. package/dist/types/components/switch/switch.d.ts +0 -86
  123. package/dist/types/components/switch/switch.stories.d.ts +0 -5
  124. package/dist/types/components/switch/switch.styles.d.ts +0 -2
  125. package/dist/types/components/tab/tab.d.ts +0 -47
  126. package/dist/types/components/tab/tab.styles.d.ts +0 -2
  127. package/dist/types/components/tab-group/tab-group.d.ts +0 -76
  128. package/dist/types/components/tab-group/tab-group.stories.d.ts +0 -5
  129. package/dist/types/components/tab-group/tab-group.styles.d.ts +0 -2
  130. package/dist/types/components/tab-panel/tab-panel.d.ts +0 -31
  131. package/dist/types/components/tab-panel/tab-panel.styles.d.ts +0 -2
  132. package/dist/types/components/tag/tag.d.ts +0 -38
  133. package/dist/types/components/tag/tag.stories.d.ts +0 -5
  134. package/dist/types/components/tag/tag.styles.d.ts +0 -2
  135. package/dist/types/components/textarea/textarea.d.ts +0 -138
  136. package/dist/types/components/textarea/textarea.stories.d.ts +0 -5
  137. package/dist/types/components/textarea/textarea.styles.d.ts +0 -2
  138. package/dist/types/components/tooltip/tooltip.d.ts +0 -89
  139. package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -5
  140. package/dist/types/components/tooltip/tooltip.styles.d.ts +0 -2
  141. package/dist/types/components/tree/tree.d.ts +0 -65
  142. package/dist/types/components/tree/tree.stories.d.ts +0 -5
  143. package/dist/types/components/tree/tree.styles.d.ts +0 -2
  144. package/dist/types/components/tree-item/tree-item.d.ts +0 -89
  145. package/dist/types/components/tree-item/tree-item.styles.d.ts +0 -2
  146. package/dist/types/components/visually-hidden/visually-hidden.d.ts +0 -19
  147. package/dist/types/components/visually-hidden/visually-hidden.stories.d.ts +0 -5
  148. package/dist/types/components/visually-hidden/visually-hidden.styles.d.ts +0 -2
  149. package/dist/types/events/events.d.ts +0 -34
  150. package/dist/types/events/flow-after-collapse.d.ts +0 -7
  151. package/dist/types/events/flow-after-expand.d.ts +0 -7
  152. package/dist/types/events/flow-after-hide.d.ts +0 -7
  153. package/dist/types/events/flow-after-show.d.ts +0 -7
  154. package/dist/types/events/flow-blur.d.ts +0 -7
  155. package/dist/types/events/flow-cancel.d.ts +0 -7
  156. package/dist/types/events/flow-change.d.ts +0 -7
  157. package/dist/types/events/flow-clear.d.ts +0 -7
  158. package/dist/types/events/flow-close.d.ts +0 -7
  159. package/dist/types/events/flow-collapse.d.ts +0 -7
  160. package/dist/types/events/flow-error.d.ts +0 -9
  161. package/dist/types/events/flow-expand.d.ts +0 -7
  162. package/dist/types/events/flow-finish.d.ts +0 -7
  163. package/dist/types/events/flow-focus.d.ts +0 -7
  164. package/dist/types/events/flow-hide.d.ts +0 -7
  165. package/dist/types/events/flow-hover.d.ts +0 -10
  166. package/dist/types/events/flow-initial-focus.d.ts +0 -7
  167. package/dist/types/events/flow-input.d.ts +0 -7
  168. package/dist/types/events/flow-invalid.d.ts +0 -7
  169. package/dist/types/events/flow-lazy-change.d.ts +0 -7
  170. package/dist/types/events/flow-lazy-load.d.ts +0 -7
  171. package/dist/types/events/flow-load.d.ts +0 -7
  172. package/dist/types/events/flow-mutation.d.ts +0 -9
  173. package/dist/types/events/flow-remove.d.ts +0 -7
  174. package/dist/types/events/flow-reposition.d.ts +0 -7
  175. package/dist/types/events/flow-request-close.d.ts +0 -9
  176. package/dist/types/events/flow-resize.d.ts +0 -9
  177. package/dist/types/events/flow-select.d.ts +0 -10
  178. package/dist/types/events/flow-selection-change.d.ts +0 -10
  179. package/dist/types/events/flow-show.d.ts +0 -7
  180. package/dist/types/events/flow-slide-change.d.ts +0 -11
  181. package/dist/types/events/flow-start.d.ts +0 -7
  182. package/dist/types/events/flow-tab-hide.d.ts +0 -9
  183. package/dist/types/events/flow-tab-show.d.ts +0 -9
  184. package/dist/types/flow-autoloader.d.ts +0 -4
  185. package/dist/types/index.d.ts +0 -52
  186. package/dist/types/internal/animate.d.ts +0 -22
  187. package/dist/types/internal/checks.util.d.ts +0 -28
  188. package/dist/types/internal/debounce.d.ts +0 -1
  189. package/dist/types/internal/default-value.d.ts +0 -2
  190. package/dist/types/internal/drag.d.ts +0 -15
  191. package/dist/types/internal/event.d.ts +0 -2
  192. package/dist/types/internal/flow-ui-rdf-element.d.ts +0 -43
  193. package/dist/types/internal/form.d.ts +0 -73
  194. package/dist/types/internal/math.d.ts +0 -2
  195. package/dist/types/internal/modal.d.ts +0 -12
  196. package/dist/types/internal/offset.d.ts +0 -11
  197. package/dist/types/internal/orderby.d.ts +0 -1
  198. package/dist/types/internal/scroll.d.ts +0 -11
  199. package/dist/types/internal/slot.d.ts +0 -23
  200. package/dist/types/internal/string.d.ts +0 -2
  201. package/dist/types/internal/tabbable.d.ts +0 -8
  202. package/dist/types/internal/test/data-testid-helpers.d.ts +0 -12
  203. package/dist/types/internal/test/element-visible-overflow.d.ts +0 -11
  204. package/dist/types/internal/test/form-control-base-tests.d.ts +0 -7
  205. package/dist/types/internal/test/wait-for-scrolling.d.ts +0 -9
  206. package/dist/types/internal/test.d.ts +0 -28
  207. package/dist/types/internal/throttle.d.ts +0 -1
  208. package/dist/types/internal/watch.d.ts +0 -26
  209. package/dist/types/styles/component.styles.d.ts +0 -2
  210. package/dist/types/styles/form-control.styles.d.ts +0 -2
  211. package/dist/types/translations/da.d.ts +0 -3
  212. package/dist/types/translations/de-ch.d.ts +0 -3
  213. package/dist/types/translations/de.d.ts +0 -3
  214. package/dist/types/translations/en-gb.d.ts +0 -3
  215. package/dist/types/translations/en.d.ts +0 -3
  216. package/dist/types/translations/es.d.ts +0 -3
  217. package/dist/types/translations/fa.d.ts +0 -3
  218. package/dist/types/translations/fr.d.ts +0 -3
  219. package/dist/types/translations/he.d.ts +0 -3
  220. package/dist/types/translations/hu.d.ts +0 -3
  221. package/dist/types/translations/ja.d.ts +0 -3
  222. package/dist/types/translations/nl.d.ts +0 -3
  223. package/dist/types/translations/pl.d.ts +0 -3
  224. package/dist/types/translations/pt.d.ts +0 -3
  225. package/dist/types/translations/ru.d.ts +0 -3
  226. package/dist/types/translations/sv.d.ts +0 -3
  227. package/dist/types/translations/tr.d.ts +0 -3
  228. package/dist/types/translations/zh-tw.d.ts +0 -3
  229. package/dist/types/utilities/animation-registry.d.ts +0 -24
  230. package/dist/types/utilities/animation.d.ts +0 -1
  231. package/dist/types/utilities/announce.d.ts +0 -1
  232. package/dist/types/utilities/base-path.d.ts +0 -18
  233. package/dist/types/utilities/form.d.ts +0 -11
  234. package/dist/types/utilities/icon-library.d.ts +0 -1
  235. package/dist/types/utilities/localize.d.ts +0 -30
@@ -1,174 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import type { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element';
3
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
4
- import type FlowOption from '../option/option';
5
- import type FlowPopup from '../popup/popup';
6
- /**
7
- * @summary Selects allow you to choose items from a menu of predefined options.
8
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/select
9
- * @status stable
10
- * @since 2.0
11
- *
12
- * @dependency flow-ui-icon
13
- * @dependency flow-ui-popup
14
- * @dependency flow-ui-tag
15
- *
16
- * @slot - The listbox options. Must be `<flow-ui-option>` elements. You can use `<flow-ui-divider>` to group items visually.
17
- * @slot label - The input's label. Alternatively, you can use the `label` attribute.
18
- * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
19
- * @slot clear-icon - An icon to use in lieu of the default clear icon.
20
- * @slot expand-icon - The icon to show when the control is expanded and collapsed. Rotates on open and close.
21
- * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.
22
- *
23
- * @event flow-ui-change - Emitted when the control's value changes.
24
- * @event flow-ui-clear - Emitted when the control's value is cleared.
25
- * @event flow-ui-input - Emitted when the control receives input.
26
- * @event flow-ui-focus - Emitted when the control gains focus.
27
- * @event flow-ui-blur - Emitted when the control loses focus.
28
- * @event flow-ui-show - Emitted when the select's menu opens.
29
- * @event flow-ui-after-show - Emitted after the select's menu opens and all animations are complete.
30
- * @event flow-ui-hide - Emitted when the select's menu closes.
31
- * @event flow-ui-after-hide - Emitted after the select's menu closes and all animations are complete.
32
- * @event flow-ui-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
33
- *
34
- * @csspart form-control - The form control that wraps the label, input, and help text.
35
- * @csspart form-control-label - The label's wrapper.
36
- * @csspart form-control-input - The select's wrapper.
37
- * @csspart form-control-help-text - The help text's wrapper.
38
- * @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.
39
- * @csspart prefix - The container that wraps the prefix slot.
40
- * @csspart display-input - The element that displays the selected option's label, an `<input>` element.
41
- * @csspart listbox - The listbox container where options are slotted.
42
- * @csspart tags - The container that houses option tags when `multiselect` is used.
43
- * @csspart tag - The individual tags that represent each multiselect option.
44
- * @csspart tag__base - The tag's base part.
45
- * @csspart tag__content - The tag's content part.
46
- * @csspart tag__remove-button - The tag's remove button.
47
- * @csspart tag__remove-button__base - The tag's remove button base part.
48
- * @csspart clear-button - The clear button.
49
- * @csspart expand-icon - The container that wraps the expand icon.
50
- */
51
- export default class FlowSelect extends FlowRdfElement implements FlowRdfFormControl {
52
- static styles: CSSResultGroup;
53
- private readonly formControlController;
54
- private readonly hasSlotController;
55
- private readonly localize;
56
- private typeToSelectString;
57
- private typeToSelectTimeout;
58
- popup: FlowPopup;
59
- combobox: HTMLSlotElement;
60
- displayInput: HTMLInputElement;
61
- valueInput: HTMLInputElement;
62
- listbox: HTMLSlotElement;
63
- private hasFocus;
64
- displayLabel: string;
65
- currentOption: FlowOption;
66
- selectedOptions: FlowOption[];
67
- /** The name of the select, submitted as a name/value pair with form data. */
68
- name: string;
69
- /**
70
- * The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the
71
- * value will be a space-delimited list of values based on the options selected.
72
- */
73
- value: string | string[];
74
- /** The default value of the form control. Primarily used for resetting the form control. */
75
- defaultValue: string | string[];
76
- /** The select's size. */
77
- size: 'small' | 'medium' | 'large';
78
- /** Placeholder text to show as a hint when the select is empty. */
79
- placeholder: string;
80
- /** Allows more than one option to be selected. */
81
- multiple: boolean;
82
- /**
83
- * The maximum number of selected options to show when `multiple` is true. After the maximum, "+n" will be shown to
84
- * indicate the number of additional items that are selected. Set to 0 to remove the limit.
85
- */
86
- maxOptionsVisible: number;
87
- /** Disables the select control. */
88
- disabled: boolean;
89
- /** Adds a clear button when the select is not empty. */
90
- clearable: boolean;
91
- /**
92
- * Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can
93
- * use the `show()` and `hide()` methods and this attribute will reflect the select's open state.
94
- */
95
- open: boolean;
96
- /**
97
- * Enable this option to prevent the listbox from being clipped when the component is placed inside a container with
98
- * `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
99
- */
100
- hoist: boolean;
101
- /** Draws a filled select. */
102
- filled: boolean;
103
- /** Draws a pill-style select with rounded edges. */
104
- pill: boolean;
105
- /** The select's label. If you need to display HTML, use the `label` slot instead. */
106
- label: string;
107
- /**
108
- * The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox
109
- * inside of the viewport.
110
- */
111
- placement: 'top' | 'bottom';
112
- /** The select's help text. If you need to display HTML, use the `help-text` slot instead. */
113
- helpText: string;
114
- /**
115
- * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
116
- * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
117
- * the same document or shadow root for this to work.
118
- */
119
- form: string;
120
- /** The select's required attribute. */
121
- required: boolean;
122
- /** Gets the validity state object */
123
- get validity(): ValidityState;
124
- /** Gets the validation message */
125
- get validationMessage(): string;
126
- connectedCallback(): void;
127
- private addOpenListeners;
128
- private removeOpenListeners;
129
- private handleFocus;
130
- private handleBlur;
131
- private handleDocumentFocusIn;
132
- private handleDocumentKeyDown;
133
- private handleDocumentMouseDown;
134
- private handleLabelClick;
135
- private handleComboboxMouseDown;
136
- private handleComboboxKeyDown;
137
- private handleClearClick;
138
- private handleClearMouseDown;
139
- private handleOptionClick;
140
- private handleDefaultSlotChange;
141
- private handleTagRemove;
142
- private getAllOptions;
143
- private getFirstOption;
144
- private setCurrentOption;
145
- private setSelectedOptions;
146
- private toggleOptionSelection;
147
- private selectionChanged;
148
- private handleInvalid;
149
- handleDisabledChange(): void;
150
- handleValueChange(): void;
151
- handleOpenChange(): Promise<void>;
152
- /** Shows the listbox. */
153
- show(): Promise<void>;
154
- /** Hides the listbox. */
155
- hide(): Promise<void>;
156
- /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
157
- checkValidity(): boolean;
158
- /** Gets the associated form, if one exists. */
159
- getForm(): HTMLFormElement | null;
160
- /** Checks for validity and shows the browser's validation message if the control is invalid. */
161
- reportValidity(): boolean;
162
- /** Sets a custom validation message. Pass an empty string to restore validity. */
163
- setCustomValidity(message: string): void;
164
- /** Sets focus on the control. */
165
- focus(options?: FocusOptions): void;
166
- /** Removes focus from the control. */
167
- blur(): void;
168
- render(): import("lit").TemplateResult<1>;
169
- }
170
- declare global {
171
- interface HTMLElementTagNameMap {
172
- 'flow-ui-select': FlowSelect;
173
- }
174
- }
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/web-components';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,25 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
3
- /**
4
- * @summary Spinners are used to show the progress of an indeterminate operation.
5
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/spinner
6
- * @status stable
7
- * @since 2.0
8
- *
9
- * @csspart base - The component's base wrapper.
10
- *
11
- * @cssproperty --track-width - The width of the track.
12
- * @cssproperty --track-color - The color of the track.
13
- * @cssproperty --indicator-color - The color of the spinner's indicator.
14
- * @cssproperty --speed - The time it takes for the spinner to complete one animation cycle.
15
- */
16
- export default class FlowSpinner extends FlowRdfElement {
17
- static styles: CSSResultGroup;
18
- private readonly localize;
19
- render(): import("lit").TemplateResult<1>;
20
- }
21
- declare global {
22
- interface HTMLElementTagNameMap {
23
- 'flow-ui-spinner': FlowSpinner;
24
- }
25
- }
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/web-components';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,74 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
3
- /**
4
- * @summary Split panels display two adjacent panels, allowing the user to reposition them.
5
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/split-panel
6
- * @status stable
7
- * @since 2.0
8
- *
9
- * @event flow-ui-reposition - Emitted when the divider's position changes.
10
- *
11
- * @slot start - Content to place in the start panel.
12
- * @slot end - Content to place in the end panel.
13
- * @slot divider - The divider. Useful for slotting in a custom icon that renders as a handle.
14
- *
15
- * @csspart start - The start panel.
16
- * @csspart end - The end panel.
17
- * @csspart panel - Targets both the start and end panels.
18
- * @csspart divider - The divider that separates the start and end panels.
19
- *
20
- * @cssproperty [--divider-width=4px] - The width of the visible divider.
21
- * @cssproperty [--divider-hit-area=12px] - The invisible region around the divider where dragging can occur. This is
22
- * usually wider than the divider to facilitate easier dragging.
23
- * @cssproperty [--min=0] - The minimum allowed size of the primary panel.
24
- * @cssproperty [--max=100%] - The maximum allowed size of the primary panel.
25
- */
26
- export default class FlowSplitPanel extends FlowRdfElement {
27
- static styles: CSSResultGroup;
28
- private cachedPositionInPixels;
29
- private readonly localize;
30
- private resizeObserver;
31
- private size;
32
- divider: HTMLElement;
33
- /**
34
- * The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the
35
- * container's initial size.
36
- */
37
- position: number;
38
- /** The current position of the divider from the primary panel's edge in pixels. */
39
- positionInPixels: number;
40
- /** Draws the split panel in a vertical orientation with the start and end panels stacked. */
41
- vertical: boolean;
42
- /** Disables resizing. Note that the position may still change as a result of resizing the host element. */
43
- disabled: boolean;
44
- /**
45
- * If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a
46
- * primary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the
47
- * host element is resized.
48
- */
49
- primary?: 'start' | 'end';
50
- /**
51
- * One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g.
52
- * `"100px 50%"`.
53
- */
54
- snap?: string;
55
- /** How close the divider must be to a snap point until snapping occurs. */
56
- snapThreshold: number;
57
- connectedCallback(): void;
58
- disconnectedCallback(): void;
59
- private detectSize;
60
- private percentageToPixels;
61
- private pixelsToPercentage;
62
- private handleDrag;
63
- private handleKeyDown;
64
- private handleResize;
65
- handlePositionChange(): void;
66
- handlePositionInPixelsChange(): void;
67
- handleVerticalChange(): void;
68
- render(): import("lit").TemplateResult<1>;
69
- }
70
- declare global {
71
- interface HTMLElementTagNameMap {
72
- 'flow-ui-split-panel': FlowSplitPanel;
73
- }
74
- }
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/web-components';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,86 +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 Switches allow the user to toggle an option on or off.
6
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/switch
7
- * @status stable
8
- * @since 2.0
9
- *
10
- * @slot - The switch's label.
11
- *
12
- * @event flow-ui-blur - Emitted when the control loses focus.
13
- * @event flow-ui-change - Emitted when the control's checked state changes.
14
- * @event flow-ui-input - Emitted when the control receives input.
15
- * @event flow-ui-focus - Emitted when the control gains focus.
16
- * @event flow-ui-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
17
- *
18
- * @csspart base - The component's base wrapper.
19
- * @csspart control - The control that houses the switch's thumb.
20
- * @csspart thumb - The switch's thumb.
21
- * @csspart label - The switch's label.
22
- *
23
- * @cssproperty --width - The width of the switch.
24
- * @cssproperty --height - The height of the switch.
25
- * @cssproperty --thumb-size - The size of the thumb.
26
- */
27
- export default class FlowSwitch extends FlowRdfElement implements FlowRdfFormControl {
28
- static styles: CSSResultGroup;
29
- private readonly formControlController;
30
- input: HTMLInputElement;
31
- private hasFocus;
32
- title: string;
33
- /** The name of the switch, submitted as a name/value pair with form data. */
34
- name: string;
35
- /** The current value of the switch, submitted as a name/value pair with form data. */
36
- value: string;
37
- /** The switch's size. */
38
- size: 'small' | 'medium' | 'large';
39
- /** Disables the switch. */
40
- disabled: boolean;
41
- /** Draws the switch in a checked state. */
42
- checked: boolean;
43
- /** The default value of the form control. Primarily used for resetting the form control. */
44
- defaultChecked: boolean;
45
- /**
46
- * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
47
- * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
48
- * the same document or shadow root for this to work.
49
- */
50
- form: string;
51
- /** Makes the switch a required field. */
52
- required: boolean;
53
- /** Gets the validity state object */
54
- get validity(): ValidityState;
55
- /** Gets the validation message */
56
- get validationMessage(): string;
57
- firstUpdated(): void;
58
- private handleBlur;
59
- private handleInput;
60
- private handleInvalid;
61
- private handleClick;
62
- private handleFocus;
63
- private handleKeyDown;
64
- handleCheckedChange(): void;
65
- handleDisabledChange(): void;
66
- /** Simulates a click on the switch. */
67
- click(): void;
68
- /** Sets focus on the switch. */
69
- focus(options?: FocusOptions): void;
70
- /** Removes focus from the switch. */
71
- blur(): void;
72
- /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
73
- checkValidity(): boolean;
74
- /** Gets the associated form, if one exists. */
75
- getForm(): HTMLFormElement | null;
76
- /** Checks for validity and shows the browser's validation message if the control is invalid. */
77
- reportValidity(): boolean;
78
- /** Sets a custom validation message. Pass an empty string to restore validity. */
79
- setCustomValidity(message: string): void;
80
- render(): import("lit").TemplateResult<1>;
81
- }
82
- declare global {
83
- interface HTMLElementTagNameMap {
84
- 'flow-ui-switch': FlowSwitch;
85
- }
86
- }
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/web-components';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,47 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
3
- /**
4
- * @summary Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).
5
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tab
6
- * @status stable
7
- * @since 2.0
8
- *
9
- * @dependency flow-ui-icon-button
10
- *
11
- * @slot - The tab's label.
12
- *
13
- * @event flow-ui-close - Emitted when the tab is closable and the close button is activated.
14
- *
15
- * @csspart base - The component's base wrapper.
16
- * @csspart close-button - The close button, an `<flow-ui-icon-button>`.
17
- * @csspart close-button__base - The close button's exported `base` part.
18
- */
19
- export default class FlowTab extends FlowRdfElement {
20
- static styles: CSSResultGroup;
21
- private readonly localize;
22
- private readonly attrId;
23
- private readonly componentId;
24
- tab: HTMLElement;
25
- /** The name of the tab panel this tab is associated with. The panel must be located in the same tab group. */
26
- panel: string;
27
- /** Draws the tab in an active state. */
28
- active: boolean;
29
- /** Makes the tab closable and shows a close button. */
30
- closable: boolean;
31
- /** Disables the tab and prevents selection. */
32
- disabled: boolean;
33
- connectedCallback(): void;
34
- private handleCloseClick;
35
- handleActiveChange(): void;
36
- handleDisabledChange(): void;
37
- /** Sets focus to the tab. */
38
- focus(options?: FocusOptions): void;
39
- /** Removes focus from the tab. */
40
- blur(): void;
41
- render(): import("lit").TemplateResult<1>;
42
- }
43
- declare global {
44
- interface HTMLElementTagNameMap {
45
- 'flow-ui-tab': FlowTab;
46
- }
47
- }
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,76 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
3
- /**
4
- * @summary Tab groups organize content into a container that shows one section at a time.
5
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tab-group
6
- * @status stable
7
- * @since 2.0
8
- *
9
- * @dependency flow-ui-icon-button
10
- *
11
- * @slot - Used for grouping tab panels in the tab group. Must be `<flow-ui-tab-panel>` elements.
12
- * @slot nav - Used for grouping tabs in the tab group. Must be `<flow-ui-tab>` elements.
13
- *
14
- * @event {{ name: String }} flow-ui-tab-show - Emitted when a tab is shown.
15
- * @event {{ name: String }} flow-ui-tab-hide - Emitted when a tab is hidden.
16
- *
17
- * @csspart base - The component's base wrapper.
18
- * @csspart nav - The tab group's navigation container where tabs are slotted in.
19
- * @csspart tabs - The container that wraps the tabs.
20
- * @csspart active-tab-indicator - The line that highlights the currently selected tab.
21
- * @csspart body - The tab group's body where tab panels are slotted in.
22
- * @csspart scroll-button - The previous/next scroll buttons that show when tabs are scrollable, an `<flow-ui-icon-button>`.
23
- * @csspart scroll-button--start - The starting scroll button.
24
- * @csspart scroll-button--end - The ending scroll button.
25
- * @csspart scroll-button__base - The scroll button's exported `base` part.
26
- *
27
- * @cssproperty --indicator-color - The color of the active tab indicator.
28
- * @cssproperty --track-color - The color of the indicator's track (the line that separates tabs from panels).
29
- * @cssproperty --track-width - The width of the indicator's track (the line that separates tabs from panels).
30
- */
31
- export default class FlowTabGroup extends FlowRdfElement {
32
- static styles: CSSResultGroup;
33
- private readonly localize;
34
- private activeTab?;
35
- private mutationObserver;
36
- private resizeObserver;
37
- private tabs;
38
- private panels;
39
- tabGroup: HTMLElement;
40
- body: HTMLSlotElement;
41
- nav: HTMLElement;
42
- indicator: HTMLElement;
43
- private hasScrollControls;
44
- /** The placement of the tabs. */
45
- placement: 'top' | 'bottom' | 'start' | 'end';
46
- /**
47
- * When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to
48
- * manual, the tab will receive focus but will not show until the user presses spacebar or enter.
49
- */
50
- activation: 'auto' | 'manual';
51
- /** Disables the scroll arrows that appear when tabs overflow. */
52
- noScrollControls: boolean;
53
- connectedCallback(): void;
54
- disconnectedCallback(): void;
55
- private getAllTabs;
56
- private getAllPanels;
57
- private getActiveTab;
58
- private handleClick;
59
- private handleKeyDown;
60
- private handleScrollToStart;
61
- private handleScrollToEnd;
62
- private setActiveTab;
63
- private setAriaLabels;
64
- private repositionIndicator;
65
- private syncTabsAndPanels;
66
- updateScrollControls(): void;
67
- syncIndicator(): void;
68
- /** Shows the specified tab panel. */
69
- show(panel: string): void;
70
- render(): import("lit").TemplateResult<1>;
71
- }
72
- declare global {
73
- interface HTMLElementTagNameMap {
74
- 'flow-ui-tab-group': FlowTabGroup;
75
- }
76
- }
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/web-components';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,31 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
3
- /**
4
- * @summary Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.
5
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tab-panel
6
- * @status stable
7
- * @since 2.0
8
- *
9
- * @slot - The tab panel's content.
10
- *
11
- * @csspart base - The component's base wrapper.
12
- *
13
- * @cssproperty --padding - The tab panel's padding.
14
- */
15
- export default class FlowTabPanel extends FlowRdfElement {
16
- static styles: CSSResultGroup;
17
- private readonly attrId;
18
- private readonly componentId;
19
- /** The tab panel's name. */
20
- name: string;
21
- /** When true, the tab panel will be shown. */
22
- active: boolean;
23
- connectedCallback(): void;
24
- handleActiveChange(): void;
25
- render(): import("lit").TemplateResult<1>;
26
- }
27
- declare global {
28
- interface HTMLElementTagNameMap {
29
- 'flow-ui-tab-panel': FlowTabPanel;
30
- }
31
- }
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
@@ -1,38 +0,0 @@
1
- import type { CSSResultGroup } from 'lit';
2
- import FlowRdfElement from '../../internal/flow-ui-rdf-element';
3
- /**
4
- * @summary Tags are used as labels to organize things or to indicate a selection.
5
- * @documentation https://developer.emu-analytics.net/docs/flow-ui-rdf/components/tag
6
- * @status stable
7
- * @since 2.0
8
- *
9
- * @dependency flow-ui-icon-button
10
- *
11
- * @slot - The tag's content.
12
- *
13
- * @event flow-ui-remove - Emitted when the remove button is activated.
14
- *
15
- * @csspart base - The component's base wrapper.
16
- * @csspart content - The tag's content.
17
- * @csspart remove-button - The tag's remove button, an `<flow-ui-icon-button>`.
18
- * @csspart remove-button__base - The remove button's exported `base` part.
19
- */
20
- export default class FlowTag extends FlowRdfElement {
21
- static styles: CSSResultGroup;
22
- private readonly localize;
23
- /** The tag's theme variant. */
24
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
25
- /** The tag's size. */
26
- size: 'small' | 'medium' | 'large';
27
- /** Draws a pill-style tag with rounded edges. */
28
- pill: boolean;
29
- /** Makes the tag removable and shows a remove button. */
30
- removable: boolean;
31
- private handleRemoveClick;
32
- render(): import("lit").TemplateResult<1>;
33
- }
34
- declare global {
35
- interface HTMLElementTagNameMap {
36
- 'flow-ui-tag': FlowTag;
37
- }
38
- }
@@ -1,5 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/web-components';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj;
5
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;