@threadlabs/looma 0.1.24 → 0.1.26
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/{chunk-IMHSPETJ.js → chunk-XRJRF3MM.js} +33 -32
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/looma.cjs.js +1 -1
- package/dist/cjs/{ui-combobox.cjs.entry.js → ui-chip_2.cjs.entry.js} +29 -4
- package/dist/cjs/ui-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ui-disclosure.cjs.entry.js +1 -1
- package/dist/cjs/ui-editable.cjs.entry.js +100 -0
- package/dist/cjs/ui-floating-action-button.cjs.entry.js +1 -1
- package/dist/cjs/ui-form-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ui-input.cjs.entry.js +1 -1
- package/dist/cjs/ui-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-menu.cjs.entry.js +1 -1
- package/dist/cjs/ui-multi-combobox.cjs.entry.js +190 -0
- package/dist/cjs/ui-popover.cjs.entry.js +1 -1
- package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ui-radio.cjs.entry.js +1 -1
- package/dist/cjs/ui-search-result-row.cjs.entry.js +1 -1
- package/dist/cjs/ui-search-shell.cjs.entry.js +1 -1
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +2 -2
- package/dist/cjs/ui-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ui-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ui-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-tree.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ui-chip/ui-chip.css +4 -0
- package/dist/collection/components/ui-chip/ui-chip.js +23 -1
- package/dist/collection/components/ui-combobox/ui-combobox.js +49 -4
- package/dist/collection/components/ui-context-menu/ui-context-menu.js +1 -1
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-disclosure/ui-disclosure.js +1 -1
- package/dist/collection/components/ui-editable/ui-editable.css +2 -0
- package/dist/collection/components/ui-editable/ui-editable.js +196 -0
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +1 -1
- package/dist/collection/components/ui-form-field/ui-form-field.js +1 -1
- package/dist/collection/components/ui-icon-button/ui-icon-button.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-menu/ui-menu.js +1 -1
- package/dist/collection/components/ui-menu-item/ui-menu-item.js +1 -1
- package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.css +29 -0
- package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.js +553 -0
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-radio/ui-radio.js +1 -1
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +1 -1
- package/dist/collection/components/ui-search-shell/ui-search-shell.js +1 -1
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +2 -2
- package/dist/collection/components/ui-tabs/ui-tabs.js +1 -1
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-toast-region/ui-toast-region.js +1 -1
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/collection/components/ui-top-bar/ui-top-bar.js +1 -1
- package/dist/collection/components/ui-tree/ui-tree.js +1 -1
- package/dist/collection/components/ui-tree-item/ui-tree-item.js +2 -2
- package/dist/collection/field/editable.js +1 -0
- package/dist/collection/field/multi-combobox.js +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DIGcRYAW.js → p-B9CzOHvE.js} +1 -1
- package/dist/components/p-BMgIcOh-.js +1 -0
- package/dist/components/p-BVteuP_d.js +1 -0
- package/dist/components/{p-Bk55QiUK.js → p-C6p-ygxq.js} +1 -1
- package/dist/components/ui-chip.js +1 -1
- package/dist/components/ui-combobox.js +1 -1
- package/dist/components/ui-context-menu.js +1 -1
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-disclosure.js +1 -1
- package/dist/components/ui-editable.d.ts +11 -0
- package/dist/components/ui-editable.js +1 -0
- package/dist/components/ui-floating-action-button.js +1 -1
- package/dist/components/ui-form-field.js +1 -1
- package/dist/components/ui-icon-button.js +1 -1
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-menu-item.js +1 -1
- package/dist/components/ui-menu.js +1 -1
- package/dist/components/ui-multi-combobox.d.ts +11 -0
- package/dist/components/ui-multi-combobox.js +1 -0
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-radio.js +1 -1
- package/dist/components/ui-search-result-row.js +1 -1
- package/dist/components/ui-search-shell.js +1 -1
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-toast-region.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/components/ui-top-bar.js +1 -1
- package/dist/components/ui-tree-item.js +1 -1
- package/dist/components/ui-tree.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/looma.js +1 -1
- package/dist/esm/{ui-combobox.entry.js → ui-chip_2.entry.js} +30 -6
- package/dist/esm/ui-context-menu.entry.js +1 -1
- package/dist/esm/ui-dialog.entry.js +1 -1
- package/dist/esm/ui-disclosure.entry.js +1 -1
- package/dist/esm/ui-editable.entry.js +98 -0
- package/dist/esm/ui-floating-action-button.entry.js +1 -1
- package/dist/esm/ui-form-field.entry.js +1 -1
- package/dist/esm/ui-icon-button.entry.js +1 -1
- package/dist/esm/ui-input.entry.js +1 -1
- package/dist/esm/ui-menu-item.entry.js +1 -1
- package/dist/esm/ui-menu.entry.js +1 -1
- package/dist/esm/ui-multi-combobox.entry.js +188 -0
- package/dist/esm/ui-popover.entry.js +1 -1
- package/dist/esm/ui-radio-group.entry.js +1 -1
- package/dist/esm/ui-radio.entry.js +1 -1
- package/dist/esm/ui-search-result-row.entry.js +1 -1
- package/dist/esm/ui-search-shell.entry.js +1 -1
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +2 -2
- package/dist/esm/ui-tabs.entry.js +1 -1
- package/dist/esm/ui-textarea.entry.js +1 -1
- package/dist/esm/ui-toast-region.entry.js +1 -1
- package/dist/esm/ui-tooltip.entry.js +1 -1
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-tree-item.entry.js +2 -2
- package/dist/esm/ui-tree.entry.js +1 -1
- package/dist/index.cjs +368 -63
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +2 -2
- package/dist/looma/looma.esm.js +1 -1
- package/dist/looma/p-05592219.entry.js +1 -0
- package/dist/looma/{p-314d5c7c.entry.js → p-0e1741cb.entry.js} +1 -1
- package/dist/looma/{p-bd00d4e8.entry.js → p-0ef4bf13.entry.js} +1 -1
- package/dist/looma/{p-8e254bc4.entry.js → p-166f8593.entry.js} +1 -1
- package/dist/looma/p-262a542c.entry.js +1 -0
- package/dist/looma/{p-672e3d16.entry.js → p-26d357ae.entry.js} +1 -1
- package/dist/looma/{p-b63f6d4f.entry.js → p-30f01909.entry.js} +1 -1
- package/dist/looma/p-393e3e02.entry.js +1 -0
- package/dist/looma/p-3a44b9f9.entry.js +1 -0
- package/dist/looma/{p-fd1e4d22.entry.js → p-558d4f5b.entry.js} +1 -1
- package/dist/looma/{p-25e18ad6.entry.js → p-5780cefa.entry.js} +1 -1
- package/dist/looma/p-5a7261e1.entry.js +1 -0
- package/dist/looma/{p-03f44c45.entry.js → p-7319c147.entry.js} +1 -1
- package/dist/looma/{p-f1750fd7.entry.js → p-78b7e466.entry.js} +1 -1
- package/dist/looma/{p-7c4a225f.entry.js → p-7eb04f09.entry.js} +1 -1
- package/dist/looma/{p-e0f241ab.entry.js → p-81c533f5.entry.js} +1 -1
- package/dist/looma/{p-8e6b1001.entry.js → p-87f501cf.entry.js} +1 -1
- package/dist/looma/{p-cc915913.entry.js → p-89e71bbb.entry.js} +1 -1
- package/dist/looma/{p-a63e2561.entry.js → p-92cd1841.entry.js} +1 -1
- package/dist/looma/{p-5a900d89.entry.js → p-95eb3b58.entry.js} +1 -1
- package/dist/looma/{p-839faf55.entry.js → p-96ec4d7a.entry.js} +1 -1
- package/dist/looma/{p-2c03fa73.entry.js → p-bcb1b47b.entry.js} +1 -1
- package/dist/looma/{p-68430534.entry.js → p-d62da01d.entry.js} +1 -1
- package/dist/looma/{p-13f8195a.entry.js → p-dbcb479c.entry.js} +1 -1
- package/dist/looma/{p-920656cf.entry.js → p-e14024bf.entry.js} +1 -1
- package/dist/looma/{p-3ef2a21b.entry.js → p-fc180770.entry.js} +1 -1
- package/dist/types/components/ui-chip/ui-chip.d.ts +2 -0
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +4 -0
- package/dist/types/components/ui-editable/ui-editable.d.ts +24 -0
- package/dist/types/components/ui-multi-combobox/ui-multi-combobox.d.ts +51 -0
- package/dist/types/components.d.ts +244 -0
- package/dist/types/field/editable.d.ts +5 -0
- package/dist/types/field/multi-combobox.d.ts +11 -0
- package/dist/{ui-affordance-scope.entry-3TUZ6GLW.js → ui-affordance-scope.entry-6N4ZQ5FM.js} +1 -1
- package/dist/{ui-avatar-group.entry-XGJKN25W.js → ui-avatar-group.entry-FTZVEFGI.js} +1 -1
- package/dist/{ui-avatar.entry-SN3G44HW.js → ui-avatar.entry-SST735OH.js} +1 -1
- package/dist/{ui-badge.entry-B6WDCWJX.js → ui-badge.entry-DZGS7MUT.js} +1 -1
- package/dist/{ui-button.entry-AZYUELLV.js → ui-button.entry-5WX56ARJ.js} +1 -1
- package/dist/{ui-callout.entry-QRPWRMPC.js → ui-callout.entry-OI5RNRXV.js} +1 -1
- package/dist/{ui-checkbox.entry-OB6GFC4M.js → ui-checkbox.entry-HCGIQPSE.js} +1 -1
- package/dist/{ui-combobox.entry-IIMMUJF7.js → ui-chip_2.entry-G2IGWJTL.js} +32 -7
- package/dist/{ui-context-menu.entry-AIULIE5Y.js → ui-context-menu.entry-K2LRT2WV.js} +2 -2
- package/dist/{ui-dialog.entry-QSYWYHLY.js → ui-dialog.entry-4W2T27R6.js} +2 -2
- package/dist/{ui-disclosure.entry-3BJEYU3U.js → ui-disclosure.entry-ONYMXRKR.js} +2 -2
- package/dist/ui-editable.entry-4ZHXIOER.js +110 -0
- package/dist/{ui-floating-action-button.entry-JEVNV6FI.js → ui-floating-action-button.entry-XU4JO2ZV.js} +2 -2
- package/dist/{ui-form-field.entry-PKSY7UU4.js → ui-form-field.entry-BZSEWR4A.js} +2 -2
- package/dist/{ui-icon-button.entry-TPX7BE7R.js → ui-icon-button.entry-MHJKL5OZ.js} +2 -2
- package/dist/{ui-input.entry-6NCLNW4E.js → ui-input.entry-BL6EX3GC.js} +2 -2
- package/dist/{ui-menu-item.entry-KA2K3PKV.js → ui-menu-item.entry-LERF3A4G.js} +2 -2
- package/dist/{ui-menu.entry-7GDO5L2T.js → ui-menu.entry-WXDYGFJE.js} +2 -2
- package/dist/ui-multi-combobox.entry-WSNWVRXE.js +196 -0
- package/dist/{ui-popover.entry-FR6YRNK6.js → ui-popover.entry-P6STTQVS.js} +2 -2
- package/dist/{ui-radio-group.entry-7QHXQSNO.js → ui-radio-group.entry-GZLHOY2M.js} +2 -2
- package/dist/{ui-radio.entry-YNMXKLDW.js → ui-radio.entry-4PXIRDKT.js} +2 -2
- package/dist/{ui-search-result-row.entry-AHVVAAIO.js → ui-search-result-row.entry-LHNOT7MK.js} +2 -2
- package/dist/{ui-search-shell.entry-CNBEAMEZ.js → ui-search-shell.entry-GQCMEU2Z.js} +2 -2
- package/dist/{ui-select.entry-TUY6TCTC.js → ui-select.entry-TZU7XX4U.js} +2 -2
- package/dist/{ui-switch.entry-26LFI7B5.js → ui-switch.entry-QFH3YDYP.js} +3 -3
- package/dist/{ui-tabs.entry-LXB62RJJ.js → ui-tabs.entry-A57JVDT2.js} +2 -2
- package/dist/{ui-textarea.entry-JYGMGPX2.js → ui-textarea.entry-L3RLZIGO.js} +2 -2
- package/dist/{ui-toast-region.entry-TOW4KZLZ.js → ui-toast-region.entry-XKKEY4K7.js} +2 -2
- package/dist/{ui-tooltip.entry-SKFNYXPH.js → ui-tooltip.entry-5WQTX7XF.js} +2 -2
- package/dist/{ui-top-bar.entry-S3YP52EA.js → ui-top-bar.entry-KMJEFYOM.js} +2 -2
- package/dist/{ui-tree-item.entry-LWYIPYLC.js → ui-tree-item.entry-TUBC57FI.js} +3 -3
- package/dist/{ui-tree.entry-LXKUQFRU.js → ui-tree.entry-Y75CRURL.js} +2 -2
- package/package.json +1 -1
- package/vue/{chunk-D4AJULDE.js → chunk-2DDIBSFD.js} +87 -1
- package/vue/editor/index.js +1 -1
- package/vue/index.d.ts +127 -2
- package/vue/index.js +5 -1
- package/dist/cjs/ui-chip.cjs.entry.js +0 -19
- package/dist/esm/ui-chip.entry.js +0 -17
- package/dist/looma/p-82f2fa3d.entry.js +0 -1
- package/dist/looma/p-97e8cb0e.entry.js +0 -1
- package/dist/looma/p-9e1c4020.entry.js +0 -1
- package/dist/looma/p-cfba8f7c.entry.js +0 -1
- package/dist/ui-chip.entry-XSNPJXX3.js +0 -22
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/** A multi-value combobox with removable, customizable selected items. */
|
|
3
|
+
export class UIMultiCombobox {
|
|
4
|
+
host;
|
|
5
|
+
label = '';
|
|
6
|
+
placeholder = '';
|
|
7
|
+
items = [];
|
|
8
|
+
config = {};
|
|
9
|
+
query;
|
|
10
|
+
defaultQuery = '';
|
|
11
|
+
/** Characters that commit the current query and leave the input ready for the next item. */
|
|
12
|
+
tokenSeparators = [];
|
|
13
|
+
disabled = false;
|
|
14
|
+
readOnly = false;
|
|
15
|
+
required = false;
|
|
16
|
+
name = '';
|
|
17
|
+
queryChange;
|
|
18
|
+
addItem;
|
|
19
|
+
removeItem;
|
|
20
|
+
createItem;
|
|
21
|
+
optionsChange;
|
|
22
|
+
raw = '';
|
|
23
|
+
rows = [];
|
|
24
|
+
combobox;
|
|
25
|
+
filteredConfig;
|
|
26
|
+
filteredConfigSource;
|
|
27
|
+
filteredSelection = '';
|
|
28
|
+
componentWillLoad() { this.raw = this.query ?? this.defaultQuery; }
|
|
29
|
+
syncQuery() {
|
|
30
|
+
if (this.query !== undefined)
|
|
31
|
+
this.raw = this.query;
|
|
32
|
+
}
|
|
33
|
+
get selectedValues() { return new Set(this.items.map(item => item.value)); }
|
|
34
|
+
get comboboxConfig() {
|
|
35
|
+
const selectionKey = this.items.map(item => item.value).join('\u0000');
|
|
36
|
+
if (this.filteredConfig && this.filteredConfigSource === this.config && this.filteredSelection === selectionKey) {
|
|
37
|
+
return this.filteredConfig;
|
|
38
|
+
}
|
|
39
|
+
const ownerFilter = this.config.filter;
|
|
40
|
+
const selected = this.selectedValues;
|
|
41
|
+
this.filteredConfigSource = this.config;
|
|
42
|
+
this.filteredSelection = selectionKey;
|
|
43
|
+
this.filteredConfig = {
|
|
44
|
+
...this.config,
|
|
45
|
+
filter: (option, query, context) => !selected.has(option.value)
|
|
46
|
+
&& (ownerFilter ? ownerFilter(option, query, context) : option.label.toLocaleLowerCase().includes(query.toLocaleLowerCase())),
|
|
47
|
+
};
|
|
48
|
+
return this.filteredConfig;
|
|
49
|
+
}
|
|
50
|
+
setQuery(query, trigger) {
|
|
51
|
+
if (this.query === undefined)
|
|
52
|
+
this.raw = query;
|
|
53
|
+
this.queryChange.emit({ query, display: query, trigger });
|
|
54
|
+
}
|
|
55
|
+
clearCommittedQuery(input, trigger) {
|
|
56
|
+
// Clear the native control before another key can arrive. Controlled adapters
|
|
57
|
+
// still receive query-change, but do not need to round-trip before typing resumes.
|
|
58
|
+
input.value = '';
|
|
59
|
+
this.raw = '';
|
|
60
|
+
this.setQuery('', trigger);
|
|
61
|
+
}
|
|
62
|
+
onQueryChange = (event) => {
|
|
63
|
+
event.stopPropagation();
|
|
64
|
+
this.setQuery(event.detail.query, event.detail.trigger);
|
|
65
|
+
};
|
|
66
|
+
onOptionsChange = (event) => {
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
this.rows = event.detail;
|
|
69
|
+
this.optionsChange.emit(event.detail);
|
|
70
|
+
};
|
|
71
|
+
onValueChange = (event) => {
|
|
72
|
+
event.stopPropagation();
|
|
73
|
+
if (event.detail.kind !== 'selection' || !event.detail.option)
|
|
74
|
+
return;
|
|
75
|
+
const item = event.detail.option;
|
|
76
|
+
this.addItem.emit({ item, index: this.items.length, trigger: event.detail.trigger });
|
|
77
|
+
// ui-combobox emits its selection value before the matching label query.
|
|
78
|
+
// Clear after both owner notifications so the stale label cannot win.
|
|
79
|
+
queueMicrotask(() => this.setQuery('', event.detail.trigger));
|
|
80
|
+
};
|
|
81
|
+
onCreateEntry = (event) => {
|
|
82
|
+
event.stopPropagation();
|
|
83
|
+
const query = event.detail.query.trim();
|
|
84
|
+
if (!query)
|
|
85
|
+
return;
|
|
86
|
+
this.setQuery('', event.detail.trigger);
|
|
87
|
+
this.createItem.emit({ query, trigger: event.detail.trigger });
|
|
88
|
+
};
|
|
89
|
+
commitQuery(input, trigger) {
|
|
90
|
+
const query = this.raw.trim();
|
|
91
|
+
if (!query)
|
|
92
|
+
return;
|
|
93
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
94
|
+
const option = this.rows.find(row => row.label.trim().toLocaleLowerCase() === normalizedQuery);
|
|
95
|
+
if (option) {
|
|
96
|
+
this.clearCommittedQuery(input, trigger);
|
|
97
|
+
this.addItem.emit({ item: option, index: this.items.length, trigger });
|
|
98
|
+
}
|
|
99
|
+
else if (this.config.allowCreate) {
|
|
100
|
+
this.clearCommittedQuery(input, trigger);
|
|
101
|
+
this.createItem.emit({ query, trigger });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
remove(index, trigger) {
|
|
105
|
+
const item = this.items[index];
|
|
106
|
+
if (!item || item.disabled || this.disabled || this.readOnly)
|
|
107
|
+
return;
|
|
108
|
+
this.removeItem.emit({ item, index, trigger });
|
|
109
|
+
requestAnimationFrame(() => {
|
|
110
|
+
const buttons = this.host.shadowRoot?.querySelectorAll('[part="item"]') ?? [];
|
|
111
|
+
const next = buttons[Math.min(index, buttons.length - 1)] ?? buttons[index - 1];
|
|
112
|
+
if (next && next.dataset.value !== item.value)
|
|
113
|
+
next.focus();
|
|
114
|
+
else
|
|
115
|
+
void this.focusInput();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
focusItem(index) {
|
|
119
|
+
this.host.shadowRoot?.querySelectorAll('[part="item"]')[index]?.focus();
|
|
120
|
+
}
|
|
121
|
+
onItemKeyDown = (event, index) => {
|
|
122
|
+
if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
|
|
123
|
+
return;
|
|
124
|
+
if (event.key === 'ArrowLeft') {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
event.stopPropagation();
|
|
127
|
+
this.focusItem(Math.max(0, index - 1));
|
|
128
|
+
}
|
|
129
|
+
else if (event.key === 'ArrowRight') {
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
event.stopPropagation();
|
|
132
|
+
if (index === this.items.length - 1)
|
|
133
|
+
void this.focusInput();
|
|
134
|
+
else
|
|
135
|
+
this.focusItem(index + 1);
|
|
136
|
+
}
|
|
137
|
+
else if (event.key === 'Backspace' || event.key === 'Delete') {
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
this.remove(index, 'keyboard');
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
onKeyDown = (event) => {
|
|
144
|
+
if (event.defaultPrevented || event.isComposing || this.disabled || this.readOnly || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
|
|
145
|
+
return;
|
|
146
|
+
const input = event.composedPath().find(node => node instanceof HTMLInputElement);
|
|
147
|
+
if (!input)
|
|
148
|
+
return;
|
|
149
|
+
if (this.tokenSeparators.includes(event.key)) {
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
event.stopPropagation();
|
|
152
|
+
this.commitQuery(input, 'keyboard');
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (this.raw || (input.selectionStart ?? 0) > 0)
|
|
156
|
+
return;
|
|
157
|
+
if (event.key === 'ArrowLeft' && this.items.length) {
|
|
158
|
+
event.preventDefault();
|
|
159
|
+
this.focusItem(this.items.length - 1);
|
|
160
|
+
}
|
|
161
|
+
else if (event.key === 'Backspace' && this.items.length) {
|
|
162
|
+
event.preventDefault();
|
|
163
|
+
this.remove(this.items.length - 1, 'keyboard');
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
async focusInput() { await this.combobox?.focusInput(); }
|
|
167
|
+
render() {
|
|
168
|
+
return h(Host, { key: 'c1acc758a2856e5bd022e076030798c9d63ff416', onKeyDown: this.onKeyDown }, h("ui-combobox", { key: '8f77d28aa1d228dd809f86695429328decaf7468', ref: element => this.combobox = element, label: this.label, "label-visibility": "sr-only", placeholder: this.placeholder, name: this.name, value: null, query: this.raw, config: this.comboboxConfig, size: "sm", disabled: this.disabled, readOnly: this.readOnly, required: this.required, "onQuery-change": this.onQueryChange, "onValue-change": this.onValueChange, "onCreate-entry": this.onCreateEntry, "onOptions-change": this.onOptionsChange }, h("div", { key: 'f4f0849c145d9bcc4d47103d3dc4fdce8009aeab', slot: "start", class: "items", role: "group", "aria-label": `Selected ${this.label}` }, this.items.map((item, index) => h("button", { type: "button", part: "item", class: "item", "data-value": item.value, tabIndex: -1, disabled: this.disabled || this.readOnly || item.disabled, "aria-label": `${item.label}, press Delete or Backspace to remove`, onKeyDown: event => this.onItemKeyDown(event, index) }, h("slot", { name: `item-${item.id}` }, h("ui-chip", { appearance: "pill" }, item.label))))), this.rows.map(option => h("span", { slot: `option-${option.id}` }, h("slot", { name: `option-${option.id}` }, option.label))), h("span", { key: '3cf42f492bd946ca130321a2c3fcf976602c6566', slot: "create" }, h("slot", { key: '6f158cb1d96c0d0401fe5302cabffd052498f651', name: "create" }, "Create \u201C", this.raw, "\u201D")), h("span", { key: '0f436aca38aecf9485963d6588c27ab3288ced55', slot: "loading" }, h("slot", { key: '6c079ac5bbf6fff57aa7fa6f0022a939c96a5cd0', name: "loading" }, "Loading suggestions\u2026")), h("span", { key: 'a7893e0ff0a1922a404e7c072338858d9e7fdf12', slot: "empty" }, h("slot", { key: 'd6831db76cc1252aa942ccdcfba36c8cf4c60d22', name: "empty" }, "No suggestions.")), h("span", { key: 'a096a393a167256cff11f77110ae29ac58a33779', slot: "error" }, h("slot", { key: '1bf52c85e911d9965b9b691d6ebf0b89bbea2d58', name: "error" }, "Unable to load suggestions.")), h("div", { key: 'b7d88c9b427305da8b986eb993b49e5c581c1445', slot: "footer" }, h("slot", { key: 'f84fdf78c3e373f4735ed88574af06f1ca3cc1b5', name: "footer" }))));
|
|
169
|
+
}
|
|
170
|
+
static get is() { return "ui-multi-combobox"; }
|
|
171
|
+
static get encapsulation() { return "shadow"; }
|
|
172
|
+
static get originalStyleUrls() {
|
|
173
|
+
return {
|
|
174
|
+
"$": ["ui-multi-combobox.css"]
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
static get styleUrls() {
|
|
178
|
+
return {
|
|
179
|
+
"$": ["ui-multi-combobox.css"]
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static get properties() {
|
|
183
|
+
return {
|
|
184
|
+
"label": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "string",
|
|
189
|
+
"resolved": "string",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": ""
|
|
197
|
+
},
|
|
198
|
+
"getter": false,
|
|
199
|
+
"setter": false,
|
|
200
|
+
"reflect": false,
|
|
201
|
+
"attribute": "label",
|
|
202
|
+
"defaultValue": "''"
|
|
203
|
+
},
|
|
204
|
+
"placeholder": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "string",
|
|
209
|
+
"resolved": "string",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": ""
|
|
217
|
+
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"attribute": "placeholder",
|
|
222
|
+
"defaultValue": "''"
|
|
223
|
+
},
|
|
224
|
+
"items": {
|
|
225
|
+
"type": "unknown",
|
|
226
|
+
"mutable": false,
|
|
227
|
+
"complexType": {
|
|
228
|
+
"original": "readonly MultiComboboxItem[]",
|
|
229
|
+
"resolved": "readonly MultiComboboxItem[]",
|
|
230
|
+
"references": {
|
|
231
|
+
"MultiComboboxItem": {
|
|
232
|
+
"location": "import",
|
|
233
|
+
"path": "../../field/multi-combobox",
|
|
234
|
+
"id": "src/field/multi-combobox.ts::MultiComboboxItem",
|
|
235
|
+
"referenceLocation": "MultiComboboxItem"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": ""
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
247
|
+
"defaultValue": "[]"
|
|
248
|
+
},
|
|
249
|
+
"config": {
|
|
250
|
+
"type": "unknown",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "ComboboxConfig",
|
|
254
|
+
"resolved": "ComboboxConfig",
|
|
255
|
+
"references": {
|
|
256
|
+
"ComboboxConfig": {
|
|
257
|
+
"location": "import",
|
|
258
|
+
"path": "../../field/combobox",
|
|
259
|
+
"id": "src/field/combobox.ts::ComboboxConfig",
|
|
260
|
+
"referenceLocation": "ComboboxConfig"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"required": false,
|
|
265
|
+
"optional": false,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [],
|
|
268
|
+
"text": ""
|
|
269
|
+
},
|
|
270
|
+
"getter": false,
|
|
271
|
+
"setter": false,
|
|
272
|
+
"defaultValue": "{}"
|
|
273
|
+
},
|
|
274
|
+
"query": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"mutable": false,
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "string",
|
|
279
|
+
"resolved": "string",
|
|
280
|
+
"references": {}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": true,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": ""
|
|
287
|
+
},
|
|
288
|
+
"getter": false,
|
|
289
|
+
"setter": false,
|
|
290
|
+
"reflect": false,
|
|
291
|
+
"attribute": "query"
|
|
292
|
+
},
|
|
293
|
+
"defaultQuery": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"mutable": false,
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "string",
|
|
298
|
+
"resolved": "string",
|
|
299
|
+
"references": {}
|
|
300
|
+
},
|
|
301
|
+
"required": false,
|
|
302
|
+
"optional": false,
|
|
303
|
+
"docs": {
|
|
304
|
+
"tags": [],
|
|
305
|
+
"text": ""
|
|
306
|
+
},
|
|
307
|
+
"getter": false,
|
|
308
|
+
"setter": false,
|
|
309
|
+
"reflect": false,
|
|
310
|
+
"attribute": "default-query",
|
|
311
|
+
"defaultValue": "''"
|
|
312
|
+
},
|
|
313
|
+
"tokenSeparators": {
|
|
314
|
+
"type": "unknown",
|
|
315
|
+
"mutable": false,
|
|
316
|
+
"complexType": {
|
|
317
|
+
"original": "readonly string[]",
|
|
318
|
+
"resolved": "readonly string[]",
|
|
319
|
+
"references": {}
|
|
320
|
+
},
|
|
321
|
+
"required": false,
|
|
322
|
+
"optional": false,
|
|
323
|
+
"docs": {
|
|
324
|
+
"tags": [],
|
|
325
|
+
"text": "Characters that commit the current query and leave the input ready for the next item."
|
|
326
|
+
},
|
|
327
|
+
"getter": false,
|
|
328
|
+
"setter": false,
|
|
329
|
+
"defaultValue": "[]"
|
|
330
|
+
},
|
|
331
|
+
"disabled": {
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"mutable": false,
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "boolean",
|
|
336
|
+
"resolved": "boolean",
|
|
337
|
+
"references": {}
|
|
338
|
+
},
|
|
339
|
+
"required": false,
|
|
340
|
+
"optional": false,
|
|
341
|
+
"docs": {
|
|
342
|
+
"tags": [],
|
|
343
|
+
"text": ""
|
|
344
|
+
},
|
|
345
|
+
"getter": false,
|
|
346
|
+
"setter": false,
|
|
347
|
+
"reflect": false,
|
|
348
|
+
"attribute": "disabled",
|
|
349
|
+
"defaultValue": "false"
|
|
350
|
+
},
|
|
351
|
+
"readOnly": {
|
|
352
|
+
"type": "boolean",
|
|
353
|
+
"mutable": false,
|
|
354
|
+
"complexType": {
|
|
355
|
+
"original": "boolean",
|
|
356
|
+
"resolved": "boolean",
|
|
357
|
+
"references": {}
|
|
358
|
+
},
|
|
359
|
+
"required": false,
|
|
360
|
+
"optional": false,
|
|
361
|
+
"docs": {
|
|
362
|
+
"tags": [],
|
|
363
|
+
"text": ""
|
|
364
|
+
},
|
|
365
|
+
"getter": false,
|
|
366
|
+
"setter": false,
|
|
367
|
+
"reflect": false,
|
|
368
|
+
"attribute": "readonly",
|
|
369
|
+
"defaultValue": "false"
|
|
370
|
+
},
|
|
371
|
+
"required": {
|
|
372
|
+
"type": "boolean",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "boolean",
|
|
376
|
+
"resolved": "boolean",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": ""
|
|
384
|
+
},
|
|
385
|
+
"getter": false,
|
|
386
|
+
"setter": false,
|
|
387
|
+
"reflect": false,
|
|
388
|
+
"attribute": "required",
|
|
389
|
+
"defaultValue": "false"
|
|
390
|
+
},
|
|
391
|
+
"name": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"mutable": false,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "string",
|
|
396
|
+
"resolved": "string",
|
|
397
|
+
"references": {}
|
|
398
|
+
},
|
|
399
|
+
"required": false,
|
|
400
|
+
"optional": false,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": ""
|
|
404
|
+
},
|
|
405
|
+
"getter": false,
|
|
406
|
+
"setter": false,
|
|
407
|
+
"reflect": false,
|
|
408
|
+
"attribute": "name",
|
|
409
|
+
"defaultValue": "''"
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
static get states() {
|
|
414
|
+
return {
|
|
415
|
+
"raw": {},
|
|
416
|
+
"rows": {}
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
static get events() {
|
|
420
|
+
return [{
|
|
421
|
+
"method": "queryChange",
|
|
422
|
+
"name": "query-change",
|
|
423
|
+
"bubbles": true,
|
|
424
|
+
"cancelable": true,
|
|
425
|
+
"composed": true,
|
|
426
|
+
"docs": {
|
|
427
|
+
"tags": [],
|
|
428
|
+
"text": ""
|
|
429
|
+
},
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "{ query: string; display: string; trigger: 'keyboard' | 'pointer' | 'programmatic' }",
|
|
432
|
+
"resolved": "{ query: string; display: string; trigger: \"keyboard\" | \"pointer\" | \"programmatic\"; }",
|
|
433
|
+
"references": {}
|
|
434
|
+
}
|
|
435
|
+
}, {
|
|
436
|
+
"method": "addItem",
|
|
437
|
+
"name": "add-item",
|
|
438
|
+
"bubbles": true,
|
|
439
|
+
"cancelable": true,
|
|
440
|
+
"composed": true,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": ""
|
|
444
|
+
},
|
|
445
|
+
"complexType": {
|
|
446
|
+
"original": "MultiComboboxItemChange",
|
|
447
|
+
"resolved": "MultiComboboxItemChange",
|
|
448
|
+
"references": {
|
|
449
|
+
"MultiComboboxItemChange": {
|
|
450
|
+
"location": "import",
|
|
451
|
+
"path": "../../field/multi-combobox",
|
|
452
|
+
"id": "src/field/multi-combobox.ts::MultiComboboxItemChange",
|
|
453
|
+
"referenceLocation": "MultiComboboxItemChange"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}, {
|
|
458
|
+
"method": "removeItem",
|
|
459
|
+
"name": "remove-item",
|
|
460
|
+
"bubbles": true,
|
|
461
|
+
"cancelable": true,
|
|
462
|
+
"composed": true,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [],
|
|
465
|
+
"text": ""
|
|
466
|
+
},
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "MultiComboboxItemChange",
|
|
469
|
+
"resolved": "MultiComboboxItemChange",
|
|
470
|
+
"references": {
|
|
471
|
+
"MultiComboboxItemChange": {
|
|
472
|
+
"location": "import",
|
|
473
|
+
"path": "../../field/multi-combobox",
|
|
474
|
+
"id": "src/field/multi-combobox.ts::MultiComboboxItemChange",
|
|
475
|
+
"referenceLocation": "MultiComboboxItemChange"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}, {
|
|
480
|
+
"method": "createItem",
|
|
481
|
+
"name": "create-item",
|
|
482
|
+
"bubbles": true,
|
|
483
|
+
"cancelable": true,
|
|
484
|
+
"composed": true,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [],
|
|
487
|
+
"text": ""
|
|
488
|
+
},
|
|
489
|
+
"complexType": {
|
|
490
|
+
"original": "MultiComboboxCreate",
|
|
491
|
+
"resolved": "MultiComboboxCreate",
|
|
492
|
+
"references": {
|
|
493
|
+
"MultiComboboxCreate": {
|
|
494
|
+
"location": "import",
|
|
495
|
+
"path": "../../field/multi-combobox",
|
|
496
|
+
"id": "src/field/multi-combobox.ts::MultiComboboxCreate",
|
|
497
|
+
"referenceLocation": "MultiComboboxCreate"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}, {
|
|
502
|
+
"method": "optionsChange",
|
|
503
|
+
"name": "options-change",
|
|
504
|
+
"bubbles": true,
|
|
505
|
+
"cancelable": true,
|
|
506
|
+
"composed": true,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": ""
|
|
510
|
+
},
|
|
511
|
+
"complexType": {
|
|
512
|
+
"original": "readonly ComboboxOption[]",
|
|
513
|
+
"resolved": "readonly ComboboxOption<unknown>[]",
|
|
514
|
+
"references": {
|
|
515
|
+
"ComboboxOption": {
|
|
516
|
+
"location": "import",
|
|
517
|
+
"path": "../../field/combobox",
|
|
518
|
+
"id": "src/field/combobox.ts::ComboboxOption",
|
|
519
|
+
"referenceLocation": "ComboboxOption"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}];
|
|
524
|
+
}
|
|
525
|
+
static get methods() {
|
|
526
|
+
return {
|
|
527
|
+
"focusInput": {
|
|
528
|
+
"complexType": {
|
|
529
|
+
"signature": "() => Promise<void>",
|
|
530
|
+
"parameters": [],
|
|
531
|
+
"references": {
|
|
532
|
+
"Promise": {
|
|
533
|
+
"location": "global",
|
|
534
|
+
"id": "global::Promise"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"return": "Promise<void>"
|
|
538
|
+
},
|
|
539
|
+
"docs": {
|
|
540
|
+
"text": "",
|
|
541
|
+
"tags": []
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
static get elementRef() { return "host"; }
|
|
547
|
+
static get watchers() {
|
|
548
|
+
return [{
|
|
549
|
+
"propName": "query",
|
|
550
|
+
"methodName": "syncQuery"
|
|
551
|
+
}];
|
|
552
|
+
}
|
|
553
|
+
}
|
|
@@ -105,7 +105,7 @@ export class UIPopover {
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: 'a4986ace0f3c586774a549cb844287b28ccd0531', "data-open": this.internalOpen ? '' : undefined, onKeyDown: this.onKeydown }, h("div", { key: '8f2c589916d06138ef72bfe0d039893b3c59a7cc', class: "popover__surface" }, h("slot", { key: 'ee70e7dcc53a99b5c80e56862a6eb00edcfcf912' }))));
|
|
109
109
|
}
|
|
110
110
|
static get is() { return "ui-popover"; }
|
|
111
111
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,7 +62,7 @@ export class UIRadio {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: 'f4700b43790accd29a6bcc55fcc862072e29c335', role: "radio", "aria-checked": String(this.internalChecked), "aria-disabled": String(this.disabled), "data-disabled": this.disabled ? '' : undefined }, h("slot", { key: 'ed32c35f8f68c662a8b95e58b74c8c76c959ea49', ref: (el) => (this.slotRef = el) })));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "ui-radio"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,7 +102,7 @@ export class UIRadioGroup {
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
render() {
|
|
105
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: '1882ad7c092c6a138eab2a52c19beb9a950a8d5a', role: "radiogroup", "aria-orientation": this.orientation, "data-orientation": this.orientation, "data-disabled": this.disabled ? '' : undefined }, h("slot", { key: 'd5abade3d23963410cfbac17e80aa16dd21ccc6e' })));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "ui-radio-group"; }
|
|
108
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class UISearchResultRow {
|
|
|
31
31
|
this.hasTrailing = slotHasContent(this.trailingSlot);
|
|
32
32
|
};
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'eeda041dbcf8841cd53be9c532df208eb3be3d3b' }, h("button", { key: '71d3db6d2eca4f8d7796429f68ef73bf2c7b62f7', class: "search-result-row", type: "button", disabled: this.disabled, part: "button" }, h("span", { key: 'f2260cab9f654e7f5e96a5e7e2a1cbbb5a55fde3', class: "search-result-row__leading", part: "leading", hidden: !this.hasLeading }, h("slot", { key: '824fffc19c2b5712dae0c000f12cc36a0043a370', name: "leading", ref: (el) => (this.leadingSlot = el), onSlotchange: this.syncSlots })), h("span", { key: '4e3728ea7d363f256f1b3283df6eb984cf3f570f', class: "search-result-row__content", part: "content" }, h("span", { key: '95009b1ce569fb4251df62334a5dd88f1de561af', class: "search-result-row__title", part: "title" }, h("slot", { key: '132beecf36471ae0db68d686829428225699c534', name: "title" })), h("span", { key: '0ad7c8d52aa40ccf62667d3ecca4d48b49917a9a', class: "search-result-row__meta", part: "meta", hidden: !this.hasMeta }, h("slot", { key: '4b97129504571a676839287bd87e68d803f8bc99', name: "meta", ref: (el) => (this.metaSlot = el), onSlotchange: this.syncSlots })), h("span", { key: 'e6c73e653fb7dc213866a15870281f3f6d95a86b', class: "search-result-row__excerpt", part: "excerpt", hidden: !this.hasExcerpt }, h("slot", { key: '49deae8194485304380b8b4b3d4fe96cd6623f4d', name: "excerpt", ref: (el) => (this.excerptSlot = el), onSlotchange: this.syncSlots }))), h("span", { key: 'c7c6f0b57668644a28d3c4c981b4db79a0e3c42a', class: "search-result-row__trailing", part: "trailing", hidden: !this.hasTrailing }, h("slot", { key: 'e6cbceeb41d23c9b7514f53663438069499d1a4d', name: "trailing", ref: (el) => (this.trailingSlot = el), onSlotchange: this.syncSlots })))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "ui-search-result-row"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class UISearchShell {
|
|
|
23
23
|
this.hasFooter = slotHasContent(this.footerSlot);
|
|
24
24
|
};
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
return (h("div", { key: 'ae5baf1fae88f3c0ff8c98e68e1c31d7f19d7b6a', class: "search-shell", part: "base" }, h("slot", { key: '192d10867902bc4618762ab3ce1ca8a44229ec11', name: "backdrop" }), h("div", { key: '72bafd3ba7aadebcb011fb27f56793a9079bb2e1', class: "search-shell__panel", part: "panel" }, h("div", { key: 'c2d46c9099699cc1c2f357cb51d11ab0e6cf6c69', class: "search-shell__search", part: "search" }, h("slot", { key: '21f4ed690247fa794bd9322c75cee1721926087a', name: "search" })), h("div", { key: '84baba674456aa2a5878d5858d0e6531251440ce', class: "search-shell__status", part: "status", hidden: !this.hasStatus }, h("slot", { key: '6e7b6533a29231ebbcd41529d8120649ca4a1dd1', name: "status", ref: (el) => (this.statusSlot = el), onSlotchange: this.syncSlots })), h("div", { key: '710d51d450132ad0f528b2eb2cd6f0312dbced2f', class: "search-shell__body", part: "body" }, h("slot", { key: '2c380ff4ad33ead6ca8c2611ebc024f125f0da48', name: "body" })), h("div", { key: '6923984a31c7bc23bae3ecee08d7acad14703a02', class: "search-shell__footer", part: "footer", hidden: !this.hasFooter }, h("slot", { key: '57c2eab7a3f46558ada8d1aa70d64f434bb8cdd6', name: "footer", ref: (el) => (this.footerSlot = el), onSlotchange: this.syncSlots })))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "ui-search-shell"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,7 +72,7 @@ export class UISelect {
|
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
74
|
render() {
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: '74cbe4a76a23af415c202c61951ad513b0ed6cb8', "data-invalid": this.invalid ? '' : undefined }, h("slot", { key: 'e86eb0cfb0d379cb3f8b2ea5ce3c69639d0cdda4', ref: (el) => (this.slotRef = el) })));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "ui-select"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +41,7 @@ export class UISwitch {
|
|
|
41
41
|
this.toggle('pointer');
|
|
42
42
|
};
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'a37ded5259d71a57308cba6dd158ae4ae81e4e8b', role: "switch", "aria-checked": String(this.internalChecked), "aria-disabled": String(this.disabled), "data-disabled": this.disabled ? '' : undefined, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.onKeydown, onClick: this.onClick }, h("input", { key: '882f81f39d752430f1de1554a5d83176416f4617', type: "checkbox", checked: this.internalChecked, disabled: this.disabled, required: this.required, value: this.value, "aria-hidden": "true", tabIndex: -1, onChange: (e) => {
|
|
45
45
|
const input = e.target;
|
|
46
46
|
const checked = input.checked;
|
|
47
47
|
if (!isControlled(this.checked))
|
|
@@ -53,7 +53,7 @@ export class UISwitch {
|
|
|
53
53
|
});
|
|
54
54
|
if (isControlled(this.checked))
|
|
55
55
|
input.checked = this.internalChecked;
|
|
56
|
-
} }), h("slot", { key: '
|
|
56
|
+
} }), h("slot", { key: 'b3b2b5afae622d1ae79cadd84f60c6b6c2df55a4' })));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "ui-switch"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -92,7 +92,7 @@ export class UITabs {
|
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
render() {
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '19207153c7b7a6ea5f5ffb50439e99af70984b44', orientation: this.orientation, "data-orientation": this.orientation }, h("slot", { key: '5045cd040eeccd028c00328206d47f7d17b622de' })));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "ui-tabs"; }
|
|
98
98
|
static get encapsulation() { return "shadow"; }
|