@pisell/private-materials 6.3.84 → 6.3.86

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 (168) 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 +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/es/components/booking/forms/single/index.d.ts +0 -1
  12. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  13. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
  14. package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
  15. package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
  16. package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
  17. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
  18. package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
  19. package/es/components/eftpos/form/index.d.ts +0 -1
  20. package/es/components/eftpos/hooks.d.ts +0 -1
  21. package/es/components/eftpos/index.d.ts +0 -1
  22. package/es/components/eftpos/pos.d.ts +0 -1
  23. package/es/components/eftposPay/amount.d.ts +0 -1
  24. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  25. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  26. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  27. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  28. package/es/components/eftposPay/hooks.d.ts +1 -1
  29. package/es/components/eftposPay/store/index.d.ts +1 -1
  30. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  31. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  32. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  33. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  34. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  35. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  36. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  37. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  38. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  39. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  40. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  41. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  42. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  43. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  44. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  45. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  46. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  47. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  48. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  49. package/es/components/schedules/products/index.d.ts +0 -1
  50. package/es/components/schedules/resources/index.d.ts +0 -1
  51. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  52. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  53. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  54. package/es/components/schedules/schedules/index.d.ts +0 -1
  55. package/es/index.d.ts +1 -0
  56. package/es/index.js +2 -1
  57. package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
  58. package/es/plus/orderList/components/BatchActionBar.js +861 -0
  59. package/es/plus/orderList/components/FilterList.d.ts +8 -0
  60. package/es/plus/orderList/components/FilterList.js +78 -0
  61. package/es/plus/orderList/components/HandleActions.d.ts +5 -0
  62. package/es/plus/orderList/components/HandleActions.js +24 -0
  63. package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
  64. package/es/plus/orderList/components/QuickFilter.js +14 -0
  65. package/es/plus/orderList/components/Reset.d.ts +7 -0
  66. package/es/plus/orderList/components/Reset.js +23 -0
  67. package/es/plus/orderList/components/Toolbar.d.ts +6 -0
  68. package/es/plus/orderList/components/Toolbar.js +57 -0
  69. package/es/plus/orderList/config.d.ts +154 -0
  70. package/es/plus/orderList/config.js +786 -0
  71. package/es/plus/orderList/index.d.ts +9 -0
  72. package/es/plus/orderList/index.js +128 -0
  73. package/es/plus/orderList/index.less +125 -0
  74. package/es/plus/orderList/locales.d.ts +372 -0
  75. package/es/plus/orderList/locales.js +459 -0
  76. package/es/plus/orderList/serve.d.ts +42 -0
  77. package/es/plus/orderList/serve.js +351 -0
  78. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  79. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
  80. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  81. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  82. package/es/plus/skuOptionsSelection/index.js +2 -2
  83. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
  84. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
  85. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  86. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  87. package/es/pro/Selector/demo.d.ts +0 -1
  88. package/lib/components/booking/forms/single/index.d.ts +0 -1
  89. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  90. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
  91. package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
  92. package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
  93. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
  94. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
  95. package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
  96. package/lib/components/eftpos/form/index.d.ts +0 -1
  97. package/lib/components/eftpos/hooks.d.ts +0 -1
  98. package/lib/components/eftpos/index.d.ts +0 -1
  99. package/lib/components/eftpos/pos.d.ts +0 -1
  100. package/lib/components/eftposPay/amount.d.ts +0 -1
  101. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  102. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  103. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  104. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  105. package/lib/components/eftposPay/hooks.d.ts +1 -1
  106. package/lib/components/eftposPay/store/index.d.ts +1 -1
  107. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  108. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  109. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  110. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  111. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  112. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  113. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  114. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  115. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  116. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  117. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  118. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  119. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  120. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  121. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  122. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  123. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  124. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  125. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  126. package/lib/components/schedules/products/index.d.ts +0 -1
  127. package/lib/components/schedules/resources/index.d.ts +0 -1
  128. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  129. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  130. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  131. package/lib/components/schedules/schedules/index.d.ts +0 -1
  132. package/lib/index.d.ts +1 -0
  133. package/lib/index.js +3 -0
  134. package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
  135. package/lib/plus/orderList/components/BatchActionBar.js +584 -0
  136. package/lib/plus/orderList/components/FilterList.d.ts +8 -0
  137. package/lib/plus/orderList/components/FilterList.js +121 -0
  138. package/lib/plus/orderList/components/HandleActions.d.ts +5 -0
  139. package/lib/plus/orderList/components/HandleActions.js +52 -0
  140. package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
  141. package/lib/plus/orderList/components/QuickFilter.js +43 -0
  142. package/lib/plus/orderList/components/Reset.d.ts +7 -0
  143. package/lib/plus/orderList/components/Reset.js +58 -0
  144. package/lib/plus/orderList/components/Toolbar.d.ts +6 -0
  145. package/lib/plus/orderList/components/Toolbar.js +68 -0
  146. package/lib/plus/orderList/config.d.ts +154 -0
  147. package/lib/plus/orderList/config.js +764 -0
  148. package/lib/plus/orderList/index.d.ts +9 -0
  149. package/lib/plus/orderList/index.js +132 -0
  150. package/lib/plus/orderList/index.less +125 -0
  151. package/lib/plus/orderList/locales.d.ts +372 -0
  152. package/lib/plus/orderList/locales.js +471 -0
  153. package/lib/plus/orderList/serve.d.ts +42 -0
  154. package/lib/plus/orderList/serve.js +177 -0
  155. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  156. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
  157. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  158. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  159. package/lib/plus/skuOptionsSelection/index.js +2 -2
  160. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
  161. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
  162. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  163. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  164. package/lib/pro/Selector/demo.d.ts +0 -1
  165. package/lowcode/eco-cup-list/meta.ts +1 -1
  166. package/lowcode/eco-customer-list/meta.ts +1 -1
  167. package/lowcode/order-list/meta.ts +87 -0
  168. package/package.json +4 -4
@@ -0,0 +1,121 @@
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/plus/orderList/components/FilterList.tsx
30
+ var FilterList_exports = {};
31
+ __export(FilterList_exports, {
32
+ default: () => FilterList_default
33
+ });
34
+ module.exports = __toCommonJS(FilterList_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_antd = require("antd");
38
+ var import_dayjs = __toESM(require("dayjs"));
39
+ var { useContainerContext } = import_materials.PisellDataSourceContainer;
40
+ var FilterList = ({ locales, valueType, setValueType }) => {
41
+ const form = import_antd.Form.useFormInstance();
42
+ const { serverActions } = useContainerContext();
43
+ const { list } = serverActions;
44
+ const handleTodayClick = () => {
45
+ const today = (0, import_dayjs.default)();
46
+ const params = {
47
+ orderDate: [today.startOf("day"), today.endOf("day")],
48
+ payment_status: void 0
49
+ };
50
+ form.setFieldsValue(params);
51
+ list.onSearch(params);
52
+ setValueType(1);
53
+ };
54
+ const handleTodayToPayClick = () => {
55
+ const today = (0, import_dayjs.default)();
56
+ const params = {
57
+ orderDate: [today.startOf("day"), today.endOf("day")],
58
+ payment_status: ["payment_processing", "partially_paid"]
59
+ // 默认设置为未付款,也可以设置为其他待支付状态
60
+ };
61
+ form.setFieldsValue(params);
62
+ list.onSearch(params);
63
+ setValueType(2);
64
+ };
65
+ const handleTodayRefundsClick = () => {
66
+ const today = (0, import_dayjs.default)();
67
+ const params = {
68
+ orderDate: [today.startOf("day"), today.endOf("day")],
69
+ payment_status: ["refunded", "partially_refunded"]
70
+ // 默认设置为已退款
71
+ };
72
+ form.setFieldsValue(params);
73
+ list.onSearch(params);
74
+ setValueType(3);
75
+ };
76
+ const handleLast7DaysClick = () => {
77
+ const today = (0, import_dayjs.default)();
78
+ const sevenDaysAgo = today.subtract(6, "day");
79
+ const params = {
80
+ orderDate: [sevenDaysAgo.startOf("day"), today.endOf("day")],
81
+ payment_status: void 0
82
+ };
83
+ form.setFieldsValue(params);
84
+ list.onSearch(params);
85
+ setValueType(4);
86
+ };
87
+ return /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", gap: "8px" } }, /* @__PURE__ */ import_react.default.createElement(
88
+ import_antd.Button,
89
+ {
90
+ type: "primary",
91
+ ghost: valueType !== 1,
92
+ onClick: handleTodayClick
93
+ },
94
+ locales.getText("pisell2.orderList.filterButton.todayOrders")
95
+ ), /* @__PURE__ */ import_react.default.createElement(
96
+ import_antd.Button,
97
+ {
98
+ type: "primary",
99
+ ghost: valueType !== 2,
100
+ onClick: handleTodayToPayClick
101
+ },
102
+ locales.getText("pisell2.orderList.filterButton.todayPending")
103
+ ), /* @__PURE__ */ import_react.default.createElement(
104
+ import_antd.Button,
105
+ {
106
+ type: "primary",
107
+ ghost: valueType !== 3,
108
+ onClick: handleTodayRefundsClick
109
+ },
110
+ locales.getText("pisell2.orderList.filterButton.todayRefunds")
111
+ ), /* @__PURE__ */ import_react.default.createElement(
112
+ import_antd.Button,
113
+ {
114
+ type: "primary",
115
+ ghost: valueType !== 4,
116
+ onClick: handleLast7DaysClick
117
+ },
118
+ locales.getText("pisell2.orderList.filterButton.last7Days")
119
+ ));
120
+ };
121
+ var FilterList_default = FilterList;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const HandleActions: (props: {
3
+ locales: any;
4
+ }) => JSX.Element;
5
+ export default HandleActions;
@@ -0,0 +1,52 @@
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/plus/orderList/components/HandleActions.tsx
30
+ var HandleActions_exports = {};
31
+ __export(HandleActions_exports, {
32
+ default: () => HandleActions_default
33
+ });
34
+ module.exports = __toCommonJS(HandleActions_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_config = require("../config");
38
+ var { ColumnsSetting } = import_materials.PisellDataSourceContainer;
39
+ var HandleActions = (props) => {
40
+ const { locales } = props;
41
+ const filterButtonListValue = (0, import_react.useMemo)(
42
+ () => {
43
+ return {
44
+ otherFilter: (0, import_config.getFilterButtonList)(locales)
45
+ };
46
+ },
47
+ [locales]
48
+ );
49
+ const sortList = (0, import_react.useMemo)(() => (0, import_config.getSortList)(locales), [locales]);
50
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(ColumnsSetting, null), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellSort, { hasForm: false, list: sortList }), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellFilter, { placement: "bottomLeft", hasForm: false, value: filterButtonListValue }));
51
+ };
52
+ var HandleActions_default = HandleActions;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const QuickFilter: (props: {
3
+ locales: any;
4
+ }) => JSX.Element;
5
+ export default QuickFilter;
@@ -0,0 +1,43 @@
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/plus/orderList/components/QuickFilter.tsx
30
+ var QuickFilter_exports = {};
31
+ __export(QuickFilter_exports, {
32
+ default: () => QuickFilter_default
33
+ });
34
+ module.exports = __toCommonJS(QuickFilter_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_config = require("../config");
38
+ var QuickFilter = (props) => {
39
+ const { locales } = props;
40
+ const quickFilterList = (0, import_react.useMemo)(() => (0, import_config.getQuickFilterList)(locales), [locales]);
41
+ return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellQuickFilter, { hasForm: false, filterList: quickFilterList });
42
+ };
43
+ var QuickFilter_default = QuickFilter;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const Reset: (props: {
3
+ locales: any;
4
+ setValueType: (value: any) => void;
5
+ clearSelectedData: () => void;
6
+ }) => JSX.Element;
7
+ export default Reset;
@@ -0,0 +1,58 @@
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/plus/orderList/components/Reset.tsx
30
+ var Reset_exports = {};
31
+ __export(Reset_exports, {
32
+ default: () => Reset_default
33
+ });
34
+ module.exports = __toCommonJS(Reset_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_icons = require("@ant-design/icons");
38
+ var import_materials = require("@pisell/materials");
39
+ var { useContainerContext } = import_materials.PisellDataSourceContainer;
40
+ var Reset = (props) => {
41
+ const { locales, setValueType, clearSelectedData } = props;
42
+ const { serverActions: { list } } = useContainerContext();
43
+ const form = import_antd.Form.useFormInstance();
44
+ return /* @__PURE__ */ import_react.default.createElement(
45
+ import_antd.Button,
46
+ {
47
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ReloadOutlined, null),
48
+ onClick: () => {
49
+ form.resetFields();
50
+ list.onReset();
51
+ setValueType(void 0);
52
+ clearSelectedData();
53
+ }
54
+ },
55
+ locales.getText("pisell2.orderList.common.reset")
56
+ );
57
+ };
58
+ var Reset_default = Reset;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const Toolbar: (props: {
3
+ locales: any;
4
+ clearSelectedData: () => void;
5
+ }) => JSX.Element;
6
+ export default Toolbar;
@@ -0,0 +1,68 @@
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/plus/orderList/components/Toolbar.tsx
30
+ var Toolbar_exports = {};
31
+ __export(Toolbar_exports, {
32
+ default: () => Toolbar_default
33
+ });
34
+ module.exports = __toCommonJS(Toolbar_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_antd = require("antd");
38
+ var import_Reset = __toESM(require("./Reset"));
39
+ var import_FilterList = __toESM(require("./FilterList"));
40
+ var import_HandleActions = __toESM(require("./HandleActions"));
41
+ var import_QuickFilter = __toESM(require("./QuickFilter"));
42
+ var import_materials2 = require("@pisell/materials");
43
+ var import_dayjs = __toESM(require("dayjs"));
44
+ var { useContainerContext } = import_materials2.PisellDataSourceContainer;
45
+ var Toolbar = (props) => {
46
+ const { locales, clearSelectedData } = props;
47
+ const { serverActions, refManager, ...otherProps } = useContainerContext();
48
+ const [valueType, setValueType] = (0, import_react.useState)(void 0);
49
+ return /* @__PURE__ */ import_react.default.createElement(
50
+ import_antd.Form,
51
+ {
52
+ size: "large",
53
+ layout: "vertical",
54
+ initialValues: { orderDate: [(0, import_dayjs.default)().startOf("day"), (0, import_dayjs.default)().endOf("day")] },
55
+ ...otherProps
56
+ },
57
+ /* @__PURE__ */ import_react.default.createElement(
58
+ import_materials.PisellToolBar,
59
+ {
60
+ topLeft: /* @__PURE__ */ import_react.default.createElement(import_QuickFilter.default, { locales }),
61
+ topRight: /* @__PURE__ */ import_react.default.createElement(import_Reset.default, { locales, setValueType, clearSelectedData }),
62
+ bottomLeft: /* @__PURE__ */ import_react.default.createElement(import_FilterList.default, { valueType, setValueType, locales }),
63
+ bottomRight: /* @__PURE__ */ import_react.default.createElement(import_HandleActions.default, { locales })
64
+ }
65
+ )
66
+ );
67
+ };
68
+ var Toolbar_default = Toolbar;
@@ -0,0 +1,154 @@
1
+ /**
2
+ * 获取表格列配置(支持多语言)
3
+ * @param locales - 多语言对象
4
+ * @returns 表格列配置数组
5
+ */
6
+ export declare const getTableColumns: (locales: any) => ({
7
+ title: any;
8
+ dataIndex: string;
9
+ key: string;
10
+ width: number;
11
+ render: (value: any, record: any) => JSX.Element | "-";
12
+ isShow?: undefined;
13
+ } | {
14
+ title: any;
15
+ dataIndex: string;
16
+ key: string;
17
+ width: number;
18
+ render: (value: any) => string;
19
+ isShow?: undefined;
20
+ } | {
21
+ title: any;
22
+ dataIndex: string;
23
+ key: string;
24
+ width: number;
25
+ isShow: boolean;
26
+ render: (value: any) => string;
27
+ } | {
28
+ title: any;
29
+ dataIndex: string;
30
+ key: string;
31
+ isShow: boolean;
32
+ width: number;
33
+ render: (value: any, record: any) => JSX.Element;
34
+ } | {
35
+ title: any;
36
+ dataIndex: string;
37
+ key: string;
38
+ isShow: boolean;
39
+ width: number;
40
+ render: (value: any) => JSX.Element | "-";
41
+ })[];
42
+ export declare const getQuickFilterList: (locales: any) => ({
43
+ name: string;
44
+ type: string;
45
+ key: string;
46
+ label: any;
47
+ other: {
48
+ placeholder: any;
49
+ allowClear?: undefined;
50
+ trigger?: undefined;
51
+ style?: undefined;
52
+ };
53
+ } | {
54
+ name: string;
55
+ type: string;
56
+ key: string;
57
+ other: {
58
+ allowClear: boolean;
59
+ placeholder: any;
60
+ trigger: string[];
61
+ style: {
62
+ width: string;
63
+ };
64
+ };
65
+ label?: undefined;
66
+ })[];
67
+ export declare const getFilterButtonList: (locales: any) => ({
68
+ name: string;
69
+ type: string;
70
+ key: string;
71
+ label: any;
72
+ other: {
73
+ allowClear: boolean;
74
+ mode: string;
75
+ placeholder: any;
76
+ options: {
77
+ label: string;
78
+ value: string;
79
+ }[];
80
+ isSearchServer?: undefined;
81
+ showSearch?: undefined;
82
+ };
83
+ } | {
84
+ name: string;
85
+ type: string;
86
+ key: string;
87
+ label: any;
88
+ other: {
89
+ allowClear: boolean;
90
+ isSearchServer: boolean;
91
+ showSearch: boolean;
92
+ placeholder: any;
93
+ options: (params?: string) => Promise<any>;
94
+ mode?: undefined;
95
+ };
96
+ } | {
97
+ name: string;
98
+ type: string;
99
+ key: string;
100
+ label: any;
101
+ other: {
102
+ allowClear: boolean;
103
+ mode: string;
104
+ placeholder: any;
105
+ options: () => Promise<any>;
106
+ isSearchServer?: undefined;
107
+ showSearch?: undefined;
108
+ };
109
+ } | {
110
+ name: string;
111
+ type: string;
112
+ key: string;
113
+ label: any;
114
+ other: {
115
+ placeholder: any;
116
+ allowClear?: undefined;
117
+ mode?: undefined;
118
+ options?: undefined;
119
+ isSearchServer?: undefined;
120
+ showSearch?: undefined;
121
+ };
122
+ } | {
123
+ name: string;
124
+ type: string;
125
+ key: string;
126
+ label: any;
127
+ other: {
128
+ allowClear: boolean;
129
+ mode: string;
130
+ isSearchServer: boolean;
131
+ showSearch: boolean;
132
+ placeholder: any;
133
+ options: (params?: string) => Promise<any>;
134
+ };
135
+ } | {
136
+ name: string;
137
+ type: string;
138
+ key: string;
139
+ label: any;
140
+ other: {
141
+ allowClear: boolean;
142
+ placeholder: any;
143
+ options: () => Promise<any>;
144
+ mode?: undefined;
145
+ isSearchServer?: undefined;
146
+ showSearch?: undefined;
147
+ };
148
+ })[];
149
+ export declare const getSortList: (locales: any) => {
150
+ type: string;
151
+ isCustom: boolean;
152
+ name: string;
153
+ label: any;
154
+ }[];