@pisell/materials 3.3.14 → 3.3.15

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 (208) 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 +3 -3
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +8 -8
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +8 -8
  10. package/es/components/DragSortList/index.js +6 -6
  11. package/es/components/Pagination/index.d.ts +1 -1
  12. package/es/components/batch-editor/index.d.ts +1 -0
  13. package/es/components/classicLayout/index.js +4 -5
  14. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  16. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  22. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  25. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  26. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/index.d.ts +6 -5
  28. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  29. package/es/components/date-picker/index.d.ts +1 -0
  30. package/es/components/filter/index.d.ts +1 -0
  31. package/es/components/icon/index.js +5 -5
  32. package/es/components/list/index.d.ts +1 -0
  33. package/es/components/list/index.js +6 -6
  34. package/es/components/lowCodePage/index.d.ts +1 -0
  35. package/es/components/page/index.d.ts +1 -0
  36. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  37. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  38. package/es/components/pisellGoodPassCard/index.less +3 -2
  39. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  40. package/es/components/pisellInput/index.d.ts +1 -0
  41. package/es/components/pisellLoading/index.d.ts +1 -0
  42. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  43. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  44. package/es/components/pisellModal/components/index.d.ts +1 -0
  45. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  46. package/es/components/productCard/components/Header/index.d.ts +1 -0
  47. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  48. package/es/components/productCard/components/Note/index.d.ts +1 -0
  49. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  50. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  51. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  52. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  53. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  54. package/es/components/productCard/components/Time/index.js +2 -2
  55. package/es/components/qrcode/index.d.ts +1 -0
  56. package/es/components/qrcode/index.js +1 -1
  57. package/es/components/sort/components/InlineMenu/index.js +1 -1
  58. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  59. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  60. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  61. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  62. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  63. package/es/components/table/Actions/index.d.ts +1 -0
  64. package/es/components/table/BasicTable/index.d.ts +1 -0
  65. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  66. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  67. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  68. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  69. package/es/components/table/Header/Buttons/index.js +5 -5
  70. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  71. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  72. package/es/components/table/Table/SelectField/index.js +4 -4
  73. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  74. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  75. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  76. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  80. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  85. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  90. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  92. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  93. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  94. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  95. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  97. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  98. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  99. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  100. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  101. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  102. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  103. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  104. package/es/components/table/Table/utils.d.ts +1 -1
  105. package/es/components/table/View/index.d.ts +1 -0
  106. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  107. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  108. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  109. package/es/components/translation/index.js +10 -10
  110. package/es/components/translation/utils.js +5 -5
  111. package/es/components/versionSelect/index.d.ts +1 -0
  112. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  113. package/es/hooks/useResponsive.js +2 -2
  114. package/es/utils/hoc.js +1 -1
  115. package/es/utils/miniRedux.js +8 -9
  116. package/es/utils/platform.d.ts +1 -1
  117. package/lib/components/Pagination/index.d.ts +1 -1
  118. package/lib/components/batch-editor/index.d.ts +1 -0
  119. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  120. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  121. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  122. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  123. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  124. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  125. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  126. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  127. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  128. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  129. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  130. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  131. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  132. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -5
  133. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  134. package/lib/components/date-picker/index.d.ts +1 -0
  135. package/lib/components/filter/index.d.ts +1 -0
  136. package/lib/components/list/index.d.ts +1 -0
  137. package/lib/components/lowCodePage/index.d.ts +1 -0
  138. package/lib/components/lowCodePage/index.js +1 -2
  139. package/lib/components/page/index.d.ts +1 -0
  140. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  141. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  142. package/lib/components/pisellGoodPassCard/index.less +3 -2
  143. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  144. package/lib/components/pisellInput/index.d.ts +1 -0
  145. package/lib/components/pisellLoading/index.d.ts +1 -0
  146. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  147. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  148. package/lib/components/pisellModal/components/index.d.ts +1 -0
  149. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  150. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  151. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  152. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  153. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  154. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  155. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  156. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  157. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  158. package/lib/components/productCard/components/Time/index.js +3 -2
  159. package/lib/components/qrcode/index.d.ts +1 -0
  160. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  161. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  162. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  163. package/lib/components/table/Actions/index.d.ts +1 -0
  164. package/lib/components/table/BasicTable/index.d.ts +1 -0
  165. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  166. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  167. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  168. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  169. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  170. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  171. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  172. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  173. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  176. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  177. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  178. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  179. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  180. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  181. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  182. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  183. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  184. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  185. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  186. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  187. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  188. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  189. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  190. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  191. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  192. package/lib/components/table/Table/fields/utils/index.js +1 -2
  193. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  194. package/lib/components/table/Table/utils.d.ts +1 -1
  195. package/lib/components/table/View/index.d.ts +1 -0
  196. package/lib/components/versionSelect/index.d.ts +1 -0
  197. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  198. package/lib/hooks/useResponsive.js +3 -6
  199. package/lib/utils/platform.d.ts +1 -1
  200. package/package.json +1 -1
  201. package/dist/umd/materials.min.css +0 -1
  202. package/dist/umd/materials.min.js +0 -1
  203. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  204. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  205. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  206. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  207. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  208. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
4
  export default Packages;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
4
  export default Sales;
@@ -130,7 +130,7 @@ var Time = ({
130
130
  );
131
131
  const resourceCom = (0, import_react.useCallback)(
132
132
  (item2) => {
133
- if (!isShowChangeResource) {
133
+ if ((item2 == null ? void 0 : item2.hasOwnProperty("isShowChangeResource")) && !item2.isShowChangeResource || !isShowChangeResource) {
134
134
  return item2 == null ? void 0 : item2.name;
135
135
  }
136
136
  return /* @__PURE__ */ import_react.default.createElement(
@@ -175,9 +175,10 @@ var Time = ({
175
175
  resources,
176
176
  relation_form_name,
177
177
  is_hide_like,
178
+ resourceErrorText,
178
179
  allowClearResource,
179
180
  isErrorResource,
180
- resourceErrorText
181
+ isShowChangeResource
181
182
  ]);
182
183
  const isShow = (0, import_react.useMemo)(() => {
183
184
  return start_date && end_date || holderCom || likeAndResourceCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const QRCode: (props: any) => JSX.Element;
2
3
  export default QRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'antd';
2
3
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
3
4
  export default BasicTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type RenderFieldsProps = {
3
4
  fields: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -40,17 +40,14 @@ function filterUtil_default({
40
40
  key,
41
41
  item
42
42
  }) {
43
- if (!value)
44
- return true;
43
+ if (!value) return true;
45
44
  const valueDayjsObj = (0, import_dayjs.default)(value);
46
45
  if (!valueDayjsObj.isValid()) {
47
46
  return true;
48
47
  }
49
48
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
50
- if ((0, import_utils.isUndefined)(dataValue))
51
- return false;
49
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
52
50
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
53
- if (!dataDayjsObj.isValid())
54
- return false;
51
+ if (!dataDayjsObj.isValid()) return false;
55
52
  return dataDayjsObj.isSame(valueDayjsObj, "day");
56
53
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -43,19 +43,15 @@ function filterUtil_default({
43
43
  key,
44
44
  item
45
45
  }) {
46
- if (!value)
47
- return true;
48
- if ((value == null ? void 0 : value.length) !== 2)
49
- return true;
46
+ if (!value) return true;
47
+ if ((value == null ? void 0 : value.length) !== 2) return true;
50
48
  const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
51
49
  if (valueDayjsObj.some((item2) => !item2.isValid())) {
52
50
  return true;
53
51
  }
54
52
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
55
- if ((0, import_utils.isUndefined)(dataValue))
56
- return false;
53
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
57
54
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
58
- if (!dataDayjsObj.isValid())
59
- return false;
55
+ if (!dataDayjsObj.isValid()) return false;
60
56
  return isDateInRange(dataDayjsObj, valueDayjsObj);
61
57
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -25,8 +25,7 @@ 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)
29
- return keys;
28
+ if (!keys) return keys;
30
29
  if ((0, import_utils.isString)(keys)) {
31
30
  keys = [keys];
32
31
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  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
- }) => ("group_by" | "column_setting" | "order_by" | "view_mode" | "gallery_setting" | "filter_setting")[];
158
+ }) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface NumberProps {
2
3
  max?: number;
3
4
  min?: number;
@@ -35,8 +35,7 @@ var responsiveConfig = {
35
35
  function handleResize() {
36
36
  const oldInfo = info;
37
37
  calculate();
38
- if (oldInfo === info)
39
- return;
38
+ if (oldInfo === info) return;
40
39
  for (const subscriber of subscribers) {
41
40
  subscriber();
42
41
  }
@@ -58,8 +57,7 @@ function calculate() {
58
57
  }
59
58
  function configResponsive(config) {
60
59
  responsiveConfig = config;
61
- if (info)
62
- calculate();
60
+ if (info) calculate();
63
61
  }
64
62
  function useResponsive() {
65
63
  if (import_utils.isBrowser && !listening) {
@@ -70,8 +68,7 @@ function useResponsive() {
70
68
  }
71
69
  const [state, setState] = (0, import_react.useState)(info);
72
70
  (0, import_react.useEffect)(() => {
73
- if (!import_utils.isBrowser)
74
- return;
71
+ if (!import_utils.isBrowser) return;
75
72
  if (!listening) {
76
73
  window.addEventListener("resize", handleResize);
77
74
  }
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "3.3.14",
3
+ "version": "3.3.15",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1 +0,0 @@
1
- .materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}