@emuanalytics/flow-rdf-ui 4.4.1 → 5.0.0
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/components/icon/library.mjs +3 -3
- package/dist/components/tab/tab.styles.mjs +2 -0
- package/dist/components/tab-group/tab-group.styles.mjs +3 -2
- package/dist/components/tree/tree.component.mjs +887 -272
- package/dist/components/tree/tree.styles.mjs +126 -20
- package/dist/components/tree-item/tree-item.component.mjs +27 -289
- package/dist/custom-elements.json +1786 -1278
- package/dist/index.d.mts +464 -306
- package/dist/index.d.ts +464 -306
- package/dist/package.json.mjs +1 -1
- package/dist/vscode.html-custom-data.json +154 -142
- package/package.json +1 -1
- package/dist/components/tree-item/tree-item.styles.mjs +0 -182
- package/themes/dark-new.css +0 -723
- package/themes/dark-new.styles.js +0 -745
package/dist/package.json.mjs
CHANGED
|
@@ -36,37 +36,101 @@
|
|
|
36
36
|
"references": []
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"name": "flow-ui-
|
|
40
|
-
"description": "
|
|
39
|
+
"name": "flow-ui-badge",
|
|
40
|
+
"description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
41
41
|
"attributes": [
|
|
42
42
|
{
|
|
43
|
-
"name": "
|
|
44
|
-
"description": "The
|
|
43
|
+
"name": "variant",
|
|
44
|
+
"description": "The badge's theme variant.",
|
|
45
|
+
"values": [
|
|
46
|
+
{ "name": "primary" },
|
|
47
|
+
{ "name": "secondary" },
|
|
48
|
+
{ "name": "success" },
|
|
49
|
+
{ "name": "neutral" },
|
|
50
|
+
{ "name": "warning" },
|
|
51
|
+
{ "name": "danger" }
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "size",
|
|
56
|
+
"description": "The badge size.",
|
|
57
|
+
"values": [
|
|
58
|
+
{ "name": "small" },
|
|
59
|
+
{ "name": "medium" },
|
|
60
|
+
{ "name": "large" }
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "pill",
|
|
65
|
+
"description": "Draws a pill-style badge with rounded edges.",
|
|
45
66
|
"values": []
|
|
46
67
|
},
|
|
47
68
|
{
|
|
48
|
-
"name": "
|
|
49
|
-
"description": "
|
|
69
|
+
"name": "pulse",
|
|
70
|
+
"description": "Makes the badge pulsate to draw attention.",
|
|
71
|
+
"values": []
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"references": []
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "flow-ui-animation",
|
|
78
|
+
"description": "Animate elements declaratively with over 100 animation presets. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-cancel** - Emitted when the animation is canceled.\n- **flow-ui-finish** - Emitted when the animation finishes.\n- **flow-ui-start** - Emitted when the animation starts or restarts.\n\n### **Methods:**\n - **cancel()** - Clears all keyframe effects caused by this animation and aborts its playback.\n- **finish()** - Sets the playback time to the end of the animation corresponding to the current playback direction.\n\n### **Slots:**\n - _default_ - The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<flow-ui-animation>` elements.",
|
|
79
|
+
"attributes": [
|
|
80
|
+
{
|
|
81
|
+
"name": "name",
|
|
82
|
+
"description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.\nUse `getAnimationNames()` to retrieve a list of available animations.",
|
|
50
83
|
"values": []
|
|
51
84
|
},
|
|
52
85
|
{
|
|
53
|
-
"name": "
|
|
54
|
-
"description": "
|
|
86
|
+
"name": "play",
|
|
87
|
+
"description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.",
|
|
55
88
|
"values": []
|
|
56
89
|
},
|
|
57
90
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"description": "
|
|
60
|
-
"values": [
|
|
91
|
+
"name": "delay",
|
|
92
|
+
"description": "The number of milliseconds to delay the start of the animation.",
|
|
93
|
+
"values": []
|
|
61
94
|
},
|
|
62
95
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"description": "
|
|
65
|
-
"values": [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
96
|
+
"name": "direction",
|
|
97
|
+
"description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)",
|
|
98
|
+
"values": [{ "name": "PlaybackDirection" }]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "duration",
|
|
102
|
+
"description": "The number of milliseconds each iteration of the animation takes to complete.",
|
|
103
|
+
"values": []
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "easing",
|
|
107
|
+
"description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.",
|
|
108
|
+
"values": []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "end-delay",
|
|
112
|
+
"description": "The number of milliseconds to delay after the active period of an animation sequence.",
|
|
113
|
+
"values": []
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "fill",
|
|
117
|
+
"description": "Sets how the animation applies styles to its target before and after its execution.",
|
|
118
|
+
"values": [{ "name": "FillMode" }]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "iterations",
|
|
122
|
+
"description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.",
|
|
123
|
+
"values": []
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "iteration-start",
|
|
127
|
+
"description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).",
|
|
128
|
+
"values": []
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "playback-rate",
|
|
132
|
+
"description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.",
|
|
133
|
+
"values": []
|
|
70
134
|
}
|
|
71
135
|
],
|
|
72
136
|
"references": []
|
|
@@ -175,106 +239,6 @@
|
|
|
175
239
|
],
|
|
176
240
|
"references": []
|
|
177
241
|
},
|
|
178
|
-
{
|
|
179
|
-
"name": "flow-ui-badge",
|
|
180
|
-
"description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
181
|
-
"attributes": [
|
|
182
|
-
{
|
|
183
|
-
"name": "variant",
|
|
184
|
-
"description": "The badge's theme variant.",
|
|
185
|
-
"values": [
|
|
186
|
-
{ "name": "primary" },
|
|
187
|
-
{ "name": "secondary" },
|
|
188
|
-
{ "name": "success" },
|
|
189
|
-
{ "name": "neutral" },
|
|
190
|
-
{ "name": "warning" },
|
|
191
|
-
{ "name": "danger" }
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "size",
|
|
196
|
-
"description": "The badge size.",
|
|
197
|
-
"values": [
|
|
198
|
-
{ "name": "small" },
|
|
199
|
-
{ "name": "medium" },
|
|
200
|
-
{ "name": "large" }
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "pill",
|
|
205
|
-
"description": "Draws a pill-style badge with rounded edges.",
|
|
206
|
-
"values": []
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "pulse",
|
|
210
|
-
"description": "Makes the badge pulsate to draw attention.",
|
|
211
|
-
"values": []
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"references": []
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"name": "flow-ui-animation",
|
|
218
|
-
"description": "Animate elements declaratively with over 100 animation presets. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-cancel** - Emitted when the animation is canceled.\n- **flow-ui-finish** - Emitted when the animation finishes.\n- **flow-ui-start** - Emitted when the animation starts or restarts.\n\n### **Methods:**\n - **cancel()** - Clears all keyframe effects caused by this animation and aborts its playback.\n- **finish()** - Sets the playback time to the end of the animation corresponding to the current playback direction.\n\n### **Slots:**\n - _default_ - The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<flow-ui-animation>` elements.",
|
|
219
|
-
"attributes": [
|
|
220
|
-
{
|
|
221
|
-
"name": "name",
|
|
222
|
-
"description": "The name of the built-in animation to use. For custom animations, use the `keyframes` prop.\nUse `getAnimationNames()` to retrieve a list of available animations.",
|
|
223
|
-
"values": []
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "play",
|
|
227
|
-
"description": "Plays the animation. When omitted, the animation will be paused. This attribute will be automatically removed when\nthe animation finishes or gets canceled.",
|
|
228
|
-
"values": []
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"name": "delay",
|
|
232
|
-
"description": "The number of milliseconds to delay the start of the animation.",
|
|
233
|
-
"values": []
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"name": "direction",
|
|
237
|
-
"description": "Determines the direction of playback as well as the behavior when reaching the end of an iteration.\n[Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction)",
|
|
238
|
-
"values": [{ "name": "PlaybackDirection" }]
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"name": "duration",
|
|
242
|
-
"description": "The number of milliseconds each iteration of the animation takes to complete.",
|
|
243
|
-
"values": []
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"name": "easing",
|
|
247
|
-
"description": "The easing function to use for the animation. This can be a Shoelace easing function or a custom easing function\nsuch as `cubic-bezier(0, 1, .76, 1.14)`.",
|
|
248
|
-
"values": []
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"name": "end-delay",
|
|
252
|
-
"description": "The number of milliseconds to delay after the active period of an animation sequence.",
|
|
253
|
-
"values": []
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "fill",
|
|
257
|
-
"description": "Sets how the animation applies styles to its target before and after its execution.",
|
|
258
|
-
"values": [{ "name": "FillMode" }]
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "iterations",
|
|
262
|
-
"description": "The number of iterations to run before the animation completes. Defaults to `Infinity`, which loops.",
|
|
263
|
-
"values": []
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"name": "iteration-start",
|
|
267
|
-
"description": "The offset at which to start the animation, usually between 0 (start) and 1 (end).",
|
|
268
|
-
"values": []
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "playback-rate",
|
|
272
|
-
"description": "Sets the animation's playback rate. The default is `1`, which plays the animation at a normal speed. Setting this\nto `2`, for example, will double the animation's speed. A negative value can be used to reverse the animation. This\nvalue can be changed without causing the animation to restart.",
|
|
273
|
-
"values": []
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"references": []
|
|
277
|
-
},
|
|
278
242
|
{
|
|
279
243
|
"name": "flow-ui-base-control",
|
|
280
244
|
"description": "Inputs collect data from the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-blur** - Emitted when the control loses focus.\n- **flow-ui-change** - Emitted when an alteration to the control's value is committed by the user.\n- **flow-ui-clear** - Emitted when the clear button is activated.\n- **flow-ui-focus** - Emitted when the control gains focus.\n- **flow-ui-input** - Emitted when the control receives input.\n- **flow-ui-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.",
|
|
@@ -336,6 +300,42 @@
|
|
|
336
300
|
],
|
|
337
301
|
"references": []
|
|
338
302
|
},
|
|
303
|
+
{
|
|
304
|
+
"name": "flow-ui-avatar",
|
|
305
|
+
"description": "Avatars are used to represent a person or object.\n\n\n---\n\n\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.",
|
|
306
|
+
"attributes": [
|
|
307
|
+
{
|
|
308
|
+
"name": "image",
|
|
309
|
+
"description": "The image source to use for the avatar.",
|
|
310
|
+
"values": []
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "label",
|
|
314
|
+
"description": "A label to use to describe the avatar to assistive devices.",
|
|
315
|
+
"values": []
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "initials",
|
|
319
|
+
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
320
|
+
"values": []
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "loading",
|
|
324
|
+
"description": "Indicates how the browser should load the image.",
|
|
325
|
+
"values": [{ "name": "eager" }, { "name": "lazy" }]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "shape",
|
|
329
|
+
"description": "The shape of the avatar.",
|
|
330
|
+
"values": [
|
|
331
|
+
{ "name": "circle" },
|
|
332
|
+
{ "name": "square" },
|
|
333
|
+
{ "name": "rounded" }
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"references": []
|
|
338
|
+
},
|
|
339
339
|
{
|
|
340
340
|
"name": "flow-ui-breadcrumb-item",
|
|
341
341
|
"description": "Breadcrumb Items are used inside [breadcrumbs](./flow-ui-breadcrumb) to represent different links.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The breadcrumb item's label.\n- **prefix** - An optional prefix, usually an icon or icon button.\n- **suffix** - An optional suffix, usually an icon or icon button.\n- **separator** - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<flow-ui-breadcrumb>` instead.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The breadcrumb item's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.\n- **separator** - The container that wraps the separator.",
|
|
@@ -3704,75 +3704,87 @@
|
|
|
3704
3704
|
},
|
|
3705
3705
|
{
|
|
3706
3706
|
"name": "flow-ui-tree",
|
|
3707
|
-
"description": "Trees allow
|
|
3707
|
+
"description": "Trees allow users to expand, collapse and select a hierarchy of nodes, given as data or as\n[tree items](./flow-ui-tree-item).\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-input** - Emitted when the selection changes by UI interaction or `selectAll()`.\n- **flow-ui-change** - Emitted when the selection changes by UI interaction or `selectAll()`.\n- **flow-ui-node-toggle** - Emitted when the user expands or collapses a node. The node ID and its new state can be retrieved from the event `detail` property.\n- **flow-ui-node-lazy-load** - Emitted when the user expands a lazy node. Replace the node in `nodes` with one that has its children and is not `lazy`: its row shows a spinner until then. With tree items, the item emits `flow-ui-lazy-load` too.\n- **flow-ui-visible-change** - Emitted when the rendered rows change. The IDs of their nodes can be retrieved from the event `detail` property: use them to supply the row slots' content with `row-slots`.\n\n### **Methods:**\n - **checkState(id: _string_): _FlowTreeCheckState_** - Returns the check state of a node. In multiple selection, a parent's state is derived from its selected leaves;\nan unknown ID is `unchecked`.\n- **expandAll()** - Expands every parent node.\n- **collapseAll()** - Collapses every parent node.\n- **selectAll(select)** - Selects every enabled leaf, or, with `select` set to `false`, deselects every leaf. While filtering, only the\nleaves the filter shows are selected or deselected.\n- **scrollToNode(id: _string_, { block = 'center' }: _{ block?: 'center' | 'nearest' }_)** - Expands the node's ancestors, scrolls its row into view (in the tree, or in the elements that scroll the tree) and\nmakes it the active row. Returns a promise that resolves to `true` when the row is in view, or to `false`, without\nscrolling, if the node is not in the tree or the filter hides it.\n- **focus(options: _FocusOptions_)** - Sets focus on the tree.\n\n### **Slots:**\n - _default_ - The tree's [tree items](./flow-ui-tree-item), read as its nodes while `nodes` is not set.\n- **<node-id>** - With `row-slots`, each rendered row has a slot named after its node ID, for content at the end of the row. The slot exists only while the row is rendered: listen to `flow-ui-visible-change`.\n\n### **CSS Properties:**\n - **--default-width** - The tree's width where its container sizes to its content, such as a flex row or an inline block. It does not depend on the tree's nodes. _(default: 15rem)_\n- **--indent-size** - The indentation of each level. Defaults to `--flow-ui-spacing-medium` when `size` is `small`. _(default: var(--flow-ui-spacing-large))_\n- **--selected-background-color** - The background color of the selected row in single and leaf selection. _(default: var(--flow-ui-color-neutral-100))_\n- **--selected-marker-color** - The color of the selected row's marker, at its start, in single and leaf selection. _(default: var(--flow-ui-color-primary-500))_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper (`role=\"tree\"`).\n- **row** - Each rendered row (`role=\"treeitem\"`).\n- **label** - The row's label.",
|
|
3708
3708
|
"attributes": [
|
|
3709
3709
|
{
|
|
3710
3710
|
"name": "value",
|
|
3711
|
-
"description": "The
|
|
3711
|
+
"description": "The selected node IDs, or tree item values. In multiple selection, these are the selected leaves: a parent ID set\nhere selects the parent's leaves. In single and leaf selection, it holds the one selected node. The attribute is\na space-separated list, so IDs used in it must not contain spaces. Note that tree items without a `value` can be\nselected but never appear here.",
|
|
3712
3712
|
"values": [{ "name": "string[]" }]
|
|
3713
3713
|
},
|
|
3714
3714
|
{
|
|
3715
3715
|
"name": "selection-mode",
|
|
3716
|
-
"description": "The selection
|
|
3717
|
-
"values": [
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3716
|
+
"description": "The selection mode. See [FlowTreeSelectionMode](../public-api/type-aliases/FlowTreeSelectionMode).",
|
|
3717
|
+
"values": [{ "name": "FlowTreeSelectionMode" }]
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
"name": "filter",
|
|
3721
|
+
"description": "The text to filter by. The tree shows only the leaves whose label contains it (ignoring case), with their\nancestors, expanded. If not set, every node is shown.",
|
|
3722
|
+
"values": []
|
|
3723
|
+
},
|
|
3724
|
+
{
|
|
3725
|
+
"name": "row-height",
|
|
3726
|
+
"description": "The height of every row, in pixels. If not set, it is 24, 28 or 36 pixels for the small, medium and large sizes.",
|
|
3727
|
+
"values": []
|
|
3728
|
+
},
|
|
3729
|
+
{
|
|
3730
|
+
"name": "overscan",
|
|
3731
|
+
"description": "The number of rows rendered above and below the rows in view.",
|
|
3732
|
+
"values": []
|
|
3722
3733
|
},
|
|
3723
3734
|
{
|
|
3724
3735
|
"name": "size",
|
|
3725
|
-
"description": "The
|
|
3736
|
+
"description": "The tree's size. It sets the font size, the indentation and the default `rowHeight`.",
|
|
3726
3737
|
"values": [
|
|
3727
3738
|
{ "name": "small" },
|
|
3728
3739
|
{ "name": "medium" },
|
|
3729
3740
|
{ "name": "large" }
|
|
3730
3741
|
]
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"name": "row-slots",
|
|
3745
|
+
"description": "Set to `true` to render a `<slot name=\"<node id>\">` at the end of each rendered row, for content you supply. See\n`flow-ui-visible-change`.",
|
|
3746
|
+
"values": []
|
|
3731
3747
|
}
|
|
3732
3748
|
],
|
|
3733
3749
|
"references": []
|
|
3734
3750
|
},
|
|
3735
3751
|
{
|
|
3736
3752
|
"name": "flow-ui-tree-item",
|
|
3737
|
-
"description": "
|
|
3753
|
+
"description": "Tree items are used with [trees](./flow-ui-tree) to write the tree's nodes as markup.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-expand** - Emitted when the user expands the item.\n- **flow-ui-after-expand** - Emitted after the item expands and the tree has drawn its child rows.\n- **flow-ui-collapse** - Emitted when the user collapses the item.\n- **flow-ui-after-collapse** - Emitted after the item collapses and the tree has removed its child rows.\n- **flow-ui-lazy-load** - Emitted when the user expands a lazy item. Use this event to load the item's children: append its child items, then remove the `lazy` attribute. The tree shows a spinner until then.\n\n### **Slots:**\n - _default_ - The tree item's label and its child items.",
|
|
3738
3754
|
"attributes": [
|
|
3739
3755
|
{
|
|
3740
3756
|
"name": "value",
|
|
3741
|
-
"description": "The
|
|
3757
|
+
"description": "The item's value, which is its node ID. The tree's `value` holds it while the item is selected. It must be unique\nin the tree and must not contain spaces, which separate the values in the tree's `value` attribute. If not set,\nthe item can still be selected, but does not appear in the tree's `value`.",
|
|
3742
3758
|
"values": []
|
|
3743
3759
|
},
|
|
3744
3760
|
{
|
|
3745
3761
|
"name": "expanded",
|
|
3746
|
-
"description": "
|
|
3762
|
+
"description": "Indicates whether the item is expanded. Toggle this attribute to expand or collapse the item. The tree updates it\nwhen the user expands or collapses the item.",
|
|
3747
3763
|
"values": []
|
|
3748
3764
|
},
|
|
3749
3765
|
{
|
|
3750
3766
|
"name": "selected",
|
|
3751
|
-
"description": "
|
|
3767
|
+
"description": "Indicates whether the item is selected. Toggle this attribute to select or deselect the item, or, in multiple\nselection, a parent's leaves. The tree updates it when the selection changes: in multiple selection, a parent is\nselected when all its enabled leaves are.",
|
|
3752
3768
|
"values": []
|
|
3753
3769
|
},
|
|
3754
3770
|
{
|
|
3755
3771
|
"name": "disabled",
|
|
3756
|
-
"description": "Disables the
|
|
3772
|
+
"description": "Disables the item, so that it cannot be selected.",
|
|
3757
3773
|
"values": []
|
|
3758
3774
|
},
|
|
3759
3775
|
{
|
|
3760
3776
|
"name": "lazy",
|
|
3761
|
-
"description": "
|
|
3777
|
+
"description": "Set to `true` to mark the item as having child items that are not loaded yet. See `flow-ui-lazy-load`.",
|
|
3762
3778
|
"values": []
|
|
3763
3779
|
},
|
|
3764
3780
|
{
|
|
3765
|
-
"name": "
|
|
3766
|
-
"description": "The
|
|
3767
|
-
"values": [
|
|
3768
|
-
{ "name": "small" },
|
|
3769
|
-
{ "name": "medium" },
|
|
3770
|
-
{ "name": "large" }
|
|
3771
|
-
]
|
|
3781
|
+
"name": "icon",
|
|
3782
|
+
"description": "The name of a `flow-ui-icon` to show before the label.",
|
|
3783
|
+
"values": []
|
|
3772
3784
|
},
|
|
3773
3785
|
{
|
|
3774
|
-
"name": "
|
|
3775
|
-
"description": "
|
|
3786
|
+
"name": "icon-library",
|
|
3787
|
+
"description": "The icon library of `icon`. If not set, the default library is used.",
|
|
3776
3788
|
"values": []
|
|
3777
3789
|
}
|
|
3778
3790
|
],
|
package/package.json
CHANGED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
-
|
|
4
|
-
const styles = css`
|
|
5
|
-
${componentStyles}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
display: block;
|
|
9
|
-
outline: 0;
|
|
10
|
-
z-index: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host(:focus) {
|
|
14
|
-
outline: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
slot:not([name])::slotted(flow-ui-icon) {
|
|
18
|
-
margin-inline-end: var(--flow-ui-spacing-x-small);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tree-item {
|
|
22
|
-
position: relative;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: stretch;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
color: var(--flow-ui-color-neutral-900);
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
user-select: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.tree-item__checkbox {
|
|
32
|
-
pointer-events: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.tree-item__expand-button,
|
|
36
|
-
.tree-item__checkbox,
|
|
37
|
-
.tree-item__label {
|
|
38
|
-
font-family: var(--flow-ui-font-sans);
|
|
39
|
-
font-size: var(--flow-ui-font-size-medium);
|
|
40
|
-
font-weight: var(--flow-ui-font-weight-normal);
|
|
41
|
-
line-height: var(--flow-ui-line-height-dense);
|
|
42
|
-
letter-spacing: var(--flow-ui-letter-spacing-normal);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.tree-item--small .tree-item__expand-button,
|
|
46
|
-
.tree-item--small .tree-item__checkbox,
|
|
47
|
-
.tree-item--small .tree-item__label {
|
|
48
|
-
font-size: var(--flow-ui-font-size-small);
|
|
49
|
-
line-height: var(--flow-ui-line-height-denser);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.tree-item--small .tree-item__expand-button {
|
|
53
|
-
padding: var(--flow-ui-spacing-2x-small);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.tree-item--large .tree-item__expand-button,
|
|
57
|
-
.tree-item--large .tree-item__checkbox,
|
|
58
|
-
.tree-item--large .tree-item__label {
|
|
59
|
-
font-size: var(--flow-ui-font-size-large);
|
|
60
|
-
line-height: var(--flow-ui-line-height-normal);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.tree-item__checkbox::part(base) {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
margin-right: var(--flow-ui-spacing-x-small);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.tree-item__indentation {
|
|
70
|
-
display: block;
|
|
71
|
-
width: 1em;
|
|
72
|
-
flex-shrink: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.tree-item__expand-button {
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
box-sizing: content-box;
|
|
80
|
-
color: var(--flow-ui-color-neutral-800);
|
|
81
|
-
padding: var(--flow-ui-spacing-x-small);
|
|
82
|
-
width: 1rem;
|
|
83
|
-
height: 1rem;
|
|
84
|
-
flex-shrink: 0;
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.tree-item__expand-button {
|
|
89
|
-
transition: var(--flow-ui-transition-medium) rotate ease;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.tree-item--expanded .tree-item__expand-button {
|
|
93
|
-
rotate: 90deg;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.tree-item--expanded.tree-item--rtl .tree-item__expand-button {
|
|
97
|
-
rotate: -90deg;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.tree-item--expanded slot[name='expand-icon'],
|
|
101
|
-
.tree-item:not(.tree-item--expanded) slot[name='collapse-icon'] {
|
|
102
|
-
display: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot {
|
|
106
|
-
display: none;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.tree-item.tree-item--hidden {
|
|
110
|
-
display: none;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.tree-item__expand-button--visible {
|
|
114
|
-
cursor: pointer;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.tree-item__item {
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
border-inline-start: solid 3px transparent;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.tree-item--disabled .tree-item__item {
|
|
124
|
-
opacity: 0.5;
|
|
125
|
-
outline: none;
|
|
126
|
-
cursor: not-allowed;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:host(:focus-visible) .tree-item__item {
|
|
130
|
-
outline: var(--flow-ui-focus-ring);
|
|
131
|
-
outline-offset: var(--flow-ui-focus-ring-offset);
|
|
132
|
-
z-index: 2;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
|
|
136
|
-
background-color: var(--selected-background-color);
|
|
137
|
-
border-inline-start-color: var(--selected-marker-color);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
:host(:not([aria-disabled='true'])) .tree-item__expand-button {
|
|
141
|
-
color: var(--flow-ui-color-neutral-800);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.tree-item__label {
|
|
145
|
-
display: flex;
|
|
146
|
-
align-items: center;
|
|
147
|
-
transition: var(--flow-ui-transition-fast) color;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.tree-item__children {
|
|
151
|
-
display: block;
|
|
152
|
-
font-size: calc(1em + var(--indent-size, var(--flow-ui-spacing-medium)));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/* Indentation lines */
|
|
156
|
-
.tree-item__children {
|
|
157
|
-
position: relative;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.tree-item__children::before {
|
|
161
|
-
content: '';
|
|
162
|
-
position: absolute;
|
|
163
|
-
top: var(--indent-guide-offset);
|
|
164
|
-
bottom: var(--indent-guide-offset);
|
|
165
|
-
left: calc(1em - (var(--indent-guide-width) / 2) - 1px);
|
|
166
|
-
border-inline-end: var(--indent-guide-width) var(--indent-guide-style) var(--indent-guide-color);
|
|
167
|
-
z-index: 1;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.tree-item--rtl .tree-item__children::before {
|
|
171
|
-
left: auto;
|
|
172
|
-
right: 1em;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@media (forced-colors: active) {
|
|
176
|
-
:host(:not([aria-disabled='true'])) .tree-item--selected .tree-item__item {
|
|
177
|
-
outline: dashed 1px SelectedItem;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
`;
|
|
181
|
-
|
|
182
|
-
export { styles as default };
|