@pisell/private-materials 6.12.315 → 6.12.317
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/HDLKiosk/app/contracts/config.js +2 -2
- package/es/components/HDLKiosk/app/manifest.js +0 -12
- package/es/components/HDLKiosk/components/common/HDLKioskSkuOptionsSelection/index.js +8 -12
- package/es/components/HDLKiosk/components/common/HDLKioskSkuOptionsSelection/index.less +13 -4
- package/es/components/HDLKiosk/components/overlays/CartDrawer/index.less +2 -2
- package/es/components/HDLKiosk/components/shell/HDLKioskFloatingBar/index.less +14 -6
- package/es/components/HDLKiosk/components/shell/HDLKioskOrderSummary/index.less +1 -1
- package/es/components/HDLKiosk/components/shell/HDLKioskShell/index.less +1 -1
- package/es/components/HDLKiosk/docs/01-/346/240/270/345/277/203/350/277/220/350/241/214/346/234/272/345/210/266.md +3 -14
- package/es/components/HDLKiosk/docs/03-/344/270/232/345/212/241/346/265/201/347/250/213/344/270/216/344/272/244/344/272/222/350/247/204/345/210/231.md +1 -1
- package/es/components/HDLKiosk/docs/04-/350/256/276/345/244/207/344/270/216/347/247/260/351/207/215.md +1 -3
- package/es/components/HDLKiosk/docs/10-/345/244/232/347/242/227/347/247/260/351/207/215/344/270/273/345/225/206/345/223/201/346/224/271/351/200/240/346/226/271/346/241/210.md +4 -4
- package/es/components/HDLKiosk/index.less +5 -0
- package/es/components/HDLKiosk/slices/cart/Screen/index.less +1 -1
- package/es/components/HDLKiosk/slices/catalog/Screen/index.less +4 -12
- package/es/components/HDLKiosk/slices/customization/PrimaryProductSelection/index.less +1 -1
- package/es/components/HDLKiosk/slices/customization/Screen/index.less +1 -8
- package/es/components/HDLKiosk/slices/fulfillment/Screen/index.less +9 -3
- package/es/components/HDLKiosk/slices/payment/Screen/index.js +1 -1
- package/es/components/HDLKiosk/slices/payment/Screen/index.less +1 -1
- package/es/components/HDLKiosk/ui/ScreenRenderer.js +2 -1
- package/es/plus/productSelect/ProductCard/presets/kioskCatalog.js +1 -1
- package/es/plus/productSelect/ProductCard/presets/kioskCatalog.less +13 -1
- package/lib/components/HDLKiosk/app/contracts/config.js +2 -1
- package/lib/components/HDLKiosk/app/manifest.js +0 -12
- package/lib/components/HDLKiosk/components/common/HDLKioskSkuOptionsSelection/index.js +8 -12
- package/lib/components/HDLKiosk/components/common/HDLKioskSkuOptionsSelection/index.less +13 -4
- package/lib/components/HDLKiosk/components/overlays/CartDrawer/index.less +2 -2
- package/lib/components/HDLKiosk/components/shell/HDLKioskFloatingBar/index.less +14 -6
- package/lib/components/HDLKiosk/components/shell/HDLKioskOrderSummary/index.less +1 -1
- package/lib/components/HDLKiosk/components/shell/HDLKioskShell/index.less +1 -1
- package/lib/components/HDLKiosk/docs/01-/346/240/270/345/277/203/350/277/220/350/241/214/346/234/272/345/210/266.md +3 -14
- package/lib/components/HDLKiosk/docs/03-/344/270/232/345/212/241/346/265/201/347/250/213/344/270/216/344/272/244/344/272/222/350/247/204/345/210/231.md +1 -1
- package/lib/components/HDLKiosk/docs/04-/350/256/276/345/244/207/344/270/216/347/247/260/351/207/215.md +1 -3
- package/lib/components/HDLKiosk/docs/10-/345/244/232/347/242/227/347/247/260/351/207/215/344/270/273/345/225/206/345/223/201/346/224/271/351/200/240/346/226/271/346/241/210.md +4 -4
- package/lib/components/HDLKiosk/index.less +5 -0
- package/lib/components/HDLKiosk/slices/cart/Screen/index.less +1 -1
- package/lib/components/HDLKiosk/slices/catalog/Screen/index.less +4 -12
- package/lib/components/HDLKiosk/slices/customization/PrimaryProductSelection/index.less +1 -1
- package/lib/components/HDLKiosk/slices/customization/Screen/index.less +1 -8
- package/lib/components/HDLKiosk/slices/fulfillment/Screen/index.less +9 -3
- package/lib/components/HDLKiosk/slices/payment/Screen/index.js +1 -1
- package/lib/components/HDLKiosk/slices/payment/Screen/index.less +1 -1
- package/lib/components/HDLKiosk/ui/ScreenRenderer.js +2 -1
- package/lib/plus/productSelect/ProductCard/presets/kioskCatalog.js +1 -1
- package/lib/plus/productSelect/ProductCard/presets/kioskCatalog.less +13 -1
- package/package.json +2 -2
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
left: 18px;
|
|
7
7
|
z-index: 8;
|
|
8
8
|
display: grid;
|
|
9
|
-
min-height:
|
|
9
|
+
min-height: var(--hdl-bottom-bar-height);
|
|
10
10
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
11
11
|
align-items: center;
|
|
12
12
|
gap: 18px;
|
|
13
13
|
border: 1px solid rgba(89, 113, 166, 0.4);
|
|
14
14
|
border-radius: 1079px;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 27px 26px;
|
|
16
16
|
background: rgba(14, 22, 40, 0.96);
|
|
17
17
|
color: #fff;
|
|
18
18
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
.hdl-floating-bar__button {
|
|
67
67
|
display: inline-flex;
|
|
68
68
|
min-width: 196px;
|
|
69
|
-
min-height:
|
|
69
|
+
min-height: 117px;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
72
|
gap: 14px;
|
|
@@ -153,9 +153,17 @@
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.hdl-floating-bar__trailing .hdl-floating-bar__button {
|
|
156
|
-
border-color:
|
|
157
|
-
background:
|
|
156
|
+
border-color: var(--hdl-brand);
|
|
157
|
+
background:
|
|
158
|
+
radial-gradient(
|
|
159
|
+
ellipse 80% 70% at 50% 35%,
|
|
160
|
+
rgba(255, 255, 255, 0.24),
|
|
161
|
+
transparent
|
|
162
|
+
),
|
|
163
|
+
var(--hdl-brand);
|
|
158
164
|
color: #fff;
|
|
159
|
-
box-shadow: 0
|
|
165
|
+
box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.18),
|
|
166
|
+
inset 0 -4px 6px rgba(0, 0, 0, 0.12),
|
|
167
|
+
0 15px 32px rgba(178, 13, 18, 0.3);
|
|
160
168
|
}
|
|
161
169
|
}
|
|
@@ -225,7 +225,7 @@ Step ID 只标识“一次出现”。Runtime 判断加载哪类数据、是否
|
|
|
225
225
|
- Screen 内有哪些不会离开节点的 Command;
|
|
226
226
|
- 使用该 Slice 的流程在支付前需要哪些业务事实。
|
|
227
227
|
|
|
228
|
-
例如 `
|
|
228
|
+
例如 `customization.complete` 执行主商品同步,`paymentMethod.complete` 检查 Host 已确认支付成功。Shell 登录通过 `identity.sync` Command 执行。EFTPOS 派发和店员支付授权是 Payment 页面 Command,不作为流程 Resolution。`defineApplication` 从 Slice 自动生成 Activity Contract 与 Operation 注册信息;远端定义只看到 `Slice ID + 标准 Resolution → target`,不能替换这些安全规则。
|
|
229
229
|
|
|
230
230
|
Slice 的业务定义与 React View 文件分离但按 feature 并置:Slice `id` 是 Workflow 和 Actor 使用的业务 Activity;`surface.id` 会被 Compiler 复制为 Workflow Node 的 `surfaceId`,供 Shell、Controller 和数据加载策略使用;`ui/views.ts` 按 Activity 注册本地可信 View。各 Slice 的 `view.tsx` 仍负责 ViewModel 派生与组件装配,但不会进入 `defineSlice` 或 Workflow Definition。
|
|
231
231
|
|
|
@@ -241,7 +241,7 @@ Slice 的业务定义与 React View 文件分离但按 feature 并置:Slice `i
|
|
|
241
241
|
|
|
242
242
|
Compiler 从实际使用的 Slice 汇总 Checkout Requirement ID,但不把判断函数或 Host 字段写入 Workflow。当前 HDLKiosk 默认注册表为空;未来增加其他业务要求时仍由 [`checkoutRequirements.ts`](../runtime/operations/checkoutRequirements.ts) 集中判断。
|
|
243
243
|
|
|
244
|
-
`WorkflowEvent` 同时约束 Activity、Resolution 和必要输入:例如 `
|
|
244
|
+
`WorkflowEvent` 同时约束 Activity、Resolution 和必要输入:例如 `fulfillment.complete` 必须携带 fulfillment context patch。Back 直接调用 `actor.back(intentId)` 并取得 `navigated | boundary | ignored` 结果,不进入 Resolution Event mailbox。Barcode 入口的条码输入不是 Workflow Event,而是 Session Controller 在发布会话前交给 `barcode.consume` 的 Command 输入。Screen Command 由 `OperationInputMap` 约束 Command ID 与输入类型。
|
|
245
245
|
|
|
246
246
|
Step 可选声明 Modal 展示关系:
|
|
247
247
|
|
|
@@ -404,18 +404,7 @@ receipt 是 Result DTO 上的窄字段,不是新 Store、事件源或第二套
|
|
|
404
404
|
|
|
405
405
|
### 8.3 Customer Controller
|
|
406
406
|
|
|
407
|
-
Identity
|
|
408
|
-
|
|
409
|
-
```text
|
|
410
|
-
BigSale Login2/Register2
|
|
411
|
-
→ 暂存已认证 customer
|
|
412
|
-
→ identity.complete(customerId)
|
|
413
|
-
→ identity.sync Acceptance Operation
|
|
414
|
-
→ Adapter customer.select + consistency + repricing
|
|
415
|
-
→ 成功后进入下一节点
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
认证 UI 通过 HDLKiosk 应用展示层插槽注入,不进入 `defineSlice`、View 注册表或 Kernel。Slice 的 `complete` 在携带输入时执行 `identity.sync`;已登录客户的自动略过使用 `omit` 且不携带输入,因此不会重复写客户。
|
|
407
|
+
三条内置 Workflow 不包含 Identity 节点。会员登录由 Shell 在当前流程页面发起,认证 UI 通过 HDLKiosk 应用展示层插槽注入。
|
|
419
408
|
|
|
420
409
|
Shell 登录不是 Workflow 跳转,而是 session-level 插入 Operation:
|
|
421
410
|
|
|
@@ -77,7 +77,7 @@ Entry 消费第一个有效重量边沿后启动以 Fulfillment 为首节点的
|
|
|
77
77
|
|
|
78
78
|
## 6. 会员中途插入
|
|
79
79
|
|
|
80
|
-
Identity
|
|
80
|
+
三条内置流程不再经过 Identity 节点。Shell 可在本地策略允许的页面执行 `identity.sync`。登录、Customer 写入、重报价和 Projection 验证成功后仍留在原节点;`partial`/`unknown` 不得带着未确认价格继续。
|
|
81
81
|
|
|
82
82
|
## 7. UI 和修改规则
|
|
83
83
|
|
|
@@ -116,8 +116,7 @@ ScanPolicyDecision
|
|
|
116
116
|
3. Runtime 创建 Session、完成 `session.ensure` 并发布 Session;
|
|
117
117
|
4. WorkflowView 挂载后确认 `markPresented`,Router 才开始消费;这保证 SKU 选择发生在具体流程页面内;
|
|
118
118
|
5. 所有码均由同一 FIFO 串行执行 `barcode.consume`。首码也使用原有消费函数,再次查找通常命中 OS 的本地商品或识别缓存;
|
|
119
|
-
6.
|
|
120
|
-
7. 停留在 Identity 期间,主屏等外部来源更新为有效会员时,视图重评当前 Slice 的 redirect;不重复写入 customer,也不提前打断尚未完成的首码消费。
|
|
119
|
+
6. 启用主商品定制时,Quick 直接进入 Customization,完成或跳过选碗后消费会员/券首码;未启用时直接进入 Catalog,在页面就绪后消费。券码本身不代表会员已登录,扫码后的会员状态由 Sales Projection 更新。
|
|
121
120
|
|
|
122
121
|
页面挂载确认只表示 UI 已就绪。交易可写性、支付冻结、队列取消和去重仍由 Runtime 负责,Screen 不持有扫码任务。
|
|
123
122
|
|
|
@@ -133,7 +132,6 @@ ScanPolicyDecision
|
|
|
133
132
|
| --- | --- | --- |
|
|
134
133
|
| Entry、无 Session | 接受 | 识别后选择 Barcode/Quick,页面就绪后消费首码 |
|
|
135
134
|
| Entry、Quick/Scale 正在启动 | 接受并暂存 | 绑定 pending session,Session 可写后消费 |
|
|
136
|
-
| Identity | 接受 | 消费后由 identity slice 按客户身份重评当前节点 |
|
|
137
135
|
| Fulfillment | 接受 | 留在 Fulfillment,刷新全局购物车 |
|
|
138
136
|
| Customization | 接受 | 留在 Customization;主称重商品码须走防重复规则 |
|
|
139
137
|
| Catalog | 接受 | 留在 Catalog,刷新商品与金额 |
|
|
@@ -66,9 +66,9 @@ flowchart TD
|
|
|
66
66
|
|
|
67
67
|
| 入口 | 称重区结束后继续 |
|
|
68
68
|
| --- | --- |
|
|
69
|
-
| quick |
|
|
70
|
-
| scale | 多碗称重区 →
|
|
71
|
-
| barcode | catalog →
|
|
69
|
+
| quick | 多碗称重区 → catalog → fulfillment → cart → payment |
|
|
70
|
+
| scale | 多碗称重区 → catalog → fulfillment → cart → payment |
|
|
71
|
+
| barcode | catalog → 原“是否添加主商品”提示 → 多碗称重区 → fulfillment → cart → payment |
|
|
72
72
|
|
|
73
73
|
barcode 原 `primaryProductPrompt` 是首次是否称重的询问,附件是保存后的下一碗询问,二者不能混用。“没有了”也不能直接跳支付,必须尊重各入口后续步骤。
|
|
74
74
|
|
|
@@ -119,7 +119,7 @@ type WeightedPhase =
|
|
|
119
119
|
2. command 返回成功后,业务 runtime 更新到 `askNext`,此时才展示附件中的“已加入购物车”。
|
|
120
120
|
3. “还有一碗”和秤事件只改变业务 runtime 阶段,不触发外层 Workflow 跳转。
|
|
121
121
|
4. “没有了”提交 customization complete,首次空草稿跳过提交 omit;这些离开动作只做状态校验,不再次执行保存 writer。必须校验无未完成写入、无未处理草稿/未知结果,防止完成事件绕开保存。
|
|
122
|
-
5. 编辑保存成功走返回来源页逻辑,不显示下一碗弹窗,不再重走 catalog
|
|
122
|
+
5. 编辑保存成功走返回来源页逻辑,不显示下一碗弹窗,不再重走 catalog。继续加碗由称重完成后的下一碗询问启动,购物车不增加入口。
|
|
123
123
|
|
|
124
124
|
`session.executeCommand()` 已能返回 `OperationResult`,但 UI 的 `send()` 目前是无返回值,dispatcher 只记录 busy/error。因此需增加有类型的 command 调用/完成桥接,让业务 runtime 消费本次 receipt;不能靠观察总行数变化推断是哪次保存成功。无需让展示组件直接调 `context.cart`。
|
|
125
125
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.pisell-hdl-kiosk {
|
|
2
2
|
--hdl-brand: #b20d12;
|
|
3
3
|
--hdl-brand-deep: #7f090d;
|
|
4
|
+
--hdl-entry-copy: #e3c68e;
|
|
4
5
|
--hdl-accent: #14998c;
|
|
5
6
|
--hdl-ink: #17191f;
|
|
6
7
|
--hdl-muted: #667085;
|
|
@@ -16,6 +17,10 @@
|
|
|
16
17
|
--hdl-font-page-title: 52px;
|
|
17
18
|
--hdl-control-height: 48px;
|
|
18
19
|
--hdl-kiosk-action-height: 82px;
|
|
20
|
+
--hdl-bottom-bar-height: 188px;
|
|
21
|
+
--hdl-bottom-bar-clearance: calc(
|
|
22
|
+
var(--hdl-bottom-bar-height) + max(30px, env(safe-area-inset-bottom)) + 20px
|
|
23
|
+
);
|
|
19
24
|
position: relative;
|
|
20
25
|
box-sizing: border-box;
|
|
21
26
|
color: var(--hdl-ink);
|
|
@@ -82,9 +82,8 @@
|
|
|
82
82
|
flex: 0 0 var(--hdl-catalog-sidebar-width);
|
|
83
83
|
border-right-color: rgba(255, 255, 255, 0.1);
|
|
84
84
|
background: #202735;
|
|
85
|
-
--pisell-kiosk-cart-capsule-reserved-space:
|
|
86
|
-
|
|
87
|
-
calc(env(safe-area-inset-bottom) + 184px)
|
|
85
|
+
--pisell-kiosk-cart-capsule-reserved-space: var(
|
|
86
|
+
--hdl-bottom-bar-clearance
|
|
88
87
|
);
|
|
89
88
|
}
|
|
90
89
|
|
|
@@ -381,8 +380,8 @@
|
|
|
381
380
|
min-height: 0;
|
|
382
381
|
flex: 1;
|
|
383
382
|
overflow: auto;
|
|
384
|
-
padding: 0 38px
|
|
385
|
-
scroll-padding-bottom:
|
|
383
|
+
padding: 0 38px var(--hdl-bottom-bar-clearance);
|
|
384
|
+
scroll-padding-bottom: var(--hdl-bottom-bar-clearance);
|
|
386
385
|
background: #fff;
|
|
387
386
|
scrollbar-width: thin;
|
|
388
387
|
}
|
|
@@ -435,11 +434,4 @@
|
|
|
435
434
|
box-shadow: none;
|
|
436
435
|
}
|
|
437
436
|
}
|
|
438
|
-
|
|
439
|
-
.hdl-catalog-next {
|
|
440
|
-
border: 0;
|
|
441
|
-
background: linear-gradient(180deg, #20b8aa, #119184);
|
|
442
|
-
color: #fff;
|
|
443
|
-
box-shadow: 0 15px 32px rgba(17, 145, 132, 0.3);
|
|
444
|
-
}
|
|
445
437
|
}
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
min-height: 0;
|
|
280
280
|
flex: 1;
|
|
281
281
|
overflow: auto;
|
|
282
|
-
padding: 35px 11px
|
|
282
|
+
padding: 35px 11px var(--hdl-bottom-bar-clearance);
|
|
283
283
|
scrollbar-width: thin;
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -345,11 +345,4 @@
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
|
|
349
|
-
.hdl-customization-next {
|
|
350
|
-
border: 0;
|
|
351
|
-
background: linear-gradient(180deg, #20b8aa, #119184);
|
|
352
|
-
color: #fff;
|
|
353
|
-
box-shadow: 0 15px 32px rgba(17, 145, 132, 0.3);
|
|
354
|
-
}
|
|
355
348
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
min-height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
|
-
padding: 58px 58px
|
|
6
|
+
padding: 58px 58px var(--hdl-bottom-bar-clearance);
|
|
7
7
|
background: radial-gradient(
|
|
8
8
|
circle at 82% 8%,
|
|
9
9
|
rgba(245, 184, 75, 0.22),
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
position: relative;
|
|
50
50
|
display: grid;
|
|
51
51
|
min-height: 513px;
|
|
52
|
-
grid-template-rows:
|
|
52
|
+
grid-template-rows: auto 1fr;
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
border: 2px solid #d6dbe5;
|
|
55
55
|
border-radius: 24px;
|
|
@@ -74,15 +74,21 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.hdl-fulfillment-card__visual {
|
|
77
|
+
position: relative;
|
|
78
|
+
display: block;
|
|
79
|
+
width: 100%;
|
|
80
|
+
aspect-ratio: 4 / 3;
|
|
81
|
+
align-self: start;
|
|
77
82
|
min-width: 0;
|
|
78
83
|
min-height: 0;
|
|
79
84
|
overflow: hidden;
|
|
80
85
|
background: #f3d5b5;
|
|
81
86
|
}
|
|
82
87
|
|
|
83
|
-
.hdl-fulfillment-card__visual,
|
|
84
88
|
.hdl-fulfillment-card__visual img,
|
|
85
89
|
.hdl-fulfillment-card__fallback {
|
|
90
|
+
position: absolute;
|
|
91
|
+
inset: 0;
|
|
86
92
|
display: block;
|
|
87
93
|
width: 100%;
|
|
88
94
|
height: 100%;
|
|
@@ -244,7 +244,7 @@ function CheckoutScreen({ model, orderBar, send }) {
|
|
|
244
244
|
role: model.paymentMethodsErrorReference ? "alert" : "status"
|
|
245
245
|
}, _pisell_utils.locales.getText("pisell2.hdl-kiosk.payment-methods-unavailable")) : null, model.paymentMethods.map((method) => {
|
|
246
246
|
const eftpos = method.eftpos;
|
|
247
|
-
const displayName = method.name
|
|
247
|
+
const displayName = method.name === "EFTPOS-Linkly" ? "card" : method.name;
|
|
248
248
|
return /* @__PURE__ */ react.default.createElement("button", {
|
|
249
249
|
key: method.id,
|
|
250
250
|
type: "button",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
|
|
2
2
|
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
|
|
3
|
+
const require_config = require("../app/contracts/config.js");
|
|
3
4
|
const require_index = require("../components/common/BlockingNotice/index.js");
|
|
4
5
|
const require_views = require("./views.js");
|
|
5
6
|
let react = require("react");
|
|
@@ -12,7 +13,7 @@ let _pisell_utils = require("@pisell/utils");
|
|
|
12
13
|
* Surface 保留的 Page,再按顺序叠加 Modal Slice View。
|
|
13
14
|
* 边界:只组装 View Context,不调用 Host、不创建 ViewModel、不决定下一节点。
|
|
14
15
|
*/
|
|
15
|
-
function ScreenRenderer({ definition, snapshot, sales, send, commandState = { busy: false }, resetting, capabilities, businessMode = "prototype", sourceData, paymentResult, scaleMinimumWeightKg = .
|
|
16
|
+
function ScreenRenderer({ definition, snapshot, sales, send, commandState = { busy: false }, resetting, capabilities, businessMode = "prototype", sourceData, paymentResult, scaleMinimumWeightKg = require_config.DEFAULT_HDL_KIOSK_CONFIG.scaleTriggerMinimumWeightKg, renderIdentityAuth, memberAction = {
|
|
16
17
|
member: false,
|
|
17
18
|
canLogin: false,
|
|
18
19
|
busy: false,
|
|
@@ -26,7 +26,7 @@ function createKioskCatalogProductCardConfig({ title, pricePresentation, currenc
|
|
|
26
26
|
skuImageConfig: {
|
|
27
27
|
isCover: true,
|
|
28
28
|
width: "100%",
|
|
29
|
-
height: "
|
|
29
|
+
height: "auto",
|
|
30
30
|
isTextFallback: true,
|
|
31
31
|
background: "#f0f2f5",
|
|
32
32
|
radius: 0,
|
|
@@ -29,6 +29,17 @@
|
|
|
29
29
|
gap: 0 !important;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.pisell-product-sku__card-cover-image {
|
|
33
|
+
aspect-ratio: 4 / 3;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pisell-product-sku__card-cover-img,
|
|
38
|
+
.pisell-product-sku__card-cover-text {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
.pisell-product-sku__card-cover-image,
|
|
33
44
|
.pisell-product-sku__card-cover-img,
|
|
34
45
|
.pisell-product-sku__card-cover-text {
|
|
@@ -66,7 +77,8 @@
|
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
.pisell-product-sku__card-mask {
|
|
69
|
-
height:
|
|
80
|
+
height: auto;
|
|
81
|
+
aspect-ratio: 4 / 3;
|
|
70
82
|
align-items: center;
|
|
71
83
|
}
|
|
72
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.317",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"styled-components": "^6.0.0-rc.3",
|
|
73
73
|
"use-sync-external-store": "^1.6.0",
|
|
74
74
|
"@pisell/pi-payment-sdk": "0.0.3",
|
|
75
|
-
"@pisell/utils": "3.0.7",
|
|
76
75
|
"@pisell/materials": "6.12.79",
|
|
76
|
+
"@pisell/utils": "3.0.7",
|
|
77
77
|
"@pisell/icon": "0.0.11",
|
|
78
78
|
"@pisell/date-picker": "3.0.12"
|
|
79
79
|
},
|