@web-utils/component 2.8.29 → 2.9.0

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 (52) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunks/{FormTemp.155fd6b4.mjs → FormTemp.a70cc55d.mjs} +2 -2
  3. package/chunks/{dataformat.4100726d.mjs → dataformat.504544b2.mjs} +1 -1
  4. package/chunks/{dic.9e90e2a4.mjs → dic.9277cfae.mjs} +1 -1
  5. package/chunks/{event.ebd9a3a6.mjs → event.67cfd4fb.mjs} +2 -2
  6. package/chunks/{init.27f6a0c4.mjs → init.7338d214.mjs} +2 -2
  7. package/chunks/util.c5724c4a.mjs +259 -0
  8. package/custom-scrollbar/index.mjs +60 -111
  9. package/dialog-form/index.mjs +1 -1
  10. package/flow/index.mjs +1 -1
  11. package/flow-node/index.mjs +1 -1
  12. package/fy-array/index.mjs +2 -2
  13. package/fy-cascader/index.mjs +1 -1
  14. package/fy-checkbox/index.mjs +1 -1
  15. package/fy-code/index.mjs +1 -1
  16. package/fy-curd/index.mjs +5 -5
  17. package/fy-date/index.mjs +1 -1
  18. package/fy-draggable/index.mjs +1 -1
  19. package/fy-dynamic/index.mjs +2 -2
  20. package/fy-empty/index.mjs +1 -1
  21. package/fy-form/index.mjs +5 -5
  22. package/fy-form-design/index.mjs +1 -1
  23. package/fy-input/index.mjs +1 -1
  24. package/fy-input-color/index.mjs +1 -1
  25. package/fy-input-icon/index.mjs +1 -1
  26. package/fy-input-map/index.mjs +1 -1
  27. package/fy-input-number/index.mjs +1 -1
  28. package/fy-input-table/index.mjs +1 -1
  29. package/fy-input-tree/index.mjs +1 -1
  30. package/fy-radio/index.mjs +1 -1
  31. package/fy-rate/index.mjs +1 -1
  32. package/fy-select/index.mjs +3 -3
  33. package/fy-slider/index.mjs +2 -2
  34. package/fy-switch/index.mjs +1 -1
  35. package/fy-time/index.mjs +1 -1
  36. package/fy-title/index.mjs +1 -1
  37. package/fy-tree/index.mjs +1 -1
  38. package/fy-u-editor/index.mjs +1 -1
  39. package/fy-upload/index.mjs +2 -2
  40. package/image-cropper/index.mjs +1 -1
  41. package/image-preview/index.mjs +1 -1
  42. package/license/index.mjs +1 -1
  43. package/login/index.mjs +1 -1
  44. package/package.json +7 -2
  45. package/record-video/index.mjs +1 -1
  46. package/search/index.mjs +2 -2
  47. package/search-popover/index.mjs +1 -1
  48. package/sign/index.mjs +1 -1
  49. package/text-ellipsis/index.mjs +1 -1
  50. package/verify/index.mjs +1 -1
  51. package/web-types.json +10 -18
  52. package/chunks/util.d691afb6.mjs +0 -266
@@ -29,7 +29,7 @@ import { isBlank as C } from "@web-utils/core";
29
29
  import b from "@web-utils/component/monaco-editor";
30
30
  import v from "vuedraggable";
31
31
  import { c as _ } from "../chunks/json-beautifier.21cfffea.mjs";
32
- import { d as m, z as h } from "../chunks/util.d691afb6.mjs";
32
+ import { d as m, z as h } from "../chunks/util.c5724c4a.mjs";
33
33
  import { cloneDeep as g } from "@web-utils/integrations/lodash";
34
34
  import "@web-utils/component/fy-u-editor/style.css";
35
35
  import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -1,4 +1,4 @@
1
- import { p as a, e as p } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as a, e as p } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var s = function() {
4
4
  var e = this, t = e.$createElement, r = e._self._c || t;
@@ -1,4 +1,4 @@
1
- import { p as a, e as o } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as a, e as o } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var c = function() {
4
4
  var e = this, t = e.$createElement, l = e._self._c || t;
@@ -1,4 +1,4 @@
1
- import { p as s, e as o } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as s, e as o } from "../chunks/event.67cfd4fb.mjs";
2
2
  import r from "@web-utils/component/icon-temp";
3
3
  import "@web-utils/component/icon-temp/style.css";
4
4
  import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -1,4 +1,4 @@
1
- import { p, e as u } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p, e as u } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { isBlank as d } from "@web-utils/core";
3
3
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var m = function() {
@@ -1,4 +1,4 @@
1
- import { p as o, e as a } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as o, e as a } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var i = function() {
4
4
  var e = this, t = e.$createElement, r = e._self._c || t;
@@ -1,4 +1,4 @@
1
- import { p as o, e as r } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as o, e as r } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { isBlank as n } from "@web-utils/core";
3
3
  import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var h = function() {
@@ -1,4 +1,4 @@
1
- import { p as u, e as h } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as u, e as h } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { isBlank as r } from "@web-utils/core";
3
3
  import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var f = function() {
@@ -1,4 +1,4 @@
1
- import { p as l, e as s } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as l, e as s } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var c = function() {
4
4
  var e = this, t = e.$createElement, a = e._self._c || t;
package/fy-rate/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as a, e as r } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as a, e as r } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var i = function() {
4
4
  var e = this, o = e.$createElement, s = e._self._c || o;
@@ -1,6 +1,6 @@
1
- import { p as r, e as c } from "../chunks/event.ebd9a3a6.mjs";
2
- import { s as d } from "../chunks/dic.9e90e2a4.mjs";
3
- import { b as u } from "../chunks/util.d691afb6.mjs";
1
+ import { p as r, e as c } from "../chunks/event.67cfd4fb.mjs";
2
+ import { s as d } from "../chunks/dic.9277cfae.mjs";
3
+ import { b as u } from "../chunks/util.c5724c4a.mjs";
4
4
  import { isBlank as p } from "@web-utils/core";
5
5
  import { p as h } from "../chunks/packages.1fc9ccba.mjs";
6
6
  import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -1,5 +1,5 @@
1
- import { p as r, e as l } from "../chunks/event.ebd9a3a6.mjs";
2
- import { s as i } from "../chunks/util.d691afb6.mjs";
1
+ import { p as r, e as l } from "../chunks/event.67cfd4fb.mjs";
2
+ import { s as i } from "../chunks/util.c5724c4a.mjs";
3
3
  import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var p = function() {
5
5
  var t = this, o = t.$createElement, s = t._self._c || o;
@@ -1,4 +1,4 @@
1
- import { p as c, e as l } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as c, e as l } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, a = e._self._c || t;
package/fy-time/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as o, e as l } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as o, e as l } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { isBlank as i } from "@web-utils/core";
3
3
  import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var c = function() {
@@ -1,4 +1,4 @@
1
- import { p as r, e as _ } from "../chunks/event.ebd9a3a6.mjs";
1
+ import { p as r, e as _ } from "../chunks/event.67cfd4fb.mjs";
2
2
  import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, n = e._self._c || t;
package/fy-tree/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as d, o as l, a as r } from "../chunks/util.d691afb6.mjs";
1
+ import { s as d, o as l, a as r } from "../chunks/util.c5724c4a.mjs";
2
2
  import { p as u } from "../chunks/permission.ce5d2121.mjs";
3
3
  import { isBlank as p } from "@web-utils/core";
4
4
  import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -36,7 +36,7 @@ var p = (t, e, r) => new Promise((s, i) => {
36
36
  });
37
37
  import "@wangeditor/editor/dist/css/style.css";
38
38
  import { createEditor as _, createToolbar as b } from "@wangeditor/editor";
39
- import { p as x } from "../chunks/util.d691afb6.mjs";
39
+ import { p as x } from "../chunks/util.c5724c4a.mjs";
40
40
  import { n as F } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
41
41
  const A = (t) => {
42
42
  const { region: e, endpoint: r, accessKeyId: s, accessKeySecret: i, bucket: a } = t;
@@ -1,5 +1,5 @@
1
- import { p as I, e as B } from "../chunks/event.ebd9a3a6.mjs";
2
- import { B as N, i as k, p as K } from "../chunks/util.d691afb6.mjs";
1
+ import { p as I, e as B } from "../chunks/event.67cfd4fb.mjs";
2
+ import { B as N, i as k, p as K } from "../chunks/util.c5724c4a.mjs";
3
3
  import { p as F } from "../chunks/packages.1fc9ccba.mjs";
4
4
  import { isBlank as b } from "@web-utils/core";
5
5
  import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -9,7 +9,7 @@ var a = (e, o, t) => o in e ? c(e, o, { enumerable: !0, configurable: !0, writab
9
9
  u.call(o, t) && a(e, t, o[t]);
10
10
  return e;
11
11
  };
12
- import { B as f } from "../chunks/util.d691afb6.mjs";
12
+ import { B as f } from "../chunks/util.c5724c4a.mjs";
13
13
  import { VueCropper as m } from "vue-cropper";
14
14
  import d from "vue";
15
15
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -9,7 +9,7 @@ var r = (e, i, t) => i in e ? v(e, i, { enumerable: !0, configurable: !0, writab
9
9
  h.call(i, t) && r(e, t, i[t]);
10
10
  return e;
11
11
  };
12
- import { i as p } from "../chunks/util.d691afb6.mjs";
12
+ import { i as p } from "../chunks/util.c5724c4a.mjs";
13
13
  import { setPx as u } from "@web-utils/core";
14
14
  import f from "vue";
15
15
  import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
package/license/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as l } from "../chunks/util.d691afb6.mjs";
1
+ import { C as l } from "../chunks/util.c5724c4a.mjs";
2
2
  import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var m = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
package/login/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as l } from "../chunks/util.d691afb6.mjs";
1
+ import { s as l } from "../chunks/util.c5724c4a.mjs";
2
2
  import { isBlank as a } from "@web-utils/core";
3
3
  import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var p = function() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "2.8.29",
4
+ "version": "2.9.0",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -13,5 +13,10 @@
13
13
  },
14
14
  "./*": "./*"
15
15
  },
16
- "web-types": "web-types.json"
16
+ "web-types": "web-types.json",
17
+ "sideEffects": [
18
+ "*.css",
19
+ "*.scss",
20
+ "*.sass"
21
+ ]
17
22
  }
@@ -1,4 +1,4 @@
1
- import { s as r } from "../chunks/util.d691afb6.mjs";
1
+ import { s as r } from "../chunks/util.c5724c4a.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  let n = class {
4
4
  /**
package/search/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as i } from "../chunks/util.d691afb6.mjs";
2
- import { i as n } from "../chunks/init.27f6a0c4.mjs";
1
+ import { a as i } from "../chunks/util.c5724c4a.mjs";
2
+ import { i as n } from "../chunks/init.7338d214.mjs";
3
3
  import { isBlank as o } from "@web-utils/core";
4
4
  import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
5
  var h = function() {
@@ -16,7 +16,7 @@ var c = (t, r, e) => new Promise((s, o) => {
16
16
  });
17
17
  import { copy as d, isInContainer as p } from "@web-utils/core";
18
18
  import v from "element-ui/lib/utils/clickoutside";
19
- import { z as f } from "../chunks/util.d691afb6.mjs";
19
+ import { z as f } from "../chunks/util.c5724c4a.mjs";
20
20
  import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
21
  var w = function() {
22
22
  var t = this, r = t.$createElement, e = t._self._c || r;
package/sign/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as g } from "../chunks/util.d691afb6.mjs";
1
+ import { s as g } from "../chunks/util.c5724c4a.mjs";
2
2
  import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var _ = function() {
4
4
  var t = this, n = t.$createElement, s = t._self._c || n;
@@ -1,4 +1,4 @@
1
- import { s as o } from "../chunks/util.d691afb6.mjs";
1
+ import { s as o } from "../chunks/util.c5724c4a.mjs";
2
2
  import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var h = function() {
4
4
  var t = this, e = t.$createElement, i = t._self._c || e;
package/verify/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as n } from "../chunks/util.d691afb6.mjs";
1
+ import { s as n } from "../chunks/util.c5724c4a.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var l = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.8.29",
5
+ "version": "2.9.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -1027,20 +1027,20 @@
1027
1027
  "description": "",
1028
1028
  "attributes": [
1029
1029
  {
1030
- "name": "options",
1030
+ "name": "element",
1031
1031
  "value": {
1032
1032
  "kind": "expression",
1033
- "type": "object"
1033
+ "type": "string"
1034
1034
  },
1035
- "default": "undefined"
1035
+ "default": "'div'"
1036
1036
  },
1037
1037
  {
1038
- "name": "extensions",
1038
+ "name": "options",
1039
1039
  "value": {
1040
1040
  "kind": "expression",
1041
- "type": "string|array|object"
1041
+ "type": "object"
1042
1042
  },
1043
- "default": "undefined"
1043
+ "default": ""
1044
1044
  },
1045
1045
  {
1046
1046
  "name": "theme",
@@ -1048,7 +1048,7 @@
1048
1048
  "kind": "expression",
1049
1049
  "type": "string"
1050
1050
  },
1051
- "default": "undefined"
1051
+ "default": "'os-theme-dark'"
1052
1052
  },
1053
1053
  {
1054
1054
  "name": "onLoadMore",
@@ -1056,7 +1056,7 @@
1056
1056
  "kind": "expression",
1057
1057
  "type": "func"
1058
1058
  },
1059
- "default": "null"
1059
+ "default": ""
1060
1060
  },
1061
1061
  {
1062
1062
  "name": "onScroll",
@@ -1072,15 +1072,7 @@
1072
1072
  "kind": "expression",
1073
1073
  "type": "boolean"
1074
1074
  },
1075
- "default": "false"
1076
- },
1077
- {
1078
- "name": "textarea",
1079
- "value": {
1080
- "kind": "expression",
1081
- "type": "boolean"
1082
- },
1083
- "default": "false"
1075
+ "default": ""
1084
1076
  }
1085
1077
  ],
1086
1078
  "slots": [
@@ -1,266 +0,0 @@
1
- import { isBlank as l, getObjType as p } from "@web-utils/core";
2
- const O = "fy-", f = {
3
- rowKey: "id",
4
- rowParentKey: "parentId",
5
- nodeKey: "id",
6
- label: "label",
7
- value: "value",
8
- desc: "desc",
9
- groups: "groups",
10
- title: "title",
11
- leaf: "leaf",
12
- children: "children",
13
- hasChildren: "hasChildren",
14
- labelText: "名称",
15
- disabled: "disabled"
16
- }, _ = {
17
- name: "name",
18
- url: "url",
19
- fileName: "file",
20
- res: ""
21
- }, $ = [
22
- "dates",
23
- "date",
24
- "datetime",
25
- "datetimerange",
26
- "daterange",
27
- "time",
28
- "timerange",
29
- "week",
30
- "month",
31
- "monthrange",
32
- "year"
33
- ], C = ["tree", "number", "icon", "color", "table", "map"], S = ["img", "array", "url"], N = ["cascader", "tree", "select"], D = ["slider"], M = S.concat(["upload", "dynamic", "map", "checkbox", "cascader", "dynamic", "timerange", "monthrange", "daterange", "datetimerange", "dates"]), R = $.concat(["select", "checkbox", "radio", "cascader", "tree", "color", "icon", "table", "map"]), w = " | ", v = ",", m = {
34
- img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
35
- video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
36
- audio: /\.(mp3|wav|MP3|WAV)/
37
- }, k = (e, n) => {
38
- if (!l(e))
39
- return m.audio.test(e) || n === "audio" ? "audio" : m.video.test(e) || n === "video" ? "video" : m.img.test(e) || n === "img" ? "img" : !1;
40
- };
41
- function K(e = 0, n = 2) {
42
- return Number(e.toFixed(n));
43
- }
44
- function V(e, n = "") {
45
- let r = u(e);
46
- return l(n) || n.split(".").forEach((t) => {
47
- r = l(r[t]) ? "" : r[t];
48
- }), r;
49
- }
50
- const P = (e) => new Function(`return ${e}`)();
51
- function F(e, n = "", r) {
52
- let t;
53
- const o = p(r);
54
- return l(r) ? o === "array" ? t = `obj.${n}=[]` : o === "object" ? t = `obj.${n}={}` : ["number", "boolean"].includes(o) ? t = `obj.${n}=undefined` : t = `obj.${n}=''` : o === "string" ? t = `obj.${n}='${r}'` : t = `obj.${n}=${r}`, P(t), e;
55
- }
56
- function G(e, n) {
57
- typeof e == "object" && e instanceof Blob && (e = URL.createObjectURL(e));
58
- const r = document.createElement("a");
59
- r.href = e, r.download = n || "";
60
- let t;
61
- window.MouseEvent ? t = new MouseEvent("click") : (t = document.createEvent("MouseEvents"), t.initMouseEvent(
62
- "click",
63
- !0,
64
- !1,
65
- window,
66
- 0,
67
- 0,
68
- 0,
69
- 0,
70
- 0,
71
- !1,
72
- !1,
73
- !1,
74
- !1,
75
- 0,
76
- null
77
- )), r.dispatchEvent(t);
78
- }
79
- function U(e) {
80
- return e.forEach((n, r) => {
81
- e[r] = Number(n);
82
- }), e;
83
- }
84
- function b(...e) {
85
- let n = e[0] || {}, r = !1;
86
- const t = Array.prototype.slice.call(e);
87
- let o = 1, s, i, c, a, d = !1;
88
- for (typeof n == "boolean" && (r = n, o++, n = e[1]); o < t.length; o++)
89
- if ((s = t[o]) != null)
90
- for (c in s)
91
- a = s[c], i = n[c], r && (toString.call(a) === "[object Object]" || (d = toString.call(a) === "[object Array]")) ? (d ? i = toString.call(i) === "[object Array]" ? i : [] : i = toString.call(i) === "[object Object]" ? i : {}, n[c] = b(r, i, a)) : a !== void 0 && a !== i && (n[c] = a);
92
- return n;
93
- }
94
- function B(e, n) {
95
- const r = n.split("."), t = r.splice(0, 1)[0], o = {};
96
- if (o[t] = {}, r.length >= 2) {
97
- const s = "{", i = "}";
98
- let c = "";
99
- r.forEach((a) => {
100
- c = `${c}${s}"${a}":`;
101
- }), c = `${c}""`;
102
- for (let a = 0; a < r.length; a++)
103
- c = `${c}${i}`;
104
- c = JSON.parse(c), o[t] = c;
105
- }
106
- return e = b(!0, e, o), e;
107
- }
108
- function J(e, n) {
109
- const r = e.split(","), t = r[0].match(/:(.*?);/)[1], o = atob(r[1]);
110
- let s = o.length;
111
- const i = new Uint8Array(s);
112
- for (; s--; )
113
- i[s] = o.charCodeAt(s);
114
- return new File([i], n, {
115
- type: t
116
- });
117
- }
118
- function W(e, n, r = "prop") {
119
- let t = -1;
120
- const o = (() => {
121
- let s;
122
- return e.forEach((i) => {
123
- i.column ? s = "group" : i.children && (s = "tree");
124
- }), s;
125
- })();
126
- return o === "group" ? e.forEach((s) => {
127
- const i = y(s.column, n, r, !0);
128
- i !== -1 && (t = i);
129
- }) : o === "tree" ? t = E(e, n, { value: r }, !0) : t = y(e, n, r, !0), t;
130
- }
131
- function Y() {
132
- const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", n = e.length;
133
- let r = "";
134
- for (let t = 0; t < 16; t++)
135
- r += e.charAt(Math.floor(Math.random() * n));
136
- return r;
137
- }
138
- const u = (e) => {
139
- const n = p(e);
140
- let r;
141
- if (n === "array")
142
- r = [];
143
- else if (n === "object")
144
- r = {};
145
- else
146
- return e;
147
- if (n === "array") {
148
- e = e;
149
- let t = 0;
150
- const o = e.length;
151
- for (; t < o; t++)
152
- e[t] && delete e[t].$parent, r.push(u(e[t]));
153
- } else if (n === "object")
154
- for (const t in e) {
155
- const o = e[t];
156
- o && delete o.$parent, r[t] = u(e[t]);
157
- }
158
- return r;
159
- }, H = (e, n = "") => (e || (e = n), e ? (e = `${e}`, e.indexOf("%") === -1 && e.indexOf("px") === -1 && (e = `${e}px`), e) : ""), T = (e, n) => l(e) ? e : n === "number" ? Number(e) : n === "string" ? `${e}` : e, j = (e = [], n = {}, r) => {
160
- const t = n.value || f.value, o = n.children || f.children;
161
- return e.forEach((s) => {
162
- s[t] = T(s[t], r), s[o] && j(s[o], n, r);
163
- }), e;
164
- }, q = (e, n, r) => {
165
- if (l(e))
166
- return n;
167
- const t = n instanceof Array, o = t ? n : [n];
168
- r = r || f;
169
- const s = [];
170
- for (let i = 0; i < o.length; i++)
171
- s.push(E(e, o[i], r) || o[i]);
172
- return t ? s.join(w) : s.join();
173
- }, z = (e, n = ["", "$"], r = !0) => {
174
- const t = r ? u(e) : e;
175
- for (const o in t)
176
- n.includes("") && l(t[o]) && delete t[o], n.includes("$") && o.indexOf("$") !== -1 && delete t[o];
177
- return t;
178
- }, I = (e = [], n = {}) => {
179
- let r = u(e);
180
- const t = n[f.groups] || f.groups;
181
- return e.forEach((o) => {
182
- o[t] && (r = r.concat(o[t]));
183
- }), r;
184
- }, E = (e, n, r, t = null) => {
185
- let o;
186
- t || (e = I(e, r));
187
- const s = (i) => {
188
- const c = r.label || f.label, a = r.value || f.value, d = r.children || f.children;
189
- for (let g = 0; g < i.length; g++) {
190
- const h = i[g], A = h[d] || [];
191
- h[a] === n ? o = t ? h : h[c] : s(A);
192
- }
193
- };
194
- return s(e), o;
195
- }, L = (e) => (Array.isArray(e) ? e : e.data) || [], Q = (e, n = "", r = null) => {
196
- const t = n.split(".");
197
- let o = e;
198
- return t[0] === "" && r !== "object" ? L(e) : (t[0] !== "" && t.forEach((s) => {
199
- o = o[s];
200
- }), o);
201
- }, y = (e, n, r, t) => {
202
- r = r || f.value;
203
- for (let o = 0; o < e.length; o++)
204
- if (e[o][r] === n)
205
- return t ? e[o] : o;
206
- return -1;
207
- }, X = (e = "", n) => {
208
- const r = e.toString().length;
209
- e = "";
210
- for (let t = 0; t < r; t++)
211
- e = e + n;
212
- return e;
213
- }, Z = (e = [], n, r) => e.filter((t) => !l(t[n])).sort((t, o) => r(t, o)).concat(e.filter((t) => l(t[n]))), ee = (e, n) => e ? (n.forEach((r) => {
214
- if (r.includes("$"))
215
- delete e[r];
216
- else if (!l(e[r])) {
217
- const t = p(e[r]);
218
- t === "array" ? e[r] = [] : t === "object" ? e[r] = {} : ["number", "boolean"].includes(t) ? e[r] = void 0 : e[r] = "";
219
- }
220
- }), e) : {}, te = (e, n) => typeof e == "boolean" ? e : l(e) ? n : e;
221
- function ne(e = {}, n) {
222
- n = n || this;
223
- const r = ["uploadPreview", "uploadBefore", "uploadAfter", "uploadDelete", "uploadError", "uploadExceed"], t = {};
224
- return e.type === "upload" ? r.forEach((o) => {
225
- e[o] || (t[o] = n[o]);
226
- }) : r.forEach((o) => {
227
- t[o] = n[o];
228
- }), t;
229
- }
230
- export {
231
- M as A,
232
- J as B,
233
- G as C,
234
- _ as D,
235
- C as I,
236
- O as K,
237
- N as M,
238
- D as R,
239
- R as S,
240
- f as a,
241
- v as b,
242
- T as c,
243
- u as d,
244
- S as e,
245
- W as f,
246
- B as g,
247
- $ as h,
248
- k as i,
249
- z as j,
250
- w as k,
251
- Z as l,
252
- j as m,
253
- Q as n,
254
- te as o,
255
- V as p,
256
- U as q,
257
- Y as r,
258
- H as s,
259
- X as t,
260
- ne as u,
261
- q as v,
262
- K as w,
263
- F as x,
264
- ee as y,
265
- P as z
266
- };