@threadlabs/looma 0.50.2 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/shared/binding-inputs.js +5 -0
- package/components/shared/calendar-model.js +84 -0
- package/components/shared/date-input-segments.js +25 -0
- package/components/shared/date-navigation.js +35 -0
- package/components/shared/date-picker.js +38 -0
- package/components/shared/date-range.js +61 -0
- package/components/shared/date-time.js +273 -0
- package/components/shared/external-value.js +12 -0
- package/components/shared/form-reset.js +1 -1
- package/components/shared/icons.js +2 -0
- package/components/shared/initial-field-value.js +14 -0
- package/components/shared/input-segments.js +190 -0
- package/components/shared/prepared-module.js +19 -0
- package/components/ui-button/ui-button.html +31 -10
- package/components/ui-calendar/calendar-source.js +34 -0
- package/components/ui-calendar/ui-calendar.html +221 -0
- package/components/ui-calendar/ui-calendar.js +185 -0
- package/components/ui-cluster/ui-cluster.html +5 -2
- package/components/ui-date-field/ui-date-field.html +143 -0
- package/components/ui-date-field/ui-date-field.js +258 -0
- package/components/ui-date-picker/ui-date-picker.html +213 -0
- package/components/ui-date-picker/ui-date-picker.js +153 -0
- package/components/ui-date-range-picker/ui-date-range-picker.html +202 -0
- package/components/ui-date-range-picker/ui-date-range-picker.js +224 -0
- package/components/ui-file-input/files.js +15 -0
- package/components/ui-file-input/ui-file-input.html +79 -0
- package/components/ui-file-input/ui-file-input.js +108 -0
- package/components/ui-form-field/ui-form-field.js +2 -2
- package/components/ui-grid/ui-grid.html +68 -5
- package/components/ui-icon/ui-icon.html +8 -0
- package/components/ui-icon-button/ui-icon-button.html +22 -7
- package/components/ui-input/ui-input.html +10 -1
- package/components/ui-input/ui-input.js +11 -5
- package/components/ui-input-group/ui-input-group.html +2 -2
- package/components/ui-input-group/ui-input-group.js +6 -5
- package/components/ui-popover/ui-popover.html +2 -0
- package/components/ui-popover/ui-popover.js +5 -1
- package/components/ui-select/ui-select.html +8 -3
- package/components/ui-time-field/ui-time-field.html +62 -0
- package/components/ui-time-field/ui-time-field.js +21 -0
- package/components/ui-time-picker/time-options.js +25 -0
- package/components/ui-time-picker/ui-time-picker.html +160 -0
- package/components/ui-time-picker/ui-time-picker.js +132 -0
- package/dist/index.js +68 -61
- package/docs/README.md +2 -2
- package/docs/catalog.json +14225 -6225
- package/docs/documentation.css +1 -1
- package/docs/framework-examples.mjs +13 -2
- package/docs/site.mjs +1 -1
- package/editor/components.css +62 -29
- package/editor/icons.d.ts +2 -0
- package/editor/index.js +602 -141
- package/package.json +6 -4
- 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 +19 -7
- package/styles/ui-calendar.css +1 -0
- 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 +4 -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 -0
- package/styles/ui-date-picker.css +1 -0
- package/styles/ui-date-range-picker.css +1 -0
- 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 -0
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +38 -1
- package/styles/ui-icon-button.css +19 -5
- package/styles/ui-icon.css +5 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +3 -3
- 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 +9 -4
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +19 -19
- 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 -0
- package/styles/ui-time-picker.css +1 -0
- 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/tokens.css +4 -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 +2 -1
- package/vanilla/UiButton.js +128 -108
- package/vanilla/UiCalendar.d.ts +50 -0
- package/vanilla/UiCalendar.js +477 -0
- 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 +2 -2
- package/vanilla/UiCluster.js +2 -2
- 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 +52 -0
- package/vanilla/UiDateField.js +208 -0
- package/vanilla/UiDatePicker.d.ts +63 -0
- package/vanilla/UiDatePicker.js +360 -0
- package/vanilla/UiDateRangePicker.d.ts +60 -0
- package/vanilla/UiDateRangePicker.js +418 -0
- 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 +36 -0
- package/vanilla/UiFileInput.js +209 -0
- 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 +7 -2
- package/vanilla/UiGrid.js +85 -19
- package/vanilla/UiIcon.d.ts +2 -1
- package/vanilla/UiIcon.js +10 -10
- package/vanilla/UiIconButton.d.ts +2 -2
- package/vanilla/UiIconButton.js +2 -2
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +2 -1
- package/vanilla/UiInput.js +11 -11
- 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 +2 -1
- package/vanilla/UiPopover.js +4 -4
- 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 +42 -0
- package/vanilla/UiTimeField.js +112 -0
- package/vanilla/UiTimePicker.d.ts +48 -0
- package/vanilla/UiTimePicker.js +372 -0
- 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/index.js +7 -0
package/vanilla/UiBadge.d.ts
CHANGED
package/vanilla/UiBadge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-badge.css";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispose, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-breadcrumb-item.css";
|
|
4
4
|
|
package/vanilla/UiBreadcrumbs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-breadcrumbs.css";
|
|
4
4
|
|
package/vanilla/UiButton.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.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiButtonEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiButtonElement extends HTMLElement {
|
|
@@ -17,6 +17,7 @@ export interface UiButtonProps {
|
|
|
17
17
|
pending?: boolean | null;
|
|
18
18
|
preset?: "none" | "primary" | "standard" | "quiet" | "destructive" | null;
|
|
19
19
|
rel?: string | null;
|
|
20
|
+
selected?: boolean | null;
|
|
20
21
|
shape?: "rounded" | "pill" | null;
|
|
21
22
|
size?: "xs" | "sm" | "md" | "lg" | null;
|
|
22
23
|
square?: boolean | null;
|
package/vanilla/UiButton.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, computedCycle, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, project, fillSlot, armElement, replaceRoot, readonlyView, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-button/ui-button.js";
|
|
4
4
|
import "../styles/ui-button.css";
|
|
@@ -25,20 +25,20 @@ const T18 = ["",[]];
|
|
|
25
25
|
const T19 = ["",[]];
|
|
26
26
|
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19;
|
|
27
27
|
const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
|
|
28
|
-
const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]]];
|
|
28
|
+
const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","data-selected","type","disabled","aria-disabled","aria-busy"]]];
|
|
29
29
|
const Q = [[],[],[],[]];
|
|
30
|
-
const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
30
|
+
const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
31
31
|
const C = (host) => activateModule(controller, host);
|
|
32
32
|
|
|
33
33
|
export function createUiButton(options = {}, html) {
|
|
34
34
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
35
|
-
const v = [undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
|
|
35
|
+
const v = [undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
|
|
36
36
|
let B = acceptProps(undefined, D, S.n, v, componentProps, [], html);
|
|
37
37
|
const CS = [];
|
|
38
|
-
const inputStatus = (j) => { if (j >= 0 && j < 2) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 2) return awaitInput(B, "align", true); if (j === 3) return awaitInput(B, "disabled", true); if (j === 4) return awaitInput(B, "href", true); if (j === 5) return awaitInput(B, "loading", true); if (j === 6) return awaitInput(B, "pending", true); if (j === 7) return awaitInput(B, "preset", true); if (j === 8) return awaitInput(B, "rel", true); if (j === 9) return awaitInput(B, "
|
|
38
|
+
const inputStatus = (j) => { if (j >= 0 && j < 2) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 2) return awaitInput(B, "align", true); if (j === 3) return awaitInput(B, "disabled", true); if (j === 4) return awaitInput(B, "href", true); if (j === 5) return awaitInput(B, "loading", true); if (j === 6) return awaitInput(B, "pending", true); if (j === 7) return awaitInput(B, "preset", true); if (j === 8) return awaitInput(B, "rel", true); if (j === 9) return awaitInput(B, "selected", true); if (j === 10) return awaitInput(B, "shape", true); if (j === 11) return awaitInput(B, "size", true); if (j === 12) return awaitInput(B, "square", true); if (j === 13) return awaitInput(B, "stretch", true); if (j === 14) return awaitInput(B, "target", true); if (j === 15) return awaitInput(B, "tone", true); if (j === 16) return awaitInput(B, "type", true); if (j === 17) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
39
39
|
const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
|
|
40
40
|
const ke = [];
|
|
41
|
-
const K = [() => readIndex({ "none": inputRead(v[
|
|
41
|
+
const K = [() => readIndex({ "none": inputRead(v[17], inputStatus(17)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[7], inputStatus(7))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[15], inputStatus(15)) }, textCall("concat", [(inputRead(v[17], inputStatus(17)) === "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[7], inputStatus(7)))];
|
|
42
42
|
const g = (j) => {
|
|
43
43
|
const i = j - 0;
|
|
44
44
|
if (ke[i] === X.e) return v[j];
|
|
@@ -227,64 +227,69 @@ export function createUiButton(options = {}, html) {
|
|
|
227
227
|
const t3 = t0.nextSibling.nextSibling;
|
|
228
228
|
const t4 = t3.firstChild;
|
|
229
229
|
const t5 = t3.nextSibling.nextSibling.firstChild;
|
|
230
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
230
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
231
231
|
r.z = [() => dispose(r.b1)];
|
|
232
232
|
p0(r, -1, d);
|
|
233
233
|
return r;
|
|
234
234
|
};
|
|
235
235
|
const p0 = (r, c, d) => {
|
|
236
|
-
if (c &
|
|
236
|
+
if (c & 1073873024) {
|
|
237
237
|
const x0 = g(0);
|
|
238
238
|
const s0 = toAttribute(x0, "data-appearance");
|
|
239
239
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
240
240
|
}
|
|
241
|
-
if (c &
|
|
241
|
+
if (c & 1073905792) {
|
|
242
242
|
const x1 = g(1);
|
|
243
243
|
if (x1 !== NONCONFORMING) {
|
|
244
244
|
const s1 = toAttribute(x1, "data-tone");
|
|
245
245
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
if (c & 512) {
|
|
249
|
+
const x2 = v[9];
|
|
250
|
+
const s2 = toAttribute(x2, "data-selected");
|
|
251
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
|
|
252
|
+
}
|
|
248
253
|
if (c & 1073741944) {
|
|
249
|
-
const
|
|
250
|
-
if (
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
254
|
+
const x3 = readIndex({ "true": null, "false": v[4] }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
|
|
255
|
+
if (x3 !== NONCONFORMING) {
|
|
256
|
+
const s3 = toAttribute(x3, "href");
|
|
257
|
+
if (s3 !== r.v3) writeUrlAttribute(r.n, "href", r.v3 = s3);
|
|
253
258
|
}
|
|
254
259
|
}
|
|
255
|
-
if (c &
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
260
|
+
if (c & 16384) {
|
|
261
|
+
const x4 = v[14];
|
|
262
|
+
const s4 = toAttribute(x4, "target");
|
|
263
|
+
if (s4 !== r.v4) writeAttribute(r.n, "target", r.v4 = s4);
|
|
259
264
|
}
|
|
260
265
|
if (c & 256) {
|
|
261
|
-
const
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
266
|
+
const x5 = v[8];
|
|
267
|
+
const s5 = toAttribute(x5, "rel");
|
|
268
|
+
if (s5 !== r.v5) writeAttribute(r.n, "rel", r.v5 = s5);
|
|
264
269
|
}
|
|
265
270
|
if (c & 1073741928) {
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
271
|
+
const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
|
|
272
|
+
if (x6 !== NONCONFORMING) {
|
|
273
|
+
const s6 = toAttribute(x6, "aria-disabled");
|
|
274
|
+
if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
|
|
270
275
|
}
|
|
271
276
|
}
|
|
272
277
|
if (c & 96) {
|
|
273
|
-
const
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
278
|
+
const x7 = (truthy(v[5]) || truthy(v[6]));
|
|
279
|
+
const s7 = toAttribute(x7, "aria-busy");
|
|
280
|
+
if (s7 !== r.v7) writeAttribute(r.n, "aria-busy", r.v7 = s7);
|
|
276
281
|
}
|
|
277
282
|
if (c & 1073741928) {
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
283
|
+
const x8 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[5]) || truthy(v[6])) && !truthy(v[3]))]));
|
|
284
|
+
if (x8 !== NONCONFORMING) {
|
|
285
|
+
const s8 = toAttribute(x8, "tabindex");
|
|
286
|
+
if (s8 !== r.v8) writeAttribute(r.n, "tabindex", r.v8 = s8);
|
|
282
287
|
}
|
|
283
288
|
}
|
|
284
|
-
if (c &
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
if (
|
|
289
|
+
if (c & 15460) {
|
|
290
|
+
const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
|
|
291
|
+
const s9 = x9;
|
|
292
|
+
if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
|
|
288
293
|
}
|
|
289
294
|
if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
|
|
290
295
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -309,50 +314,55 @@ export function createUiButton(options = {}, html) {
|
|
|
309
314
|
const t3 = t0.nextSibling.nextSibling;
|
|
310
315
|
const t4 = t3.firstChild;
|
|
311
316
|
const t5 = t3.nextSibling.nextSibling.firstChild;
|
|
312
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
317
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
313
318
|
r.z = [() => dispose(r.b1)];
|
|
314
319
|
p6(r, -1, d);
|
|
315
320
|
return r;
|
|
316
321
|
};
|
|
317
322
|
const p6 = (r, c, d) => {
|
|
318
|
-
if (c &
|
|
323
|
+
if (c & 1073873024) {
|
|
319
324
|
const x0 = g(0);
|
|
320
325
|
const s0 = toAttribute(x0, "data-appearance");
|
|
321
326
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
322
327
|
}
|
|
323
|
-
if (c &
|
|
328
|
+
if (c & 1073905792) {
|
|
324
329
|
const x1 = g(1);
|
|
325
330
|
if (x1 !== NONCONFORMING) {
|
|
326
331
|
const s1 = toAttribute(x1, "data-tone");
|
|
327
332
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
328
333
|
}
|
|
329
334
|
}
|
|
330
|
-
if (c &
|
|
331
|
-
const x2 = v[
|
|
332
|
-
const s2 = toAttribute(x2, "
|
|
333
|
-
if (s2 !== r.v2) writeAttribute(r.n, "
|
|
335
|
+
if (c & 512) {
|
|
336
|
+
const x2 = v[9];
|
|
337
|
+
const s2 = toAttribute(x2, "data-selected");
|
|
338
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
|
|
339
|
+
}
|
|
340
|
+
if (c & 1073807360) {
|
|
341
|
+
const x3 = v[16];
|
|
342
|
+
const s3 = toAttribute(x3, "type");
|
|
343
|
+
if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
|
|
334
344
|
}
|
|
335
345
|
if (c & 8) {
|
|
336
|
-
const
|
|
337
|
-
const
|
|
338
|
-
if (
|
|
346
|
+
const x4 = v[3];
|
|
347
|
+
const s4 = toAttribute(x4, "disabled");
|
|
348
|
+
if (s4 !== r.v4) writeAttribute(r.n, "disabled", r.v4 = s4);
|
|
339
349
|
}
|
|
340
350
|
if (c & 1073741920) {
|
|
341
|
-
const
|
|
342
|
-
if (
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
351
|
+
const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[5]) || truthy(v[6]))]));
|
|
352
|
+
if (x5 !== NONCONFORMING) {
|
|
353
|
+
const s5 = toAttribute(x5, "aria-disabled");
|
|
354
|
+
if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
|
|
345
355
|
}
|
|
346
356
|
}
|
|
347
357
|
if (c & 96) {
|
|
348
|
-
const
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
358
|
+
const x6 = (truthy(v[5]) || truthy(v[6]));
|
|
359
|
+
const s6 = toAttribute(x6, "aria-busy");
|
|
360
|
+
if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
|
|
351
361
|
}
|
|
352
|
-
if (c &
|
|
353
|
-
const
|
|
354
|
-
const
|
|
355
|
-
if (
|
|
362
|
+
if (c & 15460) {
|
|
363
|
+
const x7 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
|
|
364
|
+
const s7 = x7;
|
|
365
|
+
if (s7 !== r.v7) writeAttribute(r.n, "data-ui-button-state", (r.v7 = s7) === "" ? null : s7);
|
|
356
366
|
}
|
|
357
367
|
if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
|
|
358
368
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -375,63 +385,68 @@ export function createUiButton(options = {}, html) {
|
|
|
375
385
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
376
386
|
const t2 = t1.firstChild;
|
|
377
387
|
const t3 = t1.nextSibling.nextSibling.firstChild;
|
|
378
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
388
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
379
389
|
p12(r, -1, d);
|
|
380
390
|
return r;
|
|
381
391
|
};
|
|
382
392
|
const p12 = (r, c, d) => {
|
|
383
|
-
if (c &
|
|
393
|
+
if (c & 1073873024) {
|
|
384
394
|
const x0 = g(0);
|
|
385
395
|
const s0 = toAttribute(x0, "data-appearance");
|
|
386
396
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
387
397
|
}
|
|
388
|
-
if (c &
|
|
398
|
+
if (c & 1073905792) {
|
|
389
399
|
const x1 = g(1);
|
|
390
400
|
if (x1 !== NONCONFORMING) {
|
|
391
401
|
const s1 = toAttribute(x1, "data-tone");
|
|
392
402
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
393
403
|
}
|
|
394
404
|
}
|
|
405
|
+
if (c & 512) {
|
|
406
|
+
const x2 = v[9];
|
|
407
|
+
const s2 = toAttribute(x2, "data-selected");
|
|
408
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
|
|
409
|
+
}
|
|
395
410
|
if (c & 1073741944) {
|
|
396
|
-
const
|
|
397
|
-
if (
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
411
|
+
const x3 = readIndex({ "true": null, "false": v[4] }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
|
|
412
|
+
if (x3 !== NONCONFORMING) {
|
|
413
|
+
const s3 = toAttribute(x3, "href");
|
|
414
|
+
if (s3 !== r.v3) writeUrlAttribute(r.n, "href", r.v3 = s3);
|
|
400
415
|
}
|
|
401
416
|
}
|
|
402
|
-
if (c &
|
|
403
|
-
const
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
417
|
+
if (c & 16384) {
|
|
418
|
+
const x4 = v[14];
|
|
419
|
+
const s4 = toAttribute(x4, "target");
|
|
420
|
+
if (s4 !== r.v4) writeAttribute(r.n, "target", r.v4 = s4);
|
|
406
421
|
}
|
|
407
422
|
if (c & 256) {
|
|
408
|
-
const
|
|
409
|
-
const
|
|
410
|
-
if (
|
|
423
|
+
const x5 = v[8];
|
|
424
|
+
const s5 = toAttribute(x5, "rel");
|
|
425
|
+
if (s5 !== r.v5) writeAttribute(r.n, "rel", r.v5 = s5);
|
|
411
426
|
}
|
|
412
427
|
if (c & 1073741928) {
|
|
413
|
-
const
|
|
414
|
-
if (
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
428
|
+
const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
|
|
429
|
+
if (x6 !== NONCONFORMING) {
|
|
430
|
+
const s6 = toAttribute(x6, "aria-disabled");
|
|
431
|
+
if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
|
|
417
432
|
}
|
|
418
433
|
}
|
|
419
434
|
if (c & 96) {
|
|
420
|
-
const
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
435
|
+
const x7 = (truthy(v[5]) || truthy(v[6]));
|
|
436
|
+
const s7 = toAttribute(x7, "aria-busy");
|
|
437
|
+
if (s7 !== r.v7) writeAttribute(r.n, "aria-busy", r.v7 = s7);
|
|
423
438
|
}
|
|
424
439
|
if (c & 1073741928) {
|
|
425
|
-
const
|
|
426
|
-
if (
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
440
|
+
const x8 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[5]) || truthy(v[6])) && !truthy(v[3]))]));
|
|
441
|
+
if (x8 !== NONCONFORMING) {
|
|
442
|
+
const s8 = toAttribute(x8, "tabindex");
|
|
443
|
+
if (s8 !== r.v8) writeAttribute(r.n, "tabindex", r.v8 = s8);
|
|
429
444
|
}
|
|
430
445
|
}
|
|
431
|
-
if (c &
|
|
432
|
-
const
|
|
433
|
-
const
|
|
434
|
-
if (
|
|
446
|
+
if (c & 15460) {
|
|
447
|
+
const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
|
|
448
|
+
const s9 = x9;
|
|
449
|
+
if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
|
|
435
450
|
}
|
|
436
451
|
if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
|
|
437
452
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -450,49 +465,54 @@ export function createUiButton(options = {}, html) {
|
|
|
450
465
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
451
466
|
const t2 = t1.firstChild;
|
|
452
467
|
const t3 = t1.nextSibling.nextSibling.firstChild;
|
|
453
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
468
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
454
469
|
p16(r, -1, d);
|
|
455
470
|
return r;
|
|
456
471
|
};
|
|
457
472
|
const p16 = (r, c, d) => {
|
|
458
|
-
if (c &
|
|
473
|
+
if (c & 1073873024) {
|
|
459
474
|
const x0 = g(0);
|
|
460
475
|
const s0 = toAttribute(x0, "data-appearance");
|
|
461
476
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
462
477
|
}
|
|
463
|
-
if (c &
|
|
478
|
+
if (c & 1073905792) {
|
|
464
479
|
const x1 = g(1);
|
|
465
480
|
if (x1 !== NONCONFORMING) {
|
|
466
481
|
const s1 = toAttribute(x1, "data-tone");
|
|
467
482
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
468
483
|
}
|
|
469
484
|
}
|
|
470
|
-
if (c &
|
|
471
|
-
const x2 = v[
|
|
472
|
-
const s2 = toAttribute(x2, "
|
|
473
|
-
if (s2 !== r.v2) writeAttribute(r.n, "
|
|
485
|
+
if (c & 512) {
|
|
486
|
+
const x2 = v[9];
|
|
487
|
+
const s2 = toAttribute(x2, "data-selected");
|
|
488
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
|
|
489
|
+
}
|
|
490
|
+
if (c & 1073807360) {
|
|
491
|
+
const x3 = v[16];
|
|
492
|
+
const s3 = toAttribute(x3, "type");
|
|
493
|
+
if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
|
|
474
494
|
}
|
|
475
495
|
if (c & 8) {
|
|
476
|
-
const
|
|
477
|
-
const
|
|
478
|
-
if (
|
|
496
|
+
const x4 = v[3];
|
|
497
|
+
const s4 = toAttribute(x4, "disabled");
|
|
498
|
+
if (s4 !== r.v4) writeAttribute(r.n, "disabled", r.v4 = s4);
|
|
479
499
|
}
|
|
480
500
|
if (c & 1073741920) {
|
|
481
|
-
const
|
|
482
|
-
if (
|
|
483
|
-
const
|
|
484
|
-
if (
|
|
501
|
+
const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[5]) || truthy(v[6]))]));
|
|
502
|
+
if (x5 !== NONCONFORMING) {
|
|
503
|
+
const s5 = toAttribute(x5, "aria-disabled");
|
|
504
|
+
if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
|
|
485
505
|
}
|
|
486
506
|
}
|
|
487
507
|
if (c & 96) {
|
|
488
|
-
const
|
|
489
|
-
const
|
|
490
|
-
if (
|
|
508
|
+
const x6 = (truthy(v[5]) || truthy(v[6]));
|
|
509
|
+
const s6 = toAttribute(x6, "aria-busy");
|
|
510
|
+
if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
|
|
491
511
|
}
|
|
492
|
-
if (c &
|
|
493
|
-
const
|
|
494
|
-
const
|
|
495
|
-
if (
|
|
512
|
+
if (c & 15460) {
|
|
513
|
+
const x7 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[2], v[13], v[11], v[10], v[12], v[5], v[6]]);
|
|
514
|
+
const s7 = x7;
|
|
515
|
+
if (s7 !== r.v7) writeAttribute(r.n, "data-ui-button-state", (r.v7 = s7) === "" ? null : s7);
|
|
496
516
|
}
|
|
497
517
|
if (c & 96 && !((truthy(v[5]) || truthy(v[6]))) !== !r.b0) {
|
|
498
518
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -510,7 +530,7 @@ export function createUiButton(options = {}, html) {
|
|
|
510
530
|
const p = (c, d) => {
|
|
511
531
|
if (R === null) return;
|
|
512
532
|
if (R === undefined) { R = M[a](element, d); return; }
|
|
513
|
-
if (c &
|
|
533
|
+
if (c & 1073873040) {
|
|
514
534
|
const t = (((g(0) === "card") && (v[4] !== null)) ? 0 : (g(0) === "card") ? 1 : (v[4] !== null) ? 2 : 3);
|
|
515
535
|
if (t !== a) {
|
|
516
536
|
dispose(R);
|
|
@@ -532,4 +552,4 @@ export function createUiButton(options = {}, html) {
|
|
|
532
552
|
manageProps(I);
|
|
533
553
|
return element;
|
|
534
554
|
}
|
|
535
|
-
defineComponent("ui-button", createUiButton, ["align","disabled","href","loading","pending","preset","rel","shape","size","square","stretch","target","tone","type","variant"]);
|
|
555
|
+
defineComponent("ui-button", createUiButton, ["align","disabled","href","loading","pending","preset","rel","selected","shape","size","square","stretch","target","tone","type","variant"]);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
|
+
export interface UiCalendarEventMap {
|
|
3
|
+
input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
|
+
change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
5
|
+
select: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
6
|
+
"month-change": CustomEvent<{ readonly month: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
7
|
+
}
|
|
8
|
+
export interface UiCalendarElement extends HTMLElement {
|
|
9
|
+
addEventListener<K extends keyof UiCalendarEventMap>(type: K, listener: (this: UiCalendarElement, event: UiCalendarEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
10
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCalendarElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
11
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
12
|
+
removeEventListener<K extends keyof UiCalendarEventMap>(type: K, listener: (this: UiCalendarElement, event: UiCalendarEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
13
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCalendarElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
14
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
15
|
+
}
|
|
16
|
+
export interface UiCalendarProps {
|
|
17
|
+
allowedDates?: readonly (string)[] | null;
|
|
18
|
+
allowedRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
|
|
19
|
+
disabled?: boolean | null;
|
|
20
|
+
disabledDates?: readonly (string)[] | null;
|
|
21
|
+
disabledRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
|
|
22
|
+
disabledWeekdays?: readonly (number)[] | null;
|
|
23
|
+
emptyLabel?: string | null;
|
|
24
|
+
end?: string | null;
|
|
25
|
+
label?: string | null;
|
|
26
|
+
locale?: string | null;
|
|
27
|
+
max?: string | null;
|
|
28
|
+
min?: string | null;
|
|
29
|
+
model?: { readonly rangeBands: readonly ({ readonly start: number; readonly end: number })[]; readonly month: string; readonly title: string; readonly monthLabel: string; readonly yearLabel: string; readonly weekStartsOn: number; readonly weekendColumns: readonly (number)[]; readonly weekdays: readonly ({ readonly day: number; readonly label: string; readonly fullLabel: string })[]; readonly rows: readonly (readonly ({ readonly value: string; readonly day: number; readonly outside: boolean; readonly label: string; readonly disabled: boolean; readonly selected: boolean; readonly today: boolean; readonly rangeStart: boolean; readonly rangeEnd: boolean; readonly inRange: boolean; readonly tabIndex: number })[])[]; readonly focusDate: string; readonly empty: boolean; readonly previousMonth: string; readonly nextMonth: string; readonly months: readonly ({ readonly value: string; readonly label: string; readonly fullLabel: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[]; readonly years: readonly ({ readonly value: number; readonly label: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[]; readonly yearPageStart: number; readonly yearPageLabel: string; readonly monthRows: readonly (readonly ({ readonly value: string; readonly label: string; readonly fullLabel: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[])[]; readonly yearRows: readonly (readonly ({ readonly value: number; readonly label: string; readonly current: boolean; readonly outsideBounds: boolean; readonly disabled: boolean; readonly tabIndex: number })[])[] } | null;
|
|
30
|
+
month?: string | null;
|
|
31
|
+
monthLabel?: string | null;
|
|
32
|
+
nextLabel?: string | null;
|
|
33
|
+
previousLabel?: string | null;
|
|
34
|
+
readonly?: boolean | null;
|
|
35
|
+
start?: string | null;
|
|
36
|
+
today?: string | null;
|
|
37
|
+
value?: string | null;
|
|
38
|
+
weekStartsOn?: number | null;
|
|
39
|
+
yearErrorLabel?: string | null;
|
|
40
|
+
yearLabel?: string | null;
|
|
41
|
+
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
42
|
+
children?: readonly (string | Node)[];
|
|
43
|
+
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
|
44
|
+
}
|
|
45
|
+
export declare function createUiCalendar(props?: UiCalendarProps): UiCalendarElement;
|
|
46
|
+
declare global {
|
|
47
|
+
interface ComponentTagMap {
|
|
48
|
+
"ui-calendar": { element: UiCalendarElement; props: Omit<UiCalendarProps, "attributes" | "children" | "slots"> };
|
|
49
|
+
}
|
|
50
|
+
}
|