@pisell/materials 1.0.507 → 1.0.509
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 +3 -3
- package/build/lowcode/preview.js +7 -7
- 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 +21 -21
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/TimeResourceSelector/index.js +115 -0
- package/es/components/TimeResourceSelector/index.less +59 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +10 -16
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +6 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +22 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +6 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +8 -7
- package/es/components/page/index.js +4 -2
- package/es/components/pisellAnchor/index.d.ts +1 -0
- package/es/components/pisellAnchor/index.js +10 -4
- package/es/components/pisellHeaderProgressBar/index.d.ts +27 -0
- package/es/components/pisellHeaderProgressBar/index.js +75 -0
- package/es/components/pisellHeaderProgressBar/index.less +19 -0
- package/es/components/pisellList01/index.d.ts +13 -0
- package/es/components/pisellList01/index.js +94 -0
- package/es/components/pisellList01/index.less +45 -0
- package/es/components/pisellSectionHeaders/index.js +3 -7
- package/es/components/pisellSectionHeaders/index.less +8 -10
- package/es/components/pisellViewGrid/index.js +5 -1
- package/es/components/select/index.js +3 -2
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/TimeResourceSelector/index.js +109 -0
- package/lib/components/TimeResourceSelector/index.less +59 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +4 -5
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +6 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +23 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +6 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +1 -6
- package/lib/components/page/index.js +2 -2
- package/lib/components/pisellAnchor/index.d.ts +1 -0
- package/lib/components/pisellAnchor/index.js +9 -7
- package/lib/components/pisellHeaderProgressBar/index.d.ts +27 -0
- package/lib/components/pisellHeaderProgressBar/index.js +86 -0
- package/lib/components/pisellHeaderProgressBar/index.less +19 -0
- package/lib/components/pisellList01/index.d.ts +13 -0
- package/lib/components/pisellList01/index.js +97 -0
- package/lib/components/pisellList01/index.less +45 -0
- package/lib/components/pisellSectionHeaders/index.js +2 -8
- package/lib/components/pisellSectionHeaders/index.less +8 -10
- package/lib/components/pisellViewGrid/index.js +5 -1
- package/lib/components/select/index.js +2 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lowcode/data-source-table/meta.ts +281 -0
- package/lowcode/pisell-custom-checkbox-group/meta.ts +156 -154
- package/lowcode/pisell-header-progress-bar/meta.ts +116 -0
- package/lowcode/pisell-header-progress-bar/snippets.ts +24 -0
- package/lowcode/pisell-list01/meta.ts +74 -0
- package/lowcode/pisell-list01/snippets.ts +35 -0
- package/package.json +3 -3
- package/es/components/pisellProgressBar/index.d.ts +0 -14
- package/es/components/pisellProgressBar/index.js +0 -44
- package/es/components/pisellProgressBar/index.less +0 -48
- package/lib/components/pisellProgressBar/index.d.ts +0 -14
- package/lib/components/pisellProgressBar/index.js +0 -62
- package/lib/components/pisellProgressBar/index.less +0 -48
- package/lowcode/pisell-progress-bar/meta.ts +0 -115
- package/lowcode/pisell-progress-bar/snippets.ts +0 -15
|
@@ -38,7 +38,8 @@ var import_icons = require("@ant-design/icons");
|
|
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
|
39
39
|
var import_index = require("./index.less");
|
|
40
40
|
var PisellAnchor = (props) => {
|
|
41
|
-
|
|
41
|
+
var _a;
|
|
42
|
+
const { items = [], getContainer, className, ...rest } = props;
|
|
42
43
|
const scrollRef = (0, import_react.useRef)(null);
|
|
43
44
|
const [canScrollLeft, setCanScrollLeft] = (0, import_react.useState)(false);
|
|
44
45
|
const [canScrollRight, setCanScrollRight] = (0, import_react.useState)(false);
|
|
@@ -50,13 +51,13 @@ var PisellAnchor = (props) => {
|
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
(0, import_react.useEffect)(() => {
|
|
53
|
-
var
|
|
54
|
+
var _a2;
|
|
54
55
|
document.body.id = "body";
|
|
55
56
|
checkScroll();
|
|
56
|
-
(
|
|
57
|
+
(_a2 = scrollRef.current) == null ? void 0 : _a2.addEventListener("scroll", checkScroll);
|
|
57
58
|
return () => {
|
|
58
|
-
var
|
|
59
|
-
(
|
|
59
|
+
var _a3;
|
|
60
|
+
(_a3 = scrollRef.current) == null ? void 0 : _a3.removeEventListener("scroll", checkScroll);
|
|
60
61
|
};
|
|
61
62
|
}, []);
|
|
62
63
|
const handleScroll = (direction) => {
|
|
@@ -97,9 +98,10 @@ var PisellAnchor = (props) => {
|
|
|
97
98
|
items,
|
|
98
99
|
direction: "horizontal",
|
|
99
100
|
replace: true,
|
|
100
|
-
getCurrentAnchor: items[0].href,
|
|
101
|
+
getCurrentAnchor: (_a = items == null ? void 0 : items[0]) == null ? void 0 : _a.href,
|
|
101
102
|
showInkInFixed: true,
|
|
102
|
-
affix: false
|
|
103
|
+
affix: false,
|
|
104
|
+
...rest
|
|
103
105
|
}
|
|
104
106
|
)), (canScrollRight || canScrollLeft) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-anchor-buttons" }, /* @__PURE__ */ import_react.default.createElement(
|
|
105
107
|
import_antd.Button,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellHeaderProgressBarProps {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
stepText?: React.ReactNode;
|
|
6
|
+
showClose?: boolean;
|
|
7
|
+
/** 是否启用投影 */
|
|
8
|
+
enableShadow?: boolean;
|
|
9
|
+
/** 是否启用描边 */
|
|
10
|
+
enableBorder?: boolean;
|
|
11
|
+
/** 描边粗细 */
|
|
12
|
+
borderWidth?: number;
|
|
13
|
+
/** 描边颜色 */
|
|
14
|
+
borderColor?: string;
|
|
15
|
+
/** 头部背景颜色 */
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
/** 自定义类名 */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** 自定义样式 */
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
/** 返回按钮点击事件 */
|
|
22
|
+
onBack?: () => void;
|
|
23
|
+
/** 关闭按钮点击事件 */
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
}
|
|
26
|
+
declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
|
|
27
|
+
export default PisellHeaderProgressBar;
|
|
@@ -0,0 +1,86 @@
|
|
|
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/pisellHeaderProgressBar/index.tsx
|
|
30
|
+
var pisellHeaderProgressBar_exports = {};
|
|
31
|
+
__export(pisellHeaderProgressBar_exports, {
|
|
32
|
+
default: () => pisellHeaderProgressBar_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellHeaderProgressBar_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_pisellSectionHeaders = __toESM(require("../pisellSectionHeaders"));
|
|
38
|
+
var import_iconfont = __toESM(require("../iconfont"));
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var prefixCls = "pisell-header-progress-bar";
|
|
41
|
+
var PisellHeaderProgressBar = ({
|
|
42
|
+
title,
|
|
43
|
+
stepText,
|
|
44
|
+
showClose = true,
|
|
45
|
+
enableShadow = false,
|
|
46
|
+
enableBorder = false,
|
|
47
|
+
borderWidth = 1,
|
|
48
|
+
borderColor = "#d0d5dd",
|
|
49
|
+
backgroundColor = "#FFFFFF",
|
|
50
|
+
className,
|
|
51
|
+
style,
|
|
52
|
+
onBack,
|
|
53
|
+
onClose
|
|
54
|
+
}) => {
|
|
55
|
+
const classes = (0, import_classnames.default)(prefixCls, className);
|
|
56
|
+
const customStyle = {
|
|
57
|
+
...style,
|
|
58
|
+
backgroundColor,
|
|
59
|
+
boxShadow: enableShadow ? "0px 1px 2px 0px rgba(16, 24, 40, 0.05)" : "none",
|
|
60
|
+
borderBottom: enableBorder ? `${borderWidth}px solid ${borderColor}` : "none"
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: classes }, /* @__PURE__ */ import_react.default.createElement(
|
|
63
|
+
import_pisellSectionHeaders.default,
|
|
64
|
+
{
|
|
65
|
+
backNode: /* @__PURE__ */ import_react.default.createElement(
|
|
66
|
+
import_iconfont.default,
|
|
67
|
+
{
|
|
68
|
+
className: `${prefixCls}-back-icon`,
|
|
69
|
+
type: "pisell2-chevron-left"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
centerNode: /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-center` }, stepText ? /* @__PURE__ */ import_react.default.createElement("div", { className: "step" }, stepText) : null, title ? /* @__PURE__ */ import_react.default.createElement("div", { className: "select-text" }, title) : null),
|
|
73
|
+
actionNode: showClose ? /* @__PURE__ */ import_react.default.createElement(
|
|
74
|
+
import_iconfont.default,
|
|
75
|
+
{
|
|
76
|
+
type: "pisell2-x-close",
|
|
77
|
+
className: `${prefixCls}-close-icon`
|
|
78
|
+
}
|
|
79
|
+
) : null,
|
|
80
|
+
style: customStyle,
|
|
81
|
+
onAction: onClose,
|
|
82
|
+
onBack
|
|
83
|
+
}
|
|
84
|
+
));
|
|
85
|
+
};
|
|
86
|
+
var pisellHeaderProgressBar_default = PisellHeaderProgressBar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.pisell-header-progress-bar {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
&-center {
|
|
6
|
+
margin-left: 14px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&-back-icon {
|
|
10
|
+
font-size: 36px;
|
|
11
|
+
color: #000000;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-close-icon {
|
|
15
|
+
font-size: 36px;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
color: #000000;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellList01Props {
|
|
4
|
+
dataSource?: any[];
|
|
5
|
+
showSearch: boolean;
|
|
6
|
+
showCategory: boolean;
|
|
7
|
+
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
onChange?: (anchor: string) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const PisellList01: React.FC<PisellList01Props>;
|
|
13
|
+
export default PisellList01;
|
|
@@ -0,0 +1,97 @@
|
|
|
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/pisellList01/index.tsx
|
|
30
|
+
var pisellList01_exports = {};
|
|
31
|
+
__export(pisellList01_exports, {
|
|
32
|
+
default: () => pisellList01_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellList01_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_icons = require("@ant-design/icons");
|
|
37
|
+
var import_pisellViewGrid = __toESM(require("../pisellViewGrid"));
|
|
38
|
+
var import_pisellAnchor = __toESM(require("../pisellAnchor"));
|
|
39
|
+
var import_input = __toESM(require("../input"));
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var PisellList01 = ({
|
|
42
|
+
showSearch,
|
|
43
|
+
showCategory,
|
|
44
|
+
dataSource,
|
|
45
|
+
renderItem,
|
|
46
|
+
className,
|
|
47
|
+
style,
|
|
48
|
+
onChange
|
|
49
|
+
}) => {
|
|
50
|
+
const [currentAnchor, setCurrentAnchor] = (0, import_react.useState)("");
|
|
51
|
+
const [products, setProducts] = (0, import_react.useState)([]);
|
|
52
|
+
(0, import_react.useEffect)(() => {
|
|
53
|
+
if (currentAnchor) {
|
|
54
|
+
const currentData = dataSource == null ? void 0 : dataSource.find(
|
|
55
|
+
(item) => item.href === currentAnchor
|
|
56
|
+
);
|
|
57
|
+
setProducts((currentData == null ? void 0 : currentData.children) ?? []);
|
|
58
|
+
}
|
|
59
|
+
}, [currentAnchor, dataSource]);
|
|
60
|
+
(0, import_react.useEffect)(() => {
|
|
61
|
+
var _a;
|
|
62
|
+
setCurrentAnchor(((_a = dataSource == null ? void 0 : dataSource[0]) == null ? void 0 : _a.href) ?? "");
|
|
63
|
+
}, [dataSource]);
|
|
64
|
+
const categoryTitle = (0, import_react.useMemo)(() => {
|
|
65
|
+
var _a;
|
|
66
|
+
return (_a = dataSource == null ? void 0 : dataSource.find((item) => item.href === currentAnchor)) == null ? void 0 : _a.title;
|
|
67
|
+
}, [currentAnchor, dataSource]);
|
|
68
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-list-01 ${className}`, style }, showSearch ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-list-01-search" }, /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_input.default,
|
|
70
|
+
{
|
|
71
|
+
placeholder: "Search",
|
|
72
|
+
prefix: /* @__PURE__ */ import_react.default.createElement(import_icons.SearchOutlined, { style: { color: "#667085" } }),
|
|
73
|
+
allowClear: true,
|
|
74
|
+
size: "large",
|
|
75
|
+
className: "pisell-list-01-search-input"
|
|
76
|
+
}
|
|
77
|
+
)) : null, showCategory ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-list-01-categories" }, /* @__PURE__ */ import_react.default.createElement(
|
|
78
|
+
import_pisellAnchor.default,
|
|
79
|
+
{
|
|
80
|
+
items: dataSource,
|
|
81
|
+
getCurrentAnchor: currentAnchor,
|
|
82
|
+
onChange: (e) => {
|
|
83
|
+
onChange == null ? void 0 : onChange(e);
|
|
84
|
+
setCurrentAnchor(e);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
)) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-list-01-products" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-list-01-products-title" }, categoryTitle), /* @__PURE__ */ import_react.default.createElement(
|
|
88
|
+
import_pisellViewGrid.default,
|
|
89
|
+
{
|
|
90
|
+
dataSource: products,
|
|
91
|
+
columns: 1,
|
|
92
|
+
verticalGap: 16,
|
|
93
|
+
renderItem
|
|
94
|
+
}
|
|
95
|
+
)));
|
|
96
|
+
};
|
|
97
|
+
var pisellList01_default = PisellList01;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.pisell-list-01 {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
&-search {
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 16px;
|
|
9
|
+
|
|
10
|
+
.pisell-list-01-search-input {
|
|
11
|
+
display: flex;
|
|
12
|
+
padding: 10px 14px;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
align-self: stretch;
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
18
|
+
background: var(--Base-White, #fff);
|
|
19
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
20
|
+
height: 44px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-categories {
|
|
25
|
+
padding: 16px 0 16px 20px;
|
|
26
|
+
.pisell-lowcode-anchor-wrapper {
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
}
|
|
30
|
+
.pisell-lowcode-anchor-wrapper-horizontal::before {
|
|
31
|
+
border: none !important;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-products {
|
|
36
|
+
padding: 20px;
|
|
37
|
+
.pisell-list-01-products-title {
|
|
38
|
+
color: var(--Gray-900, #101828);
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
line-height: 24px;
|
|
42
|
+
margin-bottom: 16px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -46,13 +46,7 @@ var PisellSectionHeaders = ({
|
|
|
46
46
|
onBack,
|
|
47
47
|
onAction
|
|
48
48
|
}) => {
|
|
49
|
-
const classes = (0, import_classnames.default)(
|
|
50
|
-
|
|
51
|
-
// {
|
|
52
|
-
// [`${prefixCls}-float`]: !takeSpace,
|
|
53
|
-
// },
|
|
54
|
-
className
|
|
55
|
-
);
|
|
56
|
-
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: classes, style: { ...style } }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-content` }, backNode && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-back`, onClick: onBack }, backNode), centerNode && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-main` }, centerNode), actionNode && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-actions`, onClick: onAction }, actionNode))));
|
|
49
|
+
const classes = (0, import_classnames.default)(prefixCls, className);
|
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: classes, style: { ...style } }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-content` }, backNode && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-back`, onClick: onBack }, backNode), centerNode && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-main` }, centerNode), actionNode && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-actions`, onClick: onAction }, actionNode)));
|
|
57
51
|
};
|
|
58
52
|
var pisellSectionHeaders_default = PisellSectionHeaders;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
@prefix: pisell-section-headers;
|
|
2
|
-
@height: 56px;
|
|
3
2
|
|
|
4
3
|
.@{prefix} {
|
|
5
4
|
width: 100%;
|
|
6
|
-
height: @height;
|
|
7
5
|
z-index: 100;
|
|
8
|
-
position:
|
|
6
|
+
position: sticky;
|
|
9
7
|
top: 0;
|
|
10
|
-
left: 0;
|
|
11
8
|
border-bottom: 1px solid var(--Gray-300, #d0d5dd);
|
|
12
9
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
10
|
+
padding: 16px;
|
|
11
|
+
height: auto;
|
|
13
12
|
|
|
14
13
|
&-fixed {
|
|
15
14
|
position: fixed;
|
|
@@ -18,15 +17,14 @@
|
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
&-placeholder {
|
|
21
|
-
height: @height;
|
|
22
20
|
width: 100%;
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
&-content {
|
|
26
24
|
height: 100%;
|
|
27
|
-
padding:
|
|
25
|
+
padding: 0;
|
|
28
26
|
display: flex;
|
|
29
|
-
align-items: center;
|
|
27
|
+
// align-items: center;
|
|
30
28
|
justify-content: space-between;
|
|
31
29
|
gap: 10px;
|
|
32
30
|
}
|
|
@@ -37,9 +35,9 @@
|
|
|
37
35
|
|
|
38
36
|
&-main {
|
|
39
37
|
flex: 1;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
38
|
+
// display: flex;
|
|
39
|
+
// align-items: center;
|
|
40
|
+
// justify-content: center;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
&-actions {
|
|
@@ -91,9 +91,13 @@ var PisellViewGrid = ({
|
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
93
|
className: "pisell-view-grid-content",
|
|
94
|
-
style: {
|
|
94
|
+
style: !singleRow ? {
|
|
95
95
|
gap: `${verticalGap}px ${horizontalGap}px`,
|
|
96
96
|
gridTemplateColumns: `repeat(${columns}, 1fr)`
|
|
97
|
+
} : {
|
|
98
|
+
display: "flex",
|
|
99
|
+
flexWrap: "nowrap",
|
|
100
|
+
overflowX: "auto"
|
|
97
101
|
}
|
|
98
102
|
},
|
|
99
103
|
dataSource.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -98,9 +98,10 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
98
98
|
return mode === "multiple" && isShowDropdown && selectAll;
|
|
99
99
|
}, [mode, selectAll, isShowDropdown]);
|
|
100
100
|
const checkboxChecked = (0, import_react.useMemo)(() => {
|
|
101
|
+
var _a, _b, _c;
|
|
101
102
|
if (mode !== "multiple")
|
|
102
103
|
return false;
|
|
103
|
-
return (state == null ? void 0 : state.length) === (filteredOptions == null ? void 0 : filteredOptions.length) && state.sort().join("") === filteredOptions.map((item) => item.value).sort().join("");
|
|
104
|
+
return (state == null ? void 0 : state.length) === (filteredOptions == null ? void 0 : filteredOptions.length) && ((_a = state == null ? void 0 : state.sort()) == null ? void 0 : _a.join("")) === ((_c = (_b = filteredOptions == null ? void 0 : filteredOptions.map((item) => item.value)) == null ? void 0 : _b.sort()) == null ? void 0 : _c.join(""));
|
|
104
105
|
}, [state, filteredOptions]);
|
|
105
106
|
const dropdownRender = (0, import_react.useCallback)(
|
|
106
107
|
propsDropdownRender ? propsDropdownRender : (originNode) => {
|
package/lib/index.d.ts
CHANGED
|
@@ -147,5 +147,6 @@ export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
|
147
147
|
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
148
148
|
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
149
149
|
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
150
|
-
export { default as PisellProgressBar } from './components/pisellProgressBar';
|
|
151
150
|
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
151
|
+
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
152
|
+
export { default as PisellList01 } from './components/pisellList01';
|
package/lib/index.js
CHANGED
|
@@ -115,14 +115,15 @@ __export(src_exports, {
|
|
|
115
115
|
PisellDropdown: () => import_pisellDropdown.default,
|
|
116
116
|
PisellEmpty: () => import_pisellEmpty.default,
|
|
117
117
|
PisellFloatingPanel: () => import_pisellFloatingPanel.default,
|
|
118
|
+
PisellHeaderProgressBar: () => import_pisellHeaderProgressBar.default,
|
|
118
119
|
PisellImageCarousels: () => import_pisellImageCarousels.default,
|
|
119
120
|
PisellInformationEntry: () => import_pisellInformationEntry.default,
|
|
120
121
|
PisellInput: () => import_pisellInput.default,
|
|
122
|
+
PisellList01: () => import_pisellList01.default,
|
|
121
123
|
PisellLoading: () => import_pisellLoading.default,
|
|
122
124
|
PisellModal: () => import_pisellModal.default,
|
|
123
125
|
PisellNumberKeyboard: () => import_Number.default,
|
|
124
126
|
PisellPriceKeyboard: () => import_Amount.default,
|
|
125
|
-
PisellProgressBar: () => import_pisellProgressBar.default,
|
|
126
127
|
PisellQrcode: () => import_pisellQrcode.default,
|
|
127
128
|
PisellRow: () => import_pisellRow.default,
|
|
128
129
|
PisellScan: () => import_pisellScan.default,
|
|
@@ -332,8 +333,9 @@ var import_pisellViewGrid = __toESM(require("./components/pisellViewGrid"));
|
|
|
332
333
|
var import_pisellCustomCheckboxGroup = __toESM(require("./components/pisellCustomCheckboxGroup"));
|
|
333
334
|
var import_pisellDropdown = __toESM(require("./components/pisellDropdown"));
|
|
334
335
|
var import_pisellSectionHeaders = __toESM(require("./components/pisellSectionHeaders"));
|
|
335
|
-
var import_pisellProgressBar = __toESM(require("./components/pisellProgressBar"));
|
|
336
336
|
var import_pisellImageCarousels = __toESM(require("./components/pisellImageCarousels"));
|
|
337
|
+
var import_pisellHeaderProgressBar = __toESM(require("./components/pisellHeaderProgressBar"));
|
|
338
|
+
var import_pisellList01 = __toESM(require("./components/pisellList01"));
|
|
337
339
|
// Annotate the CommonJS export names for ESM import in node:
|
|
338
340
|
0 && (module.exports = {
|
|
339
341
|
Affix,
|
|
@@ -422,14 +424,15 @@ var import_pisellImageCarousels = __toESM(require("./components/pisellImageCarou
|
|
|
422
424
|
PisellDropdown,
|
|
423
425
|
PisellEmpty,
|
|
424
426
|
PisellFloatingPanel,
|
|
427
|
+
PisellHeaderProgressBar,
|
|
425
428
|
PisellImageCarousels,
|
|
426
429
|
PisellInformationEntry,
|
|
427
430
|
PisellInput,
|
|
431
|
+
PisellList01,
|
|
428
432
|
PisellLoading,
|
|
429
433
|
PisellModal,
|
|
430
434
|
PisellNumberKeyboard,
|
|
431
435
|
PisellPriceKeyboard,
|
|
432
|
-
PisellProgressBar,
|
|
433
436
|
PisellQrcode,
|
|
434
437
|
PisellRow,
|
|
435
438
|
PisellScan,
|