bitz-react-admin-ui 1.9.7 → 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.
Files changed (26) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/components/BitzCalendar/index.mjs +1 -1
  4. package/dist/components/BitzDayJs/index.mjs +1 -1
  5. package/dist/components/BitzFluentInput/index.mjs +18 -18
  6. package/dist/components/BitzFluentSelect/index.mjs +13 -13
  7. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  15. package/dist/components/BitzTable/Store/index.mjs +10 -8
  16. package/dist/components/BitzTable/Table/index.mjs +149 -139
  17. package/dist/components/BitzTable/Table/utils.mjs +12 -12
  18. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.d.ts +2 -0
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +244 -236
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -27
  21. package/dist/components/BitzTable/index.d.ts +4 -2
  22. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  23. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  24. package/dist/style.css +1 -1
  25. package/dist/utils/time.mjs +1 -1
  26. package/package.json +1 -1
@@ -1,4 +1,7 @@
1
- var a = { exports: {} };
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
2
+ import { __require as o } from "../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
2
5
  export {
3
- a as __module
6
+ s as default
4
7
  };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as O, useEffect as R } from "react";
3
3
  import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
4
- import N from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
4
+ import N from "../../_virtual/dayjs.min.mjs";
5
5
  import B from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/weekOfYear.mjs";
6
6
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
7
7
  N.extend(B);
@@ -1,4 +1,4 @@
1
- import t from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
1
+ import t from "../../_virtual/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -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 n } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
- import { theme as d, Input as s } from "antd";
4
- import { useMemo as f } from "react";
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: a,
7
- hideFluent: i,
8
- ...e
6
+ placeholder: n,
7
+ hideFluent: s,
8
+ ...o
9
9
  }) => {
10
- const u = e.value, c = e.defaultValue, { token: o } = d.useToken(), t = u || c, r = f(() => !(t === void 0 || t === "" || t === null), [t]);
11
- return i ? /* @__PURE__ */ l.jsx(s, { allowClear: !0, placeholder: a, ...e }) : /* @__PURE__ */ l.jsxs(
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: n`
14
+ className: a`
15
15
  position: relative;
16
16
  &:focus-within {
17
17
  label {
18
18
  top: 0;
19
- background-color: ${o.colorBgBase};
20
- font-size: 10px;
21
- color: ${o.colorTextPlaceholder};
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(s, { allowClear: !0, ...e }),
26
+ /* @__PURE__ */ l.jsx(i, { allowClear: !0, ...o }),
27
27
  /* @__PURE__ */ l.jsx(
28
28
  "label",
29
29
  {
30
- className: n`
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 ? "10px" : "12px"};
42
- background-color: ${r ? o.colorBgBase : "transparent"};
43
- color: ${o.colorTextPlaceholder};
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: a
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 d, Select as s } from "antd";
4
- import { useMemo as f } from "react";
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: i,
8
- ...e
7
+ hideFluent: s,
8
+ ...o
9
9
  }) => {
10
- const c = e.value, u = e.defaultValue, { token: o } = d.useToken(), t = c || u, r = f(() => !(t === void 0 || t === "" || t === null), [t]);
11
- return i ? /* @__PURE__ */ l.jsx(s, { allowClear: !0, placeholder: a, ...e }) : /* @__PURE__ */ l.jsxs(
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: ${o.colorBgBase};
20
- font-size: 10px;
21
- color: ${o.colorTextPlaceholder};
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(s, { allowClear: !0, ...e }),
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 ? "10px" : "12px"};
42
- background-color: ${r ? o.colorBgBase : "transparent"};
43
- color: ${o.colorTextPlaceholder};
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
  `,
@@ -1,5 +1,5 @@
1
1
  import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
2
- import o from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
2
+ import o from "../../_virtual/dayjs.min.mjs";
3
3
  var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
4
4
  const i = a((e, k) => ({
5
5
  colHeight: 0,
@@ -1,7 +1,7 @@
1
1
  import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as y, useEffect as j, useMemo as D } from "react";
3
3
  import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
4
- import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
4
+ import n from "../../_virtual/dayjs.min.mjs";
5
5
  import { useBitzFuiCalendarStore as S, CalendarTypeEnum as C } from "./BitzFuiCalendarStore.mjs";
6
6
  import N from "./CalendarAgendumItem.mjs";
7
7
  import x from "./CalendarAgendum.module.less.mjs";
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as a } from "react";
3
3
  import e from "./CalendarAgendum.module.less.mjs";
4
- import l from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
4
+ import l from "../../_virtual/dayjs.min.mjs";
5
5
  import { Button as c } from "antd";
6
6
  const d = (_, s) => {
7
7
  let t = s.diff(_, "minute"), m;
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { memo as m, useMemo as r } from "react";
3
- import d from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
+ import d from "../../_virtual/dayjs.min.mjs";
4
4
  import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const n = (t) => {
6
6
  const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { memo as C, useMemo as i } from "react";
3
3
  import { Space as c, Button as o, DatePicker as b, Dropdown as h } from "antd";
4
4
  import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
5
- import g from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
+ import g from "../../_virtual/dayjs.min.mjs";
6
6
  import T from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
7
7
  import v from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
8
8
  import _ from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
4
4
  import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import F from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
6
6
  import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
7
- import r from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
7
+ import r from "../../_virtual/dayjs.min.mjs";
8
8
  import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
9
9
  r.extend(M);
10
10
  r.extend(F);
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
3
3
  import A from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import H from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
6
- import e from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
+ import e from "../../_virtual/dayjs.min.mjs";
7
7
  import "./index.less.mjs";
8
8
  e.extend(A);
9
9
  e.extend(H);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { useMemo as d } from "react";
3
3
  import p from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import T from "./BitzMeetingTimeItem.mjs";
5
- import m from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
+ import m from "../../_virtual/dayjs.min.mjs";
6
6
  import "./index.less.mjs";
7
7
  m.extend(p);
8
8
  const x = (a) => {
@@ -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(({ key: n, dataIndex: c, fixed: a, disable: l }, o) => {
75
- const s = W(n ?? c, o);
76
- s && (t[s] = {
77
- show: !0,
78
- fixed: a,
79
- disable: l
80
- });
81
- }), t;
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;