@web-utils/component 2.70.0 → 3.0.1

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/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
@@ -1,34 +1,17 @@
1
- import l from "@web-utils/component/page";
1
+ import t from "@web-utils/component/page";
2
2
  import "@web-utils/component/page/style.css";
3
- import r from "@web-utils/component/nav-bar";
3
+ import n from "@web-utils/component/nav-bar";
4
4
  import "@web-utils/component/nav-bar/style.css";
5
- import a from "@web-utils/component/page-header";
5
+ import r from "@web-utils/component/page-header";
6
6
  import "@web-utils/component/page-header/style.css";
7
+ import { s as l, r as a } from "../chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs";
7
8
  import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
8
- var c = function() {
9
- var e = this, t = e.$createElement, n = e._self._c || t;
10
- return n("Page", {
11
- staticClass: "page-skeleton"
12
- }, [e.header ? e._t("header", function() {
13
- return [e.title ? n("PageHeader", {
14
- attrs: {
15
- title: e.title
16
- }
17
- }) : n("NavBar")];
18
- }) : e._e(), n("div", {
19
- class: ["page-content", {
20
- "flex-column": e.flexColumn,
21
- "flex-row": e.flexRow,
22
- "content-scroll": e.contentScroll
23
- }, e.contentClass]
24
- }, [e._t("default")], 2)], 2);
25
- }, i = [];
26
- const _ = {
9
+ const i = {
27
10
  name: "PageSkeleton",
28
11
  components: {
29
- Page: l,
30
- NavBar: r,
31
- PageHeader: a
12
+ Page: t,
13
+ NavBar: n,
14
+ PageHeader: r
32
15
  },
33
16
  props: {
34
17
  title: String,
@@ -45,23 +28,23 @@ const _ = {
45
28
  }
46
29
  }
47
30
  }, o = {};
48
- var u = /* @__PURE__ */ s(
49
- _,
50
- c,
31
+ var m = /* @__PURE__ */ s(
51
32
  i,
33
+ a,
34
+ l,
52
35
  !1,
53
- f,
36
+ p,
54
37
  null,
55
38
  null,
56
39
  null
57
40
  );
58
- function f(e) {
59
- for (let t in o)
60
- this[t] = o[t];
41
+ function p(c) {
42
+ for (let e in o)
43
+ this[e] = o[e];
61
44
  }
62
- const P = /* @__PURE__ */ function() {
63
- return u.exports;
45
+ const v = /* @__PURE__ */ function() {
46
+ return m.exports;
64
47
  }();
65
48
  export {
66
- P as default
49
+ v as default
67
50
  };
@@ -1,7 +1,8 @@
1
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var e = this, l = e.$createElement, t = e._self._c || l;
4
- return t("Page", {
1
+ import { _ as a } from "../chunks/Page.81f4b8d9.mjs";
2
+ import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var i = function() {
4
+ var e = this, n = e.$createElement, t = e._self._c || n;
5
+ return t(a, {
5
6
  staticClass: "page-skeleton-new",
6
7
  attrs: {
7
8
  horizontal: ""
@@ -51,7 +52,7 @@ var s = function() {
51
52
  }, [e._t("default", function() {
52
53
  return [e._v("内容")];
53
54
  })], 2)])]);
54
- }, i = [];
55
+ }, o = [];
55
56
  const r = {
56
57
  name: "PageSkeletonNew",
57
58
  props: {
@@ -75,24 +76,24 @@ const r = {
75
76
  default: "240px"
76
77
  }
77
78
  }
78
- }, n = {};
79
- var o = /* @__PURE__ */ a(
79
+ }, l = {};
80
+ var c = /* @__PURE__ */ s(
80
81
  r,
81
- s,
82
82
  i,
83
+ o,
83
84
  !1,
84
- c,
85
+ d,
85
86
  null,
86
87
  null,
87
88
  null
88
89
  );
89
- function c(e) {
90
- for (let l in n)
91
- this[l] = n[l];
90
+ function d(e) {
91
+ for (let n in l)
92
+ this[n] = l[n];
92
93
  }
93
- const _ = /* @__PURE__ */ function() {
94
- return o.exports;
94
+ const u = /* @__PURE__ */ function() {
95
+ return c.exports;
95
96
  }();
96
97
  export {
97
- _ as default
98
+ u as default
98
99
  };
@@ -1,189 +1,51 @@
1
- var v = Object.defineProperty, $ = Object.defineProperties;
2
- var w = Object.getOwnPropertyDescriptors;
1
+ var w = Object.defineProperty, B = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
3
  var p = Object.getOwnPropertySymbols;
4
- var f = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var g = (e, a, t) => a in e ? v(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, c = (e, a) => {
6
- for (var t in a || (a = {}))
7
- f.call(a, t) && g(e, t, a[t]);
4
+ var f = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
5
+ var u = (e, t, s) => t in e ? w(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
6
+ for (var s in t || (t = {}))
7
+ f.call(t, s) && u(e, s, t[s]);
8
8
  if (p)
9
- for (var t of p(a))
10
- b.call(a, t) && g(e, t, a[t]);
9
+ for (var s of p(t))
10
+ m.call(t, s) && u(e, s, t[s]);
11
11
  return e;
12
- }, m = (e, a) => $(e, w(a));
13
- var y = (e, a) => {
14
- var t = {};
15
- for (var s in e)
16
- f.call(e, s) && a.indexOf(s) < 0 && (t[s] = e[s]);
12
+ }, b = (e, t) => B(e, P(t));
13
+ var y = (e, t) => {
14
+ var s = {};
15
+ for (var a in e)
16
+ f.call(e, a) && t.indexOf(a) < 0 && (s[a] = e[a]);
17
17
  if (e != null && p)
18
- for (var s of p(e))
19
- a.indexOf(s) < 0 && b.call(e, s) && (t[s] = e[s]);
20
- return t;
18
+ for (var a of p(e))
19
+ t.indexOf(a) < 0 && m.call(e, a) && (s[a] = e[a]);
20
+ return s;
21
21
  };
22
- var h = (e, a, t) => new Promise((s, l) => {
23
- var u = (r) => {
22
+ var d = (e, t, s) => new Promise((a, l) => {
23
+ var c = (i) => {
24
24
  try {
25
- i(t.next(r));
26
- } catch (d) {
27
- l(d);
25
+ r(s.next(i));
26
+ } catch (n) {
27
+ l(n);
28
28
  }
29
- }, n = (r) => {
29
+ }, h = (i) => {
30
30
  try {
31
- i(t.throw(r));
32
- } catch (d) {
33
- l(d);
31
+ r(s.throw(i));
32
+ } catch (n) {
33
+ l(n);
34
34
  }
35
- }, i = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(u, n);
36
- i((t = t.apply(e, a)).next());
35
+ }, r = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(c, h);
36
+ r((s = s.apply(e, t)).next());
37
37
  });
38
- import { hasOwn as C } from "@web-utils/core";
39
- import { cloneDeep as _, merge as k } from "@web-utils/integrations/lodash";
40
- import { f as S, h as x, i as P } from "../chunks/index.57f871af.mjs";
41
- import { n as B } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
42
- var E = function() {
43
- var e = this, a = e.$createElement, t = e._self._c || a;
44
- return t("div", {
45
- class: ["pageable-table", {
46
- "auto-height": e.autoHeight
47
- }]
48
- }, [t("div", {
49
- staticClass: "pageable-table-wrapper"
50
- }, [e._t("toolbar"), t("ElTable", e._g(e._b({
51
- ref: "table",
52
- class: ["flex-item", {
53
- "header-bold": e.headerBold
54
- }],
55
- attrs: {
56
- data: e.records,
57
- border: e.border
58
- },
59
- on: {
60
- "hook:updated": e.updateTableScrollPosition,
61
- "sort-change": e.onSortChange,
62
- "row-dblclick": e.rowDbClick,
63
- "current-change": e.onCurrentChange
64
- },
65
- scopedSlots: e._u([{
66
- key: "empty",
67
- fn: function() {
68
- return [e._t("empty", function() {
69
- return [e.tableStatus === e.TABLE_STATUS.loading ? [t("span", {
70
- staticClass: "pageable-table-loading"
71
- }, [t("i", {
72
- staticClass: "table-status-icon el-icon-loading"
73
- }), e._v(" 加载中...")])] : e.tableStatus === e.TABLE_STATUS.error ? [t("ElButton", {
74
- staticClass: "pageable-table-error",
75
- attrs: {
76
- icon: "table-status-icon fa fa-frown-o"
77
- },
78
- on: {
79
- click: e.refresh
80
- }
81
- }, [e._v(" 加载失败,点击重试! ")])] : [e._v(" 暂无数据 ")]];
82
- })];
83
- },
84
- proxy: !0
85
- }, {
86
- key: "append",
87
- fn: function() {
88
- return [e._t("append")];
89
- },
90
- proxy: !0
91
- }], null, !0)
92
- }, "ElTable", e.filterTableProperties(e.mergeAttrs), !1), e.filterTableEvents(e.$listeners)), [e.multiple && e.selection ? t("TableColumn", {
93
- key: "multiple",
94
- attrs: {
95
- type: "selection",
96
- width: "45",
97
- align: "center"
98
- }
99
- }) : e._e(), !e.multiple && e.selection ? t("TableColumn", {
100
- key: "single",
101
- attrs: {
102
- type: "single-selection",
103
- "class-name": "single-select-column",
104
- width: "45",
105
- align: "center"
106
- },
107
- scopedSlots: e._u([{
108
- key: "header",
109
- fn: function() {
110
- return [t("ElRadio", {
111
- attrs: {
112
- value: !!e.currentRow,
113
- label: !0
114
- }
115
- }, [t("span")])];
116
- },
117
- proxy: !0
118
- }, {
119
- key: "default",
120
- fn: function(s) {
121
- var l = s.row;
122
- return [t("ElRadio", {
123
- attrs: {
124
- label: !0,
125
- value: e.currentRow && e.currentRow[e.$attrs["row-key"] || "id"] === l[e.$attrs["row-key"] || "id"]
126
- }
127
- }, [t("span")])];
128
- }
129
- }], null, !1, 307797321)
130
- }) : e._e(), e.index ? t("TableColumn", {
131
- key: "order",
132
- attrs: {
133
- type: "index",
134
- label: "序号",
135
- width: e.indexWidth,
136
- align: "center"
137
- },
138
- scopedSlots: e._u([{
139
- key: "default",
140
- fn: function(s) {
141
- var l = s.$index;
142
- return [e._v(" " + e._s((e.page.page - 1) * e.page.limit + l + 1 || l + 1) + " ")];
143
- }
144
- }], null, !1, 4238275121)
145
- }) : e._e(), e._t("default", function() {
146
- return [e.columns && e.columns.length ? e._l(e.headers, function(s, l) {
147
- return t("TableColumn", e._b({
148
- key: `${s.prop}-${l}`
149
- }, "TableColumn", s, !1));
150
- }) : t("TableColumn", {
151
- attrs: {
152
- label: "点击表格行复制模板"
153
- },
154
- scopedSlots: e._u([{
155
- key: "default",
156
- fn: function(s) {
157
- var l = s.row;
158
- return [t("pre", {
159
- staticClass: "pointer"
160
- }, [e._v(e._s(JSON.stringify(l, null, " ")))])];
161
- }
162
- }])
163
- })];
164
- })], 2), t("ElPagination", {
165
- staticClass: "flex-not-shrink",
166
- attrs: {
167
- "current-page": e.page.page,
168
- "hide-on-single-page": e.hideOnSinglePage,
169
- "page-size": e.page.limit,
170
- total: e.page.total,
171
- background: "",
172
- layout: "total, prev, pager, next, jumper"
173
- },
174
- on: {
175
- "current-change": function(s) {
176
- e.page.page = s;
177
- }
178
- }
179
- })], 2)]);
180
- }, A = [];
38
+ import { hasOwn as _ } from "@web-utils/core";
39
+ import { cloneDeep as S, merge as v } from "@web-utils/integrations/lodash";
40
+ import { f as T, a as O, b as L } from "../chunks/index.d91bd77a.mjs";
41
+ import { s as x, r as A } from "../chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs";
42
+ import { n as C } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
181
43
  const o = {
182
44
  loading: 1,
183
45
  error: -1,
184
46
  empty: 2,
185
47
  success: 0
186
- }, R = {
48
+ }, M = {
187
49
  name: "PageableTable",
188
50
  bus: {
189
51
  reloadTableView(e) {
@@ -261,9 +123,9 @@ const o = {
261
123
  data() {
262
124
  let e = { rules: [] };
263
125
  this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e = Object.assign({}, e, this.filter));
264
- let a = {};
265
- this.model && (a = _(this.model));
266
- const t = this.pageSize;
126
+ let t = {};
127
+ this.model && (t = S(this.model));
128
+ const s = this.pageSize;
267
129
  return {
268
130
  TABLE_STATUS: Object.freeze(o),
269
131
  tableStatus: o.empty,
@@ -272,10 +134,10 @@ const o = {
272
134
  page: {
273
135
  total: 0,
274
136
  page: 1,
275
- limit: t,
137
+ limit: s,
276
138
  ascs: this.ascs,
277
139
  descs: this.descs,
278
- model: a,
140
+ model: t,
279
141
  filters: e
280
142
  }
281
143
  };
@@ -303,11 +165,11 @@ const o = {
303
165
  return e.length > 3 ? 50 + (e.length - 3) * 10 : 50;
304
166
  },
305
167
  mergeAttrs() {
306
- return k({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
168
+ return v({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
307
169
  },
308
170
  headers() {
309
171
  var e;
310
- return ((e = this.columns) == null ? void 0 : e.map(S)) || [];
172
+ return ((e = this.columns) == null ? void 0 : e.map(T)) || [];
311
173
  }
312
174
  },
313
175
  watch: {
@@ -337,26 +199,26 @@ const o = {
337
199
  },
338
200
  methods: {
339
201
  rowDbClick(...e) {
340
- var t;
341
- const a = this.$refs.table.$children.find((s) => {
202
+ var s;
203
+ const t = this.$refs.table.$children.find((a) => {
342
204
  var l;
343
- return ((l = s.$options) == null ? void 0 : l.name) === "ElTableBody";
205
+ return ((l = a.$options) == null ? void 0 : l.name) === "ElTableBody";
344
206
  });
345
- a && ((t = a.$refs.tooltip) == null || t.hide()), this.$emit("row-dblclick", ...e);
207
+ t && ((s = t.$refs.tooltip) == null || s.hide()), this.$emit("row-dblclick", ...e);
346
208
  },
347
209
  updateTableScrollPosition() {
348
- return h(this, null, function* () {
210
+ return d(this, null, function* () {
349
211
  this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
350
212
  });
351
213
  },
352
- filterTableProperties: x,
353
- filterTableEvents: P,
354
- filterTableColumnProperties: S,
214
+ filterTableProperties: O,
215
+ filterTableEvents: L,
216
+ filterTableColumnProperties: T,
355
217
  onTableScroll() {
356
218
  this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
357
219
  },
358
- onSortChange({ prop: e, order: a }) {
359
- this.page.ascs = a === "ascending" ? e : "", this.page.descs = a === "descending" ? e : "";
220
+ onSortChange({ prop: e, order: t }) {
221
+ this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
360
222
  },
361
223
  onCurrentChange(e) {
362
224
  this.currentRow = e;
@@ -369,28 +231,28 @@ const o = {
369
231
  this.removeRule(e.field), this.page.filters.rules.push(e);
370
232
  },
371
233
  addRules(e) {
372
- e.forEach((a) => this.addRule(a));
234
+ e.forEach((t) => this.addRule(t));
373
235
  },
374
- setModelField(e, a) {
375
- this.$set(this.page.model, e, a);
236
+ setModelField(e, t) {
237
+ this.$set(this.page.model, e, t);
376
238
  },
377
239
  setModel(e) {
378
- this.page.page = 1, this.page.model = _(e);
240
+ this.page.page = 1, this.page.model = S(e);
379
241
  },
380
242
  deleteModelField(e) {
381
243
  delete this.page.model[e];
382
244
  },
383
245
  removeRule(e) {
384
- const a = this.page.filters.rules, t = a.findIndex((s) => s.field === e);
385
- t > -1 && a.splice(t, 1);
246
+ const t = this.page.filters.rules, s = t.findIndex((a) => a.field === e);
247
+ s > -1 && t.splice(s, 1);
386
248
  },
387
- addFilter({ field: e, op: a, value: t }) {
249
+ addFilter({ field: e, op: t, value: s }) {
388
250
  this.page.filters = Object.assign({}, this.page.filters, {
389
251
  rules: [
390
252
  {
391
253
  field: e,
392
- op: a,
393
- value: t
254
+ op: t,
255
+ value: s
394
256
  }
395
257
  ],
396
258
  op: "and"
@@ -406,21 +268,21 @@ const o = {
406
268
  this.setModel(this.model), this.getPage();
407
269
  },
408
270
  getPage() {
409
- return h(this, null, function* () {
410
- var r;
411
- if (C(this.$attrs, "data")) {
271
+ return d(this, null, function* () {
272
+ var i;
273
+ if (_(this.$attrs, "data")) {
412
274
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
413
275
  return;
414
276
  }
415
277
  this.records = [];
416
278
  let e;
417
- const i = this.page, { filters: a } = i, t = y(i, ["filters"]), s = c({}, t);
418
- if ((r = a == null ? void 0 : a.rules) != null && r.length && (s.filters = { rules: a.rules }), this.api || this.url) {
279
+ const r = this.page, { filters: t } = r, s = y(r, ["filters"]), a = g({}, s);
280
+ if ((i = t == null ? void 0 : t.rules) != null && i.length && (a.filters = { rules: t.rules }), this.api || this.url) {
419
281
  this.tableStatus = o.loading;
420
282
  try {
421
- this.api && (e = yield this.api(s)), this.url && (e = yield this.method(this.url, s));
422
- } catch (d) {
423
- this.tableStatus = o.error, console.error(d);
283
+ this.api && (e = yield this.api(a)), this.url && (e = yield this.method(this.url, a));
284
+ } catch (n) {
285
+ this.tableStatus = o.error, console.error(n);
424
286
  return;
425
287
  }
426
288
  } else {
@@ -430,44 +292,44 @@ const o = {
430
292
  });
431
293
  return;
432
294
  }
433
- const { data: l } = e || {}, { total: u, records: n } = l || {};
434
- this.page.total = Number(u), this.records = n, !n || !n.length ? this.tableStatus = o.empty : this.tableStatus = o.success, this.$refs.table.doLayout(), this.$emit("page-loaded", l);
295
+ const { data: l } = e || {}, { total: c, records: h } = l || {};
296
+ this.page.total = Number(c), this.records = h, !h || !h.length ? this.tableStatus = o.empty : this.tableStatus = o.success, this.$refs.table.doLayout(), this.$emit("page-loaded", l);
435
297
  });
436
298
  },
437
299
  refresh() {
438
- return h(this, null, function* () {
300
+ return d(this, null, function* () {
439
301
  yield this.getPage();
440
302
  });
441
303
  },
442
304
  reload() {
443
- return h(this, null, function* () {
444
- this.page = m(c({}, this.$options.data.call(this).page), {
305
+ return d(this, null, function* () {
306
+ this.page = b(g({}, this.$options.data.call(this).page), {
445
307
  total: this.page.total
446
308
  });
447
309
  });
448
310
  },
449
- scrollTo(e, a) {
450
- e && (this.$refs.table.bodyWrapper.scrollTop = e), a && (this.$refs.table.bodyWrapper.scrollLeft = a);
311
+ scrollTo(e, t) {
312
+ e && (this.$refs.table.bodyWrapper.scrollTop = e), t && (this.$refs.table.bodyWrapper.scrollLeft = t);
451
313
  }
452
314
  }
453
- }, T = {};
454
- var O = /* @__PURE__ */ B(
455
- R,
456
- E,
315
+ }, $ = {};
316
+ var R = /* @__PURE__ */ C(
317
+ M,
457
318
  A,
319
+ x,
458
320
  !1,
459
- L,
321
+ W,
460
322
  null,
461
323
  null,
462
324
  null
463
325
  );
464
- function L(e) {
465
- for (let a in T)
466
- this[a] = T[a];
326
+ function W(e) {
327
+ for (let t in $)
328
+ this[t] = $[t];
467
329
  }
468
- const D = /* @__PURE__ */ function() {
469
- return O.exports;
330
+ const I = /* @__PURE__ */ function() {
331
+ return R.exports;
470
332
  }();
471
333
  export {
472
- D as default
334
+ I as default
473
335
  };