@farris/ui-vue 1.2.4 → 1.2.5

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 (70) hide show
  1. package/components/accordion/index.esm.js +58 -58
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/capsule/index.esm.js +1 -1
  4. package/components/capsule/index.umd.cjs +1 -1
  5. package/components/common/index.esm.js +2 -2
  6. package/components/common/index.umd.cjs +1 -1
  7. package/components/condition/index.esm.js +137 -135
  8. package/components/condition/index.umd.cjs +1 -1
  9. package/components/data-grid/index.esm.js +2316 -2299
  10. package/components/data-grid/index.umd.cjs +1 -1
  11. package/components/data-view/index.esm.js +1929 -1920
  12. package/components/data-view/index.umd.cjs +1 -1
  13. package/components/designer-canvas/index.esm.js +1 -1
  14. package/components/designer-canvas/index.umd.cjs +1 -1
  15. package/components/designer-canvas/style.css +1 -1
  16. package/components/designer-outline/index.esm.js +44 -42
  17. package/components/designer-outline/index.umd.cjs +1 -1
  18. package/components/designer-toolbox/index.esm.js +28 -467
  19. package/components/designer-toolbox/index.umd.cjs +1 -1
  20. package/components/dynamic-form/index.esm.js +836 -790
  21. package/components/dynamic-form/index.umd.cjs +1 -1
  22. package/components/external-container/index.esm.js +382 -378
  23. package/components/external-container/index.umd.cjs +1 -1
  24. package/components/field-selector/index.esm.js +1167 -1150
  25. package/components/field-selector/index.umd.cjs +1 -1
  26. package/components/filter-bar/index.esm.js +131 -127
  27. package/components/filter-bar/index.umd.cjs +1 -1
  28. package/components/flow-canvas/index.esm.js +1 -1
  29. package/components/flow-canvas/index.umd.cjs +1 -1
  30. package/components/flow-canvas/style.css +1 -1
  31. package/components/list-view/index.esm.js +128 -124
  32. package/components/list-view/index.umd.cjs +1 -1
  33. package/components/lookup/index.esm.js +2156 -2139
  34. package/components/lookup/index.umd.cjs +1 -1
  35. package/components/mapping-editor/index.esm.js +3137 -3120
  36. package/components/mapping-editor/index.umd.cjs +1 -1
  37. package/components/nav/index.esm.js +511 -469
  38. package/components/nav/index.umd.cjs +2 -2
  39. package/components/order/index.esm.js +859 -815
  40. package/components/order/index.umd.cjs +1 -1
  41. package/components/pagination/index.esm.js +491 -449
  42. package/components/pagination/index.umd.cjs +1 -1
  43. package/components/property-panel/index.esm.js +75 -73
  44. package/components/property-panel/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +63 -61
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +2002 -1956
  48. package/components/schema-selector/index.umd.cjs +1 -1
  49. package/components/switch/index.esm.js +165 -192
  50. package/components/switch/index.umd.cjs +1 -1
  51. package/components/tabs/index.esm.js +2 -2
  52. package/components/tabs/index.umd.cjs +1 -1
  53. package/components/transfer/index.esm.js +95 -93
  54. package/components/transfer/index.umd.cjs +1 -1
  55. package/components/tree-grid/index.esm.js +2316 -2299
  56. package/components/tree-grid/index.umd.cjs +1 -1
  57. package/components/tree-view/index.esm.js +296 -295
  58. package/components/tree-view/index.umd.cjs +1 -1
  59. package/farris.all.esm.js +2517 -2483
  60. package/farris.all.umd.cjs +7 -7
  61. package/package.json +1 -1
  62. package/style.css +1 -1
  63. package/types/condition/index.d.ts +60 -1
  64. package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
  65. package/types/data-view/composition/types.d.ts +2 -0
  66. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
  67. package/types/list-view/src/composition/types.d.ts +1 -1
  68. package/types/message-box/index.d.ts +84 -1
  69. package/types/notify/index.d.ts +84 -1
  70. package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
@@ -1,8 +1,8 @@
1
- import { defineComponent as f, ref as i, watch as C, createVNode as a } from "vue";
1
+ import { defineComponent as m, ref as i, watch as C, createVNode as a } from "vue";
2
2
  const v = {
3
3
  id: { type: String, default: "" },
4
4
  dragula: { type: Object }
5
- }, h = [
5
+ }, T = [
6
6
  {
7
7
  type: "input",
8
8
  name: "输入类控件",
@@ -11,23 +11,13 @@ const v = {
11
11
  id: "TextBox",
12
12
  type: "input-group",
13
13
  name: "文本",
14
- category: "input",
15
- updating: !0
16
- },
17
- {
18
- id: "Text",
19
- type: "text",
20
- name: "静态文本",
21
- category: "input",
22
- icon: "static-text"
14
+ category: "input"
23
15
  },
24
16
  {
25
17
  id: "MultiTextBox",
26
- type: "input-group",
18
+ type: "textarea",
27
19
  name: "多行文本",
28
- category: "input",
29
- icon: "multi-text-box",
30
- updating: !0
20
+ category: "input"
31
21
  },
32
22
  {
33
23
  id: "DateBox",
@@ -35,32 +25,12 @@ const v = {
35
25
  name: "日期",
36
26
  category: "input"
37
27
  },
38
- {
39
- id: "TimePicker",
40
- type: "time-picker",
41
- name: "时间选择",
42
- category: "input"
43
- },
44
28
  {
45
29
  id: "EnumField",
46
30
  type: "combo-list",
47
31
  name: "下拉列表",
48
32
  category: "input"
49
33
  },
50
- {
51
- id: "Dropdown",
52
- type: "dropdown",
53
- name: "下拉列表2",
54
- category: "input",
55
- icon: "combo-list"
56
- },
57
- {
58
- id: "NumberRange",
59
- type: "number-range",
60
- name: "数值区间",
61
- category: "input",
62
- icon: "number-spinner"
63
- },
64
34
  {
65
35
  id: "NumericBox",
66
36
  type: "number-spinner",
@@ -69,10 +39,15 @@ const v = {
69
39
  },
70
40
  {
71
41
  id: "CheckBox",
72
- type: "checkbox",
42
+ type: "check-box",
43
+ name: "复选框",
44
+ category: "input"
45
+ },
46
+ {
47
+ id: "CheckBoxGroup",
48
+ type: "check-group",
73
49
  name: "复选框组",
74
- category: "input",
75
- icon: "check-group"
50
+ category: "input"
76
51
  },
77
52
  {
78
53
  id: "RadioGroup",
@@ -86,454 +61,40 @@ const v = {
86
61
  name: "开关",
87
62
  category: "input"
88
63
  },
89
- {
90
- id: "Capsule",
91
- type: "capsule",
92
- name: "选项卡",
93
- category: "input",
94
- icon: "switch"
95
- },
96
- {
97
- id: "Image",
98
- type: "image",
99
- name: "图像",
100
- category: "input",
101
- updating: !0
102
- },
103
64
  {
104
65
  id: "LookupEdit",
105
66
  type: "lookup",
106
67
  name: "帮助",
107
- category: "input",
108
- updating: !0
109
- },
110
- {
111
- id: "RichTextBox",
112
- type: "rich-text-box",
113
- name: "富文本",
114
- category: "input",
115
- updating: !0
68
+ category: "input"
116
69
  },
117
70
  {
118
71
  id: "InputGroup",
119
72
  type: "input-group",
120
73
  name: "智能输入框",
121
- category: "input",
122
- updating: !0
123
- },
124
- {
125
- id: "LanguageTextBox",
126
- type: "language-text-box",
127
- name: "多语言输入框",
128
- category: "input",
129
- updating: !0
130
- },
131
- {
132
- id: "Tags",
133
- type: "tags",
134
- name: "标记组",
135
- category: "input",
136
- icon: "tag"
137
- },
138
- {
139
- id: "ColorPicker",
140
- type: "color-picker",
141
- name: "颜色选择器",
142
- category: "input",
143
- icon: "input-group"
144
- }
145
- ]
146
- },
147
- {
148
- type: "dataCollection",
149
- name: "数据集合类控件",
150
- items: [
151
- {
152
- id: "Form",
153
- type: "response-form",
154
- name: "卡片面板",
155
- category: "dataCollection"
156
- },
157
- {
158
- id: "DataGrid",
159
- type: "data-grid",
160
- name: "表格",
161
- category: "dataCollection"
162
- },
163
- {
164
- id: "TreeGrid",
165
- type: "tree-grid",
166
- name: "树表格",
167
- category: "dataCollection",
168
- updating: !0
169
- },
170
- {
171
- id: "TreeView",
172
- type: "tree-view",
173
- name: "树列表",
174
- category: "dataCollection",
175
- icon: "tree-grid"
176
- },
177
- {
178
- id: "ListView",
179
- type: "list-view",
180
- name: "列表",
181
- category: "dataCollection"
182
- }
183
- ]
184
- },
185
- {
186
- type: "command",
187
- name: "命令类控件",
188
- items: [
189
- {
190
- id: "Button",
191
- type: "button-group",
192
- name: "按钮",
193
- category: "command"
194
- },
195
- {
196
- id: "ResponseToolbar",
197
- type: "response-toolbar",
198
- name: "响应式工具条",
199
- category: "command",
200
- icon: "button-group"
201
- },
202
- {
203
- id: "NavTab",
204
- type: "nav-tab",
205
- name: "标签类导航",
206
- category: "command",
207
- updating: !0
208
- },
209
- {
210
- id: "FilterBar",
211
- type: "filter-bar",
212
- name: "筛选条",
213
- category: "commands",
214
- icon: "list-filter"
215
- },
216
- {
217
- id: "QuerySolution",
218
- type: "query-solution",
219
- name: "筛选方案",
220
- category: "commands",
221
- icon: "query-solution"
222
- }
223
- ]
224
- },
225
- {
226
- type: "container",
227
- name: "容器类控件",
228
- items: [
229
- {
230
- id: "Tab",
231
- type: "tabs",
232
- name: "标签页区域",
233
- category: "container"
234
- },
235
- {
236
- id: "HtmlTemplate",
237
- type: "html-template",
238
- name: "模版容器",
239
- category: "container",
240
- updating: !0
241
- },
242
- {
243
- id: "ContentContainer",
244
- type: "content-container",
245
- name: "容器",
246
- category: "container"
247
- },
248
- {
249
- id: "Section",
250
- type: "section",
251
- name: "分组面板",
252
- category: "container"
253
- },
254
- {
255
- id: "Accordion",
256
- type: "accordion",
257
- name: "收折面板",
258
- category: "container",
259
- icon: "zhediezhankai"
260
- },
261
- {
262
- id: "FieldSet",
263
- type: "field-set",
264
- name: "分组",
265
- category: "container",
266
- updating: !0
267
- },
268
- {
269
- id: "ExternalContainer",
270
- type: "external-container",
271
- name: "外部容器",
272
- category: "container",
273
- icon: "content-container"
274
- },
275
- {
276
- id: "ModalContainer",
277
- type: "modal-container",
278
- name: "弹窗容器",
279
- category: "container",
280
- icon: "content-container",
281
- updating: !0
282
- },
283
- {
284
- id: "Nav",
285
- type: "nav",
286
- name: "导航",
287
- category: "container",
288
- icon: "list-nav"
289
- },
290
- {
291
- id: "ListNav",
292
- type: "list-nav",
293
- name: "列表导航",
294
- category: "container"
295
- },
296
- {
297
- id: "Header",
298
- type: "page-header",
299
- name: "页头",
300
- category: "container",
301
- icon: "page-header"
302
- },
303
- {
304
- id: "Footer",
305
- type: "page-footer",
306
- name: "页脚",
307
- category: "container",
308
- icon: "modal-footer"
309
- },
310
- {
311
- id: "Pagination",
312
- type: "pagination",
313
- name: "分页条",
314
- category: "container",
315
- icon: "header"
316
- },
317
- {
318
- id: "Splitter",
319
- type: "splitter",
320
- name: "分栏面板",
321
- category: "container"
322
- }
323
- ]
324
- },
325
- {
326
- type: "business",
327
- name: "业务类控件",
328
- items: [
329
- {
330
- id: "Avatar",
331
- type: "avatar",
332
- name: "头像",
333
74
  category: "input"
334
- },
335
- {
336
- id: "Calendar",
337
- type: "calendar",
338
- name: "日程表",
339
- category: "dataCollection",
340
- icon: "date-picker"
341
- },
342
- {
343
- id: "DateView",
344
- type: "date-view",
345
- name: "日期导航",
346
- category: "commands",
347
- icon: "date-picker"
348
- },
349
- {
350
- id: "PersonnelSelector",
351
- type: "personnel-selector",
352
- name: "人员选择",
353
- category: "input",
354
- updating: !0
355
- },
356
- {
357
- id: "OrganizationSelector",
358
- type: "organization-selector",
359
- name: "组织选择",
360
- category: "input",
361
- updating: !0
362
- },
363
- {
364
- id: "Uploader",
365
- type: "uploader",
366
- name: "附件上传预览",
367
- category: "uploader",
368
- icon: "file-upload"
369
- },
370
- {
371
- id: "DiscussionEditor",
372
- type: "discussion-editor",
373
- name: "评论编辑区",
374
- category: "discussion",
375
- icon: "discussion-editor",
376
- updating: !0
377
- },
378
- {
379
- id: "DiscussionList",
380
- type: "discussion-list",
381
- name: "评论列表",
382
- category: "discussion",
383
- icon: "discussion-list",
384
- updating: !0
385
- },
386
- {
387
- id: "Steps",
388
- type: "step",
389
- name: "步骤条",
390
- category: "commands",
391
- icon: "steps"
392
- },
393
- {
394
- id: "SearchBox",
395
- type: "search-box",
396
- name: "搜索框",
397
- category: "commands",
398
- icon: "sousuo"
399
- },
400
- {
401
- id: "Progress",
402
- type: "progress",
403
- name: "进度条",
404
- category: "commands",
405
- icon: "liushuihao"
406
- },
407
- {
408
- id: "Rate",
409
- type: "rate",
410
- name: "评分",
411
- category: "commands",
412
- icon: "dingzhi"
413
- },
414
- {
415
- id: "Order",
416
- type: "order",
417
- name: "排序列",
418
- category: "commands",
419
- icon: "multi-select"
420
- },
421
- {
422
- id: "VerifyDetail",
423
- type: "verify-detail",
424
- name: "验证",
425
- category: "commands",
426
- icon: "approval-logs"
427
- },
428
- {
429
- id: "Transfer",
430
- type: "transfer",
431
- name: "穿梭框",
432
- category: "commands",
433
- icon: "multi-select"
434
- },
435
- {
436
- id: "Weather",
437
- type: "weather",
438
- name: "天气",
439
- category: "dataCollection",
440
- icon: "anheimoshi"
441
- },
442
- {
443
- id: "Wizard",
444
- type: "wizard",
445
- name: "向导",
446
- category: "container",
447
- updating: !0
448
- },
449
- {
450
- id: "ImageCropper",
451
- type: "image-cropper",
452
- name: "图片裁切",
453
- category: "container",
454
- icon: "image"
455
- }
456
- ]
457
- },
458
- {
459
- type: "response-layout",
460
- name: "布局容器",
461
- items: [
462
- {
463
- id: "ResponseLayout2",
464
- type: "response-layout",
465
- name: "1列",
466
- category: "container",
467
- feature: {
468
- splitter: "12"
469
- },
470
- icon: "response-layout-1"
471
- },
472
- {
473
- id: "ResponseLayout2",
474
- type: "response-layout",
475
- name: "2列",
476
- category: "container",
477
- feature: {
478
- splitter: "6:6"
479
- },
480
- icon: "response-layout-2"
481
- },
482
- {
483
- id: "ResponseLayout3",
484
- type: "response-layout",
485
- name: "3列",
486
- category: "container",
487
- feature: {
488
- splitter: "4:4:4"
489
- },
490
- icon: "response-layout-3"
491
- },
492
- {
493
- id: "ResponseLayout4",
494
- type: "response-layout",
495
- name: "4列",
496
- category: "container",
497
- feature: {
498
- splitter: "3:3:3:3"
499
- },
500
- icon: "response-layout-4"
501
- }
502
- ]
503
- },
504
- {
505
- type: "user-business",
506
- name: "用户业务组件",
507
- items: [
508
- {
509
- id: "SmokeDetector",
510
- type: "smoke-detector",
511
- name: "烟雾报警器",
512
- category: "command",
513
- icon: "response-layout-1"
514
75
  }
515
76
  ]
516
77
  }
517
- ], x = /* @__PURE__ */ f({
78
+ ], x = /* @__PURE__ */ m({
518
79
  name: "FDesignerToolbox",
519
80
  props: v,
520
81
  emits: [],
521
82
  setup(n) {
522
- const r = i(h), o = i(n.dragula);
523
- function c(e, t) {
83
+ const o = i(T), r = i(n.dragula);
84
+ function d(e, t) {
524
85
  t.isHide = !t.isHide;
525
86
  }
526
- function d(e) {
87
+ function c(e) {
527
88
  return {
528
89
  "f-icon": !0,
529
90
  "f-icon-arrow-60-down": !e.isHide,
530
91
  "f-icon-arrow-e": e.isHide
531
92
  };
532
93
  }
533
- function p(e) {
94
+ function l(e) {
534
95
  return a("div", {
535
96
  class: "card-header",
536
- onClick: (t) => c(t, e)
97
+ onClick: (t) => d(t, e)
537
98
  }, [a("div", {
538
99
  class: "panel-item-title"
539
100
  }, [a("div", {
@@ -543,7 +104,7 @@ const v = {
543
104
  }, [a("div", {
544
105
  class: "f-toolbar mr-2"
545
106
  }, [a("span", {
546
- class: d(e)
107
+ class: c(e)
547
108
  }, null)]), a("div", {
548
109
  class: "f-title f-utils-fill d-flex justify-content-between"
549
110
  }, [a("span", null, [e.name])])])])])]);
@@ -564,7 +125,7 @@ const v = {
564
125
  }, g = `fd_pc-${e.icon || e.type}`;
565
126
  return t[g] = !0, t;
566
127
  }
567
- function y(e, t) {
128
+ function p(e, t) {
568
129
  return a("div", {
569
130
  class: s(e),
570
131
  "data-sourceType": "control",
@@ -582,25 +143,25 @@ const v = {
582
143
  class: "controlName"
583
144
  }, [e.name])])]);
584
145
  }
585
- function l(e) {
146
+ function y(e) {
586
147
  return a("div", {
587
148
  class: "card-body px-2 py-0 border-0 controlCategory no-drop"
588
- }, [e.items.map((t) => y(t, e))]);
149
+ }, [e.items.map((t) => p(t, e))]);
589
150
  }
590
- function m(e) {
151
+ function f(e) {
591
152
  return !e.hideInControlBox && a("div", {
592
153
  class: "farris-panel-item card border-0"
593
- }, [p(e), l(e)]);
154
+ }, [l(e), y(e)]);
594
155
  }
595
156
  return C(() => n.dragula, (e) => {
596
157
  var t;
597
- o.value = e, (t = o.value) == null || t.attachToolbox();
158
+ r.value = e, (t = r.value) == null || t.attachToolbox();
598
159
  }), () => a("div", {
599
160
  class: "controlBox f-utils-fill-flex-column"
600
161
  }, [a("div", {
601
162
  class: "farris-panel f-utils-fill-flex-column",
602
163
  style: "overflow:auto;"
603
- }, [r.value.map((e) => m(e))])]);
164
+ }, [o.value.map((e) => f(e))])]);
604
165
  }
605
166
  });
606
167
  export {
@@ -1 +1 @@
1
- (function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["designer-toolbox"]={},n.Vue))})(this,function(n,t){"use strict";const r={id:{type:String,default:""},dragula:{type:Object}},c=[{type:"input",name:"输入类控件",items:[{id:"TextBox",type:"input-group",name:"文本",category:"input",updating:!0},{id:"Text",type:"text",name:"静态文本",category:"input",icon:"static-text"},{id:"MultiTextBox",type:"input-group",name:"多行文本",category:"input",icon:"multi-text-box",updating:!0},{id:"DateBox",type:"date-picker",name:"日期",category:"input"},{id:"TimePicker",type:"time-picker",name:"时间选择",category:"input"},{id:"EnumField",type:"combo-list",name:"下拉列表",category:"input"},{id:"Dropdown",type:"dropdown",name:"下拉列表2",category:"input",icon:"combo-list"},{id:"NumberRange",type:"number-range",name:"数值区间",category:"input",icon:"number-spinner"},{id:"NumericBox",type:"number-spinner",name:"数值",category:"input"},{id:"CheckBox",type:"checkbox",name:"复选框组",category:"input",icon:"check-group"},{id:"RadioGroup",type:"radio-group",name:"单选组",category:"input"},{id:"SwitchField",type:"switch",name:"开关",category:"input"},{id:"Capsule",type:"capsule",name:"选项卡",category:"input",icon:"switch"},{id:"Image",type:"image",name:"图像",category:"input",updating:!0},{id:"LookupEdit",type:"lookup",name:"帮助",category:"input",updating:!0},{id:"RichTextBox",type:"rich-text-box",name:"富文本",category:"input",updating:!0},{id:"InputGroup",type:"input-group",name:"智能输入框",category:"input",updating:!0},{id:"LanguageTextBox",type:"language-text-box",name:"多语言输入框",category:"input",updating:!0},{id:"Tags",type:"tags",name:"标记组",category:"input",icon:"tag"},{id:"ColorPicker",type:"color-picker",name:"颜色选择器",category:"input",icon:"input-group"}]},{type:"dataCollection",name:"数据集合类控件",items:[{id:"Form",type:"response-form",name:"卡片面板",category:"dataCollection"},{id:"DataGrid",type:"data-grid",name:"表格",category:"dataCollection"},{id:"TreeGrid",type:"tree-grid",name:"树表格",category:"dataCollection",updating:!0},{id:"TreeView",type:"tree-view",name:"树列表",category:"dataCollection",icon:"tree-grid"},{id:"ListView",type:"list-view",name:"列表",category:"dataCollection"}]},{type:"command",name:"命令类控件",items:[{id:"Button",type:"button-group",name:"按钮",category:"command"},{id:"ResponseToolbar",type:"response-toolbar",name:"响应式工具条",category:"command",icon:"button-group"},{id:"NavTab",type:"nav-tab",name:"标签类导航",category:"command",updating:!0},{id:"FilterBar",type:"filter-bar",name:"筛选条",category:"commands",icon:"list-filter"},{id:"QuerySolution",type:"query-solution",name:"筛选方案",category:"commands",icon:"query-solution"}]},{type:"container",name:"容器类控件",items:[{id:"Tab",type:"tabs",name:"标签页区域",category:"container"},{id:"HtmlTemplate",type:"html-template",name:"模版容器",category:"container",updating:!0},{id:"ContentContainer",type:"content-container",name:"容器",category:"container"},{id:"Section",type:"section",name:"分组面板",category:"container"},{id:"Accordion",type:"accordion",name:"收折面板",category:"container",icon:"zhediezhankai"},{id:"FieldSet",type:"field-set",name:"分组",category:"container",updating:!0},{id:"ExternalContainer",type:"external-container",name:"外部容器",category:"container",icon:"content-container"},{id:"ModalContainer",type:"modal-container",name:"弹窗容器",category:"container",icon:"content-container",updating:!0},{id:"Nav",type:"nav",name:"导航",category:"container",icon:"list-nav"},{id:"ListNav",type:"list-nav",name:"列表导航",category:"container"},{id:"Header",type:"page-header",name:"页头",category:"container",icon:"page-header"},{id:"Footer",type:"page-footer",name:"页脚",category:"container",icon:"modal-footer"},{id:"Pagination",type:"pagination",name:"分页条",category:"container",icon:"header"},{id:"Splitter",type:"splitter",name:"分栏面板",category:"container"}]},{type:"business",name:"业务类控件",items:[{id:"Avatar",type:"avatar",name:"头像",category:"input"},{id:"Calendar",type:"calendar",name:"日程表",category:"dataCollection",icon:"date-picker"},{id:"DateView",type:"date-view",name:"日期导航",category:"commands",icon:"date-picker"},{id:"PersonnelSelector",type:"personnel-selector",name:"人员选择",category:"input",updating:!0},{id:"OrganizationSelector",type:"organization-selector",name:"组织选择",category:"input",updating:!0},{id:"Uploader",type:"uploader",name:"附件上传预览",category:"uploader",icon:"file-upload"},{id:"DiscussionEditor",type:"discussion-editor",name:"评论编辑区",category:"discussion",icon:"discussion-editor",updating:!0},{id:"DiscussionList",type:"discussion-list",name:"评论列表",category:"discussion",icon:"discussion-list",updating:!0},{id:"Steps",type:"step",name:"步骤条",category:"commands",icon:"steps"},{id:"SearchBox",type:"search-box",name:"搜索框",category:"commands",icon:"sousuo"},{id:"Progress",type:"progress",name:"进度条",category:"commands",icon:"liushuihao"},{id:"Rate",type:"rate",name:"评分",category:"commands",icon:"dingzhi"},{id:"Order",type:"order",name:"排序列",category:"commands",icon:"multi-select"},{id:"VerifyDetail",type:"verify-detail",name:"验证",category:"commands",icon:"approval-logs"},{id:"Transfer",type:"transfer",name:"穿梭框",category:"commands",icon:"multi-select"},{id:"Weather",type:"weather",name:"天气",category:"dataCollection",icon:"anheimoshi"},{id:"Wizard",type:"wizard",name:"向导",category:"container",updating:!0},{id:"ImageCropper",type:"image-cropper",name:"图片裁切",category:"container",icon:"image"}]},{type:"response-layout",name:"布局容器",items:[{id:"ResponseLayout2",type:"response-layout",name:"1列",category:"container",feature:{splitter:"12"},icon:"response-layout-1"},{id:"ResponseLayout2",type:"response-layout",name:"2列",category:"container",feature:{splitter:"6:6"},icon:"response-layout-2"},{id:"ResponseLayout3",type:"response-layout",name:"3列",category:"container",feature:{splitter:"4:4:4"},icon:"response-layout-3"},{id:"ResponseLayout4",type:"response-layout",name:"4列",category:"container",feature:{splitter:"3:3:3:3"},icon:"response-layout-4"}]},{type:"user-business",name:"用户业务组件",items:[{id:"SmokeDetector",type:"smoke-detector",name:"烟雾报警器",category:"command",icon:"response-layout-1"}]}],d=t.defineComponent({name:"FDesignerToolbox",props:r,emits:[],setup(o){const p=t.ref(c),i=t.ref(o.dragula);function s(e,a){a.isHide=!a.isHide}function y(e){return{"f-icon":!0,"f-icon-arrow-60-down":!e.isHide,"f-icon-arrow-e":e.isHide}}function l(e){return t.createVNode("div",{class:"card-header",onClick:a=>s(a,e)},[t.createVNode("div",{class:"panel-item-title"},[t.createVNode("div",{class:"f-section-formgroup-legend"},[t.createVNode("div",{class:"f-header px-2 col-form-label"},[t.createVNode("div",{class:"f-toolbar mr-2"},[t.createVNode("span",{class:y(e)},null)]),t.createVNode("div",{class:"f-title f-utils-fill d-flex justify-content-between"},[t.createVNode("span",null,[e.name])])])])])])}function u(e){return{"d-none":e.dependentParent||e.hideInControlBox,controlPanel:!0,"drag-copy":!0,"no-drag":e.disable,updating:e.updating}}function m(e){const a={farrisControlIcon:!0,"fd-i-Family":!0},h=`fd_pc-${e.icon||e.type}`;return a[h]=!0,a}function g(e,a){return t.createVNode("div",{class:u(e),"data-sourceType":"control","data-controlType":e.type,"data-controlTypeName":e.name,"data-category":e.category,"data-feature":e.feature?JSON.stringify(e.feature):"","data-fieldType":e.fieldType,"data-templateId":e.id,"data-templateCategory":e.templateCategory,hidden:a.isHide},[t.createVNode("div",null,[t.createVNode("div",{class:m(e)},null),t.createVNode("div",{class:"controlName"},[e.name])])])}function f(e){return t.createVNode("div",{class:"card-body px-2 py-0 border-0 controlCategory no-drop"},[e.items.map(a=>g(a,e))])}function C(e){return!e.hideInControlBox&&t.createVNode("div",{class:"farris-panel-item card border-0"},[l(e),f(e)])}return t.watch(()=>o.dragula,e=>{var a;i.value=e,(a=i.value)==null||a.attachToolbox()}),()=>t.createVNode("div",{class:"controlBox f-utils-fill-flex-column"},[t.createVNode("div",{class:"farris-panel f-utils-fill-flex-column",style:"overflow:auto;"},[p.value.map(e=>C(e))])])}});n.FDesignerToolbox=d,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
1
+ (function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["designer-toolbox"]={},n.Vue))})(this,function(n,t){"use strict";const i={id:{type:String,default:""},dragula:{type:Object}},d=[{type:"input",name:"输入类控件",items:[{id:"TextBox",type:"input-group",name:"文本",category:"input"},{id:"MultiTextBox",type:"textarea",name:"多行文本",category:"input"},{id:"DateBox",type:"date-picker",name:"日期",category:"input"},{id:"EnumField",type:"combo-list",name:"下拉列表",category:"input"},{id:"NumericBox",type:"number-spinner",name:"数值",category:"input"},{id:"CheckBox",type:"check-box",name:"复选框",category:"input"},{id:"CheckBoxGroup",type:"check-group",name:"复选框组",category:"input"},{id:"RadioGroup",type:"radio-group",name:"单选组",category:"input"},{id:"SwitchField",type:"switch",name:"开关",category:"input"},{id:"LookupEdit",type:"lookup",name:"帮助",category:"input"},{id:"InputGroup",type:"input-group",name:"智能输入框",category:"input"}]}],c=t.defineComponent({name:"FDesignerToolbox",props:i,emits:[],setup(r){const s=t.ref(d),o=t.ref(r.dragula);function l(e,a){a.isHide=!a.isHide}function p(e){return{"f-icon":!0,"f-icon-arrow-60-down":!e.isHide,"f-icon-arrow-e":e.isHide}}function u(e){return t.createVNode("div",{class:"card-header",onClick:a=>l(a,e)},[t.createVNode("div",{class:"panel-item-title"},[t.createVNode("div",{class:"f-section-formgroup-legend"},[t.createVNode("div",{class:"f-header px-2 col-form-label"},[t.createVNode("div",{class:"f-toolbar mr-2"},[t.createVNode("span",{class:p(e)},null)]),t.createVNode("div",{class:"f-title f-utils-fill d-flex justify-content-between"},[t.createVNode("span",null,[e.name])])])])])])}function f(e){return{"d-none":e.dependentParent||e.hideInControlBox,controlPanel:!0,"drag-copy":!0,"no-drag":e.disable,updating:e.updating}}function y(e){const a={farrisControlIcon:!0,"fd-i-Family":!0},N=`fd_pc-${e.icon||e.type}`;return a[N]=!0,a}function g(e,a){return t.createVNode("div",{class:f(e),"data-sourceType":"control","data-controlType":e.type,"data-controlTypeName":e.name,"data-category":e.category,"data-feature":e.feature?JSON.stringify(e.feature):"","data-fieldType":e.fieldType,"data-templateId":e.id,"data-templateCategory":e.templateCategory,hidden:a.isHide},[t.createVNode("div",null,[t.createVNode("div",{class:y(e)},null),t.createVNode("div",{class:"controlName"},[e.name])])])}function m(e){return t.createVNode("div",{class:"card-body px-2 py-0 border-0 controlCategory no-drop"},[e.items.map(a=>g(a,e))])}function C(e){return!e.hideInControlBox&&t.createVNode("div",{class:"farris-panel-item card border-0"},[u(e),m(e)])}return t.watch(()=>r.dragula,e=>{var a;o.value=e,(a=o.value)==null||a.attachToolbox()}),()=>t.createVNode("div",{class:"controlBox f-utils-fill-flex-column"},[t.createVNode("div",{class:"farris-panel f-utils-fill-flex-column",style:"overflow:auto;"},[s.value.map(e=>C(e))])])}});n.FDesignerToolbox=c,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});