@aplus-frontend/ui 0.6.0-beta.3 → 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 (189) 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/editable/form-item.vue.mjs +91 -83
  17. package/es/src/ap-grid/editable/index.vue.mjs +86 -78
  18. package/es/src/ap-grid/index.vue.mjs +39 -35
  19. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  20. package/es/src/ap-table/ap-table.vue2.mjs +22 -18
  21. package/es/src/ap-table/constants.d.ts +30 -30
  22. package/es/src/ap-table/utils.d.ts +14 -14
  23. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  24. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +25 -25
  25. package/es/src/business/ap-expand-alert/index.d.ts +4 -4
  26. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  27. package/es/src/business/ap-label/index.d.ts +3 -3
  28. package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
  29. package/es/src/business/ap-ladder/index.d.ts +3 -3
  30. package/es/src/business/ap-status/interface.d.ts +1 -1
  31. package/es/src/business/ap-view/ap-view.vue2.mjs +60 -58
  32. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
  33. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  34. package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  35. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  36. package/es/src/check-card/group.vue.d.ts +1 -1
  37. package/es/src/config-provider/config-provider-props.d.ts +0 -5
  38. package/es/src/config-provider/config-provider-props.mjs +0 -4
  39. package/es/src/config-provider/config-provider.d.ts +0 -138
  40. package/es/src/config-provider/config-provider.mjs +21 -26
  41. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
  42. package/es/src/config-provider/index.d.ts +0 -652
  43. package/es/src/editable-table/form-item.vue.d.ts +2 -14
  44. package/es/src/editable-table/form-item.vue.mjs +84 -76
  45. package/es/src/editable-table/index.vue.d.ts +2 -16
  46. package/es/src/editable-table/index.vue.mjs +91 -83
  47. package/es/src/editable-table/interface.d.ts +7 -0
  48. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  49. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  50. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  51. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  52. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  53. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  54. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  55. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  56. package/lib/src/ap-form/item/index.vue.d.ts +1 -1
  57. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  58. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  59. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  60. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  61. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
  62. package/lib/src/ap-form/render/item.vue.d.ts +1 -1
  63. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  64. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  65. package/lib/src/ap-grid/index.vue.js +1 -1
  66. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
  67. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  68. package/lib/src/ap-table/constants.d.ts +30 -30
  69. package/lib/src/ap-table/utils.d.ts +14 -14
  70. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
  71. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  72. package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
  73. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  74. package/lib/src/business/ap-label/index.d.ts +3 -3
  75. package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
  76. package/lib/src/business/ap-ladder/index.d.ts +3 -3
  77. package/lib/src/business/ap-status/interface.d.ts +1 -1
  78. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  79. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  80. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
  81. package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
  82. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  83. package/lib/src/check-card/group.vue.d.ts +1 -1
  84. package/lib/src/config-provider/config-provider-props.d.ts +0 -5
  85. package/lib/src/config-provider/config-provider-props.js +1 -1
  86. package/lib/src/config-provider/config-provider.d.ts +0 -138
  87. package/lib/src/config-provider/config-provider.js +1 -1
  88. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
  89. package/lib/src/config-provider/index.d.ts +0 -652
  90. package/lib/src/editable-table/form-item.vue.d.ts +2 -14
  91. package/lib/src/editable-table/form-item.vue.js +1 -1
  92. package/lib/src/editable-table/index.vue.d.ts +2 -16
  93. package/lib/src/editable-table/index.vue.js +1 -1
  94. package/lib/src/editable-table/interface.d.ts +7 -0
  95. package/package.json +1 -1
  96. package/theme/antd-global-overwrite/admin/index.css +3 -0
  97. package/theme/antd-global-overwrite/admin/index.less +1 -0
  98. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  99. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  100. package/theme/antd-global-overwrite/aplus/index.css +3 -0
  101. package/theme/antd-global-overwrite/aplus/index.less +1 -0
  102. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  103. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  104. package/theme/ap-action/item-dropdown.css +17 -0
  105. package/theme/ap-action/item.css +17 -0
  106. package/theme/ap-appendix/ap-appendix.css +17 -0
  107. package/theme/ap-attachment/ap-attachment.css +17 -0
  108. package/theme/ap-batch-action/ap-batch-action.css +17 -0
  109. package/theme/ap-button/ap-button.css +17 -0
  110. package/theme/ap-card/ap-card.css +17 -0
  111. package/theme/ap-descriptions/ap-descriptions.css +17 -0
  112. package/theme/ap-download/ap-download.css +17 -0
  113. package/theme/ap-expand-alert/ap-expand-alert.css +17 -0
  114. package/theme/ap-field/checkbox.css +17 -0
  115. package/theme/ap-field/index.css +17 -0
  116. package/theme/ap-field/number.css +17 -0
  117. package/theme/ap-field/radio.css +17 -0
  118. package/theme/ap-field/text-area.css +17 -0
  119. package/theme/ap-form/ap-form-item-group.css +17 -0
  120. package/theme/ap-form/ap-form-item.css +22 -2
  121. package/theme/ap-form/ap-form-item.less +9 -3
  122. package/theme/ap-form/drawer-form.css +17 -0
  123. package/theme/ap-form/index.css +22 -2
  124. package/theme/ap-form/item-text-group.css +17 -0
  125. package/theme/ap-form/item-text.css +17 -0
  126. package/theme/ap-form/modal-form.css +17 -0
  127. package/theme/ap-form/search-form-sorter.css +17 -0
  128. package/theme/ap-form/search-form.css +22 -2
  129. package/theme/ap-grid/editable.css +17 -0
  130. package/theme/ap-grid/index.css +39 -2
  131. package/theme/ap-grid/index.less +1 -0
  132. package/theme/ap-group-search/ap-extension-select.css +17 -0
  133. package/theme/ap-group-search/ap-group-search.css +17 -0
  134. package/theme/ap-group-search/ap-popover-select.css +17 -0
  135. package/theme/ap-image/ap-image.css +17 -0
  136. package/theme/ap-input-radio/ap-input-radio.css +17 -0
  137. package/theme/ap-label/ap-label.css +17 -0
  138. package/theme/ap-ladder/ap-ladder.css +17 -0
  139. package/theme/ap-layout/ap-info-layout.css +17 -0
  140. package/theme/ap-list/index.css +17 -0
  141. package/theme/ap-product-info/ap-product-info.css +17 -0
  142. package/theme/ap-select-layout/ap-select-layout.css +17 -0
  143. package/theme/ap-size-input/ap-size-input.css +17 -0
  144. package/theme/ap-status/ap-status.css +17 -0
  145. package/theme/ap-summary/index.css +17 -0
  146. package/theme/ap-table/ap-table-index.css +17 -0
  147. package/theme/ap-table/ap-table-paragraph-ellipsis.css +17 -0
  148. package/theme/ap-table/ap-table.css +39 -2
  149. package/theme/ap-table/ap-table.less +1 -0
  150. package/theme/ap-table/setting/index.css +17 -0
  151. package/theme/ap-table/setting/modal.css +17 -0
  152. package/theme/ap-table/setting/select-group.css +17 -0
  153. package/theme/ap-table/setting/sortable-item-meta.css +17 -0
  154. package/theme/ap-table/setting/sortable-item.css +17 -0
  155. package/theme/ap-table/setting/sorter.css +17 -0
  156. package/theme/ap-table-modal/index.css +39 -2
  157. package/theme/ap-tag/ap-tag-group.css +17 -0
  158. package/theme/ap-tag/ap-tag.css +18 -1
  159. package/theme/ap-tag/ap-tag.less +1 -1
  160. package/theme/ap-title/ap-title.css +17 -0
  161. package/theme/ap-upload/index.css +17 -0
  162. package/theme/ap-upload/multiple-file.css +17 -0
  163. package/theme/ap-upload/picture.css +17 -0
  164. package/theme/ap-upload/single-file.css +17 -0
  165. package/theme/ap-upload/upload.css +17 -0
  166. package/theme/ap-upload-single/index.css +17 -0
  167. package/theme/ap-view/ap-view.css +17 -0
  168. package/theme/batch-input-group/index.css +17 -0
  169. package/theme/batch-input-group/popover-input.css +17 -0
  170. package/theme/check-card/index.css +17 -0
  171. package/theme/editable-table/index.css +22 -2
  172. package/theme/full-screen/index.css +17 -0
  173. package/theme/index.css +149 -3
  174. package/theme/index.less +1 -0
  175. package/theme/mask/index.css +17 -0
  176. package/theme/mixins/mixins.css +17 -0
  177. package/theme/mixins/mixins.less +28 -0
  178. package/theme/scroll-bar/index.css +17 -0
  179. package/theme/scroll-view/index.css +17 -0
  180. package/theme/splitter/index.css +17 -0
  181. package/theme/text/group.css +17 -0
  182. package/theme/text/index.css +17 -0
  183. package/theme/ui-mode.css +92 -0
  184. package/theme/ui-mode.less +93 -0
  185. package/theme/work-order-modal/index.css +17 -0
  186. package/es/src/config-provider/css-var.d.ts +0 -139
  187. package/es/src/config-provider/css-var.mjs +0 -278
  188. package/lib/src/config-provider/css-var.d.ts +0 -139
  189. package/lib/src/config-provider/css-var.js +0 -1
@@ -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
  };
@@ -1,107 +1,113 @@
1
- import { defineComponent as A, ref as E, watch as G, createElementBlock as u, openBlock as p, normalizeClass as M, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as v, createVNode as a, withModifiers as O, withCtx as f } from "vue";
1
+ import { defineComponent as G, ref as S, watch as O, createElementBlock as u, openBlock as p, normalizeClass as C, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as f, createVNode as a, withModifiers as P, withCtx as v } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import { useViewInject as P } from "../hooks/use-view-provide.mjs";
4
- import { SYSTEM_VIEW_KEY as b } from "../utils/enum.mjs";
5
- import { Space as z, Popconfirm as W } from "@aplus-frontend/antdv";
6
- import q from "../icons/line-delete.vue.mjs";
3
+ import { useViewInject as W } from "../hooks/use-view-provide.mjs";
4
+ import { SYSTEM_VIEW_KEY as E } from "../utils/enum.mjs";
5
+ import { Space as M, Popconfirm as q } from "@aplus-frontend/antdv";
6
+ import H from "../icons/line-delete.vue.mjs";
7
7
  import "../../../ap-tag/index.mjs";
8
8
  import "../../../ap-form/ap-form.vue.mjs";
9
- import { ApField as H } from "../../../ap-field/index.mjs";
10
- import { useNamespace as J } from "../../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as Q } from "../../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as X } from "../../../config-provider/hooks/use-global-config.mjs";
13
- import Z from "../../../ap-tag/ap-tag.vue.mjs";
14
- import C from "../../../ap-form/ap-form.vue2.mjs";
15
- const D = { class: "menu-list-content-name" }, R = ["title"], L = {
9
+ import { ApField as J } from "../../../ap-field/index.mjs";
10
+ import { useNamespace as Q } from "../../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as X } from "../../../config-provider/hooks/use-locale.mjs";
12
+ import { useGlobalConfig as Z } from "../../../config-provider/hooks/use-global-config.mjs";
13
+ import D from "../../../ap-tag/ap-tag.vue.mjs";
14
+ import b from "../../../ap-form/ap-form.vue2.mjs";
15
+ const R = { class: "menu-list-content-name" }, L = ["title"], U = {
16
16
  key: 0,
17
17
  class: "menu-list-content-default"
18
- }, U = { class: "menu-list-content-action-delete" }, ee = { class: "menu-list-content-edit" }, we = /* @__PURE__ */ A({
18
+ }, ee = { class: "menu-list-content-action-delete" }, te = { class: "menu-list-content-edit" }, _e = /* @__PURE__ */ G({
19
19
  __name: "menu-list-content",
20
20
  props: {
21
21
  view: {}
22
22
  },
23
- setup($) {
24
- const { b: d } = J("ap-view"), { t: l } = Q(), i = $, I = {
23
+ setup(z) {
24
+ const { b: d } = Q("ap-view"), { t: l } = X(), n = z, $ = {
25
25
  aplus: "#2ed1a3",
26
26
  admin: "#34b77c"
27
- }, T = X("uiMode"), { currentViewKey: y, viewListCRUD: t, tableKey: w, menuOpen: V } = P(), c = E(!1), x = E(), B = () => {
28
- y.value = i.view.viewKey, V.value = !1;
29
- }, F = () => {
30
- var n;
31
- (n = t == null ? void 0 : t.changeView) == null || n.call(t, {
32
- ...i.view,
27
+ }, I = Z("uiMode"), {
28
+ currentViewKey: T,
29
+ changeCurrentViewKey: B,
30
+ viewListCRUD: t,
31
+ tableKey: w,
32
+ menuOpen: y
33
+ } = W(), c = S(!1), V = S(), F = () => {
34
+ B(n.view.viewKey), y.value = !1;
35
+ }, Y = () => {
36
+ var i;
37
+ (i = t == null ? void 0 : t.changeView) == null || i.call(t, {
38
+ ...n.view,
33
39
  tableKey: w,
34
40
  isDefault: !0
35
41
  });
36
- }, Y = () => {
37
- var n;
38
- (n = t == null ? void 0 : t.removeView) == null || n.call(t, {
42
+ }, j = () => {
43
+ var i;
44
+ (i = t == null ? void 0 : t.removeView) == null || i.call(t, {
39
45
  tableKey: w,
40
- viewKey: i.view.viewKey
46
+ viewKey: n.view.viewKey
41
47
  });
42
- }, j = async () => {
48
+ }, A = async () => {
43
49
  var o, m, r;
44
- const n = await ((m = (o = x.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
50
+ const i = await ((m = (o = V.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
45
51
  (r = t == null ? void 0 : t.changeView) == null || r.call(t, {
46
- ...i.view,
52
+ ...n.view,
47
53
  tableKey: w,
48
- viewName: (n == null ? void 0 : n.viewName) || i.view.viewName
54
+ viewName: (i == null ? void 0 : i.viewName) || n.view.viewName
49
55
  }), c.value = !1;
50
56
  };
51
- return G(
52
- () => V.value,
53
- (n) => {
54
- n && (c.value = !1);
57
+ return O(
58
+ () => y.value,
59
+ (i) => {
60
+ i && (c.value = !1);
55
61
  }
56
- ), (n, o) => {
57
- var m, r, N, h, K, S, g;
62
+ ), (i, o) => {
63
+ var m, r, x, N, h, K, g;
58
64
  return c.value === !1 ? (p(), u("div", {
59
65
  key: 0,
60
- class: M({
66
+ class: C({
61
67
  [e(d)("menu-list-content")]: !0,
62
- [e(d)("menu-list-content-active")]: ((m = i.view) == null ? void 0 : m.viewKey) === e(y)
68
+ [e(d)("menu-list-content-active")]: ((m = n.view) == null ? void 0 : m.viewKey) === e(T)
63
69
  }),
64
- onClick: B
70
+ onClick: F
65
71
  }, [
66
- s("div", D, [
72
+ s("div", R, [
67
73
  s("span", {
68
- title: (r = i.view) == null ? void 0 : r.viewName
69
- }, v((N = i.view) == null ? void 0 : N.viewName), 9, R)
74
+ title: (r = n.view) == null ? void 0 : r.viewName
75
+ }, f((x = n.view) == null ? void 0 : x.viewName), 9, L)
70
76
  ]),
71
- ((h = i.view) == null ? void 0 : h.viewKey) !== e(b) && ((K = i.view) != null && K.isDefault) ? (p(), u("div", L, [
72
- a(e(Z), {
77
+ ((N = n.view) == null ? void 0 : N.viewKey) !== e(E) && ((h = n.view) != null && h.isDefault) ? (p(), u("div", U, [
78
+ a(e(D), {
73
79
  text: e(l)("ap.apView.default"),
74
80
  size: "small",
75
- color: I[e(T) ?? "aplus"]
81
+ color: $[e(I) ?? "aplus"]
76
82
  }, null, 8, ["text", "color"])
77
83
  ])) : k("", !0),
78
- ((S = i.view) == null ? void 0 : S.viewKey) !== e(b) ? (p(), u("div", {
84
+ ((K = n.view) == null ? void 0 : K.viewKey) !== e(E) ? (p(), u("div", {
79
85
  key: 1,
80
86
  class: "menu-list-content-action",
81
- onClick: o[1] || (o[1] = O(() => {
87
+ onClick: o[1] || (o[1] = P(() => {
82
88
  }, ["stop"]))
83
89
  }, [
84
- a(e(z), { size: 8 }, {
85
- default: f(() => {
90
+ a(e(M), { size: 8 }, {
91
+ default: v(() => {
86
92
  var _;
87
93
  return [
88
94
  s("div", {
89
95
  class: "menu-list-content-action-text",
90
- onClick: o[0] || (o[0] = (te) => c.value = !0)
91
- }, v(e(l)("ap.apView.rename")), 1),
92
- (_ = i.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
96
+ onClick: o[0] || (o[0] = (ne) => c.value = !0)
97
+ }, f(e(l)("ap.apView.rename")), 1),
98
+ (_ = n.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
93
99
  key: 0,
94
100
  class: "menu-list-content-action-text",
95
- onClick: F
96
- }, v(e(l)("ap.apView.setDefault")), 1)),
97
- s("div", U, [
98
- a(e(W), {
101
+ onClick: Y
102
+ }, f(e(l)("ap.apView.setDefault")), 1)),
103
+ s("div", ee, [
104
+ a(e(q), {
99
105
  title: e(l)("ap.apView.deleteTip"),
100
106
  "ok-text": e(l)("ap.apView.ok"),
101
- onConfirm: Y
107
+ onConfirm: j
102
108
  }, {
103
- default: f(() => [
104
- a(q)
109
+ default: v(() => [
110
+ a(H)
105
111
  ]),
106
112
  _: 1
107
113
  }, 8, ["title", "ok-text"])
@@ -113,33 +119,33 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
113
119
  ])) : k("", !0)
114
120
  ], 2)) : (p(), u("div", {
115
121
  key: 1,
116
- class: M([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
122
+ class: C([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
117
123
  }, [
118
- a(C, {
124
+ a(b, {
119
125
  ref_key: "formRef",
120
- ref: x,
126
+ ref: V,
121
127
  "initial-values": {
122
- viewName: (g = i.view) == null ? void 0 : g.viewName
128
+ viewName: (g = n.view) == null ? void 0 : g.viewName
123
129
  }
124
130
  }, {
125
- default: f(() => [
126
- s("div", ee, [
127
- a(e(z), { size: 8 }, {
128
- default: f(() => [
129
- a(C.FormItem, { name: "viewName" }, {
130
- default: f(() => [
131
- a(e(H).Text, { maxlength: 20 })
131
+ default: v(() => [
132
+ s("div", te, [
133
+ a(e(M), { size: 8 }, {
134
+ default: v(() => [
135
+ a(b.FormItem, { name: "viewName" }, {
136
+ default: v(() => [
137
+ a(e(J).Text, { maxlength: 20 })
132
138
  ]),
133
139
  _: 1
134
140
  }),
135
141
  s("div", {
136
142
  class: "menu-list-content-action-text",
137
- onClick: j
138
- }, v(e(l)("ap.apView.save")), 1),
143
+ onClick: A
144
+ }, f(e(l)("ap.apView.save")), 1),
139
145
  s("div", {
140
146
  class: "menu-list-content-action-text",
141
147
  onClick: o[2] || (o[2] = (_) => c.value = !1)
142
- }, v(e(l)("ap.apView.cancel")), 1)
148
+ }, f(e(l)("ap.apView.cancel")), 1)
143
149
  ]),
144
150
  _: 1
145
151
  })
@@ -152,5 +158,5 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
152
158
  }
153
159
  });
154
160
  export {
155
- we as default
161
+ _e as default
156
162
  };
@@ -3,6 +3,7 @@ import { SaveDataSource, ViewCacheOption, ViewListModel } from '../interface';
3
3
  type DataModel = {
4
4
  tableKey: string;
5
5
  currentViewKey: Ref<string>;
6
+ changeCurrentViewKey: (key: string) => void;
6
7
  popoverOpen: Ref<boolean>;
7
8
  menuOpen: Ref<boolean>;
8
9
  viewList: Ref<ViewListModel[]>;
@@ -3,12 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
4
4
  trim: boolean;
5
5
  disabled: boolean;
6
- bordered: boolean;
7
6
  hasFeedback: boolean;
8
7
  colon: boolean;
9
8
  autoLink: boolean;
10
9
  required: boolean;
11
10
  validateFirst: boolean;
11
+ bordered: boolean;
12
12
  field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
13
13
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
@@ -43,12 +43,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
43
43
  readonly onMousedown?: MouseEventHandler | undefined;
44
44
  readonly value?: string | number | undefined;
45
45
  readonly disabled?: boolean | undefined;
46
- readonly bordered?: boolean | undefined;
47
46
  readonly prefixCls?: string | undefined;
48
47
  readonly name?: string | undefined;
49
48
  readonly loading?: boolean | undefined;
50
49
  readonly autofocus?: boolean | undefined;
51
50
  readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
51
+ readonly bordered?: boolean | undefined;
52
52
  readonly suffix?: any;
53
53
  readonly focused?: boolean | undefined;
54
54
  readonly placeholder?: string | number | undefined;
@@ -19,8 +19,8 @@ declare const __VLS_component: DefineComponent<CheckCardGroupProps, {}, {}, {},
19
19
  value: CheckCardValueType | CheckCardValueType[];
20
20
  multiple: boolean;
21
21
  disabled: boolean;
22
- bordered: boolean;
23
22
  loading: boolean;
23
+ bordered: boolean;
24
24
  defaultValue: CheckCardValueType | CheckCardValueType[];
25
25
  stopPropagation: boolean | ((event: MouseEvent) => boolean);
26
26
  indicatorSize: number;
@@ -1,7 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
3
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
4
- import { CssVarType } from './css-var';
5
4
  import { ViewCacheOption } from '../business';
6
5
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
7
6
  import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
@@ -156,10 +155,6 @@ export declare const configProviderProps: () => {
156
155
  type: PropType<downloadCenterTriggerConfig>;
157
156
  default: () => {};
158
157
  };
159
- cssVar: {
160
- type: PropType<CssVarType>;
161
- default: () => {};
162
- };
163
158
  exportField: {
164
159
  type: PropType<ExportField>;
165
160
  default: boolean;
@@ -32,10 +32,6 @@ const p = () => ({
32
32
  type: Object,
33
33
  default: () => ({})
34
34
  },
35
- cssVar: {
36
- type: Object,
37
- default: () => ({})
38
- },
39
35
  exportField: {
40
36
  type: [Object, Boolean],
41
37
  default: !1