@pisell/materials 1.0.452 → 1.0.453
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/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.js +13 -13
- package/es/components/collapse/index.js +14 -6
- package/es/components/collapse/index.less +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +1 -1
- package/lib/components/collapse/index.js +3 -14
- package/lib/components/collapse/index.less +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +1 -1
- package/lowcode/data-source-table/utils.tsx +2 -0
- package/package.json +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _templateObject;
|
|
3
2
|
var _excluded = ["panelBackground", "panelMarginBottom", "panelBorderRadius", "items", "showHeader", "headerColor", "headerFontSize", "expandIcon"];
|
|
4
3
|
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
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -7,12 +6,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
9
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
9
|
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; }
|
|
12
10
|
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; }
|
|
13
11
|
import React, { useMemo } from 'react';
|
|
14
12
|
import { Collapse as OriginalCollapse } from 'antd';
|
|
15
|
-
import styled from 'styled-components';
|
|
16
13
|
import "./index.less";
|
|
17
14
|
var Collapse = function Collapse(props) {
|
|
18
15
|
var panelBackground = props.panelBackground,
|
|
@@ -26,7 +23,17 @@ var Collapse = function Collapse(props) {
|
|
|
26
23
|
rest = _objectWithoutProperties(props, _excluded);
|
|
27
24
|
|
|
28
25
|
// 自定义样式
|
|
29
|
-
|
|
26
|
+
// const CustomCollapse = styled(OriginalCollapse)`
|
|
27
|
+
// .pisell-lowcode-collapse-header {
|
|
28
|
+
// display: flex !important;
|
|
29
|
+
// align-items: center !important;
|
|
30
|
+
// }
|
|
31
|
+
|
|
32
|
+
// .pisell-lowcode-collapse-content {
|
|
33
|
+
// background-color: ${panelBackground ? 'transparent' : '#ffffff'};
|
|
34
|
+
// border-top: ${panelBackground ? '0' : '1px solid #D0D5DD'};
|
|
35
|
+
// }
|
|
36
|
+
// `;
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
* @title: 自定义面板样式
|
|
@@ -61,12 +68,13 @@ var Collapse = function Collapse(props) {
|
|
|
61
68
|
style: panelStyle
|
|
62
69
|
});
|
|
63
70
|
});
|
|
64
|
-
}, [
|
|
65
|
-
return /*#__PURE__*/React.createElement(
|
|
71
|
+
}, [items, headerColor, showHeader, headerFontSize, panelStyle]);
|
|
72
|
+
return /*#__PURE__*/React.createElement(OriginalCollapse, _extends({}, rest, {
|
|
66
73
|
expandIcon: expandIcon ? function () {
|
|
67
74
|
return expandIcon;
|
|
68
75
|
} : undefined,
|
|
69
76
|
items: itemsMap
|
|
70
77
|
}));
|
|
71
78
|
};
|
|
79
|
+
Collapse.Panel = OriginalCollapse.Panel;
|
|
72
80
|
export default Collapse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
2
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
3
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
4
4
|
} & {
|
|
5
5
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -34,7 +34,6 @@ __export(collapse_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(collapse_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
38
37
|
var import_index = require("./index.less");
|
|
39
38
|
var Collapse = (props) => {
|
|
40
39
|
const {
|
|
@@ -48,17 +47,6 @@ var Collapse = (props) => {
|
|
|
48
47
|
expandIcon,
|
|
49
48
|
...rest
|
|
50
49
|
} = props;
|
|
51
|
-
const CustomCollapse = (0, import_styled_components.default)(import_antd.Collapse)`
|
|
52
|
-
.pisell-lowcode-collapse-header {
|
|
53
|
-
display: flex !important;
|
|
54
|
-
align-items: center !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.pisell-lowcode-collapse-content {
|
|
58
|
-
background-color: ${panelBackground ? "transparent" : "#ffffff"};
|
|
59
|
-
border-top: ${panelBackground ? "0" : "1px solid #D0D5DD"};
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
50
|
const panelStyle = {
|
|
63
51
|
marginBottom: panelMarginBottom,
|
|
64
52
|
background: panelBackground,
|
|
@@ -81,9 +69,9 @@ var Collapse = (props) => {
|
|
|
81
69
|
style: panelStyle
|
|
82
70
|
};
|
|
83
71
|
});
|
|
84
|
-
}, [
|
|
72
|
+
}, [items, headerColor, showHeader, headerFontSize, panelStyle]);
|
|
85
73
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
-
|
|
74
|
+
import_antd.Collapse,
|
|
87
75
|
{
|
|
88
76
|
...rest,
|
|
89
77
|
expandIcon: expandIcon ? () => expandIcon : void 0,
|
|
@@ -91,4 +79,5 @@ var Collapse = (props) => {
|
|
|
91
79
|
}
|
|
92
80
|
);
|
|
93
81
|
};
|
|
82
|
+
Collapse.Panel = import_antd.Collapse.Panel;
|
|
94
83
|
var collapse_default = Collapse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
2
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
3
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
4
4
|
} & {
|
|
5
5
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.453",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
66
66
|
"react-window": "^1.8.10",
|
|
67
67
|
"styled-components": "^6.0.0-rc.3",
|
|
68
|
+
"@pisell/date-picker": "1.0.112",
|
|
68
69
|
"@pisell/icon": "0.0.10",
|
|
69
|
-
"@pisell/utils": "1.0.43"
|
|
70
|
-
"@pisell/date-picker": "1.0.112"
|
|
70
|
+
"@pisell/utils": "1.0.43"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^18.0.0",
|