@pisell/materials 6.3.2 → 6.3.4

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 (183) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +24 -28
  8. package/build/lowcode/view.js +25 -29
  9. package/dist/umd/materials.min.css +1 -0
  10. package/dist/umd/materials.min.js +1 -0
  11. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  12. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  13. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  14. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  15. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  16. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  17. package/es/components/DragSortList/index.js +6 -6
  18. package/es/components/batch-editor/index.d.ts +0 -1
  19. package/es/components/classicLayout/index.js +5 -4
  20. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -3
  21. package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  22. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  27. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -6
  28. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  29. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  32. package/es/components/dataSourceComponents/fields/index.d.ts +6 -7
  33. package/es/components/date-picker/index.d.ts +0 -1
  34. package/es/components/filter/index.d.ts +0 -1
  35. package/es/components/icon/index.js +5 -5
  36. package/es/components/list/index.js +6 -6
  37. package/es/components/page/index.d.ts +0 -1
  38. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  39. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  40. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  41. package/es/components/pisellCardList/index.js +1 -3
  42. package/es/components/pisellCheckboxGroup/index.d.ts +0 -1
  43. package/es/components/pisellCheckboxGroup/index.js +1 -15
  44. package/es/components/pisellInput/index.d.ts +0 -1
  45. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  46. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  47. package/es/components/pisellModal/components/index.d.ts +0 -1
  48. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  49. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  50. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  51. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  52. package/es/components/qrcode/index.js +1 -1
  53. package/es/components/sort/components/InlineMenu/index.js +1 -1
  54. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  55. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  56. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  57. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  58. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  59. package/es/components/table/Actions/index.d.ts +0 -1
  60. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  61. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
  62. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  63. package/es/components/table/Header/Buttons/index.js +5 -5
  64. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  65. package/es/components/table/Table/SelectField/index.js +4 -4
  66. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  67. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  68. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  69. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  70. package/es/components/table/Table/fields/index.d.ts +0 -1
  71. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  72. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  73. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  74. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  75. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  76. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  79. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  81. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  83. package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
  84. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  87. package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
  88. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  89. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  90. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  91. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  92. package/es/components/table/Table/utils.d.ts +1 -1
  93. package/es/components/table/View/index.d.ts +0 -1
  94. package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
  95. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  96. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  97. package/es/components/translation/utils.js +5 -5
  98. package/es/components/versionSelect/index.d.ts +0 -1
  99. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  100. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  101. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  102. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  103. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  104. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  105. package/es/components/walletCard/Guide/index.d.ts +3 -0
  106. package/es/components/walletCard/Guide/index.js +1 -12
  107. package/es/hooks/useResponsive.js +2 -2
  108. package/es/utils/hoc.js +1 -1
  109. package/es/utils/miniRedux.js +9 -8
  110. package/lib/components/batch-editor/index.d.ts +0 -1
  111. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +5 -2
  112. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  113. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  115. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  116. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  117. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  118. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -6
  119. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  120. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  121. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  122. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  123. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -7
  124. package/lib/components/date-picker/index.d.ts +0 -1
  125. package/lib/components/filter/index.d.ts +0 -1
  126. package/lib/components/lowCodePage/index.js +2 -1
  127. package/lib/components/page/index.d.ts +0 -1
  128. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  129. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  130. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  131. package/lib/components/pisellCardList/index.js +1 -3
  132. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -1
  133. package/lib/components/pisellCheckboxGroup/index.js +0 -16
  134. package/lib/components/pisellInput/index.d.ts +0 -1
  135. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  136. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  137. package/lib/components/pisellModal/components/index.d.ts +0 -1
  138. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  139. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  140. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  141. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  142. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  143. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  144. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  145. package/lib/components/table/Actions/index.d.ts +0 -1
  146. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  147. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  148. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  149. package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
  150. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  151. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  152. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  153. package/lib/components/table/Table/fields/index.d.ts +0 -1
  154. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  155. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  156. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  157. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  158. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  159. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  160. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  161. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  162. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
  163. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  164. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  165. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  166. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  167. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  168. package/lib/components/table/Table/fields/utils/index.js +2 -1
  169. package/lib/components/table/Table/utils.d.ts +1 -1
  170. package/lib/components/table/View/index.d.ts +0 -1
  171. package/lib/components/versionSelect/index.d.ts +0 -1
  172. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  173. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  174. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  175. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  176. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  177. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  178. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  179. package/lib/components/walletCard/Guide/index.js +1 -11
  180. package/lib/hooks/useResponsive.js +6 -3
  181. package/lowcode/data-source-table/meta.ts +14 -0
  182. package/lowcode/form-item-input.password/meta.ts +5 -0
  183. package/package.json +3 -3
@@ -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;
@@ -41,7 +41,8 @@ var LowCodePage = (props) => {
41
41
  const context = (0, import_useEngineContext.default)();
42
42
  const { RenderLowCodeByKey, getRenderLowCodeByKey } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
43
43
  const Com = (0, import_utils.isFunction)(getRenderLowCodeByKey) ? getRenderLowCodeByKey() : RenderLowCodeByKey;
44
- if (!Com) return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
44
+ if (!Com)
45
+ return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
45
46
  return /* @__PURE__ */ import_react.default.createElement(Com, { ...others, id, key: id });
46
47
  };
47
48
  var lowCodePage_default = LowCodePage;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,20 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ }
@@ -62,8 +62,7 @@ var PisellCardList = (props) => {
62
62
  showValidDate,
63
63
  empty,
64
64
  showEmpty,
65
- showBalanceSymbol,
66
- onChangeDebounce
65
+ showBalanceSymbol
67
66
  } = props;
68
67
  return data.length ? /* @__PURE__ */ import_react.default.createElement(
69
68
  import_pisellCheckboxGroup.default,
@@ -77,7 +76,6 @@ var PisellCardList = (props) => {
77
76
  onChange,
78
77
  iconPosition: "hide",
79
78
  fullWidth,
80
- onChangeDebounce,
81
79
  renderOption: (item, active, index) => {
82
80
  return /* @__PURE__ */ import_react.default.createElement(
83
81
  import_pisellWalletPassCard.default,
@@ -23,7 +23,6 @@ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivEl
23
23
  iconPosition?: 'left' | 'right' | 'hide';
24
24
  optionClassName?: string;
25
25
  optionActiveClassName?: string;
26
- onChangeDebounce?: boolean;
27
26
  }
28
27
  /**
29
28
  * @title: PisellCheckboxGroup
@@ -36,7 +36,6 @@ var import_react = __toESM(require("react"));
36
36
  var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
37
37
  var import_classnames = __toESM(require("classnames"));
38
38
  var import_antd = require("antd");
39
- var import_ahooks = require("ahooks");
40
39
  var import_utils = require("@pisell/utils");
41
40
  var import_utils2 = require("@pisell/utils");
42
41
  var import_index = require("./index.less");
@@ -63,7 +62,6 @@ var PisellCheckboxGroup = (props) => {
63
62
  iconPosition = "left",
64
63
  optionClassName,
65
64
  optionActiveClassName,
66
- onChangeDebounce,
67
65
  ...rest
68
66
  } = props;
69
67
  const [_value, set_value] = (0, import_react2.useState)([]);
@@ -114,16 +112,6 @@ var PisellCheckboxGroup = (props) => {
114
112
  const _onChange = (val, item) => {
115
113
  onChange == null ? void 0 : onChange(mode === "single" ? val[0] : val, item);
116
114
  };
117
- const { run } = (0, import_ahooks.useDebounceFn)(
118
- (key, item) => {
119
- handleSelectItem(key, item);
120
- },
121
- {
122
- wait: 400,
123
- leading: true,
124
- trailing: false
125
- }
126
- );
127
115
  const handleSelectItem = (key, item) => {
128
116
  let newVal = [key];
129
117
  if (mode === "multiple") {
@@ -158,10 +146,6 @@ var PisellCheckboxGroup = (props) => {
158
146
  style: rowStyle,
159
147
  onClick: (e) => {
160
148
  if (option.disabled) return;
161
- if (onChangeDebounce) {
162
- run(option[rowKey], option);
163
- return;
164
- }
165
149
  handleSelectItem(option[rowKey], option);
166
150
  },
167
151
  leftContent: iconPosition === "left" && /* @__PURE__ */ import_react.default.createElement(
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  export interface IpadModalProps extends PcModalProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  import './index.less';
4
3
  export interface MobileModalProps extends PcModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
3
  export default MultiDay;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
4
3
  export default Options;
@@ -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 { 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 { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -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 { 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;
@@ -40,14 +40,17 @@ function filterUtil_default({
40
40
  key,
41
41
  item
42
42
  }) {
43
- if (!value) return true;
43
+ if (!value)
44
+ return true;
44
45
  const valueDayjsObj = (0, import_dayjs.default)(value);
45
46
  if (!valueDayjsObj.isValid()) {
46
47
  return true;
47
48
  }
48
49
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
49
- if ((0, import_utils.isUndefined)(dataValue)) return false;
50
+ if ((0, import_utils.isUndefined)(dataValue))
51
+ return false;
50
52
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
51
- if (!dataDayjsObj.isValid()) return false;
53
+ if (!dataDayjsObj.isValid())
54
+ return false;
52
55
  return dataDayjsObj.isSame(valueDayjsObj, "day");
53
56
  }
@@ -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
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -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
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -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
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -43,15 +43,19 @@ function filterUtil_default({
43
43
  key,
44
44
  item
45
45
  }) {
46
- if (!value) return true;
47
- if ((value == null ? void 0 : value.length) !== 2) return true;
46
+ if (!value)
47
+ return true;
48
+ if ((value == null ? void 0 : value.length) !== 2)
49
+ return true;
48
50
  const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
49
51
  if (valueDayjsObj.some((item2) => !item2.isValid())) {
50
52
  return true;
51
53
  }
52
54
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
53
- if ((0, import_utils.isUndefined)(dataValue)) return false;
55
+ if ((0, import_utils.isUndefined)(dataValue))
56
+ return false;
54
57
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
55
- if (!dataDayjsObj.isValid()) return false;
58
+ if (!dataDayjsObj.isValid())
59
+ return false;
56
60
  return isDateInRange(dataDayjsObj, valueDayjsObj);
57
61
  }
@@ -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
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -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: {
@@ -25,7 +25,8 @@ module.exports = __toCommonJS(utils_exports);
25
25
  var import_utils = require("@pisell/utils");
26
26
  var getValueByKeys = (obj, keys) => {
27
27
  var _a;
28
- if (!keys) return keys;
28
+ if (!keys)
29
+ return keys;
29
30
  if ((0, import_utils.isString)(keys)) {
30
31
  keys = [keys];
31
32
  }
@@ -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
- }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
158
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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 {
@@ -0,0 +1,32 @@
1
+ export declare const amountThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
12
+ export interface AmountProps {
13
+ max?: number;
14
+ min?: number;
15
+ doneText?: string;
16
+ resetText?: string;
17
+ defaultValue?: string | number;
18
+ placeholder?: string;
19
+ amountProps?: {
20
+ showCurrencySymbol: boolean;
21
+ useThousandsSeparator: boolean;
22
+ };
23
+ presets?: BaseNumberKeyboardProps['presets'];
24
+ value?: string | number;
25
+ onChange?: (val: string | number) => void;
26
+ onEnter?: (val: string | number) => void;
27
+ defaultSelect?: boolean;
28
+ inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
30
+ selectType?: 'light' | 'dark';
31
+ backgroundColor?: string;
32
+ containerBackgroundColor?: string;
33
+ buttonBackgroundColor?: string;
34
+ textColor?: string;
35
+ resetButtonBackgroundColor?: string;
36
+ resetButtonTextColor?: string;
37
+ isDoneButtonFollowTheme?: boolean;
38
+ doneButtonBackgroundColor?: string;
39
+ doneButtonTextColor?: string;
40
+ keyboardBackgroundColor?: string;
41
+ keyboardButtonBackgroundColor?: string;
42
+ keyboardButtonTextColor?: string;
43
+ keyboardButtonHoverColor?: string;
44
+ }
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ItemValue = string | number;
4
+ export interface Item {
5
+ value: ItemValue;
6
+ label: React.ReactNode;
7
+ disabled: boolean;
8
+ type: 'text' | 'primary';
9
+ style?: React.CSSProperties;
10
+ size?: number;
11
+ }
12
+ export interface KeyboardProps {
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ onChange?: (value?: ItemValue) => void;
16
+ items?: Item[];
17
+ rightItems?: Item[];
18
+ keydown?: boolean;
19
+ }
20
+ declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
+ export default _default;
@@ -0,0 +1,32 @@
1
+ export declare const numberThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,25 @@
1
+ export interface NumberProps {
2
+ max?: number;
3
+ min?: number;
4
+ doneText?: string;
5
+ resetText: string;
6
+ defaultValue?: string | number;
7
+ placeholder?: string;
8
+ value?: string | number;
9
+ onChange?: (val: string | number) => void;
10
+ onEnter?: (val: string | number) => void;
11
+ selectType?: 'light' | 'dark';
12
+ backgroundColor?: string;
13
+ containerBackgroundColor?: string;
14
+ buttonBackgroundColor?: string;
15
+ textColor?: string;
16
+ resetButtonBackgroundColor?: string;
17
+ resetButtonTextColor?: string;
18
+ isDoneButtonFollowTheme?: boolean;
19
+ doneButtonBackgroundColor?: string;
20
+ doneButtonTextColor?: string;
21
+ keyboardBackgroundColor?: string;
22
+ keyboardButtonBackgroundColor?: string;
23
+ keyboardButtonTextColor?: string;
24
+ keyboardButtonHoverColor?: string;
25
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import './index.less';
4
+ export interface VirtualKeyInputProps extends InputProps {
5
+ previewValue?: string;
6
+ renderInput?: (props: any) => any;
7
+ showDelete?: boolean;
8
+ onValueSelect?: (selected: boolean) => void;
9
+ defaultSelect?: boolean;
10
+ style?: React.CSSProperties;
11
+ }
12
+ declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
+ export default VirtualKeyInput;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Guide: (props: any) => JSX.Element;
3
+ export default Guide;
@@ -51,19 +51,9 @@ var Guide = (props) => {
51
51
  return (setting == null ? void 0 : setting.walletGuideConfig) || {};
52
52
  }, [setting == null ? void 0 : setting.walletGuideConfig]);
53
53
  const handleClick = (e) => {
54
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
54
+ var _a2;
55
55
  e.stopPropagation();
56
56
  if (!((_a2 = _setting == null ? void 0 : _setting.skipLink) == null ? void 0 : _a2.page)) return;
57
- if ((_d2 = (_c2 = (_b2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _b2.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d2.call(_c2)) {
58
- (_g2 = (_f2 = (_e2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.postMessageToApp) == null ? void 0 : _g2.call(_f2, {
59
- module: "global",
60
- key: "openNative",
61
- data: {
62
- link: _setting == null ? void 0 : _setting.skipLink
63
- }
64
- });
65
- return;
66
- }
67
57
  utils == null ? void 0 : utils.jumpPageByLink(_setting == null ? void 0 : _setting.skipLink);
68
58
  };
69
59
  return /* @__PURE__ */ import_react.default.createElement(