@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, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, 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, equalValue, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, 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-image-toolbar/ui-editor-image-toolbar.js";
|
|
4
4
|
import "../styles/ui-editor-image-toolbar.css";
|
|
5
5
|
|
|
@@ -10,133 +10,134 @@ const D = { g: "ui-editor-image-toolbar", props: { "alt": { "required":false,"de
|
|
|
10
10
|
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiEditorImageToolbar(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]) => !["alt","placement","target"].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
|
element.setAttribute("component", "ui-editor-image-toolbar");
|
|
20
17
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
18
|
const v = ["ui-editor-image-toolbar", false, "", null, null, null];
|
|
22
19
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
23
20
|
const p0 = (r, c, d) => {
|
|
21
|
+
if (c === -1) {
|
|
22
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
23
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
24
|
+
}
|
|
24
25
|
if (c & 1) {
|
|
25
26
|
const x0 = textCall("concat", [v[0], "-block"]);
|
|
26
27
|
if (x0 !== NONCONFORMING) {
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
28
|
+
const s1 = toAttribute(x0, "id");
|
|
29
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "id", r.v1 = s1);
|
|
29
30
|
}
|
|
30
31
|
const x1 = textCall("concat", [v[0], "-center"]);
|
|
31
32
|
if (x1 !== NONCONFORMING) {
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
33
|
+
const s4 = toAttribute(x1, "id");
|
|
34
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "id", r.v4 = s4);
|
|
34
35
|
}
|
|
35
36
|
const x2 = textCall("concat", [v[0], "-wrap-left"]);
|
|
36
37
|
if (x2 !== NONCONFORMING) {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
38
|
+
const s7 = toAttribute(x2, "id");
|
|
39
|
+
if (s7 !== r.v7) writeAttribute(r.a3, "id", r.v7 = s7);
|
|
39
40
|
}
|
|
40
41
|
const x3 = textCall("concat", [v[0], "-wrap-right"]);
|
|
41
42
|
if (x3 !== NONCONFORMING) {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
43
|
+
const s10 = toAttribute(x3, "id");
|
|
44
|
+
if (s10 !== r.v10) writeAttribute(r.a4, "id", r.v10 = s10);
|
|
44
45
|
}
|
|
45
46
|
const x4 = v[0];
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
47
|
+
const s13 = toAttribute(x4, "id");
|
|
48
|
+
if (s13 !== r.v13) writeAttribute(r.a5, "id", r.v13 = s13);
|
|
48
49
|
const x5 = textCall("concat", [v[0], "-delete"]);
|
|
49
50
|
if (x5 !== NONCONFORMING) {
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
51
|
+
const s14 = toAttribute(x5, "id");
|
|
52
|
+
if (s14 !== r.v14) writeAttribute(r.a6, "id", r.v14 = s14);
|
|
52
53
|
}
|
|
53
54
|
if (x0 !== NONCONFORMING) {
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
55
|
+
const s15 = toAttribute(x0, "for");
|
|
56
|
+
if (s15 !== r.v15) writeAttribute(r.a7, "for", r.v15 = s15);
|
|
56
57
|
}
|
|
57
58
|
if (x1 !== NONCONFORMING) {
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
59
|
+
const s16 = toAttribute(x1, "for");
|
|
60
|
+
if (s16 !== r.v16) writeAttribute(r.a8, "for", r.v16 = s16);
|
|
60
61
|
}
|
|
61
62
|
if (x2 !== NONCONFORMING) {
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
63
|
+
const s17 = toAttribute(x2, "for");
|
|
64
|
+
if (s17 !== r.v17) writeAttribute(r.a9, "for", r.v17 = s17);
|
|
64
65
|
}
|
|
65
66
|
if (x3 !== NONCONFORMING) {
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
67
|
+
const s18 = toAttribute(x3, "for");
|
|
68
|
+
if (s18 !== r.v18) writeAttribute(r.a10, "for", r.v18 = s18);
|
|
68
69
|
}
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
70
|
+
const s19 = toAttribute(x4, "for");
|
|
71
|
+
if (s19 !== r.v19) writeAttribute(r.a11, "for", r.v19 = s19);
|
|
71
72
|
if (x5 !== NONCONFORMING) {
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
73
|
+
const s20 = toAttribute(x5, "for");
|
|
74
|
+
if (s20 !== r.v20) writeAttribute(r.a12, "for", r.v20 = s20);
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
76
|
+
const s21 = toAttribute(x4, "for");
|
|
77
|
+
if (s21 !== r.v21) writeAttribute(r.a13, "for", r.v21 = s21);
|
|
77
78
|
const x6 = textCall("concat", [v[0], "-alt"]);
|
|
78
79
|
if (x6 !== NONCONFORMING) {
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
80
|
+
const s23 = toAttribute(x6, "for");
|
|
81
|
+
if (s23 !== r.v23) writeAttribute(r.a14, "for", r.v23 = s23);
|
|
81
82
|
}
|
|
82
83
|
if (x6 !== NONCONFORMING) {
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
84
|
+
const s24 = toAttribute(x6, "id");
|
|
85
|
+
if (s24 !== r.v24) writeAttribute(r.a15, "id", r.v24 = s24);
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
if (c & 1073741840) {
|
|
88
|
-
const x7 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [(v[4]
|
|
89
|
+
const x7 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "block")]));
|
|
89
90
|
if (x7 !== NONCONFORMING) {
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
91
|
+
const s2 = toAttribute(x7, "variant");
|
|
92
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "variant", r.v2 = s2);
|
|
92
93
|
}
|
|
93
|
-
const x8 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [(v[4]
|
|
94
|
+
const x8 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "center")]));
|
|
94
95
|
if (x8 !== NONCONFORMING) {
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
96
|
+
const s5 = toAttribute(x8, "variant");
|
|
97
|
+
if (s5 !== r.v5) writeAttribute(r.a2, "variant", r.v5 = s5);
|
|
97
98
|
}
|
|
98
|
-
const x9 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [(v[4]
|
|
99
|
+
const x9 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "wrap-left")]));
|
|
99
100
|
if (x9 !== NONCONFORMING) {
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
101
|
+
const s8 = toAttribute(x9, "variant");
|
|
102
|
+
if (s8 !== r.v8) writeAttribute(r.a3, "variant", r.v8 = s8);
|
|
102
103
|
}
|
|
103
|
-
const x10 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [(v[4]
|
|
104
|
+
const x10 = readIndex({ "true": "outline", "false": "ghost" }, textCall("concat", [equalValue(v[4], "wrap-right")]));
|
|
104
105
|
if (x10 !== NONCONFORMING) {
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
106
|
+
const s11 = toAttribute(x10, "variant");
|
|
107
|
+
if (s11 !== r.v11) writeAttribute(r.a4, "variant", r.v11 = s11);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
110
|
if (c & 16) {
|
|
110
|
-
const x11 = textCall("concat", [(v[4]
|
|
111
|
+
const x11 = textCall("concat", [equalValue(v[4], "block")]);
|
|
111
112
|
if (x11 !== NONCONFORMING) {
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
113
|
+
const s3 = toAttribute(x11, "aria-pressed");
|
|
114
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "aria-pressed", r.v3 = s3);
|
|
114
115
|
}
|
|
115
|
-
const x12 = textCall("concat", [(v[4]
|
|
116
|
+
const x12 = textCall("concat", [equalValue(v[4], "center")]);
|
|
116
117
|
if (x12 !== NONCONFORMING) {
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
118
|
+
const s6 = toAttribute(x12, "aria-pressed");
|
|
119
|
+
if (s6 !== r.v6) writeAttribute(r.a2, "aria-pressed", r.v6 = s6);
|
|
119
120
|
}
|
|
120
|
-
const x13 = textCall("concat", [(v[4]
|
|
121
|
+
const x13 = textCall("concat", [equalValue(v[4], "wrap-left")]);
|
|
121
122
|
if (x13 !== NONCONFORMING) {
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
123
|
+
const s9 = toAttribute(x13, "aria-pressed");
|
|
124
|
+
if (s9 !== r.v9) writeAttribute(r.a3, "aria-pressed", r.v9 = s9);
|
|
124
125
|
}
|
|
125
|
-
const x14 = textCall("concat", [(v[4]
|
|
126
|
+
const x14 = textCall("concat", [equalValue(v[4], "wrap-right")]);
|
|
126
127
|
if (x14 !== NONCONFORMING) {
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
128
|
+
const s12 = toAttribute(x14, "aria-pressed");
|
|
129
|
+
if (s12 !== r.v12) writeAttribute(r.a4, "aria-pressed", r.v12 = s12);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
if (c & 2) {
|
|
132
133
|
const x15 = v[1];
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
134
|
+
const s22 = toAttribute(x15, "open");
|
|
135
|
+
if (s22 !== r.v22) writeAttribute(r.a13, "open", r.v22 = s22);
|
|
135
136
|
}
|
|
136
137
|
if (c & 4) {
|
|
137
138
|
const x16 = v[2];
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
139
|
+
const s25 = toAttribute(x16, "value");
|
|
140
|
+
if (s25 !== r.v25) writeAttribute(r.a15, "value", r.v25 = s25);
|
|
140
141
|
}
|
|
141
142
|
};
|
|
142
143
|
const t0 = element.firstChild.nextSibling;
|
|
@@ -157,9 +158,10 @@ export function createUiEditorImageToolbar(options = {}, html) {
|
|
|
157
158
|
const t15 = t14.firstChild.firstChild.nextSibling.firstChild;
|
|
158
159
|
const t16 = t15.firstChild;
|
|
159
160
|
const t17 = t16.nextSibling;
|
|
160
|
-
const R = {
|
|
161
|
+
const R = { n: element, a1: t2, a2: t3, a3: t4, a4: t5, a5: t6, a6: t7, a7: t8, a8: t9, a9: t10, a10: t11, a11: t12, a12: t13, a13: t14, a14: t16, a15: t17, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: null, v22: null, v23: null, v24: null, v25: null };
|
|
161
162
|
const I = { B };
|
|
162
163
|
I.R = new Set();
|
|
164
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
163
165
|
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);
|
|
164
166
|
manageProps(I);
|
|
165
167
|
I.r["description"] = t14;
|
|
@@ -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 UiEditorInsertTableGridEventMap {
|
|
3
3
|
insert: CustomEvent<{ readonly rows: number; readonly cols: number; readonly withHeaderRow: boolean }>;
|
|
4
4
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, KeyedList, readMember, readsChanged, rec, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkBoolean, checkInteger, checkObject, 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, readsChanged, rec, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkBoolean, checkInteger, checkObject, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js";
|
|
4
4
|
import "../styles/ui-editor-insert-table-grid.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["p",["class","hint"],0],"\n ",["div",["class","grid","role","group","aria-label","Table dimensions"],"\n ",2,"\n "],"\n ",["label",["class","header"],["input",["type","checkbox"]]," Header row"],"\n "];
|
|
7
7
|
const T1 = ["button",["type","button","class","cell"],"\n "];
|
|
8
|
+
const RC0 = ["b", "boolean"];
|
|
9
|
+
const RC1 = ["i", "integer"];
|
|
10
|
+
const RC2 = ["s", "string"];
|
|
8
11
|
let P0, P1;
|
|
9
12
|
const emptyDirty = new Map();
|
|
10
13
|
const S = { n: ["cells","rows","cols","hint","withHeaderRow"], t: [["l",["o",["key","s","row","i","col","i","label","s","selected","b","tabIndex","i"]]],"i","i","s","b"], f: import.meta.url, g: "ui-editor-insert-table-grid", d: { "insert": [detailCheck(checkObject([["rows", checkInteger, false], ["cols", checkInteger, false], ["withHeaderRow", checkBoolean, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [[], 8, 8, "", false] };
|
|
@@ -12,12 +15,9 @@ const D = { g: "ui-editor-insert-table-grid", props: { "headerRow": { "required"
|
|
|
12
15
|
const C = (host) => activateModule(controller, host);
|
|
13
16
|
|
|
14
17
|
export function createUiEditorInsertTableGrid(options = {}, html) {
|
|
15
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
18
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
19
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["header-row","max-cols","max-rows","open"].includes(name)));
|
|
16
20
|
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
21
|
element.setAttribute("component", "ui-editor-insert-table-grid");
|
|
22
22
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
23
23
|
const v = [[], 8, 8, "", false, null, null, null, null];
|
|
@@ -32,51 +32,65 @@ export function createUiEditorInsertTableGrid(options = {}, html) {
|
|
|
32
32
|
const o = r.i;
|
|
33
33
|
if (c & 1073741824) {
|
|
34
34
|
r.w = 0;
|
|
35
|
-
const x0 = trackContainer(r, readMember(o, "selected"));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
35
|
+
const x0 = trackContainer(r, checkedReferenceValue(S, readMember(o, "selected"), RC0, "expression:$cell.selected:cell.selected", "cell.selected"));
|
|
36
|
+
if (x0 !== NONCONFORMING) {
|
|
37
|
+
const s0 = truthy(x0);
|
|
38
|
+
if (s0 !== r.v0) r.n.classList.toggle("selected", r.v0 = s0);
|
|
39
|
+
}
|
|
40
|
+
const x1 = trackContainer(r, checkedReferenceValue(S, readMember(o, "row"), RC1, "expression:$cell.row:cell.row", "cell.row"));
|
|
41
|
+
if (x1 !== NONCONFORMING) {
|
|
42
|
+
const s1 = toAttribute(x1, "data-row");
|
|
43
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-row", r.v1 = s1);
|
|
44
|
+
}
|
|
45
|
+
const x2 = trackContainer(r, checkedReferenceValue(S, readMember(o, "col"), RC1, "expression:$cell.col:cell.col", "cell.col"));
|
|
46
|
+
if (x2 !== NONCONFORMING) {
|
|
47
|
+
const s2 = toAttribute(x2, "data-col");
|
|
48
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-col", r.v2 = s2);
|
|
49
|
+
}
|
|
50
|
+
const x3 = trackContainer(r, checkedReferenceValue(S, readMember(o, "label"), RC2, "expression:$cell.label:cell.label", "cell.label"));
|
|
51
|
+
if (x3 !== NONCONFORMING) {
|
|
52
|
+
const s3 = toAttribute(x3, "aria-label");
|
|
53
|
+
if (s3 !== r.v3) writeAttribute(r.n, "aria-label", r.v3 = s3);
|
|
54
|
+
}
|
|
55
|
+
if (x0 !== NONCONFORMING) {
|
|
56
|
+
const s4 = toAttribute(x0, "aria-pressed");
|
|
57
|
+
if (s4 !== r.v4) writeAttribute(r.n, "aria-pressed", r.v4 = s4);
|
|
58
|
+
}
|
|
59
|
+
const x4 = trackContainer(r, checkedReferenceValue(S, readMember(o, "tabIndex"), RC1, "expression:$cell.tabIndex:cell.tabIndex", "cell.tabIndex"));
|
|
60
|
+
if (x4 !== NONCONFORMING) {
|
|
61
|
+
const s5 = toAttribute(x4, "tabindex");
|
|
62
|
+
if (s5 !== r.v5) writeAttribute(r.n, "tabindex", r.v5 = s5);
|
|
63
|
+
}
|
|
52
64
|
}
|
|
53
65
|
};
|
|
54
66
|
const p0 = (r, c, d) => {
|
|
55
67
|
if (c & 256) {
|
|
68
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
69
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
56
70
|
const x0 = !truthy(v[8]);
|
|
57
|
-
const
|
|
58
|
-
|
|
71
|
+
const s1 = toAttribute(x0, "hidden");
|
|
72
|
+
writeAttribute(r.n, "hidden", r.v1 = s1);
|
|
59
73
|
}
|
|
60
74
|
if (c & 8) {
|
|
61
75
|
const x1 = v[3];
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
76
|
+
const s2 = toText(x1);
|
|
77
|
+
if (s2 !== r.v2) r.a1.data = r.v2 = s2;
|
|
64
78
|
}
|
|
65
79
|
if (c & 2) {
|
|
66
80
|
const x2 = v[1];
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
81
|
+
const s3 = toText(x2);
|
|
82
|
+
if (s3 !== r.v3) r.a2.style.setProperty("--_rows", r.v3 = s3);
|
|
69
83
|
}
|
|
70
84
|
if (c & 4) {
|
|
71
85
|
const x3 = v[2];
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
86
|
+
const s4 = toText(x3);
|
|
87
|
+
if (s4 !== r.v4) r.a2.style.setProperty("--_cols", r.v4 = s4);
|
|
74
88
|
}
|
|
75
89
|
if (c & 16) {
|
|
76
90
|
const f0 = [];
|
|
77
91
|
const x4 = rec(f0, v[4]);
|
|
78
|
-
if (c === -1 || c & 16 || readsChanged(r.
|
|
79
|
-
r.
|
|
92
|
+
if (c === -1 || c & 16 || readsChanged(r.v5, f0)) {
|
|
93
|
+
r.v5 = f0;
|
|
80
94
|
r.a4["checked"] = x4;
|
|
81
95
|
}
|
|
82
96
|
}
|
|
@@ -87,9 +101,10 @@ export function createUiEditorInsertTableGrid(options = {}, html) {
|
|
|
87
101
|
const t2 = t0.nextSibling.nextSibling;
|
|
88
102
|
const t3 = t2.firstChild.nextSibling;
|
|
89
103
|
const t4 = t2.nextSibling.nextSibling.firstChild;
|
|
90
|
-
const R = { n: element, a1: t1, a2: t2, a4: t4, v0: undefined, v1:
|
|
104
|
+
const R = { n: element, a1: t1, a2: t2, a4: t4, v0: undefined, v1: undefined, v2: "", v3: undefined, v4: undefined, v5: undefined, L0: new KeyedList(t3, t3.nextSibling, m1, p1, (o) => readMember(o, "key"), "cell") };
|
|
91
105
|
const I = { B };
|
|
92
106
|
I.R = new Set();
|
|
107
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
93
108
|
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);
|
|
94
109
|
manageProps(I);
|
|
95
110
|
I.r["grid"] = t2;
|
|
@@ -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 UiEditorLinkCardEventMap {
|
|
3
3
|
edit: CustomEvent<Readonly<Record<string, unknown>>>;
|
|
4
4
|
remove: CustomEvent<Readonly<Record<string, unknown>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, toText, writeAttribute, writeUrlAttribute, computedCycle, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, 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, equalValue, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, toText, truthy, writeAttribute, writeUrlAttribute, computedCycle, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkRecord, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-link-card/ui-editor-link-card.js";
|
|
4
4
|
import "../styles/ui-editor-link-card.css";
|
|
5
5
|
|
|
@@ -15,12 +15,9 @@ const D = { g: "ui-editor-link-card", props: { "detail": { "required":false,"def
|
|
|
15
15
|
const C = (host) => activateModule(controller, host);
|
|
16
16
|
|
|
17
17
|
export function createUiEditorLinkCard(options = {}, html) {
|
|
18
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
18
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
19
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["detail","href","label","open-href","target-label"].includes(name)));
|
|
19
20
|
const element = document.createElement("div");
|
|
20
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
21
|
-
if (value === null || value === undefined || value === false) continue;
|
|
22
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
23
|
-
}
|
|
24
21
|
element.setAttribute("component", "ui-editor-link-card");
|
|
25
22
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
26
23
|
const v = ["_blank", "ui-editor-link-card", undefined, undefined, null, null, null, null, null];
|
|
@@ -29,7 +26,7 @@ export function createUiEditorLinkCard(options = {}, html) {
|
|
|
29
26
|
const inputStatus = (j) => { if (j >= 2 && j < 4) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 4) return awaitInput(B, "detail", true); if (j === 5) return awaitInput(B, "href", true); if (j === 6) return awaitInput(B, "label", true); if (j === 7) return awaitInput(B, "openHref", true); if (j === 8) return awaitInput(B, "targetLabel", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
30
27
|
const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
|
|
31
28
|
const ke = [];
|
|
32
|
-
const K = [() => (inputRead(v[6], inputStatus(6))
|
|
29
|
+
const K = [() => equalValue(inputRead(v[6], inputStatus(6)), "", true), () => readIndex({ "true": inputRead(v[6], inputStatus(6)), "false": inputRead(v[5], inputStatus(5)) }, textCall("concat", [inputRead(g(2), inputStatus(2))]))];
|
|
33
30
|
const g = (j) => {
|
|
34
31
|
const i = j - 2;
|
|
35
32
|
if (ke[i] === X.e) return v[j];
|
|
@@ -91,7 +88,7 @@ export function createUiEditorLinkCard(options = {}, html) {
|
|
|
91
88
|
if (s5 !== r.v5) r.a2.data = r.v5 = s5;
|
|
92
89
|
}
|
|
93
90
|
}
|
|
94
|
-
if (c & 16 && !((v[4]
|
|
91
|
+
if (c & 16 && !(truthy(equalValue(v[4], "", true))) !== !r.b0) {
|
|
95
92
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
|
|
96
93
|
else { r.b0 = m2(d); r.e0.before(r.b0.n); }
|
|
97
94
|
} else if (r.b0 !== undefined) p2(r.b0, c, d);
|
|
@@ -148,7 +145,7 @@ export function createUiEditorLinkCard(options = {}, html) {
|
|
|
148
145
|
if (s3 !== r.v3) r.a2.data = r.v3 = s3;
|
|
149
146
|
}
|
|
150
147
|
}
|
|
151
|
-
if (c & 16 && !((v[4]
|
|
148
|
+
if (c & 16 && !(truthy(equalValue(v[4], "", true))) !== !r.b0) {
|
|
152
149
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
|
|
153
150
|
else { r.b0 = m4(d); r.e0.before(r.b0.n); }
|
|
154
151
|
} else if (r.b0 !== undefined) p4(r.b0, c, d);
|
|
@@ -199,36 +196,40 @@ export function createUiEditorLinkCard(options = {}, html) {
|
|
|
199
196
|
}
|
|
200
197
|
};
|
|
201
198
|
const p0 = (r, c, d) => {
|
|
199
|
+
if (c === -1) {
|
|
200
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
201
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
202
|
+
}
|
|
202
203
|
if (c & 2) {
|
|
203
204
|
const x0 = textCall("concat", [v[1], "-edit"]);
|
|
204
205
|
if (x0 !== NONCONFORMING) {
|
|
205
|
-
const
|
|
206
|
-
if (
|
|
206
|
+
const s1 = toAttribute(x0, "id");
|
|
207
|
+
if (s1 !== r.v1) writeAttribute(r.a4, "id", r.v1 = s1);
|
|
207
208
|
}
|
|
208
209
|
if (x0 !== NONCONFORMING) {
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
210
|
+
const s2 = toAttribute(x0, "for");
|
|
211
|
+
if (s2 !== r.v2) writeAttribute(r.a5, "for", r.v2 = s2);
|
|
211
212
|
}
|
|
212
213
|
const x1 = textCall("concat", [v[1], "-remove"]);
|
|
213
214
|
if (x1 !== NONCONFORMING) {
|
|
214
|
-
const
|
|
215
|
-
if (
|
|
215
|
+
const s3 = toAttribute(x1, "id");
|
|
216
|
+
if (s3 !== r.v3) writeAttribute(r.a6, "id", r.v3 = s3);
|
|
216
217
|
}
|
|
217
218
|
if (x1 !== NONCONFORMING) {
|
|
218
|
-
const
|
|
219
|
-
if (
|
|
219
|
+
const s4 = toAttribute(x1, "for");
|
|
220
|
+
if (s4 !== r.v4) writeAttribute(r.a7, "for", r.v4 = s4);
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
|
-
if (c & 128 && !((v[7]
|
|
223
|
-
if (r.b0) { r.b0 = undefined; clearRegion(r.
|
|
223
|
+
if (c & 128 && !(truthy(equalValue(v[7], "", true))) !== !r.b0) {
|
|
224
|
+
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
224
225
|
else { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
225
226
|
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
226
|
-
if (c & 128 && !((v[7]
|
|
227
|
-
if (r.b1) { r.b1 = undefined; clearRegion(r.
|
|
227
|
+
if (c & 128 && !(truthy(equalValue(v[7], ""))) !== !r.b1) {
|
|
228
|
+
if (r.b1) { r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
228
229
|
else { r.b1 = m3(d); r.e1.before(r.b1.n); }
|
|
229
230
|
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
230
|
-
if (c & 128 && !((v[7]
|
|
231
|
-
if (r.b2) { r.b2 = undefined; clearRegion(r.
|
|
231
|
+
if (c & 128 && !(truthy(equalValue(v[7], "", true))) !== !r.b2) {
|
|
232
|
+
if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
|
|
232
233
|
else { r.b2 = m5(d); r.e2.before(r.b2.n); }
|
|
233
234
|
} else if (r.b2 !== undefined) p5(r.b2, c, d);
|
|
234
235
|
};
|
|
@@ -241,9 +242,10 @@ export function createUiEditorLinkCard(options = {}, html) {
|
|
|
241
242
|
const t6 = t5.nextSibling.nextSibling;
|
|
242
243
|
const t7 = t6.nextSibling.nextSibling;
|
|
243
244
|
const t8 = t7.nextSibling.nextSibling;
|
|
244
|
-
const R = {
|
|
245
|
+
const R = { n: element, a4: t5, a5: t6, a6: t7, a7: t8, v0: undefined, v1: null, v2: null, v3: null, v4: null, a1: t2, e0: t2.nextSibling, b0: undefined, a2: t3, e1: t3.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined };
|
|
245
246
|
const I = { B };
|
|
246
247
|
I.R = new Set();
|
|
248
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
247
249
|
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);
|
|
248
250
|
manageProps(I);
|
|
249
251
|
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 UiEditorLinkFormEventMap {
|
|
3
3
|
destination: CustomEvent<{ readonly value: string }>;
|
|
4
4
|
text: CustomEvent<{ readonly text: string }>;
|