@threadlabs/looma 0.1.25 → 0.1.27
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-UY423IKN.js → chunk-RLELJVBL.js} +33 -33
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/looma.cjs.js +1 -1
- package/dist/cjs/ui-chip_2.cjs.entry.js +6 -6
- 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 +1 -1
- 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 +36 -4
- 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/components/ui-chip/ui-chip.css +10 -0
- package/dist/collection/components/ui-chip/ui-chip.js +1 -1
- package/dist/collection/components/ui-combobox/ui-combobox.js +4 -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.js +1 -1
- 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 +5 -1
- package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.js +53 -3
- 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/components/{p-BMgIcOh-.js → p-BKzrrab4.js} +1 -1
- package/dist/components/p-D0wBI-9r.js +1 -0
- package/dist/components/{p-C6p-ygxq.js → p-DZRtXH6j.js} +1 -1
- package/dist/components/p-Vc4ExHFc.js +1 -0
- 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.js +1 -1
- 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.js +1 -1
- 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-chip_2.entry.js +6 -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 +1 -1
- 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 +36 -4
- 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 +67 -38
- package/dist/index.js +2 -2
- package/dist/looma/looma.esm.js +1 -1
- package/dist/looma/{p-0e1741cb.entry.js → p-071c139c.entry.js} +1 -1
- package/dist/looma/{p-393e3e02.entry.js → p-0fd60103.entry.js} +1 -1
- package/dist/looma/{p-e14024bf.entry.js → p-1a12eb5c.entry.js} +1 -1
- package/dist/looma/{p-bcb1b47b.entry.js → p-1e1de77f.entry.js} +1 -1
- package/dist/looma/{p-0ef4bf13.entry.js → p-20387ffa.entry.js} +1 -1
- package/dist/looma/{p-30f01909.entry.js → p-2f3c1b57.entry.js} +1 -1
- package/dist/looma/{p-5a7261e1.entry.js → p-4fc9917f.entry.js} +1 -1
- package/dist/looma/{p-26d357ae.entry.js → p-607c3056.entry.js} +1 -1
- package/dist/looma/p-66c6b6dd.entry.js +1 -0
- package/dist/looma/{p-89e71bbb.entry.js → p-6cc3180b.entry.js} +1 -1
- package/dist/looma/{p-558d4f5b.entry.js → p-77dcfa6f.entry.js} +1 -1
- package/dist/looma/p-85a6716e.entry.js +1 -0
- package/dist/looma/{p-81c533f5.entry.js → p-8a5e3fe1.entry.js} +1 -1
- package/dist/looma/{p-7319c147.entry.js → p-8f102407.entry.js} +1 -1
- package/dist/looma/{p-87f501cf.entry.js → p-9551ebf6.entry.js} +1 -1
- package/dist/looma/{p-dbcb479c.entry.js → p-9a82c523.entry.js} +1 -1
- package/dist/looma/{p-78b7e466.entry.js → p-a939c00f.entry.js} +1 -1
- package/dist/looma/{p-7eb04f09.entry.js → p-b68762f2.entry.js} +1 -1
- package/dist/looma/{p-95eb3b58.entry.js → p-b75aff63.entry.js} +1 -1
- package/dist/looma/p-caa37be2.entry.js +1 -0
- package/dist/looma/{p-d62da01d.entry.js → p-da6e2d01.entry.js} +1 -1
- package/dist/looma/{p-fc180770.entry.js → p-df696cca.entry.js} +1 -1
- package/dist/looma/{p-92cd1841.entry.js → p-e07e6ac2.entry.js} +1 -1
- package/dist/looma/{p-96ec4d7a.entry.js → p-e406656e.entry.js} +1 -1
- package/dist/looma/{p-5780cefa.entry.js → p-e82f104c.entry.js} +1 -1
- package/dist/looma/{p-166f8593.entry.js → p-f431dc13.entry.js} +1 -1
- package/dist/types/components/ui-multi-combobox/ui-multi-combobox.d.ts +4 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/{ui-affordance-scope.entry-VSSP52ZP.js → ui-affordance-scope.entry-7H6GIQEK.js} +1 -1
- package/dist/{ui-avatar-group.entry-JMCLL6FW.js → ui-avatar-group.entry-QB25IUWA.js} +1 -1
- package/dist/{ui-avatar.entry-X2YQ3QPG.js → ui-avatar.entry-L377CWPR.js} +1 -1
- package/dist/{ui-badge.entry-OJ6FJJKL.js → ui-badge.entry-QHC3KI5S.js} +1 -1
- package/dist/{ui-button.entry-ZN6JLND7.js → ui-button.entry-MZGTPU22.js} +1 -1
- package/dist/{ui-callout.entry-7K6NXQ7U.js → ui-callout.entry-2D4LO74K.js} +1 -1
- package/dist/{ui-checkbox.entry-GUYRVU6O.js → ui-checkbox.entry-B2O5DREC.js} +1 -1
- package/dist/{ui-chip_2.entry-M2DOTIGY.js → ui-chip_2.entry-OOSON72O.js} +8 -8
- package/dist/{ui-context-menu.entry-BM7FHOUJ.js → ui-context-menu.entry-UY76G7HM.js} +2 -2
- package/dist/{ui-dialog.entry-AZAD37CG.js → ui-dialog.entry-345V7IJ3.js} +2 -2
- package/dist/{ui-disclosure.entry-XDPGKMBK.js → ui-disclosure.entry-RUU7VNDN.js} +2 -2
- package/dist/{ui-editable.entry-S3TE6KFT.js → ui-editable.entry-WWFFHOMP.js} +2 -2
- package/dist/{ui-floating-action-button.entry-U7HGA3CS.js → ui-floating-action-button.entry-Y2TLDJO4.js} +2 -2
- package/dist/{ui-form-field.entry-C2ZSP3TM.js → ui-form-field.entry-C63GZMQR.js} +2 -2
- package/dist/{ui-icon-button.entry-P6H2LY7D.js → ui-icon-button.entry-35MJYYEI.js} +2 -2
- package/dist/{ui-input.entry-GTNQJCQ2.js → ui-input.entry-3FAXEH5M.js} +2 -2
- package/dist/{ui-menu-item.entry-2HWOGUO5.js → ui-menu-item.entry-3J42XLCJ.js} +2 -2
- package/dist/{ui-menu.entry-NZ7ER54K.js → ui-menu.entry-YDABO3OO.js} +2 -2
- package/dist/{ui-multi-combobox.entry-DZ5LLSVQ.js → ui-multi-combobox.entry-XXLS4V3I.js} +34 -5
- package/dist/{ui-popover.entry-ZOEQMUWG.js → ui-popover.entry-YP7R6FQO.js} +2 -2
- package/dist/{ui-radio-group.entry-QCQ46EK5.js → ui-radio-group.entry-TYXAN7G5.js} +2 -2
- package/dist/{ui-radio.entry-QAATWUYT.js → ui-radio.entry-JW7HX3LW.js} +2 -2
- package/dist/{ui-search-result-row.entry-2I3DH2OT.js → ui-search-result-row.entry-MKQYGNFO.js} +2 -2
- package/dist/{ui-search-shell.entry-7RS55ORF.js → ui-search-shell.entry-KHIQTT4J.js} +2 -2
- package/dist/{ui-select.entry-6O4KD4G7.js → ui-select.entry-R235Y3IL.js} +2 -2
- package/dist/{ui-switch.entry-DY5PSHCQ.js → ui-switch.entry-BJ6FIEPB.js} +3 -3
- package/dist/{ui-tabs.entry-6X56UOUE.js → ui-tabs.entry-ZBP3FLR2.js} +2 -2
- package/dist/{ui-textarea.entry-RDYP6O77.js → ui-textarea.entry-2YW7TCEU.js} +2 -2
- package/dist/{ui-toast-region.entry-EBY42KS5.js → ui-toast-region.entry-ZSCMMIKQ.js} +2 -2
- package/dist/{ui-tooltip.entry-PLXMPOKV.js → ui-tooltip.entry-VG4AWEBD.js} +2 -2
- package/dist/{ui-top-bar.entry-QKE2DLVD.js → ui-top-bar.entry-CZW3MLC6.js} +2 -2
- package/dist/{ui-tree-item.entry-TC6YWIC6.js → ui-tree-item.entry-CU2SWAOK.js} +3 -3
- package/dist/{ui-tree.entry-UL6UHCUT.js → ui-tree.entry-M6KXK7GJ.js} +2 -2
- package/package.json +1 -1
- package/vue/{chunk-GXQY27K2.js → chunk-2DDIBSFD.js} +4 -1
- package/vue/editor/index.js +1 -1
- package/vue/index.d.ts +9 -0
- package/vue/index.js +1 -1
- package/dist/components/p-B9CzOHvE.js +0 -1
- package/dist/components/p-BVteuP_d.js +0 -1
- package/dist/looma/p-262a542c.entry.js +0 -1
- package/dist/looma/p-3a44b9f9.entry.js +0 -1
- package/dist/looma/p-b6c776fb.entry.js +0 -1
|
@@ -158,7 +158,7 @@ const UIMenu = class {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
render() {
|
|
161
|
-
return (h(Host, { key: '
|
|
161
|
+
return (h(Host, { key: '22689ca1b0514bb27a76bfb9a702c0d4ce49d136', role: "menu", "aria-orientation": "vertical", "data-open": this.internalOpen ? '' : undefined }, h("div", { key: 'cff891a33348f077631f1b92f1167285aafd25f1', class: "menu__surface" }, h("slot", { key: '3a0e9ff4f36b1afbe5f879e0e51ff4943279b5b5' }))));
|
|
162
162
|
}
|
|
163
163
|
static get watchers() { return {
|
|
164
164
|
"open": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-8BGiMGQ0.js';
|
|
2
2
|
|
|
3
|
-
const uiMultiComboboxCss = () => `:host{display:block;min-inline-size:0;color:var(--ui-text-primary);font:inherit}ui-combobox::part(field){flex-wrap:wrap;align-items:center;gap:var(--ui-space-1);min-block-size:var(--ui-multi-combobox-min-block-size, 2.5rem);padding:var(--ui-space-1)}ui-combobox::part(input){flex:1 0 var(--ui-multi-combobox-input-min-inline-size, 5rem);width:auto;min-block-size:1.75rem;padding:var(--ui-space-0-5) var(--ui-space-1)}.items{display:contents}.item{appearance:none;display:inline-flex;max-inline-size:100
|
|
3
|
+
const uiMultiComboboxCss = () => `:host{display:block;min-inline-size:0;color:var(--ui-text-primary);font:inherit}ui-combobox::part(field){flex-wrap:wrap;align-items:center;gap:var(--ui-space-1);min-block-size:var(--ui-multi-combobox-min-block-size, 2.5rem);padding:var(--ui-space-1)}ui-combobox::part(input){flex:1 0 var(--ui-multi-combobox-input-min-inline-size, 5rem);width:auto;min-block-size:1.75rem;padding:var(--ui-space-0-5) var(--ui-space-1)}.items{display:contents}.item{appearance:none;display:inline-flex;min-inline-size:0;max-inline-size:min(100%, var(--ui-multi-combobox-item-max-inline-size, 12rem));overflow:hidden;padding:0;border:0;border-radius:var(--ui-radius-1);background:transparent;color:inherit;font:inherit;cursor:default}.item>slot{display:block;min-inline-size:0;max-inline-size:100%;overflow:hidden}.item>slot::slotted(*){min-inline-size:0;max-inline-size:100%}.item:focus-visible{outline:2px solid var(--ui-focus-ring);outline-offset:1px}.item:disabled{opacity:.6}`;
|
|
4
4
|
|
|
5
5
|
const UIMultiCombobox = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -18,6 +18,8 @@ const UIMultiCombobox = class {
|
|
|
18
18
|
config = {};
|
|
19
19
|
query;
|
|
20
20
|
defaultQuery = '';
|
|
21
|
+
/** Characters that commit the current query and leave the input ready for the next item. */
|
|
22
|
+
tokenSeparators = [];
|
|
21
23
|
disabled = false;
|
|
22
24
|
readOnly = false;
|
|
23
25
|
required = false;
|
|
@@ -60,6 +62,13 @@ const UIMultiCombobox = class {
|
|
|
60
62
|
this.raw = query;
|
|
61
63
|
this.queryChange.emit({ query, display: query, trigger });
|
|
62
64
|
}
|
|
65
|
+
clearCommittedQuery(input, trigger) {
|
|
66
|
+
// Clear the native control before another key can arrive. Controlled adapters
|
|
67
|
+
// still receive query-change, but do not need to round-trip before typing resumes.
|
|
68
|
+
input.value = '';
|
|
69
|
+
this.raw = '';
|
|
70
|
+
this.setQuery('', trigger);
|
|
71
|
+
}
|
|
63
72
|
onQueryChange = (event) => {
|
|
64
73
|
event.stopPropagation();
|
|
65
74
|
this.setQuery(event.detail.query, event.detail.trigger);
|
|
@@ -87,6 +96,21 @@ const UIMultiCombobox = class {
|
|
|
87
96
|
this.setQuery('', event.detail.trigger);
|
|
88
97
|
this.createItem.emit({ query, trigger: event.detail.trigger });
|
|
89
98
|
};
|
|
99
|
+
commitQuery(input, trigger) {
|
|
100
|
+
const query = this.raw.trim();
|
|
101
|
+
if (!query)
|
|
102
|
+
return;
|
|
103
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
104
|
+
const option = this.rows.find(row => row.label.trim().toLocaleLowerCase() === normalizedQuery);
|
|
105
|
+
if (option) {
|
|
106
|
+
this.clearCommittedQuery(input, trigger);
|
|
107
|
+
this.addItem.emit({ item: option, index: this.items.length, trigger });
|
|
108
|
+
}
|
|
109
|
+
else if (this.config.allowCreate) {
|
|
110
|
+
this.clearCommittedQuery(input, trigger);
|
|
111
|
+
this.createItem.emit({ query, trigger });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
90
114
|
remove(index, trigger) {
|
|
91
115
|
const item = this.items[index];
|
|
92
116
|
if (!item || item.disabled || this.disabled || this.readOnly)
|
|
@@ -127,10 +151,18 @@ const UIMultiCombobox = class {
|
|
|
127
151
|
}
|
|
128
152
|
};
|
|
129
153
|
onKeyDown = (event) => {
|
|
130
|
-
if (event.defaultPrevented || this.disabled || this.readOnly || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
|
|
154
|
+
if (event.defaultPrevented || event.isComposing || this.disabled || this.readOnly || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
|
|
131
155
|
return;
|
|
132
156
|
const input = event.composedPath().find(node => node instanceof HTMLInputElement);
|
|
133
|
-
if (!input
|
|
157
|
+
if (!input)
|
|
158
|
+
return;
|
|
159
|
+
if (this.tokenSeparators.includes(event.key)) {
|
|
160
|
+
event.preventDefault();
|
|
161
|
+
event.stopPropagation();
|
|
162
|
+
this.commitQuery(input, 'keyboard');
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if (this.raw || (input.selectionStart ?? 0) > 0)
|
|
134
166
|
return;
|
|
135
167
|
if (event.key === 'ArrowLeft' && this.items.length) {
|
|
136
168
|
event.preventDefault();
|
|
@@ -143,7 +175,7 @@ const UIMultiCombobox = class {
|
|
|
143
175
|
};
|
|
144
176
|
async focusInput() { await this.combobox?.focusInput(); }
|
|
145
177
|
render() {
|
|
146
|
-
return h(Host, { key: '
|
|
178
|
+
return h(Host, { key: 'ba4db0fdca6cae344fe6b0bf06c933a9a90d2d3f', onKeyDown: this.onKeyDown }, h("ui-combobox", { key: 'f5901b0b078b479425114d998618828cc458e7dd', 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: '374c80862302d5c36f4849f42e5ed13222addd1c', 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: 'a23781c153e154cdff7066868c2da956e26b7d52', slot: "create" }, h("slot", { key: 'e3bde0d1e549e785fff877a1a7aac10df308f7a3', name: "create" }, "Create \u201C", this.raw, "\u201D")), h("span", { key: '5837c4cde35d5984aaf1d364f1b850b9d63ff8ca', slot: "loading" }, h("slot", { key: '1bdfa30849bea752bc5c93268b3427c964d1b5d3', name: "loading" }, "Loading suggestions\u2026")), h("span", { key: '519d7b1a7f28f9d19cd441598a690c8b4fdacf5b', slot: "empty" }, h("slot", { key: '3163150e0f1edebb50509a5dacd576e4568eaaae', name: "empty" }, "No suggestions.")), h("span", { key: '655e4f85d70eb97f0f0ecb2bac7b4228f5cf580f', slot: "error" }, h("slot", { key: 'a22667db30ee30003855ee69774eff3a4aab8566', name: "error" }, "Unable to load suggestions.")), h("div", { key: 'b01b74f3fc7136a3bf1875c81b9f3a662f3e993c', slot: "footer" }, h("slot", { key: '7565ee0798072eebc6d1c458f89ce6c7941577dd', name: "footer" }))));
|
|
147
179
|
}
|
|
148
180
|
static get watchers() { return {
|
|
149
181
|
"query": [{
|
|
@@ -111,7 +111,7 @@ const UIPopover = class {
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
render() {
|
|
114
|
-
return (h(Host, { key: '
|
|
114
|
+
return (h(Host, { key: 'f63907b8e49b8264c291048c509b6164fdd60ca4', "data-open": this.internalOpen ? '' : undefined, onKeyDown: this.onKeydown }, h("div", { key: '2425f4394749d994693f4a256256bd9e2f5daf60', class: "popover__surface" }, h("slot", { key: '3b6f925da371d43e828842c4027cddee673d7ab3' }))));
|
|
115
115
|
}
|
|
116
116
|
static get watchers() { return {
|
|
117
117
|
"open": [{
|
|
@@ -107,7 +107,7 @@ const UIRadioGroup = class {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
render() {
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '31d8dee04aad4ddbb0bfa617a4e6ed187eab6674', role: "radiogroup", "aria-orientation": this.orientation, "data-orientation": this.orientation, "data-disabled": this.disabled ? '' : undefined }, h("slot", { key: '7134bcfa6b11cbe0d0d55a6593ea3fca921a71ec' })));
|
|
111
111
|
}
|
|
112
112
|
static get watchers() { return {
|
|
113
113
|
"value": [{
|
|
@@ -67,7 +67,7 @@ const UIRadio = class {
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '5bab1394b8238609e4382309e4b11bca82a60b12', role: "radio", "aria-checked": String(this.internalChecked), "aria-disabled": String(this.disabled), "data-disabled": this.disabled ? '' : undefined }, h("slot", { key: '56ba5b7ec4ab53299c66689558338d2c6ab3e4f6', ref: (el) => (this.slotRef = el) })));
|
|
71
71
|
}
|
|
72
72
|
static get watchers() { return {
|
|
73
73
|
"checked": [{
|
|
@@ -37,7 +37,7 @@ const UISearchResultRow = class {
|
|
|
37
37
|
this.hasTrailing = slotHasContent(this.trailingSlot);
|
|
38
38
|
};
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '2e1a1fe613e499a8abaaf89c8cc071554b523157' }, h("button", { key: '2224a7593feb6c58b162ce820b2deb9bec4fa1b7', class: "search-result-row", type: "button", disabled: this.disabled, part: "button" }, h("span", { key: '87b86a7d31e15b401b933562adba9a24c88e341f', class: "search-result-row__leading", part: "leading", hidden: !this.hasLeading }, h("slot", { key: '00d253826d2d0c60206e20b6428c3277024a24e0', name: "leading", ref: (el) => (this.leadingSlot = el), onSlotchange: this.syncSlots })), h("span", { key: '3c4ad5b336450c29d56aea538dbc987b9a624c1d', class: "search-result-row__content", part: "content" }, h("span", { key: '305dc47dcac890ca968d622ce3dc18e88d646ab3', class: "search-result-row__title", part: "title" }, h("slot", { key: '5441b78d87cba9e48eb3b786e7ea914479f5ef15', name: "title" })), h("span", { key: 'bbd7769b81005b959e6d950255951f0089e9e716', class: "search-result-row__meta", part: "meta", hidden: !this.hasMeta }, h("slot", { key: '8437dd124e858eadb942e2a05ccd87c14a8ea604', name: "meta", ref: (el) => (this.metaSlot = el), onSlotchange: this.syncSlots })), h("span", { key: '6939cb19881b17799205a54eda9d34e86563f994', class: "search-result-row__excerpt", part: "excerpt", hidden: !this.hasExcerpt }, h("slot", { key: '2f41b9ec22a0260e4196553a655cc501384f2331', name: "excerpt", ref: (el) => (this.excerptSlot = el), onSlotchange: this.syncSlots }))), h("span", { key: '162de66c31688de9114233984448eb5b30d48dc3', class: "search-result-row__trailing", part: "trailing", hidden: !this.hasTrailing }, h("slot", { key: 'dfa3d5bbbe453a8fd1c3ddf9508bf33edf145dc6', name: "trailing", ref: (el) => (this.trailingSlot = el), onSlotchange: this.syncSlots })))));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
UISearchResultRow.style = uiSearchResultRowCss();
|
|
@@ -29,7 +29,7 @@ const UISearchShell = class {
|
|
|
29
29
|
this.hasFooter = slotHasContent(this.footerSlot);
|
|
30
30
|
};
|
|
31
31
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '508a5900288b0b7e0651d3a56e1f5a9094061952', class: "search-shell", part: "base" }, h("slot", { key: '54677a395d62aed4538bb36255046a1d679da312', name: "backdrop" }), h("div", { key: 'f738673e5a95509803d2c4682adb4aa48f7b798f', class: "search-shell__panel", part: "panel" }, h("div", { key: '8e4a14fcc5e7cc0ff3c2c94ad72cb6b4305d4fea', class: "search-shell__search", part: "search" }, h("slot", { key: '28f3d8439964423fe9beeac91490a70a30a36b6e', name: "search" })), h("div", { key: '8bcd00a532eea21a41a7771636bc038c27c55a31', class: "search-shell__status", part: "status", hidden: !this.hasStatus }, h("slot", { key: '4a4c9082f2645e80fdfa2a8b71a1747573d02f73', name: "status", ref: (el) => (this.statusSlot = el), onSlotchange: this.syncSlots })), h("div", { key: '58439a3d479f042f827abce2a99dc1ae75db5ca1', class: "search-shell__body", part: "body" }, h("slot", { key: '5f6c4202b0abeb3708bed415a576e877c94f1eb1', name: "body" })), h("div", { key: '7a2887f7220619db2ccb5a907623c3e760d1e073', class: "search-shell__footer", part: "footer", hidden: !this.hasFooter }, h("slot", { key: '26c8f839b8add2b52c6940e67a6a7c94a8ffcf31', name: "footer", ref: (el) => (this.footerSlot = el), onSlotchange: this.syncSlots })))));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
UISearchShell.style = uiSearchShellCss();
|
|
@@ -78,7 +78,7 @@ const UISelect = class {
|
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '5b77bfa817964325038cf338a1c0791abf8d2bfe', "data-invalid": this.invalid ? '' : undefined }, h("slot", { key: '9a9c8017e5e02d14945d6b7c84d68edf7b2ccaf8', ref: (el) => (this.slotRef = el) })));
|
|
82
82
|
}
|
|
83
83
|
static get watchers() { return {
|
|
84
84
|
"value": [{
|
|
@@ -47,7 +47,7 @@ const UISwitch = class {
|
|
|
47
47
|
this.toggle('pointer');
|
|
48
48
|
};
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'e5ec7f2f91e860dd679098f30b40cbe0e52ccb1f', 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: 'c21462377a81d7242633e7d358f56fd7a276f584', type: "checkbox", checked: this.internalChecked, disabled: this.disabled, required: this.required, value: this.value, "aria-hidden": "true", tabIndex: -1, onChange: (e) => {
|
|
51
51
|
const input = e.target;
|
|
52
52
|
const checked = input.checked;
|
|
53
53
|
if (!isControlled(this.checked))
|
|
@@ -59,7 +59,7 @@ const UISwitch = class {
|
|
|
59
59
|
});
|
|
60
60
|
if (isControlled(this.checked))
|
|
61
61
|
input.checked = this.internalChecked;
|
|
62
|
-
} }), h("slot", { key: '
|
|
62
|
+
} }), h("slot", { key: 'e3f4f032bc41784ed41591d4fd175b89a4162c49' })));
|
|
63
63
|
}
|
|
64
64
|
static get watchers() { return {
|
|
65
65
|
"checked": [{
|
|
@@ -97,7 +97,7 @@ const UITabs = class {
|
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
return (h(Host, { key: '908dc4228940bbf33530a2b9f5fb36421c51d1a1', orientation: this.orientation, "data-orientation": this.orientation }, h("slot", { key: 'ebfe8bc58d09fdce2815b26f29e2eba4e5f3c879' })));
|
|
101
101
|
}
|
|
102
102
|
static get watchers() { return {
|
|
103
103
|
"value": [{
|
|
@@ -77,7 +77,7 @@ const UITextarea = class {
|
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '4774b8d20cd4426b1c6205375fd9e4275bc24f08', "data-invalid": this.invalid ? '' : undefined }, h("slot", { key: '9b5489df35c29bf453d010f85bcb05dcc01fcce9', ref: (el) => (this.slotRef = el) })));
|
|
81
81
|
}
|
|
82
82
|
static get watchers() { return {
|
|
83
83
|
"value": [{
|
|
@@ -75,7 +75,7 @@ const UIToastRegion = class {
|
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: 'e3a71de7854b5937cc3f74858fc69f202fd93c71', role: "region", "aria-label": "Notifications", "aria-live": "polite", "data-open": this.internalOpen ? '' : undefined }, h("slot", { key: 'cdf6ea0118199d149ac08820c69ec8b54654be91' })));
|
|
79
79
|
}
|
|
80
80
|
static get watchers() { return {
|
|
81
81
|
"open": [{
|
|
@@ -217,7 +217,7 @@ const UITooltip = class {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
|
-
return (h(Host, { key: '
|
|
220
|
+
return (h(Host, { key: '2216e8f56c408e775140200881c9bfd99b45f381', role: "tooltip", hidden: !this.internalOpen, "data-open": this.internalOpen ? '' : undefined }, h("div", { key: 'a547e43fb5f6c3c2f62cf7f1fb9198dc0024a28d', class: "tooltip__surface" }, h("slot", { key: 'dc8863505e8140565588c57ea200b7f548fb5df3' }))));
|
|
221
221
|
}
|
|
222
222
|
static get watchers() { return {
|
|
223
223
|
"open": [{
|
|
@@ -33,7 +33,7 @@ const UITopBar = class {
|
|
|
33
33
|
this.hasActions = slotHasContent(this.actionsSlot);
|
|
34
34
|
};
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '1f0cf8994e3a18d42415fa85f14d172cfaddbf8e' }, h("header", { key: 'e92afb06dad409b4a4e8fcc52bcad09b3e4531c4', class: "top-bar", part: "base" }, h("div", { key: '3d1458e841c7a600c98d6797b4ec97baee285de1', class: "top-bar__leading", hidden: !this.hasLeading }, h("slot", { key: '665e078f41410275cba3c55fec05159518a97a9e', name: "leading", ref: (el) => (this.leadingSlot = el), onSlotchange: this.syncSlots })), h("div", { key: '7657a2c1e6c96660fa2ade470c8a4b0ecd30fcd9', class: "top-bar__title" }, h("slot", { key: '4d4f70c1a50aede4ef3a63176d714502b074a2cf' })), h("div", { key: '9409800ebaee24e4567de2126c0dd2544e741956', class: "top-bar__search", hidden: !this.hasSearch }, h("slot", { key: '2e66be8358235ae5ef10c7f9a115b08377ece3a7', name: "search", ref: (el) => (this.searchSlot = el), onSlotchange: this.syncSlots })), h("div", { key: 'e7fa28dddde4f0638a153ad0c8fcc3de94c0ecdc', class: "top-bar__actions", hidden: !this.hasActions }, h("slot", { key: '56c6620da69e2775a8a4d7306bb40b7a6713b100', name: "actions", ref: (el) => (this.actionsSlot = el), onSlotchange: this.syncSlots })))));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
UITopBar.style = uiTopBarCss();
|
|
@@ -117,10 +117,10 @@ const UITreeItem = class {
|
|
|
117
117
|
const expanded = this.isExpanded();
|
|
118
118
|
const disclosureLabel = `${expanded ? 'Collapse' : 'Expand'} ${this.label || 'item'}`;
|
|
119
119
|
const dragLabel = `Drag ${this.label || 'item'} to reorder`;
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: '4a42d3c93b49ad82ae87496defe22f4abde13819', role: "treeitem", "aria-label": this.label || undefined, "aria-level": String(level), "aria-expanded": this.container ? String(expanded) : undefined, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "data-container": this.container ? '' : undefined, "data-selected": this.selected ? '' : undefined, "data-disabled": this.disabled ? '' : undefined, "data-drag-type": this.dragType || 'item', "data-drop-scope": this.dropScope || undefined, "data-accepts": this.accepts || undefined, tabIndex: this.disabled || !this.tabStop ? -1 : 0, style: {
|
|
121
121
|
'--ui-tree-item-depth': String(level - 1),
|
|
122
122
|
'margin-inline-start': level > 1 ? 'var(--ui-tree-indent, 16px)' : '0px',
|
|
123
|
-
} }, h("div", { key: '
|
|
123
|
+
} }, h("div", { key: '9b62f172b2c0a80925404aee13895b3342d7dcb6', class: "row", part: "row", onClick: this.onRowClick }, this.sortable && !this.disabled ? (h("button", { class: "drag-handle", part: "drag-handle", type: "button", draggable: true, "aria-label": dragLabel, title: dragLabel }, h("span", { innerHTML: loomaIconMarkup('grip-vertical') }))) : null, this.container ? (h("button", { class: "disclosure", part: "disclosure", type: "button", "aria-label": disclosureLabel, "aria-expanded": String(expanded), disabled: this.disabled, onClick: this.onDisclosureClick, onKeyDown: this.onDisclosureKeydown }, h("span", { class: { 'disclosure-icon': true, 'disclosure-icon--expanded': expanded }, innerHTML: loomaIconMarkup('chevron-down') }))) : h("span", { class: "disclosure-spacer", "aria-hidden": "true" }), h("span", { key: 'fe2e301bf43f1fdb524a004960855f63d05ce138', class: "leading", part: "leading" }, h("slot", { key: '6f569883ead32dff5340b1c1da74dc8fdade49e6', name: "leading" })), h("span", { key: '942e3bb0b6b4021166916777ab18dc868c39fbdc', class: "label", part: "label" }, h("slot", { key: '42b9d9f42fd7aaad35ed7091c39953710ebf5a58' })), h("span", { key: '8483a822895220d2bb2aa2cb0a45cd296062cae9', class: "actions", part: "actions" }, h("slot", { key: 'dae2b38eef43a061f40a7498d8f28e703e5468e3', name: "actions" })), h("span", { key: '0a9b7db9ab5e9a709f9f0a3a8d77bd1c044295c4', class: "drop-indicator row-drop-indicator", part: "drop-indicator", "aria-hidden": "true" })), this.container ? (h("div", { class: "children", part: "children", role: "group", hidden: !expanded }, h("slot", { name: "children" }))) : null, h("span", { key: '641be80771d73d2c7193f2c762db1d0fe5c79e5d', class: "drop-indicator subtree-drop-indicator", part: "drop-indicator", "aria-hidden": "true" })));
|
|
124
124
|
}
|
|
125
125
|
static get watchers() { return {
|
|
126
126
|
"expanded": [{
|
|
@@ -490,7 +490,7 @@ const UITree = class {
|
|
|
490
490
|
}
|
|
491
491
|
};
|
|
492
492
|
render() {
|
|
493
|
-
return (h(Host, { key: '
|
|
493
|
+
return (h(Host, { key: '81fe656b4a7cdf8683f53aeee94fb53838950383', role: "tree", "aria-label": this.label || 'Tree' }, h("slot", { key: '941204b299eec2181228f536c017a17f026b2f3d' })));
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
UITree.style = uiTreeCss();
|