@pisell/materials 6.5.1 → 6.5.2

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 (209) 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 +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +23 -23
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +24 -24
  11. package/es/components/appVersionControl/index.d.ts +0 -1
  12. package/es/components/batch-editor/index.d.ts +0 -1
  13. package/es/components/cardPro/index.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  20. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  24. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  25. package/es/components/dataSourceComponents/fields/index.d.ts +8 -9
  26. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  27. package/es/components/date-picker/index.d.ts +0 -1
  28. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  29. package/es/components/drag-sort-tree/index.d.ts +0 -1
  30. package/es/components/filter/index.d.ts +0 -1
  31. package/es/components/iconfont/index.js +1 -1
  32. package/es/components/list/index.d.ts +0 -1
  33. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  34. package/es/components/pisellToast/index.js +1 -0
  35. package/es/components/pisellToast/squareToast/index.js +28 -0
  36. package/es/components/pisellToast/squareToast/index.less +60 -0
  37. package/es/components/pisellToast/squareToast/methods.js +136 -0
  38. package/es/components/pisellToast/squareToast/renderImperatively.js +165 -0
  39. package/es/components/pisellToast/squareToast/toast.js +60 -0
  40. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  41. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  42. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  43. package/es/components/productCard/components/Time/index.d.ts +0 -1
  44. package/es/components/select-time/index.d.ts +0 -1
  45. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  46. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  47. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  48. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  49. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  50. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  51. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  52. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  53. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  54. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  55. package/es/components/table/Actions/index.d.ts +0 -1
  56. package/es/components/table/BasicTable/index.d.ts +0 -1
  57. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  58. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  59. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  60. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/index.d.ts +2 -3
  62. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  63. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  64. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  67. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  68. package/es/components/table/Table/utils.d.ts +1 -1
  69. package/es/components/table/View/index.d.ts +0 -1
  70. package/es/components/versionSelect/index.d.ts +0 -1
  71. package/es/index.d.ts +1 -1
  72. package/es/index.js +1 -1
  73. package/lib/components/appVersionControl/index.d.ts +0 -1
  74. package/lib/components/batch-editor/index.d.ts +0 -1
  75. package/lib/components/cardPro/index.d.ts +0 -1
  76. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  77. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  78. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  79. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  80. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  81. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  82. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  83. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  84. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  85. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  86. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  87. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -9
  88. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  89. package/lib/components/date-picker/index.d.ts +0 -1
  90. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  91. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  92. package/lib/components/filter/index.d.ts +0 -1
  93. package/lib/components/iconfont/index.js +1 -1
  94. package/lib/components/list/index.d.ts +0 -1
  95. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  96. package/lib/components/pisellToast/index.js +7 -1
  97. package/lib/components/pisellToast/squareToast/index.js +58 -0
  98. package/lib/components/pisellToast/squareToast/index.less +60 -0
  99. package/lib/components/pisellToast/squareToast/methods.js +150 -0
  100. package/lib/components/pisellToast/squareToast/renderImperatively.js +148 -0
  101. package/lib/components/pisellToast/squareToast/toast.js +88 -0
  102. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  103. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  104. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  105. package/lib/components/productCard/components/Time/index.d.ts +0 -1
  106. package/lib/components/select-time/index.d.ts +0 -1
  107. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  108. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  109. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  110. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  111. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  112. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  113. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  114. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  115. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  116. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  117. package/lib/components/table/Actions/index.d.ts +0 -1
  118. package/lib/components/table/BasicTable/index.d.ts +0 -1
  119. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  120. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  121. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  122. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  123. package/lib/components/table/Table/fields/index.d.ts +2 -3
  124. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  125. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  126. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  127. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  128. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  129. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  130. package/lib/components/table/Table/utils.d.ts +1 -1
  131. package/lib/components/table/View/index.d.ts +0 -1
  132. package/lib/components/versionSelect/index.d.ts +0 -1
  133. package/lib/index.d.ts +1 -1
  134. package/lib/index.js +2 -0
  135. package/package.json +1 -1
  136. package/es/components/iconfont/index.d.ts +0 -8
  137. package/es/components/pisell-config-provider/context.d.ts +0 -22
  138. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  139. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  140. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  141. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  142. package/es/components/pisellToast/index.d.ts +0 -16
  143. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  144. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  145. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  146. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  147. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  148. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  149. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  150. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  151. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  152. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  153. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  154. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  155. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  156. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  157. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  158. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  159. package/es/components/productCard/components/Action/index.d.ts +0 -3
  160. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  161. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  162. package/es/components/productCard/locales.d.ts +0 -84
  163. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
  164. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  165. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  166. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  167. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  168. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  169. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  170. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  171. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  172. package/es/components/virtual-keyboard/index.d.ts +0 -25
  173. package/lib/components/iconfont/index.d.ts +0 -8
  174. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  175. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  176. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  177. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  178. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  179. package/lib/components/pisellToast/index.d.ts +0 -16
  180. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  181. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  182. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  183. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  184. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  185. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  186. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  187. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  188. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  189. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  190. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  191. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  192. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  193. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  194. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  195. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  196. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  197. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  198. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  199. package/lib/components/productCard/locales.d.ts +0 -84
  200. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
  201. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  202. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  203. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  204. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  205. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  206. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  207. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  208. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  209. package/lib/components/virtual-keyboard/index.d.ts +0 -25
@@ -0,0 +1,60 @@
1
+ .pisell-square-toast-wrap {
2
+ pointer-events: none;
3
+ }
4
+
5
+ .pisell-square-toast-modal {
6
+ pointer-events: none;
7
+ user-select: none;
8
+ min-width: 190px;
9
+ min-height: 74px;
10
+
11
+ // Toast 容器
12
+ .pisell-square-toast {
13
+ min-width: 190px;
14
+ max-width: 201px;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ flex-direction: column;
19
+ padding: 32px 12px;
20
+ border-radius: 8px;
21
+ overflow: hidden;
22
+ background: rgba(0, 0, 0, 0.8);
23
+
24
+ .pisell-square-toast-icon-wrapper {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ margin-bottom: 11px;
29
+
30
+ .pisell-square-toast-icon {
31
+ font-size: 50px;
32
+ color: #ffffff;
33
+ width: 50px;
34
+ height: 50px;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+
39
+ &-loading {
40
+ animation: fadenum 1s infinite linear;
41
+ }
42
+ }
43
+ }
44
+
45
+ // 内容区域
46
+ .pisell-square-toast-content {
47
+ font-size: 20px;
48
+ line-height: 1.5;
49
+ color: #ffffff;
50
+ text-align: center;
51
+ }
52
+ }
53
+ }
54
+
55
+ // loading 旋转动画
56
+ @keyframes fadenum {
57
+ to {
58
+ transform: rotate(360deg);
59
+ }
60
+ }
@@ -0,0 +1,150 @@
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/pisellToast/squareToast/methods.tsx
30
+ var methods_exports = {};
31
+ __export(methods_exports, {
32
+ clear: () => clear,
33
+ fail: () => fail,
34
+ hide: () => hide,
35
+ info: () => info,
36
+ loading: () => loading,
37
+ show: () => show,
38
+ success: () => success
39
+ });
40
+ module.exports = __toCommonJS(methods_exports);
41
+ var import_react = __toESM(require("react"));
42
+ var import_toast = __toESM(require("./toast"));
43
+ var import_renderImperatively = require("./renderImperatively");
44
+ var currentHandler = null;
45
+ var currentTimeout = null;
46
+ var defaultProps = {
47
+ duration: 2e3,
48
+ mask: false,
49
+ icon: "info"
50
+ };
51
+ function mergeProps(a, b) {
52
+ const filteredB = Object.keys(b).reduce((acc, key) => {
53
+ if (b[key] !== void 0) {
54
+ acc[key] = b[key];
55
+ }
56
+ return acc;
57
+ }, {});
58
+ return {
59
+ ...a,
60
+ ...filteredB
61
+ };
62
+ }
63
+ var show = (configOrContent, duration, afterClose) => {
64
+ var _a;
65
+ let props;
66
+ if (typeof configOrContent === "string" || import_react.default.isValidElement(configOrContent)) {
67
+ props = mergeProps(defaultProps, {
68
+ content: configOrContent,
69
+ ...duration !== void 0 && { duration },
70
+ ...afterClose !== void 0 && { afterClose }
71
+ });
72
+ } else {
73
+ props = mergeProps(defaultProps, configOrContent || {});
74
+ }
75
+ const element = /* @__PURE__ */ import_react.default.createElement(
76
+ import_toast.default,
77
+ {
78
+ ...props,
79
+ onCancel: () => {
80
+ currentHandler = null;
81
+ }
82
+ }
83
+ );
84
+ if (currentHandler) {
85
+ if ((_a = currentHandler.isRendered) == null ? void 0 : _a.call(currentHandler)) {
86
+ currentHandler.replace(element);
87
+ } else {
88
+ currentHandler.close();
89
+ currentHandler = (0, import_renderImperatively.renderImperatively)(element);
90
+ }
91
+ } else {
92
+ currentHandler = (0, import_renderImperatively.renderImperatively)(element);
93
+ }
94
+ if (currentTimeout) {
95
+ window.clearTimeout(currentTimeout);
96
+ }
97
+ if (props.duration !== 0) {
98
+ currentTimeout = window.setTimeout(() => {
99
+ clear();
100
+ }, props.duration);
101
+ }
102
+ const instance = {
103
+ close: () => {
104
+ if (currentHandler) {
105
+ currentHandler.close();
106
+ currentHandler = null;
107
+ }
108
+ if (currentTimeout) {
109
+ window.clearTimeout(currentTimeout);
110
+ currentTimeout = null;
111
+ }
112
+ }
113
+ };
114
+ return instance;
115
+ };
116
+ var clear = () => {
117
+ if (currentHandler) {
118
+ currentHandler.close();
119
+ currentHandler = null;
120
+ }
121
+ if (currentTimeout) {
122
+ window.clearTimeout(currentTimeout);
123
+ currentTimeout = null;
124
+ }
125
+ };
126
+ var success = (content, duration, afterClose) => {
127
+ return show({ content, icon: "success", duration, afterClose });
128
+ };
129
+ var info = (content, duration, afterClose) => {
130
+ return show({ content, icon: "info", duration, afterClose });
131
+ };
132
+ var loading = (content, duration, afterClose) => {
133
+ return show({ content, icon: "loading", duration, afterClose });
134
+ };
135
+ var fail = (content, duration, afterClose) => {
136
+ return show({ content, icon: "error", duration, afterClose });
137
+ };
138
+ var hide = () => {
139
+ clear();
140
+ };
141
+ // Annotate the CommonJS export names for ESM import in node:
142
+ 0 && (module.exports = {
143
+ clear,
144
+ fail,
145
+ hide,
146
+ info,
147
+ loading,
148
+ show,
149
+ success
150
+ });
@@ -0,0 +1,148 @@
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/pisellToast/squareToast/renderImperatively.tsx
30
+ var renderImperatively_exports = {};
31
+ __export(renderImperatively_exports, {
32
+ render: () => render,
33
+ renderImperatively: () => renderImperatively,
34
+ renderToBody: () => renderToBody,
35
+ unmount: () => unmount,
36
+ unstableSetRender: () => unstableSetRender
37
+ });
38
+ module.exports = __toCommonJS(renderImperatively_exports);
39
+ var ReactDOM = __toESM(require("react-dom"));
40
+ var import_client = require("react-dom/client");
41
+ var import_react = __toESM(require("react"));
42
+ var MARK = "__pisell_react_root__";
43
+ function render(node, container) {
44
+ const root = container[MARK] || (0, import_client.createRoot)(container);
45
+ root.render(node);
46
+ container[MARK] = root;
47
+ }
48
+ async function unmount(container) {
49
+ return Promise.resolve().then(() => {
50
+ var _a;
51
+ (_a = container[MARK]) == null ? void 0 : _a.unmount();
52
+ delete container[MARK];
53
+ });
54
+ }
55
+ var defaultReactRender = (node, container) => {
56
+ if (process.env.NODE_ENV !== "production") {
57
+ const majorVersion = parseInt(import_react.default.version.split(".")[0], 10);
58
+ const fullKeys = Object.keys(ReactDOM);
59
+ console.warn(
60
+ majorVersion < 19 || fullKeys.includes("createRoot"),
61
+ `[Compatible] Toast support React is 16 ~ 18.`
62
+ );
63
+ }
64
+ render(node, container);
65
+ return () => {
66
+ return unmount(container);
67
+ };
68
+ };
69
+ var unstableRender = defaultReactRender;
70
+ function unstableSetRender(render2) {
71
+ if (render2) {
72
+ unstableRender = render2;
73
+ }
74
+ return unstableRender;
75
+ }
76
+ function renderToBody(element) {
77
+ const container = document.createElement("div");
78
+ document.body.appendChild(container);
79
+ return unstableSetRender()(element, container);
80
+ }
81
+ function renderImperatively(element) {
82
+ const Wrapper = import_react.default.forwardRef((_, ref) => {
83
+ const [open, setOpen] = (0, import_react.useState)(false);
84
+ const closedRef = (0, import_react.useRef)(false);
85
+ const [elementToRender, setElementToRender] = (0, import_react.useState)(element);
86
+ const keyRef = (0, import_react.useRef)(0);
87
+ (0, import_react.useEffect)(() => {
88
+ if (!closedRef.current) {
89
+ setOpen(true);
90
+ } else {
91
+ afterClose();
92
+ }
93
+ }, []);
94
+ function onCancel() {
95
+ var _a, _b;
96
+ closedRef.current = true;
97
+ setOpen(false);
98
+ (_b = (_a = elementToRender.props).onCancel) == null ? void 0 : _b.call(_a);
99
+ }
100
+ function afterClose() {
101
+ var _a, _b;
102
+ unmount2();
103
+ (_b = (_a = elementToRender.props).afterClose) == null ? void 0 : _b.call(_a);
104
+ }
105
+ (0, import_react.useImperativeHandle)(ref, () => ({
106
+ close: onCancel,
107
+ replace: (element2) => {
108
+ var _a, _b;
109
+ keyRef.current++;
110
+ (_b = (_a = elementToRender.props).afterClose) == null ? void 0 : _b.call(_a);
111
+ setElementToRender(element2);
112
+ }
113
+ }));
114
+ return import_react.default.cloneElement(elementToRender, {
115
+ ...elementToRender.props,
116
+ key: keyRef.current,
117
+ open,
118
+ onCancel,
119
+ afterClose
120
+ });
121
+ });
122
+ const wrapperRef = import_react.default.createRef();
123
+ const unmount2 = renderToBody(/* @__PURE__ */ import_react.default.createElement(Wrapper, { ref: wrapperRef }));
124
+ return {
125
+ close: async () => {
126
+ var _a, _b, _c;
127
+ if (!wrapperRef.current) {
128
+ unmount2();
129
+ (_b = (_a = element.props).afterClose) == null ? void 0 : _b.call(_a);
130
+ } else {
131
+ (_c = wrapperRef.current) == null ? void 0 : _c.close();
132
+ }
133
+ },
134
+ replace: (element2) => {
135
+ var _a;
136
+ (_a = wrapperRef.current) == null ? void 0 : _a.replace(element2);
137
+ },
138
+ isRendered: () => !!wrapperRef.current
139
+ };
140
+ }
141
+ // Annotate the CommonJS export names for ESM import in node:
142
+ 0 && (module.exports = {
143
+ render,
144
+ renderImperatively,
145
+ renderToBody,
146
+ unmount,
147
+ unstableSetRender
148
+ });
@@ -0,0 +1,88 @@
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/pisellToast/squareToast/toast.tsx
30
+ var toast_exports = {};
31
+ __export(toast_exports, {
32
+ default: () => toast_default
33
+ });
34
+ module.exports = __toCommonJS(toast_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_modal = __toESM(require("../../modal"));
37
+ var import_icon = __toESM(require("../../icon"));
38
+ var import_classnames = __toESM(require("classnames"));
39
+ var import_index = require("./index.less");
40
+ var icons = {
41
+ info: "",
42
+ success: "iconchenggong-1-01",
43
+ error: "icon-warning",
44
+ warning: "icon-warning",
45
+ loading: "icon-loading",
46
+ fail: "icon-warning"
47
+ };
48
+ var Toast = ({
49
+ content,
50
+ open,
51
+ icon,
52
+ className,
53
+ ...rest
54
+ }) => {
55
+ const iconElement = (0, import_react.useMemo)(() => {
56
+ if (icon === null || icon === void 0) return null;
57
+ if (typeof icon === "string" && icon in icons) {
58
+ if (!icons[icon]) return null;
59
+ return /* @__PURE__ */ import_react.default.createElement(
60
+ import_icon.default,
61
+ {
62
+ type: icons[icon],
63
+ className: `pisell-square-toast-icon pisell-square-toast-icon-${icon}`
64
+ }
65
+ );
66
+ }
67
+ return icon;
68
+ }, [icon]);
69
+ return /* @__PURE__ */ import_react.default.createElement(
70
+ import_modal.default,
71
+ {
72
+ open,
73
+ footer: null,
74
+ closable: false,
75
+ centered: true,
76
+ maskTransitionName: "",
77
+ transitionName: "",
78
+ width: "unset",
79
+ wrapClassName: "pisell-square-toast-wrap",
80
+ className: (0, import_classnames.default)("pisell-square-toast-modal", className),
81
+ bodyStyle: { padding: 0 },
82
+ destroyOnClose: true,
83
+ modalRender: () => /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-square-toast` }, iconElement && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-square-toast-icon-wrapper" }, iconElement), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-square-toast-content" }, content)),
84
+ ...rest
85
+ }
86
+ );
87
+ };
88
+ var toast_default = Toast;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
4
3
  export default DeleteButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
4
3
  export default SelectHolder;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface ResourceItem {
4
3
  id: string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
3
  export default Time;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type ColumnsSettingProps = {
3
2
  value?: Record<string, any>[];
4
3
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ExportFile: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare const ExportTable: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ImportLog: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare type ImportTableProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../types';
3
2
  import './index.less';
4
3
  declare type ExportImportProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, ModeType } from "../../../types";
3
2
  import "./index.less";
4
3
  declare type GallerySettingProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './PopoverContent.less';
3
2
  declare type FieldType = string | number;
4
3
  export declare type GroupValue = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewType, ModeType } from "../../../types";
3
2
  declare type ViewModeProps = {
4
3
  view: GridViewType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterType } from "../../filter/types";
3
2
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from 'antd';
3
2
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
4
3
  export default BasicTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
3
2
  declare type CoverProps = {
4
3
  cover?: GallerySettingType["cover"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -198,12 +197,12 @@ export declare const fieldList: ({
198
197
  field_icon: string;
199
198
  field_name: string;
200
199
  field_type: string;
201
- default_value: string;
200
+ default_value: boolean;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: boolean;
205
+ default_value: string;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
4
3
  export default SortRow;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
158
+ }) => ("column_setting" | "group_by" | "order_by" | "gallery_setting" | "view_mode" | "filter_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {