@farris/ui-vue 1.3.0 → 1.3.3

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 (305) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +454 -398
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +479 -476
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +255 -252
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +652 -567
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +518 -521
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +659 -553
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +162 -155
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +866 -747
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +371 -998
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1174 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +340 -991
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +6066 -5847
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3400 -3486
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2328 -2446
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9551 -1200
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +234 -231
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1996 -2630
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +138 -123
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +548 -586
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2871 -3736
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3380 -3645
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10543 -3207
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9775 -1312
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +442 -438
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +587 -807
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +415 -381
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +361 -1024
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2265 -2371
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6425 -6257
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +6164 -5946
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +524 -1474
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +547 -502
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +646 -574
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1181 -2028
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1185 -2027
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +442 -1368
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +238 -235
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1635 -1713
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +791 -716
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12203 -5274
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1873 -520
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +299 -300
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +176 -173
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +715 -659
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +1032 -1883
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4767 -5693
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +169 -161
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +490 -1167
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +154 -151
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +575 -1204
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/splitter/style.js +2 -0
  136. package/components/step/index.esm.js +279 -276
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +478 -428
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2591 -3326
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +442 -439
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +309 -307
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +500 -430
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +1391 -1341
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +574 -575
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +3422 -3536
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2661 -2764
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +675 -674
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +300 -297
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +454 -1089
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +709 -706
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +54780 -52757
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/directive/area-response.d.ts +10 -0
  177. package/types/common/entity/entity-schema.d.ts +26 -11
  178. package/types/common/index.d.ts +9 -0
  179. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  180. package/types/common/types.d.ts +2 -2
  181. package/types/common/utils/resolve-field.d.ts +2 -0
  182. package/types/common/utils/use-class.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  184. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  185. package/types/condition/src/types.d.ts +5 -4
  186. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  187. package/types/data-grid/index.d.ts +8 -5
  188. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  189. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  190. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  191. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  194. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  196. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  197. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  198. package/types/data-view/composition/types.d.ts +9 -11
  199. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  200. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  201. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  202. package/types/designer-canvas/index.d.ts +3 -1
  203. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  204. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  205. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  206. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  207. package/types/designer-canvas/src/composition/types.d.ts +49 -41
  208. package/types/designer-canvas/src/types.d.ts +10 -21
  209. package/types/dynamic-form/index.d.ts +1 -1
  210. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  211. package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
  212. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  213. package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
  214. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  215. package/types/dynamic-form/src/types.d.ts +1 -1
  216. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
  217. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  218. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  219. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  220. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  221. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  222. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  223. package/types/event-parameter/index.d.ts +31 -0
  224. package/types/event-parameter/src/composition/type.d.ts +77 -0
  225. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  226. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  227. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  228. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  229. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  230. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  231. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  232. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  233. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  234. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  235. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  236. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  237. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  238. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  239. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  240. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  241. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  242. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  243. package/types/modal/src/composition/modal.service.d.ts +2 -1
  244. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  245. package/types/page-header/src/page-header.component.d.ts +1 -1
  246. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  247. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  248. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  249. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  250. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  251. package/types/property-panel/index.d.ts +3 -1
  252. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  253. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  254. package/types/property-panel/src/composition/type.d.ts +0 -13
  255. package/types/query-solution/src/composition/types.d.ts +35 -4
  256. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  257. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  258. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  259. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
  260. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  262. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  264. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
  266. package/types/query-solution/src/query-solution.d.ts +10 -2
  267. package/types/query-solution/src/solutions.d.ts +108 -509
  268. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  269. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  270. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  271. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  272. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  273. package/types/response-layout-editor/index.d.ts +3 -1
  274. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  275. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  276. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  277. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  278. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  279. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  280. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  281. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  282. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  283. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  284. package/types/tabs/src/composition/types.d.ts +4 -1
  285. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  286. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  287. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  288. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  289. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  290. package/types/text/src/composition/types.d.ts +4 -4
  291. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  292. package/types/tree-grid/index.d.ts +3 -3
  293. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  294. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  295. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  296. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  297. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  298. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  299. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  300. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
  301. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  302. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  303. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  304. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  305. package/types/weather/src/composition/types.d.ts +0 -2
@@ -1,117 +1,121 @@
1
- var z = Object.defineProperty;
2
- var G = (i, e, l) => e in i ? z(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
3
- var V = (i, e, l) => G(i, typeof e != "symbol" ? e + "" : e, l);
4
- import { defineComponent as F, ref as b, computed as C, createVNode as r, onBeforeMount as _, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
5
- import { isPlainObject as R, cloneDeep as K } from "lodash-es";
6
- const q = {}, W = {};
7
- function $(i) {
8
- const { properties: e, title: l, ignore: s } = i, o = s && Array.isArray(s), d = Object.keys(e).reduce((h, u) => ((!o || !s.find((D) => D == u)) && (h[u] = e[u].type === "object" && e[u].properties ? $(e[u]) : K(e[u].default)), h), {});
9
- return (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
1
+ var G = Object.defineProperty;
2
+ var J = (n, e, r) => e in n ? G(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r;
3
+ var V = (n, e, r) => J(n, typeof e != "symbol" ? e + "" : e, r);
4
+ import { defineComponent as B, ref as b, computed as N, createVNode as l, onBeforeMount as F, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
5
+ import { isPlainObject as $, cloneDeep as K } from "lodash-es";
6
+ const _ = {}, q = {};
7
+ function H(n) {
8
+ const { properties: e, title: r, ignore: s } = n, o = s && Array.isArray(s), y = Object.keys(e).reduce((m, f) => ((!o || !s.find((T) => T === f)) && (m[f] = e[f].type === "object" && e[f].properties ? H(e[f]) : K(e[f].default)), m), {});
9
+ if (r && (!o || !s.find((m) => m === "id"))) {
10
+ const m = r.toLowerCase().replace(/-/g, "_");
11
+ y.id = `${m}_${Math.random().toString().slice(2, 6)}`;
12
+ }
13
+ return y;
10
14
  }
11
- function P(i, e = {}, l) {
12
- const s = q[i];
15
+ function C(n, e = {}, r) {
16
+ const s = _[n];
13
17
  if (s) {
14
- let o = $(s);
15
- const d = W[i];
16
- return o = d ? d({ getSchemaByType: P }, o, e, l) : o, o;
18
+ let o = H(s);
19
+ const y = q[n];
20
+ return o = y ? y({ getSchemaByType: C }, o, e, r) : o, o;
17
21
  }
18
22
  return null;
19
23
  }
20
- function x(i, e) {
21
- const l = $(e);
22
- return Object.keys(i).reduce((s, o) => (s[o] && R(s[o]) && R(i[o]) ? Object.assign(s[o], i[o]) : s[o] = i[o], s), l), l;
24
+ function x(n, e) {
25
+ const r = H(e);
26
+ return Object.keys(r).reduce((s, o) => (s[o] && $(s[o]) && $(n[o] || !n[o]) ? Object.assign(s[o], n[o] || {}) : s[o] = n[o], s), r), r;
23
27
  }
24
- function I(i, e) {
25
- return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
28
+ function I(n, e) {
29
+ return Object.keys(n).filter((s) => n[s] != null).reduce((s, o) => {
26
30
  if (e.has(o)) {
27
- const d = e.get(o);
28
- if (typeof d == "string")
29
- s[d] = i[o];
31
+ const y = e.get(o);
32
+ if (typeof y == "string")
33
+ s[y] = n[o];
30
34
  else {
31
- const h = d(o, i[o], i);
32
- Object.assign(s, h);
35
+ const m = y(o, n[o], n);
36
+ Object.assign(s, m);
33
37
  }
34
38
  } else
35
- s[o] = i[o];
39
+ s[o] = n[o];
36
40
  return s;
37
41
  }, {});
38
42
  }
39
- function ee(i, e, l = /* @__PURE__ */ new Map()) {
40
- const s = x(i, e);
41
- return I(s, l);
43
+ function ee(n, e, r = /* @__PURE__ */ new Map()) {
44
+ const s = x(n, e);
45
+ return I(s, r);
42
46
  }
43
- function te(i = {}) {
44
- function e(a, f, p, y) {
47
+ function te(n = {}) {
48
+ function e(a, c, p, v) {
45
49
  if (typeof p == "number")
46
- return y[a].length === p;
50
+ return v[a].length === p;
47
51
  if (typeof p == "object") {
48
- const m = Object.keys(p)[0], g = p[m];
49
- if (m === "not")
50
- return Number(y[a].length) !== Number(g);
51
- if (m === "moreThan")
52
- return Number(y[a].length) >= Number(g);
53
- if (m === "lessThan")
54
- return Number(y[a].length) <= Number(g);
52
+ const g = Object.keys(p)[0], w = p[g];
53
+ if (g === "not")
54
+ return Number(v[a].length) !== Number(w);
55
+ if (g === "moreThan")
56
+ return Number(v[a].length) >= Number(w);
57
+ if (g === "lessThan")
58
+ return Number(v[a].length) <= Number(w);
55
59
  }
56
60
  return !1;
57
61
  }
58
- function l(a, f, p, y) {
59
- return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(p);
62
+ function r(a, c, p, v) {
63
+ return v[a] && v[a].propertyValue && String(v[a].propertyValue.value) === String(p);
60
64
  }
61
65
  const s = /* @__PURE__ */ new Map([
62
66
  ["length", e],
63
- ["getProperty", l]
67
+ ["getProperty", r]
64
68
  ]);
65
- Object.keys(i).reduce((a, f) => (a.set(f, i[f]), a), s);
66
- function o(a, f) {
69
+ Object.keys(n).reduce((a, c) => (a.set(c, n[c]), a), s);
70
+ function o(a, c) {
67
71
  const p = a;
68
- return typeof f == "number" ? [{ target: p, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
69
- if (y === "length")
70
- return { target: p, operator: "length", param: null, value: f[y] };
71
- const m = y, g = f[y];
72
- return { target: p, operator: "getProperty", param: m, value: g };
72
+ return typeof c == "number" ? [{ target: p, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((v) => {
73
+ if (v === "length")
74
+ return { target: p, operator: "length", param: null, value: c[v] };
75
+ const g = v, w = c[v];
76
+ return { target: p, operator: "getProperty", param: g, value: w };
73
77
  }) : [];
74
78
  }
75
- function d(a) {
76
- return Object.keys(a).reduce((p, y) => {
77
- const m = o(y, a[y]);
78
- return p.push(...m), p;
79
+ function y(a) {
80
+ return Object.keys(a).reduce((p, v) => {
81
+ const g = o(v, a[v]);
82
+ return p.push(...g), p;
79
83
  }, []);
80
84
  }
81
- function h(a, f) {
85
+ function m(a, c) {
82
86
  if (s.has(a.operator)) {
83
87
  const p = s.get(a.operator);
84
- return p && p(a.target, a.param, a.value, f) || !1;
88
+ return p && p(a.target, a.param, a.value, c) || !1;
85
89
  }
86
90
  return !1;
87
91
  }
88
- function u(a, f) {
89
- return d(a).reduce((m, g) => m && h(g, f), !0);
92
+ function f(a, c) {
93
+ return y(a).reduce((g, w) => g && m(w, c), !0);
90
94
  }
91
- function D(a, f) {
92
- const p = Object.keys(a), y = p.includes("allOf"), m = p.includes("anyOf"), g = y || m, L = (g ? a[g ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((j) => u(j, f));
93
- return y ? !L.includes(!1) : L.includes(!0);
95
+ function T(a, c) {
96
+ const p = Object.keys(a), v = p.includes("allOf"), g = p.includes("anyOf"), w = v || g, L = (w ? a[w ? v ? "allOf" : "anyOf" : "allOf"] : [a]).map((O) => f(O, c));
97
+ return v ? !L.includes(!1) : L.includes(!0);
94
98
  }
95
- return { parseValueSchema: D };
99
+ return { parseValueSchema: T };
96
100
  }
97
101
  const ne = {}, ie = {};
98
102
  te();
99
- function se(i, e, l = /* @__PURE__ */ new Map(), s = (h, u, D) => u, o = {}, d = (h) => h) {
100
- return q[e.title] = e, W[e.title] = s, ne[e.title] = o, ie[e.title] = d, (h = {}) => {
101
- const u = ee(h, e, l), D = Object.keys(i).reduce((a, f) => (a[f] = i[f].default, a), {});
102
- return Object.assign(D, u);
103
+ function se(n, e, r = /* @__PURE__ */ new Map(), s = (m, f, T, a) => f, o = {}, y = (m) => m) {
104
+ return _[e.title] = e, q[e.title] = s, ne[e.title] = o, ie[e.title] = y, (m = {}) => {
105
+ const f = ee(m, e, r), T = Object.keys(n).reduce((a, c) => (a[c] = n[c].default, a), {});
106
+ return Object.assign(T, f);
103
107
  };
104
108
  }
105
- function re(i, e) {
109
+ function le(n, e) {
106
110
  return { customClass: e.class, customStyle: e.style };
107
111
  }
108
- const le = /* @__PURE__ */ new Map([
109
- ["appearance", re]
112
+ const re = /* @__PURE__ */ new Map([
113
+ ["appearance", le]
110
114
  ]);
111
- function ae(i, e, l) {
115
+ function ae(n, e, r) {
112
116
  return e;
113
117
  }
114
- const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/verify-detail.schema.json", ue = "verify-detail", fe = "A Farris Component", pe = "object", ye = {
118
+ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/verify-detail.schema.json", ue = "verify-detail", fe = "A Farris Component", pe = "object", ve = {
115
119
  id: {
116
120
  description: "The unique identifier for verify-detail",
117
121
  type: "string"
@@ -173,18 +177,18 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
173
177
  type: "boolean",
174
178
  default: !0
175
179
  }
176
- }, ve = [
180
+ }, ye = [
177
181
  "id",
178
182
  "type"
179
- ], de = {
183
+ ], he = {
180
184
  $schema: oe,
181
185
  $id: ce,
182
186
  title: ue,
183
187
  description: fe,
184
188
  type: pe,
185
- properties: ye,
186
- required: ve
187
- }, he = "verify-detail", me = "A Farris Component", ge = "object", we = {
189
+ properties: ve,
190
+ required: ye
191
+ }, de = "verify-detail", me = "A Farris Component", ge = "object", we = {
188
192
  basic: {
189
193
  description: "Basic Infomation",
190
194
  title: "基本信息",
@@ -207,11 +211,11 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
207
211
  }
208
212
  }
209
213
  }, be = {
210
- title: he,
214
+ title: de,
211
215
  description: me,
212
216
  type: ge,
213
217
  categories: we
214
- }, H = {
218
+ }, R = {
215
219
  /** 表单验证默认显示的分组信息 */
216
220
  showType: { type: String, default: "" },
217
221
  /** 是否默认显示验证信息列表 */
@@ -251,64 +255,64 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
251
255
  },
252
256
  customClass: { type: String, default: "" },
253
257
  maxHeight: { type: Number, default: 200 }
254
- }, B = se(H, de, le, ae, be), N = /* @__PURE__ */ F({
258
+ }, A = se(R, he, re, ae, be), P = /* @__PURE__ */ B({
255
259
  name: "FVerifyDetail",
256
- props: H,
260
+ props: R,
257
261
  emits: ["validatorClick", "listshow"],
258
- setup(i, e) {
259
- let l = [];
260
- const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(i.customClass);
262
+ setup(n, e) {
263
+ let r = [];
264
+ const s = b(n.showList), o = b(n.maxHeight), y = b(n.verifyList), m = b(n.showType), f = b(n.verifyType), T = b(n.customClass);
261
265
  function a() {
262
266
  s.value = !s.value, e.emit("listshow", s.value);
263
267
  }
264
- function f(t) {
265
- var v;
266
- !t && u.value && u.value.length > 0 && (t = u.value[0].type), (v = u.value) == null || v.forEach((n) => {
267
- n.active = n.type === t;
268
+ function c(t) {
269
+ var u;
270
+ !t && f.value && f.value.length > 0 && (t = f.value[0].type), (u = f.value) == null || u.forEach((i) => {
271
+ i.active = i.type === t;
268
272
  });
269
273
  }
270
274
  function p(t) {
271
- t = t || l[0].type, l.forEach((v) => {
272
- v.show = v.type === t;
275
+ t = t || r[0].type, r.forEach((u) => {
276
+ u.show = u.type === t;
273
277
  });
274
278
  }
275
- function y(t) {
276
- t.length <= 0 || (f(t.type), p(t.type));
279
+ function v(t) {
280
+ t.length <= 0 || (c(t.type), p(t.type));
277
281
  }
278
- function m() {
282
+ function g() {
279
283
  s.value = !1, e.emit("listshow", !1);
280
284
  }
281
- function g(t) {
285
+ function w(t) {
282
286
  e.emit("validatorClick", t);
283
287
  }
284
- function O(t) {
285
- return r("li", {
288
+ function k(t) {
289
+ return l("li", {
286
290
  class: "f-verify-list",
287
- onClick: () => g(t)
288
- }, [r("span", {
291
+ onClick: () => w(t)
292
+ }, [l("span", {
289
293
  class: ["f-icon f-icon-close-outline list-icon list-error", {
290
294
  "list-warning": t.type === "warn"
291
295
  }]
292
- }, null), r("div", {
296
+ }, null), l("div", {
293
297
  class: "list-con"
294
- }, [r("p", {
298
+ }, [l("p", {
295
299
  class: "list-title",
296
300
  title: t.title
297
- }, [t.title]), r("p", {
301
+ }, [t.title]), l("p", {
298
302
  class: "list-msg",
299
303
  title: t.msg
300
304
  }, [t.msg])])]);
301
305
  }
302
- function k() {
303
- return l.map((t) => r("ul", {
306
+ function M() {
307
+ return r.map((t) => l("ul", {
304
308
  class: ["f-verify-list-content", {
305
309
  active: t.show
306
310
  }]
307
- }, [t.list && t.list.map((v) => O(v))]));
311
+ }, [t.list && t.list.map((u) => k(u))]));
308
312
  }
309
- const L = C(() => {
313
+ const L = N(() => {
310
314
  var t;
311
- return ((t = d.value) == null ? void 0 : t.length) > 0;
315
+ return ((t = y.value) == null ? void 0 : t.length) > 0;
312
316
  });
313
317
  function E(t) {
314
318
  return {
@@ -318,326 +322,325 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
318
322
  disabled: t.length <= 0
319
323
  };
320
324
  }
321
- const j = C(() => {
325
+ const O = N(() => {
322
326
  var t;
323
- return (t = u.value) == null ? void 0 : t.map((v) => r("button", {
324
- class: E(v),
325
- onClick: () => y(v)
326
- }, [v.title, r("span", null, [v.length])]));
327
- }), S = C(() => {
327
+ return (t = f.value) == null ? void 0 : t.map((u) => l("button", {
328
+ class: E(u),
329
+ onClick: () => v(u)
330
+ }, [u.title, l("span", null, [u.length])]));
331
+ }), S = N(() => {
328
332
  var t;
329
- return r("div", {
333
+ return l("div", {
330
334
  class: "f-verify-nums",
331
335
  onClick: a
332
- }, [r("span", {
336
+ }, [l("span", {
333
337
  class: "nums-icon f-icon f-icon-warning"
334
- }, null), r("span", {
338
+ }, null), l("span", {
335
339
  class: "nums-count"
336
- }, [(t = d.value) == null ? void 0 : t.length])]);
340
+ }, [(t = y.value) == null ? void 0 : t.length])]);
337
341
  });
338
- function M() {
339
- var v;
342
+ function h() {
343
+ var u;
340
344
  const t = [];
341
- u.value && ((v = u.value) != null && v.length) && (u.value.map((n) => {
342
- const c = {
343
- list: n.type === "all" ? d.value : [],
345
+ f.value && ((u = f.value) != null && u.length) && (f.value.map((i) => {
346
+ const d = {
347
+ list: i.type === "all" ? y.value : [],
344
348
  show: !1,
345
- type: n.type
349
+ type: i.type
346
350
  };
347
- t.push(c);
348
- }), t.map((n, c) => {
349
- const w = d.value.filter((T) => T.type === n.type);
350
- t[c].list = c !== 0 ? w : t[c].list;
351
- }), u.value.map((n, c) => {
352
- n.length = t[c].list.length;
353
- })), l = t;
351
+ t.push(d);
352
+ }), t.map((i, d) => {
353
+ const D = y.value.filter((j) => j.type === i.type);
354
+ t[d].list = d !== 0 ? D : t[d].list;
355
+ }), f.value.map((i, d) => {
356
+ i.length = t[d].list.length;
357
+ })), r = t;
354
358
  }
355
- return _(() => {
356
- M(), p(h.value), f(h.value);
357
- }), () => r("div", {
358
- class: L ? `f-verify-detail ${D.value}` : ""
359
- }, [L.value ? r("div", {
359
+ return F(() => {
360
+ h(), p(m.value), c(m.value);
361
+ }), () => l("div", {
362
+ class: L.value ? `f-verify-detail ${T.value}` : ""
363
+ }, [L.value ? l("div", {
360
364
  class: "f-verify-detail-content"
361
- }, [S.value, r("div", {
365
+ }, [S.value, l("div", {
362
366
  class: "f-verify-form-main",
363
367
  hidden: !s.value
364
- }, [r("div", {
368
+ }, [l("div", {
365
369
  class: "f-verify-form-content"
366
- }, [r("div", {
370
+ }, [l("div", {
367
371
  class: "f-verify-form-content-arrow"
368
- }, null), r("div", {
372
+ }, null), l("div", {
369
373
  class: "f-verify-form-content-list"
370
- }, [r("div", {
374
+ }, [l("div", {
371
375
  class: "f-verify-forms-title"
372
- }, [r("div", {
376
+ }, [l("div", {
373
377
  class: "btn-group"
374
- }, [j.value]), r("div", {
378
+ }, [O.value]), l("div", {
375
379
  class: "f-verify-close",
376
- onClick: m
377
- }, [r("span", {
380
+ onClick: g
381
+ }, [l("span", {
378
382
  class: "f-icon f-icon-close"
379
- }, null)])]), r("div", {
383
+ }, null)])]), l("div", {
380
384
  class: "f-verify-forms-list",
381
385
  style: {
382
386
  maxHeight: o.value + "px"
383
387
  }
384
- }, [k()])])])])]) : null]);
388
+ }, [M()])])])])]) : null]);
385
389
  }
386
390
  });
387
- function Te(i, e, l) {
391
+ function Te(n, e, r) {
388
392
  Q({
389
393
  setup() {
390
394
  return X(() => {
391
395
  e && e();
392
- }), () => r(N, i, null);
396
+ }), () => l(P, n, null);
393
397
  }
394
- }).mount(l);
398
+ }).mount(r);
395
399
  }
396
- class J {
397
- static show(e, l) {
400
+ class W {
401
+ static show(e, r) {
398
402
  this.clear();
399
403
  let s = 0;
400
- this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s, Te(e, this.clear, this.verifyContainer);
404
+ this.verifyContainer = document.createElement("div"), r ? (s = r.offsetHeight - 110, r.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s, Te(e, this.clear, this.verifyContainer);
401
405
  }
402
406
  static clear() {
403
407
  let e = this.verifyContainer;
404
408
  e && (e.parentNode && e.parentNode.removeChild(e), e = null);
405
409
  }
406
410
  }
407
- V(J, "verifyContainer", null);
408
- function De(i, e, l) {
409
- var M;
410
- function s() {
411
- }
412
- const o = "", d = "", h = b();
413
- function u() {
411
+ V(W, "verifyContainer", null);
412
+ function De(n, e, r) {
413
+ var S;
414
+ const s = "", o = "", y = b();
415
+ function m() {
414
416
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
415
417
  }
416
- function D() {
418
+ function f() {
417
419
  return !1;
418
420
  }
419
- function a() {
421
+ function T() {
420
422
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
421
423
  }
422
- function f() {
424
+ function a() {
423
425
  return (e == null ? void 0 : e.schema.componentType) === "frame";
424
426
  }
425
- function p(t) {
426
- if (!t || !t.value)
427
+ function c(h) {
428
+ if (!h || !h.value)
427
429
  return null;
428
- if (t.value.schema && t.value.schema.type === "component")
429
- return t.value;
430
- const v = b(t == null ? void 0 : t.value.parent), n = p(v);
431
- return n || null;
430
+ if (h.value.schema && h.value.schema.type === "component")
431
+ return h.value;
432
+ const t = b(h == null ? void 0 : h.value.parent), u = c(t);
433
+ return u || null;
432
434
  }
433
- function y(t = e) {
434
- const { componentInstance: v, designerItemElementRef: n } = t;
435
- return !v || !v.value ? null : v.value.canMove ? n : y(t.parent);
435
+ function p(h = e) {
436
+ const { componentInstance: t, designerItemElementRef: u } = h;
437
+ return !t || !t.value ? null : t.value.canMove ? u : p(h.parent);
436
438
  }
437
- function m(t) {
438
- return !!l;
439
+ function v(h) {
440
+ return !!r;
439
441
  }
440
442
  function g() {
441
443
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
442
444
  }
443
- function O() {
445
+ function w() {
444
446
  }
445
- function k(t, v) {
447
+ function k(h, t) {
446
448
  }
447
- function L(t, v) {
448
- const { componentType: n } = t;
449
- let c = P(n, t, v);
450
- const w = n.toLowerCase().replace("-", "_");
451
- return c && !c.id && c.type === n && (c.id = `${w}_${Math.random().toString().slice(2, 6)}`), c;
449
+ function M(h, t) {
450
+ const { componentType: u } = h;
451
+ let i = C(u, h, t);
452
+ const d = u.toLowerCase().replace(/-/g, "_");
453
+ return i && !i.id && i.type === u && (i.id = `${d}_${Math.random().toString().slice(2, 6)}`), i;
452
454
  }
453
- function E(t, v) {
454
- const n = String(t.getAttribute("data-controltype")), c = t.getAttribute("data-feature"), w = c ? JSON.parse(c) : {};
455
- w.parentComponentInstance = h.value;
456
- let T = P(n, w);
457
- const A = n.toLowerCase().replace("-", "_");
458
- return T && !T.id && T.type === n && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
455
+ function L(h) {
459
456
  }
460
- function j(t) {
457
+ function E(...h) {
461
458
  }
462
- function S(...t) {
459
+ function O() {
460
+ e != null && e.schema.contents && e.schema.contents.map((h) => {
461
+ var i;
462
+ let t = h.id;
463
+ h.type === "component-ref" && (t = h.component);
464
+ const u = n.value.querySelector(`#${t}-design-item`);
465
+ (i = u == null ? void 0 : u.componentInstance) != null && i.value.onRemoveComponent && u.componentInstance.value.onRemoveComponent();
466
+ });
463
467
  }
464
- return h.value = {
465
- canMove: u(),
466
- canSelectParent: D(),
467
- canDelete: a(),
468
- canNested: !f(),
468
+ return y.value = {
469
+ canMove: m(),
470
+ canSelectParent: f(),
471
+ canDelete: T(),
472
+ canNested: !a(),
469
473
  contents: e == null ? void 0 : e.schema.contents,
470
- elementRef: i,
471
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
474
+ elementRef: n,
475
+ parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
472
476
  schema: e == null ? void 0 : e.schema,
473
- styles: o,
474
- designerClass: d,
475
- canAccepts: m,
476
- getBelongedComponentInstance: p,
477
- getDraggableDesignItemElement: y,
477
+ styles: s,
478
+ designerClass: o,
479
+ canAccepts: v,
480
+ getBelongedComponentInstance: c,
481
+ getDraggableDesignItemElement: p,
478
482
  getDraggingDisplayText: g,
479
- getPropConfig: S,
480
- getDragScopeElement: O,
483
+ getPropConfig: E,
484
+ getDragScopeElement: w,
481
485
  onAcceptMovedChildElement: k,
482
- onAcceptNewChildElement: E,
483
- onChildElementMovedOut: j,
484
- addNewChildComponentSchema: L,
485
- updateDragAndDropRules: s,
486
+ onChildElementMovedOut: L,
487
+ addNewChildComponentSchema: M,
486
488
  triggerBelongedComponentToMoveWhenMoved: b(!1),
487
- triggerBelongedComponentToDeleteWhenDeleted: b(!1)
488
- }, h;
489
+ triggerBelongedComponentToDeleteWhenDeleted: b(!1),
490
+ onRemoveComponent: O
491
+ }, y;
489
492
  }
490
- const Le = /* @__PURE__ */ F({
493
+ const Le = /* @__PURE__ */ B({
491
494
  name: "FVerifyDetailDesign",
492
- props: H,
495
+ props: R,
493
496
  emits: ["validatorClick", "listshow"],
494
- setup(i, e) {
495
- let l = [];
496
- const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(), a = Y("design-item-context"), f = De(D, a);
497
+ setup(n, e) {
498
+ let r = [];
499
+ const s = b(n.showList), o = b(n.maxHeight), y = b(n.verifyList), m = b(n.showType), f = b(n.verifyType), T = b(), a = Y("design-item-context"), c = De(T, a);
497
500
  Z(() => {
498
- D.value.componentInstance = f;
499
- }), e.expose(f.value);
501
+ T.value.componentInstance = c;
502
+ }), e.expose(c.value);
500
503
  function p() {
501
504
  s.value = !s.value, e.emit("listshow", s.value);
502
505
  }
503
- function y(n) {
504
- var c;
505
- (c = u.value) == null || c.forEach((w) => {
506
- w.active = w.type === n;
506
+ function v(i) {
507
+ var d;
508
+ (d = f.value) == null || d.forEach((D) => {
509
+ D.active = D.type === i;
507
510
  });
508
511
  }
509
- function m(n) {
510
- l.forEach((c) => {
511
- c.show = c.type === n;
512
+ function g(i) {
513
+ r.forEach((d) => {
514
+ d.show = d.type === i;
512
515
  });
513
516
  }
514
- function g(n) {
515
- n.length <= 0 || (y(n.type), m(n.type));
517
+ function w(i) {
518
+ i.length <= 0 || (v(i.type), g(i.type));
516
519
  }
517
- function O() {
520
+ function k() {
518
521
  s.value = !1, e.emit("listshow", !1);
519
522
  }
520
- function k(n) {
521
- e.emit("validatorClick", n);
523
+ function M(i) {
524
+ e.emit("validatorClick", i);
522
525
  }
523
- function L(n) {
524
- return r("li", {
526
+ function L(i) {
527
+ return l("li", {
525
528
  class: "f-verify-list",
526
- onClick: () => k(n)
527
- }, [r("span", {
529
+ onClick: () => M(i)
530
+ }, [l("span", {
528
531
  class: ["f-icon f-icon-close-outline list-icon list-error", {
529
- "list-warning": n.type === "warn"
532
+ "list-warning": i.type === "warn"
530
533
  }]
531
- }, null), r("div", {
534
+ }, null), l("div", {
532
535
  class: "list-con"
533
- }, [r("p", {
536
+ }, [l("p", {
534
537
  class: "list-title",
535
- title: n.title
536
- }, [n.title]), r("p", {
538
+ title: i.title
539
+ }, [i.title]), l("p", {
537
540
  class: "list-msg",
538
- title: n.msg
539
- }, [n.msg])])]);
541
+ title: i.msg
542
+ }, [i.msg])])]);
540
543
  }
541
544
  function E() {
542
- return l.map((n) => r("ul", {
545
+ return r.map((i) => l("ul", {
543
546
  class: ["f-verify-list-content", {
544
- active: n.show
547
+ active: i.show
545
548
  }]
546
- }, [n.list && n.list.map((c) => L(c))]));
549
+ }, [i.list && i.list.map((d) => L(d))]));
547
550
  }
548
- const j = C(() => {
549
- var n;
550
- return ((n = d.value) == null ? void 0 : n.length) > 0;
551
+ const O = N(() => {
552
+ var i;
553
+ return ((i = y.value) == null ? void 0 : i.length) > 0;
551
554
  });
552
- function S(n) {
555
+ function S(i) {
553
556
  return {
554
557
  "btn btn-secondary": !0,
555
- active: n.active,
556
- disabled: n.length <= 0
558
+ active: i.active,
559
+ disabled: i.length <= 0
557
560
  };
558
561
  }
559
- const M = C(() => {
560
- var n;
561
- return (n = u.value) == null ? void 0 : n.map((c) => r("button", {
562
- class: S(c),
563
- onClick: () => g(c)
564
- }, [c.title, r("span", null, [c.length])]));
565
- }), t = C(() => {
566
- var n;
567
- return r("div", {
562
+ const h = N(() => {
563
+ var i;
564
+ return (i = f.value) == null ? void 0 : i.map((d) => l("button", {
565
+ class: S(d),
566
+ onClick: () => w(d)
567
+ }, [d.title, l("span", null, [d.length])]));
568
+ }), t = N(() => {
569
+ var i;
570
+ return l("div", {
568
571
  class: "f-verify-nums",
569
572
  onClick: p
570
- }, [r("span", {
573
+ }, [l("span", {
571
574
  class: "nums-icon f-icon f-icon-warning"
572
- }, null), r("span", {
575
+ }, null), l("span", {
573
576
  class: "nums-count"
574
- }, [(n = d.value) == null ? void 0 : n.length])]);
577
+ }, [(i = y.value) == null ? void 0 : i.length])]);
575
578
  });
576
- function v() {
577
- var c;
578
- const n = [];
579
- u.value && ((c = u.value) != null && c.length) && (u.value.map((w) => {
580
- const T = {
581
- list: w.type === "all" ? d.value : [],
579
+ function u() {
580
+ var d;
581
+ const i = [];
582
+ f.value && ((d = f.value) != null && d.length) && (f.value.map((D) => {
583
+ const j = {
584
+ list: D.type === "all" ? y.value : [],
582
585
  show: !1,
583
- type: w.type
586
+ type: D.type
584
587
  };
585
- n.push(T);
586
- }), n.map((w, T) => {
587
- const A = d.value.filter((U) => U.type === w.type);
588
- n[T].list = T !== 0 ? A : n[T].list;
589
- }), u.value.map((w, T) => {
590
- w.length = n[T].list.length;
591
- })), l = n;
588
+ i.push(j);
589
+ }), i.map((D, j) => {
590
+ const U = y.value.filter((z) => z.type === D.type);
591
+ i[j].list = j !== 0 ? U : i[j].list;
592
+ }), f.value.map((D, j) => {
593
+ D.length = i[j].list.length;
594
+ })), r = i;
592
595
  }
593
- return _(() => {
594
- v(), m(h.value), y(h.value);
595
- }), () => r("div", {
596
- ref: D
597
- }, [j.value ? r("div", {
596
+ return F(() => {
597
+ u(), g(m.value), v(m.value);
598
+ }), () => l("div", {
599
+ ref: T
600
+ }, [O.value ? l("div", {
598
601
  class: "f-verify-detail"
599
- }, [r("div", {
602
+ }, [l("div", {
600
603
  class: "f-verify-detail-content"
601
- }, [t.value, r("div", {
604
+ }, [t.value, l("div", {
602
605
  class: "f-verify-form-main",
603
606
  hidden: !s.value
604
- }, [r("div", {
607
+ }, [l("div", {
605
608
  class: "f-verify-form-content"
606
- }, [r("div", {
609
+ }, [l("div", {
607
610
  class: "f-verify-form-content-arrow"
608
- }, null), r("div", {
611
+ }, null), l("div", {
609
612
  class: "f-verify-form-content-list"
610
- }, [r("div", {
613
+ }, [l("div", {
611
614
  class: "f-verify-forms-title"
612
- }, [r("div", {
615
+ }, [l("div", {
613
616
  class: "btn-group"
614
- }, [M.value]), r("div", {
617
+ }, [h.value]), l("div", {
615
618
  class: "f-verify-close",
616
- onClick: O
617
- }, [r("span", {
619
+ onClick: k
620
+ }, [l("span", {
618
621
  class: "f-icon f-icon-close"
619
- }, null)])]), r("div", {
622
+ }, null)])]), l("div", {
620
623
  class: "f-verify-forms-list",
621
624
  style: {
622
625
  maxHeight: o.value + "px"
623
626
  }
624
627
  }, [E()])])])])])]) : null]);
625
628
  }
626
- }), Ee = {
627
- install(i) {
628
- i.component(N.name, N), i.provide("FVerifyDetailService", J);
629
+ }), Me = {
630
+ install(n) {
631
+ n.component(P.name, P), n.provide("FVerifyDetailService", W);
629
632
  },
630
- register(i, e, l, s) {
631
- i["verify-detail"] = N, e["verify-detail"] = B;
633
+ register(n, e, r, s) {
634
+ n["verify-detail"] = P, e["verify-detail"] = A;
632
635
  },
633
- registerDesigner(i, e, l) {
634
- i["verify-detail"] = Le, e["verify-detail"] = B;
636
+ registerDesigner(n, e, r) {
637
+ n["verify-detail"] = Le, e["verify-detail"] = A;
635
638
  }
636
639
  };
637
640
  export {
638
- N as FVerifyDetail,
639
- J as FVerifyDetailService,
640
- Ee as default,
641
- B as propsResolver,
642
- H as verifyDetailProps
641
+ P as FVerifyDetail,
642
+ W as FVerifyDetailService,
643
+ Me as default,
644
+ A as propsResolver,
645
+ R as verifyDetailProps
643
646
  };