@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
+ var _excluded = ["content", "open", "icon", "className"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ import React, { useMemo } from 'react';
6
+ import Modal from "../../modal";
7
+ import Icon from "../../icon";
8
+ import classNames from 'classnames';
9
+ import "./index.less";
10
+ var icons = {
11
+ info: '',
12
+ success: 'iconchenggong-1-01',
13
+ error: 'icon-warning',
14
+ warning: 'icon-warning',
15
+ loading: 'icon-loading',
16
+ fail: 'icon-warning'
17
+ };
18
+ var Toast = function Toast(_ref) {
19
+ var content = _ref.content,
20
+ open = _ref.open,
21
+ icon = _ref.icon,
22
+ className = _ref.className,
23
+ rest = _objectWithoutProperties(_ref, _excluded);
24
+ var iconElement = useMemo(function () {
25
+ if (icon === null || icon === undefined) return null;
26
+ if (typeof icon === 'string' && icon in icons) {
27
+ if (!icons[icon]) return null;
28
+ return /*#__PURE__*/React.createElement(Icon, {
29
+ type: icons[icon],
30
+ className: "pisell-square-toast-icon pisell-square-toast-icon-".concat(icon)
31
+ });
32
+ }
33
+ return icon;
34
+ }, [icon]);
35
+ return /*#__PURE__*/React.createElement(Modal, _extends({
36
+ open: open,
37
+ footer: null,
38
+ closable: false,
39
+ centered: true,
40
+ maskTransitionName: "",
41
+ transitionName: "",
42
+ width: "unset",
43
+ wrapClassName: "pisell-square-toast-wrap",
44
+ className: classNames('pisell-square-toast-modal', className),
45
+ bodyStyle: {
46
+ padding: 0
47
+ },
48
+ destroyOnClose: true,
49
+ modalRender: function modalRender() {
50
+ return /*#__PURE__*/React.createElement("div", {
51
+ className: "pisell-square-toast"
52
+ }, iconElement && /*#__PURE__*/React.createElement("div", {
53
+ className: "pisell-square-toast-icon-wrapper"
54
+ }, iconElement), /*#__PURE__*/React.createElement("div", {
55
+ className: "pisell-square-toast-content"
56
+ }, content));
57
+ }
58
+ }, rest));
59
+ };
60
+ export 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 {
package/es/index.d.ts CHANGED
@@ -91,7 +91,7 @@ export { default as PisellScan } from './components/pisellScan';
91
91
  export { default as PisellStatisticList } from './components/pisellStatisticList';
92
92
  export { default as PisellTags } from './components/pisellTags';
93
93
  export { default as PisellText } from './components/pisellText';
94
- export { default as PisellToast } from './components/pisellToast';
94
+ export { default as PisellToast, useToast } from './components/pisellToast';
95
95
  export { default as PisellTooltip } from './components/pisellTooltip';
96
96
  export { default as PisellUpload } from './components/pisellUpload';
97
97
  export { default as PisellViewGrid } from './components/pisellViewGrid';
package/es/index.js CHANGED
@@ -91,7 +91,7 @@ export { default as PisellScan } from "./components/pisellScan";
91
91
  export { default as PisellStatisticList } from "./components/pisellStatisticList";
92
92
  export { default as PisellTags } from "./components/pisellTags";
93
93
  export { default as PisellText } from "./components/pisellText";
94
- export { default as PisellToast } from "./components/pisellToast";
94
+ export { default as PisellToast, useToast } from "./components/pisellToast";
95
95
  // export { default as InformationModal } from './components/pisellModal/components/Information';
96
96
  export { default as PisellTooltip } from "./components/pisellTooltip";
97
97
  export { default as PisellUpload } from "./components/pisellUpload";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppVersionControlProps } from './types';
3
2
  import './index.less';
4
3
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
3
2
  export default DataSourceImage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Drawer } from 'antd';
3
2
  import { OperationItem } from '../type';
4
3
  declare const useDrawerState: (operationContent?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
3
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -20,7 +19,7 @@ declare const formFieldMap: {
20
19
  Subdomain: import("react").FC<import("antd").InputProps & {
21
20
  onChange: (value: string) => void;
22
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "saas" | "xzero";
22
+ rootDomain: "custom" | "xzero" | "saas";
24
23
  customDomain?: string | undefined;
25
24
  value?: string | undefined;
26
25
  tenantId: string;
@@ -60,13 +59,11 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
64
  } & {
66
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
68
- onChange: (value: string) => void;
69
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
70
67
  JSON: import("react").FC<any>;
71
68
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
72
69
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -79,14 +76,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
79
76
  Subdomain: import("react").FC<import("antd").InputProps & {
80
77
  onChange: (value: string) => void;
81
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
82
- rootDomain: "custom" | "saas" | "xzero";
79
+ rootDomain: "custom" | "xzero" | "saas";
83
80
  customDomain?: string | undefined;
84
81
  value?: string | undefined;
85
82
  tenantId: string;
86
83
  name?: string | undefined;
87
84
  fieldKey?: string | undefined;
88
85
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
89
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
86
+ }) | (import("react").FC<{}> & {
90
87
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
88
  } & {
92
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -98,5 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
98
95
  extraParams?: Record<string, any> | undefined;
99
96
  } & {
100
97
  dataSource?: any;
101
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
98
+ }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
+ onChange: (value: string) => void;
100
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ValueProps, SortType } from '../types';
4
3
  declare type IdType = string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { SortType } from './types';
4
3
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.11.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.13.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface ScanProps {
4
3
  onChange: (val: string) => void;
@@ -29,7 +29,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/pisellToast/index.tsx
30
30
  var pisellToast_exports = {};
31
31
  __export(pisellToast_exports, {
32
- default: () => pisellToast_default
32
+ default: () => pisellToast_default,
33
+ useToast: () => import_squareToast.useToast
33
34
  });
34
35
  module.exports = __toCommonJS(pisellToast_exports);
35
36
  var import_react = __toESM(require("react"));
@@ -37,6 +38,7 @@ var import_utils = require("@pisell/utils");
37
38
  var import_pisellMessage = require("../pisellMessage");
38
39
  var import_iconfont = __toESM(require("../iconfont"));
39
40
  var import_index = require("./index.less");
41
+ var import_squareToast = require("./squareToast");
40
42
  var PisellToast = (props) => {
41
43
  const { content, duration, showAction, actionText, onClose } = props;
42
44
  const key = (0, import_utils.getUniqueId)();
@@ -60,3 +62,7 @@ var PisellToast = (props) => {
60
62
  });
61
63
  };
62
64
  var pisellToast_default = PisellToast;
65
+ // Annotate the CommonJS export names for ESM import in node:
66
+ 0 && (module.exports = {
67
+ useToast
68
+ });
@@ -0,0 +1,58 @@
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/pisellToast/squareToast/index.tsx
20
+ var squareToast_exports = {};
21
+ __export(squareToast_exports, {
22
+ default: () => squareToast_default,
23
+ useToast: () => useToast
24
+ });
25
+ module.exports = __toCommonJS(squareToast_exports);
26
+ var import_react = require("react");
27
+ var import_methods = require("./methods");
28
+ var import_index = require("./index.less");
29
+ var Toast = {
30
+ show: import_methods.show,
31
+ clear: import_methods.clear,
32
+ success: import_methods.success,
33
+ info: import_methods.info,
34
+ loading: import_methods.loading,
35
+ fail: import_methods.fail,
36
+ error: import_methods.fail,
37
+ hide: import_methods.hide
38
+ };
39
+ var useToast = () => {
40
+ return (0, import_react.useMemo)(
41
+ () => ({
42
+ show: import_methods.show,
43
+ clear: import_methods.clear,
44
+ success: import_methods.success,
45
+ info: import_methods.info,
46
+ loading: import_methods.loading,
47
+ fail: import_methods.fail,
48
+ error: import_methods.fail,
49
+ hide: import_methods.hide
50
+ }),
51
+ []
52
+ );
53
+ };
54
+ var squareToast_default = Toast;
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ useToast
58
+ });