@aplus-frontend/ui 7.7.1 → 7.7.2

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 (31) hide show
  1. package/es/src/ag-grid/index.vue.mjs +52 -51
  2. package/es/src/ag-grid/style/index.mjs +7 -7
  3. package/es/src/ap-modal/style/index.mjs +2 -2
  4. package/es/src/ap-table/style/ellipsis.mjs +7 -7
  5. package/es/src/ap-table/style/setting.mjs +1 -1
  6. package/es/src/business/ap-label/style/index.mjs +5 -5
  7. package/es/src/business/ap-select-layout/style/index.mjs +1 -1
  8. package/es/src/business/ap-tag/style/index.mjs +4 -4
  9. package/es/src/business/ap-upload/style/single-file.mjs +1 -1
  10. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +14 -14
  11. package/es/src/style/index.mjs +2 -2
  12. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -1
  13. package/es/src/utils/cssinjs/TokenUtil.mjs +2 -2
  14. package/es/src/version.d.ts +1 -1
  15. package/es/src/version.mjs +1 -1
  16. package/lib/src/ag-grid/index.vue.js +1 -1
  17. package/lib/src/ag-grid/style/index.js +1 -1
  18. package/lib/src/ap-modal/style/index.js +1 -1
  19. package/lib/src/ap-table/style/ellipsis.js +1 -1
  20. package/lib/src/ap-table/style/setting.js +1 -1
  21. package/lib/src/business/ap-label/style/index.js +1 -1
  22. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  23. package/lib/src/business/ap-tag/style/index.js +1 -1
  24. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  25. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  26. package/lib/src/style/index.js +1 -1
  27. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -1
  28. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  29. package/lib/src/version.d.ts +1 -1
  30. package/lib/src/version.js +1 -1
  31. package/package.json +1 -1
@@ -1,38 +1,38 @@
1
1
  import { defineComponent as po, useSlots as fo, ref as M, toRef as F, unref as t, computed as n, nextTick as z, watch as G, createElementBlock as O, openBlock as h, normalizeStyle as L, normalizeClass as f, createCommentVNode as se, createElementVNode as B, createVNode as ie, mergeProps as W, createSlots as go, withCtx as ue, Fragment as wo, renderList as So, createBlock as H, resolveDynamicComponent as Co, renderSlot as de, withDirectives as ho, vShow as yo } from "vue";
2
2
  import { AgGridVue as Ro } from "ag-grid-vue3";
3
- import { ModuleRegistry as vo, ValidationModule as bo, ColumnAutoSizeModule as Mo, PinnedRowModule as Fo, RowAutoHeightModule as Bo, RowStyleModule as ko, CellSpanModule as xo, CellStyleModule as Io, TooltipModule as Ao, RowSelectionModule as No, LocaleModule as To, ValueCacheModule as Do, GridStateModule as Eo, ColumnApiModule as Po, RowApiModule as Ko, CellApiModule as Vo, RenderApiModule as zo, EventApiModule as Go, ClientSideRowModelApiModule as Oo, ClientSideRowModelModule as Lo } from "ag-grid-community";
4
- import { mergeProps as Wo } from "./utils.mjs";
5
- import { Spin as Ho, Pagination as Uo } from "@aplus-frontend/antdv";
3
+ import { ModuleRegistry as vo, ValidationModule as bo, ColumnAutoSizeModule as Mo, PinnedRowModule as Fo, RowAutoHeightModule as Bo, RowStyleModule as ko, CellSpanModule as xo, CellStyleModule as Io, TooltipModule as Ao, RowSelectionModule as No, LocaleModule as To, ValueCacheModule as Do, GridStateModule as Eo, ColumnApiModule as Po, RowApiModule as Ko, CellApiModule as Vo, RenderApiModule as zo, EventApiModule as Go, ScrollApiModule as Oo, ClientSideRowModelApiModule as Lo, ClientSideRowModelModule as Wo } from "ag-grid-community";
4
+ import { mergeProps as Ho } from "./utils.mjs";
5
+ import { Spin as Uo, Pagination as _o } from "@aplus-frontend/antdv";
6
6
  import { isUndefined as k, isFunction as N } from "lodash-unified";
7
7
  import "../config-provider/index.mjs";
8
- import { ApForm as _o } from "../ap-form/index.mjs";
9
- import { recursionApColumns as jo } from "../ap-table/utils.mjs";
10
- import { useTablePaging as $o } from "../ap-table/hooks/use-table-paging-ng.mjs";
11
- import qo from "./hooks/use-row-selection.mjs";
12
- import { useProvideSorter as Jo } from "./context.mjs";
13
- import { useProvideApTable as Qo } from "../ap-table/context.mjs";
14
- import { DEFAULT_ROW_SELECTION_CONFIG as ce, sizeReverseMap as Xo, sizeMap as Yo } from "../ap-grid/constants.mjs";
15
- import { useToken as Zo } from "@aplus-frontend/antdv/es/theme/internal";
16
- import { useTheme as et } from "./theme.mjs";
17
- import { useColumns as ot } from "./hooks/use-columns.mjs";
18
- import { useColumnsDef as tt } from "./hooks/use-columns-def.mjs";
8
+ import { ApForm as jo } from "../ap-form/index.mjs";
9
+ import { recursionApColumns as $o } from "../ap-table/utils.mjs";
10
+ import { useTablePaging as qo } from "../ap-table/hooks/use-table-paging-ng.mjs";
11
+ import Jo from "./hooks/use-row-selection.mjs";
12
+ import { useProvideSorter as Qo } from "./context.mjs";
13
+ import { useProvideApTable as Xo } from "../ap-table/context.mjs";
14
+ import { DEFAULT_ROW_SELECTION_CONFIG as ce, sizeReverseMap as Yo, sizeMap as Zo } from "../ap-grid/constants.mjs";
15
+ import { useToken as et } from "@aplus-frontend/antdv/es/theme/internal";
16
+ import { useTheme as ot } from "./theme.mjs";
17
+ import { useColumns as tt } from "./hooks/use-columns.mjs";
18
+ import { useColumnsDef as rt } from "./hooks/use-columns-def.mjs";
19
19
  import "../utils/index.mjs";
20
- import { getValidVNodeList as rt } from "../utils/slot.mjs";
21
- import { useSearchForm as lt } from "./hooks/use-search-form.mjs";
20
+ import { getValidVNodeList as lt } from "../utils/slot.mjs";
21
+ import { useSearchForm as at } from "./hooks/use-search-form.mjs";
22
22
  import "./components/empty/index.vue.mjs";
23
- import at from "./hooks/use-virtual-config.mjs";
24
- import { usePinnedRow as nt } from "./hooks/use-pinned-row.mjs";
25
- import st from "./hooks/use-selection-col-def.mjs";
23
+ import nt from "./hooks/use-virtual-config.mjs";
24
+ import { usePinnedRow as st } from "./hooks/use-pinned-row.mjs";
25
+ import it from "./hooks/use-selection-col-def.mjs";
26
26
  import "./components/row/index.vue.mjs";
27
- import it from "./style/index.mjs";
28
- import { AG_GRID_LOCALE_EN as ut, AG_GRID_LOCALE_CN as dt } from "@ag-grid-community/locale";
29
- import { useNamespace as ct } from "../config-provider/hooks/use-namespace.mjs";
30
- import { useLocale as mt } from "../config-provider/hooks/use-locale.mjs";
31
- import { useGlobalConfig as pt } from "../config-provider/hooks/use-global-config.mjs";
32
- import { isDef as ft } from "../utils/is.mjs";
33
- import gt from "./components/row/index.vue2.mjs";
34
- import wt from "./components/empty/index.vue2.mjs";
35
- const Xt = /* @__PURE__ */ po({
27
+ import ut from "./style/index.mjs";
28
+ import { AG_GRID_LOCALE_EN as dt, AG_GRID_LOCALE_CN as ct } from "@ag-grid-community/locale";
29
+ import { useNamespace as mt } from "../config-provider/hooks/use-namespace.mjs";
30
+ import { useLocale as pt } from "../config-provider/hooks/use-locale.mjs";
31
+ import { useGlobalConfig as ft } from "../config-provider/hooks/use-global-config.mjs";
32
+ import { isDef as gt } from "../utils/is.mjs";
33
+ import wt from "./components/row/index.vue2.mjs";
34
+ import St from "./components/empty/index.vue2.mjs";
35
+ const Yt = /* @__PURE__ */ po({
36
36
  name: "AgGrid",
37
37
  __name: "index",
38
38
  props: {
@@ -109,8 +109,8 @@ const Xt = /* @__PURE__ */ po({
109
109
  },
110
110
  setup(me, { expose: pe }) {
111
111
  const fe = {
112
- "zh-cn": dt,
113
- en: ut
112
+ "zh-cn": ct,
113
+ en: dt
114
114
  };
115
115
  vo.registerModules([
116
116
  bo,
@@ -131,18 +131,19 @@ const Xt = /* @__PURE__ */ po({
131
131
  zo,
132
132
  Go,
133
133
  Oo,
134
- Lo
134
+ Lo,
135
+ Wo
135
136
  ]);
136
- const o = me, U = fo(), { e: x, b: d, be: ge } = ct("ag-grid"), { lang: _ } = mt(), we = it("ag-grid"), y = M(o.size), Se = et(
137
+ const o = me, U = fo(), { e: x, b: d, be: ge } = mt("ag-grid"), { lang: _ } = pt(), we = ut("ag-grid"), y = M(o.size), Se = ot(
137
138
  y,
138
139
  F(o, "rowHeight"),
139
140
  F(o, "theme")
140
- ), Ce = at(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: he } = nt(
141
+ ), Ce = nt(F(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: he } = st(
141
142
  F(o, "summary")
142
- ), ye = pt("apGrid"), s = M(), [, Re] = Zo();
143
+ ), ye = ft("apGrid"), s = M(), [, Re] = et();
143
144
  let R = !!o.dataSource;
144
- const $ = lt(o), { shownColumns: g, columns: q, columnKeys: ve, getTargetColumnByKey: be } = ot(o), { defaultColDef: Me, columnDefs: Fe, gridWrapperRef: Be } = tt(q, o, he), I = M({});
145
- Jo({
145
+ const $ = at(o), { shownColumns: g, columns: q, columnKeys: ve, getTargetColumnByKey: be } = tt(o), { defaultColDef: Me, columnDefs: Fe, gridWrapperRef: Be } = rt(q, o, he), I = M({});
146
+ Qo({
146
147
  sorter: I,
147
148
  setSorter(e) {
148
149
  I.value = e;
@@ -169,7 +170,7 @@ const Xt = /* @__PURE__ */ po({
169
170
  order: m ? ke[m] : null
170
171
  });
171
172
  }
172
- const Ie = n(() => jo(t(g), (e) => {
173
+ const Ie = n(() => $o(t(g), (e) => {
173
174
  if (e.sorter === !0)
174
175
  return e.field ?? e.dataIndex ?? e.key;
175
176
  }).filter(Boolean)), Ae = () => {
@@ -179,7 +180,7 @@ const Xt = /* @__PURE__ */ po({
179
180
  return;
180
181
  const r = e.getColumnState()?.map((l) => ({ ...l, sort: null }));
181
182
  e.applyColumnState({ state: r });
182
- }, T = M(!0), Ne = n(() => ft(o.manual) ? o.manual : rt(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
183
+ }, T = M(!0), Ne = n(() => gt(o.manual) ? o.manual : lt(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
183
184
  formRef: w,
184
185
  submit: D,
185
186
  reset: E,
@@ -191,7 +192,7 @@ const Xt = /* @__PURE__ */ po({
191
192
  getPaging: Te,
192
193
  setPaging: De,
193
194
  setDataSource: Ee
194
- } = $o({
195
+ } = qo({
195
196
  async request(e) {
196
197
  if (R = !1, C.value && !C.value.preserveSelectedRowKeys && k(o.dataSource) && !T.value && V(), T.value && (T.value = !1), !k(o.dataSource)) {
197
198
  const l = e.pageSize * (e.current - 1);
@@ -222,7 +223,7 @@ const Xt = /* @__PURE__ */ po({
222
223
  ...ce,
223
224
  ...e
224
225
  };
225
- }), Pe = st(o, g), Ke = n(
226
+ }), Pe = it(o, g), Ke = n(
226
227
  () => k(o.dataSource) ? S.records : o.dataSource
227
228
  ), {
228
229
  select: Ve,
@@ -233,7 +234,7 @@ const Xt = /* @__PURE__ */ po({
233
234
  selectMultiByKeys: Le,
234
235
  selectMulti: We,
235
236
  unSelectMulti: He
236
- } = qo({
237
+ } = Jo({
237
238
  ...C.value,
238
239
  dataSource: Ke,
239
240
  rowKey: o.rowKey
@@ -289,7 +290,7 @@ const Xt = /* @__PURE__ */ po({
289
290
  const e = o.customRow;
290
291
  return e ? {
291
292
  isFullWidthRow: e.isCustomRow,
292
- fullWidthCellRenderer: gt,
293
+ fullWidthCellRenderer: wt,
293
294
  fullWidthCellRendererParams: {
294
295
  render: e.render
295
296
  }
@@ -351,15 +352,15 @@ const Xt = /* @__PURE__ */ po({
351
352
  applyOrder: !0
352
353
  });
353
354
  }
354
- Qo({
355
+ Xo({
355
356
  columns: n(() => g.value),
356
357
  columnsBackup: n(() => q.value),
357
- size: n(() => Yo[y.value]),
358
+ size: n(() => Zo[y.value]),
358
359
  updateColumns(e) {
359
360
  g.value = e, o.onShownColumnsChange?.(e), Ye(e);
360
361
  },
361
362
  updateSize(e) {
362
- y.value = Xo[e];
363
+ y.value = Yo[e];
363
364
  },
364
365
  renderConfig: n(() => ({
365
366
  className: ge("table-header", "title"),
@@ -473,7 +474,7 @@ const Xt = /* @__PURE__ */ po({
473
474
  class: f(e.card ? t(x)("search-wrapper") : null),
474
475
  style: L(e.searchFormWrapperStyle)
475
476
  }, [
476
- ie(t(_o).SearchForm, W(e.searchForm || {}, {
477
+ ie(t(jo).SearchForm, W(e.searchForm || {}, {
477
478
  ref_key: "formRef",
478
479
  ref: w,
479
480
  "custom-reset": "",
@@ -517,7 +518,7 @@ const Xt = /* @__PURE__ */ po({
517
518
  class: f(t(d)("grid-wrapper"))
518
519
  }, [
519
520
  (h(), H(t(Ro), W(
520
- t(Wo)(t(Ce), t(j), Je.value),
521
+ t(Ho)(t(Ce), t(j), Je.value),
521
522
  {
522
523
  key: t(_),
523
524
  "get-row-class": co,
@@ -535,7 +536,7 @@ const Xt = /* @__PURE__ */ po({
535
536
  "enable-browser-tooltips": e.browserTooltips,
536
537
  "tooltip-interaction": "",
537
538
  "row-class-rules": e.rowClassRules,
538
- "no-rows-overlay-component": wt,
539
+ "no-rows-overlay-component": St,
539
540
  "suppress-cell-focus": "",
540
541
  "enable-cell-span": "",
541
542
  "dom-layout": e.autoHeight ? "autoHeight" : "normal",
@@ -552,7 +553,7 @@ const Xt = /* @__PURE__ */ po({
552
553
  ho(B("div", {
553
554
  class: f(t(x)("table-loading-wrapper"))
554
555
  }, [
555
- ie(t(Ho), { delay: 300 })
556
+ ie(t(Uo), { delay: 300 })
556
557
  ], 2), [
557
558
  [yo, Ze.value]
558
559
  ])
@@ -560,7 +561,7 @@ const Xt = /* @__PURE__ */ po({
560
561
  B("div", {
561
562
  class: f(t(d)("pagination-wrapper"))
562
563
  }, [
563
- e.pagination !== !1 ? (h(), H(t(Uo), W({
564
+ e.pagination !== !1 ? (h(), H(t(_o), W({
564
565
  key: 0,
565
566
  class: t(d)("pagination")
566
567
  }, t(J).pagination, { onChange: to }), null, 16, ["class"])) : se("", !0)
@@ -570,5 +571,5 @@ const Xt = /* @__PURE__ */ po({
570
571
  }
571
572
  });
572
573
  export {
573
- Xt as default
574
+ Yt as default
574
575
  };
@@ -1,5 +1,5 @@
1
- import { genSettingTriggerBtnStyle as l } from "../../ap-table/style/index.mjs";
2
- import { multiRows as a, resetScrollbar as d } from "../../style/index.mjs";
1
+ import { genSettingTriggerBtnStyle as a } from "../../ap-table/style/index.mjs";
2
+ import { multiRows as l, resetScrollbar as d } from "../../style/index.mjs";
3
3
  import { genComponentStyleHook as r } from "../../utils/cssinjs/index.mjs";
4
4
  const t = {
5
5
  agGridSearchFormWrapperMarginBlockEnd: 10,
@@ -84,14 +84,14 @@ const t = {
84
84
  },
85
85
  [`${e}-table-header`]: {
86
86
  "&__title": {
87
- ...a(i),
87
+ ...l(i),
88
88
  fontWeight: 700,
89
89
  "&--single": {
90
90
  flex: "unset"
91
91
  }
92
92
  }
93
93
  },
94
- ...l(i),
94
+ ...a(i),
95
95
  [`${e}__cell--left`]: {
96
96
  textAlign: "left"
97
97
  },
@@ -104,8 +104,8 @@ const t = {
104
104
  [`${e}__cell--multiline`]: {
105
105
  ".ag-cell-value": {
106
106
  display: "-webkit-box",
107
- "-webkit-box-orient": "vertical",
108
- "-webkit-line-clamp": i.agGridLineClamp,
107
+ WebkitBoxOrient: "vertical",
108
+ WebkitLineClamp: i.agGridLineClamp,
109
109
  wordBreak: "break-all"
110
110
  }
111
111
  },
@@ -143,7 +143,7 @@ const t = {
143
143
  },
144
144
  ".ag-unselectable": {
145
145
  userSelect: "text",
146
- "-webkit-user-select": "text"
146
+ WebkitUserSelect: "text"
147
147
  },
148
148
  ".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]": {
149
149
  cursor: "not-allowed"
@@ -4,8 +4,8 @@ const t = (o) => {
4
4
  return {
5
5
  [e]: {
6
6
  [`${e}-body-wrapper`]: {
7
- "scrollbar-width": "none",
8
- "-ms-overflow-style": "none",
7
+ scrollbarWidth: "none",
8
+ msOverflowStyle: "none",
9
9
  "&::-webkit-scrollbar": {
10
10
  display: "none"
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
2
- const o = (e) => {
2
+ const r = (e) => {
3
3
  const { componentCls: l } = e;
4
4
  return {
5
5
  [l]: {
@@ -11,9 +11,9 @@ const o = (e) => {
11
11
  minWidth: 0,
12
12
  overflow: "hidden",
13
13
  display: "-webkit-box",
14
- "-webkit-box-orient": "vertical",
14
+ WebkitBoxOrient: "vertical",
15
+ WebkitLineClamp: "var(--ap-table-paragraph-ellipsis-rows)",
15
16
  textOverflow: "ellipsis",
16
- "-webkit-line-clamp": "var(--ap-table-paragraph-ellipsis-rows)",
17
17
  lineClamp: "var(--ap-table-paragraph-ellipsis-rows)",
18
18
  wordBreak: "break-all",
19
19
  "& > *": {
@@ -28,10 +28,10 @@ const o = (e) => {
28
28
  }
29
29
  }
30
30
  };
31
- }, a = i("ApTable.Ellipsis", (e) => [
32
- o(e)
31
+ }, o = i("ApTable.Ellipsis", (e) => [
32
+ r(e)
33
33
  ]);
34
34
  export {
35
- a as default,
36
- o as genTableEllipsisCellStyle
35
+ o as default,
36
+ r as genTableEllipsisCellStyle
37
37
  };
@@ -96,7 +96,7 @@ const o = (e) => {
96
96
  justifyContent: "space-between",
97
97
  alignItems: "center",
98
98
  "&:hover": {
99
- backgroundColor: e.calc(e.colorPrimary).colorOpacity(8),
99
+ backgroundColor: e.calc(e.colorPrimary).colorMix(8),
100
100
  borderRadius: e.borderRadiusSM,
101
101
  cursor: "pointer",
102
102
  [`${i}-right`]: {
@@ -1,5 +1,5 @@
1
1
  import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
- const c = (o) => {
2
+ const n = (o) => {
3
3
  const {
4
4
  componentCls: e,
5
5
  apLabelColorCustomGreen: l,
@@ -30,24 +30,24 @@ const c = (o) => {
30
30
  ".ant-tag-green": {
31
31
  color: l,
32
32
  borderColor: l,
33
- background: o.calc(l).colorOpacity(6)
33
+ background: o.calc(l).colorMix(6)
34
34
  },
35
35
  ".ant-tag-red": {
36
36
  color: a,
37
37
  borderColor: a,
38
- backgroundColor: o.calc(a).colorOpacity(6)
38
+ backgroundColor: o.calc(a).colorMix(6)
39
39
  },
40
40
  ".ant-tag-blue": {
41
41
  color: r,
42
42
  borderColor: r,
43
- backgroundColor: o.calc(r).colorOpacity(6)
43
+ backgroundColor: o.calc(r).colorMix(6)
44
44
  }
45
45
  }
46
46
  }
47
47
  };
48
48
  }, i = t(
49
49
  "ApLabel",
50
- (o) => [c(o)],
50
+ (o) => [n(o)],
51
51
  {
52
52
  apLabelColorCustomGreen: "#34b77c",
53
53
  apLabelColorCustomRed: "#FF4D4F",
@@ -76,7 +76,7 @@ const a = (i) => {
76
76
  background: i.colorBg3
77
77
  },
78
78
  "&.active": {
79
- backgroundColor: i.calc(i.colorPrimary).colorOpacity(10),
79
+ backgroundColor: i.calc(i.colorPrimary).colorMix(10),
80
80
  color: i.colorPrimary,
81
81
  fontWeight: "bold",
82
82
  "& > .ant-typography": {
@@ -39,7 +39,7 @@ const o = (i) => {
39
39
  color: i.textColor1
40
40
  },
41
41
  [`${r}--disabled`]: {
42
- backgroundColor: `color-mix(in srgb, ${i.textColor3} 15%, white)`
42
+ backgroundColor: i.calc(i.textColor3).colorMix(15, "white")
43
43
  }
44
44
  },
45
45
  [`${l}-border`]: {
@@ -52,15 +52,15 @@ const o = (i) => {
52
52
  [`${r}--disabled`]: {
53
53
  outline: `${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,
54
54
  outlineOffset: i.calc(i.lineWidth).mul(-1).equal(),
55
- backgroundColor: `color-mix(in srgb, ${i.textColor2} 6%, white)`,
55
+ backgroundColor: i.calc(i.textColor2).colorMix(6, "white"),
56
56
  color: i.textColor2
57
57
  }
58
58
  }
59
59
  };
60
- }, n = a("ApTag", (i) => [
60
+ }, c = a("ApTag", (i) => [
61
61
  o(i)
62
62
  ]);
63
63
  export {
64
- n as default,
64
+ c as default,
65
65
  o as genApTagStyle
66
66
  };
@@ -88,7 +88,7 @@ const l = (i) => {
88
88
  cursor: "pointer",
89
89
  "&:hover": {
90
90
  border: `${i.lineWidth} dashed ${i.colorPrimary}`,
91
- background: `color-mix(in srgb, ${i.colorPrimary} 10%, transparent)`
91
+ background: i.calc(i.colorPrimary).colorMix(10)
92
92
  }
93
93
  }
94
94
  };
@@ -1,15 +1,15 @@
1
- import { genComponentStyleHook as o } from "../../../../utils/cssinjs/index.mjs";
1
+ import { genComponentStyleHook as r } from "../../../../utils/cssinjs/index.mjs";
2
2
  const a = (e) => {
3
- const { componentCls: r } = e;
3
+ const { componentCls: o } = e;
4
4
  return {
5
- [r]: {
5
+ [o]: {
6
6
  userSelect: "none",
7
7
  ".ant-upload-drag": {
8
8
  background: e.colorBgLayout,
9
9
  border: `${e.lineWidth} dashed var(--ap-border-color-base)`,
10
10
  height: e.apUploadSingleContainerHeight,
11
11
  "&:not(.ant-upload-disabled):hover": {
12
- background: `color-mix(in srgb, ${e.colorPrimary} 10%, transparent)`,
12
+ background: e.calc(e.colorPrimary).colorMix(10),
13
13
  borderColor: e.colorPrimary
14
14
  },
15
15
  ".ant-upload-btn": {
@@ -19,13 +19,13 @@ const a = (e) => {
19
19
  cursor: "default"
20
20
  }
21
21
  },
22
- [`${r}__content`]: {
22
+ [`${o}__content`]: {
23
23
  display: "flex",
24
24
  justifyContent: "center",
25
25
  alignItems: "center",
26
26
  height: "100%"
27
27
  },
28
- [`${r}__content-file`]: {
28
+ [`${o}__content-file`]: {
29
29
  width: "min(516px, 77.24%)",
30
30
  height: e.apUploadSingleItemHeight,
31
31
  background: "#fff",
@@ -61,7 +61,7 @@ const a = (e) => {
61
61
  }
62
62
  }
63
63
  },
64
- [`${r}__content-ing`]: {
64
+ [`${o}__content-ing`]: {
65
65
  "&-name": {
66
66
  "--name-color": "var(--ap-text-color-2)",
67
67
  ".ant-progress-line": {
@@ -70,17 +70,17 @@ const a = (e) => {
70
70
  }
71
71
  }
72
72
  },
73
- [`${r}__content-error`]: {
73
+ [`${o}__content-error`]: {
74
74
  "&-name": {
75
75
  "--name-color": e.colorError
76
76
  }
77
77
  },
78
- [`${r}__content-done`]: {
78
+ [`${o}__content-done`]: {
79
79
  "&-name": {
80
80
  "--name-color": e.colorPrimary
81
81
  }
82
82
  },
83
- [`${r}__content-empty`]: {
83
+ [`${o}__content-empty`]: {
84
84
  cursor: "pointer",
85
85
  display: "flex",
86
86
  flexDirection: "column",
@@ -104,16 +104,16 @@ const a = (e) => {
104
104
  }
105
105
  }
106
106
  },
107
- [`${r}-affix-wrapper-status-error`]: {
107
+ [`${o}-affix-wrapper-status-error`]: {
108
108
  ".ant-upload-drag:not(.ant-upload-disabled)": {
109
109
  borderColor: e.colorError,
110
110
  "&:hover": {
111
- borderColor: `color-mix(in srgb, ${e.colorPrimary} 80%, transparent)`
111
+ borderColor: e.calc(e.colorPrimary).colorMix(80)
112
112
  }
113
113
  }
114
114
  }
115
115
  };
116
- }, n = o(
116
+ }, i = r(
117
117
  "ApUploadSingle",
118
118
  (e) => [a(e)],
119
119
  {
@@ -125,6 +125,6 @@ const a = (e) => {
125
125
  }
126
126
  );
127
127
  export {
128
- n as default,
128
+ i as default,
129
129
  a as genProCardStyle
130
130
  };
@@ -27,8 +27,8 @@ const o = (r) => ({
27
27
  }), l = (r) => ({
28
28
  ...o(r),
29
29
  display: "-webkit-inline-box",
30
- "-webkit-line-clamp": `${r.lineClamp || 2}`,
31
- "-webkit-box-orient": "vertical",
30
+ WebkitLineClamp: `${r.lineClamp || 2}`,
31
+ WebkitBoxOrient: "vertical",
32
32
  overflow: "hidden",
33
33
  textOverflow: "ellipsis",
34
34
  whiteSpace: "normal",
@@ -6,7 +6,7 @@ export declare class TokenUtil {
6
6
  sub(cssVar: string | number | TokenUtil): this;
7
7
  mul(cssVar: string | number | TokenUtil): this;
8
8
  div(cssVar: string | number | TokenUtil): this;
9
- colorOpacity(opacity: number): string;
9
+ colorMix(opacity: number, mixColor?: string): string;
10
10
  getResult(): string;
11
11
  equal(): string;
12
12
  }
@@ -14,8 +14,8 @@ class s {
14
14
  div(t) {
15
15
  return this.lowPriority && (this.result = `(${this.result})`), t instanceof s ? this.result = `${this.result} / ${t.getResult()}` : this.result = `${this.result} / ${t}`, this.lowPriority = !1, this;
16
16
  }
17
- colorOpacity(t) {
18
- return `color-mix(in srgb, ${this.result} ${t}%, transparent)`;
17
+ colorMix(t, i = "transparent") {
18
+ return `color-mix(in srgb, ${this.result} ${t}%, ${i})`;
19
19
  }
20
20
  getResult() {
21
21
  return this.lowPriority ? `(${this.result})` : this.result;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.1";
1
+ declare const _default: "7.7.2";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.7.1";
1
+ const e = "7.7.2";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ye=require("ag-grid-vue3"),l=require("ag-grid-community"),Ze=require("./utils.js"),Q=require("@aplus-frontend/antdv"),c=require("lodash-unified");require("../config-provider/index.js");const eo=require("../ap-form/index.js"),oo=require("../ap-table/utils.js"),to=require("../ap-table/hooks/use-table-paging-ng.js"),ro=require("./hooks/use-row-selection.js"),no=require("./context.js"),lo=require("../ap-table/context.js"),F=require("../ap-grid/constants.js"),ao=require("@aplus-frontend/antdv/es/theme/internal"),so=require("./theme.js"),uo=require("./hooks/use-columns.js"),io=require("./hooks/use-columns-def.js");require("../utils/index.js");const co=require("../utils/slot.js"),fo=require("./hooks/use-search-form.js");require("./components/empty/index.vue.js");const po=require("./hooks/use-virtual-config.js"),mo=require("./hooks/use-pinned-row.js"),go=require("./hooks/use-selection-col-def.js");require("./components/row/index.vue.js");const wo=require("./style/index.js"),X=require("@ag-grid-community/locale"),So=require("../config-provider/hooks/use-namespace.js"),Co=require("../config-provider/hooks/use-locale.js"),ho=require("../config-provider/hooks/use-global-config.js"),yo=require("../utils/is.js"),Ro=require("./components/row/index.vue2.js"),vo=require("./components/empty/index.vue2.js"),bo=e.defineComponent({name:"AgGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{}},setup(Y,{expose:Z}){const ee={"zh-cn":X.AG_GRID_LOCALE_CN,en:X.AG_GRID_LOCALE_EN};l.ModuleRegistry.registerModules([l.ValidationModule,l.ColumnAutoSizeModule,l.PinnedRowModule,l.RowAutoHeightModule,l.RowStyleModule,l.CellSpanModule,l.CellStyleModule,l.TooltipModule,l.RowSelectionModule,l.LocaleModule,l.ValueCacheModule,l.GridStateModule,l.ColumnApiModule,l.RowApiModule,l.CellApiModule,l.RenderApiModule,l.EventApiModule,l.ClientSideRowModelApiModule,l.ClientSideRowModelModule]);const t=Y,T=e.useSlots(),{e:b,b:d,be:oe}=So.useNamespace("ag-grid"),{lang:A}=Co.useLocale(),te=wo.default("ag-grid"),h=e.ref(t.size),re=so.useTheme(h,e.toRef(t,"rowHeight"),e.toRef(t,"theme")),ne=po.default(e.toRef(t,"virtual")),{rowPinnedGridConfig:D,getRowPinnedCellClass:le}=mo.usePinnedRow(e.toRef(t,"summary")),ae=ho.useGlobalConfig("apGrid"),s=e.ref(),[,se]=ao.useToken();let y=!!t.dataSource;const z=fo.useSearchForm(t),{shownColumns:g,columns:V,columnKeys:ue,getTargetColumnByKey:ie}=uo.useColumns(t),{defaultColDef:ce,columnDefs:de,gridWrapperRef:fe}=io.useColumnsDef(V,t,le),k=e.ref({});no.useProvideSorter({sorter:k,setSorter(o){k.value=o}});const pe={asc:"ascend",desc:"descend"};function me(){const o=s.value.getColumns()?.filter(f=>f.getSort()!==void 0),r=e.unref(k)||{};let n=o?.[0];const u=Object.keys(r);if(u.length&&u.every(f=>r[f]===null)){const f=Object.keys(r)[0];f&&(n=s.value?.getColumn(f))}if(!n)return;const i=n.getColDef(),p=n.getSort(),m=ie(i.colId);_(void 0,void 0,{column:i,field:m?.field??i.field??i.colId,order:p?pe[p]:null})}const ge=e.computed(()=>oo.recursionApColumns(e.unref(g),o=>{if(o.sorter===!0)return o.field??o.dataIndex??o.key}).filter(Boolean)),we=()=>{k.value={};const o=s.value;if(!o)return;const r=o.getColumnState()?.map(n=>({...n,sort:null}));o.applyColumnState({state:r})},x=e.ref(!0),Se=e.computed(()=>yo.isDef(t.manual)?t.manual:co.getValidVNodeList(T.searchFormExtra?.()||[]).some(r=>r.type?.name==="ApView")),{formRef:w,submit:M,reset:q,data:S,tableProps:P,handleTableChangeOptional:_,submitWith:K,refresh:O,getPaging:Ce,setPaging:he,setDataSource:ye}=to.useTablePaging({async request(o){if(y=!1,C.value&&!C.value.preserveSelectedRowKeys&&c.isUndefined(t.dataSource)&&!x.value&&E(),x.value&&(x.value=!1),!c.isUndefined(t.dataSource)){const n=o.pageSize*(o.current-1);return{data:(t.pagination===!1?t.dataSource:t.dataSource.slice(n,n+o.pageSize))||[],total:t.dataSource.length||0}}const r=await t.request?.(o);return{data:r?.data||[],total:r?.total||0}},namespace:"ap-grid",filterFields:e.ref([]),params:e.toRef(t,"params"),defaultData:t.defaultData,manual:e.unref(Se),formatParams:t.beforeSearchSubmit,pagination:t.pagination,sortFields:ge,onClickReset:we}),C=e.computed(()=>{const o=t.rowSelection||ae.value?.rowSelection;if(o)return o===!0?F.DEFAULT_ROW_SELECTION_CONFIG:{...F.DEFAULT_ROW_SELECTION_CONFIG,...o}}),Re=go.default(t,g),ve=e.computed(()=>c.isUndefined(t.dataSource)?S.records:t.dataSource),{select:be,unSelect:ke,selectedRows:N,selectedRowKeys:Be,clearAll:Fe,selectMultiByKeys:xe,selectMulti:Me,unSelectMulti:qe}=ro.default({...C.value,dataSource:ve,rowKey:t.rowKey}),Ne={checkbox:"multiRow",radio:"singleRow"},Ie=e.computed(()=>{const o=C.value;if(!o)return;const{type:r="checkbox",disabled:n}=o;return{mode:Ne[r],isRowSelectable:u=>n?!n(u.data):!0,hideDisabledCheckboxes:o.hideDisabled??!1}});function I(o){return c.isFunction(t.rowKey)?t.rowKey(o):o[t.rowKey]}const B=({api:o=s.value})=>{if(t.onUpdate?.(),!C.value)return;const r=N.value||[];y=!1;const n=[];o.forEachNode(u=>{const R=u.data,i=I(R),p=u.isSelected();r.find(m=>I(m)===i)?!p&&n.push(u):p&&u.setSelected(!1)}),o.setNodesSelected({nodes:n,newValue:!0}),setTimeout(()=>{y=!0},0)},Ee=o=>{y&&(o.node.isSelected()?be(o.data):ke(o.data),c.isFunction(C.value?.tooltip)&&o.api.refreshCells({rowNodes:[o.node],columns:["ag-Grid-SelectionColumn"],force:!0}))},Te=()=>{y=!0},E=()=>{Fe(),s.value?.deselectAll()};function Ae(o){xe(o),e.nextTick(()=>{B({})})}const De=e.computed(()=>{const o=t.customRow;return o?{isFullWidthRow:o.isCustomRow,fullWidthCellRenderer:Ro.default,fullWidthCellRendererParams:{render:o.render}}:{}});function ze(o){Me(o),e.nextTick(()=>{B({})})}function Ve(o){qe(o),e.nextTick(()=>{B({})})}function G(o=!1){const r=o?"getFieldsValueTransformed":"getFieldsValue";return w.value?.apForm?.[r]?.(!0)}function L(o){w.value?.apForm?.setFieldsValue?.(o)}function W(){return w.value?.getSorterItems()||[]}function U(o){w.value?.setSorterItems(o)}function H(){w.value?.resetSorterItems()}function j(o){return o&&String(o)}function Pe(o){const r=s.value;if(!r)return;const n=r.getColumnState()||[],u=o.map(a=>a.key?String(a.key):a.key).filter(Boolean),R=n.map(a=>{if(!ue.value.includes(a.colId))return a;const v=!u.includes(a.colId),$={...a,hide:v},J=o.find(Xe=>j(Xe.key)===a.colId);return J&&($.pinned=J.fixed||null),$}),i=new Map(o.map((a,v)=>[j(a.key),v])),p=R.filter(a=>i.has(a.colId)).sort((a,v)=>i.get(a.colId)-i.get(v.colId)),m=[];let f=0;for(const a of R)i.has(a.colId)?m.push(p[f++]):m.push(a);r.applyColumnState({state:m,applyOrder:!0})}lo.useProvideApTable({columns:e.computed(()=>g.value),columnsBackup:e.computed(()=>V.value),size:e.computed(()=>F.sizeMap[h.value]),updateColumns(o){g.value=o,t.onShownColumnsChange?.(o),Pe(o)},updateSize(o){h.value=F.sizeReverseMap[o]},renderConfig:e.computed(()=>({className:oe("table-header","title"),color:se.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(S).records),getSearchFormValues:G,setSearchFormValues:L,submit:M,submitWith:K,reset:q,refresh:O,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H});const _e=e.computed(()=>c.isUndefined(t.loading)?S.loading:t.loading),Ke=e.computed(()=>[d(),t.card?null:d("wrapper"),d("adaptive"),d(`size-${h.value}`),te.value].filter(Boolean)),Oe=e.computed(()=>({height:"100%",...t.tableStyle||{}})),Ge=(o,r)=>{_({current:o,pageSize:r})};function Le(o){const r=o.data;return I(r)}function We(o,r){(c.isFunction(o)?s.value?.ensureNodeVisible:s.value?.ensureIndexVisible)?.(o,r)}function Ue(o,r){s.value?.ensureColumnVisible(o,r)}function He(o){t.onRowClicked?.(o.data,o.event)}function je(o){t.onScrollEnd?.(o.direction)}function $e(o){return s.value?.refreshCells(o)}function Je(o){return s.value?.redrawRows(o)}const Qe=o=>{const r=[D.value.getRowClass?.(o)];if(!o.node.rowPinned){const n=c.isFunction(t.rowClassName)?t.rowClassName(o.data,o.rowIndex):t.rowClassName;r.push(n)}return r.flat().filter(Boolean)};return e.watch(()=>t.dataSource,o=>{ye(o)},{immediate:!0,deep:!0}),e.watch(()=>t.size,o=>{h.value=o}),e.watch(()=>e.unref(S).loading,o=>{t.onLoadingChange?.(o)}),Z({submit:M,reset:q,refresh:O,submitWith:K,setSearchFormValues:L,getSearchFormValues:G,getShowColumns:()=>e.unref(g),rowSelection:{selectedRows:e.computed(()=>N.value),setSelectedRowKeys:Ae,setSelectedRows:ze,clearAll:E,unSelectRows:Ve},scrollToRow:We,scrollToColumn:Ue,getDataSource:()=>e.unref(S.records),getPaging:Ce,setPaging:he,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H,refreshCells:$e,redrawRows:Je,_internalGridApi:e.computed(()=>s.value)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Ke.value),style:e.normalizeStyle(o.wrapperStyle)},[e.unref(c.isUndefined)(o.dataSource)&&o.searchForm!==!1&&e.unref(z).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.card?e.unref(b)("search-wrapper"):null),style:e.normalizeStyle(o.searchFormWrapperStyle)},[e.createVNode(e.unref(eo.ApForm).SearchForm,e.mergeProps(o.searchForm||{},{ref_key:"formRef",ref:w,"custom-reset":"","submit-loading":e.unref(P).loading,onSubmit:e.unref(M),onReset:e.unref(q)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),{key:n.dataIndex}))),128))]),_:2},[T.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(b)("table-wrapper"),o.card?e.unref(b)("table-wrapper-card"):null]),style:e.normalizeStyle(o.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d)("header-wrapper"))},[e.renderSlot(o.$slots,"title",{selectedRows:e.unref(N),selectedRowKeys:e.unref(Be),shownColumns:e.unref(g),clearAll:E})],2),e.createElementVNode("div",{ref_key:"gridWrapperRef",ref:fe,class:e.normalizeClass(e.unref(d)("grid-wrapper"))},[(e.openBlock(),e.createBlock(e.unref(Ye.AgGridVue),e.mergeProps(e.unref(Ze.mergeProps)(e.unref(ne),e.unref(D),De.value),{key:e.unref(A),"get-row-class":Qe,style:Oe.value,"row-data":e.unref(S).records,"column-defs":e.unref(de),"default-col-def":e.unref(ce),"suppress-loading-overlay":"","row-selection":Ie.value,"selection-column-def":e.unref(Re),"get-row-id":Le,"get-row-height":t.getRowHeight,theme:e.unref(re),"tooltip-show-delay":500,"enable-browser-tooltips":o.browserTooltips,"tooltip-interaction":"","row-class-rules":o.rowClassRules,"no-rows-overlay-component":vo.default,"suppress-cell-focus":"","enable-cell-span":"","dom-layout":o.autoHeight?"autoHeight":"normal","locale-text":ee[e.unref(A)],onSortChanged:me,onGridReady:r[0]||(r[0]=n=>s.value=n.api),onRowDataUpdated:B,onRowSelected:Ee,onFirstDataRendered:Te,onRowClicked:He,onBodyScrollEnd:je}),null,16,["style","row-data","column-defs","default-col-def","row-selection","selection-column-def","get-row-height","theme","enable-browser-tooltips","row-class-rules","dom-layout","locale-text"])),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(b)("table-loading-wrapper"))},[e.createVNode(e.unref(Q.Spin),{delay:300})],2),[[e.vShow,_e.value]])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d)("pagination-wrapper"))},[o.pagination!==!1?(e.openBlock(),e.createBlock(e.unref(Q.Pagination),e.mergeProps({key:0,class:e.unref(d)("pagination")},e.unref(P).pagination,{onChange:Ge}),null,16,["class"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=bo;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ye=require("ag-grid-vue3"),l=require("ag-grid-community"),Ze=require("./utils.js"),Q=require("@aplus-frontend/antdv"),c=require("lodash-unified");require("../config-provider/index.js");const eo=require("../ap-form/index.js"),oo=require("../ap-table/utils.js"),to=require("../ap-table/hooks/use-table-paging-ng.js"),ro=require("./hooks/use-row-selection.js"),no=require("./context.js"),lo=require("../ap-table/context.js"),F=require("../ap-grid/constants.js"),ao=require("@aplus-frontend/antdv/es/theme/internal"),so=require("./theme.js"),uo=require("./hooks/use-columns.js"),io=require("./hooks/use-columns-def.js");require("../utils/index.js");const co=require("../utils/slot.js"),fo=require("./hooks/use-search-form.js");require("./components/empty/index.vue.js");const po=require("./hooks/use-virtual-config.js"),mo=require("./hooks/use-pinned-row.js"),go=require("./hooks/use-selection-col-def.js");require("./components/row/index.vue.js");const wo=require("./style/index.js"),X=require("@ag-grid-community/locale"),So=require("../config-provider/hooks/use-namespace.js"),Co=require("../config-provider/hooks/use-locale.js"),ho=require("../config-provider/hooks/use-global-config.js"),yo=require("../utils/is.js"),Ro=require("./components/row/index.vue2.js"),vo=require("./components/empty/index.vue2.js"),bo=e.defineComponent({name:"AgGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{}},setup(Y,{expose:Z}){const ee={"zh-cn":X.AG_GRID_LOCALE_CN,en:X.AG_GRID_LOCALE_EN};l.ModuleRegistry.registerModules([l.ValidationModule,l.ColumnAutoSizeModule,l.PinnedRowModule,l.RowAutoHeightModule,l.RowStyleModule,l.CellSpanModule,l.CellStyleModule,l.TooltipModule,l.RowSelectionModule,l.LocaleModule,l.ValueCacheModule,l.GridStateModule,l.ColumnApiModule,l.RowApiModule,l.CellApiModule,l.RenderApiModule,l.EventApiModule,l.ScrollApiModule,l.ClientSideRowModelApiModule,l.ClientSideRowModelModule]);const t=Y,T=e.useSlots(),{e:b,b:d,be:oe}=So.useNamespace("ag-grid"),{lang:A}=Co.useLocale(),te=wo.default("ag-grid"),h=e.ref(t.size),re=so.useTheme(h,e.toRef(t,"rowHeight"),e.toRef(t,"theme")),ne=po.default(e.toRef(t,"virtual")),{rowPinnedGridConfig:D,getRowPinnedCellClass:le}=mo.usePinnedRow(e.toRef(t,"summary")),ae=ho.useGlobalConfig("apGrid"),s=e.ref(),[,se]=ao.useToken();let y=!!t.dataSource;const z=fo.useSearchForm(t),{shownColumns:g,columns:V,columnKeys:ue,getTargetColumnByKey:ie}=uo.useColumns(t),{defaultColDef:ce,columnDefs:de,gridWrapperRef:fe}=io.useColumnsDef(V,t,le),k=e.ref({});no.useProvideSorter({sorter:k,setSorter(o){k.value=o}});const pe={asc:"ascend",desc:"descend"};function me(){const o=s.value.getColumns()?.filter(f=>f.getSort()!==void 0),r=e.unref(k)||{};let n=o?.[0];const u=Object.keys(r);if(u.length&&u.every(f=>r[f]===null)){const f=Object.keys(r)[0];f&&(n=s.value?.getColumn(f))}if(!n)return;const i=n.getColDef(),p=n.getSort(),m=ie(i.colId);_(void 0,void 0,{column:i,field:m?.field??i.field??i.colId,order:p?pe[p]:null})}const ge=e.computed(()=>oo.recursionApColumns(e.unref(g),o=>{if(o.sorter===!0)return o.field??o.dataIndex??o.key}).filter(Boolean)),we=()=>{k.value={};const o=s.value;if(!o)return;const r=o.getColumnState()?.map(n=>({...n,sort:null}));o.applyColumnState({state:r})},x=e.ref(!0),Se=e.computed(()=>yo.isDef(t.manual)?t.manual:co.getValidVNodeList(T.searchFormExtra?.()||[]).some(r=>r.type?.name==="ApView")),{formRef:w,submit:M,reset:q,data:S,tableProps:P,handleTableChangeOptional:_,submitWith:K,refresh:O,getPaging:Ce,setPaging:he,setDataSource:ye}=to.useTablePaging({async request(o){if(y=!1,C.value&&!C.value.preserveSelectedRowKeys&&c.isUndefined(t.dataSource)&&!x.value&&E(),x.value&&(x.value=!1),!c.isUndefined(t.dataSource)){const n=o.pageSize*(o.current-1);return{data:(t.pagination===!1?t.dataSource:t.dataSource.slice(n,n+o.pageSize))||[],total:t.dataSource.length||0}}const r=await t.request?.(o);return{data:r?.data||[],total:r?.total||0}},namespace:"ap-grid",filterFields:e.ref([]),params:e.toRef(t,"params"),defaultData:t.defaultData,manual:e.unref(Se),formatParams:t.beforeSearchSubmit,pagination:t.pagination,sortFields:ge,onClickReset:we}),C=e.computed(()=>{const o=t.rowSelection||ae.value?.rowSelection;if(o)return o===!0?F.DEFAULT_ROW_SELECTION_CONFIG:{...F.DEFAULT_ROW_SELECTION_CONFIG,...o}}),Re=go.default(t,g),ve=e.computed(()=>c.isUndefined(t.dataSource)?S.records:t.dataSource),{select:be,unSelect:ke,selectedRows:N,selectedRowKeys:Be,clearAll:Fe,selectMultiByKeys:xe,selectMulti:Me,unSelectMulti:qe}=ro.default({...C.value,dataSource:ve,rowKey:t.rowKey}),Ne={checkbox:"multiRow",radio:"singleRow"},Ie=e.computed(()=>{const o=C.value;if(!o)return;const{type:r="checkbox",disabled:n}=o;return{mode:Ne[r],isRowSelectable:u=>n?!n(u.data):!0,hideDisabledCheckboxes:o.hideDisabled??!1}});function I(o){return c.isFunction(t.rowKey)?t.rowKey(o):o[t.rowKey]}const B=({api:o=s.value})=>{if(t.onUpdate?.(),!C.value)return;const r=N.value||[];y=!1;const n=[];o.forEachNode(u=>{const R=u.data,i=I(R),p=u.isSelected();r.find(m=>I(m)===i)?!p&&n.push(u):p&&u.setSelected(!1)}),o.setNodesSelected({nodes:n,newValue:!0}),setTimeout(()=>{y=!0},0)},Ee=o=>{y&&(o.node.isSelected()?be(o.data):ke(o.data),c.isFunction(C.value?.tooltip)&&o.api.refreshCells({rowNodes:[o.node],columns:["ag-Grid-SelectionColumn"],force:!0}))},Te=()=>{y=!0},E=()=>{Fe(),s.value?.deselectAll()};function Ae(o){xe(o),e.nextTick(()=>{B({})})}const De=e.computed(()=>{const o=t.customRow;return o?{isFullWidthRow:o.isCustomRow,fullWidthCellRenderer:Ro.default,fullWidthCellRendererParams:{render:o.render}}:{}});function ze(o){Me(o),e.nextTick(()=>{B({})})}function Ve(o){qe(o),e.nextTick(()=>{B({})})}function G(o=!1){const r=o?"getFieldsValueTransformed":"getFieldsValue";return w.value?.apForm?.[r]?.(!0)}function L(o){w.value?.apForm?.setFieldsValue?.(o)}function W(){return w.value?.getSorterItems()||[]}function U(o){w.value?.setSorterItems(o)}function H(){w.value?.resetSorterItems()}function j(o){return o&&String(o)}function Pe(o){const r=s.value;if(!r)return;const n=r.getColumnState()||[],u=o.map(a=>a.key?String(a.key):a.key).filter(Boolean),R=n.map(a=>{if(!ue.value.includes(a.colId))return a;const v=!u.includes(a.colId),$={...a,hide:v},J=o.find(Xe=>j(Xe.key)===a.colId);return J&&($.pinned=J.fixed||null),$}),i=new Map(o.map((a,v)=>[j(a.key),v])),p=R.filter(a=>i.has(a.colId)).sort((a,v)=>i.get(a.colId)-i.get(v.colId)),m=[];let f=0;for(const a of R)i.has(a.colId)?m.push(p[f++]):m.push(a);r.applyColumnState({state:m,applyOrder:!0})}lo.useProvideApTable({columns:e.computed(()=>g.value),columnsBackup:e.computed(()=>V.value),size:e.computed(()=>F.sizeMap[h.value]),updateColumns(o){g.value=o,t.onShownColumnsChange?.(o),Pe(o)},updateSize(o){h.value=F.sizeReverseMap[o]},renderConfig:e.computed(()=>({className:oe("table-header","title"),color:se.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(S).records),getSearchFormValues:G,setSearchFormValues:L,submit:M,submitWith:K,reset:q,refresh:O,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H});const _e=e.computed(()=>c.isUndefined(t.loading)?S.loading:t.loading),Ke=e.computed(()=>[d(),t.card?null:d("wrapper"),d("adaptive"),d(`size-${h.value}`),te.value].filter(Boolean)),Oe=e.computed(()=>({height:"100%",...t.tableStyle||{}})),Ge=(o,r)=>{_({current:o,pageSize:r})};function Le(o){const r=o.data;return I(r)}function We(o,r){(c.isFunction(o)?s.value?.ensureNodeVisible:s.value?.ensureIndexVisible)?.(o,r)}function Ue(o,r){s.value?.ensureColumnVisible(o,r)}function He(o){t.onRowClicked?.(o.data,o.event)}function je(o){t.onScrollEnd?.(o.direction)}function $e(o){return s.value?.refreshCells(o)}function Je(o){return s.value?.redrawRows(o)}const Qe=o=>{const r=[D.value.getRowClass?.(o)];if(!o.node.rowPinned){const n=c.isFunction(t.rowClassName)?t.rowClassName(o.data,o.rowIndex):t.rowClassName;r.push(n)}return r.flat().filter(Boolean)};return e.watch(()=>t.dataSource,o=>{ye(o)},{immediate:!0,deep:!0}),e.watch(()=>t.size,o=>{h.value=o}),e.watch(()=>e.unref(S).loading,o=>{t.onLoadingChange?.(o)}),Z({submit:M,reset:q,refresh:O,submitWith:K,setSearchFormValues:L,getSearchFormValues:G,getShowColumns:()=>e.unref(g),rowSelection:{selectedRows:e.computed(()=>N.value),setSelectedRowKeys:Ae,setSelectedRows:ze,clearAll:E,unSelectRows:Ve},scrollToRow:We,scrollToColumn:Ue,getDataSource:()=>e.unref(S.records),getPaging:Ce,setPaging:he,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H,refreshCells:$e,redrawRows:Je,_internalGridApi:e.computed(()=>s.value)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Ke.value),style:e.normalizeStyle(o.wrapperStyle)},[e.unref(c.isUndefined)(o.dataSource)&&o.searchForm!==!1&&e.unref(z).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.card?e.unref(b)("search-wrapper"):null),style:e.normalizeStyle(o.searchFormWrapperStyle)},[e.createVNode(e.unref(eo.ApForm).SearchForm,e.mergeProps(o.searchForm||{},{ref_key:"formRef",ref:w,"custom-reset":"","submit-loading":e.unref(P).loading,onSubmit:e.unref(M),onReset:e.unref(q)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),{key:n.dataIndex}))),128))]),_:2},[T.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(b)("table-wrapper"),o.card?e.unref(b)("table-wrapper-card"):null]),style:e.normalizeStyle(o.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(d)("header-wrapper"))},[e.renderSlot(o.$slots,"title",{selectedRows:e.unref(N),selectedRowKeys:e.unref(Be),shownColumns:e.unref(g),clearAll:E})],2),e.createElementVNode("div",{ref_key:"gridWrapperRef",ref:fe,class:e.normalizeClass(e.unref(d)("grid-wrapper"))},[(e.openBlock(),e.createBlock(e.unref(Ye.AgGridVue),e.mergeProps(e.unref(Ze.mergeProps)(e.unref(ne),e.unref(D),De.value),{key:e.unref(A),"get-row-class":Qe,style:Oe.value,"row-data":e.unref(S).records,"column-defs":e.unref(de),"default-col-def":e.unref(ce),"suppress-loading-overlay":"","row-selection":Ie.value,"selection-column-def":e.unref(Re),"get-row-id":Le,"get-row-height":t.getRowHeight,theme:e.unref(re),"tooltip-show-delay":500,"enable-browser-tooltips":o.browserTooltips,"tooltip-interaction":"","row-class-rules":o.rowClassRules,"no-rows-overlay-component":vo.default,"suppress-cell-focus":"","enable-cell-span":"","dom-layout":o.autoHeight?"autoHeight":"normal","locale-text":ee[e.unref(A)],onSortChanged:me,onGridReady:r[0]||(r[0]=n=>s.value=n.api),onRowDataUpdated:B,onRowSelected:Ee,onFirstDataRendered:Te,onRowClicked:He,onBodyScrollEnd:je}),null,16,["style","row-data","column-defs","default-col-def","row-selection","selection-column-def","get-row-height","theme","enable-browser-tooltips","row-class-rules","dom-layout","locale-text"])),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(b)("table-loading-wrapper"))},[e.createVNode(e.unref(Q.Spin),{delay:300})],2),[[e.vShow,_e.value]])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(d)("pagination-wrapper"))},[o.pagination!==!1?(e.openBlock(),e.createBlock(e.unref(Q.Pagination),e.mergeProps({key:0,class:e.unref(d)("pagination")},e.unref(P).pagination,{onChange:Ge}),null,16,["class"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=bo;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../ap-table/style/index.js"),l=require("../../style/index.js"),t=require("../../utils/cssinjs/index.js"),a={agGridSearchFormWrapperMarginBlockEnd:10,agGridCellPaddingBlockMedium:9,agGridCellPaddingBlockMini:6,agGridLineClamp:2,agGridEllipsisTooltipMaxWidth:300,agGridEllipsisTooltipPadding:"6px 8px"},d=e=>{const{componentCls:i}=e;return{[i]:{...l.resetScrollbar(e),"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",[`${i}-grid-wrapper`]:{minHeight:0,flex:1,position:"relative"}},"&-wrapper":{padding:e.space,paddingBlockEnd:e.spaceLG,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBottom:0}},[`${i}__search-wrapper`]:{padding:e.space,paddingBlockEnd:0,backgroundColor:"#fff",borderRadius:e.borderRadius,marginBlockEnd:e.agGridSearchFormWrapperMarginBlockEnd},[`${i}__table-wrapper`]:{flex:1,minHeight:0,maxHeight:"100%",width:"100%",display:"flex",flexDirection:"column"},[`${i}__table-wrapper-card`]:{padding:e.space,paddingBlockEnd:e.spaceLG,borderRadius:e.borderRadius,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBlockEnd:0}},[`${i}-pagination`]:{marginBlock:e.space,display:"flex",flexWrap:"wrap",alignItems:"center",rowGap:e.space,".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:e.lineHeight,display:"flex",alignItems:"center"}},[`${i}__table-loading-wrapper`]:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"hsla(0,0%,100%,.5)"},[`${i}-table-header`]:{"&__title":{...l.multiRows(e),fontWeight:700,"&--single":{flex:"unset"}}},...r.genSettingTriggerBtnStyle(e),[`${i}__cell--left`]:{textAlign:"left"},[`${i}__cell--center`]:{textAlign:"center"},[`${i}__cell--right`]:{textAlign:"right"},[`${i}__cell--multiline`]:{".ag-cell-value":{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e.agGridLineClamp,wordBreak:"break-all"}},"&-size-mini":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMini,width:"100%",display:"flex",alignItems:"center","& > div":{width:"100%"}}},"&-size-medium":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMedium,display:"flex",alignItems:"center","& > div":{width:"100%"}}},[`${i}__tooltip`]:{fontSize:e.fontSize,maxWidth:e.agGridEllipsisTooltipMaxWidth,wordBreak:"break-all",backgroundColor:"#fff",padding:e.agGridEllipsisTooltipPadding,borderRadius:e.borderRadius,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)"},".ag-unselectable":{userSelect:"text","-webkit-user-select":"text"},".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]":{cursor:"not-allowed"}}}},n=t.genComponentStyleHook("AgGrid",e=>[d(e)],a,{skipUnit:["agGridLineClamp"]});exports.default=n;exports.defaultToken=a;exports.genAgGridStyle=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../ap-table/style/index.js"),l=require("../../style/index.js"),t=require("../../utils/cssinjs/index.js"),a={agGridSearchFormWrapperMarginBlockEnd:10,agGridCellPaddingBlockMedium:9,agGridCellPaddingBlockMini:6,agGridLineClamp:2,agGridEllipsisTooltipMaxWidth:300,agGridEllipsisTooltipPadding:"6px 8px"},d=e=>{const{componentCls:i}=e;return{[i]:{...l.resetScrollbar(e),"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",[`${i}-grid-wrapper`]:{minHeight:0,flex:1,position:"relative"}},"&-wrapper":{padding:e.space,paddingBlockEnd:e.spaceLG,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBottom:0}},[`${i}__search-wrapper`]:{padding:e.space,paddingBlockEnd:0,backgroundColor:"#fff",borderRadius:e.borderRadius,marginBlockEnd:e.agGridSearchFormWrapperMarginBlockEnd},[`${i}__table-wrapper`]:{flex:1,minHeight:0,maxHeight:"100%",width:"100%",display:"flex",flexDirection:"column"},[`${i}__table-wrapper-card`]:{padding:e.space,paddingBlockEnd:e.spaceLG,borderRadius:e.borderRadius,backgroundColor:"#fff","&:has(ul.ant-pagination)":{paddingBlockEnd:0}},[`${i}-pagination`]:{marginBlock:e.space,display:"flex",flexWrap:"wrap",alignItems:"center",rowGap:e.space,".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:e.lineHeight,display:"flex",alignItems:"center"}},[`${i}__table-loading-wrapper`]:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"hsla(0,0%,100%,.5)"},[`${i}-table-header`]:{"&__title":{...l.multiRows(e),fontWeight:700,"&--single":{flex:"unset"}}},...r.genSettingTriggerBtnStyle(e),[`${i}__cell--left`]:{textAlign:"left"},[`${i}__cell--center`]:{textAlign:"center"},[`${i}__cell--right`]:{textAlign:"right"},[`${i}__cell--multiline`]:{".ag-cell-value":{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e.agGridLineClamp,wordBreak:"break-all"}},"&-size-mini":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMini,width:"100%",display:"flex",alignItems:"center","& > div":{width:"100%"}}},"&-size-medium":{".ag-cell":{lineHeight:e.lineHeight,paddingBlock:e.agGridCellPaddingBlockMedium,display:"flex",alignItems:"center","& > div":{width:"100%"}}},[`${i}__tooltip`]:{fontSize:e.fontSize,maxWidth:e.agGridEllipsisTooltipMaxWidth,wordBreak:"break-all",backgroundColor:"#fff",padding:e.agGridEllipsisTooltipPadding,borderRadius:e.borderRadius,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)"},".ag-unselectable":{userSelect:"text",WebkitUserSelect:"text"},".ag-checkbox.ag-labeled[disabled] .ag-input-field-input[disabled]":{cursor:"not-allowed"}}}},n=t.genComponentStyleHook("AgGrid",e=>[d(e)],a,{skipUnit:["agGridLineClamp"]});exports.default=n;exports.defaultToken=a;exports.genAgGridStyle=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o}=e;return{[o]:{[`${o}-body-wrapper`]:{"scrollbar-width":"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}}}}},l=t.genComponentStyleHook("ApModal",e=>[n(e)]);exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o}=e;return{[o]:{[`${o}-body-wrapper`]:{scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}}}},l=t.genComponentStyleHook("ApModal",e=>[n(e)]);exports.default=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/cssinjs/index.js"),i=e=>{const{componentCls:l}=e;return{[l]:{display:"flex",alignItems:"center",overflow:"hidden",[`${l}-content`]:{flex:1,minWidth:0,overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical",textOverflow:"ellipsis","-webkit-line-clamp":"var(--ap-table-paragraph-ellipsis-rows)",lineClamp:"var(--ap-table-paragraph-ellipsis-rows)",wordBreak:"break-all","& > *":{width:"100%"}},[`${l}-copyable`]:{flexShrink:0,marginLeft:e.space,cursor:"pointer",color:e.colorLink}}}},r=t.genComponentStyleHook("ApTable.Ellipsis",e=>[i(e)]);exports.default=r;exports.genTableEllipsisCellStyle=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/cssinjs/index.js"),i=e=>{const{componentCls:l}=e;return{[l]:{display:"flex",alignItems:"center",overflow:"hidden",[`${l}-content`]:{flex:1,minWidth:0,overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--ap-table-paragraph-ellipsis-rows)",textOverflow:"ellipsis",lineClamp:"var(--ap-table-paragraph-ellipsis-rows)",wordBreak:"break-all","& > *":{width:"100%"}},[`${l}-copyable`]:{flexShrink:0,marginLeft:e.space,cursor:"pointer",color:e.colorLink}}}},r=t.genComponentStyleHook("ApTable.Ellipsis",e=>[i(e)]);exports.default=r;exports.genTableEllipsisCellStyle=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../style/index.js"),p=require("../../utils/cssinjs/index.js"),d=require("./index.js"),a=e=>{const{componentCls:l,namespace:t}=e;return{[l]:{[`${l}-wrapper`]:{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"100%",paddingBlockEnd:e.spaceLG,[`.${t}-ap-table-table-header__title`]:{...i.singleRow(e)},[`.${t}-ap-grid-table-header__title`]:{...i.singleRow(e),fontWeight:"normal",color:e.textColor1},[`.${t}-ag-grid-table-header__title`]:{...i.singleRow(e)}},[`${l}-left`]:{flex:1,flexShrink:1,minWidth:0,paddingInline:"20px",display:"flex",flexDirection:"column","&__header":{display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",padding:e.space,"&-tips":{color:e.textColor3}},"&__content":{flex:1,padding:e.spaceLG,overflowY:"auto",".ant-col":{lineHeight:0},".ant-checkbox-wrapper":{maxWidth:"100%",display:"inline-flex",alignItems:"center","> span:last-child":{flex:1,minWidth:0}}}},[`${l}-right`]:{width:e.apTableSettingRightWidth}}}},n=e=>{const{componentCls:l}=e;return{[l]:{[`${l}-select-group`]:{"&-header":{backgroundColor:"#F2F6F9",paddingInline:e.spaceLG,paddingBlock:e.spaceXS,borderRadius:e.borderRadius,marginBlockEnd:e.spaceLG,marginInline:e.calc(e.spaceLG).mul(-1).equal(),display:"flex"}}}}},r=e=>{const{componentCls:l}=e,t=`${l}-sortable-item-meta`;return{[l]:{[t]:{paddingInline:e.space,paddingBlock:e.spaceSM,marginBlockStart:e.spaceXS,display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:e.calc(e.colorPrimary).colorOpacity(8),borderRadius:e.borderRadiusSM,cursor:"pointer",[`${t}-right`]:{display:"block"},[`${t}-left__holder`]:{color:`${e.colorPrimary} !important`}},"&-left":{flex:1,display:"inline-flex",alignItems:"center",minWidth:0,"&__indicator":{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"16px",height:"16px",marginInlineEnd:e.spaceXS,flexShrink:0},"&__label-wrapper":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},"&-right":{display:"none",paddingInlineStart:e.spaceLG},".is-level2":{marginInlineStart:e.spaceXL},"&-action-item":{"&:hover":{color:e.colorPrimary}}}}}},o=e=>{const{componentCls:l}=e;return{[l]:{[`${e.componentCls}-sortable-item`]:{".is-hidden":{display:"none"}}}}},c=e=>{const{componentCls:l}=e;return{[l]:{[`${e.componentCls}-sorter`]:{display:"flex",flexDirection:"column",height:"100%","&-section-title":{fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.textColor3,paddingInline:e.space,paddingBlock:e.spaceXXS,margin:e.spaceXS},"&-header":{paddingInline:"20px",paddingBlock:e.spaceLG,"&-title":{...i.resetComponent(e),fontWeight:"bold",color:e.textColor1}},"&-content":{flex:1,overflowY:"auto",paddingBlockStart:e.space,paddingInlineEnd:e.spaceLG,paddingBlockEnd:0,paddingInlineStart:e.space}}}}},s=p.genComponentStyleHook("ApTable.Setting",e=>[a(e),n(e),o(e),r(e),c(e)],d.defaultValue);exports.default=s;exports.genTableSettingSelectGroupStyle=n;exports.genTableSettingSortableItemMetaStyle=r;exports.genTableSettingSortableItemStyle=o;exports.genTableSettingSorterStyle=c;exports.genTableSettingStyle=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../style/index.js"),d=require("../../utils/cssinjs/index.js"),p=require("./index.js"),a=e=>{const{componentCls:l,namespace:t}=e;return{[l]:{[`${l}-wrapper`]:{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"100%",paddingBlockEnd:e.spaceLG,[`.${t}-ap-table-table-header__title`]:{...i.singleRow(e)},[`.${t}-ap-grid-table-header__title`]:{...i.singleRow(e),fontWeight:"normal",color:e.textColor1},[`.${t}-ag-grid-table-header__title`]:{...i.singleRow(e)}},[`${l}-left`]:{flex:1,flexShrink:1,minWidth:0,paddingInline:"20px",display:"flex",flexDirection:"column","&__header":{display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",padding:e.space,"&-tips":{color:e.textColor3}},"&__content":{flex:1,padding:e.spaceLG,overflowY:"auto",".ant-col":{lineHeight:0},".ant-checkbox-wrapper":{maxWidth:"100%",display:"inline-flex",alignItems:"center","> span:last-child":{flex:1,minWidth:0}}}},[`${l}-right`]:{width:e.apTableSettingRightWidth}}}},n=e=>{const{componentCls:l}=e;return{[l]:{[`${l}-select-group`]:{"&-header":{backgroundColor:"#F2F6F9",paddingInline:e.spaceLG,paddingBlock:e.spaceXS,borderRadius:e.borderRadius,marginBlockEnd:e.spaceLG,marginInline:e.calc(e.spaceLG).mul(-1).equal(),display:"flex"}}}}},r=e=>{const{componentCls:l}=e,t=`${l}-sortable-item-meta`;return{[l]:{[t]:{paddingInline:e.space,paddingBlock:e.spaceSM,marginBlockStart:e.spaceXS,display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center","&:hover":{backgroundColor:e.calc(e.colorPrimary).colorMix(8),borderRadius:e.borderRadiusSM,cursor:"pointer",[`${t}-right`]:{display:"block"},[`${t}-left__holder`]:{color:`${e.colorPrimary} !important`}},"&-left":{flex:1,display:"inline-flex",alignItems:"center",minWidth:0,"&__indicator":{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"16px",height:"16px",marginInlineEnd:e.spaceXS,flexShrink:0},"&__label-wrapper":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},"&-right":{display:"none",paddingInlineStart:e.spaceLG},".is-level2":{marginInlineStart:e.spaceXL},"&-action-item":{"&:hover":{color:e.colorPrimary}}}}}},o=e=>{const{componentCls:l}=e;return{[l]:{[`${e.componentCls}-sortable-item`]:{".is-hidden":{display:"none"}}}}},c=e=>{const{componentCls:l}=e;return{[l]:{[`${e.componentCls}-sorter`]:{display:"flex",flexDirection:"column",height:"100%","&-section-title":{fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.textColor3,paddingInline:e.space,paddingBlock:e.spaceXXS,margin:e.spaceXS},"&-header":{paddingInline:"20px",paddingBlock:e.spaceLG,"&-title":{...i.resetComponent(e),fontWeight:"bold",color:e.textColor1}},"&-content":{flex:1,overflowY:"auto",paddingBlockStart:e.space,paddingInlineEnd:e.spaceLG,paddingBlockEnd:0,paddingInlineStart:e.space}}}}},s=d.genComponentStyleHook("ApTable.Setting",e=>[a(e),n(e),o(e),r(e),c(e)],p.defaultValue);exports.default=s;exports.genTableSettingSelectGroupStyle=n;exports.genTableSettingSortableItemMetaStyle=r;exports.genTableSettingSortableItemStyle=o;exports.genTableSettingSorterStyle=c;exports.genTableSettingStyle=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../utils/cssinjs/index.js"),c=e=>{const{componentCls:o,apLabelColorCustomGreen:l,apLabelColorCustomBlue:r,apLabelColorCustomRed:t}=e;return{[o]:{display:"flex",flexDirection:"column",alignItems:"start",fontSize:e.fontSizeLG,[`${o}__content`]:{display:"flex",flexDirection:"row",alignItems:"center",".user-frontend-icon":{display:"flex",alignItems:"center"}},[`${o}__custom`]:{marginBlockStart:e.spaceXXS,width:"100%",".ant-tag":{lineHeight:e.lineHeightLG},".ant-tag-green":{color:l,borderColor:l,background:e.calc(l).colorOpacity(6)},".ant-tag-red":{color:t,borderColor:t,backgroundColor:e.calc(t).colorOpacity(6)},".ant-tag-blue":{color:r,borderColor:r,backgroundColor:e.calc(r).colorOpacity(6)}}}}},n=a.genComponentStyleHook("ApLabel",e=>[c(e)],{apLabelColorCustomGreen:"#34b77c",apLabelColorCustomRed:"#FF4D4F",apLabelColorCustomBlue:"#1890ff"});exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o,apLabelColorCustomGreen:l,apLabelColorCustomBlue:r,apLabelColorCustomRed:t}=e;return{[o]:{display:"flex",flexDirection:"column",alignItems:"start",fontSize:e.fontSizeLG,[`${o}__content`]:{display:"flex",flexDirection:"row",alignItems:"center",".user-frontend-icon":{display:"flex",alignItems:"center"}},[`${o}__custom`]:{marginBlockStart:e.spaceXXS,width:"100%",".ant-tag":{lineHeight:e.lineHeightLG},".ant-tag-green":{color:l,borderColor:l,background:e.calc(l).colorMix(6)},".ant-tag-red":{color:t,borderColor:t,backgroundColor:e.calc(t).colorMix(6)},".ant-tag-blue":{color:r,borderColor:r,backgroundColor:e.calc(r).colorMix(6)}}}}},c=a.genComponentStyleHook("ApLabel",e=>[n(e)],{apLabelColorCustomGreen:"#34b77c",apLabelColorCustomRed:"#FF4D4F",apLabelColorCustomBlue:"#1890ff"});exports.default=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../utils/cssinjs/index.js"),a=i=>{const{componentCls:e,apSelectLayoutSideWidth:l}=i;return{[e]:{display:"flex",width:"100%",height:"100%",[`${e}-side`]:{display:"flex",flexDirection:"column",width:l,minWidth:l,maxWidth:l,marginInlineEnd:i.spaceXL,overflow:"hidden",backgroundColor:"#fff","&__header":{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:i.spaceXL,paddingBlock:i.spaceLG,borderBottom:`${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,overflow:"hidden",whiteSpace:"nowrap","& > h3":{margin:0,color:i.textColor1,fontSize:i.fontSize,fontWeight:"bold",lineHeight:i.lineHeightLG},"&--imgWrap":{borderRadius:i.borderRadiusSM,cursor:"pointer",fontSize:i.fontSizeXXL,color:i.textColor3,display:"flex","&:hover":{background:i.colorBg3}}},"&__body":{position:"relative",flex:1,"&--search":{marginBlock:i.spaceMD,paddingInline:i.spaceXL},"&--scroll":{position:"absolute",insetBlockStart:i.calc(i.controlHeight).add(i.calc(i.spaceMD).mul(2)).add(i.calc(i.lineWidth).mul(2)).equal(),insetBlockEnd:0,insetInlineStart:0,insetInlineEnd:0,overflowY:"auto",paddingInline:i.spaceXL},"&--scroll-item":{marginBottom:i.space,paddingInline:i.spaceLG,paddingBlock:i.space,overflow:"hidden",color:i.textColor1,lineHeight:i.lineHeightLG,width:i.calc(i.apSelectLayoutSideWidth).sub(i.calc(i.controlHeight).add(i.calc(i.lineWidth).mul(2))).equal(),textOverflow:"ellipsis",textWrap:"nowrap",cursor:"pointer",borderRadius:i.borderRadius,"&:hover":{background:i.colorBg3},"&.active":{backgroundColor:i.calc(i.colorPrimary).colorOpacity(10),color:i.colorPrimary,fontWeight:"bold","& > .ant-typography":{color:i.colorPrimary}}}}},".v-enter-active, .v-leave-active":{transition:`all ${i.motionDurationMid}, background 0s`},".v-enter-from, .v-leave-to":{width:0,minWidth:0,maxWidth:0,marginInlineEnd:0},[`${e}-content`]:{flex:1,overflowX:"hidden",display:"flex",flexDirection:"column","&__header":{display:"flex",alignItems:"center",height:i.controlHeight,paddingBlockStart:i.spaceXL,paddingInlineStart:i.spaceXL,boxSizing:"content-box",background:"#fff","&--imgWrap":{marginInlineEnd:i.spaceMD,borderRadius:i.borderRadiusSM,cursor:"pointer",fontSize:i.fontSizeXXL,display:"flex",color:i.textColor3,"&:hover":{background:i.colorBg3}},"&--title":{margin:0,fontSize:i.fontSizeLG,fontWeight:"bold",lineHeight:i.lineHeightLG}}}}}},o=r.genComponentStyleHook("ApSelectLayout",i=>[a(i)],{apSelectLayoutSideWidth:214});exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../utils/cssinjs/index.js"),a=i=>{const{componentCls:e,apSelectLayoutSideWidth:l}=i;return{[e]:{display:"flex",width:"100%",height:"100%",[`${e}-side`]:{display:"flex",flexDirection:"column",width:l,minWidth:l,maxWidth:l,marginInlineEnd:i.spaceXL,overflow:"hidden",backgroundColor:"#fff","&__header":{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:i.spaceXL,paddingBlock:i.spaceLG,borderBottom:`${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,overflow:"hidden",whiteSpace:"nowrap","& > h3":{margin:0,color:i.textColor1,fontSize:i.fontSize,fontWeight:"bold",lineHeight:i.lineHeightLG},"&--imgWrap":{borderRadius:i.borderRadiusSM,cursor:"pointer",fontSize:i.fontSizeXXL,color:i.textColor3,display:"flex","&:hover":{background:i.colorBg3}}},"&__body":{position:"relative",flex:1,"&--search":{marginBlock:i.spaceMD,paddingInline:i.spaceXL},"&--scroll":{position:"absolute",insetBlockStart:i.calc(i.controlHeight).add(i.calc(i.spaceMD).mul(2)).add(i.calc(i.lineWidth).mul(2)).equal(),insetBlockEnd:0,insetInlineStart:0,insetInlineEnd:0,overflowY:"auto",paddingInline:i.spaceXL},"&--scroll-item":{marginBottom:i.space,paddingInline:i.spaceLG,paddingBlock:i.space,overflow:"hidden",color:i.textColor1,lineHeight:i.lineHeightLG,width:i.calc(i.apSelectLayoutSideWidth).sub(i.calc(i.controlHeight).add(i.calc(i.lineWidth).mul(2))).equal(),textOverflow:"ellipsis",textWrap:"nowrap",cursor:"pointer",borderRadius:i.borderRadius,"&:hover":{background:i.colorBg3},"&.active":{backgroundColor:i.calc(i.colorPrimary).colorMix(10),color:i.colorPrimary,fontWeight:"bold","& > .ant-typography":{color:i.colorPrimary}}}}},".v-enter-active, .v-leave-active":{transition:`all ${i.motionDurationMid}, background 0s`},".v-enter-from, .v-leave-to":{width:0,minWidth:0,maxWidth:0,marginInlineEnd:0},[`${e}-content`]:{flex:1,overflowX:"hidden",display:"flex",flexDirection:"column","&__header":{display:"flex",alignItems:"center",height:i.controlHeight,paddingBlockStart:i.spaceXL,paddingInlineStart:i.spaceXL,boxSizing:"content-box",background:"#fff","&--imgWrap":{marginInlineEnd:i.spaceMD,borderRadius:i.borderRadiusSM,cursor:"pointer",fontSize:i.fontSizeXXL,display:"flex",color:i.textColor3,"&:hover":{background:i.colorBg3}},"&--title":{margin:0,fontSize:i.fontSizeLG,fontWeight:"bold",lineHeight:i.lineHeightLG}}}}}},o=r.genComponentStyleHook("ApSelectLayout",i=>[a(i)],{apSelectLayoutSideWidth:214});exports.default=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),a=e=>{const{componentCls:r}=e,i=`${r}-wrapper`,l=`${r}-inner-wrapper`;return{[i]:{textWrap:"nowrap",whiteSpace:"nowrap",display:"inline-flex",maxWidth:"100%",[l]:{borderRadius:e.borderRadius,boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",width:"100%","&--large":{padding:e.spaceSM,lineHeight:e.lineHeightLG,fontSize:e.fontSizeLG},"&--middle":{lineHeight:e.lineHeight,paddingInline:e.spaceSM,paddingBlock:e.calc(e.spaceSM).div(2).equal(),fontSize:e.fontSize},"&--small":{paddingInline:e.spaceXS,paddingBlock:0,lineHeight:e.lineHeight,fontSize:e.fontSize,borderRadius:e.borderRadiusSM}}},[`${i}-purely`]:{"& > *":{backgroundColor:"var(--tag-main-color-background)",color:e.textColor1},[`${l}--disabled`]:{backgroundColor:`color-mix(in srgb, ${e.textColor3} 15%, white)`}},[`${i}-border`]:{"& > *":{outline:`${e.lineWidth} ${e.lineType} var(--tag-main-color)`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:"var(--tag-main-color-opacity)",color:"var(--tag-main-color)"},[`${l}--disabled`]:{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:`color-mix(in srgb, ${e.textColor2} 6%, white)`,color:e.textColor2}}}},d=o.genComponentStyleHook("ApTag",e=>[a(e)]);exports.default=d;exports.genApTagStyle=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),a=e=>{const{componentCls:r}=e,i=`${r}-wrapper`,l=`${r}-inner-wrapper`;return{[i]:{textWrap:"nowrap",whiteSpace:"nowrap",display:"inline-flex",maxWidth:"100%",[l]:{borderRadius:e.borderRadius,boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",width:"100%","&--large":{padding:e.spaceSM,lineHeight:e.lineHeightLG,fontSize:e.fontSizeLG},"&--middle":{lineHeight:e.lineHeight,paddingInline:e.spaceSM,paddingBlock:e.calc(e.spaceSM).div(2).equal(),fontSize:e.fontSize},"&--small":{paddingInline:e.spaceXS,paddingBlock:0,lineHeight:e.lineHeight,fontSize:e.fontSize,borderRadius:e.borderRadiusSM}}},[`${i}-purely`]:{"& > *":{backgroundColor:"var(--tag-main-color-background)",color:e.textColor1},[`${l}--disabled`]:{backgroundColor:e.calc(e.textColor3).colorMix(15,"white")}},[`${i}-border`]:{"& > *":{outline:`${e.lineWidth} ${e.lineType} var(--tag-main-color)`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:"var(--tag-main-color-opacity)",color:"var(--tag-main-color)"},[`${l}--disabled`]:{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:e.calc(e.textColor2).colorMix(6,"white"),color:e.textColor2}}}},d=o.genComponentStyleHook("ApTag",e=>[a(e)]);exports.default=d;exports.genApTagStyle=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=i=>{const{componentCls:r}=i,e=`${r}-single-file`;return{[e]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:i.apUploadSingleFileContainerHeight,overflow:"hidden",transition:`all ${i.motionDurationSlow}`,border:`${i.lineWidth} dashed ${i.borderColorBase}`,borderRadius:i.borderRadius,background:i.colorBgLayout,userSelect:"none","& > div":{display:"flex",alignItems:"center",justifyContent:"center"},".state-un":{flexDirection:"column",".state-un-icon":{display:"block",width:i.apUploadSingleFileIconHeight},".state-un-title":{marginTop:i.spaceMD,color:i.textColor1,fontSize:i.fontSizeLG,lineHeight:i.lineHeightLG},".state-un-subtitle":{marginTop:i.spaceXS,color:i.textColor4,fontSize:i.fontSize,lineHeight:i.lineHeight}},".state-ing":{display:"flex",alignItems:"center",width:"min(516px, 77.24%)",height:"96px",paddingBlock:0,paddingInline:i.spaceXXL,borderRadius:i.borderRadius,background:"#fff",".left":{flexShrink:0,width:"48px",marginRight:i.spaceXL,img:{display:"block",width:"100%"}},".center":{flex:1,".center-title":{display:"-webkit-box",overflow:"hidden",fontSize:i.fontSizeLG,textAlign:"start",textOverflow:"ellipsis",wordWrap:"break-word",wordBreak:"break-all",WebkitBoxOrient:"vertical",WebkitLineClamp:i.lineClamp},".center-progress ":{".ant-progress-line":{marginRight:0,marginBottom:0}}},".right":{flexShrink:0,marginLeft:i.spaceXXL,color:i.colorError,fontSize:i.fontSizeXXL,cursor:"pointer !important"}}},[`${e}-un`]:{cursor:"pointer","&:hover":{border:`${i.lineWidth} dashed ${i.colorPrimary}`,background:`color-mix(in srgb, ${i.colorPrimary} 10%, transparent)`}}}};exports.singleFileStyle=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=i=>{const{componentCls:r}=i,e=`${r}-single-file`;return{[e]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:i.apUploadSingleFileContainerHeight,overflow:"hidden",transition:`all ${i.motionDurationSlow}`,border:`${i.lineWidth} dashed ${i.borderColorBase}`,borderRadius:i.borderRadius,background:i.colorBgLayout,userSelect:"none","& > div":{display:"flex",alignItems:"center",justifyContent:"center"},".state-un":{flexDirection:"column",".state-un-icon":{display:"block",width:i.apUploadSingleFileIconHeight},".state-un-title":{marginTop:i.spaceMD,color:i.textColor1,fontSize:i.fontSizeLG,lineHeight:i.lineHeightLG},".state-un-subtitle":{marginTop:i.spaceXS,color:i.textColor4,fontSize:i.fontSize,lineHeight:i.lineHeight}},".state-ing":{display:"flex",alignItems:"center",width:"min(516px, 77.24%)",height:"96px",paddingBlock:0,paddingInline:i.spaceXXL,borderRadius:i.borderRadius,background:"#fff",".left":{flexShrink:0,width:"48px",marginRight:i.spaceXL,img:{display:"block",width:"100%"}},".center":{flex:1,".center-title":{display:"-webkit-box",overflow:"hidden",fontSize:i.fontSizeLG,textAlign:"start",textOverflow:"ellipsis",wordWrap:"break-word",wordBreak:"break-all",WebkitBoxOrient:"vertical",WebkitLineClamp:i.lineClamp},".center-progress ":{".ant-progress-line":{marginRight:0,marginBottom:0}}},".right":{flexShrink:0,marginLeft:i.spaceXXL,color:i.colorError,fontSize:i.fontSizeXXL,cursor:"pointer !important"}}},[`${e}-un`]:{cursor:"pointer","&:hover":{border:`${i.lineWidth} dashed ${i.colorPrimary}`,background:i.calc(i.colorPrimary).colorMix(10)}}}};exports.singleFileStyle=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:r}=e;return{[r]:{userSelect:"none",".ant-upload-drag":{background:e.colorBgLayout,border:`${e.lineWidth} dashed var(--ap-border-color-base)`,height:e.apUploadSingleContainerHeight,"&:not(.ant-upload-disabled):hover":{background:`color-mix(in srgb, ${e.colorPrimary} 10%, transparent)`,borderColor:e.colorPrimary},".ant-upload-btn":{padding:0},".ant-upload-disabled":{cursor:"default"}},[`${r}__content`]:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},[`${r}__content-file`]:{width:"min(516px, 77.24%)",height:e.apUploadSingleItemHeight,background:"#fff",borderRadius:e.borderRadius,display:"flex",alignItems:"center",paddingInline:e.spaceXXL,paddingBlock:0,"&-icon":{flexShrink:0,marginRight:e.spaceXL,svg:{width:e.apUploadSingleItemFileIconSize}},"&-name":{flex:1,textAlign:"start","&>.ant-typography":{color:"var(--name-color)",marginBottom:0,wordBreak:"break-all"}},"&-delete":{flexShrink:0,marginLeft:e.spaceXXL,svg:{width:e.apUploadSingleItemDeleteIconSize,color:e.colorError,fontSize:e.fontSizeXXL,cursor:"pointer"}}},[`${r}__content-ing`]:{"&-name":{"--name-color":"var(--ap-text-color-2)",".ant-progress-line":{marginInlineEnd:0,marginBottom:0}}},[`${r}__content-error`]:{"&-name":{"--name-color":e.colorError}},[`${r}__content-done`]:{"&-name":{"--name-color":e.colorPrimary}},[`${r}__content-empty`]:{cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center","&-icon":{svg:{width:e.apUploadSingleContainerFileIconSize}},"&-title":{marginTop:e.spaceMD,color:"var(--ap-text-color-2)",fontSize:e.fontSizeXL,lineHeight:e.lineHeightLG},"&-sub-title":{marginTop:e.spaceXS,color:"var(--ap-text-color-3)",fontSize:e.fontSize,lineHeight:e.lineHeight}}},[`${r}-affix-wrapper-status-error`]:{".ant-upload-drag:not(.ant-upload-disabled)":{borderColor:e.colorError,"&:hover":{borderColor:`color-mix(in srgb, ${e.colorPrimary} 80%, transparent)`}}}}},i=a.genComponentStyleHook("ApUploadSingle",e=>[o(e)],{apUploadSingleContainerHeight:200,apUploadSingleItemHeight:96,apUploadSingleItemFileIconSize:48,apUploadSingleItemDeleteIconSize:20,apUploadSingleContainerFileIconSize:56});exports.default=i;exports.genProCardStyle=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:r}=e;return{[r]:{userSelect:"none",".ant-upload-drag":{background:e.colorBgLayout,border:`${e.lineWidth} dashed var(--ap-border-color-base)`,height:e.apUploadSingleContainerHeight,"&:not(.ant-upload-disabled):hover":{background:e.calc(e.colorPrimary).colorMix(10),borderColor:e.colorPrimary},".ant-upload-btn":{padding:0},".ant-upload-disabled":{cursor:"default"}},[`${r}__content`]:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},[`${r}__content-file`]:{width:"min(516px, 77.24%)",height:e.apUploadSingleItemHeight,background:"#fff",borderRadius:e.borderRadius,display:"flex",alignItems:"center",paddingInline:e.spaceXXL,paddingBlock:0,"&-icon":{flexShrink:0,marginRight:e.spaceXL,svg:{width:e.apUploadSingleItemFileIconSize}},"&-name":{flex:1,textAlign:"start","&>.ant-typography":{color:"var(--name-color)",marginBottom:0,wordBreak:"break-all"}},"&-delete":{flexShrink:0,marginLeft:e.spaceXXL,svg:{width:e.apUploadSingleItemDeleteIconSize,color:e.colorError,fontSize:e.fontSizeXXL,cursor:"pointer"}}},[`${r}__content-ing`]:{"&-name":{"--name-color":"var(--ap-text-color-2)",".ant-progress-line":{marginInlineEnd:0,marginBottom:0}}},[`${r}__content-error`]:{"&-name":{"--name-color":e.colorError}},[`${r}__content-done`]:{"&-name":{"--name-color":e.colorPrimary}},[`${r}__content-empty`]:{cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center","&-icon":{svg:{width:e.apUploadSingleContainerFileIconSize}},"&-title":{marginTop:e.spaceMD,color:"var(--ap-text-color-2)",fontSize:e.fontSizeXL,lineHeight:e.lineHeightLG},"&-sub-title":{marginTop:e.spaceXS,color:"var(--ap-text-color-3)",fontSize:e.fontSize,lineHeight:e.lineHeight}}},[`${r}-affix-wrapper-status-error`]:{".ant-upload-drag:not(.ant-upload-disabled)":{borderColor:e.colorError,"&:hover":{borderColor:e.calc(e.colorPrimary).colorMix(80)}}}}},l=a.genComponentStyleHook("ApUploadSingle",e=>[o(e)],{apUploadSingleContainerHeight:200,apUploadSingleItemHeight:96,apUploadSingleItemFileIconSize:48,apUploadSingleItemDeleteIconSize:20,apUploadSingleContainerFileIconSize:56});exports.default=l;exports.genProCardStyle=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=r=>({boxSizing:"border-box",margin:0,padding:0,color:r.textColor1,fontSize:r.fontSize,fontFamily:"inherit",lineHeight:r.lineHeight,listStyle:"none"}),l=r=>({"::-webkit-scrollbar":{width:"10px",height:"10px"},"::-webkit-scrollbar-thumb":{backgroundColor:r.scrollbarThumbColorBase,backgroundClip:"content-box",border:"1px solid transparent",borderRadius:"4px"},"::-webkit-scrollbar-track, ::-webkit-scrollbar-corner":{backgroundColor:r.scrollbarTrackColorHover},"::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active":{backgroundColor:r.scrollbarThumbColorHover}}),o=r=>({...e(r),display:"-webkit-inline-box","-webkit-line-clamp":`${r.lineClamp||2}`,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"100%",verticalAlign:"middle",wordBreak:"break-all",flex:1}),t=r=>({...o({...r,lineClamp:1})});exports.multiRows=o;exports.resetComponent=e;exports.resetScrollbar=l;exports.singleRow=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=r=>({boxSizing:"border-box",margin:0,padding:0,color:r.textColor1,fontSize:r.fontSize,fontFamily:"inherit",lineHeight:r.lineHeight,listStyle:"none"}),l=r=>({"::-webkit-scrollbar":{width:"10px",height:"10px"},"::-webkit-scrollbar-thumb":{backgroundColor:r.scrollbarThumbColorBase,backgroundClip:"content-box",border:"1px solid transparent",borderRadius:"4px"},"::-webkit-scrollbar-track, ::-webkit-scrollbar-corner":{backgroundColor:r.scrollbarTrackColorHover},"::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active":{backgroundColor:r.scrollbarThumbColorHover}}),o=r=>({...e(r),display:"-webkit-inline-box",WebkitLineClamp:`${r.lineClamp||2}`,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"100%",verticalAlign:"middle",wordBreak:"break-all",flex:1}),t=r=>({...o({...r,lineClamp:1})});exports.multiRows=o;exports.resetComponent=e;exports.resetScrollbar=l;exports.singleRow=t;
@@ -6,7 +6,7 @@ export declare class TokenUtil {
6
6
  sub(cssVar: string | number | TokenUtil): this;
7
7
  mul(cssVar: string | number | TokenUtil): this;
8
8
  div(cssVar: string | number | TokenUtil): this;
9
- colorOpacity(opacity: number): string;
9
+ colorMix(opacity: number, mixColor?: string): string;
10
10
  getResult(): string;
11
11
  equal(): string;
12
12
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class s{constructor(t){this.result="",this.result=t}add(t){return t instanceof s?this.result=`${this.result} + ${t.getResult()}`:this.result=`${this.result} + ${t}`,this.lowPriority=!0,this}sub(t){return t instanceof s?this.result=`${this.result} - ${t.getResult()}`:this.result=`${this.result} - ${t}`,this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} * ${t.getResult()}`:this.result=`${this.result} * ${t}`,this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} / ${t.getResult()}`:this.result=`${this.result} / ${t}`,this.lowPriority=!1,this}colorOpacity(t){return`color-mix(in srgb, ${this.result} ${t}%, transparent)`}getResult(){return this.lowPriority?`(${this.result})`:this.result}equal(){return typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}exports.TokenUtil=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class s{constructor(t){this.result="",this.result=t}add(t){return t instanceof s?this.result=`${this.result} + ${t.getResult()}`:this.result=`${this.result} + ${t}`,this.lowPriority=!0,this}sub(t){return t instanceof s?this.result=`${this.result} - ${t.getResult()}`:this.result=`${this.result} - ${t}`,this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} * ${t.getResult()}`:this.result=`${this.result} * ${t}`,this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} / ${t.getResult()}`:this.result=`${this.result} / ${t}`,this.lowPriority=!1,this}colorMix(t,i="transparent"){return`color-mix(in srgb, ${this.result} ${t}%, ${i})`}getResult(){return this.lowPriority?`(${this.result})`:this.result}equal(){return typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}exports.TokenUtil=s;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.1";
1
+ declare const _default: "7.7.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.1";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.2";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "7.7.1",
3
+ "version": "7.7.2",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [