bitz-react-admin-ui 1.9.6 → 1.9.8
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/dist/components/BitzFluentInput/index.mjs +18 -18
- package/dist/components/BitzFluentSelect/index.mjs +13 -13
- package/dist/components/BitzTable/Store/index.mjs +10 -8
- package/dist/components/BitzTable/Table/index.mjs +199 -203
- package/dist/components/BitzTable/Table/utils.d.ts +2 -0
- package/dist/components/BitzTable/Table/utils.mjs +35 -13
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.d.ts +2 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +244 -236
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -27
- package/dist/components/BitzTable/index.d.ts +10 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { css as
|
|
3
|
-
import { theme as
|
|
4
|
-
import { useMemo as
|
|
2
|
+
import { css as a } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
|
+
import { theme as f, Input as i } from "antd";
|
|
4
|
+
import { useMemo as d } from "react";
|
|
5
5
|
const w = ({
|
|
6
|
-
placeholder:
|
|
7
|
-
hideFluent:
|
|
8
|
-
...
|
|
6
|
+
placeholder: n,
|
|
7
|
+
hideFluent: s,
|
|
8
|
+
...o
|
|
9
9
|
}) => {
|
|
10
|
-
const u =
|
|
11
|
-
return
|
|
10
|
+
const u = o.value, c = o.defaultValue, { token: e } = f.useToken(), t = u || c, r = d(() => !(t === void 0 || t === "" || t === null), [t]);
|
|
11
|
+
return s ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: n, ...o }) : /* @__PURE__ */ l.jsxs(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
className:
|
|
14
|
+
className: a`
|
|
15
15
|
position: relative;
|
|
16
16
|
&:focus-within {
|
|
17
17
|
label {
|
|
18
18
|
top: 0;
|
|
19
|
-
background-color: ${
|
|
20
|
-
font-size:
|
|
21
|
-
color: ${
|
|
19
|
+
background-color: ${e.colorBgBase};
|
|
20
|
+
font-size: ${e.fontSizeSM}px;
|
|
21
|
+
color: ${e.colorTextPlaceholder};
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
`,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ l.jsx(
|
|
26
|
+
/* @__PURE__ */ l.jsx(i, { allowClear: !0, ...o }),
|
|
27
27
|
/* @__PURE__ */ l.jsx(
|
|
28
28
|
"label",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: a`
|
|
31
31
|
position: absolute;
|
|
32
32
|
top: ${r ? 0 : "50%"};
|
|
33
33
|
left: 7px;
|
|
@@ -38,13 +38,13 @@ const w = ({
|
|
|
38
38
|
transform: translateY(-50%);
|
|
39
39
|
pointer-events: none;
|
|
40
40
|
transition: all 0.1s ease-out;
|
|
41
|
-
font-size: ${r ?
|
|
42
|
-
background-color: ${r ?
|
|
43
|
-
color: ${
|
|
41
|
+
font-size: ${r ? e.fontSizeSM : e.fontSize}px;
|
|
42
|
+
background-color: ${r ? e.colorBgBase : "transparent"};
|
|
43
|
+
color: ${e.colorTextPlaceholder};
|
|
44
44
|
padding: 0 2px;
|
|
45
45
|
border-radius: 2px;
|
|
46
46
|
`,
|
|
47
|
-
children:
|
|
47
|
+
children: n
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { css as n } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
|
-
import { theme as
|
|
4
|
-
import { useMemo as
|
|
3
|
+
import { theme as f, Select as i } from "antd";
|
|
4
|
+
import { useMemo as d } from "react";
|
|
5
5
|
const w = ({
|
|
6
6
|
placeholder: a,
|
|
7
|
-
hideFluent:
|
|
8
|
-
...
|
|
7
|
+
hideFluent: s,
|
|
8
|
+
...o
|
|
9
9
|
}) => {
|
|
10
|
-
const c =
|
|
11
|
-
return
|
|
10
|
+
const c = o.value, u = o.defaultValue, { token: e } = f.useToken(), t = c || u, r = d(() => !(t === void 0 || t === "" || t === null), [t]);
|
|
11
|
+
return s ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: a, ...o }) : /* @__PURE__ */ l.jsxs(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
className: n`
|
|
@@ -16,14 +16,14 @@ const w = ({
|
|
|
16
16
|
&:focus-within {
|
|
17
17
|
label {
|
|
18
18
|
top: 0;
|
|
19
|
-
background-color: ${
|
|
20
|
-
font-size:
|
|
21
|
-
color: ${
|
|
19
|
+
background-color: ${e.colorBgBase};
|
|
20
|
+
font-size: ${e.fontSizeSM}px;
|
|
21
|
+
color: ${e.colorTextPlaceholder};
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
`,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ l.jsx(
|
|
26
|
+
/* @__PURE__ */ l.jsx(i, { allowClear: !0, ...o }),
|
|
27
27
|
/* @__PURE__ */ l.jsx(
|
|
28
28
|
"label",
|
|
29
29
|
{
|
|
@@ -38,9 +38,9 @@ const w = ({
|
|
|
38
38
|
transform: translateY(-50%);
|
|
39
39
|
pointer-events: none;
|
|
40
40
|
transition: all 0.1s ease-out;
|
|
41
|
-
font-size: ${r ?
|
|
42
|
-
background-color: ${r ?
|
|
43
|
-
color: ${
|
|
41
|
+
font-size: ${r ? e.fontSizeSM : e.fontSize}px;
|
|
42
|
+
background-color: ${r ? e.colorBgBase : "transparent"};
|
|
43
|
+
color: ${e.colorTextPlaceholder};
|
|
44
44
|
padding: 0 2px;
|
|
45
45
|
border-radius: 2px;
|
|
46
46
|
`,
|
|
@@ -71,14 +71,16 @@ function Z(e) {
|
|
|
71
71
|
if ((i = e == null ? void 0 : e.columnsState) != null && i.defaultValue)
|
|
72
72
|
return e.columnsState.defaultValue;
|
|
73
73
|
const t = {};
|
|
74
|
-
return (u = e.columns) == null || u.forEach(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
return (u = e.columns) == null || u.forEach(
|
|
75
|
+
({ key: n, dataIndex: c, fixed: a, disable: l }, o) => {
|
|
76
|
+
const s = W(n ?? c, o);
|
|
77
|
+
s && (t[s] = {
|
|
78
|
+
show: !0,
|
|
79
|
+
fixed: a,
|
|
80
|
+
disable: l
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
), t;
|
|
82
84
|
}, [e.columns]), [y, f] = G(
|
|
83
85
|
() => {
|
|
84
86
|
var n, c, a, l;
|