@pisell/private-materials 6.12.314 → 6.12.316

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.
@@ -49,7 +49,7 @@
49
49
  position: relative;
50
50
  display: grid;
51
51
  min-height: 513px;
52
- grid-template-rows: clamp(310px, 35vw, 400px) auto;
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%;
@@ -17,6 +17,8 @@ function _executeEftposPayment() {
17
17
  let shouldDiscardPrepared = false;
18
18
  try {
19
19
  notifyMainScreenPayment(() => mainScreenGuard === null || mainScreenGuard === void 0 ? void 0 : mainScreenGuard.show());
20
+ if (typeof (baseSales === null || baseSales === void 0 ? void 0 : baseSales.ensureLocalOrderNumbersForCheckout) !== "function") throw new Error("当前版本不支持本地订单编号,请更新应用后重试");
21
+ yield baseSales.ensureLocalOrderNumbersForCheckout();
20
22
  if (piProvider) {
21
23
  prepared = yield preparePendingEftposPayment({
22
24
  amount,
@@ -24,7 +24,7 @@ function createKioskCatalogProductCardConfig({ title, pricePresentation, currenc
24
24
  skuImageConfig: {
25
25
  isCover: true,
26
26
  width: "100%",
27
- height: "clamp(170px, 24vw, 270px)",
27
+ height: "auto",
28
28
  isTextFallback: true,
29
29
  background: "#f0f2f5",
30
30
  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: clamp(170px, 24vw, 270px);
80
+ height: auto;
81
+ aspect-ratio: 4 / 3;
70
82
  align-items: center;
71
83
  }
72
84
 
@@ -49,7 +49,7 @@
49
49
  position: relative;
50
50
  display: grid;
51
51
  min-height: 513px;
52
- grid-template-rows: clamp(310px, 35vw, 400px) auto;
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%;
@@ -17,6 +17,8 @@ function _executeEftposPayment() {
17
17
  let shouldDiscardPrepared = false;
18
18
  try {
19
19
  require_mainScreenPaymentGuard.notifyMainScreenPayment(() => mainScreenGuard === null || mainScreenGuard === void 0 ? void 0 : mainScreenGuard.show());
20
+ if (typeof (baseSales === null || baseSales === void 0 ? void 0 : baseSales.ensureLocalOrderNumbersForCheckout) !== "function") throw new Error("当前版本不支持本地订单编号,请更新应用后重试");
21
+ yield baseSales.ensureLocalOrderNumbersForCheckout();
20
22
  if (piProvider) {
21
23
  prepared = yield require_pendingEftposLifecycle.preparePendingEftposPayment({
22
24
  amount,
@@ -26,7 +26,7 @@ function createKioskCatalogProductCardConfig({ title, pricePresentation, currenc
26
26
  skuImageConfig: {
27
27
  isCover: true,
28
28
  width: "100%",
29
- height: "clamp(170px, 24vw, 270px)",
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: clamp(170px, 24vw, 270px);
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.314",
3
+ "version": "6.12.316",
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/icon": "0.0.11",
76
+ "@pisell/utils": "3.0.7",
77
77
  "@pisell/materials": "6.12.79",
78
78
  "@pisell/date-picker": "3.0.12"
79
79
  },