@threadlabs/looma 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -12
- package/components/shared/editor.js +69 -0
- package/components/shared/input-modality.js +20 -0
- package/components/shared/overlay.js +281 -0
- package/components/shared/trigger.js +17 -0
- package/components/ui-affordance-scope/ui-affordance-scope.html +22 -0
- package/components/ui-affordance-scope/ui-affordance-scope.js +76 -0
- package/components/ui-avatar/ui-avatar.html +59 -0
- package/components/ui-avatar/ui-avatar.js +47 -0
- package/components/ui-avatar-group/ui-avatar-group.html +62 -0
- package/components/ui-avatar-group/ui-avatar-group.js +27 -0
- package/components/ui-badge/ui-badge.html +94 -0
- package/components/ui-button/ui-button.html +198 -0
- package/components/ui-callout/ui-callout.html +104 -0
- package/components/ui-checkbox/ui-checkbox.html +107 -0
- package/components/ui-checkbox/ui-checkbox.js +24 -0
- package/components/ui-cluster/ui-cluster.html +49 -0
- package/components/ui-combobox/ui-combobox.html +377 -0
- package/components/ui-combobox/ui-combobox.js +432 -0
- package/components/ui-container/ui-container.html +39 -0
- package/components/ui-context-menu/ui-context-menu.html +75 -0
- package/components/ui-context-menu/ui-context-menu.js +143 -0
- package/components/ui-dialog/ui-dialog.html +178 -0
- package/components/ui-dialog/ui-dialog.js +105 -0
- package/components/ui-disclosure/ui-disclosure.html +109 -0
- package/components/ui-disclosure/ui-disclosure.js +28 -0
- package/components/ui-editable/ui-editable.html +163 -0
- package/components/ui-editable/ui-editable.js +113 -0
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +97 -0
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +71 -0
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +157 -0
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +50 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +197 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +44 -0
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +164 -0
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +75 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +422 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +119 -0
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +271 -0
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +54 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +110 -0
- package/components/ui-floating-action-button/ui-floating-action-button.html +83 -0
- package/components/ui-form-field/ui-form-field.html +45 -0
- package/components/ui-form-field/ui-form-field.js +71 -0
- package/components/ui-grid/ui-grid.html +46 -0
- package/components/ui-icon/ui-icon.html +34 -0
- package/components/ui-icon/ui-icon.js +8 -0
- package/components/ui-icon-button/ui-icon-button.html +167 -0
- package/components/ui-icon-button/ui-icon-button.js +7 -0
- package/components/ui-input/ui-input.html +81 -0
- package/components/ui-input/ui-input.js +7 -0
- package/components/ui-menu/ui-menu.html +87 -0
- package/components/ui-menu/ui-menu.js +114 -0
- package/components/ui-menu-item/ui-menu-item.html +37 -0
- package/components/ui-popover/ui-popover.html +85 -0
- package/components/ui-popover/ui-popover.js +70 -0
- package/components/ui-radio/ui-radio.html +57 -0
- package/components/ui-radio/ui-radio.js +25 -0
- package/components/ui-radio-group/ui-radio-group.html +51 -0
- package/components/ui-radio-group/ui-radio-group.js +42 -0
- package/components/ui-reel/ui-reel.html +67 -0
- package/components/ui-search-result-row/ui-search-result-row.html +101 -0
- package/components/ui-search-shell/ui-search-shell.html +142 -0
- package/components/ui-search-shell/ui-search-shell.js +60 -0
- package/components/ui-select/ui-select.html +87 -0
- package/components/ui-select/ui-select.js +16 -0
- package/components/ui-separator/ui-separator.html +22 -0
- package/components/ui-sidebar/ui-sidebar.html +183 -0
- package/components/ui-sidebar/ui-sidebar.js +178 -0
- package/components/ui-stack/ui-stack.html +59 -0
- package/components/ui-switch/ui-switch.html +95 -0
- package/components/ui-switch/ui-switch.js +24 -0
- package/components/ui-switcher/ui-switcher.html +65 -0
- package/components/ui-tabs/ui-tabs.html +134 -0
- package/components/ui-tabs/ui-tabs.js +81 -0
- package/components/ui-textarea/ui-textarea.html +80 -0
- package/components/ui-textarea/ui-textarea.js +7 -0
- package/components/ui-toast-region/ui-toast-region.html +127 -0
- package/components/ui-toast-region/ui-toast-region.js +119 -0
- package/components/ui-tooltip/ui-tooltip.html +122 -0
- package/components/ui-tooltip/ui-tooltip.js +134 -0
- package/components/ui-top-bar/ui-top-bar.html +53 -0
- package/components/ui-tree/ui-tree.html +29 -0
- package/components/ui-tree/ui-tree.js +250 -0
- package/components/ui-tree-item/ui-tree-item.html +326 -0
- package/components/ui-tree-item/ui-tree-item.js +94 -0
- package/dist/index.d.ts +4 -414
- package/dist/index.js +55 -657
- package/editor/chunks/extensions.js +7267 -0
- package/editor/chunks/table-backgrounds.js +51 -0
- package/editor/chunks/ui.js +92 -0
- package/editor/extensions/callout.d.ts +20 -0
- package/editor/extensions/index.d.ts +12 -441
- package/editor/extensions/index.js +3 -64
- package/editor/extensions/list-behavior.d.ts +7 -0
- package/editor/extensions/mention.d.ts +35 -0
- package/editor/extensions/preset.d.ts +42 -0
- package/editor/extensions/slash-command.d.ts +80 -0
- package/editor/extensions/smart-paste.d.ts +13 -0
- package/editor/extensions/table-commands.d.ts +114 -0
- package/editor/extensions/table-formatting.d.ts +60 -0
- package/editor/icons.d.ts +55 -0
- package/editor/index.d.ts +8 -6
- package/editor/index.js +96 -71
- package/editor/insert-table-grid.d.ts +7 -0
- package/editor/mention-contract.d.ts +78 -0
- package/editor/mention-menu.d.ts +9 -0
- package/editor/slash-menu.d.ts +29 -0
- package/editor/table-backgrounds.d.ts +43 -0
- package/editor/table-context-menu.d.ts +12 -0
- package/editor/table-overlay.d.ts +79 -0
- package/editor/ui.d.ts +10 -50
- package/editor/ui.js +3 -14
- package/editor/viewport.d.ts +15 -0
- package/package.json +84 -80
- package/styles/ui-affordance-scope.css +19 -0
- package/styles/ui-avatar-group.css +56 -0
- package/styles/ui-avatar.css +47 -0
- package/styles/ui-badge.css +91 -0
- package/styles/ui-button.css +206 -0
- package/styles/ui-callout.css +76 -0
- package/styles/ui-checkbox.css +98 -0
- package/styles/ui-cluster.css +46 -0
- package/styles/ui-combobox.css +213 -0
- package/styles/ui-container.css +36 -0
- package/styles/ui-context-menu.css +68 -0
- package/styles/ui-dialog.css +160 -0
- package/styles/ui-disclosure.css +95 -0
- package/styles/ui-editable.css +139 -0
- package/styles/ui-editor-insert-table-grid.css +65 -0
- package/styles/ui-editor-mention-menu.css +121 -0
- package/styles/ui-editor-slash-menu.css +179 -0
- package/styles/ui-editor-table-context-menu.css +118 -0
- package/styles/ui-editor-table-overlay.css +318 -0
- package/styles/ui-editor-table-toolbar.css +191 -0
- package/styles/ui-editor-toolbar.css +115 -0
- package/styles/ui-floating-action-button.css +82 -0
- package/styles/ui-form-field.css +36 -0
- package/styles/ui-grid.css +43 -0
- package/styles/ui-icon-button.css +169 -0
- package/styles/ui-icon.css +23 -0
- package/styles/ui-input.css +82 -0
- package/styles/ui-menu-item.css +34 -0
- package/styles/ui-menu.css +80 -0
- package/styles/ui-popover.css +76 -0
- package/styles/ui-radio-group.css +38 -0
- package/styles/ui-radio.css +46 -0
- package/styles/ui-reel.css +63 -0
- package/styles/ui-search-result-row.css +92 -0
- package/styles/ui-search-shell.css +128 -0
- package/styles/ui-select.css +86 -0
- package/styles/ui-separator.css +16 -0
- package/styles/ui-sidebar.css +166 -0
- package/styles/ui-stack.css +55 -0
- package/styles/ui-switch.css +88 -0
- package/styles/ui-switcher.css +61 -0
- package/styles/ui-tabs.css +114 -0
- package/styles/ui-textarea.css +77 -0
- package/styles/ui-toast-region.css +103 -0
- package/styles/ui-tooltip.css +113 -0
- package/styles/ui-top-bar.css +51 -0
- package/styles/ui-tree-item.css +267 -0
- package/styles/ui-tree.css +16 -0
- package/vanilla/UiAffordanceScope.d.ts +14 -0
- package/vanilla/UiAffordanceScope.js +30 -0
- package/vanilla/UiAvatar.d.ts +17 -0
- package/vanilla/UiAvatar.js +41 -0
- package/vanilla/UiAvatarGroup.d.ts +15 -0
- package/vanilla/UiAvatarGroup.js +40 -0
- package/vanilla/UiBadge.d.ts +15 -0
- package/vanilla/UiBadge.js +30 -0
- package/vanilla/UiButton.d.ts +16 -0
- package/vanilla/UiButton.js +32 -0
- package/vanilla/UiCallout.d.ts +14 -0
- package/vanilla/UiCallout.js +124 -0
- package/vanilla/UiCheckbox.d.ts +19 -0
- package/vanilla/UiCheckbox.js +47 -0
- package/vanilla/UiCluster.d.ts +15 -0
- package/vanilla/UiCluster.js +30 -0
- package/vanilla/UiCombobox.d.ts +42 -0
- package/vanilla/UiCombobox.js +194 -0
- package/vanilla/UiContainer.d.ts +15 -0
- package/vanilla/UiContainer.js +30 -0
- package/vanilla/UiContextMenu.d.ts +18 -0
- package/vanilla/UiContextMenu.js +35 -0
- package/vanilla/UiDialog.d.ts +19 -0
- package/vanilla/UiDialog.js +53 -0
- package/vanilla/UiDisclosure.d.ts +18 -0
- package/vanilla/UiDisclosure.js +49 -0
- package/vanilla/UiEditable.d.ts +22 -0
- package/vanilla/UiEditable.js +59 -0
- package/vanilla/UiEditorInsertTableGrid.d.ts +18 -0
- package/vanilla/UiEditorInsertTableGrid.js +46 -0
- package/vanilla/UiEditorMentionMenu.d.ts +21 -0
- package/vanilla/UiEditorMentionMenu.js +63 -0
- package/vanilla/UiEditorSlashMenu.d.ts +20 -0
- package/vanilla/UiEditorSlashMenu.js +74 -0
- package/vanilla/UiEditorTableContextMenu.d.ts +17 -0
- package/vanilla/UiEditorTableContextMenu.js +69 -0
- package/vanilla/UiEditorTableOverlay.d.ts +16 -0
- package/vanilla/UiEditorTableOverlay.js +113 -0
- package/vanilla/UiEditorTableToolbar.d.ts +18 -0
- package/vanilla/UiEditorTableToolbar.js +121 -0
- package/vanilla/UiEditorToolbar.d.ts +14 -0
- package/vanilla/UiEditorToolbar.js +30 -0
- package/vanilla/UiFloatingActionButton.d.ts +16 -0
- package/vanilla/UiFloatingActionButton.js +35 -0
- package/vanilla/UiFormField.d.ts +16 -0
- package/vanilla/UiFormField.js +54 -0
- package/vanilla/UiGrid.d.ts +15 -0
- package/vanilla/UiGrid.js +30 -0
- package/vanilla/UiIcon.d.ts +14 -0
- package/vanilla/UiIcon.js +40 -0
- package/vanilla/UiIconButton.d.ts +19 -0
- package/vanilla/UiIconButton.js +37 -0
- package/vanilla/UiInput.d.ts +18 -0
- package/vanilla/UiInput.js +37 -0
- package/vanilla/UiMenu.d.ts +19 -0
- package/vanilla/UiMenu.js +35 -0
- package/vanilla/UiMenuItem.d.ts +15 -0
- package/vanilla/UiMenuItem.js +43 -0
- package/vanilla/UiPopover.d.ts +18 -0
- package/vanilla/UiPopover.js +33 -0
- package/vanilla/UiRadio.d.ts +19 -0
- package/vanilla/UiRadio.js +48 -0
- package/vanilla/UiRadioGroup.d.ts +21 -0
- package/vanilla/UiRadioGroup.js +35 -0
- package/vanilla/UiReel.d.ts +16 -0
- package/vanilla/UiReel.js +34 -0
- package/vanilla/UiSearchResultRow.d.ts +15 -0
- package/vanilla/UiSearchResultRow.js +82 -0
- package/vanilla/UiSearchShell.d.ts +18 -0
- package/vanilla/UiSearchShell.js +74 -0
- package/vanilla/UiSelect.d.ts +18 -0
- package/vanilla/UiSelect.js +42 -0
- package/vanilla/UiSeparator.d.ts +14 -0
- package/vanilla/UiSeparator.js +28 -0
- package/vanilla/UiSidebar.d.ts +24 -0
- package/vanilla/UiSidebar.js +47 -0
- package/vanilla/UiStack.d.ts +16 -0
- package/vanilla/UiStack.js +32 -0
- package/vanilla/UiSwitch.d.ts +18 -0
- package/vanilla/UiSwitch.js +46 -0
- package/vanilla/UiSwitcher.d.ts +16 -0
- package/vanilla/UiSwitcher.js +32 -0
- package/vanilla/UiTabs.d.ts +18 -0
- package/vanilla/UiTabs.js +47 -0
- package/vanilla/UiTextarea.d.ts +19 -0
- package/vanilla/UiTextarea.js +40 -0
- package/vanilla/UiToastRegion.d.ts +20 -0
- package/vanilla/UiToastRegion.js +58 -0
- package/vanilla/UiTooltip.d.ts +21 -0
- package/vanilla/UiTooltip.js +34 -0
- package/vanilla/UiTopBar.d.ts +13 -0
- package/vanilla/UiTopBar.js +59 -0
- package/vanilla/UiTree.d.ts +18 -0
- package/vanilla/UiTree.js +31 -0
- package/vanilla/UiTreeItem.d.ts +26 -0
- package/vanilla/UiTreeItem.js +164 -0
- package/vanilla/index.js +48 -0
- package/vue/UiAffordanceScope.d.ts +18 -0
- package/vue/UiAffordanceScope.js +2 -0
- package/vue/UiAffordanceScope.vue +118 -0
- package/vue/UiAvatar.d.ts +23 -0
- package/vue/UiAvatar.js +2 -0
- package/vue/UiAvatar.vue +152 -0
- package/vue/UiAvatarGroup.d.ts +20 -0
- package/vue/UiAvatarGroup.js +2 -0
- package/vue/UiAvatarGroup.vue +167 -0
- package/vue/UiBadge.d.ts +20 -0
- package/vue/UiBadge.js +2 -0
- package/vue/UiBadge.vue +123 -0
- package/vue/UiButton.d.ts +22 -0
- package/vue/UiButton.js +2 -0
- package/vue/UiButton.vue +229 -0
- package/vue/UiCallout.d.ts +18 -0
- package/vue/UiCallout.js +2 -0
- package/vue/UiCallout.vue +104 -0
- package/vue/UiCheckbox.d.ts +38 -0
- package/vue/UiCheckbox.js +2 -0
- package/vue/UiCheckbox.vue +216 -0
- package/vue/UiCluster.d.ts +17 -0
- package/vue/UiCluster.js +2 -0
- package/vue/UiCluster.vue +75 -0
- package/vue/UiCombobox.d.ts +255 -0
- package/vue/UiCombobox.js +2 -0
- package/vue/UiCombobox.vue +466 -0
- package/vue/UiContainer.d.ts +17 -0
- package/vue/UiContainer.js +2 -0
- package/vue/UiContainer.vue +65 -0
- package/vue/UiContextMenu.d.ts +50 -0
- package/vue/UiContextMenu.js +2 -0
- package/vue/UiContextMenu.vue +166 -0
- package/vue/UiDialog.d.ts +39 -0
- package/vue/UiDialog.js +2 -0
- package/vue/UiDialog.vue +273 -0
- package/vue/UiDisclosure.d.ts +44 -0
- package/vue/UiDisclosure.js +2 -0
- package/vue/UiDisclosure.vue +211 -0
- package/vue/UiEditable.d.ts +48 -0
- package/vue/UiEditable.js +2 -0
- package/vue/UiEditable.vue +267 -0
- package/vue/UiEditorInsertTableGrid.d.ts +26 -0
- package/vue/UiEditorInsertTableGrid.js +2 -0
- package/vue/UiEditorInsertTableGrid.vue +210 -0
- package/vue/UiEditorMentionMenu.d.ts +44 -0
- package/vue/UiEditorMentionMenu.js +2 -0
- package/vue/UiEditorMentionMenu.vue +284 -0
- package/vue/UiEditorSlashMenu.d.ts +41 -0
- package/vue/UiEditorSlashMenu.js +2 -0
- package/vue/UiEditorSlashMenu.vue +306 -0
- package/vue/UiEditorTableContextMenu.d.ts +19 -0
- package/vue/UiEditorTableContextMenu.js +2 -0
- package/vue/UiEditorTableContextMenu.vue +252 -0
- package/vue/UiEditorTableOverlay.d.ts +66 -0
- package/vue/UiEditorTableOverlay.js +2 -0
- package/vue/UiEditorTableOverlay.vue +455 -0
- package/vue/UiEditorTableToolbar.d.ts +21 -0
- package/vue/UiEditorTableToolbar.js +2 -0
- package/vue/UiEditorTableToolbar.vue +339 -0
- package/vue/UiEditorToolbar.d.ts +18 -0
- package/vue/UiEditorToolbar.js +2 -0
- package/vue/UiEditorToolbar.vue +138 -0
- package/vue/UiFloatingActionButton.d.ts +22 -0
- package/vue/UiFloatingActionButton.js +2 -0
- package/vue/UiFloatingActionButton.vue +116 -0
- package/vue/UiFormField.d.ts +28 -0
- package/vue/UiFormField.js +2 -0
- package/vue/UiFormField.vue +124 -0
- package/vue/UiGrid.d.ts +17 -0
- package/vue/UiGrid.js +2 -0
- package/vue/UiGrid.vue +72 -0
- package/vue/UiIcon.d.ts +8 -0
- package/vue/UiIcon.js +2 -0
- package/vue/UiIcon.vue +135 -0
- package/vue/UiIconButton.d.ts +27 -0
- package/vue/UiIconButton.js +2 -0
- package/vue/UiIconButton.vue +268 -0
- package/vue/UiInput.d.ts +20 -0
- package/vue/UiInput.js +2 -0
- package/vue/UiInput.vue +177 -0
- package/vue/UiMenu.d.ts +52 -0
- package/vue/UiMenu.js +2 -0
- package/vue/UiMenu.vue +194 -0
- package/vue/UiMenuItem.d.ts +20 -0
- package/vue/UiMenuItem.js +2 -0
- package/vue/UiMenuItem.vue +55 -0
- package/vue/UiPopover.d.ts +44 -0
- package/vue/UiPopover.js +2 -0
- package/vue/UiPopover.vue +188 -0
- package/vue/UiRadio.d.ts +38 -0
- package/vue/UiRadio.js +2 -0
- package/vue/UiRadio.vue +166 -0
- package/vue/UiRadioGroup.d.ts +50 -0
- package/vue/UiRadioGroup.js +2 -0
- package/vue/UiRadioGroup.vue +161 -0
- package/vue/UiReel.d.ts +18 -0
- package/vue/UiReel.js +2 -0
- package/vue/UiReel.vue +93 -0
- package/vue/UiSearchResultRow.d.ts +28 -0
- package/vue/UiSearchResultRow.js +2 -0
- package/vue/UiSearchResultRow.vue +124 -0
- package/vue/UiSearchShell.d.ts +42 -0
- package/vue/UiSearchShell.js +2 -0
- package/vue/UiSearchShell.vue +233 -0
- package/vue/UiSelect.d.ts +30 -0
- package/vue/UiSelect.js +2 -0
- package/vue/UiSelect.vue +183 -0
- package/vue/UiSeparator.d.ts +8 -0
- package/vue/UiSeparator.js +2 -0
- package/vue/UiSeparator.vue +38 -0
- package/vue/UiSidebar.d.ts +54 -0
- package/vue/UiSidebar.js +2 -0
- package/vue/UiSidebar.vue +288 -0
- package/vue/UiStack.d.ts +18 -0
- package/vue/UiStack.js +2 -0
- package/vue/UiStack.vue +85 -0
- package/vue/UiSwitch.d.ts +36 -0
- package/vue/UiSwitch.js +2 -0
- package/vue/UiSwitch.vue +203 -0
- package/vue/UiSwitcher.d.ts +18 -0
- package/vue/UiSwitcher.js +2 -0
- package/vue/UiSwitcher.vue +91 -0
- package/vue/UiTabs.d.ts +36 -0
- package/vue/UiTabs.js +2 -0
- package/vue/UiTabs.vue +269 -0
- package/vue/UiTextarea.d.ts +22 -0
- package/vue/UiTextarea.js +2 -0
- package/vue/UiTextarea.vue +177 -0
- package/vue/UiToastRegion.d.ts +48 -0
- package/vue/UiToastRegion.js +2 -0
- package/vue/UiToastRegion.vue +256 -0
- package/vue/UiTooltip.d.ts +50 -0
- package/vue/UiTooltip.js +2 -0
- package/vue/UiTooltip.vue +230 -0
- package/vue/UiTopBar.d.ts +19 -0
- package/vue/UiTopBar.js +2 -0
- package/vue/UiTopBar.vue +56 -0
- package/vue/UiTree.d.ts +62 -0
- package/vue/UiTree.js +2 -0
- package/vue/UiTree.vue +117 -0
- package/vue/UiTreeItem.d.ts +56 -0
- package/vue/UiTreeItem.js +2 -0
- package/vue/UiTreeItem.vue +418 -0
- package/vue/chunks/UiAffordanceScope.js +112 -0
- package/vue/chunks/UiAvatar.js +144 -0
- package/vue/chunks/UiAvatarGroup.js +142 -0
- package/vue/chunks/UiBadge.js +33 -0
- package/vue/chunks/UiButton.js +47 -0
- package/vue/chunks/UiCallout.js +117 -0
- package/vue/chunks/UiCheckbox.js +167 -0
- package/vue/chunks/UiCluster.js +33 -0
- package/vue/chunks/UiCombobox.js +684 -0
- package/vue/chunks/UiContainer.js +33 -0
- package/vue/chunks/UiContextMenu.js +153 -0
- package/vue/chunks/UiDialog.js +162 -0
- package/vue/chunks/UiDisclosure.js +185 -0
- package/vue/chunks/UiEditable.js +223 -0
- package/vue/chunks/UiEditorInsertTableGrid.js +221 -0
- package/vue/chunks/UiEditorMentionMenu.js +245 -0
- package/vue/chunks/UiEditorSlashMenu.js +210 -0
- package/vue/chunks/UiEditorTableContextMenu.js +201 -0
- package/vue/chunks/UiEditorTableOverlay.js +301 -0
- package/vue/chunks/UiEditorTableToolbar.js +299 -0
- package/vue/chunks/UiEditorToolbar.js +37 -0
- package/vue/chunks/UiFloatingActionButton.js +56 -0
- package/vue/chunks/UiFormField.js +113 -0
- package/vue/chunks/UiGrid.js +33 -0
- package/vue/chunks/UiIcon.js +170 -0
- package/vue/chunks/UiIconButton.js +141 -0
- package/vue/chunks/UiInput.js +136 -0
- package/vue/chunks/UiMenu.js +163 -0
- package/vue/chunks/UiMenuItem.js +37 -0
- package/vue/chunks/UiPopover.js +149 -0
- package/vue/chunks/UiRadio.js +164 -0
- package/vue/chunks/UiRadioGroup.js +160 -0
- package/vue/chunks/UiReel.js +42 -0
- package/vue/chunks/UiSearchResultRow.js +63 -0
- package/vue/chunks/UiSearchShell.js +152 -0
- package/vue/chunks/UiSelect.js +134 -0
- package/vue/chunks/UiSeparator.js +24 -0
- package/vue/chunks/UiSidebar.js +180 -0
- package/vue/chunks/UiStack.js +38 -0
- package/vue/chunks/UiSwitch.js +162 -0
- package/vue/chunks/UiSwitcher.js +38 -0
- package/vue/chunks/UiTabs.js +210 -0
- package/vue/chunks/UiTextarea.js +139 -0
- package/vue/chunks/UiToastRegion.js +227 -0
- package/vue/chunks/UiTooltip.js +163 -0
- package/vue/chunks/UiTopBar.js +25 -0
- package/vue/chunks/UiTree.js +140 -0
- package/vue/chunks/UiTreeItem.js +315 -0
- package/vue/chunks/_plugin-vue_export-helper.js +8 -0
- package/vue/components.css +4405 -0
- package/vue/editor/LoomaEditor.d.ts +171 -0
- package/vue/editor/image-delivery.d.ts +61 -0
- package/vue/editor/index.d.ts +4 -386
- package/vue/editor/index.js +995 -1134
- package/vue/editor/primitives.d.ts +23 -0
- package/vue/index.d.ts +48 -604
- package/vue/index.js +49 -86
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/chunk-RWLYVQY6.js +0 -5719
- package/dist/chunk-XDNZIKNI.js +0 -2721
- package/dist/declarative-generated.cjs +0 -149
- package/dist/declarative-generated.d.cts +0 -16
- package/dist/declarative-generated.d.ts +0 -16
- package/dist/declarative-generated.js +0 -124
- package/dist/declarative.cjs +0 -2750
- package/dist/declarative.d.cts +0 -101
- package/dist/declarative.d.ts +0 -101
- package/dist/declarative.js +0 -15
- package/dist/index.cjs +0 -9077
- package/dist/index.d.cts +0 -414
- package/dist/loader.cjs +0 -8442
- package/dist/loader.d.cts +0 -4
- package/dist/loader.d.ts +0 -4
- package/dist/loader.js +0 -16
- package/editor/chunk-EUIH3TBV.js +0 -6826
- package/editor/chunk-JK53ENSG.js +0 -29
- package/editor/chunk-U36XNFJN.js +0 -2592
- package/editor/table-overlay-DZFGHQDt.d.ts +0 -138
- package/editor.css +0 -1592
- package/layout/index.cjs +0 -356
- package/layout/index.d.cts +0 -18
- package/layout/index.d.ts +0 -18
- package/layout/index.js +0 -341
- package/layout.css +0 -191
- package/react/index.d.ts +0 -1276
- package/react/index.js +0 -1526
- package/styles.css +0 -940
- package/svelte/index.d.ts +0 -204
- package/svelte/index.js +0 -1892
- package/vue/chunk-OX3EACZ7.js +0 -4369
package/vue/chunk-OX3EACZ7.js
DELETED
|
@@ -1,4369 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import "@threadlabs/looma/layout";
|
|
3
|
-
import "@threadlabs/looma/core";
|
|
4
|
-
|
|
5
|
-
// src/adapter.ts
|
|
6
|
-
import {
|
|
7
|
-
cloneVNode,
|
|
8
|
-
defineComponent,
|
|
9
|
-
Fragment,
|
|
10
|
-
h,
|
|
11
|
-
isVNode,
|
|
12
|
-
shallowRef,
|
|
13
|
-
watchEffect
|
|
14
|
-
} from "vue";
|
|
15
|
-
function assignNamedSlot(value, slotName) {
|
|
16
|
-
if (Array.isArray(value)) return value.map((child) => assignNamedSlot(child, slotName));
|
|
17
|
-
if (!isVNode(value)) return value;
|
|
18
|
-
if (value.type === Fragment && Array.isArray(value.children)) {
|
|
19
|
-
const fragment = cloneVNode(value);
|
|
20
|
-
fragment.children = value.children.map((child) => assignNamedSlot(child, slotName));
|
|
21
|
-
return fragment;
|
|
22
|
-
}
|
|
23
|
-
return cloneVNode(value, { slot: slotName });
|
|
24
|
-
}
|
|
25
|
-
var BASE_EVENT_BINDINGS = [
|
|
26
|
-
["open", "onOpen"],
|
|
27
|
-
["close", "onClose"],
|
|
28
|
-
["select", "onSelect"],
|
|
29
|
-
["change", "onChange"],
|
|
30
|
-
["input", "onInput"],
|
|
31
|
-
["dismiss", "onDismiss"]
|
|
32
|
-
];
|
|
33
|
-
function toHTMLElement(value) {
|
|
34
|
-
if (!value) return null;
|
|
35
|
-
if (value instanceof HTMLElement) return value;
|
|
36
|
-
const componentRoot = value.$el;
|
|
37
|
-
if (componentRoot instanceof HTMLElement) return componentRoot;
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
function createAdapterComponent(component, displayName, additionalEventBindings = [], defaultHydrationMismatch = "class", propertyBindings = [], modelEvent) {
|
|
41
|
-
const eventBindings = [...BASE_EVENT_BINDINGS, ...additionalEventBindings];
|
|
42
|
-
const callbackAttrs = new Set(eventBindings.map(([, callbackAttr]) => callbackAttr));
|
|
43
|
-
if (modelEvent !== void 0) {
|
|
44
|
-
callbackAttrs.add("modelValue");
|
|
45
|
-
callbackAttrs.add("onUpdate:modelValue");
|
|
46
|
-
}
|
|
47
|
-
const propertyAttrs = new Set(propertyBindings);
|
|
48
|
-
return defineComponent({
|
|
49
|
-
name: displayName,
|
|
50
|
-
inheritAttrs: false,
|
|
51
|
-
setup(_props, { attrs, slots }) {
|
|
52
|
-
const elementRef = shallowRef(null);
|
|
53
|
-
watchEffect((onCleanup) => {
|
|
54
|
-
const element = elementRef.value;
|
|
55
|
-
if (!element) return;
|
|
56
|
-
const adapterAttrs = attrs;
|
|
57
|
-
const propertyTarget = element;
|
|
58
|
-
const modelled = modelEvent !== void 0 && "modelValue" in adapterAttrs;
|
|
59
|
-
for (const propertyName of propertyBindings) {
|
|
60
|
-
const value = modelled && propertyName === "value" ? adapterAttrs.modelValue : adapterAttrs[propertyName];
|
|
61
|
-
if (propertyTarget[propertyName] !== value) propertyTarget[propertyName] = value;
|
|
62
|
-
}
|
|
63
|
-
const handlers = eventBindings.map(
|
|
64
|
-
([eventName, callbackAttr]) => {
|
|
65
|
-
const callback = adapterAttrs[callbackAttr];
|
|
66
|
-
return [
|
|
67
|
-
eventName,
|
|
68
|
-
typeof callback === "function" ? (event) => callback(event instanceof CustomEvent ? event.detail : event) : void 0
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
const updateModel = adapterAttrs["onUpdate:modelValue"];
|
|
73
|
-
if (modelEvent !== void 0 && typeof updateModel === "function") {
|
|
74
|
-
handlers.push([modelEvent, (event) => {
|
|
75
|
-
if (event.target === element) updateModel(element.value);
|
|
76
|
-
}]);
|
|
77
|
-
}
|
|
78
|
-
for (const [eventName, handler] of handlers) {
|
|
79
|
-
if (handler) element.addEventListener(eventName, handler);
|
|
80
|
-
}
|
|
81
|
-
onCleanup(() => {
|
|
82
|
-
for (const [eventName, handler] of handlers) {
|
|
83
|
-
if (handler) element.removeEventListener(eventName, handler);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
return () => {
|
|
88
|
-
const forwardedAttrs = Object.fromEntries(
|
|
89
|
-
Object.entries(attrs).filter(
|
|
90
|
-
([name]) => !callbackAttrs.has(name)
|
|
91
|
-
)
|
|
92
|
-
);
|
|
93
|
-
if (modelEvent !== void 0 && "modelValue" in attrs) forwardedAttrs.value = attrs.modelValue;
|
|
94
|
-
const componentSlots = Object.fromEntries(
|
|
95
|
-
Object.entries(slots).filter((entry) => Boolean(entry[1])).map(([slotName, slotFn]) => [
|
|
96
|
-
slotName,
|
|
97
|
-
() => slotName === "default" ? slotFn() : assignNamedSlot(slotFn(), slotName)
|
|
98
|
-
])
|
|
99
|
-
);
|
|
100
|
-
return h(
|
|
101
|
-
component,
|
|
102
|
-
{
|
|
103
|
-
"data-allow-mismatch": forwardedAttrs["data-allow-mismatch"] ?? defaultHydrationMismatch,
|
|
104
|
-
...forwardedAttrs,
|
|
105
|
-
class: forwardedAttrs.class,
|
|
106
|
-
ref: (value) => {
|
|
107
|
-
elementRef.value = toHTMLElement(value);
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
Object.keys(componentSlots).length > 0 ? componentSlots : void 0
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// src/generated/UiAffordanceScope.ts
|
|
118
|
-
import { defineComponent as _defineComponent } from "vue";
|
|
119
|
-
import { renderSlot as _renderSlot, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
120
|
-
import { getCurrentInstance, onMounted, onUnmounted, ref, watchEffect as watchEffect2 } from "vue";
|
|
121
|
-
import { attachLoomaComponent, updateComponentProps } from "@threadlabs/looma/core/declarative";
|
|
122
|
-
var UiAffordanceScope_default = /* @__PURE__ */ _defineComponent({
|
|
123
|
-
...{ inheritAttrs: false },
|
|
124
|
-
__name: "UiAffordanceScope",
|
|
125
|
-
props: {
|
|
126
|
-
nearRadius: { type: [Number, null], required: false, default: 16 }
|
|
127
|
-
},
|
|
128
|
-
setup(__props) {
|
|
129
|
-
const props = __props;
|
|
130
|
-
const instance = getCurrentInstance();
|
|
131
|
-
const passed = (name, attribute) => {
|
|
132
|
-
const raw = instance?.vnode.props ?? {};
|
|
133
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
134
|
-
};
|
|
135
|
-
const explicitProps = () => {
|
|
136
|
-
const valuenearRadius = props.nearRadius;
|
|
137
|
-
return { "nearRadius": passed("nearRadius", "near-radius") ? valuenearRadius : void 0 };
|
|
138
|
-
};
|
|
139
|
-
const definition = { ...{ "contract": { "tag": "ui-affordance-scope", "props": { "nearRadius": { "type": "number", "required": false, "target": { "attribute": "nearradius" }, "default": 16 } } }, "template": { "kind": "element", "name": "span", "attributes": [], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
140
|
-
const root = ref();
|
|
141
|
-
let detach;
|
|
142
|
-
onMounted(() => {
|
|
143
|
-
if (root.value == null) return;
|
|
144
|
-
detach = attachLoomaComponent(root.value, definition, "ui-affordance-scope", explicitProps());
|
|
145
|
-
});
|
|
146
|
-
watchEffect2(() => {
|
|
147
|
-
const next = explicitProps();
|
|
148
|
-
if (root.value == null) return;
|
|
149
|
-
updateComponentProps(root.value, next);
|
|
150
|
-
});
|
|
151
|
-
onUnmounted(() => {
|
|
152
|
-
detach?.();
|
|
153
|
-
});
|
|
154
|
-
return (_ctx, _cache) => {
|
|
155
|
-
return _openBlock(), _createElementBlock(
|
|
156
|
-
"span",
|
|
157
|
-
_mergeProps(_ctx.$attrs, {
|
|
158
|
-
"data-component": "ui-affordance-scope",
|
|
159
|
-
"data-component-root": "ui-affordance-scope",
|
|
160
|
-
ref_key: "root",
|
|
161
|
-
ref: root
|
|
162
|
-
}),
|
|
163
|
-
[
|
|
164
|
-
_renderSlot(_ctx.$slots, "default")
|
|
165
|
-
],
|
|
166
|
-
16
|
|
167
|
-
/* FULL_PROPS */
|
|
168
|
-
);
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
// src/generated/UiAvatarGroup.ts
|
|
174
|
-
import { defineComponent as _defineComponent2 } from "vue";
|
|
175
|
-
import { renderSlot as _renderSlot2, mergeProps as _mergeProps2, openBlock as _openBlock2, createElementBlock as _createElementBlock2 } from "vue";
|
|
176
|
-
import { getCurrentInstance as getCurrentInstance2, onMounted as onMounted2, onUnmounted as onUnmounted2, ref as ref2, watchEffect as watchEffect3 } from "vue";
|
|
177
|
-
import { attachLoomaComponent as attachLoomaComponent2, updateComponentProps as updateComponentProps2 } from "@threadlabs/looma/core/declarative";
|
|
178
|
-
var _hoisted_1 = ["aria-label"];
|
|
179
|
-
var UiAvatarGroup_default = /* @__PURE__ */ _defineComponent2({
|
|
180
|
-
...{ inheritAttrs: false },
|
|
181
|
-
__name: "UiAvatarGroup",
|
|
182
|
-
props: {
|
|
183
|
-
label: { type: [String, null], required: false, default: "People" },
|
|
184
|
-
max: { type: [Number, null], required: false, default: 5 }
|
|
185
|
-
},
|
|
186
|
-
setup(__props) {
|
|
187
|
-
const props = __props;
|
|
188
|
-
const instance = getCurrentInstance2();
|
|
189
|
-
const passed = (name, attribute) => {
|
|
190
|
-
const raw = instance?.vnode.props ?? {};
|
|
191
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
192
|
-
};
|
|
193
|
-
const explicitProps = () => {
|
|
194
|
-
const valuelabel = props.label;
|
|
195
|
-
const valuemax = props.max;
|
|
196
|
-
return { "label": passed("label", "label") ? valuelabel : void 0, "max": passed("max", "max") ? valuemax : void 0 };
|
|
197
|
-
};
|
|
198
|
-
const definition = { ...{ "contract": { "tag": "ui-avatar-group", "props": { "label": { "type": "string", "required": false, "target": { "attribute": "aria-label" }, "default": "People" }, "max": { "type": "number", "required": false, "target": { "attribute": "max" }, "default": 5 } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "role", "value": "group" }, { "kind": "attribute", "name": "aria-label", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [{ "kind": "slot" }] }, "declarations": [{ "kind": "state", "name": "overflowCount", "expression": { "source": "0", "ast": { "kind": "literal", "value": 0 }, "dependencies": [] } }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
199
|
-
const root = ref2();
|
|
200
|
-
let detach;
|
|
201
|
-
onMounted2(() => {
|
|
202
|
-
if (root.value == null) return;
|
|
203
|
-
detach = attachLoomaComponent2(root.value, definition, "ui-avatar-group", explicitProps());
|
|
204
|
-
});
|
|
205
|
-
watchEffect3(() => {
|
|
206
|
-
const next = explicitProps();
|
|
207
|
-
if (root.value == null) return;
|
|
208
|
-
updateComponentProps2(root.value, next);
|
|
209
|
-
});
|
|
210
|
-
onUnmounted2(() => {
|
|
211
|
-
detach?.();
|
|
212
|
-
});
|
|
213
|
-
return (_ctx, _cache) => {
|
|
214
|
-
return _openBlock2(), _createElementBlock2("div", _mergeProps2(_ctx.$attrs, {
|
|
215
|
-
"data-component": "ui-avatar-group",
|
|
216
|
-
"data-component-root": "ui-avatar-group",
|
|
217
|
-
role: "group",
|
|
218
|
-
"aria-label": props.label,
|
|
219
|
-
ref_key: "root",
|
|
220
|
-
ref: root
|
|
221
|
-
}), [
|
|
222
|
-
_renderSlot2(_ctx.$slots, "default")
|
|
223
|
-
], 16, _hoisted_1);
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
// src/generated/UiAvatar.ts
|
|
229
|
-
import { defineComponent as _defineComponent3 } from "vue";
|
|
230
|
-
import { renderSlot as _renderSlot3, createElementVNode as _createElementVNode, mergeProps as _mergeProps3, openBlock as _openBlock3, createElementBlock as _createElementBlock3 } from "vue";
|
|
231
|
-
import { getCurrentInstance as getCurrentInstance3, onMounted as onMounted3, onUnmounted as onUnmounted3, ref as ref3, watchEffect as watchEffect4 } from "vue";
|
|
232
|
-
import { attachLoomaComponent as attachLoomaComponent3, updateComponentProps as updateComponentProps3 } from "@threadlabs/looma/core/declarative";
|
|
233
|
-
var _hoisted_12 = {
|
|
234
|
-
class: "avatar",
|
|
235
|
-
"data-component": "ui-avatar"
|
|
236
|
-
};
|
|
237
|
-
var _hoisted_2 = ["src"];
|
|
238
|
-
var UiAvatar_default = /* @__PURE__ */ _defineComponent3({
|
|
239
|
-
...{ inheritAttrs: false },
|
|
240
|
-
__name: "UiAvatar",
|
|
241
|
-
props: {
|
|
242
|
-
alt: { type: [String, null], required: false, default: "" },
|
|
243
|
-
fallback: { type: [String, null], required: false, default: "" },
|
|
244
|
-
name: { type: [String, null], required: false, default: "" },
|
|
245
|
-
src: { type: [String, null], required: false, default: "" }
|
|
246
|
-
},
|
|
247
|
-
setup(__props) {
|
|
248
|
-
const props = __props;
|
|
249
|
-
const instance = getCurrentInstance3();
|
|
250
|
-
const passed = (name, attribute) => {
|
|
251
|
-
const raw = instance?.vnode.props ?? {};
|
|
252
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
253
|
-
};
|
|
254
|
-
const explicitProps = () => {
|
|
255
|
-
const valuealt = props.alt;
|
|
256
|
-
const valuefallback = props.fallback;
|
|
257
|
-
const valuename = props.name;
|
|
258
|
-
const valuesrc = props.src;
|
|
259
|
-
return { "alt": passed("alt", "alt") ? valuealt : void 0, "fallback": passed("fallback", "fallback") ? valuefallback : void 0, "name": passed("name", "name") ? valuename : void 0, "src": passed("src", "src") ? valuesrc : void 0 };
|
|
260
|
-
};
|
|
261
|
-
const definition = { ...{ "contract": { "tag": "ui-avatar", "props": { "alt": { "type": "string", "required": false, "target": { "attribute": "alt" }, "default": "" }, "fallback": { "type": "string", "required": false, "target": { "attribute": "fallback" }, "default": "" }, "name": { "type": "string", "required": false, "target": { "attribute": "name" }, "default": "" }, "src": { "type": "string", "required": false, "target": { "attribute": "src" }, "default": "" } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "attribute", "name": "data-has-image", "expression": "hasImage", "expressionPlan": { "source": "hasImage", "ast": { "kind": "id", "name": "hasImage" }, "dependencies": ["hasImage"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "avatar" }], "children": [{ "kind": "slot" }, { "kind": "element", "name": "img", "attributes": [{ "kind": "literal", "name": "class", "value": "avatar__managed-image" }, { "kind": "attribute", "name": "src", "expression": "src", "expressionPlan": { "source": "src", "ast": { "kind": "id", "name": "src" }, "dependencies": ["src"] } }, { "kind": "literal", "name": "alt", "value": "" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "fallback" }], "children": [] }] }] }, "declarations": [{ "kind": "state", "name": "hasImage", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasAuthoredImage", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
262
|
-
const root = ref3();
|
|
263
|
-
let detach;
|
|
264
|
-
onMounted3(() => {
|
|
265
|
-
if (root.value == null) return;
|
|
266
|
-
detach = attachLoomaComponent3(root.value, definition, "ui-avatar", explicitProps());
|
|
267
|
-
});
|
|
268
|
-
watchEffect4(() => {
|
|
269
|
-
const next = explicitProps();
|
|
270
|
-
if (root.value == null) return;
|
|
271
|
-
updateComponentProps3(root.value, next);
|
|
272
|
-
});
|
|
273
|
-
onUnmounted3(() => {
|
|
274
|
-
detach?.();
|
|
275
|
-
});
|
|
276
|
-
return (_ctx, _cache) => {
|
|
277
|
-
return _openBlock3(), _createElementBlock3(
|
|
278
|
-
"span",
|
|
279
|
-
_mergeProps3(_ctx.$attrs, {
|
|
280
|
-
"data-component": "ui-avatar",
|
|
281
|
-
"data-component-root": "ui-avatar",
|
|
282
|
-
"data-has-image": void 0,
|
|
283
|
-
ref_key: "root",
|
|
284
|
-
ref: root
|
|
285
|
-
}),
|
|
286
|
-
[
|
|
287
|
-
_createElementVNode("div", _hoisted_12, [
|
|
288
|
-
_renderSlot3(_ctx.$slots, "default"),
|
|
289
|
-
_createElementVNode("img", {
|
|
290
|
-
class: "avatar__managed-image",
|
|
291
|
-
src: props.src,
|
|
292
|
-
alt: "",
|
|
293
|
-
"aria-hidden": "true",
|
|
294
|
-
"data-component": "ui-avatar"
|
|
295
|
-
}, null, 8, _hoisted_2),
|
|
296
|
-
_cache[0] || (_cache[0] = _createElementVNode(
|
|
297
|
-
"span",
|
|
298
|
-
{
|
|
299
|
-
class: "fallback",
|
|
300
|
-
"data-component": "ui-avatar"
|
|
301
|
-
},
|
|
302
|
-
null,
|
|
303
|
-
-1
|
|
304
|
-
/* CACHED */
|
|
305
|
-
))
|
|
306
|
-
])
|
|
307
|
-
],
|
|
308
|
-
16
|
|
309
|
-
/* FULL_PROPS */
|
|
310
|
-
);
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
// src/generated/UiBadge.ts
|
|
316
|
-
import { defineComponent as _defineComponent4 } from "vue";
|
|
317
|
-
import { renderSlot as _renderSlot4, createElementVNode as _createElementVNode2, mergeProps as _mergeProps4, openBlock as _openBlock4, createElementBlock as _createElementBlock4 } from "vue";
|
|
318
|
-
import { getCurrentInstance as getCurrentInstance4, onMounted as onMounted4, onUnmounted as onUnmounted4, ref as ref4, watchEffect as watchEffect5 } from "vue";
|
|
319
|
-
import { manageGeneratedProps, updateGeneratedProps } from "@threadlabs/looma/core/declarative-generated";
|
|
320
|
-
var _hoisted_13 = ["data-variant", "data-tone"];
|
|
321
|
-
var _hoisted_22 = {
|
|
322
|
-
class: "badge__surface",
|
|
323
|
-
"data-component": "ui-badge"
|
|
324
|
-
};
|
|
325
|
-
var UiBadge_default = /* @__PURE__ */ _defineComponent4({
|
|
326
|
-
...{ inheritAttrs: false },
|
|
327
|
-
__name: "UiBadge",
|
|
328
|
-
props: {
|
|
329
|
-
tone: { type: [String, null], required: false, default: "neutral" },
|
|
330
|
-
variant: { type: [String, null], required: false, default: "subtle" }
|
|
331
|
-
},
|
|
332
|
-
setup(__props) {
|
|
333
|
-
const props = __props;
|
|
334
|
-
const instance = getCurrentInstance4();
|
|
335
|
-
const passed = (name, attribute) => {
|
|
336
|
-
const raw = instance?.vnode.props ?? {};
|
|
337
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
338
|
-
};
|
|
339
|
-
const explicitProps = () => {
|
|
340
|
-
const valuetone = props.tone;
|
|
341
|
-
const valuevariant = props.variant;
|
|
342
|
-
return { "tone": passed("tone", "tone") ? valuetone : void 0, "variant": passed("variant", "variant") ? valuevariant : void 0 };
|
|
343
|
-
};
|
|
344
|
-
const root = ref4();
|
|
345
|
-
let detach;
|
|
346
|
-
onMounted4(() => {
|
|
347
|
-
if (root.value == null) return;
|
|
348
|
-
const explicit = explicitProps();
|
|
349
|
-
detach = manageGeneratedProps(root.value, [
|
|
350
|
-
{ name: "tone", attribute: "data-tone", value: explicit["tone"], default: "neutral", bound: true, type: ["neutral", "accent", "info", "success", "warning", "danger"], required: false },
|
|
351
|
-
{ name: "variant", attribute: "data-variant", value: explicit["variant"], default: "subtle", bound: true, type: ["solid", "subtle"], required: false }
|
|
352
|
-
]);
|
|
353
|
-
});
|
|
354
|
-
watchEffect5(() => {
|
|
355
|
-
const next = explicitProps();
|
|
356
|
-
if (root.value == null) return;
|
|
357
|
-
updateGeneratedProps(root.value, next);
|
|
358
|
-
});
|
|
359
|
-
onUnmounted4(() => {
|
|
360
|
-
detach?.();
|
|
361
|
-
});
|
|
362
|
-
return (_ctx, _cache) => {
|
|
363
|
-
return _openBlock4(), _createElementBlock4("span", _mergeProps4(_ctx.$attrs, {
|
|
364
|
-
"data-component": "ui-badge",
|
|
365
|
-
"data-component-root": "ui-badge",
|
|
366
|
-
"data-variant": props.variant,
|
|
367
|
-
"data-tone": props.tone,
|
|
368
|
-
ref_key: "root",
|
|
369
|
-
ref: root
|
|
370
|
-
}), [
|
|
371
|
-
_createElementVNode2("span", _hoisted_22, [
|
|
372
|
-
_renderSlot4(_ctx.$slots, "default")
|
|
373
|
-
])
|
|
374
|
-
], 16, _hoisted_13);
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
|
|
379
|
-
// src/generated/UiButton.ts
|
|
380
|
-
import { defineComponent as _defineComponent5 } from "vue";
|
|
381
|
-
import { renderSlot as _renderSlot5, mergeProps as _mergeProps5, openBlock as _openBlock5, createElementBlock as _createElementBlock5 } from "vue";
|
|
382
|
-
import { getCurrentInstance as getCurrentInstance5, onMounted as onMounted5, onUnmounted as onUnmounted5, ref as ref5, watchEffect as watchEffect6 } from "vue";
|
|
383
|
-
import { attachLoomaComponent as attachLoomaComponent4, updateComponentProps as updateComponentProps4 } from "@threadlabs/looma/core/declarative";
|
|
384
|
-
var _hoisted_14 = ["data-size", "data-variant", "disabled"];
|
|
385
|
-
var UiButton_default = /* @__PURE__ */ _defineComponent5({
|
|
386
|
-
...{ inheritAttrs: false },
|
|
387
|
-
__name: "UiButton",
|
|
388
|
-
props: {
|
|
389
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
390
|
-
size: { type: [String, null], required: false, default: "md" },
|
|
391
|
-
variant: { type: [String, null], required: false, default: "outline" }
|
|
392
|
-
},
|
|
393
|
-
setup(__props) {
|
|
394
|
-
const props = __props;
|
|
395
|
-
const instance = getCurrentInstance5();
|
|
396
|
-
const passed = (name, attribute) => {
|
|
397
|
-
const raw = instance?.vnode.props ?? {};
|
|
398
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
399
|
-
};
|
|
400
|
-
const explicitProps = () => {
|
|
401
|
-
const valuedisabled = props.disabled;
|
|
402
|
-
const valuesize = props.size;
|
|
403
|
-
const valuevariant = props.variant;
|
|
404
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "size": passed("size", "size") ? valuesize : void 0, "variant": passed("variant", "variant") ? valuevariant : void 0 };
|
|
405
|
-
};
|
|
406
|
-
const definition = { ...{ "contract": { "tag": "ui-button", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "size": { "type": { "enum": ["sm", "md", "lg"] }, "required": false, "target": { "attribute": "data-size" }, "default": "md" }, "variant": { "type": { "enum": ["outline", "solid", "danger", "ghost", "link"] }, "required": false, "target": { "attribute": "data-variant" }, "default": "outline" } } }, "template": { "kind": "element", "name": "button", "attributes": [{ "kind": "attribute", "name": "data-size", "expression": "size", "expressionPlan": { "source": "size", "ast": { "kind": "id", "name": "size" }, "dependencies": ["size"] } }, { "kind": "attribute", "name": "data-variant", "expression": "variant", "expressionPlan": { "source": "variant", "ast": { "kind": "id", "name": "variant" }, "dependencies": ["variant"] } }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "button", "choices": ["button"] } }, source: { file: import.meta.url }, css: "" };
|
|
407
|
-
const root = ref5();
|
|
408
|
-
let detach;
|
|
409
|
-
onMounted5(() => {
|
|
410
|
-
if (root.value == null) return;
|
|
411
|
-
detach = attachLoomaComponent4(root.value, definition, "ui-button", explicitProps());
|
|
412
|
-
});
|
|
413
|
-
watchEffect6(() => {
|
|
414
|
-
const next = explicitProps();
|
|
415
|
-
if (root.value == null) return;
|
|
416
|
-
updateComponentProps4(root.value, next);
|
|
417
|
-
});
|
|
418
|
-
onUnmounted5(() => {
|
|
419
|
-
detach?.();
|
|
420
|
-
});
|
|
421
|
-
return (_ctx, _cache) => {
|
|
422
|
-
return _openBlock5(), _createElementBlock5("button", _mergeProps5(_ctx.$attrs, {
|
|
423
|
-
"data-component": "ui-button",
|
|
424
|
-
"data-component-root": "ui-button",
|
|
425
|
-
"data-size": props.size,
|
|
426
|
-
"data-variant": props.variant,
|
|
427
|
-
disabled: props.disabled,
|
|
428
|
-
ref_key: "root",
|
|
429
|
-
ref: root
|
|
430
|
-
}), [
|
|
431
|
-
_renderSlot5(_ctx.$slots, "default")
|
|
432
|
-
], 16, _hoisted_14);
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
// src/generated/UiCallout.ts
|
|
438
|
-
import { defineComponent as _defineComponent6 } from "vue";
|
|
439
|
-
import { createElementVNode as _createElementVNode3, renderSlot as _renderSlot6, mergeProps as _mergeProps6, openBlock as _openBlock6, createElementBlock as _createElementBlock6 } from "vue";
|
|
440
|
-
import { getCurrentInstance as getCurrentInstance6, onMounted as onMounted6, onUnmounted as onUnmounted6, ref as ref6, watchEffect as watchEffect7 } from "vue";
|
|
441
|
-
import { attachLoomaComponent as attachLoomaComponent5, updateComponentProps as updateComponentProps5 } from "@threadlabs/looma/core/declarative";
|
|
442
|
-
var _hoisted_15 = ["data-tone"];
|
|
443
|
-
var _hoisted_23 = {
|
|
444
|
-
class: "callout__surface",
|
|
445
|
-
"data-component": "ui-callout"
|
|
446
|
-
};
|
|
447
|
-
var _hoisted_3 = {
|
|
448
|
-
class: "content",
|
|
449
|
-
"data-component": "ui-callout"
|
|
450
|
-
};
|
|
451
|
-
var UiCallout_default = /* @__PURE__ */ _defineComponent6({
|
|
452
|
-
...{ inheritAttrs: false },
|
|
453
|
-
__name: "UiCallout",
|
|
454
|
-
props: {
|
|
455
|
-
tone: { type: [String, null], required: false, default: "info" }
|
|
456
|
-
},
|
|
457
|
-
setup(__props) {
|
|
458
|
-
const props = __props;
|
|
459
|
-
const instance = getCurrentInstance6();
|
|
460
|
-
const passed = (name, attribute) => {
|
|
461
|
-
const raw = instance?.vnode.props ?? {};
|
|
462
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
463
|
-
};
|
|
464
|
-
const explicitProps = () => {
|
|
465
|
-
const valuetone = props.tone;
|
|
466
|
-
return { "tone": passed("tone", "tone") ? valuetone : void 0 };
|
|
467
|
-
};
|
|
468
|
-
const definition = { ...{ "contract": { "tag": "ui-callout", "props": { "tone": { "type": { "enum": ["info", "note", "warning", "success", "danger"] }, "required": false, "target": { "attribute": "data-tone" }, "default": "info" } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "role", "value": "note" }, { "kind": "attribute", "name": "data-tone", "expression": "tone", "expressionPlan": { "source": "tone", "ast": { "kind": "id", "name": "tone" }, "dependencies": ["tone"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "callout__surface" }], "children": [{ "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "icon" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "content" }], "children": [{ "kind": "slot" }] }] }] }, "declarations": [], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
469
|
-
const root = ref6();
|
|
470
|
-
let detach;
|
|
471
|
-
onMounted6(() => {
|
|
472
|
-
if (root.value == null) return;
|
|
473
|
-
detach = attachLoomaComponent5(root.value, definition, "ui-callout", explicitProps());
|
|
474
|
-
});
|
|
475
|
-
watchEffect7(() => {
|
|
476
|
-
const next = explicitProps();
|
|
477
|
-
if (root.value == null) return;
|
|
478
|
-
updateComponentProps5(root.value, next);
|
|
479
|
-
});
|
|
480
|
-
onUnmounted6(() => {
|
|
481
|
-
detach?.();
|
|
482
|
-
});
|
|
483
|
-
return (_ctx, _cache) => {
|
|
484
|
-
return _openBlock6(), _createElementBlock6("div", _mergeProps6(_ctx.$attrs, {
|
|
485
|
-
"data-component": "ui-callout",
|
|
486
|
-
"data-component-root": "ui-callout",
|
|
487
|
-
role: "note",
|
|
488
|
-
"data-tone": props.tone,
|
|
489
|
-
ref_key: "root",
|
|
490
|
-
ref: root
|
|
491
|
-
}), [
|
|
492
|
-
_createElementVNode3("div", _hoisted_23, [
|
|
493
|
-
_cache[0] || (_cache[0] = _createElementVNode3(
|
|
494
|
-
"span",
|
|
495
|
-
{
|
|
496
|
-
class: "icon",
|
|
497
|
-
"aria-hidden": "true",
|
|
498
|
-
"data-component": "ui-callout"
|
|
499
|
-
},
|
|
500
|
-
null,
|
|
501
|
-
-1
|
|
502
|
-
/* CACHED */
|
|
503
|
-
)),
|
|
504
|
-
_createElementVNode3("div", _hoisted_3, [
|
|
505
|
-
_renderSlot6(_ctx.$slots, "default")
|
|
506
|
-
])
|
|
507
|
-
])
|
|
508
|
-
], 16, _hoisted_15);
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
});
|
|
512
|
-
|
|
513
|
-
// src/generated/UiCheckbox.ts
|
|
514
|
-
import { defineComponent as _defineComponent7 } from "vue";
|
|
515
|
-
import { createElementVNode as _createElementVNode4, renderSlot as _renderSlot7, mergeProps as _mergeProps7, openBlock as _openBlock7, createElementBlock as _createElementBlock7 } from "vue";
|
|
516
|
-
import { getCurrentInstance as getCurrentInstance7, onMounted as onMounted7, onUnmounted as onUnmounted7, ref as ref7, watchEffect as watchEffect8 } from "vue";
|
|
517
|
-
import { attachLoomaComponent as attachLoomaComponent6, updateComponentProps as updateComponentProps6 } from "@threadlabs/looma/core/declarative";
|
|
518
|
-
var _hoisted_16 = ["data-disabled"];
|
|
519
|
-
var _hoisted_24 = {
|
|
520
|
-
class: "control",
|
|
521
|
-
"data-component": "ui-checkbox"
|
|
522
|
-
};
|
|
523
|
-
var _hoisted_32 = ["required", "value"];
|
|
524
|
-
var _hoisted_4 = {
|
|
525
|
-
class: "label",
|
|
526
|
-
"data-component": "ui-checkbox"
|
|
527
|
-
};
|
|
528
|
-
var UiCheckbox_default = /* @__PURE__ */ _defineComponent7({
|
|
529
|
-
...{ inheritAttrs: false },
|
|
530
|
-
__name: "UiCheckbox",
|
|
531
|
-
props: {
|
|
532
|
-
checked: { type: [Boolean, null], required: false, default: false },
|
|
533
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
534
|
-
indeterminate: { type: [Boolean, null], required: false, default: false },
|
|
535
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
536
|
-
value: { type: [String, null], required: false, default: "on" }
|
|
537
|
-
},
|
|
538
|
-
emits: ["change"],
|
|
539
|
-
setup(__props, { emit: __emit }) {
|
|
540
|
-
const props = __props;
|
|
541
|
-
const emit = __emit;
|
|
542
|
-
const instance = getCurrentInstance7();
|
|
543
|
-
const passed = (name, attribute) => {
|
|
544
|
-
const raw = instance?.vnode.props ?? {};
|
|
545
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
546
|
-
};
|
|
547
|
-
const explicitProps = () => {
|
|
548
|
-
const valuechecked = props.checked;
|
|
549
|
-
const valuedisabled = props.disabled;
|
|
550
|
-
const valueindeterminate = props.indeterminate;
|
|
551
|
-
const valuerequired = props.required;
|
|
552
|
-
const valuevalue = props.value;
|
|
553
|
-
return { "checked": passed("checked", "checked") ? valuechecked : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "indeterminate": passed("indeterminate", "indeterminate") ? valueindeterminate : void 0, "required": passed("required", "required") ? valuerequired : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
554
|
-
};
|
|
555
|
-
const definition = { ...{ "contract": { "tag": "ui-checkbox", "props": { "checked": { "type": "boolean", "required": false, "target": { "attribute": "checked" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "data-disabled" }, "default": false }, "indeterminate": { "type": "boolean", "required": false, "target": { "attribute": "indeterminate" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" }, "default": "on" } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "attribute", "name": "data-disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "label", "attributes": [{ "kind": "literal", "name": "class", "value": "control" }], "children": [{ "kind": "element", "name": "input", "attributes": [{ "kind": "literal", "name": "type", "value": "checkbox" }, { "kind": "attribute", "name": "checked", "expression": "internalChecked", "expressionPlan": { "source": "internalChecked", "ast": { "kind": "id", "name": "internalChecked" }, "dependencies": ["internalChecked"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }, { "kind": "attribute", "name": "value", "expression": "value", "expressionPlan": { "source": "value", "ast": { "kind": "id", "name": "value" }, "dependencies": ["value"] } }], "children": [] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "label" }], "children": [{ "kind": "slot" }] }] }] }, "declarations": [{ "kind": "state", "name": "internalChecked", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "change", "type": "object({ checked: boolean, value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
556
|
-
const root = ref7();
|
|
557
|
-
const eventListener0 = (event) => emit("change", event.detail);
|
|
558
|
-
let detach;
|
|
559
|
-
onMounted7(() => {
|
|
560
|
-
if (root.value == null) return;
|
|
561
|
-
detach = attachLoomaComponent6(root.value, definition, "ui-checkbox", explicitProps());
|
|
562
|
-
root.value.addEventListener("change", eventListener0);
|
|
563
|
-
});
|
|
564
|
-
watchEffect8(() => {
|
|
565
|
-
const next = explicitProps();
|
|
566
|
-
if (root.value == null) return;
|
|
567
|
-
updateComponentProps6(root.value, next);
|
|
568
|
-
});
|
|
569
|
-
onUnmounted7(() => {
|
|
570
|
-
root.value?.removeEventListener("change", eventListener0);
|
|
571
|
-
detach?.();
|
|
572
|
-
});
|
|
573
|
-
return (_ctx, _cache) => {
|
|
574
|
-
return _openBlock7(), _createElementBlock7("span", _mergeProps7(_ctx.$attrs, {
|
|
575
|
-
"data-component": "ui-checkbox",
|
|
576
|
-
"data-component-root": "ui-checkbox",
|
|
577
|
-
"data-disabled": props.disabled ? "" : void 0,
|
|
578
|
-
ref_key: "root",
|
|
579
|
-
ref: root
|
|
580
|
-
}), [
|
|
581
|
-
_createElementVNode4("label", _hoisted_24, [
|
|
582
|
-
_createElementVNode4("input", {
|
|
583
|
-
type: "checkbox",
|
|
584
|
-
checked: void 0,
|
|
585
|
-
required: props.required,
|
|
586
|
-
value: props.value,
|
|
587
|
-
"data-component": "ui-checkbox"
|
|
588
|
-
}, null, 8, _hoisted_32),
|
|
589
|
-
_createElementVNode4("span", _hoisted_4, [
|
|
590
|
-
_renderSlot7(_ctx.$slots, "default")
|
|
591
|
-
])
|
|
592
|
-
])
|
|
593
|
-
], 16, _hoisted_16);
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
|
|
598
|
-
// src/generated/UiCombobox.ts
|
|
599
|
-
import { defineComponent as _defineComponent9 } from "vue";
|
|
600
|
-
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode6, renderSlot as _renderSlot9, createTextVNode as _createTextVNode, unref as _unref, withCtx as _withCtx, createVNode as _createVNode, mergeProps as _mergeProps9, openBlock as _openBlock9, createElementBlock as _createElementBlock9 } from "vue";
|
|
601
|
-
|
|
602
|
-
// src/generated/UiTooltip.ts
|
|
603
|
-
import { defineComponent as _defineComponent8 } from "vue";
|
|
604
|
-
import { renderSlot as _renderSlot8, createElementVNode as _createElementVNode5, mergeProps as _mergeProps8, openBlock as _openBlock8, createElementBlock as _createElementBlock8 } from "vue";
|
|
605
|
-
import { getCurrentInstance as getCurrentInstance8, onMounted as onMounted8, onUnmounted as onUnmounted8, ref as ref8, watchEffect as watchEffect9 } from "vue";
|
|
606
|
-
import { attachLoomaComponent as attachLoomaComponent7, updateComponentProps as updateComponentProps7 } from "@threadlabs/looma/core/declarative";
|
|
607
|
-
var _hoisted_17 = ["data-inverse"];
|
|
608
|
-
var _hoisted_25 = {
|
|
609
|
-
class: "tooltip__surface",
|
|
610
|
-
"data-component": "ui-tooltip"
|
|
611
|
-
};
|
|
612
|
-
var UiTooltip_default = /* @__PURE__ */ _defineComponent8({
|
|
613
|
-
...{ inheritAttrs: false },
|
|
614
|
-
__name: "UiTooltip",
|
|
615
|
-
props: {
|
|
616
|
-
for: { type: [String, null], required: false, default: "" },
|
|
617
|
-
hideDelay: { type: [Number, null], required: false, default: 100 },
|
|
618
|
-
inverse: { type: [Boolean, null], required: false, default: false },
|
|
619
|
-
open: { type: [Boolean, null], required: false, default: false },
|
|
620
|
-
placement: { type: [String, null], required: false, default: "top-start" },
|
|
621
|
-
showDelay: { type: [Number, null], required: false, default: 500 }
|
|
622
|
-
},
|
|
623
|
-
emits: ["open", "close"],
|
|
624
|
-
setup(__props, { emit: __emit }) {
|
|
625
|
-
const props = __props;
|
|
626
|
-
const emit = __emit;
|
|
627
|
-
const instance = getCurrentInstance8();
|
|
628
|
-
const passed = (name, attribute) => {
|
|
629
|
-
const raw = instance?.vnode.props ?? {};
|
|
630
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
631
|
-
};
|
|
632
|
-
const explicitProps = () => {
|
|
633
|
-
const valuefor = props.for;
|
|
634
|
-
const valuehideDelay = props.hideDelay;
|
|
635
|
-
const valueinverse = props.inverse;
|
|
636
|
-
const valueopen = props.open;
|
|
637
|
-
const valueplacement = props.placement;
|
|
638
|
-
const valueshowDelay = props.showDelay;
|
|
639
|
-
return { "for": passed("for", "for") ? valuefor : void 0, "hideDelay": passed("hideDelay", "hide-delay") ? valuehideDelay : void 0, "inverse": passed("inverse", "inverse") ? valueinverse : void 0, "open": passed("open", "open") ? valueopen : void 0, "placement": passed("placement", "placement") ? valueplacement : void 0, "showDelay": passed("showDelay", "show-delay") ? valueshowDelay : void 0 };
|
|
640
|
-
};
|
|
641
|
-
const definition = { ...{ "contract": { "tag": "ui-tooltip", "props": { "for": { "type": "string", "required": false, "target": { "attribute": "for" }, "default": "" }, "hideDelay": { "type": "number", "required": false, "target": { "attribute": "hidedelay" }, "default": 100 }, "inverse": { "type": "boolean", "required": false, "target": { "attribute": "data-inverse" }, "default": false }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false }, "placement": { "type": "string", "required": false, "target": { "attribute": "placement" }, "default": "top-start" }, "showDelay": { "type": "number", "required": false, "target": { "attribute": "showdelay" }, "default": 500 } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "role", "value": "tooltip" }, { "kind": "attribute", "name": "hidden", "expression": "not internalOpen", "expressionPlan": { "source": "not internalOpen", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "internalOpen" } }, "dependencies": ["internalOpen"] } }, { "kind": "attribute", "name": "data-state-open", "expression": "internalOpen", "expressionPlan": { "source": "internalOpen", "ast": { "kind": "id", "name": "internalOpen" }, "dependencies": ["internalOpen"] } }, { "kind": "attribute", "name": "data-inverse", "expression": "inverse", "expressionPlan": { "source": "inverse", "ast": { "kind": "id", "name": "inverse" }, "dependencies": ["inverse"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "tooltip__surface" }], "children": [{ "kind": "slot" }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "open", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
642
|
-
const root = ref8();
|
|
643
|
-
const eventListener0 = (event) => emit("open", event.detail);
|
|
644
|
-
const eventListener1 = (event) => emit("close", event.detail);
|
|
645
|
-
let detach;
|
|
646
|
-
onMounted8(() => {
|
|
647
|
-
if (root.value == null) return;
|
|
648
|
-
detach = attachLoomaComponent7(root.value, definition, "ui-tooltip", explicitProps());
|
|
649
|
-
root.value.addEventListener("open", eventListener0);
|
|
650
|
-
root.value.addEventListener("close", eventListener1);
|
|
651
|
-
});
|
|
652
|
-
watchEffect9(() => {
|
|
653
|
-
const next = explicitProps();
|
|
654
|
-
if (root.value == null) return;
|
|
655
|
-
updateComponentProps7(root.value, next);
|
|
656
|
-
});
|
|
657
|
-
onUnmounted8(() => {
|
|
658
|
-
root.value?.removeEventListener("open", eventListener0);
|
|
659
|
-
root.value?.removeEventListener("close", eventListener1);
|
|
660
|
-
detach?.();
|
|
661
|
-
});
|
|
662
|
-
return (_ctx, _cache) => {
|
|
663
|
-
return _openBlock8(), _createElementBlock8("span", _mergeProps8(_ctx.$attrs, {
|
|
664
|
-
"data-component": "ui-tooltip",
|
|
665
|
-
"data-component-root": "ui-tooltip",
|
|
666
|
-
role: "tooltip",
|
|
667
|
-
hidden: void 0,
|
|
668
|
-
"data-state-open": void 0,
|
|
669
|
-
"data-inverse": props.inverse ? "" : void 0,
|
|
670
|
-
ref_key: "root",
|
|
671
|
-
ref: root
|
|
672
|
-
}), [
|
|
673
|
-
_createElementVNode5("div", _hoisted_25, [
|
|
674
|
-
_renderSlot8(_ctx.$slots, "default")
|
|
675
|
-
])
|
|
676
|
-
], 16, _hoisted_17);
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
|
|
681
|
-
// src/generated/UiCombobox.ts
|
|
682
|
-
import { getCurrentInstance as getCurrentInstance9, onMounted as onMounted9, onUnmounted as onUnmounted9, ref as ref9, watchEffect as watchEffect10 } from "vue";
|
|
683
|
-
import { attachLoomaComponent as attachLoomaComponent8, updateComponentProps as updateComponentProps8 } from "@threadlabs/looma/core/declarative";
|
|
684
|
-
var _hoisted_18 = ["data-size"];
|
|
685
|
-
var _hoisted_26 = {
|
|
686
|
-
for: "input",
|
|
687
|
-
part: "label",
|
|
688
|
-
"data-component": "ui-combobox"
|
|
689
|
-
};
|
|
690
|
-
var _hoisted_33 = {
|
|
691
|
-
class: "field",
|
|
692
|
-
part: "field",
|
|
693
|
-
"data-component": "ui-combobox"
|
|
694
|
-
};
|
|
695
|
-
var _hoisted_42 = {
|
|
696
|
-
slot: "start",
|
|
697
|
-
style: { "display": "contents" }
|
|
698
|
-
};
|
|
699
|
-
var _hoisted_5 = ["placeholder", "name", "disabled", "readonly", "required"];
|
|
700
|
-
var _hoisted_6 = ["disabled"];
|
|
701
|
-
var _hoisted_7 = {
|
|
702
|
-
class: "popup",
|
|
703
|
-
part: "popup",
|
|
704
|
-
hidden: void 0,
|
|
705
|
-
"data-component": "ui-combobox"
|
|
706
|
-
};
|
|
707
|
-
var _hoisted_8 = {
|
|
708
|
-
slot: "footer",
|
|
709
|
-
style: { "display": "contents" }
|
|
710
|
-
};
|
|
711
|
-
var _hoisted_9 = {
|
|
712
|
-
class: "authored-options",
|
|
713
|
-
hidden: "",
|
|
714
|
-
"aria-hidden": "true",
|
|
715
|
-
"data-component": "ui-combobox"
|
|
716
|
-
};
|
|
717
|
-
var _hoisted_10 = {
|
|
718
|
-
slot: "",
|
|
719
|
-
style: { "display": "contents" }
|
|
720
|
-
};
|
|
721
|
-
var UiCombobox_default = /* @__PURE__ */ _defineComponent9({
|
|
722
|
-
...{ inheritAttrs: false },
|
|
723
|
-
__name: "UiCombobox",
|
|
724
|
-
props: {
|
|
725
|
-
allowCreate: { type: [Boolean, null], required: false, default: false },
|
|
726
|
-
allowFreeText: { type: [Boolean, null], required: false, default: false },
|
|
727
|
-
clearable: { type: [Boolean, null], required: false, default: false },
|
|
728
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
729
|
-
disclosure: { type: [Boolean, null], required: false, default: false },
|
|
730
|
-
help: { type: [String, null], required: false, default: "" },
|
|
731
|
-
items: { type: [Array, null], required: false },
|
|
732
|
-
label: { type: [String, null], required: false, default: "" },
|
|
733
|
-
labelVisibility: { type: [String, null], required: false, default: "visible" },
|
|
734
|
-
multiple: { type: [Boolean, null], required: false, default: false },
|
|
735
|
-
name: { type: [String, null], required: false, default: "" },
|
|
736
|
-
placeholder: { type: [String, null], required: false, default: "" },
|
|
737
|
-
query: { type: [String, null], required: false },
|
|
738
|
-
readonly: { type: [Boolean, null], required: false, default: false },
|
|
739
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
740
|
-
size: { type: [String, null], required: false, default: "md" },
|
|
741
|
-
tokenSeparators: { type: [Array, null], required: false },
|
|
742
|
-
value: { type: [String, null], required: false }
|
|
743
|
-
},
|
|
744
|
-
emits: ["query-change", "value-change", "free-entry", "create-entry", "validation-change", "options-change", "add-item", "remove-item", "create-item"],
|
|
745
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
746
|
-
const props = __props;
|
|
747
|
-
const emit = __emit;
|
|
748
|
-
const instance = getCurrentInstance9();
|
|
749
|
-
const passed = (name, attribute) => {
|
|
750
|
-
const raw = instance?.vnode.props ?? {};
|
|
751
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
752
|
-
};
|
|
753
|
-
const explicitProps = () => {
|
|
754
|
-
const valueallowCreate = props.allowCreate;
|
|
755
|
-
const valueallowFreeText = props.allowFreeText;
|
|
756
|
-
const valueclearable = props.clearable;
|
|
757
|
-
const valuedisabled = props.disabled;
|
|
758
|
-
const valuedisclosure = props.disclosure;
|
|
759
|
-
const valuehelp = props.help;
|
|
760
|
-
const valueitems = props.items;
|
|
761
|
-
const valuelabel = props.label;
|
|
762
|
-
const valuelabelVisibility = props.labelVisibility;
|
|
763
|
-
const valuemultiple = props.multiple;
|
|
764
|
-
const valuename = props.name;
|
|
765
|
-
const valueplaceholder = props.placeholder;
|
|
766
|
-
const valuequery = props.query;
|
|
767
|
-
const valuereadonly = props.readonly;
|
|
768
|
-
const valuerequired = props.required;
|
|
769
|
-
const valuesize = props.size;
|
|
770
|
-
const valuetokenSeparators = props.tokenSeparators;
|
|
771
|
-
const valuevalue = props.value;
|
|
772
|
-
return { "allowCreate": passed("allowCreate", "allow-create") ? valueallowCreate : void 0, "allowFreeText": passed("allowFreeText", "allow-free-text") ? valueallowFreeText : void 0, "clearable": passed("clearable", "clearable") ? valueclearable : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "disclosure": passed("disclosure", "disclosure") ? valuedisclosure : void 0, "help": passed("help", "help") ? valuehelp : void 0, "items": passed("items", "items") ? valueitems : void 0, "label": passed("label", "label") ? valuelabel : void 0, "labelVisibility": passed("labelVisibility", "label-visibility") ? valuelabelVisibility : void 0, "multiple": passed("multiple", "multiple") ? valuemultiple : void 0, "name": passed("name", "name") ? valuename : void 0, "placeholder": passed("placeholder", "placeholder") ? valueplaceholder : void 0, "query": passed("query", "query") ? valuequery : void 0, "readonly": passed("readonly", "readonly") ? valuereadonly : void 0, "required": passed("required", "required") ? valuerequired : void 0, "size": passed("size", "size") ? valuesize : void 0, "tokenSeparators": passed("tokenSeparators", "token-separators") ? valuetokenSeparators : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
773
|
-
};
|
|
774
|
-
const definition = { ...{ "contract": { "tag": "ui-combobox", "props": { "allowCreate": { "type": "boolean", "required": false, "target": { "attribute": "allowcreate" }, "default": false }, "allowFreeText": { "type": "boolean", "required": false, "target": { "attribute": "allowfreetext" }, "default": false }, "clearable": { "type": "boolean", "required": false, "target": { "attribute": "clearable" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "disclosure": { "type": "boolean", "required": false, "target": { "attribute": "disclosure" }, "default": false }, "help": { "type": "string", "required": false, "target": { "attribute": "help" }, "default": "" }, "items": { "type": { "kind": "list", "item": { "kind": "object", "fields": [{ "name": "id", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "value", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "label", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "group", "type": { "kind": "terminal", "name": "string" }, "optional": true }, { "name": "disabled", "type": { "kind": "terminal", "name": "boolean" }, "optional": true }], "open": false } }, "required": false, "target": { "attribute": "items" } }, "label": { "type": "string", "required": false, "target": { "attribute": "label" }, "default": "" }, "labelVisibility": { "type": { "enum": ["visible", "sr-only"] }, "required": false, "target": { "attribute": "labelvisibility" }, "default": "visible" }, "multiple": { "type": "boolean", "required": false, "target": { "attribute": "multiple" }, "default": false }, "name": { "type": "string", "required": false, "target": { "attribute": "name" }, "default": "" }, "placeholder": { "type": "string", "required": false, "target": { "attribute": "placeholder" }, "default": "" }, "query": { "type": "string", "required": false, "target": { "attribute": "query" } }, "readonly": { "type": "boolean", "required": false, "target": { "attribute": "readonly" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "size": { "type": { "enum": ["sm", "md"] }, "required": false, "target": { "attribute": "data-size" }, "default": "md" }, "tokenSeparators": { "type": { "kind": "list", "item": { "kind": "terminal", "name": "string" } }, "required": false, "target": { "attribute": "tokenseparators" } }, "value": { "type": { "kind": "union", "members": [{ "kind": "terminal", "name": "string" }, { "kind": "terminal", "name": "null" }] }, "required": false, "target": { "attribute": "value" } } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "attribute", "name": "data-size", "expression": "size", "expressionPlan": { "source": "size", "ast": { "kind": "id", "name": "size" }, "dependencies": ["size"] } }], "children": [{ "kind": "element", "name": "label", "attributes": [{ "kind": "literal", "name": "for", "value": "input" }, { "kind": "literal", "name": "part", "value": "label" }], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [] }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "field" }, { "kind": "literal", "name": "part", "value": "field" }], "children": [{ "kind": "slot", "fallback": [], "name": "start" }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "items" }, { "kind": "literal", "name": "role", "value": "group" }], "children": [], "flow": { "kind": "if", "test": "multiple", "testPlan": { "source": "multiple", "ast": { "kind": "id", "name": "multiple" }, "dependencies": ["multiple"] } } }, { "kind": "element", "name": "input", "attributes": [{ "kind": "literal", "name": "id", "value": "input" }, { "kind": "literal", "name": "role", "value": "combobox" }, { "kind": "literal", "name": "aria-autocomplete", "value": "list" }, { "kind": "literal", "name": "aria-controls", "value": "listbox" }, { "kind": "attribute", "name": "value", "expression": "display", "expressionPlan": { "source": "display", "ast": { "kind": "id", "name": "display" }, "dependencies": ["display"] } }, { "kind": "attribute", "name": "placeholder", "expression": "placeholder", "expressionPlan": { "source": "placeholder", "ast": { "kind": "id", "name": "placeholder" }, "dependencies": ["placeholder"] } }, { "kind": "attribute", "name": "name", "expression": "name", "expressionPlan": { "source": "name", "ast": { "kind": "id", "name": "name" }, "dependencies": ["name"] } }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "readonly", "expression": "readonly", "expressionPlan": { "source": "readonly", "ast": { "kind": "id", "name": "readonly" }, "dependencies": ["readonly"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }, { "kind": "literal", "name": "autocomplete", "value": "off" }, { "kind": "literal", "name": "part", "value": "input" }], "children": [] }, { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "type", "value": "button" }, { "kind": "literal", "name": "part", "value": "affordance" }], "children": [{ "kind": "element", "name": "svg", "attributes": [{ "kind": "literal", "name": "class", "value": "affordance-icon" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }, { "kind": "literal", "name": "viewBox", "value": "0 0 24 24" }, { "kind": "literal", "name": "fill", "value": "none" }, { "kind": "literal", "name": "stroke", "value": "currentColor" }, { "kind": "literal", "name": "stroke-width", "value": "2" }, { "kind": "literal", "name": "stroke-linecap", "value": "round" }], "children": [{ "kind": "element", "name": "path", "attributes": [{ "kind": "literal", "name": "d", "value": "M7 7l10 10M17 7 7 17" }], "children": [] }] }], "flow": { "kind": "if", "test": "clearable", "testPlan": { "source": "clearable", "ast": { "kind": "id", "name": "clearable" }, "dependencies": ["clearable"] } } }, { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "id", "value": "help" }, { "kind": "literal", "name": "type", "value": "button" }, { "kind": "literal", "name": "part", "value": "affordance" }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [{ "kind": "text", "value": "?" }] }], "flow": { "kind": "if", "test": "help", "testPlan": { "source": "help", "ast": { "kind": "id", "name": "help" }, "dependencies": ["help"] } } }, { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "type", "value": "button" }, { "kind": "literal", "name": "part", "value": "affordance" }, { "kind": "literal", "name": "aria-controls", "value": "listbox" }], "children": [{ "kind": "element", "name": "svg", "attributes": [{ "kind": "literal", "name": "class", "value": "affordance-icon" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }, { "kind": "literal", "name": "viewBox", "value": "0 0 24 24" }, { "kind": "literal", "name": "fill", "value": "none" }, { "kind": "literal", "name": "stroke", "value": "currentColor" }, { "kind": "literal", "name": "stroke-width", "value": "2.25" }, { "kind": "literal", "name": "stroke-linecap", "value": "round" }, { "kind": "literal", "name": "stroke-linejoin", "value": "round" }], "children": [{ "kind": "element", "name": "path", "attributes": [{ "kind": "literal", "name": "d", "value": "m6 9 6 6 6-6" }], "children": [] }] }], "flow": { "kind": "if", "test": "disclosure", "testPlan": { "source": "disclosure", "ast": { "kind": "id", "name": "disclosure" }, "dependencies": ["disclosure"] } } }] }, { "kind": "element", "name": "ui-tooltip", "attributes": [{ "kind": "literal", "name": "id", "value": "help-text" }, { "kind": "literal", "name": "for", "value": "help" }], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "help", "expressionPlan": { "source": "help", "ast": { "kind": "id", "name": "help" }, "dependencies": ["help"] } }], "children": [] }], "flow": { "kind": "if", "test": "help", "testPlan": { "source": "help", "ast": { "kind": "id", "name": "help" }, "dependencies": ["help"] } } }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "popup" }, { "kind": "literal", "name": "part", "value": "popup" }, { "kind": "attribute", "name": "hidden", "expression": "not expanded", "expressionPlan": { "source": "not expanded", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "expanded" } }, "dependencies": ["expanded"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "id", "value": "listbox" }, { "kind": "literal", "name": "role", "value": "listbox" }], "children": [] }, { "kind": "slot", "fallback": [], "name": "footer" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "id", "value": "validation" }, { "kind": "literal", "name": "class", "value": "message" }, { "kind": "literal", "name": "part", "value": "validation" }, { "kind": "attribute", "name": "hidden", "expression": "not validation.issues.length", "expressionPlan": { "source": "not validation.issues.length", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "member", "object": { "kind": "member", "object": { "kind": "id", "name": "validation" }, "key": "issues" }, "key": "length" } }, "dependencies": ["validation.issues.length"] } }], "children": [] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "sr-only" }, { "kind": "literal", "name": "role", "value": "status" }, { "kind": "literal", "name": "aria-live", "value": "polite" }, { "kind": "literal", "name": "aria-atomic", "value": "true" }], "children": [] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "authored-options" }, { "kind": "literal", "name": "hidden", "value": "" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [{ "kind": "slot" }] }] }, "declarations": [{ "kind": "state", "name": "raw", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "state", "name": "display", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "state", "name": "selected", "expression": { "source": "null", "ast": { "kind": "literal", "value": null }, "dependencies": [] } }, { "kind": "state", "name": "expanded", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "rows", "expression": { "source": "[]", "ast": { "kind": "array", "items": [] }, "dependencies": [] } }, { "kind": "state", "name": "active", "expression": { "source": "-1", "ast": { "kind": "unary", "op": "-", "operand": { "kind": "literal", "value": 1 } }, "dependencies": [] } }, { "kind": "state", "name": "loading", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "helpOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "lookupError", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "state", "name": "validation", "expression": { "source": "{ status: 'pristine', touched: false, dirty: false, issues: [] }", "ast": { "kind": "object", "pairs": [{ "key": "status", "value": { "kind": "literal", "value": "pristine" } }, { "key": "touched", "value": { "kind": "literal", "value": false } }, { "key": "dirty", "value": { "kind": "literal", "value": false } }, { "key": "issues", "value": { "kind": "array", "items": [] } }] }, "dependencies": [] } }, { "kind": "event", "name": "query-change", "type": "object({ query: string, display: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "value-change", "type": "object({ value: string | null, query: string, option: object({ id: string, value: string, label: string, group?: string, disabled?: boolean }) | null, kind: selection | clear | free-entry | create, trigger: keyboard | pointer | programmatic }) | list(object({ id: string, value: string, label: string, group?: string, disabled?: boolean }))", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "free-entry", "type": "object({ value: string | null, query: string, option: object({ id: string, value: string, label: string, group?: string, disabled?: boolean }) | null, kind: selection | clear | free-entry | create, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "create-entry", "type": "object({ value: string | null, query: string, option: object({ id: string, value: string, label: string, group?: string, disabled?: boolean }) | null, kind: selection | clear | free-entry | create, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "validation-change", "type": "object({ status: pristine | pending | valid | warning | error, touched: boolean, dirty: boolean, issues: list(object({ message: string, path?: list(unknown), severity?: error | warning })), output?: unknown })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "options-change", "type": "list(object({ id: string, value: string, label: string, group?: string, disabled?: boolean }))", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "add-item", "type": "object({ item: object({ id: string, value: string, label: string, group?: string, disabled?: boolean }), index: integer, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "remove-item", "type": "object({ item: object({ id: string, value: string, label: string, group?: string, disabled?: boolean }), index: integer, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "create-item", "type": "object({ query: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "method", "name": "validate", "exportName": "validate", "returns": "promise(unknown)" }, { "kind": "method", "name": "focusInput", "exportName": "focusInput", "returns": "promise(undefined)" }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
775
|
-
const root = ref9();
|
|
776
|
-
const eventListener0 = (event) => emit("query-change", event.detail);
|
|
777
|
-
const eventListener1 = (event) => emit("value-change", event.detail);
|
|
778
|
-
const eventListener2 = (event) => emit("free-entry", event.detail);
|
|
779
|
-
const eventListener3 = (event) => emit("create-entry", event.detail);
|
|
780
|
-
const eventListener4 = (event) => emit("validation-change", event.detail);
|
|
781
|
-
const eventListener5 = (event) => emit("options-change", event.detail);
|
|
782
|
-
const eventListener6 = (event) => emit("add-item", event.detail);
|
|
783
|
-
const eventListener7 = (event) => emit("remove-item", event.detail);
|
|
784
|
-
const eventListener8 = (event) => emit("create-item", event.detail);
|
|
785
|
-
let detach;
|
|
786
|
-
onMounted9(() => {
|
|
787
|
-
if (root.value == null) return;
|
|
788
|
-
detach = attachLoomaComponent8(root.value, definition, "ui-combobox", explicitProps());
|
|
789
|
-
root.value.addEventListener("query-change", eventListener0);
|
|
790
|
-
root.value.addEventListener("value-change", eventListener1);
|
|
791
|
-
root.value.addEventListener("free-entry", eventListener2);
|
|
792
|
-
root.value.addEventListener("create-entry", eventListener3);
|
|
793
|
-
root.value.addEventListener("validation-change", eventListener4);
|
|
794
|
-
root.value.addEventListener("options-change", eventListener5);
|
|
795
|
-
root.value.addEventListener("add-item", eventListener6);
|
|
796
|
-
root.value.addEventListener("remove-item", eventListener7);
|
|
797
|
-
root.value.addEventListener("create-item", eventListener8);
|
|
798
|
-
});
|
|
799
|
-
watchEffect10(() => {
|
|
800
|
-
const next = explicitProps();
|
|
801
|
-
if (root.value == null) return;
|
|
802
|
-
updateComponentProps8(root.value, next);
|
|
803
|
-
});
|
|
804
|
-
__expose({
|
|
805
|
-
validate: () => root.value["validate"](),
|
|
806
|
-
focusInput: () => root.value["focusInput"]()
|
|
807
|
-
});
|
|
808
|
-
onUnmounted9(() => {
|
|
809
|
-
root.value?.removeEventListener("query-change", eventListener0);
|
|
810
|
-
root.value?.removeEventListener("value-change", eventListener1);
|
|
811
|
-
root.value?.removeEventListener("free-entry", eventListener2);
|
|
812
|
-
root.value?.removeEventListener("create-entry", eventListener3);
|
|
813
|
-
root.value?.removeEventListener("validation-change", eventListener4);
|
|
814
|
-
root.value?.removeEventListener("options-change", eventListener5);
|
|
815
|
-
root.value?.removeEventListener("add-item", eventListener6);
|
|
816
|
-
root.value?.removeEventListener("remove-item", eventListener7);
|
|
817
|
-
root.value?.removeEventListener("create-item", eventListener8);
|
|
818
|
-
detach?.();
|
|
819
|
-
});
|
|
820
|
-
return (_ctx, _cache) => {
|
|
821
|
-
return _openBlock9(), _createElementBlock9("div", _mergeProps9(_ctx.$attrs, {
|
|
822
|
-
"data-component": "ui-combobox",
|
|
823
|
-
"data-component-root": "ui-combobox",
|
|
824
|
-
"data-size": props.size,
|
|
825
|
-
ref_key: "root",
|
|
826
|
-
ref: root
|
|
827
|
-
}), [
|
|
828
|
-
_createElementVNode6(
|
|
829
|
-
"label",
|
|
830
|
-
_hoisted_26,
|
|
831
|
-
_toDisplayString(props.label),
|
|
832
|
-
1
|
|
833
|
-
/* TEXT */
|
|
834
|
-
),
|
|
835
|
-
_createElementVNode6("div", _hoisted_33, [
|
|
836
|
-
_createElementVNode6("span", _hoisted_42, [
|
|
837
|
-
_renderSlot9(_ctx.$slots, "start")
|
|
838
|
-
]),
|
|
839
|
-
_cache[1] || (_cache[1] = _createElementVNode6(
|
|
840
|
-
"div",
|
|
841
|
-
{
|
|
842
|
-
class: "items",
|
|
843
|
-
role: "group",
|
|
844
|
-
"data-component": "ui-combobox"
|
|
845
|
-
},
|
|
846
|
-
null,
|
|
847
|
-
-1
|
|
848
|
-
/* CACHED */
|
|
849
|
-
)),
|
|
850
|
-
_createElementVNode6("input", {
|
|
851
|
-
id: "input",
|
|
852
|
-
role: "combobox",
|
|
853
|
-
"aria-autocomplete": "list",
|
|
854
|
-
"aria-controls": "listbox",
|
|
855
|
-
value: void 0,
|
|
856
|
-
placeholder: props.placeholder,
|
|
857
|
-
name: props.name,
|
|
858
|
-
disabled: props.disabled,
|
|
859
|
-
readonly: props.readonly,
|
|
860
|
-
required: props.required,
|
|
861
|
-
autocomplete: "off",
|
|
862
|
-
part: "input",
|
|
863
|
-
"data-component": "ui-combobox"
|
|
864
|
-
}, null, 8, _hoisted_5),
|
|
865
|
-
_cache[2] || (_cache[2] = _createElementVNode6(
|
|
866
|
-
"button",
|
|
867
|
-
{
|
|
868
|
-
type: "button",
|
|
869
|
-
part: "affordance",
|
|
870
|
-
"data-component": "ui-combobox"
|
|
871
|
-
},
|
|
872
|
-
[
|
|
873
|
-
_createElementVNode6("svg", {
|
|
874
|
-
class: "affordance-icon",
|
|
875
|
-
"aria-hidden": "true",
|
|
876
|
-
viewBox: "0 0 24 24",
|
|
877
|
-
fill: "none",
|
|
878
|
-
stroke: "currentColor",
|
|
879
|
-
"stroke-width": "2",
|
|
880
|
-
"stroke-linecap": "round",
|
|
881
|
-
"data-component": "ui-combobox"
|
|
882
|
-
}, [
|
|
883
|
-
_createElementVNode6("path", {
|
|
884
|
-
d: "M7 7l10 10M17 7 7 17",
|
|
885
|
-
"data-component": "ui-combobox"
|
|
886
|
-
})
|
|
887
|
-
])
|
|
888
|
-
],
|
|
889
|
-
-1
|
|
890
|
-
/* CACHED */
|
|
891
|
-
)),
|
|
892
|
-
_createElementVNode6("button", {
|
|
893
|
-
id: "help",
|
|
894
|
-
type: "button",
|
|
895
|
-
part: "affordance",
|
|
896
|
-
disabled: props.disabled,
|
|
897
|
-
"data-component": "ui-combobox"
|
|
898
|
-
}, [..._cache[0] || (_cache[0] = [
|
|
899
|
-
_createElementVNode6(
|
|
900
|
-
"span",
|
|
901
|
-
{
|
|
902
|
-
"aria-hidden": "true",
|
|
903
|
-
"data-component": "ui-combobox"
|
|
904
|
-
},
|
|
905
|
-
" ? ",
|
|
906
|
-
-1
|
|
907
|
-
/* CACHED */
|
|
908
|
-
)
|
|
909
|
-
])], 8, _hoisted_6),
|
|
910
|
-
_cache[3] || (_cache[3] = _createElementVNode6(
|
|
911
|
-
"button",
|
|
912
|
-
{
|
|
913
|
-
type: "button",
|
|
914
|
-
part: "affordance",
|
|
915
|
-
"aria-controls": "listbox",
|
|
916
|
-
"data-component": "ui-combobox"
|
|
917
|
-
},
|
|
918
|
-
[
|
|
919
|
-
_createElementVNode6("svg", {
|
|
920
|
-
class: "affordance-icon",
|
|
921
|
-
"aria-hidden": "true",
|
|
922
|
-
viewBox: "0 0 24 24",
|
|
923
|
-
fill: "none",
|
|
924
|
-
stroke: "currentColor",
|
|
925
|
-
"stroke-width": "2.25",
|
|
926
|
-
"stroke-linecap": "round",
|
|
927
|
-
"stroke-linejoin": "round",
|
|
928
|
-
"data-component": "ui-combobox"
|
|
929
|
-
}, [
|
|
930
|
-
_createElementVNode6("path", {
|
|
931
|
-
d: "m6 9 6 6 6-6",
|
|
932
|
-
"data-component": "ui-combobox"
|
|
933
|
-
})
|
|
934
|
-
])
|
|
935
|
-
],
|
|
936
|
-
-1
|
|
937
|
-
/* CACHED */
|
|
938
|
-
))
|
|
939
|
-
]),
|
|
940
|
-
_createVNode(_unref(UiTooltip_default), {
|
|
941
|
-
id: "help-text",
|
|
942
|
-
for: "help",
|
|
943
|
-
"data-component": "ui-combobox"
|
|
944
|
-
}, {
|
|
945
|
-
default: _withCtx(() => [
|
|
946
|
-
_createTextVNode(
|
|
947
|
-
_toDisplayString(props.help),
|
|
948
|
-
1
|
|
949
|
-
/* TEXT */
|
|
950
|
-
)
|
|
951
|
-
]),
|
|
952
|
-
_: 1
|
|
953
|
-
/* STABLE */
|
|
954
|
-
}),
|
|
955
|
-
_createElementVNode6("div", _hoisted_7, [
|
|
956
|
-
_cache[4] || (_cache[4] = _createElementVNode6(
|
|
957
|
-
"div",
|
|
958
|
-
{
|
|
959
|
-
id: "listbox",
|
|
960
|
-
role: "listbox",
|
|
961
|
-
"data-component": "ui-combobox"
|
|
962
|
-
},
|
|
963
|
-
null,
|
|
964
|
-
-1
|
|
965
|
-
/* CACHED */
|
|
966
|
-
)),
|
|
967
|
-
_createElementVNode6("span", _hoisted_8, [
|
|
968
|
-
_renderSlot9(_ctx.$slots, "footer")
|
|
969
|
-
])
|
|
970
|
-
]),
|
|
971
|
-
_cache[5] || (_cache[5] = _createElementVNode6(
|
|
972
|
-
"div",
|
|
973
|
-
{
|
|
974
|
-
id: "validation",
|
|
975
|
-
class: "message",
|
|
976
|
-
part: "validation",
|
|
977
|
-
hidden: void 0,
|
|
978
|
-
"data-component": "ui-combobox"
|
|
979
|
-
},
|
|
980
|
-
null,
|
|
981
|
-
-1
|
|
982
|
-
/* CACHED */
|
|
983
|
-
)),
|
|
984
|
-
_cache[6] || (_cache[6] = _createElementVNode6(
|
|
985
|
-
"div",
|
|
986
|
-
{
|
|
987
|
-
class: "sr-only",
|
|
988
|
-
role: "status",
|
|
989
|
-
"aria-live": "polite",
|
|
990
|
-
"aria-atomic": "true",
|
|
991
|
-
"data-component": "ui-combobox"
|
|
992
|
-
},
|
|
993
|
-
null,
|
|
994
|
-
-1
|
|
995
|
-
/* CACHED */
|
|
996
|
-
)),
|
|
997
|
-
_createElementVNode6("div", _hoisted_9, [
|
|
998
|
-
_createElementVNode6("span", _hoisted_10, [
|
|
999
|
-
_renderSlot9(_ctx.$slots, "default")
|
|
1000
|
-
])
|
|
1001
|
-
])
|
|
1002
|
-
], -2, _hoisted_18);
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
});
|
|
1006
|
-
|
|
1007
|
-
// src/generated/UiContextMenu.ts
|
|
1008
|
-
import { defineComponent as _defineComponent11 } from "vue";
|
|
1009
|
-
import { renderSlot as _renderSlot11, unref as _unref2, withCtx as _withCtx2, createVNode as _createVNode2, createElementVNode as _createElementVNode8, mergeProps as _mergeProps11, openBlock as _openBlock11, createElementBlock as _createElementBlock11 } from "vue";
|
|
1010
|
-
|
|
1011
|
-
// src/generated/UiMenu.ts
|
|
1012
|
-
import { defineComponent as _defineComponent10 } from "vue";
|
|
1013
|
-
import { renderSlot as _renderSlot10, createElementVNode as _createElementVNode7, mergeProps as _mergeProps10, openBlock as _openBlock10, createElementBlock as _createElementBlock10 } from "vue";
|
|
1014
|
-
import { getCurrentInstance as getCurrentInstance10, onMounted as onMounted10, onUnmounted as onUnmounted10, ref as ref10, watchEffect as watchEffect11 } from "vue";
|
|
1015
|
-
import { attachLoomaComponent as attachLoomaComponent9, updateComponentProps as updateComponentProps9 } from "@threadlabs/looma/core/declarative";
|
|
1016
|
-
var _hoisted_19 = {
|
|
1017
|
-
class: "menu__surface",
|
|
1018
|
-
"data-component": "ui-menu"
|
|
1019
|
-
};
|
|
1020
|
-
var UiMenu_default = /* @__PURE__ */ _defineComponent10({
|
|
1021
|
-
...{ inheritAttrs: false },
|
|
1022
|
-
__name: "UiMenu",
|
|
1023
|
-
props: {
|
|
1024
|
-
for: { type: [String, null], required: false, default: "" },
|
|
1025
|
-
open: { type: [Boolean, null], required: false, default: false },
|
|
1026
|
-
placement: { type: [String, null], required: false, default: "bottom-start" }
|
|
1027
|
-
},
|
|
1028
|
-
emits: ["select", "open", "close"],
|
|
1029
|
-
setup(__props, { emit: __emit }) {
|
|
1030
|
-
const props = __props;
|
|
1031
|
-
const emit = __emit;
|
|
1032
|
-
const instance = getCurrentInstance10();
|
|
1033
|
-
const passed = (name, attribute) => {
|
|
1034
|
-
const raw = instance?.vnode.props ?? {};
|
|
1035
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1036
|
-
};
|
|
1037
|
-
const explicitProps = () => {
|
|
1038
|
-
const valuefor = props.for;
|
|
1039
|
-
const valueopen = props.open;
|
|
1040
|
-
const valueplacement = props.placement;
|
|
1041
|
-
return { "for": passed("for", "for") ? valuefor : void 0, "open": passed("open", "open") ? valueopen : void 0, "placement": passed("placement", "placement") ? valueplacement : void 0 };
|
|
1042
|
-
};
|
|
1043
|
-
const definition = { ...{ "contract": { "tag": "ui-menu", "props": { "for": { "type": "string", "required": false, "target": { "attribute": "for" }, "default": "" }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false }, "placement": { "type": "string", "required": false, "target": { "attribute": "placement" }, "default": "bottom-start" } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "role", "value": "menu" }, { "kind": "literal", "name": "aria-orientation", "value": "vertical" }, { "kind": "attribute", "name": "data-state-open", "expression": "internalOpen", "expressionPlan": { "source": "internalOpen", "ast": { "kind": "id", "name": "internalOpen" }, "dependencies": ["internalOpen"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "menu__surface" }], "children": [{ "kind": "slot" }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "select", "type": "object({ value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "open", "type": "object({ open: boolean, reason: action | programmatic, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
1044
|
-
const root = ref10();
|
|
1045
|
-
const eventListener0 = (event) => emit("select", event.detail);
|
|
1046
|
-
const eventListener1 = (event) => emit("open", event.detail);
|
|
1047
|
-
const eventListener2 = (event) => emit("close", event.detail);
|
|
1048
|
-
let detach;
|
|
1049
|
-
onMounted10(() => {
|
|
1050
|
-
if (root.value == null) return;
|
|
1051
|
-
detach = attachLoomaComponent9(root.value, definition, "ui-menu", explicitProps());
|
|
1052
|
-
root.value.addEventListener("select", eventListener0);
|
|
1053
|
-
root.value.addEventListener("open", eventListener1);
|
|
1054
|
-
root.value.addEventListener("close", eventListener2);
|
|
1055
|
-
});
|
|
1056
|
-
watchEffect11(() => {
|
|
1057
|
-
const next = explicitProps();
|
|
1058
|
-
if (root.value == null) return;
|
|
1059
|
-
updateComponentProps9(root.value, next);
|
|
1060
|
-
});
|
|
1061
|
-
onUnmounted10(() => {
|
|
1062
|
-
root.value?.removeEventListener("select", eventListener0);
|
|
1063
|
-
root.value?.removeEventListener("open", eventListener1);
|
|
1064
|
-
root.value?.removeEventListener("close", eventListener2);
|
|
1065
|
-
detach?.();
|
|
1066
|
-
});
|
|
1067
|
-
return (_ctx, _cache) => {
|
|
1068
|
-
return _openBlock10(), _createElementBlock10(
|
|
1069
|
-
"div",
|
|
1070
|
-
_mergeProps10(_ctx.$attrs, {
|
|
1071
|
-
"data-component": "ui-menu",
|
|
1072
|
-
"data-component-root": "ui-menu",
|
|
1073
|
-
role: "menu",
|
|
1074
|
-
"aria-orientation": "vertical",
|
|
1075
|
-
"data-state-open": void 0,
|
|
1076
|
-
ref_key: "root",
|
|
1077
|
-
ref: root
|
|
1078
|
-
}),
|
|
1079
|
-
[
|
|
1080
|
-
_createElementVNode7("div", _hoisted_19, [
|
|
1081
|
-
_renderSlot10(_ctx.$slots, "default")
|
|
1082
|
-
])
|
|
1083
|
-
],
|
|
1084
|
-
16
|
|
1085
|
-
/* FULL_PROPS */
|
|
1086
|
-
);
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
});
|
|
1090
|
-
|
|
1091
|
-
// src/generated/UiContextMenu.ts
|
|
1092
|
-
import { getCurrentInstance as getCurrentInstance11, onMounted as onMounted11, onUnmounted as onUnmounted11, ref as ref11, watchEffect as watchEffect12 } from "vue";
|
|
1093
|
-
import { attachLoomaComponent as attachLoomaComponent10, updateComponentProps as updateComponentProps10 } from "@threadlabs/looma/core/declarative";
|
|
1094
|
-
var _hoisted_110 = {
|
|
1095
|
-
class: "menu",
|
|
1096
|
-
"data-state-open": void 0,
|
|
1097
|
-
"data-component": "ui-context-menu"
|
|
1098
|
-
};
|
|
1099
|
-
var UiContextMenu_default = /* @__PURE__ */ _defineComponent11({
|
|
1100
|
-
...{ inheritAttrs: false },
|
|
1101
|
-
__name: "UiContextMenu",
|
|
1102
|
-
props: {
|
|
1103
|
-
for: { type: [String, null], required: false, default: "" },
|
|
1104
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
1105
|
-
},
|
|
1106
|
-
emits: ["open", "close", "select"],
|
|
1107
|
-
setup(__props, { emit: __emit }) {
|
|
1108
|
-
const props = __props;
|
|
1109
|
-
const emit = __emit;
|
|
1110
|
-
const instance = getCurrentInstance11();
|
|
1111
|
-
const passed = (name, attribute) => {
|
|
1112
|
-
const raw = instance?.vnode.props ?? {};
|
|
1113
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1114
|
-
};
|
|
1115
|
-
const explicitProps = () => {
|
|
1116
|
-
const valuefor = props.for;
|
|
1117
|
-
const valueopen = props.open;
|
|
1118
|
-
return { "for": passed("for", "for") ? valuefor : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
1119
|
-
};
|
|
1120
|
-
const definition = { ...{ "contract": { "tag": "ui-context-menu", "props": { "for": { "type": "string", "required": false, "target": { "attribute": "for" }, "default": "" }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "attribute", "name": "data-state-open", "expression": "internalOpen", "expressionPlan": { "source": "internalOpen", "ast": { "kind": "id", "name": "internalOpen" }, "dependencies": ["internalOpen"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "menu" }, { "kind": "attribute", "name": "data-state-open", "expression": "internalOpen", "expressionPlan": { "source": "internalOpen", "ast": { "kind": "id", "name": "internalOpen" }, "dependencies": ["internalOpen"] } }], "children": [{ "kind": "element", "name": "ui-menu", "attributes": [], "children": [{ "kind": "slot" }] }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "focusTrigger", "expression": { "source": "'programmatic'", "ast": { "kind": "literal", "value": "programmatic" }, "dependencies": [] } }, { "kind": "event", "name": "open", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "select", "type": "object({ value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
1121
|
-
const root = ref11();
|
|
1122
|
-
const eventListener0 = (event) => emit("open", event.detail);
|
|
1123
|
-
const eventListener1 = (event) => emit("close", event.detail);
|
|
1124
|
-
const eventListener2 = (event) => emit("select", event.detail);
|
|
1125
|
-
let detach;
|
|
1126
|
-
onMounted11(() => {
|
|
1127
|
-
if (root.value == null) return;
|
|
1128
|
-
detach = attachLoomaComponent10(root.value, definition, "ui-context-menu", explicitProps());
|
|
1129
|
-
root.value.addEventListener("open", eventListener0);
|
|
1130
|
-
root.value.addEventListener("close", eventListener1);
|
|
1131
|
-
root.value.addEventListener("select", eventListener2);
|
|
1132
|
-
});
|
|
1133
|
-
watchEffect12(() => {
|
|
1134
|
-
const next = explicitProps();
|
|
1135
|
-
if (root.value == null) return;
|
|
1136
|
-
updateComponentProps10(root.value, next);
|
|
1137
|
-
});
|
|
1138
|
-
onUnmounted11(() => {
|
|
1139
|
-
root.value?.removeEventListener("open", eventListener0);
|
|
1140
|
-
root.value?.removeEventListener("close", eventListener1);
|
|
1141
|
-
root.value?.removeEventListener("select", eventListener2);
|
|
1142
|
-
detach?.();
|
|
1143
|
-
});
|
|
1144
|
-
return (_ctx, _cache) => {
|
|
1145
|
-
return _openBlock11(), _createElementBlock11(
|
|
1146
|
-
"span",
|
|
1147
|
-
_mergeProps11(_ctx.$attrs, {
|
|
1148
|
-
"data-component": "ui-context-menu",
|
|
1149
|
-
"data-component-root": "ui-context-menu",
|
|
1150
|
-
"data-state-open": void 0,
|
|
1151
|
-
ref_key: "root",
|
|
1152
|
-
ref: root
|
|
1153
|
-
}),
|
|
1154
|
-
[
|
|
1155
|
-
_createElementVNode8("div", _hoisted_110, [
|
|
1156
|
-
_createVNode2(_unref2(UiMenu_default), { "data-component": "ui-context-menu" }, {
|
|
1157
|
-
default: _withCtx2(() => [
|
|
1158
|
-
_renderSlot11(_ctx.$slots, "default")
|
|
1159
|
-
]),
|
|
1160
|
-
_: 3
|
|
1161
|
-
/* FORWARDED */
|
|
1162
|
-
})
|
|
1163
|
-
])
|
|
1164
|
-
],
|
|
1165
|
-
16
|
|
1166
|
-
/* FULL_PROPS */
|
|
1167
|
-
);
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
});
|
|
1171
|
-
|
|
1172
|
-
// src/generated/UiDialog.ts
|
|
1173
|
-
import { defineComponent as _defineComponent12 } from "vue";
|
|
1174
|
-
import { toDisplayString as _toDisplayString2, createElementVNode as _createElementVNode9, renderSlot as _renderSlot12, mergeProps as _mergeProps12, openBlock as _openBlock12, createElementBlock as _createElementBlock12 } from "vue";
|
|
1175
|
-
import { getCurrentInstance as getCurrentInstance12, onMounted as onMounted12, onUnmounted as onUnmounted12, ref as ref12, watchEffect as watchEffect13 } from "vue";
|
|
1176
|
-
import { attachLoomaComponent as attachLoomaComponent11, updateComponentProps as updateComponentProps11 } from "@threadlabs/looma/core/declarative";
|
|
1177
|
-
var _hoisted_111 = {
|
|
1178
|
-
class: "dialog__header",
|
|
1179
|
-
"data-component": "ui-dialog"
|
|
1180
|
-
};
|
|
1181
|
-
var _hoisted_27 = {
|
|
1182
|
-
class: "dialog__title",
|
|
1183
|
-
"data-component": "ui-dialog"
|
|
1184
|
-
};
|
|
1185
|
-
var _hoisted_34 = {
|
|
1186
|
-
class: "dialog__body",
|
|
1187
|
-
"data-component": "ui-dialog"
|
|
1188
|
-
};
|
|
1189
|
-
var _hoisted_43 = {
|
|
1190
|
-
slot: "",
|
|
1191
|
-
style: { "display": "contents" }
|
|
1192
|
-
};
|
|
1193
|
-
var _hoisted_52 = {
|
|
1194
|
-
class: "dialog__footer",
|
|
1195
|
-
"data-component": "ui-dialog"
|
|
1196
|
-
};
|
|
1197
|
-
var _hoisted_62 = {
|
|
1198
|
-
slot: "actions",
|
|
1199
|
-
style: { "display": "contents" }
|
|
1200
|
-
};
|
|
1201
|
-
var UiDialog_default = /* @__PURE__ */ _defineComponent12({
|
|
1202
|
-
...{ inheritAttrs: false },
|
|
1203
|
-
__name: "UiDialog",
|
|
1204
|
-
props: {
|
|
1205
|
-
dismissible: { type: [Boolean, null], required: false, default: false },
|
|
1206
|
-
for: { type: [String, null], required: false, default: "" },
|
|
1207
|
-
label: { type: [String, null], required: false },
|
|
1208
|
-
modal: { type: [Boolean, null], required: false, default: false },
|
|
1209
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
1210
|
-
},
|
|
1211
|
-
emits: ["close"],
|
|
1212
|
-
setup(__props, { emit: __emit }) {
|
|
1213
|
-
const props = __props;
|
|
1214
|
-
const emit = __emit;
|
|
1215
|
-
const instance = getCurrentInstance12();
|
|
1216
|
-
const passed = (name, attribute) => {
|
|
1217
|
-
const raw = instance?.vnode.props ?? {};
|
|
1218
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1219
|
-
};
|
|
1220
|
-
const explicitProps = () => {
|
|
1221
|
-
const valuedismissible = props.dismissible;
|
|
1222
|
-
const valuefor = props.for;
|
|
1223
|
-
const valuelabel = props.label;
|
|
1224
|
-
const valuemodal = props.modal;
|
|
1225
|
-
const valueopen = props.open;
|
|
1226
|
-
return { "dismissible": passed("dismissible", "dismissible") ? valuedismissible : void 0, "for": passed("for", "for") ? valuefor : void 0, "label": passed("label", "label") ? valuelabel : void 0, "modal": passed("modal", "modal") ? valuemodal : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
1227
|
-
};
|
|
1228
|
-
const definition = { ...{ "contract": { "tag": "ui-dialog", "props": { "dismissible": { "type": "boolean", "required": false, "target": { "attribute": "dismissible" }, "default": false }, "for": { "type": "string", "required": false, "target": { "attribute": "for" }, "default": "" }, "label": { "type": "string", "required": false, "target": { "attribute": "label" } }, "modal": { "type": "boolean", "required": false, "target": { "attribute": "modal" }, "default": false }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "dialog", "attributes": [{ "kind": "attribute", "name": "aria-label", "expression": "accessibleLabel", "expressionPlan": { "source": "accessibleLabel", "ast": { "kind": "id", "name": "accessibleLabel" }, "dependencies": ["accessibleLabel"] } }], "children": [{ "kind": "element", "name": "header", "attributes": [{ "kind": "literal", "name": "class", "value": "dialog__header" }], "children": [{ "kind": "element", "name": "h2", "attributes": [{ "kind": "literal", "name": "class", "value": "dialog__title" }], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [] }], "flow": { "kind": "if", "test": "label", "testPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } } }, { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "class", "value": "dialog__close" }, { "kind": "literal", "name": "type", "value": "button" }, { "kind": "literal", "name": "aria-label", "value": "Close" }], "children": [] }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "dialog__body" }], "children": [{ "kind": "slot" }] }, { "kind": "element", "name": "footer", "attributes": [{ "kind": "literal", "name": "class", "value": "dialog__footer" }], "children": [{ "kind": "slot", "fallback": [], "name": "actions" }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "accessibleLabel", "expression": { "source": "'Dialog'", "ast": { "kind": "literal", "value": "Dialog" }, "dependencies": [] } }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "dialog", "choices": ["dialog"] } }, source: { file: import.meta.url }, css: "" };
|
|
1229
|
-
const root = ref12();
|
|
1230
|
-
const eventListener0 = (event) => emit("close", event.detail);
|
|
1231
|
-
let detach;
|
|
1232
|
-
onMounted12(() => {
|
|
1233
|
-
if (root.value == null) return;
|
|
1234
|
-
detach = attachLoomaComponent11(root.value, definition, "ui-dialog", explicitProps());
|
|
1235
|
-
root.value.addEventListener("close", eventListener0);
|
|
1236
|
-
});
|
|
1237
|
-
watchEffect13(() => {
|
|
1238
|
-
const next = explicitProps();
|
|
1239
|
-
if (root.value == null) return;
|
|
1240
|
-
updateComponentProps11(root.value, next);
|
|
1241
|
-
});
|
|
1242
|
-
onUnmounted12(() => {
|
|
1243
|
-
root.value?.removeEventListener("close", eventListener0);
|
|
1244
|
-
detach?.();
|
|
1245
|
-
});
|
|
1246
|
-
return (_ctx, _cache) => {
|
|
1247
|
-
return _openBlock12(), _createElementBlock12(
|
|
1248
|
-
"dialog",
|
|
1249
|
-
_mergeProps12(_ctx.$attrs, {
|
|
1250
|
-
"data-component": "ui-dialog",
|
|
1251
|
-
"data-component-root": "ui-dialog",
|
|
1252
|
-
"aria-label": void 0,
|
|
1253
|
-
ref_key: "root",
|
|
1254
|
-
ref: root
|
|
1255
|
-
}),
|
|
1256
|
-
[
|
|
1257
|
-
_createElementVNode9("header", _hoisted_111, [
|
|
1258
|
-
_createElementVNode9(
|
|
1259
|
-
"h2",
|
|
1260
|
-
_hoisted_27,
|
|
1261
|
-
_toDisplayString2(props.label),
|
|
1262
|
-
1
|
|
1263
|
-
/* TEXT */
|
|
1264
|
-
),
|
|
1265
|
-
_cache[0] || (_cache[0] = _createElementVNode9(
|
|
1266
|
-
"button",
|
|
1267
|
-
{
|
|
1268
|
-
class: "dialog__close",
|
|
1269
|
-
type: "button",
|
|
1270
|
-
"aria-label": "Close",
|
|
1271
|
-
"data-component": "ui-dialog"
|
|
1272
|
-
},
|
|
1273
|
-
null,
|
|
1274
|
-
-1
|
|
1275
|
-
/* CACHED */
|
|
1276
|
-
))
|
|
1277
|
-
]),
|
|
1278
|
-
_createElementVNode9("div", _hoisted_34, [
|
|
1279
|
-
_createElementVNode9("span", _hoisted_43, [
|
|
1280
|
-
_renderSlot12(_ctx.$slots, "default")
|
|
1281
|
-
])
|
|
1282
|
-
]),
|
|
1283
|
-
_createElementVNode9("footer", _hoisted_52, [
|
|
1284
|
-
_createElementVNode9("span", _hoisted_62, [
|
|
1285
|
-
_renderSlot12(_ctx.$slots, "actions")
|
|
1286
|
-
])
|
|
1287
|
-
])
|
|
1288
|
-
],
|
|
1289
|
-
-2
|
|
1290
|
-
/* BAIL */
|
|
1291
|
-
);
|
|
1292
|
-
};
|
|
1293
|
-
}
|
|
1294
|
-
});
|
|
1295
|
-
|
|
1296
|
-
// src/generated/UiDisclosure.ts
|
|
1297
|
-
import { defineComponent as _defineComponent13 } from "vue";
|
|
1298
|
-
import { toDisplayString as _toDisplayString3, createElementVNode as _createElementVNode10, renderSlot as _renderSlot13, mergeProps as _mergeProps13, openBlock as _openBlock13, createElementBlock as _createElementBlock13 } from "vue";
|
|
1299
|
-
import { getCurrentInstance as getCurrentInstance13, onMounted as onMounted13, onUnmounted as onUnmounted13, ref as ref13, watchEffect as watchEffect14 } from "vue";
|
|
1300
|
-
import { attachLoomaComponent as attachLoomaComponent12, updateComponentProps as updateComponentProps12 } from "@threadlabs/looma/core/declarative";
|
|
1301
|
-
var _hoisted_112 = ["disabled"];
|
|
1302
|
-
var _hoisted_28 = { "data-component": "ui-disclosure" };
|
|
1303
|
-
var _hoisted_35 = {
|
|
1304
|
-
class: "disclosure__panel",
|
|
1305
|
-
"data-component": "ui-disclosure"
|
|
1306
|
-
};
|
|
1307
|
-
var _hoisted_44 = {
|
|
1308
|
-
class: "disclosure__panel-inner",
|
|
1309
|
-
"data-component": "ui-disclosure"
|
|
1310
|
-
};
|
|
1311
|
-
var UiDisclosure_default = /* @__PURE__ */ _defineComponent13({
|
|
1312
|
-
...{ inheritAttrs: false },
|
|
1313
|
-
__name: "UiDisclosure",
|
|
1314
|
-
props: {
|
|
1315
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1316
|
-
open: { type: [Boolean, null], required: false, default: false },
|
|
1317
|
-
summary: { type: [String, null], required: false, default: "Details" }
|
|
1318
|
-
},
|
|
1319
|
-
emits: ["open", "close"],
|
|
1320
|
-
setup(__props, { emit: __emit }) {
|
|
1321
|
-
const props = __props;
|
|
1322
|
-
const emit = __emit;
|
|
1323
|
-
const instance = getCurrentInstance13();
|
|
1324
|
-
const passed = (name, attribute) => {
|
|
1325
|
-
const raw = instance?.vnode.props ?? {};
|
|
1326
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1327
|
-
};
|
|
1328
|
-
const explicitProps = () => {
|
|
1329
|
-
const valuedisabled = props.disabled;
|
|
1330
|
-
const valueopen = props.open;
|
|
1331
|
-
const valuesummary = props.summary;
|
|
1332
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "open": passed("open", "open") ? valueopen : void 0, "summary": passed("summary", "summary") ? valuesummary : void 0 };
|
|
1333
|
-
};
|
|
1334
|
-
const definition = { ...{ "contract": { "tag": "ui-disclosure", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false }, "summary": { "type": "string", "required": false, "target": { "attribute": "summary" }, "default": "Details" } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [{ "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "class", "value": "disclosure__trigger" }, { "kind": "literal", "name": "type", "value": "button" }, { "kind": "attribute", "name": "aria-controls", "expression": "contentId", "expressionPlan": { "source": "contentId", "ast": { "kind": "id", "name": "contentId" }, "dependencies": ["contentId"] } }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "span", "attributes": [], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "summary", "expressionPlan": { "source": "summary", "ast": { "kind": "id", "name": "summary" }, "dependencies": ["summary"] } }], "children": [] }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "disclosure__chevron" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [] }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "disclosure__panel" }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "disclosure__panel-inner" }], "children": [{ "kind": "slot" }] }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "contentId", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "event", "name": "open", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
1335
|
-
const root = ref13();
|
|
1336
|
-
const eventListener0 = (event) => emit("open", event.detail);
|
|
1337
|
-
const eventListener1 = (event) => emit("close", event.detail);
|
|
1338
|
-
let detach;
|
|
1339
|
-
onMounted13(() => {
|
|
1340
|
-
if (root.value == null) return;
|
|
1341
|
-
detach = attachLoomaComponent12(root.value, definition, "ui-disclosure", explicitProps());
|
|
1342
|
-
root.value.addEventListener("open", eventListener0);
|
|
1343
|
-
root.value.addEventListener("close", eventListener1);
|
|
1344
|
-
});
|
|
1345
|
-
watchEffect14(() => {
|
|
1346
|
-
const next = explicitProps();
|
|
1347
|
-
if (root.value == null) return;
|
|
1348
|
-
updateComponentProps12(root.value, next);
|
|
1349
|
-
});
|
|
1350
|
-
onUnmounted13(() => {
|
|
1351
|
-
root.value?.removeEventListener("open", eventListener0);
|
|
1352
|
-
root.value?.removeEventListener("close", eventListener1);
|
|
1353
|
-
detach?.();
|
|
1354
|
-
});
|
|
1355
|
-
return (_ctx, _cache) => {
|
|
1356
|
-
return _openBlock13(), _createElementBlock13(
|
|
1357
|
-
"div",
|
|
1358
|
-
_mergeProps13(_ctx.$attrs, {
|
|
1359
|
-
"data-component": "ui-disclosure",
|
|
1360
|
-
"data-component-root": "ui-disclosure",
|
|
1361
|
-
ref_key: "root",
|
|
1362
|
-
ref: root
|
|
1363
|
-
}),
|
|
1364
|
-
[
|
|
1365
|
-
_createElementVNode10("button", {
|
|
1366
|
-
class: "disclosure__trigger",
|
|
1367
|
-
type: "button",
|
|
1368
|
-
"aria-controls": void 0,
|
|
1369
|
-
disabled: props.disabled,
|
|
1370
|
-
"data-component": "ui-disclosure"
|
|
1371
|
-
}, [
|
|
1372
|
-
_createElementVNode10(
|
|
1373
|
-
"span",
|
|
1374
|
-
_hoisted_28,
|
|
1375
|
-
_toDisplayString3(props.summary),
|
|
1376
|
-
1
|
|
1377
|
-
/* TEXT */
|
|
1378
|
-
),
|
|
1379
|
-
_cache[0] || (_cache[0] = _createElementVNode10(
|
|
1380
|
-
"span",
|
|
1381
|
-
{
|
|
1382
|
-
class: "disclosure__chevron",
|
|
1383
|
-
"aria-hidden": "true",
|
|
1384
|
-
"data-component": "ui-disclosure"
|
|
1385
|
-
},
|
|
1386
|
-
null,
|
|
1387
|
-
-1
|
|
1388
|
-
/* CACHED */
|
|
1389
|
-
))
|
|
1390
|
-
], 8, _hoisted_112),
|
|
1391
|
-
_createElementVNode10("div", _hoisted_35, [
|
|
1392
|
-
_createElementVNode10("div", _hoisted_44, [
|
|
1393
|
-
_renderSlot13(_ctx.$slots, "default")
|
|
1394
|
-
])
|
|
1395
|
-
])
|
|
1396
|
-
],
|
|
1397
|
-
16
|
|
1398
|
-
/* FULL_PROPS */
|
|
1399
|
-
);
|
|
1400
|
-
};
|
|
1401
|
-
}
|
|
1402
|
-
});
|
|
1403
|
-
|
|
1404
|
-
// src/generated/UiEditable.ts
|
|
1405
|
-
import { defineComponent as _defineComponent14 } from "vue";
|
|
1406
|
-
import { toDisplayString as _toDisplayString4, createElementVNode as _createElementVNode11, mergeProps as _mergeProps14, openBlock as _openBlock14, createElementBlock as _createElementBlock14 } from "vue";
|
|
1407
|
-
import { getCurrentInstance as getCurrentInstance14, onMounted as onMounted14, onUnmounted as onUnmounted14, ref as ref14, watchEffect as watchEffect15 } from "vue";
|
|
1408
|
-
import { attachLoomaComponent as attachLoomaComponent13, updateComponentProps as updateComponentProps13 } from "@threadlabs/looma/core/declarative";
|
|
1409
|
-
var _hoisted_113 = ["data-disabled"];
|
|
1410
|
-
var _hoisted_29 = {
|
|
1411
|
-
class: "editable__field",
|
|
1412
|
-
"data-component": "ui-editable"
|
|
1413
|
-
};
|
|
1414
|
-
var _hoisted_36 = {
|
|
1415
|
-
class: "editable__preview",
|
|
1416
|
-
type: "button",
|
|
1417
|
-
"data-component": "ui-editable"
|
|
1418
|
-
};
|
|
1419
|
-
var _hoisted_45 = {
|
|
1420
|
-
class: "editable__hint",
|
|
1421
|
-
"aria-hidden": "true",
|
|
1422
|
-
"data-component": "ui-editable"
|
|
1423
|
-
};
|
|
1424
|
-
var UiEditable_default = /* @__PURE__ */ _defineComponent14({
|
|
1425
|
-
...{ inheritAttrs: false },
|
|
1426
|
-
__name: "UiEditable",
|
|
1427
|
-
props: {
|
|
1428
|
-
actions: { type: [Boolean, null], required: false, default: false },
|
|
1429
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1430
|
-
edit: { type: [Boolean, null], required: false, default: false },
|
|
1431
|
-
hint: { type: [String, null], required: false, default: "" },
|
|
1432
|
-
label: { type: [String, null], required: false, default: "Edit value" },
|
|
1433
|
-
value: { type: [String, null], required: false, default: "" }
|
|
1434
|
-
},
|
|
1435
|
-
emits: ["input", "change", "edit-change"],
|
|
1436
|
-
setup(__props, { emit: __emit }) {
|
|
1437
|
-
const props = __props;
|
|
1438
|
-
const emit = __emit;
|
|
1439
|
-
const instance = getCurrentInstance14();
|
|
1440
|
-
const passed = (name, attribute) => {
|
|
1441
|
-
const raw = instance?.vnode.props ?? {};
|
|
1442
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1443
|
-
};
|
|
1444
|
-
const explicitProps = () => {
|
|
1445
|
-
const valueactions = props.actions;
|
|
1446
|
-
const valuedisabled = props.disabled;
|
|
1447
|
-
const valueedit = props.edit;
|
|
1448
|
-
const valuehint = props.hint;
|
|
1449
|
-
const valuelabel = props.label;
|
|
1450
|
-
const valuevalue = props.value;
|
|
1451
|
-
return { "actions": passed("actions", "actions") ? valueactions : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "edit": passed("edit", "edit") ? valueedit : void 0, "hint": passed("hint", "hint") ? valuehint : void 0, "label": passed("label", "label") ? valuelabel : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
1452
|
-
};
|
|
1453
|
-
const definition = { ...{ "contract": { "tag": "ui-editable", "props": { "actions": { "type": "boolean", "required": false, "target": { "attribute": "actions" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "data-disabled" }, "default": false }, "edit": { "type": "boolean", "required": false, "target": { "attribute": "edit" }, "default": false }, "hint": { "type": "string", "required": false, "target": { "attribute": "hint" }, "default": "" }, "label": { "type": "string", "required": false, "target": { "attribute": "label" }, "default": "Edit value" }, "value": { "type": "string", "required": false, "target": { "attribute": "value" }, "default": "" } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "attribute", "name": "data-state-edit", "expression": "internalEdit", "expressionPlan": { "source": "internalEdit", "ast": { "kind": "id", "name": "internalEdit" }, "dependencies": ["internalEdit"] } }, { "kind": "attribute", "name": "data-disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "editable__field" }], "children": [{ "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "class", "value": "editable__preview" }, { "kind": "literal", "name": "type", "value": "button" }], "children": [{ "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "editable__text" }], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "internalValue", "expressionPlan": { "source": "internalValue", "ast": { "kind": "id", "name": "internalValue" }, "dependencies": ["internalValue"] } }], "children": [] }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "editable__hint" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "hint", "expressionPlan": { "source": "hint", "ast": { "kind": "id", "name": "hint" }, "dependencies": ["hint"] } }], "children": [] }], "flow": { "kind": "if", "test": "hint", "testPlan": { "source": "hint", "ast": { "kind": "id", "name": "hint" }, "dependencies": ["hint"] } } }] }, { "kind": "element", "name": "input", "attributes": [{ "kind": "literal", "name": "class", "value": "editable__input" }, { "kind": "literal", "name": "type", "value": "text" }, { "kind": "attribute", "name": "value", "expression": "draft", "expressionPlan": { "source": "draft", "ast": { "kind": "id", "name": "draft" }, "dependencies": ["draft"] } }], "children": [] }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "editable__actions" }], "children": [{ "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "type", "value": "button" }, { "kind": "literal", "name": "data-action", "value": "save" }], "children": [{ "kind": "text", "value": "Save" }] }, { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "type", "value": "button" }, { "kind": "literal", "name": "data-action", "value": "cancel" }], "children": [{ "kind": "text", "value": "Cancel" }] }], "flow": { "kind": "if", "test": "actions", "testPlan": { "source": "actions", "ast": { "kind": "id", "name": "actions" }, "dependencies": ["actions"] } } }] }, "declarations": [{ "kind": "state", "name": "internalEdit", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "internalValue", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "state", "name": "draft", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "event", "name": "input", "type": "object({ value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "change", "type": "object({ value: string, previousValue: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "edit-change", "type": "object({ edit: boolean, reason: activate | commit | cancel | light-dismiss | escape | programmatic, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
1454
|
-
const root = ref14();
|
|
1455
|
-
const eventListener0 = (event) => emit("input", event.detail);
|
|
1456
|
-
const eventListener1 = (event) => emit("change", event.detail);
|
|
1457
|
-
const eventListener2 = (event) => emit("edit-change", event.detail);
|
|
1458
|
-
let detach;
|
|
1459
|
-
onMounted14(() => {
|
|
1460
|
-
if (root.value == null) return;
|
|
1461
|
-
detach = attachLoomaComponent13(root.value, definition, "ui-editable", explicitProps());
|
|
1462
|
-
root.value.addEventListener("input", eventListener0);
|
|
1463
|
-
root.value.addEventListener("change", eventListener1);
|
|
1464
|
-
root.value.addEventListener("edit-change", eventListener2);
|
|
1465
|
-
});
|
|
1466
|
-
watchEffect15(() => {
|
|
1467
|
-
const next = explicitProps();
|
|
1468
|
-
if (root.value == null) return;
|
|
1469
|
-
updateComponentProps13(root.value, next);
|
|
1470
|
-
});
|
|
1471
|
-
onUnmounted14(() => {
|
|
1472
|
-
root.value?.removeEventListener("input", eventListener0);
|
|
1473
|
-
root.value?.removeEventListener("change", eventListener1);
|
|
1474
|
-
root.value?.removeEventListener("edit-change", eventListener2);
|
|
1475
|
-
detach?.();
|
|
1476
|
-
});
|
|
1477
|
-
return (_ctx, _cache) => {
|
|
1478
|
-
return _openBlock14(), _createElementBlock14("div", _mergeProps14(_ctx.$attrs, {
|
|
1479
|
-
"data-component": "ui-editable",
|
|
1480
|
-
"data-component-root": "ui-editable",
|
|
1481
|
-
"data-state-edit": void 0,
|
|
1482
|
-
"data-disabled": props.disabled ? "" : void 0,
|
|
1483
|
-
ref_key: "root",
|
|
1484
|
-
ref: root
|
|
1485
|
-
}), [
|
|
1486
|
-
_createElementVNode11("div", _hoisted_29, [
|
|
1487
|
-
_createElementVNode11("button", _hoisted_36, [
|
|
1488
|
-
_cache[0] || (_cache[0] = _createElementVNode11(
|
|
1489
|
-
"span",
|
|
1490
|
-
{
|
|
1491
|
-
class: "editable__text",
|
|
1492
|
-
"data-component": "ui-editable"
|
|
1493
|
-
},
|
|
1494
|
-
_toDisplayString4(void 0),
|
|
1495
|
-
-1
|
|
1496
|
-
/* CACHED */
|
|
1497
|
-
)),
|
|
1498
|
-
_createElementVNode11(
|
|
1499
|
-
"span",
|
|
1500
|
-
_hoisted_45,
|
|
1501
|
-
_toDisplayString4(props.hint),
|
|
1502
|
-
1
|
|
1503
|
-
/* TEXT */
|
|
1504
|
-
)
|
|
1505
|
-
]),
|
|
1506
|
-
_cache[1] || (_cache[1] = _createElementVNode11(
|
|
1507
|
-
"input",
|
|
1508
|
-
{
|
|
1509
|
-
class: "editable__input",
|
|
1510
|
-
type: "text",
|
|
1511
|
-
value: void 0,
|
|
1512
|
-
"data-component": "ui-editable"
|
|
1513
|
-
},
|
|
1514
|
-
null,
|
|
1515
|
-
-1
|
|
1516
|
-
/* CACHED */
|
|
1517
|
-
))
|
|
1518
|
-
]),
|
|
1519
|
-
_cache[2] || (_cache[2] = _createElementVNode11(
|
|
1520
|
-
"div",
|
|
1521
|
-
{
|
|
1522
|
-
class: "editable__actions",
|
|
1523
|
-
"data-component": "ui-editable"
|
|
1524
|
-
},
|
|
1525
|
-
[
|
|
1526
|
-
_createElementVNode11("button", {
|
|
1527
|
-
type: "button",
|
|
1528
|
-
"data-action": "save",
|
|
1529
|
-
"data-component": "ui-editable"
|
|
1530
|
-
}, " Save "),
|
|
1531
|
-
_createElementVNode11("button", {
|
|
1532
|
-
type: "button",
|
|
1533
|
-
"data-action": "cancel",
|
|
1534
|
-
"data-component": "ui-editable"
|
|
1535
|
-
}, " Cancel ")
|
|
1536
|
-
],
|
|
1537
|
-
-1
|
|
1538
|
-
/* CACHED */
|
|
1539
|
-
))
|
|
1540
|
-
], -2, _hoisted_113);
|
|
1541
|
-
};
|
|
1542
|
-
}
|
|
1543
|
-
});
|
|
1544
|
-
|
|
1545
|
-
// src/generated/UiFormField.ts
|
|
1546
|
-
import { defineComponent as _defineComponent15 } from "vue";
|
|
1547
|
-
import { renderSlot as _renderSlot14, createElementVNode as _createElementVNode12, mergeProps as _mergeProps15, openBlock as _openBlock15, createElementBlock as _createElementBlock15 } from "vue";
|
|
1548
|
-
import { getCurrentInstance as getCurrentInstance15, onMounted as onMounted15, onUnmounted as onUnmounted15, ref as ref15, watchEffect as watchEffect16 } from "vue";
|
|
1549
|
-
import { attachLoomaComponent as attachLoomaComponent14, updateComponentProps as updateComponentProps14 } from "@threadlabs/looma/core/declarative";
|
|
1550
|
-
var _hoisted_114 = ["data-invalid", "data-disabled", "data-required"];
|
|
1551
|
-
var _hoisted_210 = {
|
|
1552
|
-
slot: "label",
|
|
1553
|
-
style: { "display": "contents" }
|
|
1554
|
-
};
|
|
1555
|
-
var _hoisted_37 = {
|
|
1556
|
-
slot: "",
|
|
1557
|
-
style: { "display": "contents" }
|
|
1558
|
-
};
|
|
1559
|
-
var _hoisted_46 = {
|
|
1560
|
-
slot: "help",
|
|
1561
|
-
style: { "display": "contents" }
|
|
1562
|
-
};
|
|
1563
|
-
var _hoisted_53 = {
|
|
1564
|
-
slot: "error",
|
|
1565
|
-
style: { "display": "contents" }
|
|
1566
|
-
};
|
|
1567
|
-
var UiFormField_default = /* @__PURE__ */ _defineComponent15({
|
|
1568
|
-
...{ inheritAttrs: false },
|
|
1569
|
-
__name: "UiFormField",
|
|
1570
|
-
props: {
|
|
1571
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1572
|
-
invalid: { type: [Boolean, null], required: false, default: false },
|
|
1573
|
-
required: { type: [Boolean, null], required: false, default: false }
|
|
1574
|
-
},
|
|
1575
|
-
setup(__props) {
|
|
1576
|
-
const props = __props;
|
|
1577
|
-
const instance = getCurrentInstance15();
|
|
1578
|
-
const passed = (name, attribute) => {
|
|
1579
|
-
const raw = instance?.vnode.props ?? {};
|
|
1580
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1581
|
-
};
|
|
1582
|
-
const explicitProps = () => {
|
|
1583
|
-
const valuedisabled = props.disabled;
|
|
1584
|
-
const valueinvalid = props.invalid;
|
|
1585
|
-
const valuerequired = props.required;
|
|
1586
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "invalid": passed("invalid", "invalid") ? valueinvalid : void 0, "required": passed("required", "required") ? valuerequired : void 0 };
|
|
1587
|
-
};
|
|
1588
|
-
const definition = { ...{ "contract": { "tag": "ui-form-field", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "data-disabled" }, "default": false }, "invalid": { "type": "boolean", "required": false, "target": { "attribute": "data-invalid" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "data-required" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "attribute", "name": "data-invalid", "expression": "invalid", "expressionPlan": { "source": "invalid", "ast": { "kind": "id", "name": "invalid" }, "dependencies": ["invalid"] } }, { "kind": "attribute", "name": "data-disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "data-required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "label" }, { "kind": "slot" }, { "kind": "slot", "fallback": [], "name": "help" }, { "kind": "slot", "fallback": [], "name": "error" }] }, "declarations": [], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
1589
|
-
const root = ref15();
|
|
1590
|
-
let detach;
|
|
1591
|
-
onMounted15(() => {
|
|
1592
|
-
if (root.value == null) return;
|
|
1593
|
-
detach = attachLoomaComponent14(root.value, definition, "ui-form-field", explicitProps());
|
|
1594
|
-
});
|
|
1595
|
-
watchEffect16(() => {
|
|
1596
|
-
const next = explicitProps();
|
|
1597
|
-
if (root.value == null) return;
|
|
1598
|
-
updateComponentProps14(root.value, next);
|
|
1599
|
-
});
|
|
1600
|
-
onUnmounted15(() => {
|
|
1601
|
-
detach?.();
|
|
1602
|
-
});
|
|
1603
|
-
return (_ctx, _cache) => {
|
|
1604
|
-
return _openBlock15(), _createElementBlock15("div", _mergeProps15(_ctx.$attrs, {
|
|
1605
|
-
"data-component": "ui-form-field",
|
|
1606
|
-
"data-component-root": "ui-form-field",
|
|
1607
|
-
"data-invalid": props.invalid ? "" : void 0,
|
|
1608
|
-
"data-disabled": props.disabled ? "" : void 0,
|
|
1609
|
-
"data-required": props.required ? "" : void 0,
|
|
1610
|
-
ref_key: "root",
|
|
1611
|
-
ref: root
|
|
1612
|
-
}), [
|
|
1613
|
-
_createElementVNode12("span", _hoisted_210, [
|
|
1614
|
-
_renderSlot14(_ctx.$slots, "label")
|
|
1615
|
-
]),
|
|
1616
|
-
_createElementVNode12("span", _hoisted_37, [
|
|
1617
|
-
_renderSlot14(_ctx.$slots, "default")
|
|
1618
|
-
]),
|
|
1619
|
-
_createElementVNode12("span", _hoisted_46, [
|
|
1620
|
-
_renderSlot14(_ctx.$slots, "help")
|
|
1621
|
-
]),
|
|
1622
|
-
_createElementVNode12("span", _hoisted_53, [
|
|
1623
|
-
_renderSlot14(_ctx.$slots, "error")
|
|
1624
|
-
])
|
|
1625
|
-
], 16, _hoisted_114);
|
|
1626
|
-
};
|
|
1627
|
-
}
|
|
1628
|
-
});
|
|
1629
|
-
|
|
1630
|
-
// src/generated/UiIconButton.ts
|
|
1631
|
-
import { defineComponent as _defineComponent16 } from "vue";
|
|
1632
|
-
import { renderSlot as _renderSlot15, mergeProps as _mergeProps16, openBlock as _openBlock16, createElementBlock as _createElementBlock16 } from "vue";
|
|
1633
|
-
import { getCurrentInstance as getCurrentInstance16, onMounted as onMounted16, onUnmounted as onUnmounted16, ref as ref16, watchEffect as watchEffect17 } from "vue";
|
|
1634
|
-
import { attachLoomaComponent as attachLoomaComponent15, updateComponentProps as updateComponentProps15 } from "@threadlabs/looma/core/declarative";
|
|
1635
|
-
var _hoisted_115 = ["disabled", "data-round", "aria-label"];
|
|
1636
|
-
var UiIconButton_default = /* @__PURE__ */ _defineComponent16({
|
|
1637
|
-
...{ inheritAttrs: false },
|
|
1638
|
-
__name: "UiIconButton",
|
|
1639
|
-
props: {
|
|
1640
|
-
anticipatory: { type: [Boolean, null], required: false, default: false },
|
|
1641
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1642
|
-
label: { type: [String, null], required: false, default: "" },
|
|
1643
|
-
round: { type: [Boolean, null], required: false, default: false },
|
|
1644
|
-
size: { type: [String, null], required: false, default: "md" },
|
|
1645
|
-
variant: { type: [String, null], required: false, default: "ghost" }
|
|
1646
|
-
},
|
|
1647
|
-
setup(__props) {
|
|
1648
|
-
const props = __props;
|
|
1649
|
-
const instance = getCurrentInstance16();
|
|
1650
|
-
const passed = (name, attribute) => {
|
|
1651
|
-
const raw = instance?.vnode.props ?? {};
|
|
1652
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1653
|
-
};
|
|
1654
|
-
const explicitProps = () => {
|
|
1655
|
-
const valueanticipatory = props.anticipatory;
|
|
1656
|
-
const valuedisabled = props.disabled;
|
|
1657
|
-
const valuelabel = props.label;
|
|
1658
|
-
const valueround = props.round;
|
|
1659
|
-
const valuesize = props.size;
|
|
1660
|
-
const valuevariant = props.variant;
|
|
1661
|
-
return { "anticipatory": passed("anticipatory", "anticipatory") ? valueanticipatory : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "label": passed("label", "label") ? valuelabel : void 0, "round": passed("round", "round") ? valueround : void 0, "size": passed("size", "size") ? valuesize : void 0, "variant": passed("variant", "variant") ? valuevariant : void 0 };
|
|
1662
|
-
};
|
|
1663
|
-
const definition = { ...{ "contract": { "tag": "ui-icon-button", "props": { "anticipatory": { "type": "boolean", "required": false, "target": { "attribute": "anticipatory" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "label": { "type": "string", "required": false, "target": { "attribute": "aria-label" }, "default": "" }, "round": { "type": "boolean", "required": false, "target": { "attribute": "data-round" }, "default": false }, "size": { "type": { "enum": ["sm", "md", "lg"] }, "required": false, "target": { "attribute": "size" }, "default": "md" }, "variant": { "type": { "enum": ["ghost", "outline", "solid"] }, "required": false, "target": { "attribute": "variant" }, "default": "ghost" } } }, "template": { "kind": "element", "name": "button", "attributes": [{ "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "data-round", "expression": "round", "expressionPlan": { "source": "round", "ast": { "kind": "id", "name": "round" }, "dependencies": ["round"] } }, { "kind": "literal", "name": "type", "value": "button" }, { "kind": "attribute", "name": "aria-label", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "button", "choices": ["button"] } }, source: { file: import.meta.url }, css: "" };
|
|
1664
|
-
const root = ref16();
|
|
1665
|
-
let detach;
|
|
1666
|
-
onMounted16(() => {
|
|
1667
|
-
if (root.value == null) return;
|
|
1668
|
-
detach = attachLoomaComponent15(root.value, definition, "ui-icon-button", explicitProps());
|
|
1669
|
-
});
|
|
1670
|
-
watchEffect17(() => {
|
|
1671
|
-
const next = explicitProps();
|
|
1672
|
-
if (root.value == null) return;
|
|
1673
|
-
updateComponentProps15(root.value, next);
|
|
1674
|
-
});
|
|
1675
|
-
onUnmounted16(() => {
|
|
1676
|
-
detach?.();
|
|
1677
|
-
});
|
|
1678
|
-
return (_ctx, _cache) => {
|
|
1679
|
-
return _openBlock16(), _createElementBlock16("button", _mergeProps16(_ctx.$attrs, {
|
|
1680
|
-
"data-component": "ui-icon-button",
|
|
1681
|
-
"data-component-root": "ui-icon-button",
|
|
1682
|
-
disabled: props.disabled,
|
|
1683
|
-
"data-round": props.round ? "" : void 0,
|
|
1684
|
-
type: "button",
|
|
1685
|
-
"aria-label": props.label,
|
|
1686
|
-
ref_key: "root",
|
|
1687
|
-
ref: root
|
|
1688
|
-
}), [
|
|
1689
|
-
_renderSlot15(_ctx.$slots, "default")
|
|
1690
|
-
], 16, _hoisted_115);
|
|
1691
|
-
};
|
|
1692
|
-
}
|
|
1693
|
-
});
|
|
1694
|
-
|
|
1695
|
-
// src/generated/UiInput.ts
|
|
1696
|
-
import { defineComponent as _defineComponent17 } from "vue";
|
|
1697
|
-
import { mergeProps as _mergeProps17, openBlock as _openBlock17, createElementBlock as _createElementBlock17 } from "vue";
|
|
1698
|
-
import { getCurrentInstance as getCurrentInstance17, onMounted as onMounted17, onUnmounted as onUnmounted17, ref as ref17, watchEffect as watchEffect18 } from "vue";
|
|
1699
|
-
import { attachLoomaComponent as attachLoomaComponent16, updateComponentProps as updateComponentProps16 } from "@threadlabs/looma/core/declarative";
|
|
1700
|
-
var _hoisted_116 = ["value", "disabled", "readonly", "required"];
|
|
1701
|
-
var UiInput_default = /* @__PURE__ */ _defineComponent17({
|
|
1702
|
-
...{ inheritAttrs: false },
|
|
1703
|
-
__name: "UiInput",
|
|
1704
|
-
props: {
|
|
1705
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1706
|
-
invalid: { type: [Boolean, null], required: false, default: false },
|
|
1707
|
-
readonly: { type: [Boolean, null], required: false, default: false },
|
|
1708
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
1709
|
-
value: { type: [String, null], required: false }
|
|
1710
|
-
},
|
|
1711
|
-
setup(__props) {
|
|
1712
|
-
const props = __props;
|
|
1713
|
-
const instance = getCurrentInstance17();
|
|
1714
|
-
const passed = (name, attribute) => {
|
|
1715
|
-
const raw = instance?.vnode.props ?? {};
|
|
1716
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1717
|
-
};
|
|
1718
|
-
const explicitProps = () => {
|
|
1719
|
-
const valuedisabled = props.disabled;
|
|
1720
|
-
const valueinvalid = props.invalid;
|
|
1721
|
-
const valuereadonly = props.readonly;
|
|
1722
|
-
const valuerequired = props.required;
|
|
1723
|
-
const valuevalue = props.value;
|
|
1724
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "invalid": passed("invalid", "invalid") ? valueinvalid : void 0, "readonly": passed("readonly", "readonly") ? valuereadonly : void 0, "required": passed("required", "required") ? valuerequired : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
1725
|
-
};
|
|
1726
|
-
const definition = { ...{ "contract": { "tag": "ui-input", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "invalid": { "type": "boolean", "required": false, "target": { "attribute": "invalid" }, "default": false }, "readonly": { "type": "boolean", "required": false, "target": { "attribute": "readonly" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" } } } }, "template": { "kind": "element", "name": "input", "attributes": [{ "kind": "attribute", "name": "value", "expression": "value", "expressionPlan": { "source": "value", "ast": { "kind": "id", "name": "value" }, "dependencies": ["value"] } }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "readonly", "expression": "readonly", "expressionPlan": { "source": "readonly", "ast": { "kind": "id", "name": "readonly" }, "dependencies": ["readonly"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }], "children": [] }, "declarations": [], "root": { "kind": "native", "element": "input", "choices": ["input"] } }, source: { file: import.meta.url }, css: "" };
|
|
1727
|
-
const root = ref17();
|
|
1728
|
-
let detach;
|
|
1729
|
-
onMounted17(() => {
|
|
1730
|
-
if (root.value == null) return;
|
|
1731
|
-
detach = attachLoomaComponent16(root.value, definition, "ui-input", explicitProps());
|
|
1732
|
-
});
|
|
1733
|
-
watchEffect18(() => {
|
|
1734
|
-
const next = explicitProps();
|
|
1735
|
-
if (root.value == null) return;
|
|
1736
|
-
updateComponentProps16(root.value, next);
|
|
1737
|
-
});
|
|
1738
|
-
onUnmounted17(() => {
|
|
1739
|
-
detach?.();
|
|
1740
|
-
});
|
|
1741
|
-
return (_ctx, _cache) => {
|
|
1742
|
-
return _openBlock17(), _createElementBlock17("input", _mergeProps17(_ctx.$attrs, {
|
|
1743
|
-
"data-component": "ui-input",
|
|
1744
|
-
"data-component-root": "ui-input",
|
|
1745
|
-
value: props.value,
|
|
1746
|
-
disabled: props.disabled,
|
|
1747
|
-
readonly: props.readonly,
|
|
1748
|
-
required: props.required,
|
|
1749
|
-
ref_key: "root",
|
|
1750
|
-
ref: root
|
|
1751
|
-
}), null, 16, _hoisted_116);
|
|
1752
|
-
};
|
|
1753
|
-
}
|
|
1754
|
-
});
|
|
1755
|
-
|
|
1756
|
-
// src/generated/UiMenuItem.ts
|
|
1757
|
-
import { defineComponent as _defineComponent18 } from "vue";
|
|
1758
|
-
import { renderSlot as _renderSlot16, createElementVNode as _createElementVNode13, mergeProps as _mergeProps18, openBlock as _openBlock18, createElementBlock as _createElementBlock18 } from "vue";
|
|
1759
|
-
import { getCurrentInstance as getCurrentInstance18, onMounted as onMounted18, onUnmounted as onUnmounted18, ref as ref18, watchEffect as watchEffect19 } from "vue";
|
|
1760
|
-
import { manageGeneratedProps as manageGeneratedProps2, updateGeneratedProps as updateGeneratedProps2 } from "@threadlabs/looma/core/declarative-generated";
|
|
1761
|
-
var _hoisted_117 = ["data-value"];
|
|
1762
|
-
var _hoisted_211 = {
|
|
1763
|
-
class: "menu-item__surface",
|
|
1764
|
-
"data-component": "ui-menu-item"
|
|
1765
|
-
};
|
|
1766
|
-
var UiMenuItem_default = /* @__PURE__ */ _defineComponent18({
|
|
1767
|
-
...{ inheritAttrs: false },
|
|
1768
|
-
__name: "UiMenuItem",
|
|
1769
|
-
props: {
|
|
1770
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1771
|
-
value: { type: [String, null], required: false, default: "" }
|
|
1772
|
-
},
|
|
1773
|
-
setup(__props) {
|
|
1774
|
-
const props = __props;
|
|
1775
|
-
const instance = getCurrentInstance18();
|
|
1776
|
-
const passed = (name, attribute) => {
|
|
1777
|
-
const raw = instance?.vnode.props ?? {};
|
|
1778
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1779
|
-
};
|
|
1780
|
-
const explicitProps = () => {
|
|
1781
|
-
const valuedisabled = props.disabled;
|
|
1782
|
-
const valuevalue = props.value;
|
|
1783
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
1784
|
-
};
|
|
1785
|
-
const root = ref18();
|
|
1786
|
-
let detach;
|
|
1787
|
-
onMounted18(() => {
|
|
1788
|
-
if (root.value == null) return;
|
|
1789
|
-
const explicit = explicitProps();
|
|
1790
|
-
detach = manageGeneratedProps2(root.value, [
|
|
1791
|
-
{ name: "disabled", attribute: "data-disabled", value: explicit["disabled"], default: false, type: "boolean", required: false },
|
|
1792
|
-
{ name: "value", attribute: "data-value", value: explicit["value"], default: "", bound: true, type: "string", required: false }
|
|
1793
|
-
]);
|
|
1794
|
-
});
|
|
1795
|
-
watchEffect19(() => {
|
|
1796
|
-
const next = explicitProps();
|
|
1797
|
-
if (root.value == null) return;
|
|
1798
|
-
updateGeneratedProps2(root.value, next);
|
|
1799
|
-
});
|
|
1800
|
-
onUnmounted18(() => {
|
|
1801
|
-
detach?.();
|
|
1802
|
-
});
|
|
1803
|
-
return (_ctx, _cache) => {
|
|
1804
|
-
return _openBlock18(), _createElementBlock18("div", _mergeProps18(_ctx.$attrs, {
|
|
1805
|
-
"data-component": "ui-menu-item",
|
|
1806
|
-
"data-component-root": "ui-menu-item",
|
|
1807
|
-
role: "menuitem",
|
|
1808
|
-
"data-value": props.value,
|
|
1809
|
-
ref_key: "root",
|
|
1810
|
-
ref: root
|
|
1811
|
-
}), [
|
|
1812
|
-
_createElementVNode13("span", _hoisted_211, [
|
|
1813
|
-
_renderSlot16(_ctx.$slots, "default")
|
|
1814
|
-
])
|
|
1815
|
-
], 16, _hoisted_117);
|
|
1816
|
-
};
|
|
1817
|
-
}
|
|
1818
|
-
});
|
|
1819
|
-
|
|
1820
|
-
// src/generated/UiPopover.ts
|
|
1821
|
-
import { defineComponent as _defineComponent19 } from "vue";
|
|
1822
|
-
import { renderSlot as _renderSlot17, createElementVNode as _createElementVNode14, mergeProps as _mergeProps19, openBlock as _openBlock19, createElementBlock as _createElementBlock19 } from "vue";
|
|
1823
|
-
import { getCurrentInstance as getCurrentInstance19, onMounted as onMounted19, onUnmounted as onUnmounted19, ref as ref19, watchEffect as watchEffect20 } from "vue";
|
|
1824
|
-
import { attachLoomaComponent as attachLoomaComponent17, updateComponentProps as updateComponentProps17 } from "@threadlabs/looma/core/declarative";
|
|
1825
|
-
var _hoisted_118 = {
|
|
1826
|
-
class: "popover__surface",
|
|
1827
|
-
"data-component": "ui-popover"
|
|
1828
|
-
};
|
|
1829
|
-
var UiPopover_default = /* @__PURE__ */ _defineComponent19({
|
|
1830
|
-
...{ inheritAttrs: false },
|
|
1831
|
-
__name: "UiPopover",
|
|
1832
|
-
props: {
|
|
1833
|
-
for: { type: [String, null], required: false, default: "" },
|
|
1834
|
-
open: { type: [Boolean, null], required: false, default: false },
|
|
1835
|
-
placement: { type: [String, null], required: false, default: "bottom-start" }
|
|
1836
|
-
},
|
|
1837
|
-
emits: ["open", "close"],
|
|
1838
|
-
setup(__props, { emit: __emit }) {
|
|
1839
|
-
const props = __props;
|
|
1840
|
-
const emit = __emit;
|
|
1841
|
-
const instance = getCurrentInstance19();
|
|
1842
|
-
const passed = (name, attribute) => {
|
|
1843
|
-
const raw = instance?.vnode.props ?? {};
|
|
1844
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1845
|
-
};
|
|
1846
|
-
const explicitProps = () => {
|
|
1847
|
-
const valuefor = props.for;
|
|
1848
|
-
const valueopen = props.open;
|
|
1849
|
-
const valueplacement = props.placement;
|
|
1850
|
-
return { "for": passed("for", "for") ? valuefor : void 0, "open": passed("open", "open") ? valueopen : void 0, "placement": passed("placement", "placement") ? valueplacement : void 0 };
|
|
1851
|
-
};
|
|
1852
|
-
const definition = { ...{ "contract": { "tag": "ui-popover", "props": { "for": { "type": "string", "required": false, "target": { "attribute": "for" }, "default": "" }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false }, "placement": { "type": "string", "required": false, "target": { "attribute": "placement" }, "default": "bottom-start" } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "attribute", "name": "data-state-open", "expression": "internalOpen", "expressionPlan": { "source": "internalOpen", "ast": { "kind": "id", "name": "internalOpen" }, "dependencies": ["internalOpen"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "popover__surface" }], "children": [{ "kind": "slot" }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "open", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
1853
|
-
const root = ref19();
|
|
1854
|
-
const eventListener0 = (event) => emit("open", event.detail);
|
|
1855
|
-
const eventListener1 = (event) => emit("close", event.detail);
|
|
1856
|
-
let detach;
|
|
1857
|
-
onMounted19(() => {
|
|
1858
|
-
if (root.value == null) return;
|
|
1859
|
-
detach = attachLoomaComponent17(root.value, definition, "ui-popover", explicitProps());
|
|
1860
|
-
root.value.addEventListener("open", eventListener0);
|
|
1861
|
-
root.value.addEventListener("close", eventListener1);
|
|
1862
|
-
});
|
|
1863
|
-
watchEffect20(() => {
|
|
1864
|
-
const next = explicitProps();
|
|
1865
|
-
if (root.value == null) return;
|
|
1866
|
-
updateComponentProps17(root.value, next);
|
|
1867
|
-
});
|
|
1868
|
-
onUnmounted19(() => {
|
|
1869
|
-
root.value?.removeEventListener("open", eventListener0);
|
|
1870
|
-
root.value?.removeEventListener("close", eventListener1);
|
|
1871
|
-
detach?.();
|
|
1872
|
-
});
|
|
1873
|
-
return (_ctx, _cache) => {
|
|
1874
|
-
return _openBlock19(), _createElementBlock19(
|
|
1875
|
-
"span",
|
|
1876
|
-
_mergeProps19(_ctx.$attrs, {
|
|
1877
|
-
"data-component": "ui-popover",
|
|
1878
|
-
"data-component-root": "ui-popover",
|
|
1879
|
-
"data-state-open": void 0,
|
|
1880
|
-
ref_key: "root",
|
|
1881
|
-
ref: root
|
|
1882
|
-
}),
|
|
1883
|
-
[
|
|
1884
|
-
_createElementVNode14("div", _hoisted_118, [
|
|
1885
|
-
_renderSlot17(_ctx.$slots, "default")
|
|
1886
|
-
])
|
|
1887
|
-
],
|
|
1888
|
-
16
|
|
1889
|
-
/* FULL_PROPS */
|
|
1890
|
-
);
|
|
1891
|
-
};
|
|
1892
|
-
}
|
|
1893
|
-
});
|
|
1894
|
-
|
|
1895
|
-
// src/generated/UiRadioGroup.ts
|
|
1896
|
-
import { defineComponent as _defineComponent20 } from "vue";
|
|
1897
|
-
import { toDisplayString as _toDisplayString5, createElementVNode as _createElementVNode15, renderSlot as _renderSlot18, mergeProps as _mergeProps20, openBlock as _openBlock20, createElementBlock as _createElementBlock20 } from "vue";
|
|
1898
|
-
import { getCurrentInstance as getCurrentInstance20, onMounted as onMounted20, onUnmounted as onUnmounted20, ref as ref20, watchEffect as watchEffect21 } from "vue";
|
|
1899
|
-
import { attachLoomaComponent as attachLoomaComponent18, updateComponentProps as updateComponentProps18 } from "@threadlabs/looma/core/declarative";
|
|
1900
|
-
var _hoisted_119 = ["data-orientation", "data-disabled"];
|
|
1901
|
-
var _hoisted_212 = { "data-component": "ui-radio-group" };
|
|
1902
|
-
var UiRadioGroup_default = /* @__PURE__ */ _defineComponent20({
|
|
1903
|
-
...{ inheritAttrs: false },
|
|
1904
|
-
__name: "UiRadioGroup",
|
|
1905
|
-
props: {
|
|
1906
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1907
|
-
label: { type: [String, null], required: false, default: "Options" },
|
|
1908
|
-
name: { type: [String, null], required: false, default: "" },
|
|
1909
|
-
orientation: { type: [String, null], required: false, default: "horizontal" },
|
|
1910
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
1911
|
-
value: { type: [String, null], required: false, default: "" }
|
|
1912
|
-
},
|
|
1913
|
-
emits: ["select", "change"],
|
|
1914
|
-
setup(__props, { emit: __emit }) {
|
|
1915
|
-
const props = __props;
|
|
1916
|
-
const emit = __emit;
|
|
1917
|
-
const instance = getCurrentInstance20();
|
|
1918
|
-
const passed = (name, attribute) => {
|
|
1919
|
-
const raw = instance?.vnode.props ?? {};
|
|
1920
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
1921
|
-
};
|
|
1922
|
-
const explicitProps = () => {
|
|
1923
|
-
const valuedisabled = props.disabled;
|
|
1924
|
-
const valuelabel = props.label;
|
|
1925
|
-
const valuename = props.name;
|
|
1926
|
-
const valueorientation = props.orientation;
|
|
1927
|
-
const valuerequired = props.required;
|
|
1928
|
-
const valuevalue = props.value;
|
|
1929
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "label": passed("label", "label") ? valuelabel : void 0, "name": passed("name", "name") ? valuename : void 0, "orientation": passed("orientation", "orientation") ? valueorientation : void 0, "required": passed("required", "required") ? valuerequired : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
1930
|
-
};
|
|
1931
|
-
const definition = { ...{ "contract": { "tag": "ui-radio-group", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "data-disabled" }, "default": false }, "label": { "type": "string", "required": false, "target": { "attribute": "label" }, "default": "Options" }, "name": { "type": "string", "required": false, "target": { "attribute": "name" }, "default": "" }, "orientation": { "type": { "enum": ["horizontal", "vertical"] }, "required": false, "target": { "attribute": "data-orientation" }, "default": "horizontal" }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" }, "default": "" } } }, "template": { "kind": "element", "name": "fieldset", "attributes": [{ "kind": "literal", "name": "role", "value": "radiogroup" }, { "kind": "attribute", "name": "data-orientation", "expression": "orientation", "expressionPlan": { "source": "orientation", "ast": { "kind": "id", "name": "orientation" }, "dependencies": ["orientation"] } }, { "kind": "attribute", "name": "data-disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "legend", "attributes": [], "children": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [] }] }, { "kind": "slot" }] }, "declarations": [{ "kind": "state", "name": "internalValue", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "event", "name": "select", "type": "object({ value: string, previousValue: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "change", "type": "object({ checked: boolean, value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "fieldset", "choices": ["fieldset"] } }, source: { file: import.meta.url }, css: "" };
|
|
1932
|
-
const root = ref20();
|
|
1933
|
-
const eventListener0 = (event) => emit("select", event.detail);
|
|
1934
|
-
const eventListener1 = (event) => emit("change", event.detail);
|
|
1935
|
-
let detach;
|
|
1936
|
-
onMounted20(() => {
|
|
1937
|
-
if (root.value == null) return;
|
|
1938
|
-
detach = attachLoomaComponent18(root.value, definition, "ui-radio-group", explicitProps());
|
|
1939
|
-
root.value.addEventListener("select", eventListener0);
|
|
1940
|
-
root.value.addEventListener("change", eventListener1);
|
|
1941
|
-
});
|
|
1942
|
-
watchEffect21(() => {
|
|
1943
|
-
const next = explicitProps();
|
|
1944
|
-
if (root.value == null) return;
|
|
1945
|
-
updateComponentProps18(root.value, next);
|
|
1946
|
-
});
|
|
1947
|
-
onUnmounted20(() => {
|
|
1948
|
-
root.value?.removeEventListener("select", eventListener0);
|
|
1949
|
-
root.value?.removeEventListener("change", eventListener1);
|
|
1950
|
-
detach?.();
|
|
1951
|
-
});
|
|
1952
|
-
return (_ctx, _cache) => {
|
|
1953
|
-
return _openBlock20(), _createElementBlock20("fieldset", _mergeProps20(_ctx.$attrs, {
|
|
1954
|
-
"data-component": "ui-radio-group",
|
|
1955
|
-
"data-component-root": "ui-radio-group",
|
|
1956
|
-
role: "radiogroup",
|
|
1957
|
-
"data-orientation": props.orientation,
|
|
1958
|
-
"data-disabled": props.disabled ? "" : void 0,
|
|
1959
|
-
ref_key: "root",
|
|
1960
|
-
ref: root
|
|
1961
|
-
}), [
|
|
1962
|
-
_createElementVNode15(
|
|
1963
|
-
"legend",
|
|
1964
|
-
_hoisted_212,
|
|
1965
|
-
_toDisplayString5(props.label),
|
|
1966
|
-
1
|
|
1967
|
-
/* TEXT */
|
|
1968
|
-
),
|
|
1969
|
-
_renderSlot18(_ctx.$slots, "default")
|
|
1970
|
-
], 16, _hoisted_119);
|
|
1971
|
-
};
|
|
1972
|
-
}
|
|
1973
|
-
});
|
|
1974
|
-
|
|
1975
|
-
// src/generated/UiRadio.ts
|
|
1976
|
-
import { defineComponent as _defineComponent21 } from "vue";
|
|
1977
|
-
import { createElementVNode as _createElementVNode16, renderSlot as _renderSlot19, mergeProps as _mergeProps21, openBlock as _openBlock21, createElementBlock as _createElementBlock21 } from "vue";
|
|
1978
|
-
import { getCurrentInstance as getCurrentInstance21, onMounted as onMounted21, onUnmounted as onUnmounted21, ref as ref21, watchEffect as watchEffect22 } from "vue";
|
|
1979
|
-
import { attachLoomaComponent as attachLoomaComponent19, updateComponentProps as updateComponentProps19 } from "@threadlabs/looma/core/declarative";
|
|
1980
|
-
var _hoisted_120 = ["data-disabled"];
|
|
1981
|
-
var _hoisted_213 = {
|
|
1982
|
-
class: "control",
|
|
1983
|
-
"data-component": "ui-radio"
|
|
1984
|
-
};
|
|
1985
|
-
var _hoisted_38 = ["name", "required", "value"];
|
|
1986
|
-
var _hoisted_47 = {
|
|
1987
|
-
class: "label",
|
|
1988
|
-
"data-component": "ui-radio"
|
|
1989
|
-
};
|
|
1990
|
-
var UiRadio_default = /* @__PURE__ */ _defineComponent21({
|
|
1991
|
-
...{ inheritAttrs: false },
|
|
1992
|
-
__name: "UiRadio",
|
|
1993
|
-
props: {
|
|
1994
|
-
checked: { type: [Boolean, null], required: false, default: false },
|
|
1995
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
1996
|
-
name: { type: [String, null], required: false, default: "" },
|
|
1997
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
1998
|
-
value: { type: [String, null], required: false, default: "on" }
|
|
1999
|
-
},
|
|
2000
|
-
emits: ["change"],
|
|
2001
|
-
setup(__props, { emit: __emit }) {
|
|
2002
|
-
const props = __props;
|
|
2003
|
-
const emit = __emit;
|
|
2004
|
-
const instance = getCurrentInstance21();
|
|
2005
|
-
const passed = (name, attribute) => {
|
|
2006
|
-
const raw = instance?.vnode.props ?? {};
|
|
2007
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2008
|
-
};
|
|
2009
|
-
const explicitProps = () => {
|
|
2010
|
-
const valuechecked = props.checked;
|
|
2011
|
-
const valuedisabled = props.disabled;
|
|
2012
|
-
const valuename = props.name;
|
|
2013
|
-
const valuerequired = props.required;
|
|
2014
|
-
const valuevalue = props.value;
|
|
2015
|
-
return { "checked": passed("checked", "checked") ? valuechecked : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "name": passed("name", "name") ? valuename : void 0, "required": passed("required", "required") ? valuerequired : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
2016
|
-
};
|
|
2017
|
-
const definition = { ...{ "contract": { "tag": "ui-radio", "props": { "checked": { "type": "boolean", "required": false, "target": { "attribute": "checked" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "data-disabled" }, "default": false }, "name": { "type": "string", "required": false, "target": { "attribute": "name" }, "default": "" }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" }, "default": "on" } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "attribute", "name": "data-disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "label", "attributes": [{ "kind": "literal", "name": "class", "value": "control" }], "children": [{ "kind": "element", "name": "input", "attributes": [{ "kind": "literal", "name": "type", "value": "radio" }, { "kind": "attribute", "name": "checked", "expression": "internalChecked", "expressionPlan": { "source": "internalChecked", "ast": { "kind": "id", "name": "internalChecked" }, "dependencies": ["internalChecked"] } }, { "kind": "attribute", "name": "name", "expression": "name", "expressionPlan": { "source": "name", "ast": { "kind": "id", "name": "name" }, "dependencies": ["name"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }, { "kind": "attribute", "name": "value", "expression": "value", "expressionPlan": { "source": "value", "ast": { "kind": "id", "name": "value" }, "dependencies": ["value"] } }], "children": [] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "label" }], "children": [{ "kind": "slot" }] }] }] }, "declarations": [{ "kind": "state", "name": "internalChecked", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "change", "type": "object({ checked: boolean, value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
2018
|
-
const root = ref21();
|
|
2019
|
-
const eventListener0 = (event) => emit("change", event.detail);
|
|
2020
|
-
let detach;
|
|
2021
|
-
onMounted21(() => {
|
|
2022
|
-
if (root.value == null) return;
|
|
2023
|
-
detach = attachLoomaComponent19(root.value, definition, "ui-radio", explicitProps());
|
|
2024
|
-
root.value.addEventListener("change", eventListener0);
|
|
2025
|
-
});
|
|
2026
|
-
watchEffect22(() => {
|
|
2027
|
-
const next = explicitProps();
|
|
2028
|
-
if (root.value == null) return;
|
|
2029
|
-
updateComponentProps19(root.value, next);
|
|
2030
|
-
});
|
|
2031
|
-
onUnmounted21(() => {
|
|
2032
|
-
root.value?.removeEventListener("change", eventListener0);
|
|
2033
|
-
detach?.();
|
|
2034
|
-
});
|
|
2035
|
-
return (_ctx, _cache) => {
|
|
2036
|
-
return _openBlock21(), _createElementBlock21("span", _mergeProps21(_ctx.$attrs, {
|
|
2037
|
-
"data-component": "ui-radio",
|
|
2038
|
-
"data-component-root": "ui-radio",
|
|
2039
|
-
"data-disabled": props.disabled ? "" : void 0,
|
|
2040
|
-
ref_key: "root",
|
|
2041
|
-
ref: root
|
|
2042
|
-
}), [
|
|
2043
|
-
_createElementVNode16("label", _hoisted_213, [
|
|
2044
|
-
_createElementVNode16("input", {
|
|
2045
|
-
type: "radio",
|
|
2046
|
-
checked: void 0,
|
|
2047
|
-
name: props.name,
|
|
2048
|
-
required: props.required,
|
|
2049
|
-
value: props.value,
|
|
2050
|
-
"data-component": "ui-radio"
|
|
2051
|
-
}, null, 8, _hoisted_38),
|
|
2052
|
-
_createElementVNode16("span", _hoisted_47, [
|
|
2053
|
-
_renderSlot19(_ctx.$slots, "default")
|
|
2054
|
-
])
|
|
2055
|
-
])
|
|
2056
|
-
], 16, _hoisted_120);
|
|
2057
|
-
};
|
|
2058
|
-
}
|
|
2059
|
-
});
|
|
2060
|
-
|
|
2061
|
-
// src/generated/UiSearchResultRow.ts
|
|
2062
|
-
import { defineComponent as _defineComponent22 } from "vue";
|
|
2063
|
-
import { renderSlot as _renderSlot20, createElementVNode as _createElementVNode17, mergeProps as _mergeProps22, openBlock as _openBlock22, createElementBlock as _createElementBlock22 } from "vue";
|
|
2064
|
-
import { getCurrentInstance as getCurrentInstance22, onMounted as onMounted22, onUnmounted as onUnmounted22, ref as ref22, watchEffect as watchEffect23 } from "vue";
|
|
2065
|
-
import { attachLoomaComponent as attachLoomaComponent20, updateComponentProps as updateComponentProps20 } from "@threadlabs/looma/core/declarative";
|
|
2066
|
-
var _hoisted_121 = ["disabled", "data-selected"];
|
|
2067
|
-
var _hoisted_214 = {
|
|
2068
|
-
class: "search-result-row__leading",
|
|
2069
|
-
part: "leading",
|
|
2070
|
-
hidden: void 0,
|
|
2071
|
-
"data-component": "ui-search-result-row"
|
|
2072
|
-
};
|
|
2073
|
-
var _hoisted_39 = {
|
|
2074
|
-
slot: "leading",
|
|
2075
|
-
style: { "display": "contents" }
|
|
2076
|
-
};
|
|
2077
|
-
var _hoisted_48 = {
|
|
2078
|
-
class: "search-result-row__content",
|
|
2079
|
-
part: "content",
|
|
2080
|
-
"data-component": "ui-search-result-row"
|
|
2081
|
-
};
|
|
2082
|
-
var _hoisted_54 = {
|
|
2083
|
-
class: "search-result-row__title",
|
|
2084
|
-
part: "title",
|
|
2085
|
-
"data-component": "ui-search-result-row"
|
|
2086
|
-
};
|
|
2087
|
-
var _hoisted_63 = {
|
|
2088
|
-
slot: "title",
|
|
2089
|
-
style: { "display": "contents" }
|
|
2090
|
-
};
|
|
2091
|
-
var _hoisted_72 = {
|
|
2092
|
-
class: "search-result-row__meta",
|
|
2093
|
-
part: "meta",
|
|
2094
|
-
hidden: void 0,
|
|
2095
|
-
"data-component": "ui-search-result-row"
|
|
2096
|
-
};
|
|
2097
|
-
var _hoisted_82 = {
|
|
2098
|
-
slot: "meta",
|
|
2099
|
-
style: { "display": "contents" }
|
|
2100
|
-
};
|
|
2101
|
-
var _hoisted_92 = {
|
|
2102
|
-
class: "search-result-row__excerpt",
|
|
2103
|
-
part: "excerpt",
|
|
2104
|
-
hidden: void 0,
|
|
2105
|
-
"data-component": "ui-search-result-row"
|
|
2106
|
-
};
|
|
2107
|
-
var _hoisted_102 = {
|
|
2108
|
-
slot: "excerpt",
|
|
2109
|
-
style: { "display": "contents" }
|
|
2110
|
-
};
|
|
2111
|
-
var _hoisted_11 = {
|
|
2112
|
-
class: "search-result-row__trailing",
|
|
2113
|
-
part: "trailing",
|
|
2114
|
-
hidden: void 0,
|
|
2115
|
-
"data-component": "ui-search-result-row"
|
|
2116
|
-
};
|
|
2117
|
-
var _hoisted_122 = {
|
|
2118
|
-
slot: "trailing",
|
|
2119
|
-
style: { "display": "contents" }
|
|
2120
|
-
};
|
|
2121
|
-
var UiSearchResultRow_default = /* @__PURE__ */ _defineComponent22({
|
|
2122
|
-
...{ inheritAttrs: false },
|
|
2123
|
-
__name: "UiSearchResultRow",
|
|
2124
|
-
props: {
|
|
2125
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
2126
|
-
selected: { type: [Boolean, null], required: false, default: false }
|
|
2127
|
-
},
|
|
2128
|
-
setup(__props) {
|
|
2129
|
-
const props = __props;
|
|
2130
|
-
const instance = getCurrentInstance22();
|
|
2131
|
-
const passed = (name, attribute) => {
|
|
2132
|
-
const raw = instance?.vnode.props ?? {};
|
|
2133
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2134
|
-
};
|
|
2135
|
-
const explicitProps = () => {
|
|
2136
|
-
const valuedisabled = props.disabled;
|
|
2137
|
-
const valueselected = props.selected;
|
|
2138
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "selected": passed("selected", "selected") ? valueselected : void 0 };
|
|
2139
|
-
};
|
|
2140
|
-
const definition = { ...{ "contract": { "tag": "ui-search-result-row", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "selected": { "type": "boolean", "required": false, "target": { "attribute": "data-selected" }, "default": false } } }, "template": { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row" }, { "kind": "literal", "name": "type", "value": "button" }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "data-selected", "expression": "selected", "expressionPlan": { "source": "selected", "ast": { "kind": "id", "name": "selected" }, "dependencies": ["selected"] } }, { "kind": "literal", "name": "part", "value": "button" }], "children": [{ "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row__leading" }, { "kind": "literal", "name": "part", "value": "leading" }, { "kind": "attribute", "name": "hidden", "expression": "not hasLeading", "expressionPlan": { "source": "not hasLeading", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasLeading" } }, "dependencies": ["hasLeading"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "leading" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row__content" }, { "kind": "literal", "name": "part", "value": "content" }], "children": [{ "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row__title" }, { "kind": "literal", "name": "part", "value": "title" }], "children": [{ "kind": "slot", "fallback": [], "name": "title" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row__meta" }, { "kind": "literal", "name": "part", "value": "meta" }, { "kind": "attribute", "name": "hidden", "expression": "not hasMeta", "expressionPlan": { "source": "not hasMeta", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasMeta" } }, "dependencies": ["hasMeta"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "meta" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row__excerpt" }, { "kind": "literal", "name": "part", "value": "excerpt" }, { "kind": "attribute", "name": "hidden", "expression": "not hasExcerpt", "expressionPlan": { "source": "not hasExcerpt", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasExcerpt" } }, "dependencies": ["hasExcerpt"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "excerpt" }] }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "search-result-row__trailing" }, { "kind": "literal", "name": "part", "value": "trailing" }, { "kind": "attribute", "name": "hidden", "expression": "not hasTrailing", "expressionPlan": { "source": "not hasTrailing", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasTrailing" } }, "dependencies": ["hasTrailing"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "trailing" }] }] }, "declarations": [{ "kind": "state", "name": "hasLeading", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasMeta", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasExcerpt", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasTrailing", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }], "root": { "kind": "native", "element": "button", "choices": ["button"] } }, source: { file: import.meta.url }, css: "" };
|
|
2141
|
-
const root = ref22();
|
|
2142
|
-
let detach;
|
|
2143
|
-
onMounted22(() => {
|
|
2144
|
-
if (root.value == null) return;
|
|
2145
|
-
detach = attachLoomaComponent20(root.value, definition, "ui-search-result-row", explicitProps());
|
|
2146
|
-
});
|
|
2147
|
-
watchEffect23(() => {
|
|
2148
|
-
const next = explicitProps();
|
|
2149
|
-
if (root.value == null) return;
|
|
2150
|
-
updateComponentProps20(root.value, next);
|
|
2151
|
-
});
|
|
2152
|
-
onUnmounted22(() => {
|
|
2153
|
-
detach?.();
|
|
2154
|
-
});
|
|
2155
|
-
return (_ctx, _cache) => {
|
|
2156
|
-
return _openBlock22(), _createElementBlock22("button", _mergeProps22(_ctx.$attrs, {
|
|
2157
|
-
"data-component": "ui-search-result-row",
|
|
2158
|
-
"data-component-root": "ui-search-result-row",
|
|
2159
|
-
class: "search-result-row",
|
|
2160
|
-
type: "button",
|
|
2161
|
-
disabled: props.disabled,
|
|
2162
|
-
"data-selected": props.selected ? "" : void 0,
|
|
2163
|
-
part: "button",
|
|
2164
|
-
ref_key: "root",
|
|
2165
|
-
ref: root
|
|
2166
|
-
}), [
|
|
2167
|
-
_createElementVNode17("span", _hoisted_214, [
|
|
2168
|
-
_createElementVNode17("span", _hoisted_39, [
|
|
2169
|
-
_renderSlot20(_ctx.$slots, "leading")
|
|
2170
|
-
])
|
|
2171
|
-
]),
|
|
2172
|
-
_createElementVNode17("span", _hoisted_48, [
|
|
2173
|
-
_createElementVNode17("span", _hoisted_54, [
|
|
2174
|
-
_createElementVNode17("span", _hoisted_63, [
|
|
2175
|
-
_renderSlot20(_ctx.$slots, "title")
|
|
2176
|
-
])
|
|
2177
|
-
]),
|
|
2178
|
-
_createElementVNode17("span", _hoisted_72, [
|
|
2179
|
-
_createElementVNode17("span", _hoisted_82, [
|
|
2180
|
-
_renderSlot20(_ctx.$slots, "meta")
|
|
2181
|
-
])
|
|
2182
|
-
]),
|
|
2183
|
-
_createElementVNode17("span", _hoisted_92, [
|
|
2184
|
-
_createElementVNode17("span", _hoisted_102, [
|
|
2185
|
-
_renderSlot20(_ctx.$slots, "excerpt")
|
|
2186
|
-
])
|
|
2187
|
-
])
|
|
2188
|
-
]),
|
|
2189
|
-
_createElementVNode17("span", _hoisted_11, [
|
|
2190
|
-
_createElementVNode17("span", _hoisted_122, [
|
|
2191
|
-
_renderSlot20(_ctx.$slots, "trailing")
|
|
2192
|
-
])
|
|
2193
|
-
])
|
|
2194
|
-
], 16, _hoisted_121);
|
|
2195
|
-
};
|
|
2196
|
-
}
|
|
2197
|
-
});
|
|
2198
|
-
|
|
2199
|
-
// src/generated/UiSearchShell.ts
|
|
2200
|
-
import { defineComponent as _defineComponent23 } from "vue";
|
|
2201
|
-
import { renderSlot as _renderSlot21, createElementVNode as _createElementVNode18, mergeProps as _mergeProps23, openBlock as _openBlock23, createElementBlock as _createElementBlock23 } from "vue";
|
|
2202
|
-
import { getCurrentInstance as getCurrentInstance23, onMounted as onMounted23, onUnmounted as onUnmounted23, ref as ref23, watchEffect as watchEffect24 } from "vue";
|
|
2203
|
-
import { attachLoomaComponent as attachLoomaComponent21, updateComponentProps as updateComponentProps21 } from "@threadlabs/looma/core/declarative";
|
|
2204
|
-
var _hoisted_123 = {
|
|
2205
|
-
class: "search-shell",
|
|
2206
|
-
part: "base",
|
|
2207
|
-
"data-component": "ui-search-shell"
|
|
2208
|
-
};
|
|
2209
|
-
var _hoisted_215 = {
|
|
2210
|
-
class: "search-shell__panel",
|
|
2211
|
-
part: "panel",
|
|
2212
|
-
"data-component": "ui-search-shell"
|
|
2213
|
-
};
|
|
2214
|
-
var _hoisted_310 = {
|
|
2215
|
-
class: "search-shell__search",
|
|
2216
|
-
part: "search",
|
|
2217
|
-
"data-component": "ui-search-shell"
|
|
2218
|
-
};
|
|
2219
|
-
var _hoisted_49 = {
|
|
2220
|
-
slot: "search",
|
|
2221
|
-
style: { "display": "contents" }
|
|
2222
|
-
};
|
|
2223
|
-
var _hoisted_55 = {
|
|
2224
|
-
class: "search-shell__status",
|
|
2225
|
-
part: "status",
|
|
2226
|
-
"data-component": "ui-search-shell"
|
|
2227
|
-
};
|
|
2228
|
-
var _hoisted_64 = {
|
|
2229
|
-
slot: "status",
|
|
2230
|
-
style: { "display": "contents" }
|
|
2231
|
-
};
|
|
2232
|
-
var _hoisted_73 = {
|
|
2233
|
-
class: "search-shell__body",
|
|
2234
|
-
part: "body",
|
|
2235
|
-
"data-component": "ui-search-shell"
|
|
2236
|
-
};
|
|
2237
|
-
var _hoisted_83 = {
|
|
2238
|
-
slot: "body",
|
|
2239
|
-
style: { "display": "contents" }
|
|
2240
|
-
};
|
|
2241
|
-
var _hoisted_93 = {
|
|
2242
|
-
class: "search-shell__footer",
|
|
2243
|
-
part: "footer",
|
|
2244
|
-
"data-component": "ui-search-shell"
|
|
2245
|
-
};
|
|
2246
|
-
var _hoisted_103 = {
|
|
2247
|
-
slot: "footer",
|
|
2248
|
-
style: { "display": "contents" }
|
|
2249
|
-
};
|
|
2250
|
-
var UiSearchShell_default = /* @__PURE__ */ _defineComponent23({
|
|
2251
|
-
...{ inheritAttrs: false },
|
|
2252
|
-
__name: "UiSearchShell",
|
|
2253
|
-
props: {
|
|
2254
|
-
dismissible: { type: [Boolean, null], required: false, default: false },
|
|
2255
|
-
label: { type: [String, null], required: false, default: "Search" },
|
|
2256
|
-
modal: { type: [Boolean, null], required: false, default: false },
|
|
2257
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
2258
|
-
},
|
|
2259
|
-
emits: ["close"],
|
|
2260
|
-
setup(__props, { emit: __emit }) {
|
|
2261
|
-
const props = __props;
|
|
2262
|
-
const emit = __emit;
|
|
2263
|
-
const instance = getCurrentInstance23();
|
|
2264
|
-
const passed = (name, attribute) => {
|
|
2265
|
-
const raw = instance?.vnode.props ?? {};
|
|
2266
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2267
|
-
};
|
|
2268
|
-
const explicitProps = () => {
|
|
2269
|
-
const valuedismissible = props.dismissible;
|
|
2270
|
-
const valuelabel = props.label;
|
|
2271
|
-
const valuemodal = props.modal;
|
|
2272
|
-
const valueopen = props.open;
|
|
2273
|
-
return { "dismissible": passed("dismissible", "dismissible") ? valuedismissible : void 0, "label": passed("label", "label") ? valuelabel : void 0, "modal": passed("modal", "modal") ? valuemodal : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
2274
|
-
};
|
|
2275
|
-
const definition = { ...{ "contract": { "tag": "ui-search-shell", "props": { "dismissible": { "type": "boolean", "required": false, "target": { "attribute": "dismissible" }, "default": false }, "label": { "type": "string", "required": false, "target": { "attribute": "label" }, "default": "Search" }, "modal": { "type": "boolean", "required": false, "target": { "attribute": "modal" }, "default": false }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [{ "kind": "element", "name": "dialog", "attributes": [{ "kind": "literal", "name": "class", "value": "search-shell" }, { "kind": "literal", "name": "part", "value": "base" }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "search-shell__panel" }, { "kind": "literal", "name": "part", "value": "panel" }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "search-shell__search" }, { "kind": "literal", "name": "part", "value": "search" }], "children": [{ "kind": "slot", "fallback": [], "name": "search" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "search-shell__status" }, { "kind": "literal", "name": "part", "value": "status" }], "children": [{ "kind": "slot", "fallback": [], "name": "status" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "search-shell__body" }, { "kind": "literal", "name": "part", "value": "body" }], "children": [{ "kind": "slot", "fallback": [], "name": "body" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "search-shell__footer" }, { "kind": "literal", "name": "part", "value": "footer" }], "children": [{ "kind": "slot", "fallback": [], "name": "footer" }] }] }] }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
2276
|
-
const root = ref23();
|
|
2277
|
-
const eventListener0 = (event) => emit("close", event.detail);
|
|
2278
|
-
let detach;
|
|
2279
|
-
onMounted23(() => {
|
|
2280
|
-
if (root.value == null) return;
|
|
2281
|
-
detach = attachLoomaComponent21(root.value, definition, "ui-search-shell", explicitProps());
|
|
2282
|
-
root.value.addEventListener("close", eventListener0);
|
|
2283
|
-
});
|
|
2284
|
-
watchEffect24(() => {
|
|
2285
|
-
const next = explicitProps();
|
|
2286
|
-
if (root.value == null) return;
|
|
2287
|
-
updateComponentProps21(root.value, next);
|
|
2288
|
-
});
|
|
2289
|
-
onUnmounted23(() => {
|
|
2290
|
-
root.value?.removeEventListener("close", eventListener0);
|
|
2291
|
-
detach?.();
|
|
2292
|
-
});
|
|
2293
|
-
return (_ctx, _cache) => {
|
|
2294
|
-
return _openBlock23(), _createElementBlock23(
|
|
2295
|
-
"div",
|
|
2296
|
-
_mergeProps23(_ctx.$attrs, {
|
|
2297
|
-
"data-component": "ui-search-shell",
|
|
2298
|
-
"data-component-root": "ui-search-shell",
|
|
2299
|
-
ref_key: "root",
|
|
2300
|
-
ref: root
|
|
2301
|
-
}),
|
|
2302
|
-
[
|
|
2303
|
-
_createElementVNode18("dialog", _hoisted_123, [
|
|
2304
|
-
_createElementVNode18("div", _hoisted_215, [
|
|
2305
|
-
_createElementVNode18("div", _hoisted_310, [
|
|
2306
|
-
_createElementVNode18("span", _hoisted_49, [
|
|
2307
|
-
_renderSlot21(_ctx.$slots, "search")
|
|
2308
|
-
])
|
|
2309
|
-
]),
|
|
2310
|
-
_createElementVNode18("div", _hoisted_55, [
|
|
2311
|
-
_createElementVNode18("span", _hoisted_64, [
|
|
2312
|
-
_renderSlot21(_ctx.$slots, "status")
|
|
2313
|
-
])
|
|
2314
|
-
]),
|
|
2315
|
-
_createElementVNode18("div", _hoisted_73, [
|
|
2316
|
-
_createElementVNode18("span", _hoisted_83, [
|
|
2317
|
-
_renderSlot21(_ctx.$slots, "body")
|
|
2318
|
-
])
|
|
2319
|
-
]),
|
|
2320
|
-
_createElementVNode18("div", _hoisted_93, [
|
|
2321
|
-
_createElementVNode18("span", _hoisted_103, [
|
|
2322
|
-
_renderSlot21(_ctx.$slots, "footer")
|
|
2323
|
-
])
|
|
2324
|
-
])
|
|
2325
|
-
])
|
|
2326
|
-
])
|
|
2327
|
-
],
|
|
2328
|
-
16
|
|
2329
|
-
/* FULL_PROPS */
|
|
2330
|
-
);
|
|
2331
|
-
};
|
|
2332
|
-
}
|
|
2333
|
-
});
|
|
2334
|
-
|
|
2335
|
-
// src/generated/UiSelect.ts
|
|
2336
|
-
import { defineComponent as _defineComponent24 } from "vue";
|
|
2337
|
-
import { renderSlot as _renderSlot22, mergeProps as _mergeProps24, openBlock as _openBlock24, createElementBlock as _createElementBlock24 } from "vue";
|
|
2338
|
-
import { getCurrentInstance as getCurrentInstance24, onMounted as onMounted24, onUnmounted as onUnmounted24, ref as ref24, watchEffect as watchEffect25 } from "vue";
|
|
2339
|
-
import { attachLoomaComponent as attachLoomaComponent22, updateComponentProps as updateComponentProps22 } from "@threadlabs/looma/core/declarative";
|
|
2340
|
-
var _hoisted_124 = ["disabled", "required", "multiple"];
|
|
2341
|
-
var UiSelect_default = /* @__PURE__ */ _defineComponent24({
|
|
2342
|
-
...{ inheritAttrs: false },
|
|
2343
|
-
__name: "UiSelect",
|
|
2344
|
-
props: {
|
|
2345
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
2346
|
-
invalid: { type: [Boolean, null], required: false, default: false },
|
|
2347
|
-
multiple: { type: [Boolean, null], required: false, default: false },
|
|
2348
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
2349
|
-
value: { type: [String, null], required: false }
|
|
2350
|
-
},
|
|
2351
|
-
setup(__props) {
|
|
2352
|
-
const props = __props;
|
|
2353
|
-
const instance = getCurrentInstance24();
|
|
2354
|
-
const passed = (name, attribute) => {
|
|
2355
|
-
const raw = instance?.vnode.props ?? {};
|
|
2356
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2357
|
-
};
|
|
2358
|
-
const explicitProps = () => {
|
|
2359
|
-
const valuedisabled = props.disabled;
|
|
2360
|
-
const valueinvalid = props.invalid;
|
|
2361
|
-
const valuemultiple = props.multiple;
|
|
2362
|
-
const valuerequired = props.required;
|
|
2363
|
-
const valuevalue = props.value;
|
|
2364
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "invalid": passed("invalid", "invalid") ? valueinvalid : void 0, "multiple": passed("multiple", "multiple") ? valuemultiple : void 0, "required": passed("required", "required") ? valuerequired : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
2365
|
-
};
|
|
2366
|
-
const definition = { ...{ "contract": { "tag": "ui-select", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "invalid": { "type": "boolean", "required": false, "target": { "attribute": "invalid" }, "default": false }, "multiple": { "type": "boolean", "required": false, "target": { "attribute": "multiple" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" } } } }, "template": { "kind": "element", "name": "select", "attributes": [{ "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }, { "kind": "attribute", "name": "multiple", "expression": "multiple", "expressionPlan": { "source": "multiple", "ast": { "kind": "id", "name": "multiple" }, "dependencies": ["multiple"] } }], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "select", "choices": ["select"] } }, source: { file: import.meta.url }, css: "" };
|
|
2367
|
-
const root = ref24();
|
|
2368
|
-
let detach;
|
|
2369
|
-
onMounted24(() => {
|
|
2370
|
-
if (root.value == null) return;
|
|
2371
|
-
detach = attachLoomaComponent22(root.value, definition, "ui-select", explicitProps());
|
|
2372
|
-
});
|
|
2373
|
-
watchEffect25(() => {
|
|
2374
|
-
const next = explicitProps();
|
|
2375
|
-
if (root.value == null) return;
|
|
2376
|
-
updateComponentProps22(root.value, next);
|
|
2377
|
-
});
|
|
2378
|
-
onUnmounted24(() => {
|
|
2379
|
-
detach?.();
|
|
2380
|
-
});
|
|
2381
|
-
return (_ctx, _cache) => {
|
|
2382
|
-
return _openBlock24(), _createElementBlock24("select", _mergeProps24(_ctx.$attrs, {
|
|
2383
|
-
"data-component": "ui-select",
|
|
2384
|
-
"data-component-root": "ui-select",
|
|
2385
|
-
disabled: props.disabled,
|
|
2386
|
-
required: props.required,
|
|
2387
|
-
multiple: props.multiple,
|
|
2388
|
-
ref_key: "root",
|
|
2389
|
-
ref: root
|
|
2390
|
-
}), [
|
|
2391
|
-
_renderSlot22(_ctx.$slots, "default")
|
|
2392
|
-
], 16, _hoisted_124);
|
|
2393
|
-
};
|
|
2394
|
-
}
|
|
2395
|
-
});
|
|
2396
|
-
|
|
2397
|
-
// src/generated/UiSwitch.ts
|
|
2398
|
-
import { defineComponent as _defineComponent25 } from "vue";
|
|
2399
|
-
import { createElementVNode as _createElementVNode19, renderSlot as _renderSlot23, mergeProps as _mergeProps25, openBlock as _openBlock25, createElementBlock as _createElementBlock25 } from "vue";
|
|
2400
|
-
import { getCurrentInstance as getCurrentInstance25, onMounted as onMounted25, onUnmounted as onUnmounted25, ref as ref25, watchEffect as watchEffect26 } from "vue";
|
|
2401
|
-
import { attachLoomaComponent as attachLoomaComponent23, updateComponentProps as updateComponentProps23 } from "@threadlabs/looma/core/declarative";
|
|
2402
|
-
var _hoisted_125 = ["data-disabled"];
|
|
2403
|
-
var _hoisted_216 = {
|
|
2404
|
-
class: "control",
|
|
2405
|
-
"data-component": "ui-switch"
|
|
2406
|
-
};
|
|
2407
|
-
var _hoisted_311 = ["required", "value"];
|
|
2408
|
-
var _hoisted_410 = {
|
|
2409
|
-
class: "label",
|
|
2410
|
-
"data-component": "ui-switch"
|
|
2411
|
-
};
|
|
2412
|
-
var UiSwitch_default = /* @__PURE__ */ _defineComponent25({
|
|
2413
|
-
...{ inheritAttrs: false },
|
|
2414
|
-
__name: "UiSwitch",
|
|
2415
|
-
props: {
|
|
2416
|
-
checked: { type: [Boolean, null], required: false, default: false },
|
|
2417
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
2418
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
2419
|
-
value: { type: [String, null], required: false, default: "on" }
|
|
2420
|
-
},
|
|
2421
|
-
emits: ["change"],
|
|
2422
|
-
setup(__props, { emit: __emit }) {
|
|
2423
|
-
const props = __props;
|
|
2424
|
-
const emit = __emit;
|
|
2425
|
-
const instance = getCurrentInstance25();
|
|
2426
|
-
const passed = (name, attribute) => {
|
|
2427
|
-
const raw = instance?.vnode.props ?? {};
|
|
2428
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2429
|
-
};
|
|
2430
|
-
const explicitProps = () => {
|
|
2431
|
-
const valuechecked = props.checked;
|
|
2432
|
-
const valuedisabled = props.disabled;
|
|
2433
|
-
const valuerequired = props.required;
|
|
2434
|
-
const valuevalue = props.value;
|
|
2435
|
-
return { "checked": passed("checked", "checked") ? valuechecked : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "required": passed("required", "required") ? valuerequired : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
2436
|
-
};
|
|
2437
|
-
const definition = { ...{ "contract": { "tag": "ui-switch", "props": { "checked": { "type": "boolean", "required": false, "target": { "attribute": "checked" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "data-disabled" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" }, "default": "on" } } }, "template": { "kind": "element", "name": "span", "attributes": [{ "kind": "attribute", "name": "data-disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "label", "attributes": [{ "kind": "literal", "name": "class", "value": "control" }], "children": [{ "kind": "element", "name": "input", "attributes": [{ "kind": "literal", "name": "type", "value": "checkbox" }, { "kind": "literal", "name": "role", "value": "switch" }, { "kind": "attribute", "name": "checked", "expression": "internalChecked", "expressionPlan": { "source": "internalChecked", "ast": { "kind": "id", "name": "internalChecked" }, "dependencies": ["internalChecked"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }, { "kind": "attribute", "name": "value", "expression": "value", "expressionPlan": { "source": "value", "ast": { "kind": "id", "name": "value" }, "dependencies": ["value"] } }], "children": [] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "label" }], "children": [{ "kind": "slot" }] }] }] }, "declarations": [{ "kind": "state", "name": "internalChecked", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "change", "type": "object({ checked: boolean, value: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "span", "choices": ["span"] } }, source: { file: import.meta.url }, css: "" };
|
|
2438
|
-
const root = ref25();
|
|
2439
|
-
const eventListener0 = (event) => emit("change", event.detail);
|
|
2440
|
-
let detach;
|
|
2441
|
-
onMounted25(() => {
|
|
2442
|
-
if (root.value == null) return;
|
|
2443
|
-
detach = attachLoomaComponent23(root.value, definition, "ui-switch", explicitProps());
|
|
2444
|
-
root.value.addEventListener("change", eventListener0);
|
|
2445
|
-
});
|
|
2446
|
-
watchEffect26(() => {
|
|
2447
|
-
const next = explicitProps();
|
|
2448
|
-
if (root.value == null) return;
|
|
2449
|
-
updateComponentProps23(root.value, next);
|
|
2450
|
-
});
|
|
2451
|
-
onUnmounted25(() => {
|
|
2452
|
-
root.value?.removeEventListener("change", eventListener0);
|
|
2453
|
-
detach?.();
|
|
2454
|
-
});
|
|
2455
|
-
return (_ctx, _cache) => {
|
|
2456
|
-
return _openBlock25(), _createElementBlock25("span", _mergeProps25(_ctx.$attrs, {
|
|
2457
|
-
"data-component": "ui-switch",
|
|
2458
|
-
"data-component-root": "ui-switch",
|
|
2459
|
-
"data-disabled": props.disabled ? "" : void 0,
|
|
2460
|
-
ref_key: "root",
|
|
2461
|
-
ref: root
|
|
2462
|
-
}), [
|
|
2463
|
-
_createElementVNode19("label", _hoisted_216, [
|
|
2464
|
-
_createElementVNode19("input", {
|
|
2465
|
-
type: "checkbox",
|
|
2466
|
-
role: "switch",
|
|
2467
|
-
checked: void 0,
|
|
2468
|
-
required: props.required,
|
|
2469
|
-
value: props.value,
|
|
2470
|
-
"data-component": "ui-switch"
|
|
2471
|
-
}, null, 8, _hoisted_311),
|
|
2472
|
-
_createElementVNode19("span", _hoisted_410, [
|
|
2473
|
-
_renderSlot23(_ctx.$slots, "default")
|
|
2474
|
-
])
|
|
2475
|
-
])
|
|
2476
|
-
], 16, _hoisted_125);
|
|
2477
|
-
};
|
|
2478
|
-
}
|
|
2479
|
-
});
|
|
2480
|
-
|
|
2481
|
-
// src/generated/UiTabs.ts
|
|
2482
|
-
import { defineComponent as _defineComponent26 } from "vue";
|
|
2483
|
-
import { createElementVNode as _createElementVNode20, renderSlot as _renderSlot24, mergeProps as _mergeProps26, openBlock as _openBlock26, createElementBlock as _createElementBlock26 } from "vue";
|
|
2484
|
-
import { getCurrentInstance as getCurrentInstance26, onMounted as onMounted26, onUnmounted as onUnmounted26, ref as ref26, watchEffect as watchEffect27 } from "vue";
|
|
2485
|
-
import { attachLoomaComponent as attachLoomaComponent24, updateComponentProps as updateComponentProps24 } from "@threadlabs/looma/core/declarative";
|
|
2486
|
-
var _hoisted_126 = ["data-orientation", "data-stretch"];
|
|
2487
|
-
var _hoisted_217 = ["aria-label"];
|
|
2488
|
-
var _hoisted_312 = {
|
|
2489
|
-
class: "tabs__panels",
|
|
2490
|
-
"data-component": "ui-tabs"
|
|
2491
|
-
};
|
|
2492
|
-
var UiTabs_default = /* @__PURE__ */ _defineComponent26({
|
|
2493
|
-
...{ inheritAttrs: false },
|
|
2494
|
-
__name: "UiTabs",
|
|
2495
|
-
props: {
|
|
2496
|
-
label: { type: [String, null], required: false, default: "Tabs" },
|
|
2497
|
-
orientation: { type: [String, null], required: false, default: "horizontal" },
|
|
2498
|
-
stretch: { type: [Boolean, null], required: false, default: false },
|
|
2499
|
-
value: { type: [String, null], required: false, default: "" }
|
|
2500
|
-
},
|
|
2501
|
-
emits: ["select"],
|
|
2502
|
-
setup(__props, { emit: __emit }) {
|
|
2503
|
-
const props = __props;
|
|
2504
|
-
const emit = __emit;
|
|
2505
|
-
const instance = getCurrentInstance26();
|
|
2506
|
-
const passed = (name, attribute) => {
|
|
2507
|
-
const raw = instance?.vnode.props ?? {};
|
|
2508
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2509
|
-
};
|
|
2510
|
-
const explicitProps = () => {
|
|
2511
|
-
const valuelabel = props.label;
|
|
2512
|
-
const valueorientation = props.orientation;
|
|
2513
|
-
const valuestretch = props.stretch;
|
|
2514
|
-
const valuevalue = props.value;
|
|
2515
|
-
return { "label": passed("label", "label") ? valuelabel : void 0, "orientation": passed("orientation", "orientation") ? valueorientation : void 0, "stretch": passed("stretch", "stretch") ? valuestretch : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
2516
|
-
};
|
|
2517
|
-
const definition = { ...{ "contract": { "tag": "ui-tabs", "props": { "label": { "type": "string", "required": false, "target": { "attribute": "aria-label" }, "default": "Tabs" }, "orientation": { "type": { "enum": ["horizontal", "vertical"] }, "required": false, "target": { "attribute": "data-orientation" }, "default": "horizontal" }, "stretch": { "type": "boolean", "required": false, "target": { "attribute": "data-stretch" }, "default": false }, "value": { "type": "string", "required": false, "target": { "attribute": "value" }, "default": "" } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "attribute", "name": "data-orientation", "expression": "orientation", "expressionPlan": { "source": "orientation", "ast": { "kind": "id", "name": "orientation" }, "dependencies": ["orientation"] } }, { "kind": "attribute", "name": "data-stretch", "expression": "stretch", "expressionPlan": { "source": "stretch", "ast": { "kind": "id", "name": "stretch" }, "dependencies": ["stretch"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "tabs__list" }, { "kind": "literal", "name": "role", "value": "tablist" }, { "kind": "attribute", "name": "aria-label", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "tabs__panels" }], "children": [{ "kind": "slot" }] }] }, "declarations": [{ "kind": "state", "name": "internalValue", "expression": { "source": "''", "ast": { "kind": "literal", "value": "" }, "dependencies": [] } }, { "kind": "event", "name": "select", "type": "object({ value: string, previousValue: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
2518
|
-
const root = ref26();
|
|
2519
|
-
const eventListener0 = (event) => emit("select", event.detail);
|
|
2520
|
-
let detach;
|
|
2521
|
-
onMounted26(() => {
|
|
2522
|
-
if (root.value == null) return;
|
|
2523
|
-
detach = attachLoomaComponent24(root.value, definition, "ui-tabs", explicitProps());
|
|
2524
|
-
root.value.addEventListener("select", eventListener0);
|
|
2525
|
-
});
|
|
2526
|
-
watchEffect27(() => {
|
|
2527
|
-
const next = explicitProps();
|
|
2528
|
-
if (root.value == null) return;
|
|
2529
|
-
updateComponentProps24(root.value, next);
|
|
2530
|
-
});
|
|
2531
|
-
onUnmounted26(() => {
|
|
2532
|
-
root.value?.removeEventListener("select", eventListener0);
|
|
2533
|
-
detach?.();
|
|
2534
|
-
});
|
|
2535
|
-
return (_ctx, _cache) => {
|
|
2536
|
-
return _openBlock26(), _createElementBlock26("div", _mergeProps26(_ctx.$attrs, {
|
|
2537
|
-
"data-component": "ui-tabs",
|
|
2538
|
-
"data-component-root": "ui-tabs",
|
|
2539
|
-
"data-orientation": props.orientation,
|
|
2540
|
-
"data-stretch": props.stretch ? "" : void 0,
|
|
2541
|
-
ref_key: "root",
|
|
2542
|
-
ref: root
|
|
2543
|
-
}), [
|
|
2544
|
-
_createElementVNode20("div", {
|
|
2545
|
-
class: "tabs__list",
|
|
2546
|
-
role: "tablist",
|
|
2547
|
-
"aria-label": props.label,
|
|
2548
|
-
"data-component": "ui-tabs"
|
|
2549
|
-
}, null, 8, _hoisted_217),
|
|
2550
|
-
_createElementVNode20("div", _hoisted_312, [
|
|
2551
|
-
_renderSlot24(_ctx.$slots, "default")
|
|
2552
|
-
])
|
|
2553
|
-
], 16, _hoisted_126);
|
|
2554
|
-
};
|
|
2555
|
-
}
|
|
2556
|
-
});
|
|
2557
|
-
|
|
2558
|
-
// src/generated/UiTextarea.ts
|
|
2559
|
-
import { defineComponent as _defineComponent27 } from "vue";
|
|
2560
|
-
import { mergeProps as _mergeProps27, openBlock as _openBlock27, createElementBlock as _createElementBlock27 } from "vue";
|
|
2561
|
-
import { getCurrentInstance as getCurrentInstance27, onMounted as onMounted27, onUnmounted as onUnmounted27, ref as ref27, watchEffect as watchEffect28 } from "vue";
|
|
2562
|
-
import { attachLoomaComponent as attachLoomaComponent25, updateComponentProps as updateComponentProps25 } from "@threadlabs/looma/core/declarative";
|
|
2563
|
-
var _hoisted_127 = ["value", "disabled", "readonly", "required", "rows"];
|
|
2564
|
-
var UiTextarea_default = /* @__PURE__ */ _defineComponent27({
|
|
2565
|
-
...{ inheritAttrs: false },
|
|
2566
|
-
__name: "UiTextarea",
|
|
2567
|
-
props: {
|
|
2568
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
2569
|
-
invalid: { type: [Boolean, null], required: false, default: false },
|
|
2570
|
-
readonly: { type: [Boolean, null], required: false, default: false },
|
|
2571
|
-
required: { type: [Boolean, null], required: false, default: false },
|
|
2572
|
-
rows: { type: [Number, null], required: false, default: 4 },
|
|
2573
|
-
value: { type: [String, null], required: false }
|
|
2574
|
-
},
|
|
2575
|
-
setup(__props) {
|
|
2576
|
-
const props = __props;
|
|
2577
|
-
const instance = getCurrentInstance27();
|
|
2578
|
-
const passed = (name, attribute) => {
|
|
2579
|
-
const raw = instance?.vnode.props ?? {};
|
|
2580
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2581
|
-
};
|
|
2582
|
-
const explicitProps = () => {
|
|
2583
|
-
const valuedisabled = props.disabled;
|
|
2584
|
-
const valueinvalid = props.invalid;
|
|
2585
|
-
const valuereadonly = props.readonly;
|
|
2586
|
-
const valuerequired = props.required;
|
|
2587
|
-
const valuerows = props.rows;
|
|
2588
|
-
const valuevalue = props.value;
|
|
2589
|
-
return { "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "invalid": passed("invalid", "invalid") ? valueinvalid : void 0, "readonly": passed("readonly", "readonly") ? valuereadonly : void 0, "required": passed("required", "required") ? valuerequired : void 0, "rows": passed("rows", "rows") ? valuerows : void 0, "value": passed("value", "value") ? valuevalue : void 0 };
|
|
2590
|
-
};
|
|
2591
|
-
const definition = { ...{ "contract": { "tag": "ui-textarea", "props": { "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "invalid": { "type": "boolean", "required": false, "target": { "attribute": "invalid" }, "default": false }, "readonly": { "type": "boolean", "required": false, "target": { "attribute": "readonly" }, "default": false }, "required": { "type": "boolean", "required": false, "target": { "attribute": "required" }, "default": false }, "rows": { "type": { "kind": "terminal", "name": "integer" }, "required": false, "target": { "attribute": "rows" }, "default": 4 }, "value": { "type": "string", "required": false, "target": { "attribute": "value" } } } }, "template": { "kind": "element", "name": "textarea", "attributes": [{ "kind": "attribute", "name": "value", "expression": "value", "expressionPlan": { "source": "value", "ast": { "kind": "id", "name": "value" }, "dependencies": ["value"] } }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }, { "kind": "attribute", "name": "readonly", "expression": "readonly", "expressionPlan": { "source": "readonly", "ast": { "kind": "id", "name": "readonly" }, "dependencies": ["readonly"] } }, { "kind": "attribute", "name": "required", "expression": "required", "expressionPlan": { "source": "required", "ast": { "kind": "id", "name": "required" }, "dependencies": ["required"] } }, { "kind": "attribute", "name": "rows", "expression": "rows", "expressionPlan": { "source": "rows", "ast": { "kind": "id", "name": "rows" }, "dependencies": ["rows"] } }], "children": [] }, "declarations": [], "root": { "kind": "native", "element": "textarea", "choices": ["textarea"] } }, source: { file: import.meta.url }, css: "" };
|
|
2592
|
-
const root = ref27();
|
|
2593
|
-
let detach;
|
|
2594
|
-
onMounted27(() => {
|
|
2595
|
-
if (root.value == null) return;
|
|
2596
|
-
detach = attachLoomaComponent25(root.value, definition, "ui-textarea", explicitProps());
|
|
2597
|
-
});
|
|
2598
|
-
watchEffect28(() => {
|
|
2599
|
-
const next = explicitProps();
|
|
2600
|
-
if (root.value == null) return;
|
|
2601
|
-
updateComponentProps25(root.value, next);
|
|
2602
|
-
});
|
|
2603
|
-
onUnmounted27(() => {
|
|
2604
|
-
detach?.();
|
|
2605
|
-
});
|
|
2606
|
-
return (_ctx, _cache) => {
|
|
2607
|
-
return _openBlock27(), _createElementBlock27("textarea", _mergeProps27(_ctx.$attrs, {
|
|
2608
|
-
"data-component": "ui-textarea",
|
|
2609
|
-
"data-component-root": "ui-textarea",
|
|
2610
|
-
value: props.value,
|
|
2611
|
-
disabled: props.disabled,
|
|
2612
|
-
readonly: props.readonly,
|
|
2613
|
-
required: props.required,
|
|
2614
|
-
rows: props.rows,
|
|
2615
|
-
ref_key: "root",
|
|
2616
|
-
ref: root
|
|
2617
|
-
}), "\n ", 16, _hoisted_127);
|
|
2618
|
-
};
|
|
2619
|
-
}
|
|
2620
|
-
});
|
|
2621
|
-
|
|
2622
|
-
// src/generated/UiToastRegion.ts
|
|
2623
|
-
import { defineComponent as _defineComponent28 } from "vue";
|
|
2624
|
-
import { renderSlot as _renderSlot25, mergeProps as _mergeProps28, openBlock as _openBlock28, createElementBlock as _createElementBlock28 } from "vue";
|
|
2625
|
-
import { getCurrentInstance as getCurrentInstance28, onMounted as onMounted28, onUnmounted as onUnmounted28, ref as ref28, watchEffect as watchEffect29 } from "vue";
|
|
2626
|
-
import { attachLoomaComponent as attachLoomaComponent26, updateComponentProps as updateComponentProps26 } from "@threadlabs/looma/core/declarative";
|
|
2627
|
-
var UiToastRegion_default = /* @__PURE__ */ _defineComponent28({
|
|
2628
|
-
...{ inheritAttrs: false },
|
|
2629
|
-
__name: "UiToastRegion",
|
|
2630
|
-
props: {
|
|
2631
|
-
auto: { type: [Boolean, null], required: false, default: false },
|
|
2632
|
-
duration: { type: [Number, null], required: false, default: 5e3 },
|
|
2633
|
-
message: { type: [String, null], required: false, default: "Notification" },
|
|
2634
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
2635
|
-
},
|
|
2636
|
-
emits: ["close", "dismiss"],
|
|
2637
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2638
|
-
const props = __props;
|
|
2639
|
-
const emit = __emit;
|
|
2640
|
-
const instance = getCurrentInstance28();
|
|
2641
|
-
const passed = (name, attribute) => {
|
|
2642
|
-
const raw = instance?.vnode.props ?? {};
|
|
2643
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2644
|
-
};
|
|
2645
|
-
const explicitProps = () => {
|
|
2646
|
-
const valueauto = props.auto;
|
|
2647
|
-
const valueduration = props.duration;
|
|
2648
|
-
const valuemessage = props.message;
|
|
2649
|
-
const valueopen = props.open;
|
|
2650
|
-
return { "auto": passed("auto", "auto") ? valueauto : void 0, "duration": passed("duration", "duration") ? valueduration : void 0, "message": passed("message", "message") ? valuemessage : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
2651
|
-
};
|
|
2652
|
-
const definition = { ...{ "contract": { "tag": "ui-toast-region", "props": { "auto": { "type": "boolean", "required": false, "target": { "attribute": "auto" }, "default": false }, "duration": { "type": "number", "required": false, "target": { "attribute": "duration" }, "default": 5e3 }, "message": { "type": "string", "required": false, "target": { "attribute": "message" }, "default": "Notification" }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "role", "value": "region" }, { "kind": "literal", "name": "aria-label", "value": "Notifications" }, { "kind": "literal", "name": "aria-live", "value": "polite" }, { "kind": "attribute", "name": "data-state-open", "expression": "internalOpen", "expressionPlan": { "source": "internalOpen", "ast": { "kind": "id", "name": "internalOpen" }, "dependencies": ["internalOpen"] } }], "children": [{ "kind": "slot" }] }, "declarations": [{ "kind": "state", "name": "internalOpen", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "close", "type": "object({ open: boolean, reason: action | timeout | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "dismiss", "type": "object({ id: string, reason: action | timeout, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "method", "name": "show", "exportName": "show", "returns": "promise(string)" }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
2653
|
-
const root = ref28();
|
|
2654
|
-
const eventListener0 = (event) => emit("close", event.detail);
|
|
2655
|
-
const eventListener1 = (event) => emit("dismiss", event.detail);
|
|
2656
|
-
let detach;
|
|
2657
|
-
onMounted28(() => {
|
|
2658
|
-
if (root.value == null) return;
|
|
2659
|
-
detach = attachLoomaComponent26(root.value, definition, "ui-toast-region", explicitProps());
|
|
2660
|
-
root.value.addEventListener("close", eventListener0);
|
|
2661
|
-
root.value.addEventListener("dismiss", eventListener1);
|
|
2662
|
-
});
|
|
2663
|
-
watchEffect29(() => {
|
|
2664
|
-
const next = explicitProps();
|
|
2665
|
-
if (root.value == null) return;
|
|
2666
|
-
updateComponentProps26(root.value, next);
|
|
2667
|
-
});
|
|
2668
|
-
__expose({
|
|
2669
|
-
show: () => root.value["show"]()
|
|
2670
|
-
});
|
|
2671
|
-
onUnmounted28(() => {
|
|
2672
|
-
root.value?.removeEventListener("close", eventListener0);
|
|
2673
|
-
root.value?.removeEventListener("dismiss", eventListener1);
|
|
2674
|
-
detach?.();
|
|
2675
|
-
});
|
|
2676
|
-
return (_ctx, _cache) => {
|
|
2677
|
-
return _openBlock28(), _createElementBlock28(
|
|
2678
|
-
"div",
|
|
2679
|
-
_mergeProps28(_ctx.$attrs, {
|
|
2680
|
-
"data-component": "ui-toast-region",
|
|
2681
|
-
"data-component-root": "ui-toast-region",
|
|
2682
|
-
role: "region",
|
|
2683
|
-
"aria-label": "Notifications",
|
|
2684
|
-
"aria-live": "polite",
|
|
2685
|
-
"data-state-open": void 0,
|
|
2686
|
-
ref_key: "root",
|
|
2687
|
-
ref: root
|
|
2688
|
-
}),
|
|
2689
|
-
[
|
|
2690
|
-
_renderSlot25(_ctx.$slots, "default")
|
|
2691
|
-
],
|
|
2692
|
-
16
|
|
2693
|
-
/* FULL_PROPS */
|
|
2694
|
-
);
|
|
2695
|
-
};
|
|
2696
|
-
}
|
|
2697
|
-
});
|
|
2698
|
-
|
|
2699
|
-
// src/generated/UiTopBar.ts
|
|
2700
|
-
import { defineComponent as _defineComponent29 } from "vue";
|
|
2701
|
-
import { renderSlot as _renderSlot26, createElementVNode as _createElementVNode21, mergeProps as _mergeProps29, openBlock as _openBlock29, createElementBlock as _createElementBlock29 } from "vue";
|
|
2702
|
-
import { getCurrentInstance as getCurrentInstance29, onMounted as onMounted29, onUnmounted as onUnmounted29, ref as ref29, watchEffect as watchEffect30 } from "vue";
|
|
2703
|
-
import { attachLoomaComponent as attachLoomaComponent27, updateComponentProps as updateComponentProps27 } from "@threadlabs/looma/core/declarative";
|
|
2704
|
-
var _hoisted_128 = {
|
|
2705
|
-
class: "top-bar",
|
|
2706
|
-
part: "base",
|
|
2707
|
-
"data-component": "ui-top-bar"
|
|
2708
|
-
};
|
|
2709
|
-
var _hoisted_218 = {
|
|
2710
|
-
class: "top-bar__leading",
|
|
2711
|
-
hidden: void 0,
|
|
2712
|
-
"data-component": "ui-top-bar"
|
|
2713
|
-
};
|
|
2714
|
-
var _hoisted_313 = {
|
|
2715
|
-
slot: "leading",
|
|
2716
|
-
style: { "display": "contents" }
|
|
2717
|
-
};
|
|
2718
|
-
var _hoisted_411 = {
|
|
2719
|
-
class: "top-bar__title",
|
|
2720
|
-
"data-component": "ui-top-bar"
|
|
2721
|
-
};
|
|
2722
|
-
var _hoisted_56 = {
|
|
2723
|
-
slot: "",
|
|
2724
|
-
style: { "display": "contents" }
|
|
2725
|
-
};
|
|
2726
|
-
var _hoisted_65 = {
|
|
2727
|
-
class: "top-bar__search",
|
|
2728
|
-
hidden: void 0,
|
|
2729
|
-
"data-component": "ui-top-bar"
|
|
2730
|
-
};
|
|
2731
|
-
var _hoisted_74 = {
|
|
2732
|
-
slot: "search",
|
|
2733
|
-
style: { "display": "contents" }
|
|
2734
|
-
};
|
|
2735
|
-
var _hoisted_84 = {
|
|
2736
|
-
class: "top-bar__actions",
|
|
2737
|
-
hidden: void 0,
|
|
2738
|
-
"data-component": "ui-top-bar"
|
|
2739
|
-
};
|
|
2740
|
-
var _hoisted_94 = {
|
|
2741
|
-
slot: "actions",
|
|
2742
|
-
style: { "display": "contents" }
|
|
2743
|
-
};
|
|
2744
|
-
var UiTopBar_default = /* @__PURE__ */ _defineComponent29({
|
|
2745
|
-
...{ inheritAttrs: false },
|
|
2746
|
-
__name: "UiTopBar",
|
|
2747
|
-
setup(__props) {
|
|
2748
|
-
const props = __props;
|
|
2749
|
-
const instance = getCurrentInstance29();
|
|
2750
|
-
const passed = (name, attribute) => {
|
|
2751
|
-
const raw = instance?.vnode.props ?? {};
|
|
2752
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2753
|
-
};
|
|
2754
|
-
const explicitProps = () => {
|
|
2755
|
-
return {};
|
|
2756
|
-
};
|
|
2757
|
-
const definition = { ...{ "contract": { "tag": "ui-top-bar", "props": {} }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [{ "kind": "element", "name": "header", "attributes": [{ "kind": "literal", "name": "class", "value": "top-bar" }, { "kind": "literal", "name": "part", "value": "base" }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "top-bar__leading" }, { "kind": "attribute", "name": "hidden", "expression": "not hasLeading", "expressionPlan": { "source": "not hasLeading", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasLeading" } }, "dependencies": ["hasLeading"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "leading" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "top-bar__title" }], "children": [{ "kind": "slot" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "top-bar__search" }, { "kind": "attribute", "name": "hidden", "expression": "not hasSearch", "expressionPlan": { "source": "not hasSearch", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasSearch" } }, "dependencies": ["hasSearch"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "search" }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "top-bar__actions" }, { "kind": "attribute", "name": "hidden", "expression": "not hasActions", "expressionPlan": { "source": "not hasActions", "ast": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "hasActions" } }, "dependencies": ["hasActions"] } }], "children": [{ "kind": "slot", "fallback": [], "name": "actions" }] }] }] }, "declarations": [{ "kind": "state", "name": "hasLeading", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasSearch", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasActions", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
2758
|
-
const root = ref29();
|
|
2759
|
-
let detach;
|
|
2760
|
-
onMounted29(() => {
|
|
2761
|
-
if (root.value == null) return;
|
|
2762
|
-
detach = attachLoomaComponent27(root.value, definition, "ui-top-bar", explicitProps());
|
|
2763
|
-
});
|
|
2764
|
-
watchEffect30(() => {
|
|
2765
|
-
const next = explicitProps();
|
|
2766
|
-
if (root.value == null) return;
|
|
2767
|
-
updateComponentProps27(root.value, next);
|
|
2768
|
-
});
|
|
2769
|
-
onUnmounted29(() => {
|
|
2770
|
-
detach?.();
|
|
2771
|
-
});
|
|
2772
|
-
return (_ctx, _cache) => {
|
|
2773
|
-
return _openBlock29(), _createElementBlock29(
|
|
2774
|
-
"div",
|
|
2775
|
-
_mergeProps29(_ctx.$attrs, {
|
|
2776
|
-
"data-component": "ui-top-bar",
|
|
2777
|
-
"data-component-root": "ui-top-bar",
|
|
2778
|
-
ref_key: "root",
|
|
2779
|
-
ref: root
|
|
2780
|
-
}),
|
|
2781
|
-
[
|
|
2782
|
-
_createElementVNode21("header", _hoisted_128, [
|
|
2783
|
-
_createElementVNode21("div", _hoisted_218, [
|
|
2784
|
-
_createElementVNode21("span", _hoisted_313, [
|
|
2785
|
-
_renderSlot26(_ctx.$slots, "leading")
|
|
2786
|
-
])
|
|
2787
|
-
]),
|
|
2788
|
-
_createElementVNode21("div", _hoisted_411, [
|
|
2789
|
-
_createElementVNode21("span", _hoisted_56, [
|
|
2790
|
-
_renderSlot26(_ctx.$slots, "default")
|
|
2791
|
-
])
|
|
2792
|
-
]),
|
|
2793
|
-
_createElementVNode21("div", _hoisted_65, [
|
|
2794
|
-
_createElementVNode21("span", _hoisted_74, [
|
|
2795
|
-
_renderSlot26(_ctx.$slots, "search")
|
|
2796
|
-
])
|
|
2797
|
-
]),
|
|
2798
|
-
_createElementVNode21("div", _hoisted_84, [
|
|
2799
|
-
_createElementVNode21("span", _hoisted_94, [
|
|
2800
|
-
_renderSlot26(_ctx.$slots, "actions")
|
|
2801
|
-
])
|
|
2802
|
-
])
|
|
2803
|
-
])
|
|
2804
|
-
],
|
|
2805
|
-
16
|
|
2806
|
-
/* FULL_PROPS */
|
|
2807
|
-
);
|
|
2808
|
-
};
|
|
2809
|
-
}
|
|
2810
|
-
});
|
|
2811
|
-
|
|
2812
|
-
// src/generated/UiTreeItem.ts
|
|
2813
|
-
import { defineComponent as _defineComponent30 } from "vue";
|
|
2814
|
-
import { createElementVNode as _createElementVNode22, renderSlot as _renderSlot27, toDisplayString as _toDisplayString6, createTextVNode as _createTextVNode2, mergeProps as _mergeProps30, openBlock as _openBlock30, createElementBlock as _createElementBlock30 } from "vue";
|
|
2815
|
-
import { getCurrentInstance as getCurrentInstance30, onMounted as onMounted30, onUnmounted as onUnmounted30, ref as ref30, watchEffect as watchEffect31 } from "vue";
|
|
2816
|
-
import { attachLoomaComponent as attachLoomaComponent28, updateComponentProps as updateComponentProps28 } from "@threadlabs/looma/core/declarative";
|
|
2817
|
-
var _hoisted_129 = ["data-drop-scope", "data-accepts"];
|
|
2818
|
-
var _hoisted_219 = {
|
|
2819
|
-
class: "row",
|
|
2820
|
-
part: "row",
|
|
2821
|
-
"data-component": "ui-tree-item"
|
|
2822
|
-
};
|
|
2823
|
-
var _hoisted_314 = ["disabled"];
|
|
2824
|
-
var _hoisted_412 = {
|
|
2825
|
-
class: "leading",
|
|
2826
|
-
part: "leading",
|
|
2827
|
-
"data-component": "ui-tree-item"
|
|
2828
|
-
};
|
|
2829
|
-
var _hoisted_57 = {
|
|
2830
|
-
slot: "leading",
|
|
2831
|
-
style: { "display": "contents" }
|
|
2832
|
-
};
|
|
2833
|
-
var _hoisted_66 = {
|
|
2834
|
-
class: "label",
|
|
2835
|
-
part: "label",
|
|
2836
|
-
"data-component": "ui-tree-item"
|
|
2837
|
-
};
|
|
2838
|
-
var _hoisted_75 = {
|
|
2839
|
-
class: "actions",
|
|
2840
|
-
part: "actions",
|
|
2841
|
-
"data-component": "ui-tree-item"
|
|
2842
|
-
};
|
|
2843
|
-
var _hoisted_85 = {
|
|
2844
|
-
slot: "actions",
|
|
2845
|
-
style: { "display": "contents" }
|
|
2846
|
-
};
|
|
2847
|
-
var _hoisted_95 = {
|
|
2848
|
-
class: "children",
|
|
2849
|
-
part: "children",
|
|
2850
|
-
role: "group",
|
|
2851
|
-
"data-component": "ui-tree-item"
|
|
2852
|
-
};
|
|
2853
|
-
var _hoisted_104 = {
|
|
2854
|
-
slot: "",
|
|
2855
|
-
style: { "display": "contents" }
|
|
2856
|
-
};
|
|
2857
|
-
var UiTreeItem_default = /* @__PURE__ */ _defineComponent30({
|
|
2858
|
-
...{ inheritAttrs: false },
|
|
2859
|
-
__name: "UiTreeItem",
|
|
2860
|
-
props: {
|
|
2861
|
-
accepts: { type: [String, null], required: false, default: "" },
|
|
2862
|
-
container: { type: [Boolean, null], required: false, default: false },
|
|
2863
|
-
disabled: { type: [Boolean, null], required: false, default: false },
|
|
2864
|
-
dragType: { type: [String, null], required: false, default: "item" },
|
|
2865
|
-
dropDepth: { type: [Number, null], required: false },
|
|
2866
|
-
dropScope: { type: [String, null], required: false, default: "" },
|
|
2867
|
-
expanded: { type: [Boolean, null], required: false, default: false },
|
|
2868
|
-
itemId: { type: [String, null], required: false, default: "" },
|
|
2869
|
-
label: { type: [String, null], required: false, default: "" },
|
|
2870
|
-
selected: { type: [Boolean, null], required: false, default: false },
|
|
2871
|
-
sortable: { type: [Boolean, null], required: false, default: false },
|
|
2872
|
-
subtreeDepth: { type: [Number, null], required: false }
|
|
2873
|
-
},
|
|
2874
|
-
emits: ["expand"],
|
|
2875
|
-
setup(__props, { emit: __emit }) {
|
|
2876
|
-
const props = __props;
|
|
2877
|
-
const emit = __emit;
|
|
2878
|
-
const instance = getCurrentInstance30();
|
|
2879
|
-
const passed = (name, attribute) => {
|
|
2880
|
-
const raw = instance?.vnode.props ?? {};
|
|
2881
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
2882
|
-
};
|
|
2883
|
-
const explicitProps = () => {
|
|
2884
|
-
const valueaccepts = props.accepts;
|
|
2885
|
-
const valuecontainer = props.container;
|
|
2886
|
-
const valuedisabled = props.disabled;
|
|
2887
|
-
const valuedragType = props.dragType;
|
|
2888
|
-
const valuedropDepth = props.dropDepth;
|
|
2889
|
-
const valuedropScope = props.dropScope;
|
|
2890
|
-
const valueexpanded = props.expanded;
|
|
2891
|
-
const valueitemId = props.itemId;
|
|
2892
|
-
const valuelabel = props.label;
|
|
2893
|
-
const valueselected = props.selected;
|
|
2894
|
-
const valuesortable = props.sortable;
|
|
2895
|
-
const valuesubtreeDepth = props.subtreeDepth;
|
|
2896
|
-
return { "accepts": passed("accepts", "accepts") ? valueaccepts : void 0, "container": passed("container", "container") ? valuecontainer : void 0, "disabled": passed("disabled", "disabled") ? valuedisabled : void 0, "dragType": passed("dragType", "drag-type") ? valuedragType : void 0, "dropDepth": passed("dropDepth", "drop-depth") ? valuedropDepth : void 0, "dropScope": passed("dropScope", "drop-scope") ? valuedropScope : void 0, "expanded": passed("expanded", "expanded") ? valueexpanded : void 0, "itemId": passed("itemId", "item-id") ? valueitemId : void 0, "label": passed("label", "label") ? valuelabel : void 0, "selected": passed("selected", "selected") ? valueselected : void 0, "sortable": passed("sortable", "sortable") ? valuesortable : void 0, "subtreeDepth": passed("subtreeDepth", "subtree-depth") ? valuesubtreeDepth : void 0 };
|
|
2897
|
-
};
|
|
2898
|
-
const definition = { ...{ "contract": { "tag": "ui-tree-item", "props": { "accepts": { "type": "string", "required": false, "target": { "attribute": "data-accepts" }, "default": "" }, "container": { "type": "boolean", "required": false, "target": { "attribute": "container" }, "default": false }, "disabled": { "type": "boolean", "required": false, "target": { "attribute": "disabled" }, "default": false }, "dragType": { "type": "string", "required": false, "target": { "attribute": "dragtype" }, "default": "item" }, "dropDepth": { "type": "number", "required": false, "target": { "attribute": "dropdepth" } }, "dropScope": { "type": "string", "required": false, "target": { "attribute": "data-drop-scope" }, "default": "" }, "expanded": { "type": "boolean", "required": false, "target": { "attribute": "expanded" }, "default": false }, "itemId": { "type": "string", "required": false, "target": { "attribute": "itemid" }, "default": "" }, "label": { "type": "string", "required": false, "target": { "attribute": "label" }, "default": "" }, "selected": { "type": "boolean", "required": false, "target": { "attribute": "selected" }, "default": false }, "sortable": { "type": "boolean", "required": false, "target": { "attribute": "sortable" }, "default": false }, "subtreeDepth": { "type": "number", "required": false, "target": { "attribute": "subtreedepth" } } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "role", "value": "treeitem" }, { "kind": "attribute", "name": "data-drop-scope", "expression": "dropScope", "expressionPlan": { "source": "dropScope", "ast": { "kind": "id", "name": "dropScope" }, "dependencies": ["dropScope"] } }, { "kind": "attribute", "name": "data-accepts", "expression": "accepts", "expressionPlan": { "source": "accepts", "ast": { "kind": "id", "name": "accepts" }, "dependencies": ["accepts"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "row" }, { "kind": "literal", "name": "part", "value": "row" }], "children": [{ "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "class", "value": "drag-handle" }, { "kind": "literal", "name": "part", "value": "drag-handle" }, { "kind": "literal", "name": "type", "value": "button" }], "children": [{ "kind": "element", "name": "svg", "attributes": [{ "kind": "literal", "name": "aria-hidden", "value": "true" }, { "kind": "literal", "name": "focusable", "value": "false" }, { "kind": "literal", "name": "viewBox", "value": "0 0 24 24" }, { "kind": "literal", "name": "fill", "value": "none" }, { "kind": "literal", "name": "stroke", "value": "currentColor" }, { "kind": "literal", "name": "stroke-width", "value": "2" }, { "kind": "literal", "name": "stroke-linecap", "value": "round" }, { "kind": "literal", "name": "stroke-linejoin", "value": "round" }], "children": [{ "kind": "element", "name": "circle", "attributes": [{ "kind": "literal", "name": "cx", "value": "9" }, { "kind": "literal", "name": "cy", "value": "12" }, { "kind": "literal", "name": "r", "value": "1" }], "children": [] }, { "kind": "element", "name": "circle", "attributes": [{ "kind": "literal", "name": "cx", "value": "9" }, { "kind": "literal", "name": "cy", "value": "5" }, { "kind": "literal", "name": "r", "value": "1" }], "children": [] }, { "kind": "element", "name": "circle", "attributes": [{ "kind": "literal", "name": "cx", "value": "9" }, { "kind": "literal", "name": "cy", "value": "19" }, { "kind": "literal", "name": "r", "value": "1" }], "children": [] }, { "kind": "element", "name": "circle", "attributes": [{ "kind": "literal", "name": "cx", "value": "15" }, { "kind": "literal", "name": "cy", "value": "12" }, { "kind": "literal", "name": "r", "value": "1" }], "children": [] }, { "kind": "element", "name": "circle", "attributes": [{ "kind": "literal", "name": "cx", "value": "15" }, { "kind": "literal", "name": "cy", "value": "5" }, { "kind": "literal", "name": "r", "value": "1" }], "children": [] }, { "kind": "element", "name": "circle", "attributes": [{ "kind": "literal", "name": "cx", "value": "15" }, { "kind": "literal", "name": "cy", "value": "19" }, { "kind": "literal", "name": "r", "value": "1" }], "children": [] }] }], "flow": { "kind": "if", "test": "sortable and not disabled", "testPlan": { "source": "sortable and not disabled", "ast": { "kind": "binary", "op": "and", "left": { "kind": "id", "name": "sortable" }, "right": { "kind": "unary", "op": "not", "operand": { "kind": "id", "name": "disabled" } } }, "dependencies": ["disabled", "sortable"] } } }, { "kind": "element", "name": "button", "attributes": [{ "kind": "literal", "name": "class", "value": "disclosure" }, { "kind": "literal", "name": "part", "value": "disclosure" }, { "kind": "literal", "name": "type", "value": "button" }, { "kind": "attribute", "name": "disabled", "expression": "disabled", "expressionPlan": { "source": "disabled", "ast": { "kind": "id", "name": "disabled" }, "dependencies": ["disabled"] } }], "children": [{ "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "disclosure-icon" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [] }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "leading" }, { "kind": "literal", "name": "part", "value": "leading" }], "children": [{ "kind": "slot", "fallback": [], "name": "leading" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "label" }, { "kind": "literal", "name": "part", "value": "label" }], "children": [{ "kind": "slot", "fallback": [{ "kind": "element", "name": "template", "attributes": [{ "kind": "directive", "name": "value", "expression": "label", "expressionPlan": { "source": "label", "ast": { "kind": "id", "name": "label" }, "dependencies": ["label"] } }], "children": [] }], "name": "label" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "actions" }, { "kind": "literal", "name": "part", "value": "actions" }], "children": [{ "kind": "slot", "fallback": [], "name": "actions" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "drop-indicator row-drop-indicator" }, { "kind": "literal", "name": "part", "value": "drop-indicator" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [] }] }, { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "children" }, { "kind": "literal", "name": "part", "value": "children" }, { "kind": "literal", "name": "role", "value": "group" }], "children": [{ "kind": "slot" }] }, { "kind": "element", "name": "span", "attributes": [{ "kind": "literal", "name": "class", "value": "drop-indicator subtree-drop-indicator" }, { "kind": "literal", "name": "part", "value": "drop-indicator" }, { "kind": "literal", "name": "aria-hidden", "value": "true" }], "children": [] }] }, "declarations": [{ "kind": "state", "name": "internalExpanded", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "structuralLevel", "expression": { "source": "1", "ast": { "kind": "literal", "value": 1 }, "dependencies": [] } }, { "kind": "state", "name": "tabStop", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "hasChildren", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "expand", "type": "object({ id: string, expanded: boolean, trigger: keyboard | pointer | programmatic })", "bubbles": false, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
2899
|
-
const root = ref30();
|
|
2900
|
-
const eventListener0 = (event) => emit("expand", event.detail);
|
|
2901
|
-
let detach;
|
|
2902
|
-
onMounted30(() => {
|
|
2903
|
-
if (root.value == null) return;
|
|
2904
|
-
detach = attachLoomaComponent28(root.value, definition, "ui-tree-item", explicitProps());
|
|
2905
|
-
root.value.addEventListener("expand", eventListener0);
|
|
2906
|
-
});
|
|
2907
|
-
watchEffect31(() => {
|
|
2908
|
-
const next = explicitProps();
|
|
2909
|
-
if (root.value == null) return;
|
|
2910
|
-
updateComponentProps28(root.value, next);
|
|
2911
|
-
});
|
|
2912
|
-
onUnmounted30(() => {
|
|
2913
|
-
root.value?.removeEventListener("expand", eventListener0);
|
|
2914
|
-
detach?.();
|
|
2915
|
-
});
|
|
2916
|
-
return (_ctx, _cache) => {
|
|
2917
|
-
return _openBlock30(), _createElementBlock30("div", _mergeProps30(_ctx.$attrs, {
|
|
2918
|
-
"data-component": "ui-tree-item",
|
|
2919
|
-
"data-component-root": "ui-tree-item",
|
|
2920
|
-
role: "treeitem",
|
|
2921
|
-
"data-drop-scope": props.dropScope,
|
|
2922
|
-
"data-accepts": props.accepts,
|
|
2923
|
-
ref_key: "root",
|
|
2924
|
-
ref: root
|
|
2925
|
-
}), [
|
|
2926
|
-
_createElementVNode22("div", _hoisted_219, [
|
|
2927
|
-
_cache[1] || (_cache[1] = _createElementVNode22(
|
|
2928
|
-
"button",
|
|
2929
|
-
{
|
|
2930
|
-
class: "drag-handle",
|
|
2931
|
-
part: "drag-handle",
|
|
2932
|
-
type: "button",
|
|
2933
|
-
"data-component": "ui-tree-item"
|
|
2934
|
-
},
|
|
2935
|
-
[
|
|
2936
|
-
_createElementVNode22("svg", {
|
|
2937
|
-
"aria-hidden": "true",
|
|
2938
|
-
focusable: "false",
|
|
2939
|
-
viewBox: "0 0 24 24",
|
|
2940
|
-
fill: "none",
|
|
2941
|
-
stroke: "currentColor",
|
|
2942
|
-
"stroke-width": "2",
|
|
2943
|
-
"stroke-linecap": "round",
|
|
2944
|
-
"stroke-linejoin": "round",
|
|
2945
|
-
"data-component": "ui-tree-item"
|
|
2946
|
-
}, [
|
|
2947
|
-
_createElementVNode22("circle", {
|
|
2948
|
-
cx: "9",
|
|
2949
|
-
cy: "12",
|
|
2950
|
-
r: "1",
|
|
2951
|
-
"data-component": "ui-tree-item"
|
|
2952
|
-
}),
|
|
2953
|
-
_createElementVNode22("circle", {
|
|
2954
|
-
cx: "9",
|
|
2955
|
-
cy: "5",
|
|
2956
|
-
r: "1",
|
|
2957
|
-
"data-component": "ui-tree-item"
|
|
2958
|
-
}),
|
|
2959
|
-
_createElementVNode22("circle", {
|
|
2960
|
-
cx: "9",
|
|
2961
|
-
cy: "19",
|
|
2962
|
-
r: "1",
|
|
2963
|
-
"data-component": "ui-tree-item"
|
|
2964
|
-
}),
|
|
2965
|
-
_createElementVNode22("circle", {
|
|
2966
|
-
cx: "15",
|
|
2967
|
-
cy: "12",
|
|
2968
|
-
r: "1",
|
|
2969
|
-
"data-component": "ui-tree-item"
|
|
2970
|
-
}),
|
|
2971
|
-
_createElementVNode22("circle", {
|
|
2972
|
-
cx: "15",
|
|
2973
|
-
cy: "5",
|
|
2974
|
-
r: "1",
|
|
2975
|
-
"data-component": "ui-tree-item"
|
|
2976
|
-
}),
|
|
2977
|
-
_createElementVNode22("circle", {
|
|
2978
|
-
cx: "15",
|
|
2979
|
-
cy: "19",
|
|
2980
|
-
r: "1",
|
|
2981
|
-
"data-component": "ui-tree-item"
|
|
2982
|
-
})
|
|
2983
|
-
])
|
|
2984
|
-
],
|
|
2985
|
-
-1
|
|
2986
|
-
/* CACHED */
|
|
2987
|
-
)),
|
|
2988
|
-
_createElementVNode22("button", {
|
|
2989
|
-
class: "disclosure",
|
|
2990
|
-
part: "disclosure",
|
|
2991
|
-
type: "button",
|
|
2992
|
-
disabled: props.disabled,
|
|
2993
|
-
"data-component": "ui-tree-item"
|
|
2994
|
-
}, [..._cache[0] || (_cache[0] = [
|
|
2995
|
-
_createElementVNode22(
|
|
2996
|
-
"span",
|
|
2997
|
-
{
|
|
2998
|
-
class: "disclosure-icon",
|
|
2999
|
-
"aria-hidden": "true",
|
|
3000
|
-
"data-component": "ui-tree-item"
|
|
3001
|
-
},
|
|
3002
|
-
null,
|
|
3003
|
-
-1
|
|
3004
|
-
/* CACHED */
|
|
3005
|
-
)
|
|
3006
|
-
])], 8, _hoisted_314),
|
|
3007
|
-
_createElementVNode22("span", _hoisted_412, [
|
|
3008
|
-
_createElementVNode22("span", _hoisted_57, [
|
|
3009
|
-
_renderSlot27(_ctx.$slots, "leading")
|
|
3010
|
-
])
|
|
3011
|
-
]),
|
|
3012
|
-
_createElementVNode22("span", _hoisted_66, [
|
|
3013
|
-
_renderSlot27(_ctx.$slots, "label", {}, () => [
|
|
3014
|
-
_createTextVNode2(
|
|
3015
|
-
_toDisplayString6(props.label),
|
|
3016
|
-
1
|
|
3017
|
-
/* TEXT */
|
|
3018
|
-
)
|
|
3019
|
-
])
|
|
3020
|
-
]),
|
|
3021
|
-
_createElementVNode22("span", _hoisted_75, [
|
|
3022
|
-
_createElementVNode22("span", _hoisted_85, [
|
|
3023
|
-
_renderSlot27(_ctx.$slots, "actions")
|
|
3024
|
-
])
|
|
3025
|
-
]),
|
|
3026
|
-
_cache[2] || (_cache[2] = _createElementVNode22(
|
|
3027
|
-
"span",
|
|
3028
|
-
{
|
|
3029
|
-
class: "drop-indicator row-drop-indicator",
|
|
3030
|
-
part: "drop-indicator",
|
|
3031
|
-
"aria-hidden": "true",
|
|
3032
|
-
"data-component": "ui-tree-item"
|
|
3033
|
-
},
|
|
3034
|
-
null,
|
|
3035
|
-
-1
|
|
3036
|
-
/* CACHED */
|
|
3037
|
-
))
|
|
3038
|
-
]),
|
|
3039
|
-
_createElementVNode22("div", _hoisted_95, [
|
|
3040
|
-
_createElementVNode22("span", _hoisted_104, [
|
|
3041
|
-
_renderSlot27(_ctx.$slots, "default")
|
|
3042
|
-
])
|
|
3043
|
-
]),
|
|
3044
|
-
_cache[3] || (_cache[3] = _createElementVNode22(
|
|
3045
|
-
"span",
|
|
3046
|
-
{
|
|
3047
|
-
class: "drop-indicator subtree-drop-indicator",
|
|
3048
|
-
part: "drop-indicator",
|
|
3049
|
-
"aria-hidden": "true",
|
|
3050
|
-
"data-component": "ui-tree-item"
|
|
3051
|
-
},
|
|
3052
|
-
null,
|
|
3053
|
-
-1
|
|
3054
|
-
/* CACHED */
|
|
3055
|
-
))
|
|
3056
|
-
], -2, _hoisted_129);
|
|
3057
|
-
};
|
|
3058
|
-
}
|
|
3059
|
-
});
|
|
3060
|
-
|
|
3061
|
-
// src/generated/UiTree.ts
|
|
3062
|
-
import { defineComponent as _defineComponent31 } from "vue";
|
|
3063
|
-
import { renderSlot as _renderSlot28, mergeProps as _mergeProps31, openBlock as _openBlock31, createElementBlock as _createElementBlock31 } from "vue";
|
|
3064
|
-
import { getCurrentInstance as getCurrentInstance31, onMounted as onMounted31, onUnmounted as onUnmounted31, ref as ref31, watchEffect as watchEffect32 } from "vue";
|
|
3065
|
-
import { attachLoomaComponent as attachLoomaComponent29, updateComponentProps as updateComponentProps29 } from "@threadlabs/looma/core/declarative";
|
|
3066
|
-
var UiTree_default = /* @__PURE__ */ _defineComponent31({
|
|
3067
|
-
...{ inheritAttrs: false },
|
|
3068
|
-
__name: "UiTree",
|
|
3069
|
-
props: {
|
|
3070
|
-
hoverExpandDelay: { type: [Number, null], required: false, default: 700 },
|
|
3071
|
-
label: { type: [String, null], required: false, default: "Tree" },
|
|
3072
|
-
maxDepth: { type: [Number, null], required: false, default: 0 }
|
|
3073
|
-
},
|
|
3074
|
-
emits: ["reorder", "reorder-rejected"],
|
|
3075
|
-
setup(__props, { emit: __emit }) {
|
|
3076
|
-
const props = __props;
|
|
3077
|
-
const emit = __emit;
|
|
3078
|
-
const instance = getCurrentInstance31();
|
|
3079
|
-
const passed = (name, attribute) => {
|
|
3080
|
-
const raw = instance?.vnode.props ?? {};
|
|
3081
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3082
|
-
};
|
|
3083
|
-
const explicitProps = () => {
|
|
3084
|
-
const valuehoverExpandDelay = props.hoverExpandDelay;
|
|
3085
|
-
const valuelabel = props.label;
|
|
3086
|
-
const valuemaxDepth = props.maxDepth;
|
|
3087
|
-
return { "hoverExpandDelay": passed("hoverExpandDelay", "hover-expand-delay") ? valuehoverExpandDelay : void 0, "label": passed("label", "label") ? valuelabel : void 0, "maxDepth": passed("maxDepth", "max-depth") ? valuemaxDepth : void 0 };
|
|
3088
|
-
};
|
|
3089
|
-
const definition = { ...{ "contract": { "tag": "ui-tree", "props": { "hoverExpandDelay": { "type": "number", "required": false, "target": { "attribute": "hoverexpanddelay" }, "default": 700 }, "label": { "type": "string", "required": false, "target": { "attribute": "label" }, "default": "Tree" }, "maxDepth": { "type": "number", "required": false, "target": { "attribute": "maxdepth" }, "default": 0 } } }, "template": { "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "role", "value": "tree" }], "children": [{ "kind": "slot" }] }, "declarations": [{ "kind": "event", "name": "reorder", "type": "object({ sourceId: string, targetId: string, position: before | inside | after, sourceType: string, targetType: string, sourceScope: string, targetScope: string, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "reorder-rejected", "type": "object({ sourceId: string, targetId: string, position: before | inside | after, reason: max-depth, maxDepth: integer, resultingDepth: integer, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3090
|
-
const root = ref31();
|
|
3091
|
-
const eventListener0 = (event) => emit("reorder", event.detail);
|
|
3092
|
-
const eventListener1 = (event) => emit("reorder-rejected", event.detail);
|
|
3093
|
-
let detach;
|
|
3094
|
-
onMounted31(() => {
|
|
3095
|
-
if (root.value == null) return;
|
|
3096
|
-
detach = attachLoomaComponent29(root.value, definition, "ui-tree", explicitProps());
|
|
3097
|
-
root.value.addEventListener("reorder", eventListener0);
|
|
3098
|
-
root.value.addEventListener("reorder-rejected", eventListener1);
|
|
3099
|
-
});
|
|
3100
|
-
watchEffect32(() => {
|
|
3101
|
-
const next = explicitProps();
|
|
3102
|
-
if (root.value == null) return;
|
|
3103
|
-
updateComponentProps29(root.value, next);
|
|
3104
|
-
});
|
|
3105
|
-
onUnmounted31(() => {
|
|
3106
|
-
root.value?.removeEventListener("reorder", eventListener0);
|
|
3107
|
-
root.value?.removeEventListener("reorder-rejected", eventListener1);
|
|
3108
|
-
detach?.();
|
|
3109
|
-
});
|
|
3110
|
-
return (_ctx, _cache) => {
|
|
3111
|
-
return _openBlock31(), _createElementBlock31(
|
|
3112
|
-
"div",
|
|
3113
|
-
_mergeProps31(_ctx.$attrs, {
|
|
3114
|
-
"data-component": "ui-tree",
|
|
3115
|
-
"data-component-root": "ui-tree",
|
|
3116
|
-
role: "tree",
|
|
3117
|
-
ref_key: "root",
|
|
3118
|
-
ref: root
|
|
3119
|
-
}),
|
|
3120
|
-
[
|
|
3121
|
-
_renderSlot28(_ctx.$slots, "default")
|
|
3122
|
-
],
|
|
3123
|
-
16
|
|
3124
|
-
/* FULL_PROPS */
|
|
3125
|
-
);
|
|
3126
|
-
};
|
|
3127
|
-
}
|
|
3128
|
-
});
|
|
3129
|
-
|
|
3130
|
-
// src/generated/UiCluster.ts
|
|
3131
|
-
import { defineComponent as _defineComponent32 } from "vue";
|
|
3132
|
-
import { renderSlot as _renderSlot29, mergeProps as _mergeProps32, openBlock as _openBlock32, createElementBlock as _createElementBlock32 } from "vue";
|
|
3133
|
-
import { getCurrentInstance as getCurrentInstance32, onMounted as onMounted32, onUnmounted as onUnmounted32, ref as ref32, watchEffect as watchEffect33 } from "vue";
|
|
3134
|
-
import { manageGeneratedProps as manageGeneratedProps3, updateGeneratedProps as updateGeneratedProps3 } from "@threadlabs/looma/core/declarative-generated";
|
|
3135
|
-
var UiCluster_default = /* @__PURE__ */ _defineComponent32({
|
|
3136
|
-
...{ inheritAttrs: false },
|
|
3137
|
-
__name: "UiCluster",
|
|
3138
|
-
props: {
|
|
3139
|
-
align: { type: [String, null], required: false },
|
|
3140
|
-
gap: { type: [String, null], required: false }
|
|
3141
|
-
},
|
|
3142
|
-
setup(__props) {
|
|
3143
|
-
const props = __props;
|
|
3144
|
-
const instance = getCurrentInstance32();
|
|
3145
|
-
const passed = (name, attribute) => {
|
|
3146
|
-
const raw = instance?.vnode.props ?? {};
|
|
3147
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3148
|
-
};
|
|
3149
|
-
const explicitProps = () => {
|
|
3150
|
-
const valuealign = props.align;
|
|
3151
|
-
const valuegap = props.gap;
|
|
3152
|
-
return { "align": passed("align", "align") ? valuealign : void 0, "gap": passed("gap", "gap") ? valuegap : void 0 };
|
|
3153
|
-
};
|
|
3154
|
-
const root = ref32();
|
|
3155
|
-
let detach;
|
|
3156
|
-
onMounted32(() => {
|
|
3157
|
-
if (root.value == null) return;
|
|
3158
|
-
const explicit = explicitProps();
|
|
3159
|
-
detach = manageGeneratedProps3(root.value, [
|
|
3160
|
-
{ name: "align", attribute: "data-align", value: explicit["align"], type: ["start", "center", "end", "stretch"], required: false },
|
|
3161
|
-
{ name: "gap", attribute: "data-gap", value: explicit["gap"], type: ["xs", "s", "m", "l", "xl"], required: false }
|
|
3162
|
-
]);
|
|
3163
|
-
});
|
|
3164
|
-
watchEffect33(() => {
|
|
3165
|
-
const next = explicitProps();
|
|
3166
|
-
if (root.value == null) return;
|
|
3167
|
-
updateGeneratedProps3(root.value, next);
|
|
3168
|
-
});
|
|
3169
|
-
onUnmounted32(() => {
|
|
3170
|
-
detach?.();
|
|
3171
|
-
});
|
|
3172
|
-
return (_ctx, _cache) => {
|
|
3173
|
-
return _openBlock32(), _createElementBlock32(
|
|
3174
|
-
"div",
|
|
3175
|
-
_mergeProps32(_ctx.$attrs, {
|
|
3176
|
-
"data-component": "ui-cluster",
|
|
3177
|
-
"data-component-root": "ui-cluster",
|
|
3178
|
-
ref_key: "root",
|
|
3179
|
-
ref: root
|
|
3180
|
-
}),
|
|
3181
|
-
[
|
|
3182
|
-
_renderSlot29(_ctx.$slots, "default")
|
|
3183
|
-
],
|
|
3184
|
-
16
|
|
3185
|
-
/* FULL_PROPS */
|
|
3186
|
-
);
|
|
3187
|
-
};
|
|
3188
|
-
}
|
|
3189
|
-
});
|
|
3190
|
-
|
|
3191
|
-
// src/generated/UiContainer.ts
|
|
3192
|
-
import { defineComponent as _defineComponent33 } from "vue";
|
|
3193
|
-
import { renderSlot as _renderSlot30, mergeProps as _mergeProps33, openBlock as _openBlock33, createElementBlock as _createElementBlock33 } from "vue";
|
|
3194
|
-
import { getCurrentInstance as getCurrentInstance33, onMounted as onMounted33, onUnmounted as onUnmounted33, ref as ref33, watchEffect as watchEffect34 } from "vue";
|
|
3195
|
-
import { manageGeneratedProps as manageGeneratedProps4, updateGeneratedProps as updateGeneratedProps4 } from "@threadlabs/looma/core/declarative-generated";
|
|
3196
|
-
var UiContainer_default = /* @__PURE__ */ _defineComponent33({
|
|
3197
|
-
...{ inheritAttrs: false },
|
|
3198
|
-
__name: "UiContainer",
|
|
3199
|
-
props: {
|
|
3200
|
-
gutters: { type: [String, null], required: false },
|
|
3201
|
-
measure: { type: [String, null], required: false }
|
|
3202
|
-
},
|
|
3203
|
-
setup(__props) {
|
|
3204
|
-
const props = __props;
|
|
3205
|
-
const instance = getCurrentInstance33();
|
|
3206
|
-
const passed = (name, attribute) => {
|
|
3207
|
-
const raw = instance?.vnode.props ?? {};
|
|
3208
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3209
|
-
};
|
|
3210
|
-
const explicitProps = () => {
|
|
3211
|
-
const valuegutters = props.gutters;
|
|
3212
|
-
const valuemeasure = props.measure;
|
|
3213
|
-
return { "gutters": passed("gutters", "gutters") ? valuegutters : void 0, "measure": passed("measure", "measure") ? valuemeasure : void 0 };
|
|
3214
|
-
};
|
|
3215
|
-
const root = ref33();
|
|
3216
|
-
let detach;
|
|
3217
|
-
onMounted33(() => {
|
|
3218
|
-
if (root.value == null) return;
|
|
3219
|
-
const explicit = explicitProps();
|
|
3220
|
-
detach = manageGeneratedProps4(root.value, [
|
|
3221
|
-
{ name: "gutters", attribute: "data-gutters", value: explicit["gutters"], type: ["s", "m", "l"], required: false },
|
|
3222
|
-
{ name: "measure", attribute: "data-measure", value: explicit["measure"], type: ["narrow", "wide"], required: false }
|
|
3223
|
-
]);
|
|
3224
|
-
});
|
|
3225
|
-
watchEffect34(() => {
|
|
3226
|
-
const next = explicitProps();
|
|
3227
|
-
if (root.value == null) return;
|
|
3228
|
-
updateGeneratedProps4(root.value, next);
|
|
3229
|
-
});
|
|
3230
|
-
onUnmounted33(() => {
|
|
3231
|
-
detach?.();
|
|
3232
|
-
});
|
|
3233
|
-
return (_ctx, _cache) => {
|
|
3234
|
-
return _openBlock33(), _createElementBlock33(
|
|
3235
|
-
"div",
|
|
3236
|
-
_mergeProps33(_ctx.$attrs, {
|
|
3237
|
-
"data-component": "ui-container",
|
|
3238
|
-
"data-component-root": "ui-container",
|
|
3239
|
-
ref_key: "root",
|
|
3240
|
-
ref: root
|
|
3241
|
-
}),
|
|
3242
|
-
[
|
|
3243
|
-
_renderSlot30(_ctx.$slots, "default")
|
|
3244
|
-
],
|
|
3245
|
-
16
|
|
3246
|
-
/* FULL_PROPS */
|
|
3247
|
-
);
|
|
3248
|
-
};
|
|
3249
|
-
}
|
|
3250
|
-
});
|
|
3251
|
-
|
|
3252
|
-
// src/generated/UiGrid.ts
|
|
3253
|
-
import { defineComponent as _defineComponent34 } from "vue";
|
|
3254
|
-
import { renderSlot as _renderSlot31, mergeProps as _mergeProps34, openBlock as _openBlock34, createElementBlock as _createElementBlock34 } from "vue";
|
|
3255
|
-
import { getCurrentInstance as getCurrentInstance34, onMounted as onMounted34, onUnmounted as onUnmounted34, ref as ref34, watchEffect as watchEffect35 } from "vue";
|
|
3256
|
-
import { manageGeneratedProps as manageGeneratedProps5, updateGeneratedProps as updateGeneratedProps5 } from "@threadlabs/looma/core/declarative-generated";
|
|
3257
|
-
var UiGrid_default = /* @__PURE__ */ _defineComponent34({
|
|
3258
|
-
...{ inheritAttrs: false },
|
|
3259
|
-
__name: "UiGrid",
|
|
3260
|
-
props: {
|
|
3261
|
-
gap: { type: [String, null], required: false },
|
|
3262
|
-
min: { type: [String, null], required: false }
|
|
3263
|
-
},
|
|
3264
|
-
setup(__props) {
|
|
3265
|
-
const props = __props;
|
|
3266
|
-
const instance = getCurrentInstance34();
|
|
3267
|
-
const passed = (name, attribute) => {
|
|
3268
|
-
const raw = instance?.vnode.props ?? {};
|
|
3269
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3270
|
-
};
|
|
3271
|
-
const explicitProps = () => {
|
|
3272
|
-
const valuegap = props.gap;
|
|
3273
|
-
const valuemin = props.min;
|
|
3274
|
-
return { "gap": passed("gap", "gap") ? valuegap : void 0, "min": passed("min", "min") ? valuemin : void 0 };
|
|
3275
|
-
};
|
|
3276
|
-
const root = ref34();
|
|
3277
|
-
let detach;
|
|
3278
|
-
onMounted34(() => {
|
|
3279
|
-
if (root.value == null) return;
|
|
3280
|
-
const explicit = explicitProps();
|
|
3281
|
-
detach = manageGeneratedProps5(root.value, [
|
|
3282
|
-
{ name: "gap", attribute: "data-gap", value: explicit["gap"], type: ["xs", "s", "m", "l", "xl"], required: false },
|
|
3283
|
-
{ name: "min", attribute: "data-min", value: explicit["min"], type: ["sm", "md", "lg"], required: false }
|
|
3284
|
-
]);
|
|
3285
|
-
});
|
|
3286
|
-
watchEffect35(() => {
|
|
3287
|
-
const next = explicitProps();
|
|
3288
|
-
if (root.value == null) return;
|
|
3289
|
-
updateGeneratedProps5(root.value, next);
|
|
3290
|
-
});
|
|
3291
|
-
onUnmounted34(() => {
|
|
3292
|
-
detach?.();
|
|
3293
|
-
});
|
|
3294
|
-
return (_ctx, _cache) => {
|
|
3295
|
-
return _openBlock34(), _createElementBlock34(
|
|
3296
|
-
"div",
|
|
3297
|
-
_mergeProps34(_ctx.$attrs, {
|
|
3298
|
-
"data-component": "ui-grid",
|
|
3299
|
-
"data-component-root": "ui-grid",
|
|
3300
|
-
ref_key: "root",
|
|
3301
|
-
ref: root
|
|
3302
|
-
}),
|
|
3303
|
-
[
|
|
3304
|
-
_renderSlot31(_ctx.$slots, "default")
|
|
3305
|
-
],
|
|
3306
|
-
16
|
|
3307
|
-
/* FULL_PROPS */
|
|
3308
|
-
);
|
|
3309
|
-
};
|
|
3310
|
-
}
|
|
3311
|
-
});
|
|
3312
|
-
|
|
3313
|
-
// src/generated/UiReel.ts
|
|
3314
|
-
import { defineComponent as _defineComponent35 } from "vue";
|
|
3315
|
-
import { renderSlot as _renderSlot32, mergeProps as _mergeProps35, openBlock as _openBlock35, createElementBlock as _createElementBlock35 } from "vue";
|
|
3316
|
-
import { getCurrentInstance as getCurrentInstance35, onMounted as onMounted35, onUnmounted as onUnmounted35, ref as ref35, watchEffect as watchEffect36 } from "vue";
|
|
3317
|
-
import { attachLoomaComponent as attachLoomaComponent30, updateComponentProps as updateComponentProps30 } from "@threadlabs/looma/core/declarative";
|
|
3318
|
-
var UiReel_default = /* @__PURE__ */ _defineComponent35({
|
|
3319
|
-
...{ inheritAttrs: false },
|
|
3320
|
-
__name: "UiReel",
|
|
3321
|
-
props: {
|
|
3322
|
-
gap: { type: [String, null], required: false },
|
|
3323
|
-
itemWidth: { type: [String, null], required: false },
|
|
3324
|
-
snap: { type: [String, null], required: false }
|
|
3325
|
-
},
|
|
3326
|
-
setup(__props) {
|
|
3327
|
-
const props = __props;
|
|
3328
|
-
const instance = getCurrentInstance35();
|
|
3329
|
-
const passed = (name, attribute) => {
|
|
3330
|
-
const raw = instance?.vnode.props ?? {};
|
|
3331
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3332
|
-
};
|
|
3333
|
-
const explicitProps = () => {
|
|
3334
|
-
const valuegap = props.gap;
|
|
3335
|
-
const valueitemWidth = props.itemWidth;
|
|
3336
|
-
const valuesnap = props.snap;
|
|
3337
|
-
return { "gap": passed("gap", "gap") ? valuegap : void 0, "itemWidth": passed("itemWidth", "item-width") ? valueitemWidth : void 0, "snap": passed("snap", "snap") ? valuesnap : void 0 };
|
|
3338
|
-
};
|
|
3339
|
-
const definition = { ...{ "contract": { "tag": "ui-reel", "props": { "gap": { "type": { "enum": ["xs", "s", "m", "l", "xl"] }, "required": false, "target": { "attribute": "gap" } }, "itemWidth": { "type": { "enum": ["sm", "md", "lg"] }, "required": false, "target": { "attribute": "itemwidth" } }, "snap": { "type": { "enum": ["start", "center"] }, "required": false, "target": { "attribute": "snap" } } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3340
|
-
const root = ref35();
|
|
3341
|
-
let detach;
|
|
3342
|
-
onMounted35(() => {
|
|
3343
|
-
if (root.value == null) return;
|
|
3344
|
-
detach = attachLoomaComponent30(root.value, definition, "ui-reel", explicitProps());
|
|
3345
|
-
});
|
|
3346
|
-
watchEffect36(() => {
|
|
3347
|
-
const next = explicitProps();
|
|
3348
|
-
if (root.value == null) return;
|
|
3349
|
-
updateComponentProps30(root.value, next);
|
|
3350
|
-
});
|
|
3351
|
-
onUnmounted35(() => {
|
|
3352
|
-
detach?.();
|
|
3353
|
-
});
|
|
3354
|
-
return (_ctx, _cache) => {
|
|
3355
|
-
return _openBlock35(), _createElementBlock35(
|
|
3356
|
-
"div",
|
|
3357
|
-
_mergeProps35(_ctx.$attrs, {
|
|
3358
|
-
"data-component": "ui-reel",
|
|
3359
|
-
"data-component-root": "ui-reel",
|
|
3360
|
-
ref_key: "root",
|
|
3361
|
-
ref: root
|
|
3362
|
-
}),
|
|
3363
|
-
[
|
|
3364
|
-
_renderSlot32(_ctx.$slots, "default")
|
|
3365
|
-
],
|
|
3366
|
-
16
|
|
3367
|
-
/* FULL_PROPS */
|
|
3368
|
-
);
|
|
3369
|
-
};
|
|
3370
|
-
}
|
|
3371
|
-
});
|
|
3372
|
-
|
|
3373
|
-
// src/generated/UiSeparator.ts
|
|
3374
|
-
import { defineComponent as _defineComponent36 } from "vue";
|
|
3375
|
-
import { renderSlot as _renderSlot33, mergeProps as _mergeProps36, openBlock as _openBlock36, createElementBlock as _createElementBlock36 } from "vue";
|
|
3376
|
-
import { getCurrentInstance as getCurrentInstance36, onMounted as onMounted36, onUnmounted as onUnmounted36, ref as ref36, watchEffect as watchEffect37 } from "vue";
|
|
3377
|
-
import { attachLoomaComponent as attachLoomaComponent31, updateComponentProps as updateComponentProps31 } from "@threadlabs/looma/core/declarative";
|
|
3378
|
-
var UiSeparator_default = /* @__PURE__ */ _defineComponent36({
|
|
3379
|
-
...{ inheritAttrs: false },
|
|
3380
|
-
__name: "UiSeparator",
|
|
3381
|
-
props: {
|
|
3382
|
-
orientation: { type: [String, null], required: false, default: "horizontal" }
|
|
3383
|
-
},
|
|
3384
|
-
setup(__props) {
|
|
3385
|
-
const props = __props;
|
|
3386
|
-
const instance = getCurrentInstance36();
|
|
3387
|
-
const passed = (name, attribute) => {
|
|
3388
|
-
const raw = instance?.vnode.props ?? {};
|
|
3389
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3390
|
-
};
|
|
3391
|
-
const explicitProps = () => {
|
|
3392
|
-
const valueorientation = props.orientation;
|
|
3393
|
-
return { "orientation": passed("orientation", "orientation") ? valueorientation : void 0 };
|
|
3394
|
-
};
|
|
3395
|
-
const definition = { ...{ "contract": { "tag": "ui-separator", "props": { "orientation": { "type": { "enum": ["horizontal", "vertical"] }, "required": false, "target": { "attribute": "orientation" }, "default": "horizontal" } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3396
|
-
const root = ref36();
|
|
3397
|
-
let detach;
|
|
3398
|
-
onMounted36(() => {
|
|
3399
|
-
if (root.value == null) return;
|
|
3400
|
-
detach = attachLoomaComponent31(root.value, definition, "ui-separator", explicitProps());
|
|
3401
|
-
});
|
|
3402
|
-
watchEffect37(() => {
|
|
3403
|
-
const next = explicitProps();
|
|
3404
|
-
if (root.value == null) return;
|
|
3405
|
-
updateComponentProps31(root.value, next);
|
|
3406
|
-
});
|
|
3407
|
-
onUnmounted36(() => {
|
|
3408
|
-
detach?.();
|
|
3409
|
-
});
|
|
3410
|
-
return (_ctx, _cache) => {
|
|
3411
|
-
return _openBlock36(), _createElementBlock36(
|
|
3412
|
-
"div",
|
|
3413
|
-
_mergeProps36(_ctx.$attrs, {
|
|
3414
|
-
"data-component": "ui-separator",
|
|
3415
|
-
"data-component-root": "ui-separator",
|
|
3416
|
-
ref_key: "root",
|
|
3417
|
-
ref: root
|
|
3418
|
-
}),
|
|
3419
|
-
[
|
|
3420
|
-
_renderSlot33(_ctx.$slots, "default")
|
|
3421
|
-
],
|
|
3422
|
-
16
|
|
3423
|
-
/* FULL_PROPS */
|
|
3424
|
-
);
|
|
3425
|
-
};
|
|
3426
|
-
}
|
|
3427
|
-
});
|
|
3428
|
-
|
|
3429
|
-
// src/generated/UiSidebar.ts
|
|
3430
|
-
import { defineComponent as _defineComponent37 } from "vue";
|
|
3431
|
-
import { renderSlot as _renderSlot34, createElementVNode as _createElementVNode23, mergeProps as _mergeProps37, openBlock as _openBlock37, createElementBlock as _createElementBlock37 } from "vue";
|
|
3432
|
-
import { getCurrentInstance as getCurrentInstance37, onMounted as onMounted37, onUnmounted as onUnmounted37, ref as ref37, watchEffect as watchEffect38 } from "vue";
|
|
3433
|
-
import { attachLoomaComponent as attachLoomaComponent32, updateComponentProps as updateComponentProps32 } from "@threadlabs/looma/core/declarative";
|
|
3434
|
-
var _hoisted_130 = {
|
|
3435
|
-
class: "sidebar__content",
|
|
3436
|
-
"data-component": "ui-sidebar"
|
|
3437
|
-
};
|
|
3438
|
-
var UiSidebar_default = /* @__PURE__ */ _defineComponent37({
|
|
3439
|
-
...{ inheritAttrs: false },
|
|
3440
|
-
__name: "UiSidebar",
|
|
3441
|
-
props: {
|
|
3442
|
-
breakpoint: { type: [String, null], required: false, default: "md" },
|
|
3443
|
-
collapsed: { type: [Boolean, null], required: false, default: false },
|
|
3444
|
-
maxWidth: { type: [Number, null], required: false, default: 480 },
|
|
3445
|
-
minWidth: { type: [Number, null], required: false, default: 200 },
|
|
3446
|
-
resizable: { type: [Boolean, null], required: false, default: false },
|
|
3447
|
-
resizeLabel: { type: [String, null], required: false, default: "Resize sidebar" },
|
|
3448
|
-
resizeStep: { type: [Number, null], required: false, default: 16 },
|
|
3449
|
-
side: { type: [String, null], required: false, default: "start" },
|
|
3450
|
-
width: { type: [Number, null], required: false, default: 0 }
|
|
3451
|
-
},
|
|
3452
|
-
emits: ["resize", "toggle"],
|
|
3453
|
-
setup(__props, { emit: __emit }) {
|
|
3454
|
-
const props = __props;
|
|
3455
|
-
const emit = __emit;
|
|
3456
|
-
const instance = getCurrentInstance37();
|
|
3457
|
-
const passed = (name, attribute) => {
|
|
3458
|
-
const raw = instance?.vnode.props ?? {};
|
|
3459
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3460
|
-
};
|
|
3461
|
-
const explicitProps = () => {
|
|
3462
|
-
const valuebreakpoint = props.breakpoint;
|
|
3463
|
-
const valuecollapsed = props.collapsed;
|
|
3464
|
-
const valuemaxWidth = props.maxWidth;
|
|
3465
|
-
const valueminWidth = props.minWidth;
|
|
3466
|
-
const valueresizable = props.resizable;
|
|
3467
|
-
const valueresizeLabel = props.resizeLabel;
|
|
3468
|
-
const valueresizeStep = props.resizeStep;
|
|
3469
|
-
const valueside = props.side;
|
|
3470
|
-
const valuewidth = props.width;
|
|
3471
|
-
return { "breakpoint": passed("breakpoint", "breakpoint") ? valuebreakpoint : void 0, "collapsed": passed("collapsed", "collapsed") ? valuecollapsed : void 0, "maxWidth": passed("maxWidth", "max-width") ? valuemaxWidth : void 0, "minWidth": passed("minWidth", "min-width") ? valueminWidth : void 0, "resizable": passed("resizable", "resizable") ? valueresizable : void 0, "resizeLabel": passed("resizeLabel", "resize-label") ? valueresizeLabel : void 0, "resizeStep": passed("resizeStep", "resize-step") ? valueresizeStep : void 0, "side": passed("side", "side") ? valueside : void 0, "width": passed("width", "width") ? valuewidth : void 0 };
|
|
3472
|
-
};
|
|
3473
|
-
const definition = { ...{ "contract": { "tag": "ui-sidebar", "props": { "breakpoint": { "type": { "enum": ["sm", "md", "lg"] }, "required": false, "target": { "attribute": "breakpoint" }, "default": "md" }, "collapsed": { "type": "boolean", "required": false, "target": { "attribute": "collapsed" }, "default": false }, "maxWidth": { "type": "number", "required": false, "target": { "attribute": "maxwidth" }, "default": 480 }, "minWidth": { "type": "number", "required": false, "target": { "attribute": "minwidth" }, "default": 200 }, "resizable": { "type": "boolean", "required": false, "target": { "attribute": "resizable" }, "default": false }, "resizeLabel": { "type": "string", "required": false, "target": { "attribute": "resizelabel" }, "default": "Resize sidebar" }, "resizeStep": { "type": "number", "required": false, "target": { "attribute": "resizestep" }, "default": 16 }, "side": { "type": { "enum": ["start", "end"] }, "required": false, "target": { "attribute": "side" }, "default": "start" }, "width": { "type": "number", "required": false, "target": { "attribute": "width" }, "default": 0 } } }, "template": { "kind": "element", "name": "aside", "attributes": [{ "kind": "attribute", "name": "data-state-collapsed", "expression": "internalCollapsed", "expressionPlan": { "source": "internalCollapsed", "ast": { "kind": "id", "name": "internalCollapsed" }, "dependencies": ["internalCollapsed"] } }, { "kind": "attribute", "name": "data-state-drawer", "expression": "drawer", "expressionPlan": { "source": "drawer", "ast": { "kind": "id", "name": "drawer" }, "dependencies": ["drawer"] } }], "children": [{ "kind": "element", "name": "div", "attributes": [{ "kind": "literal", "name": "class", "value": "sidebar__content" }], "children": [{ "kind": "slot" }] }] }, "declarations": [{ "kind": "state", "name": "internalCollapsed", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "state", "name": "drawer", "expression": { "source": "false", "ast": { "kind": "literal", "value": false }, "dependencies": [] } }, { "kind": "event", "name": "resize", "type": "object({ width: number, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "toggle", "type": "object({ open: boolean, mode: docked | drawer, trigger: keyboard | pointer | programmatic })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "aside", "choices": ["aside"] } }, source: { file: import.meta.url }, css: "" };
|
|
3474
|
-
const root = ref37();
|
|
3475
|
-
const eventListener0 = (event) => emit("resize", event.detail);
|
|
3476
|
-
const eventListener1 = (event) => emit("toggle", event.detail);
|
|
3477
|
-
let detach;
|
|
3478
|
-
onMounted37(() => {
|
|
3479
|
-
if (root.value == null) return;
|
|
3480
|
-
detach = attachLoomaComponent32(root.value, definition, "ui-sidebar", explicitProps());
|
|
3481
|
-
root.value.addEventListener("resize", eventListener0);
|
|
3482
|
-
root.value.addEventListener("toggle", eventListener1);
|
|
3483
|
-
});
|
|
3484
|
-
watchEffect38(() => {
|
|
3485
|
-
const next = explicitProps();
|
|
3486
|
-
if (root.value == null) return;
|
|
3487
|
-
updateComponentProps32(root.value, next);
|
|
3488
|
-
});
|
|
3489
|
-
onUnmounted37(() => {
|
|
3490
|
-
root.value?.removeEventListener("resize", eventListener0);
|
|
3491
|
-
root.value?.removeEventListener("toggle", eventListener1);
|
|
3492
|
-
detach?.();
|
|
3493
|
-
});
|
|
3494
|
-
return (_ctx, _cache) => {
|
|
3495
|
-
return _openBlock37(), _createElementBlock37(
|
|
3496
|
-
"aside",
|
|
3497
|
-
_mergeProps37(_ctx.$attrs, {
|
|
3498
|
-
"data-component": "ui-sidebar",
|
|
3499
|
-
"data-component-root": "ui-sidebar",
|
|
3500
|
-
"data-state-collapsed": void 0,
|
|
3501
|
-
"data-state-drawer": void 0,
|
|
3502
|
-
ref_key: "root",
|
|
3503
|
-
ref: root
|
|
3504
|
-
}),
|
|
3505
|
-
[
|
|
3506
|
-
_createElementVNode23("div", _hoisted_130, [
|
|
3507
|
-
_renderSlot34(_ctx.$slots, "default")
|
|
3508
|
-
])
|
|
3509
|
-
],
|
|
3510
|
-
16
|
|
3511
|
-
/* FULL_PROPS */
|
|
3512
|
-
);
|
|
3513
|
-
};
|
|
3514
|
-
}
|
|
3515
|
-
});
|
|
3516
|
-
|
|
3517
|
-
// src/generated/UiStack.ts
|
|
3518
|
-
import { defineComponent as _defineComponent38 } from "vue";
|
|
3519
|
-
import { renderSlot as _renderSlot35, mergeProps as _mergeProps38, openBlock as _openBlock38, createElementBlock as _createElementBlock38 } from "vue";
|
|
3520
|
-
import { getCurrentInstance as getCurrentInstance38, onMounted as onMounted38, onUnmounted as onUnmounted38, ref as ref38, watchEffect as watchEffect39 } from "vue";
|
|
3521
|
-
import { manageGeneratedProps as manageGeneratedProps6, updateGeneratedProps as updateGeneratedProps6 } from "@threadlabs/looma/core/declarative-generated";
|
|
3522
|
-
var UiStack_default = /* @__PURE__ */ _defineComponent38({
|
|
3523
|
-
...{ inheritAttrs: false },
|
|
3524
|
-
__name: "UiStack",
|
|
3525
|
-
props: {
|
|
3526
|
-
align: { type: [String, null], required: false },
|
|
3527
|
-
gap: { type: [String, null], required: false },
|
|
3528
|
-
justify: { type: [String, null], required: false }
|
|
3529
|
-
},
|
|
3530
|
-
setup(__props) {
|
|
3531
|
-
const props = __props;
|
|
3532
|
-
const instance = getCurrentInstance38();
|
|
3533
|
-
const passed = (name, attribute) => {
|
|
3534
|
-
const raw = instance?.vnode.props ?? {};
|
|
3535
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3536
|
-
};
|
|
3537
|
-
const explicitProps = () => {
|
|
3538
|
-
const valuealign = props.align;
|
|
3539
|
-
const valuegap = props.gap;
|
|
3540
|
-
const valuejustify = props.justify;
|
|
3541
|
-
return { "align": passed("align", "align") ? valuealign : void 0, "gap": passed("gap", "gap") ? valuegap : void 0, "justify": passed("justify", "justify") ? valuejustify : void 0 };
|
|
3542
|
-
};
|
|
3543
|
-
const root = ref38();
|
|
3544
|
-
let detach;
|
|
3545
|
-
onMounted38(() => {
|
|
3546
|
-
if (root.value == null) return;
|
|
3547
|
-
const explicit = explicitProps();
|
|
3548
|
-
detach = manageGeneratedProps6(root.value, [
|
|
3549
|
-
{ name: "align", attribute: "data-align", value: explicit["align"], type: ["start", "center", "end", "stretch"], required: false },
|
|
3550
|
-
{ name: "gap", attribute: "data-gap", value: explicit["gap"], type: ["xs", "s", "m", "l", "xl"], required: false },
|
|
3551
|
-
{ name: "justify", attribute: "data-justify", value: explicit["justify"], type: ["start", "center", "end", "between"], required: false }
|
|
3552
|
-
]);
|
|
3553
|
-
});
|
|
3554
|
-
watchEffect39(() => {
|
|
3555
|
-
const next = explicitProps();
|
|
3556
|
-
if (root.value == null) return;
|
|
3557
|
-
updateGeneratedProps6(root.value, next);
|
|
3558
|
-
});
|
|
3559
|
-
onUnmounted38(() => {
|
|
3560
|
-
detach?.();
|
|
3561
|
-
});
|
|
3562
|
-
return (_ctx, _cache) => {
|
|
3563
|
-
return _openBlock38(), _createElementBlock38(
|
|
3564
|
-
"div",
|
|
3565
|
-
_mergeProps38(_ctx.$attrs, {
|
|
3566
|
-
"data-component": "ui-stack",
|
|
3567
|
-
"data-component-root": "ui-stack",
|
|
3568
|
-
ref_key: "root",
|
|
3569
|
-
ref: root
|
|
3570
|
-
}),
|
|
3571
|
-
[
|
|
3572
|
-
_renderSlot35(_ctx.$slots, "default")
|
|
3573
|
-
],
|
|
3574
|
-
16
|
|
3575
|
-
/* FULL_PROPS */
|
|
3576
|
-
);
|
|
3577
|
-
};
|
|
3578
|
-
}
|
|
3579
|
-
});
|
|
3580
|
-
|
|
3581
|
-
// src/generated/UiSwitcher.ts
|
|
3582
|
-
import { defineComponent as _defineComponent39 } from "vue";
|
|
3583
|
-
import { renderSlot as _renderSlot36, mergeProps as _mergeProps39, openBlock as _openBlock39, createElementBlock as _createElementBlock39 } from "vue";
|
|
3584
|
-
import { getCurrentInstance as getCurrentInstance39, onMounted as onMounted39, onUnmounted as onUnmounted39, ref as ref39, watchEffect as watchEffect40 } from "vue";
|
|
3585
|
-
import { manageGeneratedProps as manageGeneratedProps7, updateGeneratedProps as updateGeneratedProps7 } from "@threadlabs/looma/core/declarative-generated";
|
|
3586
|
-
var UiSwitcher_default = /* @__PURE__ */ _defineComponent39({
|
|
3587
|
-
...{ inheritAttrs: false },
|
|
3588
|
-
__name: "UiSwitcher",
|
|
3589
|
-
props: {
|
|
3590
|
-
align: { type: [String, null], required: false },
|
|
3591
|
-
gap: { type: [String, null], required: false },
|
|
3592
|
-
threshold: { type: [String, null], required: false }
|
|
3593
|
-
},
|
|
3594
|
-
setup(__props) {
|
|
3595
|
-
const props = __props;
|
|
3596
|
-
const instance = getCurrentInstance39();
|
|
3597
|
-
const passed = (name, attribute) => {
|
|
3598
|
-
const raw = instance?.vnode.props ?? {};
|
|
3599
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3600
|
-
};
|
|
3601
|
-
const explicitProps = () => {
|
|
3602
|
-
const valuealign = props.align;
|
|
3603
|
-
const valuegap = props.gap;
|
|
3604
|
-
const valuethreshold = props.threshold;
|
|
3605
|
-
return { "align": passed("align", "align") ? valuealign : void 0, "gap": passed("gap", "gap") ? valuegap : void 0, "threshold": passed("threshold", "threshold") ? valuethreshold : void 0 };
|
|
3606
|
-
};
|
|
3607
|
-
const root = ref39();
|
|
3608
|
-
let detach;
|
|
3609
|
-
onMounted39(() => {
|
|
3610
|
-
if (root.value == null) return;
|
|
3611
|
-
const explicit = explicitProps();
|
|
3612
|
-
detach = manageGeneratedProps7(root.value, [
|
|
3613
|
-
{ name: "align", attribute: "data-align", value: explicit["align"], type: ["start", "center", "end", "stretch"], required: false },
|
|
3614
|
-
{ name: "gap", attribute: "data-gap", value: explicit["gap"], type: ["xs", "s", "m", "l", "xl"], required: false },
|
|
3615
|
-
{ name: "threshold", attribute: "data-threshold", value: explicit["threshold"], type: ["xs", "sm", "md", "lg"], required: false }
|
|
3616
|
-
]);
|
|
3617
|
-
});
|
|
3618
|
-
watchEffect40(() => {
|
|
3619
|
-
const next = explicitProps();
|
|
3620
|
-
if (root.value == null) return;
|
|
3621
|
-
updateGeneratedProps7(root.value, next);
|
|
3622
|
-
});
|
|
3623
|
-
onUnmounted39(() => {
|
|
3624
|
-
detach?.();
|
|
3625
|
-
});
|
|
3626
|
-
return (_ctx, _cache) => {
|
|
3627
|
-
return _openBlock39(), _createElementBlock39(
|
|
3628
|
-
"div",
|
|
3629
|
-
_mergeProps39(_ctx.$attrs, {
|
|
3630
|
-
"data-component": "ui-switcher",
|
|
3631
|
-
"data-component-root": "ui-switcher",
|
|
3632
|
-
ref_key: "root",
|
|
3633
|
-
ref: root
|
|
3634
|
-
}),
|
|
3635
|
-
[
|
|
3636
|
-
_renderSlot36(_ctx.$slots, "default")
|
|
3637
|
-
],
|
|
3638
|
-
16
|
|
3639
|
-
/* FULL_PROPS */
|
|
3640
|
-
);
|
|
3641
|
-
};
|
|
3642
|
-
}
|
|
3643
|
-
});
|
|
3644
|
-
|
|
3645
|
-
// src/generated/UiEditorInsertTableGrid.ts
|
|
3646
|
-
import { defineComponent as _defineComponent40 } from "vue";
|
|
3647
|
-
import { mergeProps as _mergeProps40, openBlock as _openBlock40, createElementBlock as _createElementBlock40 } from "vue";
|
|
3648
|
-
import { getCurrentInstance as getCurrentInstance40, onMounted as onMounted40, onUnmounted as onUnmounted40, ref as ref40, watchEffect as watchEffect41 } from "vue";
|
|
3649
|
-
import { attachLoomaComponent as attachLoomaComponent33, updateComponentProps as updateComponentProps33 } from "@threadlabs/looma/core/declarative";
|
|
3650
|
-
var UiEditorInsertTableGrid_default = /* @__PURE__ */ _defineComponent40({
|
|
3651
|
-
...{ inheritAttrs: false },
|
|
3652
|
-
__name: "UiEditorInsertTableGrid",
|
|
3653
|
-
props: {
|
|
3654
|
-
headerRow: { type: [Boolean, null], required: false, default: false },
|
|
3655
|
-
maxCols: { type: [Number, null], required: false, default: 8 },
|
|
3656
|
-
maxRows: { type: [Number, null], required: false, default: 8 },
|
|
3657
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
3658
|
-
},
|
|
3659
|
-
emits: ["insert"],
|
|
3660
|
-
setup(__props, { emit: __emit }) {
|
|
3661
|
-
const props = __props;
|
|
3662
|
-
const emit = __emit;
|
|
3663
|
-
const instance = getCurrentInstance40();
|
|
3664
|
-
const passed = (name, attribute) => {
|
|
3665
|
-
const raw = instance?.vnode.props ?? {};
|
|
3666
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3667
|
-
};
|
|
3668
|
-
const explicitProps = () => {
|
|
3669
|
-
const valueheaderRow = props.headerRow;
|
|
3670
|
-
const valuemaxCols = props.maxCols;
|
|
3671
|
-
const valuemaxRows = props.maxRows;
|
|
3672
|
-
const valueopen = props.open;
|
|
3673
|
-
return { "headerRow": passed("headerRow", "header-row") ? valueheaderRow : void 0, "maxCols": passed("maxCols", "max-cols") ? valuemaxCols : void 0, "maxRows": passed("maxRows", "max-rows") ? valuemaxRows : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
3674
|
-
};
|
|
3675
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-insert-table-grid", "props": { "headerRow": { "type": "boolean", "required": false, "target": { "attribute": "headerrow" }, "default": false }, "maxCols": { "type": { "kind": "terminal", "name": "integer" }, "required": false, "target": { "attribute": "maxcols" }, "default": 8 }, "maxRows": { "type": { "kind": "terminal", "name": "integer" }, "required": false, "target": { "attribute": "maxrows" }, "default": 8 }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [] }, "declarations": [{ "kind": "event", "name": "insert", "type": "object({ rows: integer, cols: integer, withHeaderRow: boolean })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3676
|
-
const root = ref40();
|
|
3677
|
-
const eventListener0 = (event) => emit("insert", event.detail);
|
|
3678
|
-
let detach;
|
|
3679
|
-
onMounted40(() => {
|
|
3680
|
-
if (root.value == null) return;
|
|
3681
|
-
detach = attachLoomaComponent33(root.value, definition, "ui-editor-insert-table-grid", explicitProps());
|
|
3682
|
-
root.value.addEventListener("insert", eventListener0);
|
|
3683
|
-
});
|
|
3684
|
-
watchEffect41(() => {
|
|
3685
|
-
const next = explicitProps();
|
|
3686
|
-
if (root.value == null) return;
|
|
3687
|
-
updateComponentProps33(root.value, next);
|
|
3688
|
-
});
|
|
3689
|
-
onUnmounted40(() => {
|
|
3690
|
-
root.value?.removeEventListener("insert", eventListener0);
|
|
3691
|
-
detach?.();
|
|
3692
|
-
});
|
|
3693
|
-
return (_ctx, _cache) => {
|
|
3694
|
-
return _openBlock40(), _createElementBlock40(
|
|
3695
|
-
"div",
|
|
3696
|
-
_mergeProps40(_ctx.$attrs, {
|
|
3697
|
-
"data-component": "ui-editor-insert-table-grid",
|
|
3698
|
-
"data-component-root": "ui-editor-insert-table-grid",
|
|
3699
|
-
ref_key: "root",
|
|
3700
|
-
ref: root
|
|
3701
|
-
}),
|
|
3702
|
-
null,
|
|
3703
|
-
16
|
|
3704
|
-
/* FULL_PROPS */
|
|
3705
|
-
);
|
|
3706
|
-
};
|
|
3707
|
-
}
|
|
3708
|
-
});
|
|
3709
|
-
|
|
3710
|
-
// src/generated/UiEditorMentionMenu.ts
|
|
3711
|
-
import { defineComponent as _defineComponent41 } from "vue";
|
|
3712
|
-
import { mergeProps as _mergeProps41, openBlock as _openBlock41, createElementBlock as _createElementBlock41 } from "vue";
|
|
3713
|
-
import { getCurrentInstance as getCurrentInstance41, onMounted as onMounted41, onUnmounted as onUnmounted41, ref as ref41, watchEffect as watchEffect42 } from "vue";
|
|
3714
|
-
import { attachLoomaComponent as attachLoomaComponent34, updateComponentProps as updateComponentProps34 } from "@threadlabs/looma/core/declarative";
|
|
3715
|
-
var UiEditorMentionMenu_default = /* @__PURE__ */ _defineComponent41({
|
|
3716
|
-
...{ inheritAttrs: false },
|
|
3717
|
-
__name: "UiEditorMentionMenu",
|
|
3718
|
-
props: {
|
|
3719
|
-
anchorRect: { type: [Object, null], required: false },
|
|
3720
|
-
items: { type: [Array, null], required: false },
|
|
3721
|
-
loading: { type: [Boolean, null], required: false, default: false },
|
|
3722
|
-
open: { type: [Boolean, null], required: false, default: false },
|
|
3723
|
-
query: { type: [String, null], required: false, default: "" },
|
|
3724
|
-
selectedIndex: { type: [Number, null], required: false, default: 0 }
|
|
3725
|
-
},
|
|
3726
|
-
emits: ["highlight", "select"],
|
|
3727
|
-
setup(__props, { emit: __emit }) {
|
|
3728
|
-
const props = __props;
|
|
3729
|
-
const emit = __emit;
|
|
3730
|
-
const instance = getCurrentInstance41();
|
|
3731
|
-
const passed = (name, attribute) => {
|
|
3732
|
-
const raw = instance?.vnode.props ?? {};
|
|
3733
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3734
|
-
};
|
|
3735
|
-
const explicitProps = () => {
|
|
3736
|
-
const valueanchorRect = props.anchorRect;
|
|
3737
|
-
const valueitems = props.items;
|
|
3738
|
-
const valueloading = props.loading;
|
|
3739
|
-
const valueopen = props.open;
|
|
3740
|
-
const valuequery = props.query;
|
|
3741
|
-
const valueselectedIndex = props.selectedIndex;
|
|
3742
|
-
return { "anchorRect": passed("anchorRect", "anchor-rect") ? valueanchorRect : void 0, "items": passed("items", "items") ? valueitems : void 0, "loading": passed("loading", "loading") ? valueloading : void 0, "open": passed("open", "open") ? valueopen : void 0, "query": passed("query", "query") ? valuequery : void 0, "selectedIndex": passed("selectedIndex", "selected-index") ? valueselectedIndex : void 0 };
|
|
3743
|
-
};
|
|
3744
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-mention-menu", "props": { "anchorRect": { "type": { "kind": "union", "members": [{ "kind": "object", "fields": [{ "name": "left", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "top", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "right", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "bottom", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "x", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "y", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "width", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "height", "type": { "kind": "terminal", "name": "number" }, "optional": true }], "open": false }, { "kind": "terminal", "name": "null" }] }, "required": false, "target": { "attribute": "anchorrect" } }, "items": { "type": { "kind": "list", "item": { "kind": "object", "fields": [{ "name": "id", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "label", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "detail", "type": { "kind": "terminal", "name": "string" }, "optional": true }, { "name": "initials", "type": { "kind": "terminal", "name": "string" }, "optional": true }], "open": false } }, "required": false, "target": { "attribute": "items" } }, "loading": { "type": "boolean", "required": false, "target": { "attribute": "loading" }, "default": false }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false }, "query": { "type": "string", "required": false, "target": { "attribute": "query" }, "default": "" }, "selectedIndex": { "type": { "kind": "terminal", "name": "integer" }, "required": false, "target": { "attribute": "selectedindex" }, "default": 0 } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [] }, "declarations": [{ "kind": "event", "name": "highlight", "type": "object({ index: integer })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "select", "type": "object({ index: integer })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3745
|
-
const root = ref41();
|
|
3746
|
-
const eventListener0 = (event) => emit("highlight", event.detail);
|
|
3747
|
-
const eventListener1 = (event) => emit("select", event.detail);
|
|
3748
|
-
let detach;
|
|
3749
|
-
onMounted41(() => {
|
|
3750
|
-
if (root.value == null) return;
|
|
3751
|
-
detach = attachLoomaComponent34(root.value, definition, "ui-editor-mention-menu", explicitProps());
|
|
3752
|
-
root.value.addEventListener("highlight", eventListener0);
|
|
3753
|
-
root.value.addEventListener("select", eventListener1);
|
|
3754
|
-
});
|
|
3755
|
-
watchEffect42(() => {
|
|
3756
|
-
const next = explicitProps();
|
|
3757
|
-
if (root.value == null) return;
|
|
3758
|
-
updateComponentProps34(root.value, next);
|
|
3759
|
-
});
|
|
3760
|
-
onUnmounted41(() => {
|
|
3761
|
-
root.value?.removeEventListener("highlight", eventListener0);
|
|
3762
|
-
root.value?.removeEventListener("select", eventListener1);
|
|
3763
|
-
detach?.();
|
|
3764
|
-
});
|
|
3765
|
-
return (_ctx, _cache) => {
|
|
3766
|
-
return _openBlock41(), _createElementBlock41(
|
|
3767
|
-
"div",
|
|
3768
|
-
_mergeProps41(_ctx.$attrs, {
|
|
3769
|
-
"data-component": "ui-editor-mention-menu",
|
|
3770
|
-
"data-component-root": "ui-editor-mention-menu",
|
|
3771
|
-
ref_key: "root",
|
|
3772
|
-
ref: root
|
|
3773
|
-
}),
|
|
3774
|
-
null,
|
|
3775
|
-
16
|
|
3776
|
-
/* FULL_PROPS */
|
|
3777
|
-
);
|
|
3778
|
-
};
|
|
3779
|
-
}
|
|
3780
|
-
});
|
|
3781
|
-
|
|
3782
|
-
// src/generated/UiEditorSlashMenu.ts
|
|
3783
|
-
import { defineComponent as _defineComponent42 } from "vue";
|
|
3784
|
-
import { mergeProps as _mergeProps42, openBlock as _openBlock42, createElementBlock as _createElementBlock42 } from "vue";
|
|
3785
|
-
import { getCurrentInstance as getCurrentInstance42, onMounted as onMounted42, onUnmounted as onUnmounted42, ref as ref42, watchEffect as watchEffect43 } from "vue";
|
|
3786
|
-
import { attachLoomaComponent as attachLoomaComponent35, updateComponentProps as updateComponentProps35 } from "@threadlabs/looma/core/declarative";
|
|
3787
|
-
var UiEditorSlashMenu_default = /* @__PURE__ */ _defineComponent42({
|
|
3788
|
-
...{ inheritAttrs: false },
|
|
3789
|
-
__name: "UiEditorSlashMenu",
|
|
3790
|
-
props: {
|
|
3791
|
-
anchorRect: { type: [Object, null], required: false },
|
|
3792
|
-
items: { type: [Array, null], required: false },
|
|
3793
|
-
open: { type: [Boolean, null], required: false, default: false },
|
|
3794
|
-
query: { type: [String, null], required: false, default: "" },
|
|
3795
|
-
selectedIndex: { type: [Number, null], required: false, default: 0 }
|
|
3796
|
-
},
|
|
3797
|
-
emits: ["highlight", "select"],
|
|
3798
|
-
setup(__props, { emit: __emit }) {
|
|
3799
|
-
const props = __props;
|
|
3800
|
-
const emit = __emit;
|
|
3801
|
-
const instance = getCurrentInstance42();
|
|
3802
|
-
const passed = (name, attribute) => {
|
|
3803
|
-
const raw = instance?.vnode.props ?? {};
|
|
3804
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3805
|
-
};
|
|
3806
|
-
const explicitProps = () => {
|
|
3807
|
-
const valueanchorRect = props.anchorRect;
|
|
3808
|
-
const valueitems = props.items;
|
|
3809
|
-
const valueopen = props.open;
|
|
3810
|
-
const valuequery = props.query;
|
|
3811
|
-
const valueselectedIndex = props.selectedIndex;
|
|
3812
|
-
return { "anchorRect": passed("anchorRect", "anchor-rect") ? valueanchorRect : void 0, "items": passed("items", "items") ? valueitems : void 0, "open": passed("open", "open") ? valueopen : void 0, "query": passed("query", "query") ? valuequery : void 0, "selectedIndex": passed("selectedIndex", "selected-index") ? valueselectedIndex : void 0 };
|
|
3813
|
-
};
|
|
3814
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-slash-menu", "props": { "anchorRect": { "type": { "kind": "union", "members": [{ "kind": "object", "fields": [{ "name": "left", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "top", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "right", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "bottom", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "x", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "y", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "width", "type": { "kind": "terminal", "name": "number" }, "optional": true }, { "name": "height", "type": { "kind": "terminal", "name": "number" }, "optional": true }], "open": false }, { "kind": "terminal", "name": "null" }] }, "required": false, "target": { "attribute": "anchorrect" } }, "items": { "type": { "kind": "list", "item": { "kind": "object", "fields": [{ "name": "title", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "description", "type": { "kind": "terminal", "name": "string" }, "optional": false }, { "name": "icon", "type": { "kind": "terminal", "name": "string" }, "optional": false }], "open": false } }, "required": false, "target": { "attribute": "items" } }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false }, "query": { "type": "string", "required": false, "target": { "attribute": "query" }, "default": "" }, "selectedIndex": { "type": { "kind": "terminal", "name": "integer" }, "required": false, "target": { "attribute": "selectedindex" }, "default": 0 } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [] }, "declarations": [{ "kind": "event", "name": "highlight", "type": "object({ index: integer })", "bubbles": true, "composed": true, "cancelable": false }, { "kind": "event", "name": "select", "type": "object({ index: integer })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3815
|
-
const root = ref42();
|
|
3816
|
-
const eventListener0 = (event) => emit("highlight", event.detail);
|
|
3817
|
-
const eventListener1 = (event) => emit("select", event.detail);
|
|
3818
|
-
let detach;
|
|
3819
|
-
onMounted42(() => {
|
|
3820
|
-
if (root.value == null) return;
|
|
3821
|
-
detach = attachLoomaComponent35(root.value, definition, "ui-editor-slash-menu", explicitProps());
|
|
3822
|
-
root.value.addEventListener("highlight", eventListener0);
|
|
3823
|
-
root.value.addEventListener("select", eventListener1);
|
|
3824
|
-
});
|
|
3825
|
-
watchEffect43(() => {
|
|
3826
|
-
const next = explicitProps();
|
|
3827
|
-
if (root.value == null) return;
|
|
3828
|
-
updateComponentProps35(root.value, next);
|
|
3829
|
-
});
|
|
3830
|
-
onUnmounted42(() => {
|
|
3831
|
-
root.value?.removeEventListener("highlight", eventListener0);
|
|
3832
|
-
root.value?.removeEventListener("select", eventListener1);
|
|
3833
|
-
detach?.();
|
|
3834
|
-
});
|
|
3835
|
-
return (_ctx, _cache) => {
|
|
3836
|
-
return _openBlock42(), _createElementBlock42(
|
|
3837
|
-
"div",
|
|
3838
|
-
_mergeProps42(_ctx.$attrs, {
|
|
3839
|
-
"data-component": "ui-editor-slash-menu",
|
|
3840
|
-
"data-component-root": "ui-editor-slash-menu",
|
|
3841
|
-
ref_key: "root",
|
|
3842
|
-
ref: root
|
|
3843
|
-
}),
|
|
3844
|
-
null,
|
|
3845
|
-
16
|
|
3846
|
-
/* FULL_PROPS */
|
|
3847
|
-
);
|
|
3848
|
-
};
|
|
3849
|
-
}
|
|
3850
|
-
});
|
|
3851
|
-
|
|
3852
|
-
// src/generated/UiEditorTableContextMenu.ts
|
|
3853
|
-
import { defineComponent as _defineComponent43 } from "vue";
|
|
3854
|
-
import { mergeProps as _mergeProps43, openBlock as _openBlock43, createElementBlock as _createElementBlock43 } from "vue";
|
|
3855
|
-
import { getCurrentInstance as getCurrentInstance43, onMounted as onMounted43, onUnmounted as onUnmounted43, ref as ref43, watchEffect as watchEffect44 } from "vue";
|
|
3856
|
-
import { attachLoomaComponent as attachLoomaComponent36, updateComponentProps as updateComponentProps36 } from "@threadlabs/looma/core/declarative";
|
|
3857
|
-
var UiEditorTableContextMenu_default = /* @__PURE__ */ _defineComponent43({
|
|
3858
|
-
...{ inheritAttrs: false },
|
|
3859
|
-
__name: "UiEditorTableContextMenu",
|
|
3860
|
-
props: {
|
|
3861
|
-
actions: { type: [Array, null], required: false },
|
|
3862
|
-
cellBackground: { type: [String, null], required: false, default: "" },
|
|
3863
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
3864
|
-
},
|
|
3865
|
-
emits: ["action"],
|
|
3866
|
-
setup(__props, { emit: __emit }) {
|
|
3867
|
-
const props = __props;
|
|
3868
|
-
const emit = __emit;
|
|
3869
|
-
const instance = getCurrentInstance43();
|
|
3870
|
-
const passed = (name, attribute) => {
|
|
3871
|
-
const raw = instance?.vnode.props ?? {};
|
|
3872
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3873
|
-
};
|
|
3874
|
-
const explicitProps = () => {
|
|
3875
|
-
const valueactions = props.actions;
|
|
3876
|
-
const valuecellBackground = props.cellBackground;
|
|
3877
|
-
const valueopen = props.open;
|
|
3878
|
-
return { "actions": passed("actions", "actions") ? valueactions : void 0, "cellBackground": passed("cellBackground", "cell-background") ? valuecellBackground : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
3879
|
-
};
|
|
3880
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-table-context-menu", "props": { "actions": { "type": { "kind": "list", "item": { "kind": "union", "members": [{ "kind": "keyword", "value": "align-left" }, { "kind": "keyword", "value": "align-center" }, { "kind": "keyword", "value": "align-right" }, { "kind": "keyword", "value": "background-none" }, { "kind": "keyword", "value": "background-gray" }, { "kind": "keyword", "value": "background-yellow" }, { "kind": "keyword", "value": "background-blue" }, { "kind": "keyword", "value": "background-green" }, { "kind": "keyword", "value": "background-red" }, { "kind": "keyword", "value": "add-row-before" }, { "kind": "keyword", "value": "add-row-after" }, { "kind": "keyword", "value": "add-column-before" }, { "kind": "keyword", "value": "add-column-after" }, { "kind": "keyword", "value": "clear-cells" }, { "kind": "keyword", "value": "merge-cells" }, { "kind": "keyword", "value": "split-cell" }, { "kind": "keyword", "value": "delete-row" }, { "kind": "keyword", "value": "delete-column" }, { "kind": "keyword", "value": "delete-table" }] } }, "required": false, "target": { "attribute": "actions" } }, "cellBackground": { "type": "string", "required": false, "target": { "attribute": "cellbackground" }, "default": "" }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [] }, "declarations": [{ "kind": "event", "name": "action", "type": "object({ action: string })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
3881
|
-
const root = ref43();
|
|
3882
|
-
const eventListener0 = (event) => emit("action", event.detail);
|
|
3883
|
-
let detach;
|
|
3884
|
-
onMounted43(() => {
|
|
3885
|
-
if (root.value == null) return;
|
|
3886
|
-
detach = attachLoomaComponent36(root.value, definition, "ui-editor-table-context-menu", explicitProps());
|
|
3887
|
-
root.value.addEventListener("action", eventListener0);
|
|
3888
|
-
});
|
|
3889
|
-
watchEffect44(() => {
|
|
3890
|
-
const next = explicitProps();
|
|
3891
|
-
if (root.value == null) return;
|
|
3892
|
-
updateComponentProps36(root.value, next);
|
|
3893
|
-
});
|
|
3894
|
-
onUnmounted43(() => {
|
|
3895
|
-
root.value?.removeEventListener("action", eventListener0);
|
|
3896
|
-
detach?.();
|
|
3897
|
-
});
|
|
3898
|
-
return (_ctx, _cache) => {
|
|
3899
|
-
return _openBlock43(), _createElementBlock43(
|
|
3900
|
-
"div",
|
|
3901
|
-
_mergeProps43(_ctx.$attrs, {
|
|
3902
|
-
"data-component": "ui-editor-table-context-menu",
|
|
3903
|
-
"data-component-root": "ui-editor-table-context-menu",
|
|
3904
|
-
ref_key: "root",
|
|
3905
|
-
ref: root
|
|
3906
|
-
}),
|
|
3907
|
-
null,
|
|
3908
|
-
16
|
|
3909
|
-
/* FULL_PROPS */
|
|
3910
|
-
);
|
|
3911
|
-
};
|
|
3912
|
-
}
|
|
3913
|
-
});
|
|
3914
|
-
|
|
3915
|
-
// src/generated/UiEditorTableOverlay.ts
|
|
3916
|
-
import { defineComponent as _defineComponent44 } from "vue";
|
|
3917
|
-
import { mergeProps as _mergeProps44, openBlock as _openBlock44, createElementBlock as _createElementBlock44 } from "vue";
|
|
3918
|
-
import { getCurrentInstance as getCurrentInstance44, onMounted as onMounted44, onUnmounted as onUnmounted44, ref as ref44, watchEffect as watchEffect45 } from "vue";
|
|
3919
|
-
import { attachLoomaComponent as attachLoomaComponent37, updateComponentProps as updateComponentProps37 } from "@threadlabs/looma/core/declarative";
|
|
3920
|
-
var UiEditorTableOverlay_default = /* @__PURE__ */ _defineComponent44({
|
|
3921
|
-
...{ inheritAttrs: false },
|
|
3922
|
-
__name: "UiEditorTableOverlay",
|
|
3923
|
-
props: {
|
|
3924
|
-
geometry: { type: [Object, null], required: false },
|
|
3925
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
3926
|
-
},
|
|
3927
|
-
emits: ["action"],
|
|
3928
|
-
setup(__props, { emit: __emit }) {
|
|
3929
|
-
const props = __props;
|
|
3930
|
-
const emit = __emit;
|
|
3931
|
-
const instance = getCurrentInstance44();
|
|
3932
|
-
const passed = (name, attribute) => {
|
|
3933
|
-
const raw = instance?.vnode.props ?? {};
|
|
3934
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3935
|
-
};
|
|
3936
|
-
const explicitProps = () => {
|
|
3937
|
-
const valuegeometry = props.geometry;
|
|
3938
|
-
const valueopen = props.open;
|
|
3939
|
-
return { "geometry": passed("geometry", "geometry") ? valuegeometry : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
3940
|
-
};
|
|
3941
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-table-overlay", "props": { "geometry": { "type": { "kind": "union", "members": [{ "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 }, { "kind": "terminal", "name": "null" }] }, "required": false, "target": { "attribute": "geometry" } }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [] }, "declarations": [{ "kind": "event", "name": "action", "type": "object({ action: string, boundaryIndex?: integer, 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: "" };
|
|
3942
|
-
const root = ref44();
|
|
3943
|
-
const eventListener0 = (event) => emit("action", event.detail);
|
|
3944
|
-
let detach;
|
|
3945
|
-
onMounted44(() => {
|
|
3946
|
-
if (root.value == null) return;
|
|
3947
|
-
detach = attachLoomaComponent37(root.value, definition, "ui-editor-table-overlay", explicitProps());
|
|
3948
|
-
root.value.addEventListener("action", eventListener0);
|
|
3949
|
-
});
|
|
3950
|
-
watchEffect45(() => {
|
|
3951
|
-
const next = explicitProps();
|
|
3952
|
-
if (root.value == null) return;
|
|
3953
|
-
updateComponentProps37(root.value, next);
|
|
3954
|
-
});
|
|
3955
|
-
onUnmounted44(() => {
|
|
3956
|
-
root.value?.removeEventListener("action", eventListener0);
|
|
3957
|
-
detach?.();
|
|
3958
|
-
});
|
|
3959
|
-
return (_ctx, _cache) => {
|
|
3960
|
-
return _openBlock44(), _createElementBlock44(
|
|
3961
|
-
"div",
|
|
3962
|
-
_mergeProps44(_ctx.$attrs, {
|
|
3963
|
-
"data-component": "ui-editor-table-overlay",
|
|
3964
|
-
"data-component-root": "ui-editor-table-overlay",
|
|
3965
|
-
ref_key: "root",
|
|
3966
|
-
ref: root
|
|
3967
|
-
}),
|
|
3968
|
-
null,
|
|
3969
|
-
16
|
|
3970
|
-
/* FULL_PROPS */
|
|
3971
|
-
);
|
|
3972
|
-
};
|
|
3973
|
-
}
|
|
3974
|
-
});
|
|
3975
|
-
|
|
3976
|
-
// src/generated/UiEditorTableToolbar.ts
|
|
3977
|
-
import { defineComponent as _defineComponent45 } from "vue";
|
|
3978
|
-
import { mergeProps as _mergeProps45, openBlock as _openBlock45, createElementBlock as _createElementBlock45 } from "vue";
|
|
3979
|
-
import { getCurrentInstance as getCurrentInstance45, onMounted as onMounted45, onUnmounted as onUnmounted45, ref as ref45, watchEffect as watchEffect46 } from "vue";
|
|
3980
|
-
import { attachLoomaComponent as attachLoomaComponent38, updateComponentProps as updateComponentProps38 } from "@threadlabs/looma/core/declarative";
|
|
3981
|
-
var UiEditorTableToolbar_default = /* @__PURE__ */ _defineComponent45({
|
|
3982
|
-
...{ inheritAttrs: false },
|
|
3983
|
-
__name: "UiEditorTableToolbar",
|
|
3984
|
-
props: {
|
|
3985
|
-
actions: { type: [Array, null], required: false },
|
|
3986
|
-
cellAlignment: { type: [String, null], required: false, default: "left" },
|
|
3987
|
-
cellBackground: { type: [String, null], required: false, default: "" },
|
|
3988
|
-
open: { type: [Boolean, null], required: false, default: false }
|
|
3989
|
-
},
|
|
3990
|
-
emits: ["action"],
|
|
3991
|
-
setup(__props, { emit: __emit }) {
|
|
3992
|
-
const props = __props;
|
|
3993
|
-
const emit = __emit;
|
|
3994
|
-
const instance = getCurrentInstance45();
|
|
3995
|
-
const passed = (name, attribute) => {
|
|
3996
|
-
const raw = instance?.vnode.props ?? {};
|
|
3997
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
3998
|
-
};
|
|
3999
|
-
const explicitProps = () => {
|
|
4000
|
-
const valueactions = props.actions;
|
|
4001
|
-
const valuecellAlignment = props.cellAlignment;
|
|
4002
|
-
const valuecellBackground = props.cellBackground;
|
|
4003
|
-
const valueopen = props.open;
|
|
4004
|
-
return { "actions": passed("actions", "actions") ? valueactions : void 0, "cellAlignment": passed("cellAlignment", "cell-alignment") ? valuecellAlignment : void 0, "cellBackground": passed("cellBackground", "cell-background") ? valuecellBackground : void 0, "open": passed("open", "open") ? valueopen : void 0 };
|
|
4005
|
-
};
|
|
4006
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-table-toolbar", "props": { "actions": { "type": { "kind": "list", "item": { "kind": "union", "members": [{ "kind": "keyword", "value": "align-left" }, { "kind": "keyword", "value": "align-center" }, { "kind": "keyword", "value": "align-right" }, { "kind": "keyword", "value": "background-none" }, { "kind": "keyword", "value": "background-gray" }, { "kind": "keyword", "value": "background-yellow" }, { "kind": "keyword", "value": "background-blue" }, { "kind": "keyword", "value": "background-green" }, { "kind": "keyword", "value": "background-red" }, { "kind": "keyword", "value": "add-row-before" }, { "kind": "keyword", "value": "add-row-after" }, { "kind": "keyword", "value": "add-column-before" }, { "kind": "keyword", "value": "add-column-after" }, { "kind": "keyword", "value": "clear-cells" }, { "kind": "keyword", "value": "merge-cells" }, { "kind": "keyword", "value": "split-cell" }, { "kind": "keyword", "value": "delete-row" }, { "kind": "keyword", "value": "delete-column" }, { "kind": "keyword", "value": "delete-table" }] } }, "required": false, "target": { "attribute": "actions" } }, "cellAlignment": { "type": { "enum": ["left", "center", "right"] }, "required": false, "target": { "attribute": "cellalignment" }, "default": "left" }, "cellBackground": { "type": "string", "required": false, "target": { "attribute": "cellbackground" }, "default": "" }, "open": { "type": "boolean", "required": false, "target": { "attribute": "open" }, "default": false } } }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [] }, "declarations": [{ "kind": "event", "name": "action", "type": "object({ action: string })", "bubbles": true, "composed": true, "cancelable": false }], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
4007
|
-
const root = ref45();
|
|
4008
|
-
const eventListener0 = (event) => emit("action", event.detail);
|
|
4009
|
-
let detach;
|
|
4010
|
-
onMounted45(() => {
|
|
4011
|
-
if (root.value == null) return;
|
|
4012
|
-
detach = attachLoomaComponent38(root.value, definition, "ui-editor-table-toolbar", explicitProps());
|
|
4013
|
-
root.value.addEventListener("action", eventListener0);
|
|
4014
|
-
});
|
|
4015
|
-
watchEffect46(() => {
|
|
4016
|
-
const next = explicitProps();
|
|
4017
|
-
if (root.value == null) return;
|
|
4018
|
-
updateComponentProps38(root.value, next);
|
|
4019
|
-
});
|
|
4020
|
-
onUnmounted45(() => {
|
|
4021
|
-
root.value?.removeEventListener("action", eventListener0);
|
|
4022
|
-
detach?.();
|
|
4023
|
-
});
|
|
4024
|
-
return (_ctx, _cache) => {
|
|
4025
|
-
return _openBlock45(), _createElementBlock45(
|
|
4026
|
-
"div",
|
|
4027
|
-
_mergeProps45(_ctx.$attrs, {
|
|
4028
|
-
"data-component": "ui-editor-table-toolbar",
|
|
4029
|
-
"data-component-root": "ui-editor-table-toolbar",
|
|
4030
|
-
ref_key: "root",
|
|
4031
|
-
ref: root
|
|
4032
|
-
}),
|
|
4033
|
-
null,
|
|
4034
|
-
16
|
|
4035
|
-
/* FULL_PROPS */
|
|
4036
|
-
);
|
|
4037
|
-
};
|
|
4038
|
-
}
|
|
4039
|
-
});
|
|
4040
|
-
|
|
4041
|
-
// src/generated/UiEditorToolbar.ts
|
|
4042
|
-
import { defineComponent as _defineComponent46 } from "vue";
|
|
4043
|
-
import { renderSlot as _renderSlot37, mergeProps as _mergeProps46, openBlock as _openBlock46, createElementBlock as _createElementBlock46 } from "vue";
|
|
4044
|
-
import { getCurrentInstance as getCurrentInstance46, onMounted as onMounted46, onUnmounted as onUnmounted46, ref as ref46, watchEffect as watchEffect47 } from "vue";
|
|
4045
|
-
import { attachLoomaComponent as attachLoomaComponent39, updateComponentProps as updateComponentProps39 } from "@threadlabs/looma/core/declarative";
|
|
4046
|
-
var UiEditorToolbar_default = /* @__PURE__ */ _defineComponent46({
|
|
4047
|
-
...{ inheritAttrs: false },
|
|
4048
|
-
__name: "UiEditorToolbar",
|
|
4049
|
-
setup(__props) {
|
|
4050
|
-
const props = __props;
|
|
4051
|
-
const instance = getCurrentInstance46();
|
|
4052
|
-
const passed = (name, attribute) => {
|
|
4053
|
-
const raw = instance?.vnode.props ?? {};
|
|
4054
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, attribute);
|
|
4055
|
-
};
|
|
4056
|
-
const explicitProps = () => {
|
|
4057
|
-
return {};
|
|
4058
|
-
};
|
|
4059
|
-
const definition = { ...{ "contract": { "tag": "ui-editor-toolbar", "props": {} }, "template": { "kind": "element", "name": "div", "attributes": [], "children": [{ "kind": "slot" }] }, "declarations": [], "root": { "kind": "native", "element": "div", "choices": ["div"] } }, source: { file: import.meta.url }, css: "" };
|
|
4060
|
-
const root = ref46();
|
|
4061
|
-
let detach;
|
|
4062
|
-
onMounted46(() => {
|
|
4063
|
-
if (root.value == null) return;
|
|
4064
|
-
detach = attachLoomaComponent39(root.value, definition, "ui-editor-toolbar", explicitProps());
|
|
4065
|
-
});
|
|
4066
|
-
watchEffect47(() => {
|
|
4067
|
-
const next = explicitProps();
|
|
4068
|
-
if (root.value == null) return;
|
|
4069
|
-
updateComponentProps39(root.value, next);
|
|
4070
|
-
});
|
|
4071
|
-
onUnmounted46(() => {
|
|
4072
|
-
detach?.();
|
|
4073
|
-
});
|
|
4074
|
-
return (_ctx, _cache) => {
|
|
4075
|
-
return _openBlock46(), _createElementBlock46(
|
|
4076
|
-
"div",
|
|
4077
|
-
_mergeProps46(_ctx.$attrs, {
|
|
4078
|
-
"data-component": "ui-editor-toolbar",
|
|
4079
|
-
"data-component-root": "ui-editor-toolbar",
|
|
4080
|
-
ref_key: "root",
|
|
4081
|
-
ref: root
|
|
4082
|
-
}),
|
|
4083
|
-
[
|
|
4084
|
-
_renderSlot37(_ctx.$slots, "default")
|
|
4085
|
-
],
|
|
4086
|
-
16
|
|
4087
|
-
/* FULL_PROPS */
|
|
4088
|
-
);
|
|
4089
|
-
};
|
|
4090
|
-
}
|
|
4091
|
-
});
|
|
4092
|
-
|
|
4093
|
-
// src/Combobox.ts
|
|
4094
|
-
import { defineComponent as defineComponent2, getCurrentInstance as getCurrentInstance47, h as h2, shallowRef as shallowRef2, watch } from "vue";
|
|
4095
|
-
var itemShape = (item) => ({
|
|
4096
|
-
id: item.id,
|
|
4097
|
-
value: item.value,
|
|
4098
|
-
label: item.label,
|
|
4099
|
-
...item.group === void 0 ? {} : { group: item.group },
|
|
4100
|
-
...item.disabled === void 0 ? {} : { disabled: item.disabled }
|
|
4101
|
-
});
|
|
4102
|
-
function optionElements(options) {
|
|
4103
|
-
const option = (entry) => h2("option", { value: entry.value, disabled: entry.disabled, key: entry.value }, entry.label ?? entry.value);
|
|
4104
|
-
const groups = /* @__PURE__ */ new Map();
|
|
4105
|
-
const nodes = [];
|
|
4106
|
-
for (const entry of options) {
|
|
4107
|
-
if (entry.group === void 0) nodes.push(option(entry));
|
|
4108
|
-
else {
|
|
4109
|
-
if (!groups.has(entry.group)) {
|
|
4110
|
-
groups.set(entry.group, []);
|
|
4111
|
-
nodes.push(h2("optgroup", { label: entry.group, key: `group-${entry.group}` }, () => groups.get(entry.group).map(option)));
|
|
4112
|
-
}
|
|
4113
|
-
groups.get(entry.group).push(entry);
|
|
4114
|
-
}
|
|
4115
|
-
}
|
|
4116
|
-
return nodes;
|
|
4117
|
-
}
|
|
4118
|
-
var Combobox = defineComponent2({
|
|
4119
|
-
name: "Combobox",
|
|
4120
|
-
inheritAttrs: false,
|
|
4121
|
-
props: {
|
|
4122
|
-
label: { type: String, required: true },
|
|
4123
|
-
modelValue: { type: [String, Array, null], default: void 0 },
|
|
4124
|
-
query: { type: String, default: void 0 },
|
|
4125
|
-
defaultValue: String,
|
|
4126
|
-
defaultQuery: String,
|
|
4127
|
-
options: { type: Array, default: () => [] },
|
|
4128
|
-
allowFreeText: Boolean,
|
|
4129
|
-
allowCreate: Boolean,
|
|
4130
|
-
placeholder: String,
|
|
4131
|
-
name: String,
|
|
4132
|
-
size: { type: String, default: "md" },
|
|
4133
|
-
labelVisibility: { type: String, default: "visible" },
|
|
4134
|
-
disabled: Boolean,
|
|
4135
|
-
readOnly: Boolean,
|
|
4136
|
-
required: Boolean,
|
|
4137
|
-
disclosure: Boolean,
|
|
4138
|
-
clearable: Boolean,
|
|
4139
|
-
help: String,
|
|
4140
|
-
// Multiple mode: `modelValue` holds the selected item list and chips render before the cursor.
|
|
4141
|
-
multiple: Boolean,
|
|
4142
|
-
tokenSeparators: { type: Array, default: () => [] }
|
|
4143
|
-
},
|
|
4144
|
-
emits: {
|
|
4145
|
-
// Typed for single mode (v-model of `string | null`); multiple mode writes the
|
|
4146
|
-
// item array through the same channel (cast at the emit site below).
|
|
4147
|
-
"update:modelValue": (_value) => true,
|
|
4148
|
-
"update:query": (_query) => true,
|
|
4149
|
-
queryChange: (_detail) => true,
|
|
4150
|
-
valueChange: (_detail) => true,
|
|
4151
|
-
freeEntry: (_detail) => true,
|
|
4152
|
-
createEntry: (_detail) => true,
|
|
4153
|
-
validationChange: (_detail) => true,
|
|
4154
|
-
// Multiple mode item events.
|
|
4155
|
-
addItem: (_detail) => true,
|
|
4156
|
-
removeItem: (_detail) => true,
|
|
4157
|
-
createItem: (_detail) => true,
|
|
4158
|
-
optionsChange: (_detail) => true
|
|
4159
|
-
},
|
|
4160
|
-
slots: Object,
|
|
4161
|
-
setup(props, { attrs, slots, emit, expose }) {
|
|
4162
|
-
const instance = getCurrentInstance47();
|
|
4163
|
-
const kebab = (name) => name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
4164
|
-
const passed = (name) => {
|
|
4165
|
-
const raw = instance?.vnode.props ?? {};
|
|
4166
|
-
return Object.hasOwn(raw, name) || Object.hasOwn(raw, kebab(name));
|
|
4167
|
-
};
|
|
4168
|
-
const element = shallowRef2();
|
|
4169
|
-
const rows = shallowRef2([]);
|
|
4170
|
-
const currentQuery = shallowRef2(props.query ?? props.defaultQuery ?? "");
|
|
4171
|
-
watch(() => props.query, (query) => {
|
|
4172
|
-
if (query !== void 0) currentQuery.value = query;
|
|
4173
|
-
});
|
|
4174
|
-
expose({ validate: () => element.value.validate() });
|
|
4175
|
-
const items = () => props.multiple && Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
4176
|
-
return () => h2(UiCombobox_default, {
|
|
4177
|
-
...attrs,
|
|
4178
|
-
...Object.fromEntries(Object.entries(props).filter(([key]) => !["modelValue", "options", "query", "tokenSeparators"].includes(key) && passed(key))),
|
|
4179
|
-
// Single mode binds the selected value; multiple mode binds the item list as `items`.
|
|
4180
|
-
...props.multiple ? { items: Array.isArray(props.modelValue) ? props.modelValue.map(itemShape) : void 0 } : { value: props.modelValue },
|
|
4181
|
-
query: props.query,
|
|
4182
|
-
tokenSeparators: props.tokenSeparators.length ? [...props.tokenSeparators] : void 0,
|
|
4183
|
-
"data-allow-mismatch": "class",
|
|
4184
|
-
ref: (value) => {
|
|
4185
|
-
element.value = toHTMLElement(value);
|
|
4186
|
-
},
|
|
4187
|
-
class: attrs.class,
|
|
4188
|
-
onOptionsChange: (detail) => {
|
|
4189
|
-
rows.value = detail;
|
|
4190
|
-
emit("optionsChange", detail);
|
|
4191
|
-
},
|
|
4192
|
-
onQueryChange: (detail) => {
|
|
4193
|
-
currentQuery.value = detail.query;
|
|
4194
|
-
emit("update:query", detail.query);
|
|
4195
|
-
emit("queryChange", detail);
|
|
4196
|
-
},
|
|
4197
|
-
onValueChange: (detail) => {
|
|
4198
|
-
emit("update:modelValue", props.multiple ? detail : detail.value);
|
|
4199
|
-
emit("valueChange", detail);
|
|
4200
|
-
},
|
|
4201
|
-
onFreeEntry: (detail) => emit("freeEntry", detail),
|
|
4202
|
-
onCreateEntry: (detail) => emit("createEntry", detail),
|
|
4203
|
-
onValidationChange: (detail) => emit("validationChange", detail),
|
|
4204
|
-
onAddItem: (detail) => emit("addItem", detail),
|
|
4205
|
-
onRemoveItem: (detail) => emit("removeItem", detail),
|
|
4206
|
-
onCreateItem: (detail) => emit("createItem", detail)
|
|
4207
|
-
}, {
|
|
4208
|
-
default: () => [
|
|
4209
|
-
// Options are authored children, exactly as in HTML.
|
|
4210
|
-
...optionElements(props.options),
|
|
4211
|
-
h2("label", { slot: "fallback" }, [props.label, h2("input", {
|
|
4212
|
-
value: props.query ?? props.defaultQuery ?? "",
|
|
4213
|
-
disabled: props.disabled,
|
|
4214
|
-
readonly: props.readOnly,
|
|
4215
|
-
required: props.required
|
|
4216
|
-
})]),
|
|
4217
|
-
...slots.option ? rows.value.map((option) => h2("div", { slot: `option-${option.id}`, key: option.id }, slots.option({ option }))) : [],
|
|
4218
|
-
...props.multiple && slots.item ? items().map((item) => h2("span", { slot: `item-${item.id}`, key: item.id }, slots.item({ item }))) : [],
|
|
4219
|
-
...slots.create ? [h2("span", { slot: "create" }, slots.create({ query: currentQuery.value }))] : [],
|
|
4220
|
-
...["start", "footer", "loading", "empty", "error"].flatMap((name) => slots[name] ? [h2("div", { slot: name }, slots[name]({}))] : [])
|
|
4221
|
-
]
|
|
4222
|
-
});
|
|
4223
|
-
}
|
|
4224
|
-
});
|
|
4225
|
-
|
|
4226
|
-
// src/index.ts
|
|
4227
|
-
var Combobox2 = Combobox;
|
|
4228
|
-
var Stack = createAdapterComponent(UiStack_default, "Stack");
|
|
4229
|
-
var Cluster = createAdapterComponent(UiCluster_default, "Cluster");
|
|
4230
|
-
var Grid = createAdapterComponent(UiGrid_default, "Grid");
|
|
4231
|
-
var Container = createAdapterComponent(UiContainer_default, "Container");
|
|
4232
|
-
var Switcher = createAdapterComponent(UiSwitcher_default, "Switcher");
|
|
4233
|
-
var Sidebar = createAdapterComponent(UiSidebar_default, "Sidebar", [], "");
|
|
4234
|
-
var Reel = createAdapterComponent(UiReel_default, "Reel");
|
|
4235
|
-
var Separator = createAdapterComponent(UiSeparator_default, "Separator");
|
|
4236
|
-
var Disclosure = createAdapterComponent(UiDisclosure_default, "Disclosure", [], "class", ["open"]);
|
|
4237
|
-
var Editable = createAdapterComponent(UiEditable_default, "Editable", [["edit-change", "onEditChange"]], "class", ["edit"]);
|
|
4238
|
-
var Tabs = createAdapterComponent(UiTabs_default, "Tabs", [], "class", ["value"]);
|
|
4239
|
-
var Dialog = createAdapterComponent(UiDialog_default, "Dialog", [], "class", ["open"]);
|
|
4240
|
-
var Popover = createAdapterComponent(UiPopover_default, "Popover", [], "class", ["open"]);
|
|
4241
|
-
var Menu = createAdapterComponent(UiMenu_default, "Menu", [], "class", ["open"]);
|
|
4242
|
-
var MenuItem = createAdapterComponent(UiMenuItem_default, "MenuItem");
|
|
4243
|
-
var ContextMenu = createAdapterComponent(UiContextMenu_default, "ContextMenu", [], "class", ["open"]);
|
|
4244
|
-
var AffordanceScope = createAdapterComponent(UiAffordanceScope_default, "AffordanceScope");
|
|
4245
|
-
var Button = createAdapterComponent(UiButton_default, "Button");
|
|
4246
|
-
var IconButton = createAdapterComponent(UiIconButton_default, "IconButton");
|
|
4247
|
-
var Input = createAdapterComponent(UiInput_default, "Input", [], "class", ["value"], "input");
|
|
4248
|
-
var Select = createAdapterComponent(UiSelect_default, "Select", [], "class", ["value"], "change");
|
|
4249
|
-
var Textarea = createAdapterComponent(UiTextarea_default, "Textarea", [], "class", ["value"], "input");
|
|
4250
|
-
var FormField = createAdapterComponent(UiFormField_default, "FormField");
|
|
4251
|
-
var Tooltip = createAdapterComponent(UiTooltip_default, "Tooltip", [], "class", ["open"]);
|
|
4252
|
-
var ToastRegion = createAdapterComponent(UiToastRegion_default, "ToastRegion", [], "class", ["open"]);
|
|
4253
|
-
var Checkbox = createAdapterComponent(UiCheckbox_default, "Checkbox", [], "class", ["checked"]);
|
|
4254
|
-
var Switch = createAdapterComponent(UiSwitch_default, "Switch", [], "class", ["checked"]);
|
|
4255
|
-
var RadioGroup = createAdapterComponent(UiRadioGroup_default, "RadioGroup", [], "class", ["value"]);
|
|
4256
|
-
var Radio = createAdapterComponent(UiRadio_default, "Radio", [], "class", ["checked"]);
|
|
4257
|
-
var Badge = createAdapterComponent(UiBadge_default, "Badge");
|
|
4258
|
-
var Callout = createAdapterComponent(UiCallout_default, "Callout");
|
|
4259
|
-
var Avatar = createAdapterComponent(UiAvatar_default, "Avatar");
|
|
4260
|
-
var AvatarGroup = createAdapterComponent(UiAvatarGroup_default, "AvatarGroup");
|
|
4261
|
-
var SearchShell = createAdapterComponent(UiSearchShell_default, "SearchShell");
|
|
4262
|
-
var SearchResultRow = createAdapterComponent(UiSearchResultRow_default, "SearchResultRow");
|
|
4263
|
-
var TopBar = createAdapterComponent(UiTopBar_default, "TopBar");
|
|
4264
|
-
var Tree = createAdapterComponent(UiTree_default, "Tree", [
|
|
4265
|
-
["reorder", "onReorder"],
|
|
4266
|
-
["reorder-rejected", "onReorderRejected"]
|
|
4267
|
-
]);
|
|
4268
|
-
var TreeItem = createAdapterComponent(
|
|
4269
|
-
UiTreeItem_default,
|
|
4270
|
-
"TreeItem",
|
|
4271
|
-
[["expand", "onExpand"]],
|
|
4272
|
-
"class",
|
|
4273
|
-
["expanded"]
|
|
4274
|
-
);
|
|
4275
|
-
var ADAPTER_COMPONENT_TAG_MAP = {
|
|
4276
|
-
Combobox: "ui-combobox",
|
|
4277
|
-
Stack: "ui-stack",
|
|
4278
|
-
Cluster: "ui-cluster",
|
|
4279
|
-
Grid: "ui-grid",
|
|
4280
|
-
Container: "ui-container",
|
|
4281
|
-
Switcher: "ui-switcher",
|
|
4282
|
-
Sidebar: "ui-sidebar",
|
|
4283
|
-
Reel: "ui-reel",
|
|
4284
|
-
Separator: "ui-separator",
|
|
4285
|
-
Disclosure: "ui-disclosure",
|
|
4286
|
-
Editable: "ui-editable",
|
|
4287
|
-
Tabs: "ui-tabs",
|
|
4288
|
-
Dialog: "ui-dialog",
|
|
4289
|
-
Popover: "ui-popover",
|
|
4290
|
-
Menu: "ui-menu",
|
|
4291
|
-
MenuItem: "ui-menu-item",
|
|
4292
|
-
ContextMenu: "ui-context-menu",
|
|
4293
|
-
AffordanceScope: "ui-affordance-scope",
|
|
4294
|
-
Button: "ui-button",
|
|
4295
|
-
IconButton: "ui-icon-button",
|
|
4296
|
-
Input: "ui-input",
|
|
4297
|
-
Select: "ui-select",
|
|
4298
|
-
Textarea: "ui-textarea",
|
|
4299
|
-
FormField: "ui-form-field",
|
|
4300
|
-
Tooltip: "ui-tooltip",
|
|
4301
|
-
ToastRegion: "ui-toast-region",
|
|
4302
|
-
Checkbox: "ui-checkbox",
|
|
4303
|
-
Switch: "ui-switch",
|
|
4304
|
-
RadioGroup: "ui-radio-group",
|
|
4305
|
-
Radio: "ui-radio",
|
|
4306
|
-
Badge: "ui-badge",
|
|
4307
|
-
Callout: "ui-callout",
|
|
4308
|
-
Avatar: "ui-avatar",
|
|
4309
|
-
AvatarGroup: "ui-avatar-group",
|
|
4310
|
-
SearchShell: "ui-search-shell",
|
|
4311
|
-
SearchResultRow: "ui-search-result-row",
|
|
4312
|
-
TopBar: "ui-top-bar",
|
|
4313
|
-
Tree: "ui-tree",
|
|
4314
|
-
TreeItem: "ui-tree-item"
|
|
4315
|
-
};
|
|
4316
|
-
var VUE_ADAPTER_NOTE = "Native-root adapter: attrs, slots, props, methods, and events project the framework-neutral Looma declarative contract into Vue.";
|
|
4317
|
-
|
|
4318
|
-
export {
|
|
4319
|
-
toHTMLElement,
|
|
4320
|
-
createAdapterComponent,
|
|
4321
|
-
UiEditorInsertTableGrid_default,
|
|
4322
|
-
UiEditorMentionMenu_default,
|
|
4323
|
-
UiEditorSlashMenu_default,
|
|
4324
|
-
UiEditorTableContextMenu_default,
|
|
4325
|
-
UiEditorTableOverlay_default,
|
|
4326
|
-
UiEditorTableToolbar_default,
|
|
4327
|
-
UiEditorToolbar_default,
|
|
4328
|
-
Combobox2 as Combobox,
|
|
4329
|
-
Stack,
|
|
4330
|
-
Cluster,
|
|
4331
|
-
Grid,
|
|
4332
|
-
Container,
|
|
4333
|
-
Switcher,
|
|
4334
|
-
Sidebar,
|
|
4335
|
-
Reel,
|
|
4336
|
-
Separator,
|
|
4337
|
-
Disclosure,
|
|
4338
|
-
Editable,
|
|
4339
|
-
Tabs,
|
|
4340
|
-
Dialog,
|
|
4341
|
-
Popover,
|
|
4342
|
-
Menu,
|
|
4343
|
-
MenuItem,
|
|
4344
|
-
ContextMenu,
|
|
4345
|
-
AffordanceScope,
|
|
4346
|
-
Button,
|
|
4347
|
-
IconButton,
|
|
4348
|
-
Input,
|
|
4349
|
-
Select,
|
|
4350
|
-
Textarea,
|
|
4351
|
-
FormField,
|
|
4352
|
-
Tooltip,
|
|
4353
|
-
ToastRegion,
|
|
4354
|
-
Checkbox,
|
|
4355
|
-
Switch,
|
|
4356
|
-
RadioGroup,
|
|
4357
|
-
Radio,
|
|
4358
|
-
Badge,
|
|
4359
|
-
Callout,
|
|
4360
|
-
Avatar,
|
|
4361
|
-
AvatarGroup,
|
|
4362
|
-
SearchShell,
|
|
4363
|
-
SearchResultRow,
|
|
4364
|
-
TopBar,
|
|
4365
|
-
Tree,
|
|
4366
|
-
TreeItem,
|
|
4367
|
-
ADAPTER_COMPONENT_TAG_MAP,
|
|
4368
|
-
VUE_ADAPTER_NOTE
|
|
4369
|
-
};
|