@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,80 @@
1
+ import { t as e } from "../chunks/B1MSrc6f.mjs";
2
+ import { n as t, t as n } from "../chunks/Cf_h9S62.mjs";
3
+ import { ElColorPicker as r, ElInput as i } from "element-plus/es";
4
+ import "element-plus/es/components/base/style/css";
5
+ import "element-plus/es/components/input/style/css";
6
+ import { createElementBlock as a, createVNode as o, openBlock as s, withCtx as c } from "vue";
7
+ import "element-plus/es/components/color-picker/style/css";
8
+ //#region src/components/avue/fy-from/input-color/FyInputColor.vue
9
+ var l = {
10
+ name: "FyInputColor",
11
+ mixins: [t, n],
12
+ props: {
13
+ colorFormat: String,
14
+ predefine: {
15
+ type: Array,
16
+ default: () => [
17
+ "#ff4500",
18
+ "#ff8c00",
19
+ "#ffd700",
20
+ "#90ee90",
21
+ "#00ced1",
22
+ "#1e90ff",
23
+ "#c71585",
24
+ "rgba(255, 69, 0, 0.68)",
25
+ "rgb(255, 120, 0)",
26
+ "hsv(51, 100, 98)",
27
+ "hsva(120, 40, 94, 0.5)",
28
+ "hsl(181, 100%, 37%)",
29
+ "hsla(209, 100%, 56%, 0.73)"
30
+ ]
31
+ },
32
+ showAlpha: {
33
+ type: Boolean,
34
+ default: !0
35
+ }
36
+ }
37
+ }, u = { class: "avue-input-color" };
38
+ function d(e, t, n, l, d, f) {
39
+ let p = r, m = i;
40
+ return s(), a("div", u, [o(m, {
41
+ ref: "main",
42
+ modelValue: e.text,
43
+ "onUpdate:modelValue": t[1] || (t[1] = (t) => e.text = t),
44
+ placeholder: e.placeholder,
45
+ size: e.size,
46
+ readonly: e.readonly,
47
+ clearable: e.clearableVal,
48
+ disabled: e.disabled,
49
+ onClick: e.handleClick
50
+ }, {
51
+ append: c(() => [o(p, {
52
+ modelValue: e.text,
53
+ "onUpdate:modelValue": t[0] || (t[0] = (t) => e.text = t),
54
+ "popper-class": e.popperClass,
55
+ "color-format": n.colorFormat,
56
+ disabled: e.disabled,
57
+ "show-alpha": n.showAlpha,
58
+ predefine: n.predefine
59
+ }, null, 8, [
60
+ "modelValue",
61
+ "popper-class",
62
+ "color-format",
63
+ "disabled",
64
+ "show-alpha",
65
+ "predefine"
66
+ ])]),
67
+ _: 1
68
+ }, 8, [
69
+ "modelValue",
70
+ "placeholder",
71
+ "size",
72
+ "readonly",
73
+ "clearable",
74
+ "disabled",
75
+ "onClick"
76
+ ])]);
77
+ }
78
+ var f = /* @__PURE__ */ e(l, [["render", d]]);
79
+ //#endregion
80
+ export { f as default };
@@ -0,0 +1,244 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ dialogWidth: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ iconList: {
7
+ type: ArrayConstructor;
8
+ default: () => never[];
9
+ };
10
+ }>, {}, {
11
+ filterText: string;
12
+ visible: boolean;
13
+ tabs: {};
14
+ }, {
15
+ icons(): any;
16
+ filteredIcons(): any;
17
+ }, {
18
+ handleTabs(tabs: any): void;
19
+ handleSubmit(item: any): void;
20
+ handleShow(): void;
21
+ }, {
22
+ mixins: {
23
+ methods: {
24
+ getSlotName(item: any | undefined, type: string | undefined, slot: string): any;
25
+ getSlotList(list: never[] | undefined, slot: string, propList: Array<any>): string[];
26
+ };
27
+ }[];
28
+ data(): {
29
+ stringMode: boolean;
30
+ name: string;
31
+ text: undefined;
32
+ propsHttpDefault: {
33
+ name: string;
34
+ url: string;
35
+ fileName: string;
36
+ res: string;
37
+ };
38
+ propsDefault: {
39
+ rowKey: string;
40
+ rowParentKey: string;
41
+ nodeKey: string;
42
+ label: string;
43
+ value: string;
44
+ desc: string;
45
+ groups: string;
46
+ title: string;
47
+ leaf: string;
48
+ children: string;
49
+ hasChildren: string;
50
+ labelText: string;
51
+ disabled: string;
52
+ };
53
+ };
54
+ props: {
55
+ blur: FunctionConstructor;
56
+ focus: FunctionConstructor;
57
+ change: FunctionConstructor;
58
+ click: FunctionConstructor;
59
+ typeformat: FunctionConstructor;
60
+ control: FunctionConstructor;
61
+ separator: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ params: {
66
+ type: ObjectConstructor;
67
+ default: () => {};
68
+ };
69
+ listType: {
70
+ type: StringConstructor;
71
+ };
72
+ tableData: {
73
+ type: ObjectConstructor;
74
+ };
75
+ modelValue: {};
76
+ column: {
77
+ type: ObjectConstructor;
78
+ default: () => {};
79
+ };
80
+ label: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ readonly: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ size: StringConstructor;
89
+ tip: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ disabled: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ dataType: {
98
+ type: StringConstructor;
99
+ };
100
+ clearable: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ type: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ dicUrl: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ dicMethod: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ dicFormatter: FunctionConstructor;
117
+ dicQuery: {
118
+ type: ObjectConstructor;
119
+ default: () => {};
120
+ };
121
+ dic: {
122
+ type: ArrayConstructor;
123
+ default: () => never[];
124
+ };
125
+ placeholder: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ rules: {
130
+ type: ArrayConstructor;
131
+ };
132
+ min: {
133
+ type: NumberConstructor;
134
+ };
135
+ max: {
136
+ type: NumberConstructor;
137
+ };
138
+ multiple: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ button: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ group: {
147
+ type: BooleanConstructor;
148
+ default: boolean;
149
+ };
150
+ row: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
154
+ prop: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ border: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ };
162
+ popperClass: {
163
+ type: StringConstructor;
164
+ };
165
+ propsHttp: {
166
+ type: ObjectConstructor;
167
+ default: () => {
168
+ name: string;
169
+ url: string;
170
+ fileName: string;
171
+ res: string;
172
+ };
173
+ };
174
+ props: {
175
+ type: ObjectConstructor;
176
+ default: () => {
177
+ rowKey: string;
178
+ rowParentKey: string;
179
+ nodeKey: string;
180
+ label: string;
181
+ value: string;
182
+ desc: string;
183
+ groups: string;
184
+ title: string;
185
+ leaf: string;
186
+ children: string;
187
+ hasChildren: string;
188
+ labelText: string;
189
+ disabled: string;
190
+ };
191
+ };
192
+ };
193
+ watch: {
194
+ text: {
195
+ handler(this: any, n: any): void;
196
+ };
197
+ modelValue: {
198
+ handler(this: any): void;
199
+ };
200
+ };
201
+ computed: {
202
+ clearableVal(this: any): any;
203
+ componentName(this: any): string;
204
+ required(this: any): boolean;
205
+ isArray(this: any): boolean;
206
+ isString(this: any): boolean;
207
+ isNumber(this: any): boolean;
208
+ nameKey(this: any): any;
209
+ urlKey(this: any): any;
210
+ resKey(this: any): any;
211
+ groupsKey(this: any): any;
212
+ valueKey(this: any): any;
213
+ descKey(this: any): any;
214
+ leafKey(this: any): any;
215
+ labelKey(this: any): any;
216
+ childrenKey(this: any): any;
217
+ disabledKey(this: any): any;
218
+ idKey(this: any): any;
219
+ };
220
+ created(this: any): void;
221
+ } | {
222
+ methods: {
223
+ bindEvent(this: any, name: any, params: any): void;
224
+ initVal(this: any): void;
225
+ getLabelText(this: any, item: any): any;
226
+ handleFocus(this: any, event: any): void;
227
+ handleBlur(this: any, event: any): void;
228
+ handleClick(this: any, event: any): void;
229
+ handleChange(this: any, value: any): void;
230
+ };
231
+ }, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
232
+ dialogWidth: {
233
+ type: StringConstructor;
234
+ default: string;
235
+ };
236
+ iconList: {
237
+ type: ArrayConstructor;
238
+ default: () => never[];
239
+ };
240
+ }>> & Readonly<{}>, {
241
+ dialogWidth: string;
242
+ iconList: unknown[];
243
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
244
+ export default _default;
@@ -0,0 +1,133 @@
1
+ import { t as e } from "../chunks/B1MSrc6f.mjs";
2
+ import { t } from "../chunks/V-Js6hNd.mjs";
3
+ import { n, t as r } from "../chunks/Cf_h9S62.mjs";
4
+ import i from "../icon-temp/index.mjs";
5
+ import a from "../fy-tabs/index.mjs";
6
+ import { ElInput as o } from "element-plus/es";
7
+ import "element-plus/es/components/base/style/css";
8
+ import "element-plus/es/components/input/style/css";
9
+ import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, normalizeClass as p, openBlock as m, renderList as h, toDisplayString as g, withCtx as _ } from "vue";
10
+ //#region src/components/avue/fy-from/input-icon/FyInputIcon.vue
11
+ var v = {
12
+ name: "FyInputIcon",
13
+ mixins: [n, r],
14
+ props: {
15
+ dialogWidth: {
16
+ type: String,
17
+ default: "80%"
18
+ },
19
+ iconList: {
20
+ type: Array,
21
+ default: () => []
22
+ }
23
+ },
24
+ data() {
25
+ return {
26
+ filterText: "",
27
+ visible: !1,
28
+ tabs: {}
29
+ };
30
+ },
31
+ computed: {
32
+ icons() {
33
+ return (this.tabs.list || []).map((e) => !e.value && !e.label ? {
34
+ value: e,
35
+ label: e
36
+ } : e);
37
+ },
38
+ filteredIcons() {
39
+ return this.filterText ? this.icons.filter((e) => e.label.indexOf(this.filterText) !== -1) : this.icons;
40
+ }
41
+ },
42
+ watch: { iconList: {
43
+ immediate: !0,
44
+ handler(e) {
45
+ this.tabs = (e == null ? void 0 : e[0]) || {};
46
+ }
47
+ } },
48
+ methods: {
49
+ handleTabs(e) {
50
+ this.tabs = e;
51
+ },
52
+ handleSubmit(e) {
53
+ this.visible = !1, this.text = e, this.handleChange(e);
54
+ },
55
+ handleShow() {
56
+ this.$refs.main.blur(), !(this.disabled || this.readonly) && (this.visible = !0);
57
+ }
58
+ }
59
+ }, y = { class: "avue-input-icon" }, b = { class: "avue-input-icon__filter" }, x = { class: "avue-input-icon__list" }, S = ["title", "onClick"], C = { class: "avue-input-icon__label" };
60
+ function w(e, n, r, v, w, T) {
61
+ let E = i, D = o, O = a, k = t;
62
+ return m(), u("div", y, [f(D, {
63
+ ref: "main",
64
+ modelValue: e.text,
65
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => e.text = t),
66
+ placeholder: e.placeholder,
67
+ size: e.size,
68
+ clearable: e.clearableVal,
69
+ disabled: e.disabled,
70
+ onClick: e.handleClick,
71
+ onFocus: T.handleShow
72
+ }, {
73
+ append: _(() => [f(E, {
74
+ text: e.text,
75
+ small: e.size === "mini",
76
+ onClick: T.handleShow
77
+ }, null, 8, [
78
+ "text",
79
+ "small",
80
+ "onClick"
81
+ ])]),
82
+ _: 1
83
+ }, 8, [
84
+ "modelValue",
85
+ "placeholder",
86
+ "size",
87
+ "clearable",
88
+ "disabled",
89
+ "onClick",
90
+ "onFocus"
91
+ ]), w.visible ? (m(), c(k, {
92
+ key: 0,
93
+ modelValue: w.visible,
94
+ "onUpdate:modelValue": n[2] || (n[2] = (e) => w.visible = e),
95
+ title: e.placeholder,
96
+ width: r.dialogWidth
97
+ }, {
98
+ default: _(() => [
99
+ d("div", b, [f(D, {
100
+ modelValue: w.filterText,
101
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => w.filterText = e),
102
+ placeholder: "请输入",
103
+ size: e.size
104
+ }, null, 8, ["modelValue", "size"])]),
105
+ f(O, {
106
+ option: { tabs: r.iconList },
107
+ onChange: T.handleTabs
108
+ }, null, 8, ["option", "onChange"]),
109
+ d("div", x, [(m(!0), u(s, null, h(T.filteredIcons, (t) => (m(), u("div", {
110
+ key: t.value,
111
+ class: p(["avue-input-icon__item", { active: e.text === t }]),
112
+ title: t.label || t.value,
113
+ onClick: (e) => T.handleSubmit(t.value)
114
+ }, [f(E, {
115
+ text: t.value,
116
+ size: w.tabs.iconSize,
117
+ small: e.size === "mini"
118
+ }, null, 8, [
119
+ "text",
120
+ "size",
121
+ "small"
122
+ ]), d("p", C, g(t.label || t.value), 1)], 10, S))), 128))])
123
+ ]),
124
+ _: 1
125
+ }, 8, [
126
+ "modelValue",
127
+ "title",
128
+ "width"
129
+ ])) : l("v-if", !0)]);
130
+ }
131
+ var T = /* @__PURE__ */ e(v, [["render", w]]);
132
+ //#endregion
133
+ export { T as default };
@@ -0,0 +1 @@
1
+ .avue-input-icon{flex-wrap:wrap;justify-content:space-around;display:flex}.avue-input-icon__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.avue-input-icon__item{box-sizing:content-box;text-align:center;cursor:pointer;width:60px;padding:10px 14px;transition:all .2s}.avue-input-icon__item p{margin-top:5px;font-size:12px}.avue-input-icon__item .avue-icon{display:inline}.avue-input-icon__item:hover{color:var(--color-primary,#409eff)}.avue-input-icon__item:hover .avue-icon i{transform:scale(1.4)}.avue-input-icon__list{flex-wrap:wrap;display:flex}.avue-input-icon__filter{text-align:right}.avue-input-icon__filter .el-input{width:250px}