@threadlabs/looma 0.52.12 → 0.53.1
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/components/shared/overlay.js +7 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
- package/components/ui-meter/ui-meter.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +1 -1
- package/editor/chunks/extensions.js +2 -2
- package/editor/components.css +19 -19
- package/editor/index.js +1125 -853
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card-group.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-column.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-data-table.css +1 -1
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-light-editor.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-notice-stripe.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-segmented-control.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +1 -1
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/styles/ui-wizard.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +14 -12
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +13 -11
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +27 -25
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +26 -23
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +14 -12
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +14 -13
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +10 -10
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +187 -244
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +272 -193
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +32 -27
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +72 -69
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +17 -15
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +32 -30
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +20 -18
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +22 -20
- package/vanilla/UiColumn.d.ts +2 -2
- package/vanilla/UiColumn.js +18 -15
- package/vanilla/UiCombobox.d.ts +3 -3
- package/vanilla/UiCombobox.js +237 -174
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +13 -8
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +17 -12
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +47 -45
- package/vanilla/UiCompactNode.d.ts +2 -2
- package/vanilla/UiCompactNode.js +37 -33
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +13 -11
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +11 -9
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +13 -11
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +40 -38
- package/vanilla/UiCycleButton.d.ts +2 -2
- package/vanilla/UiCycleButton.js +31 -26
- package/vanilla/UiDataTable.d.ts +1 -1
- package/vanilla/UiDataTable.js +26 -20
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +78 -75
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +155 -149
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +136 -128
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +13 -11
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +13 -11
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +14 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +28 -26
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +29 -27
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +62 -58
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +14 -12
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +22 -14
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +23 -16
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +17 -9
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +108 -71
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +68 -66
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +50 -35
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +27 -25
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +79 -57
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +63 -44
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +22 -16
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +52 -33
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +19 -14
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +27 -25
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +13 -11
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +81 -52
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +107 -68
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +121 -70
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +20 -12
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +94 -80
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +21 -20
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +21 -19
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +26 -23
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +20 -15
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +35 -43
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +16 -14
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +29 -35
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +16 -14
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +29 -27
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +33 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +12 -12
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +90 -80
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +20 -12
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +14 -11
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +74 -75
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +67 -62
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +63 -65
- package/vanilla/UiNoticeStripe.d.ts +1 -1
- package/vanilla/UiNoticeStripe.js +16 -16
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +41 -38
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +17 -15
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +53 -44
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +13 -11
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +25 -23
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +33 -36
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +20 -12
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +13 -11
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +21 -20
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +16 -14
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +48 -45
- package/vanilla/UiSegmentedControl.d.ts +2 -2
- package/vanilla/UiSegmentedControl.js +52 -47
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +17 -21
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +12 -12
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +17 -15
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +25 -23
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +21 -20
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +50 -47
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +34 -27
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +12 -12
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +22 -21
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +20 -17
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +25 -23
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +13 -11
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +13 -11
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +39 -28
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +128 -125
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +27 -39
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +42 -40
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +105 -102
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +14 -14
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +61 -31
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +17 -14
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +24 -22
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +17 -12
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +73 -79
- package/vanilla/UiWizard.d.ts +1 -1
- package/vanilla/UiWizard.js +61 -40
package/vanilla/UiCombobox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, equalValue, buildTemplate, clearRegion, KeyedList, negate, NONCONFORMING, notValue, readIndex, readMember, readsChanged, rec, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, writeText, dispatchDeclared, detailCheck, plainObject, dispose, IndexedList, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, ABSENT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, warnOnce, initializeSlot, sharePlainSlots, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-combobox/ui-combobox.js";
|
|
4
4
|
import "../styles/ui-combobox.css";
|
|
5
5
|
|
|
@@ -33,6 +33,18 @@ const T26 = ["div",[],0];
|
|
|
33
33
|
const T27 = ["",[]];
|
|
34
34
|
const K0 = (v0) => (plainObject(v0) && "id" in v0 && typeof v0["id"] == "string" && "value" in v0 && typeof v0["value"] == "string" && "label" in v0 && typeof v0["label"] == "string" && (v0["group"] == null || typeof v0["group"] == "string") && (v0["disabled"] == null || typeof v0["disabled"] == "boolean") && (v0["description"] == null || typeof v0["description"] == "string") && (v0["tag"] == null || (plainObject(v0["tag"]) && "label" in v0["tag"] && typeof v0["tag"]["label"] == "string" && (v0["tag"]["tone"] == null || ((typeof v0["tag"]["tone"] == "string" && keywordFormat(v0["tag"]["tone"])) && ["neutral","accent","info","success","warning","danger"].includes(v0["tag"]["tone"]))) && (v0["tag"]["color"] == null || typeof v0["tag"]["color"] == "string") && Object.keys(v0["tag"]).every((v1) => ["label","tone","color"].includes(v1)))) && Object.keys(v0).every((v1) => ["id","value","label","group","disabled","description","tag"].includes(v1)));
|
|
35
35
|
const K1 = (v0) => (plainObject(v0) && "id" in v0 && typeof v0["id"] == "string" && "value" in v0 && typeof v0["value"] == "string" && "label" in v0 && typeof v0["label"] == "string" && (v0["group"] == null || typeof v0["group"] == "string") && (v0["disabled"] == null || typeof v0["disabled"] == "boolean") && (v0["description"] == null || typeof v0["description"] == "string") && (v0["tag"] == null || (plainObject(v0["tag"]) && "label" in v0["tag"] && typeof v0["tag"]["label"] == "string" && (v0["tag"]["tone"] == null || ((typeof v0["tag"]["tone"] == "string" && keywordFormat(v0["tag"]["tone"])) && ["neutral","accent","info","success","warning","danger"].includes(v0["tag"]["tone"]))) && (v0["tag"]["color"] == null || typeof v0["tag"]["color"] == "string") && Object.keys(v0["tag"]).every((v1) => ["label","tone","color"].includes(v1)))) && (v0["selected"] == null || typeof v0["selected"] == "boolean") && Object.keys(v0).every((v1) => ["id","value","label","group","disabled","description","tag","selected"].includes(v1)));
|
|
36
|
+
const RC0 = ["n", "number"];
|
|
37
|
+
const RC1 = ["b", "boolean"];
|
|
38
|
+
const RC2 = ["s", "string"];
|
|
39
|
+
const RC3 = [["o"], "object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })"];
|
|
40
|
+
const RC4 = [["p",formatOf(keywordFormat)], "keyword with values group, presentation"];
|
|
41
|
+
const RC5 = [["l"], "list(object({ id: string, value: string, label: string, group?: string, disabled: boolean, selected: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), index: integer, labelledBy?: string, detail?: string, option: object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean }) }))"];
|
|
42
|
+
const RC6 = ["i", "integer"];
|
|
43
|
+
const RC7 = [["o"], "object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string })"];
|
|
44
|
+
const RC8 = [["p",formatOf(keywordFormat)], "keyword with values neutral, accent, info, success, warning, danger"];
|
|
45
|
+
const RC9 = [["o"], "object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })"];
|
|
46
|
+
const RC10 = [["o"], "object({ id: string, value: string, label: string, group?: string, disabled: boolean, selected: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })"];
|
|
47
|
+
const RC11 = [["l"], "list(object({ message: string }))"];
|
|
36
48
|
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, P23, P24, P25, P26, P27;
|
|
37
49
|
const emptyDirty = new Map();
|
|
38
50
|
const S = { n: ["internalItems","raw","display","selected","expanded","rows","active","helpOpen","lookupError","validation","uid","submitted","groups","creatable","createIndex","message","statusText","validationStatus"], t: [["l",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"s","s","s","b",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"i","b","s",["o",["status",["p",formatOf(keywordFormat)],"touched","b","dirty","b","issues",["l",["o",["message","s"]]]],1],"s","s",["l",["o",["name","s","role",["p",formatOf(keywordFormat)],"label","s","rows",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"index","i","labelledBy","s","detail","s","option",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"selected","b"]]]]]]]],"b","i","s","s","s"], f: import.meta.url, g: "ui-combobox", d: { "query-change": [detailCheck(checkObject([["query", checkString, false], ["display", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "value-change": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "items-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "free-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["status", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["pristine","pending","valid","warning","error"]}), false], ["touched", checkBoolean, false], ["dirty", checkBoolean, false], ["issues", checkList(checkObject([["message", checkString, false], ["path", checkList(checkUnknown), true], ["severity", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["error","warning"]}), true]], false)), false], ["output", checkUnknown, true]], false)), true, true, false], "options-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "add-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "remove-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-item": [detailCheck(checkObject([["query", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "selected-values-change": [detailCheck(checkObject([["selectedValues", checkList(checkString), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [[], "", "", null, false, [], null, false, "", { "status": "pristine", "touched": false, "dirty": false, "issues": [] }, "", "", [], false, 0, "", "", "pristine"] };
|
|
@@ -40,12 +52,9 @@ const D = { g: "ui-combobox", props: { "allowCreate": { "required":false,"defaul
|
|
|
40
52
|
const C = (host) => activateModule(controller, host);
|
|
41
53
|
|
|
42
54
|
export function createUiCombobox(options = {}, html) {
|
|
43
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
55
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
56
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["allow-create","allow-free-text","auto-highlight","clear-query-on-blur","clearable","disabled","disclosure","filter","grow","help","invalid","items","label","label-visibility","loading","max-rows","multiple","muted","name","open-on-focus","placeholder","query","readonly","required","select-on-tab","selected-values","size","token-separators","value"].includes(name)));
|
|
44
57
|
const element = document.createElement("div");
|
|
45
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
46
|
-
if (value === null || value === undefined || value === false) continue;
|
|
47
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
48
|
-
}
|
|
49
58
|
element.setAttribute("component", "ui-combobox");
|
|
50
59
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
51
60
|
const v = [[], "", "", null, false, [], null, false, "", { "status": "pristine", "touched": false, "dirty": false, "issues": [] }, "", "", [], false, 0, "", "", "pristine", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
|
|
@@ -90,17 +99,21 @@ export function createUiCombobox(options = {}, html) {
|
|
|
90
99
|
const o = r.i;
|
|
91
100
|
if (c & 1073741824) r.w = 0;
|
|
92
101
|
if (c & -1073741824) {
|
|
93
|
-
const x0 = r.j;
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
const x0 = checkedReferenceValue(S, r.j, RC0, "expression:$index:index", "index");
|
|
103
|
+
if (x0 !== NONCONFORMING) {
|
|
104
|
+
const s0 = toAttribute(x0, "data-index");
|
|
105
|
+
if (s0 !== r.v0) writeAttribute(r.n, "data-index", r.v0 = s0);
|
|
106
|
+
}
|
|
96
107
|
}
|
|
97
108
|
if (c & 1619001344) {
|
|
98
|
-
const x1 = ((
|
|
99
|
-
|
|
100
|
-
|
|
109
|
+
const x1 = ((q) => q === NONCONFORMING ? q : q ? true : truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "disabled"), RC1, "expression:$disabled or $readonly or $item.disabled:item.disabled", "item.disabled"))))((truthy(v[23]) || truthy(v[40])));
|
|
110
|
+
if (x1 !== NONCONFORMING) {
|
|
111
|
+
const s1 = toAttribute(x1, "disabled");
|
|
112
|
+
if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
|
|
113
|
+
}
|
|
101
114
|
}
|
|
102
115
|
if (c & 1073741824) {
|
|
103
|
-
const x2 = textCall("concat", [trackContainer(r, readMember(o, "label")), ", press Delete or Backspace to remove"]);
|
|
116
|
+
const x2 = textCall("concat", [trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC2, "expression:concat($item.label, ', press Delete or Backspace to remove'):item.label", "item.label")), ", press Delete or Backspace to remove"]);
|
|
104
117
|
if (x2 !== NONCONFORMING) {
|
|
105
118
|
const s2 = toAttribute(x2, "aria-label");
|
|
106
119
|
if (s2 !== r.v2) writeAttribute(r.n, "aria-label", r.v2 = s2);
|
|
@@ -108,15 +121,15 @@ export function createUiCombobox(options = {}, html) {
|
|
|
108
121
|
}
|
|
109
122
|
if (r.f0 === undefined) {
|
|
110
123
|
r.f0 = 1;
|
|
111
|
-
const s = {}; { const y = trackContainer(r, o); if (y !== NONCONFORMING) s["item"] = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null); }
|
|
112
|
-
const at = fillSlot(r.a1, r.e0, "item", J, true, s, d);
|
|
124
|
+
const s = { "item": null }; { const y = trackContainer(r, checkedReferenceValue(S, o, RC3, "expression:$item:item", "item")); if (y !== NONCONFORMING) s["item"] = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null); }
|
|
125
|
+
const at = fillSlot(r.a1, r.e0, "item", J, true, s, d, r.z ??= []);
|
|
113
126
|
if (Array.isArray(at)) { r.x0 = at; (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); }
|
|
114
127
|
else if (at !== undefined) { r.b0 = m5(d, undefined, r); at.before(r.b0.n); }
|
|
115
128
|
} else if (r.x0 !== undefined) {
|
|
116
129
|
if (c & 1073741824) {
|
|
117
130
|
const t = r.x0[1].s;
|
|
118
131
|
let w = c & 1073741824;
|
|
119
|
-
{ let y = trackContainer(r, o); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null), !("item" in t && Object.is(t["item"], y)))) { t["item"] = y; w = 1; } }
|
|
132
|
+
{ let y = trackContainer(r, checkedReferenceValue(S, o, RC3, "expression:$item:item", "item")); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:item:item", "Slot `item` prop `item` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }) })`."), false)) ? y : null), !("item" in t && Object.is(t["item"], y)))) { t["item"] = y; w = 1; } }
|
|
120
133
|
if (w) r.x0[0].p(r.x0[1], 1073741824, d);
|
|
121
134
|
}
|
|
122
135
|
} else if (r.b0 !== undefined) p5(r.b0, c, d);
|
|
@@ -131,9 +144,11 @@ export function createUiCombobox(options = {}, html) {
|
|
|
131
144
|
const p5 = (r, c, d) => {
|
|
132
145
|
if (c & 1073741824) {
|
|
133
146
|
r.w = 0;
|
|
134
|
-
const x0 = trackContainer(r, readMember(r.u.i, "label"));
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "label"), RC2, "expression:$item.label:item.label", "item.label"));
|
|
148
|
+
if (x0 !== NONCONFORMING) {
|
|
149
|
+
const s0 = toText(x0);
|
|
150
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
151
|
+
}
|
|
137
152
|
}
|
|
138
153
|
};
|
|
139
154
|
const m6 = (d) => {
|
|
@@ -185,9 +200,11 @@ export function createUiCombobox(options = {}, html) {
|
|
|
185
200
|
if (s0 !== r.v0) writeAttribute(r.n, "name", r.v0 = s0);
|
|
186
201
|
}
|
|
187
202
|
if (c & 1073741824) {
|
|
188
|
-
const x1 = trackContainer(r, readMember(o, "value"));
|
|
189
|
-
|
|
190
|
-
|
|
203
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "value"), RC2, "expression:$item.value:item.value", "item.value"));
|
|
204
|
+
if (x1 !== NONCONFORMING) {
|
|
205
|
+
const s1 = toAttribute(x1, "value");
|
|
206
|
+
if (s1 !== r.v1) writeAttribute(r.n, "value", r.v1 = s1);
|
|
207
|
+
}
|
|
191
208
|
}
|
|
192
209
|
if (c & 8388608) {
|
|
193
210
|
const x2 = v[23];
|
|
@@ -203,7 +220,7 @@ export function createUiCombobox(options = {}, html) {
|
|
|
203
220
|
};
|
|
204
221
|
const p9 = (r, c, d) => {
|
|
205
222
|
if (c & 545259530) {
|
|
206
|
-
const x0 = ((truthy(v[23]) || truthy(v[40])) || (!truthy(v[1]) && (truthy(v[34]) || (v[3]
|
|
223
|
+
const x0 = ((truthy(v[23]) || truthy(v[40])) || (!truthy(v[1]) && (truthy(v[34]) || truthy(equalValue(v[3], null)))));
|
|
207
224
|
const s0 = toAttribute(x0, "disabled");
|
|
208
225
|
if (s0 !== r.v0) writeAttribute(r.n, "disabled", r.v0 = s0);
|
|
209
226
|
}
|
|
@@ -287,18 +304,24 @@ export function createUiCombobox(options = {}, html) {
|
|
|
287
304
|
const o = r.i;
|
|
288
305
|
if (c & 1073741824) {
|
|
289
306
|
r.w = 0;
|
|
290
|
-
const x0 = trackContainer(r, readMember(o, "role"));
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
307
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "role"), RC4, "expression:$group.role:group.role", "group.role"));
|
|
308
|
+
if (x0 !== NONCONFORMING) {
|
|
309
|
+
const s0 = toAttribute(x0, "role");
|
|
310
|
+
if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
|
|
311
|
+
}
|
|
312
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC2, "expression:$group.label:group.label", "group.label"));
|
|
313
|
+
if (x1 !== NONCONFORMING) {
|
|
314
|
+
const s1 = toAttribute(x1, "aria-label");
|
|
315
|
+
if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
let t0;
|
|
319
|
+
if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "name"), RC2, "expression:$group.name:group.name", "group.name")))) !== NONCONFORMING && !t0 !== !r.b0) {
|
|
320
|
+
r.b0 = undefined;
|
|
321
|
+
clearRegion(r.a1, r.e0);
|
|
322
|
+
if (t0) { r.b0 = m14(d, undefined, r); r.e0.before(r.b0.n); }
|
|
300
323
|
} else if (r.b0 !== undefined) p14(r.b0, c, d);
|
|
301
|
-
if (c & 1073741824)
|
|
324
|
+
if (c & 1073741824) { const l = checkedReferenceValue(S, readMember(o, "rows"), RC5, "expression:$group.rows:group.rows", "group.rows"); if (l !== NONCONFORMING) { r.L1.update(l, d, c); } }
|
|
302
325
|
if (c !== -1 && c & 536872000) r.L1.each(c, d);
|
|
303
326
|
};
|
|
304
327
|
const m14 = (d, o, u) => {
|
|
@@ -311,9 +334,11 @@ export function createUiCombobox(options = {}, html) {
|
|
|
311
334
|
const p14 = (r, c, d) => {
|
|
312
335
|
if (c & 1073741824) {
|
|
313
336
|
r.w = 0;
|
|
314
|
-
const x0 = trackContainer(r, readMember(r.u.i, "name"));
|
|
315
|
-
|
|
316
|
-
|
|
337
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "name"), RC2, "expression:$group.name:group.name", "group.name"));
|
|
338
|
+
if (x0 !== NONCONFORMING) {
|
|
339
|
+
const s0 = toText(x0);
|
|
340
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
341
|
+
}
|
|
317
342
|
}
|
|
318
343
|
};
|
|
319
344
|
const m15 = (o, j, l) => {
|
|
@@ -327,9 +352,9 @@ export function createUiCombobox(options = {}, html) {
|
|
|
327
352
|
const o = r.i;
|
|
328
353
|
if (c & 1073741824) r.w = 0;
|
|
329
354
|
if (c & 1073741888) {
|
|
330
|
-
const x0 = (
|
|
355
|
+
const x0 = equalValue(checkedReferenceValue(S, readMember(o, "index"), RC6, "expression:$row.index = $active:row.index", "row.index"), checkedReferenceValue(S, v[6], RC6, "expression:$row.index = $active:active", "active"));
|
|
331
356
|
if (x0 !== NONCONFORMING) {
|
|
332
|
-
const s0 = x0;
|
|
357
|
+
const s0 = truthy(x0);
|
|
333
358
|
if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
|
|
334
359
|
}
|
|
335
360
|
}
|
|
@@ -339,40 +364,50 @@ export function createUiCombobox(options = {}, html) {
|
|
|
339
364
|
if (s1 !== r.v1) writeAttribute(r.n, "data-multiple", r.v1 = s1);
|
|
340
365
|
}
|
|
341
366
|
if (c & 1073742848) {
|
|
342
|
-
const x2 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(o, "index"))]);
|
|
367
|
+
const x2 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(o, "index"), RC6, "expression:concat($uid, '-option-', $row.index):row.index", "row.index"))]);
|
|
343
368
|
if (x2 !== NONCONFORMING) {
|
|
344
369
|
const s2 = toAttribute(x2, "id");
|
|
345
370
|
if (s2 !== r.v2) writeAttribute(r.n, "id", r.v2 = s2);
|
|
346
371
|
}
|
|
347
372
|
}
|
|
348
373
|
if (c & 1073741824) {
|
|
349
|
-
const x3 = trackContainer(r, readMember(o, "selected"));
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
374
|
+
const x3 = trackContainer(r, checkedReferenceValue(S, readMember(o, "selected"), RC1, "expression:$row.selected:row.selected", "row.selected"));
|
|
375
|
+
if (x3 !== NONCONFORMING) {
|
|
376
|
+
const s3 = toAttribute(x3, "aria-selected");
|
|
377
|
+
if (s3 !== r.v3) writeAttribute(r.n, "aria-selected", r.v3 = s3);
|
|
378
|
+
}
|
|
379
|
+
const x4 = trackContainer(r, checkedReferenceValue(S, readMember(o, "disabled"), RC1, "expression:$row.disabled:row.disabled", "row.disabled"));
|
|
380
|
+
if (x4 !== NONCONFORMING) {
|
|
381
|
+
const s4 = toAttribute(x4, "aria-disabled");
|
|
382
|
+
if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
|
|
383
|
+
}
|
|
384
|
+
const x5 = trackContainer(r, checkedReferenceValue(S, readMember(o, "index"), RC6, "expression:$row.index:row.index", "row.index"));
|
|
385
|
+
if (x5 !== NONCONFORMING) {
|
|
386
|
+
const s5 = toAttribute(x5, "data-index");
|
|
387
|
+
if (s5 !== r.v5) writeAttribute(r.n, "data-index", r.v5 = s5);
|
|
388
|
+
}
|
|
389
|
+
const x6 = trackContainer(r, checkedReferenceValue(S, readMember(o, "labelledBy"), RC2, "expression:$row.labelledBy:row.labelledBy", "row.labelledBy"));
|
|
390
|
+
if (x6 !== NONCONFORMING) {
|
|
391
|
+
const s6 = toAttribute(x6, "aria-labelledby");
|
|
392
|
+
if (s6 !== r.v6) writeAttribute(r.n, "aria-labelledby", r.v6 = s6);
|
|
393
|
+
}
|
|
394
|
+
const x7 = trackContainer(r, checkedReferenceValue(S, readMember(o, "detail"), RC2, "expression:$row.detail:row.detail", "row.detail"));
|
|
395
|
+
if (x7 !== NONCONFORMING) {
|
|
396
|
+
const s7 = toAttribute(x7, "aria-describedby");
|
|
397
|
+
if (s7 !== r.v7) writeAttribute(r.n, "aria-describedby", r.v7 = s7);
|
|
398
|
+
}
|
|
364
399
|
}
|
|
365
400
|
if (r.f0 === undefined) {
|
|
366
401
|
r.f0 = 1;
|
|
367
|
-
const s = {}; { const y = trackContainer(r, readMember(o, "option")); if (y !== NONCONFORMING) s["option"] = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null); }
|
|
368
|
-
const at = fillSlot(r.a1, r.e0, "option", J, true, s, d);
|
|
402
|
+
const s = { "option": null }; { const y = trackContainer(r, checkedReferenceValue(S, readMember(o, "option"), RC9, "expression:$row.option:row.option", "row.option")); if (y !== NONCONFORMING) s["option"] = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null); }
|
|
403
|
+
const at = fillSlot(r.a1, r.e0, "option", J, true, s, d, r.z ??= []);
|
|
369
404
|
if (Array.isArray(at)) { r.x0 = at; (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); }
|
|
370
405
|
else if (at !== undefined) { r.b0 = m16(d, undefined, r); at.before(r.b0.n); }
|
|
371
406
|
} else if (r.x0 !== undefined) {
|
|
372
407
|
if (c & 1073741824) {
|
|
373
408
|
const t = r.x0[1].s;
|
|
374
409
|
let w = c & 1073741824;
|
|
375
|
-
{ let y = trackContainer(r, readMember(o, "option")); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null), !("option" in t && Object.is(t["option"], y)))) { t["option"] = y; w = 1; } }
|
|
410
|
+
{ let y = trackContainer(r, checkedReferenceValue(S, readMember(o, "option"), RC9, "expression:$row.option:row.option", "row.option")); if (y !== NONCONFORMING && (y = (y != null && y !== ABSENT && (K1(y) || (warnOnce(S, "slot:option:option", "Slot `option` prop `option` does not satisfy its declared type `object({ id: string, value: string, label: string, group?: string, disabled?: boolean, description?: string, tag?: object({ label: string, tone?: keyword with values neutral, accent, info, success, warning, danger, color?: string }), selected?: boolean })`."), false)) ? y : null), !("option" in t && Object.is(t["option"], y)))) { t["option"] = y; w = 1; } }
|
|
376
411
|
if (w) r.x0[0].p(r.x0[1], 1073741824, d);
|
|
377
412
|
}
|
|
378
413
|
} else if (r.b0 !== undefined) p16(r.b0, c, d);
|
|
@@ -386,13 +421,17 @@ export function createUiCombobox(options = {}, html) {
|
|
|
386
421
|
return r;
|
|
387
422
|
};
|
|
388
423
|
const p16 = (r, c, d) => {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
424
|
+
let t0;
|
|
425
|
+
if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC2, "expression:$row.detail:row.detail", "row.detail")))) !== NONCONFORMING && !t0 !== !r.b0) {
|
|
426
|
+
r.b0 = undefined;
|
|
427
|
+
clearRegion(r.a0, r.e0);
|
|
428
|
+
if (t0) { r.b0 = m17(d, undefined, r); r.e0.before(r.b0.n); }
|
|
392
429
|
} else if (r.b0 !== undefined) p17(r.b0, c, d);
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
430
|
+
let t1;
|
|
431
|
+
if (c & 1073741824 && (t1 = truthyValue(notValue(truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC2, "expression:not $row.detail:row.detail", "row.detail")))))) !== NONCONFORMING && !t1 !== !r.b1) {
|
|
432
|
+
r.b1 = undefined;
|
|
433
|
+
clearRegion(r.a1, r.e1);
|
|
434
|
+
if (t1) { r.b1 = m20(d, undefined, r); r.e1.before(r.b1.n); }
|
|
396
435
|
} else if (r.b1 !== undefined) p20(r.b1, c, d);
|
|
397
436
|
};
|
|
398
437
|
const m17 = (d, o, u) => {
|
|
@@ -409,24 +448,30 @@ export function createUiCombobox(options = {}, html) {
|
|
|
409
448
|
const p17 = (r, c, d) => {
|
|
410
449
|
if (c & 1073741824) r.w = 0;
|
|
411
450
|
if (c & 1073742848) {
|
|
412
|
-
const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(r.u.u.i, "index")), "-label"]);
|
|
451
|
+
const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "index"), RC6, "expression:concat($uid, '-option-', $row.index, '-label'):row.index", "row.index")), "-label"]);
|
|
413
452
|
if (x0 !== NONCONFORMING) {
|
|
414
453
|
const s0 = toAttribute(x0, "id");
|
|
415
454
|
if (s0 !== r.v0) writeAttribute(r.a0, "id", r.v0 = s0);
|
|
416
455
|
}
|
|
417
456
|
}
|
|
418
457
|
if (c & 1073741824) {
|
|
419
|
-
const x1 = trackContainer(r, readMember(r.u.u.i, "label"));
|
|
420
|
-
|
|
421
|
-
|
|
458
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "label"), RC2, "expression:$row.label:row.label", "row.label"));
|
|
459
|
+
if (x1 !== NONCONFORMING) {
|
|
460
|
+
const s1 = toText(x1);
|
|
461
|
+
if (s1 !== r.v1) r.a1.data = r.v1 = s1;
|
|
462
|
+
}
|
|
422
463
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
464
|
+
let t0;
|
|
465
|
+
if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "tag"), RC7, "expression:$row.tag:row.tag", "row.tag")))) !== NONCONFORMING && !t0 !== !r.b0) {
|
|
466
|
+
r.b0 = undefined;
|
|
467
|
+
clearRegion(r.a2, r.e0);
|
|
468
|
+
if (t0) { r.b0 = m18(d, undefined, r); r.e0.before(r.b0.n); }
|
|
426
469
|
} else if (r.b0 !== undefined) p18(r.b0, c, d);
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
470
|
+
let t1;
|
|
471
|
+
if (c & 1073741824 && (t1 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "description"), RC2, "expression:$row.description:row.description", "row.description")))) !== NONCONFORMING && !t1 !== !r.b1) {
|
|
472
|
+
r.b1 = undefined;
|
|
473
|
+
clearRegion(r.a3, r.e1);
|
|
474
|
+
if (t1) { r.b1 = m19(d, undefined, r); r.e1.before(r.b1.n); }
|
|
430
475
|
} else if (r.b1 !== undefined) p19(r.b1, c, d);
|
|
431
476
|
};
|
|
432
477
|
const m18 = (d, o, u) => {
|
|
@@ -440,18 +485,24 @@ export function createUiCombobox(options = {}, html) {
|
|
|
440
485
|
const p18 = (r, c, d) => {
|
|
441
486
|
if (c & 1073741824) {
|
|
442
487
|
r.w = 0;
|
|
443
|
-
const x0 = trackContainer(r, readMember(readMember(r.u.u.u.i, "tag"), "tone"));
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
488
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(readMember(r.u.u.u.i, "tag"), "tone"), RC8, "expression:$row.tag.tone:row.tag.tone", "row.tag.tone"));
|
|
489
|
+
if (x0 !== NONCONFORMING) {
|
|
490
|
+
const s0 = toAttribute(x0, "tone");
|
|
491
|
+
if (s0 !== r.v0) writeAttribute(r.n, "tone", r.v0 = s0);
|
|
492
|
+
}
|
|
493
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(readMember(r.u.u.u.i, "tag"), "color"), RC2, "expression:$row.tag.color:row.tag.color", "row.tag.color"));
|
|
494
|
+
if (x1 !== NONCONFORMING) {
|
|
495
|
+
const s1 = toText(x1);
|
|
496
|
+
if (s1 !== r.v1) r.n.style.setProperty("--ui-badge-color", r.v1 = s1);
|
|
497
|
+
}
|
|
498
|
+
const x2 = trackContainer(r, checkedReferenceValue(S, readMember(readMember(r.u.u.u.i, "tag"), "label"), RC2, "expression:$row.tag.label:row.tag.label", "row.tag.label"));
|
|
499
|
+
if (x2 !== NONCONFORMING) {
|
|
500
|
+
const s3 = toText(x2);
|
|
501
|
+
if (s3 !== r.v3) r.a2.data = r.v3 = s3;
|
|
502
|
+
}
|
|
452
503
|
}
|
|
453
504
|
if (c & 1073742848) {
|
|
454
|
-
const x3 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(r.u.u.u.i, "index")), "-tag"]);
|
|
505
|
+
const x3 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.u.i, "index"), RC6, "expression:concat($uid, '-option-', $row.index, '-tag'):row.index", "row.index")), "-tag"]);
|
|
455
506
|
if (x3 !== NONCONFORMING) {
|
|
456
507
|
const s2 = toAttribute(x3, "id");
|
|
457
508
|
if (s2 !== r.v2) writeAttribute(r.a1, "id", r.v2 = s2);
|
|
@@ -468,16 +519,18 @@ export function createUiCombobox(options = {}, html) {
|
|
|
468
519
|
const p19 = (r, c, d) => {
|
|
469
520
|
if (c & 1073741824) r.w = 0;
|
|
470
521
|
if (c & 1073742848) {
|
|
471
|
-
const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, readMember(r.u.u.u.i, "index")), "-description"]);
|
|
522
|
+
const x0 = textCall("concat", [v[10], "-option-", trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.u.i, "index"), RC6, "expression:concat($uid, '-option-', $row.index, '-description'):row.index", "row.index")), "-description"]);
|
|
472
523
|
if (x0 !== NONCONFORMING) {
|
|
473
524
|
const s0 = toAttribute(x0, "id");
|
|
474
525
|
if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
|
|
475
526
|
}
|
|
476
527
|
}
|
|
477
528
|
if (c & 1073741824) {
|
|
478
|
-
const x1 = trackContainer(r, readMember(r.u.u.u.i, "description"));
|
|
479
|
-
|
|
480
|
-
|
|
529
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.u.i, "description"), RC2, "expression:$row.description:row.description", "row.description"));
|
|
530
|
+
if (x1 !== NONCONFORMING) {
|
|
531
|
+
const s1 = toText(x1);
|
|
532
|
+
if (s1 !== r.v1) r.a1.data = r.v1 = s1;
|
|
533
|
+
}
|
|
481
534
|
}
|
|
482
535
|
};
|
|
483
536
|
const m20 = (d, o, u) => {
|
|
@@ -490,9 +543,11 @@ export function createUiCombobox(options = {}, html) {
|
|
|
490
543
|
const p20 = (r, c, d) => {
|
|
491
544
|
if (c & 1073741824) {
|
|
492
545
|
r.w = 0;
|
|
493
|
-
const x0 = trackContainer(r, readMember(r.u.u.i, "label"));
|
|
494
|
-
|
|
495
|
-
|
|
546
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.u.i, "label"), RC2, "expression:$row.label:row.label", "row.label"));
|
|
547
|
+
if (x0 !== NONCONFORMING) {
|
|
548
|
+
const s0 = toText(x0);
|
|
549
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
550
|
+
}
|
|
496
551
|
}
|
|
497
552
|
};
|
|
498
553
|
const m21 = (d) => {
|
|
@@ -503,9 +558,9 @@ export function createUiCombobox(options = {}, html) {
|
|
|
503
558
|
};
|
|
504
559
|
const p21 = (r, c, d) => {
|
|
505
560
|
if (c & 16448) {
|
|
506
|
-
const x0 = (
|
|
561
|
+
const x0 = equalValue(v[14], checkedReferenceValue(S, v[6], RC6, "expression:$createIndex = $active:active", "active"));
|
|
507
562
|
if (x0 !== NONCONFORMING) {
|
|
508
|
-
const s0 = x0;
|
|
563
|
+
const s0 = truthy(x0);
|
|
509
564
|
if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
|
|
510
565
|
}
|
|
511
566
|
}
|
|
@@ -556,9 +611,9 @@ export function createUiCombobox(options = {}, html) {
|
|
|
556
611
|
return r;
|
|
557
612
|
};
|
|
558
613
|
const p23 = (r, c, d) => {
|
|
559
|
-
if (r.f0 === undefined) { r.f0 = 1; const at =
|
|
560
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m24(d); at.before(r.b0.n); } }
|
|
561
|
-
else if (r.b0 !== undefined) p24(r.b0, c, d);
|
|
614
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a0, r.e0, "empty", J, true, undefined, d, r.z ??= []);
|
|
615
|
+
if (typeof at === "function") r.f0 = at(r, (d, at) => m24(d, undefined, r), p24); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m24(d); at.before(r.b0.n); } }
|
|
616
|
+
else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p24(r.b0, c, d);
|
|
562
617
|
};
|
|
563
618
|
const m24 = (d) => {
|
|
564
619
|
const n = (P24 ??= buildTemplate(T24)).cloneNode(true);
|
|
@@ -587,9 +642,11 @@ export function createUiCombobox(options = {}, html) {
|
|
|
587
642
|
const o = r.i;
|
|
588
643
|
if (c & 1073741824) {
|
|
589
644
|
r.w = 0;
|
|
590
|
-
const x0 = trackContainer(r, readMember(o, "message"));
|
|
591
|
-
|
|
592
|
-
|
|
645
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "message"), RC2, "expression:$issue.message:issue.message", "issue.message"));
|
|
646
|
+
if (x0 !== NONCONFORMING) {
|
|
647
|
+
const s0 = toText(x0);
|
|
648
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
649
|
+
}
|
|
593
650
|
}
|
|
594
651
|
};
|
|
595
652
|
const m27 = (d) => {
|
|
@@ -601,179 +658,183 @@ export function createUiCombobox(options = {}, html) {
|
|
|
601
658
|
const p27 = (r, c, d) => {
|
|
602
659
|
};
|
|
603
660
|
const p0 = (r, c, d) => {
|
|
661
|
+
if (c === -1) {
|
|
662
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
663
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
664
|
+
}
|
|
604
665
|
if (c & 1024) {
|
|
605
666
|
const x0 = textCall("concat", [v[10], "-input"]);
|
|
606
667
|
if (x0 !== NONCONFORMING) {
|
|
607
|
-
const
|
|
608
|
-
if (
|
|
668
|
+
const s1 = toAttribute(x0, "for");
|
|
669
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "for", r.v1 = s1);
|
|
609
670
|
}
|
|
610
671
|
if (x0 !== NONCONFORMING) {
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
672
|
+
const s6 = toAttribute(x0, "id");
|
|
673
|
+
if (s6 !== r.v6) writeAttribute(r.a8, "id", r.v6 = s6);
|
|
613
674
|
}
|
|
614
675
|
const x1 = textCall("concat", [v[10], "-listbox"]);
|
|
615
676
|
if (x1 !== NONCONFORMING) {
|
|
616
|
-
const
|
|
617
|
-
if (
|
|
677
|
+
const s7 = toAttribute(x1, "aria-controls");
|
|
678
|
+
if (s7 !== r.v7) writeAttribute(r.a8, "aria-controls", r.v7 = s7);
|
|
618
679
|
}
|
|
619
680
|
if (x1 !== NONCONFORMING) {
|
|
620
|
-
const
|
|
621
|
-
if (
|
|
681
|
+
const s17 = toAttribute(x1, "id");
|
|
682
|
+
if (s17 !== r.v17) writeAttribute(r.a16, "id", r.v17 = s17);
|
|
622
683
|
}
|
|
623
684
|
const x2 = textCall("concat", [v[10], "-validation"]);
|
|
624
685
|
if (x2 !== NONCONFORMING) {
|
|
625
|
-
const
|
|
626
|
-
if (
|
|
686
|
+
const s20 = toAttribute(x2, "id");
|
|
687
|
+
if (s20 !== r.v20) writeAttribute(r.a22, "id", r.v20 = s20);
|
|
627
688
|
}
|
|
628
689
|
}
|
|
629
690
|
if (c & 536870912) {
|
|
630
|
-
const x3 = (v[31]
|
|
631
|
-
const
|
|
632
|
-
if (
|
|
691
|
+
const x3 = equalValue(v[31], "sr-only");
|
|
692
|
+
const s2 = truthy(x3);
|
|
693
|
+
if (s2 !== r.v2) r.a1.classList.toggle("sr-only", r.v2 = s2);
|
|
633
694
|
const x4 = v[30];
|
|
634
|
-
const
|
|
635
|
-
if (
|
|
695
|
+
const s3 = toText(x4);
|
|
696
|
+
if (s3 !== r.v3) r.a2.data = r.v3 = s3;
|
|
636
697
|
}
|
|
637
698
|
if (c & 603979776) {
|
|
638
699
|
const x5 = (truthy(v[34]) && truthy(v[26]));
|
|
639
|
-
const
|
|
640
|
-
if (
|
|
700
|
+
const s4 = x5;
|
|
701
|
+
if (s4 !== r.v4) r.a5.classList.toggle("multiline", r.v4 = s4);
|
|
641
702
|
}
|
|
642
703
|
if (c & 536870912) {
|
|
643
704
|
const x6 = v[33];
|
|
644
|
-
const
|
|
645
|
-
if (
|
|
705
|
+
const s5 = toText(x6);
|
|
706
|
+
if (s5 !== r.v5) r.a5.style.setProperty("--_max-rows", r.v5 = s5);
|
|
646
707
|
}
|
|
647
708
|
if (c & 16) {
|
|
648
709
|
const x7 = v[4];
|
|
649
|
-
const
|
|
650
|
-
if (
|
|
710
|
+
const s8 = toAttribute(x7, "aria-expanded");
|
|
711
|
+
if (s8 !== r.v8) writeAttribute(r.a8, "aria-expanded", r.v8 = s8);
|
|
651
712
|
const x8 = !v[4];
|
|
652
|
-
const
|
|
653
|
-
if (
|
|
713
|
+
const s16 = toAttribute(x8, "hidden");
|
|
714
|
+
if (s16 !== r.v16) writeAttribute(r.a15, "hidden", r.v16 = s16);
|
|
654
715
|
}
|
|
655
716
|
if (c & 268566528) {
|
|
656
|
-
const x9 = (truthy(v[28]) || (v[17]
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
717
|
+
const x9 = (truthy(v[28]) || truthy(equalValue(v[17], "error")));
|
|
718
|
+
const s9 = toAttribute(x9, "aria-invalid");
|
|
719
|
+
if (s9 !== r.v9) writeAttribute(r.a8, "aria-invalid", r.v9 = s9);
|
|
659
720
|
}
|
|
660
721
|
if (c & 537001984) {
|
|
661
|
-
const x10 = (truthy(v[32]) || (v[17]
|
|
662
|
-
const
|
|
663
|
-
if (
|
|
722
|
+
const x10 = (truthy(v[32]) || truthy(equalValue(v[17], "pending")));
|
|
723
|
+
const s10 = toAttribute(x10, "aria-busy");
|
|
724
|
+
if (s10 !== r.v10) writeAttribute(r.a8, "aria-busy", r.v10 = s10);
|
|
664
725
|
}
|
|
665
726
|
if (c & 4) {
|
|
666
727
|
const f0 = [];
|
|
667
728
|
const x11 = rec(f0, v[2]);
|
|
668
|
-
if (c === -1 || c & 4 || readsChanged(r.
|
|
669
|
-
r.
|
|
670
|
-
r.
|
|
729
|
+
if (c === -1 || c & 4 || readsChanged(r.v11, f0)) {
|
|
730
|
+
r.v11 = f0;
|
|
731
|
+
r.a8["value"] = x11;
|
|
671
732
|
}
|
|
672
733
|
}
|
|
673
734
|
if (c & 536870912) {
|
|
674
735
|
const x12 = v[38];
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
736
|
+
const s12 = toAttribute(x12, "placeholder");
|
|
737
|
+
if (s12 !== r.v12) writeAttribute(r.a8, "placeholder", r.v12 = s12);
|
|
677
738
|
}
|
|
678
739
|
if (c & 8388608) {
|
|
679
740
|
const x13 = v[23];
|
|
680
|
-
const
|
|
681
|
-
if (
|
|
741
|
+
const s13 = toAttribute(x13, "disabled");
|
|
742
|
+
if (s13 !== r.v13) writeAttribute(r.a8, "disabled", r.v13 = s13);
|
|
682
743
|
}
|
|
683
744
|
if (c & 536870912) {
|
|
684
745
|
const x14 = v[40];
|
|
685
|
-
const
|
|
686
|
-
if (
|
|
746
|
+
const s14 = toAttribute(x14, "readonly");
|
|
747
|
+
if (s14 !== r.v14) writeAttribute(r.a8, "readonly", r.v14 = s14);
|
|
687
748
|
const x15 = textCall("concat", [v[30], " suggestions"]);
|
|
688
749
|
if (x15 !== NONCONFORMING) {
|
|
689
|
-
const
|
|
690
|
-
if (
|
|
750
|
+
const s18 = toAttribute(x15, "aria-label");
|
|
751
|
+
if (s18 !== r.v18) writeAttribute(r.a16, "aria-label", r.v18 = s18);
|
|
691
752
|
}
|
|
692
753
|
const x16 = v[32];
|
|
693
|
-
const
|
|
694
|
-
if (
|
|
754
|
+
const s19 = toAttribute(x16, "aria-busy");
|
|
755
|
+
if (s19 !== r.v19) writeAttribute(r.a16, "aria-busy", r.v19 = s19);
|
|
695
756
|
}
|
|
696
757
|
if (c & 1610612737) {
|
|
697
|
-
const x17 = (
|
|
758
|
+
const x17 = ((q) => q === NONCONFORMING ? q : q ? truthyValue(notValue(truthyValue(((q) => q === NONCONFORMING ? q : q ? truthyValue(checkedReferenceValue(S, readIndex(v[0], 0), RC3, "expression:$required and not ($multiple and $internalItems.0):internalItems.0", "internalItems.0")) : false)(truthy(v[34]))))) : false)(truthy(v[41]));
|
|
698
759
|
if (x17 !== NONCONFORMING) {
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
760
|
+
const s15 = toAttribute(x17, "required");
|
|
761
|
+
if (s15 !== r.v15) writeAttribute(r.a8, "required", r.v15 = s15);
|
|
701
762
|
}
|
|
702
763
|
}
|
|
703
764
|
if (c & 1073742336) {
|
|
704
765
|
const x18 = !truthy(readMember(readMember(v[9], "issues"), "length"));
|
|
705
|
-
const
|
|
706
|
-
if (
|
|
766
|
+
const s21 = toAttribute(x18, "hidden");
|
|
767
|
+
if (s21 !== r.v21) writeAttribute(r.a22, "hidden", r.v21 = s21);
|
|
707
768
|
}
|
|
708
769
|
if (c & 65536) {
|
|
709
770
|
const x19 = v[16];
|
|
710
|
-
const
|
|
711
|
-
if (
|
|
771
|
+
const s22 = toText(x19);
|
|
772
|
+
if (s22 !== r.v22) r.a24.data = r.v22 = s22;
|
|
712
773
|
}
|
|
713
774
|
if (c & 805437440) {
|
|
714
775
|
const x20 = hostState(["size","muted","validationStatus","invalid","multiple"], [v[44], v[35], v[17], v[28], v[34]]);
|
|
715
|
-
const
|
|
716
|
-
if (
|
|
776
|
+
const s23 = x20;
|
|
777
|
+
if (s23 !== r.v23) writeAttribute(r.n, "data-ui-combobox-state", (r.v23 = s23) === "" ? null : s23);
|
|
717
778
|
}
|
|
718
779
|
if (c & 536870912 && !(truthy(v[41])) !== !r.b0) {
|
|
719
|
-
if (r.b0) { r.b0 = undefined; clearRegion(r.
|
|
780
|
+
if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
|
|
720
781
|
else { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
721
782
|
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
783
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = initializeSlot(r.a6, r.e1, "start", J, false, undefined, d);
|
|
784
|
+
if (typeof at === "function") r.f1 = at(r, (d, at) => m2(d, undefined, r), p2); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
|
|
785
|
+
else if (typeof r.f1 === "function") r.f1(c, d); else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
722
786
|
if (c & 536870912 && !(truthy(v[34])) !== !r.b2) {
|
|
723
|
-
if (r.b2) { dispose(r.b2); r.b2 = undefined; clearRegion(r.
|
|
787
|
+
if (r.b2) { dispose(r.b2); r.b2 = undefined; clearRegion(r.a7, r.e2); }
|
|
724
788
|
else { r.b2 = m3(d); r.e2.before(r.b2.n); }
|
|
725
789
|
} else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
726
790
|
if (c & 536870912 && !((truthy(v[36]) && !truthy(v[34]))) !== !r.b3) {
|
|
727
|
-
if (r.b3) { r.b3 = undefined; clearRegion(r.
|
|
791
|
+
if (r.b3) { r.b3 = undefined; clearRegion(r.a9, r.e3); }
|
|
728
792
|
else { r.b3 = m6(d); r.e3.before(r.b3.n); }
|
|
729
793
|
} else if (r.b3 !== undefined) p6(r.b3, c, d);
|
|
730
794
|
if (c & 536870912 && !((truthy(v[36]) && truthy(v[34]))) !== !r.b4) {
|
|
731
|
-
if (r.b4) { r.b4 = undefined; clearRegion(r.
|
|
795
|
+
if (r.b4) { r.b4 = undefined; clearRegion(r.a10, r.e4); }
|
|
732
796
|
else { r.b4 = m7(d); r.e4.before(r.b4.n); }
|
|
733
797
|
} else if (r.b4 !== undefined) p7(r.b4, c, d);
|
|
734
798
|
if (c & 4194304 && !(truthy(v[22])) !== !r.b5) {
|
|
735
|
-
if (r.b5) { r.b5 = undefined; clearRegion(r.
|
|
799
|
+
if (r.b5) { r.b5 = undefined; clearRegion(r.a11, r.e5); }
|
|
736
800
|
else { r.b5 = m9(d); r.e5.before(r.b5.n); }
|
|
737
801
|
} else if (r.b5 !== undefined) p9(r.b5, c, d);
|
|
738
802
|
if (c & 16777216 && !(truthy(v[24])) !== !r.b6) {
|
|
739
|
-
if (r.b6) { r.b6 = undefined; clearRegion(r.
|
|
803
|
+
if (r.b6) { r.b6 = undefined; clearRegion(r.a12, r.e6); }
|
|
740
804
|
else { r.b6 = m10(d); r.e6.before(r.b6.n); }
|
|
741
805
|
} else if (r.b6 !== undefined) p10(r.b6, c, d);
|
|
742
806
|
if (c & 134217728 && !(truthy(v[27])) !== !r.b7) {
|
|
743
|
-
if (r.b7) { r.b7 = undefined; clearRegion(r.
|
|
807
|
+
if (r.b7) { r.b7 = undefined; clearRegion(r.a13, r.e7); }
|
|
744
808
|
else { r.b7 = m11(d); r.e7.before(r.b7.n); }
|
|
745
809
|
} else if (r.b7 !== undefined) p11(r.b7, c, d);
|
|
746
810
|
if (c & 134217728 && !(truthy(v[27])) !== !r.b8) {
|
|
747
|
-
if (r.b8) { r.b8 = undefined; clearRegion(r.
|
|
811
|
+
if (r.b8) { r.b8 = undefined; clearRegion(r.a14, r.e8); }
|
|
748
812
|
else { r.b8 = m12(d); r.e8.before(r.b8.n); }
|
|
749
813
|
} else if (r.b8 !== undefined) p12(r.b8, c, d);
|
|
750
814
|
if (c & 1073745920) r.L9.update(v[12], d, c);
|
|
751
815
|
if (c !== -1 && c & 536872000) r.L9.each(c, d);
|
|
752
816
|
if (c & 8192 && !(v[13]) !== !r.b10) {
|
|
753
|
-
if (r.b10) { r.b10 = undefined; clearRegion(r.
|
|
817
|
+
if (r.b10) { r.b10 = undefined; clearRegion(r.a18, r.e10); }
|
|
754
818
|
else { r.b10 = m21(d); r.e10.before(r.b10.n); }
|
|
755
819
|
} else if (r.b10 !== undefined) p21(r.b10, c, d);
|
|
756
820
|
if (c & 32768 && !(truthy(v[15])) !== !r.b11) {
|
|
757
|
-
if (r.b11) { r.b11 = undefined; clearRegion(r.
|
|
821
|
+
if (r.b11) { r.b11 = undefined; clearRegion(r.a19, r.e11); }
|
|
758
822
|
else { r.b11 = m22(d); r.e11.before(r.b11.n); }
|
|
759
823
|
} else if (r.b11 !== undefined) p22(r.b11, c, d);
|
|
760
824
|
let t12;
|
|
761
|
-
if (c & 1610621216 && (t12 = (
|
|
825
|
+
if (c & 1610621216 && (t12 = truthyValue(((q) => q === NONCONFORMING ? q : q ? !truthy(v[8]) : false)(truthyValue(((q) => q === NONCONFORMING ? q : q ? !v[13] : false)(truthyValue(((q) => q === NONCONFORMING ? q : q ? truthyValue(notValue(truthyValue(checkedReferenceValue(S, readIndex(v[5], 0), RC10, "expression:not $loading and not $rows.0 and not $creatable and not $lookupError:rows.0", "rows.0")))) : false)(!truthy(v[32])))))))) !== NONCONFORMING && !t12 !== !r.b12) {
|
|
762
826
|
dispose(r.b12);
|
|
763
827
|
r.b12 = undefined;
|
|
764
|
-
clearRegion(r.
|
|
828
|
+
clearRegion(r.a20, r.e12);
|
|
765
829
|
if (t12) { r.b12 = m23(d); r.e12.before(r.b12.n); }
|
|
766
830
|
} else if (r.b12 !== undefined) p23(r.b12, c, d);
|
|
767
|
-
if (
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
if (r.
|
|
772
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.
|
|
773
|
-
else if (r.
|
|
774
|
-
if (r.f15 === undefined) { r.f15 = 1; const at = fillSlot(r.a25, r.e15, "", J, false, undefined, d);
|
|
775
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b15 = m27(d); at.before(r.b15.n); } }
|
|
776
|
-
else if (r.b15 !== undefined) p27(r.b15, c, d);
|
|
831
|
+
if (r.f13 === undefined) { r.f13 = 1; const at = initializeSlot(r.a21, r.e13, "footer", J, false, undefined, d);
|
|
832
|
+
if (typeof at === "function") r.f13 = at(r, (d, at) => m25(d, undefined, r), p25); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b13 = m25(d); at.before(r.b13.n); } }
|
|
833
|
+
else if (typeof r.f13 === "function") r.f13(c, d); else if (r.b13 !== undefined) p25(r.b13, c, d);
|
|
834
|
+
if (c & 1073742336) { const l = checkedReferenceValue(S, readMember(v[9], "issues"), RC11, "expression:$validation.issues:validation.issues", "validation.issues"); if (l !== NONCONFORMING) { r.L14.update(l, d, c); } }
|
|
835
|
+
if (r.f15 === undefined) { r.f15 = 1; const at = initializeSlot(r.a26, r.e15, "", J, false, undefined, d);
|
|
836
|
+
if (typeof at === "function") r.f15 = at(r, (d, at) => m27(d, undefined, r), p27); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b15 = m27(d); at.before(r.b15.n); } }
|
|
837
|
+
else if (typeof r.f15 === "function") r.f15(c, d); else if (r.b15 !== undefined) p27(r.b15, c, d);
|
|
777
838
|
};
|
|
778
839
|
const t0 = element.firstChild.nextSibling;
|
|
779
840
|
const t1 = t0.firstChild;
|
|
@@ -804,10 +865,12 @@ export function createUiCombobox(options = {}, html) {
|
|
|
804
865
|
const t26 = t25.firstChild;
|
|
805
866
|
const t27 = t25.nextSibling.nextSibling;
|
|
806
867
|
const t28 = t27.firstChild;
|
|
807
|
-
const R = { n: element,
|
|
868
|
+
const R = { n: element, a1: t0, a2: t1, a5: t5, a8: t9, a15: t16, a16: t17, a22: t23, a24: t26, v0: undefined, v1: null, v2: false, v3: "", v4: false, v5: undefined, v6: null, v7: null, v8: null, v9: null, v10: null, v11: undefined, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: null, v22: "", v23: undefined, a3: t2, e0: t2.nextSibling, b0: undefined, a6: t7, e1: t7.nextSibling, b1: undefined, f1: undefined, a7: t8, e2: t8.nextSibling, b2: undefined, a9: t10, e3: t10.nextSibling, b3: undefined, a10: t11, e4: t11.nextSibling, b4: undefined, a11: t12, e5: t12.nextSibling, b5: undefined, a12: t13, e6: t13.nextSibling, b6: undefined, a13: t14, e7: t14.nextSibling, b7: undefined, a14: t15, e8: t15.nextSibling, b8: undefined, L9: new KeyedList(t18, t18.nextSibling, m13, p13, (o) => readMember(o, "name"), "group"), a18: t19, e10: t19.nextSibling, b10: undefined, a19: t20, e11: t20.nextSibling, b11: undefined, a20: t21, e12: t21.nextSibling, b12: undefined, a21: t22, e13: t22.nextSibling, b13: undefined, f13: undefined, L14: new IndexedList(t24, t24.nextSibling, m26, p26, undefined, "issue"), a26: t28, e15: t28.nextSibling, b15: undefined, f15: undefined };
|
|
808
869
|
const I = { B };
|
|
809
870
|
const J = project(I, children, slots);
|
|
871
|
+
sharePlainSlots(I, J, ["item","option"]);
|
|
810
872
|
I.R = new Set();
|
|
873
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
811
874
|
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
812
875
|
manageProps(I);
|
|
813
876
|
I.r["field"] = t4;
|