@mulmoclaude/collection-plugin 0.2.2 → 0.3.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/calendarGrid-DZeLwBj9.cjs +778 -0
- package/dist/calendarGrid-DZeLwBj9.cjs.map +1 -0
- package/dist/calendarGrid-ggmFTZju.js +587 -0
- package/dist/calendarGrid-ggmFTZju.js.map +1 -0
- package/dist/chunk-CKQMccvm.cjs +28 -0
- package/dist/core/actionVisible.d.ts +1 -0
- package/dist/core/actionVisible.d.ts.map +1 -0
- package/dist/core/calendarGrid.d.ts +1 -0
- package/dist/core/calendarGrid.d.ts.map +1 -0
- package/dist/core/deriveAll.d.ts +2 -1
- package/dist/core/deriveAll.d.ts.map +1 -0
- package/dist/core/derivedFormula.d.ts +1 -0
- package/dist/core/derivedFormula.d.ts.map +1 -0
- package/dist/core/draft.d.ts +3 -2
- package/dist/core/draft.d.ts.map +1 -0
- package/dist/core/enumColors.d.ts +2 -1
- package/dist/core/enumColors.d.ts.map +1 -0
- package/dist/core/itemLabel.d.ts +2 -1
- package/dist/core/itemLabel.d.ts.map +1 -0
- package/dist/core/presentCollection.d.ts +2 -1
- package/dist/core/presentCollection.d.ts.map +1 -0
- package/dist/core/schema.d.ts +1 -0
- package/dist/core/schema.d.ts.map +1 -0
- package/dist/core/sortItems.d.ts +2 -1
- package/dist/core/sortItems.d.ts.map +1 -0
- package/dist/core/uiTypes.d.ts +29 -1
- package/dist/core/uiTypes.d.ts.map +1 -0
- package/dist/{deriveAll-B5spcUIb.js → deriveAll-BHcs1erT.js} +2 -20
- package/dist/deriveAll-BHcs1erT.js.map +1 -0
- package/dist/{deriveAll-Do0v6Xjb.cjs → deriveAll-BJ0Lvm1Q.cjs} +1 -31
- package/dist/deriveAll-BJ0Lvm1Q.cjs.map +1 -0
- package/dist/index.cjs +37 -619
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -11
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -585
- package/dist/index.js.map +1 -1
- package/dist/schema-DyfSfVzh.js +21 -0
- package/dist/schema-DyfSfVzh.js.map +1 -0
- package/dist/schema-LrmrgW12.cjs +32 -0
- package/dist/schema-LrmrgW12.cjs.map +1 -0
- package/dist/server/atomic.d.ts +1 -0
- package/dist/server/atomic.d.ts.map +1 -0
- package/dist/server/delete.d.ts +2 -1
- package/dist/server/delete.d.ts.map +1 -0
- package/dist/server/derive.d.ts +4 -3
- package/dist/server/derive.d.ts.map +1 -0
- package/dist/server/discoveredCollection.d.ts +2 -1
- package/dist/server/discoveredCollection.d.ts.map +1 -0
- package/dist/server/discovery.d.ts +4 -3
- package/dist/server/discovery.d.ts.map +1 -0
- package/dist/server/host.d.ts +1 -0
- package/dist/server/host.d.ts.map +1 -0
- package/dist/server/index.d.ts +12 -11
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/io.d.ts +3 -2
- package/dist/server/io.d.ts.map +1 -0
- package/dist/server/paths.d.ts +1 -0
- package/dist/server/paths.d.ts.map +1 -0
- package/dist/server/spawn.d.ts +3 -2
- package/dist/server/spawn.d.ts.map +1 -0
- package/dist/server/templatePath.d.ts +1 -0
- package/dist/server/templatePath.d.ts.map +1 -0
- package/dist/server/util.d.ts +1 -0
- package/dist/server/util.d.ts.map +1 -0
- package/dist/server/validate.d.ts +3 -2
- package/dist/server/validate.d.ts.map +1 -0
- package/dist/server/views.d.ts +3 -2
- package/dist/server/views.d.ts.map +1 -0
- package/dist/server.cjs +6 -26
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +2 -1
- package/dist/server.js.map +1 -1
- package/dist/style.css +2121 -0
- package/dist/vue/components/CollectionCalendarView.vue.d.ts +27 -0
- package/dist/vue/components/CollectionCalendarView.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionDayView.vue.d.ts +40 -0
- package/dist/vue/components/CollectionDayView.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionEmbedView.vue.d.ts +9 -0
- package/dist/vue/components/CollectionEmbedView.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionKanbanView.vue.d.ts +23 -0
- package/dist/vue/components/CollectionKanbanView.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionRecordModal.vue.d.ts +18 -0
- package/dist/vue/components/CollectionRecordModal.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionRecordPanel.vue.d.ts +46 -0
- package/dist/vue/components/CollectionRecordPanel.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +10 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/uiContext.d.ts +30 -0
- package/dist/vue/uiContext.d.ts.map +1 -0
- package/dist/vue/useCollectionRendering.d.ts +30 -0
- package/dist/vue/useCollectionRendering.d.ts.map +1 -0
- package/dist/vue.cjs +1624 -0
- package/dist/vue.cjs.map +1 -0
- package/dist/vue.js +1613 -0
- package/dist/vue.js.map +1 -0
- package/package.json +21 -6
- package/dist/deriveAll-B5spcUIb.js.map +0 -1
- package/dist/deriveAll-Do0v6Xjb.cjs.map +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Ymd } from "../../core/calendarGrid";
|
|
2
|
+
import type { CollectionItem, CollectionSchema } from "../../core/schema";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
schema: CollectionSchema;
|
|
5
|
+
items: CollectionItem[];
|
|
6
|
+
/** The `date`/`datetime` field whose value places each record on the grid. */
|
|
7
|
+
anchorField: string;
|
|
8
|
+
/** Optional second `date`/`datetime` field — records span anchor→end inclusive. */
|
|
9
|
+
endField?: string;
|
|
10
|
+
/** Optional free-form time-string field driving the day (time-allocation) view. */
|
|
11
|
+
timeField?: string;
|
|
12
|
+
/** Optional `enum` field tinting each chip by its value's palette colour.
|
|
13
|
+
* Empty / unset → the default indigo styling. */
|
|
14
|
+
colorField?: string;
|
|
15
|
+
/** Primary-key of the currently-open record (highlighted chip). */
|
|
16
|
+
selected?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
select: (id: string | null) => any;
|
|
20
|
+
openDay: (day: Ymd) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onSelect?: ((id: string | null) => any) | undefined;
|
|
23
|
+
onOpenDay?: ((day: Ymd) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
//# sourceMappingURL=CollectionCalendarView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionCalendarView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionCalendarView.vue"],"names":[],"mappings":"AAwPA,OAAO,EAAoE,KAAK,GAAG,EAAkC,MAAM,yBAAyB,CAAC;AAGrJ,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,8EAA8E;IAC9E,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;sDACkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAsaF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type Ymd } from "../../core/calendarGrid";
|
|
2
|
+
import type { CollectionItem, CollectionSchema } from "../../core/schema";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
schema: CollectionSchema;
|
|
5
|
+
items: CollectionItem[];
|
|
6
|
+
day: Ymd;
|
|
7
|
+
anchorField: string;
|
|
8
|
+
endField?: string;
|
|
9
|
+
timeField?: string;
|
|
10
|
+
/** Optional `enum` field tinting each chip by its value's palette colour
|
|
11
|
+
* (matching the month view). Empty / unset → default indigo/slate styling. */
|
|
12
|
+
colorField?: string;
|
|
13
|
+
selected?: string;
|
|
14
|
+
canCreate: boolean;
|
|
15
|
+
/** When true, expand the modal to two columns and render the `#detail`
|
|
16
|
+
* slot (the selected/created record) to the right of the timeline. */
|
|
17
|
+
showDetail?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare var __VLS_1: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
detail?: (props: typeof __VLS_1) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
close: () => any;
|
|
25
|
+
select: (id: string | null) => any;
|
|
26
|
+
createOn: (iso: string) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onClose?: (() => any) | undefined;
|
|
29
|
+
onSelect?: ((id: string | null) => any) | undefined;
|
|
30
|
+
onCreateOn?: ((iso: string) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=CollectionDayView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionDayView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionDayView.vue"],"names":[],"mappings":"AAyTA,OAAO,EAAiE,KAAK,GAAG,EAAiB,MAAM,yBAAyB,CAAC;AAGjI,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,GAAG,EAAE,GAAG,CAAC;IACT,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;mFAC+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB;2EACuE;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAmfF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ9C,QAAA,MAAM,UAAU;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EmbedView } from "../../core/uiTypes";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
view: EmbedView;
|
|
4
|
+
fieldKey: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=CollectionEmbedView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionEmbedView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionEmbedView.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAgRzD,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CollectionNotifySeverity as NotifierSeverity } from "../../core/uiTypes";
|
|
2
|
+
import type { CollectionItem, CollectionSchema } from "../../core/schema";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
schema: CollectionSchema;
|
|
5
|
+
/** The `enum` field whose value groups records into columns. */
|
|
6
|
+
groupField: string;
|
|
7
|
+
items: CollectionItem[];
|
|
8
|
+
/** Primary-key of the currently-open record (highlighted card). */
|
|
9
|
+
selected?: string;
|
|
10
|
+
/** Primary-key → active-notification severity. Cards with a notification get
|
|
11
|
+
* a left accent in the matching bell colour (urgent red / nudge amber). */
|
|
12
|
+
notified?: Map<string, NotifierSeverity>;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
select: (id: string | null) => any;
|
|
16
|
+
move: (id: string, value: string) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onSelect?: ((id: string | null) => any) | undefined;
|
|
19
|
+
onMove?: ((id: string, value: string) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=CollectionKanbanView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionKanbanView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionKanbanView.vue"],"names":[],"mappings":"AA8NA,OAAO,KAAK,EAAE,wBAAwB,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAY1E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,gBAAgB,CAAC;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;gFAC4E;IAC5E,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC1C,CAAC;AA+UF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare var __VLS_7: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_7) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
close: () => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
8
|
+
onClose?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=CollectionRecordModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionRecordModal.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionRecordModal.vue"],"names":[],"mappings":"AA2OA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;iFAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { CollectionRendering } from "../useCollectionRendering";
|
|
2
|
+
import type { CollectionAction, CollectionDetail, CollectionItem } from "../../core/schema";
|
|
3
|
+
import type { EditState } from "../../core/uiTypes";
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
collection: CollectionDetail;
|
|
6
|
+
/** Open record in read-only mode, or null. */
|
|
7
|
+
viewing: CollectionItem | null;
|
|
8
|
+
saving: boolean;
|
|
9
|
+
saveError: string | null;
|
|
10
|
+
actionError: string | null;
|
|
11
|
+
actionPending: boolean;
|
|
12
|
+
visibleActions: CollectionAction[];
|
|
13
|
+
/** Live record computed from the draft (drives derived previews). */
|
|
14
|
+
liveRecord: CollectionItem | null;
|
|
15
|
+
/** Live record with derived fields resolved. */
|
|
16
|
+
liveDerived: CollectionItem | null;
|
|
17
|
+
viewTitle: string;
|
|
18
|
+
isSingleton: boolean;
|
|
19
|
+
/** Shared rendering/derivation helpers + ref/embed caches. */
|
|
20
|
+
render: CollectionRendering;
|
|
21
|
+
locale: string;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_ModelProps = {
|
|
24
|
+
"editing": EditState | null;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
27
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
edit: () => any;
|
|
29
|
+
close: () => any;
|
|
30
|
+
submit: () => any;
|
|
31
|
+
cancel: () => any;
|
|
32
|
+
delete: () => any;
|
|
33
|
+
runAction: (action: CollectionAction) => any;
|
|
34
|
+
"update:editing": (value: EditState | null) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
+
onEdit?: (() => any) | undefined;
|
|
37
|
+
onClose?: (() => any) | undefined;
|
|
38
|
+
onSubmit?: (() => any) | undefined;
|
|
39
|
+
onCancel?: (() => any) | undefined;
|
|
40
|
+
onDelete?: (() => any) | undefined;
|
|
41
|
+
onRunAction?: ((action: CollectionAction) => any) | undefined;
|
|
42
|
+
"onUpdate:editing"?: ((value: EditState | null) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
//# sourceMappingURL=CollectionRecordPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionRecordPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionRecordPanel.vue"],"names":[],"mappings":"AAukBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAoC,MAAM,mBAAmB,CAAC;AAC9H,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AAOnE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,8CAA8C;IAC9C,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,qEAAqE;IACrE,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,gDAAgD;IAChD,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,8DAA8D;IAC9D,MAAM,EAAE,mBAAmB,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA4GF,KAAK,gBAAgB,GAAG;IACxB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAC3B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAmvCxD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../style.css";
|
|
2
|
+
export { configureCollectionUi, collectionUi, type CollectionUi } from "./uiContext";
|
|
3
|
+
export { useCollectionRendering, type CollectionRendering } from "./useCollectionRendering";
|
|
4
|
+
export { default as CollectionRecordModal } from "./components/CollectionRecordModal.vue";
|
|
5
|
+
export { default as CollectionEmbedView } from "./components/CollectionEmbedView.vue";
|
|
6
|
+
export { default as CollectionCalendarView } from "./components/CollectionCalendarView.vue";
|
|
7
|
+
export { default as CollectionDayView } from "./components/CollectionDayView.vue";
|
|
8
|
+
export { default as CollectionKanbanView } from "./components/CollectionKanbanView.vue";
|
|
9
|
+
export { default as CollectionRecordPanel } from "./components/CollectionRecordPanel.vue";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vue/index.ts"],"names":[],"mappings":"AAYA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CollectionDetailResponse } from "../core/uiTypes";
|
|
2
|
+
/** Result of a host data fetch — structurally a subset of the host's own
|
|
3
|
+
* `ApiResult` (so the host can pass `apiGet` straight through). The view layer
|
|
4
|
+
* treats `ok: false` as a skip, never throwing on one failed target. */
|
|
5
|
+
export type CollectionFetchResult<T> = {
|
|
6
|
+
ok: true;
|
|
7
|
+
data: T;
|
|
8
|
+
} | {
|
|
9
|
+
ok: false;
|
|
10
|
+
};
|
|
11
|
+
export interface CollectionUi {
|
|
12
|
+
/** Fetch a collection's detail (schema + records) by slug — backs ref/embed
|
|
13
|
+
* resolution. Replaces the host's `apiGet(API_ROUTES.collections.detail)`. */
|
|
14
|
+
fetchCollectionDetail: (slug: string) => Promise<CollectionFetchResult<CollectionDetailResponse>>;
|
|
15
|
+
/** Browser-loadable URL for a file/image asset value (an html/svg artifact),
|
|
16
|
+
* or null when the value isn't a renderable asset path. Replaces
|
|
17
|
+
* `isValidFilePath` + `htmlPreviewUrlFor`/`svgPreviewUrlFor`. */
|
|
18
|
+
fileAssetUrl: (value: unknown) => string | null;
|
|
19
|
+
/** In-app File-Explorer route for a workspace file path (the fallback for
|
|
20
|
+
* `file` values that aren't a directly-served artifact), or null when the
|
|
21
|
+
* value isn't a valid in-workspace path. */
|
|
22
|
+
fileRoutePath: (value: unknown) => string | null;
|
|
23
|
+
/** Browser `<img src>` for a stored image value (a workspace file path), via
|
|
24
|
+
* the host's raw-file endpoint. Replaces the host's `resolveImageSrc`. */
|
|
25
|
+
imageSrc: (imageData: string) => string;
|
|
26
|
+
}
|
|
27
|
+
/** Wire the collection view layer to a host. Call once at app startup. */
|
|
28
|
+
export declare function configureCollectionUi(capabilities: CollectionUi): void;
|
|
29
|
+
export declare function collectionUi(): CollectionUi;
|
|
30
|
+
//# sourceMappingURL=uiContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uiContext.d.ts","sourceRoot":"","sources":["../../src/vue/uiContext.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE;;yEAEyE;AACzE,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7E,MAAM,WAAW,YAAY;IAC3B;mFAC+E;IAC/E,qBAAqB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAClG;;sEAEkE;IAClE,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,CAAC;IAChD;;iDAE6C;IAC7C,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,CAAC;IACjD;+EAC2E;IAC3E,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CACzC;AAID,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAEtE;AAED,wBAAgB,YAAY,IAAI,YAAY,CAK3C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from "vue";
|
|
2
|
+
import type { CollectionDetail, CollectionItem, CollectionSchema, CollectionFieldSpec as FieldSpec, CollectionFieldType as FieldType } from "../core/schema";
|
|
3
|
+
import type { EmbedCache, EmbedView, RefCache, RefOption, RefRecordCache } from "../core/uiTypes";
|
|
4
|
+
export interface CollectionRendering {
|
|
5
|
+
refCache: Ref<RefCache>;
|
|
6
|
+
refRecordCache: Ref<RefRecordCache>;
|
|
7
|
+
embedCache: Ref<EmbedCache>;
|
|
8
|
+
resetLinkedCaches: () => void;
|
|
9
|
+
loadLinkedCollections: (schema: CollectionSchema, expectedSlug: string) => Promise<void>;
|
|
10
|
+
refDisplay: (targetSlug: string, itemSlug: string) => string;
|
|
11
|
+
refOptions: (targetSlug: string) => RefOption[];
|
|
12
|
+
embedViews: ComputedRef<Record<string, EmbedView>>;
|
|
13
|
+
resolveCurrency: (field: FieldSpec, record: CollectionItem | null | undefined) => string | undefined;
|
|
14
|
+
currencySymbol: (currency: string | undefined) => string;
|
|
15
|
+
formatMoney: (value: unknown, currency: string | undefined, displayLocale: string) => string;
|
|
16
|
+
formatCell: (value: unknown, type: FieldType) => string;
|
|
17
|
+
detailText: (value: unknown) => string;
|
|
18
|
+
isExternalUrl: (value: unknown) => boolean;
|
|
19
|
+
artifactUrl: (value: unknown) => string | null;
|
|
20
|
+
fileRoutePath: (value: unknown) => string | null;
|
|
21
|
+
tableRows: (value: unknown) => Record<string, unknown>[];
|
|
22
|
+
hasTableRows: (value: unknown) => boolean;
|
|
23
|
+
formatSubCell: (subField: FieldSpec, value: unknown, record: CollectionItem | null) => string;
|
|
24
|
+
inputTypeFor: (type: FieldType) => string;
|
|
25
|
+
deriveAll: (schema: CollectionSchema, base: CollectionItem, refRecords: RefRecordCache) => CollectionItem;
|
|
26
|
+
evaluateDerivedAgainstItem: (field: FieldSpec, fieldKey: string, item: CollectionItem) => number | null;
|
|
27
|
+
derivedDisplay: (field: FieldSpec, computedValue: unknown, record: CollectionItem | null) => string;
|
|
28
|
+
}
|
|
29
|
+
export declare function useCollectionRendering(collection: Ref<CollectionDetail | null>, locale: Ref<string>): CollectionRendering;
|
|
30
|
+
//# sourceMappingURL=useCollectionRendering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCollectionRendering.d.ts","sourceRoot":"","sources":["../../src/vue/useCollectionRendering.ts"],"names":[],"mappings":"AASA,OAAO,EAAiB,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAGhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,mBAAmB,IAAI,SAAS,EAAE,m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