@threadlabs/looma 0.52.11 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkList, checkObject, checkRecord, checkString, checkUnknown, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, equalValue, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkList, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-link-form/ui-editor-link-form.js";
|
|
4
4
|
import "../styles/ui-editor-link-form.css";
|
|
5
5
|
|
|
@@ -15,6 +15,7 @@ const T8 = ["ui-icon",["slot","trailing","name","check"]];
|
|
|
15
15
|
const T9 = ["",[],"\n ",["ui-checkbox",["size","sm","data-link-new-tab",""],"Open in new tab"],"\n "];
|
|
16
16
|
const T10 = ["",[],"\n ",["ui-form-field",[],["label",["slot","label"],"Text"],["ui-input",["data-link-text","","size","sm"]]],"\n "];
|
|
17
17
|
const T11 = ["ui-text",["size","sm","tone","danger","role","alert"],0];
|
|
18
|
+
const RC0 = ["s", "string"];
|
|
18
19
|
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11;
|
|
19
20
|
const emptyDirty = new Map();
|
|
20
21
|
const S = { n: ["base","heading","fieldLabel"], t: ["s","?","?"], f: import.meta.url, g: "ui-editor-link-form", k: 1, d: { "destination": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false], "text": [detailCheck(checkObject([["text", checkString, false]], false)), true, true, false], "new-tab": [detailCheck(checkObject([["newTab", checkBoolean, false]], false)), true, true, false], "choose": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false], "clear": [detailCheck(checkRecord(checkUnknown)), true, true, false], "save": [detailCheck(checkRecord(checkUnknown)), true, true, false], "dismiss": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs, i: ["ui-editor-link-form"] };
|
|
@@ -22,12 +23,9 @@ const D = { g: "ui-editor-link-form", props: { "autofocus": { "required":false,"
|
|
|
22
23
|
const C = (host) => activateModule(controller, host);
|
|
23
24
|
|
|
24
25
|
export function createUiEditorLinkForm(options = {}, html) {
|
|
25
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
26
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
27
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["autofocus","error","existing","mode","new-tab","placeholder","results","searchable","selected","status","text","text-editable","value"].includes(name)));
|
|
26
28
|
const element = document.createElement("form");
|
|
27
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
28
|
-
if (value === null || value === undefined || value === false) continue;
|
|
29
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
30
|
-
}
|
|
31
29
|
if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Edit link");
|
|
32
30
|
element.setAttribute("component", "ui-editor-link-form");
|
|
33
31
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -61,7 +59,7 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
61
59
|
};
|
|
62
60
|
const p1 = (r, c, d) => {
|
|
63
61
|
if (c & 1073741888) {
|
|
64
|
-
const x0 = readIndex({ "true": "search", "false": "link" }, textCall("concat", [(v[6]
|
|
62
|
+
const x0 = readIndex({ "true": "search", "false": "link" }, textCall("concat", [equalValue(v[6], "target")]));
|
|
65
63
|
if (x0 !== NONCONFORMING) {
|
|
66
64
|
const s0 = toAttribute(x0, "name");
|
|
67
65
|
if (s0 !== r.v0) writeAttribute(r.a0, "name", r.v0 = s0);
|
|
@@ -84,7 +82,7 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
84
82
|
const s3 = toAttribute(x3, "value");
|
|
85
83
|
if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
|
|
86
84
|
}
|
|
87
|
-
if (c & 32768 && !((v[15]
|
|
85
|
+
if (c & 32768 && !(truthy(equalValue(v[15], "", true))) !== !r.b0) {
|
|
88
86
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
|
|
89
87
|
else { r.b0 = m2(d); r.e0.before(r.b0.n); }
|
|
90
88
|
} else if (r.b0 !== undefined) p2(r.b0, c, d);
|
|
@@ -132,7 +130,7 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
132
130
|
return r;
|
|
133
131
|
};
|
|
134
132
|
const p4 = (r, c, d) => {
|
|
135
|
-
if (c & 4096 && !((v[12]
|
|
133
|
+
if (c & 4096 && !(truthy(equalValue(v[12], "", true))) !== !r.b0) {
|
|
136
134
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a0, r.e0); }
|
|
137
135
|
else { r.b0 = m5(d); r.e0.before(r.b0.n); }
|
|
138
136
|
} else if (r.b0 !== undefined) p5(r.b0, c, d);
|
|
@@ -167,27 +165,39 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
167
165
|
const o = r.i;
|
|
168
166
|
if (c & 1073741824) r.w = 0;
|
|
169
167
|
if (c & 1073743872) {
|
|
170
|
-
const x0 = (readMember(o, "id")
|
|
171
|
-
|
|
172
|
-
|
|
168
|
+
const x0 = equalValue(checkedReferenceValue(S, readMember(o, "id"), RC0, "expression:$result.id = $selected:result.id", "result.id"), v[11]);
|
|
169
|
+
if (x0 !== NONCONFORMING) {
|
|
170
|
+
const s0 = toAttribute(x0, "selected");
|
|
171
|
+
if (s0 !== r.v0) writeAttribute(r.n, "selected", r.v0 = s0);
|
|
172
|
+
}
|
|
173
173
|
}
|
|
174
174
|
if (c & 1073741824) {
|
|
175
|
-
const x1 = trackContainer(r, readMember(o, "id"));
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "id"), RC0, "expression:$result.id:result.id", "result.id"));
|
|
176
|
+
if (x1 !== NONCONFORMING) {
|
|
177
|
+
const s1 = toAttribute(x1, "data-link-id");
|
|
178
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-link-id", r.v1 = s1);
|
|
179
|
+
}
|
|
180
|
+
const x2 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC0, "expression:$result.label:result.label", "result.label"));
|
|
181
|
+
if (x2 !== NONCONFORMING) {
|
|
182
|
+
const s2 = toAttribute(x2, "title");
|
|
183
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "title", r.v2 = s2);
|
|
184
|
+
}
|
|
185
|
+
if (x2 !== NONCONFORMING) {
|
|
186
|
+
const s3 = toText(x2);
|
|
187
|
+
if (s3 !== r.v3) r.a2.data = r.v3 = s3;
|
|
188
|
+
}
|
|
183
189
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
let t0;
|
|
191
|
+
if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "detail"), RC0, "expression:$result.detail:result.detail", "result.detail")))) !== NONCONFORMING && !t0 !== !r.b0) {
|
|
192
|
+
r.b0 = undefined;
|
|
193
|
+
clearRegion(r.a3, r.e0);
|
|
194
|
+
if (t0) { r.b0 = m7(d, undefined, r); r.e0.before(r.b0.n); }
|
|
187
195
|
} else if (r.b0 !== undefined) p7(r.b0, c, d);
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
196
|
+
let t1;
|
|
197
|
+
if (c & 1073743872 && (t1 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "id"), RC0, "expression:$result.id = $selected:result.id", "result.id"), v[11]))) !== NONCONFORMING && !t1 !== !r.b1) {
|
|
198
|
+
r.b1 = undefined;
|
|
199
|
+
clearRegion(r.a4, r.e1);
|
|
200
|
+
if (t1) { r.b1 = m8(d); r.e1.before(r.b1.n); }
|
|
191
201
|
} else if (r.b1 !== undefined) p8(r.b1, c, d);
|
|
192
202
|
};
|
|
193
203
|
const m7 = (d, o, u) => {
|
|
@@ -200,11 +210,15 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
200
210
|
const p7 = (r, c, d) => {
|
|
201
211
|
if (c & 1073741824) {
|
|
202
212
|
r.w = 0;
|
|
203
|
-
const x0 = trackContainer(r, readMember(r.u.i, "detail"));
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC0, "expression:$result.detail:result.detail", "result.detail"));
|
|
214
|
+
if (x0 !== NONCONFORMING) {
|
|
215
|
+
const s0 = toAttribute(x0, "title");
|
|
216
|
+
if (s0 !== r.v0) writeAttribute(r.n, "title", r.v0 = s0);
|
|
217
|
+
}
|
|
218
|
+
if (x0 !== NONCONFORMING) {
|
|
219
|
+
const s1 = toText(x0);
|
|
220
|
+
if (s1 !== r.v1) r.a1.data = r.v1 = s1;
|
|
221
|
+
}
|
|
208
222
|
}
|
|
209
223
|
};
|
|
210
224
|
const m8 = (d) => {
|
|
@@ -271,54 +285,61 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
271
285
|
}
|
|
272
286
|
};
|
|
273
287
|
const p0 = (r, c, d) => {
|
|
288
|
+
if (c === -1) {
|
|
289
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
290
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
291
|
+
const x0 = "Edit link";
|
|
292
|
+
const s1 = toAttribute(x0, "aria-label");
|
|
293
|
+
writeAttribute(r.n, "aria-label", r.v1 = s1);
|
|
294
|
+
}
|
|
274
295
|
if (c & 1073741856) {
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const
|
|
278
|
-
if (
|
|
296
|
+
const x1 = g(1);
|
|
297
|
+
if (x1 !== NONCONFORMING) {
|
|
298
|
+
const s2 = toText(x1);
|
|
299
|
+
if (s2 !== r.v2) r.a1.data = r.v2 = s2;
|
|
279
300
|
}
|
|
280
301
|
}
|
|
281
302
|
if (c & 16) {
|
|
282
|
-
const
|
|
283
|
-
const
|
|
284
|
-
if (
|
|
303
|
+
const x2 = equalValue(v[4], "", true);
|
|
304
|
+
const s3 = toAttribute(x2, "invalid");
|
|
305
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "invalid", r.v3 = s3);
|
|
285
306
|
}
|
|
286
307
|
if (c & 1) {
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
289
|
-
const
|
|
290
|
-
if (
|
|
308
|
+
const x3 = textCall("concat", [v[0], "-destination"]);
|
|
309
|
+
if (x3 !== NONCONFORMING) {
|
|
310
|
+
const s4 = toAttribute(x3, "for");
|
|
311
|
+
if (s4 !== r.v4) writeAttribute(r.a3, "for", r.v4 = s4);
|
|
291
312
|
}
|
|
292
313
|
}
|
|
293
314
|
if (c & 1073742848) {
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
315
|
+
const x4 = g(2);
|
|
316
|
+
if (x4 !== NONCONFORMING) {
|
|
317
|
+
const s5 = toText(x4);
|
|
318
|
+
if (s5 !== r.v5) r.a4.data = r.v5 = s5;
|
|
298
319
|
}
|
|
299
320
|
}
|
|
300
321
|
if (c & 1024 && !(truthy(v[10])) !== !r.b0) {
|
|
301
|
-
if (r.b0) { r.b0 = undefined; clearRegion(r.
|
|
322
|
+
if (r.b0) { r.b0 = undefined; clearRegion(r.a5, r.e0); }
|
|
302
323
|
else { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
303
324
|
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
304
325
|
if (c & 1024 && !(!truthy(v[10])) !== !r.b1) {
|
|
305
|
-
if (r.b1) { r.b1 = undefined; clearRegion(r.
|
|
326
|
+
if (r.b1) { r.b1 = undefined; clearRegion(r.a6, r.e1); }
|
|
306
327
|
else { r.b1 = m3(d); r.e1.before(r.b1.n); }
|
|
307
328
|
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
308
|
-
if (c & 64 && !((v[6]
|
|
309
|
-
if (r.b2) { r.b2 = undefined; clearRegion(r.
|
|
329
|
+
if (c & 64 && !(truthy(equalValue(v[6], "target"))) !== !r.b2) {
|
|
330
|
+
if (r.b2) { r.b2 = undefined; clearRegion(r.a7, r.e2); }
|
|
310
331
|
else { r.b2 = m4(d); r.e2.before(r.b2.n); }
|
|
311
332
|
} else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
312
|
-
if (c & 64 && !((v[6]
|
|
313
|
-
if (r.b3) { r.b3 = undefined; clearRegion(r.
|
|
333
|
+
if (c & 64 && !(truthy(equalValue(v[6], "url"))) !== !r.b3) {
|
|
334
|
+
if (r.b3) { r.b3 = undefined; clearRegion(r.a8, r.e3); }
|
|
314
335
|
else { r.b3 = m9(d); r.e3.before(r.b3.n); }
|
|
315
336
|
} else if (r.b3 !== undefined) p9(r.b3, c, d);
|
|
316
337
|
if (c & 16384 && !(truthy(v[14])) !== !r.b4) {
|
|
317
|
-
if (r.b4) { r.b4 = undefined; clearRegion(r.
|
|
338
|
+
if (r.b4) { r.b4 = undefined; clearRegion(r.a9, r.e4); }
|
|
318
339
|
else { r.b4 = m10(d); r.e4.before(r.b4.n); }
|
|
319
340
|
} else if (r.b4 !== undefined) p10(r.b4, c, d);
|
|
320
|
-
if (c & 16 && !((v[4]
|
|
321
|
-
if (r.b5) { r.b5 = undefined; clearRegion(r.
|
|
341
|
+
if (c & 16 && !(truthy(equalValue(v[4], "", true))) !== !r.b5) {
|
|
342
|
+
if (r.b5) { r.b5 = undefined; clearRegion(r.a10, r.e5); }
|
|
322
343
|
else { r.b5 = m11(d); r.e5.before(r.b5.n); }
|
|
323
344
|
} else if (r.b5 !== undefined) p11(r.b5, c, d);
|
|
324
345
|
};
|
|
@@ -335,9 +356,10 @@ export function createUiEditorLinkForm(options = {}, html) {
|
|
|
335
356
|
const t10 = t9.nextSibling.nextSibling.nextSibling;
|
|
336
357
|
const t11 = t3.nextSibling.nextSibling;
|
|
337
358
|
const t12 = t11.nextSibling.nextSibling.nextSibling;
|
|
338
|
-
const R = {
|
|
359
|
+
const R = { n: element, a1: t2, a2: t4, a3: t5, a4: t6, v0: undefined, v1: undefined, v2: "", v3: null, v4: null, v5: "", a5: t7, e0: t7.nextSibling, b0: undefined, a6: t8, e1: t8.nextSibling, b1: undefined, a7: t9, e2: t9.nextSibling, b2: undefined, a8: t10, e3: t10.nextSibling, b3: undefined, a9: t11, e4: t11.nextSibling, b4: undefined, a10: t12, e5: t12.nextSibling, b5: undefined };
|
|
339
360
|
const I = { B };
|
|
340
361
|
I.R = new Set();
|
|
362
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
341
363
|
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
|
|
342
364
|
manageProps(I);
|
|
343
365
|
return element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorMentionMenuEventMap {
|
|
3
3
|
highlight: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
4
4
|
select: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, IndexedList, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, equalValue, buildTemplate, clearRegion, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, dispose, IndexedList, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-mention-menu/ui-editor-mention-menu.js";
|
|
4
4
|
import "../styles/ui-editor-mention-menu.css";
|
|
5
5
|
|
|
@@ -11,6 +11,8 @@ const T4 = ["li",["class","item","role","option"],"\n ",["span",["class",
|
|
|
11
11
|
const T5 = ["span",["class","detail"],0];
|
|
12
12
|
const T6 = ["",[]];
|
|
13
13
|
const T7 = ["",[]];
|
|
14
|
+
const RC0 = ["n", "number"];
|
|
15
|
+
const RC1 = ["s", "string"];
|
|
14
16
|
let P0, P1, P2, P3, P4, P5, P6, P7;
|
|
15
17
|
const emptyDirty = new Map();
|
|
16
18
|
const S = { n: ["visible","rows","searching","active","prefix"], t: ["b",["l",["o",["id","s","label","s","detail","s","initials","s"]]],"b","i","s"], f: import.meta.url, g: "ui-editor-mention-menu", d: { "highlight": [detailCheck(checkObject([["index", checkInteger, false], ["value", checkString, false]], false)), true, true, false], "select": [detailCheck(checkObject([["index", checkInteger, false], ["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false, [], false, 0, "ui-editor-mention-menu"] };
|
|
@@ -18,12 +20,9 @@ const D = { g: "ui-editor-mention-menu", props: { "anchorRect": { "required":fal
|
|
|
18
20
|
const C = (host) => activateModule(controller, host);
|
|
19
21
|
|
|
20
22
|
export function createUiEditorMentionMenu(options = {}, html) {
|
|
21
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
23
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
24
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["anchor-rect","items","label","loading","loading-label","open","query","selected-index"].includes(name)));
|
|
22
25
|
const element = document.createElement("div");
|
|
23
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
24
|
-
if (value === null || value === undefined || value === false) continue;
|
|
25
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
26
|
-
}
|
|
27
26
|
if (!element.hasAttribute("role")) element.setAttribute("role", "listbox");
|
|
28
27
|
element.setAttribute("component", "ui-editor-mention-menu");
|
|
29
28
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -82,38 +81,52 @@ export function createUiEditorMentionMenu(options = {}, html) {
|
|
|
82
81
|
const o = r.i;
|
|
83
82
|
if (c & 1073741824) r.w = 0;
|
|
84
83
|
if (c & -1073741808) {
|
|
85
|
-
const x0 = textCall("concat", [v[4], "-option-", r.j]);
|
|
84
|
+
const x0 = textCall("concat", [v[4], "-option-", checkedReferenceValue(S, r.j, RC0, "expression:concat($prefix, '-option-', $index):index", "index")]);
|
|
86
85
|
if (x0 !== NONCONFORMING) {
|
|
87
86
|
const s0 = toAttribute(x0, "id");
|
|
88
87
|
if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
if (c & -1073741816) {
|
|
92
|
-
const x1 = (r.j
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
const x1 = equalValue(checkedReferenceValue(S, r.j, RC0, "expression:$index = $active:index", "index"), v[3]);
|
|
92
|
+
if (x1 !== NONCONFORMING) {
|
|
93
|
+
const s1 = truthy(x1);
|
|
94
|
+
if (s1 !== r.v1) r.n.classList.toggle("active", r.v1 = s1);
|
|
95
|
+
}
|
|
96
|
+
if (x1 !== NONCONFORMING) {
|
|
97
|
+
const s2 = toAttribute(x1, "aria-selected");
|
|
98
|
+
if (s2 !== r.v2) writeAttribute(r.n, "aria-selected", r.v2 = s2);
|
|
99
|
+
}
|
|
97
100
|
}
|
|
98
101
|
if (c & -1073741824) {
|
|
99
|
-
const x2 = r.j;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
const x2 = checkedReferenceValue(S, r.j, RC0, "expression:$index:index", "index");
|
|
103
|
+
if (x2 !== NONCONFORMING) {
|
|
104
|
+
const s3 = toAttribute(x2, "data-index");
|
|
105
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-index", r.v3 = s3);
|
|
106
|
+
}
|
|
102
107
|
}
|
|
103
108
|
if (c & 1073741824) {
|
|
104
|
-
const x3 = trackContainer(r, readMember(o, "id"));
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
const x3 = trackContainer(r, checkedReferenceValue(S, readMember(o, "id"), RC1, "expression:$row.id:row.id", "row.id"));
|
|
110
|
+
if (x3 !== NONCONFORMING) {
|
|
111
|
+
const s4 = toAttribute(x3, "data-value");
|
|
112
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-value", r.v4 = s4);
|
|
113
|
+
}
|
|
114
|
+
const x4 = trackContainer(r, checkedReferenceValue(S, readMember(o, "initials"), RC1, "expression:$row.initials:row.initials", "row.initials"));
|
|
115
|
+
if (x4 !== NONCONFORMING) {
|
|
116
|
+
const s5 = toText(x4);
|
|
117
|
+
if (s5 !== r.v5) r.a1.data = r.v5 = s5;
|
|
118
|
+
}
|
|
119
|
+
const x5 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC1, "expression:$row.label:row.label", "row.label"));
|
|
120
|
+
if (x5 !== NONCONFORMING) {
|
|
121
|
+
const s6 = toText(x5);
|
|
122
|
+
if (s6 !== r.v6) r.a2.data = r.v6 = s6;
|
|
123
|
+
}
|
|
113
124
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
125
|
+
let t0;
|
|
126
|
+
if (c & 1073741824 && (t0 = truthyValue(trackContainer(r, checkedReferenceValue(S, readMember(o, "detail"), RC1, "expression:$row.detail:row.detail", "row.detail")))) !== NONCONFORMING && !t0 !== !r.b0) {
|
|
127
|
+
r.b0 = undefined;
|
|
128
|
+
clearRegion(r.a3, r.e0);
|
|
129
|
+
if (t0) { r.b0 = m5(d, undefined, r); r.e0.before(r.b0.n); }
|
|
117
130
|
} else if (r.b0 !== undefined) p5(r.b0, c, d);
|
|
118
131
|
};
|
|
119
132
|
const m5 = (d, o, u) => {
|
|
@@ -126,9 +139,11 @@ export function createUiEditorMentionMenu(options = {}, html) {
|
|
|
126
139
|
const p5 = (r, c, d) => {
|
|
127
140
|
if (c & 1073741824) {
|
|
128
141
|
r.w = 0;
|
|
129
|
-
const x0 = trackContainer(r, readMember(r.u.i, "detail"));
|
|
130
|
-
|
|
131
|
-
|
|
142
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "detail"), RC1, "expression:$row.detail:row.detail", "row.detail"));
|
|
143
|
+
if (x0 !== NONCONFORMING) {
|
|
144
|
+
const s0 = toText(x0);
|
|
145
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
146
|
+
}
|
|
132
147
|
}
|
|
133
148
|
};
|
|
134
149
|
const m6 = (d) => {
|
|
@@ -148,16 +163,22 @@ export function createUiEditorMentionMenu(options = {}, html) {
|
|
|
148
163
|
const p7 = (r, c, d) => {
|
|
149
164
|
};
|
|
150
165
|
const p0 = (r, c, d) => {
|
|
151
|
-
if (c &
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const x1 =
|
|
158
|
-
const
|
|
159
|
-
|
|
166
|
+
if (c & 257) {
|
|
167
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
168
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
169
|
+
const x0 = "listbox";
|
|
170
|
+
const s1 = toAttribute(x0, "role");
|
|
171
|
+
writeAttribute(r.n, "role", r.v1 = s1);
|
|
172
|
+
const x1 = v[8];
|
|
173
|
+
const s2 = toAttribute(x1, "aria-busy");
|
|
174
|
+
writeAttribute(r.n, "aria-busy", r.v2 = s2);
|
|
175
|
+
const x2 = !v[0];
|
|
176
|
+
const s3 = toAttribute(x2, "hidden");
|
|
177
|
+
writeAttribute(r.n, "hidden", r.v3 = s3);
|
|
160
178
|
}
|
|
179
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "header", J, false, undefined, d);
|
|
180
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
181
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
161
182
|
if (c & 4 && !(v[2]) !== !r.b1) {
|
|
162
183
|
if (r.b1) { r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
163
184
|
else { r.b1 = m2(d); r.e1.before(r.b1.n); }
|
|
@@ -166,9 +187,6 @@ export function createUiEditorMentionMenu(options = {}, html) {
|
|
|
166
187
|
if (r.b2) { dispose(r.b2); r.b2 = undefined; clearRegion(r.a3, r.e2); }
|
|
167
188
|
else { r.b2 = m3(d); r.e2.before(r.b2.n); }
|
|
168
189
|
} else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
169
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "header", J, false, undefined, d);
|
|
170
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
171
|
-
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
172
190
|
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a5, r.e3, "empty", J, false, undefined, d);
|
|
173
191
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m7(d); at.before(r.b3.n); } }
|
|
174
192
|
else if (r.b3 !== undefined) p7(r.b3, c, d);
|
|
@@ -179,10 +197,11 @@ export function createUiEditorMentionMenu(options = {}, html) {
|
|
|
179
197
|
const t3 = t2.nextSibling.nextSibling.nextSibling;
|
|
180
198
|
const t4 = t3.nextSibling.nextSibling.nextSibling;
|
|
181
199
|
const t5 = t4.firstChild;
|
|
182
|
-
const R = { n: element, v0: undefined, v1: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, a5: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
200
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, a5: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
183
201
|
const I = { B };
|
|
184
202
|
const J = project(I, children, slots);
|
|
185
203
|
I.R = new Set();
|
|
204
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
186
205
|
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);
|
|
187
206
|
manageProps(I);
|
|
188
207
|
I.r["empty"] = t4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorMentionMenuItemEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiEditorMentionMenuItemElement extends HTMLLIElement {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-editor-mention-menu-item.css";
|
|
4
4
|
|
|
5
5
|
const T0 = ["",[],"\n ",["span",["class","avatar","aria-hidden","true"],4],"\n ",["span",["class","body"],["span",["class","label"],4],1],"\n "];
|
|
@@ -11,12 +11,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-mention-menu-item",
|
|
|
11
11
|
const D = { g: "ui-editor-mention-menu-item", props: { "detail": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "initials": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
12
12
|
|
|
13
13
|
export function createUiEditorMentionMenuItem(options = {}, html) {
|
|
14
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
15
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["detail","initials","value"].includes(name)));
|
|
15
16
|
const element = document.createElement("li");
|
|
16
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
17
|
-
if (value === null || value === undefined || value === false) continue;
|
|
18
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
19
|
-
}
|
|
20
17
|
if (!element.hasAttribute("role")) element.setAttribute("role", "option");
|
|
21
18
|
if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
|
|
22
19
|
element.setAttribute("component", "ui-editor-mention-menu-item");
|
|
@@ -61,20 +58,28 @@ export function createUiEditorMentionMenuItem(options = {}, html) {
|
|
|
61
58
|
};
|
|
62
59
|
const p0 = (r, c, d) => {
|
|
63
60
|
if (c & 4) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
62
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
63
|
+
const x0 = "option";
|
|
64
|
+
const s1 = toAttribute(x0, "role");
|
|
65
|
+
writeAttribute(r.n, "role", r.v1 = s1);
|
|
66
|
+
const x1 = "-1";
|
|
67
|
+
const s2 = toAttribute(x1, "tabindex");
|
|
68
|
+
writeAttribute(r.n, "tabindex", r.v2 = s2);
|
|
69
|
+
const x2 = v[2];
|
|
70
|
+
const s3 = toAttribute(x2, "data-value");
|
|
71
|
+
writeAttribute(r.n, "data-value", r.v3 = s3);
|
|
67
72
|
}
|
|
68
|
-
if (
|
|
69
|
-
if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
|
|
70
|
-
else { r.b2 = m3(d); r.e2.before(r.b2.n); }
|
|
71
|
-
} else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
72
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "start", J, true, undefined, d);
|
|
73
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "start", J, true, undefined, d, r.z ??= []);
|
|
73
74
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
74
75
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
75
76
|
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
76
77
|
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); } }
|
|
77
78
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
79
|
+
if (c & 1 && !(truthy(v[0])) !== !r.b2) {
|
|
80
|
+
if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
|
|
81
|
+
else { r.b2 = m3(d); r.e2.before(r.b2.n); }
|
|
82
|
+
} else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
78
83
|
};
|
|
79
84
|
const t0 = element.firstChild.nextSibling;
|
|
80
85
|
const t1 = t0.firstChild;
|
|
@@ -82,9 +87,10 @@ export function createUiEditorMentionMenuItem(options = {}, html) {
|
|
|
82
87
|
const t3 = t2.firstChild;
|
|
83
88
|
const t4 = t3.firstChild;
|
|
84
89
|
const t5 = t3.nextSibling;
|
|
85
|
-
const R = { n: element, v0: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined };
|
|
90
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined };
|
|
86
91
|
const I = { B };
|
|
87
92
|
const J = project(I, children, slots);
|
|
93
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
88
94
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
89
95
|
manageProps(I);
|
|
90
96
|
return element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorSlashMenuEventMap {
|
|
3
3
|
highlight: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
4
4
|
select: CustomEvent<{ readonly index: number; readonly value: string }>;
|