@abraca/nuxt 2.36.0 → 2.38.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/dist/module.d.mts +6 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/ADocPickModal.vue +1 -1
- package/dist/runtime/components/ADocSubPageList.d.vue.ts +46 -0
- package/dist/runtime/components/ADocSubPageList.vue +1006 -0
- package/dist/runtime/components/ADocSubPageList.vue.d.ts +46 -0
- package/dist/runtime/components/ADocumentTree.vue +3 -2
- package/dist/runtime/components/AEditor.d.vue.ts +9 -0
- package/dist/runtime/components/AEditor.vue +14 -2
- package/dist/runtime/components/AEditor.vue.d.ts +9 -0
- package/dist/runtime/components/AIconPicker.vue +27 -180
- package/dist/runtime/components/ANodePanel.d.vue.ts +8 -5
- package/dist/runtime/components/ANodePanel.vue +1 -1
- package/dist/runtime/components/ANodePanel.vue.d.ts +8 -5
- package/dist/runtime/components/AWindowLayer.vue +4 -2
- package/dist/runtime/components/docs/ADocsSearch.d.vue.ts +2 -2
- package/dist/runtime/components/docs/ADocsSearch.vue.d.ts +2 -2
- package/dist/runtime/components/editor/ADocSuggestMenu.vue +1 -1
- package/dist/runtime/components/editor/ALocationPickerPopover.vue +31 -16
- package/dist/runtime/components/renderers/ACalendarRenderer.d.vue.ts +1 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.vue +309 -68
- package/dist/runtime/components/renderers/ACalendarRenderer.vue.d.ts +1 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue +259 -40
- package/dist/runtime/components/renderers/ADashboardRenderer.vue +493 -89
- package/dist/runtime/components/renderers/AGraphRenderer.d.vue.ts +2 -0
- package/dist/runtime/components/renderers/AGraphRenderer.vue +2113 -576
- package/dist/runtime/components/renderers/AGraphRenderer.vue.d.ts +2 -0
- package/dist/runtime/components/renderers/AKanbanRenderer.vue +460 -86
- package/dist/runtime/components/renderers/AMapRenderer.d.vue.ts +7 -1
- package/dist/runtime/components/renderers/AMapRenderer.vue +999 -166
- package/dist/runtime/components/renderers/AMapRenderer.vue.d.ts +7 -1
- package/dist/runtime/components/renderers/AOutlineRenderer.d.vue.ts +2 -0
- package/dist/runtime/components/renderers/AOutlineRenderer.vue +285 -81
- package/dist/runtime/components/renderers/AOutlineRenderer.vue.d.ts +2 -0
- package/dist/runtime/components/renderers/AOverviewRenderer.vue +3 -2
- package/dist/runtime/components/renderers/ASheetsRenderer.client.vue +255 -87
- package/dist/runtime/components/renderers/ATimelineRenderer.d.vue.ts +1 -0
- package/dist/runtime/components/renderers/ATimelineRenderer.vue +224 -31
- package/dist/runtime/components/renderers/ATimelineRenderer.vue.d.ts +1 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue +12 -1
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue +15 -3
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.d.vue.ts +14 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.vue +6 -1
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.vue.d.ts +14 -0
- package/dist/runtime/components/renderers/sheets/ASheetsGrid.d.vue.ts +6 -6
- package/dist/runtime/components/renderers/sheets/ASheetsGrid.vue +25 -7
- package/dist/runtime/components/renderers/sheets/ASheetsGrid.vue.d.ts +6 -6
- package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.d.vue.ts +2 -2
- package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.vue.d.ts +2 -2
- package/dist/runtime/components/renderers/sheets/ASheetsToolbar.d.vue.ts +6 -0
- package/dist/runtime/components/renderers/sheets/ASheetsToolbar.vue +130 -23
- package/dist/runtime/components/renderers/sheets/ASheetsToolbar.vue.d.ts +6 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.vue +5 -3
- package/dist/runtime/components/renderers/timeline/ATimelineBar.vue +1 -1
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.d.vue.ts +0 -2
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue +16 -14
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue.d.ts +0 -2
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue +4 -2
- package/dist/runtime/composables/useAbracadabraAuth.d.ts +1 -0
- package/dist/runtime/composables/useAbracadabraAuth.js +1 -0
- package/dist/runtime/composables/useCalendarView.js +34 -11
- package/dist/runtime/composables/useConnectionStatus.d.ts +1 -1
- package/dist/runtime/composables/useGraphReferenceEdges.d.ts +26 -0
- package/dist/runtime/composables/useGraphReferenceEdges.js +138 -0
- package/dist/runtime/composables/useGraphSim.d.ts +79 -0
- package/dist/runtime/composables/useGraphSim.js +231 -0
- package/dist/runtime/composables/useSheetsDependencyGraph.d.ts +26 -0
- package/dist/runtime/composables/useSheetsDependencyGraph.js +76 -0
- package/dist/runtime/composables/useSheetsFormulas.d.ts +4 -3
- package/dist/runtime/composables/useSheetsFormulas.js +575 -26
- package/dist/runtime/composables/useTimelineView.d.ts +4 -0
- package/dist/runtime/composables/useTimelineView.js +45 -11
- package/dist/runtime/composables/useWindowManager.d.ts +4 -0
- package/dist/runtime/composables/useWindowManager.js +11 -0
- package/dist/runtime/composables/useWorkspace.d.ts +57 -0
- package/dist/runtime/composables/useWorkspace.js +58 -0
- package/dist/runtime/middleware/abracadabra-auth.js +11 -1
- package/dist/runtime/plugin-abracadabra.client.js +121 -12
- package/dist/runtime/utils/dateField.d.ts +17 -0
- package/dist/runtime/utils/dateField.js +19 -0
- package/dist/runtime/utils/itemLabel.d.ts +27 -0
- package/dist/runtime/utils/itemLabel.js +8 -0
- package/dist/runtime/utils/localDate.d.ts +15 -0
- package/dist/runtime/utils/localDate.js +16 -0
- package/dist/runtime/utils/lucideIcons.d.ts +16 -10
- package/dist/runtime/utils/lucideIcons.js +1391 -69
- package/dist/runtime/utils/resolveDocColor.d.ts +7 -0
- package/dist/runtime/utils/resolveDocColor.js +32 -0
- package/dist/runtime/utils/resolveDocIcon.d.ts +10 -0
- package/dist/runtime/utils/resolveDocIcon.js +44 -0
- package/dist/runtime/utils/rowEdges.d.ts +22 -0
- package/dist/runtime/utils/rowEdges.js +29 -0
- package/dist/runtime/utils/softKeystore.d.ts +55 -0
- package/dist/runtime/utils/softKeystore.js +160 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** All user-visible strings, overridable via the `labels` prop. */
|
|
2
|
+
export interface SubPageListLabels {
|
|
3
|
+
subPages: string;
|
|
4
|
+
addChildPage: string;
|
|
5
|
+
open: string;
|
|
6
|
+
openAsSlideover: string;
|
|
7
|
+
openAsWindow: string;
|
|
8
|
+
rename: string;
|
|
9
|
+
duplicate: string;
|
|
10
|
+
addToFavorites: string;
|
|
11
|
+
removeFromFavorites: string;
|
|
12
|
+
changeType: string;
|
|
13
|
+
moveToTrash: string;
|
|
14
|
+
untitled: string;
|
|
15
|
+
appendTo: string;
|
|
16
|
+
toTarget: string;
|
|
17
|
+
dropToCreateSubPage: string;
|
|
18
|
+
dropInto: string;
|
|
19
|
+
dropToImport: string;
|
|
20
|
+
notConnected: string;
|
|
21
|
+
uploadFailed: string;
|
|
22
|
+
serverRejectedFile: string;
|
|
23
|
+
uploadQueued: string;
|
|
24
|
+
uploadQueuedDesc: string;
|
|
25
|
+
}
|
|
26
|
+
type __VLS_Props = {
|
|
27
|
+
/** Parent document whose direct children are listed. */
|
|
28
|
+
docId: string;
|
|
29
|
+
/** Wider layout when the editor is in expanded/full-width mode. Default: true. */
|
|
30
|
+
expanded?: boolean;
|
|
31
|
+
/** Whether create / rename / reorder / delete are available. Default: true. */
|
|
32
|
+
editable?: boolean;
|
|
33
|
+
/** Per-string label overrides. */
|
|
34
|
+
labels?: Partial<SubPageListLabels>;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
open: (id: string, label: string) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
onOpen?: ((id: string, label: string) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
labels: Partial<SubPageListLabels>;
|
|
42
|
+
editable: boolean;
|
|
43
|
+
expanded: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
@@ -778,6 +778,7 @@ function isCallDoc(item) {
|
|
|
778
778
|
function isInThisCall(item) {
|
|
779
779
|
return isCallDoc(item) && isVoiceConnected.value && voiceRoomId.value === item.id;
|
|
780
780
|
}
|
|
781
|
+
const { floatWindowsAvailable } = useWindowManager();
|
|
781
782
|
function treeNodeMenuItems(item) {
|
|
782
783
|
const multiDeleteSection = multiSelected.value.size > 1 && multiSelected.value.has(item.id) ? [[{
|
|
783
784
|
label: `Move ${multiSelected.value.size} items to Trash`,
|
|
@@ -805,11 +806,11 @@ function treeNodeMenuItems(item) {
|
|
|
805
806
|
icon: "i-lucide-panel-right",
|
|
806
807
|
onSelect: () => openAsOverlay(item.id)
|
|
807
808
|
},
|
|
808
|
-
{
|
|
809
|
+
...floatWindowsAvailable.value ? [{
|
|
809
810
|
label: "Open as window",
|
|
810
811
|
icon: "i-lucide-picture-in-picture-2",
|
|
811
812
|
onSelect: () => openAsFloatingWindow(item.id)
|
|
812
|
-
},
|
|
813
|
+
}] : [],
|
|
813
814
|
{
|
|
814
815
|
label: "Rename",
|
|
815
816
|
icon: "i-lucide-pencil",
|
|
@@ -41,6 +41,14 @@ type __VLS_Props = {
|
|
|
41
41
|
* so root/space docs show nothing. Set false for embeds/previews.
|
|
42
42
|
*/
|
|
43
43
|
showBreadcrumb?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Show the comprehensive sub-page list (<ADocSubPageList>) below the editor
|
|
46
|
+
* body — the child-document browser cou-sh's DocRenderer renders under every
|
|
47
|
+
* document. On by default so full-page docs, prose, and the slideover editor
|
|
48
|
+
* all surface their children. Set false for embeds/previews and inline
|
|
49
|
+
* popup editors (e.g. map marker editing) where a child list is noise.
|
|
50
|
+
*/
|
|
51
|
+
showSubPages?: boolean;
|
|
44
52
|
};
|
|
45
53
|
type __VLS_ModelProps = {
|
|
46
54
|
modelValue?: any;
|
|
@@ -98,6 +106,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
98
106
|
variant: "doc" | "prose";
|
|
99
107
|
showSourceToggle: boolean;
|
|
100
108
|
showBreadcrumb: boolean;
|
|
109
|
+
showSubPages: boolean;
|
|
101
110
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
102
111
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
112
|
declare const _default: typeof __VLS_export;
|
|
@@ -43,7 +43,8 @@ const props = defineProps({
|
|
|
43
43
|
metaSchema: { type: Array, required: false },
|
|
44
44
|
variant: { type: String, required: false, default: "doc" },
|
|
45
45
|
showSourceToggle: { type: Boolean, required: false, default: false },
|
|
46
|
-
showBreadcrumb: { type: Boolean, required: false, default: true }
|
|
46
|
+
showBreadcrumb: { type: Boolean, required: false, default: true },
|
|
47
|
+
showSubPages: { type: Boolean, required: false, default: true }
|
|
47
48
|
});
|
|
48
49
|
const viewMode = ref("rich");
|
|
49
50
|
const emit = defineEmits(["ready", "update", "rename", "updateMeta"]);
|
|
@@ -490,6 +491,7 @@ function onBcDrop(e, ancestorId) {
|
|
|
490
491
|
breadcrumbDragId.value = null;
|
|
491
492
|
docDragBus.endDrag();
|
|
492
493
|
}
|
|
494
|
+
const { floatWindowsAvailable } = useWindowManager();
|
|
493
495
|
async function bcOpenAsWindow(id, label) {
|
|
494
496
|
const wm = useWindowManager();
|
|
495
497
|
if (wm.windows.has(id)) {
|
|
@@ -520,7 +522,7 @@ function bcMenuItems(a) {
|
|
|
520
522
|
registry,
|
|
521
523
|
favorites: { isFavorite, toggleFavorite },
|
|
522
524
|
onOpen: (id) => navigateTo(getDocUrl(id)),
|
|
523
|
-
onOpenInWindow: () => bcOpenAsWindow(a.id, a.label),
|
|
525
|
+
onOpenInWindow: floatWindowsAvailable.value ? () => bcOpenAsWindow(a.id, a.label) : void 0,
|
|
524
526
|
onCopyLink: (id) => {
|
|
525
527
|
if (!import.meta.client || !navigator?.clipboard) return;
|
|
526
528
|
navigator.clipboard.writeText(new URL(getDocUrl(id), location.origin).href).catch(() => {
|
|
@@ -773,6 +775,16 @@ function onPlusClick(e, onClick) {
|
|
|
773
775
|
/>
|
|
774
776
|
</slot>
|
|
775
777
|
</UEditor>
|
|
778
|
+
|
|
779
|
+
<!-- Comprehensive child-document browser, mirroring cou-sh's DocRenderer
|
|
780
|
+
which renders <DocSubPageList> below the editor body. -->
|
|
781
|
+
<ADocSubPageList
|
|
782
|
+
v-if="showSubPages && docId"
|
|
783
|
+
:doc-id="docId"
|
|
784
|
+
:editable="editable"
|
|
785
|
+
:expanded="variant !== 'prose'"
|
|
786
|
+
class="mt-2"
|
|
787
|
+
/>
|
|
776
788
|
</div>
|
|
777
789
|
|
|
778
790
|
<template #fallback>
|
|
@@ -41,6 +41,14 @@ type __VLS_Props = {
|
|
|
41
41
|
* so root/space docs show nothing. Set false for embeds/previews.
|
|
42
42
|
*/
|
|
43
43
|
showBreadcrumb?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Show the comprehensive sub-page list (<ADocSubPageList>) below the editor
|
|
46
|
+
* body — the child-document browser cou-sh's DocRenderer renders under every
|
|
47
|
+
* document. On by default so full-page docs, prose, and the slideover editor
|
|
48
|
+
* all surface their children. Set false for embeds/previews and inline
|
|
49
|
+
* popup editors (e.g. map marker editing) where a child list is noise.
|
|
50
|
+
*/
|
|
51
|
+
showSubPages?: boolean;
|
|
44
52
|
};
|
|
45
53
|
type __VLS_ModelProps = {
|
|
46
54
|
modelValue?: any;
|
|
@@ -98,6 +106,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
98
106
|
variant: "doc" | "prose";
|
|
99
107
|
showSourceToggle: boolean;
|
|
100
108
|
showBreadcrumb: boolean;
|
|
109
|
+
showSubPages: boolean;
|
|
101
110
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
102
111
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
112
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed, ref } from "vue";
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
3
|
import { useAbraLocale } from "#imports";
|
|
4
|
+
import { LUCIDE_ICON_NAMES } from "../utils/lucideIcons";
|
|
4
5
|
const props = defineProps({
|
|
5
6
|
modelValue: { type: String, required: false },
|
|
6
7
|
placeholder: { type: String, required: false },
|
|
@@ -8,187 +9,26 @@ const props = defineProps({
|
|
|
8
9
|
});
|
|
9
10
|
const emit = defineEmits(["update:modelValue"]);
|
|
10
11
|
const locale = computed(() => useAbraLocale("iconPicker", props.labels));
|
|
11
|
-
const
|
|
12
|
-
"file-text",
|
|
13
|
-
"file",
|
|
14
|
-
"folder",
|
|
15
|
-
"folder-open",
|
|
16
|
-
"book",
|
|
17
|
-
"bookmark",
|
|
18
|
-
"star",
|
|
19
|
-
"heart",
|
|
20
|
-
"home",
|
|
21
|
-
"settings",
|
|
22
|
-
"user",
|
|
23
|
-
"users",
|
|
24
|
-
"mail",
|
|
25
|
-
"inbox",
|
|
26
|
-
"send",
|
|
27
|
-
"message-circle",
|
|
28
|
-
"message-square",
|
|
29
|
-
"bell",
|
|
30
|
-
"calendar",
|
|
31
|
-
"calendar-check",
|
|
32
|
-
"calendar-clock",
|
|
33
|
-
"clock",
|
|
34
|
-
"check",
|
|
35
|
-
"check-circle",
|
|
36
|
-
"check-square",
|
|
37
|
-
"circle",
|
|
38
|
-
"square",
|
|
39
|
-
"triangle",
|
|
40
|
-
"x",
|
|
41
|
-
"x-circle",
|
|
42
|
-
"alert-circle",
|
|
43
|
-
"alert-triangle",
|
|
44
|
-
"info",
|
|
45
|
-
"plus",
|
|
46
|
-
"plus-circle",
|
|
47
|
-
"minus",
|
|
48
|
-
"minus-circle",
|
|
49
|
-
"arrow-right",
|
|
50
|
-
"arrow-left",
|
|
51
|
-
"arrow-up",
|
|
52
|
-
"arrow-down",
|
|
53
|
-
"chevron-right",
|
|
54
|
-
"chevron-left",
|
|
55
|
-
"chevron-up",
|
|
56
|
-
"chevron-down",
|
|
57
|
-
"link",
|
|
58
|
-
"link-2",
|
|
59
|
-
"external-link",
|
|
60
|
-
"globe",
|
|
61
|
-
"map-pin",
|
|
62
|
-
"map",
|
|
63
|
-
"phone",
|
|
64
|
-
"phone-call",
|
|
65
|
-
"video",
|
|
66
|
-
"camera",
|
|
67
|
-
"image",
|
|
68
|
-
"images",
|
|
69
|
-
"film",
|
|
70
|
-
"music",
|
|
71
|
-
"play",
|
|
72
|
-
"pause",
|
|
73
|
-
"search",
|
|
74
|
-
"zoom-in",
|
|
75
|
-
"zoom-out",
|
|
76
|
-
"eye",
|
|
77
|
-
"eye-off",
|
|
78
|
-
"edit",
|
|
79
|
-
"edit-2",
|
|
80
|
-
"edit-3",
|
|
81
|
-
"pencil",
|
|
82
|
-
"pen",
|
|
83
|
-
"trash",
|
|
84
|
-
"trash-2",
|
|
85
|
-
"archive",
|
|
86
|
-
"copy",
|
|
87
|
-
"clipboard",
|
|
88
|
-
"download",
|
|
89
|
-
"upload",
|
|
90
|
-
"save",
|
|
91
|
-
"share",
|
|
92
|
-
"share-2",
|
|
93
|
-
"lock",
|
|
94
|
-
"unlock",
|
|
95
|
-
"key",
|
|
96
|
-
"shield",
|
|
97
|
-
"tag",
|
|
98
|
-
"tags",
|
|
99
|
-
"flag",
|
|
100
|
-
"hash",
|
|
101
|
-
"at-sign",
|
|
102
|
-
"code",
|
|
103
|
-
"code-2",
|
|
104
|
-
"terminal",
|
|
105
|
-
"cpu",
|
|
106
|
-
"database",
|
|
107
|
-
"bar-chart",
|
|
108
|
-
"bar-chart-2",
|
|
109
|
-
"pie-chart",
|
|
110
|
-
"line-chart",
|
|
111
|
-
"trending-up",
|
|
112
|
-
"trending-down",
|
|
113
|
-
"layout",
|
|
114
|
-
"layout-dashboard",
|
|
115
|
-
"layout-grid",
|
|
116
|
-
"list",
|
|
117
|
-
"table",
|
|
118
|
-
"columns",
|
|
119
|
-
"rows",
|
|
120
|
-
"grid",
|
|
121
|
-
"sidebar",
|
|
122
|
-
"layers",
|
|
123
|
-
"stack",
|
|
124
|
-
"package",
|
|
125
|
-
"box",
|
|
126
|
-
"cube",
|
|
127
|
-
"truck",
|
|
128
|
-
"shopping-cart",
|
|
129
|
-
"shopping-bag",
|
|
130
|
-
"credit-card",
|
|
131
|
-
"banknote",
|
|
132
|
-
"smile",
|
|
133
|
-
"frown",
|
|
134
|
-
"meh",
|
|
135
|
-
"thumbs-up",
|
|
136
|
-
"thumbs-down",
|
|
137
|
-
"sun",
|
|
138
|
-
"moon",
|
|
139
|
-
"cloud",
|
|
140
|
-
"rain",
|
|
141
|
-
"wind",
|
|
142
|
-
"zap",
|
|
143
|
-
"flame",
|
|
144
|
-
"droplet",
|
|
145
|
-
"leaf",
|
|
146
|
-
"flower",
|
|
147
|
-
"rocket",
|
|
148
|
-
"plane",
|
|
149
|
-
"car",
|
|
150
|
-
"bicycle",
|
|
151
|
-
"anchor",
|
|
152
|
-
"tool",
|
|
153
|
-
"wrench",
|
|
154
|
-
"scissors",
|
|
155
|
-
"paperclip",
|
|
156
|
-
"pin",
|
|
157
|
-
"refresh-cw",
|
|
158
|
-
"refresh-ccw",
|
|
159
|
-
"rotate-cw",
|
|
160
|
-
"rotate-ccw",
|
|
161
|
-
"maximize",
|
|
162
|
-
"minimize",
|
|
163
|
-
"move",
|
|
164
|
-
"crosshair",
|
|
165
|
-
"wifi",
|
|
166
|
-
"bluetooth",
|
|
167
|
-
"battery",
|
|
168
|
-
"power",
|
|
169
|
-
"monitor",
|
|
170
|
-
"smartphone",
|
|
171
|
-
"tablet",
|
|
172
|
-
"laptop",
|
|
173
|
-
"server",
|
|
174
|
-
"hard-drive",
|
|
175
|
-
"git-branch",
|
|
176
|
-
"git-commit",
|
|
177
|
-
"git-merge",
|
|
178
|
-
"github",
|
|
179
|
-
"award",
|
|
180
|
-
"trophy",
|
|
181
|
-
"medal",
|
|
182
|
-
"target",
|
|
183
|
-
"compass"
|
|
184
|
-
];
|
|
12
|
+
const BATCH = 120;
|
|
185
13
|
const open = ref(false);
|
|
186
14
|
const search = ref("");
|
|
15
|
+
const loaded = ref(BATCH);
|
|
187
16
|
const filtered = computed(() => {
|
|
188
17
|
const q = search.value.trim().toLowerCase();
|
|
189
|
-
if (!q) return
|
|
190
|
-
return
|
|
18
|
+
if (!q) return LUCIDE_ICON_NAMES;
|
|
19
|
+
return LUCIDE_ICON_NAMES.filter((n) => n.includes(q));
|
|
191
20
|
});
|
|
21
|
+
const visible = computed(() => filtered.value.slice(0, loaded.value));
|
|
22
|
+
const hasMore = computed(() => loaded.value < filtered.value.length);
|
|
23
|
+
watch(search, () => {
|
|
24
|
+
loaded.value = BATCH;
|
|
25
|
+
});
|
|
26
|
+
function onScroll(e) {
|
|
27
|
+
const el = e.target;
|
|
28
|
+
if (hasMore.value && el.scrollTop + el.clientHeight >= el.scrollHeight - 48) {
|
|
29
|
+
loaded.value += BATCH;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
192
32
|
function select(name) {
|
|
193
33
|
const icon = `i-lucide-${name}`;
|
|
194
34
|
if (props.modelValue === icon) {
|
|
@@ -202,9 +42,13 @@ function clear() {
|
|
|
202
42
|
emit("update:modelValue", void 0);
|
|
203
43
|
open.value = false;
|
|
204
44
|
search.value = "";
|
|
45
|
+
loaded.value = BATCH;
|
|
205
46
|
}
|
|
206
47
|
function onOpen(v) {
|
|
207
|
-
if (!v)
|
|
48
|
+
if (!v) {
|
|
49
|
+
search.value = "";
|
|
50
|
+
loaded.value = BATCH;
|
|
51
|
+
}
|
|
208
52
|
}
|
|
209
53
|
</script>
|
|
210
54
|
|
|
@@ -236,9 +80,12 @@ function onOpen(v) {
|
|
|
236
80
|
icon="i-lucide-search"
|
|
237
81
|
autofocus
|
|
238
82
|
/>
|
|
239
|
-
<div
|
|
83
|
+
<div
|
|
84
|
+
class="grid grid-cols-8 gap-1 max-h-48 overflow-y-auto"
|
|
85
|
+
@scroll="onScroll"
|
|
86
|
+
>
|
|
240
87
|
<button
|
|
241
|
-
v-for="name in
|
|
88
|
+
v-for="name in visible"
|
|
242
89
|
:key="name"
|
|
243
90
|
type="button"
|
|
244
91
|
class="flex items-center justify-center size-7 rounded hover:bg-elevated transition-colors focus:outline-none"
|
|
@@ -9,11 +9,14 @@ type __VLS_Props = {
|
|
|
9
9
|
/** Tab to open initially. Defaults to 'editor'. */
|
|
10
10
|
initialTab?: 'editor' | 'properties' | 'chat' | 'settings' | 'serverSettings' | string;
|
|
11
11
|
/**
|
|
12
|
-
* Built-in tabs to render. Defaults to editor/
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* Built-in tabs to render. Defaults to editor/chat/settings on (the four
|
|
13
|
+
* canonical <ADocViewToggle> slots minus the standalone properties form);
|
|
14
|
+
* pass an array to control exactly which tabs appear. `properties` and
|
|
15
|
+
* `serverSettings` are OPT-IN — only rendered when explicitly included.
|
|
16
|
+
* `properties` is the wide in-panel meta-field form; most apps surface
|
|
17
|
+
* document properties through their own inspector instead, so the doc
|
|
18
|
+
* slideover no longer shows it by default. Plugin-registered tab slots are
|
|
19
|
+
* unaffected.
|
|
17
20
|
*/
|
|
18
21
|
tabs?: Array<'editor' | 'properties' | 'chat' | 'settings' | 'serverSettings'>;
|
|
19
22
|
/**
|
|
@@ -111,7 +111,7 @@ const showChatTab = computed(() => {
|
|
|
111
111
|
return !!_runtimeFeatures.value?.chat;
|
|
112
112
|
});
|
|
113
113
|
const showEditorTab = computed(() => !props.tabs || props.tabs.includes("editor"));
|
|
114
|
-
const showPropertiesTab = computed(() =>
|
|
114
|
+
const showPropertiesTab = computed(() => !!props.tabs && props.tabs.includes("properties"));
|
|
115
115
|
const showSettingsTab = computed(() => !props.tabs || props.tabs.includes("settings"));
|
|
116
116
|
const showServerSettingsTab = computed(() => !!props.tabs && props.tabs.includes("serverSettings"));
|
|
117
117
|
const _chat = useChat();
|
|
@@ -9,11 +9,14 @@ type __VLS_Props = {
|
|
|
9
9
|
/** Tab to open initially. Defaults to 'editor'. */
|
|
10
10
|
initialTab?: 'editor' | 'properties' | 'chat' | 'settings' | 'serverSettings' | string;
|
|
11
11
|
/**
|
|
12
|
-
* Built-in tabs to render. Defaults to editor/
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* Built-in tabs to render. Defaults to editor/chat/settings on (the four
|
|
13
|
+
* canonical <ADocViewToggle> slots minus the standalone properties form);
|
|
14
|
+
* pass an array to control exactly which tabs appear. `properties` and
|
|
15
|
+
* `serverSettings` are OPT-IN — only rendered when explicitly included.
|
|
16
|
+
* `properties` is the wide in-panel meta-field form; most apps surface
|
|
17
|
+
* document properties through their own inspector instead, so the doc
|
|
18
|
+
* slideover no longer shows it by default. Plugin-registered tab slots are
|
|
19
|
+
* unaffected.
|
|
17
20
|
*/
|
|
18
21
|
tabs?: Array<'editor' | 'properties' | 'chat' | 'settings' | 'serverSettings'>;
|
|
19
22
|
/**
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from "vue";
|
|
3
|
-
import { useWindowManager } from "../composables/useWindowManager";
|
|
2
|
+
import { computed, onMounted, onUnmounted } from "vue";
|
|
3
|
+
import { useWindowManager, registerWindowLayer, unregisterWindowLayer } from "../composables/useWindowManager";
|
|
4
4
|
const { windows } = useWindowManager();
|
|
5
5
|
const windowIds = computed(() => [...windows.keys()]);
|
|
6
|
+
onMounted(registerWindowLayer);
|
|
7
|
+
onUnmounted(unregisterWindowLayer);
|
|
6
8
|
</script>
|
|
7
9
|
|
|
8
10
|
<template>
|
|
@@ -235,13 +235,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import
|
|
|
235
235
|
}>, {
|
|
236
236
|
close: boolean | Record<string, any>;
|
|
237
237
|
transition: boolean;
|
|
238
|
+
fullscreen: boolean;
|
|
238
239
|
autofocus: boolean;
|
|
239
240
|
loading: boolean;
|
|
241
|
+
colorMode: boolean;
|
|
240
242
|
shortcut: string;
|
|
241
243
|
dismissible: boolean;
|
|
242
|
-
colorMode: boolean;
|
|
243
244
|
overlay: boolean;
|
|
244
|
-
fullscreen: boolean;
|
|
245
245
|
modal: boolean;
|
|
246
246
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, __VLS_Slots>;
|
|
247
247
|
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
@@ -235,13 +235,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import
|
|
|
235
235
|
}>, {
|
|
236
236
|
close: boolean | Record<string, any>;
|
|
237
237
|
transition: boolean;
|
|
238
|
+
fullscreen: boolean;
|
|
238
239
|
autofocus: boolean;
|
|
239
240
|
loading: boolean;
|
|
241
|
+
colorMode: boolean;
|
|
240
242
|
shortcut: string;
|
|
241
243
|
dismissible: boolean;
|
|
242
|
-
colorMode: boolean;
|
|
243
244
|
overlay: boolean;
|
|
244
|
-
fullscreen: boolean;
|
|
245
245
|
modal: boolean;
|
|
246
246
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, __VLS_Slots>;
|
|
247
247
|
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
@@ -45,7 +45,7 @@ function pick(item) {
|
|
|
45
45
|
:data-active="i === state.index"
|
|
46
46
|
class="w-full min-w-0 flex items-center gap-2 px-2 py-1.5 rounded-(--ui-radius) text-sm text-left text-(--ui-text)"
|
|
47
47
|
:class="i === state.index ? 'bg-(--ui-bg-elevated)' : 'hover:bg-(--ui-bg-elevated)/60'"
|
|
48
|
-
@
|
|
48
|
+
@mousedown.prevent.stop="pick(item)"
|
|
49
49
|
>
|
|
50
50
|
<UIcon
|
|
51
51
|
:name="item.icon"
|
|
@@ -50,18 +50,24 @@ function destroyMap() {
|
|
|
50
50
|
}
|
|
51
51
|
async function initMap() {
|
|
52
52
|
const el = mapContainer.value;
|
|
53
|
-
if (!el
|
|
54
|
-
if (
|
|
55
|
-
if (!
|
|
53
|
+
if (!el) return false;
|
|
54
|
+
if (map) return true;
|
|
55
|
+
if (!await loadMapbox()) return false;
|
|
56
|
+
if (!mapContainer.value || !props.open || map) return !!map;
|
|
56
57
|
const center = hasCoords() ? [props.lngValue, props.latValue] : [0, 20];
|
|
57
58
|
const zoom = hasCoords() ? 10 : 1;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
try {
|
|
60
|
+
map = new mapboxgl.Map({
|
|
61
|
+
container: el,
|
|
62
|
+
style: "mapbox://styles/mapbox/streets-v12",
|
|
63
|
+
center,
|
|
64
|
+
zoom,
|
|
65
|
+
attributionControl: false
|
|
66
|
+
});
|
|
67
|
+
} catch {
|
|
68
|
+
map = null;
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
65
71
|
map.addControl(new mapboxgl.NavigationControl({ showCompass: false }), "bottom-right");
|
|
66
72
|
map.on("load", () => {
|
|
67
73
|
if (hasCoords()) placeMarker(props.lngValue, props.latValue);
|
|
@@ -71,18 +77,26 @@ async function initMap() {
|
|
|
71
77
|
emit("update:lng", e.lngLat.lng);
|
|
72
78
|
emit("update:lat", e.lngLat.lat);
|
|
73
79
|
});
|
|
80
|
+
map.getCanvas().addEventListener("webglcontextlost", onContextLost);
|
|
74
81
|
resizeObserver = new ResizeObserver(() => map?.resize());
|
|
75
82
|
resizeObserver.observe(el);
|
|
83
|
+
return true;
|
|
76
84
|
}
|
|
77
|
-
function
|
|
85
|
+
function onContextLost() {
|
|
86
|
+
destroyMap();
|
|
87
|
+
if (props.open) ensureMap();
|
|
88
|
+
}
|
|
89
|
+
async function ensureMap(attempt = 0) {
|
|
78
90
|
cancelInit();
|
|
79
91
|
const el = mapContainer.value;
|
|
80
|
-
if (!el || !props.open || map) return;
|
|
92
|
+
if (!el || !props.open || map || mapboxError.value) return;
|
|
81
93
|
if (el.clientWidth > 0) {
|
|
82
|
-
initMap();
|
|
94
|
+
if (await initMap()) return;
|
|
95
|
+
if (!props.open || map || mapboxError.value) return;
|
|
96
|
+
initTimer = setTimeout(() => ensureMap(attempt + 1), 250);
|
|
83
97
|
return;
|
|
84
98
|
}
|
|
85
|
-
|
|
99
|
+
initTimer = setTimeout(() => ensureMap(attempt + 1), attempt < 50 ? 20 : 250);
|
|
86
100
|
}
|
|
87
101
|
function placeMarker(lng, lat) {
|
|
88
102
|
if (!map) return;
|
|
@@ -206,12 +220,13 @@ function useMyPosition() {
|
|
|
206
220
|
</div>
|
|
207
221
|
</div>
|
|
208
222
|
|
|
209
|
-
<!-- Map
|
|
223
|
+
<!-- Map — min-height guards against any global `.mapboxgl-map`
|
|
224
|
+
height rule collapsing the box (min-height wins over height). -->
|
|
210
225
|
<div
|
|
211
226
|
v-show="!mapboxError"
|
|
212
227
|
ref="mapContainer"
|
|
213
228
|
class="w-full rounded-md overflow-hidden"
|
|
214
|
-
style="height: 220px;"
|
|
229
|
+
style="height: 220px; min-height: 220px;"
|
|
215
230
|
/>
|
|
216
231
|
<div
|
|
217
232
|
v-if="mapboxError"
|
|
@@ -3,6 +3,7 @@ import type { AbracadabraLocale } from '../../locale.js';
|
|
|
3
3
|
type __VLS_Props = RendererBaseProps & {
|
|
4
4
|
labels?: Partial<AbracadabraLocale['renderers']['calendar']>;
|
|
5
5
|
editable?: boolean;
|
|
6
|
+
followingUser?: string | null;
|
|
6
7
|
weekStartDay?: string;
|
|
7
8
|
showWeekNumbers?: boolean;
|
|
8
9
|
};
|