@abraca/nuxt 0.1.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 +84 -0
- package/dist/module.d.mts +201 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +170 -0
- package/dist/runtime/components/ACollaborationUsers.d.vue.ts +11 -0
- package/dist/runtime/components/ACollaborationUsers.vue +48 -0
- package/dist/runtime/components/ACollaborationUsers.vue.d.ts +11 -0
- package/dist/runtime/components/AColorPicker.d.vue.ts +13 -0
- package/dist/runtime/components/AColorPicker.vue +71 -0
- package/dist/runtime/components/AColorPicker.vue.d.ts +13 -0
- package/dist/runtime/components/ACommandPalette.d.vue.ts +13 -0
- package/dist/runtime/components/ACommandPalette.vue +31 -0
- package/dist/runtime/components/ACommandPalette.vue.d.ts +13 -0
- package/dist/runtime/components/AConnectionStatus.d.vue.ts +13 -0
- package/dist/runtime/components/AConnectionStatus.vue +50 -0
- package/dist/runtime/components/AConnectionStatus.vue.d.ts +13 -0
- package/dist/runtime/components/ADocTypeSelect.d.vue.ts +10 -0
- package/dist/runtime/components/ADocTypeSelect.vue +34 -0
- package/dist/runtime/components/ADocTypeSelect.vue.d.ts +10 -0
- package/dist/runtime/components/ADocumentTree.d.vue.ts +53 -0
- package/dist/runtime/components/ADocumentTree.vue +350 -0
- package/dist/runtime/components/ADocumentTree.vue.d.ts +53 -0
- package/dist/runtime/components/AEditor.d.vue.ts +60 -0
- package/dist/runtime/components/AEditor.vue +174 -0
- package/dist/runtime/components/AEditor.vue.d.ts +60 -0
- package/dist/runtime/components/AFloatingWindow.d.vue.ts +24 -0
- package/dist/runtime/components/AFloatingWindow.vue +232 -0
- package/dist/runtime/components/AFloatingWindow.vue.d.ts +24 -0
- package/dist/runtime/components/AIconPicker.d.vue.ts +13 -0
- package/dist/runtime/components/AIconPicker.vue +257 -0
- package/dist/runtime/components/AIconPicker.vue.d.ts +13 -0
- package/dist/runtime/components/ANodePanel.d.vue.ts +15 -0
- package/dist/runtime/components/ANodePanel.vue +541 -0
- package/dist/runtime/components/ANodePanel.vue.d.ts +15 -0
- package/dist/runtime/components/ANotifications.d.vue.ts +7 -0
- package/dist/runtime/components/ANotifications.vue +75 -0
- package/dist/runtime/components/ANotifications.vue.d.ts +7 -0
- package/dist/runtime/components/APermissionGuard.d.vue.ts +21 -0
- package/dist/runtime/components/APermissionGuard.vue +22 -0
- package/dist/runtime/components/APermissionGuard.vue.d.ts +21 -0
- package/dist/runtime/components/APresence.d.vue.ts +43 -0
- package/dist/runtime/components/APresence.vue +36 -0
- package/dist/runtime/components/APresence.vue.d.ts +43 -0
- package/dist/runtime/components/AProvider.d.vue.ts +27 -0
- package/dist/runtime/components/AProvider.vue +42 -0
- package/dist/runtime/components/AProvider.vue.d.ts +27 -0
- package/dist/runtime/components/ARoleBadge.d.vue.ts +11 -0
- package/dist/runtime/components/ARoleBadge.vue +29 -0
- package/dist/runtime/components/ARoleBadge.vue.d.ts +11 -0
- package/dist/runtime/components/AVoiceBar.d.vue.ts +13 -0
- package/dist/runtime/components/AVoiceBar.vue +379 -0
- package/dist/runtime/components/AVoiceBar.vue.d.ts +13 -0
- package/dist/runtime/components/AVoiceTile.d.vue.ts +10 -0
- package/dist/runtime/components/AVoiceTile.vue +48 -0
- package/dist/runtime/components/AVoiceTile.vue.d.ts +10 -0
- package/dist/runtime/components/AWindowLayer.d.vue.ts +3 -0
- package/dist/runtime/components/AWindowLayer.vue +17 -0
- package/dist/runtime/components/AWindowLayer.vue.d.ts +3 -0
- package/dist/runtime/components/aware/AArea.d.vue.ts +42 -0
- package/dist/runtime/components/aware/AArea.vue +45 -0
- package/dist/runtime/components/aware/AArea.vue.d.ts +42 -0
- package/dist/runtime/components/aware/AAvatar.d.vue.ts +25 -0
- package/dist/runtime/components/aware/AAvatar.vue +86 -0
- package/dist/runtime/components/aware/AAvatar.vue.d.ts +25 -0
- package/dist/runtime/components/aware/AButton.d.vue.ts +7 -0
- package/dist/runtime/components/aware/AButton.vue +39 -0
- package/dist/runtime/components/aware/AButton.vue.d.ts +7 -0
- package/dist/runtime/components/aware/ACursorLabel.d.vue.ts +12 -0
- package/dist/runtime/components/aware/ACursorLabel.vue +44 -0
- package/dist/runtime/components/aware/ACursorLabel.vue.d.ts +12 -0
- package/dist/runtime/components/aware/ADocBadge.d.vue.ts +11 -0
- package/dist/runtime/components/aware/ADocBadge.vue +27 -0
- package/dist/runtime/components/aware/ADocBadge.vue.d.ts +11 -0
- package/dist/runtime/components/aware/AFacepile.d.vue.ts +20 -0
- package/dist/runtime/components/aware/AFacepile.vue +92 -0
- package/dist/runtime/components/aware/AFacepile.vue.d.ts +20 -0
- package/dist/runtime/components/aware/AInput.d.vue.ts +7 -0
- package/dist/runtime/components/aware/AInput.vue +44 -0
- package/dist/runtime/components/aware/AInput.vue.d.ts +7 -0
- package/dist/runtime/components/aware/ASelect.d.vue.ts +7 -0
- package/dist/runtime/components/aware/ASelect.vue +51 -0
- package/dist/runtime/components/aware/ASelect.vue.d.ts +7 -0
- package/dist/runtime/components/aware/ATextarea.d.vue.ts +7 -0
- package/dist/runtime/components/aware/ATextarea.vue +44 -0
- package/dist/runtime/components/aware/ATextarea.vue.d.ts +7 -0
- package/dist/runtime/components/aware/AUserList.d.vue.ts +17 -0
- package/dist/runtime/components/aware/AUserList.vue +72 -0
- package/dist/runtime/components/aware/AUserList.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.vue +154 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/AGalleryRenderer.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/AGalleryRenderer.vue +88 -0
- package/dist/runtime/components/renderers/AGalleryRenderer.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/AKanbanRenderer.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/AKanbanRenderer.vue +179 -0
- package/dist/runtime/components/renderers/AKanbanRenderer.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/AOutlineRenderer.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/AOutlineRenderer.vue +180 -0
- package/dist/runtime/components/renderers/AOutlineRenderer.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/ATableRenderer.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/ATableRenderer.vue +191 -0
- package/dist/runtime/components/renderers/ATableRenderer.vue.d.ts +8 -0
- package/dist/runtime/composables/useAAField.d.ts +42 -0
- package/dist/runtime/composables/useAAField.js +62 -0
- package/dist/runtime/composables/useAbraLocale.d.ts +14 -0
- package/dist/runtime/composables/useAbraLocale.js +11 -0
- package/dist/runtime/composables/useAbracadabra.d.ts +11 -0
- package/dist/runtime/composables/useAbracadabra.js +3 -0
- package/dist/runtime/composables/useAbracadabraAuth.d.ts +23 -0
- package/dist/runtime/composables/useAbracadabraAuth.js +22 -0
- package/dist/runtime/composables/useAwareness.d.ts +22 -0
- package/dist/runtime/composables/useAwareness.js +48 -0
- package/dist/runtime/composables/useAwarenessPeers.d.ts +34 -0
- package/dist/runtime/composables/useAwarenessPeers.js +33 -0
- package/dist/runtime/composables/useBackgroundSync.d.ts +37 -0
- package/dist/runtime/composables/useBackgroundSync.js +73 -0
- package/dist/runtime/composables/useChat.d.ts +65 -0
- package/dist/runtime/composables/useChat.js +210 -0
- package/dist/runtime/composables/useChatUsers.d.ts +21 -0
- package/dist/runtime/composables/useChatUsers.js +39 -0
- package/dist/runtime/composables/useChildTree.d.ts +119 -0
- package/dist/runtime/composables/useChildTree.js +100 -0
- package/dist/runtime/composables/useCommandPalette.d.ts +58 -0
- package/dist/runtime/composables/useCommandPalette.js +94 -0
- package/dist/runtime/composables/useConnectionStatus.d.ts +17 -0
- package/dist/runtime/composables/useConnectionStatus.js +37 -0
- package/dist/runtime/composables/useDashboard.d.ts +3 -0
- package/dist/runtime/composables/useDashboard.js +23 -0
- package/dist/runtime/composables/useDocExport.d.ts +5 -0
- package/dist/runtime/composables/useDocExport.js +256 -0
- package/dist/runtime/composables/useDocImport.d.ts +10 -0
- package/dist/runtime/composables/useDocImport.js +227 -0
- package/dist/runtime/composables/useDocJump.d.ts +29 -0
- package/dist/runtime/composables/useDocJump.js +17 -0
- package/dist/runtime/composables/useDocumentPermissions.d.ts +20 -0
- package/dist/runtime/composables/useDocumentPermissions.js +33 -0
- package/dist/runtime/composables/useEditor.d.ts +45 -0
- package/dist/runtime/composables/useEditor.js +121 -0
- package/dist/runtime/composables/useEditorDragHandle.d.ts +26 -0
- package/dist/runtime/composables/useEditorDragHandle.js +219 -0
- package/dist/runtime/composables/useEditorMentions.d.ts +28 -0
- package/dist/runtime/composables/useEditorMentions.js +40 -0
- package/dist/runtime/composables/useEditorSuggestions.d.ts +18 -0
- package/dist/runtime/composables/useEditorSuggestions.js +45 -0
- package/dist/runtime/composables/useEditorToolbar.d.ts +22 -0
- package/dist/runtime/composables/useEditorToolbar.js +60 -0
- package/dist/runtime/composables/useFileBlobStore.d.ts +15 -0
- package/dist/runtime/composables/useFileBlobStore.js +22 -0
- package/dist/runtime/composables/useFileIndex.d.ts +20 -0
- package/dist/runtime/composables/useFileIndex.js +69 -0
- package/dist/runtime/composables/useFollowUser.d.ts +5 -0
- package/dist/runtime/composables/useFollowUser.js +40 -0
- package/dist/runtime/composables/useNotifications.d.ts +82 -0
- package/dist/runtime/composables/useNotifications.js +171 -0
- package/dist/runtime/composables/useOfflineUploadQueue.d.ts +90 -0
- package/dist/runtime/composables/useOfflineUploadQueue.js +33 -0
- package/dist/runtime/composables/usePasskeyAccounts.d.ts +32 -0
- package/dist/runtime/composables/usePasskeyAccounts.js +46 -0
- package/dist/runtime/composables/usePluginRegistry.d.ts +6 -0
- package/dist/runtime/composables/usePluginRegistry.js +3 -0
- package/dist/runtime/composables/useRendererBase.d.ts +186 -0
- package/dist/runtime/composables/useRendererBase.js +46 -0
- package/dist/runtime/composables/useSearchIndex.d.ts +20 -0
- package/dist/runtime/composables/useSearchIndex.js +104 -0
- package/dist/runtime/composables/useTrash.d.ts +50 -0
- package/dist/runtime/composables/useTrash.js +127 -0
- package/dist/runtime/composables/useVoice.d.ts +51 -0
- package/dist/runtime/composables/useVoice.js +220 -0
- package/dist/runtime/composables/useWindowManager.d.ts +122 -0
- package/dist/runtime/composables/useWindowManager.js +141 -0
- package/dist/runtime/composables/useYDoc.d.ts +142 -0
- package/dist/runtime/composables/useYDoc.js +172 -0
- package/dist/runtime/extensions/accordion.d.ts +3 -0
- package/dist/runtime/extensions/accordion.js +49 -0
- package/dist/runtime/extensions/badge.d.ts +2 -0
- package/dist/runtime/extensions/badge.js +39 -0
- package/dist/runtime/extensions/callout.d.ts +2 -0
- package/dist/runtime/extensions/callout.js +28 -0
- package/dist/runtime/extensions/card.d.ts +3 -0
- package/dist/runtime/extensions/card.js +53 -0
- package/dist/runtime/extensions/code-collapse.d.ts +2 -0
- package/dist/runtime/extensions/code-collapse.js +32 -0
- package/dist/runtime/extensions/code-group.d.ts +2 -0
- package/dist/runtime/extensions/code-group.js +17 -0
- package/dist/runtime/extensions/collapsible.d.ts +2 -0
- package/dist/runtime/extensions/collapsible.js +35 -0
- package/dist/runtime/extensions/document-header.d.ts +11 -0
- package/dist/runtime/extensions/document-header.js +82 -0
- package/dist/runtime/extensions/document-meta.d.ts +20 -0
- package/dist/runtime/extensions/document-meta.js +121 -0
- package/dist/runtime/extensions/document.d.ts +6 -0
- package/dist/runtime/extensions/document.js +6 -0
- package/dist/runtime/extensions/file-block.d.ts +15 -0
- package/dist/runtime/extensions/file-block.js +34 -0
- package/dist/runtime/extensions/file-drop.d.ts +6 -0
- package/dist/runtime/extensions/file-drop.js +65 -0
- package/dist/runtime/extensions/kbd.d.ts +2 -0
- package/dist/runtime/extensions/kbd.js +33 -0
- package/dist/runtime/extensions/prose-icon.d.ts +2 -0
- package/dist/runtime/extensions/prose-icon.js +33 -0
- package/dist/runtime/extensions/search-highlight.d.ts +10 -0
- package/dist/runtime/extensions/search-highlight.js +129 -0
- package/dist/runtime/extensions/steps.d.ts +2 -0
- package/dist/runtime/extensions/steps.js +32 -0
- package/dist/runtime/extensions/tabs.d.ts +3 -0
- package/dist/runtime/extensions/tabs.js +49 -0
- package/dist/runtime/extensions/views/AccordionItemView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/AccordionItemView.vue +41 -0
- package/dist/runtime/extensions/views/AccordionItemView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/AccordionView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/AccordionView.vue +22 -0
- package/dist/runtime/extensions/views/AccordionView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/BadgeView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/BadgeView.vue +23 -0
- package/dist/runtime/extensions/views/BadgeView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CalloutView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CalloutView.vue +43 -0
- package/dist/runtime/extensions/views/CalloutView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CardGroupView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CardGroupView.vue +22 -0
- package/dist/runtime/extensions/views/CardGroupView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CardView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CardView.vue +28 -0
- package/dist/runtime/extensions/views/CardView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CodeCollapseView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CodeCollapseView.vue +45 -0
- package/dist/runtime/extensions/views/CodeCollapseView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CodeGroupView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CodeGroupView.vue +53 -0
- package/dist/runtime/extensions/views/CodeGroupView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CollapsibleView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CollapsibleView.vue +42 -0
- package/dist/runtime/extensions/views/CollapsibleView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FileNodeView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/FileNodeView.vue +140 -0
- package/dist/runtime/extensions/views/FileNodeView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/KbdView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/KbdView.vue +23 -0
- package/dist/runtime/extensions/views/KbdView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/ProseIconView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/ProseIconView.vue +23 -0
- package/dist/runtime/extensions/views/ProseIconView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/StepsView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/StepsView.vue +32 -0
- package/dist/runtime/extensions/views/StepsView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/TabsItemView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/TabsItemView.vue +22 -0
- package/dist/runtime/extensions/views/TabsItemView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/TabsView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/TabsView.vue +56 -0
- package/dist/runtime/extensions/views/TabsView.vue.d.ts +4 -0
- package/dist/runtime/locale.d.ts +134 -0
- package/dist/runtime/locale.js +119 -0
- package/dist/runtime/middleware/abracadabra-auth.d.ts +11 -0
- package/dist/runtime/middleware/abracadabra-auth.js +9 -0
- package/dist/runtime/plugin-abracadabra.client.d.ts +7 -0
- package/dist/runtime/plugin-abracadabra.client.js +898 -0
- package/dist/runtime/plugin-abracadabra.server.d.ts +2 -0
- package/dist/runtime/plugin-abracadabra.server.js +71 -0
- package/dist/runtime/plugin-registry.d.ts +34 -0
- package/dist/runtime/plugin-registry.js +83 -0
- package/dist/runtime/plugin-shared-globals.client.d.ts +2 -0
- package/dist/runtime/plugin-shared-globals.client.js +20 -0
- package/dist/runtime/plugins/core.plugin.d.ts +12 -0
- package/dist/runtime/plugins/core.plugin.js +179 -0
- package/dist/runtime/server/api/_abracadabra/render/[docId].get.d.ts +18 -0
- package/dist/runtime/server/api/_abracadabra/render/[docId].get.js +51 -0
- package/dist/runtime/server/api/_abracadabra/spaces.get.d.ts +11 -0
- package/dist/runtime/server/api/_abracadabra/spaces.get.js +16 -0
- package/dist/runtime/server/plugins/abracadabra-service.d.ts +2 -0
- package/dist/runtime/server/plugins/abracadabra-service.js +116 -0
- package/dist/runtime/server/runners/doc-tree-cache.d.ts +11 -0
- package/dist/runtime/server/runners/doc-tree-cache.js +65 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/docCache.d.ts +25 -0
- package/dist/runtime/server/utils/docCache.js +131 -0
- package/dist/runtime/server/utils/serverRunner.d.ts +28 -0
- package/dist/runtime/server/utils/serverRunner.js +58 -0
- package/dist/runtime/types.d.ts +444 -0
- package/dist/runtime/types.js +93 -0
- package/dist/runtime/utils/VoiceClient.d.ts +94 -0
- package/dist/runtime/utils/VoiceClient.js +599 -0
- package/dist/runtime/utils/avatarStyle.d.ts +15 -0
- package/dist/runtime/utils/avatarStyle.js +20 -0
- package/dist/runtime/utils/colorPalettes.d.ts +13 -0
- package/dist/runtime/utils/colorPalettes.js +49 -0
- package/dist/runtime/utils/docTypes.d.ts +129 -0
- package/dist/runtime/utils/docTypes.js +116 -0
- package/dist/runtime/utils/markdownToYjs.d.ts +23 -0
- package/dist/runtime/utils/markdownToYjs.js +440 -0
- package/dist/runtime/utils/metaFieldDefinitions.d.ts +7 -0
- package/dist/runtime/utils/metaFieldDefinitions.js +182 -0
- package/dist/runtime/utils/voiceErrors.d.ts +33 -0
- package/dist/runtime/utils/voiceErrors.js +54 -0
- package/dist/runtime/utils/yjsConvert.d.ts +14 -0
- package/dist/runtime/utils/yjsConvert.js +331 -0
- package/dist/types.d.mts +13 -0
- package/package.json +100 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
modelValue: { type: String, required: false },
|
|
4
|
+
placeholder: { type: String, required: false },
|
|
5
|
+
labels: { type: Object, required: false }
|
|
6
|
+
});
|
|
7
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
8
|
+
const locale = computed(() => useAbraLocale("iconPicker", props.labels));
|
|
9
|
+
const LUCIDE_ICONS = [
|
|
10
|
+
"file-text",
|
|
11
|
+
"file",
|
|
12
|
+
"folder",
|
|
13
|
+
"folder-open",
|
|
14
|
+
"book",
|
|
15
|
+
"bookmark",
|
|
16
|
+
"star",
|
|
17
|
+
"heart",
|
|
18
|
+
"home",
|
|
19
|
+
"settings",
|
|
20
|
+
"user",
|
|
21
|
+
"users",
|
|
22
|
+
"mail",
|
|
23
|
+
"inbox",
|
|
24
|
+
"send",
|
|
25
|
+
"message-circle",
|
|
26
|
+
"message-square",
|
|
27
|
+
"bell",
|
|
28
|
+
"calendar",
|
|
29
|
+
"calendar-check",
|
|
30
|
+
"calendar-clock",
|
|
31
|
+
"clock",
|
|
32
|
+
"check",
|
|
33
|
+
"check-circle",
|
|
34
|
+
"check-square",
|
|
35
|
+
"circle",
|
|
36
|
+
"square",
|
|
37
|
+
"triangle",
|
|
38
|
+
"x",
|
|
39
|
+
"x-circle",
|
|
40
|
+
"alert-circle",
|
|
41
|
+
"alert-triangle",
|
|
42
|
+
"info",
|
|
43
|
+
"plus",
|
|
44
|
+
"plus-circle",
|
|
45
|
+
"minus",
|
|
46
|
+
"minus-circle",
|
|
47
|
+
"arrow-right",
|
|
48
|
+
"arrow-left",
|
|
49
|
+
"arrow-up",
|
|
50
|
+
"arrow-down",
|
|
51
|
+
"chevron-right",
|
|
52
|
+
"chevron-left",
|
|
53
|
+
"chevron-up",
|
|
54
|
+
"chevron-down",
|
|
55
|
+
"link",
|
|
56
|
+
"link-2",
|
|
57
|
+
"external-link",
|
|
58
|
+
"globe",
|
|
59
|
+
"map-pin",
|
|
60
|
+
"map",
|
|
61
|
+
"phone",
|
|
62
|
+
"phone-call",
|
|
63
|
+
"video",
|
|
64
|
+
"camera",
|
|
65
|
+
"image",
|
|
66
|
+
"images",
|
|
67
|
+
"film",
|
|
68
|
+
"music",
|
|
69
|
+
"play",
|
|
70
|
+
"pause",
|
|
71
|
+
"search",
|
|
72
|
+
"zoom-in",
|
|
73
|
+
"zoom-out",
|
|
74
|
+
"eye",
|
|
75
|
+
"eye-off",
|
|
76
|
+
"edit",
|
|
77
|
+
"edit-2",
|
|
78
|
+
"edit-3",
|
|
79
|
+
"pencil",
|
|
80
|
+
"pen",
|
|
81
|
+
"trash",
|
|
82
|
+
"trash-2",
|
|
83
|
+
"archive",
|
|
84
|
+
"copy",
|
|
85
|
+
"clipboard",
|
|
86
|
+
"download",
|
|
87
|
+
"upload",
|
|
88
|
+
"save",
|
|
89
|
+
"share",
|
|
90
|
+
"share-2",
|
|
91
|
+
"lock",
|
|
92
|
+
"unlock",
|
|
93
|
+
"key",
|
|
94
|
+
"shield",
|
|
95
|
+
"tag",
|
|
96
|
+
"tags",
|
|
97
|
+
"flag",
|
|
98
|
+
"hash",
|
|
99
|
+
"at-sign",
|
|
100
|
+
"code",
|
|
101
|
+
"code-2",
|
|
102
|
+
"terminal",
|
|
103
|
+
"cpu",
|
|
104
|
+
"database",
|
|
105
|
+
"bar-chart",
|
|
106
|
+
"bar-chart-2",
|
|
107
|
+
"pie-chart",
|
|
108
|
+
"line-chart",
|
|
109
|
+
"trending-up",
|
|
110
|
+
"trending-down",
|
|
111
|
+
"layout",
|
|
112
|
+
"layout-dashboard",
|
|
113
|
+
"layout-grid",
|
|
114
|
+
"list",
|
|
115
|
+
"table",
|
|
116
|
+
"columns",
|
|
117
|
+
"rows",
|
|
118
|
+
"grid",
|
|
119
|
+
"sidebar",
|
|
120
|
+
"layers",
|
|
121
|
+
"stack",
|
|
122
|
+
"package",
|
|
123
|
+
"box",
|
|
124
|
+
"cube",
|
|
125
|
+
"truck",
|
|
126
|
+
"shopping-cart",
|
|
127
|
+
"shopping-bag",
|
|
128
|
+
"credit-card",
|
|
129
|
+
"banknote",
|
|
130
|
+
"smile",
|
|
131
|
+
"frown",
|
|
132
|
+
"meh",
|
|
133
|
+
"thumbs-up",
|
|
134
|
+
"thumbs-down",
|
|
135
|
+
"sun",
|
|
136
|
+
"moon",
|
|
137
|
+
"cloud",
|
|
138
|
+
"rain",
|
|
139
|
+
"wind",
|
|
140
|
+
"zap",
|
|
141
|
+
"flame",
|
|
142
|
+
"droplet",
|
|
143
|
+
"leaf",
|
|
144
|
+
"flower",
|
|
145
|
+
"rocket",
|
|
146
|
+
"plane",
|
|
147
|
+
"car",
|
|
148
|
+
"bicycle",
|
|
149
|
+
"anchor",
|
|
150
|
+
"tool",
|
|
151
|
+
"wrench",
|
|
152
|
+
"scissors",
|
|
153
|
+
"paperclip",
|
|
154
|
+
"pin",
|
|
155
|
+
"refresh-cw",
|
|
156
|
+
"refresh-ccw",
|
|
157
|
+
"rotate-cw",
|
|
158
|
+
"rotate-ccw",
|
|
159
|
+
"maximize",
|
|
160
|
+
"minimize",
|
|
161
|
+
"move",
|
|
162
|
+
"crosshair",
|
|
163
|
+
"wifi",
|
|
164
|
+
"bluetooth",
|
|
165
|
+
"battery",
|
|
166
|
+
"power",
|
|
167
|
+
"monitor",
|
|
168
|
+
"smartphone",
|
|
169
|
+
"tablet",
|
|
170
|
+
"laptop",
|
|
171
|
+
"server",
|
|
172
|
+
"hard-drive",
|
|
173
|
+
"git-branch",
|
|
174
|
+
"git-commit",
|
|
175
|
+
"git-merge",
|
|
176
|
+
"github",
|
|
177
|
+
"award",
|
|
178
|
+
"trophy",
|
|
179
|
+
"medal",
|
|
180
|
+
"target",
|
|
181
|
+
"compass"
|
|
182
|
+
];
|
|
183
|
+
const open = ref(false);
|
|
184
|
+
const search = ref("");
|
|
185
|
+
const filtered = computed(() => {
|
|
186
|
+
const q = search.value.trim().toLowerCase();
|
|
187
|
+
if (!q) return LUCIDE_ICONS;
|
|
188
|
+
return LUCIDE_ICONS.filter((n) => n.includes(q));
|
|
189
|
+
});
|
|
190
|
+
function select(name) {
|
|
191
|
+
const icon = `i-lucide-${name}`;
|
|
192
|
+
if (props.modelValue === icon) {
|
|
193
|
+
emit("update:modelValue", void 0);
|
|
194
|
+
} else {
|
|
195
|
+
emit("update:modelValue", icon);
|
|
196
|
+
}
|
|
197
|
+
open.value = false;
|
|
198
|
+
}
|
|
199
|
+
function clear() {
|
|
200
|
+
emit("update:modelValue", void 0);
|
|
201
|
+
open.value = false;
|
|
202
|
+
search.value = "";
|
|
203
|
+
}
|
|
204
|
+
function onOpen(v) {
|
|
205
|
+
if (!v) search.value = "";
|
|
206
|
+
}
|
|
207
|
+
</script>
|
|
208
|
+
|
|
209
|
+
<template>
|
|
210
|
+
<UPopover v-model:open="open" @update:open="onOpen">
|
|
211
|
+
<button
|
|
212
|
+
type="button"
|
|
213
|
+
class="flex items-center gap-2 h-8 px-2 rounded-md border border-default hover:bg-elevated/60 transition-colors"
|
|
214
|
+
>
|
|
215
|
+
<UIcon
|
|
216
|
+
:name="modelValue ?? 'i-lucide-smile'"
|
|
217
|
+
class="size-4 shrink-0"
|
|
218
|
+
:class="modelValue ? 'text-default' : 'text-muted'"
|
|
219
|
+
/>
|
|
220
|
+
<span class="text-xs text-muted truncate">
|
|
221
|
+
{{ modelValue ? modelValue.replace("i-lucide-", "") : placeholder ?? locale.none }}
|
|
222
|
+
</span>
|
|
223
|
+
</button>
|
|
224
|
+
|
|
225
|
+
<template #content>
|
|
226
|
+
<div class="p-2 w-64 flex flex-col gap-2">
|
|
227
|
+
<UInput
|
|
228
|
+
v-model="search"
|
|
229
|
+
:placeholder="locale.search"
|
|
230
|
+
size="xs"
|
|
231
|
+
icon="i-lucide-search"
|
|
232
|
+
autofocus
|
|
233
|
+
/>
|
|
234
|
+
<div class="grid grid-cols-8 gap-1 max-h-48 overflow-y-auto">
|
|
235
|
+
<button
|
|
236
|
+
v-for="name in filtered"
|
|
237
|
+
:key="name"
|
|
238
|
+
type="button"
|
|
239
|
+
class="flex items-center justify-center size-7 rounded hover:bg-elevated transition-colors focus:outline-none"
|
|
240
|
+
:class="modelValue === `i-lucide-${name}` ? 'bg-primary/10 ring-1 ring-primary' : ''"
|
|
241
|
+
:title="name"
|
|
242
|
+
@click="select(name)"
|
|
243
|
+
>
|
|
244
|
+
<UIcon :name="`i-lucide-${name}`" class="size-4" />
|
|
245
|
+
</button>
|
|
246
|
+
</div>
|
|
247
|
+
<button
|
|
248
|
+
type="button"
|
|
249
|
+
class="text-xs text-muted hover:text-default text-left px-1 py-0.5 rounded hover:bg-elevated/60 transition-colors"
|
|
250
|
+
@click="clear"
|
|
251
|
+
>
|
|
252
|
+
{{ locale.none }}
|
|
253
|
+
</button>
|
|
254
|
+
</div>
|
|
255
|
+
</template>
|
|
256
|
+
</UPopover>
|
|
257
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AbracadabraLocale } from '../locale.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
labels?: Partial<AbracadabraLocale['iconPicker']>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AbracadabraLocale } from '../locale.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
nodeId: string | null;
|
|
4
|
+
nodeLabel?: string;
|
|
5
|
+
childProvider?: any;
|
|
6
|
+
docType?: string;
|
|
7
|
+
labels?: Partial<AbracadabraLocale['nodePanel']>;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|