@aplus-frontend/ui 7.20.2 → 7.20.4

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 (64) hide show
  1. package/es/index.mjs +73 -71
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +72 -70
  3. package/es/src/ag-grid/editable/index.vue.mjs +59 -57
  4. package/es/src/ag-grid/editable/interface.d.ts +7 -0
  5. package/es/src/ag-grid/hooks/use-columns.mjs +18 -18
  6. package/es/src/ag-grid/hooks/use-editable-api.d.ts +1 -0
  7. package/es/src/ag-grid/hooks/use-editable-api.mjs +107 -88
  8. package/es/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -0
  9. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +105 -86
  10. package/es/src/ag-grid/index.vue.mjs +230 -227
  11. package/es/src/ap-action/item-popconfirm/index.vue.mjs +14 -14
  12. package/es/src/ap-list/hooks/use-offline-list.mjs +31 -18
  13. package/es/src/business/ag-grid-container/index.d.ts +3 -0
  14. package/es/src/business/ag-grid-container/index.mjs +2 -0
  15. package/es/src/business/ag-grid-container/index.vue.d.ts +33 -0
  16. package/es/src/business/ag-grid-container/index.vue.mjs +64 -0
  17. package/es/src/business/ag-grid-container/index.vue2.mjs +4 -0
  18. package/es/src/business/ag-grid-container/interface.d.ts +4 -0
  19. package/es/src/business/ag-grid-container/interface.mjs +1 -0
  20. package/es/src/business/index.d.ts +1 -0
  21. package/es/src/business/index.mjs +55 -54
  22. package/es/src/check-card/index.vue.d.ts +0 -1
  23. package/es/src/check-card/index.vue2.mjs +3 -5
  24. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  25. package/es/src/config-provider/config-provider.d.ts +3 -0
  26. package/es/src/config-provider/config-provider.mjs +1 -1
  27. package/es/src/config-provider/hooks/use-global-config.d.ts +2 -0
  28. package/es/src/config-provider/index.d.ts +4 -0
  29. package/es/src/highlight/index.vue.mjs +9 -9
  30. package/es/src/index.mjs +82 -80
  31. package/es/src/version.d.ts +1 -1
  32. package/es/src/version.mjs +1 -1
  33. package/lib/index.js +1 -1
  34. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  35. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  36. package/lib/src/ag-grid/editable/interface.d.ts +7 -0
  37. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  38. package/lib/src/ag-grid/hooks/use-editable-api.d.ts +1 -0
  39. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  40. package/lib/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -0
  41. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  42. package/lib/src/ag-grid/index.vue.js +1 -1
  43. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  44. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  45. package/lib/src/business/ag-grid-container/index.d.ts +3 -0
  46. package/lib/src/business/ag-grid-container/index.js +1 -0
  47. package/lib/src/business/ag-grid-container/index.vue.d.ts +33 -0
  48. package/lib/src/business/ag-grid-container/index.vue.js +1 -0
  49. package/lib/src/business/ag-grid-container/index.vue2.js +1 -0
  50. package/lib/src/business/ag-grid-container/interface.d.ts +4 -0
  51. package/lib/src/business/ag-grid-container/interface.js +1 -0
  52. package/lib/src/business/index.d.ts +1 -0
  53. package/lib/src/business/index.js +1 -1
  54. package/lib/src/check-card/index.vue.d.ts +0 -1
  55. package/lib/src/check-card/index.vue2.js +1 -1
  56. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  57. package/lib/src/config-provider/config-provider.d.ts +3 -0
  58. package/lib/src/config-provider/config-provider.js +1 -1
  59. package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -0
  60. package/lib/src/config-provider/index.d.ts +4 -0
  61. package/lib/src/index.js +1 -1
  62. package/lib/src/version.d.ts +1 -1
  63. package/lib/src/version.js +1 -1
  64. package/package.json +4 -4
@@ -1,9 +1,9 @@
1
- import { defineComponent as f, useSlots as m, createBlock as d, openBlock as u, unref as r, mergeProps as P, withCtx as t, createVNode as _, normalizeProps as i, guardReactiveProps as p, createSlots as y, renderList as B, renderSlot as C } from "vue";
2
- import { Popconfirm as x } from "@aplus-frontend/antdv";
3
- import { omit as A } from "lodash-unified";
1
+ import { defineComponent as m, useSlots as d, createBlock as u, openBlock as P, unref as n, mergeProps as _, withCtx as t, createVNode as y, normalizeProps as i, guardReactiveProps as p, createSlots as C, renderList as B, renderSlot as x } from "vue";
2
+ import { Popconfirm as A } from "@aplus-frontend/antdv";
3
+ import { omit as a } from "lodash-unified";
4
4
  import "../item/index.vue.mjs";
5
5
  import b from "../item/index.vue2.mjs";
6
- const I = /* @__PURE__ */ f({
6
+ const I = /* @__PURE__ */ m({
7
7
  name: "ApActionItemPopconfirm",
8
8
  __name: "index",
9
9
  props: {
@@ -19,22 +19,22 @@ const I = /* @__PURE__ */ f({
19
19
  tooltip: {},
20
20
  popconfirmProps: { default: () => ({}) }
21
21
  },
22
- setup(a) {
23
- const s = m(), o = a;
24
- async function l(e) {
22
+ setup(s) {
23
+ const l = d(), o = s;
24
+ async function c(e) {
25
25
  o.popconfirmProps.onConfirm?.(e), await o.onAction?.(e);
26
26
  }
27
- return (e, g) => (u(), d(r(x), P(o.popconfirmProps, {
27
+ return (e, g) => (P(), u(n(A), _(n(a)(o.popconfirmProps, ["onConfirm"]), {
28
28
  disabled: !o.popconfirmProps,
29
29
  "overlay-style": { zIndex: 1060 },
30
- onConfirm: l
30
+ onConfirm: c
31
31
  }), {
32
32
  default: t(() => [
33
- _(b, i(p(r(A)(o, ["popconfirmProps", "onAction"]))), y({ _: 2 }, [
34
- B(s, (h, n) => ({
35
- name: n,
36
- fn: t((c) => [
37
- C(e.$slots, n, i(p(c || {})))
33
+ y(b, i(p(n(a)(o, ["popconfirmProps", "onAction"]))), C({ _: 2 }, [
34
+ B(l, (h, r) => ({
35
+ name: r,
36
+ fn: t((f) => [
37
+ x(e.$slots, r, i(p(f || {})))
38
38
  ])
39
39
  }))
40
40
  ]), 1040)
@@ -1,36 +1,49 @@
1
- import { isUndefined as d } from "lodash-unified";
2
- import { ref as c, computed as g, unref as n } from "vue";
1
+ import { isUndefined as s } from "lodash-unified";
2
+ import { ref as g, watch as d, computed as l, unref as a } from "vue";
3
3
  import "../../utils/index.mjs";
4
4
  import { isDef as f } from "../../utils/is.mjs";
5
5
  const C = (e) => {
6
- const i = c(
6
+ const i = g(
7
7
  e.pagination && e.pagination.defaultCurrent || 1
8
- ), o = c(
8
+ ), o = g(
9
9
  e.pagination && e.pagination.defaultPageSize || 10
10
10
  );
11
- function s(t, r) {
12
- i.value = t, o.value = r;
11
+ function u(t, n) {
12
+ i.value = t, o.value = n;
13
13
  }
14
- const p = g(() => e.dataSource ? e.pagination === !1 ? [...e.dataSource] : e.dataSource.slice(
15
- (n(i) - 1) * n(o),
16
- n(i) * n(o)
14
+ d(
15
+ () => e.dataSource,
16
+ (t) => {
17
+ if (!t?.length)
18
+ return;
19
+ const n = Math.max(
20
+ Math.ceil(t.length / o.value),
21
+ 1
22
+ );
23
+ console.log(n, i.value), n < i.value && u(n, o.value);
24
+ },
25
+ { deep: 1 }
26
+ );
27
+ const h = l(() => e.dataSource ? e.pagination === !1 ? [...e.dataSource] : e.dataSource.slice(
28
+ (a(i) - 1) * a(o),
29
+ a(i) * a(o)
17
30
  ) : []);
18
31
  return {
19
- pagination: g(() => {
20
- const { showLessItems: t, showSizeChanger: r, showQuickJumper: a, pageSizeOptions: u } = e.pagination || {};
32
+ pagination: l(() => {
33
+ const { showLessItems: t, showSizeChanger: n, showQuickJumper: r, pageSizeOptions: c } = e.pagination || {};
21
34
  return {
22
- current: n(i),
23
- pageSize: n(o),
35
+ current: a(i),
36
+ pageSize: a(o),
24
37
  total: e.dataSource?.length || 0,
25
- showSizeChanger: f(r) ? r : !t,
26
- showQuickJumper: f(a) ? a : !t,
38
+ showSizeChanger: f(n) ? n : !t,
39
+ showQuickJumper: f(r) ? r : !t,
27
40
  showLessItems: t,
28
41
  size: "default",
29
- pageSizeOptions: d(u) ? ["10", "20", "50", "100"] : u
42
+ pageSizeOptions: s(c) ? ["10", "20", "50", "100"] : c
30
43
  };
31
44
  }),
32
- dataSource: p,
33
- onChange: s
45
+ dataSource: h,
46
+ onChange: u
34
47
  };
35
48
  };
36
49
  export {
@@ -0,0 +1,3 @@
1
+ import { default as AgGridContainer } from './index.vue';
2
+ export * from './interface';
3
+ export { AgGridContainer };
@@ -0,0 +1,2 @@
1
+ import "./index.vue2.mjs";
2
+ import "./interface.mjs";
@@ -0,0 +1,33 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ minHeight?: number;
4
+ maxHeight?: number | string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {
12
+ wrapperContainer: HTMLDivElement;
13
+ };
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
+ heightChange: (height: number) => any;
19
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onHeightChange?: ((height: number) => any) | undefined;
21
+ }>, {
22
+ maxHeight: number | string;
23
+ minHeight: number;
24
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
25
+ wrapperContainer: HTMLDivElement;
26
+ }, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,64 @@
1
+ import { defineComponent as x, useTemplateRef as y, ref as v, shallowRef as G, onMounted as R, createBlock as _, openBlock as b, unref as P, normalizeProps as S, guardReactiveProps as k, withCtx as A, createElementVNode as M, normalizeStyle as T, renderSlot as $ } from "vue";
2
+ import { isNil as c } from "lodash-unified";
3
+ import { APConfigProvider as z } from "../../config-provider/index.mjs";
4
+ import { useGlobalConfig as B } from "../../config-provider/hooks/use-global-config.mjs";
5
+ import { globalConfigCached as f } from "../../config-provider/config-provider.mjs";
6
+ const U = /* @__PURE__ */ x({
7
+ __name: "index",
8
+ props: {
9
+ minHeight: { default: 150 },
10
+ maxHeight: { default: "unset" }
11
+ },
12
+ emits: ["heightChange"],
13
+ setup(h, { emit: u }) {
14
+ const m = B(), d = f.value.agGrid, r = h, p = u, n = y("wrapperContainer"), a = v(g(r.minHeight)), l = (e) => {
15
+ const o = n.value?.clientHeight, t = n.value?.querySelector(
16
+ ".ag-body.ag-layout-normal"
17
+ )?.clientHeight;
18
+ let i = 0;
19
+ !o || !t ? i = 0 : i = o - t;
20
+ const w = e + i, s = Math.max(w, r.minHeight);
21
+ a.value = `${s}px`, p("heightChange", s);
22
+ }, H = (e) => {
23
+ if (!e) return;
24
+ const o = e.getDisplayedRowCount();
25
+ if (o > 0) {
26
+ const t = e.getDisplayedRowAtIndex(o - 1);
27
+ if (t && !c(t.rowTop) && !c(t.rowHeight)) {
28
+ const i = t.rowTop + t.rowHeight;
29
+ l(i);
30
+ }
31
+ } else
32
+ l(150);
33
+ }, C = G({
34
+ agGrid: {
35
+ ...m.value?.agGrid,
36
+ onModelUpdated: H
37
+ }
38
+ });
39
+ R(() => {
40
+ f.value.agGrid = d;
41
+ });
42
+ function g(e) {
43
+ return typeof e == "number" && e ? `${e}px` : e.toString();
44
+ }
45
+ return (e, o) => (b(), _(P(z), S(k(C.value)), {
46
+ default: A(() => [
47
+ M("div", {
48
+ ref_key: "wrapperContainer",
49
+ ref: n,
50
+ style: T({
51
+ height: a.value,
52
+ maxHeight: e.maxHeight && g(e.maxHeight)
53
+ })
54
+ }, [
55
+ $(e.$slots, "default")
56
+ ], 4)
57
+ ]),
58
+ _: 3
59
+ }, 16));
60
+ }
61
+ });
62
+ export {
63
+ U as default
64
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ export interface AgGridContainerProps {
2
+ minHeight?: number;
3
+ maxHeight?: number | string;
4
+ }
@@ -33,3 +33,4 @@ export * from './ap-upload';
33
33
  export * from './ap-download';
34
34
  export * from './ap-descriptions';
35
35
  export * from './ap-file-preview';
36
+ export * from './ag-grid-container';
@@ -1,65 +1,66 @@
1
- import { default as u } from "./ap-table-modal/index.mjs";
2
- import { ApAttachment as d } from "./ap-attachment/index.mjs";
3
- import { ApBatchAction as c } from "./ap-batch-action/index.mjs";
4
- import { ApBatchActionGroup as S } from "./ap-batch-action-group/index.mjs";
5
- import { ApButtonGroup as s } from "./ap-button-group/index.mjs";
6
- import { ApCard as L } from "./ap-card/index.mjs";
1
+ import { default as l } from "./ap-table-modal/index.mjs";
2
+ import { ApAttachment as n } from "./ap-attachment/index.mjs";
3
+ import { ApBatchAction as G } from "./ap-batch-action/index.mjs";
4
+ import { ApBatchActionGroup as b } from "./ap-batch-action-group/index.mjs";
5
+ import { ApButtonGroup as I } from "./ap-button-group/index.mjs";
6
+ import { ApCard as g } from "./ap-card/index.mjs";
7
7
  import "./ap-expand-alert/index.mjs";
8
- import { ApExportGroup as h } from "./ap-export-group/index.mjs";
9
- import { ApImage as B } from "./ap-image/index.mjs";
10
- import { ApInputRadio as T } from "./ap-input-radio/index.mjs";
11
- import { ApLabel as w, ApLabelGroup as D } from "./ap-label/index.mjs";
12
- import { ApLadder as R } from "./ap-ladder/index.mjs";
13
- import { ApSelectLayout as z } from "./ap-select-layout/index.mjs";
14
- import { ApStatus as F, ApStatusGroup as H } from "./ap-status/index.mjs";
15
- import { ApTitle as M } from "./ap-title/index.mjs";
8
+ import { ApExportGroup as y } from "./ap-export-group/index.mjs";
9
+ import { ApImage as C } from "./ap-image/index.mjs";
10
+ import { ApInputRadio as v } from "./ap-input-radio/index.mjs";
11
+ import { ApLabel as D, ApLabelGroup as P } from "./ap-label/index.mjs";
12
+ import { ApLadder as V } from "./ap-ladder/index.mjs";
13
+ import { ApSelectLayout as E } from "./ap-select-layout/index.mjs";
14
+ import { ApStatus as H, ApStatusGroup as K } from "./ap-status/index.mjs";
15
+ import { ApTitle as j } from "./ap-title/index.mjs";
16
16
  import "./hooks/index.mjs";
17
- import { ApSummary as k } from "./ap-summary/index.mjs";
18
- import { ApAppendix as J } from "./ap-appendix/index.mjs";
17
+ import { ApSummary as q } from "./ap-summary/index.mjs";
18
+ import { ApAppendix as N } from "./ap-appendix/index.mjs";
19
19
  import "./ap-upload-file/index.mjs";
20
20
  import "./batch-input-group/index.mjs";
21
- import { ApSizeInput as O } from "./ap-size-input/index.mjs";
22
- import { ApProductInfo as U } from "./ap-product-info/index.mjs";
23
- import { ApCopy as X } from "./ap-copy/index.mjs";
24
- import { ApView as Z } from "./ap-view/index.mjs";
25
- import { ApRadioGroup as $ } from "./ap-radio-group/index.mjs";
26
- import { ApKeepAlive as ro } from "./ap-keep-alive/index.mjs";
27
- import { ApDraggableGrid as to } from "./ap-draggable-grid/index.mjs";
28
- import { ApValueSelectCard as mo } from "./ap-value-select-card/index.mjs";
29
- import { ApTransformDataHelper as fo } from "../utils/ap-trans-data/index.mjs";
21
+ import { ApSizeInput as Q } from "./ap-size-input/index.mjs";
22
+ import { ApProductInfo as W } from "./ap-product-info/index.mjs";
23
+ import { ApCopy as Y } from "./ap-copy/index.mjs";
24
+ import { ApView as _ } from "./ap-view/index.mjs";
25
+ import { ApRadioGroup as oo } from "./ap-radio-group/index.mjs";
26
+ import { ApKeepAlive as po } from "./ap-keep-alive/index.mjs";
27
+ import { ApDraggableGrid as eo } from "./ap-draggable-grid/index.mjs";
28
+ import { ApValueSelectCard as Ao } from "./ap-value-select-card/index.mjs";
29
+ import { ApTransformDataHelper as xo } from "../utils/ap-trans-data/index.mjs";
30
30
  import "./ag-grid-modal/index.mjs";
31
31
  import "./ap-tag/index.mjs";
32
32
  import "./ap-upload/index.mjs";
33
33
  import "./ap-download/index.mjs";
34
34
  import "./ap-descriptions/index.mjs";
35
- import { ApFilePreview as ao } from "./ap-file-preview/index.mjs";
35
+ import { ApFilePreview as io } from "./ap-file-preview/index.mjs";
36
+ import "./ag-grid-container/index.mjs";
36
37
  export {
37
- J as ApAppendix,
38
- d as ApAttachment,
39
- c as ApBatchAction,
40
- S as ApBatchActionGroup,
41
- s as ApButtonGroup,
42
- L as ApCard,
43
- X as ApCopy,
44
- to as ApDraggableGrid,
45
- h as ApExportGroup,
46
- ao as ApFilePreview,
47
- B as ApImage,
48
- T as ApInputRadio,
49
- ro as ApKeepAlive,
50
- w as ApLabel,
51
- D as ApLabelGroup,
52
- R as ApLadder,
53
- U as ApProductInfo,
54
- $ as ApRadioGroup,
55
- z as ApSelectLayout,
56
- O as ApSizeInput,
57
- F as ApStatus,
58
- H as ApStatusGroup,
59
- k as ApSummary,
60
- u as ApTableModal,
61
- M as ApTitle,
62
- fo as ApTransformDataHelper,
63
- mo as ApValueSelectCard,
64
- Z as ApView
38
+ N as ApAppendix,
39
+ n as ApAttachment,
40
+ G as ApBatchAction,
41
+ b as ApBatchActionGroup,
42
+ I as ApButtonGroup,
43
+ g as ApCard,
44
+ Y as ApCopy,
45
+ eo as ApDraggableGrid,
46
+ y as ApExportGroup,
47
+ io as ApFilePreview,
48
+ C as ApImage,
49
+ v as ApInputRadio,
50
+ po as ApKeepAlive,
51
+ D as ApLabel,
52
+ P as ApLabelGroup,
53
+ V as ApLadder,
54
+ W as ApProductInfo,
55
+ oo as ApRadioGroup,
56
+ E as ApSelectLayout,
57
+ Q as ApSizeInput,
58
+ H as ApStatus,
59
+ K as ApStatusGroup,
60
+ q as ApSummary,
61
+ l as ApTableModal,
62
+ j as ApTitle,
63
+ xo as ApTransformDataHelper,
64
+ Ao as ApValueSelectCard,
65
+ _ as ApView
65
66
  };
@@ -17,7 +17,6 @@ declare const __VLS_component: DefineComponent<CheckCardProps, {}, {}, {}, {}, C
17
17
  }, string, PublicProps, Readonly<CheckCardProps> & Readonly<{
18
18
  "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
19
19
  }>, {
20
- size: "middle" | "small";
21
20
  style: CSSProperties;
22
21
  bordered: boolean;
23
22
  checked: boolean;
@@ -24,9 +24,7 @@ const J = ["src"], ne = /* @__PURE__ */ T({
24
24
  loading: {
25
25
  type: Boolean
26
26
  },
27
- size: {
28
- default: "middle"
29
- },
27
+ size: {},
30
28
  stopPropagation: {
31
29
  type: [Boolean, Function],
32
30
  default: !1
@@ -69,8 +67,8 @@ const J = ["src"], ne = /* @__PURE__ */ T({
69
67
  }), a = i(() => {
70
68
  const e = {
71
69
  ...l
72
- }, o = t(n);
73
- return o && (e.disabled = e.disabled || o.disabled, e.bordered = e.bordered || o.bordered, e.loading = e.loading || o.loading, e.size = e.size || o.size, e.indicatorSize = e.indicatorSize || o.indicatorSize, e.stopPropagation = e.stopPropagation || o.stopPropagation, e.style = e.style ? e.style : o.style), e;
70
+ }, o = t(n) || {};
71
+ return o && (e.disabled = e.disabled ?? o.disabled, e.bordered = e.bordered ?? o.bordered, e.loading = e.loading ?? o.loading, e.size = e.size ?? o.size ?? "middle", e.indicatorSize = e.indicatorSize ?? o.indicatorSize, e.stopPropagation = e.stopPropagation ?? o.stopPropagation, e.style = e.style ? e.style : o.style), e;
74
72
  }), V = i(() => {
75
73
  const e = t(a);
76
74
  return [S(), c(e.size), t(r) ? c("checked") : null, e.bordered ? c("bordered") : null, e.disabled ? c("disabled") : null, B.value];
@@ -14,7 +14,7 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
14
14
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
15
15
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
16
16
  type ApGridConfig = Pick<ApGridProps, 'rowSelection'>;
17
- type AgGridConfig = Pick<AgGridProps, 'rowSelection'>;
17
+ type AgGridConfig = Pick<AgGridProps, 'rowSelection' | 'onModelUpdated'>;
18
18
  type ApProCardConfig = {
19
19
  uiMode?: UiModeType;
20
20
  };
@@ -7,6 +7,7 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
7
7
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
8
8
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
9
  import { ApGridRowSelection, AgGridRowSelection, ApExportGroupListItem, FullToken, ViewCacheOption } from '..';
10
+ import { GridApi } from 'ag-grid-community';
10
11
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
11
12
  import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
12
13
  import { LocaleType } from '../locale';
@@ -180,6 +181,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
180
181
  agGrid: {
181
182
  type: PropType<{
182
183
  rowSelection?: true | AgGridRowSelection<any> | undefined;
184
+ onModelUpdated?: ((api: GridApi) => void) | undefined;
183
185
  }>;
184
186
  };
185
187
  apProCard: {
@@ -420,6 +422,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
420
422
  agGrid: {
421
423
  type: PropType<{
422
424
  rowSelection?: true | AgGridRowSelection<any> | undefined;
425
+ onModelUpdated?: ((api: GridApi) => void) | undefined;
423
426
  }>;
424
427
  };
425
428
  apProCard: {
@@ -15,7 +15,7 @@ const a = s({}), _ = /* @__PURE__ */ v({
15
15
  setup(e, {
16
16
  slots: u
17
17
  }) {
18
- G("ConfigProvider")(!e.uiMode, "breaking", "uiMode has been remove, see migrate guild https://aplus.aplnk.com/aplus-ui/guild/migrate-7.2.html");
18
+ G("ConfigProvider")(!e.uiMode, "breaking", "uiMode has been remove, see migrate guide https://aplus.aplnk.com/aplus-ui/guide/migrate-7.2.html");
19
19
  function o(r, c) {
20
20
  return e[r] ?? i.value?.[r] ?? c;
21
21
  }
@@ -8,6 +8,7 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
8
8
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
9
9
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
10
  import { ApGridRowSelection, AgGridRowSelection, ApExportGroupListItem, FullToken, ViewCacheOption } from '../..';
11
+ import { GridApi } from 'ag-grid-community';
11
12
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig } from '..';
12
13
  import { ApFilePreviewParser } from '../../business/ap-file-preview/interface';
13
14
  import { LocaleType } from '../../locale';
@@ -183,6 +184,7 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
183
184
  agGrid: {
184
185
  type: PropType<{
185
186
  rowSelection?: true | AgGridRowSelection<any> | undefined;
187
+ onModelUpdated?: ((api: GridApi) => void) | undefined;
186
188
  }>;
187
189
  };
188
190
  apProCard: {
@@ -6,6 +6,7 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
6
6
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
7
7
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
8
  import { ApGridRowSelection, AgGridRowSelection, ApExportGroupListItem, FullToken, ViewCacheOption } from '..';
9
+ import { GridApi } from 'ag-grid-community';
9
10
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
10
11
  import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
11
12
  import { LocaleType } from '../locale';
@@ -185,6 +186,7 @@ export declare const APConfigProvider: {
185
186
  agGrid: {
186
187
  type: PropType<{
187
188
  rowSelection?: true | AgGridRowSelection<any> | undefined;
189
+ onModelUpdated?: ((api: GridApi) => void) | undefined;
188
190
  }>;
189
191
  };
190
192
  apProCard: {
@@ -483,6 +485,7 @@ export declare const APConfigProvider: {
483
485
  agGrid: {
484
486
  type: PropType<{
485
487
  rowSelection?: true | AgGridRowSelection<any> | undefined;
488
+ onModelUpdated?: ((api: GridApi) => void) | undefined;
486
489
  }>;
487
490
  };
488
491
  apProCard: {
@@ -778,6 +781,7 @@ export declare const APConfigProvider: {
778
781
  agGrid: {
779
782
  type: PropType<{
780
783
  rowSelection?: true | AgGridRowSelection<any> | undefined;
784
+ onModelUpdated?: ((api: GridApi) => void) | undefined;
781
785
  }>;
782
786
  };
783
787
  apProCard: {
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as c, createElementBlock as s, openBlock as n, normalizeClass as p, unref as i, Fragment as u, renderList as C, renderSlot as d, createTextVNode as m, toDisplayString as y } from "vue";
1
+ import { defineComponent as v, computed as c, createElementBlock as n, openBlock as o, normalizeClass as p, unref as i, Fragment as u, renderList as C, renderSlot as d, createTextVNode as m, toDisplayString as y } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import S from "./style/index.mjs";
4
4
  import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
@@ -11,31 +11,31 @@ const B = { key: 1 }, N = /* @__PURE__ */ v({
11
11
  ignoreCase: { type: Boolean }
12
12
  },
13
13
  setup(g) {
14
- const o = g, { b: h, e: k } = $("highlight"), f = S("highlight"), l = c(() => {
15
- const e = o.keywords;
14
+ const s = g, { b: h, e: k } = $("highlight"), f = S("highlight"), l = c(() => {
15
+ const e = s.keywords;
16
16
  if (!e)
17
17
  return null;
18
18
  let t = Array.isArray(e) ? e : [e];
19
19
  return t = t.sort((r, a) => a.length - r.length), new RegExp(
20
20
  `(${t.join("|")})`,
21
- `${o.ignoreCase ? "i" : ""}g`
21
+ `${s.ignoreCase ? "i" : ""}g`
22
22
  );
23
23
  }), w = c(() => {
24
- const e = o.content;
24
+ const e = s.content;
25
25
  return !l.value || !e ? [{ keywords: !1, text: e }] : e.split(l.value).map((t) => ({ keywords: l.value.test(t), text: t }));
26
26
  });
27
- return (e, t) => (n(), s("div", {
27
+ return (e, t) => (o(), n("div", {
28
28
  class: p([i(h)(), i(f)])
29
29
  }, [
30
- (n(!0), s(u, null, C(w.value, ({ text: r, keywords: a }, _) => (n(), s(u, { key: _ }, [
31
- a ? (n(), s("span", {
30
+ (o(!0), n(u, null, C(w.value, ({ text: r, keywords: a }, _) => (o(), n(u, { key: _ }, [
31
+ a ? (o(), n("span", {
32
32
  key: 0,
33
33
  class: p(i(k)("keywords"))
34
34
  }, [
35
35
  d(e.$slots, "keywords", { text: r }, () => [
36
36
  m(y(r), 1)
37
37
  ])
38
- ], 2)) : (n(), s("span", B, [
38
+ ], 2)) : (o(), n("span", B, [
39
39
  d(e.$slots, "default", { text: r }, () => [
40
40
  m(y(r), 1)
41
41
  ])