@pisell/private-materials 6.6.59 → 6.6.61

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.
Files changed (95) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/components/footer/utils.js +79 -75
  12. package/es/components/eftposPay/hooks.d.ts +1 -1
  13. package/es/components/eftposPay/store/index.d.ts +2 -2
  14. package/es/components/index.d.ts +2 -1
  15. package/es/components/index.js +2 -1
  16. package/es/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
  17. package/es/components/pisellCashCounting/PisellCashCounting.js +121 -0
  18. package/es/components/pisellCashCounting/PisellCashCounting.less +263 -0
  19. package/es/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
  20. package/es/components/pisellCashCounting/components/CashCountingModal/index.js +250 -0
  21. package/es/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
  22. package/es/components/pisellCashCounting/hooks.d.ts +21 -0
  23. package/es/components/pisellCashCounting/hooks.js +193 -0
  24. package/es/components/pisellCashCounting/index.d.ts +2 -0
  25. package/es/components/pisellCashCounting/index.js +1 -0
  26. package/es/components/pisellCashCounting/locales.d.ts +118 -0
  27. package/es/components/pisellCashCounting/locales.js +117 -0
  28. package/es/components/pisellCashCounting/types.d.ts +85 -0
  29. package/es/components/pisellCashCounting/types.js +1 -0
  30. package/es/components/pisellCashCounting/utils.d.ts +10 -0
  31. package/es/components/pisellCashCounting/utils.js +40 -0
  32. package/es/hooks/useResponsive.d.ts +8 -0
  33. package/es/hooks/useResponsive.js +43 -0
  34. package/es/hooks/useThemeTokens.d.ts +7 -0
  35. package/es/hooks/useThemeTokens.js +20 -0
  36. package/es/index.d.ts +1 -0
  37. package/es/index.js +2 -1
  38. package/es/pro/NumericStepper/index.d.ts +75 -0
  39. package/es/pro/NumericStepper/index.js +301 -0
  40. package/es/pro/NumericStepper/index.less +364 -0
  41. package/es/pro/keyboards/index.d.ts +2 -0
  42. package/es/pro/keyboards/index.js +1 -0
  43. package/es/pro/keyboards/locales.d.ts +38 -0
  44. package/es/pro/keyboards/locales.js +57 -0
  45. package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  46. package/es/pro/keyboards/numberKeyboard/index.js +523 -0
  47. package/es/pro/keyboards/numberKeyboard/index.less +59 -0
  48. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  49. package/es/pro/keyboards/numberKeyboard/types.js +1 -0
  50. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
  51. package/es/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
  52. package/lib/components/booking/components/footer/utils.js +6 -3
  53. package/lib/components/eftposPay/hooks.d.ts +1 -1
  54. package/lib/components/eftposPay/store/index.d.ts +2 -2
  55. package/lib/components/index.d.ts +2 -1
  56. package/lib/components/index.js +3 -0
  57. package/lib/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
  58. package/lib/components/pisellCashCounting/PisellCashCounting.js +168 -0
  59. package/lib/components/pisellCashCounting/PisellCashCounting.less +263 -0
  60. package/lib/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
  61. package/lib/components/pisellCashCounting/components/CashCountingModal/index.js +171 -0
  62. package/lib/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
  63. package/lib/components/pisellCashCounting/hooks.d.ts +21 -0
  64. package/lib/components/pisellCashCounting/hooks.js +189 -0
  65. package/lib/components/pisellCashCounting/index.d.ts +2 -0
  66. package/lib/components/pisellCashCounting/index.js +35 -0
  67. package/lib/components/pisellCashCounting/locales.d.ts +118 -0
  68. package/lib/components/pisellCashCounting/locales.js +141 -0
  69. package/lib/components/pisellCashCounting/types.d.ts +85 -0
  70. package/lib/components/pisellCashCounting/types.js +17 -0
  71. package/lib/components/pisellCashCounting/utils.d.ts +10 -0
  72. package/lib/components/pisellCashCounting/utils.js +59 -0
  73. package/lib/hooks/useResponsive.d.ts +8 -0
  74. package/lib/hooks/useResponsive.js +48 -0
  75. package/lib/hooks/useThemeTokens.d.ts +7 -0
  76. package/lib/hooks/useThemeTokens.js +40 -0
  77. package/lib/index.d.ts +1 -0
  78. package/lib/index.js +3 -0
  79. package/lib/pro/NumericStepper/index.d.ts +75 -0
  80. package/lib/pro/NumericStepper/index.js +338 -0
  81. package/lib/pro/NumericStepper/index.less +364 -0
  82. package/lib/pro/keyboards/index.d.ts +2 -0
  83. package/lib/pro/keyboards/index.js +39 -0
  84. package/lib/pro/keyboards/locales.d.ts +38 -0
  85. package/lib/pro/keyboards/locales.js +61 -0
  86. package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  87. package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
  88. package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
  89. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  90. package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
  91. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
  92. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
  93. package/lowcode/pisell-cash-counting/meta.ts +167 -0
  94. package/lowcode/pisell-cash-counting/snippets.ts +13 -0
  95. package/package.json +4 -4
@@ -0,0 +1,35 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellCashCounting/index.tsx
30
+ var pisellCashCounting_exports = {};
31
+ __export(pisellCashCounting_exports, {
32
+ default: () => import_PisellCashCounting.default
33
+ });
34
+ module.exports = __toCommonJS(pisellCashCounting_exports);
35
+ var import_PisellCashCounting = __toESM(require("./PisellCashCounting"));
@@ -0,0 +1,118 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell-cash-counting.countCash': string;
4
+ 'pisell-cash-counting.subtitle': string;
5
+ 'pisell-cash-counting.currency': string;
6
+ 'pisell-cash-counting.bills': string;
7
+ 'pisell-cash-counting.coins': string;
8
+ 'pisell-cash-counting.billsSubtotal': string;
9
+ 'pisell-cash-counting.coinsSubtotal': string;
10
+ 'pisell-cash-counting.subtotal': string;
11
+ 'pisell-cash-counting.total': string;
12
+ 'pisell-cash-counting.clearAll': string;
13
+ 'pisell-cash-counting.cancel': string;
14
+ 'pisell-cash-counting.confirm': string;
15
+ 'pisell-cash-counting.placeholder': string;
16
+ 'pisell-cash-counting.empty': string;
17
+ 'pisell-cash-counting.no-country-config': string;
18
+ 'pisell-cash-counting.manual-vs-count-message-title': string;
19
+ 'pisell-cash-counting.manual-vs-count-message': string;
20
+ 'pisell-cash-counting.use-count-total': string;
21
+ 'pisell-cash-counting.keep-manual-amount': string;
22
+ 'pisell2.customise-item.save': string;
23
+ 'pisell2.booking.info.text.clear': string;
24
+ };
25
+ 'zh-CN': {
26
+ 'pisell-cash-counting.countCash': string;
27
+ 'pisell-cash-counting.subtitle': string;
28
+ 'pisell-cash-counting.currency': string;
29
+ 'pisell-cash-counting.bills': string;
30
+ 'pisell-cash-counting.coins': string;
31
+ 'pisell-cash-counting.billsSubtotal': string;
32
+ 'pisell-cash-counting.coinsSubtotal': string;
33
+ 'pisell-cash-counting.subtotal': string;
34
+ 'pisell-cash-counting.total': string;
35
+ 'pisell-cash-counting.clearAll': string;
36
+ 'pisell-cash-counting.cancel': string;
37
+ 'pisell-cash-counting.confirm': string;
38
+ 'pisell-cash-counting.placeholder': string;
39
+ 'pisell-cash-counting.empty': string;
40
+ 'pisell-cash-counting.no-country-config': string;
41
+ 'pisell-cash-counting.manual-vs-count-message-title': string;
42
+ 'pisell-cash-counting.manual-vs-count-message': string;
43
+ 'pisell-cash-counting.use-count-total': string;
44
+ 'pisell-cash-counting.keep-manual-amount': string;
45
+ 'pisell2.customise-item.save': string;
46
+ 'pisell2.booking.info.text.clear': string;
47
+ };
48
+ 'zh-HK': {
49
+ 'pisell-cash-counting.countCash': string;
50
+ 'pisell-cash-counting.subtitle': string;
51
+ 'pisell-cash-counting.currency': string;
52
+ 'pisell-cash-counting.bills': string;
53
+ 'pisell-cash-counting.coins': string;
54
+ 'pisell-cash-counting.billsSubtotal': string;
55
+ 'pisell-cash-counting.coinsSubtotal': string;
56
+ 'pisell-cash-counting.subtotal': string;
57
+ 'pisell-cash-counting.total': string;
58
+ 'pisell-cash-counting.clearAll': string;
59
+ 'pisell-cash-counting.cancel': string;
60
+ 'pisell-cash-counting.confirm': string;
61
+ 'pisell-cash-counting.placeholder': string;
62
+ 'pisell-cash-counting.empty': string;
63
+ 'pisell-cash-counting.no-country-config': string;
64
+ 'pisell-cash-counting.manual-vs-count-message-title': string;
65
+ 'pisell-cash-counting.manual-vs-count-message': string;
66
+ 'pisell-cash-counting.use-count-total': string;
67
+ 'pisell-cash-counting.keep-manual-amount': string;
68
+ 'pisell2.customise-item.save': string;
69
+ 'pisell2.booking.info.text.clear': string;
70
+ };
71
+ ja: {
72
+ 'pisell-cash-counting.countCash': string;
73
+ 'pisell-cash-counting.subtitle': string;
74
+ 'pisell-cash-counting.currency': string;
75
+ 'pisell-cash-counting.bills': string;
76
+ 'pisell-cash-counting.coins': string;
77
+ 'pisell-cash-counting.billsSubtotal': string;
78
+ 'pisell-cash-counting.coinsSubtotal': string;
79
+ 'pisell-cash-counting.subtotal': string;
80
+ 'pisell-cash-counting.total': string;
81
+ 'pisell-cash-counting.clearAll': string;
82
+ 'pisell-cash-counting.cancel': string;
83
+ 'pisell-cash-counting.confirm': string;
84
+ 'pisell-cash-counting.placeholder': string;
85
+ 'pisell-cash-counting.empty': string;
86
+ 'pisell-cash-counting.no-country-config': string;
87
+ 'pisell-cash-counting.manual-vs-count-message-title': string;
88
+ 'pisell-cash-counting.manual-vs-count-message': string;
89
+ 'pisell-cash-counting.use-count-total': string;
90
+ 'pisell-cash-counting.keep-manual-amount': string;
91
+ 'pisell2.customise-item.save': string;
92
+ 'pisell2.booking.info.text.clear': string;
93
+ };
94
+ pt: {
95
+ 'pisell-cash-counting.countCash': string;
96
+ 'pisell-cash-counting.subtitle': string;
97
+ 'pisell-cash-counting.currency': string;
98
+ 'pisell-cash-counting.bills': string;
99
+ 'pisell-cash-counting.coins': string;
100
+ 'pisell-cash-counting.billsSubtotal': string;
101
+ 'pisell-cash-counting.coinsSubtotal': string;
102
+ 'pisell-cash-counting.subtotal': string;
103
+ 'pisell-cash-counting.total': string;
104
+ 'pisell-cash-counting.clearAll': string;
105
+ 'pisell-cash-counting.cancel': string;
106
+ 'pisell-cash-counting.confirm': string;
107
+ 'pisell-cash-counting.placeholder': string;
108
+ 'pisell-cash-counting.empty': string;
109
+ 'pisell-cash-counting.no-country-config': string;
110
+ 'pisell-cash-counting.manual-vs-count-message-title': string;
111
+ 'pisell-cash-counting.manual-vs-count-message': string;
112
+ 'pisell-cash-counting.use-count-total': string;
113
+ 'pisell-cash-counting.keep-manual-amount': string;
114
+ 'pisell2.customise-item.save': string;
115
+ 'pisell2.booking.info.text.clear': string;
116
+ };
117
+ };
118
+ export default _default;
@@ -0,0 +1,141 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/pisellCashCounting/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ "pisell-cash-counting.countCash": "Count cash",
28
+ "pisell-cash-counting.subtitle": "Enter the quantity for each denomination. The total will be calculated automatically.",
29
+ "pisell-cash-counting.currency": "Currency",
30
+ "pisell-cash-counting.bills": "Bills",
31
+ "pisell-cash-counting.coins": "Coins",
32
+ "pisell-cash-counting.billsSubtotal": "Bills subtotal",
33
+ "pisell-cash-counting.coinsSubtotal": "Coins subtotal",
34
+ "pisell-cash-counting.subtotal": "Subtotal",
35
+ "pisell-cash-counting.total": "Total",
36
+ "pisell-cash-counting.clearAll": "Clear all",
37
+ "pisell-cash-counting.cancel": "Cancel",
38
+ "pisell-cash-counting.confirm": "Confirm",
39
+ "pisell-cash-counting.placeholder": "Please enter",
40
+ "pisell-cash-counting.empty": "No denomination config for this currency.",
41
+ "pisell-cash-counting.no-country-config": "No denomination data is configured for this region. Please contact your system administrator.",
42
+ "pisell-cash-counting.manual-vs-count-message-title": "Tip",
43
+ "pisell-cash-counting.manual-vs-count-message": "The actual amount was edited manually and no longer matches the cash count details.",
44
+ "pisell-cash-counting.use-count-total": "Use counted total",
45
+ "pisell-cash-counting.keep-manual-amount": "Keep manual amount",
46
+ "pisell2.customise-item.save": "Save",
47
+ "pisell2.booking.info.text.clear": "Clear"
48
+ },
49
+ "zh-CN": {
50
+ "pisell-cash-counting.countCash": "数钱",
51
+ "pisell-cash-counting.subtitle": "请输入每个面额的数量,系统将自动计算现金总额。",
52
+ "pisell-cash-counting.currency": "币种",
53
+ "pisell-cash-counting.bills": "纸币",
54
+ "pisell-cash-counting.coins": "硬币",
55
+ "pisell-cash-counting.billsSubtotal": "纸币小计",
56
+ "pisell-cash-counting.coinsSubtotal": "硬币小计",
57
+ "pisell-cash-counting.subtotal": "小计",
58
+ "pisell-cash-counting.total": "合计",
59
+ "pisell-cash-counting.clearAll": "清空",
60
+ "pisell-cash-counting.cancel": "取消",
61
+ "pisell-cash-counting.confirm": "确认",
62
+ "pisell-cash-counting.placeholder": "请输入",
63
+ "pisell-cash-counting.empty": "当前币种暂无面额配置。",
64
+ "pisell-cash-counting.no-country-config": "该国家未配置数据,请联系系统人员",
65
+ "pisell-cash-counting.manual-vs-count-message-title": "提示",
66
+ "pisell-cash-counting.manual-vs-count-message": "实际金额已被手动修改,当前金额与数钱明细不一致。",
67
+ "pisell-cash-counting.use-count-total": "使用数钱金额",
68
+ "pisell-cash-counting.keep-manual-amount": "保留手动金额",
69
+ "pisell2.customise-item.save": "保存",
70
+ "pisell2.booking.info.text.clear": "清空"
71
+ },
72
+ "zh-HK": {
73
+ "pisell-cash-counting.countCash": "數錢",
74
+ "pisell-cash-counting.subtitle": "請輸入每個面額的數量,系統會自動計算現金總額。",
75
+ "pisell-cash-counting.currency": "幣種",
76
+ "pisell-cash-counting.bills": "紙幣",
77
+ "pisell-cash-counting.coins": "硬幣",
78
+ "pisell-cash-counting.billsSubtotal": "紙幣小計",
79
+ "pisell-cash-counting.coinsSubtotal": "硬幣小計",
80
+ "pisell-cash-counting.subtotal": "小計",
81
+ "pisell-cash-counting.total": "合計",
82
+ "pisell-cash-counting.clearAll": "清空",
83
+ "pisell-cash-counting.cancel": "取消",
84
+ "pisell-cash-counting.confirm": "確認",
85
+ "pisell-cash-counting.placeholder": "請輸入",
86
+ "pisell-cash-counting.empty": "目前幣種暫無面額配置。",
87
+ "pisell-cash-counting.no-country-config": "該國家未配置數據,請聯繫系統人員",
88
+ "pisell-cash-counting.manual-vs-count-message-title": "提示",
89
+ "pisell-cash-counting.manual-vs-count-message": "實際金額已被手動修改,當前金額與數錢明細不一致。",
90
+ "pisell-cash-counting.use-count-total": "使用數錢金額",
91
+ "pisell-cash-counting.keep-manual-amount": "保留手動金額",
92
+ "pisell2.customise-item.save": "保存",
93
+ "pisell2.booking.info.text.clear": "清空"
94
+ },
95
+ ja: {
96
+ "pisell-cash-counting.countCash": "現金を数える",
97
+ "pisell-cash-counting.subtitle": "各金種の数量を入力すると、合計金額が自動計算されます。",
98
+ "pisell-cash-counting.currency": "通貨",
99
+ "pisell-cash-counting.bills": "紙幣",
100
+ "pisell-cash-counting.coins": "硬貨",
101
+ "pisell-cash-counting.billsSubtotal": "紙幣小計",
102
+ "pisell-cash-counting.coinsSubtotal": "硬貨小計",
103
+ "pisell-cash-counting.subtotal": "小計",
104
+ "pisell-cash-counting.total": "合計",
105
+ "pisell-cash-counting.clearAll": "クリア",
106
+ "pisell-cash-counting.cancel": "キャンセル",
107
+ "pisell-cash-counting.confirm": "確認",
108
+ "pisell-cash-counting.placeholder": "入力してください",
109
+ "pisell-cash-counting.empty": "この通貨の金種設定がありません。",
110
+ "pisell-cash-counting.no-country-config": "この国・地域の金種データが設定されていません。システム管理者にお問い合わせください。",
111
+ "pisell-cash-counting.manual-vs-count-message-title": "ヒント",
112
+ "pisell-cash-counting.manual-vs-count-message": "実際の金額が手入力で変更され、現在の金額が現金集計の内訳と一致しません。",
113
+ "pisell-cash-counting.use-count-total": "集計金額を使う",
114
+ "pisell-cash-counting.keep-manual-amount": "手入力の金額を残す",
115
+ "pisell2.customise-item.save": "保存",
116
+ "pisell2.booking.info.text.clear": "清空"
117
+ },
118
+ pt: {
119
+ "pisell-cash-counting.countCash": "Contar dinheiro",
120
+ "pisell-cash-counting.subtitle": "Insira a quantidade de cada denominação. O total será calculado automaticamente.",
121
+ "pisell-cash-counting.currency": "Moeda",
122
+ "pisell-cash-counting.bills": "Notas",
123
+ "pisell-cash-counting.coins": "Moedas",
124
+ "pisell-cash-counting.billsSubtotal": "Subtotal de notas",
125
+ "pisell-cash-counting.coinsSubtotal": "Subtotal de moedas",
126
+ "pisell-cash-counting.subtotal": "Subtotal",
127
+ "pisell-cash-counting.total": "Total",
128
+ "pisell-cash-counting.clearAll": "Limpar",
129
+ "pisell-cash-counting.cancel": "Cancelar",
130
+ "pisell-cash-counting.confirm": "Confirmar",
131
+ "pisell-cash-counting.placeholder": "Insira",
132
+ "pisell-cash-counting.empty": "Nenhuma configuração de denominação para esta moeda.",
133
+ "pisell-cash-counting.no-country-config": "Não há dados de denominação configurados para esta região. Contacte o administrador do sistema.",
134
+ "pisell-cash-counting.manual-vs-count-message-title": "Dica",
135
+ "pisell-cash-counting.manual-vs-count-message": "O valor real foi editado manualmente e já não coincide com os detalhes da contagem de numerário.",
136
+ "pisell-cash-counting.use-count-total": "Usar total contado",
137
+ "pisell-cash-counting.keep-manual-amount": "Manter valor manual",
138
+ "pisell2.customise-item.save": "Salvar",
139
+ "pisell2.booking.info.text.clear": "Limpar"
140
+ }
141
+ };
@@ -0,0 +1,85 @@
1
+ import React from 'react';
2
+ import { ButtonProps, InputNumberProps } from 'antd';
3
+ export declare type CashDenominationType = 'bill' | 'coin';
4
+ /** 金额输入与数钱按钮的排列:`vertical` 上下,`horizontal` 左右 */
5
+ export declare type PisellCashCountingLayout = 'vertical' | 'horizontal';
6
+ export interface CurrencyDenominationConfig {
7
+ /** 币种编码,例如 AUD、JPY、USD */
8
+ currency_code: string;
9
+ /** 面额数值 */
10
+ denomination_value: number;
11
+ /** 展示文案,例如 $100、¥10,000、50¢ */
12
+ denomination_label: string;
13
+ /** 面额类型:纸币或硬币 */
14
+ denomination_type: CashDenominationType;
15
+ /** 展示顺序 */
16
+ sort_order: number;
17
+ /** 金额小数位,JPY 为 0,AUD 为 2 */
18
+ decimal_places: number;
19
+ /** 是否启用 */
20
+ is_enabled: boolean;
21
+ /** 国家/地区,可选扩展字段 */
22
+ country_region?: string;
23
+ /** 当前是否生效,可选扩展字段 */
24
+ effective_status?: boolean | 'active' | 'inactive';
25
+ }
26
+ export interface CashCountingDetail {
27
+ denomination: CurrencyDenominationConfig;
28
+ quantity: number;
29
+ amount: number;
30
+ }
31
+ export interface CashCountingConfirmPayload {
32
+ amount: number | string;
33
+ currencyCode: string;
34
+ decimalPlaces: number;
35
+ billSubtotal: number | string;
36
+ coinSubtotal: number | string;
37
+ details: CashCountingDetail[];
38
+ quantities: Record<string, number>;
39
+ }
40
+ export interface PisellCashCountingProps {
41
+ /** 当前金额,受控模式 */
42
+ value?: number;
43
+ /** 默认金额,非受控模式 */
44
+ defaultValue?: number | string;
45
+ /** 币种编码 */
46
+ currencyCode?: string;
47
+ /** 货币符号,不传时按币种默认推断 */
48
+ currencySymbol?: string;
49
+ /** 金额小数位,不传时按面额配置推断 */
50
+ amountPrecision?: number;
51
+ /** 可扩展的币种面额 JSON 配置 */
52
+ denominations?: CurrencyDenominationConfig[];
53
+ /** 禁用整体输入 */
54
+ disabled?: boolean;
55
+ /** 禁用数钱按钮 */
56
+ countDisabled?: boolean;
57
+ /** 金额输入占位 */
58
+ placeholder?: string;
59
+ /** 输入框与数钱按钮的布局,默认上下排列 */
60
+ layout?: PisellCashCountingLayout;
61
+ /** 数钱按钮文案 */
62
+ countCashButtonText?: React.ReactNode;
63
+ /** 弹窗宽度 */
64
+ modalWidth?: number | string;
65
+ /** 价格键盘是否显示货币符号 */
66
+ showCurrencySymbol?: boolean;
67
+ /** 价格键盘是否使用千分位 */
68
+ useThousandsSeparator?: boolean;
69
+ /** 输入框透传属性 */
70
+ inputNumberProps?: Omit<InputNumberProps, 'value' | 'defaultValue' | 'onChange'>;
71
+ /** 数钱按钮透传属性 */
72
+ buttonProps?: ButtonProps;
73
+ /** 自定义类名 */
74
+ className?: string;
75
+ /** 自定义样式 */
76
+ style?: React.CSSProperties;
77
+ /** 金额变化 */
78
+ onChange?: (value: number | string, meta?: {
79
+ source: 'manual' | 'count';
80
+ }) => void;
81
+ /** 点钞确认 */
82
+ onCountConfirm?: (payload: CashCountingConfirmPayload) => void;
83
+ /** 取消点钞 */
84
+ onCountCancel?: () => void;
85
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/pisellCashCounting/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,10 @@
1
+ import { CurrencyDenominationConfig } from './types';
2
+ /** 面额配置唯一键,用于数量映射 */
3
+ export declare const getDenominationId: (item: CurrencyDenominationConfig) => string;
4
+ /** 按小数位规范化金额,避免浮点误差 */
5
+ export declare const normalizeAmount: (value: string | number | null | undefined, precision: number) => number;
6
+ /** 业务规则:是否可作为有效面额参与点钞 */
7
+ export declare const isEffectiveDenomination: (item: CurrencyDenominationConfig) => boolean;
8
+ /** 当前币种下已启用且排序后的面额列表 */
9
+ export declare const getEffectiveDenominationsForCurrency: (denominations: CurrencyDenominationConfig[], currencyCode: string) => CurrencyDenominationConfig[];
10
+ export declare const buildEmptyQuantities: (items: CurrencyDenominationConfig[]) => Record<string, number>;
@@ -0,0 +1,59 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/pisellCashCounting/utils.ts
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ buildEmptyQuantities: () => buildEmptyQuantities,
23
+ getDenominationId: () => getDenominationId,
24
+ getEffectiveDenominationsForCurrency: () => getEffectiveDenominationsForCurrency,
25
+ isEffectiveDenomination: () => isEffectiveDenomination,
26
+ normalizeAmount: () => normalizeAmount
27
+ });
28
+ module.exports = __toCommonJS(utils_exports);
29
+ var getDenominationId = (item) => `${item.currency_code}-${item.denomination_type}-${item.denomination_value}`;
30
+ var normalizeAmount = (value, precision) => {
31
+ const numberValue = Number(String(value ?? 0).replace(/,/g, ""));
32
+ if (!Number.isFinite(numberValue)) {
33
+ return 0;
34
+ }
35
+ const factor = Math.pow(10, precision);
36
+ return Math.round(numberValue * factor) / factor;
37
+ };
38
+ var isEffectiveDenomination = (item) => {
39
+ if (item.is_enabled === false) {
40
+ return false;
41
+ }
42
+ if (item.effective_status === false || item.effective_status === "inactive") {
43
+ return false;
44
+ }
45
+ return true;
46
+ };
47
+ var getEffectiveDenominationsForCurrency = (denominations, currencyCode) => denominations.filter((item) => item.currency_code === currencyCode && isEffectiveDenomination(item)).sort((a, b) => a.sort_order - b.sort_order);
48
+ var buildEmptyQuantities = (items) => items.reduce((acc, item) => {
49
+ acc[getDenominationId(item)] = 0;
50
+ return acc;
51
+ }, {});
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ buildEmptyQuantities,
55
+ getDenominationId,
56
+ getEffectiveDenominationsForCurrency,
57
+ isEffectiveDenomination,
58
+ normalizeAmount
59
+ });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 响应式监听 Hook
3
+ * 监听窗口大小变化,返回当前是否为移动端
4
+ *
5
+ * @param breakpoint - 断点宽度(默认 768px)
6
+ * @returns 是否为移动端
7
+ */
8
+ export declare function useResponsive(breakpoint?: number): boolean;
@@ -0,0 +1,48 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/hooks/useResponsive.ts
20
+ var useResponsive_exports = {};
21
+ __export(useResponsive_exports, {
22
+ useResponsive: () => useResponsive
23
+ });
24
+ module.exports = __toCommonJS(useResponsive_exports);
25
+ var import_react = require("react");
26
+ function useResponsive(breakpoint = 768) {
27
+ const [isMobile, setIsMobile] = (0, import_react.useState)(
28
+ typeof window !== "undefined" ? window.innerWidth < breakpoint : false
29
+ );
30
+ (0, import_react.useEffect)(() => {
31
+ if (typeof window === "undefined") {
32
+ return;
33
+ }
34
+ const handleResize = () => {
35
+ setIsMobile(window.innerWidth < breakpoint);
36
+ };
37
+ window.addEventListener("resize", handleResize);
38
+ handleResize();
39
+ return () => {
40
+ window.removeEventListener("resize", handleResize);
41
+ };
42
+ }, [breakpoint]);
43
+ return isMobile;
44
+ }
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ useResponsive
48
+ });
@@ -0,0 +1,7 @@
1
+ declare type ThemeInput = {
2
+ token?: {
3
+ colorPrimary?: string;
4
+ };
5
+ };
6
+ declare const useThemeTokens: (themeInput?: ThemeInput) => any;
7
+ export default useThemeTokens;
@@ -0,0 +1,40 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/hooks/useThemeTokens.ts
20
+ var useThemeTokens_exports = {};
21
+ __export(useThemeTokens_exports, {
22
+ default: () => useThemeTokens_default
23
+ });
24
+ module.exports = __toCommonJS(useThemeTokens_exports);
25
+ var import_antd = require("antd");
26
+ var themeTokenCache = /* @__PURE__ */ new Map();
27
+ var useThemeTokens = (themeInput) => {
28
+ var _a;
29
+ const { useToken, getDesignToken } = import_antd.theme;
30
+ const { token: antdToken } = useToken();
31
+ const overrideColorPrimary = ((_a = themeInput == null ? void 0 : themeInput.token) == null ? void 0 : _a.colorPrimary) || antdToken.colorPrimary;
32
+ const cached = themeTokenCache.get(overrideColorPrimary);
33
+ if (cached) return cached;
34
+ const computed = getDesignToken({
35
+ token: { colorPrimary: overrideColorPrimary }
36
+ });
37
+ themeTokenCache.set(overrideColorPrimary, computed);
38
+ return computed;
39
+ };
40
+ var useThemeTokens_default = useThemeTokens;
package/lib/index.d.ts CHANGED
@@ -77,3 +77,4 @@ export { default as SaasRole } from './plus/saasRole';
77
77
  export { default as SaasTeamMembers } from './plus/saasTeamMembers';
78
78
  export type { SaasTeamMembersProps } from './plus/saasTeamMembers/type';
79
79
  export { default as SaasAttendance } from './plus/saasAttendance';
80
+ export { default as PisellCashCounting } from './components/pisellCashCounting';
package/lib/index.js CHANGED
@@ -77,6 +77,7 @@ __export(src_exports, {
77
77
  POSOperatorAuth: () => import_admin.POSOperatorAuth,
78
78
  PinModal: () => import_pinModal.default,
79
79
  PinVerifyModal: () => import_pinVerifyModal.default,
80
+ PisellCashCounting: () => import_pisellCashCounting.default,
80
81
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
81
82
  ProNumberKeyboard: () => import_numberKeyboard.default,
82
83
  ProNumberSelector: () => import_pisellNumberSelector.default,
@@ -196,6 +197,7 @@ var import_registry = __toESM(require("./components/systemSettings/registry"));
196
197
  var import_saasRole = __toESM(require("./plus/saasRole"));
197
198
  var import_saasTeamMembers = __toESM(require("./plus/saasTeamMembers"));
198
199
  var import_saasAttendance = __toESM(require("./plus/saasAttendance"));
200
+ var import_pisellCashCounting = __toESM(require("./components/pisellCashCounting"));
199
201
  import_dayjs.default.extend(import_weekday.default);
200
202
  import_dayjs.default.extend(import_localeData.default);
201
203
  // Annotate the CommonJS export names for ESM import in node:
@@ -248,6 +250,7 @@ import_dayjs.default.extend(import_localeData.default);
248
250
  POSOperatorAuth,
249
251
  PinModal,
250
252
  PinVerifyModal,
253
+ PisellCashCounting,
251
254
  PisellSelectCustomerModal,
252
255
  ProNumberKeyboard,
253
256
  ProNumberSelector,