@abraca/nuxt 2.36.0 → 2.37.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/aware/AMedia.d.vue.ts +1 -1
- package/dist/runtime/components/aware/AMedia.vue.d.ts +1 -1
- 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/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/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/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DocPageMeta } from '../types.js';
|
|
2
|
+
import type { DocIconEntryLike } from './resolveDocIcon.js';
|
|
3
|
+
export interface ResolveDocColorOpts {
|
|
4
|
+
selfId?: string;
|
|
5
|
+
lookup?: (id: string) => DocIconEntryLike | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function resolveDocColor(meta: DocPageMeta | undefined, type: string | undefined, opts?: ResolveDocColorOpts): string | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { resolveDocType } from "./docTypes.js";
|
|
2
|
+
import { getMetaColor } from "./getMetaColor.js";
|
|
3
|
+
export function resolveDocColor(meta, type, opts) {
|
|
4
|
+
const metaColor = getMetaColor(meta);
|
|
5
|
+
if (metaColor) return metaColor;
|
|
6
|
+
if (!meta) return void 0;
|
|
7
|
+
const ownSchema = resolveDocType(type).metaSchema;
|
|
8
|
+
const ownColorField = ownSchema?.find(
|
|
9
|
+
(f) => f.type === "colorPreset" || f.type === "colorPicker"
|
|
10
|
+
);
|
|
11
|
+
if (ownColorField && "key" in ownColorField) {
|
|
12
|
+
const val = meta[ownColorField.key];
|
|
13
|
+
if (typeof val === "string" && val) return val;
|
|
14
|
+
}
|
|
15
|
+
if (opts?.selfId && opts.lookup) {
|
|
16
|
+
let ancestorId = opts.lookup(opts.selfId)?.parentId ?? null;
|
|
17
|
+
while (ancestorId) {
|
|
18
|
+
const ancestorEntry = opts.lookup(ancestorId);
|
|
19
|
+
const ancestorSchema = resolveDocType(ancestorEntry?.type).metaSchema;
|
|
20
|
+
const schemaColorField = ancestorSchema?.find(
|
|
21
|
+
(f) => f.type === "colorPreset" || f.type === "colorPicker"
|
|
22
|
+
);
|
|
23
|
+
if (schemaColorField && "key" in schemaColorField) {
|
|
24
|
+
const val = meta[schemaColorField.key];
|
|
25
|
+
if (typeof val === "string" && val) return val;
|
|
26
|
+
}
|
|
27
|
+
if (ancestorSchema && ancestorSchema.length > 0) break;
|
|
28
|
+
ancestorId = ancestorEntry?.parentId ?? null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return void 0;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DocPageMeta } from '../types.js';
|
|
2
|
+
export interface DocIconEntryLike {
|
|
3
|
+
parentId?: string | null;
|
|
4
|
+
type?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ResolveDocIconOpts {
|
|
7
|
+
selfId?: string;
|
|
8
|
+
lookup?: (id: string) => DocIconEntryLike | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function resolveDocIcon(meta: DocPageMeta | undefined, type: string | undefined, opts?: ResolveDocIconOpts): string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { resolveDocType } from "./docTypes.js";
|
|
2
|
+
export function resolveDocIcon(meta, type, opts) {
|
|
3
|
+
let result;
|
|
4
|
+
if (meta?.geoType === "marker") result = `i-lucide-${meta.icon ?? "map-pin"}`;
|
|
5
|
+
else if (meta?.geoType === "line") result = "i-lucide-route";
|
|
6
|
+
else if (meta?.geoType === "measure") result = "i-lucide-ruler";
|
|
7
|
+
else if (meta?.icon && typeof meta.icon === "string") result = `i-lucide-${meta.icon}`;
|
|
8
|
+
if (!result) {
|
|
9
|
+
const userIconField = meta?._metaFields?.find(
|
|
10
|
+
(f) => f.type === "icon" && f.key
|
|
11
|
+
);
|
|
12
|
+
if (userIconField?.key) {
|
|
13
|
+
const val = meta?.[userIconField.key];
|
|
14
|
+
if (val && typeof val === "string") result = `i-lucide-${val}`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (!result) {
|
|
18
|
+
const ownSchema = resolveDocType(type).metaSchema;
|
|
19
|
+
const ownIconField = ownSchema?.find((f) => f.type === "icon");
|
|
20
|
+
if (ownIconField && "key" in ownIconField) {
|
|
21
|
+
const val = meta?.[ownIconField.key];
|
|
22
|
+
if (val && typeof val === "string") result = `i-lucide-${val}`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (!result && opts?.selfId && opts.lookup) {
|
|
26
|
+
let ancestorId = opts.lookup(opts.selfId)?.parentId ?? null;
|
|
27
|
+
while (ancestorId) {
|
|
28
|
+
const ancestorEntry = opts.lookup(ancestorId);
|
|
29
|
+
const ancestorSchema = resolveDocType(ancestorEntry?.type).metaSchema;
|
|
30
|
+
const schemaIconField = ancestorSchema?.find((f) => f.type === "icon");
|
|
31
|
+
if (schemaIconField && "key" in schemaIconField) {
|
|
32
|
+
const val = meta?.[schemaIconField.key];
|
|
33
|
+
if (val && typeof val === "string") {
|
|
34
|
+
result = `i-lucide-${val}`;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (ancestorSchema && ancestorSchema.length > 0) break;
|
|
39
|
+
ancestorId = ancestorEntry?.parentId ?? null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (!result) result = resolveDocType(type).icon;
|
|
43
|
+
return result.startsWith("i-") ? result : `i-lucide-${result}`;
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* rowEdges — "row" links between cells at the same positional index across
|
|
3
|
+
* sibling columns. For any node with 2+ children where at least 2 of those
|
|
4
|
+
* children also have children, connect the Nth grandchild of adjacent columns.
|
|
5
|
+
* Chain-style: A0→B0→C0 (not fully connected).
|
|
6
|
+
*
|
|
7
|
+
* Ported from cou-sh/app/utils/rowEdges.ts.
|
|
8
|
+
*/
|
|
9
|
+
interface TreeLike {
|
|
10
|
+
childrenOf(parentId: string | null): Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
interface Entry {
|
|
15
|
+
id: string;
|
|
16
|
+
parentId: string | null;
|
|
17
|
+
}
|
|
18
|
+
export declare function computeRowEdges(allEntries: Entry[], tree: TreeLike): Array<{
|
|
19
|
+
source: string;
|
|
20
|
+
target: string;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function computeRowEdges(allEntries, tree) {
|
|
2
|
+
const edges = [];
|
|
3
|
+
const parentIds = /* @__PURE__ */ new Set();
|
|
4
|
+
for (const e of allEntries) parentIds.add(e.parentId);
|
|
5
|
+
const childParents = /* @__PURE__ */ new Set();
|
|
6
|
+
for (const e of allEntries) {
|
|
7
|
+
if (parentIds.has(e.id)) childParents.add(e.id);
|
|
8
|
+
}
|
|
9
|
+
const seen = /* @__PURE__ */ new Set();
|
|
10
|
+
for (const e of allEntries) {
|
|
11
|
+
const pid = e.parentId;
|
|
12
|
+
if (pid === null || seen.has(pid)) continue;
|
|
13
|
+
seen.add(pid);
|
|
14
|
+
const columns = tree.childrenOf(pid);
|
|
15
|
+
if (columns.length < 2) continue;
|
|
16
|
+
const columnsWithKids = columns.filter((c) => childParents.has(c.id));
|
|
17
|
+
if (columnsWithKids.length < 2) continue;
|
|
18
|
+
const columnCells = columns.map((col) => tree.childrenOf(col.id));
|
|
19
|
+
for (let i = 0; i < columns.length - 1; i++) {
|
|
20
|
+
const cellsA = columnCells[i];
|
|
21
|
+
const cellsB = columnCells[i + 1];
|
|
22
|
+
const maxRow = Math.min(cellsA.length, cellsB.length);
|
|
23
|
+
for (let row = 0; row < maxRow; row++) {
|
|
24
|
+
edges.push({ source: cellsA[row].id, target: cellsB[row].id });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return edges;
|
|
29
|
+
}
|