@web-utils/form-ui 1.0.0-beta94 → 1.0.0-beta95

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 (219) hide show
  1. package/address-input/index.d.ts +2 -2
  2. package/awesome-button/index.d.ts +6 -4
  3. package/capsule-tab/index.d.ts +2 -2
  4. package/card/index.d.ts +2 -2
  5. package/chunks/{6dpdFLpv2.mjs → B0i3ywbn2.mjs} +35 -44
  6. package/chunks/{Cv1iIzzy2.mjs → BanS-yUY2.mjs} +1 -1
  7. package/chunks/{BZw-uhPj.mjs → C23Qaggp.mjs} +27 -26
  8. package/chunks/{n1KViU9y2.mjs → CIVnqVAQ2.mjs} +12 -9
  9. package/chunks/{JUkvPXqc.mjs → CZxWWk4N.mjs} +8 -8
  10. package/chunks/{BKdkhZkk2.mjs → D7kTwnJK2.mjs} +1 -1
  11. package/chunks/{C6l7TFPU.mjs → D8C17D2k.mjs} +7 -7
  12. package/chunks/{DngNYJVa2.mjs → DzfHfYvS2.mjs} +1 -1
  13. package/chunks/{5BOS55Lv2.mjs → NYkLWtyw2.mjs} +1 -1
  14. package/chunks/{BpZ0yk642.mjs → bBwzYT0T2.mjs} +23 -18
  15. package/chunks/{-d4DuTH12.mjs → dgRz6V6p2.mjs} +1 -1
  16. package/chunks/qIca9lDu2.mjs +108 -0
  17. package/chunks/{DRkvaPr32.mjs → q_m3gw_j2.mjs} +11 -8
  18. package/chunks/{BTVXdtOG.mjs → sCsjgWvR.mjs} +104 -95
  19. package/chunks/{D6B1lNKn2.mjs → v2GLQDzI2.mjs} +18 -18
  20. package/code-mirror-editor/index.d.ts +2 -2
  21. package/confirm-button/index.d.ts +121 -1
  22. package/confirmable/index.d.ts +92 -1
  23. package/context-menu/index.d.ts +3 -3
  24. package/count-up/index.d.ts +3 -3
  25. package/custom-scrollbar/index.d.ts +2 -2
  26. package/data-box/index.d.ts +2 -2
  27. package/data-card/index.d.ts +2 -2
  28. package/data-card-text/index.d.ts +2 -2
  29. package/data-display/index.d.ts +2 -2
  30. package/data-icons/index.d.ts +2 -2
  31. package/data-imgtext/index.d.ts +2 -2
  32. package/data-operatext/index.d.ts +2 -2
  33. package/data-panel/index.d.ts +2 -2
  34. package/data-pay/index.d.ts +2 -2
  35. package/data-price/index.d.ts +2 -2
  36. package/data-progress/index.d.ts +2 -2
  37. package/data-rotate/index.d.ts +2 -2
  38. package/data-table-picker/index.d.ts +2 -2
  39. package/data-table-picker/index.mjs +1 -1
  40. package/data-tabs/index.d.ts +2 -2
  41. package/dialog-form/index.d.ts +1 -1
  42. package/dict-render/index.d.ts +2 -2
  43. package/e-charts/index.d.ts +2 -2
  44. package/easy-popup/index.d.ts +3 -3
  45. package/editable-progress/index.d.ts +2 -2
  46. package/editable-tree/index.d.ts +4 -4
  47. package/element-dialog/index.d.ts +294 -16
  48. package/flex-box/index.d.ts +2 -2
  49. package/flex-column/index.d.ts +2 -2
  50. package/flex-item/index.d.ts +2 -2
  51. package/flex-row/index.d.ts +2 -2
  52. package/flex-scroll-area/index.d.ts +1 -1
  53. package/flex-scroller/index.d.ts +2 -2
  54. package/flow-designer/index.d.ts +6 -6
  55. package/flow-viewer/index.d.ts +2 -2
  56. package/form-button/index.d.ts +92 -1
  57. package/form-cascader/index.d.ts +9 -7
  58. package/form-cascader/index.mjs +1 -1
  59. package/form-checkbox/index.d.ts +8 -6
  60. package/form-checkbox-group/index.d.ts +372 -1
  61. package/form-checkbox-group/index.mjs +1 -1
  62. package/form-date-picker/index.d.ts +10 -8
  63. package/form-holder/index.d.ts +2 -2
  64. package/form-image/index.d.ts +7 -5
  65. package/form-input/index.d.ts +11 -9
  66. package/form-input/index.mjs +1 -1
  67. package/form-input-cron-expression/index.d.ts +8 -6
  68. package/form-input-email/index.d.ts +8 -8
  69. package/form-input-email/index.mjs +1 -1
  70. package/form-input-id-card/index.d.ts +8 -8
  71. package/form-input-id-card/index.mjs +1 -1
  72. package/form-input-number/index.d.ts +11 -9
  73. package/form-input-number/index.mjs +1 -1
  74. package/form-input-phone-number/index.d.ts +8 -8
  75. package/form-input-phone-number/index.mjs +1 -1
  76. package/form-input-tag/index.d.ts +8 -6
  77. package/form-input-time/index.d.ts +10 -8
  78. package/form-item/index.d.ts +5 -5
  79. package/form-item-config-provider/index.d.ts +3 -3
  80. package/form-item-group/index.d.ts +6 -4
  81. package/form-radio-group/index.d.ts +15 -13
  82. package/form-radio-group/index.mjs +1 -1
  83. package/form-rate/index.d.ts +8 -6
  84. package/form-row/index.d.ts +2 -2
  85. package/form-select/index.d.ts +11 -9
  86. package/form-select/index.mjs +1 -1
  87. package/form-slider/index.d.ts +9 -7
  88. package/form-switch/index.d.ts +8 -6
  89. package/form-table/index.d.ts +10 -6
  90. package/form-table/index.mjs +1 -1
  91. package/form-table-plus/index.d.ts +10 -8
  92. package/form-table-plus/index.mjs +1 -1
  93. package/form-text/index.d.ts +7 -5
  94. package/form-textarea/index.d.ts +6 -6
  95. package/form-textarea/index.mjs +1 -1
  96. package/form-time-select/index.d.ts +8 -6
  97. package/form-tree-select/index.d.ts +10 -8
  98. package/form-tree-select-multiple/index.d.ts +10 -8
  99. package/form-view/index.d.ts +4 -4
  100. package/fy-array/index.d.ts +266 -3
  101. package/fy-cascader/index.d.ts +266 -3
  102. package/fy-checkbox/index.d.ts +266 -3
  103. package/fy-curd/index.d.ts +10 -10
  104. package/fy-date/index.d.ts +266 -3
  105. package/fy-dynamic/index.d.ts +266 -3
  106. package/fy-empty/index.d.ts +2 -2
  107. package/fy-form/index.d.ts +9 -9
  108. package/fy-input/index.d.ts +266 -3
  109. package/fy-input-color/index.d.ts +266 -3
  110. package/fy-input-icon/index.d.ts +266 -3
  111. package/fy-input-map/index.d.ts +266 -3
  112. package/fy-input-number/index.d.ts +266 -3
  113. package/fy-input-table/index.d.ts +266 -3
  114. package/fy-input-tree/index.d.ts +267 -4
  115. package/fy-radio/index.d.ts +266 -3
  116. package/fy-rate/index.d.ts +266 -3
  117. package/fy-select/index.d.ts +267 -4
  118. package/fy-slider/index.d.ts +266 -3
  119. package/fy-switch/index.d.ts +266 -3
  120. package/fy-tabs/index.d.ts +2 -2
  121. package/fy-time/index.d.ts +731 -4
  122. package/fy-title/index.d.ts +266 -3
  123. package/fy-tree/index.d.ts +2 -2
  124. package/fy-u-editor/index.d.ts +3 -3
  125. package/fy-upload/index.d.ts +267 -4
  126. package/guide-steps/index.d.ts +2 -2
  127. package/helper/form-item.d.ts +1 -1
  128. package/helper/input.d.ts +18 -12
  129. package/highlight-j-s/index.d.ts +2 -2
  130. package/icon-temp/index.d.ts +2 -2
  131. package/image-cropper/index.d.ts +354 -1
  132. package/image-preview/index.d.ts +2 -2
  133. package/image-viewer/index.d.ts +2 -2
  134. package/index.mjs +15 -15
  135. package/input-number-range/index.d.ts +2 -2
  136. package/json-editor/index.d.ts +2 -2
  137. package/keyboard/index.d.ts +2 -2
  138. package/loading-view/index.d.ts +2 -2
  139. package/monaco-editor/index.d.ts +2 -2
  140. package/name-avatar/index.d.ts +2 -2
  141. package/package.json +3 -4
  142. package/page-index/index.d.ts +2 -2
  143. package/page-index-top/index.d.ts +2 -2
  144. package/page-skeleton/index.d.ts +2 -2
  145. package/page-skeleton-new/index.d.ts +2 -2
  146. package/pageable-table/index.d.ts +4 -4
  147. package/pageable-table/index.mjs +1 -1
  148. package/photo-swipe/index.d.ts +2 -2
  149. package/props/col.d.ts +1 -1
  150. package/props/form-item.d.ts +1 -1
  151. package/props/input-number.d.ts +1 -1
  152. package/props/input-number.mjs +5 -1
  153. package/props/input.d.ts +1 -1
  154. package/props/input.mjs +3 -2
  155. package/sign-panel/index.d.ts +2 -2
  156. package/split-pane/index.d.ts +4 -4
  157. package/stateful/index.d.ts +5 -3
  158. package/sub-table/index.d.ts +4 -2
  159. package/sub-table/index.mjs +1 -1
  160. package/sub-table-plus/index.d.ts +4 -2
  161. package/sub-table-plus/index.mjs +1 -1
  162. package/table-column/index.d.ts +3 -3
  163. package/table-column-def/index.d.ts +4 -4
  164. package/table-view/index.d.ts +7 -4
  165. package/table-view/index.mjs +13 -18
  166. package/tag-render/index.d.ts +2 -2
  167. package/text-ellipsis/index.d.ts +3 -3
  168. package/toolbar/index.d.ts +4 -4
  169. package/toolbar-button/index.d.ts +5 -5
  170. package/vue/directives/chat-drag.d.ts +2 -0
  171. package/vue/directives/chat-drag.mjs +12 -0
  172. package/vue/directives/click-outside.d.ts +10 -0
  173. package/vue/directives/click-outside.mjs +36 -0
  174. package/vue/directives/dialog-drag.d.ts +2 -0
  175. package/vue/directives/dialog-drag.mjs +15 -0
  176. package/vue/directives/drag-move.d.ts +10 -0
  177. package/vue/directives/drag-move.mjs +27 -0
  178. package/vue/directives/fix-fixed-column-height.d.ts +7 -0
  179. package/vue/directives/fix-fixed-column-height.mjs +20 -0
  180. package/vue/directives/index.d.ts +7 -0
  181. package/vue/directives/index.mjs +8 -0
  182. package/vue/directives/resize.d.ts +2 -0
  183. package/vue/directives/resize.mjs +12 -0
  184. package/vue/directives/scroll-bottom.d.ts +5 -0
  185. package/vue/directives/scroll-bottom.mjs +6 -0
  186. package/vue/hooks/index.d.ts +3 -0
  187. package/vue/hooks/index.mjs +4 -0
  188. package/vue/hooks/useDictionary.d.ts +60 -0
  189. package/{hook → vue/hooks}/useDictionary.mjs +2 -2
  190. package/vue/hooks/useEventBus.d.ts +1 -0
  191. package/vue/hooks/useEventBus.mjs +20 -0
  192. package/{hook → vue/hooks}/useVisibilityChange.mjs +1 -1
  193. package/vue/index.d.ts +3 -0
  194. package/vue/index.mjs +83 -0
  195. package/vue/mixin/bus.d.ts +5 -0
  196. package/vue/mixin/bus.mjs +33 -0
  197. package/vue/mixin/dialog.d.ts +38 -0
  198. package/vue/mixin/dialog.mjs +2 -0
  199. package/vue/mixin/index.d.ts +6 -0
  200. package/vue/mixin/index.mjs +7 -0
  201. package/vue/mixin/message.d.ts +2 -0
  202. package/vue/mixin/message.mjs +27 -0
  203. package/vue/mixin/multi-items.d.ts +43 -0
  204. package/vue/mixin/multi-items.mjs +70 -0
  205. package/vue/mixin/page.d.ts +28 -0
  206. package/vue/mixin/page.mjs +38 -0
  207. package/vue/mixin/resize-mixin.d.ts +15 -0
  208. package/vue/mixin/resize-mixin.mjs +24 -0
  209. package/vue-cron/index.d.ts +3 -3
  210. package/vue-qr-code/index.d.ts +2 -2
  211. package/vue-tags-input/index.d.ts +3 -3
  212. package/vue-tree-select/index.d.ts +13 -13
  213. package/vue-video-player/index.d.ts +2 -2
  214. package/watermark/index.d.ts +3 -3
  215. package/web-types.json +1 -1
  216. package/year-calendar/index.d.ts +2 -2
  217. package/chunks/DML17Idh2.mjs +0 -108
  218. package/hook/useDictionary.d.ts +0 -3
  219. /package/{hook → vue/hooks}/useVisibilityChange.d.ts +0 -0
@@ -2,17 +2,17 @@ import { s as e } from "./ClVh1Lek.mjs";
2
2
  import { t } from "./B1MSrc6f.mjs";
3
3
  import { cellClickHandlerContextKey as n } from "../constants/index.mjs";
4
4
  import { t as r } from "./DTeHffqJ.mjs";
5
- import { t as i } from "./BTVXdtOG.mjs";
5
+ import { t as i } from "./sCsjgWvR.mjs";
6
6
  import { t as a } from "./tzjUpVIj.mjs";
7
7
  import { n as o } from "./_7MDfW_y.mjs";
8
- import { t as s } from "./C6l7TFPU.mjs";
8
+ import { t as s } from "./D8C17D2k.mjs";
9
9
  import { t as c } from "./CA_-hYlN.mjs";
10
- import { t as l } from "./BZw-uhPj.mjs";
11
- import { t as u } from "./JUkvPXqc.mjs";
10
+ import { t as l } from "./C23Qaggp.mjs";
11
+ import { t as u } from "./CZxWWk4N.mjs";
12
12
  import { t as d } from "./CCkHwxt7.mjs";
13
- import { t as f } from "./Cv1iIzzy2.mjs";
14
- import { t as p } from "./-d4DuTH12.mjs";
15
- import { t as m } from "./DML17Idh2.mjs";
13
+ import { t as f } from "./BanS-yUY2.mjs";
14
+ import { t as p } from "./dgRz6V6p2.mjs";
15
+ import { t as m } from "./qIca9lDu2.mjs";
16
16
  import ee from "../table-column-def/index.mjs";
17
17
  import { ElMessage as h, formContextKey as g, formItemContextKey as _ } from "element-plus/es";
18
18
  import "element-plus/es/components/base/style/css";
@@ -52,7 +52,8 @@ var z = {
52
52
  rowKey: {
53
53
  type: [Function, String],
54
54
  default: "id"
55
- }
55
+ },
56
+ viewId: [String, Array]
56
57
  }, B = {
57
58
  name: "SubTablePlus",
58
59
  inject: {
@@ -230,6 +231,7 @@ function J(e, t, n, o, h, g) {
230
231
  "auto-height": "",
231
232
  data: e.fetchApi ? null : h.rows,
232
233
  api: e.fetchApi,
234
+ "view-id": e.viewId,
233
235
  "payload-style": "body",
234
236
  "show-summary": e.showSummary,
235
237
  descs: e.descs,
@@ -490,6 +492,7 @@ function J(e, t, n, o, h, g) {
490
492
  } : void 0]), 1040, [
491
493
  "data",
492
494
  "api",
495
+ "view-id",
493
496
  "show-summary",
494
497
  "descs",
495
498
  "ascs",
@@ -5,11 +5,13 @@ import s from "../element-resize-observer/index.mjs";
5
5
  import { getDictLabel as c } from "../helper/dictionary.mjs";
6
6
  import { t as l } from "./C_QfuxeQ.mjs";
7
7
  import { t as u } from "./BdrgibgS.mjs";
8
- import { useVisibilityChange as ee } from "../hook/useVisibilityChange.mjs";
9
- import { ElCheckbox as d, ElDrawer as f, ElEmpty as te, ElMessage as ne, ElPagination as p, ElRadio as m, ElTable as h, ElTableColumn as g } from "element-plus/es";
8
+ import { useVisibilityChange as ee } from "../vue/hooks/useVisibilityChange.mjs";
9
+ import { useEventBus as te } from "../vue/hooks/useEventBus.mjs";
10
+ import "../vue/index.mjs";
11
+ import { ElCheckbox as d, ElDrawer as f, ElEmpty as p, ElMessage as ne, ElPagination as re, ElRadio as m, ElTable as h, ElTableColumn as g } from "element-plus/es";
10
12
  import "element-plus/es/components/base/style/css";
11
- import { Fragment as re, computed as _, createBlock as v, createTextVNode as y, createVNode as b, inject as x, isVNode as S, mergeModels as C, mergeProps as w, nextTick as ie, onUpdated as ae, openBlock as T, provide as E, reactive as D, ref as O, toDisplayString as k, useModel as A, useTemplateRef as oe, watch as j, withCtx as M } from "vue";
12
- import { isFunction as N } from "@web-utils/core";
13
+ import { Fragment as ie, computed as _, createBlock as v, createTextVNode as y, createVNode as b, inject as x, isVNode as S, mergeModels as C, mergeProps as w, nextTick as ae, onUpdated as oe, openBlock as T, provide as E, reactive as D, ref as O, toDisplayString as k, useModel as A, useTemplateRef as se, watch as j, withCtx as M } from "vue";
14
+ import { isArray as N, isFunction as ce, isString as P } from "@web-utils/core";
13
15
  import "element-plus/es/components/message/style/css";
14
16
  import "element-plus/es/components/drawer/style/css";
15
17
  import "element-plus/es/components/table/style/css";
@@ -18,11 +20,10 @@ import "element-plus/es/components/table-column/style/css";
18
20
  import "element-plus/es/components/pagination/style/css";
19
21
  import "element-plus/es/components/empty/style/css";
20
22
  import "element-plus/es/components/radio/style/css";
21
- import { useEventBus as se } from "@web-utils/vue/hooks/useEventBus";
22
- import { uuid as ce } from "@web-utils/integrations/uuid";
23
+ import { uuid as le } from "@web-utils/integrations/uuid";
23
24
  import "../pageable-table/style.css";
24
25
  //#region src/components/table/components/TableColumnSettingPanel.vue
25
- var P = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
26
+ var F = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
26
27
  __name: "TableColumnSettingPanel",
27
28
  props: /* @__PURE__ */ C({ columns: {
28
29
  type: Array,
@@ -108,12 +109,12 @@ var P = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
108
109
  });
109
110
  //#endregion
110
111
  //#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
111
- function F(e) {
112
+ function I(e) {
112
113
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !S(e);
113
114
  }
114
115
  //#endregion
115
116
  //#region src/components/table/components/TableColumnFilterable.vue
116
- var le = {
117
+ var ue = {
117
118
  name: "TableColumnFilterable",
118
119
  props: { ...l },
119
120
  setup(t, { slots: n }) {
@@ -128,9 +129,9 @@ var le = {
128
129
  return () => b(u, w(i.value, {
129
130
  filterMethod: o.value,
130
131
  filters: s.value
131
- }), F(n) ? n : { default: () => [n] });
132
+ }), I(n) ? n : { default: () => [n] });
132
133
  }
133
- }, I = {
134
+ }, L = {
134
135
  data: {
135
136
  type: Array,
136
137
  default: () => []
@@ -252,7 +253,7 @@ var le = {
252
253
  type: String,
253
254
  default: "45"
254
255
  },
255
- viewId: String,
256
+ viewId: [String, Array],
256
257
  url: String,
257
258
  hideOnSinglePage: Boolean,
258
259
  api: Function,
@@ -306,7 +307,7 @@ var le = {
306
307
  selectExport: Boolean,
307
308
  useVisibilityChange: Boolean,
308
309
  rowDbClick: Function
309
- }, L = {
310
+ }, R = {
310
311
  data: !0,
311
312
  rowDbClick: !0,
312
313
  selectionWidth: !0,
@@ -333,38 +334,38 @@ var le = {
333
334
  columns: !0,
334
335
  payloadStyle: !0,
335
336
  disabledRowKeys: !0
336
- }, ue = (e) => L[e] !== !0;
337
+ }, de = (e) => R[e] !== !0;
337
338
  //#endregion
338
339
  //#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
339
- function de(e) {
340
+ function fe(e) {
340
341
  let t = "";
341
342
  for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
342
343
  return t;
343
344
  }
344
- var R = {
345
+ var z = {
345
346
  loading: 1,
346
347
  error: -1,
347
348
  empty: 2,
348
349
  success: 0
349
- }, z = {
350
+ }, B = {
350
351
  name: "PageableTable",
351
352
  emits: { "page-loaded": null },
352
353
  inheritAttrs: !1,
353
- props: { ...I },
354
+ props: { ...L },
354
355
  setup(e, { emit: l, attrs: u, slots: d, expose: f }) {
355
356
  E(i, e.rowDbClick);
356
- let v = oe("table"), x = O({
357
+ let v = se("table"), x = O({
357
358
  hideProps: {},
358
359
  fixedProps: {},
359
360
  filterableProps: {},
360
361
  sortableProps: {}
361
- }), S = O(R.empty), C = O([]), T = O(null), D = O(!1), k = O([]), A = O({
362
+ }), S = O(z.empty), C = O([]), T = O(null), D = O(!1), k = O([]), A = O({
362
363
  total: 0,
363
364
  page: 1,
364
365
  limit: e.pageSize,
365
366
  ascs: e.ascs,
366
367
  descs: e.descs
367
- }), M = O(0), F = O(0), I = _(() => e.reloadOnModelChange ? {
368
+ }), M = O(0), I = O(0), L = _(() => e.reloadOnModelChange ? {
368
369
  asc: A.value.ascs,
369
370
  desc: A.value.descs,
370
371
  page: A.value.page,
@@ -375,14 +376,14 @@ var R = {
375
376
  desc: A.value.descs,
376
377
  page: A.value.page,
377
378
  limit: A.value.limit
378
- }), L = _(() => {
379
+ }), R = _(() => {
379
380
  var e;
380
381
  let t = `${(A.value.page - 1) * A.value.limit + (((e = C.value) == null ? void 0 : e.length) ?? 0)}`;
381
382
  return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
382
- }), z = () => {
383
+ }), B = () => {
383
384
  V();
384
- }, B = (t, n, r) => {
385
- if (e.clickRowSelect && Z(t)) {
385
+ }, pe = (t, n, r) => {
386
+ if (e.clickRowSelect && X(t)) {
386
387
  var i;
387
388
  if (k.value.find((n) => n[e.rowKey] === t[e.rowKey])) {
388
389
  var a;
@@ -398,20 +399,20 @@ var R = {
398
399
  return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
399
400
  });
400
401
  n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
401
- }, H = ({ scrollLeft: e, scrollTop: t }) => {
402
- M.value = t, F.value = e;
403
- }, fe = () => {
404
- _e(M.value, F.value);
405
- }, pe = (e) => n(de(e)), me = ({ prop: t, order: n }) => {
402
+ }, me = ({ scrollLeft: e, scrollTop: t }) => {
403
+ M.value = t, I.value = e;
404
+ }, he = () => {
405
+ be(M.value, I.value);
406
+ }, ge = (e) => n(fe(e)), _e = ({ prop: t, order: n }) => {
406
407
  e.payloadStyle === "body" ? (A.value.ascs = n === "ascending" ? [t] : e.ascs, A.value.descs = n === "descending" ? [t] : e.descs) : (A.value.ascs = n === "ascending" ? t : "", A.value.descs = n === "descending" ? t : "");
407
- }, he = (e) => {
408
- Z(e) && (T.value = e);
409
- }, ge = (e) => {
408
+ }, ve = (e) => {
409
+ X(e) && (T.value = e);
410
+ }, ye = (e) => {
410
411
  k.value = e;
411
- }, U = () => {
412
+ }, H = () => {
412
413
  var e;
413
414
  (e = v.value) == null || e.clearSelection();
414
- }, W = () => {
415
+ }, U = () => {
415
416
  let t;
416
417
  return t = e.payloadStyle === "body" ? {
417
418
  page: {
@@ -426,20 +427,20 @@ var R = {
426
427
  size: A.value.limit,
427
428
  ...e.model || {}
428
429
  }, e.selectExport && (e.rowKey ? t.exportKeys = k.value.map((t) => t[e.rowKey]) : t.exportKeys = k.value.map((e) => C.value.indexOf(e))), t;
429
- }, G = async (t = !0) => {
430
+ }, W = async (t = !0) => {
430
431
  if (!e.api && e.data !== !1) {
431
432
  var n;
432
433
  C.value = e.data, A.value.page = 1, A.value.total = (n = C.value) == null ? void 0 : n.length, A.value.limit = A.value.total < 1 ? e.pageSize : A.value.total;
433
434
  return;
434
435
  }
435
436
  t !== !1 && (C.value = []);
436
- let r, i = W();
437
+ let r, i = U();
437
438
  if (e.api) {
438
- t !== !1 && (S.value = R.loading);
439
+ t !== !1 && (S.value = z.loading);
439
440
  try {
440
441
  e.api && (r = await e.api(i));
441
442
  } catch {
442
- S.value = R.error;
443
+ S.value = z.error;
443
444
  return;
444
445
  }
445
446
  } else if (e.data) r = { data: { data: {
@@ -454,15 +455,15 @@ var R = {
454
455
  return;
455
456
  }
456
457
  let { data: { data: a } = {} } = r || {}, { total: o, records: s } = a || {};
457
- A.value.total = Number(o), C.value = await ve(s), !s || !s.length ? S.value = R.empty : S.value = R.success, K(), l("page-loaded", a);
458
- }, K = () => {
459
- ie(() => {
458
+ A.value.total = Number(o), C.value = await xe(s), !s || !s.length ? S.value = z.empty : S.value = z.success, G(), l("page-loaded", a);
459
+ }, G = () => {
460
+ ae(() => {
460
461
  var e;
461
462
  (e = v.value) == null || e.doLayout();
462
463
  });
463
- }, q = async (e) => {
464
- await G(e);
465
- }, J = () => {
464
+ }, K = async (e) => {
465
+ await W(e);
466
+ }, q = () => {
466
467
  A.value = {
467
468
  total: 0,
468
469
  page: 1,
@@ -470,12 +471,12 @@ var R = {
470
471
  ascs: e.ascs,
471
472
  descs: e.descs
472
473
  };
473
- }, _e = (e, t) => {
474
+ }, be = (e, t) => {
474
475
  v.value.setScrollTop(e), v.value.setScrollLeft(t);
475
- }, Y = (e, t) => {
476
+ }, J = (e, t) => {
476
477
  var n;
477
478
  (n = v.value) == null || n.toggleRowSelection(e, t);
478
- }, ve = async (t) => {
479
+ }, xe = async (t) => {
479
480
  if (!t) return [];
480
481
  let n = [...t];
481
482
  for (let t of n) for (let n of e.dicOptions) if (t[`$${n.prop}`] = t[n.prop], n.dicData) {
@@ -483,26 +484,34 @@ var R = {
483
484
  t[n.prop] = ((r = n.dicData.find((e) => e.modelValue === t[n.prop])) == null ? void 0 : r.label) || t[n.prop];
484
485
  } else t[n.prop] = await c(n.dicType, t[n.prop]);
485
486
  return n;
486
- }, X = () => {
487
+ }, Y = () => {
487
488
  D.value = !D.value;
488
- }, Z = (t) => {
489
+ }, X = (t) => {
489
490
  var n;
490
491
  return !(t != null && t.disabled) && !((n = e.disabledRowKeys) != null && n.includes(t == null ? void 0 : t[e.rowKey]));
491
492
  };
492
493
  e.useVisibilityChange && ee({ onPageVisible: () => {
493
- q(!1);
494
- } }), se("reloadTableView", (t) => {
495
- t === e.viewId && G();
496
- }), j(() => e.url, J), j(() => e.api, J), j(() => e.data, G), j(() => I.value, G, {
494
+ K(!1);
495
+ } });
496
+ let Z = _(() => {
497
+ let t = [];
498
+ return P(e.viewId) ? t = e.viewId.split(",") : N(e.viewId) && (t = e.viewId), t.filter((e) => e);
499
+ });
500
+ te("reloadTable", (e) => {
501
+ if (P(e) || N(e)) {
502
+ let t = e;
503
+ P(e) && (t = e.split(",")), Z.value.some((e) => t.includes(e)) && (console.info(`reloadTable:${Z.value.join()}`), W());
504
+ } else console.warn("`viewId`的类型必须是字符串或数组");
505
+ }), j(() => e.url, q), j(() => e.api, q), j(() => e.data, W), j(() => L.value, W, {
497
506
  deep: !0,
498
507
  immediate: e.immediate
499
508
  });
500
509
  let Q = (t) => {
501
510
  let n;
502
- if (N(e.rowKey)) {
511
+ if (ce(e.rowKey)) {
503
512
  if (n = e.rowKey(t), n) return n;
504
513
  } else if (e.rowKey && (n = t[e.rowKey], n)) return n;
505
- return n = "__rowKey", t[n] || (t[n] = ce(!1)), t[n];
514
+ return n = "__rowKey", t[n] || (t[n] = le(!1)), t[n];
506
515
  }, $ = _(() => {
507
516
  let t = [];
508
517
  if (d.default) {
@@ -528,31 +537,31 @@ var R = {
528
537
  }
529
538
  return t;
530
539
  });
531
- ae(() => {
532
- fe();
540
+ oe(() => {
541
+ he();
533
542
  }), f({
534
543
  records: C,
535
- getPage: G,
536
- refresh: q,
537
- reload: J,
538
- doLayout: K,
539
- clearSelection: U,
540
- toggleRowSelection: Y,
541
- toggleSettings: X,
544
+ getPage: W,
545
+ refresh: K,
546
+ reload: q,
547
+ doLayout: G,
548
+ clearSelection: H,
549
+ toggleRowSelection: J,
550
+ toggleSettings: Y,
542
551
  currentRow: T,
543
- getPageQuery: W,
552
+ getPageQuery: U,
544
553
  tableColumns: $
545
554
  }), E(a, {
546
555
  records: C,
547
- getPage: G,
548
- refresh: q,
549
- reload: J,
550
- doLayout: K,
551
- clearSelection: U,
552
- toggleRowSelection: Y,
553
- toggleSettings: X
556
+ getPage: W,
557
+ refresh: K,
558
+ reload: q,
559
+ doLayout: G,
560
+ clearSelection: H,
561
+ toggleRowSelection: J,
562
+ toggleSettings: Y
554
563
  });
555
- let { autoBindProps: ye, listeners: be } = t(e, { predicate: ue });
564
+ let { autoBindProps: Se, listeners: Ce } = t(e, { predicate: de });
556
565
  return () => b("div", {
557
566
  class: [
558
567
  "pageable-table",
@@ -562,7 +571,7 @@ var R = {
562
571
  style: u.style
563
572
  }, [b("div", { class: "pageable-table-wrapper" }, [
564
573
  d.toolbar && d.toolbar({ selectedRows: k.value }),
565
- b(h, w(be.value, ye.value, {
574
+ b(h, w(Ce.value, Se.value, {
566
575
  ref: "table",
567
576
  data: C.value,
568
577
  class: ["flex-item", { "header-bold": e.headerBold }],
@@ -571,20 +580,20 @@ var R = {
571
580
  rowKey: Q,
572
581
  size: "default",
573
582
  height: e.autoHeight ? null : "auto",
574
- onScroll: H,
575
- onSortChange: me,
576
- onRowDblclick: z,
577
- onRowClick: B,
583
+ onScroll: me,
584
+ onSortChange: _e,
585
+ onRowDblclick: B,
586
+ onRowClick: pe,
578
587
  onCellClick: V,
579
- onCurrentChange: he,
580
- onSelectionChange: ge
588
+ onCurrentChange: ve,
589
+ onSelectionChange: ye
581
590
  }), {
582
591
  default: () => {
583
592
  let t = [];
584
593
  if (e.multiple && e.selection && t.push(b(g, {
585
594
  key: "selection",
586
595
  type: "selection",
587
- selectable: Z,
596
+ selectable: X,
588
597
  width: e.selectionWidth,
589
598
  align: "center"
590
599
  }, null)), !e.multiple && e.selection && t.push(b(g, {
@@ -600,20 +609,20 @@ var R = {
600
609
  }, { default: () => [b("span", null, null)] }),
601
610
  default: ({ row: e }) => b(m, {
602
611
  label: !0,
603
- disabled: !Z(e),
612
+ disabled: !X(e),
604
613
  modelValue: T.value && Q(T.value) === Q(e)
605
614
  }, { default: () => [b("span", null, null)] })
606
615
  })), e.index && t.push(b(g, {
607
616
  key: "index",
608
617
  type: "index",
609
618
  label: "序号",
610
- width: L.value,
619
+ width: R.value,
611
620
  align: "center"
612
621
  }, { default: ({ $index: e }) => (A.value.page - 1) * A.value.limit + e + 1 || e + 1 })), $.value.length > 0) for (let e = 0; e < $.value.length; e++) {
613
622
  let n = $.value[e];
614
623
  if (n.hide) continue;
615
624
  let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
616
- t.push(b(le, w(c, { prop: r }), {
625
+ t.push(b(ue, w(c, { prop: r }), {
617
626
  default: d[r] ? ({ row: e }) => d[r]({ row: e }) : a,
618
627
  header: i,
619
628
  expand: o,
@@ -625,21 +634,21 @@ var R = {
625
634
  label: "点击表格行复制模板"
626
635
  }, { default: ({ row: e }) => b("pre", {
627
636
  class: "pointer",
628
- onClick: () => pe(e)
637
+ onClick: () => ge(e)
629
638
  }, [JSON.stringify(e, null, " ")]) }));
630
639
  return t;
631
640
  },
632
- empty: () => d.empty ? d.empty() : b(re, null, [
633
- S.value === R.loading && b("span", { class: "pageable-table-loading" }, [b("i", { class: "table-status-icon el-icon-loading" }, null), y("加载中...")]),
634
- S.value === R.error && b(o, {
641
+ empty: () => d.empty ? d.empty() : b(ie, null, [
642
+ S.value === z.loading && b("span", { class: "pageable-table-loading" }, [b("i", { class: "table-status-icon el-icon-loading" }, null), y("加载中...")]),
643
+ S.value === z.error && b(o, {
635
644
  class: "pageable-table-error",
636
- onClick: q
645
+ onClick: K
637
646
  }, { default: () => [b("i", { class: "table-status-icon el-icon-error" }, null), y("加载失败,点击重试!")] }),
638
- S.value !== R.loading && S.value !== R.error && b(te, null, null)
647
+ S.value !== z.loading && S.value !== z.error && b(p, null, null)
639
648
  ]),
640
649
  append: d.append
641
650
  }),
642
- e.paging && b(p, {
651
+ e.paging && b(re, {
643
652
  "current-page": A.value.page,
644
653
  "onUpdate:current-page": (e) => A.value.page = e,
645
654
  "hide-on-single-page": e.hideOnSinglePage,
@@ -659,15 +668,15 @@ var R = {
659
668
  background: !0,
660
669
  layout: "total, sizes, prev, pager, next, jumper"
661
670
  }, null),
662
- b(P, {
671
+ b(F, {
663
672
  settings: x.value,
664
673
  "onUpdate:settings": (e) => x.value = e,
665
674
  modelValue: D.value,
666
675
  "onUpdate:modelValue": (e) => D.value = e,
667
676
  columns: $.value
668
677
  }, null)
669
- ]), b(s, { onNotify: K }, null)]);
678
+ ]), b(s, { onNotify: G }, null)]);
670
679
  }
671
680
  };
672
681
  //#endregion
673
- export { z as t };
682
+ export { B as t };
@@ -1,5 +1,5 @@
1
- import { n as e, o as t } from "./_7MDfW_y.mjs";
2
- import { useDictionary as n } from "../hook/useDictionary.mjs";
1
+ import { useDictionary as e } from "../vue/hooks/useDictionary.mjs";
2
+ import { n as t, o as n } from "./_7MDfW_y.mjs";
3
3
  import { allProps as r, predicate as i } from "../props/radio-group.mjs";
4
4
  import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
5
5
  import "element-plus/es/components/base/style/css";
@@ -17,27 +17,27 @@ var m = {
17
17
  name: "FormRadioGroup",
18
18
  inheritAttrs: !1,
19
19
  props: { ...r },
20
- emits: { ...e },
21
- setup(e, { slots: r, attrs: u, emit: m }) {
22
- let h = f(e, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = t(e, {
20
+ emits: { ...t },
21
+ setup(t, { slots: r, attrs: u, emit: m }) {
22
+ let h = f(t, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = n(t, {
23
23
  emit: m,
24
24
  slots: r,
25
25
  attrs: u,
26
26
  predicate: i,
27
27
  messagePrefix: "请选择"
28
- }), b = c(() => e.classic ? "label" : e.labelProp), x = c(() => e.classic ? "value" : e.valueProp), { dictItems: S } = n(e), C = c(() => e.dictType ? S.value : e.gender ? [{
28
+ }), b = c(() => t.classic ? "label" : t.labelProp), x = c(() => t.classic ? "value" : t.valueProp), { dictItems: S } = e(t), C = c(() => t.dictType ? S.value : t.gender ? [{
29
29
  [b.value]: "男",
30
- [x.value]: e.chinese ? "男" : e.typing ? 1 : "1"
30
+ [x.value]: t.chinese ? "男" : t.typing ? 1 : "1"
31
31
  }, {
32
32
  [b.value]: "女",
33
- [x.value]: e.chinese ? "女" : e.typing ? 2 : "2"
34
- }] : e.confirm ? [{
33
+ [x.value]: t.chinese ? "女" : t.typing ? 2 : "2"
34
+ }] : t.confirm ? [{
35
35
  [b.value]: "是",
36
- [x.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
36
+ [x.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
37
37
  }, {
38
38
  [b.value]: "否",
39
- [x.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
40
- }] : e.options);
39
+ [x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
40
+ }] : t.options);
41
41
  return () => g({ vNodes: l(s, d(v.value, y.value, {
42
42
  modelValue: h.value,
43
43
  "onUpdate:modelValue": (e) => h.value = e,
@@ -45,14 +45,14 @@ var m = {
45
45
  }), {
46
46
  ...r,
47
47
  default: r.default || (() => {
48
- var t;
49
- return (t = C.value) == null ? void 0 : t.map(({ value: t, label: n, disabled: r }) => e.type === "button" || e.radioType === "button" ? l(o, {
50
- key: t,
51
- value: t,
48
+ var e;
49
+ return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? l(o, {
50
+ key: e,
51
+ value: e,
52
52
  disabled: r
53
53
  }, p(n) ? n : { default: () => [n] }) : l(a, {
54
- key: t,
55
- value: t,
54
+ key: e,
55
+ value: e,
56
56
  disabled: r
57
57
  }, p(n) ? n : { default: () => [n] }));
58
58
  })
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
2
  modelValue: {
3
3
  type: StringConstructor;
4
4
  default: string;
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
20
  }>, {}, {}, {}, {
21
21
  focus(): void;
22
22
  change(): void;
23
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
24
24
  modelValue: {
25
25
  type: StringConstructor;
26
26
  default: string;