@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/UiSeparator.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, 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, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-separator.css";
|
|
4
4
|
|
|
5
5
|
const S = { n: [], t: [], f: import.meta.url, g: "ui-separator", b: generatedInputs };
|
|
6
6
|
const D = { g: "ui-separator", props: { "emphasis": { "required":false,"values":["normal","strong"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "orientation": { "required":false,"values":["horizontal","vertical"],"default":"horizontal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "selectable": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
|
|
7
7
|
|
|
8
8
|
export function createUiSeparator(options = {}, html) {
|
|
9
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
9
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
10
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["emphasis","orientation","selectable","selected"].includes(name)));
|
|
10
11
|
const element = document.createElement("hr");
|
|
11
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
12
|
-
if (value === null || value === undefined || value === false) continue;
|
|
13
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
14
|
-
}
|
|
15
12
|
element.setAttribute("component", "ui-separator");
|
|
16
13
|
const v = [null, null, null, null];
|
|
17
14
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
18
15
|
const p0 = (r, c, d) => {
|
|
19
16
|
if (c & 1073741826) {
|
|
17
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
18
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
20
19
|
const x0 = v[1];
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
const s1 = toAttribute(x0, "aria-orientation");
|
|
21
|
+
writeAttribute(r.n, "aria-orientation", r.v1 = s1);
|
|
23
22
|
}
|
|
24
23
|
if (c & 13) {
|
|
25
24
|
const x1 = hostState(["emphasis","selectable","selected"], [v[0], v[2], v[3]]);
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
25
|
+
const s2 = x1;
|
|
26
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-ui-separator-state", (r.v2 = s2) === "" ? null : s2);
|
|
28
27
|
}
|
|
29
28
|
};
|
|
30
|
-
const R = { n: element, v0: undefined, v1: undefined };
|
|
29
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined };
|
|
31
30
|
const I = { B };
|
|
31
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
32
32
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
33
33
|
manageProps(I);
|
|
34
34
|
return element;
|
package/vanilla/UiSidebar.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 UiSidebarEventMap {
|
|
3
3
|
resize: CustomEvent<{ readonly width: number; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
toggle: CustomEvent<{ readonly open: boolean; readonly mode: "docked" | "drawer"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
package/vanilla/UiSidebar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-sidebar/ui-sidebar.js";
|
|
4
4
|
import "../styles/ui-sidebar.css";
|
|
5
5
|
|
|
@@ -11,12 +11,9 @@ const D = { g: "ui-sidebar", props: { "breakpoint": { "required":false,"values":
|
|
|
11
11
|
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiSidebar(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]) => !["breakpoint","collapsed","max-width","min-width","resizable","resize-label","resize-step","side","width"].includes(name)));
|
|
15
16
|
const element = document.createElement("aside");
|
|
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-sidebar");
|
|
21
18
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
22
19
|
const v = [false, false, false, null, null, null, null, null, null, null, null, null];
|
|
@@ -30,32 +27,37 @@ export function createUiSidebar(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 & 256) {
|
|
34
35
|
const x0 = v[8];
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
36
|
+
const s1 = toAttribute(x0, "aria-label");
|
|
37
|
+
if (s1 !== r.v1) writeAttribute(r.a2, "aria-label", r.v1 = s1);
|
|
37
38
|
}
|
|
38
39
|
if (c & 131) {
|
|
39
40
|
const x1 = ((!truthy(v[7]) || v[1]) || v[0]);
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
41
|
+
const s2 = toAttribute(x1, "hidden");
|
|
42
|
+
if (s2 !== r.v2) writeAttribute(r.a2, "hidden", r.v2 = s2);
|
|
42
43
|
}
|
|
43
44
|
if (c & 1029) {
|
|
44
45
|
const x2 = hostState(["side","internalCollapsed","resizing"], [v[10], v[0], v[2]]);
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
46
|
+
const s3 = x2;
|
|
47
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-ui-sidebar-state", (r.v3 = s3) === "" ? null : s3);
|
|
47
48
|
}
|
|
48
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
49
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
|
|
49
50
|
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); } }
|
|
50
51
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
51
52
|
};
|
|
52
53
|
const t0 = element.firstChild.nextSibling;
|
|
53
54
|
const t1 = t0.firstChild.firstChild;
|
|
54
55
|
const t2 = t0.nextSibling.nextSibling;
|
|
55
|
-
const R = { n: element,
|
|
56
|
+
const R = { n: element, a2: t2, v0: undefined, v1: null, v2: null, v3: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
|
|
56
57
|
const I = { B };
|
|
57
58
|
const J = project(I, children, slots);
|
|
58
59
|
I.R = new Set();
|
|
60
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
59
61
|
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);
|
|
60
62
|
manageProps(I);
|
|
61
63
|
I.r["resizer"] = t2;
|
package/vanilla/UiSiteHeader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, 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, toAttribute, toText, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-site-header/ui-site-header.js";
|
|
4
4
|
import "../styles/ui-site-header.css";
|
|
5
5
|
|
|
@@ -14,12 +14,9 @@ const D = { g: "ui-site-header", props: { "breakpoint": { "required":false,"valu
|
|
|
14
14
|
const C = (host) => activateModule(controller, host);
|
|
15
15
|
|
|
16
16
|
export function createUiSiteHeader(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]) => !["breakpoint","close-label","label","menu-label","sticky"].includes(name)));
|
|
18
19
|
const element = document.createElement("header");
|
|
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-site-header");
|
|
24
21
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
25
22
|
const v = [false, false, null, null, null, null, null];
|
|
@@ -57,40 +54,44 @@ export function createUiSiteHeader(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 & 32) {
|
|
61
62
|
const x0 = v[5];
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
63
|
+
const s1 = toAttribute(x0, "label");
|
|
64
|
+
if (s1 !== r.v1) writeAttribute(r.a3, "label", r.v1 = s1);
|
|
64
65
|
}
|
|
65
66
|
if (c & 16) {
|
|
66
67
|
const x1 = v[4];
|
|
67
|
-
const s1 = toAttribute(x1, "aria-label");
|
|
68
|
-
if (s1 !== r.v1) writeAttribute(r.a4, "aria-label", r.v1 = s1);
|
|
69
68
|
const s2 = toAttribute(x1, "aria-label");
|
|
70
|
-
if (s2 !== r.v2) writeAttribute(r.
|
|
71
|
-
const s3 =
|
|
72
|
-
if (s3 !== r.v3) r.a7
|
|
69
|
+
if (s2 !== r.v2) writeAttribute(r.a5, "aria-label", r.v2 = s2);
|
|
70
|
+
const s3 = toAttribute(x1, "aria-label");
|
|
71
|
+
if (s3 !== r.v3) writeAttribute(r.a7, "aria-label", r.v3 = s3);
|
|
72
|
+
const s4 = toText(x1);
|
|
73
|
+
if (s4 !== r.v4) r.a8.data = r.v4 = s4;
|
|
73
74
|
}
|
|
74
75
|
if (c & 8) {
|
|
75
76
|
const x2 = v[3];
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
77
|
+
const s5 = toAttribute(x2, "label");
|
|
78
|
+
if (s5 !== r.v5) writeAttribute(r.a9, "label", r.v5 = s5);
|
|
78
79
|
}
|
|
79
80
|
if (c & 71) {
|
|
80
81
|
const x3 = hostState(["sticky","breakpoint","drawer","enhanced"], [v[6], v[2], v[1], v[0]]);
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
82
|
+
const s6 = x3;
|
|
83
|
+
if (s6 !== r.v6) writeAttribute(r.n, "data-ui-site-header-state", (r.v6 = s6) === "" ? null : s6);
|
|
83
84
|
}
|
|
84
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.
|
|
85
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "brand", J, false, undefined, d);
|
|
85
86
|
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); } }
|
|
86
87
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
87
|
-
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.
|
|
88
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "menu", J, false, undefined, d);
|
|
88
89
|
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); } }
|
|
89
90
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
90
|
-
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.
|
|
91
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a6, r.e2, "navigation", J, false, undefined, d);
|
|
91
92
|
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); } }
|
|
92
93
|
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
93
|
-
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.
|
|
94
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a10, r.e3, "actions", J, false, undefined, d);
|
|
94
95
|
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); } }
|
|
95
96
|
else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
96
97
|
};
|
|
@@ -110,10 +111,11 @@ export function createUiSiteHeader(options = {}, html) {
|
|
|
110
111
|
const t13 = t12.firstChild;
|
|
111
112
|
const t14 = t12.nextSibling.nextSibling;
|
|
112
113
|
const t15 = t0.nextSibling.nextSibling.firstChild;
|
|
113
|
-
const R = { n: element,
|
|
114
|
+
const R = { n: element, a3: t6, a5: t8, a7: t10, a8: t13, a9: t14, v0: undefined, v1: null, v2: null, v3: null, v4: "", v5: null, v6: undefined, a1: t2, e0: t2.nextSibling, b0: undefined, f0: undefined, a2: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a6: t9, e2: t9.nextSibling, b2: undefined, f2: undefined, a10: t15, e3: t15.nextSibling, b3: undefined, f3: undefined };
|
|
114
115
|
const I = { B };
|
|
115
116
|
const J = project(I, children, slots);
|
|
116
117
|
I.R = new Set();
|
|
118
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
117
119
|
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);
|
|
118
120
|
manageProps(I);
|
|
119
121
|
I.r["trigger"] = t6;
|
package/vanilla/UiSkeleton.d.ts
CHANGED
package/vanilla/UiSkeleton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, toText, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, 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, toAttribute, toText, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-skeleton/ui-skeleton.js";
|
|
4
4
|
import "../styles/ui-skeleton.css";
|
|
5
5
|
|
|
@@ -8,35 +8,36 @@ const D = { g: "ui-skeleton", props: { "animated": { "required":false,"default":
|
|
|
8
8
|
const C = (host) => activateModule(controller, host);
|
|
9
9
|
|
|
10
10
|
export function createUiSkeleton(options = {}, html) {
|
|
11
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
11
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
12
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["animated","height","shape","width"].includes(name)));
|
|
12
13
|
const element = document.createElement("span");
|
|
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
14
|
if (!element.hasAttribute("aria-hidden")) element.setAttribute("aria-hidden", "true");
|
|
18
15
|
element.setAttribute("component", "ui-skeleton");
|
|
19
16
|
const v = [null, null, null, null];
|
|
20
17
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
21
18
|
const p0 = (r, c, d) => {
|
|
22
|
-
if (c &
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const x1 = v[
|
|
29
|
-
const
|
|
30
|
-
|
|
19
|
+
if (c & 10) {
|
|
20
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
21
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
22
|
+
const x0 = "true";
|
|
23
|
+
const s1 = toAttribute(x0, "aria-hidden");
|
|
24
|
+
writeAttribute(r.n, "aria-hidden", r.v1 = s1);
|
|
25
|
+
const x1 = v[3];
|
|
26
|
+
const s2 = toText(x1);
|
|
27
|
+
r.n.style.setProperty("--ui-skeleton-width", r.v2 = s2);
|
|
28
|
+
const x2 = v[1];
|
|
29
|
+
const s3 = toText(x2);
|
|
30
|
+
r.n.style.setProperty("--ui-skeleton-height", r.v3 = s3);
|
|
31
31
|
}
|
|
32
32
|
if (c & 5) {
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
33
|
+
const x3 = hostState(["shape","animated"], [v[2], v[0]]);
|
|
34
|
+
const s4 = x3;
|
|
35
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-ui-skeleton-state", (r.v4 = s4) === "" ? null : s4);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
const R = { n: element, v0: undefined, v1: undefined, v2: undefined };
|
|
38
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined };
|
|
39
39
|
const I = { B };
|
|
40
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
40
41
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
41
42
|
manageProps(I);
|
|
42
43
|
return element;
|
package/vanilla/UiSlider.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 UiSliderEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: number }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: number }>;
|
package/vanilla/UiSlider.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, stateInitializers, buildTemplate,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, stateInitializers, buildTemplate, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkFormat, checkNumber, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-slider/ui-slider.js";
|
|
4
4
|
import "../styles/ui-slider.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["input",["type","range","data-ui-field-control",""]],"\n ",["ui-number-input",["data-slider-exact",""]],"\n "];
|
|
7
|
+
const RC0 = ["n", "number"];
|
|
7
8
|
let P0;
|
|
8
9
|
const S = { n: ["current"], t: ["n"], f: import.meta.url, g: "ui-slider", d: { "input": [detailCheck(checkObject([["value", checkNumber, false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkNumber, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
|
|
9
10
|
const D = { g: "ui-slider", props: { "compact": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Value", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":100, c: checkNumber, t: "number", j: 0, m: "n" }, "min": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "name": { "required":false,"default":"", 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)] }, "step": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "unit": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" } } };
|
|
10
11
|
const C = (host) => activateModule(controller, host);
|
|
11
12
|
|
|
12
13
|
export function createUiSlider(options = {}, html) {
|
|
13
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
15
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["compact","disabled","label","max","min","name","size","step","unit","value"].includes(name)));
|
|
14
16
|
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
17
|
element.setAttribute("component", "ui-slider");
|
|
20
18
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
19
|
const v = [null, null, null, null, null, null, null, null, null, null, null];
|
|
@@ -23,108 +21,113 @@ export function createUiSlider(options = {}, html) {
|
|
|
23
21
|
const CS = [];
|
|
24
22
|
const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return awaitInput(B, "compact", true); if (j === 2) return awaitInput(B, "disabled", true); if (j === 3) return awaitInput(B, "label", true); if (j === 4) return awaitInput(B, "max", true); if (j === 5) return awaitInput(B, "min", true); if (j === 6) return awaitInput(B, "name", true); if (j === 7) return awaitInput(B, "size", true); if (j === 8) return awaitInput(B, "step", true); if (j === 9) return awaitInput(B, "unit", true); if (j === 10) return awaitInput(B, "value", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
25
23
|
const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
|
|
26
|
-
const E = stateInitializers(S, v, X, { 0: () => inputRead(v[10], inputStatus(10)) });
|
|
24
|
+
const E = stateInitializers(S, v, X, { 0: () => (inputRead(v[10], inputStatus(10))) });
|
|
27
25
|
const p0 = (r, c, d) => {
|
|
26
|
+
if (c === -1) {
|
|
27
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
28
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
29
|
+
}
|
|
28
30
|
if (c & 8) {
|
|
29
31
|
const x0 = v[3];
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
+
const s1 = toAttribute(x0, "aria-label");
|
|
33
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "aria-label", r.v1 = s1);
|
|
32
34
|
}
|
|
33
35
|
if (c & 513) {
|
|
34
|
-
const x1 = (
|
|
36
|
+
const x1 = textCall("concat", [checkedReferenceValue(S, E.read(0), RC0, "expression:concat($current, $unit):current", "current"), v[9]]);
|
|
35
37
|
if (x1 !== NONCONFORMING) {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
+
const s2 = toAttribute(x1, "aria-valuetext");
|
|
39
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "aria-valuetext", r.v2 = s2);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
if (c & 1024) {
|
|
41
43
|
const x2 = v[10];
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
+
const s3 = toAttribute(x2, "value");
|
|
45
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
|
|
44
46
|
}
|
|
45
47
|
if (c & 32) {
|
|
46
48
|
const x3 = v[5];
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
+
const s4 = toAttribute(x3, "min");
|
|
50
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "min", r.v4 = s4);
|
|
49
51
|
}
|
|
50
52
|
if (c & 16) {
|
|
51
53
|
const x4 = v[4];
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
+
const s5 = toAttribute(x4, "max");
|
|
55
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "max", r.v5 = s5);
|
|
54
56
|
}
|
|
55
57
|
if (c & 256) {
|
|
56
58
|
const x5 = v[8];
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
+
const s6 = toAttribute(x5, "step");
|
|
60
|
+
if (s6 !== r.v6) writeAttribute(r.a1, "step", r.v6 = s6);
|
|
59
61
|
}
|
|
60
62
|
if (c & 4) {
|
|
61
63
|
const x6 = v[2];
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
+
const s7 = toAttribute(x6, "disabled");
|
|
65
|
+
if (s7 !== r.v7) writeAttribute(r.a1, "disabled", r.v7 = s7);
|
|
64
66
|
}
|
|
65
67
|
if (c & 64) {
|
|
66
68
|
const x7 = v[6];
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
+
const s8 = toAttribute(x7, "name");
|
|
70
|
+
if (s8 !== r.v8) writeAttribute(r.a1, "name", r.v8 = s8);
|
|
69
71
|
}
|
|
70
72
|
if (c & 2) {
|
|
71
73
|
const x8 = v[1];
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
+
const s9 = toAttribute(x8, "compact");
|
|
75
|
+
if (s9 !== r.v9) writeAttribute(r.a2, "compact", r.v9 = s9);
|
|
74
76
|
}
|
|
75
77
|
if (c & 513) {
|
|
76
|
-
const x9 = (
|
|
78
|
+
const x9 = textCall("concat", [checkedReferenceValue(S, E.read(0), RC0, "expression:concat($current, $unit):current", "current"), v[9]]);
|
|
77
79
|
if (x9 !== NONCONFORMING) {
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
+
const s10 = toAttribute(x9, "value");
|
|
81
|
+
if (s10 !== r.v10) writeAttribute(r.a2, "value", r.v10 = s10);
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
if (c & 512) {
|
|
83
85
|
const x10 = v[9];
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
+
const s11 = toAttribute(x10, "unit");
|
|
87
|
+
if (s11 !== r.v11) writeAttribute(r.a2, "unit", r.v11 = s11);
|
|
86
88
|
}
|
|
87
89
|
if (c & 32) {
|
|
88
90
|
const x11 = v[5];
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
+
const s12 = toAttribute(x11, "min");
|
|
92
|
+
if (s12 !== r.v12) writeAttribute(r.a2, "min", r.v12 = s12);
|
|
91
93
|
}
|
|
92
94
|
if (c & 16) {
|
|
93
95
|
const x12 = v[4];
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
96
|
+
const s13 = toAttribute(x12, "max");
|
|
97
|
+
if (s13 !== r.v13) writeAttribute(r.a2, "max", r.v13 = s13);
|
|
96
98
|
}
|
|
97
99
|
if (c & 256) {
|
|
98
100
|
const x13 = v[8];
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
+
const s14 = toAttribute(x13, "step");
|
|
102
|
+
if (s14 !== r.v14) writeAttribute(r.a2, "step", r.v14 = s14);
|
|
101
103
|
}
|
|
102
104
|
if (c & 1073741952) {
|
|
103
105
|
const x14 = v[7];
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
+
const s15 = toAttribute(x14, "size");
|
|
107
|
+
if (s15 !== r.v15) writeAttribute(r.a2, "size", r.v15 = s15);
|
|
106
108
|
}
|
|
107
109
|
if (c & 4) {
|
|
108
110
|
const x15 = v[2];
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
+
const s16 = toAttribute(x15, "disabled");
|
|
112
|
+
if (s16 !== r.v16) writeAttribute(r.a2, "disabled", r.v16 = s16);
|
|
111
113
|
}
|
|
112
114
|
if (c & 8) {
|
|
113
115
|
const x16 = v[3];
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
+
const s17 = toAttribute(x16, "label");
|
|
117
|
+
if (s17 !== r.v17) writeAttribute(r.a2, "label", r.v17 = s17);
|
|
116
118
|
}
|
|
117
119
|
if (c & 130) {
|
|
118
120
|
const x17 = hostState(["compact","size"], [v[1], v[7]]);
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
+
const s18 = x17;
|
|
122
|
+
if (s18 !== r.v18) writeAttribute(r.n, "data-ui-slider-state", (r.v18 = s18) === "" ? null : s18);
|
|
121
123
|
}
|
|
122
124
|
};
|
|
123
125
|
const t0 = element.firstChild.nextSibling;
|
|
124
126
|
const t1 = t0.nextSibling.nextSibling;
|
|
125
|
-
const R = { n: element,
|
|
127
|
+
const R = { n: element, a1: t0, a2: t1, v0: undefined, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: undefined };
|
|
126
128
|
const I = { B, U: E };
|
|
127
129
|
I.R = new Set();
|
|
130
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
128
131
|
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);
|
|
129
132
|
manageProps(I);
|
|
130
133
|
I.r["range"] = t0;
|
package/vanilla/UiSpinner.d.ts
CHANGED
package/vanilla/UiSpinner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, 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, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkFormat, checkString, forwardAttributes, resetForwardedAttributes, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-spinner.css";
|
|
4
4
|
|
|
5
5
|
const T0 = ["",[],"\n ",["svg",["viewBox","0 0 50 50","fill","none","aria-hidden","true","focusable","false"],["circle",["class","track","cx","25","cy","25","r","20"]],["circle",["class","arc","cx","25","cy","25","r","20"]]],"\n "];
|
|
@@ -8,12 +8,9 @@ const S = { n: [], t: [], f: import.meta.url, g: "ui-spinner", b: generatedInput
|
|
|
8
8
|
const D = { g: "ui-spinner", props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
9
9
|
|
|
10
10
|
export function createUiSpinner(options = {}, html) {
|
|
11
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
11
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
12
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["label","size"].includes(name)));
|
|
12
13
|
const element = document.createElement("span");
|
|
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
14
|
element.setAttribute("class", ["ring", element.getAttribute("class")].filter(Boolean).join(" "));
|
|
18
15
|
element.setAttribute("component", "ui-spinner");
|
|
19
16
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
@@ -21,35 +18,45 @@ export function createUiSpinner(options = {}, html) {
|
|
|
21
18
|
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
22
19
|
const p0 = (r, c, d) => {
|
|
23
20
|
if (c & 1073741825) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
22
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
23
|
+
const x0 = "ring";
|
|
24
|
+
const s1 = toAttribute(x0, "class");
|
|
25
|
+
writeAttribute(r.n, "class", r.v1 = s1);
|
|
26
|
+
const x1 = readIndex({ "true": "status", "false": null }, textCall("concat", [equalValue(v[0], "", true)]));
|
|
27
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
28
|
+
if (r.g2 !== NONCONFORMING) {
|
|
29
|
+
const s2 = toAttribute(r.g2, "role");
|
|
30
|
+
writeAttribute(r.n, "role", r.v2 = s2);
|
|
28
31
|
}
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
const x2 = readIndex({ "true": v[0], "false": null }, textCall("concat", [equalValue(v[0], "", true)]));
|
|
33
|
+
if (x2 !== NONCONFORMING) r.g3 = x2;
|
|
34
|
+
if (r.g3 !== NONCONFORMING) {
|
|
35
|
+
const s3 = toAttribute(r.g3, "aria-label");
|
|
36
|
+
writeAttribute(r.n, "aria-label", r.v3 = s3);
|
|
33
37
|
}
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
const x3 = readIndex({ "true": "polite", "false": null }, textCall("concat", [equalValue(v[0], "", true)]));
|
|
39
|
+
if (x3 !== NONCONFORMING) r.g4 = x3;
|
|
40
|
+
if (r.g4 !== NONCONFORMING) {
|
|
41
|
+
const s4 = toAttribute(r.g4, "aria-live");
|
|
42
|
+
writeAttribute(r.n, "aria-live", r.v4 = s4);
|
|
38
43
|
}
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
const x4 = readIndex({ "true": null, "false": "true" }, textCall("concat", [equalValue(v[0], "", true)]));
|
|
45
|
+
if (x4 !== NONCONFORMING) r.g5 = x4;
|
|
46
|
+
if (r.g5 !== NONCONFORMING) {
|
|
47
|
+
const s5 = toAttribute(r.g5, "aria-hidden");
|
|
48
|
+
writeAttribute(r.n, "aria-hidden", r.v5 = s5);
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
51
|
if (c & 2) {
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
52
|
+
const x5 = hostState(["size"], [v[1]]);
|
|
53
|
+
const s6 = x5;
|
|
54
|
+
if (s6 !== r.v6) writeAttribute(r.n, "data-ui-spinner-state", (r.v6 = s6) === "" ? null : s6);
|
|
49
55
|
}
|
|
50
56
|
};
|
|
51
|
-
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined };
|
|
57
|
+
const R = { n: element, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, g5: NONCONFORMING, v6: undefined };
|
|
52
58
|
const I = { B };
|
|
59
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
53
60
|
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
54
61
|
manageProps(I);
|
|
55
62
|
return element;
|
package/vanilla/UiStack.d.ts
CHANGED