@threadlabs/looma 0.25.7 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-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 +8 -6
- 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-scroll-area/ui-scroll-area.html +12 -0
- 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 +18 -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 +7 -5
- 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 +12 -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 +1 -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 +89 -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 +2 -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 +1 -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 +8 -6
- 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.d.ts +9 -0
- package/vue/UiScrollArea.vue +34 -2
- 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.vue +6 -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 +5 -4
- 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 +28 -5
- 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 +5 -5
- package/vue/chunks/control.js +41 -13
- package/vue/chunks/host.js +19 -18
- package/vue/components.css +1405 -1391
- package/vue/host.ts +22 -20
|
@@ -1,13 +1,29 @@
|
|
|
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, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, readsChanged, rec, recLength, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, checkBoolean, checkConstrained, checkFormat, checkList, checkObject, checkString } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-table-toolbar/ui-editor-table-toolbar.js";
|
|
4
4
|
import "../styles/ui-editor-table-toolbar.css";
|
|
5
5
|
|
|
6
|
-
const definition = {...{"contract":{"tag":"ui-editor-table-toolbar","props":{"actions":{"type":{"kind":"list","item":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]}},"required":false,"target":{"attribute":"actions"}},"cellAlignment":{"type":{"kind":"terminal","name":"keyword"},"values":["left","center","right"],"required":false,"target":{"attribute":"cellalignment"},"default":"left"},"cellBackground":{"type":"string","required":false,"target":{"attribute":"cellbackground"},"default":""},"headerColumn":{"type":"boolean","required":false,"target":{"attribute":"headercolumn"},"default":false},"headerRow":{"type":"boolean","required":false,"target":{"attribute":"headerrow"},"default":false},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"role","value":"toolbar"},{"kind":"literal","name":"aria-label","value":"Table actions"},{"kind":"attribute","name":"hidden","expression":"not open","expressionPlan":{"source":"not open","ast":{"kind":"unary","op":"not","operand":{"kind":"id","name":"open"}},"dependencies":["open"]}}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"group"},{"kind":"literal","name":"role","value":"group"},{"kind":"literal","name":"aria-label","value":"Cell alignment"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"icon-button"},{"kind":"attribute","name":"active","expression":"item.active","expressionPlan":{"source":"item.active","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"active"},"dependencies":["item.active"]},"target":"class"},{"kind":"attribute","name":"data-action","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}},{"kind":"attribute","name":"aria-label","expression":"item.label","expressionPlan":{"source":"item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}},{"kind":"attribute","name":"title","expression":"item.label","expressionPlan":{"source":"item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}},{"kind":"attribute","name":"aria-pressed","expression":"item.active","expressionPlan":{"source":"item.active","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"active"},"dependencies":["item.active"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}],"children":[]}],"flow":{"kind":"each","item":"item","list":"alignments","listPlan":{"source":"alignments","ast":{"kind":"id","name":"alignments"},"dependencies":["alignments"]},"key":"item.action","keyPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}}],"flow":{"kind":"if","test":"alignments","testPlan":{"source":"alignments","ast":{"kind":"id","name":"alignments"},"dependencies":["alignments"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"sep"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[],"flow":{"kind":"if","test":"alignments and structure","testPlan":{"source":"alignments and structure","ast":{"kind":"binary","op":"and","left":{"kind":"id","name":"alignments"},"right":{"kind":"id","name":"structure"}},"dependencies":["alignments","structure"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"group"},{"kind":"literal","name":"role","value":"group"},{"kind":"literal","name":"aria-label","value":"Table structure"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"data-action","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"item.icon","expressionPlan":{"source":"item.icon","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"icon"},"dependencies":["item.icon"]}}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"$item.label","expressionPlan":{"source":"$item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}}]}],"flow":{"kind":"each","item":"item","list":"structure","listPlan":{"source":"structure","ast":{"kind":"id","name":"structure"},"dependencies":["structure"]},"key":"item.action","keyPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}}],"flow":{"kind":"if","test":"structure","testPlan":{"source":"structure","ast":{"kind":"id","name":"structure"},"dependencies":["structure"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"sep"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[],"flow":{"kind":"if","test":"(alignments or structure) and hasOverflow","testPlan":{"source":"(alignments or structure) and hasOverflow","ast":{"kind":"binary","op":"and","left":{"kind":"binary","op":"or","left":{"kind":"id","name":"alignments"},"right":{"kind":"id","name":"structure"}},"right":{"kind":"id","name":"hasOverflow"}},"dependencies":["alignments","hasOverflow","structure"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"overflow"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"more"},{"kind":"literal","name":"data-action","value":"toggle-overflow"},{"kind":"literal","name":"aria-haspopup","value":"menu"},{"kind":"attribute","name":"aria-expanded","expression":"overflowOpen","expressionPlan":{"source":"overflowOpen","ast":{"kind":"id","name":"overflowOpen"},"dependencies":["overflowOpen"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"table"}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"Table options"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"chevron"}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"chevron-down"}],"children":[]}]}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu"},{"kind":"literal","name":"role","value":"menu"},{"kind":"literal","name":"aria-label","value":"More table actions"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-section"},{"kind":"literal","name":"role","value":"none"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-heading"},{"kind":"literal","name":"role","value":"presentation"}],"children":[{"kind":"text","value":"Background"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"swatches"},{"kind":"literal","name":"role","value":"group"},{"kind":"literal","name":"aria-label","value":"Cell background"}],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"swatch-button"},{"kind":"attribute","name":"selected","expression":"swatch.selected","expressionPlan":{"source":"swatch.selected","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"selected"},"dependencies":["swatch.selected"]},"target":"class"},{"kind":"literal","name":"role","value":"menuitemradio"},{"kind":"attribute","name":"aria-checked","expression":"swatch.selected","expressionPlan":{"source":"swatch.selected","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"selected"},"dependencies":["swatch.selected"]}},{"kind":"attribute","name":"data-action","expression":"swatch.action","expressionPlan":{"source":"swatch.action","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"action"},"dependencies":["swatch.action"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"swatch"},{"kind":"attribute","name":"default","expression":"not swatch.color","expressionPlan":{"source":"not swatch.color","ast":{"kind":"unary","op":"not","operand":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"color"}},"dependencies":["swatch.color"]},"target":"class"},{"kind":"attribute","name":"--_swatch","expression":"swatch.color","expressionPlan":{"source":"swatch.color","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"color"},"dependencies":["swatch.color"]},"target":"style"}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"$swatch.label","expressionPlan":{"source":"$swatch.label","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"label"},"dependencies":["swatch.label"]}}]}],"flow":{"kind":"each","item":"swatch","list":"swatches","listPlan":{"source":"swatches","ast":{"kind":"id","name":"swatches"},"dependencies":["swatches"]},"key":"swatch.action","keyPlan":{"source":"swatch.action","ast":{"kind":"member","object":{"kind":"id","name":"swatch"},"key":"action"},"dependencies":["swatch.action"]}}}]}],"flow":{"kind":"if","test":"swatches","testPlan":{"source":"swatches","ast":{"kind":"id","name":"swatches"},"dependencies":["swatches"]}}},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-section divided"},{"kind":"literal","name":"role","value":"none"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"menu-heading"},{"kind":"literal","name":"role","value":"presentation"}],"children":[{"kind":"text","value":"$section.heading","expressionPlan":{"source":"$section.heading","ast":{"kind":"member","object":{"kind":"id","name":"section"},"key":"heading"},"dependencies":["section.heading"]}}]},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"role","expression":"{ true: 'menuitemcheckbox', false: 'menuitem' }[concat(item.checkable)]","expressionPlan":{"source":"{ true: 'menuitemcheckbox', false: 'menuitem' }[concat(item.checkable)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"menuitemcheckbox"}},{"key":"false","value":{"kind":"literal","value":"menuitem"}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"member","object":{"kind":"id","name":"item"},"key":"checkable"}]}},"dependencies":["item.checkable"]}},{"kind":"attribute","name":"aria-checked","expression":"{ true: item.checked, false: null }[concat(item.checkable)]","expressionPlan":{"source":"{ true: item.checked, false: null }[concat(item.checkable)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"member","object":{"kind":"id","name":"item"},"key":"checked"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"concat","args":[{"kind":"member","object":{"kind":"id","name":"item"},"key":"checkable"}]}},"dependencies":["item.checkable","item.checked"]}},{"kind":"attribute","name":"danger","expression":"item.danger","expressionPlan":{"source":"item.danger","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"danger"},"dependencies":["item.danger"]},"target":"class"},{"kind":"attribute","name":"data-action","expression":"item.action","expressionPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"attribute","name":"name","expression":"item.icon","expressionPlan":{"source":"item.icon","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"icon"},"dependencies":["item.icon"]}}],"children":[]},{"kind":"element","name":"span","attributes":[],"children":[{"kind":"text","value":"$item.label","expressionPlan":{"source":"$item.label","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"label"},"dependencies":["item.label"]}}]}],"flow":{"kind":"each","item":"item","list":"section.items","listPlan":{"source":"section.items","ast":{"kind":"member","object":{"kind":"id","name":"section"},"key":"items"},"dependencies":["section.items"]},"key":"item.action","keyPlan":{"source":"item.action","ast":{"kind":"member","object":{"kind":"id","name":"item"},"key":"action"},"dependencies":["item.action"]}}}],"flow":{"kind":"each","item":"section","list":"sections","listPlan":{"source":"sections","ast":{"kind":"id","name":"sections"},"dependencies":["sections"]},"key":"section.heading","keyPlan":{"source":"section.heading","ast":{"kind":"member","object":{"kind":"id","name":"section"},"key":"heading"},"dependencies":["section.heading"]}}}],"flow":{"kind":"if","test":"overflowOpen","testPlan":{"source":"overflowOpen","ast":{"kind":"id","name":"overflowOpen"},"dependencies":["overflowOpen"]}}}],"flow":{"kind":"if","test":"hasOverflow","testPlan":{"source":"hasOverflow","ast":{"kind":"id","name":"hasOverflow"},"dependencies":["hasOverflow"]}}}]},"declarations":[{"kind":"state","name":"alignments","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["align-left","align-center","align-right"]},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"active","type":{"kind":"terminal","name":"boolean"},"optional":false}],"open":false}},"type":"list","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"structure","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["add-row-after","add-column-after"]},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"icon","type":{"kind":"terminal","name":"string"},"optional":false}],"open":false}},"type":"list","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"swatches","type":"list(object({ action: string, label: string, color: string, selected: boolean }))","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"sections","type":"list(object({ heading: string, items: list(object({ action: string, label: string, icon: string, danger: boolean, checkable: boolean, checked: boolean })) }))","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"hasOverflow","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"state","name":"overflowOpen","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"action","type":"object","shape":{"kind":"object","fields":[{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
|
|
6
|
+
const T0 = ["",[],1,1,1,1,1];
|
|
7
|
+
const T1 = ["div",["class","group","role","group","aria-label","Cell alignment"],2];
|
|
8
|
+
const T2 = ["button",["type","button","class","icon-button"],["ui-icon",[]]];
|
|
9
|
+
const T3 = ["div",["class","sep","aria-hidden","true"]];
|
|
10
|
+
const T4 = ["div",["class","group","role","group","aria-label","Table structure"],2];
|
|
11
|
+
const T5 = ["button",["type","button"],["ui-icon",[]],["span",[],0]];
|
|
12
|
+
const T6 = ["div",["class","sep","aria-hidden","true"]];
|
|
13
|
+
const T7 = ["div",["class","overflow"],["button",["type","button","class","more","data-action","toggle-overflow","aria-haspopup","menu"],["ui-icon",["name","table"]],["span",[],"Table options"],["span",["class","chevron"],["ui-icon",["name","chevron-down"]]]],1];
|
|
14
|
+
const T8 = ["div",["class","menu","role","menu","aria-label","More table actions"],1,2];
|
|
15
|
+
const T9 = ["div",["class","menu-section","role","none"],["div",["class","menu-heading","role","presentation"],"Background"],["div",["class","swatches","role","group","aria-label","Cell background"],2]];
|
|
16
|
+
const T10 = ["button",["type","button","class","swatch-button","role","menuitemradio"],["span",["class","swatch"]],["span",[],0]];
|
|
17
|
+
const T11 = ["div",["class","menu-section divided","role","none"],["div",["class","menu-heading","role","presentation"],0],2];
|
|
18
|
+
const T12 = ["button",["type","button"],["ui-icon",[]],["span",[],0]];
|
|
19
|
+
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12;
|
|
20
|
+
const E = new Map();
|
|
21
|
+
const S = { n: ["alignments","structure","swatches","sections","hasOverflow","overflowOpen"], t: [["l",["o",["action",["p",formatOf(keywordFormat),false],"label","s","active","b"]]],["l",["o",["action",["p",formatOf(keywordFormat),false],"label","s","icon","s"]]],["l",["o",["action","s","label","s","color","s","selected","b"]]],["l",["o",["heading","s","items",["l",["o",["action","s","label","s","icon","s","danger","b","checkable","b","checked","b"]]]]]],"b","b"], f: import.meta.url, g: "ui-editor-table-toolbar", d: { "action": [detailCheck(checkObject([["action", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]}), false]], false)), true, true, false] }, x: dispatchDeclared };
|
|
22
|
+
const D = { props: { "actions": { "required":false, c: checkList(checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["align-left","align-center","align-right","background-none","background-gray","background-yellow","background-blue","background-green","background-red","add-row-before","add-row-after","add-column-before","add-column-after","toggle-header-row","toggle-header-column","move-row-up","move-row-down","move-column-left","move-column-right","clear-cells","merge-cells","split-cell","delete-row","delete-column","delete-table"]})), j: 1, m: ["l",["p",formatOf(keywordFormat),false]] }, "cellAlignment": { "required":false,"values":["left","center","right"],"default":"left", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "cellBackground": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "headerColumn": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "headerRow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
|
|
23
|
+
const C = (host) => controller.default(host);
|
|
7
24
|
|
|
8
|
-
export function createUiEditorTableToolbar(options = {}) {
|
|
25
|
+
export function createUiEditorTableToolbar(options = {}, html) {
|
|
9
26
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
10
|
-
const projected = [];
|
|
11
27
|
const element = document.createElement("div");
|
|
12
28
|
for (const [name, value] of Object.entries(attributes)) {
|
|
13
29
|
if (value === null || value === undefined || value === false) continue;
|
|
@@ -16,113 +32,314 @@ export function createUiEditorTableToolbar(options = {}) {
|
|
|
16
32
|
if (!element.hasAttribute("role")) element.setAttribute("role", "toolbar");
|
|
17
33
|
if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Table actions");
|
|
18
34
|
element.setAttribute("data-component", "ui-editor-table-toolbar");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
35
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
36
|
+
const v = [[], [], [], [], false, false, null, null, null, null, null, null];
|
|
37
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
38
|
+
const m1 = (d) => {
|
|
39
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
40
|
+
const t0 = n.firstChild;
|
|
41
|
+
const r = { n, L0: new KeyedList(t0, t0.nextSibling, m2, p2, (o) => readMember(o, "action"), "item") };
|
|
42
|
+
p1(r, -1, d);
|
|
43
|
+
return r;
|
|
44
|
+
};
|
|
45
|
+
const p1 = (r, c, d) => {
|
|
46
|
+
if (c & 1073741825) r.L0.update(v[0], d, c);
|
|
47
|
+
};
|
|
48
|
+
const m2 = (o, j, l) => {
|
|
49
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
50
|
+
const t0 = n.firstChild;
|
|
51
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, w: 0, v0: false, v1: null, v2: null, v3: null, v4: null, v5: null };
|
|
52
|
+
p2(r, -1, E);
|
|
53
|
+
return r;
|
|
54
|
+
};
|
|
55
|
+
const p2 = (r, c, d) => {
|
|
56
|
+
const o = r.i;
|
|
57
|
+
if (c & 1073741824) {
|
|
58
|
+
r.w = 0;
|
|
59
|
+
const x0 = trackContainer(r, readMember(o, "active"));
|
|
60
|
+
const s0 = truthy(x0);
|
|
61
|
+
if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
|
|
62
|
+
const x1 = trackContainer(r, readMember(o, "action"));
|
|
63
|
+
const s1 = toAttribute(x1, "data-action");
|
|
64
|
+
if (s1 !== r.v1) writeAttribute(r.n, "data-action", r.v1 = s1);
|
|
65
|
+
const x2 = trackContainer(r, readMember(o, "label"));
|
|
66
|
+
const s2 = toAttribute(x2, "aria-label");
|
|
67
|
+
if (s2 !== r.v2) writeAttribute(r.n, "aria-label", r.v2 = s2);
|
|
68
|
+
const s3 = toAttribute(x2, "title");
|
|
69
|
+
if (s3 !== r.v3) writeAttribute(r.n, "title", r.v3 = s3);
|
|
70
|
+
const s4 = toAttribute(x0, "aria-pressed");
|
|
71
|
+
if (s4 !== r.v4) writeAttribute(r.n, "aria-pressed", r.v4 = s4);
|
|
72
|
+
const s5 = toAttribute(x1, "name");
|
|
73
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "name", r.v5 = s5);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const m3 = (d) => {
|
|
77
|
+
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
78
|
+
const r = { n };
|
|
79
|
+
p3(r, -1, d);
|
|
80
|
+
return r;
|
|
81
|
+
};
|
|
82
|
+
const p3 = (r, c, d) => {
|
|
83
|
+
};
|
|
84
|
+
const m4 = (d) => {
|
|
85
|
+
const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
|
|
86
|
+
const t0 = n.firstChild;
|
|
87
|
+
const r = { n, L0: new KeyedList(t0, t0.nextSibling, m5, p5, (o) => readMember(o, "action"), "item") };
|
|
88
|
+
p4(r, -1, d);
|
|
89
|
+
return r;
|
|
90
|
+
};
|
|
91
|
+
const p4 = (r, c, d) => {
|
|
92
|
+
if (c & 1073741826) r.L0.update(v[1], d, c);
|
|
93
|
+
};
|
|
94
|
+
const m5 = (o, j, l) => {
|
|
95
|
+
const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
|
|
96
|
+
const t0 = n.firstChild;
|
|
97
|
+
const t1 = t0.nextSibling.firstChild;
|
|
98
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: null, v1: null, v2: "" };
|
|
99
|
+
p5(r, -1, E);
|
|
100
|
+
return r;
|
|
101
|
+
};
|
|
102
|
+
const p5 = (r, c, d) => {
|
|
103
|
+
const o = r.i;
|
|
104
|
+
if (c & 1073741824) {
|
|
105
|
+
r.w = 0;
|
|
106
|
+
const x0 = trackContainer(r, readMember(o, "action"));
|
|
107
|
+
const s0 = toAttribute(x0, "data-action");
|
|
108
|
+
if (s0 !== r.v0) writeAttribute(r.n, "data-action", r.v0 = s0);
|
|
109
|
+
const x1 = trackContainer(r, readMember(o, "icon"));
|
|
110
|
+
const s1 = toAttribute(x1, "name");
|
|
111
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "name", r.v1 = s1);
|
|
112
|
+
const x2 = trackContainer(r, readMember(o, "label"));
|
|
113
|
+
const s2 = toText(x2);
|
|
114
|
+
if (s2 !== r.v2) r.a2.data = r.v2 = s2;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const m6 = (d) => {
|
|
118
|
+
const n = (P6 ??= buildTemplate(T6)).cloneNode(true);
|
|
119
|
+
const r = { n };
|
|
120
|
+
p6(r, -1, d);
|
|
121
|
+
return r;
|
|
122
|
+
};
|
|
123
|
+
const p6 = (r, c, d) => {
|
|
124
|
+
};
|
|
125
|
+
const m7 = (d) => {
|
|
126
|
+
const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
|
|
127
|
+
const t0 = n.firstChild;
|
|
128
|
+
const t1 = t0.nextSibling;
|
|
129
|
+
const r = { n, a0: t0, v0: null, a1: t1, e0: t1.nextSibling, b0: undefined };
|
|
130
|
+
p7(r, -1, d);
|
|
131
|
+
return r;
|
|
132
|
+
};
|
|
133
|
+
const p7 = (r, c, d) => {
|
|
134
|
+
if (c & 32) {
|
|
135
|
+
const x0 = v[5];
|
|
136
|
+
const s0 = toAttribute(x0, "aria-expanded");
|
|
137
|
+
if (s0 !== r.v0) writeAttribute(r.a0, "aria-expanded", r.v0 = s0);
|
|
138
|
+
}
|
|
139
|
+
if (c & 32) {
|
|
140
|
+
const t0 = v[5];
|
|
141
|
+
if (true) {
|
|
142
|
+
{
|
|
143
|
+
r.b0 = undefined;
|
|
144
|
+
clearRegion(r.a1, r.e0);
|
|
145
|
+
if (t0) { r.b0 = m8(d); r.e0.before(r.b0.n); }
|
|
146
|
+
}
|
|
147
|
+
} else if (r.b0 !== undefined) p8(r.b0, c, d);
|
|
148
|
+
} else if (r.b0 !== undefined) p8(r.b0, c, d);
|
|
149
|
+
};
|
|
150
|
+
const m8 = (d) => {
|
|
151
|
+
const n = (P8 ??= buildTemplate(T8)).cloneNode(true);
|
|
152
|
+
const t0 = n.firstChild;
|
|
153
|
+
const t1 = t0.nextSibling.nextSibling;
|
|
154
|
+
const r = { n, a0: t0, e0: t0.nextSibling, b0: undefined, q0: undefined, L1: new KeyedList(t1, t1.nextSibling, m11, p11, (o) => readMember(o, "heading"), "section") };
|
|
155
|
+
p8(r, -1, d);
|
|
156
|
+
return r;
|
|
157
|
+
};
|
|
158
|
+
const p8 = (r, c, d) => {
|
|
159
|
+
if (c & 1073741828) {
|
|
160
|
+
const f4 = [];
|
|
161
|
+
const t0 = truthy(recLength(f4, rec(f4, v[2])));
|
|
162
|
+
if (c === -1 || c & 4 || readsChanged(r.q0, f4)) {
|
|
163
|
+
r.q0 = f4;
|
|
164
|
+
{
|
|
165
|
+
r.b0 = undefined;
|
|
166
|
+
clearRegion(r.a0, r.e0);
|
|
167
|
+
if (t0) { r.b0 = m9(d); r.e0.before(r.b0.n); }
|
|
168
|
+
}
|
|
169
|
+
} else if (r.b0 !== undefined) p9(r.b0, c, d);
|
|
170
|
+
} else if (r.b0 !== undefined) p9(r.b0, c, d);
|
|
171
|
+
if (c & 1073741832) r.L1.update(v[3], d, c);
|
|
172
|
+
};
|
|
173
|
+
const m9 = (d) => {
|
|
174
|
+
const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
|
|
175
|
+
const t0 = n.firstChild.nextSibling.firstChild;
|
|
176
|
+
const r = { n, L0: new KeyedList(t0, t0.nextSibling, m10, p10, (o) => readMember(o, "action"), "swatch") };
|
|
177
|
+
p9(r, -1, d);
|
|
178
|
+
return r;
|
|
179
|
+
};
|
|
180
|
+
const p9 = (r, c, d) => {
|
|
181
|
+
if (c & 1073741828) r.L0.update(v[2], d, c);
|
|
182
|
+
};
|
|
183
|
+
const m10 = (o, j, l) => {
|
|
184
|
+
const n = (P10 ??= buildTemplate(T10)).cloneNode(true);
|
|
185
|
+
const t0 = n.firstChild;
|
|
186
|
+
const t1 = t0.nextSibling.firstChild;
|
|
187
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: false, v1: null, v2: null, v3: false, v4: undefined, v5: "" };
|
|
188
|
+
p10(r, -1, E);
|
|
189
|
+
return r;
|
|
190
|
+
};
|
|
191
|
+
const p10 = (r, c, d) => {
|
|
192
|
+
const o = r.i;
|
|
193
|
+
if (c & 1073741824) {
|
|
194
|
+
r.w = 0;
|
|
195
|
+
const x0 = trackContainer(r, readMember(o, "selected"));
|
|
196
|
+
const s0 = truthy(x0);
|
|
197
|
+
if (s0 !== r.v0) r.n.classList.toggle("selected", r.v0 = s0);
|
|
198
|
+
const s1 = toAttribute(x0, "aria-checked");
|
|
199
|
+
if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
|
|
200
|
+
const x1 = trackContainer(r, readMember(o, "action"));
|
|
201
|
+
const s2 = toAttribute(x1, "data-action");
|
|
202
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-action", r.v2 = s2);
|
|
203
|
+
const x2 = !truthy(trackContainer(r, readMember(o, "color")));
|
|
204
|
+
const s3 = x2;
|
|
205
|
+
if (s3 !== r.v3) r.a1.classList.toggle("default", r.v3 = s3);
|
|
206
|
+
const x3 = trackContainer(r, readMember(o, "color"));
|
|
207
|
+
const s4 = toText(x3);
|
|
208
|
+
if (s4 !== r.v4) r.a1.style.setProperty("--_swatch", r.v4 = s4);
|
|
209
|
+
const x4 = trackContainer(r, readMember(o, "label"));
|
|
210
|
+
const s5 = toText(x4);
|
|
211
|
+
if (s5 !== r.v5) r.a2.data = r.v5 = s5;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
const m11 = (o, j, l) => {
|
|
215
|
+
const n = (P11 ??= buildTemplate(T11)).cloneNode(true);
|
|
216
|
+
const t0 = n.firstChild;
|
|
217
|
+
const t1 = t0.firstChild;
|
|
218
|
+
const t2 = t0.nextSibling;
|
|
219
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a0: t1, w: 0, v0: "", L0: new KeyedList(t2, t2.nextSibling, m12, p12, (o) => readMember(o, "action"), "item") };
|
|
220
|
+
p11(r, -1, E);
|
|
221
|
+
return r;
|
|
222
|
+
};
|
|
223
|
+
const p11 = (r, c, d) => {
|
|
224
|
+
const o = r.i;
|
|
225
|
+
if (c & 1073741824) {
|
|
226
|
+
r.w = 0;
|
|
227
|
+
const x0 = trackContainer(r, readMember(o, "heading"));
|
|
228
|
+
const s0 = toText(x0);
|
|
229
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
230
|
+
}
|
|
231
|
+
if (c & 1073741824) r.L0.update(readMember(o, "items"), d, c);
|
|
232
|
+
};
|
|
233
|
+
const m12 = (o, j, l) => {
|
|
234
|
+
const n = (P12 ??= buildTemplate(T12)).cloneNode(true);
|
|
235
|
+
const t0 = n.firstChild;
|
|
236
|
+
const t1 = t0.nextSibling.firstChild;
|
|
237
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: null, v1: null, v2: false, v3: null, v4: null, v5: "" };
|
|
238
|
+
p12(r, -1, E);
|
|
239
|
+
return r;
|
|
240
|
+
};
|
|
241
|
+
const p12 = (r, c, d) => {
|
|
242
|
+
const o = r.i;
|
|
243
|
+
if (c & 1073741824) {
|
|
244
|
+
r.w = 0;
|
|
245
|
+
const x0 = trackContainer(r, readIndex({ "true": "menuitemcheckbox", "false": "menuitem" }, textCall("concat", [trackContainer(r, readMember(o, "checkable"))])));
|
|
246
|
+
if (x0 !== NONCONFORMING) {
|
|
247
|
+
const s0 = toAttribute(x0, "role");
|
|
248
|
+
if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
|
|
249
|
+
}
|
|
250
|
+
const x1 = trackContainer(r, readIndex({ "true": readMember(o, "checked"), "false": null }, textCall("concat", [trackContainer(r, readMember(o, "checkable"))])));
|
|
251
|
+
if (x1 !== NONCONFORMING) {
|
|
252
|
+
const s1 = toAttribute(x1, "aria-checked");
|
|
253
|
+
if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
|
|
254
|
+
}
|
|
255
|
+
const x2 = trackContainer(r, readMember(o, "danger"));
|
|
256
|
+
const s2 = truthy(x2);
|
|
257
|
+
if (s2 !== r.v2) r.n.classList.toggle("danger", r.v2 = s2);
|
|
258
|
+
const x3 = trackContainer(r, readMember(o, "action"));
|
|
259
|
+
const s3 = toAttribute(x3, "data-action");
|
|
260
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-action", r.v3 = s3);
|
|
261
|
+
const x4 = trackContainer(r, readMember(o, "icon"));
|
|
262
|
+
const s4 = toAttribute(x4, "name");
|
|
263
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "name", r.v4 = s4);
|
|
264
|
+
const x5 = trackContainer(r, readMember(o, "label"));
|
|
265
|
+
const s5 = toText(x5);
|
|
266
|
+
if (s5 !== r.v5) r.a2.data = r.v5 = s5;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
const p0 = (r, c, d) => {
|
|
270
|
+
if (c & 2048) {
|
|
271
|
+
const x0 = !truthy(v[11]);
|
|
272
|
+
const s0 = toAttribute(x0, "hidden");
|
|
273
|
+
if (s0 !== r.v0) writeAttribute(r.n, "hidden", r.v0 = s0);
|
|
274
|
+
}
|
|
275
|
+
if (c & 1073741825) {
|
|
276
|
+
const f0 = [];
|
|
277
|
+
const t0 = truthy(recLength(f0, rec(f0, v[0])));
|
|
278
|
+
if (c === -1 || c & 1 || readsChanged(r.q0, f0)) {
|
|
279
|
+
r.q0 = f0;
|
|
280
|
+
{
|
|
281
|
+
r.b0 = undefined;
|
|
282
|
+
clearRegion(r.a1, r.e0);
|
|
283
|
+
if (t0) { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
284
|
+
}
|
|
285
|
+
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
286
|
+
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
287
|
+
if (c & 1073741827) {
|
|
288
|
+
const f1 = [];
|
|
289
|
+
const t1 = (truthy(recLength(f1, rec(f1, v[0]))) && truthy(recLength(f1, rec(f1, v[1]))));
|
|
290
|
+
if (c === -1 || c & 3 || readsChanged(r.q1, f1)) {
|
|
291
|
+
r.q1 = f1;
|
|
292
|
+
{
|
|
293
|
+
r.b1 = undefined;
|
|
294
|
+
clearRegion(r.a2, r.e1);
|
|
295
|
+
if (t1) { r.b1 = m3(d); r.e1.before(r.b1.n); }
|
|
296
|
+
}
|
|
297
|
+
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
298
|
+
} else if (r.b1 !== undefined) p3(r.b1, c, d);
|
|
299
|
+
if (c & 1073741826) {
|
|
300
|
+
const f2 = [];
|
|
301
|
+
const t2 = truthy(recLength(f2, rec(f2, v[1])));
|
|
302
|
+
if (c === -1 || c & 2 || readsChanged(r.q2, f2)) {
|
|
303
|
+
r.q2 = f2;
|
|
304
|
+
{
|
|
305
|
+
r.b2 = undefined;
|
|
306
|
+
clearRegion(r.a3, r.e2);
|
|
307
|
+
if (t2) { r.b2 = m4(d); r.e2.before(r.b2.n); }
|
|
308
|
+
}
|
|
309
|
+
} else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
310
|
+
} else if (r.b2 !== undefined) p4(r.b2, c, d);
|
|
311
|
+
if (c & 1073741843) {
|
|
312
|
+
const f3 = [];
|
|
313
|
+
const t3 = ((truthy(recLength(f3, rec(f3, v[0]))) || truthy(recLength(f3, rec(f3, v[1])))) && rec(f3, v[4]));
|
|
314
|
+
if (c === -1 || c & 19 || readsChanged(r.q3, f3)) {
|
|
315
|
+
r.q3 = f3;
|
|
316
|
+
{
|
|
317
|
+
r.b3 = undefined;
|
|
318
|
+
clearRegion(r.a4, r.e3);
|
|
319
|
+
if (t3) { r.b3 = m6(d); r.e3.before(r.b3.n); }
|
|
320
|
+
}
|
|
321
|
+
} else if (r.b3 !== undefined) p6(r.b3, c, d);
|
|
322
|
+
} else if (r.b3 !== undefined) p6(r.b3, c, d);
|
|
323
|
+
if (c & 16) {
|
|
324
|
+
const t4 = v[4];
|
|
325
|
+
if (true) {
|
|
326
|
+
{
|
|
327
|
+
r.b4 = undefined;
|
|
328
|
+
clearRegion(r.a5, r.e4);
|
|
329
|
+
if (t4) { r.b4 = m7(d); r.e4.before(r.b4.n); }
|
|
330
|
+
}
|
|
331
|
+
} else if (r.b4 !== undefined) p7(r.b4, c, d);
|
|
332
|
+
} else if (r.b4 !== undefined) p7(r.b4, c, d);
|
|
333
|
+
};
|
|
334
|
+
const t0 = element.firstChild;
|
|
335
|
+
const t1 = t0.nextSibling.nextSibling;
|
|
336
|
+
const t2 = t1.nextSibling.nextSibling;
|
|
337
|
+
const t3 = t2.nextSibling.nextSibling;
|
|
338
|
+
const t4 = t3.nextSibling.nextSibling;
|
|
339
|
+
const R = { n: element, v0: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, q0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, q1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, q2: undefined, a4: t3, e3: t3.nextSibling, b3: undefined, q3: undefined, a5: t4, e4: t4.nextSibling, b4: undefined };
|
|
340
|
+
const I = { B };
|
|
341
|
+
I.R = new Set();
|
|
342
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, C, undefined, I);
|
|
343
|
+
manageProps(I);
|
|
126
344
|
return element;
|
|
127
345
|
}
|
|
128
|
-
|
|
@@ -1,13 +1,17 @@
|
|
|
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, hostState, acceptProps, manageProps, project, fillSlot, checkBoolean } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-toolbar/ui-editor-toolbar.js";
|
|
4
4
|
import "../styles/ui-editor-toolbar.css";
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const T0 = ["",[],["div",["class","strip"],4]];
|
|
7
|
+
const T1 = ["",[]];
|
|
8
|
+
let P0, P1;
|
|
9
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-toolbar" };
|
|
10
|
+
const D = { props: { "floating": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
|
|
11
|
+
const C = (host) => controller.default(host);
|
|
7
12
|
|
|
8
|
-
export function createUiEditorToolbar(options = {}) {
|
|
13
|
+
export function createUiEditorToolbar(options = {}, html) {
|
|
9
14
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
10
|
-
const projected = [];
|
|
11
15
|
const element = document.createElement("div");
|
|
12
16
|
for (const [name, value] of Object.entries(attributes)) {
|
|
13
17
|
if (value === null || value === undefined || value === false) continue;
|
|
@@ -16,21 +20,34 @@ export function createUiEditorToolbar(options = {}) {
|
|
|
16
20
|
if (!element.hasAttribute("role")) element.setAttribute("role", "toolbar");
|
|
17
21
|
if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Editor toolbar");
|
|
18
22
|
element.setAttribute("data-component", "ui-editor-toolbar");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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 p0 = (r, c, d) => {
|
|
35
|
+
if (c & 1) {
|
|
36
|
+
const x0 = hostState(["floating"], [v[0]]);
|
|
37
|
+
const s0 = x0;
|
|
38
|
+
if (s0 !== r.v0) writeAttribute(r.n, "data-ui-editor-toolbar-state", (r.v0 = s0) === "" ? null : s0);
|
|
27
39
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
|
|
41
|
+
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); } }
|
|
42
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
43
|
+
};
|
|
44
|
+
const t0 = element.firstChild;
|
|
45
|
+
const t1 = t0.firstChild;
|
|
46
|
+
const R = { n: element, v0: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
|
|
47
|
+
const I = { B };
|
|
48
|
+
const J = project(I, children, slots);
|
|
49
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), C, undefined, I);
|
|
50
|
+
manageProps(I);
|
|
51
|
+
I.r["strip"] = t0;
|
|
34
52
|
return element;
|
|
35
53
|
}
|
|
36
|
-
|
|
@@ -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 UiFloatingActionButtonEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiFloatingActionButtonElement extends HTMLButtonElement {
|