@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/UiCover.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, checkFormat, 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, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-cover.css";
|
|
4
4
|
|
|
5
5
|
const T0 = ["",[],4];
|
|
@@ -9,12 +9,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-cover", b: generatedInputs
|
|
|
9
9
|
const D = { g: "ui-cover", props: { "size": { "required":false,"values":["screen","fill"],"default":"screen", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
10
10
|
|
|
11
11
|
export function createUiCover(options = {}, html) {
|
|
12
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
12
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
13
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["size"].includes(name)));
|
|
13
14
|
const element = document.createElement("div");
|
|
14
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
15
|
-
if (value === null || value === undefined || value === false) continue;
|
|
16
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
17
|
-
}
|
|
18
15
|
element.setAttribute("component", "ui-cover");
|
|
19
16
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
20
17
|
const v = [null];
|
|
@@ -28,19 +25,24 @@ export function createUiCover(options = {}, html) {
|
|
|
28
25
|
const p1 = (r, c, d) => {
|
|
29
26
|
};
|
|
30
27
|
const p0 = (r, c, d) => {
|
|
28
|
+
if (c === -1) {
|
|
29
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
30
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
31
|
+
}
|
|
31
32
|
if (c & 1) {
|
|
32
33
|
const x0 = hostState(["size"], [v[0]]);
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
34
|
+
const s1 = x0;
|
|
35
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-ui-cover-state", (r.v1 = s1) === "" ? null : s1);
|
|
35
36
|
}
|
|
36
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
37
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
|
|
37
38
|
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); } }
|
|
38
39
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
39
40
|
};
|
|
40
41
|
const t0 = element.firstChild;
|
|
41
|
-
const R = { n: element, v0: undefined,
|
|
42
|
+
const R = { n: element, v0: undefined, v1: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
|
|
42
43
|
const I = { B };
|
|
43
44
|
const J = project(I, children, slots);
|
|
45
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
44
46
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
45
47
|
manageProps(I);
|
|
46
48
|
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 UiCurveEditorEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: string }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: string }>;
|
package/vanilla/UiCurveEditor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, 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, toText, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, 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-curve-editor/ui-curve-editor.js";
|
|
4
4
|
import "../styles/ui-curve-editor.css";
|
|
5
5
|
|
|
@@ -10,93 +10,94 @@ const D = { g: "ui-curve-editor", props: { "disabled": { "required":false,"defau
|
|
|
10
10
|
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiCurveEditor(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]) => !["disabled","label","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-curve-editor");
|
|
20
17
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
18
|
const v = ["0.25", "0.1", "0.25", "1", 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 & 32) {
|
|
25
26
|
const x0 = v[5];
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
27
|
+
const s1 = toAttribute(x0, "aria-label");
|
|
28
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "aria-label", r.v1 = s1);
|
|
28
29
|
}
|
|
29
30
|
if (c & 16) {
|
|
30
31
|
const x1 = v[4];
|
|
31
|
-
const s1 = toAttribute(x1, "disabled");
|
|
32
|
-
if (s1 !== r.v1) writeAttribute(r.a5, "disabled", r.v1 = s1);
|
|
33
32
|
const s2 = toAttribute(x1, "disabled");
|
|
34
33
|
if (s2 !== r.v2) writeAttribute(r.a6, "disabled", r.v2 = s2);
|
|
34
|
+
const s3 = toAttribute(x1, "disabled");
|
|
35
|
+
if (s3 !== r.v3) writeAttribute(r.a7, "disabled", r.v3 = s3);
|
|
35
36
|
}
|
|
36
37
|
if (c & 1) {
|
|
37
38
|
const x2 = v[0];
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
39
|
+
const s4 = toAttribute(x2, "value");
|
|
40
|
+
if (s4 !== r.v4) writeAttribute(r.a8, "value", r.v4 = s4);
|
|
40
41
|
}
|
|
41
42
|
if (c & 1073741888) {
|
|
42
43
|
const x3 = v[6];
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
44
|
+
const s5 = toAttribute(x3, "size");
|
|
45
|
+
if (s5 !== r.v5) writeAttribute(r.a8, "size", r.v5 = s5);
|
|
45
46
|
}
|
|
46
47
|
if (c & 16) {
|
|
47
48
|
const x4 = v[4];
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
49
|
+
const s6 = toAttribute(x4, "disabled");
|
|
50
|
+
if (s6 !== r.v6) writeAttribute(r.a8, "disabled", r.v6 = s6);
|
|
50
51
|
}
|
|
51
52
|
if (c & 2) {
|
|
52
53
|
const x5 = v[1];
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
54
|
+
const s7 = toAttribute(x5, "value");
|
|
55
|
+
if (s7 !== r.v7) writeAttribute(r.a9, "value", r.v7 = s7);
|
|
55
56
|
}
|
|
56
57
|
if (c & 1073741888) {
|
|
57
58
|
const x6 = v[6];
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
59
|
+
const s8 = toAttribute(x6, "size");
|
|
60
|
+
if (s8 !== r.v8) writeAttribute(r.a9, "size", r.v8 = s8);
|
|
60
61
|
}
|
|
61
62
|
if (c & 16) {
|
|
62
63
|
const x7 = v[4];
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
64
|
+
const s9 = toAttribute(x7, "disabled");
|
|
65
|
+
if (s9 !== r.v9) writeAttribute(r.a9, "disabled", r.v9 = s9);
|
|
65
66
|
}
|
|
66
67
|
if (c & 4) {
|
|
67
68
|
const x8 = v[2];
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
69
|
+
const s10 = toAttribute(x8, "value");
|
|
70
|
+
if (s10 !== r.v10) writeAttribute(r.a10, "value", r.v10 = s10);
|
|
70
71
|
}
|
|
71
72
|
if (c & 1073741888) {
|
|
72
73
|
const x9 = v[6];
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
74
|
+
const s11 = toAttribute(x9, "size");
|
|
75
|
+
if (s11 !== r.v11) writeAttribute(r.a10, "size", r.v11 = s11);
|
|
75
76
|
}
|
|
76
77
|
if (c & 16) {
|
|
77
78
|
const x10 = v[4];
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
79
|
+
const s12 = toAttribute(x10, "disabled");
|
|
80
|
+
if (s12 !== r.v12) writeAttribute(r.a10, "disabled", r.v12 = s12);
|
|
80
81
|
}
|
|
81
82
|
if (c & 8) {
|
|
82
83
|
const x11 = v[3];
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
84
|
+
const s13 = toAttribute(x11, "value");
|
|
85
|
+
if (s13 !== r.v13) writeAttribute(r.a11, "value", r.v13 = s13);
|
|
85
86
|
}
|
|
86
87
|
if (c & 1073741888) {
|
|
87
88
|
const x12 = v[6];
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
89
|
+
const s14 = toAttribute(x12, "size");
|
|
90
|
+
if (s14 !== r.v14) writeAttribute(r.a11, "size", r.v14 = s14);
|
|
90
91
|
}
|
|
91
92
|
if (c & 16) {
|
|
92
93
|
const x13 = v[4];
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
94
|
+
const s15 = toAttribute(x13, "disabled");
|
|
95
|
+
if (s15 !== r.v15) writeAttribute(r.a11, "disabled", r.v15 = s15);
|
|
95
96
|
}
|
|
96
97
|
if (c & 128) {
|
|
97
98
|
const x14 = v[7];
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
99
|
+
const s16 = toText(x14);
|
|
100
|
+
if (s16 !== r.v16) r.a13.data = r.v16 = s16;
|
|
100
101
|
}
|
|
101
102
|
};
|
|
102
103
|
const t0 = element.firstChild.nextSibling;
|
|
@@ -117,9 +118,10 @@ export function createUiCurveEditor(options = {}, html) {
|
|
|
117
118
|
const t15 = t13.nextSibling.nextSibling.firstChild.nextSibling;
|
|
118
119
|
const t16 = t8.nextSibling.nextSibling;
|
|
119
120
|
const t17 = t16.firstChild;
|
|
120
|
-
const R = {
|
|
121
|
+
const R = { n: element, a1: t0, a6: t6, a7: t7, a8: t10, a9: t12, a10: t14, a11: t15, a13: t17, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: "" };
|
|
121
122
|
const I = { B };
|
|
122
123
|
I.R = new Set();
|
|
124
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
123
125
|
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);
|
|
124
126
|
manageProps(I);
|
|
125
127
|
I.r["plot"] = 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 UiCycleButtonEventMap {
|
|
3
3
|
change: CustomEvent<{ readonly value: string; readonly index: number }>;
|
|
4
4
|
}
|
|
@@ -15,7 +15,7 @@ export interface UiCycleButtonProps {
|
|
|
15
15
|
disabled?: boolean | null;
|
|
16
16
|
emptyLabel?: string | null;
|
|
17
17
|
index?: number | null;
|
|
18
|
-
items: readonly ({ readonly value: string; readonly label: string; readonly icon: string })[];
|
|
18
|
+
items: readonly ({ readonly value: string; readonly label: string; readonly icon: string })[] | null;
|
|
19
19
|
label?: string | null;
|
|
20
20
|
size?: "sm" | "md" | "lg" | null;
|
|
21
21
|
variant?: "ghost" | "outline" | "solid" | null;
|
package/vanilla/UiCycleButton.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, referenceSchemaAt, stateInitializers, binaryValue, buildTemplate, NONCONFORMING, readFailing, readIndex, readMember, textCall, toAttribute, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, inputDefault, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, ABSENT, readonlyView, checkBoolean, checkFormat, checkList, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-cycle-button/ui-cycle-button.js";
|
|
4
4
|
import "../styles/ui-cycle-button.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],["ui-icon-button",["tone","neutral"],["ui-icon",[]]]];
|
|
7
|
+
const RC0 = [["o"], "object({ value: string, label: string, icon: string })"];
|
|
8
|
+
const RC1 = [0, "", { }, RC0, 0];
|
|
9
|
+
const RC2 = ["n", "number"];
|
|
7
10
|
let P0;
|
|
8
11
|
const S = { n: ["current","selected"], t: ["n","?"], f: import.meta.url, g: "ui-cycle-button", k: 1, d: { "change": [detailCheck(checkObject([["value", checkString, false], ["index", checkNumber, false]], false)), true, true, false] }, x: dispatchDeclared, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
|
|
9
12
|
const D = { g: "ui-cycle-button", props: { "description": { "required":false,"default":"Activate to choose the next state.", c: checkString, t: "string", j: 0, m: "s" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "emptyLabel": { "required":false,"default":"No choices", c: checkString, t: "string", j: 0, m: "s" }, "index": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "items": { "required":true, c: checkList(checkObject([["value", checkString, false], ["label", checkString, false], ["icon", checkString, false]], false)), j: 1, m: ["l",["o",["value","s","label","s","icon","s"]]] }, "label": { "required":false,"default":"State", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["ghost","outline","solid"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
10
13
|
const C = (host) => activateModule(controller, host);
|
|
11
14
|
|
|
12
15
|
export function createUiCycleButton(options, html) {
|
|
13
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
16
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
17
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["description","disabled","empty-label","index","items","label","size","variant"].includes(name)));
|
|
14
18
|
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
19
|
element.setAttribute("component", "ui-cycle-button");
|
|
20
20
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
21
|
const v = [null, undefined, null, null, null, null, null, null, null, null];
|
|
@@ -24,7 +24,7 @@ export function createUiCycleButton(options, html) {
|
|
|
24
24
|
const inputStatus = (j) => { if (j === 0) return E.status(j); if (j >= 1 && j < 2) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 2) return awaitInput(B, "description", true); if (j === 3) return awaitInput(B, "disabled", true); if (j === 4) return awaitInput(B, "emptyLabel", true); if (j === 5) return awaitInput(B, "index", true); if (j === 6) return awaitInput(B, "items", true); if (j === 7) return awaitInput(B, "label", true); if (j === 8) return awaitInput(B, "size", true); if (j === 9) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
25
25
|
const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
|
|
26
26
|
const ke = [];
|
|
27
|
-
const K = [() => (
|
|
27
|
+
const K = [() => inputDefault(() => (() => { let x = inputRead(v[6], inputStatus(6)), t = RC1, k; k = inputDefault(() => checkedReferenceValue(S, inputRead(E.read(0), inputStatus(0)), RC2, "expression:default($items[default($current, 0)], $items[0]):current", "current"), () => 0, ABSENT); x = readIndex(x, k); t = referenceSchemaAt(t, k); return checkedReferenceValue(S, x, t, "expression:default($items[default($current, 0)], $items[0]):items[computed]", "items[computed]"); })(), () => checkedReferenceValue(S, readIndex(inputRead(v[6], inputStatus(6)), 0), RC0, "expression:default($items[default($current, 0)], $items[0]):items.0", "items.0"), ABSENT)];
|
|
28
28
|
const g = (j) => {
|
|
29
29
|
const i = j - 1;
|
|
30
30
|
if (ke[i] === X.e) return v[j];
|
|
@@ -37,52 +37,57 @@ export function createUiCycleButton(options, html) {
|
|
|
37
37
|
if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
|
|
38
38
|
return next;
|
|
39
39
|
};
|
|
40
|
-
const E = stateInitializers(S, v, X, { 0: () => inputRead(v[5], inputStatus(5)) });
|
|
40
|
+
const E = stateInitializers(S, v, X, { 0: () => (inputRead(v[5], inputStatus(5))) });
|
|
41
41
|
const p0 = (r, c, d) => {
|
|
42
|
+
if (c === -1) {
|
|
43
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
44
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
45
|
+
}
|
|
42
46
|
if (c & 1073742033) {
|
|
43
|
-
const x0 = textCall("concat", [v[7], ": ",
|
|
47
|
+
const x0 = textCall("concat", [v[7], ": ", ((q) => q === ABSENT || q == null ? v[4] : q)(readFailing(g(1), "label"))]);
|
|
44
48
|
if (x0 !== NONCONFORMING) {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
49
|
+
const s1 = toAttribute(x0, "label");
|
|
50
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "label", r.v1 = s1);
|
|
47
51
|
}
|
|
48
52
|
if (x0 !== NONCONFORMING) {
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
53
|
+
const s2 = toAttribute(x0, "title");
|
|
54
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "title", r.v2 = s2);
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
if (c & 1073742080) {
|
|
54
58
|
const x1 = v[8];
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
59
|
+
const s3 = toAttribute(x1, "size");
|
|
60
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "size", r.v3 = s3);
|
|
57
61
|
}
|
|
58
62
|
if (c & 1073742336) {
|
|
59
63
|
const x2 = v[9];
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
64
|
+
const s4 = toAttribute(x2, "variant");
|
|
65
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "variant", r.v4 = s4);
|
|
62
66
|
}
|
|
63
67
|
if (c & 1073741896) {
|
|
64
68
|
const x3 = (truthy(v[3]) || truthy(binaryValue("<", readMember(v[6], "length"), 2)));
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
69
|
+
const s5 = toAttribute(x3, "disabled");
|
|
70
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "disabled", r.v5 = s5);
|
|
67
71
|
}
|
|
68
72
|
if (c & 4) {
|
|
69
73
|
const x4 = v[2];
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
74
|
+
const s6 = toAttribute(x4, "aria-description");
|
|
75
|
+
if (s6 !== r.v6) writeAttribute(r.a1, "aria-description", r.v6 = s6);
|
|
72
76
|
}
|
|
73
77
|
if (c & 1073741889) {
|
|
74
|
-
const x5 =
|
|
78
|
+
const x5 = ((q) => q === ABSENT || q == null ? "" : q)(readFailing(g(1), "icon"));
|
|
75
79
|
if (x5 !== NONCONFORMING) {
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
80
|
+
const s7 = toAttribute(x5, "name");
|
|
81
|
+
if (s7 !== r.v7) writeAttribute(r.a2, "name", r.v7 = s7);
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
};
|
|
81
85
|
const t0 = element.firstChild;
|
|
82
86
|
const t1 = t0.firstChild;
|
|
83
|
-
const R = {
|
|
87
|
+
const R = { n: element, a1: t0, a2: t1, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null };
|
|
84
88
|
const I = { B, U: E };
|
|
85
89
|
I.R = new Set();
|
|
90
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
86
91
|
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
|
|
87
92
|
manageProps(I);
|
|
88
93
|
return element;
|
package/vanilla/UiDataTable.d.ts
CHANGED
package/vanilla/UiDataTable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, binaryValue, buildTemplate, clearRegion, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, plainObject, dispose, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, READY_INPUT, UNRESOLVED_INPUT, project, fillSlot, ABSENT, readonlyView, checkFormat, checkInteger, checkList, checkObject, checkString, warnOnce, childList, childOutlet, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, binaryValue, buildTemplate, clearRegion, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, plainObject, dispose, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, READY_INPUT, UNRESOLVED_INPUT, project, fillSlot, ABSENT, readonlyView, checkFormat, checkInteger, checkList, checkObject, checkString, warnOnce, childList, childOutlet, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-data-table/ui-data-table.js";
|
|
4
4
|
import "../styles/ui-data-table.css";
|
|
5
5
|
|
|
@@ -10,6 +10,8 @@ const T3 = ["tr",[],2];
|
|
|
10
10
|
const T4 = ["td",[],"\n ",4,"\n "];
|
|
11
11
|
const T5 = ["",[],0];
|
|
12
12
|
const K0 = (v0) => (plainObject(v0));
|
|
13
|
+
const RC0 = ["n", "number"];
|
|
14
|
+
const RC1 = [["o"], "object({ ... })"];
|
|
13
15
|
const OP0 = { "ui-column": (s) => { const t = {}; if ("row" in s) { const y = s["row"]; t["row"] = (y != null && y !== ABSENT && (K0(y) || (warnOnce(S, "slot:cell:row", "Slot `cell` prop `row` does not satisfy its declared type `object({ ... })`."), false)) ? y : null); } return t; } };
|
|
14
16
|
const OF = {"ui-column":[["header"],["cell"],["header","cell"],"`header` and `cell`"]};
|
|
15
17
|
let P0, P1, P2, P3, P4, P5;
|
|
@@ -19,12 +21,9 @@ const D = { g: "ui-data-table", props: { "caption": { "required":false, c: check
|
|
|
19
21
|
const C = (host) => activateModule(controller, host);
|
|
20
22
|
|
|
21
23
|
export function createUiDataTable(options = {}, html) {
|
|
22
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
24
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
25
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["caption","density","frozen-rows","row-key","rows"].includes(name)));
|
|
23
26
|
const element = document.createElement("div");
|
|
24
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
25
|
-
if (value === null || value === undefined || value === false) continue;
|
|
26
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
27
|
-
}
|
|
28
27
|
element.setAttribute("component", "ui-data-table");
|
|
29
28
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
30
29
|
const v = [null, null, null, null, null, null];
|
|
@@ -66,12 +65,14 @@ export function createUiDataTable(options = {}, html) {
|
|
|
66
65
|
const p3 = (r, c, d) => {
|
|
67
66
|
const o = r.i;
|
|
68
67
|
if (c & -1073741816) {
|
|
69
|
-
const x0 = binaryValue("<", r.j, v[3]);
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
const x0 = binaryValue("<", checkedReferenceValue(S, r.j, RC0, "expression:$r < $frozenRows:r", "r"), v[3]);
|
|
69
|
+
if (x0 !== NONCONFORMING) {
|
|
70
|
+
const s0 = truthy(x0);
|
|
71
|
+
if (s0 !== r.v0) r.n.classList.toggle("frozen", r.v0 = s0);
|
|
72
|
+
}
|
|
72
73
|
}
|
|
73
74
|
if (c & -1073741824) {
|
|
74
|
-
const x1 = textCall("concat", ["var(--_ui-row-", r.j, ", 0)"]);
|
|
75
|
+
const x1 = textCall("concat", ["var(--_ui-row-", checkedReferenceValue(S, r.j, RC0, "expression:concat('var(--_ui-row-', $r, ', 0)'):r", "r"), ", 0)"]);
|
|
75
76
|
if (x1 !== NONCONFORMING) {
|
|
76
77
|
const s1 = toText(x1);
|
|
77
78
|
if (s1 !== r.v1) r.n.style.setProperty("--_ui-top", r.v1 = s1);
|
|
@@ -99,14 +100,14 @@ export function createUiDataTable(options = {}, html) {
|
|
|
99
100
|
if (s1 !== r.v1) writeAttribute(r.n, "data-ui-frozen", r.v1 = s1);
|
|
100
101
|
}
|
|
101
102
|
if (c & -1073741824) {
|
|
102
|
-
const x2 = textCall("concat", ["var(--_ui-col-", r.j, ", 0)"]);
|
|
103
|
+
const x2 = textCall("concat", ["var(--_ui-col-", checkedReferenceValue(S, r.j, RC0, "expression:concat('var(--_ui-col-', $c, ', 0)'):c", "c"), ", 0)"]);
|
|
103
104
|
if (x2 !== NONCONFORMING) {
|
|
104
105
|
const s2 = toText(x2);
|
|
105
106
|
if (s2 !== r.v2) r.n.style.setProperty("--_ui-side", r.v2 = s2);
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
if (r.f0 === undefined) r.f0 = childOutlet(r, r.a1, r.e0, "cell", OF, S, (d, at) => m5(d, undefined, r), p5, true, OP0);
|
|
109
|
-
r.f0(trackContainer(r, o), v[0], { "row": trackContainer(r, r.u.i) }, c, d);
|
|
110
|
+
r.f0(trackContainer(r, o), v[0], { "row": trackContainer(r, checkedReferenceValue(S, r.u.i, RC1, "expression:$row:row", "row")) }, c, d);
|
|
110
111
|
};
|
|
111
112
|
const m5 = (d, o, u) => {
|
|
112
113
|
const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
|
|
@@ -124,30 +125,35 @@ export function createUiDataTable(options = {}, html) {
|
|
|
124
125
|
}
|
|
125
126
|
};
|
|
126
127
|
const p0 = (r, c, d) => {
|
|
128
|
+
if (c === -1) {
|
|
129
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
130
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
131
|
+
}
|
|
127
132
|
if (c & 4) {
|
|
128
133
|
const x0 = hostState(["density"], [v[2]]);
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
134
|
+
const s1 = x0;
|
|
135
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-ui-data-table-state", (r.v1 = s1) === "" ? null : s1);
|
|
131
136
|
}
|
|
132
137
|
if (c & 2 && !(truthy(v[1])) !== !r.b0) {
|
|
133
|
-
if (r.b0) { r.b0 = undefined; clearRegion(r.
|
|
138
|
+
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
134
139
|
else { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
135
140
|
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
136
|
-
if (
|
|
137
|
-
if (c !== -1 && c & 9) r.L2.each(c, d);
|
|
138
|
-
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
|
|
141
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
139
142
|
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); } }
|
|
140
143
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
144
|
+
if (c & 1073741872) { const l = v[5]; { if (c === -1 || (c & 16) !== 0) r.L2.set(l, d, true); else r.L2.update(l, d, c); } }
|
|
145
|
+
if (c !== -1 && c & 9) r.L2.each(c, d);
|
|
141
146
|
};
|
|
142
147
|
const t0 = element.firstChild.nextSibling;
|
|
143
148
|
const t1 = t0.firstChild;
|
|
144
149
|
const t2 = t1.nextSibling.nextSibling;
|
|
145
150
|
const t3 = t2.firstChild.firstChild;
|
|
146
151
|
const t4 = t2.nextSibling.firstChild;
|
|
147
|
-
const R = { n: element, v0: undefined,
|
|
152
|
+
const R = { n: element, v0: undefined, v1: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, L2: new PositionalList(t4, t4.nextSibling, m3, p3, (o) => readIndex(o, v[4]), "row") };
|
|
148
153
|
const I = { B };
|
|
149
154
|
const J = project(I, children, slots);
|
|
150
155
|
const L0 = childList(I, S, v, 0, J, "", ["ui-column"], "`ui-data-table`'s default slot", "`ui-column`");
|
|
156
|
+
I.F = { values: attributes, draw: () => ((c, d) => { c |= L0(c, d); ((c, d) => p0(R, c, d))(c, d); })(-1) };
|
|
151
157
|
attachGeneratedController(element, S, v, ((c, d) => { c |= L0(c, d); ((c, d) => p0(R, c, d))(c, d); }), undefined, X, I);
|
|
152
158
|
manageProps(I);
|
|
153
159
|
return element;
|
package/vanilla/UiDateField.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 UiDateFieldEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|