@farris/ui-vue 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -0,0 +1 @@
1
+ (function(v,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("lodash-es"),require("../accordion/index.umd.js"),require("../avatar/index.umd.js"),require("../button-edit/index.umd.js"),require("../button-group/index.umd.js"),require("../calendar/index.umd.js"),require("../capsule/index.umd.js"),require("../checkbox/index.umd.js"),require("../color-picker/index.umd.js"),require("../combo-list/index.umd.js"),require("../content-container/index.umd.js"),require("../data-grid/index.umd.js"),require("../date-picker/index.umd.js"),require("../dropdown/index.umd.js"),require("../dynamic-form/index.umd.js"),require("../external-container/index.umd.js"),require("../events-editor/index.umd.js"),require("../filter-bar/index.umd.js"),require("../image-cropper/index.umd.js"),require("../input-group/index.umd.js"),require("../layout/index.umd.js"),require("../list-nav/index.umd.js"),require("../list-view/index.umd.js"),require("../lookup/index.umd.js"),require("../nav/index.umd.js"),require("../number-spinner/index.umd.js"),require("../number-range/index.umd.js"),require("../order/index.umd.js"),require("../page-header/index.umd.js"),require("../page-footer/index.umd.js"),require("../pagination/index.umd.js"),require("../progress/index.umd.js"),require("../query-solution/index.umd.js"),require("../radio-group/index.umd.js"),require("../rate/index.umd.js"),require("../response-toolbar/index.umd.js"),require("../response-layout/index.umd.js"),require("../response-layout-editor/index.umd.js"),require("../search-box/index.umd.js"),require("../section/index.umd.js"),require("../smoke-detector/index.umd.js"),require("../splitter/index.umd.js"),require("../step/index.umd.js"),require("../switch/index.umd.js"),require("../tabs/index.umd.js"),require("../tags/index.umd.js"),require("../text/index.umd.js"),require("../time-picker/index.umd.js"),require("../transfer/index.umd.js"),require("../tree-view/index.umd.js"),require("../uploader/index.umd.js"),require("../verify-detail/index.umd.js"),require("../weather/index.umd.js"),require("../component/index.umd.js"),require("../video/index.umd.js"),require("../textarea/index.umd.js"),require("../tree-grid/index.umd.js"),require("../common/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","../accordion/index.umd.js","../avatar/index.umd.js","../button-edit/index.umd.js","../button-group/index.umd.js","../calendar/index.umd.js","../capsule/index.umd.js","../checkbox/index.umd.js","../color-picker/index.umd.js","../combo-list/index.umd.js","../content-container/index.umd.js","../data-grid/index.umd.js","../date-picker/index.umd.js","../dropdown/index.umd.js","../dynamic-form/index.umd.js","../external-container/index.umd.js","../events-editor/index.umd.js","../filter-bar/index.umd.js","../image-cropper/index.umd.js","../input-group/index.umd.js","../layout/index.umd.js","../list-nav/index.umd.js","../list-view/index.umd.js","../lookup/index.umd.js","../nav/index.umd.js","../number-spinner/index.umd.js","../number-range/index.umd.js","../order/index.umd.js","../page-header/index.umd.js","../page-footer/index.umd.js","../pagination/index.umd.js","../progress/index.umd.js","../query-solution/index.umd.js","../radio-group/index.umd.js","../rate/index.umd.js","../response-toolbar/index.umd.js","../response-layout/index.umd.js","../response-layout-editor/index.umd.js","../search-box/index.umd.js","../section/index.umd.js","../smoke-detector/index.umd.js","../splitter/index.umd.js","../step/index.umd.js","../switch/index.umd.js","../tabs/index.umd.js","../tags/index.umd.js","../text/index.umd.js","../time-picker/index.umd.js","../transfer/index.umd.js","../tree-view/index.umd.js","../uploader/index.umd.js","../verify-detail/index.umd.js","../weather/index.umd.js","../component/index.umd.js","../video/index.umd.js","../textarea/index.umd.js","../tree-grid/index.umd.js","../common/index.umd.js"],c):(v=typeof globalThis<"u"?globalThis:v||self,c(v["designer-canvas"]={},v.Vue,v.LodashES,v.FAccordion,v.FAvatar,v.FButtonEdit,v.FButtonGroup,v.FCalendar,v.FCapsule,v.FCheckbox,v.FColorPicker,v.FComboList,v.FContentContainer,v.FDataGrid,v.FDatePicker,v.FDropdown,v.FDynamicForm,v.FExteranlContainer,v.FEventsEditor,v.FFilterBar,v.FImageCropper,v.FInputGroup,v.FLayout,v.FListNav,v.FListView,v.FLookup,v.FNav,v.FNumberSpinner,v.FNumberRange,v.FOrder,v.FPageHeader,v.FPageFooter,v.FPagination,v.FProgress,v.FQuerySolution,v.FRadioGroup,v.FRate,v.FResponseToolbar,v.FResponseLayout,v.FResponseLayoutEditorSetting,v.FSearchBox,v.FSection,v.FSmokeDetector,v.FSplitter,v.FStep,v.FSwitch,v.FTab,v.FTags,v.FText,v.FTimePicker,v.FTransfer,v.FTreeview,v.FUploader,v.FVerifyDetail,v.FWeather,v.FComponent,v.FVideo,v.FTextArea,v.FTreeGrid,v.common))})(this,function(v,c,ve,Ge,ze,Je,Qe,Ke,Ze,Re,en,nn,tn,rn,on,an,cn,sn,un,ln,dn,fn,pn,mn,vn,gn,hn,yn,Cn,xn,Dn,wn,jn,Sn,Tn,bn,En,Nn,Fn,Pn,In,qn,An,Mn,Bn,kn,Vn,On,_n,Ln,$n,Un,Hn,Xn,Wn,Yn,Gn,zn,Jn,ye){"use strict";const pe=c.ref(0);function Qn(I,s){const n=s.getBoundingClientRect(),j=I.getBoundingClientRect(),P=j.top>=n.top,l=j.top<=n.bottom;return P&&l}function Fe(I){if(!I)return;let s;if(I.className.includes("dgComponentSelected")?s=I:s=I.querySelector(".dgComponentSelected"),!s)return;const n=s.getBoundingClientRect();if(n.width===0&&n.height===0)return;const j=s.querySelector(".component-btn-group");if(j){if(!Qn(s,I)){j.style.display="none";return}j.style.display="";const l=j.getBoundingClientRect(),m=j.querySelector("div");if(m){const D=m.getBoundingClientRect();m.style.top=l.top+"px",m.style.left=l.left-D.width+"px"}}}const Pe={modelValue:{type:Object,default:{}},componentId:{type:String,default:""}};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}function ge(I){throw new Error('Could not dynamically require "'+I+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ie={exports:{}};(function(I,s){(function(n){I.exports=n()})(function(){return function(){function n(j,P,l){function m(B,k){if(!P[B]){if(!j[B]){var d=typeof ge=="function"&&ge;if(!k&&d)return d(B,!0);if(D)return D(B,!0);var x=new Error("Cannot find module '"+B+"'");throw x.code="MODULE_NOT_FOUND",x}var u=P[B]={exports:{}};j[B][0].call(u.exports,function(t){var r=j[B][1][t];return m(r||t)},u,u.exports,n,j,P,l)}return P[B].exports}for(var D=typeof ge=="function"&&ge,p=0;p<l.length;p++)m(l[p]);return m}return n}()({1:[function(n,j,P){var l={},m="(?:^|\\s)",D="(?:\\s|$)";function p(d){var x=l[d];return x?x.lastIndex=0:l[d]=x=new RegExp(m+d+D,"g"),x}function B(d,x){var u=d.className;u.length?p(x).test(u)||(d.className+=" "+x):d.className=x}function k(d,x){d.className=d.className.replace(p(x)," ").trim()}j.exports={add:B,rm:k}},{}],2:[function(n,j,P){(function(l){var m=n("contra/emitter"),D=n("crossvent"),p=n("./classes"),B=document,k=B.documentElement;function d(o,H){var Y=arguments.length;Y===1&&Array.isArray(o)===!1&&(H=o,o=[]);var a,b,F,G,J,Q,ee,_,te,re=null,le,$,de=!1,fe=0,K,q=H||{};q.moves===void 0&&(q.moves=M),q.accepts===void 0&&(q.accepts=M),q.invalid===void 0&&(q.invalid=vt),q.containers===void 0&&(q.containers=o||[]),q.isContainer===void 0&&(q.isContainer=g),q.copy===void 0&&(q.copy=!1),q.copySortSource===void 0&&(q.copySortSource=!1),q.revertOnSpill===void 0&&(q.revertOnSpill=!1),q.removeOnSpill===void 0&&(q.removeOnSpill=!1),q.direction===void 0&&(q.direction="vertical"),q.ignoreInputTextSelection===void 0&&(q.ignoreInputTextSelection=!0),q.mirrorContainer===void 0&&(q.mirrorContainer=B.body);var z=m({containers:q.containers,start:mt,end:_e,cancel:He,remove:Ue,destroy:lt,canMove:pt,dragging:!1});return q.removeOnSpill===!0&&z.on("over",ht).on("out",yt),Be(),z;function Ce(e){return z.containers.indexOf(e)!==-1||q.isContainer(e)}function Be(e){var f=e?"remove":"add";t(k,f,"mousedown",dt),t(k,f,"mouseup",we)}function xe(e){var f=e?"remove":"add";t(k,f,"mousemove",ft)}function ke(e){var f=e?"remove":"add";D[f](k,"selectstart",Ve),D[f](k,"click",Ve)}function lt(){Be(!0),we({})}function Ve(e){le&&e.preventDefault()}function dt(e){G=e.clientX,J=e.clientY;var f=r(e)!==1||e.metaKey||e.ctrlKey;if(!f){var h=e.target,A=De(h);A&&(le=A,xe(),e.type==="mousedown"&&(i(h)?h.focus():e.preventDefault()))}}function ft(e){if(le){if(r(e)===0){we({});return}if(!(e.clientX!==void 0&&Math.abs(e.clientX-G)<=(q.slideFactorX||0)&&e.clientY!==void 0&&Math.abs(e.clientY-J)<=(q.slideFactorY||0))){if(q.ignoreInputTextSelection){var f=L("clientX",e)||0,h=L("clientY",e)||0,A=B.elementFromPoint(f,h);if(i(A))return}var X=le;xe(!0),ke(),_e(),Oe(X),p.add(_||F,"gu-transit"),xt(),Ct(),fe=0,Te(e)}}}function De(e){if(!(z.dragging&&a)&&!Ce(e)){for(var f=e;w(e)&&Ce(w(e))===!1;)if(q.invalid(e,f)||(e=w(e),!e))return;var h=w(e);if(h&&!q.invalid(e,f)){var A=q.moves(e,h,f,C(e));if(A)return{item:e,source:h}}}}function pt(e){return!!De(e)}function mt(e){var f=De(e);f&&Oe(f)}function Oe(e){Nt(e.item,e.source)&&(_=e.item.cloneNode(!0),z.emit("cloned",_,e.item,"copy")),b=e.source,F=e.item,Q=ee=C(e.item),z.dragging=!0,z.emit("drag",F,b)}function vt(){return!1}function _e(){if(z.dragging){var e=_||F;$e(e,w(e))}}function Le(){le=!1,xe(!0),ke(!0)}function we(e){if(Le(),!!z.dragging){var f=_||F,h=L("clientX",e)||0,A=L("clientY",e)||0,X=y(a,h,A),W=Xe(X,h,A);W&&(_&&q.copySortSource||!_||W!==b)?$e(f,W):q.removeOnSpill?Ue():He()}}function $e(e,f){var h=w(e);_&&q.copySortSource&&f===b&&h.removeChild(F),Se(f)?z.emit("cancel",e,b):z.emit("drop",e,f,b,ee),je()}function Ue(){if(z.dragging){var e=_||F,f=w(e);f&&f.removeChild(e),z.emit(_?"cancel":"remove",e,f,b),je()}}function He(e){if(z.dragging){var f=arguments.length>0?e:q.revertOnSpill,h=_||F,A=w(h),X=Se(A);X===!1&&f&&(_?A&&A.removeChild(_):b.insertBefore(h,Q)),X||f?z.emit("cancel",h,b,b):z.emit("drop",h,A,b,ee),je()}}function je(){var e=_||F;Le(),Dt(),wt(),e&&p.rm(e,"gu-transit"),te&&clearTimeout(te),z.dragging=!1,re&&z.emit("out",e,re,b),z.emit("dragend",e,fe),b=F=_=Q=ee=te=re=null}function Se(e,f){var h;return f!==void 0?h=f:a?h=ee:h=C(_||F),e===b&&h===Q}function Xe(e,f,h){for(var A=e;A&&!X();)A=w(A);return A;function X(){var W=Ce(A);if(W===!1)return!1;var ae=We(A,e),ne=Ye(A,ae,f,h),ie=Se(A,ne);return ie?!0:q.accepts(F,A,b,ne)}}function Te(e){if(!a)return;e.preventDefault();var f=L("clientX",e)||0,h=L("clientY",e)||0;a.style.left=f-2+"px",a.style.top=h-2+"px";var A=_||F,X=y(a,f,h),W=Xe(X,f,h),ae=W!==null&&W!==re;(ae||W===null)&&(oe(),re=W,ue()),Et(X,h);var ne=w(A);if(W===b&&_&&!q.copySortSource){ne&&ne.removeChild(A);return}var ie,se=We(W,X);if(de=jt(se,W),se!==null)ie=Ye(W,se,f,h);else if(q.revertOnSpill===!0&&!_)ie=Q,W=b;else{_&&ne&&ne.removeChild(A),_&&$&&($.style.display="none");return}$.style.display="block",gt(ie,A,ae),ie?Tt(se,ie):bt(W);function Z(R){z.emit(R,A,re,b)}function ue(){ae&&Z("over")}function oe(){re&&Z("out")}}function gt(e,f,h){(e===f||e===C(f))&&(ee=C(f)),(e===null&&h||e!==f&&e!==C(f))&&(ee=e)}function ht(e){p.rm(e,"gu-hide")}function yt(e){z.dragging&&p.add(e,"gu-hide")}function Ct(){a||(a=document.createElement("div"),a.style="background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;",a.innerHTML=q.getMirrorText&&q.getMirrorText(F)||"控件",p.add(a,"gu-mirror"),q.mirrorContainer.appendChild(a),t(k,"add","mousemove",Te),p.add(q.mirrorContainer,"gu-unselectable"),z.emit("cloned",a,F,"mirror"))}function xt(){if($=document.createElement("div"),p.add($,"gu-insertion"),F){var e=F.getBoundingClientRect();$.style.left=e.left+"px",$.style.top=e.top+"px"}de=!1,q.mirrorContainer.appendChild($)}function Dt(){a&&(p.rm(q.mirrorContainer,"gu-unselectable"),t(k,"remove","mousemove",Te),w(a).removeChild(a),a=null)}function wt(){$&&(w($).removeChild($),$=null)}function We(e,f){for(var h=f;h!==e&&w(h)!==e;)h=w(h);return h===k?null:h}function jt(e,f){if(!f)return de;var h=e||f&&f.lastElementChild;if(!h)return!0;var A=getComputedStyle(e),X=/^inline/.test(A.getPropertyValue("display"))||/^(left|right)$/.test(A.getPropertyValue("float"));if(X)return!0;if(f){var W=getComputedStyle(f),ae=W.getPropertyValue("display");if(/flex$/.test(ae)){var ne=W.getPropertyValue("flex-direction")||"row";if(ne==="row"||ne==="row-reverse")return!St(f)}return!1}return!0}function St(e){if(!e.children||!e.children.length)return!1;for(const f of Array.from(e.children)){const A=(f.className&&f.className.split(" ")||[]).filter(X=>/^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(X));if(!A.length)return!1;for(const X of A){const W=X.slice(X.lastIndexOf("-")+1);if(parseInt(W,10)!==12)return!1}}return!0}function Tt(e,f){const h=f.getBoundingClientRect();if($.style.left=h.left+"px",$.style.top=h.top+"px",de){if($.style.height=h.height+"px",$.style.width="4px",e){const A=e.getBoundingClientRect();A.top!==h.top&&($.style.left=A.right+"px",$.style.top=A.top+"px",$.style.height=A.height+"px")}}else if($.style.height="4px",$.style.width=h.width+"px",K){const A=K.getBoundingClientRect();h.top<A.top&&($.style.display="none")}f===F&&F&&($.style.display="none")}function bt(e){ee=null;var f=e.lastElementChild;if(f){var h=f.getBoundingClientRect();de?($.style.left=h.right+"px",$.style.top=h.top+"px",$.style.height=h.height+"px",$.style.width="4px"):($.style.left=h.left+"px",$.style.top=h.bottom+"px",$.style.height="4px",$.style.width=h.width+"px"),f===F&&F&&($.style.display="none")}else $.style.display="none"}function Et(e,f){if(!q.mirrorContainer.contains(e)||!window.scrollContainerList||!Array.from(window.scrollContainerList).length||(K=x(e),!K||!K.contains(e)))return;const h=document.querySelector(".dgComponentSelected"),A=K.getBoundingClientRect();if(f-30<A.top&&K.scrollTop>0){let X=K.scrollTop<10?K.scrollTop:10;K.scrollBy(0,-1*X),h&&K.contains(h)&&(fe=fe+-1*X)}if(f+30>A.bottom&&K.scrollTop<K.scrollHeight-K.clientHeight){const X=K.scrollHeight-K.clientHeight-K.scrollTop;let W=X<10?X:10;K.scrollBy(0,W),h&&K.contains(h)&&(fe=fe+W)}}function Ye(e,f,h,A){var X=q.direction==="horizontal",W=q.direction==="mixed",ae=f!==e?ie():ne();return ae;function ne(){var Z=e.children.length,ue,oe,R;for(ue=0;ue<Z;ue++)if(oe=e.children[ue],R=oe.getBoundingClientRect(),X&&R.left+R.width/2>h||!W&&!X&&R.top+R.height/2>A||W&&R.left+R.width>h&&R.top+R.height>A)return oe;return null}function ie(){var Z=f.getBoundingClientRect();if(W){var ue=A-Z.top,oe=h-Z.left,R=Z.bottom-A,be=Z.right-h,Ee=Math.min(oe,be,ue,R),Ne;return de?Ne=be<oe:Ne=R===Ee||be===Ee||oe===Ee,se(Ne)}return se(X?h>Z.left+O(Z)/2:A>Z.top+V(Z)/2)}function se(Z){return Z?C(f):f}}function Nt(e,f){return typeof q.copy=="boolean"?q.copy:q.copy(e,f)}}function x(o){const H=Array.from(window.scrollContainerList);if(H.length===1){const a=Array.from(window.scrollContainerList)[0];return document.getElementById(a)}const Y=u(H);for(const a of Y)if(a.contains(o))return a;return null}function u(o){const H=[];return o.forEach(Y=>{const a=document.getElementById(Y);a&&H.push(a)}),H.sort((Y,a)=>Y.contains(a)?1:a.contains(Y)?-1:0),H}function t(o,H,Y,a){var b={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},F={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},G={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};l.navigator.pointerEnabled?D[H](o,F[Y],a):l.navigator.msPointerEnabled?D[H](o,G[Y],a):(D[H](o,b[Y],a),D[H](o,Y,a))}function r(o){if(o.touches!==void 0)return o.touches.length;if(o.which!==void 0&&o.which!==0)return o.which;if(o.buttons!==void 0)return o.buttons;var H=o.button;if(H!==void 0)return H&1?1:H&2?3:H&4?2:0}function y(o,H,Y){o=o||{};var a=o.className||"",b;return o.className+=" gu-hide",b=B.elementFromPoint(H,Y),o.className=a,b}function g(){return!1}function M(){return!0}function O(o){return o.width||o.right-o.left}function V(o){return o.height||o.bottom-o.top}function w(o){return o.parentNode===B?null:o.parentNode}function i(o){return o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SELECT"||E(o)}function E(o){return!o||o.contentEditable==="false"?!1:o.contentEditable==="true"?!0:E(w(o))}function C(o){return o.nextElementSibling||H();function H(){var Y=o;do Y=Y.nextSibling;while(Y&&Y.nodeType!==1);return Y}}function U(o){return o.targetTouches&&o.targetTouches.length?o.targetTouches[0]:o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o}function L(o,H){var Y=U(H),a={pageX:"clientX",pageY:"clientY"};return o in a&&!(o in Y)&&a[o]in Y&&(o=a[o]),Y[o]}j.exports=d}).call(this,typeof ce<"u"?ce:typeof self<"u"?self:typeof window<"u"?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(n,j,P){j.exports=function(m,D){return Array.prototype.slice.call(m,D)}},{}],4:[function(n,j,P){var l=n("ticky");j.exports=function(D,p,B){D&&l(function(){D.apply(B||null,p||[])})}},{ticky:10}],5:[function(n,j,P){var l=n("atoa"),m=n("./debounce");j.exports=function(p,B){var k=B||{},d={};return p===void 0&&(p={}),p.on=function(x,u){return d[x]?d[x].push(u):d[x]=[u],p},p.once=function(x,u){return u._once=!0,p.on(x,u),p},p.off=function(x,u){var t=arguments.length;if(t===1)delete d[x];else if(t===0)d={};else{var r=d[x];if(!r)return p;r.splice(r.indexOf(u),1)}return p},p.emit=function(){var x=l(arguments);return p.emitterSnapshot(x.shift()).apply(this,x)},p.emitterSnapshot=function(x){var u=(d[x]||[]).slice(0);return function(){var t=l(arguments),r=this||p;if(x==="error"&&k.throws!==!1&&!u.length)throw t.length===1?t[0]:t;return u.forEach(function(g){k.async?m(g,t,r):g.apply(r,t),g._once&&p.off(x,g)}),p}},p}},{"./debounce":4,atoa:3}],6:[function(n,j,P){(function(l){var m=n("custom-event"),D=n("./eventmap"),p=l.document,B=x,k=t,d=[];l.addEventListener||(B=u,k=r),j.exports={add:B,remove:k,fabricate:y};function x(w,i,E,C){return w.addEventListener(i,E,C)}function u(w,i,E){return w.attachEvent("on"+i,M(w,i,E))}function t(w,i,E,C){return w.removeEventListener(i,E,C)}function r(w,i,E){var C=O(w,i,E);if(C)return w.detachEvent("on"+i,C)}function y(w,i,E){var C=D.indexOf(i)===-1?L():U();w.dispatchEvent?w.dispatchEvent(C):w.fireEvent("on"+i,C);function U(){var o;return p.createEvent?(o=p.createEvent("Event"),o.initEvent(i,!0,!0)):p.createEventObject&&(o=p.createEventObject()),o}function L(){return new m(i,{detail:E})}}function g(w,i,E){return function(U){var L=U||l.event;L.target=L.target||L.srcElement,L.preventDefault=L.preventDefault||function(){L.returnValue=!1},L.stopPropagation=L.stopPropagation||function(){L.cancelBubble=!0},L.which=L.which||L.keyCode,E.call(w,L)}}function M(w,i,E){var C=O(w,i,E)||g(w,i,E);return d.push({wrapper:C,element:w,type:i,fn:E}),C}function O(w,i,E){var C=V(w,i,E);if(C){var U=d[C].wrapper;return d.splice(C,1),U}}function V(w,i,E){var C,U;for(C=0;C<d.length;C++)if(U=d[C],U.element===w&&U.type===i&&U.fn===E)return C}}).call(this,typeof ce<"u"?ce:typeof self<"u"?self:typeof window<"u"?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(n,j,P){(function(l){var m=[],D="",p=/^on/;for(D in l)p.test(D)&&m.push(D.slice(2));j.exports=m}).call(this,typeof ce<"u"?ce:typeof self<"u"?self:typeof window<"u"?window:{})},{}],8:[function(n,j,P){(function(l){var m=l.CustomEvent;function D(){try{var p=new m("cat",{detail:{foo:"bar"}});return p.type==="cat"&&p.detail.foo==="bar"}catch{}return!1}j.exports=D()?m:typeof document<"u"&&typeof document.createEvent=="function"?function(B,k){var d=document.createEvent("CustomEvent");return k?d.initCustomEvent(B,k.bubbles,k.cancelable,k.detail):d.initCustomEvent(B,!1,!1,void 0),d}:function(B,k){var d=document.createEventObject();return d.type=B,k?(d.bubbles=!!k.bubbles,d.cancelable=!!k.cancelable,d.detail=k.detail):(d.bubbles=!1,d.cancelable=!1,d.detail=void 0),d}}).call(this,typeof ce<"u"?ce:typeof self<"u"?self:typeof window<"u"?window:{})},{}],9:[function(n,j,P){var l=j.exports={},m,D;function p(){throw new Error("setTimeout has not been defined")}function B(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?m=setTimeout:m=p}catch{m=p}try{typeof clearTimeout=="function"?D=clearTimeout:D=B}catch{D=B}})();function k(V){if(m===setTimeout)return setTimeout(V,0);if((m===p||!m)&&setTimeout)return m=setTimeout,setTimeout(V,0);try{return m(V,0)}catch{try{return m.call(null,V,0)}catch{return m.call(this,V,0)}}}function d(V){if(D===clearTimeout)return clearTimeout(V);if((D===B||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(V);try{return D(V)}catch{try{return D.call(null,V)}catch{return D.call(this,V)}}}var x=[],u=!1,t,r=-1;function y(){!u||!t||(u=!1,t.length?x=t.concat(x):r=-1,x.length&&g())}function g(){if(!u){var V=k(y);u=!0;for(var w=x.length;w;){for(t=x,x=[];++r<w;)t&&t[r].run();r=-1,w=x.length}t=null,u=!1,d(V)}}l.nextTick=function(V){var w=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)w[i-1]=arguments[i];x.push(new M(V,w)),x.length===1&&!u&&k(g)};function M(V,w){this.fun=V,this.array=w}M.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={};function O(){}l.on=O,l.addListener=O,l.once=O,l.off=O,l.removeListener=O,l.removeAllListeners=O,l.emit=O,l.prependListener=O,l.prependOnceListener=O,l.listeners=function(V){return[]},l.binding=function(V){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(V){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],10:[function(n,j,P){(function(l){var m=typeof l=="function",D;m?D=function(p){l(p)}:D=function(p){setTimeout(p,0)},j.exports=D}).call(this,n("timers").setImmediate)},{timers:11}],11:[function(n,j,P){(function(l,m){var D=n("process/browser.js").nextTick,p=Function.prototype.apply,B=Array.prototype.slice,k={},d=0;P.setTimeout=function(){return new x(p.call(setTimeout,window,arguments),clearTimeout)},P.setInterval=function(){return new x(p.call(setInterval,window,arguments),clearInterval)},P.clearTimeout=P.clearInterval=function(u){u.close()};function x(u,t){this._id=u,this._clearFn=t}x.prototype.unref=x.prototype.ref=function(){},x.prototype.close=function(){this._clearFn.call(window,this._id)},P.enroll=function(u,t){clearTimeout(u._idleTimeoutId),u._idleTimeout=t},P.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},P._unrefActive=P.active=function(u){clearTimeout(u._idleTimeoutId);var t=u._idleTimeout;t>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},t))},P.setImmediate=typeof l=="function"?l:function(u){var t=d++,r=arguments.length<2?!1:B.call(arguments,1);return k[t]=!0,D(function(){k[t]&&(r?u.apply(null,r):u.call(null),P.clearImmediate(t))}),t},P.clearImmediate=typeof m=="function"?m:function(u){delete k[u]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)})})(Ie);var Zn=Ie.exports;const qe=Kn(Zn);function Rn(I){let s;function n(t,r,y){const g={};return g.sourceElement=t,g.sourceContainer=y,g.targetContainer=r,g.sourceType=t.getAttribute("data-sourceType")||"move",g.controlType=t.getAttribute("data-controlType"),g.controlTypeName=t.getAttribute("data-controlTypeName"),g.controlCategory=t.getAttribute("data-category"),g.controlFeature=t.getAttribute("data-feature"),g.parentComponentInstance=r.componentInstance,g.controlCategory==="input"?g.bindingType="field":g.controlCategory==="dataCollection"&&(g.bindingType="entity"),t.componentInstance&&(g.controlType=t.componentInstance.value.schema.type,g.controlCategory=t.componentInstance.value.schema.category),g}function j(t,r,y){if(t.contains(r)||r.classList.contains("no-drop"))return!1;const g=!0;if(t.componentInstance&&t.componentInstance.value.getDragScopeElement){const M=t.componentInstance.value.getDragScopeElement();if(M&&!M.contains(r))return!1}if(r.componentInstance&&r.componentInstance.value.canAccepts){const M=n(t,r,y);return r.componentInstance.value.canAccepts(M)}return g}function P(t,r){const y=r.getBoundingClientRect(),g=t.getBoundingClientRect(),M=g.top>=y.top,O=g.top<y.bottom;return M&&O}function l(t,r){const y=t.querySelector(".dgComponentSelected");if(!(!y||r===0)&&P(y,t)){const g=y.querySelector(".component-btn-group");if(g){const M=g.querySelector("div");if(M&&M.style.top){const O=Number.parseFloat(M.style.top);M.style.top=O-r+"px"}}}}function m(t,r,y){t.componentInstance;let g=-1;if(!r)return-1;if(t.componentInstance.value.contents){if(y&&y.componentInstance){if(y.getAttribute("data-noattach"))g=Number(y.getAttribute("data-position"));else{const M=y.componentInstance.value.schema;let O={id:M.id};M.type==="Component"&&(O={component:M.id}),g=ve.findIndex(t.componentInstance.value.contents,O),g=g===-1?0:g}g!==-1&&t.componentInstance.value.contents.splice(g,0,r)}else t.componentInstance.value.contents.push(r);t.componentInstance.value.updateDragAndDropRules()}return g}function D(t,r){if(!t.componentInstance.value.contents)return-1;if(t.componentInstance.value.contents.length===0)return 0;if(!r||!r.componentInstance)return t.componentInstance.value.contents.length;if(r.getAttribute("data-noattach"))return Number(r.getAttribute("data-position"));const y=r.componentInstance.value.schema;let g;y.type==="Component"?g={component:y.id}:g={id:y.id};let M=ve.findIndex(t.componentInstance.value.contents,g);return M=M===-1?0:M,M}function p(t,r,y,g){if(r.componentInstance.value.addNewChildComponentSchema){const M=D(r,g),O=String(t.getAttribute("data-controltype")),V=t.getAttribute("data-feature"),w=String(t.innerText),i=r.componentInstance.value,E={componentType:O,label:w,parentComponentInstance:i,targetPosition:M},C=V?JSON.parse(V):{},U=Object.assign(E,C),L=r.componentInstance.value.addNewChildComponentSchema(U,I);m(r,L,g)}r.contains(t)&&r.removeChild(t)}function B(t,r,y,g){let M,O=-1;if(t.componentInstance&&t.componentInstance.value.triggerBelongedComponentToMoveWhenMoved){const i=t.componentInstance.value.getBelongedComponentInstance(t.componentInstance);i&&(t=c.ref(i.elementRef).value.parentElement,y=t.parentElement)}const V=t.componentInstance&&t.componentInstance.value.schema;let w={id:V&&V.id};V.type==="component"&&(w={component:V&&V.id}),O=ve.findIndex(y.componentInstance.value.contents,w),O!==-1&&y.componentInstance.value.contents&&(M=y.componentInstance.value.contents.splice(O,1),M=M[0]),m(r,M,g),y.componentInstance&&y.componentInstance.value.onChildElementMovedOut&&y.componentInstance.value.onChildElementMovedOut(t),r.componentInstance&&r.componentInstance.value.onAcceptMovedChildElement&&r.componentInstance.value.onAcceptMovedChildElement(t,y)}function k(t,r,y,g){if(!r||t.contains(r))return;switch(t.getAttribute("data-sourceType")){case"control":case"field":case"entity":{p(t,r,y,g);break}default:y.componentInstance.value.contents?B(t,r,y,g):r.contains(t)&&r.removeChild(t)}pe.value++}function d(t){s&&s.destroy(),qe&&(s=qe([],{mirrorContainer:t,direction:"mixed",revertOnSpill:!0,moves(r,y,g){let M=!0;return r.classList.contains("no-drag")&&(M=!1),r.componentInstance&&(M=!!g.getAttribute("data-dragging-icon")),M},copy(r){return r.classList.contains("drag-copy")},getMirrorText(r){return r.componentInstance&&r.componentInstance.value.getDraggingDisplayText?r.componentInstance.value.getDraggingDisplayText():r.innerText||"控件"},accepts(r,y,g){const M=j(r,y,g),O=t.lastElementChild;return M?O.className=O.className.replace("undroppable",""):O.className.includes("undroppable")||(O.className+=" undroppable"),M}}).on("over",(r,y)=>{y.className+=" drag-over"}).on("out",(r,y)=>{y.className=y.className.replace("drag-over","").replace(" ","")}).on("drop",(r,y,g,M)=>{k(r,y,g,M)}).on("dragend",(r,y)=>{l(r,y)}))}function x(t,r){if(!t)return;if(r.noDragDrop)return t;const y=t.querySelector(`[data-dragref='${r.id}-container']`)||t;s&&y&&s.containers.push(y)}function u(){if(!s)return;const t=document.getElementsByClassName("controlCategory");t&&(s.containers=s.containers.filter(r=>!r.className.includes("controlCategory")),Array.from(t).forEach(r=>{s.containers.push(r)}))}return{attachComponents:x,attachToolbox:u,initializeDragula:d}}const et={id:{type:String,default:""},componentId:{type:String,default:""},type:{type:String,default:""},canDelete:{type:Boolean,default:!0},canMove:{type:Boolean,default:!0},canSelectParent:{type:Boolean,default:!0},customButtons:{type:Array,default:[]},customClass:{type:String,default:""},customStyle:{type:String,default:""},modelValue:{type:Object},ignore:{type:Boolean,default:!1}},S={},T={},N={};let Ae=!1;function nt(){Ae||(Ae=!0,ze.registerDesigner(S,T,N),Ge.registerDesigner(S,T,N),Je.registerDesigner(S,T,N),Qe.registerDesigner(S,T,N),Ke.registerDesigner(S,T,N),Ze.registerDesigner(S,T,N),Re.registerDesigner(S,T,N),en.registerDesigner(S,T,N),nn.registerDesigner(S,T,N),tn.registerDesigner(S,T,N),rn.registerDesigner(S,T,N),on.registerDesigner(S,T,N),an.registerDesigner(S,T,N),cn.registerDesigner(S,T,N),un.registerDesigner(S,T,N),sn.registerDesigner(S,T),ln.registerDesigner(S,T,N),dn.registerDesigner(S,T,N),fn.registerDesigner(S,T,N),pn.registerDesigner(S,T,N),vn.registerDesigner(S,T,N),mn.registerDesigner(S,T,N),hn.registerDesigner(S,T,N),gn.registerDesigner(S,T,N),Cn.registerDesigner(S,T,N),yn.registerDesigner(S,T,N),xn.registerDesigner(S,T,N),Dn.registerDesigner(S,T,N),wn.registerDesigner(S,T,N),jn.registerDesigner(S,T,N),Sn.registerDesigner(S,T,N),Tn.registerDesigner(S,T,N),bn.registerDesigner(S,T,N),Fn.registerDesigner(S,T,N),Pn.registerDesigner(S,T,N),Nn.registerDesigner(S,T,N),En.registerDesigner(S,T,N),In.registerDesigner(S,T,N),qn.registerDesigner(S,T,N),An.registerDesigner(S,T,N),Mn.registerDesigner(S,T,N),Bn.registerDesigner(S,T,N),kn.registerDesigner(S,T,N),Vn.registerDesigner(S,T,N),On.registerDesigner(S,T,N),_n.registerDesigner(S,T,N),Wn.registerDesigner(S,T,N),Ln.registerDesigner(S,T,N),$n.registerDesigner(S,T,N),Un.registerDesigner(S,T,N),Hn.registerDesigner(S,T,N),Xn.registerDesigner(S,T,N),Yn.registerDesigner(S,T),Gn.registerDesigner(S,T,N),zn.registerDesigner(S,T,N),Jn.registerDesigner(S,T,N))}const tt={id:{type:String}},rt=c.defineComponent({name:"FDesignerPlaceholder",props:tt,emits:[],setup(I){const s=c.computed(()=>({"drag-and-drop-alert":!0,"no-drag":!0,"w-100":!0})),n=c.computed(()=>({height:"60px",display:"flex","justify-content":"center","align-items":"center",margin:0,padding:".75rem 1.25rem",border:"1px solid transparent","border-radius":"3px",color:"#315585","background-color":"#dfedff","border-color":"#d2e6ff"}));return()=>c.createVNode("div",{class:s.value,style:n.value,role:"alert","data-noattach":"true","data-position":"0"},[c.createTextVNode("拖拽组件到这里")])}});function ot(I){return typeof I=="function"||Object.prototype.toString.call(I)==="[object Object]"&&!c.isVNode(I)}const he=c.defineComponent({name:"FDesignerItem",props:et,emits:["selectionChange"],setup(I,s){const n=c.ref(`${I.modelValue.id}-component`),j=c.ref(I.canMove),P=c.ref(I.canDelete),l=c.ref(!1),m=c.ref(I.modelValue),D=c.ref(I.componentId||""),p=c.ref(""),B=c.ref(""),k=c.ref(I.customClass),d=c.ref(),x=c.inject("canvas-dragula"),u=c.ref(),t=c.inject("design-item-context"),r={designerItemElementRef:d,componentInstance:u,schema:m.value,parent:t,setupContext:s};c.provide("design-item-context",r);const y=c.inject("useFormSchema"),g=c.computed(()=>{const a=I.modelValue.appearance&&I.modelValue.appearance.class||"";let b={"farris-component":!0,"flex-fill":m.value.id=="root-component","position-relative":j.value&&P.value,"farris-nested":l.value,"can-move":j.value,"d-none":d.value&&d.value.classList.contains("d-none"),dgComponentSelected:d.value&&d.value.classList.contains("dgComponentSelected"),dgComponentFocused:d.value&&d.value.classList.contains("dgComponentFocused")};return b[`farris-component-${m.value.type}`]=!0,b=ye.getCustomClass(b,a),b=ye.getCustomClass(b,B.value),b=ye.getCustomClass(b,k.value),b}),M=c.computed(()=>{const a={},b=I.modelValue.appearance&&I.modelValue.appearance.style||"";return b&&b.split(";").reduce((F,G)=>{const[J,Q]=G.split(":");return F[J]=Q,F},a),p.value&&p.value.split(";").reduce((F,G)=>{const[J,Q]=G.split(":");return J&&(F[J]=Q),F},a),a});function O(a,b){var J,Q,ee;if(a&&(a.preventDefault(),a.stopPropagation()),u.value.triggerBelongedComponentToDeleteWhenDeleted){const _=u.value.getBelongedComponentInstance(u);if(_&&_.parent){const te=c.ref(_==null?void 0:_.parent),re=te.value.contents.findIndex(le=>le.id===_.schema.id);(Q=(J=te.value)==null?void 0:J.contents)==null||Q.splice(re,1),(ee=te.value)==null||ee.updateDragAndDropRules(),pe.value++}return}let F=t,G=_=>_.id===b.id;if(b.type==="component"&&(F=t==null?void 0:t.parent,G=_=>_.component===b.id),F&&F.schema.contents){const _=F.schema.contents.findIndex(G);F.schema.contents.splice(_,1),F.componentInstance.value.updateDragAndDropRules(),pe.value++,s.emit("selectionChange")}}function V(a){return P.value&&c.createVNode("div",{role:"button",class:"btn component-settings-button",title:"删除",ref:"removeComponent",onClick:b=>{O(b,a)}},[c.createVNode("i",{class:"f-icon f-icon-yxs_delete"},null)])}function w(){return j.value&&c.createVNode("div",{role:"button",class:"btn component-settings-button",title:"移动",ref:"moveComponent"},[c.createVNode("i",{"data-dragging-icon":"true",class:"cmp_move f-icon f-icon-yxs_move"},null)])}function i(){return I.customButtons&&!!I.customButtons.length&&I.customButtons.map(a=>c.createVNode("div",{role:"button",class:`btn component-settings-button ${a.class||""}`,title:a.title,ref:a.id},[c.createVNode("i",{class:a.icon},null)]))}function E(a){return c.createVNode("div",{class:"component-btn-group","data-noattach":"true"},[c.createVNode("div",null,[V(a),w(),i()])])}function C(a,b,F,G){s.emit("selectionChange",a,b,F,G)}function U(a){let b;const F=a.type,G=S[F],J=T[F],Q=J?J(a):{};Q.customClass=I.ignore?Q.customClass:"",Q.componentId=D.value;const ee=a.contents&&a.contents.length===0;return a.contents&&!!a.contents.length&&G?c.createVNode(G,c.mergeProps({ref:u},Q),ot(b=a.contents.map(te=>c.createVNode(he,{key:te.id,modelValue:te,"onUpdate:modelValue":re=>te=re,componentId:D.value,onSelectionChange:C},null)))?b:{default:()=>[b]}):G?ee?c.createVNode(G,c.mergeProps({ref:u},Q),{default:()=>[c.createVNode(rt,null,null)]}):c.createVNode(G,c.mergeProps({ref:u},Q),null):c.createVNode("div",null,null)}function L(a){if(a.type==="component-ref"){let F=y==null?void 0:y.getFormSchema().module.components.find(G=>G.id===a.component);if(F)return c.createVNode(he,{key:F.id,modelValue:F,"onUpdate:modelValue":G=>F=G,componentId:F.id,onSelectionChange:C},null)}}c.watch(()=>I.modelValue,a=>{m.value=a,n.value=`${a.id}-component`});function o(a){const b=a.target;Fe(b)}function H(){var a,b;(b=(a=m.value)==null?void 0:a.contents)!=null&&b.length&&d.value&&d.value.addEventListener("scroll",o)}c.onMounted(()=>{if(d.value&&u.value&&u.value.schema){const a=d.value.querySelector(`[data-dragref='${u.value.schema.id}-container']`);x&&a&&x.attachComponents(a,m.value),l.value=u.value.canNested!==void 0?u.value.canNested:l.value,P.value=u.value.canDelete!==void 0?u.value.canDelete:P.value,j.value=u.value.canMove!==void 0?u.value.canMove:j.value,p.value=u.value.styles||"",B.value=u.value.designerClass||"",d.value&&(d.value.componentInstance=u,d.value.designItemContext=r)}H(),pe.value++}),c.onBeforeUnmount(()=>{d.value&&d.value.removeEventListener("scroll",o)});function Y(a){Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(F=>F.classList.remove("dgComponentFocused")),a&&(a.preventDefault(),a.stopPropagation());const b=d.value;if(b){const F=document.getElementsByClassName("dgComponentSelected");if(!(F&&F.length===1&&F[0]===d.value)&&(Array.from(F).forEach(J=>J.classList.remove("dgComponentSelected")),b.classList.add("dgComponentFocused"),s.emit("selectionChange",m.value.type,m.value,D.value,u.value),u.value.getDraggableDesignItemElement)){const J=u.value.getDraggableDesignItemElement(r);J&&J.value&&J.value.classList.add("dgComponentSelected")}}o(a)}return()=>m.value.type==="component-ref"?L(m.value):c.createVNode("div",{id:`${m.value.id}-design-item`,ref:d,class:g.value,style:M.value,onClick:Y},[E(m.value),U(m.value)])}}),it=c.defineComponent({name:"FDesignerCanvas",props:Pe,emits:["init","selectionChange","canvasChanged"],setup(I,s){const n=c.ref(),j=c.ref(),P=c.ref(),l=c.ref(),m=c.ref(),D=c.ref(I.componentId),p={eventsEditorUtils:c.inject("eventsEditorUtils"),formSchemaUtils:c.inject("useFormSchema"),formMetadataConverter:c.inject("formMetadataConverter"),designViewModelUtils:c.inject("designViewModelUtils"),controlCreatorUtils:c.inject("controlCreatorUtils"),metadataService:c.inject("Meatdata_Http_Service_Token"),schemaService:c.inject("schemaService")};c.provide("designer-host-service",p);const B=Rn(p);nt(),c.provide("canvas-dragula",B),c.provide("design-item-context",{designerItemElementRef:l,componentInstance:m,schema:j.value,parent:void 0});const k=c.computed(()=>({"d-flex":!0,"flex-fill":!0,"flex-column":!0}));c.onMounted(()=>{P.value&&B.initializeDragula(P.value),n.value=I.modelValue,s.emit("init",B)}),c.watch(pe,()=>{Fe(P.value),s.emit("canvasChanged")},{flush:"post"});function d(x,u,t,r){s.emit("selectionChange",x,u,t,r)}return()=>c.createVNode("div",{class:"editorDiv flex-fill h-100"},[c.createVNode("div",{class:"editorPanel d-flex flex-fill flex-column PC"},[c.createVNode("div",{ref:P,class:k.value},[n.value&&c.createVNode(he,{modelValue:n.value,"onUpdate:modelValue":x=>n.value=x,onSelectionChange:d,componentId:D.value},null)])])])}}),at={},ct={};function Me(I){const{properties:s,title:n,ignore:j}=I,P=j&&Array.isArray(j),l=Object.keys(s).reduce((m,D)=>((!P||!j.find(p=>p==D))&&(m[D]=s[D].type==="object"&&s[D].properties?Me(s[D]):ve.cloneDeep(s[D].default)),m),{});return(!P||!j.find(m=>m=="id"))&&(l.id=`${n}-${Date.now()}`),l}function me(I,s={},n){const j=at[I];if(j){let P=Me(j);const l=ct[I];return P=l?l({getSchemaByType:me},P,s,n):P,P}return null}function st(I,s,n){var w;function j(){n!=null&&n.resolveComponentContext&&n.resolveComponentContext()}j();const P=n&&n.getStyles&&n.getStyles()||"",l=n&&n.getDesignerClass&&n.getDesignerClass()||"",m=c.ref();function D(){return(s==null?void 0:s.schema.componentType)==="frame"?!1:n&&n.checkCanMoveComponent?n.checkCanMoveComponent():!0}function p(){return!1}function B(){return(s==null?void 0:s.schema.componentType)==="frame"?!1:n&&n.checkCanDeleteComponent?n.checkCanDeleteComponent():!0}function k(){return(s==null?void 0:s.schema.componentType)==="frame"?!0:n&&n.hideNestedPaddingInDesginerView?n.hideNestedPaddingInDesginerView():!1}function d(i){if(!i||!i.value)return null;if(i.value.schema&&i.value.schema.type==="component")return i.value;const E=c.ref(i==null?void 0:i.value.parent),C=d(E);return C||null}function x(i=s){const{componentInstance:E,designerItemElementRef:C}=i;return!E||!E.value?null:E.value.canMove?C:x(i.parent)}function u(i){return!!n&&n.canAccepts(i)}function t(){return(s==null?void 0:s.schema.label)||(s==null?void 0:s.schema.title)||(s==null?void 0:s.schema.name)}function r(){}function y(i,E){E&&n!=null&&n.onAcceptMovedChildElement&&n.onAcceptMovedChildElement(E)}function g(i,E){const{componentType:C}=i;let U=me(C,i,E);n&&n.onResolveNewComponentSchema&&(U=n.onResolveNewComponentSchema(i,U));const L=C.toLowerCase().replace("-","_");return U&&!U.id&&U.type===C&&(U.id=`${L}_${Math.random().toString().slice(2,6)}`),U}function M(i,E){const C=String(i.getAttribute("data-controltype")),U=i.getAttribute("data-feature"),L=U?JSON.parse(U):{};L.parentComponentInstance=m.value;let o=me(C,L);n&&n.onAcceptNewChildElement&&(o=n.onAcceptNewChildElement(i,E,o));const H=C.toLowerCase().replace("-","_");return o&&!o.id&&o.type===C&&(o.id=`${H}_${Math.random().toString().slice(2,6)}`),o}function O(i){}function V(...i){if(n&&n.getPropsConfig)return n.getPropsConfig(...i)}return m.value={canMove:D(),canSelectParent:p(),canDelete:B(),canNested:!k(),contents:s==null?void 0:s.schema.contents,elementRef:I,parent:(w=s==null?void 0:s.parent)==null?void 0:w.componentInstance,schema:s==null?void 0:s.schema,styles:P,designerClass:l,canAccepts:u,getBelongedComponentInstance:d,getDraggableDesignItemElement:x,getDraggingDisplayText:t,getPropConfig:V,getDragScopeElement:r,onAcceptMovedChildElement:y,onAcceptNewChildElement:M,onChildElementMovedOut:O,addNewChildComponentSchema:g,updateDragAndDropRules:j,triggerBelongedComponentToMoveWhenMoved:!!n&&n.triggerBelongedComponentToMoveWhenMoved||c.ref(!1),triggerBelongedComponentToDeleteWhenDeleted:!!n&&n.triggerBelongedComponentToDeleteWhenDeleted||c.ref(!1)},m}function ut(I,s,n){var w;function j(){n!=null&&n.resolveComponentContext&&n.resolveComponentContext()}j();const P=n&&n.getStyles&&n.getStyles()||"",l=c.ref();function m(){return n&&n.checkCanMoveComponent?n.checkCanMoveComponent():!0}function D(){return!1}function p(){return n&&n.checkCanDeleteComponent?n.checkCanDeleteComponent():!0}function B(){return n&&n.checkCanAddComponent?n.checkCanAddComponent():!0}function k(){return!0}function d(i){if(!i||!i.value)return null;const E=c.ref(i==null?void 0:i.value.parent),C=d(E);return C||null}function x(i=s){const{componentInstance:E,designerItemElementRef:C}=i;return!E||!E.value?null:E.value.canMove||E.value.canAdd||E.value.canDelete?C:x(i.parent)}function u(i){return!!n&&n.canAccepts(i)}function t(){return(s==null?void 0:s.schema.label)||(s==null?void 0:s.schema.title)||(s==null?void 0:s.schema.name)}function r(){}function y(i,E){E&&n!=null&&n.onAcceptMovedChildElement&&n.onAcceptMovedChildElement(E)}function g(i){const{componentType:E}=i;let C=me(E,i);n&&n.onResolveNewComponentSchema&&(C=n.onResolveNewComponentSchema(i,C));const U=E.toLowerCase().replace("-","_");return C&&!C.id&&C.type===E&&(C.id=`${U}_${Math.random().toString().slice(2,6)}`),C}function M(i,E){const C=String(i.getAttribute("data-controltype")),U=i.getAttribute("data-feature"),L=U?JSON.parse(U):{};L.parentComponentInstance=l.value;let o=me(C,L);n&&n.onAcceptNewChildElement&&(o=n.onAcceptNewChildElement(i,E,o));const H=C.toLowerCase().replace("-","_");return o&&!o.id&&o.type===C&&(o.id=`${H}_${Math.random().toString().slice(2,6)}`),o}function O(i){}function V(...i){return n&&n.getPropsConfig?n.getPropsConfig(...i):[]}return l.value={canMove:m(),canSelectParent:D(),canAdd:B(),canDelete:p(),canNested:!k(),contents:[],elementRef:I,parent:(w=s.parent)==null?void 0:w.componentInstance,schema:s.schema,styles:P,canAccepts:u,getBelongedComponentInstance:d,getDraggableDesignItemElement:x,getDraggingDisplayText:t,getPropConfig:V,getDragScopeElement:r,onAcceptMovedChildElement:y,onAcceptNewChildElement:M,onChildElementMovedOut:O,addNewChildComponentSchema:g,updateDragAndDropRules:j,triggerBelongedComponentToMoveWhenMoved:!!n&&n.triggerBelongedComponentToMoveWhenMoved||c.ref(!1),triggerBelongedComponentToDeleteWhenDeleted:!!n&&n.triggerBelongedComponentToDeleteWhenDeleted||c.ref(!1)},l}v.FDesignerCanvas=it,v.FDesignerItem=he,v.designerCanvasProps=Pe,v.useDesignerComponent=st,v.useDesignerInnerComponent=ut,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- .designer-control-tree{display:block;height:100%;color:#212529!important;background:#fcfdff}.designer-control-tree .fv-tree{height:100%!important}.designer-control-tree .fv-tree .fv-tree-content{background:#fcfdff!important}.designer-control-tree .fv-tree .controlIcon{font-size:20px;color:#7d86ab!important;margin:0 4px 0 0!important;height:1rem}.designer-control-tree .fv-tree .controlIcon.f-icon{font-size:18px}.designer-control-tree .fv-tree .fv-tree-data{overflow:auto}.designer-control-tree .fv-tree .fv-grid-row-selected,.designer-control-tree .fv-tree .fv-grid-row-hover{border-radius:10px}
1
+ .designer-control-tree{display:block;height:100%;color:#212529!important;background:#fcfdff}.designer-control-tree .fv-tree{height:100%!important}.designer-control-tree .fv-tree .fv-tree-content{background:#fcfdff!important}.designer-control-tree .fv-tree .controlIcon{font-size:20px;color:#7d86ab!important;margin:0 4px 0 0!important;height:1rem}.designer-control-tree .fv-tree .controlIcon.f-icon{font-size:18px}.designer-control-tree .fv-tree .fv-tree-data{overflow:auto}.designer-control-tree .fv-tree .fv-grid-row-selected,.designer-control-tree .fv-tree .fv-grid-row-hover{border-radius:10px}.designer-control-tree .fv-tree .fv-grid-hierarchy-cell{padding:0}
@@ -57,11 +57,12 @@ const D = {
57
57
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
58
58
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
59
59
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
60
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
60
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
61
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
61
62
  };
62
63
  var p = /* @__PURE__ */ ((a) => (a.Frame = "frame", a.dataGrid = "data-grid", a.listView = "list-view", a.form = "form", a.attachmentPanel = "attachment-panel", a.modalFrame = "modal-frame", a.table = "table", a.appointmentCalendar = "appointment-calendar", a))(p || {});
63
64
  function E(a) {
64
- const h = s("");
65
+ const y = s("");
65
66
  function u(e) {
66
67
  let i = "controlIcon mr-2 fd-i-Family ", r = "";
67
68
  switch (e == null ? void 0 : e.type) {
@@ -79,8 +80,8 @@ function E(a) {
79
80
  let r = e.id;
80
81
  const t = i == null ? void 0 : i.contents;
81
82
  if ((i == null ? void 0 : i.type) === "splitter" && t && t.length === 2) {
82
- const l = i.direction !== "column";
83
- e.id === ((n = t[0]) == null ? void 0 : n.id) ? r = l ? "左侧区域" : "上方区域" : r = l ? "右侧区域" : "下方区域";
83
+ const c = i.direction !== "column";
84
+ e.id === ((n = t[0]) == null ? void 0 : n.id) ? r = c ? "左侧区域" : "上方区域" : r = c ? "右侧区域" : "下方区域";
84
85
  }
85
86
  return r;
86
87
  }
@@ -129,55 +130,55 @@ function E(a) {
129
130
  }
130
131
  function v(e) {
131
132
  const i = e.length ? e[0] : null;
132
- h.value = i.originalId;
133
+ y.value = i.originalId;
133
134
  const r = i ? `${i.originalId}-design-item` : "", t = document.getElementById(r);
134
135
  t && t && t.click();
135
136
  }
136
- return { getIcon: u, getTitle: g, onChanged: v, currentSelectedNodeId: h };
137
+ return { getIcon: u, getTitle: g, onChanged: v, currentSelectedNodeId: y };
137
138
  }
138
- function G(a, h) {
139
- const u = a.data.module ? s(a.data.module.components[0]) : s(a.data), { getIcon: b, getTitle: m } = h;
140
- function w(t, n, l, c) {
139
+ function G(a, y) {
140
+ const u = a.data.module ? s(a.data.module.components[0]) : s(a.data), { getIcon: b, getTitle: m } = y;
141
+ function w(t, n, c, l) {
141
142
  var d;
142
143
  const o = (d = a.data.module) == null ? void 0 : d.components.find((f) => f.id === t.component);
143
- o && g([o], n, l, c);
144
+ o && g([o], n, c, l);
144
145
  }
145
- function g(t, n, l, c) {
146
+ function g(t, n, c, l) {
146
147
  return t.forEach((o) => {
147
148
  if (o.type === "component-ref") {
148
- w(o, n, l, c);
149
+ w(o, n, c, l);
149
150
  return;
150
151
  }
151
152
  const d = {
152
153
  originalId: o.id,
153
- layer: l,
154
- originalParent: c == null ? void 0 : c.id,
155
- name: m(o, c),
154
+ layer: c,
155
+ originalParent: l == null ? void 0 : l.id,
156
+ name: m(o, l),
156
157
  type: o.type,
157
158
  controlIcon: b(o),
158
159
  rawSchema: o
159
160
  };
160
- n.push(P(d)), (o.contents || o.buttons) && g(o.contents || o.buttons, n, l + 1, o);
161
+ n.push(P(d)), (o.contents || o.buttons) && g(o.contents || o.buttons, n, c + 1, o);
161
162
  }), n;
162
163
  }
163
164
  function v(t) {
164
- const n = [], l = t.find((f) => f.layer === 0);
165
- t = t.filter((f) => f.layer !== 0), n.push(l);
166
- let c = l.originalId, o = 0, d = 1e3;
165
+ const n = [], c = t.find((f) => f.layer === 0);
166
+ t = t.filter((f) => f.layer !== 0), n.push(c);
167
+ let l = c.originalId, o = 0, d = 1e3;
167
168
  for (; t.length !== 0 || d === 0; ) {
168
- const f = t.find((y) => y.originalParent === c);
169
- f ? (n.push(f), c = f.originalId, t = t.filter((y) => y.originalId !== c), o = 0) : (o -= 1, c = n.slice(o)[0].originalId), d -= 1;
169
+ const f = t.find((h) => h.originalParent === l);
170
+ f ? (n.push(f), l = f.originalId, t = t.filter((h) => h.originalId !== l), o = 0) : (o -= 1, l = n.slice(o)[0].originalId), d -= 1;
170
171
  }
171
172
  return n;
172
173
  }
173
174
  function e(t) {
174
- return t.forEach((n, l) => {
175
- n.id = (l + 1).toString();
175
+ return t.forEach((n, c) => {
176
+ n.id = (c + 1).toString();
176
177
  }), t.forEach((n) => {
177
- var l;
178
- n.parent = ((l = t.find((c) => c.originalId === n.originalParent)) == null ? void 0 : l.id) || "";
178
+ var c;
179
+ n.parent = ((c = t.find((l) => l.originalId === n.originalParent)) == null ? void 0 : c.id) || "";
179
180
  }), t.forEach((n) => {
180
- n.hasChildren = t.findIndex((l) => l.parent === n.id) > 0;
181
+ n.hasChildren = t.findIndex((c) => c.parent === n.id) > 0;
181
182
  }), t;
182
183
  }
183
184
  function i(t) {
@@ -210,31 +211,31 @@ const M = /* @__PURE__ */ N({
210
211
  name: "FDesignerOutline",
211
212
  props: D,
212
213
  emits: ["outputValue", "currentEvent", "selectionChanged"],
213
- setup(a, h) {
214
+ setup(a, y) {
214
215
  const u = s(), b = s(a.selectable), m = s(a.autoCheckChildren), w = s(a.cascade), g = s(a.showTreeNodeIcons), v = s(a.showLines), e = s(a.newDataItem), i = s(a.lineColor), r = s(a.cellHeight), t = T("designer-host-service"), n = E(t), {
215
- onChanged: l,
216
- currentSelectedNodeId: c
216
+ onChanged: c,
217
+ currentSelectedNodeId: l
217
218
  } = n, {
218
219
  getData: o
219
220
  } = G(a, n);
220
221
  let d = o();
221
222
  function f() {
222
- d = o(), u.value && u.value.updateDataSource && (u.value.updateDataSource(d), c && u.value.clearSelection && (u.value.clearSelection(), y({
223
- id: c.value
223
+ d = o(), u.value && u.value.updateDataSource && (u.value.updateDataSource(d), l && u.value.clearSelection && (u.value.clearSelection(), h({
224
+ id: l.value
224
225
  })));
225
226
  }
226
- function y(S) {
227
+ function h(S) {
227
228
  if (!S && u.value && u.value.clearSelection && u.value.clearSelection(), S && u.value && u.value.selectItem) {
228
229
  const C = d.findIndex((x) => x.originalId === S.id);
229
230
  if (C > -1) {
230
231
  u.value.selectItem(C);
231
232
  const x = d[C];
232
- c && (c.value = x.originalId);
233
- }
233
+ l && (l.value = x.originalId);
234
+ } else l && (l.value = "");
234
235
  }
235
236
  }
236
- return h.expose({
237
- selectControlTreeNode: y,
237
+ return y.expose({
238
+ selectControlTreeNode: h,
238
239
  refreshControlTree: f
239
240
  }), () => F("div", {
240
241
  class: "designer-control-tree"
@@ -250,7 +251,7 @@ const M = /* @__PURE__ */ N({
250
251
  lineColor: i.value,
251
252
  cellHeight: r.value,
252
253
  iconField: "controlIcon",
253
- onSelectionChange: l
254
+ onSelectionChange: c
254
255
  }, null)]);
255
256
  }
256
257
  });
@@ -0,0 +1 @@
1
+ (function(f,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue"),require("../tree-view/index.umd.js"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","../tree-view/index.umd.js","lodash-es"],d):(f=typeof globalThis<"u"?globalThis:f||self,d(f["designer-outline"]={},f.Vue,f.treeView,f.LodashES))})(this,function(f,d,v,P){"use strict";const N={data:{type:Object,default:[]},selectable:{type:Boolean,default:!1},autoCheckChildren:{type:Boolean,default:!0},cascade:{type:Boolean,default:!0},showTreeNodeIcons:{type:Boolean,default:!0},showLines:{type:Boolean,default:!1},newDataItem:{type:Object,default:{}},lineColor:{type:String,default:"#9399a0"},cellHeight:{type:Number,default:28}},C={button:{type:"button",name:"按钮",icon:"Button"},"response-toolbar":{type:"response-toolbar",name:"工具栏",icon:"ButtonGroup"},"response-toolbar-item":{type:"response-toolbar-item",name:"按钮",icon:"Button"},"content-container":{type:"content-container",name:"容器",icon:"ContentContainer"},"input-group":{type:"input-group",name:"文本",icon:"TextBox"},textarea:{type:"textarea",name:"多行文本",icon:"MultiTextBox"},lookup:{type:"lookup",name:"帮助",icon:"LookupEdit"},"number-spinner":{type:"number-spinner",name:"数值",icon:"NumericBox"},"date-picker":{type:"date-picker",name:"日期",icon:"DateBox"},switch:{type:"switch",name:"开关",icon:"SwitchField"},"radio-group":{type:"radio-group",name:"单选组",icon:"RadioGroup"},"check-box":{type:"check-box",name:"复选框",icon:"CheckBox"},"check-group":{type:"check-group",name:"复选框组",icon:"CheckGroup"},"combo-list":{type:"combo-list",name:"下拉列表",icon:"EnumField"},"response-form":{type:"response-form",name:"卡片面板",icon:"Form"},"response-layout":{type:"response-layout",name:"布局容器",icon:"ResponseLayout3"},"response-layout-item":{type:"response-layout-item",name:"布局",icon:"ResponseLayout1"},"tree-grid":{type:"tree-grid",name:"树表格",icon:"TreeGrid"},"tree-grid-column":{type:"tree-grid-column",name:"树表格列"},"data-grid":{type:"data-grid",name:"表格",icon:"DataGrid"},"data-grid-column":{type:"data-grid-column",name:"表格列"},module:{type:"Module",name:"模块",icon:"Module"},component:{type:"component",name:"组件",icon:"Component"},tabs:{type:"tabs",name:"标签页",icon:"Tab"},"tab-page":{type:"tab-page",name:"标签页项",dependentParentControl:"Tab"},"tab-toolbar-item":{type:"tab-toolbar-item",name:"标签页工具栏按钮",icon:"Button"},"time-picker":{type:"time-picker",name:"时间选择",icon:"TimePicker"},section:{type:"section",name:"分组面板",icon:"Section"},"section-toolbar":{type:"section-toolbar",name:"分组面板工具栏"},"section-toolbar-item":{type:"section-toolbar-item",name:"分组面板按钮"},splitter:{type:"splitter",name:"分栏面板",icon:"Splitter"},"splitter-pane":{type:"splitter-pane",name:"分栏面板项",dependentParentControl:"Splitter"},"component-ref":{type:"component-ref",name:"组件引用节点"},uploader:{type:"uploader",name:"附件上传",icon:"FileUpload"},"page-header":{type:"page-header",name:"页头",icon:"Header"},"page-footer":{type:"page-footer",name:"页脚",icon:"ModalFooter"},"tab-toolbar":{type:"tab-toolbar",name:"标签页工具栏",icon:"TabToolbar"},fieldset:{type:"fieldset",name:"分组",icon:"fieldset"}};var g=(i=>(i.Frame="frame",i.dataGrid="data-grid",i.listView="list-view",i.form="form",i.attachmentPanel="attachment-panel",i.modalFrame="modal-frame",i.table="table",i.appointmentCalendar="appointment-calendar",i))(g||{});function B(i){const y=d.ref("");function u(e){let r="controlIcon mr-2 fd-i-Family ",a="";switch(e==null?void 0:e.type){case"form-group":{a=e.editor&&e.editor.type?`fd_pc-${e.editor.type}`:"";break}default:r+=`fd_pc-${e.type}`}return r+=a,r}function m(e,r){var n;let a=e.id;const t=r==null?void 0:r.contents;if((r==null?void 0:r.type)==="splitter"&&t&&t.length===2){const c=r.direction!=="column";e.id===((n=t[0])==null?void 0:n.id)?a=c?"左侧区域":"上方区域":a=c?"右侧区域":"下方区域"}return a}function w(e){if(e.isLikeCardContainer)return"区块";const r=e.appearance&&e.appearance.class||"",a=r.split(" ");return e.id==="page-header"&&r&&r==="f-page-header"?"页头":a.includes("f-page-header-base")?"页头容器":a.includes("f-page-header-extend")?"页头扩展容器":a.includes("f-title")?"标题容器":a.includes("f-page")?"根容器":a.includes("f-page-main")?"内容区域":a.includes("f-scrollspy-content")&&e.isScrollspyContainer?"滚动监听容器":a.includes("f-grid-is-sub")?"表格容器":a.includes("f-filter-container")?"筛选条容器":"容器"}function S(e){const{componentType:r}=e;switch(r){case g.Frame:return"根组件";case g.dataGrid:case g.table:return(i==null?void 0:i.formSchemaUtils.selectNode(e,t=>t.type===(C["tree-grid"]&&C["tree-grid"].type)))?"树表格组件":"表格组件";case g.attachmentPanel:return"附件组件";case g.listView:return"列表视图组件";case g.modalFrame:return"弹窗页面";case g.appointmentCalendar:return"预约日历组件";default:if(r.startsWith("form"))return"卡片组件"}return"组件"}function h(e,r){const a=e.name||e.text||e.label||e.title||e.mainTitle;if(a&&typeof a=="string")return a.trim();switch(e.type){case"content-container":return w(e);case"splitter-pane":return m(e,r);case"component":return S(e);default:return C[e.type]&&C[e.type].name||e.id}}function k(e){const r=e.length?e[0]:null;y.value=r.originalId;const a=r?`${r.originalId}-design-item`:"",t=document.getElementById(a);t&&t&&t.click()}return{getIcon:u,getTitle:h,onChanged:k,currentSelectedNodeId:y}}function E(i,y){const u=i.data.module?d.ref(i.data.module.components[0]):d.ref(i.data),{getIcon:m,getTitle:w}=y;function S(t,n,c,l){var s;const o=(s=i.data.module)==null?void 0:s.components.find(p=>p.id===t.component);o&&h([o],n,c,l)}function h(t,n,c,l){return t.forEach(o=>{if(o.type==="component-ref"){S(o,n,c,l);return}const s={originalId:o.id,layer:c,originalParent:l==null?void 0:l.id,name:w(o,l),type:o.type,controlIcon:m(o),rawSchema:o};n.push(P.cloneDeep(s)),(o.contents||o.buttons)&&h(o.contents||o.buttons,n,c+1,o)}),n}function k(t){const n=[],c=t.find(p=>p.layer===0);t=t.filter(p=>p.layer!==0),n.push(c);let l=c.originalId,o=0,s=1e3;for(;t.length!==0||s===0;){const p=t.find(b=>b.originalParent===l);p?(n.push(p),l=p.originalId,t=t.filter(b=>b.originalId!==l),o=0):(o-=1,l=n.slice(o)[0].originalId),s-=1}return n}function e(t){return t.forEach((n,c)=>{n.id=(c+1).toString()}),t.forEach(n=>{var c;n.parent=((c=t.find(l=>l.originalId===n.originalParent))==null?void 0:c.id)||""}),t.forEach(n=>{n.hasChildren=t.findIndex(c=>c.parent===n.id)>0}),t}function r(t){const n={originalId:"page",layer:0,originalParent:null,name:"页面",type:"Frame",controlIcon:"fd-i-Family fd_pc-module",rawSchema:u};return t[0].originalParent=n.originalId,t.unshift(n),n}function a(){let t;if(u.value){const n=[];n.push(u.value);const o=h(n,[],1,null);r(o);const s=k(o);t=e(s)}return t}return{getData:a}}const L=d.defineComponent({name:"FDesignerOutline",props:N,emits:["outputValue","currentEvent","selectionChanged"],setup(i,y){const u=d.ref(),m=d.ref(i.selectable),w=d.ref(i.autoCheckChildren),S=d.ref(i.cascade),h=d.ref(i.showTreeNodeIcons),k=d.ref(i.showLines),e=d.ref(i.newDataItem),r=d.ref(i.lineColor),a=d.ref(i.cellHeight),t=d.inject("designer-host-service"),n=B(t),{onChanged:c,currentSelectedNodeId:l}=n,{getData:o}=E(i,n);let s=o();function p(){s=o(),u.value&&u.value.updateDataSource&&(u.value.updateDataSource(s),l&&u.value.clearSelection&&(u.value.clearSelection(),b({id:l.value})))}function b(x){if(!x&&u.value&&u.value.clearSelection&&u.value.clearSelection(),x&&u.value&&u.value.selectItem){const T=s.findIndex(F=>F.originalId===x.id);if(T>-1){u.value.selectItem(T);const F=s[T];l&&(l.value=F.originalId)}else l&&(l.value="")}}return y.expose({selectControlTreeNode:b,refreshControlTree:p}),()=>d.createVNode("div",{class:"designer-control-tree"},[d.createVNode(v.FTreeView,{ref:u,data:s,selectable:m.value,autoCheckChildren:w.value,cascade:S.value,showTreeNodeIcons:h.value,showLines:k.value,newDataItem:e.value,lineColor:r.value,cellHeight:a.value,iconField:"controlIcon",onSelectionChange:c},null)])}});f.ComponentType=g,f.FDesignerOutline=L,f.designerOutlineProps=N,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, ref as i, watch as C, createVNode as a } from "vue";
1
+ import { defineComponent as g, 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 }
@@ -66,16 +66,40 @@ const v = {
66
66
  type: "lookup",
67
67
  name: "帮助",
68
68
  category: "input"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ type: "dataCollection",
74
+ name: "数据集合类控件",
75
+ items: [
76
+ {
77
+ id: "ResponseForm",
78
+ type: "response-form",
79
+ name: "卡片面板",
80
+ category: "dataCollection"
69
81
  },
70
82
  {
71
- id: "InputGroup",
72
- type: "input-group",
73
- name: "智能输入框",
74
- category: "input"
83
+ id: "DataGrid",
84
+ type: "data-grid",
85
+ name: "表格",
86
+ category: "dataCollection"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ type: "container",
92
+ name: "容器类控件",
93
+ items: [
94
+ {
95
+ id: "Tab",
96
+ type: "tabs",
97
+ name: "标签页区域",
98
+ category: "container"
75
99
  }
76
100
  ]
77
101
  }
78
- ], x = /* @__PURE__ */ m({
102
+ ], x = /* @__PURE__ */ g({
79
103
  name: "FDesignerToolbox",
80
104
  props: v,
81
105
  emits: [],
@@ -118,14 +142,14 @@ const v = {
118
142
  updating: e.updating
119
143
  };
120
144
  }
121
- function u(e) {
145
+ function p(e) {
122
146
  const t = {
123
147
  farrisControlIcon: !0,
124
148
  "fd-i-Family": !0
125
- }, g = `fd_pc-${e.icon || e.type}`;
126
- return t[g] = !0, t;
149
+ }, m = `fd_pc-${e.icon || e.type}`;
150
+ return t[m] = !0, t;
127
151
  }
128
- function p(e, t) {
152
+ function u(e, t) {
129
153
  return a("div", {
130
154
  class: s(e),
131
155
  "data-sourceType": "control",
@@ -138,7 +162,7 @@ const v = {
138
162
  "data-templateCategory": e.templateCategory,
139
163
  hidden: t.isHide
140
164
  }, [a("div", null, [a("div", {
141
- class: u(e)
165
+ class: p(e)
142
166
  }, null), a("div", {
143
167
  class: "controlName"
144
168
  }, [e.name])])]);
@@ -146,7 +170,7 @@ const v = {
146
170
  function y(e) {
147
171
  return a("div", {
148
172
  class: "card-body px-2 py-0 border-0 controlCategory no-drop"
149
- }, [e.items.map((t) => p(t, e))]);
173
+ }, [e.items.map((t) => u(t, e))]);
150
174
  }
151
175
  function f(e) {
152
176
  return !e.hideInControlBox && a("div", {
@@ -0,0 +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 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"}]},{type:"dataCollection",name:"数据集合类控件",items:[{id:"ResponseForm",type:"response-form",name:"卡片面板",category:"dataCollection"},{id:"DataGrid",type:"data-grid",name:"表格",category:"dataCollection"}]},{type:"container",name:"容器类控件",items:[{id:"Tab",type:"tabs",name:"标签页区域",category:"container"}]}],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 m(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 g(e){return t.createVNode("div",{class:"card-body px-2 py-0 border-0 controlCategory no-drop"},[e.items.map(a=>m(a,e))])}function C(e){return!e.hideInControlBox&&t.createVNode("div",{class:"farris-panel-item card border-0"},[u(e),g(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"})});
@@ -0,0 +1,3 @@
1
+ (function(y,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("../input-group/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","../input-group/index.umd.js"],l):(y=typeof globalThis<"u"?globalThis:y||self,l(y["discussion-editor"]={},y.Vue,y.FInputGroup))})(this,function(y,l,I){"use strict";var Nt=Object.defineProperty;var Zt=(y,l,I)=>l in y?Nt(y,l,{enumerable:!0,configurable:!0,writable:!0,value:I}):y[l]=I;var ne=(y,l,I)=>Zt(y,typeof l!="symbol"?l+"":l,I);const oe={cancelVisible:{Type:Boolean,default:!0},personnelsPrimaryKey:{Type:String,default:"id"},personnelsDisplayKey:{Type:String,default:"name"},replyPersonnelsDisplayKey:{Type:String,default:"userName"},editHeight:{Type:Number,default:130},type:{Type:String,default:"user"},orgUrl:{Type:String,default:""},personSearchUrl:{Type:String,default:""},sectionData:{Type:Object,default:[]},replyUser:{Type:Object,default:{id:{}}},personnels:{Type:Object,default:[]},attachFiles:{Type:Object,default:[]}};var V=(e=>(e[e.Cancel=0]="Cancel",e[e.Confirm=1]="Confirm",e))(V||{});const w={"zh-CHS":{locale:"ZH_CN",combo:{placeholder:"请选择",emptyMsg:"暂无数据"},combolist:{},datagrid:{lineNumberTitle:"序号",emptyMessage:"暂无数据",pagination:{previousLabel:"上一页",nextLabel:"下一页",message:"共 <b>{1}</b> 条 ",pagelist:{firstText:"显示",lastText:"条"},previous:"上一页",next:"下一页"},filter:{title:"过滤条件",reset:"重置",clear:"清空条件",clearAll:"清空所有条件",setting:"高级设置",nofilter:"[ 无 ]",checkAll:"全选",and:"并且",or:"或者",operators:{equal:"等于",notEqual:"不等于",greater:"大于",greaterOrEqual:"大于等于",less:"小于",lessOrEqual:"小于等于",contains:"包含",notContains:"不包含",like:"包含",notLike:"不包含",in:"属于",notIn:"不属于",empty:"为空",notEmpty:"不为空",null:"null",notNull:"不为null"},more:"查看更多"},settings:{visible:"显示列",sortting:"列排序",title:"列配置",canchoose:"可选列",choosed:"已选列",asc:"升序",desc:"降序",cancelSort:"取消排序",ok:"确定",cancel:"取消",reset:"恢复默认",conciseMode:"简洁模式",advancedMode:"高级模式",formatSetting:"列格式",properties:"列属性",groupping:"分组",allColumns:"所有列",visibleColumns:"可见列",hiddenColumns:"隐藏列",searchPlaceholder:"请输入列名称",checkall:"全部显示/隐藏",headeralign:"表头对齐",dataalign:"数据对齐",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",summarytype:"汇总合计类型",summarytext:"汇总合计文本",summaryNone:"无",summarySum:"求和",summaryMax:"最大值",summaryMin:"最小值",summarCount:"计数",summaryAverage:"平均值",grouppingField:"分组字段",moreGrouppingFieldWarningMessage:"最多设置3个字段进行分组",grouppingSummary:"分组合计",addGrouppingFieldTip:"添加分组字段",removeGrouppingFieldTip:"移除分组字段",grouppingSummaryType:"分组合计类型",grouppingSummaryText:"分组合计文本",restoreDefaultSettingsText:"确认要恢复默认设置吗?",simple:{title:"显示列",tip:"选中的字段可展示到列表中,拖拽可调整在列表中的展示顺序。",count:'已显示 <span class="visible-cols-count">{0}</span> 列'}},selectionData:{clearAll:"清空",tooltip:"点击显示已选记录列表",currentLenth:"已选择:<b>{0}</b> 条"},groupRow:{tips:"拖动列到这儿可进行数据分组",removeColumn:"移除分组列",clearTip:"清除所有分组字段",clear:"清空"}},filterEditor:{cancelButton:"取消",okButton:"确定",addWhere:"添加子句",clear:"清空",moveTop:"置顶",moveUp:"上移",moveDown:"下移",moveBottom:"置底",leftBrackets:"左括号",field:"字段",operator:"操作符",value:"值",valueType:"值类型",expressType:{value:"值",express:"表达式",frontExpress:"表单表达式"},rightBrackets:"右括号",relation:"关系",relationValue:{and:"并且",or:"或者"},designTab:"设计器",jsonTab:"源代码",sqlTab:"Sql预览",title:"条件编辑器",message:"确认要清空当前所有数据吗?",validate:{bracket:"左右括号不匹配,请检查",relation:"条件关系不完整,请检查",field:"条件字段未设置,请检查"}},enumEditor:{cancelButton:"取消",okButton:"确定",addWhere:"添加",clear:"清空",moveTop:"置顶",moveUp:"上移",moveDown:"下移",moveBottom:"置底",title:"枚举数据编辑器",message:"确认要清空当前所有数据吗?",value:"值",name:"名称"},lookup:{placeholder:"请选择",favorites:"收藏夹",selected:"已选数据",okText:"确定",cancelText:"取消",allColumns:"所有列",datalist:"数据列表",mustWriteSomething:"请输入关键字后查询。",mustChoosAdatarow:"请选择一条记录!",tipText:"您要找的是不是这些?",cascade:{enable:"同步选择",disable:"仅选择自身",up:"包含上级",down:"包含下级"},favoriteInfo:{addFav:"收藏成功。",cancelFav:"取消收藏成功。 "},getAllChilds:"获取所有子级数据",contextMenu:{expandall:"全部展开",collapseall:"全部收起",expandByLayer:"按层级展开",expand1:"展开 1 级",expand2:"展开 2 级",expand3:"展开 3 级",expand4:"展开 4 级",expand5:"展开 5 级",expand6:"展开 6 级",expand7:"展开 7 级",expand8:"展开 8 级",expand9:"展开 9 级"},quick:{notfind:"未找到搜索内容",more:"显示更多"},configError:"帮助显示列未配置,请检查是否已正确配置帮助数据源! ",selectedInfo:{total:'已选 <span class="selected-counter mx-1">{0}</span> 条',clear:"取消已选",remove:"删除已选({0})",confirm:"您确认要取消所有已选中的记录吗?"}},loading:{message:"正在加载,请稍候..."},modal:{},messager:{yes:"是",no:"否",ok:"确定",cancel:"取消",title:"系统提示",errorTitle:"错误提示",prompt:{fontSize:{name:"字体大小",small:"小",middle:"中",big:"大",large:"特大",huge:"超大"},tips:{surplus:"还可以输入 {0} 个字符",length:"已输入 {0} 个字符"}},exception:{expand:"展开",collapse:"收起",happend:"发生时间",detail:"详细信息",copy:"复制详细信息",copySuccess:"复制成功",copyFailed:"复制失败",roger:"知道了"}},notify:{title:"系统提示"},dialog:{},datatable:{},colorPicker:{},numberSpinner:{placeholder:"请输入数字",range:{begin:"请输入开始数字",end:"请输入结束数字"}},inputGroup:{},sortEditor:{cancel:"取消",ok:"确定",add:"添加",clear:"清空",moveTop:"置顶",moveUp:"上移",moveDown:"下移",moveBottom:" 置底",field:"字段",order:"排序",asc:"升序",desc:"降序",title:"排序设置"},treetable:{emptyMessage:"暂无数据",pagination:{previousLabel:"上一页",nextLabel:"下一页",message:"每页 {0} 条记录,共 {1} 条记录。"}},multiSelect:{leftTitle:"未选择",rightTitle:"已选择",noDataMoveMessage:"请选择要移动的数据。",shiftRight:"右移",shiftLeft:"左移",allShiftRight:"全部右移",allShiftLeft:"全部左移",top:"置顶",bottom:"置底",shiftUp:"上移",shiftDown:"下移",emptyData:"暂无数据",filterPlaceholder:"输入筛选项名称搜索"},tabs:{more:"更多"},timePicker:{},wizard:{},tree:{},tooltip:{},listview:{emptyMessage:"暂无数据"},text:{yes:"是",no:"否",zoom:"在打开的对话框中编辑内容",comments:{title:"常用意见",manager:"意见管理",empty:"暂无数据"}},switch:{},sidebar:{sidebar:"详情"},section:{expandLabel:"展开",collapseLabel:"收起"},pagination:{message:"共 <b>{1}</b> 条 ",totalinfo:{firstText:"共",lastText:"条"},pagelist:{firstText:"每页",lastText:"条"},previous:"上一页",next:"下一页",goto:{prefix:"跳至",suffix:"页"}},responseToolbar:{more:"更多"},queryCondition:{configDialog:{unSelectedOptions:"未选择项",selectedOptions:"已选择项",confirm:"确定",cancel:"取消",placeholder:"请输入搜索关键字",moveUp:"上移",moveAllUp:"全部上移",moveDown:"下移",moveAllDown:"全部下移",moveRight:"右移",moveAllRight:"全部右移",moveLeft:"左移",moveAllLeft:"全部左移",pleaseSelect:"请选择字段",noOptionMove:"没有可移动字段",selectOptionUp:"请选择上移字段",cannotMoveUp:"无法上移",selectOptionTop:"请选择置顶字段",optionIsTop:"字段已置顶",selectOptionDown:"请选择下移字段",cannotMoveDown:"无法下移",selectOptionBottom:"请选择置底字段",optionIsBottom:"字段已置底"},container:{query:"筛选",saveAs:"另存为",save:"保存",config:"配置"}},querySolution:{saveAsDialog:{queryPlanName:"方案名称",setAsDefault:"设为默认",confirm:"确定",cancel:"取消",placeholder:"请输入方案名称",pleaseInput:"请输入方案名称",title:"新增方案",maxLength:"方案名称超出九个字"},manageDialog:{name:"名称",property:"属性",default:"默认",operation:"操作",confirm:"确定",cancel:"取消",planNameDuplicated:"方案名称{0}重复",system:"系统",personal:"个人"},container:{default:"默认",manage:"管理",arrowUp:"收起",arrowDown:"展开",saveAs:"另存为方案",empty:"空",save:"保存方案",pleaseInput:"formId为必传字段,请传入",saveSuccess:"查询方案保存成功",saveFail:"查询方案保存失败",planManage:"方案管理",clear:"清空",require:"请填写{fields}再进行筛选",defaultName:"默认筛选方案",histroyName:"上次筛选",sysPresetName:"系统预置方案"}},collapseDirective:{expand:"展开",fold:"收起"},avatar:{imgtitle:"点击修改",typeError:"上传图片类型不正确",sizeError:"上传图片不能大于",uploadError:"图片上传失败,请重试!",loadError:"加载错误"},listFilter:{filter:"筛选",confirm:"确定",cancel:"取消",reset:"清空条件"},progressStep:{empty:"步骤条信息为空"},languageLabel:{en:"英语","zh-cn":"简体中文","zh-CHS":"简体中文","zh-CHT":"繁体中文",ok:"确定",cancel:"取消"},verifyDetail:{vertifyTypeAll:"全部",vertifyTypeError:"错填",vertifyTypeEmpty:"漏填"},batchEditDialog:{title:"批量编辑",appendText:"添加新编辑列",appendTextTip:"添加更多列进行批量操作",okText:"确定",cancelText:"取消",field:"请选择要编辑的列:",fieldValue:"请输入要更改的值:",appendTips:"添加更多列进行批量操作",selected:"已选",row:"行",confirmTitle:"提示",neverShow:"不再提示",confirmText:"将修改{0}行数据,确定修改吗?"},pageWalker:{next:"下一步",prev:"上一步",skip:"跳过",startNow:"立即体验"},footer:{expandText:"查看更多信息",collapseText:"查看更多信息"},discussionGroup:{submit:"提交",cancel:"取消",colleague:"同事",all:"所有人员可见",related:"仅相关人员可见",confirm:"确定",reply:"回复",emptyMessage:"暂无数据",placeholder:"请输入姓名搜索",notEmpty:"提交内容不能为空",selectEmployee:"选择员工",next:"下级",emptySelected:"清空已选",emptyRight:"请在左侧选择人员",allOrg:"全部组织",selected:"已选",section:"部门",people:"人员",viewMore:"查看更多",per:"人",pcs:"个",emptyList:"联系人为空",advancedQuery:"高级查询"},tag:{addText:"添加",placeholder:"请输入"},filterPanel:{filter:"筛选",confirm:"确定",cancel:"取消",reset:"清除筛选",advancedFilter:"高级筛选",expand:"展开",fold:"收起",last1Month:"近一月",last3Month:"近三月",last6Month:"近半年",pleaseInput:"请先录入",searchHistory:"历史搜索",searchResult:"查询结果",intervalFilter:"按区间筛选",beginPlaceHolder:"最低值",endPlaceHolder:"最高值",dateBeginPlaceHolder:"开始日期",dateEndPlaceHolder:"结束日期",empty:"清空全部",clear:"清空已选",today:"当天",yesterday:"昨天",checkall:"全选"},scrollspy:{guide:"导航"},lookupConfig:{placeholder:"选择表单元数据",code:"编号",name:"名称",select:"选择帮助元数据",filter:"配置条件",helpidEmpty:"helpId不能为空",selectTitle:"帮助元数据选择",lookupTitle:"帮助配置",sure:"确定",cancel:"取消",successSave:"保存成功",helpIdError:"请选择帮助元数据",fileNamePlaceholder:"选择帮助文本字段",selectFileNameTitle:"文本字段选择器",bindingPath:"绑定字段",fieldError:"已绑定字段不存在!",textFieldLable:"帮助文本字段",loadTypeTitle:"选择加载方式",loadTypeList:{all:"全部加载",layer:"分层加载",default:"默认"},powerTitle:"权限设置",powerObjLabel:"权限对象",powerFieldLabel:"权限字段",powerOperateLabel:"权限操作",linkfieldLabel:"帮助关联字段",powerDataTitle:"权限对象选择",powerFieldTitle:"权限字段选择",powerOperateTitle:"操作选择",businessLable:"业务对象",powerLable:"权限对象",powerError:"请选择权限对象",operateError:"请选择操作",linkfieldError:"请选择权限字段"}},en:{locale:"EN_US",combo:{placeholder:"Please Select",emptyMsg:"Empty Data"},combolist:{},datagrid:{lineNumberTitle:"NO.",emptyMessage:"Empty Data",pagination:{previousLabel:"Prev Page",nextLabel:"Next Page",message:"Total <b>{1}</b> items ",pagelist:{firstText:"Display",lastText:"items"}},filter:{title:"Conditions",reset:"Reset",clear:"Clear",clearAll:"Clear all conditions",setting:"Settings",nofilter:"[ Empty ]",checkAll:"Check All",and:"And",or:"Or",operators:{equal:"equal",notEqual:"not equal",greater:"greater than",greaterOrEqual:"greater than or equal",less:"less than",lessOrEqual:"less than or equal",contains:"contains",notContains:"not contains",like:"contains",notLike:"not contains",in:"in",notIn:"not in",empty:"empty",notEmpty:"not empty",null:"null",notNull:"not null"},more:"More"},settings:{visible:"Visible",sortting:"Sortting",title:"Column Settings",canchoose:"Can choose",choosed:"Choosed",asc:"ASC",desc:"DESC",cancelSort:"Cancel sortting",ok:"OK",cancel:"Cancel",reset:"Reset",conciseMode:"Concise",advancedMode:"Advanced",formatSetting:"Column format",properties:"Column properties",groupping:"Groupping",allColumns:"All",visibleColumns:"Visible",hiddenColumns:"Hidden",searchPlaceholder:"Please enter a column name",checkall:"Show or hide all",headeralign:"Header alignment",dataalign:"Data alignment",alignLeft:"Left",alignCenter:"Center",alignRight:"Right",summarytype:"Summary type",summarytext:"Summary text",summaryNone:"None",summarySum:"Sum",summaryMax:"Max",summaryMin:"Min",summarCount:"Count",summaryAverage:"Average",grouppingField:"Groupping field",moreGrouppingFieldWarningMessage:"Up to 3 fields are set for grouping",grouppingSummary:"Group total",addGrouppingFieldTip:"Add groupping field",removeGrouppingFieldTip:"Remove groupping field",grouppingSummaryType:"Group total type",grouppingSummaryText:"Group total text",restoreDefaultSettingsText:"Are you sure you want to restore the default settings",simple:{title:"Show Columns",tip:"The selected fields can be displayed in the list. Drag to adjust the display order in the list.",count:'show <span class="visible-cols-count">{0}</span> columns'}},selectionData:{clearAll:"Clear all",tooltip:"Click here show list.",currentLenth:"<b>{0}</b> items selected. "},groupRow:{tips:"Drag columns here to group data.",removeColumn:"Remove the group column.",clearTip:"Clear all grouped fields.",clear:"Empty"}},filterEditor:{cancelButton:"Cancel",okButton:"OK",addWhere:"Add",clear:"Clear",moveTop:"Top",moveUp:"Up",moveDown:"Down",moveBottom:"Bottom",leftBrackets:"Left Brackets",field:"Field Name",operator:"Operator",value:"Value",valueType:"Value type",expressType:{value:"Value",express:"Express",frontExpress:"Front Express"},rightBrackets:"Right Brackets",relation:"Relation",relationValue:{and:"And",or:"Or"},designTab:"Design",jsonTab:"JSON",sqlTab:"Sql",title:"Filter Designer",message:"Are you sure you want to clear all current data?",validate:{bracket:"The brackets do not match, please check",relation:"The condition relationship is incomplete, please check",field:"Condition field is not set, please check"}},enumEditor:{cancelButton:"Cancel",okButton:"OK",addWhere:"Add",clear:"Clear",moveTop:"Top",moveUp:"Up",moveDown:"Down",moveBottom:"Bottom",title:"Enum Data Designer",message:"Are you sure you want to clear all current data?",value:"Value",name:"Name"},lookup:{placeholder:"Please choose",favorites:"Favorites",selected:"Selected items",okText:"OK",cancelText:"Cancel",allColumns:"All Columns",datalist:"Data items",mustWriteSomething:"Please write a key words.",mustChoosAdatarow:"Please choose a data row!",tipText:"Are these what you are looking for?",cascade:{enable:"Enable cascade selection",disable:"Disable cascade selection",up:"Cascade up selection only",down:"Cascade selection only"},favoriteInfo:{addFav:"Collection success.",cancelFav:"Unfavorite successfully. "},getAllChilds:"Get all children",contextMenu:{expandall:"Expand all",collapseall:"Collapse all",expandByLayer:"Expand by level",expand1:"Expand to level 1",expand2:"Expand to level 2",expand3:"Expand to level 3",expand4:"Expand to level 4",expand5:"Expand to level 5",expand6:"Expand to level 6",expand7:"Expand to level 7",expand8:"Expand to level 8",expand9:"Expand to level 9"},quick:{notfind:"Search content not found.",more:"Show more"},configError:"The help display column is not configured. Please check whether the help data source is configured correctly.",selectedInfo:{total:'Selected items <span class="selected-counter mx-1">{0}</span>',clear:"Cancel selected",remove:"Delete ({0})",confirm:"Are you sure you want to cancel all selected records?"}},loading:{message:"Loading ..."},modal:{},messager:{yes:"Yes",no:"No",ok:"OK",cancel:"Cancel",title:"System Information",errorTitle:"Error Information",prompt:{fontSize:{name:"Font Size",small:"Small",middle:"Middle",big:"Large",large:"Extra Large",huge:"Huge"}},exception:{expand:"Expand",collapse:"Collapse",happend:"Happened Time",detail:"Detail",copy:"Copy details",copySuccess:"Copy succeeded!",copyFailed:"Replication failed!",roger:"Got it."}},notify:{title:"System Information"},dialog:{},datatable:{},colorPicker:{},numberSpinner:{placeholder:"Please enter the number",range:{begin:"Please enter the begin number",end:"Please enter the end number"}},inputGroup:{},treetable:{emptyMessage:"Empty Data",pagination:{previousLabel:"Prev Page",nextLabel:"Next Page",message:"{0} items per page, total {1} items."}},multiSelect:{leftTitle:"Unselected",rightTitle:"Selected",noDataMoveMessage:"Please select the data to move.",shiftRight:"Shift right",shiftLeft:"Shift left",allShiftRight:"Shift right all",allShiftLeft:"Shift left all",top:"Placed at the top",bottom:"Placed at the bottom",shiftUp:"Shift up",shiftDown:"Shift down",emptyData:"Empty data",filterPlaceholder:"Filter..."},sortEditor:{cancel:"cancel",ok:"ok",add:"Add",clear:"Clear",moveTop:"Top",moveUp:"Up",moveDown:"Down",moveBottom:"Bottom",field:"Field Name",order:"Order",asc:"ASC",desc:"DESC",title:"Sort Editor"},tabs:{more:"more"},timePicker:{},wizard:{},tree:{},tooltip:{},listview:{emptyMessage:"Empty Data"},text:{yes:"yes",no:"no",zoom:"Edit content in the dialog opened.",comments:{title:"Common comments",manager:"Management",empty:"No data."}},switch:{},sidebar:{sidebar:"Detail"},section:{expandLabel:"expand",collapseLabel:"collapse"},pagination:{message:"Total <b>{1}</b> items ",totalinfo:{firstText:"Total",lastText:"items"},pagelist:{firstText:"Display",lastText:"items"},previous:"Previous",next:"next",goto:{prefix:"go to",suffix:""}},responseToolbar:{more:"More"},queryCondition:{configDialog:{unSelectedOptions:"Unselected Options",selectedOptions:"Selected Options",confirm:"Confirm",cancel:"Cancel",placeholder:"Please input search keywords",moveUp:"Move Up",moveAllUp:"Move All Up",moveDown:"Move Down",moveAllDown:"Move All Down",moveRight:"Move Right",moveAllRight:"Move All Right",moveLeft:"Move Left",moveAllLeft:"Move All Left",pleaseSelect:"Please select options",noOptionMove:"No moveable options left",selectOptionUp:"Please select options to move up",cannotMoveUp:"Can't move up",selectOptionTop:"Please select options to the top",optionIsTop:"The option is at top",selectOptionDown:"Please select options to move down",cannotMoveDown:"Can't move down",selectOptionBottom:"Please select options to the bottom",optionIsBottom:"The option is at bottom"},container:{query:"Filter",saveAs:"Save as",save:"Save",config:"Configurations"}},querySolution:{saveAsDialog:{queryPlanName:"Query Plan Name",setAsDefault:"Set as default",confirm:"Confirm",cancel:"Cancel",placeholder:"Please input query solution name",pleaseInput:"Please input query solution name",title:"New Query Solution",maxLength:"Query solution name exceeding nine characters"},manageDialog:{name:"Name",property:"Property",default:"Default",operation:"Action",confirm:"Confirm",cancel:"Cancel",planNameDuplicated:"{0} is duplicated",system:"System Plan",personal:"Personal Plan"},container:{default:"Default",manage:"Edit",arrowUp:"Fold",arrowDown:"Unfold",saveAs:"Save As",empty:"empty",save:"Save",pleaseInput:"Property 'formId' is required",saveSuccess:"Query Plan Saved",saveFail:"Query Plan didn't save",planManage:"Edit Query Plan",clear:"Clear conditions",require:"Please fill the {fields} before query",defaultName:"Default Scheme",histroyName:"Last Filter",sysPresetName:"Sys Preset Scheme"}},collapseDirective:{expand:"expand",fold:"fold"},avatar:{imgtitle:"Amend",typeError:"Type error",sizeError:"Can not be larger than",uploadError:"Upload Fail!",loadError:"Load error."},listFilter:{filter:"Filter",confirm:"OK",cancel:"Cancel",reset:"Reset"},progressStep:{empty:"Data is empty"},languageLabel:{en:"English","zh-cn":"Simplified Chinese","zh-CHS":"Simplified Chinese","zh-CHT":"Traditional Chiness",ok:"OK",cancel:"Cancel"},verifyDetail:{vertifyTypeAll:"All",vertifyTypeError:"Error",vertifyTypeEmpty:"Empty"},batchEditDialog:{title:"Batch Edit",appendText:"Append new field",appendTextTip:"Append more field to edit",okText:"OK",cancelText:"Cancel",field:"Please select field",fieldValue:"Please input value",appendTips:"append more columns to edit.",selected:"select",row:"row",confirmTitle:"Info",neverShow:"Do not remind again",confirmText:"We will update {0} rows,Are you sure?"},pageWalker:{next:"Next",prev:"Prev",skip:"Skip",startNow:"Start now"},footer:{expandText:"More Information",collapseText:"More Information"},discussionGroup:{submit:"Submit",cancel:"Cancel",colleague:"Colleague",all:"For all to see",related:"Relevant personnel can see",confirm:"Confirm",reply:"Reply",emptyMessage:"Empty Data",placeholder:"Please input search keywords",notEmpty:"The submitted content cannot be empty",selectEmployee:"Select the employee",next:"Next",emptySelected:"Clear",emptyRight:"Select on the left",allOrg:"All",selected:"Selected",section:"Section ",people:"Per ",viewMore:"View more",per:" ",pcs:" ",emptyList:"Empty contacts",advancedQuery:"Select"},tag:{addText:"Add",placeholder:"Please input"},filterPanel:{filter:"Filter",confirm:"OK",cancel:"Cancel",reset:"Reset",advancedFilter:"advancedFilter",expand:"Expand",fold:"Fold",last1Month:"LastOneMonth",last3Month:"LastThreeMonth",last6Month:"LastSixMonth",pleaseInput:"Please input ",searchHistory:"Search History",searchResult:"Search Result",intervalFilter:"Filter by interval",beginPlaceHolder:"Minimum value",endPlaceHolder:"Maximum value",dateBeginPlaceHolder:"Start date",dateEndPlaceHolder:"End date",empty:"Empty",clear:"Clear",today:"Today",yesterday:"Yesterday",checkall:"Check all"},scrollspy:{guide:"Nav"},lookupConfig:{placeholder:"Select the form metadata",code:"Code",name:"Name",select:"Select the help metadata",filter:"Configuration conditions",helpidEmpty:"HelpID cannot be empty",selectTitle:"Helps with metadata selection",lookupTitle:"Help configuration",sure:"Confirm",cancel:"Cancel",successSave:"Save successfully",helpIdError:"Please select the help metadata",fileNamePlaceholder:"Select the help text field",selectFileNameTitle:"Text field selector",bindingPath:"Binding field",fieldError:"The bound field does not exist!",textFieldLable:"Select the textField",loadTypeTitle:"Select the loadType",loadTypeList:{all:"All load",layer:"Layer load",default:"Default load"},powerTitle:"Permission setting",powerObjLabel:"Permission objects",powerFieldLabel:"Permission field",powerOperateLabel:"Permission operate",linkfieldLabel:"Help associated field",powerDataTitle:"Permission object selection",powerFieldTitle:"Permission field selection",powerOperateTitle:"Operation selection",businessLable:"Business object ",powerLable:"Permission objects",powerError:"Select the permission objects",operateError:"Select the Operation",linkfieldError:"Select permission field"}},"zh-CHT":{locale:"ZH_CHT",combo:{placeholder:"請選擇",emptyMsg:"暫無數據"},combolist:{},datagrid:{lineNumberTitle:"序號",emptyMessage:"暫無數據",pagination:{previousLabel:"上一頁",nextLabel:"下一頁",message:"共 <b>{1}</b> 條 ",pagelist:{firstText:"顯示",lastText:"條"}},filter:{title:"過濾條件",reset:"重置",clear:"清空條件",clearAll:"清空所有條件",setting:"高級設置",nofilter:"[ 無 ]",checkAll:"全選",and:"並且",or:"或者",operators:{equal:"等於",notEqual:"不等於",greater:"大於",greaterOrEqual:"大於等於",less:"小於",lessOrEqual:"小於等於",contains:"包含",notContains:"不包含",like:"包含",notLike:"不包含",in:"屬於",notIn:"不屬於",empty:"為空",notEmpty:"不為空",null:"null",notNull:"不為null"},more:"查看更多"},settings:{visible:"顯示列",sortting:"列排序",title:"列配置",canchoose:"可選列",choosed:"已選列",asc:"升序",desc:"降序",cancelSort:"取消排序",ok:"確定",cancel:"取消",reset:"恢複默認",conciseMode:"簡潔模式",advancedMode:"高級模式",formatSetting:"列格式",properties:"列屬性",groupping:"分組",allColumns:"所有列",visibleColumns:"可見列",hiddenColumns:"隱藏列",searchPlaceholder:"請輸入列名稱",checkall:"全部顯示/隱藏",headeralign:"表頭對齊",dataalign:"數據對齊",alignLeft:"左對齊",alignCenter:"居中對齊",alignRight:"右對齊",summarytype:"匯總合計類型",summarytext:"匯總合計文本",summaryNone:"無",summarySum:"求和",summaryMax:"最大值",summaryMin:"最小值",summarCount:"計數",summaryAverage:"平均值",grouppingField:"分組字段",moreGrouppingFieldWarningMessage:"最多設置3個字段進行分組",grouppingSummary:"分組合計",addGrouppingFieldTip:"添加分組字段",removeGrouppingFieldTip:"移除分組字段",grouppingSummaryType:"分組合計類型",grouppingSummaryText:"分組合計文本",restoreDefaultSettingsText:"確認要恢複默認設置嗎?",simple:{title:"顯示列",tip:"選中的字段可展示到列表中,拖拽可調整在列表中的展示順序。",count:'已顯示 <span class="visible-cols-count">{0}</span> 列'}},selectionData:{clearAll:"清空",tooltip:"點擊顯示已選記錄列錶",currentLenth:"已選擇:<b>{0}</b> 條"},groupRow:{tips:"拖動列到這兒可進行數據分組",removeColumn:"移除分組列",clearTip:"清除所有分組字段",clear:"清空"}},filterEditor:{cancelButton:"取消",okButton:"確定",addWhere:"添加子句",clear:"清空",moveTop:"置頂",moveUp:"上移",moveDown:"下移",moveBottom:"置底",leftBrackets:"左括號",field:"字段",operator:"操作符",value:"值",valueType:"值類型",expressType:{value:"值",express:"錶達式",frontExpress:"表單表達式"},rightBrackets:"右括號",relation:"關係",relationValue:{and:"並且",or:"或者"},designTab:"設計器",jsonTab:"源代碼",sqlTab:"Sql預覽",title:"條件編輯器",message:"確認要清空當前所有數據嗎?",validate:{bracket:"左右括號不匹配,請檢查",relation:"條件關系不完整,請檢查",field:"條件字段未設置,請檢查"}},enumEditor:{cancelButton:"取消",okButton:"確定",addWhere:"添加",clear:"清空",moveTop:"置頂",moveUp:"上移",moveDown:"下移",moveBottom:"置底",title:"枚舉數據編輯器",message:"確認要清空當前所有數據嗎?",value:"值",name:"名稱"},lookup:{placeholder:"請選擇",favorites:"收藏夾",selected:"已選數據",okText:"確定",cancelText:"取消",allColumns:"所有列",datalist:"數據列錶",mustWriteSomething:"請輸入關鍵字後查詢。",mustChoosAdatarow:"請選擇一條記錄!",tipText:"您要找的是不是這些?",cascade:{enable:"同步選擇",disable:"僅選擇自身",up:"包含上級",down:"包含下級"},favoriteInfo:{addFav:"收藏成功。",cancelFav:"取消收藏成功。 "},getAllChilds:"獲取所有子級數據",contextMenu:{expandall:"全部展開",collapseall:"全部收起",expandByLayer:"按層級展開",expand1:"展開 1 級",expand2:"展開 2 級",expand3:"展開 3 級",expand4:"展開 4 級",expand5:"展開 5 級",expand6:"展開 6 級",expand7:"展開 7 級",expand8:"展開 8 級",expand9:"展開 9 級"},quick:{notfind:"未找到搜索內容",more:"顯示更多"},configError:"幫助顯示列未配置,請檢查是否已正確配置幫助數據源!",selectedInfo:{total:'已選 <span class="selected-counter mx-1">{0}</span> 條',clear:"取消已選",remove:"刪除已選({0})",confirm:"您確認要取消所有已選中的記錄嗎?"}},loading:{message:"正在加載,請稍候..."},modal:{},messager:{yes:"是",no:"否",ok:"確定",cancel:"取消",title:"係統提示",errorTitle:"錯誤提示",prompt:{fontSize:{name:"字體大小",small:"小",middle:"中",big:"大",large:"特大",huge:"超大"}},exception:{expand:"展開",collapse:"收起",happend:"發生時間",detail:"詳細信息",copy:"複制詳細信息",copySuccess:"複制成功",copyFailed:"複制失敗",roger:"知道了"}},notify:{title:"係統提示"},dialog:{},datatable:{},colorPicker:{},numberSpinner:{placeholder:"請輸入數字",range:{begin:"請輸入開始數字",end:"請輸入結束數字"}},inputGroup:{},sortEditor:{cancel:"取消",ok:"確定",add:"添加",clear:"清空",moveTop:"置頂",moveUp:"上移",moveDown:"下移",moveBottom:" 置底",field:"字段",order:"排序",asc:"升序",desc:"降序",title:"排序設置"},treetable:{emptyMessage:"暫無數據",pagination:{previousLabel:"上一頁",nextLabel:"下一頁",message:"每頁 {0} 條記錄,共 {1} 條記錄。"}},multiSelect:{leftTitle:"未選擇",rightTitle:"已選擇",noDataMoveMessage:"請選擇要移動的數據。",shiftRight:"右移",shiftLeft:"左移",allShiftRight:"全部右移",allShiftLeft:"全部左移",top:"置頂",bottom:"置底",shiftUp:"上移",shiftDown:"下移",emptyData:"暫無數據",filterPlaceholder:"輸入篩選項名稱搜索"},tabs:{more:"更多"},timePicker:{},wizard:{},tree:{},tooltip:{},listview:{emptyMessage:"暫無數據"},text:{yes:"是",no:"否",zoom:"在打開的對話框中編輯內容",comments:{title:"常用意見",manager:"意見管理",empty:"暫無數據"}},switch:{},sidebar:{sidebar:"詳情"},section:{expandLabel:"展開",collapseLabel:"收起"},pagination:{message:"共 <b>{1}</b> 條 ",totalinfo:{firstText:"共",lastText:"條"},pagelist:{firstText:"每頁",lastText:"條"},previous:"上一頁",next:"下一頁",goto:{prefix:"跳至",suffix:"頁"}},responseToolbar:{more:"更多"},queryCondition:{configDialog:{unSelectedOptions:"未選擇項",selectedOptions:"已選擇項",confirm:"確定",cancel:"取消",placeholder:"請輸入搜索關鍵字",moveUp:"上移",moveAllUp:"全部上移",moveDown:"下移",moveAllDown:"全部下移",moveRight:"右移",moveAllRight:"全部右移",moveLeft:"左移",moveAllLeft:"全部左移",pleaseSelect:"請選擇字段",noOptionMove:"冇有可移動字段",selectOptionUp:"請選擇上移字段",cannotMoveUp:"無法上移",selectOptionTop:"請選擇置頂字段",optionIsTop:"字段已置頂",selectOptionDown:"請選擇下移字段",cannotMoveDown:"無法下移",selectOptionBottom:"請選擇置底字段",optionIsBottom:"字段已置底"},container:{query:"篩選",saveAs:"另存為",save:"保存",config:"配置"}},querySolution:{saveAsDialog:{queryPlanName:"方案名稱",setAsDefault:"設為默認",confirm:"確定",cancel:"取消",placeholder:"請輸入方案名稱",pleaseInput:"請輸入方案名稱",title:"新增方案",maxLength:"方案名稱超出九個字"},manageDialog:{name:"名稱",property:"屬性",default:"默認",operation:"操作",confirm:"確定",cancel:"取消",planNameDuplicated:"方案名稱{0}重複",system:"係統",personal:"個人"},container:{default:"默認",manage:"管理",arrowUp:"收起",arrowDown:"展開",saveAs:"另存為方案",empty:"空",save:"保存方案",pleaseInput:"formId為必傳字段,請傳入",saveSuccess:"查詢方案保存成功",saveFail:"查詢方案保存失敗",planManage:"方案管理",clear:"清空",require:"請填寫{fields}再進行篩選",defaultName:"默認篩選方案",histroyName:"上次篩選",sysPresetName:"系统预置方案"}},collapseDirective:{expand:"展開",fold:"收起"},avatar:{imgtitle:"點擊修改",typeError:"上傳圖片類型不正確",sizeError:"上傳圖片不能大於",uploadError:"圖片上傳失敗,請重試!",loadError:"加載錯誤"},listFilter:{filter:"篩選",confirm:"確定",cancel:"取消",reset:"清空條件"},progressStep:{empty:"步驟條信息為空"},languageLabel:{en:"英語","zh-cn":"簡體中文","zh-CHS":"簡體中文","zh-CHT":"繁體中文",ok:"確定",cancel:"取消"},verifyDetail:{vertifyTypeAll:"全部",vertifyTypeError:"錯填",vertifyTypeEmpty:"漏填"},batchEditDialog:{title:"批量編輯",appendText:"添加新編輯列",appendTextTip:"添加更多列進行批量操作",okText:"確定",cancelText:"取消",field:"請選擇要編輯的列:",fieldValue:"請輸入要更改的值:",appendTips:"添加更多列進行批量操作",selected:"已選",row:"行",confirmTitle:"提示",neverShow:"不再提示",confirmText:"將修改{0}行數據,確定修改嗎?"},pageWalker:{next:"下一步",prev:"上一步",skip:"跳過",startNow:"立即體驗"},footer:{expandText:"查看更多信息",collapseText:"查看更多信息"},discussionGroup:{submit:"提交",cancel:"取消",colleague:"同事",all:"所有人員可見",related:"僅相關人員可見",confirm:"確定",reply:"回複",emptyMessage:"暫無數據",placeholder:"請輸入姓名搜索",notEmpty:"提交內容不能為空",selectEmployee:"選擇員工",next:"下級",emptySelected:"清空已選",emptyRight:"請在左側選擇人員",allOrg:"全部組織",selected:"已選",section:"部門",people:"人員",viewMore:"查看更多",per:"人",pcs:"個",emptyList:"聯係人為空",advancedQuery:"高級查詢"},tag:{addText:"添加",placeholder:"請輸入"},filterPanel:{filter:"篩選",confirm:"確定",cancel:"取消",reset:"清除篩選",advancedFilter:"高級篩選",expand:"展開",fold:"收起",last1Month:"近一月",last3Month:"近三月",last6Month:"近半年",pleaseInput:"請先錄入",searchHistory:"歷史搜索",searchResult:"查詢結果",intervalFilter:"按區間篩選",beginPlaceHolder:"最低值",endPlaceHolder:"最高值",dateBeginPlaceHolder:"開始日期",dateEndPlaceHolder:"結束日期",empty:"清空全部",clear:"清空已選",today:"當天",yesterday:"昨天",checkall:"全選"},scrollspy:{guide:"導航"},lookupConfig:{placeholder:"選擇表單元數據",code:"編號",name:"名稱",select:"選擇幫助元數據",filter:"配置條件",helpidEmpty:"helpId不能為空",selectTitle:"幫助元數據選擇",lookupTitle:"幫助配置",sure:"確定",cancel:"取消",successSave:"保存成功",helpIdError:"請選擇幫助元數據",fileNamePlaceholder:"選擇幫助文本字段",selectFileNameTitle:"文本字段選擇器",bindingPath:"綁定字段",fieldError:"已綁定字段不存在!",textFieldLable:"幫助文本字段",loadTypeTitle:"選擇加載方式",loadTypeList:{all:"全部加載",layer:"分層加載",default:"默認"},powerTitle:"權限設置",powerObjLabel:"權限對象",powerFieldLabel:"權限字段",powerOperateLabel:"權限操作",linkfieldLabel:"幫助關聯字段",powerDataTitle:"權限對象選擇",powerFieldTitle:"權限字段選擇",powerOperateTitle:"操作選擇",businessLable:"業務對象",powerLable:"權限對象",powerError:"請選擇權限對象",operateError:"請選擇操作",linkfieldError:"請選擇權限字段"}}},E=class E{constructor(t,n){this.localeId=t,this.localeData=n,t||(t="zh-CHS"),E.setLocaleData(n,t)}static getResources(t=""){return t?E.getValue(t,w):w}static getComponentOptions(t){return E.langData[t]}static setLocaleData(t=null,n){t&&Object.keys(t).forEach(a=>{Object.keys(t[a]).forEach(i=>{E.appendLanguageResource(i,t[a][i],a)})}),E.langData=w[n],E.langData||(E.langData=w["zh-CHS"])}static appendLanguageResource(t,n,o=E.localeId){o?w[o][t]=n||{}:(E.langData[t]=E.langData[t]||{},E.langData[t]=Object.assign(E.langData[t],n||{}))}static getLocaleValue(t){const n=E.getValue(t,E.langData);return n||""}static getValue(t,n,o=!1){if(!n)return"";let a="";return t.indexOf(".")===-1&&n.hasOwnProperty(t)?a=n[t]:a=t.split(".").reduce((r,i)=>r?r[i]:null,n),o?E.formatterValue(a):a}static formatterValue(t){return t==null||t===""?"":typeof t=="string"?E.escapeHtml(t):t}static escapeHtml(t){return t==null?"":t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;").replace(/\//g,"&#x2F;")}};ne(E,"langData"),ne(E,"localeId");let x=E;var G=function(e,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},G(e,t)};function B(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Ue(e,t,n,o){function a(r){return r instanceof n?r:new n(function(i){i(r)})}return new(n||(n=Promise))(function(r,i){function p(m){try{c(o.next(m))}catch(g){i(g)}}function u(m){try{c(o.throw(m))}catch(g){i(g)}}function c(m){m.done?r(m.value):a(m.value).then(p,u)}c((o=o.apply(e,t||[])).next())})}function re(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,a,r,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function p(c){return function(m){return u([c,m])}}function u(c){if(o)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(o=1,a&&(r=c[0]&2?a.return:c[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;switch(a=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){n.label=c[1];break}if(c[0]===6&&n.label<r[1]){n.label=r[1],r=c;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(c);break}r[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(m){c=[6,m],a=0}finally{o=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function N(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function q(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,r=[],i;try{for(;(t===void 0||t-- >0)&&!(a=o.next()).done;)r.push(a.value)}catch(p){i={error:p}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return r}function K(e,t,n){if(n||arguments.length===2)for(var o=0,a=t.length,r;o<a;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function D(e){return this instanceof D?(this.v=e,this):new D(e)}function Me(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),a,r=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),p("next"),p("throw"),p("return",i),a[Symbol.asyncIterator]=function(){return this},a;function i(d){return function(h){return Promise.resolve(h).then(d,g)}}function p(d,h){o[d]&&(a[d]=function(L){return new Promise(function(P,Z){r.push([d,L,P,Z])>1||u(d,L)})},h&&(a[d]=h(a[d])))}function u(d,h){try{c(o[d](h))}catch(L){f(r[0][3],L)}}function c(d){d.value instanceof D?Promise.resolve(d.value.v).then(m,g):f(r[0][2],d)}function m(d){u("next",d)}function g(d){u("throw",d)}function f(d,h){d(h),r.shift(),r.length&&u(r[0][0],r[0][1])}}function Fe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof N=="function"?N(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(r){n[r]=e[r]&&function(i){return new Promise(function(p,u){i=e[r](i),a(p,u,i.done,i.value)})}}function a(r,i,p,u){Promise.resolve(u).then(function(c){r({value:c,done:p})},i)}}typeof SuppressedError=="function"&&SuppressedError;function C(e){return typeof e=="function"}function ke(e){var t=function(o){Error.call(o),o.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Y=ke(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
2
+ `+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function ae(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var j=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,o,a,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var p=N(i),u=p.next();!u.done;u=p.next()){var c=u.value;c.remove(this)}}catch(L){t={error:L}}finally{try{u&&!u.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}else i.remove(this);var m=this.initialTeardown;if(C(m))try{m()}catch(L){r=L instanceof Y?L.errors:[L]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var f=N(g),d=f.next();!d.done;d=f.next()){var h=d.value;try{ie(h)}catch(L){r=r??[],L instanceof Y?r=K(K([],q(r)),q(L.errors)):r.push(L)}}}catch(L){o={error:L}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}if(r)throw new Y(r)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ie(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&ae(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&ae(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();j.EMPTY;function le(e){return e instanceof j||e&&"closed"in e&&C(e.remove)&&C(e.add)&&C(e.unsubscribe)}function ie(e){C(e)?e():e.unsubscribe()}var se={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ce={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return setTimeout.apply(void 0,K([e,t],q(n)))},clearTimeout:function(e){var t=ce.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ue(e){ce.setTimeout(function(){throw e})}function pe(){}function Ve(e){e()}var W=function(e){B(t,e);function t(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,le(n)&&n.add(o)):o.destination=Ke,o}return t.create=function(n,o,a){return new Q(n,o,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(j),Ge=Function.prototype.bind;function z(e,t){return Ge.call(e,t)}var Be=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(o){F(o)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(o){F(o)}else F(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){F(n)}},e}(),Q=function(e){B(t,e);function t(n,o,a){var r=e.call(this)||this,i;if(C(n)||!n)i={next:n??void 0,error:o??void 0,complete:a??void 0};else{var p;r&&se.useDeprecatedNextContext?(p=Object.create(n),p.unsubscribe=function(){return r.unsubscribe()},i={next:n.next&&z(n.next,p),error:n.error&&z(n.error,p),complete:n.complete&&z(n.complete,p)}):i=n}return r.destination=new Be(i),r}return t}(W);function F(e){ue(e)}function qe(e){throw e}var Ke={closed:!0,next:pe,error:qe,complete:pe},$=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ye(e){return e}function je(e){return e.length===0?Ye:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var A=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,o){var a=this,r=ze(t)?t:new Q(t,n,o);return Ve(function(){var i=a,p=i.operator,u=i.source;r.add(p?p.call(r,u):u?a._subscribe(r):a._trySubscribe(r))}),r},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var o=this;return n=de(n),new n(function(a,r){var i=new Q({next:function(p){try{t(p)}catch(u){r(u),i.unsubscribe()}},error:r,complete:a});o.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[$]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return je(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=de(t),new t(function(o,a){var r;n.subscribe(function(i){return r=i},function(i){return a(i)},function(){return o(r)})})},e.create=function(t){return new e(t)},e}();function de(e){var t;return(t=e??se.Promise)!==null&&t!==void 0?t:Promise}function We(e){return e&&C(e.next)&&C(e.error)&&C(e.complete)}function ze(e){return e&&e instanceof W||We(e)&&le(e)}function Qe(e){return C(e==null?void 0:e.lift)}function fe(e){return function(t){if(Qe(t))return t.lift(function(n){try{return e(n,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,t,n,o,a){return new Xe(e,t,n,o,a)}var Xe=function(e){B(t,e);function t(n,o,a,r,i,p){var u=e.call(this,n)||this;return u.onFinalize=i,u.shouldUnsubscribe=p,u._next=o?function(c){try{o(c)}catch(m){n.error(m)}}:e.prototype._next,u._error=r?function(c){try{r(c)}catch(m){n.error(m)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=a?function(){try{a()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(W);function Je(e){return e&&C(e.schedule)}function et(e){return e[e.length-1]}function tt(e){return Je(et(e))?e.pop():void 0}var me=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Le(e){return C(e==null?void 0:e.then)}function Ee(e){return C(e[$])}function Ce(e){return Symbol.asyncIterator&&C(e==null?void 0:e[Symbol.asyncIterator])}function he(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function nt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ye=nt();function ge(e){return C(e==null?void 0:e[ye])}function Te(e){return Me(this,arguments,function(){var n,o,a,r;return re(this,function(i){switch(i.label){case 0:n=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,D(n.read())];case 3:return o=i.sent(),a=o.value,r=o.done,r?[4,D(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,D(a)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Oe(e){return C(e==null?void 0:e.getReader)}function X(e){if(e instanceof A)return e;if(e!=null){if(Ee(e))return ot(e);if(me(e))return rt(e);if(Le(e))return at(e);if(Ce(e))return _e(e);if(ge(e))return lt(e);if(Oe(e))return it(e)}throw he(e)}function ot(e){return new A(function(t){var n=e[$]();if(C(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rt(e){return new A(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function at(e){return new A(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,ue)})}function lt(e){return new A(function(t){var n,o;try{for(var a=N(e),r=a.next();!r.done;r=a.next()){var i=r.value;if(t.next(i),t.closed)return}}catch(p){n={error:p}}finally{try{r&&!r.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}t.complete()})}function _e(e){return new A(function(t){st(e,t).catch(function(n){return t.error(n)})})}function it(e){return _e(Te(e))}function st(e,t){var n,o,a,r;return Ue(this,void 0,void 0,function(){var i,p;return re(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=Fe(e),u.label=1;case 1:return[4,n.next()];case 2:if(o=u.sent(),!!o.done)return[3,4];if(i=o.value,t.next(i),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return p=u.sent(),a={error:p},[3,11];case 6:return u.trys.push([6,,9,10]),o&&!o.done&&(r=n.return)?[4,r.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function H(e,t,n,o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var r=t.schedule(function(){n(),a?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(r),!a)return r}function ve(e,t){return t===void 0&&(t=0),fe(function(n,o){n.subscribe($e(o,function(a){return H(o,e,function(){return o.next(a)},t)},function(){return H(o,e,function(){return o.complete()},t)},function(a){return H(o,e,function(){return o.error(a)},t)}))})}function Ae(e,t){return t===void 0&&(t=0),fe(function(n,o){o.add(e.schedule(function(){return n.subscribe(o)},t))})}function ct(e,t){return X(e).pipe(Ae(t),ve(t))}function ut(e,t){return X(e).pipe(Ae(t),ve(t))}function pt(e,t){return new A(function(n){var o=0;return t.schedule(function(){o===e.length?n.complete():(n.next(e[o++]),n.closed||this.schedule())})})}function dt(e,t){return new A(function(n){var o;return H(n,t,function(){o=e[ye](),H(n,t,function(){var a,r,i;try{a=o.next(),r=a.value,i=a.done}catch(p){n.error(p);return}i?n.complete():n.next(r)},0,!0)}),function(){return C(o==null?void 0:o.return)&&o.return()}})}function Se(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(function(n){H(n,t,function(){var o=e[Symbol.asyncIterator]();H(n,t,function(){o.next().then(function(a){a.done?n.complete():n.next(a.value)})},0,!0)})})}function ft(e,t){return Se(Te(e),t)}function mt(e,t){if(e!=null){if(Ee(e))return ct(e,t);if(me(e))return pt(e,t);if(Le(e))return ut(e,t);if(Ce(e))return Se(e,t);if(ge(e))return dt(e,t);if(Oe(e))return ft(e,t)}throw he(e)}function Lt(e,t){return t?mt(e,t):X(e)}function Et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return Lt(e,n)}function Ct(e,t){const n=l.ref(e.personSearchUrl),o=l.ref(e.personnelsDisplayKey),a=l.ref(!1),r=[],i=l.ref(!1);function p(f){f&&f.stopPropagation&&f.stopPropagation()}function u(f,d,h){return!f||!d?!1:h.findIndex(L=>f===L[d])!==-1}function c(f,d){return n.value&&`${n.value}${f}${d}`,Et(!0)}function m(f){if(f&&f[o.value]){const d=f[o.value];return d.substring(d.length-2,d.length)}return""}function g(){i.value=!1,a.value=!1}return{personSearchUrl:n,personnelsDisplayKey:o,personModalVisible:i,relativeVisible:a,selectedPersonnels:r,stopBubble:p,_isInArray:u,getSearchData:c,getAvatar:m,setRelativeValue:g}}const J=l.defineComponent({name:"FDiscussionEditor",props:oe,emits:["selections","lineData","value","filePreview","fileRemove","fileUploadDone","personnelSearch","getOutUsers"],setup(e,t){const n=l.ref(e.cancelVisible),o=l.ref(e.personnelsPrimaryKey),a=l.ref(e.replyPersonnelsDisplayKey),r=l.ref(e.editHeight);l.ref(e.type);const i=l.ref(e.orgUrl),p=l.ref(e.sectionData);let u,c;const m=l.ref(e.personnels);l.computed({get(){return m.value},set(s){s&&(m.value=s,S=m.value,He=m.value)}});const g=l.ref(e.replyUser),f=l.computed({get(){return g.value},set(s){s&&(g.value=s,g.value.id&&Pt())}}),d=l.ref(e.attachFiles),h=l.computed({get(){return d.value},set(s){s&&(d.value=s)}}),L=l.ref(""),P=l.ref(""),Z=l.ref(""),U=[];let be,He=[],S=[],Ie;l.ref(!1);const O={},k=l.ref(!1),xe=l.ref(),yt='<span class="f-icon f-icon-search"></span>',{personSearchUrl:gt,personnelsDisplayKey:ee,personModalVisible:R,relativeVisible:Fo,selectedPersonnels:b,stopBubble:De,_isInArray:Tt,getSearchData:Ot,getAvatar:Pe,setRelativeValue:_t}=Ct(e);l.onMounted(()=>{document.addEventListener("click",_t),xe.value=[{value:"ALL",text:x.getLocaleValue("discussionGroup.all")},{value:"RELATED",text:x.getLocaleValue("discussionGroup.related")}],Ie=xe.value[0],u=x.getLocaleValue("discussionGroup.placeholder")});function Re(s){s&&(c=s.target.innerHTML,L.value=c),P.value&&(L.value+=P.value),Z.value&&(L.value+=Z.value),c="",P.value="",Z.value=""}function vt(s){c=s.target.innerHTML;const{children:T}=s.target,_=[];for(let v=0;v<T.length;v++)_.push(T[v].id);b.value.forEach((v,M)=>{_.includes(v[o.value])||b.value.splice(M,1)}),U.value.forEach((v,M)=>{_.includes(v[o.value])||U.value.splice(M,1)}),c||(c="")}function At(){Ot(be,O.pageIndex+1).subscribe(s=>{"users"in s&&(O.pageIndex=s.pageIndex,O.users=[...O.users,...s.users])})}function St(){let s=[];k.value?s=O.users.filter(T=>T.active===!0):s=S.filter(T=>{T.active}),s.length&&bt(s),we(),Re(null),R.value=!1}function bt(s,T=!1){s.forEach(_=>{b.value.length&&Tt(_[o.value],o.value,b)||(P.value+='<a name="personnel" contenteditable="false" class="at-user" id="'+_[o.value]+'" userid="'+_[o.value]+'">@'+_[ee.value]+"</a>&nbsp;",b.value.push(_))})}function we(){k.value=!1,R.value=!1,S=He,S.length&&S.forEach(s=>{s.active=!1}),be=""}function Ht(s){R.value=!R.value,setTimeout(()=>{R.value&&It()},0),De(s)}const te=l.ref(null);function It(){var _,v;const s=window.innerHeight,T=(_=te.value)==null?void 0:_.getBoundingClientRect().bottom;T&&s<T&&((v=te.value)==null||v.scrollIntoView(!1))}function xt(){if(!L.value){x.getLocaleValue("discussionGroup.notEmpty");return}const s=[];h.value&&h.value.length&&h.value.forEach(T=>{const{id:_}=T,{name:v}=T,{size:M}=T,{metadataId:Rt}=T.extend,wt={id:_,name:v,size:M,metadataId:Rt};s.push(wt)}),t.emit("value",{msgInfo:V.Confirm,text:L,mailTos:b,mailToSections:U,visibility:Ie.value,parentId:f.value&&"id"in f.value?f.value.id:null,attachFiles:s.length?s:null}),L.value="",b.value=[],U.value=[],h.value=[],f.value={}}function Dt(){t.emit("value",{msgInfo:V.Cancel,text:null,mailTos:[],mailToSections:[],visibility:null,parentId:null,attachFiles:null}),L.value="",b.value=[],U.value=[],h.value=[],f.value={}}const Ne=l.ref(null);function Pt(){var s;(s=Ne.value)==null||s.focus()}function Ze(s){return s.active=!s.active,s}return()=>l.createVNode("div",{class:"f-discussion-editor"},[f.value&&f.value.id&&l.createVNode("div",{class:"farris-discussion-group-reply-tip"},["discussionGroup.reply",l.createVNode("span",{class:"farris-discussion-group-reply-tip-name"},[f.value[a.value]]),l.createTextVNode(":")]),l.createVNode("div",{class:"f-discussion-group-edit"},[l.createVNode("div",{class:"f-discussion-group-edit-container",style:[{height:r.value+"px"}]},[l.createVNode("div",{class:"textarea-editor",onKeyup:s=>vt(s),onBlur:s=>Re(s),ref:Ne,contenteditable:!0,innerHTML:L.value},null)]),l.createVNode("div",{class:"f-discussion-group-edit-footer"},[l.createVNode("div",{class:"f-discussion-group-edit-toolbar"},[l.createVNode("div",{class:"f-discussion-group-edit-toolbar-item f-discussion-group-edit-toolbar-about"},[l.createVNode("div",{class:"toolbar-item-text",onClick:s=>Ht(s)},[l.createVNode("span",{class:"toolbar-icon"},[l.createTextVNode("@")]),l.createVNode("span",{class:"toolbar-text"},["discussionGroup.colleague"])]),R.value&&l.createVNode("div",{class:"f-discussion-group-about-dropdown",onClick:s=>{De(s)},ref:te},[l.createVNode("div",{class:"f-discussion-group-about-search"},[l.createVNode(I,{placeholder:u,groupText:yt},null)]),l.createVNode("div",{class:"f-discussion-group-about-content"},[l.createVNode("div",{class:"f-discussion-group-about-used",hidden:!!k.value},[l.createVNode("ul",{class:"f-discussion-group-about-dropdown-list"},[S.length&&S.map(s=>l.createVNode("li",{onClick:Ze(s),class:["d-flex f-discussion-group-about-dropdown-list-item",{active:s.active}]},[l.createVNode("span",{class:"f-icon f-icon-check"},null),s.imgData&&l.createVNode("img",{src:"item.imgData",class:"about-list-item-avatar"},null),!s.imgData&&l.createVNode("div",{class:"about-list-item-avatar-tip",innerHTML:Pe(s)},null),l.createVNode("div",{class:"f-discussion-group-about-dropdown-list-detail f-utils-fill"},[l.createVNode("div",{class:"about-list-detail-text"},[s[ee.value]]),l.createVNode("div",{class:"about-list-detail-subtext"},[s.email])])])),!S.length&&l.createVNode("li",{class:"f-discussion-group-about-dropdown-list-item about-dropdown-list-item-empty"},null)])]),l.createVNode("div",{class:"f-discussion-group-about-searchlist",hidden:!k.value},[l.createVNode("ul",{class:"f-discussion-group-about-dropdown-list"},[O&&O.users&&O.users.length&&l.createVNode("template",null,[O.users.map(s=>l.createVNode("li",{onClick:Ze(s),class:["d-flex f-discussion-group-about-dropdown-list-item",{active:s.active}]},[l.createVNode("span",{class:"f-icon f-icon-check"},null),s.imgData&&l.createVNode("img",{src:"item.imgData",class:"about-list-item-avatar"},null),!s.imgData&&l.createVNode("div",{class:"about-list-item-avatar-tip",innerHTML:Pe(s)},null),l.createVNode("div",{class:"f-discussion-group-about-dropdown-list-detail f-utils-fill"},[l.createVNode("div",{class:"about-list-detail-text"},[s[ee.value]]),l.createVNode("div",{class:"about-list-detail-subtext"},null)])])),l.createVNode("div",{class:"f-discussion-person-list-page"},[O.pageIndex<O.pageCount-1&&l.createVNode("span",{class:"section-page-more section-page-text",onClick:At},null)])]),O&&O.users&&!O.users.length&&l.createVNode("li",{class:"f-discussion-group-about-dropdown-list-item about-dropdown-list-item-empty"},null)])])]),l.createVNode("div",{class:"f-about-list-btns d-flex"},[l.createVNode("div",{class:"f-about-list-btns-left"},[l.createVNode(l.resolveComponent("farris-discussion-personnel"),{sectionData:p.value,orgUrl:i.value,personSearchUrl:gt.value},null)]),l.createVNode("div",{class:"f-about-list-btns-right"},[l.createVNode("button",{class:"btn btn-secondary",onClick:we},null),l.createVNode("button",{class:"btn btn-primary",onClick:St},null)])])])])]),l.createVNode("div",{class:"f-discussion-group-edit-btns"},[n.value&&l.createVNode("button",{class:"btn btn-link f-discussion-cancel",onClick:Dt},null),l.createVNode("button",{class:"btn btn-primary",onClick:xt},null)])])])])}}),ht={install(e){e.component(J.name,J)}};y.DiscussionEditorProps=J,y.default=ht,y.discussionEditorProps=oe,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1 @@
1
+ (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["discussion-list"]={},t.Vue))})(this,function(t,e){"use strict";const r={pagerOnServer:{Type:Boolean,default:!0},supportPaging:{Type:Boolean,default:!0},pageIndex:{Type:Number,default:1},total:{Type:Number,default:0},pageSize:{Type:Number,default:10},discussionData:{Type:Object,default:[]},personnelsDisplayKey:{Type:String,default:"userName"}},a=e.defineComponent({name:"FDiscussionList",props:r,emits:["replyMessage","page","pageSize","filePreview","fileDownload"],setup(i,u){const d=e.ref(i.personnelsDisplayKey),p=e.ref(i.pagerOnServer),m=e.ref(i.supportPaging),f=e.ref(i.pageIndex),n=e.ref(i.total),o=e.ref(i.pageSize);e.ref(i.discussionData);let g=[];e.computed({get(){return n.value},set(s){n.value=s,c()}}),e.computed({get(){return o.value},set(s){o.value=s,c()}}),e.onMounted(()=>{c()});function c(){o.value,f.value}function N(s){u.emit("replyMessage",s)}return()=>e.createVNode("div",null,[e.createVNode("div",{class:"f-discussion-group-content"},[g.map(s=>e.createVNode("div",{class:"f-discussion-group-content-item"},[e.createVNode("div",{class:"discussion-item-avatar"},[e.createVNode("div",null,[s.imgData&&e.createVNode("div",null,[e.createVNode("img",{src:s.imgData,alt:"",class:"discussion-item-avatar-img"},null)])]),e.createVNode("div",null,[!s.imgData&&e.createVNode("div",{class:"discussion-item-avatar-tip"},null)])]),e.createVNode("div",{class:"discussion-item-inner"},[e.createVNode("div",{class:"discussion-item-username"},[s[d.value]]),e.createVNode("div",{class:"discussion-item-text"},[e.createVNode("span",{class:"discussion-item-text-message",innerHTML:s.text},null)]),s.parentData&&e.createVNode("div",{class:"discussion-item-text-reply"},[e.createVNode("span",{class:"discussion-item-text-reply-title"},["discussionGroup.reply",e.createVNode("span",{class:"discussion-item-text-reply-name"},[s.parentData[d.value]])]),e.createVNode("span",{class:"discussion-item-text-reply-content",innerHTML:s.parentData.text},null)]),e.createVNode("div",{class:"discussion-item-footer"},[e.createVNode("div",{class:"discussion-item-time"},[e.createVNode("span",{class:"discussion-item-time-text"},[s.commentDate])]),e.createVNode("div",{class:"discussion-item-btns"},[e.createVNode("span",{class:"discussion-item-btns-start",onClick:V=>{N(V)}},[e.createVNode("span",{class:"f-icon f-icon-message"},null),e.createVNode("span",{class:"discussion-item-btns-start-text"},["discussionGroup.reply"])])])])])])),m.value&&e.createVNode("div",{class:"f-discussion-group-footer"},null)])])}}),l={install(i){i.component(a.name,a)}};t.DiscussionListProps=a,t.default=l,t.discussionListProps=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1 @@
1
+ (function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.drawer={},o.Vue))})(this,function(o,e){"use strict";const l={backgroundColor:{type:String,default:"#fff"},height:{type:String,default:300},modelValue:{type:Boolean,default:!1},position:{type:String,default:"right"},showClose:{type:Boolean,default:!0},showMask:{type:Boolean,default:!0},title:{type:String,default:""},width:{type:String,default:300}},d=e.defineComponent({name:"FDrawer",props:l,emits:["afterClose","update:modelValue"],setup(t,a){const i=e.computed(()=>({"f-drawer-wrapper":!0,[`f-drawer-wrapper-${t.position}`]:!0})),u=e.computed(()=>{const r=t.width;return typeof r=="string"?r:typeof r=="number"?`${r}px`:"20%"}),w=e.computed(()=>{const r=t.height;return typeof r=="string"?r:typeof r=="number"?`${r}px`:"20%"}),p=e.computed(()=>`f-drawer-${t.position}`),n=()=>{a.emit("update:modelValue",!1),a.emit("afterClose")};return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>[e.createVNode("div",{class:"f-drawer"},[e.createVNode(e.Transition,{name:"f-drawer-mask",appear:!0},{default:()=>[t.modelValue&&t.showMask&&e.createVNode("div",{class:"f-drawer-mask",onClick:e.withModifiers(r=>{n()},["stop"])},null)]}),e.createVNode(e.Transition,{name:p.value,appear:!0},{default:()=>{var r,s;return[t.modelValue&&e.createVNode("div",{class:i.value,style:{width:u.value,height:w.value,backgroundColor:t.backgroundColor}},[e.createVNode("div",{class:"f-drawer-container"},[e.createVNode("div",{class:"f-drawer-header"},[t.showClose&&e.createVNode("div",{class:"f-drawer-close"},[e.createVNode("span",{class:"f-icon f-icon-close",onClick:e.withModifiers(h=>{n()},["stop"])},null)]),e.createVNode("div",{class:"f-drawer-title"},[a.slots.title?a.slots.title():t.title])]),e.createVNode("div",{class:"f-drawer-body"},[(s=(r=a.slots).content)==null?void 0:s.call(r)])])])]}})])]})}}),f=t=>{const a=t;return a.install=function(i){i.component(a.name,t)},t};d.register=(t,a,i)=>{t.drawer=d,a.drawer=d};const c=f(d);o.FDrawer=d,o.default=c,o.drawerProps=l,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});