@happyvertical/smrt-manufacturing 0.55.15 → 0.55.17
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/components/AssemblyForm.svelte +4 -1
- package/dist/svelte/components/AssemblyList.svelte +5 -2
- package/dist/svelte/components/BomEditor.svelte +4 -1
- package/dist/svelte/components/BomStructureTree.svelte +4 -1
- package/dist/svelte/components/OperationForm.svelte +4 -1
- package/dist/svelte/components/OperationList.svelte +5 -2
- package/dist/svelte/components/ProductionRunList.svelte +5 -2
- package/dist/svelte/components/RequirementsTree.svelte +5 -2
- package/dist/svelte/components/RequirementsTreeLevel.svelte +3 -0
- package/package.json +8 -8
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.17",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-manufacturing:BillOfMaterialsCollection": {
|
|
8
8
|
"name": "billofmaterialscollection",
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-manufacturing",
|
|
6
|
-
"packageVersion": "0.55.
|
|
6
|
+
"packageVersion": "0.55.17",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "0d402225c69c9f1bf38120379f0989c6c3565b7f9a0920aca52668ab3d46ad5b",
|
|
11
|
+
"packageJson": "2ff0ffd549146f9782dcaea5558e20c5b7fb156ceb9692becc567b30097a0850",
|
|
12
12
|
"agents": "53bbb8d8dfd7e1dbd438a4ad1559be8cd1ad8ed46c726d5498d2dda5b3535054",
|
|
13
13
|
"moduleDoc:agents/multilevel-and-runs.md": "544d519356801f3cb3beb9e6d49a3e0eec93fdddf3f56150cf3141f766f98c9d"
|
|
14
14
|
},
|
|
@@ -270,7 +270,7 @@ function handleSubmit(event?: Event) {
|
|
|
270
270
|
}
|
|
271
271
|
</script>
|
|
272
272
|
|
|
273
|
-
<div class="assembly-form-shell">
|
|
273
|
+
<div class="assembly-form-shell" data-smrt-component="AssemblyForm">
|
|
274
274
|
<Form class="assembly-form" onsubmit={handleSubmit}>
|
|
275
275
|
{#if shown('name')}
|
|
276
276
|
<div class="field">
|
|
@@ -477,6 +477,8 @@ function handleSubmit(event?: Event) {
|
|
|
477
477
|
</div>
|
|
478
478
|
|
|
479
479
|
<style>
|
|
480
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
481
|
+
@layer smrt.theme {
|
|
480
482
|
.assembly-form-shell :global(.assembly-form) {
|
|
481
483
|
display: flex;
|
|
482
484
|
flex-direction: column;
|
|
@@ -518,4 +520,5 @@ function handleSubmit(event?: Event) {
|
|
|
518
520
|
gap: var(--smrt-spacing-sm, 0.5rem);
|
|
519
521
|
margin-top: var(--smrt-spacing-sm, 0.5rem);
|
|
520
522
|
}
|
|
523
|
+
}
|
|
521
524
|
</style>
|
|
@@ -87,11 +87,11 @@ function labour(minutes: number): string {
|
|
|
87
87
|
</script>
|
|
88
88
|
|
|
89
89
|
{#if assemblies.length === 0}
|
|
90
|
-
<p class="assembly-list-empty">
|
|
90
|
+
<p class="assembly-list-empty" data-smrt-component="AssemblyList">
|
|
91
91
|
{emptyMessage ?? t(M['manufacturing.assembly_list.empty'])}
|
|
92
92
|
</p>
|
|
93
93
|
{:else}
|
|
94
|
-
<div class="assembly-list-scroll">
|
|
94
|
+
<div class="assembly-list-scroll" data-smrt-component="AssemblyList">
|
|
95
95
|
<table class="assembly-list">
|
|
96
96
|
<caption class="assembly-list-caption">{t(M['manufacturing.assembly_list.caption'])}</caption>
|
|
97
97
|
<thead>
|
|
@@ -180,6 +180,8 @@ function labour(minutes: number): string {
|
|
|
180
180
|
{/if}
|
|
181
181
|
|
|
182
182
|
<style>
|
|
183
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
184
|
+
@layer smrt.theme {
|
|
183
185
|
.assembly-list-scroll {
|
|
184
186
|
overflow-x: auto;
|
|
185
187
|
}
|
|
@@ -232,4 +234,5 @@ function labour(minutes: number): string {
|
|
|
232
234
|
.assembly-list-empty {
|
|
233
235
|
padding: 1rem 0;
|
|
234
236
|
}
|
|
237
|
+
}
|
|
235
238
|
</style>
|
|
@@ -219,7 +219,7 @@ const showActions = $derived(Boolean(onupdate || onremove));
|
|
|
219
219
|
const ancestors = $derived(bomId ? [bomId] : []);
|
|
220
220
|
</script>
|
|
221
221
|
|
|
222
|
-
<div class="bom-editor">
|
|
222
|
+
<div class="bom-editor" data-smrt-component="BomEditor">
|
|
223
223
|
{#if error}
|
|
224
224
|
<Alert variant="error">{error}</Alert>
|
|
225
225
|
{/if}
|
|
@@ -474,6 +474,8 @@ const ancestors = $derived(bomId ? [bomId] : []);
|
|
|
474
474
|
</div>
|
|
475
475
|
|
|
476
476
|
<style>
|
|
477
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
478
|
+
@layer smrt.theme {
|
|
477
479
|
.bom-editor {
|
|
478
480
|
display: flex;
|
|
479
481
|
flex-direction: column;
|
|
@@ -572,4 +574,5 @@ const ancestors = $derived(bomId ? [bomId] : []);
|
|
|
572
574
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
573
575
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
574
576
|
}
|
|
577
|
+
}
|
|
575
578
|
</style>
|
|
@@ -64,7 +64,7 @@ async function toggle(line: BomEditorLine) {
|
|
|
64
64
|
}
|
|
65
65
|
</script>
|
|
66
66
|
|
|
67
|
-
<ul class="bom-tree" aria-label={label}>
|
|
67
|
+
<ul class="bom-tree" aria-label={label} data-smrt-component="BomStructureTree">
|
|
68
68
|
{#each lines as line (line.id)}
|
|
69
69
|
{@const canOpen =
|
|
70
70
|
line.kind === 'assembly' &&
|
|
@@ -126,6 +126,8 @@ async function toggle(line: BomEditorLine) {
|
|
|
126
126
|
</ul>
|
|
127
127
|
|
|
128
128
|
<style>
|
|
129
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
130
|
+
@layer smrt.theme {
|
|
129
131
|
.bom-tree {
|
|
130
132
|
list-style: none;
|
|
131
133
|
margin: 0;
|
|
@@ -161,4 +163,5 @@ async function toggle(line: BomEditorLine) {
|
|
|
161
163
|
padding-left: 0.75rem;
|
|
162
164
|
border-left: 2px solid var(--smrt-color-outline-variant, transparent);
|
|
163
165
|
}
|
|
166
|
+
}
|
|
164
167
|
</style>
|
|
@@ -107,7 +107,7 @@ function handleSubmit() {
|
|
|
107
107
|
}
|
|
108
108
|
</script>
|
|
109
109
|
|
|
110
|
-
<div class="operation-form-shell">
|
|
110
|
+
<div class="operation-form-shell" data-smrt-component="OperationForm">
|
|
111
111
|
<Form class="operation-form" onsubmit={handleSubmit}>
|
|
112
112
|
<div class="field">
|
|
113
113
|
<label for="{uid}-code">
|
|
@@ -214,6 +214,8 @@ function handleSubmit() {
|
|
|
214
214
|
</div>
|
|
215
215
|
|
|
216
216
|
<style>
|
|
217
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
218
|
+
@layer smrt.theme {
|
|
217
219
|
.operation-form-shell :global(.operation-form) {
|
|
218
220
|
display: flex;
|
|
219
221
|
flex-direction: column;
|
|
@@ -255,4 +257,5 @@ function handleSubmit() {
|
|
|
255
257
|
gap: var(--smrt-spacing-sm, 0.5rem);
|
|
256
258
|
margin-top: var(--smrt-spacing-sm, 0.5rem);
|
|
257
259
|
}
|
|
260
|
+
}
|
|
258
261
|
</style>
|
|
@@ -40,11 +40,11 @@ const showActions = $derived(Boolean(onretire || onreinstate));
|
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
42
|
{#if operations.length === 0}
|
|
43
|
-
<p class="operation-list-empty">
|
|
43
|
+
<p class="operation-list-empty" data-smrt-component="OperationList">
|
|
44
44
|
{emptyMessage ?? t(M['manufacturing.operation_list.empty'])}
|
|
45
45
|
</p>
|
|
46
46
|
{:else}
|
|
47
|
-
<div class="operation-list-scroll">
|
|
47
|
+
<div class="operation-list-scroll" data-smrt-component="OperationList">
|
|
48
48
|
<table class="operation-list">
|
|
49
49
|
<caption class="operation-list-caption">{t(M['manufacturing.operation_list.caption'])}</caption>
|
|
50
50
|
<thead>
|
|
@@ -123,6 +123,8 @@ const showActions = $derived(Boolean(onretire || onreinstate));
|
|
|
123
123
|
{/if}
|
|
124
124
|
|
|
125
125
|
<style>
|
|
126
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
127
|
+
@layer smrt.theme {
|
|
126
128
|
.operation-list-scroll {
|
|
127
129
|
overflow-x: auto;
|
|
128
130
|
}
|
|
@@ -167,4 +169,5 @@ const showActions = $derived(Boolean(onretire || onreinstate));
|
|
|
167
169
|
.operation-list-empty {
|
|
168
170
|
padding: 1rem 0;
|
|
169
171
|
}
|
|
172
|
+
}
|
|
170
173
|
</style>
|
|
@@ -172,11 +172,11 @@ async function confirmAction() {
|
|
|
172
172
|
</script>
|
|
173
173
|
|
|
174
174
|
{#if runs.length === 0}
|
|
175
|
-
<p class="run-list-empty">
|
|
175
|
+
<p class="run-list-empty" data-smrt-component="ProductionRunList">
|
|
176
176
|
{emptyMessage ?? t(M['manufacturing.production_run_list.empty'])}
|
|
177
177
|
</p>
|
|
178
178
|
{:else}
|
|
179
|
-
<div class="run-list-scroll">
|
|
179
|
+
<div class="run-list-scroll" data-smrt-component="ProductionRunList">
|
|
180
180
|
<table class="run-list">
|
|
181
181
|
<caption class="run-list-caption">{t(M['manufacturing.production_run_list.caption'])}</caption>
|
|
182
182
|
<thead>
|
|
@@ -348,6 +348,8 @@ async function confirmAction() {
|
|
|
348
348
|
{/if}
|
|
349
349
|
|
|
350
350
|
<style>
|
|
351
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
352
|
+
@layer smrt.theme {
|
|
351
353
|
.run-list-scroll {
|
|
352
354
|
overflow-x: auto;
|
|
353
355
|
}
|
|
@@ -406,4 +408,5 @@ async function confirmAction() {
|
|
|
406
408
|
margin: 0;
|
|
407
409
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
408
410
|
}
|
|
411
|
+
}
|
|
409
412
|
</style>
|
|
@@ -46,7 +46,7 @@ function componentText(name: string, skuCode: string): string {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
{#if lines.length === 0}
|
|
49
|
-
<p class="requirements-empty">{t(M['manufacturing.requirements.empty'])}</p>
|
|
49
|
+
<p class="requirements-empty" data-smrt-component="RequirementsTree">{t(M['manufacturing.requirements.empty'])}</p>
|
|
50
50
|
{:else}
|
|
51
51
|
<RequirementsTreeLevel
|
|
52
52
|
{lines}
|
|
@@ -55,7 +55,7 @@ function componentText(name: string, skuCode: string): string {
|
|
|
55
55
|
{/if}
|
|
56
56
|
|
|
57
57
|
{#if totals && totals.length > 0}
|
|
58
|
-
<div class="requirements-scroll">
|
|
58
|
+
<div class="requirements-scroll" data-smrt-component="RequirementsTree">
|
|
59
59
|
<table class="requirements-totals">
|
|
60
60
|
<caption>{t(M['manufacturing.requirements.totals_caption'])}</caption>
|
|
61
61
|
<thead>
|
|
@@ -91,6 +91,8 @@ function componentText(name: string, skuCode: string): string {
|
|
|
91
91
|
{/if}
|
|
92
92
|
|
|
93
93
|
<style>
|
|
94
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
95
|
+
@layer smrt.theme {
|
|
94
96
|
.requirements-empty {
|
|
95
97
|
margin: 0;
|
|
96
98
|
color: var(--smrt-color-on-surface-variant, inherit);
|
|
@@ -122,4 +124,5 @@ function componentText(name: string, skuCode: string): string {
|
|
|
122
124
|
.requirements-number {
|
|
123
125
|
font-variant-numeric: tabular-nums;
|
|
124
126
|
}
|
|
127
|
+
}
|
|
125
128
|
</style>
|
|
@@ -83,6 +83,8 @@ function componentText(line: RequirementLineView): string {
|
|
|
83
83
|
</ul>
|
|
84
84
|
|
|
85
85
|
<style>
|
|
86
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
87
|
+
@layer smrt.theme {
|
|
86
88
|
.requirements-tree {
|
|
87
89
|
list-style: none;
|
|
88
90
|
margin: 0;
|
|
@@ -117,4 +119,5 @@ function componentText(line: RequirementLineView): string {
|
|
|
117
119
|
padding-left: 0.75rem;
|
|
118
120
|
border-left: 2px solid var(--smrt-color-outline-variant, transparent);
|
|
119
121
|
}
|
|
122
|
+
}
|
|
120
123
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-manufacturing",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.17",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Bills of materials, cost rollup, and production-order operations for the SMRT framework — strictly industry-neutral",
|
|
6
6
|
"type": "module",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@happyvertical/logger": "^0.103.4",
|
|
39
|
-
"@happyvertical/smrt-core": "0.55.
|
|
40
|
-
"@happyvertical/smrt-inventory": "0.55.
|
|
41
|
-
"@happyvertical/smrt-products": "0.55.
|
|
42
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
43
|
-
"@happyvertical/smrt-types": "0.55.
|
|
44
|
-
"@happyvertical/smrt-ui": "0.55.
|
|
39
|
+
"@happyvertical/smrt-core": "0.55.17",
|
|
40
|
+
"@happyvertical/smrt-inventory": "0.55.17",
|
|
41
|
+
"@happyvertical/smrt-products": "0.55.17",
|
|
42
|
+
"@happyvertical/smrt-tenancy": "0.55.17",
|
|
43
|
+
"@happyvertical/smrt-types": "0.55.17",
|
|
44
|
+
"@happyvertical/smrt-ui": "0.55.17",
|
|
45
45
|
"@happyvertical/sql": "^0.103.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
56
|
+
"@happyvertical/smrt-vitest": "0.55.17",
|
|
57
57
|
"@sveltejs/package": "^2.5.8",
|
|
58
58
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
59
59
|
"@types/node": "24.13.6",
|