@threadlabs/looma 0.52.12 → 0.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/shared/overlay.js +7 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
- package/components/ui-meter/ui-meter.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +1 -1
- package/editor/chunks/extensions.js +2 -2
- package/editor/components.css +19 -19
- package/editor/index.js +1125 -853
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card-group.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-column.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-data-table.css +1 -1
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-light-editor.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-notice-stripe.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-segmented-control.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +1 -1
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/styles/ui-wizard.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +14 -12
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +13 -11
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +27 -25
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +26 -23
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +14 -12
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +14 -13
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +10 -10
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +187 -244
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +272 -193
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +32 -27
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +72 -69
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +17 -15
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +32 -30
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +20 -18
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +22 -20
- package/vanilla/UiColumn.d.ts +2 -2
- package/vanilla/UiColumn.js +18 -15
- package/vanilla/UiCombobox.d.ts +3 -3
- package/vanilla/UiCombobox.js +237 -174
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +13 -8
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +17 -12
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +47 -45
- package/vanilla/UiCompactNode.d.ts +2 -2
- package/vanilla/UiCompactNode.js +37 -33
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +13 -11
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +11 -9
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +13 -11
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +40 -38
- package/vanilla/UiCycleButton.d.ts +2 -2
- package/vanilla/UiCycleButton.js +31 -26
- package/vanilla/UiDataTable.d.ts +1 -1
- package/vanilla/UiDataTable.js +26 -20
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +78 -75
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +155 -149
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +136 -128
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +13 -11
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +13 -11
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +14 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +28 -26
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +29 -27
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +62 -58
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +14 -12
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +22 -14
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +23 -16
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +17 -9
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +108 -71
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +68 -66
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +50 -35
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +27 -25
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +79 -57
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +63 -44
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +22 -16
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +52 -33
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +19 -14
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +27 -25
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +13 -11
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +81 -52
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +107 -68
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +121 -70
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +20 -12
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +94 -80
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +21 -20
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +21 -19
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +26 -23
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +20 -15
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +35 -43
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +16 -14
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +29 -35
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +16 -14
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +29 -27
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +33 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +12 -12
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +90 -80
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +20 -12
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +14 -11
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +74 -75
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +67 -62
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +63 -65
- package/vanilla/UiNoticeStripe.d.ts +1 -1
- package/vanilla/UiNoticeStripe.js +16 -16
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +41 -38
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +17 -15
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +53 -44
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +13 -11
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +25 -23
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +33 -36
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +20 -12
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +13 -11
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +21 -20
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +16 -14
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +48 -45
- package/vanilla/UiSegmentedControl.d.ts +2 -2
- package/vanilla/UiSegmentedControl.js +52 -47
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +17 -21
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +12 -12
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +17 -15
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +25 -23
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +21 -20
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +50 -47
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +34 -27
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +12 -12
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +22 -21
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +20 -17
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +25 -23
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +13 -11
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +13 -11
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +39 -28
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +128 -125
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +27 -39
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +42 -40
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +105 -102
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +14 -14
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +61 -31
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +17 -14
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +24 -22
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +17 -12
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +73 -79
- package/vanilla/UiWizard.d.ts +1 -1
- package/vanilla/UiWizard.js +61 -40
package/vanilla/UiDialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, 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, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-dialog/ui-dialog.js";
|
|
4
4
|
import "../styles/ui-dialog.css";
|
|
5
5
|
|
|
@@ -13,12 +13,9 @@ const D = { g: "ui-dialog", props: { "alert": { "required":false,"default":false
|
|
|
13
13
|
const C = (host) => activateModule(controller, host);
|
|
14
14
|
|
|
15
15
|
export function createUiDialog(options = {}, html) {
|
|
16
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
16
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
17
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["alert","closedby","for","label","modal","modeless","open","size"].includes(name)));
|
|
17
18
|
const element = document.createElement("dialog");
|
|
18
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
19
|
-
if (value === null || value === undefined || value === false) continue;
|
|
20
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
21
|
-
}
|
|
22
19
|
element.setAttribute("component", "ui-dialog");
|
|
23
20
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
24
21
|
const v = [false, "Dialog", null, null, null, null, null, null, null, null];
|
|
@@ -55,19 +52,21 @@ export function createUiDialog(options = {}, html) {
|
|
|
55
52
|
};
|
|
56
53
|
const p0 = (r, c, d) => {
|
|
57
54
|
if (c & 2) {
|
|
55
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
56
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
58
57
|
const x0 = v[1];
|
|
59
|
-
const
|
|
60
|
-
|
|
58
|
+
const s1 = toAttribute(x0, "aria-label");
|
|
59
|
+
writeAttribute(r.n, "aria-label", r.v1 = s1);
|
|
61
60
|
}
|
|
62
61
|
if (c === -1) {
|
|
63
62
|
const x1 = true;
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
63
|
+
const s2 = toAttribute(x1, "trim");
|
|
64
|
+
if (s2 !== r.v2) writeAttribute(r.a5, "trim", r.v2 = s2);
|
|
66
65
|
}
|
|
67
66
|
if (c & 516) {
|
|
68
67
|
const x2 = hostState(["size","alert"], [v[9], v[2]]);
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
68
|
+
const s3 = x2;
|
|
69
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-ui-dialog-state", (r.v3 = s3) === "" ? null : s3);
|
|
71
70
|
}
|
|
72
71
|
if (c & 32 && !(truthy(v[5])) !== !r.b0) {
|
|
73
72
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a2, r.e0); }
|
|
@@ -88,10 +87,11 @@ export function createUiDialog(options = {}, html) {
|
|
|
88
87
|
const t5 = t4.firstChild;
|
|
89
88
|
const t6 = t3.nextSibling.nextSibling;
|
|
90
89
|
const t7 = t6.firstChild;
|
|
91
|
-
const R = { n: element, a5: t4, v0: undefined, v1:
|
|
90
|
+
const R = { n: element, a5: t4, v0: undefined, v1: undefined, v2: null, v3: undefined, a2: t1, e0: t1.nextSibling, b0: undefined, a6: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a8: t7, e2: t7.nextSibling, b2: undefined, f2: undefined };
|
|
92
91
|
const I = { B };
|
|
93
92
|
const J = project(I, children, slots);
|
|
94
93
|
I.R = new Set();
|
|
94
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
95
95
|
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);
|
|
96
96
|
manageProps(I);
|
|
97
97
|
I.r["header"] = t0;
|
|
@@ -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 UiDisclosureEventMap {
|
|
3
3
|
open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
package/vanilla/UiDisclosure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkInteger, 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, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkInteger, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-disclosure/ui-disclosure.js";
|
|
4
4
|
import "../styles/ui-disclosure.css";
|
|
5
5
|
|
|
@@ -14,12 +14,9 @@ const D = { g: "ui-disclosure", props: { "density": { "required":false,"values":
|
|
|
14
14
|
const C = (host) => activateModule(controller, host);
|
|
15
15
|
|
|
16
16
|
export function createUiDisclosure(options = {}, html) {
|
|
17
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
17
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
18
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["density","disabled","fill","heading-level","name","open","required-open","summary","variant"].includes(name)));
|
|
18
19
|
const element = document.createElement("div");
|
|
19
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
20
|
-
if (value === null || value === undefined || value === false) continue;
|
|
21
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
22
|
-
}
|
|
23
20
|
element.setAttribute("component", "ui-disclosure");
|
|
24
21
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
25
22
|
const v = [false, "", null, null, null, null, null, null, null, null, null, null, null];
|
|
@@ -63,48 +60,52 @@ export function createUiDisclosure(options = {}, html) {
|
|
|
63
60
|
const p4 = (r, c, d) => {
|
|
64
61
|
};
|
|
65
62
|
const p0 = (r, c, d) => {
|
|
63
|
+
if (c === -1) {
|
|
64
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
65
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
66
|
+
}
|
|
66
67
|
if (c & 1073741828) {
|
|
67
68
|
const x0 = v[2];
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
69
|
+
const s1 = toAttribute(x0, "role");
|
|
70
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "role", r.v1 = s1);
|
|
70
71
|
}
|
|
71
72
|
if (c & 8) {
|
|
72
73
|
const x1 = v[3];
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
74
|
+
const s2 = toAttribute(x1, "aria-level");
|
|
75
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "aria-level", r.v2 = s2);
|
|
75
76
|
}
|
|
76
77
|
if (c & 2) {
|
|
77
78
|
const x2 = v[1];
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
79
|
+
const s3 = toAttribute(x2, "aria-controls");
|
|
80
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "aria-controls", r.v3 = s3);
|
|
81
|
+
const s6 = toAttribute(x2, "id");
|
|
82
|
+
if (s6 !== r.v6) writeAttribute(r.a6, "id", r.v6 = s6);
|
|
82
83
|
}
|
|
83
84
|
if (c & 1) {
|
|
84
85
|
const x3 = v[0];
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
86
|
+
const s4 = toAttribute(x3, "aria-expanded");
|
|
87
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "aria-expanded", r.v4 = s4);
|
|
87
88
|
}
|
|
88
89
|
if (c & 32) {
|
|
89
90
|
const x4 = v[5];
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
91
|
+
const s5 = toAttribute(x4, "disabled");
|
|
92
|
+
if (s5 !== r.v5) writeAttribute(r.a2, "disabled", r.v5 = s5);
|
|
92
93
|
}
|
|
93
94
|
if (c & 4177) {
|
|
94
95
|
const x5 = hostState(["density","internalOpen","fill","variant"], [v[4], v[0], v[6], v[12]]);
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
96
|
+
const s7 = x5;
|
|
97
|
+
if (s7 !== r.v7) writeAttribute(r.n, "data-ui-disclosure-state", (r.v7 = s7) === "" ? null : s7);
|
|
97
98
|
}
|
|
98
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
99
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a3, r.e0, "leading", J, false, undefined, d);
|
|
99
100
|
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); } }
|
|
100
101
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
101
|
-
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.
|
|
102
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a4, r.e1, "summary", J, true, undefined, d, r.z ??= []);
|
|
102
103
|
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); } }
|
|
103
104
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
104
|
-
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.
|
|
105
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a5, r.e2, "indicator", J, true, undefined, d, r.z ??= []);
|
|
105
106
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
|
|
106
107
|
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
107
|
-
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.
|
|
108
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a7, r.e3, "", J, false, undefined, d);
|
|
108
109
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
|
|
109
110
|
else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
110
111
|
};
|
|
@@ -117,10 +118,11 @@ export function createUiDisclosure(options = {}, html) {
|
|
|
117
118
|
const t6 = t4.nextSibling.nextSibling.firstChild;
|
|
118
119
|
const t7 = t0.nextSibling.nextSibling;
|
|
119
120
|
const t8 = t7.firstChild.firstChild;
|
|
120
|
-
const R = { n: element,
|
|
121
|
+
const R = { n: element, a1: t0, a2: t1, a6: t7, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: undefined, a3: t3, e0: t3.nextSibling, b0: undefined, f0: undefined, a4: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a5: t6, e2: t6.nextSibling, b2: undefined, f2: undefined, a7: t8, e3: t8.nextSibling, b3: undefined, f3: undefined };
|
|
121
122
|
const I = { B };
|
|
122
123
|
const J = project(I, children, slots);
|
|
123
124
|
I.R = new Set();
|
|
125
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
124
126
|
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);
|
|
125
127
|
manageProps(I);
|
|
126
128
|
I.r["heading"] = t0;
|
package/vanilla/UiEditable.d.ts
CHANGED
|
@@ -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 UiEditableEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: string; readonly previousValue: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
package/vanilla/UiEditable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, readsChanged, rec, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, 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, buildTemplate, clearRegion, readsChanged, rec, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editable/ui-editable.js";
|
|
4
4
|
import "../styles/ui-editable.css";
|
|
5
5
|
|
|
@@ -12,12 +12,9 @@ const D = { g: "ui-editable", props: { "actions": { "required":false,"default":f
|
|
|
12
12
|
const C = (host) => activateModule(controller, host);
|
|
13
13
|
|
|
14
14
|
export function createUiEditable(options = {}, html) {
|
|
15
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
15
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
16
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["actions","cancel-label","disabled","edit","hint","label","max-length","placeholder","required","save-label","value"].includes(name)));
|
|
16
17
|
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
18
|
element.setAttribute("component", "ui-editable");
|
|
22
19
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
23
20
|
const v = [false, "", "", null, null, null, null, null, null, null, null, null, null, null];
|
|
@@ -58,53 +55,57 @@ export function createUiEditable(options = {}, html) {
|
|
|
58
55
|
}
|
|
59
56
|
};
|
|
60
57
|
const p0 = (r, c, d) => {
|
|
58
|
+
if (c === -1) {
|
|
59
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
60
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
61
|
+
}
|
|
61
62
|
if (c & 32) {
|
|
62
63
|
const x0 = v[5];
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
64
|
+
const s1 = toAttribute(x0, "disabled");
|
|
65
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "disabled", r.v1 = s1);
|
|
65
66
|
}
|
|
66
67
|
if (c & 2) {
|
|
67
68
|
const x1 = v[1];
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
69
|
+
const s2 = toText(x1);
|
|
70
|
+
if (s2 !== r.v2) r.a2.data = r.v2 = s2;
|
|
70
71
|
}
|
|
71
72
|
if (c & 4) {
|
|
72
73
|
const f0 = [];
|
|
73
74
|
const x2 = rec(f0, v[2]);
|
|
74
|
-
if (c === -1 || c & 4 || readsChanged(r.
|
|
75
|
-
r.
|
|
76
|
-
r.
|
|
75
|
+
if (c === -1 || c & 4 || readsChanged(r.v3, f0)) {
|
|
76
|
+
r.v3 = f0;
|
|
77
|
+
r.a4["value"] = x2;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
if (c & 256) {
|
|
80
81
|
const x3 = v[8];
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
82
|
+
const s4 = toAttribute(x3, "aria-label");
|
|
83
|
+
if (s4 !== r.v4) writeAttribute(r.a4, "aria-label", r.v4 = s4);
|
|
83
84
|
}
|
|
84
85
|
if (c & 1024) {
|
|
85
86
|
const x4 = v[10];
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
87
|
+
const s5 = toAttribute(x4, "placeholder");
|
|
88
|
+
if (s5 !== r.v5) writeAttribute(r.a4, "placeholder", r.v5 = s5);
|
|
88
89
|
}
|
|
89
90
|
if (c & 2048) {
|
|
90
91
|
const x5 = v[11];
|
|
91
|
-
const
|
|
92
|
-
if (
|
|
92
|
+
const s6 = toAttribute(x5, "required");
|
|
93
|
+
if (s6 !== r.v6) writeAttribute(r.a4, "required", r.v6 = s6);
|
|
93
94
|
}
|
|
94
95
|
if (c & 33) {
|
|
95
96
|
const x6 = (truthy(v[5]) || !v[0]);
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
97
|
+
const s7 = toAttribute(x6, "disabled");
|
|
98
|
+
if (s7 !== r.v7) writeAttribute(r.a4, "disabled", r.v7 = s7);
|
|
98
99
|
const x7 = hostState(["internalEdit","disabled"], [v[0], v[5]]);
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
100
|
+
const s8 = x7;
|
|
101
|
+
if (s8 !== r.v8) writeAttribute(r.n, "data-ui-editable-state", (r.v8 = s8) === "" ? null : s8);
|
|
101
102
|
}
|
|
102
103
|
if (c & 128 && !(truthy(v[7])) !== !r.b0) {
|
|
103
|
-
if (r.b0) { r.b0 = undefined; clearRegion(r.
|
|
104
|
+
if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
|
|
104
105
|
else { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
105
106
|
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
106
107
|
if (c & 8 && !(truthy(v[3])) !== !r.b1) {
|
|
107
|
-
if (r.b1) { r.b1 = undefined; clearRegion(r.
|
|
108
|
+
if (r.b1) { r.b1 = undefined; clearRegion(r.a5, r.e1); }
|
|
108
109
|
else { r.b1 = m2(d); r.e1.before(r.b1.n); }
|
|
109
110
|
} else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
110
111
|
};
|
|
@@ -115,9 +116,10 @@ export function createUiEditable(options = {}, html) {
|
|
|
115
116
|
const t4 = t2.nextSibling.nextSibling;
|
|
116
117
|
const t5 = t1.nextSibling.nextSibling;
|
|
117
118
|
const t6 = t0.nextSibling.nextSibling;
|
|
118
|
-
const R = { n: element,
|
|
119
|
+
const R = { n: element, a1: t1, a2: t3, a4: t5, v0: undefined, v1: null, v2: "", v3: undefined, v4: null, v5: null, v6: null, v7: null, v8: undefined, a3: t4, e0: t4.nextSibling, b0: undefined, a5: t6, e1: t6.nextSibling, b1: undefined };
|
|
119
120
|
const I = { B };
|
|
120
121
|
I.R = new Set();
|
|
122
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
121
123
|
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);
|
|
122
124
|
manageProps(I);
|
|
123
125
|
I.r["preview"] = t1;
|
package/vanilla/UiEditor.d.ts
CHANGED
|
@@ -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
|
import type { RequestEvent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
export interface UiEditorEventMap {
|
|
4
4
|
change: CustomEvent<{ readonly content: { readonly type: string; readonly [name: string]: unknown } }>;
|
package/vanilla/UiEditor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute, dispatchDeclared, detailCheck, plainObject, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, RangedIndexedList, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, requestHost, 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, KeyedList, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute, dispatchDeclared, detailCheck, plainObject, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, RangedIndexedList, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, forwardAttributes, resetForwardedAttributes, requestHost, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor/ui-editor.js";
|
|
4
4
|
import "../styles/ui-editor.css";
|
|
5
5
|
|
|
@@ -48,12 +48,9 @@ const D = { g: "ui-editor", props: { "compactToolbar": { "required":false,"defau
|
|
|
48
48
|
const C = (host, I) => activateModule(controller, requestHost(host, I));
|
|
49
49
|
|
|
50
50
|
export function createUiEditor(options = {}, html) {
|
|
51
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
51
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
52
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["compact-toolbar","content","content-density","disable-highlight","editable","label","link-base-url","link-target-label","mention-items","mention-limit","placeholder","range-actions","references","selection-actions","toolbar-mode","toolbar-open","toolbar-trigger-id"].includes(name)));
|
|
52
53
|
const element = document.createElement("div");
|
|
53
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
54
|
-
if (value === null || value === undefined || value === false) continue;
|
|
55
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
56
|
-
}
|
|
57
54
|
if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
|
|
58
55
|
element.setAttribute("component", "ui-editor");
|
|
59
56
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -383,19 +380,19 @@ export function createUiEditor(options = {}, html) {
|
|
|
383
380
|
const x0 = readMember(v[0], "mobileToolbarMode");
|
|
384
381
|
const s0 = toAttribute(x0, "data-mode");
|
|
385
382
|
if (s0 !== r.v0) writeAttribute(r.n, "data-mode", r.v0 = s0);
|
|
386
|
-
const x1 = ((readMember(v[0], "mobileToolbarMode")
|
|
383
|
+
const x1 = (truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table")) ? "Table editing" : "Text formatting");
|
|
387
384
|
const s1 = toAttribute(x1, "aria-label");
|
|
388
385
|
if (s1 !== r.v1) writeAttribute(r.n, "aria-label", r.v1 = s1);
|
|
389
386
|
}
|
|
390
|
-
if (c & 1073741825 && !((readMember(v[0], "mobileToolbarMode")
|
|
387
|
+
if (c & 1073741825 && !(truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table"))) !== !r.b0) {
|
|
391
388
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
392
389
|
else { r.b0 = m15(d); r.e0.before(r.b0.n); }
|
|
393
390
|
} else if (r.b0 !== undefined) p15(r.b0, c, d);
|
|
394
|
-
if (c & 1073741825 && !((readMember(v[0], "mobileToolbarMode")
|
|
391
|
+
if (c & 1073741825 && !(truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table"))) !== !r.b1) {
|
|
395
392
|
if (r.b1) { r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
396
393
|
else { r.b1 = m16(d); r.e1.before(r.b1.n); }
|
|
397
394
|
} else if (r.b1 !== undefined) p16(r.b1, c, d);
|
|
398
|
-
if (c & 1073741825 && !((readMember(v[0], "mobileToolbarMode")
|
|
395
|
+
if (c & 1073741825 && !(truthy(equalValue(readMember(v[0], "mobileToolbarMode"), "table", true))) !== !r.b2) {
|
|
399
396
|
if (r.b2) { r.b2 = undefined; clearRegion(r.a3, r.e2); }
|
|
400
397
|
else { r.b2 = m17(d); r.e2.before(r.b2.n); }
|
|
401
398
|
} else if (r.b2 !== undefined) p17(r.b2, c, d);
|
|
@@ -871,55 +868,61 @@ export function createUiEditor(options = {}, html) {
|
|
|
871
868
|
};
|
|
872
869
|
const p0 = (r, c, d) => {
|
|
873
870
|
if (c & 1073741857) {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
871
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
872
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
873
|
+
const x0 = "-1";
|
|
874
|
+
const s1 = toAttribute(x0, "tabindex");
|
|
875
|
+
writeAttribute(r.n, "tabindex", r.v1 = s1);
|
|
876
|
+
const x1 = textCall("concat", ["looma-editor", (truthy(v[5]) ? "" : " looma-editor--readonly"), (truthy(readMember(v[0], "dragOver")) ? " looma-editor--drag-over" : "")]);
|
|
877
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
878
|
+
if (r.g2 !== NONCONFORMING) {
|
|
879
|
+
const s2 = toAttribute(r.g2, "class");
|
|
880
|
+
writeAttribute(r.n, "class", r.v2 = s2);
|
|
878
881
|
}
|
|
879
882
|
}
|
|
880
883
|
if (c & 1073741825) {
|
|
881
|
-
const
|
|
882
|
-
const
|
|
883
|
-
if (
|
|
884
|
-
const
|
|
885
|
-
const
|
|
886
|
-
if (
|
|
887
|
-
const
|
|
888
|
-
const
|
|
889
|
-
if (
|
|
890
|
-
const
|
|
891
|
-
const
|
|
892
|
-
if (
|
|
893
|
-
const
|
|
894
|
-
const
|
|
895
|
-
if (
|
|
896
|
-
const
|
|
897
|
-
const
|
|
898
|
-
if (
|
|
899
|
-
const
|
|
900
|
-
const
|
|
901
|
-
if (
|
|
902
|
-
const
|
|
903
|
-
const
|
|
904
|
-
if (
|
|
905
|
-
const
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
908
|
-
const
|
|
909
|
-
if (
|
|
910
|
-
const
|
|
911
|
-
const
|
|
912
|
-
if (
|
|
913
|
-
const
|
|
914
|
-
const
|
|
915
|
-
if (
|
|
916
|
-
const
|
|
917
|
-
if (
|
|
884
|
+
const x2 = readMember(v[0], "density");
|
|
885
|
+
const s3 = toAttribute(x2, "density");
|
|
886
|
+
if (s3 !== r.v3) writeAttribute(r.a7, "density", r.v3 = s3);
|
|
887
|
+
const x3 = readMember(readMember(v[0], "chip"), "open");
|
|
888
|
+
const s5 = toAttribute(x3, "open");
|
|
889
|
+
if (s5 !== r.v5) writeAttribute(r.a19, "open", r.v5 = s5);
|
|
890
|
+
const x4 = readMember(v[0], "chipAnchorId");
|
|
891
|
+
const s6 = toAttribute(x4, "for");
|
|
892
|
+
if (s6 !== r.v6) writeAttribute(r.a19, "for", r.v6 = s6);
|
|
893
|
+
const x5 = readMember(readMember(v[0], "chip"), "label");
|
|
894
|
+
const s7 = toAttribute(x5, "label");
|
|
895
|
+
if (s7 !== r.v7) writeAttribute(r.a20, "label", r.v7 = s7);
|
|
896
|
+
const x6 = readMember(readMember(v[0], "chip"), "color");
|
|
897
|
+
const s8 = toAttribute(x6, "color");
|
|
898
|
+
if (s8 !== r.v8) writeAttribute(r.a20, "color", r.v8 = s8);
|
|
899
|
+
const x7 = readMember(v[0], "linkOpen");
|
|
900
|
+
const s9 = toAttribute(x7, "open");
|
|
901
|
+
if (s9 !== r.v9) writeAttribute(r.a23, "open", r.v9 = s9);
|
|
902
|
+
const x8 = readMember(v[0], "linkAnchorId");
|
|
903
|
+
const s10 = toAttribute(x8, "for");
|
|
904
|
+
if (s10 !== r.v10) writeAttribute(r.a23, "for", r.v10 = s10);
|
|
905
|
+
const x9 = readMember(v[0], "placement");
|
|
906
|
+
const s11 = toAttribute(x9, "placement");
|
|
907
|
+
if (s11 !== r.v11) writeAttribute(r.a23, "placement", r.v11 = s11);
|
|
908
|
+
const x10 = readMember(v[0], "blockActionAnchorId");
|
|
909
|
+
const s12 = toAttribute(x10, "for");
|
|
910
|
+
if (s12 !== r.v12) writeAttribute(r.a26, "for", r.v12 = s12);
|
|
911
|
+
const s13 = toAttribute(x9, "placement");
|
|
912
|
+
if (s13 !== r.v13) writeAttribute(r.a26, "placement", r.v13 = s13);
|
|
913
|
+
const x11 = readMember(v[0], "tablePickerOpen");
|
|
914
|
+
const s14 = toAttribute(x11, "open");
|
|
915
|
+
if (s14 !== r.v14) writeAttribute(r.a27, "open", r.v14 = s14);
|
|
916
|
+
const x12 = readMember(v[0], "tablePickerAnchorId");
|
|
917
|
+
const s15 = toAttribute(x12, "for");
|
|
918
|
+
if (s15 !== r.v15) writeAttribute(r.a27, "for", r.v15 = s15);
|
|
919
|
+
const s16 = toAttribute(x9, "placement");
|
|
920
|
+
if (s16 !== r.v16) writeAttribute(r.a27, "placement", r.v16 = s16);
|
|
918
921
|
}
|
|
919
922
|
if (c === -1) {
|
|
920
|
-
const
|
|
921
|
-
const
|
|
922
|
-
if (
|
|
923
|
+
const x13 = true;
|
|
924
|
+
const s4 = toAttribute(x13, "multiple");
|
|
925
|
+
if (s4 !== r.v4) writeAttribute(r.a12, "multiple", r.v4 = s4);
|
|
923
926
|
}
|
|
924
927
|
if (c & 1073741825 && !(truthy(readMember(v[0], "resizeHintFor"))) !== !r.b0) {
|
|
925
928
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -977,11 +980,11 @@ export function createUiEditor(options = {}, html) {
|
|
|
977
980
|
if (r.b13) { r.b13 = undefined; clearRegion(r.a18, r.e13); }
|
|
978
981
|
else { r.b13 = m22(d); r.e13.before(r.b13.n); }
|
|
979
982
|
} else if (r.b13 !== undefined) p22(r.b13, c, d);
|
|
980
|
-
if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && (readMember(readMember(v[0], "footnote"), "surface")
|
|
983
|
+
if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && truthy(equalValue(readMember(readMember(v[0], "footnote"), "surface"), "actions")))) !== !r.b14) {
|
|
981
984
|
if (r.b14) { r.b14 = undefined; clearRegion(r.a21, r.e14); }
|
|
982
985
|
else { r.b14 = m23(d); r.e14.before(r.b14.n); }
|
|
983
986
|
} else if (r.b14 !== undefined) p23(r.b14, c, d);
|
|
984
|
-
if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && (readMember(readMember(v[0], "footnote"), "surface")
|
|
987
|
+
if (c & 1073741825 && !((truthy(readMember(readMember(v[0], "footnote"), "open")) && truthy(equalValue(readMember(readMember(v[0], "footnote"), "surface"), "editor")))) !== !r.b15) {
|
|
985
988
|
if (r.b15) { r.b15 = undefined; clearRegion(r.a22, r.e15); }
|
|
986
989
|
else { r.b15 = m24(d); r.e15.before(r.b15.n); }
|
|
987
990
|
} else if (r.b15 !== undefined) p24(r.b15, c, d);
|
|
@@ -1047,10 +1050,11 @@ export function createUiEditor(options = {}, html) {
|
|
|
1047
1050
|
const t30 = t29.nextSibling.nextSibling.nextSibling;
|
|
1048
1051
|
const t31 = t30.nextSibling.nextSibling.nextSibling;
|
|
1049
1052
|
const t32 = t31.nextSibling.nextSibling.nextSibling;
|
|
1050
|
-
const R = { n: element, a7: t6, a12: t11, a19: t18, a20: t19, a23: t22, a26: t25, a27: t26, v0: undefined, v1:
|
|
1053
|
+
const R = { n: element, a7: t6, a12: t11, a19: t18, a20: t19, a23: t22, a26: t25, a27: t26, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, 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, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined, a6: t5, e5: t5.nextSibling, b5: undefined, a8: t7, e6: t7.nextSibling, b6: undefined, a10: t9, e7: t9.nextSibling, b7: undefined, a11: t10, e8: t10.nextSibling, b8: undefined, a14: t13, e9: t13.nextSibling, b9: undefined, a15: t14, e10: t14.nextSibling, b10: undefined, a16: t15, e11: t15.nextSibling, b11: undefined, a17: t16, e12: t16.nextSibling, b12: undefined, a18: t17, e13: t17.nextSibling, b13: undefined, a21: t20, e14: t20.nextSibling, b14: undefined, a22: t21, e15: t21.nextSibling, b15: undefined, a24: t23, e16: t23.nextSibling, b16: undefined, a25: t24, e17: t24.nextSibling, b17: undefined, a29: t28, e18: t28.nextSibling, b18: undefined, a30: t29, e19: t29.nextSibling, b19: undefined, a31: t30, e20: t30.nextSibling, b20: undefined, a32: t31, e21: t31.nextSibling, b21: undefined, a33: t32, e22: t32.nextSibling, b22: undefined };
|
|
1051
1054
|
const I = { B };
|
|
1052
1055
|
const J = project(I, children, slots);
|
|
1053
1056
|
I.R = new Set();
|
|
1057
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
1054
1058
|
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);
|
|
1055
1059
|
manageProps(I);
|
|
1056
1060
|
I.r["mount"] = t8;
|
|
@@ -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 UiEditorBlockActionsEventMap {
|
|
3
3
|
action: CustomEvent<{ readonly action: "insert-below" | "duplicate" | "delete" }>;
|
|
4
4
|
}
|
|
@@ -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, checkConstrained, checkFormat, 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, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-block-actions/ui-editor-block-actions.js";
|
|
4
4
|
import "../styles/ui-editor-block-actions.css";
|
|
5
5
|
|
|
@@ -10,31 +10,33 @@ const D = { g: "ui-editor-block-actions", props: { "for": { "required":false,"de
|
|
|
10
10
|
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiEditorBlockActions(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]) => !["for","placement"].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-block-actions");
|
|
20
17
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
18
|
const v = [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 = v[0];
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
27
|
+
const s1 = toAttribute(x0, "for");
|
|
28
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "for", r.v1 = s1);
|
|
28
29
|
}
|
|
29
30
|
if (c & 1073741826) {
|
|
30
31
|
const x1 = v[1];
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
32
|
+
const s2 = toAttribute(x1, "placement");
|
|
33
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "placement", r.v2 = s2);
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
const t0 = element.firstChild.nextSibling;
|
|
36
|
-
const R = {
|
|
37
|
+
const R = { n: element, a1: t0, v0: undefined, v1: null, v2: null };
|
|
37
38
|
const I = { B };
|
|
39
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
38
40
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
39
41
|
manageProps(I);
|
|
40
42
|
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 UiEditorChipEditorEventMap {
|
|
3
3
|
label: CustomEvent<{ readonly label: string }>;
|
|
4
4
|
color: CustomEvent<{ readonly color: "neutral" | "blue" | "green" | "yellow" | "red" | "purple" }>;
|