@happyvertical/smrt-commerce 0.37.2 → 0.37.3
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/chunks/types-B0DwBRVz.js +104 -0
- package/dist/chunks/types-B0DwBRVz.js.map +1 -0
- package/dist/index.js +4713 -5724
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/playground.js +92 -104
- package/dist/playground.js.map +1 -1
- package/dist/smrt-knowledge.json +11 -11
- package/dist/ui.js +83 -83
- package/dist/ui.js.map +1 -1
- package/package.json +15 -15
package/dist/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"timestamp":
|
|
3
|
+
"timestamp": 1782936230363,
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.37.
|
|
5
|
+
"packageVersion": "0.37.3",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
package/dist/playground.js
CHANGED
|
@@ -1,108 +1,96 @@
|
|
|
1
1
|
import { COMMERCE_MODULE_META } from "./ui.js";
|
|
2
|
-
|
|
2
|
+
//#region src/svelte/playground.ts
|
|
3
|
+
var noop = () => {};
|
|
4
|
+
var sampleInvoice = {
|
|
5
|
+
id: "invoice-2026-0142",
|
|
6
|
+
invoiceNumber: "INV-2026-0142",
|
|
7
|
+
status: "sent",
|
|
8
|
+
issueDate: "2026-03-15T00:00:00.000Z",
|
|
9
|
+
dueDate: "2026-03-29T00:00:00.000Z",
|
|
10
|
+
totalAmount: 128450,
|
|
11
|
+
customerName: "Riverstone Newsroom",
|
|
12
|
+
projectName: "Editorial Systems Retainer"
|
|
3
13
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
category: "Training"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: "unbilled-time-2",
|
|
34
|
-
type: "time",
|
|
35
|
-
description: "Release validation and docs cleanup",
|
|
36
|
-
date: "2026-03-18T00:00:00.000Z",
|
|
37
|
-
amount: 33950,
|
|
38
|
-
category: "QA"
|
|
39
|
-
}
|
|
14
|
+
var sampleUnbilledItems = [
|
|
15
|
+
{
|
|
16
|
+
id: "unbilled-time-1",
|
|
17
|
+
type: "time",
|
|
18
|
+
description: "Governance workflow setup",
|
|
19
|
+
date: "2026-03-12T00:00:00.000Z",
|
|
20
|
+
amount: 42e3,
|
|
21
|
+
category: "Implementation",
|
|
22
|
+
selected: true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "unbilled-expense-1",
|
|
26
|
+
type: "expense",
|
|
27
|
+
description: "Contributor QA workshop",
|
|
28
|
+
date: "2026-03-14T00:00:00.000Z",
|
|
29
|
+
amount: 18500,
|
|
30
|
+
category: "Training"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "unbilled-time-2",
|
|
34
|
+
type: "time",
|
|
35
|
+
description: "Release validation and docs cleanup",
|
|
36
|
+
date: "2026-03-18T00:00:00.000Z",
|
|
37
|
+
amount: 33950,
|
|
38
|
+
category: "QA"
|
|
39
|
+
}
|
|
40
40
|
];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
items: sampleUnbilledItems,
|
|
93
|
-
currency: "CAD",
|
|
94
|
-
onselectionchange: noop,
|
|
95
|
-
oncreate: noop
|
|
96
|
-
},
|
|
97
|
-
modes: {
|
|
98
|
-
mock: {
|
|
99
|
-
label: "Mock"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
};
|
|
105
|
-
export {
|
|
106
|
-
playground as default
|
|
41
|
+
var loadInvoiceActions = () => import("./svelte/components/InvoiceActions.svelte");
|
|
42
|
+
var loadInvoiceCard = () => import("./svelte/components/InvoiceCard.svelte");
|
|
43
|
+
var loadUnbilledItems = () => import("./svelte/components/UnbilledItems.svelte");
|
|
44
|
+
var playground_default = {
|
|
45
|
+
packageName: "@happyvertical/smrt-commerce",
|
|
46
|
+
displayName: COMMERCE_MODULE_META.displayName,
|
|
47
|
+
description: COMMERCE_MODULE_META.description,
|
|
48
|
+
moduleMeta: COMMERCE_MODULE_META,
|
|
49
|
+
entries: [
|
|
50
|
+
{
|
|
51
|
+
id: "invoice-card",
|
|
52
|
+
title: "Invoice Card",
|
|
53
|
+
description: "Compact invoice summary card used in billing and receivables views.",
|
|
54
|
+
loadComponent: loadInvoiceCard,
|
|
55
|
+
order: 1,
|
|
56
|
+
props: {
|
|
57
|
+
invoice: sampleInvoice,
|
|
58
|
+
currency: "CAD",
|
|
59
|
+
onclick: noop
|
|
60
|
+
},
|
|
61
|
+
modes: { mock: { label: "Mock" } }
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "invoice-actions",
|
|
65
|
+
title: "Invoice Actions",
|
|
66
|
+
description: "Status-aware billing actions for sending, printing, exporting, and payment confirmation.",
|
|
67
|
+
loadComponent: loadInvoiceActions,
|
|
68
|
+
order: 2,
|
|
69
|
+
props: {
|
|
70
|
+
status: "sent",
|
|
71
|
+
onmarkpaid: noop,
|
|
72
|
+
onprint: noop,
|
|
73
|
+
onexport: noop
|
|
74
|
+
},
|
|
75
|
+
modes: { mock: { label: "Mock" } }
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "unbilled-items",
|
|
79
|
+
title: "Unbilled Items",
|
|
80
|
+
description: "Selectable unbilled work list for creating a new invoice from accumulated items.",
|
|
81
|
+
loadComponent: loadUnbilledItems,
|
|
82
|
+
order: 3,
|
|
83
|
+
props: {
|
|
84
|
+
items: sampleUnbilledItems,
|
|
85
|
+
currency: "CAD",
|
|
86
|
+
onselectionchange: noop,
|
|
87
|
+
oncreate: noop
|
|
88
|
+
},
|
|
89
|
+
modes: { mock: { label: "Mock" } }
|
|
90
|
+
}
|
|
91
|
+
]
|
|
107
92
|
};
|
|
108
|
-
//#
|
|
93
|
+
//#endregion
|
|
94
|
+
export { playground_default as default };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=playground.js.map
|
package/dist/playground.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.js","sources":["../src/svelte/playground.ts"],"sourcesContent":["import { COMMERCE_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleInvoice = {\n id: 'invoice-2026-0142',\n invoiceNumber: 'INV-2026-0142',\n status: 'sent',\n issueDate: '2026-03-15T00:00:00.000Z',\n dueDate: '2026-03-29T00:00:00.000Z',\n totalAmount: 128450,\n customerName: 'Riverstone Newsroom',\n projectName: 'Editorial Systems Retainer',\n};\n\nconst sampleUnbilledItems = [\n {\n id: 'unbilled-time-1',\n type: 'time',\n description: 'Governance workflow setup',\n date: '2026-03-12T00:00:00.000Z',\n amount: 42000,\n category: 'Implementation',\n selected: true,\n },\n {\n id: 'unbilled-expense-1',\n type: 'expense',\n description: 'Contributor QA workshop',\n date: '2026-03-14T00:00:00.000Z',\n amount: 18500,\n category: 'Training',\n },\n {\n id: 'unbilled-time-2',\n type: 'time',\n description: 'Release validation and docs cleanup',\n date: '2026-03-18T00:00:00.000Z',\n amount: 33950,\n category: 'QA',\n },\n];\n\nconst loadInvoiceActions = () => import('./components/InvoiceActions.svelte');\nconst loadInvoiceCard = () => import('./components/InvoiceCard.svelte');\nconst loadUnbilledItems = () => import('./components/UnbilledItems.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-commerce',\n displayName: COMMERCE_MODULE_META.displayName,\n description: COMMERCE_MODULE_META.description,\n moduleMeta: COMMERCE_MODULE_META,\n entries: [\n {\n id: 'invoice-card',\n title: 'Invoice Card',\n description:\n 'Compact invoice summary card used in billing and receivables views.',\n loadComponent: loadInvoiceCard,\n order: 1,\n props: {\n invoice: sampleInvoice,\n currency: 'CAD',\n onclick: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'invoice-actions',\n title: 'Invoice Actions',\n description:\n 'Status-aware billing actions for sending, printing, exporting, and payment confirmation.',\n loadComponent: loadInvoiceActions,\n order: 2,\n props: {\n status: 'sent',\n onmarkpaid: noop,\n onprint: noop,\n onexport: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'unbilled-items',\n title: 'Unbilled Items',\n description:\n 'Selectable unbilled work list for creating a new invoice from accumulated items.',\n loadComponent: loadUnbilledItems,\n order: 3,\n props: {\n items: sampleUnbilledItems,\n currency: 'CAD',\n onselectionchange: noop,\n oncreate: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"
|
|
1
|
+
{"version":3,"file":"playground.js","names":[],"sources":["../src/svelte/playground.ts"],"sourcesContent":["import { COMMERCE_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleInvoice = {\n id: 'invoice-2026-0142',\n invoiceNumber: 'INV-2026-0142',\n status: 'sent',\n issueDate: '2026-03-15T00:00:00.000Z',\n dueDate: '2026-03-29T00:00:00.000Z',\n totalAmount: 128450,\n customerName: 'Riverstone Newsroom',\n projectName: 'Editorial Systems Retainer',\n};\n\nconst sampleUnbilledItems = [\n {\n id: 'unbilled-time-1',\n type: 'time',\n description: 'Governance workflow setup',\n date: '2026-03-12T00:00:00.000Z',\n amount: 42000,\n category: 'Implementation',\n selected: true,\n },\n {\n id: 'unbilled-expense-1',\n type: 'expense',\n description: 'Contributor QA workshop',\n date: '2026-03-14T00:00:00.000Z',\n amount: 18500,\n category: 'Training',\n },\n {\n id: 'unbilled-time-2',\n type: 'time',\n description: 'Release validation and docs cleanup',\n date: '2026-03-18T00:00:00.000Z',\n amount: 33950,\n category: 'QA',\n },\n];\n\nconst loadInvoiceActions = () => import('./components/InvoiceActions.svelte');\nconst loadInvoiceCard = () => import('./components/InvoiceCard.svelte');\nconst loadUnbilledItems = () => import('./components/UnbilledItems.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-commerce',\n displayName: COMMERCE_MODULE_META.displayName,\n description: COMMERCE_MODULE_META.description,\n moduleMeta: COMMERCE_MODULE_META,\n entries: [\n {\n id: 'invoice-card',\n title: 'Invoice Card',\n description:\n 'Compact invoice summary card used in billing and receivables views.',\n loadComponent: loadInvoiceCard,\n order: 1,\n props: {\n invoice: sampleInvoice,\n currency: 'CAD',\n onclick: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'invoice-actions',\n title: 'Invoice Actions',\n description:\n 'Status-aware billing actions for sending, printing, exporting, and payment confirmation.',\n loadComponent: loadInvoiceActions,\n order: 2,\n props: {\n status: 'sent',\n onmarkpaid: noop,\n onprint: noop,\n onexport: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'unbilled-items',\n title: 'Unbilled Items',\n description:\n 'Selectable unbilled work list for creating a new invoice from accumulated items.',\n loadComponent: loadUnbilledItems,\n order: 3,\n props: {\n items: sampleUnbilledItems,\n currency: 'CAD',\n onselectionchange: noop,\n oncreate: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"mappings":";;AAEA,IAAM,aAAa,CAAC;AAEpB,IAAM,gBAAgB;CACpB,IAAI;CACJ,eAAe;CACf,QAAQ;CACR,WAAW;CACX,SAAS;CACT,aAAa;CACb,cAAc;CACd,aAAa;AACf;AAEA,IAAM,sBAAsB;CAC1B;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,MAAM;EACN,QAAQ;EACR,UAAU;EACV,UAAU;CACZ;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,MAAM;EACN,QAAQ;EACR,UAAU;CACZ;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,MAAM;EACN,QAAQ;EACR,UAAU;CACZ;AACF;AAEA,IAAM,2BAA2B,OAAO;AACxC,IAAM,wBAAwB,OAAO;AACrC,IAAM,0BAA0B,OAAO;AAEvC,IAAA,qBAAe;CACb,aAAa;CACb,aAAa,qBAAqB;CAClC,aAAa,qBAAqB;CAClC,YAAY;CACZ,SAAS;EACP;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,SAAS;IACT,UAAU;IACV,SAAS;GACX;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,UAAU;GACZ;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,OAAO;IACP,UAAU;IACV,mBAAmB;IACnB,UAAU;GACZ;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;CACF;AACF"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-01T20:03:50.924Z",
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.37.
|
|
5
|
+
"packageVersion": "0.37.3",
|
|
6
6
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
7
|
"agentDocPath": "AGENTS.md",
|
|
8
8
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
9
|
+
"manifest": "558b208f1f552a218b153ac857eecbf9e5661b1a3c78302d80cad3fc34c647e5",
|
|
10
|
+
"packageJson": "733460d4f40b72ee2630586a2895a9f5133bba9989429605992c6db77f002be5",
|
|
11
11
|
"agents": "f544ac9cece5c94aaead6013316709fcd044944b993110fc7218c0db7c998a63"
|
|
12
12
|
},
|
|
13
13
|
"exports": [
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"@happyvertical/smrt-types": "workspace:*",
|
|
25
25
|
"@happyvertical/smrt-ui": "workspace:*",
|
|
26
26
|
"@happyvertical/smrt-vitest": "workspace:*",
|
|
27
|
-
"@sveltejs/package": "^2.5.
|
|
28
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
29
|
-
"@types/node": "
|
|
27
|
+
"@sveltejs/package": "^2.5.8",
|
|
28
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
29
|
+
"@types/node": "24.13.2",
|
|
30
30
|
"fast-glob": "^3.3.3",
|
|
31
|
-
"svelte": "^5.
|
|
32
|
-
"svelte-check": "^4.
|
|
31
|
+
"svelte": "^5.56.4",
|
|
32
|
+
"svelte-check": "^4.7.1",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
|
-
"vite": "^
|
|
35
|
-
"vitest": "^4.
|
|
34
|
+
"vite": "^8.1.2",
|
|
35
|
+
"vitest": "^4.1.9"
|
|
36
36
|
},
|
|
37
37
|
"smrtDependencies": [
|
|
38
38
|
"@happyvertical/smrt-core",
|
package/dist/ui.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
//#region src/ui.ts
|
|
2
|
+
var COMMERCE_UI_SLOTS = {
|
|
3
|
+
"invoice-card": {
|
|
4
|
+
id: "invoice-card",
|
|
5
|
+
label: "Invoice Card",
|
|
6
|
+
description: "Compact invoice display with status and amount",
|
|
7
|
+
icon: "file-text",
|
|
8
|
+
category: "display",
|
|
9
|
+
order: 1,
|
|
10
|
+
propsInterface: "InvoiceCardProps"
|
|
11
|
+
},
|
|
12
|
+
"invoice-header": {
|
|
13
|
+
id: "invoice-header",
|
|
14
|
+
label: "Invoice Header",
|
|
15
|
+
description: "Invoice header with customer and date information",
|
|
16
|
+
icon: "file-text",
|
|
17
|
+
category: "display",
|
|
18
|
+
order: 2,
|
|
19
|
+
propsInterface: "InvoiceHeaderProps"
|
|
20
|
+
},
|
|
21
|
+
"invoice-line-items": {
|
|
22
|
+
id: "invoice-line-items",
|
|
23
|
+
label: "Invoice Line Items",
|
|
24
|
+
description: "Table of invoice line items",
|
|
25
|
+
icon: "list",
|
|
26
|
+
category: "list",
|
|
27
|
+
order: 3,
|
|
28
|
+
propsInterface: "InvoiceLineItemsProps"
|
|
29
|
+
},
|
|
30
|
+
"invoice-totals": {
|
|
31
|
+
id: "invoice-totals",
|
|
32
|
+
label: "Invoice Totals",
|
|
33
|
+
description: "Invoice subtotal, tax, and total display",
|
|
34
|
+
icon: "calculator",
|
|
35
|
+
category: "display",
|
|
36
|
+
order: 4,
|
|
37
|
+
propsInterface: "InvoiceTotalsProps"
|
|
38
|
+
},
|
|
39
|
+
"invoice-actions": {
|
|
40
|
+
id: "invoice-actions",
|
|
41
|
+
label: "Invoice Actions",
|
|
42
|
+
description: "Action buttons for invoice operations",
|
|
43
|
+
icon: "more-horizontal",
|
|
44
|
+
category: "action",
|
|
45
|
+
order: 5,
|
|
46
|
+
propsInterface: "InvoiceActionsProps"
|
|
47
|
+
},
|
|
48
|
+
"unbilled-items": {
|
|
49
|
+
id: "unbilled-items",
|
|
50
|
+
label: "Unbilled Items",
|
|
51
|
+
description: "List of items ready for billing",
|
|
52
|
+
icon: "clock",
|
|
53
|
+
category: "list",
|
|
54
|
+
order: 6,
|
|
55
|
+
propsInterface: "UnbilledItemsProps"
|
|
56
|
+
}
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
58
|
+
var COMMERCE_MODULE_META = {
|
|
59
|
+
name: "@happyvertical/smrt-commerce",
|
|
60
|
+
displayName: "Commerce",
|
|
61
|
+
description: "Commerce models: contracts, invoices, payments",
|
|
62
|
+
uiSlots: COMMERCE_UI_SLOTS,
|
|
63
|
+
models: [
|
|
64
|
+
"Customer",
|
|
65
|
+
"Vendor",
|
|
66
|
+
"Contract",
|
|
67
|
+
"ContractLineItem",
|
|
68
|
+
"Fulfillment",
|
|
69
|
+
"FulfillmentLineItem",
|
|
70
|
+
"Payment"
|
|
71
|
+
],
|
|
72
|
+
collections: [
|
|
73
|
+
"CustomerCollection",
|
|
74
|
+
"VendorCollection",
|
|
75
|
+
"ContractCollection",
|
|
76
|
+
"ContractLineItemCollection",
|
|
77
|
+
"FulfillmentCollection",
|
|
78
|
+
"FulfillmentLineItemCollection",
|
|
79
|
+
"PaymentCollection"
|
|
80
|
+
]
|
|
80
81
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
//# sourceMappingURL=ui.js.map
|
|
82
|
+
//#endregion
|
|
83
|
+
export { COMMERCE_MODULE_META, COMMERCE_UI_SLOTS };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=ui.js.map
|
package/dist/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sources":["../src/ui.ts"],"sourcesContent":["/**\n * Commerce Module UI Slot Declarations\n *\n * This file defines the UI extension points for the commerce module.\n * UI components are implemented in the ./svelte subpath.\n *\n * @example Usage\n * ```typescript\n * // In application code\n * import { COMMERCE_MODULE_META } from '@happyvertical/smrt-commerce';\n * console.log(COMMERCE_MODULE_META.uiSlots);\n * ```\n */\n\nimport type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\n/**\n * Commerce module UI slots\n */\nexport const COMMERCE_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'invoice-card': {\n id: 'invoice-card',\n label: 'Invoice Card',\n description: 'Compact invoice display with status and amount',\n icon: 'file-text',\n category: 'display',\n order: 1,\n propsInterface: 'InvoiceCardProps',\n },\n 'invoice-header': {\n id: 'invoice-header',\n label: 'Invoice Header',\n description: 'Invoice header with customer and date information',\n icon: 'file-text',\n category: 'display',\n order: 2,\n propsInterface: 'InvoiceHeaderProps',\n },\n 'invoice-line-items': {\n id: 'invoice-line-items',\n label: 'Invoice Line Items',\n description: 'Table of invoice line items',\n icon: 'list',\n category: 'list',\n order: 3,\n propsInterface: 'InvoiceLineItemsProps',\n },\n 'invoice-totals': {\n id: 'invoice-totals',\n label: 'Invoice Totals',\n description: 'Invoice subtotal, tax, and total display',\n icon: 'calculator',\n category: 'display',\n order: 4,\n propsInterface: 'InvoiceTotalsProps',\n },\n 'invoice-actions': {\n id: 'invoice-actions',\n label: 'Invoice Actions',\n description: 'Action buttons for invoice operations',\n icon: 'more-horizontal',\n category: 'action',\n order: 5,\n propsInterface: 'InvoiceActionsProps',\n },\n 'unbilled-items': {\n id: 'unbilled-items',\n label: 'Unbilled Items',\n description: 'List of items ready for billing',\n icon: 'clock',\n category: 'list',\n order: 6,\n propsInterface: 'UnbilledItemsProps',\n },\n};\n\n/**\n * Commerce module metadata\n */\nexport const COMMERCE_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-commerce',\n displayName: 'Commerce',\n description: 'Commerce models: contracts, invoices, payments',\n uiSlots: COMMERCE_UI_SLOTS,\n models: [\n 'Customer',\n 'Vendor',\n 'Contract',\n 'ContractLineItem',\n 'Fulfillment',\n 'FulfillmentLineItem',\n 'Payment',\n ],\n collections: [\n 'CustomerCollection',\n 'VendorCollection',\n 'ContractCollection',\n 'ContractLineItemCollection',\n 'FulfillmentCollection',\n 'FulfillmentLineItemCollection',\n 'PaymentCollection',\n ],\n};\n"],"
|
|
1
|
+
{"version":3,"file":"ui.js","names":[],"sources":["../src/ui.ts"],"sourcesContent":["/**\n * Commerce Module UI Slot Declarations\n *\n * This file defines the UI extension points for the commerce module.\n * UI components are implemented in the ./svelte subpath.\n *\n * @example Usage\n * ```typescript\n * // In application code\n * import { COMMERCE_MODULE_META } from '@happyvertical/smrt-commerce';\n * console.log(COMMERCE_MODULE_META.uiSlots);\n * ```\n */\n\nimport type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\n/**\n * Commerce module UI slots\n */\nexport const COMMERCE_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'invoice-card': {\n id: 'invoice-card',\n label: 'Invoice Card',\n description: 'Compact invoice display with status and amount',\n icon: 'file-text',\n category: 'display',\n order: 1,\n propsInterface: 'InvoiceCardProps',\n },\n 'invoice-header': {\n id: 'invoice-header',\n label: 'Invoice Header',\n description: 'Invoice header with customer and date information',\n icon: 'file-text',\n category: 'display',\n order: 2,\n propsInterface: 'InvoiceHeaderProps',\n },\n 'invoice-line-items': {\n id: 'invoice-line-items',\n label: 'Invoice Line Items',\n description: 'Table of invoice line items',\n icon: 'list',\n category: 'list',\n order: 3,\n propsInterface: 'InvoiceLineItemsProps',\n },\n 'invoice-totals': {\n id: 'invoice-totals',\n label: 'Invoice Totals',\n description: 'Invoice subtotal, tax, and total display',\n icon: 'calculator',\n category: 'display',\n order: 4,\n propsInterface: 'InvoiceTotalsProps',\n },\n 'invoice-actions': {\n id: 'invoice-actions',\n label: 'Invoice Actions',\n description: 'Action buttons for invoice operations',\n icon: 'more-horizontal',\n category: 'action',\n order: 5,\n propsInterface: 'InvoiceActionsProps',\n },\n 'unbilled-items': {\n id: 'unbilled-items',\n label: 'Unbilled Items',\n description: 'List of items ready for billing',\n icon: 'clock',\n category: 'list',\n order: 6,\n propsInterface: 'UnbilledItemsProps',\n },\n};\n\n/**\n * Commerce module metadata\n */\nexport const COMMERCE_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-commerce',\n displayName: 'Commerce',\n description: 'Commerce models: contracts, invoices, payments',\n uiSlots: COMMERCE_UI_SLOTS,\n models: [\n 'Customer',\n 'Vendor',\n 'Contract',\n 'ContractLineItem',\n 'Fulfillment',\n 'FulfillmentLineItem',\n 'Payment',\n ],\n collections: [\n 'CustomerCollection',\n 'VendorCollection',\n 'ContractCollection',\n 'ContractLineItemCollection',\n 'FulfillmentCollection',\n 'FulfillmentLineItemCollection',\n 'PaymentCollection',\n ],\n};\n"],"mappings":";AAmBO,IAAM,oBAAkD;CAC7D,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,sBAAsB;EACpB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,mBAAmB;EACjB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;AACF;AAKO,IAAM,uBAAuC;CAClD,MAAM;CACN,aAAa;CACb,aAAa;CACb,SAAS;CACT,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-commerce",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.3",
|
|
4
4
|
"description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@happyvertical/smrt-
|
|
53
|
-
"@happyvertical/smrt-
|
|
54
|
-
"@happyvertical/smrt-tenancy": "0.37.
|
|
55
|
-
"@happyvertical/smrt-types": "0.37.
|
|
56
|
-
"@happyvertical/smrt-ui": "0.37.
|
|
52
|
+
"@happyvertical/smrt-ledgers": "0.37.3",
|
|
53
|
+
"@happyvertical/smrt-core": "0.37.3",
|
|
54
|
+
"@happyvertical/smrt-tenancy": "0.37.3",
|
|
55
|
+
"@happyvertical/smrt-types": "0.37.3",
|
|
56
|
+
"@happyvertical/smrt-ui": "0.37.3"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"svelte": "^5.
|
|
59
|
+
"svelte": "^5.56.4"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"svelte": {
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@sveltejs/package": "^2.5.
|
|
68
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
69
|
-
"@types/node": "
|
|
67
|
+
"@sveltejs/package": "^2.5.8",
|
|
68
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
69
|
+
"@types/node": "24.13.2",
|
|
70
70
|
"fast-glob": "^3.3.3",
|
|
71
|
-
"svelte": "^5.
|
|
72
|
-
"svelte-check": "^4.
|
|
71
|
+
"svelte": "^5.56.4",
|
|
72
|
+
"svelte-check": "^4.7.1",
|
|
73
73
|
"typescript": "^5.9.3",
|
|
74
|
-
"vite": "^
|
|
75
|
-
"vitest": "^4.
|
|
76
|
-
"@happyvertical/smrt-vitest": "0.37.
|
|
74
|
+
"vite": "^8.1.2",
|
|
75
|
+
"vitest": "^4.1.9",
|
|
76
|
+
"@happyvertical/smrt-vitest": "0.37.3"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "vite build --mode library && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json",
|