@happyvertical/smrt-products 0.60.16 → 0.60.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/lib/chunks/{__smrt-register__-DCxRzaaR.js → __smrt-register__-CfedXJ8n.js} +2 -2
- package/dist/lib/chunks/{__smrt-register__-DCxRzaaR.js.map → __smrt-register__-CfedXJ8n.js.map} +1 -1
- package/dist/lib/chunks/{collections-CdoY699J.js → collections-CH8P9U_s.js} +2 -2
- package/dist/lib/chunks/{collections-CdoY699J.js.map → collections-CH8P9U_s.js.map} +1 -1
- package/dist/lib/chunks/{components-DMJz1geh.js → components-j1pkLwKV.js} +14 -14
- package/dist/lib/chunks/components-j1pkLwKV.js.map +1 -0
- package/dist/lib/chunks/{generated-CEDw1Uka.js → generated-D6SpalT3.js} +2 -2
- package/dist/lib/chunks/{generated-CEDw1Uka.js.map → generated-D6SpalT3.js.map} +1 -1
- package/dist/lib/chunks/models-trtehGCE.js +2 -0
- package/dist/lib/collections.js +1 -1
- package/dist/lib/components.js +1 -1
- package/dist/lib/generated.js +1 -1
- package/dist/lib/index.js +5 -5
- package/dist/lib/lib/components/LiveProductList.svelte +56 -51
- package/dist/lib/lib/components/ProductCard.svelte +65 -59
- package/dist/lib/lib/components/ProductForm.svelte +55 -51
- package/dist/lib/lib/components/TestComponent.svelte +9 -3
- package/dist/lib/lib/components/auto-generated/AutoForm.svelte +52 -42
- package/dist/lib/lib/components/auto-generated/FieldRenderer.svelte +18 -18
- package/dist/lib/lib/features/CategoryManager.svelte +33 -23
- package/dist/lib/lib/features/ProductCatalog.svelte +69 -64
- package/dist/lib/manifest.json +1 -1
- package/dist/lib/models.js +1 -1
- package/dist/lib/smrt-knowledge.json +3 -3
- package/dist/lib/smrt-products.css +92 -82
- package/package.json +14 -14
- package/dist/lib/chunks/components-DMJz1geh.js.map +0 -1
- package/dist/lib/chunks/models-CCSb3kln.js +0 -2
|
@@ -58,7 +58,7 @@ async function handleDeleteProduct(id: string) {
|
|
|
58
58
|
await productStore.deleteProduct(id);
|
|
59
59
|
} catch {
|
|
60
60
|
// deleteProduct already recorded the message on productStore.error;
|
|
61
|
-
// the error
|
|
61
|
+
// the error region below renders it. Swallow the re-thrown
|
|
62
62
|
// rejection so it doesn't become an unhandled promise rejection.
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -75,7 +75,7 @@ async function handleSubmitProduct(productData: Partial<ProductData>) {
|
|
|
75
75
|
editingProduct = null;
|
|
76
76
|
} catch {
|
|
77
77
|
// Keep the form open on failure; productStore.error holds the message
|
|
78
|
-
// and the error
|
|
78
|
+
// and the error region renders it.
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -85,34 +85,34 @@ function handleCancelForm() {
|
|
|
85
85
|
}
|
|
86
86
|
</script>
|
|
87
87
|
|
|
88
|
-
<div class="product-
|
|
89
|
-
<div class="
|
|
88
|
+
<div class="smrt-product-catalog__root" data-smrt-component="ProductCatalog">
|
|
89
|
+
<div class="smrt-product-catalog__header" data-smrt-part="header">
|
|
90
90
|
<h2>{t(M['products.product_catalog.title'])}</h2>
|
|
91
91
|
|
|
92
|
-
<div class="
|
|
93
|
-
<span class="
|
|
92
|
+
<div class="smrt-product-catalog__stats" data-smrt-part="meta">
|
|
93
|
+
<span class="smrt-product-catalog__stat" data-smrt-part="item">
|
|
94
94
|
<strong>{productStore.items.length}</strong> products
|
|
95
95
|
</span>
|
|
96
|
-
<span class="
|
|
96
|
+
<span class="smrt-product-catalog__stat" data-smrt-part="item">
|
|
97
97
|
<strong>{productStore.inStockCount}</strong> {t(M['products.product_catalog.in_stock'])}
|
|
98
98
|
</span>
|
|
99
|
-
<span class="
|
|
99
|
+
<span class="smrt-product-catalog__stat" data-smrt-part="item">
|
|
100
100
|
{t(M['products.product_catalog.total_value'])} <strong>${productStore.totalValue.toFixed(2)}</strong>
|
|
101
101
|
</span>
|
|
102
102
|
</div>
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
|
-
<div class="
|
|
106
|
-
<div class="
|
|
105
|
+
<div class="smrt-product-catalog__controls" data-smrt-part="actions">
|
|
106
|
+
<div class="smrt-product-catalog__filters" data-smrt-part="group">
|
|
107
107
|
<Input
|
|
108
108
|
type="text"
|
|
109
109
|
bind:value={searchQuery}
|
|
110
110
|
placeholder={t(M['products.product_catalog.search_placeholder'])}
|
|
111
111
|
aria-label={t(M['products.product_catalog.search_placeholder'])}
|
|
112
|
-
class="
|
|
112
|
+
class="smrt-product-catalog__search-input"
|
|
113
113
|
/>
|
|
114
114
|
|
|
115
|
-
<Select bind:value={selectedCategory} class="
|
|
115
|
+
<Select bind:value={selectedCategory} class="smrt-product-catalog__category-filter">
|
|
116
116
|
<option value="">{t(M['products.product_catalog.all_categories'])}</option>
|
|
117
117
|
{#each productStore.categories as category}
|
|
118
118
|
<option value={category}>{category}</option>
|
|
@@ -132,18 +132,18 @@ function handleCancelForm() {
|
|
|
132
132
|
</div>
|
|
133
133
|
|
|
134
134
|
{#if productStore.loading}
|
|
135
|
-
<div class="
|
|
135
|
+
<div class="smrt-product-catalog__loading" data-smrt-part="status" role="status" aria-live="polite">
|
|
136
136
|
<p>{t(M['products.product_catalog.loading'])}</p>
|
|
137
137
|
</div>
|
|
138
138
|
{:else if productStore.error}
|
|
139
|
-
<div class="
|
|
139
|
+
<div class="smrt-product-catalog__error" data-smrt-part="error" role="alert" aria-live="assertive">
|
|
140
140
|
<p>Error: {productStore.error}</p>
|
|
141
141
|
<Button type="button" variant="danger" onclick={() => productStore.loadProducts()}>
|
|
142
142
|
Retry
|
|
143
143
|
</Button>
|
|
144
144
|
</div>
|
|
145
145
|
{:else if filteredProducts.length === 0}
|
|
146
|
-
<div class="
|
|
146
|
+
<div class="smrt-product-catalog__empty" data-smrt-part="empty" role="status" aria-live="polite">
|
|
147
147
|
{#if productStore.items.length === 0}
|
|
148
148
|
<p>{t(M['products.product_catalog.empty'])}</p>
|
|
149
149
|
{#if !readonly}
|
|
@@ -156,7 +156,7 @@ function handleCancelForm() {
|
|
|
156
156
|
{/if}
|
|
157
157
|
</div>
|
|
158
158
|
{:else}
|
|
159
|
-
<div class="
|
|
159
|
+
<div class="smrt-product-catalog__grid" data-smrt-part="list">
|
|
160
160
|
{#each filteredProducts as product (product.id)}
|
|
161
161
|
<ProductCard
|
|
162
162
|
{product}
|
|
@@ -168,8 +168,8 @@ function handleCancelForm() {
|
|
|
168
168
|
{/if}
|
|
169
169
|
|
|
170
170
|
{#if showForm && !readonly}
|
|
171
|
-
<div class="
|
|
172
|
-
<div class="
|
|
171
|
+
<div class="smrt-product-catalog__overlay" data-smrt-part="backdrop">
|
|
172
|
+
<div class="smrt-product-catalog__form-container" data-smrt-part="panel">
|
|
173
173
|
<h3>{editingProduct ? 'Edit Product' : 'Create New Product'}</h3>
|
|
174
174
|
<ProductForm
|
|
175
175
|
product={editingProduct ?? undefined}
|
|
@@ -184,111 +184,116 @@ function handleCancelForm() {
|
|
|
184
184
|
|
|
185
185
|
<style>
|
|
186
186
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
187
|
-
@layer smrt.
|
|
188
|
-
.product-
|
|
187
|
+
@layer smrt.structure {
|
|
188
|
+
.smrt-product-catalog__root {
|
|
189
189
|
max-width: 1200px;
|
|
190
190
|
margin: 0 auto;
|
|
191
191
|
padding: 1rem;
|
|
192
192
|
}
|
|
193
|
-
|
|
194
|
-
.catalog-header {
|
|
193
|
+
.smrt-product-catalog__header {
|
|
195
194
|
display: flex;
|
|
196
195
|
justify-content: space-between;
|
|
197
196
|
align-items: center;
|
|
198
197
|
margin-bottom: 1.5rem;
|
|
199
198
|
padding-bottom: 1rem;
|
|
200
|
-
border-bottom: 2px solid var(--smrt-color-outline-variant);
|
|
201
199
|
}
|
|
202
|
-
|
|
203
|
-
.catalog-header h2 {
|
|
200
|
+
.smrt-product-catalog__header h2 {
|
|
204
201
|
margin: 0;
|
|
205
|
-
color: var(--smrt-color-on-surface);
|
|
206
|
-
font-size: var(--smrt-typography-headline-large-size, 1.875rem);
|
|
207
|
-
font-weight: var(--smrt-typography-weight-bold, 700);
|
|
208
202
|
}
|
|
209
|
-
|
|
210
|
-
.catalog-stats {
|
|
203
|
+
.smrt-product-catalog__stats {
|
|
211
204
|
display: flex;
|
|
212
205
|
gap: 1.5rem;
|
|
213
|
-
font-size: var(--smrt-typography-label-large-size, 0.875rem);
|
|
214
|
-
color: var(--smrt-color-on-surface-variant);
|
|
215
206
|
}
|
|
216
|
-
|
|
217
|
-
.catalog-controls {
|
|
207
|
+
.smrt-product-catalog__controls {
|
|
218
208
|
display: flex;
|
|
219
209
|
justify-content: space-between;
|
|
220
210
|
align-items: center;
|
|
221
211
|
margin-bottom: 1.5rem;
|
|
222
212
|
gap: 1rem;
|
|
223
213
|
}
|
|
224
|
-
|
|
225
|
-
.search-filters {
|
|
214
|
+
.smrt-product-catalog__filters {
|
|
226
215
|
display: flex;
|
|
227
216
|
gap: 0.75rem;
|
|
228
217
|
flex: 1;
|
|
229
218
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
.search-filters :global(.search-input) {
|
|
219
|
+
/* Layout sizing for the migrated <Input>/<Select>. The primitives own their
|
|
220
|
+
inner elements, so target them through the component hooks to keep the
|
|
221
|
+
flex sizing the old scoped rules supplied (#1589); padding/border/font come
|
|
222
|
+
from the primitives' tokenised styling now. */
|
|
223
|
+
.smrt-product-catalog__filters :global([data-smrt-component="Input"]) {
|
|
236
224
|
flex: 1;
|
|
237
225
|
max-width: 300px;
|
|
238
226
|
}
|
|
239
|
-
|
|
240
|
-
.search-filters :global(.category-filter) {
|
|
227
|
+
.smrt-product-catalog__filters :global([data-smrt-component="Select"]) {
|
|
241
228
|
min-width: 150px;
|
|
242
229
|
}
|
|
243
|
-
|
|
244
|
-
.products-grid {
|
|
230
|
+
.smrt-product-catalog__grid {
|
|
245
231
|
display: grid;
|
|
246
232
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
247
233
|
gap: 1.5rem;
|
|
248
234
|
}
|
|
249
|
-
|
|
250
|
-
.loading-state, .error-state, .empty-state {
|
|
251
|
-
text-align: center;
|
|
235
|
+
.smrt-product-catalog__loading, .smrt-product-catalog__error, .smrt-product-catalog__empty {
|
|
252
236
|
padding: 3rem 1rem;
|
|
253
|
-
color: var(--smrt-color-on-surface-variant);
|
|
254
237
|
}
|
|
255
|
-
|
|
256
238
|
/* Restore the retry button's spacing from the error message. The old
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
.
|
|
239
|
+
`.smrt-product-catalog__error button` rule can't reach the <button> rendered inside the
|
|
240
|
+
smrt-ui <Button>, so pierce into it with `:global` (#1589); the danger
|
|
241
|
+
variant already supplies the background/color the old rule set. */
|
|
242
|
+
.smrt-product-catalog__error :global([data-smrt-component="Button"]) {
|
|
261
243
|
margin-top: 0.5rem;
|
|
262
244
|
}
|
|
263
|
-
|
|
264
|
-
.form-overlay {
|
|
245
|
+
.smrt-product-catalog__overlay {
|
|
265
246
|
position: fixed;
|
|
266
247
|
top: 0;
|
|
267
248
|
left: 0;
|
|
268
249
|
right: 0;
|
|
269
250
|
bottom: 0;
|
|
270
|
-
background: var(--smrt-color-scrim, rgba(0, 0, 0, 0.5));
|
|
271
251
|
display: flex;
|
|
272
252
|
align-items: center;
|
|
273
253
|
justify-content: center;
|
|
274
254
|
z-index: var(--smrt-z-index-dialog, 1300);
|
|
275
255
|
}
|
|
276
|
-
|
|
277
|
-
.form-container {
|
|
278
|
-
background: var(--smrt-color-surface);
|
|
279
|
-
border-radius: var(--smrt-radius-md);
|
|
256
|
+
.smrt-product-catalog__form-container {
|
|
280
257
|
max-width: 500px;
|
|
281
258
|
width: 90vw;
|
|
282
259
|
max-height: 90vh;
|
|
283
260
|
overflow-y: auto;
|
|
284
261
|
}
|
|
285
|
-
|
|
286
|
-
.form-container h3 {
|
|
262
|
+
.smrt-product-catalog__form-container h3 {
|
|
287
263
|
margin: 0 0 1rem 0;
|
|
288
264
|
padding: 1.5rem 1.5rem 0 1.5rem;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@layer smrt.theme {
|
|
269
|
+
.smrt-product-catalog__header {
|
|
270
|
+
border-bottom: 2px solid var(--smrt-color-outline-variant);
|
|
271
|
+
}
|
|
272
|
+
.smrt-product-catalog__header h2 {
|
|
273
|
+
color: var(--smrt-color-on-surface);
|
|
274
|
+
font-size: var(--smrt-typography-headline-large-size, 1.875rem);
|
|
275
|
+
font-weight: var(--smrt-typography-weight-bold, 700);
|
|
276
|
+
}
|
|
277
|
+
.smrt-product-catalog__stats {
|
|
278
|
+
font-size: var(--smrt-typography-label-large-size, 0.875rem);
|
|
279
|
+
color: var(--smrt-color-on-surface-variant);
|
|
280
|
+
}
|
|
281
|
+
.smrt-product-catalog__loading, .smrt-product-catalog__error, .smrt-product-catalog__empty {
|
|
282
|
+
text-align: center;
|
|
283
|
+
color: var(--smrt-color-on-surface-variant);
|
|
284
|
+
}
|
|
285
|
+
.smrt-product-catalog__overlay {
|
|
286
|
+
background: var(--smrt-color-scrim, rgba(0, 0, 0, 0.5));
|
|
287
|
+
}
|
|
288
|
+
.smrt-product-catalog__form-container {
|
|
289
|
+
background: var(--smrt-color-surface);
|
|
290
|
+
border-radius: var(--smrt-radius-md);
|
|
291
|
+
}
|
|
292
|
+
.smrt-product-catalog__form-container h3 {
|
|
289
293
|
color: var(--smrt-color-on-surface);
|
|
290
294
|
font-size: var(--smrt-typography-title-large-size, 1.25rem);
|
|
291
295
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
292
296
|
}
|
|
293
297
|
}
|
|
298
|
+
|
|
294
299
|
</style>
|
package/dist/lib/manifest.json
CHANGED
package/dist/lib/models.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as Product, i as Material, n as ProductVariant, o as ProductType, r as ProductAsset, s as Category, t as Sku } from "./chunks/Sku-D9O8I6NV.js";
|
|
2
|
-
import "./chunks/models-
|
|
2
|
+
import "./chunks/models-trtehGCE.js";
|
|
3
3
|
export { Category, Material, Product, ProductAsset, ProductType, ProductVariant, Sku };
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-products",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.17",
|
|
7
7
|
"sourceManifestPath": "dist/lib/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "d0657dc964e962d93806d557661c6f4d5b7adb4e7885e3ddf93c5c6012748a6b",
|
|
11
|
+
"packageJson": "2f64597ba3521b66ca9f11122ab9ded9a6438a735874a7fb1e4d1dc0ab474d9a",
|
|
12
12
|
"agents": "39bae43f14d7f80933a11fc1087d5bf376d8e0d6f4eae3a9a658185bf54508cf",
|
|
13
13
|
"moduleDoc:agents/install-lifecycle.md": "0b9b63732ff27f7435e68a04f481d4d4f03974065a39e46f0960964d4fac49df"
|
|
14
14
|
},
|
|
@@ -1,158 +1,168 @@
|
|
|
1
1
|
|
|
2
2
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
3
|
+
@layer smrt.structure {
|
|
4
|
+
.smrt-product-card__root.svelte-11ja2cl {
|
|
5
|
+
padding: 1rem;
|
|
6
|
+
}
|
|
7
|
+
.smrt-product-card__header.svelte-11ja2cl {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
margin-bottom: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
.smrt-product-card__name.svelte-11ja2cl {
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
.smrt-product-card__model.svelte-11ja2cl {
|
|
17
|
+
margin-bottom: 0.5rem;
|
|
18
|
+
}
|
|
19
|
+
.smrt-product-card__category.svelte-11ja2cl {
|
|
20
|
+
padding: 0.25rem 0.5rem;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
margin-bottom: 0.5rem;
|
|
23
|
+
}
|
|
24
|
+
.smrt-product-card__description.svelte-11ja2cl {
|
|
25
|
+
margin: 0.5rem 0;
|
|
26
|
+
}
|
|
27
|
+
.smrt-product-card__meta.svelte-11ja2cl {
|
|
28
|
+
margin: 0.75rem 0;
|
|
29
|
+
}
|
|
30
|
+
.smrt-product-card__tags.svelte-11ja2cl {
|
|
31
|
+
margin-top: 0.5rem;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
gap: 0.25rem;
|
|
35
|
+
}
|
|
36
|
+
.smrt-product-card__tag.svelte-11ja2cl {
|
|
37
|
+
padding: 0.125rem 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
.smrt-product-card__actions.svelte-11ja2cl {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: 0.5rem;
|
|
42
|
+
margin-top: 1rem;
|
|
43
|
+
padding-top: 0.75rem;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
3
47
|
@layer smrt.theme {
|
|
4
|
-
.product-
|
|
48
|
+
.smrt-product-card__root.svelte-11ja2cl {
|
|
5
49
|
border: var(--smrt-hairline);
|
|
6
50
|
border-radius: var(--smrt-radius-md);
|
|
7
|
-
padding: 1rem;
|
|
8
51
|
background: var(--smrt-color-surface);
|
|
9
52
|
box-shadow: var(--smrt-elevation-1, 0 1px 3px color-mix(in srgb, var(--smrt-color-shadow) 10%, transparent));
|
|
10
53
|
transition: box-shadow 0.2s;
|
|
11
54
|
}
|
|
12
|
-
|
|
13
|
-
.product-card.svelte-11ja2cl:hover {
|
|
55
|
+
.smrt-product-card__root.svelte-11ja2cl:hover {
|
|
14
56
|
box-shadow: var(--smrt-elevation-2, 0 4px 6px color-mix(in srgb, var(--smrt-color-shadow) 10%, transparent));
|
|
15
57
|
}
|
|
16
|
-
|
|
17
|
-
.product-header.svelte-11ja2cl {
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: space-between;
|
|
20
|
-
align-items: flex-start;
|
|
21
|
-
margin-bottom: 0.5rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.product-name.svelte-11ja2cl {
|
|
25
|
-
margin: 0;
|
|
58
|
+
.smrt-product-card__name.svelte-11ja2cl {
|
|
26
59
|
font-size: var(--smrt-typography-title-medium-size, 1.125rem);
|
|
27
60
|
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
28
61
|
color: var(--smrt-color-on-surface);
|
|
29
62
|
}
|
|
30
|
-
|
|
31
|
-
.product-manufacturer.svelte-11ja2cl {
|
|
63
|
+
.smrt-product-card__manufacturer.svelte-11ja2cl {
|
|
32
64
|
font-size: var(--smrt-typography-title-small-size, 0.875rem);
|
|
33
65
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
34
66
|
color: var(--smrt-color-on-surface-variant);
|
|
35
67
|
}
|
|
36
|
-
|
|
37
|
-
.product-model.svelte-11ja2cl {
|
|
68
|
+
.smrt-product-card__model.svelte-11ja2cl {
|
|
38
69
|
font-size: var(--smrt-typography-body-medium-size, 0.875rem);
|
|
39
70
|
color: var(--smrt-color-on-surface-variant);
|
|
40
|
-
margin-bottom: 0.5rem;
|
|
41
71
|
}
|
|
42
|
-
|
|
43
|
-
.product-category.svelte-11ja2cl {
|
|
72
|
+
.smrt-product-card__category.svelte-11ja2cl {
|
|
44
73
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
45
74
|
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
46
75
|
color: var(--smrt-color-on-surface);
|
|
47
76
|
background: var(--smrt-color-surface-container);
|
|
48
|
-
padding: 0.25rem 0.5rem;
|
|
49
77
|
border-radius: var(--smrt-radius-sm);
|
|
50
|
-
display: inline-block;
|
|
51
|
-
margin-bottom: 0.5rem;
|
|
52
78
|
}
|
|
53
|
-
|
|
54
|
-
.product-description.svelte-11ja2cl {
|
|
55
|
-
margin: 0.5rem 0;
|
|
79
|
+
.smrt-product-card__description.svelte-11ja2cl {
|
|
56
80
|
color: var(--smrt-color-on-surface-variant);
|
|
57
81
|
font-size: var(--smrt-typography-body-medium-size, 0.875rem);
|
|
58
82
|
line-height: var(--smrt-typography-body-medium-line-height, 1.4);
|
|
59
83
|
}
|
|
60
|
-
|
|
61
|
-
.product-meta.svelte-11ja2cl {
|
|
62
|
-
margin: 0.75rem 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
.product-tags.svelte-11ja2cl {
|
|
67
|
-
margin-top: 0.5rem;
|
|
68
|
-
display: flex;
|
|
69
|
-
flex-wrap: wrap;
|
|
70
|
-
gap: 0.25rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.tag.svelte-11ja2cl {
|
|
84
|
+
.smrt-product-card__tag.svelte-11ja2cl {
|
|
74
85
|
background: var(--smrt-color-surface-container);
|
|
75
86
|
color: var(--smrt-color-on-surface);
|
|
76
|
-
padding: 0.125rem 0.5rem;
|
|
77
87
|
border-radius: var(--smrt-radius-full);
|
|
78
88
|
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
79
89
|
}
|
|
80
|
-
|
|
81
|
-
.product-actions.svelte-11ja2cl {
|
|
82
|
-
display: flex;
|
|
83
|
-
gap: 0.5rem;
|
|
84
|
-
margin-top: 1rem;
|
|
85
|
-
padding-top: 0.75rem;
|
|
90
|
+
.smrt-product-card__actions.svelte-11ja2cl {
|
|
86
91
|
border-top: var(--smrt-hairline);
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
|
|
95
|
+
|
|
90
96
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
91
|
-
@layer smrt.
|
|
92
|
-
.product-
|
|
97
|
+
@layer smrt.structure {
|
|
98
|
+
.smrt-product-form__root.svelte-1hh5ovx [data-smrt-component="Form"] {
|
|
93
99
|
max-width: 500px;
|
|
94
100
|
padding: 1.5rem;
|
|
95
|
-
background: var(--smrt-color-surface);
|
|
96
|
-
border-radius: var(--smrt-radius-md);
|
|
97
|
-
border: var(--smrt-hairline);
|
|
98
101
|
}
|
|
99
|
-
|
|
100
|
-
.form-group.svelte-1hh5ovx {
|
|
102
|
+
.smrt-product-form__field.svelte-1hh5ovx {
|
|
101
103
|
margin-bottom: 1rem;
|
|
102
104
|
}
|
|
103
|
-
|
|
104
|
-
.form-row.svelte-1hh5ovx {
|
|
105
|
+
.smrt-product-form__row.svelte-1hh5ovx {
|
|
105
106
|
display: grid;
|
|
106
107
|
grid-template-columns: 1fr 1fr;
|
|
107
108
|
gap: 1rem;
|
|
108
109
|
}
|
|
109
|
-
|
|
110
110
|
label.svelte-1hh5ovx {
|
|
111
111
|
display: block;
|
|
112
112
|
margin-bottom: 0.25rem;
|
|
113
|
-
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
114
|
-
color: var(--smrt-color-on-surface);
|
|
115
|
-
font-size: var(--smrt-typography-label-large-size, 0.875rem);
|
|
116
113
|
}
|
|
117
|
-
|
|
118
|
-
/* Error border on the migrated <Input>. The primitive renders the inner
|
|
119
|
-
<input class="input error"> inside its own component, so the scoped class
|
|
120
|
-
can't reach it without :global (#1589). */
|
|
121
|
-
.product-form-shell.svelte-1hh5ovx [data-smrt-component="Input"].error {
|
|
122
|
-
border-color: var(--smrt-color-error);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.checkbox-label.svelte-1hh5ovx {
|
|
114
|
+
.smrt-product-form__checkbox-label.svelte-1hh5ovx {
|
|
126
115
|
display: flex;
|
|
127
116
|
align-items: center;
|
|
128
117
|
gap: 0.5rem;
|
|
129
118
|
cursor: pointer;
|
|
130
119
|
}
|
|
131
|
-
|
|
132
|
-
.form-checkbox.svelte-1hh5ovx {
|
|
120
|
+
.smrt-product-form__checkbox.svelte-1hh5ovx {
|
|
133
121
|
width: auto;
|
|
134
122
|
}
|
|
135
|
-
|
|
136
|
-
.form-hint.svelte-1hh5ovx {
|
|
137
|
-
color: var(--smrt-color-on-surface-variant);
|
|
138
|
-
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
123
|
+
.smrt-product-form__hint.svelte-1hh5ovx {
|
|
139
124
|
margin-top: 0.25rem;
|
|
140
125
|
}
|
|
141
|
-
|
|
142
|
-
.error-message.svelte-1hh5ovx {
|
|
143
|
-
color: var(--smrt-color-error);
|
|
144
|
-
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
126
|
+
.smrt-product-form__error-message.svelte-1hh5ovx {
|
|
145
127
|
margin-top: 0.25rem;
|
|
146
128
|
display: block;
|
|
147
129
|
}
|
|
148
|
-
|
|
149
|
-
.form-actions.svelte-1hh5ovx {
|
|
130
|
+
.smrt-product-form__actions.svelte-1hh5ovx {
|
|
150
131
|
display: flex;
|
|
151
132
|
gap: 0.75rem;
|
|
152
133
|
justify-content: flex-end;
|
|
153
134
|
margin-top: 1.5rem;
|
|
154
135
|
padding-top: 1rem;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@layer smrt.theme {
|
|
140
|
+
.smrt-product-form__root.svelte-1hh5ovx [data-smrt-component="Form"] {
|
|
141
|
+
background: var(--smrt-color-surface);
|
|
142
|
+
border-radius: var(--smrt-radius-md);
|
|
143
|
+
border: var(--smrt-hairline);
|
|
144
|
+
}
|
|
145
|
+
label.svelte-1hh5ovx {
|
|
146
|
+
font-weight: var(--smrt-typography-weight-medium, 500);
|
|
147
|
+
color: var(--smrt-color-on-surface);
|
|
148
|
+
font-size: var(--smrt-typography-label-large-size, 0.875rem);
|
|
149
|
+
}
|
|
150
|
+
/* Error border on the migrated <Input>. The primitive forwards `class` onto
|
|
151
|
+
its root element, so the scoped rule can't reach it without :global (#1589). */
|
|
152
|
+
.smrt-product-form__root.svelte-1hh5ovx [data-smrt-component="Input"].smrt-product-form__error {
|
|
153
|
+
border-color: var(--smrt-color-error);
|
|
154
|
+
}
|
|
155
|
+
.smrt-product-form__hint.svelte-1hh5ovx {
|
|
156
|
+
color: var(--smrt-color-on-surface-variant);
|
|
157
|
+
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
158
|
+
}
|
|
159
|
+
.smrt-product-form__error-message.svelte-1hh5ovx {
|
|
160
|
+
color: var(--smrt-color-error);
|
|
161
|
+
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
162
|
+
}
|
|
163
|
+
.smrt-product-form__actions.svelte-1hh5ovx {
|
|
155
164
|
border-top: var(--smrt-hairline);
|
|
156
165
|
}
|
|
157
166
|
}
|
|
167
|
+
|
|
158
168
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-products",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.17",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "SMRT products module: triple-purpose microservice template for standalone apps, federated modules, and NPM libraries",
|
|
6
6
|
"author": "HappyVertical",
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"./manifest.json": "./dist/lib/manifest.json"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@happyvertical/ai": "^0.
|
|
63
|
-
"@happyvertical/files": "^0.
|
|
64
|
-
"@happyvertical/logger": "^0.
|
|
65
|
-
"@happyvertical/smrt-assets": "0.60.
|
|
66
|
-
"@happyvertical/smrt-core": "0.60.
|
|
67
|
-
"@happyvertical/smrt-scanner": "0.60.
|
|
68
|
-
"@happyvertical/smrt-svelte": "0.60.
|
|
69
|
-
"@happyvertical/smrt-tenancy": "0.60.
|
|
70
|
-
"@happyvertical/smrt-ui": "0.60.
|
|
71
|
-
"@happyvertical/smrt-web": "0.60.
|
|
72
|
-
"@happyvertical/sql": "^0.
|
|
73
|
-
"@happyvertical/utils": "^0.
|
|
62
|
+
"@happyvertical/ai": "^0.112.2",
|
|
63
|
+
"@happyvertical/files": "^0.112.2",
|
|
64
|
+
"@happyvertical/logger": "^0.112.2",
|
|
65
|
+
"@happyvertical/smrt-assets": "0.60.17",
|
|
66
|
+
"@happyvertical/smrt-core": "0.60.17",
|
|
67
|
+
"@happyvertical/smrt-scanner": "0.60.17",
|
|
68
|
+
"@happyvertical/smrt-svelte": "0.60.17",
|
|
69
|
+
"@happyvertical/smrt-tenancy": "0.60.17",
|
|
70
|
+
"@happyvertical/smrt-ui": "0.60.17",
|
|
71
|
+
"@happyvertical/smrt-web": "0.60.17",
|
|
72
|
+
"@happyvertical/sql": "^0.112.2",
|
|
73
|
+
"@happyvertical/utils": "^0.112.2",
|
|
74
74
|
"cors": "^2.8.6",
|
|
75
75
|
"express": "^5.2.1"
|
|
76
76
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@types/cors": "2.8.19",
|
|
90
90
|
"@types/express": "^5.0.6",
|
|
91
91
|
"@types/node": "24.13.6",
|
|
92
|
-
"@happyvertical/smrt-vitest": "0.60.
|
|
92
|
+
"@happyvertical/smrt-vitest": "0.60.17",
|
|
93
93
|
"concurrently": "^10.0.5",
|
|
94
94
|
"svelte": "^5.57.1",
|
|
95
95
|
"svelte-check": "^4.7.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components-DMJz1geh.js","names":[],"sources":["../../../src/lib/components/ProductCard.svelte","../../../src/lib/components/ProductForm.svelte"],"sourcesContent":["<script lang=\"ts\">\nimport { Button } from '@happyvertical/smrt-ui/ui';\nimport type { ProductData } from '../types';\n\ninterface Props {\n /** The product to display. */\n product: ProductData;\n /** Fired when the user clicks to edit the product. */\n onEdit?: (product: ProductData) => void;\n /** Fired when the user clicks to delete the product. */\n onDelete?: (id: string) => void;\n}\n\nconst { product, onEdit, onDelete }: Props = $props();\n</script>\n\n<div class=\"product-card\" data-smrt-component=\"ProductCard\">\n <div class=\"product-header\">\n <h3 class=\"product-name\">{product.name}</h3>\n {#if product.manufacturer}\n <div class=\"product-manufacturer\">{product.manufacturer}</div>\n {/if}\n </div>\n\n {#if product.model}\n <div class=\"product-model\">Model: {product.model}</div>\n {/if}\n\n {#if product.description}\n <p class=\"product-description\">{product.description}</p>\n {/if}\n\n <div class=\"product-meta\">\n {#if product.category}\n <div class=\"product-category\">Category: {product.category}</div>\n {/if}\n \n {#if product.tags && product.tags.length > 0}\n <div class=\"product-tags\">\n {#each product.tags as tag}\n <span class=\"tag\">{tag}</span>\n {/each}\n </div>\n {/if}\n </div>\n \n <div class=\"product-actions\">\n {#if onEdit}\n <Button type=\"button\" variant=\"secondary\" size=\"sm\" onclick={() => onEdit?.(product)}>\n Edit\n </Button>\n {/if}\n\n {#if onDelete}\n <Button type=\"button\" variant=\"danger\" size=\"sm\" onclick={() => product.id && onDelete?.(product.id)}>\n Delete\n </Button>\n {/if}\n </div>\n</div>\n\n<style>\n@layer smrt.reset, smrt.structure, smrt.theme;\n@layer smrt.theme {\n .product-card {\n border: var(--smrt-hairline);\n border-radius: var(--smrt-radius-md);\n padding: 1rem;\n background: var(--smrt-color-surface);\n box-shadow: var(--smrt-elevation-1, 0 1px 3px color-mix(in srgb, var(--smrt-color-shadow) 10%, transparent));\n transition: box-shadow 0.2s;\n }\n\n .product-card:hover {\n box-shadow: var(--smrt-elevation-2, 0 4px 6px color-mix(in srgb, var(--smrt-color-shadow) 10%, transparent));\n }\n \n .product-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-bottom: 0.5rem;\n }\n \n .product-name {\n margin: 0;\n font-size: var(--smrt-typography-title-medium-size, 1.125rem);\n font-weight: var(--smrt-typography-weight-semibold, 600);\n color: var(--smrt-color-on-surface);\n }\n\n .product-manufacturer {\n font-size: var(--smrt-typography-title-small-size, 0.875rem);\n font-weight: var(--smrt-typography-weight-medium, 500);\n color: var(--smrt-color-on-surface-variant);\n }\n\n .product-model {\n font-size: var(--smrt-typography-body-medium-size, 0.875rem);\n color: var(--smrt-color-on-surface-variant);\n margin-bottom: 0.5rem;\n }\n\n .product-category {\n font-size: var(--smrt-typography-label-medium-size, 0.75rem);\n font-weight: var(--smrt-typography-weight-medium, 500);\n color: var(--smrt-color-on-surface);\n background: var(--smrt-color-surface-container);\n padding: 0.25rem 0.5rem;\n border-radius: var(--smrt-radius-sm);\n display: inline-block;\n margin-bottom: 0.5rem;\n }\n \n .product-description {\n margin: 0.5rem 0;\n color: var(--smrt-color-on-surface-variant);\n font-size: var(--smrt-typography-body-medium-size, 0.875rem);\n line-height: var(--smrt-typography-body-medium-line-height, 1.4);\n }\n \n .product-meta {\n margin: 0.75rem 0;\n }\n \n \n .product-tags {\n margin-top: 0.5rem;\n display: flex;\n flex-wrap: wrap;\n gap: 0.25rem;\n }\n \n .tag {\n background: var(--smrt-color-surface-container);\n color: var(--smrt-color-on-surface);\n padding: 0.125rem 0.5rem;\n border-radius: var(--smrt-radius-full);\n font-size: var(--smrt-typography-label-medium-size, 0.75rem);\n }\n\n .product-actions {\n display: flex;\n gap: 0.5rem;\n margin-top: 1rem;\n padding-top: 0.75rem;\n border-top: var(--smrt-hairline);\n }\n}\n</style>","<script lang=\"ts\">\nimport { Form, Input, Textarea } from '@happyvertical/smrt-ui/forms';\nimport { useI18n } from '@happyvertical/smrt-ui/i18n';\nimport { Button } from '@happyvertical/smrt-ui/ui';\nimport { M } from '../i18n.js';\nimport type { ProductData } from '../types';\n\nconst { t } = useI18n();\n\ninterface Props {\n /** Product to populate the form with. */\n product?: Partial<ProductData>;\n /** Fired when the user submits the form. */\n onSubmit: (product: Partial<ProductData>) => void;\n /** Fired when the user clicks the cancel button. */\n onCancel?: () => void;\n /** Disables all inputs and shows \"Saving...\" when true. */\n loading?: boolean;\n}\n\nconst { product = {}, onSubmit, onCancel, loading = false }: Props = $props();\n\nconst formData = $state({\n name: product.name || '',\n description: product.description || '',\n price: product.price || 0,\n inStock: product.inStock ?? true,\n category: product.category || '',\n tags: product.tags?.join(', ') || '',\n});\n\nlet errors = $state<Record<string, string>>({});\n\nfunction validateForm() {\n errors = {};\n\n if (!formData.name.trim()) {\n errors.name = 'Product name is required';\n }\n\n if (formData.price < 0) {\n errors.price = 'Price must be non-negative';\n }\n\n return Object.keys(errors).length === 0;\n}\n\nfunction handleSubmit(event: Event) {\n event.preventDefault();\n\n if (!validateForm()) {\n return;\n }\n\n const productData: Partial<ProductData> = {\n ...product,\n name: formData.name.trim(),\n description: formData.description.trim() || undefined,\n price: formData.price,\n inStock: formData.inStock,\n category: formData.category.trim(),\n tags: formData.tags\n ? formData.tags\n .split(',')\n .map((tag) => tag.trim())\n .filter(Boolean)\n : [],\n };\n\n onSubmit(productData);\n}\n</script>\n\n<div class=\"product-form-shell\" data-smrt-component=\"ProductForm\">\n <Form onsubmit={handleSubmit} class=\"product-form\">\n <div class=\"form-group\">\n <label for=\"name\">{t(M['products.product_form.name_label'])}</label>\n <Input\n id=\"name\"\n type=\"text\"\n bind:value={formData.name}\n disabled={loading}\n class={errors.name ? 'error' : ''}\n placeholder={t(M['products.product_form.name_placeholder'])}\n />\n {#if errors.name}\n <span class=\"error-message\">{errors.name}</span>\n {/if}\n </div>\n\n <div class=\"form-group\">\n <label for=\"description\">Description</label>\n <Textarea\n id=\"description\"\n bind:value={formData.description}\n disabled={loading}\n placeholder={t(M['products.product_form.description_placeholder'])}\n rows={3}\n ></Textarea>\n </div>\n\n <div class=\"form-row\">\n <div class=\"form-group\">\n <label for=\"price\">Price *</label>\n <Input\n id=\"price\"\n type=\"number\"\n step=\"0.01\"\n min=\"0\"\n bind:value={formData.price}\n disabled={loading}\n class={errors.price ? 'error' : ''}\n placeholder=\"0.00\"\n />\n {#if errors.price}\n <span class=\"error-message\">{errors.price}</span>\n {/if}\n </div>\n\n <div class=\"form-group\">\n <label for=\"category\">Category</label>\n <Input\n id=\"category\"\n type=\"text\"\n bind:value={formData.category}\n disabled={loading}\n placeholder={t(M['products.product_form.category_placeholder'])}\n />\n </div>\n </div>\n\n <div class=\"form-group\">\n <label for=\"tags\">Tags</label>\n <Input\n id=\"tags\"\n type=\"text\"\n bind:value={formData.tags}\n disabled={loading}\n placeholder={t(M['products.product_form.tags_placeholder'])}\n />\n <small class=\"form-hint\">{t(M['products.product_form.tags_hint'])}</small>\n </div>\n\n <div class=\"form-group\">\n <label class=\"checkbox-label\">\n <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->\n <input\n type=\"checkbox\"\n bind:checked={formData.inStock}\n disabled={loading}\n class=\"form-checkbox\"\n />\n {t(M['products.product_form.in_stock_label'])}\n </label>\n </div>\n\n <div class=\"form-actions\">\n {#if onCancel}\n <Button type=\"button\" variant=\"secondary\" onclick={onCancel} disabled={loading}>\n Cancel\n </Button>\n {/if}\n\n <Button type=\"submit\" variant=\"primary\" disabled={loading}>\n {#if loading}\n Saving...\n {:else}\n {product.id ? 'Update Product' : 'Create Product'}\n {/if}\n </Button>\n </div>\n </Form>\n</div>\n\n<style>\n@layer smrt.reset, smrt.structure, smrt.theme;\n@layer smrt.theme {\n .product-form-shell :global(.product-form) {\n max-width: 500px;\n padding: 1.5rem;\n background: var(--smrt-color-surface);\n border-radius: var(--smrt-radius-md);\n border: var(--smrt-hairline);\n }\n\n .form-group {\n margin-bottom: 1rem;\n }\n\n .form-row {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 1rem;\n }\n\n label {\n display: block;\n margin-bottom: 0.25rem;\n font-weight: var(--smrt-typography-weight-medium, 500);\n color: var(--smrt-color-on-surface);\n font-size: var(--smrt-typography-label-large-size, 0.875rem);\n }\n\n /* Error border on the migrated <Input>. The primitive renders the inner\n <input class=\"input error\"> inside its own component, so the scoped class\n can't reach it without :global (#1589). */\n .product-form-shell :global([data-smrt-component=\"Input\"].error) {\n border-color: var(--smrt-color-error);\n }\n\n .checkbox-label {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n cursor: pointer;\n }\n \n .form-checkbox {\n width: auto;\n }\n \n .form-hint {\n color: var(--smrt-color-on-surface-variant);\n font-size: var(--smrt-typography-body-small-size, 0.75rem);\n margin-top: 0.25rem;\n }\n\n .error-message {\n color: var(--smrt-color-error);\n font-size: var(--smrt-typography-label-medium-size, 0.75rem);\n margin-top: 0.25rem;\n display: block;\n }\n\n .form-actions {\n display: flex;\n gap: 0.75rem;\n justify-content: flex-end;\n margin-top: 1.5rem;\n padding-top: 1rem;\n border-top: var(--smrt-hairline);\n }\n}\n</style>"],"mappings":";;;;;;;;;;;;;;wCAAA;;KAgBC,MAAG,OAAA;KACD,QAAG,EAAA,MADL,GAAG;KAEC,KAAE,EAAA,MADJ,KAAG;yBACD,IAAE,IAAA;sBAAF,IAAE,CAAA;;MAEA,QAAG,OAAA;4BAAH,OAAG,IAAA;6DAAuC,YAAY,CAAA;qBAAtD,KAAG;;;sBADO,cAAY,SAAA,UAAA;;SAF1B,KAAG;wBAAH,OAAG,CAAA;;MAQD,QAAG,SAAA;4BAAH,KAAG;uEAAuC,SAAK,IAAA,CAAA;qBAA/C,KAAG;;;sBADO,OAAK,SAAA,YAAA;;;;MAKf,IAAC,SAAA;4BAAD,GAAC,IAAA;6DAAsC,WAAW,CAAA;qBAAlD,CAAC;;;sBADS,aAAW,SAAA,YAAA;;KAIvB,QAAG,EAAA,QAAA,QAAA,CAAA;sBAAH,KAAG;;MAEC,QAAG,OAAA;4BAAH,KAAG;0EAA6C,YAAQ,IAAA,CAAA;qBAAxD,KAAG;;;sBADO,UAAQ,SAAA,YAAA;;;;MAKlB,QAAG,OAAA;SAAH,OAAG,UAAA,QAAA,QACa,MAAI,EAAA,QAAA,UAAI,QAAG;OACvB,OAAI,OAAA;6BAAJ,MAAI,IAAA;oDAAc,GAAG,CAAA,CAAA;sBAArB,IAAI;;UAFR,KAAG;qBAAH,KAAG;;;sBADO,QAAI,QAAA,QAAY,KAAK,SAAS,GAAC,SAAA,YAAA;;SAL7C,KAAG;KAcH,QAAG,EAAA,QAdH,OAAG,CAAA;sBAcH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