@pisell/materials 1.0.259 → 1.0.261

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 (55) 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 +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +29 -20
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +29 -20
  11. package/es/components/sort/index.js +1 -1
  12. package/es/components/sort/types.d.ts +0 -1
  13. package/es/components/table/Table/fields/rangePicker/Edit/index.js +7 -8
  14. package/es/components/table/Table/utils.d.ts +1 -1
  15. package/es/components/table/hooks/useTransSortSetting.js +1 -4
  16. package/es/components/table/hooks/useTriggerValuesChange.js +2 -24
  17. package/es/index.d.ts +0 -2
  18. package/es/index.js +1 -3
  19. package/es/locales/en-US.d.ts +0 -7
  20. package/es/locales/en-US.js +1 -8
  21. package/es/locales/zh-CN.d.ts +0 -7
  22. package/es/locales/zh-CN.js +1 -8
  23. package/es/locales/zh-TW.d.ts +0 -7
  24. package/es/locales/zh-TW.js +1 -8
  25. package/lib/components/sort/index.js +1 -1
  26. package/lib/components/sort/types.d.ts +0 -1
  27. package/lib/components/table/Table/fields/rangePicker/Edit/index.js +7 -8
  28. package/lib/components/table/Table/utils.d.ts +1 -1
  29. package/lib/components/table/hooks/useTransSortSetting.js +1 -3
  30. package/lib/components/table/hooks/useTriggerValuesChange.js +3 -18
  31. package/lib/index.d.ts +0 -2
  32. package/lib/index.js +0 -6
  33. package/lib/locales/en-US.d.ts +0 -7
  34. package/lib/locales/en-US.js +1 -8
  35. package/lib/locales/zh-CN.d.ts +0 -7
  36. package/lib/locales/zh-CN.js +1 -8
  37. package/lib/locales/zh-TW.d.ts +0 -7
  38. package/lib/locales/zh-TW.js +1 -8
  39. package/package.json +3 -3
  40. package/dist/umd/materials.min.css +0 -1
  41. package/dist/umd/materials.min.js +0 -1
  42. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  43. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  44. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  45. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  46. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  47. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  48. package/es/components/auto-complete-number/index.d.ts +0 -10
  49. package/es/components/auto-complete-number/index.js +0 -28
  50. package/es/components/picker-view/index.d.ts +0 -2
  51. package/es/components/picker-view/index.js +0 -2
  52. package/lib/components/auto-complete-number/index.d.ts +0 -10
  53. package/lib/components/auto-complete-number/index.js +0 -48
  54. package/lib/components/picker-view/index.d.ts +0 -2
  55. package/lib/components/picker-view/index.js +0 -36
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { AutoCompleteProps, InputNumberProps } from "antd";
3
- interface AutoCompleteNumberProps {
4
- autoCompleteProps: AutoCompleteProps;
5
- inputNumberProps: InputNumberProps;
6
- value?: any;
7
- onChange?: any;
8
- }
9
- declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => React.JSX.Element;
10
- export default AutoCompleteNumber;
@@ -1,28 +0,0 @@
1
- var _excluded = ["autoCompleteProps", "inputNumberProps"];
2
- 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; }
3
- 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; }
4
- 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); }
5
- import React, { forwardRef } from "react";
6
- import { AutoComplete, InputNumber as AntdInputNumber } from "antd";
7
- var InputNumber = /*#__PURE__*/forwardRef(function (props, ref) {
8
- var onChange = function onChange(e) {
9
- // 转换格式, AutoComplete缺陷, 只识别 e.target.value的值
10
- var _val = e === null || e === undefined ? "" : e + "";
11
- props.onChange && props.onChange({
12
- target: {
13
- value: _val
14
- }
15
- });
16
- };
17
- return /*#__PURE__*/React.createElement(AntdInputNumber, _extends({}, props, {
18
- onChange: onChange,
19
- ref: ref
20
- }));
21
- });
22
- var AutoCompleteNumber = function AutoCompleteNumber(props) {
23
- var autoCompleteProps = props.autoCompleteProps,
24
- inputNumberProps = props.inputNumberProps,
25
- resetProps = _objectWithoutProperties(props, _excluded);
26
- return /*#__PURE__*/React.createElement(AutoComplete, _extends({}, resetProps, autoCompleteProps), /*#__PURE__*/React.createElement(InputNumber, inputNumberProps));
27
- };
28
- export default AutoCompleteNumber;
@@ -1,2 +0,0 @@
1
- import PickerView from 'antd-mobile/es/components/picker-view';
2
- export default PickerView;
@@ -1,2 +0,0 @@
1
- import PickerView from 'antd-mobile/es/components/picker-view';
2
- export default PickerView;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { AutoCompleteProps, InputNumberProps } from "antd";
3
- interface AutoCompleteNumberProps {
4
- autoCompleteProps: AutoCompleteProps;
5
- inputNumberProps: InputNumberProps;
6
- value?: any;
7
- onChange?: any;
8
- }
9
- declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => React.JSX.Element;
10
- export default AutoCompleteNumber;
@@ -1,48 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/auto-complete-number/index.tsx
30
- var auto_complete_number_exports = {};
31
- __export(auto_complete_number_exports, {
32
- default: () => auto_complete_number_default
33
- });
34
- module.exports = __toCommonJS(auto_complete_number_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_antd = require("antd");
37
- var InputNumber = (0, import_react.forwardRef)((props, ref) => {
38
- const onChange = (e) => {
39
- let _val = e === null || e === void 0 ? "" : e + "";
40
- props.onChange && props.onChange({ target: { value: _val } });
41
- };
42
- return /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, { ...props, onChange, ref });
43
- });
44
- var AutoCompleteNumber = (props) => {
45
- const { autoCompleteProps, inputNumberProps, ...resetProps } = props;
46
- return /* @__PURE__ */ import_react.default.createElement(import_antd.AutoComplete, { ...resetProps, ...autoCompleteProps }, /* @__PURE__ */ import_react.default.createElement(InputNumber, { ...inputNumberProps }));
47
- };
48
- var auto_complete_number_default = AutoCompleteNumber;
@@ -1,2 +0,0 @@
1
- import PickerView from 'antd-mobile/es/components/picker-view';
2
- export default PickerView;
@@ -1,36 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/picker-view/index.tsx
30
- var picker_view_exports = {};
31
- __export(picker_view_exports, {
32
- default: () => picker_view_default
33
- });
34
- module.exports = __toCommonJS(picker_view_exports);
35
- var import_picker_view = __toESM(require("antd-mobile/es/components/picker-view"));
36
- var picker_view_default = import_picker_view.default;