@threadlabs/looma 0.52.11 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/shared/overlay.js +7 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
- package/components/ui-meter/ui-meter.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +1 -1
- package/editor/components.css +19 -19
- package/editor/index.js +1125 -853
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card-group.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-column.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-data-table.css +1 -1
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-light-editor.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-notice-stripe.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-segmented-control.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +1 -1
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/styles/ui-wizard.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +14 -12
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +13 -11
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +27 -25
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +26 -23
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +14 -12
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +14 -13
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +10 -10
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +187 -244
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +272 -193
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +32 -27
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +72 -69
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +17 -15
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +32 -30
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +20 -18
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +22 -20
- package/vanilla/UiColumn.d.ts +2 -2
- package/vanilla/UiColumn.js +18 -15
- package/vanilla/UiCombobox.d.ts +3 -3
- package/vanilla/UiCombobox.js +237 -174
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +13 -8
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +17 -12
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +47 -45
- package/vanilla/UiCompactNode.d.ts +2 -2
- package/vanilla/UiCompactNode.js +37 -33
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +13 -11
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +11 -9
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +13 -11
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +40 -38
- package/vanilla/UiCycleButton.d.ts +2 -2
- package/vanilla/UiCycleButton.js +31 -26
- package/vanilla/UiDataTable.d.ts +1 -1
- package/vanilla/UiDataTable.js +26 -20
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +78 -75
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +155 -149
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +136 -128
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +13 -11
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +13 -11
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +14 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +28 -26
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +29 -27
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +62 -58
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +14 -12
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +22 -14
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +23 -16
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +17 -9
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +108 -71
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +68 -66
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +50 -35
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +27 -25
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +79 -57
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +63 -44
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +22 -16
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +52 -33
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +19 -14
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +27 -25
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +13 -11
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +81 -52
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +107 -68
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +121 -70
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +20 -12
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +94 -80
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +21 -20
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +21 -19
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +26 -23
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +20 -15
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +35 -43
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +16 -14
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +29 -35
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +16 -14
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +29 -27
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +33 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +12 -12
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +90 -80
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +20 -12
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +14 -11
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +74 -75
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +67 -62
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +63 -65
- package/vanilla/UiNoticeStripe.d.ts +1 -1
- package/vanilla/UiNoticeStripe.js +16 -16
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +41 -38
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +17 -15
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +53 -44
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +13 -11
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +25 -23
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +33 -36
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +20 -12
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +13 -11
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +21 -20
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +16 -14
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +48 -45
- package/vanilla/UiSegmentedControl.d.ts +2 -2
- package/vanilla/UiSegmentedControl.js +52 -47
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +17 -21
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +12 -12
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +17 -15
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +25 -23
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +21 -20
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +50 -47
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +34 -27
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +12 -12
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +22 -21
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +20 -17
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +25 -23
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +13 -11
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +13 -11
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +39 -28
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +128 -125
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +27 -39
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +42 -40
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +105 -102
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +14 -14
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +61 -31
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +17 -14
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +24 -22
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +17 -12
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +73 -79
- package/vanilla/UiWizard.d.ts +1 -1
- package/vanilla/UiWizard.js +61 -40
package/vanilla/UiIcon.d.ts
CHANGED
package/vanilla/UiIcon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, readMember, toAttribute, trackContainer, writeAttribute, computedCycle, IndexedList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, equalValue, buildTemplate, clearRegion, NONCONFORMING, readIndex, readMember, toAttribute, trackContainer, truthy, writeAttribute, computedCycle, IndexedList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-icon.css";
|
|
4
4
|
|
|
5
5
|
const T0 = ["",[],"\n ",["svg",["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","focusable","false"],2],"\n "];
|
|
@@ -14,12 +14,9 @@ const S = { n: ["shapes"], t: ["?"], f: import.meta.url, g: "ui-icon", k: 0, r:
|
|
|
14
14
|
const D = { g: "ui-icon", props: { "directional": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["inherit","secondary","muted"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
15
15
|
|
|
16
16
|
export function createUiIcon(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]) => !["directional","name","tone"].includes(name)));
|
|
18
19
|
const element = document.createElement("span");
|
|
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
|
if (!element.hasAttribute("aria-hidden")) element.setAttribute("aria-hidden", "true");
|
|
24
21
|
element.setAttribute("component", "ui-icon");
|
|
25
22
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -54,19 +51,19 @@ export function createUiIcon(options = {}, html) {
|
|
|
54
51
|
};
|
|
55
52
|
const p1 = (r, c, d) => {
|
|
56
53
|
const o = r.i;
|
|
57
|
-
if (c & 1073741824 && !((readMember(o, "tag")
|
|
54
|
+
if (c & 1073741824 && !(truthy(equalValue(readMember(o, "tag"), "path"))) !== !r.b0) {
|
|
58
55
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a0, r.e0); }
|
|
59
56
|
else { r.b0 = m2(d, undefined, r); r.e0.before(r.b0.n); }
|
|
60
57
|
} else if (r.b0 !== undefined) p2(r.b0, c, d);
|
|
61
|
-
if (c & 1073741824 && !((readMember(o, "tag")
|
|
58
|
+
if (c & 1073741824 && !(truthy(equalValue(readMember(o, "tag"), "circle"))) !== !r.b1) {
|
|
62
59
|
if (r.b1) { r.b1 = undefined; clearRegion(r.a1, r.e1); }
|
|
63
60
|
else { r.b1 = m3(d, undefined, r); r.e1.before(r.b1.n); }
|
|
64
61
|
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
65
|
-
if (c & 1073741824 && !((readMember(o, "tag")
|
|
62
|
+
if (c & 1073741824 && !(truthy(equalValue(readMember(o, "tag"), "rect"))) !== !r.b2) {
|
|
66
63
|
if (r.b2) { r.b2 = undefined; clearRegion(r.a2, r.e2); }
|
|
67
64
|
else { r.b2 = m4(d, undefined, r); r.e2.before(r.b2.n); }
|
|
68
65
|
} else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
69
|
-
if (c & 1073741824 && !((readMember(o, "tag")
|
|
66
|
+
if (c & 1073741824 && !(truthy(equalValue(readMember(o, "tag"), "line"))) !== !r.b3) {
|
|
70
67
|
if (r.b3) { r.b3 = undefined; clearRegion(r.a3, r.e3); }
|
|
71
68
|
else { r.b3 = m5(d, undefined, r); r.e3.before(r.b3.n); }
|
|
72
69
|
} else if (r.b3 !== undefined) p5(r.b3, c, d);
|
|
@@ -158,16 +155,24 @@ export function createUiIcon(options = {}, html) {
|
|
|
158
155
|
}
|
|
159
156
|
};
|
|
160
157
|
const p0 = (r, c, d) => {
|
|
158
|
+
if (c === -1) {
|
|
159
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
160
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
161
|
+
const x0 = "true";
|
|
162
|
+
const s1 = toAttribute(x0, "aria-hidden");
|
|
163
|
+
writeAttribute(r.n, "aria-hidden", r.v1 = s1);
|
|
164
|
+
}
|
|
161
165
|
if (c & 10) {
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
166
|
+
const x1 = hostState(["tone","directional"], [v[3], v[1]]);
|
|
167
|
+
const s2 = x1;
|
|
168
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-ui-icon-state", (r.v2 = s2) === "" ? null : s2);
|
|
165
169
|
}
|
|
166
170
|
if (c & 1073741828) r.L0.update(g(0), d, c);
|
|
167
171
|
};
|
|
168
172
|
const t0 = element.firstChild.nextSibling.firstChild;
|
|
169
|
-
const R = { n: element, v0: undefined, L0: new IndexedList(t0, t0.nextSibling, m1, p1, undefined, "shape") };
|
|
173
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, L0: new IndexedList(t0, t0.nextSibling, m1, p1, undefined, "shape") };
|
|
170
174
|
const I = { B };
|
|
175
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
171
176
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, X, I);
|
|
172
177
|
manageProps(I);
|
|
173
178
|
return element;
|
package/vanilla/UiIconButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, computedCycle, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, project, fillSlot, readonlyView, checkBoolean, checkFormat, 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, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, computedCycle, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, project, fillSlot, readonlyView, checkBoolean, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-icon-button/ui-icon-button.js";
|
|
4
4
|
import "../styles/ui-icon-button.css";
|
|
5
5
|
|
|
@@ -12,12 +12,9 @@ const D = { g: "ui-icon-button", props: { "anticipatory": { "required":false,"de
|
|
|
12
12
|
const C = (host) => activateModule(controller, host);
|
|
13
13
|
|
|
14
14
|
export function createUiIconButton(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]) => !["anticipatory","disabled","guide","label","loading","match-button","pending","preset","revealed","round","size","tone","variant"].includes(name)));
|
|
16
17
|
const element = document.createElement("button");
|
|
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
|
if (!element.hasAttribute("type")) element.setAttribute("type", "button");
|
|
22
19
|
element.setAttribute("component", "ui-icon-button");
|
|
23
20
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -57,47 +54,41 @@ export function createUiIconButton(options = {}, html) {
|
|
|
57
54
|
const p2 = (r, c, d) => {
|
|
58
55
|
};
|
|
59
56
|
const p0 = (r, c, d) => {
|
|
60
|
-
if (c &
|
|
57
|
+
if (c & 1073767400) {
|
|
58
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
59
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
61
60
|
const x0 = g(0);
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
if (c & 1073750528) {
|
|
61
|
+
const s1 = toAttribute(x0, "data-appearance");
|
|
62
|
+
writeAttribute(r.n, "data-appearance", r.v1 = s1);
|
|
66
63
|
const x1 = g(1);
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
if (c & 8) {
|
|
64
|
+
const s2 = toAttribute(x1, "data-tone");
|
|
65
|
+
writeAttribute(r.n, "data-tone", r.v2 = s2);
|
|
71
66
|
const x2 = v[3];
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const s5 = toAttribute(x5, "aria-disabled");
|
|
89
|
-
if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
|
|
67
|
+
const s3 = toAttribute(x2, "disabled");
|
|
68
|
+
writeAttribute(r.n, "disabled", r.v3 = s3);
|
|
69
|
+
const x3 = "button";
|
|
70
|
+
const s4 = toAttribute(x3, "type");
|
|
71
|
+
writeAttribute(r.n, "type", r.v4 = s4);
|
|
72
|
+
const x4 = v[5];
|
|
73
|
+
const s5 = toAttribute(x4, "aria-label");
|
|
74
|
+
writeAttribute(r.n, "aria-label", r.v5 = s5);
|
|
75
|
+
const x5 = v[7];
|
|
76
|
+
const s6 = toAttribute(x5, "data-match-button");
|
|
77
|
+
writeAttribute(r.n, "data-match-button", r.v6 = s6);
|
|
78
|
+
const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[6]) || truthy(v[8]))]));
|
|
79
|
+
if (x6 !== NONCONFORMING) r.g7 = x6;
|
|
80
|
+
if (r.g7 !== NONCONFORMING) {
|
|
81
|
+
const s7 = toAttribute(r.g7, "aria-disabled");
|
|
82
|
+
writeAttribute(r.n, "aria-disabled", r.v7 = s7);
|
|
90
83
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const s6 = toAttribute(x6, "aria-busy");
|
|
95
|
-
if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
|
|
84
|
+
const x7 = (truthy(v[6]) || truthy(v[8]));
|
|
85
|
+
const s8 = toAttribute(x7, "aria-busy");
|
|
86
|
+
writeAttribute(r.n, "aria-busy", r.v8 = s8);
|
|
96
87
|
}
|
|
97
88
|
if (c & 7636) {
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
89
|
+
const x8 = hostState(["anticipatory","guide","revealed","loading","pending","size","matchButton","round"], [v[2], v[4], v[10], v[6], v[8], v[12], v[7], v[11]]);
|
|
90
|
+
const s9 = x8;
|
|
91
|
+
if (s9 !== r.v9) writeAttribute(r.n, "data-ui-icon-button-state", (r.v9 = s9) === "" ? null : s9);
|
|
101
92
|
}
|
|
102
93
|
if (c & 320 && !((truthy(v[6]) || truthy(v[8]))) !== !r.b0) {
|
|
103
94
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -109,9 +100,10 @@ export function createUiIconButton(options = {}, html) {
|
|
|
109
100
|
};
|
|
110
101
|
const t0 = element.firstChild.nextSibling;
|
|
111
102
|
const t1 = t0.nextSibling.nextSibling.nextSibling.firstChild;
|
|
112
|
-
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined };
|
|
103
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, g7: NONCONFORMING, v8: undefined, v9: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined };
|
|
113
104
|
const I = { B };
|
|
114
105
|
const J = project(I, children, slots);
|
|
106
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
115
107
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, X, I);
|
|
116
108
|
manageProps(I);
|
|
117
109
|
return element;
|
package/vanilla/UiImage.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 UiImageEventMap {
|
|
3
3
|
resize: CustomEvent<{ readonly width: number; readonly height: number; readonly phase: "preview" | "commit" | "cancel"; readonly trigger: "pointer" | "keyboard" }>;
|
|
4
4
|
}
|
package/vanilla/UiImage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, truthy, writeAttribute, writeUrlAttribute, 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, truthy, writeAttribute, writeUrlAttribute, 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-image/ui-image.js";
|
|
4
4
|
import "../styles/ui-image.css";
|
|
5
5
|
|
|
@@ -12,12 +12,9 @@ const D = { g: "ui-image", props: { "alt": { "required":false,"default":"", c: c
|
|
|
12
12
|
const C = (host) => activateModule(controller, host);
|
|
13
13
|
|
|
14
14
|
export function createUiImage(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]) => !["alt","height","placement","resizable","selected","src","width"].includes(name)));
|
|
16
17
|
const element = document.createElement("figure");
|
|
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-image");
|
|
22
19
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
23
20
|
const v = [null, null, null, null, null, null, null];
|
|
@@ -60,20 +57,24 @@ export function createUiImage(options = {}, html) {
|
|
|
60
57
|
const p2 = (r, c, d) => {
|
|
61
58
|
};
|
|
62
59
|
const p0 = (r, c, d) => {
|
|
60
|
+
if (c === -1) {
|
|
61
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
62
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
63
|
+
}
|
|
63
64
|
if (c & 24) {
|
|
64
65
|
const x0 = !(truthy(v[4]) && truthy(v[3]));
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
66
|
+
const s1 = toAttribute(x0, "hidden");
|
|
67
|
+
if (s1 !== r.v1) writeAttribute(r.a3, "hidden", r.v1 = s1);
|
|
67
68
|
}
|
|
68
69
|
if (c & 20) {
|
|
69
70
|
const x1 = hostState(["placement","selected"], [v[2], v[4]]);
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
71
|
+
const s2 = x1;
|
|
72
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-ui-image-state", (r.v2 = s2) === "" ? null : s2);
|
|
72
73
|
}
|
|
73
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
74
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a2, r.e0, "media", J, true, undefined, d, r.z ??= []);
|
|
74
75
|
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); } }
|
|
75
76
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
76
|
-
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.
|
|
77
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a4, r.e1, "controls", J, false, undefined, d);
|
|
77
78
|
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); } }
|
|
78
79
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
79
80
|
};
|
|
@@ -81,9 +82,10 @@ export function createUiImage(options = {}, html) {
|
|
|
81
82
|
const t1 = t0.firstChild.nextSibling;
|
|
82
83
|
const t2 = t1.nextSibling.nextSibling.nextSibling;
|
|
83
84
|
const t3 = t2.nextSibling.nextSibling;
|
|
84
|
-
const R = { n: element,
|
|
85
|
+
const R = { n: element, a3: t2, v0: undefined, v1: null, v2: undefined, a2: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a4: t3, e1: t3.nextSibling, b1: undefined, f1: undefined };
|
|
85
86
|
const I = { B };
|
|
86
87
|
const J = project(I, children, slots);
|
|
88
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
87
89
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
88
90
|
manageProps(I);
|
|
89
91
|
I.r["frame"] = t0;
|
package/vanilla/UiInput.d.ts
CHANGED
package/vanilla/UiInput.js
CHANGED
|
@@ -1,63 +1,57 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, NONCONFORMING, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, NONCONFORMING, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkList, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-input/ui-input.js";
|
|
4
4
|
import "../styles/ui-input.css";
|
|
5
5
|
|
|
6
|
+
const RC0 = ["s", "string"];
|
|
7
|
+
const RC1 = ["n", "number"];
|
|
8
|
+
const RC2 = ["z", "null"];
|
|
6
9
|
const S = { n: [], t: [], f: import.meta.url, g: "ui-input", a: (host, I) => C(host, I), b: generatedInputs };
|
|
7
10
|
const D = { g: "ui-input", props: { "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "invalid": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "readonly": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "segments": { "required":false, c: checkList(checkObject([["placeholder", checkString, true], ["pattern", checkString, true], ["literal", checkString, true]], false)), j: 1, m: ["l",["o",["placeholder","s","pattern","s","literal","s"]]] }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","file"],"default":"text", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false, select: { from: "type", options: [{ value: "text", c: checkString, t: "string", j: 0, m: "s" }, { value: "search", c: checkString, t: "string", j: 0, m: "s" }, { value: "tel", c: checkString, t: "string", j: 0, m: "s" }, { value: "url", c: checkString, t: "string", j: 0, m: "s" }, { value: "email", c: checkString, t: "string", j: 0, m: "s" }, { value: "password", c: checkString, t: "string", j: 0, m: "s" }, { value: "date", c: checkString, t: "string", j: 0, m: "s" }, { value: "month", c: checkString, t: "string", j: 0, m: "s" }, { value: "week", c: checkString, t: "string", j: 0, m: "s" }, { value: "time", c: checkString, t: "string", j: 0, m: "s" }, { value: "datetime-local", c: checkString, t: "string", j: 0, m: "s" }, { value: "number", c: checkNumber, t: "number", j: 0, m: "n" }, { value: "range", c: checkNumber, t: "number", j: 0, m: "n" }, { value: "color", c: checkString, t: "string", j: 0, m: "s" }, { value: "file", c: checkString, t: "string", j: 0, m: "s" }] } } } };
|
|
8
11
|
const C = (host) => activateModule(controller, host);
|
|
9
12
|
|
|
10
13
|
export function createUiInput(options = {}, html) {
|
|
11
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
15
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["disabled","invalid","readonly","required","segments","size","type","value"].includes(name)));
|
|
12
16
|
const element = document.createElement("input");
|
|
13
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
14
|
-
if (value === null || value === undefined || value === false) continue;
|
|
15
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
16
|
-
}
|
|
17
17
|
element.setAttribute("component", "ui-input");
|
|
18
18
|
const v = [null, null, null, null, null, null, null, null];
|
|
19
19
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
20
20
|
const p0 = (r, c, d) => {
|
|
21
|
-
if (c &
|
|
21
|
+
if (c & 1073742031) {
|
|
22
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
23
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
22
24
|
const x0 = v[6];
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (s1 !== r.v1) writeAttribute(r.n, "value", r.v1 = s1);
|
|
25
|
+
const s1 = toAttribute(x0, "type");
|
|
26
|
+
writeAttribute(r.n, "type", r.v1 = s1);
|
|
27
|
+
const x1 = checkedReferenceValue(S, v[7], (v[6] === "text" ? RC0 : v[6] === "search" ? RC0 : v[6] === "tel" ? RC0 : v[6] === "url" ? RC0 : v[6] === "email" ? RC0 : v[6] === "password" ? RC0 : v[6] === "date" ? RC0 : v[6] === "month" ? RC0 : v[6] === "week" ? RC0 : v[6] === "time" ? RC0 : v[6] === "datetime-local" ? RC0 : v[6] === "number" ? RC1 : v[6] === "range" ? RC1 : v[6] === "color" ? RC0 : v[6] === "file" ? RC0 : RC2), "expression:$value:value", "value");
|
|
28
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
29
|
+
if (r.g2 !== NONCONFORMING) {
|
|
30
|
+
const s2 = toAttribute(r.g2, "value");
|
|
31
|
+
writeAttribute(r.n, "value", r.v2 = s2);
|
|
31
32
|
}
|
|
32
|
-
}
|
|
33
|
-
if (c & 1) {
|
|
34
33
|
const x2 = v[0];
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
if (c & 4) {
|
|
34
|
+
const s3 = toAttribute(x2, "disabled");
|
|
35
|
+
writeAttribute(r.n, "disabled", r.v3 = s3);
|
|
39
36
|
const x3 = v[2];
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
if (c & 8) {
|
|
37
|
+
const s4 = toAttribute(x3, "readonly");
|
|
38
|
+
writeAttribute(r.n, "readonly", r.v4 = s4);
|
|
44
39
|
const x4 = v[3];
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
if (c & 2) {
|
|
40
|
+
const s5 = toAttribute(x4, "required");
|
|
41
|
+
writeAttribute(r.n, "required", r.v5 = s5);
|
|
49
42
|
const x5 = v[1];
|
|
50
|
-
const
|
|
51
|
-
|
|
43
|
+
const s6 = toAttribute(x5, "aria-invalid");
|
|
44
|
+
writeAttribute(r.n, "aria-invalid", r.v6 = s6);
|
|
52
45
|
}
|
|
53
46
|
if (c & 32) {
|
|
54
47
|
const x6 = hostState(["size"], [v[5]]);
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
48
|
+
const s7 = x6;
|
|
49
|
+
if (s7 !== r.v7) writeAttribute(r.n, "data-ui-input-state", (r.v7 = s7) === "" ? null : s7);
|
|
57
50
|
}
|
|
58
51
|
};
|
|
59
|
-
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined };
|
|
52
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined };
|
|
60
53
|
const I = { B };
|
|
54
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
61
55
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
62
56
|
manageProps(I);
|
|
63
57
|
return element;
|
package/vanilla/UiInputGroup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, 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, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-input-group/ui-input-group.js";
|
|
4
4
|
import "../styles/ui-input-group.css";
|
|
5
5
|
|
|
@@ -14,12 +14,9 @@ const D = { g: "ui-input-group", props: { "actionPosition": { "required":false,"
|
|
|
14
14
|
const C = (host) => activateModule(controller, host);
|
|
15
15
|
|
|
16
16
|
export function createUiInputGroup(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]) => !["action-position","disabled","multiline","prefix-kind","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-input-group");
|
|
24
21
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
25
22
|
const v = [null, null, null, null, null];
|
|
@@ -57,21 +54,25 @@ export function createUiInputGroup(options = {}, html) {
|
|
|
57
54
|
const p4 = (r, c, d) => {
|
|
58
55
|
};
|
|
59
56
|
const p0 = (r, c, d) => {
|
|
57
|
+
if (c === -1) {
|
|
58
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
59
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
60
|
+
}
|
|
60
61
|
if (c & 31) {
|
|
61
62
|
const x0 = hostState(["variant","disabled","prefixKind","multiline","actionPosition"], [v[4], v[1], v[3], v[2], v[0]]);
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
63
|
+
const s1 = x0;
|
|
64
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-ui-input-group-state", (r.v1 = s1) === "" ? null : s1);
|
|
64
65
|
}
|
|
65
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
66
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "prefix", J, false, undefined, d);
|
|
66
67
|
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); } }
|
|
67
68
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
68
|
-
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.
|
|
69
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
69
70
|
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); } }
|
|
70
71
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
71
|
-
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.
|
|
72
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "suffix", J, false, undefined, d);
|
|
72
73
|
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); } }
|
|
73
74
|
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
74
|
-
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.
|
|
75
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "action", J, false, undefined, d);
|
|
75
76
|
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); } }
|
|
76
77
|
else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
77
78
|
};
|
|
@@ -82,9 +83,10 @@ export function createUiInputGroup(options = {}, html) {
|
|
|
82
83
|
const t4 = t2.nextSibling.nextSibling;
|
|
83
84
|
const t5 = t4.firstChild;
|
|
84
85
|
const t6 = t4.nextSibling.nextSibling.firstChild;
|
|
85
|
-
const R = { n: element, v0: undefined,
|
|
86
|
+
const R = { n: element, v0: undefined, v1: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined, f2: undefined, a4: t6, e3: t6.nextSibling, b3: undefined, f3: undefined };
|
|
86
87
|
const I = { B };
|
|
87
88
|
const J = project(I, children, slots);
|
|
89
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
88
90
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
89
91
|
manageProps(I);
|
|
90
92
|
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 UiLightEditorEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly x: number; readonly y: number }>;
|
|
4
4
|
change: CustomEvent<{ readonly x: number; readonly y: number }>;
|
package/vanilla/UiLightEditor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, 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, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-light-editor/ui-light-editor.js";
|
|
4
4
|
import "../styles/ui-light-editor.css";
|
|
5
5
|
|
|
@@ -11,12 +11,9 @@ const D = { g: "ui-light-editor", props: { "disabled": { "required":false,"defau
|
|
|
11
11
|
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiLightEditor(options = {}, html) {
|
|
14
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
15
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["disabled","label","size","x","y"].includes(name)));
|
|
15
16
|
const element = document.createElement("span");
|
|
16
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
17
|
-
if (value === null || value === undefined || value === false) continue;
|
|
18
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
19
|
-
}
|
|
20
17
|
element.setAttribute("component", "ui-light-editor");
|
|
21
18
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
22
19
|
const v = ["50", "0", null, null, null, null, null];
|
|
@@ -30,54 +27,58 @@ export function createUiLightEditor(options = {}, html) {
|
|
|
30
27
|
const p1 = (r, c, d) => {
|
|
31
28
|
};
|
|
32
29
|
const p0 = (r, c, d) => {
|
|
30
|
+
if (c === -1) {
|
|
31
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
32
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
33
|
+
}
|
|
33
34
|
if (c & 8) {
|
|
34
35
|
const x0 = v[3];
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
36
|
+
const s1 = toAttribute(x0, "aria-label");
|
|
37
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "aria-label", r.v1 = s1);
|
|
37
38
|
}
|
|
38
39
|
if (c & 4) {
|
|
39
40
|
const x1 = v[2];
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
41
|
+
const s2 = toAttribute(x1, "disabled");
|
|
42
|
+
if (s2 !== r.v2) writeAttribute(r.a4, "disabled", r.v2 = s2);
|
|
42
43
|
}
|
|
43
44
|
if (c & 8) {
|
|
44
45
|
const x2 = textCall("concat", [v[3], ". Arrow keys move the source; Shift moves faster."]);
|
|
45
46
|
if (x2 !== NONCONFORMING) {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
47
|
+
const s3 = toAttribute(x2, "aria-label");
|
|
48
|
+
if (s3 !== r.v3) writeAttribute(r.a4, "aria-label", r.v3 = s3);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
if (c & 1) {
|
|
51
52
|
const x3 = v[0];
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
53
|
+
const s4 = toAttribute(x3, "value");
|
|
54
|
+
if (s4 !== r.v4) writeAttribute(r.a5, "value", r.v4 = s4);
|
|
54
55
|
}
|
|
55
56
|
if (c & 1073741840) {
|
|
56
57
|
const x4 = v[4];
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
58
|
+
const s5 = toAttribute(x4, "size");
|
|
59
|
+
if (s5 !== r.v5) writeAttribute(r.a5, "size", r.v5 = s5);
|
|
59
60
|
}
|
|
60
61
|
if (c & 4) {
|
|
61
62
|
const x5 = v[2];
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
63
|
+
const s6 = toAttribute(x5, "disabled");
|
|
64
|
+
if (s6 !== r.v6) writeAttribute(r.a5, "disabled", r.v6 = s6);
|
|
64
65
|
}
|
|
65
66
|
if (c & 2) {
|
|
66
67
|
const x6 = v[1];
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
68
|
+
const s7 = toAttribute(x6, "value");
|
|
69
|
+
if (s7 !== r.v7) writeAttribute(r.a6, "value", r.v7 = s7);
|
|
69
70
|
}
|
|
70
71
|
if (c & 1073741840) {
|
|
71
72
|
const x7 = v[4];
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
73
|
+
const s8 = toAttribute(x7, "size");
|
|
74
|
+
if (s8 !== r.v8) writeAttribute(r.a6, "size", r.v8 = s8);
|
|
74
75
|
}
|
|
75
76
|
if (c & 4) {
|
|
76
77
|
const x8 = v[2];
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
78
|
+
const s9 = toAttribute(x8, "disabled");
|
|
79
|
+
if (s9 !== r.v9) writeAttribute(r.a6, "disabled", r.v9 = s9);
|
|
79
80
|
}
|
|
80
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
81
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a3, r.e0, "", J, false, undefined, d);
|
|
81
82
|
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); } }
|
|
82
83
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
83
84
|
};
|
|
@@ -89,10 +90,11 @@ export function createUiLightEditor(options = {}, html) {
|
|
|
89
90
|
const t5 = t0.nextSibling.nextSibling.nextSibling.nextSibling.firstChild;
|
|
90
91
|
const t6 = t5.firstChild.nextSibling;
|
|
91
92
|
const t7 = t6.nextSibling.nextSibling;
|
|
92
|
-
const R = {
|
|
93
|
+
const R = { n: element, a1: t0, a4: t4, a5: t6, a6: t7, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, a3: t3, e0: t3.nextSibling, b0: undefined, f0: undefined };
|
|
93
94
|
const I = { B };
|
|
94
95
|
const J = project(I, children, slots);
|
|
95
96
|
I.R = new Set();
|
|
97
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
96
98
|
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);
|
|
97
99
|
manageProps(I);
|
|
98
100
|
I.r["plane"] = t1;
|
package/vanilla/UiList.d.ts
CHANGED