bitz-react-admin-ui 2.6.9 → 2.7.1
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/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzFluentTimePicker/index.mjs +7 -7
- package/dist/components/BitzTable/Store/index.d.ts +3 -0
- package/dist/components/BitzTable/Store/index.mjs +130 -129
- package/dist/components/BitzTable/Table/index.mjs +220 -224
- package/dist/components/BitzTable/Table/utils.d.ts +1 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +97 -95
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.d.ts +2 -1
- package/dist/utils/WithFluent.mjs +53 -59
- package/package.json +1 -1
|
@@ -1,67 +1,61 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { theme as
|
|
4
|
-
import { css as
|
|
5
|
-
import
|
|
1
|
+
import { j as r } from "../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useMemo as c } from "react";
|
|
3
|
+
import { theme as g } from "antd";
|
|
4
|
+
import { css as f } from "../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
5
|
+
import b from "../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs";
|
|
6
6
|
import "../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/lodash.default.mjs";
|
|
7
7
|
import p from "../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/wrapperLodash.mjs";
|
|
8
|
-
const
|
|
9
|
-
function
|
|
8
|
+
const u = (t) => p.isBoolean(t) ? !0 : p.isArray(t) ? !!(t != null && t.length) : !!t;
|
|
9
|
+
function M(t) {
|
|
10
10
|
return (m) => {
|
|
11
|
-
const { token:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
background-color: ${r.colorBgBase};
|
|
48
|
-
color: ${r.colorTextPlaceholder};
|
|
49
|
-
padding: 0 2px;
|
|
50
|
-
border-radius: 2px;
|
|
51
|
-
max-width: 190px;
|
|
52
|
-
`,
|
|
53
|
-
children: typeof t == "string" ? t : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
54
|
-
t == null ? void 0 : t[0],
|
|
55
|
-
/* @__PURE__ */ e.jsx(h, {}),
|
|
56
|
-
t == null ? void 0 : t[1]
|
|
57
|
-
] })
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
]
|
|
11
|
+
const { token: e } = g.useToken(), {
|
|
12
|
+
children: n,
|
|
13
|
+
placeholder: o,
|
|
14
|
+
hideFluent: d,
|
|
15
|
+
fluentStyle: x,
|
|
16
|
+
...s
|
|
17
|
+
} = m, { value: i, defaultValue: l } = s, a = c(
|
|
18
|
+
() => u(i) || u(l),
|
|
19
|
+
[i, l]
|
|
20
|
+
), h = f`
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: ${a ? 0 : "50%"};
|
|
23
|
+
left: 7px;
|
|
24
|
+
z-index: 10;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
transition: all 0.1s 0.3s ease-out;
|
|
31
|
+
font-size: ${a ? e.fontSizeSM : e.fontSize}px;
|
|
32
|
+
background-color: ${e.colorBgBase};
|
|
33
|
+
color: ${e.colorTextPlaceholder};
|
|
34
|
+
padding: 0 2px;
|
|
35
|
+
border-radius: 2px;
|
|
36
|
+
max-width: 190px;
|
|
37
|
+
`, w = f`
|
|
38
|
+
position: relative;
|
|
39
|
+
width: 100%;
|
|
40
|
+
&:focus-within {
|
|
41
|
+
label {
|
|
42
|
+
top: 0;
|
|
43
|
+
background-color: ${e.colorBgBase};
|
|
44
|
+
font-size: ${e.fontSizeSM}px;
|
|
45
|
+
color: ${e.colorTextPlaceholder};
|
|
46
|
+
}
|
|
61
47
|
}
|
|
62
|
-
)
|
|
48
|
+
`, S = c(() => typeof o == "string" ? o : [
|
|
49
|
+
o == null ? void 0 : o[0],
|
|
50
|
+
/* @__PURE__ */ r.jsx(b, {}, "icon"),
|
|
51
|
+
o == null ? void 0 : o[1]
|
|
52
|
+
], [o]);
|
|
53
|
+
return d ? n : /* @__PURE__ */ r.jsxs("div", { style: x, className: w, children: [
|
|
54
|
+
/* @__PURE__ */ r.jsx(t, { allowClear: !0, ...s, children: n }),
|
|
55
|
+
/* @__PURE__ */ r.jsx("label", { className: h, children: S })
|
|
56
|
+
] });
|
|
63
57
|
};
|
|
64
58
|
}
|
|
65
59
|
export {
|
|
66
|
-
|
|
60
|
+
M as default
|
|
67
61
|
};
|