@threadlabs/looma 0.52.12 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/shared/overlay.js +7 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
- package/components/ui-meter/ui-meter.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +1 -1
- package/editor/components.css +19 -19
- package/editor/index.js +1125 -853
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card-group.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-column.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-data-table.css +1 -1
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-light-editor.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-notice-stripe.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-segmented-control.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +1 -1
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/styles/ui-wizard.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +14 -12
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +13 -11
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +27 -25
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +26 -23
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +14 -12
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +14 -13
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +10 -10
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +187 -244
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +272 -193
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +32 -27
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +72 -69
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +17 -15
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +32 -30
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +20 -18
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +22 -20
- package/vanilla/UiColumn.d.ts +2 -2
- package/vanilla/UiColumn.js +18 -15
- package/vanilla/UiCombobox.d.ts +3 -3
- package/vanilla/UiCombobox.js +237 -174
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +13 -8
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +17 -12
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +47 -45
- package/vanilla/UiCompactNode.d.ts +2 -2
- package/vanilla/UiCompactNode.js +37 -33
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +13 -11
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +11 -9
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +13 -11
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +40 -38
- package/vanilla/UiCycleButton.d.ts +2 -2
- package/vanilla/UiCycleButton.js +31 -26
- package/vanilla/UiDataTable.d.ts +1 -1
- package/vanilla/UiDataTable.js +26 -20
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +78 -75
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +155 -149
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +136 -128
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +13 -11
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +13 -11
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +14 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +28 -26
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +29 -27
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +62 -58
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +14 -12
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +22 -14
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +23 -16
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +17 -9
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +108 -71
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +68 -66
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +50 -35
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +27 -25
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +79 -57
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +63 -44
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +22 -16
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +52 -33
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +19 -14
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +27 -25
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +13 -11
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +81 -52
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +107 -68
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +121 -70
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +20 -12
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +94 -80
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +21 -20
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +21 -19
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +26 -23
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +20 -15
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +35 -43
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +16 -14
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +29 -35
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +16 -14
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +29 -27
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +33 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +12 -12
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +90 -80
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +20 -12
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +14 -11
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +74 -75
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +67 -62
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +63 -65
- package/vanilla/UiNoticeStripe.d.ts +1 -1
- package/vanilla/UiNoticeStripe.js +16 -16
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +41 -38
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +17 -15
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +53 -44
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +13 -11
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +25 -23
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +33 -36
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +20 -12
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +13 -11
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +21 -20
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +16 -14
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +48 -45
- package/vanilla/UiSegmentedControl.d.ts +2 -2
- package/vanilla/UiSegmentedControl.js +52 -47
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +17 -21
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +12 -12
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +17 -15
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +25 -23
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +21 -20
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +50 -47
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +34 -27
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +12 -12
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +22 -21
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +20 -17
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +25 -23
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +13 -11
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +13 -11
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +39 -28
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +128 -125
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +27 -39
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +42 -40
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +105 -102
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +14 -14
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +61 -31
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +17 -14
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +24 -22
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +17 -12
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +73 -79
- package/vanilla/UiWizard.d.ts +1 -1
- package/vanilla/UiWizard.js +61 -40
package/vanilla/UiCluster.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkInteger, checkObject, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, equalValue, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkInteger, checkObject, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-cluster/ui-cluster.js";
|
|
4
4
|
import "../styles/ui-cluster.css";
|
|
5
5
|
|
|
@@ -13,12 +13,9 @@ const D = { g: "ui-cluster", props: { "align": { "required":false,"values":["sta
|
|
|
13
13
|
const C = (host) => activateModule(controller, host);
|
|
14
14
|
|
|
15
15
|
export function createUiCluster(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]) => !["align","fixed","gap","justify","max-rows","padding","padding-end","wrap"].includes(name)));
|
|
17
18
|
const element = document.createElement("div");
|
|
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-cluster");
|
|
23
20
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
24
21
|
const v = [0, null, null, null, null, null, null, null, null];
|
|
@@ -48,35 +45,40 @@ export function createUiCluster(options = {}, html) {
|
|
|
48
45
|
const p3 = (r, c, d) => {
|
|
49
46
|
};
|
|
50
47
|
const p0 = (r, c, d) => {
|
|
48
|
+
if (c === -1) {
|
|
49
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
50
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
51
|
+
}
|
|
51
52
|
if (c & 1) {
|
|
52
|
-
const x0 = (v[0]
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
53
|
+
const x0 = equalValue(v[0], 0);
|
|
54
|
+
const s1 = toAttribute(x0, "hidden");
|
|
55
|
+
if (s1 !== r.v1) writeAttribute(r.a2, "hidden", r.v1 = s1);
|
|
55
56
|
}
|
|
56
57
|
if (c & 478) {
|
|
57
58
|
const x1 = hostState(["fixed","padding","paddingEnd","gap","align","justify","wrap"], [v[2], v[6], v[7], v[3], v[1], v[4], v[8]]);
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
59
|
+
const s2 = x1;
|
|
60
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-ui-cluster-state", (r.v2 = s2) === "" ? null : s2);
|
|
60
61
|
}
|
|
61
|
-
if (r.
|
|
62
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
|
|
63
|
+
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); } }
|
|
64
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
65
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a3, r.e1, "overflow", J, false, undefined, d);
|
|
62
66
|
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); } }
|
|
63
67
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
64
|
-
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.
|
|
68
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a5, r.e2, "trailing", J, false, undefined, d);
|
|
65
69
|
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); } }
|
|
66
70
|
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
67
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
|
|
68
|
-
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); } }
|
|
69
|
-
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
70
71
|
};
|
|
71
72
|
const t0 = element.firstChild.nextSibling;
|
|
72
73
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
73
74
|
const t2 = t1.firstChild;
|
|
74
75
|
const t3 = t1.nextSibling.nextSibling;
|
|
75
76
|
const t4 = t3.firstChild;
|
|
76
|
-
const R = { n: element,
|
|
77
|
+
const R = { n: element, a2: t1, v0: undefined, v1: null, v2: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined, a3: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a5: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
|
|
77
78
|
const I = { B };
|
|
78
79
|
const J = project(I, children, slots);
|
|
79
80
|
I.R = new Set();
|
|
81
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
80
82
|
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);
|
|
81
83
|
manageProps(I);
|
|
82
84
|
I.r["overflow"] = t1;
|
|
@@ -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 UiColorPickerEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: string }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: string }>;
|
package/vanilla/UiColorPicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, 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, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-color-picker/ui-color-picker.js";
|
|
4
4
|
import "../styles/ui-color-picker.css";
|
|
5
5
|
|
|
@@ -10,43 +10,44 @@ const D = { g: "ui-color-picker", props: { "clearable": { "required":false,"defa
|
|
|
10
10
|
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiColorPicker(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]) => !["clearable","disabled","label","name","round","size","value"].includes(name)));
|
|
14
15
|
const element = document.createElement("span");
|
|
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-color-picker");
|
|
20
17
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
18
|
const v = [null, null, null, null, null, null, null];
|
|
22
19
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
23
20
|
const p0 = (r, c, d) => {
|
|
21
|
+
if (c === -1) {
|
|
22
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
23
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
24
|
+
}
|
|
24
25
|
if (c & 8) {
|
|
25
26
|
const x0 = v[3];
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
27
|
+
const s1 = toAttribute(x0, "name");
|
|
28
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "name", r.v1 = s1);
|
|
28
29
|
}
|
|
29
30
|
if (c & 2) {
|
|
30
31
|
const x1 = v[1];
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
32
|
+
const s2 = toAttribute(x1, "disabled");
|
|
33
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "disabled", r.v2 = s2);
|
|
33
34
|
}
|
|
34
35
|
if (c & 4) {
|
|
35
36
|
const x2 = v[2];
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
37
|
+
const s3 = toAttribute(x2, "aria-label");
|
|
38
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "aria-label", r.v3 = s3);
|
|
39
|
+
const s5 = toAttribute(x2, "aria-label");
|
|
40
|
+
if (s5 !== r.v5) writeAttribute(r.a5, "aria-label", r.v5 = s5);
|
|
40
41
|
}
|
|
41
42
|
if (c & 2) {
|
|
42
43
|
const x3 = v[1];
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
44
|
+
const s4 = toAttribute(x3, "disabled");
|
|
45
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "disabled", r.v4 = s4);
|
|
45
46
|
}
|
|
46
47
|
if (c & 48) {
|
|
47
48
|
const x4 = hostState(["size","round"], [v[5], v[4]]);
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
49
|
+
const s6 = x4;
|
|
50
|
+
if (s6 !== r.v6) writeAttribute(r.n, "data-ui-color-picker-state", (r.v6 = s6) === "" ? null : s6);
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
const t0 = element.firstChild.nextSibling;
|
|
@@ -62,8 +63,9 @@ export function createUiColorPicker(options = {}, html) {
|
|
|
62
63
|
const t10 = t9.firstChild.nextSibling;
|
|
63
64
|
const t11 = t9.nextSibling.nextSibling;
|
|
64
65
|
const t12 = t11.nextSibling.nextSibling;
|
|
65
|
-
const R = { n: element,
|
|
66
|
+
const R = { n: element, a1: t0, a2: t1, a5: t4, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: undefined };
|
|
66
67
|
const I = { B };
|
|
68
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
67
69
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
68
70
|
manageProps(I);
|
|
69
71
|
I.r["field"] = t0;
|
package/vanilla/UiColumn.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 UiColumnEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiColumnElement extends HTMLTableCellElement {
|
|
@@ -21,7 +21,7 @@ export interface UiColumnProps {
|
|
|
21
21
|
}
|
|
22
22
|
export interface UiColumnSlots {
|
|
23
23
|
readonly header: { };
|
|
24
|
-
readonly cell: { readonly row: { readonly [name: string]: unknown }; };
|
|
24
|
+
readonly cell: { readonly row: { readonly [name: string]: unknown } | null; };
|
|
25
25
|
}
|
|
26
26
|
export declare function createUiColumn(props?: UiColumnProps): UiColumnElement;
|
|
27
27
|
declare global {
|
package/vanilla/UiColumn.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toText, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, 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, toAttribute, toText, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-column/ui-column.js";
|
|
4
4
|
import "../styles/ui-column.css";
|
|
5
5
|
|
|
@@ -11,12 +11,9 @@ const D = { g: "ui-column", props: { "align": { "required":false,"values":["star
|
|
|
11
11
|
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiColumn(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]) => !["align","field","frozen","header","width"].includes(name)));
|
|
15
16
|
const element = document.createElement("th");
|
|
16
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
17
|
-
if (value === null || value === undefined || value === false) continue;
|
|
18
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
19
|
-
}
|
|
20
17
|
if (!element.hasAttribute("scope")) element.setAttribute("scope", "col");
|
|
21
18
|
element.setAttribute("component", "ui-column");
|
|
22
19
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -38,23 +35,29 @@ export function createUiColumn(options = {}, html) {
|
|
|
38
35
|
};
|
|
39
36
|
const p0 = (r, c, d) => {
|
|
40
37
|
if (c & 16) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
39
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
40
|
+
const x0 = "col";
|
|
41
|
+
const s1 = toAttribute(x0, "scope");
|
|
42
|
+
writeAttribute(r.n, "scope", r.v1 = s1);
|
|
43
|
+
const x1 = v[4];
|
|
44
|
+
const s2 = toText(x1);
|
|
45
|
+
r.n.style.setProperty("--_width", r.v2 = s2);
|
|
44
46
|
}
|
|
45
47
|
if (c & 5) {
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
48
|
+
const x2 = hostState(["align","frozen"], [v[0], v[2]]);
|
|
49
|
+
const s3 = x2;
|
|
50
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-ui-column-state", (r.v3 = s3) === "" ? null : s3);
|
|
49
51
|
}
|
|
50
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "header", J, true, undefined, d);
|
|
52
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "header", J, true, undefined, d, r.z ??= []);
|
|
51
53
|
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); } }
|
|
52
54
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
53
55
|
};
|
|
54
56
|
const t0 = element.firstChild;
|
|
55
|
-
const R = { n: element, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
|
|
57
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
|
|
56
58
|
const I = { B };
|
|
57
59
|
const J = project(I, children, slots);
|
|
60
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
58
61
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
59
62
|
manageProps(I);
|
|
60
63
|
return element;
|
package/vanilla/UiCombobox.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 UiComboboxEventMap {
|
|
3
3
|
"query-change": CustomEvent<{ readonly query: string; readonly display: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
"value-change": CustomEvent<{ readonly value?: string | null; readonly query: string; readonly option?: { readonly id: string; readonly value: string; readonly label: string; readonly group?: string | null; readonly disabled?: boolean | null; readonly description?: string | null; readonly tag?: { readonly label: string; readonly tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null; readonly color?: string | null } | null } | null; readonly kind: "selection" | "clear" | "free-entry" | "create"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
@@ -55,8 +55,8 @@ export interface UiComboboxProps {
|
|
|
55
55
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
|
56
56
|
}
|
|
57
57
|
export interface UiComboboxSlots {
|
|
58
|
-
readonly item: { readonly item: { readonly id: string; readonly value: string; readonly label: string; readonly group?: string | null; readonly disabled?: boolean | null; readonly description?: string | null; readonly tag?: { readonly label: string; readonly tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null; readonly color?: string | null } | null }; };
|
|
59
|
-
readonly option: { readonly option: { readonly id: string; readonly value: string; readonly label: string; readonly group?: string | null; readonly disabled?: boolean | null; readonly description?: string | null; readonly tag?: { readonly label: string; readonly tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null; readonly color?: string | null } | null; readonly selected?: boolean | null }; };
|
|
58
|
+
readonly item: { readonly item: { readonly id: string; readonly value: string; readonly label: string; readonly group?: string | null; readonly disabled?: boolean | null; readonly description?: string | null; readonly tag?: { readonly label: string; readonly tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null; readonly color?: string | null } | null } | null; };
|
|
59
|
+
readonly option: { readonly option: { readonly id: string; readonly value: string; readonly label: string; readonly group?: string | null; readonly disabled?: boolean | null; readonly description?: string | null; readonly tag?: { readonly label: string; readonly tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null; readonly color?: string | null } | null; readonly selected?: boolean | null } | null; };
|
|
60
60
|
}
|
|
61
61
|
export declare function createUiCombobox(props?: UiComboboxProps): UiComboboxElement;
|
|
62
62
|
declare global {
|