@web-utils/form-ui 1.0.0-beta86 → 1.0.0-beta88

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 (212) hide show
  1. package/affix/index.mjs +1 -1
  2. package/chunks/{4kjeIiag2.mjs → 5RCAxanu2.mjs} +3 -3
  3. package/chunks/{vebd58-O.mjs → 9ec0Wti82.mjs} +1 -1
  4. package/chunks/{BxcsELcB2.mjs → B7BaAm4k2.mjs} +2 -2
  5. package/chunks/{DSTNXl142.mjs → BFhVUqpP2.mjs} +2 -2
  6. package/chunks/BLKcXIrX.mjs +517 -0
  7. package/chunks/{C8h_P_kl2.mjs → BSOrm2U4.mjs} +2 -2
  8. package/chunks/BbUUI4mF.mjs +204 -0
  9. package/chunks/{D_q3C3v4.mjs → BegZOXrr.mjs} +4 -4
  10. package/chunks/{BIy6bO4j.mjs → Bg01eBVa2.mjs} +2 -2
  11. package/chunks/{DJlgX5ty.mjs → BhPVs8Ju.mjs} +1 -1
  12. package/chunks/{DrvwVjzq2.mjs → BmbhIxPF2.mjs} +2 -2
  13. package/chunks/{BYu4QaK72.mjs → Br3whXEJ2.mjs} +2 -2
  14. package/chunks/{y1Q66LEa2.mjs → BuI82QMb2.mjs} +1 -1
  15. package/chunks/{CCpKg0cM.mjs → Bv7b2DXh2.mjs} +2 -2
  16. package/chunks/{ofu8wJKp.mjs → C-s-88fN2.mjs} +1 -1
  17. package/chunks/{CET31mBi.mjs → C54nZqvy2.mjs} +1 -1
  18. package/chunks/CBHGpbDK.mjs +56 -0
  19. package/chunks/CFpGTE5U2.mjs +221 -0
  20. package/chunks/CIihGrgY.mjs +30 -0
  21. package/chunks/{XQwnPkab2.mjs → CW021IPm2.mjs} +1 -1
  22. package/chunks/{CLn5E7NV.mjs → CW1nopZH.mjs} +1 -1
  23. package/chunks/CY2YrwMT.mjs +302 -0
  24. package/chunks/{DVF9q3oX.mjs → CdvD0NRo2.mjs} +2 -2
  25. package/chunks/Cf_h9S62.mjs +378 -0
  26. package/chunks/{8h-xBLL82.mjs → CixNVW_T2.mjs} +10 -10
  27. package/chunks/{By-W0XXn2.mjs → ClkLQjZ82.mjs} +1 -1
  28. package/chunks/CsNZt53l.mjs +4074 -0
  29. package/chunks/{HFLY8Wla.mjs → D1mQTnJ8.mjs} +181 -185
  30. package/chunks/{CjCNtCWd.mjs → D20CQ-B6.mjs} +1 -1
  31. package/chunks/{BxuM-fgJ.mjs → D2kLAzxW.mjs} +1 -1
  32. package/chunks/{tfaGdZX2.mjs → D8_fl5Oq.mjs} +4 -4
  33. package/chunks/{C28bnMcw.mjs → DC3DNg_r.mjs} +1 -1
  34. package/chunks/{DWN5uzm02.mjs → DL4xcGES2.mjs} +10 -10
  35. package/chunks/{SWO35fS42.mjs → Dd4RtBO02.mjs} +1 -1
  36. package/chunks/{3nLaRSbR2.mjs → DdHN2Nv72.mjs} +1 -1
  37. package/chunks/{BrSqLOi5.mjs → DmJaItEY.mjs} +6 -6
  38. package/chunks/{CkHQY4ME2.mjs → Dnapnskp2.mjs} +1 -1
  39. package/chunks/{vHsAJZRT.mjs → MUk_IdeO2.mjs} +2 -2
  40. package/chunks/NAZ8HFBg.mjs +340 -0
  41. package/chunks/{saZ_qJOT.mjs → aOv3rI7q.mjs} +1 -1
  42. package/chunks/{mqi8hesW2.mjs → dxZzZgUn.mjs} +2 -2
  43. package/chunks/{Tq3_dajC2.mjs → m5oFTe8Y2.mjs} +1 -1
  44. package/chunks/{Dst9_BmZ.mjs → n7IipIUY.mjs} +3 -3
  45. package/chunks/{SInS7QSL.mjs → vCOhFr2x.mjs} +1 -1
  46. package/constants/index.d.ts +2 -0
  47. package/constants/index.mjs +2 -2
  48. package/data-table-picker/index.mjs +1 -1
  49. package/dialog-form/index.d.ts +4 -0
  50. package/dialog-form/index.mjs +154 -0
  51. package/dialog-form/style.css +1 -0
  52. package/empty-view/index.d.ts +2 -2
  53. package/flex-box/index.mjs +1 -1
  54. package/flex-column/index.mjs +1 -1
  55. package/flex-item/index.mjs +1 -1
  56. package/flex-row/index.mjs +1 -1
  57. package/flow-designer/index.mjs +1 -1
  58. package/form-cascader/index.mjs +1 -1
  59. package/form-checkbox/index.mjs +1 -1
  60. package/form-checkbox-group/index.mjs +1 -1
  61. package/form-date-picker/index.d.ts +4 -4
  62. package/form-date-picker/index.mjs +1 -1
  63. package/form-holder/index.mjs +1 -1
  64. package/form-image/index.mjs +1 -1
  65. package/form-input/index.mjs +1 -1
  66. package/form-input-cron-expression/index.mjs +1 -1
  67. package/form-input-email/index.mjs +1 -1
  68. package/form-input-id-card/index.mjs +1 -1
  69. package/form-input-number/index.mjs +1 -1
  70. package/form-input-phone-number/index.mjs +1 -1
  71. package/form-input-tag/index.mjs +1 -1
  72. package/form-input-time/index.mjs +1 -1
  73. package/form-item/index.mjs +1 -1
  74. package/form-item-group/index.mjs +1 -1
  75. package/form-radio-group/index.mjs +1 -1
  76. package/form-rate/index.mjs +1 -1
  77. package/form-row/index.mjs +1 -1
  78. package/form-select/index.mjs +1 -1
  79. package/form-slider/index.mjs +1 -1
  80. package/form-switch/index.mjs +1 -1
  81. package/form-table/index.mjs +1 -1
  82. package/form-table-plus/index.mjs +1 -1
  83. package/form-text/index.mjs +1 -1
  84. package/form-textarea/index.mjs +1 -1
  85. package/form-time-select/index.mjs +1 -1
  86. package/form-tree-select/index.mjs +1 -1
  87. package/form-tree-select-multiple/index.mjs +1 -1
  88. package/form-view/index.mjs +2 -2
  89. package/fy-array/index.d.ts +234 -0
  90. package/fy-array/index.mjs +130 -0
  91. package/fy-array/style.css +1 -0
  92. package/fy-button/index.d.ts +18 -0
  93. package/fy-button/index.mjs +2 -0
  94. package/fy-button/style.css +1 -0
  95. package/fy-cascader/index.d.ts +298 -0
  96. package/fy-cascader/index.mjs +116 -0
  97. package/fy-checkbox/index.d.ts +231 -0
  98. package/fy-checkbox/index.mjs +100 -0
  99. package/fy-checkbox/style.css +1 -0
  100. package/fy-curd/index.d.ts +908 -0
  101. package/fy-curd/index.mjs +2 -0
  102. package/fy-date/index.d.ts +246 -0
  103. package/fy-date/index.mjs +79 -0
  104. package/fy-date/style.css +1 -0
  105. package/fy-dynamic/index.d.ts +268 -0
  106. package/fy-dynamic/index.mjs +2 -0
  107. package/fy-empty/index.d.ts +31 -0
  108. package/fy-empty/index.mjs +35 -0
  109. package/fy-empty/style.css +1 -0
  110. package/fy-form/index.d.ts +522 -0
  111. package/fy-form/index.mjs +2 -0
  112. package/fy-form/style.css +1 -0
  113. package/fy-input/index.d.ts +316 -0
  114. package/fy-input/index.mjs +122 -0
  115. package/fy-input-color/index.d.ts +235 -0
  116. package/fy-input-color/index.mjs +80 -0
  117. package/fy-input-icon/index.d.ts +244 -0
  118. package/fy-input-icon/index.mjs +133 -0
  119. package/fy-input-icon/style.css +1 -0
  120. package/fy-input-map/index.d.ts +266 -0
  121. package/fy-input-map/index.mjs +248 -0
  122. package/fy-input-map/style.css +1 -0
  123. package/fy-input-number/index.d.ts +266 -0
  124. package/fy-input-number/index.mjs +78 -0
  125. package/fy-input-table/index.d.ts +248 -0
  126. package/fy-input-table/index.mjs +166 -0
  127. package/fy-input-table/style.css +1 -0
  128. package/fy-input-tree/index.d.ts +351 -0
  129. package/fy-input-tree/index.mjs +266 -0
  130. package/fy-input-tree/style.css +1 -0
  131. package/fy-radio/index.d.ts +218 -0
  132. package/fy-radio/index.mjs +56 -0
  133. package/fy-radio/style.css +1 -0
  134. package/fy-rate/index.d.ts +288 -0
  135. package/fy-rate/index.mjs +90 -0
  136. package/fy-rate/style.css +1 -0
  137. package/fy-select/index.d.ts +324 -0
  138. package/fy-select/index.mjs +2 -0
  139. package/fy-select/style.css +1 -0
  140. package/fy-slider/index.d.ts +249 -0
  141. package/fy-slider/index.mjs +72 -0
  142. package/fy-switch/index.d.ts +229 -0
  143. package/fy-switch/index.mjs +71 -0
  144. package/fy-tabs/index.d.ts +20 -0
  145. package/fy-tabs/index.mjs +50 -0
  146. package/fy-time/index.d.ts +704 -0
  147. package/fy-time/index.mjs +85 -0
  148. package/fy-title/index.d.ts +224 -0
  149. package/fy-title/index.mjs +18 -0
  150. package/fy-title/style.css +1 -0
  151. package/fy-tree/index.d.ts +141 -0
  152. package/fy-tree/index.mjs +390 -0
  153. package/fy-tree/style.css +1 -0
  154. package/fy-u-editor/index.d.ts +116 -0
  155. package/fy-u-editor/index.mjs +2 -0
  156. package/fy-u-editor/style.css +1 -0
  157. package/fy-upload/index.d.ts +379 -0
  158. package/fy-upload/index.mjs +2 -0
  159. package/fy-upload/style.css +1 -0
  160. package/helper/avue.d.ts +36 -0
  161. package/helper/avue.mjs +35 -0
  162. package/helper/input.mjs +1 -1
  163. package/icon-temp/index.d.ts +19 -0
  164. package/icon-temp/index.mjs +27 -0
  165. package/icon-temp/style.css +1 -0
  166. package/image-viewer/index.d.ts +1 -1
  167. package/index.css +1 -1
  168. package/index.d.ts +31 -1
  169. package/index.mjs +118 -90
  170. package/keyboard/index.mjs +1 -1
  171. package/monaco-editor/index.d.ts +126 -0
  172. package/monaco-editor/index.mjs +2 -0
  173. package/monaco-editor/style.css +1 -0
  174. package/package.json +3 -1
  175. package/pageable-table/index.d.ts +1 -1
  176. package/pageable-table/index.mjs +1 -1
  177. package/photo-swipe/index.mjs +1 -1
  178. package/resolver/components.mjs +1 -1
  179. package/split-pane/index.mjs +1 -1
  180. package/sub-table/index.mjs +1 -1
  181. package/sub-table-plus/index.mjs +1 -1
  182. package/table-column-def/index.d.ts +6 -6
  183. package/table-view/index.mjs +4 -4
  184. package/tag-render/index.d.ts +1 -1
  185. package/toolbar/index.mjs +1 -1
  186. package/vue-cron/index.mjs +1 -1
  187. package/vue-tags-input/index.d.ts +1 -1
  188. package/vue-tree-select/index.mjs +1 -1
  189. package/watermark/index.mjs +1 -1
  190. package/web-types.json +1 -1
  191. package/x-input-tag/index.mjs +1 -1
  192. package/chunks/{DCqyZyF6.mjs → BCYFaOiB.mjs} +0 -0
  193. package/chunks/{B1luuf_A2.mjs → BJDeTpmp2.mjs} +0 -0
  194. package/chunks/{BhHMGhJ8.mjs → BcsscZAM.mjs} +0 -0
  195. package/chunks/{DbcxJ45j.mjs → BfW25VbY.mjs} +1 -1
  196. package/chunks/{6dNVtIN32.mjs → BjccroM8.mjs} +0 -0
  197. package/chunks/{BTGrh7dw2.mjs → Br0vC3nS2.mjs} +0 -0
  198. package/chunks/{BM5LdxU72.mjs → CB0zQsKV2.mjs} +0 -0
  199. package/chunks/{Bs926z902.mjs → CHqxWrj7.mjs} +1 -1
  200. package/chunks/{B5c0s3IR.mjs → CJwAjhLy.mjs} +1 -1
  201. package/chunks/{BAG_R87k2.mjs → CZnwC17w.mjs} +0 -0
  202. package/chunks/{tVHVSu5h.mjs → CbedyG4s.mjs} +4 -4
  203. package/chunks/{BwL9Xz1F.mjs → Cp1olyWc.mjs} +0 -0
  204. package/chunks/{KOJEsarR2.mjs → CpmWELPU.mjs} +0 -0
  205. package/chunks/{C-zPVdz-.mjs → D9ft-f6n.mjs} +1 -1
  206. package/chunks/{PEU1JRcN2.mjs → DEHzWyyp.mjs} +0 -0
  207. package/chunks/{CHmZyvFr.mjs → DJe2Reym.mjs} +0 -0
  208. package/chunks/{CpsHWpwH2.mjs → DNq7pbXh2.mjs} +0 -0
  209. package/chunks/{X-ckP2Hj.mjs → DOLQ28wD.mjs} +0 -0
  210. package/chunks/{tqW2DSco.mjs → fT8tFJVO.mjs} +1 -1
  211. /package/chunks/{Dkw6LNCq2.mjs → jG7vu3RX.mjs} +0 -0
  212. /package/chunks/{b0ve2YgF.mjs → mQG01w6Y.mjs} +0 -0
@@ -0,0 +1,302 @@
1
+ import { h as e } from "vue";
2
+ import { NOOP as t } from "@web-utils/core";
3
+ import * as n from "monaco-editor/esm/vs/editor/editor.api";
4
+ //#region src/components/avue/monaco-editor/json-beautifier.js
5
+ var r = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, i = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, a, o, s = {
6
+ "\b": "\\b",
7
+ " ": "\\t",
8
+ "\n": "\\n",
9
+ "\f": "\\f",
10
+ "\r": "\\r",
11
+ "\"": "\\\"",
12
+ "'": "\\'",
13
+ "\\": "\\\\"
14
+ }, c;
15
+ function l(e, t = {}) {
16
+ let n = t.space || 2, r = t.dropQuotesOnKeys !== !1, i = t.dropQuotesOnNumbers || !1, a = t.inlineShortArrays || !1, o = t.inlineShortArraysDepth || 1, s = t.quoteType || "single", c = t.minify || !1;
17
+ i && u(e);
18
+ let l = p(e, null, c ? void 0 : n, r, s);
19
+ if (a && !c) {
20
+ let e = f(l);
21
+ if (o > 1) for (let t = 1; t < o && (l = e, e = f(l), e !== l); t++);
22
+ l = e;
23
+ }
24
+ return l;
25
+ }
26
+ function u(e) {
27
+ if (!d(e)) return;
28
+ let t = Object.keys(e);
29
+ t && t.forEach(function(t) {
30
+ let n = e[t];
31
+ if (typeof n == "string") {
32
+ let r = n - 0;
33
+ e[t] = isNaN(r) ? n : r;
34
+ } else (d(n) || Array.isArray(n)) && u(n);
35
+ });
36
+ }
37
+ function d(e) {
38
+ return e && typeof e == "object";
39
+ }
40
+ function f(e, t) {
41
+ if (t || (t = 80), typeof t != "number" || t < 20) throw Error(`Invalid width '${t}'. Expecting number equal or larger than 20.`);
42
+ let n = e.split("\n"), r = 0, i = null, a = [];
43
+ for (; r < n.length;) {
44
+ let e = !!n[r].match(/\[/), o = !!n[r].match(/\],?/);
45
+ if (e && !o) a = [n[r]], i = r;
46
+ else if (o && !e && i) {
47
+ a.push((n[r] || "").trim());
48
+ let e = a.join(" ");
49
+ e.length < t && (n.splice(i, r - i + 1, e), r = i), i = null, a = [];
50
+ } else i && a.push((n[r] || "").trim());
51
+ r += 1;
52
+ }
53
+ return n.join("\n");
54
+ }
55
+ function p(e, t, n, r, i) {
56
+ let s;
57
+ if (a = "", o = "", typeof n == "number") for (s = 0; s < n; s += 1) o += " ";
58
+ else typeof n == "string" && (o = n);
59
+ if (c = t, t && typeof t != "function" && (typeof t != "object" || typeof t.length != "number")) throw Error("JSON.stringify");
60
+ return m("", { "": e }, r, i);
61
+ }
62
+ function m(e, t, n, r) {
63
+ let i, s, l, u, d = a, f, p = t[e];
64
+ switch (p && typeof p == "object" && typeof p.toJSON == "function" && (p = p.toJSON(e)), typeof c == "function" && (p = c.call(t, e, p)), typeof p) {
65
+ case "function": return p;
66
+ case "string": return h(p, r);
67
+ case "number": return isFinite(p) ? String(p) : "null";
68
+ case "boolean":
69
+ case "null": return String(p);
70
+ case "object":
71
+ if (!p) return "null";
72
+ if (a += o, f = [], Object.prototype.toString.apply(p) === "[object Array]") {
73
+ for (u = p.length, i = 0; i < u; i += 1) f[i] = m(i, p, n, r) || "null";
74
+ return l = f.length === 0 ? "[]" : a ? `[\n${a}${f.join(`,\n${a}`)}\n${d}]` : `[${f.join(",")}]`, a = d, l;
75
+ }
76
+ if (c && typeof c == "object") for (u = c.length, i = 0; i < u; i += 1) typeof c[i] == "string" && (s = c[i], l = m(s, p, n, r), l && f.push((n ? g(s, r) : h(s, r)) + (a ? ": " : ":") + l));
77
+ else for (s in p) Object.prototype.hasOwnProperty.call(p, s) && (l = m(s, p, n, r), l && f.push((n ? g(s, r) : h(s, r)) + (a ? ": " : ":") + l));
78
+ return l = f.length === 0 ? "{}" : a ? `{\n${a}${f.join(`,\n${a}`)}\n${d}}` : `{${f.join(",")}}`, a = d, l;
79
+ }
80
+ }
81
+ function h(e, t) {
82
+ r.lastIndex = 0;
83
+ let n = "\"";
84
+ return t === "single" && (n = "'"), r.test(e) ? n + e.replace(r, function(e) {
85
+ let t = s[e];
86
+ return typeof t == "string" ? t : `\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`;
87
+ }) + n : n + e + n;
88
+ }
89
+ function g(e, t) {
90
+ return i.test(e) ? e : h(e, t);
91
+ }
92
+ //#endregion
93
+ //#region src/components/avue/monaco-editor/MonacoEditor.vue
94
+ var _ = {
95
+ name: "MonacoEditor",
96
+ props: {
97
+ diffEditor: {
98
+ type: Boolean,
99
+ default: !1
100
+ },
101
+ width: {
102
+ type: [String, Number],
103
+ default: "100%"
104
+ },
105
+ height: {
106
+ type: [String, Number],
107
+ default: "100%"
108
+ },
109
+ original: String,
110
+ modelValue: [String, Object],
111
+ language: {
112
+ type: String,
113
+ default: "javascript"
114
+ },
115
+ theme: {
116
+ type: String,
117
+ default: "vs"
118
+ },
119
+ readOnly: {
120
+ type: Boolean,
121
+ default: !1
122
+ },
123
+ options: {
124
+ type: Object,
125
+ default() {
126
+ return {};
127
+ }
128
+ },
129
+ editorMounted: {
130
+ type: Function,
131
+ default: t
132
+ },
133
+ editorBeforeMount: {
134
+ type: Function,
135
+ default: t
136
+ },
137
+ keyIndex: { type: String }
138
+ },
139
+ emits: ["change", "update:modelValue"],
140
+ data() {
141
+ return { fullscreen: !1 };
142
+ },
143
+ computed: { style() {
144
+ return this.fullscreen ? {} : {
145
+ width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
146
+ height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
147
+ position: "relative"
148
+ };
149
+ } },
150
+ watch: {
151
+ options: {
152
+ deep: !0,
153
+ handler(e) {
154
+ var t;
155
+ (t = this.editor) == null || t.updateOptions(e);
156
+ }
157
+ },
158
+ keyIndex() {
159
+ let e = this.modelValue;
160
+ typeof e == "object" && (e = l(e)), this.editor && e !== this._getValue() && this._setValue(e);
161
+ },
162
+ language() {
163
+ if (this.editor) if (this.diffEditor) {
164
+ let { original: e, modified: t } = this.editor.getModel();
165
+ n.editor.setModelLanguage(e, this.language), n.editor.setModelLanguage(t, this.language);
166
+ } else n.editor.setModelLanguage(this.editor.getModel(), this.language);
167
+ },
168
+ theme() {
169
+ this.editor && n.editor.setTheme(this.theme);
170
+ },
171
+ style() {
172
+ this.$nextTick(() => {
173
+ var e;
174
+ (e = this.editor) == null || e.layout();
175
+ });
176
+ },
177
+ modelValue(e) {
178
+ this.editor && e !== this._getValue() && this._setValue(e);
179
+ }
180
+ },
181
+ mounted() {
182
+ this.initMonaco(), window.addEventListener("resize", this.onResize);
183
+ },
184
+ beforeUnmount() {
185
+ var e;
186
+ window.removeEventListener("resize", this.onResize), (e = this.editor) == null || e.dispose();
187
+ },
188
+ methods: {
189
+ initMonaco() {
190
+ let { modelValue: e, language: t, theme: r, readOnly: i, options: a } = this;
191
+ Object.assign(a, this._editorBeforeMount()), this.editor = n.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
192
+ value: typeof e == "string" ? e : l(e),
193
+ language: t,
194
+ theme: r,
195
+ readOnly: i,
196
+ ...a
197
+ }), this.diffEditor && this._setModel(this.modelValue, this.original), this._editorMounted(this.editor), this.editor.addAction({
198
+ id: "f1",
199
+ label: "full screen",
200
+ keybindings: [n.KeyCode.F1],
201
+ run: (e) => {
202
+ this.toggleFullScreen();
203
+ }
204
+ }), this.editor.addAction({
205
+ id: "escape",
206
+ label: "exit full screen",
207
+ keybindings: [n.KeyCode.Escape],
208
+ run: (e) => {
209
+ this.fullscreen = !1;
210
+ }
211
+ });
212
+ },
213
+ toggleFullScreen() {
214
+ this.fullscreen = !this.fullscreen;
215
+ },
216
+ async onResize() {
217
+ await this.$nextTick();
218
+ let e = this.$el;
219
+ this.editor.layout({
220
+ width: e.clientWidth,
221
+ height: e.clientHeight
222
+ });
223
+ },
224
+ _handleFullScreen() {
225
+ this.isMaximum ? this.minEditor() : this.maxEditor();
226
+ },
227
+ maxEditor() {
228
+ this.isMaximum = !0;
229
+ let e = this.$el;
230
+ this.originSize = {
231
+ width: e.clientWidth,
232
+ height: e.clientHeight
233
+ }, e.classList.add("editor-fullscreen"), this.editor.layout({
234
+ height: document.body.clientHeight,
235
+ width: document.body.clientWidth
236
+ }), document.addEventListener("keyup", this.handleEsc);
237
+ },
238
+ handleEsc(e) {
239
+ e.keyCode === 27 && this.minEditor();
240
+ },
241
+ minEditor() {
242
+ this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
243
+ height: this.originSize.height,
244
+ width: this.originSize.width
245
+ }), document.removeEventListener("keyup", this.handleEsc);
246
+ },
247
+ _getEditor() {
248
+ return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
249
+ },
250
+ _setModel(e, t) {
251
+ let { language: r } = this, i = n.editor.createModel(t, r), a = n.editor.createModel(e, r);
252
+ this.editor.setModel({
253
+ original: i,
254
+ modified: a
255
+ });
256
+ },
257
+ _setValue(e) {
258
+ let t = this._getEditor();
259
+ if (t) return t.setValue(e);
260
+ },
261
+ _getValue() {
262
+ let e = this._getEditor();
263
+ return e ? e.getValue() : "";
264
+ },
265
+ _editorBeforeMount() {
266
+ return this.editorBeforeMount(n) || {};
267
+ },
268
+ _editorMounted(e) {
269
+ this.editorMounted(e, n), this.diffEditor ? e.onDidUpdateDiff((e) => {
270
+ let t = this._getValue();
271
+ this._emitChange(t, e);
272
+ }) : e.onDidChangeModelContent((e) => {
273
+ let t = this._getValue();
274
+ this._emitChange(t, e);
275
+ });
276
+ },
277
+ _emitChange(e, t) {
278
+ this.$emit("change", e, t), this.$emit("update:modelValue", e);
279
+ }
280
+ },
281
+ render() {
282
+ let t = this.options.fullScreen;
283
+ return e("div", {
284
+ class: ["monaco_editor_container", this.fullscreen ? "fullscreen" : ""],
285
+ style: this.style
286
+ }, [t ? e("i", {
287
+ class: "el-icon-full-screen",
288
+ style: {
289
+ width: "1.2em",
290
+ height: "1.2em",
291
+ position: "absolute",
292
+ left: "0px",
293
+ top: "0px",
294
+ zIndex: "1",
295
+ cursor: "pointer"
296
+ },
297
+ on: { click: this._handleFullScreen }
298
+ }) : ""]);
299
+ }
300
+ };
301
+ //#endregion
302
+ export { _ as t };
@@ -1,5 +1,5 @@
1
- import { n as e } from "./b0ve2YgF.mjs";
2
- import { t } from "./C28bnMcw.mjs";
1
+ import { n as e } from "./mQG01w6Y.mjs";
2
+ import { t } from "./DC3DNg_r.mjs";
3
3
  import { allProps as n } from "../props/input.mjs";
4
4
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
@@ -0,0 +1,378 @@
1
+ import { C as e, D as t, E as n, S as r, T as i, b as a, o, r as s, u as c, w as l, x as u, y as d } from "./BbUUI4mF.mjs";
2
+ import { isBlank as f } from "@web-utils/core";
3
+ //#region src/components/avue/fy-from/crud/zh.ts
4
+ var p = {
5
+ common: {
6
+ condition: "条件",
7
+ display: "显示",
8
+ hide: "隐藏"
9
+ },
10
+ tip: {
11
+ select: "请选择",
12
+ input: "请输入"
13
+ },
14
+ check: { checkAll: "全选" },
15
+ upload: {
16
+ upload: "点击上传",
17
+ tip: "将文件拖到此处,或"
18
+ },
19
+ time: {
20
+ start: "开始",
21
+ end: "结束"
22
+ },
23
+ date: {
24
+ start: "开始",
25
+ end: "结束",
26
+ t: "今日",
27
+ y: "昨日",
28
+ n: "近7天",
29
+ a: "全部"
30
+ },
31
+ form: {
32
+ printBtn: "打 印",
33
+ mockBtn: "模 拟",
34
+ submitBtn: "提 交",
35
+ emptyBtn: "清 空"
36
+ },
37
+ crud: {
38
+ filter: {
39
+ addBtn: "新增条件",
40
+ clearBtn: "清空数据",
41
+ resetBtn: "清空条件",
42
+ cancelBtn: "取 消",
43
+ submitBtn: "确 定"
44
+ },
45
+ column: {
46
+ name: "列名",
47
+ hide: "隐藏",
48
+ fixed: "冻结",
49
+ filters: "过滤",
50
+ sortable: "排序",
51
+ index: "顺序",
52
+ width: "宽度"
53
+ },
54
+ tipStartTitle: "当前表格已选择",
55
+ tipEndTitle: "项",
56
+ editTitle: "编 辑",
57
+ copyTitle: "复 制",
58
+ addTitle: "新 增",
59
+ viewTitle: "查 看",
60
+ filterTitle: "过滤条件",
61
+ showTitle: "列显隐",
62
+ menu: "操作",
63
+ addBtn: "新 增",
64
+ show: "显 示",
65
+ hide: "隐 藏",
66
+ open: "展 开",
67
+ shrink: "收 缩",
68
+ printBtn: "打 印",
69
+ excelBtn: "导 出",
70
+ updateBtn: "修 改",
71
+ cancelBtn: "取 消",
72
+ searchBtn: "搜 索",
73
+ emptyBtn: "清 空",
74
+ menuBtn: "功 能",
75
+ saveBtn: "保 存",
76
+ viewBtn: "查 看",
77
+ editBtn: "编 辑",
78
+ copyBtn: "复 制",
79
+ delBtn: "删 除"
80
+ }
81
+ }, m = (e, t) => {
82
+ t = t || "";
83
+ let n = t.split("."), r = e, i = null;
84
+ for (let e = 0, t = n.length; e < t; e++) {
85
+ let a = n[e];
86
+ if (!r) break;
87
+ if (e === t - 1) {
88
+ i = r[a];
89
+ break;
90
+ }
91
+ r = r[a];
92
+ }
93
+ return i;
94
+ }, h = (e) => m(p, e), g = (e = []) => (e.forEach((t) => {
95
+ let n = t.cascader;
96
+ if (!f(n)) {
97
+ let r = t.prop;
98
+ n.forEach((t) => {
99
+ let n = c(e, t);
100
+ n !== -1 && (n.parentProp = r);
101
+ });
102
+ }
103
+ }), e), _ = 0, v = (e, t = 12, n = !1) => (n && (_ = 0), _ = _ + (e.span || t) + (e.offset || 0), _ === 24 ? _ = 0 : _ > 24 ? _ = (e.span || t) + (e.offset || 0) : e.row && _ !== 24 && (e.count = 24 - _, _ = 0), e), y = (e, t) => {
104
+ let { type: r, multiple: s, dataType: c, separator: l = ",", alone: u, emitPath: p, range: m } = t, h = e;
105
+ return i.includes(r) && s === !0 || a.includes(r) && p !== !1 || n.includes(r) && m === !0 ? (Array.isArray(h) || (h = f(h) ? [] : `${h}`.split(l) || []), h.forEach((e, t) => {
106
+ h[t] = o(e, c);
107
+ }), d.includes(r) && f(h) && u && (h = [""])) : h = o(h, c), h;
108
+ }, b = (e) => {
109
+ let t = e.type, n = e.searchRange, r = t;
110
+ if (e.searchType) return e.searchType;
111
+ if ([
112
+ "radio",
113
+ "checkbox",
114
+ "switch"
115
+ ].includes(t)) r = "select";
116
+ else if (u.includes(t)) {
117
+ let e = "range";
118
+ r = n ? t.includes(e) ? t : t + e : t.replace(e, "");
119
+ } else ["textarea"].includes(t) && (r = "input");
120
+ return r;
121
+ }, x = (e, t) => {
122
+ let n = e || "input";
123
+ if (f(t)) d.includes(e) ? n = "array" : ["time", "timerange"].includes(e) ? n = "time" : u.includes(e) ? n = "date" : [
124
+ "password",
125
+ "textarea",
126
+ "search"
127
+ ].includes(e) ? n = "input" : l.includes(e) && (n = `input-${e}`);
128
+ else return t;
129
+ return "fy-" + n;
130
+ }, S = (e = []) => {
131
+ let t = {};
132
+ return e.forEach((e) => {
133
+ a.includes(e.type) && e.emitPath !== !1 || i.includes(e.type) && e.multiple || e.dataType === "array" ? t[e.prop] = [] : n.includes(e.type) && e.range === !0 ? t[e.prop] = [0, 0] : [
134
+ "rate",
135
+ "slider",
136
+ "number"
137
+ ].includes(e.type) || e.dataType === "number" ? t[e.prop] = void 0 : t[e.prop] = "", e.bind && (t = s(t, e.bind)), f(e.value) || (t[e.prop] = e.value);
138
+ }), { tableForm: t };
139
+ }, C = (e) => {
140
+ let n = e.placeholder, r = e.label;
141
+ return f(n) ? t.includes(e.type) ? `${h("tip.select")} ${r}` : `${h("tip.input")} ${r}` : n;
142
+ }, w = { methods: {
143
+ getSlotName(e = {}, t = "D", n) {
144
+ let r = e.prop + {
145
+ F: "Form",
146
+ H: "Header",
147
+ E: "Error",
148
+ L: "Label",
149
+ S: "Search",
150
+ T: "Type",
151
+ D: ""
152
+ }[t];
153
+ return n ? n[r] : r;
154
+ },
155
+ getSlotList(e = [], t, n) {
156
+ return n = n.map((e) => e.prop), Object.keys(t).filter((t) => {
157
+ let r = !1;
158
+ return n.includes(t) || e.forEach((e) => {
159
+ t.includes(e) && (r = !0);
160
+ }), r;
161
+ });
162
+ }
163
+ } }, T = {
164
+ mixins: [w],
165
+ data() {
166
+ return {
167
+ stringMode: !1,
168
+ name: "",
169
+ text: void 0,
170
+ propsHttpDefault: r,
171
+ propsDefault: e
172
+ };
173
+ },
174
+ props: {
175
+ blur: Function,
176
+ focus: Function,
177
+ change: Function,
178
+ click: Function,
179
+ typeformat: Function,
180
+ control: Function,
181
+ separator: {
182
+ type: String,
183
+ default: ","
184
+ },
185
+ params: {
186
+ type: Object,
187
+ default: () => ({})
188
+ },
189
+ listType: { type: String },
190
+ tableData: { type: Object },
191
+ modelValue: {},
192
+ column: {
193
+ type: Object,
194
+ default: () => ({})
195
+ },
196
+ label: {
197
+ type: String,
198
+ default: ""
199
+ },
200
+ readonly: {
201
+ type: Boolean,
202
+ default: !1
203
+ },
204
+ size: String,
205
+ tip: {
206
+ type: String,
207
+ default: ""
208
+ },
209
+ disabled: {
210
+ type: Boolean,
211
+ default: !1
212
+ },
213
+ dataType: { type: String },
214
+ clearable: {
215
+ type: Boolean,
216
+ default: !0
217
+ },
218
+ type: {
219
+ type: String,
220
+ default: ""
221
+ },
222
+ dicUrl: {
223
+ type: String,
224
+ default: ""
225
+ },
226
+ dicMethod: {
227
+ type: String,
228
+ default: ""
229
+ },
230
+ dicFormatter: Function,
231
+ dicQuery: {
232
+ type: Object,
233
+ default: () => ({})
234
+ },
235
+ dic: {
236
+ type: Array,
237
+ default: () => []
238
+ },
239
+ placeholder: {
240
+ type: String,
241
+ default: ""
242
+ },
243
+ rules: { type: Array },
244
+ min: { type: Number },
245
+ max: { type: Number },
246
+ multiple: {
247
+ type: Boolean,
248
+ default: !1
249
+ },
250
+ button: {
251
+ type: Boolean,
252
+ default: !1
253
+ },
254
+ group: {
255
+ type: Boolean,
256
+ default: !1
257
+ },
258
+ row: {
259
+ type: Boolean,
260
+ default: !1
261
+ },
262
+ prop: {
263
+ type: String,
264
+ default: ""
265
+ },
266
+ border: {
267
+ type: Boolean,
268
+ default: !1
269
+ },
270
+ popperClass: { type: String },
271
+ propsHttp: {
272
+ type: Object,
273
+ default: () => r
274
+ },
275
+ props: {
276
+ type: Object,
277
+ default: () => e
278
+ }
279
+ },
280
+ watch: {
281
+ text: { handler(e) {
282
+ this.handleChange(e);
283
+ } },
284
+ modelValue: { handler() {
285
+ this.initVal();
286
+ } }
287
+ },
288
+ computed: {
289
+ clearableVal() {
290
+ return this.disabled ? !1 : this.clearable;
291
+ },
292
+ componentName() {
293
+ return `el-${this.name}${this.button ? "-button" : ""}`;
294
+ },
295
+ required() {
296
+ return !f(this.rules);
297
+ },
298
+ isArray() {
299
+ return this.dataType === "array";
300
+ },
301
+ isString() {
302
+ return this.dataType === "string";
303
+ },
304
+ isNumber() {
305
+ return this.dataType === "number";
306
+ },
307
+ nameKey() {
308
+ return this.propsHttp.name || this.propsHttpDefault.name;
309
+ },
310
+ urlKey() {
311
+ return this.propsHttp.url || this.propsHttpDefault.url;
312
+ },
313
+ resKey() {
314
+ return this.propsHttp.res || this.propsHttpDefault.res;
315
+ },
316
+ groupsKey() {
317
+ return this.props.groups || this.propsDefault.groups;
318
+ },
319
+ valueKey() {
320
+ return this.props.value || this.propsDefault.value;
321
+ },
322
+ descKey() {
323
+ return this.props.desc || this.propsDefault.desc;
324
+ },
325
+ leafKey() {
326
+ return this.props.leaf || this.propsDefault.leaf;
327
+ },
328
+ labelKey() {
329
+ return this.props.label || this.propsDefault.label;
330
+ },
331
+ childrenKey() {
332
+ return this.props.children || this.propsDefault.children;
333
+ },
334
+ disabledKey() {
335
+ return this.props.disabled || this.propsDefault.disabled;
336
+ },
337
+ idKey() {
338
+ return this.props.id || this.propsDefault.id;
339
+ }
340
+ },
341
+ created() {
342
+ this.initVal();
343
+ }
344
+ }, E = { methods: {
345
+ bindEvent(e, t) {
346
+ t = Object.assign(t, { column: this.column }, this.tableData), typeof this[e] == "function" && (e === "change" ? this.column.cell !== !0 && this[e](t) : this[e](t)), this.$emit(e, t);
347
+ },
348
+ initVal() {
349
+ this.stringMode = typeof this.modelValue == "string", this.text = y(this.modelValue, this);
350
+ },
351
+ getLabelText(e) {
352
+ return f(e) ? "" : typeof this.typeformat == "function" ? this.typeformat(e, this.labelKey, this.valueKey) : e[this.labelKey];
353
+ },
354
+ handleFocus(e) {
355
+ this.bindEvent("focus", {
356
+ value: this.modelValue,
357
+ event: e
358
+ });
359
+ },
360
+ handleBlur(e) {
361
+ this.bindEvent("blur", {
362
+ value: this.modelValue,
363
+ event: e
364
+ });
365
+ },
366
+ handleClick(e) {
367
+ this.bindEvent("click", {
368
+ value: this.modelValue,
369
+ event: e
370
+ });
371
+ },
372
+ handleChange(e) {
373
+ let t = e;
374
+ (this.isString || this.isNumber || this.stringMode || this.listType === "picture-img") && Array.isArray(e) && (t = e.join(this.separator)), this.bindEvent("change", { value: t }), this.$emit("update:modelValue", t);
375
+ }
376
+ } };
377
+ //#endregion
378
+ export { v as a, C as c, g as i, b as l, T as n, S as o, w as r, x as s, E as t, h as u };
@@ -1,18 +1,18 @@
1
1
  import { s as e } from "./ClVh1Lek.mjs";
2
2
  import { t } from "./B1MSrc6f.mjs";
3
- import { t as n } from "./HFLY8Wla.mjs";
3
+ import { t as n } from "./D1mQTnJ8.mjs";
4
4
  import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
5
5
  import { t as i } from "./mnqSaATq.mjs";
6
6
  import { t as a } from "./tzjUpVIj.mjs";
7
- import { n as o } from "./b0ve2YgF.mjs";
8
- import { t as s } from "./CjCNtCWd.mjs";
9
- import { t as c } from "./saZ_qJOT.mjs";
10
- import { t as l } from "./C28bnMcw.mjs";
11
- import { t as u } from "./Dst9_BmZ.mjs";
12
- import { t as d } from "./BxuM-fgJ.mjs";
13
- import { t as f } from "./vebd58-O.mjs";
14
- import { t as p } from "./CCpKg0cM.mjs";
15
- import { t as m } from "./3nLaRSbR2.mjs";
7
+ import { n as o } from "./mQG01w6Y.mjs";
8
+ import { t as s } from "./D20CQ-B6.mjs";
9
+ import { t as c } from "./aOv3rI7q.mjs";
10
+ import { t as l } from "./DC3DNg_r.mjs";
11
+ import { t as u } from "./n7IipIUY.mjs";
12
+ import { t as d } from "./D2kLAzxW.mjs";
13
+ import { t as f } from "./9ec0Wti82.mjs";
14
+ import { t as p } from "./Bv7b2DXh2.mjs";
15
+ import { t as m } from "./DdHN2Nv72.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";