@threadlabs/looma 0.25.6 → 0.26.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/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-breadcrumbs/ui-breadcrumbs.html +1 -1
- package/components/ui-button/ui-button.html +27 -27
- package/components/ui-callout/ui-callout.html +5 -5
- package/components/ui-card/ui-card.html +3 -3
- package/components/ui-checkbox/ui-checkbox.html +8 -8
- package/components/ui-combobox/ui-combobox.html +59 -59
- package/components/ui-dialog/ui-dialog.html +2 -2
- package/components/ui-disclosure/ui-disclosure.html +3 -3
- package/components/ui-editable/ui-editable.html +8 -8
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +11 -11
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +10 -10
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +7 -7
- package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +3 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +16 -16
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +31 -31
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +33 -33
- package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
- package/components/ui-grid/ui-grid.html +1 -1
- package/components/ui-icon/ui-icon.html +12 -12
- package/components/ui-icon-button/ui-icon-button.html +6 -6
- package/components/ui-image/ui-image.html +2 -2
- package/components/ui-input/ui-input.html +1 -1
- package/components/ui-list/ui-list.html +1 -1
- package/components/ui-list-item/ui-list-item.html +1 -1
- package/components/ui-listbox/ui-listbox.html +24 -24
- package/components/ui-menu-group/ui-menu-group.html +2 -2
- package/components/ui-menu-item/ui-menu-item.html +9 -9
- package/components/ui-meter/ui-meter.html +8 -8
- package/components/ui-nav-item/ui-nav-item.html +6 -6
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-search-result-row/ui-search-result-row.html +1 -1
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-select/ui-select.html +1 -1
- package/components/ui-separator/ui-separator.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +2 -2
- package/components/ui-spinner/ui-spinner.html +4 -4
- package/components/ui-stack/ui-stack.html +1 -1
- package/components/ui-status-message/ui-status-message.html +3 -3
- package/components/ui-switch/ui-switch.html +5 -5
- package/components/ui-tabs/ui-tabs.html +8 -8
- package/components/ui-text/ui-text.html +10 -10
- package/components/ui-textarea/ui-textarea.html +8 -8
- package/components/ui-toast/ui-toast.html +1 -1
- package/components/ui-toast-region/ui-toast-region.html +8 -8
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +32 -18
- package/dist/index.js +1 -1
- 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-callout.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-combobox.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-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-insert-table-grid.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-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-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-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.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-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 +14 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +70 -52
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +36 -17
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +72 -37
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +57 -26
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +49 -39
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +41 -26
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +35 -24
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +444 -156
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +135 -111
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +147 -47
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +100 -58
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +35 -29
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +879 -283
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +35 -19
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +34 -23
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +35 -15
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +37 -24
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +35 -21
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +83 -42
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +113 -72
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +125 -58
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +85 -30
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +193 -75
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +81 -44
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +123 -78
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +40 -34
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +98 -45
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +35 -15
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +143 -60
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +212 -109
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +330 -113
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +37 -20
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +44 -22
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +89 -65
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +39 -19
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +186 -27
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +82 -32
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +76 -69
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +51 -27
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +77 -56
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +91 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +81 -74
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +204 -81
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +36 -20
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +60 -24
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +177 -77
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +77 -14
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +199 -123
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +91 -69
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +36 -20
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +82 -50
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +58 -30
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +35 -21
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +37 -20
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +98 -74
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +81 -64
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +71 -53
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +50 -26
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +23 -22
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +49 -37
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +43 -26
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +39 -19
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +70 -41
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +82 -51
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +36 -17
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +35 -17
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +97 -42
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +343 -117
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +56 -33
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +61 -40
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +85 -35
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +54 -31
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +70 -52
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +35 -17
- package/vanilla/UiTreeItem.d.ts +2 -1
- package/vanilla/UiTreeItem.js +219 -181
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +7 -7
- package/vue/UiAvatarGroup.vue +3 -3
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +1 -1
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +1 -1
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.vue +2 -2
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.vue +25 -25
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +2 -2
- package/vue/UiDisclosure.vue +6 -6
- package/vue/UiEditable.vue +3 -3
- package/vue/UiEditorInsertTableGrid.vue +4 -4
- package/vue/UiEditorMentionMenu.vue +2 -2
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +2 -2
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorSurface.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +11 -11
- package/vue/UiEditorTableToolbar.vue +2 -2
- package/vue/UiEditorToolbar.vue +1 -1
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiImage.vue +1 -1
- package/vue/UiInput.vue +1 -1
- package/vue/UiInputGroup.vue +1 -1
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.vue +4 -4
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +2 -2
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.vue +1 -1
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +2 -2
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +1 -1
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +3 -3
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwitch.vue +2 -2
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +1 -1
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToast.vue +1 -1
- package/vue/UiToastRegion.vue +1 -1
- package/vue/UiTooltip.vue +2 -2
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.d.ts +9 -0
- package/vue/UiTreeItem.vue +41 -6
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +6 -6
- package/vue/chunks/UiAvatarGroup.js +3 -3
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +2 -2
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +22 -22
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +2 -2
- package/vue/chunks/UiDisclosure.js +6 -6
- package/vue/chunks/UiEditable.js +3 -3
- package/vue/chunks/UiEditorInsertTableGrid.js +4 -4
- package/vue/chunks/UiEditorMentionMenu.js +2 -2
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +2 -2
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +11 -11
- package/vue/chunks/UiEditorTableToolbar.js +2 -2
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiImage.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +4 -4
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +2 -2
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +2 -2
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +2 -2
- package/vue/chunks/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwitch.js +2 -2
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +2 -2
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +28 -5
- package/vue/chunks/control.js +41 -13
- package/vue/chunks/host.js +19 -18
- package/vue/components.css +1398 -1383
- package/vue/host.ts +22 -20
package/vanilla/UiNavItem.js
CHANGED
|
@@ -1,85 +1,36 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import {
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, armElement, replaceRoot, checkFormat, checkString } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-nav-item.css";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const T0 = ["",[],["span",["class","indicator","aria-hidden","true"]],["span",["class","leading"],4],["span",["class","content"],["span",["class","label"],4],["span",["class","description"],4]],["span",["class","trailing"],4]];
|
|
6
|
+
const T1 = ["",[]];
|
|
7
|
+
const T2 = ["",[]];
|
|
8
|
+
const T3 = ["",[]];
|
|
9
|
+
const T4 = ["",[]];
|
|
10
|
+
const T5 = ["",[],["span",["class","indicator","aria-hidden","true"]],["span",["class","leading"],4],["span",["class","content"],["span",["class","label"],4],["span",["class","description"],4]],["span",["class","trailing"],4]];
|
|
11
|
+
const T6 = ["",[]];
|
|
12
|
+
const T7 = ["",[]];
|
|
13
|
+
const T8 = ["",[]];
|
|
14
|
+
const T9 = ["",[]];
|
|
15
|
+
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9;
|
|
16
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-nav-item" };
|
|
17
|
+
const A = [["a",{},[],"",[],["data-ui-nav-item-state","data-as","data-current","data-density","data-href","data-rel","data-target","data-variant","href","target","rel","aria-current"]],["button",{"type":"button"},[],"",[],["data-ui-nav-item-state","data-as","data-current","data-density","data-href","data-rel","data-target","data-variant","aria-current"]]];
|
|
18
|
+
const Q = [[],[]];
|
|
19
|
+
const D = { props: { "as": { "required":false,"values":["button","a"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "current": { "required":false,"values":["true","false","page","step","location"],"default":"false", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "density": { "required":false,"values":["comfortable","compact"],"default":"comfortable", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "variant": { "required":false,"values":["surface","line"],"default":"surface", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
|
|
6
20
|
|
|
7
|
-
export function createUiNavItem(options = {}) {
|
|
21
|
+
export function createUiNavItem(options = {}, html) {
|
|
8
22
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
9
|
-
const
|
|
10
|
-
|
|
23
|
+
const v = [null, null, null, null, null, null, null];
|
|
24
|
+
acceptProps(undefined, D, S.n, v, componentProps, [], html);
|
|
25
|
+
let a = ((v[0] === "a") ? 0 : 1);
|
|
11
26
|
let element;
|
|
12
|
-
if (
|
|
27
|
+
if (a === 0) {
|
|
13
28
|
element = document.createElement("a");
|
|
14
29
|
for (const [name, value] of Object.entries(attributes)) {
|
|
15
30
|
if (value === null || value === undefined || value === false) continue;
|
|
16
31
|
element.setAttribute(name, value === true ? "" : String(value));
|
|
17
32
|
}
|
|
18
|
-
const value0 = componentProps["href"] === undefined ? null : componentProps["href"];
|
|
19
|
-
if (value0 === null || value0 === undefined) element.removeAttribute("href");
|
|
20
|
-
else element.setAttribute("href", String(value0));
|
|
21
|
-
const value1 = componentProps["target"] === undefined ? null : componentProps["target"];
|
|
22
|
-
if (value1 === null || value1 === undefined) element.removeAttribute("target");
|
|
23
|
-
else element.setAttribute("target", String(value1));
|
|
24
|
-
const value2 = componentProps["rel"] === undefined ? null : componentProps["rel"];
|
|
25
|
-
if (value2 === null || value2 === undefined) element.removeAttribute("rel");
|
|
26
|
-
else element.setAttribute("rel", String(value2));
|
|
27
33
|
element.setAttribute("data-component", "ui-nav-item");
|
|
28
|
-
const element0 = document.createElement("span");
|
|
29
|
-
element0.setAttribute("class", "indicator");
|
|
30
|
-
element0.setAttribute("aria-hidden", "true");
|
|
31
|
-
element.append(element0);
|
|
32
|
-
const element1 = document.createElement("span");
|
|
33
|
-
element1.setAttribute("class", "leading");
|
|
34
|
-
if (slots["leading"] ?? [].length > 0) {
|
|
35
|
-
for (const child of slots["leading"] ?? []) {
|
|
36
|
-
const node = typeof child === "string" ? document.createTextNode(child) : child;
|
|
37
|
-
if (node.nodeType === 1) node.setAttribute("data-slotted", "");
|
|
38
|
-
projected.push([node, "leading"]);
|
|
39
|
-
element1.append(node);
|
|
40
|
-
}
|
|
41
|
-
} else {
|
|
42
|
-
}
|
|
43
|
-
element.append(element1);
|
|
44
|
-
const element2 = document.createElement("span");
|
|
45
|
-
element2.setAttribute("class", "content");
|
|
46
|
-
const element3 = document.createElement("span");
|
|
47
|
-
element3.setAttribute("class", "label");
|
|
48
|
-
if (children.length > 0) {
|
|
49
|
-
for (const child of children) {
|
|
50
|
-
const node = typeof child === "string" ? document.createTextNode(child) : child;
|
|
51
|
-
if (node.nodeType === 1) node.setAttribute("data-slotted", "");
|
|
52
|
-
projected.push([node, ""]);
|
|
53
|
-
element3.append(node);
|
|
54
|
-
}
|
|
55
|
-
} else {
|
|
56
|
-
}
|
|
57
|
-
element2.append(element3);
|
|
58
|
-
const element4 = document.createElement("span");
|
|
59
|
-
element4.setAttribute("class", "description");
|
|
60
|
-
if (slots["description"] ?? [].length > 0) {
|
|
61
|
-
for (const child of slots["description"] ?? []) {
|
|
62
|
-
const node = typeof child === "string" ? document.createTextNode(child) : child;
|
|
63
|
-
if (node.nodeType === 1) node.setAttribute("data-slotted", "");
|
|
64
|
-
projected.push([node, "description"]);
|
|
65
|
-
element4.append(node);
|
|
66
|
-
}
|
|
67
|
-
} else {
|
|
68
|
-
}
|
|
69
|
-
element2.append(element4);
|
|
70
|
-
element.append(element2);
|
|
71
|
-
const element5 = document.createElement("span");
|
|
72
|
-
element5.setAttribute("class", "trailing");
|
|
73
|
-
if (slots["trailing"] ?? [].length > 0) {
|
|
74
|
-
for (const child of slots["trailing"] ?? []) {
|
|
75
|
-
const node = typeof child === "string" ? document.createTextNode(child) : child;
|
|
76
|
-
if (node.nodeType === 1) node.setAttribute("data-slotted", "");
|
|
77
|
-
projected.push([node, "trailing"]);
|
|
78
|
-
element5.append(node);
|
|
79
|
-
}
|
|
80
|
-
} else {
|
|
81
|
-
}
|
|
82
|
-
element.append(element5);
|
|
83
34
|
} else {
|
|
84
35
|
element = document.createElement("button");
|
|
85
36
|
for (const [name, value] of Object.entries(attributes)) {
|
|
@@ -88,64 +39,189 @@ export function createUiNavItem(options = {}) {
|
|
|
88
39
|
}
|
|
89
40
|
if (!element.hasAttribute("type")) element.setAttribute("type", "button");
|
|
90
41
|
element.setAttribute("data-component", "ui-nav-item");
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
42
|
+
}
|
|
43
|
+
const B = acceptProps(element, D, S.n, v, componentProps, Q[a], html);
|
|
44
|
+
const m1 = (d) => {
|
|
45
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
46
|
+
const r = { n };
|
|
47
|
+
p1(r, -1, d);
|
|
48
|
+
return r;
|
|
49
|
+
};
|
|
50
|
+
const p1 = (r, c, d) => {
|
|
51
|
+
};
|
|
52
|
+
const m2 = (d) => {
|
|
53
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
54
|
+
const r = { n };
|
|
55
|
+
p2(r, -1, d);
|
|
56
|
+
return r;
|
|
57
|
+
};
|
|
58
|
+
const p2 = (r, c, d) => {
|
|
59
|
+
};
|
|
60
|
+
const m3 = (d) => {
|
|
61
|
+
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
62
|
+
const r = { n };
|
|
63
|
+
p3(r, -1, d);
|
|
64
|
+
return r;
|
|
65
|
+
};
|
|
66
|
+
const p3 = (r, c, d) => {
|
|
67
|
+
};
|
|
68
|
+
const m4 = (d) => {
|
|
69
|
+
const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
|
|
70
|
+
const r = { n };
|
|
71
|
+
p4(r, -1, d);
|
|
72
|
+
return r;
|
|
73
|
+
};
|
|
74
|
+
const p4 = (r, c, d) => {
|
|
75
|
+
};
|
|
76
|
+
const m6 = (d) => {
|
|
77
|
+
const n = (P6 ??= buildTemplate(T6)).cloneNode(true);
|
|
78
|
+
const r = { n };
|
|
79
|
+
p6(r, -1, d);
|
|
80
|
+
return r;
|
|
81
|
+
};
|
|
82
|
+
const p6 = (r, c, d) => {
|
|
83
|
+
};
|
|
84
|
+
const m7 = (d) => {
|
|
85
|
+
const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
|
|
86
|
+
const r = { n };
|
|
87
|
+
p7(r, -1, d);
|
|
88
|
+
return r;
|
|
89
|
+
};
|
|
90
|
+
const p7 = (r, c, d) => {
|
|
91
|
+
};
|
|
92
|
+
const m8 = (d) => {
|
|
93
|
+
const n = (P8 ??= buildTemplate(T8)).cloneNode(true);
|
|
94
|
+
const r = { n };
|
|
95
|
+
p8(r, -1, d);
|
|
96
|
+
return r;
|
|
97
|
+
};
|
|
98
|
+
const p8 = (r, c, d) => {
|
|
99
|
+
};
|
|
100
|
+
const m9 = (d) => {
|
|
101
|
+
const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
|
|
102
|
+
const r = { n };
|
|
103
|
+
p9(r, -1, d);
|
|
104
|
+
return r;
|
|
105
|
+
};
|
|
106
|
+
const p9 = (r, c, d) => {
|
|
107
|
+
};
|
|
108
|
+
const m0 = (n, d) => {
|
|
109
|
+
n.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
110
|
+
const t0 = n.firstChild.nextSibling;
|
|
111
|
+
const t1 = t0.firstChild;
|
|
112
|
+
const t2 = t0.nextSibling;
|
|
113
|
+
const t3 = t2.firstChild;
|
|
114
|
+
const t4 = t3.firstChild;
|
|
115
|
+
const t5 = t3.nextSibling.firstChild;
|
|
116
|
+
const t6 = t2.nextSibling.firstChild;
|
|
117
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined, f2: undefined, a4: t6, e3: t6.nextSibling, b3: undefined, f3: undefined };
|
|
118
|
+
p0(r, -1, d);
|
|
119
|
+
return r;
|
|
120
|
+
};
|
|
121
|
+
const p0 = (r, c, d) => {
|
|
122
|
+
if (c & 8) {
|
|
123
|
+
const x0 = v[3];
|
|
124
|
+
const s0 = toAttribute(x0, "href");
|
|
125
|
+
if (s0 !== r.v0) writeUrlAttribute(r.n, "href", r.v0 = s0);
|
|
126
|
+
}
|
|
127
|
+
if (c & 32) {
|
|
128
|
+
const x1 = v[5];
|
|
129
|
+
const s1 = toAttribute(x1, "target");
|
|
130
|
+
if (s1 !== r.v1) writeAttribute(r.n, "target", r.v1 = s1);
|
|
131
|
+
}
|
|
132
|
+
if (c & 16) {
|
|
133
|
+
const x2 = v[4];
|
|
134
|
+
const s2 = toAttribute(x2, "rel");
|
|
135
|
+
if (s2 !== r.v2) writeAttribute(r.n, "rel", r.v2 = s2);
|
|
105
136
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (children.length > 0) {
|
|
112
|
-
for (const child of children) {
|
|
113
|
-
const node = typeof child === "string" ? document.createTextNode(child) : child;
|
|
114
|
-
if (node.nodeType === 1) node.setAttribute("data-slotted", "");
|
|
115
|
-
projected.push([node, ""]);
|
|
116
|
-
element9.append(node);
|
|
137
|
+
if (c & 1073741826) {
|
|
138
|
+
const x3 = readIndex({ "true": "page", "false": null, "page": "page", "step": "step", "location": "location" }, textCall("concat", [v[1]]));
|
|
139
|
+
if (x3 !== NONCONFORMING) {
|
|
140
|
+
const s3 = toAttribute(x3, "aria-current");
|
|
141
|
+
if (s3 !== r.v3) writeAttribute(r.n, "aria-current", r.v3 = s3);
|
|
117
142
|
}
|
|
118
|
-
} else {
|
|
119
143
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
144
|
+
if (c & 68) {
|
|
145
|
+
const x4 = hostState(["variant","density"], [v[6], v[2]]);
|
|
146
|
+
const s4 = x4;
|
|
147
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-ui-nav-item-state", (r.v4 = s4) === "" ? null : s4);
|
|
148
|
+
}
|
|
149
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "leading", J, false, undefined, d);
|
|
150
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
151
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
152
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
153
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
|
|
154
|
+
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
155
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "description", J, false, undefined, d);
|
|
156
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
|
|
157
|
+
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
158
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "trailing", J, false, undefined, d);
|
|
159
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
|
|
160
|
+
else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
161
|
+
};
|
|
162
|
+
const m5 = (n, d) => {
|
|
163
|
+
n.append((P5 ??= buildTemplate(T5)).cloneNode(true));
|
|
164
|
+
const t0 = n.firstChild.nextSibling;
|
|
165
|
+
const t1 = t0.firstChild;
|
|
166
|
+
const t2 = t0.nextSibling;
|
|
167
|
+
const t3 = t2.firstChild;
|
|
168
|
+
const t4 = t3.firstChild;
|
|
169
|
+
const t5 = t3.nextSibling.firstChild;
|
|
170
|
+
const t6 = t2.nextSibling.firstChild;
|
|
171
|
+
const r = { n, v0: undefined, v1: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a2: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a3: t5, e2: t5.nextSibling, b2: undefined, f2: undefined, a4: t6, e3: t6.nextSibling, b3: undefined, f3: undefined };
|
|
172
|
+
p5(r, -1, d);
|
|
173
|
+
return r;
|
|
174
|
+
};
|
|
175
|
+
const p5 = (r, c, d) => {
|
|
176
|
+
if (c & 1073741826) {
|
|
177
|
+
const x0 = readIndex({ "true": "page", "false": null, "page": "page", "step": "step", "location": "location" }, textCall("concat", [v[1]]));
|
|
178
|
+
if (x0 !== NONCONFORMING) {
|
|
179
|
+
const s0 = toAttribute(x0, "aria-current");
|
|
180
|
+
if (s0 !== r.v0) writeAttribute(r.n, "aria-current", r.v0 = s0);
|
|
129
181
|
}
|
|
130
|
-
} else {
|
|
131
182
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
183
|
+
if (c & 68) {
|
|
184
|
+
const x1 = hostState(["variant","density"], [v[6], v[2]]);
|
|
185
|
+
const s1 = x1;
|
|
186
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-ui-nav-item-state", (r.v1 = s1) === "" ? null : s1);
|
|
187
|
+
}
|
|
188
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "leading", J, false, undefined, d);
|
|
189
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m6(d); at.before(r.b0.n); } }
|
|
190
|
+
else if (r.b0 !== undefined) p6(r.b0, c, d);
|
|
191
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
|
|
192
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m7(d); at.before(r.b1.n); } }
|
|
193
|
+
else if (r.b1 !== undefined) p7(r.b1, c, d);
|
|
194
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "description", J, false, undefined, d);
|
|
195
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m8(d); at.before(r.b2.n); } }
|
|
196
|
+
else if (r.b2 !== undefined) p8(r.b2, c, d);
|
|
197
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "trailing", J, false, undefined, d);
|
|
198
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m9(d); at.before(r.b3.n); } }
|
|
199
|
+
else if (r.b3 !== undefined) p9(r.b3, c, d);
|
|
200
|
+
};
|
|
201
|
+
const M = [m0, m5], N = [p0, p5];
|
|
202
|
+
let R;
|
|
203
|
+
const p = (c, d) => {
|
|
204
|
+
if (R === null) return;
|
|
205
|
+
if (R === undefined) { R = M[a](element, d); return; }
|
|
206
|
+
if (c & 1) {
|
|
207
|
+
const t = ((v[0] === "a") ? 0 : 1);
|
|
208
|
+
if (t !== a) {
|
|
209
|
+
dispose(R);
|
|
210
|
+
for (const key in I.r) delete I.r[key];
|
|
211
|
+
const previous = I.e, next = armElement(previous, A[a], A[t]);
|
|
212
|
+
I.B.b = Q[t];
|
|
213
|
+
a = t;
|
|
214
|
+
R = null;
|
|
215
|
+
R = M[t](next, d);
|
|
216
|
+
replaceRoot(I, previous, next);
|
|
217
|
+
return;
|
|
142
218
|
}
|
|
143
|
-
} else {
|
|
144
219
|
}
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
220
|
+
N[a](R, c, d);
|
|
221
|
+
};
|
|
222
|
+
const I = { B };
|
|
223
|
+
const J = project(I, children, slots);
|
|
224
|
+
attachGeneratedController(element, S, v, p, undefined, undefined, I);
|
|
225
|
+
manageProps(I);
|
|
149
226
|
return element;
|
|
150
227
|
}
|
|
151
|
-
|
package/vanilla/UiPageHeader.js
CHANGED
|
@@ -1,81 +1,103 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import {
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkFormat } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-page-header.css";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const T0 = ["",[],["span",["class","leading"],4],["span",["class","copy"],["span",["class","eyebrow"],4],["h1",["class","title"],4],["span",["class","description"],4]],["span",["class","actions"],4]];
|
|
6
|
+
const T1 = ["",[]];
|
|
7
|
+
const T2 = ["",[]];
|
|
8
|
+
const T3 = ["",[]];
|
|
9
|
+
const T4 = ["",[]];
|
|
10
|
+
const T5 = ["",[]];
|
|
11
|
+
let P0, P1, P2, P3, P4, P5;
|
|
12
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-page-header" };
|
|
13
|
+
const D = { props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
|
|
14
|
+
|
|
15
|
+
export function createUiPageHeader(options = {}, html) {
|
|
6
16
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
7
|
-
const projected = [];
|
|
8
|
-
const prop0 = componentProps["align"] === undefined ? "start" : componentProps["align"];
|
|
9
17
|
const element = document.createElement("header");
|
|
10
18
|
for (const [name, value] of Object.entries(attributes)) {
|
|
11
19
|
if (value === null || value === undefined || value === false) continue;
|
|
12
20
|
element.setAttribute(name, value === true ? "" : String(value));
|
|
13
21
|
}
|
|
14
22
|
element.setAttribute("data-component", "ui-page-header");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
24
|
+
const v = [null];
|
|
25
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
26
|
+
const m1 = (d) => {
|
|
27
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
28
|
+
const r = { n };
|
|
29
|
+
p1(r, -1, d);
|
|
30
|
+
return r;
|
|
31
|
+
};
|
|
32
|
+
const p1 = (r, c, d) => {
|
|
33
|
+
};
|
|
34
|
+
const m2 = (d) => {
|
|
35
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
36
|
+
const r = { n };
|
|
37
|
+
p2(r, -1, d);
|
|
38
|
+
return r;
|
|
39
|
+
};
|
|
40
|
+
const p2 = (r, c, d) => {
|
|
41
|
+
};
|
|
42
|
+
const m3 = (d) => {
|
|
43
|
+
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
44
|
+
const r = { n };
|
|
45
|
+
p3(r, -1, d);
|
|
46
|
+
return r;
|
|
47
|
+
};
|
|
48
|
+
const p3 = (r, c, d) => {
|
|
49
|
+
};
|
|
50
|
+
const m4 = (d) => {
|
|
51
|
+
const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
|
|
52
|
+
const r = { n };
|
|
53
|
+
p4(r, -1, d);
|
|
54
|
+
return r;
|
|
55
|
+
};
|
|
56
|
+
const p4 = (r, c, d) => {
|
|
57
|
+
};
|
|
58
|
+
const m5 = (d) => {
|
|
59
|
+
const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
|
|
60
|
+
const r = { n };
|
|
61
|
+
p5(r, -1, d);
|
|
62
|
+
return r;
|
|
63
|
+
};
|
|
64
|
+
const p5 = (r, c, d) => {
|
|
65
|
+
};
|
|
66
|
+
const p0 = (r, c, d) => {
|
|
67
|
+
if (c & 1) {
|
|
68
|
+
const x0 = hostState(["align"], [v[0]]);
|
|
69
|
+
const s0 = x0;
|
|
70
|
+
if (s0 !== r.v0) writeAttribute(r.n, "data-ui-page-header-state", (r.v0 = s0) === "" ? null : s0);
|
|
37
71
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (slots["actions"] ?? [].length > 0) {
|
|
69
|
-
for (const child of slots["actions"] ?? []) {
|
|
70
|
-
const node = typeof child === "string" ? document.createTextNode(child) : child;
|
|
71
|
-
if (node.nodeType === 1) node.setAttribute("data-slotted", "");
|
|
72
|
-
projected.push([node, "actions"]);
|
|
73
|
-
element5.append(node);
|
|
74
|
-
}
|
|
75
|
-
} else {
|
|
76
|
-
}
|
|
77
|
-
element.append(element5);
|
|
78
|
-
manageGeneratedProp(element, { name: "align", attribute: "data-align", value: componentProps["align"], default: "start", type: ["start","center"], required: false });
|
|
72
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "leading", J, false, undefined, d);
|
|
73
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
74
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
75
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "eyebrow", J, false, undefined, d);
|
|
76
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
|
|
77
|
+
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
78
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "", J, false, undefined, d);
|
|
79
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
|
|
80
|
+
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
81
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a3, r.e3, "description", J, false, undefined, d);
|
|
82
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
|
|
83
|
+
else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
84
|
+
if (r.f4 === undefined) { r.f4 = 1; const at = fillSlot(r.a4, r.e4, "actions", J, false, undefined, d);
|
|
85
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b4 = m5(d); at.before(r.b4.n); } }
|
|
86
|
+
else if (r.b4 !== undefined) p5(r.b4, c, d);
|
|
87
|
+
};
|
|
88
|
+
const t0 = element.firstChild;
|
|
89
|
+
const t1 = t0.firstChild;
|
|
90
|
+
const t2 = t0.nextSibling;
|
|
91
|
+
const t3 = t2.firstChild;
|
|
92
|
+
const t4 = t3.firstChild;
|
|
93
|
+
const t5 = t3.nextSibling;
|
|
94
|
+
const t6 = t5.firstChild;
|
|
95
|
+
const t7 = t5.nextSibling.firstChild;
|
|
96
|
+
const t8 = t2.nextSibling.firstChild;
|
|
97
|
+
const R = { n: element, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t4, e1: t4.nextSibling, b1: undefined, f1: undefined, a2: t6, e2: t6.nextSibling, b2: undefined, f2: undefined, a3: t7, e3: t7.nextSibling, b3: undefined, f3: undefined, a4: t8, e4: t8.nextSibling, b4: undefined, f4: undefined };
|
|
98
|
+
const I = { B };
|
|
99
|
+
const J = project(I, children, slots);
|
|
100
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
101
|
+
manageProps(I);
|
|
79
102
|
return element;
|
|
80
103
|
}
|
|
81
|
-
|
package/vanilla/UiPopover.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.35 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiPopoverEventMap {
|
|
3
3
|
open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|