@threadlabs/looma 0.52.12 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/shared/overlay.js +7 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
- package/components/ui-meter/ui-meter.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +1 -1
- package/editor/components.css +19 -19
- package/editor/index.js +1125 -853
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card-group.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-column.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-data-table.css +1 -1
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-light-editor.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-notice-stripe.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-segmented-control.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +1 -1
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/styles/ui-wizard.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +14 -12
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +13 -11
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +27 -25
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +26 -23
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +14 -12
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +14 -13
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +10 -10
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +187 -244
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +272 -193
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +32 -27
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +72 -69
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +17 -15
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +32 -30
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +20 -18
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +22 -20
- package/vanilla/UiColumn.d.ts +2 -2
- package/vanilla/UiColumn.js +18 -15
- package/vanilla/UiCombobox.d.ts +3 -3
- package/vanilla/UiCombobox.js +237 -174
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +13 -8
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +17 -12
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +47 -45
- package/vanilla/UiCompactNode.d.ts +2 -2
- package/vanilla/UiCompactNode.js +37 -33
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +13 -11
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +11 -9
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +13 -11
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +40 -38
- package/vanilla/UiCycleButton.d.ts +2 -2
- package/vanilla/UiCycleButton.js +31 -26
- package/vanilla/UiDataTable.d.ts +1 -1
- package/vanilla/UiDataTable.js +26 -20
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +78 -75
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +155 -149
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +136 -128
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +13 -11
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +13 -11
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +14 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +28 -26
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +29 -27
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +62 -58
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +14 -12
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +22 -14
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +23 -16
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +17 -9
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +108 -71
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +68 -66
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +50 -35
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +27 -25
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +79 -57
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +63 -44
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +22 -16
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +52 -33
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +19 -14
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +27 -25
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +13 -11
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +81 -52
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +107 -68
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +121 -70
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +20 -12
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +94 -80
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +21 -20
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +21 -19
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +26 -23
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +20 -15
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +35 -43
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +16 -14
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +29 -35
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +16 -14
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +29 -27
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +33 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +12 -12
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +90 -80
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +20 -12
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +14 -11
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +74 -75
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +67 -62
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +63 -65
- package/vanilla/UiNoticeStripe.d.ts +1 -1
- package/vanilla/UiNoticeStripe.js +16 -16
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +41 -38
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +17 -15
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +53 -44
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +13 -11
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +25 -23
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +33 -36
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +20 -12
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +13 -11
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +21 -20
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +16 -14
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +48 -45
- package/vanilla/UiSegmentedControl.d.ts +2 -2
- package/vanilla/UiSegmentedControl.js +52 -47
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +17 -21
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +12 -12
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +17 -15
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +25 -23
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +21 -20
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +50 -47
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +34 -27
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +12 -12
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +22 -21
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +20 -17
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +25 -23
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +13 -11
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +13 -11
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +39 -28
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +128 -125
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +27 -39
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +42 -40
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +105 -102
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +14 -14
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +61 -31
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +17 -14
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +24 -22
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +17 -12
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +73 -79
- package/vanilla/UiWizard.d.ts +1 -1
- package/vanilla/UiWizard.js +61 -40
package/vanilla/UiButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
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,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, equalValue, 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, armElement, replaceRoot, readonlyView, checkBoolean, checkFormat, checkString, initializeSlot, sharePlainSlots, forwardAttributes, resetForwardedAttributes, 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";
|
|
5
5
|
|
|
@@ -31,14 +31,15 @@ const D = { g: "ui-button", props: { "align": { "required":false,"values":["cent
|
|
|
31
31
|
const C = (host) => activateModule(controller, host);
|
|
32
32
|
|
|
33
33
|
export function createUiButton(options = {}, html) {
|
|
34
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
34
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
35
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["align","disabled","href","interaction-tone","interaction-variant","loading","pending","preset","rel","selected","shape","size","square","stretch","target","tone","type","variant"].includes(name)));
|
|
35
36
|
const v = [undefined, undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
|
|
36
37
|
let B = acceptProps(undefined, D, S.n, v, componentProps, [], html);
|
|
37
38
|
const CS = [];
|
|
38
39
|
const inputStatus = (j) => { if (j >= 0 && j < 3) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 3) return awaitInput(B, "align", true); if (j === 4) return awaitInput(B, "disabled", true); if (j === 5) return awaitInput(B, "href", true); if (j === 6) return awaitInput(B, "interactionTone", true); if (j === 7) return awaitInput(B, "interactionVariant", true); if (j === 8) return awaitInput(B, "loading", true); if (j === 9) return awaitInput(B, "pending", true); if (j === 10) return awaitInput(B, "preset", true); if (j === 11) return awaitInput(B, "rel", true); if (j === 12) return awaitInput(B, "selected", true); if (j === 13) return awaitInput(B, "shape", true); if (j === 14) return awaitInput(B, "size", true); if (j === 15) return awaitInput(B, "square", true); if (j === 16) return awaitInput(B, "stretch", true); if (j === 17) return awaitInput(B, "target", true); if (j === 18) return awaitInput(B, "tone", true); if (j === 19) return awaitInput(B, "type", true); if (j === 20) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
39
40
|
const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
|
|
40
41
|
const ke = [];
|
|
41
|
-
const K = [() => readIndex({ "none": inputRead(v[20], inputStatus(20)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[10], inputStatus(10))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[18], inputStatus(18)) }, textCall("concat", [(inputRead(v[20], inputStatus(20))
|
|
42
|
+
const K = [() => readIndex({ "none": inputRead(v[20], inputStatus(20)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[10], inputStatus(10))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[18], inputStatus(18)) }, textCall("concat", [equalValue(inputRead(v[20], inputStatus(20)), "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[10], inputStatus(10))), () => readIndex({ "true": null, "false": readIndex({ "inherit": inputRead(g(0), inputStatus(0)), "outline": "outline", "solid": "solid", "ghost": "ghost" }, inputRead(v[7], inputStatus(7))) }, textCall("concat", [(truthy(equalValue(inputRead(v[6], inputStatus(6)), "inherit")) && truthy(equalValue(inputRead(v[7], inputStatus(7)), "inherit")))]))];
|
|
42
43
|
const g = (j) => {
|
|
43
44
|
const i = j - 0;
|
|
44
45
|
if (ke[i] === X.e) return v[j];
|
|
@@ -51,35 +52,19 @@ export function createUiButton(options = {}, html) {
|
|
|
51
52
|
if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
|
|
52
53
|
return next;
|
|
53
54
|
};
|
|
54
|
-
let a = (((g(0)
|
|
55
|
+
let a = ((truthy(equalValue(g(0), "card")) && truthy(equalValue(v[5], null, true))) ? 0 : truthy(equalValue(g(0), "card")) ? 1 : truthy(equalValue(v[5], null, true)) ? 2 : 3);
|
|
55
56
|
let element;
|
|
56
57
|
if (a === 0) {
|
|
57
58
|
element = document.createElement("a");
|
|
58
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
59
|
-
if (value === null || value === undefined || value === false) continue;
|
|
60
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
61
|
-
}
|
|
62
59
|
element.setAttribute("component", "ui-button");
|
|
63
60
|
} else if (a === 1) {
|
|
64
61
|
element = document.createElement("button");
|
|
65
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
66
|
-
if (value === null || value === undefined || value === false) continue;
|
|
67
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
68
|
-
}
|
|
69
62
|
element.setAttribute("component", "ui-button");
|
|
70
63
|
} else if (a === 2) {
|
|
71
64
|
element = document.createElement("a");
|
|
72
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
73
|
-
if (value === null || value === undefined || value === false) continue;
|
|
74
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
75
|
-
}
|
|
76
65
|
element.setAttribute("component", "ui-button");
|
|
77
66
|
} else {
|
|
78
67
|
element = document.createElement("button");
|
|
79
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
80
|
-
if (value === null || value === undefined || value === false) continue;
|
|
81
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
82
|
-
}
|
|
83
68
|
element.setAttribute("component", "ui-button");
|
|
84
69
|
}
|
|
85
70
|
B = acceptProps(element, D, S.n, v, componentProps, Q[a], html);
|
|
@@ -99,9 +84,9 @@ export function createUiButton(options = {}, html) {
|
|
|
99
84
|
return r;
|
|
100
85
|
};
|
|
101
86
|
const p2 = (r, c, d) => {
|
|
102
|
-
if (r.f0 === undefined) { r.f0 = 1; const at =
|
|
103
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m3(d); at.before(r.b0.n); } }
|
|
104
|
-
else if (r.b0 !== undefined) p3(r.b0, c, d);
|
|
87
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a0, r.e0, "icon", J, false, undefined, d);
|
|
88
|
+
if (typeof at === "function") r.f0 = at(r, (d, at) => m3(d, undefined, r), p3); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m3(d); at.before(r.b0.n); } }
|
|
89
|
+
else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p3(r.b0, c, d);
|
|
105
90
|
};
|
|
106
91
|
const m3 = (d) => {
|
|
107
92
|
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
@@ -143,9 +128,9 @@ export function createUiButton(options = {}, html) {
|
|
|
143
128
|
return r;
|
|
144
129
|
};
|
|
145
130
|
const p8 = (r, c, d) => {
|
|
146
|
-
if (r.f0 === undefined) { r.f0 = 1; const at =
|
|
147
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
|
|
148
|
-
else if (r.b0 !== undefined) p9(r.b0, c, d);
|
|
131
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a0, r.e0, "icon", J, false, undefined, d);
|
|
132
|
+
if (typeof at === "function") r.f0 = at(r, (d, at) => m9(d, undefined, r), p9); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
|
|
133
|
+
else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p9(r.b0, c, d);
|
|
149
134
|
};
|
|
150
135
|
const m9 = (d) => {
|
|
151
136
|
const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
|
|
@@ -227,83 +212,71 @@ export function createUiButton(options = {}, html) {
|
|
|
227
212
|
const t3 = t0.nextSibling.nextSibling;
|
|
228
213
|
const t4 = t3.firstChild;
|
|
229
214
|
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, v9: undefined, v10: undefined, v11: 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 };
|
|
215
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, g6: NONCONFORMING, v7: undefined, v8: undefined, v9: undefined, g9: NONCONFORMING, v10: undefined, v11: undefined, g11: NONCONFORMING, v12: 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
216
|
r.z = [() => dispose(r.b1)];
|
|
232
217
|
p0(r, -1, d);
|
|
233
218
|
return r;
|
|
234
219
|
};
|
|
235
220
|
const p0 = (r, c, d) => {
|
|
236
|
-
if (c &
|
|
221
|
+
if (c & 1075191792) {
|
|
222
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
223
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
237
224
|
const x0 = g(0);
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
if (c & 1075053568) {
|
|
225
|
+
const s1 = toAttribute(x0, "data-appearance");
|
|
226
|
+
writeAttribute(r.n, "data-appearance", r.v1 = s1);
|
|
242
227
|
const x1 = g(1);
|
|
243
|
-
if (x1 !== NONCONFORMING)
|
|
244
|
-
|
|
245
|
-
|
|
228
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
229
|
+
if (r.g2 !== NONCONFORMING) {
|
|
230
|
+
const s2 = toAttribute(r.g2, "data-tone");
|
|
231
|
+
writeAttribute(r.n, "data-tone", r.v2 = s2);
|
|
246
232
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
233
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
|
|
234
|
+
if (x2 !== NONCONFORMING) r.g3 = x2;
|
|
235
|
+
if (r.g3 !== NONCONFORMING) {
|
|
236
|
+
const s3 = toAttribute(r.g3, "data-interaction-tone");
|
|
237
|
+
writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
|
|
253
238
|
}
|
|
254
|
-
}
|
|
255
|
-
if (c & 1074791616) {
|
|
256
239
|
const x3 = g(2);
|
|
257
|
-
if (x3 !== NONCONFORMING)
|
|
258
|
-
|
|
259
|
-
|
|
240
|
+
if (x3 !== NONCONFORMING) r.g4 = x3;
|
|
241
|
+
if (r.g4 !== NONCONFORMING) {
|
|
242
|
+
const s4 = toAttribute(r.g4, "data-interaction-appearance");
|
|
243
|
+
writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
|
|
260
244
|
}
|
|
261
|
-
}
|
|
262
|
-
if (c & 4096) {
|
|
263
245
|
const x4 = v[12];
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
if (c & 1073742640) {
|
|
246
|
+
const s5 = toAttribute(x4, "data-selected");
|
|
247
|
+
writeAttribute(r.n, "data-selected", r.v5 = s5);
|
|
268
248
|
const x5 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
269
|
-
if (x5 !== NONCONFORMING)
|
|
270
|
-
|
|
271
|
-
|
|
249
|
+
if (x5 !== NONCONFORMING) r.g6 = x5;
|
|
250
|
+
if (r.g6 !== NONCONFORMING) {
|
|
251
|
+
const s6 = toAttribute(r.g6, "href");
|
|
252
|
+
writeUrlAttribute(r.n, "href", r.v6 = s6);
|
|
272
253
|
}
|
|
273
|
-
}
|
|
274
|
-
if (c & 131072) {
|
|
275
254
|
const x6 = v[17];
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
if (c & 2048) {
|
|
255
|
+
const s7 = toAttribute(x6, "target");
|
|
256
|
+
writeAttribute(r.n, "target", r.v7 = s7);
|
|
280
257
|
const x7 = v[11];
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
if (c & 1073742608) {
|
|
258
|
+
const s8 = toAttribute(x7, "rel");
|
|
259
|
+
writeAttribute(r.n, "rel", r.v8 = s8);
|
|
285
260
|
const x8 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
286
|
-
if (x8 !== NONCONFORMING)
|
|
287
|
-
|
|
288
|
-
|
|
261
|
+
if (x8 !== NONCONFORMING) r.g9 = x8;
|
|
262
|
+
if (r.g9 !== NONCONFORMING) {
|
|
263
|
+
const s9 = toAttribute(r.g9, "aria-disabled");
|
|
264
|
+
writeAttribute(r.n, "aria-disabled", r.v9 = s9);
|
|
289
265
|
}
|
|
290
|
-
}
|
|
291
|
-
if (c & 768) {
|
|
292
266
|
const x9 = (truthy(v[8]) || truthy(v[9]));
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
if (c & 1073742608) {
|
|
267
|
+
const s10 = toAttribute(x9, "aria-busy");
|
|
268
|
+
writeAttribute(r.n, "aria-busy", r.v10 = s10);
|
|
297
269
|
const x10 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[8]) || truthy(v[9])) && !truthy(v[4]))]));
|
|
298
|
-
if (x10 !== NONCONFORMING)
|
|
299
|
-
|
|
300
|
-
|
|
270
|
+
if (x10 !== NONCONFORMING) r.g11 = x10;
|
|
271
|
+
if (r.g11 !== NONCONFORMING) {
|
|
272
|
+
const s11 = toAttribute(r.g11, "tabindex");
|
|
273
|
+
writeAttribute(r.n, "tabindex", r.v11 = s11);
|
|
301
274
|
}
|
|
302
275
|
}
|
|
303
276
|
if (c & 123656) {
|
|
304
277
|
const x11 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
305
|
-
const
|
|
306
|
-
if (
|
|
278
|
+
const s12 = x11;
|
|
279
|
+
if (s12 !== r.v12) writeAttribute(r.n, "data-ui-button-state", (r.v12 = s12) === "" ? null : s12);
|
|
307
280
|
}
|
|
308
281
|
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
309
282
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -313,12 +286,12 @@ export function createUiButton(options = {}, html) {
|
|
|
313
286
|
if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
314
287
|
else { r.b1 = m2(d); r.e1.before(r.b1.n); }
|
|
315
288
|
} else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
316
|
-
if (r.f2 === undefined) { r.f2 = 1; const at =
|
|
317
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m4(d); at.before(r.b2.n); } }
|
|
318
|
-
else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
319
|
-
if (r.f3 === undefined) { r.f3 = 1; const at =
|
|
320
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m5(d); at.before(r.b3.n); } }
|
|
321
|
-
else if (r.b3 !== undefined) p5(r.b3, c, d);
|
|
289
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "", J, false, undefined, d);
|
|
290
|
+
if (typeof at === "function") r.f2 = at(r, (d, at) => m4(d, undefined, r), p4); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m4(d); at.before(r.b2.n); } }
|
|
291
|
+
else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
292
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = initializeSlot(r.a4, r.e3, "action", J, true, undefined, d, r.z ??= []);
|
|
293
|
+
if (typeof at === "function") r.f3 = at(r, (d, at) => m5(d, undefined, r), p5); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m5(d); at.before(r.b3.n); } }
|
|
294
|
+
else if (typeof r.f3 === "function") r.f3(c, d); else if (r.b3 !== undefined) p5(r.b3, c, d);
|
|
322
295
|
};
|
|
323
296
|
const m6 = (n, d) => {
|
|
324
297
|
n.append((P6 ??= buildTemplate(T6)).cloneNode(true));
|
|
@@ -328,69 +301,59 @@ export function createUiButton(options = {}, html) {
|
|
|
328
301
|
const t3 = t0.nextSibling.nextSibling;
|
|
329
302
|
const t4 = t3.firstChild;
|
|
330
303
|
const t5 = t3.nextSibling.nextSibling.firstChild;
|
|
331
|
-
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 };
|
|
304
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, v7: undefined, v8: undefined, g8: NONCONFORMING, v9: undefined, v10: 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 };
|
|
332
305
|
r.z = [() => dispose(r.b1)];
|
|
333
306
|
p6(r, -1, d);
|
|
334
307
|
return r;
|
|
335
308
|
};
|
|
336
309
|
const p6 = (r, c, d) => {
|
|
337
|
-
if (c &
|
|
310
|
+
if (c & 1075582928) {
|
|
311
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
312
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
338
313
|
const x0 = g(0);
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
if (c & 1075053568) {
|
|
314
|
+
const s1 = toAttribute(x0, "data-appearance");
|
|
315
|
+
writeAttribute(r.n, "data-appearance", r.v1 = s1);
|
|
343
316
|
const x1 = g(1);
|
|
344
|
-
if (x1 !== NONCONFORMING)
|
|
345
|
-
|
|
346
|
-
|
|
317
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
318
|
+
if (r.g2 !== NONCONFORMING) {
|
|
319
|
+
const s2 = toAttribute(r.g2, "data-tone");
|
|
320
|
+
writeAttribute(r.n, "data-tone", r.v2 = s2);
|
|
347
321
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
322
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
|
|
323
|
+
if (x2 !== NONCONFORMING) r.g3 = x2;
|
|
324
|
+
if (r.g3 !== NONCONFORMING) {
|
|
325
|
+
const s3 = toAttribute(r.g3, "data-interaction-tone");
|
|
326
|
+
writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
|
|
354
327
|
}
|
|
355
|
-
}
|
|
356
|
-
if (c & 1074791616) {
|
|
357
328
|
const x3 = g(2);
|
|
358
|
-
if (x3 !== NONCONFORMING)
|
|
359
|
-
|
|
360
|
-
|
|
329
|
+
if (x3 !== NONCONFORMING) r.g4 = x3;
|
|
330
|
+
if (r.g4 !== NONCONFORMING) {
|
|
331
|
+
const s4 = toAttribute(r.g4, "data-interaction-appearance");
|
|
332
|
+
writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
|
|
361
333
|
}
|
|
362
|
-
}
|
|
363
|
-
if (c & 4096) {
|
|
364
334
|
const x4 = v[12];
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
if (c & 1074266112) {
|
|
335
|
+
const s5 = toAttribute(x4, "data-selected");
|
|
336
|
+
writeAttribute(r.n, "data-selected", r.v5 = s5);
|
|
369
337
|
const x5 = v[19];
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
}
|
|
373
|
-
if (c & 16) {
|
|
338
|
+
const s6 = toAttribute(x5, "type");
|
|
339
|
+
writeAttribute(r.n, "type", r.v6 = s6);
|
|
374
340
|
const x6 = v[4];
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
if (c & 1073742592) {
|
|
341
|
+
const s7 = toAttribute(x6, "disabled");
|
|
342
|
+
writeAttribute(r.n, "disabled", r.v7 = s7);
|
|
379
343
|
const x7 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[8]) || truthy(v[9]))]));
|
|
380
|
-
if (x7 !== NONCONFORMING)
|
|
381
|
-
|
|
382
|
-
|
|
344
|
+
if (x7 !== NONCONFORMING) r.g8 = x7;
|
|
345
|
+
if (r.g8 !== NONCONFORMING) {
|
|
346
|
+
const s8 = toAttribute(r.g8, "aria-disabled");
|
|
347
|
+
writeAttribute(r.n, "aria-disabled", r.v8 = s8);
|
|
383
348
|
}
|
|
384
|
-
}
|
|
385
|
-
if (c & 768) {
|
|
386
349
|
const x8 = (truthy(v[8]) || truthy(v[9]));
|
|
387
|
-
const
|
|
388
|
-
|
|
350
|
+
const s9 = toAttribute(x8, "aria-busy");
|
|
351
|
+
writeAttribute(r.n, "aria-busy", r.v9 = s9);
|
|
389
352
|
}
|
|
390
353
|
if (c & 123656) {
|
|
391
354
|
const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
392
|
-
const
|
|
393
|
-
if (
|
|
355
|
+
const s10 = x9;
|
|
356
|
+
if (s10 !== r.v10) writeAttribute(r.n, "data-ui-button-state", (r.v10 = s10) === "" ? null : s10);
|
|
394
357
|
}
|
|
395
358
|
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
396
359
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
@@ -400,12 +363,12 @@ export function createUiButton(options = {}, html) {
|
|
|
400
363
|
if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
401
364
|
else { r.b1 = m8(d); r.e1.before(r.b1.n); }
|
|
402
365
|
} else if (r.b1 !== undefined) p8(r.b1, c, d);
|
|
403
|
-
if (r.f2 === undefined) { r.f2 = 1; const at =
|
|
404
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m10(d); at.before(r.b2.n); } }
|
|
405
|
-
else if (r.b2 !== undefined) p10(r.b2, c, d);
|
|
406
|
-
if (r.f3 === undefined) { r.f3 = 1; const at =
|
|
407
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m11(d); at.before(r.b3.n); } }
|
|
408
|
-
else if (r.b3 !== undefined) p11(r.b3, c, d);
|
|
366
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "", J, false, undefined, d);
|
|
367
|
+
if (typeof at === "function") r.f2 = at(r, (d, at) => m10(d, undefined, r), p10); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m10(d); at.before(r.b2.n); } }
|
|
368
|
+
else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p10(r.b2, c, d);
|
|
369
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = initializeSlot(r.a4, r.e3, "action", J, true, undefined, d, r.z ??= []);
|
|
370
|
+
if (typeof at === "function") r.f3 = at(r, (d, at) => m11(d, undefined, r), p11); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m11(d); at.before(r.b3.n); } }
|
|
371
|
+
else if (typeof r.f3 === "function") r.f3(c, d); else if (r.b3 !== undefined) p11(r.b3, c, d);
|
|
409
372
|
};
|
|
410
373
|
const m12 = (n, d) => {
|
|
411
374
|
n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
|
|
@@ -413,93 +376,81 @@ export function createUiButton(options = {}, html) {
|
|
|
413
376
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
414
377
|
const t2 = t1.firstChild;
|
|
415
378
|
const t3 = t1.nextSibling.nextSibling.firstChild;
|
|
416
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, v10: undefined, v11: 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
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, g6: NONCONFORMING, v7: undefined, v8: undefined, v9: undefined, g9: NONCONFORMING, v10: undefined, v11: undefined, g11: NONCONFORMING, v12: 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 };
|
|
417
380
|
p12(r, -1, d);
|
|
418
381
|
return r;
|
|
419
382
|
};
|
|
420
383
|
const p12 = (r, c, d) => {
|
|
421
|
-
if (c &
|
|
384
|
+
if (c & 1075191792) {
|
|
385
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
386
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
422
387
|
const x0 = g(0);
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
}
|
|
426
|
-
if (c & 1075053568) {
|
|
388
|
+
const s1 = toAttribute(x0, "data-appearance");
|
|
389
|
+
writeAttribute(r.n, "data-appearance", r.v1 = s1);
|
|
427
390
|
const x1 = g(1);
|
|
428
|
-
if (x1 !== NONCONFORMING)
|
|
429
|
-
|
|
430
|
-
|
|
391
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
392
|
+
if (r.g2 !== NONCONFORMING) {
|
|
393
|
+
const s2 = toAttribute(r.g2, "data-tone");
|
|
394
|
+
writeAttribute(r.n, "data-tone", r.v2 = s2);
|
|
431
395
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
396
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
|
|
397
|
+
if (x2 !== NONCONFORMING) r.g3 = x2;
|
|
398
|
+
if (r.g3 !== NONCONFORMING) {
|
|
399
|
+
const s3 = toAttribute(r.g3, "data-interaction-tone");
|
|
400
|
+
writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
|
|
438
401
|
}
|
|
439
|
-
}
|
|
440
|
-
if (c & 1074791616) {
|
|
441
402
|
const x3 = g(2);
|
|
442
|
-
if (x3 !== NONCONFORMING)
|
|
443
|
-
|
|
444
|
-
|
|
403
|
+
if (x3 !== NONCONFORMING) r.g4 = x3;
|
|
404
|
+
if (r.g4 !== NONCONFORMING) {
|
|
405
|
+
const s4 = toAttribute(r.g4, "data-interaction-appearance");
|
|
406
|
+
writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
|
|
445
407
|
}
|
|
446
|
-
}
|
|
447
|
-
if (c & 4096) {
|
|
448
408
|
const x4 = v[12];
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
if (c & 1073742640) {
|
|
409
|
+
const s5 = toAttribute(x4, "data-selected");
|
|
410
|
+
writeAttribute(r.n, "data-selected", r.v5 = s5);
|
|
453
411
|
const x5 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
454
|
-
if (x5 !== NONCONFORMING)
|
|
455
|
-
|
|
456
|
-
|
|
412
|
+
if (x5 !== NONCONFORMING) r.g6 = x5;
|
|
413
|
+
if (r.g6 !== NONCONFORMING) {
|
|
414
|
+
const s6 = toAttribute(r.g6, "href");
|
|
415
|
+
writeUrlAttribute(r.n, "href", r.v6 = s6);
|
|
457
416
|
}
|
|
458
|
-
}
|
|
459
|
-
if (c & 131072) {
|
|
460
417
|
const x6 = v[17];
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
}
|
|
464
|
-
if (c & 2048) {
|
|
418
|
+
const s7 = toAttribute(x6, "target");
|
|
419
|
+
writeAttribute(r.n, "target", r.v7 = s7);
|
|
465
420
|
const x7 = v[11];
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
if (c & 1073742608) {
|
|
421
|
+
const s8 = toAttribute(x7, "rel");
|
|
422
|
+
writeAttribute(r.n, "rel", r.v8 = s8);
|
|
470
423
|
const x8 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
471
|
-
if (x8 !== NONCONFORMING)
|
|
472
|
-
|
|
473
|
-
|
|
424
|
+
if (x8 !== NONCONFORMING) r.g9 = x8;
|
|
425
|
+
if (r.g9 !== NONCONFORMING) {
|
|
426
|
+
const s9 = toAttribute(r.g9, "aria-disabled");
|
|
427
|
+
writeAttribute(r.n, "aria-disabled", r.v9 = s9);
|
|
474
428
|
}
|
|
475
|
-
}
|
|
476
|
-
if (c & 768) {
|
|
477
429
|
const x9 = (truthy(v[8]) || truthy(v[9]));
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
if (c & 1073742608) {
|
|
430
|
+
const s10 = toAttribute(x9, "aria-busy");
|
|
431
|
+
writeAttribute(r.n, "aria-busy", r.v10 = s10);
|
|
482
432
|
const x10 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[8]) || truthy(v[9])) && !truthy(v[4]))]));
|
|
483
|
-
if (x10 !== NONCONFORMING)
|
|
484
|
-
|
|
485
|
-
|
|
433
|
+
if (x10 !== NONCONFORMING) r.g11 = x10;
|
|
434
|
+
if (r.g11 !== NONCONFORMING) {
|
|
435
|
+
const s11 = toAttribute(r.g11, "tabindex");
|
|
436
|
+
writeAttribute(r.n, "tabindex", r.v11 = s11);
|
|
486
437
|
}
|
|
487
438
|
}
|
|
488
439
|
if (c & 123656) {
|
|
489
440
|
const x11 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
441
|
+
const s12 = x11;
|
|
442
|
+
if (s12 !== r.v12) writeAttribute(r.n, "data-ui-button-state", (r.v12 = s12) === "" ? null : s12);
|
|
492
443
|
}
|
|
493
444
|
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
494
445
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
495
446
|
else { r.b0 = m13(d); r.e0.before(r.b0.n); }
|
|
496
447
|
} else if (r.b0 !== undefined) p13(r.b0, c, d);
|
|
497
|
-
if (r.f1 === undefined) { r.f1 = 1; const at =
|
|
498
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
|
|
499
|
-
else if (r.b1 !== undefined) p14(r.b1, c, d);
|
|
500
|
-
if (r.f2 === undefined) { r.f2 = 1; const at =
|
|
501
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m15(d); at.before(r.b2.n); } }
|
|
502
|
-
else if (r.b2 !== undefined) p15(r.b2, c, d);
|
|
448
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = initializeSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
449
|
+
if (typeof at === "function") r.f1 = at(r, (d, at) => m14(d, undefined, r), p14); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
|
|
450
|
+
else if (typeof r.f1 === "function") r.f1(c, d); else if (r.b1 !== undefined) p14(r.b1, c, d);
|
|
451
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "badge", J, false, undefined, d);
|
|
452
|
+
if (typeof at === "function") r.f2 = at(r, (d, at) => m15(d, undefined, r), p15); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m15(d); at.before(r.b2.n); } }
|
|
453
|
+
else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p15(r.b2, c, d);
|
|
503
454
|
};
|
|
504
455
|
const m16 = (n, d) => {
|
|
505
456
|
n.append((P16 ??= buildTemplate(T16)).cloneNode(true));
|
|
@@ -507,79 +458,69 @@ export function createUiButton(options = {}, html) {
|
|
|
507
458
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
508
459
|
const t2 = t1.firstChild;
|
|
509
460
|
const t3 = t1.nextSibling.nextSibling.firstChild;
|
|
510
|
-
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 };
|
|
461
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, v7: undefined, v8: undefined, g8: NONCONFORMING, v9: undefined, v10: 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 };
|
|
511
462
|
p16(r, -1, d);
|
|
512
463
|
return r;
|
|
513
464
|
};
|
|
514
465
|
const p16 = (r, c, d) => {
|
|
515
|
-
if (c &
|
|
466
|
+
if (c & 1075582928) {
|
|
467
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
468
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
516
469
|
const x0 = g(0);
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
}
|
|
520
|
-
if (c & 1075053568) {
|
|
470
|
+
const s1 = toAttribute(x0, "data-appearance");
|
|
471
|
+
writeAttribute(r.n, "data-appearance", r.v1 = s1);
|
|
521
472
|
const x1 = g(1);
|
|
522
|
-
if (x1 !== NONCONFORMING)
|
|
523
|
-
|
|
524
|
-
|
|
473
|
+
if (x1 !== NONCONFORMING) r.g2 = x1;
|
|
474
|
+
if (r.g2 !== NONCONFORMING) {
|
|
475
|
+
const s2 = toAttribute(r.g2, "data-tone");
|
|
476
|
+
writeAttribute(r.n, "data-tone", r.v2 = s2);
|
|
525
477
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
478
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
|
|
479
|
+
if (x2 !== NONCONFORMING) r.g3 = x2;
|
|
480
|
+
if (r.g3 !== NONCONFORMING) {
|
|
481
|
+
const s3 = toAttribute(r.g3, "data-interaction-tone");
|
|
482
|
+
writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
|
|
532
483
|
}
|
|
533
|
-
}
|
|
534
|
-
if (c & 1074791616) {
|
|
535
484
|
const x3 = g(2);
|
|
536
|
-
if (x3 !== NONCONFORMING)
|
|
537
|
-
|
|
538
|
-
|
|
485
|
+
if (x3 !== NONCONFORMING) r.g4 = x3;
|
|
486
|
+
if (r.g4 !== NONCONFORMING) {
|
|
487
|
+
const s4 = toAttribute(r.g4, "data-interaction-appearance");
|
|
488
|
+
writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
|
|
539
489
|
}
|
|
540
|
-
}
|
|
541
|
-
if (c & 4096) {
|
|
542
490
|
const x4 = v[12];
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
if (c & 1074266112) {
|
|
491
|
+
const s5 = toAttribute(x4, "data-selected");
|
|
492
|
+
writeAttribute(r.n, "data-selected", r.v5 = s5);
|
|
547
493
|
const x5 = v[19];
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
if (c & 16) {
|
|
494
|
+
const s6 = toAttribute(x5, "type");
|
|
495
|
+
writeAttribute(r.n, "type", r.v6 = s6);
|
|
552
496
|
const x6 = v[4];
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
if (c & 1073742592) {
|
|
497
|
+
const s7 = toAttribute(x6, "disabled");
|
|
498
|
+
writeAttribute(r.n, "disabled", r.v7 = s7);
|
|
557
499
|
const x7 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[8]) || truthy(v[9]))]));
|
|
558
|
-
if (x7 !== NONCONFORMING)
|
|
559
|
-
|
|
560
|
-
|
|
500
|
+
if (x7 !== NONCONFORMING) r.g8 = x7;
|
|
501
|
+
if (r.g8 !== NONCONFORMING) {
|
|
502
|
+
const s8 = toAttribute(r.g8, "aria-disabled");
|
|
503
|
+
writeAttribute(r.n, "aria-disabled", r.v8 = s8);
|
|
561
504
|
}
|
|
562
|
-
}
|
|
563
|
-
if (c & 768) {
|
|
564
505
|
const x8 = (truthy(v[8]) || truthy(v[9]));
|
|
565
|
-
const
|
|
566
|
-
|
|
506
|
+
const s9 = toAttribute(x8, "aria-busy");
|
|
507
|
+
writeAttribute(r.n, "aria-busy", r.v9 = s9);
|
|
567
508
|
}
|
|
568
509
|
if (c & 123656) {
|
|
569
510
|
const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
511
|
+
const s10 = x9;
|
|
512
|
+
if (s10 !== r.v10) writeAttribute(r.n, "data-ui-button-state", (r.v10 = s10) === "" ? null : s10);
|
|
572
513
|
}
|
|
573
514
|
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
574
515
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
575
516
|
else { r.b0 = m17(d); r.e0.before(r.b0.n); }
|
|
576
517
|
} else if (r.b0 !== undefined) p17(r.b0, c, d);
|
|
577
|
-
if (r.f1 === undefined) { r.f1 = 1; const at =
|
|
578
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m18(d); at.before(r.b1.n); } }
|
|
579
|
-
else if (r.b1 !== undefined) p18(r.b1, c, d);
|
|
580
|
-
if (r.f2 === undefined) { r.f2 = 1; const at =
|
|
581
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m19(d); at.before(r.b2.n); } }
|
|
582
|
-
else if (r.b2 !== undefined) p19(r.b2, c, d);
|
|
518
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = initializeSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
519
|
+
if (typeof at === "function") r.f1 = at(r, (d, at) => m18(d, undefined, r), p18); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m18(d); at.before(r.b1.n); } }
|
|
520
|
+
else if (typeof r.f1 === "function") r.f1(c, d); else if (r.b1 !== undefined) p18(r.b1, c, d);
|
|
521
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "badge", J, false, undefined, d);
|
|
522
|
+
if (typeof at === "function") r.f2 = at(r, (d, at) => m19(d, undefined, r), p19); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m19(d); at.before(r.b2.n); } }
|
|
523
|
+
else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p19(r.b2, c, d);
|
|
583
524
|
};
|
|
584
525
|
const M = [m0, m6, m12, m16], N = [p0, p6, p12, p16];
|
|
585
526
|
let R;
|
|
@@ -587,7 +528,7 @@ export function createUiButton(options = {}, html) {
|
|
|
587
528
|
if (R === null) return;
|
|
588
529
|
if (R === undefined) { R = M[a](element, d); return; }
|
|
589
530
|
if (c & 1074791456) {
|
|
590
|
-
const t = (((g(0)
|
|
531
|
+
const t = ((truthy(equalValue(g(0), "card")) && truthy(equalValue(v[5], null, true))) ? 0 : truthy(equalValue(g(0), "card")) ? 1 : truthy(equalValue(v[5], null, true)) ? 2 : 3);
|
|
591
532
|
if (t !== a) {
|
|
592
533
|
dispose(R);
|
|
593
534
|
for (const key in I.r) delete I.r[key];
|
|
@@ -604,6 +545,8 @@ export function createUiButton(options = {}, html) {
|
|
|
604
545
|
};
|
|
605
546
|
const I = { B };
|
|
606
547
|
const J = project(I, children, slots);
|
|
548
|
+
sharePlainSlots(I, J, ["icon","","action","badge"]);
|
|
549
|
+
I.F = { values: attributes, draw: () => p(-1) };
|
|
607
550
|
attachGeneratedController(element, S, v, p, undefined, X, I);
|
|
608
551
|
manageProps(I);
|
|
609
552
|
return element;
|