@threadlabs/looma 0.52.12 → 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, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, 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, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-chip-editor/ui-editor-chip-editor.js";
|
|
4
4
|
import "../styles/ui-editor-chip-editor.css";
|
|
5
5
|
|
|
@@ -10,12 +10,9 @@ const D = { g: "ui-editor-chip-editor", props: { "autofocus": { "required":false
|
|
|
10
10
|
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiEditorChipEditor(options = {}, html) {
|
|
13
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
13
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["autofocus","color","label"].includes(name)));
|
|
14
15
|
const element = document.createElement("div");
|
|
15
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
16
|
-
if (value === null || value === undefined || value === false) continue;
|
|
17
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
18
|
-
}
|
|
19
16
|
if (!element.hasAttribute("role")) element.setAttribute("role", "dialog");
|
|
20
17
|
if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Edit chip");
|
|
21
18
|
element.setAttribute("component", "ui-editor-chip-editor");
|
|
@@ -23,22 +20,33 @@ export function createUiEditorChipEditor(options = {}, html) {
|
|
|
23
20
|
const v = [null, null, null];
|
|
24
21
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
25
22
|
const p0 = (r, c, d) => {
|
|
23
|
+
if (c === -1) {
|
|
24
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
25
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
26
|
+
const x0 = "dialog";
|
|
27
|
+
const s1 = toAttribute(x0, "role");
|
|
28
|
+
writeAttribute(r.n, "role", r.v1 = s1);
|
|
29
|
+
const x1 = "Edit chip";
|
|
30
|
+
const s2 = toAttribute(x1, "aria-label");
|
|
31
|
+
writeAttribute(r.n, "aria-label", r.v2 = s2);
|
|
32
|
+
}
|
|
26
33
|
if (c & 4) {
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
34
|
+
const x2 = v[2];
|
|
35
|
+
const s3 = toAttribute(x2, "value");
|
|
36
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
|
|
30
37
|
}
|
|
31
38
|
if (c & 1073741826) {
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
39
|
+
const x3 = v[1];
|
|
40
|
+
const s4 = toAttribute(x3, "value");
|
|
41
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "value", r.v4 = s4);
|
|
35
42
|
}
|
|
36
43
|
};
|
|
37
44
|
const t0 = element.firstChild.nextSibling;
|
|
38
45
|
const t1 = t0.firstChild;
|
|
39
46
|
const t2 = t1.nextSibling.nextSibling;
|
|
40
|
-
const R = {
|
|
47
|
+
const R = { n: element, a1: t1, a2: t2, v0: undefined, v1: undefined, v2: undefined, v3: null, v4: null };
|
|
41
48
|
const I = { B };
|
|
49
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
42
50
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
43
51
|
manageProps(I);
|
|
44
52
|
return element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, KeyedList, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkList, 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, buildTemplate, KeyedList, NONCONFORMING, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkList, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-code-language/ui-editor-code-language.js";
|
|
4
4
|
import "../styles/ui-editor-code-language.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["ui-combobox",["label","Code language","label-visibility","sr-only","size","sm","disclosure","","filter","label"],2],"\n "];
|
|
7
7
|
const T1 = ["option",[],0];
|
|
8
|
+
const RC0 = ["s", "string"];
|
|
8
9
|
let P0, P1;
|
|
9
10
|
const emptyDirty = new Map();
|
|
10
11
|
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-code-language", d: { "language": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
|
|
@@ -12,12 +13,9 @@ const D = { g: "ui-editor-code-language", props: { "languages": { "required":fal
|
|
|
12
13
|
const C = (host) => activateModule(controller, host);
|
|
13
14
|
|
|
14
15
|
export function createUiEditorCodeLanguage(options = {}, html) {
|
|
15
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
16
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
17
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["languages","value"].includes(name)));
|
|
16
18
|
const element = document.createElement("div");
|
|
17
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
18
|
-
if (value === null || value === undefined || value === false) continue;
|
|
19
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
20
|
-
}
|
|
21
19
|
element.setAttribute("component", "ui-editor-code-language");
|
|
22
20
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
23
21
|
const v = [null, null];
|
|
@@ -33,26 +31,35 @@ export function createUiEditorCodeLanguage(options = {}, html) {
|
|
|
33
31
|
const o = r.i;
|
|
34
32
|
if (c & 1073741824) {
|
|
35
33
|
r.w = 0;
|
|
36
|
-
const x0 = trackContainer(r, readMember(o, "value"));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "value"), RC0, "expression:$language.value:language.value", "language.value"));
|
|
35
|
+
if (x0 !== NONCONFORMING) {
|
|
36
|
+
const s0 = toAttribute(x0, "value");
|
|
37
|
+
if (s0 !== r.v0) writeAttribute(r.n, "value", r.v0 = s0);
|
|
38
|
+
}
|
|
39
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC0, "expression:$language.label:language.label", "language.label"));
|
|
40
|
+
if (x1 !== NONCONFORMING) {
|
|
41
|
+
const s1 = toText(x1);
|
|
42
|
+
if (s1 !== r.v1) r.a1.data = r.v1 = s1;
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
};
|
|
44
46
|
const p0 = (r, c, d) => {
|
|
47
|
+
if (c === -1) {
|
|
48
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
49
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
50
|
+
}
|
|
45
51
|
if (c & 2) {
|
|
46
52
|
const x0 = v[1];
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
53
|
+
const s1 = toAttribute(x0, "value");
|
|
54
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
|
|
49
55
|
}
|
|
50
56
|
if (c & 1073741825) r.L0.update(v[0], d, c);
|
|
51
57
|
};
|
|
52
58
|
const t0 = element.firstChild.nextSibling;
|
|
53
59
|
const t1 = t0.firstChild;
|
|
54
|
-
const R = {
|
|
60
|
+
const R = { n: element, a1: t0, v0: undefined, v1: null, L0: new KeyedList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "value"), "language") };
|
|
55
61
|
const I = { B };
|
|
62
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
56
63
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
57
64
|
manageProps(I);
|
|
58
65
|
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 UiEditorFootnoteEditorEventMap {
|
|
3
3
|
text: CustomEvent<{ readonly text: string }>;
|
|
4
4
|
done: CustomEvent<Readonly<Record<string, unknown>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, 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, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkObject, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-footnote-editor/ui-editor-footnote-editor.js";
|
|
4
4
|
import "../styles/ui-editor-footnote-editor.css";
|
|
5
5
|
|
|
@@ -11,12 +11,9 @@ const D = { g: "ui-editor-footnote-editor", props: { "note": { "required":false,
|
|
|
11
11
|
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiEditorFootnoteEditor(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]) => !["note"].includes(name)));
|
|
15
16
|
const element = document.createElement("div");
|
|
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", "dialog");
|
|
21
18
|
if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Edit footnote");
|
|
22
19
|
element.setAttribute("component", "ui-editor-footnote-editor");
|
|
@@ -38,14 +35,25 @@ export function createUiEditorFootnoteEditor(options = {}, html) {
|
|
|
38
35
|
}
|
|
39
36
|
};
|
|
40
37
|
const p0 = (r, c, d) => {
|
|
41
|
-
if (
|
|
38
|
+
if (c === -1) {
|
|
39
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
40
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
41
|
+
const x0 = "dialog";
|
|
42
|
+
const s1 = toAttribute(x0, "role");
|
|
43
|
+
writeAttribute(r.n, "role", r.v1 = s1);
|
|
44
|
+
const x1 = "Edit footnote";
|
|
45
|
+
const s2 = toAttribute(x1, "aria-label");
|
|
46
|
+
writeAttribute(r.n, "aria-label", r.v2 = s2);
|
|
47
|
+
}
|
|
48
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, true, undefined, d, r.z ??= []);
|
|
42
49
|
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); } }
|
|
43
50
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
44
51
|
};
|
|
45
52
|
const t0 = element.firstChild.nextSibling;
|
|
46
|
-
const R = {
|
|
53
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
|
|
47
54
|
const I = { B };
|
|
48
55
|
const J = project(I, children, slots);
|
|
56
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
49
57
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
50
58
|
manageProps(I);
|
|
51
59
|
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 UiEditorFormattingToolsEventMap {
|
|
3
3
|
"tool-action": CustomEvent<{ readonly id: string }>;
|
|
4
4
|
"tool-focus": CustomEvent<{ readonly id: string }>;
|
|
@@ -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, NONCONFORMING, readMember, toAttribute, toText, trackContainer, truthy, truthyValue, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, RangedKeyedList, checkBoolean, checkFormat, checkList, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-formatting-tools/ui-editor-formatting-tools.js";
|
|
4
4
|
import "../styles/ui-editor-formatting-tools.css";
|
|
5
5
|
|
|
@@ -9,6 +9,9 @@ const T2 = ["ui-separator",["orientation","vertical"]];
|
|
|
9
9
|
const T3 = ["ui-icon-button",["class","looma-editor__toolbar-button","size","sm","variant","ghost"],["ui-icon",[]]];
|
|
10
10
|
const T4 = ["ui-button",["size","sm","variant","ghost","tone","neutral","type","button"],0];
|
|
11
11
|
const T5 = ["kbd",["slot","shortcut"],0];
|
|
12
|
+
const RC0 = [["p",formatOf(keywordFormat)], "keyword"];
|
|
13
|
+
const RC1 = ["s", "string"];
|
|
14
|
+
const RC2 = ["b", "boolean"];
|
|
12
15
|
let P0, P1, P2, P3, P4, P5;
|
|
13
16
|
const emptyDirty = new Map();
|
|
14
17
|
const S = { n: ["hint"], t: [["o",["for","s","open","b","label","s","shortcut","s"]]], f: import.meta.url, g: "ui-editor-formatting-tools", d: { "tool-action": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false], "tool-focus": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false], "tool-press": [detailCheck(checkObject([["id", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [{ "for": "", "open": false, "label": "", "shortcut": "" }] };
|
|
@@ -16,12 +19,9 @@ const D = { g: "ui-editor-formatting-tools", props: { "floating": { "required":f
|
|
|
16
19
|
const C = (host) => activateModule(controller, host);
|
|
17
20
|
|
|
18
21
|
export function createUiEditorFormattingTools(options = {}, html) {
|
|
19
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
22
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
23
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["floating","items"].includes(name)));
|
|
20
24
|
const element = document.createElement("ui-editor-toolbar");
|
|
21
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
22
|
-
if (value === null || value === undefined || value === false) continue;
|
|
23
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
24
|
-
}
|
|
25
25
|
element.setAttribute("component", "ui-editor-formatting-tools");
|
|
26
26
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
27
27
|
const v = [{ "for": "", "open": false, "label": "", "shortcut": "" }, null, null];
|
|
@@ -40,17 +40,23 @@ export function createUiEditorFormattingTools(options = {}, html) {
|
|
|
40
40
|
};
|
|
41
41
|
const p1 = (r, c, d) => {
|
|
42
42
|
const o = r.i;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
let t0;
|
|
44
|
+
if (c & 1073741824 && (t0 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "kind"), RC0, "expression:$item.kind = 'separator':item.kind", "item.kind"), "separator"))) !== NONCONFORMING && !t0 !== !r.b0) {
|
|
45
|
+
r.b0 = undefined;
|
|
46
|
+
clearRegion(r.a0, r.e0);
|
|
47
|
+
if (t0) { r.b0 = m2(d); r.e0.before(r.b0.n); }
|
|
46
48
|
} else if (r.b0 !== undefined) p2(r.b0, c, d);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
let t1;
|
|
50
|
+
if (c & 1073741824 && (t1 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "kind"), RC0, "expression:$item.kind = 'icon':item.kind", "item.kind"), "icon"))) !== NONCONFORMING && !t1 !== !r.b1) {
|
|
51
|
+
r.b1 = undefined;
|
|
52
|
+
clearRegion(r.a1, r.e1);
|
|
53
|
+
if (t1) { r.b1 = m3(d, undefined, r); r.e1.before(r.b1.n); }
|
|
50
54
|
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
let t2;
|
|
56
|
+
if (c & 1073741824 && (t2 = truthyValue(equalValue(checkedReferenceValue(S, readMember(o, "kind"), RC0, "expression:$item.kind = 'text':item.kind", "item.kind"), "text"))) !== NONCONFORMING && !t2 !== !r.b2) {
|
|
57
|
+
r.b2 = undefined;
|
|
58
|
+
clearRegion(r.a2, r.e2);
|
|
59
|
+
if (t2) { r.b2 = m4(d, undefined, r); r.e2.before(r.b2.n); }
|
|
54
60
|
} else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
55
61
|
};
|
|
56
62
|
const m2 = (d) => {
|
|
@@ -71,28 +77,44 @@ export function createUiEditorFormattingTools(options = {}, html) {
|
|
|
71
77
|
const p3 = (r, c, d) => {
|
|
72
78
|
if (c & 1073741824) {
|
|
73
79
|
r.w = 0;
|
|
74
|
-
const x0 = trackContainer(r, readMember(r.u.i, "id"));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
80
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "id"), RC1, "expression:$item.id:item.id", "item.id"));
|
|
81
|
+
if (x0 !== NONCONFORMING) {
|
|
82
|
+
const s0 = toAttribute(x0, "id");
|
|
83
|
+
if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
|
|
84
|
+
}
|
|
85
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "label"), RC1, "expression:$item.label:item.label", "item.label"));
|
|
86
|
+
if (x1 !== NONCONFORMING) {
|
|
87
|
+
const s1 = toAttribute(x1, "label");
|
|
88
|
+
if (s1 !== r.v1) writeAttribute(r.n, "label", r.v1 = s1);
|
|
89
|
+
}
|
|
90
|
+
const x2 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "disabled"), RC2, "expression:$item.disabled:item.disabled", "item.disabled"));
|
|
91
|
+
if (x2 !== NONCONFORMING) {
|
|
92
|
+
const s2 = toAttribute(x2, "disabled");
|
|
93
|
+
if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
|
|
94
|
+
}
|
|
95
|
+
const x3 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "active"), RC2, "expression:$item.active:item.active", "item.active"));
|
|
96
|
+
if (x3 !== NONCONFORMING) {
|
|
97
|
+
const s3 = toAttribute(x3, "aria-pressed");
|
|
98
|
+
if (s3 !== r.v3) writeAttribute(r.n, "aria-pressed", r.v3 = s3);
|
|
99
|
+
}
|
|
100
|
+
const x4 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "expanded"), RC2, "expression:$item.expanded:item.expanded", "item.expanded"));
|
|
101
|
+
if (x4 !== NONCONFORMING) {
|
|
102
|
+
const s4 = toAttribute(x4, "aria-expanded");
|
|
103
|
+
if (s4 !== r.v4) writeAttribute(r.n, "aria-expanded", r.v4 = s4);
|
|
104
|
+
}
|
|
105
|
+
if (x3 !== NONCONFORMING) {
|
|
106
|
+
const s5 = toAttribute(x3, "data-active");
|
|
107
|
+
if (s5 !== r.v5) writeAttribute(r.n, "data-active", r.v5 = s5);
|
|
108
|
+
}
|
|
109
|
+
if (x0 !== NONCONFORMING) {
|
|
110
|
+
const s6 = toAttribute(x0, "data-editor-tool");
|
|
111
|
+
if (s6 !== r.v6) writeAttribute(r.n, "data-editor-tool", r.v6 = s6);
|
|
112
|
+
}
|
|
113
|
+
const x5 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "icon"), RC1, "expression:$item.icon:item.icon", "item.icon"));
|
|
114
|
+
if (x5 !== NONCONFORMING) {
|
|
115
|
+
const s7 = toAttribute(x5, "name");
|
|
116
|
+
if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
|
|
117
|
+
}
|
|
96
118
|
}
|
|
97
119
|
};
|
|
98
120
|
const m4 = (d, o, u) => {
|
|
@@ -105,22 +127,34 @@ export function createUiEditorFormattingTools(options = {}, html) {
|
|
|
105
127
|
const p4 = (r, c, d) => {
|
|
106
128
|
if (c & 1073741824) {
|
|
107
129
|
r.w = 0;
|
|
108
|
-
const x0 = trackContainer(r, readMember(r.u.i, "id"));
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
130
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "id"), RC1, "expression:$item.id:item.id", "item.id"));
|
|
131
|
+
if (x0 !== NONCONFORMING) {
|
|
132
|
+
const s0 = toAttribute(x0, "id");
|
|
133
|
+
if (s0 !== r.v0) writeAttribute(r.n, "id", r.v0 = s0);
|
|
134
|
+
}
|
|
135
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "label"), RC1, "expression:$item.label:item.label", "item.label"));
|
|
136
|
+
if (x1 !== NONCONFORMING) {
|
|
137
|
+
const s1 = toAttribute(x1, "aria-label");
|
|
138
|
+
if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
|
|
139
|
+
}
|
|
140
|
+
const x2 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "disabled"), RC2, "expression:$item.disabled:item.disabled", "item.disabled"));
|
|
141
|
+
if (x2 !== NONCONFORMING) {
|
|
142
|
+
const s2 = toAttribute(x2, "disabled");
|
|
143
|
+
if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
|
|
144
|
+
}
|
|
145
|
+
const x3 = trackContainer(r, checkedReferenceValue(S, readMember(r.u.i, "expanded"), RC2, "expression:$item.expanded:item.expanded", "item.expanded"));
|
|
146
|
+
if (x3 !== NONCONFORMING) {
|
|
147
|
+
const s3 = toAttribute(x3, "aria-expanded");
|
|
148
|
+
if (s3 !== r.v3) writeAttribute(r.n, "aria-expanded", r.v3 = s3);
|
|
149
|
+
}
|
|
150
|
+
if (x0 !== NONCONFORMING) {
|
|
151
|
+
const s4 = toAttribute(x0, "data-editor-tool");
|
|
152
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-editor-tool", r.v4 = s4);
|
|
153
|
+
}
|
|
154
|
+
if (x1 !== NONCONFORMING) {
|
|
155
|
+
const s5 = toText(x1);
|
|
156
|
+
if (s5 !== r.v5) r.a1.data = r.v5 = s5;
|
|
157
|
+
}
|
|
124
158
|
}
|
|
125
159
|
};
|
|
126
160
|
const m5 = (d) => {
|
|
@@ -132,7 +166,7 @@ export function createUiEditorFormattingTools(options = {}, html) {
|
|
|
132
166
|
};
|
|
133
167
|
const p5 = (r, c, d) => {
|
|
134
168
|
if (c & 1073741825) {
|
|
135
|
-
const x0 = (
|
|
169
|
+
const x0 = checkedReferenceValue(S, readMember(v[0], "shortcut"), RC1, "expression:$hint.shortcut:hint.shortcut", "hint.shortcut");
|
|
136
170
|
if (x0 !== NONCONFORMING) {
|
|
137
171
|
const s0 = toText(x0);
|
|
138
172
|
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
@@ -141,34 +175,36 @@ export function createUiEditorFormattingTools(options = {}, html) {
|
|
|
141
175
|
};
|
|
142
176
|
const p0 = (r, c, d) => {
|
|
143
177
|
if (c & 2) {
|
|
178
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
179
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
144
180
|
const x0 = v[1];
|
|
145
|
-
const
|
|
146
|
-
|
|
181
|
+
const s1 = toAttribute(x0, "floating");
|
|
182
|
+
writeAttribute(r.n, "floating", r.v1 = s1);
|
|
147
183
|
}
|
|
148
184
|
if (c & 1073741825) {
|
|
149
|
-
const x1 = (
|
|
185
|
+
const x1 = checkedReferenceValue(S, readMember(v[0], "for"), RC1, "expression:$hint.for:hint.for", "hint.for");
|
|
150
186
|
if (x1 !== NONCONFORMING) {
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
187
|
+
const s2 = toAttribute(x1, "for");
|
|
188
|
+
if (s2 !== r.v2) writeAttribute(r.a2, "for", r.v2 = s2);
|
|
153
189
|
}
|
|
154
|
-
const x2 = (
|
|
190
|
+
const x2 = checkedReferenceValue(S, readMember(v[0], "open"), RC2, "expression:$hint.open:hint.open", "hint.open");
|
|
155
191
|
if (x2 !== NONCONFORMING) {
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
192
|
+
const s3 = toAttribute(x2, "open");
|
|
193
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "open", r.v3 = s3);
|
|
158
194
|
}
|
|
159
|
-
const x3 = (
|
|
160
|
-
if (x3 !== NONCONFORMING) r.
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
195
|
+
const x3 = checkedReferenceValue(S, readMember(v[0], "label"), RC1, "expression:$hint.label:hint.label", "hint.label");
|
|
196
|
+
if (x3 !== NONCONFORMING) r.m5_1 = toText(x3);
|
|
197
|
+
const s5 = "\n " + r.m5_1;
|
|
198
|
+
if (s5 !== r.v5) r.a3.data = r.v5 = s5;
|
|
163
199
|
}
|
|
164
200
|
if (c & 2) {
|
|
165
201
|
const x4 = (truthy(v[1]) ? "top" : "bottom");
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
202
|
+
const s4 = toAttribute(x4, "placement");
|
|
203
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "placement", r.v4 = s4);
|
|
168
204
|
}
|
|
169
205
|
if (c & 1073741828) r.L0.update(v[2], d, c);
|
|
170
206
|
let t1;
|
|
171
|
-
if (c & 1073741825 && (t1 = truthyValue((
|
|
207
|
+
if (c & 1073741825 && (t1 = truthyValue(checkedReferenceValue(S, readMember(v[0], "shortcut"), RC1, "expression:$hint.shortcut:hint.shortcut", "hint.shortcut"))) !== NONCONFORMING && !t1 !== !r.b1) {
|
|
172
208
|
r.b1 = undefined;
|
|
173
209
|
clearRegion(r.a4, r.e1);
|
|
174
210
|
if (t1) { r.b1 = m5(d); r.e1.before(r.b1.n); }
|
|
@@ -178,9 +214,10 @@ export function createUiEditorFormattingTools(options = {}, html) {
|
|
|
178
214
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
179
215
|
const t2 = t1.firstChild;
|
|
180
216
|
const t3 = t2.nextSibling;
|
|
181
|
-
const R = { n: element, a2: t1, a3: t2, v0: undefined, v1:
|
|
217
|
+
const R = { n: element, a2: t1, a3: t2, v0: undefined, v1: undefined, v2: null, v3: null, v4: null, v5: "", m5_1: "", L0: new RangedKeyedList(t0, t0.nextSibling, m1, p1, (o) => readMember(o, "id"), "item"), a4: t3, e1: t3.nextSibling, b1: undefined };
|
|
182
218
|
const I = { B };
|
|
183
219
|
I.R = new Set();
|
|
220
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
184
221
|
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);
|
|
185
222
|
manageProps(I);
|
|
186
223
|
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 UiEditorImageToolbarEventMap {
|
|
3
3
|
placement: CustomEvent<{ readonly placement: "block" | "center" | "wrap-left" | "wrap-right" }>;
|
|
4
4
|
describe: CustomEvent<{ readonly alt: string }>;
|