@threadlabs/looma 0.52.0 → 0.52.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/ui-wizard/ui-wizard.html +137 -0
- package/components/ui-wizard/ui-wizard.js +19 -0
- package/dist/index.js +2 -1
- package/docs/catalog.json +312 -1
- package/editor/components.css +19 -19
- 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-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-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-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-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 +162 -0
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +1 -1
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +1 -1
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +1 -1
- package/vanilla/UiCompactNode.d.ts +1 -1
- package/vanilla/UiCompactNode.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +1 -1
- package/vanilla/UiCycleButton.d.ts +1 -1
- package/vanilla/UiCycleButton.js +1 -1
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +1 -1
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +1 -1
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +1 -1
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +1 -1
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +1 -1
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +1 -1
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +1 -1
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +1 -1
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +1 -1
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +1 -1
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +1 -1
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +1 -1
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vanilla/UiWizard.d.ts +27 -0
- package/vanilla/UiWizard.js +165 -0
- package/vanilla/index.js +1 -0
package/vanilla/UiTreeItem.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.84 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-tree-item/ui-tree-item.js";
|
|
4
4
|
import "../styles/ui-tree-item.css";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.84 for Vanilla DOM. Do not edit.
|
|
2
|
+
export interface UiWizardEventMap {
|
|
3
|
+
navigate: CustomEvent<{ readonly value: string; readonly previousValue: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
|
+
}
|
|
5
|
+
export interface UiWizardElement extends HTMLDivElement {
|
|
6
|
+
addEventListener<K extends keyof UiWizardEventMap>(type: K, listener: (this: UiWizardElement, event: UiWizardEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
7
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiWizardElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
8
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9
|
+
removeEventListener<K extends keyof UiWizardEventMap>(type: K, listener: (this: UiWizardElement, event: UiWizardEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
10
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiWizardElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
11
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
12
|
+
}
|
|
13
|
+
export interface UiWizardProps {
|
|
14
|
+
disabled?: boolean | null;
|
|
15
|
+
label?: string | null;
|
|
16
|
+
steps?: readonly ({ readonly value: string; readonly label: string; readonly complete?: boolean | null; readonly disabled?: boolean | null; readonly href?: string | null })[] | null;
|
|
17
|
+
value?: string | null;
|
|
18
|
+
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
19
|
+
children?: readonly (string | Node)[];
|
|
20
|
+
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
|
21
|
+
}
|
|
22
|
+
export declare function createUiWizard(props?: UiWizardProps): UiWizardElement;
|
|
23
|
+
declare global {
|
|
24
|
+
interface ComponentTagMap {
|
|
25
|
+
"ui-wizard": { element: UiWizardElement; props: Omit<UiWizardProps, "attributes" | "children" | "slots"> };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.84 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, binaryValue, buildTemplate, clearRegion, defaultValue, formatCall, NONCONFORMING, readIndex, readMember, recordValue, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute, dispatchDeclared, detailCheck, dispose, PositionalList, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkList, checkObject, checkString, defineComponent, activateModule, add } from "@nextwebwg/html-next/generated-runtime";
|
|
3
|
+
import * as controller from "../components/ui-wizard/ui-wizard.js";
|
|
4
|
+
import "../styles/ui-wizard.css";
|
|
5
|
+
|
|
6
|
+
const T0 = ["",[],"\n ",["nav",[],"\n ",["ol",[],"\n ",2,"\n "],"\n "],"\n ",["div",["class","content"],4],"\n ",["ui-action-bar",[],["template",["slot","secondary"]],["template",["slot","primary"]]],"\n "];
|
|
7
|
+
const T1 = ["li",[],"\n ",["ui-button",["variant","ghost","align","start","stretch",""],["span",["class","marker","aria-hidden","true","data-slotted","ui-wizard"],1,1],"\n ",["span",["class","step-label","data-slotted","ui-wizard"],1,0]],"\n "];
|
|
8
|
+
const T2 = ["ui-icon",["name","check"]];
|
|
9
|
+
const T3 = ["span",[],0];
|
|
10
|
+
const T4 = ["span",["class","status"],"Completed: "];
|
|
11
|
+
const T5 = ["",[]];
|
|
12
|
+
let P0, P1, P2, P3, P4, P5;
|
|
13
|
+
const emptyDirty = new Map();
|
|
14
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-wizard", d: { "navigate": [detailCheck(checkObject([["value", checkString, false], ["previousValue", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
|
|
15
|
+
const D = { g: "ui-wizard", props: { "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Progress", c: checkString, t: "string", j: 0, m: "s" }, "steps": { "required":false,"default":[], c: checkList(checkObject([["value", checkString, false], ["label", checkString, false], ["complete", checkBoolean, true], ["disabled", checkBoolean, true], ["href", checkString, true]], false)), j: 1, m: ["l",["o",["value","s","label","s","complete","b","disabled","b","href","s"]]] }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
16
|
+
const C = (host) => activateModule(controller, host);
|
|
17
|
+
|
|
18
|
+
export function createUiWizard(options = {}, html) {
|
|
19
|
+
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
20
|
+
const element = document.createElement("div");
|
|
21
|
+
for (const [name, value] of Object.entries(attributes)) {
|
|
22
|
+
if (value === null || value === undefined || value === false) continue;
|
|
23
|
+
element.setAttribute(name, value === true ? "" : String(value));
|
|
24
|
+
}
|
|
25
|
+
element.setAttribute("component", "ui-wizard");
|
|
26
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
27
|
+
const v = [null, null, null, null];
|
|
28
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
29
|
+
const m1 = (o, j, l) => {
|
|
30
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
31
|
+
const t0 = n.firstChild.nextSibling;
|
|
32
|
+
const t1 = t0.firstChild;
|
|
33
|
+
const t2 = t1.firstChild;
|
|
34
|
+
const t3 = t2.nextSibling.nextSibling;
|
|
35
|
+
const t4 = t1.nextSibling.nextSibling;
|
|
36
|
+
const t5 = t4.firstChild;
|
|
37
|
+
const t6 = t5.nextSibling.nextSibling;
|
|
38
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, j, l, a1: t0, a2: t1, a6: t6, w: 0, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: "", a3: t2, e0: t2.nextSibling, b0: undefined, a4: t3, e1: t3.nextSibling, b1: undefined, a5: t5, e2: t5.nextSibling, b2: undefined };
|
|
39
|
+
p1(r, -1, emptyDirty);
|
|
40
|
+
return r;
|
|
41
|
+
};
|
|
42
|
+
const p1 = (r, c, d) => {
|
|
43
|
+
const o = r.i;
|
|
44
|
+
if (c & 1073741824) r.w = 0;
|
|
45
|
+
if (c & 1073741832) {
|
|
46
|
+
const x0 = trackContainer(r, readIndex(recordValue(["true","false"], ["current", readIndex({ "true": "complete", "false": "upcoming" }, textCall("concat", [trackContainer(r, defaultValue(readMember(o, "complete"), false))]))]), textCall("concat", [(readMember(o, "value") === v[3])])));
|
|
47
|
+
if (x0 !== NONCONFORMING) {
|
|
48
|
+
const s0 = toAttribute(x0, "data-state");
|
|
49
|
+
if (s0 !== r.v0) writeAttribute(r.n, "data-state", r.v0 = s0);
|
|
50
|
+
}
|
|
51
|
+
const x1 = (readMember(o, "value") === v[3]);
|
|
52
|
+
const s1 = toAttribute(x1, "selected");
|
|
53
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "selected", r.v1 = s1);
|
|
54
|
+
}
|
|
55
|
+
if (c & 1073741825) {
|
|
56
|
+
const x2 = (truthy(v[0]) || truthy(trackContainer(r, defaultValue(readMember(o, "disabled"), false))));
|
|
57
|
+
const s2 = toAttribute(x2, "disabled");
|
|
58
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "disabled", r.v2 = s2);
|
|
59
|
+
}
|
|
60
|
+
if (c & 1073741824) {
|
|
61
|
+
const x3 = trackContainer(r, readMember(o, "href"));
|
|
62
|
+
const s3 = toAttribute(x3, "href");
|
|
63
|
+
if (s3 !== r.v3) writeUrlAttribute(r.a1, "href", r.v3 = s3);
|
|
64
|
+
}
|
|
65
|
+
if (c & 1073741832) {
|
|
66
|
+
const x4 = trackContainer(r, readIndex({ "true": "step", "false": null }, textCall("concat", [(readMember(o, "value") === v[3])])));
|
|
67
|
+
if (x4 !== NONCONFORMING) {
|
|
68
|
+
const s4 = toAttribute(x4, "aria-current");
|
|
69
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "aria-current", r.v4 = s4);
|
|
70
|
+
}
|
|
71
|
+
const x5 = textCall("concat", [(readMember(o, "value") === v[3])]);
|
|
72
|
+
if (x5 !== NONCONFORMING) {
|
|
73
|
+
const s6 = toAttribute(x5, "data-current");
|
|
74
|
+
if (s6 !== r.v6) writeAttribute(r.a2, "data-current", r.v6 = s6);
|
|
75
|
+
}
|
|
76
|
+
const x6 = textCall("concat", [(truthy(trackContainer(r, defaultValue(readMember(o, "complete"), false))) && (readMember(o, "value") !== v[3]))]);
|
|
77
|
+
if (x6 !== NONCONFORMING) {
|
|
78
|
+
const s7 = toAttribute(x6, "data-complete");
|
|
79
|
+
if (s7 !== r.v7) writeAttribute(r.a2, "data-complete", r.v7 = s7);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (c & 1073741824) {
|
|
83
|
+
const x7 = trackContainer(r, readMember(o, "value"));
|
|
84
|
+
const s5 = toAttribute(x7, "data-wizard-value");
|
|
85
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "data-wizard-value", r.v5 = s5);
|
|
86
|
+
const x8 = trackContainer(r, readMember(o, "label"));
|
|
87
|
+
const s8 = toText(x8);
|
|
88
|
+
if (s8 !== r.v8) r.a6.data = r.v8 = s8;
|
|
89
|
+
}
|
|
90
|
+
if (c & 1073741832 && !((truthy(trackContainer(r, readMember(o, "complete"))) && (readMember(o, "value") !== v[3]))) !== !r.b0) {
|
|
91
|
+
if (r.b0) { r.b0 = undefined; clearRegion(r.a3, r.e0); }
|
|
92
|
+
else { r.b0 = m2(d); r.e0.before(r.b0.n); }
|
|
93
|
+
} else if (r.b0 !== undefined) p2(r.b0, c, d);
|
|
94
|
+
if (c & 1073741832 && !((!truthy(trackContainer(r, readMember(o, "complete"))) || (readMember(o, "value") === v[3]))) !== !r.b1) {
|
|
95
|
+
if (r.b1) { r.b1 = undefined; clearRegion(r.a4, r.e1); }
|
|
96
|
+
else { r.b1 = m3(d, undefined, r); r.e1.before(r.b1.n); }
|
|
97
|
+
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
98
|
+
if (c & 1073741832 && !((truthy(trackContainer(r, readMember(o, "complete"))) && (readMember(o, "value") !== v[3]))) !== !r.b2) {
|
|
99
|
+
if (r.b2) { r.b2 = undefined; clearRegion(r.a5, r.e2); }
|
|
100
|
+
else { r.b2 = m4(d); r.e2.before(r.b2.n); }
|
|
101
|
+
} else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
102
|
+
};
|
|
103
|
+
const m2 = (d) => {
|
|
104
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
105
|
+
const r = { n };
|
|
106
|
+
p2(r, -1, d);
|
|
107
|
+
return r;
|
|
108
|
+
};
|
|
109
|
+
const p2 = (r, c, d) => {
|
|
110
|
+
};
|
|
111
|
+
const m3 = (d, o, u) => {
|
|
112
|
+
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
113
|
+
const t0 = n.firstChild;
|
|
114
|
+
const r = { n, u, a0: t0, v0: "" };
|
|
115
|
+
p3(r, -1, d);
|
|
116
|
+
return r;
|
|
117
|
+
};
|
|
118
|
+
const p3 = (r, c, d) => {
|
|
119
|
+
if (c & -1073741824) {
|
|
120
|
+
const x0 = formatCall("format", [binaryValue("+", r.u.j, 1, undefined, undefined, add), "number"], "number");
|
|
121
|
+
if (x0 !== NONCONFORMING) {
|
|
122
|
+
const s0 = toText(x0);
|
|
123
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const m4 = (d) => {
|
|
128
|
+
const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
|
|
129
|
+
const r = { n };
|
|
130
|
+
p4(r, -1, d);
|
|
131
|
+
return r;
|
|
132
|
+
};
|
|
133
|
+
const p4 = (r, c, d) => {
|
|
134
|
+
};
|
|
135
|
+
const m5 = (d) => {
|
|
136
|
+
const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
|
|
137
|
+
const r = { n };
|
|
138
|
+
p5(r, -1, d);
|
|
139
|
+
return r;
|
|
140
|
+
};
|
|
141
|
+
const p5 = (r, c, d) => {
|
|
142
|
+
};
|
|
143
|
+
const p0 = (r, c, d) => {
|
|
144
|
+
if (c & 2) {
|
|
145
|
+
const x0 = v[1];
|
|
146
|
+
const s0 = toAttribute(x0, "aria-label");
|
|
147
|
+
if (s0 !== r.v0) writeAttribute(r.a0, "aria-label", r.v0 = s0);
|
|
148
|
+
}
|
|
149
|
+
if (c & 1073741828) r.L0.update(v[2], d, c);
|
|
150
|
+
if (c !== -1 && c & 9) r.L0.each(c, d);
|
|
151
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
152
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m5(d); at.before(r.b1.n); } }
|
|
153
|
+
else if (r.b1 !== undefined) p5(r.b1, c, d);
|
|
154
|
+
};
|
|
155
|
+
const t0 = element.firstChild.nextSibling;
|
|
156
|
+
const t1 = t0.firstChild.nextSibling.firstChild.nextSibling;
|
|
157
|
+
const t2 = t0.nextSibling.nextSibling.firstChild;
|
|
158
|
+
const R = { a0: t0, v0: null, L0: new PositionalList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "value"), "step"), a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined };
|
|
159
|
+
const I = { B };
|
|
160
|
+
const J = project(I, children, slots);
|
|
161
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
162
|
+
manageProps(I);
|
|
163
|
+
return element;
|
|
164
|
+
}
|
|
165
|
+
defineComponent("ui-wizard", createUiWizard, ["disabled","label","steps","value"]);
|
package/vanilla/index.js
CHANGED