@emuanalytics/flow-rdf-ui 4.1.6 → 4.1.7
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/autocomplete/autocomplete.component.mjs +49 -41
- package/dist/components/autocomplete/autocomplete.styles.mjs +1 -1
- package/dist/custom-elements.json +145 -127
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/package.json.mjs +1 -1
- package/dist/vscode.html-custom-data.json +17 -12
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { html, nothing } from 'lit';
|
|
|
2
2
|
import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
3
3
|
import { property, state, query } from 'lit/decorators.js';
|
|
4
4
|
import { FormControlController } from '../../internal/form.mjs';
|
|
5
|
-
import { debounce } from '@emuanalytics/flow-rdf-core/utils';
|
|
5
|
+
import { debounce, isStringFull } from '@emuanalytics/flow-rdf-core/utils';
|
|
6
6
|
import { watch } from '../../internal/watch.mjs';
|
|
7
7
|
import { boolean } from '../../internal/boolean.mjs';
|
|
8
8
|
import { classMap } from 'lit-html/directives/class-map.js';
|
|
@@ -56,6 +56,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
56
56
|
this.displayWith = (value) => value;
|
|
57
57
|
this.debounceDelay = 0;
|
|
58
58
|
this.clearable = false;
|
|
59
|
+
this.clearOnFocus = false;
|
|
59
60
|
this.inputText = "";
|
|
60
61
|
this.open = false;
|
|
61
62
|
this.selectedOption = null;
|
|
@@ -78,6 +79,8 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
78
79
|
this.inline = boolean(this.inline, true);
|
|
79
80
|
this.divider = boolean(this.divider, true);
|
|
80
81
|
this.clearable = boolean(this.clearable, true);
|
|
82
|
+
this.hoist = boolean(this.hoist, true);
|
|
83
|
+
this.clearOnFocus = boolean(this.clearOnFocus, true);
|
|
81
84
|
}
|
|
82
85
|
/** Gets the associated form, if one exists. */
|
|
83
86
|
getForm() {
|
|
@@ -187,10 +190,12 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
187
190
|
event.preventDefault();
|
|
188
191
|
}
|
|
189
192
|
/** @internal Handle the `mousedown` event from the clear button */
|
|
190
|
-
handleClearMouseDown(event) {
|
|
193
|
+
async handleClearMouseDown(event) {
|
|
191
194
|
event.stopPropagation();
|
|
192
195
|
event.preventDefault();
|
|
193
|
-
this.setValue("", { emitInputEvent: true });
|
|
196
|
+
this.setValue("", { emitInputEvent: true, emitChangeEvent: true });
|
|
197
|
+
await waitForEvent(this, "flow-ui-input");
|
|
198
|
+
this.hasOptions = false;
|
|
194
199
|
this.input.focus({ preventScroll: true });
|
|
195
200
|
}
|
|
196
201
|
/** @internal Handle option selection when an option is clicked on */
|
|
@@ -328,6 +333,14 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
328
333
|
this.hasFocus = true;
|
|
329
334
|
this.input.focus({ preventScroll: true });
|
|
330
335
|
this.emit("flow-ui-focus");
|
|
336
|
+
if (this.clearOnFocus) {
|
|
337
|
+
if (isStringFull(this.value)) {
|
|
338
|
+
this.setValue("", { emitInputEvent: true, emitChangeEvent: true });
|
|
339
|
+
} else {
|
|
340
|
+
this.inputText = "";
|
|
341
|
+
}
|
|
342
|
+
this.hasOptions = false;
|
|
343
|
+
}
|
|
331
344
|
this.toggleListbox();
|
|
332
345
|
this.addListenersForDropdown();
|
|
333
346
|
}
|
|
@@ -374,8 +387,8 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
374
387
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
375
388
|
const hasLabel = !!this.label || !!hasLabelSlot;
|
|
376
389
|
const hasHelpText = !!this.helpText || !!hasHelpTextSlot;
|
|
377
|
-
const hasClearIcon = this.clearable && this.value
|
|
378
|
-
const isPlaceholderVisible = this.placeholder && this.inputText
|
|
390
|
+
const hasClearIcon = this.clearable && isStringFull(this.value) && !this.disabled;
|
|
391
|
+
const isPlaceholderVisible = this.placeholder && isStringFull(this.inputText) === false;
|
|
379
392
|
const horizontalPlacement = this.inline ? "end" : "start";
|
|
380
393
|
const placement = `${this.placement}-${horizontalPlacement}`;
|
|
381
394
|
const strategy = this.inline || this.hoist ? "fixed" : "absolute";
|
|
@@ -398,12 +411,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
398
411
|
"form-control--pill": this.pill
|
|
399
412
|
})}
|
|
400
413
|
>
|
|
401
|
-
<label
|
|
402
|
-
id="label"
|
|
403
|
-
part="label"
|
|
404
|
-
class="form-control__label"
|
|
405
|
-
aria-hidden=${hasLabel ? "false" : "true"}
|
|
406
|
-
>
|
|
414
|
+
<label id="label" part="label" class="form-control__label" aria-hidden=${hasLabel ? "false" : "true"}>
|
|
407
415
|
<slot name="label">${this.label}</slot>
|
|
408
416
|
</label>
|
|
409
417
|
|
|
@@ -416,10 +424,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
416
424
|
<slot name="help-text">${this.helpText}</slot>
|
|
417
425
|
</div>
|
|
418
426
|
|
|
419
|
-
<div
|
|
420
|
-
part="control"
|
|
421
|
-
class="form-control__input"
|
|
422
|
-
>
|
|
427
|
+
<div part="control" class="form-control__input">
|
|
423
428
|
<flow-ui-popup
|
|
424
429
|
class=${classMap({
|
|
425
430
|
autocomplete: true,
|
|
@@ -475,7 +480,7 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
475
480
|
.value=${this.inputText}
|
|
476
481
|
?disabled=${this.disabled}
|
|
477
482
|
@focus=${this.handleInputFocus}
|
|
478
|
-
@blur=${this.handleInputBlur}
|
|
483
|
+
@blur=${this.handleInputBlur}
|
|
479
484
|
@input=${this.handleInput}
|
|
480
485
|
@change=${this.handleInputChange}
|
|
481
486
|
/>
|
|
@@ -483,36 +488,36 @@ class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
483
488
|
</div>
|
|
484
489
|
|
|
485
490
|
${hasClearIcon ? html`
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
491
|
+
<button
|
|
492
|
+
part="clear-button"
|
|
493
|
+
class="autocomplete__clear"
|
|
494
|
+
type="button"
|
|
495
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
496
|
+
@mousedown=${this.handleClearMouseDown}
|
|
497
|
+
@click=${this.handleClearClick}
|
|
498
|
+
tabindex="-1"
|
|
499
|
+
>
|
|
500
|
+
<slot name="clear-icon">
|
|
501
|
+
<flow-ui-icon name="x-circle-fill" library="system"></flow-ui-icon>
|
|
502
|
+
</slot>
|
|
503
|
+
</button>
|
|
504
|
+
` : nothing}
|
|
505
|
+
|
|
501
506
|
<slot part="suffix" name="suffix" class="autocomplete__suffix"></slot>
|
|
502
507
|
</div>
|
|
503
508
|
|
|
504
509
|
<div
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
510
|
+
id="listbox"
|
|
511
|
+
role="listbox"
|
|
512
|
+
part="listbox"
|
|
513
|
+
class="autocomplete__listbox"
|
|
514
|
+
aria-labelledby="label"
|
|
515
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
516
|
+
aria-multiselectable="false"
|
|
517
|
+
@mouseup=${this.handleListboxClick}
|
|
518
|
+
@slotchange=${this.handleDefaultSlotChange}
|
|
514
519
|
>
|
|
515
|
-
|
|
520
|
+
<slot></slot>
|
|
516
521
|
</div>
|
|
517
522
|
</flow-ui-popup>
|
|
518
523
|
</div>
|
|
@@ -578,6 +583,9 @@ __decorateClass([
|
|
|
578
583
|
__decorateClass([
|
|
579
584
|
property({ type: Boolean, reflect: true })
|
|
580
585
|
], FlowUiAutocomplete.prototype, "clearable", 2);
|
|
586
|
+
__decorateClass([
|
|
587
|
+
property({ type: Boolean, reflect: true, attribute: "clear-on-focus" })
|
|
588
|
+
], FlowUiAutocomplete.prototype, "clearOnFocus", 2);
|
|
581
589
|
__decorateClass([
|
|
582
590
|
state()
|
|
583
591
|
], FlowUiAutocomplete.prototype, "inputText", 2);
|
|
@@ -177,7 +177,7 @@ const styles = css`
|
|
|
177
177
|
border: none;
|
|
178
178
|
background: none;
|
|
179
179
|
padding: 0;
|
|
180
|
-
margin-inline-
|
|
180
|
+
margin-inline-end: var(--control-spacing);
|
|
181
181
|
transition: var(--flow-ui-transition-fast) color;
|
|
182
182
|
cursor: pointer;
|
|
183
183
|
}
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
"kind": "field",
|
|
958
958
|
"name": "debouncedInput",
|
|
959
959
|
"type": {
|
|
960
|
-
"text": "(
|
|
960
|
+
"text": "(displayValue: string) => void"
|
|
961
961
|
},
|
|
962
962
|
"privacy": "private"
|
|
963
963
|
},
|
|
@@ -1148,7 +1148,6 @@
|
|
|
1148
1148
|
"type": {
|
|
1149
1149
|
"text": "((value: string) => string) | ((value: string) => Promise<string>)"
|
|
1150
1150
|
},
|
|
1151
|
-
"default": "(value => value)",
|
|
1152
1151
|
"description": "Function for determining the `displayValue` for a given `value`.\nBy default, it will show the `value` itself.",
|
|
1153
1152
|
"attribute": "displayWith"
|
|
1154
1153
|
},
|
|
@@ -1174,6 +1173,17 @@
|
|
|
1174
1173
|
"attribute": "clearable",
|
|
1175
1174
|
"reflects": true
|
|
1176
1175
|
},
|
|
1176
|
+
{
|
|
1177
|
+
"kind": "field",
|
|
1178
|
+
"name": "clearOnFocus",
|
|
1179
|
+
"type": {
|
|
1180
|
+
"text": "boolean"
|
|
1181
|
+
},
|
|
1182
|
+
"default": "false",
|
|
1183
|
+
"description": "Clear the value when the autocomplete is focused on",
|
|
1184
|
+
"attribute": "clear-on-focus",
|
|
1185
|
+
"reflects": true
|
|
1186
|
+
},
|
|
1177
1187
|
{
|
|
1178
1188
|
"kind": "field",
|
|
1179
1189
|
"name": "inputText",
|
|
@@ -1514,7 +1524,6 @@
|
|
|
1514
1524
|
"type": {
|
|
1515
1525
|
"text": "((value: string) => string) | ((value: string) => Promise<string>)"
|
|
1516
1526
|
},
|
|
1517
|
-
"default": "(value => value)",
|
|
1518
1527
|
"description": "Function for determining the `displayValue` for a given `value`.\nBy default, it will show the `value` itself.",
|
|
1519
1528
|
"fieldName": "displayWith"
|
|
1520
1529
|
},
|
|
@@ -1535,6 +1544,15 @@
|
|
|
1535
1544
|
"default": "false",
|
|
1536
1545
|
"description": "Show the option to clear input",
|
|
1537
1546
|
"fieldName": "clearable"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"name": "clear-on-focus",
|
|
1550
|
+
"type": {
|
|
1551
|
+
"text": "boolean"
|
|
1552
|
+
},
|
|
1553
|
+
"default": "false",
|
|
1554
|
+
"description": "Clear the value when the autocomplete is focused on",
|
|
1555
|
+
"fieldName": "clearOnFocus"
|
|
1538
1556
|
}
|
|
1539
1557
|
],
|
|
1540
1558
|
"superclass": {
|
|
@@ -1584,6 +1602,129 @@
|
|
|
1584
1602
|
}
|
|
1585
1603
|
]
|
|
1586
1604
|
},
|
|
1605
|
+
{
|
|
1606
|
+
"kind": "javascript-module",
|
|
1607
|
+
"path": "components/breadcrumb/breadcrumb.component.js",
|
|
1608
|
+
"declarations": [
|
|
1609
|
+
{
|
|
1610
|
+
"kind": "class",
|
|
1611
|
+
"description": "",
|
|
1612
|
+
"name": "FlowUiBreadcrumb",
|
|
1613
|
+
"cssParts": [
|
|
1614
|
+
{
|
|
1615
|
+
"description": "The component's base wrapper.",
|
|
1616
|
+
"name": "base"
|
|
1617
|
+
}
|
|
1618
|
+
],
|
|
1619
|
+
"slots": [
|
|
1620
|
+
{
|
|
1621
|
+
"description": "One or more breadcrumb items to display.",
|
|
1622
|
+
"name": ""
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"description": "The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.",
|
|
1626
|
+
"name": "separator"
|
|
1627
|
+
}
|
|
1628
|
+
],
|
|
1629
|
+
"members": [
|
|
1630
|
+
{
|
|
1631
|
+
"kind": "field",
|
|
1632
|
+
"name": "localize",
|
|
1633
|
+
"privacy": "private",
|
|
1634
|
+
"readonly": true,
|
|
1635
|
+
"default": "new LocalizeController(this)"
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
"kind": "field",
|
|
1639
|
+
"name": "separatorDir",
|
|
1640
|
+
"privacy": "private"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"kind": "field",
|
|
1644
|
+
"name": "defaultSlot",
|
|
1645
|
+
"type": {
|
|
1646
|
+
"text": "HTMLSlotElement"
|
|
1647
|
+
},
|
|
1648
|
+
"privacy": "private"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"kind": "field",
|
|
1652
|
+
"name": "separatorSlot",
|
|
1653
|
+
"type": {
|
|
1654
|
+
"text": "HTMLSlotElement"
|
|
1655
|
+
},
|
|
1656
|
+
"privacy": "private"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"kind": "field",
|
|
1660
|
+
"name": "label",
|
|
1661
|
+
"type": {
|
|
1662
|
+
"text": "string"
|
|
1663
|
+
},
|
|
1664
|
+
"default": "''",
|
|
1665
|
+
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
1666
|
+
"attribute": "label"
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"kind": "method",
|
|
1670
|
+
"name": "getSeparator",
|
|
1671
|
+
"privacy": "private"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"kind": "method",
|
|
1675
|
+
"name": "handleSlotChange",
|
|
1676
|
+
"privacy": "private"
|
|
1677
|
+
}
|
|
1678
|
+
],
|
|
1679
|
+
"attributes": [
|
|
1680
|
+
{
|
|
1681
|
+
"name": "label",
|
|
1682
|
+
"type": {
|
|
1683
|
+
"text": "string"
|
|
1684
|
+
},
|
|
1685
|
+
"default": "''",
|
|
1686
|
+
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
1687
|
+
"fieldName": "label"
|
|
1688
|
+
}
|
|
1689
|
+
],
|
|
1690
|
+
"superclass": {
|
|
1691
|
+
"name": "FlowRdfElement",
|
|
1692
|
+
"module": "/src/internal/flow-ui-rdf-element"
|
|
1693
|
+
},
|
|
1694
|
+
"tagName": "flow-ui-breadcrumb",
|
|
1695
|
+
"summary": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.",
|
|
1696
|
+
"dependencies": [
|
|
1697
|
+
"flow-ui-icon"
|
|
1698
|
+
],
|
|
1699
|
+
"customElement": true
|
|
1700
|
+
}
|
|
1701
|
+
],
|
|
1702
|
+
"exports": [
|
|
1703
|
+
{
|
|
1704
|
+
"kind": "js",
|
|
1705
|
+
"name": "default",
|
|
1706
|
+
"declaration": {
|
|
1707
|
+
"name": "FlowUiBreadcrumb",
|
|
1708
|
+
"module": "components/breadcrumb/breadcrumb.component.js"
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
]
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"kind": "javascript-module",
|
|
1715
|
+
"path": "components/breadcrumb/breadcrumb.js",
|
|
1716
|
+
"declarations": [],
|
|
1717
|
+
"exports": [
|
|
1718
|
+
{
|
|
1719
|
+
"kind": "js",
|
|
1720
|
+
"name": "default",
|
|
1721
|
+
"declaration": {
|
|
1722
|
+
"name": "FlowUiBreadcrumb",
|
|
1723
|
+
"module": "components/breadcrumb/breadcrumb.js"
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1587
1728
|
{
|
|
1588
1729
|
"kind": "javascript-module",
|
|
1589
1730
|
"path": "components/base-control/base-control.component.js",
|
|
@@ -2184,129 +2325,6 @@
|
|
|
2184
2325
|
}
|
|
2185
2326
|
]
|
|
2186
2327
|
},
|
|
2187
|
-
{
|
|
2188
|
-
"kind": "javascript-module",
|
|
2189
|
-
"path": "components/breadcrumb/breadcrumb.component.js",
|
|
2190
|
-
"declarations": [
|
|
2191
|
-
{
|
|
2192
|
-
"kind": "class",
|
|
2193
|
-
"description": "",
|
|
2194
|
-
"name": "FlowUiBreadcrumb",
|
|
2195
|
-
"cssParts": [
|
|
2196
|
-
{
|
|
2197
|
-
"description": "The component's base wrapper.",
|
|
2198
|
-
"name": "base"
|
|
2199
|
-
}
|
|
2200
|
-
],
|
|
2201
|
-
"slots": [
|
|
2202
|
-
{
|
|
2203
|
-
"description": "One or more breadcrumb items to display.",
|
|
2204
|
-
"name": ""
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
"description": "The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.",
|
|
2208
|
-
"name": "separator"
|
|
2209
|
-
}
|
|
2210
|
-
],
|
|
2211
|
-
"members": [
|
|
2212
|
-
{
|
|
2213
|
-
"kind": "field",
|
|
2214
|
-
"name": "localize",
|
|
2215
|
-
"privacy": "private",
|
|
2216
|
-
"readonly": true,
|
|
2217
|
-
"default": "new LocalizeController(this)"
|
|
2218
|
-
},
|
|
2219
|
-
{
|
|
2220
|
-
"kind": "field",
|
|
2221
|
-
"name": "separatorDir",
|
|
2222
|
-
"privacy": "private"
|
|
2223
|
-
},
|
|
2224
|
-
{
|
|
2225
|
-
"kind": "field",
|
|
2226
|
-
"name": "defaultSlot",
|
|
2227
|
-
"type": {
|
|
2228
|
-
"text": "HTMLSlotElement"
|
|
2229
|
-
},
|
|
2230
|
-
"privacy": "private"
|
|
2231
|
-
},
|
|
2232
|
-
{
|
|
2233
|
-
"kind": "field",
|
|
2234
|
-
"name": "separatorSlot",
|
|
2235
|
-
"type": {
|
|
2236
|
-
"text": "HTMLSlotElement"
|
|
2237
|
-
},
|
|
2238
|
-
"privacy": "private"
|
|
2239
|
-
},
|
|
2240
|
-
{
|
|
2241
|
-
"kind": "field",
|
|
2242
|
-
"name": "label",
|
|
2243
|
-
"type": {
|
|
2244
|
-
"text": "string"
|
|
2245
|
-
},
|
|
2246
|
-
"default": "''",
|
|
2247
|
-
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
2248
|
-
"attribute": "label"
|
|
2249
|
-
},
|
|
2250
|
-
{
|
|
2251
|
-
"kind": "method",
|
|
2252
|
-
"name": "getSeparator",
|
|
2253
|
-
"privacy": "private"
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
"kind": "method",
|
|
2257
|
-
"name": "handleSlotChange",
|
|
2258
|
-
"privacy": "private"
|
|
2259
|
-
}
|
|
2260
|
-
],
|
|
2261
|
-
"attributes": [
|
|
2262
|
-
{
|
|
2263
|
-
"name": "label",
|
|
2264
|
-
"type": {
|
|
2265
|
-
"text": "string"
|
|
2266
|
-
},
|
|
2267
|
-
"default": "''",
|
|
2268
|
-
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
2269
|
-
"fieldName": "label"
|
|
2270
|
-
}
|
|
2271
|
-
],
|
|
2272
|
-
"superclass": {
|
|
2273
|
-
"name": "FlowRdfElement",
|
|
2274
|
-
"module": "/src/internal/flow-ui-rdf-element"
|
|
2275
|
-
},
|
|
2276
|
-
"tagName": "flow-ui-breadcrumb",
|
|
2277
|
-
"summary": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.",
|
|
2278
|
-
"dependencies": [
|
|
2279
|
-
"flow-ui-icon"
|
|
2280
|
-
],
|
|
2281
|
-
"customElement": true
|
|
2282
|
-
}
|
|
2283
|
-
],
|
|
2284
|
-
"exports": [
|
|
2285
|
-
{
|
|
2286
|
-
"kind": "js",
|
|
2287
|
-
"name": "default",
|
|
2288
|
-
"declaration": {
|
|
2289
|
-
"name": "FlowUiBreadcrumb",
|
|
2290
|
-
"module": "components/breadcrumb/breadcrumb.component.js"
|
|
2291
|
-
}
|
|
2292
|
-
}
|
|
2293
|
-
]
|
|
2294
|
-
},
|
|
2295
|
-
{
|
|
2296
|
-
"kind": "javascript-module",
|
|
2297
|
-
"path": "components/breadcrumb/breadcrumb.js",
|
|
2298
|
-
"declarations": [],
|
|
2299
|
-
"exports": [
|
|
2300
|
-
{
|
|
2301
|
-
"kind": "js",
|
|
2302
|
-
"name": "default",
|
|
2303
|
-
"declaration": {
|
|
2304
|
-
"name": "FlowUiBreadcrumb",
|
|
2305
|
-
"module": "components/breadcrumb/breadcrumb.js"
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2308
|
-
]
|
|
2309
|
-
},
|
|
2310
2328
|
{
|
|
2311
2329
|
"kind": "javascript-module",
|
|
2312
2330
|
"path": "components/breadcrumb-item/breadcrumb-item.component.js",
|
|
@@ -25718,6 +25736,6 @@
|
|
|
25718
25736
|
],
|
|
25719
25737
|
"package": {
|
|
25720
25738
|
"name": "@emuanalytics/flow-rdf-ui",
|
|
25721
|
-
"version": "4.1.
|
|
25739
|
+
"version": "4.1.7"
|
|
25722
25740
|
}
|
|
25723
25741
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -2032,6 +2032,8 @@ declare class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
2032
2032
|
debounceDelay: number;
|
|
2033
2033
|
/** Show the option to clear input */
|
|
2034
2034
|
clearable: boolean;
|
|
2035
|
+
/** Clear the value when the autocomplete is focused on */
|
|
2036
|
+
clearOnFocus: boolean;
|
|
2035
2037
|
/** Current value displayed by the control; this can be what the user is typing or the label of the selected option */
|
|
2036
2038
|
private inputText;
|
|
2037
2039
|
/** @internal Is the listbox open or not */
|
|
@@ -2093,7 +2095,7 @@ declare class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
2093
2095
|
private handleInputBlur;
|
|
2094
2096
|
handleClearClick(event: MouseEvent): void;
|
|
2095
2097
|
/** @internal Handle the `mousedown` event from the clear button */
|
|
2096
|
-
handleClearMouseDown(event: MouseEvent): void
|
|
2098
|
+
handleClearMouseDown(event: MouseEvent): Promise<void>;
|
|
2097
2099
|
/** @internal Handle option selection when an option is clicked on */
|
|
2098
2100
|
private handleListboxClick;
|
|
2099
2101
|
/** @internal Handle mouse and keyboard events in the document, outside the control. */
|
package/dist/index.d.ts
CHANGED
|
@@ -2032,6 +2032,8 @@ declare class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
2032
2032
|
debounceDelay: number;
|
|
2033
2033
|
/** Show the option to clear input */
|
|
2034
2034
|
clearable: boolean;
|
|
2035
|
+
/** Clear the value when the autocomplete is focused on */
|
|
2036
|
+
clearOnFocus: boolean;
|
|
2035
2037
|
/** Current value displayed by the control; this can be what the user is typing or the label of the selected option */
|
|
2036
2038
|
private inputText;
|
|
2037
2039
|
/** @internal Is the listbox open or not */
|
|
@@ -2093,7 +2095,7 @@ declare class FlowUiAutocomplete extends FlowRdfFormControl {
|
|
|
2093
2095
|
private handleInputBlur;
|
|
2094
2096
|
handleClearClick(event: MouseEvent): void;
|
|
2095
2097
|
/** @internal Handle the `mousedown` event from the clear button */
|
|
2096
|
-
handleClearMouseDown(event: MouseEvent): void
|
|
2098
|
+
handleClearMouseDown(event: MouseEvent): Promise<void>;
|
|
2097
2099
|
/** @internal Handle option selection when an option is clicked on */
|
|
2098
2100
|
private handleListboxClick;
|
|
2099
2101
|
/** @internal Handle mouse and keyboard events in the document, outside the control. */
|
package/dist/package.json.mjs
CHANGED
|
@@ -228,6 +228,23 @@
|
|
|
228
228
|
"name": "clearable",
|
|
229
229
|
"description": "Show the option to clear input",
|
|
230
230
|
"values": []
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "clear-on-focus",
|
|
234
|
+
"description": "Clear the value when the autocomplete is focused on",
|
|
235
|
+
"values": []
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"references": []
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "flow-ui-breadcrumb",
|
|
242
|
+
"description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
243
|
+
"attributes": [
|
|
244
|
+
{
|
|
245
|
+
"name": "label",
|
|
246
|
+
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
247
|
+
"values": []
|
|
231
248
|
}
|
|
232
249
|
],
|
|
233
250
|
"references": []
|
|
@@ -331,18 +348,6 @@
|
|
|
331
348
|
],
|
|
332
349
|
"references": []
|
|
333
350
|
},
|
|
334
|
-
{
|
|
335
|
-
"name": "flow-ui-breadcrumb",
|
|
336
|
-
"description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
337
|
-
"attributes": [
|
|
338
|
-
{
|
|
339
|
-
"name": "label",
|
|
340
|
-
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
341
|
-
"values": []
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"references": []
|
|
345
|
-
},
|
|
346
351
|
{
|
|
347
352
|
"name": "flow-ui-breadcrumb-item",
|
|
348
353
|
"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.",
|