@pisell/private-materials 6.2.27 → 6.2.29

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.
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "query" | "pay" | "fullPay" | "refund" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
@@ -1,7 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import React, { useMemo } from 'react';
3
- // import { ProductCard } from '@pisell/materials';
4
- import ProductCard from "../../../../../../materials/src/components/productCard";
3
+ import { ProductCard } from '@pisell/materials';
4
+ // import ProductCard from '../../../../../../materials/src/components/productCard';
5
5
  import useClearCart from "../../hooks/useClearCart";
6
6
  import { useContext } from "../../hooks/useContext";
7
7
  import useAddService from "../../hooks/useAddService";
@@ -470,6 +470,9 @@
470
470
  font-size: 12px;
471
471
  color: #8c8c8c;
472
472
  margin-top: 2px;
473
+ overflow: hidden;
474
+ text-overflow: ellipsis;
475
+ white-space: nowrap;
473
476
  }
474
477
 
475
478
  .pisell-client-card__plugin-icon {
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | "flexible" | {
168
+ }) => number | {
169
169
  type: string;
170
170
  value: number;
171
- };
171
+ } | "flexible";
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "query" | "pay" | "fullPay" | "refund" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
@@ -33,7 +33,7 @@ __export(Product_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(Product_exports);
35
35
  var import_react = __toESM(require("react"));
36
- var import_productCard = __toESM(require("../../../../../../materials/src/components/productCard"));
36
+ var import_materials = require("@pisell/materials");
37
37
  var import_useClearCart = __toESM(require("../../hooks/useClearCart"));
38
38
  var import_useContext = require("../../hooks/useContext");
39
39
  var import_useAddService = __toESM(require("../../hooks/useAddService"));
@@ -95,11 +95,11 @@ var Product = (props) => {
95
95
  return (0, import_react.useMemo)(() => {
96
96
  console.log("render cart");
97
97
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
98
- let Comp = import_productCard.default;
98
+ let Comp = import_materials.ProductCard;
99
99
  let isRetail;
100
100
  if (state.scenario === "booking2") {
101
101
  isRetail = (0, import_utils.isNormalProductByDurationSchedule)(item == null ? void 0 : item._origin);
102
- Comp = isRetail ? import_productCard.default.V2 : import_productCard.default;
102
+ Comp = isRetail ? import_materials.ProductCard.V2 : import_materials.ProductCard;
103
103
  }
104
104
  return /* @__PURE__ */ import_react.default.createElement(
105
105
  Comp,
@@ -470,6 +470,9 @@
470
470
  font-size: 12px;
471
471
  color: #8c8c8c;
472
472
  margin-top: 2px;
473
+ overflow: hidden;
474
+ text-overflow: ellipsis;
475
+ white-space: nowrap;
473
476
  }
474
477
 
475
478
  .pisell-client-card__plugin-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.2.27",
3
+ "version": "6.2.29",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,8 +60,8 @@
60
60
  "react-resizable": "^3.0.5",
61
61
  "styled-components": "^6.0.0-rc.3",
62
62
  "@pisell/icon": "0.0.11",
63
+ "@pisell/materials": "6.2.28",
63
64
  "@pisell/utils": "3.0.0",
64
- "@pisell/materials": "6.2.27",
65
65
  "@pisell/date-picker": "3.0.4"
66
66
  },
67
67
  "peerDependencies": {