@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,21 @@
|
|
|
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, checkReference, clearRegion, KeyedList, NONCONFORMING, readDeclared, readMember, readsChanged, rec, recLength, toAttribute, toText, trackContainer, truthy, visitSelected, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, checkBoolean, checkInteger, checkList, checkNull, checkNumber, checkObject, checkUnion } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-table-overlay/ui-editor-table-overlay.js";
|
|
4
4
|
import "../styles/ui-editor-table-overlay.css";
|
|
5
5
|
|
|
6
|
-
const definition = {...{"contract":{"tag":"ui-editor-table-overlay","props":{"geometry":{"type":{"kind":"object","fields":[{"name":"rowBoundaries","type":{"kind":"list","item":{"kind":"terminal","name":"number"}},"optional":false},{"name":"columnBoundaries","type":{"kind":"list","item":{"kind":"terminal","name":"number"}},"optional":false},{"name":"activeCell","type":{"kind":"union","members":[{"kind":"object","fields":[{"name":"left","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"top","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"width","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"height","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"rowIndex","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"columnIndex","type":{"kind":"terminal","name":"integer"},"optional":false}],"open":false},{"kind":"terminal","name":"null"}]},"optional":false},{"name":"hoveredCell","type":{"kind":"union","members":[{"kind":"object","fields":[{"name":"left","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"top","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"width","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"height","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"rowIndex","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"columnIndex","type":{"kind":"terminal","name":"integer"},"optional":false}],"open":false},{"kind":"terminal","name":"null"}]},"optional":true}],"open":false},"required":false,"target":{"attribute":"geometry"}},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"aria-label","value":"Table controls"},{"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":"rows"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"control row"},{"kind":"attribute","name":"active","expression":"control.key = activeKey","expressionPlan":{"source":"control.key = activeKey","ast":{"kind":"binary","op":"=","left":{"kind":"member","object":{"kind":"id","name":"control"},"key":"key"},"right":{"kind":"id","name":"activeKey"}},"dependencies":["activeKey","control.key"]},"target":"class"},{"kind":"attribute","name":"top","expression":"control.offset","expressionPlan":{"source":"control.offset","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"offset"},"dependencies":["control.offset"]},"target":"style"},{"kind":"attribute","name":"data-control-key","expression":"control.key","expressionPlan":{"source":"control.key","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"key"},"dependencies":["control.key"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"line"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"guide"},{"kind":"literal","name":"data-ui-guide","value":""},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"handle"},{"kind":"attribute","name":"data-ui-affordance","expression":"control.affordance","expressionPlan":{"source":"control.affordance","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"affordance"},"dependencies":["control.affordance"]}},{"kind":"attribute","name":"data-action","expression":"control.action","expressionPlan":{"source":"control.action","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"action"},"dependencies":["control.action"]}},{"kind":"attribute","name":"data-boundary-index","expression":"control.index","expressionPlan":{"source":"control.index","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"index"},"dependencies":["control.index"]}},{"kind":"attribute","name":"aria-label","expression":"control.label","expressionPlan":{"source":"control.label","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"label"},"dependencies":["control.label"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"plus"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"tooltip"},{"kind":"literal","name":"role","value":"tooltip"}],"children":[{"kind":"text","value":"$control.label","expressionPlan":{"source":"$control.label","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"label"},"dependencies":["control.label"]}}]}]}],"flow":{"kind":"each","item":"control","list":"rows","listPlan":{"source":"rows","ast":{"kind":"id","name":"rows"},"dependencies":["rows"]},"key":"control.key","keyPlan":{"source":"control.key","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"key"},"dependencies":["control.key"]}}}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"cols"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"control col"},{"kind":"attribute","name":"active","expression":"control.key = activeKey","expressionPlan":{"source":"control.key = activeKey","ast":{"kind":"binary","op":"=","left":{"kind":"member","object":{"kind":"id","name":"control"},"key":"key"},"right":{"kind":"id","name":"activeKey"}},"dependencies":["activeKey","control.key"]},"target":"class"},{"kind":"attribute","name":"left","expression":"control.offset","expressionPlan":{"source":"control.offset","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"offset"},"dependencies":["control.offset"]},"target":"style"},{"kind":"attribute","name":"data-control-key","expression":"control.key","expressionPlan":{"source":"control.key","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"key"},"dependencies":["control.key"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"line"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"guide"},{"kind":"literal","name":"data-ui-guide","value":""},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"handle"},{"kind":"attribute","name":"data-ui-affordance","expression":"control.affordance","expressionPlan":{"source":"control.affordance","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"affordance"},"dependencies":["control.affordance"]}},{"kind":"attribute","name":"data-action","expression":"control.action","expressionPlan":{"source":"control.action","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"action"},"dependencies":["control.action"]}},{"kind":"attribute","name":"data-boundary-index","expression":"control.index","expressionPlan":{"source":"control.index","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"index"},"dependencies":["control.index"]}},{"kind":"attribute","name":"aria-label","expression":"control.label","expressionPlan":{"source":"control.label","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"label"},"dependencies":["control.label"]}}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"plus"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"tooltip"},{"kind":"literal","name":"role","value":"tooltip"}],"children":[{"kind":"text","value":"$control.label","expressionPlan":{"source":"$control.label","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"label"},"dependencies":["control.label"]}}]}]}],"flow":{"kind":"each","item":"control","list":"cols","listPlan":{"source":"cols","ast":{"kind":"id","name":"cols"},"dependencies":["cols"]},"key":"control.key","keyPlan":{"source":"control.key","ast":{"kind":"member","object":{"kind":"id","name":"control"},"key":"key"},"dependencies":["control.key"]}}}]},{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"selector row"},{"kind":"attribute","name":"top","expression":"hovered.rowOffset","expressionPlan":{"source":"hovered.rowOffset","ast":{"kind":"member","object":{"kind":"id","name":"hovered"},"key":"rowOffset"},"dependencies":["hovered.rowOffset"]},"target":"style"},{"kind":"literal","name":"data-action","value":"select-row"},{"kind":"attribute","name":"data-row-index","expression":"hovered.rowIndex","expressionPlan":{"source":"hovered.rowIndex","ast":{"kind":"member","object":{"kind":"id","name":"hovered"},"key":"rowIndex"},"dependencies":["hovered.rowIndex"]}},{"kind":"attribute","name":"data-column-index","expression":"hovered.columnIndex","expressionPlan":{"source":"hovered.columnIndex","ast":{"kind":"member","object":{"kind":"id","name":"hovered"},"key":"columnIndex"},"dependencies":["hovered.columnIndex"]}},{"kind":"literal","name":"title","value":"Drag row to reorder; click for actions"},{"kind":"literal","name":"aria-label","value":"Row actions"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"glyph"}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"grip-vertical"}],"children":[]}]}]},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"selector column"},{"kind":"attribute","name":"left","expression":"hovered.columnOffset","expressionPlan":{"source":"hovered.columnOffset","ast":{"kind":"member","object":{"kind":"id","name":"hovered"},"key":"columnOffset"},"dependencies":["hovered.columnOffset"]},"target":"style"},{"kind":"literal","name":"data-action","value":"select-column"},{"kind":"attribute","name":"data-row-index","expression":"hovered.rowIndex","expressionPlan":{"source":"hovered.rowIndex","ast":{"kind":"member","object":{"kind":"id","name":"hovered"},"key":"rowIndex"},"dependencies":["hovered.rowIndex"]}},{"kind":"attribute","name":"data-column-index","expression":"hovered.columnIndex","expressionPlan":{"source":"hovered.columnIndex","ast":{"kind":"member","object":{"kind":"id","name":"hovered"},"key":"columnIndex"},"dependencies":["hovered.columnIndex"]}},{"kind":"literal","name":"title","value":"Drag column to reorder; click for actions"},{"kind":"literal","name":"aria-label","value":"Column actions"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"glyph"}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"grip-horizontal"}],"children":[]}]}]}],"flow":{"kind":"if","test":"hovered","testPlan":{"source":"hovered","ast":{"kind":"id","name":"hovered"},"dependencies":["hovered"]}}},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"literal","name":"class","value":"cell-menu"},{"kind":"attribute","name":"left","expression":"active.menuLeft","expressionPlan":{"source":"active.menuLeft","ast":{"kind":"member","object":{"kind":"id","name":"active"},"key":"menuLeft"},"dependencies":["active.menuLeft"]},"target":"style"},{"kind":"attribute","name":"top","expression":"active.menuTop","expressionPlan":{"source":"active.menuTop","ast":{"kind":"member","object":{"kind":"id","name":"active"},"key":"menuTop"},"dependencies":["active.menuTop"]},"target":"style"},{"kind":"literal","name":"data-action","value":"open-cell-menu"},{"kind":"attribute","name":"data-row-index","expression":"active.rowIndex","expressionPlan":{"source":"active.rowIndex","ast":{"kind":"member","object":{"kind":"id","name":"active"},"key":"rowIndex"},"dependencies":["active.rowIndex"]}},{"kind":"attribute","name":"data-column-index","expression":"active.columnIndex","expressionPlan":{"source":"active.columnIndex","ast":{"kind":"member","object":{"kind":"id","name":"active"},"key":"columnIndex"},"dependencies":["active.columnIndex"]}},{"kind":"literal","name":"title","value":"Cell actions"},{"kind":"literal","name":"aria-label","value":"Cell actions"}],"children":[{"kind":"element","name":"ui-icon","attributes":[{"kind":"literal","name":"name","value":"chevron-down"}],"children":[]}],"flow":{"kind":"if","test":"active","testPlan":{"source":"active","ast":{"kind":"id","name":"active"},"dependencies":["active"]}}},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"drop-indicator"},{"kind":"literal","name":"data-drop-indicator","value":""},{"kind":"literal","name":"hidden","value":""},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]}]},"declarations":[{"kind":"state","name":"rows","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"key","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"index","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"offset","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"affordance","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["insert-row","insert-column"]},"optional":false},{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["add-row-before","add-row-after","add-column-before","add-column-after"]},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false}],"open":false}},"type":"list","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"cols","shape":{"kind":"list","item":{"kind":"object","fields":[{"name":"key","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"index","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"offset","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"affordance","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["insert-row","insert-column"]},"optional":false},{"name":"action","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["add-row-before","add-row-after","add-column-before","add-column-after"]},"optional":false},{"name":"label","type":{"kind":"terminal","name":"string"},"optional":false}],"open":false}},"type":"list","value":"[]","expression":{"source":"[]","ast":{"kind":"array","items":[]},"dependencies":[]}},{"kind":"state","name":"hovered","shape":{"kind":"object","fields":[{"name":"left","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"top","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"width","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"height","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"rowIndex","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"columnIndex","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"rowOffset","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"columnOffset","type":{"kind":"terminal","name":"string"},"optional":false}],"open":false},"type":"object"},{"kind":"state","name":"active","shape":{"kind":"object","fields":[{"name":"left","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"top","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"width","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"height","type":{"kind":"terminal","name":"number"},"optional":false},{"name":"rowIndex","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"columnIndex","type":{"kind":"terminal","name":"integer"},"optional":false},{"name":"menuLeft","type":{"kind":"terminal","name":"string"},"optional":false},{"name":"menuTop","type":{"kind":"terminal","name":"string"},"optional":false}],"open":false},"type":"object"},{"kind":"state","name":"activeKey","type":"string","value":"","expression":{"source":"\"\"","ast":{"kind":"literal","value":""},"dependencies":[]}},{"kind":"event","name":"add-row-before","type":"object({ boundaryIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"add-row-after","type":"object({ boundaryIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"add-column-before","type":"object({ boundaryIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"add-column-after","type":"object({ boundaryIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"select-row","type":"object({ rowIndex: integer, columnIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"select-column","type":"object({ rowIndex: integer, columnIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"reorder-row","type":"object({ fromIndex: integer, toIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"reorder-column","type":"object({ fromIndex: integer, toIndex: integer })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"open-cell-menu","type":"object({ rowIndex: integer, columnIndex: integer, anchor: object({ left: number, top: number, right: number, bottom: number }) })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"open-row-menu","type":"object({ rowIndex: integer, columnIndex: integer, anchor: object({ left: number, top: number, right: number, bottom: number }) })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"open-column-menu","type":"object({ rowIndex: integer, columnIndex: integer, anchor: object({ left: number, top: number, right: number, bottom: number }) })","bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
|
|
6
|
+
const T0 = ["",[],["div",["class","rows"],2],["div",["class","cols"],2],1,1,["span",["class","drop-indicator","data-drop-indicator","","hidden","","aria-hidden","true"]]];
|
|
7
|
+
const T1 = ["div",["class","control row"],["span",["class","line","aria-hidden","true"]],["span",["class","guide","data-ui-guide","","aria-hidden","true"]],["button",["type","button","class","handle"],["ui-icon",["name","plus"]],["span",["class","tooltip","role","tooltip"],0]]];
|
|
8
|
+
const T2 = ["div",["class","control col"],["span",["class","line","aria-hidden","true"]],["span",["class","guide","data-ui-guide","","aria-hidden","true"]],["button",["type","button","class","handle"],["ui-icon",["name","plus"]],["span",["class","tooltip","role","tooltip"],0]]];
|
|
9
|
+
const T3 = ["",[],["button",["type","button","class","selector row","data-action","select-row","title","Drag row to reorder; click for actions","aria-label","Row actions"],["span",["class","glyph"],["ui-icon",["name","grip-vertical"]]]],["button",["type","button","class","selector column","data-action","select-column","title","Drag column to reorder; click for actions","aria-label","Column actions"],["span",["class","glyph"],["ui-icon",["name","grip-horizontal"]]]]];
|
|
10
|
+
const T4 = ["button",["type","button","class","cell-menu","data-action","open-cell-menu","title","Cell actions","aria-label","Cell actions"],["ui-icon",["name","chevron-down"]]];
|
|
11
|
+
let P0, P1, P2, P3, P4;
|
|
12
|
+
const E = new Map();
|
|
13
|
+
const S = { n: ["rows","cols","hovered","active","activeKey"], t: [["l",["o",["key","s","index","i","offset","s","affordance",["p",formatOf(keywordFormat),false],"action",["p",formatOf(keywordFormat),false],"label","s"]]],["l",["o",["key","s","index","i","offset","s","affordance",["p",formatOf(keywordFormat),false],"action",["p",formatOf(keywordFormat),false],"label","s"]]],["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i","rowOffset","s","columnOffset","s"]],["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i","menuLeft","s","menuTop","s"]],"s"], f: import.meta.url, g: "ui-editor-table-overlay", d: { "add-row-before": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "add-row-after": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "add-column-before": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "add-column-after": [detailCheck(checkObject([["boundaryIndex", checkInteger, false]], false)), true, true, false], "select-row": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false)), true, true, false], "select-column": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false)), true, true, false], "reorder-row": [detailCheck(checkObject([["fromIndex", checkInteger, false], ["toIndex", checkInteger, false]], false)), true, true, false], "reorder-column": [detailCheck(checkObject([["fromIndex", checkInteger, false], ["toIndex", checkInteger, false]], false)), true, true, false], "open-cell-menu": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false], ["anchor", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["right", checkNumber, false], ["bottom", checkNumber, false]], false), false]], false)), true, true, false], "open-row-menu": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false], ["anchor", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["right", checkNumber, false], ["bottom", checkNumber, false]], false), false]], false)), true, true, false], "open-column-menu": [detailCheck(checkObject([["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false], ["anchor", checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["right", checkNumber, false], ["bottom", checkNumber, false]], false), false]], false)), true, true, false] }, x: dispatchDeclared };
|
|
14
|
+
const D = { props: { "geometry": { "required":false, c: checkObject([["rowBoundaries", checkList(checkNumber), false], ["columnBoundaries", checkList(checkNumber), false], ["activeCell", checkUnion([checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["width", checkNumber, false], ["height", checkNumber, false], ["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false), checkNull], "object({ left: number, top: number, width: number, height: number, rowIndex: integer, columnIndex: integer }) | null"), false], ["hoveredCell", checkUnion([checkObject([["left", checkNumber, false], ["top", checkNumber, false], ["width", checkNumber, false], ["height", checkNumber, false], ["rowIndex", checkInteger, false], ["columnIndex", checkInteger, false]], false), checkNull], "object({ left: number, top: number, width: number, height: number, rowIndex: integer, columnIndex: integer }) | null"), true]], false), j: 1, m: ["o",["rowBoundaries",["l","n"],"columnBoundaries",["l","n"],"activeCell",["u",["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i"]],"z"],"hoveredCell",["u",["o",["left","n","top","n","width","n","height","n","rowIndex","i","columnIndex","i"]],"z"]]] }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
|
|
15
|
+
const C = (host) => controller.default(host);
|
|
7
16
|
|
|
8
|
-
export function createUiEditorTableOverlay(options = {}) {
|
|
17
|
+
export function createUiEditorTableOverlay(options = {}, html) {
|
|
9
18
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
10
|
-
const projected = [];
|
|
11
19
|
const element = document.createElement("div");
|
|
12
20
|
for (const [name, value] of Object.entries(attributes)) {
|
|
13
21
|
if (value === null || value === undefined || value === false) continue;
|
|
@@ -15,109 +23,204 @@ export function createUiEditorTableOverlay(options = {}) {
|
|
|
15
23
|
}
|
|
16
24
|
if (!element.hasAttribute("aria-label")) element.setAttribute("aria-label", "Table controls");
|
|
17
25
|
element.setAttribute("data-component", "ui-editor-table-overlay");
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const
|
|
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
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
26
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
27
|
+
const v = [[], [], null, null, "", null, null];
|
|
28
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
29
|
+
let s4 = v[4];
|
|
30
|
+
const m1 = (o, j, l) => {
|
|
31
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
32
|
+
const t0 = n.firstChild.nextSibling.nextSibling;
|
|
33
|
+
const t1 = t0.firstChild.nextSibling.firstChild;
|
|
34
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: false, v1: undefined, v2: null, v3: null, v4: null, v5: null, v6: null, v7: "" };
|
|
35
|
+
p1(r, -1, E);
|
|
36
|
+
return r;
|
|
37
|
+
};
|
|
38
|
+
const p1 = (r, c, d) => {
|
|
39
|
+
const o = r.i;
|
|
40
|
+
if (c & 1073741824) r.w = 0;
|
|
41
|
+
if (c & 1073741840) {
|
|
42
|
+
const x0 = (readMember(o, "key") === v[4]);
|
|
43
|
+
const s0 = x0;
|
|
44
|
+
if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
|
|
45
|
+
}
|
|
46
|
+
if (c & 1073741824) {
|
|
47
|
+
const x1 = trackContainer(r, readMember(o, "offset"));
|
|
48
|
+
const s1 = toText(x1);
|
|
49
|
+
if (s1 !== r.v1) r.n.style.setProperty("top", r.v1 = s1);
|
|
50
|
+
const x2 = trackContainer(r, readMember(o, "key"));
|
|
51
|
+
const s2 = toAttribute(x2, "data-control-key");
|
|
52
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-control-key", r.v2 = s2);
|
|
53
|
+
const x3 = trackContainer(r, readMember(o, "affordance"));
|
|
54
|
+
const s3 = toAttribute(x3, "data-ui-affordance");
|
|
55
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "data-ui-affordance", r.v3 = s3);
|
|
56
|
+
const x4 = trackContainer(r, readMember(o, "action"));
|
|
57
|
+
const s4 = toAttribute(x4, "data-action");
|
|
58
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "data-action", r.v4 = s4);
|
|
59
|
+
const x5 = trackContainer(r, readMember(o, "index"));
|
|
60
|
+
const s5 = toAttribute(x5, "data-boundary-index");
|
|
61
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "data-boundary-index", r.v5 = s5);
|
|
62
|
+
const x6 = trackContainer(r, readMember(o, "label"));
|
|
63
|
+
const s6 = toAttribute(x6, "aria-label");
|
|
64
|
+
if (s6 !== r.v6) writeAttribute(r.a1, "aria-label", r.v6 = s6);
|
|
65
|
+
const s7 = toText(x6);
|
|
66
|
+
if (s7 !== r.v7) r.a2.data = r.v7 = s7;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const m2 = (o, j, l) => {
|
|
70
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
71
|
+
const t0 = n.firstChild.nextSibling.nextSibling;
|
|
72
|
+
const t1 = t0.firstChild.nextSibling.firstChild;
|
|
73
|
+
const r = { k: undefined, i: o, n, x: 0, y: 0, a1: t0, a2: t1, w: 0, v0: false, v1: undefined, v2: null, v3: null, v4: null, v5: null, v6: null, v7: "" };
|
|
74
|
+
p2(r, -1, E);
|
|
75
|
+
return r;
|
|
76
|
+
};
|
|
77
|
+
const p2 = (r, c, d) => {
|
|
78
|
+
const o = r.i;
|
|
79
|
+
if (c & 1073741824) r.w = 0;
|
|
80
|
+
if (c & 1073741840) {
|
|
81
|
+
const x0 = (readMember(o, "key") === v[4]);
|
|
82
|
+
const s0 = x0;
|
|
83
|
+
if (s0 !== r.v0) r.n.classList.toggle("active", r.v0 = s0);
|
|
84
|
+
}
|
|
85
|
+
if (c & 1073741824) {
|
|
86
|
+
const x1 = trackContainer(r, readMember(o, "offset"));
|
|
87
|
+
const s1 = toText(x1);
|
|
88
|
+
if (s1 !== r.v1) r.n.style.setProperty("left", r.v1 = s1);
|
|
89
|
+
const x2 = trackContainer(r, readMember(o, "key"));
|
|
90
|
+
const s2 = toAttribute(x2, "data-control-key");
|
|
91
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-control-key", r.v2 = s2);
|
|
92
|
+
const x3 = trackContainer(r, readMember(o, "affordance"));
|
|
93
|
+
const s3 = toAttribute(x3, "data-ui-affordance");
|
|
94
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "data-ui-affordance", r.v3 = s3);
|
|
95
|
+
const x4 = trackContainer(r, readMember(o, "action"));
|
|
96
|
+
const s4 = toAttribute(x4, "data-action");
|
|
97
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "data-action", r.v4 = s4);
|
|
98
|
+
const x5 = trackContainer(r, readMember(o, "index"));
|
|
99
|
+
const s5 = toAttribute(x5, "data-boundary-index");
|
|
100
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "data-boundary-index", r.v5 = s5);
|
|
101
|
+
const x6 = trackContainer(r, readMember(o, "label"));
|
|
102
|
+
const s6 = toAttribute(x6, "aria-label");
|
|
103
|
+
if (s6 !== r.v6) writeAttribute(r.a1, "aria-label", r.v6 = s6);
|
|
104
|
+
const s7 = toText(x6);
|
|
105
|
+
if (s7 !== r.v7) r.a2.data = r.v7 = s7;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const m3 = (d) => {
|
|
109
|
+
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
110
|
+
const t0 = n.firstChild;
|
|
111
|
+
const t1 = t0.nextSibling;
|
|
112
|
+
const r = { n, a0: t0, a1: t1, v0: undefined, v1: null, v2: null, v3: undefined, v4: null, v5: null };
|
|
113
|
+
p3(r, -1, d);
|
|
114
|
+
return r;
|
|
115
|
+
};
|
|
116
|
+
const p3 = (r, c, d) => {
|
|
117
|
+
if (c & 1073741828) {
|
|
118
|
+
const x0 = (checkReference(S, readDeclared(v[2], ["rowOffset"]), "s", "expression:$hovered.rowOffset:hovered.rowOffset", "Reference `hovered.rowOffset` must satisfy string.") ? readMember(v[2], "rowOffset") : NONCONFORMING);
|
|
119
|
+
if (x0 !== NONCONFORMING) {
|
|
120
|
+
const s0 = toText(x0);
|
|
121
|
+
if (s0 !== r.v0) r.a0.style.setProperty("top", r.v0 = s0);
|
|
122
|
+
}
|
|
123
|
+
const x1 = (checkReference(S, readDeclared(v[2], ["rowIndex"]), "i", "expression:$hovered.rowIndex:hovered.rowIndex", "Reference `hovered.rowIndex` must satisfy integer.") ? readMember(v[2], "rowIndex") : NONCONFORMING);
|
|
124
|
+
if (x1 !== NONCONFORMING) {
|
|
125
|
+
const s1 = toAttribute(x1, "data-row-index");
|
|
126
|
+
if (s1 !== r.v1) writeAttribute(r.a0, "data-row-index", r.v1 = s1);
|
|
127
|
+
}
|
|
128
|
+
const x2 = (checkReference(S, readDeclared(v[2], ["columnIndex"]), "i", "expression:$hovered.columnIndex:hovered.columnIndex", "Reference `hovered.columnIndex` must satisfy integer.") ? readMember(v[2], "columnIndex") : NONCONFORMING);
|
|
129
|
+
if (x2 !== NONCONFORMING) {
|
|
130
|
+
const s2 = toAttribute(x2, "data-column-index");
|
|
131
|
+
if (s2 !== r.v2) writeAttribute(r.a0, "data-column-index", r.v2 = s2);
|
|
132
|
+
}
|
|
133
|
+
const x3 = (checkReference(S, readDeclared(v[2], ["columnOffset"]), "s", "expression:$hovered.columnOffset:hovered.columnOffset", "Reference `hovered.columnOffset` must satisfy string.") ? readMember(v[2], "columnOffset") : NONCONFORMING);
|
|
134
|
+
if (x3 !== NONCONFORMING) {
|
|
135
|
+
const s3 = toText(x3);
|
|
136
|
+
if (s3 !== r.v3) r.a1.style.setProperty("left", r.v3 = s3);
|
|
137
|
+
}
|
|
138
|
+
if (x1 !== NONCONFORMING) {
|
|
139
|
+
const s4 = toAttribute(x1, "data-row-index");
|
|
140
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "data-row-index", r.v4 = s4);
|
|
141
|
+
}
|
|
142
|
+
if (x2 !== NONCONFORMING) {
|
|
143
|
+
const s5 = toAttribute(x2, "data-column-index");
|
|
144
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "data-column-index", r.v5 = s5);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const m4 = (d) => {
|
|
149
|
+
const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
|
|
150
|
+
const r = { n, v0: undefined, v1: undefined, v2: null, v3: null };
|
|
151
|
+
p4(r, -1, d);
|
|
152
|
+
return r;
|
|
153
|
+
};
|
|
154
|
+
const p4 = (r, c, d) => {
|
|
155
|
+
if (c & 1073741832) {
|
|
156
|
+
const x0 = (checkReference(S, readDeclared(v[3], ["menuLeft"]), "s", "expression:$active.menuLeft:active.menuLeft", "Reference `active.menuLeft` must satisfy string.") ? readMember(v[3], "menuLeft") : NONCONFORMING);
|
|
157
|
+
if (x0 !== NONCONFORMING) {
|
|
158
|
+
const s0 = toText(x0);
|
|
159
|
+
if (s0 !== r.v0) r.n.style.setProperty("left", r.v0 = s0);
|
|
160
|
+
}
|
|
161
|
+
const x1 = (checkReference(S, readDeclared(v[3], ["menuTop"]), "s", "expression:$active.menuTop:active.menuTop", "Reference `active.menuTop` must satisfy string.") ? readMember(v[3], "menuTop") : NONCONFORMING);
|
|
162
|
+
if (x1 !== NONCONFORMING) {
|
|
163
|
+
const s1 = toText(x1);
|
|
164
|
+
if (s1 !== r.v1) r.n.style.setProperty("top", r.v1 = s1);
|
|
165
|
+
}
|
|
166
|
+
const x2 = (checkReference(S, readDeclared(v[3], ["rowIndex"]), "i", "expression:$active.rowIndex:active.rowIndex", "Reference `active.rowIndex` must satisfy integer.") ? readMember(v[3], "rowIndex") : NONCONFORMING);
|
|
167
|
+
if (x2 !== NONCONFORMING) {
|
|
168
|
+
const s2 = toAttribute(x2, "data-row-index");
|
|
169
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-row-index", r.v2 = s2);
|
|
170
|
+
}
|
|
171
|
+
const x3 = (checkReference(S, readDeclared(v[3], ["columnIndex"]), "i", "expression:$active.columnIndex:active.columnIndex", "Reference `active.columnIndex` must satisfy integer.") ? readMember(v[3], "columnIndex") : NONCONFORMING);
|
|
172
|
+
if (x3 !== NONCONFORMING) {
|
|
173
|
+
const s3 = toAttribute(x3, "data-column-index");
|
|
174
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-column-index", r.v3 = s3);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
const p0 = (r, c, d) => {
|
|
179
|
+
if (c & 64) {
|
|
180
|
+
const x0 = !truthy(v[6]);
|
|
181
|
+
const s0 = toAttribute(x0, "hidden");
|
|
182
|
+
if (s0 !== r.v0) writeAttribute(r.n, "hidden", r.v0 = s0);
|
|
183
|
+
}
|
|
184
|
+
if (c & 1073741825) r.L0.update(v[0], d, c);
|
|
185
|
+
if (c !== -1 && c & 16) visitSelected(r.L0.m, s4, v[4], p1, c);
|
|
186
|
+
if (c & 1073741826) r.L1.update(v[1], d, c);
|
|
187
|
+
if (c !== -1 && c & 16) visitSelected(r.L1.m, s4, v[4], p2, c);
|
|
188
|
+
if (c & 1073741828) {
|
|
189
|
+
const f0 = [];
|
|
190
|
+
const t2 = truthy(recLength(f0, rec(f0, v[2])));
|
|
191
|
+
if (c === -1 || c & 4 || readsChanged(r.q2, f0)) {
|
|
192
|
+
r.q2 = f0;
|
|
193
|
+
{
|
|
194
|
+
r.b2 = undefined;
|
|
195
|
+
clearRegion(r.a3, r.e2);
|
|
196
|
+
if (t2) { r.b2 = m3(d); r.e2.before(r.b2.n); }
|
|
197
|
+
}
|
|
198
|
+
} else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
199
|
+
} else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
200
|
+
if (c & 1073741832) {
|
|
201
|
+
const f1 = [];
|
|
202
|
+
const t3 = truthy(recLength(f1, rec(f1, v[3])));
|
|
203
|
+
if (c === -1 || c & 8 || readsChanged(r.q3, f1)) {
|
|
204
|
+
r.q3 = f1;
|
|
205
|
+
{
|
|
206
|
+
r.b3 = undefined;
|
|
207
|
+
clearRegion(r.a4, r.e3);
|
|
208
|
+
if (t3) { r.b3 = m4(d); r.e3.before(r.b3.n); }
|
|
209
|
+
}
|
|
210
|
+
} else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
211
|
+
} else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
212
|
+
s4 = v[4];
|
|
213
|
+
};
|
|
214
|
+
const t0 = element.firstChild;
|
|
215
|
+
const t1 = t0.firstChild;
|
|
216
|
+
const t2 = t0.nextSibling;
|
|
217
|
+
const t3 = t2.firstChild;
|
|
218
|
+
const t4 = t2.nextSibling;
|
|
219
|
+
const t5 = t4.nextSibling.nextSibling;
|
|
220
|
+
const R = { n: element, v0: undefined, L0: new KeyedList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "key"), "control"), L1: new KeyedList(t3, t3.nextSibling, m2, p2, (o) => readMember(o, "key"), "control"), a3: t4, e2: t4.nextSibling, b2: undefined, q2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, q3: undefined };
|
|
221
|
+
const I = { B };
|
|
222
|
+
I.R = new Set();
|
|
223
|
+
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);
|
|
224
|
+
manageProps(I);
|
|
121
225
|
return element;
|
|
122
226
|
}
|
|
123
|
-
|
|
@@ -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 UiEditorTableToolbarEventMap {
|
|
3
3
|
action: CustomEvent<{ readonly action: "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" }>;
|
|
4
4
|
}
|