@aplus-frontend/ui 0.6.0-beta.4 → 0.6.0-beta.5

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 (172) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  3. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  4. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  8. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  9. package/es/src/ap-form/item/index.vue.d.ts +1 -1
  10. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  11. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  12. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  13. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  14. package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  15. package/es/src/ap-form/render/item.vue.d.ts +1 -1
  16. package/es/src/ap-grid/index.vue.mjs +37 -35
  17. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  18. package/es/src/ap-table/ap-table.vue2.mjs +20 -18
  19. package/es/src/ap-table/constants.d.ts +30 -30
  20. package/es/src/ap-table/utils.d.ts +14 -14
  21. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  22. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +25 -25
  23. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  24. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  25. package/es/src/business/ap-label/index.d.ts +3 -3
  26. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  27. package/es/src/business/ap-ladder/index.d.ts +3 -3
  28. package/es/src/business/ap-view/ap-view.vue2.mjs +60 -58
  29. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  30. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  31. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  32. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  33. package/es/src/check-card/group.vue.d.ts +1 -1
  34. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  35. package/es/src/config-provider/config-provider-props.mjs +0 -4
  36. package/es/src/config-provider/config-provider.d.ts +0 -138
  37. package/es/src/config-provider/config-provider.mjs +21 -26
  38. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  39. package/es/src/config-provider/index.d.ts +0 -652
  40. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  41. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  42. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  43. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  44. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  45. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  46. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  47. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  48. package/lib/src/ap-form/item/index.vue.d.ts +1 -1
  49. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  50. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  51. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  52. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  53. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  54. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  55. package/lib/src/ap-grid/index.vue.js +1 -1
  56. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  57. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  58. package/lib/src/ap-table/constants.d.ts +30 -30
  59. package/lib/src/ap-table/utils.d.ts +14 -14
  60. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  61. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  62. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  63. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  64. package/lib/src/business/ap-label/index.d.ts +3 -3
  65. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  66. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  67. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  68. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  69. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  70. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  71. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  72. package/lib/src/check-card/group.vue.d.ts +1 -1
  73. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  74. package/lib/src/config-provider/config-provider-props.js +1 -1
  75. package/lib/src/config-provider/config-provider.d.ts +0 -138
  76. package/lib/src/config-provider/config-provider.js +1 -1
  77. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  78. package/lib/src/config-provider/index.d.ts +0 -652
  79. package/package.json +1 -1
  80. package/theme/antd-global-overwrite/admin/index.css +3 -0
  81. package/theme/antd-global-overwrite/admin/index.less +1 -0
  82. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  83. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  84. package/theme/antd-global-overwrite/aplus/index.css +3 -0
  85. package/theme/antd-global-overwrite/aplus/index.less +1 -0
  86. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  87. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  88. package/theme/ap-action/item-dropdown.css +17 -0
  89. package/theme/ap-action/item.css +17 -0
  90. package/theme/ap-appendix/ap-appendix.css +17 -0
  91. package/theme/ap-attachment/ap-attachment.css +17 -0
  92. package/theme/ap-batch-action/ap-batch-action.css +17 -0
  93. package/theme/ap-button/ap-button.css +17 -0
  94. package/theme/ap-card/ap-card.css +17 -0
  95. package/theme/ap-descriptions/ap-descriptions.css +17 -0
  96. package/theme/ap-download/ap-download.css +17 -0
  97. package/theme/ap-expand-alert/ap-expand-alert.css +17 -0
  98. package/theme/ap-field/checkbox.css +17 -0
  99. package/theme/ap-field/index.css +17 -0
  100. package/theme/ap-field/number.css +17 -0
  101. package/theme/ap-field/radio.css +17 -0
  102. package/theme/ap-field/text-area.css +17 -0
  103. package/theme/ap-form/ap-form-item-group.css +17 -0
  104. package/theme/ap-form/ap-form-item.css +22 -2
  105. package/theme/ap-form/ap-form-item.less +9 -3
  106. package/theme/ap-form/drawer-form.css +17 -0
  107. package/theme/ap-form/index.css +22 -2
  108. package/theme/ap-form/item-text-group.css +17 -0
  109. package/theme/ap-form/item-text.css +17 -0
  110. package/theme/ap-form/modal-form.css +17 -0
  111. package/theme/ap-form/search-form-sorter.css +17 -0
  112. package/theme/ap-form/search-form.css +22 -2
  113. package/theme/ap-grid/editable.css +17 -0
  114. package/theme/ap-grid/index.css +39 -2
  115. package/theme/ap-grid/index.less +1 -0
  116. package/theme/ap-group-search/ap-extension-select.css +17 -0
  117. package/theme/ap-group-search/ap-group-search.css +17 -0
  118. package/theme/ap-group-search/ap-popover-select.css +17 -0
  119. package/theme/ap-image/ap-image.css +17 -0
  120. package/theme/ap-input-radio/ap-input-radio.css +17 -0
  121. package/theme/ap-label/ap-label.css +17 -0
  122. package/theme/ap-ladder/ap-ladder.css +17 -0
  123. package/theme/ap-layout/ap-info-layout.css +17 -0
  124. package/theme/ap-list/index.css +17 -0
  125. package/theme/ap-product-info/ap-product-info.css +17 -0
  126. package/theme/ap-select-layout/ap-select-layout.css +17 -0
  127. package/theme/ap-size-input/ap-size-input.css +17 -0
  128. package/theme/ap-status/ap-status.css +17 -0
  129. package/theme/ap-summary/index.css +17 -0
  130. package/theme/ap-table/ap-table-index.css +17 -0
  131. package/theme/ap-table/ap-table-paragraph-ellipsis.css +17 -0
  132. package/theme/ap-table/ap-table.css +39 -2
  133. package/theme/ap-table/ap-table.less +1 -0
  134. package/theme/ap-table/setting/index.css +17 -0
  135. package/theme/ap-table/setting/modal.css +17 -0
  136. package/theme/ap-table/setting/select-group.css +17 -0
  137. package/theme/ap-table/setting/sortable-item-meta.css +17 -0
  138. package/theme/ap-table/setting/sortable-item.css +17 -0
  139. package/theme/ap-table/setting/sorter.css +17 -0
  140. package/theme/ap-table-modal/index.css +39 -2
  141. package/theme/ap-tag/ap-tag-group.css +17 -0
  142. package/theme/ap-tag/ap-tag.css +17 -0
  143. package/theme/ap-title/ap-title.css +17 -0
  144. package/theme/ap-upload/index.css +17 -0
  145. package/theme/ap-upload/multiple-file.css +17 -0
  146. package/theme/ap-upload/picture.css +17 -0
  147. package/theme/ap-upload/single-file.css +17 -0
  148. package/theme/ap-upload/upload.css +17 -0
  149. package/theme/ap-upload-single/index.css +17 -0
  150. package/theme/ap-view/ap-view.css +17 -0
  151. package/theme/batch-input-group/index.css +17 -0
  152. package/theme/batch-input-group/popover-input.css +17 -0
  153. package/theme/check-card/index.css +17 -0
  154. package/theme/editable-table/index.css +22 -2
  155. package/theme/full-screen/index.css +17 -0
  156. package/theme/index.css +148 -2
  157. package/theme/index.less +1 -0
  158. package/theme/mask/index.css +17 -0
  159. package/theme/mixins/mixins.css +17 -0
  160. package/theme/mixins/mixins.less +28 -0
  161. package/theme/scroll-bar/index.css +17 -0
  162. package/theme/scroll-view/index.css +17 -0
  163. package/theme/splitter/index.css +17 -0
  164. package/theme/text/group.css +17 -0
  165. package/theme/text/index.css +17 -0
  166. package/theme/ui-mode.css +92 -0
  167. package/theme/ui-mode.less +93 -0
  168. package/theme/work-order-modal/index.css +17 -0
  169. package/es/src/config-provider/css-var.d.ts +0 -139
  170. package/es/src/config-provider/css-var.mjs +0 -278
  171. package/lib/src/config-provider/css-var.d.ts +0 -139
  172. package/lib/src/config-provider/css-var.js +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, computed as f, ref as h, watch as T, nextTick as w, createElementBlock as n, openBlock as a, normalizeClass as s, unref as t, createVNode as x, withCtx as m, createElementVNode as b, normalizeStyle as c, renderSlot as A, createBlock as g, toDisplayString as p, resolveDynamicComponent as N, Fragment as C, renderList as j, createCommentVNode as I, createTextVNode as q } from "vue";
1
+ import { defineComponent as W, computed as f, ref as h, watch as A, nextTick as w, createElementBlock as n, openBlock as a, normalizeClass as s, unref as t, createVNode as x, withCtx as m, createElementVNode as b, normalizeStyle as c, renderSlot as N, createBlock as g, toDisplayString as i, resolveDynamicComponent as I, Fragment as C, renderList as j, createCommentVNode as L, createTextVNode as q } from "vue";
2
2
  import { DownOutlined as J } from "@ant-design/icons-vue";
3
3
  import { Alert as K, Tooltip as P } from "@aplus-frontend/antdv";
4
4
  import { ApActionItem as Q } from "../../ap-action/index.mjs";
@@ -7,7 +7,7 @@ import { isString as E } from "lodash-unified";
7
7
  import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
8
8
  import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
9
9
  import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
10
- const Z = ["onClick"], pe = /* @__PURE__ */ W({
10
+ const Z = ["onClick"], ie = /* @__PURE__ */ W({
11
11
  __name: "ApExpandAlert",
12
12
  props: {
13
13
  type: { default: "warning" },
@@ -24,8 +24,8 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
24
24
  showIcon: { type: Boolean, default: !0 }
25
25
  },
26
26
  emits: ["choose", "expand"],
27
- setup(L, { expose: $, emit: z }) {
28
- const H = z, r = L, { t: S } = U(), V = f(() => {
27
+ setup($, { expose: z, emit: H }) {
28
+ const S = H, r = $, { t: B } = U(), V = f(() => {
29
29
  if (r.type != "card")
30
30
  return r.type;
31
31
  }), l = h(""), u = h(null), D = f(() => ({
@@ -37,13 +37,13 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
37
37
  webkitBoxOrient: "vertical"
38
38
  }));
39
39
  function R() {
40
- l.value === "1" ? l.value = "" : l.value = "1", H("expand");
40
+ l.value === "1" ? (l.value = "", S("expand", "expand")) : (l.value = "1", S("expand", "collapse"));
41
41
  }
42
- const M = f(() => l.value === "1" ? S("ap.apExpandAlert.expand") : S("ap.apExpandAlert.collapse")), y = h(!0), B = f(() => l.value !== "1");
42
+ const M = f(() => l.value === "1" ? B("ap.apExpandAlert.expand") : B("ap.apExpandAlert.collapse")), y = h(!0), T = f(() => l.value !== "1");
43
43
  function v(e) {
44
44
  e ? l.value = "" : l.value = "1";
45
45
  }
46
- T(
46
+ A(
47
47
  () => r.data,
48
48
  () => {
49
49
  l.value = "", w(() => {
@@ -51,14 +51,14 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
51
51
  const e = Number(u.value.clientHeight), d = Number(
52
52
  parseInt(u.value.style.lineHeight)
53
53
  );
54
- e < d * Number(r.rows) && B.value ? y.value = !1 : y.value = !0;
54
+ e < d * Number(r.rows) && T.value ? y.value = !1 : y.value = !0;
55
55
  }
56
56
  });
57
57
  },
58
58
  {
59
59
  immediate: !0
60
60
  }
61
- ), T(
61
+ ), A(
62
62
  () => r.defaultExpand,
63
63
  (e) => {
64
64
  e ? w(() => {
@@ -70,7 +70,7 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
70
70
  { immediate: !0 }
71
71
  );
72
72
  const { b: O, e: o, m: F } = X("ap-expand-alert"), G = Y("uiMode", "aplus");
73
- return $({
73
+ return z({
74
74
  setExpand: v
75
75
  }), (e, d) => (a(), n("div", {
76
76
  class: s([t(O)(), `${t(F)(t(G))}`])
@@ -85,18 +85,18 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
85
85
  key: 0,
86
86
  size: "small",
87
87
  style: { "font-size": "12px", "padding-left": "16px" },
88
- onClick: d[0] || (d[0] = (i) => R())
88
+ onClick: d[0] || (d[0] = (p) => R())
89
89
  }, {
90
90
  default: m(() => [
91
91
  b("span", {
92
92
  class: s(t(o)("expandText"))
93
- }, p(M.value), 3),
93
+ }, i(M.value), 3),
94
94
  x(t(J), {
95
- class: s(B.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
95
+ class: s(T.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
96
96
  }, null, 8, ["class"])
97
97
  ]),
98
98
  _: 1
99
- })) : I("", !0)
99
+ })) : L("", !0)
100
100
  ]),
101
101
  message: m(() => [
102
102
  b("div", {
@@ -105,31 +105,31 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
105
105
  style: c({ ...D.value, ...e.contentStyle }),
106
106
  class: s(t(o)("alertContent"))
107
107
  }, [
108
- A(e.$slots, "default", {}, () => [
108
+ N(e.$slots, "default", {}, () => [
109
109
  t(E)(e.prefix) ? (a(), n("span", {
110
110
  key: 0,
111
111
  class: s(t(o)("prefix")),
112
112
  style: c(e.prefixStyle)
113
- }, p(e.prefix), 7)) : (a(), g(N(e.prefix), {
113
+ }, i(e.prefix), 7)) : (a(), g(I(e.prefix), {
114
114
  key: 1,
115
115
  style: c(e.prefixStyle)
116
116
  }, null, 8, ["style"])),
117
117
  t(E)(e.data) ? (a(), n("span", {
118
118
  key: 2,
119
119
  class: s(t(o)("text"))
120
- }, p(e.data), 3)) : (a(!0), n(C, { key: 3 }, j(e.data, (i, k) => (a(), n(C, { key: k }, [
120
+ }, i(e.data), 3)) : (a(!0), n(C, { key: 3 }, j(e.data, (p, k) => (a(), n(C, { key: k }, [
121
121
  x(t(P), {
122
122
  title: e.tipTitle ? e.tipTitle : null
123
123
  }, {
124
124
  default: m(() => [
125
- A(e.$slots, "item", {
126
- record: i,
125
+ N(e.$slots, "item", {
126
+ record: p,
127
127
  index: k
128
128
  }, () => [
129
129
  b("span", {
130
130
  class: s(t(o)("showItem")),
131
- onClick: (_) => e.$emit("choose", i)
132
- }, p(e.mapLabel ? i[e.mapLabel] : i), 11, Z)
131
+ onClick: (_) => e.$emit("choose", p)
132
+ }, i(e.mapLabel ? p[e.mapLabel] : p), 11, Z)
133
133
  ])
134
134
  ]),
135
135
  _: 2
@@ -140,9 +140,9 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
140
140
  style: c(e.separatorStyle)
141
141
  }, [
142
142
  t(E)(e.separator) ? (a(), n(C, { key: 0 }, [
143
- q(p(e.separator), 1)
144
- ], 64)) : (a(), g(N(e.separator), { key: 1 }))
145
- ], 6)) : I("", !0)
143
+ q(i(e.separator), 1)
144
+ ], 64)) : (a(), g(I(e.separator), { key: 1 }))
145
+ ], 6)) : L("", !0)
146
146
  ], 64))), 128))
147
147
  ])
148
148
  ], 6)
@@ -153,5 +153,5 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
153
153
  }
154
154
  });
155
155
  export {
156
- pe as default
156
+ ie as default
157
157
  };
@@ -15,11 +15,11 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
15
15
  index: number;
16
16
  }): any;
17
17
  };
18
- emit: (event: "expand" | "choose", ...args: any[]) => void;
18
+ emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
19
19
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
20
20
  props: {
21
- readonly onExpand?: ((...args: any[]) => any) | undefined;
22
- readonly onChoose?: ((...args: any[]) => any) | undefined;
21
+ readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
22
+ readonly onChoose?: ((args_0: T) => any) | undefined;
23
23
  type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
24
24
  data?: string | T[] | undefined;
25
25
  prefix?: string | undefined;
@@ -50,7 +50,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
50
50
  index: number;
51
51
  }): any;
52
52
  };
53
- emit: (event: "expand" | "choose", ...args: any[]) => void;
53
+ emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
54
54
  }>) => VNode & {
55
55
  __ctx?: Awaited<typeof __VLS_setup>;
56
56
  }) & ( Plugin & (new (...args: any[]) => {
@@ -127,8 +127,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
127
127
  placement: TooltipPlacement;
128
128
  show: boolean;
129
129
  dot: boolean;
130
- count: any;
131
130
  iconType: "ellipsis" | "success" | "warning" | "question";
131
+ count: any;
132
132
  showZero: boolean;
133
133
  overflowCount: number;
134
134
  numberStyle: CSSProperties;
@@ -70,8 +70,8 @@ declare const ApLabel: {
70
70
  placement: TooltipPlacement;
71
71
  show: boolean;
72
72
  dot: boolean;
73
- count: any;
74
73
  iconType: "ellipsis" | "success" | "warning" | "question";
74
+ count: any;
75
75
  showZero: boolean;
76
76
  overflowCount: number;
77
77
  numberStyle: CSSProperties;
@@ -152,8 +152,8 @@ declare const ApLabel: {
152
152
  placement: TooltipPlacement;
153
153
  show: boolean;
154
154
  dot: boolean;
155
- count: any;
156
155
  iconType: "ellipsis" | "success" | "warning" | "question";
156
+ count: any;
157
157
  showZero: boolean;
158
158
  overflowCount: number;
159
159
  numberStyle: CSSProperties;
@@ -231,8 +231,8 @@ declare const ApLabel: {
231
231
  placement: TooltipPlacement;
232
232
  show: boolean;
233
233
  dot: boolean;
234
- count: any;
235
234
  iconType: "ellipsis" | "success" | "warning" | "question";
235
+ count: any;
236
236
  showZero: boolean;
237
237
  overflowCount: number;
238
238
  numberStyle: CSSProperties;
@@ -69,13 +69,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
69
69
  }>> & Readonly<{}>, {
70
70
  layout: "horizontal" | "vertical";
71
71
  tooltip: boolean;
72
+ labelAlign: "left" | "right";
72
73
  major: string | number | VNode<RendererNode, RendererElement, {
73
74
  [key: string]: any;
74
75
  }> | (() => VNode);
75
76
  minor: string | number | VNode<RendererNode, RendererElement, {
76
77
  [key: string]: any;
77
78
  }> | (() => VNode);
78
- labelAlign: "left" | "right";
79
79
  labelValues: ApLadderLabelValue[];
80
80
  majorColor: string;
81
81
  minorColor: string;
@@ -38,13 +38,13 @@ declare const ApLadder: {
38
38
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
39
39
  layout: "horizontal" | "vertical";
40
40
  tooltip: boolean;
41
+ labelAlign: "left" | "right";
41
42
  major: string | number | VNode<RendererNode, RendererElement, {
42
43
  [key: string]: any;
43
44
  }> | (() => VNode);
44
45
  minor: string | number | VNode<RendererNode, RendererElement, {
45
46
  [key: string]: any;
46
47
  }> | (() => VNode);
47
- labelAlign: "left" | "right";
48
48
  labelValues: ApLadderLabelValue[];
49
49
  majorColor: string;
50
50
  minorColor: string;
@@ -91,13 +91,13 @@ declare const ApLadder: {
91
91
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
92
92
  layout: "horizontal" | "vertical";
93
93
  tooltip: boolean;
94
+ labelAlign: "left" | "right";
94
95
  major: string | number | VNode<RendererNode, RendererElement, {
95
96
  [key: string]: any;
96
97
  }> | (() => VNode);
97
98
  minor: string | number | VNode<RendererNode, RendererElement, {
98
99
  [key: string]: any;
99
100
  }> | (() => VNode);
100
- labelAlign: "left" | "right";
101
101
  labelValues: ApLadderLabelValue[];
102
102
  majorColor: string;
103
103
  minorColor: string;
@@ -141,13 +141,13 @@ declare const ApLadder: {
141
141
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
142
142
  layout: "horizontal" | "vertical";
143
143
  tooltip: boolean;
144
+ labelAlign: "left" | "right";
144
145
  major: string | number | VNode<RendererNode, RendererElement, {
145
146
  [key: string]: any;
146
147
  }> | (() => VNode);
147
148
  minor: string | number | VNode<RendererNode, RendererElement, {
148
149
  [key: string]: any;
149
150
  }> | (() => VNode);
150
- labelAlign: "left" | "right";
151
151
  labelValues: ApLadderLabelValue[];
152
152
  majorColor: string;
153
153
  minorColor: string;
@@ -1,19 +1,19 @@
1
- import { defineComponent as I, computed as _, ref as p, createVNode as g, watch as x, createBlock as S, openBlock as Y, unref as w, mergeProps as j, withCtx as z, createElementVNode as M, normalizeClass as W } from "vue";
1
+ import { defineComponent as I, computed as x, ref as w, createVNode as N, watch as S, createBlock as Y, openBlock as j, unref as y, mergeProps as z, withCtx as M, createElementVNode as W, normalizeClass as q } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import q from "./icons/line-down.vue.mjs";
4
- import { ApBatchActionGroup as H } from "../ap-batch-action-group/index.mjs";
3
+ import H from "./icons/line-down.vue.mjs";
4
+ import { ApBatchActionGroup as J } from "../ap-batch-action-group/index.mjs";
5
5
  import "./components/main-button-content.vue.mjs";
6
6
  import "./components/menu-list-content.vue.mjs";
7
- import { useViewProvide as J } from "./hooks/use-view-provide.mjs";
8
- import { useInjectApTable as Q } from "../../ap-table/context.mjs";
9
- import { SYSTEM_VIEW_KEY as y } from "./utils/enum.mjs";
10
- import { isValid as X } from "@aplus-frontend/utils";
11
- import { useGlobalConfig as Z } from "../../config-provider/hooks/use-global-config.mjs";
12
- import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
13
- import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
14
- import R from "./components/main-button-content.vue2.mjs";
15
- import C from "./components/menu-list-content.vue2.mjs";
16
- const pe = /* @__PURE__ */ I({
7
+ import { useViewProvide as Q } from "./hooks/use-view-provide.mjs";
8
+ import { useInjectApTable as X } from "../../ap-table/context.mjs";
9
+ import { SYSTEM_VIEW_KEY as V } from "./utils/enum.mjs";
10
+ import { isValid as Z } from "@aplus-frontend/utils";
11
+ import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
12
+ import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import { useLocale as R } from "../../config-provider/hooks/use-locale.mjs";
14
+ import C from "./components/main-button-content.vue2.mjs";
15
+ import O from "./components/menu-list-content.vue2.mjs";
16
+ const we = /* @__PURE__ */ I({
17
17
  name: "ApView",
18
18
  __name: "ap-view",
19
19
  props: {
@@ -25,26 +25,26 @@ const pe = /* @__PURE__ */ I({
25
25
  }
26
26
  },
27
27
  setup(A) {
28
- const f = A, E = Z("viewCacheOption"), {
29
- b: V
30
- } = h("ap-view"), {
28
+ const f = A, E = h("viewCacheOption"), {
29
+ b: d
30
+ } = U("ap-view"), {
31
31
  t: F
32
- } = U(), d = _(() => ({
33
- viewKey: y,
32
+ } = R(), K = x(() => ({
33
+ viewKey: V,
34
34
  viewName: F("ap.apView.systemView")
35
35
  })), {
36
36
  getSearchFormValues: L,
37
37
  setSearchFormValues: P,
38
38
  submit: T,
39
39
  reset: k
40
- } = Q(), B = p(!1), K = p(!1), r = p("system"), G = {
40
+ } = X(), B = w(!1), b = w(!1), p = w(""), G = {
41
41
  dropdownType: "dropdown",
42
- content: g(R, {
42
+ content: N(C, {
43
43
  maxViewNum: f.maxViewNum
44
44
  }, null)
45
- }, s = p([d.value]), $ = _(() => s.value.map((e) => ({
45
+ }, s = w([K.value]), $ = x(() => s.value.map((e) => ({
46
46
  id: e.viewKey,
47
- content: g(C, {
47
+ content: N(O, {
48
48
  view: e
49
49
  }, null)
50
50
  }))), n = {
@@ -56,9 +56,16 @@ const pe = /* @__PURE__ */ I({
56
56
  }, t = {
57
57
  ...E.value,
58
58
  ...f.viewCacheOption
59
- }, N = () => {
59
+ }, _ = () => {
60
60
  const e = s.value.find((a) => a.isDefault);
61
- return (e == null ? void 0 : e.viewKey) ?? y;
61
+ return (e == null ? void 0 : e.viewKey) ?? V;
62
+ }, u = (e) => {
63
+ p.value = e;
64
+ const a = s.value.find((o) => o.viewKey === p.value);
65
+ a && setTimeout(() => {
66
+ var o, i, l, r;
67
+ a.viewKey === V ? (o = n.reset) == null || o.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, ((i = a.viewConfig) == null ? void 0 : i.searchForm) ?? {}), (r = n.submit) == null || r.call(n));
68
+ });
62
69
  }, c = {
63
70
  getViewList: async (e) => {
64
71
  var a;
@@ -68,26 +75,26 @@ const pe = /* @__PURE__ */ I({
68
75
  } = e, i = await ((a = t == null ? void 0 : t.getViewList) == null ? void 0 : a.call(t, {
69
76
  tableKey: o
70
77
  }));
71
- return s.value = [d.value, ...i ?? []], r.value = N(), s.value;
78
+ return s.value = [K.value, ...i ?? []], u(_()), s.value;
72
79
  } catch {
73
- return s.value = [d.value], r.value = y, s.value;
80
+ return s.value = [K.value], u(V), s.value;
74
81
  }
75
82
  },
76
83
  addView: async (e) => {
77
- var u;
84
+ var m;
78
85
  const {
79
86
  tableKey: a,
80
87
  viewKey: o,
81
88
  viewName: i,
82
89
  isDefault: l,
83
- viewConfig: m
90
+ viewConfig: r
84
91
  } = e;
85
- await ((u = t == null ? void 0 : t.addView) == null ? void 0 : u.call(t, {
92
+ await ((m = t == null ? void 0 : t.addView) == null ? void 0 : m.call(t, {
86
93
  tableKey: a,
87
94
  viewKey: o,
88
95
  viewName: i,
89
96
  isDefault: l,
90
- viewConfig: m
97
+ viewConfig: r
91
98
  })), l && (s.value = s.value.map((v) => ({
92
99
  ...v,
93
100
  isDefault: !1
@@ -95,8 +102,8 @@ const pe = /* @__PURE__ */ I({
95
102
  viewKey: o,
96
103
  viewName: i,
97
104
  isDefault: l,
98
- viewConfig: m
99
- }], r.value = o;
105
+ viewConfig: r
106
+ }], u(o);
100
107
  },
101
108
  changeView: async (e) => {
102
109
  var v;
@@ -105,20 +112,20 @@ const pe = /* @__PURE__ */ I({
105
112
  viewKey: o,
106
113
  viewName: i,
107
114
  isDefault: l,
108
- viewConfig: m
115
+ viewConfig: r
109
116
  } = e;
110
117
  await ((v = t == null ? void 0 : t.changeView) == null ? void 0 : v.call(t, {
111
118
  tableKey: a,
112
119
  viewKey: o,
113
120
  viewName: i,
114
121
  isDefault: l,
115
- viewConfig: m
116
- })), l && (s.value = s.value.map((b) => ({
117
- ...b,
122
+ viewConfig: r
123
+ })), l && (s.value = s.value.map((g) => ({
124
+ ...g,
118
125
  isDefault: !1
119
126
  })));
120
- const u = s.value.find((b) => b.viewKey === o);
121
- u && (u.viewName = i, u.isDefault = l, u.viewConfig = m), r.value = o;
127
+ const m = s.value.find((g) => g.viewKey === o);
128
+ m && (m.viewName = i, m.isDefault = l, m.viewConfig = r), u(o);
122
129
  },
123
130
  removeView: async (e) => {
124
131
  var i;
@@ -129,49 +136,44 @@ const pe = /* @__PURE__ */ I({
129
136
  await ((i = t == null ? void 0 : t.removeView) == null ? void 0 : i.call(t, {
130
137
  tableKey: a,
131
138
  viewKey: o
132
- })), s.value = s.value.filter((l) => l.viewKey !== o), o === r.value && (r.value = N());
139
+ })), s.value = s.value.filter((l) => l.viewKey !== o), o === p.value && u(_());
133
140
  }
134
141
  }, D = {
135
142
  tableKey: f.tableKey,
136
- currentViewKey: r,
143
+ currentViewKey: p,
144
+ changeCurrentViewKey: u,
137
145
  popoverOpen: B,
138
- menuOpen: K,
146
+ menuOpen: b,
139
147
  viewList: s,
140
148
  viewListCRUD: c,
141
149
  saveDataSource: n
142
150
  };
143
- return x(r, (e) => {
144
- const a = s.value.find((o) => o.viewKey === e);
145
- a && setTimeout(() => {
146
- var o, i, l, m;
147
- a.viewKey === y ? (o = n.reset) == null || o.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, ((i = a.viewConfig) == null ? void 0 : i.searchForm) ?? {}), (m = n.submit) == null || m.call(n));
148
- });
149
- }), J(D), x(() => f.tableKey, (e) => {
151
+ return Q(D), S(() => f.tableKey, (e) => {
150
152
  var a;
151
- X(e) && ((a = c == null ? void 0 : c.getViewList) == null || a.call(c, {
153
+ Z(e) && ((a = c == null ? void 0 : c.getViewList) == null || a.call(c, {
152
154
  tableKey: e
153
155
  }));
154
156
  }, {
155
157
  immediate: !0
156
- }), (e, a) => (Y(), S(w(H), j({
158
+ }), (e, a) => (j(), Y(y(J), z({
157
159
  ...e.$attrs
158
160
  }, {
159
- open: K.value,
160
- "onUpdate:open": a[0] || (a[0] = (o) => K.value = o),
161
- class: [w(V)()],
161
+ open: b.value,
162
+ "onUpdate:open": a[0] || (a[0] = (o) => b.value = o),
163
+ class: [y(d)()],
162
164
  "button-props": G,
163
165
  "menu-list": $.value,
164
- "overlay-class-name": [w(V)("overlay")],
166
+ "overlay-class-name": [y(d)("overlay")],
165
167
  trigger: "click",
166
168
  placement: "bottom"
167
169
  }), {
168
- icon: z(() => [M("div", {
169
- class: W([w(V)("icon")])
170
- }, [g(q)], 2)]),
170
+ icon: M(() => [W("div", {
171
+ class: q([y(d)("icon")])
172
+ }, [N(H)], 2)]),
171
173
  _: 1
172
174
  }, 16, ["open", "class", "menu-list", "overlay-class-name"]));
173
175
  }
174
176
  });
175
177
  export {
176
- pe as default
178
+ we as default
177
179
  };