@pisell/materials 1.0.112 → 1.0.113
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/designer.html +2 -2
- package/build/lowcode/index.html +2 -2
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +12 -12
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +16 -16
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/page/index.js +131 -131
- package/es/components/table/BasicTable/index.js +2 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/lib/components/page/index.js +129 -129
- package/lib/components/table/BasicTable/index.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +12 -12
- package/package.json +4 -4
- package/es/components/qrcode/index.d.ts +0 -3
- package/es/components/qrcode/index.js +0 -44
- package/lib/components/qrcode/index.d.ts +0 -3
- package/lib/components/qrcode/index.js +0 -68
package/lib/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { Progress } from "antd";
|
|
|
26
26
|
export { Rate } from "antd";
|
|
27
27
|
export { Result } from "antd";
|
|
28
28
|
export { Row } from "antd";
|
|
29
|
+
export { QRCode } from "antd";
|
|
29
30
|
export { Space } from "antd";
|
|
30
31
|
export { Spin } from "antd";
|
|
31
32
|
export { Steps } from "antd";
|
|
@@ -65,4 +66,3 @@ export { default as Filter } from "./components/filter";
|
|
|
65
66
|
export { default as Translation } from "./components/translation";
|
|
66
67
|
export { default as SortableList } from "./components/sortableList";
|
|
67
68
|
export { default as RecordView } from "./components/record-view";
|
|
68
|
-
export { default as QRCode } from "./components/qrcode";
|
package/lib/index.js
CHANGED
|
@@ -67,7 +67,7 @@ __export(src_exports, {
|
|
|
67
67
|
Popconfirm: () => import_antd23.Popconfirm,
|
|
68
68
|
Popover: () => import_antd24.Popover,
|
|
69
69
|
Progress: () => import_antd25.Progress,
|
|
70
|
-
QRCode: () =>
|
|
70
|
+
QRCode: () => import_antd29.QRCode,
|
|
71
71
|
Radio: () => import_radio.default,
|
|
72
72
|
Rate: () => import_antd26.Rate,
|
|
73
73
|
RecordView: () => import_record_view.default,
|
|
@@ -77,26 +77,26 @@ __export(src_exports, {
|
|
|
77
77
|
Skeleton: () => import_skeleton.default,
|
|
78
78
|
Slider: () => import_slider.default,
|
|
79
79
|
SortableList: () => import_sortableList.default,
|
|
80
|
-
Space: () =>
|
|
81
|
-
Spin: () =>
|
|
80
|
+
Space: () => import_antd30.Space,
|
|
81
|
+
Spin: () => import_antd31.Spin,
|
|
82
82
|
Statistic: () => import_antd20.Statistic,
|
|
83
|
-
Steps: () =>
|
|
84
|
-
Switch: () =>
|
|
83
|
+
Steps: () => import_antd32.Steps,
|
|
84
|
+
Switch: () => import_antd33.Switch,
|
|
85
85
|
Table: () => import_table.default,
|
|
86
86
|
Tabs: () => import_tabs.default,
|
|
87
|
-
Tag: () =>
|
|
87
|
+
Tag: () => import_antd36.Tag,
|
|
88
88
|
TimePicker: () => import_time_picker.default,
|
|
89
|
-
Timeline: () =>
|
|
90
|
-
Tooltip: () =>
|
|
91
|
-
Transfer: () =>
|
|
89
|
+
Timeline: () => import_antd37.Timeline,
|
|
90
|
+
Tooltip: () => import_antd38.Tooltip,
|
|
91
|
+
Transfer: () => import_antd34.Transfer,
|
|
92
92
|
Translation: () => import_translation.default,
|
|
93
|
-
Tree: () =>
|
|
93
|
+
Tree: () => import_antd35.Tree,
|
|
94
94
|
TreeSelect: () => import_tree_select.default,
|
|
95
95
|
Typography: () => import_typography.default,
|
|
96
96
|
Upload: () => import_upload.default,
|
|
97
97
|
message: () => import_antd18.message,
|
|
98
98
|
notification: () => import_antd21.notification,
|
|
99
|
-
version: () =>
|
|
99
|
+
version: () => import_antd39.version
|
|
100
100
|
});
|
|
101
101
|
module.exports = __toCommonJS(src_exports);
|
|
102
102
|
var import_antd = require("antd");
|
|
@@ -137,6 +137,7 @@ var import_antd35 = require("antd");
|
|
|
137
137
|
var import_antd36 = require("antd");
|
|
138
138
|
var import_antd37 = require("antd");
|
|
139
139
|
var import_antd38 = require("antd");
|
|
140
|
+
var import_antd39 = require("antd");
|
|
140
141
|
var import_typography = __toESM(require("./components/typography"));
|
|
141
142
|
var import_skeleton = __toESM(require("./components/skeleton"));
|
|
142
143
|
var import_checkbox = __toESM(require("./components/checkbox"));
|
|
@@ -166,7 +167,6 @@ var import_filter = __toESM(require("./components/filter"));
|
|
|
166
167
|
var import_translation = __toESM(require("./components/translation"));
|
|
167
168
|
var import_sortableList = __toESM(require("./components/sortableList"));
|
|
168
169
|
var import_record_view = __toESM(require("./components/record-view"));
|
|
169
|
-
var import_qrcode = __toESM(require("./components/qrcode"));
|
|
170
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
171
171
|
0 && (module.exports = {
|
|
172
172
|
Affix,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"@dnd-kit/utilities": "^3.2.1",
|
|
56
56
|
"ahooks": "^3.7.6",
|
|
57
57
|
"react-infinite-scroll-component": "^6.1.0",
|
|
58
|
-
"@pisell/utils": "1.0.
|
|
59
|
-
"@pisell/
|
|
60
|
-
"@pisell/
|
|
58
|
+
"@pisell/utils": "1.0.7",
|
|
59
|
+
"@pisell/icon": "0.0.8",
|
|
60
|
+
"@pisell/date-picker": "1.0.36"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^18.0.0",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
-
import React, { useMemo } from "react";
|
|
9
|
-
import { QRCode as AntQRCode, Modal } from "antd";
|
|
10
|
-
import { getUniqueId } from "@pisell/utils";
|
|
11
|
-
var QRCode = function QRCode(props) {
|
|
12
|
-
var preview = props.preview;
|
|
13
|
-
var _React$useState = React.useState(false),
|
|
14
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
15
|
-
visible = _React$useState2[0],
|
|
16
|
-
setVisible = _React$useState2[1];
|
|
17
|
-
var id = useMemo(function () {
|
|
18
|
-
return getUniqueId();
|
|
19
|
-
}, []);
|
|
20
|
-
var handleClick = function handleClick(e) {
|
|
21
|
-
e.stopPropagation();
|
|
22
|
-
setVisible(true);
|
|
23
|
-
};
|
|
24
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
25
|
-
onClick: handleClick,
|
|
26
|
-
id: id,
|
|
27
|
-
className: "pisell-lowcode-qrcode-wrap"
|
|
28
|
-
}, /*#__PURE__*/React.createElement(AntQRCode, props)), preview && /*#__PURE__*/React.createElement("span", {
|
|
29
|
-
onClick: function onClick(e) {
|
|
30
|
-
return e.stopPropagation();
|
|
31
|
-
}
|
|
32
|
-
}, /*#__PURE__*/React.createElement(Modal, {
|
|
33
|
-
open: visible,
|
|
34
|
-
onCancel: function onCancel() {
|
|
35
|
-
return setVisible(false);
|
|
36
|
-
},
|
|
37
|
-
footer: null,
|
|
38
|
-
width: 248,
|
|
39
|
-
closeIcon: /*#__PURE__*/React.createElement("span", null)
|
|
40
|
-
}, /*#__PURE__*/React.createElement(AntQRCode, _extends({}, props, {
|
|
41
|
-
size: 200
|
|
42
|
-
})))));
|
|
43
|
-
};
|
|
44
|
-
export default QRCode;
|
|
@@ -1,68 +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/qrcode/index.tsx
|
|
30
|
-
var qrcode_exports = {};
|
|
31
|
-
__export(qrcode_exports, {
|
|
32
|
-
default: () => qrcode_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(qrcode_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var QRCode = (props) => {
|
|
39
|
-
const { preview } = props;
|
|
40
|
-
const [visible, setVisible] = import_react.default.useState(false);
|
|
41
|
-
const id = (0, import_react.useMemo)(() => {
|
|
42
|
-
return (0, import_utils.getUniqueId)();
|
|
43
|
-
}, []);
|
|
44
|
-
const handleClick = (e) => {
|
|
45
|
-
e.stopPropagation();
|
|
46
|
-
setVisible(true);
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
-
"span",
|
|
50
|
-
{
|
|
51
|
-
onClick: handleClick,
|
|
52
|
-
id,
|
|
53
|
-
className: "pisell-lowcode-qrcode-wrap"
|
|
54
|
-
},
|
|
55
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { ...props })
|
|
56
|
-
), preview && /* @__PURE__ */ import_react.default.createElement("span", { onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
-
import_antd.Modal,
|
|
58
|
-
{
|
|
59
|
-
open: visible,
|
|
60
|
-
onCancel: () => setVisible(false),
|
|
61
|
-
footer: null,
|
|
62
|
-
width: 248,
|
|
63
|
-
closeIcon: /* @__PURE__ */ import_react.default.createElement("span", null)
|
|
64
|
-
},
|
|
65
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { ...props, size: 200 })
|
|
66
|
-
)));
|
|
67
|
-
};
|
|
68
|
-
var qrcode_default = QRCode;
|